(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3694],{7948:function(e,t,s){Promise.resolve().then(s.t.bind(s,231,23)),Promise.resolve().then(s.bind(s,912)),Promise.resolve().then(s.bind(s,1481)),Promise.resolve().then(s.bind(s,8868)),Promise.resolve().then(s.bind(s,1194))},912:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return r}});let l=s(5592);function r(e){let{reason:t,children:s}=e;if("undefined"==typeof window)throw new l.BailoutToCSRError(t);return s}},1481:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return i}});let l=s(7437),r=s(8512);function i(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let s=(0,r.getExpectedRequestStore)("next/dynamic css"),i=[];if(s.reactLoadableManifest&&t){let e=s.reactLoadableManifest;for(let s of t){if(!e[s])continue;let t=e[s].files.filter(e=>e.endsWith(".css"));i.push(...t)}}return 0===i.length?null:(0,l.jsx)(l.Fragment,{children:i.map(e=>(0,l.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:s.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},1194:function(e,t,s){"use strict";s.d(t,{default:function(){return h}});var l=s(7437),r=s(3057),i=s(9733),n=s(512),a=s(5017),u=s(6463),d=s(2265),o=s(7158),c=s(7138),f=s(8868);function h(){let e=(0,u.useRouter)(),[t,s]=(0,d.useState)(null),[h,m]=(0,d.useState)(!0),[x,j]=(0,d.useState)(null);return(0,d.useEffect)(()=>{let t=localStorage.getItem("vehicleNumber");if(!t){e.replace("/rcstatus");return}s(t);let l=t.substring(0,4).toUpperCase();setTimeout(()=>{j(r.find(e=>e.rto_code.toUpperCase()===l)||null),m(!1)},1e4)},[]),(0,l.jsx)(l.Fragment,{children:h?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"py-20",children:[(0,l.jsx)(o.Z,{}),(0,l.jsx)("h4",{className:"text-sm font-semibold text-center mt-6",children:"Searching RC Status..."})]}),(0,l.jsx)(f.default,{})]}):x?(0,l.jsxs)("div",{className:"w-full grid space-y-16 rounded-2xl border p-8 sm:p-12 my-8",children:[(0,l.jsx)(a.Z,{title:"Vehicle Number",value:t.toUpperCase()}),(0,l.jsx)(a.Z,{title:"State Code",value:x.rto_state_code}),(0,l.jsx)(a.Z,{title:"City Code",value:x.rto_code}),(0,l.jsx)(a.Z,{title:"City",value:x.rto_city}),(0,l.jsx)(a.Z,{title:"State",value:x.rto_state_name}),(0,l.jsx)(a.Z,{title:"RTO Address",value:x.rto_address}),(0,l.jsx)(a.Z,{title:"RTO Website",value:x.rto_url}),(0,l.jsx)(a.Z,{title:"RTO Contact",value:x.rto_phone}),(0,l.jsx)(f.default,{}),(0,l.jsx)(a.Z,{title:"Owner's Name",value:"Vehicle Owner Name Placeholder",blur:!0}),(0,l.jsx)(a.Z,{title:"Vehicle Make",value:"Car Brand / Bike Brand",blur:!0}),(0,l.jsx)(a.Z,{title:"Vehicle Model",value:"Car Model / Bike Model",blur:!0}),(0,l.jsx)(a.Z,{title:"Vehicle Class",value:"L.M.V",blur:!0}),(0,l.jsx)(a.Z,{title:"Fuel Type",value:"Petrol",blur:!0}),(0,l.jsx)(a.Z,{title:"Registration Date",value:"01-01-2000",blur:!0}),(0,l.jsxs)("div",{className:"grid gap-y-4 text-sm",children:[(0,l.jsx)("p",{className:"font-semibold",children:"Limited Information?"}),(0,l.jsx)("p",{children:"Sometimes searching again might fetch some additional results. "}),(0,l.jsx)("p",{children:"Search again."}),(0,l.jsx)(i.z,{variant:"default",className:"w-fit rounded-xl py-6 mt-8",asChild:!0,children:(0,l.jsxs)(c.default,{href:"/rcstatus",children:[(0,l.jsx)(n.X,{className:"mr-3"}),"Search"]})})]})]}):(0,l.jsx)("div",{className:"w-full grid space-y-16 rounded-2xl border p-8 my-8",children:(0,l.jsxs)("div",{className:"grid gap-y-4 text-sm",children:[(0,l.jsx)("p",{className:"font-semibold mb-8",children:"Not found"}),(0,l.jsx)("p",{children:"The details for this vehicle number could not be found. Are you sure you entered the correct vehicle number?"}),(0,l.jsx)("p",{children:"Search again."}),(0,l.jsx)(i.z,{variant:"default",className:"w-fit rounded-xl py-6 mt-8",asChild:!0,children:(0,l.jsxs)(c.default,{href:"/rcstatus",children:[(0,l.jsx)(n.X,{className:"mr-3"}),"Search"]})})]})})})}}},function(e){e.O(0,[8218,231,6271,6403,2971,7023,1744],function(){return e(e.s=7948)}),_N_E=e.O()}]);