"use strict";(self.webpackChunk_genially_view_client=self.webpackChunk_genially_view_client||[]).push([[7140],{37646:(e,n,t)=>{t.d(n,{q:()=>a});var i=t(45992),l=t(37577),o=t(53113),s=t(67619);const d=e=>{let{slides:n,onClickSelectedImage:t,onZoomedOut:l,mosaicType:o,viewId:d}=e;if(!o)return null;const a=(0,s.Hu)(o);return(0,i.jsx)(a,{slides:n,onClickSelectedImage:t,onZoomedOut:l,viewId:d})},a=e=>{let{slides:n,viewId:t,onZoomed:s,mosaicType:a,theme:r,t:c}=e;return(0,i.jsx)(o.i.Provider,{value:{t:c},children:(0,i.jsx)(l.NP,{theme:r,children:(0,i.jsx)("div",{style:{display:"flex",alignItems:"center",height:"100%"},children:(0,i.jsx)(d,{slides:n,onClickSelectedImage:e=>{null===s||void 0===s||s(void 0!==e)},onZoomedOut:()=>{null===s||void 0===s||s(!1)},mosaicType:a,viewId:t})})})})}},77140:(e,n,t)=>{t.r(n),t.d(n,{geniallyMosaicViewScript:()=>d});var i=t(45992),l=t(54072),o=t(41381),s=t(37646);const d=(e,n)=>{const{slideList:t,mosaicType:d}=e.config,{viewId:a}=n,r=e=>{n.setIsExternalModalOpen(e)},c=t.map((e=>({image:e.image.source,title:e.title,id:(0,l.Ak)(),altText:e.image.altText})));(0,o.p)({getTargetNodeItem:e=>e.nodeRichContent,initialState:void 0,renderApp:()=>()=>(0,i.jsx)(s.q,{slides:c,mosaicType:d,onZoomed:r,viewId:a,theme:n.theme,t:n.t})})(e,n)}},41381:(e,n,t)=>{t.d(n,{p:()=>s});var i=t(70377),l=t(66264),o=t(60708);function s(e){let{getTargetNodeItem:n,renderApp:t,initialState:s}=e,d=!1;const a=[],r=e=>{a.push(e)};return e=>{const c=n(e.config),u=null===c||void 0===c?void 0:c.parentSlide;function m(){if(!c)return;let e=null;if("idOfFreeNode"in c)e=document.getElementById(c.idOfFreeNode);else{const n=document.createElement("div");n.innerHTML=c.source;let t=n.getElementsByClassName("genially-widget-app");t.length||(t=n.getElementsByClassName("genially-widget-gallery"));const{id:i}=t[0];if(!i)return;e=document.getElementById(i)}if(e){const n=l=>{if(d){const o=t({setState:n,onUnmount:r});i.render(o(l),e)}else console.warn('"rerender" was called when the widget was already unmounted. This is a no-op. Did you forget to dispose of an event handler with "onUnmount"?')};d=!0,n(s),a.push((()=>{i.unmountComponentAtNode(e)}))}}function g(){d=!1,a.forEach((e=>{e()})),a.length=0}null===c||void 0===c||c.on(l.q.Mount,(()=>{m()})),null===c||void 0===c||c.on(l.q.Unmount,(()=>{g()})),c&&"isTransversal"in c&&c.isTransversal?m():null===u||void 0===u||u.on(o.m.Entering,(()=>{d||m()})),null===u||void 0===u||u.on(o.m.Exited,(()=>{c&&"isTransversal"in c&&c.isTransversal||d&&g()}))}}}}]);
//# sourceMappingURL=https://s3-static-genially.genially.com/view/static/js/7140.122fac9a.chunk.js.map