import{a as ft,b as wt}from"/build/_shared/chunk-OHEW2553.js";import{a as pt,b as gt}from"/build/_shared/chunk-YRRE3DZB.js";import{a as jt,b as mt,c as S,d as g,e as ut,n as ht,u as W,v as F}from"/build/_shared/chunk-WRTB4GZ2.js";import"/build/_shared/chunk-OW52VRSG.js";import{e as bt}from"/build/_shared/chunk-FT6CVJYS.js";import"/build/_shared/chunk-O46BKFWV.js";import"/build/_shared/chunk-ZHPXAORZ.js";import"/build/_shared/chunk-SKVU7MMG.js";import{a as at,b as it,e as nt,f as lt,h as R,i as C,j as K,k as q,l as V,m as st,o as dt,q as ct}from"/build/_shared/chunk-5OH6P3GJ.js";import{a as c}from"/build/_shared/chunk-ZUBD5LGO.js";import{a as _}from"/build/_shared/chunk-ZXLMDTT4.js";import{b as Yt,d as n}from"/build/_shared/chunk-G5WX4PPA.js";var yt=Yt((Zt,xt)=>{xt.exports={}});var Bt=n(jt(),1);var E=n(_(),1),Kt=n(yt(),1);var O=n(_(),1),Nt=n(c(),1),vt=(0,O.createContext)(void 0);function kt({children:t}){let[l,i]=(0,O.useState)(!1);return(0,Nt.jsx)(vt.Provider,{value:[l,i],children:t})}function b(){let t=(0,O.useContext)(vt);if(t===void 0)throw new Error("useTheme must be used within a ThemeProvider");return t}var G=n(_(),1),zt=n(c(),1),St=(0,G.createContext)(void 0);function Dt({children:t}){let[l,i]=(0,G.useState)(!0);return(0,zt.jsx)(St.Provider,{value:[l,i],children:t})}function I(){let t=(0,G.useContext)(St);if(t===void 0)throw new Error("useTheme must be used within a ThemeProvider");return t}var It="/build/_assets/tailwind-ESTTYPAI.css";var j=n(c(),1),Wt=t=>(0,j.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"isolate h-28 w-28 md:h-32 md:w-32",xmlSpace:"preserve",viewBox:"0 0 205.6 205.6",...t,children:[(0,j.jsx)("path",{d:"M0 0h205.6v205.6H0z"}),(0,j.jsx)("path",{fill:"#FFF",d:"M147.3 46.9H59.7v121.7l21.1-29.2v-32h23L119 86.3H80.8V68h51.4z"})]}),Tt=Wt;var x=n(c(),1);function Q({isMenuOpen:t,isGridOn:l,navData:i,setMenuOpen:a}){let r=i?.mobileMenu?.links||[],p=i?.mobileMenuSupportive?.links||[],[m]=I(),[f,h]=b(),u=()=>{a(!t),h(!f)};return(0,x.jsxs)(g.div,{variants:{open:{x:0,transition:{type:"linear",duration:.25}},closed:{x:"-100%",transition:{type:"linear",duration:.25,delay:.25}}},initial:"closed",animate:t?"open":"closed",className:"mobile-menu bg-white fixed z-20 h-full w-screen max-w-screen pt-28 md:hidden",children:[(0,x.jsx)("div",{className:"absolute inset-0 grid h-full w-full grid-cols-4 gap-8 bg-light px-8",children:[...Array(4)].map((d,w)=>(0,x.jsx)(g.div,{variants:{open:{opacity:1,transition:{delay:.25,duration:.25}},closed:{opacity:0,transition:{duration:.25}}},animate:t?"open":"closed",className:m?"bg-grid":"bg-light"},w))}),(0,x.jsxs)(g.nav,{variants:{open:{opacity:1,transition:{delay:.25,duration:.25}},closed:{opacity:0,transition:{duration:.25}}},animate:t?"open":"closed",className:"relative flex h-full flex-col overflow-scroll",children:[(0,x.jsx)("ul",{className:"flex flex-grow flex-col items-start gap-8 px-8 pt-16",children:r&&r.length>0&&r.map((d,w)=>(0,x.jsx)("li",{children:(0,x.jsx)(C,{onClick:()=>a(!t),className:"text-2xl",to:d.slug?d.slug:d.url,target:d.newWindow?"_blank":"_self",children:d.title})},w))}),(0,x.jsxs)("ul",{className:"relative flex flex-col items-start gap-8 px-8 pb-20 pt-16",children:[(0,x.jsx)("li",{children:(0,x.jsx)("button",{onClick:()=>u(),children:"Project Index"})}),p&&p.length>0&&p.map((d,w)=>(0,x.jsx)("li",{children:(0,x.jsx)(C,{onClick:()=>a(!t),to:d.slug?d.slug:d.url,target:d.newWindow?"_blank":"_self",children:d.title})},w))]})]})]})}var A=n(_(),1);var $={open:{y:-20,transition:{duration:.2}},closed:{y:0,transition:{duration:.2}}},U={open:{y:-20,transition:{duration:.2}},closed:{y:0,transition:{duration:.2}}};var y=n(_(),1);var Y=n(c(),1);function T({className:t}){return(0,Y.jsxs)("div",{className:F("fostr-grid absolute z-[-1] h-full w-full px-8",t),children:[[...Array(4)].map((l,i)=>(0,Y.jsx)("div",{className:"h-full w-full bg-grid transition duration-300"},i)),[...Array(4)].map((l,i)=>(0,Y.jsx)("div",{className:"hidden h-full w-full bg-grid transition duration-300 md:block"},i)),[...Array(4)].map((l,i)=>(0,Y.jsx)("div",{className:"hidden h-full w-full bg-grid transition duration-300 lg:block"},i))]})}var e=n(c(),1);function J({projectIndexData:t,categoriesData:l,setIsMobileModalOpen:i}){let a=(0,y.useRef)(null),[r]=b(),[p]=I(),[m,f]=(0,y.useState)(t),[h,u]=(0,y.useState)([]),[d,w]=(0,y.useState)("by-vertical"),[M,v]=(0,y.useState)([]),[L,ot]=(0,y.useState)(!1),[Lt=null,Ct]=(0,y.useState)(null),[rt,Ot]=(0,y.useState)({x:0,y:0}),Gt=N=>{Ot({x:N.clientX,y:N.clientY+a?.current?.scrollTop})};return(0,y.useEffect)(()=>{h.length==0?v(m):v(m.filter(N=>N?.categories?.some(z=>h.includes(z.title))))},[h,m]),(0,y.useEffect)(()=>{r&&document.body.classList.add("overflow-hidden"),r||setTimeout(()=>{document.body.classList.remove("overflow-hidden")},500)},[r]),(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(g.section,{ref:a,onMouseMove:N=>Gt(N),className:"scrollbar-custom dvh-full dark fixed bottom-0  top-0 z-[25] w-full overflow-x-hidden bg-light",variants:{open:{x:0,transition:{type:"linear",duration:.3}},closed:{x:"-100%",transition:{type:"linear",duration:.2,delay:.2}}},initial:"closed",animate:r?"open":"closed",children:[(0,e.jsxs)("div",{className:"fostr-grid absolute z-[-1] h-full w-full px-8",children:[[...Array(4)].map((N,z)=>(0,e.jsx)(g.div,{variants:{open:{opacity:1,transition:{delay:.5,duration:.5}},closed:{opacity:0,transition:{duration:.5}}},animate:r?"open":"closed",className:"h-full w-full bg-grid transition duration-300"},z)),[...Array(4)].map((N,z)=>(0,e.jsx)(g.div,{variants:{open:{opacity:1,transition:{delay:.5,duration:.5}},closed:{opacity:0,transition:{duration:.5}}},animate:r?"open":"closed",className:"hidden h-full w-full bg-grid transition duration-300 md:block"},z)),[...Array(4)].map((N,z)=>(0,e.jsx)(g.div,{variants:{open:{opacity:1,transition:{delay:.5,duration:.5}},closed:{opacity:0,transition:{duration:.5}}},animate:r?"open":"closed",className:"hidden h-full w-full bg-grid transition duration-300 lg:block"},z))]}),(0,e.jsxs)(g.div,{variants:{open:{opacity:1,transition:{delay:.5,duration:.5}},closed:{opacity:0,transition:{duration:.5}}},animate:r?"open":"closed",children:[(0,e.jsxs)("div",{className:"relative pb-32 pt-56 md:pb-64 md:pt-64",children:[p&&(0,e.jsx)(T,{className:""}),(0,e.jsx)(ft,{categories:l,services:[],setFilters:u,filters:h,filtersType:d,setFiltersType:w,projectIndex:!0})]}),(0,e.jsxs)("div",{className:"fostr-grid relative",children:[p&&(0,e.jsx)(T,{className:""}),(0,e.jsx)("p",{className:"col-span-full pb-4 font-secondary text-sm md:col-start-2 md:col-end-5 lg:col-end-7",children:"// Our Clients"}),(0,e.jsxs)("p",{className:"col-span-full hidden pb-4 font-secondary text-sm md:col-start-7 md:block lg:col-start-10 lg:col-end-12 lg:flex lg:justify-end",children:["2009 - ",new Date().getFullYear()]})]}),(0,e.jsxs)("div",{className:"relative border-t pb-32",onMouseEnter:()=>ot(!0),onMouseLeave:()=>ot(!1),children:[p&&(0,e.jsx)(T,{className:""}),M&&(0,e.jsx)(wt,{currImage:Lt,showFloatingImage:L,filteredWork:M,mousePositionX:rt.x,mousePositionY:rt.y}),(0,e.jsx)(ut,{initial:!1,children:M&&M.map((N,z)=>(0,e.jsx)(Ft,{project:N,filteredWork:M,i:z,setCurrImage:Ct,setIsMobileModalOpen:i},N._id))})]})]})]})})}var Ft=({project:t,filteredWork:l,i,setCurrImage:a,setIsMobileModalOpen:r})=>{let[p,m]=(0,y.useState)(!1),{width:f}=W();return(0,e.jsxs)(e.Fragment,{children:[f<768&&(0,e.jsx)($t,{project:t,setIsMobileModalOpen:r,showModal:p,setShowModal:m}),(0,e.jsxs)(g.div,{onClick:()=>{m(!0),r(!0)},onMouseEnter:()=>a(t.mainImage),layout:!0,initial:{opacity:0},animate:{opacity:1,transition:{duration:.3}},exit:{opacity:0},className:`fostr-grid z-30 py-8  md:py-16 ${l.length-1!=i?"border-b":""}`,children:[(0,e.jsxs)("div",{className:"col-span-3 md:col-start-3 md:col-end-5 md:flex md:flex-col md:gap-2 lg:col-end-7",children:[(0,e.jsx)("h2",{children:t?.title?t.title:""}),(0,e.jsx)("p",{className:"col-span-3 hidden font-secondary text-sm md:block",children:t?.subtitle?t?.subtitle:""})]}),(0,e.jsx)("div",{className:"col-start-4 flex items-center justify-end md:hidden",children:(0,e.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:[(0,e.jsx)("rect",{x:"4",y:"6.10352e-05",width:"2",height:"2",fill:"white"}),(0,e.jsx)("rect",{x:"2",y:"6.10352e-05",width:"2",height:"2",fill:"white"}),(0,e.jsx)("rect",{x:"6",y:"6.10352e-05",width:"2",height:"2",fill:"white"}),(0,e.jsx)("rect",{x:"8",y:"6.10352e-05",width:"2",height:"2",fill:"white"}),(0,e.jsx)("rect",{x:"10",y:"6.10352e-05",width:"2",height:"2",fill:"white"}),(0,e.jsx)("rect",{x:"10",y:"2.00006",width:"2",height:"2",fill:"white"}),(0,e.jsx)("rect",{x:"10",y:"4.00006",width:"2",height:"2",fill:"white"}),(0,e.jsx)("rect",{x:"10",y:"6.00006",width:"2",height:"2",fill:"white"}),(0,e.jsx)("rect",{x:"10",y:"8.00006",width:"2",height:"2",fill:"white"}),(0,e.jsx)("rect",{x:"8",y:"2.00006",width:"2",height:"2",fill:"white"}),(0,e.jsx)("rect",{x:"6",y:"4.00006",width:"2",height:"2",fill:"white"}),(0,e.jsx)("rect",{x:"4",y:"6.00006",width:"2",height:"2",fill:"white"}),(0,e.jsx)("rect",{x:"2",y:"8.00006",width:"2",height:"2",fill:"white"}),(0,e.jsx)("rect",{y:"10.0001",width:"2",height:"2",fill:"white"})]})}),(0,e.jsx)("div",{className:"hidden md:col-start-5 md:col-end-7 md:block lg:col-start-7 lg:col-end-10",children:(0,e.jsx)("span",{className:"",children:t?.description?t?.description:""})}),t?.categories?.length>0?(0,e.jsx)("ul",{className:"col-span-3 flex flex-wrap gap-4 pt-4 md:col-start-7 md:col-end-9 md:row-start-1 md:h-10 md:pt-0 lg:col-start-10 lg:col-end-12 lg:justify-end",children:t?.categories?.map((h,u)=>(0,e.jsxs)("li",{className:"font-secondary text-sm",children:[h.title,u<t.categories.length-1?" \u2014":null]},h._id))}):null,(0,e.jsx)("div",{className:"flex items-end justify-end pt-4 font-secondary text-sm md:col-start-2 md:col-end-2 md:row-start-1 md:items-start md:justify-start md:pt-0",children:(0,e.jsx)("span",{className:"",children:t?.date?t?.date?.split("-")[0]:""})})]})]})},$t=({project:t,showModal:l,setShowModal:i,setIsMobileModalOpen:a})=>(0,e.jsx)(g.div,{variants:{open:{x:0,transition:{type:"linear",duration:.5}},closed:{x:"-100%",transition:{type:"linear",duration:.5,delay:.5}}},animate:l?"open":"closed",className:"fixed inset-0 z-[1000] h-screen w-screen bg-light",children:(0,e.jsxs)(g.div,{variants:{open:{opacity:1,transition:{delay:.5,duration:.5}},closed:{opacity:0,transition:{duration:.5}}},animate:l?"open":"closed",children:[(0,e.jsx)(T,{}),(0,e.jsx)(ht,{alt:t.title,layout:"responsive",sizes:["100vw"],src:t.mainImage.asset?._ref,className:"px-8 pt-52"}),(0,e.jsx)("button",{onClick:()=>{i(!1),setTimeout(()=>{a(!1)},500)},className:"absolute right-8 top-8",children:"Close"}),(0,e.jsx)("h3",{className:"px-8 pt-16",children:t.title}),(0,e.jsx)("p",{className:"px-8 pt-2 text-xs",children:t.subtitle}),(0,e.jsx)("p",{className:"px-8 pt-8",children:t.description}),(0,e.jsxs)("div",{className:"flex items-center justify-between px-8 pt-8",children:[t?.categories?.length>0?(0,e.jsx)("ul",{className:"flex flex-wrap gap-4",children:t?.categories?.map((r,p)=>(0,e.jsxs)("li",{className:"font-secondary text-sm",children:[r.title,p<t.categories.length-1?" \u2014":null]},r._id))}):null,(0,e.jsx)("span",{className:"font-secondary text-sm",children:t?.date?t?.date?.split("-")[0]:""})]})]})},t._id);var s=n(c(),1);function Z({navData:t,projectIndexData:l,categoriesData:i}){let a=t?.menu?.links||[],[r,p]=(0,A.useState)(!1),m=(0,A.useRef)(null),[f,h]=(0,A.useState)(!1),[u]=S(),[d,w]=b(),M=()=>{m.current.disabled=!0,setTimeout(()=>{m.current.disabled=!1},750),p(!r)};return(0,A.useEffect)(()=>{if(r)document.body.classList.add("overflow-hidden");else{if(d)return;document.body.classList.remove("overflow-hidden")}},[r]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(R,{className:"fixed left-8 top-0 z-[100] -ml-8 h-28 w-auto md:h-32",to:"/",children:[(0,s.jsx)("span",{className:"sr-only",children:"Fostr - Homepage"}),(0,s.jsx)(Tt,{})]}),(0,s.jsx)("header",{className:`${d?"dark":""} fixed ${f?"z-0":"z-30"}  h-28 w-full mix-blend-exclusion  md:h-32`,children:(0,s.jsxs)("div",{className:"fostr-grid  fixed h-28 w-full md:h-32 ",children:[(0,s.jsx)("nav",{className:"col-start-5 col-end-9 hidden  md:block lg:col-start-7 lg:col-end-13",children:(0,s.jsx)("ul",{className:"flex h-full items-center gap-32  ",children:a?.length>0&&a?.map((v,L)=>L==a.length-2?(0,s.jsx)("li",{className:"flex-grow ",children:(0,s.jsx)(R,{to:v.slug?v.slug:v.url,target:v.newWindow?"_blank":"_self",children:(0,s.jsx)("span",{className:`${d||u=="dark"?"text-dark":"text-light"} mix-blend-exclusion`,children:v.title})})},L):(0,s.jsx)("li",{children:(0,s.jsxs)(R,{className:`${L==a.length-1?"relative":""}`,to:v.slug?v.slug:v.url,target:v.newWindow?"_blank":"_self",children:[(0,s.jsx)("div",{className:`${d||u=="dark"?"bg-dark":"bg-light"} absolute -left-8 top-1/2 h-4 w-4 -translate-y-[5px]  content-[""]`}),(0,s.jsx)("span",{className:`${d||u=="dark"?"text-dark":"text-light"} mix-blend-exclusion`,children:v.title})]})},L))})}),d?(0,s.jsx)("div",{className:`col-start-4 col-end-5 flex w-full justify-end md:hidden ${f?"hidden":""}`,children:(0,s.jsx)("button",{className:`pt-2 text-right ${d||u=="dark"?"text-dark":"text-light"}`,onClick:()=>{w(!1)},children:"Close"})}):(0,s.jsx)("div",{className:"col-start-4 col-end-5 ml-auto w-full self-center md:hidden",children:(0,s.jsx)("button",{ref:m,onClick:M,className:"w-full py-5 focus:outline-none",children:(0,s.jsxs)("div",{className:"relative h-10 w-full overflow-hidden",children:[(0,s.jsx)(g.span,{className:`absolute right-0 top-10 ${d||u=="dark"?"text-dark":"text-light"}`,variants:U,animate:r?"open":"closed",children:"Close"}),(0,s.jsx)(g.span,{className:`absolute right-0 top-0 ${d||u=="dark"?"text-dark":"text-light"}`,variants:$,animate:r?"open":"closed",children:"Menu"})]})})})]})}),(0,s.jsx)(J,{projectIndexData:l,categoriesData:i,isMobileModalOpen:f,setIsMobileModalOpen:h}),(0,s.jsx)(Q,{setMenuOpen:p,isMenuOpen:r,navData:t})]})}var D=n(c(),1);function tt({footData:t}){let{footerMenuOne:l,footerMenuTwo:i}=t;return(0,D.jsxs)("footer",{className:"fostr-grid pb-40 pt-32 md:pb-48",children:[(0,D.jsx)("ul",{className:"col-span-full flex flex-col gap-8 md:col-start-5 md:col-end-7 lg:col-start-7 lg:col-end-10",children:l?.links.length>0&&l?.links.map((a,r)=>(0,D.jsx)("li",{children:(0,D.jsx)(C,{to:a.slug?a.slug:a.url,target:a.newWindow?"_blank":"_self",children:a.title})},r))}),(0,D.jsx)("ul",{className:"col-span-full flex flex-col gap-8 pt-32 md:col-start-7 md:col-end-9 md:pt-0 lg:col-start-10 lg:col-end-13",children:i?.links.length>0&&i?.links.map((a,r)=>(0,D.jsx)("li",{children:(0,D.jsx)(C,{to:a.slug?a.slug:a.url,target:a.newWindow?"_blank":"_self",children:a.title})},r))}),(0,D.jsxs)("div",{className:"col-span-full pt-32 md:col-start-2 md:col-end-5 md:row-start-1 md:pt-0",children:[(0,D.jsx)("div",{className:"",children:"Fostr"}),(0,D.jsx)("div",{className:" pt-8",children:"\xA9IDHL Web Limited t/a Fostr 14218662"})]})]})}var P=n(c(),1);function Ut(){let[t,l]=I(),[i]=b(),[a]=S();return(0,P.jsx)("div",{onClick:()=>l(!t),className:`${i?"dark":""} fixed -right-6 bottom-[111px] z-50 rotate-90 cursor-pointer p-4 mix-blend-exclusion`,children:(0,P.jsxs)("div",{className:"flex text-xs",children:[(0,P.jsx)("span",{className:`mix-blend-exclusion ${a=="dark"?"text-dark":"text-light"}`,children:"Grid \u2014"}),(0,P.jsxs)("div",{className:"w-</span>full relative h-10 w-10 overflow-hidden",children:[(0,P.jsx)(g.span,{className:`absolute right-0 top-10 mix-blend-exclusion ${a=="dark"?"text-dark":"text-light"}`,variants:U,animate:t?"closed":"open",children:"On"}),(0,P.jsx)(g.span,{className:`absolute right-0 top-0 mix-blend-exclusion ${a=="dark"?"text-dark":"text-light"}`,variants:$,animate:t?"closed":"open",children:"Off"})]})]})})}var Pt=Ut;var H=n(_(),1);var X=n(c(),1),Ht=()=>{let[t]=b(),[l]=S(),[i,a]=(0,H.useState)({"Etc/GMT":"","Europe/Paris":"","America/New_York":"","America/Los_Angeles":""});return(0,H.useEffect)(()=>{let r=()=>{let m=["Etc/GMT","Europe/Paris","America/New_York","America/Los_Angeles"];for(let f of m){let h=new Date().toLocaleTimeString("en-US",{timeZone:f,timeStyle:"short",hour12:!1});a(u=>({...u,[f]:h}))}};r();let p=setInterval(r,6e4);return()=>clearInterval(p)},[]),(0,X.jsx)("span",{className:`fixed -left-57 bottom-[231px] z-50 hidden -rotate-90  text-xs md:block ${t?"dark":""} ${t||l=="dark"?"bg-dark":"bg-light"} bg-clip-text text-transparent mix-blend-exclusion`,children:(0,X.jsxs)("span",{className:`${t?"dark":""} ${t||l=="dark"?"bg-dark":"bg-light"} bg-clip-text text-transparent mix-blend-exclusion`,children:[i["Etc/GMT"]," GMT \u2014 ",i["Europe/Paris"]," CET \u2014 ",i["America/New_York"]," EST \u2014 ",i["America/Los_Angeles"]," PST"]})})},Mt=Ht;var B=n(_(),1);var At=n(c(),1);function Xt(){let[t]=S(),{width:l}=W(),[i,a]=(0,B.useState)({x:0,y:0});return(0,B.useEffect)(()=>{let r=p=>{let m=Math.min(p.clientX,window.innerWidth-20);requestAnimationFrame(()=>{a({x:m,y:p.clientY})})};return window.addEventListener("mousemove",r),()=>{window.removeEventListener("mousemove",r)}},[]),l<768?null:(0,At.jsx)(g.div,{animate:{left:i.x-5,top:i.y-7},transition:{top:{duration:.2,transition:{ease:"easeIn"}},left:{duration:.2,transition:{ease:"easeIn"}}},className:` pointer-events-none fixed z-[100] h-4 w-4 mix-blend-exclusion ${t=="light"?"bg-light":"bg-dark"}`})}var _t=Xt;var k=n(c(),1);function et({children:t,rootData:l,categoriesData:i,projectIndexData:a}){let[r]=I(),[p]=S(),[m,f]=b();return(0,k.jsxs)("div",{className:"h-full overflow-hidden",children:[(0,k.jsx)(_t,{}),r&&(0,k.jsx)(T,{}),(0,k.jsx)("a",{className:`${m?"dark":""} absolute z-50 -translate-y-50 bg-light px-4 py-2 transition-transform focus:translate-y-0`,href:"#main-content",children:"Skip to content"}),!m&&(0,k.jsx)(Pt,{}),(0,k.jsx)("button",{onClick:()=>f(!m),className:"fixed -left-17 top-[150px] z-50 hidden -rotate-90 cursor-pointer mix-blend-difference md:block",children:(0,k.jsx)("span",{className:`${m?"dark":""} block ${m||p=="dark"?"text-dark":"text-light"} `,children:"Project \u2014 Index"})}),(0,k.jsx)(Mt,{}),(0,k.jsx)(Z,{navData:l,projectIndexData:a,categoriesData:i}),(0,k.jsx)("main",{id:"main-content",className:"flex flex-grow flex-col overflow-hidden bg-transparent pt-28 md:pt-32",children:t}),(0,k.jsx)(tt,{footData:l})]})}var o=n(c(),1),qt=(0,E.lazy)(()=>import("/build/_shared/VisualEditing-DWPYVR3C.js")),Vt=()=>[{rel:"stylesheet",href:It}];function Qt(){let[t]=S(),[l,i]=b(),{pathname:a}=it();(0,E.useEffect)(()=>{l&&(i(!1),document.body.classList.remove("overflow-hidden"))},[a]),(0,E.useEffect)(()=>{let w=document.createElement("script");w.async=!0,w.defer=!0,w.id="hs-script-loader",w.src="//js-eu1.hs-scripts.com/144957240.js",document.head.appendChild(w)},[]);let{ENV:r,initial:p,query:m,params:f,ipAddress:h}=st(),{data:u,loading:d}=bt(m,f,{initial:p});return d&&!u?(0,o.jsx)("div",{children:"Loading..."}):(0,o.jsxs)("html",{lang:"en",className:F("",t),children:[(0,o.jsxs)("head",{children:[(0,o.jsx)("meta",{charSet:"utf-8"}),(0,o.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,o.jsx)(q,{}),(0,o.jsx)(K,{})]}),(0,o.jsxs)("body",{className:"relative flex min-h-screen max-w-screen flex-col  bg-light font-body text-base transition duration-300",children:[u?(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(gt,{reCaptchaKey:r.RECAPTCHA_SITE_KEY,scriptProps:{async:!1,defer:!0,appendTo:"head",nonce:void 0},children:(0,o.jsx)(et,{rootData:u.navigation,projectIndexData:u.projects,categoriesData:u.categories,children:(0,o.jsx)(lt,{context:h})})})}):null,(0,o.jsx)(ct,{}),(0,o.jsx)("script",{dangerouslySetInnerHTML:{__html:`window.ENV = ${JSON.stringify(r)};`}}),r.SANITY_STUDIO_USE_STEGA?(0,o.jsx)(E.Suspense,{children:(0,o.jsx)(qt,{})}):null,(0,o.jsx)(V,{}),(0,o.jsx)(dt,{}),(0,o.jsx)(pt,{children:()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("script",{src:"https://cdn.cookielaw.org/consent/01910417-becb-7239-ad26-1e31ac1ee7d5/OtAutoBlock.js"}),(0,o.jsx)("script",{src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js","data-domain-script":"01910417-becb-7239-ad26-1e31ac1ee7d5"}),(0,o.jsx)("script",{children:"function OptanonWrapper() "}),(0,o.jsx)("script",{src:"https://www.googletagmanager.com/gtag/js?id=G-GGZQP9K50R&cx=c&_slc=1",async:!0}),(0,o.jsx)("script",{src:"https://www.google-analytics.com/analytics.js",async:!0}),(0,o.jsx)("script",{src:"https://www.googletagmanager.com/gtm.js?id=GTM-KDNDKLG",async:!0})]})})]})]})}function Et(){return(0,o.jsx)(mt,{children:(0,o.jsx)(kt,{children:(0,o.jsx)(Dt,{children:(0,o.jsx)(Qt,{})})})})}function Jt(){let t=nt();return(0,o.jsxs)("html",{children:[(0,o.jsxs)("head",{children:[(0,o.jsx)("title",{children:"Oops!"}),(0,o.jsx)(q,{}),(0,o.jsx)(K,{})]}),(0,o.jsxs)("body",{children:[(0,o.jsx)("h1",{children:at(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:"Unknown Error"}),(0,o.jsx)(V,{})]})]})}export{Jt as ErrorBoundary,Et as default,Vt as links};