(window.webpackJsonpLIS=window.webpackJsonpLIS||[]).push([[6],{571:function(t,n,r){"use strict";r.r(n),r.d(n,"StandaloneMap",(function(){return s}));var e=r(431),o=r(434);function i(t,n){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,n){if(!t)return;if("string"==typeof t)return a(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,n)}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var e=0,o=function(){};return{s:o,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function a(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}function u(t,n,r,e,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?n(c):Promise.resolve(c).then(e,o)}function c(t,n){for(var r=0;r<n.length;r++){var e=n[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}var s=function(){function t(n,r){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),this.node=n,this.settings=r,this.initialize()}var n,r,a,s,f;return n=t,(r=[{key:"initialize",value:(s=regeneratorRuntime.mark((function t(){var n,r,e,a,u,c,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(o.a)(this.settings.mapType,this.node,this.settings.map);case 2:return n=t.sent,r=this.getMarkers(),t.next=6,n.render(r);case 6:if(e=r.filter((function(t){return!!t.tour})),a=1===e.length&&n.drawTourOntoMap,n.drawTourOntoMap){u=i(e);try{for(u.s();!(c=u.n()).done;)s=c.value,n.drawTourOntoMap(s,a)}catch(t){u.e(t)}finally{u.f()}}a||n.centerMapOnMarkers(r);case 10:case"end":return t.stop()}}),t,this)})),f=function(){var t=this,n=arguments;return new Promise((function(r,e){var o=s.apply(t,n);function i(t){u(o,r,e,i,a,"next",t)}function a(t){u(o,r,e,i,a,"throw",t)}i(void 0)}))},function(){return f.apply(this,arguments)})},{key:"getMarkers",value:function(){var t=Math.random().toString(26).substr(2);return this.settings.markers.map((function(n,r){var o=new e.a(n.id||"standalone-".concat(t,"-").concat(r));if(o.coordinates={latitude:parseFloat(n.latitude),longitude:parseFloat(n.longitude)},n.tour&&(o.tour={polygon:JSON.parse(n.tour)}),n.iconUrl){var i=n.iconWidth||35,a=n.iconHeight||50;o.style={width:i,height:a,offsetX:i/2,offsetY:a,iconUrl:n.iconUrl}}return o}))}}])&&c(n.prototype,r),a&&c(n,a),Object.defineProperty(n,"prototype",{writable:!1}),t}()}}]);