1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[546],{5643:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_sites/[site]/newsroom",function(){return s(77173)}])},77173:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>x,default:()=>b,getHref:()=>N,getInitialCategories:()=>C,getParametersFromURI:()=>f});var l=s(69241),n=s(14232),o=s(77328),r=s.n(o),a=s(48230),i=s.n(a),u=s(89099),m=s(33021),g=s(72330),d=s(37099),c=s(7502),h=s(57575),p=s.n(h),w=s(37876),x=!0;function f(e){return Object.fromEntries((e.split("?")[1]??"").split("&").map(e=>{let[t,s]=e.split("=");return[t,s]}))}let C=(e,t)=>{let s=f(e).category;return t.some(e=>e.slug===s)?s:null},N=(e,t)=>`/${e}${t?`?category=${t}`:""}`,b=({config:e,flags:t,footer:s,isPreviewMode:o,navigation:a,site:h,entries:x,categories:f,pageLayout:b,seomatic:_,alertBanners:j,options:v})=>{let y=(0,u.useRouter)(),[k,E]=(0,n.useState)(C(y.asPath,f)),A=(0,n.useMemo)(()=>{let e=[],t=k?x.filter(e=>e.newsCategory?.[0]?.slug===k):x;for(let s=0;s<t.length;s+=15)e.push(t.slice(s,s+15));return e},[k,x]),F=(0,n.useMemo)(()=>A.map((e,t)=>{let s=e.map(e=>{let t=e.newsCategory?.[0],s=e.newsImage?.[0],l=e.title??"News Entry",n=s?.title??`${l} Image`,o=e.assetFile&&e.assetFile.length?e.assetFile[0]:void 0;return{cardEyeBrow:t?.title??void 0,cardTitle:l,description:e.newsDescription??void 0,imageURL:s?.url??"https://via.placeholder.com/300",downloadLink:o?{url:o.url,filename:o.filename}:void 0,imageAltText:n,showDownloadButton:!0}});return(0,w.jsx)(g.A,{resourcesList:s,numberOfColumns:3,imageAlignment:"top",classes:{containerComponent:p().blogContainer,cardGridComponent:p().blogCardsGrid,subContainerComponent:p().blogSubContainer}},t)}),[A]),P=(0,n.useCallback)((e,t)=>x.filter(t=>t.newsCategory?.[0]?.slug===e.slug).length>0?(0,w.jsx)(i(),{href:N("newsroom",e.slug),shallow:!0,className:(0,l.A)("text-left text-sm text-white",{"font-bold text-green-1":e.slug===k}),onClick:()=>E(e.slug),children:e.title},e.slug??t):(0,w.jsx)(w.Fragment,{}),[k,x]);return(0,w.jsxs)(d.A,{config:e,flags:t,isPreviewMode:o,footer:s,navigation:a,site:h,seomatic:_,alertBanners:j,hideGlobalNav:v.hideNavBar,hideFooter:v.hideFooter,children:[(0,w.jsx)(r(),{children:(0,w.jsxs)("title",{children:["Metronet","business"===h?" Business":""," | Newsroom"]})}),(0,w.jsx)(c.A,{pageLayout:b}),(0,w.jsxs)("div",{className:p().blogPageContent,children:[(0,w.jsxs)("div",{className:"flex flex-col md:min-w-[11.25rem] gap-4 mt-4 md:gap-2 md:mt-12",children:[(0,w.jsx)("span",{className:"text-white text-display-xs",children:"Categories"}),(0,w.jsxs)("div",{className:"flex flex-row flex-wrap gap-8 gap-y-2 md:gap-2 md:flex-col",children:[(0,w.jsx)(i(),{href:N("newsroom",null),shallow:!0,className:(0,l.A)("text-left text-sm text-white",{"font-bold text-green-1":!k}),onClick:()=>E(null),children:"All"}),f.map(P)]})]}),(0,w.jsx)(m.dK,{className:"grow",pages:F,currentPage:y.query.page?y.query.page-1:0,onChange:e=>{let t={page:e+1,...k?{category:k}:void 0};y.push({pathname:"/newsroom",query:t},void 0,{shallow:!0}).then(()=>setTimeout(()=>window.scroll({top:0,behavior:"smooth"})))}})]})]})}}},e=>{e.O(0,[871,716,781,21,997,170,842,717,415,454,93,882,69,636,593,792],()=>e(e.s=5643)),_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.