(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{786:function(t,e,r){t.exports={}},917:function(t,e,r){"use strict";r(786)},970:function(t,e,r){"use strict";r.r(e);r(23),r(911),r(376),r(56),r(913);var o=r(931),n=r(932),l=r(933),c=r(934),d=r(935),f=r(648),h={components:{LMap:o.a,LTileLayer:n.a,LMarker:l.a,LPopup:c.a,LControlAttribution:d.a},data:function(t){var e=t.$store;return{url:e.state.settings.tilelayer_provider||"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:e.state.settings.tilelayer_provider_attribution||'<a target="_blank" href="http://osm.org/copyright">OpenStreetMap</a> contributors'}},computed:{center:function(){return this.mapCenter.length?this.mapCenter:(this.place.latitude=isNaN(this.place.latitude)?0:this.place.latitude,this.place.longitude=isNaN(this.place.longitude)?0:this.place.longitude,[this.place.latitude,this.place.longitude])},marker:function(){return{address:this.place.address,coordinates:{lat:this.place.latitude,lon:this.place.longitude}}}},props:{place:{type:Object,default:function(){return{latitude:0,longitude:0}}},showMarker:{type:Boolean,default:!0},mapCenter:{type:Array,default:function(){return[]}},zoom:{type:Number,default:function(){return 16}},draggable:{type:Boolean,default:!1},LMapStyles:{type:Object,default:function(){return{}}}},mounted:function(){var t=this;delete f.Icon.Default.prototype._getIconUrl,f.Icon.Default.mergeOptions({iconRetinaUrl:r(914),iconUrl:r(915),shadowUrl:r(916)}),setTimeout((function(){t.$refs.leafletMap&&t.$refs.leafletMap.mapObject&&t.$refs.leafletMap.mapObject.invalidateSize()}),200)},methods:{updateCoords:function(t){this.place.latitude=Number.parseFloat(t.lat).toFixed(7),this.place.longitude=Number.parseFloat(t.lng).toFixed(7)}}},m=(r(917),r(26)),component=Object(m.a)(h,(function(){var t=this,e=t._self._c;return e("client-only",{attrs:{placeholder:"Loading..."}},[e("LMap",{ref:"leafletMap",style:t.LMapStyles,attrs:{id:"leaflet-map",zoom:t.zoom,options:{attributionControl:!1},center:t.center}},[e("LControlAttribution",{attrs:{position:"bottomright",prefix:""}}),e("LTileLayer",{attrs:{url:t.url,attribution:t.attribution},on:{tileload:function(e){return t.$emit("tileload")},tileerror:function(e){return t.$emit("tileerror")}}}),t.showMarker?e("LMarker",{attrs:{"lat-lng":t.marker.coordinates,draggable:t.draggable},on:{"update:lat-lng":t.updateCoords}}):t._e()],1)],1)}),[],!1,null,null,null);e.default=component.exports}}]);