{"version":3,"file":"map-contacts.71330faf.js","sources":["../../node_modules/google-maps/lib/esm/loader.js","../../src/core/contactsMap.ts","../../src/services/map.model.service.ts","../../src/components/map-contacts.ts"],"sourcesContent":["export class Loader {\n constructor(apiKey = null, options = {}) {\n this.apiKey = apiKey;\n this.options = options;\n if (typeof window === 'undefined') {\n throw new Error('google-maps is supported only in browser environment');\n }\n }\n load() {\n if (typeof this.api !== 'undefined') {\n return Promise.resolve(this.api);\n }\n if (typeof this.loader !== 'undefined') {\n return this.loader;\n }\n window[Loader.CALLBACK_NAME] = () => {\n this.api = window['google'];\n if (typeof this.resolve === 'undefined') {\n throw new Error('Should not happen');\n }\n this.resolve(this.api);\n };\n window['gm_authFailure'] = () => {\n if (typeof this.reject === 'undefined') {\n throw new Error('Should not happen');\n }\n this.reject(new Error('google-maps: authentication error'));\n };\n return this.loader = new Promise((resolve, reject) => {\n this.resolve = resolve;\n this.reject = reject;\n const script = document.createElement('script');\n script.src = this.createUrl();\n script.async = true;\n script.onerror = (e) => reject(e);\n document.head.appendChild(script);\n });\n }\n createUrl() {\n const parameters = [\n `callback=${Loader.CALLBACK_NAME}`,\n ];\n if (this.apiKey) {\n parameters.push(`key=${this.apiKey}`);\n }\n for (let name in this.options) {\n if (this.options.hasOwnProperty(name)) {\n let value = this.options[name];\n if (name === 'version') {\n name = 'v';\n }\n if (name === 'libraries') {\n value = value.join(',');\n }\n parameters.push(`${name}=${value}`);\n }\n }\n return `https://maps.googleapis.com/maps/api/js?${parameters.join('&')}`;\n }\n}\nLoader.CALLBACK_NAME = '_dk_google_maps_loader_cb';\n//# sourceMappingURL=loader.js.map","import { Loader } from \"google-maps\";\r\nimport { toRaw } from \"vue\";\r\n\r\nexport default class ContactsMap {\r\n map: google.maps.Map = null;\r\n apiKey = \"AIzaSyDEEEFgaRbFMnBjAIYl26Su7zGrGiv7iVg\";\r\n mapId = \"47a939187b0b1a1f\";\r\n elem: HTMLElement = null;\r\n loaded = false;\r\n markers: any[] = [];\r\n\r\n /* \r\n mapIds \r\n vector 47a939187b0b1a1f\r\n raster 7a45fc917fd82653\r\n */\r\n\r\n constructor() {}\r\n\r\n init(target: string | HTMLElement, options = {}) {\r\n let targetObj: HTMLElement = null;\r\n if (typeof target === \"string\") {\r\n targetObj = document.querySelector(target);\r\n } else if (target) {\r\n targetObj = target;\r\n }\r\n if (!targetObj) {\r\n console.warn(\"target for map not found\");\r\n return;\r\n }\r\n const mapLoader = new Loader(this.apiKey);\r\n let mapOptions: any = {};\r\n if (this.mapId) {\r\n mapOptions.mapId = this.mapId;\r\n }\r\n if (options) {\r\n mapOptions = {\r\n ...mapOptions,\r\n ...options,\r\n };\r\n }\r\n return mapLoader.load().then((google) => {\r\n this.map = new google.maps.Map(targetObj, mapOptions);\r\n });\r\n }\r\n\r\n setCenter(lat: number, lng: number, zoom: number, offsetX: number, offsetY: number) {\r\n this.map.setZoom(zoom);\r\n if (lat && lng && Number(lat) && Number(lng)) {\r\n this.centerWithOffset({ lat: Number(lat), lng: Number(lng) }, offsetX, offsetY, zoom);\r\n }\r\n }\r\n\r\n centerWithOffset(latlng: any, offsetx: number, offsety: number, zoom: number) {\r\n const scale = Math.pow(2, this.map.getZoom());\r\n\r\n const worldCoordinateCenter = this.map.getProjection().fromLatLngToPoint(latlng);\r\n const pixelOffset = new google.maps.Point(offsetx / scale || 0, offsety / scale || 0);\r\n\r\n const worldCoordinateNewCenter = new google.maps.Point(\r\n worldCoordinateCenter.x - pixelOffset.x,\r\n worldCoordinateCenter.y + pixelOffset.y\r\n );\r\n\r\n const newCenter = this.map.getProjection().fromPointToLatLng(worldCoordinateNewCenter);\r\n\r\n this.map.setCenter(newCenter);\r\n }\r\n\r\n clearMarkers() {\r\n for (const marker of toRaw(this.markers)) {\r\n marker.setMap(null);\r\n }\r\n }\r\n\r\n updateBounds() {\r\n const bounds = new google.maps.LatLngBounds();\r\n for (const marker of toRaw(this.markers)) {\r\n const position = new google.maps.LatLng({\r\n lat: marker.position.lat(),\r\n lng: marker.position.lng(),\r\n });\r\n bounds.extend(position);\r\n }\r\n this.map.fitBounds(bounds);\r\n }\r\n\r\n addMarker(object: MapObject | MapObject[], clickCallback: (markerItem: any) => void) {\r\n const bounds = new google.maps.LatLngBounds();\r\n\r\n this.clearMarkers();\r\n if (!this.map) {\r\n console.warn(\"call addGeoObject not allowed. Map not loaded\");\r\n return false;\r\n }\r\n const arr = Array.isArray(object) ? object : [object];\r\n for (let i = 0; i < arr.length; i++) {\r\n const position = new google.maps.LatLng({\r\n lat: Number(arr[i].lat),\r\n lng: Number(arr[i].lng),\r\n });\r\n const marker = new google.maps.Marker({\r\n position,\r\n icon: arr[i].icon,\r\n title: arr[i].title + \"\\n\" + arr[i].address.replace(\"
\", \"\"),\r\n });\r\n\r\n marker.addListener(\"click\", () => {\r\n clickCallback(arr[i]);\r\n });\r\n\r\n this.markers.push(marker);\r\n bounds.extend(position);\r\n this.markers[this.markers.length - 1].setMap(this.map);\r\n }\r\n this.map.fitBounds(bounds);\r\n }\r\n}\r\nexport type MapObject = {\r\n type: string;\r\n title: string;\r\n address: string;\r\n icon: string;\r\n lat: number;\r\n lng: number;\r\n};\r\n","import { reactive } from \"vue\";\r\nimport { MainModelService } from \"@/services/main.model.service\";\r\n\r\nclass MapModelService extends MainModelService {\r\n constructor() {\r\n super();\r\n }\r\n\r\n getMapObjects(callback: (items: any) => void) {\r\n this.getRequest(\"/wp-json/api/map_items\", null, (response: any) => {\r\n callback(response);\r\n });\r\n }\r\n}\r\n\r\nexport const mapModelService = reactive(new MapModelService());\r\n","import { defineComponent, toRaw } from \"vue\";\r\nimport common from \"../core/core\";\r\nimport { Swiper as SwiperCreator } from \"swiper\";\r\nimport ContactsMap from \"@/core/contactsMap\";\r\nimport { mapModelService } from \"@/services/map.model.service\";\r\n\r\nexport default defineComponent({\r\n components: {},\r\n data() {\r\n return {\r\n map: null,\r\n mapTageSwiper: null,\r\n mapData: {\r\n categories: [],\r\n markers: [],\r\n icons: {},\r\n },\r\n mapCategory: null,\r\n mapSearch: \"\",\r\n mapSelectedItem: null,\r\n mapItemOpened: false,\r\n mobileExpand: false,\r\n mapHoursCollapsed: false,\r\n loading: true,\r\n openLegendArray: [],\r\n };\r\n },\r\n mounted() {\r\n this.initMap().then(() => {\r\n // Создаем карту\r\n this.map = new ContactsMap();\r\n this.map\r\n .init(\"#map-contacts\", {\r\n center: { lat: 47.526393, lng: 42.1941799 },\r\n zoom: 8,\r\n })\r\n .then(() => {\r\n this.setMapCategory();\r\n this.map.updateBounds();\r\n\r\n setTimeout(() => {\r\n this.loading = false;\r\n }, 300);\r\n });\r\n });\r\n\r\n this.mapTageSwiper = new SwiperCreator(\".map-contacts-categories .swiper-container\", {\r\n spaceBetween: 12,\r\n slidesPerView: \"auto\",\r\n freeMode: true,\r\n mousewheel: true,\r\n allowTouchMove: true,\r\n });\r\n },\r\n computed: {\r\n mapWorkingHours() {\r\n const mapSelectedItem = toRaw(this.mapSelectedItem);\r\n const hours = [];\r\n if (mapSelectedItem) {\r\n for (const key in mapSelectedItem.working_hours) {\r\n if (mapSelectedItem?.working_hours && key) {\r\n let value = \"Zavřeno\";\r\n if (mapSelectedItem?.working_hours[key]) {\r\n const hours = [];\r\n for (const item of mapSelectedItem.working_hours[key]) {\r\n const subItem = [];\r\n if (item.from) {\r\n subItem.push(item.from);\r\n }\r\n if (item.to) {\r\n subItem.push(item.to);\r\n }\r\n if (subItem.length != 0) {\r\n hours.push(subItem.join(\"-\").toUpperCase().replace(\" \", \"\"));\r\n }\r\n }\r\n if (hours.length != 0) {\r\n value = hours.join(\", \");\r\n }\r\n }\r\n hours.push({\r\n label: key,\r\n value,\r\n });\r\n }\r\n }\r\n }\r\n return hours;\r\n },\r\n },\r\n methods: {\r\n toggleMapHoursCollapsed() {\r\n this.mapHoursCollapsed = !this.mapHoursCollapsed;\r\n },\r\n selectMarker(item: any) {\r\n this.mapSelectedItem = item;\r\n this.mapItemOpened = true;\r\n this.mobileExpand = true;\r\n\r\n const offsetX = window.innerWidth > 767 ? window.innerWidth / 4 : 0;\r\n const offsetY = window.innerWidth > 767 ? 0 : -50;\r\n\r\n this.map.setCenter(item.lat, item.lng, 16, offsetX, offsetY);\r\n },\r\n mapGoBack() {\r\n this.mapItemOpened = false;\r\n this.map.updateBounds();\r\n },\r\n clearSearch() {\r\n this.mapSearch = \"\";\r\n },\r\n initMap() {\r\n return new Promise((resolve) => {\r\n mapModelService.getMapObjects((data) => {\r\n const promises: Promise[] = [];\r\n // получаем svg иконки категорий... нахера? жесть...\r\n this.mapData = { ...this.mapData, ...data };\r\n for (const category of data.categories) {\r\n promises.push(\r\n new Promise((resolve) => {\r\n fetch(\"/wp-content/themes/poda/assets/img/icons/\" + category.map_category_icon_slug + \".svg\")\r\n .then((r) => r.text())\r\n .then((text) => {\r\n const icons: any = this.mapData.icons;\r\n icons[category.map_category_slug] = text;\r\n resolve();\r\n });\r\n })\r\n );\r\n\r\n promises.push(\r\n new Promise((resolve) => {\r\n fetch(\"/wp-content/themes/poda/assets/img/icons/\" + category.map_category_icon_slug + \"-fill.svg\")\r\n .then((r) => r.text())\r\n .then((text) => {\r\n const icons: any = this.mapData.icons;\r\n icons[category.map_category_slug + \"-fill\"] = text;\r\n resolve();\r\n });\r\n })\r\n );\r\n }\r\n Promise.all(promises).then(() => {\r\n resolve();\r\n });\r\n });\r\n });\r\n },\r\n getIconBySlug(slug: string) {\r\n const icons: any = this.mapData.icons;\r\n return icons[slug] || \"\";\r\n },\r\n getMapCategories(type: string = null) {\r\n if (type && type !== \"all\") {\r\n const category = this.mapData.categories.find((i: any) => i.map_category_slug === type);\r\n this.mapCategory = type;\r\n return category ? category : [];\r\n } else {\r\n return this.mapData.categories;\r\n }\r\n },\r\n setMapCategory(slug: string = null) {\r\n this.mapCategory = slug;\r\n const markers = this.mapCategory\r\n ? this.mapData.markers.filter((i: any) => i.category_slug === this.mapCategory)\r\n : this.mapData.markers;\r\n if (this.map?.map) {\r\n this.map.addMarker(markers, (markerItem: any) => {\r\n this.selectMarker(markerItem);\r\n });\r\n }\r\n },\r\n getMarkers() {\r\n let markers = this.mapCategory\r\n ? this.mapData.markers.filter((i: any) => i.category_slug === this.mapCategory)\r\n : this.mapData.markers;\r\n if (this.mapSearch) {\r\n markers = markers.filter((i: any) => {\r\n return i.title.toLowerCase().includes(this.mapSearch) || i.address.includes(this.mapSearch);\r\n });\r\n }\r\n return markers;\r\n },\r\n // eslint-disable-next-line @typescript-eslint/no-empty-function\r\n mapInit(map: any) {},\r\n openLegend(slug: string) {\r\n if (!this.openLegendArray.includes(slug)) {\r\n this.openLegendArray.push(slug);\r\n } else {\r\n this.openLegendArray.splice(this.openLegendArray.indexOf(slug), 1);\r\n }\r\n },\r\n openMobileExpand() {\r\n this.mobileExpand = !this.mobileExpand;\r\n },\r\n },\r\n mixins: [common],\r\n});\r\n"],"names":["Loader","apiKey","options","resolve","reject","script","e","parameters","name","value","ContactsMap","__publicField","target","targetObj","mapLoader","mapOptions","google","lat","lng","zoom","offsetX","offsetY","latlng","offsetx","offsety","scale","worldCoordinateCenter","pixelOffset","worldCoordinateNewCenter","newCenter","marker","toRaw","bounds","position","object","clickCallback","arr","i","MapModelService","MainModelService","callback","response","mapModelService","reactive","mapContacts","defineComponent","SwiperCreator","mapSelectedItem","hours","key","item","subItem","data","promises","category","r","text","icons","slug","type","markers","_a","markerItem","map","common"],"mappings":"ymBAAO,MAAMA,CAAO,CAChB,YAAYC,EAAS,KAAMC,EAAU,CAAA,EAAI,CAGrC,GAFA,KAAK,OAASD,EACd,KAAK,QAAUC,EACX,OAAO,OAAW,IAClB,MAAM,IAAI,MAAM,sDAAsD,CAE7E,CACD,MAAO,CACH,OAAI,OAAO,KAAK,IAAQ,IACb,QAAQ,QAAQ,KAAK,GAAG,EAE/B,OAAO,KAAK,OAAW,IAChB,KAAK,QAEhB,OAAOF,EAAO,eAAiB,IAAM,CAEjC,GADA,KAAK,IAAM,OAAO,OACd,OAAO,KAAK,QAAY,IACxB,MAAM,IAAI,MAAM,mBAAmB,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