PageSourceSearch

https://hsl.co.in/build/assets/RegistrationForm-D2RnjUrg.js

js hsl.co.in collected 2026-10-09 22:40:50 UTC 26,890 bytes, 1 lines download raw bytes

1import{G as pe,r as c,j as e,S as he,a as T}from"./app-Mnt2IEGe.js";import{G as ue}from"./GuestLayout-BYnLiqFZ.js";import{S as k}from"./sweetalert2.esm.all-CnnFETqF.js";import{G as xe}from"./gift-CL6MaVUj.js";import{S as ge,C as be}from"./stethoscope-xEIb5Z6o.js";import{L as w}from"./loader-circle-C2XBCSnq.js";import{C as ye}from"./circle-check-C5DlcsLz.js";import{M as fe,B as je,C as Ne}from"./mail-check-wimqAtcN.js";import{S as ve}from"./share-2-D7zohvkM.js";import{S as ke}from"./shield-check-BX5jY0rg.js";import"./ApplicationLogo-JvKRx6b1.js";import"./x-B1Pn9Kmg.js";import"./message-circle-D4MbkUVn.js";import"./phone-DSAsYLtt.js";import"./chevron-down-BlAiga6f.js";import"./user-ad0RTXxq.js";import"./package-CT4joqbC.js";import"./map-pin-BuVEKMGp.js";import"./truck-CpGakV_6.js";import"./shopping-cart-DokKNEt4.js";import"./search-BeXkNHdv.js";import"./clock-Dnho5FNh.js";import"./shield-Da3uiB5y.js";import"./mail-Ce-sk81h.js";const Z=["Andaman and Nicobar Islands","Andhra Pradesh","Arunachal Pradesh","Assam","Bihar","Chandigarh","Chhattisgarh","Dadra and Nagar Haveli and Daman and Diu","Delhi","Goa","Gujarat","Haryana","Himachal Pradesh","Jammu and Kashmir","Jharkhand","Karnataka","Kerala","Ladakh","Lakshadweep","Madhya Pradesh","Maharashtra","Manipur","Meghalaya","Mizoram","Nagaland","Odisha","Puducherry","Punjab","Rajasthan","Sikkim","Tamil Nadu","Telangana","Tripura","Uttar Pradesh","Uttarakhand","West Bengal"],we=["Photo-framed Certificate of Appreciation that can be placed at your clinic/office.","Regular free samples of products as and when sent by the company.","Free gifts as and when sent by the company.","Knowledge sharing events (Webinars, seminars, etc.)"],l="w-full px-4 py-2.5 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent outline-none transition";function L({index:d,title:p,subtitle:x,icon:s}){return e.jsxs("div",{className:"mb-5",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"bg-primary/10 p-2 rounded-lg",children:e.jsx(s,{className:"w-5 h-5 text-primary"})}),e.jsxs("h2",{className:"text-lg sm:text-xl font-bold text-primary",children:[d,". ",p]})]}),x&&e.jsx("p",{className:"text-sm text-gray-600 mt-2",children:x})]})}function _e(d){const p=/^(\d{2})-(\d{2})-(\d{4})$/.exec(d||"");return p?`${p[3]}-${p[2]}-${p[1]}`:""}function Se(d){const[p,x,s]=(d||"").split("-");return p&&x&&s?`${s}-${x}-${p}`:""}function ee({value:d,onChange:p,max:x}){const s=c.useRef(null);function i(h){const r=h.target.value.replace(/\D/g,"").slice(0,8);let j=r.slice(0,2);r.length>2&&(j+="-"+r.slice(2,4)),r.length>4&&(j+="-"+r.slice(4)),p(j)}function O(){const h=s.current;if(h)try{h.showPicker()}catch{h.focus(),h.click()}}return e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",inputMode:"numeric",value:d,onChange:i,maxLength:10,placeholder:"dd-mm-yyyy",className:`${l} pr-11`}),e.jsx("button",{type:"button",onClick:O,className:"absolute right-2 top-1/2 -translate-y-1/2 p-1.5 text-gray-500 hover:text-primary","aria-label":"Open calendar",children:e.jsx(be,{className:"w-5 h-5"})}),e.jsx("input",{ref:s,type:"date",tabIndex:-1,"aria-hidden":"true",value:_e(d),max:x,onChange:h=>p(Se(h.target.value)),className:"absolute right-2 bottom-0 w-0 h-0 opacity-0 pointer-events-none"})]})}function n({message:d}){return d?e.jsx("div",{className:"text-sm text-red-600 mt-1",children:d}):null}function Qe({specialities:d=[],salutations:p=["Dr."],genders:x=["Male","Female","Prefer not to say"]}){const{data:s,setData:i,post:O,processing:h,errors:r,reset:j,clearErrors:_,setError:ae}=pe({salutation:p[0]??"Dr.",name:"",gender:"",specialities:d.length>0?[d[0]]:[],other_speciality:"",phone:"",whatsapp_same_as_phone:!0,whatsapp_number:"",email:"",clinic_name:"",business_card:null,address_building:"",address_street:"",address_landmark:"",pincode:"",area:"",city:"",state:"",date_of_birth:"",date_of_anniversary:"",instagram_url:"",facebook_url:"",twitter_url:"",linkedin_url:"",youtube_url:"",consent_data_bank:!1,consent_communications:!1}),S=c.useRef(null),[F,B]=c.useState(!1),[E,H]=c.useState(""),[g,R]=c.useState(!1),[G,U]=c.useState(!1),[V,W]=c.useState(!1),[K,f]=c.useState(""),[$,b]=c.useState(""),[N,I]=c.useState(0),[C,v]=c.useState(null),M=c.useRef(null),[se,q]=c.useState(!1),[J,P]=c.useState(""),[Y,D]=c.useState([]),A=c.useRef(null);c.useEffect(()=>{if(N<=0)return;const a=setTimeout(()=>I(t=>t-1),1e3);return()=>clearTimeout(a)},[N]),c.useEffect(()=>()=>
1{clearTimeout(M.current),clearTimeout(A.current)},[]);function z(a){const t=s.specialities,o=t.includes(a)?t.filter(u=>u!==a):[...t,a];i("specialities",o),_("specialities")}function te(a){const t=a.target.value.replace(/\D/g,"").slice(0,10);i("phone",t),v(null),clearTimeout(M.current),t.length===10&&(v("checking"),M.current=setTimeout(async()=>{try{const o=await T.get(route("doctors.form.check.phone"),{params:{phone:t}});v(o.data.available?"available":"taken")}catch{v(null)}},450))}function re(a){const t=a.target.value.replace(/\D/g,"").slice(0,6);if(i("pincode",t),P(""),clearTimeout(A.current),t.length!==6){D([]);return}q(!0),A.current=setTimeout(async()=>{var o,u;try{const y=await T.get(route("doctors.form.pincode",{pincode:t})),{areas:m=[],city:Q="",state:me=""}=y.data;D(m),i(X=>({...X,area:m.length===1?m[0]:X.area,city:Q,state:me})),P(m.length>1?"Locality list loaded - please pick your area.":"City and state filled automatically.")}catch(y){D([]),P(((u=(o=y==null?void 0:y.response)==null?void 0:o.data)==null?void 0:u.message)||"Could not look up this pincode. Please fill the details manually.")}finally{q(!1)}},450)}function ie(a){i("email",a.target.value),R(!1),B(!1),H(""),f(""),b("")}async function ne(){var a,t,o,u,y;if(b(""),f(""),!s.email||!/^\S+@\S+\.\S+$/.test(s.email)){b("Please enter a valid email address first.");return}U(!0);try{const m=await T.post(route("doctors.form.otp.send"),{email:s.email});B(!0),I(60),f(m.data.message)}catch(m){((a=m==null?void 0:m.response)==null?void 0:a.status)===429&&((o=(t=m==null?void 0:m.response)==null?void 0:t.data)!=null&&o.retry_after)&&I(m.response.data.retry_after),b(((y=(u=m==null?void 0:m.response)==null?void 0:u.data)==null?void 0:y.message)||"Could not send the verification code. Please try again.")}finally{U(!1)}}async function le(){var a,t;if(b(""),f(""),E.length!==6){b("Please enter the 6-digit code sent to your email.");return}W(!0);try{const o=await T.post(route("doctors.form.otp.verify"),{email:s.email,otp:E});R(!0),f(o.data.message)}catch(o){b(((t=(a=o==null?void 0:o.response)==null?void 0:a.data)==null?void 0:t.message)||"Verification failed. Please try again.")}finally{W(!1)}}function oe(){j(),S.current&&(S.current.value=""),B(!1),H(""),R(!1),f(""),b(""),v(null),D([]),P("")}function ce(a){var t;if(a.preventDefault(),!s.consent_communications){ae("consent_communications","Please agree to receive professional updates, initiatives and communications from HSL Homoeopathy."),(t=document.getElementById("consent_communications"))==null||t.focus();return}if(!g){k.fire({icon:"warning",title:"Email not verified",text:"Please verify your email address with the OTP before submitting the form.",confirmButtonColor:"#2e3192"});return}if(C==="taken"){k.fire({icon:"warning",title:"Phone number already registered",text:"This phone number already exists in our Doctor Data Bank. Please use a different number.",confirmButtonColor:"#2e3192"});return}if(s.specialities.length===0){k.fire({icon:"warning",title:"Speciality required",text:"Please select at least one speciality.",confirmButtonColor:"#2e3192"});return}O(route("doctors.form.store"),{preserveScroll:!0,onSuccess:()=>{k.fire({icon:"success",title:"Thank you, Doctor!",text:"Your details have been submitted successfully. A confirmation email is on its way to you.",confirmButtonColor:"#2e3192"}),oe()},onError:o=>{const u=Object.keys(o||{})[0];k.fire({icon:"error",title:"Please check the form",text:u&&o[u]||"Some fields need your attention. Please review and try again.",confirmButtonColor:"#2e3192"})}})}const de=s.specialities.includes("Other");return e.jsxs(ue,{showHeader:!1,showFooterQuickLinks:!1,children:[e.jsx(he,{title:"Doctor Data Bank Form | HSL Homoeopathy"}),e.jsxs("div",{className:"bg-gray-50 min-h-screen",children:[e.jsx("div",{className:"w-full bg-white",children:e.jsx("img",{src:"/img/HSL-Doctor-form-header.png",alt:"HSL Homoeopathy - Doctor Data Bank",className:"w-full h-auto block"})}),e.jsxs("div",{className:"max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 pt-2 pb-8 sm:pb-10",children:[e.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-6 sm:p-8",children:[e.jsx("p",{className:"text-lg font-bold text-gray-900",children:"Dear Doctor,"}),e.jsx("p",{className:"mt-4 text-gray-700 leading-relaxed",children:"Greetings from HSL Homoeopathy!"}),e.jsx("p",{className:"mt-4 text-gray-700 leading-relaxed",children:"We sincerely value your association with the homoeopathic medical community and appreciate your continued contribution towards advancing holistic healthcare."}),e.jsx("p",{className:"mt-4 text-gray-700 leading-relaxed",children:"As part of our initiative to update and validate our Doctor Data Bank, we request you to kindly share your latest professional and contact details through this short form."}),e.jsx("p",{className:"mt-4 text-gray-700 leading-relaxed",children:"The agenda of this data collection is to update our database and recognise/endorse the doctors who are helping us GROW. Kindl
1y observe, once you fill up below questionnaire you will help us to create HSL community. We are coming up with many aggressive schemes and offers to create win-win proposition. Please note once you fill-up the questionnaire, you will be eligible for below benefits:"}),e.jsxs("div",{className:"mt-6 bg-primary-light/60 border border-primary/20 rounded-lg p-5",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-3",children:[e.jsx(xe,{className:"w-5 h-5 text-primary"}),e.jsx("span",{className:"font-bold text-primary",children:"Your Benefits"}),e.jsx("span",{className:"text-xs font-medium text-primary",children:"(T&C apply)"})]}),e.jsx("ol",{className:"space-y-2",children:we.map((a,t)=>e.jsxs("li",{className:"flex gap-3 text-gray-800 leading-relaxed",children:[e.jsxs("span",{className:"font-bold text-primary shrink-0",children:[t+1,"."]}),e.jsx("span",{children:a})]},t))})]}),e.jsx("p",{className:"mt-4 text-gray-700 leading-relaxed",children:"Please provide accurate information. The form takes only a few minutes to complete."})]}),e.jsxs("form",{onSubmit:ce,className:"mt-8 space-y-6",noValidate:!0,children:[e.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-6 sm:p-8",children:[e.jsx(L,{index:"1",title:"Professional Details",icon:ge}),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold text-gray-700 mb-2",children:["Name of Doctor"," ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("div",{className:"w-28 sm:w-32 shrink-0",children:e.jsx("select",{value:s.salutation,onChange:a=>i("salutation",a.target.value),className:`${l} bg-white`,"aria-label":"Salutation",children:p.map(a=>e.jsx("option",{value:a,children:a},a))})}),e.jsx("div",{className:"flex-1 min-w-0",children:e.jsx("input",{type:"text",value:s.name,onChange:a=>i("name",a.target.value),className:l,placeholder:"Enter your full name"})})]}),e.jsx(n,{message:r.salutation}),e.jsx(n,{message:r.name})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold text-gray-700 mb-2",children:["Gender"," ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2",children:x.map(a=>{const t=s.gender===a;return e.jsxs("label",{className:`flex items-center gap-2 px-3 py-2.5 border rounded-lg cursor-pointer transition text-sm ${t?"border-primary bg-primary/5":"border-gray-300 hover:border-primary/50"}`,children:[e.jsx("input",{type:"radio",name:"gender",value:a,checked:t,onChange:()=>i("gender",a),className:"w-4 h-4 border-gray-400 text-primary focus:ring-primary"}),e.jsx("span",{className:"text-gray-800",children:a})]},a)})}),e.jsx(n,{message:r.gender})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold text-gray-700 mb-2",children:["Speciality"," ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"space-y-2",children:[d.slice(0,1).map(a=>{const t=s.specialities.includes(a);return e.jsxs("label",{className:`flex items-center gap-3 px-4 py-3 border rounded-lg cursor-pointer transition ${t?"border-primary bg-primary-light/50":"border-gray-300 hover:bg-gray-50"}`,children:[e.jsx("input",{type:"checkbox",checked:t,onChange:()=>z(a),className:"w-4 h-4 rounded border-gray-400 text-primary focus:ring-primary"}),e.jsx("span",{className:"text-gray-800",children:a})]},a)}),d.length>1&&e.jsxs("div",{className:"pt-3",children:[e.jsx("h3",{className:"font-semibold text-gray-700 mb-2",children:"Area of Interest"}),e.jsx("div",{className:"space-y-2",children:d.slice(1).map(a=>{const t=s.specialities.includes(a);return e.jsxs("label",{className:`flex items-center gap-3 px-4 py-3 border rounded-lg cursor-pointer transition ${t?"border-primary bg-primary-light/50":"border-gray-300 hover:bg-gray-50"}`,children:[e.jsx("input",{type:"checkbox",checked:t,onChange:()=>z(a),className:"w-4 h-4 rounded border-gray-400 text-primary focus:ring-primary"}),e.jsx("span",{className:"text-gray-800",children:a})]},a)})})]})]}),e.jsx(n,{message:r.specialities}),de&&e.jsxs("div",{className:"mt-3",children:[e.jsx("input",{type:"text",value:s.other_speciality,onChange:a=>i("other_speciality",a.target.value),className:l,placeholder:"Please specify your speciality"}),e.jsx(n,{message:r.other_speciality})]})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold text-gray-700 mb-2",children:["Phone Number"," ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"flex",children:[e.jsx("span",{className:"inline-flex items-center px-3 border border-r-0 border-gray-300 rounded-l-lg bg-gray-50 text-gray-600 text-sm",children:"+91"}),e.jsx("input",{type:"tel",inputMode:"numeric",value:s.phone,onChange:te,className:`${l} rounded-l-none`,placeholder:"10-digit mobile number"})]}),C==="checking"&&e.jsxs("div",{className:"text-sm text-gray-500 mt-1 flex items-center gap-1",children:[e.jsx(w,{className:"w-3.5 h-3.5 animate-spin"}),"Checking availability..."]}),C==="available"&&e.jsxs("div",{className:"text-sm text-green-600 mt-1 flex items-center gap-1",children:[e.jsx(ye,{className:"w-3.5 h-3.5"}),"This number is available."]}),C==="taken"&&e.jsx("div",{className:"text-sm text-red-600 mt-1",children:"This phone number is already registered in our Doctor Data Bank."}),e.jsx(n,{message:r.phone})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold text-gray-700 mb-2",children:["WhatsApp Number"," ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("label",{className:"flex items-center gap-2 mb-2 cursor-pointer text-sm text-gray-700",children:[e.jsx("input",{type:"checkbox",checked:s.whatsapp_same_as_phone,onChange:a=>i("whatsapp_same_as_phone",a.target.checked),className:"w-4 h-4 rounded border-gray-400 text-primary focus:ring-primary"}),"Same as phone number"]}),e.jsxs("div",{className:"flex",children:[e.jsx("span",{className:"inline-flex items-center px-3 border border-r-0 border-gray-300 rounded-l-lg bg-gray-50 text-gray-600 text-sm",children:"+91"}),e.jsx("input",{type:"tel",inputMode:"numeric",value:s.whatsapp_same_as_phone?s.phone:s.whatsapp_number,onChange:a=>i("whatsapp_number",a.target.value.replace(/\D/g,"").slice(0,10)),disabled:s.whatsapp_same_as_phone,className:`${l} rounded-l-none disabled:bg-gray-100 disabled:text-gray-600`,placeholder:"10-digit WhatsApp number"})]}),e.jsx(n,{message:r.whatsapp_number})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold text-gray-700 mb-2",children:["Email Address"," ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[e.jsx("input",{type:"email",value:s.email,onChange:ie,disabled:g,className:`${l} ${g?"bg-gray-100 text-gray-600":""}`,placeholder:"[email protected]"}),!g&&e.jsx("button",{type:"button",onClick:ne,disabled:G||N>0,className:"shrink-0 px-5 py-2.5 rounded-lg bg-primary text-white font-semibold hover:bg-primary/90 disabled:opacity-60 disabled:cursor-not-allowed transition whitespace-nowrap",children:G?e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(w,{className:"w-4 h-4 animate-spin"}),"Sending..."]}):N>0?`Resend in ${N}s`:F?"Resend OTP":"Send OTP"})]}),g&&e.jsxs("div",{className:"mt-2 flex items-center gap-2 text-sm font-semibold text-green-700 bg-green-50 border border-green-200 rounded-lg px-3 py-2",children:[e.jsx(fe,{className:"w-4 h-4"}),"Email verified successfully."]}),F&&!g&&e.jsxs("div",{className:"mt-3 bg-gray-50 border border-gray-200 rounded-lg p-4",children:[e.jsx("label",{className:"block text-sm font-semibold text-gray-700 mb-2",children:"Enter the 6-digit code sent to your email"}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[e.jsx("input",{type:"text",inputMode:"numeric",maxLength:6,value:E,onChange:a=>H(a.target.value.replace(/\D/g,"").slice(0,6)),className:`${l} tracking-[0.4em] font-semibold text-center sm:max-w-[200px]`,placeholder:"000000"}),e.jsx("button",{type:"button",onClick:le,disabled:V,className:"shrink-0 px-5 py-2.5 rounded-lg bg-green-600 text-white font-semibold hover:bg-green-700 disabled:opacity-60 transition",children:V?e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(w,{className:"w-4 h-4 animate-spin"}),"Verifying..."]}):"Verify"})]})]}),K&&!$&&e.jsx("div",{className:"text-sm text-green-700 mt-2",children:K}),$&&e.jsx("div",{className:"text-sm text-red-600 mt-2",children:$}),e.jsx(n,{message:r.email})]})]})]}),e.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-6 sm:p-8",children:[e.jsx(L,{index:"2",title:"Clinic Information",icon:je}),e.jsxs("div",{className:"space-y-5",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold text-gray-700 mb-2",children:["Clinic Name"," ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx("input",{type:"text",value:s.clinic_name,onChange:a=>i("clinic_name",a.target.value),className:l,placeholder:"Enter clinic name"}),e.jsx(n,{message:r.clinic_name})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"business_card",className:"block font-semibold text-gray-700 mb-2",children:"Visiting / Business Card Image (optional)"}),e.jsx("input",{ref:S,id:"business_card",type:"file",accept:"image/jpeg,image/png,image/webp",onChange:a=>{var t;i("business_card",((t=a.target.files)==null?void 0:t[0])||null),_("business_card")},className:l,"aria-describedby":"business_card_help"}),e.jsx("p",{id:"business_card_help",className:"text-sm text-gray-500 mt-1",children:"Upload a clear JPG, PNG or WebP image, up to 2 MB."}),s.business_card&&e.jsx("button",{type:"button",className:"text-sm text-primary hover:underline mt-2",onClick:()=>{i("business_card",null),S.current.value="",_("business_card")},children:"Remove image"}),e.jsx(n,{message:r.business_card})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold text-gray-700 mb-2",children:["Clinic / Shop No., Floor, Building Name"," ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx("input",{type:"text",value:s.address_building,onChange:a=>i("address_building",a.target.value),className:l,placeholder:"e.g. Shop 12, 1st Floor, Sai Plaza"}),e.jsx(n,{message:r.address_building})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold text-gray-700 mb-2",children:["Street / Road Name"," ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx("input",{type:"text",value:s.address_street,onChange:a=>i("address_street",a.target.value),className:l,placeholder:"e.g. MG Road, Sector 14"}),e.jsx(n,{message:r.address_street})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold text-gray-700 mb-2",children:"Landmark"}),e.jsx("input",{type:"text",value:s.address_landmark,onChange:a=>i("address_landmark",a.target.value),className:l,placeholder:"e.g. Near City Hospital (optional)"}),e.jsx(n,{message:r.address_landmark})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold text-gray-700 mb-2",children:["Pincode"," ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:"text",inputMode:"numeric",value:s.pincode,onChange:re,className:l,placeholder:"6-digit pincode"}),se&&e.jsx(w,{className:"w-4 h-4 animate-spin text-primary absolute right-3 top-1/2 -translate-y-1/2"})]}),J&&e.jsx("div",{className:"text-sm text-gray-600 mt-1",children:J}),e.jsx(n,{message:r.pincode})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold text-gray-700 mb-2",children:["Area / Locality"," ",e.jsx("span",{className:"text-red-500",children:"*"})]}),Y.length>1?e.jsxs("select",{value:s.area,onChange:a=>i("area",a.target.value),className:`${l} bg-white`,children:[e.jsx("option",{value:"",children:"Select area / locality..."}),Y.map(a=>e.jsx("option",{value:a,children:a},a))]}):e.jsx("input",{type:"text",value:s.area,onChange:a=>i("area",a.target.value),className:l,placeholder:"Area or locality"}),e.jsx(n,{message:r.area})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold text-gray-700 mb-2",children:["City"," ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx("input",{type:"text",value:s.city,onChange:a=>i("city",a.target.value),className:l,placeholder:"City"}),e.jsx(n,{message:r.city})]}),e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold text-gray-700 mb-2",children:["State"," ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsxs("select",{value:s.state,onChange:a=>i("state",a.target.value),className:`${l} bg-white`,children:[e.jsx("option",{value:"",children:"Select state..."}),Z.map(a=>e.jsx("option",{value:a,children:a},a)),s.state&&!Z.includes(s.state)&&e.jsx("option",{value:s.state,children:s.state})]}),e.jsx(n,{message:r.state})]})]})]})]}),e.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-6 sm:p-8",children:[e.jsx(L,{index:"3",title:"Personal Details",icon:Ne}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[e.jsxs("div",{children:[e.jsxs("label",{className:"block font-semibold text-gray-700 mb-2",children:["Date of Birth"," ",e.jsx("span",{className:"text-red-500",children:"*"})]}),e.jsx(ee,{value:s.date_of_birth,onChange:a=>i("date_of_birth",a),max:new Date().toISOString().slice(0,10)}),e.jsx(n,{message:r.date_of_birth})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold text-gray-700 mb-2",children:"Date of Anniversary"}),e.jsx(ee,{value:s.date_of_anniversary,onChange:a=>i("date_of_anniversary",a),max:new Date().toISOString().slice(0,10)}),e.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Please enter your wedding anniversary date, if you wish to 
1share it."}),e.jsx(n,{message:r.date_of_anniversary})]})]})]}),e.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-6 sm:p-8",children:[e.jsx(L,{index:"4",title:"Social Media & Professional Profiles",subtitle:"Please provide the links to your social media/professional profiles, if available. These fields are optional.",icon:ve}),e.jsx("div",{className:"space-y-5",children:[{key:"instagram_url",label:"Instagram Profile URL",placeholder:"https://instagram.com/yourprofile"},{key:"facebook_url",label:"Facebook Profile/Page URL",placeholder:"https://facebook.com/yourpage"},{key:"twitter_url",label:"Twitter / X Profile URL",placeholder:"https://x.com/yourprofile"},{key:"linkedin_url",label:"LinkedIn Profile URL",placeholder:"https://linkedin.com/in/yourprofile"},{key:"youtube_url",label:"YouTube Channel URL",placeholder:"https://youtube.com/@yourchannel"}].map(a=>e.jsxs("div",{children:[e.jsx("label",{className:"block font-semibold text-gray-700 mb-2",children:a.label}),e.jsx("input",{type:"url",value:s[a.key],onChange:t=>i(a.key,t.target.value),className:l,placeholder:a.placeholder}),e.jsx(n,{message:r[a.key]})]},a.key))}),e.jsxs("div",{className:"mt-7 space-y-4 border-t border-gray-200 pt-6",children:[e.jsxs("label",{className:"flex gap-3 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:s.consent_data_bank,onChange:a=>i("consent_data_bank",a.target.checked),className:"mt-1 w-4 h-4 rounded border-gray-400 text-primary focus:ring-primary shrink-0"}),e.jsxs("span",{className:"text-sm text-gray-700 leading-relaxed",children:["I confirm that the information provided by me is accurate and may be used by HSL Homoeopathy for maintaining and validating its professional Doctor Data Bank and for relevant professional communication and appreciation initiatives."," ",e.jsx("span",{className:"text-red-500",children:"*"})]})]}),e.jsx(n,{message:r.consent_data_bank}),e.jsxs("label",{className:"flex gap-3 cursor-pointer",children:[e.jsx("input",{type:"checkbox",checked:s.consent_communications,id:"consent_communications",required:!0,"aria-invalid":!!r.consent_communications,onChange:a=>{i("consent_communications",a.target.checked),_("consent_communications")},className:"mt-1 w-4 h-4 rounded border-gray-400 text-primary focus:ring-primary shrink-0"}),e.jsxs("span",{className:"text-sm text-gray-700 leading-relaxed",children:["I would like to receive relevant professional updates, initiatives and communications from HSL Homoeopathy."," ",e.jsx("span",{className:"text-red-500",children:"*"})]})]}),e.jsx(n,{message:r.consent_communications})]})]}),e.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-gray-200 p-6 sm:p-8",children:[!g&&e.jsxs("div",{className:"mb-4 flex items-start gap-2 text-sm text-amber-800 bg-amber-50 border border-amber-200 rounded-lg px-4 py-3",children:[e.jsx(ke,{className:"w-4 h-4 mt-0.5 shrink-0"}),e.jsx("span",{children:"Please verify your email address with the OTP above before submitting this form."})]}),e.jsx("button",{type:"submit",disabled:h||!g,className:"w-full sm:w-auto px-8 py-3 rounded-lg bg-primary text-white font-bold text-base hover:bg-primary/90 disabled:opacity-60 disabled:cursor-not-allowed transition",children:h?e.jsxs("span",{className:"flex items-center justify-center gap-2",children:[e.jsx(w,{className:"w-4 h-4 animate-spin"}),"Submitting..."]}):"Submit Form"})]})]})]})]})]})}export{Qe 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.