PageSourceSearch

https://eepah.com/_next/static/chunks/pages/website/[type]/[slug]/…/[page]/[id]-b35596cd-26c3dcce87a63dba.js

js eepah.com collected 2026-10-10 02:36:18 UTC 42,721 bytes, 4 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[158,1983,4702,5088,7313,9073],{575:(e,s,n)=>{n.d(s,{CG:()=>d,Qs:()=>A,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 A=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})});A.displayName=a.VY.displayName},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),A=n(19909),b=n(37659);let _={SERVICES:"services",RESOURCE:"resource",ABOUT:"about"};function p(e){let{onClick:s,services:n,websiteData:i,onRouteChange:a,isLocationEnabled:h,shouldShow:p,serviceSection:P,servicesLoading:x,displayNameMap:C}=e,R=(0,N.useRouter)(),[S,g]=t.useState(""),j=i?.category==="MULTI_WEBSITE_GROUP"||i?.isMultiSiteParent||i?.isMultiSiteChild,G=(0,b.i5)(),T=G?.multiSiteGroupChildren;G?.loading;let f=t.useMemo(()=>j&&T?.results?T.results.filter(e=>e?._id!==i?._id):[],[j,T?.results,i?._id]),O=j&&f.length>0,k=e=>{g(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:S,onValueChange:k,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(i,""),onClick:()=>s("home"),children:C?.[A.Nb.LANDING_PAGE]||"Home"})}),p(A.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,A.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,A.Nb.SERVICES_PAGE))},children:C[A.Nb.SERVICES_PAGE]||"Services"})}):(0,l.jsxs)(c.JD,{value:_.SERVICES,className:"relative",children:[(0,l.jsx)(c.wd,{className:"nav-link trigger-link","data-state":S===_.SERVICES?"open":"closed",onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),onClick:e=>{e.stopPropagation()},children:C?.[A.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:x?.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"})}
1),(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:P?.[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,A.Nb.SERVICES_PAGE),e?.slug),onClick:()=>{a(e?.slug,"link",(0,o.WS)(i,A.Nb.SERVICES_PAGE)),k("")},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,A.Nb.SERVICES_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.SERVICES_PAGE)),g("")},className:"menu-all cursor-pointer",children:"View all"})})]})]})),(p(A.Nb.BLOGS_PAGE)||p(A.Nb.VIDEO_PAGE)||p(A.Nb.NEWS_PAGE)||p(A.Nb.FORMS_PAGE)||p(A.Nb.APP_DOWNLOAD_PAGE)||p(A.Nb.RESOURCES_PAGE)||["GP","GENERAL_PURPOSE"].includes(i?.templateName)&&p(A.Nb.ACCREDITATION_PAGE)||p(A.Nb.FAQ_PAGE)||p(A.Nb.PAYMENT_INFO_PAGE)||p(A.Nb.TRAVEL_PLANNING_PAGE)||p(A.Nb.HOME_CARE_PAGE)||p(A.Nb.COMMUNITY_EVENTS_PAGE)||p(A.Nb.HOW_WE_ROLL_PAGE))&&(0,l.jsxs)(c.JD,{value:_.RESOURCE,className:"relative",children:[(0,l.jsx)(c.wd,{className:"nav-link trigger-link","data-state":S===_.RESOURCE?"open":"closed",onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),onClick:e=>{e.stopPropagation()},"aria-expanded":S===_.RESOURCE,children:"Resources"}),S===_.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:[p(A.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,A.Nb.BLOGS_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.BLOGS_PAGE)),g("")},children:C?.[A.Nb.BLOGS_PAGE]||"Blogs"})}),p(A.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,A.Nb.VIDEO_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.VIDEO_PAGE)),g("")},children:C?.[A.Nb.VIDEO_PAGE]||"Videos"})}),p(A.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,A.Nb.NEWS_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.NEWS_PAGE)),g("")},children:C?.[A.Nb.NEWS_PAGE]||"News"})}),p(A.Nb.FORMS_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,A.Nb.FORMS_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.FORMS_PAGE)),g("")},children:C?.[A.Nb.FORMS_PAGE]||"Forms"})}),p(A.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,A.Nb.APP_DOWNLOAD_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.APP_DOWNLOAD_PAGE)),g("")},children:C?.[A.Nb.APP_DOWNLOAD_PAGE]||"Download App"})}),p(A.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,A.Nb.RESOURCES_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.RESOURCES_PAGE)),g("")},children:C?.[A.Nb.RESOURCES_PAGE]||"Resource and Education Center"})}),["GP","GENERAL_PURPOSE"].includes(i?.templateName)&&p(A.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,A.Nb.ACCREDITATION_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.ACCREDITATION_PAGE)),g("")},children:C?.[A.Nb.ACCREDITATION_PAGE]||"Accreditations"})}
1),p(A.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,A.Nb.FAQ_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.FAQ_PAGE)),g("")},children:C?.[A.Nb.FAQ_PAGE]||"FAQ"})}),p(A.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,A.Nb.HOME_CARE_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.HOME_CARE_PAGE)),g("")},children:C?.[A.Nb.HOME_CARE_PAGE]||"Care Guides Page"})}),p(A.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,A.Nb.COMMUNITY_EVENTS_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.COMMUNITY_EVENTS_PAGE)),g("")},children:C?.[A.Nb.COMMUNITY_EVENTS_PAGE]||"Community Events Page"})}),p(A.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,A.Nb.HOW_WE_ROLL_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.HOW_WE_ROLL_PAGE)),g("")},children:C?.[A.Nb.HOW_WE_ROLL_PAGE]||"How We Roll"})}),p(A.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,A.Nb.TRAVEL_PLANNING_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.TRAVEL_PLANNING_PAGE)),g("")},children:C?.[A.Nb.TRAVEL_PLANNING_PAGE]||"Travel Planning"})}),p(A.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,A.Nb.PAYMENT_INFO_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.PAYMENT_INFO_PAGE)),g("")},children:C?.[A.Nb.PAYMENT_INFO_PAGE]||"Payment & Insurance"})})]})})]}),(p(A.Nb.ABOUT_US_PAGE)||p(A.Nb.TEAM_PAGE)||p(A.Nb.CAREER_PAGE)||!["GP","GENERAL_PURPOSE"].includes(i?.templateName)&&p(A.Nb.ACCREDITATION_PAGE)||p(A.Nb.TRAINING_MENTORSHIP_PAGE)||p(A.Nb.REFERRAL_PAGE))&&(0,l.jsxs)(c.JD,{value:_.ABOUT,className:"relative",children:[(0,l.jsx)(c.wd,{"data-state":S===_.ABOUT?"open":"closed",className:"nav-link trigger-link",onPointerMove:e=>e.preventDefault(),onPointerLeave:e=>e.preventDefault(),onClick:e=>{e.stopPropagation()},"aria-expanded":S===_.ABOUT,children:"About"}),S===_.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:[p(A.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,A.Nb.ABOUT_US_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.ABOUT_US_PAGE)),g("")},children:C?.[A.Nb.ABOUT_US_PAGE]||"About Us"})}),p(A.Nb.TEAM_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,A.Nb.TEAM_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.TEAM_PAGE)),g("")},children:C?.[A.Nb.TEAM_PAGE]||"Team"})}),p(A.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,A.Nb.CAREER_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.CAREER_PAGE)),g("")},children:C?.[A.Nb.CAREER_PAGE]||"Careers"})}),p(A.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,A.Nb.REFERRAL_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.REFERRAL_PAGE)),g("")},children:C?.[A.Nb.REFERRAL_PAGE]||"Referring Veterinarians"})}),p(A.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,A.Nb.TRAINING_MENTORSHIP_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.TRAINING_MENTORSHIP_PAGE)),g("")},children:C?.[A.Nb.TRAINING_MENTORSHIP_PAGE]||"Training & Mentorship"})}),!["GP","GENERAL_PURPOSE"].includes(i?.templateName)&&p(A.Nb.ACCRED
1ITATION_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,A.Nb.ACCREDITATION_PAGE)),onClick:()=>{a((0,o.WS)(i,A.Nb.ACCREDITATION_PAGE)),g("")},children:C?.[A.Nb.ACCREDITATION_PAGE]||"Accreditations"})})]})})]}),(h||O)&&(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":S===_.RESOURCE,children:["Locations"," ",O?`(${f.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:O?(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=R.asPath||R.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 P=n(65228),x=n(6796),C=n(27153),R=n(38469),S=n(94639),g=n(80171),j=n(51930),G=n(12540),T=n(65734),f=n(16188),O=n(23623),k=n(98673),v=n(82964),I=n(69418);function W(e){let{websiteData:s,displayNameMap:n,pageSlug:h,currentPage:_}=e,W=(0,N.useRouter)(),[L,w]=(0,t.useState)(!1),{TriggerEvents:M}=(0,j.useCarterAnalytics)(),y=null;try{y=(0,b.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,b.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===A.Nb.LANDING_PAGE)?.sections?.[A.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===A.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===A.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,eA=null!=eu?eu:eh?.enabled!==void 0?eh:eE?.enabled!==void 0?eE:ed,eb=null!=eN?em&&(eu?.enabled??!0):eh?.enabled??eE?.enabled??eo,e_=ec?.sections?.["emergency-branches"]?.data?.isActive||!1,ep=ec?.sections?.["emergency-branches"]?.data?.isLocationEnabled||!1,eP=ec?.sections?.["emergency-banner-section"],[ex,eC]=(0,t.useState)("https://prd-uvc-cms-visitor.uvcpaws.
1com"),eR=ec?.sections?.["emergency-branches"]?.data?.store||!1;(0,t.useEffect)(()=>{(0,k.T8)(window.location.hostname)?eC((0,k.RQ)()):eC("https://prd-uvc-cms-visitor.uvcpaws.com")},[]);let eS=()=>{G.uc.BOOK_APPOINTMENT(s,e=>{M?.CTA_CLICK({...e})},{buttonText:eA?.label||"Book Appointment"},!0);let e=eA?.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)(T.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)(R.Ay,{src:s?.logo?.fileUrl||f.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"===x.A.ENABLE_PAGE_BUILDER&&null!==(s?.navigation||null)?(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsx)(P.AZ,{items:ea??s?.navigation?.header?.items??[],websiteData:z,onClick:e=>q(e.startsWith("/")?e.substring(1):e),onRouteChange:q}),ep&&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)(p,{onRouteChange:q,shouldShow:et,onClick:e=>{q(e.startsWith("/")?e.substring(1):e)},services:Z,websiteData:z,isLocationEnabled:ep&&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:[eR?.enabled&&(0,l.jsx)(E(),{href:eR?.link||"#",className:"btn outline-btn whitespace-nowrap",role:"button",target:"_blank",rel:"noopener noreferrer",children:eR?.label||"Online Store"}),e_&&(0,l.jsx)(S.A,{emergencyBranches:s?.emergencyBranches||[],onClick:q}),eb&&eA?eA?.type==="phone"?(0,l.jsxs)(E(),{href:`tel:${eA?.value}`,className:`btn ${[A.QT.ER,A.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:eA?.label||eA?.value||"Call"},!0,"call")},children:[(0,l.jsx)("span",{className:"btn-icon",children:(0,l.jsx)(g.b,{role:"presentation"})}),eA?.value]}):eA?.type==="scroll_to_section"?(0,l.jsx)("button",{type:"button",className:`btn ${[A.QT.ER,A.QT.ERP].includes(s?.templateName)&&s?.category!=="SPECIALITY_ER"?"red-btn":"primary-btn"} whitespace-nowrap`,onClick:eS,children:eA?.label||"Book Appointment"}):(0,l.jsx)(E(),{href:eA?.type==="custom_url"?eA?.value||"#":d.W_.enrichRoute(s,(0,o.WS)(s,A.Nb.BOOK_APPOINTMENT_PAGE)),target:eA?.openInNewTab||eA?.type==="custom_url"&&eA?.openInNewTab!==!1?"_blank":void 0,rel:eA?.openInNewTab||eA?.type==="custom_url"&&eA?.openInNewTab!==!1?"noopener noreferrer":void 0,className:`btn ${[A.QT.ER,A.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:eA?.label||"Book Appointment"},!0)},children:eA?.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"})]})})})]})]})}),[A.QT.ER,A.QT.ERP,A.WJ.MULTI_SITE].includes(s?.templateName)&&eP?.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(eP?.data?.banner?.iconId||"1")-1]?.image?.src??"",size:20}),(0,l.jsx)("p",{className:"badge-text",children:eP?.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)(R.Ay,{className:"",src:s?.logo?.fileUrl||f.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"===x.A.ENABLE_PAGE_BUILDER&&null!==(s?.navigation||null)?(0,l.jsx)(P.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[A.Nb.LANDING_PAGE]||"Home"})})}),et(A.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,A.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,A.Nb.SERVICES_PAGE))},children:n[A.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[A.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,A.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,A.Nb.SERVICES_PAGE)),onClick:()=>{q((0,o.WS)(s,A.Nb.SERVICES_PAGE))},className:"menu-all cursor-pointer",children:"View all"})})})]})]})),(et(A.Nb.BLOGS_PAGE)||et(A.Nb.VIDEO_PAGE)||et(A.Nb.NEWS_PAGE)||et(A.Nb.FORMS_PAGE)||et(A.Nb.APP_DOWNLOAD_PAGE)||et(A.Nb.RESOURCES_PAGE)||["GP","GENERAL_PURPOSE"].includes(s?.templateName)&&et(A.Nb.ACCREDITATION_PAGE)||et(A.Nb.FAQ_PAGE)||et(A.Nb.PAYMENT_INFO_PAGE)||et(A.Nb.TRAVEL_PLANNING_PAGE)||et(A.Nb.HOME_CARE_PAGE)||et(A.Nb.COMMUNITY_EVENTS_PAGE)||et(A.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(A.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,A.Nb.BLOGS_PAGE)),onClick:()=>{q((0,o.WS)(s,A.Nb.BLOGS_PAGE))},children:n[A.Nb.BLOGS_PAGE]||"Blogs"})})}),et(A.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,A.Nb.VIDEO_PAGE)),onClick:()=>{q((0,o.WS)(s,A.Nb.VIDEO_PAGE))},children:n[A.Nb.VIDEO_PAGE]||"Videos"})})})}),et(A.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,A.Nb.NEWS_PAGE)),onClick:()=>{q((0,o.WS)(s,A.Nb.NEWS_PAGE))},children:n[A.Nb.NEWS_PAGE]||"News"})})})}),et(A.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,A.Nb.FORMS_PAGE)),onClick:()=>{q((0,o.WS)(s,A.Nb.FORMS_PAGE))},children:n[A.Nb.FORMS_PAGE]||"Forms"})})})}),et(A.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,A.Nb.APP_DOWNLOAD_PAGE)),onClick:()=>{q((0,o.WS)(s,A.Nb.APP_DOWNLOAD_PAGE))},children:n[A.Nb.APP_DOWNLOAD_PAGE]||"Download App"})})})}),et(A.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,A.Nb.RESOURCES_PAGE)),onClick:()=>{q((0,o.WS)(s,A.Nb.RESOURCES_PAGE))},children:n[A.Nb.RESOURCES_PAGE]||"Resource and Education Center"})})})}),["GP","GENERAL_PURPOSE"].includes(s?.templateName)&&et(A.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,A.Nb.ACCREDITATION_PAGE)),onClick:()=>{q((0,o.WS)(s,A.Nb.ACCREDITATION_PAGE))},children:[n[A.Nb.ACCREDITATION_PAGE]||"Accreditations"," "]})})})}),et(A.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(A.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,A.Nb.HOME_CARE_PAGE)),onClick:()=>{q((0,o.WS)(s,A.Nb.HOME_CARE_PAGE))},children:n[A.Nb.HOME_CARE_PAGE]||"Care Guides Page"})})})}),et(A.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,A.Nb.COMMUNITY_EVENTS_PAGE)),onClick:()=>{q((0,o.WS)(s,A.Nb.COMMUNITY_EVENTS_PAGE))},children:n[A.Nb.COMMUNITY_EVENTS_PAGE]||"Community Events"})})})}),et(A.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,A.Nb.HOW_WE_ROLL_PAGE)),onClick:()=>{q((0,o.WS)(s,A.Nb.HOW_WE_ROLL_PAGE))},children:n[A.Nb.HOW_WE_ROLL_PAGE]||"How We Roll"})})})}),et(A.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,A.Nb.TRAVEL_PLANNING_PAGE)),onClick:()=>{q((0,o.WS)(s,A.Nb.TRAVEL_PLANNING_PAGE))},children:n[A.Nb.TRAVEL_PLANNING_PAGE]||"Travel Planning"})})})}),et(A.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,A.Nb.PAYMENT_INFO_PAGE)),onClick:()=>{q((0,o.WS)(s,A.Nb.PAYMENT_INFO_PAGE))},children:n[A.Nb.PAYMENT_INFO_PAGE]||"Payment & Insurance"})})})})]})})]}),(et(A.Nb.ABOUT_US_PAGE)||!["GP","GENERAL_PURPOSE"].includes(s?.templateName)&&et(A.Nb.ACCREDITATION_PAGE)||et(A.Nb.TEAM_PAGE)||et(A.Nb.CAREER_PAGE)||et(A.Nb.TRAINING_MENTORSHIP_PAGE)||et(A.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(A.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,A.Nb.ABOUT_US_PAGE)),onClick:()=>{q((0,o.WS)(s,A.Nb.ABOUT_US_PAGE))},children:n[A.Nb.ABOUT_US_PAGE]||"About Us"})})}),et(A.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,A.Nb.TEAM_PAGE)),onClick:()=>{q((0,o.WS)(s,A.Nb.TEAM_PAGE))},children:n[A.Nb.TEAM_PAGE]||"Team"})})})}),et(A.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,A.Nb.CAREER_PAGE)),onClick:()=>{q((0,o.WS)(s,A.Nb.CAREER_PAGE))},children:n[A.Nb.CAREER_PAGE]||"Careers"})})})}),et(A.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,A.Nb.REFERRAL_PAGE)),onClick:()=>{q((0,o.WS)(s,A.Nb.REFERRAL_PAGE))},children:n[A.Nb.REFERRAL_PAGE]||"Referring Veterinarians"})})})}),et(A.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,A.Nb.TRAINING_MENTORSHIP_PAGE)),onClick:()=>{q((0,o.WS)(s,A.Nb.TRAINING_MENTORSHIP_PAGE))},children:n[A.Nb.TRAINING_MENTORSHIP_PAGE]||"Travel & Mentorship"})})})}),!["GP","GENERAL_PURPOSE"].includes(s?.templateName)&&et(A.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,A.Nb.ACCREDITATION_PAGE)),onClick:()=>{q((0,o.WS)(s,A.Nb.ACCREDITATION_PAGE))},children:[n[A.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)})]}),ep&&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"!==x.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})})]}),e_&&(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:`${ex}/${ex===(0,k.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)(O.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:[eR?.enabled&&(0,l.jsx)(E(),{href:eR?.link||"#",className:"btn outline-btn whitespace-nowrap w-full",role:"button",onClick:()=>{},children:eR?.label||"Online Store"}),eb?eA?.type==="phone"?(0,l.jsxs)(E(),{href:`tel:${eA?.value}`,className:`btn ${[A.QT.ER,A.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:eA?.label||eA?.value||"Call"},!0,"call")},children:[(0,l.jsx)("span",{className:"btn-icon",children:(0,l.jsx)(g.b,{role:"presentation"})}),[A.QT.ER,A.QT.ERP].includes(s?.templateName)?eA?.value:eA?.label||eA?.value]}):eA?.type==="scroll_to_section"?(0,l.jsx)(a.kN,{asChild:!0,children:(0,l.jsx)("button",{type:"button",className:`btn ${[A.QT.ER,A.QT.ERP].includes(s?.templateName)&&s?.category!=="SPECIALITY_ER"?"red-btn":"primary-btn"} whitespace-nowrap w-full`,onClick:eS,children:eA?.label||"Book Appointment"})}):(0,l.jsx)(E(),{href:eA?.type==="custom_url"?eA?.value||"#":d.W_.enrichRoute
1(s,(0,o.WS)(s,A.Nb.BOOK_APPOINTMENT_PAGE)),target:eA?.openInNewTab||eA?.type==="custom_url"&&eA?.openInNewTab!==!1?"_blank":void 0,rel:eA?.openInNewTab||eA?.type==="custom_url"&&eA?.openInNewTab!==!1?"noopener noreferrer":void 0,className:`btn ${[A.QT.ER,A.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:eA?.label||"Book Appointment"},!0)},children:eA?.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`)}},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.