(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9770],{66948:(e,l,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/thank-you",function(){return s(82222)}])},82222:(e,l,s)=>{"use strict";s.r(l),s.d(l,{default:()=>o});var n=s(37876),a=s(14232),i=s(48230),r=s.n(i),c=s(89099),d=s(14e3);let t=e=>{var l,s;let{dirIcon:a=">"}=e,i=null==(s=(0,d.usePathname)().split("/"))||null==(l=s.slice(1))?void 0:l.map(e=>e.replaceAll("-"," "));return(0,n.jsx)("div",{className:"breadcrumb-container",children:!!i.length&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r(),{href:"/",children:"Home "}),i.map((e,l)=>{var s,c;return(0,n.jsx)(r(),{href:"/".concat(null==i||null==(c=i.slice(0,l+1))||null==(s=c.map(e=>null==e?void 0:e.replaceAll(" ","-")))?void 0:s.join("/")),children:(0,n.jsxs)("span",{className:"text-capitalize",children:[a," ",null==e?void 0:e.replace(/\bdr\b /g,"dr. ")]})},"".concat(e,"-").concat(l))})]})})},o=()=>{var e,l;let s=(0,c.useRouter)(),[i,d]=(0,a.useState)(null);return(0,a.useEffect)(()=>{var e;if(null==s||null==(e=s.query)?void 0:e.data)try{d(JSON.parse(s.query.data))}catch(e){console.error("Invalid data format")}},[s.query]),(0,n.jsx)("div",{className:"d-flex text-center container w-100 border align-items-center justify-content-center p-2 my-3",children:(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)("div",{className:"logo-sec d-flex justify-content-center w-100 mb-md-3 mb-3",children:(0,n.jsxs)(r(),{href:"/",children:[" ",(0,n.jsx)("img",{src:"/images/new-theme/lokmanya-new-png-logo.webp",alt:"app logo"})]})}),i&&(0,n.jsxs)("div",{className:"",children:[(0,n.jsx)("div",{className:"",children:(0,n.jsxs)("span",{children:["Location: ",null==i||null==(e=i.city)?void 0:e.label]})}),(0,n.jsx)("div",{className:"",children:(0,n.jsxs)("span",{children:["Hospital: ",null==i||null==(l=i.area)?void 0:l.label]})}),(0,n.jsx)("div",{className:"",children:(0,n.jsxs)("span",{children:["Full Name: ",null==i?void 0:i.name]})}),(0,n.jsx)("div",{className:"",children:(0,n.jsxs)("span",{children:["Phone: ",null==i?void 0:i.mobile]})}),(0,n.jsx)("div",{className:"",children:(0,n.jsxs)("span",{children:["Message: ",null==i?void 0:i.message]})})]}),(0,n.jsx)("div",{className:"",children:(0,n.jsx)("span",{children:"Thank you for the enquiry. Our team will soon get in touch with you."})}),(0,n.jsx)("div",{className:"",children:(0,n.jsx)(t,{dirIcon:"/"})})]})})}}},e=>{var l=l=>e(e.s=l);e.O(0,[636,6593,8792],()=>l(66948)),_N_E=e.O()}]);
//# sourceMappingURL=thank-you-92f4c4d0bc47387a.js.map