1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[956],{290:function(e){var t;t=function(){"use strict";function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function t(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?e(Object(n),!0).forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,a=!1,o=void 0;try{for(var s,i=e[Symbol.iterator]();!(n=(s=i.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==i.return||i.return()}finally{if(a)throw o}}return r}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}()}function n(e){return function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(r,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},o=JSON.stringify(r);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);var s=n(),i=a&&a.miss||function(){return Promise.resolve()};return s.then(function(e){return i(e)}).then(function(){return s})},set:function(r,n){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function o(e,t){return t&&Object.keys(t).forEach(function(r){e[r]=t[r](e)}),e}function s(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0;return e.replace(/%s/g,function(){return encodeURIComponent(r[a++])})}var i={WithinQueryParameters:0,WithinHeaders:1};function l(e,t){var r=e||{},n=r.data||{};return Object.keys(r).forEach(function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(n[e]=r[e])}),{data:Object.entries(n).length>0?n:void 0,timeout:r.timeout||t,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}var c={Read:1,Write:2,Any:3};function u(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t(t({},e),{},{status:r,lastUpdate:Date.now()})}function d(e){return"string"==typeof e?{protocol:"https",url:e,accept:c.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||c.Any}}var f="POST";function m(e,r,a,o){var s,i,l,c=[],f=function(e,r){if("GET"!==e.method&&(void 0!==e.data||void 0!==r.data))return JSON.stringify(Array.isArray(e.data)?e.data:t(t({},e.data),r.data))}(a,o),m=(s=t(t({},e.headers),o.headers),i={},Object.keys(s).forEach(function(e){var t=s[e];i[e.toLowerCase()]=t}),i),g=a.method,x="GET"!==a.method?{}:t(t({},a.data),o.data),y=t(t(t({"x-algolia-agent":e.userAgent.value},e.queryParameters),x),o.queryParameters),j=0,b=function t(r,n){var s,i,l,d=r.pop();if(void 0===d)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact [email protected].",transporterStackTrace:p(c)};var x={data:f,headers:m,method:g,url:(s=a.path,i=h(y),l="".concat(d.protocol,"://").concat(d.url,"/").concat("/"===s.charAt(0)?s.substr(1):s),i.length&&(l+="?".concat(i)),l),connectTimeout:n(j,e.timeouts.connect),responseTimeout:n(j,o.timeout)},b=function(e){var t={request:x,response:e,host:d,triesLeft:r.length};return c.push(t),t},w={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw{name:"DeserializationError",message:t.message,response:e}}}(e)},onRetry:function(a){var o=b(a);return a.isTimedOut&&j++,Promise.all([e.logger.info("Retryable failure",v(o)),e.hostsCache.set(d,u(d,a.isTimedOut?3:2))]).then(function(){return t(r,n)})},onFail:function(e){throw b(e),function(e,t){var r=e.content,n=e.status,a=r;try{a=JSON.parse(r).message}catch(e){}return{name:"ApiError",message:a,status:n,transporterStackTrace:t}}(e,p(c))}};return e.requester.send(x).then(function(e){var t,r,n;return(t=e.status,e.isTimedOut||(r=e.isTimedOut,n=e.status,!r&&0==~~n)||2!=~~(t/100)&&4!=~~(t/100))?w.onRetry(e):2==~~(e.status/100)?w.onSuccess(e):w.onFail(e)})};return(l=e.hostsCache,Promise.all(r.map(function(e){return l.get(e,function(){return Promise.resolve(u(e))})})).then(function(e){var t=e.filter(function(e){return 1===e.status||Date.now()-e.lastUpdate>12e4}),a=e.filter(function(e){return 3===e.status&&Date.now()-e.lastUpdate<=12e4}),o=[].concat(n(t),n(a));return{getTimeout:function(e,t){return(0===a.length&&0===e?1:a.length+3+e)*t},statelessHosts:o.length>0?o.map(function(e){return d(e)}):r}})).then(function(e){return b(n(e.statelessHosts).reverse(),e.getTimeout)})}function h(e){return Object.keys(e).map(function(t){var r;return s("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(e[t]):e[t]))}).join("&")}function p(e){return e.map(function(e){return v(e)})}function v(e){var r=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};
1return t(t({},e),{},{request:t(t({},e.request),{},{headers:t(t({},e.request.headers),r)})})}var g=function(e){var n,a,s,u,f,h,p,v,g,x,y,j,b,w=e.appId,N=(n=void 0!==e.authMode?e.authMode:i.WithinHeaders,a={"x-algolia-api-key":e.apiKey,"x-algolia-application-id":w},{headers:function(){return n===i.WithinHeaders?a:{}},queryParameters:function(){return n===i.WithinQueryParameters?a:{}}}),P=(u=(s=t(t({hosts:[{url:"".concat(w,"-dsn.algolia.net"),accept:c.Read},{url:"".concat(w,".algolia.net"),accept:c.Write}].concat(function(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}([{url:"".concat(w,"-1.algolianet.com")},{url:"".concat(w,"-2.algolianet.com")},{url:"".concat(w,"-3.algolianet.com")}]))},e),{},{headers:t(t(t({},N.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:t(t({},N.queryParameters()),e.queryParameters)})).hostsCache,f=s.logger,h=s.requester,p=s.requestsCache,v=s.responsesCache,g=s.timeouts,x=s.userAgent,y=s.hosts,j=s.queryParameters,b={hostsCache:u,logger:f,requester:h,requestsCache:p,responsesCache:v,timeouts:g,userAgent:x,headers:s.headers,queryParameters:j,hosts:y.map(function(e){return d(e)}),read:function(e,t){var n=l(t,b.timeouts.read),a=function(){return m(b,b.hosts.filter(function(e){return 0!=(e.accept&c.Read)}),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return a();var o={request:e,mappedRequestOptions:n,transporter:{queryParameters:b.queryParameters,headers:b.headers}};return b.responsesCache.get(o,function(){return b.requestsCache.get(o,function(){return b.requestsCache.set(o,a()).then(function(e){return Promise.all([b.requestsCache.delete(o),e])},function(e){return Promise.all([b.requestsCache.delete(o),Promise.reject(e)])}).then(function(e){var t=r(e,2);return t[0],t[1]})})},{miss:function(e){return b.responsesCache.set(o,e)}})},write:function(e,t){return m(b,b.hosts.filter(function(e){return 0!=(e.accept&c.Write)}),e,l(t,b.timeouts.write))}});return o({transporter:P,appId:w,addAlgoliaAgent:function(e,t){P.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([P.requestsCache.clear(),P.responsesCache.clear()]).then(function(){})}},e.methods)},x=function(e){return function(t,r){return"GET"===t.method?e.transporter.read(t,r):e.transporter.write(t,r)}},y=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o({transporter:e.transporter,appId:e.appId,indexName:t},r.methods)}},j=function(e){return function(r,n){var a=r.map(function(e){return t(t({},e),{},{params:h(e.params||{})})});return e.transporter.read({method:f,path:"1/indexes/*/queries",data:{requests:a},cacheable:!0},n)}},b=function(e){return function(r,n){return Promise.all(r.map(function(r){var a=r.params,o=a.facetName,s=a.facetQuery,i=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(a,["facetName","facetQuery"]);return y(e)(r.indexName,{methods:{searchForFacetValues:P}}).searchForFacetValues(o,s,t(t({},n),i))}))}},w=function(e){return function(t,r,n){return e.transporter.read({method:f,path:s("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:r},cacheable:!0},n)}},N=function(e){return function(t,r){return e.transporter.read({method:f,path:s("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r)}},P=function(e){return function(t,r,n){return e.transporter.read({method:f,path:s("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},n)}};function O(e,o,s){var l,c,u,d,f,m,h,p;return g(t(t(t({},{appId:e,apiKey:o,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise(function(t){var r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach(function(t){return r.setRequestHeader(t,e.headers[t])});var n,a=function(e,n){return setTimeout(function(){r.abort(),t({status:0,content:n,isTimedOut:!0})},1e3*e)},o=a(e.connectTimeout,"Connection timeout");r.onreadystatechange=function(){r.readyState>r.OPENED&&void 0===n&&(clearTimeout(o),n=a(e.responseTimeout,"Socket timeout"))},r.onerror=function(){0===r.status&&(clearTimeout(o),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=function(){clearTimeout(o),clearTimeout(n),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)})}},logger:{debug:function(e,t){return Promise.resolve()},info:function(e,t){return Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}},responsesCache:a(),requestsCache:a({serializable:!1}),hostsCache:function e(t){var a=n(t.caches),o=a.shift();return void 0===o?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then(function(e){return Promise.all([e,n.miss(e)])}).then(function(e){return r(e,1)[0]})},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return o.get(t,r,n).catch(function(){return e({caches:a}).get(t,r,n)})},set:function(t,r){return o.set(t,r).catch(function(){return e({caches:a}).set(t,r)})},delete:function(t){return o.delete(t).catch(function(){return e({caches:a}).delete(t)})}
1,clear:function(){return o.clear().catch(function(){return e({caches:a}).clear()})}}}({caches:[(l={key:"".concat("4.22.0","-").concat(e)},u="algoliasearch-client-js-".concat(l.key),d=function(){return void 0===c&&(c=l.localStorage||window.localStorage),c},f=function(){return JSON.parse(d().getItem(u)||"{}")},m=function(e){d().setItem(u,JSON.stringify(e))},h=function(){var e=l.timeToLive?1e3*l.timeToLive:null,t=Object.fromEntries(Object.entries(f()).filter(function(e){return void 0!==r(e,2)[1].timestamp}));m(t),e&&m(Object.fromEntries(Object.entries(t).filter(function(t){var n=r(t,2)[1],a=(new Date).getTime();return!(n.timestamp+e<a)})))},{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then(function(){h();var t=JSON.stringify(e);return f()[t]}).then(function(e){return Promise.all([e?e.value:t(),void 0!==e])}).then(function(e){var t=r(e,2),a=t[0];return Promise.all([a,t[1]||n.miss(a)])}).then(function(e){return r(e,1)[0]})},set:function(e,t){return Promise.resolve().then(function(){var r=f();return r[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},d().setItem(u,JSON.stringify(r)),t})},delete:function(e){return Promise.resolve().then(function(){var t=f();delete t[JSON.stringify(e)],d().setItem(u,JSON.stringify(t))})},clear:function(){return Promise.resolve().then(function(){d().removeItem(u)})}}),a()]}),userAgent:(p={value:"Algolia for JavaScript (".concat("4.22.0",")"),add:function(e){var t="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return -1===p.value.indexOf(t)&&(p.value="".concat(p.value).concat(t)),p}}).add({segment:"Browser",version:"lite"}),authMode:i.WithinQueryParameters}),s),{},{methods:{search:j,searchForFacetValues:b,multipleQueries:j,multipleSearchForFacetValues:b,customRequest:x,initIndex:function(e){return function(t){return y(e)(t,{methods:{search:N,searchForFacetValues:P,findAnswers:w}})}}}}))}return O.version="4.22.0",O},e.exports=t()},7913:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/locations/all",function(){return r(2992)}])},3100:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(5893),a=r(1664),o=r.n(a),s=r(2258),i=r(8361),l=r(4307),c=e=>{let{items:t,className:r}=e;return(0,n.jsx)("nav",{className:(0,s.cn)("bg-backgroundBrandPrimary py-4",r),children:(0,n.jsx)("ul",{className:"container overflow-x-auto flex gap-2",children:t.map((e,r)=>{let{href:a,children:c,target:u}=e,d=!(t.length-1!==r);return"/"===a||"/homepage"===a||"/home"===a?(0,n.jsx)("li",{className:"flex-none",children:(0,n.jsxs)(o(),{href:a,target:u,"aria-label":"Home",className:(0,s.cn)("gap-2 text-sm flex flex-row items-center",d&&"font-bold"),children:[(0,n.jsx)(i.Z,{width:20,height:20}),!d&&(0,n.jsx)(l.Z,{size:16,strokeWidth:4})]})},r):(0,n.jsx)("li",{className:"flex-none",children:(0,n.jsxs)(o(),{href:a,target:u,className:(0,s.cn)("gap-2 text-sm flex flex-row items-center",d&&"font-bold"),children:[c," ",!d&&(0,n.jsx)(l.Z,{size:16,strokeWidth:4})]})},r)})})})}},5427:function(e,t,r){"use strict";r.d(t,{O:function(){return o}});var n=r(5893),a=r(2258);function o(e){let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-md bg-backgroundSecondary",t),...r,children:(0,n.jsx)("p",{className:"flex w-100 items-center justify-center text-4xl font-bold h-[100%]",children:"Loading... "})})}},4076:function(e,t,r){"use strict";r.d(t,{C:function(){return c}});var n=r(5893),a=r(2258),o=r(2003),s=r(7361),i=r(363);let l=(0,o.j)("",{variants:{variant:{default:"",gradient:"from-gradientFrom to-gradientTo absolute left-0 top-0 z-10 h-full w-full bg-gradient-to-r"}},defaultVariants:{variant:"default"}});var c=e=>{let{children:t,variant:r,className:o,backgroundImg:c,mobileBackgroundImg:u}=e,d=(0,s.N)(),f=c&&Array.isArray(c)?null==c?void 0:c.slice(0,1)[0]:c;return(0,n.jsxs)("div",{className:(0,a.cn)("relative h-[320px] w-full border-b-[10px] border-borderPrimary bg-backgroundSecondary lg:h-[538px]",o),children:[(0,n.jsx)("div",{className:"relative z-20 flex h-full w-full items-center justify-center",children:t}),(0,n.jsx)("div",{className:(0,a.cn)(l({variant:r}))}),(0,n.jsxs)("div",{className:"absolute left-0 top-0 z-0 h-full w-full",children:[f&&!d&&(0,n.jsx)(i.Z,{media:{...f,fill:!0}}),u&&f&&d&&(0,n.jsx)(i.Z,{media:{...f,fill:!0}})]})]})}},8108:function(e,t,r){"use strict";r.d(t,{Z:function(){return j}});var n=r(5893),a=r(7294),o=r(2258),s=r(2237),i=r(1707),l=r(3350),c=r(4307),u=r(1668),d=r(2
1003),f=r(857),m=r(9525),h=r(7054),p=r(1768),v=(0,a.memo)(e=>{let{className:t,mapContainerClassName:r,location:s={lat:40.9041902,lng:-73.9686547},disableUI:i=!1}=e,[l,c]=(0,a.useState)(null),{isLoaded:u}=(0,p.j9)();s={lat:Number(s.lat),lng:Number(s.lng)};let d=(0,a.useCallback)(function(e){c(new window.google.maps.LatLng(s.lat,s.lng))},[]),f=(0,a.useCallback)(function(e){c(null)},[]);return(0,n.jsx)("div",{className:(0,o.cn)("aspect-square w-full max-w-[90vw]",t),children:u?(0,n.jsx)(h.b6,{onClick:()=>{s.lat&&s.lng&&window.open("http://maps.google.com/maps?q=".concat(s.lat,",").concat(s.lng),"_blank")},mapContainerClassName:(0,o.cn)(r),center:l,zoom:16,onLoad:d,onUnmount:f,options:i?{fullscreenControl:!1,disableDefaultUI:!0}:{},children:(0,n.jsx)(h.Jx,{position:s,icon:"/images/marker-hover.svg"})}):(0,n.jsx)(n.Fragment,{})})}),g=r(7877),x=r(4640);let y=(0,d.j)("min-h-[160px] w-full gap-4 bg-backgroundBrandPrimaryReversed",{variants:{variant:{default:"grid max-w-[930px] justify-between rounded-lg p-4 drop-shadow-md md:grid-flow-col md:p-8",map:"flex flex-col pb-4 pt-8 lg:flex-row",provider:"flex flex-col pb-4 pt-8 lg:flex-row"}},defaultVariants:{variant:"default"}});var j=e=>{let{variant:t,title:r,generalText:a,addrData:d,address:h,phone:p,timesAvailable:j,moreAbout:b,findADoctor:w,location:N,className:P,link:O}=e,_=!("map"!==t),k=!("provider"!==t),C=d?"https://www.google.com/maps/search/?api=1&query=".concat(encodeURIComponent(r),"%2C%20").concat(encodeURIComponent(d.street1),"%2C%20").concat(encodeURIComponent(d.city),"%2C%20").concat(encodeURIComponent(d.postalcode)):"",S=(0,x.useTranslations)("DoctorDetail");return(0,n.jsx)(g.Z,{condition:!!O,wrapper:e=>(0,n.jsx)(u.Z,{href:"".concat(null==O?void 0:O.href),target:null==O?void 0:O.target,variant:"secondary",className:(0,o.cn)("group w-full border-none p-0",P),children:e}),children:(0,n.jsxs)("div",{className:(0,o.cn)(y({variant:t}),P),children:[(0,n.jsxs)("div",{className:(0,o.cn)("relative grid flex-1 grow auto-rows-min gap-2 font-normal",_&&"gap-4 lg:grid-cols-2"),children:[(0,n.jsx)(f.ZP,{variant:"h5",className:"text-2xl font-bold lg:text-3xl",children:r}),a&&k&&d?(0,n.jsxs)("p",{className:"mb-6 w-[100%] first:mt-0 last:mb-0 text-lg",children:[d.street1,(0,n.jsx)("br",{}),d.street2&&(0,n.jsxs)(n.Fragment,{children:[d.street2,(0,n.jsx)("br",{})]}),d.city,", ",d.state," ",d.postalcode,(0,n.jsx)("br",{}),(0,n.jsxs)(u.Z,{href:C,target:"_blank",variant:"inline",children:[S("view_map"),(0,n.jsx)(i.Z,{className:"inline h-4 w-4 ms-2",strokeWidth:3})]})]}):a&&(0,n.jsx)(m.ZP,{className:"font-normal md:col-start-1",children:a}),N&&!k&&(0,n.jsx)(v,{className:"mx-auto md:col-start-2 md:row-span-4 md:row-start-1 md:max-w-[294px] md:justify-self-end",mapContainerClassName:"w-full h-full max-w-[100vw] md:h-[294px] md:w-[294px]",location:N,disableUI:!0}),h&&(0,n.jsxs)("div",{className:"flex items-center text-sm md:col-start-1",children:[(0,n.jsx)(l.Z,{className:"me-1"}),(0,n.jsx)(m.ZP,{children:h})]}),p&&(0,n.jsx)(m.ZP,{className:"md:col-start-1",children:p}),j&&(0,n.jsx)(m.ZP,{className:"md:col-start-1",children:j})]}),(0,n.jsxs)("div",{className:(0,o.cn)("flex grow-0 flex-col items-start gap-4 lg:items-end lg:pl-11",!_&&"w-full max-w-[330px] items-center justify-center lg:pl-0"),children:[b&&(0,n.jsx)(s.ZP,{asChild:!0,className:"w-full",children:(0,n.jsx)(u.Z,{href:b.href,target:"_parent",children:b.children})}),w&&(0,n.jsxs)(u.Z,{className:"mb-8 w-full justify-center border-none font-bold md:mb-0",href:w.href,target:w.target,children:[w.children,(0,n.jsx)(c.Z,{})]})]})]})})}},5481:function(e,t,r){"use strict";r.d(t,{Z:function(){return m}});var n=r(5893),a=r(2258),o=r(1668),s=r(4307),i=r(2003),l=r(805),c=r(7877),u=r(2237),d=r(363);let f=(0,i.j)("",{variants:{variant:{default:"flex-col",arrow:"flex-row",vertical:"flex-row"},animation:{none:"",horizontal:"absolute left-0 top-0 z-0 h-full w-3 bg-backgroundAlert transition-all duration-300 ease-out group-active:w-full md:group-hover:w-full",vertical:"absolute left-0 top-0 z-0 h-3 w-full bg-backgroundAlert transition-all duration-300 ease-out group-active:h-full md:group-hover:h-full"}},defaultVariants:{variant:"default",animation:"none"}});var m=e=>{let{className:t,animation:r="horizontal",variant:i="arrow",content:m,title:h,media:p,link:v}=e,g=!("arrow"!==i&&"vertical"!==i),x=!!(p&&p.width&&p.width<180),y=p&&(null==p?void 0:p.src)&&(null==p?void 0:p.width)&&(0,n.jsx)("div",{className:(0,a.cn)("relative flex w-full flex-none justify-center overflow-hidden rounded-lg md:max-w-[180px]",x&&"flex h-7 w-[32px] items-center rounded-none md:max-w-[32px]"),children:(0,n.jsx)(d.Z,{media:{...p,fill:!1,className:(0,a.cn)("self-center","arrow"===i&&x&&"md:group-hover:invert group-active:invert")}})});return(0,n.jsx)(c.Z,{condition:!!v,wrapper:e=>(0,n.jsx)(o.Z,{href:"".concat(null==v?void 0:v.href),target:null==v?void 0:v.target,variant:"secondary",className:(0,a.cn)("h-full w-full border-none p-0",t),children:e}),children:(0,n.jsxs)("div",{className:(0,a.cn)(f({variant:i}),"group relative flex h-full w-full flex-col items-start gap-4 overflow-hidden rounded-lg bg-backgroundBrandPrimaryReversed p-6 shadow-md hover:text-backgroundPrimaryReversed md:flex-row","horizontal"===r&&"p-4 pl-8","vertical"===r&&"p-6 pt-8",t),children:["none"!==r&&(0,n.jsx)("span",{className:(0,a.cn)(f({animation:r}))}),!x&&y,(0,n.jsxs)("div",{className:(0,a.cn)("z-10 flex w-full flex-auto flex-col items-center gap-2 lg:h-auto",g&&"flex-row items-start lg:h-full",!v&&"items-center"),children:[(0,n.jsxs)("div",{className:(0,a.cn)("flex h-full flex-1 flex-col gap-2 transition-colors","none"!==r&&"group-active:text-white md:group-hover:text-white"),children:[(0,n.jsxs)("div",{className:(0,a.cn)(f({variant:i}),"flex items-start gap-4"),children:[x&&y,h&&(0,n.jsx)(l.ll,{size:"small",className:(0,a.cn)("vertical"===i&&"font-serif font-normal lg:text-2xl"),children:h})]}),m&&(0,n.jsx)(l.tP,{optionSet:"options2",className:"text-base text-start",children:m})]}),g&&(0,n.jsx)("div",{className:"flex h-full w-[32px] items-center",children:(0,n.jsx)("div",{className:"flex h-[32px] w-[32px] items-center justify-center rounded-full bg-backgroundHighlight text-backgroundPrimaryReversed",children:(0,n.jsx)(s.Z,{size:20,strokeWidth:2})})}),"default"===i&&(null==v?void 0:v.children)&&(0,n.jsx)(u.ZP,{size:"small",className:"w-full py-2 leading-normal",children:null==v?void 0:v.children})]})]})})}},1768:function(e,t,r){"use strict";r.d(t,{MG:function(){return c},iO:function(){return l},j9:function(){return u},z2:function(){return i}});var n=r(5893),a=r(7294),o=r(7054);let s=(0,a.createContext)({isLoaded:!1}),i=e=>{let{children:t,...r}=e,{isLoaded:a,loadError:i}=(0,o.Ji)(r);return(0,n.jsx)(s.Provider,{value:{isLoaded:a,loadError:i},children:t})},l="AIzaSyASJBFvA33v9OktqfEjqzNVAZBwz_OBFvg",c=["places","maps"],u=()=>(0,a.useContext)(s)},3167:function(e,t,r){"use strict";var n=r(5893),a=r(2258),o=r(7294),s=r(7054),i=r(1768),l=r(9525);t.Z=e=>{var t;let{className:r,mapContainerClassName:c,setParentActivePosition:u,locations:d=[],parentActivePosition:f}=e,[m,h]=(0,o.useState)(null),[p,v]=(0,o.useState)(0),{isLoaded:g}=(0,i.j9)(),x=(0,o.useCallback)(function(e){h(e)},[]),y=(0,o.useCallback)(function(){h(null)},[]),j={};
1d.forEach(e=>{let t="".concat(e.lat,"_").concat(e.lng);j[t]||(j[t]=[]),e.position&&j[t].push(e.position)});let b=Object.keys(j).map((e,t)=>{let[r,n]=e.split("_").map(parseFloat);return{lat:r,lng:n,positions:j[e]}}),w=null===(t=d.find(e=>e.position===p))||void 0===t?void 0:t.tooltipContent,N=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(m){let r=d.find(t=>t.position===e);console.log(r),r&&(m.panTo({lat:null==r?void 0:r.lat,lng:null==r?void 0:r.lng}),u(e,!!t),v(e))}};return(0,o.useEffect)(()=>{null!=f&&N(f)},[f]),(0,n.jsx)("div",{className:(0,a.cn)("sticky top-[62px] w-full overflow-hidden rounded shadow-sm",r),children:g?(0,n.jsx)(s.b6,{mapContainerClassName:(0,a.cn)(c),center:d[0],zoom:11,onLoad:x,onUnmount:y,children:b.map((e,t)=>(0,n.jsx)(s.Jx,{title:"map marker ".concat(t),position:{lat:e.lat,lng:e.lng},icon:e.positions.includes(p)?"/images/marker-hover.svg":"/images/marker.svg",onClick:()=>{N(e.positions[0],!0)},children:p&&(null==e?void 0:e.positions.includes(p))&&w&&(0,n.jsx)(s.nx,{onCloseClick:()=>v(null),children:(0,n.jsx)(l.ZP,{children:w})})},t))}):(0,n.jsx)(n.Fragment,{})})}},316:function(e,t,r){"use strict";r.d(t,{ap:function(){return s},pL:function(){return o},uA:function(){return a}});var n=r(290);let a=r.n(n)()("SQG4AQ5MD6","2b462a7617b39c60e4965490d9a847f9"),o="profiles",s="profiles_distance_sort"},1707:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(3759).Z)("ExternalLink",[["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}],["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["line",{x1:"10",x2:"21",y1:"14",y2:"3",key:"18c3s4"}]])},8361:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(3759).Z)("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]])},3350:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(3759).Z)("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},2992:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return q},default:function(){return T}});var n=r(5893),a=r(7294),o=r(4076),s=r(9525),i=r(805),l=r(7361),c=r(1622),u=r(3100),d=r(5481),f=r(8108),m=r(6792),h=r(8685),p=r(4942),v=r(5201),g=r(2237),x=r(316),y=r(1163),j=r(5427),b=r(3350),w=r(3167),N=r(9008),P=r.n(N),O=r(4640);let _=e=>{let{t,...r}=e,{error:a}=(0,p.b)({catchError:!0}),{hits:o,sendEvent:s,showMore:i,isLastPage:l}=(0,v.a)(r);if(void 0===s)return(0,n.jsx)(j.O,{className:"mb-8 h-[400px] w-full"});if(a)return(0,n.jsx)(n.Fragment,{children:"Something went wrong"});if(null==r?void 0:r.showMapView){let e=null==o?void 0:o.map((e,t)=>{let r=Array.isArray(null==e?void 0:e.detail_pages_urls)?e.detail_pages_urls[0]:e.detail_pages_urls,n=r?'<a href="'.concat(r,'"><h3 className="mb-0">').concat(e.location_name,"</h3></a>"):'<h3 className="mb-0">'.concat(e.location_name,"</h3>");return{lat:e.latitude,lng:e.longitude,position:t+1,tooltipContent:"".concat(n,"<p>").concat((null==e?void 0:e.street_1)||"").concat((null==e?void 0:e.street_2)||"",", ").concat((null==e?void 0:e.city)||"",", ").concat(e.state||""," ").concat(e.postal_code||"","</p>")}});return(0,n.jsx)(w.Z,{mapContainerClassName:"h-[750px] min-w-[500px]",locations:e,setParentActivePosition:(e,t)=>{}})}return(0,n.jsxs)(k,{fallback:(0,n.jsx)(C,{}),children:[(0,n.jsx)("div",{className:"flex flex-col gap-4",children:null==o?void 0:o.map((e,r)=>{let a="";return a=Array.isArray(null==e?void 0:e.detail_pages_urls)?e.detail_pages_urls.filter(e=>e.includes("locations")):e.detail_pages_urls,(0,n.jsx)(f.Z,{findADoctor:{target:"_self",href:(null==e?void 0:e.url)?"".concat(null==e?void 0:e.url,"/doctors?id=").concat(e.cups_location_id):"",children:t("location_link_text")},generalText:"<p class='text-lg'>".concat((null==e?void 0:e.street_1)||"").concat((null==e?void 0:e.street_2)||"",", ").concat((null==e?void 0:e.city)||"",", ").concat(e.state||""," ").concat(e.postal_code||"","</p> "),title:e.location_name,className:"max-w-none",moreAbout:{href:Array.isArray(a)?a[0]:a,children:t("location_button_text")}},r)})}),(0,n.jsx)("div",{className:"my-6 flex justify-center",children:(0,n.jsx)(g.ZP,{onClick:i,disabled:l,children:t("show_more")})})]})};function k(e){let{children:t,fallback:r}=e,{results:n}=(0,p.b)();return n.__isArtificial||0!==n.nbHits?t:r}function C(){return(0,n.jsx)("div",{className:"flex justify-center",children:(0,n.jsx)("p",{children:"No results"})})}var S=e=>{var t;let{title:r="Locations Directory",menu:f,footerMenu:p,hamburgerMenu:v,virtualUrgentCare:j,locations:w,breadcrumbs:N}=e,k=(0,O.useTranslations)("LocationAll"),{query:C,locale:S}=(0,y.useRouter)(),A=(0,l.N)(),[q,T]=(0,a.useState)(!1),[Z,E]=(0,a.useState)(k("banner_text")),z=null==C?void 0:null===(t=C.id)||void 0===t?void 0:t.split(","),R=null==z?void 0:z.map(e=>'services.id: "'.concat(e,'"')).join(" OR ");return(0,a.useEffect)(()=>{let e=async()=>{let e=await fetch("/api/drupal/fetch-location-banner",{method:"POST",headers:{"Content-Type":"application/json"}}),t=await e.json();if(null==t?void 0:t.data){var r;E(null==t?void 0:null===(r=t.data)||void 0===r?void 0:r.value)}};(null==C?void 0:C.id)&&e()},[null==C?void 0:C.id]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(c.A,{menu:f,hamburgerMenu:v,footerMenu:p,className:"bg-backgroundBrandSecondary",children:[(0,n.jsxs)(P(),{children:[(0,n.jsx)("title",{children:"All Locations | Englewood Health"}),(0,n.jsx)("meta",{property:"og:title",content:"All Locations"}
1,"title"),(0,n.jsx)("meta",{name:"description",content:"We maintain the highest standards of quality and safety at hundreds of Englewood locations. Browse our full list of locations to find care close to you."}),(0,n.jsx)("meta",{name:"robots",content:"index, follow"})]}),N&&(0,n.jsx)(u.Z,{items:N.items}),(0,n.jsx)(o.C,{className:"h-auto lg:h-auto",children:(0,n.jsxs)("div",{className:"px-4 py-12 text-contentPrimaryReversed md:container lg:container md:px-8 lg:mx-auto",children:[!(null==C?void 0:C.id)&&(0,n.jsx)(i.LR,{className:"text-contentPrimaryReversed",children:k("title")}),(0,n.jsx)(s.ZP,{children:Z})]})}),(0,n.jsx)("div",{className:"px-4 py-7 md:container lg:container md:py-12 lg:mx-auto",children:(0,n.jsxs)("div",{className:"flex items-start gap-8",children:[!A&&(0,n.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,n.jsxs)(g.ZP,{onClick:()=>T(!q),size:"small",children:[(0,n.jsx)(b.Z,{size:18,className:"mr-2"}),k(q?"list_view":"map_view")]}),j&&(0,n.jsx)(d.Z,{variant:"default",animation:"none",...j,className:"lg:max-w-[294px]"})]}),(0,n.jsx)("div",{className:"flex flex-1 flex-col gap-8",children:(0,n.jsx)(m.p,{searchClient:x.uA,indexName:"cups_locations",children:(0,n.jsxs)(n.Fragment,{children:[" ",(0,n.jsx)(_,{showMapView:q,t:k}),(0,n.jsx)(h.T,{filters:'search_api_language: "en"'}),(0,n.jsx)(h.T,{filters:R})]})})})]})})]})})},A=r(1768),q=!0;function T(e){let{locations:t,menu:r,footerMenu:a,hamburgerMenu:o}=e,s=(0,O.useTranslations)("LocationAll");return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(A.z2,{googleMapsApiKey:A.iO,language:"en",libraries:A.MG,id:"script-loader",children:(0,n.jsx)(S,{menu:r,footerMenu:a,hamburgerMenu:o,locations:t,breadcrumbs:{items:[{children:"Homepage",href:"/homepage"},{children:"Locations",href:"/locations"},{children:"Directory",href:"/locations/all"}]},title:s("title"),virtualUrgentCare:{content:s("urgent_care_description"),link:{children:s("urgent_care_button_text"),href:"/service/urgent-care"},title:s("urgent_care_title")}})})})}}},function(e){e.O(0,[255,137,361,365,888,774,179],function(){return e(e.s=7913)}),_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.