1"use strict";(self.webpackChunkporta_frontend_starter_kit=self.webpackChunkporta_frontend_starter_kit||[]).push([[196],{4196:(t,a,e)=>{e.r(a),e.d(a,{initSmaps:()=>s});var o=e(1266),i=e.n(o);const s=()=>{i()(".leaflet-map").each(((t,a)=>{n(i()(a).attr("id"))}))},n=t=>{if(npuSMaps[t]){if(i()("#"+t).hasClass("leaflet-container")){npuSMaps[t].invalidateSize();const a=[];return npuSMaps[t].eachLayer((t=>t instanceof L.Marker&&a.push(t))),void npuSMaps[t].fitBounds(L.featureGroup(a).getBounds())}delete npuSMaps[t]}const a=i()(`#${t}`);if(!a.length)return;let e=parseFloat(a.attr("data-lat"));e||(e=49.8285742);let o=parseFloat(a.attr("data-lng"));o||(o=15.4804057);let s=parseInt(a.attr("data-zoom"));s||(s=8);let n=!0;void 0!==a.attr("data-scroll-wheel-zoom-disabled")&&(n=!1);const r=L.map(t,{scrollWheelZoom:n,zoomControl:!1,dragging:!L.Browser.mobile,tap:!L.Browser.mobile}).setView([e,o],s);r.attributionControl.setPrefix(!1),L.tileLayer("https://api.mapy.cz/v1/maptiles/outdoor/256/{z}/{x}/{y}?apikey=JI34Swbs2zrsAnnYBswzcOCxwc4fdqFr5yOqP7dboGQ",{minZoom:0,maxZoom:19,attribution:'<a href="https://api.mapy.cz/copyright" target="_blank" class="no-after-icon">© Seznam.cz a.s. a dalÅ¡Ã</a>'}).addTo(r);const p=L.icon({iconUrl:"/static/images/map/marker-icon.png",iconSize:[25,41],iconAnchor:[12,40]});L.control.zoom({position:"topright"}).addTo(r);if((new(L.Control.extend({options:{position:"bottomright"},onAdd:function(t){const a=L.DomUtil.create("div"),e=L.DomUtil.create("a","",a);return e.setAttribute("href","http://mapy.cz/"),e.setAttribute("target","_blank"),e.innerHTML='<img src="https://api.mapy.cz/img/api/logo.svg" />',L.DomEvent.disableClickPropagation(e),a}}))).addTo(r),a.attr("data-markers")){const t=JSON.parse(a.attr("data-markers")),e=[];if(t){for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)){const o=L.marker([t[a].latitude,t[a].longitude],{icon:p});if(e.push([t[a].latitude,t[a].longitude]),t[a].title){let e="";if(e+='<div class="card" style="width: 312px;">',e+='<div class="card-header">',e+='<div class="card-header--content">',t[a].previewImage&&(t[a].popupUrl?e+='<div class="img"><a class="ajax" href="'+t[a].popupUrl+'">'+t[a].previewImage+"</a></div>":t[a].url?e+='<div class="img"><a href="'+t[a].url+'">'+t[a].previewImage+"</a></div>":e+='<div class="img">'+t[a].previewImage+"</div>"),t[a].popupUrl?e+=`<p class="title"><a class="ajax" href="${t[a].popupUrl}">${t[a].title}</a></p>`:t[a].url?e+=`<p class="title"><a href="${t[a].url}">${t[a].title}</a></p>`:e+=`<p class="title">${t[a].title}</p>`,e+="</div>",t[a].regionName||t[a].sightTypeName||t[a].ticketsUrl){if(e+='<div class="text">',e+='<div class="text--info">',e+=`<span class="region">${t[a].regionName}</span>`,t[a].sightTypeDetail)for(const o in t[a].sightTypeDetail)e+=`<span class="type type-${t[a].sightTypeDetail[o].icon}">${t[a].sightTypeDetail[o].name}</span>`;e+="</div>",t[a].ticketsUrl&&(e+=`<a href="${t[a].ticketsUrl}" role="button" class="btn btn-secondary">Vstupenky</a>`),e+="</div>"}e+='<div class="close close-map-popup-button"></div>',e+="</div>",e+="</div>",o.bindPopup(e)}o.addTo(r)}const a=new L.LatLngBounds(e);r.fitBounds(a)}r.on("popupopen",(function(t){for(const a of document.getElementsByClassName("close-map-popup-button"))a.addEventListener("click",(()=>{r.closePopup(t.popup)}))}))}else L.marker([e,o],{icon:p}).addTo(r);a.attr("data-gpx-input")&&new L.GPX(a.attr("data-gpx-input").trim(),{async:!0,polyline_options:{color:"red"},markers:{startIcon:null,endIcon:null}}).on("loaded",(function(t){r.fitBounds(t.target.getBounds())})).addTo(r),npuSMaps[t]=r}}}]);
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.