"use strict";(self.webpackChunk_genially_view_client=self.webpackChunk_genially_view_client||[]).push([[7140],{37646:(e,n,t)=>{t.d(n,{q:()=>s});var i=t(45992),o=t(37577),l=t(23119),d=t(67619);const r=e=>{let{slides:n,onClickSelectedImage:t,onZoomedOut:o,mosaicType:l,viewId:r}=e;if(!l)return null;const s=(0,d.Hu)(l);return(0,i.jsx)(s,{slides:n,onClickSelectedImage:t,onZoomedOut:o,viewId:r})},s=e=>{let{slides:n,viewId:t,onZoomed:d,mosaicType:s,theme:a,t:u}=e;return(0,i.jsx)(l.i.Provider,{value:{t:u},children:(0,i.jsx)(o.NP,{theme:a,children:(0,i.jsx)("div",{style:{display:"flex",alignItems:"center",height:"100%"},children:(0,i.jsx)(r,{slides:n,onClickSelectedImage:e=>{null===d||void 0===d||d(void 0!==e)},onZoomedOut:()=>{null===d||void 0===d||d(!1)},mosaicType:s,viewId:t})})})})}},77140:(e,n,t)=>{t.r(n),t.d(n,{geniallyMosaicViewScript:()=>r});var i=t(45992),o=t(54072),l=t(41381),d=t(37646);const r=(e,n)=>{const{slideList:t,mosaicType:r}=e.config,{viewId:s}=n,a=e=>{n.setIsExternalModalOpen(e)},u=t.map((e=>({image:e.image.source,title:e.title,id:(0,o.Ak)(),altText:e.image.altText})));(0,l.p)({getTargetNodeItem:e=>e.nodeRichContent,initialState:void 0,renderApp:()=>()=>(0,i.jsx)(d.q,{slides:u,mosaicType:r,onZoomed:a,viewId:s,theme:n.theme,t:n.t})})(e,n)}},41381:(e,n,t)=>{t.d(n,{p:()=>d});var i=t(70377),o=t(66264),l=t(60708);function d(e){let{getTargetNodeItem:n,renderApp:t,renderThumbnailApp:d,initialState:r}=e,s=!1;const a=[],u=e=>{a.push(e)};return e=>{const c=n(e.config),m=null===c||void 0===c?void 0:c.parentSlide;function g(){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){let n;const o=t=>{s&&n?i.render(n(t),e):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"?')};n=t({setState:o,onUnmount:u}),s=!0,o(r),a.push((()=>{i.unmountComponentAtNode(e)}))}}function f(){s=!1,a.forEach((e=>{e()})),a.length=0}function h(){if(!c||!("idOfThumbnailFreeNode"in c))return[];const e=document.getElementsByClassName(c.idOfThumbnailFreeNode);return Array.from(e).filter((e=>e instanceof HTMLElement))}const p=c&&"isTransversal"in c&&c.isTransversal,v=()=>{null===c||void 0===c||c.on(o.q.Mount,(()=>{g()})),null===c||void 0===c||c.on(o.q.Unmount,(()=>{f()}))};p?v():(null===m||void 0===m||m.on(l.m.Entering,(()=>{s||(g(),s||v())})),null===m||void 0===m||m.on(l.m.Exited,(()=>{s&&f()}))),null===m||void 0===m||m.on(l.m.ThumbnailMount,(()=>{!function(){if(!d||!c||!("idOfThumbnailFreeNode"in c))return;h().forEach((e=>{i.unmountComponentAtNode(e)}))}(),function(){if(!d||!c||!("idOfThumbnailFreeNode"in c))return;h().forEach((e=>{const{renderingSlideId:n}=e.dataset;i.render(d({renderingSlideId:n}),e)}))}()}))}}}}]);
//# sourceMappingURL=https://s3-static-genially.genially.com/view/static/js/7140.63cce4d0.chunk.js.map