PageSourceSearch

https://www.diagdent.pl/js/module/Google.min.js

js diagdent.pl collected 2026-10-08 15:59:05 UTC 1,549 bytes, 1 lines download raw bytes

1import*as e from"./tools.min.js";var t={d:(e,n)=>{for(var a in n)t.o(n,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:n[a]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},n={};t.d(n,{d:()=>o});const a=(e=>{var n={};return t.d(n,e),n})({assets:()=>e.assets}),r={api:new Map},o=(e,t)=>new Promise((async(n,o)=>{if(!(e instanceof HTMLElement))return o(new Error("elem have to be a html element"));let s;"string"==typeof t&&t||(t=null);try{if(s=JSON.parse(e.dataset.setting),!(s&&"zoom"in s&&"lat"in s&&"lng"in s))return o(new Error("elem has not been setting"));if(!r.api.has(t)){let e="https://maps.googleapis.com/maps/api/js";t&&(e=`${e}?key=${t}`),await a.assets.addJs(e);const n="google"in window&&google?.maps;n||o(new Error("Error load map Api")),r.api.set(t,{mapApi:n,maps:[]}),n.event.addDomListener(window,"resize",(()=>{for(const e of r.api.get(t).maps){const t=e.getCenter();n.event.trigger(e,"resize"),e.setCenter(t)}}))}}catch(e){return o(e)}const i=r.api.get(t).mapApi,p=new i.Map(e,{zoom:s.zoom,center:new i.LatLng(s.lat,s.lng),mapTypeId:i.MapTypeId.ROADMAP,draggable:!0,scrollwheel:!1});if(r.api.get(t).maps.push(p),Array.isArray(s.marks))for(const e of s.marks)if(e&&"lat"in e&&"lon"in e){const t=new i.Marker({position:new i.LatLng(e.lat,e.lon),map:p});if("string"==typeof e.text&&e.text){const n=new i.InfoWindow({content:"<div class='infoMaps'>"+e.text+"</div>",maxWidth:200});i.event.addListener(t,"click",(()=>{n.open(p,t)})),i.event.trigger(t,"click")}}return n({map:p,api:i})}));var s=n.d;export{s as MapJs};

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.