PageSourceSearch

https://www.gilbaneco.com/wp-content/themes/gilbane2022/js/map.js

js gilbaneco.com collected 2026-10-02 04:22:11 UTC 11,083 bytes, 2 lines download raw bytes

1(self.webpackChunkgilbane2022=self.webpackChunkgilbane2022||[]).push([[6842,4030],{7694:function(e,t,r){"use strict";r.r(t),t.default=[{featureType:"all",elementType:"labels.text.fill",stylers:[{saturation:36},{color:"#333333"},{lightness:40}]},{featureType:"all",elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#ffffff"},{lightness:16}]},{featureType:"all",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#fefefe"},{lightness:20}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#fefefe"},{lightness:17},{weight:1.2}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#f5f5f5"},{lightness:20}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#f5f5f5"},{lightness:21}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#dedede"},{lightness:21}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#ffffff"},{lightness:17}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#ffffff"},{lightness:29},{weight:.2}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:18}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:16}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#f2f2f2"},{lightness:19}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#e9e9e9"},{lightness:17}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#4597b2"}]}]},4147:function(e,t,r){"use strict";r.r(t),r.d(t,{initMap:function(){return d}}),r(8309),r(2222),r(4916),r(3123),r(5306),r(4747);var i=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var i,a,s;if(Array.isArray(t)){if((i=t.length)!=r.length)return!1;for(a=i;0!=a--;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((i=(s=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(a=i;0!=a--;)if(!Object.prototype.hasOwnProperty.call(r,s[a]))return!1;for(a=i;0!=a--;){var n=s[a];if(!e(t[n],r[n]))return!1}return!0}return t!=t&&r!=r};const a="__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 n{constructor({apiKey:e,authReferrerPolicy:t,channel:r,client:s,id:l=a,language:o,libraries:c=[],mapIds:h,nonce:p,region:f,retries:u=3,url:g="https://maps.googleapis.com/maps/api/js",version:d}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=t,this.channel=r,this.client=s,this.id=l||a,this.language=o,this.libraries=c,this.mapIds=h,this.nonce=p,this.region=f,this.retries=u,this.url=g,this.version=d,n.instance){if(!i(this.options,n.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(n.instance.options)}`);return n.instance}n.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=${this.CALLBACK}`,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((r=>{r?t(r.error):e(window.google)}))}))}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){if(document.getElementById(this.id))return void this.callback();const e=this.createUrl(),t=document.createElement("script");t.id=this.id,t.type="text/javascript",t.src=e,t.onerror=this.loadErrorCallback.bind(this),t.defer=!0,t.async=!0,this.nonce&&(t.nonce=this.nonce),document.head.appendChild(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.log(`Failed to load Google Maps script, retrying in ${e} ms.`),setTimeout((()=>{this.deleteScript(),this.setScript()}),e)}else this.onerrorEvent=e,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}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.setCallback(),this.setScript())}}}var l=r(7694),o=window,c=o.emLocatorSettings,h=o.localStorage,p=c.googleMapsApiKey,f=c.centerLat,u=c.centerLng,g=new n({apiKey:p,libraries:["places"]}),d=function(){var e=document.querySelectorAll(".em-map"),t=function(e){var t=e.name,r=e.location,i=e.rating,a=e.user_ratings_total,s=e.address,n=e.placeId,l=e.businessUrl,o=a?'\n\t\t\t\t<p class="reviews" style="--rating:'.concat(i,';">\n\t\t\t\t\t<span class="rating">').concat(i||"",'</span>\n\t\t\t\t\t<span class="stars"></span>\n\t\t\t\t\t<a target="_blank" href="https://search.google.com/local/reviews?placeid=').concat(n,"&q=").concat(encodeURIComponent(t),'&hl=en&gl=US">\n\t\t\t\t\t\t').concat(a," ").concat(a>1?"Reviews":"Review","\n\t\t\t\t\t</a>\n\t\t\t\t</p>"):"",c=l||"https://maps.google.com/maps/dir//".concat(encodeURIComponent("".concat(t," ").concat(s)),"/@").concat(r.lat,",").concat(r.lng,",16z/");return'\n\t\t\t<p class="title">'.concat(t,'</p>\n\t\t\t<p class="address">').concat(s,"</p>\n\t\t\t").concat(o,'\n\t\t\t<a target="_blank" class="larger-map-link" href="https://www.google.com/maps/search/?api=1&query=').concat(r.lat,",").concat(r.lng,",16z&query_place_id=").concat(n,'">\n\t\t\t\tView Larger Map\n\t\t\t</a>\n\t\t\t<a target="_blank" class="directions" href="').concat(c,'">\n\t\t\t\t<svg viewBox="0 0 34 34" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="m28.914 8.344-5.666-2.55h-1.162L17 8.075l-5.086-2.28h-.07l-.17-.128h-.85l-5.667 2.55c-.58.222-.948.796-.907 1.416v17.284c.001.481.246.93.652 1.19.228.147.493.226.765.226.2 0 .398-.044.58-.127l5.087-2.28 5.085 2.28h.071c.323.151.697.151 1.02 0h.071l5.086-2.28 5.086 2.28c.182.083.38.127.58.127a1.416 1.416 0 0 0 1.417-1.417V9.634a1.417 1.417 0 0 0-.836-1.289ZM12.75 9.28l2.834 1.261v14.167l-2.834-1.261V9.279Zm14.167 15.442-2.834-1.26V9.292l2.834 1.261v14.167Z" fill="#4596B2"/></svg>\n\t\t\t\tDirections\n\t\t\t</a>\n\t\t')};g.load().then((function(r){e.forEach((function(e){!function(e,r,i){var a=e.dataset,s=a.latitude,n=a.longitude,o=a.address,c=a.locationbusiness;if(o){var p=o.split(",").length>2,g={lat:parseFloat(s||f),lng:parseFloat(n||u)},d=new i.maps.Map(e,{zoom:p?15:12,center:g,mapTypeControl:!1,disableDefaultUI:!0,gestureHandling:"none",zoomControl:!1,styles:l.default});if(new i.maps.Marker({position:g}).setMap(d),p){var y=i.maps.event.addListener(d,"idle",(function(){d.panBy(0,-90),i.maps.event.removeListener(y)})),m=new i.maps.places.PlacesService(d),v=o.replace(/[^\w\s]/gi,"").replace(/\s+/g,""),b=h.getItem(v);if(b)r.innerHTML=t(JSON.parse(b));else{var w={query:"Gilbane ".concat(o),fields:["place_id"]},I={placeId:"",fields:["name","rating","formatted_phone_number","geometry","user_ratings_total"]};m.findPlaceFromQuery(w,(function(e,a){a===i.maps.places.PlacesServiceStatus.OK&&(I.placeId=e[0].place_id,m.getDetails(I,(function(e,a){a===i.maps.places.PlacesServiceStatus.OK&&(e.address=o,e.placeId=I.placeId,e.location={lat:s,lng:n},e.businessUrl=c,r.innerHTML=t(e),h.setItem(v,JSON.stringify(e)))})))}))}}}}(e.querySelector(".em-map__inner"),e.querySelector(".em-map__place-card"),r)}))}))};document.body.classList.contains("wp-admin")||d()},647:function(e,t,r){var i=r(7908),a=Math.floor,s="".replace,n=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,o,c,h){var p=r+e.length,f=o.length,u=l;return void 0!==c&&(c=i(c),u=n),s.call(h,u,(function(i,s){var n;switch(s.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(p);case"<":n=c[s.slice(1,-1)];break;default:var l=+s;if(0===l)return i;if(l>f){var h=a(l/10);return 0===h?i:h<=f?void 0===o[h-1]?s.charAt(1):o[h-1]+s.charAt(1):i}n=o[l-1]}return void 0===n?"":n}))}},8309:function(e,t,r){var i=r(9781),a=r(6530).EXISTS,s=r(3070).f,n=Function.prototype,l=n.toString,o=/^\s*function ([^ (]*)/;i&&!a&&s(n,"name",{configurable:!0,get:function(){try{return l.call(this).match(o)[
vendor: 1,266 bytes, lines 1-2
11]}catch(e){return""}}})},5306:function(e,t,r){"use strict";var i=r(7007),a=r(7293),s=r(9670),n=r(614),l=r(9303),o=r(7466),c=r(1340),h=r(4488),p=r(1530),f=r(8173),u=r(647),g=r(7651),d=r(5112)("replace"),y=Math.max,m=Math.min,v="$0"==="a".replace(/./,"$0"),b=!!/./[d]&&""===/./[d]("a","$0");i("replace",(function(e,t,r){var i=b?"$":"$0";return[function(e,r){var i=h(this),a=null==e?void 0:f(e,d);return a?a.call(e,i,r):t.call(c(i),e,r)},function(e,a){var h=s(this),f=c(e);if("string"==typeof a&&-1===a.indexOf(i)&&-1===a.indexOf("$<")){var d=r(t,h,f,a);if(d.done)return d.value}var v=n(a);v||(a=c(a));var b=h.global;if(b){var w=h.unicode;h.lastIndex=0}for(var I=[];;){var S=g(h,f);if(null===S)break;if(I.push(S),!b)break;""===c(S[0])&&(h.lastIndex=p(f,o(h.lastIndex),w))}for(var T,k="",$=0,_=0;_<I.length;_++){S=I[_];for(var C=c(S[0]),L=y(m(l(S.index),f.length),0),E=[],O=1;O<S.length;O++)E.push(void 0===(T=S[O])?T:String(T));var A=S.groups;if(v){var M=[C].concat(E,L,f);void 0!==A&&M.push(A);var x=c(a.apply(void 0,M))}else x=u(C,f,L,E,A,a);L>=$&&(k+=f.slice($,L)+x,$=L+C.length)}return k+f.slice($)}]}),!!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!v||b)}}]);
2//# sourceMappingURL=map.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.