1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8213],{48213:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var r=n(95155),l=n(12115),a=n(55027),o=n.n(a);let c=e=>{let{lat:t,lng:n,onChange:a,disabled:c=!1,height:i=240}=e,s=(0,l.useRef)(null),u=(0,l.useRef)(null),d=(0,l.useRef)(null),g=(0,l.useRef)(a);return(0,l.useEffect)(()=>{g.current=a},[a]),(0,l.useEffect)(()=>{if("undefined"!=typeof document&&!document.getElementById("leaflet-css")){let e=document.createElement("link");e.id="leaflet-css",e.rel="stylesheet",e.href="https://unpkg.com/[email protected]/dist/leaflet.css",e.crossOrigin="",document.head.appendChild(e)}},[]),(0,l.useEffect)(()=>{if("undefined"==typeof document)return;let e="leaflet-tailwind-reset";if(document.getElementById(e))return;let t=document.createElement("style");t.id=e,t.textContent="\n .leaflet-container img { max-width: none !important; }\n ",document.head.appendChild(t)},[]),(0,l.useEffect)(()=>{if(!s.current||u.current)return;o().Icon.Default.mergeOptions({iconRetinaUrl:"https://unpkg.com/[email protected]/dist/images/marker-icon-2x.png",iconUrl:"https://unpkg.com/[email protected]/dist/images/marker-icon.png",shadowUrl:"https://unpkg.com/[email protected]/dist/images/marker-shadow.png"});let e=o().icon({iconRetinaUrl:"https://unpkg.com/[email protected]/dist/images/marker-icon-2x.png",iconUrl:"https://unpkg.com/[email protected]/dist/images/marker-icon.png",shadowUrl:"https://unpkg.com/[email protected]/dist/images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]}),t=o().map(s.current,{zoomControl:!0,attributionControl:!0,scrollWheelZoom:!0});return u.current=t,o().tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'\xa9 <a href="https://www.openstreetmap.org/copyright" target="_blank" rel="noopener">OpenStreetMap</a> contributors',maxZoom:19}).addTo(t),t.setView([0,0],2),c||t.on("click",n=>{var r;let l=n.latlng;if(d.current)d.current.setLatLng(l);else{let n=o().marker(l,{draggable:!0,icon:e}).addTo(t);d.current=n,n.on("dragend",()=>{var e;let t=n.getLatLng();null==(e=g.current)||e.call(g,{lat:t.lat,lng:t.lng})})}null==(r=g.current)||r.call(g,{lat:l.lat,lng:l.lng})}),()=>{try{t.off(),t.remove()}catch(e){}u.current=null,d.current=null}},[c]),(0,l.useEffect)(()=>{let e=u.current;if(e){if("number"==typeof t&&"number"==typeof n){if(d.current)d.current.setLatLng([t,n]);else{let r=o().marker([t,n],{draggable:!c,icon:o().icon({iconRetinaUrl:"https://unpkg.com/[email protected]/dist/images/marker-icon-2x.png",iconUrl:"https://unpkg.com/[email protected]/dist/images/marker-icon.png",shadowUrl:"https://unpkg.com/[email protected]/dist/images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]})}).addTo(e);d.current=r,c||r.on("dragend",()=>{let e=r.getLatLng();a({lat:e.lat,lng:e.lng})})}e.getBounds().contains([t,n])||e.setView([t,n],Math.max(e.getZoom(),13))}else if(d.current){try{d.current.remove()}catch(e){}d.current=null}}},[t,n,c,a]),(0,r.jsx)("div",{ref:s,className:"relative z-0 rounded-md overflow-hidden border border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-gray-800",style:{height:"number"==typeof i?"".concat(i,"px"):i}})}}}]);
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.