!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8a8cdd53-7f95-4464-bba9-3c626c062a6d",e._sentryDebugIdIdentifier="sentry-dbid-8a8cdd53-7f95-4464-bba9-3c626c062a6d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2460],{4256:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return y}});var i=n(2784),r=n(64897),a=n(82091),s=n(21203),o=n(95933),l=n(92102),c=n(8735),d=n(17189),u=n(1505),f=n(88627),h=n(98087),g=n(76454),m=n(91159),w=n(95395),p=n(77047),j=n(52322);const b=[{label:"All",id:"all",tags:[m.RF.NCOM]},{label:"Game News",id:"game-news",icon:s.Z,tags:[m.RF.NCOM,"articleCategoryGameNews"]},{label:"Events",id:"events",icon:o.Z,tags:[m.RF.NCOM,"articleCategoryEvents"]},{label:"Promotions",id:"promotions",icon:l.Z,tags:[m.RF.NCOM,"articleCategoryPromotions"]},{label:"Nintendo Switch Online",id:"nintendo-switch-online",icon:c.Z,tags:[m.RF.NCOM,"syndicationNintendoSwitchOnline"]}],[k]=b;var y=!0;t.default=e=>{let{previewData:t}=e;const{text:n}=(0,a.useLocalizer)(),{locale:s,isPreview:o,asPath:l}=(0,r.Z)(),{0:c,1:m}=(0,i.useState)(k),{0:y,1:v}=(0,i.useState)(0),{data:x,loading:C}=(0,h.aM)(g.o$.Z9,{locale:s,offset:y,limit:30,tags:c.tags},{previewData:t}),_=(0,a.deserializeHash)(l)?.filter,{0:N,1:E}=(0,i.useState)(x?.collection.items),{0:I,1:O}=(0,i.useState)(x?.collection.total),{waitForElementRef:S}=(0,w.r)();return(0,i.useEffect)((()=>{const e=x?.collection.items;e&&x.collection.offset===y&&(E((t=>y?t.concat(e):e)),O(x.collection.total))}),[x?.collection,y]),(0,i.useEffect)((()=>{_&&m(b.find((e=>e.id===_))||k)}),[_]),(0,j.jsxs)(j.Fragment,{children:[o&&(0,j.jsx)(f.Xe,{}),(0,j.jsxs)(f.$0,{constrained:!0,small:!0,children:[(0,j.jsxs)(f.mr,{children:[(0,j.jsx)(p.YA,{}),(0,j.jsx)(p.gB,{children:n("News & Events")})]}),(0,j.jsxs)(d.H.NewLevel,{children:[(0,j.jsxs)(p.sm,{children:[(0,j.jsx)(p.V7,{children:n("Filter Articles:")}),b.map((e=>(0,j.jsx)(p.Lb,{icon:e.icon,onClick:()=>{v(0),m(e)},variant:"secondary",selected:e?.id===c?.id,still:!0,children:n(e.label)},e.label)))]}),(0,j.jsx)(f.wg,{articles:N}),N?.lengthv((e=>e+30)),children:n("Load more")})}),(0,j.jsx)("span",{ref:S})]})]})]})}},77047:function(e,t,n){"use strict";n.d(t,{Lb:function(){return l},V7:function(){return o},YA:function(){return u},e0:function(){return f},gB:function(){return d},nw:function(){return h},sm:function(){return c}});var i=n(7307),r=n(17189),a=n(66652),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:",";}"],(e=>{let{theme:t}=e;return t.spacing[8]}),(e=>{let{theme:t}=e;return t.spacing[24]}),o,(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.spacing[24]})),d=(0,i.default)(r.H).attrs({variant:"h1",large:!0}).withConfig({componentId:"sc-1kkjjsh-3"})(["margin-right:auto;"]),u=(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]})),f=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]})),h=(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(4256)}])}},function(e){e.O(0,[9774,2888,179],(function(){return t=68963,e(e.s=t);var t}));var t=e.O();_N_E=t}]); //# sourceMappingURL=whatsnew-1939a96b018f015b.js.map