1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7785],{15093:function(e,n,t){"use strict";t.d(n,{Z:function(){return v}});var a=t(59499),r=t(92777),s=t(82262),c=t(45959),i=t(63553),o=t(37247),l=t(67294),u=t(94184),d=t.n(u),f=t(41664),h=t.n(f),m=t(85893);function p(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,a=(0,o.Z)(e);if(n){var r=(0,o.Z)(this).constructor;t=Reflect.construct(a,arguments,r)}else t=a.apply(this,arguments);return(0,i.Z)(this,t)}}var v=function(e){(0,c.Z)(t,e);var n=p(t);function t(e){var a;return(0,r.Z)(this,t),(a=n.call(this,e)).state={selected:e.defaultSelected},a}return(0,s.Z)(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var n=e.selected;this.setState({selected:n})}},{key:"onChangeTab",value:function(e){var n=this;this.setState({selected:e},(function(){n.props.onChange&&n.props.onChange(e)}))}},{key:"render",value:function(){var e=this,n=this.state.selected,t=this.props,r=t.options,s=t.className;return(0,m.jsx)("header",{className:d()("md:mt-8 overflow-x-auto",(0,a.Z)({"c-tabs":!0},s,!!s)),children:(0,m.jsx)("ul",{className:"flex space-x-5",children:r.map((function(t){var a=d()({"-active":t.value===n,"-desktopOnly":t.desktopOnly});return(0,m.jsxs)("li",{children:[t.route&&(0,m.jsx)(h(),{href:t.route,children:(0,m.jsxs)("a",{className:"tabs-btn ".concat(a),children:[(0,m.jsx)("span",{className:"title",children:t.label}),!!t.number&&(0,m.jsx)("span",{className:"number",children:t.number})]})}),!t.route&&(0,m.jsxs)("button",{className:"tabs-btn ".concat(a),onClick:function(){return e.onChangeTab(t.value)},children:[(0,m.jsx)("span",{className:"title",children:t.label}),!!t.number&&(0,m.jsx)("span",{className:"number",children:t.number})]})]},t.value)}))})})}}]),t}(l.Component)},51019:function(e,n,t){"use strict";t.d(n,{Z:function(){return p}});var a=t(89734),r=t.n(a),s=t(3984),c=t(62027),i=t(67294),o=t(5152),l=t.n(o),u=t(41664),d=t.n(u),f=t(85893),h=l()((function(){return Promise.all([t.e(6796),t.e(2984)]).then(t.bind(t,12984))}),{ssr:!1,loadableGenerated:{webpack:function(){return[12984]}}});function m(e){var n=e.partners,t=(0,i.useCallback)((function(){return n.map((function(e){return(0,f.jsx)("div",{className:"item",children:(0,f.jsx)(d(),{href:"/about/partners/".concat(e.id),children:(0,f.jsx)("a",{children:(0,f.jsx)("img",{className:"-img",src:"".concat(e.logo.thumb),alt:e.name})})})},e.id)}))}),[n]);return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("h2",{children:"Ocean Watch Partners"}),(0,f.jsx)(h,{items:t()})]})}function p(){var e=(0,s.m)({},{select:function(e){return r()(e.filter((function(e){return c.l.includes(e["partner-type"])})),"name")},placeholderData:[],refetchOnWindowFocus:!1}).data;return(0,f.jsx)(m,{partners:e})}},84033:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSG:function(){return m},default:function(){return p}});var a=t(67294),r=t(11163),s=t(43129),c=t(13359),i=t(33748),o=t(94795),l=t(42903),u=t(31017),d=t(51019),f=t(65230),h=t(85893),m=!0;function p(){var e=(0,r.useRouter)(),n=(0,a.useState)(),t=n[0],m=n[1],p=(0,a.useState)(!1),v=p[0],x=p[1],b=(0,i.f)({select:function(e){return e.filter((function(e){return"GLB"!==e.iso})).map((function(e){return{label:e.name,value:e.iso}}))}}).data,j=(0,a.useCallback)((function(n){var t=n.value;m(t),e.push({pathname:"/dashboards/ocean-watch/country/[iso]",query:{iso:t}})}),[e]),N=(0,a.useCallback)((function(){x((function(e){return!e}))}),[]),w=(0,c.m)("(max-width: 768px)");return(0,a.useEffect)((function(){w&&x(w)}),[w]),(0,h.jsxs)(o.Z,{title:"Ocean Watch \u2013 Country Profiles Index",description:"Ocean Watch description",children:[(0,h.jsx)(l.ZP,{className:"-transparent"}),(0,h.jsx)(u.Z,{className:"-ocean-watch"}),(0,h.jsx)("section",{className:"l-section -secondary -small",children:(0,h.jsx)("div",{className:"l-container",children:(0,h.jsx)("div",{className:"row",children:(0,h.jsxs)("div",{className:"column small-12",children:[(0,h.jsx)(s.ZP,{instanceId:"area-selector",options:b,className:"-large",onChange:j,clearable:!1,value:t,placeholder:"Select a coastline"}),(0,h.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:550,width:"100%",margin:"25px 0 0",background:"url(/static/images/ocean-watch/placeholder-map.png)",backgroundSize:"contain",backgroundRepeat:"no-repeat"},children:(0,h.jsxs)("h3",{style:{color:"#393f44",fontSize:26,fontWeight:300,textAlign:"center"},children:["Select a coastline country to further explore ",(0,h.jsx)("br",{}),"land-based pressures upon the ocean."]})})]})})})}),(0,h.jsx)("section",{className:"l-section -medium",children:(0,h.jsx)("div",{className:"l-container",children:(0,h.jsx)("div",{className:"row",children:(0,h.jsx)("div",{className:"column small-12",children:(0,h.jsx)(d.Z,{})})})})}),(0,h.jsx)(f.Z,{isOpen:v,onRequestClose:N,children:(0,h.jsx)("p",{children:"The mobile version has limited functionality, please check the desktop version to have access to the full list of features available on the Ocean Watch dashboard."})})]})}},54282:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboards/ocean-watch/country",function(){return t(84033)}])},13359:function(e,n,t){"use strict";t.d(n,{m:function(){return r}});var a=t(67294);function r(e){if("undefined"===typeof window)return console.warn("useMediaMatch cannot function as window is undefined."),!1;var n=(0,a.useMemo)((function(){return window.matchMedia(e)}),[e]),t=(0,a.useState)((function(){return n.matches})),r=t[0],s=t[1];return(0,a.useEffect)((function(){s(n.matches);var e=function(e){return s(e.matches)};return n.addEventListener?(n.addEventListener("change",e),function(){return n.removeEventListener("change",e)}):(n.addListener(e),function(){return n.removeListener(e)})}),[n]),r}}},function(e){e.O(0,[5447,9774,2888,179],(function(){return n=54282,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.