1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[730,999,1649,2115,2496,4528,5309,5591,5768,6351,7381,8328],{24027:(e,t,n)=>{n.d(t,{A:()=>g});var s=n(37876),a=n(14232),l=n(278),r=n(575),i=n(12540),o=n(51930),d=n(48230),c=n.n(d),u=n(23623),m=n(68202),p=n(74944),h=n(98673);let g=e=>{let{onClick:t,websiteData:n}=e,[d,g]=(0,a.useState)([]),[f,x]=(0,a.useState)(1),[b,v]=(0,a.useState)(!0),[N,j]=(0,a.useState)(!1),w=(0,a.useRef)(null),y=(0,a.useMemo)(()=>new l.A,[]),[k,C]=(0,a.useState)(1),{TriggerEvents:S}=(0,o.useCarterAnalytics)(),[_,O]=(0,a.useState)("https://prd-uvc-cms-visitor.uvcpaws.com");(0,a.useEffect)(()=>{(0,h.T8)(window.location.hostname)?O((0,h.RQ)()):O("https://prd-uvc-cms-visitor.uvcpaws.com")},[]);let E=(0,a.useCallback)(async e=>{if(!N&&b)try{j(!0);let t=await y.ListPublishedWebsitesGroups({pagination:{page:e,limit:10},websiteIdOrSlug:n?.slug||"",groupId:n?.folderId?._id}),s=t?.listPublishedWebsitesGroups?.results||[],a=t?.listPublishedWebsitesGroups?.results?.map(e=>e?.slug||""),l=a?.length?await (0,p.m)({slugs:a}):{},r=a.reduce((e,t,n)=>{let s=l?.domains?.[n];return s?.status==200&&s?.data?.domainName&&(e[t]=s?.data?.domainName),e},{});g(e=>([...e,...s].filter(e=>e?._id!==n?._id)||[])?.map(e=>({...e,domain:r[e?.slug]||e?.domain}))),v(s?.length===10),j(!1),C(t?.listPublishedWebsitesGroups?.total||1)}catch(e){console.log(e),j(!1)}},[y,n,N,b]);return(0,a.useEffect)(()=>{E(1)},[]),(0,a.useEffect)(()=>{let e=new IntersectionObserver(e=>{e[0].isIntersecting&&b&&!N&&x(e=>{let t=e+1;return E(t),t})},{threshold:.5}),t=w.current;return t&&e.observe(t),()=>{t&&e.unobserve(t)}},[E,b,N]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"dropdown-header mt-2 lg:mt-0 mb-2 lg:sticky lg:top-0 bg-white",children:(0,s.jsxs)("h5",{className:"header-text location-title px-2 md:px-6",children:[n?.folderId?.name," Locations:"]})}),(0,s.jsxs)("div",{className:"lg:overflow-auto lg:max-h-[400px] -mt-3 h-auto overflow-behaviour px-2 md:px-6",children:[N&&!d.length?(0,s.jsx)("div",{className:"animate-pulse space-y-4",children:[void 0,void 0,void 0].map((e,t)=>(0,s.jsx)("div",{className:"bg-gray-200 h-20 w-full min-w-[500px] rounded-md"},t))}):d.map((e,a)=>(0,s.jsx)(r.kN,{asChild:!0,children:(0,s.jsxs)("div",{className:"dd-card dd-card-group px-1 py-3 lg:py-4 lg:px-[10px] relative",children:[(0,s.jsxs)(c(),{href:e?.domain?`https://${e.domain}`:(0,m.QF)(_||"",_===(0,h.RQ)()?"locations":"website/published",e?.slug||""),onClick:()=>t(e?.slug),target:"_blank",className:"dd-card-link cursor-pointer",children:[(0,s.jsx)("p",{className:"dd-card-title mb-1",children:e?.name}),(0,s.jsx)("p",{className:"dd-desc",children:e?.location?.address?(0,s.jsx)(u.D,{address:e?.location?.address}):""})]}),(0,s.jsxs)("div",{className:"dd-badges-wrpr flex flex-col gap-2",children:[e?.contactDetails?.phone&&(0,s.jsx)(c(),{href:`tel:${e?.contactDetails?.phone}`,onClick:()=>{i.uc.BOOK_APPOINTMENT(n,e=>{S?.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,s.jsx)("p",{className:"dd-badge warning-badge w-fit",children:"24/7 Emergency Services"})]})]},e?._id||a)})),(0,s.jsx)("div",{ref:w,className:"h-0.5 text-center",children:N&&(0,s.jsx)("p",{children:"Loading more..."})})]})]})}},42298:(e,t,n)=>{n.d(t,{$:()=>r});var s=n(37876),a=n(14232),l=n(82987);(0,n(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=a.forwardRef((e,t)=>
1{let{className:n,variant:a,size:r,asChild:i=!1,...o}=e,d=i?l.DX:"button";return(0,s.jsx)(d,{className:n,ref:t,...o})});r.displayName="Button"},65228:(e,t,n)=>{n.d(t,{AZ:()=>w,ks:()=>y});var s=n(37876),a=n(14232),l=n(27025),r=n(94408),i=n(575),o=n(68202),d=n(48230),c=n.n(d),u=n(89099),m=n(19909),p=n(55128),h=n(82964),g=n(73437),f=n(37659);function x(e,t){if(!t)return null;let n=Array.isArray(e)?e:Object.values(e||[]),s=t.endsWith("-page")?t:`${t}-page`;return n.find(e=>String(e?._id)===t||String(e?._id)===s||e?.name===t||e?.slug===t||e?.name===s||e?.slug===s||e?.name?.replace(/^custom-/,"")===t?.replace(/^custom-/,"")||o.W_.getPagePath(e?.name)===t||o.W_.getPagePath(e?.slug)===t)||null}function b(e){return!!(e?.category==="MULTI_WEBSITE_GROUP"||e?.isMultiSiteParent||e?.isMultiSiteChild)}function v(e){return e?.type==="locations"||e?.id==="locations-menu"||e?.id==="menu-locations"||e?.label==="Locations"}function N(e){let{websiteData:t,onRouteChange:n,onClose:l,servicesLoading:r,variant:d="desktop",customChildren:u}=e,{serviceList:g,serviceSection:f,servicesPageSlug:x}=a.useMemo(()=>{let e=(0,h.E)(t?.serviceList,t?.templateName),n=Array.isArray(t?.pagesAndSections)?t.pagesAndSections:Object.values(t?.pagesAndSections||{});return{serviceList:e,serviceSection:n.find(e=>e?.name===m.Nb.LANDING_PAGE)?.sections?.[m.bP.OUR_SERVICES_SECTION]?.data?.services,servicesPageSlug:(0,p.WS)(t,m.Nb.SERVICES_PAGE)}},[t?.serviceList,t?.templateName,t?.pagesAndSections]),b=o.W_.enrichRoute(t,x,""),v=(0,s.jsx)(c(),{href:b,onClick:()=>{n?.(x),l?.()},className:"menu-all cursor-pointer",children:"View all"}),N=a.useMemo(()=>{let e=f||{};return(g?Object.keys(g).filter(t=>e[t]?.enabled!==!1):Object.entries(e).filter(e=>{let[,t]=e;return t?.enabled!==!1}).map(e=>{let[t]=e;return t})).map(t=>({key:t,label:e[t]?.name||(0,p.Zr)(t),enabled:e[t]?.enabled!==!1}))},[f,g]),w=u&&u.length>0,y=a.useMemo(()=>0!==N.length||w?0===N.length?[]:N.map(e=>{let{key:t,label:n,enabled:s}=e;if(!s)return null;let a=w?u.find(e=>e.id===`service-type-${t}`):null,l=a?.enabled!==!1&&a?.children||[],r=l.length>0,i=g&&g[t]||[];return{key:t,label:n,links:r?[...l,...i]:i}}).filter(Boolean):null,[N,w,u,g]);if(y&&y.length>0){let e=y.slice(0,3);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("ul",{className:"desktop"===d?"nav-content-1 flex gap-0":"grid gap-4 md:gap-2 grid-cols-1",children:e.map((e,a)=>(0,s.jsxs)("li",{className:"desktop"===d?"list-item min-w-[232px]":"list-item",children:[(0,s.jsx)("p",{className:"menu-link-heading",children:e.label}),(0,s.jsx)("ul",{className:"sub-menu-lst",children:e.links.map((e,a)=>{if(e?.enabled===!1)return null;let r=e&&"string"==typeof e.id&&(e.type||e.label),u=r?j(e,t):{href:o.W_.enrichRoute(t,x,e?.slug),isExternal:!1},m=r?e.label:e?.name,p=(0,s.jsx)(c(),{className:"sub-menu-link",href:u.href,target:u.isExternal?"_blank":void 0,rel:u.isExternal?"noopener noreferrer":void 0,onClick:()=>{n?.(r?e.id||e.label:e?.slug,"link",x),l?.()},children:m});return(0,s.jsx)("li",{className:"sub-lst-item cursor-pointer",children:"mobile"===d?(0,s.jsx)(i.kN,{asChild:!0,children:p}):p},e?.id||e?.slug||a)})})]},e.key||a))}),(0,s.jsx)("div",{className:"text-center",children:"mobile"===d?(0,s.jsx)(i.kN,{asChild:!0,children:v}):v})]})}if(r?.isLoading)return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("ul",{className:"desktop"===d?"nav-content-1 flex gap-0":"grid gap-4 md:gap-2 grid-cols-1",children:Array.from({length:3}).map((e,t)=>(0,s.jsxs)("li",{className:"desktop"===d?"list-item min-w-[232px]":"list-item",children:[(0,s.jsx)("div",{className:"menu-link-heading",children:(0,s.jsx)("div",{className:"h-4 bg-gray-200 rounded animate-pulse w-24"})}),(0,s.jsx)("ul",{className:"sub-menu-lst",children:Array.from({length:5}).map((e,n)=>(0,s.jsx)("li",{className:"sub-lst-item",children:(0,s.jsx)("div",{className:"sub-menu-link",children:(0,s.jsx)("div",{className:"h-3 bg-gray-200 rounded animate-pulse w-full max-w-[180px]"})})},`loading-service-${t}-sub-${n}`))})]},`loading-service-${t}`))}),(0,s.jsx)("div",{className:"text-center",children:"mobile"===d?(0,s.jsx)(i.kN,{asChild:!0,children:v}):v})]});let k=Object.keys(g||{}).slice(0,3);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("ul",{className:"desktop"===d?"nav-content-1 flex gap-0":"grid gap-4 md:gap-2 grid-cols-1",children:k.map((e,a)=>(0,s.jsxs)("li",{className:"desktop"===d?"list-item min-w-[232px]":"list-item",children:[(0,s.jsx)("p",{className:"menu-link-heading",children:f?.[e]?.name||(0,p.Zr)(e)}
1),(0,s.jsx)("ul",{className:"sub-menu-lst",children:g[e]?.map((e,a)=>{let r=o.W_.enrichRoute(t,x,e?.slug),u=(0,s.jsx)(c(),{className:"sub-menu-link",href:r,onClick:()=>{n?.(e?.slug,"link",x),l?.()},children:e?.name});return(0,s.jsx)("li",{className:"sub-lst-item cursor-pointer",children:"mobile"===d?(0,s.jsx)(i.kN,{asChild:!0,children:u}):u},a)})})]},a))}),(0,s.jsx)("div",{className:"text-center",children:"mobile"===d?(0,s.jsx)(i.kN,{asChild:!0,children:v}):v})]})}function j(e,t){var n;let s;if(("external"===e.type||"button"===e.type)&&e.externalUrl)return{href:e.externalUrl,isExternal:!0};let a=t?.pagesAndSections||[],l=Array.isArray(a)?a:Object.values(a),r=e.id||((n=e.pageId||"",/^[a-f0-9]{24}$/i.test(String(n||"")))?"":e.pageId||"")||"";if(!r||r===m.Nb.LANDING_PAGE||"landing-page"===r)return{href:o.W_.enrichRoute(t,"",""),isExternal:!1};let i=x(l,r);if(i||r.endsWith("-page")||(i=x(l,`${r}-page`)),i){let e=i?.pageType?.toUpperCase()==="CUSTOM";s=r||(e?i.slug||i.name?.replace(/^custom-/,"")||i.name||"":o.W_.getPagePath(i.slug)||i.name||"")}else s=r||"";return{href:o.W_.enrichRoute(t,s,""),isExternal:!1}}function w(e){let{items:t,websiteData:n,onClick:i,onRouteChange:d,className:h,servicesLoading:x}=e,w=(0,u.useRouter)(),[y,k]=a.useState(""),C=a.useRef(null),S=(0,f.i5)(),_=a.useMemo(()=>(S?.multiSiteGroupChildren?.results||[]).filter(e=>e?._id!==n?._id).length,[S?.multiSiteGroupChildren?.results,n?._id]),O=a.useMemo(()=>!Array.isArray(S?.multiSiteGroupChildren?.results)||_>0,[S?.multiSiteGroupChildren?.results,_]),E=a.useMemo(()=>{if(_>0)return _;let e=Number(n?.folderCount||0);return Number.isFinite(e)?e:0},[_,n?.folderCount]),D=a.useMemo(()=>`Locations${E>0?` (${E})`:""}`,[E]);if(!t?.length)return null;let A=()=>{C.current&&(clearTimeout(C.current),C.current=null)},T=(e,t,n,s)=>{t||(d?.(n,"link","menu_item"),i?.(n))},P=e=>("menu"===e.type||"dropdown"===e.type)&&(e.children??[]).filter(e=>!1!==e.enabled).length>0,R=a.useMemo(()=>t.filter(e=>!1!==e.enabled).sort((e,t)=>(e.sequence??0)-(t.sequence??0)),[t]),I=R.slice(0,5),M=R.slice(5);return(0,s.jsx)(r.KS,{value:y,onValueChange:k,className:(0,l.cn)("ml-auto",h),children:(0,s.jsxs)(r.SK,{children:[I.map((e,t)=>((e,t)=>{if(!1===e.enabled)return null;let{href:a,isExternal:u}=j(e,n);if("services"===e.type){if(b(n)){let t=(0,p.WS)(n,m.Nb.SERVICES_PAGE),a=o.W_.enrichRoute(n,t);return(0,s.jsx)(r.JD,{className:"relative",children:(0,s.jsx)(c(),{className:(0,l.cn)((0,r.R6)()),href:a,onClick:()=>{n?.slug&&(sessionStorage.setItem("multiSiteServiceSlug",n.slug),n?.isMultiSiteChild&&n?.parent?.slug&&sessionStorage.setItem("multiSiteParentSlug",n.parent.slug)),d?.(t),i?.(t)},children:e.label})},e.id)}let a=`nav-services-${t}`;return(0,s.jsxs)(r.JD,{value:a,className:"relative",children:[(0,s.jsx)(r.wd,{className:"nav-link trigger-link","data-state":y===a?"open":"closed",onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),onClick:e=>{e.stopPropagation(),k(y===a?"":a)},"aria-expanded":y===a,children:e.label}),(0,s.jsx)(r.hA,{className:"service-nav nav-menu",onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),children:(0,s.jsx)(N,{websiteData:n,onRouteChange:d,onClose:()=>k(""),servicesLoading:x,variant:"desktop",customChildren:e.children?.filter(e=>!1!==e.enabled)})})]},e.id)}if(v(e)){if(!b(n)||!O)return null;let a=`nav-locations-${t}`;return(0,s.jsxs)(r.JD,{value:a,className:"relative",children:[(0,s.jsx)(r.wd,{className:"nav-link trigger-link","data-state":y===a?"open":"closed",onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),onClick:e=>{e.stopPropagation(),k(y===a?"":a)},"aria-expanded":y===a,children:D}),(0,s.jsx)(r.hA,{className:"nav-menu nav-col-menu right-0 left-auto min-w-[350px] lg",onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),children:(0,s.jsx)(g.A,{onClick:e=>{d?.(e,"link","menu_item"),i?.(e),k("")},websiteData:n})})]},e.id)}if(("menu"===e.type||"dropdown"===e.type)&&!P(e))return null;if(P(e)){let a=`nav-${e.id}-${t}`;return(0,s.jsxs)(r.JD,{value:a,className:"relative",children:[(0,s.jsx)(r.wd,{className:"nav-link trigger-link","data-state":y===a?"open":"closed",onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),onClick:e=>{e.stopPropagation(),k(y===a?"":a)},"aria-expanded":y===a,children:e.label}),(0,s.jsx)(r.hA,{className:"nav-menu nav-col-menu",onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>
1e.preventDefault(),children:(0,s.jsx)("ul",{className:"sub-menu-lst",children:(e.children||[]).filter(e=>!1!==e.enabled).sort((e,t)=>(e.sequence??0)-(t.sequence??0)).map(e=>{let t=j(e,n);return(0,s.jsx)("li",{className:"sub-lst-item cursor-pointer",children:(0,s.jsx)(c(),{className:"sub-menu-link",href:t.href,target:t.isExternal?"_blank":void 0,rel:t.isExternal?"noopener noreferrer":void 0,onClick:n=>{t.isExternal||(n.preventDefault(),w.push(t.href)),T(t.href,t.isExternal,e.id,e.label),k("")},children:e.label})},e.id)})})})]},e.id)}return"button"===e.type?(0,s.jsx)(r.JD,{className:"relative",children:(0,s.jsx)(c(),{className:(0,l.cn)("btn whitespace-nowrap",u?"outline-btn":"primary-btn"),href:a,target:u?"_blank":void 0,rel:u?"noopener noreferrer":void 0,onClick:t=>{u||(t.preventDefault(),w.push(a)),T(a,u,e.id,e.label)},children:e.label})},e.id):(0,s.jsx)(r.JD,{className:"relative",children:(0,s.jsx)(c(),{className:(0,l.cn)((0,r.R6)()),href:a,target:u?"_blank":void 0,rel:u?"noopener noreferrer":void 0,onClick:t=>{u||(t.preventDefault(),w.push(a)),T(a,u,e.id,e.label)},children:e.label})},e.id)})(e,t)),M.length>0&&(0,s.jsxs)(r.JD,{value:"nav-more",className:"relative",children:[(0,s.jsx)(r.wd,{className:"nav-link trigger-link","data-state":"nav-more"===y?"open":"closed",onPointerEnter:()=>{A(),k("nav-more")},onPointerLeave:()=>{C.current=setTimeout(()=>k(""),150)},onClick:e=>{e.stopPropagation(),k("nav-more"===y?"":"nav-more")},"aria-expanded":"nav-more"===y,children:"More"}),(0,s.jsx)(r.hA,{className:"nav-menu nav-col-menu",onPointerEnter:A,onPointerLeave:()=>k(""),children:(0,s.jsx)("ul",{className:"sub-menu-lst",children:M.map(e=>{if(!1===e.enabled)return null;let{href:t,isExternal:a}=j(e,n);if("services"===e.type){if(b(n)){let t=(0,p.WS)(n,m.Nb.SERVICES_PAGE),a=o.W_.enrichRoute(n,t);return(0,s.jsx)("li",{className:"sub-lst-item cursor-pointer",children:(0,s.jsx)(c(),{className:"sub-menu-link",href:a,onClick:()=>{n?.slug&&(sessionStorage.setItem("multiSiteServiceSlug",n.slug),n?.isMultiSiteChild&&n?.parent?.slug&&sessionStorage.setItem("multiSiteParentSlug",n.parent.slug)),d?.(t),k("")},children:e.label})},e.id)}return(0,s.jsxs)("li",{className:"sub-lst-item",children:[(0,s.jsx)("span",{className:"sub-menu-link font-semibold",children:e.label}),(0,s.jsx)(N,{websiteData:n,onRouteChange:d,onClose:()=>k(""),servicesLoading:x,variant:"desktop",customChildren:e.children?.filter(e=>!1!==e.enabled)})]},e.id)}return v(e)?b(n)&&O?(0,s.jsxs)("li",{className:"sub-lst-item",children:[(0,s.jsx)("span",{className:"sub-menu-link font-semibold",children:D}),(0,s.jsx)(g.A,{onClick:e=>{d?.(e,"link","menu_item"),i?.(e),k("")},websiteData:n})]},e.id):null:"menu"!==e.type&&"dropdown"!==e.type||P(e)?P(e)?(0,s.jsxs)("li",{className:"sub-lst-item",children:[(0,s.jsx)("span",{className:"sub-menu-link font-semibold",children:e.label}),(0,s.jsx)("ul",{className:"ml-2 mt-1 space-y-1",children:(e.children||[]).filter(e=>!1!==e.enabled).map(e=>{let t=j(e,n);return(0,s.jsx)("li",{className:"sub-lst-item cursor-pointer",children:(0,s.jsx)(c(),{className:"sub-menu-link",href:t.href,target:t.isExternal?"_blank":void 0,rel:t.isExternal?"noopener noreferrer":void 0,onClick:n=>{t.isExternal||(n.preventDefault(),w.push(t.href)),T(t.href,t.isExternal,e.id,e.label),k("")},children:e.label})},e.id)})})]},e.id):"button"===e.type?(0,s.jsx)("li",{className:"sub-lst-item",children:(0,s.jsx)(c(),{className:(0,l.cn)("btn whitespace-nowrap w-full",a?"outline-btn":"primary-btn"),href:t,target:a?"_blank":void 0,rel:a?"noopener noreferrer":void 0,onClick:n=>{a||(n.preventDefault(),w.push(t)),T(t,a,e.id,e.label),k("")},children:e.label})},e.id):(0,s.jsx)("li",{className:"sub-lst-item cursor-pointer",children:(0,s.jsx)(c(),{className:"sub-menu-link",href:t,target:a?"_blank":void 0,rel:a?"noopener noreferrer":void 0,onClick:n=>{a||(n.preventDefault(),w.push(t)),T(t,a,e.id,e.label),k("")},children:e.label})},e.id):null})})})]},"nav-more")]})})}function y(e){let{items:t,websiteData:n,onClick:d,servicesLoading:u}=e,[h,x]=a.useState(""),w=(0,f.i5)(),y=a.useMemo(()=>(w?.multiSiteGroupChildren?.results||[]).filter(e=>e?._id!==n?._id).length,[w?.multiSiteGroupChildren?.results,n?._id]),k=a.useMemo(()=>!Array.isArray(w?.multiSiteGroupChildren?.results)||y>0,[w?.multiSiteGroupChildren?.results,y]),C=a.useMemo(()=>
1{if(y>0)return y;let e=Number(n?.folderCount||0);return Number.isFinite(e)?e:0},[y,n?.folderCount]),S=a.useMemo(()=>`Locations${C>0?` (${C})`:""}`,[C]);return t?.length?(0,s.jsx)(s.Fragment,{children:t.filter(e=>!1!==e.enabled).sort((e,t)=>(e.sequence??0)-(t.sequence??0)).map((e,t)=>((e,t)=>{if(!1===e.enabled)return null;let{href:a,isExternal:f}=j(e,n);if("services"===e.type){if(b(n)){let t=(0,p.WS)(n,m.Nb.SERVICES_PAGE),a=o.W_.enrichRoute(n,t);return(0,s.jsx)(r.JD,{className:"side-lst-item",children:(0,s.jsx)(i.kN,{asChild:!0,children:(0,s.jsx)(c(),{className:"nav-link cursor-pointer",href:a,onClick:()=>{n?.slug&&(sessionStorage.setItem("multiSiteServiceSlug",n.slug),n?.isMultiSiteChild&&n?.parent?.slug&&sessionStorage.setItem("multiSiteParentSlug",n.parent.slug)),d?.(t)},children:e.label})})},e.id)}let a=`mobile-nav-services-${t}`;return(0,s.jsxs)(r.JD,{className:"side-lst-item",children:[(0,s.jsx)(r.wd,{className:"nav-link trigger-icon",onClick:()=>x(h===a?"":a),children:e.label}),(0,s.jsx)(r.hA,{className:"nav-menu",children:(0,s.jsx)(N,{websiteData:n,onRouteChange:e=>d?.(e),onClose:()=>x(""),servicesLoading:u,variant:"mobile",customChildren:e.children?.filter(e=>!1!==e.enabled)})})]},e.id)}if(v(e)){if(!b(n)||!k)return null;let a=`mobile-nav-locations-${t}`;return(0,s.jsxs)(r.JD,{className:"side-lst-item",children:[(0,s.jsx)(r.wd,{className:"nav-link trigger-icon",onClick:()=>x(h===a?"":a),children:S}),(0,s.jsx)(r.hA,{className:"nav-menu lg",children:(0,s.jsx)(g.A,{onClick:e=>{d?.(e),x("")},websiteData:n})})]},e.id)}if(("menu"===e.type||"dropdown"===e.type)&&(e.children??[]).filter(e=>!1!==e.enabled).length>0){let a=`mobile-nav-${e.id}-${t}`;return(0,s.jsxs)(r.JD,{className:"side-lst-item",children:[(0,s.jsx)(r.wd,{className:"nav-link trigger-icon",onClick:()=>x(h===a?"":a),children:e.label}),(0,s.jsx)(r.hA,{className:"nav-menu",children:(0,s.jsx)("ul",{className:"grid gap-2 grid-cols-1",children:(e.children||[]).filter(e=>!1!==e.enabled).map(e=>{let t=j(e,n);return(0,s.jsx)("li",{className:"list-item",children:(0,s.jsx)(i.kN,{asChild:!0,children:(0,s.jsx)(c(),{className:"menu-link-heading cursor-pointer",href:t.href,target:t.isExternal?"_blank":void 0,rel:t.isExternal?"noopener noreferrer":void 0,onClick:()=>{d?.(e.id||e.label)},children:e.label})})},e.id)})})})]},e.id)}return"button"===e.type?(0,s.jsx)(r.JD,{className:"side-lst-item",children:(0,s.jsx)(i.kN,{asChild:!0,children:(0,s.jsx)(c(),{className:(0,l.cn)("btn whitespace-nowrap w-full",f?"outline-btn":"primary-btn"),href:a,target:f?"_blank":void 0,rel:f?"noopener noreferrer":void 0,onClick:()=>{d?.(e.id||e.label)},children:e.label})})},e.id):(0,s.jsx)(r.JD,{className:"side-lst-item",children:(0,s.jsx)(i.kN,{asChild:!0,children:(0,s.jsx)(c(),{className:"nav-link cursor-pointer",href:a,target:f?"_blank":void 0,rel:f?"noopener noreferrer":void 0,onClick:()=>{d?.(e.id||e.label)},children:e.label})})},e.id)})(e,t))}):null}},65734:(e,t,n)=>{n.d(t,{Cf:()=>u,L3:()=>p,c7:()=>m,lG:()=>o,rr:()=>h});var s=n(37876),a=n(14232),l=n(96415),r=n(6967),i=n(27025);let o=l.bL;l.l9;let d=l.ZL;l.bm;let c=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,s.jsx)(l.hJ,{ref:t,className:(0,i.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",n),...a})});c.displayName=l.hJ.displayName;let u=a.forwardRef((e,t)=>{let{className:n,children:a,...o}=e;return(0,s.jsxs)(d,{children:[(0,s.jsx)(c,{}),(0,s.jsxs)(l.UC,{ref:t,className:(0,i.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]",n),...o,children:[a,(0,s.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",children:[(0,s.jsx)(r.X,{className:"h-4 w-4 md:h-8 md:w-8 primary-text"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=l.UC.displayName;let m=e=>{let{className:t,...n}=e;return(0,s.jsx)("div",{className:(0,i.cn)(t),...n})};m.displayName="DialogHeader";let p=a.forwardRef((e,t)=>
1{let{className:n,...a}=e;return(0,s.jsx)(l.hE,{ref:t,className:(0,i.cn)(n),...a})});p.displayName=l.hE.displayName;let h=a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,s.jsx)(l.VY,{ref:t,className:(0,i.cn)(n),...a})});h.displayName=l.VY.displayName},67346:(e,t,n)=>{n.d(t,{A:()=>a});var s=n(14232);function a(e){let{scriptContent:t,enabled:n,cookieSettings:a,cookieList:l}=e,r=(0,s.useRef)(!1);return(0,s.useEffect)(()=>{if(!t||!n)return void console.log("[OneTrust] Disabled or no script content");if(r.current)return void console.log("[OneTrust] Already initialized");if(document.querySelector('script[src*="cookielaw.org/scripttemplates/otSDKStub.js"]')){console.log("[OneTrust] SDK script already exists in DOM"),r.current=!0;return}let e=document.createElement("div");e.innerHTML=t.trim();let s=Array.from(e.querySelectorAll("script"));console.log(`[OneTrust] Found ${s.length} script tag(s) in scriptContent`);let a=s.find(e=>e.getAttribute("src")?.includes("cookielaw.org")),l=s.find(e=>!e.getAttribute("src")&&e.textContent?.includes("OptanonWrapper"));if(!a)return void console.warn("[OneTrust] No OneTrust SDK script tag found in scriptContent");let i=a.getAttribute("data-domain-script");if(!i)return void console.warn("[OneTrust] No data-domain-script attribute found");console.log("[OneTrust] Extracted domain script ID:",i),console.log("[OneTrust] OptanonWrapper found:",!!l);let o=()=>{if(!window.OptanonWrapper){let e=document.createElement("script");e.type="text/javascript",e.textContent="function OptanonWrapper() { if(window.__syncGoogleConsent) window.__syncGoogleConsent(); }",document.head.appendChild(e),console.log("[OneTrust] OptanonWrapper placeholder injected")}let e=document.createElement("script");e.src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",e.setAttribute("data-domain-script",i),e.type="text/javascript",e.charset="UTF-8",Array.from(a.attributes).forEach(t=>{"src"!==t.name&&"data-domain-script"!==t.name&&"type"!==t.name&&e.setAttribute(t.name,t.value)}),e.async=!0,e.defer=!0,e.onload=()=>{console.log("[OneTrust] SDK loaded successfully with domain:",i),r.current=!0;let e=setInterval(()=>{window.OneTrust&&(console.log("[OneTrust] â
window.OneTrust is now available!"),clearInterval(e))},100);setTimeout(()=>{clearInterval(e),window.OneTrust||(console.error("[OneTrust] â window.OneTrust NOT available after 3s - check domain script ID"),console.log("[OneTrust] Domain script ID was:",i),console.log("[OneTrust] This may indicate an invalid OneTrust configuration"))},3e3)},e.onerror=e=>{console.error("[OneTrust] Failed to load SDK:",e)},document.head.appendChild(e),console.log("[OneTrust] SDK script injected into <head>")},d=document.createElement("script");return d.type="text/javascript",d.src=`https://cdn.cookielaw.org/consent/${i}/OtAutoBlock.js`,d.onload=()=>{console.log("[OneTrust] OtAutoBlock.js loaded - GTM scripts will now be controlled"),o()},d.onerror=e=>{console.warn("[OneTrust] OtAutoBlock.js not available (404) - this is OK, proceeding with main SDK."),console.log("[OneTrust] Note: Auto-blocking will be handled by the main OneTrust SDK."),o()},document.head.insertBefore(d,document.head.firstChild),console.log("[OneTrust] OtAutoBlock.js script requested (may gracefully fail if not available)"),()=>{}},[t,n]),(0,s.useEffect)(()=>{if(!n)return;let e=()=>{let e=window.OnetrustActiveGroups||"",t=e.includes("C0002"),n=e.includes("C0004"),s=t;if(!t&&e)try{let t=document.cookie.split(";").find(e=>e.trim().startsWith("OptanonConsent")),a=(t?decodeURIComponent(t.split("=")[1]||""):"").match(/groups=([^&]*)/),l=a?a[1]:"";if(l.includes("C0002:0"))s=!1,console.log("[OneTrust] C0002 explicitly rejected in cookie");else if(l.includes("C0002:1"))s=!0,console.log("[OneTrust] C0002 explicitly accepted in cookie");else{let t=n||e.includes("C0003");s=t,console.log("[OneTrust] C0002 not in consent cookie, inferring from optional groups:",t?"granted":"denied")}}catch{}"function"==typeof window.gtag?(window.gtag("consent","update",{analytics_storage:s?"granted":"denied",ad_storage:n?"granted":"denied",ad_user_data:n?"granted":"denied",ad_personalization:n?"granted":"denied"}),console.log("[OneTrust] Google Consent Mode updated:","analytics_storage="+(s?"granted":"denied"),"ad_storage="+(n?"granted":"denied"),"activeGroups="+e)):console.log("[OneTrust] gtag not available yet, skipping consent update")};window.__syncGoogleConsent=e,window.OptanonWrapper=function(){console.log("[OneTrust] OptanonWrapper fired â syncing consent to Google"),e()};let t=setInterval(()=>{window.OneTrust&&(clearInterval(t),console.log("[OneTrust] SDK ready â performing initial consent sync"),e())},200),s=setTimeout(()=>clearInterval(t),1e4);return()=>{clearInterval(t),clearTimeout(s)}},[n]),(0,s.useEffect)(()=>
1{if(!n)return;let e=(e,t)=>{if(!e)return;let n=document.getElementById(t);if(!n)return void console.warn(`[OneTrust] Container ${t} not found, will retry...`);if(n.querySelector("[data-onetrust-button]"))return;let s=document.createElement("div");s.innerHTML=e.trim();let a=s.firstElementChild;a&&(a.setAttribute("data-onetrust-button","true"),n.appendChild(a),console.log(`[OneTrust] Injected button into ${t}`))},t=()=>{a&&e(a,"onetrust-cookie-settings-container"),l&&e(l,"onetrust-cookie-list-container")};t();let s=setTimeout(t,1e3);return()=>clearTimeout(s)},[a,l,n]),null}},73437:(e,t,n)=>{n.d(t,{A:()=>p});var s=n(37876),a=n(14232),l=n(575),r=n(12540),i=n(51930),o=n(48230),d=n.n(o),c=n(23623),u=n(68202),m=n(37659);let p=e=>{let{onClick:t,websiteData:n}=e,{TriggerEvents:o}=(0,i.useCarterAnalytics)(),{multiSiteGroupChildren:p,loading:h}=(0,m.i5)(),g=(0,a.useMemo)(()=>(p?.results||[]).filter(e=>e?._id!==n?._id),[p?.results,n?._id]),f=(0,a.useMemo)(()=>n?.isMultiSiteChild&&n?.parent?.name?n.parent.name:n?.folderId?.name||n?.name||"Our",[n]),x=h?.isLoading;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"dropdown-header mt-2 lg:mt-0 mb-2 lg:sticky lg:top-0 bg-white",children:(0,s.jsxs)("h5",{className:"header-text location-title px-2 md:px-6",children:[f," Locations:"]})}),(0,s.jsx)("div",{className:"lg:overflow-auto lg:max-h-[400px] -mt-3 h-auto overflow-behaviour px-2 md:px-6",children:x&&!g.length?(0,s.jsx)("div",{className:"animate-pulse space-y-4",children:[void 0,void 0,void 0].map((e,t)=>(0,s.jsx)("div",{className:"bg-gray-200 h-20 w-full min-w-[500px] rounded-md"},t))}):g.map((e,a)=>(0,s.jsx)(l.kN,{asChild:!0,children:(0,s.jsxs)("div",{className:"dd-card dd-card-group px-1 py-3 lg:py-4 lg:px-[10px] relative",children:[(0,s.jsxs)(d(),{href:e?.domain?`https://${e.domain}`:u.W_.enrichRoute(n,"location",e?.slug||""),onClick:()=>t(e?.slug),className:"dd-card-link cursor-pointer",children:[(0,s.jsx)("p",{className:"dd-card-title mb-1",children:e?.name}),(0,s.jsx)("p",{className:"dd-desc",children:e?.location?.address?(0,s.jsx)(c.D,{address:e?.location?.address}):""})]}),(0,s.jsxs)("div",{className:"dd-badges-wrpr flex flex-col gap-2",children:[e?.contactDetails?.phone&&(0,s.jsx)(d(),{href:`tel:${e?.contactDetails?.phone}`,onClick:()=>{r.uc.BOOK_APPOINTMENT(n,e=>{o?.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,s.jsx)("p",{className:"dd-badge warning-badge w-fit",children:"24/7 Emergency Services"})]})]})},e?._id||a))})]})}},94639:(e,t,n)=>{n.d(t,{A:()=>f});var s=n(37876),a=n(14232),l=n(52068),r=n(98286),i=n(27025);let o=l.bL,d=l.l9;l.YJ,l.ZL,l.Pb,l.z6,a.forwardRef((e,t)=>{let{className:n,inset:a,children:o,...d}=e;return(0,s.jsxs)(l.ZP,{ref:t,className:(0,i.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",a&&"pl-8",n),...d,children:[o,(0,s.jsx)(r.c_,{className:"ml-auto"})]})}).displayName=l.ZP.displayName,a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,s.jsx)(l.G5,{ref:t,className:(0,i.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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...a})}).displayName=l.G5.displayName;let c=a.forwardRef((e,t)=>{let{className:n,sideOffset:a=4,...r}=e;return(0,s.jsx)(l.ZL,{children:(0,s.jsx)(l.UC,{ref:t,sideOffset:a,className:(0,i.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]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...r})})});c.displayName=l.UC.displayName,a.forwardRef((e,t)=>{let{className:n,inset:a,...r}=e;return(0,s.jsx)(l.q7,{ref:t,className:(0,i.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",a&&"pl-8",n),...r})}).displayName=l.q7.displayName,a.forwardRef((e,t)=>{let{className:n,children:a,checked:o,...d}=e;return(0,s.jsxs)(l.H_,{ref:t,className:(0,i.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",n),checked:o,...d,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(l.VF,{children:(0,s.jsx)(r.Jl,{className:"h-4 w-4"})})}),a]})}).displayName=l.H_.displayName,a.forwardRef((e,t)=>{let{className:n,children:a,...o}=e;return(0,s.jsxs)(l.hN,{ref:t,className:(0,i.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",n),...o,children:[(0,s.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(l.VF,{children:(0,s.jsx)(r.jl,{className:"h-2 w-2 fill-current"})})}),a]})}).displayName=l.hN.displayName,a.forwardRef((e,t)=>{let{className:n,inset:a,...r}=e;return(0,s.jsx)(l.JU,{ref:t,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",n),...r})}).displayName=l.JU.displayName,a.forwardRef((e,t)=>{let{className:n,...a}=e;return(0,s.jsx)(l.wv,{ref:t,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",n),...a})}).displayName=l.wv.displayName;var u=n(48230),m=n.n(u),p=n(6796),h=n(23623),g=n(68202);let f=e=>{let{emergencyBranches:t,onClick:n}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(o,{children:[(0,s.jsx)(d,{className:"btn orange-btn",style:{backgroundColor:"var(--vis-orange-light, #f97316)",color:"var(--vis-primary)"},children:"Emergency"}),(0,s.jsxs)(c,{side:"bottom",className:"bg-white dd-style 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,s.jsx)("div",{className:"dropdown-header mb-2 sticky top-0 bg-white pt-4 md:pt-6",children:(0,s.jsx)("p",{className:"header-text",children:"For urgent needs, please contact the nearest emergency clinics"})}),(0,s.jsx)("div",{className:"dd-card-wrpr overflow-auto h-auto max-h-[380px]",children:t?.map((e,t)=>(0,s.jsx)("div",{className:"dd-card dd-card-group py-4 px-[10px] relative",children:(0,s.jsxs)(m(),{href:(0,g.QF)(p.A.BASE_URI||"https://prd-uvc-cms-visitor.uvcpaws.com","website/published",e?.slug||""),onClick:()=>n(e?.slug),target:"_blank",className:"dd-card-link cursor-pointer",children:[(0,s.jsx)("h6",{className:"dd-card-title mb-1",children:e?.name}),(0,s.jsx)("p",{className:"dd-desc mb-4",children:e?.location?.address?(0,s.jsx)(h.D,{address:e?.location?.address}):""}),(0,s.jsxs)("div",{className:"dd-badges-wrpr flex flex-col gap-2",children:[e?.contactDetails?.phone&&(0,s.jsx)("p",{className:"dd-badge lite-badge w-fit",children:e?.contactDetails?.phone||""}),(0,s.jsx)("p",{className:"dd-badge warning-badge w-fit",children:"24/7 Emergency Services"})]})]})},`emergency_${t}`))})]})]})})}}}]);
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.