"use strict";(self.webpackChunk_genially_view_client=self.webpackChunk_genially_view_client||[]).push([[323],{7289:(e,t,n)=>{n.r(t),n.d(t,{default:()=>m});var r=n(71869),a=n(47962),i=n(76647),o=n(17126),c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},c.apply(this,arguments)},l=i.ZP.div.withConfig({displayName:"TableChartWrapper",componentId:"sc-emmtep"})({width:"100%",height:"100%",wordBreak:"break-all"}),d=i.ZP.table.withConfig({displayName:"TableStyled",componentId:"sc-1ukuodm"})((function(e){return{borderCollapse:"collapse",height:"100%",width:"100%",tableLayout:e.fixed?"fixed":"auto"}})),s=i.ZP.td.withConfig({displayName:"TableCell",componentId:"sc-1m8tflu"})((function(e){var t=e.normalWordBreak;return c(c({},o.oB.mixins.increaseSpecificity({padding:"0.15em"})),t?{overflow:"hidden",wordBreak:"normal"}:{})})),p=i.ZP.caption.withConfig({displayName:"TableCaption",componentId:"sc-1j3d8q1"})({position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",border:"0"}),u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},u.apply(this,arguments)},f=function(e,t){return 0===e&&0!==t?"col":0===t&&0!==e?"row":void 0},h=function(e,t,n){return n?"td":0===e&&0!==t||0===t&&0!==e?"th":"td"};const m=(0,a.Pi)((function(e){var t,n=e.titleLabel,a=e.data,i=e.id,o=e.cellStyles,c=e.tableStyles,m=e.normalWordBreak,y=e.style,v=e.prefix,b=e.suffix,w=e.unsafe,g=void 0!==w&&w,x="fixed"===(null===(t=null===c||void 0===c?void 0:c.css)||void 0===t?void 0:t.tableLayout);return(0,r.jsx)(l,u({className:"genially-chart-wrapper",style:y},{children:(0,r.jsxs)(d,u({fixed:x},{children:[(0,r.jsx)("tbody",{children:a.map((function(e,t){var n="t_".concat(i,"_r_").concat(t);return(0,r.jsx)("tr",{children:e.map((function(e,n){var a="t_".concat(i,"_c_").concat(t,"_").concat(n),c=function(e,t,n,r,a){return 0===t||0===n?"".concat(e):"".concat(r||""," ").concat(e," ").concat(a||"").trim()}(e,t,n,v,b);return(0,r.jsx)(s,u({normalWordBreak:m,style:o?o[t][n].css:void 0,as:h(t,n,g),scope:f(t,n)},{children:(0,r.jsx)("span",{children:c})}),a)}))},n)}))}),!g&&n&&(0,r.jsx)(p,{children:n})]}))}))}))}}]);
//# sourceMappingURL=https://statics-view.genially.com/view/static/js/tableChart.a2d656a2.chunk.js.map