1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{52077:function(e,n,o){o.d(n,{Z:function(){return v}});var t=o(14251),l=o(52875),i=o(85893),r=o(41664),a=o.n(r),s=o(16494),d=o(85405),c=o(67294),u=o(7004);function v(e){var n=e.button,o=e.type,r=e.block,v=e.website,f=e.action,m=e.loading,h=e.className,g=e.fallbackSize,p=e.onClick,x=(0,c.useState)({borderWidth:2,borderStyle:"solid",boxShadow:"none",fontFamily:"var(--body-fontFamily)",fontWeight:"var(--body-fontWeight, 500)",fontStyle:"var(--body-fontStyle)"}),y=x[0],b=x[1],j=(0,c.useState)(g||"lg"),w=j[0],N=j[1];return(0,c.useEffect)((function(){if(n&&r&&v){var e,o,i,a=(null===(e=v.colorPalette)||void 0===e||null===(o=e.Palette)||void 0===o?void 0:o.colors)||(null===(i=v.colorPalette)||void 0===i?void 0:i.colors)||[];if(a.length>0&&!v.noPaletteSupport){var s,c,u,f,m,h,p=a[(0,d.dz)(null===(s=r.layers)||void 0===s?void 0:s.palette)]||a[0];if(!n.style){var x=v.button||{background:v.secondaryColor,cornerRadius:8,style:"solid"};x.background||(x.background=v.secondaryColor),n.style={type:x.style,cornerRadius:x.cornerRadius,name:"custom"}}if("custom"===(null===(c=r.layers)||void 0===c?void 0:c.palette))p={color:null===(u=r.layers)||void 0===u||null===(f=u.overlay)||void 0===f?void 0:f.color1,accent:null===(m=r.layers)||void 0===m||null===(h=m.foreground)||void 0===h?void 0:h.accent};if("custom"===n.style.name)b((function(e){return(0,l.Z)((0,t.Z)({},e),{backgroundColor:"outline"===n.style.type?"transparent":p.accent,color:"outline"===n.style.type?(0,d.$O)(p.color):(0,d.$O)(p.accent),borderRadius:n.style.cornerRadius,borderColor:"outline"===n.style.type?(0,d.$O)(p.color):p.accent})})),N(n.style.size||g||"lg");else{var y=v.buttons&&v.buttons[n.style.name]||{type:"solid",cornerRadius:0};b((function(e){return(0,l.Z)((0,t.Z)({},e),{backgroundColor:"outline"===y.type?"transparent":p.accent,color:"outline"===y.type?(0,d.$O)(p.color):(0,d.$O)(p.accent),borderRadius:y.cornerRadius,borderColor:"outline"===y.type?(0,d.$O)(p.color):p.accent})})),N(y.size||g||"lg")}}else{var j=v.button||{background:v.secondaryColor,cornerRadius:8,style:"solid"};j.background||(j.background=v.secondaryColor),b((function(e){return(0,l.Z)((0,t.Z)({},e),{backgroundColor:"outline"===j.style?"transparent":j.background,color:"outline"===j.style?j.background:(0,d.$O)(j.background),borderRadius:isNaN(j.cornerRadius)?8:j.cornerRadius,borderColor:j.background})}))}}}),[n,r,v]),f||"submit"===o||"section"===n.type?(0,i.jsx)("button",{type:"submit"===o?"submit":"button",onClick:function(e){return(0,u.Gc)(e,n,f)},className:(0,d.AK)("button",h,w),style:y,disabled:m,children:m?(0,i.jsx)(s.Z,{}):n.label||"Button"}):p?(0,i.jsx)("a",{className:(0,d.AK)("button",h,w),style:y,onClick:p,children:n.label||"Button"}):(0,i.jsx)(a(),{href:(0,u.f$)(n,v),children:(0,i.jsx)("a",{className:(0,d.AK)("button",h,w),target:(0,u.U9)(n,v),rel:"_blank"===(0,u.U9)(n,v)?"noopener noreferrer":null,style:y,children:n.label||"Button"})})}},4433:function(e,n,o){o.d(n,{$h:function(){return c},c8:function(){return s},iz:function(){return v}});var t=o(14251),l=o(52875),i=o(85893),r=o(67294),a=o(62246),s=1928/118,d=[{id:"slantLeft",getPath:function(e){var n=Math.floor(e/s);return"M".concat(e," 0L-0 ").concat(n,"V0H").concat(e)}},{id:"slantRight",getPath:function(e){var n=Math.floor(e/s);return"M0 0L".concat(e," ").concat(n,"V0H0")}},{id:"pointUp",getPath:function(e){var n=Math.floor(e/s);return"M0 0V".concat(n,"L").concat(e/2," 0L").concat(e," ").concat(n,"L").concat(1.5*e," 0V0H0")}},{id:"pointDown",getPath:function(e){var n=Math.floor(e/s);return"M0 0L".concat(e/2," ").concat(n,"L").concat(e," 0H0")}},{id:"curveUp",getPath:function(e){var n=Math.floor(e/s);return"M0 0 C".concat(e/2," ").concat(n," ").concat(e-e/2," ").concat(n," ").concat(e," 0 L").concat(e," 0 L0 0")}},{id:"curveDown",getPath:function(e){var n=Math.floor(e/s);return"M0 ".concat(n," C").concat(e/2," 0 ").concat(e-e/2," 0 ").concat(e," ").concat(n," L").concat(e," 0 L0 0")}},{id:"waveLeft",getPath:function(e){var n=Math.floor(e/s);return"M0 0C0 0 ".concat(.2023*e," ").concat(n," ").concat(.3333*e," ").concat(n,"C").concat(.4681*e," ").concat(n," ").concat(.5318*e," 0 ").concat(.6667*e," 0C").concat(.8015*e," 0 ").concat(e," ").concat(n," ").concat(e," ").concat(n,"V0H0Z")}},{id:"waveRight",getPath:function(e){var n=Math.floor(e/s);return"M".concat(e," 0C").concat(e," 0 ").concat(.8*e," ").concat(n," ").concat(.666*e," ").concat(n,"C").concat(.547*e," ").concat(n," ").concat(.483*e," 0 ").concat(.333*e," 0C").concat(.184*e," 0 -0.00012207 ").concat(n," -0.00012207 ").concat(n,"V0H").concat(e)}},{id:"jaggedLeft",getPath:function(e){var n=Math.floor(e/s);return"M0 0L".concat(e/3," ").concat(n,"L").concat(e/1.5," 0L").concat(e," ").concat(n,"V0H0")}},{id:"jaggedRight",getPath:function(e){var n=Math.floor(e/s);return"M".concat(e," 0L").concat(e/1.5," ").concat(n,"L").concat(e/3," 0L0 ").concat(n,"V0H").concat(e)}},{id:"swoopLeft",getPath:function(e){var n=Math.floor(e/s);return"M0 ".concat(n,"C").concat(e," 0 ").concat(2*e," 0 ").concat(2*e," 0H0V").concat(n)}},{id:"swoopRight",getPath:function(e){var n=Math.floor(e/s);return"M".concat(e," ").concat(n,"C").concat(e/2," 0 0 0 0 0H").concat(2*e,"V").concat(n)}}];function c(e){return{zIndex:40-(null===e||void 0===e?void 0:e.idx)}}var u=function(e){var n=e.uniqueId,o=e.width,t=e.height,l=e.divider,r=Math.floor(o/s),a=Math.floor(o),c=Math.floor(t),u=Math.floor(t-r),v=d.find((function(e){return e.id===l}));return(0,i.jsx)("svg",{className:"absolute bottom-0 left-0",width:a,height:c,viewBox:"0 0 ".concat(a," ").concat(c),children:(0,i.jsxs)("clipPath",{id:n,children:[(0,i.jsx)("rect",{width:a,height:u,fill:"transparent"}),(0,i.jsx)("path",{d:v.getPath(a),transform:"translate(0, ".concat(u,")"),fill:"transparent"})]})})}
1,v=function(e){var n=e.contentRef,o=e.divider,d=e.previousDivider,c=e.border,v=e.previousBorder,f=e.combinedWithHeaderOffset,m=e.dividerUniqueId,h=e.noPadding,g=e.onPaddingChange,p=function(e){var n,o,t=getComputedStyle(e);return parseInt(null!==(n=t.paddingTop)&&void 0!==n?n:"0")+parseInt(null!==(o=t.paddingBottom)&&void 0!==o?o:"0")},x=(0,r.useState)({width:0,height:0}),y=x[0],b=x[1],j=(0,r.useState)({top:0,bottom:0}),w=j[0],N=j[1],k=!!o,C=!!d;(0,r.useEffect)((function(){if(C){var e=Math.floor((y.width||window.innerWidth)/s);n.current.style.marginTop="-"+(e+1)+"px",n.current.style.paddingTop=h?"":e+1+"px",N((function(n){return(0,l.Z)((0,t.Z)({},n),{top:e+1})}))}else if(void 0!==f)N((function(e){return(0,l.Z)((0,t.Z)({},e),{top:f})}));else{var o=0;v&&(o=v.width/2),n.current.style.paddingTop="".concat(o,"px"),n.current.style.marginTop="",N((function(e){return(0,l.Z)((0,t.Z)({},e),{top:o})}))}}),[C,y.width,f,h,v]),(0,r.useEffect)((function(){if(k){var e=Math.floor((y.width||window.innerWidth)/s);n.current.style.paddingBottom=h?"":e+"px",n.current.style.clipPath="url(#".concat(m,")"),n.current.style.WebkitClipPath="url(#".concat(m,")"),n.current.classList.add("fix-safari-flickering"),N((function(n){return(0,l.Z)((0,t.Z)({},n),{bottom:e})}))}else{var o=0;c&&(o=c.width/2),n.current.style.paddingBottom="".concat(o,"px"),N((function(e){return(0,l.Z)((0,t.Z)({},e),{bottom:o})})),n.current.style.clipPath=""}}),[k,y.width,h,c]);var F=(0,r.useCallback)((function(){var e,o;b({width:null!==(e=n.current.offsetWidth)&&void 0!==e?e:0,height:(null!==(o=n.current.offsetHeight)&&void 0!==o?o:0)-p(n.current)})}),[n]);return(0,r.useEffect)((function(){"function"===typeof g&&g(w)}),[w]),(0,a.Z)(F,k||C?n:null),o?(0,i.jsx)(u,{uniqueId:m,width:y.width,height:y.height+(h?0:w.top+w.bottom),divider:o}):null}},74007:function(e,n,o){o.d(n,{Z:function(){return c}});var t=o(85893),l=o(67294),i=o(17258),r=o(44080),a=o(85405),s=o(40944),d=o(68116);function c(e){var n=e.className,o=e.icon,c=e.iconClassName,u=e.button,v=e.buttonClassName,f=e.openClassName,m=e.iconOpenClassName,h=e.children,g=e.inline,p=e.itemsContainerClass,x=e.disabled,y=e.itemsContainerStyle,b=e.openUp,j=void 0!==b&&b,w=function(){F(function(e){if(!e)return!1;var n=e.getBoundingClientRect();return!(n.left>=0&&n.right<=(window.innerWidth||document.documentElement.clientWidth))}(N.current))},N=(0,l.useRef)(),k=(0,l.useState)(!1),C=k[0],F=k[1];return(0,t.jsx)(i.v,{as:"div",className:(0,a.AK)("relative inline-block text-left",n),onClick:function(e){return e.stopPropagation()},children:function(e){var n=e.open;return(0,t.jsxs)(d.bv,{portal:!0,children:[(0,t.jsx)(i.v.Button,{id:null,className:(0,a.AK)(v,n?f:"","cursor-pointer z-5 focus:outline-none"),disabled:x,onClick:function(e){return e.stopPropagation()},children:u||(0,t.jsx)(s.Z,{icon:o||"DotsVerticalIcon",className:(0,a.AK)(c,"h-5 w-5",n?m||"text-indigo-500":"text-gray-500")})}),(0,t.jsx)(r.u,{show:n,as:l.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",ref:N,beforeEnter:w,afterLeave:function(){return F(!1)},children:(0,t.jsx)(i.v.Items,{className:(0,a.AK)(p,"z-100 max-h-60 py-3 px-6 rounded-lg bg-white focus:outline-none overflow-y-auto space-y-2 shadow-lg",g?"static":"absolute",j?"bottom-full mb-10":"mt-2",C?"right-0":"left-0"),style:y,children:h})})]})}})}},24230:function(e,n,o){o.d(n,{Z:function(){return d}});var t=o(69779),l=o(85893),i=o(67294),r=o(9008),a=o.n(r),s=o(85405);function d(e){var n=e.website,o=(0,i.useState)([]),r=o[0],d=o[1];return(0,i.useEffect)((function(){if(null===n||void 0===n?void 0:n.fonts){var e,o,l,i,r,a,c,u,v,f,m,h,g,p,x,y,b=[];if("custom"===(null===n||void 0===n||null===(e=n.fonts)||void 0===e?void 0:e.source))(null===(v=n.fonts.custom)||void 0===v||null===(f=v.head)||void 0===f?void 0:f.name)&&b.push({source:n.fonts.custom.head.source,query:(0,s.pr)(n.fonts.custom.head,!0)}),(null===(m=n.fonts.custom)||void 0===m||null===(h=m.body)||void 0===h?void 0:h.name)&&b.push({source:n.fonts.custom.body.source,query:(0,s.pr)(n.fonts.custom.body,!0)});else(null===n||void 0===n||null===(g=n.fonts)||void 0===g||null===(p=g.head)||void 0===p?void 0:p.name)&&b.push({source:n.fonts.head.source,query:(0,s.pr)(n.fonts.head)}),(null===n||void 0===n||null===(x=n.fonts)||void 0===x||null===(y=x.body)||void 0===y?void 0:y.name)&&b.push({source:n.fonts.body.source,query:(0,s.pr)(n.fonts.body)});(null===n||void 0===n||null===(o=n.header)||void 0===o||null===(l=o.logo)||void 0===l||null===(i=l.font)||void 0===i?void 0:i.name)&&b.push({source:n.header.logo.font.source,query:(0,s.pr)(n.header.logo.font)}),"header"!==(null===n||void 0===n||null===(r=n.footer)||void 0===r?void 0:r.logoFrom)&&(null===n||void 0===n||null===(a=n.footer)||void 0===a||null===(c=a.logo)||void 0===c||null===(u=c.font)||void 0===u?void 0:u.name)&&b.push({source:n.footer.logo.font.source,query:(0,s.pr)(n.footer.logo.font)}),d((0,t.Z)(new Set(b)))}}),[n]),r.length>0?function(){var e=r.filter((function(e){return"fontshare"!==e.source})),n=r.filter((function(e){return"fontshare"===e.source}));return(0,l.jsxs)(a(),{children:[e.length>
10&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),(0,l.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:!0}),(0,l.jsx)("link",{href:"https://fonts.googleapis.com/css2?".concat(e.map((function(e){return e.query})).join("&"),"&display=swap"),rel:"stylesheet"})]}),n.length>0&&(0,l.jsx)("link",{href:"https://api.fontshare.com/v2/css?".concat(n.map((function(e){return e.query})).join("&"),"&display=swap"),rel:"stylesheet"})]})}():null}},40944:function(e,n,o){var t=o(6453),l=o(85893),i=o(3231);n.Z=function(e){var n=(0,t.Z)({},i)[e.icon];return n?(0,l.jsx)(n,{className:e.className,onClick:e.onClick,"aria-hidden":"true"}):"<></>"}},7004:function(e,n,o){o.d(n,{Gc:function(){return r},U9:function(){return i},f$:function(){return l}});var t=o(85405),l=function(e,n){if(e){if("email"===e.type)return"mailto:"+e.link;if("phone"===e.type)return"tel:"+e.link;if("page"===e.type){var o,t,l,i=null===n||void 0===n||null===(o=n.pages)||void 0===o?void 0:o.find((function(n){return n._id===e.page})),r=(null===i||void 0===i?void 0:i.Parent)?null===n||void 0===n||null===(t=n.pages)||void 0===t?void 0:t.find((function(e){return e._id===(null===i||void 0===i?void 0:i.Parent)})):null,a="/";return r&&(a+="".concat(r.slug,"/")),a+=null!==(l=null===i||void 0===i?void 0:i.slug)&&void 0!==l?l:""}return"section"===e.type?"#"+e.link:(null===e||void 0===e||null===(s=e.link)||void 0===s?void 0:s.includes("http"))||(null===e||void 0===e||null===(d=e.link)||void 0===d?void 0:d.includes("https"))?e.link:(null===e||void 0===e?void 0:e.link)&&"#"!==(null===e||void 0===e?void 0:e.link)?"/"===(null===e||void 0===e?void 0:e.link)?"/":"https://"+(null===e||void 0===e?void 0:e.link):"#";var s,d}return"#"},i=function(e,n){var o,l,i,r=null===n||void 0===n||null===(o=n.pages)||void 0===o?void 0:o.find((function(n){return n._id===(null===e||void 0===e?void 0:e.page)}));return(null===e||void 0===e?void 0:e.newPage)?"_blank":(null===n||void 0===n||null===(l=n.button)||void 0===l?void 0:l.target)?null===n||void 0===n||null===(i=n.button)||void 0===i?void 0:i.target:(0,t.AO)(null===r||void 0===r?void 0:r.forceRender)};var r=function(e,n,o){if("function"!==typeof o){if("section"===(null===n||void 0===n?void 0:n.type)){e.preventDefault();var t=document.getElementById("main-body"),l=document.getElementById("website-header"),i=document.getElementById(n.link);if(i&&t&&l){var r=i.getBoundingClientRect().top;if(l.classList.contains("sticky"))r-=l.getBoundingClientRect().height;t.scroll({top:r+t.scrollTop,behavior:"smooth"})}}}else o(e)}},16494:function(e,n,o){o.d(n,{Z:function(){return r}});var t=o(85893),l=o(89774),i=o(85405);function r(e){var n=e.text,o=e.className,r=e.classNameChild,a=e.variant,s=(0,l.$G)("common").t;switch(a){case"form":return(0,t.jsx)("div",{className:"w-full max-w-screen-sm my-8",children:(0,t.jsxs)("div",{className:"animate-pulse flex space-y-8 flex-col",children:[(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("div",{className:"h-4 bg-gray-100 rounded w-1/2"}),(0,t.jsx)("div",{className:"h-9 bg-gray-100 rounded"}),(0,t.jsx)("div",{className:"h-2 bg-gray-100 rounded w-5/6"})]}),(0,t.jsx)("hr",{}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("div",{className:"h-4 bg-gray-100 rounded w-1/4"}),(0,t.jsx)("div",{className:"h-9 bg-gray-100 rounded"}),(0,t.jsx)("div",{className:"h-2 bg-gray-100 rounded w-1/2"})]}),(0,t.jsx)("hr",{}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("div",{className:"h-4 bg-gray-100 rounded w-1/4"}),(0,t.jsx)("div",{className:"h-9 bg-gray-100 rounded"}),(0,t.jsx)("div",{className:"h-2 bg-gray-100 rounded w-1/2"})]}),(0,t.jsx)("hr",{}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("div",{className:"h-4 bg-gray-100 rounded w-1/6"}),(0,t.jsx)("div",{className:"h-9 bg-gray-100 rounded"}),(0,t.jsx)("div",{className:"h-2 bg-gray-100 rounded w-3/4"})]}),(0,t.jsx)("div",{className:"h-10 bg-gray-200 rounded w-1/4 ml-auto mt-4"})]})});case"skeleton":return(0,t.jsx)("div",{className:o,children:(0,t.jsx)("div",{className:"animate-pulse",children:(0,t.jsx)("div",{className:(0,i.AK)("h-6 bg-gray-200 rounded",r)})})});case"table":return(0,t.jsx)("div",{className:"w-full my-8",children:(0,t.jsxs)("div",{className:"animate-pulse flex space-y-2 flex-col",children:[(0,t.jsxs)("div",{className:"space-x-2 flex",children:[(0,t.jsx)("div",{className:"h-9 bg-gray-200 rounded w-full"}),(0,t.jsx)("div",{className:"h-9 bg-gray-200 rounded w-full"}),(0,t.jsx)("div",{className:"h-9 bg-gray-200 rounded w-full"}),(0,t.jsx)("div",{className:"h-9 bg-gray-200 rounded w-full"}),(0,t.jsx)("div",{className:"h-9 bg-gray-200 rounded w-full"}),(0,t.jsx)("div",{className:"h-9 bg-gray-200 rounded w-full"})]}),[1,2,3,4,5,6].map((function(e){return(0,t.jsxs)("div",{className:"space-x-2 flex",children:[(0,t.jsx)("div",{className:"h-9 bg-gray-100 rounded w-full"}),(0,t.jsx)("div",{className:"h-9 bg-gray-100 rounded w-full"}),(0,t.jsx)("div",{className:"h-9 bg-gray-100 rounded w-full"}),(0,t.jsx)("div",{className:"h-9 bg-gray-100 rounded w-full"}),(0,t.jsx)("div",{className:"h-9 bg-gray-100 rounded w-full"}),(0,t.jsx)("div",{className:"h-9 bg-gray-100 rounded w-full"})]},e)}))]})});default:return(0,t.jsxs)("div",{className:(0,i.AK)("inline-flex items-center",o),children:[(0,t.jsxs)("svg",{className:(0,i.AK)("animate-spin ml-1 mr-3 h-4 w-4",o),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),n||""===n?n:s("loading")]})}}},23493:function(e,n,o){o.d(n,{TR:function(){return v},yA:function(){return f},i6:function(){return u}});var t=o(14251),l=o(52875),i=o(69779),r=o(85893),a=o(85405),s=o(41664),d=o.n(s),c=o(67294);var u=function(e,n){var o,t,l,i=(0,a.p$)(e);return i.siteName=i.siteName||i.businessName||"",i.logo={type:(null===e||void 0===e?void 0:e.showLogo)&&((null===n||void 0===n?void 0:n.logo)||(null===e||void 0===e?void 0:e.customLogo))?"image":"text-icon",showText:!!i.siteName,font:null===n||void 0===n||null===(o=n.fonts)||void 0===o?void 0:o.head,showIcon:!1,source:(null===e||void 0===e?void 0:e.source)||"branding",media:null===e||void 0===e?void 0:e.customLogo,height:{desktop:(null===e||void 0===e||null===(t=e.logoDesktop)||void 0===t?void 0:t.height)||80,mobile:(null===e||void 0===e||null===(l=e.logoMobile)||void 0===l?void 0:l.height)||40}},i},v=function(e){var n,o,s,u=e.className,v=e.text,f=e.logo,m=e.color,h=e.forceRender,g=e.font,p=e.location,x=void 0===p?"header":p,y=function(){var e,n,o=function(){var e,n=[],o=N.current.cloneNode(!0);return o.style.position="fixed",o.style.visibility="hidden",o.style.width="auto",document.body.appendChild(o),N.current.innerText.split(" ").forEach((function(e){o.innerText=e;var t=o.getBoundingClientRect().width;n.push(t)})),o.innerHTML=" ",e=o.getBoundingClientRect().width,document.body.removeChild(o),{wordSizes:n,emptySpaceSize:e}}(),t=o.wordSizes,l=o.emptySpaceSize,r=[],a=N.current.offsetWidth+4,s=0,d=null!==(n=t[0])&&void 0!==n?n:0;r[s]=d;for(var c=1;c<t.length;c++){var u=l+t[c];d+u<=a?(d+=u,r[s]=d):(s++,d=t[c],r[s]=d)}return(e=Math).max.apply(e,(0,i.Z)(r))+4},b=function(){if(N.current){N.current.style.width="auto",N.current.style.whiteSpace="normal";var e=y();N.current.style.width="".concat(e+4,"px"),N.current.style.whiteSpace=""}},j=function(){k.current=(0,a.Ds)(b,150,k.current)()},w=(0,a.ac)("(max-width: 1023px)"),N=(0,c.useRef)(null),k=(0,c.useRef)(null),C=function(){var e=(0,c.useState)(!1),n=e[0],o=e[1];return(0,c.useEffect)((function(){var e=function(){o("loaded"===document.fonts.status)};return document.fonts.ready.then(e),document.fonts.addEventListener("loading",e),document.fonts.addEventListener("loadingdone",e),function(){document.fonts.removeEventListener("loading",e),document.fonts.removeEventListener("loadingdone",e)}}),[]),n}();return(0,c.useEffect)((function(){if(N.current)return j(),window.addEventListener("resize",j),function(){window.removeEventListener("resize",j),clearTimeout(k.current)}}),[v,f,g,w,C]),(null===f||void 0===f?void 0:f.showIcon)&&(null===f||void 0===f?void 0:f.icon)||(null===f||void 0===f?void 0:f.showText)&&v?(0,r.jsx)(d(),{href:"/",children:(0,r.jsxs)("a",{className:(0,a.AK)((null===f||void 0===f?void 0:f.showIcon)&&(null===f||void 0===f||null===(n=f.icon)||void 0===n?void 0:n.url)?"flex items-center gap-3 max-w-[290px] text-left":"grid max-w-full",u),target:(0,a.AO)(h),children:[(null===f||void 0===f?void 0:f.showIcon)&&(null===f||void 0===f?void 0:f.icon)&&(0,r.jsx)("div",{className:"flex-shrink-0 relative w-9 h-9 md:w-12 md:h-12",children:(0,r.jsx)("div",{className:"absolute w-full h-full",style:{backgroundColor:m||"#1F2937",WebkitMaskImage:'url("'.concat(null===f||void 0===f||null===(o=f.icon)||void 0===o?void 0:o.url,'")'),maskImage:'url("'.concat(null===f||void 0===f||null===(s=f.icon)||void 0===s?void 0:s.url,'")'),WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskSize:"contain",maskSize:"contain"}})}),(null===f||void 0===f?void 0:f.showText)&&v&&(0,r.jsx)("h2",{ref:N,className:(0,a.AK)("heading-small lg:heading-medium max-w-full",(null===f||void 0===f?void 0:f.showIcon)&&(null===f||void 0===f?void 0:f.icon)?"
1whitespace-normal":"whitespace-nowrap overflow-hidden overflow-ellipsis"),style:(0,l.Z)((0,t.Z)({color:m},function(){var e;if((null===f||void 0===f?void 0:f.showText)&&v&&(null===f||void 0===f?void 0:f.showIcon)&&(null===f||void 0===f||null===(e=f.icon)||void 0===e?void 0:e.url)){var n=(6/(v.length||0)+.66)*(w?18:22),o=Math.min(Math.max(n,16),40);return{fontSize:"".concat(o,"px"),lineHeight:1.2}}return{}}(),{fontFamily:g?(null===g||void 0===g?void 0:g.family)||'"Inter", sans-serif':"var(--".concat(x,"-logo-fontFamily)"),fontWeight:g?(null===g||void 0===g?void 0:g.weight)||500:"var(--".concat(x,"-logo-fontWeight)")}),{lineHeight:"initial"}),children:v})]})}):null};v.displayName="WebsiteButton";function f(e){var n=e.className,o=e.src,t=e.text,l=e.height;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("img",{className:(0,a.AK)("hidden lg:block transition-all object-contain",n),src:o,alt:t,style:{height:"".concat((null===l||void 0===l?void 0:l.desktop)||80,"px")}}),(0,r.jsx)("img",{className:(0,a.AK)("lg:hidden transition-all object-contain",n),src:o,alt:t,style:{height:"".concat((null===l||void 0===l?void 0:l.mobile)||40,"px")}})]})}},21123:function(e,n,o){o.d(n,{N:function(){return c},Z:function(){return u}});var t=o(14251),l=o(52875),i=o(85893),r=o(67294),a=o(85405),s=o(29260),d=o.n(s),c=function(e,n){var o,i,r,s,d=(null===e||void 0===e||null===(o=e.colorPalette)||void 0===o||null===(i=o.Palette)||void 0===i?void 0:i.colors)||(null===e||void 0===e||null===(r=e.colorPalette)||void 0===r?void 0:r.colors)||[];if(null===(s=n.layers)||void 0===s?void 0:s.palette){var c,u=(0,t.Z)({},n.layers.fade);if(null===(c=n.layers.fade)||void 0===c?void 0:c.enabled)if("custom"===n.layers.fade.palette)u.color=n.layers.fade.color;else{var v,f=(0,a.dz)(n.layers.fade.palette);u.color=null===(v=d[f])||void 0===v?void 0:v.color}if("custom"===n.layers.palette)return(0,l.Z)((0,t.Z)({},null===n||void 0===n?void 0:n.layers),{fade:u});var m,h,g,p,x,y,b,j,w=(0,a.dz)(n.layers.palette),N={};return N="gradient"===(null===(m=n.layers.overlay)||void 0===m?void 0:m.type)?{type:"gradient",color1:null===(p=d[w])||void 0===p?void 0:p.color,color2:null===(x=d[w%2===0?w+1:w-1])||void 0===x?void 0:x.color,accent:null===(y=d[w])||void 0===y?void 0:y.accent}:{type:"solid",color1:null===(b=d[w])||void 0===b?void 0:b.color,accent:null===(j=d[w])||void 0===j?void 0:j.accent},(0,l.Z)((0,t.Z)({},null===n||void 0===n?void 0:n.layers),{overlay:(0,t.Z)({},null===n||void 0===n||null===(h=n.layers)||void 0===h?void 0:h.overlay,N),fade:u,foreground:{accent:(null===(g=d[w])||void 0===g?void 0:g.accent)||(0,a.$O)(N.color1||"#FFFFFF")}})}var k,C,F,Z,S,A,R,T,E,M,P,L={type:"solid"},z={enabled:!1};if("object"===typeof(null===n||void 0===n?void 0:n.background))if("image"===(null===n||void 0===n||null===(C=n.background)||void 0===C?void 0:C.type))L.color1=(null===(Z=n.background.overlay)||void 0===Z?void 0:Z.color.includes("rgba"))?(0,a.s)(null===(S=n.background.overlay)||void 0===S?void 0:S.color):null===(A=n.background.overlay)||void 0===A?void 0:A.color,z.enabled=!0,z.media=null===n||void 0===n||null===(R=n.background)||void 0===R?void 0:R.image,z.positionX=(null===(T=n.background)||void 0===T?void 0:T.imagePositionX)||"50%",z.positionY=(null===(E=n.background)||void 0===E?void 0:E.imagePositionY)||"50%",z.opacity=(null===(M=n.background)||void 0===M||null===(P=M.overlay)||void 0===P?void 0:P.amount)||50;else if("gradient"===(null===n||void 0===n||null===(F=n.background)||void 0===F?void 0:F.type)){var _,I,W;L.type="gradient",L.color1=null===n||void 0===n||null===(_=n.background)||void 0===_?void 0:_.color,L.color2=null===n||void 0===n||null===(I=n.background)||void 0===I?void 0:I.color2,L.direction=null===(W=a.mQ.find((function(e){var o;return e.value===(null===n||void 0===n||null===(o=n.background)||void 0===o?void 0:o.direction)})))||void 0===W?void 0:W.id}else{var B;L.color1=null===n||void 0===n||null===(B=n.background)||void 0===B?void 0:B.color}else L.color1=(null===n||void 0===n?void 0:n.background)||"#FFFFFF";return{palette:"custom",image:z,fade:{enabled:!1},overlay:L,foreground:{accent:(null===(k=d[0])||void 0===k?void 0:k.accent)||(0,a.$O)(L.color1||"#FFFFFF")}}};function u(e){var n,o,t,l,s,u=e.block,v=e.website,f=e.setTextColor,m=e.setAccentColor,h=e.setBackgroun
1dColor,g=e.onChange,p=e.backgroundPictures,x=(0,r.useState)(null),y=x[0],b=x[1],j=function(){var e,n;return!0===(null===y||void 0===y||null===(e=y.image)||void 0===e||null===(n=e.media)||void 0===n?void 0:n.asVideo)};return(0,r.useEffect)((function(){v&&u&&b(c(v,u))}),[u,v]),(0,r.useEffect)((function(){if(y){var e,n,o,t,l;if("function"===typeof f)if(null===(e=y.fade)||void 0===e?void 0:e.enabled)f((0,a.$O)((null===(n=y.fade)||void 0===n?void 0:n.color)||"#FFFFFF"));else f((0,a.$O)((null===(o=y.overlay)||void 0===o?void 0:o.color1)||"#FFFFFF"));if("function"===typeof h)h((null===y||void 0===y||null===(t=y.overlay)||void 0===t?void 0:t.color1)||"#FFFFFF");if("function"===typeof m)m((null===y||void 0===y||null===(l=y.foreground)||void 0===l?void 0:l.accent)||"#000000");"function"===typeof g&&g(y)}}),[y]),(0,i.jsx)(i.Fragment,{children:y&&(0,i.jsxs)("div",{className:"absolute inset-0 z-10 pointer-events-none",children:[(null===(n=y.fade)||void 0===n?void 0:n.enabled)&&(0,i.jsx)("div",{className:"absolute inset-0 z-20 transition-all duration-300",style:function(){var e,n,o,t=(null===y||void 0===y||null===(e=y.fade)||void 0===e?void 0:e.opacity)||50;return{backgroundImage:"linear-gradient(".concat(a.mQ.find((function(e){var n;return e.id===((null===y||void 0===y||null===(n=y.fade)||void 0===n?void 0:n.direction)||"top-down")})).value,", transparent, ").concat(null!==(o=null===y||void 0===y||null===(n=y.fade)||void 0===n?void 0:n.color)&&void 0!==o?o:"#D1D5DB",")"),opacity:t/100}}()}),(0,i.jsx)("div",{className:"absolute inset-0 z-10",style:function(){var e,n,o,t,l,i,r,s,d={};"gradient"!==(null===y||void 0===y||null===(e=y.overlay)||void 0===e?void 0:e.type)?d={backgroundColor:null===y||void 0===y||null===(t=y.overlay)||void 0===t?void 0:t.color1}:d={backgroundImage:"linear-gradient(".concat(a.mQ.find((function(e){var n;return e.id===((null===y||void 0===y||null===(n=y.overlay)||void 0===n?void 0:n.direction)||"top-down")})).value,", ").concat(null!==(r=null===y||void 0===y||null===(l=y.overlay)||void 0===l?void 0:l.color1)&&void 0!==r?r:"#FFFFFF",", ").concat(null!==(s=null===y||void 0===y||null===(i=y.overlay)||void 0===i?void 0:i.color2)&&void 0!==s?s:"#D1D5DB",")")};if((null===y||void 0===y||null===(n=y.image)||void 0===n?void 0:n.enabled)&&(null===y||void 0===y||null===(o=y.image)||void 0===o?void 0:o.media)||(null===p||void 0===p?void 0:p.length)>0){var c,u,v=isNaN(null===y||void 0===y||null===(c=y.image)||void 0===c?void 0:c.opacity)?50:null===y||void 0===y||null===(u=y.image)||void 0===u?void 0:u.opacity;d.opacity=v/100}return d}()}),((null===(o=y.image)||void 0===o?void 0:o.enabled)&&(null===(t=y.image)||void 0===t?void 0:t.media)||(null===p||void 0===p?void 0:p.length)>0)&&(0,i.jsxs)(i.Fragment,{children:[(0,a.$K)(y.image.blur)&&"none"!==y.image.blur&&(0,i.jsx)("div",{className:"absolute inset-0 z-5",style:{backdropFilter:"blur(".concat(a.uR.find((function(e){return e.id===(y.image.blur||"none")})).value,")"),WebkitBackdropFilter:"blur(".concat(a.uR.find((function(e){return e.id===(y.image.blur||"none")})).value,")")}}),j()&&(0,i.jsx)("div",{className:"absolute inset-0 z-0 transition-all duration-300 overflow-hidden",children:(0,i.jsx)("video",{className:(0,a.AK)("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","min-h-full min-w-full object-cover"),loop:!!(null===(l=y.image.media)||void 0===l?void 0:l.loopVideo),autoPlay:!0,muted:!0,playsInline:!0,"webkit-playsinline":!0,style:{pointerEvents:"none"},children:(0,i.jsx)("source",{src:null===(s=y.image.media)||void 0===s?void 0:s.url})})}),function(){var e;return!j()&&(null===y||void 0===y||null===(e=y.image)||void 0===e?void 0:e.media)}()&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"absolute inset-0 z-0 bg-white",children:(0,i.jsx)(d(),{sizes:"200vw",quality:90,priority:(null===u||void 0===u?void 0:u.idx)<=1,alt:"background",src:function(){var e,n;return!0===(null===y||void 0===y||null===(e=y.image)||void 0===e||null===(n=e.media)||void 0===n?void 0:n.asVideo)?null:"".concat(y.image.media.url||y.image.media.preview||y.image.media)}(),layout:"fill",objectFit:"cover",objectPosition:"".concat(y.image.positionX||"center"," ").concat(y.image.positionY||"center")})})})]})]})})}},75654:function(e,n,o){o.d(n,{PW:function(){return C},QZ:function(){return k}
1,WG:function(){return N}});var t=o(85893),l=o(85405),i=o(71029),r=o(85296),a=o(44171),s=o(43180),d=o(10151),c=o(36234),u=o(66909),v=o(49791),f=o(28239),m=o(48192),h=o(94206),g=o(95115),p=o(13487),x=o(23863),y=o(14892),b=o(62458),j=o(24831),w=function(e){var n=e.type,o=e.className,l=e.style;switch(n){case"angi":return(0,t.jsx)(i.Z,{className:o,style:l});case"behance":return(0,t.jsx)(r.Z,{className:o,style:l});case"dribbble":return(0,t.jsx)(a.Z,{className:o,style:l});case"facebook":return(0,t.jsx)(s.Z,{className:o,style:l});case"homeadvisor":return(0,t.jsx)(d.Z,{className:o,style:l});case"instagram":return(0,t.jsx)(c.Z,{className:o,style:l});case"linkedin":return(0,t.jsx)(u.Z,{className:o,style:l});case"pinterest":return(0,t.jsx)(v.Z,{className:o,style:l});case"tiktok":return(0,t.jsx)(f.Z,{className:o,style:l});case"thumbtack":return(0,t.jsx)(m.Z,{className:o,style:l});case"twitter":return(0,t.jsx)(h.Z,{className:o,style:l});case"twitterold":return(0,t.jsx)(g.Z,{className:o,style:l});case"youtube":return(0,t.jsx)(p.Z,{className:o,style:l});case"medium":return(0,t.jsx)(x.Z,{className:o,style:l});case"threads":return(0,t.jsx)(y.Z,{className:o,style:l});case"telegram":return(0,t.jsx)(b.Z,{className:o,style:l});default:return null}},N=[{id:"facebook",host:"facebook.com"},{id:"twitter",host:"twitter.com"},{id:"twitterold",host:"twitter.com"},{id:"linkedin",host:"linkedin.com"},{id:"youtube",host:"youtube.com"},{id:"pinterest",host:"pinterest.com"},{id:"instagram",host:"instagram.com"},{id:"tiktok",host:"tiktok.com"},{id:"thumbtack",host:"thumbtack.com"},{id:"homeadvisor",host:"homeadvisor.com"},{id:"angi",host:"angi.com"},{id:"behance",host:"behance.net"},{id:"dribbble",host:"dribbble.com"},{id:"medium",host:"medium.com"},{id:"threads",host:"threads.net"},{id:"telegram",host:"t.me"}],k=function(e){var n,o,i,r,a,s,d,c,u=e.icon,v=e.color,f=e.settings,m=void 0===f?{}:f,h=m.size=null!==(r=m.size)&&void 0!==r?r:"large",g=m.shape=null!==(a=m.shape)&&void 0!==a?a:"none",p=m.style=null!==(s=m.style)&&void 0!==s?s:"solid",x="large"===h?"w-8 h-8":"medium"===h?"w-7 h-7":"w-6 h-6",y={};return"none"!==g&&(y=function(){var e="large"===h?"w-12 h-12":"medium"===h?"w-10 h-10":"w-8 h-8",n="circle"===g?"rounded-full":"square"===g?"rounded-none":"rounded"===g?"rounded-md":"",o="solid"===p?v:"outline"===p?"transparent":"",t="outline"===p?"border":"";return{classes:(0,l.AK)(e,n,t),styles:{backgroundColor:o,borderColor:v}}}()),(0,t.jsxs)("div",{className:(0,l.AK)("flex justify-center items-center",null!==(d=y.classes)&&void 0!==d?d:""),style:null!==(c=y.styles)&&void 0!==c?c:{},children:["custom"!==u.type&&(0,t.jsx)(w,{type:u.type,className:(0,l.AK)(x),style:{color:"none"===g||"outline"===p?v:(0,l.$O)(v)}}),"custom"===u.type&&(null===(n=u.icon)||void 0===n?void 0:n._id)&&(0,t.jsx)("div",{className:(0,l.AK)("flex-shrink-0 relative",x),children:(0,t.jsx)("div",{className:"absolute w-full h-full",style:{backgroundColor:"none"===g||"outline"===p?v:(0,l.$O)(v),WebkitMaskImage:'url("'.concat(null===(o=u.icon)||void 0===o?void 0:o.url,'")'),maskImage:'url("'.concat(null===(i=u.icon)||void 0===i?void 0:i.url,'")'),WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskSize:"contain",maskSize:"contain"}})})]})},C=function(e){var n=e.social,o=e.className,l=n.name||"Custom";return"twitterold"===n.type?l="Twitter":"custom"!==n.type&&(l=(0,j.k)(n.type)),(0,t.jsx)("div",{className:o,children:l})}},4626:function(e,n,o){o.d(n,{Z:function(){return u}});var t=o(85893),l=o(85405),i=o(14251),r=o(52875),a=o(69779),s=o(67294),d=o(23493),c=(0,s.forwardRef)((function(e,n){var o,c,u,v,f,m,h,g=e.className,p=e.text,x=e.logo,y=e.color,b=e.font,j=e.vertical,w=e.scale,N=void 0===w?1:w,k=e.textColor,C=function(){var e,n=function(){var e,n=[],o=A.current.cloneNode(!0);return o.style.position="fixed",o.style.visibility="hidden",o.style.width="auto",document.body.appendChild(o),A.current.innerText.split(" ").forEach((function(e){o.innerText=e;var t=o.getBoundingClientRect().width;n.push(Number(t.toFixed(2)))})),o.innerHTML=" ",e=Number(o.getBoundingClientRect().width.toFixed(2)),document.body.removeChild(o),{wordSizes:n,emptySpaceSize:e}}(),o=n.wordSizes,t=n.emptySpaceSize,l=[],i=Number(M().maxWidth.replace("px",""))+4;j||(i=i-E(!0)-12);var r,s=0,d=null!==(r=o[0])&&void 0!==r?r:0;l[s]=d;for(var c=1;c<o.length;c++){var u=t+o[c];d+u<=i?(d+=u,l[s]=d):(s++,d=o[c],l[s]=d)}return(e=Math).max.apply(e,(0,a.Z)(l))+4},F=function(){if(A.current){var e=C(),n=e;if(j){var o=E(!0),t=Math.min(Math.max(e,0),2*o);n=Math.max(t,n)}A.current.style.width="".concat(n+4,"px")}},Z=function(){R.current=(0,l.Ds)(F,150,R.current)()},S=(0,l.ac)("(max-width: 859px)"),A=(0,s.useRef)(null),R=(0,s.useRef)(null),T=j?"secondary":"primary",E=function(e){var n=S?36:48,o=Math.round(n*N);return e?o:{width:"".concat(o,"px"),height:"".concat(o,"px")}},M=function(){if(j){var e=E(!0),n=Math.round(2*e);return{maxWidth:"".concat(n,"px")}}var o=S?224:260,t=Math.round(o*N);return{maxWidth:"".concat(t,"px")}},P=function(){var e=S?36:48;return Math.round(e*N)};(0,s.useEffect)((function(){if(A.current)return Z(),window.addEventListener("resize",Z),function(){window.removeEventListener("resize",Z),clearTimeout(R.current)}}),[p,x,N,b,S]);var L=E();return(null===x||void 0===x?void 0:x.showIcon)&&(null===x||void 0===x?void 0:x.icon)||(null===x||void 0===x?void 0:x.showText)&&p?(0,t.jsx)("div",{ref:n,className:(0,l.AK)("flex items-center justify-center text-left whitespace-normal",g),style:(0,r.Z)((0,i.Z)({},M()),{gap:"".concat(12*N,"px ").concat(8*N,"px")}
1),children:(null===x||void 0===x||null===(o=x.custom)||void 0===o?void 0:o.enabled)?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(d.yA,{src:null===x||void 0===x||null===(c=x.custom)||void 0===c||null===(u=c[T])||void 0===u||null===(v=u[k===l._y?"dark":"light"])||void 0===v?void 0:v.url,text:"",height:{desktop:P(),mobile:P()}})}):(0,t.jsxs)(t.Fragment,{children:[(null===x||void 0===x?void 0:x.showIcon)&&(0,t.jsx)("div",{className:"flex-shrink-0 relative",style:L,children:(null===x||void 0===x||null===(f=x.icon)||void 0===f?void 0:f.url)?(0,t.jsx)("div",{className:"absolute w-full h-full",style:{backgroundColor:y,WebkitMaskImage:'url("'.concat(null===x||void 0===x||null===(m=x.icon)||void 0===m?void 0:m.url,'")'),maskImage:'url("'.concat(null===x||void 0===x||null===(h=x.icon)||void 0===h?void 0:h.url,'")'),WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskSize:"contain",maskSize:"contain"}}):(0,t.jsx)("p",{className:"m-auto",style:{fontSize:L.width,lineHeight:L.height,color:y},children:(null===p||void 0===p?void 0:p.charAt(0))||""})}),(null===x||void 0===x?void 0:x.showText)&&p&&(0,t.jsx)("h2",{ref:A,className:(0,l.AK)("heading-small lg:heading-medium max-w-full"),style:(0,i.Z)({color:y},function(){var e;if((null===x||void 0===x?void 0:x.showText)&&p&&(null===x||void 0===x?void 0:x.showIcon)&&(null===x||void 0===x||null===(e=x.icon)||void 0===e?void 0:e.url)){var n=(6/(p.length||0)+.66)*(S?18:22),o=Math.min(Math.max(n,16),40)*N*(j?.6:1);return{fontSize:"".concat(o,"px"),lineHeight:1.2}}return{}}(),{fontFamily:b?(null===b||void 0===b?void 0:b.family)||'"Inter", sans-serif':"var(--logo-fontFamily)",fontWeight:b?(null===b||void 0===b?void 0:b.weight)||500:"var(--logo-fontWeight)"}),children:p})]})}):null})),u=function(e){var n,o=e.branding,i=e.variant,r=e.textColor,a=e.scale,s=null===o||void 0===o?void 0:o.logo,d=(null===s||void 0===s?void 0:s.font)||(null===o||void 0===o||null===(n=o.fonts)||void 0===n?void 0:n.head),u=(0,l.ac)("(max-width: 1023px)");return(0,t.jsx)(c,{className:(0,l.AK)(["secondary"].includes(i)&&"flex-col text-center"),logo:s,text:null===s||void 0===s?void 0:s.text,font:d,color:r===l._y?"#FFFFFF":"#000000",scale:u?(null===a||void 0===a?void 0:a.mobile)||1:(null===a||void 0===a?void 0:a.desktop)||1,vertical:"secondary"===i,textColor:r})}},165:function(e,n,o){o.r(n),o.d(n,{default:function(){return N}});var t=o(14251),l=o(85893),i=o(85405),r=o(67294),a=o(41664),s=o.n(a),d=o(90387),c=o(52077),u=o(90434),v=o(41984),f=o(43751),m=o(17258),h=o(26581),g=o(74007),p=o(75654),x=o(21123),y=o(4433),b=o(23493),j=o(89774),w=o(4626);function N(e){var n,o,a,N,k=e.website,C=e.previousBlock,F=(0,j.$G)("common").t,Z=(0,r.useState)(!1),S=Z[0],A=Z[1],R=(0,r.useState)(""),T=R[0],E=R[1],M=(0,r.useState)(null),P=M[0],L=M[1],z=(0,r.useState)("#FFFFFF"),_=z[0],I=z[1],W=(0,r.useState)("#000000"),B=W[0],H=W[1],O=(0,r.useState)("#000000"),D=O[0],K=O[1],$=(0,r.useRef)(null),q=(0,d.useRouter)(),U=null===k||void 0===k?void 0:k.footer,V=!1!==(null===U||void 0===U?void 0:U.madeWithDurable);U&&U.showName&&(null===U.businessName||void 0===U.businessName)&&(U.businessName=null===k||void 0===k||null===(N=k.Business)||void 0===N?void 0:N.name);!U||null!==U.businessAddress&&void 0!==U.businessAddress||(U.businessAddress="");var G=null===k||void 0===k?void 0:k.header,Q=null===k||void 0===k||null===(n=k.pages)||void 0===n?void 0:n.find((function(e){return!e.slug})),J=null===(a=null===(o=k.pages)||void 0===o?void 0:o.filter((function(e){return!0===e.showOnFooter||void 0===e.showOnFooter})))||void 0===a?void 0:a.map((function(e){var n={href:"/".concat(e.slug||""),name:e.label,current:q.asPath==="/".concat(e.slug||"")||q.asPath.includes("/".concat(e.slug,"/")),type:e.type,forceRender:e.forceRender};return"parent"===n.type&&(n.nests=k.pages.filter((function(n){return n.Parent===e._id})).map((function(n){return{href:"/".concat(e.slug,"/").concat(n.slug||""),name:n.label,current:q.asPath==="/".concat(e.slug,"/").concat(n.slug||""),forceRender:n.forceRender}})),0===n.nests.length)?null:n})).filter((function(e){return null!==e})),X=function(){var e,n,o,t,r,a,d,c,u,v,f,m=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",h=U;if((0,i.$K)(null===h||void 0===h?void 0:h.logo)&&(0,i.$K)(null===h||void 0===h?void 0:h.siteName)||!k||(h=(0,b.i6)(U,k)),"header"===U.logoFrom&&(h=(0,i.$K)(null===G||void 0===G?void 0:G.logo)?G:(0,b.i6)(G,k)),"image"!==(null===h||void 0===h||null===(e=h.logo)||void 0===e?void 0:e.type)||"branding"!==(null===h||void 0===h||null===(n=h.logo)||void 0===n?void 0:n.source)){if("image"===(null===h||void 0===h||null===(o=h.logo)||void 0===o?void 0:o.type)&&"upload"===(null===h||void 0===h||null===(t=h.logo)||void 0===t?void 0:t.source)&&(null===h||void 0===h||null===(r=h.logo)||void 0===r?void 0:r.media)){var g,p,x=(0,i.QW)(null===h||void 0===h||null===(g=h.logo)||void 0===g?void 0:g.media);return(0,l.jsx)(s(),{href:"/",children:(0,l.jsx)("a",{className:(0,i.AK)("flex",m),target:(0,i.AO)(null===Q||void 0===Q?void 0:Q.forceRender),children:x&&(0,l.jsx)(b.yA,{src:x,text:null===h||void 0===h?void 0:h.siteName,height:null===h||void 0===h||null===(p=h.logo)||void 0===p?void 0:p.height})})})}return(0,l.jsx)(b.TR,{className:m,logo:null===h||void 0===h?void 0:h.logo,text:null===h||void 0===h?void 0:h.siteName,location:U.logoFrom||"footer",color:B,forceRender:null===Q||void 0===Q?void 0:Q.forceRender})}if(null===h||void 0===h||null===(a=h.logo)||void 0===a||null===(d=a.branding)||void 0===d?void 0:d.logo)return(0,l.jsx)(s(),{href:"/",children:(0,l.jsx)(w.Z,{branding:h.logo.branding,variant:null===(u=h.logo)||void 0===u?void 0:u.variant,textColor:B,scale:null===(v=h.logo)||void 0===v||null===(f=v.branding)||void 0===f?void 0:f.scale,forceRender:null===Q||void 0===Q?void 0:Q.forceRender})});if((null===h||void 0===h||null===(c=h.logo)||void 0===c?void 0:c.url)||(null===k||void 0===k?void 0:k.logo)){var y,j,N=(null===h||void 0===h||null===(y=h.logo)||void 0===y?void 0:y.url)||(0,i.QW)(null===k||void 0===k?void 0:k.logo);return(0,l.jsx)(s(),{href:"/",children:(0,l.jsx)("a",{className:(0,i.AK)("flex",m),target:(0,i.AO)(null===Q||void 0===Q?void 0:Q.forceRender),children:N&&(0,l.jsx)(b.yA,{src:N,text:null===h||void 0===h?void 0:h.siteName,height:null===h||void 0===h||null===(j=h.logo)||void 0===j?void 0:j.height})})})}},Y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(0===(null===J||void 0===J?void 0:J.length))return(0,l.jsx)(l.Fragment,{});var o=(0,i.h)(_,-10);return o!==B&&o!==_||(o=(0,i.h)(_,10)),(0,l.jsx)("ul",{className:(0,i.AK)(e,"flex flex-col items-start",n?"gap-2":"flex-wrap lg:flex-row lg:items-center gap-6"),style:{color:B},children:null===J||void 0===J?void 0:J.filter((function(e){return"nested"!==e.type})).map((function(e){var t;return(0,l.jsx)("li",{className:(0,i.AK)(n?"border-b":"border-b-2 pb-1.5 -mb-2"),style:{borderColor:e.current?"".concat(B):"transparent"},children:"parent"===e.type?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g.Z,{className:"!hidden lg:!inline-block",openUp:!0,buttonClassName:"inline-flex items-center gap-2",itemsContainerClass:"!pl-6 !pr-12 w-max max-w-120 !max-h-50 no-scrollbar",button:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"body-normal whitespace-nowrap",children:e.name}),(0,l.jsx)(u.Z,{className:"w-4 h-4"})]}),itemsContainerStyle:{backgroundColor:o,color:B},children:null===(t=e.nests)||void 0===t?void 0:t.map((function(e){return(0,l.jsx)(m.v.Item,{children:(0,l.jsx)(s(),{href:e.href,legacyBehavior:!1,className:"block py-2 body-normal border-b-2",style:{borderColor:e.current?"".concat(B):"transparent"},target:(0,i.AO)(e.forceRender),children:e.name})},"page-link-".concat(e.href))}))}),(0,l.jsxs)("button",{className:"inline-flex lg:hidden items-center gap-2",onClick:function(){A(!0),L(e.nests)},children:[(0,l.jsx)("span",{className:"body-normal",children:e.name}),(0,l.jsx)(v.Z,{className:"w-4 h-4","aria-hidden":"true"})]})]}):(0,l.jsx)(s(),{href:e.href,children:(0,l.jsx)("a",{className:"block body-normal",target:(0,i.AO)(e.forceRender),children:e.name})})},"footer-page-link-".concat(e.href))}))})},ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(null===U||void 0===U?void 0:U.showSocial)&&(null===k||void 0===k?void 0:k.social)&&Array.isArray(k.social)&&0!==(null===k||void 0===k?void 0:k.social.length)?(0,l.jsx)("ul",{className:(0,i.AK)("flex items-center gap-x-4 gap-y-2 flex-wrap",e),children:k.social.map((function(e,t){var i=p.WG.find((function(n){return n.id===e.type}
1)),r=e.link;return"custom"!==e.type&&(r=(r=e.link.replace(/[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\//gi,"").replace(/https?:/g,"").replace(/^\/\/?/g,"")).replace(null===i||void 0===i?void 0:i.host,""),r="https://".concat(null===i||void 0===i?void 0:i.host,"/").concat(r)),(0,l.jsx)("li",{children:(0,l.jsx)(s(),{href:r,children:(0,l.jsx)("a",{target:"_blank",children:o?(0,l.jsx)(p.PW,{social:e,className:"body-normal"}):(0,l.jsx)(p.QZ,{icon:e,color:n||B,settings:k.socialSettings})})})},"social-icon-header-".concat(t))}))}):(0,l.jsx)(l.Fragment,{})},ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return V?(0,l.jsxs)("p",{className:(0,i.AK)("body-normal lg:text-right whitespace-nowrap",e),children:[(0,l.jsxs)("span",{children:[F("footer.madeWith"),"\xa0"]}),(0,l.jsx)(s(),{href:"https://durable.co?referrer=".concat(encodeURIComponent(T)),children:(0,l.jsx)("a",{target:"_blank",className:"underline text-current",children:"Durable"})})]}):(0,l.jsx)(l.Fragment,{})},oe=function(){return U.button?(0,l.jsx)(c.Z,{className:"break-normal",button:U.button,block:U,website:k,fallbackSize:"md"}):(0,l.jsx)(l.Fragment,{})},te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!U.additionalDetails)return(0,l.jsx)(l.Fragment,{});var o=U.additionalDetails.replace(/\r\n|\r|\n/g,"<br/>");return n&&(o=o.replace(/<br\s*\/?>/g,"")),(0,l.jsx)("div",{className:(0,i.AK)("rich-text-block fixed-p-size body-normal",e),style:{color:B},dangerouslySetInnerHTML:{__html:o}})},le=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return U.additionalDetails2?(0,l.jsx)("div",{className:(0,i.AK)("rich-text-block fixed-p-size body-normal",e),style:{color:B},dangerouslySetInnerHTML:{__html:U.additionalDetails2}}):(0,l.jsx)(l.Fragment,{})},ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return U.bottomDetails?(0,l.jsx)("div",{className:(0,i.AK)("rich-text-block fixed-p-size body-normal",e),style:{color:n||B},dangerouslySetInnerHTML:{__html:U.bottomDetails}}):(0,l.jsx)(l.Fragment,{})},re=function(){A(!1),L(null)};return(0,r.useEffect)((function(){q&&re()}),[q]),(0,r.useEffect)((function(){E(null===location||void 0===location?void 0:location.origin)}),[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("footer",{className:"flex flex-1",children:(0,l.jsxs)("div",{ref:$,id:"website-footer",className:"relative flex-1 z-10 break-word",style:{color:B},children:[(0,l.jsx)(x.Z,{block:U,website:k,onChange:function(e){var n,o,t;I((null===e||void 0===e||null===(n=e.overlay)||void 0===n?void 0:n.color1)||"#FFFFFF"),H((0,i.$O)((null===e||void 0===e||null===(o=e.overlay)||void 0===o?void 0:o.color1)||"#FFFFFF")),K((null===e||void 0===e||null===(t=e.foreground)||void 0===t?void 0:t.accent)||"#000000")}}),(0,l.jsx)("div",{className:(0,i.AK)("relative z-10 container mx-auto",(0,i.bG)(null===U||void 0===U?void 0:U.spacing)),children:function(){switch(null===U||void 0===U?void 0:U.style){case"split-left":return(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row lg:justify-between gap-12",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-12 lg:gap-6",children:[X(),(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row lg:items-center gap-12",children:[Y(),ee(),oe()]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[te("lg:max-w-70 xl:max-w-120 lg:text-right"),ne()]})]});case"split-nav-right":return(0,l.jsxs)("div",{className:"flex flex-col gap-8 lg:gap-20",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-8",children:[X(),te("md:max-w-120"),ee(),oe()]}),(0,l.jsxs)("div",{className:(0,i.AK)("flex flex-col-reverse lg:flex-row gap-8 lg:items-center",V?"lg:justify-between":"lg:justify-end"),children:[ne(),Y()]})]});case"stacked-right":return(0,l.jsxs)("div",{className:"flex flex-col justify-end items-end gap-12 text-right",children:[(0,l.jsxs)("div",{className:"flex flex-col items-end gap-6",children:[X("justify-end"),te()]}),(0,l.jsxs)("div",{className:"flex flex-col justify-end gap-12 lg:gap-14",children:[Y("justify-end items-end"),ee("justify-end"),(null===U||void 0===U?void 0:U.button)&&(0,l.jsx)("div",{children:oe()})]}),ne()]});case"stacked-center":return(0,l.jsxs)("div",{className:"flex flex-col justify-center gap-12 text-center",children:[(0,l.jsxs)("div",{className:"flex flex-col items-center gap-6",children:[X("justify-center"),te()]}),(0,l.jsxs)("div",{className:"flex flex-col justify-center gap-12 lg:gap-14",children:[Y("justify-center items-center"),ee("justify-center"),(null===U||void 0===U?void 0:U.button)&&(0,l.jsx)("div",{children:oe()})]}),ne("!text-center")]});case"stacked-left":return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-12 text-left",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-6",children:[X(),te()]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-12 lg:gap-14",children:[Y(),ee(),(null===U||void 0===U?void 0:U.button)&&(0,l.jsx)("div",{children:oe()})]}),ne("!text-left")]});case"stacked-bottom-bar":return(0,l.jsxs)("div",{className:"flex flex-col items-center gap-12",children:[X(),(0,l.jsxs)("div",{className:"flex flex-col items-center gap-10 md:gap-12 text-center",children:[(null===U||void 0===U?void 0:U.button)&&(0,l.jsx)("div",{children:oe()}),Y("items-center",!0),te(),le()]})]});case"simple-right":return(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12",children:[(0,l.jsxs)("div",{className:(0,i.AK)("flex flex-col lg:flex-row items-start lg:items-center gap-6",(null===U||void 0===U?void 0:U.showLogo)?"lg:gap-10":"lg:gap-2"),children:[X(),!!U.additionalDetails&&(0,l.jsxs)(l.Fragment,{children:[!(null===U||void 0===U?void 0:U.showLogo)&&(0,l.jsx)("span",{className:"hidden lg:inline-block",children:"\xb7"}),te("lg:max-w-70 xl:max-w-120",!0)]})]}),(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row flex-wrap lg:items-center justify-end gap-12 lg:gap-14",children:[Y(),ee(),(null===U||void 0===U?void 0:U.button)&&(0,l.jsx)("div",{children:oe()}),ne()]})]});case"simple-center":return(0,l.jsxs)("div",{className:"flex flex-col justify-center gap-12 text-center",children:[(0,l.jsxs)("div",{className:(0,i.AK)("flex flex-col justify-center lg:items-center gap-6",(null===U||void 0===U?void 0:U.showLogo)?"lg:gap-6":"lg:flex-row lg:gap-2"),children:[X("justify-center lg:justify-end mx-auto lg:mx-0"),!!U.additionalDetails&&(0,l.jsxs)(l.Fragment,{children:[!U.showLogo&&(0,l.jsx)("span",{className:"hidden lg:inline-block",children:"\xb7"}),te("lg:max-w-[50vw]")]})]}),(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row lg:items-center justify-center gap-12 lg:gap-14",children:[Y("justify-center items-center"),ee("justify-center"),oe(),ne("!text-center")]})]});case"columns-bottom-bar":var e="flex-0 w-full sm:w-1/2 lg:w-1/4 sm:px-5 lg:px-10";return(0,l.jsxs)("div",{className:"flex flex-col gap-12",children:[X(),(0,l.jsxs)("div",{className:"flex flex-wrap gap-y-10 sm:-mx-5 lg:-mx-10",children:[Y(e,!0),(null===U||void 0===U?void 0:U.showSocial)&&(0,l.jsx)("div",{className:e,children:ee("flex-col !items-start",null,!0)}
1),!!(null===U||void 0===U?void 0:U.additionalDetails)&&(0,l.jsx)("div",{className:e,children:te()}),!!(null===U||void 0===U?void 0:U.additionalDetails2)&&(0,l.jsx)("div",{className:e,children:le()})]})]});case"columns-left-bottom-bar":return(0,l.jsxs)("div",{className:"flex flex-col gap-12",children:[X(),(0,l.jsxs)("div",{className:"flex flex-wrap gap-y-10 md:-mx-5 lg:-mx-10",children:[(0,l.jsx)("div",{className:"flex-0 w-full md:w-1/2 md:px-5 lg:px-10",children:(0,l.jsxs)("div",{className:"flex flex-wrap gap-y-10 md:-mx-5 lg:-mx-10",children:[!!(null===U||void 0===U?void 0:U.additionalDetails)&&(0,l.jsx)("div",{className:"flex-0 w-full lg:w-1/2 md:px-5 lg:px-10",children:te()}),Y("flex-0 w-full md:w-1/2 md:px-5 lg:px-10",!0)]})}),(null===U||void 0===U?void 0:U.button)&&(0,l.jsx)("div",{className:"flex-0 md:text-right w-full md:w-1/2 md:px-5 lg:px-10",children:oe()})]})]});case"columns-right":return(0,l.jsxs)("div",{className:"flex flex-col gap-12",children:[X(),(0,l.jsxs)("div",{className:"flex flex-wrap gap-y-10 md:-mx-5 lg:-mx-10",children:[((null===U||void 0===U?void 0:U.showSocial)||(null===U||void 0===U?void 0:U.button))&&(0,l.jsxs)("div",{className:"flex-0 w-full sm:w-1/2 md:px-5 lg:px-10 space-y-12",children:[ee(),oe()]}),Y("flex-0 w-full sm:w-1/2 lg:w-1/4 md:px-5 lg:px-10",!0),!!(null===U||void 0===U?void 0:U.additionalDetails)&&(0,l.jsx)("div",{className:"flex-0 w-full sm:w-1/2 lg:w-1/4 md:px-5 lg:px-10",children:te()})]}),(!!(null===U||void 0===U?void 0:U.bottomDetails)||V)&&(0,l.jsxs)("div",{className:"flex flex-col-reverse sm:flex-row sm:items-center gap-4",children:[ie(),ne()]})]});case"columns-right-split":return(0,l.jsxs)("div",{className:"flex flex-col gap-12",children:[X(),(0,l.jsxs)("div",{className:"flex flex-wrap gap-y-10 md:-mx-5 lg:-mx-10",children:[(null===U||void 0===U?void 0:U.button)&&(0,l.jsx)("div",{className:"flex-0 w-full md:w-1/2 md:px-5 lg:px-10",children:oe()}),Y("flex-0 w-full md:w-1/2 lg:w-1/4 md:px-5 lg:px-10",!0),!!(null===U||void 0===U?void 0:U.additionalDetails)&&(0,l.jsx)("div",{className:"flex-0 w-full md:w-1/2 lg:w-1/4 md:px-5 lg:px-10",children:te()})]}),(!!(null===U||void 0===U?void 0:U.bottomDetails)||V)&&(0,l.jsxs)("div",{className:"pb-8",children:[(0,l.jsx)("hr",{className:"mb-8 mt-0 opacity-20",style:{borderColor:B}}),(0,l.jsxs)("div",{className:"flex flex-col-reverse md:flex-row md:justify-between gap-8",children:[(0,l.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[ie(),ne()]}),ee()]})]})]});default:return(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row items-start lg:justify-between gap-12",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-6 items-start lg:max-w-[30vw]",children:[X(),te("lg:max-w-70 xl:max-w-120")]}),(0,l.jsxs)("div",{className:"flex flex-col gap-12 lg:gap-6",children:[(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row gap-12 lg:items-center lg:justify-end",children:[Y(),ee(),oe()]}),ne()]})]})}}()}),function(){var e;if(!(null===U||void 0===U||null===(e=U.style)||void 0===e?void 0:e.includes("bottom-bar")))return(0,l.jsx)(l.Fragment,{});var n=(0,i.$O)(D);return(0,l.jsx)("div",{className:"relative z-10 py-8 md:py-12",style:{backgroundColor:D,color:n},children:(0,l.jsx)("div",{className:"container mx-auto px-5 md:px-6",children:(0,l.jsxs)("div",{className:(0,i.AK)("flex justify-between gap-6","stacked-bottom-bar"===(null===U||void 0===U?void 0:U.style)&&"flex-col-reverse items-center","columns-bottom-bar"===(null===U||void 0===U?void 0:U.style)&&"flex-col md:flex-row"),children:[(0,l.jsxs)("div",{className:(0,i.AK)("flex gap-1 md:gap-4","stacked-bottom-bar"===(null===U||void 0===U?void 0:U.style)&&"flex-col-reverse items-center","columns-bottom-bar"===(null===U||void 0===U?void 0:U.style)&&"md:items-center"),children:[ie("",n),ne()]}),"columns-bottom-bar"!==(null===U||void 0===U?void 0:U.style)&&ee("",n)]})})})}(),(0,l.jsx)(y.iz,{contentRef:$,previousDivider:null===C||void 0===C?void 0:C.divider,previousBorder:null===C||void 0===C?void 0:C.border,dividerUniqueId:"website-footer-divider"})]})}),(0,l.jsx)(h.V,{open:S,onClose:re,className:"relative z-[30000] h-full",children:(0,l.jsx)(h.V.Panel,{className:"fixed inset-0 flex flex-col h-full",style:{backgroundColor:_,color:B},children:(0,l.jsxs)("div",{className:"flex-1 flex flex-col h-full container mx-auto pb-6",children:[(0,l.jsxs)("div",{className:(0,i.AK)("items-center gap-3 py-6","left"!==(null===G||void 0===G?void 0:G.style)?"grid":"flex justify-between"),style:"left"!==(null===G||void 0===G?void 0:G.style)?{gridTemplateColumns:"1fr auto 1fr"}:{},children:[("center"===(null===G||void 0===G?void 0:G.style)||"full-center"===(null===G||void 0===G?void 0:G.style))&&(0,l.jsx)("div",{}),function(){var e,n,o,t,r,a,d=(0,i.$K)(null===G||void 0===G?void 0:G.logo)?G:(0,b.i6)(G,k);if("image"===(null===d||void 0===d||null===(e=d.logo)||void 0===e?void 0:e.type)&&"branding"===(null===d||void 0===d||null===(n=d.logo)||void 0===n?void 0:n.source)&&((null===d||void 0===d||null===(o=d.logo)||void 0===o?void 0:o.url)||(null===k||void 0===k?void 0:k.logo))){var c,u,v=(null===d||void 0===d||null===(c=d.logo)||void 0===c?void 0:c.url)||(0,i.QW)(null===k||void 0===k?void 0:k.logo);return(0,l.jsx)(s(),{href:"/",children:(0,l.jsx)("a",{target:(0,i.AO)(null===Q||void 0===Q?void 0:Q.forceRender),children:v&&(0,l.jsx)(b.yA,{src:v,text:null===d||void 0===d?void 0:d.siteName,height:null===d||void 0===d||null===(u=d.logo)||void 0===u?void 0:u.height})})})}if("image"===(null===d||void 0===d||null===(t=d.logo)||void 0===t?void 0:t.type)&&"upload"===(null===d||void 0===d||null===(r=d.logo)||void 0===r?void 0:r.source)&&(null===d||void 0===d||null===(a=d.logo)||void 0===a?void 0:a.media)){var f,m,h=(0,i.QW)(null===d||void 0===d||null===(f=d.logo)||void 0===f?void 0:f.media);return(0,l.jsx)(s(),{href:"/",children:(0,l.jsx)("a",{target:(0,i.AO)(null===Q||void 0===Q?void 0:Q.forceRender),children:h&&(0,l.jsx)(b.yA,{src:h,text:null===d||void 0===d?void 0:d.siteName,height:null===d||void 0===d||null===(m=d.logo)||void 0===m?void 0:m.height})})})}return(0,l.jsx)(b.TR,{logo:null===d||void 0===d?void 0:d.logo,text:null===d||void 0===d?void 0:d.siteName,color:B,forceRender:null===Q||void 0===Q?void 0:Q.forceRender})}(),(0,l.jsx)("div",{className:"ml-auto lg:hidden",children:(0,l.jsx)("button",{className:"inline-flex items-center justify-center p-2 rounded-md focus:outline-none",style:{color:B},onClick:re,children:(0,l.jsx)(f.Z,{className:"block h-5 w-5","aria-hidden":"true"})})})]}),(0,l.jsx)("ul",{className:(0,i.AK)("flex-1 flex flex-col justify-center gap-3 w-full py-6 overflow-auto","center"===(null===U||void 0===U?void 0:U.style)||"full-center"===(null===U||void 0===U?void 0:U.style)?"text-center":""),style:(0,t.Z)({color:B},(0,i.SV)(k)),children:null===P||void 0===P?void 0:P.map((function(e){return(0,l.jsx)("li",{className:(0,i.AK)("body-large py-2 border-b-2 -mb-2"),style:{borderColor:e.current?"".concat(B):"transparent"},children:(0,l.jsx)(s(),{href:e.href,children:(0,l.jsx)("a",{className:"block w-full",target:(0,i.AO)(e.forceRender),children:e.name})})},"page-link-".concat(e.href))}))})]})})})]})}},62246:function(e,n,o){var t=o(67294),l=(o(85405),o(91033));n.Z=function(e,n){var o=(0,t.useState)(!1),i=o[0],r=o[1],a=(0,t.useRef)(e);a.current=e;var s=function(e){var n=!0,o=!1,t=void 0;try{for(var l,s=e[Symbol.iterator]();!(n=(l=s.next()).done);
1n=!0){var d=l.value;document.body.contains(d.target)||r(!i),a.current(d.target)}}catch(c){o=!0,t=c}finally{try{n||null==s.return||s.return()}finally{if(o)throw t}}};(0,t.useEffect)((function(){if(n){var e=new l.Z(s),o=Array.isArray(n)?n:[n];return o.forEach((function(n){return n.current&&e.observe(n.current)})),function(){o.forEach((function(n){return n.current&&e.unobserve(n.current)})),e.disconnect()}}}),[n,i])}},23226:function(e,n,o){var t=o(34727),l=o(75815),i=o(67573),r=o(97582),a=o(87066),s=o(83454);n.Z=function e(n,o){(0,l.Z)(this,e);var d=this;(0,i.Z)(this,"get",function(){var e=(0,t.Z)((function(e,n){return(0,r.__generator)(this,(function(o){return[2,new Promise((function(o,l){a.Z.get(e,{baseURL:d.baseURL,params:n||{},headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(function(){var e=(0,t.Z)((function(e){return(0,r.__generator)(this,(function(n){return o(e.data),[2]}))}));return function(n){return e.apply(this,arguments)}}()).catch((function(e){e.response?o({status:!1,message:e.response.data.message}):e.request?o({status:!1,message:e.request.message}):o({status:!1,message:e.message}),o({status:!1,message:e.config})}))}))]}))}));return function(n,o){return e.apply(this,arguments)}}());var c=this;(0,i.Z)(this,"post",function(){var e=(0,t.Z)((function(e,n,o){return(0,r.__generator)(this,(function(t){return[2,new Promise((function(t,l){a.Z.post(e,n||{},{baseURL:c.baseURL,headers:{"Content-Type":o?"multipart/form-data":"application/json",Accept:"application/json, multipart/form-data"}}).then((function(e){t(e.data)})).catch((function(e){e.response?t(e.response.data):e.request?t({status:!1,message:e.request}):t({status:!1,message:e.message}),t({status:!1,message:e.config})}))}))]}))}));return function(n,o,t){return e.apply(this,arguments)}}()),a.Z.defaults.withCredentials=null===o||void 0===o||o,this.baseURL=n||s.env.API_URL||"https://api.durable.co"}},24831:function(e,n,o){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.lowerCaseTail,l=void 0!==o&&o,i=n.capitalizeWords,r=void 0!==i&&i;if(!r){var a=l?e.slice(1).toLowerCase():e.slice(1);return e.charAt(0).toUpperCase()+a}var s=e.split(" ");return s.map((function(e){return t(e,{lowerCaseTail:l,capitalizeWords:!1})})).join(" ")}o.d(n,{k:function(){return t}})},85405:function(e,n,o){o.d(n,{uR:function(){return Ze},nJ:function(){return ke},mQ:function(){return Fe},$O:function(){return Re},_y:function(){return Ce},h:function(){return Be},SV:function(){return Le},AK:function(){return Se},Ds:function(){return en},p$:function(){return Pe},n3:function(){return De},rE:function(){return Ue},e0:function(){return Ge},sd:function(){return Qe},dz:function(){return Xe},ej:function(){return on},yW:function(){return Oe},pr:function(){return _e},s4:function(){return ze},Ae:function(){return Ve},CE:function(){return $e},QW:function(){return Je},Qm:function(){return He},G0:function(){return Ie},AO:function(){return ln},ow:function(){return Ye},bG:function(){return qe},A2:function(){return Ke},mR:function(){return Te},jn:function(){return We},$K:function(){return nn},s:function(){return Ee},d8:function(){return tn},ac:function(){return Me},oH:function(){return Ae}});var t=o(14251),l=o(52875),i=o(69779),r=o(85893),a=o(67294),s=(o(79981),o(34727)),d=o(44747),c=o(97582),u=o(9008),v=o.n(u),f=o(23226),m=o(85518),h=o(11163),g=o.n(h),p=(o(40993),o(42419)),x=o(28521),y=o(41968),b=o(28666),j=o(47041),w=o(52077),N=o(90387),k=o(41664),C=o.n(k),F=o(17258),Z=o(44080),S=o(62934),A=o(32713),R=o(92122),T=o(59956),E=o(72434),M=o(73423),P=o(83339),L=o(74007),z=o(75654),_=o(23493),I=o(75871),W=o(41984),B=o(3677),H=o(89774),O={fontFamily:"var(--body-fontFamily)",fontWeight:"var(--body-fontWeight, 400)",fontStyle:"var(--body-fontStyle, normal)"};function D(e){var n,o,i=e.open,s=e.block,d=e.website,c=e.background,u=e.textColor,v=e.links,f=e.headerHeight,m=e.currentNests,h=e.setCurrentNests,g=(0,H.$G)("common").t,p=(null===s||void 0===s?void 0:s.navStyle)||"default",x=function(e,n){var o=Te(n,(null===p||void 0===p?void 0:p.includes("subtle"))?10:80);return(0,l.Z)((0,t.Z)({},O),{borderColor:e.current?n:"transparent",backgroundColor:e.current&&"default"!==p?o:"transparent",color:e.current&&p.includes("bold")?Re(n):"currentColor"})};return(0,r.jsx)(Z.u,{show:i,as:a.Fragment,children:(0,r.jsx)("div",{className:"absolute inset-0 h-screen",children:(0,r.jsx)(Z.u.Child,{as:a.Fragment,enter:"transition-all ease-in-out duration-500",enterFrom:"-translate-y-full opacity-0",enterTo:"translate-y-0 opacity-100",leave:"transition-all ease-in-out duration-500 delay-100",leaveFrom:"translate-y-0 opacity-100",leaveTo:"-translate-y-full opacity-0",children:(0,r.jsx)("div",{className:"flex flex-col h-full",style:{backgroundColor:c,color:u},children:(0,r.jsx)(Z.u.Child,{as:a.Fragment,enter:"transition-all ease-in-out duration-500 delay-400",enterFrom:"-translate-y-10 opacity-0",enterTo:"translate-y-0 opacity-100",leave:"transition-all ease-in-out duration-300",leaveFrom:"translate-y-0 opacity-100",leaveTo:"-translate-y-10 opacity-0",children:(0,r.jsxs)("div",{className:"flex-1 flex flex-col gap-8 h-full w-full px-5 md:px-6",children:[(0,r.jsx)("div",{style:{height:f}}),(null===v||void 0===v?void 0:v.length)>0&&(0,r.jsxs)("div",{className:"flex-1 overflow-auto no-scrollbar",children:[(0,r.jsx)(Z.u,{as:a.Fragment,show:!m,enter:"transition-all duration-300",enterFrom:"-translate-y-10 opacity-0",enterTo:"translate-y-0 opacity-100",children:(0,r.jsx)("ul",{className:"flex flex-col items-center justify-center gap-8 h-full text-center",style:{color:u},children:1===v.length&&"parent"===v[0].type?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("li",{className:"heading-normal py-2",style:{borderColor:v[0].current?"".concat(u):"transparent"},children:(0,r.jsx)("span",{className:"block w-full",children:v[0].name})},"page-link-".concat(v[0].href)),null===(n=v[0].nests)||void 0===n?void 0:n.map((function(e){return(0,r.jsx)("li",{className:Se("relative heading-large py-2","default"!==p?"px-3":"","default"===p?"after:left-1/2 after:-translate-x-1/2":"",e.current&&"default"===p?"active-menu-item":""),style:x(e,u),children:(0,r.jsx)(C(),{className:"block w-full",href:e.href,legacyBehavior:!1,target:ln(e.forceRender),children:e.name})},"page-link-".concat(e.href))}))]}):(0,r.jsx)(r.Fragment,{children:null===v||void 0===v?void 0:v.map((function(e){return(0,r.jsx)("li",{className:Se("relative heading-large py-2","default"!==p?"px-3":"","default"===p?"after:left-1/2 after:-translate-x-1/2":"",e.current&&"default"===p?"active-menu-item":""),style:x(e,u),children:"parent"===e.type&&e.nests.length>0?(0,r.jsxs)("button",{className:"inline-flex items-center gap-2",onClick:function(){return h(e.nests)},children:[(0,r.jsx)("span",{children:e.name}),(0,r.jsx)(W.Z,{className:"w-4 h-4"})]}):(0,r.jsx)(C(),{className:"block w-full",href:e.href,legacyBehavior:!1,target:ln(e.forceRender),children:e.name})},"page-link-".concat(e.href))}))})})}),(0,r.jsx)(Z.u,{as:a.Fragment,show:!!m,enter:"transition-all duration-300",enterFrom:"-translate-y-10 opacity-0",enterTo:"translate-y-0 opacity-100",children:(0,r.jsx)("ul",{className:"flex flex-col items-center justify-center gap-8 w-full text-center",style:{color:u},children:(0,r.jsxs)(r.Fragment,{children:[m&&(0,r.jsx)("li",{children:(0,r.jsxs)("button",{className:Se("flex items-center justify-center gap-2 w-full py-2 heading-medium","default"!==p?"px-3":""),style:O,onClick:function(){return h(null)},children:[(0,r.jsx)(B.Z,{className:"w-4 h-4","aria-hidden":"true"}),(0,r.jsx)("span",{children:g("back")})]})}),null===m||void 0===m?void 0:m.map((function(e){return(0,r.jsx)("li",{className:Se("relative heading-large py-2","default"!==p?"px-3":"","default"===p?"after:left-1/2 md:after:left-0 after:-translate-x-1/2 md:after:translate-x-0":"",e.current&&"default"===p?"active-menu-item":""),style:x(e,u),children:(0,r.jsx)(C(),{className:"block w-full",href:e.href,legacyBehavior:!1,target:ln(e.forceRender),children:e.name})},"page-link-".concat(e.href))}))]})})})]}),(0,r.jsx)("div",{className:Se("flex flex-col items-center max-w-full",(null===v||void 0===v?void 0:v.length)>
10?"":"h-full justify-center"),children:(null===s||void 0===s?void 0:s.showSocial)&&(null===(o=d.social)||void 0===o?void 0:o.length)>0&&(0,r.jsx)("ul",{className:"flex items-center gap-x-4 gap-y-2 flex-wrap py-6",children:Array.isArray(d.social)&&d.social.map((function(e,n){var o=z.WG.find((function(n){return n.id===e.type})),t=e.link;return"custom"!==e.type&&(t=(t=e.link.replace(/[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\//gi,"").replace(/https?:/g,"").replace(/^\/\/?/g,"")).replace(null===o||void 0===o?void 0:o.host,""),t="https://".concat(null===o||void 0===o?void 0:o.host,"/").concat(t)),(0,r.jsx)("li",{children:(0,r.jsx)(C(),{href:t,children:(0,r.jsx)("a",{target:"_blank",children:(0,r.jsx)(z.QZ,{icon:e,color:u,settings:d.socialSettings})})})},"social-icon-header-".concat(n))}))})})]})})})})})})}var K=o(26581),$=o(43751);function q(e){var n,o,t,l,i=e.open,s=e.setOpen,d=e.block,c=e.website,u=e.background,v=e.textColor,f=e.isSmall,m=(e.isMobile,e.isEdgeCase),h=e.renderLogo,g=e.links,p=e.buttons,x=e.buttonsEnabled,y=e.isHeaderTransparent,b=e.combineWithNextBlock,j=e.currentNests,N=e.setCurrentNests,k=(0,H.$G)("common").t,F=(0,a.useRef)(null),S=(null===d||void 0===d?void 0:d.navStyle)||"default",A=null===d||void 0===d?void 0:d.style,R=null===d||void 0===d?void 0:d.menu,T=function(e,n){var o=Te(n,(null===S||void 0===S?void 0:S.includes("subtle"))?10:80);return{borderColor:e.current?n:"transparent",backgroundColor:e.current&&"default"!==S?o:"transparent",color:e.current&&S.includes("bold")?Re(n):"currentColor"}};return(0,r.jsx)(Z.u,{show:i,as:"div",children:(0,r.jsxs)(K.V,{className:"relative z-[30000] h-full",initialFocus:F,onClose:function(){return s(!1)},children:[(0,r.jsx)(Z.u.Child,{as:a.Fragment,enter:"ease-in-out duration-500",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-500",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,r.jsx)(K.V.Overlay,{className:"fixed inset-0 bg-black bg-opacity-5 transition-opacity"})}),(0,r.jsx)(Z.u.Child,{as:a.Fragment,enter:"transform transition transition-all ease-in-out duration-350",enterFrom:(null===d||void 0===d||null===(n=d.menu)||void 0===n?void 0:n.collapse)&&!f?A.includes("left")?"translate-x-full":"-translate-x-full":"translate-x-0 opacity-0",enterTo:"translate-x-0 opacity-100",leave:"transform transition transition-all ease-in-out duration-350",leaveFrom:"translate-x-0 opacity-100",leaveTo:(null===d||void 0===d||null===(o=d.menu)||void 0===o?void 0:o.collapse)&&!f?A.includes("left")?"translate-x-full":"-translate-x-full":"translate-x-0 opacity-0",children:(0,r.jsx)(K.V.Panel,{className:Se("fixed flex flex-col shadow-lg",(null===R||void 0===R?void 0:R.collapse)&&!f?A.includes("left")?"top-0 bottom-0 right-0 w-80":"top-0 left-0 bottom-0 w-80":m?"top-0 left-0 right-0":"inset-0 h-full"),style:{backgroundColor:u,color:v},children:(0,r.jsxs)("div",{ref:F,className:Se("flex-1 flex flex-col h-full mx-auto pb-6",(null===d||void 0===d?void 0:d.fullWidth)?"w-full px-6":"container"),children:[(0,r.jsxs)("div",{className:Se("items-center",V(null===d||void 0===d?void 0:d.spacing),A.includes("left")?"flex justify-between":"grid"),style:A.includes("left")?{}:{gridTemplateColumns:"1fr auto 1fr"},children:[["center","full-center"].includes(A)&&(0,r.jsx)("div",{}),(0,r.jsx)("div",{className:"lg:invisible",children:h(!0)}),(0,r.jsx)("div",{className:"ml-auto",children:(0,r.jsx)("button",{className:"inline-flex items-center justify-center p-2 rounded-md outline-none",style:{color:v},onClick:function(){return s(!1)},children:(0,r.jsx)($.Z,{className:"block h-5 w-5","aria-hidden":"true"})})})]}),(null===g||void 0===g?void 0:g.length)>0&&(0,r.jsxs)("div",{className:"flex-1 py-6 overflow-auto",children:[(0,r.jsx)(Z.u,{as:"div",show:!j,enter:"transition-opacity",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,r.jsx)("ul",{className:Se("flex flex-col justify-center lg:justify-start gap-3 w-full",f&&["center","full-center"].includes(A)?"text-center":""),style:{color:v},children:1===g.length&&"parent"===g[0].type?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("li",{className:"text-xl lg:!text-sm font-medium py-2",style:{borderColor:g[0].current?"".concat(v):"transparent"},children:(0,r.jsx)("span",{className:"block w-full",children:g[0].name})},"page-link-".concat(g[0].href)),null===(t=g[0].nests)||void 0===t?void 0:t.map((function(e){return(0,r.jsx)("li",{className:Se("relative body-large py-2","default"!==S?"px-3":"",["center","full-center"].includes(A)&&"default"===S?"after:left-1/2 md:after:left-0 after:-translate-x-1/2 md:after:translate-x-0":"",e.current&&"default"===S?"active-menu-item":""),style:T(e,v),children:(0,r.jsx)(C(),{className:"block w-full",href:e.href,legacyBehavior:!1,target:ln(e.forceRender),children:e.name})},"page-link-".concat(e.href))}))]}):(0,r.jsx)(r.Fragment,{children:null===g||void 0===g?void 0:g.map((function(e){return(0,r.jsx)("li",{className:Se("relative body-large lg:!text-body py-2","default"!==S?"px-3":"",["center","full-center"].includes(A)&&"default"===S?"after:left-1/2 md:after:left-0 after:-translate-x-1/2 md:after:translate-x-0":"",e.current&&"default"===S?"active-menu-item":""),style:T(e,v),children:"parent"===e.type&&e.nests.length>0?(0,r.jsxs)("button",{className:"inline-flex items-center gap-2",onClick:function(){return N(e.nests)},children:[(0,r.jsx)("span",{children:e.name}),(0,r.jsx)(W.Z,{className:"w-4 h-4","aria-hidden":"true"})]}):(0,r.jsx)(C(),{className:"block w-full",href:e.href,legacyBehavior:!1,target:ln(e.forceRender),children:e.name})},"page-link-".concat(e.href))}))})})}),(0,r.jsx)(Z.u,{as:"div",show:!!j,enter:"transition-opacity",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,r.jsx)("ul",{className:Se("flex flex-col justify-center lg:justify-start gap-3 w-full",f&&["center","full-center"].includes(A)?"text-center":""),style:{color:v},children:(0,r.jsxs)(r.Fragment,{children:[j&&(0,r.jsx)("li",{children:(0,r.jsxs)("button",{className:Se("flex items-center gap-2 w-full py-2 body-large lg:!text-body","default"!==S?"px-3":"",f&&["center","full-center"].includes(A)?"justify-center":""),onClick:function(){return N(null)},children:[(0,r.jsx)(B.Z,{className:"w-4 h-4","aria-hidden":"true"}),(0,r.jsx)("span",{children:k("back")})]})}),null===j||void 0===j?void 0:j.map((function(e){return(0,r.jsx)("li",{className:Se("relative body-large lg:!text-body py-2","default"!==S?"px-3":"",["center","full-center"].includes(A)&&"default"===S?"after:left-1/2 md:after:left-0 after:-translate-x-1/2 md:after:translate-x-0":"",e.current&&"default"===S?"active-menu-item":""),style:T(e,v),children:(0,r.jsx)(C(),{className:"block w-full",href:e.href,legacyBehavior:!1,target:ln(e.forceRender),children:e.name})},"page-link-".concat(e.href))}))]})})})]}),(0,r.jsxs)("div",{className:Se("flex flex-col max-w-[100vw] lg:hidden",["center","full-center"].includes(A)?"items-center":"",(null===g||void 0===g?void 0:g.length)>
10?"":"h-full justify-center"),children:[(null===d||void 0===d?void 0:d.showSocial)&&(null===(l=c.social)||void 0===l?void 0:l.length)>0&&(0,r.jsx)("ul",{className:"flex items-center gap-x-4 gap-y-2 flex-wrap py-6",children:Array.isArray(c.social)&&c.social.map((function(e,n){var o=z.WG.find((function(n){return n.id===e.type})),t=e.link;return"custom"!==e.type&&(t=(t=e.link.replace(/[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\//gi,"").replace(/https?:/g,"").replace(/^\/\/?/g,"")).replace(null===o||void 0===o?void 0:o.host,""),t="https://".concat(null===o||void 0===o?void 0:o.host,"/").concat(t)),(0,r.jsx)("li",{children:(0,r.jsx)(C(),{href:t,children:(0,r.jsx)("a",{target:"_blank",children:(0,r.jsx)(z.QZ,{icon:e,color:y&&!f?b.textColor:v,settings:c.socialSettings})})})},"social-icon-header-".concat(n))}))}),(null===p||void 0===p?void 0:p.length)>0&&x&&(0,r.jsx)("div",{className:Se("flex items-center flex-shrink-0 flex-wrap gap-4",["center","full-center"].includes(A)?"items-center justify-center":""),children:null===p||void 0===p?void 0:p.map((function(e,n){return(0,r.jsx)(w.Z,{button:e,block:d,website:c,className:Se(["center","full-center"].includes(A)?"text-center":"")},"banner-button-".concat(n))}))}),(null===d||void 0===d?void 0:d.button)&&(0,r.jsx)("div",{className:"py-6",children:(0,r.jsx)(w.Z,{button:d.button,block:d,website:c})})]})]})})})]})})}var U=o(4626),V=function(e){var n,o,t=(null===(n=I.b[null===e||void 0===e?void 0:e.top])||void 0===n?void 0:n.top)||I.b.medium.top,l=(null===(o=I.b[null===e||void 0===e?void 0:e.bottom])||void 0===o?void 0:o.bottom)||I.b.medium.bottom;return"".concat(t," ").concat(l)};function G(e){var n,o,t,l,i,s,d,c,u,v,f,m,h,g,p,x,y,b,j,k,Z,I,W,B,H=e.website,O=function(){var e,n,o;return(0,r.jsxs)("div",{className:"ml-auto lg:hidden",children:[(pe&&(null===me||void 0===me?void 0:me.length)>0||(null===Le||void 0===Le?void 0:Le.length)>0||(null===we||void 0===we?void 0:we.showSocial)&&Array.isArray(null===H||void 0===H?void 0:H.social)&&(null===H||void 0===H||null===(e=H.social)||void 0===e?void 0:e.length)>1)&&(0,r.jsx)("button",{className:"inline-flex items-center justify-center p-2 rounded-md focus:outline-none transition-colors duration-300",style:{color:!We&&ze?ue.textColor:oe},onClick:function(){return Q(!G)},children:G&&"screen"===(null===we||void 0===we||null===(n=we.menu)||void 0===n?void 0:n.style)?(0,r.jsx)(S.Z,{className:"w-5 h-5"}):Ve()}),!pe&&0===(null===Le||void 0===Le?void 0:Le.length)&&(null===we||void 0===we?void 0:we.showSocial)&&Array.isArray(null===H||void 0===H?void 0:H.social)&&1===(null===H||void 0===H||null===(o=H.social)||void 0===o?void 0:o.length)&&De(!0)]})},K=Me("(max-width: 1023px)"),$=(0,a.useState)(!1),G=$[0],Q=$[1],X=(0,a.useState)("#FFFFFF"),Y=X[0],ee=X[1],ne=(0,a.useState)("#000000"),oe=ne[0],te=ne[1],le=(0,a.useState)(null),ie=le[0],re=le[1],ae=(0,a.useState)(!1),se=ae[0],de=ae[1],ce=(0,a.useState)({combine:!1}),ue=ce[0],ve=ce[1],fe=(0,a.useState)(null),me=fe[0],he=fe[1],ge=(0,a.useState)(!1),pe=ge[0],xe=ge[1],ye=(0,N.useRouter)(),be=(0,a.useRef)(null),je=null===H||void 0===H||null===(n=H.pages)||void 0===n?void 0:n.find((function(e){return!e.slug})),we=null===H||void 0===H?void 0:H.header,Ne=(0,a.useState)(!1),ke=Ne[0],Ce=Ne[1],Fe=(0,a.useState)(!1),Ze=Fe[0],Ae=Fe[1],Ee="image"===(null===(o=we.logo)||void 0===o?void 0:o.type)&&"upload"===(null===(t=we.logo)||void 0===t?void 0:t.source)&&((null===we||void 0===we||null===(l=we.logo)||void 0===l||null===(i=l.height)||void 0===i?void 0:i.desktop)>80||(null===we||void 0===we||null===(s=we.logo)||void 0===s||null===(d=s.height)||void 0===d?void 0:d.mobile)>80)&&(null===we||void 0===we?void 0:we.sticky),Pe="image"===(null===(c=we.logo)||void 0===c?void 0:c.type)&&"branding"===(null===(u=we.logo)||void 0===u?void 0:u.source)&&(null===(v=we.logo)||void 0===v||null===(f=v.branding)||void 0===f?void 0:f.logo)&&((null===(m=we.logo)||void 0===m||null===(h=m.branding)||void 0===h||null===(g=h.scale)||void 0===g?void 0:g.desktop)>1||(null===(p=we.logo)||void 0===p||null===(x=p.branding)||void 0===x||null===(y=x.scale)||void 0===y?void 0:y.mobile)>1)&&(null===we||void 0===we?void 0:we.sticky),Le=(0,a.useMemo)((function(){var e,n;return(null===(n=null===(e=H.pages)||void 0===e?void 0:e.filter((function(e){return!0===e.showOnHeader||void 0===e.showOnHeader})))||void 0===n?void 0:n.map((function(e){var n={href:"/".concat(e.slug||""),name:e.label,current:ye.asPath==="/".concat(e.slug||"")||ye.asPath.includes("/".concat(e.slug,"/")),type:e.type,forceRender:e.forceRender};return"parent"===n.type&&(n.nests=H.pages.filter((function(n){var o;return n.Parent===e._id||(null===(o=n.Parent)||void 0===o?void 0:o._id)===e._id})).map((function(n){return{href:"/".concat(e.slug,"/").concat(n.slug||""),name:n.label,current:ye.asPath==="/".concat(e.slug,"/").concat(n.slug||""),forceRender:n.forceRender}})),0===n.nests.length)?null:n})).filter((function(e){return null!==e&&"nested"!==e.type&&void 0!==e})))||[]}),[H,ye.asPath]),ze=(null===ue||void 0===ue?void 0:ue.combine)&&(!(null===we||void 0===we?void 0:we.sticky)||!se),_e=null===we||void 0===we?void 0:we.style,Ie=(null===we||void 0===we?void 0:we.navStyle)||"default",We=(null===we||void 0===we||null===(b=we.menu)||void 0===b?void 0:b.collapse)&&"screen"===(null===we||void 0===we||null===(j=we.menu)||void 0===j?void 0:j.style)&&G,He=function(){var e;return(null===be||void 0===be||null===(e=be.current)||void 0===e?void 0:e.clientHeight)||0},Oe=function(){return(null===me||void 0===me?void 0:me.length)>0&&pe&&(0,r.jsx)("div",{className:"hidden lg:flex items-center flex-shrink-0 gap-4",children:null===me||void 0===me?void 0:me.map((function(e,n){return(0,r.jsx)(w.Z,{button:e,block:we,website:H,fallbackSize:"md"},"banner-button-".concat(n))}))})},De=function(e){var n,o;return(null===we||void 0===we||null===(n=we.menu)||void 0===n?void 0:n.collapse)&&"screen"===(null===we||void 0===we||null===(o=we.menu)||void 0===o?void 0:o.style)&&(null===Le||void 0===Le?void 0:Le.length)>0?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)("ul",{className:Se("lg:flex items-center gap-x-4 gap-y-2 flex-wrap","full-center"!==_e?"justify-end":"",!e&&"hidden"),children:Array.isArray(H.social)&&H.social.map((function(e,n){var o=z.WG.f
1ind((function(n){return n.id===e.type})),t=e.link;return"custom"!==e.type&&(t=(t=e.link.replace(/[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\//gi,"").replace(/https?:/g,"").replace(/^\/\/?/g,"")).replace(null===o||void 0===o?void 0:o.host,""),t="https://".concat(null===o||void 0===o?void 0:o.host,"/").concat(t)),(0,r.jsx)("li",{children:(0,r.jsx)(C(),{href:t,children:(0,r.jsx)("a",{target:"_blank",children:(0,r.jsx)(z.QZ,{icon:e,color:ze?ue.textColor:oe,settings:H.socialSettings})})})},"social-icon-header-".concat(n))}))})},Ke=function(e){var n,o,t,l,i,a,s,d,c=null===we||void 0===we?void 0:we.logo,u={desktop:(null===we||void 0===we||null===(n=we.logo)||void 0===n||null===(o=n.height)||void 0===o?void 0:o.desktop)>80?80:null===we||void 0===we||null===(t=we.logo)||void 0===t||null===(l=t.height)||void 0===l?void 0:l.desktop,mobile:(null===we||void 0===we||null===(i=we.logo)||void 0===i||null===(a=i.height)||void 0===a?void 0:a.mobile)>80?80:null===we||void 0===we||null===(s=we.logo)||void 0===s||null===(d=s.height)||void 0===d?void 0:d.mobile};if(!nn(c)&&H&&(c=(0,_.i6)(we,H).logo),"image"===(null===c||void 0===c?void 0:c.type)&&"branding"===(null===c||void 0===c?void 0:c.source)){var v,f,m,h,g,p,x,y;if(null===we||void 0===we||null===(v=we.logo)||void 0===v||null===(f=v.branding)||void 0===f?void 0:f.logo)return(0,r.jsx)(C(),{href:"/",children:(0,r.jsx)("a",{target:ln(null===je||void 0===je?void 0:je.forceRender),children:Pe?(0,r.jsx)(J,{branding:we.logo.branding,variant:null===(m=we.logo)||void 0===m?void 0:m.variant,textColor:ze?ue.textColor:oe,scale:null===we||void 0===we||null===(h=we.logo)||void 0===h||null===(g=h.branding)||void 0===g?void 0:g.scale,resizeScale:Ze}):(0,r.jsx)(U.Z,{branding:we.logo.branding,variant:null===(p=we.logo)||void 0===p?void 0:p.variant,textColor:ze?ue.textColor:oe,scale:null===we||void 0===we||null===(x=we.logo)||void 0===x||null===(y=x.branding)||void 0===y?void 0:y.scale})})});if((null===c||void 0===c?void 0:c.url)||(null===H||void 0===H?void 0:H.logo)){var b,j=(null===c||void 0===c?void 0:c.url)||Je(null===H||void 0===H?void 0:H.logo);return(0,r.jsx)(C(),{href:"/",children:(0,r.jsx)("a",{className:"max-w-full overflow-hidden grid",target:ln(null===je||void 0===je?void 0:je.forceRender),children:j&&(0,r.jsx)(_.yA,{src:j,text:null===we||void 0===we?void 0:we.siteName,height:ke?u:null===we||void 0===we||null===(b=we.logo)||void 0===b?void 0:b.height})})})}}else if("image"===(null===c||void 0===c?void 0:c.type)&&"upload"===(null===c||void 0===c?void 0:c.source)&&(null===c||void 0===c?void 0:c.media)){var w,N=Je(null===c||void 0===c?void 0:c.media);return(0,r.jsx)(C(),{href:"/",children:(0,r.jsx)("a",{className:"max-w-full overflow-hidden grid",target:ln(null===je||void 0===je?void 0:je.forceRender),children:N&&(0,r.jsx)(_.yA,{src:N,text:null===we||void 0===we?void 0:we.siteName,height:ke?u:null===we||void 0===we||null===(w=we.logo)||void 0===w?void 0:w.height})})})}return(0,r.jsx)(_.TR,{text:null===we||void 0===we?void 0:we.siteName,logo:c,color:We||!ze||e?oe:ue.textColor,forceRender:null===je||void 0===je?void 0:je.forceRender})},$e=function(e,n){var o=Te(n,(null===Ie||void 0===Ie?void 0:Ie.includes("subtle"))?10:80);return{borderColor:e.current?n:"transparent",backgroundColor:e.current&&"default"!==Ie?o:"transparent",color:e.current&&Ie.includes("bold")?Re(n):"currentColor"}},qe=function(){var e;if(0===(null===Le||void 0===Le?void 0:Le.length))return(0,r.jsx)(r.Fragment,{});var n=Be(Y,-10);n!==oe&&n!==Y||(n=Be(Y,10));var o=Re(n),t=ze?ue.textColor:oe;return(0,r.jsx)("ul",{className:Se("hidden items-center flex-wrap",!(null===we||void 0===we||null===(e=we.menu)||void 0===e?void 0:e.collapse)&&"lg:flex","left"===_e&&"justify-end","full-center"===_e&&"justify-center","default"===Ie?"gap-x-6":"gap-x-2"),style:{color:t},children:null===Le||void 0===Le?void 0:Le.map((function(e){var l;return(0,r.jsx)("li",{className:Se("default"===Ie?"border-b-2":"",(null===Ie||void 0===Ie?void 0:Ie.includes("round"))&&"rounded-lg"),style:$e(e,t),children:"parent"===e.type?(0,r.jsx)(L.Z,{buttonClassName:Se("inl
1ine-flex items-center gap-2","default"===Ie?"py-1.5":"py-2 px-3"),itemsContainerClass:Se("!p-4 !pr-6 w-max max-w-120 !max-h-[80vh] no-scrollbar",(null===Ie||void 0===Ie?void 0:Ie.includes("square"))&&"!rounded-none","default"===Ie&&"mt-0.5"),button:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"body-normal whitespace-nowrap",children:e.name}),(0,r.jsx)(A.Z,{className:"w-4 h-4"})]}),itemsContainerStyle:{backgroundColor:n,color:o},children:null===(l=e.nests)||void 0===l?void 0:l.map((function(e){return(0,r.jsx)(F.v.Item,{children:(0,r.jsx)(C(),{className:Se("block py-2 body-normal","default"===Ie?"border-b-2":"px-3",(null===Ie||void 0===Ie?void 0:Ie.includes("round"))&&"rounded-lg"),href:e.href,legacyBehavior:!1,target:ln(e.forceRender),style:$e(e,t),children:e.name})},"page-link-".concat(e.href))}))}):(0,r.jsx)(C(),{className:Se("block body-normal whitespace-nowrap","default"===Ie?"py-1.5":"py-2 px-3"),legacyBehavior:!1,href:e.href,target:ln(e.forceRender),children:e.name})},"header-page-link-".concat(e.href))}))})},Ue=function(){var e,n;return 0===(null===Le||void 0===Le?void 0:Le.length)?(0,r.jsx)(r.Fragment,{}):(null===we||void 0===we||null===(e=we.menu)||void 0===e?void 0:e.collapse)?(0,r.jsx)("button",{className:"hidden lg:inline-flex items-center justify-center gap-2 p-2 rounded-md transition-colors duration-300",style:{color:!We&&ze?ue.textColor:oe},onClick:function(){return Q(!G)},children:G&&"screen"===(null===we||void 0===we||null===(n=we.menu)||void 0===n?void 0:n.style)?(0,r.jsx)(S.Z,{className:"w-5 h-5"}):Ve()}):null},Ve=function(){var e,n="block h-5 w-5";switch(null===we||void 0===we||null===(e=we.menu)||void 0===e?void 0:e.icon){case"bars-3-bottom-left":return(0,r.jsx)(R.Z,{className:n,"aria-hidden":"true"});case"bars-3-bottom-right":return(0,r.jsx)(T.Z,{className:n,"aria-hidden":"true"});case"bars-3-center-left":return(0,r.jsx)(E.Z,{className:n,"aria-hidden":"true"});case"bars-2":return(0,r.jsx)(M.Z,{className:n,"aria-hidden":"true"});default:return(0,r.jsx)(P.Z,{className:n,"aria-hidden":"true"})}},Ge=function(){var e,n=null===(e=document.querySelector("#main-body"))||void 0===e?void 0:e.scrollTop;if(Ee||Pe){var o=He()-20;de((function(e){return!e&&n>o||!(e&&n<20)&&e}))}else de(n>20)};(0,a.useEffect)((function(){Ee&&Ce(!!se),Pe&&Ae(!!se)}),[se]);var Qe=function(e){var n=document.querySelector("[data-combine-with-header]");if(n){var o=null===n||void 0===n?void 0:n.getAttribute("data-combine-with-header");ve((function(t){return e<10&&(null===n||void 0===n?void 0:n.getAttribute("data-text-color"))!==t.textColor&&setTimeout((function(){Qe(e+1)}),100*e),{combine:!0===o||"true"===o,textColor:null===n||void 0===n?void 0:n.getAttribute("data-text-color")}}))}else ve((function(o){return e<10&&(!n||(null===n||void 0===n?void 0:n.getAttribute("data-text-color"))!==o.textColor)&&setTimeout((function(){Qe(e+1)}),15*e),{combine:!1,textColor:null}}))};return(0,a.useEffect)((function(){if(we){var e,n,o,t,l,i;if(he((null===we||void 0===we||null===(e=we.buttons)||void 0===e?void 0:e.items)||[we.button]),xe((null===we||void 0===we||null===(n=we.buttons)||void 0===n?void 0:n.items)?null===we||void 0===we||null===(o=we.buttons)||void 0===o?void 0:o.enabled:!!we.button),we.layers
1)if("custom"===we.layers.palette){var r;ee((null===(r=we.layers.overlay)||void 0===r?void 0:r.color1)||"#FFFFFF")}else{var a,s,d=(null===H||void 0===H||null===(a=H.colorPalette)||void 0===a?void 0:a.Palette)||(null===H||void 0===H?void 0:H.colorPalette);ee(Ye(d,null===(s=we.layers)||void 0===s?void 0:s.palette,"color"))}else ee(we.background||"#FFFFFF");if(null===we.siteName||void 0===we.siteName)we.siteName=null===H||void 0===H||null===(i=H.Business)||void 0===i?void 0:i.name;we.style||(we.style="left"),(null===(t=we.logoDesktop)||void 0===t?void 0:t.height)||(we.logoDesktop={height:80}),(null===(l=we.logoMobile)||void 0===l?void 0:l.height)||(we.logoMobile={height:40}),we.sticky&&(null===be||void 0===be?void 0:be.current)&&(document.documentElement.style.scrollPaddingTop=be.current.clientHeight+"px")}}),[we]),(0,a.useEffect)((function(){Qe(0)}),[ye.asPath]),(0,a.useEffect)((function(){Y&&te(Re(Y))}),[Y]),(0,a.useEffect)((function(){Q(!1),re(null)}),[ye.asPath,K]),(0,a.useEffect)((function(){var e;return null===(e=document.querySelector("#main-body"))||void 0===e||e.addEventListener("scroll",Ge),function(){var e;null===(e=document.querySelector("#main-body"))||void 0===e||e.removeEventListener("scroll",Ge)}}),[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("header",{id:"website-header",ref:be,className:Se("!z-[2000] transition-colors duration-300",(null===we||void 0===we?void 0:we.sticky)?"sticky top-0":"",(null===we||void 0===we?void 0:we.sticky)&&!ue.combine&&se||(null===we||void 0===we?void 0:we.sticky)&&se?"shadow-md":""),style:{backgroundColor:ze?"transparent":Y,color:ze?ue.textColor:oe},children:[(0,r.jsx)("div",{className:Se("relative z-10 grid items-center lg:gap-6 xl:gap-10 mx-auto",V(null===we||void 0===we?void 0:we.spacing),(null===we||void 0===we?void 0:we.fullWidth)?"px-6 lg:px-12":"container"),style:function(e){return"center"===e?{gridTemplateColumns:"1fr auto 1fr"}:"full-center"===e?(null===Le||void 0===Le?void 0:Le.length)>6?{gridTemplateColumns:"1fr 4fr 1fr"}:{gridTemplateColumns:"1fr auto 1fr"}:{gridTemplateColumns:"auto auto auto"}}(_e),children:"center"===_e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"lg:w-auto whitespace-nowrap",children:[qe(),Ue()]}),(0,r.jsx)("div",{className:"flex justify-center",children:Ke()}),(0,r.jsxs)("div",{className:"flex justify-end",children:[(0,r.jsxs)("div",{className:"hidden lg:flex item-center gap-10",children:[(null===we||void 0===we?void 0:we.showSocial)&&De(),pe&&Oe()]}),O()]})]}):"full-center"===_e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"lg:w-auto whitespace-nowrap",children:(null===we||void 0===we?void 0:we.showSocial)&&De()}),(0,r.jsxs)("div",{className:"flex-1 flex flex-col items-center gap-4 whitespace-nowrap",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 w-full",children:[Ke(),Ue()]}),qe()]}),(0,r.jsxs)("div",{className:"flex justify-end whitespace-nowrap",children:[pe&&Oe(),O()]})]}):"logo-left-menu-left"===_e?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex items-center gap-10 col-span-2",children:[Ke(),qe(),Ue()]}),(0,r.jsxs)("div",{className:"hidden lg:flex item-center justify-end gap-10",children:[(null===we||void 0===we?void 0:we.showSocial)&&De(),pe&&Oe()]}),O()]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"col-span-2 lg:col-span-1",children:Ke()}),(0,r.jsxs)("div",{className:"hidden lg:flex item-center justify-end gap-10 lg:col-span-2",children:["screen"!==(null===we||void 0===we||null===(k=we.menu)||void 0===k?void 0:k.style)&&Ue(),qe(),(null===we||void 0===we?void 0:we.showSocial)&&De(),pe&&Oe(),"screen"===(null===we||void 0===we||null===(Z=we.menu)||void 0===Z?void 0:Z.style)&&Ue()]}),O()]})}),(null===we||void 0===we||null===(I=we.menu)||void 0===I?void 0:I.collapse)&&"screen"===(null===we||void 0===we||null===(W=we.menu)||void 0===W?void 0:W.style)&&!K&&(0,r.jsx)(D,{open:G,setOpen:Q,block:we,website:H,background:Y,textColor:oe,links:Le,headerHeight:He(),currentNests:ie,setCurrentNests:re})]}),("screen"!==(null===we||void 0===we||null===(B=we.menu)||void 0===B?void 0:B.style)||K)&&(0,r.jsx)(q,{open:G,setOpen:Q,block:we,website:H,background:Y,textColor:oe,isSmall:K,isEdgeCase:!(!pe||0!==(null===Le||void 0===Le?void 0:Le.length)||(null===we||void 0===we?void 0:we.showSocial))||!!(0===(null===Le||void 0===Le?void 0:Le.length)&&(null===we||void 0===we?void 0:we.showSocial)&&Array.isArray(null===H||void 0===H?void 0:H.social)&&(null===H||void 0===H?void 0:H.social.length)>1)||!pe&&!we.showSocial&&1===(null===Le||void 0===Le?void 0:Le.length)||!(1!==(null===Le||void 0===Le?void 0:Le.length)||!pe&&!we.showSocial),renderLogo:Ke,links:Le,buttons:me,buttonsEnabled:pe,isHeaderTransparent:ze,combineWithNextBlock:ue,currentNests:ie,setCurrentNests:re})]})}var Q,J=function(e){var n=e.branding,o=e.variant,t=e.textColor,l=e.scale,i=e.resizeScale,s=(0,a.useState)(!0),d=s[0],c=s[1],u=(0,a.useState)(!1),v=u[0],f=u[1];return(0,a.useEffect)((function(){i?c(!1):f(!1)}),[i]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Z.u,{as:"div",className:"inline-block",unmount:!1,show:d,enter:"transition-all duration-300",enterFrom:"opacity-0 -translate-y-3",enterTo:"opacity-100 translate-y-0",leave:"transition-all duration-300",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-3",afterLeave:function(){f(!0)},children:(0,r.jsx)(U.Z,{branding:n,variant:o,textColor:t,scale:l})}),(0,r.jsx)(Z.u,{as:"div",className:"inline-block",unmount:!1,show:v,enter:"transition-all duration-300",enterFrom:"opacity-0 -translate-y-3",enterTo:"opacity-100 translate-y-0",leave:"transition-all duration-300",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 -translate-y-3",afterLeave:function(){c(!0)},children:(0,r.jsx)(U.Z,{branding:n,variant:o,textColor:t})})]})},X=o(165),Y=o(40782),ee=o(83457),ne=o.n(ee),oe=function(e){var n=e.apiUrl,o=e.website,t=e.page,l="home-local-markup",i=function(){var e=(0,s.Z)((function(){var e,t;return(0,c.__generator)(this,(function(l){switch(l.label){case 0:return[4,new f.Z(n).get("/office/get-info-by-business",{idBusiness:o.Business._id})];case 1:return e=l.sent(),t={},e&&!0===e.status&&(t=(null===e||void 0===e?void 0:e.content)||{}),[2,t]}}))}));return function(){return e.apply(this,arguments)}}(),d=function(){var e=(0,s.Z)((function(){var e,t,l;return(0,c.__generator)(this,(function(i){switch(i.label){case 0:return[4,new f.Z(n).get("/seo/markup-local-business-images",{idBusiness:o.Business._id})];case 1:return e=i.sent(),t={},e&&!0===e.status&&(t=(null===e||void 0===e||null===(l=e.content)||void 0===l?void 0:l.images)||{}),[2,t]}}))}));return function(){return e.apply(this,arguments)}}(),u=function(e){var n=[];if(Array.isArray(e)){var o=!0,t=!1,l=void 0;try{for(var i,r=e[Symbol.iterator]();!(o=(i=r.next()).done);o=!0){var a=i.value;if((null===a||void 0===a?void 0:a.link)&&(null===a||void 0===a?void 0:a.type))switch(a.type){case"facebook":n.push("https://facebook.com/".concat(a.link));break;case"youtube":n.push("https://youtube.com/".concat(a.link));break;case"linkedin":n.push("https://linkedin.com/".concat(a.link));break;case"instagram":n.push("https://instagram.com/".concat(a.link))}}}catch(s){t=!0,l=s}finally{try{o||null==r.return||r.return()}finally{if(t)throw l}}}return n},v=function(e){return!0===(null===e||void 0===e?void 0:e.public)?{"@type":"PostalAddress",streetAddress:(null===e||void 0===e?void 0:e.line1)||"",addressLocality:(null===e||void 0===e?void 0:e.city)||"",addressRegion:(null===e||void 0===e?void 0:e.state)||"",postalCode:(null===e||void 0===e?void 0:e.postalCode)||"",addressCountry:(null===e||void 0===e?void 0:e.country)?e.country.toUpperCase():""}:{}},m=function(){var e=(0,s.Z)((function(){var e,n,r,a,s,f,m,h;return(0,c.__generator)(this,(function(c){switch(c.label){case 0:return"object"!==typeof document?[3,3]:[4,i().catch((function(e){return console.log("Address Error",e)}))];case 1:return r=c.sent(),a=r.address,s=r.phoneNumber,[4,d().catch((function(e){return console.log("Gallery Error",e)}))];case 2:f=c.sent(),m={"@context":"https://schema.org/","@type":"LocalBusiness",name:(null===o||void 0===o||null===(e=o.seo)||void 0===e?void 0:e.title)||(null===o||void 0===o||null===(n=o.header)||void 0===n?void 0:n.name)||(null===t||void 0===t?void 0:t.label)||"",url:"".concat(location.protocol,"//").concat(location.hostname,"/"),telephone:s||"",image:f,address:v(a),sameAs:u((null===o||void 0===o?void 0:o.social)||[])},(h=document.getElementById(l)||document.createElement("script")).id=l,h.type="application/ld+json",h.innerHTML=JSON.stringify(m),document.body.appendChild(h),c.label=3;case 3:return[2]}}
1))}));return function(){return e.apply(this,arguments)}}();return(0,a.useEffect)((function(){return m().catch((function(e){return console.error("Failed to build markup")})),function(){!function(){if("object"===typeof document){var e=document.getElementById(l);e&&e.remove()}}()}}),[]),(0,r.jsx)(r.Fragment,{})},te=o(24230),le=o(25935),ie=new Set(["base","link","meta","noscript","style","title"]),re=new Set(["application/json","application/ld+json"]),ae="durable-global-head-code",se="durable-global-footer-code",de="durable-page-head-code",ce="durable-page-footer-code",ue=null,ve=function(e){return(null===e||void 0===e?void 0:e.nodeType)===Node.TEXT_NODE&&!e.textContent.trim()},fe=function(e){return re.has(null===e||void 0===e?void 0:e.toLowerCase())},me=function(e){if("undefined"===typeof document||!e)return{staticHtml:"",dynamicHtml:""};var n=document.createElement("template");n.innerHTML=e;var o=[],t=[];return Array.from(n.content.childNodes).forEach((function(e){ve(e)||(!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var n=e.nodeName.toLowerCase();return ie.has(n)||"script"===n&&fe(e.getAttribute("type"))}(e)?t.push(e.outerHTML||e.textContent):o.push(e.outerHTML))})),{staticHtml:o.join(""),dynamicHtml:t.join("")}},he=function(e){"undefined"!==typeof document&&ye(Array.from(document.querySelectorAll('[data-durable-custom-code="'.concat(e,'"]'))))},ge=function(e,n,o){if(!e)return[];if(he(o),!n)return[];var t=document.createElement("template");return t.innerHTML=n,Array.from(t.content.childNodes).reduce((function(n,t,l){if(ve(t))return n;var i=t.nodeType===Node.ELEMENT_NODE?function(e){if("SCRIPT"!==e.nodeName)return e.cloneNode(!0);var n=document.createElement("script");return Array.from(e.attributes).forEach((function(e){n.setAttribute(e.name,e.value)})),n.text=e.textContent,n}(t):t.cloneNode(!0);return i.setAttribute&&(i.setAttribute("data-durable-custom-code",o),i.setAttribute("data-durable-custom-code-index",l.toString())),e.appendChild(i),n.push(i),n}),[])},pe=function(e){return e?(0,le.ZP)(e,{replace:function(e){if("text"===e.type){var n,o;if("style"===(null===(n=e.parent)||void 0===n?void 0:n.name)||"script"===(null===(o=e.parent)||void 0===o?void 0:o.name))return;return!1}return"comment"!==e.type&&(!!function(e){var n;return!!e.name&&(ie.has(e.name)||"script"===e.name&&fe(null===(n=e.attribs)||void 0===n?void 0:n.type))}(e)&&void 0)}}):null},xe=function(e){var n=e.website,o=e.headCode,t=e.footerCode,l=me(o).dynamicHtml,i=function(e,n,o){return JSON.stringify([(null===e||void 0===e?void 0:e._id)||(null===e||void 0===e?void 0:e.rawDomain)||"",n||"",o||""])}(n,l,t);ue!==i&&(he(ae),he(se),ge(document.head,l,ae),ge(document.body,t,se),ue=i)},ye=function(e){e.forEach((function(e){try{null===e||void 0===e||e.remove()}catch(o){try{var n;null===e||void 0===e||null===(n=e.parentNode)||void 0===n||n.removeChild(e)}catch(t){}}}))},be={success:{color:"bg-green-50 text-green-800",icon:(0,r.jsx)(p.Z,{className:"h-5 w-5 text-green-400"}),progress:"bg-green-700"},error:{color:"bg-red-50 text-red-800",icon:(0,r.jsx)(x.Z,{className:"h-5 w-5 text-red-400"}),progress:"bg-red-700"},info:{color:"bg-indigo-50 text-indigo-800",icon:(0,r.jsx)(y.Z,{className:"h-5 w-5 text-indigo-400"}),progress:"bg-indigo-700"},warning:{color:"bg-yellow-50 text-yellow-800",icon:(0,r.jsx)(b.Z,{className:"h-5 w-5 text-yellow-400"}),progress:"bg-yellow-700"},default:{color:"bg-gray-50 text-gray-800",icon:(0,r.jsx)(p.Z,{className:"h-5 w-5 text-gray-400"}),progress:"bg-gray-700"},dark:{color:"bg-white-600 font-gray-300",icon:(0,r.jsx)(p.Z,{className:"h-5 w-5 text-gray-400"}),progress:"bg-gray-300"}},je=[],we=function(e){var n,l,u,h,p,x,y=e.children,b=e.website,w=e.page,N=e.apiUrl,k=e.ipAddress,C=e.hideFooter,F=g().useRouter(),Z=(0,a.useState)(0),S=Z[0],A=Z[1],R=(0,a.useState)(!1),T=R[0],E=R[1],M=(0,a.useState)(null),P=M[0],L=M[1],z=(0,a.useState)(0),_=z[0],I=z[1],W=new f.Z(N),B=null!==(x=b.seo)&&void 0!==x?x:{},H=B.headCode,O=B.footerCode,D=(0,d.Z)(B,["headCode","footerCode"]),K=(0,t.Z)({globalHeadCode:H,globalFooterCode:O},D,null===w||void 0===w?void 0:w.seo),$=(null===K||void 0===K?void 0:K.title)?K.title:(null===(n=b.Business)||void 0===n?void 0:n.name)+" | "+(null===(l=b.Business)||void 0===l||null===(u=l.type)||void 0===u?void 0:u.name),q=(null===K||void 0===K?void 0:K.description)?K.description:"",U=(0,a.useCallback)(function(){var e=(0,s.Z)((function(e){return(0,c.__generator)(this,(function(n){switch(n.label){case 0:return 0!==e.target.scrollTop&&0!==S||A(e.target.scrollTop),T?[3,2]:[4,J("scroll")];case 1:n.sent(),E(!0),n.label=2;case 2:return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}(),[T]),V=a.Children.map(y,(function(e){return a.isValidElement(e)?a.cloneElement(e,(0,t.Z)({},e.props)):e})),J=function(){var e=(0,s.Z)((function(e){var n,t,l,i,r,a,s,d,u,v,f,h,g;return(0,c.__generator)(this,(function(c){switch(c.label){case 0:return(null===window||void 0===window?void 0:window.self)!==(null===window||void 0===window?void 0:window.top)||"public"!==b.status?[3,5]:(s=JSON.parse(localStorage.getItem("user")||"{}"),d=Math.abs(new Date-new Date(s.date))/36e5,s&&s.ip&&!(d>24)&&s.hash?[3,4]:(u=k||"0.0.0.0",window.unsupportedBrowser||k?[3,3]:[4,o.e(6216).then(o.bind(o,76216))]));case 1:return[4,c.sent().publicIpv4()];case 2:u=c.sent(),c.label=3;case 3:v=(new Date).getTime(),f=(new Date).getTime(),h=new Date(f-f%864e5),localStorage.setItem("user",JSON.stringify({ip:u,date:h.toISOString(),hash:v})),s.ip=u,s.hash=v,c.label=4;case 4:g={idWebsite:b._id,url:document.location.pathname,event:e,platform:(null===window||void 0===window||null===(n=window.navigator)||void 0===n?void 0:n.platform)?null===window||void 0===window||null===(t=window.navigator)||void 0===t||null===(l=t.platform)||void 0===l?void 0:l.toString():(null===window||void 0===window||null===(i=window.navigator)||void 0===i?void 0:i.oscpu)?null===window||void 0===window||null===(r=window.navigator)||void 0===r?void 0:r.oscpu:"bot",title:document.title.split(" - ")[0]||"Home",device:/bot|googlebot|crawler|spider|robot|crawling/i.test(null===window||void 0===window||null===(a=window.navigator)||void 0===a?void 0:a.userAgent)?"bot":m.tq?"mobile":"desktop",ip:s.ip,hash:s.hash},je.find((function(e){return e.event===g.event}
1))||je.push(g),c.label=5;case 5:return[2]}}))}));return function(n){return e.apply(this,arguments)}}(),ee=function(e){if(window.self!==window.top){var n=e.target.closest("a");n&&n.getAttribute("target").startsWith("_parent")&&n.setAttribute("target","_self")}};return(0,a.useEffect)((function(){xe({website:b,headCode:null===K||void 0===K?void 0:K.globalHeadCode,footerCode:null===K||void 0===K?void 0:K.globalFooterCode})}),[null===K||void 0===K?void 0:K.globalHeadCode,null===K||void 0===K?void 0:K.globalFooterCode,null===b||void 0===b?void 0:b._id,null===b||void 0===b?void 0:b.rawDomain]),(0,a.useEffect)((function(){var e=function(e){var n=e.headCode,o=e.footerCode;he(de),he(ce);var t=me(n).dynamicHtml;return(0,i.Z)(ge(document.head,t,de)).concat((0,i.Z)(ge(document.body,o,ce)))}({headCode:null===K||void 0===K?void 0:K.headCode,footerCode:null===K||void 0===K?void 0:K.footerCode});return function(){return ye(e)}}),[null===K||void 0===K?void 0:K.headCode,null===K||void 0===K?void 0:K.footerCode]),(0,a.useEffect)((function(){return _<6&&(clearInterval(Q),Q=setInterval((0,s.Z)((function(){return(0,c.__generator)(this,(function(e){return J("ping"),I(_+1),[2]}))}
1)),3e4)),P!==F.asPath&&(J("open"),L(F.asPath),I(0),E(!1)),function(){_>=6&&I(0),clearInterval(Q),E(!1)}}),[F,_]),(0,a.useEffect)((function(){var e,n,o=function(){var e=(0,s.Z)((function(){var e;return(0,c.__generator)(this,(function(n){switch(n.label){case 0:return(null===je||void 0===je?void 0:je.length)>0&&((e=je.shift())&&w)?[4,W.post("/website/register-user-action",e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return o(),e=setInterval((function(){o()}),500),null===(n=document.querySelector("#main-body"))||void 0===n||n.addEventListener("scroll",U),function(){var n;clearInterval(e),null===(n=document.querySelector("#main-body"))||void 0===n||n.removeEventListener("scroll",U)}}),[T]),(0,a.useEffect)((function(){var e=function(){var e=document.querySelector("#main-body");e&&(e.style.scrollBehavior="auto",e.scrollTop=0,e.style.scrollBehavior="smooth")};return F.events.on("routeChangeComplete",e),document.addEventListener("click",ee),function(){F.events.off("routeChangeComplete",e),document.addEventListener("click",ee)}}),[]),(0,a.useEffect)((function(){var e;window.cnDisableCache=!0;var n=(0,j.getCookie)("pt");n&&(null===F||void 0===F||null===(e=F.query)||void 0===e?void 0:e.pt)!==n&&"public"!==b.status&&F.replace("".concat(F.asPath,"?pt=").concat(n),void 0,{shallow:!0})}),[F,b]),(0,a.useEffect)((function(){F.beforePopState((function(e){e.url;var n=e.as;e.options;return window.location.href=n,!1}))}),[F]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(v(),{children:[(0,r.jsx)("link",{rel:"icon",href:(null===(h=b.favicon)||void 0===h?void 0:h.url)||""}),(null===w||void 0===w?void 0:w.isCanonical)&&(0,r.jsx)("link",{rel:"canonical",href:function(){var e,n,o="https://".concat(b.rawDomain);"nested"===(null===w||void 0===w?void 0:w.type)&&(null===w||void 0===w||null===(e=w.Parent)||void 0===e?void 0:e.slug)&&(o+="/".concat(null===w||void 0===w||null===(n=w.Parent)||void 0===n?void 0:n.slug));return"".concat(o,"/").concat((null===w||void 0===w?void 0:w.slug)||"")}()}),(0,r.jsx)("title",{children:$}),(0,r.jsx)("meta",{httpEquiv:"Content-Language",content:(null===b||void 0===b?void 0:b.language)||"en"}),(0,r.jsx)("meta",{name:"keywords",content:(null===K||void 0===K?void 0:K.keywords)?K.keywords:""}),(0,r.jsx)("meta",{name:"title",property:"og:title",content:$}),(0,r.jsx)("meta",{name:"twitter:title",content:$}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:url",content:"https://".concat(b.rawDomain).concat(F.asPath)}),(0,r.jsx)("meta",{name:"description",property:"og:description",content:q}),(0,r.jsx)("meta",{name:"twitter:description",content:q}),(null===K||void 0===K||null===(p=K.Image)||void 0===p?void 0:p.url)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{name:"image",property:"og:image",content:K.Image.url}),(0,r.jsx)("meta",{name:"twitter:image",content:K.Image.url})]}),pe(null===K||void 0===K?void 0:K.globalHeadCode),pe(null===K||void 0===K?void 0:K.headCode),(null===b||void 0===b?void 0:b.searchIndexing)?(0,r.jsx)("meta",{name:"robots",content:"all"}):(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"})]}),(0,r.jsx)(te.Z,{website:b}),(0,r.jsx)(ne(),{color:function(){var e,n,o,t,l=(null===b||void 0===b||null===(e=b.colorPalette)||void 0===e||null===(n=e.Palette)||void 0===n?void 0:n.colors)||(null===b||void 0===b||null===(o=b.colorPalette)||void 0===o?void 0:o.colors)||[];return 0===(null===l||void 0===l?void 0:l.length)?"#333":(null===(t=l[0])||void 0===t?void 0:t.accent)||"#333"}(),startPosition:.3,options:{showSpinner:!1,trickle:!0,trickleSpeed:100}}),(0,r.jsxs)("div",{id:"main-body",onScroll:function(e){return U(e)},className:"flex flex-col h-full overflow-y-auto overflow-x-hidden smooth-scroll transition-all",children:[(0,r.jsx)(G,{scrollY:S,website:b}),V,!C&&(0,r.jsx)(X.default,{website:b}),(0,r.jsx)(Y.ToastContainer,{toastClassName:function(e){var n=e.type;return be[n||"default"].color+" relative p-4 rounded-md justify-between overflow-hidden cursor-pointer text-sm font-medium my-2.5 shadow-md flex"},bodyClassName:function(){return"flex text-sm font-white font-medium items-center w-full max-w-xs"},icon:function(e){var n=e.type;return be[n||"default"].icon},position:"bottom-center",autoClose:8e3,hideProgressBar:!0,newestOnTop:!0,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,closeButton:!1}),null===(null===w||void 0===w?void 0:w.slug)&&(0,r.jsx)(oe,{website:b,page:w,apiUrl:N})]})]})},Ne=o(31955),ke=(o(83454),"#111827"),Ce="#FFFFFF",Fe=[{id:"top-down",value:"180deg",icon:"ArrowDownIcon"},{id:"left-right",value:"90deg",icon:"ArrowRightIcon"},{id:"bottom-left-top-right",value:"45deg",icon:"ArrowUpRightIcon"},{id:"bottom-right-top-left",value:"315deg",icon:"ArrowUpLeftIcon"}
1],Ze=[{id:"none",name:"None",value:"0"},{id:"light",name:"Light",value:"4px"},{id:"moderate",name:"Moderate",value:"12px"},{id:"strong",name:"Strong",value:"32px"},{id:"very-strong",name:"Very strong",value:"48px"}];function Se(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return n.filter(Boolean).join(" ")}function Ae(e){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)}function Re(e){var n=ke.replace("#",""),o=Ce.replace("#",""),t=!1;if(!e||!e[0])return e;"#"===e[0]&&(e=e.slice(1),t=!0);var l=parseInt(6===(null===e||void 0===e?void 0:e.length)?e:"".concat(e[0]).concat(e[0]).concat(e[1]).concat(e[1]).concat(e[2]).concat(e[2]),16),i=((l>>16)+(255&l)+(l>>8&255))/3;return(t?"#":"")+(i=i>128?n:o)}var Te=function(e,n){var o;return n/=100,/^#([A-Fa-f0-9]{3}){1,2}$/.test(e)?(3===(null===(o=e.substring(1).split(""))||void 0===o?void 0:o.length)&&(o=[o[0],o[0],o[1],o[1],o[2],o[2]]),"rgba("+[(o="0x"+o.join(""))>>16&255,o>>8&255,255&o].join(",")+","+n+")"):e};function Ee(e){var n=e.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i),o=n?(256|n[1]).toString(16).slice(1)+(256|n[2]).toString(16).slice(1)+(256|n[3]).toString(16).slice(1):e;return"#".concat(o)}function Me(e){var n=(0,a.useState)(!0),o=n[0],t=n[1];return(0,a.useEffect)((function(){var n=window.matchMedia(e);n.matches!==o&&t(n.matches);var l=function(){t(n.matches)};return n.addListener(l),function(){return n.removeListener(l)}}),[o,e]),o}function Pe(e){return JSON.parse(JSON.stringify(e))}var Le=function(e){return{}},ze=function(e,n){var o={fontFamily:(null===e||void 0===e?void 0:e.family)||'"Inter", sans-serif'};return n&&(o.fontWeight=(null===e||void 0===e?void 0:e.weight)||500),(null===e||void 0===e?void 0:e.style)&&(o.fontStyle=e.style),(null===e||void 0===e?void 0:e.size)&&(o.fontSize=e.size),(null===e||void 0===e?void 0:e.lineHeight)&&(o.fontHeight=e.lineHeight),o},_e=function(e,n){var o=[400,500,600,700,800],t="";return"fontshare"===e.source?t="f[]=".concat(e.name.replace(/ /gi,"-"),"@").concat(o.join(",")).toLowerCase():(t="family=".concat(e.name.replace(/ /gi,"+")),t+=n?":".concat("italic"===e.style?"ital,":"","wght@").concat(e.weight):":wght@".concat(o.join(";"))),t};function Ie(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.props.children[0].props.website,i=e.props.children[0].props.page,a=e.props.children[0].props.apiUrl;return(0,r.jsx)(we,(0,l.Z)((0,t.Z)({page:i,website:o,apiUrl:a},n),{children:e}))}function We(e){var n,o,t;return e.match(/^rgb/)?(n=(e=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/))[1],o=e[2],t=e[3]):(n=(e=+("0x"+e.slice(1).replace(e.length<5&&/./g,"$&$&")))>>16,o=e>>8&255,t=255&e),Math.sqrt(n*n*.299+o*o*.587+t*t*.114)<=127.5}function Be(e,n){if(!e)return"#FFFFFF";var o=parseInt(e.replace("#",""),16),t=Math.round(2.55*n),l=(o>>16)+t,i=(o>>8&255)+t,r=(255&o)+t;return"#"+(16777216+65536*(l<255?l<1?0:l:255)+256*(i<255?i<1?0:i:255)+(r<255?r<1?0:r:255)).toString(16).slice(1)}function He(e){if(!e)return"";var n=e.split(" ");return n.length>1&&""!==n[1]?n[0][0]+n[1][0]:e[0]+e[1]}var Oe=function(e,n){var o={small:"rounded-sm md:rounded-md lg:rounded-lg",medium:"rounded-lg md:rounded-xl lg:rou
1nded-2xl",large:"rounded-2xl md:rounded-3xl lg:rounded-4xl","no-rounded":""},t=String(e);return e&&"default"!==e||!n||(t=n),o[t]||o["no-rounded"]},De=function(e){return"1:1"===e?"aspect-w-1 aspect-h-1":"2:3"===e?"aspect-w-2 aspect-h-3":"3:2"===e?"aspect-w-3 aspect-h-2":"aspect-w-16 aspect-h-9"},Ke=function(e){var n,o,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l={top:{row:"items-start",col:"justify-start"},center:{row:"items-center",col:"justify-center"},middle:{row:"items-center",col:"justify-center"},bottom:{row:"items-end",col:"justify-end"}};return t?(null===(n=l[e])||void 0===n?void 0:n.col)||l.center.col:(null===(o=l[e])||void 0===o?void 0:o.row)||l.center.row},$e=function(e){var n,o,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l={left:{row:"items-start",col:"justify-start"},center:{row:"items-center text-center mx-auto",col:"justify-center"},right:{row:"items-end text-right ml-auto",col:"justify-end"}};return t?(null===(n=l[e])||void 0===n?void 0:n.col)||l.center.col:(null===(o=l[e])||void 0===o?void 0:o.row)||l.center.row},qe=function(e){var n,o,t={none:{top:"pt-0",bottom:"pb-0"},small:{top:"pt-8 lg:pt-12",bottom:"pb-8 lg:pb-12"},medium:{top:"pt-12 lg:pt-20",bottom:"pb-12 lg:pb-20"},large:{top:"pt-16 lg:pt-32",bottom:"pb-16 lg:pb-32"},default:{top:"pt-12 lg:pt-14 xl:pt-20",bottom:"pb-12 lg:pb-14 xl:pb-20"}},l=(null===(n=t[null===e||void 0===e?void 0:e.top])||void 0===n?void 0:n.top)||t.default.top,i=(null===(o=t[null===e||void 0===e?void 0:e.bottom])||void 0===o?void 0:o.bottom)||t.default.bottom;return"".concat(l," ").concat(i)},Ue=function(e,n){var o,t,l={none:{top:"pt-0",bottom:"pb-0"},small:{top:"pt-8 lg:pt-32",bottom:"pb-8 lg:pb-32"},medium:{top:"pt-12 lg:pt-40",bottom:"pb-12 lg:pb-40"},large:{top:"pt-20 lg:pt-48",bottom:"pb-20 lg:pb-48"},default:{top:"pt-12 lg:pt-32 xl:pt-40",bottom:"pb-12 lg:pb-32 xl:pb-40"}},i=(null===(o=l[null===e||void 0===e?void 0:e.top])||void 0===o?void 0:o.top)||l.default.top,r=(null===(t=l[null===e||void 0===e?void 0:e.bottom])||void 0===t?void 0:t.bottom)||l.default.bottom;return"".concat(n&&"top"!==n?"":i," ").concat(n&&"bottom"!==n?"":r)},Ve=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"lg",o={sm:"heading-small",md:"heading-medium",lg:"heading-large",xl:"heading-xlarge"};return o[e]||o[n]},Ge=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"md",o={sm:"body-small",md:"body-normal",lg:"body-large"};return o[e]||o[n]},Qe=function(e){return"".concat("https://cdn.durable.co","/assets/").concat(e)},Je=function(e){return(null===e||void 0===e?void 0:e.url)||(null===e||void 0===e?void 0:e.preview)},Xe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"color1";return parseInt((null===e||void 0===e?void 0:e.replace(/[^0-9]/gi,""))||1,10)-1},Ye=function(e,n,o){var t,l=Xe(n);return(null===e||void 0===e?void 0:e.colors)&&!isNaN(l)?null===(t=e.colors[l])||void 0===t?void 0:t[o]:"#FFFFFF"},en=function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(){for(var t=arguments.length,l=new Array(t),r=0;r<t;r++)l[r]=arguments[r];return clearTimeout(o),setTimeout((function(){e.apply(void 0,(0,i.Z)(l))}),n)}},nn=function(e){return null!==e&&void 0!==e};function on(e){return Ne.Z.get(e)}function tn(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ne.Z.set(e,n,o)}function ln(e){return e?"_parent":"_self"}},75871:function(e,n,o){o.d(n,{M:function(){return r},b:function(){return l}});var t=o(85518),l={none:{top:"pt-0",bottom:"pb-0"},small:{top:"pt-4",bottom:"pb-4"},medium:{top:"pt-6",bottom:"pb-6"},large:{top:"pt-8",bottom:"pb-8"}};function i(e){switch(e){case"small":return 1;case"medium":return 1.5;case"large":return 2;default:return 0}}function r(e){var n,o,l,r=e.header;if(!r||!(null===r||void 0===r?void 0:r.sticky))return{};var a,s,d="2rem";"image"===(null===r||void 0===r||null===(n=r.logo)||void 0===n?void 0:n.type)&&(d=(d=t.tq?null===(a=r.logo.height)||void 0===a?void 0:a.mobile:null===(s=r.logo.height)||void 0===s?void 0:s.desktop)<32?"2rem":"".concat(d,"px"));var c=i(null===r||void 0===r||null===(o=r.spacing)||void 0===o?void 0:o.top)+i(null===r||void 0===r||null===(l=r.spacing)||void 0===l?void 0:l.bottom);return{scrollMarginTop:"calc(".concat(c,"rem + ").concat(d,")")}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.