!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]="9ae819de-186e-486a-889d-622cd9273d91",e._sentryDebugIdIdentifier="sentry-dbid-9ae819de-186e-486a-889d-622cd9273d91")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9385],{3496:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return R},default:function(){return z}});var n=r(95235),i=r(2784),a=r(64897),o=r(73387),d=r(13154),s=r(40105),l=r(4946),c=r(47725),u=r(13678),m=r(99632),h=r(88627),p=r(90862),g=r(98087),f=r(76454),b=r(50802),j=r(7307),x=r(79448),y=r(15496);const w=(0,j.default)(h.$0).withConfig({componentId:"sc-rire0t-0"})(["color:",";"],(e=>{let{color:t,theme:r}=e;return"DARK"==t?r.color.darkGray1:r.color.white})),v=(0,j.default)(l.I).withConfig({componentId:"sc-rire0t-1"})(["max-width:22rem;margin:0 auto;img{max-height:12rem;object-fit:contain;}","{margin:0;}"],(e=>{let{theme:t}=e;return t.mediaQuery.tablet})),I=(0,j.default)(d.H).withConfig({componentId:"sc-rire0t-2"})(["text-align:center;margin-bottom:2rem;margin-top:",";"],(e=>e.multiTitle?"2rem":"1rem")),P=(0,j.default)(x.V).withConfig({componentId:"sc-rire0t-3"})(["border:1px solid #dadada;box-sizing:content-box;z-index:2;"]),_=(0,j.default)(l.I).withConfig({componentId:"sc-rire0t-4"})(["border:1px solid #dadada;box-sizing:content-box;z-index:2;"]),k=(0,j.default)(d.H).withConfig({componentId:"sc-rire0t-5"})(["margin:2rem 0;position:relative;&::after{content:'';background:url('https://assets.nintendo.com/image/upload/v1650317893/Nintendo%20Direct/header-arrow.png') no-repeat left center;background-size:100% 100%;position:absolute;height:10rem;width:24rem;left:-5rem;top:-4rem;z-index:0;}"]),D=(0,j.default)(y.D).withConfig({componentId:"sc-rire0t-6"})(["margin:2rem 0;"]),O=j.default.div.withConfig({componentId:"sc-rire0t-7"})(["display:grid;grid-row-gap:",";justify-content:center;margin-bottom:-",";a{justify-self:center;}"],(e=>{let{theme:t}=e;return t.spacing[32]}),(e=>{let{theme:t}=e;return t.spacing[32]})),E=j.default.div.withConfig({componentId:"sc-rire0t-8"})(["display:grid;grid-template-columns:1fr;text-align:center;align-items:center;background:",";color:",";border-radius:",";padding:",";gap:",";img{border-radius:",";}","{text-align:left;flex-direction:row;grid-template-columns:",";}"],(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return t.color.black}),(e=>{let{theme:t}=e;return t.borderRadius}),(e=>{let{theme:t}=e;return t.spacing[32]}),(e=>{let{theme:t}=e;return t.spacing[32]}),(e=>{let{theme:t}=e;return t.borderRadius}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>e.thumb?"1fr 3fr":"1fr"));var T=r(97729),C=r.n(T),S=r(19695),N=r(52322);function H(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function B(e){for(var t=1;t0||r.headlines.length>0,[y,T]=i.useState(!1),[H,R]=i.useState(!1),[z,$]=i.useState(!1),[L,M]=i.useState(null),U=r.video&&S.C.video(r.video.publicId).toURL(),V=r.liveStream&&`https://www.youtube.com/embed/${r.liveStream}`,A={"@context":"https://schema.org","@type":"VideoObject",description:r.description?.text,name:r?.name,thumbnailUrl:`https://assets.nintendo.com/image/upload/f_auto,q_auto/${r.thumbnail.publicId}`,contentUrl:U,embedUrl:V,uploadDate:r?.startDate};function F(e){M(e),T((e=>!e)),$(!z)}(0,i.useEffect)((()=>{R(!0)}),[]);const q=r.contentDescriptors?.filter((e=>"CONTENT_DESCRIPTOR"===e.type)).map((e=>e.label)),G=r.contentDescriptors?.filter((e=>"INTERACTIVE_ELEMENT"===e.type)).map((e=>e.label)),[Q,X]=r.liveStream?.split("?start=")||[];return(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(C(),{children:(0,N.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(A)}})}),(0,N.jsxs)("div",{children:[(0,N.jsxs)(w,{constrained:!0,small:!0,background:n,backgroundTiled:"no-repeat"!==r.featuredBackground.repeat,color:r.featuredBackground.textColor,marginBottom:16,children:[(0,N.jsx)(v,{assetPath:r.logo.publicId}),(0,N.jsx)(I,{multiTitle:x,variant:"h1",children:r.name}),r.liveStream&&(0,N.jsx)(P,{noCookie:!0,host:"youtube",timeStamp:X,assetPath:Q}),"video"===r.video?.resourceType&&(0,N.jsx)(P,{assetPath:r.video.publicId}),"image"===r.video?.resourceType&&(0,N.jsx)(_,{assetPath:r.video.publicId,alt:r.name}),r.featuredHeadlines.length>0&&(0,N.jsx)(k,{children:"Nintendo Direct Spotlight"}),(0,N.jsx)(h.rj,{columns:1,children:r.featuredHeadlines?.map((e=>(0,N.jsx)(h.E,B(B({},e),{},{transition:()=>F(e)}),e.title)))}),!x&&(0,N.jsx)(o.S,{size:32})]}),(x||r.relatedProducts.length>0||r.extraHeadlines.length>0)&&(0,N.jsxs)(w,{constrained:!0,small:!0,background:j,backgroundTiled:"no-repeat"!==r.headlinesBackground?.repeat,color:r.headlinesBackground?.textColor,marginTop:x?80:0,children:[r.headlines.length>0&&(0,N.jsx)(k,{children:"Nintendo Direct Headlines"}),(0,N.jsx)(h.rj,{columns:1,children:r.headlines?.map((e=>(0,N.jsx)(h.E,B(B({},e),{},{transition:()=>F(e)}),e.title)))}),(0,N.jsxs)(h.$0,{as:"div",marginTop:0,children:[x&&r.relatedProducts.length>0&&(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(D,{color:"#dadada",height:2}),(0,N.jsx)(d.H,{variant:"h2",children:"Featured"})]}),(0,N.jsx)(o.S,{size:16}),r.relatedProducts.length>0&&(0,N.jsx)(s.R,{centered:!0,children:r.relatedProducts.map((e=>(0,N.jsx)(p.I8,B(B({},e),{},{artPath:e.productImage.publicId,platform:e.platform.label,platformCode:e.platform.code}),e.name)))}),x&&r.relatedProducts.length>0&&(0,N.jsx)(D,{color:"#dadada",height:2})]}),(0,N.jsx)(h.$0,{as:"div",marginBottom:0,marginTop:0,children:(0,N.jsx)(h.rj,{columns:1,children:r.extraHeadlines?.map((e=>(0,N.jsxs)(E,{thumb:e.thumbnail,children:[e.thumbnail&&(0,N.jsx)(l.I,{assetPath:e.thumbnail.publicId,alt:e.title}),(0,N.jsxs)("div",{children:[(0,N.jsx)(h.Ho,{data:e.description.json}),e.ctaDestination&&(0,N.jsx)(c.B,{variant:"primary",href:e.ctaDestination?.url?e.ctaDestination?.url:e.ctaDestination?.externalUrl,children:e.ctaLabel})]})]},e.title)))})})]}),(0,N.jsxs)(h.$0,{constrained:!0,small:!0,marginBottom:0,marginTop:16,children:[r.disclaimers&&(0,N.jsx)("p",{children:(0,N.jsx)(h.Ho,{textVariant:"legal",data:r.disclaimers.json})}),(0,N.jsxs)(O,{children:[r.contentRating&&(0,N.jsx)(u.E,{rating:r.contentRating?.code,descriptors:q?.join(", "),interactiveElements:G?.join(", ")}),(0,N.jsx)(m.L,{href:"/nintendo-direct/archive/",className:"centered",children:"Go to the Nintendo Direct Archive"})]})]}),H&&(0,N.jsx)(h.w5,B(B({},L),{},{transitionProp:y,handleTransition:F}))]})]})}},95096:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/nintendo-direct/[slug]",function(){return r(3496)}])}},function(e){e.O(0,[9774,2888,179],(function(){return t=95096,e(e.s=t);var t}));var t=e.O();_N_E=t}]); //# sourceMappingURL=[slug]-1e8a4e002de55e4a.js.map