"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9444],{98167:function(e,t,n){var o=n(52322),i=n(2784);t.Z=function(e){var t=e.children,n=e.fallback,r=void 0===n?null:n,a=(0,i.useState)(!1),c=a[0],d=a[1];return(0,i.useEffect)((function(){d(!0)}),[]),c?(0,o.jsx)(o.Fragment,{children:t}):(0,o.jsx)(o.Fragment,{children:r})}},99417:function(e,t,n){n.d(t,{Z:function(){return r}});var o=n(2784),i=n(62297);function r(){var e=(0,o.useContext)(i.zz);if(!e)throw new Error("useContentWidth must be used within a ContentWidthProvider");return e.width}},96117:function(e,t,n){n.d(t,{Z:function(){return i}});var o=n(2784);function i(){var e=(0,o.useState)(!1),t=e[0],n=e[1];return(0,o.useEffect)((function(){if(!t){var e=function(){return n(!0)};return document.addEventListener("mouseover",e,{once:!0}),document.addEventListener("touchstart",e,{once:!0}),function(){document.removeEventListener("mouseover",e),document.removeEventListener("touchstart",e)}}})),t}},86957:function(e,t,n){n.d(t,{Z:function(){return r}});var o=n(2784),i=n(99417);function r(){var e=(0,i.Z)(),t=(0,o.useState)(e<=959),n=t[0],r=t[1];return(0,o.useEffect)((function(){var t=navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform),n=0===e?window.innerWidth:e;r(!!(n<=959||t))}),[e]),n}},37284:function(e,t,n){n.d(t,{Z:function(){return r}});var o=n(47269),i=n(41059);function r(e,t){var n=t.navigate,r=t.config,a=(0,i.Z)(r.pages),c=e.split("#")[0],d=a.find((function(e){return"urlPath"in e&&e.urlPath===c}));d&&n({screen:o.m.Sections,pageKeyChain:d.keyChain})}},72952:function(e,t,n){n.d(t,{KT:function(){return d},R$:function(){return s},Un:function(){return o}});var o,i=n(17064),r=n(52823),a=n(41059),c=n(80165),d=function(e){if("undefined"!==typeof document){var t=document.getElementById(e);null===t||void 0===t||t.scrollIntoView({behavior:"smooth",block:"start"})}};!function(e){e.TEL_MAIL_LINK="TEL_MAIL_LINK",e.EXTERNAL_LINK="EXTERNAL_LINK",e.INTERNAL_LINK="INTERNAL_LINK",e.INTERNAL_LINK_WITH_SECTION="INTERNAL_LINK_WITH_SECTION",e.INTERNAL_LINK_SECTION_ONLY="INTERNAL_LINK_SECTION_ONLY",e.EDITOR_ACTIVE_SAME_PAGE="EDITOR_ACTIVE_SAME_PAGE",e.EDITOR_ACTIVE_DIFFERENT_PAGE="EDITOR_ACTIVE_DIFFERENT_PAGE",e.INVALID_LINK="INVALID_LINK"}(o||(o={}));var s=function(e){var t=e.link,n=e.configPages,d=e.editorActive,s=e.editorActiveRoute,u=e.isPreview;if(t.match(/^tel:.*$/)||t.match(/^mailto:.*@.*$/))return o.TEL_MAIL_LINK;if(t.match(c.yV))return o.EXTERNAL_LINK;var l=!d&&!u;if(l&&t.includes("#"))return t.startsWith("/")?o.INTERNAL_LINK_WITH_SECTION:o.INTERNAL_LINK_SECTION_ONLY;if(!l){var f=(0,a.Z)(n),v=(0,r.rm)(f),g=(0,i.Z)(t.split("#"),2),h=g[0],m=g[1];return h&&!v.has(h)?o.INVALID_LINK:!m||h&&(null===s||void 0===s?void 0:s.route)!==h?o.EDITOR_ACTIVE_DIFFERENT_PAGE:o.EDITOR_ACTIVE_SAME_PAGE}return o.INTERNAL_LINK}},41882:function(e,t,n){n.d(t,{Z:function(){return f}});var o=n(52322),i=n(2784),r=n(39097),a=n.n(r),c=n(84882),d=n(41059),s=n(52123),u=n(44470),l=[s.S.THIRD_PARTY,s.S.SUNRISE_HTML,s.S.BOXY_EMBED,s.S.MODERN_EMBED,s.S.SUNRISE_PAYPAL,s.S.SUNRISE_MEDIUM_BLOG,s.S.SUNRISE_GOBOS];function f(e){var t=e.children,n=e.href;return function(){var e=(0,i.useContext)(c.E).unformattedConfig,t=(0,i.useContext)(u.a).editorActive;return(0,i.useMemo)((function(){if(t)return!1;var n=(0,d.Z)(e.pages).map((function(e){return"sections"in e?e.sections:[]})).flat().map((function(e){return e.section})),o=new Set(n);return!l.some((function(e){return o.has(e)}))}),[t])}()?(0,o.jsx)(a(),{href:n,passHref:!0,children:t}):i.cloneElement(t,{href:n})}},12116:function(e,t,n){n.d(t,{Z:function(){return V}});var o,i=n(67557),r=n(62230),a=n(52322),c=n(2784),d=n(25684),s=n(12524),u=n.n(s),l=n(86957),f=n(96117),v="https://www.youtube.com/iframe_api",g=(0,d.Z)({videoContainer:{overflow:"hidden",position:"relative",width:"100%",height:0,paddingBottom:0},includePaddingBottom:{paddingBottom:"56.25%"},background:{position:"static"},forceHeight:{width:"auto",height:"100%"},iframe:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},videoContainerFillContainer:{position:"relative",height:"100%"},iframeFillContainer:(o={top:"50%",left:"50%",width:"100vw",height:"100vh",position:"absolute",transform:"translate(-50%, -50%)"},(0,i.Z)(o,"@media (min-aspect-ratio: 16/9)",{height:"56.25vw"}),(0,i.Z)(o,"@media (max-aspect-ratio: 16/9)",{width:"177.78vh"}),o)}),h=(0,c.forwardRef)((function(e,t){var n=e.videoId,o=e.title,r=e.isBackground,d=void 0!==r&&r,s=e.controls,h=void 0!==s&&s,m=e.onStarted,p=e.onEnded,E=e.onPause,I=e.autoPlay,N=void 0!==I&&I,b=e.loop,w=void 0!==b&&b,y=e.forceHeight,L=void 0!==y&&y,_=e.muted,P=void 0!==_&&_,T=e.includePaddingBottom,C=void 0===T||T,A=e.fillContainer,Z=void 0!==A&&A,S=e.className,x=void 0===S?"":S,k=e.shouldLoadAsset,R=void 0===k||k,j=e.style,B=void 0===j?{}:j,V=(0,f.Z)(),F=N&&V,K=g(),D=(0,c.useRef)(performance.now()),O=(0,c.useState)(),Y=O[0],H=O[1],M=(0,l.Z)();(0,c.useEffect)((function(){Y&&(M||!R?Y.stopVideo():F&&Y.playVideo())}),[M,Y,F,R]);var G=(0,c.useCallback)((function(e){switch(e.data){case YT.PlayerState.ENDED:p&&p(),w&&(e.target.seekTo(0,!0),e.target.playVideo());break;case YT.PlayerState.PLAYING:m&&m();break;case YT.PlayerState.PAUSED:E&&E()}}),[m,p,w,E]),W=(0,c.useCallback)((function(e){P&&e.target.mute(),F&&e.target.playVideo(),H(e.target)}),[P,F]);(0,c.useEffect)((function(){Boolean(document.querySelector('script[src="'.concat(v,'"]')))||globalThis.loadedYoutubeAPI||(globalThis.loadedYoutubeAPI=!0,new Promise((function(e){if("undefined"!==typeof document){var t=document.createElement("script");t.src=v;var n=document.getElementsByTagName("script")[0];n&&n.parentNode&&n.parentNode.insertBefore(t,n),window.onYouTubeIframeAPIReady=function(){return e(window.YT)}}})).catch((function(){globalThis.loadedYoutubeAPI=!1})).then((function(){new window.YT.Player("".concat(n).concat(D.current,"-player"),{playerVars:{controls:h?1:0},events:{onStateChange:G,onReady:W},host:"https://www.youtube.com"})})))}),[n,G,W,D,h]);var U,z,X=!1===h?"&controls=0":"";return(0,a.jsx)("div",{className:u()((U={},(0,i.Z)(U,x,!0),(0,i.Z)(U,K.videoContainer,!0),(0,i.Z)(U,K.includePaddingBottom,C),(0,i.Z)(U,K.background,d),(0,i.Z)(U,K.forceHeight,L),(0,i.Z)(U,K.videoContainerFillContainer,Z),U)),style:B,children:(0,a.jsx)("iframe",{src:"https://www.youtube.com/embed/".concat(n,"?enablejsapi=1").concat(X,"&origin=").concat(window.location.origin),id:"".concat(n).concat(D.current,"-player"),frameBorder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,title:o,className:u()((z={},(0,i.Z)(z,K.iframe,!0),(0,i.Z)(z,K.iframeFillContainer,Z),z)),ref:t})})})),m=h,p=n(80165),E=n(18457),I=n(56665),N=n(14730),b=n(84882),w=n(94828),y=n(25237),L=n.n(y)()((function(){return n.e(3587).then(n.bind(n,80571))}),{loadableGenerated:{webpack:function(){return[80571]}}}),_=(0,d.Z)({videoContainer:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",position:"relative"},controlContainer:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},video:{width:"100%",maxWidth:"100%"},backgroundVideo:{objectFit:"cover",width:"100%",height:"100%",backgroundColor:"black"},ieBackgroundVideo:{height:"unset"},icon:{color:"white",fontSize:"64px"},forceHeight:{width:"auto",height:"100%"}}),P=(0,c.forwardRef)((function(e,t){var n=e.title,o=e.isBackground,d=void 0!==o&&o,s=e.shouldLoadAsset,v=void 0!==s&&s,g=e.src,h=e.customPlayButton,m=void 0!==h&&h,p=e.controls,y=void 0!==p&&p,P=e.autoPlay,T=void 0!==P&&P,C=e.loop,A=void 0!==C&&C,Z=e.forceHeight,S=void 0!==Z&&Z,x=e.muted,k=void 0===x||x,R=e.onStarted,j=e.onEnded,B=e.onPause,V=e.className,F=void 0===V?"":V,K=e.style,D=void 0===K?{}:K,O=(0,f.Z)(),Y=T&&O,H=(0,c.useContext)(b.E).config.template,M=(0,c.useState)(!1),G=M[0],W=M[1],U=(0,c.useState)(!0),z=U[0],X=U[1],$=(0,c.useState)(!1),q=$[0],Q=$[1],J=(0,c.useState)(!1),ee=J[0],te=J[1],ne=(0,l.Z)(),oe=_();(0,c.useEffect)((function(){var e=function(e){e.ended&&(X(!0),Q(!0))},n=function(){X(!1),te(!1),W(!0)},o=function(){X(!0)},i=function(){te(!0)};if(m){var r=t.current;return r.addEventListener("timeupdate",(function(){return e(r)})),r.addEventListener("play",n),r.addEventListener("pause",o),r.addEventListener("seeking",i),function(){r.removeEventListener("timeupdate",(function(){return e(r)})),r.removeEventListener("play",n),r.removeEventListener("pause",o),r.removeEventListener("seeking",i)}}}),[m,g,t]),(0,c.useEffect)((function(){var e=null===t||void 0===t?void 0:t.current;null!=e&&(ne?(e.pause&&e.pause(),X(!0)):Y&&e.play&&e.play().then((function(){return X(!1)})))}),[ne,t,Y]);var ie,re,ae=function(e){e.preventDefault(),e.stopPropagation();var n=t.current;if(z&&null!=n){if(q&&Q(!1),!n.play)return;n.play()}else{if(!n.pause)return;n.pause()}};"bold"===H?ie=(0,a.jsx)(L,{isVideoEnded:q}):ie=(0,a.jsx)(E.Z,{className:u()((re={},(0,i.Z)(re,I.gh,q),(0,i.Z)(re,I.Kp,!q),(0,i.Z)(re,oe.icon,!0),re))});var ce,de="sunrise"===H?{objectFit:z?"cover":"contain"}:void 0,se=g;return"undefined"!==typeof navigator&&navigator.userAgent&&!/iPad|iPhone|iPod/.test(navigator.userAgent)&&(se="".concat(g,"#t=1.1")),(0,a.jsxs)("div",{className:oe.videoContainer,children:[(0,a.jsx)("video",{preload:"metadata",controls:y,title:n,className:u()(F,(ce={},(0,i.Z)(ce,oe.video,!d),(0,i.Z)(ce,oe.backgroundVideo,d),(0,i.Z)(ce,oe.ieBackgroundVideo,N.w1&&d),(0,i.Z)(ce,oe.forceHeight,S),ce)),style:(0,r.Z)({},de,D),ref:t,muted:k,onPlay:R,onEnded:j,onPause:B,autoPlay:!ne&&Y,loop:!ne&&A,poster:(0,w.Qe)(g),children:O&&v&&(0,a.jsx)("source",{src:se})},se),m&&(!G||!ee&&(q||z))&&(0,a.jsx)("div",{className:oe.controlContainer,style:{background:"".concat(z?"rgba(0, 0, 0, 0.4)":"rgba(0, 0, 0, 0)")},onClick:ae,onKeyPress:ae,role:"button",tabIndex:0,"aria-label":"Play button for video with title: ".concat(n),children:z&&ie})]})})),T=P,C=n(98167),A=n(96366),Z=n(17064);function S(e){var t=(0,Z.Z)(function(e){3===(e=e.replace(/^#/,"")).length&&(e=e.split("").map((function(e){return e+e})).join(""));var t=parseInt(e,16);return[(t>>16&255)/255,(t>>8&255)/255,(255&t)/255]}(e),3),n=t[0],o=t[1],i=t[2];return"\n      0 0 0 0 ".concat(n,"\n      0 0 0 0 ").concat(o,"\n      0 0 0 0 ").concat(i,"\n      0 0 0 1 0\n  ").trim().replace(/\s+/g," ")}var x=n(2379),k={};function R(e){var t=e.src,n=e.iconColor,o=e.shouldLoadAsset,i=(0,c.useRef)((0,x.Z)());return k[n]||(k[n]=S(n)),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"0",height:"0",children:(0,a.jsx)("filter",{id:i.current,colorInterpolationFilters:"sRGB",children:(0,a.jsx)("feColorMatrix",{type:"matrix",values:k[n]})})}),(0,a.jsx)("img",{src:o?t:"",alt:"icon",style:{filter:"url(#".concat(i.current,")"),width:"100%",height:"100%"}})]})}var j=(0,d.Z)({imgContainer:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},fillImgContainer:{position:"relative",display:"block",width:"100%",height:"100%"},img:{maxWidth:"100%",maxHeight:"100%"},bgWrap:{position:"fixed",height:"100vh",width:"100vw",overflow:"hidden",zIndex:-1},backgroundImage:{backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center"},backgroundImageNested:{width:"100%"},backgroundImageNoNested:{position:"absolute",top:"0",left:"0",bottom:"0",right:"0"}}),B=(0,c.forwardRef)((function(e,t){var n=e.className,o=e.containerClassName,d=e.src,s=e.title,l=e.children,f=e.isBackground,v=void 0!==f&&f,g=e.shouldLoadAsset,h=void 0===g||g,E=e.onVideoStarted,I=e.onVideoEnded,N=e.onVideoPause,y=e.draggable,L=e.customPlayButton,_=void 0!==L&&L,P=e.muted,Z=void 0!==P&&P,S=e.controls,x=void 0!==S&&S,k=e.autoPlay,B=void 0!==k&&k,V=e.loop,F=void 0!==V&&V,K=e.forceHeight,D=void 0!==K&&K,O=e.includeYTPaddingBottom,Y=void 0===O||O,H=e.fillYTContainer,M=void 0!==H&&H,G=e.objectFit,W=void 0===G?"cover":G,U=e.loading,z=void 0===U?"lazy":U,X=e.style,$=void 0===X?{}:X,q=e.containerStyle,Q=void 0===q?{}:q,J=e.iconColor,ee=void 0===J?"#000000":J,te=j(),ne=(0,c.useRef)(null),oe=(0,c.useContext)(b.E),ie=oe.config,re=oe.isPreview,ae=ie.id,ce=re&&d.startsWith("/")?"/".concat(ae,"/static").concat(d):d;switch(function(){var e=(0,p.qw)(d);return"image"!==e&&""!==d||l||v?"image"!==e&&""!==d||!l&&!v?e:"backgroundImage":"image"}()){case"icon":return(0,a.jsx)(R,{src:ce,iconColor:ee,shouldLoadAsset:h});case"image":return(0,a.jsx)("div",{className:u()(o,te.imgContainer),style:Q,children:(0,a.jsx)("img",{loading:z,src:h?ce||(0,w.ZP)(A.Z):"",alt:s,ref:null!==t&&void 0!==t?t:ne,className:u()(n,te.img),style:(0,r.Z)({objectFit:W},$),draggable:y})});case"backgroundImage":var de,se;return l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{loading:z,src:ce||(0,w.ZP)(A.Z),alt:null!==s&&void 0!==s?s:"",draggable:y,className:u()(n,(se={},(0,i.Z)(se,te.backgroundImageNoNested,v),(0,i.Z)(se,te.backgroundImageNested,!v),se)),style:(0,r.Z)({objectFit:W,position:"absolute",height:"100%",width:"100%",inset:"0px",color:"transparent"},$)}),l]}):(0,a.jsx)("img",{loading:z,src:ce||(0,w.ZP)(A.Z),alt:null!==s&&void 0!==s?s:"",draggable:y,className:u()(n,(de={},(0,i.Z)(de,te.backgroundImageNoNested,v),(0,i.Z)(de,te.backgroundImageNested,!v),de)),style:(0,r.Z)({objectFit:W,position:"absolute",height:"100%",width:"100%",inset:"0px",color:"transparent"},$)});case"video":return(0,a.jsx)(T,{className:n,title:s,style:$,isBackground:v,ref:null!==t&&void 0!==t?t:ne,muted:Z,controls:x,onStarted:E,onEnded:I,onPause:N,shouldLoadAsset:h,src:ce,autoPlay:B,customPlayButton:_,loop:F,forceHeight:D});case"youtube":var ue=(0,p.XQ)(d);return(0,a.jsx)(C.Z,{children:(0,a.jsx)(m,{className:n,style:$,videoId:ue&&ue[1]||"",title:s,isBackground:v,ref:null!==t&&void 0!==t?t:ne,controls:x,onStarted:E,onEnded:I,onPause:N,autoPlay:B,loop:F,forceHeight:D,muted:Z,includePaddingBottom:Y,fillContainer:M,shouldLoadAsset:h})});default:return null}})),V=B}}]);