PageSourceSearch

https://junindelosandes.gob.ar/_nuxt/DICs5idl.js

js junindelosandes.gob.ar collected 2026-10-09 05:16:47 UTC 2,835 bytes, 1 lines download raw bytes

1import{r as e}from"./hePW80VL.js";import{$ as t,En as n,Fr as r,Gt as i,Pt as a,Un as o,Vt as s,X as c,Y as l,Z as u,Zn as d,ct as f,jr as p,ot as m,qt as h,sr as g}from"./NPQnAyPb.js";import{t as _}from"./AMmFG1r8.js";import{i as v}from"./D-FBCxmS.js";import{t as y}from"./DDakShEb.js";var b=e(y(),1),x=Object.assign(f({__name:`BardMapLocations`,props:{markers:{},zoom:{},modalTrigger:{},height:{},maxWidth:{}},setup(e){let f=e,y=d(null),x=d(!1),S=null,C=l(()=>!!f.modalTrigger?.trim()),w=l(()=>{if(!f.markers?.length)return``;if(f.markers.length===1){let{lat:e,lng:t,label:n}=f.markers[0];return`https://www.google.com/maps/search/?api=1&query=${e},${t}&query_place_id=${encodeURIComponent(n)}`}let{lat:e,lng:t}=f.markers[0];return`https://www.google.com/maps/search/?api=1&query=${e},${t}`}),T=b.default.icon({iconUrl:`https://unpkg.com/[email protected]/dist/images/marker-icon.png`,iconRetinaUrl:`https://unpkg.com/[email protected]/dist/images/marker-icon-2x.png`,shadowUrl:`https://unpkg.com/[email protected]/dist/images/marker-shadow.png`,iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]});function E(){if(!y.value||!f.markers?.length)return;S&&=(S.remove(),null);let e=f.markers.map(e=>e.lat),t=f.markers.map(e=>e.lng),n=e.reduce((e,t)=>e+t,0)/e.length,r=t.reduce((e,t)=>e+t,0)/t.length;S=b.default.map(y.value).setView([n,r],f.zoom??15),b.default.tileLayer(`https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png`,{attribution:`&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>`}).addTo(S);for(let e of f.markers)b.default.marker([e.lat,e.lng],{icon:T}).addTo(S).bindPopup(e.label);if(f.markers.length>1){let e=b.default.latLngBounds(f.markers.map(e=>[e.lat,e.lng]));S.fitBounds(e,{padding:[50,50]})}}function D(){a(()=>E())}function O(){S&&=(S.remove(),null)}return s(()=>{C.value||E()}),i(()=>{S&&=(S.remove(),null)}),(i,a)=>{let s=_,l=v;return g(C)?(h(),u(l,{key:1,open:g(x),"onUpdate:open":a[1]||=e=>o(x)?x.value=e:null,title:`Ubicación`,ui:{content:`w-[calc(100vw-2rem)] max-w-7xl sm:w-[calc(100vw-4rem)]`},"onAfter:enter":D,"onAfter:leave":O},{body:n(()=>[c(`div`,{ref_key:`mapContainer`,ref:y,class:p([`w-full rounded-lg`,e.height??`h-[60vh]`])},null,2)]),footer:n(()=>[m(s,{to:g(w),target:`_blank`,icon:`i-lucide-map-pin`,label:`Abrir en Google Maps`,color:`neutral`,variant:`subtle`},null,8,[`to`])]),default:n(()=>[c(`button`,{type:`button`,class:`inline cursor-pointer text-lightblue-600 transition-colors hover:text-lightblue-800 hover:decoration-lightblue-500`,onClick:a[0]||=e=>x.value=!0},r(e.modalTrigger),1)]),_:1},8,[`open`])):(h(),t(`div`,{key:0,class:p([`mx-auto my-8 w-full overflow-hidden rounded-lg`,e.maxWidth??`max-w-3xl`])},[c(`div`,{ref_key:`mapContainer`,ref:y,class:p([`w-full`,e.height??`h-80`])},null,2)],2))}}}),{__name:`BardMapLocations`});export{x as t};

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.