PageSourceSearch

https://cm-mirandadocorvo.pt/_next/static/chunks/9317.8bcfb0c493fe78ed.js

js cm-mirandadocorvo.pt collected 2026-10-02 12:58:46 UTC 2,400 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9317],{4755:(e,t,n)=>{n.d(t,{W:()=>u});var l=n(20976),r=n(55027),o=n(12115);let u=(0,o.forwardRef)(function({bounds:e,boundsOptions:t,center:n,children:u,className:a,id:i,placeholder:c,style:s,whenReady:d,zoom:f,...m},g){let[h]=(0,o.useState)({className:a,id:i,style:s}),[p,v]=(0,o.useState)(null),b=(0,o.useRef)(void 0);(0,o.useImperativeHandle)(g,()=>p?.map??null,[p]);let w=(0,o.useCallback)(o=>{if(null!==o&&!b.current){let u=new r.Map(o,m);b.current=u,null!=n&&null!=f?u.setView(n,f):null!=e&&u.fitBounds(e,t),null!=d&&u.whenReady(d),v((0,l.fB)(u))}},[]);(0,o.useEffect)(()=>()=>{p?.map.remove()},[p]);let E=p?o.createElement(l.dk,{value:p},u):c??null;return o.createElement("div",{...h,ref:w},E)})},39317:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var l=n(95155),r=n(55027),o=n.n(r),u=n(12115),a=n(4755),i=n(41817);function c(e){let{points:t,routeFile:r,children:c,setKml:s}=e,d=(0,u.useRef)(null),f=(0,u.useRef)(null),[m,g]=(0,u.useState)(!1),h=n(65203),p=n(11426),v=t&&t.length>0?t.filter(e=>e.geographicLocation).map(e=>{let[t,n]=e.geographicLocation.split(",").map(Number);return[t,n]}):[[39.0145,-9.1655],[39.0285,-9.1465]],b=(null==r?void 0:r.startsWith("http"))?r:i.$w+r,w=async()=>{fetch(b).then(e=>e.text()).then(e=>{let t=new DOMParser().parseFromString(e,"text/xml"),n=h.kml(t);p(n,!1),setTimeout(()=>s(n),900)}).catch(e=>{console.error(e)})};return(0,u.useEffect)(()=>{if(b&&w(),d.current&&f.current){var e;d.current.fitBounds(null==(e=f.current)?void 0:e.getBounds())}},[]),(0,u.useEffect)(()=>{g(!0)},[]),(0,u.useEffect)(()=>{if(d.current){let e=o().latLngBounds([]);t&&t.length>0&&t.filter(e=>e.geographicLocation).forEach(t=>{let[n,l]=t.geographicLocation.split(",").map(Number);e.extend([n,l])}),f.current&&e.extend(f.current.getBounds()),e.isValid()&&d.current.flyToBounds(e,{padding:[20,20]})}},[t,m,f]),(0,l.jsx)(a.W,{ref:d,bounds:v,boundsOptions:t&&t.length>0?{padding:[50,50],maxZoom:13}:{padding:[50,50],maxZoom:15},zoomControl:!0,scrollWheelZoom:!1,attributionControl:!0,dragging:!0,fadeAnimation:!1,easeLinearity:.35,whenReady:()=>{var e;
1let t=null==(e=document.querySelector(".leaflet-container"))?void 0:e.querySelector(".leaflet-control-attribution");t&&t.addEventListener("click",()=>{document.querySelector(".leaflet-control-attribution").classList.toggle("show-attribution")})},children:c})}}}]);

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.