PageSourceSearch

https://www.beograd.rs/_nuxt/1fb01f2.js

js beograd.rs collected 2026-10-02 02:57:08 UTC 39,507 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[64,12,14,57,62,63,65],{615:function(e,t,o){"use strict";o.r(t);o(12),o(14),o(11),o(3),o(18),o(9),o(19);var n=o(1),r=(o(37),o(7));function c(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,o)}return t}function l(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(t){Object(n.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var d={name:"GoogleMapsPlaceholder",props:{options:{type:Object,default:function(){return{}}},mapsHelper:{type:Object,default:null},singleLocationMode:{type:Boolean,default:!1}},computed:l(l({},Object(r.e)("maps",["filtersIsOpen"])),{},{darkTheme:function(){return this.filtersIsOpen&&this.checkWindowWidth()}}),watch:{mapsHelper:function(e){e&&(e.setMapElement(this.$refs.map),this.$emit("mapElementAssigned"))}},methods:{checkWindowWidth:function(){var e=window.innerWidth;return e>=768&&e<1210}}},m=o(0),component=Object(m.a)(d,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"gmap",class:{isDark:e.darkTheme}},[t("div",{ref:"map",staticClass:"gmap__container",class:{singleLocationMode:e.singleLocationMode}})])}),[],!1,null,null,null);t.default=component.exports},617:function(e,t,o){"use strict";o.r(t);o(12),o(14),o(11),o(18),o(9),o(19);var n=o(1),r=(o(32),o(3),o(30),o(33),o(112),o(99),o(7)),c=o(78),l=o(114),d=o(62),m=o(183),h=o(140),f=o(20);function v(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,o)}return t}function _(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?v(Object(source),!0).forEach((function(t){Object(n.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):v(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var y=Object(f.a)(),O={name:"LocationDetails",components:{VueLink:c.a,GenericStoryElement:l.a,Loader:m.default,PhotoGalleryFullScreen:h.default},props:{location:{type:Object,default:function(){}},singleLocationMode:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},data:function(){return{showGalleryFS:!1,genericImages:Object(d.getGenericImages)(y)}},computed:_(_({},Object(r.e)("maps",["detailsIsOpen"])),{},{imgSrc:function(){var e,t;return(null===(e=this.location)||void 0===e||null===(t=e.PosterPhoto)||void 0===t?void 0:t.ImageUrl)||this.genericImages.placeholderImg},address:function(){var e,t;return null===(e=this.location.DocumentElements)||void 0===e||null===(t=e.find((function(e){return"Address"===e.Name})))||void 0===t?void 0:t.Text},telephone:function(){var e,t;return null===(e=this.location.DocumentElements)||void 0===e||null===(t=e.find((function(e){return"Phone"===e.Name})))||void 0===t?void 0:t.Text},url:function(){var e,t;return null===(e=this.location.DocumentElements)||void 0===e||null===(t=e.find((function(e){return"Url"===e.Name})))||void 0===t?void 0:t.Text},urlText:function(){return this.url&&new URL(this.url).host},hasPhotoGallery:function(){var e;return null===(e=this.location.DocumentElements)||void 0===e?void 0:e.some((function(e){return"PhotoGallery"===e.Type}))},photoGalleryDefinition:function(){var e;return null===(e=this.location.DocumentElements)||void 0===e?void 0:e.find((function(e){return"PhotoGallery"===e.Type}))},isBeogradSad:function(){return"beogradsad"===y.sitename},isManifestacije:function(){return"manifestacije"===y.sitename},showLocationCardLink:function(){return this.url&&!this.isBeogradSad&&!this.isManifestacije}}),beforeUpdate:function(){var e=document.querySelector(".location-detail
1s");e&&e.scrollTo({top:0,behavior:"smooth"})},methods:_(_({},Object(r.d)({setState:"maps/SET_STATE"})),{},{showOnMap:function(){document.getElementsByTagName("html")[0].classList.remove("disable-scroll"),document.body.classList.remove("disable-scroll"),this.setState({prop:"detailsIsOpen",value:!1}),this.setState({prop:"sidebarIsOpen",value:!1})},closeDetails:function(){document.getElementsByTagName("html")[0].classList.remove("disable-scroll"),document.body.classList.remove("disable-scroll"),this.singleLocationMode?this.$emit("singleLocationModeClosed"):this.$emit("closeLocation"),this.setState({prop:"detailsIsOpen",value:!1}),window.scrollTo({top:0,behavior:"smooth"})},openFullScreenGallery:function(){this.showGalleryFS=!0,document.body.classList.add("has-gallery-full-screen"),window.history.pushState({fullscreen:!0},"",window.location.pathname)},closeFullScreenGallery:function(){this.showGalleryFS=!1,document.body.classList.remove("has-gallery-full-screen")}})},k=o(0),component=Object(k.a)(O,(function(){var e,t,o=this,n=o._self._c;return n("div",{staticClass:"location-details",class:{isSingleLocationMode:o.singleLocationMode}},[n("i",{staticClass:"icon icon-popup-close",on:{click:o.closeDetails}}),o._v(" "),n("div",{staticClass:"location-details__flex-container"},[n("figure",{staticClass:"location-details__image"},[n("div",{staticClass:"location-details__image-overlay"}),o._v(" "),n("img",{staticClass:"image",attrs:{src:o.imgSrc,alt:o.location.Title}})]),o._v(" "),n("div",{staticClass:"location-details__content"},[n("div",{staticClass:"location-details__section"},[o._v(o._s(o.location.ParentMenuItemName))]),o._v(" "),n("h2",{staticClass:"location-details__title"},[o._v(o._s(o.location.Title))])])]),o._v(" "),n("div",{staticClass:"location-details__information"},[o.loading?n("Loader"):o._e(),o._v(" "),o.address||o.telephone||o.url?n("div",{staticClass:"location-details__info"},[o.isBeogradSad||o.isManifestacije?o._e():n("h3",{staticClass:"location-details__heading"},[o._v(o._s(o.$t("maps.address")))]),o._v(" "),o.address?n("p",{staticClass:"location-card__text"},[o._v(o._s(o.address))]):o._e(),o._v(" "),o.telephone?n("p",{staticClass:"location-card__text"},[o._v(o._s(o.$t("maps.telephone"))+" "+o._s(o.telephone))]):o._e(),o._v(" "),n("div",{staticClass:"location-card__flex-container"},[o.showLocationCardLink?n("div",{staticClass:"location-card__link"},[n("vue-link",{attrs:{to:o.url,"new-tab":!0,title:o.url}},[o._v("\n                        "+o._s(o.urlText)+"\n                    ")])],1):o._e(),o._v(" "),n("div",{staticClass:"location-card__button",class:{isStandalone:!o.showLocationCardLink}},[n("button",{staticClass:"location-card__btn",on:{click:o.showOnMap}},[n("i",{staticClass:"icon-menu-map"}),o._v("\n                        "+o._s(o.$t("maps.showOnMap"))+"\n                    ")])])])]):n("div",{staticClass:"location-card__button isStandalone"},[n("button",{staticClass:"location-card__btn",on:{click:o.showOnMap}},[n("i",{staticClass:"icon-menu-map"}),o._v("\n                "+o._s(o.$t("maps.showOnMap"))+"\n            ")])]),o._v(" "),o._l(o.location.DocumentElements,(function(element,e){return["TextEditor"===element.Type?n("GenericStoryElement",{key:e,attrs:{definition:element,"document-title":o.location.Title,"document-lead":o.location.Lead}}):o._e()]})),o._v(" "),n("div",{staticClass:"location-details__cta-wrap"},[o.hasPhotoGallery?n("div",{staticClass:"location-details__gallery"},[n("button",{staticClass:"location-details__gallery-btn",on:{click:o.openFullScreenGallery}},[n("span",{staticClass:"location-details__gallery-btn-text"},[o._v(o._s(o.$t("common.gallery")))]),o._v(" "),n("i",{staticClass:"icon-caret-right"})])]):o._e(),o._v(" "),o.url?n("vue-link",{staticClass:"location-details__seeMore",attrs:{to:o.url,"new-tab":!0,title:o.url}},[n("p",{staticClass:"location-details__seeMore-text"},[o._v("\n                    "+o._s(o.$t("maps.seeMore"))+"\n                ")]),o._v(" "),n("i",{staticClass:"icon-caret-right"})]):o._e()],1)],2),o._v(" "),o.showGalleryFS?n("PhotoGalleryFullScreen",{attrs:{images:(null===(e=o.photoGalleryDefinition)||void 0===e||null===(t=e.PhotoGallery)||void 0===t?void 0:t.Images)||[],"slide-number":1,"document-lead":o.location.Lead,"document-title":o.location.Title},on:{closeGallery:o.closeFullScreenGallery}}):o._e()],1)}),[],!1,null,null,null);t.default=component.exports},618:function(e,t,o){"use strict";o.r(t);o(12),o(14),o(18),o(19);var n=o(13),r=o(1),c=(o(3),o(9),o(22),o(38),o(21),o(11),o(48),o(7));function l(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,o)}return t}function d(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};
1i%2?l(Object(source),!0).forEach((function(t){Object(r.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var m={name:"LocationsFilters",components:{FilterCard:o(719).default},props:{locationCategories:{type:Array,default:function(){return[]}},selectedCategories:{type:Array,default:function(){return[]}}},data:function(){return{currentLocationCategories:[],categories:[],debounce:null}},watch:{locationCategories:function(e){this.currentLocationCategories=e},selectedCategories:function(e){this.categories=e,this.currentLocationCategories.forEach((function(t){t.checked=e.includes(t.MenuItemId)}))}},created:function(){this.currentLocationCategories=this.locationCategories,this.categories=this.selectedCategories},methods:d(d({},Object(c.d)({setState:"maps/SET_STATE"})),{},{closeFilters:function(){document.getElementsByTagName("html")[0].classList.remove("disable-scroll"),document.body.classList.remove("disable-scroll"),this.setState({prop:"filtersIsOpen",value:!1}),window.scrollTo({top:0,behavior:"smooth"})},applyFilters:function(){this.$emit("categoriesSelected",this.categories),this.closeFilters()},clearSelectedCategories:function(){this.categories.length&&(this.categories=[],this.currentLocationCategories.forEach((function(e){e.checked=!1})),this.$emit("categoriesSelected",this.categories)),window.scrollTo({top:0,behavior:"smooth"})},setCategories:function(e){this.categories.includes(e)?this.categories=this.categories.filter((function(t){return t!==e})):this.categories=[].concat(Object(n.a)(this.categories),[e])},emitCategories:function(e){var t=this,o=window.innerWidth;e.checked=!e.checked,this.setCategories(e.MenuItemId),o>=768&&(this.debounce&&clearTimeout(this.debounce),this.debounce=setTimeout((function(){t.debounce=null,t.$emit("categoriesSelected",t.categories)}),600)),window.scrollTo({top:0,behavior:"smooth"})}})},h=o(0),component=Object(h.a)(m,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"locations-filters"},[t("i",{staticClass:"icon icon-popup-close",on:{click:e.closeFilters}}),e._v(" "),t("div",{staticClass:"locations-filters__flex-container"},[t("h2",{staticClass:"locations-filters__title"},[e._v(e._s(e.$t("maps.filters")))]),e._v(" "),t("button",{staticClass:"locations-filters__remove-filters",on:{click:e.clearSelectedCategories}},[e._v("\n            "+e._s(e.$t("maps.removeFilters"))+"\n        ")])]),e._v(" "),t("div",{staticClass:"locations-filters__list"},e._l(e.currentLocationCategories,(function(o,n){return t("filter-card",{key:n,attrs:{categories:e.categories,category:o},on:{stateChanged:function(t){return e.emitCategories(o)}}})})),1),e._v(" "),t("button",{staticClass:"btn cta",on:{click:e.applyFilters}},[e._v(e._s(e.$t("maps.applyFilters")))])])}),[],!1,null,null,null);t.default=component.exports},619:function(e,t,o){"use strict";o.r(t);o(12),o(14),o(11),o(3),o(18),o(9),o(19);var n=o(1),r=o(7);function c(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,o)}return t}function l(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(t){Object(n.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var d={name:"MapsSidebar",components:{LocationCard:o(720).default},props:{locations:{type:Array,default:function(){}},searchMode:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},selectedCategories:{type:Array,default:function(){return[]}}},data:function(){return{searchTerm:""}},computed:l(l({},Object(r.e)("maps",["sidebarIsOpen","filtersIsOpen"])),{},{selectedCategoriesLength:function(){return this.selectedCategories.length}}),mounted:function(){var e=this;this.$nuxt.$on("selected-document",(function(){e.locationsListScrollToTop()}))},beforeDestroy:function(){this.$nuxt.$off("selected-document")},methods:l(l({},Object(r.d)({toggleState:"maps/TOGGLE_STATE"})),{},{emitValue:function(e){this.$emit("clicked",e),this.locationsListScrollToTop()},showOnMap:function(e){this.$emit("clicked",e)},toggleList:function(){window.scrollTo({top:0,behavior:"smooth"}),this.toggleState("sidebarIsOpen")},locationsListScrollToTop:function(){var e=document.querySelector(".maps-sidebar__cards");e&&e.scrollTo({top:0,behavior:"smooth"})},openFilters:function(){if(!this.searchMode){var e=window.innerWidth;this.toggleState("filtersIsOpen"),e<1210&&(document.getElementsByTagName("html")[0].classList.add("disable-scroll"),document.body.classList.add("disable-scroll")),window.scrollTo({top:0,behavior:"smooth"})}},performSearch:function(){this.searchTerm&&!this.loading&&this.$emit("searchLocation",this.searchTerm),window.scrollTo({top:0,behavior:"smooth"})},closeSearchMode:function(){this.loading||(this.searchTerm="",this.$emit("closeSearchMode")),window.scrollTo({top:0,behavior:"smooth"})}})},m=o(0),component=Object(m.a)(d,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"maps-sidebar",class:{isOpen:e.sidebarIsOpen}},[t("div",{staticClass:"maps-sidebar__search-filters"},[t("div",{staticClass:"maps-sidebar__show-list"},[t("p",{staticClass:"maps-sidebar__show-list-text",on:{click:e.toggleList}},[e._v("\n                "+e._s(e.$t("maps.showList"))+"\n            ")])]),e._v(" "),t("div",{staticClass:"maps-sidebar__search-filters-wrapper"},[t("div",{staticClass:"maps-sidebar__search-input"},[t("div",{staticClass:"contact-form__container"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.searchTerm,expression:"searchTerm"}],staticClass:"contact-form__control",attrs:{placeholder:e.$t("maps.search"),disabled:e.loading,type:"search"},domProps:{value:e.searchTerm},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.performSearch.apply(null,arguments)},input:function(t){t.target.composing||(e.searchTerm=t.target.value)}}}),e._v(" "),e.searchMode?t("i",{staticClass:"icon icon-popup-close",on:{click:e.closeSearchMode}}):t("i",{staticClass:"icon icon-search"})])]),e._v(" "),t("div",{staticClass:"maps-sidebar__filters",class:{isDisabled:e.searchMode},on:{click:e.openFilters}},[t("i",{staticClass:"icon icon-filters",class:{"filters-opened":e.filtersIsOpen}}),e._v(" "),e.selectedCategoriesLength?t("div",{staticClass:"maps-sidebar__filters-number"},[e._v("\n                    "+e._s(e.selectedCategoriesLength)+"\n                ")]):e._e(
1)])]),e._v(" "),e.searchMode&&0===e.locations.length?t("div",{staticClass:"maps-sidebar__no-results"},[e._v("\n            "+e._s(e.$t("common.searchNoResults"))+"\n        ")]):e._e()]),e._v(" "),t("div",{staticClass:"maps-sidebar__cards"},[e._l(e.locations,(function(o,n){return t("location-card",{key:n,attrs:{location:o,index:n},on:{clicked:e.emitValue,showOnMap:e.showOnMap}})})),e._v(" "),e.searchMode&&0===e.locations.length?t("div",{staticClass:"maps-sidebar__no-results"},[e._v("\n            "+e._s(e.$t("common.searchNoResults"))+"\n        ")]):e._e()],2),e._v(" "),t("button",{staticClass:"btn cta",on:{click:e.toggleList}},[t("i",{staticClass:"icon-menu-map"}),e._v("\n        "+e._s(e.$t("maps.showMap"))+"\n    ")])])}),[],!1,null,null,null);t.default=component.exports},631:function(e,t,o){"use strict";o.r(t);o(12),o(14),o(18),o(19);var n=o(13),r=o(5),c=o(1),l=(o(46),o(37),o(32),o(3),o(11),o(21),o(58),o(34),o(9),o(7)),d=o(2),m=o(777),h=o.n(m),f=o(115),v=o.n(f),_=o(615),y=o(619),O=o(617),k=o(618),w=o(26),C=o(84),L=o(85),M=o(129),D=function(){function e(t,o,n,r){Object(C.a)(this,e),this.api=n,this.googleAPI=t,this.axios=o,this.locationCategories=r,this.markers=[],this.categories=[],this.currentZoom=0,this.selectedDocumentId=null,this.currentZIndex=0}var t,o,n,c;return Object(L.a)(e,[{key:"createMap",value:function(e){this.map=new this.googleAPI.maps.Map(this.mapElement,{center:{lat:e.latitude,lng:e.longitude},restriction:{latLngBounds:M.mapBounds,strictBounds:!1},zoom:e.zoom,streetViewControl:!1,rotateControl:!1,fullscreenControl:!1,mapTypeControl:!1,styles:[{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"transit",stylers:[{visibility:"off"}]}]}),this.currentZIndex=this.googleAPI.maps.Marker.MAX_ZINDEX}},{key:"fetchMapData",value:(c=Object(r.a)(regeneratorRuntime.mark((function e(t,o){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.axios.get(t);case 2:if(n=e.sent,"object"!==Object(w.a)(n.data)){e.next=6;break}if(o){e.next=6;break}return e.abrupt("return",null===(r=n.data)||void 0===r?void 0:r.Elements[0]);case 6:return e.abrupt("return",{Documents:[]});case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"setMapElement",value:function(e){this.mapElement=e}},{key:"getInitialMap",value:(n=Object(r.a)(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetchMapData(this.api);case 2:return t=e.sent,this.currentZoom=t.Zoom,e.abrupt("return",t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"getSingleLocation",value:(o=Object(r.a)(regeneratorRuntime.mark((function e(t){var o,n,r,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("getSingleLocation"),console.log(t),e.prev=2,e.next=5,this.axios.get(t);case 5:return r=e.sent,console.log(r),c=null===(o=r.data.Elements)||void 0===o||null===(n=o[0])||void 0===n?void 0:n.Document,e.abrupt("return",{Documents:c?[c]:[]});case 11:return e.prev=11,e.t0=e.catch(2),console.log(e.t0),e.abrupt("return",null);case 15:case"end":return e.stop()}}),e,this,[[2,11]])}))),function(e){return o.apply(this,arguments)})},{key:"getMapWithCoordinates",value:(t=Object(r.a)(regeneratorRuntime.mark((function e(t){var o,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=this.api,Object.keys(t).forEach((function(e){o+="&".concat(e,"=").concat(t[e])})),this.categories.length&&(o+="&mid=".concat(this.categories.join(","))),e.next=5,this.fetchMapData(o);case 5:return n=e.sent,e.abrupt("return",n);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"addMarkers",value:function(e,t,o){var n=this.map.getZoom();(n!==this.currentZoom||o)&&(this.removeMissingMarkers(e),this.currentZoom=n),this.addNewMarkers(e),this.addClickHandlers(t)}},{key:"addClickHandlers",value:function(e){var t=this;this.markers.forEach((function(marker){t.googleAPI.maps.event.clearListeners(marker,"click"),marker.addListener("click",(function(){t.selectedDocumentId=marker.documentId,e(marker)}))}))}}
1,{key:"removeAllMarkers",value:function(){this.markers.forEach((function(marker){marker.setMap(null),marker=null})),this.markers=[]}},{key:"removeMissingMarkers",value:function(e){for(var t=this,o=function(i){null!=e&&e.find((function(e){return t.markers[i].documentId===e.DocumentId}))||t.markers[i].documentId!==t.selectedDocumentId&&(t.markers[i].setMap(null),t.markers[i]=null)},i=0;i<this.markers.length;i++)o(i);this.markers=this.markers.filter((function(marker){return null!==marker}))}},{key:"addNewMarkers",value:function(e){var t=this;null==e||e.forEach((function(e){if(!t.markers.find((function(marker){return marker.documentId===e.DocumentId}))){var o=new t.googleAPI.maps.LatLng(e.Locations[0].Latitude,e.Locations[0].Longitude),n=t.locationCategories.find((function(t){return t.MenuItemId===e.ParentMenuItemId})),r=(null==n?void 0:n.Properties.icon)||"other",image="/img/locations/markers/".concat(r,".svg"),c=new t.googleAPI.maps.MarkerImage(image,null,null,null,new t.googleAPI.maps.Size(50,50)),marker=new t.googleAPI.maps.Marker({position:o,title:e.Title,icon:c,iconName:r,documentId:e.DocumentId,document:e});marker.setMap(t.map),t.markers.push(marker)}}))}},{key:"makeMarkersNormal",value:function(){var e=this;this.markers&&this.markers.forEach((function(marker){var image="/img/locations/markers/".concat(marker.iconName,".svg");marker.document.selected=!1;var t=new e.googleAPI.maps.MarkerImage(image,null,null,null,new e.googleAPI.maps.Size(50,50));marker.setIcon(t)}))}},{key:"selectDocument",value:function(e){var marker=this.markers.find((function(marker){return marker.documentId===e}));if(marker){this.makeMarkerImportant(marker);var t=new this.googleAPI.maps.LatLng(marker.document.Locations[0].Latitude,marker.document.Locations[0].Longitude);this.map.panTo(t)}}},{key:"makeMarkerImportant",value:function(marker){this.makeMarkersNormal();var image="/img/locations/markers/important/".concat(marker.iconName,".svg"),e=new this.googleAPI.maps.MarkerImage(image,null,null,null,new this.googleAPI.maps.Size(60,60));marker.setIcon(e),marker.setZIndex(++this.currentZIndex),marker.document.selected=!0}},{key:"addListener",value:function(e,t){this.googleAPI.maps.event.addListener(this.map,e,t)}},{key:"removeListener",value:function(e){this.googleAPI.maps.event.removeEventListener(e)}},{key:"setCategories",value:function(e){this.categories=e}},{key:"fitToMarkers",value:function(){var e=new this.googleAPI.maps.LatLngBounds;this.markers.forEach((function(marker){e.extend(marker.position)})),this.map.fitBounds(e)}},{key:"fitToSingleMarker",value:function(){var marker=this.markers[0];this.map.setZoom(15);var e=new this.googleAPI.maps.LatLng(marker.document.Locations[0].Latitude,marker.document.Locations[0].Longitude);this.map.panTo(e)}}],[{key:"calculateMapCenter",value:function(e){return{longitude:(parseFloat(e.BottomRightLongitude)+parseFloat(e.TopLeftLongitude))/2,latitude:(parseFloat(e.BottomRightLatitude)+parseFloat(e.TopLeftLatitude))/2,zoom:e.Zoom}}}]),e}();function I(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,o)}return t}function j(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?I(Object(source),!0).forEach((function(t){Object(c.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):I(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var S={name:"Maps",components:{GoogleMaps:_.default,MapsSidebar:y.default,LocationDetails:O.default,LocationsFilters:k.default},props:{options:{type:Object,default:function(){return{Template:""}}}},data:function(){return{locations:[],location:{}
1,locationCardId:null,singleLocation:"",singleLocationMode:null,categories:[],searchMode:!1,mapsHelper:null,documentTypeId:"",langPrefix:"",langId:0,loading:!1,map:{mapCoordinates:{},currentMapData:{},currentZoom:0},selectedCategories:[]}},computed:j({},Object(l.e)("maps",["sidebarIsOpen","detailsIsOpen","filtersIsOpen"])),created:function(){this.closeAllSidebars(),this.documentTypeId=this.options.Properties.DocumentIds,this.categories=this.$globalData.site.locationCategories.map((function(e){var t=j({},e);return d.default.set(t,"checked",!1),t})),this.$route.query.location&&(this.singleLocation=decodeURIComponent(this.$route.query.location),this.singleLocationMode=!0)},mounted:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var o,n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,h()({libraries:[],apiKey:e.$siteConfig.env.googleMapsKey});case 2:o=t.sent,n="headless/".concat(e.$globalData.site.locations,"?ElementUrl=Lista"),e.mapsHelper=new D(o,e.$axios,n,e.$globalData.site.locationCategories),r=window.innerWidth,e.singleLocationMode&&r<1210&&document.body.classList.add("disable-scroll"),window.addEventListener("resize",e.onResize),e.$device.isDesktop&&e.setState({prop:"filtersIsOpen",value:!0});case 9:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){window.removeEventListener("resize",this.onResize)},methods:j(j({},Object(l.d)({setState:"maps/SET_STATE"})),{},{startWithSingleLocation:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var o,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o="/headless/".concat(e.singleLocation),n=window.innerWidth,t.prev=2,t.next=5,e.mapsHelper.getSingleLocation(o);case 5:e.map.currentMapData=t.sent,e.map.currentZoom=15,e.map.mapCoordinates={zoom:15,latitude:e.map.currentMapData.Documents[0].Locations[0].Latitude,longitude:e.map.currentMapData.Documents[0].Locations[0].Longitude},e.locations=e.map.currentMapData.Documents,e.location=e.map.currentMapData.Documents[0],(!e.$route.query.showMap||n>=1210)&&e.setState({prop:"detailsIsOpen",value:!0}),t.next=16;break;case 13:t.prev=13,t.t0=t.catch(2),console.log(t.t0);case 16:case"end":return t.stop()}}),t,null,[[2,13]])})))()},startNormalMap:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.mapsHelper.getInitialMap();case 3:e.map.currentMapData=t.sent,e.map.currentZoom=e.map.currentMapData.Zoom,e.map.mapCoordinates=D.calculateMapCenter(e.map.currentMapData),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),console.log(t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))()},mapElementAssigned:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.singleLocationMode){t.next=5;break}return t.next=3,e.startWithSingleLocation();case 3:t.next=7;break;case 5:return t.next=7,e.startNormalMap();case 7:e.mapsHelper.createMap(e.map.mapCoordinates),e.mapsHelper.addMarkers(e.map.currentMapData.Documents,e.markerClicked),e.singleLocationMode&&e.mapsHelper.markers.length&&e.mapsHelper.makeMarkerImportant(e.mapsHelper.markers[0]),e.mapsHelper.addListener("idle",e.mapPositionChanged);case 11:case"end":return t.stop()}}),t)})))()},mapPositionChanged:function(){var e=arguments,t=this;return Object(r.a)(regeneratorRuntime.mark((function o(){var n,r,c,l,d,m;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n=e.length>0&&void 0!==e[0]&&e[0],r=t.locations.find((function(e){return e.DocumentId===t.mapsHelper.selectedDocumentId})),t.singleLocationMode||t.searchMode){o.next=14;break}return c=t.mapsHelper.map.getBounds(),l=c.getNorthEast(),d=c.getSouthWest
1(),m=t.mapsHelper.map.getZoom(),o.next=9,t.mapsHelper.getMapWithCoordinates({TopLeftLongitude:d.lng(),TopLeftLatitude:l.lat(),BottomRightLongitude:l.lng(),BottomRightLatitude:d.lat(),Zoom:m});case 9:t.map.currentMapData=o.sent,r&&t.reorderDocuments(r),t.locations=t.map.currentMapData.Documents,t.mapsHelper.addMarkers(t.map.currentMapData.Documents,t.markerClicked,n),t.$emit("map-changed",t.map.currentMapData.Documents);case 14:t.searchMode&&r&&(t.reorderDocuments(r),t.locations=t.map.currentMapData.Documents);case 15:case"end":return o.stop()}}),o)})))()},markerClicked:function(marker){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){var o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=window.innerWidth,e.location=marker.document,e.location.IsCompleted){t.next=6;break}return t.next=6,e.getDocumentDetails({doc:marker});case 6:e.$nuxt.$emit("selected-document",marker.document),o<1210?(document.getElementsByTagName("html")[0].classList.add("disable-scroll"),document.body.classList.add("disable-scroll")):e.setState({prop:"filtersIsOpen",value:!1}),e.setState({prop:"detailsIsOpen",value:!0}),window.scrollTo({top:0,behavior:"smooth"}),e.reorderDocuments(marker.document),e.locations=e.map.currentMapData.Documents,e.mapsHelper.makeMarkerImportant(marker);case 13:case"end":return t.stop()}}),t)})))()},resetValue:function(e,t){this[e]&&this.setState({prop:e,value:t})},reorderDocuments:function(e){var t=this,o=this.locations.filter((function(e){return e.IsCompleted}));this.map.currentMapData.Documents=[e].concat(Object(n.a)(this.map.currentMapData.Documents.filter((function(e){return e.DocumentId!==t.mapsHelper.selectedDocumentId})))),this.map.currentMapData.Documents=this.map.currentMapData.Documents.map((function(e){return o.filter((function(t){return t.DocumentId===e.DocumentId?e=t:e})),e}))},locationClickedInSidebar:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function o(){var n,r;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n=e.doc,r=e.index,t.location=n,t.location.IsCompleted){o.next=6;break}return o.next=6,t.getDocumentDetails({doc:n,prop:"locations",index:r});case 6:t.mapsHelper.selectDocument(t.location.DocumentId),t.mapsHelper.selectedDocumentId=t.location.DocumentId;case 8:case"end":return o.stop()}}),o)})))()},getDocumentDetails:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function o(){var n,r,c,l,m;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return n=e.doc,r=e.prop,c=e.index,t.loading=!0,l=n.WebUrl?n.WebUrl.split("/").slice(3).join("/"):n.document.WebUrl.split("/").slice(3).join("/"),l="/headless/".concat(l,"?element=Location"),o.next=6,t.mapsHelper.getSingleLocation(l);case 6:(m=o.sent).Documents[0]&&(t.location=m.Documents[0],d.default.set(t.location,"IsCompleted",!0),"locations"===r?(t.locations[c]=t.location,t.mapsHelper.markers=t.mapsHelper.markers.map((function(marker){return marker.documentId===t.location.DocumentId?(marker.document=t.location,marker):marker}))):(n.document=t.location,t.locations=t.locations.map((function(e){return e.DocumentId===n.documentId?n.document:e}))),t.loading=!1),t.loading=!1;case 9:case"end":return o.stop()}}),o)})))()},emitLocations:function(e){this.locations=e},singleLocationModeClosed:function(){this.singleLocationMode=!1,this.mapsHelper.removeAllMarkers(),this.mapsHelper.addListener("idle",this.mapPositionChanged),this.mapPositionChanged()},closeLocationDetails:function(){this.mapsHelper&&(this.mapsHelper.makeMarkersNormal(),this.mapsHelper.selectedDocumentId=null)},setCategories:function(e){this.categories.forEach((function(t){-1!==e.indexOf(t.menuItemId)&&(t.checked=!0)})),this.selectedCategories=e,this.mapsHelper.setCategories(e),this.mapPositionChanged(e,!0)},getSearchUrl:function(e){return this.langPrefix||(this.langPrefix=this.$core.getLanguage(this.$route.path),this.langId=this.$core.getLanguageId(this.langPrefix)),"".concat(this.langPrefix,"/searchAPI/").concat(this.langId,"/1?q=").concat(e,"&dtid=").concat(this.documentTypeId,"&page=1&element=LocationSearch")},performSearch:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function o(){var n;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return t.loading=!0,t.closeAllSidebars(),t.selectedCategories=[],t.categories.forEac
1h((function(e){e.checked=!1})),t.mapsHelper.setCategories(t.selectedCategories),t.searchMode=!0,o.prev=6,o.next=9,t.$axios.get(t.getSearchUrl(e));case 9:(n=o.sent).data?t.locations=n.data.Elements[0].Documents:t.locations=[],t.map.currentMapData.Documents=t.locations,t.searchMode=!0,t.mapsHelper.addMarkers(t.locations,t.markerClicked,!0),t.locations.length&&(1===t.locations.length?t.mapsHelper.fitToSingleMarker():t.mapsHelper.fitToMarkers()),t.loading=!1,o.next=22;break;case 18:o.prev=18,o.t0=o.catch(6),console.log(o.t0),t.loading=!1;case 22:case"end":return o.stop()}}),o,null,[[6,18]])})))()},closeSearchMode:function(){var e=this;return Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.searchMode=!1,e.closeLocationDetails(),document.body.classList.remove("disable-scroll"),e.setState({prop:"detailsIsOpen",value:!1}),t.next=6,e.mapPositionChanged();case 6:case"end":return t.stop()}}),t)})))()},closeAllSidebars:function(){this.resetValue("sidebarIsOpen",!1),this.resetValue("detailsIsOpen",!1),this.resetValue("filtersIsOpen",!1)},onResize:v()((function(){var e=window.innerWidth;this.detailsIsOpen?e>=1210?(document.getElementsByTagName("html")[0].classList.remove("disable-scroll"),document.body.classList.remove("disable-scroll")):(document.getElementsByTagName("html")[0].classList.add("disable-scroll"),document.body.classList.add("disable-scroll")):this.filtersIsOpen&&(e>=768?(document.getElementsByTagName("html")[0].classList.remove("disable-scroll"),document.body.classList.remove("disable-scroll")):(document.getElementsByTagName("html")[0].classList.add("disable-scroll"),document.body.classList.add("disable-scroll")))}),300)})},x=S,P=o(0),component=Object(P.a)(x,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"maps"},[t("div",{staticClass:"maps__wrapper",class:{isAndroid:e.$device.isAndroid}},[t("google-maps",{attrs:{"maps-helper":e.mapsHelper,"single-location-mode":e.singleLocationMode},on:{mapElementAssigned:e.mapElementAssigned}}),e._v(" "),e.singleLocationMode?e._e():t("maps-sidebar",{attrs:{locations:e.locations,"selected-categories":e.selectedCategories,"search-mode":e.searchMode,loading:e.loading},on:{clicked:e.locationClickedInSidebar,searchLocation:e.performSearch,closeSearchMode:e.closeSearchMode}}),e._v(" "),t("transition",{attrs:{name:"location-details-slide-right"}},[e.detailsIsOpen?t("location-details",{attrs:{location:e.location,"single-location-mode":e.singleLocationMode,loading:e.loading},on:{singleLocationModeClosed:e.singleLocationModeClosed,selectLocation:e.locationClickedInSidebar,closeLocation:e.closeLocationDetails}}):e._e()],1),e._v(" "),t("transition",{attrs:{name:"locations-filters-slide"}},[e.filtersIsOpen?t("locations-filters",{attrs:{"location-categories":e.categories,"selected-categories":e.selectedCategories},on:{categoriesSelected:e.setCategories}}):e._e()],1)],1)])}),[],!1,null,null,null);t.default=component.exports},719:function(e,t,o){"use strict";o.r(t);var n={name:"FilterCard",props:{category:{type:Object,default:function(){}},categories:{type:Array,default:function(){return[]}}},computed:{menuItemId:function(){var e;return null===(e=this.category)||void 0===e?void 0:e.MenuItemId},iconName:function(){var e,t;return null===(e=this.category)||void 0===e||null===(t=e.Properties)||void 0===t?void 0:t.icon},categoryName:function(){var e;return null===(e=this.category)||void 0===e?void 0:e.Title},categoryDescription:function(){var e;return null===(e=this.category)||void 0===e?void 0:e.Properties["category-description"]},isChecked:function(){var e;return null===(e=this.category)||void 0===e?void 0:e.checked}},methods:{toggleCheckbox:function(){this.$emit("stateChanged")}}},r=o(0),component=Object(r.a)(n,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"filter-card",on:{click:e.toggleCheckbox}},[t("div",{staticClass:"filter-card__checkbox",class:{isChecked:e.isChecked}},[e.isChecked?t("i",{staticClass:"icon icon-check"}):e._e()]),e._v(" "),t("img",{staticClass:"filter-card__icon",attrs:{src:"/img/locations/"+e.iconName+".svg",alt:e.categoryName}}),e._v(" "),t("div",{staticClass:"filter-card__category"},[t("div",{staticClass:"location-card__title"},[e._v(e._s(e.categoryName))]),e._v(" "),t("div",{staticClass:"filter-card__description"},[e._v(e._s(e.categoryDescription))])])])}),[],!1,null,null,null);t.default=component.exports},720:function(e,t,o){"use strict";o.r(t);o(12),o(14),o(11),o(18),o(9),o(19);var n=o(1),r=(o(111),o(32),o(3),o(7));function c(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,o)}return t}function l(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};
1i%2?c(Object(source),!0).forEach((function(t){Object(n.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var d={name:"LocationCard",props:{location:{type:Object,default:function(){}},index:{type:Number,default:0}},computed:l(l({},Object(r.e)("maps",["filtersIsOpen"])),{},{address:function(){var e,t,o;return null===(e=this.location)||void 0===e||null===(t=e.DocumentAttributes)||void 0===t||null===(o=t.find((function(e){return"Address"===e.Name})))||void 0===o?void 0:o.Text},telephone:function(){var e,t,o;return null===(e=this.location)||void 0===e||null===(t=e.DocumentAttributes)||void 0===t||null===(o=t.find((function(e){return"Phone"===e.Name})))||void 0===o?void 0:o.Text}}),methods:l(l({},Object(r.d)({setState:"maps/SET_STATE"})),{},{showLocationDetails:function(e){var t=window.innerWidth;this.$emit("clicked",{doc:e,index:this.index}),this.setState({prop:"detailsIsOpen",value:!0}),t<1210?(document.getElementsByTagName("html")[0].classList.add("disable-scroll"),document.body.classList.add("disable-scroll")):(window.scrollTo({top:0,behavior:"smooth"}),this.setState({prop:"filtersIsOpen",value:!1}))},ShowOnMap:function(){window.scrollTo({top:0,behavior:"smooth"}),this.setState({prop:"sidebarIsOpen",value:!1}),this.$emit("showOnMap",{doc:this.location,index:this.index})}})},m=o(0),component=Object(m.a)(d,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"location-card",on:{click:function(t){return e.showLocationDetails(e.location)}}},[t("h2",{staticClass:"location-card__title"},[e._v(e._s(e.location.Title))]),e._v(" "),e.address?t("p",{staticClass:"location-card__text"},[e._v(e._s(e.address))]):e._e(),e._v(" "),e.telephone?t("p",{staticClass:"location-card__text"},[e._v(e._s(e.telephone))]):e._e(),e._v(" "),t("button",{staticClass:"location-card__btn",on:{click:function(t){return t.stopPropagation(),e.ShowOnMap.apply(null,arguments)}}},[t("i",{staticClass:"icon-menu-map"}),e._v("\n        "+e._s(e.$t("maps.showOnMap"))+"\n    ")])])}),[],!1,null,null,null);t.default=component.exports}}]);

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.