\r\n
${location.name}
\r\n
\r\n ${location.description}\r\n
\r\n
`\r\n });\r\n marker.addListener(\"mouseover\", () => {\r\n markerImageElement.src = location.markerImgOverride ?? this.markerHoverImg;\r\n });\r\n marker.addListener(\"mouseout\", () => {\r\n markerImageElement.src = location.markerImgOverride ?? this.markerImg;\r\n });\r\n marker.addListener(\"click\", () => {\r\n this.currentInfo?.close();\r\n this.currentInfo = info;\r\n info.open({\r\n map: this.map,\r\n anchor: marker,\r\n });\r\n });\r\n bounds.extend(marker.position);\r\n return marker;\r\n });\r\n\r\n if (categoryElement) {\r\n if (window.innerWidth > 767) {\r\n // Account for dead space at the left of the map\r\n const ne = bounds.getNorthEast();\r\n const sw = bounds.getSouthWest();\r\n const width = ne.lng() - sw.lng();\r\n const farLeft = new LatLng({\r\n lat: sw.lat(),\r\n lng: sw.lng() - width\r\n });\r\n bounds.extend(farLeft);\r\n } else {\r\n this.element.getElementsByClassName(\"the-map\")[0].scrollIntoView();\r\n }\r\n }\r\n\r\n this.map.fitBounds(bounds);\r\n this.map.getZoom() > 19 && this.map.setZoom(19);\r\n }\r\n\r\n async initMap() {\r\n const items = this.menuItems;\r\n for (var i = 0; i < items.length; i++) {\r\n const item = items[i];\r\n item.addEventListener(\"click\", () => {\r\n this.selectLocations(item);\r\n });\r\n }\r\n\r\n const { Map } = await this.loader.importLibrary(\"maps\");\r\n\r\n const mapElement = this.element.getElementsByClassName(\"the-map\")[0];\r\n\r\n this.map = new Map(mapElement, {\r\n mapTypeControl: false,\r\n mapId: this.element.getAttribute(\"data-map-id\") ?? mapElement.id,\r\n center: { lat: this.primaryLocation.lat, lng: this.primaryLocation.lng },\r\n zoom: 8\r\n });\r\n\r\n this.selectLocations();\r\n\r\n this.element\r\n .querySelector(\".c-map-row__menu-trigger\")\r\n .addEventListener('click', (event) => this.toggleExpanded(event.target));\r\n }\r\n\r\n toggleExpanded(source) {\r\n const classList = this.element\r\n .querySelector(\".c-map-row__menu\")\r\n .classList;\r\n classList.toggle(\"expanded\");\r\n if (classList.contains(\"expanded\")) {\r\n this.selectLocations(this.lastSelectedCategory || this.menuItems[0]);\r\n source.setAttribute(\"aria-expanded\", \"true\");\r\n } else {\r\n this.selectLocations(null);\r\n source.setAttribute(\"aria-expanded\", \"false\");\r\n }\r\n }\r\n\r\n load() {\r\n this.loader.load().then(() => {\r\n this.initMap();\r\n });\r\n }\r\n\r\n static initializeMaps() {\r\n var rows = document.getElementsByClassName(\"c-map-row\");\r\n for (var i = 0; i < rows.length; i++) {\r\n new MapManager(rows[i]).load();\r\n }\r\n }\r\n}\r\n\r\nexport default MapManager;","!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports.AirDatepicker=t():e.AirDatepicker=t()}(this,(function(){return function(){\"use strict\";var e={d:function(t,i){for(var s in i)e.o(i,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:i[s]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{default:function(){return R}});var i={days:\"days\",months:\"months\",years:\"years\",day:\"day\",month:\"month\",year:\"year\",eventChangeViewDate:\"changeViewDate\",eventChangeCurrentView:\"changeCurrentView\",eventChangeFocusDate:\"changeFocusDate\",eventChangeSelectedDate:\"changeSelectedDate\",eventChangeTime:\"changeTime\",eventChangeLastSelectedDate:\"changeLastSelectedDate\",actionSelectDate:\"selectDate\",actionUnselectDate:\"unselectDate\",cssClassWeekend:\"-weekend-\"},s={classes:\"\",inline:!1,locale:{days:[\"Воскресенье\",\"Понедельник\",\"Вторник\",\"Среда\",\"Четверг\",\"Пятница\",\"Суббота\"],daysShort:[\"Вос\",\"Пон\",\"Вто\",\"Сре\",\"Чет\",\"Пят\",\"Суб\"],daysMin:[\"Вс\",\"Пн\",\"Вт\",\"Ср\",\"Чт\",\"Пт\",\"Сб\"],months:[\"Январь\",\"Февраль\",\"Март\",\"Апрель\",\"Май\",\"Июнь\",\"Июль\",\"Август\",\"Сентябрь\",\"Октябрь\",\"Ноябрь\",\"Декабрь\"],monthsShort:[\"Янв\",\"Фев\",\"Мар\",\"Апр\",\"Май\",\"Июн\",\"Июл\",\"Авг\",\"Сен\",\"Окт\",\"Ноя\",\"Дек\"],today:\"Сегодня\",clear:\"Очистить\",dateFormat:\"dd.MM.yyyy\",timeFormat:\"HH:mm\",firstDay:1},startDate:new Date,firstDay:\"\",weekends:[6,0],dateFormat:\"\",altField:\"\",altFieldDateFormat:\"T\",toggleSelected:!0,keyboardNav:!0,selectedDates:!1,container:\"\",isMobile:!1,visible:!1,position:\"bottom left\",offset:12,view:i.days,minView:i.days,showOtherMonths:!0,selectOtherMonths:!0,moveToOtherMonthsOnSelect:!0,showOtherYears:!0,selectOtherYears:!0,moveToOtherYearsOnSelect:!0,minDate:\"\",maxDate:\"\",disableNavWhenOutOfRange:!0,multipleDates:!1,multipleDatesSeparator:\", \",range:!1,dynamicRange:!0,buttons:!1,monthsField:\"monthsShort\",showEvent:\"focus\",autoClose:!1,fixedHeight:!1,prevHtml:'