1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1082,2572,6632,7123,9083,9806],{1374:(e,t,s)=>{s.r(t),s.d(t,{default:()=>N});var a=s(37876),l=s(14232),i=s(65734),r=s(55128),n=s(38469),c=s(12540),o=s(89099),d=s(68202),p=s(48230),m=s.n(p),u=s(18379),h=s(19909);let g=()=>{let e=window.location.pathname;return`bannerShown_${e}`},x=(0,l.memo)(e=>{let{content:t,banner:s,websiteData:l,handleClose:i,onClick:r}=e,n=(0,o.useRouter)();if(!t?.showCTA)return null;switch(t?.inputType){case"CUSTOM_URL":return(0,a.jsx)(m(),{onClick:()=>{c.uc.CUSTOM_URL?.(t,r,"popup")},href:t?.ctaLink||"#",target:"_blank",rel:"noopener noreferrer",className:"action_btn primary_btn","aria-label":"promo-button-link",children:t?.buttonText});case"PDF_UPLOAD":return(0,a.jsx)(m(),{onClick:()=>{c.uc.PDF_UPLOAD?.(t,r,"popup")},href:t?.ctaLink||"#",target:"_blank",rel:"noopener noreferrer",className:"action_btn primary_btn","aria-label":"promo-button-pdf",children:t?.buttonText||"View PDF"});default:return(0,a.jsx)("button",{className:"action_btn primary_btn cursor-pointer",onClick:()=>{c.uc.BOOK_APPOINTMENT?.(l,r,t,!1,void 0,"popup"),(0,c.qf)(s,l,n),i()},children:t?.buttonText})}});x.displayName="PromoButton";let f=(0,l.memo)(e=>{let{servicePricing:t,websiteData:s,onClick:l}=e,i=(0,o.useRouter)();if(!t?.enabled)return null;switch(t?.ctaType){case"CUSTOM_URL":case"PDF_UPLOAD":return(0,a.jsx)(m(),{onClick:()=>{c.uc.PDF_UPLOAD?.({buttonText:t?.buttonText,ctaLink:t?.ctaLink},l,"popup")},href:t?.ctaLink||"#",target:"_blank",rel:"noopener noreferrer",className:"action_btn outline_btn","aria-label":"service-pricing-button",children:t?.buttonText||"Service Pricing"});default:return(0,a.jsx)("button",{className:"action_btn outline_btn cursor-pointer",onClick:()=>{c.uc.BOOK_APPOINTMENT?.(s,l,{buttonText:t?.buttonText},!1,void 0,"popup"),d.W_.handleRouteChange(i,s,(0,r.WS)(s,h.Nb.BOOK_APPOINTMENT_PAGE))},children:t?.buttonText||"Service Pricing"})}});f.displayName="ServicePricingButton";let b=(0,l.memo)(e=>{let{disclaimer:t,endDate:s}=e;return t?(0,a.jsx)("p",{className:"popup_label",children:`${t}`}):null});b.displayName="DisclaimerText";let j=(0,l.memo)(e=>{let{content:t,banner:s,websiteData:l,handleClose:i,onClick:r}=e;return(0,a.jsxs)("div",{className:"popup_content",children:[(0,a.jsxs)("div",{className:"pop_content_grp",children:[(0,a.jsx)("h2",{className:"popup_title",children:t?.heading||""}),(0,a.jsx)("p",{className:"popup_desc",children:t?.description||""})]}),(0,a.jsxs)("div",{className:"popup_btn_grp",children:[(0,a.jsxs)("div",{className:"flex gap-2 flex-wrap",children:[(0,a.jsx)(x,{content:t,banner:s,websiteData:l,handleClose:i,onClick:r}),(0,a.jsx)(f,{servicePricing:t?.servicePricing,websiteData:l,onClick:r})]}),(0,a.jsx)(b,{disclaimer:t?.disclaimer,endDate:s?.endDate})]})]})});j.displayName="PopupContentComponent";let v=(0,l.memo)(e=>{let{banner:t,websiteData:s,onClick:r}=e,[c,o]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=g();sessionStorage.getItem(e)||o(!0)},[]);let d=()=>{o(!1);let e=g();sessionStorage.setItem(e,"true")},p=t?.content;return(0,a.jsx)(i.lG,{open:c,onOpenChange:d,children:(0,a.jsxs)(i.Cf,{className:"promo_popup z-[2147483647]",children:[(0,a.jsxs)(i.c7,{className:"popup_header",children:[(0,a.jsx)(i.L3,{className:"head_title",children:p?.navText||""}),(0,a.jsx)(i.rr,{})]}),(0,a.jsx)("div",{className:"popup_row",children:(0,a.jsxs)("div",{className:"popup_content_col",children:[(0,a.jsx)(j,{content:p,banner:t,handleClose:d,websiteData:s,onClick:r}),(0,a.jsx)("div",{className:"popup_image_col",children:(0,a.jsx)(n.Ay,{className:"popup_img",src:p?.imageUrl||u.A?.src,alt:"banner-image",height:500,width:500})})]})})]})})});v.displayName="PopUpBanner";let N=v},4039:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(37876),l=s(48230),i=s.n(l);let r={primary:"primary-btn",secondary:"secondary-btn",outline:"outline-btn"};function n(e){let{heading:t,subHeading:s,buttons:l=[],layout:n="horizontal",maxWidth:c=846,className:o=""}=e;return(0,a.jsxs)("div",{className:`sec-header ${"horizontal"===n?"sec-header-horizontal":"sec-header-vertical"} ${o}`,children:[(0,a.jsxs)("div",{className:"sec-header-content",style:{maxWidth:"number"==typeof c?`${c}px`:c},children:[(0,a.jsx)("h3",{className:"sec-heading",children:t}),s&&(0,a.jsx)("p",{className:"body-text",children:s})]}),l.length>0&&(0,a.jsx)("div",{className:"sec-header-btns desk-view",children:l.map((e,t)=>(0,a.jsxs)(i(),{href:e.href,target:e.target,rel:e.rel,className:`btn ${r[e.variant||"outline"]} ${e.extraClassName||""}`.trim(),children:[e.icon,e.label]},t))})]})}},16893:(e,t,s)=>{s.d(t,{A:()=>u});var a=s(37876),l=s(55128),i=s(68202),r=s(19909),n=s(51930),c=s(12540),o=s(47311),d=s(48230),p=s.n(d),m=s(89099);function u(e){let{data:t,websiteData:s}=e,{TriggerEvents:d}=(0,n.useCarterAnalytics)(),u=((0,m.useRouter)(),s?.templateName===r.WJ.MULTI_SITE);console.log("HERE",u);let h=s?.templateName===r.QT.ERP?"red-btn":u?"white-btn":"primary-btn";return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("section",{className:"inner
1-banner py-[50px] lg:py-[60px] xl:py-20 grey-bg",children:(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)("div",{className:"inner_page-head callout-section",children:[u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h1",{className:"page-heading",children:t?.heading}),t?.heading&&(0,a.jsx)("p",{className:"page-desc",children:t?.subheading})]}):(0,a.jsxs)(a.Fragment,{children:[t?.heading&&(0,a.jsx)("p",{className:"page-desc",children:t?.heading}),(0,a.jsx)("h1",{className:"page-heading",children:t?.subheading})]}),t?.primaryCta?.enabled&&(0,a.jsx)("div",{className:"mt-11 md:mt-6 flex items-center justify-center",children:((e,t,s,n,d)=>{if(console.log("renderPrimaryCTA",e),!(!e?.primaryCta?.type||e?.primaryCta?.enabled))return null;let m=e?.primaryCta?.type||"url",u=e?.primaryCta?.value||"",h=e?.primaryCta?.label||("phone"===m?u:"Book Appointment"),g=e?.primaryCta?.openInNewTab??"custom_url"===m;return"phone"===m?(0,a.jsxs)(p(),{href:`tel:${u}`,onClick:()=>{c.uc.BOOK_APPOINTMENT(s,e=>{n?.CTA_CLICK({...e})},{buttonText:h},!0,"call")},className:`${t} left-icon`,children:[(0,a.jsx)("span",{className:"btn-icon",children:(0,a.jsx)(o.b,{})}),(0,c.EJ)(h,l.N8?.LANDING_PAGE?.HERO_SECTION?.CTA)]}):"sms"===m?(0,a.jsxs)(p(),{href:`sms:${u}`,onClick:()=>{c.uc.BOOK_APPOINTMENT(s,e=>{n?.CTA_CLICK({...e})},{buttonText:h},!0,"sms")},className:`${t} left-icon`,children:[(0,a.jsx)("span",{className:"btn-icon",children:(0,a.jsx)(o.v,{})}),(0,c.EJ)(h,l.N8?.LANDING_PAGE?.HERO_SECTION?.CTA)]}):"url"===m?(0,a.jsx)(p(),{href:i.W_.enrichRoute(s,(0,l.WS)(s,r.Nb.BOOK_APPOINTMENT_PAGE)),target:g?"_blank":void 0,rel:g?"noopener noreferrer":void 0,onClick:()=>{c.uc.BOOK_APPOINTMENT(s,e=>{n?.CTA_CLICK({...e})},{buttonText:h},!0)},className:t,children:(0,c.EJ)(h,l.N8?.LANDING_PAGE?.HERO_SECTION?.CTA)}):"custom_url"===m?(0,a.jsx)(p(),{href:u||"#",target:g?"_blank":void 0,rel:g?"noopener noreferrer":void 0,onClick:()=>{c.uc.CUSTOM_URL({buttonText:h,ctaLink:u},e=>{n?.CTA_CLICK({...e})},"hero_section")},className:t,children:(0,c.EJ)(h,l.N8?.LANDING_PAGE?.HERO_SECTION?.CTA)}):null})(t,`btn btn-lg ${h} w-full sm:w-fit`,s,d,0)})]})})})})}},18524:(e,t,s)=>{s.d(t,{A:()=>u});var a=s(37876),l=s(88016),i=s(38469),r=s(94495),n=s(14232),c=s(278),o=s(51930),d=s(31831),p=s(48230),m=s.n(p);function u(e){let{data:t,websiteData:s,sectionData:p,page:u}=e,h=(0,n.useMemo)(()=>new c.A,[]),g=p?.results?.templateSpecificData||[],x=p?.pages||1,f=p?.total||0,b=g?.[0]?.type||"",[j,v]=(0,n.use
1State)("0"),[N,y]=(0,n.useState)(g),[w,C]=(0,n.useState)(1),[E,_]=(0,n.useState)(!1),[T,A]=(0,n.useState)(x>1),[S,k]=(0,n.useState)(!1),P=(0,n.useRef)(null),O=(0,n.useRef)(new Map),{TriggerEvents:I}=(0,o.useCarterAnalytics)(),L=d.G["resources-page"];(0,n.useEffect)(()=>{g&&g.length>0&&0===N.length&&y(g)},[g]);let D=S?N:N?.slice(0,6),$=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;if(b)try{_(!0);let t=await h.GetWebsiteEntityData({websiteIdOrSlug:s?._id,entityType:"templateSpecificData",pagination:{page:e,limit:L?.limit||10,sort:L?.sort||{field:"priority",direction:"ASC"},filters:{conditions:[{field:"type",operator:"EQ",value:b}]}},siteStatus:(s?.status||"DRAFT")?.toUpperCase()}),a=t?.results?.templateSpecificData;a?.length?(y(e=>[...e,...a]),C(e),e>=(t?.pages||x)&&A(!1)):A(!1)}catch(e){A(!1),console.error("Error fetching items:",e)}finally{_(!1)}},R=(0,n.useCallback)(e=>{e[0].isIntersecting&&S&&T&&!E&&$(w+1)},[S,T,E,w]);(0,n.useEffect)(()=>{let e=new IntersectionObserver(R,{root:null,rootMargin:"20px",threshold:1});return P.current&&e.observe(P.current),()=>e.disconnect()},[R]);let M=(0,n.useCallback)(e=>{v(e),e&&setTimeout(()=>{let t=O.current.get(e);if(t){let e=t.getBoundingClientRect().top+window.scrollY-200;window.scrollTo({top:e,behavior:"smooth"})}},150)},[]);return(0,a.jsxs)(a.Fragment,{children:[(u?.name?.includes("resources")||u?.name?.includes("faq"))&&(0,a.jsx)(r.A,{data:t,websiteData:s}),(0,a.jsx)("section",{className:"pb-[50px] lg:pb-[60px] xl:pb-20",children:(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)("div",{className:"flex items-start flex-col-reverse lg:flex-row gap-6 lg:gap-12",children:[(0,a.jsxs)("div",{className:"service-accordian flex-1 w-full lg:max-w-full lg:w-1/2",children:[(0,a.jsxs)(l.nD,{role:"region","aria-label":"Service categories accordion",type:"single",collapsible:!0,className:"w-full",value:j,onValueChange:M,children:[D?.map((e,t)=>(0,a.jsxs)(l.As,{className:"accord-card",value:`${t}`,ref:e=>{e?O.current.set(`${t}`,e):O.current.delete(`${t}`)},children:[(0,a.jsx)(l.$m,{className:"acord-triger",role:"button","aria-controls":`community-${t}`,"aria-expanded":"false",children:e?.title||"Accordion Title"}),["community","care"].some(e=>u?.name?.includes(e))?(0,a.jsx)(l.ub,{id:`service-content-${t}`,role:"region","aria-label":`Service category content ${e?.title||""}`,children:(0,a.jsx)("div",{className:"flex flex-col-reverse lg:flex-row gap-4 lg:gap-[94px] p-4",children:(0,a.jsx)("div",{className:"w-full flex flex-col flex-1 gap-0.5",children:e?.additionalDetails?.links?.map((e,t)=>(0,a.jsx)(m(),{href:e?.url||"",className:"primary-text add-link underline font-semibold",target:"_blank",children:e?.text||""},e?.url||t))})})}):(0,a.jsx)(l.ub,{id:`service-content-${t}`,role:"region","aria-label":`Service category content ${e?.title||""}`,children:(0,a.jsxs)("div",{className:"flex flex-col-reverse lg:flex-row gap-4 lg:gap-[94px] p-4",children:[(0,a.jsx)("div",{className:"w-full flex flex-col flex-1",children:(0,a.jsx)("div",{className:"embedded-html",dangerouslySetInnerHTML:{__html:e?.description||""}})}),!!e?.imageUrl&&(0,a.jsx)("div",{className:"w-full lg:max-w-[40%] flex items-center justify-center overflow-hidden",children:(0,a.jsx)(i.Ay,{src:e?.imageUrl?.url||"",width:458,height:345,size:"large",className:"img-fluid",priority:!1,alt:e?.imageUrl?.alt||e?.title})})]})})]},e?._id||t)),E&&(0,a.jsx)("div",{className:"accord-card opacity-50",children:(0,a.jsx)("div",{className:"py-5",children:(0,a.jsx)("div",{className:"load-more h-5"})})})]}),f>6&&(0,a.jsx)("button",{"aria-label":"list-button",className:"text-base text-[var(--vis-primary)] font-semibold mt-5 underline outline-none focus:outline-none focus:shadow-none focus:border-none",onClick:()=>{let e=!S;k(e),v(null),I?.REGULAR_CLICK({type:"button",id:"cstm-accordion",element:"more_items"}),e&&N.length<=6&&T&&$(2)},children:S?"Close Expanded List":"View All"}),S&&T&&(0,a.jsx)("div",{ref:P,className:""})]}),t?.heroImage?.[0]?.url&&(0,a.jsx)("div",{className:"flex-1 w-full hidden lg:flex items-start lg:max-w-[50%] lg:w-1/2",children:(0,a.jsx)("div",{className:"pointer-img rounded-2xl overflow-hidden w-full",children:(0,a.jsx)(i.Ay,{src:t?.heroImage?.[0]?.url||"",width:500,height:400,alt:t?.heroImage?.[0]?.alt||"pointer-img",className:"img-fluid w-full",objectFit:"cover"})})})]})})},u?.name)]})}},23944:(e,t,s)=>{s.d(t,{A:()=>v});var a=s(37876),l=s(14232),i=s(13120),r=s(76781),n=s(48230),c=s.n(n),o=s(12540),d=s(68202),p=s(69418),m=s(55128),u=s(38469);let h=e=>{let{title:t="Hours",hours:s,isActive:l,isExpanded:i=!1,onToggle:n}=e;return s&&0!==s.length?(0,a.jsxs)("div",{className:`flex flex-col justify-start items-start gap-2 flex-shrink-0 transition-all duration-300 ease-in-out ${l?"w-full md:w-auto opacity-100":"w-full md:w-0 md:opacity-0 md:overflow-hidden"}`,children:[(0,a.jsxs)("div",{className:"bg-[var(--vis-light)] md:bg-transparent px-4 py-1 md:p-0 rounded-sm flex justify-between items-center gap-2 md:gap-8 cursor-pointer md:cursor-default w-full",onClick:e=>{n&&(e.stopPropagation(),n())},children:[(0,a.jsx)("p",{className:"text-center justify-center text-[var(--vis-primary)] text-base font-semibold leading-normal",children:t}),(0,a.jsx)(r.yQ,{className:`md:hidden transition-transform duration-300 ${i?"rotate-180":""}`,size:20})]}),(0,a.jsx)("div",{className:`flex flex-col justify-start items-start gap-1 px-4 md:p-0 ${i?"flex":"hidden"} ${l?"md:flex":"md:hidden"}`,children:s?.map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)("span",{className:"whitespace-nowrap text-black text-sm font-semibold leading-relaxed",children:[e?.day," :"]}),(0,a.jsx)("span",{className:"whitespace-nowrap text-black text-sm font-semibold leading-relaxed",children:e?.time||"Closed"})]},t))})]}):null},g=e=>e&&0!==e.length?e.map(e=>{let t=e?.from?.slice(0,3)||"";e?.to&&e?.to!=="Nill"&&(t+=`-${e?.to?.slice(0,3)}`);let s="24 Hour";return e?.openingTime&&e?.closingTime&&(s=`${(0,o.IF)(e.openingTime)} - ${(0,o.IF)(e.closingTime)}`),{day:t,time:s}}):[],x=e=>Array.isArray(e)?e:Object.values(e||{});function f(e){let{branches:t=[],selected:s,loading:i=!1,onCardSelect:n,websiteData:f}=e,[b,j]=(0,l.useState)(null),v=(0,l.useRef)(null),N=s?._id||t?.[0]?._id||"",y=e=>{j(t=>t===e?null:e)},w=(0,l.useMemo)(()=>t?.findIndex(e=>e?._id===N)??-1,[t,N]);return i?(0,a.jsx)("div",{className:"max-w-screen w-full relative",children:(0,a.jsx)("div",{className:"flex justify-center items-center py-8",children:(0,a.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-[var(--vis-primary)]"})})}):t&&0!==t.length?(0,a.jsxs)("div",{className:"max-w-screen w-full relative",children:[(0,a.jsxs)("div",{className:"hidden md:flex items-center justify-end gap-2 mb-2",children:[(0,a.jsx)("button",{onClick:()=>
1{if(w>0){let e=t?.[w-1],s=e?._id;s&&(n?.(s),requestAnimationFrame(()=>{setTimeout(()=>{if(v.current){let e=v.current.querySelector(`[data-card-id="${s}"]`);e&&e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}},150)}))}},className:"slide-btn prev",disabled:w<=0,children:(0,a.jsx)(r.JG,{})}),(0,a.jsx)("button",{onClick:()=>{if(w<(t?.length||0)-1){let e=t?.[w+1],s=e?._id;s&&(n?.(s),requestAnimationFrame(()=>{setTimeout(()=>{if(v.current){let e=v.current.querySelector(`[data-card-id="${s}"]`);e&&e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}},150)}))}},className:"slide-btn next",disabled:w>=(t?.length||0)-1,children:(0,a.jsx)(r.c_,{})})]}),(0,a.jsx)("div",{ref:v,className:"md:overflow-x-auto md:max-w-screen w-full",children:(0,a.jsx)("div",{className:"flex flex-col md:flex-row gap-2",children:t?.map(e=>{let t=N===e?._id,s=(e=>{if(e?.clinicTypes&&e.clinicTypes.length>0)return e.clinicTypes;let t=x(e?.pagesAndSections),s=t?.find(e=>e?.name==="landing-page")?.sections?.["additional-details-section"]?.data;return s?.clinicType?.filter(e=>e?.enabled!==!1)||[]})(e),l=(e=>{let t=x(e?.pagesAndSections),s=t?.find(e=>e?.name==="landing-page")?.sections?.["contact-us-section"]?.data||{},a=e?.flexibleOperationHours?.enabled===!0&&e?.flexibleOperationHours?.hours&&e?.flexibleOperationHours?.hours?.length>0,l=[],i=s?.operationName||"Hours";a?l=e.flexibleOperationHours.hours.map(e=>{let t=e?.timeSlots||[],s="Closed";return t.length>0&&(s=t.map(e=>(0,o.pL)(e?.openingTime,e?.closingTime)).join(", ")),{day:e?.day?.slice(0,3)||"",time:s}}):e?.operationHours&&e?.operationHours?.length>0&&(l=g(e.operationHours));let r=[],n=s?.secondaryName||"Hours";return!a&&s?.secondaryHours&&s?.secondaryHours?.length>0&&(r=g(s.secondaryHours)),{primary:l,primaryName:i,secondary:r,secondaryName:n,isFlexible:a}})(e);return(0,a.jsxs)("div",{"data-card-id":e?._id,onClick:()=>{var t;return e?._id&&(t=e._id,void n?.(t))},className:`p-4 md:p-8 relative rounded-lg flex flex-row flex-wrap justify-start items-center overflow-hidden flex-shrink-0 transition-all duration-300 ease-in-out cursor-pointer ${t?"active bg-[var(--vis-blue-light)]":"bg-white"}`,children:[(0,a.jsxs)("div",{className:"min-w-48 md:max-w-60 w-full flex flex-col justify-start items-start flex-shrink-0 gap-4",children:[e?.logo?.fileUrl&&(0,a.jsx)("div",{className:"w-20 h-8 relative flex items-center justify-center rounded-lg overflow-hidden",children:(0,a.jsx)(u.Ay,{className:"object-contain object-left w-full h-full",src:e?.logo?.fileUrl,objectFit:"contain",alt:e?.name||"Location logo"})}),(0,a.jsxs)("div",{className:"flex flex-col justify-start items-start gap-2.5",children:[(0,a.jsx)("h4",{className:"text-left justify-center text-[var(--vis-primary)] text-lg font-bold leading-normal",children:e?.name||""}),s?.length>0&&(0,a.jsx)("div",{className:"inline-flex justify-start items-end gap-2 flex-wrap content-end",children:s?.map((e,s)=>{let l="string"==typeof e?e:e?.name||e?.label||e?.title,i=m.Lt[(e?.iconId??1)-1];return l?(0,a.jsxs)("div",{className:`px-2.5 py-1 rounded-[3px] flex justify-start items-center gap-3 text-[var(--vis-primary)] ${t?"bg-white":"bg-[var(--vis-blue-light)]"}`,children:[i?.image?.src?(0,a.jsx)(p.d,{src:i.image.src,size:14}):(0,a.jsx)(r.SO,{size:14,className:"text-white"}),(0,a.jsx)("p",{className:"justify-center text-sm font-medium leading-tight",children:l})]},s):null})}),e?.location?.address&&(0,a.jsx)("p",{className:"justify-center text-black text-base font-medium leading-relaxed",children:e?.location?.address}),e?.contactDetails?.phone&&(0,a.jsx)("p",{className:"justify-center text-black text-base font-medium leading-relaxed",children:e?.contactDetails?.phone}),e?.contactDetails?.email&&(0,a.jsx)("p",{className:"justify-center text-black text-base font-medium leading-relaxed",children:e?.contactDetails?.email})]})]}),l.primary?.length>0&&(0,a.jsx)("div",{className:"w-full md:w-fit flex flex-col md:flex-row gap-6 pt-6 md:pt-0 pl-0 md:pl-6",children:(0,a.jsx)(h,{title:l.primaryName,hours:l.primary,isActive:t,isExpanded:b===`${e?._id}-primary`,onToggle:()=>e?._id&&y(`${e._id}-primary`)})}),!l.isFlexible&&l.secondary?.length>0&&(0,a.jsx)("div",{className:"w-full md:w-fit flex flex-col md:flex-row gap-6 pt-6 md:pt-0 pl-0 md:pl-6",children:(0,a.jsx)(h,{title:l.secondaryName,hours:l.secondary,isActive:t,isExpanded:b===`${e?._id}-secondary`,onToggle:()=>e?._id&&y(`${e._id}-secondary`)})}
1),e?.slug&&(0,a.jsx)(c(),{href:d.W_.enrichRoute(f,"location",e?.slug),onClick:e=>e.stopPropagation(),className:"w-8 h-8 p-0.5 left-auto right-4 top-4 absolute rounded flex justify-center items-center overflow-hidden border border-solid border-[var(--vis-primary)] bg-transparent hover:bg-[var(--vis-primary)] hover:text-white cursor-pointer transition duration-300 ease-in-out",children:(0,a.jsx)(r.Gr,{size:18})})]},e?._id)})})})]}):null}var b=s(37659),j=s(16601);function v(e){let{data:t,websiteData:s}=e,{multiSiteGroupChildren:r,loading:n,fetchMultiSiteGroupChildren:c}=(0,b.i5)(),[o,d]=(0,l.useState)(null),p=(0,l.useRef)(!1),m=(0,l.useMemo)(()=>(r?.results||[]).filter(e=>e?._id!==s?._id),[r?.results,s?._id]);(0,l.useEffect)(()=>{if(p.current||n?.isLoading)return;let e=s?.slug,t=s?.status?.toLowerCase()||"draft",a=s?.category,l=s?.folderId?._id;!r?.results?.length&&e&&"MULTI_WEBSITE_GROUP"===a&&(console.log("[HousePawsMap] Triggering fetch with folderId:",l),p.current=!0,c(e,t,l))},[s?.slug,s?.status,s?.category,s?.folderId?._id]),(0,l.useEffect)(()=>{p.current=!1},[s?._id]),(0,l.useEffect)(()=>{m?.length>0&&!o&&d(m[0])},[m,o]),(0,l.useEffect)(()=>{d(null)},[s?._id]);let u=(0,l.useMemo)(()=>o?._id&&o?.location?.latitude&&o?.location?.longitude?{_id:o._id,name:o?.name||"",location:{latitude:o.location.latitude,longitude:o.location.longitude,address:o?.location?.address||""},slug:o?.slug}:null,[o]),h=(0,l.useCallback)(e=>{let t=m?.find(t=>t?._id===e?._id);t&&d(t)},[m]),g=(0,l.useCallback)(e=>{let t=m?.find(t=>t?._id===e);t&&d(t)},[m]),x=(0,l.useMemo)(()=>u?[u]:[],[u]),v=(0,l.useMemo)(()=>{let e=Array.isArray(s?.pagesAndSections)?s.pagesAndSections:Object.values(s?.pagesAndSections||{}),t=e?.find(e=>e?.name=="landing-page")?.sections?.["contact-us-section"]?.data;return t?.heading||"Housepaws Locations:"},[s?.pagesAndSections]);return s?.isMultiSiteChild?(0,a.jsx)(j.default,{websiteData:s,data:t}):(0,a.jsx)("section",{className:"map-section py-[50px] lg:py-[60px] xl:py-20",children:(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)("div",{className:"map-block relative",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"w-full md:w-fit p-6 bg-[var(--vis-primary)] md:rounded-br-[43px] shadow-[0px_1px_4px_-1px_rgba(0,0,0,0.30)] absolute top-0 left-0 z-10",children:(0,a.jsx)("p",{className:"justify-center text-white text-2xl font-bold leading-normal",children:v})}),(0,a.jsx)(i.A,{locations:x,className:"w-full",height:700,zoom:13,onMarkerClick:h,websiteData:s,selectedLocation:u,serviceProvidingRadius:o?.serviceProvidingRadius})]}),(0,a.jsx)("div",{className:"md:absolute md:top-auto md:bottom-0 md:left-0 md:right-0 w-full p-0 md:p-2",children:(0,a.jsx)(f,{branches:m,selected:o,loading:n?.isLoading,onCardSelect:g,websiteData:s})})]})})})}},36524:(e,t,s)=>{s.r(t),s.d(t,{default:()=>r});var a=s(37876);s(14232);var l=s(55128),i=s(69418);function r(e){let{banner:t}=e;return(0,a.jsx)("div",{className:"promo_nav",children:(0,a.jsxs)("div",{className:"promo_nav_content",children:[(0,a.jsx)("div",{className:"promo_icon",children:(0,a.jsx)(i.d,{src:l.Lt[Number(t?.content?.icon||"1")-1]?.image?.src,size:15,colorInherit:!0})}),(0,a.jsx)("div",{className:"promo_text",children:t?.content?.text||""})]})})}},45664:(e,t,s)=>{s.d(t,{A:()=>r});var a=s(37876),l=s(89099),i=s(14232);function r(){let e=(0,l.useRouter)(),[t,s]=(0,i.useState)("");return(0,i.useEffect)(()=>{s(e?.asPath?.split("/")?.pop()||"")},[e]),(0,a.jsx)("div",{"analytics-track-pagetype":t})}},52295:(e,t,s)=>{s.d(t,{A:()=>u});var a=s(37876),l=s(77328),i=s.n(l),r=s(38469),n=s(14232),c=s(594),o=s(10275),d=s(37659),p=s(55128),m=s(98673);function u(e){let{meta:t,icon:s,platformScripts:l,gtmScripts:u,websiteData:h,currentPage:g,detailPage:x,detailData:f,seoConfig:b,oneTrustEnabled:j=!1,isUvc:v=!1}=e,N=t?.title||t?.tags||"UVC",y=t?.description||"United Veterinary Care",w=t?.icon||s||c.A?.src,C=(t?.tags||"")?.split(",").map(e=>e.trim())||[],E=b?.meta||b?.openGraph||b?.twitter||b?.facebook||b?.schema||b?.advanced,_=!E&&b&&"object"==typeof b&&!Array.isArray(b)&&Object.keys(b).some(e=>e.includes(":")||e.includes("_")||"string"==typeof b[e]||"number"==typeof b[e]||"boolean"==typeof b[e]),T=_?Object.fromEntries(Object.entries(b).filter(e=>{let[t,s]=e;return null!=s&&("string"==typeof s?""!==s.trim():"number"==typeof s||"boolean"==typeof s)})):{};
1console.log("[SetPageHead] SEO Config Analysis:",{seoConfig:b,hasNestedFormat:E,isFlatFormat:_,flatFormatKeys:Object.keys(T),flatFormatData:T,seoConfigType:typeof b,seoConfigKeys:b?Object.keys(b):[]});let A=b?.meta||{},S=b?.openGraph||{},k=b?.twitter||{},P=b?.facebook||{},O=b?.schema||{},I=b?.advanced||{},L=I?.canonical||A?.canonical||T?.canonical||t?.additionalDetails?.canonical||"",D=(String(L).match(/href="([^"]*)"/)?.[1]||String(L)).trim(),$=[];Array.isArray(O)?$=O.filter(e=>e&&"object"==typeof e):O&&"object"==typeof O&&($=O["@context"]||O["@type"]?[O]:Object.values(O).map(e=>{if(!e)return null;if("object"==typeof e)return e;if("string"==typeof e){let t=e.trim();if(!t)return null;try{let e=JSON.parse(t);return e&&"object"==typeof e?e:null}catch{}}return null}).filter(Boolean));let R=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object.entries(e).filter(e=>{let[t,s]=e;return"canonical"!==t.toLowerCase()&&s&&String(s).trim()}).map(e=>{let[s,l]=e,i=s.toLowerCase(),r=String(l).trim();if(!r)return null;if(t||i.startsWith("og:")||i.startsWith("property:")){let e=i.startsWith("property:")?i.replace("property:",""):i;return(0,a.jsx)("meta",{property:e,content:r},`prop-${s}`)}return(0,a.jsx)("meta",{name:s,content:r},`name-${s}`)}).filter(Boolean)},M=null;try{M=(0,d.bo)()}catch{}let G=(0,n.useRef)([]),U=(0,n.useRef)([]);(0,n.useEffect)(()=>{let e=u?.results?.scripts?.length>0?u:M?.scripts?.general?.length>0?{results:{scripts:M.scripts.general}}:u;console.log("âââââââââââââââââââââââââââââââââââââââââââââââââââââââ"),console.log("\uD83D\uDCE6 SET_PAGE_HEAD COMPONENT MOUNTED"),console.log("âââââââââââââââââââââââââââââââââââââââââââââââââââââââ"),console.log("oneTrustEnabled prop:",j),console.log("typeof oneTrustEnabled:",typeof j),console.log("platformScripts count:",l?.length||0),console.log("gtmScripts (prop) count:",u?.results?.scripts?.length||0),console.log("gtmScripts (context) count:",M?.scripts?.general?.length||0),console.log("finalGtmScripts count:",e?.results?.scripts?.length||0),console.log("âââââââââââââââââââââââââââââââââââââââââââââââââââââââ\n"),window.dataLayer||(window.dataLayer=[]);let t=e=>e.includes("googletagmanager.com/gtag/js")||e.includes("gtag(")||e.includes("window.dataLayer"),s=e=>e?._id===p.jw||e?.name===p.tC,a=e=>{if(!e||"string"!=typeof e)return void console.warn("Invalid script content provided to injectGtagScripts");try{let t=new DOMParser().parseFromString(e,"text/html"),s=Array.from(t.querySelectorAll("script")),a=[],l=[];if(s.forEach(e=>{let t=(e.getAttribute("src")||"").trim();if(t.includes("googletagmanager.com/gtag/js"))a.push({src:t,type:e.getAttribute("type")||"",className:e.getAttribute("class")||"",async:e.hasAttribute("async")});else{let t=(e.textContent||"").trim(),s=(e=>{if(!e||!e.includes("&"))return e;let t=document.createElement("textarea"),s=e;for(t.innerHTML=s;t.value!==s;)s=t.value,t.innerHTML=s;return s})(t).replace(/\\\[/g,"[").replace(/\\\]/g,"]").trim();s&&(s.includes("gtag(")||s.includes("dataLayer"))&&l.push({content:s,type:e.getAttribute("type")||"",className:e.getAttribute("class")||""})}}),console.log("[injectGtagScripts] Parsed:",{libraryScripts:a.length,configScripts:l.length}),a.length>0&&!document.querySelector("script[data-consent-defaults]")){let e=document.createElement("script");e.type="text/javascript",e.setAttribute("data-consent-defaults","true"),e.textContent="window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('consent', 'default', {\n 'analytics_storage': 'denied',\n 'ad_storage': 'denied',\n 'ad_user_data': 'denied',\n 'ad_personalization': 'denied',\n 'wait_for_update': 500\n});",document.head.appendChild(e),U.current.push(e),console.log("[injectGtagScripts] Consent Mode v2 defaults injected (all denied)")}let i=()=>
1{l.forEach(e=>{let{content:t,className:s}=e;try{if(!t.trim())return;if(Array.from(document.querySelectorAll('script[data-script-type="gtag-config"]')).some(e=>e.textContent?.trim()===t.trim()))return void console.log("[injectGtagScripts] Skipping duplicate config script");let e=document.createElement("script");e.type="text/javascript",s&&(e.className=s),e.textContent=t,e.setAttribute("data-injected","true"),e.setAttribute("data-script-type","gtag-config"),console.log(`[injectGtagScripts] Config: class=${s||"(none)"}, content=${t.substring(0,60)}...`);try{document.head.appendChild(e),U.current.push(e)}catch(e){console.warn("Skipping gtag config script (invalid content):",e)}}catch(e){console.error("Error injecting gtag config script:",e)}})},r=[];if(a.forEach(e=>{let{src:t,className:s,async:a}=e;try{if(document.querySelector(`script[src="${CSS.escape(t)}"]`))return}catch{}try{let e=document.createElement("script");e.src=t,a&&(e.async=!0),s&&(e.className=s),e.setAttribute("data-injected","true"),e.setAttribute("data-script-type","gtag-library"),console.log(`[injectGtagScripts] Library: src=${t}, class=${s||"(none)"}`),document.head.appendChild(e),U.current.push(e),r.push(e)}catch(e){console.error("Error injecting gtag library script:",e,{src:t})}}),0===r.length)i();else{let e=0,t=()=>{++e===r.length&&i()};r.forEach(e=>{e.addEventListener("load",t),e.addEventListener("error",t)})}}catch(e){console.error("Error parsing gtag scripts:",e)}},i=e=>{if(!e||"string"!=typeof e)return void console.warn("Invalid script content provided to injectRegularScript");try{new DOMParser().parseFromString(e,"text/html").querySelectorAll("script").forEach(e=>{try{let t=document.createElement("script"),s=e.getAttribute("type")||"",a=e.getAttribute("class")||"";t.type=s&&"text/plain"!==s?s:"text/javascript",a&&(t.className=a),e.hasAttribute("async")&&(t.async=!0),e.hasAttribute("defer")&&(t.defer=!0);let l=(e.getAttribute("src")||"").trim();if(l)try{new URL(l,window.location.href),t.src=l}catch{console.warn("Invalid script src URL:",l);return}else{let s=(e.textContent||"").trim();if(!s)return;t.textContent=s}if(!t.src&&(!t.textContent||!t.textContent.trim()))return;t.setAttribute("data-injected","true"),t.setAttribute("data-script-type","regular");try{(document.body||document.head).appendChild(t),U.current.push(t)}catch(e){console.warn("Skipping script injection (invalid content):",e)}}catch(e){console.error("Error injecting regular script:",e)}})}catch(e){console.error("Error parsing regular scripts:",e)}},r=e?.results?.scripts||[];console.log("[Scripts] Site:",v?"UVC":"NON-UVC");let n=new Set;return console.log(`[Scripts] PLATFORM scripts: ${(l||[]).length} total`),(l||[]).forEach(e=>{let l=e?.scriptContent,r=e?.type,c=e?.additionalDetails?.enabled,o=e?.name;("platform_onetrust"!==r||s(e))&&l?.trim()&&!1!==c&&(n.add(l.trim()),s(e)?window.clarity?console.log(" [Platform] Microsoft Clarity: already initialized, skipping"):(console.log(` [Platform] Microsoft Clarity: ${o}`),i(l)):t(l)?(console.log(` [Platform] GTM: ${o}`),a(l)):(console.log(` [Platform] Regular: ${o}`),i(l)))}),console.log(`[Scripts] WEBSITE scripts: ${r.length} total`),r.forEach(e=>{let l=e?.scriptContent,r=e?.additionalDetails?.enabled,c=e?.name||"GTM";if(!1!==r&&l?.trim()){if(n.has(l.trim()))return void console.log(` [Website] SKIP (duplicate): ${c}`);s(e)?window.clarity?console.log(" [Website] Microsoft Clarity: already initialized, skipping"):(console.log(` [Website] Microsoft Clarity: ${c}`),i(l)):t(l)?(console.log(` [Website] GTM: ${c}`),a(l)):(console.log(` [Website] Regular: ${c}`),i(l))}}),console.log("âââââââââââââââââââââââââââââââââââââââââââââââââââââââ"),console.log("â
SCRIPT INJECTION COMPLETE"),console.log("âââââââââââââââââââââââââââââââââââââââââââââââââââââââ\n"),()=>{console.log("[Scripts] Component unmounting - keeping scripts for persistence")}},[M?.scripts?.general,l,v]);let B=(0,o.HI)(h,g,x,f),F=Array.isArray(B)?[...B,...$]:$;(0,n.useEffect)(()=>
1(G.current.forEach(e=>{e.parentNode&&e.parentNode.removeChild(e)}),G.current=[],Array.isArray(F)&&F.forEach(e=>{if(e&&"object"==typeof e)try{let t=document.createElement("script");t.type="application/ld+json",t.setAttribute("data-schema-injected","true"),t.text=JSON.stringify(e),document.head.appendChild(t),G.current.push(t)}catch(e){console.error("Error injecting schema script:",e)}}),()=>{G.current.forEach(e=>{e.parentNode&&e.parentNode.removeChild(e)}),G.current=[]}),[F]);let W=R(A,!1),z=R(S,!0),H=R(k,!1),V=R(P,!1),K=(e=>{let t=[];return Object.entries(e).forEach(e=>{let[s,l]=e;if(!l||!String(l).trim())return;let i=s.toLowerCase(),r=String(l).trim();if("canonical"!==i){if(i.startsWith("hreflang:")){let e=i.replace("hreflang:","");t.push((0,a.jsx)("link",{rel:"alternate",hrefLang:e,href:r},`hreflang-${e}`));return}if(i.startsWith("preconnect:")){let e=i.replace("preconnect:","");t.push((0,a.jsx)("link",{rel:"preconnect",href:r},`preconnect-${e}`));return}if(i.startsWith("meta:")){let e=i.replace("meta:","");t.push((0,a.jsx)("meta",{name:e,content:r},`advanced-meta-${s}`));return}t.push((0,a.jsx)("meta",{name:s,content:r},`advanced-${s}`))}}),t})(I),q=[];Object.keys(T).length>0&&Object.entries(T).forEach(e=>{let[t,s]=e;if(null==s||"string"==typeof s&&!s.trim())return;let l=t.toLowerCase(),i="string"==typeof s?s.trim():String(s);if("canonical"!==l)if(l.startsWith("og:"))q.push((0,a.jsx)("meta",{property:t,content:i},`flat-og-${t}`));else if(l.startsWith("twitter:"))q.push((0,a.jsx)("meta",{name:t,content:i},`flat-twitter-${t}`));else if(l.startsWith("facebook:")||l.startsWith("fb:")){let e=t.replace(/^(facebook:|fb:)/,"og:");q.push((0,a.jsx)("meta",{property:e,content:i},`flat-facebook-${t}`))}else q.push((0,a.jsx)("meta",{name:t,content:i},`flat-other-${t}`))});let J=T["og:title"]||T.og_title,Q=T["og:description"]||T.og_description,X=T["twitter:title"]||T.twitter_title,Y=T["twitter:description"]||T.twitter_description,Z=T["facebook:title"]||T.facebook_title||T["fb:title"]||T.fb_title,ee=T["facebook:description"]||T.facebook_description||T["fb:description"]||T.fb_description;Object.keys(T).length>0&&console.log("[SetPageHead] Flat format data detected:",T);let et=Object.keys(T).length>0;return(0,a.jsxs)(i(),{children:[(0,a.jsx)("title",{children:N}),(0,a.jsx)("meta",{name:"description",content:y}),(0,a.jsx)("meta",{property:"og:title",content:et&&(J??Z)||S?.["og:title"]||S?.title||A?.title||N}),(0,a.jsx)("meta",{property:"og:description",content:et&&(Q??ee)||S?.["og:description"]||S?.description||A?.description||y}),(0,a.jsx)("meta",{name:"twitter:title",content:et&&X||k?.["twitter:title"]||k?.title||A?.title||N}),(0,a.jsx)("meta",{name:"twitter:description",content:et&&Y||k?.["twitter:description"]||k?.description||A?.description||y}),(0,a.jsx)("link",{rel:"icon",href:(0,r.xw)(w,"thumbnail")}),D&&(0,a.jsx)("link",{rel:"canonical",href:D}),P?.["facebook-domain-verification"]?(0,a.jsx)("meta",{name:"facebook-domain-verification",content:P["facebook-domain-verification"]}):(0,m.T8)(window.location.hostname)||v?(0,a.jsx)("meta",{name:"facebook-domain-verification",content:"308cvuvnvpzlva2gg553nm51fzj7h5"}):(0,a.jsx)("meta",{name:"facebook-domain-verification",content:"f0s60144x3ayx3v9pxyb7a3tzlrwxy"}),A?.keywords?String(A.keywords).split(",").map(e=>e.trim()).filter(Boolean).map((e,t)=>(0,a.jsx)("meta",{name:"keywords",content:e},`keyword-${t}`)):C.map((e,t)=>(0,a.jsx)("meta",{name:"keywords",content:e},`keyword-${t}`)),W,z,H,V,K,q]})}},62731:(e,t,s)=>{s.d(t,{Y:()=>u});var a=s(37876);s(14232);var l=s(67688),i=s(36524),r=s(1374),n=s(18847),c=s.n(n);let o={NotificationBanner:c()(()=>Promise.resolve().then(s.bind(s,36524)),{loadableGenerated:{webpack:()=>[36524]}}),PopUpBanner:c()(()=>Promise.resolve().then(s.bind(s,1374)),{loadableGenerated:{webpack:()=>[1374]}}),Type1SingleEmbedded:c()(()=>s.e(4804).then(s.bind(s,94804)),{loadableGenerated:{webpack:()=>[94804]}}),Type2SingleEmbedded:c()(()=>s.e(8585).then(s.bind(s,88585)),{loadableGenerated:{webpack:()=>[88585]}}),Type3SingleEmbedded:c()(()=>s.e(9449).then(s.bind(s,79449)),{loadableGenerated:{webpack:()=>[79449]}}),Type4SingleEmbedded:c()(()=>Promise.all([s.e(2076),s.e(2682)]).then(s.bind(s,92682)),{loadableGenerated:{webpack:()=>[92682]}}),Type5SingleEmbedded:c()(()=>s.e(3515).then(s.bind(s,43515)),{loadableGenerated:{webpack:()=>[43515]}}),Type1DoubleEmbedded:c()(()=>Promise.all([s.e(2076),s.e(3889)]).then(s.bind(s,33889)),{loadableGenerated:{webpack:()=>[33889]}}),Type2DoubleEmbedded:c()(()=>Promise.all([s.e(2076),s.e(4364)]).then(s.bind(s,1983)),{loadableGenerated:{webpack:()=>[1983]}}),Type3DoubleEmbedded:c()(()=>Promise.all([s.e(2076),s.e(1591)]).then(s.bind(s,81591)),{loadableGenerated:{webpack:()=>[81591]}}),Type4DoubleEmbedded:c()(()=>Promise.all([s.e(2076),s.e(4596)]).then(s.bind(s,84596)),{loadableGenerated:{webpack:()=>[84596]}})};function d(e){let{banner:t,websiteData:s,onClick:i}=e,r=l.O[l.V.EMBEDDED][t?.content?.[0]?.bannerLayoutId||"1"];if(!r)return null;let n=o[r];return(0,a.jsx)(n,{banner:t,websiteData:s,onClick:i})}var p=s(19909),m=s(51930);let u=e=>{let{banners:t,currentPage:s,position:n,type:c,websiteData:o}=e,{TriggerEvents:u}=(0,m.useCarterAnalytics)(),h=e=>{u?.CTA_CLICK({...e,position:c===l.V.EMBEDDED?({1:"header",2:"middle",4:"footer"})[n||1]||"header":void 0})},g=t?.filter(e=>{switch(e?.type){case l.V.POPUP:return c===l.V.POPUP&&e?.triggerPage===s;case l.V.NOTIFICATION:return c===l.V.NOTIFICATION;case l.V.EMBEDDED:return c===l.V.EMBEDDED&&(e?.triggerPage===p.Ho[s]||
1!e?.triggerPage&&("LANDING_PAGE"===s||s===p.Nb.LANDING_PAGE))&&e?.positions?.includes(n||0);default:return!1}});return console.log(g?.length),(0,a.jsx)(a.Fragment,{children:g?.map((e,t)=>(0,a.jsx)("div",{children:(e=>{switch(e.type){case l.V.NOTIFICATION:return(0,a.jsx)(i.default,{banner:e},e._id);case l.V.POPUP:return(0,a.jsx)(r.default,{banner:e,websiteData:o,onClick:h},e._id);case l.V.EMBEDDED:return(0,a.jsx)(d,{banner:e,websiteData:o,onClick:h},e._id);default:return null}})(e)},`banner_${t}`))})}},67688:(e,t,s)=>{s.d(t,{O:()=>l,V:()=>a});let a={NOTIFICATION:"NOTIFICATION",POPUP:"POPUP",EMBEDDED:"EMBEDDED"},l={[a.NOTIFICATION]:{1:"Notification"},[a.POPUP]:{1:"Popup"},[a.EMBEDDED]:{1:"Type1SingleEmbedded",2:"Type2SingleEmbedded",3:"Type3SingleEmbedded",4:"Type4SingleEmbedded",5:"Type5SingleEmbedded",6:"Type1DoubleEmbedded",7:"Type2DoubleEmbedded",8:"Type3DoubleEmbedded",9:"Type4DoubleEmbedded"}}},71359:(e,t,s)=>{s.d(t,{A:()=>o});var a=s(37876),l=s(14232),i=s(38469),r=s(85562),n=s(55128),c=s(84644);function o(e){let{data:t,website:s}=e,o=(0,l.useRef)(null),d=(t?.flexibleServices||[])?.filter(e=>e?.enabled);return(0,a.jsx)("section",{className:"bg-[var(--vis-light)] py-[50px] lg:py-[60px] xl:py-20",children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsxs)("div",{className:"relative flex items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"heading-wrap max-w-[1022px] mb-12",children:[(0,a.jsx)("h2",{className:"heading",children:t?.heading||"Flexible Services"}),(0,a.jsx)("p",{className:"heading-desc",children:t?.subHeading||"HousePaws offers mobile, in-home and hospital care. We bring top quality veterinary care to the convenience and comfort of your own home. "})]}),(0,a.jsxs)("div",{className:"hidden md:flex items-center justify-end gap-2 mb-2",children:[(0,a.jsx)("button",{onClick:()=>{o.current&&o.current.scrollBy({left:-364,behavior:"smooth"})},className:"slide-btn prev",children:(0,a.jsx)(r.J,{})}),(0,a.jsx)("button",{onClick:()=>{o.current&&o.current.scrollBy({left:364,behavior:"smooth"})},className:"slide-btn next",children:(0,a.jsx)(r.c,{})})]})]}),(0,a.jsx)("div",{ref:o,className:"relative overflow-hidden w-full",children:(0,a.jsx)("div",{className:"flex flex-col md:flex-row gap-6",children:d.map((e,t)=>(0,a.jsxs)("div",{className:"min-w-full sm:min-w-[340px] w-full p-4 bg-white rounded-lg flex flex-col items-start gap-4 overflow-hidden",children:[(0,a.jsx)("div",{className:"",children:(0,a.jsx)(i.$E,{className:"w-full h-full object-cover",src:n.Lt[e.iconId-1]?.image?.src||c.A?.src,alt:"",width:76,height:76,isUrl:!1})}),(0,a.jsx)("h4",{className:"text-[var(--vis-primary)] text-xl font-bold",children:e.heading}),(0,a.jsx)("p",{className:"text-[var(--vis--storm-gray)] text-base font-medium text-ellipsis overflow-hidden w-full",children:e.body})]},t))})})]})})}},77726:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(37876),l=s(14232),i=s(68318),r=s(78037);function n(e){let{error:t,websiteData:s,type:n,children:c}=e,[o,d]=(0,l.useState)(!1),[p,m]=(0,l.useState)("general");return((0,l.useEffect)(()=>{let e=!!t,a=!s||!s?.name||!s?.slug,l="published"===n&&s?.status!=="PUBLISHED";console.log("[ErrorRedirectWrapper] Checking conditions:",{hasError:e,isInvalidWebsite:a,isUnpublished:l,error:t,websiteDataExists:!!s,websiteName:s?.name,websiteSlug:s?.slug,websiteStatus:s?.status,type:n}),(e||a||l)&&(console.log("[ErrorRedirectWrapper] Triggering redirect due to:",{hasError:e,isInvalidWebsite:a,isUnpublished:l}),m((0,r.Po)(t,s,n)),d(!0))},[t,s,n]),o)?(0,a.jsx)(i.A,{errorType:p,delay:3e3}):(0,a.jsx)(a.Fragment,{children:c})}},78496:(e,t,s)=>{s.d(t,{A:()=>c});var a=s(37876),l=s(14232),i=s(278),r=s(38469),n=s(19909);function c(e){let{data:t,websiteData:s,sectionData:c,page:o}=e,d=o==n.Nb.ACCREDITATION_PAGE?"Pointers4":"Faqs",p=(0,l.useMemo)(()=>new i.A,[]),m=c?.results?.templateSpecificData||[],u=c?.pages||1,h=c?.total||0,[g,x]=(0,l.useState)(m),[f,b]=(0,l.useState)(1),[j,v]=(0,l.useState)(!1),[N,y]=(0,l.useState)(u>1),[w,C]=(0,l.useState)(!1),E=(0,l.useRef)(null);(0,l.useEffect)(()=>{m&&m.length>0&&0===g.length&&x(m)},[m,g.length]);let _=w?g:g?.slice(0,6),T=(0,l.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;try{v(!0);let t=await p.GetWebsiteEntityData({websiteIdOrSlug:s?._id||s?.slug,entityType:"templateSpecificData",pagination:{page:e,limit:10,sort:{field:"priority",direction:"ASC"},filters:{conditions:[{field:"type",operator:"EQ",value:d}]}},siteStatus:(s?.status||"DRAFT")?.toUpperCase()}),a=t?.results?.templateSpecificData;a?.length?(x(e=>[...e,...a]),b(e),e>=(t?.pages||u)&&y(!1)):y(!1)}catch(e){y(!1),console.error("Error fetching certificates:",e)}finally{v(!1)}},[p,s?._id,s?.slug,s?.status,u,d]),A=(0,l.useCallback)(e=>{e[0].isIntersecting&&w&&N&&!j&&T(f+1)},[w,N,j,f,T]);return(0,l.useEffect)(()=>{let e=new IntersectionObserver(A,{root:null,rootMargin:"20px",threshold:0});return E.current&&e.observe(E.current),()=>e.disconnect()}
1,[A]),(0,a.jsx)("section",{className:"inner-banner py-[50px] lg:py-[60px] xl:py-20 bg-white",children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsxs)("div",{className:"heading-wrap",children:[(0,a.jsx)("h2",{className:"heading",children:t?.heading||"The Suncoast Veterinary Emergency Team is now RECOVER Rescuer Certified!"}),(0,a.jsx)("div",{className:"embedded-html heading-desc",dangerouslySetInnerHTML:{__html:t?.subheading||""}})]}),(0,a.jsxs)("div",{className:"space-y-8",children:[_?.map((e,t)=>(0,a.jsxs)("div",{className:"brand-container flex flex-col gap-4",children:[(0,a.jsx)("div",{className:"brand-img",children:(0,a.jsx)(r.$E,{src:e?.additionalDetails?.image?.[0]?.url||e?.image?.[0]?.url||"",width:"300",height:"200",alt:e?.title||"certificate image",className:"brand-logo object-left",objectFit:"contain"})}),(0,a.jsx)("h4",{className:"text-xl text-[var(--vis-primary)]",children:e?.title||e?.headline||"Certificate name"}),(0,a.jsx)("div",{className:"embedded-html page-desc",dangerouslySetInnerHTML:{__html:e?.description||e?.text||""}})]},e?._id||t)),j&&(0,a.jsx)("div",{className:"flex justify-center py-4",children:(0,a.jsx)("div",{className:"animate-pulse text-[var(--vis-primary)]",children:"Loading more..."})})]}),h>6&&(0,a.jsx)("button",{"aria-label":"list-button",className:"text-base text-[var(--vis-primary)] font-semibold mt-5 underline outline-none focus:outline-none focus:shadow-none focus:border-none",onClick:()=>{let e=!w;C(e),e&&N&&T(2)},children:w?"Close Expanded List":"View All"}),w&&N&&(0,a.jsx)("div",{ref:E,className:"h-1"})]})})}},83074:(e,t,s)=>{s.d(t,{A:()=>A});var a=s(37876),l=s(13120),i=s(23623),r=s(12540),n=s(14776),c=s(24506),o=s(48230),d=s.n(o),p=s(14232),m=s(51930),u=s(278),h=s(68202),g=s(74944),x=s(98673),f=s(11198),b=s(69418);s(86932),s(58485);var j=s(13194),v=s(84022),N=s(38469);let y={ER:"Emergency",ERP:"Speciality ER",GP:"General Practice",SPEC:"Speciality",MULTI_WEBSITE_GROUP:"Multi-Site"};function w(){return(0,a.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M5.45003 3.01526C6.27356 1.53845 6.685 0.800049 7.30054 0.800049C7.91607 0.800049 8.32751 1.53845 9.15104 3.01526L9.36424 3.39747C9.59823 3.81737 9.71523 4.02732 9.89723 4.16577C10.0792 4.30422 10.3067 4.35557 10.7617 4.45827L11.1751 4.55187C12.7741 4.91393 13.5729 5.09463 13.7633 5.70628C13.9531 6.31728 13.4084 6.95494 12.3184 8.2296L12.0363 8.55915C11.7269 8.9212 11.5716 9.10255 11.502 9.32615C11.4325 9.5504 11.4559 9.79221 11.5027 10.2752L11.5456 10.7152C11.71 12.4163 11.7926 13.2665 11.2947 13.6441C10.7968 14.0218 10.048 13.6773 8.55176 12.9883L8.16372 12.8102C7.73863 12.6139 7.52608 12.5164 7.30054 12.5164C7.07499 12.5164 6.86245 12.6139 6.43736 12.8102L6.04997 12.9883C4.55305 13.6773 3.80427 14.0218 3.30703 13.6448C2.80849 13.2665 2.89104 12.4163 3.05549 10.7152L3.09839 10.2758C3.14518 9.79221 3.16858 9.5504 3.09839 9.3268C3.02949 9.10255 2.87414 8.9212 2.56475 8.5598L2.28266 8.2296C1.19263 6.95559 0.647943 6.31793 0.837739 5.70628C1.02753 5.09463 1.82767 4.91327 3.42663 4.55187L3.84002 4.45827C4.29436 4.35557 4.5212 4.30422 4.70385 4.16577C4.88649 4.02732 5.00284 3.81737 5.23684 3.39747L5.45003 3.01526Z",fill:"#FFC107",stroke:"#FFC107",strokeWidth:"1.6"})})}function C(e){let{branch:t,isActive:s,onClick:l,websiteData:r,onCallClick:n}=e;return(0,a.jsx)("div",{className:`address-wrpr ${s?"active":""}`,onClick:l,children:(0,a.jsxs)("div",{className:"hospital-map-card",children:[(0,a.jsx)("h5",{className:"hos-name",children:t?.name}),t?.googleReviews>0&&(0,a.jsxs)("div",{className:"review-wrpr-row",children:[(0,a.jsx)("span",{className:"star-count",children:t?.googleReviews?.totalStars||"4.5"}),(0,a.jsx)("div",{className:"hos-star-wrpr",children:Array.from({length:parseInt(t?.googleReviews?.totalStars||4,10)}).map((e,t)=>(0,a.jsx)("span",{className:"star",children:(0,a.jsx)(w,{})},t))}),(0,a.jsxs)("p",{className:"hos-review-count",children:["(",t?.googleReviews?.totalReviews||"12345",")"]})]}),t?.location?.address!=="MULTI_SITE_WEBSITE_GROUP_LOCATION"&&(0,a.jsx)("p",{className:"hos-address",children:(0,a.jsx)(i.D,{address:t?.location?.address})}),(0,a.jsxs)("div",{className:"pet-type-wrpr",children:[(0,a.jsx)("span",{className:"pet-icon",children:(0,a.jsx)(c.OJ,{size:16})}),t?.pets?.slice(0,3)?.map((e,s)=>(0,a.jsxs)("div",{className:"pets-name",children:[(0,a.jsx)("span",{children:e?.name}),s<Math.min(t.pets.length,3)-1&&(0,a.jsx)("span",{children:","})]},s)),t?.pets?.length>3&&(0,a.jsxs)("span",{className:"selected-card-text count",children:["+",t.pets.length-3]})]})]})})}function E(e){let{selected:t,websiteData:s,onBack:l,onCallClick:r,className:n,baseUrl:o,isUvc:p}=e,m=t?.pagesAndSections?.["landing-page"]?.sections?.["hero-section"]?.data?.heroImage,u=encodeURIComponent(t?.location?.address||""),g=`https://www.google.com/maps/search/?api=1&query=${u}`;return(0,a.jsxs)("div",{className:`address-detail-wrpr ${n||""}`,children:[(0,a.jsxs)("div",{className:"location-map-wrpr",children:[(0,a.jsx)("button",{className:"close-btn",onClick:l,children:(0,a.jsx)(c.X,{})}),m?.length>1?(0,a.jsx)(v.eB,{options:{type:"fade",perPage:1,pagination:!0,arrows:!1,autoplay:!1,loop:!0},children:m.map((e,s)=>(0,a.jsx)(v.Nn,{className:"sel-hero-img",children:(0,a.jsx)(N.$E,{src:e?.url,alt:e?.alt||`${t?.name} ${s+1}`,className:"w-full h-full object-cover"})},s))}):m?.[0]?.url?(0,a.jsx)("div",{className:"sel-hero-img",children:(0,a.jsx)(N.$E,{src:m[0].url,alt:m[0].alt||t?.name||"Hospital",className:"w-full h-full object-cover"})}):(0,a.jsx)("div",{className:"sel-hero-img fallback",children:(0,a.jsx)(c.WX,{size:48,className:"text-[var(--vis-primary,#9ca3af)]"})})]}),(0,a.jsx)("div",{className:"card-content-wrpr",children:(0,a.jsxs)("div",{className:"sel-card-content",children:[(0,a.jsxs)("div",{className:"sel-card-top",children:[(0,a.jsxs)("div",{className:"hos-name-type",children:[(0,a.jsx)("h4",{className:"hos-name lg",children:t?.name||"Allision Lane Hospital"}),(0,a.jsx)("p",{className:`selected-hos-type ${t?.templateName?.toLowerCase()}`,children:y[t?.templateName]||t?.templateName})]}),(0,a.jsx)("div",{className:"map-link",children:(0,a.jsx)(d(),{href:g,target:"_blank",className:"map-arrow-icon",children:(0,a.jsx)(b.d,{src:f.A.src,colorInherit:!0,size:24})})})]}),(0,a.jsxs)("div",{className:"sel-card-bottom",children:[t?.googleReviews>0&&(0,a.jsxs)("div",{className:"review-wrpr-row",children:[(0,a.jsx)("span",{className:"star-count",children:t?.googleReviews?.totalStars||"4.8"}),(0,a.jsx)("div",{className:"hos-star-wrpr",children:Array.from({length:parseInt(t?.googleReviews?.totalStars||4,10)}).map((e,t)=>(0,a.jsx)("span",{className:"star",children:(0,a.jsx)(w,{})},t))}),(0,a.jsxs)("span",{className:"hos-review-count",children:["(",t?.googleReviews?.totalReviews||"1234",")"]})]}),t?.services?.length>0&&(0,a.jsxs)("div",{className:"sel-card-row",children:[(0,a.jsx)("span",{className:"sel-card-icon",children:(0,a.jsx)(c.WX,{size:16})}),(0,a.jsxs)("div",{className:"sel-service-list",children:[t?.services?.slice(0,3)?.map((e,s)=>(0,a.jsxs)("span",{className:"selected-card-text",children:[e?.name||"service name",s<Math.min(t?.services.length,3)-1&&(0,a.jsx)("span",{children:", "})]},s)),t?.services?.length>3&&(0,a.jsxs)("span",{className:"selected-card-text count",children:["+",t.services.length-3]})]})]}),t?.location?.address&&"MULTI_SITE_WEBSITE_GROUP_LOCATION"!==t.location.address&&(0,a.jsxs)("div",{className:"sel-card-row",children:[(0,a.jsx)("span",{className:"sel-card-icon",children:(0,a.jsx)(c.sD,{size:16})}),(0,a.jsx)("p",{className:"selected-card-text",children:(0,a.jsx)(i.D,{address:t?.location?.address})})]}
1),t?.pets&&(0,a.jsxs)("div",{className:"sel-card-row",children:[(0,a.jsx)("span",{className:"pet-icon sel-card-icon",children:(0,a.jsx)(c.OJ,{size:16})}),t?.pets?.slice(0,3)?.map((e,s)=>(0,a.jsxs)("div",{className:"selected-card-text",children:[(0,a.jsx)("span",{children:e?.name}),s<Math.min(t.pets.length,3)-1&&(0,a.jsx)("span",{children:","})]},s)),t?.pets?.length>3&&(0,a.jsxs)("span",{className:"selected-card-text count",children:["+",t.pets.length-3]})]}),(0,a.jsxs)("div",{className:"sel-card-row",children:[(0,a.jsx)("span",{className:"sel-card-icon",children:(0,a.jsx)(c.qz,{size:16})}),(0,a.jsx)(d(),{href:(0,h.lm)(t?.slug||"",t?.domain,o,p,s?.category==="MAIN_SITE"),className:"hos-link",target:"_blank",children:"Visit Website"})]}),t?.contactDetails?.phone&&(0,a.jsxs)("div",{className:"sel-card-row",children:[(0,a.jsx)("span",{className:"sel-card-icon",children:(0,a.jsx)(c.bc,{size:16})}),(0,a.jsx)(d(),{className:"hos-contact",href:`tel:${s?.contactDetails?.phone}`,onClick:()=>r?.(),children:s?.contactDetails?.phone||"0987654321"})]})]})]})})]})}let _=[{value:"ER",label:"Emergency"},{value:"ERP",label:"Speciality ER"},{value:"GP",label:"General Practitioner"},{value:"SPEC",label:"Speciality"}],T={sortBy:"",petTypes:[],clinicTypes:[]};function A(e){let{websiteData:t}=e,s=(0,p.useMemo)(()=>new u.A,[]),[i,o]=(0,p.useState)(0),[d,h]=(0,p.useState)(1),[f,b]=(0,p.useState)({}),[v,N]=(0,p.useState)([]),[y,w]=(0,p.useState)(!0),[A,S]=(0,p.useState)(!1),[k,P]=(0,p.useState)(!1),[O,I]=(0,p.useState)(""),[L,D]=(0,p.useState)(""),[$,R]=(0,p.useState)(!1),[M,G]=(0,p.useState)([]),[U,B]=(0,p.useState)({}),[F,W]=(0,p.useState)(T),[z,H]=(0,p.useState)(T),[V,K]=(0,p.useState)("https://prd-uvc-cms-visitor.uvcpaws.com"),[q,J]=(0,p.useState)(!1),Q=(0,p.useRef)(null),X=(0,p.useRef)(null),{TriggerEvents:Y}=(0,m.useCarterAnalytics)();(0,p.useEffect)(()=>{(0,x.T8)(window.location.hostname)?(J(!0),K(window.location.origin)):K(t?.isProd?window.location.origin:"https://prd-uvc-cms-visitor.uvcpaws.com")},[t?.isProd]);let Z=(0,p.useMemo)(()=>{let e=[];return v.forEach(t=>{t?.location?.latitude&&t?.location?.longitude&&e.push(t)}),e},[v,t]),ee=(0,p.useCallback)(e=>{let t=v.find(t=>t._id===e._id);t&&b(t)},[v]),et=(0,p.useCallback)(async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:T;if(!A&&(t||y))try{S(!0);let i=function(e,t){let s=[];if(e&&s.push({conditions:[{field:"name",operator:n.ComparisonOperator.Contains,value:e}]}),t.petTypes.length>0&&s.push({OR:t.petTypes.map(e=>({conditions:[{field:"pets.name",operator:n.ComparisonOperator.Contains,value:e}]}))}),t.clinicTypes.length>0&&s.push({OR:t.clinicTypes.map(e=>({conditions:[{field:"templateName",operator:n.ComparisonOperator.Eq,value:e}]}))}),0!==s.length)return 1===s.length?s[0]:{AND:s}}(a,l),r="alpha"===l.sortBy?[{field:"name",direction:n.SortDirection.Asc}]:void 0,c=await s.listAllPublishedWebsites({pagination:{page:e,limit:10,...i?{filters:i}:{},...r?{sort:r}:{}}}),d=c?.listAllPublishedWebsites?.results||[],p=d.map(e=>
1e.slug).filter(Boolean),m=p.length?await (0,g.m)({slugs:p}):{},u=p.reduce((e,t,s)=>{let a=m?.domains?.[s];return a?.status===200&&a?.data?.domainName&&(e[t]=a.data.domainName),e},{}),x=d.map(e=>({...e,domain:u[e.slug]||e.domain}));N(e=>t?x:[...e,...x]),h(e);let f=c?.listAllPublishedWebsites?.total||0;w(f>10*e),o(f)}catch(e){console.error(e)}finally{S(!1)}},[s,t,A,y]);(0,p.useEffect)(()=>{h(1),w(!0),b({}),et(1,!0)},[t]),(0,p.useEffect)(()=>{s.ListPets({pagination:{page:1,limit:100}}).then(e=>{e?.results&&G(e.results)})},[s]),(0,p.useEffect)(()=>{let e=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&y&&!A&&et(d+1,!1,L,z)},{threshold:.5});return Q.current&&e.observe(Q.current),X.current&&e.observe(X.current),()=>e.disconnect()},[y,A,d,L,z,et]);let es=()=>{D(O),P(!!O),h(1),w(!0),N([]),b({}),et(1,!0,O,z)},ea=e=>B(t=>({...t,[e]:!t[e]}));return(0,a.jsxs)("div",{className:"map-section-inner",children:[(0,a.jsxs)("div",{className:`${$?"filter-options-block showPopup":"filter-options-block"}`,children:[(0,a.jsx)("div",{className:"fltr-top",children:(0,a.jsxs)("button",{className:"back-filer-btn",onClick:()=>R(!1),children:[(0,a.jsx)("span",{className:"back-fltr-icon",children:(0,a.jsx)(c.nk,{size:20})}),"Filters"]})}),(0,a.jsxs)("div",{className:"filter-options",children:[(0,a.jsxs)("div",{className:"filter-group",children:[(0,a.jsxs)("button",{className:"filter-group-header",onClick:()=>ea("sortBy"),children:[(0,a.jsx)("span",{children:"Sort By"}),(0,a.jsx)(c.yQ,{size:24,className:`filter-chevron ${U.sortBy?"open":""}`})]}),U.sortBy&&(0,a.jsx)("div",{className:"filter-group-body",children:(0,a.jsxs)("label",{className:"filter-check-item",children:[(0,a.jsx)("input",{type:"checkbox",name:"sortBy",value:"alpha",checked:"alpha"===F.sortBy,onChange:e=>W(t=>({...t,sortBy:e.target.checked?"alpha":""}))}),(0,a.jsx)("span",{children:"Alphabetically (A-Z)"})]})})]}),(0,a.jsxs)("div",{className:"filter-group",children:[(0,a.jsxs)("button",{className:"filter-group-header",onClick:()=>ea("petType"),children:[(0,a.jsx)("span",{children:"Pet Type"}),(0,a.jsx)(c.yQ,{size:24,className:`filter-chevron ${U.petType?"open":""}`})]}),U.petType&&(0,a.jsx)("div",{className:"filter-group-body",children:M.map(e=>(0,a.jsxs)("label",{className:"filter-check-item",children:[(0,a.jsx)("input",{type:"checkbox",checked:F.petTypes.includes(e.name),onChange:()=>{let t;return t=e.name,W(e=>({...e,petTypes:e.petTypes.includes(t)?e.petTypes.filter(e=>e!==t):[...e.petTypes,t]}))}}),(0,a.jsx)("span",{children:e.name})]},e._id))})]}),(0,a.jsxs)("div",{className:"filter-group",children:[(0,a.jsxs)("button",{className:"filter-group-header",onClick:()=>ea("clinicType"),children:[(0,a.jsx)("span",{children:"Clinic Type"}),(0,a.jsx)(c.yQ,{size:24,className:`filter-chevron ${U.clinicType?"open":""}`})]}),U.clinicType&&(0,a.jsx)("div",{className:"filter-group-body",children:_.map(e=>(0,a.jsxs)("label",{className:"filter-check-item",children:[(0,a.jsx)("input",{type:"checkbox",checked:F.clinicTypes.includes(e.value),onChange:()=>{let t;return t=e.value,W(e=>({...e,clinicTypes:e.clinicTypes.includes(t)?e.clinicTypes.filter(e=>e!==t):[...e.clinicTypes,t]}))}}),(0,a.jsx)("span",{children:e.label})]},e.value))})]})]}),(0,a.jsx)("div",{className:"fltr-bottom",children:(0,a.jsx)("button",{className:"btn outline-btn apply-btn",onClick:()=>{H(F),D(O),P(!!O),h(1),w(!0),N([]),b({}),R(!1),et(1,!0,O,F)},children:"Apply Filters"})})]}),(0,a.jsxs)("div",{className:"map-wrap",children:[(0,a.jsxs)("div",{className:"gp-map-content-block",children:[(0,a.jsx)("div",{className:"map-bar-wrpr",children:(0,a.jsxs)("div",{className:"search-bar",children:[(0,a.jsx)("div",{className:"search-in-wrpr",children:(0,a.jsx)("input",{className:"search-in",placeholder:"Search Clinic",value:O,onChange:e=>I(e.target.value),onKeyDown:e=>"Enter"===e.key&&es()})}),(0,a.jsx)("div",{className:"search-button-wrpr",children:(0,a.jsx)("button",{onClick:es,className:"search-btn",children:(0,a.jsx)(c.vj,{})})})]})}),(0,a.jsxs)("div",{className:"hos-filter-row",children:[(0,a.jsx)("p",{className:"filter-result",children:k&&!A?`Results (${i})`:"Hospitals"}),(0,a.jsx)("div",{className:"filter-btn-wrpr",children:(0,a.jsxs)("button",{className:"filter-btn",onClick:()=>{W(z),R(e=>!e)},children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"flte-btn-icon",children:(0,a.jsx)(c.lC,{size:14})}),"All Filters"]}),(0,a.jsx)(c.yQ,{size:14})]})})]}),(0,a.jsxs)("div",{className:`hos-card-list ${f?._id?"detail-card":""}`,tabIndex:0,children:[v.filter(e=>
1!e.isMultiSiteChild&&"MAIN_SITE"!==e.category).map(e=>(0,a.jsx)(C,{branch:e,isActive:f?._id===e?._id,onClick:()=>b(t=>t===e?null:e),websiteData:t,onCallClick:()=>{r.uc.BOOK_APPOINTMENT(t,e=>{Y?.CTA_CLICK({...e})},{buttonText:"Call"},!0,"call")}},e._id)),!A&&0===v.filter(e=>!e.isMultiSiteChild&&"MAIN_SITE"!==e.category).length&&(0,a.jsx)("div",{className:"loading-state-block",children:(0,a.jsx)("p",{className:"body-text",children:"No Result Found"})}),y&&(0,a.jsx)("div",{ref:Q,className:"loading-state-block",children:A&&(0,a.jsx)("div",{children:"Loading..."})})]}),f?._id&&(0,a.jsx)(E,{selected:f,websiteData:t,baseUrl:V,isUvc:q,onBack:()=>b(null),onCallClick:()=>{r.uc.BOOK_APPOINTMENT(t,e=>{Y?.CTA_CLICK({...e})},{buttonText:"Call"},!0,"call")}})]}),(0,a.jsx)(l.A,{locations:Z,className:"map-block",height:700,zoom:12,onMarkerClick:ee,websiteData:t,selectedLocation:f})]}),(0,a.jsxs)("div",{className:"tab-wrap",children:[(0,a.jsxs)("div",{className:"map-bar-wrpr",children:[(0,a.jsxs)("div",{className:"search-bar",children:[(0,a.jsx)("div",{className:"search-in-wrpr",children:(0,a.jsx)("input",{className:"search-in",placeholder:"Search Clinic",value:O,onChange:e=>I(e.target.value),onKeyDown:e=>"Enter"===e.key&&es()})}),(0,a.jsx)("div",{className:"search-button-wrpr",children:(0,a.jsx)("button",{onClick:es,className:"search-btn",children:(0,a.jsx)(c.vj,{})})})]}),(0,a.jsx)("button",{className:"filter-btn-wrpr",onClick:()=>{W(z),R(e=>!e)},children:(0,a.jsx)("span",{children:(0,a.jsx)(c.lC,{size:24})})})]}),(0,a.jsxs)(j.tU,{defaultValue:"list",className:"w-full gap-0",children:[(0,a.jsxs)(j.j7,{className:"tabs-list",children:[(0,a.jsx)(j.Xi,{className:"tab-trigger",value:"list",children:"List View"}),(0,a.jsx)(j.Xi,{className:"tab-trigger",value:"map",children:"Map View"})]}),(0,a.jsxs)(j.av,{value:"list",className:"tab-content",children:[(0,a.jsxs)("div",{className:`hos-card-list ${f?._id?"detail-card":""}`,tabIndex:0,children:[v.filter(e=>!e.isMultiSiteChild&&"MAIN_SITE"!==e.category).map(e=>(0,a.jsx)(C,{branch:e,isActive:f?._id===e?._id,onClick:()=>b(t=>t===e?null:e),websiteData:t,onCallClick:()=>{r.uc.BOOK_APPOINTMENT(t,e=>{Y?.CTA_CLICK({...e})},{buttonText:"Call"},!0,"call")}},e._id)),!A&&0===v.filter(e=>!e.isMultiSiteChild&&"MAIN_SITE"!==e.category).length&&(0,a.jsx)("div",{className:"loading-state-block",children:(0,a.jsx)("p",{className:"body-text",children:"No Result Found"})}),y&&(0,a.jsx)("div",{ref:X,className:"loading-state-block",children:A&&(0,a.jsx)("div",{children:"Loading..."})})]}),f?._id&&(0,a.jsxs)(a.Fragment,{children:[f?._id&&(0,a.jsx)("div",{className:"map-card-overlay",onClick:()=>b(null)}),(0,a.jsx)(E,{selected:f,websiteData:t,className:"mobile",onBack:()=>b(null),onCallClick:()=>{r.uc.BOOK_APPOINTMENT(t,e=>{Y?.CTA_CLICK({...e})},{buttonText:"Call"},!0,"call")},baseUrl:V,isUvc:q})]})]}),(0,a.jsx)(j.av,{value:"map",className:"tab-content map-content",children:(0,a.jsx)(l.A,{locations:Z,className:"map-block",height:700,zoom:12,onMarkerClick:ee,websiteData:t,selectedLocation:f})})]})]})]})}},98445:(e,t,s)=>{s.d(t,{A:()=>m});var a=s(37876),l=s(14232),i=s(48230),r=s.n(i),n=s(55128),c=s(68202),o=s(19909),d=s(38469),p=s(67684);function m(e){let{data:t,websiteData:s,displayNameMap:i,currentPage:m}=e,[u,h]=(0,l.useState)(!1),[g,x]=(0,l.useState)(!1),f=(0,l.useRef)(null),b=(0,l.useRef)(null);(0,l.useEffect)(()=>{if(!u)return;let e=e=>{let t=e.target;f.current&&!f.current.contains(t)&&b.current&&!b.current.contains(t)&&h(!1)};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[u]),(0,l.useEffect)(()=>{let e=()=>x(window.scrollY>20);return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]);let j=e=>s?.pagesAndSections?.some(t=>t?.name===e&&t?.enabled),v=e=>c.W_.enrichRoute(s,(0,n.WS)(s,e)),N=s?.logo?.fileUrl||"",y=s?.pagesAndSections?.find(e=>e?.name==="landing-page")?.sections?.["emergency-branches"]||{},w=[{page:o.Nb.ABOUT_US_PAGE,label:i?.[o.Nb.ABOUT_US_PAGE]||"About"},{page:o.Nb.LOCATIONS_PAGE,label:i?.[o.Nb.LOCATIONS_PAGE]||"Locations"},{page:o.Nb.CAREER_PAGE,label:i?.[o.Nb.CAREER_PAGE]||"Careers"}
1],C=j(o.Nb.CONTACT_US_PAGE)?v(o.Nb.CONTACT_US_PAGE):"#",E=i?.[o.Nb.CONTACT_US_PAGE]||"Contact Us";return(0,a.jsx)("header",{className:`uvc-header${g?" scrolled":""}`,children:(0,a.jsx)("div",{className:"container",children:(0,a.jsxs)("div",{className:"header-row",children:[(0,a.jsx)(r(),{href:c.W_.enrichRoute(s,""),className:"logo-wrpr",children:N?(0,a.jsx)(d.$E,{src:N,alt:s?.name||"Logo",className:"main-logo",width:200,height:200,objectFit:"contain",objectPosition:"left"}):(0,a.jsx)("span",{className:"main-logo"})}),(0,a.jsxs)("button",{ref:b,className:`hamburger${u?" active":""}`,id:"hamburger","aria-label":"Toggle menu",onClick:()=>h(e=>!e),children:[(0,a.jsx)("span",{className:"hamburger-line"}),(0,a.jsx)("span",{className:"hamburger-line"}),(0,a.jsx)("span",{className:"hamburger-line"})]}),(0,a.jsxs)("div",{ref:f,className:`menu-wrpr${u?" active":""}`,children:[(0,a.jsxs)("ul",{className:"nav-list",children:[w.map(e=>{let{page:t,label:s}=e;return j(t)?(0,a.jsx)("li",{className:"nav-item",children:(0,a.jsx)(r(),{onClick:()=>h(!1),href:v(t),className:`uvc-nav-link${m===t?" active":""}`,children:s})},t):null}),y?.enabled&&y?.data?.careersPage?.link?(0,a.jsx)("li",{className:"nav-item",children:(0,a.jsxs)("a",{href:y.data.careersPage.link,target:"_blank",rel:"noopener noreferrer",className:`uvc-nav-link${m===o.Nb.CAREER_PAGE?" active":""}`,children:["Careers ",(0,a.jsx)(p.G,{size:16,className:"external-link"})]})}):null]}),(0,a.jsx)("div",{className:"header-btn",children:(0,a.jsx)(r(),{href:C,onClick:()=>h(!1),className:"btn primary-btn",children:E})})]})]})})})}}}]);
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.