"use strict";(self.webpackChunk_genially_view_client=self.webpackChunk_genially_view_client||[]).push([[323],{93503:(e,t,n)=>{n.r(t),n.d(t,{default:()=>y});var r=n(29324),a=n(85159),i=n(94071),o=n(88345),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-180h0m7"})({width:"100%",height:"100%",wordBreak:"break-all"}),d=i.ZP.table.withConfig({displayName:"TableStyled",componentId:"sc-1y7jx77"})((function(e){return{borderCollapse:"collapse",height:"100%",width:"100%",tableLayout:e.fixed?"fixed":"auto"}})),s=i.ZP.td.withConfig({displayName:"TableCell",componentId:"sc-hev7g9"})((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-ng2tpb"})({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)},h=function(e,t){return 0===e&&0!==t?"col":0===t&&0!==e?"row":void 0},f=function(e,t,n){return n?"td":0===e&&0!==t||0===t&&0!==e?"th":"td"};const y=(0,a.Pi)((function(e){var t,n=e.titleLabel,a=e.data,i=e.id,o=e.cellStyles,c=e.tableStyles,y=e.normalWordBreak,v=e.style,b=e.prefix,m=e.suffix,g=e.unsafe,w=void 0!==g&&g,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:v},{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,b,m);return(0,r.jsx)(s,u({normalWordBreak:y,style:o?o[t][n].css:void 0,as:f(t,n,w),scope:h(t,n)},{children:(0,r.jsx)("span",{children:c})}),a)}))},n)}))}),!w&&n&&(0,r.jsx)(p,{children:n})]}))}))}))}}]);
//# sourceMappingURL=https://statics-view.genially.com/view/static/js/tableChart.7da06feb.chunk.js.map