1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6171],{56171:(e,n,t)=>{"use strict";t.r(n),t.d(n,{LocationsMap:()=>C});var r=t(37876),u=t(14232);let o=(0,u.createContext)(null),l=o.Provider;function a(){let e=(0,u.useContext)(o);if(null==e)throw Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}var i=t(35082);function c(){return(c=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}let s=(0,u.forwardRef)(function({bounds:e,boundsOptions:n,center:t,children:r,className:o,id:a,placeholder:s,style:f,whenReady:p,zoom:d,...m},b){let[v]=(0,u.useState)({className:o,id:a,style:f}),[g,h]=(0,u.useState)(null);(0,u.useImperativeHandle)(b,()=>g?.map??null,[g]);let y=(0,u.useCallback)(r=>{if(null!==r&&null===g){let u=new i.T5(r,m);null!=t&&null!=d?u.setView(t,d):null!=e&&u.fitBounds(e,n),null!=p&&u.whenReady(p),h(Object.freeze({__version:1,map:u}))}},[]);(0,u.useEffect)(()=>()=>{g?.map.remove()},[g]);let x=g?u.createElement(l,{value:g},r):s??null;return u.createElement("div",c({},v,{ref:y}),x)});var f=t(98477);function p(e,n,t){return Object.freeze({instance:e,context:n,container:t})}function d(e,n){return null==n?function(n,t){let r=(0,u.useRef)();return r.current||(r.current=e(n,t)),r}:function(t,r){let o=(0,u.useRef)();o.current||(o.current=e(t,r));let l=(0,u.useRef)(t),{instance:a}=o.current;return(0,u.useEffect)(function(){l.current!==t&&(n(a,t,l.current),l.current=t)},[a,t,r]),o}}function m(e,n){let t=(0,u.useRef)(n);(0,u.useEffect)(function(){n!==t.current&&null!=e.attributionControl&&(null!=t.current&&e.attributionControl.removeAttribution(t.current),null!=n&&e.attributionControl.addAttribution(n)),t.current=n},[e,n])}function b(e,n){let t=(0,u.useRef)();(0,u.useEffect)(function(){return null!=n&&e.instance.on(n),t.current=n,function(){null!=t.current&&e.instance.off(t.current),t.current=null}},[e,n])}function v(e,n){let t=e.pane??n.pane;return t?{...e,pane:t}:e}function g(e){return function(n){var t;let r=a(),o=e(v(n,r),r);return m(r.map,n.attribution),b(o.current,n.eventHandlers),t=o.current,(0,u.useEffect)(function(){return(r.layerContainer??r.map).addLayer(t.instance),function(){r.layerContainer?.removeLayer(t.instance),r.map.removeLayer(t.instance)}},[r,t]),o}}let h=function(e,n){var t;return t=g(d(e,n)),(0,u.forwardRef)(function(e,n){let{instance:r}=t(e).current;return(0,u.useImperativeHandle)(n,()=>r),null})}(function({url:e,...n},t){return p(new i.eZ(e,v(n,t)),t)},function(e,n,t){let{opacity:r,zIndex:u}=n;null!=r&&r!==t.opacity&&e.setOpacity(r),null!=u&&u!==t.zIndex&&e.setZIndex(u);let{url:o}=n;null!=o&&o!==t.url&&e.setUrl(o)}),y=function(e,n){var t;return t=g(d(e,n)),(0,u.forwardRef)(function(e,n){let{instance:r,context:o}=t(e).current;return(0,u.useImperativeHandle)(n,()=>r),null==e.children?null:u.createElement(l,{value:o},e.children)})}(function({position:e,...n},t){var r;let u=new i.pH(e,n);return p(u,(r={overlayContainer:u},Object.freeze({...t,...r})))},function(e,n,t){n.position!==t.position&&e.setLatLng(n.position),null!=n.icon&&n.icon!==t.icon&&e.setIcon(n.icon),null!=n.zIndexOffset&&n.zIndexOffset!==t.zIndexOffset&&e.setZIndexOffset(n.zIndexOffset),null!=n.opacity&&n.opacity!==t.opacity&&e.setOpacity(n.opacity),null!=e.dragging&&n.draggable!==t.draggable&&(!0===n.draggable?e.dragging.enable():e.dragging.disable())}),x=function(e,n){var t,r;return t=d(e),r=function(e,r){let u=a(),o=t(v(e,u),u);return m(u.map,e.attribution),b(o.current,e.eventHandlers),n(o.current,u,e,r),o},(0,u.forwardRef)(function(e,n){let[t,o]=(0,u.useState)(!1),{instance:l}=r(e,o).current;(0,u.useImperativeHandle)(n,()=>l),(0,u.useEffect)(function(){t&&l.update()},[l,t,e.children]);let a=l._contentNode;return a?(0,f.createPortal)(e.children,a):null})}(function(e,n){return p(new i.zD(e,n.overlayContainer),n)},function(e,n,{position:t},r){(0,u.useEffect)(function(){let{instance:u}=e;function o(e){e.popup===u&&(u.update(),r(!0))}function l(e){e.popup===u&&r(!1)}return n.map.on({popupopen:o,popupclose:l}),null==n.overlayContainer?(null!=t&&u.setLatLng(t),u.openOn(n.map)):n.overlayContainer.bindPopup(u),function(){n.map.off({popupopen:o,popupclose:l}),n.overlayContainer?.unbindPopup(),n.map.removeLayer(u)}},[e,n,r,t])});t(71499);let w=(0,i.Kk)({iconUrl:"/imgs/marker.png",iconSize:[32,32]}),C=e=>{let{label:n="",locations:t,className:o="",tile:l="rastertiles/voyager",zoom:a=12}=e,[c,f]=(0,u.useState)(null);return(0,u.useEffect)(()=>
1{if(c){if(t.length>0){let e=t.reduce((e,n)=>[e[0]+Number(n.point.lat),e[1]+Number(n.point.lng)],[0,0]);e[0]/=t.length,e[1]/=t.length,c.setView(e,a)}setInterval(function(){c.invalidateSize()},100)}},[c]),(0,r.jsxs)(s,{zoom:a,scrollWheelZoom:!1,ref:f,style:{borderRadius:12},className:"w-100 z-0 h-[450px] "+o,children:[(0,r.jsx)(h,{url:"https://{s}.basemaps.cartocdn.com/"+l+"/{z}/{x}/{y}{r}.png",attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>',subdomains:"abcd",maxZoom:20}),t.map((e,t)=>(0,r.jsx)(y,{icon:function(e){return void 0!==e?(0,i.Kk)({iconUrl:e,iconSize:[40,40]}):w}(e.icon),position:e.point,children:(0,r.jsxs)(x,{className:"custom-popup",closeButton:!1,autoClose:!0,children:[(0,r.jsx)("strong",{children:e.label||n}),(0,r.jsx)("br",{}),e.info?e.info+" - ":"",e.full_address,(0,r.jsx)("br",{}),e.cta&&e.cta.length>0?(0,r.jsxs)("a",{className:"bg-green-700 p-1 uppercase leading-6 !text-white",href:e.url,title:e.cta,target:"_blank",rel:"noreferrer",children:[" ",e.cta," "]}):null]})},"marker-"+t))]})}},71499:()=>{}}]);
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.