1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[158,1192,1391,1983,2694,3172,4426,4702,5088,6759,7313,9073],{575:(e,s,n)=>{n.d(s,{CG:()=>d,Qs:()=>b,cj:()=>o,h:()=>E,kN:()=>N});var l=n(37876),i=n(14232),a=n(96415),t=n(47137),r=n(6967),c=n(27025);let o=a.bL,d=a.l9,N=a.bm,m=a.ZL,u=i.forwardRef((e,s)=>{let{className:n,...i}=e;return(0,l.jsx)(a.hJ,{className:(0,c.cn)("fixed inset-0 z-[999] bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...i,ref:s})});u.displayName=a.hJ.displayName;let h=(0,t.F)("header-main fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),E=i.forwardRef((e,s)=>{let{side:n="left",className:i,children:t,...o}=e;return(0,l.jsxs)(m,{children:[(0,l.jsx)(u,{}),(0,l.jsxs)(a.UC,{ref:s,className:(0,c.cn)(h({side:n}),i),...o,children:[(0,l.jsxs)(a.bm,{className:"absolute right-6 top-6 rounded-sm opacity-70 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-secondary",children:[(0,l.jsx)(r.X,{className:"h-7 w-7"}),(0,l.jsx)("span",{className:"sr-only",children:"Close"})]}),t]})]})});E.displayName=a.UC.displayName,i.forwardRef((e,s)=>{let{className:n,...i}=e;return(0,l.jsx)(a.hE,{ref:s,className:(0,c.cn)("text-lg font-semibold text-foreground",n),...i})}).displayName=a.hE.displayName;let b=i.forwardRef((e,s)=>{let{className:n,...i}=e;return(0,l.jsx)(a.VY,{ref:s,className:(0,c.cn)("text-sm text-muted-foreground",n),...i})});b.displayName=a.VY.displayName},13194:(e,s,n)=>{n.d(s,{Xi:()=>c,av:()=>o,j7:()=>r,tU:()=>t});var l=n(37876);n(14232);var i=n(90491),a=n(27025);function t(e){let{className:s,...n}=e;return(0,l.jsx)(i.bL,{"data-slot":"tabs",className:(0,a.cn)("flex flex-col gap-2",s),...n})}function r(e){let{className:s,...n}=e;return(0,l.jsx)(i.B8,{"data-slot":"tabs-list",className:(0,a.cn)("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",s),...n})}function c(e){let{className:s,...n}=e;return(0,l.jsx)(i.l9,{"data-slot":"tabs-trigger",className:(0,a.cn)("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",s),...n})}function o(e){let{className:s,...n}=e;return(0,l.jsx)(i.UC,{"data-slot":"tabs-content",className:(0,a.cn)("flex-1 outline-none",s),...n})}},17969:(e,s,n)=>{n.d(s,{F:()=>W});var l=n(37876),i=n(42298),a=n(575),t=n(14232),r=n(27025),c=n(94408),o=n(55128),d=n(68202),N=n(89099),m=n(24027),u=n(73437),h=n(48230),E=n.n(h),b=n(19909),A=n(37659);let p={SERVICES:"services",RESOURCE:"resource",ABOUT:"about"};function _(e){let{onClick:s,services:n,websiteData:i,onRouteChange:a,isLocationEnabled:h,shouldShow:_,serviceSection:x,servicesLoading:P,displayNameMap:C}=e,g=(0,N.useRouter)(),[R,S]=t.useState(""),j=i?.category==="MULTI_WEBSITE_GROUP"||i?.isMultiSiteParent||i?.isMultiSiteChild,G=(0,A.i5)(),f=G?.multiSiteGroupChildren;G?.loading;let T=t.useMemo(()=>j&&f?.results?f.results.filter(e=>e?._id!==i?._id):[],[j,f?.results,i?._id]),k=j&&T.length>0,O=e=>{S(e)},v=t.useMemo(()=>(i?.pagesAndSections||[]).filter(e=>{let s=e?.pageType?.toUpperCase()==="CUSTOM",n=e?.enabled===!0;return s&&n}),[i?.pagesAndSections]);return(0,l.jsx)(c.KS,{value:R,onValueChange:O,className:"ml-auto",children:(0,l.jsxs)(c.SK,{children:[(0,l.jsx)(c.JD,{className:"relative",children:(0,l.jsx)(E(),{className:(0,r.cn)((0,c.R6)()),href:d.W_.enrichRoute
1(i,""),onClick:()=>s("home"),children:C?.[b.Nb.LANDING_PAGE]||"Home"})}),_(b.Nb.SERVICES_PAGE)&&(i?.category==="MULTI_WEBSITE_GROUP"||i?.isMultiSiteParent||i?.isMultiSiteChild?(0,l.jsx)(c.JD,{className:"relative",children:(0,l.jsx)(E(),{className:(0,r.cn)((0,c.R6)()),href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.SERVICES_PAGE)),onClick:()=>{i?.slug&&(sessionStorage.setItem("multiSiteServiceSlug",i.slug),i?.isMultiSiteChild&&i?.parent?.slug&&sessionStorage.setItem("multiSiteParentSlug",i.parent.slug)),a((0,o.WS)(i,b.Nb.SERVICES_PAGE))},children:C[b.Nb.SERVICES_PAGE]||"Services"})}):(0,l.jsxs)(c.JD,{value:p.SERVICES,className:"relative",children:[(0,l.jsx)(c.wd,{className:"nav-link trigger-link","data-state":R===p.SERVICES?"open":"closed",onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),onClick:e=>{e.stopPropagation()},children:C?.[b.Nb.SERVICES_PAGE]||"Services"}),(0,l.jsxs)(c.hA,{className:"service-nav nav-menu",onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),children:[(0,l.jsx)("ul",{className:"nav-content-1 flex gap-0",children:P?.isLoading?Array.from({length:3}).map((e,s)=>(0,l.jsxs)("li",{className:"list-item min-w-[232px]",children:[(0,l.jsx)("div",{className:"menu-link-heading",children:(0,l.jsx)("div",{className:"h-4 bg-gray-200 rounded animate-pulse w-24"})}),(0,l.jsx)("ul",{className:"sub-menu-lst",children:Array.from({length:5}).map((e,n)=>(0,l.jsx)("li",{className:"sub-lst-item",children:(0,l.jsx)("div",{className:"sub-menu-link",children:(0,l.jsx)("div",{className:"h-3 bg-gray-200 rounded animate-pulse w-full max-w-[180px]"})})},`loading-service-${s}-sub-${n}`))})]},`loading-service-${s}`)):Object.keys(n||{})?.slice(0,3)?.map((e,s)=>(0,l.jsxs)("li",{className:"list-item min-w-[232px]",children:[(0,l.jsx)("p",{className:"menu-link-heading",children:x?.[e]?.name||(0,o.Zr)(e)}),(0,l.jsx)("ul",{className:"sub-menu-lst",children:n[e]?.map((e,s)=>(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer",children:(0,l.jsx)(E(),{className:"sub-menu-link",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.SERVICES_PAGE),e?.slug),onClick:()=>{a(e?.slug,"link",(0,o.WS)(i,b.Nb.SERVICES_PAGE)),O("")},children:e?.name})},s))})]},s))}),(0,l.jsx)("div",{className:"text-center",children:(0,l.jsx)(E(),{href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.SERVICES_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.SERVICES_PAGE)),S("")},className:"menu-all cursor-pointer",children:"View all"})})]})]})),(_(b.Nb.BLOGS_PAGE)||_(b.Nb.VIDEO_PAGE)||_(b.Nb.NEWS_PAGE)||_(b.Nb.FORMS_PAGE)||_(b.Nb.APP_DOWNLOAD_PAGE)||_(b.Nb.RESOURCES_PAGE)||["GP","GENERAL_PURPOSE"].includes(i?.templateName)&&_(b.Nb.ACCREDITATION_PAGE)||_(b.Nb.FAQ_PAGE)||_(b.Nb.PAYMENT_INFO_PAGE)||_(b.Nb.TRAVEL_PLANNING_PAGE)||_(b.Nb.HOME_CARE_PAGE)||_(b.Nb.COMMUNITY_EVENTS_PAGE)||_(b.Nb.HOW_WE_ROLL_PAGE))&&(0,l.jsxs)(c.JD,{value:p.RESOURCE,className:"relative",children:[(0,l.jsx)(c.wd,{className:"nav-link trigger-link","data-state":R===p.RESOURCE?"open":"closed",onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),onClick:e=>{e.stopPropagation()},"aria-expanded":R===p.RESOURCE,children:"Resources"}),R===p.RESOURCE&&(0,l.jsx)(c.hA,{className:"nav-menu nav-col-menu right-0 left-auto",onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),children:(0,l.jsxs)("ul",{className:"sub-menu-lst",children:[_(b.Nb.BLOGS_PAGE)&&(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer",children:(0,l.jsx)(E(),{className:"sub-menu-link",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.BLOGS_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.BLOGS_PAGE)),S("")},children:C?.[b.Nb.BLOGS_PAGE]||"Blogs"})}),_(b.Nb.VIDEO_PAGE)&&(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer",children:(0,l.jsx)(E(),{className:"sub-menu-link",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.VIDEO_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.VIDEO_PAGE)),S("")},children:C?.[b.Nb.VIDEO_PAGE]||"Videos"})}),_(b.Nb.NEWS_PAGE)&&(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer",children:(0,l.jsx)(E(),{className:"sub-menu-link",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.NEWS_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.NEWS_PAGE)),S("")},children:C?.[b.Nb.NEWS_PAGE]||"News"})}),_(b.Nb.FORMS_PAGE)&&(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer",children:(0,l.jsx)(E(),{className:"sub-menu
1-link",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.FORMS_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.FORMS_PAGE)),S("")},children:C?.[b.Nb.FORMS_PAGE]||"Forms"})}),_(b.Nb.APP_DOWNLOAD_PAGE)&&(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer ",children:(0,l.jsx)(E(),{className:"sub-menu-link",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.APP_DOWNLOAD_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.APP_DOWNLOAD_PAGE)),S("")},children:C?.[b.Nb.APP_DOWNLOAD_PAGE]||"Download App"})}),_(b.Nb.RESOURCES_PAGE)&&(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer ",children:(0,l.jsx)(E(),{className:"sub-menu-link",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.RESOURCES_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.RESOURCES_PAGE)),S("")},children:C?.[b.Nb.RESOURCES_PAGE]||"Resource and Education Center"})}),["GP","GENERAL_PURPOSE"].includes(i?.templateName)&&_(b.Nb.ACCREDITATION_PAGE)&&(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer ",children:(0,l.jsx)(E(),{className:"sub-menu-link",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.ACCREDITATION_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.ACCREDITATION_PAGE)),S("")},children:C?.[b.Nb.ACCREDITATION_PAGE]||"Accreditations"})}),_(b.Nb.FAQ_PAGE)&&(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer ",children:(0,l.jsx)(E(),{className:"sub-menu-link",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.FAQ_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.FAQ_PAGE)),S("")},children:C?.[b.Nb.FAQ_PAGE]||"FAQ"})}),_(b.Nb.HOME_CARE_PAGE)&&(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer ",children:(0,l.jsx)(E(),{className:"sub-menu-link",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.HOME_CARE_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.HOME_CARE_PAGE)),S("")},children:C?.[b.Nb.HOME_CARE_PAGE]||"Care Guides Page"})}),_(b.Nb.COMMUNITY_EVENTS_PAGE)&&(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer ",children:(0,l.jsx)(E(),{className:"sub-menu-link",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.COMMUNITY_EVENTS_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.COMMUNITY_EVENTS_PAGE)),S("")},children:C?.[b.Nb.COMMUNITY_EVENTS_PAGE]||"Community Events Page"})}),_(b.Nb.HOW_WE_ROLL_PAGE)&&(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer ",children:(0,l.jsx)(E(),{className:"sub-menu-link",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.HOW_WE_ROLL_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.HOW_WE_ROLL_PAGE)),S("")},children:C?.[b.Nb.HOW_WE_ROLL_PAGE]||"How We Roll"})}),_(b.Nb.TRAVEL_PLANNING_PAGE)&&(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer ",children:(0,l.jsx)(E(),{className:"sub-menu-link",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.TRAVEL_PLANNING_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.TRAVEL_PLANNING_PAGE)),S("")},children:C?.[b.Nb.TRAVEL_PLANNING_PAGE]||"Travel Planning"})}),_(b.Nb.PAYMENT_INFO_PAGE)&&(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer whitespace-nowrap",children:(0,l.jsx)(E(),{className:"sub-menu-link",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.PAYMENT_INFO_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.PAYMENT_INFO_PAGE)),S("")},children:C?.[b.Nb.PAYMENT_INFO_PAGE]||"Payment & Insurance"})})]})})]}),(_(b.Nb.ABOUT_US_PAGE)||_(b.Nb.TEAM_PAGE)||_(b.Nb.CAREER_PAGE)||!["GP","GENERAL_PURPOSE"].includes(i?.templateName)&&_(b.Nb.ACCREDITATION_PAGE)||_(b.Nb.TRAINING_MENTORSHIP_PAGE)||_(b.Nb.REFERRAL_PAGE))&&(0,l.jsxs)(c.JD,{value:p.ABOUT,className:"relative",children:[(0,l.jsx)(c.wd,{"data-state":R===p.ABOUT?"open":"closed",className:"nav-link trigger-link",onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),onClick:e=>{e.stopPropagation()},"aria-expanded":R===p.ABOUT,children:"About"}),R===p.ABOUT&&(0,l.jsx)(c.hA,{className:"nav-menu nav-col-menu left-1/2 -translate-x-1/2",onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),children:(0,l.jsxs)("ul",{className:"sub-menu-lst",children:[_(b.Nb.ABOUT_US_PAGE)&&(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer",children:(0,l.jsx)(E(),{className:"sub-menu-link break-keep whitespace-nowrap",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.ABOUT_US_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.ABOUT_US_PAGE)),S("")},children:C?.[b.Nb.ABOUT_US_PAGE]||"About Us"})}),_(b.Nb.TEAM_PAGE)&&(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer",children:(0,l.jsx)(E(),{className:"sub-menu
1-link",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.TEAM_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.TEAM_PAGE)),S("")},children:C?.[b.Nb.TEAM_PAGE]||"Team"})}),_(b.Nb.CAREER_PAGE)&&(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer",children:(0,l.jsx)(E(),{className:"sub-menu-link",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.CAREER_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.CAREER_PAGE)),S("")},children:C?.[b.Nb.CAREER_PAGE]||"Careers"})}),_(b.Nb.REFERRAL_PAGE)&&(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer whitespace-nowrap",children:(0,l.jsx)(E(),{className:"sub-menu-link",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.REFERRAL_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.REFERRAL_PAGE)),S("")},children:C?.[b.Nb.REFERRAL_PAGE]||"Referring Veterinarians"})}),_(b.Nb.TRAINING_MENTORSHIP_PAGE)&&(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer whitespace-nowrap",children:(0,l.jsx)(E(),{className:"sub-menu-link",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.TRAINING_MENTORSHIP_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.TRAINING_MENTORSHIP_PAGE)),S("")},children:C?.[b.Nb.TRAINING_MENTORSHIP_PAGE]||"Training & Mentorship"})}),!["GP","GENERAL_PURPOSE"].includes(i?.templateName)&&_(b.Nb.ACCREDITATION_PAGE)&&(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer ",children:(0,l.jsx)(E(),{className:"sub-menu-link",href:d.W_.enrichRoute(i,(0,o.WS)(i,b.Nb.ACCREDITATION_PAGE)),onClick:()=>{a((0,o.WS)(i,b.Nb.ACCREDITATION_PAGE)),S("")},children:C?.[b.Nb.ACCREDITATION_PAGE]||"Accreditations"})})]})})]}),(h||k)&&(0,l.jsxs)(c.JD,{value:"location",children:[(0,l.jsxs)(c.wd,{className:"nav-link trigger-link",onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),onClick:e=>{e.stopPropagation()},"aria-expanded":R===p.RESOURCE,children:["Locations"," ",k?`(${T.length})`:i?.folderCount?`(${i.folderCount})`:""]}),(0,l.jsx)(c.hA,{className:"nav-menu nav-col-menu right-0 left-auto min-w-[350px] lg",onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),children:k?(0,l.jsx)(u.A,{onClick:a,websiteData:i}):(0,l.jsx)(m.A,{onClick:a,websiteData:i})})]}),v.map(e=>{let n=e?.name||e?.slug,a=e?.slug||e?.name,t=e?.title||e?.label||(n?n.replace(/^custom-/,"").replace(/-/g," ").split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "):"Custom Page"),o=(()=>{let e=g.asPath||g.pathname;if(e.startsWith("/website/")){let s=e.endsWith("/")?e.slice(0,-1):e,n=s.split("/").filter(Boolean);return n.length>3?"/"+n.slice(0,3).join("/")+"/"+a:s+"/"+a}return d.W_.enrichRoute(i,a,"")})();return(0,l.jsx)(c.JD,{className:"relative",children:(0,l.jsx)(E(),{className:(0,r.cn)((0,c.R6)()),href:o,onClick:()=>{s(n),console.log(`Navigating to custom page: ${n} -> ${o}`)},children:t})},n)})]})})}t.forwardRef((e,s)=>{let{className:n,title:i,children:a,...t}=e;return(0,l.jsx)("li",{children:(0,l.jsx)(c.Ws,{asChild:!0,children:(0,l.jsxs)("a",{ref:s,className:(0,r.cn)("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",n),...t,children:[(0,l.jsx)("div",{className:"text-sm font-medium leading-none",children:i}),(0,l.jsx)("p",{className:"line-clamp-2 text-sm leading-snug text-muted-foreground",children:a})]})})})}).displayName="ListItem";var x=n(65228),P=n(6796),C=n(27153),g=n(38469),R=n(94639),S=n(80171),j=n(51930),G=n(12540),f=n(65734),T=n(16188),k=n(23623),O=n(98673),v=n(82964),I=n(69418);function W(e){let{websiteData:s,displayNameMap:n,pageSlug:h,currentPage:p}=e,W=(0,N.useRouter)(),[L,w]=(0,t.useState)(!1),{TriggerEvents:M}=(0,j.useCarterAnalytics)(),y=null;try{y=(0,A.bo)()}catch(e){y=null}let U=!(s?.serviceList&&Object.keys(s.serviceList).length>0)&&y?.services&&Object.keys(y.services).length>0,D=s?.folderCount===void 0&&y?.folderCount!==void 0,V=U?y.services:s?.serviceList,B=D?y?.folderCount:s?.folderCount,F=y?.servicesLoading||{isLoading:!1,error:null},H=s?.category==="MULTI_WEBSITE_GROUP"||s?.isMultiSiteParent||s?.isMultiSiteChild,$=(0,A.i5)(),Y=$?.multiSiteGroupChildren,Q=$?.loading,K=(0,t.useMemo)(()=>H&&Y?.results?Y.results.filter(e=>e?._id!==s?._id):[],[H,Y?.results,s?._id]),J=H&&K.length>0;(0,t.useEffect)(()=>{console.log("[Navbar] Multi-site location debug:",{isMultiSite:H,category:s?.category,isMultiSiteParent:s?.isMultiSiteParent,isMultiSiteChild:s?.isMultiSiteChild,hasMultiSiteContext:!!$,multiSiteChildrenCount:Y?.results?.length||0,multiSiteSiblingsCount:K.length,hasMultiSiteLocations:J,isLoading:Q?.isLoading,currentWebsiteId:s?._id})},[H,s,$,Y,K,J,Q]);let z={...s,serviceList:V,folderCount:B},X=s?.pagesAndSections?.find(e=>e?.name===b.Nb.LANDING_PAGE)?.sections?.[b.bP.OUR_SERVICES_SECTION]?.data?.services,Z=(0,v.E)(V,z?.templateName),q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"link",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"menu_item";M?.REGULAR_CLICK({type:s,element:n,id:e})},ee=(0,t.useMemo)(()=>(s?.pagesAndSections||[]).reduce((e,s)=>(s?.enabled&&(e[s.name]=!0),e),{}),[s?.pagesAndSections]),es=t.useMemo(()=>(s?.pagesAndSections||[]).filter(e=>{let s=e?.pageType?.toUpperCase()==="CUSTOM",n=e?.enabled===!0;return s&&n}),[s?.pagesAndSections]),en=s?.pagesAndSections?.find(e=>e?.name===b.Nb.LANDING_PAGE)||{},el=en?.sections?.["navigation-section"],ei=el?.data?.navigationCta,ea=(0,t.useMemo)(()=>{let e=s?.navigation?.header?.items;return e?.length&&el?e.filter(e=>e?.type!=="button"):e},[s?.navigation?.header?.items,el,ei,s]),et=e=>ee[e]||!1;(0,t.useEffect)(()=>{let e=()=>{window.scrollY>20?w(!0):w(!1)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]);let er=s?.folderId?.name||s?.folderId?._id||"",ec=s?.pagesAndSections?.find(e=>e?.name===b.Nb.LANDING_PAGE)||{},eo=ec?.sections?.["hero-section"]?.data?.primaryCta?.enabled&&ec?.sections?.["hero-section"]?.data?.primaryCta?.type||!ec?.sections?.["hero-section"]?.data?.primaryCta?.type,ed=ec?.sections?.["hero-section"]?.data?.primaryCta,eN=ec?.sections?.["navigation-section"],em=eN?.enabled!==!1,eu=eN?.data?.navigationCta,eh=ec?.sections?.["hero-section"]?.data?.headerCta,eE=ec?.sections?.["hero-section"]?.data?.cta,eb=null!=eu?eu:eh?.enabled!==void 0?eh:eE?.enabled!==void 0?eE:ed,eA=null!=eN?em&&(eu?.enabled??!0):eh?.enabled??eE?.enabled??eo,ep=ec?.sections?.["emergency-branches"]?.data?.isActive||!1,e_=ec?.sections?.["emergency-branches"]?.data?.isLocationEnabled||!1,ex=ec?.sections?.["emergency-banner-section"],[eP,eC]=(0,t.useState)("https://prd-uvc-cms-visitor.uvcpaws.
1com"),eg=ec?.sections?.["emergency-branches"]?.data?.store||!1;(0,t.useEffect)(()=>{(0,O.T8)(window.location.hostname)?eC((0,O.RQ)()):eC("https://prd-uvc-cms-visitor.uvcpaws.com")},[]);let eR=()=>{G.uc.BOOK_APPOINTMENT(s,e=>{M?.CTA_CLICK({...e})},{buttonText:eb?.label||"Book Appointment"},!0);let e=eb?.value;if((e=>{if(!e)return!1;let s=document.getElementById(e);return!!s&&(s.scrollIntoView({behavior:"smooth",block:"start"}),!0)})(e))return;let n=d.W_.enrichRoute(s,"");W.push(e?`${n}#${e}`:n).then()};return(0,l.jsxs)(a.cj,{children:[(0,l.jsx)(f.L3,{title:"Sheet Title","aria-description":"description","aria-hidden":"true",style:{display:"none"},children:"Sheet title"}),(0,l.jsx)(a.Qs,{"aria-hidden":"true",style:{display:"none"},children:"Sheet description"}),(0,l.jsx)("header",{className:`main-header sticky top-0 bg-white z-[999] ${L?"sticky-header":""}`,children:(0,l.jsxs)("div",{className:"header",children:[(0,l.jsx)("div",{className:"container mx-auto",children:(0,l.jsxs)("div",{className:"navbar flex items-center w-full gap-2 sm:gap-3 xl:gap-0",children:[(0,l.jsx)("div",{className:"nav-brand lg:flex-1 gap-2 flex items-center w-full min-w-28 ",children:(0,l.jsxs)(E(),{href:d.W_.enrichRoute(s?.isMultiSiteChild?{...s,isMultiSiteChild:!1,slug:s?.parent?.slug||s?.parentSlug}:s,""),className:"flex items-center gap-2 overflow-hidden text-ellipsis whitespace-nowrap",onClick:()=>{q("home")},children:[(0,l.jsx)("span",{className:"logo cursor-pointer",children:(0,l.jsx)(g.Ay,{src:s?.logo?.fileUrl||T.A?.src,alt:"logo",height:100,width:100})}),(0,l.jsx)("span",{className:"brand-text cursor-pointer",children:s?.name||"TEMP NAME"})]})}),(0,l.jsxs)("div",{className:"menu-wrap flex-shrink-0 flex flex-1 items-center ml-auto lg:max-w-fit",children:[(0,l.jsx)("div",{className:"hidden lg:block ml-auto",children:"true"===P.A.ENABLE_PAGE_BUILDER&&null!==(s?.navigation||null)?(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(x.AZ,{items:ea??s?.navigation?.header?.items??[],websiteData:z,onClick:e=>q(e.startsWith("/")?e.substring(1):e),onRouteChange:q}),e_&&er&&!H&&(0,l.jsx)(c.KS,{className:"relative ml-0",children:(0,l.jsx)(c.SK,{children:(0,l.jsxs)(c.JD,{value:"location",children:[(0,l.jsxs)(c.wd,{className:"nav-link trigger-link",onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),onClick:e=>{e.stopPropagation()},children:["Locations"," ",z?.folderCount?`(${z.folderCount})`:""]}),(0,l.jsx)(c.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,l.jsx)(m.A,{onClick:q,websiteData:s})})]})})})]}):(0,l.jsx)(_,{onRouteChange:q,shouldShow:et,onClick:e=>{q(e.startsWith("/")?e.substring(1):e)},services:Z,websiteData:z,isLocationEnabled:e_&&er,serviceSection:X,servicesLoading:F,displayNameMap:n})}),(0,l.jsxs)("div",{className:"hidden lg:flex items-center gap-2 xl:gap-4 ml-auto lg:ml-3 nav-btn-group",children:[eg?.enabled&&(0,l.jsx)(E(),{href:eg?.link||"#",className:"btn outline-btn whitespace-nowrap",role:"button",target:"_blank",rel:"noopener noreferrer",children:eg?.label||"Online Store"}),ep&&(0,l.jsx)(R.A,{emergencyBranches:s?.emergencyBranches||[],onClick:q}),eA&&eb?eb?.type==="phone"?(0,l.jsxs)(E(),{href:`tel:${eb?.value}`,className:`btn ${[b.QT.ER,b.QT.ERP].includes(s?.templateName)&&s?.category!=="SPECIALITY_ER"?"red-btn":"primary-btn"} whitespace-nowrap left-icon`,onClick:()=>{G.uc.BOOK_APPOINTMENT(s,e=>{M?.CTA_CLICK({...e})},{buttonText:eb?.label||eb?.value||"Call"},!0,"call")},children:[(0,l.jsx)("span",{className:"btn-icon",children:(0,l.jsx)(S.b,{role:"presentation"})}),eb?.value]}):eb?.type==="scroll_to_section"?(0,l.jsx)("button",{type:"button",className:`btn ${[b.QT.ER,b.QT.ERP].includes(s?.templateName)&&s?.category!=="SPECIALITY_ER"?"red-btn":"primary-btn"} whitespace-nowrap`,onClick:eR,children:eb?.label||"Book Appointment"}):(0,l.jsx)(E(),{href:eb?.type==="custom_url"?eb?.value||"#":d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.BOOK_APPOINTMENT_PAGE)),target:eb?.openInNewTab||eb?.type==="custom_url"&&eb?.openInNewTab!==!1?"_blank":void 0,rel:eb?.openInNewTab||eb?.type==="custom_url"&&eb?.openInNewTab!==!1?"noopener noreferrer":void 0,className:`btn ${[b.QT.ER,b.QT.ERP].includes(s?.templateName)&&s?.category!=="SPECIALITY_ER"?"red-btn":"primary-btn"} whitespace-nowrap`,role:"button",onClick:()=>{G.uc.BOOK_APPOINTMENT(s,e=>{M?.CTA_CLICK({...e})},{buttonText:eb?.label||"Book Appointment"},!0)},children:eb?.label||"Book Appointment"}):null]}),(0,l.jsx)("div",{className:"trigger-btn",children:(0,l.jsx)(a.CG,{asChild:!0,className:"lg:hidden",children:(0,l.jsxs)(i.$,{"aria-label":"menu-bar-buttons",variant:"outline",children:[(0,l.jsx)("span",{className:"menu-bar"}),(0,l.jsx)("span",{className:"menu-bar"}),(0,l.jsx)("span",{className:"menu-bar"})]})})})]})]})}),[b.QT.ER,b.QT.ERP,b.WJ.MULTI_SITE].includes(s?.templateName)&&ex?.enabled&&(0,l.jsx)("div",{className:"sticky-badge",children:(0,l.jsxs)("div",{className:"flex items-center gap-2 md:gap-3 lg:gap-4 text-white",children:[(0,l.jsx)(I.d,{src:o.Lt[Number(ex?.data?.banner?.iconId||"1")-1]?.image?.src??"",size:20}),(0,l.jsx)("p",{className:"badge-text",children:ex?.data?.banner?.text||""})]})})]})}),(0,l.jsx)("div",{className:"side-menu lg:hidden",children:(0,l.jsx)(a.h,{className:"z-50",children:(0,l.jsxs)("div",{className:"side-nav",children:[(0,l.jsx)("div",{className:"nav-brand flex items-center",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{href:d.W_.enrichRoute
1(s,""),onClick:()=>{q("home")},className:"logo cursor-pointer",children:(0,l.jsx)(g.Ay,{className:"",src:s?.logo?.fileUrl||T.A?.src,alt:"logo",height:100,width:100})})})}),(0,l.jsx)(C.KS,{children:(0,l.jsxs)(C.SK,{className:"side-nav-lst",children:["true"===P.A.ENABLE_PAGE_BUILDER&&null!==(s?.navigation||null)?(0,l.jsx)(x.ks,{items:ea??s?.navigation?.header?.items??[],websiteData:z,onClick:q,servicesLoading:F}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(C.JD,{className:"side-lst-item",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"nav-link cursor-pointer",href:d.W_.enrichRoute(s,""),onClick:()=>{q("home")},children:n[b.Nb.LANDING_PAGE]||"Home"})})}),et(b.Nb.SERVICES_PAGE)&&(s?.category==="MULTI_WEBSITE_GROUP"||s?.isMultiSiteParent||s?.isMultiSiteChild?(0,l.jsx)(C.JD,{className:"side-lst-item",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"nav-link cursor-pointer",href:d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.SERVICES_PAGE)),onClick:()=>{s?.slug&&(sessionStorage.setItem("multiSiteServiceSlug",s.slug),s?.isMultiSiteChild&&s?.parent?.slug&&sessionStorage.setItem("multiSiteParentSlug",s.parent.slug)),q((0,o.WS)(s,b.Nb.SERVICES_PAGE))},children:n[b.Nb.SERVICES_PAGE]||"Services"})})}):(0,l.jsxs)(C.JD,{className:"side-lst-item",children:[(0,l.jsx)(C.wd,{className:"nav-link trigger-icon",children:n[b.Nb.SERVICES_PAGE]||"Services"}),(0,l.jsxs)(C.hA,{className:"nav-menu",children:[(0,l.jsx)("ul",{className:"grid gap-4 md:gap-2 grid-cols-1",children:Object.keys(Z||{})?.slice(0,3)?.map((e,n)=>(0,l.jsxs)("li",{className:"list-item",children:[(0,l.jsx)("p",{className:"menu-link-heading",children:X?.[e]?.name||(0,o.Zr)(e)}),(0,l.jsx)("ul",{className:"sub-menu-lst",children:Z[e]?.map((e,n)=>(0,l.jsx)("li",{className:"sub-lst-item cursor-pointer",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"sub-menu-link",href:d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.SERVICES_PAGE),e?.slug),onClick:()=>{q(e?.slug)},children:e?.name})})},`service_nav_${n}`))})]},`service_accordian_${n}`))}),(0,l.jsx)("div",{className:"text-center",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{href:d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.SERVICES_PAGE)),onClick:()=>{q((0,o.WS)(s,b.Nb.SERVICES_PAGE))},className:"menu-all cursor-pointer",children:"View all"})})})]})]})),(et(b.Nb.BLOGS_PAGE)||et(b.Nb.VIDEO_PAGE)||et(b.Nb.NEWS_PAGE)||et(b.Nb.FORMS_PAGE)||et(b.Nb.APP_DOWNLOAD_PAGE)||et(b.Nb.RESOURCES_PAGE)||["GP","GENERAL_PURPOSE"].includes(s?.templateName)&&et(b.Nb.ACCREDITATION_PAGE)||et(b.Nb.FAQ_PAGE)||et(b.Nb.PAYMENT_INFO_PAGE)||et(b.Nb.TRAVEL_PLANNING_PAGE)||et(b.Nb.HOME_CARE_PAGE)||et(b.Nb.COMMUNITY_EVENTS_PAGE)||et(b.Nb.HOW_WE_ROLL_PAGE))&&(0,l.jsxs)(C.JD,{className:"side-lst-item",children:[(0,l.jsx)(C.wd,{className:"nav-link trigger-icon",children:"Resources"}),(0,l.jsx)(C.hA,{className:"nav-menu",children:(0,l.jsxs)("ul",{className:"grid gap-2 grid-cols-1",children:[et(b.Nb.BLOGS_PAGE)&&(0,l.jsx)("li",{className:"list-item",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"menu-link-heading cursor-pointer",href:d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.BLOGS_PAGE)),onClick:()=>{q((0,o.WS)(s,b.Nb.BLOGS_PAGE))},children:n[b.Nb.BLOGS_PAGE]||"Blogs"})})}),et(b.Nb.VIDEO_PAGE)&&(0,l.jsx)("li",{className:"list-item",children:(0,l.jsx)("span",{className:"menu-link",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"menu-link-heading cursor-pointer",href:d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.VIDEO_PAGE)),onClick:()=>{q((0,o.WS)(s,b.Nb.VIDEO_PAGE))},children:n[b.Nb.VIDEO_PAGE]||"Videos"})})})}),et(b.Nb.NEWS_PAGE)&&(0,l.jsx)("li",{className:"list-item",children:(0,l.jsx)("span",{className:"menu-link",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"menu-link-heading cursor-pointer",href:d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.NEWS_PAGE)),onClick:()=>{q((0,o.WS)(s,b.Nb.NEWS_PAGE))},children:n[b.Nb.NEWS_PAGE]||"News"})})})}),et(b.Nb.FORMS_PAGE)&&(0,l.jsx)("li",{className:"list-item",children:(0,l.jsx)("span",{className:"menu-link",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"menu-link-heading cursor-pointer",href:d.W_.enrichRoute
1(s,(0,o.WS)(s,b.Nb.FORMS_PAGE)),onClick:()=>{q((0,o.WS)(s,b.Nb.FORMS_PAGE))},children:n[b.Nb.FORMS_PAGE]||"Forms"})})})}),et(b.Nb.APP_DOWNLOAD_PAGE)&&(0,l.jsx)("li",{className:"list-item",children:(0,l.jsx)("span",{className:"menu-link",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"menu-link-heading cursor-pointer",href:d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.APP_DOWNLOAD_PAGE)),onClick:()=>{q((0,o.WS)(s,b.Nb.APP_DOWNLOAD_PAGE))},children:n[b.Nb.APP_DOWNLOAD_PAGE]||"Download App"})})})}),et(b.Nb.RESOURCES_PAGE)&&(0,l.jsx)("li",{className:"list-item",children:(0,l.jsx)("span",{className:"menu-link",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"menu-link-heading cursor-pointer",href:d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.RESOURCES_PAGE)),onClick:()=>{q((0,o.WS)(s,b.Nb.RESOURCES_PAGE))},children:n[b.Nb.RESOURCES_PAGE]||"Resource and Education Center"})})})}),["GP","GENERAL_PURPOSE"].includes(s?.templateName)&&et(b.Nb.ACCREDITATION_PAGE)&&(0,l.jsx)("li",{className:"list-item",children:(0,l.jsx)("span",{className:"menu-link",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsxs)(E(),{className:"menu-link-heading cursor-pointer",href:d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.ACCREDITATION_PAGE)),onClick:()=>{q((0,o.WS)(s,b.Nb.ACCREDITATION_PAGE))},children:[n[b.Nb.ACCREDITATION_PAGE]||"Accreditations"," "]})})})}),et(b.Nb.FAQ_PAGE)&&(0,l.jsx)("li",{className:"list-item",children:(0,l.jsx)("span",{className:"menu-link",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"menu-link-heading cursor-pointer",href:d.W_.enrichRoute(s,o.bw.FAQ_PAGE),onClick:()=>{q(o.bw.FAQ_PAGE)},children:"FAQ"})})})}),et(b.Nb.HOME_CARE_PAGE)&&(0,l.jsx)("li",{className:"list-item",children:(0,l.jsx)("span",{className:"menu-link",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"menu-link-heading cursor-pointer",href:d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.HOME_CARE_PAGE)),onClick:()=>{q((0,o.WS)(s,b.Nb.HOME_CARE_PAGE))},children:n[b.Nb.HOME_CARE_PAGE]||"Care Guides Page"})})})}),et(b.Nb.COMMUNITY_EVENTS_PAGE)&&(0,l.jsx)("li",{className:"list-item",children:(0,l.jsx)("span",{className:"menu-link",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"menu-link-heading cursor-pointer",href:d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.COMMUNITY_EVENTS_PAGE)),onClick:()=>{q((0,o.WS)(s,b.Nb.COMMUNITY_EVENTS_PAGE))},children:n[b.Nb.COMMUNITY_EVENTS_PAGE]||"Community Events"})})})}),et(b.Nb.HOW_WE_ROLL_PAGE)&&(0,l.jsx)("li",{className:"list-item",children:(0,l.jsx)("span",{className:"menu-link",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"menu-link-heading cursor-pointer",href:d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.HOW_WE_ROLL_PAGE)),onClick:()=>{q((0,o.WS)(s,b.Nb.HOW_WE_ROLL_PAGE))},children:n[b.Nb.HOW_WE_ROLL_PAGE]||"How We Roll"})})})}),et(b.Nb.TRAVEL_PLANNING_PAGE)&&(0,l.jsx)("li",{className:"list-item",children:(0,l.jsx)("span",{className:"menu-link",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"menu-link-heading cursor-pointer",href:d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.TRAVEL_PLANNING_PAGE)),onClick:()=>{q((0,o.WS)(s,b.Nb.TRAVEL_PLANNING_PAGE))},children:n[b.Nb.TRAVEL_PLANNING_PAGE]||"Travel Planning"})})})}),et(b.Nb.PAYMENT_INFO_PAGE)&&(0,l.jsx)("li",{className:"list-item",children:(0,l.jsx)("span",{className:"menu-link",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"menu-link-heading cursor-pointer",href:d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.PAYMENT_INFO_PAGE)),onClick:()=>{q((0,o.WS)(s,b.Nb.PAYMENT_INFO_PAGE))},children:n[b.Nb.PAYMENT_INFO_PAGE]||"Payment & Insurance"})})})})]})})]}),(et(b.Nb.ABOUT_US_PAGE)||!["GP","GENERAL_PURPOSE"].includes(s?.templateName)&&et(b.Nb.ACCREDITATION_PAGE)||et(b.Nb.TEAM_PAGE)||et(b.Nb.CAREER_PAGE)||et(b.Nb.TRAINING_MENTORSHIP_PAGE)||et(b.Nb.REFERRAL_PAGE))&&(0,l.jsxs)(C.JD,{className:"side-lst-item",children:[(0,l.jsx)(C.wd,{className:"nav-link trigger-icon",children:"About"}),(0,l.jsx)(C.hA,{className:"nav-menu",children:(0,l.jsxs)("ul",{className:"grid gap-2 grid-cols-1",children:[et(b.Nb.ABOUT_US_PAGE)&&(0,l.jsx)("li",{className:"list-item",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"menu-link-heading cursor-pointer",href:d.W_.enrichRoute
1(s,(0,o.WS)(s,b.Nb.ABOUT_US_PAGE)),onClick:()=>{q((0,o.WS)(s,b.Nb.ABOUT_US_PAGE))},children:n[b.Nb.ABOUT_US_PAGE]||"About Us"})})}),et(b.Nb.TEAM_PAGE)&&(0,l.jsx)("li",{className:"list-item",children:(0,l.jsx)("span",{className:"menu-link",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"menu-link-heading cursor-pointer",href:d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.TEAM_PAGE)),onClick:()=>{q((0,o.WS)(s,b.Nb.TEAM_PAGE))},children:n[b.Nb.TEAM_PAGE]||"Team"})})})}),et(b.Nb.CAREER_PAGE)&&(0,l.jsx)("li",{className:"list-item",children:(0,l.jsx)("span",{className:"menu-link",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"menu-link-heading cursor-pointer",href:d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.CAREER_PAGE)),onClick:()=>{q((0,o.WS)(s,b.Nb.CAREER_PAGE))},children:n[b.Nb.CAREER_PAGE]||"Careers"})})})}),et(b.Nb.REFERRAL_PAGE)&&(0,l.jsx)("li",{className:"list-item",children:(0,l.jsx)("span",{className:"menu-link",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"menu-link-heading cursor-pointer",href:d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.REFERRAL_PAGE)),onClick:()=>{q((0,o.WS)(s,b.Nb.REFERRAL_PAGE))},children:n[b.Nb.REFERRAL_PAGE]||"Referring Veterinarians"})})})}),et(b.Nb.TRAINING_MENTORSHIP_PAGE)&&(0,l.jsx)("li",{className:"list-item",children:(0,l.jsx)("span",{className:"menu-link",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:"menu-link-heading cursor-pointer",href:d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.TRAINING_MENTORSHIP_PAGE)),onClick:()=>{q((0,o.WS)(s,b.Nb.TRAINING_MENTORSHIP_PAGE))},children:n[b.Nb.TRAINING_MENTORSHIP_PAGE]||"Travel & Mentorship"})})})}),!["GP","GENERAL_PURPOSE"].includes(s?.templateName)&&et(b.Nb.ACCREDITATION_PAGE)&&(0,l.jsx)("li",{className:"list-item",children:(0,l.jsx)("span",{className:"menu-link",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsxs)(E(),{className:"menu-link-heading cursor-pointer",href:d.W_.enrichRoute(s,(0,o.WS)(s,b.Nb.ACCREDITATION_PAGE)),onClick:()=>{q((0,o.WS)(s,b.Nb.ACCREDITATION_PAGE))},children:[n[b.Nb.ACCREDITATION_PAGE]||"Accreditations"," "]})})})})]})})]}),es.map(e=>{let n=e?.name||e?.slug,i=e?.slug||e?.name,t=e?.title||e?.label||(n?n.replace(/^custom-/,"").replace(/-/g," ").split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "):"Custom Page"),o=(()=>{let e=W.asPath||W.pathname;if(e.startsWith("/website/")){let s=e.endsWith("/")?e.slice(0,-1):e,n=s.split("/").filter(Boolean);return n.length>3?"/"+n.slice(0,3).join("/")+"/"+i:s+"/"+i}return d.W_.enrichRoute(s,i,"")})();return(0,l.jsx)(C.JD,{className:"relative",children:(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)(E(),{className:(0,r.cn)((0,c.R6)()),href:o,onClick:()=>{q(n),console.log(`Navigating to custom page: ${n} -> ${o}`)},children:t})})},n)})]}),e_&&er&&!H&&(0,l.jsxs)(C.JD,{className:"side-lst-item",children:[(0,l.jsxs)(C.wd,{className:"nav-link trigger-icon",children:["Locations (",z?.folderCount,")"]}),(0,l.jsx)(C.hA,{className:"nav-menu lg",children:(0,l.jsx)(m.A,{onClick:q,websiteData:s})})]}),J&&("true"!==P.A.ENABLE_PAGE_BUILDER||null===(s?.navigation||null))&&(0,l.jsxs)(C.JD,{className:"side-lst-item",children:[(0,l.jsxs)(C.wd,{className:"nav-link trigger-icon",children:["Locations (",K.length,")"]}),(0,l.jsx)(C.hA,{className:"nav-menu lg",children:(0,l.jsx)(u.A,{onClick:q,websiteData:s})})]}),ep&&(0,l.jsxs)(C.JD,{className:"side-lst-item",children:[(0,l.jsx)(C.wd,{className:"nav-link trigger-icon",children:"Emergency"}),(0,l.jsxs)(C.hA,{className:"",children:[(0,l.jsx)("div",{className:"dropdown-header mt-2 mb-0",children:(0,l.jsx)("p",{className:"header-text",children:"For urgent needs, please contact the nearest emergency clinics"})}),(0,l.jsx)("div",{className:"dd-card-wrpr",children:s?.emergencyBranches?.map((e,n)=>(0,l.jsxs)("div",{className:"dd-card dd-card-group py-4 px-0 relative",children:[(0,l.jsxs)(E(),{href:`${eP}/${eP===(0,O.RQ)()?"locations":"website/published"}/${e?.slug}`,onClick:()=>q(e?.slug),target:"_blank",className:"dd-card-link cursor-pointer",children:[(0,l.jsx)("h6",{className:"dd-card-title mb-1",children:e?.name}),(0,l.jsx)("p",{className:"dd-desc mb-2 md:mb-4",children:e?.location?.address?(0,l.jsx)(k.D,{address:e?.location?.address}):""})]}),(0,l.jsxs)("div",{className:"dd-badges-wrpr flex flex-col gap-2",children:[e?.contactDetails?.phone&&(0,l.jsx)(E(),{href:`tel:${e?.contactDetails?.phone}`,onClick:()=>{G.uc.BOOK_APPOINTMENT(s,e=>{M?.CTA_CLICK({...e})},{buttonText:"Call"},!0,"call")},className:"dd-badge lite-badge w-fit",children:e?.contactDetails?.phone||""}),(0,l.jsx)("p",{className:"dd-badge warning-badge w-fit",children:"24/7 Emergency Services"})]})]},`emergency_${n}`))})]})]})]})}),(0,l.jsxs)("div",{className:"mt-2 w-full flex flex-col gap-2",children:[eg?.enabled&&(0,l.jsx)(E(),{href:eg?.link||"#",className:"btn outline-btn whitespace-nowrap w-full",role:"button",onClick:()=>{},children:eg?.label||"Online Store"}),eA?eb?.type==="phone"?(0,l.jsxs)(E(),{href:`tel:${eb?.value}`,className:`btn ${[b.QT.ER,b.QT.ERP].includes(s?.templateName)&&s?.category!=="SPECIALITY_ER"?"red-btn":"primary-btn"} whitespace-nowrap w-full left-icon`,onClick:()=>{G.uc.BOOK_APPOINTMENT(s,e=>{M?.CTA_CLICK({...e})},{buttonText:eb?.label||eb?.value||"Call"},!0,"call")},children:[(0,l.jsx)("span",{className:"btn-icon",children:(0,l.jsx)(S.b,{role:"presentation"})}),[b.QT.ER,b.QT.ERP].includes(s?.templateName)?eb?.value:eb?.label||eb?.value]}):eb?.type==="scroll_to_section"?(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)("button",{type:"button",className:`btn ${[b.QT.ER,b.QT.ERP].includes(s?.templateName)&&s?.category!=="SPECIALITY_ER"?"red-btn":"primary-btn"} whitespace-nowrap w-full`,onClick:eR,children:eb?.label||"Book Appointment"})}):(0,l.jsx)(E(),{href:eb?.type==="custom_url"?eb?.value||"#":d.W_.enrichRoute
1(s,(0,o.WS)(s,b.Nb.BOOK_APPOINTMENT_PAGE)),target:eb?.openInNewTab||eb?.type==="custom_url"&&eb?.openInNewTab!==!1?"_blank":void 0,rel:eb?.openInNewTab||eb?.type==="custom_url"&&eb?.openInNewTab!==!1?"noopener noreferrer":void 0,className:`btn ${[b.QT.ER,b.QT.ERP].includes(s?.templateName)&&s?.category!=="SPECIALITY_ER"?"red-btn":"primary-btn"} whitespace-nowrap w-full`,role:"button",onClick:()=>{G.uc.BOOK_APPOINTMENT(s,e=>{M?.CTA_CLICK({...e})},{buttonText:eb?.label||"Book Appointment"},!0)},children:eb?.label||"Book Appointment"}):null]})]})})})]})}},25017:(e,s,n)=>{n.d(s,{FH:()=>o,Tk:()=>c,Xx:()=>i,eF:()=>a,nZ:()=>r});var l=n(98673),i=function(e){return e.UVC="UVC",e.NON_UVC="NON_UVC",e}({}),a=function(e){return e.ONETRUST="ONETRUST",e.GTM="GTM",e.FACEBOOK_PIXEL="FACEBOOK_PIXEL",e.GENERAL="GENERAL",e}({});let t=[{domainType:"UVC",scriptType:"ONETRUST",source:"PLATFORM",allowFallback:!1,description:"UVC /location/* paths use platform-level OneTrust; UVC root uses website-level (enforced in Footer)"},{domainType:"UVC",scriptType:"GTM",source:"BOTH",allowFallback:!1,description:"UVC sites inject both platform and website GTM scripts"},{domainType:"UVC",scriptType:"FACEBOOK_PIXEL",source:"BOTH",allowFallback:!1,description:"UVC sites inject both platform and website Facebook Pixel scripts"},{domainType:"UVC",scriptType:"GENERAL",source:"BOTH",allowFallback:!1,description:"UVC sites inject both platform and website tracking scripts"},{domainType:"NON_UVC",scriptType:"ONETRUST",source:"WEBSITE",allowFallback:!1,description:"Non-UVC sites use website-level OneTrust ONLY (platform ignored)"},{domainType:"NON_UVC",scriptType:"GTM",source:"BOTH",allowFallback:!1,description:"Non-UVC sites inject both platform and website GTM scripts"},{domainType:"NON_UVC",scriptType:"FACEBOOK_PIXEL",source:"BOTH",allowFallback:!1,description:"Non-UVC sites inject both platform and website Facebook Pixel scripts"},{domainType:"NON_UVC",scriptType:"GENERAL",source:"BOTH",allowFallback:!1,description:"Non-UVC sites inject both platform and website tracking scripts"}],r=(e,s)=>{let n=t.find(n=>n.domainType===e&&n.scriptType===s);return n?.allowFallback??!1},c=(e,s)=>s||(0,l.T8)(e)?"UVC":"NON_UVC",o=e=>{console.log(` 2âââââââââââââââââââââââââââââââââââââââââââââââââââââââ`),console.log(`ð SCRIPT PRIORITY RULES FOR ${e} SITES`),console.log(`âââââââââââââââââââââââââââââââââââââââââââââââââââââââ`),t.filter(s=>s.domainType===e).forEach(e=>{console.log(` 3${e.scriptType}:`),console.log(` Source: ${e.source}`),console.log(` Fallback: ${e.allowFallback?"YES":"NO"}`),console.log(` Description: ${e.description}`)}),console.log(`âââââââââââââââââââââââââââââââââââââââââââââââââââââââ 4`)}},86932:(e,s,n)=>{n(37876),n(14232),n(91258),n(27025)},94408:(e,s,n)=>{n.d(s,{JD:()=>d,KS:()=>c,R6:()=>N,SK:()=>o,Ws:()=>h,hA:()=>u,wd:()=>m});var l=n(37876),i=n(14232),a=n(23445),t=n(47137),r=n(27025);let c=i.forwardRef((e,s)=>{let{className:n,children:i,...t}=e;return(0,l.jsx)(a.bL,{ref:s,className:(0,r.cn)("relative z-10 flex max-w-max flex-1 items-center justify-center",n),...t,children:i})});c.displayName=a.bL.displayName;let o=i.forwardRef((e,s)=>{let{className:n,...i}=e;return(0,l.jsx)(a.B8,{ref:s,className:(0,r.cn)("group flex flex-1 list-none items-center justify-center space-x-1",n),...i})});o.displayName=a.B8.displayName;let d=a.q7,N=(0,t.F)("nav-link group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-0 lg:px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50 cursor-pointer"),m=i.forwardRef((e,s)=>{let{className:n,children:i,...t}=e;return(0,l.jsxs)(a.l9,{ref:s,className:(0,r.cn)(N(),"group",n),role:"button",...t,children:[i," "]})});m.displayName=a.l9.displayName;let u=i.forwardRef((e,s)=>{let{className:n,...i}=e;return(0,l.jsx)(a.UC,{ref:s,className:(0,r.cn)("bg-white left-0 top-full w-full md:absolute md:w-auto top-bottom-animation",n),...i})});u.displayName=a.UC.displayName;let h=a.N_}}]);
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.