"use strict";(self.webpackChunk_genially_view_client=self.webpackChunk_genially_view_client||[]).push([[7140],{37646:(e,n,t)=>{t.d(n,{q:()=>r});var i=t(45992),o=t(37577),l=t(23119),d=t(67619);const s=e=>{let{slides:n,onClickSelectedImage:t,onZoomedOut:o,mosaicType:l,viewId:s}=e;if(!l)return null;const r=(0,d.Hu)(l);return(0,i.jsx)(r,{slides:n,onClickSelectedImage:t,onZoomedOut:o,viewId:s})},r=e=>{let{slides:n,viewId:t,onZoomed:d,mosaicType:r,theme:a,t:m}=e;return(0,i.jsx)(l.i.Provider,{value:{t:m},children:(0,i.jsx)(o.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===d||void 0===d||d(void 0!==e)},onZoomedOut:()=>{null===d||void 0===d||d(!1)},mosaicType:r,viewId:t})})})})}},77140:(e,n,t)=>{t.r(n),t.d(n,{geniallyMosaicViewScript:()=>s});var i=t(45992),o=t(54072),l=t(41381),d=t(37646);const s=(e,n)=>{const{slideList:t,mosaicType:s}=e.config,{viewId:r}=n,a=e=>{n.setIsExternalModalOpen(e)},m=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:m,mosaicType:s,onZoomed:a,viewId:r,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:s}=e,r=!1;const a=[],m=e=>{a.push(e)};return e=>{const u=n(e.config),c=null===u||void 0===u?void 0:u.parentSlide;function g(){if(!u)return;let e=null;if("idOfFreeNode"in u)e=document.getElementById(u.idOfFreeNode);else{const n=document.createElement("div");n.innerHTML=u.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=>{r&&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:m}),r=!0,o(s),a.push((()=>{i.unmountComponentAtNode(e)}))}}function h(){r=!1,a.forEach((e=>{e()})),a.length=0}u&&"isTransversal"in u&&u.isTransversal?(null===u||void 0===u||u.on(o.q.Mount,(()=>{g()})),null===u||void 0===u||u.on(o.q.Unmount,(()=>{h()}))):(null===c||void 0===c||c.on(l.m.Entering,(()=>{r||g()})),null===c||void 0===c||c.on(l.m.Exited,(()=>{r&&h()}))),null===c||void 0===c||c.on(l.m.ThumbnailMount,(()=>{!function(){if(!d||!u||!("idOfThumbnailFreeNode"in u))return;const e=document.getElementsByClassName(u.idOfThumbnailFreeNode);Array.from(e).forEach((e=>{i.unmountComponentAtNode(e)}))}(),function(){if(!d||!u||!("idOfThumbnailFreeNode"in u))return;const e=document.getElementsByClassName(u.idOfThumbnailFreeNode);Array.from(e).forEach((e=>{i.render(d(),e)}))}()}))}}}}]);
//# sourceMappingURL=https://s3-static-genially.genially.com/view/static/js/7140.dad9db01.chunk.js.map