1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6aecb6e2-9ac3-4c35-b35d-05961b837e10",e._sentryDebugIdIdentifier="sentry-dbid-6aecb6e2-9ac3-4c35-b35d-05961b837e10")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1524,5634],{11524:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var o=n(37876),l=n(97321),s=n(75634);let r=e=>(0,o.jsx)(l.default,{children:(0,o.jsx)(s.default,{...e})})},75634:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var o=n(37876),l=n(14232),s=n(62945);let r={black_white:"https://dlsmyzcs6vrg4.cloudfront.net/markers/icons/ico_bwpin_3-01.svg",dark_blue:"https://dlsmyzcs6vrg4.cloudfront.net/markers/icons/ico_dbpin_3-01.svg",matte_green:"https://dlsmyzcs6vrg4.cloudfront.net/markers/icons/ico_mgpin_3-01.svg",matte_red:"https://dlsmyzcs6vrg4.cloudfront.net/markers/icons/ico_mrpin_3-01.svg",soft_blue:"https://dlsmyzcs6vrg4.cloudfront.net/markers/icons/ico_sbpin_3-01.svg"},a=r.black_white,i={width:"100%"},u=l.memo(function(e){let{data:t,apiKey:n,zoom:u=7,height:d="400px",borderRadius:c="0px",mapContainerClass:g}=e,{centroidlatitude:p,centroidlongitude:m,meeting_points:f,geojson:b,theme:h}=t,[y,_]=(0,l.useState)(""),[k,w]=(0,l.useState)(0),[C,v]=(0,l.useState)(null),x=(0,l.useMemo)(()=>({lat:Number(p),lng:Number(m)}),[p,m]),j=(0,l.useMemo)(()=>({...i,height:d,borderRadius:c}),[d,c]);(0,l.useEffect)(()=>{var e,t,n,o;(null==b||null==(o=b.features)||null==(n=o[0])||null==(t=n.geometry)||null==(e=t.coordinates)?void 0:e[0])!=null&&v(b.features[0].geometry.coordinates[0].map(e=>({lat:Number(e[1]),lng:Number(e[0])})))},[b]);let{isLoaded:z}=(0,s.KD)({id:"google-map-script",googleMapsApiKey:n}),L=(0,l.useMemo)(()=>z?{fullscreenControl:!0,fullscreenControlOptions:{position:google.maps.ControlPosition.LEFT_BOTTOM},mapTypeControl:!1}:{fullscreenControl:!0,mapTypeControl:!1},[z]),N=(0,l.useCallback)(e=>{if(C&&C.length>0){let t=new window.google.maps.LatLngBounds;C.forEach(e=>{t.extend(new window.google.maps.LatLng(e.lat,e.lng))}),e.fitBounds(t)}else{let t=new window.google.maps.LatLngBounds(x);e.fitBounds(t),setTimeout(()=>w(u),1e3)}},[C,x,u]),M=(0,l.useCallback)(()=>{},[]),E=(0,l.useCallback)(e=>_(e),[]),I=(0,l.useCallback)(()=>_(""),[]),O=(0,l.useCallback)(e=>r[e]||a,[]);return z?(0,o.jsxs)(s.u6,{zoom:C&&C.length>0?void 0:k,onLoad:N,onUnmount:M,options:L,center:x,mapContainerStyle:j,mapContainerClassName:"MapContainer Territory ".concat(g||"").trim(),children:[C&&C.length>0&&(C&&0!==C.length?(0,o.jsx)(s.tS,{path:C,draggable:!1,editable:!1,options:{fillColor:"rgba(255, 0, 0,0.5)",fillOpacity:.4,strokeColor:"#000",strokeOpacity:1,strokeWeight:2}}):null),f&&0!==f.length?f.map((e,t)=>{let n={url:O(h),scaledSize:{width:35,height:35}},l={lat:Number(e.latitude),lng:Number(e.longitude)};return(0,o.jsx)(s.pH,{position:l,icon:n,zIndex:2,onMouseOver:()=>E(e.description),onFocus:()=>null,onMouseOut:I,onBlur:()=>null,children:y&&e.description===y?(0,o.jsx)(s.Fu,{options:{disableAutoPan:!0},children:(0,o.jsx)("span",{style:{lineHeight:"18px"},children:e.description})}):null},t)}):null]}):(0,o.jsx)(o.Fragment,{})}),d=l.memo(function(e){let{data:t,zoom:n,height:s,borderRadius:r,mapContainerClass:a}=e,[i,d]=(0,l.useState)(null);return((0,l.useEffect)(()=>{fetch("/api/google-maps").then(e=>e.json()).then(e=>d(e.apiKey)).catch(e=>console.error("Failed to fetch API key:",e))},[]),i)?(0,o.jsx)(u,{data:t,apiKey:i,zoom:n,height:s,borderRadius:r,mapContainerClass:a}):(0,o.jsx)("div",{children:"Loading map..."})})}}]); 2//# sourceMappingURL=1524.d84a26c0e639423f.js.map
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.