1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4083],{35603:()=>{},74083:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>s});var n=l(95155),a=l(12115);l(35603);var o=l(19655);let r=[13.7563,100.5018];function s(e){let{initialLat:t,initialLng:s,onConfirm:i,onClose:c}=e,d=(0,o.kj)(),u=(0,a.useRef)(null),[m,g]=(0,a.useState)(t&&s?{lat:t,lng:s}:null),b=(0,a.useRef)(m);return b.current=m,(0,a.useEffect)(()=>{let e=!1,t=null;return(async()=>{let n=(await l.e(1761).then(l.t.bind(l,55027,23))).default;if(e||!u.current)return;let a=n.icon({iconUrl:"/leaflet/marker-icon.png",iconRetinaUrl:"/leaflet/marker-icon-2x.png",shadowUrl:"/leaflet/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41]}),o=b.current;t=n.map(u.current).setView(o?[o.lat,o.lng]:r,o?16:6),n.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"© OpenStreetMap contributors",maxZoom:19}).addTo(t);let s=null,i=(e,l)=>{s?s.setLatLng([e,l]):(s=n.marker([e,l],{icon:a,draggable:!0}).addTo(t)).on("dragend",()=>{let e=s.getLatLng();g({lat:e.lat,lng:e.lng})}),g({lat:e,lng:l})};o&&i(o.lat,o.lng),t.on("click",e=>i(e.latlng.lat,e.latlng.lng)),!o&&navigator.geolocation&&navigator.geolocation.getCurrentPosition(l=>{e||b.current||t.setView([l.coords.latitude,l.coords.longitude],15)},()=>{},{timeout:3e3})})(),()=>{e=!0,null==t||t.remove()}},[]),(0,n.jsx)("div",{className:"modal d-block",tabIndex:-1,role:"dialog",style:{backgroundColor:"rgba(0,0,0,0.5)",zIndex:1090},children:(0,n.jsx)("div",{className:"modal-dialog modal-lg modal-dialog-centered",role:"document",children:(0,n.jsxs)("div",{className:"modal-content",children:[(0,n.jsxs)("div",{className:"modal-header py-2",children:[(0,n.jsx)("h6",{className:"modal-title mb-0",children:d("store.locationModalTitle")}),(0,n.jsx)("button",{type:"button",className:"btn-close",onClick:c,"aria-label":"Close"})]}),(0,n.jsx)("div",{className:"modal-body p-0",children:(0,n.jsx)("div",{ref:u,style:{height:420,width:"100%"}})}),(0,n.jsxs)("div",{className:"modal-footer py-2 d-flex justify-content-between align-items-center",children:[(0,n.jsx)("small",{className:"text-muted",children:m?"\uD83D\uDCCD ".concat(m.lat.toFixed(6),", ").concat(m.lng.toFixed(6)):d("store.locationHint")}),(0,n.jsxs)("div",{className:"d-flex gap-2",children:[(0,n.jsx)("button",{type:"button",className:"btn btn-sm btn-outline-secondary",onClick:c,children:d("common.cancel")}),(0,n.jsx)("button",{type:"button",className:"btn btn-sm btn-primary",disabled:!m,onClick:()=>m&&i(m.lat,m.lng),children:d("store.locationConfirm")})]})]})]})})})}}}]);
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.