(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{688:function(t,e,r){t.exports={}},820:function(t,e,r){"use strict";r(688)},872:function(t,e,r){"use strict";r.r(e);r(815),r(297),r(816);var l=r(833),o=r(834),n=r(835),d=r(836),c=r(837),h=r(553),f={components:{LMap:l.a,LTileLayer:o.a,LMarker:n.a,LPopup:d.a,LControlAttribution:c.a},data(t){var{$store:e}=t;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(){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(){return{address:this.place.address,coordinates:{lat:this.place.latitude,lon:this.place.longitude}}}},props:{place:{type:Object,default:()=>({latitude:0,longitude:0})},showMarker:{type:Boolean,default:!0},mapCenter:{type:Array,default:()=>[]},zoom:{type:Number,default:()=>16},draggable:{type:Boolean,default:!1},LMapStyles:{type:Object,default:()=>({})}},mounted(){delete h.Icon.Default.prototype._getIconUrl,h.Icon.Default.mergeOptions({iconRetinaUrl:r(817),iconUrl:r(818),shadowUrl:r(819)}),setTimeout((()=>{this.$refs.leafletMap&&this.$refs.leafletMap.mapObject&&this.$refs.leafletMap.mapObject.invalidateSize()}),200)},methods:{updateCoords(t){this.place.latitude=Number.parseFloat(t.lat).toFixed(7),this.place.longitude=Number.parseFloat(t.lng).toFixed(7)}}},m=(r(820),r(13)),component=Object(m.a)(f,(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}}]);