(window.webpackJsonpLIS=window.webpackJsonpLIS||[]).push([[6],{545:function(t,n,r){"use strict";r.r(n),r.d(n,"StandaloneMap",(function(){return s}));var e=r(391),o=r(402);function i(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=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))){var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}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 e,o,i=!0,u=!1;return{s:function(){e=t[Symbol.iterator]()},n:function(){var t=e.next();return i=t.done,t},e:function(t){u=!0,o=t},f:function(){try{i||null==e.return||e.return()}finally{if(u)throw o}}}}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(){return this.settings.markers.map((function(t){var n=new e.a;if(n.coordinates={latitude:parseFloat(t.latitude),longitude:parseFloat(t.longitude)},t.tour&&(n.tour={polygon:JSON.parse(t.tour)}),t.iconUrl){var r=t.iconWidth||35,o=t.iconHeight||50;n.style={width:r,height:o,offsetX:r/2,offsetY:o,iconUrl:t.iconUrl}}return n}))}}])&&c(n.prototype,r),a&&c(n,a),t}()}}]);