PageSourceSearch

https://www.provenanceproperties.com/assets/themes/provenance-properties/js/map.3766fd15086841fa5282.js

js provenanceproperties.com collected 2026-10-08 08:03:07 UTC 4,364 bytes, 10 lines download raw bytes

1(self.webpackChunkpattern_library=self.webpackChunkpattern_library||[]).push([[163],{416:
2/*!***************************************************!*\
3  !*** ./source/patterns/03-components/maps/map.js ***!
4  \***************************************************/function(e,n,o){"use strict";o.r(n),o.d(n,{Map:function(){return l}});var t=o(/*! ../../../js/utils/datalayer */452);const i=o(/*! google-maps */723);i.KEY="AIzaSyAdW2WAl_77JxakOBYcIQt_5A28sUJIdro",i.VERSION="3.37";class l{constructor(e){this.container=e,this.init()}init(){i.load(e=>{const n=e.maps,o=[];let t;const i={zoom:7,maxZoom:18,center:new n.LatLng(19.294047,-81.282721)},a=new n.Map(this.container.querySelector(".js-map"),i);let r=1;this.container.querySelectorAll(".js-map-item").forEach(e=>{const n=Number.parseFloat(e.querySelector(".js-map-item-longitude").innerHTML),i={lat:Number.parseFloat(e.querySelector(".js-map-item-latitude").innerHTML),lng:n},c=new window.google.maps.Marker({position:i,map:a,icon:this.container.dataset.markerIcon,order:r});e.setAttribute("pin-order",r);const s=e.querySelector(".js-map-item-title").innerHTML,u=e.querySelector(".js-map-item-description").innerHTML;if(s||u){const e=`<div class="map-pin__infobox"><h2 class="map-pin__title">${s}</h2><div class="map-pin__description">${u}</div></div>`,n=new window.google.maps.InfoWindow({content:e});window.google.maps.event.addListener(c,"click",()=>{t&&t.close(),n.open(a,c),t=n,this.container.querySelectorAll(".js-map-item").forEach(e=>{e.classList.remove("show")});const e=this.container.querySelector(`[pin-order='${c.order}']`);e.classList.add("show"),l.trackClick(e.querySelector(".js-map-item-title"))})}o.push(c),r++});const c=new window.google.maps.LatLngBounds;for(let e=0;e<o.length;e++)c.extend(o[e].getPosition());a.fitBounds(c);let s=!1;a.addListener("idle",()=>{s||(a.getZoom()>i.maxZoom&&a.setZoom(i.maxZoom),a.getZoom()<i.zoom&&a.setZoom(i.zoom),s=!0)})})}static trackClick(e){(0,t.A)({event:"link.click",linkName:unescape(e.innerText).trim(),linkType:"map"})}}n.default=e=>new l(e)},452:
5/*!**************************************!*\
6  !*** ./source/js/utils/datalayer.js ***!
7  \**************************************/function(e,n){"use strict";n.A=e=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}},723:
8/*!************************************************!*\
9  !*** ./node_modules/google-maps/lib/Google.js ***!
10  \************************************************/function(e,n,o){var t,i;!function(){if(null===(typeof window!=="undefined"?window:null))throw new Error("Google-maps package can be used only in browser");void 0===(i="function"==typeof(t=function(){"use strict";var e="3.31",n=null,o=null,t=!1,i=[],l=[],a=null,r={URL:"https://maps.googleapis.com/maps/api/js",KEY:null,LIBRARIES:[],CLIENT:null,CHANNEL:null,LANGUAGE:null,REGION:null};r.VERSION=e,r.WINDOW_CALLBACK_NAME="__google_maps_api_provider_initializator__",r._googleMockApiObject={},r.load=function(e){null===o?!0===t?e&&i.push(e):(t=!0,window[r.WINDOW_CALLBACK_NAME]=function(){c(e)},r.createLoader()):e&&e(o)},r.createLoader=function(){(n=document.createElement("script")).type="text/javascript",n.src=r.createUrl(),document.body.appendChild(n)},r.isLoaded=function(){return null!==o},r.createUrl=function(){var e=r.URL;return e+="?callback="+r.WINDOW_CALLBACK_NAME,r.KEY&&(e+="&key="+r.KEY),r.LIBRARIES.length>0&&(e+="&libraries="+r.LIBRARIES.join(",")),r.CLIENT&&(e+="&client="+r.CLIENT),r.CHANNEL&&(e+="&channel="+r.CHANNEL),r.LANGUAGE&&(e+="&language="+r.LANGUAGE),r.REGION&&(e+="&region="+r.REGION),r.VERSION&&(e+="&v="+r.VERSION),e},r.release=function(c){var s=function(){r.KEY=null,r.LIBRARIES=[],r.CLIENT=null,r.CHANNEL=null,r.LANGUAGE=null,r.REGION=null,r.VERSION=e,o=null,t=!1,i=[],l=[],void 0!==window.google&&delete window.google,void 0!==window[r.WINDOW_CALLBACK_NAME]&&delete window[r.WINDOW_CALLBACK_NAME],null!==a&&(r.createLoader=a,a=null),null!==n&&(n.parentElement.removeChild(n),n=null),c&&c()};t?r.load(function(){s()}):s()},r.onLoad=function(e){l.push(e)},r.makeMock=function(){a=r.createLoader,r.createLoader=function(){window.google=r._googleMockApiObject,window[r.WINDOW_CALLBACK_NAME]()}};var c=function(e){var n;for(t=!1,null===o&&(o=window.google),n=0;n<l.length;n++)l[n](o);for(e&&e(o),n=0;n<i.length;n++)i[n](o);i=[]};return r})?t.call(n,o,n,e):t)||(e.exports=i)}()}}]);

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.