1(this.webpackJsonpclient=this.webpackJsonpclient||[]).push([[27],{385:function(e,t,a){"use strict";a.d(t,"a",(function(){return b}));var o=a(36),r=a(0),n=a.n(r),i=a(457),l=a(191),c=a(42),s=a(190),p={height:"calc(100vh - 64px)",width:"calc(100vw - 240px)"},u={height:"calc(100vh - 64px)",width:"100vw"},d=Object(i.a)({accessToken:"pk.eyJ1IjoidW5kZXJibHVld2F0ZXJzIiwiYSI6IjMzZ215RTQifQ.u6Gb_-kNfvaxiHdd9eJEEA"});function b(e){var t=e.geoJSON,a=e.loading,i=e.captionSuffix,b=void 0===i?"":i,m=e.fullBleed,f=void 0!==m&&m,h=e.geoJsonDownloadHref,g=f?u:p,v=f?24:250,y=Object(r.useState)(!1),w=Object(o.a)(y,2),x=w[0],j=w[1],S=Object(r.useState)(null),O=Object(o.a)(S,2),J=O[0],z=O[1];if(!x&&J&&t){J.addSource("recoveries",{type:"geojson",data:t}),J.addLayer({id:"recoveries-heat",type:"heatmap",source:"recoveries",maxzoom:14,paint:{"heatmap-weight":1,"heatmap-intensity":["interpolate",["linear"],["zoom"],0,1,9,3],"heatmap-color":["interpolate",["linear"],["heatmap-density"],0,"rgba(33,102,172,0)",.2,"rgb(103,169,207)",.4,"rgb(209,229,240)",.6,"rgb(253,219,199)",.8,"rgb(239,138,98)",1,"#f54907"],"heatmap-radius":["interpolate",["linear"],["zoom"],0,2,9,20],"heatmap-opacity":["interpolate",["linear"],["zoom"],11,1,14,0]}},"waterway-label"),J.addLayer({id:"recoveries-point",type:"circle",source:"recoveries",minzoom:12.5,paint:{"circle-radius":6,"circle-color":"rgb(178,24,43)","circle-opacity":["interpolate",["linear"],["zoom"],12.5,0,16,1]}},"waterway-label"),j(!0);var E=t.properties.bbox;J.fitBounds([[E[0],E[1]],[E[2],E[3]]],{padding:150})}return n.a.createElement("div",{style:{position:"relative"}},n.a.createElement(d,{center:[-121,34],zoom:[6],containerStyle:g,onStyleLoad:function(e){z(e)},style:"mapbox://styles/underbluewaters/cjx51bj232iad1cpl74so60en/draft"}),a&&n.a.createElement(l.a,{style:{position:"absolute",left:"50%",top:"50%",zIndex:1e3}}),t?n.a.createElement(c.a,{style:{userSelect:"none",position:"absolute",left:v,bottom:40,width:360,color:"white",textShadow:"1px 1px 4px rgba(0,0,0,0.3)"},variant:"h4"},"Viewing ",t.features.length," Recoveries",b):null,h?n.a.createElement(s.a,{variant:"contained",color:"primary",component:"a",href:h,target:"_blank",rel:"noopener noreferrer",style:{position:"absolute",right:24,bottom:40,boxShadow:"0 2px 8px rgba(0,0,0,0.35)"}},"Download Spatial Data"):null)}},764:function(e,t,a){"use strict";a.r(t);var o=a(70),r=a(0),n=a.n(r),i=a(33),l=a(459),c=a(71),s=a.n(c),p=a(385),u=a(43),d=a(40);function b(){var e=Object(o.a)(["\n query geoJSONAllProjects {\n geoJSONAllProjects\n }\n"]);return b=function(){return e},e}var m=s()(b()),f=Object(l.a)(m)((function(e){var t=e.data,a=t.loading,o=t.geoJSONAllProjects,r=Object(u.c)(),i=r?"".concat(d.a,"/export-geojson-all-ports?authorization=").concat(encodeURIComponent(r)):null;return n.a.createElement(p.a,{loading:a,geoJSON:o,captionSuffix:" (all ports)",fullBleed:!0,geoJsonDownloadHref:i})}));t.default=function(){var e=Object(u.d)();return e&&e.superuser?n.a.createElement(f,null):n.a.createElement(i.a,{to:"/vessel-reports"})}}}]); 2//# sourceMappingURL=27.b6d3639f.chunk.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.