PageSourceSearch

https://www.sympoziumrenemacha.cz/dist/Amca/assets/google-maps.2f7bbc81.js

js sympoziumrenemacha.cz collected 2026-10-07 03:52:09 UTC 9,413 bytes, 1 lines download raw bytes

vendor: 4,548 bytes, line 1
1var S=Object.defineProperty;var T=(i,e,t)=>e in i?S(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var h=(i,e,t)=>(T(i,typeof e!="symbol"?e+"":e,t),t);import{_}from"./Amca-main.55fbfb42.js";function A(i,e,t,r){function o(s){return s instanceof t?s:new t(function(n){n(s)})}return new(t||(t=Promise))(function(s,n){function a(l){try{c(r.next(l))}catch(u){n(u)}}function p(l){try{c(r.throw(l))}catch(u){n(u)}}function c(l){l.done?s(l.value):o(l.value).then(a,p)}c((r=r.apply(i,e||[])).next())})}function x(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var P=function i(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,o,s;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(o=r;o--!==0;)if(!i(e[o],t[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[o]))return!1;for(o=r;o--!==0;){var n=s[o];if(!i(e[n],t[n]))return!1}return!0}return e!==e&&t!==t},j=x(P);const O="__googleMapsScriptId";var g;(function(i){i[i.INITIALIZED=0]="INITIALIZED",i[i.LOADING=1]="LOADING",i[i.SUCCESS=2]="SUCCESS",i[i.FAILURE=3]="FAILURE"})(g||(g={}));class d{constructor({apiKey:e,authReferrerPolicy:t,channel:r,client:o,id:s=O,language:n,libraries:a=[],mapIds:p,nonce:c,region:l,retries:u=3,url:y="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=r,this.client=o,this.id=s||O,this.language=n,this.libraries=a,this.mapIds=p,this.nonce=c,this.region=l,this.retries=u,this.url=y,this.version=f,d.instance){if(!j(this.options,d.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(d.instance.options)}`);return d.instance}d.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?g.FAILURE:this.done?g.SUCCESS:this.loading?g.LOADING:g.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback&loading=async",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)})})}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)){this.callback();return}const r={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};Object.keys(r).forEach(s=>!r[s]&&delete r[s]),!((t=(e=window==null?void 0:window.google)===null||e===void 0?void 0:e.maps)===null||t===void 0)&&t.importLibrary||(s=>{let n,a,p,c="The Google Maps JavaScript API",l="google",u="importLibrary",y="__ib__",f=document,m=window;m=m[l]||(m[l]={});const w=m.maps||(m.maps={}),C=new Set,v=new URLSearchParams,I=()=>n||(n=new Promise((k,M)=>A(this,void 0,void 0,function*(){var b;yield a=f.createElement("script"),a.id=this.id,v.set("libraries",[...C]+"");for(p in s)v.set(p.replace(/[A-Z]/g,E=>"_"+E[0].toLowerCase()),s[p]);v.set("callback",l+".maps."+y),a.src=this.url+"?"+v,w[y]=k,a.onerror=()=>n=M(Error(c+" could not load.")),a.nonce=this.nonce||((b=f.querySelector("script[n
1once]"))===null||b===void 0?void 0:b.nonce)||"",f.head.append(a)})));w[u]?console.warn(c+" only loads once. Ignoring:",s):w[u]=(k,...M)=>C.add(k)&&I().then(()=>w[u](k,...M))})(r);const o=this.libraries.map(s=>this.importLibrary(s));o.length||o.push(this.importLibrary("core")),Promise.all(o).then(()=>this.callback(),s=>{const n=new ErrorEvent("error",{error:s});this.loadErrorCallback(n)})}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 t=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},t)}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.loading)if(this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){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."),this.callback();return}this.loading=!0,this.setScript()}}}const F=i=>new L(i);class L{constructor(e){h(this,"puxOptions");h(this,"vendorOptions");h(this,"googleMap");h(this,"googleMarker");h(this,"googleClusterer");h(this,"allMarkersData");h(this,"filteredMarkersData");h(this,"mapMarkers");h(this,"markerCluster");this.puxOptions=e.pux,this.vendorOptions=e.vendor,this.googleMap=void 0,this.googleMarker=void 0,this.googleClusterer=void 0,this.allMarkersData=[],this.filteredMarkersData=[],this.mapMarkers=[],this.markerCluster=null}async initMap(){this.vendorOptions.blackAndWhite?this.setColorTheme("blackAndWhite"):this.setColorTheme(void 0),await new d({apiKey:this.puxOptions.apikey,version:"weekly"}).load(),this.puxOptions.showClusters&&(this.googleClusterer=await _(()=>import("./index.esm.79d48579.js"),[])),this.googleMap=new google.maps.Map(document.querySelector(this.puxOptions.container),{center:{lat:Number.parseFloat(this.puxOptions.centerlat.toString()),lng:Number.parseFloat(this.puxOptions.centerlon.toString())},zoom:Number.parseFloat(this.puxOptions.zoom.toString()),styles:this.vendorOptions.styles}),this.googleMarker=t=>new google.maps.Marker({position:{lat:Number.parseFloat(t.lat),lng:Number.parseFloat(t.lon)},map:this.googleMap,icon:{url:t.pin,scaledSize:new google.maps.Size(...this.puxOptions.pinSize)},title:t.title||""})}initMarkers(e){this.filteredMarkersData=e,this.allMarkersData=e,this.refreshMarkers()}removeMarkers(e){e.map(t=>t.setMap(null))}resetMarkers(){this.filteredMarkersData=[...this.allMarkersData],this.refreshMarkers()}refreshMarkers(){const e=[];this.removeMarkers(this.mapMarkers),this.filteredMarkersData.map(t=>{let r;this.googleMarker&&(r=this.googleMarker(t),this.puxOptions.showInfoWindows&&this.addInfoWindow(r,t),e.push(r))}),this.mapMarkers=[...e],this.puxOptions.showClusters&&this.markerCluster&&this.refreshClusters()}
1initClusters(){this.refreshClusters()}refreshClusters(){this.removeClusters();const e={gridSize:40,styles:[{width:60,height:60,textColor:"white",className:"puxMapPin",backgroundPosition:"center center",url:"/dist/NenoVision/img/cluster-icon.svg",textSize:20}],maxZoom:15};this.googleMap&&this.googleClusterer&&(this.markerCluster=new this.googleClusterer.default(this.googleMap,this.mapMarkers,e))}removeClusters(){this.markerCluster&&(this.markerCluster.clearMarkers(),this.markerCluster=null)}addInfoWindow(e,t){let r=this.vendorOptions.infoWindowLayout;const s=(()=>{var n;return r=r.replaceAll("%title%",(n=t.title)!=null?n:""),Object.keys(t.custom).map(a=>{t.custom[a]?r=r.replaceAll("%"+a+"%",t.custom[a]):r=r.replaceAll("%"+a+"%","")}),new google.maps.InfoWindow({content:r})})();e.addListener("click",()=>{s.open({anchor:e,map:this.googleMap,shouldFocus:!0})})}setColorTheme(e){switch(e){case"blackAndWhite":this.vendorOptions.styles=[{featureType:"road.highway",elementType:"geometry",stylers:[{saturation:-100},{lightness:-8},{gamma:1.18}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{saturation:-100},{gamma:1},{lightness:-24}]},{featureType:"poi",elementType:"geometry",stylers:[{saturation:-100}]},{featureType:"administrative",stylers:[{saturation:-100}]},{featureType:"transit",stylers:[{saturation:-100}]},{featureType:"water",elementType:"geometry.fill",stylers:[{saturation:-100}]},{featureType:"road",stylers:[{saturation:-100}]},{featureType:"administrative",stylers:[{saturation:-100}]},{featureType:"landscape",stylers:[{saturation:-100}]},{featureType:"poi",stylers:[{saturation:-100}]}];break;default:this.vendorOptions.styles=[]}}}export{L as GoogleMap,F as default};

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.