"use strict";var KTModalSelectLocation=function(){var t,o,e="",n=!1;return{init:function(){(o=document.querySelector("#kt_modal_select_location"))&&(t=document.querySelector("#kt_modal_select_location_target"),document.querySelector("#kt_modal_select_location_button").addEventListener("click",(function(){t&&(t.value?t.value=e:t.innerHTML=e)})),o.addEventListener("shown.bs.modal",(function(){n||(!function(){if(L){var t,o=L.map("kt_modal_select_location_map",{center:[40.725,-73.985],zoom:30});L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© OpenStreetMap contributors'}).addTo(o),t=void 0===L.esri.Geocoding?L.esri.geocodeService():L.esri.Geocoding.geocodeService();var n=L.layerGroup().addTo(o),i=L.divIcon({html:'',bgPos:[10,10],iconAnchor:[20,37],popupAnchor:[0,-37],className:"leaflet-marker"});o.on("click",(function(o){t.reverse().latlng(o.latlng).run((function(t,o){t||(n.clearLayers(),e=o.address.Match_addr,L.marker(o.latlng,{icon:i}).addTo(n).bindPopup(o.address.Match_addr,{closeButton:!1}).openPopup(),Swal.fire({html:'