1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"63454191f8ac0590158b18fb5a10b35f78b09750"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2a30a18f-b0d8-4b51-8ecd-0a0eeb0f3079",e._sentryDebugIdIdentifier="sentry-dbid-2a30a18f-b0d8-4b51-8ecd-0a0eeb0f3079")}catch(e){}}(),(self.webpackChunkusers=self.webpackChunkusers||[]).push([[4674],{94674(e,t,n){n.r(t),n.d(t,{MAP_PROJECTIONS:()=>S,default:()=>A});var r=n(96540),o=n(40244),i=n(60842),a=n.n(i),s=n(78179),l=n(49182),u=n(74848);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function m(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}function b(e,t,n){return t=g(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],g(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}var M=400,k=function(){return"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches},S={MERCATOR:"mercator",EQUAL_EARTH:"equalEarth",GLOBE:"globe",NATURAL_EARTH:"naturalEarth",EQUIRECTANGULAR:"equirectangular"},I=function(e){return e?"function"==typeof e?e():e:M},O=function(e){return e.filter(function(e){return e.latitude&&e.longitude})},E=function(e,t){return String(e.markerId||e.projectId||e.id||"".concat(e.latitude,":").concat(e.longitude,":").concat(t))},C=function(e,t){return[E(e,t),e.latitude,e.longitude,e.customIconClassNames||""].join("|")},j=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=b(this,t,[e])).state={viewport:{longitude:e.longitude||0,latitude:e.latitude||0,width:e.width||M,height:I(e.height)||M,zoom:e.zoom||8}},n.map=null,n.mapContainer=r.createRef(),n.currentMarkers=[],n.userInteractedWithMap=!1,n.spinSeconds=0,n.globeSpinInterval=null,n.globeSpinObserver=null,n.initializeMap=n.initializeMap.bind(n),n.addMarkersToMap=n.addMarkersToMap.bind(n),n.canUpdateMarkersInPlace=n.canUpdateMarkersInPlace.bind(n),n.handleMapInteraction=n.handleMapInteraction.bind(n),n.handleMapMove=n.handleMapMove.bind(n),n.handleMapMoveEnd=n.handleMapMoveEnd.bind(n),n.handleStyleLoad=n.handleStyleLoad.bind(n),n.notifyFocusPointChange=n.notifyFocusPointChange.bind(n),n.removeCurrentMarkers=n.removeCurrentMarkers.bind(n),n._onViewportChange=n._onViewportChange.bind(n),n._resize=n._resize.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(t,e),n=t,i=[{key:"getDerivedStateFromProps",value:function(e,t){if(0===t.viewport.latitude&&0===t.viewport.longitude){var n=function(e,t,n){var r,o,i,a;e.forEach(function(e){var t=e.latitude,n=e.longitude;null!==t&&null!==n&&((t>
1=r||void 0===r)&&(r=t),(t<=o||void 0===o)&&(o=t),(n>=i||void 0===a)&&(i=n),(n<=a||void 0===a)&&(a=n))});var s,l=Math.abs(i-a),u=Math.abs(r-o),c=Math.max(l,u);return s=c>100?1.25:c>48?1.5:c>24?2.5:c>6?3:c>2?4:c>.75?5:6,t&&(s*=.6),n&&!t&&(s*=n/M),s=Math.max(s,1),{latAvg:(r+o)/2,longAvg:(i+a)/2,zoom:s}}(e.markers,e.fullScreen,e.height),r=h(h({},t.viewport),{},{latitude:n.latAvg,longitude:n.longAvg,zoom:e.zoom||n.zoom});return h(h({},t),{},{viewport:r})}return t}}],(o=[{key:"componentDidMount",value:function(){a().accessToken="pk.eyJ1IjoiZ3JlaW5oYXJkIiwiYSI6ImNtYjhma2hmdDA1aHkybG9vaDk2OWJpNjUifQ.Lc_9tEd0fBpPtHMr56Y27A",a().supported()?this.initializeMap():this.setState({webglNotSupported:!0}),window.addEventListener("resize",this._resize)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.focusedMarkerId,r=t.markers;this.map&&e.markers!==r&&this.addMarkersToMap(r),this.map&&n&&e.focusedMarkerId!==n&&this.flyToMarker(n)}},{key:"componentWillUnmount",value:function(){var e;if(this.willUnmount=!0,window.removeEventListener("resize",this._resize),this.globeSpinInterval&&window.clearInterval(this.globeSpinInterval),this.globeSpinObserver&&this.globeSpinObserver.disconnect(),null!==(e=this.map)&&void 0!==e&&e.remove)try{this.map.off("move",this.handleMapMove),this.map.off("moveend",this.handleMapMoveEnd),this.map.off("mousedown",this.handleMapInteraction),this.map.off("touchstart",this.handleMapInteraction),this.map.off("wheel",this.handleMapInteraction),this.map.off("dragstart",this.handleMapInteraction),this.map.off("style.load",this.handleStyleLoad),this.map.remove()}catch(e){}}},{key:"handleMapMove",value:function(){var e=this;this.willUnmount||this.setState(function(t){return{viewport:h(h({},t.viewport),{},{longitude:e.map.getCenter().lng,latitude:e.map.getCenter().lat,zoom:e.map.getZoom()})}})}},{key:"handleMapMoveEnd",value:function(){this.notifyFocusPointChange()}},{key:"handleMapInteraction",value:function(){this.userInteractedWithMap=!0,this.globeSpinInterval&&(window.clearInterval(this.globeSpinInterval),this.globeSpinInterval=null)}},{key:"handleStyleLoad",value:function(){this.map&&!this.willUnmount&&(0,l.A)(this.map)}},{key:"notifyFocusPointChange",value:function(){var e=this.props.onFocusPointChange;if(this.map&&!this.willUnmount&&"function"==typeof e){var t=this.map.getCenter();e({latitude:t.lat,longitude:t.lng,zoom:this.map.getZoom()})}}},{key:"flyToMarker",value:function(e){var t=this.props,n=t.focusedMarkerZoom,r=t.fullScreen,o=t.markers.find(function(t){return t.projectId===e||t.id===e}),i=Number(null==o?void 0:o.latitude),a=Number(null==o?void 0:o.longitude);Number.isFinite(i)&&Number.isFinite(a)&&(this.handleMapInteraction(),this.mapContainer.current&&this.mapContainer.current.setAttribute("data-focused-marker-id",String(e)),this.map.flyTo({center:[a,i],zoom:n||(r?2.6:3.2),duration:k()?0:1400,essential:!k()}))}},{key:"initializeMap",value:function(){var e=this,t=this.props,n=t.markers,r=t.disableScroll,o=t.projection,i=this.state.viewport;try{this.map=new(a().Map)({container:this.mapContainer.current,style:"mapbox://styles/greinhard/cm1glrk2m01bk01pcfuwfcb5t",attributionControl:!1,center:[i.longitude,i.latitude],zoom:i.zoom,minZoom:1,maxZoom:20,scrollZoom:!r,projection:{name:o||S.MERCATOR}}),n&&this.addMarkersToMap(n),this.map.on("move",this.handleMapMove),this.map.on("moveend",this.handleMapMoveEnd),this.map.on("mousedown",this.handleMapInteraction),this.map.on("touchstart",this.handleMapInteraction),this.map.on("wheel",this.handleMapInteraction),this.map.on("dragstart",this.handleMapInteraction),this.map.on("style.load",this.handleStyleLoad),this.map.on("load",function(){try{document.querySelectorAll(".mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right").forEach(function(e){e.setAttribute("style","".concat(e.getAttribute("style")||"","; display: none;"))})}catch(e){}e._resize(),e.notifyFocusPointChange(),e.startGlobeSpinWhenInView()});var s=this.props,l=s.fullScreen,u=s.alwaysShowZoom;l&&!u||this.map.addControl(new(a().NavigationControl)({showCompass:!1}),"top-right"),window.addEventListener("resize",this._resize),this._resize()}catch(e){}}},{key:"_resize",value:function(){var e=this.props,t=e.latitude,n=e.longitude;0===t&&(t=1e-6),0===n&&(n=1e-6),this._onViewportChange({width:e.width||M,height:I(e.height)||M,latitude:e.latitude||0,longitude:e.longitude||0,zoom:e.zoom||8})}},{key:"startGlobeSpin",value:function(){var e=this,t=this.props,n=t.spinUntilInteraction,r=t.projection;!n||r!==S.GLOBE||this.globeSpinInterval||this.userInteractedWithMap||k()||(this.spinGlobe(),this.globeSpinInterval=window.setInterval(function(){e.spinGlobe()},1e3))}},{key:"startGlobeSpinWhenInView",value:function(){var e=this,t=this.props,n=t.spinUntilInteraction,r=t.projection;!n||r!==S.GLOBE||this.userInteractedWithMap||this.globeSpinInterval||k()||(window.IntersectionObserver&&this.mapContainer.current?(this.globeSpinObserver&&this.globeSpinObserver.disconnect(),this.globeSpinObserver=new window.IntersectionObserver(function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}
1finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,1)[0];null!=n&&n.isIntersecting&&(e.globeSpinObserver&&(e.globeSpinObserver.disconnect(),e.globeSpinObserver=null),e.startGlobeSpin())},{threshold:.35}),this.globeSpinObserver.observe(this.mapContainer.current)):this.startGlobeSpin())}},{key:"spinGlobe",value:function(){var e=this.props,t=e.spinUntilInteraction,n=e.projection;if(!(!t||n!==S.GLOBE||!this.map||this.willUnmount||this.userInteractedWithMap||k()||this.spinSeconds>=180)){var r=this.map.getZoom();if(!(r>=5)){var o=this.map.getCenter(),i=r>3?(5-r)/2*1:1;o.lng-=i,this.spinSeconds+=1,this.mapContainer.current&&this.mapContainer.current.setAttribute("data-spin-ticks",String(this.spinSeconds)),this.map.easeTo({center:o,duration:1e3,easing:function(e){return e}})}}}},{key:"canUpdateMarkersInPlace",value:function(e){var t=O(e);if(t.length!==this.currentMarkers.length)return!1;var n=this.currentMarkers.values();return t.every(function(e,t){var r=n.next().value;return(null==r?void 0:r.signature)===C(e,t)})}},{key:"removeCurrentMarkers",value:function(){this.currentMarkers.forEach(function(e){var t=(null==e?void 0:e.mapboxMarker)||e;null!=t&&t.remove&&t.remove()}),this.currentMarkers=[]}},{key:"addMarkersToMap",value:function(e){var t=this,n=O(e);if(this.canUpdateMarkersInPlace(e)){var r=this.currentMarkers.values();n.forEach(function(e){!function(e,t){var n;e.setMarker(t),e.element&&(e.element.setAttribute("aria-label",t.ariaLabel||"View map location"),e.element.setAttribute("aria-pressed",t.selected?"true":"false"));var r=null===(n=e.iconEl)||void 0===n?void 0:n.firstElementChild;r&&(r.style.color=t.color||"#1976d2")}(r.next().value,e)})}
1else this.removeCurrentMarkers(),n.forEach(function(e,n){var r=document.createElement("div");r.style.cursor="pointer",r.setAttribute("role","button"),r.setAttribute("tabindex","0"),r.setAttribute("aria-label",e.ariaLabel||"View map location"),r.setAttribute("aria-pressed",e.selected?"true":"false");var o=document.createElement("div");o.innerHTML=e.customIconClassNames?'<i class="'.concat(e.customIconClassNames,'" style="font-size: 2rem; color: ').concat(e.color||"#1976d2",'; filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));"></i>'):'<svg viewBox="0 0 24 24" style="width: 2rem; height: 2rem; color: '.concat(e.color||"#1976d2",'; filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));"><path fill="currentColor" d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>'),r.appendChild(o);var i=e,s={element:r,iconEl:o,getMarker:function(){return i},setMarker:function(e){i=e},signature:C(e,n)},l=new(a().Marker)(r).setLngLat([e.longitude,e.latitude]).addTo(t.map);s.mapboxMarker=l;var u=function(e){var n=s.getMarker();n.onMarkerClick&&(t.handleMapInteraction(),n.onMarkerClick(e))};r.addEventListener("click",u),r.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),u(e))}),r.addEventListener("mouseover",function(e){var t=s.getMarker();t.onMarkerHover&&t.onMarkerHover(e)}),r.addEventListener("mouseout",function(e){var t=s.getMarker();t.onMarkerHoverExit&&t.onMarkerHoverExit(e)}),t.currentMarkers.push(s)})}},{key:"_onViewportChange",value:function(e){e.zoom<1||e.zoom>20||this.willUnmount||this.setState({viewport:e})}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.roundedCorners,r=e.height;return this.state.webglNotSupported?(0,u.jsxs)("div",{style:{textAlign:"center",padding:"20px"},children:[(0,u.jsx)("h3",{children:"WebGL is not supported on your device."}),(0,u.jsx)("p",{children:"Please update your browser or graphics drivers, or enable hardware acceleration to view the map."})]}):(0,u.jsx)("div",{children:(0,u.jsx)("div",{ref:this.mapContainer,role:"region","aria-label":"Interactive project production map",className:n?t.roundedCorners:null,style:{width:"100%",height:I(r)||M}})})}}])&&v(n.prototype,o),i&&v(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(r.Component);const A=(0,s.A)((0,o.A)(function(e){return{locationMarker:{fontSize:"2rem",overflow:"visible",position:"absolute",bottom:"-3px",left:"-18px"},pointer:{cursor:"pointer"},raiseMarker:{zIndex:10},roundedCorners:{borderRadius:e.shape.borderRadius},selectedMarker:{fontSize:"3.5rem",marginLeft:"-.75rem"}}})(j))}}]);
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.