import{w as C,a as I}from"./with-props-DhurPw7S.js";import{r as c,j as e,L as E,i as z,O as P,u as D}from"./chunk-D4RADZKF-Bmzts4UG.js";import{c as F}from"./index-Be3kjC4y.js";import{L as q}from"./Logo-eYchbw1E.js";import{a as M}from"./index-t--hEgTQ.js";import{F as T,c as A,a as B,e as R,t as $,b as H}from"./toast-BcySEcd1.js";import{C as W}from"./ClientOnly-DE71gDGR.js";import{c as b,a as k}from"./animation-DWrC6HEj.js";import{D as S}from"./DarkModeContext-C87Dg7c9.js";import{g as V}from"./getIcon-C2Nm_1Ag.js";import{S as _}from"./ChevronDown-B6o9warc.js";import{a as G,H as w}from"./Header-BdFuKfRw.js";import{b as Y}from"./builder-react.es5-BsS4GSQ4.js";import{N as Z}from"./NotFound-BBBhPAm7.js";import"./toString-vmeCbdid.js";import"./index-BZm5KAw5.js";import"./iconBase-CxdDAOtS.js";import"./Transition-B_B64g2L.js";import"./index-CF2T9cNf.js";import"./index-FgvbEPmL.js";var y=function(){return y=Object.assign||function(t){for(var r,i=1,s=arguments.length;ie.jsx(T,{initialValues:U,validationSchema:X,onSubmit:async({email:o})=>{if(o){a(!1);try{await M.post("/api/subscribe",{email:o}),a(!0)}catch{$()}}},"data-oid":"3iovs6s",children:({isSubmitting:o})=>e.jsxs("div",{className:"relative sm:col-span-6 md:col-span-3 lg:col-span-3","data-oid":"9k3bjqf",children:[e.jsx("h6",{className:"mb-2 font-semibold text-gray-800","data-oid":"otzigmw",children:t}),r&&e.jsx("p",{className:"text-text-desc mb-4 text-sm","data-oid":"664o:pn",children:r}),e.jsxs(B,{className:"flex flex-wrap","data-oid":"k6iiann",children:[e.jsx("label",{className:"sr-only block text-sm",htmlFor:i,"data-oid":"jgv0_xs",children:"Email"}),e.jsxs("div",{className:"relative flex w-full items-center border border-gray-300 focus-within:border-gray-500 dark:border-gray-400 dark:focus-within:border-gray-600","data-oid":"cst-qa2",children:[e.jsx(R,{id:i,name:"email",type:"email",disabled:o,className:"form-input w-full px-3 py-2 pr-12 text-sm text-gray-800",placeholder:"Your email","data-oid":"gu18fnh"}),e.jsxs("button",{type:"submit",disabled:o,className:"absolute inset-0 left-auto","aria-label":"Subscribe","data-oid":"._oo9je",children:[e.jsx("span",{className:"absolute inset-0 right-auto my-2 -ml-px w-px bg-gray-300","aria-hidden":"true","data-oid":"r7aowv8"}),e.jsx("svg",{className:"text-brand-600 mx-3 h-3 w-3 shrink-0 fill-current",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg","data-oid":"5kx524p",children:e.jsx("path",{d:"M11.707 5.293L7 .586 5.586 2l3 3H0v2h8.586l-3 3L7 11.414l4.707-4.707a1 1 0 000-1.414z",fillRule:"nonzero","data-oid":"e51j8a_"})})]})]}),s&&e.jsx("p",{className:"text-brand-600 mt-2 text-sm","data-oid":".7ts07c",children:"Thanks for subscribing!"})]}),o&&e.jsx("div",{className:"absolute left-0 top-0 flex h-full w-full place-content-center place-items-center bg-white/50","data-oid":"wcegtly",children:e.jsx(Q,{color:"#00b3a488","data-oid":"dn..a_1"})})]})})})}const ee=({advancedLogo:t,logo:r})=>{const{darkMode:i}=c.useContext(S),s=(i?t==null?void 0:t.logoTypeDark:t==null?void 0:t.logoTypeLight)??(t==null?void 0:t.logoTypeLight),a=(i?t==null?void 0:t.logoDark:t==null?void 0:t.logoLight)??(t==null?void 0:t.logoLight);return{logoType:s??(r==null?void 0:r.type),logoIcon:a??(r==null?void 0:r.icon)}},te=t=>{const r=c.useMemo(()=>{const i={root:null,rootMargin:"0px",threshold:0};if(!(typeof window>"u"))return new IntersectionObserver(s=>{var o,n,l;const a=(o=document.getElementsByClassName("zsiq_floatmain"))==null?void 0:o[0];a&&((n=s==null?void 0:s[0])!=null&&n.isIntersecting?(a.classList.add("max-md:important-right-10"),a.classList.add("md:translate-y-1/2"),a.classList.add("max-md:important-bottom-10"),a.setAttribute("style",`bottom: ${(l=t.current)==null?void 0:l.clientHeight}px; right: 38px;`)):(a.classList.remove("max-md:important-right-10"),a.classList.remove("max-md:important-bottom-10"),a.classList.remove("md:translate-y-1/2"),a.removeAttribute("style")))},i)},[t]);c.useEffect(()=>{if(r&&t.current){const i=t.current;return r.observe(i),()=>{r.unobserve(i)}}},[r,t])},re=[{label:"Privacy",href:"/legal/privacy"},{label:"Cookie",href:"/legal/cookie"},{label:"Terms",href:"/legal/terms"}];function v({siteName:t,logo:r,advancedLogo:i,socialMediaLinks:s,footer:{linkColumns:a,copyright:o,subscribeForm:n,customHTML:l},currentLocale:x,handleLanguageChange:m,languageSelector:d,_direction:N="inherit"}){const{logoIcon:j,logoType:u}=ee({advancedLogo:i,logo:r}),f=c.useRef(null);return te(f),e.jsxs("footer",{className:"dark:bg-bg-primary-2 bg-bg-primary footer z-10","data-oid":"-:kkwe2",children:[e.jsx("div",{className:"border-t border-gray-200","data-oid":"k732l09",children:e.jsxs("div",{className:"mx-auto grid max-w-screen-2xl gap-8 px-4 py-8 sm:grid-cols-12 sm:px-6 md:py-12","data-oid":"p:zs21g",children:[e.jsxs("div",{className:"sm:col-span-12 lg:col-span-3","data-oid":"htb:ijz",children:[e.jsx("div",{className:"mb-2","data-oid":"61c:4_g",children:e.jsx("div",{className:"ml-[-12px] inline-block contrast-50 grayscale","data-oid":"m5mhmgm",children:e.jsx(q,{siteName:t,logoIcon:j,logoType:u,direction:"inherit","data-oid":":ydkxc3"})})}),e.jsx("div",{className:"text-text-desc text-sm","data-oid":"4ij:dr9",children:re.map((p,h,g)=>e.jsxs(c.Fragment,{children:[e.jsx(E,{to:p.href,prefetch:"viewport",className:"text-text-desc text-base transition duration-150 ease-in-out hover:text-gray-900 hover:underline",target:"_blank",rel:"noreferrer",children:p.label}),he.jsx(se,{column:p,"data-oid":"an50t4s"},h)),n&&e.jsx(L,{...n,"data-oid":"svv-_0n"})]})}),e.jsx("div",{ref:f,className:"border-t border-gray-200","data-oid":"grua1j0",children:e.jsxs("div",{className:"mx-auto flex max-w-screen-2xl flex-col gap-6 px-4 pb-10 pt-4 sm:px-6 md:flex md:flex-row md:items-center md:justify-between md:gap-3 md:pt-8 lg:mb-0","data-oid":"k1c5-d3",children:[d&&d.length>0&&m&&m&&e.jsx(ae,{currentLocale:x,handleLanguageChange:m,className:"order-1 md:order-none",languageSelector:d,"data-oid":"xb_9drc"}),e.jsx("div",{className:"text-text-desc order-2 mr-4 text-sm md:order-none","data-oid":"kyd:pd.",children:o}),s&&e.jsx("ul",{className:"order-3 mb-4 flex gap-4 md:order-1 md:mb-0 md:ml-4","data-oid":".:spyh7",children:s.map((p,h)=>{const g=V(p.icon);return e.jsx("li",{className:F({"":h}),"data-oid":"lxv38cl",children:e.jsx("a",{href:p.href,target:"_blank",rel:"noreferrer",className:"hover:bg-white-100 flex h-8 w-8 place-content-center place-items-center rounded-full bg-white text-gray-600 shadow transition duration-150 ease-in-out hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-200","data-oid":"k22l-63",children:e.jsx(g,{"data-oid":"1ucx2.5"})})},h)})})]})})]})}const se=({column:t})=>e.jsxs("div",{className:"sm:col-span-6 md:col-span-3 lg:col-span-2","data-oid":"1_87wi3",children:[e.jsx("h6",{className:"mb-2 font-semibold text-gray-800","data-oid":"r6t:9nb",children:t.title}),e.jsx("ul",{className:"text-sm","data-oid":"qz46zmn",children:t.links.map((r,i)=>e.jsx("li",{className:"mb-2","data-oid":"e:7-mfk",children:r.href?e.jsx(E,{to:r.href,prefetch:"viewport",className:"text-text-desc transition duration-150 ease-in-out hover:text-gray-900",reloadDocument:r.href.includes("http"),...r.openInNewTab&&{target:"_blank"},children:r.label}):e.jsx("p",{className:"text-text-desc transition duration-150 ease-in-out","data-oid":"_e-5_3f",children:r.label})},i))})]}),ae=({currentLocale:t,handleLanguageChange:r,className:i,languageSelector:s})=>{var m;const[a,o]=c.useState(!1),n=c.useRef(null),l=()=>{o(!a)},x=d=>{n.current&&!n.current.contains(d.target)&&o(!1)};return c.useEffect(()=>(document.addEventListener("mousedown",x),()=>{document.removeEventListener("mousedown",x)}),[]),e.jsx("div",{className:`relative inline-block text-left ${i}`,"data-oid":"i8al5sp",children:e.jsxs("div",{className:"group flex items-center","data-oid":"cugaujg",children:[e.jsx(G,{width:20,height:20,className:"mr-2 text-xl group-hover:text-gray-600",color:"#A3A3B5","data-oid":"op7trfh"}),e.jsxs("div",{className:"relative",ref:n,"data-oid":"ddjqpvw",children:[e.jsxs("div",{className:"flex cursor-pointer appearance-none items-center gap-2 border-none bg-transparent pr-8 text-[#A3A3B5] focus:ring-0 group-hover:text-gray-600 rtl:pr-2",onClick:l,"data-oid":"y.vu7vw",children:[(m=s==null?void 0:s.find(d=>d.code===t))==null?void 0:m.name,a?e.jsx(_,{className:"h-5 w-5 rotate-180","data-oid":"c-xqf-5"}):e.jsx(_,{className:"h-5 w-5","data-oid":"nmm2kl-"})]}),a&&e.jsx("ul",{className:"absolute bottom-full mb-1 w-auto rounded border border-gray-300 bg-white shadow-lg dark:bg-gray-400","data-oid":"u1dhcv9",children:s==null?void 0:s.map(d=>e.jsx("li",{onClick:()=>{r(d.code),o(!1)},className:"text-text-desc hover:text-brand-600 cursor-pointer px-4 py-2 text-gray-700","data-oid":"mbom1in",children:d.name},d.code))})]})]})})};Y.init("19b59fb7c26b4286b72cdfc9288821c5");const _e=C(function({loaderData:r}){const{footer:i,header:s,headerCta:a,logo:o,siteName:n,socialMediaLinks:l}=z("root"),{page:x,builderContent:m}=r;return e.jsxs("div",{className:"bg-bg-primary font-inter text-text-default flex min-h-screen flex-col overflow-hidden tracking-tight antialiased",children:[e.jsx(w,{header:s,siteName:n,headerCta:a,logo:o,hideLightSwitch:!0}),e.jsx("main",{className:x||m?"grow":"grow pt-[80px]",children:e.jsx(P,{})}),e.jsx(v,{footer:i,siteName:n,logo:o,socialMediaLinks:l})]})}),Oe=I(function(){const r=D(),{footer:i,header:s,headerCta:a,logo:o,siteName:n,socialMediaLinks:l}=z("root");return r.status===404||r.message==="Page Not Found"?e.jsxs("div",{className:"bg-bg-primary font-inter text-text-default flex min-h-screen flex-col overflow-hidden tracking-tight antialiased",children:[e.jsx(w,{header:s,siteName:n,headerCta:a,logo:o}),e.jsx("main",{className:"grow pt-[60px]",children:e.jsx(Z,{})}),e.jsx(v,{footer:i,siteName:n,logo:o,socialMediaLinks:l})]}):e.jsxs("div",{className:"bg-bg-primary font-inter text-text-default flex min-h-screen flex-col overflow-hidden tracking-tight antialiased",children:[e.jsx(w,{header:s,siteName:n,headerCta:a,logo:o,hideLightSwitch:!0}),e.jsx("main",{className:"grow pt-[80px] flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-4xl font-bold mb-4",children:"Something went wrong"}),e.jsx("p",{className:"text-lg text-gray-600 mb-8",children:"We're sorry, but something went wrong with your request."})]})}),e.jsx(v,{footer:i,siteName:n,logo:o,socialMediaLinks:l})]})});export{Oe as ErrorBoundary,_e as default};