!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]="eebfd313-44b8-4af6-8cd4-3926897b7065",e._sentryDebugIdIdentifier="sentry-dbid-eebfd313-44b8-4af6-8cd4-3926897b7065")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4956],{53991:function(e,t,n){"use strict";n.d(t,{uP:function(){return v},Z5:function(){return x},ig:function(){return y}});var r=n(2784),i=n(64897),s=n(13610),a=n(82665),o=n(82731),l=n(47038),c=n(63229),d=n(62725),u=n(79351);(0,o.ZP)(l.R).withConfig({componentId:"sc-1nmdhxc-0"})(["margin-bottom:",";"],(e=>{let{theme:t}=e;return t.spacing[8]}));const p=(0,o.ZP)(c.S).withConfig({componentId:"sc-1nmdhxc-1"})(["z-index:2;"]),h=((0,o.ZP)(d.Q).withConfig({componentId:"sc-1nmdhxc-2"})(["width:100%;"]),(0,o.ZP)(u.T).withConfig({componentId:"sc-1nmdhxc-3"})(["margin-bottom:",";"],(e=>{let{theme:t}=e;return t.spacing[8]}))),m=(0,o.ZP)(u.T).withConfig({componentId:"sc-1nmdhxc-4"})(["font-weight:",";"],(e=>{let{theme:t}=e;return t.font.weight.bold}));var g=n(52322);var x=function(e){let{variations:t,loadingPricing:n}=e;const o=(0,i.Z)(),{text:l,price:c}=(0,s.useLocalizer)(),d=(0,r.useMemo)((()=>t.map((e=>({label:e.product.nsuid?l("Digital"):l("Physical"),caption:e.product.name,price:n?null:c(e.product?.prices?.finalPrice?.toFixed(2)),value:e.product.name,urlKey:e.product.urlKey})))),[t,l,n,c]),u=(0,r.useMemo)((()=>d.find((e=>{let{urlKey:t}=e;return o.query.slug===t}))||d[0]),[d,o]);return(0,g.jsx)(p,{style:{zIndex:"100"},inputName:"select-an-edition",inputLabel:(0,g.jsx)(m,{variant:"caption",children:l("Select an edition")}),onChange:e=>{o.push(`${e.urlKey}${(0,a.Xo)(o?.query)}`,null,{scroll:!1})},options:d,value:u,showErrors:!1})},f=n(41630),b=n(84283),j=n(52317);var y=function(e){let{onChange:t,isBundle:n,product:r,title:i,value:a}=e;const{text:o}=(0,s.useLocalizer)();return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(f.S,{size:24}),(0,g.jsx)(b.rj,{columns:2,alignItems:"end",children:(0,g.jsx)(h,{variant:"legal",children:n?i:o("Select a product")})}),(0,g.jsx)(f.S,{size:12}),(0,g.jsx)(j.um,{onChange:t,product:r,value:a})]})},w=n(75803);var v=function(e){let{product:t}=e;const{text:n}=(0,s.useLocalizer)(),{locale:r}=(0,i.Z)(),a=r?.split("-")[0]??"en";return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(f.S,{size:24}),(0,g.jsxs)(b.rj,{columns:"144px 162px",rows:"48px",children:[t?.appStoreUrl&&(0,g.jsx)("a",{href:t.appStoreUrl,children:(0,g.jsx)(w.I,{assetPath:`/ncom/icons/app-store/app-store-badge-${a}`,alt:n("Download on the app store")})}),t?.googlePlayUrl&&(0,g.jsx)("a",{href:t.googlePlayUrl,children:(0,g.jsx)(w.I,{assetPath:`/ncom/icons/google-play/google-play-badge-${a}`,alt:n("Get it on Google Play")})})]})]})}},52317:function(e,t,n){"use strict";n.d(t,{jJ:function(){return p},VM:function(){return ce},dn:function(){return We},ww:function(){return wt},Ym:function(){return vn},yL:function(){return In},bm:function(){return zn},um:function(){return Mn},Lx:function(){return Rn},V9:function(){return Hn},_C:function(){return Xn}});var r=n(2784),i=n(88301),s=n(27851),a=n(13610),o=n(38949),l=n(82731);const c=l.ZP.div.withConfig({componentId:"sc-gkj3iw-0"})(["margin-top:",";padding:"," 0;background-color:",";"],(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>e.$bgColor?e.$bgColor:e=>{let{theme:t}=e;return t.color.lightGray4}));var d=n(82665),u=n(52322);var p=e=>{let{product:t,locale:n}=e;const{text:l}=(0,a.useLocalizer)(),p=(0,r.useMemo)((()=>t.downloadableContents.slice(0,4).map(d.uF)),[t.downloadableContents]);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(o.He,{small:!0,children:t.downloadableContents.length>4?(0,u.jsx)(i.H,{ctaType:"iconlink",headingProps:{variant:"h1"},ctaText:l("See all"),ctaUrl:t.urlKey+"/dlc/",locale:n,children:l("Downloadable content (DLC)")}):(0,u.jsx)(s.H,{variant:"h1",children:l("Downloadable content (DLC)")})}),(0,u.jsx)(c,{$bgColor:"#"+t.backgroundColor,children:(0,u.jsx)(o.He,{small:!0,children:(0,u.jsx)(s.H.NewLevel,{children:(0,u.jsx)(o.nZ,{analytics:{title:"Downloadable content (DLC)"},products:p,cta:{fields:{label:l("See all"),url:t.downloadableContents.length>4?t.urlKey+"/dlc/":""}}})})})})]})},h=n(95235),m=n(64897),g=n(6289),x=n(19942),f=n(79351),b=n(41630),j=n(53873),y=n(98461),w=n(18455),v=n(44835),P=n(88588),C=n(27689),S=n(29278),I=n(97224),_=n(36734),D=n(67831),z=n(79149),Z=n(46533),N=n.n(Z),k=n(81131),T=n(75803),O=n(8735);const L=l.ZP.section.withConfig({componentId:"sc-1i9d4nw-0"})(["background-color:",";position:relative;z-index:5;"],(e=>e.$bgColor?e.$bgColor:e=>{let{theme:t}=e;return t.color.lightGray4})),E=l.ZP.div.withConfig({componentId:"sc-1i9d4nw-1"})(["background:",";max-width:1240px;margin:0 auto;transform:translateY(2em);border-radius:",";box-shadow:0 4px 16px 0 rgba(60,64,89,0.15);padding-bottom:",";@media (max-width:1240px){transform:translateY(0);border-radius:0;}","{padding:"," ",";}"],(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return t.borderRadius}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.spacing[32]}),(e=>{let{theme:t}=e;return t.spacing[48]})),M=l.ZP.div.withConfig({componentId:"sc-1i9d4nw-2"})(["",""],(e=>{let{theme:t}=e;return(0,l.iv)(["display:grid;grid-template-columns:1fr;grid-column-gap:",";grid-row-gap:",";","{grid-template-columns:3fr 2fr;grid-column-gap:",";}"],(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.spacing[16]}),t.mediaQuery.tablet,(e=>{let{theme:t}=e;return t.spacing[48]}))})),R=l.ZP.div.withConfig({componentId:"sc-1i9d4nw-3"})(["overflow:hidden;"]),A=l.ZP.div.withConfig({componentId:"sc-1i9d4nw-4"})(["display:flex;flex-direction:column;"]),$=l.ZP.div.withConfig({componentId:"sc-1i9d4nw-5"})(["padding-top:",";padding-left:",";grid-column:1;","{grid-column:span 2;padding:0;}overflow:hidden;&:has(:focus-within){overflow:visible;}"],(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet})),U=(0,l.ZP)(k.I).withConfig({componentId:"sc-1i9d4nw-6"})(["display:flex;margin:0;padding:0;border:none;"]),G=l.ZP.div.withConfig({componentId:"sc-1i9d4nw-7"})(["display:flex;justify-content:left;gap:",";font-size:var(--theme-font-size-bodyMobile);","{font-size:var(--theme-font-size-bodyDesktop);}"],(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet})),H=(0,l.ZP)(o.He).withConfig({componentId:"sc-1i9d4nw-8"})(["",""],(e=>{let{theme:t}=e;return(0,l.iv)(["margin-left:0;margin-right:0;","{width:100%;}"],t.mediaQuery.tablet)})),F=l.ZP.div.withConfig({componentId:"sc-1i9d4nw-9"})(["",""],(e=>{let{theme:t}=e;return(0,l.iv)(["display:flex;gap:",";align-items:center;flex-wrap:wrap;padding:0 ",";","{padding:0 0 "," 0;}"],t.spacing[8],t.spacing[16],t.mediaQuery.tablet,t.spacing[16])})),Q=l.ZP.div.withConfig({componentId:"sc-1i9d4nw-10"})(["",""],(e=>{let{theme:t}=e;return(0,l.iv)(["display:grid;grid-template-columns:1fr;grid-auto-rows:min-content;padding:0 "," "," ",";a{text-decoration:none;}","{padding:0;}"],t.spacing[16],t.spacing[16],t.spacing[16],t.mediaQuery.tablet)})),W=((0,l.ZP)(T.I).withConfig({componentId:"sc-1i9d4nw-11"})(["max-width:215px;"]),l.ZP.div.withConfig({componentId:"sc-1i9d4nw-12"})(["display:none;","{display:block;}"],(e=>{let{theme:t}=e;return t.mediaQuery.tablet}))),B=l.ZP.div.withConfig({componentId:"sc-1i9d4nw-13"})(["display:block;","{display:none;}"],(e=>{let{theme:t}=e;return t.mediaQuery.tablet})),q=(l.ZP.div.withConfig({componentId:"sc-1i9d4nw-14"})(["display:flex;gap:",";"],(e=>{let{theme:t}=e;return t.spacing[16]})),l.ZP.span.withConfig({componentId:"sc-1i9d4nw-15"})(["display:none;background-color:",";color:",";font-weight:",";font-size:",";align-items:center;padding:0 ",";border-radius:",";margin-bottom:",";width:fit-content;margin-top:",";","{display:block;}"],(e=>{let{theme:t}=e;return t.color.primary}),(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return t.font.weight.bold}),(e=>{let{theme:t}=e;return t.font.size.bodyDesktop}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.borderRadius}),(e=>{let{theme:t}=e;return t.spacing[8]}),(e=>{let{theme:t}=e;return t.spacing[32]}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet})),l.ZP.div.withConfig({componentId:"sc-1i9d4nw-16"})(["display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:",";gap:",";background-color:",";border-radius:",";margin:0 "," ",";span{border-bottom:none;}","{margin:0;margin-top:",";flex-direction:row;}"],(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.color.lightGray4}),(e=>{let{theme:t}=e;return t.borderRadius}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.spacing[24]}))),V=l.ZP.div.withConfig({componentId:"sc-1i9d4nw-17"})(["display:flex;flex-direction:column;align-items:center;gap:",";text-align:center;","{flex-direction:row;text-align:left;}"],(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet})),K=(0,l.ZP)(O.Z).withConfig({componentId:"sc-1i9d4nw-18"})(["flex-shrink:0;"]);var Y=n(94078),X=n(88749),J=n(77064),ee=n(61478),te=n(13580),ne=n(58283),re=n.n(ne);const ie=e=>{let{status:t}=e;const{Icon:n,color:r}=(e=>{switch(e){case"PLAYABLE":default:return{Icon:X.Z,color:"#0067D6"};case"NOT_PLAYABLE":return{Icon:J.Z,color:"#FF8924"};case"NOT_COMPATIBLE":return{Icon:ee.Z,color:"#FD0013"};case"NO_ROM_FOUND":return{Icon:()=>(0,u.jsx)("strong",{children:"i"}),color:"#0067D6"}}})(t);return"NOT_PLAYABLE"===t?(0,u.jsx)(n,{size:18,color:r}):(0,u.jsx)("div",{className:re().statusIcon,style:{backgroundColor:r},children:(0,u.jsx)(n,{size:10})})};var se=e=>{let{compatibility:t}=e;const{text:n}=(0,a.useLocalizer)(),{0:i,1:s}=(0,r.useState)(!1);return t?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(b.S,{size:16}),(0,u.jsx)("div",{className:re().footerCallout,children:(0,u.jsx)("div",{className:re().footerCalloutContent,children:(0,u.jsxs)("div",{className:re().statusRow,children:[(0,u.jsx)(ie,{status:t?.status}),(0,u.jsxs)("div",{className:re().statusInfo,children:[(0,u.jsx)(f.T,{variant:"legal",bold:!0,children:(0,u.jsx)("strong",{children:n("Nintendo Switch 2 Compatibility Information")})}),(0,u.jsxs)(f.T,{variant:"legal",children:[t?.caption," ",t?.details?.length>0&&(0,u.jsx)(j.L,{onClick:()=>s(!0),children:n("See details")})]}),(0,u.jsx)(f.T,{variant:"legal",children:t?.captionNote})]})]})})}),(0,u.jsx)(te.M,{visible:i,onClose:()=>s(!1),title:n("Nintendo Switch 2 Compatibility Information"),children:(0,u.jsxs)("div",{className:re().modalContent,children:[(0,u.jsx)("div",{className:re().modalIcon,children:(0,u.jsx)(ie,{status:t?.status,size:24})}),(0,u.jsx)(f.T,{variant:"body",className:re().modalCaption,children:(0,u.jsx)("strong",{children:t?.caption})}),(0,u.jsx)("ul",{className:re().compatibilityDetails,children:t?.details.map(((e,t)=>(0,u.jsx)("li",{children:(0,u.jsx)(f.T,{variant:"body",children:e})},t)))}),(0,u.jsx)(S.B,{onClick:()=>s(!1),children:n("Close")})]})})]}):null},ae=n(99140);function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function le(e){for(var t=1;t{const e=[{href:"/store/",label:i("Store")}];if(t.topLevelCategory){const n=t.topLevelCategory.code?.toLowerCase()?.replace(/ /g,"-");e.push({href:`/store/${n}/`,label:t.topLevelCategory.label})}return t.name&&e.push({href:`/store/products/${t.urlKey}/`,label:i(t.name)}),e.map((e=>{let{href:t,label:n}=e;return(0,u.jsx)(I.Z,{href:t,children:(0,u.jsx)("a",{children:n})},t)}))}),[t,i]),re=(0,r.useMemo)((()=>[t.productImage&&le({},t.productImage),...t.productGallery??[]].filter((e=>["image","video"].includes(e?.resourceType))).map(((e,n)=>{let{publicId:r,resourceType:i}=e;return"image"===i?(0,u.jsx)(g.K,{assetPath:r,alt:`${t.name} ${n+1}`},r):"video"===i?(0,u.jsx)(x.V,{assetPath:r},r):void 0}))),[t]),ie=(0,r.useMemo)((()=>{if(l===ae.xJ&&"HARDWARE"===t.topLevelCategory?.code)return(0,u.jsx)(f.T,{variant:"legal",children:(0,u.jsx)("strong",{children:i("Soyez avis\xe9s que Nintendo ne garantit pas la disponibilit\xe9 des pi\xe8ces de rechange, services de r\xe9paration ou des renseignements n\xe9cessaires \xe0 l\u2019entretien ou \xe0 la r\xe9paration des biens fabriqu\xe9s, import\xe9s, annonc\xe9s ou vendus par Nintendo.")})})}),[t,l,i]),oe=(0,r.useMemo)((()=>t.includesDigitalLicense&&"en-us"===l?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(b.S,{size:16}),(0,u.jsx)(f.T,{variant:"legal",children:(0,u.jsxs)("strong",{children:["Purchasing digital content is a license. For full details, see the"," ",(0,u.jsx)(j.L,{href:"https://accounts.nintendo.com/term/eula/US",children:"Nintendo Account User Agreement"},"user-agreement")]})})]}):null),[t,l]),ce=(0,r.useMemo)((()=>{const e=t?.variations?.find((e=>e?.product?.compatibility));return e?.product?.compatibility}),[t?.variations]);return(0,u.jsx)(L,{$bgColor:t.backgroundColor?`#${t.backgroundColor}`:_.rG[te],children:(0,u.jsxs)(E,{children:[(0,u.jsxs)(M,{children:[(0,u.jsx)($,{children:(0,u.jsx)(y.B,{currentPage:`/store/products/${t.urlKey}/`,children:ne})}),(0,u.jsxs)(R,{children:[(0,u.jsxs)("div",{children:[(0,u.jsx)(H,{children:(0,u.jsx)(w.M,{border:!0,showCap:(0,d.BZ)(t),ariaLabel:t.name+" gallery",showLoader:!1,inInitialViewport:!0,Head:N(),slideIsFullbleedOnMobile:!0,keyArtTag:t.isUpgrade&&i("Upgrade pack"),children:re},t.sku)}),(0,u.jsx)(b.S,{size:8}),(0,u.jsx)(W,{children:(0,u.jsx)(b.S,{size:8})})]}),(t.platinumPoints||t.exclusive||t.requiresSubscription||t.voucherNsuid)&&(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(F,{children:[t.platinumPoints&&(0,u.jsx)(v.L,{backgroundColor:"#fde6e7",foregroundColor:"#ac000d",children:i("My Nintendo Reward")}),t.exclusive&&(0,u.jsx)(v.L,{backgroundColor:"#fde6e7",foregroundColor:"#ac000d",children:i("Exclusive")}),t.requiresSubscription&&(0,u.jsx)(v.L,{backgroundColor:"#fde6e7",foregroundColor:"#ac000d",children:i("Nintendo Switch Online required")}),t.voucherNsuid&&(0,u.jsx)(v.L,{backgroundColor:"#fde6e7",foregroundColor:"#ac000d",children:i("Game Voucher eligible")})]})}),null!=t.contentRating&&(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(W,{children:(0,u.jsx)(o.bs,{rating:t.contentRating,descriptors:t.contentDescriptors,gamesShown:t.gamesShown})})}),(0,u.jsxs)(W,{children:[oe,te!==ae.rj.NINTENDO_SWITCH_2&&(0,u.jsx)(se,{compatibility:t.compatibility||ce}),t.displayChokingHazard?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(b.S,{size:24}),(0,u.jsxs)(A,{children:[(0,u.jsxs)(s.H,{variant:"h3",as:"strong",children:[i("Warning:")," ",(0,u.jsx)("br",{})]}),(0,u.jsxs)(f.T,{variant:"legal",children:[i("CHOKING HAZARD - Small parts.")," ",(0,u.jsx)("br",{}),i("Not for children under 3 years.")]})]})]}):null,t.topLegalDisclaimer?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(b.S,{size:24}),(0,u.jsx)(o.Ho,{textVariant:"legal",data:t.topLegalDisclaimer})]}):null,(0,u.jsx)(b.S,{size:12}),ie]})]}),(0,u.jsxs)(Q,{children:[(0,u.jsx)(s.H,{variant:"h1",children:t.name}),!ee&&(0,u.jsx)(b.S,{size:16}),ee&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(f.T,{variant:"caption",children:i("Releases {0}",{args:[t.releaseDateDisplay?t.releaseDateDisplay:n(t.releaseDate,{format:{day:"numeric",month:"numeric",year:"2-digit"}})]})}),(0,u.jsx)(b.S,{size:16})]}),t.topLevelCategory?.code===Y.p.GAMES&&(0,u.jsx)(Xn,{product:t,platformLabel:J,query:c}),(0,u.jsx)(vn,{product:t,purchaseOptions:k}),(0,d.pt)(t)||t.isUpgrade?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(b.S,{size:16}),(0,u.jsx)(zn,{product:t})]}):null,(t.downloadableContents?.length>0||t.demoNsuid)&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(b.S,{size:16}),(0,u.jsxs)(G,{children:[t.downloadableContents.length>0&&(0,u.jsx)(U,{href:"#dlc",icon:P.Z,locale:l,children:i("View DLC")}),t.demoNsuid&&(0,u.jsx)(o.g,{product:t})]})]}),(0,u.jsxs)(B,{children:[oe,te!==ae.rj.NINTENDO_SWITCH_2&&(0,u.jsx)(se,{compatibility:t.compatibility||ce}),t.displayChokingHazard?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(b.S,{size:24}),(0,u.jsxs)(A,{children:[(0,u.jsxs)(s.H,{variant:"h3",as:"strong",children:[i("Warning:")," ",(0,u.jsx)("br",{})]}),(0,u.jsxs)(f.T,{variant:"legal",children:[i("CHOKING HAZARD - Small parts.")," ",(0,u.jsx)("br",{}),i("Not for children under 3 years.")]})]})]}):null,t.topLegalDisclaimer?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(b.S,{size:24}),(0,u.jsx)(o.Ho,{data:t.topLegalDisclaimer})]}):null,ie]})]})]}),t.freeWithExNso&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(b.S,{size:16}),(0,u.jsxs)(q,{children:[(0,u.jsxs)(V,{children:[(0,u.jsx)(K,{size:48}),(0,u.jsxs)("div",{children:[(0,u.jsx)(s.H,{variant:"h4",children:i("Free for Nintendo Switch Online + Expansion Pack members")}),(0,u.jsx)(b.S,{size:2}),X?(0,u.jsx)(C.S,{width:"100%",type:"text",size:"caption"}):(0,u.jsx)(f.T,{variant:"caption",children:O?i("With your paid membership*, you can enjoy this content at no additional cost."):(0,u.jsxs)(u.Fragment,{children:[i("If you have a paid membership*, you can enjoy this content at no additional cost.")," ",i("Not yet a member?")," ",(0,u.jsx)(j.L,{href:"/online",locale:l,children:(0,u.jsx)("a",{children:i("Learn more")})})]})})]})]}),(0,u.jsx)(S.B,{size:"small",href:Z,disabled:X||T||!O,children:i("Download now")})]})]})]})})},de=n(61921),ue=n(70103),pe=n(38463),he=n(33594),me=n(3810),ge=n(2099);const xe=l.ZP.div.withConfig({componentId:"sc-16atj0u-0"})(["display:grid;grid-template-columns:1fr;justify-content:center;p{font-weight:",";}"],(e=>{let{theme:t}=e;return t.font.weight.bold})),fe=l.ZP.div.withConfig({componentId:"sc-16atj0u-1"})([""," padding:",";display:grid;justify-content:center;box-shadow:0 4px 16px 0 rgba(60,64,89,0.15);border-radius:",";"],(e=>{let{theme:t}=e;return(0,l.iv)(["background:",";color:",";"],(e=>{let{$supported:n}=e;return n?t.color.darkGray2:t.color.lightGray2}),t.color.white)}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.borderRadiusSmall})),be="TABLETOP",je="TV",ye="HANDHELD",we={[be]:de.Z,[je]:ue.Z,[ye]:pe.Z},ve={[be]:he.Z,[je]:me.Z,[ye]:ge.Z},Pe=e=>{const{mode:t,iconSize:n,supported:r,title:i}=e,s=r?we[t]:ve[t];return(0,u.jsxs)(xe,{children:[(0,u.jsx)(fe,{$supported:r,children:(0,u.jsx)(s,{size:n})}),(0,u.jsx)("p",{children:i})]})};Pe.defaultProps={supported:!1,iconName:"tv-mode",iconSize:48,title:"tv-mode"};var Ce=n(52323),Se=n(59124),Ie=n(1505),_e=n(79102),De=n(3064),ze=n(4127),Ze=n(84283),Ne=n(98288);const ke=(0,l.ZP)(o.$0).withConfig({componentId:"sc-4l5ex7-0"})(["margin-top:",";","{margin-top:",";}"],(e=>{let{theme:t}=e;return t.spacing[32]}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.spacing[64]})),Te=l.ZP.div.withConfig({componentId:"sc-4l5ex7-1"})(["p{white-space:pre-wrap;}p,a{","}"],(e=>{let{theme:t}=e;return(0,l.iv)(["font-size:",";","{font-size:",";}"],t.font.size.legalMobile,t.mediaQuery.tablet,t.font.size.legalDesktop)})),Oe=l.ZP.div.withConfig({componentId:"sc-4l5ex7-2"})(["display:flex;align-items:baseline;gap:0.25rem;"]),Le=l.ZP.div.withConfig({componentId:"sc-4l5ex7-3"})(["display:block;justify-content:center;border-radius:",";overflow:hidden;img{max-height:24em;object-fit:contain;}"],(e=>{let{theme:t}=e;return t.borderRadius})),Ee=l.ZP.div.withConfig({componentId:"sc-4l5ex7-4"})(["",""],(e=>{let{theme:t}=e;return(0,l.iv)(["display:grid;grid-template-columns:1fr;align-items:start;gap:",";","{grid-template-columns:repeat(2,1fr);}"],(e=>{let{theme:t}=e;return t.spacing[28]}),t.mediaQuery.tablet)})),Me=l.ZP.div.withConfig({componentId:"sc-4l5ex7-5"})(["",""],(e=>{let{theme:t}=e;return(0,l.iv)(["background:",";padding:"," ",";","{padding:"," ",";}ul{padding-inline-start:20px;}"],t.color.lightGray4,t.spacing[32],t.spacing[24],t.mediaQuery.tablet,t.spacing[32],t.spacing[48])})),Re=l.ZP.section.withConfig({componentId:"sc-4l5ex7-6"})(["padding:1rem;"]),Ae=l.ZP.div.withConfig({componentId:"sc-4l5ex7-7"})(["margin-top:",";& > div:not(:last-of-type){margin-bottom:",";}","{margin-top:",";}"],(e=>{let{theme:t}=e;return t.spacing[40]}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.spacing[80]})),$e=(0,l.ZP)(o.Ho).withConfig({componentId:"sc-4l5ex7-8"})(["&,& > p{margin-top:0;font-size:",";","{font-size:",";}}"],(e=>{let{theme:t}=e;return t.font.size.captionMobile}),(e=>{let{theme:t}=e;return t.mediaQuery.tabletSmall}),(e=>{let{theme:t}=e;return t.font.size.captionDesktop})),Ue=l.ZP.div.withConfig({componentId:"sc-4l5ex7-9"})(["display:grid;grid-template-columns:1fr;gap:",";margin-bottom:",";","{grid-template-columns:repeat(3,1fr);}"],(e=>{let{theme:t}=e;return t.spacing[24]}),(e=>{let{theme:t}=e;return t.spacing[24]}),(e=>{let{theme:t}=e;return t.mediaQuery.desktop}));function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function He(e){for(var t=1;t0,I=(0,a.useRecentlyViewed)(),{trackViewItem:_}=(0,a.useAnalytics)(),{0:D,1:z}=(0,r.useState)(!1),{0:Z,1:N}=(0,r.useState)(!1),O=n.contentRating?.requiresAgeGate,L=Qe.get(),[E,M]=v.split("-"),R=n.officialSite?.startsWith("http")?n.officialSite:`//${n.officialSite}`,A=n.relatedArticles,$=(0,r.useMemo)((()=>{const e=[];return ae.wh.has(v)&&(n.upsellProducts?.length&&e.push({heading:x("Related items to explore"),products:n.upsellProducts.slice(0,16).map(d.uF)}),n.crossSellProducts?.length&&e.push({heading:x("More like this"),products:n.crossSellProducts.slice(0,16).map(d.uF)}),h?.length&&e.push({heading:x("Digital best sellers"),products:h,showLoader:!1})),e}),[n.upsellProducts,n.crossSellProducts,h,x,v]),{waitForElementRef:U}=(0,Ne.r)(),G=(0,r.useCallback)((()=>{U(!0)}),[U]);return(0,r.useEffect)((()=>{I.addProduct&&!D&&(z(!0),I.addProduct(n))}),[I,n,D]),(0,d.nw)((()=>_(n,(0,d.DW)({name:n.name})))),O&&P.loading?(0,u.jsx)(Re,{}):(0,u.jsxs)(Ce.A,{passed:"true"===L&&!P.data?.isChild||!O,failed:(P.data?.isChild||"false"===L)&&O,onSuccess:()=>Qe.set("true",Fe),onFailure:()=>Qe.set("false",Fe),lang:E,country:M,minimumAge:"mx"===M?18:17,children:[(0,u.jsx)(ce,{product:n}),n?.upgradeDescription&&n?.platform?.code===ae.rj.NINTENDO_SWITCH_2&&(0,u.jsx)(Hn,{callout:n?.upgradeDescription,backgroundColor:n?.backgroundColor}),(0,u.jsxs)(s.H.NewLevel,{children:[c&&(0,u.jsx)(ke,{constrained:!0,small:!0,children:(0,u.jsxs)(Ee,{children:[(0,u.jsxs)("div",{children:[n.headline&&(0,u.jsx)(s.H,{children:n.headline}),(0,u.jsx)(In,{maxLines:10,description:n?.nsuid?n?.description:n?.physicalDescription,category:n.topLevelCategory}),n.officialSite&&(0,u.jsx)("a",{href:R,target:"_blank",rel:"noopener noreferrer",children:(0,u.jsx)(S.B,{children:x("Explore this game's official website")})})]}),n.productImage&&(0,u.jsx)(Le,{children:(0,u.jsx)("div",{children:(0,u.jsx)(T.I,{assetPath:n.productImage.publicId,alt:n.name})})})]})}),l?.asset?.primary?.assetPath?(0,u.jsx)(o.$0,{constrained:!0,small:!0,background:l.background?.backgroundType,id:"banner",children:(0,u.jsx)(o.tm,{content:{assetPath:l.asset?.primary?.assetPath,assetPathAlt:l.asset?.alt,cta:l.ctaList[0],description:l.description,heading:l.heading,modifiers:l.modifiers}})}):null,t,n?.softwareContents?.length>0?(0,u.jsxs)(o.$0,{constrained:!0,small:!0,marginBottom:0,children:[(0,u.jsx)(s.H,{variant:"h2",children:x("Bundle includes the following:")}),(0,u.jsx)("p",{children:x("For details on the products in this bundle, including up-to-date system compatibility information, please refer to each product page listed below.")}),(0,u.jsx)(Ue,{children:n?.softwareContents?.slice(0,Z&&n?.softwareContents?.length||6).map(((e,t)=>(0,u.jsx)(Ze.I8,He(He({},(0,d.uF)(e)),{},{tileVariant:"wide"}),t+e.name)))}),n.softwareContents?.length>6&&(0,u.jsx)(k.I,{onClick:()=>N(!Z),role:"button",icon:Z?Se.Z:Ie.Z,children:x(Z?"See less":"See all")})]}):null,n.publisherNotifications&&(0,u.jsx)(o.$0,{constrained:!0,small:!0,marginBottom:0,children:(0,u.jsxs)(Me,{children:[(0,u.jsx)(s.H,{variant:"h3",children:x("Publisher notification(s):")}),(0,u.jsx)(o.Ho,{textVariant:"legal",data:n.publisherNotifications})]})}),A?.length>0&&v===ae.ZW&&(0,u.jsxs)(o.$0,{constrained:!0,small:!0,marginBottom:0,children:[(0,u.jsx)(i.H,{ctaText:x("Finding this content helpful?"),ctaType:"iconlink",ctaUrl:"https://nintendoofamerica.co1.qualtrics.com/jfe/form/SV_ahCL4zK2P7j2q3k",icon:_e.Z,ctaTarget:"_blank",children:x("Related news and events")}),(0,u.jsx)(b.S,{size:16}),(0,u.jsx)(De.R,{contained:!0,children:A.map((e=>{let{id:t,url:n,title:r,media:i,publishDate:s}=e;return(0,u.jsx)(ze.N,{articleLink:n,articleTitle:r,artPath:i?.publicId,publishDate:y(s,{format:w.SHORT}),readMoreLabel:x("Read more"),size:"small"},t)}))})]}),(0,u.jsxs)(o.$0,{constrained:!0,id:"about",small:!0,marginTop:0,children:[(0,u.jsx)(wt,{product:n,showLendableRow:g}),(0,u.jsxs)(Ae,{children:[n.playerCountDescription&&(0,u.jsxs)("div",{children:[(0,u.jsx)(f.T,{as:"span",variant:"title",children:x("About the Number of Players")}),(0,u.jsx)($e,{data:n.playerCountDescription})]}),n.miscPeripheralDescriptions&&(0,u.jsxs)("div",{children:[(0,u.jsx)(f.T,{as:"span",variant:"title",children:x("About Supported Controllers")}),(0,u.jsx)($e,{data:n.miscPeripheralDescriptions})]}),n.miscNetworkDescriptions&&(0,u.jsxs)("div",{children:[(0,u.jsx)(f.T,{as:"span",variant:"title",children:x("About Supported Features")}),(0,u.jsx)($e,{data:n.miscNetworkDescriptions})]}),n.miscDescriptions&&(0,u.jsxs)("div",{children:[(0,u.jsx)(f.T,{as:"span",variant:"title",children:x("About Using Nintendo Switch 2 to Play")}),(0,u.jsx)($e,{data:n.miscDescriptions})]})]})]}),C?(0,u.jsx)(o.$0,{id:"dlc",small:!0,children:(0,u.jsx)(p,{product:n,locale:v})}):null,(0,u.jsx)(o.$0,{small:!0,constrained:!0,marginBottom:16,children:(0,u.jsx)(o.$3,{collections:$})}),(0,u.jsx)(o.HU,{currentSku:n.sku,small:!0,onProductsLoaded:G}),(0,u.jsxs)(o.$0,{id:"legal",constrained:!0,small:!0,children:["GAMES"===n.topLevelCategory?.code&&(0,u.jsx)(f.T,{variant:"legal",children:x("WARNING: If you have epilepsy or have had seizures or other unusual reactions to flashing lights or patterns, consult a doctor before playing video games. All users should read the Health and Safety Information available in the system settings before using this software.")}),n.disclaimer&&(0,u.jsx)(Te,{dangerouslySetInnerHTML:{__html:n.disclaimer}}),n.displayProp65&&(0,u.jsxs)(Te,{children:[(0,u.jsxs)(Oe,{children:[(0,u.jsx)(J.Z,{size:16}),(0,u.jsx)(s.H,{variant:"h3",children:x("Warning:")})," ",x("Cancer and reproductive harm.")]}),(0,u.jsx)(j.L,{href:"https://www.p65warnings.ca.gov/",children:"p65warnings.ca.gov"})]})]})]})]})}var Be=n(65049),qe=n(24123),Ve=n(46488),Ke=n(33120),Ye=n(85258),Xe=n(77780),Je=n(21203),et=n(56007),tt=n(85792),nt=n(96051),rt=n(32687),it=n(49446),st=n(25338),at=n(25809),ot=n(64684),lt=n(83533);const ct=(e,t,n,r)=>{const{text:i}=r,s=parseInt(n||t),a=1===s?i("Single Player"):s>3?"4+":`${s}+`;return{href:`/search#cat=gme&f=playerCount&playerCount=${encodeURIComponent(a)}`,label:e+" ("+(t!=n?t+"-":"")+(n||"")+")"}},dt=(e,t)=>`/search/#cat=gme&f=${e}&${e}=${encodeURIComponent(t)}`,ut=e=>{const t=new Date;return new Date(e.releaseDate)<=t},pt=l.ZP.div.withConfig({componentId:"sc-1237z5p-0"})(["padding:var(--theme-spacing-16);padding-top:0;","{padding:var(--theme-spacing-16);}"],(e=>{let{theme:t}=e;return t.mediaQuery.tablet})),ht=l.ZP.div.withConfig({componentId:"sc-1237z5p-1"})(["margin-bottom:",";margin-left:calc(-1 * var(--theme-spacing-16));margin-right:calc(-1 * var(--theme-spacing-16));","{margin-left:0;margin-right:0;}"],(e=>{let{theme:t}=e;return t.spacing[32]}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet})),mt=l.ZP.div.withConfig({componentId:"sc-1237z5p-2"})(["",""],(e=>{let{theme:t}=e;return(0,l.iv)(["display:grid;grid-template-columns:28px 1fr;align-items:start;gap:",";grid-row-gap:0;border-bottom:1px solid ",";padding:var(--theme-spacing-24) var(--theme-spacing-16);svg{grid-row:1 / 3;}&:nth-child(1){border-top:1px solid ",";}","{grid-template-columns:28px 1fr 2fr;align-items:center;svg{grid-row:1;}}"],(e=>{let{theme:t}=e;return t.spacing[20]}),(e=>{let{theme:t}=e;return t.color.lightGray2}),(e=>{let{theme:t}=e;return t.color.lightGray2}),t.mediaQuery.tablet)})),gt=l.ZP.div.withConfig({componentId:"sc-1237z5p-3"})(["display:flex;align-items:center;flex-wrap:wrap;gap:var(--theme-spacing-20);font-size:var(--theme-font-size-bodyMobile);padding:6px 0 0;button{padding:0;}","{font-size:var(--theme-font-size-bodyDesktop);gap:",";}"],(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.spacing[16]})),xt=l.ZP.div.withConfig({componentId:"sc-1237z5p-4"})(["display:flex;flex-direction:column;align-items:center;"]),ft=(l.ZP.div.withConfig({componentId:"sc-1237z5p-5"})([""," padding:",";display:grid;justify-content:center;box-shadow:0 4px 16px 0 rgba(60,64,89,0.15);border-radius:",";"],(e=>{let{theme:t}=e;return(0,l.iv)(["background:",";color:",";"],(e=>e.supported?t.color.secondary:"rgba(60, 64, 89, 0.15)"),(e=>e.supported?"#fff":"#c8c8c8"))}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.borderRadius})),l.ZP.div.withConfig({componentId:"sc-1237z5p-6"})(["display:flex;align-items:center;justify-content:center;border:1px dashed #e60012;width:100%;padding:1em ",";"],(e=>{let{theme:t}=e;return t.spacing[32]})),l.ZP.div.withConfig({componentId:"sc-1237z5p-7"})(["margin:"," 0;","{margin:"," 0;}"],(e=>{let{theme:t}=e;return t.spacing[24]}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.spacing[40]}))),bt=(l.ZP.div.withConfig({componentId:"sc-1237z5p-8"})(["display:flex;flex-direction:column;gap:",";max-width:500px;padding:",";","{padding:"," ",";}"],(e=>{let{theme:t}=e;return t.spacing[24]}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.spacing[24]}),(e=>{let{theme:t}=e;return t.spacing[32]})),{[_.kX.TV_MODE]:ue.Z,[_.kX.TABLETOP_MODE]:de.Z,[_.kX.HANDHELD_MODE]:pe.Z}),jt=e=>{let{children:t,icon:n,heading:i,descriptions:a}=e;return(0,r.useMemo)((()=>t?.length||!!a?.map((e=>e.label)).join("").trim()),[t,a])?(0,u.jsxs)(mt,{children:[n,(0,u.jsx)(s.H,{variant:"h3",children:i}),(0,u.jsxs)("div",{children:[!!a?.length&&(0,u.jsx)(gt,{children:a?.map((e=>{const t=e.icon;return(0,u.jsxs)(xt,{children:[t&&(0,u.jsx)(t,{size:40}),(0,u.jsx)("div",{children:e.href?(0,u.jsx)(j.L,{href:e.href,children:e.label}):e.label})]},e.label)}))}),t]})]}):null},yt="/switch/online/";var wt=e=>{let{product:t,showLendableRow:n}=e;const{date:i,DateFormat:l,text:c,locale:p}=(0,a.useLocalizer)(),h=ut(t),m=(e=>{const t=ut(e),n=e?.softwareDetails?.romSizes?.filter((e=>null!=e.totalRomSize||null!=e.estimatedRomSize)).map((e=>{const n=t?e.totalRomSize||e.estimatedRomSize:e.estimatedRomSize||e.totalRomSize;return[e.platform,n,n===e.estimatedRomSize]}));return n?.length?1===n.length?[{label:(0,z.jb)(n[0][1]),isEstimated:n[0][2]}]:n.map((e=>{let[t,n,r]=e;return{label:`${ae.zP[t]}: ${(0,z.jb)(n)}`,isEstimated:r}})):[]})(t),g=(e=>{const t=e?.softwareDetails?.rights?.find((t=>{let{titleId:n}=t;return n===e.applicationId}));return t?.isLendable})(t),x=(0,lt.Z)(lt.o.DESKTOP),y=(0,r.useMemo)((()=>(e=>{const{gameGenres:t,gameFeatures:n,waysToPlay:r}=(0,d.rZ)(e);return[...t.map((e=>{let{label:t}=e;return{url:dt(Y.B.GAME_GENRES,t),label:t}})),...n.map((e=>{let{label:t}=e;return{url:dt(Y.B.GAME_FEATURES,t),label:t}})),...r.map((e=>{let{label:t}=e;return{url:dt(Y.B.WAYS_TO_PLAY,t),label:t}}))]})(t)),[t]),w=(0,r.useMemo)((()=>(0,d.rZ)(t)),[t]).gameGenres?.map((e=>({href:`/search/#cat=gme&f=gameGenreLabels&gameGenreLabels=${encodeURIComponent(e.label)}`,label:e.label}))),{playModes:v,gameShare:P}=(t.playModes||[]).reduce(((e,t)=>{let{playModes:n,gameShare:r}=e;return _.dH[t.code]?{playModes:n,gameShare:[...r,c(_.hi[t.label])]}:_.kX[t.code]?{gameShare:r,playModes:[...n,{label:c(t.label),icon:bt[t.code]}]}:{playModes:n,gameShare:r}}),{playModes:[],gameShare:[]}),C="/store/games/#p=1&sort=df&show=0&f=corePlatforms&corePlatforms=Nintendo+Switch"+(t?.platform?.code===ae.rj.NINTENDO_SWITCH_2?"+2":""),S=((e,t)=>{let n=[];const{numberOfPlayers:r}=e;return r?.system&&n.push(ct(t("Single System"),r?.system?.min,r?.system?.max,{text:t})),r?.local&&n.push(ct(t("Local wireless"),r?.local?.min,r?.local?.max,{text:t})),r?.online&&n.push(ct(t("Online"),r?.online?.min,r?.online?.max,{text:t})),n})(t,c),I=(0,z.EE)(t),D=t?.topLevelCategory?.code===Y.p.HARDWARE,Z=m.some((e=>{let{isEstimated:t}=e;return t}));return(0,u.jsxs)(u.Fragment,{children:[y.length>0&&(0,u.jsx)(ft,{children:(0,u.jsx)(Be.T,{sectionTitle:c("Related tags"),tags:y,showMoreLabel:c("Show more"),showLessLabel:c("Show less"),defaultRowCount:x?2:3})}),(0,u.jsxs)(ht,{children:[(0,u.jsx)(pt,{children:(0,u.jsx)(s.H,{variant:"h1",children:c("About this item")})}),(0,u.jsx)(s.H.NewLevel,{children:(0,u.jsxs)(Ze.rj,{columns:1,gap:0,children:[!!m.length&&(0,u.jsx)(jt,{icon:(0,u.jsx)(qe.Z,{size:28}),heading:`${c("Game file size")} ${Z||!h?`(${c("estimated")})`:""}`,descriptions:m.map((e=>{let{label:t}=e;return{label:t}}))}),t.playModes&&(0,u.jsx)(jt,{icon:(0,u.jsx)(Ve.Z,{size:28}),heading:c("Supported play modes"),descriptions:v,children:t?.platform?.code!==ae.rj.NINTENDO_SWITCH_2&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(b.S,{size:12}),(0,u.jsx)(f.T,{variant:"legal",children:c("Software compatibility and play experience may differ on Nintendo Switch Lite. Additional accessories may be required(sold separately). See support for details.")})]})}),t.numberOfPlayers?.system?.max&&(0,u.jsx)(jt,{icon:(0,u.jsx)(Ke.Z,{size:28}),heading:c("No. of players"),descriptions:S}),P?.length>0&&(0,u.jsx)(jt,{icon:(0,u.jsx)(Ye.Z,{size:28}),heading:"GameShare",descriptions:[{label:P.join(", ")}],children:P.includes(c("Online"))&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(b.S,{size:12}),(0,u.jsxs)(f.T,{variant:"legal",children:[c("Nintendo Switch 2 required to initiate GameShare. GameChat required for online GameShare. Internet, Nintendo Switch Online membership (sold separately) and Nintendo Account required for online features, including GameChat. Not available in all countries. Terms and GameChat requirements apply.")," ",(0,u.jsx)(j.L,{href:c("https://en-americas-support.nintendo.com/"),children:c("support.nintendo.com")},"gameshare-url")]})]})}),n&&g&&(0,u.jsx)(jt,{icon:(0,u.jsx)(Xe.Z,{size:28}),heading:c("Nintendo Account family-group lending"),descriptions:[{label:c("Supported")}]}),t.tags?.genres?.length>0&&(0,u.jsx)(jt,{icon:(0,u.jsx)(Je.Z,{size:28}),heading:c("Genre"),descriptions:w}),t.nsoFeatures&&(0,u.jsxs)(jt,{icon:(0,u.jsx)(O.Z,{size:28}),heading:c("Nintendo Switch Online"),descriptions:t.nsoFeatures.map((e=>{let{label:t}=e;return{href:yt,label:c(t)}})),children:[(0,u.jsx)(b.S,{size:12}),(0,u.jsxs)(f.T,{variant:"legal",children:[c("Play online, access classic NES\u2122 and Super NES\u2122 games, and more with a Nintendo Switch Online membership.")," ",(0,u.jsx)(j.L,{href:yt,children:c("Learn more")},"nso-url")]})]}),t.platform?.label&&(0,u.jsx)(jt,{icon:(0,u.jsx)(et.Z,{size:28}),heading:c("System"),descriptions:[{href:C,label:t.platform.label}]}),t.softwarePublisher&&(0,u.jsx)(jt,{icon:(0,u.jsx)(tt.Z,{size:28}),heading:c("Publisher"),descriptions:[{href:`/search#cat=gme&f=softwarePublisher&softwarePublisher=${encodeURIComponent(t.softwarePublisher)}`,label:t.softwarePublisher}]}),t.softwareDeveloper&&(0,u.jsx)(jt,{icon:(0,u.jsx)(nt.Z,{size:28}),heading:c("Developer"),descriptions:[{href:`/search#cat=gme&f=softwareDeveloper&softwareDeveloper=${encodeURIComponent(t.softwareDeveloper)}`,label:t.softwareDeveloper}]}),t.supportedLanguages&&(0,u.jsx)(jt,{icon:(0,u.jsx)(rt.Z,{size:28}),heading:c("Supported languages"),descriptions:[{label:t.supportedLanguages?.map(c).join(", ")}]}),t.releaseDate&&(0,u.jsx)(jt,{icon:(0,u.jsx)(it.Z,{size:28}),heading:c("Release date"),descriptions:[{label:t.releaseDateDisplay?t.releaseDateDisplay:i(t.releaseDate,{format:l.LONG})}]}),null!=t.contentRating&&(0,u.jsxs)(jt,{icon:(0,u.jsx)(st.Z,{size:28}),heading:c("ESRB rating"),children:[(0,u.jsx)(b.S,{size:12}),(0,u.jsx)(o.bs,{descriptors:t.contentDescriptors,rating:t.contentRating,locale:p})]}),t.manufacturer&&(0,u.jsx)(jt,{icon:(0,u.jsx)(tt.Z,{size:28}),heading:c("Manufacturer"),descriptions:[{href:`/search#cat=${D?"hdw":"merch"}&f=manufacturer&manufacturer=${encodeURIComponent(t.manufacturer)}&p=1&sort=df`,label:t.manufacturer}]}),t.sku&&!I&&(0,u.jsx)(jt,{icon:(0,u.jsx)(at.Z,{size:28}),heading:c("SKU"),descriptions:[{label:t.sku}]}),t.upc&&!t.nsuid&&(0,u.jsx)(jt,{icon:(0,u.jsx)(ot.Z,{size:28}),heading:c("UPC"),descriptions:[{label:t.upc}]})]})})]})]})},vt=n(33379),Pt=n(25237),Ct=n.n(Pt),St=n(51301),It=n(49120),_t=n(80149),Dt=n(82103),zt=n(1205),Zt=n(7141),Nt=n(7162),kt=n(13847),Tt=n.n(kt);var Ot=e=>{let{eligiblePoints:t,loading:n}=e;const{text:r}=(0,a.useLocalizer)();return n?(0,u.jsx)(C.S,{className:Tt().skeleton,width:"100%"}):(0,u.jsxs)("div",{className:Tt().eligiblePoints,children:[(0,u.jsx)(Nt.Z,{size:24}),(0,u.jsx)(f.T,{variant:"legal",children:r("Eligible for up to {0} Gold Points",{args:[(0,u.jsx)("span",{className:Tt().boldText,children:t},"goldPoints")]})})]})},Lt=n(94989),Et=n(74039),Mt=n(12547),Rt=n(59379);const At="64px",$t="110px",Ut="14px",Gt="20px",Ht=l.ZP.div.withConfig({componentId:"sc-66y51m-0"})(["display:flex;justify-content:center;width:100%;"]),Ft=l.ZP.div.withConfig({componentId:"sc-66y51m-1"})(["display:flex;width:100%;height:",";align-items:flex-start;justify-content:space-between;padding-top:1rem;transition:height 150ms ease-in-out;","{align-items:center;width:",";max-width:",";height:",";padding-top:0;}"],(e=>{let{$hasError:t}=e;return t?`${10+parseInt($t)}px`:$t}),(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),Rt.As,Rt.oQ,(e=>{let{$hasError:t}=e;return t?`${10+parseInt(At)}px`:At})),Qt=l.ZP.div.withConfig({componentId:"sc-66y51m-2"})(["display:flex;width:100%;align-items:center;justify-content:space-between;padding:0 1rem;","{width:initial;justify-content:flex-end;padding:0;}"],(e=>{let{theme:t}=e;return t.mediaQuery.desktop})),Wt=(0,l.ZP)(s.H).withConfig({componentId:"sc-66y51m-3"})(["display:none;","{display:block;}"],(e=>{let{theme:t}=e;return t.mediaQuery.desktop})),Bt=l.ZP.div.withConfig({componentId:"sc-66y51m-4"})(["display:flex;flex-direction:column;row-gap:",";width:50%;","{align-items:center;flex-direction:row;width:initial;row-gap:unset;}"],(e=>{let{theme:t}=e;return t.spacing[4]}),(e=>{let{theme:t}=e;return t.mediaQuery.desktop})),qt=l.ZP.div.withConfig({componentId:"sc-66y51m-5"})(["display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-right:1rem;position:relative;"]),Vt=l.ZP.div.withConfig({componentId:"sc-66y51m-6"})(["visibility:",";"],(e=>{let{$visible:t}=e;return t?"visible":"hidden"})),Kt=(0,l.ZP)(C.S).withConfig({componentId:"sc-66y51m-7"})(["position:absolute;top:-3px;left:0;z-index:1;"]),Yt=l.ZP.span.withConfig({componentId:"sc-66y51m-8"})(["font-size:",";font-weight:",";","{margin-right:",";white-space:nowrap;}"],(e=>{let{theme:t}=e;return t.font.size.legalDesktop}),(e=>{let{theme:t}=e;return t.font.weight.bold}),(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),(e=>{let{$smallMargin:t}=e;return t?"0.5rem":"1rem"})),Xt=(0,l.ZP)(S.B).withConfig({componentId:"sc-66y51m-9"})(["width:100%;min-width:",";","{min-width:",";}"],(e=>{let{theme:t}=e;return t.pxToRem(180)}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.pxToRem(225)})),Jt=(0,l.ZP)(Ze.rj).withConfig({componentId:"sc-66y51m-10"})(["grid-template-columns:"," 1fr;","{grid-template-columns:"," 1fr;}"],Ut,(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),Gt),en=(0,l.ZP)(_t.Z).withConfig({componentId:"sc-66y51m-11"})(["width:",";","{width:",";}"],Ut,(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),Gt),tn=(0,l.ZP)(s.H).withConfig({componentId:"sc-66y51m-12"})(["font-size:",";","{font-size:",";}"],(e=>{let{theme:t}=e;return t.font.size.titleMobile}),(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),(e=>{let{theme:t}=e;return t.font.size.h3Desktop})),nn=(0,l.ZP)(f.T).withConfig({componentId:"sc-66y51m-13"})(["color:",";font-weight:",";text-align:center;margin-top:0.25rem;"],(e=>{let{theme:t}=e;return t.color.primary}),(e=>{let{theme:t}=e;return t.font.weight.bold}));var rn=n(53991);var sn=e=>{let{onChange:t,isBundle:n,product:r,title:i,value:s}=e;const{topLevelCategory:o,variations:l,nsuid:c,isUpgrade:p,loadingPricing:h}=r,{text:m}=(0,a.useLocalizer)(),g=(0,d.Ue)(l,r?.platform?.code);if("GAMES"===o?.code){if("MOBILE"==c)return(0,u.jsx)(rn.uP,{product:r});if(1===g.length||p||null==l)return(0,u.jsx)(Ze.rG,{label:m("Edition"),value:m(c?"Digital":"Physical")});if(g?.length>=2)return(0,u.jsx)(rn.Z5,{variations:g,loadingPricing:h})}return l?.length>0?(0,u.jsx)(rn.ig,{isBundle:n,onChange:t,product:r,title:i,value:s}):null},an=n(90749),on=n(43399),ln=n(76454),cn=n(93135),dn=n(79867);function un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pn(e){for(var t=1;t{const n=[ae.xJ,ae.oV,ae._1,ae.bA],r={[ae.xJ]:{4:"HNA"},[ae.oV]:{8:"PSTM",7:"MSTM",6:"CSTM",5:"ESTM"},[ae._1]:{3:"ART"},[ae.bA]:{2:"FNT",3:"BRT",4:"AMT",5:"ACT"}};return n.includes(t)?e.replace(/(?:UTC|GMT).(\d)/,((e,n)=>r[t][n]||e)):e},mn=function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Sale ends:",s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const a=new Date,o=new Date(e),l=t===ae.xJ,c=o.getTime()-a.getTime(),d=c/6e4/60;if(c<0&&!s)return null;if(!(d>24||s))return n(`${i} {0}`,{args:[(0,u.jsx)(dn.C,{onTimeEnd:r,endDate:e,abbreviate:!1},"timer")]});{const e=l?"es-MX":t===ae.bu?"en-US":(0,cn.ZP)(t);try{const r=Intl.DateTimeFormat().resolvedOptions().timeZone,s=o.toLocaleDateString(e,pn({timeZone:r,day:"numeric",month:"numeric",year:"2-digit"},l&&{month:"2-digit",day:"2-digit"})),a=t===ae.bA?"fr-CA":(0,cn.ZP)(t),c=o.toLocaleTimeString(a,{timeZone:r,timeZoneName:"short",hour:"2-digit",minute:"2-digit",hour12:[ae.bu,ae.ZW].includes(t)});return n(`${i} {0} at {1}`,{args:[`${l?s.replace(/\//g,"-"):s}`,hn(c.replace(/(A|P){1}M/,((e,t)=>`${t.toLowerCase()}.m.`)),t)]})}catch{return null}}};function gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xn(e){for(var t=1;tn.e(7363).then(n.bind(n,87363))),{ssr:!1,loadableGenerated:{webpack:()=>[87363]}}),bn=(0,Et.Z)(St.W),jn="add-to-cart-drawer",yn="added-to-cart-drawer",wn=[jn];function vn(e){let{product:t,purchaseOptions:n}=e;const{actions:{openDrawer:i,closeDrawer:c,addOrUpdateDrawer:p,removeDrawer:h}}=(0,Lt.eV)(),g=(0,r.useRef)(),x=(0,r.useContext)(l.Ni),{locale:f,pathname:j}=(0,m.Z)(),y=f?.split("-")[0]??"en",{text:w}=(0,a.useLocalizer)(),v=(0,lt.Z)(lt.o.DESKTOP),{0:P,1:C}=(0,r.useState)(0),{0:S,1:I}=(0,r.useState)(),{state:{account:_,addableQty:D,quantity:z,isLoading:Z,isUpdating:N,isMobileGame:k,isDigitalProduct:T,isPurchasable:O,retailerSku:L,buttonDisabled:E,promptLogin:M,disableQuantity:R,buttonCopy:A,helperText:$,boldHelperText:U,displayPrice:G,showRedemptionCodeModal:H},actions:{handleDirectDownloadClick:F,handleAddToCart:Q,setQuantity:W,setShowRedemptionCodeModal:q}}=n,V=t.waitlist?.campaigns,K=t.waitlist?.invites,Y=t.waitlist?.loadingInvites,X=t.waitlist?.refreshInvites,J=V?.length>0,ee=K?.length>0?K[0]:null,te=V?.filter((e=>!0===e.allowRequests)),ne=te?.length>0?te[0]:null,[re,{loading:ie}]=(0,vt.D)(ln.P$.l8,{context:{authenticated:!0}}),se=(0,r.useCallback)((async()=>{if(M)_?.promptLogin();else try{!(await re({variables:{invite:{campaignId:ne?.id}}})).error&&X?await X():I(on.O.DEFAULT)}catch(e){I(on.O.DEFAULT)}}),[M,_,re,ne?.id,X]),{platinumPoints:ae,eshopDetails:oe}=t,le=((e,t)=>{const{text:n}=(0,a.useLocalizer)(),{locale:i}=(0,m.Z)(),s=(0,r.useCallback)((()=>{if(!e)return null;const{status:t,expiresAt:r}=e;switch(t){case"active":return mn(r,i,n,(()=>{window.location.reload()}),"Invite ends:");case"expired":return mn(r,i,n,(()=>{window.location.reload()}),"Invite expired:",!0)}}),[e,i,n]);return(0,r.useMemo)((()=>s()||(t?.discountPriceEnd?mn(t?.discountPriceEnd,i,n,(()=>{window.location.reload()})):null)),[t?.discountPriceEnd,i,n,s])})(ee,oe),ce=(0,r.useMemo)((()=>({id:yn,drawer:{height:"325px",target:Lt.zO.FLYOUT,bgColor:x.color.lightGray3,enableScrim:!0,content:(0,u.jsx)(o.ZL,{product:t,quantity:P,onClose:()=>c(yn)})}})),[t,P,x,c]),de=(0,r.useCallback)((async()=>{C(z),I();const{data:e,errors:n}=await Q()||{},r=e?.cart?.items.some((e=>{let{product:n}=e;return n?.sku===t.sku})),s=n?.length>0;if(r&&!s)i(yn);else if(s){const e=n?.[0]?.extensions?.code;I(on.O[e]||on.O.DEFAULT)}}),[t,z,Q,i]),ue=(0,r.useMemo)((()=>({viewPortTopOffset:v?Lt.nI.DESKTOP:0})),[v]),pe=(0,r.useMemo)((()=>({[jn]:{ref:g}})),[]),he=S?`${10+parseInt(At)}px`:At,me=S?`${10+parseInt($t)}px`:$t,ge=(0,r.useMemo)((()=>({[jn]:{drawer:{height:v?he:me,target:Lt.zO.TOP_DRAWER,bgColor:It.d.color.lightGray3,content:(0,u.jsx)(Rn,{product:t,errorMessage:S,purchaseOptions:xn(xn({},n),{},{actions:xn(xn({},n.actions),{},{handleAddToCart:de})})})}}})),[t,v,n,S,de,he,me]);(0,Mt.Z)(wn,pe,ge,ue),(0,r.useEffect)((()=>{p(ce.id,ce.drawer)}),[ce,p]),(0,r.useEffect)((()=>{W(1)}),[W,D]),(0,r.useEffect)((()=>{I()}),[t?.sku,z]),(0,r.useEffect)((()=>()=>{h(yn)}),[h]);const xe=(N||!N&&!Z)&&(0,u.jsx)(an.xv,{variant:"legal",children:(0,u.jsx)(an.p6,{"data-testid":"helperText",$boldHelperText:U,children:"string"===typeof $?w($):$})});return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(sn,{product:t}),(0,u.jsx)(b.S,{size:24}),le&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(an.Xx,{backgroundColor:x.color.primary,foregroundColor:"#fff",children:le}),(0,u.jsx)(b.S,{size:8})]}),!k&&(0,u.jsxs)(an.nc,{children:[(0,d.vS)(f)&&!T?null:Z?(0,u.jsx)(an.wt,{width:"50%"}):ae?(0,u.jsxs)(Ze.rj,{columns:"24px 1fr",justifyItems:"start",alignItems:"center",children:[(0,u.jsx)(_t.Z,{size:24}),(0,u.jsxs)(s.H,{variant:"h2",children:[ae," ",w("Platinum Points")]})]}):(0,u.jsx)(Dt.P,{regPrice:G.regPrice,size:"large",salePrice:G.salePrice,lang:y}),(0,Et.Y)(t)&&(0,u.jsx)(bn,{product:t,analyticsName:"Product Detail Page wish list",iconOnly:!0})]}),null!=t.contentRating&&(0,u.jsxs)(B,{children:[(0,u.jsx)(b.S,{size:8}),(0,u.jsx)(o.bs,{rating:t.contentRating,descriptors:t.contentDescriptors,gamesShown:t.gamesShown})]}),oe?.goldPoints&&!t.removeGoldPoints?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(b.S,{size:24}),(0,u.jsx)(a.CustomerProvider,{fetchPolicy:"cache-and-network",pathname:j,children:(0,u.jsx)(Ot,{eligiblePoints:oe.goldPoints,loading:Z})})]}):null,(0,u.jsx)(b.S,{size:v?24:8}),J&&(0,u.jsxs)(u.Fragment,{children:[xe,(0,u.jsx)(b.S,{size:20})]}),(0,u.jsx)(Ze.rj,{columns:"1fr 3fr",alignItems:"center",children:J?(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(Ze.P4,{column:"span 2",children:(0,u.jsx)(an.zx,{onClick:"active"===ee?.status?de:se,icon:E||M?"":zt.Z,isLoading:ie||Y||Z,buttonWidth:"full",disabled:E,size:"large",children:"string"===typeof A?w(A):A})})}):T?(0,u.jsx)(Ze.P4,{column:"span 2",children:(O||"MarketingProduct"===t.__typename)&&(0,u.jsx)(an.zx,{onClick:F,icon:E||M?"":Zt.Z,isLoading:Z,buttonWidth:"full",disabled:E,size:"large",href:E||M?null:oe?.purchaseUrl,children:"string"===typeof A?w(A):A})}):(0,d.vS)(f)?null:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(an.cw,{quantity:z,max:R?1:D,min:1,onChange:W,disabled:E}),(0,u.jsx)(an.h3,{onClick:de,isLoading:Z,disabled:E,icon:E||M?"":zt.Z,buttonWidth:"full",size:"large",children:"string"===typeof A?w(A):A})]})}),(0,u.jsx)("span",{ref:g,"data-drawer-id":jn}),$&&(T||!(0,d.vS)(f))&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(b.S,{size:16}),S&&(0,u.jsx)(an.y,{variant:"caption",children:w(S)}),t.voucherNsuid&&(0,u.jsx)(o.lE,{nsuid:t.nsuid}),!J&&xe]}),L&&!t.requiresSubscription?(0,u.jsx)(an.ZA,{sku:L,name:t.name,type:(0,d.vS)(f)&&!T?"button":"link"}):null,t.requiresCoupon&&(0,u.jsx)(fn,{onApplyCode:async e=>{const{data:t,errors:n}=await Q(e);if(!t?.cart?.id)throw new Error(n?.[0]?.extensions?.errors?.[0]?.message);setTimeout((()=>{i(yn)}),200)},onClose:()=>q(!1),visible:H})]})}const Pn=l.ZP.div.withConfig({componentId:"sc-120wz1l-0"})(["display:flex;align-items:flex-start;flex-direction:column;margin-bottom:",";img{max-width:100%;}"],(e=>{let{theme:t}=e;return t.spacing[16]})),Cn=(0,l.ZP)(k.I).withConfig({componentId:"sc-120wz1l-1"})(["padding-left:0;"]),Sn=l.ZP.div.withConfig({componentId:"sc-120wz1l-2"})(["> div:first-child{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-display:-webkit-box;&.clamp{-webkit-line-clamp:",";-webkit-box-orient:vertical;}> p{margin-bottom:0;}margin-bottom:",";}"],(e=>{let{$isExpanded:t,$maxLines:n}=e;return t?9999:n}),(e=>{let{theme:t}=e;return t.spacing[8]}));var In=function(e){let{maxLines:t,description:n,category:i}=e;const{text:s}=(0,a.useLocalizer)(),{0:l,1:c}=(0,r.useState)(0),{0:d,1:p}=(0,r.useState)(!1),{0:h,1:m}=(0,r.useState)(!1),g="GAMES"===i?.code,x=(0,r.useRef)(null),b=(0,r.useRef)(null),j=(0,r.useRef)(null);(0,r.useEffect)((()=>(y(),window.addEventListener("resize",y),()=>{window.removeEventListener("resize",y)})),[]),(0,r.useEffect)((()=>{m(!1)}),[n]);const y=()=>{clearTimeout(j.current),j.current=setTimeout((()=>{p(b?.current?.scrollHeight>b?.current?.clientHeight)}),0)};return(0,r.useEffect)((()=>{b.current?.classList.add("clamp")}),[t]),(0,u.jsxs)(Pn,{ref:x,children:[(0,u.jsx)(Sn,{$isExpanded:h,$maxLines:t,children:(0,u.jsx)(o.Ho,{ref:b,data:n,isNonHtmlString:!0})}),d&&(0,u.jsx)(Cn,{icon:h?Se.Z:Ie.Z,onClick:()=>{m((e=>(e?window.scrollTo(0,l):c(window.scrollY),!e)))},children:s(h?"Read less":"Read more")}),g&&(0,u.jsx)(f.T,{variant:"legal",children:s("Software description provided by the publisher.")})]})},_n=n(42801),Dn=n.n(_n);var zn=e=>{const{product:t}=e,{text:n}=(0,a.useLocalizer)(),{baseSoftware:i,variations:s,isUpgrade:o}=t,l=(0,r.useMemo)((()=>i?.find((e=>e.platform?.code===ae.rj.NINTENDO_SWITCH))||i?.[0]),[i]),c=(0,d.pt)(t)?l:o?(0,d.Qr)(ae.rj.NINTENDO_SWITCH,s)?.product:null;if(!c)return null;const{name:p,productImage:h,urlKey:m}=c;return(0,u.jsx)(I.Z,{href:m,children:(0,u.jsx)("a",{children:(0,u.jsxs)(Ze.rj,{columns:"1fr 4fr",gap:It.d.spacing[8],alignItems:"center",children:[(0,u.jsx)(Ze.P4,{column:"span 2",children:(0,u.jsx)(f.T,{className:Dn().text,variant:"legal",children:n("Required to play:")})}),(0,u.jsx)(T.I,{className:Dn().image,assetPath:h?.publicId,alt:p}),(0,u.jsx)(f.T,{className:Dn().text,variant:"legal",children:p})]})})})},Zn=n(50135),Nn=n(83290),kn=n(93122);const Tn=l.ZP.div.withConfig({componentId:"sc-1hh5k55-0"})(["display:grid;grid-template-columns:repeat(5,1fr);grid-gap:0.5em;"]),On=e=>{let{theme:t,isActive:n,swatch:r,disabled:i}=e;return(0,l.iv)(["flex-basis:50%;padding:0;box-sizing:border-box;cursor:pointer;background:",";background-size:cover;background-repeat:no-repeat;border:"," solid ",";color:",";","{color:",";}transition:",";opacity:",";filter:",";&:hover{border:"," solid ",";> *{color:",";}}"],i&&!r?t.color.lightGray2:r?"url("+r+")":n?t.color.primary:t.color.white,t.spacing[4],n?t.color.primary:i?t.color.lightGray2:t.color.white,i?t.color.darkGray2:n?t.color.white:t.color.darkGray2,t.mediaQuery.tablet,i?t.color.darkGray3:n?t.color.white:t.color.darkGray2,(e=>{let{theme:t}=e;return t.movement.duration+" "+t.movement.easing}),i&&r?"60%":"initial",i?"grayscale(60%)":"",t.spacing[4],t.color.primary,n&&!i?t.color.white:t.color.darkGray2)},Ln=l.ZP.div.withConfig({componentId:"sc-1hh5k55-1"})([""," "," flex-direction:column;justify-content:flex-start;text-align:center;"],Zn.nd,On),En=(0,l.ZP)(kn.Z).withConfig({componentId:"sc-1hh5k55-2"})(["",""],On);var Mn=e=>{let{onChange:t,product:n,value:r}=e;const{query:i}=(0,m.Z)();return(0,u.jsx)(Tn,{children:n.variations.map((e=>{const n="color"===e.type?.toLowerCase()?(0,d.R6)({publicId:e.value}):null,s=e.product.url?e.product.urlKey===i.slug:e.id===r;return e.product.url?(0,u.jsx)(En,{href:e.product.url,isActive:s,swatch:n,disabled:!e.product.isSalableQty,children:n?(0,u.jsx)(Nn.S,{children:e.label}):e.label},e.product.name):(0,u.jsx)(Ln,{onClick:()=>t(e.id),isActive:s,swatch:n,disabled:!e.product.isSalableQty,children:(0,u.jsx)(Zn.Dx,{type:"portrait",children:n?(0,u.jsx)(Nn.S,{children:e.label}):e.label})},e.product.name)}))})};var Rn=e=>{const{product:t,purchaseOptions:n,errorMessage:i}=e,{text:s}=(0,a.useLocalizer)(),{query:l,locale:c}=(0,m.Z)(),p=c?.split("-")[0]??"en",{name:h,eshopDetails:g,topLevelCategory:x,platinumPoints:f}=t,{state:{isLoading:b,isDigitalProduct:j,isPurchasable:y,isMobileGame:w,buttonDisabled:v,promptLogin:P,buttonCopy:C,displayPrice:S,retailerSku:I},actions:{handleDirectDownloadClick:_,handleAddToCart:D}}=n,z=t.variations?.length,Z=(0,r.useMemo)((()=>t.variations?.find((e=>e?.product?.urlKey===l.slug))),[t,l]),N=Z?.product.size?s("Size"):null,k=Z?.label,T=N?`${N}: ${k}`:k;let O=null;"GAMES"===x?.code?O=s(j?"Digital":"Physical"):z&&!Z?O=s("Starting at"):T&&(O=T);const L=(0,r.useMemo)((()=>z?()=>{window.scrollTo({top:0,behavior:"smooth"})}:D),[z,D]);return(0,u.jsx)(Ht,{children:(0,u.jsxs)(Ft,{$hasError:!!i,children:[(0,u.jsx)(Wt,{forwardedAs:"p",variant:"h3",children:h}),(0,u.jsxs)(Qt,{children:[(0,u.jsxs)(Bt,{children:[O&&(0,u.jsx)(Yt,{$smallMargin:!Z,children:O}),!w&&(Boolean(S.regPrice)||Boolean(f))&&(0,u.jsxs)(qt,{children:[b&&(0,u.jsx)(Kt,{width:"100%"}),(0,u.jsx)(Vt,{$visible:!b,children:f?(0,u.jsxs)(Jt,{gap:"0.5rem",justifyItems:"start",alignItems:"center",children:[(0,u.jsx)(en,{}),(0,u.jsxs)(tn,{variant:"h2",children:[f," ",s("Platinum Points")]})]}):!(0,d.vS)(c)||j?(0,u.jsx)(Dt.P,{regPrice:S.regPrice,horizontal:!0,size:"medium",salePrice:S.salePrice,lang:p}):null})]})]}),(0,u.jsxs)("div",{children:[j?y&&(0,u.jsx)(Xt,{onClick:_,icon:v||P?"":Zt.Z,isLoading:b,buttonWidth:"full",disabled:v,round:!0,size:"small",href:v?null:g?.purchaseUrl,children:"string"===typeof C?s(C):C}):(0,d.vS)(c)?(0,u.jsx)(o.Qc,{sku:I,name:t.name,type:"button-round"}):(0,u.jsx)(Xt,{onClick:L,isLoading:b,disabled:v,icon:v||P?"":zt.Z,buttonWidth:"full",round:!0,size:"small",children:"string"===typeof C?s(C):C}),i&&(0,u.jsx)(nn,{variant:"legal",children:i})]})]})]})})},An=n(95933),$n=n(40206),Un=n.n($n),Gn=n(76116);var Hn=e=>{let{callout:t,backgroundColor:n}=e;const{text:r}=(0,a.useLocalizer)();return(0,u.jsx)("div",{className:Un().bg,style:{backgroundColor:`#${n}`},children:(0,u.jsxs)("div",{className:Un().wrapper,children:[(0,u.jsxs)("div",{className:Un().header,children:[(0,u.jsx)(An.Z,{className:Un().icon}),(0,u.jsx)("span",{className:Un().title,children:r("Nintendo Switch 2 features")})]}),(0,u.jsx)(Gn.Z,{data:t,className:Un().richText})]})})},Fn=n(42211),Qn=n(31620),Wn=n.n(Qn),Bn=n(40489),qn=n(34922),Vn=n(47285),Kn=n.n(Vn);var Yn=e=>{const{visible:t,onClose:n,productImage:r,productImageSquare:i,productName:s}=e,{text:o}=(0,a.useLocalizer)();return(0,u.jsxs)(te.M,{dialogLabel:o("Upgrade Pack"),visible:t,onClose:n,className:Kn().modal,children:[(0,u.jsx)("div",{className:Kn().heading,children:(0,u.jsx)("div",{className:Kn().headingText,children:o("What's an upgrade pack?")})}),(0,u.jsxs)("div",{className:Kn().subheading,children:[(0,u.jsx)("div",{className:Kn().subheadingTitle,children:o("Do you have a physical or digital version of this game for Nintendo Switch?")}),(0,u.jsx)("div",{className:Kn().subheadingText,children:o("You can play the Nintendo Switch 2 Edition by purchasing an upgrade pack.")})]}),(0,u.jsxs)("div",{className:Kn().graphic,children:[(0,u.jsxs)("div",{className:(0,Bn.Z)(Kn().graphicItem,Kn().ownedItem),children:[(0,u.jsx)(g.K,{assetPath:i?i.url:(0,d.R6)({publicId:"Jamboree1x1.png"}),alt:s,className:(0,Bn.Z)(Kn().keyArt,Kn().borderRadius)}),(0,u.jsx)("p",{className:Kn().subtext,children:o("You have this!")})]}),(0,u.jsx)("div",{className:Kn().symbol,children:"+"}),(0,u.jsxs)("div",{className:Kn().graphicItem,children:[(0,u.jsxs)("div",{className:Kn().borderRadius,children:[(0,u.jsx)(qn.C,{show:!0}),(0,u.jsx)(g.K,{blurBackground:!0,assetPath:i?r?.url:(0,d.R6)({publicId:"Jamboree16x9.png"}),alt:s,className:Kn().keyArt}),(0,u.jsx)("div",{className:Kn().tag,children:o("Upgrade pack")})]}),(0,u.jsx)("p",{className:Kn().subtext,children:o("Upgrade pack")})]}),(0,u.jsx)("div",{className:Kn().symbol,children:"="}),(0,u.jsxs)("div",{className:Kn().graphicItem,children:[(0,u.jsxs)("div",{className:Kn().borderRadius,children:[(0,u.jsx)(qn.C,{show:!0}),(0,u.jsx)(g.K,{assetPath:i?i.url:(0,d.R6)({publicId:"JamboreeS21x1.png"}),alt:s,className:Kn().keyArt})]}),(0,u.jsx)("p",{className:Kn().subtext,children:o("Nintendo Switch 2 Edition")})]})]}),(0,u.jsx)("div",{className:Kn().footer,children:(0,u.jsx)(j.L,{href:"/gaming-systems/switch-2/featured-games/switch-2-edition/",children:o("Learn more about Nintendo Switch 2 Editions")})})]})};function Xn(e){let{platformLabel:t,product:n,query:i}=e;const{text:s}=(0,a.useLocalizer)(),{0:o,1:l}=(0,r.useState)(!1);if(!n||!t)return null;const{variations:c,isUpgrade:p,productImage:h,productImageSquare:m,name:g}=n;if(!c&&t)return(0,u.jsx)("div",{className:Wn().versionOptions,children:(0,u.jsx)(Ze.rG,{label:s("Version"),value:t})});const x=[ae.rj.NINTENDO_SWITCH_2,ae.rj.NINTENDO_SWITCH].reduce(((e,t)=>{const n=(0,d.Qr)(t,c);return n?[...e,{label:n.product.platform.label,href:`${n.product.url}${(0,d.Xo)(i)}`}]:e}),[]),f=c?.find((e=>e.product.isUpgrade));return f&&x.push({label:s("Upgrade Pack"),href:`${f.product.url}${(0,d.Xo)(i)}`,isUpgrade:!0}),0===x.length?null:(0,u.jsxs)("div",{className:Wn().versionOptions,children:[1===x.length?(0,u.jsx)(Ze.rG,{label:s("Version"),value:x[0].label}):(0,u.jsx)(Fn.P,{heading:s("Select a version"),platformLabel:p?s("Upgrade Pack"):t,options:x}),f&&(0,u.jsxs)("div",{className:Wn().upgradeSection,children:[(0,u.jsx)("button",{className:Wn().upgradeLabel,onClick:()=>l(!0),children:s("What's an upgrade pack?")}),(0,u.jsx)(Yn,{visible:o,onClose:()=>{l(!1)},productImage:h,productImageSquare:m,productName:g})]})]})}},12547:function(e,t,n){"use strict";var r=n(2784),i=n(94989);t.Z=(e,t,n,s)=>{const{actions:{openDrawer:a,closeDrawer:o,addOrUpdateDrawer:l,removeDrawer:c}}=(0,i.eV)(),{viewPortTopOffset:d=0,disableDrawers:u}=s||{},p=(0,r.useCallback)((e=>{e.forEach((e=>{const{target:t,boundingClientRect:n}=e,r=n?.top{u||e.forEach((e=>{l(e,n[e].drawer)}))}),[l,e,n,u]),(0,r.useEffect)((()=>{if(!u)return()=>{e.forEach((e=>{c(e)}))}}),[c,e,u]),(0,r.useLayoutEffect)((()=>{if(u)return;const n=new IntersectionObserver(p,{rootMargin:`-${d}px 0px 0px 0px`,threshold:1});return e.forEach((e=>{t[e].ref.current&&n.observe(t[e].ref.current)})),()=>{e.forEach((e=>{t[e].ref.current&&n.unobserve(t[e].ref.current)}))}}),[p,e,t,u,d])}},58283:function(e){e.exports={footerCallout:"CompatibilityStatus_footerCallout__1QyIH",footerCalloutContent:"CompatibilityStatus_footerCalloutContent__AnOx_",statusIcon:"CompatibilityStatus_statusIcon__RMjJH",styledNsoIcon:"CompatibilityStatus_styledNsoIcon__7Fr8l",statusRow:"CompatibilityStatus_statusRow__KPAfZ",modalContent:"CompatibilityStatus_modalContent__ITVxA",modalCaption:"CompatibilityStatus_modalCaption__8_8Ql",statusInfo:"CompatibilityStatus_statusInfo__EzaTC",compatibilityDetails:"CompatibilityStatus_compatibilityDetails__6rsCI",modalIcon:"CompatibilityStatus_modalIcon__Xa_rD"}},13847:function(e){e.exports={goldPointsValue:"GoldPoints_goldPointsValue__zp0Ct",text:"GoldPoints_text__dGu3v",boldText:"GoldPoints_boldText__3_58J",eligiblePoints:"GoldPoints_eligiblePoints__qKQc6",skeleton:"GoldPoints_skeleton__NNsjF"}},47285:function(e){e.exports={modal:"UpgradeProductModal_modal__UY1Xz",heading:"UpgradeProductModal_heading__t5S30",headingText:"UpgradeProductModal_headingText__YbnUF",subheading:"UpgradeProductModal_subheading__rw_mw",subheadingTitle:"UpgradeProductModal_subheadingTitle__Egpd_",subheadingText:"UpgradeProductModal_subheadingText__dNI9Z",graphic:"UpgradeProductModal_graphic__ok5m3",graphicItem:"UpgradeProductModal_graphicItem__vONOM",borderRadius:"UpgradeProductModal_borderRadius__hXxvK",keyArt:"UpgradeProductModal_keyArt__xWETk",symbol:"UpgradeProductModal_symbol__WFHz_",footer:"UpgradeProductModal_footer__rjpMN",shadow:"UpgradeProductModal_shadow__s6kxz",ownedItem:"UpgradeProductModal_ownedItem__XyEtG",subtext:"UpgradeProductModal_subtext__TUMSH",tag:"UpgradeProductModal_tag__sDL5u"}},31620:function(e){e.exports={versionOptions:"VersionOptions_versionOptions__DEYvB",upgradeSection:"VersionOptions_upgradeSection__BYtE1",upgradeLabel:"VersionOptions_upgradeLabel__aXkai"}},42801:function(e){e.exports={text:"RequiredToPlay_text__XlJhF",image:"RequiredToPlay_image__oDlyG"}},40206:function(e){e.exports={bg:"SystemCallout_bg__o6o0_",wrapper:"SystemCallout_wrapper__wfinW",header:"SystemCallout_header__GjpnT",icon:"SystemCallout_icon__JjYdC",title:"SystemCallout_title__tEeDT",richText:"SystemCallout_richText__5x3bW"}}}]); //# sourceMappingURL=4956-692107d417a3cf96.js.map