1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9628],{17061:()=>{},37768:()=>{},89040:e=>{e.exports={mapContainer:"Mapbox_mapContainer__XnRWq",map:"Mapbox_map__M7HSf"}},89628:(e,r,n)=>{"use strict";n.r(r),n.d(r,{MapboxRoot:()=>p,useMapbox:()=>m});var t=n(54568),o=n(84183),a=n(75846),u=n.n(a);n(37768);var s=n(7620),l=n(89040),c=n.n(l);n(17061);let i=(0,s.createContext)(null),p=e=>{let{children:r,accessToken:n,zoom:a,center:l,className:p,styleUrl:m,interactive:f=!0,showNavigationControls:b=!0,scrollZoom:d=!0,doubleClickZoom:C=!0,dragPan:h=!0,mapRef:x}=e,[_,v]=(0,s.useState)(!1),w=(0,s.useRef)(null),M=(0,s.useRef)(null),R=(0,s.useRef)(null);return(0,s.useImperativeHandle)(x,()=>w.current),(0,s.useEffect)(()=>{if(M.current&&(u().accessToken=n,!w.current))return w.current=new(u()).Map({container:M.current,center:l,zoom:a,style:m,interactive:f}),w.current.on("load",()=>{v(!0)}),()=>{w.current&&(w.current.remove(),w.current=null)}},[n,l,f,m,a]),(0,s.useEffect)(()=>{let e=w.current;if(e)if(e.scrollZoom[d?"enable":"disable"](),e.doubleClickZoom[C?"enable":"disable"](),e.dragPan[h?"enable":"disable"](),e.setCenter(l),e.setZoom(a),m&&e.setStyle(m),b){if(R.current&&e.hasControl(R.current))return;R.current=new(u()).NavigationControl({showCompass:!1,showZoom:!1}),e.addControl(R.current)}else R.current&&e.hasControl(R.current)&&(e.removeControl(R.current),R.current=null)},[l,a,m,f,d,C,h,b]),(0,t.jsx)(i.Provider,{value:{mapRef:w,isMapReady:_},children:(0,t.jsxs)("section",{className:(0,o.$z)(c().mapContainer,p),children:[(0,t.jsx)("div",{className:c().map,ref:M}),r]})})},m=()=>{let e=(0,s.useContext)(i);if(!e)throw Error("Map components must be used within a MapboxRoot component");return e}}}]);
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.