1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9,393,1059],{61059:function(e,t,n){n.d(t,{default:function(){return g}});var r=n(96540),o=n(60134),u=n(98497),a=n(2371);function l(){const e=(0,r.useContext)(u.wZ),t=(0,o.useSelector)(a.m);return(0,r.useEffect)((()=>{if(!e)return null;e.on("load",(n=>{e.addSource("source-regions",{type:"vector",url:t["mapbox.regions"],promoteId:t["mapbox.regions.promote.id"]}),e.addLayer({id:"regions-data-fill",type:"fill",source:"source-regions","source-layer":t["mapbox.regions.layer"],paint:{"fill-color":"#1e29f5","fill-opacity":["case",["boolean",["feature-state","hover"],!1],.45,.2]}}),e.addLayer({id:"regions-data-line",type:"line",source:"source-regions","source-layer":t["mapbox.regions.layer"],paint:{"line-color":"#1e29f5","line-width":2}})}))}),[e]),null}var s=n(10009),i=n(60393),c=n(6615),f=n(133);function d(){return r.createElement(u.Ay,{mapboxConfig:{maxZoom:5.75,minZoom:5.75},legendConfig:{useStaticLegend:!0,customColours:[(0,f.G)("region",c.mI.water)]},staticMap:!0},r.createElement(l,null),r.createElement(s.default,null),r.createElement(i.default,null))}function g(e){const t=window.ReactOnRails.getStore("store");return r.createElement(o.Provider,{store:t},r.createElement(d,e))}},10009:function(e,t,n){n.d(t,{default:function(){return u}});var r=n(96540),o=n(98497);function u(){const e=(0,r.useContext)(o.wZ);return(0,r.useEffect)((()=>{if(!e)return null;e.on("mouseenter","regions-data-fill",(t=>{e.getCanvas().style.cursor="pointer"}));let t=null;e.on("mousemove","regions-data-fill",(n=>{n.features.length>0&&(null!==t&&e.setFeatureState({source:"source-regions",sourceLayer:"operational-trust-boundaries",id:t},{hover:!1}),t=n.features[0].id,e.setFeatureState({source:"source-regions",sourceLayer:"operational-trust-boundaries",id:t},{hover:!0}))})),e.on("mouseleave","regions-data-fill",(()=>{e.getCanvas().style.cursor="",null!==t&&e.setFeatureState({source:"source-regions",sourceLayer:"operational-trust-boundaries",id:t},{hover:!1}),t=null}))}),[e]),null}},60393:function(e,t,n){n.d(t,{default:function(){return s}});var r=n(96540),o=n(60842),u=n.n(o),a=n(98497),l=n(45398);function s(){const e=(0,r.useContext)(a.wZ);return(0,r.useEffect)((()=>{if(!e)return null;e.on("click","regions-data-fill",(t=>{const n=t.features[0].properties.name,r=n.replaceAll(" ","-").toLowerCase();(new(u().Popup)).setLngLat(t.lngLat).setHTML((0,l._j)({headline:n,description:"",link:`/about-us/where-we-work/${r}`})).addTo(e)}))}),[e]),null}},133:function(e,t,n){function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return{assetName:e,src:t,layers:n,static:r}}function o(e,t){return{name:e,value:t}}n.d(t,{G:function(){return o},i:function(){return r}})}}]);
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.