1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2590],{13120:(e,t,l)=>{"use strict";l.d(t,{A:()=>o});var a=l(37876),s=l(14232),i=l(6796);let n={src:"/_next/static/media/pointer.6f7e3860.svg",height:54,width:35,blurWidth:0,blurHeight:0},r={src:"/_next/static/media/pointerSelected.13c5b87d.png",height:67,width:45,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAICAMAAAAGL8UJAAAASFBMVEVMaXEyMjI0ZrotLS0wbM6du+o1deItLSk3e+0yeO0rS3sAAP8xMTE0ZbTK1+4uaseCqOktaMQ4fvJtoPRFjP9Sk/7///9Skv0RsGOHAAAAEnRSTlMATJERW/3Xdtz8tAFYl/s8+z0u3b+HAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAM0lEQVR4nAXBiQGAIAwAsZOvrYJKQdx/UxKeYqWj3/srllc2dNxDSe6eIMwGyCkRDqnXBiruAZP4LpJ7AAAAAElFTkSuQmCC",blurWidth:5,blurHeight:8},o=e=>{let{locations:t,zoom:l=13,height:o=700,className:d="",apiKey:c=i.A.MAPS_API_KEY,onMarkerClick:m,websiteData:u,selectedLocation:p,serviceProvidingRadius:g,showMarkerLabel:x=!1}=e,h=(0,s.useRef)(null),f=(0,s.useRef)(null),w=(0,s.useRef)({}),b=(0,s.useRef)(!1),j=(0,s.useRef)(null),v="string"==typeof n?n:n&&n.src?n.src:"",N="string"==typeof r?r:r&&r.src?r.src:"",y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e||e<=0)return l;let a=Math.log2(156543.03392*Math.cos(t*Math.PI/180)/(2*e/480)),s=Math.max(2,Math.min(22,Math.floor(a)));return console.log("[Zoom Calculation]",{radiusInMeters:e,latitude:t,calculatedZoom:a,clampedZoom:s}),s};(0,s.useEffect)(()=>{if(window.google&&window.google.maps){b.current=!0,_();return}if(document.getElementById("google-maps-script"))document.getElementById("google-maps-script")?.addEventListener("load",()=>{b.current=!0,_()});else{let e=document.createElement("script");e.id="google-maps-script",e.src=`https://maps.googleapis.com/maps/api/js?key=${c}`,e.async=!0,e.defer=!0,e.onload=()=>{b.current=!0,_()},e.onerror=()=>{console.error("Failed to load Google Maps script")},document.head.appendChild(e)}return()=>{Object.values(w.current).forEach(e=>{e&&"function"==typeof e.setMap&&e.setMap(null)}),w.current=[]}},[c]),(0,s.useEffect)(()=>{f.current&&window.google&&window.google.maps&&f.current instanceof window.google.maps.Map&&T(!0)},[t]);let A=(e,t)=>{let l=e.getProjection();if(!l)return;let a=e.getDiv();if(!a)return;let s=Math.pow(2,e.getZoom()),i=a.offsetHeight,n=l.fromLatLngToPoint(t),r=new window.google.maps.Point(n.x,n.y+.1*i/s),o=l.fromPointToLatLng(r);e.panTo(o)};(0,s.useEffect)(()=>{p&&w.current[p._id]&&window.google?(window.google.maps.event.trigger(w.current[p._id],"click"),A(f.current,new window.google.maps.LatLng(p.location.latitude,p.location.longitude)),(()=>{if(j.current&&(j.current.setMap(null),j.current=null),!g?.enabled||!g?.value||!p?.location?.latitude||!p?.location?.longitude||!f.current||!window.google?.maps)return;let e=((e,t)=>{let l=t?.toLowerCase()||"";return l.includes("mile")?1609.34*e:l.includes("meter")&&!l.includes("kilo")?e:1e3*e})(g.value,g.unit||"Kilometers");console.log("[ServiceRadius] Drawing circle:",{value:g.value,unit:g.unit,radiusInMeters:e});let t="undefined"!=typeof document&&getComputedStyle(document.documentElement).getPropertyValue("--vis-primary").trim()||"#4A90A4";j.current=new window.google.maps.Circle({strokeColor:t,strokeOpacity:.8,strokeWeight:2,fillColor:t,fillOpacity:.15,map:f.current,center:{lat:p.location.latitude,lng:p.location.longitude},radius:e});let l=y(e,p.location.latitude);f.current.setZoom(l),A(f.current,new window.google.maps.LatLng(p.location.latitude,p.location.longitude))})()):!p&&(T(!0),j.current&&(j.current.setMap(null),j.current=null))},[p,g]);let _=()=>{if(!h.current||!window.google||!window.google.maps||f.current)return;let e=(()=>{let e=t.filter(e=>e?.name===u?.name&&e.location.latitude&&e.location.longitude&&90>=Math.abs(e.location.latitude)&&180>=Math.abs(e.location.longitude));if(0===e.length)return{lat:40.7128,lng:-74.006};let l=e.reduce((e,t)=>e+t.location.latitude,0),a=e.reduce((e,t)=>e+t.location.longitude,0);return{lat:l/e.length,lng:a/e.length}})(),a=new window.google.maps.Map(h.current,{zoom:l,center:e,minZoom:2,maxZoom:22,mapTypeControl:!1,streetViewControl:!1,fullscreenControl:!1,zoomControl:!1,gestureHandling:"auto",styles:[{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"labels",stylers:[{visibility:"off"}]}]});f.current=a,window.google.maps.event.addListenerOnce(a,"idle",()=>{T(!0)})},T=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!f.current||!window.google||!window.google.maps||!(f.current instanceof window.google.maps.Map))return;
1Object.values(w.current).forEach(e=>{e&&"function"==typeof e.setMap&&e.setMap(null)}),w.current={};let l=new window.google.maps.LatLngBounds,a=0;t.forEach(e=>{if(!e.location?.latitude||!e.location?.longitude)return;let t=Number(e.location.latitude),s=Number(e.location.longitude);if(isNaN(t)||isNaN(s)||Math.abs(t)>90||Math.abs(s)>180)return;e.name,e.location.address;let i=new window.google.maps.Marker({position:{lat:t,lng:s},map:f.current,title:e.name,icon:{url:p&&e._id===p._id||e.name===u.name?N:v,scaledSize:p&&e._id===p._id||e.name===u.name?new window.google.maps.Size(30,45):new window.google.maps.Size(28,34)},...x&&e.name?{label:{text:e.name,className:"map-location-name"}}:{}});i.addListener("click",()=>{Object.values(w.current).forEach(e=>{e.setIcon({url:v,scaledSize:new window.google.maps.Size(28,34),anchor:new window.google.maps.Point(14,34)})}),i.setIcon({url:N,scaledSize:new window.google.maps.Size(30,45),anchor:new window.google.maps.Point(15,45)}),m&&m(e)}),w.current[e._id]=i,l.extend(new window.google.maps.LatLng(t,s)),a++}),e&&a>1&&setTimeout(()=>{f.current.fitBounds(l,50)},100)};return(0,a.jsx)("div",{ref:h,style:{height:(e=>"number"==typeof e?`${e}px`:e||"700px")(o),width:"100%"},className:`rounded-none border-none lg:rounded-lg lg:border lg:border-solid border-gray-300 ${d}`,role:"region","aria-label":"Map showing multiple locations"})}},16601:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>w});var a=l(37876),s=l(57215),i=l(13120),n=l(55128),r=l(12540),o=l(51930),d=l(37664),c=l(48230),m=l.n(c),u=l(23623),p=l(19909),g=l(69418),x=l(25312),h=l(84673),f=l(76185);function w(e){let{websiteData:t,data:l}=e,{TriggerEvents:c}=(0,o.useCarterAnalytics)(),w=l?.operationScheduledBanner?.enabled&&(0,d.v)({from:l?.operationScheduledBanner?.time?.from,to:l?.operationScheduledBanner?.time?.to,fromTime:l?.operationScheduledBanner?.time?.fromTime,toTime:l?.operationScheduledBanner?.time?.toTime,timezone:l?.operationScheduledBanner?.timezone||"Asia/Calcutta"}),b=l?.secondaryScheduledBanner?.enabled&&(0,d.v)({from:l?.secondaryScheduledBanner?.time?.from,to:l?.secondaryScheduledBanner?.time?.to,fromTime:l?.secondaryScheduledBanner?.time?.fromTime,toTime:l?.secondaryScheduledBanner?.time?.toTime,timezone:l?.secondaryScheduledBanner?.timezone||"Asia/Calcutta"});return(0,a.jsx)("section",{className:"er-map map-sections py-[50px] lg:py-[60px] xl:py-20",children:(0,a.jsx)("div",{className:"container mx-auto",children:(0,a.jsxs)("div",{className:"map-group flex gap-4 lg:gap-0 flex-wrap",children:[(0,a.jsx)("div",{className:"w-full lg:w-[55%] xl:w-[50%]",children:(0,a.jsxs)("div",{className:"map-card static",children:[(0,a.jsxs)("div",{className:"heading-wrap",children:[(0,a.jsx)("h2",{className:"heading",children:(0,r.EJ)(l?.heading||"Open 24/7. Even on Holidays.",n.N8?.LANDING_PAGE?.CONTACT_SECTION?.TITLE)}),(0,a.jsx)("p",{className:"heading-desc",children:(0,r.EJ)(l?.subHeading||"Our team is dedicated to meeting all your veterinary needs.",n.N8?.LANDING_PAGE?.CONTACT_SECTION?.DESC)})]}),t?.pets?.length>0&&(0,a.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 my-8 flex-wrap gap-4",children:t?.pets?.slice(0,6)?.map((e,t)=>(0,a.jsxs)("div",{className:"inline-flex items-center justify-start px-2 py-1.5 gap-1.5 sm:gap-3 bg-[var(--vis-light)] rounded-lg overflow-hidden",children:[(0,a.jsx)("div",{className:"pets-ico",children:(0,a.jsx)(g.d,{src:n.Lt[e.iconId-1]?.image?.src||"",className:"full-icon",size:36,colorInherit:!1})}),(0,a.jsx)("p",{className:"pets-name overflow-hidden",children:(0,r.EJ)(e?.name,n.N8?.LANDING_PAGE?.CONTACT_SECTION?.TILE_TITLE)})]},t))}),(0,a.jsx)("div",{className:"flex gap-4 px-0 lg:pt-2.5 mb-8 flex-col sm:flex-row",children:t?.flexibleOperationHours?.enabled&&t?.flexibleOperationHours?.hours?.length>0?(0,a.jsxs)("div",{className:"map-card-col lg:max-w-[240px]",children:[(0,a.jsx)("h3",{className:"primary-text text-base font-semibold mb-4 md:mb-5",children:l.operationName||"Hours"}),(0,a.jsxs)("ul",{className:"map-lst",children:[t?.flexibleOperationHours?.hours?.map((e,t)=>(0,a.jsx)("li",{className:"map-item-lst flex-col items-start",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)("span",{className:"left-item label-text text-[var(--vis-body)] font-normal md:font-medium whitespace-nowrap shrink-0 min-w-[38px]",children:[e?.day?.slice(0,3),":"]}),(0,a.jsx)("span",{className:"right-item label-text font-normal md:font-medium flex flex-col justify-start",children:e?.timeSlots?.map((e,t)=>(0,a.jsx)("span",{children:(0,r.pL)(e.openingTime,e.closingTime)},t))})]})},`flex_${t}`)),w?(0,a.jsx)("li",{className:"map-item-lst",children:(0,a.jsx)("span",{className:"map-badge red-text",children:l?.operationScheduledBanner?.text})}):l?.operationBanner&&l?.operationBanner!=="temp"&&(0,a.jsx)("li",{className:"map-item-lst",children:(0,a.jsx)("span",{className:"map-badge red-text",children:l?.operationBanner})})]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"map-card-col lg:max-w-[240px]",children:[(0,a.jsx)("h3",{className:"primary-text text-base font-semibold mb-4 md:mb-5",children:l.operationName||""}),(0,a.jsxs)("ul",{className:"map-lst",children:[t?.operationHours?.map((e,t)=>(0,a.jsxs)("li",{className:"map-item-lst",children:[(0,a.jsxs)("span",{className:"left-item label-text text-[var(--vis-body)] font-normal md:font-medium",children:[e?.from?.slice(0,3),e?.to!=="Nill"?`-${e?.to?.slice(0,3)}`:"",":"]}),(0,a.jsx)("span",{className:"right-item label-text font-normal md:font-medium",children:e?.openingTime?`${(0,r.IF)(e?.openingTime)} - ${(0,r.IF)(e?.closingTime)}`:"24 Hour"})]},t)),w?(0,a.jsx)("li",{className:"map-item-lst",children:(0,a.jsx)("span",{className:"map-badge red-text",children:l?.operationScheduledBanner?.text})}):l?.operationBanner&&l?.operationBanner!=="temp"&&(0,a.jsx)("li",{className:"map-item-lst",children:(0,a.jsx)("span",{className:"map-badge red-text",children:l?.operationBanner})})]})]}),!!l?.secondaryHours?.length&&(0,a.jsxs)("div",{className:"map-card-col lg:max-w-[240px]",children:[(0,a.jsx)("h3",{className:"primary-text text-base font-semibold mb-4 md:mb-5",children:l?.secondaryName||""}),(0,a.jsxs)("ul",{className:"map-lst",children:[l?.secondaryHours?.map((e,t)=>(0,a.jsxs)("li",{className:"map-item-lst",children:[(0,a.jsxs)("span",{className:"left-item label-text text-[var(--vis-body)] font-normal md:font-medium",children:[e?.from?.slice(0,3),e?.to!=="Nill"?`-${e?.to?.slice(0,3)}`:"",":"]}),(0,a.jsx)("span",{className:"right-item label-text font-normal md:font-medium",children:e?.openingTime?`${(0,r.IF)(e?.openingTime)} - ${(0,r.IF)(e?.closingTime)}`:"24 Hour"})]},t)),b?(0,a.jsx)("li",{className:"map-item-lst",children:(0,a.jsx)("span",{className:"map-badge red-text",children:l?.secondaryScheduledBanner?.text})}):l?.secondaryBanner&&l?.secondaryBanner!=="temp"&&(0,a.jsx)("li",{className:"map-item-lst",children:(0,a.jsx)("span",{className:"map-badge red-text",children:l?.secondaryBanner})})]})]})]})}),(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("h3",{className:"primary-text text-base mb-2 sm:mb-4 font-semibold",children:"Contact Details"}),(0,a.jsxs)("p",{className:"flex items-center mb-1 text-ellipsis overflow-hidden flex-nowrap last:mb-0 min-h-[36px] gap-2",children:[(0,a.jsx)("span",{className:"left-item contact-icon",children:(0,a.jsx)(g.d,{src:f.A.src,className:"full-icon",size:24,colorInherit:!1})}),(0,a.jsx)("span",{className:" label-text font-medium",children:(0,a.jsx)(u.D,{address:t?.location?.address})})]}),(0,a.jsxs)("ul",{className:"flex items-start flex-col md:flex-row gap-1",children:[t?.contactDetails?.phone&&(0,a.jsxs)("li",{className:"w-full md:w-1/2 gap-2 flex items-center",children:[(0,a.jsx)("span",{className:"left-item contact-icon",children:(0,a.jsx)(g.d,{src:x.A.src,className:"full-icon",size:24,colorInherit:!1})}),(0,a.jsx)(m(),{className:"right-item",href:`tel:${t?.contactDetails?.phone}`,onClick:()=>{r.uc.BOOK_APPOINTMENT(t,e=>{c?.CTA_CLICK({...e})},{buttonText:"Call"},!0,"call")},children:(0,a.jsx)("span",{className:"link-group label-text",children:t?.contactDetails?.phone})})]}),t?.contactDetails?.email&&(0,a.jsxs)("li",{className:"w-full md:w-1/2 gap-2 flex items-center",children:[(0,a.jsx)("span",{className:"left-item contact-icon",children:(0,a.jsx)(g.d,{src:h.A.src,className:"full-icon",size:24,colorInherit:!1})}),(0,a.jsxs)("span",{className:"right-item label-text",children:[" ","Email Us -\xa0",(0,a.jsx)(m(),{className:"link-group label-text",href:`mailto:${t?.contactDetails?.email}`,children:"Here"})]})]})]})]})]})}),(0,a.jsx)("div",{className:"w-full flex-1 map-wrap",children:t?.category===p.WJ.MULTI_SITE&&t?.serviceProvidingRadius?.enabled?(0,a.jsx)(i.A,{locations:[{_id:t?._id||"single-location",name:t?.name||"",location:{latitude:t?.location?.latitude,longitude:t?.location?.longitude,address:t?.location?.address||""}}],height:"100%",zoom:13,websiteData:t,selectedLocation:{_id:t?._id||"single-location",name:t?.name||"",location:{latitude:t?.location?.latitude,longitude:t?.location?.longitude,address:t?.location?.address||""}},serviceProvidingRadius:t?.serviceProvidingRadius}):(0,a.jsx)(s.A,{latitude:t?.location?.latitude,longitude:t?.location?.longitude,height:"100%",address:t?.location?.address})})]})})})}},23944:(e,t,l)=>{"use strict";l.d(t,{A:()=>j});var a=l(37876),s=l(14232),i=l(13120),n=l(76781),r=l(48230),o=l.n(r),d=l(12540),c=l(68202),m=l(69418),u=l(55128),p=l(38469);let g=e=>{let{title:t="Hours",hours:l,isActive:s,isExpanded:i=!1,onToggle:r}=e;return l&&0!==l.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 ${s?"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=>{r&&(e.stopPropagation(),r())},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)(n.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"} ${s?"md:flex":"md:hidden"}`,children:l?.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},x=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 l="24 Hour";return e?.openingTime&&e?.closingTime&&(l=`${(0,d.IF)(e.openingTime)} - ${(0,d.IF)(e.closingTime)}`),{day:t,time:l}}):[],h=e=>Array.isArray(e)?e:Object.values(e||{});function f(e){let{branches:t=[],selected:l,loading:i=!1,onCardSelect:r,websiteData:f}
1=e,[w,b]=(0,s.useState)(null),j=(0,s.useRef)(null),v=l?._id||t?.[0]?._id||"",N=e=>{b(t=>t===e?null:e)},y=(0,s.useMemo)(()=>t?.findIndex(e=>e?._id===v)??-1,[t,v]);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:()=>{if(y>0){let e=t?.[y-1],l=e?._id;l&&(r?.(l),requestAnimationFrame(()=>{setTimeout(()=>{if(j.current){let e=j.current.querySelector(`[data-card-id="${l}"]`);e&&e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}},150)}))}},className:"slide-btn prev",disabled:y<=0,children:(0,a.jsx)(n.JG,{})}),(0,a.jsx)("button",{onClick:()=>{if(y<(t?.length||0)-1){let e=t?.[y+1],l=e?._id;l&&(r?.(l),requestAnimationFrame(()=>{setTimeout(()=>{if(j.current){let e=j.current.querySelector(`[data-card-id="${l}"]`);e&&e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}},150)}))}},className:"slide-btn next",disabled:y>=(t?.length||0)-1,children:(0,a.jsx)(n.c_,{})})]}),(0,a.jsx)("div",{ref:j,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=v===e?._id,l=(e=>{if(e?.clinicTypes&&e.clinicTypes.length>0)return e.clinicTypes;let t=h(e?.pagesAndSections),l=t?.find(e=>e?.name==="landing-page")?.sections?.["additional-details-section"]?.data;return l?.clinicType?.filter(e=>e?.enabled!==!1)||[]})(e),s=(e=>{let t=h(e?.pagesAndSections),l=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,s=[],i=l?.operationName||"Hours";a?s=e.flexibleOperationHours.hours.map(e=>{let t=e?.timeSlots||[],l="Closed";return t.length>0&&(l=t.map(e=>(0,d.pL)(e?.openingTime,e?.closingTime)).join(", ")),{day:e?.day?.slice(0,3)||"",time:l}}):e?.operationHours&&e?.operationHours?.length>0&&(s=x(e.operationHours));let n=[],r=l?.secondaryName||"Hours";return!a&&l?.secondaryHours&&l?.secondaryHours?.length>0&&(n=x(l.secondaryHours)),{primary:s,primaryName:i,secondary:n,secondaryName:r,isFlexible:a}})(e);return(0,a.jsxs)("div",{"data-card-id":e?._id,onClick:()=>{var t;return e?._id&&(t=e._id,void r?.(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)(p.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||""}),l?.length>0&&(0,a.jsx)("div",{className:"inline-flex justify-start items-end gap-2 flex-wrap content-end",children:l?.map((e,l)=>{let s="string"==typeof e?e:e?.name||e?.label||e?.title,i=u.Lt[(e?.iconId??1)-1];return s?(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)(m.d,{src:i.image.src,size:14}):(0,a.jsx)(n.SO,{size:14,className:"text-white"}),(0,a.jsx)("p",{className:"justify-center text-sm font-medium leading-tight",children:s})]},l):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})]})]}),s.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)(g,{title:s.primaryName,hours:s.primary,isActive:t,isExpanded:w===`${e?._id}-primary`,onToggle:()=>e?._id&&N(`${e._id}-primary`)})}),!s.isFlexible&&s.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)(g,{title:s.secondaryName,hours:s.secondary,isActive:t,isExpanded:w===`${e?._id}-secondary`,onToggle:()=>e?._id&&N(`${e._id}-secondary`)})}
1),e?.slug&&(0,a.jsx)(o(),{href:c.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)(n.Gr,{size:18})})]},e?._id)})})})]}):null}var w=l(37659),b=l(16601);function j(e){let{data:t,websiteData:l}=e,{multiSiteGroupChildren:n,loading:r,fetchMultiSiteGroupChildren:o}=(0,w.i5)(),[d,c]=(0,s.useState)(null),m=(0,s.useRef)(!1),u=(0,s.useMemo)(()=>(n?.results||[]).filter(e=>e?._id!==l?._id),[n?.results,l?._id]);(0,s.useEffect)(()=>{if(m.current||r?.isLoading)return;let e=l?.slug,t=l?.status?.toLowerCase()||"draft",a=l?.category,s=l?.folderId?._id;!n?.results?.length&&e&&"MULTI_WEBSITE_GROUP"===a&&(console.log("[HousePawsMap] Triggering fetch with folderId:",s),m.current=!0,o(e,t,s))},[l?.slug,l?.status,l?.category,l?.folderId?._id]),(0,s.useEffect)(()=>{m.current=!1},[l?._id]),(0,s.useEffect)(()=>{u?.length>0&&!d&&c(u[0])},[u,d]),(0,s.useEffect)(()=>{c(null)},[l?._id]);let p=(0,s.useMemo)(()=>d?._id&&d?.location?.latitude&&d?.location?.longitude?{_id:d._id,name:d?.name||"",location:{latitude:d.location.latitude,longitude:d.location.longitude,address:d?.location?.address||""},slug:d?.slug}:null,[d]),g=(0,s.useCallback)(e=>{let t=u?.find(t=>t?._id===e?._id);t&&c(t)},[u]),x=(0,s.useCallback)(e=>{let t=u?.find(t=>t?._id===e);t&&c(t)},[u]),h=(0,s.useMemo)(()=>p?[p]:[],[p]),j=(0,s.useMemo)(()=>{let e=Array.isArray(l?.pagesAndSections)?l.pagesAndSections:Object.values(l?.pagesAndSections||{}),t=e?.find(e=>e?.name=="landing-page")?.sections?.["contact-us-section"]?.data;return t?.heading||"Housepaws Locations:"},[l?.pagesAndSections]);return l?.isMultiSiteChild?(0,a.jsx)(b.default,{websiteData:l,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:j})}),(0,a.jsx)(i.A,{locations:h,className:"w-full",height:700,zoom:13,onMarkerClick:g,websiteData:l,selectedLocation:p,serviceProvidingRadius:d?.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:u,selected:d,loading:r?.isLoading,onCardSelect:x,websiteData:l})})]})})})}},37664:(e,t,l)=>{"use strict";l.d(t,{v:()=>a});let a=e=>{if(!e)return!1;let{from:t,to:l,fromTime:a,toTime:s,timezone:i}=e;try{let e=(e,t,l)=>{let[a,s]=t.split(":").map(Number),i=new Date(e);i.setHours(a,s,0,0);let n=i.getTime()-new Date(i.toLocaleString("en-US",{timeZone:l})).getTime();return new Date(i.getTime()+n)},n=e(t,a,i),r=e(l,s,i),o=new Date;return r<n&&(r=new Date(r.getTime()+864e5)),o>=n&&o<=r}catch(e){return console.error("Schedule check error:",e),!1}}},57215:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var a=l(37876);l(14232);var s=l(6796);let i=e=>{let{latitude:t,longitude:l,zoom:i=10,height:n=700,className:r="",apiKey:o=s.A.MAPS_API_KEY,address:d}=e,c=encodeURIComponent(d||""),m=`https://www.google.com/maps?q=${c}&z=${i}&output=embed`;return(0,a.jsx)("iframe",{role:"region",width:"100%",height:n,style:{border:0},loading:"lazy",allowFullScreen:!0,referrerPolicy:"no-referrer-when-downgrade",src:m,className:`rounded-lg border border-solid border-gray-300 ${r}`,"aria-label":`Map showing location at coordinates ${t}, ${l}`},`${t}-${l}`)}},65701:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>n});var a=l(37876),s=l(23944),i=l(71359);function n(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.A,{}),(0,a.jsx)(i.A,{})]})}},71359:(e,t,l)=>{"use strict";l.d(t,{A:()=>d});var a=l(37876),s=l(14232),i=l(38469),n=l(85562),r=l(55128),o=l(84644);function d(e){let{data:t,website:l}=e,d=(0,s.useRef)(null),c=(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:()=>{d.current&&d.current.scrollBy({left:-364,behavior:"smooth"})},className:"slide-btn prev",children:(0,a.jsx)(n.J,{})}),(0,a.jsx)("button",{onClick:()=>{d.current&&d.current.scrollBy({left:364,behavior:"smooth"})},className:"slide-btn next",children:(0,a.jsx)(n.c,{})})]})]}),(0,a.jsx)("div",{ref:d,className:"relative overflow-hidden w-full",children:(0,a.jsx)("div",{className:"flex flex-col md:flex-row gap-6",children:c.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:r.Lt[e.iconId-1]?.image?.src||o.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))})})]})})}},76185:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});let a={src:"/_next/static/media/location-icon.ae3449eb.svg",height:24,width:24,blurWidth:0,blurHeight:0}},79482:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/new-page",function(){return l(65701)}])},84644:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});let a={src:"/_next/static/media/consult.e53ac55a.svg",height:42,width:42,blurWidth:0,blurHeight:0}},85562:(e,t,l)=>{"use strict";l.d(t,{J:()=>a.A,c:()=>s.A});var a=l(9552),s=l(29053)}},e=>{e.O(0,[6482,3512,8187,9694,449,2107,9212,1184,1365,5997,7766,2206,2310,923
10,6599,4352,9735,6274,3096,8311,7122,1630,2385,5220,4969,2074,496,2514,4012,6661,8792],()=>e(e.s=79482)),_N_E=e.O()}]);
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.