!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]="e5c8a2d6-1bfd-419e-addf-200e5c85ce10",e._sentryDebugIdIdentifier="sentry-dbid-e5c8a2d6-1bfd-419e-addf-200e5c85ce10")}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 I},default:function(){return D}});var a=r(95235),s=r(2784),n=r(82091),o=r(9726),i=r(10618),l=r(42383),c=r(1829),d=r(18459),u=r(97224),h=r(82731),m=r(21920);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=r(52322);var v=function(e){let{characters:t}=e;const{text:r}=(0,n.useLocalizer)(),a=t.map(((e,t)=>{const{alt:a,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":a,children:[(0,j.jsx)(b,{assetPath:s,alt:""}),(0,j.jsx)(x,{assetPath:n,alt:a})]})}),(0,j.jsx)(l.H,{variant:"h2",children:r(o)})]},t)}));return(0,j.jsxs)(d.rj,{columnsMobile:2,columns:4,gap:"1rem",children:[(0,j.jsx)(g,{variant:"h1",children:r("Characters")}),(0,j.jsx)(l.H.NewLevel,{children:a})]})},w=r(64897),y=r(51406),k=r(92445),P=r(28456);var S=e=>{let{articles:t}=e;const{text:r}=(0,n.useLocalizer)(),{locale:a}=(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:r("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:a,children:r("See all news articles")})]})},T=r(41723),_=(r(98670),r(36734));function C(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 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:r("Digital best sellers"),cta:{label:r("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:r("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:a,url:s,heading:n,tag:o,descriptionTag:i,platformLabel:l,descriptionTagColor:c}=e;return{artPath:t,keyArtAlt:a,contentLink:s,contentTitle:n,productPlatform:r(l)||o,platformColor:l||o?_.rG[String(l||o).toUpperCase().replace(/ /g,"_")]:null,descriptionTag:r(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})}),a?.list?.length?(0,j.jsx)(d.$0,{constrained:!0,small:!0,divider:["top","bottom"],children:(0,j.jsx)(v,{characters:a?.list?.map((e=>{let{asset:t,background:r,heading:a,url:s}=e;return{alt:t.alt,backgroundImage:r.image,characterImage:t.primary.assetPath,name:a,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,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-2bd983906bd04e2e.js.map