(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8643],{73575:function(e,n,a){"use strict";a.r(n),a.d(n,{__N_SSP:function(){return b}});var r=a(2784),s=a(29354),i=a(77216),t=a(88162),l=a(56155),o=a(63046),c=a(20669),d=a(8735),m=a(68374),h=a(74257),x=a(34693),u=a(86409),j=a(72848),p=a(11187),g=a(3599),f=a(23566),v=a(52322);const y=(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,r.useEffect)((()=>{Z(B?k.filter((e=>e.console===B)).sort(y):k.sort(y).slice(0,_))}),[n,B,k,_]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(j.Z,{preview:a,legalFooterData:b[6].richText,children:[(0,v.jsx)(u.$0,{background:s.d.color.primary,children:(0,v.jsxs)(u.tm,{variant:"light",small:!0,asset:b[0].modules[0].asset,children:[(0,v.jsx)(i.H,{variant:"h1",children:b[0].modules[0].heading}),(0,v.jsx)(u.Ho,{data:b[0].modules[0].body})]})}),(0,v.jsxs)(i.H.NewLevel,{children:[(0,v.jsx)(u.$0,{constrained:!0,small:!0,marginBottom:24,children:(0,v.jsx)(p.wh,{variant:"h3",children:b[1].heading})}),(0,v.jsx)(u.$0,{constrained:!0,marginBottom:0,marginTop:16,children:(0,v.jsx)(p.bn,{children:(0,v.jsx)(p.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,v.jsx)(t.B,{round:!0,size:"small",selected:B===e.filter,variant:"quaternary",onClick:()=>{return null===(n=e.filter)&&w(16),void S(n);var n},still:!0,children:N(e.label)},e.filter+n)))})})}),(0,v.jsxs)(u.$0,{constrained:!0,small:!0,marginTop:0,children:[(0,v.jsx)(l.G,{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:T.map(((e,n)=>(0,v.jsxs)(p.fN,{children:[(0,v.jsx)(p.MX,{trimBackground:!0,assetPath:e.primary.assetPath,alt:e.alt}),(0,v.jsx)(o.T,{variant:"title",children:e.caption}),(0,v.jsx)(o.T,{variant:"legal",children:e.console})]},e.primary.caption+n)))}),null===B&&_w(_+16),variant:"tertiary",children:N("Load more")})]})]}),(0,v.jsxs)(u.$0,{small:!0,background:s.d.color.lightGray4,constrained:!0,marginTop:0,marginBottom:96,children:[(0,v.jsx)(g.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,v.jsx)(p.NZ,{children:(0,v.jsx)(i.H,{children:b[3].heading})}),(0,v.jsxs)(u.tm,{reverseContent:!0,asset:b[3].modules[0].asset,children:[(0,v.jsx)(i.H,{variant:"h3",children:b[3].modules[0].heading}),(0,v.jsx)(u.Ho,{data:b[3].modules[0].body}),(0,v.jsx)(c.S,{size:24}),(0,v.jsx)(t.B,{variant:"secondary",href:b[3].modules[0].cta.url,children:b[3].modules[0].cta.label})]})]}),(0,v.jsxs)(u.$0,{small:!0,constrained:!0,marginTop:0,id:b[4].deepLink,children:[(0,v.jsx)(g.Z,{showFancyBorder:!1,icon:d.Z,iconColor:s.d.color.primary,alignToBorder:!0}),(0,v.jsx)(p.NZ,{children:(0,v.jsx)(u.Ho,{data:b[4].modules[0].richText})}),(0,v.jsx)(f.Z,{cta:b[4].cta,ctaHeading:b[4].heading,data:n.membershipTableData})]}),(0,v.jsxs)(u.$0,{small:!0,constrained:!0,marginTop:0,children:[(0,v.jsx)(g.Z,{showFancyBorder:!1,icon:m.Z,iconColor:s.d.color.primary}),(0,v.jsxs)(p.NZ,{children:[(0,v.jsx)(i.H,{children:b[5].heading}),(0,v.jsx)(u.Ho,{data:b[5].modules[0].richText})]}),b[5].modules.map(((e,n)=>{if("modulePromoC"===e.__contentType&&e.body)return(0,v.jsx)(u.oW,{heading:e.heading,children:(0,v.jsx)(u.Ho,{data:e.body})},e.heading+n)})),(0,v.jsx)(c.S,{size:32}),(0,v.jsx)(p.NZ,{children:(0,v.jsx)(t.B,{size:"large",variant:"secondary",href:b[5].cta.url,children:b[5].cta.label})})]})]})]}),(0,v.jsx)(p.NZ,{children:(0,v.jsx)(h.E,{rating:"e-t"})})]})}},69852:function(e,n,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/switch/online/nintendo-switch-online/classic-games",function(){return a(73575)}])}},function(e){e.O(0,[1850,5208,929,6409,1582,5184,9774,2888,179],(function(){return n=69852,e(e.s=n);var n}));var n=e.O();_N_E=n}]);