!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]="6c647fc6-a45c-41b8-b6db-b3439e74eea5",e._sentryDebugIdIdentifier="sentry-dbid-6c647fc6-a45c-41b8-b6db-b3439e74eea5")}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),s=n(82091),a=n(21203),o=n(95933),l=n(92102),c=n(8735),d=n(14516),u=n(1505),f=n(55850),h=n(98087),g=n(76454),m=n(91159),w=n(95395),p=n(77047),b=n(52322);const j=[{label:"All",id:"all",tags:[m.RF.NCOM]},{label:"Game News",id:"game-news",icon:a.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]=j;var y=!0;t.default=()=>{const{text:e}=(0,s.useLocalizer)(),{locale:t,asPath:n}=(0,r.Z)(),{0:a,1:o}=(0,i.useState)(k),{0:l,1:c}=(0,i.useState)(0),{data:m,loading:y}=(0,h.aM)(g.o$.Z9,{locale:t,offset:l,limit:30,tags:a.tags}),C=(0,s.deserializeHash)(n)?.filter,{0:_,1:x}=(0,i.useState)(m?.collection.items),{0:v,1:N}=(0,i.useState)(m?.collection.total),{waitForElementRef:E}=(0,w.r)();return(0,i.useEffect)((()=>{const e=m?.collection.items;e&&m.collection.offset===l&&(x((t=>l?t.concat(e):e)),N(m.collection.total))}),[m?.collection,l]),(0,i.useEffect)((()=>{C&&o(j.find((e=>e.id===C))||k)}),[C]),(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)(f.$0,{constrained:!0,small:!0,children:[(0,b.jsxs)(f.mr,{children:[(0,b.jsx)(p.YA,{}),(0,b.jsx)(p.gB,{children:e("News & Events")})]}),(0,b.jsxs)(d.H.NewLevel,{children:[(0,b.jsxs)(p.sm,{children:[(0,b.jsx)(p.V7,{children:e("Filter Articles:")}),j.map((t=>(0,b.jsx)(p.Lb,{icon:t.icon,onClick:()=>{c(0),o(t)},variant:"secondary",selected:t?.id===a?.id,still:!0,children:e(t.label)},t.label)))]}),(0,b.jsx)(f.wg,{articles:_}),_?.lengthc((e=>e+30)),children:e("Load more")})}),(0,b.jsx)("span",{ref:E})]})]})})}},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(14516),s=n(5719),a=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)(s.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)(a.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)(s.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-6ddad539fee7bebd.js.map