1(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([["components-dx-tabs-DxTabs-js","node_modules_lodash_debounce_js-src_main_webpack_components_uikit_DxMap_DxMap_ts-src_main_web-27465f"],{51873:function(e,t,n){var r=n(9325).Symbol;e.exports=r},72552:function(e,t,n){var r=n(51873),i=n(659),o=n(59350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},54128:function(e,t,n){var r=n(31800),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},34840:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},659:function(e,t,n){var r=n(51873),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},59350:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9325:function(e,t,n){var r=n(34840),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},31800:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},38221:function(e,t,n){var r=n(23805),i=n(10124),o=n(99374),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,f,p,h=0,v=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=l,r=u;return l=u=void 0,h=t,d=e.apply(r,n)}function g(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-h>=c}function k(){var e=i();if(g(e))return w(e);f=setTimeout(k,function(e){var n=t-(e-p);return m?s(n,c-(e-h)):n}(e))}function w(e){return f=void 0,y&&l?b(e):(l=u=void 0,d)}function M(){var e=i(),n=g(e);if(l=arguments,u=this,p=e,n){if(void 0===f)return function(e){return h=e,f=setTimeout(k,t),v?b(e):d}(p);if(m)return clearTimeout(f),f=setTimeout(k,t),b(p)}return void 0===f&&(f=setTimeout(k,t)),d}return t=o(t)||0,r(n)&&(v=!!n.leading,c=(m="maxWait"in n)?a(o(n.maxWait)||0,t):c,y="trailing"in n?!!n.trailing:y),M.cancel=function(){void 0!==f&&clearTimeout(f),h=0,l=p=u=f=void 0},M.flush=function(){return void 0===f?d:w(i())},M}},23805:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},40346:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},44394:function(e,t,n){var r=n(72552),i=n(40346);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},10124:function(e,t,n){var r=n(9325);e.exports=function(){return r.Date.now()}},99374:function(e,t,n){var r=n(54128),i=n(23805),o=n(44394),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},87656:function(e,t,n){"use strict";n.d(t,{A:function(){return oe}});var r=n(12285),i=n(46238);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function u(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var d=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,"_mapElement",(0,r.Kp)("div",["DxMap__default-container"])),u(this,"options",void 0),u(this,"map",null),u(this,"markerInstances",[]),u(this,"zoomInBtn",void 0),u(this,"zoomOutBtn",void 0),u(this,"prevZoomLevel",void 0),u(this,"minZoomLevel",void 0),u(this,"defaultZoom",i.Eq.DEFAULT),u(this,"defaultLat",0),u(this,"defaultLng",0),u(this,"selectedMarker",null),u(this,"markerDataMap",new WeakMap),this.options=t},(t=[{key:"getMarkerData",value:function(e){return this.markerDataMap.get(e)}},{key:"setMarkerData",value:function(e,t){this.markerDataMap.set(e,t)}},{key:"destroy",value:function(){this.map=null,this.markerInstances=[]}},{key:"dispatchEvent",value:function(e,t){window.dispatchEvent(new CustomEvent(e,{detail:t}))}},{key:"checkMapIsCreated",value:function(){if(!this.map)throw new Error("Map must be created before calling this method")}},{key:"currentMap",get:function(){return this.checkMapIsCreated(),this.map}},{key:"currentMarkers",get:function(){return this.markerInstances}},{key:"mapElement",get:function(){return this._mapElement.className.includes("DxMap__default-container")&&console.warn("Map element is not defined, using default map element"),this._mapElement},set:function(e){if(!(0,r.sb)(e))throw new TypeError("Map element must be an instance of HTMLElement");this._mapElement=e}},{key:"currentZoom",get:function(){return this.getZoomLevel()||this.options.zoom||i.Eq.DEFAULT}},{key:"resolveMarkerIconVariant",value:function(e,t){var n,r,i;if(e)return{url:null!==(n=e.variants[t||"default"])&&void 0!==n?n:e.variants.default,width:(null===(r=e.size)||void 0===r?void 0:r.width)||30,height:(null===(i=e.size)||void 0===i?void 0:i.height)||40}}},{key:"isMarkerSelected",value:function(e){if(!this.selectedMarker)return!1;var t=this.getMarkerData(this.selectedMarker),n=this.getMarkerData(e);return(null==t?void 0:t.id)===(null==n?void 0:n.id)}},{key:"updateZoomButtonStates",value:function(){var e,t,n,r=this.currentZoom>=i.Eq.MAX,o=this.currentZoom<=(null!==(e=this.minZoomLevel)&&void 0!==e?e:i.Eq.MIN);null===(t=this.zoomInBtn)||void 0===t||t.toggleAttribute("disabled",r),null===(n=this.zoomOutBtn)||void 0===n||n.toggleAttribute("disabled",o),this.prevZoomLevel=this.currentZoom}},{key:"addCustomZoomControl",value:function(e){if(this.mapElement){var t=(0,r.Kp)("div",["DxMap__zoom-control"]),n=(0,r.Kp)("button",["DxMap__zoom-control-item","DxMap__zoom-control--zoom-in"],s({disabled:"true"},null!=e&&e.zoomIn?{ariaLabel:e.zoomIn}:{}));n.innerHTML='<span class="icon-plus"></span>';var i=(0,r.Kp)("button",["DxMap__zoom-control-item","DxMap__zoom-control--zoom-out"],s({disabled:"true"},null!=e&&e.zoomOut?{ariaLabel:e.zoomOut}:{}));i.innerHTML='<span class="icon-minus"></span>',t.appendChild(i),t.appendChild(n),this.mapElement.appendChild(t),this.zoomInBtn=n,this.zoomOutBtn=i}else console.warn("Cannot append zoom controls as map element is not defined")}}])&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),f=function(e){var t,n,r,o;return{settings:{landColor:i.Zl.land},elements:{mapElement:i.Zl.labels,area:i.Zl.area,areaOfInterest:i.Zl.area,industrial:i.Zl.area,neighborhood:i.Zl.neighborhood,water:i.Zl.water,vegetation:i.Zl.vegetation,transportation:i.Zl.road,highway:i.Zl.motorway,controlledAccessHighway:i.Zl.motorway,transitBuilding:i.Zl.area,structure:{visible:!1},indigenousPeoplesReserve:{visible:!1},miltary:{visible:!1},pointOfInterest:{visible:!1},routeLine:{visible:!1},waterRoute:{visible:!1},railway:{visible:!1},transit:{visible:!1},political:{borderVisible:!(null!==(t=e.suppressions)&&void 0!==t&&t.borders)},countryRegion:{labelVisible:!(null!==(n=e.suppressions)&&void 0!==n&&n.countryLabels)},adminDistrict:{borderVisible:!(null!==(r=e.suppressions)&&void 0!==r&&r.borders),labelVisible:!(null!==(o=e.suppressions)&&void 0!==o&&o.regionLabels)},point:{visible:!1}},version:"1.5"}};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function h(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=r&&r.prototype instanceof s?r:s,u=Object.create(l.prototype);return y(u,"_invoke",function(n,r,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,l=e,f.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],p=f.p,h=o[2];n>3?(i=h===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,f.v=r,f.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,f.n=h,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,i,o),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(y(t={},r,function(){return this}),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,y(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,y(d,"constructor",u),y(u,"constructor",l),l.displayName="GeneratorFunction",y(u,i,"GeneratorFunction"),y(d),y(d,i,"Generator"),y(d,r,function(){return this}),y(d,"toString",function(){return"[object Generator]"}),(m=function(){return{w:o,m:f}})()}function y(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}y=function(e,t,n,r){if(t)i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var o=function(t,n){y(e,t,function(e){return this._invoke(t,n,e)})};o("next",0),o("throw",1),o("return",2)}},y(e,t,n,r)}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function k(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,L(r.key),r)}}function M(e,t,n){return t=D(t),function(e,t){if(t&&("object"==p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,E()?Reflect.construct(t,n||[],D(e).constructor):t.apply(e,n))}function E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(E=function(){return!!e})()}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function x(e,t,n){return(t=L(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}var _=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return x(e=M(this,t,[].concat(r)),"markerClusterer",void 0),x(e,"mapRestrictions",null),x(e,"initialised",!1),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(t,e),n=t,r=[{key:"createMap",value:(a=m().m(function e(t,n){var r,o,a,s,l,u;return m().w(function(e){for(;;)switch(e.n){case 0:if(null!==(r=window.Microsoft)&&void 0!==r&&r.Maps){e.n=1;break}throw new Error("Bing Maps API is not loaded");case 1:if(t){e.n=2;break}throw new Error("Element is not provided");case 2:if(this.options=g(g(g({},this.options),n),{},{center:null!=n&&n.center?this.createValidateCoordinates(n.center):{lat:this.defaultLat,lng:this.defaultLng},zoom:null!==(o=Number(null==n?void 0:n.zoom))&&void 0!==o?o:this.defaultZoom}),this.mapElement=t,this.mapElement.setAttribute("DxMap","bingmaps"),this.prevZoomLevel=void 0,this.minZoomLevel=this.options.zoom||i.Eq.MIN,a=g({maxZoom:i.Eq.MAX,showZoomButtons:!1,showLocateMeButton:!1,showScalebar:!1,showMapTypeSelector:!1,mapTypeId:window.Microsoft.Maps.MapTypeId.road,showBreadcrumb:!1,enableClickableLogo:!1,enableSearchLogo:!1,showCopyright:!1,disableStreetside:!0,customMapStyle:f(this.options)}
1,this.options),null!=n&&n.restrictions&&(s=this.createValidRestrictions(n.restrictions),Object.assign(a,{maxBounds:s}),this.mapRestrictions=s),null!=n&&n.clusterMarkers&&(this.options.clusterMarkers=!0,Microsoft.Maps.loadModule("Microsoft.Maps.Clustering",{})),e.p=3,this.map=new window.Microsoft.Maps.Map(t,a),this.map){e.n=4;break}throw new Error("Map not created");case 4:null!=n&&n.enableZoomControl&&(this.addCustomZoomControl(null==n||null===(l=n.mapLabels)||void 0===l?void 0:l.zoomLabels),this.handleCustomZoom()),this.dispatchEvent(i.MT.MAP_LOADED),e.n=6;break;case 5:e.p=5,u=e.v,console.error("Error creating Bing Maps map",u);case 6:return e.a(2,this.currentMap)}},e,this,[[3,5]])}),s=function(){var e=this,t=arguments;return new Promise(function(n,r){var i=a.apply(e,t);function o(e){k(i,n,r,o,s,"next",e)}function s(e){k(i,n,r,o,s,"throw",e)}o(void 0)})},function(e,t){return s.apply(this,arguments)})},{key:"parseMarkerIcon",value:function(e,t){var n=this.resolveMarkerIconVariant(e,t);if(n)return{icon:n.url,width:n.width,height:n.height}}},{key:"createMarker",value:function(e){var t=this.parseMarkerIcon(e.icon,"default"),n=new window.Microsoft.Maps.Location(e.lat,e.lng),r=new window.Microsoft.Maps.Pushpin(n,g({title:e.title||"",roundClickableArea:!0},t));return this.setMarkerData(r,e),r}},{key:"addMarkers",value:function(e,t){var n,r=this;this.checkMapIsCreated();var o=e.filter(function(e){return null!=e}).map(function(e){var t=r.parseMarkerIcon(e.icon,"default"),n=r.parseMarkerIcon(e.icon,"selected"),o=r.parseMarkerIcon(e.icon,"hover"),a=r.createMarker(e);return e.excludeEventListeners||(Microsoft.Maps.Events.addHandler(a,"click",function(){var t=r.isMarkerSelected(a);if(r.dispatchEvent(i.MT.MARKER_CLICKED,e),t)return r.resetMarkerIcon(a),void(r.selectedMarker=null);r.selectedMarker&&r.resetMarkerIcon(r.selectedMarker),r.selectedMarker=a,a.setOptions({icon:null==n?void 0:n.icon})}),Microsoft.Maps.Events.addHandler(a,"mouseover",function(){r.isMarkerSelected(a)||a.setOptions({icon:null==o?void 0:o.icon})}),Microsoft.Maps.Events.addHandler(a,"mouseout",function(){r.isMarkerSelected(a)||a.setOptions({icon:null==t?void 0:t.icon})})),a});if((n=this.markerInstances).push.apply(n,h(o)),this.options.clusterMarkers){this.addClusterMarkers(t);var a=o.filter(function(e){var t;return!0===(null===(t=r.getMarkerData(e))||void 0===t?void 0:t.excludeFromCluster)});this.currentMap.entities.push(a)}else this.currentMap.entities.push(o);return o.length>0&&this.dispatchEvent(i.MT.MARKERS_ADDED),o}},{key:"removeMarker",value:function(e){var t;!0===(null===(t=this.getMarkerData(e))||void 0===t?void 0:t.excludeFromCluster)?(this.currentMap.entities.remove(e),this.markerInstances=this.markerInstances.filter(function(t){return t!==e}),this.selectedMarker===e&&(this.selectedMarker=null)):this.removeMarkers([e])}},{key:"removeMarkers",value:function(e){var t=this;e.forEach(function(e){t.currentMap.entities.remove(e)}),this.markerInstances=this.markerInstances.filter(function(t){return!e.includes(t)}),this.selectedMarker&&e.includes(this.selectedMarker)&&(this.selectedMarker=null)}},{key:"removeAllMarkers",value:function(){var e=this;this.markerClusterer&&(this.currentMap.layers.remove(this.markerClusterer),this.markerClusterer=void 0),this.markerInstances.forEach(function(t){e.currentMap.entities.remove(t)}),this.markerInstances=[],this.selectedMarker=null}},{key:"setCenter",value:function(e,t){this.currentMap.setView({center:new window.Microsoft.Maps.Location(e,t)})}},{key:"setZoom",value:function(e){this.currentMap.setView({zoom:e})}},{key:"fitBounds",value:function(e){if(e&&0!==e.length){var t=e.map(function(e){return e.getLocation()}),n=window.Microsoft.Maps.LocationRect.fromLocations(t);this.currentMap.setView({bounds:n,padding:60})}}},{key:"on",value:function(e,t,n){var r={click:"click",dblclick:"dblclick",dragend:"dragend",zoom_changed:"zoom_changed",bounds_changed:"bounds_changed",center_changed:"center_changed",viewchangestart:"viewchangestart",viewchange:"viewchange",viewchangeend:"viewchangeend",viewrendered:"viewrendered",maptypechanged:"maptypechanged"};n?window.Microsoft.Maps.Events.addOne(this.currentMap,r[e],t):window.Microsoft.Maps.Events.addHandler(this.currentMap,r[e],t)}},{key:"currentMarkers",get:function(){return this.markerInstances}},{key:"createValidateCoordinates",value:function(e){if(!e)throw new Error("Coordinates are not provided");var n=t.getLocation(e);if(!n)throw new Error("Invalid coordinates");return n}}
1,{key:"createValidRestrictions",value:function(e){if(!e)throw new Error("Invalid boundaries for restrictions");var n=t.getBoundaryLocationRect(e);if(!n)throw new Error("Invalid boundaries for restrictions");return n}},{key:"addClusterMarkers",value:function(e){var t=this;this.markerClusterer&&(this.currentMap.layers.remove(this.markerClusterer),this.markerClusterer=void 0);var n,r=this.markerInstances.filter(function(e){var n;return!0!==(null===(n=t.getMarkerData(e))||void 0===n?void 0:n.excludeFromCluster)});if(null!=e&&e.enableClusterLabel){var o,a=null!==(o=e.clusterLabelTemplate)&&void 0!==o?o:"{count}";n=a.replace("{count}",String(r.length))}var s=new Microsoft.Maps.ClusterLayer(r,{gridSize:45,clusteringEnabled:!0===this.options.clusterMarkers,clusteredPinCallback:function(e){var r=50;e.setOptions({icon:"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent('\n <svg width="'.concat(r,'" height="').concat(r,'" xmlns="http://www.w3.org/2000/svg">\n <circle cx="').concat(25,'" cy="').concat(25,'" r="').concat(23,'" fill="white" stroke="#0C121C" stroke-width="2"/>\n <text x="').concat(25,'" y="').concat(25,'" dominant-baseline="central" text-anchor="middle"\n font-family="Land Rover Web, sans-serif" font-size="13" font-weight="bold" fill="#0C121C">').concat(e.containedPushpins.length,"</text>\n </svg>\n ")),anchor:new Microsoft.Maps.Point(25,25),title:n}),Microsoft.Maps.Events.addHandler(e,"click",function(e){t.dispatchEvent(i.MT.CLUSTER_CLICKED,e.target);var n=e.target,r=n.getLocation();n.containedPushpins&&n.containedPushpins.length>0&&t.fitBounds(n.containedPushpins),t.setCenter(r.latitude,r.longitude)})}});this.markerClusterer=s,this.currentMap.layers.insert(s)}},{key:"getZoomLevel",value:function(){return this.currentMap.getZoom()}},{key:"handleCustomZoom",value:function(){var e=this;this.zoomInBtn&&this.zoomOutBtn?(this.zoomInBtn.addEventListener("mousedown",function(){e.currentMap.setView({zoom:e.currentZoom+1})}),this.zoomOutBtn.addEventListener("mousedown",function(){e.currentMap.setView({zoom:e.currentZoom-1})}),Microsoft.Maps.Events.addHandler(this.currentMap,"viewchangeend",function(){e.initialised?e.updateZoomButtonStates():e.initialised=!0})):console.warn("Zoom buttons are not created")}},{key:"zoomToMarker",value:function(e,t){var n=this;if(t){var r=e.getLocation();if(r){var o=this.currentZoom,a=function(){var s=(t.clusters||[]).find(function(t){return t.markers&&t.markers.includes(e)});!s||1===s.markers.length||o>=i.Eq.MAX||(o+=2,n.currentMap.setView({center:r}),n.setZoom(o),Microsoft.Maps.Events.addOne(n.currentMap,"idle",a))};a()}}}},{key:"resetMarkerIcon",value:function(e){var t,n,r=null===(t=this.parseMarkerIcon(null===(n=this.getMarkerData(e))||void 0===n?void 0:n.icon,"default"))||void 0===t?void 0:t.icon;e.setOptions({icon:null!=r?r:void 0})}},{key:"clearSelectedMarker",value:function(){this.selectedMarker&&(this.resetMarkerIcon(this.selectedMarker),this.selectedMarker=null)}},{key:"getMarkerVisibility",value:function(e){var t,n=null===(t=this.markerClusterer)||void 0===t?void 0:t.clusters,r=null==n?void 0:n.find(function(t){return t.containedPushpins&&t.containedPushpins.includes(e)}),i=this.currentMap.getBounds();if(!i)return{visible:!1,cluster:r};var o=null==e?void 0:e.getLocation();return o?{visible:i.contains(o),cluster:r}:{visible:!1,cluster:r}}},{key:"selectMarker",value:function(e){var t,n,r=this;if(e){var o=this.currentMarkers.find(function(t){var n;return(null===(n=r.getMarkerData(t))||void 0===n?void 0:n.id)===e});if(o){this.selectedMarker&&(null===(t=this.selectedMarker)||void 0===t||null===(t=t.metadata)||void 0===t?void 0:t.id)!==(null==o||null===(n=o.metadata)||void 0===n?void 0:n.id)&&this.resetMarkerIcon(this.selectedMarker);var a=this.getMarkerData(o);if(null!=a&&a.icon){var s=this.parseMarkerIcon(a.icon,"selected");o.setOptions({icon:null==s?void 0:s.icon})}if(this.selectedMarker=o,!this.getMarkerVisibility(o).visible){var l=o.getLocation();if(!l)return;this.currentMap.setView({center:l});var u=Math.max(this.currentZoom-.5,i.Eq.MIN);this.setZoom(u)}this.zoomToMarker(o,this.markerClusterer)}}}},{key:"isPointWithinMapBounds",value:function(e,t){var n=new window.Microsoft.Maps.Location(e,t),r=this.mapRestrictions;return!!r&&r.contains(n)}},{key:"resetToDefault",value:function(){var e;this.removeAllMarkers(),this.setCenter(this.defaultLat,this.defaultLng),this.setZoom(null!==(e=this.options.zoom)&&void 0!==e?e:this.defaultZoom)}}],o=[{key:"getLocation",value:function(e){if(e)return e instanceof Microsoft.Maps.Location?e:new Microsoft.Maps.Location(Number(e.lat),Number(e.lng))}},{key:"getBoundaryLocationRect",value:function(e){if(e)return Microsoft.Maps.LocationRect.fromEdges(Number(e.boundaryNorth),Number(e.boundaryWest),Number(e.boundarySouth),Number(e.boundaryEast))}}],r&&w(n.prototype,r),o&&w(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o,a,s}(d),O=_,C=n(111),S=[{featureType:"administrative",elementType:"labels.text.fill",stylers:[{color:"#6195a0"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{lightness:"60"},{saturation:"0"}]},{featureType:"landscape",elementType:"all",stylers:[{color:"#f2f2f2"}]},{featureType:"landscape",elementType:"geometry.fill",stylers:[{color:"#e2f6e8"}]},{featureType:"landscape.natural.landcover",elementType:"geometry.fill",stylers:[{color:"#dff5e6"}]},{featureType:"landscape.natural.terrain",elementType:"geometry.fill",stylers:[{color:"#689072"}]},{featureType:"landscape",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.park",elementType:"geometry.fill",stylers:[{visibility:"on"},{color:"#e6f3d6"}]},{featureType:"road",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"road",elementType:"labels.text",stylers:[{lightness:"70"},{saturation:"-50"},{gamma:"0.50"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#f4d2c5"},{visibility:"simplified"}]},{featureType:"road.highway",elementType:"labels.icon",stylers:[{visibility:"on"},{gamma:"3.00"}]},{featureType:"road.arterial",elementType:"geometry.fill",stylers:[{color:"#ffffff"}]},{featureType:"road.local",elementType:"geometry.fill",stylers:[{color:"#ffffff"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"all",stylers:[{color:"#eaf6f8"},{visibility:"on"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#d0e3e6"}]},{featureType:"water",elementType:"labels",stylers:[{lightness:"-100"},{gamma:"0.00"},{weight:"5.75"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{lightness:"60"},{visibility:"on"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{visibility:"off"},{invert_lightness:!0}
vendor: 4,706 bytes, line 1
1]}],P={featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},I={featureType:"administrative.country",elementType:"labels",stylers:[{visibility:"off"}]},A={featureType:"administrative.province",elementType:"labels",stylers:[{visibility:"off"}]};function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function B(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=r&&r.prototype instanceof s?r:s,u=Object.create(l.prototype);return N(u,"_invoke",function(n,r,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,l=e,f.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],p=f.p,h=o[2];n>3?(i=h===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,f.v=r,f.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,f.n=h,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,i,o),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(N(t={},r,function(){return this}),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,N(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,N(d,"constructor",u),N(u,"constructor",l),l.displayName="GeneratorFunction",N(u,i,"GeneratorFunction"),N(d),N(d,i,"Generator"),N(d,r,function(){return this}),N(d,"toString",function(){return"[object Generator]"}),(B=function(){return{w:o,m:f}})()}function N(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}N=function(e,t,n,r){if(t)i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var o=function(t,n){N(e,t,function(e){return this._invoke(t,n,e)})};o("next",0),o("throw",1),o("return",2)}},N(e,t,n,r)}function Z(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return F(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach(function(t){K(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function V(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$(r.key),r)}}function q(e,t,n){return t=U(t),function(e,t){if(t&&("object"==j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,G()?Reflect.construct(t,n||[],U(e).constructor):t.apply(e,n))}function G(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(G=function(){return!!e})()}
1function U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},U(e)}function H(e,t){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},H(e,t)}function K(e,t,n){return(t=$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e){var t=function(e,t){if("object"!=j(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==j(t)?t:t+""}var X=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return K(e=q(this,t,[].concat(r)),"markerClusterer",void 0),K(e,"mapRestrictions",null),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&H(e,t)}(t,e),n=t,r=[{key:"createMap",value:(a=B().m(function e(t,n){var r,o,a,s,l,u,c,d,f,p,h,v,m,y;return B().w(function(e){for(;;)switch(e.n){case 0:if(null!==(r=window.google)&&void 0!==r&&r.maps){e.n=1;break}throw new Error("Google Maps API is not loaded");case 1:if(t){e.n=2;break}throw new Error("Element is not provided");case 2:if(this.options=z(z(z({},this.options),n),{},{zoom:null!==(o=Number(null==n?void 0:n.zoom))&&void 0!==o?o:this.defaultZoom}),this.mapElement=t,this.mapElement.setAttribute("DxMap","googlemaps"),this.prevZoomLevel=void 0,this.minZoomLevel=null!==(a=this.options.zoom)&&void 0!==a?a:i.Eq.MIN,f=z({center:{lat:this.defaultLat,lng:this.defaultLng},maxZoom:i.Eq.MAX,disableDefaultUI:!0,styles:S},this.options),null!==(s=this.options)&&void 0!==s&&s.center&&"lat"in this.options.center&&"lng"in this.options.center&&(this.defaultLat=this.options.center.lat,this.defaultLng=this.options.center.lng),null!==(l=this.options)&&void 0!==l&&l.zoom&&(this.defaultZoom=null===(p=this.options)||void 0===p?void 0:p.zoom),h=Z(S),null!==(u=this.options)&&void 0!==u&&null!==(u=u.suppressions)&&void 0!==u&&u.borders&&h.push(P),null!==(c=this.options)&&void 0!==c&&null!==(c=c.suppressions)&&void 0!==c&&c.countryLabels&&h.push(I),null!==(d=this.options)&&void 0!==d&&null!==(d=d.suppressions)&&void 0!==d&&d.regionLabels&&h.push(A),f.styles=h,null!=n&&n.restrictions&&(v=this.createValidRestrictions(n.restrictions),Object.assign(f,{restriction:v}),this.mapRestrictions=v),null!=n&&n.clusterMarkers&&(this.options.clusterMarkers=!0),e.p=3,this.map=new google.maps.Map(t,f),this.map){e.n=4;break}throw new Error("Map not created");case 4:null!=n&&n.enableZoomControl&&(this.addCustomZoomControl(null==n||null===(m=n.mapLabels)||void 0===m?void 0:m.zoomLabels),this.handleCustomZoom()),this.dispatchEvent(i.MT.MAP_LOADED),e.n=6;break;case 5:e.p=5,y=e.v,console.error("Error creating Google Maps map",y);case 6:return e.a(2,this.currentMap)}},e,this,[[3,5]])}),s=function(){var e=this,t=arguments;return new Promise(function(n,r){var i=a.apply(e,t);function o(e){V(i,n,r,o,s,"next",e)}function s(e){V(i,n,r,o,s,"throw",e)}o(void 0)})},function(e,t){return s.apply(this,arguments)})},{key:"parseMarkerIcon",value:function(e,t){var n=this.resolveMarkerIconVariant(e,t);if(n)return{url:n.url,size:new google.maps.Size(n.width,n.height)}}},{key:"createMarker",value:function(e){var t,n=this.parseMarkerIcon(e.icon,"default"),r=new google.maps.Marker({position:{lat:e.lat,lng:e.lng},title:(null===(t=e.data)||void 0===t?void 0:t.name)||"",icon:n});return this.setMarkerData(r,e),r}},{key:"addMarkers",value:function(e,t){var n,r=this;this.checkMapIsCreated();var o=e.map(function(e){if(e){var t=r.createMarker(e);return t.setMap(r.currentMap),e.excludeEventListeners||(t.addListener("click",function(){var n;r.dispatchEvent(i.MT.MARKER_CLICKED,e);var o=r.parseMarkerIcon(e.icon,"selected");o&&t.setIcon(o);var a=t.getPosition();a&&(null===(n=r.map)||void 0===n||n.panTo(a))}),t.addListener("mouseover",function(){if(r.isMarkerSelected(t)){var n=r.parseMarkerIcon(e.icon,"selected");n&&t.setIcon(n)}else{var i=r.parseMarkerIcon(e.icon,"hover");i&&t.setIcon(i)}}),t.addListener("mouseout",function(){if(r.isMarkerSelected(t)){var n=r.parseMarkerIcon(e.icon,"selected");n&&t.setIcon(n)}else{var i=r.parseMarkerIcon(e.icon,"default");i&&t.setIcon(i)}})),t}console.error("Failed to create map marker")}).filter(function(e){return void 0!==e});return(n=this.markerInstances).push.apply(n,Z(o)),this.options.clusterMarkers&&this.addClusterMarkers(t),o.length>0&&this.dispatchEvent(i.MT.MARKERS_ADDED),o}},{key:"removeMarker",value:function(e){var t;!0===(null===(t=this.getMarkerData(e))||void 0===t?void 0:t.excludeFromCluster)?(e.setMap(null),this.markerInstances=this.currentMarkers.filter(function(t){return t!==e})):this.removeMarkers([e])}},{key:"removeMarkers",value:function(e){var t=this;this.markerClusterer&&e.length>0&&e.forEach(function(e){var n;null===(n=t.markerClusterer)||void 0===n||n.removeMarker(e)}),e.forEach(function(e){return e.setMap(null)}),this.markerInstances=this.currentMarkers.filter(function(t){return!e.includes(t)})}},{key:"removeAllMarkers",value:function(){this.markerClusterer&&(this.markerClusterer.clearMarkers(),this.markerClusterer=void 0),this.markerInstances.forEac
1h(function(e){return e.setMap(null)}),this.markerInstances=[]}},{key:"setCenter",value:function(e,t){this.checkMapIsCreated(),this.currentMap.setCenter({lat:e,lng:t})}},{key:"setZoom",value:function(e){this.checkMapIsCreated(),this.currentMap.setZoom(e)}},{key:"fitBounds",value:function(e){if(e&&0!==e.length){var t=new google.maps.LatLngBounds;if(e.forEach(function(e){var n=e.getPosition();n&&t.extend(n)}),t.isEmpty())return this.currentMap.setCenter(this.options.center),void this.currentMap.setZoom(this.options.zoom||i.Eq.DEFAULT);var n=t.getCenter();this.currentMap.fitBounds(t,0),this.currentMap.setCenter(n)}}},{key:"on",value:function(e,t){this.currentMap.addListener({load:"load",click:"click",dblclick:"dblclick",dragend:"dragend",zoom_changed:"zoom_changed",bounds_changed:"bounds_changed",center_changed:"center_changed"}[e],t)}},{key:"currentMarkers",get:function(){return this.markerInstances}},{key:"getMarkerVisibility",value:function(e){var t,n=null===(t=this.markerClusterer)||void 0===t||null===(t=t.clusters)||void 0===t?void 0:t.find(function(t){return t.markers&&t.markers.includes(e)});return n?{visible:n.markers.length<2,cluster:n}:{visible:!0,cluster:void 0}}},{key:"clearSelectedMarker",value:function(){if(this.selectedMarker){var e=this.getMarkerData(this.selectedMarker),t=this.parseMarkerIcon(null==e?void 0:e.icon,"default");t&&this.selectedMarker.setIcon(t),this.selectedMarker=null}}},{key:"selectMarker",value:function(e){var t=this;if(e){var n=this.currentMarkers.find(function(n){var r;return(null===(r=t.getMarkerData(n))||void 0===r?void 0:r.id)===e});if(n){var r=this.getMarkerData(n);if(null!=r&&r.icon){var i=this.parseMarkerIcon(r.icon,"selected");n.setIcon(i)}var o=n.getPosition();if(o){this.selectedMarker=n;var a=function(){var e=t.getMarkerVisibility(n),r=e.visible,i=e.cluster;!r&&null!=i&&i.bounds?(t.currentMap.fitBounds(i.bounds,0),t.currentMap.panTo(o),google.maps.event.addListenerOnce(t.currentMap,"idle",function(){a()})):r?t.animateTo(o):t.currentMap.panTo(o)};a()}}}}},{key:"animateTo",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=this.currentMap.getCenter();if(r){var i=r.lat(),o=r.lng(),a=null,s=function(r){a||(a=r);var l=Math.min((r-a)/n,1),u=i+(e.lat()-i)*l,c=o+(e.lng()-o)*l;t.currentMap.setCenter(new google.maps.LatLng(u,c)),l<1&&requestAnimationFrame(s)};requestAnimationFrame(s)}}},{key:"createValidRestrictions",value:function(e){if(!e)throw new Error("Invalid boundaries for restrictions");var t=new google.maps.LatLng(Number(e.boundarySouth),Number(e.boundaryWest)),n=new google.maps.LatLng(Number(e.boundaryNorth),Number(e.boundaryEast));if(!t||!n)throw new Error("Invalid boundaries for restrictions");var r=new google.maps.LatLngBounds(t,n);if(!r)throw new Error("Invalid boundaries for restrictions");return{latLngBounds:r,strictBounds:e.boundaryStrict||!1}}},{key:"addClusterMarkers",value:function(e){var t=this,n=this.markerInstances.filter(function(e){var n,r=e.getMap()===t.currentMap,i=!0===(null===(n=t.getMarkerData(e))||void 0===n?void 0:n.excludeFromCluster);return r&&!i});this.markerClusterer&&this.markerClusterer.clearMarkers(),this.markerClusterer=new C.w1({map:this.currentMap,markers:n,renderer:{render:function(n){var r,o,a=n.count,s=n.position,l=n.markers;null!=e&&e.enableClusterLabel&&(r=(null!==(o=e.clusterLabelTemplate)&&void 0!==o?o:"{count}").replace("{count}",String(a)));var u={path:google.maps.SymbolPath.CIRCLE,scale:20,fillColor:"white",fillOpacity:1,strokeColor:"#0C121C",strokeWeight:2},c=new google.maps.Marker({position:s,label:{text:String(a),color:"#0C121C",fontSize:"14px",fontWeight:"bold"},icon:u,title:r,zIndex:Number(google.maps.Marker.MAX_ZINDEX)+a});return c.addListener("mouseover",function(){c.setIcon(z(z({},u),{},{strokeWeight:4}))}),c.addListener("mouseout",function(){c.setIcon(u)}),c.addListener("click",function(){var e={count:a,position:s,markers:l,center:{lat:s.lat,lng:s.lng}};t.dispatchEvent(i.MT.CLUSTER_CLICKED,e)}),c}}})}},{key:"getZoomLevel",value:function(){return this.currentMap.getZoom()}},{key:"handleCustomZoom",value:function(){var e=this;this.zoomInBtn&&this.zoomOutBtn?(this.zoomInBtn.addEventListener("mousedown",function(){e.currentMap.setZoom(e.currentZoom+1)}),this.zoomOutBtn.addEventListener("mousedown",function(){e.currentMap.setZoom(e.currentZoom-1)}),this.currentMap.addListener("zoom_changed",function(){e.currentZoom===e.defaultZoom||e.currentMarkers.length<1||e.updateZoomButtonStates()})):console.warn("Zoom buttons are not created")}},{key:"isPointWithinMapBounds",value:function(e,t){var n,r=new google.maps.LatLng(e,t),i=null===(n=this.mapRestrictions)||void 0===n?void 0:n.latLngBounds;return!!i&&i.contains(r)}},{key:"resetToDefault",value:function(){var e=this,t=google.maps.event.addListenerOnce(this.currentMap,"idle",function(){e.setZoom(e.defaultZoom),google.maps.event.removeListener(t)});this.setCenter(this.defaultLat,this.defaultLng)}}],r&&W(n.prototype,r),o&&W(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o,a,s}(d),Y=X;function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function Q(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=r&&r.prototype instanceof s?r:s,u=Object.create(l.prototype);return ee(u,"_invoke",function(n,r,i){var o,s,l,u=0,c=i||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return o=t,s=0,l=e,f.n=n,a}};function p(n,r){for(s=n,l=r,t=0;!d&&u&&!i&&t<c.length;t++){var i,o=c[t],p=f.p,h=o[2];n>3?(i=h===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=p&&((i=n<2&&p<o[1])?(s=0,f.v=r,f.n=o[1]):p<h&&(i=n<3||o[0]>r||r>h)&&(o[4]=n,o[5]=r,f.n=h,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,c,h){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&p(c,h),s=c,l=h;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(f.n=-1),p(s,l)):f.n=l:f.v=l);try{if(u=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");
1if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==a)break}catch(t){o=e,s=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,i,o),!0),u}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(ee(t={},r,function(){return this}),t),d=u.prototype=s.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,ee(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=u,ee(d,"constructor",u),ee(u,"constructor",l),l.displayName="GeneratorFunction",ee(u,i,"GeneratorFunction"),ee(d),ee(d,i,"Generator"),ee(d,r,function(){return this}),ee(d,"toString",function(){return"[object Generator]"}),(Q=function(){return{w:o,m:f}})()}function ee(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}ee=function(e,t,n,r){if(t)i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n;else{var o=function(t,n){ee(e,t,function(e){return this._invoke(t,n,e)})};o("next",0),o("throw",1),o("return",2)}},ee(e,t,n,r)}function te(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ie(r.key),r)}}function re(e,t,n){return(t=ie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ie(e){var t=function(e,t){if("object"!=J(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=J(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==J(t)?t:t+""}var oe=function(){return e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),re(this,"mapInstance",null),re(this,"adapter",void 0),this.adapter=this.createAdapter(t,n)},t=[{key:"createAdapter",value:function(e,t){var n={google:Y,bing:O}[e];if(!n)throw new Error("Invalid map provider: ".concat(e));return new n(t)}},{key:"createMap",value:(r=Q().m(function e(t){var n,r=arguments;return Q().w(function(e){for(;;)switch(e.n){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},e.n=1,this.adapter.createMap(t,n);case 1:return this.mapInstance=e.v,e.a(2,this.mapInstance)}},e,this)}),i=function(){var e=this,t=arguments;return new Promise(function(n,i){var o=r.apply(e,t);function a(e){te(o,n,i,a,s,"next",e)}function s(e){te(o,n,i,a,s,"throw",e)}a(void 0)})},function(e){return i.apply(this,arguments)})},{key:"createMarker",value:function(e){return this.adapter.createMarker(e)}},{key:"addMarkers",value:function(e,t){return this.adapter.addMarkers(e,t)}},{key:"removeMarker",value:function(e){this.adapter.removeMarker(e)}},{key:"removeMarkers",value:function(e){this.adapter.removeMarkers(e)}},{key:"removeAllMarkers",value:function(){this.adapter.removeAllMarkers()}},{key:"setCenter",value:function(e,t){this.adapter.setCenter(e,t)}},{key:"setZoom",value:function(e){this.adapter.setZoom(e)}},{key:"fitBounds",value:function(e){this.adapter.fitBounds(e)}},{key:"selectMarker",value:function(e){this.adapter.selectMarker(e)}},{key:"isPointWithinMapBounds",value:function(e,t){return this.adapter.isPointWithinMapBounds(e,t)}},{key:"clearSelectedMarker",value:function(){this.adapter.clearSelectedMarker()}},{key:"resetToDefault",value:function(){this.adapter.resetToDefault()}},{key:"on",value:function(e,t){this.adapter.on(e,t)}},{key:"currentMarkers",get:function(){return this.adapter.currentMarkers}},{key:"destroy",value:function(){this.adapter.destroy()}},{key:"zoomInBtn",get:function(){return this.adapter.zoomInBtn}},{key:"zoomOutBtn",get:function(){return this.adapter.zoomOutBtn}},{key:"mapElement",get:function(){return this.adapter._mapElement},set:function(e){this.adapter._mapElement=e}}],t&&ne(e.prototype,t),n&&ne(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,r,i}()},46238:function(e,t,n){"use strict";n.d(t,{Eq:function(){return o},MT:function(){return r},Vy:function(){return i},Zl:function(){return a}});var r={MAPS_API_LOADED:"DxMap::Maps_api_ready",MAP_LOADED:"DxMap::Map_loaded",MARKER_CLICKED:"DxMap::Marker_clicked",MARKERS_ADDED:"DxMap::Markers_added",CLUSTER_CLICKED:"DxMap::Cluster_clicked"},i={GOOGLE:"google",BING:"bing"},o={MAX:18,MIN:5,DEFAULT:10},a={land:"#BBE3C8",water:{fillColor:"#ADC7D1",labelColor:"#1B55B9",labelOutlineColor:"#ADC7D1"},vegetation:{fillColor:"#96C9A5"},area:{fillColor:"#F8F5EC"},neighborhood:{fillColor:"#F8F5EC",labelColor:"#666666",labelOutlineColor:"#FFFFFF"},motorway:{fillColor:"#AFABA5",strokeColor:"#BBE3C8"},road:{fillColor:"#FFFFFF",strokeColor:"#FFFFFF"},labels:{labelColor:"#4E5256",labelOutlineColor:"#ffffff"}}},90158:function(e,t,n){"use strict";var r=n(12285),i=n(46238);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function s(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"props",void 0),s(this,"provider",void 0),this.props=t,this.provider=t.provider}return t=e,o=[{key:"MapReady",value:function(){delete window.initMap,delete window.initBingMap,e.dispatchEvent(i.MT.MAPS_API_LOADED)}},{key:"dispatchEvent",value:function(e){window.dispatchEvent(new CustomEvent(e))}},{key:"validateRegion",value:function(e){if("string"!=typeof e)return!1;var t=e.toUpperCase();return t.length>0&&/^[A-Z]{2}$/.test(t)}}],(n=[{key:"init",value:function(){if(this.props.url)switch(this.props.provider){case i.Vy.GOOG
1LE:this.initGoogle();break;case i.Vy.BING:this.initBing();break;default:console.error("Invalid map provider")}else console.error("Maps URL not authored")}},{key:"initGoogle",value:function(){window.DxMapReady=e.MapReady;try{var t=new URL(this.props.url);t.searchParams.set("callback","DxMapReady"),t.searchParams.set("loading","async"),t.searchParams.set("libraries","places,geometry"),t.searchParams.set("disableDefaultUI","true"),t.searchParams.set("scrollwheel","false"),t.searchParams.set("doubleclickzoom","false"),this.props.region&&e.validateRegion(this.props.region)&&t.searchParams.set("region",this.props.region),this.props.key&&t.searchParams.set("key",this.props.key),this.loadScript(t.href)}catch(e){console.error("Invalid maps API URL: ",e)}}},{key:"initBing",value:function(){window.initMap=window.initBingMap=function(){e.MapReady()};try{var t=new URL(this.props.url);this.props.key&&t.searchParams.set("key",this.props.key),this.props.region&&e.validateRegion(this.props.region)&&t.searchParams.set("userRegion",this.props.region),this.loadScript(t.href)}catch(e){console.error("Invalid maps API URL: ",e)}}},{key:"loadScript",value:function(e){var t=(0,r.Kp)("script",[],{type:"text/javascript",src:e});document.body.appendChild(t)}}])&&a(t.prototype,n),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,o}();t.A=u},12550:function(e,t,n){"use strict";n.r(t),n.d(t,{DxDropdownEvents:function(){return l},default:function(){return u}});var r=n(69805),i=n(71202);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var l={OPEN:"DxDropdown:open",CLOSE:"DxDropdown:close",UPDATE:"DxDropdown:update",REBIND:"DxDropdown:rebind"},u=function(){return e=function e(t){var n=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.element=t,this.open=!1,this.button=t.querySelector(".dxDropdown__button"),this.listbox=t.querySelector(".dxDropdown__list"),this.useConstraints=o,this.truncateText=a,this.useConstraints&&(this.element.classList.add("dxDropdown--use-constraints"),this.observeDropdownConstraints(),this.element.style.setProperty("--dxdropdown-height","".concat(this.listbox.getBoundingClientRect().height,"px")),this.listboxWrapper=document.createElement("div"),this.listboxWrapper.classList.add("dxDropdown__list-wrapper"),this.listbox.parentNode.insertBefore(this.listboxWrapper,this.listbox),this.listboxWrapper.appendChild(this.listbox),this.intersectionObserverOptions={root:null,threshold:0}),this.truncateText&&this.element.classList.add("dxDropdown--use-truncate"),this.element.addEventListener(l.REBIND,function(){return n.rebindListBox()}),this.element.addEventListener("click",function(e){return n.clickEventListeners(e,r)}),this.button.addEventListener("keyup",function(e){return n.checkShow(e)}),this.listbox.addEventListener("blur",function(e){return n.testBlur(e)}),this.listbox.addEventListener("keydown",function(e){return n.keyDownEvents(e)}),this.focusElementOnClose=this.button,this.preventFocusFirstOnOpen=!1;var s=t.querySelector(".dxDropdown__list-item-link:not(.dxDropdown__list-item-link--disabled)");i&&this.addActiveDropdownItem(s),window.addEventListener("click",function(e){return n.handleWindowClick(e)})},t=[{key:"testBlur",value:function(e){var t,n;null!==(t=e.relatedTarget)&&void 0!==t&&t.classList.contains("dxDropdown__list-item")||null!==(n=e.relatedTarget)&&void 0!==n&&n.classList.contains("dxDropdown__list-item-link")||this.closeDropdown()}},{key:"handleInteraction",value:function(e){this.element.classList.contains("dxDropdown--direction-bottom")&&this.element.classList.remove("dxDropdown--direction-bottom"),this.element.classList.contains("dxDropdown--direction-top")&&this.element.classList.remove("dxDropdown--direction-top");var t=e.getBoundingClientRect(),n=window.innerHeight;t.top<=0?(this.element.classList.contains("dxDropdown--direction-bottom")||this.element.classList.add("dxDropdown--direction-bottom"),this.element.classList.contains("dxDropdown--direction-top")&&this.element.classList.remove("dxDropdown--direction-top")):t.bottom>=n&&(this.element.classList.contains("dxDropdown--direction-top")||this.element.classList.add("dxDropdown--direction-top"),this.element.classList.contains("dxDropdown--direction-bottom")&&this.element.classList.remove("dxDropdown--direction-bottom"))}},{key:"observeDropdownConstraints",value:function(){var e=this;this.useConstraints&&new IntersectionObserver(function(t){return t.forEach(function(){return e.handleInteraction(e.listbox)})},this.intersectionObserverOptions).observe(this.listbox)}},{key:"rebindListBox",value:function(){var e=this;this.listbox=this.element.querySelector(".dxDropdown__list"),this.listbox&&(this.listbox.addEventListener("blur",function(t){return e.testBlur(t)}),this.listbox.addEventListener("keydown",function(t){return e.keyDownEvents(t)}))}},{key:"handleWindowClick",value:function(e){for(var t=this,n=[],r=e.target,i=!1;r.parentNode;)n.unshift(r.parentNode),r=r.parentNode;
1n.forEach(function(e){e.classList&&e===t.element&&(i=!0)}),i||this.closeDropdown(!1)}},{key:"clickEventListeners",value:function(e,t){var n=this.useConstraints;t&&e.preventDefault();var r=e.target;if(r.classList.contains("dxDropdown__button"))this.toggleDropdown();else if(r.classList.contains("dxDropdown__list-item-link")&&!r.classList.contains("dxDropdown__list-item-link--disabled"))this.updateButtonText(e),this.closeDropdown(!0,n);else if(r.classList.contains("dxDropdown__list-item")&&!r.querySelector(".dxDropdown__list-item-link").classList.contains("dxDropdown__list-item-link--disabled")){var i=r.querySelector(".dxDropdown__list-item-link");this.updateButtonText(i),this.closeDropdown(!0,n)}else(r.classList.contains("RulesEngineDropdown__engine-label")||r.classList.contains("RulesEngineDropdown__engine-consumption"))&&(this.updateVehicleButtonText(e),this.closeDropdown())}},{key:"keyDownEvents",value:function(e){var t=e.which||e.keyCode,n=r.D.DOWN,i=r.D.UP,o=r.D.ESC,a=r.D.RETURN,s=r.D.TAB;switch(t){case n:e.preventDefault(),this.nextItem(e);break;case s:e.preventDefault(),e.shiftKey?this.previousItem(e):this.nextItem(e);break;case i:e.preventDefault(),this.previousItem(e);break;case o:e.preventDefault(),this.closeDropdown();break;case a:e.preventDefault(),this.updateButtonText(e),this.closeDropdown()}}},{key:"checkShow",value:function(e){var t=e.which||e.keyCode,n=r.D.UP,i=r.D.DOWN;switch(t){case n:case i:e.preventDefault(),this.openDropdown()}}},{key:"toggleDropdown",value:function(){return this.open?this.closeDropdown():this.openDropdown()}},{key:"openDropdown",value:function(){this.handleInteraction(this.listbox),this.element.classList.add("dxDropdown--active"),this.button.setAttribute("aria-expanded","true"),this.preventFocusFirstOnOpen||this.focusFirstItem(),this.open=!0,this.fireEvent(l.OPEN)}},{key:"closeDropdown",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.element.classList.remove("dxDropdown--active"),n&&(this.element.classList.add("dxDropdown--no-height-transition"),setTimeout(function(){e.element.classList.remove("dxDropdown--no-height-transition")},0)),this.button.setAttribute("aria-expanded","false"),this.open=!1,this.fireEvent(l.CLOSE),t&&this.focusElementOnClose.focus()}},{key:"updateButtonText",value:function(e){var t=e.target?e.target:e;this.button.innerHTML=t.innerHTML,this.fireEvent(l.UPDATE,{target:t,value:this.button.innerHTML}),this.addActiveDropdownItem(t)}},{key:"updateVehicleButtonText",value:function(e){var t=e.target.parentElement.closest(".dxDropdown__list-item-link");this.button.innerHTML=t.innerHTML,this.fireEvent(l.UPDATE,{target:t,value:this.button.innerHTML}),this.addActiveDropdownItem(t)}},{key:"nextItem",value:function(e){var t=this,n=this.listbox.querySelectorAll(".dxDropdown__list-item-link:not(.dxDropdown__list-item-link--disabled)");Array.prototype.forEach.call(n,function(r,i){e.target===r&&(i===n.length-1?t.focusFirstItem():n[i+1].focus())})}},{key:"previousItem",value:function(e){var t=this,n=this.listbox.querySelectorAll(".dxDropdown__list-item-link:not(.dxDropdown__list-item-link--disabled)");Array.prototype.forEach.call(n,function(r,i){e.target===r&&(0===i?t.focusLastItem():n[i-1].focus())})}},{key:"focusFirstItem",value:function(){this.listbox.querySelector(".dxDropdown__list-item-link:not(.dxDropdown__list-item-link--disabled)").focus()}},{key:"focusLastItem",value:function(){var e=this.listbox.querySelectorAll(".dxDropdown__list-item-link:not(.dxDropdown__list-item-link--disabled)");e.length&&e[e.length-1].focus()}},{key:"addActiveDropdownItem",value:function(e){var t=this.element.querySelector(".dxDropdown__list-item-link--active:not(.dxDropdown__list-item-link--disabled)");null!==t&&t.classList.remove("dxDropdown__list-item-link--active"),e.classList.add("dxDropdown__list-item-link--active")}},{key:"fireEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.le)(this.element,e,t)}},{key:"getElement",value:function(){return this.element}},{key:"DxDropdown",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=this[e];return"function"==typeof n?n.bind(this,t)():void 0}}],t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},78743:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(71202);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}var u=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.element=t,this.options=Object.assign({},e._defaults,n),this.tabs=o(this.element.querySelectorAll('[role="tab"]')),this.tablist=this.element.querySelector('[role="tablist"]'),this.tabsWidthTotal=0,this.panelsContainer=document.querySelector('[data-dxtabs-panels-id="'.concat(this.element.getAttribute("data-dxtabs-id"),'"]')),this.panelsContainer?this.panels=o(this.panelsContainer.querySelectorAll('[role="tabpanel"]')):this.panels=[],this.animating=!1,this.init()}return t=e,n=[{key:"init",value:function(){if(!this.tabs.length||this.tabs.length<2){if(this.panels.length){var e=this.panels[this.options.initialTab];this.fireEvent("DxTabs:singletab",{selectedPanel:e}),this.panels[0].style.display="block",this.panels[0].style.opacity=1}this.element.parentNode.removeChild(this.element)}else{this.tabSetup(),this.setInitialState(),this.addEvents();var t=this.tabs[this.options.initialTab];this.fireEvent("DxTabs:init",{selectedTab:t,selectedPanel:this.getPanelFromTab(t)})}}},{key:"fireEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.le)(this.element,e,t)}},{key:"tabSetup",value:function(){var t=this;this.element.classList.add("".concat(e.classes.themePrefix).concat(this.options.theme)),this.tabs.forEac
1h(function(e,n){var r=t.element.getAttribute("data-dxtabs-id"),i="DxTabs_".concat(r,"_tab_").concat(n),o="DxTabs_".concat(r,"_panel_").concat(n),a=t.panels[n];e.setAttribute("tabindex","-1"),e.setAttribute("aria-selected","false"),e.setAttribute("id",i),e.setAttribute("aria-controls",o),a&&(a.setAttribute("data-index",n),a.setAttribute("id",o),a.setAttribute("aria-labelledby",i))}),(0,r.wY)(this.element),this.collapseWhitespaceBetweenTabs()}},{key:"addEvents",value:function(){var e=this;this.tabs.forEach(function(t){return t.addEventListener("click",function(t){return e.tabClickHandler(t)},!1)});var t=(0,r.nF)(function(){return e.setDimensions()},250,this);window.addEventListener("resize",function(){return t(e.element)}),window.addEventListener("load",function(){return e.setDimensions()}),this.setDimensions()}},{key:"collapseWhitespaceBetweenTabs",value:function(){o(this.tablist.childNodes).forEach(function(e){1!==e.nodeType&&e.parentNode.removeChild(e)})}},{key:"unsetTabHeights",value:function(){this.tabs.forEach(function(t){return e.setNewStyle(t,"height","auto")})}}
1,{key:"unsetTabWidths",value:function(){this.tabs.forEach(function(t){return e.setNewStyle(t,"width","auto")})}},{key:"setDimensions",value:function(){this.setTabSizes(),this.setMaskWidth(),this.overflowCheck(),this.fireEvent("DxTabs:resized")}},{key:"overflowCheck",value:function(){var t=window.getComputedStyle(this.tablist),n=parseFloat(t.getPropertyValue("padding-left"))+parseFloat(t.getPropertyValue("padding-right"));document.documentElement.clientWidth<=this.tabsWidthTotal+n?this.tablist.classList.add(e.classes.tabListOverflow):this.tablist.classList.remove(e.classes.tabListOverflow)}},{key:"ensureNextTabVisible",value:function(){var t,n=this,r=parseFloat(window.getComputedStyle(this.tablist).getPropertyValue("width")),i=[],o=[],a=0,s=0;if(this.tabs.forEach(function(e){e.style.removeProperty("max-width"),e.style.removeProperty("padding-left"),e.style.removeProperty("padding-right");var t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("width")),l=parseFloat(t.getPropertyValue("max-width")),u=parseFloat(t.getPropertyValue("padding-left")),c=parseFloat(t.getPropertyValue("padding-right")),d=t.getPropertyValue("text-align"),f=s+n,p=f-n/3*2<r;a+=n,p&&(s=f,o.push(e)),i.push({tabWidth:n,tabMaxWidth:l,tabPadLeft:u,tabPadRight:c,tabVisible:p,textAlign:d})}),this.tabsWidthTotal=a,o.length!==this.tabs.length){var l=o.length,u=parseInt((r-s+(null===(t=i[l-1])||void 0===t?void 0:t.tabWidth))/(l+.5)/2,10);i.forEach(function(t,r){var i=n.tabs[r],o=t.tabWidth+2*u,a="center"===t.textAlign?t.tabPadLeft+u:"left"===t.textAlign?t.tabPadLeft:t.tabPadLeft+2*u,s="center"===t.textAlign?t.tabPadRight+u:function(e){return"left"===e?t.tabPadRight+2*u:t.tabPadRight}(t.textAlign);o>t.tabMaxWidth&&e.setNewStyle(i,"maxWidth","".concat(o,"px")),e.setNewStyle(i,"paddingLeft","".concat(a,"px")),e.setNewStyle(i,"paddingRight","".concat(s,"px"))})}}},{key:"setTabSizes",value:function(){this.unsetTabHeights(),this.ensureNextTabVisible();var t=this.tabs.map(function(e){return e.getBoundingClientRect().height}).reduce(function(e,t){return e>t?e:t});
1this.tabs.forEach(function(n){return e.setNewStyle(n,"height","".concat(t,"px"))}),this.setMaskWidth()}},{key:"setMaskWidth",value:function(){if("default"===this.options.theme){var e=this.tabs.map(function(e){return e.getBoundingClientRect().width}).reduce(function(e,t){return e+t});this.mask.style.width="".concat(parseInt(e,10),"px")}}},{key:"tabClickHandler",value:function(e){e.preventDefault(),this.switchTabs(e.currentTarget)}},{key:"setInitialState",value:function(){var t=this.tabs[this.options.initialTab];this.tabs.forEach(function(e,t){return e.setAttribute("data-tab-index",t)}),e.setActiveTab(t),this.setActiveTabPanel(t),"default"===this.options.theme&&(this.mask=document.createElement("span"),this.mask.classList.add(e.classes.mask),this.tablist.appendChild(this.mask)),this.tablist.classList.add(e.classes.tabListVisible)}},{key:"switchTabs",value:function(t){if(!this.animating&&t&&!t.classList.contains(e.classes.tabActive)){var n=this.getActiveTab()||null;this.unsetActiveTabs(),e.setActiveTab(t),this.emitTabChangedEvent(t),this.switchTabPanels(n,t)}}},{key:"switchTabPanels",value:function(t,n){var r=this;this.animating=!0;var i=this.getPanelFromTab(t);i?e.doAnimation(i,this.options.fadeOutKeyframes,this.options.timingFadeOut,function(){r.fireEvent("DxTabs:fadeout",{previousTab:t,previousPanel:i}),window.requestAnimationFrame(function(){i.style.display="none",r.setActiveTabPanel(n)})}):this.setActiveTabPanel(n)}},{key:"setActiveTabPanel",value:function(t){var n=this;this.animating=!0;var r=this.getPanelFromTab(t);if(r){r.style.opacity=0,r.style.display="block",this.element.parentElement.querySelectorAll(" :scope > .DxTabs__panels > .cmp-tabs__tabpanel").forEach(function(e){return e.classList.remove("cmp-tabs__tabpanel--active")});var i=function(){n.animating=!1,n.fireEvent("DxTabs:fadein")};window.requestAnimationFrame(function(){n.fireEvent("DxTabs:beforefadein",{selectedTab:t,selectedPanel:r}),e.doAnimation(r,n.options.fadeInKeyframes,n.options.timingFadeIn,i)})}}},{key:"getPanelFromTab",value:function(e){return this.panelsContainer?this.panelsContainer.querySelector("#".concat(e.getAttribute("aria-controls"))):""}}
1,{key:"unsetActiveTabs",value:function(){this.tabs.forEach(function(t){t.setAttribute("aria-selected","false"),t.classList.remove(e.classes.tabActive)})}},{key:"getElement",value:function(){return this.element}},{key:"getTabs",value:function(){return this.tabs}},{key:"getActiveTab",value:function(){return this.tablist.querySelector(".".concat(e.classes.tabActive))}},{key:"getPanels",value:function(){return this.panels}},{key:"DxTabs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=this[e];return"function"==typeof n?n.bind(this,t)():void 0}},{key:"emitTabChangedEvent",value:function(e){var t=new CustomEvent("tabChanged",{detail:{newTab:e}});this.element.dispatchEvent(t)}}],i=[{key:"setNewStyle",value:function(e,t,n){e.style[t]=n}},{key:"setActiveTab",value:function(t){var n=t;n.setAttribute("aria-selected","true"),n.setAttribute("tabindex","0"),n.classList.add(e.classes.tabActive)}},{key:"doAnimation",value:function(e,t,n,r){var i=e.animate(t,n);i.pause(),i.onfinish=function(){return r()},i.play()}}],n&&s(t.prototype,n),i&&s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,i}();u._defaults={initialTab:0,theme:"default",fadeOutKeyframes:[{opacity:1},{opacity:0}],fadeInKeyframes:[{opacity:0},{opacity:1}],timingFadeIn:{duration:400,easing:"ease-in",fill:"forwards"},timingFadeOut:{duration:300,easing:"ease-out",fill:"forwards"}},u.classes={tabList:"DxTabs__tablist",tabListOverflow:"DxTabs__tablist--overflow",tabListVisible:"DxTabs__tablist--visible",tab:"DxTabs__tab",tabActive:"DxTabs__tab--active",panels:"DxTabs__panels",panel:"DxTabs__panel",mask:"DxTabs__mask",themePrefix:"DxTabs__theme--"}},8842:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.r(t),n.d(t,{default:function(){return a}});var a=function(){return e=function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=t.type||"info",this.label=t.label,this.icon=t.iconClass,this.dismissCallback=t.dismissCallback,this.dismissed=!1,this.dismissLabel=null!==(n=t.dismissLabel)&&void 0!==n?n:"Dismiss",this.size=t.size,this.notificationElement=null},t=[{key:"dismissNotification",value:function(){this.dismissed=!0,"function"==typeof this.dismissCallback&&this.dismissCallback()}},{key:"removeNotification",value:function(){var e;null===(e=this.notificationElement)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(this.notificationElement)}},{key:"render",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.dismissed)return null;var r=document.createElement("div");if(r.classList.add("Notification","Notification--".concat(this.type),"body-copy"),r.setAttribute("role","status"),this.icon){var i=document.createElement("span");i.classList.add("Notification__icon",this.icon),r.appendChild(i)}var o=document.createElement("span");if(o.classList.add("Notification__label-wrap"),r.appendChild(o),this.label){var a=document.createElement("span");a.classList.add("Notification__label"),a.innerHTML=this.label,o.appendChild(a)}"large"===this.size&&r.classList.add("Notification--large");var s=document.createElement("button");s.classList.add("Notification__dismiss"),s.textContent=this.dismissLabel,s.addEventListener("click",function(e){e.stopPropagation(),e.preventDefault(),t.dismissNotification(),r.classList.add("Notification--hidden")}),s.addEventListener("keydown",function(e){"Enter"===e.key&&(t.dismissNotification(),r.classList.add("Notification--hidden"))}
1),o.appendChild(s),this.notificationElement=r,n?e.prepend(r):e.appendChild(r)}}],t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},54119:function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{CG:function(){return s},LV:function(){return o},WH:function(){return l},nc:function(){return u},oA:function(){return a}});var o=function(e,t){e.parentNode.insertBefore(t,e),t.appendChild(e)},a=function(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)},s=function(e,t){var n,i=(n=e)instanceof NodeList?r(n):[n];
1i.length&&(i[0].parentNode.insertBefore(t,i[0]),i.forEach(function(e){return t.appendChild(e)}))},l=function(e,t){return e.parentNode.insertBefore(t,e.nextSibling)},u=function(e,t){return e.parentNode.insertBefore(t,e)}}}]);
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.