"use strict";(self.webpackChunk_genially_view_client=self.webpackChunk_genially_view_client||[]).push([[323],{31629:(e,t,l)=>{l.r(t),l.d(t,{GTableChart:()=>m,default:()=>h});var a=l(18659),n=l(96421),r=l(50968),o=l(37021);const c=r.ZP.div({width:"100%",height:"100%",wordBreak:"break-all"}),i=r.ZP.table((e=>{let{fixed:t}=e;return{borderCollapse:"collapse",height:"100%",width:"100%",tableLayout:t?"fixed":"auto"}})),d=r.ZP.td((e=>{let{normalWordBreak:t}=e;return{...o.oB.mixins.increaseSpecificity({padding:"0.15em"}),...t?{overflow:"hidden",wordBreak:"normal"}:{}}})),s=r.ZP.caption({position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",border:"0"}),u=(e,t)=>0===e&&0!==t?"col":0===t&&0!==e?"row":void 0,p=(e,t,l)=>l?"td":0===e&&0!==t||0===t&&0!==e?"th":"td",m=(0,n.Pi)((e=>{var t;let{titleLabel:l,data:n,id:r,cellStyles:o,tableStyles:m,normalWordBreak:h,style:v,prefix:f,suffix:y,unsafe:b=!1}=e;const w="fixed"===(null===m||void 0===m||null===(t=m.css)||void 0===t?void 0:t.tableLayout);return a.createElement(c,{className:"genially-chart-wrapper",style:v},a.createElement(i,{fixed:w},a.createElement("tbody",null,n.map(((e,t)=>{const l="t_".concat(r,"_r_").concat(t);return a.createElement("tr",{key:l},e.map(((e,l)=>{var n,c;const i="t_".concat(r,"_c_").concat(t,"_").concat(l),s=((e,t,l,a,n)=>0===t||0===l?"".concat(e):"".concat(a||""," ").concat(e," ").concat(n||"").trim())(e,t,l,f,y);return a.createElement(d,{normalWordBreak:h,style:o?null===o||void 0===o||null===(n=o[t])||void 0===n||null===(c=n[l])||void 0===c?void 0:c.css:void 0,key:i,as:p(t,l,b),scope:u(t,l)},a.createElement("span",null,s))})))}))),!b&&l&&a.createElement(s,null,l)))})),h=m}}]);
//# sourceMappingURL=https://statics-view.genially.com/view/static/js/tableChart.67eb6aac.chunk.js.map