PageSourceSearch

https://www.billionchevy.com/resources/googleMyBusinessMapsChunk.j…&h=1cd257709c6abfd01940

js billionchevy.com collected 2026-09-28 17:34:45 UTC 10,242 bytes, 3 lines download raw bytes

1/*! For license information please see googleMyBusinessMapsChunk.js.LICENSE.txt */
2"use strict";(self.webpackChunksite_client_side=self.webpackChunksite_client_side||[]).push([[926],{3241:(e,t,i)=>{i.d(t,{aN:()=>r});var o=function e(t,i){if(t===i)return!0;if(t&&i&&"object"==typeof t&&"object"==typeof i){if(t.constructor!==i.constructor)return!1;var o,n,s;if(Array.isArray(t)){if((o=t.length)!=i.length)return!1;for(n=o;0!=n--;)if(!e(t[n],i[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===i.toString();if((o=(s=Object.keys(t)).length)!==Object.keys(i).length)return!1;for(n=o;0!=n--;)if(!Object.prototype.hasOwnProperty.call(i,s[n]))return!1;for(n=o;0!=n--;){var r=s[n];if(!e(t[r],i[r]))return!1}return!0}return t!=t&&i!=i};const n="__googleMapsScriptId";var s;!function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"}(s||(s={}));class r{constructor({apiKey:e,authReferrerPolicy:t,channel:i,client:s,id:a=n,language:l,libraries:h=[],mapIds:c,nonce:d,region:g,retries:p=3,url:u="https://maps.googleapis.com/maps/api/js",version:f}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=t,this.channel=i,this.client=s,this.id=a||n,this.language=l,this.libraries=h,this.mapIds=c,this.nonce=d,this.region=g,this.retries=p,this.url=u,this.version=f,r.instance){if(!o(this.options,r.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(r.instance.options)}`);return r.instance}r.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 e=this.url;return e+="?callback=__googleMapsCallback",this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`&region=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise(((e,t)=>{this.loadCallback((i=>{i?t(i.error):e(window.google)}))}))}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,t;if(document.getElementById(this.id))return void this.callback();const i={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};
2Object.keys(i).forEach((e=>!i[e]&&delete i[e])),(null===(t=null===(e=null===window||void 0===window?void 0:window.google)||void 0===e?void 0:e.maps)||void 0===t?void 0:t.importLibrary)||(e=>{let t,i,o,n="The Google Maps JavaScript API",s="google",r="importLibrary",a="__ib__",l=document,h=window;h=h[s]||(h[s]={});const c=h.maps||(h.maps={}),d=new Set,g=new URLSearchParams,p=()=>t||(t=new Promise(((r,h)=>{return p=this,u=void 0,m=function*(){var p;for(o in yield i=l.createElement("script"),i.id=this.id,g.set("libraries",[...d]+""),e)g.set(o.replace(/[A-Z]/g,(e=>"_"+e[0].toLowerCase())),e[o]);g.set("callback",s+".maps."+a),i.src=this.url+"?"+g,c[a]=r,i.onerror=()=>t=h(Error(n+" could not load.")),i.nonce=this.nonce||(null===(p=l.querySelector("script[nonce]"))||void 0===p?void 0:p.nonce)||"",l.head.append(i)},new((f=void 0)||(f=Promise))((function(e,t){function i(e){try{n(m.next(e))}catch(e){t(e)}}function o(e){try{n(m.throw(e))}catch(e){t(e)}}function n(t){var n;t.done?e(t.value):(n=t.value,n instanceof f?n:new f((function(e){e(n)}))).then(i,o)}n((m=m.apply(p,u||[])).next())}));var p,u,f,m})));c[r]?console.warn(n+" only loads once. Ignoring:",e):c[r]=(e,...t)=>d.add(e)&&p().then((()=>c[r](e,...t)))})(i);const o=this.libraries.map((e=>this.importLibrary(e)));o.length||o.push(this.importLibrary("core")),Promise.all(o).then((()=>this.callback()),(e=>{const t=new ErrorEvent("error",{error:e});this.loadErrorCallback(t)}))}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const e=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${e} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),e)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach((e=>{e(this.onerrorEvent)})),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version)return 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."),void this.callback();this.loading||(this.loading=!0,this.setScript())}}}},9548:(e,t,i)=>{i.r(t),i.d(t,{default:()=>s});var o=i(3241),n=function(e,t,i,o){return new(i||(i=Promise))((function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((o=o.apply(e,t||[])).next())}))};class s{constructor(e){this._mapElement=e,this._isLoaded={googleMapsApi:!1,mapConfig:!1},this.initialize()}initialize(){this.loadGoogleMaps(),this.fetchMapConfig()}loadGoogleMaps(){var e;return n(this,void 0,void 0,(function*(){const t=null===(e=this._mapElement)||void 0===e?void 0:e.getAttribute("key");try{const e=new o.aN({apiKey:t,version:"quarterly"});yield e.load(),this._isLoaded.googleMapsApi=!0}catch(e){return void console.error("Failed to fetch from Google Maps API.")}this.areAllResourcesLoaded()&&this.renderMap()}))}fetchMapConfig(){return n(this,void 0,void 0,(function*(){try{const e=yield fetch(`/api/googlemaps/config/${window.DlronGlobal_DealerId}`);this._mapConfig=yield null==e?void 0:e.json(),this._isLoaded.mapConfig=!0}catch(e){return void console.error("Failed to fetch place data from API")}this.areAllResourcesLoaded()&&this.renderMap()}))}areAllResourcesLoaded(){return Object.values(this._isLoaded).every((e=>e))}renderMap(){var e,t,i,o;if(this._mapConfig){console.log("Rendering map.");const n=new google.maps.LatLngBounds,s=(null===(e=this._mapConfig)||void 0===e?void 0:e.Places)||[],r=null===(t=this._mapConfig)||void 0===t?void 0:t.MapOptions;if(r){r.Center={lat:null===(i=r.Center)||void 0===i?void 0:i.latitude,lng:null===(o=r.Center)||void 0===o?void 0:o.longitude};const e=this.getDefaultPlace(s,r.platformLocationId);this._map=new google.maps.Map(this._mapElement,r),this._infoWindow=new google.maps.InfoWindow,this._map.setOptions({gestureHandling:"cooperative"}),this.disableScrolling(),this.addPlaces(s,e,n),this.setBounds(n,r.Zoom),console.log("Map rendered.")}}}disableScrolling(){this._map.setOptions({scrollwheel:!1}),google.maps.event.addListener(this._map,"click",(function(e){this.setOptions({scrollwheel:!0})}
2)),google.maps.event.addListener(this._map,"drag",(function(e){this.setOptions({scrollwheel:!0})})),google.maps.event.addListener(this._map,"mouseout",(function(e){this.setOptions({scrollwheel:!1})}))}addPlaces(e,t,i){for(const o of e){const e={lat:o.Location.latitude,lng:o.Location.longitude},n=new google.maps.Marker({map:this._map,position:e,animation:google.maps.Animation.DROP});i.extend(e),this.addListenerToMarker(o,n),o===t&&this.displayInfoWindow(o,n)}}setBounds(e,t){this._map.fitBounds(e),google.maps.event.addListenerOnce(this._map,"bounds_changed",(function(e){this.setZoom(t)}))}getDefaultPlace(e,t){let i=e[0];return e.forEach((function(e){e.PlaceId===t&&(i=e)})),i}addListenerToMarker(e,t){google.maps.event.addListener(t,"click",(()=>this.displayInfoWindow(e,t)))}displayInfoWindow(e,t){this._infoWindow.setContent(this.infoBoxContent(e)),this._infoWindow.open(this._map,t),this._map.setCenter(t.getPosition())}ratingsBlock(e){let t=`<h6 class="rating-bar" style="color:#e87725;">${e}&nbsp;`;for(let i=1;i<=5;i++)t+=i-.4<=e?'<i class="fa fa-star"></i>':'<i class="fa fa-star-o"></i>';return t+"</h6>"}infoBoxContent(e){const t=e.Address.replace(/\s/g,"+");document.querySelectorAll(".navLink").forEach((e=>{e.innerHTML=t}));const i=e.Rating?this.ratingsBlock(e.Rating):"",o=i&&e.Options.ShowRating?i:"",n=/iPhone|iPad|iPod/i.test(navigator.userAgent)?`http://maps.apple.com/?daddr=Current+Location&saddr=${t}`:`https://www.google.com/maps/dir/Current+Location/${t}`,s=e.Options.DirectionsLink?`<div class="link" style="float:left;width:50%;">\n          <a class="navLink" href="${n}" target="_blank">\n            <i class="fa fa-automobile"></i>\n            Get Directions\n          </a>\n        </div>`:"";e.HasError&&console.error(e.ErrorMessage);const r=e.Options.PhoneLink&&e.PhoneNumber?`<div class="link" style="float:right;width:50%;">\n          <a href="tel:${e.PhoneNumber}" target="_blank">\n            <i class="fa fa-phone"></i> \n            ${e.PhoneNumber}\n          </a>\n        </div>`:"";return`<h5 class="info-window-title">${e.Name}</h5>\n      ${o}\n      ${e.Address}\n      <div>\n        ${s}\n        ${r}\n      </div>\n    `}}}}]);
3//# sourceMappingURL=googleMyBusinessMapsChunk.js.map?v=23.116.0+20260924.10.cf1de5f1f4d4b9684c3a72f57e64cdbc99f7122f&h=1cd257709c6abfd01940

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.