1import{r as c,j as e,a as I}from"./index-Bzq5Ehky.js";import{H as V}from"./HeroSection-D4YicQyr.js";import{P as p,f as E,M as P,W as B,c as u,B as G,v as J,I as O,T as l,u as W,b as Y,h as $,U as H,C as U}from"./AppRoutes-Dk3wfhsQ.js";import{L as z}from"./LoaderComp-Bt1L9KUe.js";import{T as i}from"./TextInputFieldComp-unPzRI9q.js";const D=({countries:b=[]})=>{const{changeLanguage:q,language:f,t:n,translations:t}=E(),[x,d]=c.useState(!1),[h,w]=c.useState(!1),[g,j]=c.useState(f||"en"),[S,F]=c.useState(""),[o,a]=c.useState({name:"",email:"",country_code:"91",mobile_no:"",alternate_mobile_no:"",dob:"",current_occupation:"",current_address:"",nationality:"",currently_residing_in:"",comfortable_languages:"",question_1:"",question_1_yes_answer_1:"",question_1_yes_answer_2:"",question_1_no_answer_1:"",question_2:"",question_2_yes_answer_1:"",question_2_yes_answer_2:"",question_3_answer_1:"",question_4_answer_1:"",question_5:"",question_5_answer_1:"",question_5_answer_2:"",question_6_answer_1:"",question_6_answer_2:"",question_7_answer_1:"",question_7_answer_2:"",question_8_answer_1:"",question_9_answer_1:"",question_10_answer_1:"",question_11_answer_1:"",question_12_answer_1:"",question_13_answer_1:"",question_14_answer_1:"",id_proof:null,cover_image:null});function L(){a({name:"",email:"",country_code:"91",mobile_no:"",alternate_mobile_no:"",dob:"",current_occupation:"",current_address:"",nationality:"",currently_residing_in:"",comfortable_languages:"",question_1:"",question_1_yes_answer_1:"",question_1_yes_answer_2:"",question_1_no_answer_1:"",question_2:"",question_2_yes_answer_1:"",question_2_yes_answer_2:"",question_3_answer_1:"",question_4_answer_1:"",question_5:"",question_5_answer_1:"",question_5_answer_2:"",question_6_answer_1:"",question_6_answer_2:"",question_7_answer_1:"",question_7_answer_2:"",question_8_answer_1:"",question_9_answer_1:"",question_10_answer_1:"",question_11_answer_1:"",question_12_answer_1:"",question_13_answer_1:"",question_14_answer_1:"",id_proof:null,cover_image:null})}function T(s){if(!s.name||s.name.trim().length===0)return l("Please enter your name"),!1;if(!s.email||s.email.trim().length===0)return l("Please enter your email"),!1;if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s.email))return l("Please enter a valid email address"),!1;if(!s.country_code||s.country_code.trim().length===0)return l("Please select your country code"),!1;if(!s.mobile_no||s.mobile_no.trim().length===0)return l("Please enter your mobile number"),!1;if(s.mobile_no.replace(/\D/g,"").length<6)return l("Please enter a valid mobile number"),!1;if(!s.alternate_mobile_no||s.alternate_mobile_no.trim().length===0)return l("Please enter your alternate mobile number"),!1;if(s.alternate_mobile_no.replace(/\D/g,"").length<6)return l("Please enter a valid alternate mobile number"),!1;if(!s.dob||s.dob.trim().length===0)return l("Please enter your date of birth"),!1;const m=new Date(s.dob),_=new Date("2007-12-31");return isNaN(m.getTime())?(l("Please enter a valid date of birth"),!1):m>_?(l("You must be 18 or older by 31st December 2025"),!1):!s.current_occupation||s.current_occupation.trim().length===0?(l("Please enter your current occupation"),!1):!s.current_address||s.current_address.trim().length===0?(l("Please enter your current address"),!1):!s.currently_residing_in||s.currently_residing_in.trim().length===0?(l("Please enter where you are currently residing"),!1):!s.comfortable_languages||s.comfortable_languages.trim().length===0?(l("Please enter the languages you are comfortable with"),!1):!s.question_1||s.question_1.trim().length===0?(l("Please answer question 1"),!1):!s.question_2||s.question_2.trim().length===0?(l("Please answer question 2"),!1):!s.question_3_answer_1||s.question_3_answer_1.trim().length===0?(l("Please answer question 3"),!1):!s.question_4_answer_1||s.question_4_answer_1.trim().length===0?(l("Please answer question 4"),!1):!s.question_5||s.question_5.trim().length===0?(l("Please answer question 5"),!1):!s.question_6_answer_1||s.question_6_answer_1.trim().length===0?(l("Please answer question 6"),!1):!s.question_7_answer_1||s.question_7_answer_1.trim().length===0?(l("Please answer question 7"),!1):!s.question_8_answer_1||s.question_8_answer_1.trim().length===0?(l("Please answer question 8"),!1):!s.question_9_answer_1||s.question_9_answer_1.trim().length===0?(l("Please answer question 9"),!1):!s.question_10_answer_1||s.question_10_answer_1.trim().length===0?(l("Please answer question 10"),!1):!s.question_11_answer_1||s.question_11_answer_1.trim().length===0?(l("Please answer question 11"),!1):!s.question_12_answer_1||s.question_12_answer_1.trim().length===0?(l("Please answer question 12"),!1):!s.question_13_answer_1||s.question_13_answer_1.trim().length===0?(l("Please answer question 13"),!1):!s.question_14_answer_1||s.question_14_answer_1.trim().length===0?(l("Please answer question 14"),!1):s.id_proof?s.cover_image?!0:(l("Please upload your photograph"),!1):(l("Please upload your ID proof"),!1)}async function R(){try{if(!T(o))return;d(!0),console.log("formData",o);const s=new FormData;s.append("cover_image",o.cover_image),s.append("id_proof",o.id_proof),s.append("full_name",o.name),s.append("email",o.email),s.append("country_code",o.country_code),s.append("primary_contact_number",o.mobile_no),s.append("alternate_contact_number",o.alternate_mobile_no),s.append("date_of_birth",o.dob),s.append("occupation_or_student_status",o.current_occupation),s.append("residential_address",o.current_address),s.append("nationality",o.nationality),s.append("residing_in_jaipur",o.currently_residing_in),s.append("languages",o.comfortable_languages);const r=v=>String(v||"").trim().replace(/[\r\n\t]/g," ").replace(/"/g,"'"),m=[{question:n(t?.volunteer_page_form_questions?.q1_volunteered_before?.question),answer:r(o.question_1)},...o.question_1==="1"?[{question:n(t?.volunteer_page_form_questions?.q1_volunteered_before?.if_yes?.unexpected_learning?.question),answer:r(o.question_1_
1yes_answer_1)},{question:n(t?.volunteer_page_form_questions?.q1_volunteered_before?.if_yes?.moment_didnt_go_as_planned?.question),answer:r(o.question_1_yes_answer_2)}]:o.question_1==="0"?[{question:n(t?.volunteer_page_form_questions?.q1_volunteered_before?.if_no?.nervous_but_applying?.question),answer:r(o.question_1_no_answer_1)}]:[],{question:n(t?.volunteer_page_form_questions?.q2_event_helped?.describe_situation?.question),answer:r(o.question_2)},{question:n(t?.volunteer_page_form_questions?.q2_event_helped?.team_mistake?.question),answer:r(o.question_2_yes_answer_1)},{question:n(t?.volunteer_page_form_questions?.q3_diversity_experience?.question),answer:r(o.question_3_answer_1)},{question:n(t?.volunteer_page_form_questions?.q4_fixing_offtrack?.question),answer:r(o.question_4_answer_1)},{question:n(t?.volunteer_page_form_questions?.q5_leadership?.question),answer:r(o.question_5)},{question:n(t?.volunteer_page_form_questions?.q5_leadership?.learned_from_leading?.question),answer:r(o.question_5_answer_1)},{question:n(t?.volunteer_page_form_questions?.q5_leadership?.leadership_style?.question),answer:r(o.question_5_answer_2)},{question:n(t?.volunteer_page_form_questions?.q6_commitment?.commitment?.question),answer:r(o.question_6_answer_1)},{question:n(t?.volunteer_page_form_questions?.q6_commitment?.personal_challenge?.question),answer:r(o.question_6_answer_2)},{question:n(t?.volunteer_page_form_questions?.q7_look_back?.moment_proud?.question),answer:r(o.question_7_answer_1)},{question:n(t?.volunteer_page_form_questions?.q7_look_back?.future_shape?.question),answer:r(o.question_7_answer_2)},{question:n(t?.volunteer_page_form_questions?.q8_skill?.question),answer:r(o.question_8_answer_1)},{question:n(t?.volunteer_page_form_questions?.q9_energy?.question),answer:r(o.question_9_answer_1)},{question:n(t?.volunteer_page_form_questions?.q10_rules?.question),answer:r(o.question_10_answer_1)},{question:n(t?.volunteer_page_form_questions?.q11_adaptability?.question),answer:r(o.question_11_answer_1)},{question:n(t?.volunteer_page_form_questions?.q12_excites?.question),answer:r(o.question_12_answer_1)},{question:n(t?.volunteer_page_form_questions?.q13_ai_tools?.question),answer:r(o.question_13_answer_1)},{question:n(t?.volunteer_page_form_questions?.q14_anything_else?.question),answer:r(o.question_14_answer_1)}];s.append("answers",JSON.stringify(m));const _=await fetch(O+"/admin/common/volunteer-registration",{method:"POST",body:s});if(console.log("results",_),!_.ok){d(!1);const v=await _.json();l(v?.message||"Something went wrong. Please try again.");return}if(_.status!==200){d(!1);const v=await _.json();l(v?.message||"Something went wrong. Please try again.");return}const A=(await _.json())?.reference_number||"N/A";F(A),w(!0),d(!1),L()}catch(s){d(!1),console.log("error>>",s),l("Something went wrong. Please try again later.")}}const y=(s,r)=>{const{files:m}=s.target;if(m.length>0){const _=m[0];a(k=>({...k,[r]:_}))}},M=b.filter((s,r,m)=>s.phonecode&&m.findIndex(_=>_.phonecode===s.phonecode)===r),N=s=>{j(s),q(s)};return e.jsxs("div",{className:"bg-[#fff] mb-10 mt-10",children:[e.jsx(P,{}),e.jsx(B,{children:e.jsxs("div",{className:"w-full px-4 py-8 ssm:p-10 rounded-[20px] bg-[#f3f3f3] mt-0 md:mt-0",children:[e.jsxs("div",{className:"flex items-start flex-col md:flex-row md:items-center",children:[e.jsx("h2",{className:"text-lg font-semibold mb-0",children:n(t?.select_language?.title)}),e.jsxs("div",{className:"flex items-center space-x-8 ml-0 md:ml-4 mt-2 md:mt-0",children:[e.jsxs("label",{className:"flex items-center space-x-2",children:[e.jsx("input",{type:"radio",value:"english",name:"friendOfFestival",checked:g==="en",onChange:()=>N("en"),className:"w-5 h-5 accent-pink_color-900 focus:ring-pink_color-900 cursor-pointer"}),e.jsx("span",{children:"English"})]}),e.jsxs("label",{className:"flex items-center space-x-2",children:[e.jsx("input",{type:"radio",name:"friendOfFestival",value:"hindi",checked:g==="hi",onChange:()=>N("hi"),className:"w-5 h-5 accent-pink_color-900 focus:ring-pink_color-900 cursor-pointer"}),e.jsx("span",{children:"Hindi"})]})]})]}),e.jsx("hr",{className:"my-5",style:{borderColor:"#e3e3e3"}}),e.jsx("h2",{className:"text-lg font-semibold mb-0 mt-5",children:n(t?.volunteer_page_form_questions?.basic_information?.title)}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-3",children:[e.jsx(i,{onchange:s=>a(r=>({...r,name:s.target.value})),value:o.name,required:!0,lableName:n(t?.volunteer_page_form_questions?.basic_information?.full_name?.question),placeholder:n(t?.volunteer_page_form_questions?.basic_information?.full_name?.placeholder)}),e.jsx(i,{onchange:s=>a(r=>({...r,email:s.target.value})),value:o.email,required:!0,lableName:n(t?.volunteer_page_form_questions?.basic_information?.email?.question),placeholder:n(t?.volunteer_page_form_questions?.basic_information?.email?.placeholder)})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mt-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block",children:e.jsxs("span",{className:"flex text-sm font-medium mb-1",children:[e.jsx(u,{className:"text-md mb-2 text-[#344054] text-[16px]",text:n(t?.volunteer_page_form_questions?.basic_information?.country_code?.question)}),e.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}),e.jsxs("select",{className:"border-[#D0D5DD] border-[1.5px] w-full px-3 h-[48px] text-[16px] rounded-md text-[#667085] font-SansRegularFont outline-none",value:o.country_code,onChange:s=>a(r=>({...r,country_code:s.target.value})),required:!0,children:[e.jsx("option",{value:"",children:n(t?.volunteer_page_form_questions?.basic_information?.country_code?.placeholder)}),M.map(s=>e.jsxs("option",{value:s.phonecode,children:[s.name,"(+",s.phonecode,")"]},s.phonecode||s.name))]})]}),e.jsx(i,{onchange:s=>a(r=>({...r,mobile_no:s.target.value})),value:o.mobile_no,required:!0,lableName:n(t?.volunteer_page_form_questions?.basic_information?.primary_contact?.question),placeholder:n(t?.volunteer_page_form_questions?.basic_information?.primary_contact?.placeholder),type:"number"}),e.jsx(i,{onchange:s=>a(r=>({...r,alternate_mobile_no:s.target.value})),value:o.alternate_mobile_no,required:!0,lableName:n(t?.volunteer_page_form_questions?.basic_information?.alternate_contact?.question),placeholder:n(t?.volunteer_page_form_questions?.basic_information?.alternate_contact?.placeholder),type:"number"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-3",children:[e.jsx(i,{onchange:s=>a(r=>({...r,dob:s.target.value})),value:o.dob,required:!0,lableName:n(t?.volunteer_page_form_questions?.basic_information?.dob?.question),placeholder:n(t?.volunteer_page_form_questions?.basic_information?.dob?.placeholder),type:"date"}),e.jsx(i,{onchange:s=>a(r=>({...r,current_occupation:s.target.value})),value:o.current_occupation,required:!0,lableName:n(t?.volunteer_page_form_questions?.basic_information?.occupation?.question),placeholder:n(t?.volunteer_page_form_questions?.basic_information?.occupation?.placeholder)})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-3",children:[e.jsx(i,{onchange:s=>a(r=>({...r,current_address:s.target.value})),value:o.current_address,required:!0,lableName:n(t?.volunteer_page_form_questions?.basic_information?.address?.question),placeholder:n(t?.volunteer_page_form_questions?.basic_information?.address?.placeholder)}),e.jsx(i,{onchange:s=>a(r=>({...r,nationality:s.target.value})),value:o.nationality,required:!0,lableName:n(t?.volunteer_page_form_questions?.basic_information?.nationality?.question),placeholder:n(t?.volunteer_page_form_questions?.basic_information?.nationality?.placeholder)})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-3",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block",children:e.jsxs("span",{className:"flex text-sm font-medium mb-1",children:[e.jsx(u,{className:"text-md mb-2 text-[#344054] text-[16px]",text:n(t?.volunteer_page_form_questions?.basic_information?.residing_in_jaipur?.question)}),e.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}),e.jsxs("select",{className:"border-[#D0D5DD] border-[1.5px] w-full px-3 h-[48px] text-[16px] rounded-md text-[#667085] font-SansRegularFont outline-none",value:o.currently_residing_in,onChange:s=>a(r=>({...r,currently_residing_in:s.target.value})),required:!0,children:[e.jsx("option",{value:"",children:n(t?.volunteer_page_form_questions?.basic_information?.residing_in_jaipur?.placeholder)}),e.jsx("option",{value:"1",children:n(t?.volunteer_page_form_questions?.basic_information?.residing_in_jaipur?.yes)}),e.jsx("option",{value:"0",children:n(t?.volunteer_page_form_questions?.basic_information?.residing_in_jaipur?.no)})]})]}),e.jsx(i,{onchange:s=>a(r=>({...r,comfortable_languages:s.target.value})),value:o.comfortable_languages,required:!0,lableName:n(t?.volunteer_page_form_questions?.basic_information?.languages?.question),placeholder:n(t?.volunteer_page_form_questions?.basic_information?.languages?.placeholder)})]}),e.jsx("hr",{className:"my-5",style:{borderColor:"#e3e3e3"}}),e.jsxs("div",{children:[e.jsx("label",{className:"block",children:e.jsxs("span",{className:"flex text-sm font-medium mb-1",children:[e.jsx(u,{className:"text-md mb-2 text-[#344054] text-[16px]",text:`${n(t?.volunteer_page_form_questions?.q1_volunteered_before?.question)} (${n(t?.volunteer_page_form_questions?.q1_volunteered_before?.placeholder)})`}),e.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}),e.jsxs("select",{className:"border-[#D0D5DD] border-[1.5px] w-full px-3 h-[48px] text-[16px] rounded-md text-[#667085] font-SansRegularFont outline-none",value:o.question_1,onChange:s=>a(r=>({...r,question_1:s.target.value})),required:!0,children:[e.jsx("option",{value:"",children:n(t?.volunteer_page_form_questions?.q1_volunteered_before?.placeholder)}),e.jsx("option",{value:"1",children:n(t?.volunteer_page_form_questions?.q1_volunteered_before?.yes
1)}),e.jsx("option",{value:"0",children:n(t?.volunteer_page_form_questions?.q1_volunteered_before?.no)})]})]}),o.question_1==="1"&&e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-3",children:[e.jsx(i,{onchange:s=>a(r=>({...r,question_1_yes_answer_1:s.target.value})),value:o.question_1_yes_answer_1,required:!0,lableName:`${t?.volunteer_page_form_questions?.q1_volunteered_before?.if_yes?.unexpected_learning?.question}`,placeholder:`${t?.volunteer_page_form_questions?.q1_volunteered_before?.if_yes?.unexpected_learning?.placeholder}`}),e.jsx(i,{onchange:s=>a(r=>({...r,question_1_yes_answer_2:s.target.value})),value:o.question_1_yes_answer_2,required:!0,lableName:`${n(t?.volunteer_page_form_questions?.q1_volunteered_before?.if_yes?.moment_didnt_go_as_planned?.question)}`,placeholder:`${t?.volunteer_page_form_questions?.q1_volunteered_before?.if_yes?.moment_didnt_go_as_planned?.placeholder}`})]}),o.question_1==="0"&&e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-1 gap-6 mt-3",children:e.jsx(i,{onchange:s=>a(r=>({...r,question_1_no_answer_1:s.target.value})),value:o.question_1_no_answer_1,required:!0,lableName:`${n(t?.volunteer_page_form_questions?.q1_volunteered_before?.if_no?.nervous_but_applying?.question)}`,placeholder:`${n(t?.volunteer_page_form_questions?.q1_volunteered_before?.if_no?.nervous_but_applying?.placeholder)}`})}),e.jsxs("div",{className:"mt-6",children:[e.jsx("label",{className:"block",children:e.jsxs("span",{className:"flex text-sm font-medium mb-1",children:[e.jsx(u,{className:"text-md mb-2 text-[#344054] text-[16px]",text:`${n(t?.volunteer_page_form_questions?.q2_event_helped?.question)}`}),e.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}),e.jsx(i,{onchange:s=>a(r=>({...r,question_2:s.target.value})),value:o.question_2,required:!0,lableName:`${n(t?.volunteer_page_form_questions?.q2_event_helped?.describe_situation?.question)}`,placeholder:`${n(t?.volunteer_page_form_questions?.q2_event_helped?.describe_situation?.placeholder)}`}),e.jsx(i,{onchange:s=>a(r=>({...r,question_2_yes_answer_1:s.target.value})),className:"mt-3",value:o.question_2_yes_answer_1,required:!0,lableName:`${n(t?.volunteer_page_form_questions?.q2_event_helped?.team_mistake?.question)}`,placeholder:`${n(t?.volunteer_page_form_questions?.q2_event_helped?.team_mistake?.placeholder)}`})]}),e.jsx("div",{className:"mt-6",children:e.jsx(i,{onchange:s=>a(r=>({...r,question_3_answer_1:s.target.value})),value:o.question_3_answer_1,required:!0,lableName:`${n(t?.volunteer_page_form_questions?.q3_diversity_experience?.question)}`,placeholder:`${n(t?.volunteer_page_form_questions?.q3_diversity_experience?.placeholder)}`})}),e.jsx("div",{className:"mt-6",children:e.jsx(i,{onchange:s=>a(r=>({...r,question_4_answer_1:s.target.value})),value:o.question_4_answer_1,required:!0,lableName:`${n(t?.volunteer_page_form_questions?.q4_fixing_offtrack?.question)}`,placeholder:`${n(t?.volunteer_page_form_questions?.q4_fixing_offtrack?.placeholder)}`})}),e.jsxs("div",{className:"mt-6",children:[e.jsx("label",{className:"block",children:e.jsxs("span",{className:"flex text-sm font-medium mb-1",children:[e.jsx(u,{className:"text-md mb-2 text-[#344054] text-[16px]",text:`${n(t?.volunteer_page_form_questions?.q5_leadership?.question)} (${n(t?.volunteer_page_form_questions?.q5_leadership?.placeholder)})`}),e.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}),e.jsx(i,{onchange:s=>a(r=>({...r,question_5:s.target.value})),value:o.question_5,required:!0,lableName:`${n(t?.volunteer_page_form_questions?.q5_leadership?.leadership_style?.question)}`,placeholder:`${n(t?.volunteer_page_form_questions?.q5_leadership?.leadership_style?.placeholder)}`}),e.jsx(i,{onchange:s=>a(r=>({...r,question_5_answer_1:s.target.value})),value:o.question_5_answer_1,required:!0,className:"mt-3",lableName:`${n(t?.volunteer_page_form_questions?.q5_leadership?.learned_from_leading?.question)}`,placeholder:`${n(t?.volunteer_page_form_questions?.q5_leadership?.learned_from_leading?.placeholder)}`})]}),e.jsxs("div",{className:"mt-6",children:[e.jsx("label",{className:"block",children:e.jsxs("span",{className:"flex text-sm font-medium mb-1",children:[e.jsx(u,{className:"text-md mb-2 text-[#344054] text-[16px]",text:`${n(t?.volunteer_page_form_questions?.q6_commitment?.question)}`}),e.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}),e.jsxs("div",{className:"mb-3",children:[e.jsxs("label",{className:"flex text-sm font-medium mb-1",children:[e.jsx(u,{className:"text-md mb-2 text-[#344054] text-[16px]",text:`${n(t?.volunteer_page_form_questions?.q6_commitment?.commitment?.question)}`}),e.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),e.jsxs("select",{className:"border-[#D0D5DD] border-[1.5px] w-full px-3 h-[48px] text-[16px] rounded-md text-[#667085] font-SansRegularFont outline-none",value:o.question_6_answer_1,onChange:s=>a(r=>({...r,question_6_answer_1:s.target.value})),required:!0,children:[e.jsx("option",{value:"",children:`${n(t?.volunteer_page_form_questions?.q6_commitment?.commitment?.placeholder)}`}),e.jsx("option",{value:`${n(t?.volunteer_page_form_questions?.q6_commitment?.commitment?.yes)}`,children:`${n(t?.volunteer_page_form_questions?.q6_commitment?.commitment?.yes)}`}),e.jsx("option",{value:`${n(t?.volunteer_page_form_questions?.q6_commitment?.commitment?.no)}`,children:`${n(t?.volunteer_page_form_questions?.q6_commitment?.commitment?.no)}`})]})]}),e.jsx(i,{onchange:s=>a(r=>({...r,question_6_answer_2:s.target.value})),value:o.question_6_answer_2,required:!0,lableName:`${n(t?.volunteer_page_form_questions?.q6_commitment?.personal_challenge?.question)}`,placeholder:`${n(t?.volunteer_page_form_questions?.q6_commitment?.personal_challenge?.placeholder)}`})]}),e.jsxs("div",{className:"mt-6",children:[e.jsx(i,{onchange:s=>a(r=>({...r,question_7_answer_1:s.target.value})),value:o.question_7_answer_1,required:!0,lableName:`${n(t?.volunteer_page_form_questions?.q7_look_back?.moment_proud?.question)}`,placeholder:`${n(t?.volunteer_page_form_questions?.q7_look_back?.moment_proud?.placeholder)}`}),e.jsx(i,{onchange:s=>a(r=>({...r,question_7_answer_2:s.target.value})),value:o.question_7_answer_2,required:!0,className:"mt-3",lableName:`${n(t?.volunteer_page_form_questions?.q7_look_back?.future_shape?.question)}`,placeholder:`${n(t?.volunteer_page_form_questions?.q7_look_back?.future_shape?.placeholder)}`})]}),e.jsxs("div",{className:"mt-6",children:[e.jsx("label",{className:"block",children:e.jsxs("span",{className:"flex text-sm font-medium mb-1",children:[e.jsx(u,{className:"text-md mb-2 text-[#344054] text-[16px]",text:`${n(t?.volunteer_page_form_questions?.q8_skill?.question)} (${n(t?.volunteer_page_form_questions?.q8_skill?.placeholder)})`}),e.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}),e.jsx(i,{onchange:s=>a(r=>({...r,question_8_answer_1:s.target.value})),value:o.question_8_answer_1,required:!0,lableName:`${n(t?.volunteer_page_form_questions?.q8_skill?.why_skill?.question)}`,placeholder:`${n(t?.volunteer_page_form_questions?.q8_skill?.why_skill?.placeholder)}`})]}),e.jsx("div",{className:"mt-6",children:e.jsx(i,{onchange:s=>a(r=>({...r,question_9_answer_1:s.target.value})),value:o.question_9_answer_1,required:!0,lableName:`${n(t?.volunteer_page_form_questions?.q9_energy?.question)}`,placeholder:`${n(t?.volunteer_page_form_questions?.q9_energy?.placeholder)}`})}),e.jsxs("div",{className:"mt-6",children:[e.jsx("label",{className:"block",children:e.jsxs("span",{className:"flex text-sm font-medium mb-1",children:[e.jsx(u,{className:"text-md mb-2 text-[#344054] text-[16px]",text:`${n(t?.volunteer_page_form_questions?.q10_rules?.question)}`}),e.jsx("span",{className:"text-red-500 ml-1",children:"*"})]})}),e.jsx(i,{onchange:s=>a(r=>({...r,question_10_answer_1:s.target.value})),value:o.question_10_answer_1,required:!0,lableName:`${n(t?.volunteer_page_form_questions?.q10_rules?.example?.question)}`,placeholder:`${n(t?.volunteer_page_form_questions?.q10_rules?.example?.placeholder)}`})]}),e.jsx("div",{className:"mt-6",children:e.jsx(i,{onchange:s=>a(r=>({...r,question_11_answer_1:s.target.value})),value:o.question_11_answer_1,required:!0,lableName:`${n(t?.volunteer_page_form_questions?.q11_adaptability?.question)}`,placeholder:`${n(t?.volunteer_page_form_questions?.q11_adaptability?.placeholder)}`})}),e.jsx("div",{className:"mt-6",children:e.jsx(i,{onchange:s=>a(r=>({...r,question_12_answer_1:s.target.value})),value:o.question_12_answer_1,required:!0,lableName:`${n(t?.volunteer_page_form_questions?.q12_excites?.question)}`,placeholder:`${n(t?.volunteer_page_form_questions?.q12_excites?.placeholder)}`})}),e.jsxs("div",{className:"mt-6",children:[e.jsx("label",{className:"block",children:e.jsx("span",{className:"flex text-sm font-medium mb-1",children:e.jsx(u,{className:"text-md mb-2 text-[#344054] text-[16px]",text:`${n(t?.volunteer_page_form_questions?.q13_ai_tools?.question)} (${n(t?.volunteer_page_form_questions?.q13_ai_tools?.placeholder)})`})})}),e.jsx(i,{onchange:s=>a(r=>({...r,question_13_answer_1:s.target.value})),value:o.question_13_answer_1,required:!0,lableName:`${n(t?.volunteer_page_form_questions?.q13_ai_tools?.how_used?.question)}`,placeholder:`${n(t?.volunteer_page_form_questions?.q13_ai_tools?.how_used?.placeholder)}`})]}),e.jsx("div",{className:"mt-6",children:e.jsx(i,{onchange:s=>a(r=>({...r,question_14_answer_1:s.target.value})),value:o.question_14_answer_1,required:!1,lableName:`${n(t?.volunteer_page_form_questions?.q14_anything_else?.question)}`,placeholder:`${n(t?.volunteer_page_form_questions?.q14_anything_else?.placeholder)}`})}),e.jsx("hr",{className:"my-5",style:{borderColor:"#e3e3e3"}}),e.jsx("h2",{className:"text-lg font-semibold mb-0 mt-5",children:`${n(t?.volunteer_page_form_questions?.q15_documents?.question)}`}),e.jsx("div",{className:"mt-2",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-3",children:[e.jsxs("div",{children:[e.jsxs("span",{className:"flex text-sm font-medium mb-1",children:[e.jsx(u,{className:"text-md mb-2 text-[#344054] text-[16px]",text:`${n(t?.volunteer_page_form_questions?.q15_documents?.id_proof?.question)}`}),e.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),e.jsx("div",{className:"flex items-center justify-center w-full",children:e.jsxs("label",{htmlFor:"id-proof",className:"flex flex-col items-center justify-center w-full h-64 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 hover:bg-gray-100",children:[o.id_proof?e.jsxs("div",{className:"flex flex-col items-center justify-center pt-5 pb-6",children:[e.jsx("p",{className:"mb-2 text-sm text-gray-500 dark:text-gray-400",children:o.id_proof.name}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:`${n(t?.volunteer_page_form_questions?.q15_documents?.id_proof?.change)}`})]}):e.jsxs("div",{className:"flex flex-col items-center justify-center pt-5 pb-6",children:[e.jsx("svg",{className:"w-8 h-8 mb-4 text-gray-500 dark:text-gray-400","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 16",children:e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 13h3a3 3 0 0 0 0-6h-.025A5.56 5.56 0 0 0 16 6.5 5.5 5.5 0 0 0 5.207 5.021C5.137 5.017 5.071 5 5 5a4 4 0 0 0 0 8h2.167M10 15V6m0 0L8 8m2-2 2 2"})}),e.jsx("p",{className:"mb-2 text-sm text-gray-500 dark:text-gray-400",children:`${n(t?.volunteer_page_form_questions?.q15_documents?.id_proof?.placeholder)}`}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:"SVG, PNG, JPG or PDF (MAX. 500KB)"})]}),e.jsx("input",{id:"id-proof",type:"file",className:"hidden",onChange:s=>y(s,"id_proof")})]})})]}),e.jsxs("div",{children:[e.jsxs("span",{className:"flex text-sm font-medium mb-1",children:[e.jsx(u,{className:"text-md mb-2 text-[#344054] text-[16px]",text:`${n(t?.volunteer_page_form_questions?.q15_documents?.photograph?.question)}`}),e.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),e.jsx("div",{className:"flex items-center justify-center w-full",children:e.jsxs("label",{htmlFor:"cover_image",className:"flex flex-col items-center justify-center w-full h-64 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 hover:bg-gray-100",children:[o.cover_image?e.jsxs("div",{className:"flex flex-col items-center justify-center pt-5 pb-6",children:[e.jsx("p",{className:"mb-2 text-sm text-gray-500 dark:text-gray-400",children:o.cover_image.name}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:`${n(t?.volunteer_page_form_questions?.q15_documents?.photograph?.change)}`})]}):e.jsxs("div",{className:"flex flex-col items-center justify-center pt-5 pb-6",children:[e.jsx("svg",{className:"w-8 h-8 mb-4 text-gray-500 dark:text-gray-400","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 16",children:e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 13h3a3 3 0 0 0 0-6h-.025A5.56 5.56 0 0 0 16 6.5 5.5 5.5 0 0 0 5.207 5.021C5.137 5.017 5.071 5 5 5a4 4 0 0 0 0 8h2.167M10 15V6m0 0L8 8m2-2 2 2"})}),e.jsx("p",{className:"mb-2 text-sm text-gray-500 dark:text-gray-400",children:`${n(t?.volunteer_page_form_questions?.q15_documents?.photograph?.placeholder)}`}),e.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:"PNG or JPG (MAX. 5MB)"})]}),e.jsx("input",{id:"cover_image",type:"file",className:"hidden",onChange:s=>y(s,"cover_image")})]})})]})]})}),e.jsx("div",{className:"mx-auto w-[200px] block",children:e.jsx(G,{isLoading:x,onClick:()=>R(),className:"my-20 w-full mt-10 mb-0",btnName:`${n(t?.contact_us_page?.button)}`})})]})}),e.jsx(C,{visibility:h,setModalVisibility:()=>w(!1),height:"h-fit max-h-[74%]",refNumber:S})]})},C=({refNumber:b,visibility:q,setModalVisibility:f,height:n="h-[74%]"})=>e.jsx("div",{className:`bg-black/80 ${q?"block":"hidden"} fixed top-0 left-0 w-screen h-screen z-[9999999] flex justify-center items-end `,children:e.jsxs("div",{className:`w-full ssm:w-[1440px] ${n} relative rounded-t-xl bg-white overflow-y-scroll `,children:[e.jsx("div",{className:"absolute top-0 right-2 bg-white flex justify-end p-4 h-[10%]",children:e.jsx(J,{onClick:()=>f(),className:"text-[#444444] text-[30px] -top-[100%] cursor-pointer"})}),e.jsx("div",{className:"h-[560px] overflow-y-auto pt-5",children:e.jsxs("div",{className:"px-8 py-6 flex flex-col items-center justify-center h-full",children:[e.jsx("h2",{className:"text-2xl font-semibold text-green-700 mb-4 text-center",children:"Thank y
1ou for applying to volunteer at the Jaipur Literature Festivals 2026 edition."}),e.jsx("p",{className:"text-base text-gray-700 mb-2 text-center",children:"Your responses have been successfully recorded and your application is now under process."}),e.jsx("p",{className:"text-base text-gray-700 mb-2 text-center",children:"A decision on your application will be taken shortly and you will be notified about the next steps from our end soon. As a matter of hygiene, please keep checking your spam folder for updates."}),e.jsxs("p",{className:"text-base text-gray-700 mb-2 text-center",children:["Your unique reference number is ",e.jsx("span",{className:"font-semibold",children:b}),". For any questions, please feel free to contact us on ",e.jsx("a",{href:"mailto:[email protected]",className:"text-blue-600 underline",children:"[email protected]"})]}),e.jsxs("p",{className:"text-base text-gray-500 mt-6 text-center",children:["Regards",e.jsx("br",{}),"JLF Volunteer Team"]}),e.jsxs("p",{className:"text-xs text-red-500 mt-4 text-center",children:["Please take a screenshot of this page. If required, you can reference the information using the Reference ID to retrieve details from your application.",e.jsx("br",{}),"If you haven't received the email, please check your spam folder as well."]})]})})]})});C.propTypes={refNumber:p.string,visibility:p.bool,setModalVisibility:p.func,height:p.string};D.propTypes={countries:p.array};const X=({currentCity:b={},onCityChange:q=()=>{}})=>{const[f,n]=c.useState([]),t=W(),{city:x}=Y(),[d,h]=c.useState(!1);c.useEffect(()=>{w()},[]);async function w(){try{h(!0),x||await q(null);const[g,j]=await Promise.all([$(H),x?$(`${U}?cityslug=${x}`):Promise.resolve(null)]);n(g),j?.city&&await q(j.city),h(!1),window.scrollTo(0,0)}catch(g){h(!1),t(`/404?error=${g}`)}}return e.jsxs(I.Fragment,{children:[e.jsx(P,{}),d?e.jsx(z,{className:"w-full h-screen"}):e.jsxs("div",{children:[e.jsx(V,{formPage:!0}),e.jsx(D,{countries:f?.data})]})]})};X.propTypes={currentCity:p.object,onCityChange:p.func};export{X 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.