!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]="80765485-381a-462e-b1ab-ddbba5bb03d4",e._sentryDebugIdIdentifier="sentry-dbid-80765485-381a-462e-b1ab-ddbba5bb03d4")}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(13154),u=n(1505),f=n(88627),h=n(98087),g=n(76454),m=n(91159),w=n(95395),b=n(77047),p=n(52322);const j=[{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]=j;var y=!0;t.default=()=>{const{text:e}=(0,a.useLocalizer)(),{locale:t,asPath:n}=(0,r.Z)(),{0:s,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:s.tags}),C=(0,a.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,p.jsx)(p.Fragment,{children:(0,p.jsxs)(f.$0,{constrained:!0,small:!0,children:[(0,p.jsxs)(f.mr,{children:[(0,p.jsx)(b.YA,{}),(0,p.jsx)(b.gB,{children:e("News & Events")})]}),(0,p.jsxs)(d.H.NewLevel,{children:[(0,p.jsxs)(b.sm,{children:[(0,p.jsx)(b.V7,{children:e("Filter Articles:")}),j.map((t=>(0,p.jsx)(b.Lb,{icon:t.icon,onClick:()=>{c(0),o(t)},variant:"secondary",selected:t?.id===s?.id,still:!0,children:e(t.label)},t.label)))]}),(0,p.jsx)(f.wg,{articles:_}),_?.lengthc((e=>e+30)),children:e("Load more")})}),(0,p.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(13154),a=n(47725),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-5ae7905fbd3c5797.js.map