import{L as e,l as m,i as A,b as h,d as w}from"./leaflet-CQ7iMqgB.js";const H=t=>{if(t.getAttribute("data-already")==="true")return;t.setAttribute("data-already","true"),e.Map.addInitHook("addHandler","gestureHandling",m.GestureHandling);const d=!!t.getAttribute("data-multiple"),p=t.getAttribute("data-lat"),g=t.getAttribute("data-lng"),c=t.getAttribute("data-zoom"),s=t.getAttribute("data-msg"),n=t.getAttribute("data-markers"),u=t.getAttribute("data-messages"),a=e.map(t,{gestureHandling:!0}).setView([p,g],c);if(delete e.Icon.Default.prototype._getIconUrl,e.Icon.Default.mergeOptions({iconUrl:w,iconRetinaUrl:h,shadowUrl:A}),e.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(a),d&&n){const r=n.split("|"),l=u.split("[[:split:]]");r.forEach((b,i)=>{const o=b.split(",");if(o.length===2){const f=e.marker([o[0].trim(),o[1].trim()],{draggable:!1}).addTo(a);l[i]&&f.bindPopup(l[i])}})}else{const r=e.marker(a.getCenter(),{draggable:!1}).addTo(a);s&&r.bindPopup(s)}};export{H as default};
