1import{r as m,j as e,X as _,t as p}from"./index-mmA6Xy-7.js";import{u as fe,b as be,t as Ne,o as X,s as l,c as ve}from"./types-O70iPF6e.js";import{H as ye,B as f,F as Se}from"./Footer-MDGeABpq.js";import{I as c,L as Z}from"./label-CBQ4hZYF.js";import{D as K,b as Q,d as ee,e as se,f as re,g as Ce}from"./dialog-C6_1pAGx.js";import{T as u}from"./textarea-CWoKmJTs.js";import{C as we}from"./card-CuI8-uBc.js";import{F as Pe,a,b as t,c as n,d as o,e as i}from"./form-Bo1CowSt.js";import{S as N,a as v,b as y,c as S,d as h}from"./select-CyOLUZs0.js";import{U as ne}from"./upload-C7KQ1YYW.js";import"./Combination-B4Ngq4mD.js";import"./index-DxCa7-Kj.js";const I="https://coastal.bank.in",Ae=X({postAppliedFor:l().min(1,"Please select the post"),applicantName:l().min(2,"Name must be at least 2 characters"),fatherSpouseName:l().min(2,"Required field"),fatherSpouseOccupation:l().min(1,"Required field"),monthlyIncome:l().min(1,"Required field"),dateOfBirth:l().min(1,"Required field"),gender:l().min(1,"Required field"),maritalStatus:l().min(1,"Required field"),nationality:l().min(1,"Required field"),category:l().min(1,"Required field"),aadharNumber:l().regex(/^\d{12}$/,"Aadhar must be 12 digits").min(12,"Aadhar must be 12 digits"),panNumber:l().regex(/^[A-Z]{5}[0-9]{4}[A-Z]{1}$/,"Invalid PAN format (e.g., ABCDE1234F)"),contactMobile:l().regex(/^\d{10}$/,"Mobile must be 10 digits"),contactAlternate:l().regex(/^\d{10}$/,"Mobile must be 10 digits"),email:l().email("Invalid email address"),correspondenceAddress:l().min(10,"Address required"),correspondencePincode:l().regex(/^\d{6}$/,"Pincode must be 6 digits"),permanentAddress:l().min(10,"Address required"),permanentPincode:l().regex(/^\d{6}$/,"Pincode must be 6 digits"),sscSchool:l().min(2,"Required field"),sscStream:l().min(1,"Required field"),sscPassingDate:l().min(1,"Required field"),sscMarks:l().min(1,"Required field"),sscGrade:l().min(1,"Required field"),interCollege:l().min(2,"Required field"),interStream:l().min(1,"Required field"),interPassingDate:l().min(1,"Required field"),interMarks:l().min(1,"Required field"),interGrade:l().min(1,"Required field"),degreeCollege:l().min(2,"Required field"),degreeStream:l().min(1,"Required field"),degreePassingDate:l().min(1,"Required field"),degreeMarks:l().min(1,"Required field"),degreeGrade:l().min(1,"Required field"),pgCollege:l().optional(),pgStream:l().optional(),pgPassingDate:l().optional(),pgMarks:l().optional(),pgGrade:l().optional(),experience:ve(X({organisation:l().optional(),lastPost:l().optional(),from:l().optional(),to:l().optional(),duties:l().optional(),reason:l().optional()})).optional(),computerSkills:l().min(1,"Required field"),computerDetails:l().optional(),hobbies:l().min(1,"Required field"),achievements:l().min(1,"Required field"),place:l().min(1,"Required field"),date:l().min(1,"Required field"),reference1Name:l().min(2,"Required field"),reference1Address:l().min(5,"Required field"),reference1Mobile:l().regex(/^\d{10}$/,"Mobile must be 10 digits"),reference2Name:l().min(2,"Required field"),reference2Address:l().min(5,"Required field"),reference2Mobile:l().regex(/^\d{10}$/,"Mobile must be 10 digits")});function Be(){const[le,ae]=m.useState(""),[D,te]=m.useState(""),[C,O]=m.useState(""),b=async()=>{try{const s=await fetch(`${I}/api/captcha`,{method:"GET",cache:"no-store"});if(!s.ok)throw new Error("Unable to load captcha");const d=await s.json();if(!d.success||!d.captchaId||!d.svg)throw new Error("Invalid captcha response");ae(d.svg),te(d.captchaId),O("")}catch(s){console.error("â CAPTCHA LOAD ERROR:",s),p.error("Unable to load CAPTCHA. Please refresh the page.")}};m.useEffect(()=>{b()},[]);const[T,M]=m.useState(""),[q,R]=m.useState(""),[g,oe]=m.useState(!1),[L,k]=m.useState(null),[U,F]=m.useState(null),[B,G]=m.useState(!1),[ie,E]=m.useState(!1),[$,ce]=m.useState(""),[de,H]=m.useState(!1),r=fe({resolver:Ne(Ae),defaultValues:{postAppliedFor:"",applicantName:"",fatherSpouseName:"",fatherSpouseOccupation:"",monthlyIncome:"",dateOfBirth:"",gender:"",maritalStatus:"",nationality:"",category:"",aadharNumber:"",panNumber:"",contactMobile:"",contactAlternate:"",email:"",correspondenceAddress:"",correspondencePincode:"",permanentAddress:"",permanentPincode:"",sscSchool:"",sscStream:"",sscPassingDate:"",sscMarks:"",sscGrade:"",interCollege:"",interStream:"",interPassingDate:"",interMarks:"",interGrade:"",degreeCollege:"",degreeStream:"",degreePassingDate:"",degreeMarks:"",degreeGrade:"",pgCollege:"",pgStream:"",pgPassingDate:"",pgMarks:"",pgGrade:"",experience:[{organisation:"",lastPost:"",from:"",to:"",duties:"",reason:""}],computerSkills:"",computerDetails:"",hobbies:"",achievements:"",place:"",date:"",reference1Name:"",reference1Address:"",reference1Mobile:"",reference2Name:"",reference2Address:"",reference2Mobile:""}}),V=r.watch("correspondenceAddress"),Y=r.watch("correspondencePincode");m.useEffect(()=>{g?(r.setValue("permanentAddress",V),r.setValue("permanentPincode",Y)):(r.setValue("permanentAddress",""),r.setValue("permanentPincode",""))},[g,V,Y,r]);const{fields:z,append:xe,remove:he}=be({control:r.control,name:"experience"}),me=s=>{const d=s.target.files?.[0];if(d){if(d.size>2*1024*1024){p.error("Photo size should not exceed 2MB");return}k(d);const x=new FileReader;x.onloadend=()=>M(x.result),x.readAsDataURL(d)}},je=s=>{const d=s.target.files?.[0];if(d){if(d.size>1*1024*1024){p.error("Signature size should not exceed 1MB");return}F(d);const x=new FileReader;x.onloadend=()=>R(x.result),x.readAsDataURL(d)}},pe=()=>{M(""),k(null)},ue=()=>{R(""),F(null)},ge=async s=>{if(!D){p.error("CAPTCHA session is missing. Please reload CAPTCHA."),await b();return}if(!C.trim()){p.error("Please enter CAPTCHA.");return}if(!L){p.error("Please upload passport photo.");return}if(!U){p.error("Please upload signature.");return}G(!0);const d=window.open("","_blank");d&&(d.document.write(` 2 <html> 3 4 <head> 5 <title>Generating PDF...</title> 6 </head> 7 8 <body style=" 9 margin:0; 10 display:flex; 11 flex-direction:column; 12 justify-content:center; 13 align-items:center; 14 background:#000; 15 color:#fff; 16 font-family:Arial,sans-serif; 17 text-align:center; 18 padding:30px; 19 "> 20 21 <h1> 22 Generating your application PDF... 23 </h1> 24 25 <h2 style=" 26 font-weight:normal; 27 max-width:800px; 28 "> 29 After successful submission, your application PDF 30 will be generated automatically. 31 Please download the PDF and upload it in the 32 Job Seekers through HRMS Portal to complete 33 the application process. 34 </h2> 35 36 </body> 37 38 </html> 39 `),d.document.close());try{const x=new FormData;
39Object.entries(s).forEach(([A,W])=>{A==="experience"?x.append("experience",JSON.stringify(W)):x.append(A,String(W??""))}),x.append("photo",L),x.append("signature",U),x.append("captchaId",D),x.append("captchaText",C.trim()),console.log("ð¤ Submitting CSO/CRO application..."),console.log("CAPTCHA ID:",D),console.log("CAPTCHA TEXT:",C);const w=await fetch(`${I}/api/submit-cso-cro`,{method:"POST",body:x}),J=await w.text();console.log("ð¥ Backend response:",J);let j;try{j=JSON.parse(J)}catch{throw new Error("Invalid server response.")}if(!w.ok){const A=j?.error||j?.message||"Unable to submit application.";throw new Error(A)}if(!j.success)throw new Error(j.error||j.message||"Application submission failed.");if(!j.pdfUrl)throw new Error("Application was saved, but PDF URL was not returned by the server.");const P=j.pdfUrl.startsWith("http")?j.pdfUrl:`${I}${j.pdfUrl}`;console.log("â
Application submitted successfully"),console.log("Application Number:",j.applicationNumber),console.log("PDF URL:",P),d?d.location.href=P:window.open(P,"_blank"),ce(P),E(!0),p.success("â
Application submitted successfully!"),r.reset(),M(""),R(""),k(null),F(null),await b()}catch(x){console.error("â CSO/CRO SUBMISSION ERROR:",x);const w=x instanceof Error?x.message:"Unable to submit application.";p.error(w),d&&d.close(),await b()}finally{G(!1)}};return e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(ye,{}),e.jsx("main",{className:"flex-1 container-responsive py-8 md:py-12",children:e.jsxs(we,{className:"max-w-5xl mx-auto p-6 md:p-10",children:[e.jsxs("div",{className:"text-center mb-6",children:[e.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-primary mb-1",children:"Application for the post of Customer Service Officers / Customer Relationship Officers"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Assistant Managers in Accounts/ Credit/ IT Depts"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Coastal Local Area Bank Ltd."})]}),e.jsxs("div",{className:"mb-6 text-sm",children:[e.jsx("p",{className:"mb-2",children:"To,"}),e.jsx("p",{className:"font-semibold",children:"The Chief Manager (HR),"}),e.jsx("p",{children:"Coastal Local Area Bank Ltd.,"}),e.jsx("p",{children:"#59-12-6, Grace Line Building,"}),e.jsx("p",{children:"Ghantasala vari Street, Gayathri Nagar"}),e.jsx("p",{children:"VIJAYAWADA-520 008"}),e.jsx("p",{className:"mt-4",children:"Dear Sir/Madam,"}),e.jsx("p",{className:"mt-2",children:"With reference to your advertisement for selection of Customer Service Officer / Customer Relationship Officer (Assistant Managers in Accounts / Credit / IT Depts), I hereby submit my application."})]}),e.jsx("div",{className:"mb-8 flex justify-end",children:e.jsx("div",{className:"w-32 h-40",children:T?e.jsxs("div",{className:"relative w-full h-full border-2 border-primary rounded-lg overflow-hidden",children:[e.jsx("img",{src:T,alt:"Passport Photo",className:"w-full h-full object-cover"}),e.jsx("button",{type:"button",onClick:pe,className:"absolute top-1 right-1 bg-destructive text-destructive-foreground rounded-full p-1 hover:bg-destructive/90",children:e.jsx(_,{className:"w-4 h-4"})})]}):e.jsxs("label",{className:"w-full h-full border-2 border-dashed border-muted-foreground rounded-lg flex flex-col items-center justify-center cursor-pointer hover:border-primary transition-colors",children:[e.jsx(ne,{className:"w-8 h-8 mb-2 text-muted-foreground"}),e.jsx("span",{className:"text-xs text-center px-2 text-muted-foreground",children:"Upload Passport Photo * (max 2MB)"}),e.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:me})]})})}),e.jsx(Pe,{...r,children:e.jsxs("form",{onSubmit:r.handleSubmit(ge),className:"space-y-8",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsx(a,{control:r.control,name:"postAppliedFor",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"1. Application for the post of *"}),e.jsxs(N,{onValueChange:s.onChange,value:s.value||"",children:[e.jsx(o,{children:e.jsx(v,{children:e.jsx(y,{placeholder:"Select IT / Non-IT"})})}),e.jsxs(S,{children:[e.jsx(h,{value:"IT",children:"IT"}),e.jsx(h,{value:"Non-IT",children:"Non-IT"})]})]}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"applicantName",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"2. Applicant's Full Name *"}),e.jsx(o,{children:e.jsx(c,{placeholder:"Enter your full name",...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"fatherSpouseName",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"3. Father's / Spouse's Name *"}),e.jsx(o,{children:e.jsx(c,{placeholder:"Enter father's or spouse's name",...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"fatherSpouseOccupation",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"4. Father's / Spouse's Occupation *"}),e.jsx(o,{children:e.jsx(c,{placeholder:"Enter occupation",...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"monthlyIncome",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"5. Monthly Income of Father / Spouse *"}),e.jsx(o,{children:e.jsx(c,{type:"number",placeholder:"Enter monthly income",...s})}),e.jsx(i,{})]})}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsx(a,{control:r.control,name:"dateOfBirth",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"6. Date of Birth *"}),e.jsx(o,{children:e.jsx(c,{type:"date",...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"gender",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"7. Gender *"}),e.jsxs(N,{onValueChange:s.onChange,value:s.value||"",children:[e.jsx(o,{children:e.jsx(v,{children:e.jsx(y,{placeholder:"Select gender"})})}),e.jsxs(S,{children:[e.jsx(h,{value:"Male",children:"Male"}),e.jsx(h,{value:"Female",children:"Female"}),e.jsx(h,{value:"Other",children:"Other"})]})]}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"maritalStatus",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"8. Marital Status *"}),e.jsxs(N,{onValueChange:s.onChange,value:s.value||"",children:[e.jsx(o,{children:e.jsx(v,{children:e.jsx(y,{placeholder:"Select marital status"})})}),e.jsxs(S,{children:[e.jsx(h,{value:"Single",children:"UnMarried"}),e.jsx(h,{value:"Married",children:"Married"}),e.jsx(h,{value:"Divorced",children:"Divorced"}),e.jsx(h,{value:"Widowed",children:"Widowed"})]})]}),e.jsx(i,{})]})})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsx(a,{control:r.control,name:"nationality",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"9. Nationality *"}),e.jsx(o,{children:e.jsx(c,{...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"category",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"10. Category *"}),e.jsxs(N,{onValueChange:s.onChange,value:s.value||"",children:[e.jsx(o,{children:e.jsx(v,{children:e.jsx(y,{placeholder:"Select category"})})}),e.jsxs(S,{children:[e.jsx(h,{value:"OC",children:"OC"}),e.jsx(h,{value:"SC",children:"SC"}),e.jsx(h,{value:"ST",children:"ST"}),e.jsx(h,{value:"BC",children:"BC"}),e.jsx(h,{value:"Minority",children:"Minority"})]})]}),e.jsx(i,{})]})}),e.jsx("div",{})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsx(a,{control:r.control,name:"aadharNumber",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"11. Aadhar Number *"}),e.jsx(o,{children:e.jsx(c,{placeholder:"Enter 12 digit Aadhar number",maxLength:12,...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"panNumber",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"12. PAN Number *"}),e.jsx(o,{children:e.jsx(c,{placeholder:"e.g., ABCDE1234F",maxLength:10,value:s.value||"",onChange:d=>s.onChange(d.target.value.toUpperCase())})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"contactMobile",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"13. Contact Mobile No. *"}),e.jsx(o,{children:e.jsx(c,{placeholder:"Enter 10 digit mobile number",maxLength:10,...s})}),e.jsx(i,{})]})})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsx(a,{control:r.control,name:"contactAlternate",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"14. Contact Alternative Mobile No. *"}),e.jsx(o,{children:e.jsx(c,{placeholder:"Enter 10 digit alternative number",maxLength:10,...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"email",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"15. E-mail ID *"}),e.jsx(o,{children:e.jsx(c,{type:"email",placeholder:"[email protected]",...s})}),e.jsx(i,{})]})}),e.jsx("div",{})]})]}),e.jsxs("div",{className:"space-y-4 border-t pt-6",children:[e.jsx("h3",{className:"text-lg font-semibold",children:"16. Address for Correspondence *"}),e.jsx(a,{control:r.control,name:"correspondenceAddress",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Full Address *"}),e.jsx(o,{children:e.jsx(u,{placeholder:"Enter complete address",rows:3,...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"correspondencePincode",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Pin Code *"}),e.jsx(o,{children:e.jsx(c,{placeholder:"Enter 6 digit pincode",maxLength:6,...s})}),e.jsx(i,{})]})}),e.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[e.jsx("input",{type:"checkbox",checked:g,onChange:s=>oe(s.target.checked),className:"w-4 h-4 cursor-pointer"}),e.jsx("label",{className:"text-sm cursor-pointer",children:"Permanent address same as correspondence address"})]}),e.jsx("h3",{className:"text-lg font-semibold mt-4",children:"Permanent Address *"}),e.jsx(a,{control:r.control,name:"permanentAddress",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Full Address *"}),e.jsx(o,{children:e.jsx(u,{placeholder:"Enter complete address",rows:3,...s,readOnly:g,className:g?"bg-gray-100":""})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"permanentPincode",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Pin Code *"}),e.jsx(o,{children:e.jsx(c,{placeholder:"Enter 6 digit pincode",maxLength:6,...s,readOnly:g,className:g?"bg-gray-100":""})}),e.jsx(i,{})]})})]}),e.jsxs("div",{className:"space-y-6 border-t pt-6",children:[e.jsx("h3",{className:"text-lg font-semibold",children:"17. Details of Education *"}),e.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg space-y-3",children:[e.jsx("h4",{className:"font-medium",children:"SSC *"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsx(a,{control:r.control,name:"sscSchool",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"School *"}),e.jsx(o,{children:e.jsx(c,{placeholder:"School name",...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"sscStream",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Stream *"}),e.jsx(o,{children:e.jsx(c,{placeholder:"Stream",...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"sscPassingDate",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Month & Year of Passing *"}),e.jsx(o,{children:e.jsx(c,{type:"month",...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"sscMarks",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"% of Marks Scored *"}),e.jsx(o,{children:e.jsx(c,{type:"number",step:"0.01",max:"100",...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"sscGrade",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Grade *"}),e.jsx(o,{children:e.jsx(c,{...s})}),e.jsx(i,{})]})})]})]}),e.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg space-y-3",children:[e.jsx("h4",{className:"font-medium",children:"Intermediate *"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsx(a,{control:r.control,name:"interCollege",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"College *"}),e.jsx(o,{children:e.jsx(c,{placeholder:"College name",...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"interStream",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Stream *"}),e.jsx(o,{children:e.jsx(c,{...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"interPassingDate",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Month & Year of Passing *"}),e.jsx(o,{children:e.jsx(c,{type:"month",...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"interMarks",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"% of Marks Scored *"}),e.jsx(o,{children:e.jsx(c,{type:"number",step:"0.01",max:"100",...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"interGrade",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Grade *"}),e.jsx(o,{children:e.jsx(c,{...s})}),e.jsx(i,{})]})})]})]}),e.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg space-y-3",children:[e.jsx("h4",{className:"font-medium",children:"Degree *"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsx(a,{control:r.control,name:"degreeCollege",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"College *"}),e.jsx(o,{children:e.jsx(c,{placeholder:"College name",...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"degreeStream",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Stream *"}),e.jsx(o,{children:e.jsx(c,{...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"degreePassingDate",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Month & Year of Passing *"}),e.jsx(o,{children:e.jsx(c,{type:"month",...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"degreeMarks",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"% of Marks Scored *"}),e.jsx(o,{children:e.jsx(c,{type:"number",step:"0.01",max:"100",...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"degreeGrade",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Grade *"}),e.jsx(o,{children:e.jsx(c,{...s})}),e.jsx(i,{})]})})]})]}),e.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg space-y-3",children:[e.jsx("h4",{className:"font-medium",children:"PG / Others"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsx(a,{control:r.control,name:"pgCollege",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"College"}),e.jsx(o,{children:e.jsx(c,{placeholder:"College name (if any)",...s})})]})}),e.jsx(a,{control:r.control,name:"pgStream",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Stream"}),e.jsx(o,{children:e.jsx(c,{...s})})]})}),e.jsx(a,{control:r.control,name:"pgPassingDate",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Month & Year of Passing"}),e.jsx(o,{children:e.jsx(c,{type:"month",...s})})]})}),e.jsx(a,{control:r.control,name:"pgMarks",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"% of Marks Scored"}),e.jsx(o,{children:e.jsx(c,{type:"number",step:"0.01",max:"100",...s})})]})}),e.jsx(a,{control:r.control,name:"pgGrade",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Grade"}),e.jsx(o,{children:e.jsx(c,{...s})})]})})]})]})]}),e.jsxs("div",{className:"space-y-4 border-t pt-6",children:[e.jsx("h3",{className:"text-lg font-semibold",children:"18. Previous Experience (if any)"}),e.jsx("div",{className:"flex justify-end",children:e.jsx(f,{type:"button",variant:"outline",onClick:()=>xe({organisation:"",lastPost:"",from:"",to:"",duties:"",reason:""}),children:"+ Add Experience"})}),e.jsx("div",{className:"space-y-6",children:z.map((s,d)=>e.jsxs("div",{className:"p-4 border rounded-lg bg-muted/30 space-y-4",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsxs("h4",{className:"font-medium",children:["Experience ",d+1]}),z.length>1&&e.jsx(f,{type:"button",variant:"destructive",onClick:()=>he(d),size:"sm",children:"Remove"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsx(a,{control:r.control,name:`experience.${d}.organisation`,render:({field:x})=>e.jsxs(t,{children:[e.jsx(n,{children:"Name of Organisation"}),e.jsx(o,{children:e.jsx(c,{placeholder:"Organisation name",...x})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:`experience.${d}.lastPost`,render:({field:x})=>e.jsxs(t,{children:[e.jsx(n,{children:"Last Post Held"}),e.jsx(o,{children:e.jsx(c,{placeholder:"Post/Designation",...x})}),e.jsx(i,{})]})})]}
39),e.jsxs("div",{children:[e.jsx(n,{children:"Serving Period"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mt-2",children:[e.jsx(a,{control:r.control,name:`experience.${d}.from`,render:({field:x})=>e.jsxs(t,{children:[e.jsx(n,{children:"From Date"}),e.jsx(o,{children:e.jsx(c,{type:"month",...x})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:`experience.${d}.to`,render:({field:x})=>e.jsxs(t,{children:[e.jsx(n,{children:"To Date"}),e.jsx(o,{children:e.jsx(c,{type:"month",...x})}),e.jsx(i,{})]})})]})]}),e.jsx(a,{control:r.control,name:`experience.${d}.duties`,render:({field:x})=>e.jsxs(t,{children:[e.jsx(n,{children:"Nature of Duties Performed"}),e.jsx(o,{children:e.jsx(u,{rows:2,placeholder:"Describe duties performed",...x})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:`experience.${d}.reason`,render:({field:x})=>e.jsxs(t,{children:[e.jsx(n,{children:"Reasons for Leaving"}),e.jsx(o,{children:e.jsx(u,{rows:2,placeholder:"Reason for leaving",...x})}),e.jsx(i,{})]})})]},s.id))})]}),e.jsxs("div",{className:"space-y-4 border-t pt-6",children:[e.jsx(a,{control:r.control,name:"computerSkills",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"19. Possessing Computer Skills *"}),e.jsxs(N,{onValueChange:s.onChange,value:s.value||"",children:[e.jsx(o,{children:e.jsx(v,{children:e.jsx(y,{placeholder:"Select Yes or No"})})}),e.jsxs(S,{children:[e.jsx(h,{value:"Yes",children:"Yes"}),e.jsx(h,{value:"No",children:"No"})]})]}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"computerDetails",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"If Yes, give brief details"}),e.jsx(o,{children:e.jsx(u,{placeholder:"Describe your computer skills",rows:3,...s})})]})}),e.jsx(a,{control:r.control,name:"hobbies",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"20. Hobbies *"}),e.jsx(o,{children:e.jsx(u,{placeholder:"List your hobbies",rows:2,...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"achievements",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"21. Any special achievements beyond your career/professional life *"}),e.jsx(o,{children:e.jsx(u,{placeholder:"Describe your achievements",rows:3,...s})}),e.jsx(i,{})]})})]}),e.jsxs("div",{className:"space-y-4 border-t pt-6",children:[e.jsx("h3",{className:"text-lg font-semibold",children:"22. Name, address and mobile number of two references *"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"space-y-3 bg-muted/10 p-4 rounded-lg",children:[e.jsx("h4",{className:"font-medium",children:"Reference 1 *"}),e.jsx(a,{control:r.control,name:"reference1Name",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Name *"}),e.jsx(o,{children:e.jsx(c,{placeholder:"Enter name",...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"reference1Address",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Address *"}),e.jsx(o,{children:e.jsx(u,{placeholder:"Enter address",rows:2,...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"reference1Mobile",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Mobile No. *"}),e.jsx(o,{children:e.jsx(c,{placeholder:"Enter 10 digit number",maxLength:10,...s})}),e.jsx(i,{})]})})]}),e.jsxs("div",{className:"space-y-3 bg-muted/10 p-4 rounded-lg",children:[e.jsx("h4",{className:"font-medium",children:"Reference 2 *"}),e.jsx(a,{control:r.control,name:"reference2Name",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Name *"}),e.jsx(o,{children:e.jsx(c,{placeholder:"Enter name",...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"reference2Address",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Address *"}),e.jsx(o,{children:e.jsx(u,{placeholder:"Enter address",rows:2,...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"reference2Mobile",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Mobile No. *"}),e.jsx(o,{children:e.jsx(c,{placeholder:"Enter 10 digit number",maxLength:10,...s})}),e.jsx(i,{})]})})]})]})]}),e.jsxs("div",{className:"border-t pt-6",children:[e.jsx("h3",{className:"text-lg font-semibold mb-4",children:"Declaration & Signature *"}),e.jsxs("div",{className:"bg-muted/30 p-4 rounded-lg mb-6 text-sm space-y-2",children:[e.jsx("p",{children:e.jsx("strong",{children:"Declaration:"})}),e.jsxs("ol",{className:"list-decimal list-inside space-y-1",children:[e.jsx("li",{children:"I hereby certify that the above information furnished is true and correct to the best of my knowledge and belief."}),e.jsx("li",{children:"I further certify that I have read and understood the eligibility criteria for above vacancies and willing to work as CSO (Cash), CSO (Accounts), CRO (Credit), CSO (IT), as the Bank may deems it fit."}),e.jsx("li",{children:"I am willing to shift to the place of posting to shoulder the responsibilities entrusted to me by the Bank."}),e.jsx("li",{children:"I am willing to work at any place in the operational area of the Bank. I understand that I may be subjected to transfer from time to time on administrative grounds and as per the requirements of the Bank."})]})]}),e.jsxs("div",{className:"flex justify-between items-start",children:[e.jsxs("div",{className:"w-64 space-y-4",children:[e.jsx(a,{control:r.control,name:"place",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Place *"}),e.jsx(o,{children:e.jsx(c,{placeholder:"Enter place",...s})}),e.jsx(i,{})]})}),e.jsx(a,{control:r.control,name:"date",render:({field:s})=>e.jsxs(t,{children:[e.jsx(n,{children:"Date *"}),e.jsx(o,{children:e.jsx(c,{type:"date",...s})}),e.jsx(i,{})]})})]}),e.jsxs("div",{className:"w-64",children:[e.jsx(Z,{className:"mb-2 block",children:"Upload Signature *"}),q?e.jsxs("div",{className:"relative w-full h-24 border-2 border-primary rounded-lg overflow-hidden bg-white",children:[e.jsx("img",{src:q,alt:"Signature",className:"w-full h-full object-contain p-2"}),e.jsx("button",{type:"button",onClick:ue,className:"absolute top-1 right-1 bg-destructive text-destructive-foreground rounded-full p-1 hover:bg-destructive/90",children:e.jsx(_,{className:"w-4 h-4"})})]}):e.jsxs("label",{className:"w-full h-24 border-2 border-dashed border-muted-foreground rounded-lg flex flex-col items-center justify-center cursor-pointer hover:border-primary transition-colors",children:[e.jsx(ne,{className:"w-6 h-6 mb-1 text-muted-foreground"}),e.jsx("span",{className:"text-xs text-center px-2 text-muted-foreground",children:"Upload Signature (max 1MB)"}),e.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:je})]})]})," "]})," "]})," ",e.jsxs("div",{className:"border-t pt-6 space-y-3 max-w-sm mx-auto",children:[e.jsx(Z,{className:"text-center block font-medium",children:"Captcha Verification *"}),e.jsx("div",{className:"border rounded bg-white p-2 flex justify-center",dangerouslySetInnerHTML:{__html:le}}),e.jsx(c,{placeholder:"Enter captcha text",value:C,onChange:s=>O(s.target.value)}),e.jsx(f,{type:"button",variant:"outline",className:"w-full",onClick:b,children:"Reload Captcha"})]}),e.jsxs("div",{className:"flex flex-col items-center pt-6 gap-3",children:[e.jsx(f,{type:"submit",size:"lg",className:"px-12 flex items-center gap-2",disabled:B,children:B?e.jsxs(e.Fragment,{children:[e.jsxs("svg",{className:"animate-spin h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4l3.5-3.5L12 0v4a8 8 0 110 16v4l-3.5-3.5L12 20v4a8 8 0 01-8-8z"})]}),"Submitting..."]}):"Submit Application"}),e.jsxs("p",{className:"text-sm text-muted-foreground text-center max-w-xl",children:[e.jsx("strong",{children:"*Note:"})," After successful submission, your application PDF will be generated automatically. Please download the PDF and upload it in the Job Seekers Portal to complete the application process."]})]})]})})]})}),e.jsx(K,{open:ie,onOpenChange:E,children:e.jsxs(Q,{className:"sm:max-w-md text-center",children:[e.jsx(ee,{children:e.jsx(se,{className:"text-xl font-semibold text-primary",children:"ð Application Submitted Successfully"})}),e.jsxs("p",{className:"text-sm text-muted-foreground mt-2 leading-relaxed",children:["Your application has been submitted successfully.",e.jsx("br",{}),"Your PDF will open and download automatically in a few seconds.",e.jsx("br",{}),"You can also manually download it using the button below."]}),e.jsxs(re,{className:"flex justify-center mt-6 gap-3",children:[e.jsx(f,{onClick:()=>E(!1),className:"px-6",children:"Close"}),e.jsx(f,{onClick:()=>
39{if(!$){p.error("PDF not available yet.");return}const s=document.createElement("a");s.href=$,s.download="application.pdf",document.body.appendChild(s),s.click(),s.remove()},variant:"outline",className:"px-6",children:"Download PDF"})]})]})}),e.jsx(K,{open:de,onOpenChange:H,children:e.jsxs(Q,{className:"sm:max-w-md text-center",children:[e.jsx(ee,{children:e.jsx(se,{className:"text-xl font-bold text-blue-600",children:"ð Important Next Step"})}),e.jsxs(Ce,{className:"text-sm text-muted-foreground mt-2 leading-relaxed",children:["Your Application PDF has been generated successfully and you will be navigated to it shortly.",e.jsx("br",{}),"Now Follow step-2 to complete the application process.",e.jsx("br",{}),e.jsx("strong",{children:"Please download the PDF and upload it in the Job Seekers Portal to complete your application process."})]}),e.jsx(re,{className:"flex justify-center mt-6",children:e.jsx(f,{className:"px-6",onClick:()=>H(!1),children:"OK, Got It"})})]})}),e.jsx(Se,{})]})}export{Be as default};
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.