1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[422],{32164:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>p});var a=s(37876),i=s(14232),l=s(8818),r=s(62933),d=s(34969),c=s(41778),n=s(47177),u=s(48230),o=s.n(u),x=s(78572),m=s(89099);let p=()=>{let e=(0,m.useRouter)(),{apiClient:t}=(0,d.R)(),[s,u]=(0,i.useState)(!1),[p,h]=(0,i.useState)({}),[f,w]=(0,i.useState)(!1),[_,j]=(0,i.useState)(!1),[N,b]=(0,i.useState)(!0);(0,i.useEffect)(()=>{let s=async()=>{try{let{data:e}=await t.get("/document/web/get-existing-customer/");if(!(null==e?void 0:e.lead_uuid)){b(!1),j(!0);return}if(h(e),"Invoice_Uploaded"===e.pd_status){w(!0),b(!1);return}if("Invoice_Not_Uploaded"===e.pd_status){u(!0),b(!1);return}u(!0),b(!1)}catch(e){b(!1),j(!0)}};N&&e.query.uuid&&s()},[t,N,e.query.uuid]);let g=(0,i.useCallback)(()=>{u(!1),w(!0)},[]),v=(0,i.useCallback)(()=>{w(!1),e.push("/my-orders")},[e]);return N?(0,a.jsx)(x.A,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.A,{}),s&&(0,a.jsx)(r.A,{productType:"Loan",orderId:p.lead_uuid,onSuccess:g}),f&&(0,a.jsx)(n.A,{show:!0,close:v,children:(0,a.jsxs)(c.A,{children:[!p.pd_status&&(0,a.jsxs)("div",{className:"mt-2 text-center text-base font-medium text-[#303030]",children:[(0,a.jsx)("div",{className:"tracking-wide",children:"Your offer is being"}),(0,a.jsx)("div",{className:"text-2xl uppercase leading-loose tracking-wide",children:"PROCESSED !"}),(0,a.jsx)("div",{className:"text-xl tracking-wide",children:"For any queries contact us on WhatsApp."}),(0,a.jsx)("a",{href:"https://wa.me/9108095022228",className:"mt-4 inline-block rounded bg-primary-base px-7 py-2 text-sm font-bold uppercase text-white",children:"chat with us"})]}),p.pd_status&&(0,a.jsxs)("div",{className:"mt-2 text-center text-base font-medium text-[#303030]",children:[(0,a.jsx)("div",{className:"tracking-wide",children:"Your offer is being"}),(0,a.jsx)("div",{className:"text-2xl uppercase leading-loose tracking-wide",children:"PROCESSED !"}),(0,a.jsx)("div",{className:"text-sm font-medium",children:"Our team will call you soon with updates."})]})]})}),_&&(0,a.jsx)("div",{className:"fixed top-[40%] w-full px-4",children:(0,a.jsxs)("div",{className:"text-center",children:["Looks like you are in the wrong place. ",(0,a.jsx)("br",{}),"Please visit us at",(0,a.jsx)(o(),{href:"/",className:"text-primary-base",children:"OTO Capital"})]})})]})}},92192:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/claim-loan-offer",function(){return s(32164)}])}},e=>{e.O(0,[8230,8827,6166,636,6593,8792],()=>e(e.s=92192)),_N_E=e.O()}]);
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.