"use strict";(self.webpackChunk_genially_view_client=self.webpackChunk_genially_view_client||[]).push([[227],{7546:(e,t,a)=>{a.r(t),a.d(t,{GTableChart:()=>m,default:()=>y});var l=a(17588),n=a(14726),r=a(37577),o=a(25921);const i=r.Ay.div({width:"100%",height:"100%",wordBreak:"break-all",fontFamily:"'Source Sans Pro', sans-serif"}),c=r.Ay.table((e=>{let{fixed:t}=e;return{borderCollapse:"collapse",height:"100%",width:"100%",tableLayout:t?"fixed":"auto"}})),d=r.Ay.td((e=>{let{normalWordBreak:t}=e;return{...o.iF.mixins.increaseSpecificity({padding:"0.15em"}),...t?{overflow:"hidden",wordBreak:"normal"}:{}}})),s=r.Ay.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.PA)((e=>{let{titleLabel:t,data:a,id:n,cellStyles:r,tableStyles:o,normalWordBreak:m,style:y,prefix:h,suffix:f,unsafe:v=!1}=e;const w="fixed"===(null===o||void 0===o?void 0:o.layout);return l.createElement(i,{className:"genially-chart-wrapper",style:y},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,h,f);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,v),scope:u(t,a)},l.createElement("span",null,s))})))}))),!v&&t&&l.createElement(s,null,t)))})),y=m}}]);
//# sourceMappingURL=https://s3-static-genially.genially.com/view/static/js/tableChart.3328387f.chunk.js.map