PageSourceSearch

https://www.dentistsatwestchase.com/etc.clientlibs/pacific-dental/…/3217-783863c1943e38c839da.js

js dentistsatwestchase.com collected 2026-10-05 21:09:23 UTC 48,960 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[3217,9814,5640],{3217:function(e,t,o){o.r(t),o.d(t,{default:function(){return y}});var a=o(4692),n=o.n(a),r=o(9685),i=o(9779),s=o(9814),c=o(5809),l=o(5640),u=o(6646);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a,n,r,i,s=[],c=!0,l=!1;try{if(r=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;c=!1}else for(;!(c=(a=r.call(o)).done)&&(s.push(a.value),s.length!==t);c=!0);}catch(e){l=!0,n=e}finally{try{if(!c&&null!=o.return&&(i=o.return(),Object(i)!==i))return}finally{if(l)throw n}}return s}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return p(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,a=new Array(t);o<t;o++)a[o]=e[o];return a}function m(e,t){for(var o=0;o<t.length;o++){var a=t[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,g(a.key),a)}}function v(e,t,o){return(t=g(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function g(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var a=o.call(e,t||"default");if("object"!=d(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:String(t)}var y=function(){function e(t){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),v(this,"init",(function(){o.updateMobileNav(),o.campaignName=i.campaignCookies.readCookie("campaign"),o.initMap(),o.addCoveoQueryEvents(),o.eventListeners(o.root),o.fitOnScreen(),r.viewPort.mobile.matches?o.analytics.device="mobile":r.viewPort.tablet.matches&&(o.analytics.device="tablet")})),v(this,"updateMobileNav",(function(){(r.viewPort.mobile.matches||r.viewPort.tablet.matches)&&(document.querySelectorAll(".cmp-header__logo img").forEach((function(e){if(e){var t=e.closest("picture");t&&t.parentNode&&t.replaceWith(e),e.src="/content/dam/web-production/sg/logos/sg-logo-circle_43x43.svg",e.width=43,e.height=43,e.style.marginTop="8px",r.viewPort.mobile_small.matches&&(e.style.marginLeft="-7px")}})),(0,r.WaitForElement)(".magic-box-input").then((function(){n()(".magic-box-input > input").attr("placeholder","Search")})))})),v(this,"fitOnScreen",(function(){var e;if(!(null!==(e=window.Granite)&&void 0!==e&&e.author||o.campaignID||o.useInline)){var t=o;(0,r.WaitForElement)("#officeResultList .coveo-list-layout.CoveoResult").then((function(){if(r.viewPort.desktop.matches||r.viewPort.desktop_lg.matches){var e,o=n()("#officeResultList").offset().top-n()(window).scrollTop(),a=n()(".CoveoPager").outerHeight(),i=n()(window).height()-(o+a+15);n()("#map-section").css({height:i+"px"}),n()(window).on("resize",(function(o){clearTimeout(e),e=setTimeout((function(){t.fitOnScreen()}),500)}))}}))}})),v(this,"addCoveoQueryEvents",(function(){o.coveoNewQuery(),o.coveoBuildingQuery(),o.coveoPreprocessResults(),o.coveoQuerySuccess(),o.coveoDeferredQuerySuccess(),o.coveoNoResults(),o.coveoResultsDisplayed(),o.coveoEventListenerAdded=!0})),v(this,"initMap",(function(){var e=o;navigator.geolocation.getCurrentPosition((function(t){e.currentPosition={lat:t.coords.latitude,lng:t.coords.longitude},e.foundLocation=!0,e.searchResultMap(e.currentPosition)}),(function(t){console.warn("ERROR(".concat(t.code,"): ").concat(t.message)),e.foundLocation=!1,c.GeoLocator.readCookie((function(){e.currentPosition={lat:parseFloat(c.GeoLocator.geoCookie.read("geo-lat")),lng:parseFloat(c.GeoLocator.geoCookie.read("geo-lng"))},e.searchResultMap(e.currentPosition);var t=new URLSearchParams(window.location.hash.replace("#","?")).get("q");t?e.searchTerm=t:(e.searchTerm=e.currentPosition.lat+","+e.currentPosition.lng,e.useMyPosition=!0),e.getLatLng(e.searchTerm)}))}),{maximumAge:6e4,timeout:5e3,enableHighAccuracy:!0})})),v(this,"searchResultMap",(function(e){var t={mapId:"ceee131886988396",zoom:13,center:e,mapTypeControl:!1,fullscreenControl:!1,streetViewControl:!1,scrollwheel:!1,zoomControl:!0,zoomControlOptions:{position:google.maps.ControlPosition.TOP_RIGHT}};o.searchResultsMap=new google.maps.Map(document.getElementById("map"),t);var a=o;google.maps.event.addListener(o.searchResultsMap,"zoom_changed",(function(){google.maps.event.trigger(a.searchResultsMap,"click"),a.zoomLevel=a.searchResultsMap.getZoom()})),o.coveoEventListenerAdded||o.addCoveoQueryEvents(),o.searchResultsMap.addListener("drag",o.showRedoSearchBtn)})),v(this,"showRedoSearchBtn",(function(){n()("#redo-search").css({display:"block"})})),v(this,"coveoNewQuery",(function(){var e=o;Coveo.$$(o.root).on(Coveo.QueryEvents.newQuery,(function(t,o){(0,r.getQueryParam)("ucp")&&(e.useMyPosition=!0,e.searchTerm=e.currentLocTxt)}))})),v(this,"isStateOrZip",(function(e){if(void 0===e)return!1;e=e.trim();var t=s.States.isState(e),o=/^\d{5}$/.test(e);return t||o})),v(this,"coveoBuildingQuery",(function(){var e=o;Coveo.$$(o.root).on(Coveo.QueryEvents.buildingQuery,(function(t,o){e.currentTab=Coveo.state(e.root,"t"),""==e.currentTab&&(Coveo.state(e.root,"t",e.getTab()),e.currentTab=Coveo.state(e.root,"t"));var a=o.queryBuilder.expression.build();if(e.isAllTab()&&e.isStateOrZip(a)&&o.queryBuilder.advancedExpression.addFieldExpression("@documenttype","==",["Office","Provider"]),e.isOfficesTab()){if(n()(".coveo-results-header .coveo-summary-section").css({display:"none"}),!e.foundLocation)return void(o.cancel=!0);if(o.queryBuilder.sortCriteria="@pds_distance ascending",o.queryBuilder.tab="Offices",e.useInline&&(0,r.WaitForElement)(".coveo-dropdown-header-wrapper").then((function(){n()(".coveo-dropdown-header-wrapper").addClass("hidden")})),e.campaignID)o.queryBuilder.addContext({campaign:e.campaignID}),(0,r.WaitForElement)(".coveo-dropdown-header-wrapper").then((function(){n()(".coveo-dropdown-header-wrapper").addClass("hidden")}));else{var i=Coveo.state(document.getElementById("sg-search-v2"),"q");i?(e.searchTerm=i,e.searchTerm==e.previousSearchTerm?e.useMyPosition=e.isNonLocationTerm:e.useMyPosition=!1):e.useMyPosition=!0;var c=s.States.isState(e.searchTerm);e.isNonLocationTerm||c?o.queryBuilder.addContext({usinggeolocationservice:"false"}):o.queryBuilder.addContext({usinggeolocationservice:"true"}),0==e.redoSearch&&e.searchTerm!=e.previousSearchTerm&&(e.useMyPosition?e.useMyPosition&&(Coveo.$$(e.root).on("afterInitialization",(function(){n()(".CoveoDynamicFacet").coveo("reset")})),0==o.queryBuilder.queryFunctions.length&&Coveo.get(document.querySelector(".CoveoDistanceResources"),Coveo.DistanceResources).setPosition(parseFloat(e.currentPosition.lat),parseFloat(e.currentPosition.lng))):(o.cancel=!0,e.getLatLng(e.searchTerm)),e.previousSearchTerm=e.searchTerm)}}e.isAllTab()&&(o.queryBuilder.numberOfResults=e.getSearchTerm()?e.kwCount:e.initCount,o.queryBuilder.groupByRequests=[{field:"@documenttype",sortCriteria:"AlphaAscending"}])}))})),v(this,"coveoQuerySuccess",(function(){var e=o;Coveo.$$(o.root).on(Coveo.QueryEvents.querySuccess,(function(t,o){var a=this;if(e.totalResultsCount=o.results.totalCount,e.isOfficesTab()){n()(".CoveoPager").css({marginLeft:"25px"});var i=null;e.useMyPosition&&e.currentPosition&&e.currentPosition.lat&&!e.redoSearch?i=e.currentPosition:e.searchedPosition||e.redoSearch?i=e.searchedPosition:e.currentPosition&&e.currentPosition.lat&&(i=e.currentPosition),i&&e.addUserLocationMarker(i);var s=google.maps.event.addListener(e.searchResultsMap,"idle",(function(){e.searchResultsMap.fitBounds(e.bounds),r.viewPort.mobile.matches||r.viewPort.tablet.matches?e.searchResultsMap.panBy(0,220):(r.viewPort.mobile.matches||r.viewPort.tablet.matches&&n()("#sg-search-v2").hasClass("use-inline"))&&e.searchResultsMap.panBy(0,510)}));setTimeout((function(){google.maps.event.removeListener(s),e.searchResultsMap.zoom>17&&e.searchResultsMap.setZoom(16)}),500),n()("#redo-search").css({display:"none"}),e.redoSearch=!1,(r.viewPort.mobile.matches||r.viewPort.tablet.matches)&&e.setMobileMapHeight()}else n()(".CoveoPager").css({marginLeft:"revert-layer"});e.isAllTab()&&(0,r.WaitForElement)("".concat(e.allResultId," .coveo-result-list-container .coveo-list-layout")).then((function(){n()("".concat(e.allResultId," .coveo-result-list-container .coveo-list-layout")).length>0&&e.resetSectionsAllTab(),e.organizeAllTabResults(),e.updateCountAllTab(a.CoveoQueryController.lastQueryResults.groupByResults)})),(0,r.WaitForElement)(e.faceModalSelector).then((function(){e.updateFacetModal(e.totalResultsCount)})),e.registeredFacetFilterListener||(n()(".coveo-dropdown-header-wrapper > a.coveo-facet-dropdown-header").on("click",(function(){e.updateFacetModal(e.totalResultsCount)})),e.registeredFacetFilterListener=!0),e.isLocalHost||_satellite.track("append_marchex_params")}))}
1)),v(this,"addUserLocationMarker",(function(e){if(e&&null!=e.lat&&null!=e.lng){o.userLocationMarker&&(o.userLocationMarker.map=null,o.userLocationMarker=null);var t=document.createElement("div");t.style.position="relative",t.style.width="30px",t.style.height="30px";var a=document.createElement("div");a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.width="20px",a.style.height="20px",a.style.borderRadius="50%",a.style.backgroundColor="#B20E0D",a.style.border="3px solid #E94236",a.style.boxShadow="0 2px 6px rgba(0,0,0,0.3)";var n=document.createElement("div");if(n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="20px",n.style.height="20px",n.style.borderRadius="50%",n.style.backgroundColor="#B20E0D",n.style.border="3px solid #E94236",n.style.animation="pulse-smooth 1.5s ease-in-out infinite",t.appendChild(a),t.appendChild(n),!document.getElementById("pulse-smooth-keyframes")){var r=document.createElement("style");r.id="pulse-smooth-keyframes",r.textContent="\n                @keyframes pulse-smooth {\n                    0% { \n                        transform: scale(1);\n                        opacity: 1;\n                    }\n                    100% {\n                        transform: scale(1.75);\n                        opacity: 0;\n                    }\n                }\n            ",document.head.appendChild(r)}o.userLocationMarker=new google.maps.marker.AdvancedMarkerElement({position:{lat:parseFloat(e.lat),lng:parseFloat(e.lng)},map:o.searchResultsMap,content:t,title:"Your Location",zIndex:9999}),o.bounds&&o.bounds.extend(new google.maps.LatLng(parseFloat(e.lat),parseFloat(e.lng)))}})),v(this,"resetSectionsAllTab",(function(){n()("".concat(o.allResultId," .list .coveo-list-layout")).remove(),n()("".concat(o.allResultId," .list .coveo-card-layout")).remove(),n()("".concat(o.allResultId," .section")).hide(),n()(".section .matches a").off("click"),n()(".section .moreBtn button").off("click"),o.analytics.loggedMoreEvent=!1})),v(this,"updateCountAllTab",(function(e){e.length>0&&(o.updateSectionCount("Office",e[0].values,"offices-section"),o.updateSectionCount("Blog",e[0].values,"blogs-section"),o.updateSectionCount("FAQ",e[0].values,"faqs-section"),o.updateSectionCount("Provider",e[0].values,"providers-section"),o.updateSectionCount("WebPage",e[0].values,"explore-section"))})),v(this,"updateSectionCount",(function(e,t,a){for(var i=o,s=0;s<t.length;s++){var c=t[s];if(e==c.Value){var l=c.numberOfResults;if(l>3){n()(".".concat(a," .matches a")).text("".concat(l," matches found")),n()(document).on("click",".".concat(a," .matches a, .").concat(a," .moreBtn button"),(function(e){var t=n()(".".concat(a," .head .title")).text();if(!i.analytics.loggedMoreEvent){var o={location:n()(e.target).hasClass("cmp-button__text")?"button":"link"};i.logCustomEvent("More".concat(t),i.analytics.userInterfaceEventType,o,!1),i.analytics.loggedMoreEvent=!0,(0,r.scrollToArea)(1,1e3)}0==n()('.CoveoTab[title="'.concat(t,'"')).length&&n()(".coveo-tab-section a.coveo-dropdown-header")[0].click(),n()('.CoveoTab[title="'.concat(t,'"')).click()}));break}n()(".".concat(a," .matches a")).text("")}}})),v(this,"organizeAllTabResults",(function(){for(var e=0,t=0,a=0,i=0,s=0,c=n()("".concat(o.allResultId," .coveo-result-list-container .coveo-list-layout")),l=0;l<c.length;l++){var u=c[l],d=u.CoveoResult.raw.documenttype;try{switch(d){case"Provider":e<3?((0,r.replaceTagName)(n()("#id-".concat(l+1," .avatar img-replace")),"img"),o.slotContent(u,"providers-section"),n()(u).removeClass("coveo-list-layout").addClass("coveo-card-layout"),e++):u.remove();break;
1case"Office":t<4?((0,r.replaceTagName)(n()("#id-".concat(l+1," .office-image img-replace")),"img"),(0,r.replaceTagName)(n()("#id-".concat(l+1," .doctor img-replace")),"img"),o.slotContent(u,"offices-section"),t++):u.remove();break;case"FAQ":a<3?(o.slotContent(u,"faqs-section"),a++):u.remove();break;case"Blog":i<3?((0,r.replaceTagName)(n()("#id-".concat(l+1," img-replace")),"img"),o.slotContent(u,"blogs-section"),i++):u.remove();break;case"WebPage":s<3?((0,r.replaceTagName)(n()("#id-".concat(l+1," .emblem img-replace")),"img"),o.slotContent(u,"explore-section"),s++):u.remove();break;default:console.debug("Skipped".concat(l," ").concat(d," ").concat(u.CoveoResult.clickUri)),u.remove()}}catch(e){console.debug("Error occurred for item ".concat(l," ").concat(d," ").concat(u.CoveoResult.clickUri,": ").concat(e.message)),n()(u).remove()}}o.showSection(t,"offices-section"),o.sortOfficesByScore(),o.showSection(e,"providers-section"),o.showSection(a,"faqs-section"),o.showSection(i,"blogs-section"),o.showSection(s,"explore-section")})),v(this,"slotContent",(function(e,t){n()(".".concat(t," .list")).append(e)})),v(this,"showSection",(function(e,t){e>0&&n()(".".concat(t)).show()})),v(this,"coveoPreprocessResults",(function(){var e=o;Coveo.$$(o.root).on(Coveo.QueryEvents.preprocessResults,(function(t,o){var a=o.results.totalCount;if(n()(".null-results .no-results").hide(),n()(".inaccuracy-report").hide(),e.isOfficesTab()){var r=o.results.results,i=r.length>0?r[0].index:0,s=r.filter((function(e){return Number(e.raw.weightedscore||0)>=70})),c=r.filter((function(e){return Number(e.raw.weightedscore||0)<70}));if(s.sort((function(e,t){var o=Number(e.raw.weightedscore||0),a=Number(t.raw.weightedscore||0);return a!==o?a-o:(t.score||0)-(e.score||0)})),o.results.results=s.concat(c),e.clearAllMarkers(),0==a)n()(".null-results .offices-no-results").show();else{var l;e.analytics.loggedFacetEvent=!1,e.bounds=new google.maps.LatLngBounds;var u=[];o.results.results.forEach((function(t,o){t.index=i+o;var a=null,n=null;"True"==t.raw.pds_office_isgp&&(a=e.gpColor,n="GP|"+(t.index+1).toString()),"True"==t.raw.pds_office_ismykids&&(a=e.kdColor,n="KD|"+(t.index+1).toString()),"True"==t.raw.pds_office_ishealthcare&&(a=e.mdColor,n="MD|"+(t.index+1).toString()),"True"==t.raw.pds_office_isspecialneeds&&(a=e.snoColor,n="SNO|"+(t.index+1).toString()),l={name:n,markerTitle:n,lat:t.raw.pdslatitude,lng:t.raw.pdslongitude,background:a,borderColor:a,glyph:(t.index+1).toString(),glyphColor:"#FFFFFF",result:t},u.push(l),e.bounds.extend(new google.maps.LatLng(t.raw.pdslatitude,t.raw.pdslongitude))})),e.clusterLocations(u).forEach((function(t,o){var a="cluster_".concat(o);if(1===t.members.length){var n=t.members[0],r=new google.maps.marker.PinElement({background:n.background,borderColor:n.background,glyph:n.glyph,glyphColor:"#FFFFFF"});e.searchResultsMap.set(n.markerTitle,r);var i=new google.maps.marker.AdvancedMarkerElement({position:t.center,map:e.searchResultsMap,content:r.element,title:n.name,zIndex:1});i.markerTitle=n.markerTitle,e.markers.push(i),e.addMarkerClickListener(n.result,i)}else{var s=new google.maps.marker.PinElement({background:"#707070",borderColor:"#707070",glyph:"+",glyphColor:"#FFFFFF"}),c=new google.maps.marker.AdvancedMarkerElement({position:t.center,map:e.searchResultsMap,content:s.element});e.clusterMarkers.set(a,c),c.addListener("click",(function(){e.expandedClusters.has(a)?(e.collapseSpiderfiedMarkers(a),c.map=e.searchResultsMap):(e.drawSpiderfiedMarkers(t,a),c.map=null)})),e.searchResultsMap.addListener("click",(function(){e.expandedClusters.forEach((function(t){e.collapseSpiderfiedMarkers(t);var o=e.clusterMarkers.get(t);o&&(o.map=e.searchResultsMap)}))}))}})),e.searchResultsMap.fitBounds(e.bounds),n()(".map-btn").removeClass("hidden"),n()("#map-section").css({display:"block"}),e.syncFilterBar()}}else n()(".map-btn").addClass("hidden");e.isAllTab()?(n()("#".concat(e.rootId," .filters-toggle")).hide(),n()("#".concat(e.rootId," .CoveoPager")).hide(),0==a?(n()("".concat(e.allResultId," .coveo-results-header")).show(),n()("".concat(e.allResultId," .section")).hide()):n()("".concat(e.allResultId," .coveo-results-header")).hide()):n()("#".concat(e.rootId," .CoveoPager")).show(),"Blogs"==Coveo.state(e.root,"t")&&0==a&&n()(".null-results .blogs-no-results").show(),"FAQ"==Coveo.state(e.root,"t")&&0==a&&n()(".null-results .faq-no-results").show(),"Providers"==Coveo.state(e.root,"t")&&(0==a&&n()(".null-results .providers-no-results").show(),n()(".inaccuracy-report").show())}))})),v(this,"syncFilterBar",(function(){Coveo.state(o.root,"f:@office_group").forEach((function(e){n()('.filter-bar[data-name="'.concat(e,'"]')).addClass("selected")}))})),v(this,"getSearchTerm",(function(){return new URLSearchParams(window.location.hash.replace("#","?")).get("q")})),v(this,"getTab",(function(){return new URLSearchParams(window.location.hash.replace("#","?")).get("t")})),v(this,"coveoDeferredQuerySuccess",(function(){Coveo.$$(o.root).on(Coveo.QueryEvents.deferredQuerySuccess,(function(e,t){(0,r.WaitForElement)(".coveo-result-list-container .CoveoResult:nth-of-type(1)").then((function(e){n()(".filters-toggle").removeClass("hidden")}))}
1))})),v(this,"coveoResultsDisplayed",(function(){var e=o;Coveo.$$(o.root).on("newResultsDisplayed",(function(t,o){n()(".search-results").css({display:"flex"}),e.isOfficesTab()&&(e.setFirstCardAsActive(),e.scrollableResultsList.init(),(0,r.WaitForElement)("#officeResultList div.coveo-result-list-container.coveo-list-layout-container div.coveo-list-layout.CoveoResult").then((function(){setTimeout((function(){e.cardsPerPage=n()(".coveo-result-list-container.coveo-list-layout-container").children().length,e.processFacetsForDataLayer(),window.adobeDataLayer.push({event:"search",marketing:{trackingCode:e.campaignName},_pacificdentalservices:{internalSearch:{searchTerm:e.searchTerm,searchResultTab:e.currentTab,searchResultFilter:e.searchResultsFilter,searchResultCount:e.totalResultsCount,searchResult:{value:1}}}}),(0,r.clearDataLayer)()}),250),e.isLocalHost||_satellite.track("appendCampaign")})),e.showPromo(),u.MedicalGroup.adjustLinks(n()("#"+e.rootId+" a.mg-book-appt"),e.isLocalHost)),n()("#sg-search-v2").hasClass("use-inline")&&new google.maps.event.trigger(e.markers[0],"click"),n()(".coveo-list-layout.CoveoResult a").on("click",(function(){if(e.campaignName){var t=n()(this).attr("href");null!=t&&t.includes("//")&&!t.includes("//"+document.location.host)&&(t.includes("sc_cid")||(t.includes("?")?t+="&":t+="?",t+="sc_cid="+e.campaignName,n()(this).attr("href",t)))}window.adobeDataLayer.push({event:"searchResultsClicksAction",marketing:{trackingCode:e.campaignName},web:{webInteraction:{URL:n()(this).attr("href"),name:n()(this).text(),region:"Smile Generation Search Results",type:"other",linkClicks:{value:1}}},_pacificdentalservices:{internalSearch:{searchResultsClicks:{value:1},searchResultLinkClicked:n()(this).text(),destinationURL:n()(this).attr("href")}}})})),n()(".coveo-pager-list-item-text").on("click",(function(){window.adobeDataLayer.push({event:"cmp:clicked",marketing:{trackingCode:e.campaignName},_pacificdentalservices:{internalSearch:{searchResultClicks:{value:1}}},web:{webInteraction:{URL:n()(this).attr("aria-label"),name:n()(this).attr("aria-label"),region:"Search Results|Pagination",type:"other",linkClicks:{value:1}}}})}))}))})),v(this,"isOfficesTab",(function(){return"Offices"==Coveo.state(o.root,"t")})),v(this,"isAllTab",(function(){return"All"==Coveo.state(o.root,"t")})),v(this,"coveoNoResults",(function(){var e=o;Coveo.$$(o.root).on(Coveo.QueryEvents.noResults,(function(t,o){e.isOfficesTab()&&(n()("#map-section").css({display:"none"}),n()(".map-btn").addClass("hidden"));var a=Coveo.state(document.getElementById("sg-search-v2"),"q"),i=/(^\d{5}$)|(^\d{5}-\d{4}$)/.test(a);!e.isOfficesTab&&i&&(0,r.WaitForElement)(".coveo-query-summary-no-results-string").then((function(){n()(".coveo-query-summary-no-results-string").append('<p>You will be redirected to the "Offices" tab in<span></span> seconds.</p>');var e=10,t=setInterval((function(){n()(".coveo-query-summary-no-results-string p span").html(e),0==--e&&(clearInterval(t),n()(".coveo-accessible-button[title='Offices']").trigger("click"))}),1e3);n()(".coveo-accessible-button").trigger((function(){clearInterval(t)}))})),(0,r.WaitForElement)("#officeResultList div.coveo-result-list-container.coveo-list-layout-container div.coveo-list-layout.CoveoResult").then((function(){e.processFacetsForDataLayer(),window.adobeDataLayer.push({event:"search",marketing:{trackingCode:e.campaignName},_pacificdentalservices:{internalSearch:{searchTerm:e.searchTerm,searchResultTab:e.currentTab,searchResultFilter:e.searchResultsFilter,searchResultCount:e.totalResultsCount,searchResult:{value:1},nullSearchInstances:{value:1}}}})}))}))})),v(this,"eventListeners",(function(){var e=o;(0,r.WaitForElement)(".magic-box-input input").then((function(){n()(".magic-box-input input").on("focus",(function(){e.isOfficesTab()&&n()(".my-loc-container").slideDown(400,"linear")})),n()(".magic-box-input input").on("blur input",(function(){e.isOfficesTab()&&n()(".my-loc-container").slideUp(200,"linear")})),n()(".magic-box-input input, .CoveoSearchButton").on("click keydown",(function(t){(13==(t.keyCode?t.keyCode:t.which)||"a"==n()(this)[0].localName&&"click"==t.type)&&window.adobeDataLayer.push({event:"cmp:clicked",marketing:{trackingCode:e.campaignName},web:{webInteraction:{URL:e.pageUrl,name:e.pageName,region:e.componentName,type:"other",linkCl
1icks:{value:1}}},_pacificdentalservices:{internalSearch:{searchDropdown:e.currentTab,searchLocation:e.componentName,searchInitiated:{value:1}}}})})),n()(".magic-box-clear").on("click",(function(){e.updateSearchBoxText()})),n()(".my-loc-container").on("click",(function(){e.isOfficesTab()&&(n()(".my-loc-container").slideUp(200,"linear"),"visible"===n()(".magic-box-clear").css("visibility")&&n()(".magic-box-clear").trigger("click"),e.searchTerm||(e.searchTerm=e.currentLocTxt),n()(".magic-box-input > input").attr("placeholder",e.currentLocTxt),e.useMyPosition=!0,e.getLatLng(null),setTimeout((function(){n()(".magic-box-input > input").trigger("blur")}),100))})),n()("#redo-search").on("click",(function(t){t.preventDefault(),e.redoSearch=!0,"visible"===n()(".magic-box-clear").css("visibility")&&n()(".magic-box-clear").trigger("click"),e.updateSearchBoxText();var o=e.searchResultsMap.getCenter().lat(),a=e.searchResultsMap.getCenter().lng();e.searchedPosition={lat:o,lng:a},e.changePosition(a,o,!1),setTimeout((function(){n()(".magic-box-input > input").trigger("blur")}),100);e.logCustomEvent("Google Map Redo Search",e.analytics.userInterfaceEventType,{},!1)})),n()("input.cmp-header__hamburger").on("change",(function(){(r.viewPort.mobile.matches||r.viewPort.tablet.matches)&&(this.checked?n()(".coveosearchresults #sg-search-v2 #filters-search").css({zIndex:"9999"}):n()(".coveosearchresults #sg-search-v2 #filters-search").css({zIndex:"99999"}))})),n()(document).on("click",".filter-bar",(function(){var t=n()(this).data("name");if(n()(this).toggleClass("selected"),!e.analytics.loggedFacetEvent){var o={button:this.textContent};e.logCustomEvent("Filter Bar Nav",e.analytics.filterEventType,o,!1),e.analytics.loggedFacetEvent=!0}n()(".office-types input[value='"+t+"']").trigger("click"),e.detectFiltersSelected()})),n()(document).on("click",".coveo-dynamic-facet-breadcrumb-value",(function(){var e=n()(this).text().replace("Clear","").trim();n()("#filters-search button[data-name='"+e+"']").removeClass("selected").trigger("blur")})),n()(document).on("click",".coveo-breadcrumb-clear-all, .office-types .coveo-dynamic-facet-header-clear, .reset",(function(){n()("#filters-search button").each((function(){n()(this).removeClass("selected").trigger("blur")}))})),n()(document).on("click",".coveo-dynamic-facet-value",(function(t){var o=this;t.cancelBubble=!0,setTimeout((function(){var t=n()(o).hasClass("coveo-selected"),a=n()(o).data("value").trim();if(t&&e.facetsOpen?n()("#filters-search button[data-name='"+a+"']").addClass("selected"):!t&&e.facetsOpen&&n()("#filters-search button[data-name='"+a+"']").removeClass("selected"),e.detectFiltersSelected(),!e.analytics.loggedFacetEvent){var r=o.textContent,i={facetValue:r=r.substring(0,r.indexOf("("))};e.logCustomEvent("Filters Flyout",e.analytics.filterEventType,i,!1),e.analytics.loggedFacetEvent=!0}}),300)}))})),(0,r.WaitForElement)("#officeResultList").then((function(){n()(document).on("click",".office-address span",(function(){if(r.viewPort.mobile.matches||r.viewPort.tablet.matches){var t=n()(this).parent().parent().find(".card-number").attr("id").replace("card-","");e.showMapOnAddressClick(t)}})),n()(document).on("click","#officeResultList .coveo-list-layout.CoveoResult",(function(t){if("A"!==t.target.tagName){var o=n()(this).find(".card-number").attr("id").split("-");e.showMapInfoWindow(o[1])}})),n()(document).on("click","#officeResultList .coveo-result-list-container .trk-profile",(function(){var t={layout:"list"};t=e.extractOfficeMeta(t,this.closest(".office-card")),e.logCustomEvent("Profile Reviews CTA",e.analytics.officeClickEventType,t,!0)})),n()(document).on("click","#officeResultList #map .card-cta .trk-profile",(function(){var t={layout:"map"};t=e.extractOfficeMeta(t,e.getInfoWindow(this)),e.logCustomEvent("Profile Reviews CTA",e.analytics.officeClickEventType,t,!0)})),n()(document).on("click","#officeResultList .coveo-result-list-container .trk-book-appt",(function(){var t={layout:"list"};t=e.extractOfficeMeta(t,this.closest(".office-card")),e.logCustomEvent("Book Appt CTA",e.analytics.bookApptEventType,t,!0)})),n()(document).on("click","#officeResultList #map .card-cta .trk-book-appt",(function(){var t={layout:"map"};t=e.extractOfficeMeta(t,e.getInfoWindow(this)),e.logCustomEvent("Book Appt CTA",e.analytics.bookApptEventType,t,!0)})),n()(document).on("click","#officeResultList .coveo-result-list-container .trk-name",(function(){var t={layout:"list"};t=e.extractOfficeMeta(t,this.closest(".office-card")),e.logCustomEvent("Office Name",e.analytics.officeClickEventType,t,!0)})),n()(document).on("click","#officeResultList #map .infoContent .trk-profile",(function(){var t={layout:"map"};t=e.extractOfficeMeta(t,e.getInfoWindow(this)),e.logCustomEvent("Office Name",e.analytics.officeClickEventType,t,!0)})),n()(document).on("click","#officeResultList .coveo-result-list-container .trk-phone",(function(){var t={layout:"list"};t=e.extractOfficeMeta(t,this.closest(".office-card")),e.logCustomEvent("Phone Number",e.analytics.userInterfaceEventType,t,!0)})),n()(document).on("click","#officeResultList #map .card-cta .trk-phone",(function(){var t={layout:"map"};t=e.extractOfficeMeta(t,e.getInfoWindow(this)),e.logCustomEvent("Phone Number",e.analytics.userInterfaceEventType,t,!0)})),n()(document).on("click","#officeResultList .coveo-result-list-container .trk-reviews",(function(){var t={layout:"list"};t=e.extractOfficeMeta(t,this.closest(".office-card")),e.logCustomEvent("Reviews",e.analytics.officeClickEventType,t,!0)})),n()(document).on("click","#officeResultList #map .card-cta .trk-reviews",(function(){var t={layout:"map"};t=e.extractOfficeMeta(t,e.getInfoWindow(this)),e.logCustomEvent("Reviews",e.analytics.officeClickEventType,t,!0)})),n()(document).on("click","#officeResultList .coveo-result-list-container .office-image img",(function(){var t={layout:"list"};t=e.extractOfficeMeta(t,this.closest(".office-card")),e.logCustomEvent("Office Photo",e.analytics.noActionEventType,t,!0)})),n()(document).on("click","#officeResultList #map .infoContent img.infoImage",(function(){var t={layout:"map"};t=e.extractOfficeMeta(t,e.getInfoWindow(this)),e.logCustomEvent("Office Photo",e.analytics.noActionEventType,t,!0)})),n()(document).on("click","#officeResultList .coveo-result-list-container .doctor img",(function(){var t={layout:"list"};t=e.extractOfficeMeta(t,this.closest(".office-card")),e.logCustomEvent("OD Photo",e.analytics.noActionEventType,t,!0)})),n()(document).on("click","#officeResultList .coveo-result-list-container .office-address",(function(){var t={layout:"list"};t=e.extractOfficeMeta(t,this.closest(".office-card")),e.logCustomEvent("Office Address",e.analytics.noActionEventType,t,!0)})),n()(document).on("click","#officeResultList #map .infoContent .trk-address",(function(){var t={layout:"map"};t=e.extractOfficeMeta(t,e.getInfoWindow(this)),e.logCustomEvent("Office Address",e.analytics.noActionEventType,t,!0)})),n()(document).on("click",'#map button[title="Zoom in"]',(function(){e.logCustomEvent("Google Map Zoom",e.analytics.userInterfaceEventType,{action:"zoom in"},!1)})),n()(document).on("click",'#map button[title="Zoom out"]',(function(){e.logCustomEvent("Google Map Zoom",e.analytics.userInterfaceEventType,{action:"zoom out"},!1)})),n()(window).on("resize",(function(){(r.viewPort.mobile.matches||r.viewPort.tablet.matches)&&e.setMobileMapHeight()}))})),(0,r.WaitForElement)(".coveo-facet-column").then((function(t){n()(".filters-toggle .btn-wrap a.map-btn").on("click",(function(t){t.preventDefault(),n()("#map-section, .filter-bar-wrap").toggleClass("slider"),n()(".filters-toggle").toggleClass("no_map"),n()(".coveo-tab-section").hide(),n()("body").addClass("freeze");e.logCustomEvent("Map Button",e.analytics.userInterfaceEventType,{},!1)})),n()(".filters-toggle .btn-wrap a.list-btn").on("click",(function(t){t.preventDefault(),n()("#map-section, .filter-bar-wrap").toggleClass("slider"),n()(".filters-toggle").toggleClass("no_map"),n()(".coveo-tab-section").show(),n()("body").removeClass("freeze");e.logCustomEvent("List Button",e.analytics.userInterfaceEventType,{},!1)})),n()("button[data-open-filters], a[data-open-filters]").on("click",(function(o){e.facetsOpen=!e.facetsOpen,o.preventDefault(),t.showModal(),n()(".coveo-facet-column").addClass("show");e.logCustomEvent("Filters Button",e.analytics.userInterfaceEventType,{},!1)})),n()(".facet-modal-close-button").on("click",(function(o){e.facetsOpen=!e.facetsOpen,o.preventDefault(),n()(".coveo-facet-column").removeClass("show").delay(325).queue((function(e){t.close()})).dequeue()})),n()(document).on("keyup",(function(o){"Escape"==o.key&&(e.facetsOpen=!e.facetsOpen,o.preventDefault(),n()(".coveo-facet-column").removeClass("show").delay(325).queue((function(e){t.close()})).dequeue())})),t.addEventListener("click",(function(o){var a=t.getBoundingClientRect();o.clientX>a.right&&(e.facetsOpen=!e.facetsOpen,n()(".coveo-facet-column").removeClass("show").delay(325).queue((function(e){t.close()})).dequeue())}))}))})),v(this,"logCustomEvent",(function(e,t,a,r){var i={name:e,type:t};if(null!=a?a.device=o.analytics.device:a={device:o.analytics.device},r){var s=n()("#".concat(o.rootId)).data("campaign");a.campaignID=s||"Office Search"}Coveo.logCustomEvent(o.root,i,a)})),v(this,"extractOfficeMeta",(function(e,t){try{t&&(e.officeID=t.getAttribute("data-office-id"),e.officeName=t.getAttribute("data-office-name"),e.officeType=(0,l.upperCaseWord)(n()("#"+t.id).find(".office-type").text().trim().toLowerCase()))}catch(e){console.log("Unable to extract office metadata.")}return e})),v(this,"getInfoWindow",(function(e){return e.closest('[aria-label="Information Window"]').querySelector(".infoContent")})),v(this,"updateFilterBarOnRefresh",(function(){for(var e=o.searchResultsFilter.split(","),t=[],a=0;a<e.length;a++)e[a].indexOf("Office Type")>=0&&(letofList=e[a].split("|"),letofListArray=ofList[1],t=ofListArray.split(":"));if(t.length>0)for(var r=0;r<t.length;r++)n()("#filters-search button[data-name='"+t[r]+"']").addClass("selected");o.detectFiltersSelected()})),v(this,"changePosition",(function(e,t,a){o.isNonLocationTerm=a,o.foundLocation=!0,Coveo.get(document.querySelector(".CoveoDistanceResources"),Coveo.DistanceResources).setPosition(parseFloat(t),parseFloat(e));var n=Coveo.get(document.querySelector("#sg-search-v2"),Coveo.QueryController);n.firstQuery&&n.executeQuery()})),v(this,"getLatLng",(function(e){var t=new google.maps.Geocoder,a=o;o.useMyPosition?o.changePosition(o.currentPosition.lng,o.currentPosition.lat,!0):t.geocode({address:e,componentRestrictions:{country:"US"}}
1,(function(e,t){if(t===google.maps.GeocoderStatus.OK)try{if(!0===e[0].partial_match)return a.useMyPosition=!0,void a.changePosition(a.currentPosition.lng,a.currentPosition.lat,!0);var o=e[0].geometry.location,n=o.lat().toFixed(4).toString(),r=o.lng().toFixed(4).toString();r.indexOf(".")<4&&(r=r.replace("-","-0")),n=o.lat()>0?"+"+n:n,r=o.lng()>0?"+"+r:r,a.searchedPosition={lat:o.lat(),lng:o.lng()},a.changePosition(r,n,!1)}catch(e){}else a.currentPosition&&a.currentPosition.lat&&(a.searchedPosition={lat:a.currentPosition.lat,lng:a.currentPosition.lng}),a.changePosition(a.currentPosition.lng,a.currentPosition.lat,!0)}))})),v(this,"setMobileMapHeight",(function(){var e=(n()(window).outerHeight()-n()(".mob-nav-wrapper").outerHeight())/n()(window).outerHeight()*100+3;n()("#map").css({height:e+"%"})})),v(this,"showPreviewCard",(function(e,t){if(void 0!==e&&void 0!==t){null!=o.infowindow&&o.infowindow.close();var a,n,r=e.raw.pds_overall_score.slice(0,1)+"."+e.raw.pds_overall_score.slice(1);a="soon"==e.raw.pds_office_open_status?"Coming Soon":"new"==e.raw.pds_office_open_status?"Newly Opened":'<div class="rating-wrapper"><a href="'+e.raw.pds_office_link+'#reviews" class="search-rating trk-reviews"><div class="g-logo"></div><div class="avg-score rating-1"></div>'+r+'<div class="reviews-num">('+e.raw.pds_reviews_qty+" reviews)</div></a></div>","True"==e.raw.pds_office_isgp?n='<div class="general-dentistry">GENERAL DENTISTRY</div>':"True"==e.raw.pds_office_ismykids?n='<div class="kids-dentist">KIDS DENTIST</div>':"True"==e.raw.pds_office_ishealthcare?n='<div class="primary-care">PRIMARY CARE</div>':"True"==e.raw.pds_office_isspecialneeds&&(n='<div class="special-needs">SPECIAL NEEDS</div>');var i='<div class="infoContent clearfix" data-office-name="'.concat(e.raw.pdsofficetitle,'" data-office-id="').concat(e.raw.pds_office_number,'"\n                id="office').concat(e.raw.pds_office_number,'"><div class="bodyContent"><div class="office-type">').concat(n,'</div>\n                <h5><a class="CoveoResultLink office-name trk-profile" href="').concat(e.raw.pds_office_link,'">').concat(e.raw.pdsofficetitle,'</a></h5>\n                <span class="trk-address">').concat(e.raw.pds_office_address,"<br>").concat(e.raw.pds_office_city,", ").concat(e.raw.pds_office_state," ").concat(e.raw.pds_office_zipcode,'</span></div>\n                <div class="imageContent"><img class="infoImage" src= "').concat(e.raw.pds_office_image,'" + /></div></div>\n                <div class="card-cta"><div class="card-phone-reviews"><a class="card-phone trk-phone" href="tel:').concat(e.raw.pds_office_phone,'">').concat(e.raw.pds_office_phone,'</a>\n                <div class="search-reviews">').concat(a,'</div></div><a class="CoveoResultLink btn-primary trk-profile" href="').concat(e.raw.pds_office_link,'">PROFILE &amp; REVIEWS</a>\n                <a href="https://').concat(e.raw.pds_office_domain,'/contact/appt-only/" target="_blank" class="CoveoResultLink btn-secondary trk-book-appt">BOOK APPOINTMENT</a></div>');o.infowindow=new google.maps.InfoWindow({content:i,ariaLabel:"Information Window",maxWidth:315});var s=o.infowindow;s.open(o.searchResultsMap,t);var c=o;document.addEventListener("click",(function(e){e.target.classList.contains("yNHHyP-marker-view")||e.target.closest(".yNHHyP-marker-view")||(c.resetMarker(c.currentMarker),s.close())}))}})),v(this,"addMarkerClickListener",(function(e,t){var a=o;r.viewPort.mobile.matches||r.viewPort.tablet.matches?function(e,t){t.addListener("gmp-click",(function(){a.showPreviewCard(e,t),a.highLightMarker(t,this.markerTitle),a.logMapPinEvent(this.markerTitle)}))}(e,t):function(e,t){t.addListener("gmp-click",(function(){var o=this.markerTitle.split("|");a.showPreviewCard(e,t),a.highLightMarker(t,this.markerTitle),a.highLightDetailCard(o[1]),a.logMapPinEvent(this.markerTitle)}))}(e,t)})),v(this,"logMapPinEvent",(function(e){var t={officeType:e.split("|")[0]};o.logCustomEvent("Google Map Pin",o.analytics.userInterfaceEventType,t,!1)})),v(this,"highLightMarker",(function(e,t){var a=t.split("|"),n=o.findColor(a[0]);null!=o.currentMarker&&o.resetMarker(o.currentMarker);var r=o.searchResultsMap.get(t);r.background="white",r.glyphColor=n,r.borderColor=n,r.glyph=a[1],o.currentMarker=t})),v(this,"resetMarker",(function(e){if(!o.resetMarkerFlag){o.resetMarkerFlag=!0;var t=e.split("|"),a=o.findColor(t[0]),n=o.searchResultsMap.get(e);n.background=a,n.glyphColor="white",n.borderColor=a,n.glyph=t[1]}setTimeout((function(){o.resetMarkerFlag=!1}),300)})),v(this,"findColor",(function(e){var t=o.gpColor;switch(e){case"GP":t=o.gpColor;break;case"KD":t=o.kdColor;break;case"MD":t=o.mdColor;break;case"SNO":t=o.snoColor}return t})),v(this,"highLightDetailCard",(function(e){var t=e;e>o.cardsPerPage&&0==(e%=o.cardsPerPage)&&(e=o.cardsPerPage),n()(".CoveoResult").each((function(){var e=n()(this);e.removeClass("active"),e.removeClass("highlight"),e.removeClass("mute")}));var a=n()("#card-"+t).closest(".CoveoResult");a&&(a.addClass("active"),r.viewPort.mobile.matches&&r.viewPort.tablet.matches||o.scrollCardToTop(t))})),v(this,"scrollCardToTop",(function(e){n()(".card-number").each((function(){var t=n()(this).attr("id").replace("card-",""),o=window.scrollY,a=n()(".coveo-tab-section").outerHeight()+n()(".coveo-results-header").outerHeight();if(o>a&&(o-=a),t==e){var r=n()(".card-number").first().attr("id"),i=n()("#card-"+t),s=n()("#"+r),c=i.offset().top-s.offset().top-o;n()("#officeResultList > .coveo-result-list-container").animate({scrollTop:c},500)}}))})),v(this,"setFirstCardAsActive",(function(){(0,r.WaitForElement)("#officeResultList .CoveoResult:nth-of-type(1)").then((function(){n()("#officeResultList .CoveoResult:nth-of-type(1)").addClass("active")}))})),v(this,"scrollableResultsList",{init:function(){(r.viewPort.desktop.matches||r.viewPort.desktop_lg.matches)&&this.eventListener()},eventListener:function(){var e=this;new ResizeObserver((function(t){return e.setHeight()})).observe(document.querySelector("#map-section"))},setHeight:function(){var e=n()("#map-section").outerHeight(),t=n()(".search-results").outerHeight();n()("#officeResultList .coveo-result-list-container").css({height:e-t+"px"})}}),v(this,"updateFacetModal",(function(e){n()(".facet-modal-close-button").html("Show "+e+" Results"),n()(o.faceModalSelector+" .reset").on("click",(function(){n()(".coveo-results-column .coveo-breadcrumb-clear-all.coveo-accessible-button").trigger("click")}))}
1)),v(this,"processFacetsForDataLayer",(function(){var e=o,t=[];n()(".coveo-breadcrumb-itemsul").each((function(){var e=n()(this).attr("aria-label"),o=[];n()(this).children(".coveo-dynamic-facet-breadcrumb-value-list-item").each((function(){var e=n()(this).text();e.indexOf("Clear")>0&&(e=e.substring(0,e.length-5)),o.push(e)}));var a=o.toString().replace(/,/g,":");t.push(e+"|"+a)})),e.searchResultsFilter=t.toString(),e.updateFilterBarOnRefresh()})),v(this,"updateSearchBoxText",(function(){r.viewPort.mobile.matches||r.viewPort.tablet.matches?n()(".magic-box-input > input").attr("placeholder","Search"):n()(".magic-box-input > input").attr("placeholder","Search for dental offices, services, and blog")})),v(this,"showPromo",(function(){if(0!=n()(".promo-content .container").children().length){var e,t=n()(".promo-content"),o=t.find(".cmp-image");t.length>0&&o&&(e=o.clone().html(),n()(".promo-space").html(e).parent().parent().addClass("hasPromo"))}})),v(this,"showMapInfoWindow",(function(e){var t,a=function(e,t){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!o){if(Array.isArray(e)||(o=h(e))||t&&e&&"number"==typeof e.length){o&&(e=o);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i=!0,s=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return i=e.done,e},e:function(e){s=!0,r=e},f:function(){try{i||null==o.return||o.return()}finally{if(s)throw r}}}}(o.clusterMarkers.entries());try{for(a.s();!(t=a.n()).done;){var n=f(t.value,2),r=n[0],i=n[1];o.expandedClusters.has(r)||google.maps.event.trigger(i,"click")}}catch(e){a.e(e)}finally{a.f()}for(var s=0;s<o.markers.length;s++){o.markers[s].markerTitle.split("|")[1]==e&&(google.maps.event.trigger(o.markers[s],"gmp-click"),o.searchResultsMap.setCenter(o.markers[s].position))}})),v(this,"detectFiltersSelected",(function(){var e=[];n()(".filter-bar").each((function(){if(n()(this).hasClass("selected")){var t=n()(this).data("name");e.push(t)}})),o.applySpecialZoom(e)})),v(this,"applySpecialZoom",(function(e){var t=o;1==e.length&&"Primary Care"==e[0]&&setTimeout((function(){r.viewPort.mobile.matches?t.searchResultsMap.setZoom(6):r.viewPort.tablet.matches?t.searchResultsMap.setZoom(7):t.searchResultsMap.setZoom(8)}),500)})),v(this,"showMapOnAddressClick",(function(e){var t=parseInt(e)-1;n()(".map-btn").trigger("click");var a=o;setTimeout((function(){google.maps.event.trigger(a.markers[t],"gmp-click")}),550)})),v(this,"distance",(function(e,t){return Math.abs(e.lat-t.lat)<.0012&&Math.abs(e.lng-t.lng)<.0012})),v(this,"clusterLocations",(function(e){var t=[];return e.forEach((function(e){for(var a=!1,n=0,r=t;n<r.length;n++){var i=r[n];if(o.distance(i.center,e)){i.members.push(e),a=!0;break}}a||t.push({center:{lat:e.lat,lng:e.lng},members:[e]})})),t})),v(this,"drawSpiderfiedMarkers",(function(e,t){var a=e.center,n=56.25/Math.pow(2,o.zoomLevel),i=2*Math.PI/e.members.length,s=[],c=[];e.members.forEach((function(e,t){var l=t*i,u=a.lat+n*Math.cos(l),d=a.lng+n*Math.sin(l),f=e.markerTitle.split("|"),h=new google.maps.marker.PinElement({background:e.background,borderColor:e.background,glyph:f[1],glyphColor:"#FFFFFF"});o.searchResultsMap.set(e.markerTitle,h);var p,m=new google.maps.marker.AdvancedMarkerElement({position:{lat:a.lat,lng:a.lng},map:o.searchResultsMap,content:h.element,title:e.name,zIndex:1}),v=150*t;requestAnimationFrame((function e(t){p||(p=t);var o=t-p-v;if(o<0)requestAnimationFrame(e);else{var n=Math.min(o/300,1),r=1-Math.pow(1-n,3);m.position={lat:a.lat+(u-a.lat)*r,lng:a.lng+(d-a.lng)*r},y.setPath([a,{lat:a.lat+(u-a.lat)*r,lng:a.lng+(d-a.lng)*r}]),n<1&&requestAnimationFrame(e)}})),m.markerTitle=e.markerTitle,o.markers.push(m);var g=o;m.addListener("gmp-click",(function(){var t=e.result;r.viewPort.mobile.matches||r.viewPort.tablet.matches?(g.showPreviewCard(t,m),g.highLightMarker(m,m.markerTitle),o.logMapPinEvent(m.markerTitle)):(g.showPreviewCard(t,m),g.highLightMarker(m,m.markerTitle),g.highLightDetailCard(f[1]),o.logMapPinEvent(m.markerTitle))}));var y=new google.maps.Polyline({path:[a,a],map:o.searchResultsMap,strokeColor:"#000000",strokeOpacity:1,strokeWeight:2});s.push(m),c.push(y)}));var l=document.createElement("div");l.style.width="8px",l.style.height="8px",l.style.backgroundColor="#808080",l.
1style.borderRadius="50%";var u=new google.maps.marker.AdvancedMarkerElement({position:{lat:a.lat-5e-5,lng:a.lng},map:o.searchResultsMap,content:l,zIndex:0});o.spiderfiedMarkers.set(t,s),o.clusterPolylines.set(t,c),o.clusterCenterDots.set(t,u),o.expandedClusters.add(t);o.logCustomEvent("Expand Spiderfied Marker",o.analytics.userInterfaceEventType,{},!1)})),v(this,"collapseSpiderfiedMarkers",(function(e){var t=o.spiderfiedMarkers.get(e);t&&(t.forEach((function(e){e.map=null})),o.spiderfiedMarkers.delete(e));var a=o.clusterPolylines.get(e);a&&(a.forEach((function(e){e.setMap(null)})),o.clusterPolylines.delete(e));var n=o.clusterCenterDots.get(e);n&&(n.map=null,o.clusterCenterDots.delete(e)),o.expandedClusters.delete(e)})),v(this,"clearAllMarkers",(function(){o.markers&&o.markers.length&&(o.markers.forEach((function(e){e&&e.map&&(e.map=null)})),o.markers=[]),o.spiderfiedMarkers.forEach((function(e){e.forEach((function(e){e&&e.map&&(e.map=null)}))})),o.spiderfiedMarkers.clear(),o.clusterPolylines.forEach((function(e){e.forEach((function(e){e&&e.setMap(null)}))})),o.clusterPolylines.clear(),o.clusterMarkers.forEach((function(e){e&&e.map&&(e.map=null)})),o.clusterMarkers.clear(),o.userLocationMarker&&(o.userLocationMarker.map=null,o.userLocationMarker=null),o.expandedClusters.clear()})),this.el=t,this.rootId="sg-search-v2",this.root=document.getElementById(this.rootId),this.componentName="Coveo Search",this.pageUrl=window.location.pathname,this.pageName=n()("title").html(),this.markers=[],this.clusterMarkers=new Map,this.spiderfiedMarkers=new Map,this.clusterPolylines=new Map,this.clusterCenterDots=new Map,this.expandedClusters=new Set,this.zoomLevel=13,this.resetMarkerFlag=!1,this.gpColor="#0185C4",this.kdColor="#ff9d1c",this.mdColor="#03B79B",this.snoColor="#C697EA",this.currentMarker,this.bounds,this.searchTerm="",this.previousSearchTerm="",this.currentPosition={},this.useMyPosition=!1,this.isNonLocationTerm=!0,this.campaignName,this.searchResultsMap,this.coveoEventListenerAdded,this.cardsPerPage,this.foundLocation=!0,this.redoSearch=!1,this.infowindow,this.faceModalSelector=".coveo-facet-column",this.facetsOpen=!1,this.totalResultsCount,this.registeredFacetFilterListener,this.currentTab,this.searchResultsFilter,this.initCount=n()("#".concat(this.rootId)).data("initCount"),this.kwCount=n()("#".concat(this.rootId)).data("keywordCount"),this.allResultId="#allResultList",this.campaignID=n()("#".concat(this.rootId)).data("campaign"),this.userLocationMarker=null,this.searchedPosition=null,this.analytics={userInterfaceEventType:"userInterface",filterEventType:"filterResults",officeClickEventType:"getOfficeDetails",bookApptEventType:"bookAppt",noActionEventType:"noAction",device:"desktop",loggedFacetEvent:!1,loggedMoreEvent:!1},this.isLocalHost="localhost"==document.location.hostname,this.currentLocTxt="Current Location",this.useInline=n()("#sg-search-v2").hasClass("use-inline"),this.init()}var t,o,a;return t=e,(o=[{key:"sortOfficesByScore",value:function(){var e=n()(".offices-section .list"),t=e.children(".CoveoResult").has(".office-card");t.sort((function(e,t){var o=parseFloat(n()(e).find(".office-card .badge").data("score"))||0;return(parseFloat(n()(t).find(".office-card .badge").data("score"))||0)-o})),e.append(t)}}])&&m(t.prototype,o),a&&m(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},9814:function(e,t,o){o.r(t),o.d(t,{States:function(){return n}});var a=o(4692),n={fullNameStates:["alabama","alaska","arizona","arkansas","california","colorado","connecticut","delaware","florida","georgia","hawaii","idaho","illinois","indiana","iowa","kansas","kentucky","louisiana","maine","maryland","massachusetts","michigan","minnesota","mississippi","missouri","montana","nebraska","nevada","new hampshire","new jersey","new mexico","new york","north carolina","north dakota","ohio","oklahoma","oregon","pennsylvania","rhode island","south carolina","south dakota","tennessee","texas","utah","vermont","virginia","washington","west virginia","wisconsin","wyoming"],abbrevStates:["ak","al","az","ar","ca","co","ct","de","fl","ga","hi","id","il","in","ia","ks","ky","la","me","md","ma","mi","mn","ms","mo","mt","ne","nv","nh","nj","nm","ny","nc","nd","oh","ok","or","pa","ri","sc","sd","tn","tx","ut","vt","va","wa","wv","wi","wy"],isState:function(e){if(e){var t=e.toLowerCase(),o=a.inArray(t,this.fullNameStates);if(-1===o){if(-1!==(o=a.inArray(t,this.abbrevStates)))return!0}else if(-1!==o)return!0}}}},5640:function(e,t,o){function a(e){return e.split(" ").map((function(e){return e[0].toUpperCase()+e.substring(1)})).join(" ")}o.r(t),o.d(t,{upperCaseWord:function(){return a}})}}]);

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.