1import{v as I,X as O,s as q,y as A,u as T,i as V}from"./hRFt3Tuk.js";import P from"./BlUlAP2D.js";import{B as m}from"./Cwm7gl9R.js";import{e as R,o as p,c as f,b as n,w as r,l as a,z as N,a as l,t as u,d as z,k as S,F as D,r as F,L as X,q as g}from"./D8644rYh.js";import{_ as E}from"./DlAUqK2U.js";const H={class:"neighborhood-map-container"},W={class:"poi-pop-name"},Z={class:"poi-pop-cat"},G={key:0,class:"approx-note"},J=R({__name:"NeighborhoodMap",props:{latitude:{type:Number,required:!0},longitude:{type:Number,required:!0},pointsOfInterest:{type:Array,default:()=>[]},zoom:{type:Number,default:15},programName:{type:String,required:!0},precision:{type:String,default:"exact"},radiusM:{type:Number,default:null}},setup(e){const s=e,c=g(()=>s.precision==="approx"||s.precision==="city"),y=g(()=>s.radiusM||(s.precision==="city"?2e3:1e3)),k=g(()=>{if(!c.value)return s.zoom;const t=y.value;return t<=500?14:t<=1200?13:t<=2500?12:11}),L={Transport:{color:m.primary,emoji:"ð"},Bus:{color:"#2563eb",emoji:"ð"},Ãcole:{color:"#f59e0b",emoji:"ð"},Commerce:{color:"#16a34a",emoji:"ð"}};function d(t){return L[t]??{color:"#64748b",emoji:"ð"}}const x={display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"9999px",border:"2px solid #fff",lineHeight:"1",boxShadow:"0 2px 6px rgba(0,0,0,.35)"};function M(t){return{...x,width:"30px",height:"30px",backgroundColor:t,fontSize:"15px"}}const j={...x,width:"42px",height:"42px",backgroundColor:m.primary,border:"3px solid #fff",fontSize:"20px"};return(t,i)=>{const C=I,v=O,b=q,_=A,h=T,w=V,B=P;return p(),f("div",H,[n(w,{ref:"map",zoom:a(k),center:[e.latitude,e.longitude],class:"map-container w-full !h-[500px] z-20","use-global-leaflet":!1},{default:r(()=>[n(C,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png","layer-type":"base",name:"OpenStreetMap",attribution:"© OpenStreetMap"}),n(v,{"lat-lng":[e.latitude,e.longitude],radius:a(c)?a(y):160,color:a(m).primary,"fill-color":a(m).primary,"fill-opacity":a(c)?.12:.08,weight:1.5},null,8,["lat-lng","radius","color","fill-color","fill-opacity"]),a(c)?S("",!0):(p(),N(h,{key:0,"lat-lng":[e.latitude,e.longitude],"z-index-offset":1e3},{default:r(()=>[n(b,{"icon-size":[42,42],"icon-anchor":[21,21],"class-name":"poi-leaflet-icon"},{default:r(()=>[l("span",{style:j},"ð¢")]),_:1}),n(_,null,{default:r(()=>[l("strong",null,u(e.programName),1),i[0]||(i[0]=l("br",null,null,-1)),i[1]||(i[1]=z("Bien WiiM ",-1))]),_:1})]),_:1},8,["lat-lng"])),(p(!0),f(D,null,F(e.pointsOfInterest,o=>(p(),N(h,{key:o.id,"lat-lng":[o.latitude,o.longitude]},{default:r(()=>[n(b,{"icon-size":[30,30],"icon-anchor":[15,15],"class-name":"poi-leaflet-icon"},{default:r(()=>[l("span",{style:X(M(d(o.category).color))},u(d(o.category).emoji),5)]),_:2},1024),n(_,null,{default:r(()=>[l("p",W,u(o.name),1),l("p",Z,u(d(o.category).emoji)+" "+u(o.category),1)]),_:2},1024)]),_:2},1032,["lat-lng"]))),128))]),_:1},8,["zoom","center"]),a(c)?(p(),f("p",G,[n(B,{name:"solar:map-point-linear",class:"inline h-3.5 w-3.5 align-[-2px]"}),i[2]||(i[2]=z(" Localisation approximative : le bien se situe dans ce périmètre. ",-1))])):S("",!0)])}}}),ee=Object.assign(E(J,[["__scopeId","data-v-416b2eb3"]]),{__name:"NeighborhoodMap"});export{ee as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.