"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1942],{52077:function(e,n,t){t.d(n,{Z:function(){return v}});var o=t(14251),l=t(52875),i=t(85893),r=t(41664),a=t.n(r),s=t(16494),d=t(11942),c=t(67294),u=t(7004);function v(e){var n=e.button,t=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,t,i,a=(null===(e=v.colorPalette)||void 0===e||null===(t=e.Palette)||void 0===t?void 0:t.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,o.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,o.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,o.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"===t||"section"===n.type?(0,i.jsx)("button",{type:"submit"===t?"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,t){t.d(n,{$h:function(){return c},c8:function(){return s},iz:function(){return v}});var o=t(14251),l=t(52875),i=t(85893),r=t(67294),a=t(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,t=e.width,o=e.height,l=e.divider,r=Math.floor(t/s),a=Math.floor(t),c=Math.floor(o),u=Math.floor(o-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"})]})})},v=function(e){var n=e.contentRef,t=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,t,o=getComputedStyle(e);return parseInt(null!==(n=o.paddingTop)&&void 0!==n?n:"0")+parseInt(null!==(t=o.paddingBottom)&&void 0!==t?t:"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=!!t,F=!!d;(0,r.useEffect)((function(){if(F){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,o.Z)({},n),{top:e+1})}))}else if(void 0!==f)N((function(e){return(0,l.Z)((0,o.Z)({},e),{top:f})}));else{var t=0;v&&(t=v.width/2),n.current.style.paddingTop="".concat(t,"px"),n.current.style.marginTop="",N((function(e){return(0,l.Z)((0,o.Z)({},e),{top:t})}))}}),[F,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,o.Z)({},n),{bottom:e})}))}else{var t=0;c&&(t=c.width/2),n.current.style.paddingBottom="".concat(t,"px"),N((function(e){return(0,l.Z)((0,o.Z)({},e),{bottom:t})})),n.current.style.clipPath=""}}),[k,y.width,h,c]);var C=(0,r.useCallback)((function(){var e,t;b({width:null!==(e=n.current.offsetWidth)&&void 0!==e?e:0,height:(null!==(t=n.current.offsetHeight)&&void 0!==t?t:0)-p(n.current)})}),[n]);return(0,r.useEffect)((function(){"function"===typeof g&&g(w)}),[w]),(0,a.Z)(C,k||F?n:null),t?(0,i.jsx)(u,{uniqueId:m,width:y.width,height:y.height+(h?0:w.top+w.bottom),divider:t}):null}},74007:function(e,n,t){t.d(n,{Z:function(){return c}});var o=t(85893),l=t(67294),i=t(17258),r=t(11355),a=t(11942),s=t(40944),d=t(68116);function c(e){var n=e.className,t=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(){C(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),F=k[0],C=k[1];return(0,o.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,o.jsxs)(d.bv,{portal:!0,children:[(0,o.jsx)(i.v.Button,{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,o.jsx)(s.Z,{icon:t||"DotsVerticalIcon",className:(0,a.AK)(c,"h-5 w-5",n?m||"text-indigo-500":"text-gray-500")})}),(0,o.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 C(!1)},children:(0,o.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",F?"right-0":"left-0"),style:y,children:h})})]})}})}},24230:function(e,n,t){t.d(n,{Z:function(){return d}});var o=t(69779),l=t(85893),i=t(67294),r=t(9008),a=t.n(r),s=t(11942);function d(e){var n=e.website,t=(0,i.useState)([]),r=t[0],d=t[1];return(0,i.useEffect)((function(){if(null===n||void 0===n?void 0:n.fonts){var e,t,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===(t=n.header)||void 0===t||null===(l=t.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,o.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>0&&(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,t){var o=t(6453),l=t(85893),i=t(3231);n.Z=function(e){var n=(0,o.Z)({},i)[e.icon];return n?(0,l.jsx)(n,{className:e.className,onClick:e.onClick,"aria-hidden":"true"}):"<></>"}},7004:function(e,n,t){t.d(n,{Gc:function(){return r},U9:function(){return i},f$:function(){return l}});var o=t(11942),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 t,o,l,i=null===n||void 0===n||null===(t=n.pages)||void 0===t?void 0:t.find((function(n){return n._id===e.page})),r=(null===i||void 0===i?void 0:i.Parent)?null===n||void 0===n||null===(o=n.pages)||void 0===o?void 0:o.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 t,l,i,r=null===n||void 0===n||null===(t=n.pages)||void 0===t?void 0:t.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,o.AO)(null===r||void 0===r?void 0:r.forceRender)};var r=function(e,n,t){if("function"!==typeof t){if("section"===(null===n||void 0===n?void 0:n.type)){e.preventDefault();var o=document.getElementById("main-body"),l=document.getElementById("website-header"),i=document.getElementById(n.link);if(i&&o&&l){var r=i.getBoundingClientRect().top;if(l.classList.contains("sticky"))r-=l.getBoundingClientRect().height;o.scroll({top:r+o.scrollTop,behavior:"smooth"})}}}else t(e)}},16494:function(e,n,t){t.d(n,{Z:function(){return r}});var o=t(85893),l=t(89774),i=t(11942);function r(e){var n=e.text,t=e.className,r=e.classNameChild,a=e.variant,s=(0,l.$G)("common").t;switch(a){case"form":return(0,o.jsx)("div",{className:"w-full max-w-screen-sm my-8",children:(0,o.jsxs)("div",{className:"animate-pulse flex space-y-8 flex-col",children:[(0,o.jsxs)("div",{className:"space-y-3",children:[(0,o.jsx)("div",{className:"h-4 bg-gray-100 rounded w-1/2"}),(0,o.jsx)("div",{className:"h-9 bg-gray-100 rounded"}),(0,o.jsx)("div",{className:"h-2 bg-gray-100 rounded w-5/6"})]}),(0,o.jsx)("hr",{}),(0,o.jsxs)("div",{className:"space-y-3",children:[(0,o.jsx)("div",{className:"h-4 bg-gray-100 rounded w-1/4"}),(0,o.jsx)("div",{className:"h-9 bg-gray-100 rounded"}),(0,o.jsx)("div",{className:"h-2 bg-gray-100 rounded w-1/2"})]}),(0,o.jsx)("hr",{}),(0,o.jsxs)("div",{className:"space-y-3",children:[(0,o.jsx)("div",{className:"h-4 bg-gray-100 rounded w-1/4"}),(0,o.jsx)("div",{className:"h-9 bg-gray-100 rounded"}),(0,o.jsx)("div",{className:"h-2 bg-gray-100 rounded w-1/2"})]}),(0,o.jsx)("hr",{}),(0,o.jsxs)("div",{className:"space-y-3",children:[(0,o.jsx)("div",{className:"h-4 bg-gray-100 rounded w-1/6"}),(0,o.jsx)("div",{className:"h-9 bg-gray-100 rounded"}),(0,o.jsx)("div",{className:"h-2 bg-gray-100 rounded w-3/4"})]}),(0,o.jsx)("div",{className:"h-10 bg-gray-200 rounded w-1/4 ml-auto mt-4"})]})});case"skeleton":return(0,o.jsx)("div",{className:t,children:(0,o.jsx)("div",{className:"animate-pulse",children:(0,o.jsx)("div",{className:(0,i.AK)("h-6 bg-gray-200 rounded",r)})})});case"table":return(0,o.jsx)("div",{className:"w-full my-8",children:(0,o.jsxs)("div",{className:"animate-pulse flex space-y-2 flex-col",children:[(0,o.jsxs)("div",{className:"space-x-2 flex",children:[(0,o.jsx)("div",{className:"h-9 bg-gray-200 rounded w-full"}),(0,o.jsx)("div",{className:"h-9 bg-gray-200 rounded w-full"}),(0,o.jsx)("div",{className:"h-9 bg-gray-200 rounded w-full"}),(0,o.jsx)("div",{className:"h-9 bg-gray-200 rounded w-full"}),(0,o.jsx)("div",{className:"h-9 bg-gray-200 rounded w-full"}),(0,o.jsx)("div",{className:"h-9 bg-gray-200 rounded w-full"})]}),[1,2,3,4,5,6].map((function(e){return(0,o.jsxs)("div",{className:"space-x-2 flex",children:[(0,o.jsx)("div",{className:"h-9 bg-gray-100 rounded w-full"}),(0,o.jsx)("div",{className:"h-9 bg-gray-100 rounded w-full"}),(0,o.jsx)("div",{className:"h-9 bg-gray-100 rounded w-full"}),(0,o.jsx)("div",{className:"h-9 bg-gray-100 rounded w-full"}),(0,o.jsx)("div",{className:"h-9 bg-gray-100 rounded w-full"}),(0,o.jsx)("div",{className:"h-9 bg-gray-100 rounded w-full"})]},e)}))]})});default:return(0,o.jsxs)("div",{className:(0,i.AK)("inline-flex items-center",t),children:[(0,o.jsxs)("svg",{className:(0,i.AK)("animate-spin ml-1 mr-3 h-4 w-4",t),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,o.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,o.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,t){t.d(n,{TR:function(){return u},yA:function(){return v},i6:function(){return c}});var o=t(14251),l=t(69779),i=t(85893),r=t(11942),a=t(41664),s=t.n(a),d=t(67294);var c=function(e,n){var t,o,l,i=(0,r.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===(t=n.fonts)||void 0===t?void 0:t.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===(o=e.logoDesktop)||void 0===o?void 0:o.height)||80,mobile:(null===e||void 0===e||null===(l=e.logoMobile)||void 0===l?void 0:l.height)||40}},i},u=function(e){var n,t,a,c=e.className,u=e.text,v=e.logo,f=e.color,m=e.forceRender,h=e.font,g=e.location,p=void 0===g?"header":g,x=function(){var e,n,t=function(){var e,n=[],t=w.current.cloneNode(!0);return t.style.position="fixed",t.style.visibility="hidden",t.style.width="auto",document.body.appendChild(t),w.current.innerText.split(" ").forEach((function(e){t.innerText=e;var o=t.getBoundingClientRect().width;n.push(o)})),t.innerHTML="&nbsp;",e=t.getBoundingClientRect().width,document.body.removeChild(t),{wordSizes:n,emptySpaceSize:e}}(),o=t.wordSizes,i=t.emptySpaceSize,r=[],a=w.current.offsetWidth+4,s=0,d=null!==(n=o[0])&&void 0!==n?n:0;r[s]=d;for(var c=1;c<o.length;c++){var u=i+o[c];d+u<=a?(d+=u,r[s]=d):(s++,d=o[c],r[s]=d)}return(e=Math).max.apply(e,(0,l.Z)(r))+4},y=function(){if(w.current){w.current.style.width="auto",w.current.style.whiteSpace="normal";var e=x();w.current.style.width="".concat(e+4,"px"),w.current.style.whiteSpace=""}},b=function(){N.current=(0,r.Ds)(y,150,N.current)()},j=(0,r.ac)("(max-width: 1023px)"),w=(0,d.useRef)(null),N=(0,d.useRef)(null),k=function(){var e=(0,d.useState)(!1),n=e[0],t=e[1];return(0,d.useEffect)((function(){var e=function(){t("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,d.useEffect)((function(){if(w.current)return b(),window.addEventListener("resize",b),function(){window.removeEventListener("resize",b),clearTimeout(N.current)}}),[u,v,h,j,k]),(null===v||void 0===v?void 0:v.showIcon)&&(null===v||void 0===v?void 0:v.icon)||(null===v||void 0===v?void 0:v.showText)&&u?(0,i.jsx)(s(),{href:"/",children:(0,i.jsxs)("a",{className:(0,r.AK)((null===v||void 0===v?void 0:v.showIcon)&&(null===v||void 0===v||null===(n=v.icon)||void 0===n?void 0:n.url)?"flex items-center gap-3 max-w-[290px] text-left":"grid max-w-full",c),target:(0,r.AO)(m),children:[(null===v||void 0===v?void 0:v.showIcon)&&(null===v||void 0===v?void 0:v.icon)&&(0,i.jsx)("div",{className:"flex-shrink-0 relative w-9 h-9 md:w-12 md:h-12",children:(0,i.jsx)("div",{className:"absolute w-full h-full",style:{backgroundColor:f||"#1F2937",WebkitMaskImage:'url("'.concat(null===v||void 0===v||null===(t=v.icon)||void 0===t?void 0:t.url,'")'),maskImage:'url("'.concat(null===v||void 0===v||null===(a=v.icon)||void 0===a?void 0:a.url,'")'),WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskSize:"contain",maskSize:"contain"}})}),(null===v||void 0===v?void 0:v.showText)&&u&&(0,i.jsx)("h2",{ref:w,className:(0,r.AK)("heading-small lg:heading-medium max-w-full",(null===v||void 0===v?void 0:v.showIcon)&&(null===v||void 0===v?void 0:v.icon)?"whitespace-normal":"whitespace-nowrap overflow-hidden overflow-ellipsis"),style:(0,o.Z)({color:f},function(){var e;if((null===v||void 0===v?void 0:v.showText)&&u&&(null===v||void 0===v?void 0:v.showIcon)&&(null===v||void 0===v||null===(e=v.icon)||void 0===e?void 0:e.url)){var n=(6/(u.length||0)+.66)*(j?18:22),t=Math.min(Math.max(n,16),40);return{fontSize:"".concat(t,"px"),lineHeight:1.2}}return{}}(),{fontFamily:h?(null===h||void 0===h?void 0:h.family)||'"Inter", sans-serif':"var(--".concat(p,"-logo-fontFamily)"),fontWeight:h?(null===h||void 0===h?void 0:h.weight)||500:"var(--".concat(p,"-logo-fontWeight)")}),children:u})]})}):null};u.displayName="WebsiteButton";function v(e){var n=e.className,t=e.src,o=e.text,l=e.height;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("img",{className:(0,r.AK)("hidden lg:block transition-all object-contain",n),src:t,alt:o,style:{height:"".concat((null===l||void 0===l?void 0:l.desktop)||80,"px")}}),(0,i.jsx)("img",{className:(0,r.AK)("lg:hidden transition-all object-contain",n),src:t,alt:o,style:{height:"".concat((null===l||void 0===l?void 0:l.mobile)||40,"px")}})]})}},21123:function(e,n,t){t.d(n,{N:function(){return c},Z:function(){return u}});var o=t(14251),l=t(52875),i=t(85893),r=t(67294),a=t(11942),s=t(25675),d=t.n(s),c=function(e,n){var t,i,r,s,d=(null===e||void 0===e||null===(t=e.colorPalette)||void 0===t||null===(i=t.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,o.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,o.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,o.Z)({},null===n||void 0===n?void 0:n.layers),{overlay:(0,o.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,F,C,Z,S,A,R,P,M,z,T,L={type:"solid"},E={enabled:!1};if("object"===typeof(null===n||void 0===n?void 0:n.background))if("image"===(null===n||void 0===n||null===(F=n.background)||void 0===F?void 0:F.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,E.enabled=!0,E.media=null===n||void 0===n||null===(R=n.background)||void 0===R?void 0:R.image,E.positionX=(null===(P=n.background)||void 0===P?void 0:P.imagePositionX)||"50%",E.positionY=(null===(M=n.background)||void 0===M?void 0:M.imagePositionY)||"50%",E.opacity=(null===(z=n.background)||void 0===z||null===(T=z.overlay)||void 0===T?void 0:T.amount)||50;else if("gradient"===(null===n||void 0===n||null===(C=n.background)||void 0===C?void 0:C.type)){var I,_,W;L.type="gradient",L.color1=null===n||void 0===n||null===(I=n.background)||void 0===I?void 0:I.color,L.color2=null===n||void 0===n||null===(_=n.background)||void 0===_?void 0:_.color2,L.direction=null===(W=a.mQ.find((function(e){var t;return e.value===(null===n||void 0===n||null===(t=n.background)||void 0===t?void 0:t.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:E,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,t,o,l,s,u=e.block,v=e.website,f=e.setTextColor,m=e.setAccentColor,h=e.setBackgroundColor,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,t,o,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===(t=y.overlay)||void 0===t?void 0:t.color1)||"#FFFFFF"));if("function"===typeof h)h((null===y||void 0===y||null===(o=y.overlay)||void 0===o?void 0:o.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,t,o=(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!==(t=null===y||void 0===y||null===(n=y.fade)||void 0===n?void 0:n.color)&&void 0!==t?t:"#D1D5DB",")"),opacity:o/100}}()}),(0,i.jsx)("div",{className:"absolute inset-0 z-10",style:function(){var e,n,t,o,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===(o=y.overlay)||void 0===o?void 0:o.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===(t=y.image)||void 0===t?void 0:t.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===(t=y.image)||void 0===t?void 0:t.enabled)&&(null===(o=y.image)||void 0===o?void 0:o.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,t){t.d(n,{PW:function(){return F},QZ:function(){return k},WG:function(){return N}});var o=t(85893),l=t(11942),i=t(71029),r=t(85296),a=t(44171),s=t(43180),d=t(10151),c=t(36234),u=t(66909),v=t(49791),f=t(28239),m=t(48192),h=t(94206),g=t(95115),p=t(13487),x=t(23863),y=t(14892),b=t(62458),j=t(24831),w=function(e){var n=e.type,t=e.className,l=e.style;switch(n){case"angi":return(0,o.jsx)(i.Z,{className:t,style:l});case"behance":return(0,o.jsx)(r.Z,{className:t,style:l});case"dribbble":return(0,o.jsx)(a.Z,{className:t,style:l});case"facebook":return(0,o.jsx)(s.Z,{className:t,style:l});case"homeadvisor":return(0,o.jsx)(d.Z,{className:t,style:l});case"instagram":return(0,o.jsx)(c.Z,{className:t,style:l});case"linkedin":return(0,o.jsx)(u.Z,{className:t,style:l});case"pinterest":return(0,o.jsx)(v.Z,{className:t,style:l});case"tiktok":return(0,o.jsx)(f.Z,{className:t,style:l});case"thumbtack":return(0,o.jsx)(m.Z,{className:t,style:l});case"twitter":return(0,o.jsx)(h.Z,{className:t,style:l});case"twitterold":return(0,o.jsx)(g.Z,{className:t,style:l});case"youtube":return(0,o.jsx)(p.Z,{className:t,style:l});case"medium":return(0,o.jsx)(x.Z,{className:t,style:l});case"threads":return(0,o.jsx)(y.Z,{className:t,style:l});case"telegram":return(0,o.jsx)(b.Z,{className:t,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,t,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":"",t="solid"===p?v:"outline"===p?"transparent":"",o="outline"===p?"border":"";return{classes:(0,l.AK)(e,n,o),styles:{backgroundColor:t,borderColor:v}}}()),(0,o.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,o.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,o.jsx)("div",{className:(0,l.AK)("flex-shrink-0 relative",x),children:(0,o.jsx)("div",{className:"absolute w-full h-full",style:{backgroundColor:"none"===g||"outline"===p?v:(0,l.$O)(v),WebkitMaskImage:'url("'.concat(null===(t=u.icon)||void 0===t?void 0:t.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"}})})]})},F=function(e){var n=e.social,t=e.className,l=n.name||"Custom";return"twitterold"===n.type?l="Twitter":"custom"!==n.type&&(l=(0,j.k)(n.type)),(0,o.jsx)("div",{className:t,children:l})}},4626:function(e,n,t){t.d(n,{Z:function(){return u}});var o=t(85893),l=t(11942),i=t(14251),r=t(52875),a=t(69779),s=t(67294),d=t(23493),c=(0,s.forwardRef)((function(e,n){var t,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,F=function(){var e,n=function(){var e,n=[],t=A.current.cloneNode(!0);return t.style.position="fixed",t.style.visibility="hidden",t.style.width="auto",document.body.appendChild(t),A.current.innerText.split(" ").forEach((function(e){t.innerText=e;var o=t.getBoundingClientRect().width;n.push(Number(o.toFixed(2)))})),t.innerHTML="&nbsp;",e=Number(t.getBoundingClientRect().width.toFixed(2)),document.body.removeChild(t),{wordSizes:n,emptySpaceSize:e}}(),t=n.wordSizes,o=n.emptySpaceSize,l=[],i=Number(z().maxWidth.replace("px",""))+4;j||(i=i-M(!0)-12);var r,s=0,d=null!==(r=t[0])&&void 0!==r?r:0;l[s]=d;for(var c=1;c<t.length;c++){var u=o+t[c];d+u<=i?(d+=u,l[s]=d):(s++,d=t[c],l[s]=d)}return(e=Math).max.apply(e,(0,a.Z)(l))+4},C=function(){if(A.current){var e=F(),n=e;if(j){var t=M(!0),o=Math.min(Math.max(e,0),2*t);n=Math.max(o,n)}A.current.style.width="".concat(n+4,"px")}},Z=function(){R.current=(0,l.Ds)(C,150,R.current)()},S=(0,l.ac)("(max-width: 859px)"),A=(0,s.useRef)(null),R=(0,s.useRef)(null),P=j?"secondary":"primary",M=function(e){var n=S?36:48,t=Math.round(n*N);return e?t:{width:"".concat(t,"px"),height:"".concat(t,"px")}},z=function(){if(j){var e=M(!0),n=Math.round(2*e);return{maxWidth:"".concat(n,"px")}}var t=S?224:260,o=Math.round(t*N);return{maxWidth:"".concat(o,"px")}},T=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=M();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,o.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)({},z()),{gap:"".concat(12*N,"px ").concat(8*N,"px")}),children:(null===x||void 0===x||null===(t=x.custom)||void 0===t?void 0:t.enabled)?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(d.yA,{src:null===x||void 0===x||null===(c=x.custom)||void 0===c||null===(u=c[P])||void 0===u||null===(v=u[k===l._y?"dark":"light"])||void 0===v?void 0:v.url,text:"",height:{desktop:T(),mobile:T()}})}):(0,o.jsxs)(o.Fragment,{children:[(null===x||void 0===x?void 0:x.showIcon)&&(0,o.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,o.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,o.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,o.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),t=Math.min(Math.max(n,16),40)*N*(j?.6:1);return{fontSize:"".concat(t,"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,t=e.branding,i=e.variant,r=e.textColor,a=e.scale,s=e.forceRender,d=null===t||void 0===t?void 0:t.logo,u=(null===d||void 0===d?void 0:d.font)||(null===t||void 0===t||null===(n=t.fonts)||void 0===n?void 0:n.head),v=(0,l.ac)("(max-width: 1023px)");return(0,o.jsx)(c,{className:(0,l.AK)(["secondary"].includes(i)&&"flex-col text-center"),logo:d,text:null===d||void 0===d?void 0:d.text,font:u,color:r===l._y?"#FFFFFF":"#000000",scale:v?(null===a||void 0===a?void 0:a.mobile)||1:(null===a||void 0===a?void 0:a.desktop)||1,vertical:"secondary"===i,forceRender:s,textColor:r})}},165:function(e,n,t){t.r(n),t.d(n,{default:function(){return N}});var o=t(14251),l=t(85893),i=t(11942),r=t(67294),a=t(41664),s=t.n(a),d=t(90387),c=t(52077),u=t(90434),v=t(41984),f=t(43751),m=t(17258),h=t(27507),g=t(74007),p=t(75654),x=t(21123),y=t(4433),b=t(23493),j=t(89774),w=t(4626);function N(e){var n,t,a,N,k=e.website,F=e.previousBlock,C=(0,j.$G)("common").t,Z=(0,r.useState)(!1),S=Z[0],A=Z[1],R=(0,r.useState)(""),P=R[0],M=R[1],z=(0,r.useState)(null),T=z[0],L=z[1],E=(0,r.useState)("#FFFFFF"),I=E[0],_=E[1],W=(0,r.useState)("#000000"),B=W[0],K=W[1],O=(0,r.useState)("#000000"),D=O[0],H=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===(t=k.pages)||void 0===t?void 0:t.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})),Y=function(){var e,n,t,o,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===(t=h.logo)||void 0===t?void 0:t.type)&&"upload"===(null===h||void 0===h||null===(o=h.logo)||void 0===o?void 0:o.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})})})}},X=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 t=(0,i.h)(I,-10);return t!==B&&t!==I||(t=(0,i.h)(I,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 o;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:t,color:B},children:null===(o=e.nests)||void 0===o?void 0:o.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,t=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,o){var i=p.WG.find((function(n){return n.id===e.type})),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:t?(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(o))}))}):(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:[C("footer.madeWith"),"\xa0"]}),(0,l.jsx)(s(),{href:"https://durable.co?referrer=".concat(encodeURIComponent(P)),children:(0,l.jsx)("a",{target:"_blank",className:"underline text-current",children:"Durable"})})]}):(0,l.jsx)(l.Fragment,{})},te=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,{})},oe=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 t=U.additionalDetails.replace(/\r\n|\r|\n/g,"<br/>");return n&&(t=t.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:t}})},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(){M(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,t,o;_((null===e||void 0===e||null===(n=e.overlay)||void 0===n?void 0:n.color1)||"#FFFFFF"),K((0,i.$O)((null===e||void 0===e||null===(t=e.overlay)||void 0===t?void 0:t.color1)||"#FFFFFF")),H((null===e||void 0===e||null===(o=e.foreground)||void 0===o?void 0:o.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:[Y(),(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row lg:items-center gap-12",children:[X(),ee(),te()]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[oe("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:[Y(),oe("md:max-w-120"),ee(),te()]}),(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(),X()]})]});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:[Y("justify-end"),oe()]}),(0,l.jsxs)("div",{className:"flex flex-col justify-end gap-12 lg:gap-14",children:[X("justify-end items-end"),ee("justify-end"),(null===U||void 0===U?void 0:U.button)&&(0,l.jsx)("div",{children:te()})]}),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:[Y("justify-center"),oe()]}),(0,l.jsxs)("div",{className:"flex flex-col justify-center gap-12 lg:gap-14",children:[X("justify-center items-center"),ee("justify-center"),(null===U||void 0===U?void 0:U.button)&&(0,l.jsx)("div",{children:te()})]}),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:[Y(),oe()]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-12 lg:gap-14",children:[X(),ee(),(null===U||void 0===U?void 0:U.button)&&(0,l.jsx)("div",{children:te()})]}),ne("!text-left")]});case"stacked-bottom-bar":return(0,l.jsxs)("div",{className:"flex flex-col items-center gap-12",children:[Y(),(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:te()}),X("items-center",!0),oe(),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:[Y(),!!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"}),oe("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:[X(),ee(),(null===U||void 0===U?void 0:U.button)&&(0,l.jsx)("div",{children:te()}),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:[Y("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"}),oe("lg:max-w-[50vw]",!0)]})]}),(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row lg:items-center justify-center gap-12 lg:gap-14",children:[X("justify-center items-center"),ee("justify-center"),te(),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:[Y(),(0,l.jsxs)("div",{className:"flex flex-wrap gap-y-10 sm:-mx-5 lg:-mx-10",children:[X(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)}),!!(null===U||void 0===U?void 0:U.additionalDetails)&&(0,l.jsx)("div",{className:e,children:oe()}),!!(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:[Y(),(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:oe()}),X("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:te()})]})]});case"columns-right":return(0,l.jsxs)("div",{className:"flex flex-col gap-12",children:[Y(),(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(),te()]}),X("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:oe()})]}),(!!(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:[Y(),(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:te()}),X("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:oe()})]}),(!!(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:[Y(),oe("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:[X(),ee(),te()]}),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===F||void 0===F?void 0:F.divider,previousBorder:null===F||void 0===F?void 0:F.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:I,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,t,o,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===(t=d.logo)||void 0===t?void 0:t.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===(o=d.logo)||void 0===o?void 0:o.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,o.Z)({color:B},(0,i.SV)(k)),children:null===T||void 0===T?void 0:T.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,t){var o=t(67294),l=(t(11942),t(91033));n.Z=function(e,n){var t=(0,o.useState)(!1),i=t[0],r=t[1],a=(0,o.useRef)(e);a.current=e;var s=function(e){var n=!0,t=!1,o=void 0;try{for(var l,s=e[Symbol.iterator]();!(n=(l=s.next()).done);n=!0){var d=l.value;document.body.contains(d.target)||r(!i),a.current(d.target)}}catch(c){t=!0,o=c}finally{try{n||null==s.return||s.return()}finally{if(t)throw o}}};(0,o.useEffect)((function(){if(n){var e=new l.Z(s),t=Array.isArray(n)?n:[n];return t.forEach((function(n){return n.current&&e.observe(n.current)})),function(){t.forEach((function(n){return n.current&&e.unobserve(n.current)})),e.disconnect()}}}),[n,i])}},23226:function(e,n,t){var o=t(34727),l=t(75815),i=t(67573),r=t(97582),a=t(87066),s=t(83454);n.Z=function e(n,t){(0,l.Z)(this,e);var d=this;(0,i.Z)(this,"get",function(){var e=(0,o.Z)((function(e,n){return(0,r.__generator)(this,(function(t){return[2,new Promise((function(t,l){a.Z.get(e,{baseURL:d.baseURL,params:n||{},headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(function(){var e=(0,o.Z)((function(e){return(0,r.__generator)(this,(function(n){return t(e.data),[2]}))}));return function(n){return e.apply(this,arguments)}}()).catch((function(e){e.response?t({status:!1,message:e.response.data.message}):e.request?t({status:!1,message:e.request.message}):t({status:!1,message:e.message}),t({status:!1,message:e.config})}))}))]}))}));return function(n,t){return e.apply(this,arguments)}}());var c=this;(0,i.Z)(this,"post",function(){var e=(0,o.Z)((function(e,n,t){return(0,r.__generator)(this,(function(o){return[2,new Promise((function(o,l){a.Z.post(e,n||{},{baseURL:c.baseURL,headers:{"Content-Type":t?"multipart/form-data":"application/json",Accept:"application/json, multipart/form-data"}}).then((function(e){o(e.data)})).catch((function(e){e.response?o(e.response.data):e.request?o({status:!1,message:e.request}):o({status:!1,message:e.message}),o({status:!1,message:e.config})}))}))]}))}));return function(n,t,o){return e.apply(this,arguments)}}()),a.Z.defaults.withCredentials=null===t||void 0===t||t,this.baseURL=n||s.env.API_URL||"https://api.durable.co"}},24831:function(e,n,t){function o(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.lowerCaseTail,l=void 0!==t&&t,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 o(e,{lowerCaseTail:l,capitalizeWords:!1})})).join(" ")}t.d(n,{k:function(){return o}})},11942:function(e,n,t){t.d(n,{uR:function(){return ue},nJ:function(){return se},mQ:function(){return ce},$O:function(){return me},_y:function(){return de},h:function(){return Fe},SV:function(){return be},AK:function(){return ve},Ds:function(){return We},p$:function(){return xe},n3:function(){return Se},rE:function(){return Me},e0:function(){return Te},sd:function(){return Le},dz:function(){return Ie},ej:function(){return Ke},yW:function(){return Ze},pr:function(){return we},s4:function(){return je},Ae:function(){return ze},CE:function(){return Re},QW:function(){return Ee},Qm:function(){return Ce},G0:function(){return Ne},AO:function(){return De},ow:function(){return _e},bG:function(){return Pe},A2:function(){return Ae},j2:function(){return ye},mR:function(){return he},jn:function(){return ke},$K:function(){return Be},s:function(){return ge},d8:function(){return Oe},ac:function(){return pe},oH:function(){return fe}});var o=t(14251),l=t(52875),i=t(69779),r=t(85893),a=t(67294),s=(t(79981),t(34727)),d=t(44747),c=t(97582),u=t(9008),v=t.n(u),f=t(25935),m=t(23226),h=t(85518),g=t(11163),p=t.n(g),x=(t(40993),t(42419)),y=t(28521),b=t(41968),j=t(28666),w=t(47041),N=t(52077),k=t(90387),F=t(41664),C=t.n(F),Z=t(17258),S=t(62934),A=t(32713),R=t(92122),P=t(59956),M=t(72434),z=t(73423),T=t(83339),L=t(74007),E=t(75654),I=t(23493),_=t(75871),W=t(11355),B=t(41984),K=t(3677),O=t(89774),D={fontFamily:"var(--body-fontFamily)",fontWeight:"var(--body-fontWeight, 400)",fontStyle:"var(--body-fontStyle, normal)"};function H(e){var n,t,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,O.$G)("common").t,p=(null===s||void 0===s?void 0:s.navStyle)||"default",x=function(e,n){var t=he(n,(null===p||void 0===p?void 0:p.includes("subtle"))?10:80);return(0,l.Z)((0,o.Z)({},D),{borderColor:e.current?n:"transparent",backgroundColor:e.current&&"default"!==p?t:"transparent",color:e.current&&p.includes("bold")?me(n):"currentColor"})};return(0,r.jsx)(W.u,{show:i,as:a.Fragment,children:(0,r.jsx)("div",{className:"absolute inset-0 h-screen",children:(0,r.jsx)(W.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)(W.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)(W.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:ve("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:De(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:ve("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)(B.Z,{className:"w-4 h-4"})]}):(0,r.jsx)(C(),{className:"block w-full",href:e.href,legacyBehavior:!1,target:De(e.forceRender),children:e.name})},"page-link-".concat(e.href))}))})})}),(0,r.jsx)(W.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:ve("flex items-center justify-center gap-2 w-full py-2 heading-medium","default"!==p?"px-3":""),style:D,onClick:function(){return h(null)},children:[(0,r.jsx)(K.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:ve("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:De(e.forceRender),children:e.name})},"page-link-".concat(e.href))}))]})})})]}),(0,r.jsx)("div",{className:ve("flex flex-col items-center max-w-full",(null===v||void 0===v?void 0:v.length)>0?"":"h-full justify-center"),children:(null===s||void 0===s?void 0:s.showSocial)&&(null===(t=d.social)||void 0===t?void 0:t.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 t=E.WG.find((function(n){return n.id===e.type})),o=e.link;return"custom"!==e.type&&(o=(o=e.link.replace(/[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\//gi,"").replace(/https?:/g,"").replace(/^\/\/?/g,"")).replace(null===t||void 0===t?void 0:t.host,""),o="https://".concat(null===t||void 0===t?void 0:t.host,"/").concat(o)),(0,r.jsx)("li",{children:(0,r.jsx)(C(),{href:o,children:(0,r.jsx)("a",{target:"_blank",children:(0,r.jsx)(E.QZ,{icon:e,color:u,settings:d.socialSettings})})})},"social-icon-header-".concat(n))}))})})]})})})})})})}var $=t(27507),q=t(43751);function U(e){var n,t,o,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,w=e.setCurrentNests,k=(0,O.$G)("common").t,F=(0,a.useRef)(null),Z=(null===d||void 0===d?void 0:d.navStyle)||"default",S=null===d||void 0===d?void 0:d.style,A=null===d||void 0===d?void 0:d.menu,R=function(e,n){var t=he(n,(null===Z||void 0===Z?void 0:Z.includes("subtle"))?10:80);return{borderColor:e.current?n:"transparent",backgroundColor:e.current&&"default"!==Z?t:"transparent",color:e.current&&Z.includes("bold")?me(n):"currentColor"}};return(0,r.jsx)(W.u,{show:i,as:"div",children:(0,r.jsxs)($.V,{className:"relative z-[30000] h-full",initialFocus:F,onClose:function(){return s(!1)},children:[(0,r.jsx)(W.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)($.V.Overlay,{className:"fixed inset-0 bg-black bg-opacity-5 transition-opacity"})}),(0,r.jsx)(W.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?S.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===(t=d.menu)||void 0===t?void 0:t.collapse)&&!f?S.includes("left")?"translate-x-full":"-translate-x-full":"translate-x-0 opacity-0",children:(0,r.jsx)($.V.Panel,{className:ve("fixed flex flex-col shadow-lg",(null===A||void 0===A?void 0:A.collapse)&&!f?S.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:ve("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:ve("items-center",G(null===d||void 0===d?void 0:d.spacing),S.includes("left")?"flex justify-between":"grid"),style:S.includes("left")?{}:{gridTemplateColumns:"1fr auto 1fr"},children:[["center","full-center"].includes(S)&&(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)(q.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)(W.u,{as:"div",show:!j,enter:"transition-opacity",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,r.jsx)("ul",{className:ve("flex flex-col justify-center lg:justify-start gap-3 w-full",f&&["center","full-center"].includes(S)?"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===(o=g[0].nests)||void 0===o?void 0:o.map((function(e){return(0,r.jsx)("li",{className:ve("relative body-large py-2","default"!==Z?"px-3":"",["center","full-center"].includes(S)&&"default"===Z?"after:left-1/2 md:after:left-0 after:-translate-x-1/2 md:after:translate-x-0":"",e.current&&"default"===Z?"active-menu-item":""),style:R(e,v),children:(0,r.jsx)(C(),{className:"block w-full",href:e.href,legacyBehavior:!1,target:De(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:ve("relative body-large lg:!text-body py-2","default"!==Z?"px-3":"",["center","full-center"].includes(S)&&"default"===Z?"after:left-1/2 md:after:left-0 after:-translate-x-1/2 md:after:translate-x-0":"",e.current&&"default"===Z?"active-menu-item":""),style:R(e,v),children:"parent"===e.type&&e.nests.length>0?(0,r.jsxs)("button",{className:"inline-flex items-center gap-2",onClick:function(){return w(e.nests)},children:[(0,r.jsx)("span",{children:e.name}),(0,r.jsx)(B.Z,{className:"w-4 h-4","aria-hidden":"true"})]}):(0,r.jsx)(C(),{className:"block w-full",href:e.href,legacyBehavior:!1,target:De(e.forceRender),children:e.name})},"page-link-".concat(e.href))}))})})}),(0,r.jsx)(W.u,{as:"div",show:!!j,enter:"transition-opacity",enterFrom:"opacity-0",enterTo:"opacity-100",children:(0,r.jsx)("ul",{className:ve("flex flex-col justify-center lg:justify-start gap-3 w-full",f&&["center","full-center"].includes(S)?"text-center":""),style:{color:v},children:(0,r.jsxs)(r.Fragment,{children:[j&&(0,r.jsx)("li",{children:(0,r.jsxs)("button",{className:ve("flex items-center gap-2 w-full py-2 body-large lg:!text-body","default"!==Z?"px-3":"",f&&["center","full-center"].includes(S)?"justify-center":""),onClick:function(){return w(null)},children:[(0,r.jsx)(K.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:ve("relative body-large lg:!text-body py-2","default"!==Z?"px-3":"",["center","full-center"].includes(S)&&"default"===Z?"after:left-1/2 md:after:left-0 after:-translate-x-1/2 md:after:translate-x-0":"",e.current&&"default"===Z?"active-menu-item":""),style:R(e,v),children:(0,r.jsx)(C(),{className:"block w-full",href:e.href,legacyBehavior:!1,target:De(e.forceRender),children:e.name})},"page-link-".concat(e.href))}))]})})})]}),(0,r.jsxs)("div",{className:ve("flex flex-col max-w-[100vw] lg:hidden",["center","full-center"].includes(S)?"items-center":"",(null===g||void 0===g?void 0:g.length)>0?"":"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 t=E.WG.find((function(n){return n.id===e.type})),o=e.link;return"custom"!==e.type&&(o=(o=e.link.replace(/[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\//gi,"").replace(/https?:/g,"").replace(/^\/\/?/g,"")).replace(null===t||void 0===t?void 0:t.host,""),o="https://".concat(null===t||void 0===t?void 0:t.host,"/").concat(o)),(0,r.jsx)("li",{children:(0,r.jsx)(C(),{href:o,children:(0,r.jsx)("a",{target:"_blank",children:(0,r.jsx)(E.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:ve("flex items-center flex-shrink-0 flex-wrap gap-4",["center","full-center"].includes(S)?"items-center justify-center":""),children:null===p||void 0===p?void 0:p.map((function(e,n){return(0,r.jsx)(N.Z,{button:e,block:d,website:c,className:ve(["center","full-center"].includes(S)?"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)(N.Z,{button:d.button,block:d,website:c})})]})]})})})]})})}var V=t(4626),G=function(e){var n,t,o=(null===(n=_.b[null===e||void 0===e?void 0:e.top])||void 0===n?void 0:n.top)||_.b.medium.top,l=(null===(t=_.b[null===e||void 0===e?void 0:e.bottom])||void 0===t?void 0:t.bottom)||_.b.medium.bottom;return"".concat(o," ").concat(l)};function Q(e){var n,t,o,l,i,s,d,c,u=e.website,v=function(){var e,n,t;return(0,r.jsxs)("div",{className:"ml-auto lg:hidden",children:[(ee&&(null===J||void 0===J?void 0:J.length)>0||(null===re||void 0===re?void 0:re.length)>0||(null===ie||void 0===ie?void 0:ie.showSocial)&&Array.isArray(null===u||void 0===u?void 0:u.social)&&(null===u||void 0===u||null===(e=u.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:!ce&&ae?$.textColor:j},onClick:function(){return g(!h)},children:h&&"screen"===(null===ie||void 0===ie||null===(n=ie.menu)||void 0===n?void 0:n.style)?(0,r.jsx)(S.Z,{className:"w-5 h-5"}):je()}),!ee&&0===(null===re||void 0===re?void 0:re.length)&&(null===ie||void 0===ie?void 0:ie.showSocial)&&Array.isArray(null===u||void 0===u?void 0:u.social)&&1===(null===u||void 0===u||null===(t=u.social)||void 0===t?void 0:t.length)&&fe(!0)]})},f=pe("(max-width: 1023px)"),m=(0,a.useState)(!1),h=m[0],g=m[1],p=(0,a.useState)("#FFFFFF"),x=p[0],y=p[1],b=(0,a.useState)("#000000"),j=b[0],w=b[1],F=(0,a.useState)(null),_=F[0],W=F[1],B=(0,a.useState)(!1),K=B[0],O=B[1],D=(0,a.useState)({combine:!1}),$=D[0],q=D[1],Q=(0,a.useState)(null),J=Q[0],Y=Q[1],X=(0,a.useState)(!1),ee=X[0],ne=X[1],te=(0,k.useRouter)(),oe=(0,a.useRef)(null),le=null===u||void 0===u||null===(n=u.pages)||void 0===n?void 0:n.find((function(e){return!e.slug})),ie=null===u||void 0===u?void 0:u.header,re=(0,a.useMemo)((function(){var e,n;return(null===(n=null===(e=u.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:te.asPath==="/".concat(e.slug||"")||te.asPath.includes("/".concat(e.slug,"/")),type:e.type,forceRender:e.forceRender};return"parent"===n.type&&(n.nests=u.pages.filter((function(n){var t;return n.Parent===e._id||(null===(t=n.Parent)||void 0===t?void 0:t._id)===e._id})).map((function(n){return{href:"/".concat(e.slug,"/").concat(n.slug||""),name:n.label,current:te.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})))||[]}),[u,te.asPath]),ae=(null===$||void 0===$?void 0:$.combine)&&(!(null===ie||void 0===ie?void 0:ie.sticky)||!K),se=null===ie||void 0===ie?void 0:ie.style,de=(null===ie||void 0===ie?void 0:ie.navStyle)||"default",ce=(null===ie||void 0===ie||null===(t=ie.menu)||void 0===t?void 0:t.collapse)&&"screen"===(null===ie||void 0===ie||null===(o=ie.menu)||void 0===o?void 0:o.style)&&h,ue=function(){return(null===J||void 0===J?void 0:J.length)>0&&ee&&(0,r.jsx)("div",{className:"hidden lg:flex items-center flex-shrink-0 gap-4",children:null===J||void 0===J?void 0:J.map((function(e,n){return(0,r.jsx)(N.Z,{button:e,block:ie,website:u,fallbackSize:"md"},"banner-button-".concat(n))}))})},fe=function(e){var n,t;return(null===ie||void 0===ie||null===(n=ie.menu)||void 0===n?void 0:n.collapse)&&"screen"===(null===ie||void 0===ie||null===(t=ie.menu)||void 0===t?void 0:t.style)&&(null===re||void 0===re?void 0:re.length)>0?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)("ul",{className:ve("lg:flex items-center gap-x-4 gap-y-2 flex-wrap","full-center"!==se?"justify-end":"",!e&&"hidden"),children:Array.isArray(u.social)&&u.social.map((function(e,n){var t=E.WG.find((function(n){return n.id===e.type})),o=e.link;return"custom"!==e.type&&(o=(o=e.link.replace(/[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\//gi,"").replace(/https?:/g,"").replace(/^\/\/?/g,"")).replace(null===t||void 0===t?void 0:t.host,""),o="https://".concat(null===t||void 0===t?void 0:t.host,"/").concat(o)),(0,r.jsx)("li",{children:(0,r.jsx)(C(),{href:o,children:(0,r.jsx)("a",{target:"_blank",children:(0,r.jsx)(E.QZ,{icon:e,color:ae?$.textColor:j,settings:u.socialSettings})})})},"social-icon-header-".concat(n))}))})},ge=function(e){var n=null===ie||void 0===ie?void 0:ie.logo;if(!Be(n)&&u&&(n=(0,I.i6)(ie,u).logo),"image"===(null===n||void 0===n?void 0:n.type)&&"branding"===(null===n||void 0===n?void 0:n.source)){var t,o,l,i,a;if(null===ie||void 0===ie||null===(t=ie.logo)||void 0===t||null===(o=t.branding)||void 0===o?void 0:o.logo)return(0,r.jsx)(C(),{href:"/",children:(0,r.jsx)("a",{children:(0,r.jsx)(V.Z,{branding:ie.logo.branding,variant:null===(l=ie.logo)||void 0===l?void 0:l.variant,textColor:ae?$.textColor:j,scale:null===(i=ie.logo)||void 0===i||null===(a=i.branding)||void 0===a?void 0:a.scale,forceRender:null===le||void 0===le?void 0:le.forceRender})})});if((null===n||void 0===n?void 0:n.url)||(null===u||void 0===u?void 0:u.logo)){var s=(null===n||void 0===n?void 0:n.url)||Ee(null===u||void 0===u?void 0:u.logo);return(0,r.jsx)(C(),{href:"/",children:(0,r.jsx)("a",{className:"max-w-full overflow-hidden grid",target:De(null===le||void 0===le?void 0:le.forceRender),children:s&&(0,r.jsx)(I.yA,{src:s,text:null===ie||void 0===ie?void 0:ie.siteName,height:null===n||void 0===n?void 0:n.height})})})}}else if("image"===(null===n||void 0===n?void 0:n.type)&&"upload"===(null===n||void 0===n?void 0:n.source)&&(null===n||void 0===n?void 0:n.media)){var d=Ee(null===n||void 0===n?void 0:n.media);return(0,r.jsx)(C(),{href:"/",children:(0,r.jsx)("a",{className:"max-w-full overflow-hidden grid",target:De(null===le||void 0===le?void 0:le.forceRender),children:d&&(0,r.jsx)(I.yA,{src:d,text:null===ie||void 0===ie?void 0:ie.siteName,height:null===n||void 0===n?void 0:n.height})})})}return(0,r.jsx)(I.TR,{text:null===ie||void 0===ie?void 0:ie.siteName,logo:n,color:ce||!ae||e?j:$.textColor,forceRender:null===le||void 0===le?void 0:le.forceRender})},xe=function(e,n){var t=he(n,(null===de||void 0===de?void 0:de.includes("subtle"))?10:80);return{borderColor:e.current?n:"transparent",backgroundColor:e.current&&"default"!==de?t:"transparent",color:e.current&&de.includes("bold")?me(n):"currentColor"}},ye=function(){var e;if(0===(null===re||void 0===re?void 0:re.length))return(0,r.jsx)(r.Fragment,{});var n=Fe(x,-10);n!==j&&n!==x||(n=Fe(x,10));var t=me(n),o=ae?$.textColor:j;return(0,r.jsx)("ul",{className:ve("hidden items-center flex-wrap",!(null===ie||void 0===ie||null===(e=ie.menu)||void 0===e?void 0:e.collapse)&&"lg:flex","left"===se&&"justify-end","full-center"===se&&"justify-center","default"===de?"gap-x-6":"gap-x-2"),style:{color:o},children:null===re||void 0===re?void 0:re.map((function(e){var l;return(0,r.jsx)("li",{className:ve("default"===de?"border-b-2":"",(null===de||void 0===de?void 0:de.includes("round"))&&"rounded-lg"),style:xe(e,o),children:"parent"===e.type?(0,r.jsx)(L.Z,{buttonClassName:ve("inline-flex items-center gap-2","default"===de?"py-1.5":"py-2 px-3"),itemsContainerClass:ve("!p-4 !pr-6 w-max max-w-120 !max-h-[80vh] no-scrollbar",(null===de||void 0===de?void 0:de.includes("square"))&&"!rounded-none","default"===de&&"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:t},children:null===(l=e.nests)||void 0===l?void 0:l.map((function(e){return(0,r.jsx)(Z.v.Item,{children:(0,r.jsx)(C(),{className:ve("block py-2 body-normal","default"===de?"border-b-2":"px-3",(null===de||void 0===de?void 0:de.includes("round"))&&"rounded-lg"),href:e.href,legacyBehavior:!1,target:De(e.forceRender),style:xe(e,o),children:e.name})},"page-link-".concat(e.href))}))}):(0,r.jsx)(C(),{className:ve("block body-normal whitespace-nowrap","default"===de?"py-1.5":"py-2 px-3"),legacyBehavior:!1,href:e.href,target:De(e.forceRender),children:e.name})},"header-page-link-".concat(e.href))}))})},be=function(){var e,n;return 0===(null===re||void 0===re?void 0:re.length)?(0,r.jsx)(r.Fragment,{}):(null===ie||void 0===ie||null===(e=ie.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:!ce&&ae?$.textColor:j},onClick:function(){return g(!h)},children:h&&"screen"===(null===ie||void 0===ie||null===(n=ie.menu)||void 0===n?void 0:n.style)?(0,r.jsx)(S.Z,{className:"w-5 h-5"}):je()}):null},je=function(){var e,n="block h-5 w-5";switch(null===ie||void 0===ie||null===(e=ie.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)(P.Z,{className:n,"aria-hidden":"true"});case"bars-3-center-left":return(0,r.jsx)(M.Z,{className:n,"aria-hidden":"true"});case"bars-2":return(0,r.jsx)(z.Z,{className:n,"aria-hidden":"true"});default:return(0,r.jsx)(T.Z,{className:n,"aria-hidden":"true"})}},we=function(){var e;O((null===(e=document.querySelector("#main-body"))||void 0===e?void 0:e.scrollTop)>20)},Ne=function(e){var n=document.querySelector("[data-combine-with-header]");if(n){var t=null===n||void 0===n?void 0:n.getAttribute("data-combine-with-header");q((function(o){return e<10&&(null===n||void 0===n?void 0:n.getAttribute("data-text-color"))!==o.textColor&&setTimeout((function(){Ne(e+1)}),100*e),{combine:!0===t||"true"===t,textColor:null===n||void 0===n?void 0:n.getAttribute("data-text-color")}}))}else q((function(t){return e<10&&(!n||(null===n||void 0===n?void 0:n.getAttribute("data-text-color"))!==t.textColor)&&setTimeout((function(){Ne(e+1)}),15*e),{combine:!1,textColor:null}}))};return(0,a.useEffect)((function(){if(ie){var e,n,t,o,l,i;if(Y((null===ie||void 0===ie||null===(e=ie.buttons)||void 0===e?void 0:e.items)||[ie.button]),ne((null===ie||void 0===ie||null===(n=ie.buttons)||void 0===n?void 0:n.items)?null===ie||void 0===ie||null===(t=ie.buttons)||void 0===t?void 0:t.enabled:!!ie.button),ie.layers)if("custom"===ie.layers.palette){var r;y((null===(r=ie.layers.overlay)||void 0===r?void 0:r.color1)||"#FFFFFF")}else{var a,s,d=(null===u||void 0===u||null===(a=u.colorPalette)||void 0===a?void 0:a.Palette)||(null===u||void 0===u?void 0:u.colorPalette);y(_e(d,null===(s=ie.layers)||void 0===s?void 0:s.palette,"color"))}else y(ie.background||"#FFFFFF");if(null===ie.siteName||void 0===ie.siteName)ie.siteName=null===u||void 0===u||null===(i=u.Business)||void 0===i?void 0:i.name;ie.style||(ie.style="left"),(null===(o=ie.logoDesktop)||void 0===o?void 0:o.height)||(ie.logoDesktop={height:80}),(null===(l=ie.logoMobile)||void 0===l?void 0:l.height)||(ie.logoMobile={height:40}),ie.sticky&&(null===oe||void 0===oe?void 0:oe.current)&&(document.documentElement.style.scrollPaddingTop=oe.current.clientHeight+"px")}}),[ie]),(0,a.useEffect)((function(){Ne(0)}),[te.asPath]),(0,a.useEffect)((function(){x&&w(me(x))}),[x]),(0,a.useEffect)((function(){g(!1),W(null)}),[te.asPath,f]),(0,a.useEffect)((function(){var e;return null===(e=document.querySelector("#main-body"))||void 0===e||e.addEventListener("scroll",we),function(){var e;null===(e=document.querySelector("#main-body"))||void 0===e||e.removeEventListener("scroll",we)}}),[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("header",{id:"website-header",ref:oe,className:ve("!z-[2000] transition-colors duration-300",(null===ie||void 0===ie?void 0:ie.sticky)?"sticky top-0":"",(null===ie||void 0===ie?void 0:ie.sticky)&&!$.combine&&K||(null===ie||void 0===ie?void 0:ie.sticky)&&K?"shadow-md":""),style:{backgroundColor:ae?"transparent":x,color:ae?$.textColor:j},children:[(0,r.jsx)("div",{className:ve("relative z-10 grid items-center lg:gap-6 xl:gap-10 mx-auto",G(null===ie||void 0===ie?void 0:ie.spacing),(null===ie||void 0===ie?void 0:ie.fullWidth)?"px-6 lg:px-12":"container"),style:function(e){return"center"===e?{gridTemplateColumns:"1fr auto 1fr"}:"full-center"===e?(null===re||void 0===re?void 0:re.length)>6?{gridTemplateColumns:"1fr 4fr 1fr"}:{gridTemplateColumns:"1fr auto 1fr"}:{gridTemplateColumns:"auto auto auto"}}(se),children:"center"===se?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"lg:w-auto whitespace-nowrap",children:[ye(),be()]}),(0,r.jsx)("div",{className:"flex justify-center",children:ge()}),(0,r.jsxs)("div",{className:"flex justify-end",children:[(0,r.jsxs)("div",{className:"hidden lg:flex item-center gap-10",children:[(null===ie||void 0===ie?void 0:ie.showSocial)&&fe(),ee&&ue()]}),v()]})]}):"full-center"===se?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"lg:w-auto whitespace-nowrap",children:(null===ie||void 0===ie?void 0:ie.showSocial)&&fe()}),(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:[ge(),be()]}),ye()]}),(0,r.jsxs)("div",{className:"flex justify-end whitespace-nowrap",children:[ee&&ue(),v()]})]}):"logo-left-menu-left"===se?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex items-center gap-10 col-span-2",children:[ge(),ye(),be()]}),(0,r.jsxs)("div",{className:"hidden lg:flex item-center justify-end gap-10",children:[(null===ie||void 0===ie?void 0:ie.showSocial)&&fe(),ee&&ue()]}),v()]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"col-span-2 lg:col-span-1",children:ge()}),(0,r.jsxs)("div",{className:"hidden lg:flex item-center justify-end gap-10 lg:col-span-2",children:["screen"!==(null===ie||void 0===ie||null===(l=ie.menu)||void 0===l?void 0:l.style)&&be(),ye(),(null===ie||void 0===ie?void 0:ie.showSocial)&&fe(),ee&&ue(),"screen"===(null===ie||void 0===ie||null===(i=ie.menu)||void 0===i?void 0:i.style)&&be()]}),v()]})}),(null===ie||void 0===ie||null===(s=ie.menu)||void 0===s?void 0:s.collapse)&&"screen"===(null===ie||void 0===ie||null===(d=ie.menu)||void 0===d?void 0:d.style)&&!f&&(0,r.jsx)(H,{open:h,setOpen:g,block:ie,website:u,background:x,textColor:j,links:re,headerHeight:function(){var e;return(null===oe||void 0===oe||null===(e=oe.current)||void 0===e?void 0:e.clientHeight)||0}(),currentNests:_,setCurrentNests:W})]}),("screen"!==(null===ie||void 0===ie||null===(c=ie.menu)||void 0===c?void 0:c.style)||f)&&(0,r.jsx)(U,{open:h,setOpen:g,block:ie,website:u,background:x,textColor:j,isSmall:f,isEdgeCase:!(!ee||0!==(null===re||void 0===re?void 0:re.length)||(null===ie||void 0===ie?void 0:ie.showSocial))||!!(0===(null===re||void 0===re?void 0:re.length)&&(null===ie||void 0===ie?void 0:ie.showSocial)&&Array.isArray(null===u||void 0===u?void 0:u.social)&&(null===u||void 0===u?void 0:u.social.length)>1)||!ee&&!ie.showSocial&&1===(null===re||void 0===re?void 0:re.length)||!(1!==(null===re||void 0===re?void 0:re.length)||!ee&&!ie.showSocial),renderLogo:ge,links:re,buttons:J,buttonsEnabled:ee,isHeaderTransparent:ae,combineWithNextBlock:$,currentNests:_,setCurrentNests:W})]})}var J,Y=t(165),X=t(40782),ee=t(83457),ne=t.n(ee),te=function(e){var n=e.apiUrl,t=e.website,o=(e.page,"home-local-markup"),l=function(){var e=(0,s.Z)((function(){var e,o;return(0,c.__generator)(this,(function(l){switch(l.label){case 0:return[4,new m.Z(n).get("/office/get-info-by-business",{idBusiness:t.Business._id})];case 1:return e=l.sent(),o={},e&&!0===e.status&&(o=(null===e||void 0===e?void 0:e.content)||{}),[2,o]}}))}));return function(){return e.apply(this,arguments)}}(),i=function(){var e=(0,s.Z)((function(){var e,o,l;return(0,c.__generator)(this,(function(i){switch(i.label){case 0:return[4,new m.Z(n).get("/seo/markup-local-business-images",{idBusiness:t.Business._id})];case 1:return e=i.sent(),o={},e&&!0===e.status&&(o=(null===e||void 0===e||null===(l=e.content)||void 0===l?void 0:l.images)||{}),[2,o]}}))}));return function(){return e.apply(this,arguments)}}(),d=function(e){var n=[];if(Array.isArray(e)){var t=!0,o=!1,l=void 0;try{for(var i,r=e[Symbol.iterator]();!(t=(i=r.next()).done);t=!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){o=!0,l=s}finally{try{t||null==r.return||r.return()}finally{if(o)throw l}}}return n},u=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():""}:{}},v=function(){var e=(0,s.Z)((function(){var e,n,r,a,s,v,f,m;return(0,c.__generator)(this,(function(c){switch(c.label){case 0:return"object"!==typeof document?[3,3]:[4,l().catch((function(e){return console.log("Address Error",e)}))];case 1:return r=c.sent(),a=r.address,s=r.phoneNumber,[4,i().catch((function(e){return console.log("Gallery Error",e)}))];case 2:v=c.sent(),f={"@context":"https://schema.org/","@type":"LocalBusiness",name:(null===t||void 0===t||null===(e=t.seo)||void 0===e?void 0:e.title)||(null===t||void 0===t||null===(n=t.header)||void 0===n?void 0:n.name)||"",url:"".concat(location.protocol,"//").concat(location.hostname,"/"),telephone:s||"",image:v,address:u(a),sameAs:d((null===t||void 0===t?void 0:t.social)||[])},(m=document.getElementById(o)||document.createElement("script")).id=o,m.type="application/ld+json",m.innerHTML=JSON.stringify(f),document.body.appendChild(m),c.label=3;case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,a.useEffect)((function(){return v().catch((function(e){return console.error("Failed to build markup")})),function(){!function(){if("object"===typeof document){var e=document.getElementById(o);e&&e.remove()}}()}}),[]),(0,r.jsx)(r.Fragment,{})},oe=t(24230),le={success:{color:"bg-green-50 text-green-800",icon:(0,r.jsx)(x.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)(y.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)(b.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)(j.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)(x.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)(x.Z,{className:"h-5 w-5 text-gray-400"}),progress:"bg-gray-300"}},ie=[],re=function(e){var n,l,i,u,g,x,y,b,j,N,k,F,C=e.children,Z=e.website,S=e.page,A=e.apiUrl,R=e.ipAddress,P=e.hideFooter,M=p().useRouter(),z=(0,a.useState)(0),T=z[0],L=z[1],E=(0,a.useState)(!1),I=E[0],_=E[1],W=(0,a.useState)(null),B=W[0],K=W[1],O=(0,a.useState)(0),D=O[0],H=O[1],$=new m.Z(A),q=null!==(F=Z.seo)&&void 0!==F?F:{},U=q.headCode,V=q.footerCode,G=(0,d.Z)(q,["headCode","footerCode"]),ee=(0,o.Z)({globalHeadCode:U,globalFooterCode:V},G,null===S||void 0===S?void 0:S.seo),re=(null===ee||void 0===ee?void 0:ee.title)?ee.title:(null===(n=Z.Business)||void 0===n?void 0:n.name)+" | "+(null===(l=Z.Business)||void 0===l||null===(i=l.type)||void 0===i?void 0:i.name),ae=(null===ee||void 0===ee?void 0:ee.description)?ee.description:"",se=(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!==T||L(e.target.scrollTop),I?[3,2]:[4,ce("scroll")];case 1:n.sent(),_(!0),n.label=2;case 2:return[2]}}))}));return function(n){return e.apply(this,arguments)}}(),[I]),de=a.Children.map(C,(function(e){return a.isValidElement(e)?a.cloneElement(e,(0,o.Z)({},e.props)):e})),ce=function(){var e=(0,s.Z)((function(e){var n,o,l,i,r,a,s,d,u,v,f,m,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"!==Z.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=R||"0.0.0.0",window.unsupportedBrowser||R?[3,3]:[4,t.e(6216).then(t.bind(t,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(),m=new Date(f-f%864e5),localStorage.setItem("user",JSON.stringify({ip:u,date:m.toISOString(),hash:v})),s.ip=u,s.hash=v,c.label=4;case 4:g={idWebsite:Z._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===(o=window.navigator)||void 0===o||null===(l=o.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":h.tq?"mobile":"desktop",ip:s.ip,hash:s.hash},ie.find((function(e){return e.event===g.event}))||ie.push(g),c.label=5;case 5:return[2]}}))}));return function(n){return e.apply(this,arguments)}}(),ue=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(){return D<6&&(clearInterval(J),J=setInterval((0,s.Z)((function(){return(0,c.__generator)(this,(function(e){return ce("ping"),H(D+1),[2]}))})),3e4)),B!==M.asPath&&(ce("open"),K(M.asPath),H(0),_(!1)),function(){D>=6&&H(0),clearInterval(J),_(!1)}}),[M,D]),(0,a.useEffect)((function(){var e,n,t=function(){var e=(0,s.Z)((function(){var e;return(0,c.__generator)(this,(function(n){switch(n.label){case 0:return(null===ie||void 0===ie?void 0:ie.length)>0&&(e=ie.shift())?[4,$.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 t(),e=setInterval((function(){t()}),500),null===(n=document.querySelector("#main-body"))||void 0===n||n.addEventListener("scroll",se),function(){var n;clearInterval(e),null===(n=document.querySelector("#main-body"))||void 0===n||n.removeEventListener("scroll",se)}}),[I]),(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 M.events.on("routeChangeComplete",e),document.addEventListener("click",ue),function(){M.events.off("routeChangeComplete",e),document.addEventListener("click",ue)}}),[]),(0,a.useEffect)((function(){var e;window.cnDisableCache=!0;var n=(0,w.getCookie)("pt");n&&(null===M||void 0===M||null===(e=M.query)||void 0===e?void 0:e.pt)!==n&&"public"!==Z.status&&M.replace("".concat(M.asPath,"?pt=").concat(n),void 0,{shallow:!0})}),[M,Z]),(0,a.useEffect)((function(){M.beforePopState((function(e){e.url;var n=e.as;e.options;return window.location.href=n,!1}))}),[M]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(v(),{children:[(0,r.jsx)("link",{rel:"icon",href:(null===(u=Z.favicon)||void 0===u?void 0:u.url)||""}),(null===S||void 0===S?void 0:S.isCanonical)&&(0,r.jsx)("link",{rel:"canonical",href:"https://".concat(Z.rawDomain).concat(null===(g=M.asPath)||void 0===g?void 0:g.split("?")[0])}),(0,r.jsx)("title",{children:re}),(0,r.jsx)("meta",{httpEquiv:"Content-Language",content:(null===Z||void 0===Z?void 0:Z.language)||"en"}),(0,r.jsx)("meta",{name:"keywords",content:(null===ee||void 0===ee?void 0:ee.keywords)?ee.keywords:(null===Z||void 0===Z||null===(x=Z.Business)||void 0===x||null===(y=x.name)||void 0===y?void 0:y.split(" ").join(","))+","+(null===Z||void 0===Z||null===(b=Z.Business)||void 0===b||null===(j=b.type)||void 0===j||null===(N=j.name)||void 0===N?void 0:N.split(" ").join(","))}),(0,r.jsx)("meta",{name:"title",property:"og:title",content:re}),(0,r.jsx)("meta",{name:"twitter:title",content:re}),(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(Z.rawDomain).concat(M.asPath)}),(0,r.jsx)("meta",{name:"description",property:"og:description",content:ae}),(0,r.jsx)("meta",{name:"twitter:description",content:ae}),(null===ee||void 0===ee||null===(k=ee.Image)||void 0===k?void 0:k.url)&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{name:"image",property:"og:image",content:ee.Image.url}),(0,r.jsx)("meta",{name:"twitter:image",content:ee.Image.url})]}),(null===ee||void 0===ee?void 0:ee.globalHeadCode)&&(0,f.ZP)(ee.globalHeadCode),(null===ee||void 0===ee?void 0:ee.headCode)&&(0,f.ZP)(ee.headCode),(null===Z||void 0===Z?void 0:Z.searchIndexing)?(0,r.jsx)("meta",{name:"robots",content:"all"}):(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"})]}),(0,r.jsx)(oe.Z,{website:Z}),(0,r.jsx)(ne(),{color:function(){var e,n,t,o,l=(null===Z||void 0===Z||null===(e=Z.colorPalette)||void 0===e||null===(n=e.Palette)||void 0===n?void 0:n.colors)||(null===Z||void 0===Z||null===(t=Z.colorPalette)||void 0===t?void 0:t.colors)||[];return 0===(null===l||void 0===l?void 0:l.length)?"#333":(null===(o=l[0])||void 0===o?void 0:o.accent)||"#333"}(),startPosition:.3,options:{showSpinner:!1,trickle:!0,trickleSpeed:100}}),(0,r.jsxs)("div",{id:"main-body",onScroll:function(e){return se(e)},className:"flex flex-col h-full overflow-y-auto overflow-x-hidden smooth-scroll transition-all",children:[(0,r.jsx)(Q,{scrollY:T,website:Z}),de,!P&&(0,r.jsx)(Y.default,{website:Z}),(0,r.jsx)(X.ToastContainer,{toastClassName:function(e){var n=e.type;return le[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 le[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===ee||void 0===ee?void 0:ee.globalFooterCode)&&(0,f.ZP)(ee.globalFooterCode),(null===ee||void 0===ee?void 0:ee.footerCode)&&(0,f.ZP)(ee.footerCode),null===(null===S||void 0===S?void 0:S.slug)&&(0,r.jsx)(te,{website:Z,page:S,apiUrl:A})]})]})},ae=t(31955),se=(t(83454),"#111827"),de="#FFFFFF",ce=[{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"}],ue=[{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 ve(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return n.filter(Boolean).join(" ")}function fe(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 me(e){var n=se.replace("#",""),t=de.replace("#",""),o=!1;if(!e||!e[0])return e;"#"===e[0]&&(e=e.slice(1),o=!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(o?"#":"")+(i=i>128?n:t)}var he=function(e,n){var t;return n/=100,/^#([A-Fa-f0-9]{3}){1,2}$/.test(e)?(3===(null===(t=e.substring(1).split(""))||void 0===t?void 0:t.length)&&(t=[t[0],t[0],t[1],t[1],t[2],t[2]]),"rgba("+[(t="0x"+t.join(""))>>16&255,t>>8&255,255&t].join(",")+","+n+")"):e};function ge(e){var n=e.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i),t=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(t)}function pe(e){var n=(0,a.useState)(!0),t=n[0],o=n[1];return(0,a.useEffect)((function(){var n=window.matchMedia(e);n.matches!==t&&o(n.matches);var l=function(){o(n.matches)};return n.addListener(l),function(){return n.removeListener(l)}}),[t,e]),t}function xe(e){return JSON.parse(JSON.stringify(e))}var ye=function(e){return{}},be=function(e){return{}},je=function(e,n){var t={fontFamily:(null===e||void 0===e?void 0:e.family)||'"Inter", sans-serif'};return n&&(t.fontWeight=(null===e||void 0===e?void 0:e.weight)||500),(null===e||void 0===e?void 0:e.style)&&(t.fontStyle=e.style),(null===e||void 0===e?void 0:e.size)&&(t.fontSize=e.size),(null===e||void 0===e?void 0:e.lineHeight)&&(t.fontHeight=e.lineHeight),t},we=function(e,n){var t=[400,500,600,700,800],o="";return"fontshare"===e.source?o="f[]=".concat(e.name.replace(/ /gi,"-"),"@").concat(t.join(",")).toLowerCase():(o="family=".concat(e.name.replace(/ /gi,"+")),o+=n?":".concat("italic"===e.style?"ital,":"","wght@").concat(e.weight):":wght@".concat(t.join(";"))),o};function Ne(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.props.children[0].props.website,i=e.props.children[0].props.page,a=e.props.children[0].props.apiUrl;return(0,r.jsx)(re,(0,l.Z)((0,o.Z)({page:i,website:t,apiUrl:a},n),{children:e}))}function ke(e){var n,t,o;return e.match(/^rgb/)?(n=(e=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/))[1],t=e[2],o=e[3]):(n=(e=+("0x"+e.slice(1).replace(e.length<5&&/./g,"$&$&")))>>16,t=e>>8&255,o=255&e),Math.sqrt(n*n*.299+t*t*.587+o*o*.114)<=127.5}function Fe(e,n){if(!e)return"#FFFFFF";var t=parseInt(e.replace("#",""),16),o=Math.round(2.55*n),l=(t>>16)+o,i=(t>>8&255)+o,r=(255&t)+o;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 Ce(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 Ze=function(e,n){var t={small:"rounded-sm md:rounded-md lg:rounded-lg",medium:"rounded-lg md:rounded-xl lg:rounded-2xl",large:"rounded-2xl md:rounded-3xl lg:rounded-4xl","no-rounded":""},o=String(e);return e&&"default"!==e||!n||(o=n),t[o]||t["no-rounded"]},Se=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"},Ae=function(e){var n,t,o=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 o?(null===(n=l[e])||void 0===n?void 0:n.col)||l.center.col:(null===(t=l[e])||void 0===t?void 0:t.row)||l.center.row},Re=function(e){var n,t,o=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 o?(null===(n=l[e])||void 0===n?void 0:n.col)||l.center.col:(null===(t=l[e])||void 0===t?void 0:t.row)||l.center.row},Pe=function(e){var n,t,o={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=o[null===e||void 0===e?void 0:e.top])||void 0===n?void 0:n.top)||o.default.top,i=(null===(t=o[null===e||void 0===e?void 0:e.bottom])||void 0===t?void 0:t.bottom)||o.default.bottom;return"".concat(l," ").concat(i)},Me=function(e,n){var t,o,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===(t=l[null===e||void 0===e?void 0:e.top])||void 0===t?void 0:t.top)||l.default.top,r=(null===(o=l[null===e||void 0===e?void 0:e.bottom])||void 0===o?void 0:o.bottom)||l.default.bottom;return"".concat(n&&"top"!==n?"":i," ").concat(n&&"bottom"!==n?"":r)},ze=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"lg",t={sm:"heading-small",md:"heading-medium",lg:"heading-large",xl:"heading-xlarge"};return t[e]||t[n]},Te=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"md",t={sm:"body-small",md:"body-normal",lg:"body-large"};return t[e]||t[n]},Le=function(e){return"".concat("https://cdn.durable.co","/assets/").concat(e)},Ee=function(e){return(null===e||void 0===e?void 0:e.url)||(null===e||void 0===e?void 0:e.preview)},Ie=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},_e=function(e,n,t){var o,l=Ie(n);return(null===e||void 0===e?void 0:e.colors)&&!isNaN(l)?null===(o=e.colors[l])||void 0===o?void 0:o[t]:"#FFFFFF"},We=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(){for(var o=arguments.length,l=new Array(o),r=0;r<o;r++)l[r]=arguments[r];return clearTimeout(t),setTimeout((function(){e.apply(void 0,(0,i.Z)(l))}),n)}},Be=function(e){return null!==e&&void 0!==e};function Ke(e){return ae.Z.get(e)}function Oe(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ae.Z.set(e,n,t)}function De(e){return e?"_parent":"_self"}},75871:function(e,n,t){t.d(n,{M:function(){return r},b:function(){return l}});var o=t(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,t,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=o.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===(t=r.spacing)||void 0===t?void 0:t.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,")")}}}}]);