!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="62408c27-90eb-4772-8228-4438d66cc709",e._sentryDebugIdIdentifier="sentry-dbid-62408c27-90eb-4772-8228-4438d66cc709")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{27451:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return D},default:function(){return L}});var a=r(95235),n=r(2784),s=r(82091),i=r(77111),o=r(37364),l=r(31837),c=r(88627),d=r(97224),u=r(7307),m=r(92177);const h=(0,u.default)(o.H).withConfig({componentId:"sc-bxi6rv-0"})(["grid-column:1 / span 2;","{grid-column:1 / span 4;}"],(e=>{let{theme:t}=e;return t.mediaQuery.tablet})),p=u.default.div.withConfig({componentId:"sc-bxi6rv-1"})(["display:flex;flex-direction:column;"]),g=u.default.a.withConfig({componentId:"sc-bxi6rv-2"})(["display:block;position:relative;z-index:1;width:100%;height:auto;text-align:center;overflow:hidden;border-radius:",";margin-bottom:",";","{","}"],(e=>{let{theme:t}=e;return t.borderRadius}),(e=>{let{theme:t}=e;return t.spacing[8]}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.spacing[16]})),f=(0,u.default)(m.I).withConfig({componentId:"sc-bxi6rv-3"})(["position:absolute;z-index:-1;top:0;left:0;width:100%;height:100%;transform:scale(1.15);transition:",";",":hover &{transform:scale(1);}"],(e=>{let{theme:t}=e;return`transform ${t.movement.duration} ${t.movement.easing}`}),g),b=(0,u.default)(m.I).withConfig({componentId:"sc-bxi6rv-4"})(["z-index:-1;top:0;left:0;width:100%;height:100%;transition:",";",":hover &{transform:scale(1.15);}"],(e=>{let{theme:t}=e;return`transform ${t.movement.duration} ${t.movement.easing}`}),g);var x=r(52322);var j=function(e){let{characters:t}=e;const{text:r}=(0,s.useLocalizer)(),a=t.map(((e,t)=>{const{alt:a,backgroundImage:n,characterImage:s,name:i,url:l}=e;return(0,x.jsxs)(p,{children:[(0,x.jsx)(d.Z,{href:l,children:(0,x.jsxs)(g,{"aria-label":a,children:[(0,x.jsx)(f,{assetPath:n,alt:""}),(0,x.jsx)(b,{assetPath:s,alt:a})]})}),(0,x.jsx)(o.H,{variant:"h2",children:r(i)})]},t)}));return(0,x.jsxs)(c.rj,{columnsMobile:2,columns:4,gap:"1rem",children:[(0,x.jsx)(h,{variant:"h1",children:r("Characters")}),(0,x.jsx)(o.H.NewLevel,{children:a})]})},w=r(64897),v=r(98803),y=r(92445),P=r(90862);var k=e=>{let{articles:t}=e;const{text:r}=(0,s.useLocalizer)(),{locale:a}=(0,w.Z)();return(0,x.jsxs)(P.rj,{columns:1,gap:24,desktop:{gap:32,justifyItems:"start"},children:[(0,x.jsx)(o.H,{variant:"h1",children:r("News")}),(0,x.jsx)(o.H.NewLevel,{children:(0,x.jsx)(c.wg,{articles:t})}),(0,x.jsx)(v.B,{icon:y.Z,href:"/whatsnew",locale:a,children:r("See all news articles")})]})},_=r(83533),O=r(95395),S=(r(98670),r(36734));function I(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function C(e){for(var t=1;t{L(!0)}),[L]),E=f.CONTENT_TYPE,N={heading:a("Digital best sellers"),cta:{label:a("See full list"),url:"/store/games/best-sellers/"},list:P};return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(c.Xe,{preview:r}),(0,x.jsx)(i.S,{as:"h1",children:a("Nintendo.com home")}),(0,x.jsxs)(o.H.NewLevel,{children:[(0,x.jsx)(c.V4,{centerStage:p,centerStageDarkMode:g,isDesktop:D}),(0,x.jsxs)(c.$0,{constrained:E,small:E,children:[E&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o.H,{variant:"h1",as:"h2",children:u.heading}),(0,x.jsx)(l.S,{size:16}),(0,x.jsx)(c.VM,{secondaryHero:!0,isDesktop:D,hero:{assetPath:{layout:"constrain",desktop:f?.asset.secondary.assetPath,mobile:f?.asset.primary.assetPath,alt:f?.asset.alt},assetDimensions:{desktop:f?.asset.secondary.dimensions,mobile:f?.asset.primary.dimensions},description:{text:f?.heading,desktopTextColor:"dark"},cta:{url:f?.cta.url,name:f?.cta.label},contentRating:f?.contentRating,contentDescriptors:f?.contentDescriptors,gamesShown:f?.gamesShown}})]}),(0,x.jsx)(c.EP,{contained:!0,collection:{heading:!E&&u.heading,productList:u?.list?.map((e=>{let{asset:t,assetAlt:r,url:n,heading:s,tag:i,descriptionTag:o,platformLabel:l,descriptionTagColor:c}=e;return{artPath:t,keyArtAlt:r,contentLink:n,contentTitle:s,productPlatform:a(l)||i,platformColor:l||i?S.rG[String(l||i).toUpperCase().replace(/ /g,"_")]:null,descriptionTag:a(o),descriptionTagColor:c}}))}})]}),(0,x.jsx)(c.$0,{constrained:!0,small:!0,divider:["top"],children:(0,x.jsx)(c.nn,{isDesktop:D,promo:{asset:b?.asset,heading:b?.heading,description:b?.description,cta:{name:b?.ctaList[0]?.label,url:b?.ctaList[0]?.url||""},bgImage:{image:{url:b?.background.image}}}})}),(0,x.jsx)(c.$0,{constrained:!0,small:!0,divider:["top"],children:(0,x.jsx)(c.Po,{promo:{heading:w?.heading,image:{url:w?.asset.primary.assetPath,alt:w?.asset.alt},description:w?.description,cta:{name:w?.ctaList[0]?.label,url:w?.ctaList[0]?.url||"",showMSRP:!1}}})}),I?.length>0&&(0,x.jsx)(c.$0,{constrained:!0,small:!0,divider:["top"],children:(0,x.jsx)(k,{articles:I})}),d?.list?.length?(0,x.jsx)(c.$0,{constrained:!0,small:!0,divider:["top","bottom"],children:(0,x.jsx)(j,{characters:d?.list?.map((e=>{let{asset:t,background:r,heading:a,url:n}=e;return{alt:t.alt,backgroundImage:r.image,characterImage:t.primary.assetPath,name:a,url:n}}))})}):null,v&&!v?.hide?(0,x.jsx)(c.$0,{constrained:!0,small:!0,divider:["top","bottom"],children:(0,x.jsx)(c.Po,{promo:{heading:v.modules[0].heading,image:{url:v.modules[0].asset.primary.assetPath||"",alt:v.modules[0].asset.alt},description:v.modules[0].body,cta:{name:v.modules[0].cta.label,url:v.modules[0].cta.url||"",showMSRP:!1}}})}):null,(0,x.jsx)(c.$0,{small:!0,constrained:!0,children:(0,x.jsx)(c.$3,{collections:[m?.list?.length>0?m:N,h].map((e=>({heading:e.heading,cta:{fields:C({},e.cta)},products:e.list})))})}),(0,x.jsx)(c.HU,{onProductsLoaded:T,small:!0}),(0,x.jsx)(c.$0,{small:!0,constrained:!0,marginBottom:0,marginTop:0,children:(0,x.jsx)(c.Ho,{data:y,textVariant:"legal"})})]})]})}},85356:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return r(27451)}])}},function(e){e.O(0,[9774,2888,179],(function(){return t=85356,e(e.s=t);var t}));var t=e.O();_N_E=t}]); //# sourceMappingURL=index-1c855e8d25bf1551.js.map