Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/landing/provider/map/dist/ |
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/landing/provider/map/dist/map.bundle.min.js |
this.BX=this.BX||{};this.BX.Landing=this.BX.Landing||{};(function(e,t,r,o){"use strict";let l=e=>e,s,a;class n extends t.EventEmitter{constructor(e){super();this.code="";this.onChangeHandler=o.Type.isFunction(e.onChange)?e.onChange:()=>{};this.onMapClickHandler=o.Type.isFunction(e.onMapClick)?e.onMapClick:()=>{};this.onAddMarkerHandler=o.Type.isFunction(e.onAddMarker)?e.onAddMarker:()=>{};this.onApiLoadedHandler=o.Type.isFunction(e.onApiLoaded)?e.onApiLoaded:()=>{};this.onInitHandler=o.Type.isFunction(e.onProviderInit)?e.onProviderInit:()=>{};this.options=e;this.mapOptions=this.prepareMapOptions(e.mapOptions);this.mapContainer=e.mapContainer;this.markers=new r.BaseCollection;this.mapInstance=null;this.cache=new o.Cache.MemoryCache;this.handleApiLoad();this.onChange=o.Runtime.debounce(this.onChange.bind(this),666)}getDefaultMapOptions(){return{center:this.getDefaultCenter(),zoom:17,markers:[{latLng:this.getDefaultCenter(),title:"Bitrix24",description:"Bitrix24 - Your company. United."}]}}prepareMapOptions(e){if(!o.Type.isPlainObject(e)){return this.getDefaultMapOptions()}let t=e;if(!this.isPoint(t.center)){t.center=this.getDefaultCenter();if(o.Type.isArray(e.markers)&&e.markers.length>0){const r=e.markers[0];if(o.Type.isPlainObject(r)&&this.isPoint(r.latLng)){t.center=r.latLng}}}return t}getDefaultCenter(){let e;switch(o.Loc.getMessage("LANGUAGE_ID")){case"ru":e={lat:54.71916849999999,lng:20.48854240000003};break;case"ua":e={lat:50.440333,lng:30.526835};break;default:e={lat:38.814089,lng:-77.042356};break}return e}isPoint(e){return o.Type.isObjectLike(e)&&Object.keys(e).length===2}getPointByEvent(e){throw new Error("Must be implemented by subclass")}getCode(){return this.code}isApiLoaded(){throw new Error("Must be implemented by subclass")}init(){this.onInitHandler();this.emit("onInit")}reinit(e){this.options=e;this.emit("onInit")}handleApiLoad(){throw new Error("Must be implemented by subclass")}onChange(){this.onChangeHandler(this.preventChangeEvent);this.preventChangeEvent=false}addMarker(e){throw new Error("Must be implemented by subclass")}onMarkerClick(e){throw new Error("Must be implemented by subclass")}removeMarker(e){throw new Error("Must be implemented by subclass")}clearMarkers(){throw new Error("Must be implemented by subclass")}getValue(){throw new Error("Must be implemented by subclass")}setValue(e,t){this.preventChangeEvent=t;this.clearMarkers();if(o.Type.isPlainObject(e)){if(o.Type.isArray(e.markers)){e.markers.forEach(this.addMarker,this)}if(!BX.Landing.Utils.isEmpty(e.center)){this.setCenter(e.center)}if(e.zoom&&o.Type.isNumber(e.zoom)){this.setZoom(e.zoom)}}}onEditFormApplyClick(e){throw new Error("Must be implemented by subclass")}onEditFormRemoveClick(e){throw new Error("Must be implemented by subclass")}createBalloonEditForm(e,t){const r=new BX.Landing.UI.Form.BalloonForm({title:o.Loc.getMessage("LANDING_NODE_MAP_FORM_HEADER")});const a=new BX.Landing.UI.Button.BaseButton({text:o.Loc.getMessage("LANDING_NODE_MAP_FORM_SHOW_BUTTON_APPLY"),className:["ui-btn","ui-btn-success","ui-btn-sm"],onClick:this.onEditFormApplyClick.bind(this,t)});const n=new BX.Landing.UI.Button.BaseButton({text:o.Loc.getMessage("LANDING_NODE_MAP_FORM_SHOW_BUTTON_REMOVE"),className:["ui-btn","ui-btn-danger","ui-btn-sm"],onClick:this.onEditFormRemoveClick.bind(this,t)});a.layout.classList.remove("landing-ui-button");n.layout.classList.remove("landing-ui-button");const i=o.Tag.render(s||(s=l` <div class="ui-btn-container ui-btn-container-center"> ${0} ${0} </div> `),a.layout,n.layout);r.addField(new BX.Landing.UI.Field.Text({title:o.Loc.getMessage("LANDING_NODE_MAP_FORM_TITLE"),textOnly:true,content:e.title}));r.addField(new BX.Landing.UI.Field.Text({title:o.Loc.getMessage("LANDING_NODE_MAP_FORM_DESCRIPTION"),className:"landing-ui-field-map-description",content:e.description}));r.addField(new BX.Landing.UI.Field.Checkbox({className:"landing-ui-field-map-show-by-default",compact:true,items:[{name:o.Loc.getMessage("LANDING_NODE_MAP_FORM_SHOW_BY_DEFAULT"),value:true}],value:[e.showByDefault]}));r.layout.appendChild(i);return r}createBalloonContent(e){return o.Tag.render(a||(a=l` <div class="landing-map-balloon-content"> <div class="landing-map-balloon-content-header">${0}</div> <div class="landing-map-balloon-content-description">${0}</div> </div> `),e.title,e.description)}}const i=[{elementType:"geometry",stylers:[{color:"#1d2c4d"}]},{elementType:"labels.text.fill",stylers:[{color:"#8ec3b9"}]},{elementType:"labels.text.stroke",stylers:[{color:"#1a3646"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#64779e"}]},{featureType:"administrative.province",elementType:"geometry.stroke",stylers:[{color:"#4b6878"}]},{featureType:"landscape.man_made",elementType:"geometry.stroke",stylers:[{color:"#334e87"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#023e58"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#283d6a"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#6f9ba5"}]},{featureType:"poi",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#023e58"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#3c7680"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#304a7d"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"road",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#2c6675"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#255763"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#b0d5ce"}]},{featureType:"road.highway",elementType:"labels.text.stroke",stylers:[{color:"#023e58"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#98a5be"}]},{featureType:"transit",elementType:"labels.text.stroke",stylers:[{color:"#1d2c4d"}]},{featureType:"transit.line",elementType:"geometry.fill",stylers:[{color:"#283d6a"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#3a4762"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#0e1626"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#4e6d70"}]}];const y=[{elementType:"geometry",stylers:[{color:"#212121"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{elementType:"labels.text.stroke",stylers:[{color:"#212121"}]},{featureType:"administrative",elementType:"geometry",stylers:[{color:"#757575"}]},{featureType:"administrative.country",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#181818"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"poi.park",elementType:"labels.text.stroke",stylers:[{color:"#1b1b1b"}]},{featureType:"road",elementType:"geometry.fill",stylers:[{color:"#2c2c2c"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#8a8a8a"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#373737"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#3c3c3c"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#4e4e4e"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"transit",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#3d3d3d"}]}];const p=[{elementType:"geometry",stylers:[{color:"#242f3e"}]},{elementType:"labels.text.fill",stylers:[{color:"#746855"}]},{elementType:"labels.text.stroke",stylers:[{color:"#242f3e"}]},{featureType:"administrative.locality",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#263c3f"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#6b9a76"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#38414e"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#212a37"}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{color:"#9ca5b3"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#746855"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#1f2835"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#f3d19c"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#2f3948"}]},{featureType:"transit.station",elementType:"labels.text.fill",stylers:[{color:"#d59563"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#17263c"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#515c6d"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{color:"#17263c"}]}];const c=[{elementType:"geometry",stylers:[{color:"#ebe3cd"}]},{elementType:"labels.text.fill",stylers:[{color:"#523735"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f1e6"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#c9b2a6"}]},{featureType:"administrative.land_parcel",elementType:"geometry.stroke",stylers:[{color:"#dcd2be"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#ae9e90"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#93817c"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{color:"#a5b076"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#447530"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#f5f1e6"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#fdfcf8"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#f8c967"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#e9bc62"}]},{featureType:"road.highway.controlled_access",elementType:"geometry",stylers:[{color:"#e98d58"}]},{featureType:"road.highway.controlled_access",elementType:"geometry.stroke",stylers:[{color:"#db8555"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#806b63"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"transit.line",elementType:"labels.text.fill",stylers:[{color:"#8f7d77"}]},{featureType:"transit.line",elementType:"labels.text.stroke",stylers:[{color:"#ebe3cd"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#dfd2ae"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#b9d3c2"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#92998d"}]}];const d=[{elementType:"geometry",stylers:[{color:"#f5f5f5"}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{elementType:"labels.text.stroke",stylers:[{color:"#f5f5f5"}]},{featureType:"administrative.land_parcel",elementType:"labels.text.fill",stylers:[{color:"#bdbdbd"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"poi",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"poi.park",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"road",elementType:"geometry",stylers:[{color:"#ffffff"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#757575"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#dadada"}]},{featureType:"road.highway",elementType:"labels.text.fill",stylers:[{color:"#616161"}]},{featureType:"road.local",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{color:"#e5e5e5"}]},{featureType:"transit.station",elementType:"geometry",stylers:[{color:"#eeeeee"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#c9c9c9"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{color:"#9e9e9e"}]}];const m={AUBERGINE:i,DARK:y,NIGHT:p,RETRO:c,SILVER:d};const f={"":[],off:[{featureType:"road",stylers:[{visibility:"off"}]}]};const u={"":[],off:[{featureType:"administrative",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",stylers:[{visibility:"off"}]}]};const h={"":[],off:[{elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.neighborhood",stylers:[{visibility:"off"}]}]};class T extends n{constructor(e){super(e);this.setEventNamespace("BX.Landing.Provider.Map.GoogleMap");this.code="google";this.themes=m}getPointByEvent(e){const t=e.latLng;return this.isPoint(t)?t:{}}init(){this.preventChangeEvent=true;let e=this.options;this.mapInstance=new google.maps.Map(this.mapContainer,{zoom:this.mapOptions.zoom,center:this.mapOptions.center,zoomControl:o.Type.isBoolean(e.zoomControl)?e.zoomControl:true,mapTypeControl:o.Type.isBoolean(e.mapTypeControl)?e.mapTypeControl:true,mapTypeControlOptions:o.Type.isPlainObject(e.mapTypeControlOptions)?e.mapTypeControlOptions:null,scaleControl:o.Type.isBoolean(e.scaleControl)?e.scaleControl:true,streetViewControl:o.Type.isBoolean(e.streetViewControl)?e.streetViewControl:true,rotateControl:o.Type.isBoolean(e.rotateControl)?e.rotateControl:true,fullscreenControl:o.Type.isBoolean(e.fullscreenControl)?e.fullscreenControl:true,styles:this.getStylesFromOptions(e)});if(this.mapOptions.markers){this.mapOptions.markers.forEach((function(e){e.editable=BX.Landing.getMode()==="edit";e.draggable=BX.Landing.getMode()==="edit";this.addMarker(e)}),this)}this.mapInstance.addListener("bounds_changed",this.onChange);this.mapInstance.addListener("center_changed",this.onChange);this.mapInstance.addListener("zoom_changed",this.onChange);this.mapInstance.addListener("click",this.onMapClickHandler);super.init()}reinit(e){this.preventChangeEvent=true;if(this.mapInstance){this.mapInstance.setOptions({styles:this.getStylesFromOptions(e)})}super.reinit()}getStylesFromOptions(e){return(e.theme&&e.theme in this.themes?this.themes[e.theme]:[]).concat(f[e.roads]||[],u[e.landmarks]||[],h[e.labels]||[])}isApiLoaded(){return typeof google!=="undefined"}handleApiLoad(){window.onGoogleMapApiLoaded=()=>{this.onApiLoadedHandler(this.getCode())}}addMarker(e){let t={};t.marker=new google.maps.Marker({position:e.latLng,map:this.mapInstance,draggable:e.draggable});t.form=BX.Landing.getMode()==="edit"?this.createBalloonEditForm(e,t):null;t.content=this.createBalloonContent(e);t.infoWindow=new google.maps.InfoWindow({content:e.editable&&BX.Landing.getMode()==="edit"?t.form.layout:t.content});if(e.showByDefault&&BX.Landing.getMode()!=="edit"){t.infoWindow.open(this.mapInstance,t.marker);this.activeMarker=t}this.markers.add(t);if(BX.Landing.getMode()==="edit"||e.title||e.description){t.marker.addListener("click",this.onMarkerClick.bind(this,t))}this.onChange()}onMarkerClick(e){void(this.activeMarker&&this.activeMarker.infoWindow.close());e.infoWindow.open(this.mapInstance,e.marker);this.activeMarker=e}onEditFormRemoveClick(e){if(e){e.infoWindow.close();this.removeMarker(e)}this.markers.remove(e);this.onChange()}onEditFormApplyClick(e){e.infoWindow.close();this.onChange()}removeMarker(e){e.marker.setMap(null);this.markers.remove(e)}clearMarkers(){this.markers.forEach((e=>{e.marker.setMap(null)}));this.markers.clear()}setZoom(e){this.preventChangeEvent=true;this.mapInstance.setZoom(e)}setCenter(e){this.preventChangeEvent=true;this.mapInstance.setCenter(e)}getMarkersValue(){return this.markers.map((function(e){return{title:e.form?e.form.fields[0].getValue():"",description:e.form?e.form.fields[1].getValue():"",showByDefault:e.form?!!e.form.fields[2].getValue()[0]:"",latLng:e.marker.position.toJSON()}}))}getValue(){return{center:this.mapInstance.getCenter()?this.mapInstance.getCenter().toJSON():{},zoom:this.mapInstance.getZoom(),markers:this.getMarkersValue()}}}class g extends n{constructor(e){super(e);this.setEventNamespace("BX.Landing.Provider.Map.YandexMap");this.code="yandex"}init(){this.preventChangeEvent=true;const e=["zoomControl","fullscreenControl","typeSelector","routeButtonControl"];if(this.options.fullscreenControl===false){e.splice(e.indexOf("fullscreenControl"),1)}if(this.options.mapTypeControl===false){e.splice(e.indexOf("typeSelector"),1);e.splice(e.indexOf("routeButtonControl"),1)}this.mapInstance=new ymaps.Map(this.mapContainer,{center:this.convertPointIn(this.mapOptions.center),zoom:this.mapOptions.zoom,behaviors:this.options.zoomControl===false?["drag"]:["default"],controls:e});this.mapInstance.events.add("actionend",this.onChange);this.mapInstance.events.add("click",(e=>{this.cache.delete("value");this.onMapClickHandler(e);if(BX.Landing.getMode()==="edit"){this.markers[this.markers.length-1].marker.balloon.open()}}));if(this.mapOptions.markers){this.mapOptions.markers.forEach((e=>{e.editable=BX.Landing.getMode()==="edit";e.draggable=BX.Landing.getMode()==="edit";this.addMarker(e)}))}super.init()}reinit(e){this.preventChangeEvent=true;super.reinit()}isApiLoaded(){return typeof ymaps!=="undefined"&&typeof ymaps.Map!=="undefined"}convertPointIn(e){return[e.lat,e.lng]}convertPointOut(e){return{lat:e[0],lng:e[1]}}getPointByEvent(e){return this.convertPointOut(e.get("coords"))}handleApiLoad(){window.onYandexMapApiLoaded=()=>{this.onApiLoadedHandler(this.getCode())}}addMarker(e){const t={};t.form=BX.Landing.getMode()==="edit"?this.createBalloonEditForm(e,t):null;t.content=this.createBalloonContent(e);t.ballonId="ballonContent_"+o.Text.getRandom("6");const r=BX.Landing.getMode()!=="edit"&&!e.title&&!e.description;const l=ymaps.templateLayoutFactory.createClass('<div id="'+t.ballonId+'"></div>',{build:function(){l.superclass.build.call(this);const r=document.querySelector("#"+t.ballonId);const s=e.editable&&BX.Landing.getMode()==="edit"?t.form.layout:t.content;o.Dom.append(s,r)}});t.marker=new ymaps.Placemark(this.convertPointIn(e.latLng),{},{balloonContentLayout:r?null:l,balloonPanelMaxMapArea:0,draggable:e.draggable});this.mapInstance.geoObjects.add(t.marker);if(e.showByDefault){t.marker.balloon.open()}this.markers.add(t);this.onChange()}onMarkerClick(e){}onEditFormRemoveClick(e){if(e){e.marker.balloon.close();this.removeMarker(e)}this.markers.remove(e);this.onChange()}onEditFormApplyClick(e){e.marker.balloon.close();this.onChange()}removeMarker(e){this.mapInstance.geoObjects.remove(e.marker)}clearMarkers(){this.markers.forEach((e=>{this.mapInstance.geoObjects.remove(e.marker)}));this.markers.clear()}setZoom(e){this.mapInstance.setZoom(e)}setCenter(e){this.mapInstance.setCenter(this.convertPointIn(e))}getMarkersValue(){return this.markers.map((e=>({title:e.form?e.form.fields[0].getValue():"",description:e.form?e.form.fields[1].getValue():"",showByDefault:e.form?!!e.form.fields[2].getValue()[0]:"",latLng:this.convertPointOut(e.marker.geometry.getCoordinates())})))}getValue(){return this.cache.remember("value",(()=>({center:this.mapInstance.getCenter()?this.convertPointOut(this.mapInstance.getCenter()):{},zoom:this.mapInstance.getZoom(),markers:this.getMarkersValue()})))}onChange(){this.cache.delete("value");super.onChange()}}class b{constructor(){}static create(e,t){t.onApiLoaded=b.onApiLoaded;let r=e.dataset[b.DATA_ATTRIBUTE];if(!r||Object.keys(b.PROVIDERS).indexOf(r)===-1){r=b.DEFAULT_PROVIDER}const l=new b.PROVIDERS[r](t);if(l.isApiLoaded()){l.init()}else{if(!o.Type.isArray(b.scheduled[l.getCode()])){b.scheduled[l.getCode()]=[]}b.scheduled[l.getCode()].push(l)}return l}static onApiLoaded(e){if(o.Type.isArray(b.scheduled[e])){b.scheduled[e].forEach((e=>{e.init()}))}}}b.PROVIDERS={google:T,yandex:g};b.DEFAULT_PROVIDER="google";b.DATA_ATTRIBUTE="mapProvider";b.scheduled={};e.Map=b})(this.BX.Landing.Provider=this.BX.Landing.Provider||{},BX.Event,BX.Landing.Collection,BX); //# sourceMappingURL=map.bundle.map.js