(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67648,e=>{"use strict";var t=e.i(43476),i=e.i(10007),l=e.i(23177),r=e.i(54346),s=e.i(36730),n=e.i(71645);function o({center:e}){let t=(0,s.useMap)();return(0,n.useEffect)(()=>{e&&t.setView(e,15,{animate:!0})},[e,t]),null}e.s(["default",0,function({geojson:e,stats:s,seccionEnfocada:c}){let[a,u]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{u(!0)},[]),a)?(0,t.jsx)("div",{className:"h-full w-full relative bg-white",children:(0,t.jsxs)(i.MapContainer,{center:[18.845,-99.184],zoom:13,scrollWheelZoom:!0,className:"h-full w-full",style:{height:"100%",width:"100%"},zoomControl:!1,children:[(0,t.jsx)(o,{center:null}),(0,t.jsx)(l.TileLayer,{url:"https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png",attribution:"© CARTO"}),e&&(0,t.jsx)(r.GeoJSON,{data:e,style:e=>{let t=e.properties.seccion,i=s.find(e=>String(e.section)===String(t)),l=i?i.count:0,r="#cbd5e1";l>0&&l<=20?r="#ef4444":l>20&&l<=50?r="#f97316":l>50&&(r="#22c55e");let n=String(t)===String(c);return{fillColor:r,weight:n?3:1,opacity:1,color:n?"#000":"#fff",fillOpacity:n?.8:.5}},onEachFeature:(e,t)=>{let i=e.properties.seccion,l=s.find(e=>String(e.section)===String(i));t.bindPopup(`
                <div style="color: black;">
                  <b>Secci\xf3n ${i}</b><br/>
                  ${l?l.count:0} Registros
                </div>
              `)}})]})}):(0,t.jsx)("div",{className:"h-full w-full bg-gray-100 animate-pulse"})}])},27676,e=>{e.n(e.i(67648))}]);