1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6591],{78560:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/jobs/apply",function(){return a(71158)}])},36628:function(e,t){"use strict";let a=async(e,t,a)=>{try{let l=new AbortController,r=setTimeout(()=>l.abort(),5e3),s=await fetch("".concat("https://apiblog.cloudastra.co","/data/?e_id=").concat(e,"&page=").concat(t,"&datetime=").concat(a),{method:"POST",headers:{"Content-Type":"application/json"},signal:l.signal});clearTimeout(r),s.ok||console.error("Failed to post data:",s.status)}catch(e){"AbortError"!==e.name&&console.error("Error posting data:",e)}};t.Z=a},55023:function(e,t,a){"use strict";a.d(t,{cn:function(){return s}});var l=a(90512),r=a(98388);function s(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,r.m6)((0,l.W)(t))}},71158:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return Z}});var l=a(85893),r=a(36628),s=a(67294),i=a(5982),n=a(34001),o=a(3424),d=a(2112),c=a(55023);let u=i.fC;i.ZA;let m=i.B4,x=s.forwardRef((e,t)=>{let{className:a,children:r,...s}=e;return(0,l.jsxs)(i.xz,{ref:t,className:(0,c.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...s,children:[r,(0,l.jsx)(i.JO,{asChild:!0,children:(0,l.jsx)(o.Z,{className:"h-4 w-4 opacity-50"})})]})});x.displayName=i.xz.displayName;let p=s.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,l.jsx)(i.u_,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...r,children:(0,l.jsx)(d.Z,{className:"h-4 w-4"})})});p.displayName=i.u_.displayName;let h=s.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,l.jsx)(i.$G,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...r,children:(0,l.jsx)(o.Z,{className:"h-4 w-4"})})});h.displayName=i.$G.displayName;let f=s.forwardRef((e,t)=>{let{className:a,children:r,position:s="popper",...n}=e;return(0,l.jsx)(i.h_,{children:(0,l.jsxs)(i.VY,{ref:t,className:(0,c.cn)("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]","popper"===s&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:s,...n,children:[(0,l.jsx)(p,{}),(0,l.jsx)(i.l_,{className:(0,c.cn)("p-1","popper"===s&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,l.jsx)(h,{})]})})});f.displayName=i.VY.displayName;let b=s.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,l.jsx)(i.__,{ref:t,className:(0,c.cn)("px-2 py-1.5 text-sm font-semibold",a),...r})});b.displayName=i.__.displayName;let g=s.forwardRef((e,t)=>{let{className:a,children:r,...s}=e;return(0,l.jsxs)(i.ck,{ref:t,className:(0,c.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...s,children:[(0,l.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,l.jsx)(i.wU,{children:(0,l.jsx)(n.Z,{className:"h-4 w-4"})})}),(0,l.jsx)(i.eT,{children:r})]})});g.displayName=i.ck.displayName;let y=s.forwardRef((e,t)=>{let{className:a,...r}=e;return(0,l.jsx)(i.Z0,{ref:t,className:(0,c.cn)("-mx-1 my-1 h-px bg-muted",a),...r})});y.displayName=i.Z0.displayName;var v=a(51332),j=a(85369),w=a(56312),N=a(69260),k=a.n(N),_=a(9008),F=a.n(_),D=a(11163),C=a(87536),S=a(92106);let P=S.Ry({name:S.Z_().min(1,"Required*").min(2,"Name must be at least 2 characters long").regex(/^[A-Za-z\s]+$/,"
1Name should contain only letters and spaces").transform(e=>e.trim()),email:S.Z_().min(1,"Required*").email("Invalid email address"),phone:S.Z_().optional().refine(e=>!e||/^[\d\s\-\(\)\+]+$/.test(e.trim()),"Please enter a valid phone number"),linkdine:S.Z_().optional(),department:S.Z_().min(1,"Please select a department*"),coverletter:S.Z_().optional().refine(e=>{if(!e||""===e.trim())return!0;let t=e.trim().split(/\s+/).filter(e=>e.length>0).length;return t<=300},"Cover letter must be 300 words or less"),resume:S.Yj().refine(e=>(null==e?void 0:e.length)>0,"Required*").refine(e=>{var t;return(null==e?void 0:null===(t=e[0])||void 0===t?void 0:t.size)<=5242880},"File size should be less than 5MB").refine(e=>{var t;return(null==e?void 0:null===(t=e[0])||void 0===t?void 0:t.type)==="application/pdf"},"Please upload PDF files only")}),E=[{value:"frontend",label:"Frontend Development"},{value:"backend",label:"Backend Development"},{value:"devops",label:"DevOps & Cloud"},{value:"ui-ux",label:"UI/UX Design"},{value:"analytics",label:"Data Analytics"},{value:"marketing",label:"Digital Marketing"},{value:"tech-sales",label:"Technical Sales"},{value:"fullstack",label:"Full Stack Development"},{value:"mobile",label:"Mobile Development"},{value:"ai-ml",label:"AI/ML Development"}],T=()=>{let[e,t]=(0,s.useState)(!1),[a,i]=(0,s.useState)(""),[o,d]=(0,s.useState)(!1),[c,p]=(0,s.use
1State)(!1),[h,b]=(0,s.useState)("success"),[y,N]=(0,s.useState)(null),[_,S]=(0,s.useState)(!1),T=(0,s.useRef)(null),{register:Z,handleSubmit:R,formState:{errors:z,isSubmitting:A},reset:M,setValue:q,watch:B}=(0,C.cI)({resolver:(0,w.F)(P),defaultValues:{name:"",email:"",phone:"",linkdine:"",department:"",coverletter:""},reValidateMode:"onChange"}),I=async e=>{t(!0);let a=new FormData;a.append("Name",e.name),a.append("Email",e.email),a.append("Phone",e.phone||""),a.append("Linkedin",e.linkdine||""),a.append("Department",e.department),a.append("Cover",e.coverletter||"");let l=e.resume;l&&l.length>0&&a.append("Resume",l[0]);try{let e=await fetch("/api/jobs/apply",{method:"POST",body:a}),l=await e.json().catch(()=>({}));e.ok&&l.success?(t(!1),b("success"),p(!0),i("Your application has been submitted successfully!"),d(!0),setTimeout(()=>{d(!1),p(!1)},5e3),M(),N(null),T.current&&(T.current.value="")):(t(!1),b("error"),p(!0),i(l.error||l.message||"Error submitting application. Please try again!"),d(!0),setTimeout(()=>{d(!1),p(!1)},5e3))}catch(e){console.log(e),t(!1),i("Error submitting application. Please try again later!"),b("error"),p(!0),d(!0),setTimeout(()=>{d(!1),p(!1)},5e3)}},O=e=>{let t=e.target.files;if(t&&t.length>0){let a=t[0];if(a.size>5242880){alert("File size should be less than 5MB"),e.target.value="",q("resume",null),N(null);return}if(!["application/pdf"].includes(a.type)){alert("Please upload PDF files only"),e.target.value="",q("resume",null),N(null);return}N(a),q("resume",t)}else N(null),q("resume",null)},V=(0,D.useRouter)();return(0,s.useEffect)(()=>{S(!0)},[]),(0,s.useEffect)(()=>{let e=sessionStorage.getItem("E_Id");if(null!==e){let t=new Date,a=t.getDate()+"/"+(t.getMonth()+1)+"/"+t.getFullYear()+" @"+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds();(0,r.Z)(e,V.pathname,a)}},[V.pathname]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(F(),{children:[(0,l.jsx)("title",{children:"Apply Now at Cloudastra - Shape the Future of IT Services"}),(0,l.jsx)("meta",{name:"description",content:"Take the first step in shaping the future of digital transformation. Apply for rewarding careers at Cloudastra, where innovation meets excellence."}),(0,l.jsx)("link",{rel:"canonical",href:"".concat("https://cloudastra.co","/jobs/apply")})]}),(0,l.jsx)("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 via-white to-indigo-50",children:(0,l.jsx)("div",{className:"container mx-auto py-16",children:(0,l.jsxs)("div",{className:"mx-auto mt-10 max-w-4xl",children:[(0,l.jsxs)("div",{className:"mb-12 text-center",children:[(0,l.jsx)("h1",{className:"mb-6 text-2xl font-bold text-gray-900 md:text-5xl",children:"Join Our Team"}),(0,l.jsx)("p",{className:"mx-auto max-w-2xl text-sm text-gray-600 md:text-xl",children:"Be part of a dynamic team that's shaping the future of technology. We're looking for passionate individuals to join Cloudastra's growing family."})]}),(0,l.jsxs)("div",{className:"rounded-3xl bg-white p-4 shadow-2xl md:p-8 lg:p-12",children:[(0,l.jsxs)("div",{className:"mb-8",children:[(0,l.jsx)("h2",{className:"mb-2 text-center text-2xl font-bold text-gray-900 md:text-3xl",children:"Application Form"}),(0,l.jsx)("p",{className:"text-center text-sm text-gray-600 md:text-base",children:"Tell us about yourself and why you'd be a great fit for our team."})]}),(0,l.jsxs)("form",{onSubmit:R(I),className:"space-y-6",children:[(0,l.jsxs)("div",{className:"mb-4 text-sm text-gray-600",children:[(0,l.jsx)("span",{className:"text-red-500",children:"*"})," required"]}),(0,l.jsxs)("div",{className:"grid gap-6 md:grid-cols-2",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{htmlFor:"name",className:"mb-2 block text-sm font-semibold text-gray-700",children:["Full Name",(0,l.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,l.jsx)("input",{id:"name",className:"w-full rounded-lg border border-gray-300 px-4 py-3 transition-all duration-200 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500 [&:-webkit-autofill]:bg-white [&:-webkit-autofill]:text-gray-900 [&:-webkit-autofill]:shadow-[0_0_0_1000px_white_inset]",type:"text",placeholder:"Enter your full name","aria-required":"true","aria-invalid":z.name?"true":"false","aria-describedby":z.name?"name-error":void 0,...Z("name")}
1),z.name&&(0,l.jsx)("div",{id:"name-error",className:"mt-1 text-sm text-red-500",role:"alert",children:z.name.message})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{htmlFor:"email",className:"mb-2 block text-sm font-semibold text-gray-700",children:["Email Address ",(0,l.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,l.jsx)("input",{id:"email",className:"w-full rounded-lg border border-gray-300 px-4 py-3 transition-all duration-200 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500 [&:-webkit-autofill]:bg-white [&:-webkit-autofill]:text-gray-900 [&:-webkit-autofill]:shadow-[0_0_0_1000px_white_inset]",type:"email",placeholder:"[email protected]","aria-required":"true","aria-invalid":z.email?"true":"false","aria-describedby":z.email?"email-error":void 0,...Z("email")}),z.email&&(0,l.jsx)("div",{id:"email-error",className:"mt-1 text-sm text-red-500",role:"alert",children:z.email.message})]})]}),(0,l.jsxs)("div",{className:"grid gap-6 md:grid-cols-2",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{htmlFor:"phone",className:"mb-2 block text-sm font-semibold text-gray-700",children:"Phone Number"}),(0,l.jsx)("input",{id:"phone",className:"w-full rounded-lg border border-gray-300 px-4 py-3 transition-all duration-200 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500 [&:-webkit-autofill]:bg-white [&:-webkit-autofill]:text-gray-900 [&:-webkit-autofill]:shadow-[0_0_0_1000px_white_inset]",type:"tel",placeholder:"+1 (555) 123-4567",...Z("phone")}),z.phone&&(0,l.jsx)("div",{className:"mt-1 text-sm text-red-500",children:z.phone.message})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{htmlFor:"linkdine",className:"mb-2 block text-sm font-semibold text-gray-700",children:"LinkedIn Profile"}),(0,l.jsx)("input",{id:"linkdine",className:"w-full rounded-lg border border-gray-300 px-4 py-3 transition-all duration-200 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500 [&:-webkit-autofill]:bg-white [&:-webkit-autofill]:text-gray-900 [&:-webkit-autofill]:shadow-[0_0_0_1000px_white_inset]",type:"url",placeholder:"https://linkedin.com/in/yourprofile",...Z("linkdine")}),z.linkdine&&(0,l.jsx)("div",{className:"mt-1 text-sm text-red-500",children:z.linkdine.message})]})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{htmlFor:"department",className:"mb-2 block text-sm font-semibold text-gray-700",children:["Department/Position ",(0,l.jsx)("span",{className:"text-red-500",children:"*"})]}),_?(0,l.jsxs)(u,{value:B("department"),onValueChange:e=>{q("department",e)},children:[(0,l.jsx)(x,{id:"department",className:"w-full rounded-lg border border-gray-300 bg-white px-4 py-6 transition-all duration-200 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500 [&:-webkit-autofill]:bg-white [&:-webkit-autofill]:text-gray-900 [&:-webkit-autofill]:shadow-[0_0_0_1000px_white_inset]","aria-required":"true","aria-invalid":z.department?"true":"false","aria-describedby":z.department?"department-error":void 0,children:(0,l.jsx)(m,{placeholder:"Select a department"})}),(0,l.jsx)(f,{children:E.map(e=>(0,l.jsx)(g,{value:e.value,children:e.label},e.value))})]}):(0,l.jsx)("div",{className:"w-full rounded-lg border border-gray-300 bg-white px-4 py-6 text-sm text-muted-foreground",children:"Select a department"}),z.department&&(0,l.jsx)("div",{id:"department-error",className:"mt-1 text-sm text-red-500",role:"alert",children:z.department.message})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{htmlFor:"resume",className:"mb-2 block text-sm font-semibold text-gray-700",children:["Resume/CV ",(0,l.jsx)("span",{className:"text-red-500",children:"*"})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("input",{ref:T,id:"resume",type:"file",accept:".pdf",className:"hidden",onChange:O,"aria-required":"true","aria-invalid":z.resume?"true":"false","aria-describedby":z.resume?"resume-error":void 0}),(0,l.jsx)("button",{type:"button",onClick:()=>{var e;return null===(e=T.current)||void 0===e?void 0:e.click()},className:"w-full rounded-lg border-2 border-dashed border-gray-300 px-4 py-3 text-left transition-all duration-200 hover:border-blue-500 hover:bg-blue-50",children:y?(0,l.jsxs)("div",{className:"flex flex-wrap items-center justify-between",children:[(0,l.jsxs)("span",{className:"flex flex-wrap items-center gap-3 font-medium text-green-600",children:[(0,l.jsx)(n.Z,{})," ",y.name]}),(0,l.jsxs)("span",{className:"text-sm text-gray-500",children:[(y.size/1024/1024).toFixed(2)," ","MB"]})]}):(0,l.jsx)("div",{className:"text-gray-500",children:"\uD83D\uDCCE Click to upload resume (PDF only - Max 5MB)"})})]}),z.resume&&(0,l.jsx)("div",{id:"resume-error",className:"mt-1 text-sm text-red-500",role:"alert",children:z.resume.message}),(0,l.jsx)("p",{className:"mt-1 text-xs text-gray-500",children:"Accepted format: PDF only (Maximum 5MB)"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{htmlFor:"coverletter",className:"mb-2 block text-sm font-semibold text-gray-700",children:"Description"}),(0,l.jsx)("textarea",{id:"coverletter",rows:"6",className:"w-full resize-none rounded-lg border border-gray-300 px-4 py-3 transition-all duration-200 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-500 [&:-webkit-autofill]:bg-white [&:-webkit-autofill]:text-gray-900 [&:-webkit-autofill]:shadow-[0_0_0_1000px_white_inset]",placeholder:"Tell us why you would be a great fit for this position...",...Z("coverletter")}),z.coverletter&&(0,l.jsx)("div",{className:"mt-1 text-sm text-red-500",children:z.coverletter.message})]}),o&&(0,l.jsx)("div",{className:"rounded-lg p-4 ".concat(a.includes("successfully")?"border border-green-200 bg-green-50":"border border-red-200 bg-red-50"),children:(0,l.jsx)("p",{className:"text-sm font-medium ".concat(a.includes("successfully")?"text-green-800":"text-red-800"),children:a})}),(0,l.jsx)("div",{className:"pt-4",children:e?(0,l.jsxs)("div",{className:"flex items-center justify-center",children:[(0,l.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-b-2 border-blue-600"}),(0,l.jsx)("span",{className:"ml-3 text-gray-600",children:"Submitting application..."})]}):(0,l.jsx)("button",{disabled:!0,type:"submit",className:"w-full transform rounded-lg bg-gradient-to-r from-blue-600 to-indigo-600 py-4 px-6 font-semibold text-white shadow-lg transition-all duration-200 hover:scale-105 hover:from-blue-700 hover:to-indigo-700 hover:shadow-xl disabled:cursor-not-allowed disabled:opacity-50",children:"Submit Application"})})]})]}),(0,l.jsx)("div",{className:"mt-8 text-center",children:(0,l.jsx)("p",{className:"text-gray-600",children:"We'll review your application and get back to you within 3-5 business days."})})]})})}),c&&(0,l.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",children:(0,l.jsx)("div",{className:"mx-4 max-w-md transform rounded-2xl bg-white p-8 shadow-2xl transition-all duration-300 ".concat(c?"scale-100 opacity-100":"scale-95 opacity-0"),children:(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,l.jsx)("div",{className:"mb-6 h-32 w-32",children:(0,l.jsx)(k(),{animationData:"success"===h?j:v,loop:!1,autoplay:!0})}),(0,l.jsx)("h3",{className:"mb-2 text-2xl font-bold ".concat("success"===h?"text-green-600":"text-red-600"),children:"success"===h?"Success!":"Error"}),(0,l.jsx)("p",{className:"mb-6 text-center text-gray-700 ".concat(a.includes("successfully")?"text-green-800":"text-red-800"),children:a}),(0,l.jsx)("button",{onClick:()=>{p(!1),d(!1)},className:"rounded-lg px-6 py-2 font-medium transition-all duration-200 ".concat("success"===h?"bg-green-600 text-white hover:bg-green-700":"bg-red-600 text-white hover:bg-red-700"),children:"Close"})]})})})]})};var Z=T}},function(e){e.O(0,[296,9260,8159,2532,6595,9774,2888,179],function(){return e(e.s=78560)}),_N_E=e.O()}]); 2//# sourceMappingURL=apply-8cc85d30cbc6d4f1.js.map
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.