1"use strict";(self.webpackChunktariqath_frontend=self.webpackChunktariqath_frontend||[]).push([[4806],{4806(a,e,s){s.r(e),s.d(e,{default:()=>_});var i=s(45),n=s(2555),l=s(5043),t=s(1641),r=s(64),o=s.n(r),d=s(3216),c=s(9456),h=s(1283),u=s(798),m=(s(2246),s(290),s(3490)),f=s(8685),p=s(6720),x=s(184),j=s(3131),v=s(2789),g=s(4910),N=s(2585),b=s(9660),y=s(4653),k=s(6446),A=s(1962),w=s(1149),C=s(1767),S=s(1635),T=s(9261),I=s(579);const D=["nafilFrom","nafilTo"],P={name:"",fatherName:"",age:"",city:"",address:"",pincode:"",state:"",country:"",whatsappNumber:"",email:"",officialIdProof:"",photo:"",education:"",occupation:"",islamicQalification:"",itikaafTimes:"",etekaafMaqsad:"",notes:"",itakaafType:"",nafilFrom:"",nafilTo:"",isbaiyath:"",baiyathWith:"",howLongBaiyath:"",muqaraba:"",sabaq:"",typeOfQidmat:"",priority:"normal",termsAccepted:!0},q={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"90%",maxWidth:450,bgcolor:"background.paper",borderRadius:"12px",boxShadow:24,p:4,textAlign:"center"},M=[{value:"sunnat",label:"Sunnah"},{value:"nafil",label:"Nafil"},{value:"hizbulbahr",label:"Hizbul Bahr"}],E=[{value:"Hazrath Maulana Sayyed Muhammad Talha Qasmi Naqshbandi Mujaddidi DB",label:"Yes, from Hazrath Maulana Sayyed Muhammad Talha Qasmi Naqshbandi Mujaddidi DB"},{value:"Others",label:"Yes, from Other Sheikh"},{value:"No",label:"No"}],O=[{value:"30",label:"Less than 30 mintues"},{value:"60",label:"30 minutes to 1 hour"},{value:"120",label:"1 hour to 2 hour"},{value:"180",label:"More than 2 hour"},{value:"0",label:"No Time Spent"}],B=[{value:"0 to 3",label:"0 to 3"},{value:"4 and Above",label:"4 and Above"}],W=[{value:"Khilane ki Khidmat",label:"Khilane ki Khidmat"},{value:"Safai Ki Khidmat",label:"Safai Ki Khidmat"},{value:"Nigrani Ki Khidmat",label:"Nigrani Ki Khidmat"}],z=[{value:"normal",label:"Normal"},{value:"handicap",label:"Handicap"},{value:"old age",label:"Old Age"}],_=()=>{var a,e,s,r,_,F,H;const Q=(0,d.Zp)(),R=(0,c.wA)(),{eventId:L}=(0,d.g)(),K=(0,l.useRef)([]),[U,Y]=(0,l.useState)(""),[V,G]=(0,l.useState)(!1),[J,Z]=(0,l.useState)(!1),[$,X]=(0,l.useState)(["","","","","",""]),[aa,ea]=(0,l.useState)(0),[sa,ia]=(0,l.useState)(P),[na,la]=(0,l.useState)({}),[ta,ra]=(0,l.useState)({photo:"",officialIdProof:""}),[oa,da]=(0,l.useState)(""),[ca,ha]=(0,l.useState)(""),[ua,ma]=(0,l.useState)(!1),[fa,pa]=(0,l.useState)(!1),[xa,ja]=(0,l.useState)(!1),[va,ga]=(0,l.useState)(!1),[Na,ba]=(0,l.useState)(!1),[ya,ka]=(0,l.useState)(!1),[Aa,wa]=(0,l.useState)([]),[Ca,Sa]=(0,l.useState)([]),[Ta,Ia]=(0,l.useState)([]),[Da,Pa]=(0,l.useState)(!1),qa=(0,l.useRef)(null),[Ma,Ea]=(0,l.useState)(null),[Oa,Ba]=(0,l.useState)(null),[Wa,za]=(0,l.useState)(!0),[_a,Fa]=(0,l.useState)("NOT_CHECKED");(0,l.useEffect)(()=>{L&&(0,f.Rn)(L,za,a=>{Ba(a)},a=>{o().fire("Error!",a||"Event not found","error"),Q("/")})},[L,Q]);const Ha=a=>!Array.isArray(null===Oa||void 0===Oa?void 0:Oa.hiddenOptionalFields)||!Oa.hiddenOptionalFields.includes(a);(0,l.useEffect)(()=>{if(!Oa)return;const a=Oa.allowedItikaafTypes;Array.isArray(a)&&1===a.length&&ia(e=>(0,n.A)((0,n.A)({},e),{},{itakaafType:a[0]}))},[Oa]),(0,l.useEffect)(()=>{if(aa>0){const a=setInterval(()=>{ea(a=>a-1)},1e3);return()=>clearInterval(a)}},[aa]),(0,l.useEffect)(()=>{const a=v.A.getAllCountries(),e=a.map(a=>({value:a.name,label:a.name,isoCode:a.isoCode}));wa(e);if(a.find(a=>"IN"===a.isoCode)){var s;const a=null===g.Ay||void 0===g.Ay||null===(s=g.Ay.getStatesOfCountry("IN"))||void 0===s?void 0:s.map(a=>({value:null===a||void 0===a?void 0:a.name,label:null===a||void 0===a?void 0:a.name,isoCode:null===a||void 0===a?void 0:a.isoCode}));ia(a=>(0,n.A)((0,n.A)({},a),{},{country:"India"})),Ia(a||[])}},[]),(0,l.useEffect)(()=>{J&&K.current[0]&&setTimeout(()=>{var a;return null===(a=K.current[0])||void 0===a?void 0:a.focus()},100)},[J]);const Qa=()=>{Z(!1),X(["","","","","",""])},Ra=a=>{const{name:e,value:s,type:i,checked:l}=a.target;let t="checkbox"===i?l:s;if(("text"===i||"textarea"===i)&&"string"===typeof t){if(!/^[\u0000-\u007F]*$/.test(t))return void(0,C.Ax)("Please enter only English characters")}const r=(0,b.SB)(e,t);ia(a=>(0,n.A)((0,n.A)({},a),{},{[e]:t})),la(r?{[e]:r}:{})},La=()=>
1{Ma&&(Ma.getTracks().forEach(a=>a.stop()),Ea(null)),Pa(!1)},Ka=a=>{let{name:e}=a;return na[e]&&(0,I.jsx)("p",{className:"error-field",children:na[e]})},Ua=V&&"NOT_CHECKED"!==_a&&null!==_a&&void 0!==_a&&"object"===typeof _a;if(Wa||!Oa)return(0,I.jsxs)("div",{className:"main-container",children:[(0,I.jsx)(u.A,{}),(0,I.jsx)("div",{className:"itakaaf-register-container",children:(0,I.jsx)(j.A,{})}),(0,I.jsx)(h.A,{})]});var Ya;return Oa.registrationEnd&&new Date(Oa.registrationEnd)<new Date?(0,I.jsxs)("main",{className:"main-container",children:[(0,I.jsx)(u.A,{}),(0,I.jsx)("div",{className:"itakaaf-register-container",children:(0,I.jsxs)("div",{className:"itakaaf-register-row",children:[(0,I.jsxs)("div",{className:"itikaaf-banner",children:[(0,I.jsx)("img",{src:(null===Oa||void 0===Oa||null===(Ya=Oa.banner)||void 0===Ya?void 0:Ya.url)||T,alt:"Itikaf Banner",className:"banner-web"}),(0,I.jsxs)("div",{children:[(0,I.jsx)("h2",{className:"itakaaf-register-heading-title",children:Oa.name}),(0,I.jsx)("h2",{className:"itakaaf-register-heading-title",children:(0,I.jsx)("div",{className:"font-urdu-title",children:"\u0627\u0639\u062a\u06a9\u0627\u0641 \u0631\u062c\u0633\u0679\u0631\u06cc\u0634\u0646"})})]})]}),(0,I.jsxs)("div",{className:"registration-closed-container",style:{textAlign:"center",padding:"40px 20px"},children:[(0,I.jsx)(p.uDv,{size:64,color:"#e53935"}),(0,I.jsx)("h2",{style:{marginTop:"16px",color:"#e53935"},children:"Registration Closed"}),(0,I.jsx)("p",{style:{marginTop:"8px",color:"#555",fontSize:"16px"},children:"The registration period for this event has ended."}),(0,I.jsx)("p",{className:"font-urdu",style:{marginTop:"8px",color:"#555",fontSize:"18px",direction:"rtl",textAlign:"center"},children:"\u0627\u0633 \u0627\u06cc\u0648\u0646\u0679 \u06a9\u06cc \u0631\u062c\u0633\u0679\u0631\u06cc\u0634\u0646 \u06a9\u06cc \u0645\u062f\u062a \u062e\u062a\u0645 \u06c1\u0648 \u06af\u0626\u06cc \u06c1\u06d2\u06d4"})]})]})}),(0,I.jsx)(h.A,{})]}):(0,I.jsxs)("main",{className:"main-container",children:[(0,I.jsx)(u.A,{}),(0,I.jsx)("div",{className:"itakaaf-register-container",children:(0,I.jsxs)("div",{className:"itakaaf-register-row",children:[(0,I.jsxs)("div",{className:"itikaaf-banner",children:[(0,I.jsx)("img",{src:(null===Oa||void 0===Oa||null===(a=Oa.banner)||void 0===a?void 0:a.url)||T,alt:"Itikaf Banner",className:"banner-web"}),(0,I.jsxs)("div",{children:[(0,I.jsx)("h2",{className:"itakaaf-register-heading-title",children:Oa.name}),(0,I.jsx)("h2",{className:"itakaaf-register-heading-title",children:(0,I.jsx)("div",{className:"font-urdu-title",children:"\u0627\u0639\u062a\u06a9\u0627\u0641 \u0631\u062c\u0633\u0679\u0631\u06cc\u0634\u0646"})}),(0,I.jsxs)("p",{className:"event-details-text",children:[null===(e=Oa.masjid)||void 0===e?void 0:e.name," - ",null===(s=Oa.masjid)||void 0===s?void 0:s.city]}),(0,I.jsxs)("p",{className:"event-details-text",children:[new Date(Oa.startDate).toLocaleDateString()," - ",new Date(Oa.endDate).toLocaleDateString()]})]})]}),(0,I.jsxs)("div",{className:"itakaaf-intro",children:[(0,I.jsxs)("div",{className:"left",children:[(0,I.jsx)("h4",{className:"itakaaf-item",children:"Please Fill the Form In English"}),(0,I.jsx)("h4",{className:"itakaaf-item",children:"Take a clear selfie in good lighting and ensure your face is clearly visible"}),(0,I.jsx)("h4",{className:"itakaaf-item",children:"Upload your ID (ie. Aadhar/ Voter ID/ DL)"})]}),(0,I.jsxs)("div",{className:"right",children:[(0,I.jsx)("h4",{className:"itakaaf-item urdu font-urdu",children:"\u0628\u0631\u0627\u0626\u06d2 \u0645\u06c1\u0631\u0628\u0627\u0646\u06cc \u0641\u0627\u0631\u0645 \u0627\u0646\u06af\u0631\u06cc\u0632\u06cc \u0632\u0628\u0627\u0646 \u0645\u06cc\u06ba \u0628\u06be\u0631\u06cc\u06ba\u06d4"}),(0,I.jsx)("h4",{className:"itakaaf-item urdu font-urdu",children:"\u0627\u0686\u06be\u06cc \u0631\u0648\u0634\u0646\u06cc \u0645\u06cc\u06ba \u0648\u0627\u0636\u062d \u0633\u06cc\u0644\u0641\u06cc \u0644\u06cc\u06ba \u0627\u0648\u0631 \u0627\u0633 \u0628\u0627\u062a \u06a9\u0627 \u062e\u06cc\u0627\u0644 \u0631\u06a9\u06be\u06cc\u06ba \u06a9\u06c1 \u0622\u067e \u06a9\u0627 \u0686\u06c1\u0631\u06c1 \u0635\u0627\u0641 \u0646\u0638\u0631 \u0622\u0626\u06d2"}),(0,I.jsx)("h4",{className:"itakaaf-item urdu font-urdu",children:"\u0627\u067e\u0646\u0627 \u0634\u0646\u0627\u062e\u062a\u06cc \u06a9\u0627\u0631\u0688 (\u0622\u062f\u06be\u0627\u0631/ \u0648\u0648\u0679\u0631 \u0622\u0626\u06cc \u0688\u06cc/ \u0644\u0627\u0626\u0633\u0646\u0633) \u0627\u067e\u0644\u0648\u0688 \u06a9\u0631\u06cc\u06ba\u06d4"})]})]}),(0,I.jsx)(w.A,{open:J,onClose:Qa,"aria-labelledby":"otp-modal-title",children:(0,I.jsxs)(k.A,{sx:q,children:[(0,I.jsx)("h3",{className:"font-english otp-modal-title",children:"Verify OTP"}),(0,I.jsxs)("p",{className:"font-english otp-modal-subtitle",children:["OTP sent to ",(0,I.jsx)("strong",{children:U})," via SMS & WhatsApp"]}),(0,I.jsx)("div",{className:"otp-inputs",children:$.map((a,e)=>(0,I.jsx)("input",{ref:a=>K.current[e]=a,type:"tel",inputMode:"numeric",pattern:"[0-9]*",maxLength:"6",className:"otp-input",value:a,onChange:a=>((a,e)=>{if(e.length>1){var s;const i=e.slice(0,6).replace(/\D/g,""),n=[...$];for(let e=0;e<i.length&&a+e<6;e++)n[a+e]=i[e];X(n);const l=Math.min(a+i.length,5);return void(null===(s=K.current[l])||void 0===s||s.focus())}if(!/^\d*$/.test(e))return;const i=[...$];var n;i[a]=e,X(i),e&&a<5&&(null===(n=K.current[a+1])||void 0===n||n.focus())})(e,a.target.value),onKeyDown:a=>((a,e)=>{var s;"Backspace"===e.key&&!$[a]&&a>0&&(null===(s=K.current[a-1])||void 0===s||s.focus())})(e,a),autoComplete:"one-time-code"},e))}),(0,I.jsx)("div",{className:"otp-timer",children:aa>0?(0,I.jsxs)("p",{className:"font-english",children:["Time remaining: ",(a=>{const e=Math.floor(a/60),s=a%60;return"".concat(e,":").concat(s.toString().padStart(2,"0"))})(aa)]}):(0,I.jsx)("button",{className:"resend-btn",onClick:()=>{X(["","","","","",""]),R((0,f.C8)(U,pa,a=>{a&&ea(60)}))},disabled:fa,children:"Resend OTP"})}),(0,I.jsxs)("div",{className:"otp-modal-actions",children:[(0,I.jsx)("button",{className:"itakaaf-submit-btn",onClick:()=>{const a=$.join("");6===a.length?R((0,f.D)(U,a,pa,a=>{a&&(G(!0),Z(!1))},a=>{if(a){var e;if(ia(e=>{var s,i,l,t,r;return(0,n.A)((0,n.A)({},e),{},{name:a.name||"",fatherName:a.fatherName||"",age:a.age||"",email:a.email||"",whatsappNumber:a.whatsappNumber||U,city:a.city||"",state:a.state||"",country:a.country||"India",address:a.address||"",education:a.education||"",occupation:a.occupation||"",pincode:
1a.pincode||"",islamicQalification:a.islamicQalification||"",itikaafTimes:a.itikaafTimes||"",priority:a.priority||"normal",isbaiyath:null!==(s=a.baiyath)&&void 0!==s&&s.isbaiyath?"Hazrath Maulana Sayyed Muhammad Talha Qasmi Naqshbandi Mujaddidi DB"===a.baiyath.baiyathWith?"Hazrath Maulana Sayyed Muhammad Talha Qasmi Naqshbandi Mujaddidi DB":a.baiyath.baiyathWith?"Others":"No":"",baiyathWith:(null===(i=a.baiyath)||void 0===i?void 0:i.baiyathWith)||"",howLongBaiyath:(null===(l=a.baiyath)||void 0===l?void 0:l.howLongBaiyath)||"",muqaraba:(null===(t=a.baiyath)||void 0===t?void 0:t.muqaraba)||"",sabaq:(null===(r=a.baiyath)||void 0===r?void 0:r.sabaq)||""})}),null!==(e=a.baiyath)&&void 0!==e&&e.isbaiyath&&"Hazrath Maulana Sayyed Muhammad Talha Qasmi Naqshbandi Mujaddidi DB"===a.baiyath.baiyathWith&&ba(!0),a.country){const e=v.A.getAllCountries().find(e=>e.name===a.country);if(e){var s;const n=null===g.Ay||void 0===g.Ay||null===(s=g.Ay.getStatesOfCountry(e.isoCode))||void 0===s?void 0:s.map(a=>({value:null===a||void 0===a?void 0:a.name,label:null===a||void 0===a?void 0:a.name,isoCode:null===a||void 0===a?void 0:a.isoCode}));if(Ia(n||[]),a.state){const s=null===n||void 0===n?void 0:n.find(e=>e.value===a.state);if(s&&s.isoCode){var i;const a=null===(i=N.A.getCitiesOfState(e.isoCode,s.isoCode))||void 0===i?void 0:i.map(a=>({value:null===a||void 0===a?void 0:a.name,label:null===a||void 0===a?void 0:a.name}));Sa(a||[])}}}}a.officialIdProof&&(ha(a.officialIdProof),ra(e=>(0,n.A)((0,n.A)({},e),{},{officialIdProof:(0,m.Ld)(a.officialIdProof)}))),a.photo&&(da(a.photo),ra(e=>(0,n.A)((0,n.A)({},e),{},{photo:(0,m.Ld)(a.photo)})))}},L,a=>{Fa(a)})):(0,C.Ax)("Please enter complete 6-digit OTP")},disabled:fa||6!==$.join("").length,children:fa?(0,I.jsx)(y.A,{color:"#fff",size:8}):"Verify OTP"}),(0,I.jsx)("button",{className:"cancel-btn",onClick:Qa,disabled:fa,children:"Cancel"})]})]})}),(0,I.jsx)(w.A,{open:Da,onClose:La,"aria-labelledby":"camera-modal-title",children:(0,I.jsxs)(k.A,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"90%",maxWidth:600,bgcolor:"background.paper",boxShadow:24,borderRadius:2,p:3},children:[(0,I.jsx)("h3",{className:"font-english",style:{marginBottom:"20px",textAlign:"center"},children:"Capture Your Selfie"}),(0,I.jsx)("div",{style:{position:"relative",width:"100%",aspectRatio:"4/3",backgroundColor:"#000",borderRadius:"8px",overflow:"hidden"},children:(0,I.jsx)("video",{ref:qa,autoPlay:!0,playsInline:!0,style:{width:"100%",height:"100%",objectFit:"cover"}})}),(0,I.jsxs)("div",{style:{display:"flex",gap:"12px",marginTop:"20px",justifyContent:"center"},children:[(0,I.jsx)("button",{type:"button",className:"itakaaf-submit-btn",onClick:async()=>{if(!qa.current)return;const a=document.createElement("canvas");a.width=qa.current.videoWidth,a.height=qa.current.videoHeight;a.getContext("2d").drawImage(qa.current,0,0),a.toBlob(async a=>{try{ja(!0);const e={maxSizeMB:1,maxWidthOrHeight:1920,useWebWorker:!0},s=await(0,t.A)(a,e),i=new FileReader;i.onload=()=>{ra(a=>(0,n.A)((0,n.A)({},a),{},{photo:i.result.split("base64,")[1]}))},i.readAsDataURL(s);const l=new FormData;l.append("file",s,"selfie.jpg"),R((0,m.g4)(l,da,pa,ja)),La()}catch(e){console.error("Error capturing photo:",e),(0,C.Ax)("Failed to capture photo"),ja(!1)}},"image/jpeg",.95)},disabled:xa,children:xa?(0,I.jsx)(y.A,{color:"#fff",size:8}):"Capture Photo"}),(0,I.jsx)("button",{type:"button",className:"cancel-btn",onClick:La,disabled:xa,children:"Cancel"})]})]})}),Ua&&(0,I.jsx)("div",{className:"itakaaf-register-form",children:(0,I.jsx)("div",{className:"row justify-content-center",children:(0,I.jsxs)("div",{className:"col-md-12",children:[(0,I.jsxs)("div",{className:"itakaaf-input phone-verification-section",children:[(0,I.jsx)("label",{children:(0,I.jsx)("span",{className:"font-english flex_field",children:"Mobile Number"})}),(0,I.jsx)("div",{className:"phone-input-wrapper",children:(0,I.jsx)("input",{type:"tel",className:"form-control",value:U,disabled:!0,readOnly:!0})}),(0,I.jsx)("small",{className:"verified-badge",children:"\u2713 Phone number verified"})]}),(()=>{const{status:a,seatNumber:e,registrationId:s}=_a,i=function(a,e,s,i,n){let l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;return(0,I.jsxs)("div",{className:"registration-status-screen",children:[(0,I.jsx)("div",{className:"status-icon",children:a}),(0,I.jsx)("h3",{className:"status-title font-english",children:e}),(0,I.jsx)("h3",{className:"status-title font-urdu",children:s}),(0,I.jsx)("p",{className:"status-body font-english",children:i}),(0,I.jsx)("p",{className:"status-body font-urdu",children:n}),l]})};switch(a){case"registered":return i((0,I.jsx)(p.DZH,{size:56,color:"#f59e0b"}),"Registration Under Review","\u0631\u062c\u0633\u0679\u0631\u06cc\u0634\u0646 \u0632\u06cc\u0631\u0650 \u063a\u0648\u0631 \u06c1\u06d2","Your registration has been submitted and is currently under review by the administration. You will be notified once a decision is made.","\u0622\u067e \u06a9\u06cc \u0631\u062c\u0633\u0679\u0631\u06cc\u0634\u0646 \u062c\u0645\u0639 \u06c1\u0648 \u0686\u06a9\u06cc \u06c1\u06d2 \u0627\u0648\u0631 \u0627\u0628\u06be\u06cc \u0645\u0646\u062a\u0638\u0645\u06cc\u0646 \u06a9\u06d2 \u0632\u06cc\u0631\u0650 \u063a\u0648\u0631 \u06c1\u06d2\u06d4 \u0641\u06cc\u0635\u0644\u06c1 \u06c1\u0648\u0646\u06d2 \u067e\u0631 \u0622\u067e \u06a9\u0648 \u0627\u0637\u0644\u0627\u0639 \u062f\u06cc \u062c\u0627\u0626\u06d2 \u06af\u06cc\u06d4",s&&(0,I.jsxs)("p",{className:"status-reg-id font-english",children:["Registration ID: ",(0,I.jsx)("strong",{children:s})]}));case"approved":return i((0,I.jsx)(p.mU9,{size:56,color:"#22c55e"}),"Registration Approved","\u0631\u062c\u0633\u0679\u0631\u06cc\u0634\u0646 \u0645\u0646\u0638\u0648\u0631 \u06c1\u0648 \u06af\u0626\u06cc","Congratulations! Your registration has been approved. You will receive a confirmation message shortly. Please confirm your attendance.","\u0645\u0628\u0627\u0631\u06a9 \u06c1\u0648! \u0622\u067e \u06a9\u06cc \u0631\u062c\u0633\u0679\u0631\u06cc\u0634\u0646 \u0645\u0646\u0638\u0648\u0631 \u06c1\u0648 \u06af\u0626\u06cc \u06c1\u06d2\u06d4 \u0622\u067e \u06a9\u0648 \u062c\u0644\u062f \u06c1\u06cc \u0627\u06cc\u06a9 \u062a\u0635\u062f\u06cc\u0642\u06cc \u06
17e\u06cc\u063a\u0627\u0645 \u0645\u0648\u0635\u0648\u0644 \u06c1\u0648\u06af\u0627\u06d4 \u0628\u0631\u0627\u06c1 \u06a9\u0631\u0645 \u0627\u067e\u0646\u06cc \u062d\u0627\u0636\u0631\u06cc \u06a9\u06cc \u062a\u0635\u062f\u06cc\u0642 \u06a9\u0631\u06cc\u06ba\u06d4");case"rejected":return i((0,I.jsx)(p.uDv,{size:56,color:"#ef4444"}),"Registration Not Approved","\u0631\u062c\u0633\u0679\u0631\u06cc\u0634\u0646 \u0645\u0646\u0638\u0648\u0631 \u0646\u06c1\u06cc\u06ba \u06c1\u0648\u0626\u06cc","We regret to inform you that your registration was not approved by the administration.","\u06c1\u0645\u06cc\u06ba \u0627\u0641\u0633\u0648\u0633 \u06c1\u06d2 \u06a9\u06c1 \u0622\u067e \u06a9\u06cc \u0631\u062c\u0633\u0679\u0631\u06cc\u0634\u0646 \u0645\u0646\u062a\u0638\u0645\u06cc\u0646 \u06a9\u06cc \u0637\u0631\u0641 \u0633\u06d2 \u0645\u0646\u0638\u0648\u0631 \u0646\u06c1\u06cc\u06ba \u06a9\u06cc \u06af\u0626\u06cc\u06d4",s&&(0,I.jsxs)("p",{className:"status-reg-id font-english",children:["Registration ID: ",(0,I.jsx)("strong",{children:s})]}));case"userConfirmed":return i((0,I.jsx)(p._IM,{size:56,color:"#5b4fcf"}),"Attendance Confirmed","\u062d\u0627\u0636\u0631\u06cc \u06a9\u06cc \u062a\u0635\u062f\u06cc\u0642 \u06c1\u0648 \u06af\u0626\u06cc","You have confirmed your attendance. Jazakallah Khair! We look forward to welcoming you.","\u0622\u067e \u0646\u06d2 \u0627\u067e\u0646\u06cc \u062d\u0627\u0636\u0631\u06cc \u06a9\u06cc \u062a\u0635\u062f\u06cc\u0642 \u06a9\u0631 \u062f\u06cc \u06c1\u06d2\u06d4 \u062c\u0632\u0627\u06a9 \u0627\u0644\u0644\u06c1 \u062e\u06cc\u0631! \u06c1\u0645 \u0622\u067e \u06a9\u0627 \u0627\u0633\u062a\u0642\u0628\u0627\u0644 \u06a9\u0631\u0646\u06d2 \u06a9\u06d2 \u0645\u0646\u062a\u0638\u0631 \u06c1\u06cc\u06ba\u06d4",s&&(0,I.jsxs)("p",{className:"status-reg-id font-english",children:["Registration ID: ",(0,I.jsx)("strong",{children:s})]}));case"userRejected":return i((0,I.jsx)(x.OZI,{size:52,color:"#94a3b8"}),"Registration Declined","\u0631\u062c\u0633\u0679\u0631\u06cc\u0634\u0646 \u0645\u0633\u062a\u0631\u062f \u06a9\u0631 \u062f\u06cc \u06af\u0626\u06cc","You have declined your registration. We hope to see you in a future event, In sha Allah.","\u0622\u067e \u0646\u06d2 \u0627\u067e\u0646\u06cc \u0631\u062c\u0633\u0679\u0631\u06cc\u0634\u0646 \u0645\u0633\u062a\u0631\u062f \u06a9\u0631 \u062f\u06cc \u06c1\u06d2\u06d4 \u0627\u0646 \u0634\u0627\u0621 \u0627\u0644\u0644\u06c1 \u0622\u0626\u0646\u062f\u06c1 \u06a9\u0633\u06cc \u067e\u0631\u0648\u06af\u0631\u0627\u0645 \u0645\u06cc\u06ba \u0645\u0644\u0627\u0642\u0627\u062a \u06c1\u0648\u06af\u06cc\u06d4",s&&(0,I.jsxs)("p",{className:"status-reg-id font-english",children:["Registration ID: ",(0,I.jsx)("strong",{children:s})]}));case"seatAssigned":return(0,I.jsxs)("div",{className:"registration-status-screen",children:[(0,I.jsx)("div",{className:"status-icon",children:(0,I.jsx)(p.NOq,{size:56,color:"#5b4fcf"})}),(0,I.jsx)("h3",{className:"status-title font-english",children:"Seat Assigned"}),(0,I.jsx)("h3",{className:"status-title font-urdu",children:"\u0646\u0634\u0633\u062a \u0645\u0642\u0631\u0631 \u06c1\u0648 \u06af\u0626\u06cc"}),(0,I.jsx)("p",{className:"status-body font-english",children:"Your seat has been assigned. Please note the details below."}),(0,I.jsx)("p",{className:"status-body font-urdu",children:"\u0622\u067e \u06a9\u06cc \u0646\u0634\u0633\u062a \u0645\u0642\u0631\u0631 \u06a9\u0631 \u062f\u06cc \u06af\u0626\u06cc \u06c1\u06d2\u06d4 \u0628\u0631\u0627\u06c1 \u06a9\u0631\u0645 \u0646\u06cc\u0686\u06d2 \u062f\u06cc \u06af\u0626\u06cc \u062a\u0641\u0635\u06cc\u0644\u0627\u062a \u0646\u0648\u0679 \u06a9\u0631\u06cc\u06ba\u06d4"}),(0,I.jsxs)("div",{className:"seat-card",children:[(0,I.jsxs)("div",{className:"seat-card-row",children:[(0,I.jsx)("span",{className:"seat-card-label font-english",children:"Registration ID"}),(0,I.jsx)("span",{className:"seat-card-value font-english",children:s})]}),(0,I.jsxs)("div",{className:"seat-card-row",children:[(0,I.jsx)("span",{className:"seat-card-label font-english",children:"Seat Number"}),(0,I.jsx)("span",{className:"seat-card-value font-english seat-number",children:e})]})]})]});default:return null}})()]})})}),!Ua&&(0,I.jsx)("div",{className:"itakaaf-register-form",children:(0,I.jsx)("div",{className:"row justify-content-center",children:(0,I.jsx)("div",{className:"col-md-12",children:(0,I.jsxs)("form",{onSubmit:a=>{a.preventDefault();let e=["name","email","city","state","country","itakaafType"];"nafil"===sa.itakaafType&&e.push("nafilFrom","nafilTo");if(e.filter(a=>!sa[a]).length>0)return void(0,C.Ax)("Please fill all required fields");
1if(!ca)return void(0,C.Ax)("Please upload Aadhar/ID proof");if(!oa)return void(0,C.Ax)("Please upload your photo");if(!va)return void(0,C.Ax)("Please accept terms and conditions");const s={name:sa.name,city:sa.city,state:sa.state,country:sa.country,email:sa.email,officialIdProof:ca,photo:oa,contactNumber:U,whatsappNumber:sa.whatsappNumber||U};sa.fatherName&&(s.fatherName=sa.fatherName),sa.age&&(s.age=parseInt(sa.age)),sa.address&&(s.address=sa.address),sa.pincode&&(s.pincode=sa.pincode),sa.education&&(s.education=sa.education),sa.occupation&&(s.occupation=sa.occupation),sa.islamicQalification&&(s.islamicQalification=sa.islamicQalification),sa.itikaafTimes&&(s.itikaafTimes=sa.itikaafTimes),sa.priority&&(s.priority=sa.priority);const i=Boolean(sa.isbaiyath&&"No"!==sa.isbaiyath);if(s.isbaiyath=i,i&&(sa.baiyathWith&&"NA"!==sa.baiyathWith&&(s.baiyathWith=sa.baiyathWith),sa.howLongBaiyath&&(s.howLongBaiyath=sa.howLongBaiyath),sa.muqaraba&&"NA"!==sa.muqaraba&&(s.muqaraba=sa.muqaraba),sa.sabaq&&"NA"!==sa.sabaq&&(s.sabaq=sa.sabaq)),s.typeOfIthikaaf=sa.itakaafType,sa.etekaafMaqsad&&(s.etekaafMaqsad=sa.etekaafMaqsad),sa.typeOfQidmat&&(s.typeOfQidmat=sa.typeOfQidmat),sa.notes&&(s.notes=sa.notes),"nafil"===sa.itakaafType&&sa.nafilFrom&&sa.nafilTo){const a=new Date(sa.nafilFrom),e=new Date(sa.nafilTo);s.nafilStartDate=a.toISOString(),s.nafilEndDate=e.toISOString();const i=Math.ceil((e-a)/864e5)+1;s.nafilDays=i}ma(!0),R((0,f.Pw)(L,s,()=>ia(P),Q,ma))},onPaste:a=>{const e=a.clipboardData.getData("text");/^[\u0000-\u007F]*$/.test(e)||(a.preventDefault(),(0,C.Ax)("Please paste only English characters"))},className:"form-itakaaf-register",children:[(0,I.jsxs)("div",{className:"itakaaf-input phone-verification-section",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["Mobile Number",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu",children:"\u0645\u0648\u0628\u0627\u0626\u0644 \u0646\u0645\u0628\u0631"})]}),(0,I.jsxs)("div",{className:"phone-input-wrapper",children:[(0,I.jsx)("input",{type:"tel",maxLength:"10",className:"form-control",placeholder:"Enter 10-digit phone number",value:U,onChange:a=>Y(a.target.value.replace(/\D/g,"")),disabled:V}),!V&&(0,I.jsx)("button",{type:"button",className:"verify-phone-btn",onClick:()=>{U&&10===U.length?R((0,f.C8)(U,pa,a=>{a&&(Z(!0),ea(60))})):(0,C.Ax)("Please enter a valid 10-digit phone number")},disabled:fa||10!==U.length,children:fa?(0,I.jsx)(y.A,{color:"#fff",size:6}):"Verify"})]}),V&&(0,I.jsx)("small",{className:"verified-badge",children:"\u2713 Phone number verified"})]}),(a=>{const e=Array.isArray(null===Oa||void 0===Oa?void 0:Oa.allowedItikaafTypes)?Oa.allowedItikaafTypes:["sunnat","nafil"],s=M.filter(a=>e.includes(a.value)),l=1===e.length,t=(null===(a=M.find(a=>a.value===sa.itakaafType))||void 0===a?void 0:a.label)||"";return(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["I'tikaf Type",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu",children:"\u0627\u0639\u062a\u06a9\u0627\u0641 \u06a9\u06cc \u0642\u0633\u0645"})]}),l?(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("input",{className:"form-control",value:t,readOnly:!0,disabled:!0})}):(0,I.jsx)("div",{className:"input-group flex-nowrap flex-column",children:(0,I.jsx)(S.A,{name:"itakaafType",label:"",options:s,handleChange:a=>{Ra(a),(a=>{const{value:e}=a.target;ia("nafil"===e?a=>(0,n.A)((0,n.A)({},a),{},{nafilFrom:"",nafilTo:""}):a=>{const{nafilFrom:e,nafilTo:s}=a;return(0,i.A)(a,D)})})(a)},disabled:!V,value:sa.itakaafType||"",error:na.itakaafType,placeHolder:"Select I'tikaf Type"})})]})})(),"nafil"===(null===sa||void 0===sa?void 0:sa.itakaafType)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["Nafil Start Date",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu",children:"\u0646\u0641\u0644 \u0634\u0631\u0648\u0639 \u06c1\u0648\u0646\u06d2 \u06a9\u06cc \u062a\u0627\u0631\u06cc\u062e"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("input",{type:"date",name:"nafilFrom",className:"form-control",value:sa.nafilFrom,onChange:Ra,disabled:!V,min:null===Oa||void 0===Oa||null===(r=Oa.startDate)||void 0===r?void 0:r.split("T")[0],max:sa.nafilTo||(null===Oa||void 0===Oa||null===(_=Oa.endDate)||void 0===_?void 0:_.split("T")[0])})}),(0,I.jsx)(Ka,{name:"nafilFrom"})]}),(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["Nafil End Date",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu",children:"\u0646\u0641\u0644 \u062e\u062a\u0645 \u06c1\u0648\u0646\u06d2 \u06a9\u06cc \u062a\u0627\u0631\u06cc\u062e"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("input",{type:"date",name:"nafilTo",className:"form-control",value:sa.nafilTo,onChange:Ra,disabled:!V,min:sa.nafilFrom||(null===Oa||void 0===Oa||null===(F=Oa.startDate)||void 0===F?void 0:F.split("T")[0]),max:null===Oa||void 0===Oa||null===(H=Oa.endDate)||void 0===H?void 0:H.split("T")[0]})}),(0,I.jsx)(Ka,{name:"nafilTo"})]})]}),(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["Name",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu margin-urdu",children:"\u0646\u0627\u0645"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("input",{name:"name",type:"text",className:"form-control",placeholder:"Enter your Name",value:sa.name,onChange:Ra,disabled:!V})}),(0,I.jsx)(Ka,{name:"name"})]}),(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["Father Name",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu margin-urdu",children:"\u0648\u0627\u0644\u062f \u06a9\u0627 \u0646\u0627\u0645"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("input",{name:"fatherName",type:"text",className:"form-control",placeholder:"Enter your Father's Name",value:sa.fatherName,onChange:Ra,disabled:!V})}),(0,I.jsx)(Ka,{name:"fatherName"})]}),(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["Age",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu margin-urdu",children:"\u0639\u0645\u0631"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("input",{name:"age",type:"number",className:"form-control",placeholder:"Enter your Age",value:sa.age,onChange:Ra,disabled:!V})}),(0,I.jsx)(Ka,{name:"age"})]}),(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["Email",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu",children:"\u0627\u06cc \u0645\u06cc\u0644"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("input",{name:"email",type:"email",className:"form-control",placeholder:"Enter your Email ID",value:sa.email,onChange:Ra,disabled:!V})}),(0,I.jsx)(Ka,{name:"email"})]}),(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["Whatsapp Number",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu",children:"\u0648\u0627\u0679\u0633 \u0627\u06cc\u067e \u0646\u0645\u0628\u0631"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("input",{name:"whatsappNumber",type:"number",className:"form-control",placeholder:"Enter your WhatsApp number",value:sa.whatsappNumber,onChange:Ra,disabled:!V})}),(0,I.jsx)(Ka,{name:"whatsappNumber"})]}),(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["Address",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu margin-urdu",children:"\u067e\u062a\u06c1"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("input",{name:"address",type:"text",className:"form-control",placeholder:"Enter your residential Address",value:sa.address,onChange:Ra,disabled:!V})}),(0,I.jsx)(Ka,{name:"address"})]}),(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["Country",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu",children:"\u0645\u0644\u06a9"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap flex-column",children:(0,I.jsx)(S.A,{name:"country",options:Aa,handleChange:a=>{Ra(a),(a=>{const{value:e}=a.target,s=v.A.getAllCountries().find(a=>a.name===e);if(s){var i;const a=null===g.Ay||void 0===g.Ay||null===(i=g.Ay.getStatesOfCountry(s.isoCode))||void 0===i?void 0:i.map(a=>({value:null===a||void 0===a?void 0:a.name,label:null===a||void 0===a?void 0:a.name,isoCode:null===a||void 0===a?void 0:a.isoCode}));Ia(a||[]),Sa([]),ia(a=>(0,n.A)((0,n.A)({},a),{},{country:e,state:"",city:""}))}else Ia([]),Sa([]),ia(a=>(0,n.A)((0,n.A)({},a),{},{country:e,state:"",city:""}))})(a)},value:sa.country||"",error:na.country,placeHolder:"Select your Country",disabled:!V})})]}),(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["State",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu margin-urdu",children:"\u0631\u06cc\u0627\u0633\u062a"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap flex-column",children:(0,I.jsx)(S.A,{name:"state",options:Ta,handleChange:a=>{Ra(a),(a=>{const{value:e}=a.target,s=v.A.getAllCountries().find(a=>a.name===sa.country);if(!s)return;const i=Ta.find(a=>a.value===e);if(i&&i.isoCode){var l;const a=null===(l=N.A.getCitiesOfState(s.isoCode,i.isoCode))||void 0===l?void 0:l.map(a=>({value:null===a||void 0===a?void 0:a.name,label:null===a||void 0===a?void 0:a.name}));Sa(a||[])}ia(a=>(0,n.A)((0,n.A)({},a),{},{city:"",state:e}))})(a)},value:sa.state||"",error:na.state,placeHolder:"Select your State",disabled:!V})})]}),(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["City",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu",children:"\u0636\u0644\u0639/\u0634\u06c1\u0631"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap flex-column",children:(0,I.jsx)(S.A,{name:"city",options:Ca,handleChange:Ra,value:sa.city||"",error:na.city,placeHolder:"Select City",disabled:!V})})]}),(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["Pincode",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu",children:"\u067e\u0646 \u06a9\u0648\u0688"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("input",{name:"pincode",type:"number",className:"form-control",placeholder:"Enter your Area Pincode",value:sa.pincode,onChange:Ra,disabled:!V})}),(0,I.jsx)(Ka,{name:"pincode"})]}),Ha("occupation")&&(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsx)("span",{className:"font-english",children:"Occupation"}),(0,I.jsx)("span",{className:"font-urdu margin-urdu",children:"\u0645\u0635\u0631\u0648\u0641\u06cc\u062a"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("input",{name:"occupation",type:"text",className:"form-control",placeholder:"Enter your occupation",value:sa.occupation,onChange:Ra,disabled:!V})})]}),Ha("education")&&(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsx)("span",{className:"font-english",children:"Academic Qualification"}),(0,I.jsx)("span",{className:"font-urdu",children:"\u0639\u0635\u0631\u06cc \u062a\u0639\u0644\u06cc\u0645"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("input",{name:"education",type:"text",className:"form-control",placeholder:"Enter your Academic Qualification",value:sa.education,onChange:Ra,disabled:!V})})]}),Ha("islamicQalification")&&(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsx)("span",{className:"font-english",children:"Islam
1ic Qualification"}),(0,I.jsx)("span",{className:"font-urdu",children:"\u062f\u06cc\u0646\u06cc \u062a\u0639\u0644\u06cc\u0645"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("input",{name:"islamicQalification",type:"text",className:"form-control",placeholder:"Enter your Islamic Qualification",value:sa.islamicQalification,onChange:Ra,disabled:!V})})]}),(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsx)("span",{className:"font-english flex_field",children:"How many times have you been in I'tikaf with Hazrat DB?"}),(0,I.jsx)("span",{className:"font-urdu",children:"\u0627\u0628 \u062a\u06a9 \u062d\u0636\u0631\u062a \u06a9\u06d2 \u0633\u0627\u062a\u06be \u06a9\u062a\u0646\u06cc \u0645\u0631\u062a\u0628\u06c1 \u0627\u0639\u062a\u06a9\u0627\u0641 \u06a9\u0631 \u0686\u06a9\u06d2 \u06c1\u06cc\u06ba\u061f"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("input",{name:"itikaafTimes",type:"text",className:"form-control",placeholder:"Enter the number of Times",value:sa.itikaafTimes,onChange:Ra,disabled:!V})})]}),Ha("priority")&&(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsx)("span",{className:"font-english flex_field",children:"Priority Category"}),(0,I.jsx)("span",{className:"font-urdu",children:"\u062a\u0631\u062c\u06cc\u062d \u06a9\u06cc \u0642\u0633\u0645"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap flex-column",children:(0,I.jsx)(S.A,{name:"priority",options:z,handleChange:Ra,value:sa.priority||"normal",placeHolder:"Select Priority Category",disabled:!V})})]}),Ha("typeOfQidmat")&&(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsx)("span",{className:"font-english flex_field",children:"Are you interested in Khidmat?"}),(0,I.jsx)("span",{className:"font-urdu",children:"\u06a9\u06cc\u0627 \u0622\u067e \u062e\u062f\u0645\u062a \u0645\u06cc\u06ba \u062f\u0644\u0686\u0633\u067e\u06cc \u0631\u06a9\u06be\u062a\u06d2 \u06c1\u06cc\u06ba\u061f"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap flex-column",children:(0,I.jsx)(S.A,{name:"typeOfQidmat",options:W,handleChange:Ra,value:sa.typeOfQidmat||"",placeHolder:"Select Khidmat",disabled:!V})})]}),(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["Have you given your Bai'ah to any Shaykh?",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu",children:"\u06a9\u06cc\u0627 \u0622\u067e \u06a9\u0633\u06cc \u0634\u06cc\u062e \u0633\u06d2 \u0628\u06cc\u0639\u062a \u06c1\u06cc\u06ba\u061f"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap flex-column",children:(0,I.jsx)(S.A,{name:"isbaiyath",options:E,handleChange:a=>{Ra(a),(a=>{const{value:e}=a.target;"Hazrath Maulana Sayyed Muhammad Talha Qasmi Naqshbandi Mujaddidi DB"===e?(ia(a=>(0,n.A)((0,n.A)({},a),{},{baiyathWith:"Hazrath Maulana Sayyed Muhammad Talha Qasmi Naqshbandi Mujaddidi DB",howLongBaiyath:a.howLongBaiyath||"",isbaiyath:e})),ba(!0)):"Others"===e?(ia(a=>(0,n.A)((0,n.A)({},a),{},{baiyathWith:"",howLongBaiyath:a.howLongBaiyath||"",isbaiyath:e,muqaraba:"NA",sabaq:"NA"})),ba(!1)):"No"===e&&(ia(a=>(0,n.A)((0,n.A)({},a),{},{baiyathWith:"NA",howLongBaiyath:"",isbaiyath:e,muqaraba:"NA",sabaq:"NA"})),ba(!1))})(a)},value:sa.isbaiyath||"",placeHolder:"Select Bai'ah Status",disabled:!V})})]}),sa.isbaiyath&&"No"!==sa.isbaiyath&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["Mention your Shaykh Name",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu",children:"\u0627\u067e\u0646\u06d2 \u0634\u06cc\u062e \u06a9\u0627 \u0646\u0627\u0645 \u0628\u062a\u0627\u0626\u06cc\u06ba"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("input",{name:"baiyathWith",type:"text",className:"form-control",placeholder:"Enter your Shaykh Name",value:sa.baiyathWith,onChange:Ra,disabled:!V||Na})}),(0,I.jsx)(Ka,{name:"baiyathWith"})]}),(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["How long have you been in Bai'ah?",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu",children:"\u0622\u067e \u06a9\u0628 \u0633\u06d2 \u0628\u06cc\u0639\u062a \u06c1\u06cc\u06ba\u061f"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("input",{name:"howLongBaiyath",type:"text",className:"form-control",placeholder:"Enter number of Bai'ah years",value:sa.howLongBaiyath,onChange:Ra,disabled:!V})}),(0,I.jsx)(Ka,{name:"howLongBaiyath"})]})]}),Na&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["How long do you do Muraqaba?",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu",children:"\u0645\u0631\u0627\u0642\u0628\u06c1 \u06a9\u062a\u0646\u06cc \u062f\u06cc\u0631 \u06a9\u0631\u062a\u06d2 \u06c1\u06cc\u06ba\u061f"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap flex-column",children:(0,I.jsx)(S.A,{name:"muqaraba",options:O,handleChange:Ra,value:sa.muqaraba||"",error:na.muqaraba,placeHolder:"Select Spent Time in Muraqaba",disabled:!V})})]}),(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["Which Sabaq?",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu",children:"\u06a9\u0648\u0646\u0633\u0627 \u0633\u0628\u0642\u061f"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap flex-column",children:(0,I.jsx)(S.A,{name:"sabaq",options:B,handleChange:Ra,value:sa.sabaq||"",error:na.sabaq,placeHolder:"Select Sabaq",disabled:!V})})]})]}),(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["What is your purpose of doing I'tikaf here?",(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu",children:"\u06cc\u06c1\u0627\u06ba \u0627\u0639\u062a\u06a9\u0627\u0641 \u06a9\u0631\u0646\u06d2 \u06a9\u0627 \u0645\u0642\u0635\u062f\u061f"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("input",{name:"etekaafMaqsad",type:"text",className:"form-control",placeholder:"Enter the purpose of doing I'tikaf here",value:sa.etekaafMaqsad,onChange:Ra,disabled:!V})}),(0,I.jsx)(Ka,{name:"etekaafMaqsad"})]}),(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["Capture Selfie Photo\xa0",(0,I.jsx)("label",{className:"mb-0",style:{fontSize:"12px"},children:"(front camera only)"}),(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu",children:"\u0627\u067e\u0646\u06cc \u062a\u0635\u0648\u06cc\u0631 \u06a9\u06be\u06cc\u0646\u0686\u06cc\u06ba"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("button",{type:"button",className:"btn btn-primary camera-btn",onClick:async()=>{try{const a=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!1});Ea(a),Pa(!0),setTimeout(()=>{qa.current&&(qa.current.srcObject=a)},100)}catch(a){console.error("Error accessing camera:",a),(0,C.Ax)("Unable to access camera. Please ensure camera permissions are granted.")}},disabled:!V||xa,children:xa?"Uploading...":ta.photo?"Retake Selfie":"Open Camera & Take Selfie"})}),ta.photo&&(0,I.jsx)("img",{src:ta.photo.startsWith("http")?ta.photo:"data:image/png;base64,".concat(ta.photo),alt:"User",style:{width:"200px",marginTop:"10px",borderRadius:"8px"}})]}),(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsxs)("span",{className:"font-english flex_field",children:["Upload Official ID Proof\xa0",(0,I.jsx)("label",{className:"mb-0",style:{fontSize:"12px"},children:"(supported files: png, jpeg, jpg)"}),(0,I.jsx)("span",{className:"asterick",children:"*"})]}),(0,I.jsx)("span",{className:"font-urdu",children:"\u0633\u0631\u06a9\u0627\u0631\u06cc \u0634\u0646\u0627\u062e\u062a\u06cc \u062b\u0628\u0648\u062a"})]}),xa&&(0,I.jsx)(j.A,{}),(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("input",{id:"officialIdProof",name:"officialIdProof",type:"file",className:"form-control",onChange:async a=>{const{name:e,files:s}=a.target,i=s[0];if(!i)return;if(i.size>15728640)return void(0,C.Ax)("File size cannot exceed 15 MB");if(["image/png","image/jpeg","image/jpg"].includes(i.type))try{ja(!0);const a={maxSizeMB:1,maxWidthOrHeight:1920,useWebWorker:!0},s=await(0,t.A)(i,a),l=new FileReader;l.onload=()=>{ra(a=>(0,n.A)((0,n.A)({},a),{},{[e]:l.result.split("base64,")[1]}))}
1,l.readAsDataURL(s);const r=new FormData;r.append("file",s),"officialIdProof"===e?R((0,m.g4)(r,ha,pa,ja)):"photo"===e&&R((0,m.g4)(r,da,pa,ja))}catch(l){console.error("Error uploading file:",l),(0,C.Ax)("Failed to upload file"),ja(!1)}else(0,C.Ax)("Only PNG, JPG, JPEG files are allowed.")},accept:"image/*",disabled:!V})}),ta.officialIdProof&&(0,I.jsx)("img",{src:ta.officialIdProof.startsWith("http")?ta.officialIdProof:"data:image/png;base64,".concat(ta.officialIdProof),alt:"ID Proof",style:{width:"200px",marginTop:"10px"}})]}),(0,I.jsxs)("div",{className:"itakaaf-input",children:[(0,I.jsxs)("label",{children:[(0,I.jsx)("span",{className:"font-english",children:"Comments"}),(0,I.jsx)("span",{className:"font-urdu margin-urdu comments",children:"\u06a9\u0645\u0646\u0679\u0633"})]}),(0,I.jsx)("div",{className:"input-group flex-nowrap",children:(0,I.jsx)("textarea",{name:"notes",className:"form-control",placeholder:"Enter any comments",value:sa.notes,onChange:Ra,disabled:!V})})]}),(0,I.jsxs)("div",{className:"itakaaf-notes",children:[(0,I.jsxs)("div",{className:"left",children:[(0,I.jsx)("h4",{className:"itakaaf-title",children:"Important Instructions"}),(0,I.jsx)("h4",{className:"itakaaf-item",children:"Bring a printed copy of the confirmed Itikaaf application with you."}),(0,I.jsx)("h4",{className:"itakaaf-item",children:"Carry your original ID card along with a photocopy."}),(0,I.jsx)("h4",{className:"itakaaf-item",children:"A specific place will be allotted for your bed, and no changes should be made."}),(0,I.jsx)("h4",{className:"itakaaf-item",children:"It is compulsory for everyone to adhere to the schedule."}),(0,I.jsx)("h4",{className:"itakaaf-item",children:"In addition to the above instructions, you must be ready to follow any instructions given by the organizers from time to time."})]}),(0,I.jsxs)("div",{className:"right",children:[(0,I.jsx)("h4",{className:"itakaaf-title font-urdu",children:"\u0636\u0631\u0648\u0631\u06cc \u06c1\u062f\u0627\u06cc\u0627\u062a"}),(0,I.jsx)("h4",{className:"itakaaf-item urdu font-urdu",children:"\u0627\u067e\u0646\u06cc \u0627\u0639\u062a\u06a9\u0627\u0641 \u06a9\u06cc \u062a\u0635\u062f\u06cc\u0642 \u0634\u062f\u06c1 \u067e\u0631\u0646\u0679 \u0622\u0624\u0679 \u0633\u0627\u062a\u06be \u0644\u06d2 \u0622\u0626\u06cc\u06ba-"}),(0,I.jsx)("h4",{className:"itakaaf-item urdu font-urdu",children:"\u0627\u067e\u0646\u0627 \u0634\u0646\u0627\u062e\u062a\u06cc \u06a9\u0627\u0631\u0688 \u0627\u0648\u0631 \u0627\u0633 \u06a9\u06cc \u0641\u0648\u0679\u0648 \u06a9\u0627\u067e\u06cc \u0628\u06be\u06cc \u0633\u0627\u062a\u06be \u0644\u06d2 \u0622\u0626\u06cc\u06ba-"}),(0,I.jsx)("h4",{className:"itakaaf-item urdu font-urdu",children:"\u0622\u067e \u06a9\u06d2 \u0628\u0633\u062a\u0631 \u06a9\u06d2 \u0644\u0626\u06d2 \u0627\u06cc\u06a9 \u0645\u062e\u0635\u0648\u0635 \u062c\u06af\u06c1 \u0645\u062e\u062a\u0635 \u06a9\u06cc \u062c\u0627\u0626\u06d2 \u06af\u06cc\u060c \u062c\u0633 \u0645\u06cc\u06ba \u06a9\u0648\u0626\u06cc \u062a\u0628\u062f\u06cc\u0644\u06cc \u06a9\u06cc \u06af\u0646\u062c\u0627\u0626\u0634 \u0646\u06c1\u06cc\u06ba \u0631\u06c1\u06d2 \u06af\u06cc-"}),(0,I.jsx)("h4",{className:"itakaaf-item urdu font-urdu",children:"\u0646\u0638\u0627\u0645 \u0627\u0644\u0627\u0648\u0642\u0627\u062a \u06a9\u06cc \u0645\u06a9\u0645\u0644 \u067e\u0627\u0628\u0646\u062f\u06cc \u06a9\u0631\u0646\u0627 \u0644\u0627\u0632\u0645 \u06c1\u06d2-"}),(0,I.jsx)("h4",{className:"itakaaf-item urdu font-urdu",children:"\u0627\u0646 \u06c1\u062f\u0627\u06cc\u0627\u062a \u06a9\u06d2 \u0639\u0644\u0627\u0648\u06c1\u060c \u0622\u067e \u06a9\u0648 \u0645\u0646\u062a\u0638\u0645\u06cc\u0646 \u06a9\u06cc \u0637\u0631\u0641 \u0633\u06d2 \u0648\u0642\u062a\u0627\u064b \u0641\u0648\u0642\u062a\u0627\u064b \u062f\u06cc \u062c\u0627\u0646\u06d2 \u0648\u0627\u0644\u06cc \u062a\u0645\u0627\u0645 \u06c1\u062f\u0627\u06cc\u0627\u062a \u067e\u0631 \u0639\u0645\u0644 \u06a9\u0631\u0646\u0627 \u0636\u0631\u0648\u0631\u06cc \u06c1\u0648\u06af\u0627"})]})]}),(0,I.jsxs)("div",{className:"itakaaf-termsCondition",children:[(0,I.jsx)(A.A,{name:"termsAccepted",checked:va,onChange:a=>{ga(a.target.checked),ia(e=>(0,n.A)((0,n.A)({},e),{},{termsAccepted:a.target.checked}))},disabled:!V}),(0,I.jsxs)("span",{style:{fontSize:"16px"},children:["I have carefully read all the above instructions and conditions, and I promise to fully comply with them during the I'tikaf.",(0,I.jsx)("p",{className:"font-urdu",style:{fontSize:"20px",marginTop:"0"},children:"\u0645\u06cc\u06ba \u062a\u0645\u0627\u0645 \u06c1\u062f\u0627\u06cc\u0627\u062a \u0627\u0648\u0631 \u0634\u0631\u0627\u0626\u0637 \u06a9\u0648 \u0628\u063a\u0648\u0631 \u067e\u0691\u06be \u0686\u06a9\u0627 \u06c1\u0648\u06ba \u0627\u0648\u0631 \u062f\u0648\u0631\u0627\u0646\u0650 \u0627\u0639\u062a\u06a9\u0627\u0641 \u0627\u0646 \u06a9\u06cc \u0645\u06a9\u0645\u0644 \u067e\u0627\u0628\u0646\u062f\u06cc \u06a9\u0631\u0646\u06d2 \u06a9\u0627 \u0648\u0639\u062f\u06c1 \u06a9\u0631\u062a\u0627 \u06c1\u0648\u06ba."})]})]}),(0,I.jsx)("div",{className:"itakaaf-submit",children:(0,I.jsx)("button",{type:"submit",disabled:!V||ua||xa,children:ua?(0,I.jsx)(y.A,{color:"#fff",style:{display:"flex",justifyContent:"center"}}):"Submit"})})]})})})})]})}),(0,I.jsx)(h.A,{})]})}},290(){},2246(){},9261(a,e,s){a.exports=s.p+"static/media/itikaf-reg-banner.fb3bbf42ba492153cc80.png"}}]); 2//# sourceMappingURL=4806.237b6abf.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.