PageSourceSearch

https://lumapr.com/wp-content/themes/luma/build/161.0fa81841b2ac80372f0f.js

js lumapr.com collected 2026-10-02 03:11:13 UTC 2,957 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkeverest_agency_child=self.webpackChunkeverest_agency_child||[]).push([[161],{161:function(e,t,n){n.r(t),n.d(t,{default:function(){return c}});const o=n(823);let a=null,r=null,i=null;const l=e=>{if("kam"===e.dataset.filter)return!0;const t=window.location.search;return!!new URLSearchParams(t).get("key_account_manager")},s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*";i.forEach((t=>"*"===e||t.dataset.type===e?(t.classList.remove("hide"),void t.classList.add("show")):(t.classList.remove("show"),void t.classList.add("hide"))))};function c(e){i=document.querySelectorAll("[data-office-location]");const t=l(e),n=e.parentNode.querySelector("#account-manager-controller");n.checked=t,s(t?"kam":"*"),r=new google.maps.Map(e,{zoom:9,center:{lat:18.2625366,lng:-66.5222027}}),google.maps.event.addListenerOnce(r,"tilesloaded",(function(){navigator.geolocation.getCurrentPosition((e=>{const{coords:t}=e;r.setCenter({lat:t.latitude,lng:t.longitude,zoom:11})}),(e=>console.warn(e.message)))}));let c=null;const u=e=>(c&&c.destroy(),c=new e.Builder(r).withRadius(100).withMaxZoom(19).withMinZoom(0).withCustomMarkerIcon((function(){return{path:"M36,9A18.5,18.5,0,0,0,17.44,27.47v.09C17.44,37.86,36,63,36,63S54.56,37.86,54.56,27.56A18.51,18.51,0,0,0,36.1,9Zm0,27a8.44,8.44,0,1,1,8.44-8.44h0A8.37,8.37,0,0,1,36.16,36Z",fillColor:"#FF6250",fillOpacity:1,strokeWeight:0,scale:.75,anchor:new google.maps.Point(35,55)}})).withMarkerClick(d).build(),c);let g=null;const h=async function(){let{filterAccountManager:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};g||(g=await new Promise((e=>{o.getClusterer().then((t=>{e(t)}))})));const t=u(g);t.load(await f({filterAccountManager:e}))};google.maps.event.addListenerOnce(r,"tilesloaded",(()=>{h({filterAccountManager:l(e)})})),a=new google.maps.InfoWindow({map:r}),n.addEventListener("change",(()=>{h({filterAccountManager:n.checked}),s(n.checked?"kam":"*")}))}const d=e=>{a.close();const{title:t,address:n,hours:o}=JSON.parse(e.getTitle()),i=`<h4>${t}</h4><div><p>${n}</p><span>Hours: ${o}</span></div>`;a.setContent(i),a.open(r,e)};let u=null;const g=async e=>{let{filterAccountManager:t=!1}=e;if(!u)try{const e=await(await fetch(`${window.location.origin}/wp-json/wp/v2/location/?per_page=50`)).json();u=e}catch(e){return console.error(e),!1}return u.filter((e=>e.fields.geo_coordinates.latitude&&e.fields.geo_coordinates.longitude)).filter((e=>!t||e.fields.key_account_manager)).map((e=>({lat:e.fields.geo_coordinates.latitude,lng:e.fields.geo_coordinates.longitude,properties:{name:JSON.stringify({title:e.title.rendered,address:e.fields.address,hours:e.fields.hours})}})))},f=async e=>{let{filterAccountManager:t=!1}=e;return{type:"FeatureCollection",features:(await g({filterAccountManager:t})).map(((e,t)=>{let{lat:n,lng:o,properties:a}=e;return{type:"Feature",id:`l:${t}`,geometry:{type:"Point",coordinates:[o,n]},properties: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.