"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=>{var t;let{titleLabel:a,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 l.createElement(i,{className:"genially-chart-wrapper",style:v},l.createElement(c,{fixed:w},l.createElement("tbody",null,n.map(((e,t)=>{const a="t_".concat(r,"_r_").concat(t);return l.createElement("tr",{key:a},e.map(((e,a)=>{var n,i;const c="t_".concat(r,"_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,y);return l.createElement(d,{normalWordBreak:h,style:o?null===o||void 0===o||null===(n=o[t])||void 0===n||null===(i=n[a])||void 0===i?void 0:i.css:void 0,key:c,as:p(t,a,b),scope:u(t,a)},l.createElement("span",null,s))})))}))),!b&&a&&l.createElement(s,null,a)))})),h=m}}]);
//# sourceMappingURL=https://statics-view.genially.com/view/static/js/tableChart.1f10bcde.chunk.js.map