PageSourceSearch

https://www.jaaga.ai/assets/StateDocuments-98e7b1b4.js

js jaaga.ai collected 2026-09-24 10:57:14 UTC 57,775 bytes, 8 lines download raw bytes

1import{r as h,j as a,F as An,L as vn,d as Hn,d3 as ma,ah as Bt,d5 as pa,d4 as ua,aI as da,X as xa,l as Xt,gp as On,d1 as ha,gq as Pt,z as ca,u as ga,a as ya,e as fn,bB as wa,bC as Na,ga as ba,gr as Sa,d7 as Tn,d8 as Ca,d9 as $n,gs as _t,gt as ja,gu as ka,a$ as Ia,bM as Ea,d2 as _n,gv as Aa,o as Pn,aH as va,M as fa,B as Ta,gw as $a,gx as _a,gy as Pa,gd as Rn,gz as Mn,gA as Ra,k as Ma,bJ as La}from"./index-a9db3765.js";import{a as Ut,u as Ja}from"./useStates-611fbf30.js";import{I as Va,a as Ya,D as Ha,M as zt,V as Oa,i as Ln,C as Jn,F as za,h as Ba,A as Wa,j as Ga,O as Ua}from"./RequestDocument-0e0aa064.js";import{A as Xa}from"./Accordion-420675e8.js";import{P as Qa}from"./lib-6c0b5089.js";/* empty css                 */import"./currency-symbol-map-daf4bdf1.js";import{L as Ka,A as Za,D as Fa,d as Ot}from"./DatePicker-65edb2bb.js";import"./input-otp-f94b7d5a.js";import{A as qa}from"./arrow-up-right-d01e82fb.js";import{M as Vn}from"./map-pin-8192f3ac.js";import{T as Da}from"./TextField-51e349f7.js";import{S as ts}from"./sparkles-c7f98271.js";import{D as ns}from"./Divider-52c88025.js";/* empty css                       */import{P as as}from"./phone-0fddfe69.js";import"./useQuery-6fefbac0.js";import"./index.module-0e321e37.js";import"./loader-7fb54471.js";import"./FormControl-5444a959.js";import"./IconButton-b0e4283b.js";import"./ButtonBase-b67bf523.js";import"./info-ee29f7f1.js";import"./Menu-af088ead.js";import"./shield-check-e5caee76.js";import"./download-7aef6341.js";import"./circle-check-fc7df41c.js";import"./upload-07f9b9c5.js";import"./script.esm-41a41a12.js";import"./Button-43c21ea1.js";import"./minus-2da38b32.js";import"./useThemeProps-d148be91.js";import"./index-8f6b6318.js";import"./colorManipulator-dda455e2.js";import"./dividerClasses-07928e34.js";function ss({onSubmit:c,setShowStateModeModal:o}){const x=[{id:"agriculture",name:"Agriculture"},{id:"non-agriculture",name:"Non Agriculture"}],[y,C]=h.useState(x[1]),O=()=>{y&&(c(y),o(!1))};return a.jsxs("div",{className:"w-[92vw] max-w-sm max-h-[90vh] overflow-y-auto rounded-lg border border-slate-200 bg-white p-4 shadow-lg sm:p-6",children:[a.jsx("h2",{id:"document-mode-title",className:"mb-4 text-lg font-semibold text-slate-900",children:"Select document category"}),a.jsx("div",{className:"flex flex-col gap-3",children:x.map(g=>a.jsxs("label",{className:"flex cursor-pointer items-center gap-2 rounded-md border border-slate-200 px-3 py-2 hover:bg-slate-50",children:[a.jsx("input",{type:"radio",name:"mode",value:g.id,checked:(y==null?void 0:y.id)===g.id,onChange:()=>C(g),className:"h-4 w-4 accent-primary"}),a.jsx("span",{className:"text-sm text-slate-800",children:g.name})]},g.id))}),a.jsxs("div",{className:"mt-6 flex justify-end gap-2",children:[a.jsx("button",{type:"button",onClick:()=>o(!1),className:"rounded-md px-3 py-2 text-sm text-slate-600 hover:bg-slate-100",children:"Cancel"}),a.jsx("button",{type:"button",onClick:O,disabled:!y,className:"rounded-md bg-primary px-4 py-2 text-sm font-medium text-white disabled:opacity-50",children:"Continue"})]})]})}const rs=({selectedDoc:c,propertyId:o,selectedProperty:x})=>a.jsxs("div",{className:"flex h-full flex-col gap-4 overflow-hidden rounded-lg border border-slate-200 bg-white",children:[a.jsxs("div",{className:"flex h-full flex-col gap-1 rounded-md pb-4 pt-2",children:[(c==null?void 0:c.logo)&&a.jsx("div",{className:"flex items-center justify-center rounded-md p-2",children:Object.entries(c.logo).map(([y,C],O)=>a.jsx("div",{className:"relative w-full overflow-hidden h-56 sm:h-72 lg:h-[22rem] "+(O!==0?"ml-[-50px]":""),children:a.jsx("img",{src:C,alt:c==null?void 0:c.name,className:"w-full h-full object-cover object-top"},y)}))}),!o&&(c==null?void 0:c.description)&&a.jsx("div",{className:"text-dark text-justify md:text-left text-base font-medium w-full p-3",children:typeof c.description=="object"?a.jsxs(a.Fragment,{children:[a.jsx("h1",{className:"font-bold pb-3 text-center",children:c.description.heading}),a.jsx("ol",{className:" flex flex-col gap-1",children:c.description.points.map((y,C)=>a.jsx("li",{className:C===0?"font-semibold":"",children:y},C))})]}):a.jsx("p",{children:c.description})})]}),o&&x&&a.jsxs("div",{className:"flex flex-col w-full px-3 gap-2",children:[a.jsxs("div",{className:"w-[98%]",children:[a.jsx("label",{className:"text-dark text-xl text-start px-1 lg:px-0",children:"Property Selected -"}),a.jsx("div",{className:"rounded-[0.5625rem] bg-[#d5d8ec] py-[12px] px-2 break-words",children:x==null?void 0:x.name})]}),a.jsxs("div",{className:"w-[98%]",children:[a.jsx("label",{className:"text-[#4c5f7f] mb-1.5",children:"Plot No. / House No."}),a.jsx("input",{className:"w-full block rounded-lg border border-[#c0c9fe] bg-[#eef3ff] text-dark p-1",value:x==null?void 0:x.addressLine1,disabled:!0})]}),a.jsx("div",{className:"flex flex-wrap gap-2",children:[["Area, Street, Sector, Village","area"],["Street Address","street"],["City","city"],["State","state"],["Pincode","pincode"],["Country","country"]].map(([y,C])=>
1a.jsxs("div",{className:"w-full md:w-[48%] lg:w-[48%]",children:[a.jsx("label",{className:"text-[#4c5f7f] mb-1.5",children:y}),a.jsx("input",{className:"w-full block rounded-lg border border-[#c0c9fe] bg-[#eef3ff] text-dark p-1",value:x==null?void 0:x[C],disabled:!0})]},C))})]})]}),Yn=12,es=({stateId:c,stateName:o,currentDocId:x,currentDocName:y,siblingDocs:C=[],otherStates:O=[]})=>{const g=(Array.isArray(C)?C:[]).filter(b=>(b==null?void 0:b.id)&&(b==null?void 0:b.name)&&b.id!==x).slice(0,Yn),M=(Array.isArray(O)?O:[]).filter(b=>(b==null?void 0:b.id)&&(b==null?void 0:b.name)&&b.id!==c).slice(0,Yn);return!c||!x||g.length===0&&M.length===0?null:a.jsxs("nav",{"aria-label":"Related documents",className:"overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-sm",children:[a.jsxs("div",{className:"flex items-center gap-3 border-b border-slate-100 bg-gradient-to-r from-secondary to-white px-5 py-4 md:px-6",children:[a.jsx("span",{className:"grid h-9 w-9 shrink-0 place-items-center rounded-xl bg-primary/10 text-primary",children:a.jsx(An,{className:"h-[18px] w-[18px]"})}),a.jsxs("div",{children:[a.jsx("h2",{className:"text-base font-bold text-primary md:text-lg",children:"Related property documents"}),a.jsx("p",{className:"text-xs text-slate-500",children:"Explore more records you may need"})]})]}),a.jsxs("div",{className:"space-y-6 px-5 py-5 md:px-6",children:[g.length>0&&a.jsxs("div",{children:[a.jsxs("h3",{className:"mb-3 flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wider text-slate-500",children:[a.jsx(An,{className:"h-3.5 w-3.5 text-primary/70"}),"More documents in ",o]}),a.jsx("ul",{className:"flex flex-wrap gap-2.5",children:g.map(b=>a.jsx("li",{children:a.jsxs(vn,{to:`/${c}/${b.id}`,className:"group inline-flex items-center gap-1.5 rounded-full border border-slate-200 bg-white px-3.5 py-2 text-sm font-medium text-slate-700 shadow-sm transition-all duration-150 hover:-translate-y-0.5 hover:border-primary/40 hover:bg-secondary hover:text-primary hover:shadow",children:[b.name,a.jsx(qa,{className:"h-3.5 w-3.5 text-slate-400 transition-colors group-hover:text-primary"})]})},b.id))})]}),M.length>0&&a.jsxs("div",{className:g.length>0?"border-t border-slate-100 pt-5":"",children:[a.jsxs("h3",{className:"mb-3 flex items-center gap-1.5 text-xs font-semibold uppercase tracking-wider text-slate-500",children:[a.jsx(Vn,{className:"h-3.5 w-3.5 text-primary/70"}),"Available in other states"]}),a.jsx("ul",{className:"flex flex-wrap gap-2.5",children:M.map(b=>a.jsx("li",{children:a.jsxs(vn,{to:`/${b.id}/${x}`,title:`${y} in ${b.name}`,className:"group inline-flex items-center gap-1.5 rounded-full border border-primary/15 bg-secondary px-3.5 py-2 text-sm font-medium text-primary transition-all duration-150 hover:-translate-y-0.5 hover:border-primary hover:bg-primary hover:text-white",children:[a.jsx(Vn,{className:"h-3.5 w-3.5 opacity-60 transition-opacity group-hover:opacity-100"}),b.name]})},b.id))})]})]})]})},os=({selectedDoc:c,requestFormData:o,handleInputChange:x,validations:y,setRequestFormData:C,SelectedState:O,selectedMode:g,touchedFields:M,autofillObject:b})=>{var z;const vt=Hn(),[ft,v]=h.useState(!0),[pt,s]=h.useState(!1),[et,{data:ct,isSuccess:st,isLoading:Z,isError:A,error:i}]=ma();h.useEffect(()=>{var n,k;st&&s(!0),A&&Bt.error((k=(n=i==null?void 0:i.data)==null?void 0:n.status)==null?void 0:k.message)},[st,A,Z]);const Q=async()=>{var k;const n={CONTACT_NUMBER:(k=o==null?void 0:o.CONTACT_NUMBER)==null?void 0:k.value,state:o==null?void 0:o.state};try{if(!JSON.parse(localStorage.getItem("token")))vt(Xt(!0));else{const ut=await et({body:n})}}catch{}};function bt(n){var k,lt;return(k=o[n==null?void 0:n.id])!=null&&k.value?Ot((lt=o[n==null?void 0:n.id])==null?void 0:lt.value):n!=null&&n.default?(n==null?void 0:n.default)==="now"?Ot(Date.now()):Ot(n==null?void 0:n.default):void 0}function Tt(n){var ut,ht,I;let k={};return((ut=n==null?void 0:n.searchFields)==null?void 0:ut.length)>0?(k={key:n==null?void 0:n.id,state:O==null?void 0:O.id,mode:g==null?void 0:g.key,documentId:(ht=o==null?void 0:o.document)==null?void 0:ht.id},n==null||n.searchFields.forEach(G=>{var F,L,q,E;k[G]=typeof((F=o[G])==null?void 0:F.value)=="object"?(q=(L=o[G])==null?void 0:L.value)==null?void 0:q.code:(E=o[G])==null?void 0:E.value})):k={key:n==null?void 0:n.id,state:O==null?void 0:O.id,mode:g==null?void 0:g.key,documentId:(I=o==null?void 0:o.document)==null?void 0:I.id},{url:n!=null&&n.apiPath?n==null?void 0:n.apiPath:"/search/form-data",body:k,data:n}}return a.jsxs(a.Fragment,{children:[(z=c==null?void 0:c.fields)==null?void 0:z.map((n,k)=>{var lt,ut,ht,I,G,F,L,q,E,u,S,Y,$,K,D,B,St,Ct;return a.jsxs(h.Fragment,{children:[((n==null?void 0:n.id)==="START_DATE"&&((lt=c==null?void 0:c.fields[k+1])==null?void 0:lt.id)==="END_DATE"||(n==null?void 0:n.type)==="TEXTAREA")&&a.jsx("div",{className:"w-full h-[0px]"}),a.jsxs("div",{className:"w-full mt-2",children:[a.jsxs("label",{htmlFor:n==null?void 0:n.id,className:"text-black  mb-1.5 w-full flex",children:[a.jsx("div",{className:"max-w-[98%] truncate",title:n==null?void 0:n.name,children:n==null?void 0:n.name}),(n==null?void 0:n.required)&&!((ht=(ut=c==null?void 0:c.validation)==null?void 0:ut.anyOne)!=null&&ht.includes(n==null?void 0:n.id))&&a.jsx("span",{className:"text-red-600",children:"*"}),((G=(I=c==null?void 0:c.validation)==null?void 0:I.anyOne)==null?void 0:G.includes(n==null?void 0:n.id))&&a.jsx("span",{className:"text-black font-semibold ml-1",children:"ф"}),a.jsxs("div",{className:"flex items-center space-x-2",children:[a.jsx("span",{children:n.label}),(n==null?void 0:n.sample)&&a.jsx(Va,{field:n,content:n==null?void 0:n.sample,fieldId:n.id})]})]}),(n==null?void 0:n.type)==="PHONE_NUMBER"&&a.jsxs("span",{children:[a.jsxs("div",{className:" w-full flex gap-x-2 ",children:[a.jsx("div",{className:"w-full",children:a.jsx(Qa,{country:"in",name:n==null?void 0:n.id,id:k===0?"first-field":"field-"+k,autoFocus:k===0,value:((F=o==null?void 0:o[n==null?void 0:n.id])==null?void 0:F.value)||"",onChange:(tt,jt,Rt,$t)=>{x(n,`+${jt.dialCode} ${tt.slice(jt.dialCode.length)}`)},placeholder:"00000 00000",specialLabel:"",inputStyle:{paddingTop:"7px",paddingBottom:"7px",
1width:"100%"},inputClass:`${!((L=y[n==null?void 0:n.id])!=null&&L.isValid)&&(o!=null&&o[n==null?void 0:n.id])?"error-react-tel-input":"react-tel-input"}`,preferredCountries:["IN","BE","FR"]})}),(()=>JSON.parse(localStorage.getItem("token")||"null")?(n==null?void 0:n.type)==="PHONE_NUMBER"&&n.sendOtp&&ft&&a.jsx("button",{type:"button",className:`flex-shrink-0 flex items-center gap-1.5 rounded-lg px-4 py-2 text-sm font-semibold transition-all duration-200 ${Z?"bg-gray-100 text-gray-400 cursor-not-allowed":"bg-primary text-white hover:bg-dark active:scale-95 shadow-sm"}`,onClick:()=>{Z||Q()},disabled:Z,children:Z?a.jsxs(a.Fragment,{children:[a.jsxs("svg",{className:"animate-spin h-3.5 w-3.5",viewBox:"0 0 24 24",fill:"none",children:[a.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),a.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.4 0 0 5.4 0 12h4z"})]}),"Sending"]}):"Send OTP"}):null)()]}),a.jsx("p",{className:" text-sm text-[#153568] font-semibold ",children:n==null?void 0:n.display})]}),(n==null?void 0:n.type)==="SELECT"&&a.jsx(Ya,{focused:k===0,minLength:n==null?void 0:n.search_length,placeholder:((q=n==null?void 0:n.options)==null?void 0:q.length)>0?`Select ${n==null?void 0:n.name}`:`Enter ${n==null?void 0:n.name}`,id:n==null?void 0:n.id,label:"code",disabled:pa(n,o),disabledMessage:ua(n,o,c==null?void 0:c.fields),selectedVal:((E=o[n==null?void 0:n.id])==null?void 0:E.value)||"",options:(n==null?void 0:n.options)||[],handleChange:tt=>x(n,tt),apiObj:Tt(n),mode:g}),(n==null?void 0:n.type)==="TEXTAREA"&&a.jsx(Da,{name:n==null?void 0:n.id,sx:{borderRadius:"8px",backgroundColor:"white"},multiline:!0,minRows:2,maxRows:3,id:k===0?"first-field":"field-"+k,autoFocus:k===0,value:((u=o[n==null?void 0:n.id])==null?void 0:u.value)||"",error:M[n==null?void 0:n.id]&&!((S=y[n==null?void 0:n.id])!=null&&S.isValid)&&!((Y=o[n==null?void 0:n.id])!=null&&Y.value),onChange:tt=>{x(n,tt.target.value)},fullWidth:!0,size:"small",placeholder:`Enter ${n==null?void 0:n.description}`}),(n==null?void 0:n.id)==="YEAR"&&a.jsx(Ha,{propStyles:M[n==null?void 0:n.id]&&!(($=y[n==null?void 0:n.id])!=null&&$.isValid)&&!((K=o[n==null?void 0:n.id])!=null&&K.value)?{backgorundColor:"red",width:"100%",border:"1px solid red",borderRadius:"8px","& fieldset":{border:"none"}}:{backgorundColor:"red",width:"100%",border:"1px solid lightgray",borderRadius:"8px","& fieldset":{border:"none"}},data:o,autofillObject:b,field:n,handleInputChange:x,enable:!0}),((n==null?void 0:n.type)==="NUMBER"||(n==null?void 0:n.type)==="STRING")&&(n==null?void 0:n.id)!=="YEAR"&&a.jsxs("div",{className:"relative w-full",children:[a.jsx("input",{name:n==null?void 0:n.id,id:k===0?"first-field":`field-${k}`,autoFocus:k===0,type:n==null?void 0:n.type.toLowerCase(),className:`w-full border rounded-lg px-3 py-2 text-sm outline-none 
2                ${M[n==null?void 0:n.id]&&!((D=y[n==null?void 0:n.id])!=null&&D.isValid)&&!((B=o[n==null?void 0:n.id])!=null&&B.value)?"border-red-500":"border-gray-300"}`,value:((St=o[n==null?void 0:n.id])==null?void 0:St.value)||"",placeholder:`Enter ${n==null?void 0:n.name}`,onInput:tt=>{(n==null?void 0:n.id)==="YEAR"&&(tt.target.value=Math.max(0,parseInt(tt.target.value)).toString().slice(0,4))},onChange:tt=>{x(n,tt.target.value)}}),((Ct=o[n==null?void 0:n.id])==null?void 0:Ct.value)&&a.jsx(da,{title:"Clear",children:a.jsx(xa,{onClick:()=>x(n,""),className:"absolute right-2 top-1/2 -translate-y-1/2 cursor-pointer hover:bg-slate-200 rounded-full p-1",size:18})})]}),(n==null?void 0:n.type)==="DATE"&&a.jsx(Ka,{dateAdapter:Za,children:a.jsx(Fa,{sx:{width:"100%",height:"40px"},slotProps:{textField:{size:"small"}},minDate:n!=null&&n.from?Ot(n==null?void 0:n.from):void 0,value:bt(n),disableFuture:!0,onChange:tt=>{x(n,tt.format("MM-DD-YYYY"))}})})]},n==null?void 0:n.id)]},k)}),a.jsx(zt,{open:pt,onClose:()=>s(!1),className:"absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-[92vw] max-w-[440px] max-h-[90vh] overflow-y-auto rounded-2xl shadow-2xl",children:a.jsx(Oa,{requestFormData:o,setShowOTPModal:()=>s(!1),setRequestFormData:C,btnDisable:ft,setBtnDisable:v,sendOTPData:ct})})]})},is=({selectedDoc:c,handleFormChange:o,selectedFormId:x})=>{var y,C,O;return a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"flex w-full flex-wrap items-stretch gap-1 rounded-md border border-slate-200 bg-slate-100 p-1",children:(y=c==null?void 0:c.forms)==null?void 0:y.map(g=>a.jsx("button",{type:"button",className:`!m-0 inline-flex min-h-[40px] flex-1 basis-0 items-center justify-center whitespace-normal rounded px-2.5 py-1.5 text-center text-xs font-semibold leading-tight transition-colors md:text-sm ${x===(g==null?void 0:g.id)?"bg-primary text-white shadow-sm":"text-slate-700 hover:bg-white"}`,style:{margin:0},onClick:()=>{On(),o(g)},children:g==null?void 0:g.name},g==null?void 0:g.id))}),x==="dont-know"&&a.jsx("p",{className:"mt-2 text-sm text-slate-600",children:"Fill what you can, our team will schedule a call with you."}),((O=(C=c==null?void 0:c.validation)==null?void 0:C.anyOne)==null?void 0:O.length)>0&&a.jsxs("p",{className:"mt-2 text-sm text-slate-700",children:["Fill at least one field marked with ",a.jsx("span",{className:"font-semibold",children:"ф"}),"."]})]})},ls=({selectedYear:c,selectedDoc:o,requestFormData:x,handleServiceClick:y,checkBoxesPrice:C,setCheckoutPrice:O,selectedFormId:g,checkoutPrice:M,c
2oupon:b,setCoupon:vt,setCouponDiscount:ft,setCouponValue:v,couponValue:pt,SelectedState:s,isCouponValid:et,setIsCouponValid:ct})=>{var z,n,k,lt,ut,ht;const st=o==null?void 0:o.services,[Z,{data:A,isError:i,isLoading:Q,isSuccess:bt}]=ha();h.useEffect(()=>{var I,G;bt&&ct((G=(I=A==null?void 0:A.data)==null?void 0:I.item)==null?void 0:G.isValid)},[bt]),h.useEffect(()=>{var u;if(!st||x!=null&&x.service||(o==null?void 0:o.id)==="know-sro"||Object.keys(st).some(S=>{var Y;return(((Y=st[S])==null?void 0:Y.services)||[]).some($=>{var K,D;return((K=$==null?void 0:$.year)==null?void 0:K.start)!=null||((D=$==null?void 0:$.year)==null?void 0:D.end)!=null})}))return;const G=S=>{var K,D;const Y=(K=S==null?void 0:S.year)!=null&&K.start?parseInt(S.year.start,10):null,$=(D=S==null?void 0:S.year)!=null&&D.end?parseInt(S.year.end,10):null;return Y===null||$===null?!0:c>=Y&&c<=$},F=[];if(Object.keys(st).forEach(S=>{var Y;(((Y=st[S])==null?void 0:Y.services)||[]).filter(G).forEach($=>{F.push({svc:$,group:st[S]})})}),F.length!==1)return;const{svc:L,group:q}=F[0];y(L,q);const E=Pt(x==null?void 0:x.checkboxes,L==null?void 0:L.checkboxes)||0;O((o==null?void 0:o.id)==="loan-pack"?C===0?`${E}`:C:Number(((u=L==null?void 0:L.payment)==null?void 0:u.amount)||0)+E)},[st,c,o==null?void 0:o.id,x==null?void 0:x.service]);const Tt=async()=>{var G,F,L,q,E,u,S,Y,$,K,D;const I={code:b,state:s==null?void 0:s.id,documentId:o==null?void 0:o.id};try{const B=await Z(I);(L=(F=(G=B==null?void 0:B.data)==null?void 0:G.data)==null?void 0:F.item)!=null&&L.isValid?(ft((u=(E=(q=B==null?void 0:B.data)==null?void 0:q.data)==null?void 0:E.item)==null?void 0:u.discountPercentage),v(($=(Y=(S=B==null?void 0:B.data)==null?void 0:S.data)==null?void 0:Y.item)==null?void 0:$.discountPercentage)):Bt.error((D=(K=B==null?void 0:B.data)==null?void 0:K.data)==null?void 0:D.item.message)}catch{}};return a.jsxs(a.Fragment,{children:[(o==null?void 0:o.services)&&g!=="dont-know"&&(o==null?void 0:o.id)!=="know-sro"&&a.jsxs("div",{className:"flex w-full flex-col gap-2",children:[a.jsxs("div",{className:"flex flex-col gap-0.5",children:[a.jsxs("p",{className:"text-sm font-semibold text-slate-700",children:["Choose how you want your documents"," ",a.jsx("span",{className:"text-red-600",children:"*"})]}),!(x!=null&&x.service)&&a.jsx("p",{className:"text-xs text-red-500",children:"Kindly select before proceeding."})]}),a.jsx("div",{className:"grid w-full grid-cols-1 gap-3 md:grid-cols-2",children:(z=Object.keys(st))==null?void 0:z.map((I,G)=>{var q;const F=st[I],L=(q=F==null?void 0:F.services)==null?void 0:q.filter(E=>{var Y,$,K,D;const u=(Y=E==null?void 0:E.year)!=null&&Y.start?parseInt(($=E==null?void 0:E.year)==null?void 0:$.start,10):null,S=(K=E==null?void 0:E.year)!=null&&K.end?parseInt((D=E==null?void 0:E.year)==null?void 0:D.end,10):null;return u===null||S===null?!0:c>=u&&c<=S});if((L==null?void 0:L.length)>0&&o.id!=="know-sro"){const E=L.some(u=>{var S;return u.free===!0&&Number(((S=u==null?void 0:u.payment)==null?void 0:S.amount)||0)===0});return a.jsxs("div",{className:"relative flex h-full flex-col gap-2 rounded-xl border border-slate-200 bg-white p-3 shadow-sm",children:[E&&a.jsxs("span",{className:"pointer-events-none absolute right-3 top-[10px] z-10 inline-flex items-center gap-1 overflow-hidden rounded-full bg-gradient-to-r from-emerald-600 via-emerald-500 to-emerald-400 px-3 py-1 text-xs font-extrabold uppercase tracking-wide text-white shadow-sm ring-1 ring-white/30",children:[a.jsx(ts,{className:"h-3 w-3",strokeWidth:2.5}),"Free",a.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-0 w-1/3 -skew-x-12 bg-gradient-to-r from-transparent via-white/55 to-transparent animate-shimmer"})]}),a.jsx("p",{className:"text-[11px] font-bold uppercase tracking-[0.18em] text-primary",children:I==="digitalCopy"?"Digital Copy":"Hard Copy"}),a.jsx("div",{className:"flex flex-1 flex-col gap-2",children:L.map(u=>{var St,Ct,tt,jt;const S=((St=x==null?void 0:x.service)==null?void 0:St.id)===(u==null?void 0:u.id),Y=S&&Pt((x==null?void 0:x.checkboxes)||[],(u==null?void 0:u.checkboxes)||[])||0,$=Number(((Ct=u==null?void 0:u.payment)==null?void 0:Ct.amount)||0),K=$+Y,D=(u==null?void 0:u.free)===!0&&K===0,B=Number(((tt=u==null?void 0:u.payment)==null?void 0:tt.originalAmount)||0);return a.jsxs("div",{role:"button",tabIndex:0,className:"group flex flex-1 cursor-pointer select-none items-center gap-3 rounded-xl border-2 bg-white px-3 py-2.5 shadow-sm transition-all duration-150 hover:-translate-y-0.5 hover:border-primary hover:shadow-md active:translate-y-0 active:shadow-sm "+(S?"border-primary bg-primary/[0.04] shadow-md ring-2 ring-primary/20":"border-slate-200"),onClick:()=>{var $t;y(u,st[I]);const Rt=Pt(x==null?void 0:x.checkboxes,u==null?void 0:u.checkboxes)||0;O((o==null?void 0:o.id)==="loan-pack"?C===0?`${Rt}`:C:Number((($t=u==null?void 0:u.payment)==null?void 0:$t.amount)||0)+Rt)}
2,children:[a.jsx("span",{"aria-hidden":!0,className:"flex h-5 w-5 shrink-0 items-center justify-center rounded-full border-2 transition-all "+(S?"border-primary bg-primary":"border-slate-300 bg-white group-hover:border-primary"),children:S?a.jsx("span",{className:"h-2 w-2 rounded-full bg-white"}):null}),a.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[a.jsx("div",{className:"truncate text-sm font-semibold text-slate-900",title:(u==null?void 0:u.name)||"",children:u==null?void 0:u.name}),u!=null&&u.desc?a.jsx("div",{className:"mt-0.5 truncate text-xs text-slate-500",title:u==null?void 0:u.desc,children:u==null?void 0:u.desc}):null]}),((jt=u==null?void 0:u.payment)==null?void 0:jt.type)==="CREDITS"&&(D?B>0?a.jsxs("span",{className:"shrink-0 whitespace-nowrap text-xs font-semibold tabular-nums text-slate-400 line-through decoration-slate-400 decoration-2",title:`Originally ${B} Credits, now free`,children:[B," Credits"]}):null:a.jsx("div",{className:"shrink-0 whitespace-nowrap rounded-full px-3 py-1 text-xs font-bold tabular-nums shadow-sm transition-colors "+(S?"bg-primary text-white":"bg-primary/10 text-primary group-hover:bg-primary group-hover:text-white"),title:Y>0?`Base ${$} + Add-ons ${Y}`:void 0,children:(o==null?void 0:o.id)==="loan-pack"?C===0?`${Pt(x==null?void 0:x.checkboxes,u==null?void 0:u.checkboxes)} Credits`:C:`${K} Credits`}))]},u==null?void 0:u.id)})})]},I)}})})]}),M>0&&a.jsxs("div",{className:"mt-3 flex w-full flex-col gap-3",children:[a.jsxs("div",{className:"flex w-full min-w-0 flex-col gap-1",children:[a.jsx("p",{className:"text-sm font-medium text-primary",children:"Coupon code"}),a.jsxs("div",{className:`group relative flex h-11 items-stretch overflow-hidden rounded-lg bg-white shadow-sm ring-1 transition-all focus-within:ring-2 ${(n=A==null?void 0:A.data)!=null&&n.item&&b.length===8?et?"ring-primary/40":"ring-red-300":"ring-slate-200 focus-within:ring-primary/40"}`,children:[a.jsx("span",{className:"flex w-10 shrink-0 items-center justify-center bg-primary/5 text-primary",children:a.jsx(Ln,{sx:{fontSize:18}})}),a.jsx("input",{value:b,placeholder:"Enter 8-character code",onChange:I=>{vt(I.target.value)},maxLength:8,className:"h-full min-w-0 flex-1 bg-transparent px-3 text-sm font-semibold uppercase tracking-[0.15em] text-primary placeholder:font-normal placeholder:tracking-normal placeholder:text-slate-400 focus:outline-none"}),a.jsx("div",{onClick:()=>{var I;(I=A==null?void 0:A.data)!=null&&I.item&&b.length===8?(vt(""),ct(null)):Tt()},className:`flex min-w-[5.5rem] shrink-0 cursor-pointer items-center justify-center px-3 text-xs font-bold uppercase tracking-wider text-white transition-colors ${(k=A==null?void 0:A.data)!=null&&k.item&&b.length===8?et?"bg-primary hover:bg-primary/90":"bg-red-500 hover:bg-red-500/90":b.length===8?"bg-primary hover:bg-primary/90":"bg-slate-300"}`,children:(lt=A==null?void 0:A.data)!=null&&lt.item&&b.length===8?"Remove":"Apply"})]}),a.jsx("p",{className:"min-h-[1rem] text-xs",children:(ut=A==null?void 0:A.data)!=null&&ut.item&&b.length===8?et?a.jsx("span",{className:"font-medium text-primary",children:"✓ Coupon applied"}):a.jsx("span",{className:"text-red-500",children:"Invalid code"}):null})]}),((ht=A==null?void 0:A.data)==null?void 0:ht.item.isValid)&&b.length===8&&a.jsxs("div",{className:"w-full overflow-hidden rounded-xl border border-primary/15 bg-white shadow-sm",children:[a.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-primary/10 bg-primary/5 px-4 py-2",children:[a.jsxs("p",{className:"flex items-center gap-1.5 text-[11px] font-bold uppercase tracking-[0.18em] text-primary",children:[a.jsx(Ln,{sx:{fontSize:14}}),"Order summary"]}),a.jsxs("span",{className:"rounded-full bg-primary px-2 py-0.5 text-[10px] font-bold uppercase tracking-wider text-white",children:[pt,"% OFF"]})]}),a.jsxs("div",{className:"space-y-1.5 px-4 py-3 text-sm",children:[a.jsxs("div",{className:"flex justify-between text-slate-600",children:[a.jsx("span",{children:"Subtotal"}),a.jsxs("span",{className:"tabular-nums text-slate-700",children:[M," Credits"]})]}),a.jsxs("div",{className:"flex justify-between font-medium text-primary",children:[a.jsx("span",{children:"Coupon discount"}),a.jsxs("span",{className:"tabular-nums",children:["−",parseInt(M*pt/100)," Credits"]})]}),a.jsx(ns,{}),a.jsxs("div",{className:"flex items-baseline justify-between pt-1",children:[a.jsx("span",{className:"text-sm font-semibold text-slate-900",children:"Total"}),a.jsxs("span",{className:"text-lg font-black tabular-nums text-primary",children:[M-parseInt(M*pt/100),a.jsx("span",{className:"ml-1 text-xs font-semibold text-slate-500",children:"Credits"})]})]})]})]})]})]})},ms={data:{questions:[{question:"What is the Find / Locate Property service?",answer:"This service helps you locate forgotten, unclaimed, or und
2ocumented properties purchased by your parents, grandparents, or other ancestors by searching official government records."},{question:"What details do I need to provide to begin the search?",answer:`We require the following:
3- State
4- Sub-Registrar Office (SRO)
5- Property owner’s full name
6- Parent/spouse name (S/O, W/O, D/O)
7- Any supporting documents like sale deeds or tax receipts (optional but helpful)`},{question:"How long does the process take?",answer:"Typically, you’ll receive your complete report within 24 to 48 working hours, depending on the complexity and SRO visibility."},{question:"What documents will I receive in the final report?",answer:"Your report may include: ownership summaries, sale deeds, ECs, mutation records, tax receipts, survey details, and a summary report with next steps."},{question:"What if no property is found under the given details?",answer:"If no matching records are found, we provide a 'No Record Found' certificate along with a refund (as per our partial refund policy) or suggestions for alternate searches."},{question:"Is this service legal and reliable?",answer:"Yes. All data is sourced from authorized Sub-Registrar Offices (SROs) and relevant government portals, and compiled by verified legal experts."},{question:"How much does the service cost?",answer:"Pricing starts at ₹5,000 and can go up to ₹25,000, depending on how many years are searched and the complexity of the jurisdiction."},{question:"Can this help me reclaim ownership of lost or disputed properties?",answer:"Yes. If ownership is proven, your documents can be used to initiate legal or revenue proceedings to reclaim the property."},{question:"Will I need to visit any government office myself?",answer:"No. JaaGa handles the entire backend process for you. You only need to provide accurate details, and we do the rest."},{question:"Can I use this service for multiple family members or different states?",answer:"Yes. You can initiate multiple searches for different individuals or regions. Each request is handled as a separate case with its own pricing and turnaround time."}]}},Us=()=>{var en,on,ln,mn,pn,un,dn,xn,hn,cn,gn,yn,wn,Nn,bn,Sn,Cn,jn,kn;const{state:c,document:o,serviceSlug:x}=ca(),y=c||x,C=ga(),O=ya(),g=Hn(),M=(en=C==null?void 0:C.state)==null?void 0:en.propertyId,{accessToken:b}=fn(t=>t.login),[,vt]=h.useState({}),[,ft]=h.useState({}),[v,pt]=h.useState(null),[s,et]=h.useState(null),[ct,st]=h.useState(""),[Z,A]=h.useState(),[i,Q]=h.useState({}),[bt,Tt]=h.useState(!0),[z,n]=h.useState({}),[k,lt]=h.useState({}),[ut,ht]=h.useState(2025),[I,G]=h.useState({}),[F]=h.useState(0),[L,q]=h.useState(""),[E,u]=h.useState(0),[S,Y]=h.useState(""),[$,K]=h.useState(0),[D,B]=h.useState(0),[St,Ct]=h.useState(!1),[tt,jt]=h.useState(""),[Rt,$t]=h.useState(null),[Qt,zn]=h.useState(null),[Bn,gt]=h.useState(!1),[ot,Wn]=h.useState({}),[Kt,Gn]=h.useState(!1),[Un,Xn]=h.useState(),[,Zt]=h.useState(!0),{data:Vt=[],isLoading:Ft}=Ut(x==null?void 0:x.toLowerCase(),"non-agriculture"),{data:Yt=[],isLoading:qt}=Ut(x==null?void 0:x.toLowerCase(),"agriculture");let[X,Qn]=h.useState({title:"",description:"",keywords:[]});h.useEffect(()=>{const t=Vt.find(r=>r.id===o)??Yt.find(r=>r.id===o);Qn((t==null?void 0:t.metadata)??{title:"",description:"",keywords:[]})},[Vt,Yt,o]);const[Wt,Dt]=h.useState({address:!1,summary:!1,orderstatus:!1}),Mt=t=>Dt(r=>({...r,[t]:!0})),yt=t=>Dt(r=>({...r,[t]:!1})),mt=fn(t=>{var r;return(r=t.customer)==null?void 0:r.Info});h.useEffect(()=>{var r;const t=String(((r=mt==null?void 0:mt.phone)==null?void 0:r.number)||"").replace(/\D/g,"").slice(-10);t&&!ct&&st(t)},[mt]);const{data:kt=[],isLoading:Kn}=Ja(),{data:Ht=[],isLoading:Zn}=Ut(y==null?void 0:y.toLowerCase(),v==null?void 0:v.id),w=h.useMemo(()=>kt.find(t=>t.id===y)||null,[kt,y,M]),Et=h.useMemo(()=>kt.find(t=>t.id===y)||null,[kt,y]),Fn=h.useMemo(()=>o?kt.filter(t=>(t==null?void 0:t.id)&&t.id!==y&&["non-agriculture","agriculture","documents"].some(r=>(t[r]||[]).some(e=>(e==null?void 0:e.id)===o))):[],[kt,y,o]),qn=h.useMemo(()=>{var N;const t=`/${y}/${o}`,r=(w==null?void 0:w.name)||(Et==null?void 0:Et.name),e=(s==null?void 0:s.name)||((N=X==null?void 0:X.title)==null?void 0:N.trim()),l=[],p=[{name:"Home",path:"/"}];r&&p.push({name:r,path:`/${y}`}),e&&p.push({name:e,path:t}),p.length>1&&l.push(wa(p));const d=Na(s==null?void 0:s.faqs);d&&l.push(d);const m=ba({name:e,description:X==null?void 0:X.description,path:t,areaServed:r,price:E});return m&&l.push(m),l.length?l:void 0},[y,o,w,Et,s,X,E]),Dn=()=>{var r;let t={id:M,info:{...I}};(r=s==null?void 0:s.fields)==null||r.map(e=>{var l,p;i&&((l=i[e.id])!=null&&l.value)&&(t.info[e==null?void 0:e.id]=(p=i[e.id])==null?void 0:p.value)})};h.useEffect(()=>{async function t(){var e,l;const r=JSON.parse(localStorage.getItem("token"));if(g(_a()).then(p=>{var d,m,N,_;((m=(d=p==null?void 0:p.payload)==null?void 0:d.response)==null?void 0:m.status)===200&&(vt((_=(N=p==null?void 0:p.payload)==null?void 0:N.response)==null?void 0:_.data),Zt(!1))}),r){const p=localStorage.getItem("incompleteorder"),d=JSON.parse(localStorage.getItem("selectedDoc")),m=JSON.parse(localStorage.getItem("selectedMode")),N=JSON.parse(localStorage.getItem("SelectedState")),_=JSON.parse(localStorage.getItem("selectedForm")),j=JSON.parse(localStorage.getItem("autofillObject"));p&&(A(_),et(d),pt(m),ft(N),G(j)),G({OWNER_NAME:mt==null?void 0:mt.name,CONTACT_NUMBER:((e=mt==null?void 0:mt.phone)==null?void 0:e.countryCode)+" "+((l=mt
7==null?void 0:mt.phone)==null?void 0:l.number)})}}t()},[]),h.useEffect(()=>{const t=JSON.parse(localStorage.getItem("token")),r=localStorage.getItem("selectedMode")?JSON.parse(localStorage.getItem("selectedMode")):null,e=JSON.parse(localStorage.getItem("incompleteorderData")),l=JSON.parse(localStorage.getItem("selectedFormId"));if(e&&l){gt(!1);return}if(t&&r){pt(r),gt(!1);return}if(C.state&&C.state.category){pt(C.state.category),gt(!1);return}if(o){const p=Vt.some(m=>m.id===o),d=Yt.some(m=>m.id===o);if(p){pt({id:"non-agriculture",name:"Non Agriculture"}),gt(!1);return}if(d){pt({id:"agriculture",name:"Agriculture"}),gt(!1);return}if(Ft||qt)return}gt(!0)},[C.state,o,Vt,Yt,Ft,qt]);const tn=h.useCallback(async t=>{var P,R,nt,f,rt,W,J,T,H,V,U,at,dt,xt,Jt;if(!t||!w||!v)return;Sa(t.id||t.link||"unknown",{docName:t.name||"",state:(w==null?void 0:w.id)||"",tab:(v==null?void 0:v.id)||""});const r=t.link||t.id,e=`/static/states/${w.id}/${v.id}/${r}`,l=await g(Tn({url:`/service-pricing/${w.id}/${v.id}/${r}`})),p=await g(Tn({url:`${e}/faq.json`})),d=((R=(P=l==null?void 0:l.payload)==null?void 0:P.response)==null?void 0:R.status)===200,m={...t,services:d?(f=(nt=l==null?void 0:l.payload)==null?void 0:nt.response)==null?void 0:f.data:null,faqs:p?(J=(W=(rt=p==null?void 0:p.payload)==null?void 0:rt.response)==null?void 0:W.data)==null?void 0:J.FAQ:null};et(m);const N=await g(Ca({url:`${e}/index.json`}));((H=(T=N==null?void 0:N.payload)==null?void 0:T.response)==null?void 0:H.status)===200&&(m.forms=N.payload.response.data,et({...m}));let j=((V=ot==null?void 0:ot.info)==null?void 0:V.property_from)||((U=m.forms)==null?void 0:U[0]);if(m.forms&&((dt=(at=ot==null?void 0:ot.info)==null?void 0:at.property_from)!=null&&dt.id)){const At=m.forms.find(Nt=>Nt.id===ot.info.property_from.id);At&&(j=At)}if(A(j==null?void 0:j.id),j){const At=(j==null?void 0:j.id)!=="dont-know"?`${e}/${j.id}/index.json`:`/static/states/${w.id}/${v.id}/${j.id}/index.json`,Nt=await g($n({url:At}));if(((Jt=(xt=Nt==null?void 0:Nt.payload)==null?void 0:xt.response)==null?void 0:Jt.status)===200){const it=Nt.payload.response.data;et(In=>({...In,fields:it==null?void 0:it.fields,extraInfo:it==null?void 0:it.extraInfo,validation:it==null?void 0:it.validation,orderPreview:it==null?void 0:it.orderPreview}))}}},[g,v,w]);h.useEffect(()=>{if(!y||!o||!kt.length||!Ht.length||!v)return;const t=Ht.find(r=>o!=="mother-deed"&&o!=="link-documents"?r.id===o:r.id==="sale-deed");t?tn(t):et(null)},[y,o,kt,Ht,v,tn]),h.useEffect(()=>{if(s&&w&&v&&s.forms){const t=JSON.parse(localStorage.getItem("incompleteorderData")),r=JSON.parse(localStorage.getItem("selectedFormId"));if(t&&r)Q(t),A(r);else{const e=s.forms[0];Q(l=>{var p,d,m;return{...l,form:e,state:{id:w.id,name:w.name},document:{id:s.id,name:s.name},payment:s.services?((m=(d=(p=Object.values(s.services)[0])==null?void 0:p.services)==null?void 0:d[0])==null?void 0:m.payment)||{}:{}}})}}},[s,w,v]),h.useEffect(()=>{const t=JSON.parse(localStorage.getItem("token"));q(t?"select":"add")},[]),h.useEffect(()=>{const t=_t("orderID");t&&(jt(t),Mt("orderstatus"),window.history.replaceState(null,"",window.location.pathname))},[]),h.useEffect(()=>{const t=_t("sro_code"),r=_t("sro_name"),e=_t("doc_no"),l=_t("year"),p=_t("village");if(!t&&!e&&!l&&!p)return;const d={};t&&(d.SR_CODE={code:t,name:r||`SRO ${t}`}),e&&(d.DOCUMENT_NUMBER=String(e)),l&&(d.YEAR=String(l)),p&&(d.VILLAGE={name:p.trim()}),G(m=>({...m||{},...d}))},[]);const ta=t=>{t?(yt("orderstatus"),et({})):yt("orderstatus")};h.useEffect(()=>{if(s!=null&&s.fields){let t={},r={};s==null||s.fields.forEach(e=>{t[e.id]={isValid:e!=null&&e.required?!!(e!=null&&e.default||I&&I[e.id]):!0,message:"Required"},r[e.id]=e!=null&&e.default&&(!I||!I[e.id])?(e==null?void 0:e.default)==="now"?{name:e==null?void 0:e.name,id:e==null?void 0:e.id,value:ja()}:{name:e==null?void 0:e.name,id:e==null?void 0:e.id,value:e==null?void 0:e.default}:I&&I[e.id]?{name:e==null?void 0:e.name,id:e==null?void 0:e.id,value:I[e.id]}:void 0}),i.form&&i.state&&i.document&&(t.form={isValid:!0},t.state={isValid:!0},t.document={isValid:!0}),na(r,t),Zt(!1)}},[s==null?void 0:s.fields]),h.useEffect(()=>{var r,e,l;if(JSON.parse(localStorage.getItem("token"))&&((r=s==null?void 0:s.deliveryDetalis)!=null&&r.label)&&!((e=s==null?void 0:s.deliveryDetalis)!=null&&e.id)){const p={...s==null?void 0:s.deliveryDetalis,phone:ka((l=s==null?void 0:s.deliveryDetalis)==null?void 0:l.phone)};g(Ia({body:p}
7)).then(d=>{var m,N,_,j,P,R;((N=(m=d==null?void 0:d.payload)==null?void 0:m.response)==null?void 0:N.status)===200&&nn((R=(P=(j=(_=d==null?void 0:d.payload)==null?void 0:_.response)==null?void 0:j.data)==null?void 0:P.data)==null?void 0:R.item)})}},[b]);const nn=t=>{et({...s,deliveryDetalis:t}),yt("address")};h.useEffect(()=>{M&&g(Ea(M)).then(t=>{var r,e,l,p,d,m;((e=(r=t==null?void 0:t.payload)==null?void 0:r.response)==null?void 0:e.status)===200&&(Wn((m=(d=(p=(l=t==null?void 0:t.payload)==null?void 0:l.response)==null?void 0:p.data)==null?void 0:d.data)==null?void 0:m.item),G(C.state.autofillObject))})},[M]),h.useEffect(()=>{var t,r;if(((s==null?void 0:s.id)==="property-tax"||(s==null?void 0:s.id)==="mc")&&((t=s==null?void 0:s.forms)!=null&&t.length)&&((r=ot==null?void 0:ot.info)!=null&&r.property_from)&&!Kt){const e=s.forms.find(l=>l.id===ot.info.property_from.id);e&&(On(),Gt(e),Gn(!0))}},[s==null?void 0:s.id,s==null?void 0:s.forms,(ln=(on=ot==null?void 0:ot.info)==null?void 0:on.property_from)==null?void 0:ln.id,Kt]);const na=async(t,r)=>{var e,l,p,d,m,N,_,j;if(((e=i.form)==null?void 0:e.id)==="dont-know"){const P=R=>{Q({...t,form:i.form,state:i.state,document:i.document,payment:R,service:{...i.form,serviceType:i.form},orderPreview:s==null?void 0:s.orderPreview}),n({...r,service:{isValid:!0}})};g(_n({URL:"/service-pricing/singleton/callService"})).then(R=>{var f,rt,W,J,T;const nt=(W=(rt=(f=R==null?void 0:R.payload)==null?void 0:f.response)==null?void 0:rt.data)==null?void 0:W.payment;((T=(J=R==null?void 0:R.payload)==null?void 0:J.response)==null?void 0:T.status)===200&&nt?P(nt):g(_n({URL:`/static/states/${w==null?void 0:w.id}/agent-service.json`})).then(H=>{var V,U,at,dt,xt;((U=(V=H==null?void 0:H.payload)==null?void 0:V.response)==null?void 0:U.status)===200&&P((xt=(dt=(at=H==null?void 0:H.payload)==null?void 0:at.response)==null?void 0:dt.data)==null?void 0:xt.payment)})})}else{let P=JSON.parse(localStorage.getItem("incompleteorderData")),R=JSON.parse(localStorage.getItem("selectedFormId"));if(P)Q(P),A(R);else{if(((m=(d=(p=(l=s==null?void 0:s.services)==null?void 0:l.digitalCopy)==null?void 0:p.services[0])==null?void 0:d.checkboxes)==null?void 0:m.length)>0){const nt=[];(j=(_=(N=s==null?void 0:s.services)==null?void 0:N.digitalCopy)==null?void 0:_.services[0])==null||j.checkboxes.forEach(f=>{f!=null&&f.checked&&nt.push({id:f==null?void 0:f.id})}),Q({form:i.form,state:i.state,document:i.document,payment:i.payment,...t,orderPreview:s==null?void 0:s.orderPreview,checkboxes:[...nt]})}else Q({form:i.form,state:i.state,document:i.document,payment:i.payment,...t,orderPreview:s==null?void 0:s.orderPreview});n({...r})}}},Gt=h.useCallback(async t=>{var p,d;if(!s||!w||!v)return;const r=`/static/states/${w.id}/${v.id}/${s.link||s.id}`;A(t==null?void 0:t.id),Tt(!0),Lt("form",t);const e=(t==null?void 0:t.id)!=="dont-know"?`${r}/${t.id}/index.json`:`/static/states/${w.id}/${v.id}/${t.id}/index.json`,l=await g($n({url:e}));if(((d=(p=l==null?void 0:l.payload)==null?void 0:p.response)==null?void 0:d.status)===200){const m=l.payload.response.data;et(N=>({...N,fields:m==null?void 0:m.fields,extraInfo:m==null?void 0:m.extraInfo,validation:m==null?void 0:m.validation,orderPreview:m==null?void 0:m.orderPreview}))}},[g,s,v,w]);function aa(t,r){var _,j;const e=(t==null?void 0:t.id)==="CERTIFIED_INSTANT_HARD_COPY"||(r==null?void 0:r.id)==="hardCopy",l=(t==null?void 0:t.id)==="INSTANT_SOFT_COPY"||(t==null?void 0:t.id)==="SOFT_COPY"||(r==null?void 0:r.id)==="softCopy"||(r==null?void 0:r.id)==="digitalCopy",p=e?"hard":l?"soft":"unknown",d=((_=t==null?void 0:t.payment)==null?void 0:_.amount)||(t==null?void 0:t.amount)||(t==null?void 0:t.credits)||null;Pa(p,d,{serviceId:(t==null?void 0:t.id)||"",serviceTypeId:(r==null?void 0:r.id)||"",docType:(s==null?void 0:s.id)||""}),((t==null?void 0:t.id)==="CERTIFIED_INSTANT_HARD_COPY"||(r==null?void 0:r.id)==="hardCopy")&&(JSON.parse(localStorage.getItem("token"))?(Mt("address"),q("select")):(Rn({trigger:"hardcopy_select",docType:(s==null?void 0:s.id)||"",step:6}),g(Xt(!0))));const m={...t,serviceType:{id:r==null?void 0:r.id,name:r==null?void 0:r.name}};Lt("service",m);const N={};(t==null?void 0:t.id)!=="INSTANT_SOFT_COPY"&&(t==null?void 0:t.id)!=="SOFT_COPY"&&((j=s==null?void 0:s.requiredDocs)==null||j.forEac
7h(P=>{N[P.id]={isValid:!(P!=null&&P.required),message:"Required"}})),n({...z,...N,service:{isValid:!0}})}const an=t=>{var p,d,m,N,_,j;const r={name:s==null?void 0:s.name,id:s==null?void 0:s.id},e=(s==null?void 0:s.id)==="ec"&&(w==null?void 0:w.id)==="telangana"&&(((p=t==null?void 0:t.service)==null?void 0:p.id)==="INSTANT_SOFT_COPY"||((d=t==null?void 0:t.service)==null?void 0:d.id)==="SOFT_COPY"||((N=(m=t==null?void 0:t.service)==null?void 0:m.serviceType)==null?void 0:N.id)==="softCopy"||((j=(_=t==null?void 0:t.service)==null?void 0:_.serviceType)==null?void 0:j.id)==="digitalCopy");if(e&&!/^[6-9]\d{9}$/.test(ct)){Bt.error("Enter the mobile number for the EC OTP first.");return}const l={...t,mode:v,deliveryDetalis:s==null?void 0:s.deliveryDetalis,document:r,...M?{propertyId:M}:{},...e?{ecInstant:!0,otpMobile:ct}:{}};Xn(l),Mt("summary")};function sn(t,r){var e,l,p,d,m,N,_,j,P,R,nt;if(lt({...k,[t.id]:!0}),(t==null?void 0:t.type)==="SELECT")if(typeof r=="object"){n({...z,[t.id]:{isValid:t!=null&&t.required?!!(r!=null&&r.name):!0,message:t!=null&&t.required?r!=null&&r.name?"":"Required":""}});const f={name:t==null?void 0:t.name,id:t==null?void 0:t.id,value:r};let rt={};s==null||s.fields.map(W=>{var J;(J=W==null?void 0:W.searchFields)!=null&&J.includes(t==null?void 0:t.id)&&(rt[W==null?void 0:W.id]="")}),Q({...i,...rt,[t.id]:f})}else{n({...z,[t.id]:{isValid:(r==null?void 0:r.length)>0||r>0,message:(r==null?void 0:r.length)>0?"":"Required"}});const f={name:t==null?void 0:t.name,id:t==null?void 0:t.id,value:r};Lt(t==null?void 0:t.id,f)}else if((t==null?void 0:t.id)==="YEAR"){const f=r;if(ht(f),(l=(e=i==null?void 0:i.service)==null?void 0:e.serviceType)!=null&&l.id){let W=s.services[(d=(p=i==null?void 0:i.service)==null?void 0:p.serviceType)==null?void 0:d.id];const J=(m=W==null?void 0:W.services)==null?void 0:m.filter(T=>{var U,at,dt,xt;const H=(U=T==null?void 0:T.year)!=null&&U.start?parseInt((at=T==null?void 0:T.year)==null?void 0:at.start,10):null,V=(dt=T==null?void 0:T.year)!=null&&dt.end?parseInt((xt=T==null?void 0:T.year)==null?void 0:xt.end,10):null;if(f>=H&&f<=V)return T});((_=(N=i==null?void 0:i.service)==null?void 0:N.payment)==null?void 0:_.amount)===((P=(j=J[0])==null?void 0:j.payment)==null?void 0:P.amount)?u((nt=(R=J[0])==null?void 0:R.payment)==null?void 0:nt.amount):u(0)}n({...z,[t.id]:{isValid:t!=null&&t.required||(t==null?void 0:t.id)==="YEAR"&&r!==""?Mn(t,r):!0,message:t!=null&&t.required?"Enter Valid Input":"Required"}});const rt={name:t==null?void 0:t.name,id:t==null?void 0:t.id,value:r};Lt(t==null?void 0:t.id,rt)}else{n({...z,[t.id]:{isValid:t!=null&&t.required||(t==null?void 0:t.id)==="YEAR"&&r!==""?Mn(t,r):!0,message:t!=null&&t.required?"Enter Valid Input":"Required"}});const f={name:t==null?void 0:t.name,id:t==null?void 0:t.id,value:r};Lt(t==null?void 0:t.id,f)}}function rn(){var l,p,d,m,N,_,j,P,R,nt,f,rt,W;const t=Object.keys(z),r=JSON.parse(localStorage.getItem("incompleteorderData"));let e={...i};if(r&&(e={...i,...r}),((p=(l=i==null?void 0:i.service)==null?void 0:l.serviceType)==null?void 0:p.id)==="hardCopy"&&!((d=s==null?void 0:s.deliveryDetalis)!=null&&d._id))return!0;if((s==null?void 0:s.id)==="know-sro")if(bt&&(!(((m=e==null?void 0:e.service)==null?void 0:m.id)==="CERTIFIED_INSTANT_HARD_COPY"||((N=e==null?void 0:e.service)==null?void 0:N.id)==="CERTIFIED_HARD_COPY")||s!=null&&s.deliveryDetalis)){for(let J=0;J<t.length;J++)if(!((_=z[t[J]])!=null&&_.isValid))if(((j=s==null?void 0:s.validation)==null?void 0:j.anyOne.indexOf(t[J]))!==-1){let T=0,H=0;return(P=s==null?void 0:s.validation)==null||P.anyOne.map(V=>{var U;z[V].isValid?T+=1:(U=e[V])!=null&&U.value&&!z[V].isValid&&(H+=1)}),T===0||H>0}else return!0}else return!0;else if(bt&&(z!=null&&z.service)&&(!(((R=e==null?void 0:e.service)==null?void 0:R.id)==="CERTIFIED_INSTANT_HARD_COPY"||((nt=e==null?void 0:e.service)==null?void 0:nt.id)==="CERTIFIED_HARD_COPY")||s!=null&&s.deliveryDetalis)){for(let J=0;J<t.length;J++)if(!((f=z[t[J]])!=null&&f.isValid))if(((rt=s==null?void 0:s.validation)==null?void 0:rt.anyOne.indexOf(t[J]))!==-1){let T=0,H=0;return(W=s==null?void 0:s.validation)==null||W.anyOne.map(V=>{var U,at;(U=z[V])!=null&&U.isValid?T+=1:(at=e[V])!=null&&at.value&&!z[V].isValid&&
7(H+=1)}),T===0||H>0}else return!0}else return!0;return!1}h.useEffect(()=>{const t=JSON.parse(localStorage.getItem("incompleteorderData")),r=JSON.parse(localStorage.getItem("selectedFormId"));t&&Object.keys(t).length>0&&(gt(!1),i.form||(Q(t),r&&A(r)))},[]);const Lt=(t,r)=>{var e,l,p,d,m;t&&t!=="service"&&t!=="checkboxes"&&Aa(t,{docType:(s==null?void 0:s.id)||"",formId:Z||""}),((d=(p=(l=(e=s==null?void 0:s.services)==null?void 0:e.digitalCopy)==null?void 0:l.services[0])==null?void 0:p.checkboxes)==null?void 0:d.length)>0?((m=i==null?void 0:i.checkboxes)==null?void 0:m.length)>0?Q({...i,[t]:r}):Q({...i,[t]:r,checkboxes:[]}):Q({...i,[t]:r})},sa=t=>{var m,N,_,j,P,R,nt,f,rt,W,J,T;t.preventDefault();let r={...i};const e=S.length===8&&Qt;if(e&&(r.code=S),((j=(_=(N=(m=s==null?void 0:s.services)==null?void 0:m.digitalCopy)==null?void 0:N.services[0])==null?void 0:_.checkboxes)==null?void 0:j.length)>0){const H=(i==null?void 0:i.checkboxes)||[],V=((nt=(R=(P=s==null?void 0:s.services)==null?void 0:P.digitalCopy)==null?void 0:R.services[0])==null?void 0:nt.checkboxes)||[],U=Pt(H,V);U&&(r={...r,payment:{...r.payment,amount:U}},Q(at=>({...at,payment:{...at.payment,amount:U}})))}if(rn())return;const l=(r==null?void 0:r.service)||{},p=(l==null?void 0:l.id)==="CERTIFIED_INSTANT_HARD_COPY"||((f=l==null?void 0:l.serviceType)==null?void 0:f.id)==="hardCopy"?"hard":"soft";if(Ra({docType:(s==null?void 0:s.id)||"",copyType:p,credits:((rt=l==null?void 0:l.payment)==null?void 0:rt.amount)||((W=r==null?void 0:r.payment)==null?void 0:W.amount)||null}),!JSON.parse(localStorage.getItem("token"))){Rn({trigger:"get_it_now",docType:(s==null?void 0:s.id)||"",step:7}),g(Xt(!0));return}if(M&&Dn(),((T=(J=r==null?void 0:r.service)==null?void 0:J.payment)==null?void 0:T.type)==="CREDITS"||r!=null&&r.orderPreview){let H=0;g(Ma({})).then(V=>{var U,at,dt,xt,Jt,At,Nt,it;if(((at=(U=V==null?void 0:V.payload)==null?void 0:U.response)==null?void 0:at.status)===200){H=(Nt=(At=(Jt=(xt=(dt=V==null?void 0:V.payload)==null?void 0:dt.response)==null?void 0:xt.data)==null?void 0:Jt.data)==null?void 0:At.item)==null?void 0:Nt.credits;const En=E-Math.floor(E*$/100),oa=En-H,ia=((it=s==null?void 0:s.forms)==null?void 0:it.find(la=>la.id===Z))||s.forms[0];if(H>=En){e&&$t(S),an(r);return}localStorage.setItem("incompleteorderData",JSON.stringify(r)),localStorage.setItem("selectedForm",JSON.stringify(ia)),localStorage.setItem("selectedDoc",JSON.stringify(s)),localStorage.setItem("selectedMode",JSON.stringify(v)),localStorage.setItem("SelectedState",JSON.stringify(w)),localStorage.setItem("propertyId",M),localStorage.setItem("autofillObject",JSON.stringify(I)),localStorage.setItem("incompleteorder",!0),localStorage.setItem("selectedFormId",JSON.stringify(Z)),localStorage.setItem("sendingCredits",oa),g(La(!0));return}});return}S.length===8&&ms.data.item.isValid&&$t(S),an(r)};if(h.useEffect(function(){var e,l,p;if(s&&((p=(l=(e=s.services)==null?void 0:e.digitalCopy)==null?void 0:l.services)==null?void 0:p.length)>0){var t=s.services.digitalCopy.services[0].checkboxes||[],r=t.filter(function(d){return d.checked===!0}).map(function(d){return{id:d.id}});Q(function(d){return{...d,checkboxes:r.length?r:d.checkboxes}})}},[s]),h.useEffect(()=>{var l,p,d;const t=Number(((p=(l=i==null?void 0:i.service)==null?void 0:l.payment)==null?void 0:p.amount)||0);if(!t)return;const r=((d=i==null?void 0:i.service)==null?void 0:d.checkboxes)||[],e=Pt((i==null?void 0:i.checkboxes)||[],r);u(t+(e||0))},[i==null?void 0:i.checkboxes,(mn=i==null?void 0:i.service)==null?void 0:mn.id,(un=(pn=i==null?void 0:i.service)==null?void 0:pn.payment)==null?void 0:un.amount]),Kn||Zn)return a.jsx("div",{className:"flex min-h-[40vh] items-center justify-center bg-slate-50 p-6 text-slate-600",children:"Loading documents…"});if(!w)return a.jsxs("div",{className:"p-6 text-slate-600",children:[a.jsx(Pn,{title:"State not found | JaaGa",noindex:!0}),"No state found for ",a.jsx("strong",{children:y}),"."]});const wt=(w==null?void 0:w.name)||(Et==null?void 0:Et.name)||"",It=(s==null?void 0:s.name)||"",ra=((X==null?void 0:X.title)||"").trim()||(It&&wt?`${It} in ${wt} — Download Online | JaaGa`:`Property Documents in ${wt||"India"} | JaaGa`),ea=((X==null?void 0:X.description)||"").trim()||(It&&wt?`Get ${It} for ${wt} online with JaaGa: what it shows, fees, turnaround and official portal steps — delivered fast.`:`Download property documents and land records for ${wt||"India"} online with JaaGa.`);return a.jsxs("div",{className:"min-h-screen bg-slate-50 pb-3 sm:pb-6",children:[a.jsx(Pn,{title:ra,pageLink:`/${y}/${o}`,description:ea,keywords:Array.isArray(X==null?void 0:X.keywords)?X.keywords.join(", "):(X==null?void 0:X.keywords)||"",jsonLd:qn}),a.jsx(va,{}),a.jsx(fa,{open:Bn,onClose:()=>gt(!1),"aria-labelledby":"document-mode-title",children:a.jsx(Ta,{className:"flex min-h-screen w-full items-center justify-center bg-black/35 px-4",children:a.jsx(ss,{setShowStateModeModal:gt,onSubmit:t=>{var l,p;pt(t);const r=(typeof t=="object"?((l=t==null?void 0:t.state)==null?void 0:l.id)||(t==null?void 0:t.state):t)||w&&(w.id||w.slug)||"",e=(typeof t=="object"?(t==null?void 0:t.category)||(t==null?void 0:t.tab):null)||"";$a(String(r||""),String(e||""),{stateName:(typeof t=="object"?(p=t==null?void 0:t.state)==null?void 0:p.name:null)||(w==null?void 0:w.name)||""})}})})}),a.jsxs("main",{className:"mx-auto w-full max-w-screen-xl flex-1 px-4 pb-5 pt-2 sm:px-6 lg:px-6",children:[a.jsxs("header",{className:"mb-4",children:[a.jsxs("button",{type:"button",onClick:()=>{var t;C.key!=="default"?O(-1):O(((t=C.state)==null?void 0:t.backTo)||"/states")},className:"mb-3 inline-flex items-center gap-1.5 text-sm font-semibold text-primary transition hover:gap-2.5 hover:underline",children:[a.jsx("span",{"aria-hidden":"true",children:"←"})," Back"]}),a.jsxs("h1",{className:"text-xl font-bold text-slate-900 md:text-2xl",children:[It&&wt?`${It} in ${wt}`:It,v!=null&&v.name?a.jsxs("span",{className:"font-semibold text-slate-600",children:[" ","(",v.name,")"]}):null]})]}),a.jsxs("div",{className:"flex w-full flex-col gap-6 lg:flex-row lg:gap-8",children:[a.jsx("div",{className:"flex w-full flex-col gap-4 lg:w-1/2",children:a.jsx("div",{className:"rounded-lg border border-slate-200 bg-white p-4 md:p-5",children:a.jsx("div",{className:"flex w-full flex-col gap-4",children:(s==null?void 0:s.forms)&&a.jsxs("div",{className:"space-y-4",children:[a.jsx(is,{selectedDoc:s,handleFormChange:Gt,selectedFormId:Z,requestFormData:i,handleInputChange:sn}),a.jsx("div",{children:(s==null?void 0:s.fields)&&a.jsx("div",{className:"flex",children:a.jsx("div",{className:"flex w-full flex-wrap overflow-visible",children:a.jsx(os,{selectedDoc:s,selectedFormId:Z,handleFormChange:Gt,validations:z,requestFormData:i,setRequestFormData:Q,handleInputChange:sn,SelectedState:w,selectedMode:v,touchedFields:k,autofillObject:I})})})}),a.jsx("div",{className:"flex flex-wrap items-center gap-2 rounded-md ",children:(s==null?void 0:s.id)==="property-binder"&&((hn=(xn=(dn=s==null?void 0:s.services)==null?void 0:dn.digitalCopy)==null?void 0:xn.services)==null?void 0:hn.length)>0&&Z!=="dont-know"&&((wn=(yn=(gn=(cn=s==null?void 0:s.services)==null?void 0:cn.digitalCopy)==null?void 0:gn.services[0])==null?void 0:yn.checkboxes)==null?void 0:wn.map((t,r)=>{var e;return a.jsxs("div",{className:" flex items-center ",children:[a.jsx(Jn,{sx:{margin:"0",padding:"0px"},checked:(e=i==null?void 0:i.checkboxes)==null?void 0:e.some(l=>(l==null?void 0:l.id)===(t==null?void 0:t.id)),onClick:()=>{var l,p,d;if(i!=null&&i.checkboxes.some(m=>(m==null?void 0:m.id)===(t==null?void 0:t.id))){let m=[...(i==null?void 0:i.checkboxes)||[]];if(m=m.filter(N=>(N==null?void 0:N.id)!==(t==null?void 0:t.id)),m.length===0&&((d=(p=(l=s==null?void 0:s.services)==null?void 0:l.digitalCopy)==null?void 0:p.services[0])!=null&&d.mandatory))return Bt.error("Please select at least one Service to Continue.",{style:{width:"100%",maxWidth:"600px",fontSize:"14px"}}),!1;Q(N=>({...N,checkboxes:[...m]}
7))}else Q(m=>({...m,checkboxes:[...(m==null?void 0:m.checkboxes)||[],{id:t==null?void 0:t.id}]}))},inputProps:{"aria-label":"controlled"}})," ",a.jsx("p",{className:"text-xs px-1 font-medium capitalize text-primary [1880px]:text-base",children:t==null?void 0:t.name})]},r)}))}),a.jsx(ls,{selectedYear:ut,selectedDoc:s,requestFormData:i,handleServiceClick:aa,checkBoxesPrice:F,setCheckoutPrice:u,selectedFormId:Z,checkoutPrice:E,coupon:S,setCoupon:Y,isCouponValid:Qt,setIsCouponValid:zn,setCouponDiscount:B,setCouponValue:K,couponValue:$,SelectedState:w}),(s==null?void 0:s.id)==="ec"&&(w==null?void 0:w.id)==="telangana"&&(((Nn=i==null?void 0:i.service)==null?void 0:Nn.id)==="INSTANT_SOFT_COPY"||((bn=i==null?void 0:i.service)==null?void 0:bn.id)==="SOFT_COPY"||((Cn=(Sn=i==null?void 0:i.service)==null?void 0:Sn.serviceType)==null?void 0:Cn.id)==="softCopy"||((kn=(jn=i==null?void 0:i.service)==null?void 0:jn.serviceType)==null?void 0:kn.id)==="digitalCopy")&&a.jsxs("div",{className:"rounded-xl border border-primary/25 bg-primary/[0.04] p-4",children:[a.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[a.jsx("span",{className:"flex h-6 w-6 items-center justify-center rounded-md bg-primary/10 text-xs",children:"⚡"}),a.jsx("span",{className:"text-sm font-semibold text-gray-800",children:"Instant EC"}),a.jsx("span",{className:"rounded-full bg-primary/10 px-2 py-0.5 text-[10px] font-medium text-primary",children:"Direct from SRO"})]}),a.jsx("label",{className:"mb-1 block text-xs font-medium text-gray-500",children:"Mobile number for the OTP"}),a.jsx("input",{inputMode:"numeric",maxLength:10,placeholder:"9xxxxxxxxx",value:ct,onChange:t=>st(t.target.value.replace(/\D/g,"")),className:"w-full rounded-lg border border-gray-200 bg-white px-3 py-2.5 text-sm outline-none transition focus:border-primary focus:ring-2 focus:ring-primary/15"}),a.jsxs("p",{className:"mt-1.5 text-[11px] leading-relaxed text-gray-500",children:["On ",a.jsx("span",{className:"font-medium",children:"Get it Now"})," we show the preview, send an OTP to this number, then fetch the EC and complete the order."]})]}),a.jsxs("div",{className:"flex w-full items-center gap-2",children:[a.jsx(Jn,{size:"small",sx:{p:0,alignSelf:"center","& .MuiSvgIcon-root":{fontSize:20,color:"#153568"}},checked:bt,onChange:t=>Tt(t.target.checked),inputProps:{"aria-label":"Accept terms and conditions"}}),a.jsxs("span",{className:"min-w-0 flex flex-1 flex-wrap items-center gap-x-1 gap-y-0.5 text-sm leading-snug text-slate-800",children:["I accept the"," ",a.jsx("button",{type:"button",className:"!m-0 !w-auto inline-flex items-center text-primary underline underline-offset-2",style:{margin:0,width:"auto",display:"inline-flex"},onClick:()=>Ct(!St),children:"Terms and Conditions"})]})]}),a.jsxs("button",{type:"button",onClick:sa,className:"!m-0 inline-flex w-full items-center justify-center gap-2 rounded-md bg-primary py-2.5 text-white disabled:cursor-not-allowed disabled:opacity-40",style:{margin:0},disabled:rn(),children:[Z!=="dont-know"&&a.jsx(za,{size:18}),Z==="dont-know"&&a.jsx(as,{size:18}),a.jsx("span",{children:Z!=="dont-know"?"Get it Now":"Schedule a call"})]})]})})})}),a.jsx("div",{className:"flex w-full flex-col gap-4 lg:w-1/2",children:a.jsx(rs,{selectedDoc:s,selectedProperty:ot,propertyId:M})})]}),a.jsx("section",{className:"jaaga-home jh-section mt-8 border-t border-slate-200 pt-8",children:a.jsxs("div",{className:"jh-wrap",children:[a.jsxs("div",{className:"jh-section-header",children:[a.jsx("div",{className:"jh-eyebrow jh-center",children:"Help Centre"}),a.jsx("h2",{children:"Frequently Asked Questions"})]}),a.jsx("div",{className:"mx-auto w-full max-w-4xl",children:a.jsx(Xa,{questions:(s==null?void 0:s.faqs)||[],className:"w-full",variant:"jaagaHome"})})]})}),a.jsx("div",{className:"mt-8",children:a.jsx(es,{stateId:y,stateName:wt,currentDocId:o,currentDocName:It,siblingDocs:Ht,otherStates:Fn})})]}),a.jsx(Ba,{opentermsConditions:St,setOpenTerms:Ct}),a.jsx(zt,{open:Wt.address,onClose:()=>yt("address"),className:"min-h-screen w-full",children:a.jsx(Wa,{deliveryDetalis:s==null?void 0:s.deliveryDetalis,closeAddressModal:()=>yt("address"),AddressViewType:L,setSelectedDeliveryAddress:nn})}),a.jsx(zt,{open:Wt.summary,onClose:()=>yt("summary"),className:"min-h-screen w-full",children:a.jsx(Ga,{reqDocObj:Un,selectedState:w,selectedDoc:s,handleOpenAddressForm:()=>Mt("address"),handleAddressViewType:t=>q(t),closeOrderSummary:()=>yt("summary"),openOrderStatus:()=>{Mt("orderstatus"),yt("summary")}
7,setOrderID:t=>jt(t),closeRequestForm:()=>et({}),couponCode:Rt,couponDiscount:D})}),a.jsx(zt,{open:Wt.orderstatus,onClose:()=>yt("orderstatus"),className:"min-h-screen w-full",children:a.jsx(Ua,{orderID:tt,closeOrderStatus:t=>ta(t)})})]})};export{Us as default};
8//# sourceMappingURL=StateDocuments-98e7b1b4.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.