(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2460],{61593:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return N}});var i=n(2784),r=n(64897),a=n(82091),s=n(79734),o=n(11815),l=n(11059),c=n(69428),u=n(1505),h=n(79788),d=n(98087),m=n(15820),f=n(6082),g=n(13852),w=n(92087),p=n(52322);const j=[{label:"All News",icon:s.Z,tags:[f.SYNDICATION.NCOM]},{label:"Game News",icon:o.Z,tags:[f.SYNDICATION.NCOM,"articleCategoryGameNews"]},{label:"Events and Promotions",icon:l.Z,tags:[f.SYNDICATION.NCOM,"articleCategoryEventsAndPromotions"]}],[k]=j;var N=!0;t.default=e=>{let{previewData:t}=e;const{text:n}=(0,a.useLocalizer)(),{locale:s,isPreview:o}=(0,r.Z)(),{0:l,1:f}=(0,i.useState)(k),{0:N,1:x}=(0,i.useState)(0),{data:C,loading:v}=(0,d.aM)(m.o$.Z9,{locale:s,offset:N,limit:30,tags:l.tags},{previewData:t}),{0:b,1:_}=(0,i.useState)(C?.collection.items),{0:I,1:y}=(0,i.useState)(C?.collection.total),{waitForElementRef:S}=(0,g.r)();return(0,i.useEffect)((()=>{const e=C?.collection.items;e&&C.collection.offset===N&&(_((t=>N?t.concat(e):e)),y(C.collection.total))}),[C?.collection,N]),(0,p.jsxs)(p.Fragment,{children:[o&&(0,p.jsx)(h.Xe,{}),(0,p.jsxs)(h.$0,{constrained:!0,small:!0,children:[(0,p.jsxs)(h.mr,{children:[(0,p.jsx)(w.YA,{}),(0,p.jsx)(w.gB,{children:n("News")})]}),(0,p.jsxs)(c.H.NewLevel,{children:[(0,p.jsxs)(w.sm,{children:[(0,p.jsx)(w.V7,{children:n("Filter Articles:")}),j.map((e=>(0,p.jsx)(w.Lb,{icon:e.icon,onClick:()=>{x(0),f(e)},variant:"quaternary",selected:e===l,still:!0,children:n(e.label)},e.label)))]}),(0,p.jsx)(h.wg,{articles:b}),b?.lengthx((e=>e+30)),children:n("Load more")})}),(0,p.jsx)("span",{ref:S})]})]})]})}},92087:function(e,t,n){"use strict";n.d(t,{Lb:function(){return l},V7:function(){return o},YA:function(){return h},e0:function(){return d},gB:function(){return u},nw:function(){return m},sm:function(){return c}});var i=n(7307),r=n(69428),a=n(7050),s=n(92445);const o=(0,i.default)(r.H).attrs({variant:"h3",as:"span"}).withConfig({componentId:"sc-1kkjjsh-0"})(["font-weight:",";font-size:",";","{font-size:",";}"],(e=>{let{theme:t}=e;return t.font.weight.bold}),(e=>{let{theme:t}=e;return t.font.size.h3Mobile}),(e=>{let{theme:t}=e;return t.mediaQuery.tabletSmall}),(e=>{let{theme:t}=e;return t.font.size.h3Desktop})),l=(0,i.default)(a.B).attrs({round:!0,size:"small"}).withConfig({componentId:"sc-1kkjjsh-1"})([""]),c=i.default.div.withConfig({componentId:"sc-1kkjjsh-2"})(["align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;gap:",";margin-bottom:",";","{margin:0;}","{gap:",";margin-bottom:",";}"],(e=>{let{theme:t}=e;return t.spacing[8]}),(e=>{let{theme:t}=e;return t.spacing[8]}),o,(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.spacing[24]}),(e=>{let{theme:t}=e;return t.spacing[24]})),u=(0,i.default)(r.H).attrs({variant:"h1",large:!0}).withConfig({componentId:"sc-1kkjjsh-3"})(["margin-right:auto;"]),h=(0,i.default)(s.Z).withConfig({componentId:"sc-1kkjjsh-4"})(["margin-right:",";width:",";","{width:",";}"],(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.spacing[32]}),(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),(e=>{let{theme:t}=e;return t.spacing[40]})),d=i.default.div.withConfig({componentId:"sc-1kkjjsh-5"})(["width:100%;display:flex;justify-content:center;margin-top:",";"],(e=>{let{theme:t}=e;return t.spacing[32]})),m=(0,i.default)(a.B).withConfig({componentId:"sc-1kkjjsh-6"})(["width:100%;","{width:auto;}"],(e=>{let{theme:t}=e;return t.mediaQuery.tablet}))},68963:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/whatsnew",function(){return n(61593)}])}},function(e){e.O(0,[507,2150,1369,5820,2072,9788,9774,2888,179],(function(){return t=68963,e(e.s=t);var t}));var t=e.O();_N_E=t}]);