"use strict";(self.webpackChunk_genially_view_client=self.webpackChunk_genially_view_client||[]).push([[323],{93503:(e,a,r)=>{r.r(a),r.d(a,{default:()=>y});var t=r(29324),n=r(85159),o=r(33673),l=r(94071),i=r(27791),c=function(){return c=Object.assign||function(e){for(var a,r=1,t=arguments.length;r<t;r++)for(var n in a=arguments[r])Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);return e},c.apply(this,arguments)},s=l.ZP.div.withConfig({displayName:"TableChartWrapper",componentId:"sc-7mmcdf"})((function(){return{width:"100%",height:"100%",wordBreak:"break-all"}})),d=l.ZP.table.withConfig({displayName:"TableStyled",componentId:"sc-1fo5yv"})((function(e){return{borderCollapse:"collapse",height:"100%",width:"100%",tableLayout:e.fixed?"fixed":"auto"}})),p=l.ZP.td.withConfig({displayName:"TableCell",componentId:"sc-191eay4"})((function(e){var a=e.normalWordBreak;return c(c({},i.oB.mixins.increaseSpecificity({padding:"0.15em"})),a?{overflow:"hidden",wordBreak:"normal"}:{})})),f=function(){return f=Object.assign||function(e){for(var a,r=1,t=arguments.length;r<t;r++)for(var n in a=arguments[r])Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);return e},f.apply(this,arguments)},u=function(e){var a=e.data,r=e.id,n=e.cellStyles,o=e.tableStyles,l=e.normalWordBreak,i="fixed"===o.css.tableLayout;return(0,t.jsx)(s,f({className:"genially-chart-wrapper"},{children:(0,t.jsx)(d,f({fixed:i},{children:(0,t.jsx)("tbody",{children:a.map((function(e,a){var o="t_".concat(r,"_r_").concat(a);return(0,t.jsx)("tr",{children:e.map((function(e,o){var i="t_".concat(r,"_c_").concat(a,"_").concat(o);return(0,t.jsx)(p,f({normalWordBreak:l,style:n[a][o].css},{children:(0,t.jsx)("span",{children:e})}),i)}))},o)}))})}))}))};u.propTypes={data:(0,o.arrayOf)((0,o.arrayOf)((0,o.oneOfType)([o.string,o.number]))),cellStyles:(0,o.arrayOf)((0,o.arrayOf)((0,o.shape)({css:o.object}))),tableStyles:(0,o.shape)({css:(0,o.shape)({tableLayout:(0,o.oneOf)(["auto","fixed"])})}),id:o.string,normalWordBreak:o.bool};const y=(0,n.Pi)(u)}}]);
//# sourceMappingURL=https://statics-view.genially.com/view/static/js/tableChart.3b751bc2.chunk.js.map