1(self.webpackChunkwar_lib_6=self.webpackChunkwar_lib_6||[]).push([[406],{47719:function(t,e){"use strict";e.Z="rtl"===document.dir},10969:function(t,e){"use strict";const s=[];let o;const{performance:i}=window,a="function"==typeof(null==i?void 0:i.now)&&Date.now()>document.createEvent("Event").timeStamp?()=>i.now():()=>Date.now();function c(t,e,s){return t.addEventListener(e,s,!1),{destroy:()=>t.removeEventListener(e,s,!1)}}function r(t){let e=s.length-1;for(;e>=0;)s[e].el===t&&(s[e].destroy(),s.splice(e,1)),e-=1;0===s.length&&o&&(o.destroy(),o=null)}function n(t,e){const{value:i,modifiers:n}=e;r(t),o||(o=c(document.documentElement,"click",(t=>{s.forEach((e=>e.check(t)))}))),s.push(n.static?function(t,e){return{el:t,check(s){!t.contains(s.target)&&s.timeStamp>this.bindTimeStamp&&e(s)},destroy:()=>{},bindTimeStamp:a()}}(t,i):function(t,e){let s=!1;const o=c(t,"mouseenter",(()=>{s=!0})),i=c(t,"mouseleave",(()=>{s=!1}));return{el:t,check(t){!s&&t.timeStamp>this.bindTimeStamp&&e(t)},destroy(){o.destroy(),i.destroy()},bindTimeStamp:a()}}(t,i))}e.Z={bind:n,unbind:r,update:function(t,e){e.value!==e.oldValue&&n(t,e)}}},74862:function(t,e,s){"use strict";var o=s(10969);e.Z={directives:{"on-click-outside":o.Z}}},49996:function(t,e,s){"use strict";function o(t){return t.replace(/[-_](\w)/gu,((t,e)=>e?e.toUpperCase():""))}s.d(e,{e:function(){return o}})},16198:function(t,e,s){"use strict";s.d(e,{Z:function(){return r}});var o=s(84121);function i(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,o)}return s}function a(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?i(Object(s),!0).forEach((function(e){(0,o.Z)(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):i(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}const c={containerClass:"loader",itemClass:"loader__item",inlineClass:"loader_inline",blockClass:"loader_block",inline:!1,block:!1};class r{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.props=a(a({},c),t),this.container=null,this.loader=null,this.init()}init(){const{containerClass:t,itemClass:e,inlineClass:s,inline:o,blockClass:i,block:a}=this.props;this.container=document.createElement("div"),this.container.classList.add(t),o&&this.container.classList.add(s),a&&this.container.classList.add(i),this.indicator=document.createElement("div"),this.indicator.classList.add(e),this.container.appendChild(this.indicator)}render(){return this.container}}},4525:function(t,e,s){"use strict";s.d(e,{lc:function(){return o},NB:function(){return i},BC:function(){return a},A9:function(){return c},$$:function(){return r},i6:function(){return n},T2:function(){return l},DH:function(){return p},S7:function(){return d},$5:function(){return u}});const o="/_sysimg/map/dot-map.svg",i=[56,56],a=[-28,-28],c="/_sysimg/map/location.svg",r=[40,40],n=[-20,-40],l="/_sysimg/map/cluster.svg",p="/_sysimg/map/cluster",d=[40,40],u="var(--color-text)"},22408:function(t,e,s){"use strict";s.d(e,{VB:function(){return o},oh:function(){return i},D0:function(){return a}});const o="mapView.clickPoint",i="mapView.changeBounds",a="mapView.createdCluster"},94871:function(t,e,s){"use strict";s.d(e,{Z:function(){return C}});var o=s(84121),i=s(22408),a=s(6611),c=s(16198),r=s(3674);function n(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,o)}return s}function l(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?n(Object(s),!0).forEach((function(e){(0,o.Z)(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):n(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}const p={containerSelector:".select-stock-point__map",useLoader:!1,disableScrollZoom:!1};class d{constructor(t){(0,o.Z)(this,"map",void 0),this.params=l(l({},p),t),this.container=document.querySelector(`${this.params.containerSelector}`),this.mapInited=!1,this.EventsBus=a.Z,this.init()}init(){this.container?window.MAPS_API_LOADED=window.MAPS_API_LOADED||!1:console.error(`Container ${this.params.containerSelector} not found!`)}showMapContainer(){this.mapLoader=new c.Z({block:!0}).render(),this.container.appendChild(this.mapLoader)}loadedMapContainer(){this.container.removeChild(this.mapLoader)}loadApi(){return new Promise(((t,e)=>{const s=this.params.apiLink;this.container&&s&&(0,r.Z)(s).then((()=>{t()})).catch((()=>{e()})).finally((()=>{window.MAPS_API_LOADED=!0}))}
1))}readyApi(){return window.MAPS_API_LOADED?Promise.resolve():this.loadApi()}async initMap(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12,s=arguments.length>2?arguments[2]:void 0;return!this.mapInited&&(this.params.useLoader&&this.showMapContainer(),await this.readyApi(),new Promise((o=>{this.defaultState={center:this.constructor.formatCoord(t),zoom:e};const i=this.createMap(s);this.mapInited=!0,this.map=i,o()})))}async showMapByCoord(t){let{coord:e,style:s}=t;this.mapInited||await this.initMap(e),this.removeGeoObjects(),this.setMapToCoord({coord:e,style:s})}setMapToCoord(t){let{coord:e,style:s}=t;const o=this.constructor.formatCoord(e);this.createPlacemark({coords:o,style:s}),this.map.setCenter(o)}setBoundsByPlacemarks(t){const e=this.constructor.getPlacemarkCoord(t[0]);if(this.mapInited)if(t.length>1){const t=this.getAllBounds();this.setBounds(t)}else this.map.setCenter(e);else this.initMap(e).then((()=>{this.setBoundsByPlacemarks(t)}))}setDefaultState(){this.map.setCenter(this.defaultState.center),this.map.setZoom(this.defaultState.zoom)}}const u="DEFAULT",h="STOCK_INFO";var m=s(4525);function b(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,o)}return s}function f(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?b(Object(s),!0).forEach((function(e){(0,o.Z)(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):b(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}const k={apiLink:"https://api-maps.yandex.ru/2.1/?lang=ru_RU"};class g extends d{constructor(t){super(f(f({},k),t)),this.objectManager=null,this.placemarks=[],this.selectedGeoObjectId=null}async readyApi(){return await super.readyApi(),new Promise((t=>{ymaps.ready((()=>{t()}))}))}createMap(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.getControls();const e=new ymaps.Map(this.container,f(f({},this.defaultState),{},{controls:t}),{yandexMapDisablePoiInteractivity:!0});if(this.params.disableScrollZoom&&e.behaviors.disable("scrollZoom"),this.params.disableDefaultBehaviors){const t=Object.keys(e.behaviors._behaviors);e.behaviors.disable(t)}return this.params.useLoader&&this.loadedMapContainer(),e.events.add("boundschange",(t=>{this.EventsBus.emit(i.oh,t)})),e}removeGeoObjects(){this.map.geoObjects.removeAll()}createPlacemark(t){let{coords:e,properties:s,style:o,activeMode:a=!1}=t;const c=a?m.$$:m.NB,r=a?m.i6:m.BC,n=new window.ymaps.Placemark(g.formatCoord(e),s,f({iconLayout:"default#image",iconImageHref:a?m.A9:m.lc,iconImageSize:c,iconImageOffset:r},o));return n.events.add("click",(t=>{this.EventsBus.emit(i.VB,t.get("target").properties._data||{})})),this.placemarks.push(n),this.map.geoObjects.add(n),n}createCluster(t){let{maxZoom:e=1/0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.objectManager=new ymaps.ObjectManager({clusterize:!0,maxZoom:e,viewportMargin:4,clusterIcons:[{href:m.T2,size:m.S7,offset:m.S7.map((t=>-t/2))}],geoObjectIconImageHref:m.lc,geoObjectIconImageSize:m.NB,geoObjectIconImageOffset:m.NB.map((t=>-t/2)),geoObjectIconLayout:"default#image"}),this.objectManager.add(t),this.map.geoObjects.add(this.objectManager),this.objectManager.objects.events.add(["click"],(t=>{const e=t.get("objectId"),s=this.objectManager.objects.getById(e);this.selectGeoObjectById(e),this.EventsBus.emit(i.VB,s.properties||{})})),this.EventsBus.emit(i.D0)}fitAllBounds(){this.map.container.fitToViewport(),this.map.setBounds(this.map.geoObjects.getBounds(),{checkZoomRange:!0})}setPropertyToObject(t,e){this.objectManager.objects.setObjectProperties(t,{iconContent:e})}setActiveBalloon(t){const e=this.objectManager.getObjectState(t);e.isClustered?(this.objectManager.clusters.state.set("activeObject",this.objectManager.objects.getById(t)),this.objectManager.clusters.balloon.open(e.cluster.id)):this.objectManager.objects.balloon.open(t)}setDefaultState(){this.map.container.fitToViewport(),super.setDefaultState()}setBounds(t){this.map.setBounds(t)}getAllBounds(){return this.map.geoObjects.getBounds()}closeAllBalloons(){this.placemarks.forEach((t=>{let{balloon:e}=t;return e.close()}))}static getPlacemarkCoord(t){return t.geometry._coordinates}static addListener(t,e,s){e.events.add(t,s)}static setPlacemarkStyle(t,e){t.options.set(e)}static formatCoord(t){return"string"==typeof t?t.split(","):t}static getControls(){const t=[];return(arguments.length>
10&&void 0!==arguments[0]?arguments[0]:u)===h&&t.push("default"),t}static createTemplateLayout(t,e){const s=window.ymaps.templateLayoutFactory.createClass(t,{build(){s.superclass.build.call(this),this.$app=e(this)},clear(){var t,e;null===(t=this.$app)||void 0===t||null===(e=t.$destroy)||void 0===e||e.call(t)}});return s}getObjectIdsInMapBounds(){const t=[];return this.objectManager.objects.each((e=>{ymaps.util.bounds.containsPoint(this.map.getBounds(),e.geometry.coordinates)&&t.push(e.id)})),t}selectGeoObjectById(t){this.selectedGeoObjectId&&this.objectManager.objects.setObjectOptions(this.selectedGeoObjectId,{iconImageHref:m.lc,iconImageSize:m.NB,iconImageOffset:m.BC}),this.objectManager.objects.setObjectOptions(t,{iconImageHref:m.A9,iconImageSize:m.$$,iconImageOffset:m.i6}),this.selectedGeoObjectId=t}resetSelectedGeoObject(){this.selectedGeoObjectId&&this.objectManager.objects.setObjectOptions(this.selectedGeoObjectId,{iconImageHref:m.lc,iconImageSize:m.NB,iconImageOffset:m.BC})}replaceObjectManager(t){this.objectManager=t}}var v=s(18278);function _(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,o)}return s}function y(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?_(Object(s),!0).forEach((function(e){(0,o.Z)(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):_(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}const S={apiLink:"https://maps.googleapis.com/maps/api/js"};class w extends d{constructor(t){super(y(y({},S),t)),this.clusterer=null,this.placemarks=[],this.balloons=[],this.selectedGeoObjectId=null}readyApi(){return super.readyApi()}createMap(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w.getControls();const e=new google.maps.Map(this.container,y(y(y({},this.defaultState),t),{},{clickableIcons:!1}));return this.params.disableScrollZoom&&e.setOptions({gestureHandling:"cooperative"}),this.params.disableDefaultBehaviors&&e.setOptions({gestureHandling:"none",zoomControl:!1,disableDefaultUI:!0}),e.addListener("bounds_changed",(t=>{this.EventsBus.emit(i.oh,t)})),e}removeGeoObjects(){this.placemarks.forEach((t=>t.setMap(null))),this.placemarks=[]}createPlacemark(t){let{coords:e,style:s,title:o=null,objectId:a,properties:c,activeMode:r=!1}=t;const n=r?m.$$:m.NB,l=new google.maps.Marker({position:w.formatCoord(e),title:o,objectId:a,icon:{url:r?m.A9:m.lc,size:new google.maps.Size(...n),anchor:new google.maps.Point(...n.map((t=>t/2)))},properties:c});return s&&w.setPlacemarkStyle(l,s),l.addListener("click",(()=>{this.EventsBus.emit(i.VB,l.properties)})),this.placemarks.push(l),l.setMap(this.map),l}createCluster(t){let{maxZoom:e=1/0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.features.forEach((t=>{let{geometry:e,properties:s,id:o}=t;const i=this.createPlacemark({coords:w.formatCoord(e.coordinates),title:s.hintContent,objectId:o,properties:s});if(s.balloonContent){const t=this.addBalloon(s.balloonContent);i.addListener("click",(()=>{this.openBalloon(t,i)}))}}),this),this.clusterer=new v.Z(this.map,this.placemarks,{maxZoom:e,styles:[{textColor:m.$5,url:m.T2,size:m.S7[0],width:m.S7[1]}]}),this.placemarks.forEach((t=>{t.addListener("click",(()=>{this.selectGeoObjectById(t.objectId)}))})),this.map.addListener("idle",(()=>{this.EventsBus.emit(i.D0)}))}fitAllBounds(){const t=this.getAllBounds();this.map.fitBounds(t)}isVisiblePoint(t){const e=this.map.getBounds(),s=w.getPlacemarkById(this.placemarks,t);return e.contains(s.getPosition())}setPropertyToObject(t,e){w.getPlacemarkById(this.placemarks,t).setLabel(e.toString())}setActiveBalloon(t){const e=this.clusterer.getClusters().filter((t=>t.getSize()>1)),s=w.getPlacemarkById(this.placemarks,t),o=e.find((t=>t.isMarkerInClusterBounds(s))),i=this.placemarks.findIndex((e=>e.objectId===t));if(this.openBalloon(this.balloons[i],this.placemarks[i]),o){const t=o.getBounds();this.map.fitBounds(t)}}addBalloon(t){const e=new google.maps.InfoWindow({content:t});return this.balloons.push(e),e}openBalloon(t,e){this.balloons.forEach((t=>t.close())),t.open(this.map,e)}setBounds(t){this.map.fitBounds(t)}getAllBounds(){const t=new google.maps.LatLngBounds;return this.placemarks.forEach((e=>{t.extend(e.getPosition())})),t}closeAllBalloons(){this.balloons.forEach((t=>t.close()))}static getPlacemarkCoord(t){return t.getPosition()}static addListener(t,e,s){e.addListener(t,s)}static setPlacemarkStyle(t,e){let{iconImageSize:s=[48,48],iconImageHref:o}=e;t.setIcon({size:new google.maps.Size(...s),url:o,origin:new google.maps.Point(0),anchor:new google.maps.Point(24,48)})}static formatCoord(t){return"string"==typeof t?new google.maps.LatLng(...t.split(",")):t}static getPlacemarkById(t,e){return t.find((t=>t.objectId===e))}static getControls(){let t={disableDefaultUI:!0};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:u)===h&&(t=y(y({},t),{},{zoomControl:!0,scaleControl:!0,fullscreenControl:!0})),t}getObjectIdsInMapBounds(){const t=[],e=this.map.getBounds();return this.placemarks.forEach((s=>
1{e.contains(s.getPosition())&&t.push(s.objectId)})),t}selectGeoObjectById(t){if(this.selectedGeoObjectId){const t=w.getPlacemarkById(this.placemarks,this.selectedGeoObjectId);t&&w.setPlacemarkStyle(t,{iconImageHref:m.lc})}const e=w.getPlacemarkById(this.placemarks,t);w.setPlacemarkStyle(e,{iconImageHref:m.A9}),this.selectedGeoObjectId=t}resetSelectedGeoObject(){if(!this.selectedGeoObjectId)return;const t=w.getPlacemarkById(this.placemarks,this.selectedGeoObjectId);w.setPlacemarkStyle(t,{iconImageHref:m.lc})}}var O=s(18426);function C(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O.YANDEX;return t===O.GOOGLE?w:g}},18426:function(t,e,s){"use strict";s.r(e),s.d(e,{YANDEX:function(){return o},GOOGLE:function(){return i}});const o="yandex",i="google"},97808:function(t,e,s){"use strict";s.d(e,{Z:function(){return r}});var o=s(84121),i=s(94871);function a(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,o)}return s}function c(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?a(Object(s),!0).forEach((function(e){(0,o.Z)(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):a(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function r(t){const{mapType:e,apiLink:s=null,mapContainerSelector:o,mapZoom:a=13,useLoader:r=!0,changePlacemarkOnClick:n=!0}=t;return{data:()=>({mapZoom:a,defaultPlacemarkStyle:{iconLayout:"default#image",iconImageHref:"/_sysimg/map/dot-map.svg",iconImageSize:[56,56],iconImageOffset:[-28,-26]},selectedPlacemarkStyle:{iconLayout:"default#image",iconImageHref:"/_sysimg/map/location.svg",iconImageSize:[48,48],iconImageOffset:[-24,-44]},IMapView:null,mapView:null,placemarks:null}),computed:{isValidMapsParams(){return!(!s&&!this.apiLink||!e&&!this.mapType)}},methods:{setDefaultPlacemarkStyle(t){this.IMapView.setPlacemarkStyle(t,this.defaultPlacemarkStyle)},setSelectedPlacemarkStyle(t){let{placemark:e,coordinates:s}=t;const o=this.IMapView.formatCoord(s);this.IMapView.setPlacemarkStyle(e,this.selectedPlacemarkStyle),this.mapView.map.setCenter(o)},async renderMap(t){let{mapsData:e,selectedPlacemarkCoordinates:s}=t;if(!Array.isArray(e)||!e.length||!this.mapView)return void console.error("Error on rendering map!");const o=this.filterByCoordinates(e);if(!o.length)return void console.error("Not data with coordinates");const i=o[0].coordinates;await this.mapView.initMap(i,this.mapZoom),this.placemarks=this.addPlacemarks({mapsData:o,selectedPlacemarkCoordinates:s}),this.mapView.setBoundsByPlacemarks(this.placemarks),this.$emit("rendered-map")},filterByCoordinates:t=>t.filter((t=>t.coordinates)),addPlacemarks(t){let{mapsData:e,selectedPlacemarkCoordinates:s}=t;return e.map((t=>{const{coordinates:e}=t,o={coords:this.IMapView.formatCoord(e),properties:c({},t),style:this.defaultPlacemarkStyle},i=this.mapView.createPlacemark(o);return t.placemark=i,s&&e===s&&this.setSelectedPlacemarkStyle({placemark:i,coordinates:e}),this.IMapView.addListener("click",i,(()=>{n&&(this.placemarks.forEach(this.setDefaultPlacemarkStyle),this.IMapView.setPlacemarkStyle(i,this.selectedPlacemarkStyle))})),i}))},removeGeoObjects(){var t;null!==(t=this.mapView)&&void 0!==t&&t.mapInited&&this.mapView.removeGeoObjects()},resetSelectedPlacemarks(){this.mapView.placemarks.forEach(this.setDefaultPlacemarkStyle)}},mounted(){this.isValidMapsParams?(this.IMapView=(0,i.Z)(e||this.mapType),this.mapView=new this.IMapView({apiLink:s??this.apiLink,containerSelector:o,useLoader:r})):console.error('Not params "apiLink" or "mapType"')}}}},3674:function(t,e,s){"use strict";s.d(e,{Z:function(){return i}});const o=new Map;function i(t){if(o.has(t))return o.get(t);const e=new Promise(((e,s)=>{if(t){const o=document.getElementsByTagName("script")[0],i=document.createElement("script");i.type="text/javascript",i.src=t,i.async=!0,i.onload=()=>{e()};try{o?o.parentNode.insertBefore(i,o):document.body.parentNode.insertBefore(i,document.body)}catch(t){throw s(),new Error(t)}}}));return o.set(t,e),e}},6611:function(t,e,s){"use strict";const o=new(s(70538).default)({name:"EventsBus"}),i={on(t,e){o.$on(t,e)},once(t,e){o.$once(t,e)},off(t,e){o.$off(t,e)},emit(t){for(var e=arguments.length,s=new Array(e>1?e-1:0),i=1;i<e;i++)s[i-1]=arguments[i];o.$emit(t,...s)},get events(){return o._events}};e.Z=i},75164:function(t,e,s){(e=s(23645)(!1)).push([t.id,".select-stock-cities__wrapper[data-v-203648f4]{display:flex;flex-direction:column;align-items:flex-start;gap:12px;width:100%;height:calc(100% - 56px);overflow:auto;scrollbar-color:rgba(0,0,0,.16) rgba(0,0,0,.04);scrollbar-width:thin}.select-stock-cities__wrapper[data-v-203648f4]::-webkit-scrollbar{width:4px;height:4px}.select-stock-cities__wrapper[data-v-203648f4]::-webkit-scrollbar-track{background:rgba(0,0,0,.04)}.select-stock-cities__wrapper[data-v-203648f4]::-webkit-scrollbar-thumb{background:rgba(0,0,0,.16);border-radius:2px}.select-stock-cities__button[data-v-203648f4]{color:var(--color-text);font-size:16px;line-height:24px;text-align:start;background:0 0;border:0;outline:0;cursor:pointer}",""]),t.exports=e}
1,16302:function(t,e,s){(e=s(23645)(!1)).push([t.id,".select-stock-popup[data-v-5e47d099]{position:absolute;top:100%;inset-inline-start:0;z-index:1;width:592px;height:584px;margin-top:8px;padding:32px;overflow:hidden;background-color:var(--color-bg-primary);border:1px solid var(--color-line);border-radius:var(--border-radius);box-shadow:var(--shadow-1dp)}.select-stock-popup_cube[data-v-5e47d099]{top:0;width:450px;inset-inline-start:calc(100% + 8px);margin-top:0}",""]),t.exports=e},42153:function(t,e,s){(e=s(23645)(!1)).push([t.id,".select-stock-shops[data-v-3c02bcd5]{height:100%}",""]),t.exports=e},17926:function(t,e,s){(e=s(23645)(!1)).push([t.id,".select-stock-shops-header__top[data-v-5989a8b0]{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center}.select-stock-shops-header__city-button[data-v-5989a8b0]{display:flex;align-items:center;gap:4px;color:var(--color-text);background:0 0;border:0;outline:0;cursor:pointer}.select-stock-shops-header__city-icon[data-v-5989a8b0]{fill:var(--color-text)}.select-stock-shops-header__title-wrapper[data-v-5989a8b0]{display:flex;align-items:center;gap:8px}.select-stock-shops-header__info-button[data-v-5989a8b0]{background:0 0;border:0;outline:0}.select-stock-shops-header__info-button-svg[data-v-5989a8b0]{border:1px solid var(--color-line-control);border-radius:50%;fill:var(--color-bg-primary)}",""]),t.exports=e},85158:function(t,e,s){(e=s(23645)(!1)).push([t.id,".select-stock-shops-list[data-v-7bf8170b]{height:calc(100% - 52px);margin:0-32px;border-top:1px solid var(--color-bg-tertiary)}.select-stock-shops-list__container[data-v-7bf8170b]{width:100%;height:100%;overflow:auto;scrollbar-color:rgba(0,0,0,.16) rgba(0,0,0,.04);scrollbar-width:thin}.select-stock-shops-list__container[data-v-7bf8170b]::-webkit-scrollbar{width:4px;height:4px}.select-stock-shops-list__container[data-v-7bf8170b]::-webkit-scrollbar-track{background:rgba(0,0,0,.04)}.select-stock-shops-list__container[data-v-7bf8170b]::-webkit-scrollbar-thumb{background:rgba(0,0,0,.16);border-radius:2px}.select-stock-shops-list__item[data-v-7bf8170b]{padding:32px;cursor:pointer;transition:background-color .4s}
1.select-stock-shops-list__item[data-v-7bf8170b]:hover{background-color:var(--color-bg-secondary)}.select-stock-shops-list__item-name[data-v-7bf8170b]{display:inline-block}.select-stock-shops-list__info[data-v-7bf8170b]{display:flex;flex-direction:column;align-items:flex-start;gap:4px;color:var(--color-text)}.select-stock-shops-list__social[data-v-7bf8170b]{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.select-stock-shops-list__timetable[data-v-7bf8170b]{border-collapse:collapse}.select-stock-shops-list__timetable tbody[data-v-7bf8170b]{color:var(--color-text);font:inherit;background-color:inherit}.select-stock-shops-list__timetable-time[data-v-7bf8170b]{padding:0 8px}",""]),t.exports=e},81780:function(t,e,s){(e=s(23645)(!1)).push([t.id,".select-stock-shops-map[data-v-0fb62256]{position:relative;height:calc(100% - 52px);margin:0-32px;border-top:1px solid var(--color-bg-tertiary)}.select-stock-shops-map__map[data-v-0fb62256]{display:flex;justify-content:center;align-items:center;width:100%;height:100%}.select-stock-shops-map__info-block[data-v-0fb62256]{position:absolute;inset-inline-end:0;bottom:0;inset-inline-start:0;padding:24px 32px 32px;background-color:var(--color-bg-primary)}.select-stock-shops-map__address[data-v-0fb62256]{color:var(--color-text)}.select-stock-shops-map__info[data-v-0fb62256]{display:flex;justify-content:flex-start;align-items:flex-start;gap:32px}.select-stock-shops-map__contacts[data-v-0fb62256]{display:flex;flex-direction:column;align-items:flex-start}.select-stock-shops-map__contact-link[data-v-0fb62256]{color:var(--color-text-tertiary)}.select-stock-shops-map__timetable[data-v-0fb62256]{border-collapse:collapse}.select-stock-shops-map__timetable tbody[data-v-0fb62256]{color:var(--color-text-tertiary);font:inherit}.select-stock-shops-map__timetable-interval[data-v-0fb62256]{white-space:nowrap}.select-stock-shops-map__timetable-time[data-v-0fb62256]{padding-inline-start:8px}",""]),t.exports=e},50884:function(t,e,s){(e=s(23645)(!1)).push([t.id,".select-stock-point[data-v-4e3a5f6b]{position:relative;display:flex;justify-content:center}.select-stock-point__cube[data-v-4e3a5f6b]{width:100%}.select-stock-point__cube .select-stock-point-cube__label[data-v-4e3a5f6b]{border-bottom:1px dashed var(--color-header-droper)}.select-stock-point__cube:hover .select-stock-point-cube__label[data-v-4e3a5f6b]{color:var(--color-text-contrast);border-color:var(--color-line)}.select-stock-point__cube:hover .select-stock-point-cube__address-svg[data-v-4e3a5f6b]{transition:fill .25s linear;fill:var(--color-bg-primary)}.select-stock-point__select-button[data-v-4e3a5f6b]{position:relative;display:flex;justify-content:center;align-items:center;gap:4px;color:inherit;text-align:start;background:0 0;border:0}.select-stock-point__select-button_popup-visible[data-v-4e3a5f6b]{color:var(--color-link-hover)}.select-stock-point__select-button_future[data-v-4e3a5f6b]{color:var(--color-text-secondary-contrast)}.select-stock-point__select-button[data-v-4e3a5f6b]:focus{outline:0}.select-stock-point__select-button-icon[data-v-4e3a5f6b]{flex-shrink:0;fill:var(--color-bg-primary-contrast)}.select-stock-point__select-button-icon_popup-visible[data-v-4e3a5f6b]{fill:var(--color-link-hover)}.select-stock-point__select-button-icon_future[data-v-4e3a5f6b]{fill:var(--color-bg-tertiary)}",""]),t.exports=e},12497:function(t,e,s){"use strict";s.r(e),s.d(e,{default:function(){return J}});var o=s(35054),i=s(74862);const a="default",c="cube";var r=s(22860),n={name:"SelectStockCities",inject:["messages"],props:{cities:{type:Array,default:()=>[]}},methods:{onCityButtonClick(t){this.$emit("click",t)}}},l=s(93379),p=s.n(l),d=s(75164),u=s.n(d),h={insert:"head",singleton:!1},m=(p()(u(),h),u().locals,s(51900)),b=(0,m.Z)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"select-stock-cities"},[e("h3",{staticClass:"mb-6 wt-h-3"},[t._v(t._s(t.messages.selectCity))]),t._v(" "),e("div",{staticClass:"select-stock-cities__wrapper"},t._l(t.cities,(function(s,o){return e("button",{key:o,staticClass:"select-stock-cities__button",attrs:{type:"button"},domProps:{innerHTML:t._s(s.cityName)},on:{click:function(e){return t.onCityButtonClick(s)}}})})),0)])}),[],!1,null,"203648f4",null).exports,f=s(74951),k=s(62627),g={name:"SelectStockShopsHeader",components:{WLink:f.Z,WTooltip:k.Z,WIcon:o.Z},inject:["messages"],props:{currentCity:{type:Object,default:()=>({})},isMapOpened:{type:Boolean,default:!1}},computed:{isStockHasCoords(){var t;return!!this.currentCity.stocks&&(null===(t=this.currentCity)||void 0===t?void 0:t.stocks.some((t=>t.coordinates)))},stockLabel(){const{asList:t,onMap:e}=this.messages;return this.isMapOpened?t:e}}},v=g,_=s(17926),y=s.n(_),S={insert:"head",singleton:!1},w=(p()(y(),S),y().locals,(0,m.Z)(v,(function(){var t=this,e=t._self._c;return e("div",{ref:"shopsHeaderRef",staticClass:"select-stock-shops-header"},[e("div",{staticClass:"select-stock-shops-header__top"},[t.currentCity.cityName?e("button",{staticClass:"select-stock-shops-header__city-button wt-control-m",attrs:{type:"button"},on:{click:function(e){return t.$emit("back-step")}}},[e("WIcon",{staticClass:"select-stock-shops-header__city-icon",attrs:{width:"24",height:"24",name:"button-back"}}),t._v(" "),e("span",{domProps:{innerHTML:t._s(t.currentCity.cityName)}})],1):t._e(),t._v(" "),t.isStockHasCoords?e("WLink",{attrs:{view:"button"},on:{click:function(e){return t.$emit("toggle-map-view")}}},[t._v("\n "+t._s(t.stockLabel)+"\n ")]):t._e()],1),t._v(" "),e("div",{staticClass:"select-stock-shops-header__title-wrapper"},[e("h3",{staticClass:"wt-h-3"},[t._v("\n "+t._s(t.messages.selectStock)+"\n ")]),t._v(" "),e("WTooltip",{attrs:{mode:"hover",width:"330px",placement:"top"},scopedSlots:t._u([{key:"tooltip",fn:function(){return[e("p",[t._v(t._s(t.messages.info))])]},proxy:!0}])},[e("button",{staticClass:"select-stock-shops-header__info-button",attrs:{type:"button"}},[e("WIcon",{staticClass:"select-stock-shops-header__info-button-svg mt-2",attrs:{width:"24",height:"24",name:"tooltip-s"}})],1)])],1)])}
1),[],!1,null,"5989a8b0",null).exports),O=s(52421),C={name:"SelectStockShopsList",components:{WLink:f.Z,WContactItem:O.Z},props:{currentCity:{type:Object,required:!0}}},j=s(85158),P=s.n(j),I={insert:"head",singleton:!1},x=(p()(P(),I),P().locals,(0,m.Z)(C,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"select-stock-shops-list"},[e("div",{staticClass:"select-stock-shops-list__container"},t._l(t.currentCity.stocks,(function(s,o){return e("div",{key:o,staticClass:"select-stock-shops-list__item wt-control-m",on:{click:function(e){return t.$emit("select-stock",s.id)}}},[s.name?e("WLink",{staticClass:"select-stock-shops-list__item-name mb-4",attrs:{href:s.url}},[t._v("\n "+t._s(s.name)+"\n ")]):t._e(),t._v(" "),e("div",{staticClass:"select-stock-shops-list__info mb-4"},[s.address?e("span",[t._v(t._s(s.address))]):t._e(),t._v(" "),s.phone?e("WContactItem",{attrs:{href:`tel:${s.phone}`,value:s.phone}}):t._e(),t._v(" "),s.email?e("WContactItem",{attrs:{href:`mailto:${s.email}`,value:s.email}}):t._e()],1),t._v(" "),e("div",{staticClass:"select-stock-shops-list__social mb-4"},t._l(s.socialNetworks,(function(t){return e("a",{key:t.icon,attrs:{href:t.url,target:"_blank"}},[e("svg",{staticClass:"select-stock-shops-list__social-icon",attrs:{width:"24",height:"24"}},[e("use",{attrs:{href:`/_sysimg/svg/social-icons.svg#${t.icon}-color`}})])])})),0),t._v(" "),s.work_mode.length?e("table",{staticClass:"select-stock-shops-list__timetable"},[e("tbody",t._l(s.work_mode,(function(s,o){let{interval:i,time:a}=s;return e("tr",{key:o},[e("td",[t._v(t._s(i))]),t._v(" "),e("td",{staticClass:"select-stock-shops-list__timetable-time",domProps:{innerHTML:t._s(a)}})])})),0)]):t._e()],1)})),0)])}),[],!1,null,"7bf8170b",null)),B=x.exports,M=s(23369);const L=(0,s(97808).Z)({mapContainerSelector:".select-stock-shops-map__map"});var D={name:"SelectStockShopsMap",components:{WLink:f.Z,WButton:M.Z},mixins:[L],inject:["messages","mapType","apiLink"],props:{currentCity:{type:Object,default:null}},data:()=>({selectedStock:null}),computed:{isInfoExist(){const{phone:t,email:e,work_mode:s}=this.selectedStock;return t||e||(null==s?void 0:s.length)}},mounted(){this.onShowMap()},methods:{async onShowMap(){const{stocks:t}=this.currentCity;Array.isArray(t)&&(await this.renderMap({mapsData:t}),t.forEach((t=>{var e;t.placemark&&(null===(e=this.IMapView)||void 0===e||e.addListener("click",t.placemark,(()=>{this.selectedStock=t})))})))}}},E=D,Z=s(81780),A=s.n(Z),T={insert:"head",singleton:!1},V=(p()(A(),T),A().locals,{name:"SelectStockShops",components:{SelectStockShopsHeader:w,SelectStockShopsList:B,SelectStockShopsMap:(0,m.Z)(E,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"select-stock-shops-map"},[e("div",{staticClass:"select-stock-shops-map__map"}),t._v(" "),t.selectedStock?e("div",{staticClass:"select-stock-shops-map__info-block"},[t.selectedStock.name?e("WLink",{staticClass:"mb-4",attrs:{href:t.selectedStock.url}},[t._v("\n "+t._s(t.selectedStock.name)+"\n ")]):t._e(),t._v(" "),t.selectedStock.address?e("p",{staticClass:"select-stock-shops-map__address mb-2"},[t._v("\n "+t._s(t.selectedStock.address)+"\n ")]):t._e(),t._v(" "),t.isInfoExist?e("div",{staticClass:"select-stock-shops-map__info mb-4"},[e("div",{staticClass:"select-stock-shops-map__contacts"},[t.selectedStock.phone?e("a",{staticClass:"select-stock-shops-map__contact-link",attrs:{href:`tel:${t.selectedStock.phone}`}},[t._v("\n "+t._s(t.selectedStock.phone)+"\n ")]):t._e(),t._v(" "),t.selectedStock.email?e("a",{staticClass:"select-stock-shops-map__contact-link",attrs:{href:`mailto:${t.selectedStock.email}`}},[t._v("\n "+t._s(t.selectedStock.email)+"\n ")]):t._e()]),t._v(" "),t.selectedStock.work_mode.length?e("table",{staticClass:"select-stock-shops-map__timetable"},[e("tbody",t._l(t.selectedStock.work_mode,(function(s,o){let{interval:i,time:a}=s;return e("tr",{key:o},[e("td",{staticClass:"select-stock-shops-map__timetable-interval"},[t._v(t._s(i))]),t._v(" "),e("td",{staticClass:"select-stock-shops-map__timetable-time",domProps:{innerHTML:t._s(a)}})])})),0)]):t._e()]):t._e(),t._v(" "),e("WButton",{attrs:{type:"button"},on:{click:function(e){return t.$emit("select-stock",t.selectedStock.id)}}},[t._v("\n "+t._s(t.messages.select)+"\n ")])],1):t._e()])}),[],!1,null,"0fb62256",null).exports},props:{currentStep:{type:String},currentCity:{type:Object}},data:()=>({isMapOpened:!1}),methods:{toggleIsMapOpened(){this.isMapOpened=!this.isMapOpened},backToFirstStep(){this.toggleIsMapOpened(),this.$emit("back")},selectStock(t){this.$emit("select-stock",t),this.backToFirstStep()}}}),$=s(42153),G=s.n($),N={insert:"head",singleton:!1},H=(p()(G(),N),G().locals,(0,m.Z)(V,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"select-stock-shops"},[e("SelectStockShopsHeader",{staticClass:"mb-6",attrs:{"current-city":t.currentCity,"is-map-opened":t.isMapOpened},on:{"toggle-map-view":t.toggleIsMapOpened,"back-step":t.backToFirstStep}}),t._v(" "),t.isMapOpened?e("SelectStockShopsMap",{attrs:{"current-city":t.currentCity},on:{"select-stock":t.selectStock}}):e("SelectStockShopsList",{attrs:{"current-city":t.currentCity},on:{"select-stock":t.selectStock}})],1)}
1),[],!1,null,"3c02bcd5",null).exports),z=s(96842),W={name:"SelectStockPopup",components:{SelectStockCities:b,SelectStockShops:H},inject:["firstStep"],props:{list:{type:Array,required:!0},theme:{type:String,default:a}},data(){return{currentStep:this.firstStep,currentCity:{}}},computed:{isCitySelection(){return this.currentStep===z.t},isCubeTheme(){return this.theme===c}},created(){if(this.firstStep===z.Q){const[t]=this.list;this.currentCity=t}},methods:{selectCity(t){1!==t.stocks.length?(this.currentCity=t,this.setCurrentStep(z.Q)):this.$emit("select-stock",t.stocks[0].id)},selectStock(t){this.$emit("select-stock",t)},setCurrentStep(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.firstStep;this.currentStep=t}}},F=W,q=s(16302),U=s.n(q),R={insert:"head",singleton:!1},Q=(p()(U(),R),U().locals,{name:"SelectStockPointHeaderView",components:{SelectStockPointCube:()=>s.e(6339).then(s.bind(s,56339)),SelectStockPopup:(0,m.Z)(F,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"select-stock-popup",class:{"select-stock-popup_cube":t.isCubeTheme}},[e("SelectStockCities",{directives:[{name:"show",rawName:"v-show",value:t.isCitySelection,expression:"isCitySelection"}],attrs:{cities:t.list},on:{click:t.selectCity}}),t._v(" "),e("SelectStockShops",{directives:[{name:"show",rawName:"v-show",value:!t.isCitySelection,expression:"!isCitySelection"}],attrs:{"current-step":t.currentStep,"current-city":t.currentCity},on:{"select-stock":t.selectStock,back:t.setCurrentStep}})],1)}),[],!1,null,"5e47d099",null).exports,WIcon:o.Z},mixins:[i.Z],provide(){return{messages:this.messages,apiLink:this.apiLink,mapType:this.mapType,firstStep:this.firstStep}},props:{list:{type:Array,required:!0},mapType:{type:String,required:!0},apiLink:{type:String,required:!0},firstStep:{type:String,default:z.t},messages:{type:Object,required:!0},activeStockId:{type:[Number,String],required:!0},isStockDetected:{type:Boolean,default:!1},theme:{type:String,default:a}},data(){return{isPopupVisible:!this.isStockDetected}},computed:{activeStock(){return(0,r.IE)(this.list,this.activeStockId)},isCubeTheme(){return this.theme===c},isFutureTheme(){return"future"===this.theme},activeStockName(){return(0,r.iN)(this.activeStock)},selectButtonClasses(){return{"select-stock-point__select-button_popup-visible":this.isPopupVisible,"select-stock-point__select-button_future":this.isFutureTheme}},selectSvgClasses(){return{"select-stock-point__select-button-icon_popup-visible":this.isPopupVisible,"select-stock-point__select-button-icon_future":this.isFutureTheme}}},methods:{togglePopup(){this.isPopupVisible=!this.isPopupVisible},hidePopup(){this.isPopupVisible=!1},onStockSelect(t){this.$emit("select-stock",t),this.hidePopup()}}}),X=s(50884),Y=s.n(X),K={insert:"head",singleton:!1},J=(p()(Y(),K),Y().locals,(0,m.Z)(Q,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"on-click-outside",rawName:"v-on-click-outside",value:t.hidePopup,expression:"hidePopup"}],staticClass:"select-stock-point",class:{"select-stock-point__cube":t.isCubeTheme}},[t.isCubeTheme?e("SelectStockPointCube",{attrs:{"active-stock-name":t.activeStockName},on:{toggle:t.togglePopup}}):e("button",{staticClass:"select-stock-point__select-button",class:t.selectButtonClasses,attrs:{type:"button"},on:{click:t.togglePopup}},[e("span",{attrs:{"data-locator":"active-stock-name"}},[t._v("\n "+t._s(t.activeStockName)+"\n ")]),t._v(" "),e("WIcon",{staticClass:"select-stock-point__select-button-icon",class:t.selectSvgClasses,attrs:{name:"drop-down-s"}})],1),t._v(" "),e("transition",{attrs:{name:"fade-down-small",appear:""}},[t.isPopupVisible?e("SelectStockPopup",{attrs:{list:t.list,theme:t.theme},on:{"select-stock":t.onStockSelect}}):t._e()],1)],1)}),[],!1,null,"4e3a5f6b",null).exports)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.