!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]="a9abc4a7-3da7-4cd5-89cb-84634c1f9fb4",e._sentryDebugIdIdentifier="sentry-dbid-a9abc4a7-3da7-4cd5-89cb-84634c1f9fb4")}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(40910),i=a(37364),t=a(11379),l=a(87989),o=a(98803),c=a(31837),d=a(8735),h=a(68374),m=a(32924),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)((()=>{k(B?H.filter((e=>e.console===B)).sort(v):H.sort(v).slice(0,N))}),[n,B,H,N]),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(p.Z,{preview:a,legalFooterData:_[6].richText,children:[(0,y.jsx)(j.$0,{background:r.d.color.primary,children:(0,y.jsxs)(j.tm,{variant:"light",small:!0,asset:_[0].modules[0].asset,children:[(0,y.jsx)(i.H,{variant:"h1",children:_[0].modules[0].heading}),(0,y.jsx)(j.Ho,{data:_[0].modules[0].body})]})}),(0,y.jsxs)(j.$0,{constrained:!0,children:[(0,y.jsxs)(g.Sz,{small:!0,asset:_[7]?.asset,children:[(0,y.jsx)(i.H,{variant:"h1",children:_[7]?.heading}),(0,y.jsx)(j.Ho,{data:_[7]?.body})]}),!_[8]?.hide&&(0,y.jsxs)(j.$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)(i.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:_[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:B===e.filter,variant:"quaternary",onClick:()=>{return null===(n=e.filter)&&T(16),void S(n);var n},still:!0,children:w(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: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&&NT(N+16),variant:"tertiary",children:w("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)(i.H,{children:_[3].heading})}),(0,y.jsxs)(j.tm,{reverseContent:!0,asset:_[3].modules[0].asset,children:[(0,y.jsx)(i.H,{variant:"h3",children:_[3].modules[0].heading}),(0,y.jsx)(j.Ho,{data:_[3].modules[0].body}),(0,y.jsx)(c.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)(j.$0,{small:!0,constrained:!0,marginTop:0,id:_[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:_[4].modules[0].richText})}),(0,y.jsx)(b.Z,{cta:_[4].cta,ctaHeading:_[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)(i.H,{children:_[5].heading}),(0,y.jsx)(j.Ho,{data:_[5].modules[0].richText})]}),_[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:_[5].cta.url,children:_[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-1317cdf943e1badb.js.map