New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@63pokupki/yandex-map

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@63pokupki/yandex-map - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

2

dist/component.umd.min.js

@@ -1,2 +0,2 @@

(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["component"]=e():t["component"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fae3")}({"096a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.YMapsObjects=function(){function t(e,n){o(this,t),this.markers=n,this.Map=e}return r(t,[{key:"fCreate",value:function(t){this.Map.geoObjects.removeAll(),this.objectManager=new ymaps.ObjectManager({clusterize:!0,geoObjectIconLayout:"default#image",geoObjectIconImageHref:t,geoObjectIconImageSize:[50,50],geoObjectIconImageOffset:[-25,-50],clusterIconLayout:"default#image",clusterIconImageHref:t,clusterIconImageSize:[70,70],clusterIconImageOffset:[-35,-70]});for(var e=[],n=0;n<this.markers.length;n++)e.push({type:"Feature",id:this.markers[n].id,geometry:{type:"Point",coordinates:[this.markers[n].latitude,this.markers[n].longitude]}});return this.objectManager.add(e),this.Map.geoObjects.add(this.objectManager),this.objectManager}}]),t}()},"0a11":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.YMapsZoom=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n("656e");function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.YMapsZoom=function(t){function e(){var t,n,r,o;i(this,e);for(var s=arguments.length,c=Array(s),u=0;u<s;u++)c[u]=arguments[u];return r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(c))),n=r,r.tpl='<div class="range">\n <button id="zoom-out" class="range-btn">\n <svg width="23" height="5" viewBox="0 0 23 5" fill="none" xmlns="http://www.w3.org/2000/svg">\n <rect x="22.3064" y="0.63501" width="3.69927" height="22.0241" rx="1.84963" transform="rotate(90 22.3064 0.63501)" fill="#36A6F2"/>\n </svg> \n </button>\n <div class="range-line range-line__active"></div>\n <div class="range-line"></div>\n <div class="range-line"></div>\n <div class="range-line"></div>\n <div class="range-line"></div>\n <div class="range-line"></div>\n <div class="range-line"></div>\n <div class="range-line"></div>\n <div class="range-line"></div>\n <div class="range-line"></div>\n <button id="zoom-in" class="range-btn">\n <svg width="23" height="23" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg">\n <rect x="9.45898" y="0.790527" width="3.67068" height="22.1956" rx="1.83534" fill="#36A6F2"/>\n <rect x="22.3064" y="10.0388" width="3.69927" height="22.0241" rx="1.84963" transform="rotate(90 22.3064 10.0388)" fill="#36A6F2"/>\n </svg> \n </button>\n </div>',o=n,a(r,o)}return s(e,t),r(e,[{key:"fCreate",value:function(){var t=ymaps.templateLayoutFactory.createClass(this.tpl,{zoomBtnItem:null,zoomScrollTimeout:null,zoomOptions:{checkZoomRange:!0,smooth:!0,duration:300},build:function(){var e=this.getData().map;t.superclass.build.call(this),this.zoomBtnItem=document.querySelectorAll(".range-line"),this.zoomInCb=ymaps.util.bind(this.zoomIn,this),this.zoomOutCb=ymaps.util.bind(this.zoomOut,this),this.zoomByRangeLineClickCb=ymaps.util.bind(this.zoomByRangeLineClick,this),this.setCustomZoomValueCb=ymaps.util.bind(this.setCustomZoomValue,this),document.querySelector("#zoom-in").addEventListener("click",this.zoomInCb),document.querySelector("#zoom-out").addEventListener("click",this.zoomOutCb),document.querySelector(".range").addEventListener("click",this.zoomByRangeLineClickCb),e.events.add("wheel",this.setCustomZoomValueCb);var n=e.getZoom();e.setZoom(n,{checkZoomRange:!0})},clear:function(){var e=this.getData().map,n=document.querySelector("#zoom-in"),r=document.querySelector("#zoom-out"),o=document.querySelector(".range");n&&n.removeEventListener("click",this.zoomInCb),r&&r.removeEventListener("click",this.zoomOutCb),o&&o.removeEventListener("click",this.zoomByRangeLineClickCb),e.events.remove("wheel",this.setCustomZoomValueCb),clearTimeout(this.zoomScrollTimeout),t.superclass.clear.call(this)},zoomByRangeLineClick:function(t){var e=this.getData().map;if(t.target.classList.contains("range-line")){for(var n=0;n<this.zoomBtnItem.length;n++)this.zoomBtnItem[n].classList.remove("range-line__active");t.target.classList.add("range-line__active");for(var r=0,o=document.querySelectorAll(".range-line"),i=0;i<o.length;i++)o[i].classList.contains("range-line__active")&&(r=i);e.setZoom(r+10,this.zoomOptions)}},setCustomZoomValue:function(t){var e=this,n=this.getData().map,r=setInterval((function(){var t=n.getZoom();e.zoomBtnItem[t-10].classList.add("range-line__active");for(var r=0;r<e.zoomBtnItem.length;r++)e.zoomBtnItem[r].classList.remove("range-line__active");e.zoomBtnItem[t-10].classList.add("range-line__active")}),10);this.zoomScrollTimeout=setTimeout((function(){clearInterval(r)}),1e3)},zoomIn:function(){var t=this.getData().map,e=t.getZoom();if(e<19){t.setZoom(e+1,this.zoomOptions);for(var n=0;n<this.zoomBtnItem.length;n++)this.zoomBtnItem[n].classList.remove("range-line__active");var r=t.getZoom();this.zoomBtnItem[r+1-10].classList.add("range-line__active")}else this.zoomBtnItem[this.zoomBtnItem.length-1].classList.add("range-line__active")},zoomOut:function(){var t=this.getData().map,e=t.getZoom();if(e>10){t.setZoom(e-1,this.zoomOptions);for(var n=0;n<this.zoomBtnItem.length;n++)this.zoomBtnItem[n].classList.remove("range-line__active");var r=t.getZoom();this.zoomBtnItem[r-1-10].classList.add("range-line__active")}else this.zoomBtnItem[0].classList.add("range-line__active")}});return t}}]),e}(o.YMapsBase)},"1cf2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("d785"),o=a(r),i=n("2773");function a(t){return t&&t.__esModule?t:{default:t}}function s(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function c(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){function r(o,i){try{var a=e[o](i),s=a.value}catch(c){return void n(c)}if(!a.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}return r("next")}))}}e.default={name:"YandexMap",props:{markers:{type:Array,default:null},coordsCenter:{type:Array,default:null},apiKey:{type:String,default:""},oneMarkerCoords:{type:Array,default:null},putMarkerInSearch:{type:Boolean,default:!1},currentCoords:[],pathToBaloon:""},data:function(){return{map:null,coords:[],objectManager:null,point:null,oneMarker:null,searchControl:null,mapId:"yandex-map-"+Math.round(1e3*Math.random())}},mounted:function(){var t=this;if(document.getElementById("yandex-maps"))this.initializeYandexMap();else{var e=document.createElement("script");e.setAttribute("src","https://api-maps.yandex.ru/2.1/?lang=ru_RU&apikey="+this.apiKey+"&mode=release&coordorder=latlong"),e.setAttribute("id","yandex-maps"),document.head.appendChild(e),e.addEventListener("load",(function(){t.initializeYandexMap()}))}},methods:{initializeYandexMap:function(){var t=c(o.default.mark((function t(){var e,n,r,a,c;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=[],this.markers&&(e=[].concat(s(this.markers))),n=new i.YMapsCustom({mapId:this.mapId,center:this.coordsCenter,controls:[],markers:e,zoomOptions:{zoom:10,minZoom:10,maxZoom:19},pathToBaloon:this.pathToBaloon,putMarkerInSearch:this.putMarkerInSearch}),t.next=5,n.faInitMap();case 5:r=t.sent,a=r.map,c=r.map_objects,r.search_control,r.zoom_control,this.map=a,this.objectManager=c,this.markers?this.setMarkers():(this.map.events.add("click",this.onClickMap),this.searchControl=new ymaps.control.SearchControl({options:{float:"left",floatIndex:100,noPlacemark:!1}}),this.oneMarkerCoords&&(this.oneMarker=new ymaps.Placemark(this.oneMarkerCoords),this.map.geoObjects.add(this.oneMarker)),this.putMarkerInSearch&&this.map.geoObjects.events.add("click",this.onClickOnceMarket),this.map.controls.add(this.searchControl),this.searchControl.events.add("resultselect",this.Search)),this.map.events.add(["boundschange","datachange","objecttypeschange"],this.getVisibleObjects.bind(this)),this.$emit("InitializeYandexMap",this.map);case 15:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getVisibleObjects:function(){for(var t=[],e=ymaps.geoQuery(this.objectManager.objects).searchInside(this.map),n=0;n<e["_objects"].length;n++)t.push(e["_objects"][n].geometry["_coordinates"]);this.$emit("getVisibleObjects",t)},setMarkers:function(){this.objectManager.objects.events.add(["click"],this.onClickEvent)},onClickEvent:function(t){var e=t.get("objectId"),n=this.objectManager.objects.getById(e).geometry.type;"Point"===n&&(this.$emit("ClickMarker",e),this.point=e)},onClickMap:function(t){var e=t.get("coords");this.map.geoObjects.removeAll(),this.oneMarker=new ymaps.Placemark(e),this.map.geoObjects.add(this.oneMarker),this.$emit("ClickMap",e)},onClickOnceMarket:function(t){var e=t.get("coords");this.$emit("ClickOneMarker",e)},Search:function(t){this.oneMarker&&this.map.geoObjects.remove(this.oneMarker);var e=this.searchControl.getResultsArray(),n=this.searchControl.getSelectedIndex(),r=e[n].properties.get("metaDataProperty.GeocoderMetaData"),o={text:r.text,addrresDetails:r.AddressDetails};this.$emit("Search",o)}},watch:{coordsCenter:function(){this.coordsCenter&&this.map&&(this.map.setCenter(this.coordsCenter),this.setMarkers())},markers:{handler:function(){var t=c(o.default.mark((function t(){var e,n;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:for(this.objectManager.removeAll(),e=[],n=0;n<this.markers.length;n++)e.push({type:"Feature",id:this.markers[n].id,geometry:{type:"Point",coordinates:[this.markers[n].latitude,this.markers[n].longitude]}});this.objectManager.add(e);case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},currentCoords:{deep:!0,handler:function(t,e){t&&this.map&&(this.map.setCenter(t),this.map.setZoom(18,{checkZoomRange:!0,smooth:!0,duration:300}),setTimeout((function(){document.querySelector("#zoom-in").click()}),300))}}},beforeDestroy:function(){this.map.geoObjects.length&&this.map.geoObjects.removeAll()}}},"1eb2":function(t,e,n){"use strict";if(Object.defineProperty(e,"__esModule",{value:!0}),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}e.default=null},2773:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.YMapsCustom=void 0;var r=n("d785"),o=p(r),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n("a0b6"),s=n("8233"),c=n("902a"),u=n("096a"),l=n("0a11");function p(t){return t&&t.__esModule?t:{default:t}}function h(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){function r(o,i){try{var a=e[o](i),s=a.value}catch(c){return void n(c)}if(!a.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}return r("next")}))}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.YMapsCustom=function(){function t(e){f(this,t),this.mapId=e.mapId,this.center=e.center,this.controls=e.controls,this.markers=e.markers,this.zoomOptions=e.zoomOptions,this.pathToBaloon=e.pathToBaloon,this.putMarkerInSearch=e.putMarkerInSearch}return i(t,[{key:"faInitMap",value:function(){var t=h(o.default.mark((function t(){return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,ymaps.ready();case 2:return this.Map=new ymaps.Map(this.mapId,{center:this.center,zoom:this.zoomOptions.zoom,controls:this.controls},{minZoom:this.zoomOptions.minZoom,maxZoom:this.zoomOptions.maxZoom}),(0,a.fAddTemplateToMap)(c.YMapsStyles,this),this.MapControls={},this.MapControls.search_control=(0,a.fAddMarkerToMap)(s.YMapsSearch,this),this.MapControls.zoom_control=(0,a.fAddTemplateToMap)(l.YMapsZoom,this),this.MapControls.map_objects=(0,a.fAddBaloonToMap)(u.YMapsObjects,this.pathToBaloon,this),t.abrupt("return",{map:this.Map,map_objects:this.MapControls.map_objects,search_control:this.MapControls.search_control,zoom_control:this.MapControls.zoom_control});case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),t}()},2877:function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,c):[c]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},"3ac0":function(t,e,n){"use strict";n.r(e);var r=n("b1ff"),o=n("3d5c");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);var a=n("2877"),s=Object(a["a"])(o["default"],r["a"],r["b"],!1,null,null,null);e["default"]=s.exports},"3d5c":function(t,e,n){"use strict";n.r(e);var r=n("1cf2"),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},"62e4":function(t,e,n){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"656e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.YMapsBase=function(){function t(e,n){o(this,t),this.events=new ymaps.event.Manager,this.options=new ymaps.option.Manager,this.state=new ymaps.data.Manager,this.Map=e,this.putMarkerInSearch=n}return r(t,[{key:"setParent",value:function(t){if(this.parent=t,t){var e=t.getMap(),n=this.fCreate();this.layout=new n({map:e}),this.layout.setParentElement(e.panes.get("controls").getElement())}else this.layout.setParentElement(null)}},{key:"getParent",value:function(){return this.parent}}]),t}()},8233:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.YMapsSearch=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n("656e");function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.YMapsSearch=function(t){function e(){var t,n,r,o;i(this,e);for(var s=arguments.length,c=Array(s),u=0;u<s;u++)c[u]=arguments[u];return r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(c))),n=r,r.tpl='<div class="input-wrapper">\n\t\t\t\t<input placeholder="Введите адрес" id="suggest" class="yamaps-search__input" type="text">\n\t\t\t\t<button id="search_btn" class="yamaps-search__button">Найти</button>\n\t\t\t</div>',o=n,a(r,o)}return s(e,t),r(e,[{key:"fCreate",value:function(){var t=ymaps.templateLayoutFactory.createClass(this.tpl,{SuggestView:null,suggestionValue:null,Map:this.Map,putMarkerInSearch:this.putMarkerInSearch,build:function(){t.superclass.build.call(this),this.fCreateSuggestView(),this.fSetEventsOnSearch()},clear:function(){this.fRemoveEventListeners(),t.superclass.clear.call(this)},fSetEventsOnSearch:function(){document.querySelector("#suggest").addEventListener("input",this.fSaveValueOnInputType.bind(this)),document.querySelector("#search_btn").addEventListener("click",this.fSearchByButton.bind(this)),document.querySelector("#suggest").addEventListener("keydown",this.fSearchByEnter.bind(this)),this.SuggestView.events.add("select",this.fSearchBySelect.bind(this))},fCreateSuggestView:function(){this.SuggestView=new ymaps.SuggestView("suggest",{provider:"yandex#search",results:3,offset:[0,-2e3]})},fSaveValueOnInputType:function(t){this.suggestionValue=t.target.value,t.target.value.trim().length>0?this.SuggestView.options.set("offset",[0,0]):(this.SuggestView.options.set("offset",[0,-2e3]),this.suggestionValue=null)},fSearchBySelect:function(t){var e=t.get("item").value;this.fSearch(e)},fSearchByEnter:function(t){"enter"===t.code.toLowerCase()&&this.fSearch(t.target.value)},fSearchByButton:function(t){this.suggestionValue&&this.fSearch(this.suggestionValue)},fSearch:function(t){var e=this;ymaps.geocode(t).then((function(t){var n=t.geoObjects.get(0).geometry.getCoordinates();e.Map.setCenter([n[0],n[1]]),e.putMarkerInSearch&&(e.Map.geoObjects.removeAll(),e.oneMarker=new ymaps.Placemark(n),e.Map.geoObjects.add(e.oneMarker))}))},fRemoveEventListeners:function(){document.querySelector("#suggest").removeEventListener("input",this.fSaveValueOnInputType.bind(this)),document.querySelector("#search_btn").removeEventListener("click",this.fSearchByButton.bind(this)),document.querySelector("#suggest").removeEventListener("keydown",this.fSearchByEnter.bind(this)),this.SuggestView.events.remove("select",this.fSearchBySelect.bind(this))}});return t}}]),e}(o.YMapsBase)},8875:function(t,e,n){"use strict";var r,o,i;"function"===typeof Symbol&&Symbol.iterator;(function(n,a){o=[],r=a,i="function"===typeof r?r.apply(e,o):r,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var n,r,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=i.exec(f.stack)||a.exec(f.stack),c=s&&s[1]||!1,u=s&&s[2]||!1,l=document.location.href.replace(document.location.hash,""),p=document.getElementsByTagName("script");c===l&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var h=0;h<p.length;h++){if("interactive"===p[h].readyState)return p[h];if(p[h].src===c)return p[h];if(c===l&&p[h].innerHTML&&p[h].innerHTML.trim()===o)return p[h]}return null}}return t}))},"902a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.YMapsStyles=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n("656e");function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.YMapsStyles=function(t){function e(){var t,n,r,o;i(this,e);for(var s=arguments.length,c=Array(s),u=0;u<s;u++)c[u]=arguments[u];return r=a(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(c))),n=r,r.tpl="<style>\n \t.range {\n \t width: 40px;\n \t height: 225px;\n \t padding: 5px;\n \t box-sizing: border-box;\n \t display: flex;\n \t flex-direction: column;\n \t justify-content: space-between;\n \t background: rgba(218,218,218,0.49);\n \t border-radius: 9px;\n \t cursor: pointer;\n \t position: absolute;\n \t right: 15px;\n \t top: 275px;\n \t}\n \t.range-btn {\n \t width: 30px;\n \t height: 30px;\n \t padding: 2px;\n \t display: flex;\n \t flex-direction: column;\n \t justify-content: center;\n \t align-items: center;\n \t box-sizing: border-box;\n \t border: none;\n \t background: #FFFFFF;\n \t box-shadow: 0px 0px 8.57692px rgba(0, 0, 0, 0.15);\n \t border-radius: 4px;\n \t cursor: pointer;\n \t}\n \t.range-icon {\n \t width: 100%;\n \t background-color: blue;\n \t border-radius: 10550px;\n \t}\n \t.range-plus__horizontal {\n \t transform: rotate(45deg);\n \t top: -50%;\n \t}\n \t.range-line {\n \t width: 30px;\n \t height: 3px;\n \t background: #F9F9F9;\n \t box-shadow: 0px 0px 8.57692px rgba(0, 0, 0, 0.15);\n \t border-radius: 3px;\n \t}\n \t.range-line.range-line__active {\n \t width: 29.79px;\n \t height: 8.58px;\n \t background: #FFFFFF;\n \t box-shadow: 0px 0px 4.28846px #979797;\n \t border-radius: 3px;\n \t}\n \t.input-wrapper {\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\ttop: 10px;\n\t\t\t\t\tleft: 10px;\n\t\t\t\t\tborder: 1px solid transparent;\n\t\t\t\t\twidth: 320px;\n\t\t\t\t\theight: 36px;\n\t\t\t\t\tbackground: #FFFFFF;\n\t\t\t\t\tborder-radius: 35px;\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\talign-items: stretch;\n\t\t\t\t\tjustify-content: space-between;\n\t\t\t\t\tbackground-color: transparent;\n\t\t\t\t\tfilter: drop-shadow(0px 1px 8px rgba(96, 98, 102, 0.3));\n\t\t\t\t}\n\t\t\t\t.yamaps-search__input {\n\t\t\t\t\twidth: 64%;\n\t\t\t\t\tborder-top-left-radius: 35px;\n\t\t\t\t\tborder-bottom-left-radius: 35px;\n\t\t\t\t\theight: 100%;\n\t\t\t\t\tpadding-left: 12px;\n\t\t\t\t\tborder: none;\n\t\t\t\t}\n\t\t\t\t.yamaps-search__input::placeholder {\n\t\t\t\t\tfont-weight: 400;\n\t\t\t\t\tfont-size: 13px;\n\t\t\t\t\tline-height: 14px;\n\t\t\t\t\tcolor: #606266;\n\t\t\t\t}\n\t\t\t\t.yamaps-search__input:focus {\n\t\t\t\t\toutline: none;\n\t\t\t\t\tborder: 1px solid #FFE485;\n\t\t\t\t}\n\t\t\t\t.yamaps-search__button {\n\t\t\t\t\twidth: 40%;\n\t\t\t\t\tbackground-color: #FFE485;\n\t\t\t\t\theight: 35px;\n\t\t\t\t\tborder: 1px solid #FFE485;\n\t\t\t\t\tborder-top-right-radius: 35px;\n\t\t\t\t\tborder-bottom-right-radius: 35px;\n\t\t\t\t\tfont-family: 'Open Sans';\n\t\t\t\t\tfont-style: normal;\n\t\t\t\t\tfont-weight: 600;\n\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\tline-height: 16px;\n\t\t\t\t\talign-items: center;\n\t\t\t\t\ttext-align: center;\n\t\t\t\t\tcolor: #1D1E1F;\n\t\t\t\t}\n\t\t\t\t.ymaps-2-1-79-copyright__content,\n \t.ymaps-2-1-79-gototech,\n \t.ymaps-2-1-79-gotoymaps__container,\n\t\t\t\t.ymaps-2-1-79-float-button,\n\t\t\t\t.ymaps-2-1-79-_hidden-icon,\n\t\t\t\t.ymaps-2-1-79-gototaxi,\n\t\t\t\t.ymaps-2-1-79-searchbox__normal-layout {\n \t display: none;\n \t}\n\t\t\t\t@media screen and ( max-width: 550px) {\n\t\t\t\t\t.range {\n\t\t\t\t\t\ttop: 150px;\n\t\t\t\t\t}\n\t\t\t\t}\n </style>",o=n,a(r,o)}return s(e,t),r(e,[{key:"fCreate",value:function(){var t=ymaps.templateLayoutFactory.createClass(this.tpl,{build:function(){t.superclass.build.call(this)},clear:function(){t.superclass.clear.call(this)}});return t}}]),e}(o.YMapsBase)},"96cf":function(t,e,n){"use strict";(function(t){var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(n){var r,o=Object.prototype,i=o.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag",l="object"===e(t),p=n.regeneratorRuntime;if(p)l&&(t.exports=p);else{p=n.regeneratorRuntime=l?t.exports:{},p.wrap=_;var h="suspendedStart",f="suspendedYield",d="executing",m="completed",y={},g={};g[s]=function(){return this};var v=Object.getPrototypeOf,b=v&&v(v(P([])));b&&b!==o&&i.call(b,s)&&(g=b);var w=O.prototype=M.prototype=Object.create(g);k.prototype=w.constructor=O,O.constructor=k,O[u]=k.displayName="GeneratorFunction",p.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===k||"GeneratorFunction"===(e.displayName||e.name))},p.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(w),t},p.awrap=function(t){return{__await:t}},S(j.prototype),j.prototype[c]=function(){return this},p.AsyncIterator=j,p.async=function(t,e,n,r){var o=new j(_(t,e,n,r));return p.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(w),w[u]="Generator",w[s]=function(){return this},w.toString=function(){return"[object Generator]"},p.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},p.values=P,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(z),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,o){return s.type="throw",s.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),z(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;z(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),y}}}function _(t,e,n,r){var o=e&&e.prototype instanceof M?e:M,i=Object.create(o.prototype),a=new L(r||[]);return i._invoke=C(t,n,a),i}function x(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function M(){}function k(){}function O(){}function S(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function j(t){function n(r,o,a,s){var c=x(t[r],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"===("undefined"===typeof l?"undefined":e(l))&&i.call(l,"__await")?Promise.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):Promise.resolve(l).then((function(t){u.value=t,a(u)}),s)}s(c.arg)}var r;function o(t,e){function o(){return new Promise((function(r,o){n(t,e,r,o)}))}return r=r?r.then(o,o):o()}this._invoke=o}function C(t,e,n){var r=h;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw i;return B()}n.method=o,n.arg=i;while(1){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=x(t,e,n);if("normal"===c.type){if(r=n.done?m:f,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=m,n.method="throw",n.arg=c.arg)}}}function E(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,E(t,e),"throw"===e.method))return y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=x(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,y;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,y):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function z(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function P(t){if(t){var e=t[s];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){while(++n<t.length)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=r,e.done=!0,e};return o.next=o}}return{next:B}}function B(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())}).call(this,n("62e4")(t))},a0b6:function(t,e,n){"use strict";function r(t,e){var n=new t(e.Map);return n.fCreate(),e.Map.controls.add(n,{}),n}function o(t,e,n){var r=new t(n.Map,n.markers);return r.fCreate(e)}function i(t,e){var n=new t(e.Map,e.putMarkerInSearch);return n.fCreate(),e.Map.controls.add(n,{}),n}Object.defineProperty(e,"__esModule",{value:!0}),e.fAddTemplateToMap=r,e.fAddBaloonToMap=o,e.fAddMarkerToMap=i},b1ff:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ymap-wrapper__custom",staticStyle:{width:"100%",height:"100%","max-height":"520px",position:"relative",border:"1px solid transparent","border-radius":"17px",overflow:"hidden"}},[n("div",{staticStyle:{width:"100%",height:"100%"},attrs:{id:t.mapId}})])},o=[]},b635:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.YandexMap=void 0;var r=n("3ac0"),o=i(r);function i(t){return t&&t.__esModule?t:{default:t}}e.YandexMap=o.default},bbdd:function(t,e,n){"use strict";var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n("96cf"),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(a){r.regeneratorRuntime=void 0}},d785:function(t,e,n){"use strict";t.exports=n("bbdd")},fae3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("b635");Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})})),n("1eb2")}})}));
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["component"]=e():t["component"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fae3")}({"096a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.YMapsObjects=function(){function t(e){o(this,t),this.markers=e.markers,this.pathToBaloon=e.pathToBaloon,this.Map=e.Map}return r(t,[{key:"fGetBalloonLayout",value:function(){var t=ymaps.templateLayoutFactory.createClass('<div class="ymap-pvz-popover"><div class="ymap-pvz-popover-close">&times;</div><div class="ymap-pvz-popover-inner">$[[options.contentLayout observeSize]]</div><div class="ymap-pvz-popover-arrow"></div></div>',{build:function(){this.constructor.superclass.build.call(this),this._$element=this.getParentElement().querySelector(".ymap-pvz-popover"),this.applyElementOffset();var t=this._$element.querySelector(".ymap-pvz-popover-close");t.addEventListener("click",this.onCloseClick.bind(this))},clear:function(){var t=this._$element.querySelector(".ymap-pvz-popover-close");t.removeEventListener("click",this.onCloseClick.bind(this)),this.constructor.superclass.clear.call(this)},onSublayoutSizeChange:function(){t.superclass.onSublayoutSizeChange.apply(this,arguments),this._isElement(this._$element)&&(this.applyElementOffset(),this.events.fire("shapechange"))},applyElementOffset:function(){var t=-this._$element.offsetWidth/2,e=6,n=-(this._$element.offsetHeight+e+52);this._$element.style.left=t+"px",this._$element.style.top=n+"px"},onCloseClick:function(t){t.preventDefault(),this.events.fire("userclose")},getShape:function(){if(!this._isElement(this._$element))return t.superclass.getShape.call(this);var e=Number(this._$element.style.top.substring(0,this._$element.style.top.length-2)),n=Number(this._$element.style.left.substring(0,this._$element.style.left.length-2));return new ymaps.shape.Rectangle(new ymaps.geometry.pixel.Rectangle([[n,e],[n+this._$element.offsetWidth,e+this._$element.offsetHeight+this._$element.querySelector(".ymap-pvz-popover-arrow").offsetHeight]]))},_isElement:function(t){return t&&t.querySelector(".ymap-pvz-popover-arrow")}});return t}},{key:"fCreate",value:function(){this.Map.geoObjects.removeAll();var t={clusterize:!0,geoObjectIconLayout:"default#image",geoObjectIconImageSize:[50,50],geoObjectIconImageOffset:[-25,-50]};this.pathToBaloon?(t.clusterIconImageHref=this.pathToBaloon,t.clusterIconLayout="default#image",t.clusterIconImageSize=[70,70],t.clusterIconImageOffset=[-35,-70]):(t.clusterIconLayout="default#pieChart",t.clusterIconPieChartRadius=25,t.clusterIconPieChartCoreRadius=20,t.clusterIconPieChartDoughnut=!1);for(var e=new ymaps.ObjectManager(t),n=[],r=0;r<this.markers.length;r++){var o=this.markers[r],a={type:"Feature",id:o.id,geometry:{type:"Point",coordinates:[o.latitude,o.longitude]}};o.balloonContent&&(a.options={balloonLayout:this.fGetBalloonLayout(),balloonContentLayout:ymaps.templateLayoutFactory.createClass(o.balloonContent.html,o.balloonContent.methods),hideIconOnBalloonOpen:!1,balloonPanelMaxMapArea:0},a.properties={balloonPanelMaxMapArea:0}),o.iconImageHref&&(a.options||(a.options={}),a.options.iconImageHref=o.iconImageHref,a.options.iconColor=o.iconColor),n.push(a)}return e.add(n),this.Map.geoObjects.add(e),e}}]),t}()},"0a11":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.YMapsZoom=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n("656e");function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.YMapsZoom=function(t){function e(){var t,n,r,o;a(this,e);for(var s=arguments.length,c=Array(s),u=0;u<s;u++)c[u]=arguments[u];return r=i(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(c))),n=r,r.tpl='<div class="ymaps-range">\n <button id="zoom-out" class="ymaps-range-btn">\n <svg width="23" height="5" viewBox="0 0 23 5" fill="none" xmlns="http://www.w3.org/2000/svg">\n <rect x="22.3064" y="0.63501" width="3.69927" height="22.0241" rx="1.84963" transform="rotate(90 22.3064 0.63501)" fill="#36A6F2"/>\n </svg> \n </button>\n <div class="ymaps-range-line ymaps-range-line__active"></div>\n <div class="ymaps-range-line"></div>\n <div class="ymaps-range-line"></div>\n <div class="ymaps-range-line"></div>\n <div class="ymaps-range-line"></div>\n <div class="ymaps-range-line"></div>\n <div class="ymaps-range-line"></div>\n <div class="ymaps-range-line"></div>\n <div class="ymaps-range-line"></div>\n <div class="ymaps-range-line"></div>\n <button id="zoom-in" class="ymaps-range-btn">\n <svg width="23" height="23" viewBox="0 0 23 23" fill="none" xmlns="http://www.w3.org/2000/svg">\n <rect x="9.45898" y="0.790527" width="3.67068" height="22.1956" rx="1.83534" fill="#36A6F2"/>\n <rect x="22.3064" y="10.0388" width="3.69927" height="22.0241" rx="1.84963" transform="rotate(90 22.3064 10.0388)" fill="#36A6F2"/>\n </svg> \n </button>\n </div>',o=n,i(r,o)}return s(e,t),r(e,[{key:"fCreate",value:function(){var t=ymaps.templateLayoutFactory.createClass(this.tpl,{zoomBtnItem:null,zoomScrollTimeout:null,zoomOptions:{checkZoomRange:!0,smooth:!0,duration:300},build:function(){var e=this.getData().map;t.superclass.build.call(this),this.zoomBtnItem=document.querySelectorAll(".ymaps-range-line"),this.zoomInCb=ymaps.util.bind(this.zoomIn,this),this.zoomOutCb=ymaps.util.bind(this.zoomOut,this),this.zoomByRangeLineClickCb=ymaps.util.bind(this.zoomByRangeLineClick,this),this.setCustomZoomValueCb=ymaps.util.bind(this.setCustomZoomValue,this),document.querySelector("#zoom-in").addEventListener("click",this.zoomInCb),document.querySelector("#zoom-out").addEventListener("click",this.zoomOutCb),document.querySelector(".ymaps-range").addEventListener("click",this.zoomByRangeLineClickCb),e.events.add("wheel",this.setCustomZoomValueCb);var n=e.getZoom();e.setZoom(n,{checkZoomRange:!0})},clear:function(){var e=this.getData().map,n=document.querySelector("#zoom-in"),r=document.querySelector("#zoom-out"),o=document.querySelector(".ymaps-range");n&&n.removeEventListener("click",this.zoomInCb),r&&r.removeEventListener("click",this.zoomOutCb),o&&o.removeEventListener("click",this.zoomByRangeLineClickCb),e.events.remove("wheel",this.setCustomZoomValueCb),clearTimeout(this.zoomScrollTimeout),t.superclass.clear.call(this)},zoomByRangeLineClick:function(t){var e=this.getData().map;if(t.target.classList.contains("ymaps-range-line")){for(var n=0;n<this.zoomBtnItem.length;n++)this.zoomBtnItem[n].classList.remove("ymaps-range-line__active");t.target.classList.add("ymaps-range-line__active");for(var r=0,o=document.querySelectorAll(".ymaps-range-line"),a=0;a<o.length;a++)o[a].classList.contains("ymaps-range-line__active")&&(r=a);e.setZoom(r+10,this.zoomOptions)}},setCustomZoomValue:function(t){var e=this,n=this.getData().map,r=setInterval((function(){var t=n.getZoom();e.zoomBtnItem[t-10].classList.add("ymaps-range-line__active");for(var r=0;r<e.zoomBtnItem.length;r++)e.zoomBtnItem[r].classList.remove("ymaps-range-line__active");e.zoomBtnItem[t-10].classList.add("ymaps-range-line__active")}),10);this.zoomScrollTimeout=setTimeout((function(){clearInterval(r)}),1e3)},zoomIn:function(){var t=this.getData().map,e=t.getZoom();if(e<19){t.setZoom(e+1,this.zoomOptions);for(var n=0;n<this.zoomBtnItem.length;n++)this.zoomBtnItem[n].classList.remove("ymaps-range-line__active");var r=t.getZoom();this.zoomBtnItem[r+1-10].classList.add("ymaps-range-line__active")}else this.zoomBtnItem[this.zoomBtnItem.length-1].classList.add("ymaps-range-line__active")},zoomOut:function(){var t=this.getData().map,e=t.getZoom();if(e>10){t.setZoom(e-1,this.zoomOptions);for(var n=0;n<this.zoomBtnItem.length;n++)this.zoomBtnItem[n].classList.remove("ymaps-range-line__active");var r=t.getZoom();this.zoomBtnItem[r-1-10].classList.add("ymaps-range-line__active")}else this.zoomBtnItem[0].classList.add("ymaps-range-line__active")}});return t}}]),e}(o.YMapsBase)},1720:function(t,e,n){var r=n("4e84");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("499e").default;o("7783585f",r,!0,{sourceMap:!1,shadowMode:!1})},"1cf2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("d785"),o=i(r),a=n("2773");function i(t){return t&&t.__esModule?t:{default:t}}function s(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function c(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){function r(o,a){try{var i=e[o](a),s=i.value}catch(c){return void n(c)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}return r("next")}))}}e.default={name:"YandexMap",props:{markers:{type:Array,default:function(){return[]}},isMarkerOnClick:{type:Boolean,default:!1},coordsCenter:{type:Array,default:null},apiKey:{type:String,default:""},oneMarkerCoords:{type:Array,default:null},putMarkerInSearch:{type:Boolean,default:!1},currentCoords:[],pathToBaloon:""},data:function(){return{mapCustom:null,map:null,coords:[],objectManager:null,point:null,oneMarker:null,searchControl:null,searchManager:null,zoomManager:null,mapId:"yandex-map-"+Math.round(1e3*Math.random())}},mounted:function(){var t=this;if(document.getElementById("yandex-maps"))this.initializeYandexMap();else{var e=document.createElement("script");e.setAttribute("src","https://api-maps.yandex.ru/2.1/?lang=ru_RU&apikey="+this.apiKey+"&mode=release&coordorder=latlong"),e.setAttribute("id","yandex-maps"),document.head.appendChild(e),e.addEventListener("load",(function(){t.initializeYandexMap()}))}},methods:{initializeYandexMap:function(){var t=c(o.default.mark((function t(){var e,n,r,i,c,u;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=[],this.markers&&(e=[].concat(s(this.markers))),this.mapCustom=new a.YMapsCustom({mapId:this.mapId,center:this.coordsCenter,controls:[],markers:e,zoomOptions:{zoom:10,minZoom:10,maxZoom:19},pathToBaloon:this.pathToBaloon,putMarkerInSearch:this.putMarkerInSearch}),t.next=5,this.mapCustom.faInitMap();case 5:n=t.sent,r=n.map,i=n.map_objects,c=n.search_control,u=n.zoom_control,this.map=r,this.objectManager=i,this.searchManager=c,this.zoomManager=u,!this.markers||this.isMarkerOnClick?(this.map.events.add("click",this.onClickMap),this.searchControl=new ymaps.control.SearchControl({options:{float:"left",floatIndex:100,noPlacemark:!1}}),this.oneMarkerCoords&&(this.oneMarker=new ymaps.Placemark(this.oneMarkerCoords),this.map.geoObjects.add(this.oneMarker)),this.putMarkerInSearch&&this.map.geoObjects.events.add("click",this.onClickOnceMarket),this.map.controls.add(this.searchControl),this.searchControl.events.add("resultselect",this.Search)):this.objectManager.objects.events.add(["click"],this.onClickEvent),this.map.events.add(["boundschange","datachange","objecttypeschange"],this.getVisibleObjects.bind(this)),this.$emit("InitializeYandexMap",this.map);case 17:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),getVisibleObjects:function(){for(var t=[],e=ymaps.geoQuery(this.objectManager.objects).searchInside(this.map),n=0;n<e["_objects"].length;n++)t.push(e["_objects"][n].geometry["_coordinates"]);this.$emit("getVisibleObjects",t)},onClickEvent:function(t){var e=t.get("objectId"),n=this.objectManager.objects.getById(e).geometry.type;"Point"===n&&(this.$emit("ClickMarker",e),this.point=e)},onClickMap:function(t){var e=t.get("coords");this.oneMarker&&this.map.geoObjects.remove(this.oneMarker),this.oneMarker=new ymaps.Placemark(e),this.map.geoObjects.add(this.oneMarker),this.$emit("ClickMap",e)},onClickOnceMarket:function(t){var e=t.get("coords");this.$emit("ClickOneMarker",e)},Search:function(t){this.oneMarker&&this.map.geoObjects.remove(this.oneMarker);var e=this.searchControl.getResultsArray(),n=this.searchControl.getSelectedIndex(),r=e[n].properties.get("metaDataProperty.GeocoderMetaData"),o={text:r.text,addrresDetails:r.AddressDetails};this.$emit("Search",o)}},watch:{coordsCenter:function(){this.coordsCenter&&this.map&&this.map.setCenter(this.coordsCenter)},markers:{handler:function(){var t=c(o.default.mark((function t(){return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.mapCustom&&(this.mapCustom.markers=this.markers,this.objectManager=this.mapCustom.fInitMapObjects(),this.objectManager.objects.events.add(["click"],this.onClickEvent));case 1:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},currentCoords:{deep:!0,handler:function(t,e){t&&this.map&&(this.map.setCenter(t),this.map.setZoom(18,{checkZoomRange:!0,smooth:!0,duration:300}),setTimeout((function(){document.querySelector("#zoom-in").click()}),300))}},isMarkerOnClick:function(t){t?((void 0).map.events.add("click",(void 0).onClickMap),(void 0).oneMarkerCoords&&((void 0).oneMarker=new ymaps.Placemark((void 0).oneMarkerCoords),(void 0).map.geoObjects.add((void 0).oneMarker))):((void 0).map.events.remove("click",(void 0).onClickMap),(void 0).map.geoObjects.remove((void 0).oneMarker))}},beforeDestroy:function(){this.map.geoObjects.length&&this.map.geoObjects.removeAll()}}},"1eb2":function(t,e,n){"use strict";if(Object.defineProperty(e,"__esModule",{value:!0}),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var a=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}e.default=null},"24fb":function(t,e,n){"use strict";function r(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"===typeof btoa){var a=o(r),i=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(i).concat([a]).join("\n")}return[n].join("\n")}function o(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=r(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"===typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},2773:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.YMapsCustom=void 0;var r=n("d785"),o=p(r),a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n("a0b6"),s=n("8233"),c=n("902a"),u=n("096a"),l=n("0a11");function p(t){return t&&t.__esModule?t:{default:t}}function f(t){return function(){var e=t.apply(this,arguments);return new Promise((function(t,n){function r(o,a){try{var i=e[o](a),s=i.value}catch(c){return void n(c)}if(!i.done)return Promise.resolve(s).then((function(t){r("next",t)}),(function(t){r("throw",t)}));t(s)}return r("next")}))}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.YMapsCustom=function(){function t(e){h(this,t),this.mapId=e.mapId,this.center=e.center,this.controls=e.controls,this.markers=e.markers,this.zoomOptions=e.zoomOptions,this.pathToBaloon=e.pathToBaloon,this.putMarkerInSearch=e.putMarkerInSearch}return a(t,[{key:"fInitMapObjects",value:function(){return(0,i.fAddBaloonToMap)(u.YMapsObjects,this)}},{key:"faInitMap",value:function(){var t=f(o.default.mark((function t(){return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,ymaps.ready();case 2:return this.Map=new ymaps.Map(this.mapId,{center:this.center,zoom:this.zoomOptions.zoom,controls:this.controls},{minZoom:this.zoomOptions.minZoom,maxZoom:this.zoomOptions.maxZoom}),(0,i.fAddTemplateToMap)(c.YMapsStyles,this),this.MapControls={},this.MapControls.search_control=(0,i.fAddMarkerToMap)(s.YMapsSearch,this),this.MapControls.zoom_control=(0,i.fAddTemplateToMap)(l.YMapsZoom,this),this.MapControls.map_objects=this.fInitMapObjects(),t.abrupt("return",{map:this.Map,map_objects:this.MapControls.map_objects,search_control:this.MapControls.search_control,zoom_control:this.MapControls.zoom_control});case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),t}()},2877:function(t,e,n){"use strict";function r(t,e,n,r,o,a,i,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),i?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,c):[c]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},"3ac0":function(t,e,n){"use strict";n.r(e);var r=n("e3d7"),o=n("3d5c");for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);n("5469");var i=n("2877"),s=Object(i["a"])(o["default"],r["a"],r["b"],!1,null,null,null);e["default"]=s.exports},"3d5c":function(t,e,n){"use strict";n.r(e);var r=n("1cf2"),o=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=o.a},"499e":function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return m}));var r=n("9bbc"),o=n.n(r),a="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},s=a&&(document.head||document.getElementsByTagName("head")[0]),c=null,u=0,l=!1,p=function(){},f=null,h="data-vue-ssr-id",d="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function m(t,e,n,r){l=n,f=r||{};var a=o()(t,e);return y(a),function(e){for(var n=[],r=0;r<a.length;r++){var s=a[r],c=i[s.id];c.refs--,n.push(c)}e?(a=o()(t,e),y(a)):a=[];for(r=0;r<n.length;r++){c=n[r];if(0===c.refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete i[c.id]}}}}function y(t){for(var e=0;e<t.length;e++){var n=t[e],r=i[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(g(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(o=0;o<n.parts.length;o++)a.push(g(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:a}}}}function v(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function g(t){var e,n,r=document.querySelector("style["+h+'~="'+t.id+'"]');if(r){if(l)return p;r.parentNode.removeChild(r)}if(d){var o=u++;r=c||(c=v()),e=w.bind(null,r,o,!1),n=w.bind(null,r,o,!0)}else r=v(),e=x.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var b=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function w(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=b(e,o);else{var a=document.createTextNode(o),i=t.childNodes;i[e]&&t.removeChild(i[e]),i.length?t.insertBefore(a,i[e]):t.appendChild(a)}}function x(t,e){var n=e.css,r=e.media,o=e.sourceMap;if(r&&t.setAttribute("media",r),f.ssrId&&t.setAttribute(h,e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"4e84":function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,".ymap-pvz-popover{background:#fff;border-radius:8px;position:relative;box-shadow:0 0 8px rgba(0,0,0,.15);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.ymap-pvz-popover-close{width:22px;height:22px;border-radius:50%;background:#4f4f50;position:absolute;top:-11px;right:-11px;cursor:pointer;display:flex;justify-content:center;align-items:center;color:#fff}.ymap-pvz-popover-arrow{display:block;width:6px;height:6px;position:absolute;left:calc(50% - 3px);bottom:-3px;background-color:inherit;transform:rotate(45deg);box-shadow:0 0 8px rgba(0,0,0,.15)}",""]),t.exports=e},5469:function(t,e,n){"use strict";n("1720")},"62e4":function(t,e,n){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"656e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.YMapsBase=function(){function t(e,n){o(this,t),this.events=new ymaps.event.Manager,this.options=new ymaps.option.Manager,this.state=new ymaps.data.Manager,this.Map=e,this.putMarkerInSearch=n}return r(t,[{key:"setParent",value:function(t){if(this.parent=t,t){var e=t.getMap(),n=this.fCreate();this.layout=new n({map:e}),this.layout.setParentElement(e.panes.get("controls").getElement())}else this.layout.setParentElement(null)}},{key:"getParent",value:function(){return this.parent}}]),t}()},8233:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.YMapsSearch=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n("656e");function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.YMapsSearch=function(t){function e(){var t,n,r,o;a(this,e);for(var s=arguments.length,c=Array(s),u=0;u<s;u++)c[u]=arguments[u];return r=i(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(c))),n=r,r.tpl='<div class="ymaps-input-wrapper">\n\t\t\t\t<input placeholder="Введите адрес" id="suggest" class="yamaps-search__input" type="text">\n\t\t\t\t<button id="search_btn" class="yamaps-search__button">Найти</button>\n\t\t\t</div>',o=n,i(r,o)}return s(e,t),r(e,[{key:"fCreate",value:function(){var t=ymaps.templateLayoutFactory.createClass(this.tpl,{SuggestView:null,suggestionValue:null,Map:this.Map,putMarkerInSearch:this.putMarkerInSearch,build:function(){t.superclass.build.call(this),this.fCreateSuggestView(),this.fSetEventsOnSearch()},clear:function(){this.fRemoveEventListeners(),t.superclass.clear.call(this)},fSetEventsOnSearch:function(){document.querySelector("#suggest").addEventListener("input",this.fSaveValueOnInputType.bind(this)),document.querySelector("#search_btn").addEventListener("click",this.fSearchByButton.bind(this)),document.querySelector("#suggest").addEventListener("keydown",this.fSearchByEnter.bind(this)),this.SuggestView.events.add("select",this.fSearchBySelect.bind(this))},fCreateSuggestView:function(){this.SuggestView=new ymaps.SuggestView("suggest",{provider:"yandex#search",results:3,offset:[0,-2e3]})},fSaveValueOnInputType:function(t){this.suggestionValue=t.target.value,t.target.value.trim().length>0?this.SuggestView.options.set("offset",[0,0]):(this.SuggestView.options.set("offset",[0,-2e3]),this.suggestionValue=null)},fSearchBySelect:function(t){var e=t.get("item").value;this.fSearch(e)},fSearchByEnter:function(t){"enter"===t.code.toLowerCase()&&this.fSearch(t.target.value)},fSearchByButton:function(t){this.suggestionValue&&this.fSearch(this.suggestionValue)},fSearch:function(t){var e=this;ymaps.geocode(t).then((function(t){var n=t.geoObjects.get(0).geometry.getCoordinates();e.Map.setCenter([n[0],n[1]]),e.putMarkerInSearch&&(e.Map.geoObjects.removeAll(),e.oneMarker=new ymaps.Placemark(n),e.Map.geoObjects.add(e.oneMarker))}))},fRemoveEventListeners:function(){document.querySelector("#suggest").removeEventListener("input",this.fSaveValueOnInputType.bind(this)),document.querySelector("#search_btn").removeEventListener("click",this.fSearchByButton.bind(this)),document.querySelector("#suggest").removeEventListener("keydown",this.fSearchByEnter.bind(this)),this.SuggestView.events.remove("select",this.fSearchBySelect.bind(this))}});return t}}]),e}(o.YMapsBase)},8875:function(t,e,n){"use strict";var r,o,a;"function"===typeof Symbol&&Symbol.iterator;(function(n,i){o=[],r=i,a="function"===typeof r?r.apply(e,o):r,void 0===a||(t.exports=a)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(h){var n,r,o,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,i=/@([^@]*):(\d+):(\d+)\s*$/gi,s=a.exec(h.stack)||i.exec(h.stack),c=s&&s[1]||!1,u=s&&s[2]||!1,l=document.location.href.replace(document.location.hash,""),p=document.getElementsByTagName("script");c===l&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var f=0;f<p.length;f++){if("interactive"===p[f].readyState)return p[f];if(p[f].src===c)return p[f];if(c===l&&p[f].innerHTML&&p[f].innerHTML.trim()===o)return p[f]}return null}}return t}))},"902a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.YMapsStyles=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n("656e");function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.YMapsStyles=function(t){function e(){var t,n,r,o;a(this,e);for(var s=arguments.length,c=Array(s),u=0;u<s;u++)c[u]=arguments[u];return r=i(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(c))),n=r,r.tpl="<style>\n \t.ymaps-range {\n \t width: 40px;\n \t height: 225px;\n \t padding: 5px;\n \t box-sizing: border-box;\n \t display: flex;\n \t flex-direction: column;\n \t justify-content: space-between;\n \t background: rgba(218,218,218,0.49);\n \t border-radius: 9px;\n \t cursor: pointer;\n \t position: absolute;\n \t right: 15px;\n \t top: 275px;\n \t}\n \t.ymaps-range-btn {\n \t width: 30px;\n \t height: 30px;\n \t padding: 2px;\n \t display: flex;\n \t flex-direction: column;\n \t justify-content: center;\n \t align-items: center;\n \t box-sizing: border-box;\n \t border: none;\n \t background: #FFFFFF;\n \t box-shadow: 0px 0px 8.57692px rgba(0, 0, 0, 0.15);\n \t border-radius: 4px;\n \t cursor: pointer;\n \t}\n \t.ymaps-range-line {\n \t width: 30px;\n \t height: 3px;\n \t background: #F9F9F9;\n \t box-shadow: 0px 0px 8.57692px rgba(0, 0, 0, 0.15);\n \t border-radius: 3px;\n \t}\n \t.ymaps-range-line.ymaps-range-line__active {\n \t width: 29.79px;\n \t height: 8.58px;\n \t background: #FFFFFF;\n \t box-shadow: 0px 0px 4.28846px #979797;\n \t border-radius: 3px;\n \t}\n \t.ymaps-input-wrapper {\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\ttop: 10px;\n\t\t\t\t\tleft: 10px;\n\t\t\t\t\tborder: 1px solid transparent;\n\t\t\t\t\twidth: 320px;\n\t\t\t\t\theight: 36px;\n\t\t\t\t\tbackground: #FFFFFF;\n\t\t\t\t\tborder-radius: 35px;\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\talign-items: stretch;\n\t\t\t\t\tjustify-content: space-between;\n\t\t\t\t\tbackground-color: transparent;\n\t\t\t\t\tfilter: drop-shadow(0px 1px 8px rgba(96, 98, 102, 0.3));\n\t\t\t\t}\n\t\t\t\t.yamaps-search__input {\n\t\t\t\t\twidth: 64%;\n\t\t\t\t\tborder-top-left-radius: 35px;\n\t\t\t\t\tborder-bottom-left-radius: 35px;\n\t\t\t\t\theight: 100%;\n\t\t\t\t\tpadding-left: 12px;\n\t\t\t\t\tborder: none;\n\t\t\t\t}\n\t\t\t\t.yamaps-search__input::placeholder {\n\t\t\t\t\tfont-weight: 400;\n\t\t\t\t\tfont-size: 13px;\n\t\t\t\t\tline-height: 14px;\n\t\t\t\t\tcolor: #606266;\n\t\t\t\t}\n\t\t\t\t.yamaps-search__input:focus {\n\t\t\t\t\toutline: none;\n\t\t\t\t\tborder: 1px solid #FFE485;\n\t\t\t\t}\n\t\t\t\t.yamaps-search__button {\n\t\t\t\t\twidth: 40%;\n\t\t\t\t\tbackground-color: #FFE485;\n\t\t\t\t\theight: 35px;\n\t\t\t\t\tborder: 1px solid #FFE485;\n\t\t\t\t\tborder-top-right-radius: 35px;\n\t\t\t\t\tborder-bottom-right-radius: 35px;\n\t\t\t\t\tfont-family: 'Open Sans';\n\t\t\t\t\tfont-style: normal;\n\t\t\t\t\tfont-weight: 600;\n\t\t\t\t\tfont-size: 12px;\n\t\t\t\t\tline-height: 16px;\n\t\t\t\t\talign-items: center;\n\t\t\t\t\ttext-align: center;\n\t\t\t\t\tcolor: #1D1E1F;\n\t\t\t\t}\n\t\t\t\t.ymaps-2-1-79-copyright__content,\n \t.ymaps-2-1-79-gototech,\n \t.ymaps-2-1-79-gotoymaps__container,\n\t\t\t\t.ymaps-2-1-79-float-button,\n\t\t\t\t.ymaps-2-1-79-_hidden-icon,\n\t\t\t\t.ymaps-2-1-79-gototaxi,\n\t\t\t\t.ymaps-2-1-79-searchbox__normal-layout {\n \t display: none;\n \t}\n\t\t\t\t@media screen and ( max-width: 550px) {\n\t\t\t\t\t.range {\n\t\t\t\t\t\ttop: 150px;\n\t\t\t\t\t}\n\t\t\t\t}\n </style>",o=n,i(r,o)}return s(e,t),r(e,[{key:"fCreate",value:function(){var t=ymaps.templateLayoutFactory.createClass(this.tpl,{build:function(){t.superclass.build.call(this)},clear:function(){t.superclass.clear.call(this)}});return t}}]),e}(o.YMapsBase)},"96cf":function(t,e,n){"use strict";(function(t){var e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(n){var r,o=Object.prototype,a=o.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag",l="object"===e(t),p=n.regeneratorRuntime;if(p)l&&(t.exports=p);else{p=n.regeneratorRuntime=l?t.exports:{},p.wrap=x;var f="suspendedStart",h="suspendedYield",d="executing",m="completed",y={},v={};v[s]=function(){return this};var g=Object.getPrototypeOf,b=g&&g(g(P([])));b&&b!==o&&a.call(b,s)&&(v=b);var w=C.prototype=M.prototype=Object.create(v);k.prototype=w.constructor=C,C.constructor=k,C[u]=k.displayName="GeneratorFunction",p.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===k||"GeneratorFunction"===(e.displayName||e.name))},p.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,C):(t.__proto__=C,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(w),t},p.awrap=function(t){return{__await:t}},O(S.prototype),S.prototype[c]=function(){return this},p.AsyncIterator=S,p.async=function(t,e,n,r){var o=new S(x(t,e,n,r));return p.isGeneratorFunction(e)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},O(w),w[u]="Generator",w[s]=function(){return this},w.toString=function(){return"[object Generator]"},p.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},p.values=P,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,o){return s.type="throw",s.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),u=a.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),y}}}function x(t,e,n,r){var o=e&&e.prototype instanceof M?e:M,a=Object.create(o.prototype),i=new I(r||[]);return a._invoke=j(t,n,i),a}function _(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function M(){}function k(){}function C(){}function O(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function S(t){function n(r,o,i,s){var c=_(t[r],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"===("undefined"===typeof l?"undefined":e(l))&&a.call(l,"__await")?Promise.resolve(l.__await).then((function(t){n("next",t,i,s)}),(function(t){n("throw",t,i,s)})):Promise.resolve(l).then((function(t){u.value=t,i(u)}),s)}s(c.arg)}var r;function o(t,e){function o(){return new Promise((function(r,o){n(t,e,r,o)}))}return r=r?r.then(o,o):o()}this._invoke=o}function j(t,e,n){var r=f;return function(o,a){if(r===d)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw a;return B()}n.method=o,n.arg=a;while(1){var i=n.delegate;if(i){var s=E(i,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=_(t,e,n);if("normal"===c.type){if(r=n.done?m:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=m,n.method="throw",n.arg=c.arg)}}}function E(t,e){var n=t.iterator[e.method];if(n===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=r,E(t,e),"throw"===e.method))return y;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=_(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,y;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,y):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function z(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(z,this),this.reset(!0)}function P(t){if(t){var e=t[s];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){while(++n<t.length)if(a.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=r,e.done=!0,e};return o.next=o}}return{next:B}}function B(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())}).call(this,n("62e4")(t))},"9bbc":function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},o=0;o<e.length;o++){var a=e[o],i=a[0],s=a[1],c=a[2],u=a[3],l={id:t+":"+o,css:s,media:c,sourceMap:u};r[i]?r[i].parts.push(l):n.push(r[i]={id:i,parts:[l]})}return n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},a0b6:function(t,e,n){"use strict";function r(t,e){var n=new t(e.Map);return n.fCreate(),e.Map.controls.add(n,{}),n}function o(t,e){var n=new t({Map:e.Map,markers:e.markers,pathToBaloon:e.pathToBaloon});return n.fCreate()}function a(t,e){var n=new t(e.Map,e.putMarkerInSearch);return n.fCreate(),e.Map.controls.add(n,{}),n}Object.defineProperty(e,"__esModule",{value:!0}),e.fAddTemplateToMap=r,e.fAddBaloonToMap=o,e.fAddMarkerToMap=a},b635:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.YandexMap=void 0;var r=n("3ac0"),o=a(r);function a(t){return t&&t.__esModule?t:{default:t}}e.YandexMap=o.default},bbdd:function(t,e,n){"use strict";var r=function(){return this}()||Function("return this")(),o=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,a=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n("96cf"),o)r.regeneratorRuntime=a;else try{delete r.regeneratorRuntime}catch(i){r.regeneratorRuntime=void 0}},d785:function(t,e,n){"use strict";t.exports=n("bbdd")},e3d7:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ymap-wrapper__custom",staticStyle:{width:"100%",height:"100%","max-height":"520px",position:"relative",border:"1px solid transparent","border-radius":"17px",overflow:"hidden"}},[n("div",{staticStyle:{width:"100%",height:"100%"},attrs:{id:t.mapId}})])},o=[]},fae3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("b635");Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})})),n("1eb2")}})}));
//# sourceMappingURL=component.umd.min.js.map
{
"name": "@63pokupki/yandex-map",
"version": "0.0.7",
"version": "0.0.8",
"author": "63pokupki",

@@ -5,0 +5,0 @@ "license": "BSD-3-Clause",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc