"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.item,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 m=n(e.config),c=null===m||void 0===m?void 0:m.parentSlide;function g(){if(!m)return;let e=null;if("idOfFreeNode"in m)e=document.getElementById(m.idOfFreeNode);else{const n=document.createElement("div");n.innerHTML=m.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(!m||!("idOfThumbnailFreeNode"in m))return[];const e=document.getElementsByClassName(m.idOfThumbnailFreeNode);return Array.from(e).filter((e=>e instanceof HTMLElement))}const p=m&&"isTransversal"in m&&m.isTransversal,v=()=>{null===m||void 0===m||m.on(o.q.Mount,(()=>{g()})),null===m||void 0===m||m.on(o.q.Unmount,(()=>{f()}))};p?v():(null===c||void 0===c||c.on(l.m.Entering,(()=>{s||(g(),s||v())})),null===c||void 0===c||c.on(l.m.Exited,(()=>{s&&f()}))),null===c||void 0===c||c.on(l.m.ThumbnailMount,(()=>{!function(){if(!d||!m||!("idOfThumbnailFreeNode"in m))return;h().forEach((e=>{i.unmountComponentAtNode(e)}))}(),function(){if(!d||!m||!("idOfThumbnailFreeNode"in m))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.0ece6d7c.chunk.js.map