!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]="a5a37311-ea9e-4cd5-9ef0-d2df09140447",e._sentryDebugIdIdentifier="sentry-dbid-a5a37311-ea9e-4cd5-9ef0-d2df09140447")}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(47823),t=a(57724),i=a(62770),l=a(24103),o=a(90374),c=a(89214),d=a(8735),h=a(68374),m=a(96739),x=a(82091),u=a(90862),j=a(88627),p=a(53023),g=a(20120),f=a(51312),y=a(10344),b=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,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(p.Z,{legalFooterData:a[6].richText,children:[(0,b.jsx)(j.$0,{background:r.d.color.primary,children:(0,b.jsxs)(j.tm,{variant:"light",small:!0,asset:a[0].modules[0].asset,children:[(0,b.jsx)(t.H,{variant:"h1",children:a[0].modules[0].heading}),(0,b.jsx)(j.Ho,{data:a[0].modules[0].body})]})}),(0,b.jsxs)(j.$0,{constrained:!0,children:[(0,b.jsxs)(g.Sz,{small:!0,asset:a[7]?.asset,children:[(0,b.jsx)(t.H,{variant:"h1",children:a[7]?.heading}),(0,b.jsx)(j.Ho,{data:a[7]?.body})]}),!a[8]?.hide&&(0,b.jsxs)(j.$0,{constrained:!0,children:[(0,b.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,b.jsxs)(g.fN,{children:[(0,b.jsx)(g.MX,{trimBackground:!0,assetPath:e.primary.assetPath,alt:e.alt}),(0,b.jsx)(l.T,{variant:"title",children:a}),(0,b.jsx)(l.T,{variant:"legal",children:s})]},e?.caption+n)}))}),(0,b.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,b.jsxs)(t.H.NewLevel,{children:[(0,b.jsx)(j.$0,{constrained:!0,small:!0,marginBottom:24,marginTop:0,children:(0,b.jsx)(g.wh,{variant:"h3",children:(0,b.jsx)(g.o$,{data:a[1]?.modules[0]?.richText})})}),(0,b.jsx)(j.$0,{constrained:!0,marginBottom:0,marginTop:16,children:(0,b.jsx)(g.bn,{children:(0,b.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,b.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,b.jsxs)(j.$0,{constrained:!0,small:!0,marginTop:0,children:[(0,b.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,b.jsxs)(g.fN,{children:[(0,b.jsx)(g.MX,{trimBackground:!0,assetPath:e.primary.assetPath,alt:e.alt}),(0,b.jsx)(l.T,{variant:"title",children:e.caption}),(0,b.jsx)(l.T,{variant:"legal",children:e.console})]},e.primary.caption+n)))}),null===T&&wN(w+16),variant:"tertiary",children:_("Load more")})]})]}),(0,b.jsxs)(j.$0,{small:!0,background:r.d.color.lightGray4,constrained:!0,marginTop:0,marginBottom:96,children:[(0,b.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,b.jsx)(g.NZ,{children:(0,b.jsx)(t.H,{children:a[3].heading})}),(0,b.jsxs)(j.tm,{reverseContent:!0,asset:a[3].modules[0].asset,children:[(0,b.jsx)(t.H,{variant:"h3",children:a[3].modules[0].heading}),(0,b.jsx)(j.Ho,{data:a[3].modules[0].body}),(0,b.jsx)(c.S,{size:24}),(0,b.jsx)(o.B,{variant:"secondary",href:a[3].modules[0].cta.url,children:a[3].modules[0].cta.label})]})]}),(0,b.jsxs)(j.$0,{small:!0,constrained:!0,marginTop:0,id:a[4].deepLink,children:[(0,b.jsx)(f.Z,{showFancyBorder:!1,icon:d.Z,iconColor:r.d.color.primary,alignToBorder:!0}),(0,b.jsx)(g.NZ,{children:(0,b.jsx)(j.Ho,{data:a[4].modules[0].richText})}),(0,b.jsx)(y.Z,{cta:a[4].cta,ctaHeading:a[4].heading,data:n.membershipTableData})]}),(0,b.jsxs)(j.$0,{small:!0,constrained:!0,marginTop:0,children:[(0,b.jsx)(f.Z,{showFancyBorder:!1,icon:h.Z,iconColor:r.d.color.primary}),(0,b.jsxs)(g.NZ,{children:[(0,b.jsx)(t.H,{children:a[5].heading}),(0,b.jsx)(j.Ho,{data:a[5].modules[0].richText})]}),a[5].modules.map(((e,n)=>{if("modulePromoC"===e.__contentType&&e.body)return(0,b.jsx)(j.oW,{heading:e.heading,children:(0,b.jsx)(j.Ho,{data:e.body})},e.heading+n)})),(0,b.jsx)(c.S,{size:32}),(0,b.jsx)(g.NZ,{children:(0,b.jsx)(o.B,{size:"large",variant:"secondary",href:a[5].cta.url,children:a[5].cta.label})})]})]})]}),(0,b.jsx)(g.NZ,{children:(0,b.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-b9d520581c422eb8.js.map