"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[805],{8692:function(t,e,a){a.r(e);var l=a(7437),i=a(9617),o=a(4033);a(2265),e.default=t=>{let{production_flag:e,slug:a,className:n,children:d,ctaButtonTitle:s,ctaLabel:r,ctaPopupTitle:A,ctaPopupImage:c,defaultDescription:u,categoryContext:h,doctorId:v,hospitalId:m,treatmentId:p}=t,{prefetch:g,push:x}=(0,o.useRouter)(),{setNormalPopup:b,setCta:f,setDoctorId:w,setHospitalId:N,setCategoryContext:y,setTreatmentFormId:B}=(0,i.s)(),D=(t,e)=>{t&&e?(g("/".concat(e)),x("/".concat(e))):(f(r,A,c,s,u),y(h),w(v),N(m),B(p),b())};return(0,l.jsx)("button",{onClick:()=>D(e,a),className:n,children:d})}},7837:function(t,e,a){a.r(e),a.d(e,{default:function(){return r}});var l=a(7437),i=a(2265),o=a(4033),n=a(1396),d=a.n(n),s=t=>{var e,a,o,n,s,r;let{pathname:A,navMenu:c}=t,[u,h]=(0,i.useState)(null==c?void 0:null===(e=c.data)||void 0===e?void 0:e[0]),[v,m]=(0,i.useState)();return(0,i.useEffect)(()=>(v?(document.body.style.overflow="hidden",document.body.style.paddingRight="5px"):(document.body.style.overflow="visible",document.body.style.paddingRight="0px"),()=>{document.body.style.overflow="visible",document.body.style.paddingRight="0px"}),[v]),(0,l.jsxs)("div",{onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),onClick:()=>m(!v),className:"group relative z-30",children:[(0,l.jsx)("div",{className:"link ".concat("/category"===A?"text-paleGreen":" text-textBlack"," cursor-pointer"),children:"Departments"}),v&&(0,l.jsx)("div",{onMouseLeave:()=>m(!1),className:" absolute bottom-0 flex translate-x-[-30%] translate-y-[100%] rounded-[12px] ",children:(0,l.jsxs)("div",{className:"mt-[30px] flex rounded-[12px] border bg-white p-[25px_65px]",children:[(0,l.jsxs)("div",{className:"w-[260px]",children:[(0,l.jsx)("p",{className:"mb-[30px] text-[18px] font-semibold",children:"Departments"}),(0,l.jsx)("div",{className:"flex h-[270px] flex-col overflow-y-scroll",children:null==c?void 0:null===(a=c.data)||void 0===a?void 0:a.map((t,e)=>{var a,i,o,n;return(0,l.jsx)(d(),{onClick:()=>m(!1),onMouseEnter:()=>h(t),className:"py-[15px] ".concat((null==t?void 0:null===(a=t.attributes)||void 0===a?void 0:a.categoryName)===(null==u?void 0:null===(i=u.attributes)||void 0===i?void 0:i.categoryName)?"border-l-[#17DFBA]":"borderdo border-dotted border-l-[#DFDFDF]"," border-l pl-[20px] hover:border-solid hover:border-l-[#17DFBA]"),href:"/".concat(null==t?void 0:null===(o=t.attributes)||void 0===o?void 0:o.slug),children:null==t?void 0:null===(n=t.attributes)||void 0===n?void 0:n.categoryName},"navbarMenu:"+e)})})]}),(0,l.jsxs)("div",{className:"w-[380px]",children:[(0,l.jsx)("p",{className:"mb-[30px] pl-[20px] text-[18px] font-semibold",children:"Treatments"}),(0,l.jsx)("div",{className:"flex h-[270px] flex-col overflow-y-scroll border-l border-l-[#EDEDED] pl-[20px]",children:null==u?void 0:null===(r=u.attributes)||void 0===r?void 0:null===(s=r.treatmentSection)||void 0===s?void 0:null===(n=s.treatments)||void 0===n?void 0:null===(o=n.data)||void 0===o?void 0:o.map((t,e)=>{var a,i,o,n;let s=(null==t?void 0:null===(a=t.attributes)||void 0===a?void 0:a.slug)!==null&&(null==t?void 0:null===(i=t.attributes)||void 0===i?void 0:i.production_flag);return(0,l.jsx)(l.Fragment,{children:s&&(0,l.jsx)(d(),{onClick:()=>m(!1),className:" border-b \n                        py-[15px] hover:border-b-[#17DFBA]",href:"/".concat(null==t?void 0:null===(o=t.attributes)||void 0===o?void 0:o.slug),children:null==t?void 0:null===(n=t.attributes)||void 0===n?void 0:n.treatmentName},"navbarMenus:"+e)})})})]})]})})]})},r=t=>{let{navMenuRes:e}=t,a=(0,o.usePathname)();return(0,l.jsx)("nav",{children:(0,l.jsxs)("ul",{className:"hidden gap-[20px] lg:flex",children:[(0,l.jsx)("li",{children:(0,l.jsx)(d(),{className:"link ".concat("/"===a?"text-paleGreen":"text-textBlack"),href:"/",children:"Home"})}),(0,l.jsx)("li",{children:(0,l.jsx)(s,{navMenu:e,pathname:a})}),(0,l.jsx)("li",{children:(0,l.jsx)(d(),{className:"link ".concat(a.split("/").includes("doctors")?"text-paleGreen":"text-textBlack"),href:"/doctors/india",children:"Doctors"})}),(0,l.jsx)("li",{children:(0,l.jsx)(d(),{className:"link ".concat(a.split("/").includes("hospitals")?"text-paleGreen":"text-textBlack"),href:"/hospitals/india",children:"Hospitals"})})]})})}},4292:function(t,e,a){a.r(e);var l=a(7437),i=a(6691),o=a.n(i),n=a(2265),d=a(1829),s=a(19),r=a(7422),A=a(9910),c=a(4255),u=a(2053),h=a(4033),v=a(8692);let m=async(t,e,a)=>{let l=await (0,c._)("".concat(t?"/doctors?filters[doctorName][$contains]="+t:"").concat(e?"&filters[doctorName][$contains]="+e:"").concat(a?"&filters[doctorName][$contains]="+a:"","&fields[0]=doctorName&fields[1]=slug&pagination[pageSize]=8"),{method:"GET"},"doctors Data","web",!0),i=await (0,c._)("".concat(t?"/hospitals?filters[name][$contains]="+t:"").concat(e?"&filters[name][$contains]="+e:"").concat(a?"&filters[name][$contains]="+a:"","&fields[0]=name&fields[1]=slug&pagination[pageSize]=8"),{method:"GET"},"doctors Data","web",!0);return{doctors:l,hospitals:i,treatments:await (0,c._)("".concat(t?"/treatments?filters[treatmentName][$contains]="+t:"").concat(e?"&filters[treatmentName][$contains]="+e:"").concat(a?"&filters[treatmentName][$contains]="+a:"","&fields[0]=treatmentName&fields[1]=slug&fields[2]=production_flag&fields[3]=treatmendId&pagination[pageSize]=8"),{method:"GET"},"doctors Data","web",!0),locations:await (0,c._)("".concat(t?"/hospitals?filters[location][name][$contains]="+t:"").concat(e?"&filters[location][name][$contains]="+e:"").concat(a?"&filters[location][name][$contains]="+a:"","&fields[0]=name&fields[1]=slug&populate[2]=location&pagination[pageSize]=1"),{method:"GET"},"doctors Data","web",!0),departments:await (0,c._)("".concat(t?"/categorypages?filters[categoryName][$contains]="+t:"").concat(e?"&filters[categoryName][$contains]="+e:"").concat(a?"&filters[categoryName][$contains]="+a:"","&fields[0]=name&fields[1]=slug&populate[2]=category&pagination[pageSize]=1"),{method:"GET"},"doctors Data","web",!0)}};e.default=()=>{var t,e,a,i,c,p,g,x,b,f,w,N;let[y,B]=(0,n.useState)(!0),[D,j]=(0,n.useState)(),[R,E]=(0,n.useState)(),[U,k]=(0,n.useState)(),[C,S]=(0,n.useState)(),[Q,G]=(0,n.useState)(),[T,F]=(0,n.useState)(!1),M=(0,h.useRouter)();(0,n.useEffect)(()=>{let t=document.documentElement.scrollTop,e=()=>{let e=document.documentElement.scrollTop;B(e<t),t=e<=0?0:e};return T?(document.body.style.overflow="hidden",document.body.style.paddingRight="5px"):(document.body.style.overflow="visible",document.body.style.paddingRight="0px"),window.addEventListener("scroll",e),()=>{document.body.style.overflow="visible",document.body.style.paddingRight="0px",window.removeEventListener("scroll",e)}},[T]);let z=(0,u.y1)(async t=>{var e;F(!0);let a=null===(e=t.target.value)||void 0===e?void 0:e.split(" ");if(""!==a[0]){let{doctors:t,hospitals:e,treatments:l,locations:i,departments:o}=await m((null==a?void 0:a.length)?a[0]:"",(null==a?void 0:a.length)?a[1]:"",(null==a?void 0:a.length)?a[2]:"");S(l),E(t),j(e),G(i),k(o)}else S(void 0),E(void 0),j(void 0),S(void 0),k(void 0)},300),L=t=>{I(),F(!1),M.push("/".concat(t))},I=()=>{F(!1)};return(0,l.jsxs)("div",{className:" absolute left-1/2 z-0 w-[90%] -translate-x-1/2  overflow-x-hidden rounded-[10px]  border-[1px] bg-[#FFFFFF]  max-lg:hidden lg:w-[500px] lg:shadow-[0px_0px_2px_0px_#00000040]  ".concat(y?"top-20 lg:top-24":"top-2 hidden"),onMouseLeave:()=>F(!1),children:[(0,l.jsxs)("div",{className:"sticky top-0 z-10 flex h-[40px] items-center justify-center gap-2 bg-[#FFFFFF]  px-2 lg:h-[55px] lg:w-[500px] ".concat(T?"border-b ":"border-b border-b-white"),children:[(0,l.jsx)(o(),{alt:"",src:d.Z,width:0,height:0}),(0,l.jsx)("input",{onChange:z,type:"text",className:"h-[50%] w-[90%] border-l-2 px-2 outline-none lg:text-[16px]",placeholder:"Find The World’s Best Hospitals & Doctors",maxLength:40,id:"DesktopSearchBar",onKeyDown:t=>{"Enter"===t.key&&(z(t),F(!0))},onClick:()=>{F(!0)},onMouseEnter:()=>{F(!0)}})]}),T&&(0,l.jsxs)("div",{className:"max-h-[350px] overflow-y-auto  px-10",children:[null==C?void 0:null===(i=C.data)||void 0===i?void 0:null===(t=i.slice(0,(null==D?void 0:null===(e=D.data)||void 0===e?void 0:e.length)||(null==R?void 0:null===(a=R.data)||void 0===a?void 0:a.length)?2:8))||void 0===t?void 0:t.map((t,e)=>{var a,i,n,d,s,A;return(null==t?void 0:null===(a=t.attributes)||void 0===a?void 0:a.production_flag)?(0,l.jsxs)("div",{id:"TreatmentSearchResult".concat(e),onClick:()=>L(t.attributes.slug),className:"my-3 flex transform cursor-pointer items-center gap-2 hover:scale-105 hover:text-paleGreen",children:[(0,l.jsx)(o(),{width:35,height:30,alt:"doctor",src:r.default}),null==t?void 0:null===(i=t.attributes)||void 0===i?void 0:i.treatmentName]},e+"treatments"):(0,l.jsx)(v.default,{categoryContext:"TREATMENT",ctaLabel:"global Search Treatment",ctaButtonTitle:"Get A Free Treatment Plan",ctaPopupTitle:"",defaultDescription:"".concat(null==t?void 0:null===(n=t.attributes)||void 0===n?void 0:n.treatmentName),treatmentId:null==t?void 0:null===(d=t.attributes)||void 0===d?void 0:d.treatmendId,production_flag:!1,slug:null==t?void 0:null===(s=t.attributes)||void 0===s?void 0:s.slug,className:"block",children:(0,l.jsxs)("div",{id:"TreatmentSearchResult".concat(e),className:"my-3 flex transform cursor-pointer items-center gap-2 hover:scale-105 hover:text-paleGreen",children:[(0,l.jsx)(o(),{width:35,height:30,alt:"doctor",src:r.default}),null==t?void 0:null===(A=t.attributes)||void 0===A?void 0:A.treatmentName]},e+"treatments")},e+"treatments")}),null==D?void 0:null===(x=D.data)||void 0===x?void 0:null===(c=x.slice(0,(null==C?void 0:null===(p=C.data)||void 0===p?void 0:p.length)||(null==R?void 0:null===(g=R.data)||void 0===g?void 0:g.length)?2:8))||void 0===c?void 0:c.map((t,e)=>{var a;return(0,l.jsxs)("div",{id:"HospitalSearchResult".concat(e),onClick:()=>L("hospital/"+t.attributes.slug),className:"my-3 flex transform cursor-pointer items-center gap-2 hover:scale-105 hover:text-paleGreen",children:[(0,l.jsx)(o(),{width:35,height:30,alt:"doctor",src:A.default}),null==t?void 0:null===(a=t.attributes)||void 0===a?void 0:a.name]},e+"hospitals")}),null==R?void 0:null===(N=R.data)||void 0===N?void 0:null===(b=N.slice(0,(null==D?void 0:null===(f=D.data)||void 0===f?void 0:f.length)||(null==C?void 0:null===(w=C.data)||void 0===w?void 0:w.length)?2:8))||void 0===b?void 0:b.map((t,e)=>{var a;return(0,l.jsxs)("div",{id:"DoctorSearchResult".concat(e),onClick:()=>L("doctor/"+t.attributes.slug),className:"my-3 flex transform cursor-pointer items-center gap-2 hover:scale-105 hover:text-paleGreen",children:[(0,l.jsx)(o(),{width:35,height:30,alt:"doctor",src:s.Z}),null==t?void 0:null===(a=t.attributes)||void 0===a?void 0:a.doctorName]},e+"doctors")}),null==Q?void 0:Q.data.map((t,e)=>(0,l.jsxs)("div",{id:"LocationSearchResult".concat(e),onClick:()=>L("hospitals/india/"+t.attributes.location.data.attributes.name.toLowerCase()),className:"my-3 flex transform cursor-pointer items-center gap-2 hover:scale-105 hover:text-paleGreen",children:[(0,l.jsx)(o(),{width:35,height:30,alt:"hospital",src:A.default}),"Hospitals in "+t.attributes.location.data.attributes.name]},e+"hospital")),null==U?void 0:U.data.map((t,e)=>(0,l.jsxs)("div",{id:"LocationSearchResult".concat(e),onClick:()=>L(t.attributes.slug.toLowerCase()),className:"my-3 flex transform cursor-pointer items-center gap-2 capitalize hover:scale-105 hover:text-paleGreen",children:[(0,l.jsx)(o(),{width:35,height:30,alt:"hospital",src:A.default}),"Department in "+(null==t?void 0:t.attributes.slug)]},e+"hospital")),(null==D?void 0:D.data.length)===0&&void 0!==D&&(null==R?void 0:R.data.length)===0&&void 0!==R&&(null==Q?void 0:Q.data.length)===0&&void 0!==Q&&(null==U?void 0:U.data.length)===0&&void 0!==U&&(null==C?void 0:C.data.length)===0&&void 0!==C&&(0,l.jsx)("div",{children:"Result Not Found"})]})]})}},5321:function(t,e,a){a.r(e),e.default={src:"/_next/static/media/Facebook.77fff5c0.webp",height:30,width:30,blurDataURL:"data:image/webp;base64,UklGRnYAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSDcAAAABYBPZtpr2d9/K1xCo2UMMkLtUnOhheigiIiZgA3UDAJi8AmQUtqJz2SpyY0txe+UjIGgANm0DAFZQOCAYAAAAMAEAnQEqCAAIAAJAOCWkAANwAP77IYAA",blurWidth:8,blurHeight:8}},19:function(t,e){e.Z={src:"/_next/static/media/doctor.13fa92b7.png",height:200,width:200,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAIVBMVEXp6+3HzNPt7vD8/Pz5+Pibqrrm6OtMaXHh5et9kKZqgZqSZlYzAAAAC3RSTlNIDU5KUHY0ADaPq9GWrb4AAAAJcEhZcwAAFiUAABYlAUlSJPAAAAA0SURBVHicRcq5AcBACAPBFYLj6b9gh554aA2MGpERiZiMqsgHjiobcN2VYby36/lz68FTfyESAPE8Dk09AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},9910:function(t,e,a){a.r(e),e.default={src:"/_next/static/media/hospitals.af6c6750.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAKlBMVEXq6+7+/v19kafd4+Z3jKLFyMzf4+hMaXGjsL/X1+Hn5+zv8vLE1+vP192rzp5oAAAADnRSTlNIS5BXmA42AG4NNTINXWwKaqQAAAAJcEhZcwAACxMAAAsTAQCanBgAAAA2SURBVHicJca3AcBADAOxI5U+7T+vC6MCsxt6D4UiRNFa9lKDMp0C5D9Htq1DERHBY+rCrfkAH7MA6IvO1+4AAAAASUVORK5CYII=",blurWidth:8,blurHeight:8}},5946:function(t,e,a){a.r(e),e.default={src:"/_next/static/media/instagram.39a30816.webp",height:30,width:30,blurDataURL:"data:image/webp;base64,UklGRnQAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSDYAAAABYBTZahh5QVJxQE6/kuqEcIRJNTwbERFWAGV1tbduopn+BNGPT0CMeweoe1qcq4j3TzsAuQBWUDggGAAAADABAJ0BKggACAACQDglpAADcAD++yGAAA==",blurWidth:8,blurHeight:8}},3417:function(t,e,a){a.r(e),e.default={src:"/_next/static/media/linkedin.7a1f58ae.webp",height:30,width:30,blurDataURL:"data:image/webp;base64,UklGRoAAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSEEAAAAAvf///////7z/2ar///////+vW/3+/P///71nWD8s0P//rkc1plKJ//+uRzXBZIT//9ikm+G0w/+8////////vABWUDggGAAAADABAJ0BKggACAACQDglpAADcAD++yGAAA==",blurWidth:8,blurHeight:8}},7422:function(t,e,a){a.r(e),e.default={src:"/_next/static/media/treatment.c199e603.png",height:100,width:100,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAM1BMVEXo6+xddZHN09xvg53z9PVMaXHi4+j7+/rKzdOos8L///y+x9J3jaLj5ezU6emLnK3X1+v1ld5TAAAAEXRSTlNHwVukSQA1TQ1uLmaVNgyEDfx22P0AAAAJcEhZcwAACxMAAAsTAQCanBgAAAA8SURBVHicFcpZEsAgCAXBQYEHapb7nzaV/m7iTfesoFC3KC61WStBPs0FPnrOIbh0zmN7/Xns5iYqYVV8Nj0Bgq+1oRsAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8}},7276:function(t,e,a){a.r(e),e.default={src:"/_next/static/media/twitter.f2949495.webp",height:30,width:30,blurDataURL:"data:image/webp;base64,UklGRn4AAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSEAAAAABcBvbtqrU+7WKn7m7hAY1kJO5hcSkrhsrIiImYMHfBZ22YbyEQ+2sW4BZrz5/TkIzAe7J3s8OMNqx1Ycs+LsAVlA4IBgAAAAwAQCdASoIAAgAAkA4JaQAA3AA/vshgAA=",blurWidth:8,blurHeight:8}},7632:function(t,e,a){a.r(e),e.default={src:"/_next/static/media/youtube.50bf85dc.webp",height:30,width:30,blurDataURL:"data:image/webp;base64,UklGRnYAAABXRUJQVlA4WAoAAAAQAAAABwAABwAAQUxQSDcAAAABYBTbdpOoyTKw6gLYdjxFV8DK+zK6iIiYgJOYmekgDsFtLGVozDW9a6puy+5b+279GRzihMMOAFZQOCAYAAAAMAEAnQEqCAAIAAJAOCWkAANwAP77IYAA",blurWidth:8,blurHeight:8}},8161:function(t,e,a){a.r(e),e.default={src:"/_next/static/media/nabhLogo.1426ea6e.svg",height:41,width:40,blurWidth:0,blurHeight:0}}}]);