"use strict";(self.webpackChunk_genially_view_client=self.webpackChunk_genially_view_client||[]).push([[7140],{37646:(e,n,t)=>{t.d(n,{q:()=>d});var i=t(45992),l=t(37577),o=t(67619);const s=e=>{let{slides:n,onClickSelectedImage:t,onZoomedOut:l,mosaicType:s,viewId:d}=e;if(!s)return null;const a=(0,o.Hu)(s);return(0,i.jsx)(a,{slides:n,onClickSelectedImage:t,onZoomedOut:l,viewId:d})},d=e=>{let{slides:n,viewId:t,onZoomed:o,mosaicType:d,theme:a}=e;return(0,i.jsx)(l.NP,{theme:a,children:(0,i.jsx)("div",{style:{display:"flex",alignItems:"center",height:"100%"},children:(0,i.jsx)(s,{slides:n,onClickSelectedImage:e=>{null===o||void 0===o||o(void 0!==e)},onZoomedOut:()=>{null===o||void 0===o||o(!1)},mosaicType:d,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})})(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),m=null===c||void 0===c?void 0:c.parentSlide;function u(){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,(()=>{u()})),null===c||void 0===c||c.on(l.q.Unmount,(()=>{g()})),c&&"isTransversal"in c&&c.isTransversal?u():null===m||void 0===m||m.on(o.m.Entering,(()=>{d||u()})),null===m||void 0===m||m.on(o.m.Exited,(()=>{c&&"isTransversal"in c&&c.isTransversal||d&&g()}))}}}}]);
//# sourceMappingURL=https://s3-static-genially.genially.com/view/static/js/7140.fb26820f.chunk.js.map