!function(e){function t(t){for(var n,i,s=t[0],l=t[1],c=t[2],f=0,d=[];f=.1*document.body.clientHeight}},mounted:function(){this.throttledScrollHandler=(0,a.throttle)(300,this.onScroll),document.addEventListener("scroll",this.throttledScrollHandler)},beforeDestroy:function(){document.removeEventListener("scroll",this.throttledScrollHandler)}}},function(e,t,r){"use strict";r.r(t);var n=r(5),a=r.n(n);for(var o in n)"default"!==o&&function(e){r.d(t,e,function(){return n[e]})}(o);t.default=a.a},function(e,t,r){},function(e,t,r){},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{item:{required:!0},searchText:{required:!0}}}},function(e,t,r){"use strict";r.r(t);var n=r(9),a=r.n(n);for(var o in n)"default"!==o&&function(e){r.d(t,e,function(){return n[e]})}(o);t.default=a.a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a=r(40),o=(n=a)&&n.__esModule?n:{default:n};t.default={name:"SiteSearch",data:function(){return{item:null,items:[],itemTemplate:o.default}},methods:{getLabel:function(e){return e.label},onItemSelected:function(e){window.location.href=e.value},onUpdateItems:function(e){this.items=this.allItems.filter(function(t){return-1!==t.label.toLowerCase().indexOf(e.toLowerCase())})}},mounted:function(){var e=this;this.$http.get("/api/search.json").then(function(t){e.allItems=e.items=t.body.filter(function(e){return!!e.label})})}}},function(e,t,r){"use strict";r.r(t);var n=r(11),a=r.n(n);for(var o in n)"default"!==o&&function(e){r.d(t,e,function(){return n[e]})}(o);t.default=a.a},function(e,t,r){},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;tOpenStreetMap contributors, CC-BY-SA, Imagery © Mapbox',intentionMapLayerGeoJson:null}},computed:{shareUrl:function(){var e="https://www.facebook.com/sharer/sharer.php?u="+window.location.href.split("#")[0];return this.currentItem&&(e+="#"+this.currentItem.url),e},categoryListExpanded:function(){return Object.values(this.categories).reduce(function(e,t){return e||t.expanded},!1)}},methods:{initialize:function(e){var t=this,r={features:e.features.map(function(e){return e.properties.id=parseInt(e.properties.id),e.properties.slug=t.slugify(e.properties.name),e.properties.url=e.properties.id+"-"+e.properties.slug,e})};this.initCategories(r),r.features.forEach(function(e){e.properties.category&&t.categories[e.properties.category]&&(e.properties.categoryObj=t.categories[e.properties.category])}),console.log(r.features),this.initMap(r)},initCategories:function(e){var t=this,r={},a=[].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t1&&void 0!==arguments[1])||arguments[1];this.map.fitBounds(e.getBounds()),this.currentItem=e.feature.properties,t&&this.setUrlHash(this.currentItem)},zoomToCategoryItem:function(e,t){var r=Object.values(this.layer._layers).find(function(e){return e.feature.properties.id==t.id});r&&this.zoomTo(r)},zoomToItemBySlugUrl:function(e){var t=Object.values(this.layer._layers).find(function(t){return t.feature.properties.url==e});t&&this.zoomTo(t,!1)}},mounted:function(){var e=this;this.$nextTick(function(){e.map=e.$refs.map.mapObject,e.$http.get(e.datasetUrl).then(function(t){return e.initialize(t.body)})})},beforeDestroy:function(){window.removeEventListener("hashchange",this.onHashChange)}}},function(e,t,r){"use strict";r.r(t);var n=r(14),a=r.n(n);for(var o in n)"default"!==o&&function(e){r.d(t,e,function(){return n[e]})}(o);t.default=a.a},function(e,t,r){},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=[{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#d3d3d3"}]},{featureType:"transit",stylers:[{color:"#808080"},{visibility:"off"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{visibility:"on"},{color:"#b3b3b3"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#ffffff"}]},{featureType:"road.local",elementType:"geometry.fill",stylers:[{visibility:"on"},{color:"#ffffff"},{weight:1.8}]},{featureType:"road.local",elementType:"geometry.stroke",stylers:[{color:"#d7d7d7"}]},{featureType:"poi",elementType:"geometry.fill",stylers:[{visibility:"on"},{color:"#ebebeb"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#a7a7a7"}]},{featureType:"road.arterial",elementType:"geometry.fill",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"geometry.fill",stylers:[{color:"#ffffff"}]},{featureType:"landscape",elementType:"geometry.fill",stylers:[{visibility:"on"},{color:"#efefef"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#696969"}]},{featureType:"administrative",elementType:"labels.text.fill",stylers:[{visibility:"on"},{color:"#737373"}]},{featureType:"poi",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"geometry.stroke",stylers:[{color:"#d6d6d6"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{},{featureType:"poi",elementType:"geometry.fill",stylers:[{color:"#dadada"}]}];t.default={props:{layerId:{type:String,required:!0},layerCacheVersion:{type:String,required:!0}},data:function(){return{zoom:7,center:{lat:0,lng:0},mapOptions:{mapTypeControl:!1,streetViewControl:!1,fullscreenControl:!1,styles:n},selectionInfo:null}},methods:{hideCurrentMarker:function(){this.selectionInfo&&this.selectionInfo.marker&&this.selectionInfo.marker.setMap(null)},closeInfoWindow:function(){this.hideCurrentMarker(),this.selectionInfo=null},onMapReady:function(){var e=this;new google.maps.KmlLayer({url:"https://www.google.com/maps/d/kml?forcekml=1&mid="+this.layerId+"&__v="+this.layerCacheVersion,map:this.$refs.map.$_map,suppressInfoWindows:!0}).addListener("click",function(t){e.hideCurrentMarker();var r=new google.maps.Marker({position:t.latLng,map:e.$refs.map.$_map,icon:"/assets/img/map-marker.svg"});e.selectionInfo={title:t.featureData.name,content:t.featureData.description,marker:r}}),this.$refs.map.$_map.addListener("click",function(t){e.closeInfoWindow()})}}}},function(e,t,r){"use strict";r.r(t);var n=r(17),a=r.n(n);for(var o in n)"default"!==o&&function(e){r.d(t,e,function(){return n[e]})}(o);t.default=a.a},function(e,t,r){},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={props:{calendarId:{type:String,required:!0},apiKey:{type:String,required:!0}},data:function(){return{eventGroups:[],toShow:7}},methods:{showMore:function(){this.toShow+=10},loadEventsFromStorage:function(){if(window.sessionStorage&&window.sessionStorage.__pircal)return JSON.parse(window.sessionStorage.__pircal)},storeEventsToStorage:function(){window.sessionStorage&&(window.sessionStorage.__pircal=JSON.stringify(this.eventGroups))}},mounted:function(){var e=this,t=this.loadEventsFromStorage();if(t)this.eventGroups=t;else{var r=new Date,n=r.toISOString(),a=new Date(+r+7776e6).toISOString(),o=0;this.$http.get("https://www.googleapis.com/calendar/v3/calendars/"+this.calendarId+"/events?key="+encodeURIComponent(this.apiKey)+"&maxResults=20&timeMin="+encodeURIComponent(n)+"&timeMax="+encodeURIComponent(a)+"&sanitizeHtml=true&singleEvents=true&maxAtendees=1").then(function(t){var r=[];t.body.items.map(function(e){var t=new Date(e.start.dateTime||e.start.date),r=new Date(e.end.dateTime||e.end.date),n=t.toLocaleDateString("cs-CZ",{weekday:"long",year:"numeric",month:"long",day:"numeric"}),a=t.getHours()+":"+t.getMinutes().toString().padStart(2,"0"),i=!e.start.dateTime;return{id:o++,start:t,startDateVerbose:n,startTimeVerbose:a,allDay:i,end:r,title:e.summary,description:e.description,link:e.htmlLink}}).sort(function(e,t){return e.start