PageSourceSearch

https://www.weatherwatch.co.nz/_next/static/chunks/356.a50ba68e7e8f12ab.js

js weatherwatch.co.nz collected 2026-09-24 09:57:02 UTC 29,791 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[356],{5356:function(e,n,t){t.r(n),t.d(n,{default:function(){return I}});var a=t(2777),r=t(2262),o=t(748),l=t(5959),i=t(3553),c=t(7247),s=t(9499),u=t(135),f=t.n(u),d=t(7294),h=t(5715),p=t(2013),m=t(1512),g=t(7999),v=t(1410),w=t(5243),x=t.n(w);let b=(0,m.Au)(function({positions:e,...n},t){let a=new w.Polygon(e,n);return(0,g.O)(a,(0,v.sj)(t,{overlayContainer:a}))},function(e,n,t){n.positions!==t.positions&&e.setLatLngs(n.positions)});var j=t(2604);let y=(0,m.dW)(function({position:e,...n},t){let a=new w.Marker(e,n);return(0,g.O)(a,(0,v.sj)(t,{overlayContainer:a}))},function(e,n,t){n.position!==t.position&&e.setLatLng(n.position),null!=n.icon&&n.icon!==t.icon&&e.setIcon(n.icon),null!=n.zIndexOffset&&n.zIndexOffset!==t.zIndexOffset&&e.setZIndexOffset(n.zIndexOffset),null!=n.opacity&&n.opacity!==t.opacity&&e.setOpacity(n.opacity),null!=e.dragging&&n.draggable!==t.draggable&&(!0===n.draggable?e.dragging.enable():e.dragging.disable())});var z=t(1988),N=t(8428),C=t(5893),I=function(e){(0,l.Z)(u,e);var n,t=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||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}}(),function(){var e,t=(0,c.Z)(u);return e=n?Reflect.construct(t,arguments,(0,c.Z)(this).constructor):t.apply(this,arguments),(0,i.Z)(this,e)});function u(e){var n;return(0,a.Z)(this,u),n=t.call(this,e),(0,s.Z)((0,o.Z)(n),"mapRef",(0,d.createRef)()),(0,s.Z)((0,o.Z)(n),"popupInfo",function(e){return(0,C.jsxs)("div",{className:"popup",children:[(0,C.jsx)("div",{className:"title",children:e.title}),(0,C.jsx)("div",{className:"location",children:e.detailedData.alert.info[0].area[0].areaDesc[0]}),(0,C.jsxs)("div",{className:"smaller",children:["Starts at ",z.Z.formatTimeDate(e.detailedData.alert.info[0].onset)]}),(0,C.jsxs)("div",{className:"smaller no-top",children:["Ends at ",z.Z.formatTimeDate(e.detailedData.alert.info[0].expires)]}),(0,C.jsx)("div",{className:"summary",children:e.description}),(0,C.jsxs)("div",{className:"smaller",children:["Issued at ",z.Z.formatTimeDate(e.created)]})]})}),(0,s.Z)((0,o.Z)(n),"whenReady",function(e){var n=e.target;setTimeout(function(){n.invalidateSize()},0),n.addControl(w.control.zoom({position:"bottomright"}))}),(0,s.Z)((0,o.Z)(n),"getCentroid",function(e){return e.reduce(function(n,t){return[n[0]+t[0]/e.length,n[1]+t[1]/e.length]},[0,0])}),(0,s.Z)((0,o.Z)(n),"getPolygonIcon",function(e){var n;switch(e){case"rain":n='<svg id="warning-rain" viewBox="0 0 32 32">\n        <path d="m14.278 27.259a.767.767 0 0 1 -.652-1.173l1.278-2.163a.768.768 0 0 1 1.07-.261.767.767 0 0 1 .26 1.068l-1.277 2.164a.82.82 0 0 1 -.679.365zm13.67-10.634v-.183-.052-.052-.209-.026a46.152 46.152 0 0 0 -.078-.651c-.444-2.242-2.27-3.936-4.67-4.197-.235-.026-.47-.026-.704-.026-.679 0-1.383.105-1.983.365-.026 0-.026 0-.052.026a7.448 7.448 0 0 0 -.835-2.19 119993 119993 0 0 1 -.078-.155s0-.027-.026-.027a8.18 8.18 0 0 0 -7.096-4.092c-1.774 0-3.417.548-4.748 1.512a7.978 7.978 0 0 0 -1.93 1.929 7.526 7.526 0 0 0 -.94 1.746c-.025.052-.051.13-.078.183a8.403 8.403 0 0 0 -.495 2.814c0 .678.078 1.33.235 1.93a.76.76 0 0 1 .052.234c0 .052.026.078.026.13a8.184 8.184 0 0 0 7.8 5.89h10.512c2.739 0 4.982-2.163 5.087-4.873v-.026zm-9.313 11.025a.767.767 0 0 1 -.652-1.173l1.539-2.607a.768.768 0 0 1 1.07-.26.767.767 0 0 1 .26 1.068l-1.539 2.607a.82.82 0 0 1 -.678.365zm-9.131 0a.767.767 0 0 1 -.652-1.173l1.54-2.607a.768.768 0 0 1 1.069-.26.767.767 0 0 1 .26 1.068l-1.538 2.607a.82.82 0 0 1 -.679.365z" fill="#262626"></path>\n      </svg>';break;case"wind":n='<svg id="warning-wind" viewBox="0 0 32 32">\n        <g fill="#262626" stroke="#262626" stroke-width=".5">\n          <path d="m28.484 15.933c-.719-.642-1.258-1.078-2.594-1.207-.103 0-.206-.025-.334-.025-.231-.026-.462-.026-.745-.026h-21.912a.712.712 0 0 0 -.334.077.85.85 0 0 0 -.514.796c0 .359.206.667.514.795a.712.712 0 0 0 .334.077h21.912c1.105 0 1.541.103 1.952.36.154.102.283.205.437.359.051.026.077.077.128.103.078.076.129.128.206.205.437.513.642 1.155.54 1.77-.129.822-.797 1.695-1.645 1.695-.128 0-.257-.026-.385-.052-.23
11-.051-.411-.18-.565-.282-.077-.051-.129-.128-.18-.18-.077-.077-.128-.18-.18-.256a1.22 1.22 0 0 1 -.18-.59v-.283c.026-.128 0-.23-.025-.334a.867.867 0 0 0 -.154-.308.84.84 0 0 0 -.386-.282c-.051-.026-.102-.026-.18-.051h-.128-.103c-.025 0-.051 0-.102.025-.026 0-.052 0-.078.026-.025 0-.05.026-.077.026-.025 0-.051.025-.051.025-.026.026-.051.026-.077.052-.026 0-.026.025-.051.051-.026.026-.052.051-.077.051l-.052.052c-.026.025-.051.051-.051.077 0 .025-.026.025-.026.051-.026.026-.026.051-.051.103 0 .025-.026.025-.026.051-.026.051-.026.103-.051.154-.026.103-.026.231-.026.334v.333c.026.437.18.899.385 1.284.103.205.231.385.386.564.308.36.668.642 1.079.822.205.102.41.154.642.205.23.051.462.077.693.077 1.619 0 3.057-1.335 3.34-3.131.282-1.335-.206-2.695-1.208-3.593zm-23.992-3.209a.79.79 0 0 0 .488.154h7.552c.283 0 .565-.025.848-.077.154-.025.282-.051.41-.077.078-.025.13-.025.206-.051.206-.051.411-.128.617-.231.077-.026.128-.077.205-.103.206-.102.411-.23.591-.385.385-.308.72-.693.925-1.155a3.44 3.44 0 0 0 .334-1.026c.026-.154.051-.282.051-.436v-.437a2.917 2.917 0 0 0 -.513-1.565 2.592 2.592 0 0 0 -.334-.411c-.078-.077-.18-.154-.257-.231-.103-.077-.206-.154-.309-.205-.102-.077-.23-.129-.334-.18h-.025c-.052-.026-.103-.051-.154-.051-.026 0-.052 0-.052-.026-.051-.026-.077-.026-.128-.051-.026 0-.026 0-.052-.026-.05 0-.102-.026-.154-.026h-.051c-.051 0-.103-.025-.154-.025h-.077c-.052 0-.077 0-.129-.026h-.411a2.405 2.405 0 0 0 -1.361.513c-.36.283-.617.668-.77 1.078a2.462 2.462 0 0 0 -.155.847c0 .36.077.719.231 1.027.026.051.077.128.103.18a.45.45 0 0 0 .103.128l.025.025.103.103h.026a.196.196 0 0 0 .128.051h.026c.051.026.103.026.128.052h.026c.052 0 .077.025.129.025h.179c.026 0 .077-.025.103-.025s.026 0 .052-.026c.05-.026.102-.051.128-.077a.98.98 0 0 0 .231-.23c.052-.103.103-.206.129-.309.051-.205 0-.436-.129-.641-.077-.129-.077-.616.231-.873.026-.026.077-.051.103-.077.026 0 .026 0 .052-.026.025 0 .05-.025.077-.025h.05c.027 0 .052 0 .078-.026h.308c.026 0 .077 0 .103.026.026 0 .051 0 .077.025.026 0 .077.026.103.026s.026 0 .051.026c.052.025.103.05.154.077.077.05.154.102.232.18.23.23.333.513.36.77v.128c.025.462-.13.95-.386 1.283a.885.885 0 0 1 -.308.308c-.283.23-.617.36-1.002.462-.18.051-.386.077-.591.077a5.592 5.592 0 0 1 -.668.025h-7.141a.846.846 0 0 0 -.488.154.853.853 0 0 0 -.386.72c.103.256.232.512.463.666z"></path>\n          <path d="m21.215 21.143c-.052-.154-.129-.308-.206-.462a3.857 3.857 0 0 0 -.59-.847c-.18-.18-.36-.36-.591-.514a5.16 5.16 0 0 0 -1.413-.693c-.077-.025-.154-.05-.206-.05-.205-.052-.437-.104-.642-.155-.154-.026-.283-.051-.437-.077a5.148 5.148 0 0 1 -.616-.103c-.745-.102-1.516-.128-2.26-.154h-10.56a.712.712 0 0 0 -.334.077 1.06 1.06 0 0 0 -.282.18c-.051.051-.077.077-.103.128a.79.79 0 0 0 -.154.488c0 .18.051.334.154.488.026.051.077.077.103.128.077.077.18.128.282.18a.712.712 0 0 0 .334.077h10.508c.205 0 .41 0 .616.025h.129c.205 0 .41.026.616.026h.103c.206.026.411.026.617.051l1.001.154c.232.052.437.103.668.18.206.077.411.154.617.257.103.051.18.102.282.18.103.076.232.179.309.282.051.077.128.154.18.23.102.155.205.309.256.488.026.077.052.18.077.257.052.23.052.436.026.642a2.34 2.34 0 0 1 -.282.77c-.257.487-.694.847-1.208.924h-.359a1.348 1.348 0 0 1 -.617-.231.936.936 0 0 1 -.283-.257c-.077-.077-.128-.18-.18-.257a1.22 1.22 0 0 1 -.18-.59v-.282a.79.79 0 0 0 -.076-.488c-.026-.051-.052-.103-.077-.128a.811.811 0 0 0 -.565-.334h-.129-.103c-.025 0-.051 0-.102.026-.026 0-.052 0-.077.025-.026 0-.052.026-.078.026-.025 0-.05.026-.05.026-.027.025-.052.025-.078.051-.026 0-.026.026-.051.051-.026.026-.052.052-.077.052l-.052.051c-.025.026-.051.051-.051.077s-.026.026-.026.051c-.026.026-.026.052-.051.103 0 .026-.026.026-.026.051-.026.052-.026.103-.051.154-.026.206-.052.437-.026.668.026.23.051.436.128.667.078.205.155.436.257.616a2.885 2.885 0 0 0 .9 1.027c.18.128.385.256.59.359.206.102.411.154.642.205.103.026.232.051.334.051.103 0 .232.026.36.026.617 0 1.182-.18 1.695-.513.18-.103.334-.231.489-.385a2.4 2.4 0 0 0 .41-.462 3.65 3.65 0 0 0 .591-1.13c.077-.205.129-.41.154-.641.052-.231.052-.488.026-.744a4.02 4.02 0 0 0 -.205-1.078z"></path>\n        </g>\n      </svg>';break;
1case"snow":n='<svg id="warning-snow" viewBox="0 0 32 32">\n        <path d="m27.253 17.41-4.995.98-2.44-1.401v-1.57l2.44-1.402 4.995 1.01c.084.028.14.028.224.028.505 0 .954-.337 1.038-.841a1.063 1.063 0 0 0 -.842-1.262l-2.609-.533 2.3-1.317c.506-.28.702-.953.394-1.458-.28-.505-.954-.7-1.46-.392l-2.3 1.317.87-2.495a1.063 1.063 0 0 0 -.646-1.346 1.065 1.065 0 0 0 -1.346.645l-1.656 4.794-2.441 1.374-1.403-.813v-2.804l3.339-3.812a1.069 1.069 0 0 0 -.112-1.514 1.07 1.07 0 0 0 -1.515.112l-1.74 1.99v-2.635a1.065 1.065 0 1 0 -2.132 0v2.635l-1.74-1.99c-.393-.448-1.066-.477-1.515-.112-.45.392-.477 1.065-.112 1.514l3.338 3.812v2.804l-1.374.785-2.441-1.402-1.628-4.822a1.08 1.08 0 0 0 -1.347-.673 1.078 1.078 0 0 0 -.673 1.346l.842 2.495-2.273-1.318c-.505-.308-1.15-.112-1.46.393a1.09 1.09 0 0 0 .394 1.458l2.272 1.317-2.609.505c-.59.112-.954.673-.842 1.261.113.505.533.87 1.038.87.057 0 .14 0 .197-.029l4.994-.98 2.441 1.4v1.57l-2.44 1.402-4.995-1.009a1.064 1.064 0 0 0 -1.263.841c-.112.589.253 1.15.842 1.262l2.61.532-2.301 1.29c-.505.28-.702.953-.393 1.458.196.336.561.532.926.532.168 0 .365-.056.533-.14l2.3-1.29-.87 2.496c-.196.56.113 1.149.646 1.345.112.028.225.056.337.056.449 0 .842-.28 1.01-.729l1.655-4.793 2.442-1.374 1.402.813v2.803l-3.339 3.813a1.069 1.069 0 0 0 .113 1.514 1.07 1.07 0 0 0 1.515-.112l1.74-1.99v2.634a1.065 1.065 0 1 0 2.132 0v-2.635l1.74 1.99c.224.253.505.365.813.365.253 0 .505-.084.702-.252.449-.393.477-1.065.112-1.514l-3.339-3.813v-2.803l1.375-.785 2.44 1.402 1.656 4.822c.14.448.562.728 1.01.728.113 0 .225-.028.337-.056.561-.196.842-.785.674-1.345l-.842-2.495 2.273 1.317c.168.084.364.14.533.14.364 0 .73-.196.926-.532a1.09 1.09 0 0 0 -.393-1.458l-2.273-1.317 2.61-.505c.589-.112.953-.673.841-1.262-.14-.588-.673-.953-1.262-.84zm-9.568-.421-1.375.785-1.375-.785v-1.599l1.375-.785 1.375.785v1.598z" fill="#262626"></path>\n      </svg>';break;case"localStorm":case"thunderstorm":case"Thunderstorm":n='<svg id="warning-thunderstorm" viewBox="0 0 32 32">\n        <path d="m22.278 14.003h-3.503l2.452-3.266.03-.03 4.523-6.707h-10.887l-7.735 13.474c-.292.496-.175 1.137.32 1.516.205.146.468.234.701.234h4.029l-.847 7.612c-.03.379.088.787.38 1.05.233.204.525.291.788.291.35 0 .671-.146.905-.437l9.807-11.783c.35-.437.38-1.05 0-1.516-.233-.321-.613-.438-.963-.438z" fill="#262626"></path>\n      </svg>';break;case"roadsnow":n='<svg id="warning-roadsnow" viewBox="0 0 32 32">\n        <g fill="none" fill-rule="evenodd">\n          <g transform="translate(4 14.5)">\n            <path d="m.091 4.622h15.609" stroke="#262626" stroke-linecap="round" stroke-width="1.367"></path>\n            <g fill-rule="nonzero">\n              <path d="m2.324 8.264h-1.184a.554.554 0 0 0 -.547.547v3.255c0 .296.251.547.547.547h1.185c.296 0 .547-.25.547-.547v-3.255a.554.554 0 0 0 -.547-.547zm12.305 0h-1.185a.554.554 0 0 0 -.547.547v3.255c0 .296.25.547.547.547h1.185c.296 0 .547-.25.547-.547v-3.255a.554.554 0 0 0 -.547-.547z" fill="#262626"></path>\n              <path d="m13.99 2.778-.546-1.526c-.433-1.23-1.595-1.115-2.917-1.115h-5.446c-1.298 0-2.46-.114-2.916 1.115l-.547 1.548-.501 1.435-.752 2.117a1.95 1.95 0 0 0 -.114.615v3.392c0 .182.136.318.319.318h14.423a.311.311 0 0 0 .32-.318v-3.439c0-.205-.046-.41-.114-.615l-.73-2.071-.478-1.457z" fill="#262626"></path>\n              <g fill="#fff">\n                <ellipse cx="2.529" cy="7.399" rx="1.048" ry="1.047"></ellipse>\n                <ellipse cx="13.262" cy="7.399" rx="1.048" ry="1.047"></ellipse>\n                <path d="m11.667 1.161h-7.565a.522.522 0 0 0 -.502.342l-.82 2.003a.546.546 0 0 0 .501.751h9.206c.387 0 .66-.387.501-.751l-.82-2.003a.522.522 0 0 0 -.501-.342z"></path>\n              </g>\n            </g>\n          </g>\n          <g fill-rule="nonzero">\n            <path d="m23.683 20.346c-.501 0-.934-.364-1.003-.865l-.068-.478-.273.41a.973.973 0 0 1 -.844.455.909.909 0 0 1 -.546-.16.912.912 0 0 1 -.433-.637c-.046-.273 0-.523.136-.75l1.527-2.346-.182-1.23-.433-.181-.98.774-.524 2.754a1.044 1.044 0 0 1 -.843.82h-.137c-.068 0-.137 0-.205-.023a.913.913 0 0 1 -.638-.432 1.108 1.108 0 0 1 -.16-.752l.092-.478-.365.296a.908.908 0 0 1 -.478.205h-.137a.972.972 0 0 1 -.798-.387.992.992 
10 0 1 .183-1.411l.364-.296-.478-.023c-.547-.023-.98-.524-.957-1.07a1.019 1.019 0 0 1 1.002-.956h.069l2.802.159.98-.774-.068-.455-1.162-.456-2.644.934a.705.705 0 0 1 -.182.045h-.137c-.433 0-.82-.273-.957-.683a1.023 1.023 0 0 1 .616-1.297l.455-.16-.433-.182a.926.926 0 0 1 -.546-.546c-.092-.25-.114-.524 0-.774.159-.387.524-.638.934-.638.136 0 .25.023.387.068l.433.183-.228-.433c-.25-.5-.045-1.115.433-1.366.137-.068.296-.114.456-.114.387 0 .73.205.911.547l1.276 2.504 1.163.455.364-.296-.182-1.23-2.12-1.82a1.04 1.04 0 0 1 -.341-.683.956.956 0 0 1 .25-.729c.183-.228.479-.341.775-.341.25 0 .479.09.661.25l.365.319-.069-.478a.988.988 0 0 1 .183-.752.918.918 0 0 1 .66-.387h.137c.501 0 .934.365 1.003.865l.068.479.273-.41a.973.973 0 0 1 .844-.456c.205 0 .387.046.546.16.479.296.593.933.297 1.389l-1.527 2.344.182 1.23.433.182.98-.774.524-2.755c.091-.478.501-.82 1.003-.82.068 0 .136 0 .182.023a.913.913 0 0 1 .638.433c.16.228.205.5.16.751l-.092.478.365-.296a1 1 0 0 1 .615-.205c.32 0 .615.137.798.388.16.204.228.478.205.75-.023.274-.16.502-.388.684l-.364.296.478.023c.274.022.524.136.707.341a.956.956 0 0 1 .25.729.997.997 0 0 1 -.865.933h-.206l-2.802-.16-.98.775.068.455 1.162.455 2.644-.933a.915.915 0 0 1 .341-.068c.433 0 .82.273.957.683a1.023 1.023 0 0 1 -.615 1.297l-.456.16.433.182c.251.09.456.296.547.546s.114.524 0 .774a.975.975 0 0 1 -.797.615h-.137c-.137 0-.25-.023-.387-.068l-.433-.183.228.433c.114.25.136.524.068.774a1.16 1.16 0 0 1 -.501.592.742.742 0 0 1 -.32.091h-.136a1.02 1.02 0 0 1 -.912-.546l-1.276-2.505-1.162-.455-.364.296.182 1.23 2.12 1.82c.432.365.478 1.002.113 1.435a1.11 1.11 0 0 1 -.615.342h-.137a.993.993 0 0 1 -.66-.25l-.365-.32.068.478a.988.988 0 0 1 -.182.752c-.16.205-.41.364-.661.387-.114.045-.16.045-.205.045z" fill="#262626"></path>\n            <path d="m21.7 4.82c.297 0 .57.227.616.523l.205 1.503.843-1.298a.61.61 0 0 1 .524-.273c.114 0 .228.023.342.091.296.182.364.57.182.865l-1.618 2.459.228 1.616.866.342 1.276-1.002.57-2.891a.632.632 0 0 1 .615-.501c.046 0 .068 0 .114.023a.606.606 0 0 1 .478.728l-.296 1.503 1.208-.934a.62.62 0 0 1 .387-.136c.183 0 .365.09.479.227.205.274.16.66-.114.866l-1.208.933 1.527.091a.614.614 0 0 1 .57.66.63.63 0 0 1 -.525.57h-.136l-2.94-.183-1.276 1.002.137.888 1.504.615 2.78-.98a.666.666 0 0 1 .205-.045c.25 0 .501.16.592.41a.617.617 0 0 1 -.387.797l-1.458.5 1.412.57c.32.136.479.478.342.797a.682.682 0 0 1 -.478.387h-.092a.81.81 0 0 1 -.227-.046l-1.413-.57.706 1.367a.606.606 0 0 1 -.273.82c-.069.022-.137.045-.182.068h-.092a.594.594 0 0 1 -.547-.342l-1.344-2.618-1.504-.615-.729.57.228 1.616 2.233 1.912c.25.228.296.615.068.866a.59.59 0 0 1 -.387.204h-.091a.585.585 0 0 1 -.41-.159l-1.162-1.002.205 1.503a.62.62 0 0 1 -.524.706h-.092a.634.634 0 0 1 -.615-.524l-.205-1.503-.843 1.298a.61.61 0 0 1 -.524.273.643.643 0 0 1 -.342-.09c-.296-.183-.365-.57-.182-.866l1.618-2.459-.228-1.616-.866-.342-1.276 1.002-.57 2.892c-.045.273-.273.455-.524.5h-.091c-.046 0-.068 0-.114-.022a.606.606 0 0 1 -.479-.729l.297-1.502-1.208.933a.48.48 0 0 1 -.296.114h-.091a.642.642 0 0 1 -.479-.228.616.616 0 0 1 .114-.865l1.208-.933-1.527-.092a.614.614 0 0 1 -.57-.66c.023-.318.297-.592.616-.592h.045l2.94.182 1.276-1.001-.137-.888-1.504-.615-2.78.98c-.045.022-.068.022-.114.022h-.09a.639.639 0 0 1 -.593-.41.617.617 0 0 1 .387-.797l1.458-.5-1.412-.57c-.32-.136-.479-.478-.342-.797a.588.588 0 0 1 .57-.387.81.81 0 0 1 .227.046l1.413.57-.706-1.367a.606.606 0 0 1 .273-.82.607.607 0 0 1 .274-.068c.227 0 .432.114.546.342l1.345 2.618 1.504.615.729-.57-.228-1.616-2.233-1.912c-.25-.228-.296-.615-.068-.866a.62.62 0 0 1 .478-.204c.137 0 .296.045.41.159l1.162 1.002-.205-1.503a.62.62 0 0 1 .524-.706c.046.091.069.069.092.069zm0-.774c-.068 0-.136 0-.205.022-.364.046-.706.25-.934.547-.137.182-.228.41-.273.614a1.217 1.217 0 0 0 -.57-.113c-.41 0-.797.182-1.07.478-.32.364-.411.865-.274 1.32a1.481 1.481 0 0 0 -.707-.182c-.228 0-.433.046-.638.16-.57.295-.866.91-.752 1.502h-.114a1.38 1.38 0 0 0 -1.298.888c-.137.341-.137.728.022 1.07.092.205.228.387.41.546a1.393 1.393 0 0 0 -.5 1.594c.159.432.523.774.956.888a1.352 1.352 0 0 0 -.66 1.115c-.023.365.113.729.364 1.025.16.182.342.319.57.387-.137.182-.205.41-.251.637-.046.365.046.752.273 1.048.274.341.684.546 1.117.546.068 0 .137 0 .205-.023.091-.023.205-.045.296-.068a1.449 1.449 0 0 0 1.14 1.252c.09.023.182.023.273.023.068 0 .137 0 .205-.023.342-.045.638-.205.843-.455 0 .114 0 .227.023.341.068.364.296.683.615.888.228.16.502.228.775.228.342 0 .66-.114.911-.342.228.478.73.797 1.277.797.068 0 .136 0 .205-.023.364-.045.706-.25.934-.546.137-.182.228-.41.273-.615.183.091.365.114.57.114.068 0 .137 0 .205-.023.342-.045.638-.227.866-.478.25-.296.364-.637.342-1.024 0-.091-.023-.205-.046-.296.205.114.456.182.707.182.068 0 .136 0 .205-.023a1.404 1.404 0 0 0 1.185-1.64l.113.001c.069 0 .137 0 .205-.023.502-.068.912-.41 1.117-.865a1.345 1.345 0 0 0 -.023-1.07 1.57 1.57 0 0 0 -.41-.546c.501-.365.706-1.002.501-1.594a1.432 1.432 0 0 0 -.957-.888c.388-.228.638-.637.661-1.115a1.457 1.457 0 0 0 -.364-1.025 1.217 1.217 0 0 0 -.57-.387c.137-.182.205-.41.25-.637a1.438 1.438 0 0 0 -.273-1.048 1.437 1.437 0 0 0 -1.116-.546 1.3 1.3 0 0 0 -.502.091 1.449 1.449 0 0 0 -1.139-1.252c-.091-.023-.182-.023-.273-.023-.41 0-.798.182-1.049.478a1.375 1.375 0 0 0 -.638-1.23 1.342 1.342 0 0 0 -.774-.227c-.342 0-.661.114-.912.342-.273-.456-.775-.774-1.321-.774zm1.915 4.872 1.275-1.958-.456 2.3-.684.545h-.022l-.114-.887zm-3.464.933-1.025-2.026 1.731 1.48.114.865zm5.355 2.14.683-.524 2.188.137-2.074.729zm-8.477 1.184 2.074-.729.797.32-.683.523zm7.406 1.434.82.319 1.026 2.026-1.732-1.48zm-3.51.934.684-.547h.023l.114.865-1.276 1.958.456-2.276z" fill="#fff"></path>\n          </g>\n        </g>\n      </svg>'}return new(x()).divIcon({className:"customPolygonIcon",popupAnchor:[0,-15],html:'<div class="customIcon">'.concat(n,"</div>")})}),n.state={data:e.data||[]},n}return(0,r.Z)(u,[{key:"render",value:function(){var e=this;return this.state.data.sort(function(e,n){return e.detailedData.alert.info[0].severity[0]>n.detailedData.alert.info[0].severity[0]?1:n.detailedData.alert.info[0].severity[0]>e.detailedData.alert.info[0].severity[0]?-1:0}),(0,C.jsxs)(C.Fragment,{children:[0===this.state.data.length?(0,C.jsx)("p",{className:"jsx-1531867083",children:"There are currently no active warnings."}):(0,C.jsx)("p",{className:"jsx-1531867083",children:"Click on an icon or region to see the details about that warning."}),(0,C.jsxs)("div",{className:"jsx-1531867083 map warnings",children:[(0,C.jsxs)("div",{className:"jsx-1531867083 wwmap",children:[(0,C.jsx)("div",{className:"jsx-1531867083 wwmapbg"}),(0,C.jsx)("div",{className:"jsx-1531867083 wwmapwrapper",children:(0,C.jsx)("span",{className:"jsx-1531867083 svg-logo-wrap",children:(0,C.jsx)("img",{src:"".concat(N.Co.assetsPath,"/misc/metservice-square.png"),alt:"",className:"jsx-1531867083"})})})]}),(0,C.jsxs)(h.h,{ref:this.mapRef,center:[-41.1,172.28],zoom:6,minZoom:5,zoomControl:!1,whenReady:this.whenReady,className:"map-container",children:[(0,C.jsx)(p.I,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:'\xa9 <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}),this.state.data.map(function(n,t){return n.detailedData.alert.info[0].area[0].polygon.map(function(a){var r=z.Z.chunky(a),o=n.detailedData.alert.info[0].parameter[2]&&"#"===Array.from(n.detailedData.alert.info[0].parameter[2].value[0])[0]?n.detailedData.alert.info[0].parameter[2].value[0]:n.detailedData.alert.info[0].parameter[1].value[0];return(0,C.jsxs)(b,{positions:r,color:o,children:[(0,C.jsx)(j.G,{children:e.popupInfo(n)}),(0,C.jsx)(y,{position:e.getCentroid(r),icon:"Road Snowfall Warning"===n.detailedData.alert.info[0].headline[0]?e.getPolygonIcon("roadsnow"):e.getPolygonIcon(n.detailedData.alert.info[0].event[0]),children:(0,C.jsx)(j.G,{children:e.popupInfo(n)})})]},"".concat(t,"-").concat(n.guid))})})]}),(0,C.jsx)("h3",{className:"jsx-1531867083",children:"Recent News and Interviews About Government Weather Forecasting Agencies MetService and Niwa"}),(0,C.jsxs)("ul",{className:"jsx-1531867083 story-list",children:[(0,C.jsxs)("li",{className:"jsx-1531867083",children:[(0,C.jsx)("a",{href:"https://www.data.govt.nz/open-data/what-is-open-data/",target:"_blank",rel:"noopener noreferrer",className:"jsx-1531867083",children:"What is Open Data?"})," (NZ Government)"]}),(0,C.jsxs)("li",{className:"jsx-1531867083",children:[(0,C.jsx)("a",{href:"https://www.newshub.co.nz/home/money/2019/09/metservice-niwa-under-investigation-by-commerce-commission-for-anti-competitive-behaviour.html",target:"_blank",rel:"noopener noreferrer",className:"jsx-1531867083",children:"MetService, NIWA under investigation by Commerce Commission for anti-competitive behaviour"})," (Newshub)"]}),(0,C.jsxs)("li",{className:"jsx-1531867083",children:[(0,C.jsx)("a",{href:"https://www.newsroom.co.nz/2019/10/25/874558/soes-need-to-be-good-corporate-citizens",target:"_blank",rel:"noopener noreferrer",className:"jsx-1531867083",children:"SOEs need to be good corporate citizens - Peter Dunne"})," (Newsroom)"]}),(0,C.jsxs)("li",{className:"jsx-1531867083",children:[(0,C.jsx)("a",{href:"https://www.stuff.co.nz/business/116203356/commerce-commission-investigating-niwa-and-metservice",target:"_blank",rel:"noopener noreferrer",className:"jsx-1531867083",children:"Commerce Commission investigating Niwa and MetService"})," (Stuff.co.nz)"]}),(0,C.jsxs)("li",{className:"jsx-1531867083",children:[(0,C.jsx)("a",{href:"https://nzherald.co.nz/business/news/article.cfm?c_id=3&objectid=12281087",target:"_blank",rel:"noopener noreferrer",className:"jsx-1531867083",children:"ComCom investigation: Concerns over MetService and Niwa weather forecast funding"})," (NZ Herald & Radio New Zealand)"]}),(0,C.jsxs)("li",{className:"jsx-1531867083",children:[(0,C.jsx)("a",{href:"https://www.stuff.co.nz/national/politics/115296637/competing-weather-forecasts-from-two-separate-govt-agencies-labelled-absurd",target:"_blank",rel:"noopener noreferrer",className:"jsx-1531867083",children:"Competing weather forecasts from two separate Govt agencies labelled 'absurd'"})," (Stuff.co.nz)"]}),(0,C.jsxs)("li",{className:"jsx-1531867083",children:[(0,C.jsx)("a",{href:"https://www.stuff.co.nz/national/the-detail/117037622/the-detail-funding-two-bodies-to-produce-the-same-weather-forecast",target:"_blank",rel:"noopener noreferrer",className:"jsx-1531867083",children:"The Detail: Funding two bodies to produce the same weather forecast"})," (RNZ, Newsroom and Stuff)"]})]}),"*/}"]}),(0,C.jsx)(f(),{id:"1531867083",children:[".warnings{min-width:30.0rem;position:relative;z-index:0;height:90.0rem;width:100%;}",".map-container{height:90.0rem;width:100%;}",".leaflet-container{position:relative;height:90.0rem;font-family:'NunitoSans-Regular',sans-serif;}",".leaflet-container a{font-size:1.1rem;}",".leaflet-popup-content p{margin:1.0rem 0;}",".leaflet-popup-content{min-width:30.0rem;}",".leaflet-gac-control{min-width:25.0rem;}",".title{font-size:2.6rem;line-height:3.2rem;color:rgb(10,56,91);}",".location{font-size:2.4rem;line-height:2.4rem;color:#828282;margin-top:1.0rem;}",".summary{font-size:1.6rem;line-height:2.2rem;color:#212429;border-bottom:1px solid rgba(0,0,0,0.1);padding:1.5rem 0;}",".smaller{padding-top:1.5rem;}",".smaller.no-top{padding-top:0;}",".wwmap{margin:1.0rem;text-align:center;z-index:1000;position:absolute;
1left:0;top:0;}",".wwmapbg{opacity:0.7;width:100%;height:100%;position:absolute;background-color:#ffffff;}",".wwmapwrapper{position:relative;white-space:nowrap;vertical-align:middle;display:inline-block;padding:0.5rem;}",".svg-logo-wrap{padding:0.5rem;}",".svg-logo-wrap img{max-width:10.0rem;}",".leaflet-top.leaflet-right{right:auto;left:0;}",".leaflet-top.leaflet-right .leaflet-gac-container.leaflet-control{margin-left:1.0rem;}",".leaflet-touch .leaflet-bar{border:none;}",".customIcon{width:3.0rem;height:3.0rem;border-radius:50% 50% 50% 50%;background:#ffffff;position:absolute;left:50%;top:50%;margin:-1.5rem 0 0 -1.5rem;}","h3{margin-top:4.0rem;padding-top:4.0rem;border-top:1px solid rgba(0,0,0,0.16);}",".story-list li{margin-left:2.0rem;padding:0.5rem 0;}","@media (min-width:576px){.leaflet-top.leaflet-right{right:0;}}"]})]})}}]),u}(d.Component)},1410:function(e,n,t){t.d(n,{Hb:function(){return r},UO:function(){return i},mE:function(){return c},sj:function(){return o}});var a=t(7294);function r(e){return Object.freeze({__version:1,map:e})}function o(e,n){return Object.freeze({...e,...n})}let l=(0,a.createContext)(null),i=l.Provider;function c(){let e=(0,a.useContext)(l);if(null==e)throw Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}},7999:function(e,n,t){t.d(n,{I:function(){return o},O:function(){return r}});var a=t(7294);function r(e,n,t){return Object.freeze({instance:e,context:n,container:t})}function o(e,n){return null==n?function(n,t){let r=(0,a.useRef)();return r.current||(r.current=e(n,t)),r}:function(t,r){let o=(0,a.useRef)();o.current||(o.current=e(t,r));let l=(0,a.useRef)(t),{instance:i}=o.current;return(0,a.useEffect)(function(){l.current!==t&&(n(i,t,l.current),l.current=t)},[i,t,r]),o}}},1512:function(e,n,t){t.d(n,{dW:function(){return h},SO:function(){return p},Au:function(){return m},Lf:function(){return g}});var a=t(7294),r=t(3935),o=t(1410);function l(e){return(0,a.forwardRef)(function(n,t){let{instance:r,context:l}=e(n).current;return(0,a.useImperativeHandle)(t,()=>r),null==n.children?null:a.createElement(o.UO,{value:l},n.children)})}var i=t(7999);function c(e,n){let t=(0,a.useRef)(n);(0,a.useEffect)(function(){n!==t.current&&null!=e.attributionControl&&(null!=t.current&&e.attributionControl.removeAttribution(t.current),null!=n&&e.attributionControl.addAttribution(n)),t.current=n},[e,n])}function s(e,n){let t=(0,a.useRef)();(0,a.useEffect)(function(){return null!=n&&e.instance.on(n),t.current=n,function(){null!=t.current&&e.instance.off(t.current),t.current=null}},[e,n])}var u=t(1802);function f(e,n){(0,a.useEffect)(function(){return(n.layerContainer??n.map).addLayer(e.instance),function(){n.layerContainer?.removeLayer(e.instance),n.map.removeLayer(e.instance)}},[n,e])}function d(e){return function(n){let t=(0,o.mE)(),a=e((0,u.q)(n,t),t);return c(t.map,n.attribution),s(a.current,n.eventHandlers),f(a.current,t),a}}function h(e,n){return l(d((0,i.I)(e,n)))}function p(e,n){var t,l;return t=(0,i.I)(e),l=function(e,a){let r=(0,o.mE)(),l=t((0,u.q)(e,r),r);return c(r.map,e.attribution),s(l.current,e.eventHandlers),n(l.current,r,e,a),l},(0,a.forwardRef)(function(e,n){let[t,o]=(0,a.useState)(!1),{instance:i}=l(e,o).current;(0,a.useImperativeHandle)(n,()=>i),(0,a.useEffect)(function(){t&&i.update()},[i,t,e.children]);let c=i._contentNode;return c?(0,r.createPortal)(e.children,c):null})}function m(e,n){var t;return l((t=(0,i.I)(e,n),function(e){let n=(0,o.mE)(),r=t((0,u.q)(e,n),n);return s(r.current,e.eventHandlers),f(r.current,n),function(e,n){let t=(0,a.useRef)();(0,a.useEffect)(function(){if(n.pathOptions!==t.current){let a=n.pathOptions??{};e.instance.setStyle(a),t.current=a}},[e,n])}(r.current,e),r}))}function g(e,n){var t;return t=d((0,i.I)(e,n)),(0,a.forwardRef)(function(e,n){let{instance:r}=t(e).current;return(0,a.useImperativeHandle)(n,()=>r),null})}},1802:function(e,n,t){t.d(n,{q:function(){return a}});function a(e,n){let t=e.pane??n.pane;return t?{...e,pane:t}:e}},5715:function(e,n,t){t.d(n,{h:function(){return i}});var a=t(1410),r=t(5243),o=t(7294);function l(){return(l=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}let i=(0,o.forwardRef)(function({bounds:e,boundsOptions:n,center:t,children:i,className:c,id:s,placeholder:u,style:f,whenReady:d,zoom:h,...p},m){let[g]=(0,o.useState)({className:c,id:s,style:f}),[v,w]=(0,o.useState)(null);(0,o.useImperativeHandle)(m,()=>v?.map??null,[v]);let x=(0,o.useCallback)(o=>{if(null!==o&&null===v){let l=new r.Map(o,p);null!=t&&null!=h?l.setView(t,h):null!=e&&l.fitBounds(e,n),null!=d&&l.whenReady(d),w((0,a.Hb)(l))}},[]);(0,o.useEffect)(()=>()=>{v?.map.remove()},[v]);let b=v?o.createElement(a.UO,{value:v},i):u??null;return o.createElement("div",l({},g,{ref:x}),b)})},2604:function(e,n,t){t.d(n,{G:function(){return i}});var a=t(1512),r=t(7999),o=t(5243),l=t(7294);let i=(0,a.SO)(function(e,n){let t=new o.Popup(e,n.overlayContainer);return(0,r.O)(t,n)},function(e,n,{position:t},a){(0,l.useEffect)(function(){let{instance:r}=e;
1function o(e){e.popup===r&&(r.update(),a(!0))}function l(e){e.popup===r&&a(!1)}return n.map.on({popupopen:o,popupclose:l}),null==n.overlayContainer?(null!=t&&r.setLatLng(t),r.openOn(n.map)):n.overlayContainer.bindPopup(r),function(){n.map.off({popupopen:o,popupclose:l}),n.overlayContainer?.unbindPopup(),n.map.removeLayer(r)}},[e,n,a,t])})},2013:function(e,n,t){t.d(n,{I:function(){return i}});var a=t(1512),r=t(1802),o=t(7999),l=t(5243);let i=(0,a.Lf)(function({url:e,...n},t){let a=new l.TileLayer(e,(0,r.q)(n,t));return(0,o.O)(a,t)},function(e,n,t){!function(e,n,t){let{opacity:a,zIndex:r}=n;null!=a&&a!==t.opacity&&e.setOpacity(a),null!=r&&r!==t.zIndex&&e.setZIndex(r)}(e,n,t);let{url:a}=n;null!=a&&a!==t.url&&e.setUrl(a)})}}]);

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.