1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[730,1649,2115,4528,5309,5768,6351,7102,7381,8328,9165],{24027:(e,s,a)=>{a.d(s,{A:()=>p});var t=a(37876),n=a(6796),l=a(14232),r=a(278),d=a(575),i=a(12540),o=a(51930),c=a(48230),m=a.n(c),u=a(74944);let p=e=>{let{onClick:s,websiteData:a}=e,[c,p]=(0,l.useState)([]),[h,f]=(0,l.useState)(1),[x,g]=(0,l.useState)(!0),[b,N]=(0,l.useState)(!1),v=(0,l.useRef)(null),j=(0,l.useMemo)(()=>new r.A,[]),[w,y]=(0,l.useState)(1),{TriggerEvents:_}=(0,o.useCarterAnalytics)(),E=(0,l.useCallback)(async e=>{if(!b&&x)try{N(!0);let s=await j.ListPublishedWebsitesGroups({pagination:{page:e,limit:10},websiteIdOrSlug:a?.slug||"",groupId:a?.folderId?._id}),t=s?.listPublishedWebsitesGroups?.results||[],n=s?.listPublishedWebsitesGroups?.results?.map(e=>e?.slug||""),l=await (0,u.m)({slugs:n}),r=n.reduce((e,s,a)=>{let t=l?.domains?.[a];return t?.status==200&&t?.data?.domainName&&(e[s]=t?.data?.domainName),e},{});p(e=>([...e,...t].filter(e=>e?._id!==a?._id)||[])?.map(e=>({...e,domain:r[e?.slug]||e?.domain}))),g(t?.length===10),N(!1),y(s?.listPublishedWebsitesGroups?.total||1)}catch(e){console.log(e),N(!1)}},[j,a,b,x]);return(0,l.useEffect)(()=>{E(1)},[]),(0,l.useEffect)(()=>{let e=new IntersectionObserver(e=>{e[0].isIntersecting&&x&&!b&&f(e=>{let s=e+1;return E(s),s})},{threshold:.5}),s=v.current;return s&&e.observe(s),()=>{s&&e.unobserve(s)}},[E,x,b]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"dropdown-header mt-2 lg:mt-0 mb-2 lg:sticky lg:top-0 bg-[var(--white)]",children:(0,t.jsxs)("h5",{className:"header-text location-title px-6",children:["More clinic under ",a?.folderId?.name]})}),(0,t.jsxs)("div",{className:"lg:overflow-auto lg:max-h-[400px] -mt-3 h-auto overflow-behaviour px-6",children:[b&&!c.length?(0,t.jsx)("div",{className:"animate-pulse space-y-4",children:[void 0,void 0,void 0].map((e,s)=>(0,t.jsx)("div",{className:"bg-gray-200 h-20 w-full min-w-[500px] rounded-md"},s))}):c.map((e,l)=>(0,t.jsx)(d.kN,{asChild:!0,children:(0,t.jsxs)("div",{className:"dd-card dd-card-group px-1 py-3 lg:py-4 lg:px-[10px] relative",children:[(0,t.jsxs)(m(),{href:e?.domain?`https://${e.domain}`:`${n.A.BASE_URI}/website/published/${e?.slug}`,onClick:()=>s(e?.slug),target:"_blank",className:"dd-card-link cursor-pointer",children:[(0,t.jsx)("p",{className:"dd-card-title mb-1",children:e?.name}),(0,t.jsx)("p",{className:"dd-desc",children:e?.location?.address||""})]}),(0,t.jsxs)("div",{className:"dd-badges-wrpr flex flex-col gap-2",children:[e?.contactDetails?.phone&&(0,t.jsx)(m(),{href:`tel:${e?.contactDetails?.phone}`,onClick:()=>{i.uc.BOOK_APPOINTMENT(a,e=>{_?.CTA_CLICK({...e})},{buttonText:"Call"},!0,"call")},className:"dd-badge lite-badge w-fit mt-2 lg:mt-4",children:e?.contactDetails?.phone||""}),e?.category==="ER"&&(0,t.jsx)("p",{className:"dd-badge warning-badge w-fit",children:"24/7 Emergency Services"})]})]},e?._id||l)})),(0,t.jsx)("div",{ref:v,className:"h-0.5 text-center",children:b&&(0,t.jsx)("p",{children:"Loading more..."})})]})]})}},42298:(e,s,a)=>{a.d(s,{$:()=>r});var t=a(37876),n=a(14232),l=a(82987);(0,a(47137).F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}});let r=n.forwardRef((e,s)=>{let{className:a,variant:n,size:r,asChild:d=!1,...i}=e,o=d?l.DX:"button";return(0,t.jsx)(o,{className:a,ref:s,...i})});r.displayName="Button"},59690:(e,s,a)=>{a.d(s,{A:()=>m});var t=a(37876),n=a(14232),l=a(48230),r=a.n(l),d=a(21163),i=a(68202),o=a(19909),c=a(4708);let m=e=>{let{websiteData:s,multiSiteGroupChildren:a,serviceSection:l,onRouteChange:m,setOpenSubmenu:u}
1=e,[p,h]=(0,n.useState)(null),f=(0,n.useRef)(null),x=s?.slug||"",g=s?.status?.toLowerCase()||"published",{childServicesMap:b,loadingMap:N,fetchServicesForChild:v}=(0,c.y)(g,s?.templateName);(0,n.useEffect)(()=>{a?.length>0&&v(a[0])},[a]),(0,n.useLayoutEffect)(()=>{let e=f.current;if(e)if(null!==p){let s=e.getBoundingClientRect().left,a=window.innerWidth-s-16;e.style.maxWidth=`${Math.max(a,300)}px`}else e.style.maxWidth=""},[p]);let j=e=>{h(e);let s=a[e];s&&v(s)},w=null!==p?a[p]:null,y=w?.slug||"",_=b[y]||{},E=null!==p&&(N[y]||!1),k=Object.values(_).reduce((e,s)=>e+(s?.length||0),0);return(0,t.jsxs)("div",{ref:f,className:"multi-site-services-panel",onMouseLeave:()=>h(null),children:[(0,t.jsx)("div",{className:"location-sidebar",children:a.map((e,s)=>(0,t.jsx)("button",{type:"button",className:`location-sidebar-item ${s===p?"active":""}`,onMouseEnter:()=>j(s),onFocus:()=>j(s),children:(0,t.jsxs)("span",{className:"location-sidebar-text",children:["Services at ",e?.name]})},e?._id||`ms-loc-${e?.slug}`))}),null!==p&&(0,t.jsxs)("div",{className:"services-content",children:[(0,t.jsxs)("h4",{className:"services-content-heading",children:["Services at ",w?.name,!E&&k>0&&(0,t.jsxs)("span",{className:"services-count",children:[" (",k,")"]})]}),(0,t.jsx)("ul",{className:"nav-content-1 flex gap-0",children:E?Array.from({length:3}).map((e,s)=>(0,t.jsxs)("li",{className:"list-item min-w-[232px]",children:[(0,t.jsx)("div",{className:"menu-link-heading",children:(0,t.jsx)("div",{className:"h-4 bg-gray-200 rounded animate-pulse w-24"})}),(0,t.jsx)("ul",{className:"sub-menu-lst",children:Array.from({length:5}).map((e,a)=>(0,t.jsx)("li",{className:"sub-lst-item",children:(0,t.jsx)("div",{className:"sub-menu-link",children:(0,t.jsx)("div",{className:"h-3 bg-gray-200 rounded animate-pulse w-full max-w-[180px]"})})},`loading-ms-${s}-sub-${a}`))})]},`loading-ms-${s}`)):Object.keys(_).filter(e=>_[e]?.length>0).slice(0,3).map((e,s)=>(0,t.jsxs)("li",{className:"list-item min-w-[232px]",children:[(0,t.jsx)("p",{className:"menu-link-heading",children:((e,s)=>{let a=e?.pagesAndSections,t=Array.isArray(a)?a.find(e=>e?.name===o.Nb.LANDING_PAGE):a?.[o.Nb.LANDING_PAGE],n=t?.sections?.[o.bP.OUR_SERVICES_SECTION]?.data?.services;return n?.[s]?.name?n[s].name:l?.[s]?.name?l[s].name:(0,d.Zr)(s)})(w,e)}),(0,t.jsx)("ul",{className:"sub-menu-lst",children:_[e]?.slice(0,10)?.map((e,s)=>{var a;return(0,t.jsx)("li",{className:"sub-lst-item cursor-pointer",children:(0,t.jsx)(r(),{className:"sub-menu-link",href:(a=e?.slug,`/website/${g}/${x}/location/${y}/services/${a}`),onClick:()=>{m(e?.slug,"link",d.bw.SERVICES_PAGE),u("")},children:e?.name})},`${e?.slug}-${s}`)})})]},e||`ms-service-${s}`))}),(0,t.jsx)("div",{className:"text-center pb-6",children:(0,t.jsx)(r(),{href:i.W.enrichRoute(s,d.bw.SERVICES_PAGE),onClick:()=>{m(d.bw.SERVICES_PAGE),u("")},className:"menu-all cursor-pointer",children:"View All Services"})})]})]})}},65734:(e,s,a)=>{a.d(s,{Cf:()=>m,L3:()=>p,c7:()=>u,lG:()=>i,rr:()=>h});var t=a(37876),n=a(14232),l=a(91017),r=a(6967),d=a(27025);let i=l.bL;l.l9;let o=l.ZL;l.bm;let c=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)(l.hJ,{ref:s,className:(0,d.cn)("fixed inset-0 z-[1001] bg-[rgba(0,0,0,0.5)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...n})});c.displayName=l.hJ.displayName;let m=n.forwardRef((e,s)=>{let{className:a,children:n,...i}=e;return(0,t.jsxs)(o,{children:[(0,t.jsx)(c,{}),(0,t.jsxs)(l.UC,{ref:s,className:(0,d.cn)("fixed left-[50%] top-[50%] z-[1001] grid translate-x-[-50%] translate-y-[-50%] data-[state=open]:translate-x-[-50%] data-[state=open]:translate-y-[-50%] border shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-2xl sm:rounded-[20px]",a),...i,children:[n,(0,t.jsxs)(l.bm,{className:"absolute right-2 md:right-[43px] top-[14px] rounded-sm opacity-100 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground close-btn",children:[(0,t.jsx)(r.X,{className:"h-4 w-4 md:h-8 md:w-8 primary-text"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});m.displayName=l.UC.displayName;let u=e=>{let{className:s,...a}=e;return(0,t.jsx)("div",{className:(0,d.cn)(s),...a})};u.displayName="DialogHeader";let p=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)(l.hE,{ref:s,className:(0,d.cn)(a),...n})});p.displayName=l.hE.displayName;let h=n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)(l.VY,{ref:s,className:(0,d.cn)(a),...n})});h.displayName=l.VY.displayName},94639:(e,s,a)=>{a.d(s,{A:()=>f});var t=a(37876),n=a(14232),l=a(69777),r=a(98286),d=a(27025);let i=l.bL,o=l.l9;l.YJ,l.ZL,l.Pb,l.z6,n.forwardRef((e,s)=>{let{className:a,inset:n,children:i,...o}=e;return(0,t.jsxs)(l.ZP,{ref:s,className:(0,d.cn)("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus-within:outline-none focus-visible:outline-none focus:outline-none data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n&&"pl-8",a),...o,children:[i,(0,t.jsx)(r.c_,{className:"ml-auto"})]})}).displayName=l.ZP.displayName,n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)(l.G5,{ref:s,className:(0,d.cn)(" z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...n})}).displayName=l.G5.displayName;let c=n.forwardRef((e,s)=>{let{className:a,sideOffset:n=4,...r}=e;return(0,t.jsx)(l.ZL,{children:(0,t.jsx)(l.UC,{ref:s,sideOffset:n,className:(0,d.cn)("z-50 min-w-[8rem] overflow-hidden rounded-[20px] border border-solid border-[#E4E4E4] bg-popover p-3 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...r})})});c.displayName=l.UC.displayName,n.forwardRef((e,s)=>{let{className:a,inset:n,...r}=e;return(0,t.jsx)(l.q7,{ref:s,className:(0,d.cn)("relative flex cursor-default select-none items-center gap-2 text-base font-medium outline-none transition-colors hover:bg-[var(--vis-slate-300)] focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",n&&"pl-8",a),...r})}).displayName=l.q7.displayName,n.forwardRef((e,s)=>{let{className:a,children:n,checked:i,...o}=e;return(0,t.jsxs)(l.H_,{ref:s,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:i,...o,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(l.VF,{children:(0,t.jsx)(r.Jl,{className:"h-4 w-4"})})}),n]})}).displayName=l.H_.displayName,n.forwardRef((e,s)=>{let{className:a,children:n,...i}=e;return(0,t.jsxs)(l.hN,{ref:s,className:(0,d.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...i,children:[(0,t.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(l.VF,{children:(0,t.jsx)(r.jl,{className:"h-2 w-2 fill-current"})})}),n]})}).displayName=l.hN.displayName,n.forwardRef((e,s)=>{let{className:a,inset:n,...r}=e;return(0,t.jsx)(l.JU,{ref:s,className:(0,d.cn)("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",a),...r})}).displayName=l.JU.displayName,n.forwardRef((e,s)=>{let{className:a,...n}=e;return(0,t.jsx)(l.wv,{ref:s,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",a),...n})}).displayName=l.wv.displayName;var m=a(6796),u=a(48230),p=a.n(u),h=a(19909);let f=e=>{let{emergencyBranches:s,onClick:a,hasFetched:n}=e;return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(i,{children:[(0,t.jsx)(o,{className:"btn red-outline-btn",children:"Emergency"}),(0,t.jsxs)(c,{side:"bottom",className:"dd-style bg-white min-w-[300px] max-w-[300px] sm:max-w-[412px] sm:min-w-[412px] p-3 pt-0 sm:p-6 sm:pt-0 shadow-[0px_36px_40px_0px_#00000024] border rounded-[4px] md:rounded-[20px] border-solid border-[var(--vis-dark)] max-h-[320px] sm:max-h-[500px] overflow-y-auto ml-3 sm:ml-0 mt-3 sm:mt-5",children:[(0,t.jsx)("div",{className:"dropdown-header mb-2 sticky top-0 bg-[var(--white)] pt-4 md:pt-6",children:(0,t.jsx)("p",{className:"header-text",children:"For urgent needs, please contact the nearest emergency clinics"})}),(0,t.jsx)("div",{className:"dd-card-wrpr overflow-auto h-auto max-h-[380px]",children:n?s?.map((e,s)=>{let n=e?.pagesAndSections?.[h.Nb.LANDING_PAGE]?.sections?.[h.bP.CONTACT_US_SECTION]?.data?.operationBanner,l=e?.domain||"",r=l.startsWith("http://")||l.startsWith("https://")?l:`https://${l}`,d=`${m.A.BASE_URI}/website/published/${e?.slug}`;return(0,t.jsx)("div",{className:"dd-card dd-card-group py-4 px-[10px] relative",children:(0,t.jsxs)(p(),{href:l?r:d,onClick:()=>a(e?.slug),target:"_blank",className:"dd-card-link cursor-pointer",children:[(0,t.jsx)("h6",{className:"dd-card-title mb-1",children:e?.name}),(0,t.jsx)("p",{className:"dd-desc mb-4",children:e?.location?.address||""}),(0,t.jsxs)("div",{className:"dd-badges-wrpr flex flex-col gap-2",children:[e?.contactDetails?.phone&&(0,t.jsx)("p",{className:"dd-badge lite-badge w-fit",children:e?.contactDetails?.phone}),n&&(0,t.jsx)("p",{className:"dd-badge warning-badge w-fit",children:n})]})]})},`emergency_${s}`)}):(0,t.jsx)("p",{children:"Loading.."})})]})]})})}}}]);
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.