1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2471],{11976:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var r=t(51935);let s={name:"circle-user",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],aliases:["user-circle"]};s.node;let a=(0,r.A)(s)},12121:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var r=t(51935);let s={name:"crown",size:24,node:[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]};s.node;let a=(0,r.A)(s)},16353:(e,l,t)=>{"use strict";t.d(l,{A:()=>w});var r=t(37876),s=t(48230),a=t.n(s),i=t(14e3),n=t(23167),o=t(18820),c=t(62822),d=t(64310),m=t(34468),x=t(80196),h=t(93846),u=t(11976),p=t(25561),b=t(12121),f=t(43588);let g=[{label:"Jobs Overview",href:"/dashboard/jobs",icon:n.A},{label:"My Jobs",href:"/jobs/manage",icon:o.A},{label:"Post a Job",href:"/jobs/post",icon:c.A}],j=[{label:"My Applications",href:"/jobs/my-applications",icon:d.A},{label:"Saved Jobs",href:"/jobs/saved",icon:m.A}],v=[{label:"Packages",href:"/jobs/plan",icon:x.A},{label:"Payment History",href:"/jobs/payment-history",icon:h.A}],y=[{label:"Packages",href:"/membership",icon:x.A},{label:"Billing History",href:"/billing-history",icon:h.A}],N=[{label:"Profile",href:"/settings",icon:u.A},{label:"Company Profile",href:"/company/profile",icon:p.A}];function k(e){let{href:l,icon:t,label:s,active:i}=e;return(0,r.jsxs)(a(),{href:l,className:(0,f.cn)("flex items-center gap-3 px-3 py-2.5 rounded-xl text-sm font-medium transition-colors",i?"bg-primary/10 text-primary font-semibold":"text-greyDark hover:bg-greyLight hover:text-secondary"),children:[(0,r.jsx)(t,{size:17,className:i?"text-primary":"text-grey"}),s]})}function w(){let e=(0,i.usePathname)();return(0,r.jsxs)("div",{className:"flex flex-col h-full py-4 px-3 gap-1",children:[(0,r.jsx)("div",{className:"space-y-0.5 mb-4",children:g.map(l=>(0,r.jsx)(k,{...l,active:e===l.href},l.href))}),(0,r.jsx)("p",{className:"text-[10px] font-bold text-grey uppercase tracking-widest px-3 mb-1",children:"Company"}),(0,r.jsx)("div",{className:"space-y-0.5 mb-4",children:N.map(l=>(0,r.jsx)(k,{...l,active:e===l.href},l.href))}),(0,r.jsx)("p",{className:"text-[10px] font-bold text-grey uppercase tracking-widest px-3 mb-1",children:"Manage"}),(0,r.jsx)("div",{className:"space-y-0.5 mb-4",children:j.map(l=>(0,r.jsx)(k,{...l,active:e===l.href},l.href))}),(0,r.jsx)("p",{className:"text-[10px] font-bold text-grey uppercase tracking-widest px-3 mb-1",children:"Job Billing"}),(0,r.jsx)("div",{className:"space-y-0.5 mb-4",children:v.map(l=>(0,r.jsx)(k,{...l,active:e===l.href},l.href))}),(0,r.jsx)("p",{className:"text-[10px] font-bold text-grey uppercase tracking-widest px-3 mb-1",children:"Membership Billing"}),(0,r.jsx)("div",{className:"space-y-0.5 mb-4",children:y.map(l=>(0,r.jsx)(k,{...l,active:e===l.href},l.href))}),(0,r.jsxs)("div",{className:"mt-auto mx-1 rounded-2xl bg-greyLight border border-dividerGrey p-4",children:[(0,r.jsx)(b.A,{size:18,className:"text-yellow-400 mb-2"}),(0,r.jsx)("p",{className:"text-sm font-bold text-secondary leading-snug",children:"Need to post more jobs?"}),(0,r.jsx)("p",{className:"text-xs text-grey mt-1 mb-3 leading-relaxed",children:"Upgrade to a package and post unlimited jobs easily."}),(0,r.jsx)(a(),{href:"/jobs/plan",className:"block w-full py-2 rounded-xl bg-primary text-white text-xs font-semibold text-center hover:bg-primary/90 transition-colors",children:"View Packages"})]})]})}},18820:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var r=t(51935);let s={name:"briefcase",size:24,node:[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]};s.node;let a=(0,r.A)(s)},23167:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var r=t(51935);let s={name:"layout-dashboard",size:24,node:[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]};s.node;let a=(0,r.A)(s)},25561:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var r=t(51935);let s={name:"building-complex",size:24,node:[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}
1],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],aliases:["building-2"]};s.node;let a=(0,r.A)(s)},34468:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var r=t(51935);let s={name:"heart",size:24,node:[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]]};s.node;let a=(0,r.A)(s)},43588:(e,l,t)=>{"use strict";function r(){for(var e=arguments.length,l=Array(e),t=0;t<e;t++)l[t]=arguments[t];return l.filter(Boolean).join(" ")}t.d(l,{cn:()=>r})},46115:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var r=t(51935);let s={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};s.node;let a=(0,r.A)(s)},47716:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var r=t(51935);let s={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};s.node;let a=(0,r.A)(s)},62822:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var r=t(51935);let s={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};s.node;let a=(0,r.A)(s)},64310:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var r=t(51935);let s={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};s.node;let a=(0,r.A)(s)},68340:(e,l,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/jobs/[id]/apply",function(){return t(93009)}])},80196:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var r=t(51935);let s={name:"package",size:24,node:[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]};s.node;let a=(0,r.A)(s)},81012:(e,l,t)=>{"use strict";t.d(l,{A:()=>a});var r=t(37876);t(14232);let s={full_time:{label:"Full Time",className:"bg-bgSkyBlue text-primary"},part_time:{label:"Part Time",className:"bg-secondary/10 text-secondary"},contract:{label:"Contract",className:"bg-greyLight text-greyDark"},internship:{label:"Internship",className:"bg-bgSkyBlue text-secondary"},freelance:{label:"Freelance",className:"bg-green/10 text-green"},temporary:{label:"Temporary",className:"bg-orange-100 text-orange-700"}},a=e=>{var l;let{type:t,size:a="md"}=e,i=null!=(l=s[t])?l:{label:t.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()),className:"bg-greyLight text-greyDark"};return(0,r.jsx)("span",{className:"inline-flex items-center rounded-full font-medium ".concat(i.className," ").concat("sm"===a?"text-xs px-2 py-0.5":"text-xs px-3 py-1"),children:i.label})}},93009:(e,l,t)=>{"use strict";t.r(l),t.d(l,{default:()=>w});var r=t(37876),s=t(14232),a=t(48230),i=t.n(a),n=t(89099);let o=e=>{var l;let{steps:t,currentStep:a}=e;return(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("div",{className:"hidden md:flex items-center",children:t.map((e,l)=>{let i=l<a,n=l===a;return(0,r.jsxs)(s.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsx)("div",{className:"w-9 h-9 rounded-full flex items-center justify-center font-semibold text-sm transition-all ".concat(i?"bg-primary text-white":n?"bg-primary text-white ring-4 ring-bgSkyBlue":"bg-greyLight text-grey border border-dividerGrey"),children:i?(0,r.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})}):l+1}),(0,r.jsx)("span",{className:"mt-2 text-xs font-medium whitespace-nowrap ".concat(n?"text-primary":i?"text-greyDark":"text-grey"),children:e.label})]}),l<t.length-1&&(0,r.jsx)("div",{className:"flex-1 h-0.5 mx-2 mb-5 rounded ".concat(i?"bg-primary":"bg-dividerGrey")})]},l)})}),(0,r.jsxs)("div",{className:"md:hidden flex items-center justify-between",children:[(0,r.jsxs)("span",{className:"text-sm font-semibold text-black",children:["Step ",a+1," of ",t.length]}),(0,r.jsx)("span",{className:"text-sm text-primary font-medium",children:null==(l=t[a])?void 0:l.label})]}),(0,r.jsx)("div",{className:"md:hidden mt-3 w-full bg-greyLight rounded-full h-1.5",children:(0,r.jsx)("div",{className:"bg-primary h-1.5 rounded-full transition-all",style:{width:"".concat((a+1)/t.length*100,"%")}})})]})},c=e=>{let{onFileSelect:l,accept:t=".pdf,.doc,.docx",maxSizeMB:a=5}
1=e,[i,n]=(0,s.useState)(null),[o,c]=(0,s.useState)(!1),[d,m]=(0,s.useState)(null),x=(0,s.useRef)(null);(0,s.useEffect)(()=>(console.log("ResumeUploader mounted"),()=>{console.log("ResumeUploader unmounted")}),[]);let h=(0,s.useCallback)(e=>{if(m(null),e.size>1024*a*1024)return void m("File must be less than ".concat(a,"MB"));console.log("Selected file:",e),n(e),null==l||l(e)},[a,l]);return i?(0,r.jsxs)("div",{className:"flex items-center gap-4 p-4 border border-dividerGrey rounded-2xl bg-offWHite",children:[(0,r.jsx)("div",{className:"w-12 h-12 flex items-center justify-center rounded-xl bg-primary/10",children:(0,r.jsx)("svg",{className:"w-6 h-6 text-primary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-black truncate",children:i.name}),(0,r.jsxs)("p",{className:"text-xs text-grey",children:[(i.size/1024).toFixed(0)," KB"]})]}),(0,r.jsx)("button",{onClick:()=>{n(null),m(null),x.current&&(x.current.value="")},className:"p-2 hover:bg-greyLight rounded-xl transition-colors",children:(0,r.jsx)("svg",{className:"w-4 h-4 text-grey hover:text-red",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}):(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{onDragOver:e=>{e.preventDefault(),c(!0)},onDragLeave:()=>c(!1),onDrop:e=>{e.preventDefault(),c(!1);let l=e.dataTransfer.files[0];l&&h(l)},onClick:()=>{var e;return null==(e=x.current)?void 0:e.click()},className:"cursor-pointer border-2 border-dashed rounded-2xl p-8 text-center transition-colors ".concat(o?"border-primary bg-bgSkyBlue":"border-dividerGrey bg-offWHite hover:border-primary hover:bg-bgSkyBlue/30"),children:(0,r.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,r.jsx)("div",{className:"w-12 h-12 flex items-center justify-center rounded-xl bg-primary/10",children:(0,r.jsx)("svg",{className:"w-6 h-6 text-primary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})})}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:"text-sm font-semibold text-black",children:[(0,r.jsx)("span",{className:"text-primary",children:"Click to upload"})," or drag and drop"]}),(0,r.jsxs)("p",{className:"text-xs text-grey mt-1",children:["PDF, DOC, DOCX up to ",a,"MB"]})]})]})}),(0,r.jsx)("input",{ref:x,type:"file",accept:t,onChange:e=>{var l;let t=null==(l=e.target.files)?void 0:l[0];t&&h(t)},className:"hidden"}),i&&(0,r.jsx)("p",{className:"mt-2 text-sm",children:(0,r.jsx)("p",{children:i.name})}),d&&(0,r.jsx)("p",{className:"mt-2 text-xs text-red",children:d})]})},d=e=>{let{stepper:l,formContent:t,backButton:s,nextButton:a,jobSummary:i}=e;return(0,r.jsx)("div",{className:"min-h-screen bg-offWHite px-4 sm:px-6 pt-20 md:pt-6 pb-16 md:pb-8",children:(0,r.jsxs)("div",{className:"max-w-6xl mx-auto",children:[i&&(0,r.jsx)("div",{className:"mb-6",children:i}),(0,r.jsx)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6 mb-6",children:l}),(0,r.jsx)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-6 mb-6",children:t}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("div",{children:s}),(0,r.jsx)("div",{children:a})]})]})})};var m=t(81220),x=t(14e3),h=t(97685),u=t(54587),p=t.n(u),b=t(81012),f=t(16353),g=t(47716),j=t(46115);let v=[{label:"Personal Info",description:"Basic information"},{label:"Upload Resume",description:"Resume & portfolio"},{label:"Review",description:"Final review"}],y={full_name:"",email:"",phone:"",location:"",current_job_title:"",total_experience:"",portfolio_url:"",linkedin_url:"",github_url:"",cover_letter:"",resume:null,confirm:!0},N="w-full px-4 py-3 border border-dividerGrey rounded-xl text-sm text-black bg-white focus:outline-none focus:border-primary transition-colors placeholder:text-grey",k="block text-sm font-medium text-greyDark mb-1.5";function w(){var e,l,t,a,u,w,_,A,C;
1let L=(0,x.useParams)().id||"",[M,z]=(0,s.useState)(0),[S,B]=(0,s.useState)(y),[P,D]=(0,s.useState)(!1),[G,H]=(0,s.useState)({}),E=(0,n.useRouter)(),[W,T]=(0,s.useState)(!1),[q,F]=(0,s.useState)(null);(0,s.useEffect)(()=>{(async()=>{var e;let l=await (0,m.xH)(L),t=null==l||null==(e=l.content)?void 0:e.post;console.log(l,"response"),F(t||null)})()},[L]);let V=(e,l)=>B(t=>({...t,[e]:l})),R=async()=>{if(M<v.length-1){if(0==M){let e=function(e){let l={};return e.full_name.trim()||(l.full_name="Full Name is required"),e.email||(l.email="Email is required"),e.phone.trim()||(l.phone="Phone is required"),e.location.trim()||(l.location="Location is required"),l}(S);if(Object.keys(e).length>0)return void H(e);H({})}if(1==M){let e=function(e){let l={};return e.resume||(l.resume="Resume is required"),l}(S);if(Object.keys(e).length>0)return void H(e);H({})}z(e=>e+1)}else{let e=function(e){let l={};return e.full_name.trim()||(l.full_name="Full Name is required"),e.email||(l.email="Email is required"),e.phone.trim()||(l.phone="Phone is required"),e.location.trim()||(l.location="Location is required"),e.confirm||(l.confirm="Terms & Conditions is required"),l}(S);if(Object.keys(e).length>0){console.log(e,"errs"),H(e);return}H({}),console.log(S);try{await (0,m.c2)(L,S),h.Ay.success("Applied successfully"),D(!0),E.push("/jobs/my-applications")}catch(e){console.log(e),h.Ay.error("Something went wrong")}}};if(P)return(0,r.jsx)("div",{className:"min-h-screen bg-offWHite flex items-center justify-center px-4",children:(0,r.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-10 text-center max-w-md w-full",children:[(0,r.jsx)("div",{className:"w-16 h-16 bg-green-50 rounded-full flex items-center justify-center mx-auto mb-4",children:(0,r.jsx)("svg",{className:"w-8 h-8 text-green",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),(0,r.jsx)("h2",{className:"text-xl font-bold text-black mb-2",children:"Application Submitted!"}),(0,r.jsxs)("p",{className:"text-sm text-grey mb-6",children:["Your application for"," ",(0,r.jsx)("span",{className:"text-black font-medium",children:null==q?void 0:q.job_title})," at"," ",(0,r.jsx)("span",{className:"text-black font-medium",children:null==q||null==(A=q.company)?void 0:A.company_name})," ","has been submitted successfully."]}),(0,r.jsxs)("div",{className:"flex gap-3",children:[(0,r.jsx)(i(),{href:"/jobs/my-applications",className:"flex-1 py-3 bg-primary text-white text-sm font-semibold text-center rounded-xl hover:opacity-90 transition-colors",children:"Track Application"}),(0,r.jsx)(i(),{href:"/jobs",className:"flex-1 py-3 border border-dividerGrey text-greyDark text-sm font-semibold text-center rounded-xl hover:border-primary hover:text-primary transition-colors",children:"Browse More Jobs"})]})]})});let O=(0,r.jsxs)("div",{className:"bg-white border border-dividerGrey rounded-2xl p-4 flex items-center gap-4",children:[(0,r.jsx)("div",{className:"w-12 h-12 rounded-xl bg-primary flex items-center justify-center text-white font-bold flex-shrink-0",children:(null==q||null==(e=q.company)?void 0:e.logo_url)?(0,r.jsx)(p(),{width:300,height:300,src:String(q.company.logo_url),alt:"Company Logo",className:"w-full h-full rounded-2xl object-cover"}):(0,r.jsx)("span",{children:(null==q||null==(t=q.company)||null==(l=t.company_name)?void 0:l.split(" ").map(e=>e[0]).join("").slice(0,2).toUpperCase())||"NA"})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("p",{className:"font-semibold text-sm text-black",children:"Apply for"}),(0,r.jsx)("p",{className:"text-base font-bold text-black truncate",children:null==q?void 0:q.job_title}),(0,r.jsxs)("p",{className:"text-xs text-grey",children:[null==q||null==(a=q.company)?void 0:a.company_name," \xb7 ",null==q||null==(u=q.location)?void 0:u.address]})]}),(0,r.jsxs)("div",{className:"text-right hidden sm:block",children:[(0,r.jsx)(b.A,{type:null!=(C=null==q?void 0:q.job_type)?C:"unknown",size:"sm"}),(0,r.jsxs)("p",{className:"text-sm font-semibold text-green",children:["$",null==q||null==(w=q.salary)?void 0:w.min_salary," - $",null==q||null==(_=q.salary)?void 0:_.max_salary]})]})]}),I=M>0?(0,r.jsxs)("button",{onClick:()=>z(e=>Math.max(0,e-1)),className:"flex items-center gap-2 px-6 py-3 rounded-xl border border-dividerGrey text-greyDark text-sm font-semibold hover:border-primary hover:text-primary transition-colors",children:[(0,r.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),"Back"]}):(0,r.jsxs)(i(),{href:"/jobs/".concat(L),className:"flex items-center gap-2 px-6 py-3 rounded-xl border border-dividerGrey text-greyDark text-sm font-semibold hover:border-primary hover:text-primary transition-colors",children:[(0,r.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})}),"Cancel"]}),J=(0,r.jsxs)("button",{onClick:R,className:"flex items-center gap-2 px-8 py-3 bg-primary hover:opacity-90 text-white text-sm font-semibold rounded-xl transition-colors",children:[M===v.length-1?"Submit Application":"Next",(0,r.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]});return(0,r.jsxs)("div",{className:"min-h-screen bg-offWHite flex",children:[W&&(0,r.jsx)("div",{className:"fixed inset-0 z-40 bg-black/40 md:hidden",onClick:()=>T(!1)}),(0,r.jsxs)("aside",{className:"\n fixed top-0 bottom-[55px] left-0 z-50 w-64 bg-white border-r border-b border-dividerGrey\n flex flex-col overflow-y-auto\n transform transition-transform duration-300 ease-in-out\n md:hidden\n ".concat(W?"translate-x-0":"-translate-x-full","\n "),children:[(0,r.jsxs)("div",{className:"flex items-center justify-between p-3 border-b border-dividerGrey",children:[(0,r.jsx)(i(),{href:"/",children:(0,r.jsx)(p(),{width:300,height:300,src:"/images/headerLogo.jpg",alt:"
1Velaflow",className:"h-8 w-auto"})}),(0,r.jsx)("button",{onClick:()=>T(!1),className:"p-1.5 rounded-lg hover:bg-greyLight text-greyDark transition-colors","aria-label":"Close menu",children:(0,r.jsx)(g.A,{className:"w-5 h-5"})})]}),(0,r.jsx)(f.A,{})]}),(0,r.jsx)("aside",{className:"hidden md:flex flex-col w-64 bg-white border-r border-dividerGrey min-h-screen sticky top-0 h-screen overflow-y-auto",children:(0,r.jsx)(f.A,{})}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsxs)("div",{className:"fixed top-0 left-0 w-full h-[61px] bg-white shadow-md z-30 px-4 flex items-center justify-between md:hidden",children:[(0,r.jsx)("button",{onClick:()=>T(!0),className:"p-1.5 rounded-lg hover:bg-greyLight text-greyDark transition-colors","aria-label":"Open menu",children:(0,r.jsx)(j.A,{className:"w-5 h-5"})}),(0,r.jsx)(i(),{href:"/",children:(0,r.jsx)(p(),{width:300,height:300,src:"/images/headerLogo.jpg",alt:"Velaflow",className:"h-8 w-auto"})}),(0,r.jsx)("div",{className:"w-8"})," "]}),(0,r.jsx)(d,{jobSummary:O,stepper:(0,r.jsx)(o,{steps:v,currentStep:M}),formContent:(()=>{switch(M){case 0:return(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("h3",{className:"text-base font-semibold text-black",children:"Personal Information"}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:k,children:"Full Name *"}),(0,r.jsx)("input",{className:N,value:S.full_name,onChange:e=>V("full_name",e.target.value),placeholder:"John Doe"}),G.full_name&&(0,r.jsx)("p",{className:"text-red-500 text-sm mt-1 field_err",children:G.full_name})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:k,children:"Email *"}),(0,r.jsx)("input",{className:N,value:S.email,onChange:e=>V("email",e.target.value),type:"email",placeholder:"[email protected]"}),G.email&&(0,r.jsx)("p",{className:"text-red-500 text-sm mt-1 field_err",children:G.email})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:k,children:"Phone *"}),(0,r.jsx)("input",{className:N,value:S.phone,onChange:e=>V("phone",e.target.value),placeholder:"+1 (555) 123-4567"}),G.phone&&(0,r.jsx)("p",{className:"text-red-500 text-sm mt-1 field_err",children:G.phone})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:k,children:"Location *"}),(0,r.jsx)("input",{className:N,value:S.location,onChange:e=>V("location",e.target.value),placeholder:"City, State or Remote"}),G.location&&(0,r.jsx)("p",{className:"text-red-500 text-sm mt-1 field_err",children:G.location})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:k,children:"Current Job Title"}),(0,r.jsx)("input",{className:N,value:S.current_job_title,onChange:e=>V("current_job_title",e.target.value),placeholder:"Senior Developer"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:k,children:"Total Experience"}),(0,r.jsx)("select",{className:N,value:S.total_experience,onChange:e=>V("total_experience",e.target.value),children:["< 1 Year","1-2 Years","2-5 Years","5+ Years","10+ Years"].map(e=>(0,r.jsx)("option",{children:e},e))})]})]})]});case 1:return(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-base font-semibold text-black mb-4",children:"Upload Resume"}),(0,r.jsx)(c,{onFileSelect:e=>V("resume",e)}),G.resume&&(0,r.jsx)("p",{className:"text-red-500 text-sm mt-1 field_err",children:G.resume})]}),(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)("h3",{className:"text-base font-semibold text-black",children:"Portfolio & Links"}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:k,children:"Portfolio Website"}),(0,r.jsx)("input",{className:N,value:S.portfolio_url,onChange:e=>V("portfolio_url",e.target.value),placeholder:"https://yourportfolio.com"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:k,children:"LinkedIn Profile"}),(0,r.jsx)("input",{className:N,value:S.linkedin_url,onChange:e=>V("linkedin_url",e.target.value),placeholder:"https://linkedin.com/in/..."})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:k,children:"GitHub Profile"}),(0,r.jsx)("input",{className:N,value:S.github_url,onChange:e=>V("github_url",e.target.value),placeholder:"https://github.com/..."})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{className:k,children:"Cover Letter (optional)"}),(0,r.jsx)("textarea",{className:"".concat(N," h-28 resize-none"),value:S.cover_letter,onChange:e=>V("cover_letter",e.target.value),placeholder:"Tell us why you're a great fit for this role..."})]})]})]});case 2:return(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsx)("h3",{className:"text-base font-semibold text-black",children:"Review Your Application"}),[{title:"Personal Info",fields:[{label:"Full Name",value:S.full_name},{label:"Email",value:S.email},{label:"Phone",value:S.phone},{label:"Location",value:S.location},{label:"Experience",value:S.total_experience}]},{title:"Work Experience",fields:[{label:"Title",value:S.current_job_title},{label:"Total Experience",value:S.total_experience}]},{title:"Links",fields:[{label:"Portfolio",value:S.portfolio_url},{label:"LinkedIn",value:S.linkedin_url},{label:"GitHub",value:S.github_url}]}].map(e=>(0,r.jsxs)("div",{className:"border border-dividerGrey rounded-2xl p-5",children:[(0,r.jsx)("p",{className:"text-sm font-semibold text-black mb-3",children:e.title}),(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:e.fields.map(e=>(0,r.jsxs)("div",{children:[(0,r.jsxs)("span",{className:"text-xs text-grey",children:[e.label,": "]}),(0,r.jsx)("span",{className:"text-xs font-medium text-greyDark",children:e.value||"â"})]},e.label))})]},e.title)),(0,r.jsxs)("label",{className:"flex items-start gap-3 cursor-pointer",children:[(0,r.jsx)("input",{type:"checkbox",checked:S.confirm,onChange:e=>V("confirm",e.target.value),className:"mt-0.5 w-4 h-4 accent-primary"}),(0,r.jsxs)("span",{className:"text-sm text-greyDark",children:["I confirm that all information provided is accurate and I agree to the"," ",(0,r.jsx)("span",{className:"text-primary hover:underline cursor-pointer",children:"Terms & Conditions"}),"."]})]}),G.confirm&&(0,r.jsx)("p",{className:"text-red-500 text-sm mt-1 field_err",children:G.confirm})]});default:return null}})(),backButton:I,nextButton:J})]})]})}}},e=>{e.O(0,[377,636,6593,8792],()=>e(e.s=68340)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.