"use strict";(self.webpackChunk_genially_view_client=self.webpackChunk_genially_view_client||[]).push([[323],{31629:(e,t,a)=>{a.r(t),a.d(t,{GTableChart:()=>m,default:()=>h});var l=a(18659),n=a(96421),r=a(50968),o=a(33583);const i=r.ZP.div({width:"100%",height:"100%",wordBreak:"break-all",fontFamily:"'Source Sans Pro', sans-serif"}),c=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,a)=>a?"td":0===e&&0!==t||0===t&&0!==e?"th":"td",m=(0,n.Pi)((e=>{let{titleLabel:t,data:a,id:n,cellStyles:r,tableStyles:o,normalWordBreak:m,style:h,prefix:f,suffix:v,unsafe:y=!1}=e;const w="fixed"===(null===o||void 0===o?void 0:o.layout);return l.createElement(i,{className:"genially-chart-wrapper",style:h},l.createElement(c,{fixed:w},l.createElement("tbody",null,a.map(((e,t)=>{const a="t_".concat(n,"_r_").concat(t);return l.createElement("tr",{key:a},e.map(((e,a)=>{var o,i;const c="t_".concat(n,"_c_").concat(t,"_").concat(a),s=((e,t,a,l,n)=>0===t||0===a?"".concat(e):"".concat(l||""," ").concat(e," ").concat(n||"").trim())(e,t,a,f,v);return l.createElement(d,{normalWordBreak:m,style:r?null===r||void 0===r||null===(o=r[t])||void 0===o||null===(i=o[a])||void 0===i?void 0:i.css:void 0,key:c,as:p(t,a,y),scope:u(t,a)},l.createElement("span",null,s))})))}))),!y&&t&&l.createElement(s,null,t)))})),h=m}}]);
//# sourceMappingURL=https://s3-static-genially.genially.com/view/static/js/tableChart.0e74310d.chunk.js.map