"use strict";(self.webpackChunk_genially_view_client=self.webpackChunk_genially_view_client||[]).push([[56],{94253(e,n,t){t.d(n,{q:()=>a});var o=t(45992),i=t(37577);const r=i.Ay.div`
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
`,l=i.Ay.button`
  padding: 8px 16px;
  border: none;
  font-size: 16px;
  color: ${e=>{let{$textColor:n}=e;return n}};
  background-color: ${e=>{let{$backgroundColor:n}=e;return n}};
  border-radius: ${e=>{let{$borderRadius:n}=e;return n}};
  font-family: ${e=>{let{$fontFamily:n}=e;return null!==n&&void 0!==n?n:"inherit"}};
  font-weight: ${e=>{let{$bold:n}=e;return n?"bold":"normal"}};
  font-style: ${e=>{let{$italic:n}=e;return n?"italic":"normal"}};
  cursor: pointer;
`,d={pill:"9999px",rounded:"8px",square:"0"},a=e=>{let{text:n,textColor:t,backgroundColor:i,shape:a,fontFamily:u,bold:s,italic:c}=e;return(0,o.jsx)(r,{children:(0,o.jsx)(l,{type:"button",$textColor:t,$backgroundColor:i,$borderRadius:d[a],$fontFamily:u,$bold:s,$italic:c,children:n})})}},60056(e,n,t){t.d(n,{geniallyButtonViewScript:()=>l});var o=t(45992),i=t(41381),r=t(94253);const l=(e,n)=>{(0,i.p)({getTargetNodeItem:()=>e.item,initialState:void 0,renderApp:()=>()=>{const{text:n,textColor:t,defaultColor:i,shape:l,fontFamily:d,bold:a,italic:u}=e.config;return(0,o.jsx)(r.q,{text:n,textColor:t,backgroundColor:i,shape:l,fontFamily:""===d.name?void 0:d.name,bold:a,italic:u})}})(e,n)}},41381(e,n,t){t.d(n,{p:()=>l});var o=t(70377),i=t(66264),r=t(60708);function l(e){let{getTargetNodeItem:n,renderApp:t,renderThumbnailApp:l,initialState:d}=e,a=!1;const u=[],s=e=>{u.push(e)};return e=>{const c=n(e.config),m=null===c||void 0===c?void 0:c.parentSlide;function f(){a=!1,u.forEach((e=>{e()})),u.length=0}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:o}=t[0];if(!o)return;e=document.getElementById(o)}if(e){let n;const i=t=>{a&&n?o.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:i,onUnmount:s,unmountNow:f}),a=!0,i(d),u.push((()=>{o.unmountComponentAtNode(e)}))}}function p(){if(!c||!("idOfThumbnailFreeNode"in c))return[];const e=document.getElementsByClassName(c.idOfThumbnailFreeNode);return Array.from(e).filter((e=>e instanceof HTMLElement))}const h=c&&"isTransversal"in c&&c.isTransversal,y=()=>{null===c||void 0===c||c.on(i.q.Mount,(()=>{g()})),null===c||void 0===c||c.on(i.q.Unmount,(()=>{f()}))};h?y():(null===m||void 0===m||m.on(r.m.Entering,(()=>{a||(g(),a||y())})),null===m||void 0===m||m.on(r.m.Exited,(()=>{a&&f()}))),null===m||void 0===m||m.on(r.m.ThumbnailMount,(()=>{!function(){if(!l||!c||!("idOfThumbnailFreeNode"in c))return;p().forEach((e=>{o.unmountComponentAtNode(e)}))}(),function(){if(!l||!c||!("idOfThumbnailFreeNode"in c))return;p().forEach((e=>{const{renderingSlideId:n}=e.dataset;o.render(l({renderingSlideId:n}),e)}))}()}))}}}}]);
//# sourceMappingURL=https://s3-static-genially.genially.com/view/static/js/56.38c2ae31.chunk.js.map