1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[134],{7304:function(e,r,t){"use strict";var n=t(2777),s=t(2262),a=t(748),o=t(5959),i=t(3553),c=t(7247),l=t(9499),u=t(135),d=t.n(u),x=t(7294),h=t(1664),m=t.n(h),p=t(5893),g=function(e){(0,o.Z)(u,e);var r,t=(r=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=r?Reflect.construct(t,arguments,(0,c.Z)(this).constructor):t.apply(this,arguments),(0,i.Z)(this,e)});function u(){var e;(0,n.Z)(this,u);for(var r=arguments.length,s=Array(r),o=0;o<r;o++)s[o]=arguments[o];return e=t.call.apply(t,[this].concat(s)),(0,l.Z)((0,a.Z)(e),"renderPreviousBlock",function(e,r,t){var n=t-1;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{className:"jsx-67371151 page-number previous",children:t>1?(0,p.jsx)(p.Fragment,{children:""!==r?(0,p.jsx)(m(),{href:"/".concat(e,"/").concat(r,"?page=").concat(n),prefetch:!1,legacyBehavior:!0,children:(0,p.jsx)("a",{className:"jsx-67371151",children:"<"})}):(0,p.jsx)(m(),{href:"/".concat(e,"?page=").concat(n),prefetch:!1,legacyBehavior:!0,children:(0,p.jsx)("a",{className:"jsx-67371151",children:"<"})})}):(0,p.jsx)("span",{className:"jsx-67371151",children:"<"})}),(0,p.jsx)(d(),{id:"67371151",children:[".page-number.jsx-67371151,.page-number.jsx-67371151 a.jsx-67371151{font-size:1.6rem;color:#212429;}",".page-number.jsx-67371151 span.jsx-67371151{font-size:1.6rem;color:#E0E0E0;}",".page-number.jsx-67371151 a.jsx-67371151{-webkit-text-decoration:none;text-decoration:none;}",".page-number.jsx-67371151 a.jsx-67371151:hover{-webkit-text-decoration:underline;text-decoration:underline;}",".page-number.jsx-67371151{padding:0.5rem;}",".page-number.current.jsx-67371151 span.jsx-67371151{color:#4D9CD8;}"]})]})}),(0,l.Z)((0,a.Z)(e),"renderNextBlock",function(e,r,t,n){var s=n+1;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{className:"jsx-67371151 page-number next",children:n<t?(0,p.jsx)(p.Fragment,{children:""!==r?(0,p.jsx)(m(),{href:"/".concat(e,"/").concat(r,"?page=").concat(s),prefetch:!1,legacyBehavior:!0,children:(0,p.jsx)("a",{className:"jsx-67371151",children:">"})}):(0,p.jsx)(m(),{href:"/".concat(e,"?page=").concat(s),prefetch:!1,legacyBehavior:!0,children:(0,p.jsx)("a",{className:"jsx-67371151",children:">"})})}):(0,p.jsx)("span",{className:"jsx-67371151",children:">"})}),(0,p.jsx)(d(),{id:"67371151",children:[".page-number.jsx-67371151,.page-number.jsx-67371151 a.jsx-67371151{font-size:1.6rem;color:#212429;}",".page-number.jsx-67371151 span.jsx-67371151{font-size:1.6rem;color:#E0E0E0;}",".page-number.jsx-67371151 a.jsx-67371151{-webkit-text-decoration:none;text-decoration:none;}",".page-number.jsx-67371151 a.jsx-67371151:hover{-webkit-text-decoration:underline;text-decoration:underline;}",".page-number.jsx-67371151{padding:0.5rem;}",".page-number.current.jsx-67371151 span.jsx-67371151{color:#4D9CD8;}"]})]})}),(0,l.Z)((0,a.Z)(e),"renderPageBlocks",function(e,r,t,n){var s=[],a=1;for(t>10&&(n-5<0?(a=1,t=10):(a=n-5,t=n===t?t:n+4));a<t+1;a++)s.push((0,p.jsxs)(x.Fragment,{children:[(0,p.jsx)("span",{className:"jsx-3021482765 "+"page-number ".concat(a===n?"current":""),children:a!==n?(0,p.jsx)(p.Fragment,{children:""!==r?(0,p.jsx)(m(),{href:"/".concat(e,"/").concat(r,"?page=").concat(a),prefetch:!1,legacyBehavior:!0,children:(0,p.jsx)("a",{className:"jsx-3021482765",children:a})}):(0,p.jsx)(m(),{href:"/".concat(e,"?page=").concat(a),prefetch:!1,legacyBehavior:!0,children:(0,p.jsx)("a",{className:"jsx-3021482765",children:a})})}):(0,p.jsx)("span",{className:"jsx-3021482765",children:a})}),(0,p.jsx)(d(),{id:"3021482765",children:[".page-number.jsx-3021482765,.page-number.jsx-3021482765 a.jsx-3021482765{font-size:1.6rem;color:#212429;}",".page-number.jsx-3021482765 span.jsx-3021482765{font-size:1.6rem;color:#E0E0E0;}",".page-number.jsx-3021482765 a.jsx-3021482765{-webkit-text-decoration:none;text-decoration:none;}",".page-number.jsx-3021482765 a.jsx-3021482765:hover{-webkit-text-decoration:underline;text-decoration:underline;}",".page-number.jsx-3021482765{padding:0.5rem;}",".page-number.current.jsx-3021482765 span.jsx-3021482765{color:#4D9CD8;}"]})]},a));return s}),e}return(0,s.Z)(u,[{key:"render",value:function(){var e=this.props,r=e.type,t=e.subPage,n=void 0===t?"":t,s=e.totalPages,a=e.currentPage;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{className:"jsx-4158944106 pagination",children:[this.renderPreviousBlock(r,n,a),this.renderPageBlocks(r,n,s,a),this.renderNextBlock(r,n,s,a)]}),(0,p.jsx)(d(),{id:"4158944106",children:[".pagination.jsx-4158944106{margin:3.0rem 0 4.0rem 0;text-align:center;}"]})]})}}]),u}(x.Component);r.Z=g},1974:function(e,r,t){"use strict";t.r(r);var n=t(29),s=t(2777),a=t(2262),o=t(5959),i=t(3553),c=t(7247),l=t(135),u=t.n(l),d=t(4687),x=t.n(d),h=t(7294),m=t(9993),p=t(3673),g=t(5893),j=function(e){(0,o.Z)(d,e);var r,t,l=(r=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)(d);return e=r?Reflect.construct(t,arguments,(0,c.Z)(this).constructor):t.apply(this,arguments),(0,i.Z)(this,e)});function d(){return(0,s.Z)(this,d),l.apply(this,arguments)}return(0,a.Z)(d,[{key:"render",value:function(){var e=this.props,r=e.siteName,t=e.siteDescription,n=e.dateTime,s=e.breaking,a=e.statusCode,o=e.headerMenu,i=e.topBarMenu,c=e.bottomBarMenu;return(0,g.jsxs)(m.Z,{siteName:r,siteDescription:t,pageType:"error",pageTitle:"Error",pageDescription:"Error",dateTime:n,breaking:s,topBarMenu:i,headerMenu:o,bottomBarMenu:c,children:[(0,g.jsx)("div",{className:"jsx-2204277875 section-error grid-wrapper grid-width-12",children:(0,g.jsxs)("div",{className:"jsx-2204277875 section-error-container grid-container",children:[(0,g.jsx)("div",{className:"jsx-2204277875 grid-width-7-gutter",children:(0,g.jsx)("h2",{className:"jsx-2204277875",children:"Error"})}),(0,g.jsx)("div",{className:"jsx-2204277875 grid-item grid-width-7-gutter content-area",children:(0,g.jsxs)("div",{className:"jsx-2204277875 content",children:[a&&404===a&&(0,g.jsxs)("p",{className:"jsx-2204277875",children:["A ",a," error occurred. Looks like you got to a page that doesn't exist. Try going back to the ",(0,g.jsx)("a",{href:"/",className:"jsx-2204277875",children:"homepage"}),"."]}),a&&404!==a&&(0,g.jsxs)("p",{className:"jsx-2204277875",children:["A ",a," error occurred. Sorry about that. We've been notified and will look into this. Try going back to the ",(0,g.jsx)("a",{href:"/",className:"jsx-2204277875",children:"homepage"}),"."]}),!a&&(0,g.jsxs)("p",{className:"jsx-2204277875",children:["An error occurred. Sorry about that. We've been notified and will look into this. Try going back to the ",(0,g.jsx)("a",{href:"/",className:"jsx-2204277875",children:"homepage"}),"."]})]})}),(0,g.jsx)("div",{className:"jsx-2204277875 grid-item grid-width-5-gutter content-area",children:(0,g.jsx)(p.Z,{unitType:"mrec"})})]})}),(0,g.jsx)(u(),{id:"2204277875",children:["h2.jsx-2204277875{margin:4.0rem 0 3.0rem 0;}",".section-error-container.jsx-2204277875{margin:0 4.0rem;}","@media (max-width:767px){.section-error-container.jsx-2204277875{margin:0 2.0rem;}}"]})]})}}],[{key:"getInitialProps",value:(t=(0,n.Z)(x().mark(function e(r){var t,n,s;return x().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.res,n=r.err,s=t?t.statusCode:n?n.statusCode:404,e.abrupt("return",{statusCode:s});case 3:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})}]),d}(h.Component);r.default=j},3132:function(e,r,t){"use strict";t.r(r);var n=t(6835),s=t(29),a=t(2777),o=t(2262),i=t(5959),c=t(3553),l=t(7247),u=t(135),d=t.n(u),x=t(4687),h=t.n(x),m=t(7294),p=t(1974),g=t(4751),j=t.n(g),f=t(7928),b=t(9993),y=t(1886),v=t
1(8428),N=t(3673),w=t(1664),k=t.n(w),Z=t(7469),P=t(7304),B=t(5893),E=new(j())({endpoint:v.Co.apiUrl});E.topPosts=E.registerRoute("weatherwatch/v1","top"),E.adRefresh=E.registerRoute("weatherwatch/v1","/ad-refresh");var R=function(e){(0,i.Z)(x,e);var r,t,u=(r=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,l.Z)(x);return e=r?Reflect.construct(t,arguments,(0,l.Z)(this).constructor):t.apply(this,arguments),(0,c.Z)(this,e)});function x(){return(0,a.Z)(this,x),u.apply(this,arguments)}return(0,o.Z)(x,[{key:"componentDidMount",value:function(){f.eX.setTargetingArguments({Page:"news"}),"yes"===this.props.adRefresh.ad_refresh&&setInterval(function(){f.eX.refresh()},3e4),f.eX.load()}},{key:"render",value:function(){var e=this.props,r=e.siteName,t=e.siteDescription,n=e.dateTime,s=e.breaking,a=e.newsItems,o=e.allCategories,i=e.topPosts,c=e.totalPages,l=e.currentPage,u=e.headerMenu,x=e.topBarMenu,h=e.bottomBarMenu;if(!a||0===a.length)return(0,B.jsx)(p.default,{statusCode:404});var g=o.map(function(e){if("No Category"!==e.name&&"RuralWeather.co.nz"!==e.name)return(0,B.jsxs)(m.Fragment,{children:[(0,B.jsx)("li",{className:"jsx-215847374 category-item",children:(0,B.jsx)(k(),{as:"/category/".concat(e.slug),href:"/category?slug=".concat(e.slug,"&apiRoute=category"),legacyBehavior:!0,children:(0,B.jsx)("a",{className:"jsx-215847374",children:e.name})})}),(0,B.jsx)(d(),{id:"215847374",children:[".category-item.jsx-215847374{list-style:none;display:inline-block;padding:0.25rem 1.0rem;margin:0.5rem;background-color:#E3E3E3;border-radius:3.0rem;}",".category-item.current.jsx-215847374{background-color:#4D9CD8;}",".category-item.current.jsx-215847374 a.jsx-215847374{color:#ffffff;}",".category-item.jsx-215847374 a.jsx-215847374{font-size:1.6rem;line-height:2.2rem;color:#000000;-webkit-text-decoration:none;text-decoration:none;}"]})]},e.id)});return(0,B.jsxs)(b.Z,{siteName:r,siteDescription:t,pageType:"news",pageTitle:"News",pageDescription:"News",dateTime:n,breaking:s,topBarMenu:x,headerMenu:u,bottomBarMenu:h,children:[(0,B.jsx)("div",{className:"jsx-3481738306 section-news grid-wrapper grid-width-12",children:(0,B.jsxs)("div",{className:"jsx-3481738306 section-news-container grid-container",children:[(0,B.jsxs)("div",{className:"jsx-3481738306 grid-width-8",children:[(0,B.jsxs)("p",{className:"jsx-3481738306 breadcrumbs",children:[(0,B.jsx)(k(),{as:"/",href:"/page/home",legacyBehavior:!0,children:(0,B.jsx)("a",{className:"jsx-3481738306",children:"Home"})}),"\xa0>\xa0 News"]}),(0,B.jsx)("h2",{className:"jsx-3481738306",children:"News"}),(0,B.jsxs)("ul",{className:"jsx-3481738306 categories-list",children:[(0,B.jsx)("li",{className:"jsx-3481738306 category-item current",children:(0,B.jsx)(k(),{href:"/news",legacyBehavior:!0,children:(0,B.jsx)("a",{className:"jsx-3481738306",children:"All"})})}),g]})]}),(0,B.jsxs)("div",{className:"jsx-3481738306 grid-item grid-width-8 content-area",children:[(0,B.jsx)(Z.Z,{items:a}),(0,B.jsx)(P.Z,{type:"news",totalPages:c,currentPage:l})]}),(0,B.jsxs)("div",{className:"jsx-3481738306 grid-item grid-width-4 content-area",children:[(0,B.jsx)(N.Z,{unitType:"mrec"}),(0,B.jsx)("h3",{className:"jsx-3481738306",children:"Top Articles"}),(0,B.jsx)(Z.Z,{type:"top",items:i}),(0,B.jsx)(N.Z,{unitType:"mrec2"}),(0,B.jsx)(N.Z,{unitType:"homepage-mrec2-long"})]})]})}),(0,B.jsx)(d(),{id:"3481738306",children:[".breadcrumbs.jsx-3481738306{margin:4.0rem 0 3.0rem 0;font-size:1.6rem;color:rgba(0,0,0,0.5);}",".breadcrumbs.jsx-3481738306 a.jsx-3481738306{color:rgba(0,0,0,0.5);font-size:1.6rem;line-height:2.2rem;}",".categories-list.jsx-3481738306{margin:3.0rem 0;}",".category-item.jsx-3481738306{list-style:none;display:inline-block;padding:0.25rem 1.0rem;margin:0.5rem;background-color:#E3E3E3;border-radius:3.0rem;}",".category-item.current.jsx-3481738306{background-color:#4D9CD8;}",".category-item.current.jsx-3481738306 a.jsx-3481738306{color:#ffffff;}",".category-item.jsx-3481738306 a.jsx-3481738306{font-size:1.6rem;line-height:2.2rem;color:#000000;-webkit-text-decoration:none;text-decoration:none;}",".section-news-container.jsx-3481738306{margin:0 4.0rem;}","h3.jsx-3481738306{font-size:2.8rem;line-height:2.8rem;color:#000000;margin-top:3.0rem;}","@media (max-width:767px){.section-news-container.jsx-3481738306{margin:0 2.0rem;}}"]})]})}}],[{key:"getInitialProps",value:(t=(0,s.Z)(h().mark(function e(r){var t,a,o,i,c,l,u,d,x,m,p;return h().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=1,!r.query||!(a=r.query.page)){e.next=7;break}if(!isNaN(a)){e.next=6;break}return e.abrupt("return",null);case 6:t=parseInt(a);case 7:return e.next=9,E.posts().order("desc").orderby("date").perPage(10).embed();case 9:if(o=e.sent,i=1,o._paging&&(i=o._paging.totalPages),!(t>
1i||t<=0)){e.next=14;break}return e.abrupt("return",null);case 14:return e.next=16,E.topPosts().then(function(e){return e});case 16:return c=(e.sent||[]).map(function(){var e=(0,s.Z)(h().mark(function e(r){return h().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",E.posts().id(r).embed());case 1:case"end":return e.stop()}},e)}));return function(r){return e.apply(this,arguments)}}()),e.next=20,Promise.all(c);case 20:return l=e.sent,e.next=23,Promise.all([E.posts().excludeCategories(22).excludeTags(39).order("desc").orderby("date").perPage(10).page(t).embed(),E.categories().perPage(100).embed()]);case 23:return u=e.sent,x=(d=(0,n.Z)(u,2))[0],m=d[1],e.next=29,E.adRefresh().then(function(e){return e});case 29:return p=e.sent,e.abrupt("return",{newsItems:x,allCategories:m,topPosts:l,totalPages:i,currentPage:t,adRefresh:p});case 31:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})}]),x}(m.Component);r.default=(0,y.Z)(R)},5115:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/news",function(){return t(3132)}])},4410:function(e,r,t){"use strict";t.d(r,{Z:function(){return o}});var n=t(7294),s=t(1228),a=t(9347);class o extends n.Component{constructor(e){super(e),e.cookies?this.cookies=e.cookies:this.cookies=new s.Z(void 0,e.defaultSetOptions)}render(){return n.createElement(a.zt,{value:this.cookies},this.props.children)}}},7812:function(e,r,t){"use strict";t.d(r,{Z:function(){return a}});var n=t(2587),s=t(2937);function a(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,s.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}}},function(e){e.O(0,[61,348,409,888,774,179],function(){return e(e.s=5115)}),_N_E=e.O()}]);
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.