(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,49059,e=>{"use strict";var t=e.i(43476),i=e.i(71645),a=e.i(46932),r=e.i(49652);let n={some:0,all:1};var o=e.i(47163);let s={up:{hidden:{opacity:0,y:32},visible:{opacity:1,y:0}},down:{hidden:{opacity:0,y:-32},visible:{opacity:1,y:0}},left:{hidden:{opacity:0,x:-32},visible:{opacity:1,x:0}},right:{hidden:{opacity:0,x:32},visible:{opacity:1,x:0}},fade:{hidden:{opacity:0},visible:{opacity:1}}};e.s(["AnimatedSection",0,function({children:e,className:l,direction:c="up",delay:d=0,duration:p=.6,threshold:u=.1,once:f=!0,variants:h}){let y=(0,i.useRef)(null),m=function(e,{root:t,margin:a,amount:o,once:s=!1,initial:l=!1}={}){let[c,d]=(0,i.useState)(l);return(0,i.useEffect)(()=>{if(!e.current||s&&c)return;let i={root:t&&t.current||void 0,margin:a,amount:o};return function(e,t,{root:i,margin:a,amount:o="some"}={}){let s=(0,r.resolveElements)(e),l=new WeakMap,c=new IntersectionObserver(e=>{e.forEach(e=>{let i=l.get(e.target);if(!!i!==e.isIntersecting)if(e.isIntersecting){let i=t(e.target,e);"function"==typeof i?l.set(e.target,i):c.unobserve(e.target)}else"function"==typeof i&&(i(e),l.delete(e.target))})},{root:i,rootMargin:a,threshold:"number"==typeof o?o:n[o]});return s.forEach(e=>c.observe(e)),()=>c.disconnect()}(e.current,()=>(d(!0),s?void 0:()=>d(!1)),i)},[t,e,a,s,o]),c}(y,{once:f,amount:u}),b=h??s[c];return(0,t.jsx)(a.motion.div,{ref:y,initial:"hidden",animate:m?"visible":"hidden",variants:b,transition:{duration:p,delay:d,ease:"easeOut"},className:(0,o.cn)(l),children:e})}],49059)},68877,e=>{"use strict";let t=(0,e.i(56420).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,t],68877)},75387,e=>{"use strict";let t=(0,e.i(56420).default)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);e.s(["Phone",0,t],75387)},51757,99847,e=>{"use strict";var t=e.i(56420);let i=(0,t.default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",0,i],51757);let a=(0,t.default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",0,a],99847)},32781,e=>{"use strict";let t=(0,e.i(56420).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",0,t],32781)},96315,e=>{"use strict";let t=(0,e.i(56420).default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Mail",0,t],96315)},23750,e=>{"use strict";var t=e.i(43476),i=e.i(71645),a=e.i(47163);let r=i.forwardRef(({className:e,type:i,...r},n)=>(0,t.jsx)("input",{type:i,className:(0,a.cn)("flex h-11 w-full rounded-full border border-neutral-200 bg-white px-5 py-2 text-sm","ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium","placeholder:text-neutral-400","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","transition-shadow duration-200",e),ref:n,...r}));r.displayName="Input",e.s(["Input",0,r])},55057,e=>{"use strict";async function t(e){let t=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw Error((await t.json().catch(()=>({}))).message??`Contact submission failed: ${t.status}`);return t.json()}async function i(e,t,i){let a=new FormData;return a.append("jobTitle",e.jobTitle),a.append("jobSlug",e.jobSlug),a.append("name",e.name),a.append("email",e.email),e.phone&&a.append("phone",e.phone),e.portfolio&&a.append("portfolio",e.portfolio),e.coverLetter&&a.append("coverLetter",e.coverLetter),t&&a.append("cv",t),new Promise((e,t)=>{let r=new XMLHttpRequest;r.upload.addEventListener("progress",e=>{e.lengthComputable&&i&&i(Math.round(e.loaded/e.total*100))}),r.addEventListener("load",()=>{let i={};try{i=JSON.parse(r.responseText)}catch{}r.status>=200&&r.status<300?e(i):t(Error(i.message??`Application submission failed: ${r.status}`))}),r.addEventListener("error",()=>t(Error("Network error. Please check your connection and try again."))),r.addEventListener("abort",()=>t(Error("Upload was cancelled."))),r.open("POST","/api/apply"),r.send(a)})}e.s(["submitContact",0,t,"submitJobApplication",0,i])}]);