!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]="d54662a8-c54c-4a53-abe1-aae40d9f3e69",e._sentryDebugIdIdentifier="sentry-dbid-d54662a8-c54c-4a53-abe1-aae40d9f3e69")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{27451:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return I},default:function(){return D}});var r=a(95235),s=a(2784),n=a(82091),o=a(50669),i=a(64761),l=a(35536),c=a(33702),d=a(18459),u=a(97224),h=a(82731),m=a(53144);const g=(0,h.default)(l.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=h.default.div.withConfig({componentId:"sc-bxi6rv-1"})(["display:flex;flex-direction:column;"]),f=h.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]})),b=(0,h.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}`}),f),x=(0,h.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}`}),f);var j=a(52322);var v=function(e){let{characters:t}=e;const{text:a}=(0,n.useLocalizer)(),r=t.map(((e,t)=>{const{alt:r,backgroundImage:s,characterImage:n,name:o,url:i}=e;return(0,j.jsxs)(p,{children:[(0,j.jsx)(u.Z,{href:i,children:(0,j.jsxs)(f,{"aria-label":r,children:[(0,j.jsx)(b,{assetPath:s,alt:""}),(0,j.jsx)(x,{assetPath:n,alt:r})]})}),(0,j.jsx)(l.H,{variant:"h2",children:a(o)})]},t)}));return(0,j.jsxs)(d.rj,{columnsMobile:2,columns:4,gap:"1rem",children:[(0,j.jsx)(g,{variant:"h1",children:a("Characters")}),(0,j.jsx)(l.H.NewLevel,{children:r})]})},w=a(64897),y=a(75780),k=a(92445),P=a(28456);var S=e=>{let{articles:t}=e;const{text:a}=(0,n.useLocalizer)(),{locale:r}=(0,w.Z)();return(0,j.jsxs)(P.rj,{columns:1,gap:24,desktop:{gap:32,justifyItems:"start"},children:[(0,j.jsx)(l.H,{variant:"h1",children:a("News")}),(0,j.jsx)(l.H.NewLevel,{children:(0,j.jsx)(d.wg,{articles:t})}),(0,j.jsx)(y.B,{icon:k.Z,href:"/whatsnew",locale:r,children:a("See all news articles")})]})},T=a(98288),_=(a(98670),a(36734));function C(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function O(e){for(var t=1;t{const e=g;return E&&e.length?e.slice(1):e}),[E,g]),{waitForElementRef:R}=(0,T.r)(),z=(0,s.useCallback)((()=>{R(!0)}),[R]),A=(0,s.useCallback)((()=>{$(),D(0)}),[$]),M=f.CONTENT_TYPE,B={heading:a("Digital best sellers"),cta:{label:a("See full list"),url:"/store/games/best-sellers/"},list:k};return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(o.S,{as:"h1",children:a("Nintendo.com home")}),C?.showTakeover&&(0,j.jsx)(i.T,O({handleClose:N,handleSaveSetting:A,showTakeoverState:E},C)),(0,j.jsxs)(l.H.NewLevel,{children:[(0,j.jsx)(d.V4,{centerStage:H,centerStageDarkMode:p,isDesktop:L,slideIndex:I}),(0,j.jsxs)(d.$0,{constrained:M,small:M,children:[M&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(l.H,{variant:"h1",as:"h2",children:u.heading}),(0,j.jsx)(c.S,{size:16}),(0,j.jsx)(d.VM,{secondaryHero:!0,isDesktop:L,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,j.jsx)(d.EP,{contained:!0,collection:{heading:!M&&u.heading,productList:u?.list?.map((e=>{let{asset:t,assetAlt:r,url:s,heading:n,tag:o,descriptionTag:i,platformLabel:l,descriptionTagColor:c}=e;return{artPath:t,keyArtAlt:r,contentLink:s,contentTitle:n,productPlatform:a(l)||o,platformColor:l||o?_.rG[String(l||o).toUpperCase().replace(/ /g,"_")]:null,descriptionTag:a(i),descriptionTagColor:c}}))}})]}),(0,j.jsx)(d.$0,{constrained:!0,small:!0,divider:["top"],children:(0,j.jsx)(d.nn,{isDesktop:L,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,j.jsx)(d.$0,{constrained:!0,small:!0,divider:["top"],children:(0,j.jsx)(d.Po,{promo:{heading:x?.heading,image:{url:x?.asset.primary.assetPath,alt:x?.asset.alt},description:x?.description,cta:{name:x?.ctaList[0]?.label,url:x?.ctaList[0]?.url||"",showMSRP:!1}}})}),P?.length>0&&(0,j.jsx)(d.$0,{constrained:!0,small:!0,divider:["top"],children:(0,j.jsx)(S,{articles:P})}),r?.list?.length?(0,j.jsx)(d.$0,{constrained:!0,small:!0,divider:["top","bottom"],children:(0,j.jsx)(v,{characters:r?.list?.map((e=>{let{asset:t,background:a,heading:r,url:s}=e;return{alt:t.alt,backgroundImage:a.image,characterImage:t.primary.assetPath,name:r,url:s}}))})}):null,w&&!w?.hide?(0,j.jsx)(d.$0,{constrained:!0,small:!0,divider:["top","bottom"],children:(0,j.jsx)(d.Po,{promo:{heading:w.modules[0].heading,image:{url:w.modules[0].asset.primary.assetPath||"",alt:w.modules[0].asset.alt},description:w.modules[0].body,cta:{name:w.modules[0].cta.label,url:w.modules[0].cta.url||"",showMSRP:!1}}})}):null,(0,j.jsx)(d.$0,{small:!0,constrained:!0,children:(0,j.jsx)(d.$3,{collections:[h?.list?.length>0?h:B,m].map((e=>({heading:e.heading,cta:{fields:O({},e.cta)},products:e.list})))})}),(0,j.jsx)(d.HU,{onProductsLoaded:z,small:!0}),(0,j.jsx)(d.$0,{small:!0,constrained:!0,marginBottom:0,marginTop:0,children:(0,j.jsx)(d.Ho,{data:y,textVariant:"legal"})})]})]})}},85356:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return a(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-ccfd2a7f89ae8ae2.js.map