module.exports=[80596,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(46271),e=a.i(54760);let f={some:0,all:1};var g=a.i(97895);let h={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}}};a.s(["AnimatedSection",0,function({children:a,className:i,direction:j="up",delay:k=0,duration:l=.6,threshold:m=.1,once:n=!0,variants:o}){let p=(0,c.useRef)(null),q=function(a,{root:b,margin:d,amount:g,once:h=!1,initial:i=!1}={}){let[j,k]=(0,c.useState)(i);return(0,c.useEffect)(()=>{if(!a.current||h&&j)return;let c={root:b&&b.current||void 0,margin:d,amount:g};return function(a,b,{root:c,margin:d,amount:g="some"}={}){let h=(0,e.resolveElements)(a),i=new WeakMap,j=new IntersectionObserver(a=>{a.forEach(a=>{let c=i.get(a.target);if(!!c!==a.isIntersecting)if(a.isIntersecting){let c=b(a.target,a);"function"==typeof c?i.set(a.target,c):j.unobserve(a.target)}else"function"==typeof c&&(c(a),i.delete(a.target))})},{root:c,rootMargin:d,threshold:"number"==typeof g?g:f[g]});return h.forEach(a=>j.observe(a)),()=>j.disconnect()}(a.current,()=>(k(!0),h?void 0:()=>k(!1)),c)},[b,a,d,h,g]),j}(p,{once:n,amount:m}),r=o??h[j];return(0,b.jsx)(d.motion.div,{ref:p,initial:"hidden",animate:q?"visible":"hidden",variants:r,transition:{duration:l,delay:k,ease:"easeOut"},className:(0,g.cn)(i),children:a})}],80596)},18783,a=>{"use strict";let b=(0,a.i(64831).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);a.s(["ArrowRight",0,b],18783)},66491,a=>{"use strict";let b=(0,a.i(64831).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"}]]);a.s(["Phone",0,b],66491)},13412,97546,a=>{"use strict";var b=a.i(64831);let c=(0,b.default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);a.s(["CheckCircle2",0,c],13412);let d=(0,b.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"}]]);a.s(["AlertCircle",0,d],97546)},75160,a=>{"use strict";let b=(0,a.i(64831).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);a.s(["Loader2",0,b],75160)},62591,a=>{"use strict";let b=(0,a.i(64831).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"}]]);a.s(["Mail",0,b],62591)},5522,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(97895);let e=c.forwardRef(({className:a,type:c,...e},f)=>(0,b.jsx)("input",{type:c,className:(0,d.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",a),ref:f,...e}));e.displayName="Input",a.s(["Input",0,e])},86715,a=>{"use strict";async function b(a){let b=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)});if(!b.ok)throw Error((await b.json().catch(()=>({}))).message??`Contact submission failed: ${b.status}`);return b.json()}async function c(a,b,c){let d=new FormData;return d.append("jobTitle",a.jobTitle),d.append("jobSlug",a.jobSlug),d.append("name",a.name),d.append("email",a.email),a.phone&&d.append("phone",a.phone),a.portfolio&&d.append("portfolio",a.portfolio),a.coverLetter&&d.append("coverLetter",a.coverLetter),b&&d.append("cv",b),new Promise((a,b)=>{let e=new XMLHttpRequest;e.upload.addEventListener("progress",a=>{a.lengthComputable&&c&&c(Math.round(a.loaded/a.total*100))}),e.addEventListener("load",()=>{let c={};try{c=JSON.parse(e.responseText)}catch{}e.status>=200&&e.status<300?a(c):b(Error(c.message??`Application submission failed: ${e.status}`))}),e.addEventListener("error",()=>b(Error("Network error. Please check your connection and try again."))),e.addEventListener("abort",()=>b(Error("Upload was cancelled."))),e.open("POST","/api/apply"),e.send(d)})}a.s(["submitContact",0,b,"submitJobApplication",0,c])}];

//# sourceMappingURL=_211r5lm._.js.map