!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a18c30eb-2c65-4dce-849b-1957faf76db7",e._sentryDebugIdIdentifier="sentry-dbid-a18c30eb-2c65-4dce-849b-1957faf76db7")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8643],{95539:function(e,n,a){"use strict";a.r(n),a.d(n,{__N_SSP:function(){return _}});var s=a(2784),r=a(34778),t=a(13154),i=a(40105),l=a(91858),o=a(47725),c=a(73387),d=a(8735),h=a(68374),m=a(13678),x=a(82091),u=a(90862),j=a(88627),p=a(53023),g=a(20120),f=a(51312),b=a(10344),y=a(52322);const v=(e,n)=>e.caption>n.caption?1:e.captionObject.entries(n.classicGamesData).flatMap((e=>{let[n,a]=e;return a.map((e=>(e.console=n,e)))}))),[n.classicGamesData]);return(0,s.useEffect)((()=>{Z(T?k.filter((e=>e.console===T)).sort(v):k.sort(v).slice(0,w))}),[n,T,k,w]),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(p.Z,{legalFooterData:a[6].richText,children:[(0,y.jsx)(j.$0,{background:r.d.color.primary,children:(0,y.jsxs)(j.tm,{variant:"light",small:!0,asset:a[0].modules[0].asset,children:[(0,y.jsx)(t.H,{variant:"h1",children:a[0].modules[0].heading}),(0,y.jsx)(j.Ho,{data:a[0].modules[0].body})]})}),(0,y.jsxs)(j.$0,{constrained:!0,children:[(0,y.jsxs)(g.Sz,{small:!0,asset:a[7]?.asset,children:[(0,y.jsx)(t.H,{variant:"h1",children:a[7]?.heading}),(0,y.jsx)(j.Ho,{data:a[7]?.body})]}),!a[8]?.hide&&(0,y.jsxs)(j.$0,{constrained:!0,children:[(0,y.jsx)(i.R,{constrained:!0,children:a[8].modules[0].assets.map(((e,n)=>{const{name:a,console:s}=(e=>{const n=e.split(" ::: ");return{name:n?.[0],console:n?.[1]}})(e?.caption);return(0,y.jsxs)(g.fN,{children:[(0,y.jsx)(g.MX,{trimBackground:!0,assetPath:e.primary.assetPath,alt:e.alt}),(0,y.jsx)(l.T,{variant:"title",children:a}),(0,y.jsx)(l.T,{variant:"legal",children:s})]},e?.caption+n)}))}),(0,y.jsx)(f.Z,{showFancyBorder:!1,iconUrl:"https://assets.nintendo.com/image/upload/v1669768504/ncom/en_US/switch/online-service/comparison-table/275x275_icons_classics.png"})]})]}),(0,y.jsxs)(t.H.NewLevel,{children:[(0,y.jsx)(j.$0,{constrained:!0,small:!0,marginBottom:24,marginTop:0,children:(0,y.jsx)(g.wh,{variant:"h3",children:(0,y.jsx)(g.o$,{data:a[1]?.modules[0]?.richText})})}),(0,y.jsx)(j.$0,{constrained:!0,marginBottom:0,marginTop:16,children:(0,y.jsx)(g.bn,{children:(0,y.jsx)(g.l1,{children:[{filter:null,label:"Show all"},{filter:"NES",label:"Nintendo Entertainment System\u2122"},{filter:"Super NES",label:"Super Nintendo Entertainment System\u2122"},{filter:"Game Boy",label:"Game Boy\u2122"},{filter:"Nintendo 64",label:"Nintendo 64\u2122"},{filter:"Game Boy Advance",label:"Game Boy\u2122 Advance"}].map(((e,n)=>(0,y.jsx)(o.B,{round:!0,size:"small",selected:T===e.filter,variant:"quaternary",onClick:()=>{return null===(n=e.filter)&&N(16),void B(n);var n},still:!0,children:_(e.label)},e.filter+n)))})})}),(0,y.jsxs)(j.$0,{constrained:!0,small:!0,marginTop:0,children:[(0,y.jsx)(u.rj,{columns:"repeat(2, minmax(0px, 1fr))",gap:16,tablet:{columns:"repeat(3, minmax(0px, 1fr))",gap:32},desktop:{columns:"repeat(4, minmax(0px, 1fr))",gap:48},children:S.map(((e,n)=>(0,y.jsxs)(g.fN,{children:[(0,y.jsx)(g.MX,{trimBackground:!0,assetPath:e.primary.assetPath,alt:e.alt}),(0,y.jsx)(l.T,{variant:"title",children:e.caption}),(0,y.jsx)(l.T,{variant:"legal",children:e.console})]},e.primary.caption+n)))}),null===T&&wN(w+16),variant:"tertiary",children:_("Load more")})]})]}),(0,y.jsxs)(j.$0,{small:!0,background:r.d.color.lightGray4,constrained:!0,marginTop:0,marginBottom:96,children:[(0,y.jsx)(f.Z,{showFancyBorder:!1,iconUrl:"https://assets.nintendo.com/image/upload/v1669768504/ncom/en_US/switch/online-service/comparison-table/275x275_icons_sega.png",alignToBorder:!0}),(0,y.jsx)(g.NZ,{children:(0,y.jsx)(t.H,{children:a[3].heading})}),(0,y.jsxs)(j.tm,{reverseContent:!0,asset:a[3].modules[0].asset,children:[(0,y.jsx)(t.H,{variant:"h3",children:a[3].modules[0].heading}),(0,y.jsx)(j.Ho,{data:a[3].modules[0].body}),(0,y.jsx)(c.S,{size:24}),(0,y.jsx)(o.B,{variant:"secondary",href:a[3].modules[0].cta.url,children:a[3].modules[0].cta.label})]})]}),(0,y.jsxs)(j.$0,{small:!0,constrained:!0,marginTop:0,id:a[4].deepLink,children:[(0,y.jsx)(f.Z,{showFancyBorder:!1,icon:d.Z,iconColor:r.d.color.primary,alignToBorder:!0}),(0,y.jsx)(g.NZ,{children:(0,y.jsx)(j.Ho,{data:a[4].modules[0].richText})}),(0,y.jsx)(b.Z,{cta:a[4].cta,ctaHeading:a[4].heading,data:n.membershipTableData})]}),(0,y.jsxs)(j.$0,{small:!0,constrained:!0,marginTop:0,children:[(0,y.jsx)(f.Z,{showFancyBorder:!1,icon:h.Z,iconColor:r.d.color.primary}),(0,y.jsxs)(g.NZ,{children:[(0,y.jsx)(t.H,{children:a[5].heading}),(0,y.jsx)(j.Ho,{data:a[5].modules[0].richText})]}),a[5].modules.map(((e,n)=>{if("modulePromoC"===e.__contentType&&e.body)return(0,y.jsx)(j.oW,{heading:e.heading,children:(0,y.jsx)(j.Ho,{data:e.body})},e.heading+n)})),(0,y.jsx)(c.S,{size:32}),(0,y.jsx)(g.NZ,{children:(0,y.jsx)(o.B,{size:"large",variant:"secondary",href:a[5].cta.url,children:a[5].cta.label})})]})]})]}),(0,y.jsx)(g.NZ,{children:(0,y.jsx)(m.E,{rating:"e-m"})})]})}},69852:function(e,n,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/switch/online/nintendo-switch-online/classic-games",function(){return a(95539)}])}},function(e){e.O(0,[8669,9774,2888,179],(function(){return n=69852,e(e.s=n);var n}));var n=e.O();_N_E=n}]); //# sourceMappingURL=classic-games-b5c31548433d1f29.js.map