import{a as I}from"/build/_shared/chunk-SSZCMBQQ.js";import"/build/_shared/chunk-YRRE3DZB.js";import{a as $}from"/build/_shared/chunk-I5Q7WLJC.js";import{a as Q,c as R,d as n,h as A,i as B,t as C,v as H}from"/build/_shared/chunk-WRTB4GZ2.js";import"/build/_shared/chunk-OW52VRSG.js";import{e as j}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{i as u,m as M,n as F}from"/build/_shared/chunk-5OH6P3GJ.js";import{a as m}from"/build/_shared/chunk-ZUBD5LGO.js";import{a as G}from"/build/_shared/chunk-ZXLMDTT4.js";import{d as l}from"/build/_shared/chunk-G5WX4PPA.js";var Y=l(Q(),1);var V=l($(),1);var i=l(G(),1),t=l(m(),1);function q({className:c,currentCaseStudyIndex:e,slugsArray:r}){let d=`/work/${r[e+1]}`,h=`/work/${r[e-1]}`;e==0&&(h=`/work/${r[r.length-1]}`),e==r.length-1&&(d=`/work/${r[0]}`);let{scrollYProgress:a,scrollY:f}=B();A(f,"change",()=>{f.get()>.25*window.innerHeight?L(!0):L(!1)});let[p,w]=(0,i.useState)(!1),[g,s]=(0,i.useState)(!1),[T,k]=(0,i.useState)(!1),[E,L]=(0,i.useState)(!1),y=(0,i.useRef)(null),x=(0,i.useRef)(null),v=(0,i.useRef)(null),S=(0,i.useRef)(null),_=(0,i.useRef)(null),D=(0,i.useRef)(null),N=(0,i.useRef)(null),b=(0,i.useRef)(null),P=(0,i.useRef)(null);return(0,i.useEffect)(()=>{T&&(y.current.style.opacity=0,setTimeout(()=>{y.current.style.opacity=1,x.current.style.opacity=0,setTimeout(()=>{x.current.style.opacity=1,v.current.style.opacity=0,setTimeout(()=>{v.current.style.opacity=1,S.current.style.opacity=0,setTimeout(()=>{S.current.style.opacity=1,_.current.style.opacity=0,setTimeout(()=>{_.current.style.opacity=1,D.current.style.opacity=0,setTimeout(()=>{D.current.style.opacity=1,N.current.style.opacity=0,setTimeout(()=>{N.current.style.opacity=1,b.current.style.opacity=0,setTimeout(()=>{b.current.style.opacity=1,P.current.style.opacity=0,setTimeout(()=>{P.current.style.opacity=1},100)},100)},100)},100)},100)},100)},100)},100)},100))},[T]),(0,t.jsxs)(n.div,{animate:{y:E?"-60px":"0",x:"-50%",opacity:E?1:0},className:H("fixed -bottom-20 left-1/2 z-10 flex items-center gap-16 rounded-full bg-dark px-8 py-4",c),children:[(0,t.jsxs)(n.div,{onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),className:"flex items-center gap-4",children:[(0,t.jsxs)("span",{className:"relative flex h-5 w-6 cursor-pointer gap-10 overflow-hidden",children:[(0,t.jsxs)(n.svg,{animate:{x:g?"-100%":"0"},className:"absolute inset-0",width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_1957_1174)",children:[(0,t.jsx)("rect",{x:"2",y:"2",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{y:"4",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{x:"4",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{x:"2",y:"6",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{x:"4",y:"8",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{x:"12",y:"4",width:"2",height:"10",transform:"rotate(90 12 4)",fill:"white"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_1957_1174",children:(0,t.jsx)("rect",{width:"12",height:"10",fill:"white"})})})]}),(0,t.jsxs)(n.svg,{className:"absolute",animate:{x:g?"0":"100%"},width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_1957_1174)",children:[(0,t.jsx)("rect",{x:"2",y:"2",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{y:"4",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{x:"4",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{x:"2",y:"6",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{x:"4",y:"8",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{x:"12",y:"4",width:"2",height:"10",transform:"rotate(90 12 4)",fill:"white"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_1957_1174",children:(0,t.jsx)("rect",{width:"12",height:"10",fill:"white"})})})]})]}),(0,t.jsx)(u,{to:h,className:"whitespace-nowrap text-xs text-light ",children:"Prev Project"})]}),(0,t.jsx)(n.div,{onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:(0,t.jsx)(u,{to:"/work","aria-label":"work page",children:(0,t.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{ref:y,width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{ref:x,x:"4",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{ref:v,x:"8",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{ref:S,y:"4",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{ref:_,x:"4",y:"4",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{ref:D,x:"8",y:"4",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{ref:N,y:"8",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{ref:b,x:"4",y:"8",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{ref:P,x:"8",y:"8",width:"2",height:"2",fill:"white"})]})})}),(0,t.jsxs)(n.div,{onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),className:"flex items-center gap-4",children:[(0,t.jsx)(u,{to:d,className:"whitespace-nowrap text-xs text-light",children:"Next Project"}),(0,t.jsxs)("span",{className:"relative flex h-5 w-6 cursor-pointer gap-4 overflow-hidden",children:[(0,t.jsxs)(n.svg,{className:"absolute",animate:{x:p?"0":"-100%"},width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_1957_1196)",children:[(0,t.jsx)("rect",{x:"8",y:"2",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{x:"10",y:"4",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{x:"6",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{x:"8",y:"6",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{x:"6",y:"8",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{x:"10",y:"4",width:"2",height:"10",transform:"rotate(90 10 4)",fill:"white"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_1957_1196",children:(0,t.jsx)("rect",{width:"12",height:"10",fill:"white"})})})]}),(0,t.jsxs)(n.svg,{className:"absolute",animate:{x:p?"100%":"0"},width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsxs)("g",{clipPath:"url(#clip0_1957_1196)",children:[(0,t.jsx)("rect",{x:"8",y:"2",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{x:"10",y:"4",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{x:"6",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{x:"8",y:"6",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{x:"6",y:"8",width:"2",height:"2",fill:"white"}),(0,t.jsx)("rect",{x:"10",y:"4",width:"2",height:"10",transform:"rotate(90 10 4)",fill:"white"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"clip0_1957_1196",children:(0,t.jsx)("rect",{width:"12",height:"10",fill:"white"})})})]})]})]})]})}var U=q;var o=l(m(),1),z=()=>[{rel:"stylesheet",href:"https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css"}],K=({data:c})=>{let e=c?.initial?.data?.seo||{};return[{title:e.title?e.title:""},{name:"description",content:e.description?e.description:""},{property:"og:title",content:e.ogTitle?e.ogTitle:""},{property:"og:description",content:e.ogDescription?e.ogDescription:""},{property:"og:image",content:e.image?C(e.image).url():""}]};function O(){let[,c]=R();c(()=>"light");let{initial:e,caseStudiesSlugs:r,query:d,params:h}=M(),{data:a,loading:f}=j(d,h,{initial:e}),p=F(),w=r?.findIndex(s=>s.slug.current===h.slug),g=r?.map(s=>s.slug.current);return f&&!a?(0,o.jsx)("div",{children:"Loading..."}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"-mt-28 md:-mt-32",children:a?.caseStudyModules&&a?.caseStudyModules.map(s=>(0,o.jsx)(I,{module:s,categories:a?.categories,services:a?.services,actionData:p},s._key))}),(0,o.jsx)(U,{slugsArray:g,currentCaseStudyIndex:w})]})}function J(){return(0,o.jsxs)("section",{className:"flex flex-grow flex-col items-center justify-center ",children:[(0,o.jsx)("h1",{className:"text-center text-2xl",children:"Opps! 404"}),(0,o.jsx)("p",{className:"text-center",children:"This page doesn't exists!"})]})}export{J as ErrorBoundary,O as default,z as links,K as meta};