"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:()=>u});var t=r(29324),n=r(85159),l=r(33673),o=r(94071),i=r(44332),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=o.ZP.div.withConfig({displayName:"TableChartWrapper",componentId:"sc-7mmcdf"})((function(){return{width:"100%",height:"100%",wordBreak:"break-all"}})),d=o.ZP.table.withConfig({displayName:"TableStyled",componentId:"sc-1fo5yv"})((function(e){return{borderCollapse:"collapse",height:"100%",width:"100%",tableLayout:e.fixed?"fixed":"auto"}})),p=o.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)},y=function(e){var a=e.data,r=e.id,n=e.cellStyles,l=e.tableStyles,o=e.normalWordBreak,i=e.style,c="fixed"===l.css.tableLayout;return(0,t.jsx)(s,f({className:"genially-chart-wrapper",style:i},{children:(0,t.jsx)(d,f({fixed:c},{children:(0,t.jsx)("tbody",{children:a.map((function(e,a){var l="t_".concat(r,"_r_").concat(a);return(0,t.jsx)("tr",{children:e.map((function(e,l){var i="t_".concat(r,"_c_").concat(a,"_").concat(l);return(0,t.jsx)(p,f({normalWordBreak:o,style:n[a][l].css},{children:(0,t.jsx)("span",{children:e})}),i)}))},l)}))})}))}))};y.propTypes={data:(0,l.arrayOf)((0,l.arrayOf)((0,l.oneOfType)([l.string,l.number]))),cellStyles:(0,l.arrayOf)((0,l.arrayOf)((0,l.shape)({css:l.object}))),tableStyles:(0,l.shape)({css:(0,l.shape)({tableLayout:(0,l.oneOf)(["auto","fixed"])})}),id:l.string,normalWordBreak:l.bool,style:l.object};const u=(0,n.Pi)(y)}}]);
//# sourceMappingURL=https://statics-view.genially.com/view/static/js/tableChart.d0330198.chunk.js.map