1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[720],{1780:(e,t,r)=>{r.d(t,{p:()=>s});var n=r(38440),o=r(80514),l=r(70309),a=r(21734),i=r(55027);let s=(0,n.Lt)(function({center:e,children:t,...r},n){let a=new i.CircleMarker(e,r);return(0,o.Q)(a,(0,l.W4)(n,{overlayContainer:a}))},a.s)},21734:(e,t,r)=>{r.d(t,{s:()=>n});function n(e,t,r){t.center!==r.center&&e.setLatLng(t.center),null!=t.radius&&t.radius!==r.radius&&e.setRadius(t.radius)}},30720:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p});var n=r(95155),o=r(12115),l=r(17054),a=r(4755),i=r(1780),s=r(74136);r(35603);var u=r(54794),d=r(91207);function c(e){let{onBoundsChange:t}=e,r=(0,l.Po)({moveend:()=>t((0,d.Zl)(r.getBounds().getWest(),r.getBounds().getSouth(),r.getBounds().getEast(),r.getBounds().getNorth())),zoomend:()=>t((0,d.Zl)(r.getBounds().getWest(),r.getBounds().getSouth(),r.getBounds().getEast(),r.getBounds().getNorth()))});return(0,o.useEffect)(()=>{r.whenReady(()=>{let e=r.getBounds();t((0,d.Zl)(e.getWest(),e.getSouth(),e.getEast(),e.getNorth()))})},[r,t]),null}function p(e){let{plots:t,selectedId:r,onSelect:l,onBoundsChange:p}=e,f=(0,o.useMemo)(()=>t.filter(d.No),[t]);return(0,n.jsx)("div",{className:"isolate overflow-hidden rounded-lg border","aria-label":"Map of loaded Vigiar monitoring points",children:(0,n.jsxs)(a.W,{center:[39.6,-8],zoom:6,scrollWheelZoom:!1,className:"h-72 w-full sm:h-96",children:[(0,n.jsx)(u.K,{}),(0,n.jsx)(c,{onBoundsChange:p}),f.map(e=>{var t;return(0,n.jsx)(i.p,{center:[e.lat,e.lon],radius:e.id===r?8:5,pathOptions:{color:e.id===r?"#9a3412":"#1d4ed8",weight:2,fillColor:e.is_canary?"#f59e0b":"#3b82f6",fillOpacity:.75},eventHandlers:{click:()=>l(e.id)},children:(0,n.jsx)(s.z,{children:(0,n.jsxs)("div",{className:"space-y-1 text-xs",children:[(0,n.jsxs)("p",{className:"font-semibold",children:[e.label," \xb7 #",e.id]}),(0,n.jsx)("p",{children:null!=(t=e.municipality_name)?t:"Municipality unknown"}),(0,n.jsxs)("p",{children:[e.lat.toFixed(5),", ",e.lon.toFixed(5)]}),(0,n.jsx)("p",{children:"Registered monitoring point; parcel footprint not shown."}),(0,n.jsx)("button",{type:"button",onClick:()=>l(e.id),className:"font-medium text-blue-700 underline",children:"Open audit"})]})})},e.id)})]})})}},54794:(e,t,r)=>{r.d(t,{K:()=>d});var n=r(12115),o=r(55027),l=r.n(o),a=r(17054),i=r(36794);r(4209);let s="admin_level",u="https://tiles.openfreemap.org/styles/positron";function d(){let e=(0,a.ko)();return(0,n.useEffect)(()=>{let t=!1,r=!1,n=null,o=null,a=null,d=()=>{t||r||(r=!0,a&&(clearTimeout(a),a=null),n&&(e.removeLayer(n),n=null),(o=l().tileLayer("https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}",{attribution:'Esri, HERE, Garmin, © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'})).addTo(e))};return(async()=>{let r=u;try{let e=await fetch(u);e.ok&&(r=function(e){if(!e||!Array.isArray(e.layers))return e;for(let t of e.layers)t&&void 0!==t.filter&&(t.filter=function e(t){if(!Array.isArray(t))return t;if(Array.isArray(t)&&2===t.length&&"get"===t[0]&&t[1]===s)return["coalesce",["get",s],-1];let r=!1,n=t.map(t=>{let n=e(t);return n!==t&&(r=!0),n});return r?n:t}(t.filter));return e}(await e.json()))}catch(e){}if(!t){var o=r;try{(n=(0,i.yz)({style:o,interactive:!1})).addTo(e);let t=n.getContainer();t&&(t.style.pointerEvents="none");let r=n.getMaplibreMap();if(r){let e=e=>{e.sourceId||d()};r.on("error",e),r.once("load",()=>{r.off("error",e),a&&(clearTimeout(a),a=null)}),a=setTimeout(()=>{if(a=null,r.isStyleLoaded())return void r.off("error",e);d()},15e3)}else d()}catch(e){d()}}})(),()=>{t=!0,a&&clearTimeout(a),n&&e.hasLayer(n)&&e.removeLayer(n),o&&e.hasLayer(o)&&e.removeLayer(o)}},[e]),null}},74136:(e,t,r)=>{r.d(t,{z:()=>i});var n=r(38440),o=r(80514),l=r(55027),a=r(12115);let i=(0,n.wk)(function(e,t){let r=new l.Popup(e,t.overlayContainer);return(0,o.Q)(r,t)},function(e,t,{position:r},n){(0,a.useEffect)(function(){let{instance:o}=e;function l(e){e.popup===o&&(o.update(),n(!0))}function a(e){e.popup===o&&n(!1)}return t.map.on({popupopen:l,popupclose:a}),null==t.overlayContainer?(null!=r&&o.setLatLng(r),o.openOn(t.map)):t.overlayContainer.bindPopup(o),function(){t.map.off({popupopen:l,popupclose:a}),t.overlayContainer?.unbindPopup(),t.map.removeLayer(o)}},[e,t,n,r])})}}]);
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.