PageSourceSearch

https://www.sunriseseniorliving.com/Areas/SunriseSeniorLiving/Scripts/575.d9c68e634568a111fc80.bundle.js

js sunriseseniorliving.com collected 2026-10-03 20:57:48 UTC 26,870 bytes, 25 lines download raw bytes

1(self.webpackChunk_verndale_toolkit=self.webpackChunk_verndale_toolkit||[]).push([[575],{73373:function(Y){function L(l){var e=new Error("Cannot find module '"+l+"'");throw e.code="MODULE_NOT_FOUND",e}L.keys=function(){return[]},L.resolve=L,L.id=73373,Y.exports=L},33311:function(Y,L,l){"use strict";l.d(L,{aN:function(){return $}});/*! *****************************************************************************
2Copyright (c) Microsoft Corporation.
3
4Permission to use, copy, modify, and/or distribute this software for any
5purpose with or without fee is hereby granted.
6
7THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13PERFORMANCE OF THIS SOFTWARE.
14***************************************************************************** */function e(p,s,n,c){function v(a){return a instanceof n?a:new n(function(g){g(a)})}return new(n||(n=Promise))(function(a,g){function M(O){try{K(c.next(O))}catch(T){g(T)}}function F(O){try{K(c.throw(O))}catch(T){g(T)}}function K(O){O.done?a(O.value):v(O.value).then(M,F)}K((c=c.apply(p,s||[])).next())})}var P=function p(s,n){if(s===n)return!0;if(s&&n&&typeof s=="object"&&typeof n=="object"){if(s.constructor!==n.constructor)return!1;var c,v,a;if(Array.isArray(s)){if(c=s.length,c!=n.length)return!1;for(v=c;v--!==0;)if(!p(s[v],n[v]))return!1;return!0}if(s.constructor===RegExp)return s.source===n.source&&s.flags===n.flags;if(s.valueOf!==Object.prototype.valueOf)return s.valueOf()===n.valueOf();if(s.toString!==Object.prototype.toString)return s.toString()===n.toString();if(a=Object.keys(s),c=a.length,c!==Object.keys(n).length)return!1;for(v=c;v--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[v]))return!1;for(v=c;v--!==0;){var g=a[v];if(!p(s[g],n[g]))return!1}return!0}return s!==s&&n!==n};const f="__googleMapsScriptId";var S;(function(p){p[p.INITIALIZED=0]="INITIALIZED",p[p.LOADING=1]="LOADING",p[p.SUCCESS=2]="SUCCESS",p[p.FAILURE=3]="FAILURE"})(S||(S={}));class ${constructor({apiKey:s,authReferrerPolicy:n,channel:c,client:v,id:a=f,language:g,libraries:M=[],mapIds:F,nonce:K,region:O,retries:T=3,url:u="https://maps.googleapis.com/maps/api/js",version:h}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=s,this.authReferrerPolicy=n,this.channel=c,this.client=v,this.id=a||f,this.language=g,this.libraries=M,this.mapIds=F,this.nonce=K,this.region=O,this.retries=T,this.url=u,this.version=h,$.instance){if(!P(this.options,$.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify($.instance.options)}`);return $.instance}$.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?S.FAILURE:this.done?S.SUCCESS:this.loading?S.LOADING:S.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let s=this.url;return s+="?callback=__googleMapsCallback",this.apiKey&&(s+=`&key=${this.apiKey}`),this.channel&&(s+=`&channel=${this.channel}`),this.client&&(s+=`&client=${this.client}`),this.libraries.length>0&&(s+=`&libraries=${this.libraries.join(",")}`),this.language&&(s+=`&language=${this.language}`),this.region&&(s+=`&region=${this.region}`),this.version&&(s+=`&v=${this.version}`),this.mapIds&&(s+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(s+=`&auth_referrer_policy=${this.authReferrerPolicy}`),s}deleteScript(){const s=document.getElementById(this.id);s&&s.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((s,n)=>{this.loadCallback(c=>{c?n(c.error):s(window.google)})})}importLibrary(s){return this.execute(),google.maps.importLibrary(s)}loadCallback(s){this.callbacks.push(s),this.execute()}setScript(){var s,n;if(document.getElementById(this.id)){this.callback();return}const c={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};
14Object.keys(c).forEach(a=>!c[a]&&delete c[a]),!((n=(s=window?.google)===null||s===void 0?void 0:s.maps)===null||n===void 0)&&n.importLibrary||(a=>{let g,M,F,K="The Google Maps JavaScript API",O="google",T="importLibrary",u="__ib__",h=document,_=window;_=_[O]||(_[O]={});const k=_.maps||(_.maps={}),J=new Set,Q=new URLSearchParams,q=()=>g||(g=new Promise((t,o)=>e(this,void 0,void 0,function*(){var r;yield M=h.createElement("script"),M.id=this.id,Q.set("libraries",[...J]+"");for(F in a)Q.set(F.replace(/[A-Z]/g,d=>"_"+d[0].toLowerCase()),a[F]);Q.set("callback",O+".maps."+u),M.src=this.url+"?"+Q,k[u]=t,M.onerror=()=>g=o(Error(K+" could not load.")),M.nonce=this.nonce||((r=h.querySelector("script[nonce]"))===null||r===void 0?void 0:r.nonce)||"",h.head.append(M)})));k[T]?console.warn(K+" only loads once. Ignoring:",a):k[T]=(t,...o)=>J.add(t)&&q().then(()=>k[T](t,...o))})(c);const v=this.libraries.map(a=>this.importLibrary(a));v.length||v.push(this.importLibrary("core")),Promise.all(v).then(()=>this.callback(),a=>{const g=new ErrorEvent("error",{error:a});this.loadErrorCallback(g)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(s){if(this.errors.push(s),this.errors.length<=this.retries){const n=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${n} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},n)}else this.onerrorEvent=s,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(s=>{s(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}}},63345:function(Y,L,l){"use strict";l.d(L,{dM:function(){return c},of:function(){return p}});var e=l(87491);const P=a=>(a.body?.results.forEach(g=>g),a),f=a=>a,S=a=>a,$=(a,g)=>{if(l.g.preProcessRequest&&g==="searchApiFetch"&&a.body){const M=l.g.preProcessRequest(a.body.toString());a.body=M}return a},p=({organizationId:a,accessToken:g,searchHub:M,pipeline:F})=>(0,e.us)({configuration:{organizationId:a,accessToken:g,search:{searchHub:M,pipeline:F,preprocessSearchResponseMiddleware:P,preprocessFacetSearchResponseMiddleware:f,preprocessQuerySuggestResponseMiddleware:S},analytics:{originLevel3:document.referrer?document.referrer:"no-referrer"},preprocessRequest:$}}),s=document.querySelector(".coveo-common-engine-configurator"),n={};let c=null;s&&(n.organizationId=s.dataset.coveoOrganizationId,n.accessToken=s.dataset.coveoAccessToken,n.searchHub=s.dataset.coveoSearchHub,n.pipeline=s.dataset.coveoPipeline,c=(0,e.us)({configuration:{organizationId:n.organizationId,accessToken:n.accessToken,search:{searchHub:n.searchHub,pipeline:n.pipeline,preprocessSearchResponseMiddleware:P,preprocessFacetSearchResponseMiddleware:f,preprocessQuerySuggestResponseMiddleware:S},analytics:{originLevel3:document.referrer?document.referrer:"no-referrer"},preprocessRequest:$}}));let v=null},36453:function(Y,L,l){"use strict";l.d(L,{Ad:function(){return q},Bw:function(){return c},G8:function(){return F},Hl:function(){return p},Jz:function(){return $},Kp:function(){return n},Y_:function(){return v},dN:function(){return s},eY:function(){return O},ki:function(){return T}});var e=l(36808),P=l.n(e),f=l(87491);const S="ssl-location-data",$=t=>{const o=localStorage.getItem(S);return o?JSON.parse(o):null},p=t=>{Object.keys(t).forEach(d=>{t[d]=="null"&&(t[d]=null)});const o=$()||{};Object.keys(o).forEach(d=>{o[d]=="null"&&(o[d]=null)});const r={...o,...t};localStorage.setItem(S,JSON.stringify(r))},s=(t,o)=>o==="mi"?(t*621371e-9).toFixed(2):(t*.001).toFixed(2),n=({linkToAnchor:t=null,linkWholeCard:o=!0,result:r,showDistance:d=!0,imageDomain:b="",unit:C="mi",unitLabelCard:z="mi",underlineTitle:A=!1})=>{const U=r.raw.ssl_thumbnailimage||r.raw.ssl_mainimagedesktop?`<img src="${b}${r.raw.ssl_thumbnailimage?r.raw.ssl_thumbnailimage:r.raw.ssl_mainimagedesktop}">`:"",R=r.raw.ssl_communityname?`<h4 class="map-info-window__header map-info-window__title">${r.raw.ssl_communityname?r.raw.ssl_communityname:r.raw.title}</h4>`:"";return`${o?`<a href='${t||r.raw.uri}' class="map-info-window ${A?"map-info-window__underline-title":""}"' target="_blank">`:""}<div class="map-info-window__info-window">
15  <div class="map-info-window__image-container">
16        ${U}
17        </div>
18        <div class="map-info-window__text">
19        ${R} ${d?`<div class="map-info-window__distance">${r.raw.distance_search} ${z}</div>`:""}
20        </div>
21        </div> ${o?"</a>":""}`},c=t=>{const{module:o,distance:r,ssl_latitude_d:d,ssl_longitude_d:b,ssl_communityname:C,ssl_thumbnailimage:z,ssl_pricingandavailabilityphone:A,ssl_residentsandfamilyphone:U,ssl_communityid:R,uri:H,ssl_mainimagedesktop:N}=t.raw,j={ssl_latitude:d,ssl_longitude:b,ssl_communityname:C,ssl_thumbnailimage:z||N,ssl_pricingandavailabilityphone:A,ssl_residentsandfamilyphone:U,ssl_communityid:R,ssl_communitylink:H,ssl_distance:r},D=JSON.stringify(j);P().set("current_community",D)},v=t=>{const o=/^(https?|ftp|file|mailto|tel|sip):/i.test(t),r=/^(\/|\.\/|\.\.\/)/.test(t);return o||r?t:""},a=(t,o)=>[{fieldName:"@distance",function:`dist(@ssl_latitude_d,@ssl_longitude_d, ${parseFloat(t)}, ${parseFloat(o)})`},{fieldName:"@distanceInMiles",function:"@distance*0.000621371"}],g=(t,o)=>{const r=window;r.preProcessRequest=d=>{const b=JSON.parse(d.toString());return b.queryFunctions=a(t,o),JSON.stringify(b)}},M=({source:t,radiusInMiles:o=50,careType:r=null,state:d=null,contextLanguage:b="en",hiddenCommunitiesArray:C=[]})=>({aq:`(@source=="${t}") ${d===null&&o?`(@distanceInMiles<=${o})`:""} ${r?`(@ssl_levelsofcare=="${r}")`:""} (@ssl_contextlanguage==${b}) ${d?`(@ssl_stateabbreviation=="${d}")`:""} (@ssl_pagetype=='community_pagetype') ${C.length>0?C.map(z=>`(NOT @ssl_communityid=="${z}")`).join(" "):""}`}),F=()=>["distance","uri","ssl_latitude_d","ssl_longitude_d","ssl_thumbnailimage","ssl_mainimagedesktop","ssl_communityid","ssl_communityname","ssl_heading","ssl_contextlanguage","ssl_state","ssl_city","ssl_zipcode","ssl_stateabbreviation","ssl_levelsofcare","ssl_pricingandavailabilityphone","ssl_residentsandfamilyphone","ssl_communityprice","ssl_commnunitystatus","ssl_mainimagedesktop_405x548"],K=({engine:t,pipeline:o="default"})=>{const{logInterfaceLoad:r}=w(t),{executeSearch:d}=y(t);t.dispatch(d(r()))},O=({engine:t,latitude:o,longitude:r,source:d,advancedUrlQuery:b=null,radiusInMiles:C,state:z=null,language:A,pipeline:U="default",hiddenCommunitiesArray:R=[],previousLoad:H=!1})=>{if(H)return;const{registerSortCriterion:N}=(0,f.In)(t),{setPipeline:j}=(0,f.hM)(t),{logInterfaceLoad:D,logSearchFromLink:x}=(0,f.bK)(t),{executeSearch:Z}=(0,f.wP)(t);g(o,r);const B=(0,f.vP)(t);let G;b?G={aq:`(@source=="${d}") (@ssl_contextlanguage==${A}) (@ssl_pagetype=='community_pagetype') ${b}`}:G=M({source:d,state:z,radiusInMiles:C?parseFloat(C):null,contextLanguage:A,hiddenCommunitiesArray:R}
21),t.dispatch(N((0,f.rE)("distance","ascending"))),t.dispatch(j(U)),t.dispatch(B.registerAdvancedSearchQueries(G)),b?t.dispatch(Z(x())):t.dispatch(Z(D()))},T=({engine:t,latitude:o,longitude:r,advancedUrlQuery:d,source:b="Production US - English",radiusInMiles:C=50,careType:z=null,state:A=null,language:U="en",pipeline:R="default",hiddenCommunitiesArray:H=[]})=>{const{registerSortCriterion:N}=(0,f.In)(t),{setPipeline:j}=(0,f.hM)(t),{logSearchboxSubmit:D}=(0,f.bK)(t),{executeSearch:x}=(0,f.wP)(t);g(o,r);const Z=(0,f.vP)(t);let B;d?B={hq:`(@source=="${b}") (@ssl_contextlanguage==${U}) (@ssl_pagetype=='community_pagetype') ${d}`}:B=M({source:b,state:A,careType:z,radiusInMiles:C?parseFloat(C):null,contextLanguage:U,hiddenCommunitiesArray:H}),t.dispatch(N((0,f.rE)("distance","ascending"))),t.dispatch(j(R)),t.dispatch(Z.registerAdvancedSearchQueries(B)),t.dispatch(x(D()))},u=()=>{const t=window.location.hash.slice(1);return new URLSearchParams(t).get("aq")||null},h=()=>{const t=window.location.hash.slice(1);return new URLSearchParams(t).get("hq")||null},_=()=>{const t=window.location.hash.split("&").filter(o=>!o.includes("f")).join("&");window.location.hash=t},k=t=>{const o=localStorage.getItem("ssl-modules-cache"),r=o?JSON.parse(o):null;return t?r?r[t]:null:r},J=(t,o,r)=>{const d={...k()||{},[t]:{value:o,locationInfo:r}};localStorage.setItem("ssl-modules-cache",JSON.stringify(d))},Q=(t,o)=>!t||!o?!1:t.Latitude===o.Latitude&&t.Longitude===o.Longitude,q=t=>t?t.sort((o,r)=>{if(o.raw.distance===r.raw.distance)return 0;if(o.raw.distance>r.raw.distance)return 1;if(o.raw.distance<r.raw.distance)return-1}):[]},2496:function(Y,L,l){"use strict";l.r(L),l.d(L,{default:function(){return O}});var e=l(67294),P=l(63345),f=l(13003),S=l(87491),$=l(36453),p=l(58234),s=l(30894),n=l(39551),c=l(36808),v=l(88064),a=l(33311),g=l(8262);class M extends n.Component{setupDefaults(){this.isMobile=!window.matchMedia(`(min-width: ${g.j$.TABLET_LANDSCAPE}px)`).matches,this.dom={$search:this.el._$$(".community-finder__input input"),$zipCodefield:this.el._$$(".community-finder__input"),$button:this.el._$$(".community-finder__search-button"),$steps:this.el._$$(".masthead-with-zipcode__step"),$mapViewContainer:this.el._$(".find-a-community-zipcode-map-row__map-view"),$coveoResultListContainer:this.el._$(".find-a-community-zipcode-map-row__coveo-result-list"),$searchAgain:this.el._$(".find-a-community-zipcode-map-row__search-again a"),$communityForm:this.el._$(".community-contact-us__form"),$communityFinder:this.isMobile?this.el._$$(".community-finder")[1]:this.el._$$(".community-finder")[0]},this.apiKey=this.el.dataset.apiK,this.zip="",this.setCurrentStep(0)}addListeners(){for(const u of this.dom.$search)u.addEventListener("input",h=>this.handleInputSearch(h))}handleSearchAgainClick(){this.setCurrentStep(0,!0)}setCurrentStep(u,h){window.scrollTo({top:0,behavior:"smooth"}),this.currentStep=u,console.log(this.currentStep,this.dom.$steps);for(const _ of this.dom.$steps)_.classList.remove("masthead-with-zipcode__step--active");if(this.dom.$steps[u].classList.add("masthead-with-zipcode__step--active"),u===0){this.resetContactForm();for(const _ of this.dom.$search)_.value="";this.disableButton(),this.removeInputError();for(const _ of this.dom.$zipCodefield)_.classList.remove("field--filled"),_.classList.remove("field--error");document.querySelector(".community-contact-us__zip").classList.remove("field--error"),h&&this.dom.$search[0].focus()}}resetContactForm(){const u=this.dom.$communityForm._$$(".field");for(const h of u){const _=h.querySelector("input:not(.duet-date__input)"),k=h.querySelector("select");k&&(k.value="",this.trigger(h,"change")),_&&(_.value=""),h.classList.remove("field--filled")}}buildOptionsHtml(){return this.results.map((u,h)=>`<div class="find-a-community-zipcode-map-row__result-frame">
22        ${u.raw.ssl_communityname?`<div class="find-a-community-zipcode-map-row__card-title"><span>${h+1}.</span>${u.raw.ssl_communityname}</div>`:`<div class="find-a-community-zipcode-map-row__card-title"><span>${h+1}.</span>${u.raw.ssl_heading}</div>`}
23      </div>`).join("")}trigger(u,h){if(typeof h=="string"&&typeof u[h]=="function")u[h]();else{const _=typeof h=="string"?new Event(h,{bubbles:!0}):h;u.dispatchEvent(_)}}setCustomStrings(u){const h=this.el._$(".find-a-community-zipcode-map-row__results-counter"),_=this.el._$(".community-contact-us__zip"),k=this.el._$(".community-contact-us__zip input");_.classList.add("field--filled"),k.value=this.zip;const J=(this.results.length>1?this.el.dataset.resultsLabel:this.el.dataset.resultLabel).replace("{{numberOfCommunities}}",`<span>${u}</span>`).replace("{{zipCode}}
23",`<span>${this.zip}</span>`);h.innerHTML=J,this.trigger(k,"focus"),this.trigger(k,"blur")}disableButton(){for(const u of this.dom.$button)u.classList.add("community-finder__search-button--disabled")}enableButton(){for(const u of this.dom.$button)u.classList.remove("community-finder__search-button--disabled")}showZipError(){const u="We couldn\u2019t find any communities";for(const h of this.dom.$zipCodefield){h.classList.add("field--error");const _=h._$("small");if(_){_.innerText=u;return}const k=`<small class="field__error">${u}</small>`;h.insertAdjacentHTML("beforeend",k)}}removeInputError(){for(const u of this.dom.$zipCodefield)u.classList.remove("field--error")}handleInputSearch(u){this.zip=u.target.value,this.zip?(this.enableButton(),this.removeInputError()):this.disableButton()}}var F=M,O=({coveoOrganizationId:T,coveoAccessToken:u,coveoSearchHub:h,coveoPipeline:_,coveoSource:k="Production US - English",coveoContextLanguage:J="en",coveoSearchRadiusInMiles:Q=5,coveoMaxResults:q=8,mapApiKey:t,locationCookieName:o,showInfoWindow:r=!1,module:d})=>{const[b,C]=(0,e.useState)(null),[z,A]=(0,e.useState)(!1),[U,R]=(0,e.useState)(null),[H,N]=(0,e.useState)(null),[j,D]=(0,e.useState)(null),[x,Z]=(0,e.useState)(null),B=(0,e.useRef)(!0),G=(0,e.useRef)(null),X=(0,e.useRef)(null),ee=(0,e.useRef)(null),W=(0,e.useMemo)(()=>(0,P.of)({organizationId:T,accessToken:u,searchHub:h,pipeline:_}),[]);r=document.querySelector(".masthead-with-zipcode-headless")?.getAttribute("data-show-info-window")=="1";const te=(0,e.useMemo)(()=>(0,S.Z6)(W,{initialState:{numberOfResults:parseFloat(q)}}),[]),V=(0,e.useMemo)(()=>(0,S.q)(W,{options:{fieldsToInclude:(0,$.G8)()}}),[]),ne=()=>{let E=(0,$.Jz)(o);E&&(R(E),(0,$.ki)({engine:W,latitude:E.Latitude,longitude:E.Longitude,source:k,radiusInMiles:parseFloat(Q),state:E.State,language:J,pipeline:_})),A(!1)};(0,e.useEffect)(()=>{j&&j.results.length>0&&b.setCurrentStep(1)},[j]),(0,p.Z)("geolocator-loaded",()=>{let E=(0,$.Jz)(o);E&&R(E),A(!1)},[]),(0,p.Z)("geolocation-received",({payload:E})=>{if(A(!1),E.error){B.current=!0,b.showZipError(),A(!1);return}if(z&&!E.sameSearchValue&&E.Module===d){ne();return}},[z]);const se=()=>{D(null),N(null),Z(""),B.current=!0,b.removeInputError(),b.setCurrentStep(0,!0)},oe=()=>`<h4 class="find-a-community-zipcode-map-row__results-counter">We Found <strong>${V.state.results.length}</strong> communities near <strong>${x}</strong></h4>`,ie=E=>{N(E)},re=E=>{E.preventDefault();const i=E.target.querySelector("input").value;Z(i),i.length!==0&&A(!0)};(0,e.useEffect)(()=>{x&&x.length>0?((0,p.W)({type:"get-zip-geolocation",payload:{value:x,country:null,firstSearch:B.current,moduleName:d}}),B.current=!1):b&&z&&(A(!1),b.showZipError())},[x]);const ae=(0,e.useCallback)(re,[b,z]);return(0,e.useEffect)(()=>{V.subscribe(()=>{D(V.state)})},[]),(0,e.useLayoutEffect)(()=>((()=>{const E=window.innerWidth,i=G.current.closest(".masthead-with-zipcode-headless");if(i){if(X.current=i.querySelector(`${E>1024?".masthead-with-zipcode__overlay":".single-heading--mobile"} form`),!X.current)return;const m=new F(i);C(m),ee.current=ae,X.current.addEventListener("submit",ee.current)}})(),()=>{X.current&&X.current.removeEventListener("submit",ee.current)}),[]),e.createElement(s.Z.Provider,{value:{resultsListController:V,hoveredResult:H,waitingForGeolocation:z,onMarkerClick:ie}},e.createElement("div",{ref:G},e.createElement(e.Fragment,null,U&&e.createElement(e.Fragment,null,e.createElement(f.Z,{apiKey:t,center:{lat:parseFloat(U.Latitude),lng:parseFloat(U.Longitude)},zoom:10,radiusInMiles:0,zoomControl:!0,draggable:!0,showInfoWindows:r,showMarkerLabel:!0}),V.state&&V.state.results.length>0&&e.createElement(e.Fragment,null,e.createElement("div",{dangerouslySetInnerHTML:{__html:oe()}}),e.createElement("span",{className:"find-a-community-zipcode-map-row__search-again"},"Not your location?"," ",e.createElement("button",{onClick:()=>se()},"Search again")),e.createElement("div",{className:"find-a-community-zipcode-map-row__coveo-result-list"},V.state.results.map((E,i)=>e.createElement(e.Fragment,{key:i},e.createElement("div",{className:`find-a-community-zipcode-map-row__result-frame ${H?.raw.ssl_communityid===E.raw.ssl_communityid?"hover":""}`,onMouseOver:()=>N(E),onMouseOut:()=>N(null)},r&&e.createElement("a",{href:E.raw.uri,target:"_blank",rel:"noreferrer"},e.createElement("div",{className:"find-a-community-zipcode-map-row__card-title"},e.createElement("span",null,`${i+1}.`),E.raw.ssl_communityname)),!r&&e.createElement("div",{className:"find-a-community-zipcode-map-row__card-title"},e.createElement("span",null,`${i+1}.`),E.raw.ssl_communityname))))))))))}},13003:function(Y,L,l){"use strict";var e=l(67294),P=l(30894),f=l(37054),S=l(36453),$=l(8262);const p={width:"100%",height:"100%",minHeight:"600px"},s=({linkToAnchor:n=null,center:c,radiusInMiles:v,zoomControl:a=!1,zoomPosition:g,zoom:M,streetViewControl:F=!1,mapTypeControl:K=!1,scaleControl:O=!1,fullscreenControl:T=!1,disableDoubleClickZoom:u=!1,draggable:h=!0,circleDebug:_=!1,apiKey:k,showInfoWindows:J=!0,showMarkerLabel:Q=!1})=>{const[q,t]=(0,e.useState)(null),[o,r]=(0,e.useState)(M),[d,b]=(0,e.useState)(null),[C,z]=(0,e.useState)(null),[A,U]=(0,e.useState)(null),[R,H]=(0,e.useState)(null),[N,j]=(0,e.useState)(null),[D,x]=(0,e.useState)([]),[Z,B]=(0,e.useState)(c),{resultsListController:G,waitingForGeolocation:X,hoveredResult:ee=null,onMarkerClick:W=null}=(0,e.useContext)(P.Z),[te,V]=(0,e.useState)(G.state);(0,e.useEffect)(()=>{G.subscribe(()=>{V(G.state)})},[]);const{isLoaded:ne}=(0,f.Ji)({id:"google-map-script",googleMapsApiKey:k}),se=i=>{if(C&&i.length>0){const m=new window.google.maps.LatLngBounds;
23i.forEach(I=>{I.raw.ssl_latitude_d&&I.raw.ssl_longitude_d&&m.extend({lat:I.raw.ssl_latitude_d,lng:I.raw.ssl_longitude_d})}),i.length>0?C.fitBounds(m):B(m.getCenter())}},oe=()=>{d&&C&&v>0&&C.fitBounds(d.getBounds(),{top:0,right:0,left:0,bottom:0})},ie=i=>{i!==q&&t(i)};(0,e.useEffect)(()=>{const i=te.results.map(m=>{if(m={...m},m.raw.distance&&(m={...m,raw:{...m.raw,distance:(m.raw.distance/1610).toFixed(2)}}),m.raw.ssl_latitude_d&&m.raw.ssl_longitude_d){if(m.raw.distance_search||m.raw.distance){const le=m.raw.distance_search?m.raw.distance_search:m.raw.distance,ce=(0,S.dN)(le,"mi");m={...m,raw:{...m.raw,distance_search:ce}}}const I=(0,S.Kp)({linkToAnchor:n,linkWholeCard:!0,showDistance:!1,underlineTitle:!0,result:m});m={...m,infoWindowContentString:I},m={...m,icon:R}}return m});t(null),x(i),te.results.length>0,se(i)},[te,R]),(0,e.useEffect)(()=>(d&&C&&C.addListener("click",()=>{t(null)}),()=>{d&&C&&window.google.maps.event.clearInstanceListeners(C)}),[d,C,Z]);const re=e.useCallback(i=>{b(i)},[]),ae=e.useCallback(i=>{U({path:window.google.maps.SymbolPath.CIRCLE,fillColor:"white",fillOpacity:1,strokeWeight:0,scale:10,anchor:new window.google.maps.Point(0,3)}),H({path:"M20 0A20.271 20.271 0 0 0 0 20.405c0 16.077 18.615 31.712 19.481 32.418A1.214 1.214 0 0 0 20 53a1.214 1.214 0 0 0 .519-.177C21.3 52.205 40 36.482 40 20.405A20.271 20.271 0 0 0 20 0Z",fillColor:"#037eab",strokeColor:"white",fillOpacity:1,scale:1,anchor:new window.google.maps.Point(20,53)}),j({path:"M20 0A20.271 20.271 0 0 0 0 20.405c0 16.077 18.615 31.712 19.481 32.418A1.214 1.214 0 0 0 20 53a1.214 1.214 0 0 0 .519-.177C21.3 52.205 40 36.482 40 20.405A20.271 20.271 0 0 0 20 0Z",fillColor:"#f46b16",strokeColor:"white",fillOpacity:1,scale:1,anchor:new window.google.maps.Point(20,53)}),z(i)},[]),E=e.useCallback(i=>{z(null)},[]);return(0,e.useEffect)(()=>{const i=[];D.map(m=>{m.raw.ssl_communityid===ee?.raw.ssl_communityid?m.icon=N:m.icon=R,i.push(m)}),x(i)},[ee]),(0,e.useEffect)(()=>{const i=()=>{oe(),se(D)};return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}}),X?e.createElement("div",{className:"headless-loader"},e.createElement("div",{className:"headless-loader__inner"})):ne?e.createElement(f.b6,{mapContainerStyle:p,center:Z,zoom:o,options:{zoomControl:a,zoomControlOptions:{position:window.google?.maps.ControlPosition[g||"TOP_LEFT"]},streetViewControl:F,mapTypeControl:K,scaleControl:O,fullscreenControl:T,disableDoubleClickZoom:u,draggable:h,styles:$.sm},onLoad:ae,onUnmount:E},e.createElement(f.Cd,{onLoad:re,center:Z,radius:v*1610,options:{fillColor:"coral",fillOpacity:.3,strokeWeight:2,strokeColor:"coral",clickable:!1,editable:!0,zIndex:1,visible:_}}),C&&d&&A&&R&&N&&D.map((i,m)=>e.createElement(e.Fragment,{key:i.raw.ssl_communityid},i.raw.ssl_latitude_d&&i.raw.ssl_longitude_d&&e.createElement(f.Jx,{position:{lat:i.raw.ssl_latitude_d,lng:i.raw.ssl_longitude_d},icon:i.icon&&{...i.icon},onMouseOver:()=>{W||x(D.map(I=>(i.raw.ssl_communityid===I.raw.ssl_communityid&&(I.icon=N),I)))},onMouseOut:()=>{W||x(D.map(I=>(i.raw.ssl_communityid===I.raw.ssl_communityid&&(I.icon=R),I)))},onClick:()=>{W&&W(i),J&&ie(i.raw.ssl_communityid)}},q===i.raw.ssl_communityid?e.createElement(f.nx,{onCloseClick:()=>{t(null)}},e.createElement("div",{onClick:()=>{(0,S.Bw)(i)},dangerouslySetInnerHTML:{__html:i.infoWindowContentString}})):null),i.raw.ssl_latitude_d&&i.raw.ssl_longitude_d&&e.createElement(f.Jx,{key:i.raw.ssl_communityid,position:{lat:i.raw.ssl_latitude_d,lng:i.raw.ssl_longitude_d},label:Q?{text:`${m+1}`,color:"#000000"}:null,icon:i.icon&&{...A},onClick:()=>{W&&W(i),J&&ie(i.raw.ssl_communityid)},onMouseOver:()=>{W||x(D.map(I=>(i.raw.ssl_communityid===I.raw.ssl_communityid&&(I.icon=N),I)))},onMouseOut:()=>{W||x(D.map(I=>(i.raw.ssl_communityid===I.raw.ssl_communityid&&(I.icon=R),I)))}})))):e.createElement("div",{className:"headless-loader"},e.createElement("div",{className:"headless-loader__inner"}))};L.Z=e.memo(s)},30894:function(Y,L,l){"use strict";var e=l(67294);const P=(0,e.createContext)();L.Z=P},58234:function(Y,L,l){"use strict";l.d(L,{W:function(){return S}});var e=l(67294);let P=[];const f=(p,s)=>{if(p!=null&&s!=null)return P=[...P,[p,s]],()=>{P=P.filter(n=>n[1]!==s)}},S=p=>{let{type:s}=p;typeof p=="string"&&(s=p);const n=[];typeof p=="string"?n.push({type:s}):n.push(p),P.forEach(([c,v])=>{typeof c=="string"&&c!==s||Array.isArray(c)&&!c.includes(s)||c instanceof RegExp&&!c.test(s)||typeof c=="function"&&!c(...n)||v(...n)})},$=(p,s,n=[])=>((0,e.useEffect)(()=>f(p,s),n),S);L.Z=$}}]);
24
25//# sourceMappingURL=575.d9c68e634568a111fc80.bundle.js.map

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.