(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 _}});var s=a(2784),i=a(29434),r=a(54076),t=a(68291),l=a(25544),o=a(62989),c=a(83256),d=a(20669),m=a(8735),h=a(68374),x=a(9016),j=a(32899),u=a(91115),p=a(72848),g=a(11187),f=a(3599),v=a(23566),y=a(52322);const b=(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)((()=>{H(B?k.filter((e=>e.console===B)).sort(b):k.sort(b).slice(0,T))}),[n,B,k,T]),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(p.Z,{preview:a,legalFooterData:_[6].richText,children:[(0,y.jsx)(u.$0,{background:i.d.color.primary,children:(0,y.jsxs)(u.tm,{variant:"light",small:!0,asset:_[0].modules[0].asset,children:[(0,y.jsx)(r.H,{variant:"h1",children:_[0].modules[0].heading}),(0,y.jsx)(u.Ho,{data:_[0].modules[0].body})]})}),(0,y.jsxs)(u.$0,{constrained:!0,children:[(0,y.jsxs)(g.Sz,{small:!0,asset:_[7]?.asset,children:[(0,y.jsx)(r.H,{variant:"h1",children:_[7]?.heading}),(0,y.jsx)(u.Ho,{data:_[7]?.body})]}),!_[8]?.hide&&(0,y.jsxs)(u.$0,{constrained:!0,children:[(0,y.jsx)(t.R,{constrained:!0,children:_[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)(r.H.NewLevel,{children:[(0,y.jsx)(u.$0,{constrained:!0,small:!0,marginBottom:24,marginTop:0,children:(0,y.jsx)(g.wh,{variant:"h3",children:(0,y.jsx)(g.o$,{data:_[1]?.modules[0]?.richText})})}),(0,y.jsx)(u.$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: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,y.jsxs)(u.$0,{constrained:!0,small:!0,marginTop:0,children:[(0,y.jsx)(c.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:Z.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===B&&Tw(T+16),variant:"tertiary",children:N("Load more")})]})]}),(0,y.jsxs)(u.$0,{small:!0,background:i.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)(r.H,{children:_[3].heading})}),(0,y.jsxs)(u.tm,{reverseContent:!0,asset:_[3].modules[0].asset,children:[(0,y.jsx)(r.H,{variant:"h3",children:_[3].modules[0].heading}),(0,y.jsx)(u.Ho,{data:_[3].modules[0].body}),(0,y.jsx)(d.S,{size:24}),(0,y.jsx)(o.B,{variant:"secondary",href:_[3].modules[0].cta.url,children:_[3].modules[0].cta.label})]})]}),(0,y.jsxs)(u.$0,{small:!0,constrained:!0,marginTop:0,id:_[4].deepLink,children:[(0,y.jsx)(f.Z,{showFancyBorder:!1,icon:m.Z,iconColor:i.d.color.primary,alignToBorder:!0}),(0,y.jsx)(g.NZ,{children:(0,y.jsx)(u.Ho,{data:_[4].modules[0].richText})}),(0,y.jsx)(v.Z,{cta:_[4].cta,ctaHeading:_[4].heading,data:n.membershipTableData})]}),(0,y.jsxs)(u.$0,{small:!0,constrained:!0,marginTop:0,children:[(0,y.jsx)(f.Z,{showFancyBorder:!1,icon:h.Z,iconColor:i.d.color.primary}),(0,y.jsxs)(g.NZ,{children:[(0,y.jsx)(r.H,{children:_[5].heading}),(0,y.jsx)(u.Ho,{data:_[5].modules[0].richText})]}),_[5].modules.map(((e,n)=>{if("modulePromoC"===e.__contentType&&e.body)return(0,y.jsx)(u.oW,{heading:e.heading,children:(0,y.jsx)(u.Ho,{data:e.body})},e.heading+n)})),(0,y.jsx)(d.S,{size:32}),(0,y.jsx)(g.NZ,{children:(0,y.jsx)(o.B,{size:"large",variant:"secondary",href:_[5].cta.url,children:_[5].cta.label})})]})]})]}),(0,y.jsx)(g.NZ,{children:(0,y.jsx)(x.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(73575)}])}},function(e){e.O(0,[5106,301,1115,9362,8281,9774,2888,179],(function(){return n=69852,e(e.s=n);var n}));var n=e.O();_N_E=n}]);