import{v as d,u as c,y as f,i as m}from"./qMkQdF1p.js";import{d as g,r as _,o as l,e as r,z as s,w as o,b as t,F as y,g as h,c as v,a as n,t as u}from"./BvNnk7SS.js";const z={class:"relative"},C=g({__name:"ProseMap.client",props:{markers:{default:()=>[]},lat:{default:46.227638},lng:{default:2.213749},zoom:{default:6}},setup(k){const i=_(null);return(e,B)=>(l(),r("div",z,[s(t(m),{ref_key:"map",ref:i,class:"relative w-full min-h-80",zoom:+e.zoom,center:[+e.lat,+e.lng]},{default:o(()=>[s(t(d),{url:"http://{s}.tile.osm.org/{z}/{x}/{y}.png","layer-type":"base",name:"OpenStreetMap"}),(l(!0),r(y,null,h(e.markers,(a,p)=>(l(),v(t(c),{key:p,"lat-lng":[+a.lat,+a.lng],draggable:""},{default:o(()=>[s(t(f),null,{default:o(()=>[n("h2",null,u(a.title),1),n("div",null,u(a.description),1)]),_:2},1024)]),_:2},1032,["lat-lng"]))),128))]),_:1},8,["zoom","center"])]))}});export{C as default};
