!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]="12ade5fb-8ef2-4910-a222-ab22bf21868f",e._sentryDebugIdIdentifier="sentry-dbid-12ade5fb-8ef2-4910-a222-ab22bf21868f")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4165],{4095:function(e,t,r){"use strict";r.d(t,{uP:function(){return L},Kx:function(){return x},Z5:function(){return y},ig:function(){return P}});var n=r(2784),i=r(97224),l=r(82091),a=r(24103),o=r(89214),s=r(7307),d=r(936),c=r(91674),u=r(95182);const h=(0,s.default)(d.R).withConfig({componentId:"sc-1nmdhxc-0"})(["margin-bottom:",";"],(e=>{let{theme:t}=e;return t.spacing[8]})),p=(0,s.default)(c.S).withConfig({componentId:"sc-1nmdhxc-1"})(["z-index:2;"]),g=((0,s.default)(u.Q).withConfig({componentId:"sc-1nmdhxc-2"})(["width:100%;"]),(0,s.default)(a.T).withConfig({componentId:"sc-1nmdhxc-3"})(["margin-bottom:",";"],(e=>{let{theme:t}=e;return t.spacing[8]})));var m=r(52322);const f=n.forwardRef((function(e,t){const{checked:r,onClick:n,href:i,onChange:a=(()=>{}),product:o,variation:s}=e,{text:d,price:c}=(0,l.useLocalizer)();return(0,m.jsx)(h,{ref:t,caption:s.product.name,checked:r,discounted:s.product.prices?.minimum?.discounted,href:i,price:o.loadingPricing?null:c(s.product?.prices?.minimum?.finalPrice),regularPrice:o.loadingPricing?null:c(s.product?.prices?.minimum?.regularPrice),onChange:a,onClick:n,value:s.product.urlKey,name:s.product.name,label:s.product.nsuid?d("Digital"):d("Physical"),altContent:"\u2713"})}));function b(e){let{onChange:t,isBundle:r,product:n,title:s,value:d}=e;const{text:c}=(0,l.useLocalizer)();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(a.T,{variant:"legal",children:r?s:c("Select a product")}),(0,m.jsx)(o.S,{size:12}),(0,m.jsx)("div",{children:n.variations.map((e=>e.product.url?(0,m.jsx)(i.Z,{href:e.product.url,children:(0,m.jsx)(f,{checked:n.url===e.product.url,product:n,variation:e})},e.product.sku):(0,m.jsx)(f,{checked:d===e.id,product:n,variation:e,onChange:()=>t(e.id)},e.id)))})]})}b.defaultProps={onChange:()=>{}};var x=b,w=r(64897);var y=function(e){let{product:t}=e;const r=(0,w.Z)(),{text:i}=(0,l.useLocalizer)(),a=(0,n.useMemo)((()=>t.variations.map((e=>({label:e.product.nsuid?i("Digital"):i("Physical"),caption:e.product.name,price:t.loadingPricing?null:e.product?.prices?.minimum?.finalPrice?.toFixed(2),value:e.product.name,urlKey:e.product.urlKey})))),[t,i]),o=(0,n.useMemo)((()=>a.find((e=>{let{urlKey:t}=e;return r.query.slug===t}))||a[0]),[a,r]);return(0,m.jsx)(p,{style:{zIndex:"100"},inputName:"select-a-product",inputLabel:i("Select a product"),onChange:e=>{r.push(e.urlKey)},options:a,value:o,showErrors:!1})},j=r(82163),v=r(90862),C=r(99809);var P=function(e){let{onChange:t,isBundle:r,product:n,title:i,value:a}=e;const{text:s}=(0,l.useLocalizer)();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(o.S,{size:24}),(0,m.jsxs)(v.rj,{columns:2,alignItems:"end",children:[(0,m.jsx)(g,{variant:"legal",children:r?i:s("Select a product")}),n?.sizeChart&&(0,m.jsxs)(v.P4,{justifySelf:"end",children:[(0,m.jsx)(j.L,{href:"#sizing",children:s("Size chart")}),(0,m.jsx)(o.S,{size:8})]})]}),(0,m.jsx)(o.S,{size:12}),(0,m.jsx)(C.um,{onChange:t,product:n,value:a})]})},S=r(52232);var L=function(e){let{product:t}=e;const{text:r}=(0,l.useLocalizer)(),{locale:n}=(0,w.Z)(),i=n?.split("-")[0]??"en";return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(o.S,{size:24}),(0,m.jsxs)(v.rj,{columns:"144px 162px",rows:"48px",children:[t?.appStoreUrl&&(0,m.jsx)("a",{href:t.appStoreUrl,children:(0,m.jsx)(S.I,{assetPath:`/ncom/icons/app-store/app-store-badge-${i}`,alt:r("Download on the app store")})}),t?.googlePlayUrl&&(0,m.jsx)("a",{href:t.googlePlayUrl,children:(0,m.jsx)(S.I,{assetPath:`/ncom/icons/google-play/google-play-badge-${i}`,alt:r("Get it on Google Play")})})]})]})}},99809:function(e,t,r){"use strict";r.d(t,{CL:function(){return z},jJ:function(){return E},VM:function(){return Me},NR:function(){return Xe},jl:function(){return O},dn:function(){return it},ww:function(){return Ct},Ym:function(){return vr},yL:function(){return Dr},um:function(){return Rr},mW:function(){return _r},Lx:function(){return Gr}});var n=r(57724),i=r(24103),l=r(88627),a=r(64897),o=r(82091),s=r(90862),d=r(7307);const c=d.default.div.withConfig({componentId:"sc-1m8mxjv-0"})(["",""],(e=>{let{theme:t}=e;return(0,d.css)(["display:grid;grid-template-columns:1fr;justify-content:center;gap:",";","{grid-template-columns:repeat(2,1fr);}"],t.spacing[24],t.mediaQuery.tablet)})),u=d.default.div.withConfig({componentId:"sc-1m8mxjv-1"})(["display:flex;justify-content:flex-start;align-items:center;flex-direction:column;text-align:center;gap:1rem;background-color:",";padding:",";grid-column:",";border-radius:",";"],(e=>{let{theme:t}=e;return t.color.lightGray4}),(e=>{let{theme:t}=e;return t.spacing[24]+" "+t.spacing[32]}),(e=>e.$solo?"span 2":"inherit"),(e=>{let{theme:t}=e;return t.borderRadius})),h=(0,d.default)(l.bs).withConfig({componentId:"sc-1m8mxjv-2"})(["padding:",";background:",";box-shadow:0 4px 16px 0 rgba(60,64,89,0.15);text-align:left;margin-bottom:",";border-radius:",";"],(e=>{let{theme:t}=e;return t.spacing[16]+" "+t.spacing[32]}),(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return t.spacing[32]}),(e=>{let{theme:t}=e;return t.borderRadiusSmall}));var p=r(2784),g=r(61921),m=r(70103),f=r(38463),b=r(33594),x=r(3810),w=r(2099);const y=d.default.div.withConfig({componentId:"sc-16atj0u-0"})(["display:grid;grid-template-columns:1fr;justify-content:center;p{font-weight:700;}"]),j=d.default.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,d.css)(["background:",";color:",";"],(e=>{let{$supported:r}=e;return r?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}));var v=r(52322);const C="TABLETOP",P="TV",S="HANDHELD",L={[C]:g.Z,[P]:m.Z,[S]:f.Z},I={[C]:b.Z,[P]:x.Z,[S]:w.Z},D=e=>{const{mode:t,iconSize:r,supported:n,title:i}=e,l=n?L[t]:I[t];return(0,v.jsxs)(y,{children:[(0,v.jsx)(j,{$supported:n,children:(0,v.jsx)(l,{size:r})}),(0,v.jsx)("p",{children:i})]})};D.defaultProps={supported:!1,iconName:"tv-mode",iconSize:48,title:"tv-mode"};var O=D;var z=e=>{let{product:t}=e;const{locale:r}=(0,a.Z)(),{text:d}=(0,o.useLocalizer)(),p=t.playModes?.map((e=>e.code));return(0,v.jsxs)(l.$0,{constrained:!0,id:"about","aria-labelledby":"product-info",small:!0,children:[null!=t.contentRating||p?.length?(0,v.jsxs)(c,{children:[null!=t.contentRating&&(0,v.jsxs)(u,{$solo:!p?.length,children:[(0,v.jsx)(n.H,{variant:"h4",children:d("ESRB rating")}),(0,v.jsx)(h,{rating:t.contentRating,descriptors:t.contentDescriptors,locale:r})]}),p?.length>0&&(0,v.jsxs)(u,{$solo:!t.contentRating,children:[(0,v.jsx)(n.H,{variant:"h4",children:d("Supported play modes")}),(0,v.jsxs)(s.rj,{columns:3,width:"100%",gap:"24px",children:[(0,v.jsx)(O,{supported:p?.includes("TV_MODE"),title:d("TV"),mode:P}),(0,v.jsx)(O,{supported:p?.includes("TABLETOP_MODE"),title:d("Tabletop"),mode:C}),(0,v.jsx)(O,{supported:p?.includes("HANDHELD_MODE"),title:d("Handheld"),mode:S})]}),!p?.includes("HANDHELD_MODE")&&(0,v.jsx)(i.T,{variant:"legal",children:d("Software compatibility and play experience may differ on Nintendo Switch Lite. Additional accessories may be required (sold separately). See support for details.")})]})]}):null,"BUNDLE"!==t.productType&&(0,v.jsx)(Ct,{product:t})]})},k=r(27510);const T=d.default.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 M=r(2002);var E=e=>{let{product:t,locale:r}=e;const{text:i}=(0,o.useLocalizer)(),a=(0,p.useMemo)((()=>t.relatedProducts.slice(0,4).map(M.uF)),[t.relatedProducts]);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(l.He,{small:!0,children:t.relatedProducts.length>4?(0,v.jsx)(k.H,{ctaType:"iconlink",headingProps:{variant:"h1"},ctaText:i("See all"),ctaUrl:t.urlKey+"/dlc/",locale:r,children:i("Downloadable content (DLC)")}):(0,v.jsx)(n.H,{variant:"h1",children:i("Downloadable content (DLC)")})}),(0,v.jsx)(T,{$bgColor:"#"+t.backgroundColor,children:(0,v.jsx)(l.He,{small:!0,children:(0,v.jsx)(n.H.NewLevel,{children:(0,v.jsx)(l.nZ,{analytics:{title:"Downloadable content (DLC)"},products:a,cta:{fields:{title:i("See all"),url:t.relatedProducts.length>4?t.urlKey+"/dlc/":""}}})})})})]})},A=r(95235),R=r(37953),N=r(4923),X=r(7387),Z=r(21340),$=r(89214),_=r(96719),G=r(31065),H=r(88588),Q=r(47823),F=r(97224),B=r(36734),q=r(56675),U=r(85343),V=r(95182),W=r(49845),K=r(82163),Y=r(90374);const J=(0,d.default)(V.Q).withConfig({componentId:"sc-10vf2cu-0"})(["height:100%;font-weight:bold;"]),ee=d.default.div.withConfig({componentId:"sc-10vf2cu-1"})(["display:flex;flex-direction:row;align-items:center;justify-content:space-between;"]),te=(0,d.default)(W.S).withConfig({componentId:"sc-10vf2cu-2"})(["height:",";& > div{font-size:",";}"],(e=>{let{theme:t}=e;return t.spacing[40]}),(e=>{let{theme:t}=e;return t.font.size.h1LMobile})),re=(d.default.span.withConfig({componentId:"sc-10vf2cu-3"})(["display:",";font-weight:",";color:",";"],(e=>{let{isLoading:t}=e;return t?"none":"block"}),(e=>{let{theme:t}=e;return t.font.weight.bold}),(e=>{let{theme:t}=e;return t.color.primary})),(0,d.default)(K.L).withConfig({componentId:"sc-10vf2cu-4"})(["display:inline !important;span{font-size:",";","{font-size:",";}}"],(e=>{let{theme:t}=e;return t.font.size.legalMobile}),(e=>{let{theme:t}=e;return t.mediaQuery.tabletSmall}),(e=>{let{theme:t}=e;return t.font.size.captionMobile}))),ne=(0,d.default)(i.T).withConfig({componentId:"sc-10vf2cu-5"})(["line-height:1.5;"]),ie=(0,d.default)(ne).withConfig({componentId:"sc-10vf2cu-6"})(["color:",";font-weight:",";"],(e=>{let{theme:t}=e;return t.color.primary}),(e=>{let{theme:t}=e;return t.font.weight.bold})),le=(0,d.default)(Y.B).withConfig({componentId:"sc-10vf2cu-7"})(["white-space:pre-wrap;"]),ae=(0,d.default)(_.L).withConfig({componentId:"sc-10vf2cu-8"})(["width:max-content;"]),oe=d.default.span.withConfig({componentId:"sc-10vf2cu-9"})(["font-weight:",";"],(e=>{let{$boldHelperText:t}=e;return t?700:"initial"})),se=d.default.div.withConfig({componentId:"sc-10vf2cu-10"})(["margin-top:",";margin-bottom:",";","{margin-top:",";}"],(e=>{let{theme:t}=e;return t.spacing[4]}),(e=>{let{theme:t}=e;return t.spacing[8]}),(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),(e=>{let{theme:t}=e;return t.spacing[12]}));var de=r(50802);function ce(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 ue(e){for(var t=1;t{const{locale:t}=(0,a.Z)(),r=(0,q.x)(),n=(0,o.useMaintenance)(),i=(0,o.useAccounts)(),l=(0,o.useCart)(),{trackAddToCart:s}=(0,o.useAnalytics)(),d=(0,o.useCustomer)(),{text:c,price:u,date:h}=(0,o.useLocalizer)(),{__typename:g,availability:m,bundleItems:f,nsuid:b,requiresSubscription:x,sku:w,requiresCoupon:y,requiresLogin:j,platinumPoints:C,eshopDetails:P,prePurchase:S,prices:L,loadingPricing:I,productType:D,isSalableQty:O,releaseDate:z,releaseDateDisplay:k,soldOutPermanent:T,isPreorderable:M,variations:E,voucherNsuid:A,startShippingDate:R,shipDateDisplay:N,enableRetailCrawler:X}=e,Z=I||l?.loading||l?.updating||n?.loading,{0:$,1:_}=(0,p.useState)(!1),{0:G,1:H}=(0,p.useState)(1),{0:Q,1:F}=(0,p.useState)({}),B=(0,U.u)(),V="MOBILE"===b,W="BUNDLE"===D,K="CONFIGURABLE"===D,Y=(0,de.EE)(e),J=f?.every((e=>{let{required:t,title:r}=e;return t&&!!Q[r]}));(0,p.useEffect)((()=>{if(W){const e=f?.reduce(((e,t)=>{let{options:r,title:n}=t;const i=r.length>1?r?.find((e=>{let{isDefault:t}=e;return t})):r[0];return ue(ue({},e),{},{[n]:i?.id})}),{});F(e)}}),[W,f]);const ee=(m?.includes(c("Pre-order"))||m?.includes(c("Available now"))||O||S)&&!V,{consentedGroups:te}=(0,o.useCookies)(),ne=(0,p.useMemo)((()=>{if(!X)return null;const e=te?.has(o.ConsentGroups.PERFORMANCE);if(!e)return null;if(b&&E?.length){const e=E.find((e=>!e.product?.nsuid));if(e)return e.product.sku}return b?null:w}),[te,b,w,E,X]),ie=d?.data?.membershipStatus.active,le=l?.addableQty(e),ae=G>=le,oe=!O&&!V||!!E?.length&&E.every((e=>{let{product:t}=e;return!t.isSalableQty})),se=(x||C||j)&&!i.isLoggedIn,ce=x&&!ie,{buttonDisabled:he,promptLogin:pe,disableQuantity:ge,buttonCopy:me,helperText:fe,boldHelperText:be}=(0,p.useMemo)((()=>{if(V)return{};let e="",r="",i=!1,l=!1,a=Y,o=!1,s=n?.store?.active;const d=(0,v.jsx)(re,{href:"/store/products/nintendo-switch-game-vouchers/",locale:t,children:c("Learn more about vouchers")}),u=(0,v.jsx)(re,{href:"/switch/online/",children:c("Nintendo Switch Online members")});if(x&&(r=c("This item is only for paid {0}.",{args:[u]})),Y)if(n?.eshop?.active)i=!0,r=c("Direct downloads are not possible during maintenance"),o=!0,e="Direct download";else if("MarketingProduct"===g)o=!0,e=c("Releases {0}",{args:[k||z&&h(z,{format:{day:"numeric",month:"numeric",year:"2-digit"}})]});else if(se)e="Sign in to download",l=!0;else if(ce)o=!0,e="Direct download";else if(P?.isPreordered)o=!0,e="Already pre-ordered";else if(P?.isPurchased)o=!0,e="Already downloaded";else if(P?.isPreorderable)e="Pre-order",r=A?c("Pre-order or redeem a Game Voucher to pre-load this game and start playing as soon as it\u2019s released. {0}",{args:[d]}):c("This lets you pre-load the game, so you'll be able to play as soon as the game is released.");else if(P?.isPurchasable)0==L?.minimum?.finalPrice?e="Free download":A?(e="Direct download",r=c("This item will be sent to your system automatically after purchase or Nintendo Switch Game Voucher redemption. {0}",{args:[d]})):(e="Direct download",r="This item will be sent to your system automatically after purchase.");else{const t=new Date(z);o=!0,k?e=c("Releases {0}",{args:[k]}):Date.now()({regPrice:Boolean(k)&&!S?null:u(L?.minimum?.regularPrice,{formatZero:!0}),salePrice:L?.minimum?.discounted?u(L?.minimum?.finalPrice):""})),[k,S,L,u]),we=(0,p.useCallback)((()=>{if(pe)i.promptLogin();else{r.cache.evict({id:r.cache.identify(e),fieldName:"eshopDetails",args:{personalized:!0},broadcast:!1});const n="string"===typeof me?me:"CTA";s(e),B.trackEvent({eventName:`PDP: ${n} Clicked`,objectId:w,isConversion:!0},t)}}),[pe,me,t,w,B,s,i,r.cache,e]),ye=(0,p.useCallback)((r=>{if(pe)i.promptLogin();else{if(!e.requiresCoupon||r)return s(e),B.addToCart(w,{eventName:"PDP: Add to Cart Clicked",locale:t}),l.addProduct(e,{couponCode:r?.trim(),selectedOptions:Object.values(Q),quantity:G});_(!0)}}),[w,pe,B,i,l,e,G,t,s,Q]);return(0,p.useMemo)((()=>({state:{isLoading:Z,quantity:G,isMobileGame:V,isDigitalProduct:Y,isPurchasable:ee,isConfigurableProduct:K,retailerSku:ne,membershipRequired:ce,addableQty:le,itemLimitReached:ae,soldOut:oe,loginToPurchase:se,buttonDisabled:he,promptLogin:pe,disableQuantity:ge,buttonCopy:me,helperText:fe,boldHelperText:be,displayPrice:xe,showRedemptionCodeModal:$,selectedOptionsByTitle:Q},actions:{setQuantity:H,setSelectedOptionsByTitle:F,handleDirectDownloadClick:we,handleAddToCart:ye,setShowRedemptionCodeModal:_}})),[Z,G,V,Y,ee,K,ne,ce,le,ae,oe,se,he,pe,ge,me,fe,be,xe,H,we,ye,$,_,Q,F])},pe=r(97729),ge=r.n(pe),me=r(71084),fe=r(52232);const be=d.default.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})),xe=d.default.div.withConfig({componentId:"sc-1i9d4nw-1"})([""," background:#fff;max-width:1240px;margin:0 auto;transform:translateY(2em);border-radius:",";box-shadow:0 4px 16px 0 rgba(60,64,89,0.15);@media (max-width:1240px){transform:translateY(0);border-radius:0;}","{padding:"," ",";}"],(e=>{let{theme:t}=e;return(0,d.css)(["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]}))}),(e=>{let{theme:t}=e;return t.borderRadius}),(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]})),we=d.default.div.withConfig({componentId:"sc-1i9d4nw-2"})(["overflow:hidden;"]),ye=d.default.div.withConfig({componentId:"sc-1i9d4nw-3"})(["display:flex;flex-direction:column;"]),je=d.default.div.withConfig({componentId:"sc-1i9d4nw-4"})(["padding-top:",";padding-left:",";overflow:hidden;grid-column:1;","{grid-column:span 2;padding:0;}"],(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})),ve=(0,d.default)(me.I).withConfig({componentId:"sc-1i9d4nw-5"})(["display:flex;margin:0;padding:0;border:none;"]),Ce=d.default.div.withConfig({componentId:"sc-1i9d4nw-6"})(["display:flex;justify-content:left;gap:",";"],(e=>{let{theme:t}=e;return t.spacing[16]})),Pe=(0,d.default)(l.He).withConfig({componentId:"sc-1i9d4nw-7"})(["",""],(e=>{let{theme:t}=e;return(0,d.css)(["","{width:100%;}"],t.mediaQuery.tablet)})),Se=d.default.div.withConfig({componentId:"sc-1i9d4nw-8"})(["",""],(e=>{let{theme:t}=e;return(0,d.css)(["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])})),Le=d.default.div.withConfig({componentId:"sc-1i9d4nw-9"})(["",""],(e=>{let{theme:t}=e;return(0,d.css)(["display:grid;grid-template-columns:1fr;grid-auto-rows:min-content;padding:0 "," "," ",";a{text-decoration:none;width:100%;}","{padding:0;}"],t.spacing[16],t.spacing[16],t.spacing[16],t.mediaQuery.tablet)})),Ie=((0,d.default)(fe.I).withConfig({componentId:"sc-1i9d4nw-10"})(["max-width:215px;"]),(0,d.default)(fe.I).withConfig({componentId:"sc-1i9d4nw-11"})(["img{border-radius:",";}"],(e=>{let{theme:t}=e;return t.borderRadius}))),De=d.default.div.withConfig({componentId:"sc-1i9d4nw-12"})(["display:none;","{display:block;}"],(e=>{let{theme:t}=e;return t.mediaQuery.tablet})),Oe=d.default.div.withConfig({componentId:"sc-1i9d4nw-13"})(["display:block;","{display:none;}"],(e=>{let{theme:t}=e;return t.mediaQuery.tablet})),ze=d.default.div.withConfig({componentId:"sc-1i9d4nw-14"})(["display:flex;gap:",";"],(e=>{let{theme:t}=e;return t.spacing[16]}));d.default.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}));function ke(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 Te(e){for(var t=1;t{const e=[{href:"/store/",label:d("Store")}];if(t.topLevelCategory){const r=t.topLevelCategory.code.toLowerCase().replace(/ /g,"-");e.push({href:`/store/${r}/`,label:t.topLevelCategory.label})}return t.name&&e.push({href:`/store/products/${t.urlKey}/`,label:d(t.name)}),e.map((e=>{let{href:t,label:r}=e;return(0,v.jsx)(F.Z,{href:t,children:(0,v.jsx)("a",{children:r})},t)}))}),[t,d]),b=(0,p.useMemo)((()=>[t.productImage&&Te({},t.productImage),...t.productGallery??[]].filter((e=>["image","video"].includes(e?.resourceType))).map(((e,r)=>{let{publicId:n,resourceType:i}=e;return"image"===i?(0,v.jsx)(R.K,{assetPath:n,alt:`${t.name} ${r+1}`},n):"video"===i?(0,v.jsx)(N.V,{assetPath:n},n):void 0}))),[t]);return(0,v.jsx)(be,{$bgColor:t.backgroundColor?`#${t.backgroundColor}`:B.rG[m],children:(0,v.jsxs)(xe,{children:[(0,v.jsx)(je,{children:(0,v.jsx)(X.B,{currentPage:`/store/products/${t.urlKey}/`,children:f})}),(0,v.jsxs)(we,{children:[(0,v.jsxs)("div",{children:[(0,v.jsx)(Pe,{children:(0,v.jsx)(Z.M,{ariaLabel:t.name+" gallery",showLoader:!1,inInitialViewport:!0,Head:ge(),children:b},t.sku)}),(0,v.jsx)($.S,{size:8}),(0,v.jsx)(De,{children:(0,v.jsx)($.S,{size:8})})]}),(t.platinumPoints||t.exclusive||t.requiresSubscription||t.voucherNsuid)&&(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)(Se,{children:[t.platinumPoints&&(0,v.jsx)(_.L,{backgroundColor:"#fde6e7",foregroundColor:"#ac000d",children:d("My Nintendo Reward")}),t.exclusive&&(0,v.jsx)(_.L,{backgroundColor:"#fde6e7",foregroundColor:"#ac000d",children:d("Exclusive")}),t.requiresSubscription&&(0,v.jsx)(_.L,{backgroundColor:"#fde6e7",foregroundColor:"#ac000d",children:d("Nintendo Switch Online required")}),t.voucherNsuid&&(0,v.jsx)(_.L,{backgroundColor:"#fde6e7",foregroundColor:"#ac000d",children:d("Game Voucher eligible")})]})}),null!=t.contentRating&&(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(De,{children:(0,v.jsx)(l.bs,{rating:t.contentRating,descriptors:t.contentDescriptors,gamesShown:t.gamesShown})})}),(0,v.jsxs)(De,{children:[(0,v.jsx)($.S,{size:24}),t.displayChokingHazard?(0,v.jsxs)(ye,{children:[(0,v.jsxs)(n.H,{variant:"h3",as:"strong",children:[d("Warning:")," ",(0,v.jsx)("br",{})]}),(0,v.jsxs)(i.T,{variant:"legal",children:[d("CHOKING HAZARD - Small parts.")," ",(0,v.jsx)("br",{}),d("Not for children under 3 years.")]})]}):null,t.topLegalDisclaimer?(0,v.jsx)(l.Ho,{textVariant:"legal",data:t.topLegalDisclaimer}):null]})]}),(0,v.jsxs)(Le,{children:[(0,v.jsxs)(ze,{children:[t.dlcType&&"ROM_BUNDLE"!=t.dlcType.code&&(0,v.jsx)(_.L,{backgroundColor:"#3946a0",foregroundColor:"#fff",children:"DLC"}),(0,v.jsx)(G.P,{accentColor:B.rG[m],children:"GAMES"===t.topLevelCategory?.code?h:t.topLevelCategory?.label})]}),(0,v.jsx)($.S,{size:24}),(0,v.jsx)(n.H,{variant:"h1",children:t.name}),g&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)($.S,{size:16}),(0,v.jsx)(i.T,{variant:"caption",children:d("Releases {0}",{args:[t.releaseDateDisplay?t.releaseDateDisplay:r(t.releaseDate,{format:{day:"numeric",month:"numeric",year:"2-digit"}})]})}),(0,v.jsx)($.S,{size:8})]}),(t.relatedProducts?.length>0||t.demoNsuid)&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)($.S,{size:24}),(0,v.jsxs)(Ce,{children:[t.relatedProducts.length>0&&(0,v.jsx)("div",{children:(0,v.jsx)(ve,{href:"#dlc",icon:H.Z,locale:c,children:d("View DLC")})}),t.demoNsuid&&(0,v.jsx)(l.g,{product:t})]}),(0,v.jsx)($.S,{size:24})]}),(0,v.jsx)(vr,{product:t,purchaseOptions:u}),t.baseSoftware?.length?t.dlcType&&"ROM_BUNDLE"!=t.dlcType.code&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)($.S,{size:20}),(0,v.jsx)(F.Z,{href:t.baseSoftware[0].urlKey,children:(0,v.jsx)("a",{children:(0,v.jsxs)(s.rj,{columns:"1fr 4fr",gap:Q.d.spacing[8],alignItems:"center",children:[(0,v.jsx)(s.P4,{column:"span 2",children:(0,v.jsx)(i.T,{variant:"legal",children:d("Required to play:")})}),(0,v.jsx)(Ie,{assetPath:t.baseSoftware[0].productImage.publicId,alt:t.baseSoftware[0].name}),(0,v.jsx)(i.T,{variant:"caption",children:t.baseSoftware[0].name})]})})})]}):null,(0,v.jsxs)(Oe,{children:[(0,v.jsx)($.S,{size:24}),t.displayChokingHazard?(0,v.jsxs)(ye,{children:[(0,v.jsxs)(n.H,{variant:"h3",as:"strong",children:[d("Warning:")," ",(0,v.jsx)("br",{})]}),(0,v.jsxs)(i.T,{variant:"legal",children:[d("CHOKING HAZARD - Small parts.")," ",(0,v.jsx)("br",{}),d("Not for children under 3 years.")]})]}):null,t.topLegalDisclaimer?(0,v.jsx)(l.Ho,{data:t.topLegalDisclaimer}):null]})]})]})})},Ee=r(26581);const Ae=d.default.div.withConfig({componentId:"sc-jla5jl-0"})(["",""],(e=>{let{theme:t}=e;return(0,d.css)(["background:",";border-radius:",";display:grid;grid-template-columns:1fr;padding:",";align-items:center;.storyAsset img{display:none;}","{grid-template-columns:1fr 1fr;padding:0 ",";.storyAsset img{display:block;}}"],t.color.lightGray4,(e=>{let{theme:t}=e;return t.borderRadius}),(e=>{let{theme:t}=e;return t.spacing[32]}),t.mediaQuery.tablet,(e=>{let{theme:t}=e;return t.spacing[32]}))})),Re=d.default.div.withConfig({componentId:"sc-jla5jl-1"})(["p{font-weight:700;a{margin:0 ",";}}"],(e=>{let{theme:t}=e;return t.spacing[8]})),Ne=d.default.p.withConfig({componentId:"sc-jla5jl-2"})(["font-size:",";","{font-size:",";}"],(e=>{let{theme:t}=e;return t.font.size.h2Mobile}),(e=>{let{theme:t}=e;return t.mediaQuery.tabletSmall}),(e=>{let{theme:t}=e;return t.font.size.h2Desktop}));var Xe=e=>{let{product:t}=e;const{text:r}=(0,o.useLocalizer)(),{locale:n}=(0,a.Z)(),i="/switch/online/";return t.nsoFeatures?(0,v.jsx)(l.$0,{constrained:!0,small:!0,children:(0,v.jsxs)(Ae,{children:[(0,v.jsxs)(Re,{children:[(0,v.jsx)(Ee.Z,{size:200}),(0,v.jsx)(Ne,{children:r("Play online, access classic NES\u2122 and Super NES\u2122 games, and more with a Nintendo Switch Online membership.")}),(0,v.jsxs)("p",{children:[r("This game supports:"),t.nsoFeatures?.map((e=>(0,v.jsxs)("span",{children:["ONLINE_PLAY"==e.code&&(0,v.jsx)(K.L,{href:i,children:r("Online Play")},"online-play"),"SAVE_DATA_CLOUD"==e.code&&(0,v.jsx)(K.L,{href:i,children:r("Save Data Cloud")},"save-data")]},e.code)))]}),(0,v.jsx)(Y.B,{href:i,buttonWidth:"auto",locale:n,children:r("Learn more")})]}),(0,v.jsx)("div",{className:"storyAsset",children:(0,v.jsx)(fe.I,{assetPath:"https://assets.nintendo.com/image/upload/f_auto,q_auto/v1605147657/ncom/en_US/merchandising/curated%20list/Games%20for%20core%20gamers/Pro-Controller-Hands.png",alt:r("Nintendo Switch Pro Controller")})})]})}):(0,v.jsx)(v.Fragment,{})},Ze=r(93170),$e=r(62770),_e=r(79102),Ge=r(43064),He=r(77064),Qe=r(99140),Fe=r(95395);const Be=(0,d.default)(l.$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]})),qe=d.default.div.withConfig({componentId:"sc-4l5ex7-1"})(["p,a{","}"],(e=>{let{theme:t}=e;return(0,d.css)(["font-size:",";","{font-size:",";}"],t.font.size.legalMobile,t.mediaQuery.tablet,t.font.size.legalDesktop)})),Ue=d.default.div.withConfig({componentId:"sc-4l5ex7-2"})(["display:flex;align-items:baseline;gap:0.25rem;"]),Ve=d.default.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})),We=d.default.div.withConfig({componentId:"sc-4l5ex7-4"})(["",""],(e=>{let{theme:t}=e;return(0,d.css)(["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)})),Ke=d.default.div.withConfig({componentId:"sc-4l5ex7-5"})(["",""],(e=>{let{theme:t}=e;return(0,d.css)(["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])})),Ye=d.default.section.withConfig({componentId:"sc-4l5ex7-6"})(["padding:1rem;"]),Je=(0,d.default)(l.$0).withConfig({componentId:"sc-4l5ex7-7"})(["margin-top:",";"],(e=>{let{theme:t}=e;return t.spacing[24]}));function et(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 tt(e){for(var t=1;t0,w=(0,o.useRecentlyViewed)(),{trackViewItem:y}=(0,o.useAnalytics)(),{0:j,1:C}=(0,p.useState)(!1),P=r.ageGate||r.contentRating?.requiresAgeGate,S=nt.get(),[L,I]=f.split("-"),D=r.officialSite?.startsWith("http")?r.officialSite:`//${r.officialSite}`,O=r.relatedArticles,T=(0,p.useMemo)((()=>{const e=[];return Qe.wh.has(f)&&(r.upsellProducts?.length&&e.push({heading:h("Related items to explore"),products:r.upsellProducts.slice(0,16).map(M.uF)}),r.crossSellProducts?.length&&e.push({heading:h("More like this"),products:r.crossSellProducts.slice(0,16).map(M.uF)}),u?.length&&e.push({heading:h("Digital best sellers"),products:u.map(M.uF)})),e}),[r.upsellProducts,r.crossSellProducts,u,h,f]),{waitForElementRef:A}=(0,Fe.r)(),R=(0,p.useCallback)((()=>{A(!0)}),[A]);return(0,p.useEffect)((()=>{w.addProduct&&!j&&(C(!0),r.edition?w.addProduct(r):w.addProduct(r.configurableProduct||r))}),[w,r,j]),(0,M.nw)((()=>y(r,(0,M.DW)({name:r.name})))),P&&b.loading?(0,v.jsx)(Ye,{}):(0,v.jsxs)(Ze.A,{passed:"true"===S&&!b.data?.isChild||!P,failed:(b.data?.isChild||"false"===S)&&P,onSuccess:()=>nt.set("true",rt),onFailure:()=>nt.set("false",rt),lang:L,country:I,minimumAge:"mx"===I?18:17,children:[(0,v.jsx)(Me,{product:r}),"BUNDLE"===r.productType&&(0,v.jsxs)(l.$0,{constrained:!0,small:!0,children:[(0,v.jsx)($.S,{size:24}),(0,v.jsx)(n.H,{variant:"h1",children:h("Included in this bundle")}),(0,v.jsx)($e.R,{contained:!0,children:r.bundleItems?.filter((e=>!!e.options.length)).map((e=>{const t=e.options.find((e=>{let{isDefault:t}=e;return t}))?.product??e.options[0]?.product,r=e.options.length>1?t.variations:[];return(0,p.createElement)(s.I8,tt(tt({},t),{},{isSalableQty:e.options.some((e=>e?.product?.isSalableQty)),variations:r,artPath:t?.productImage?.publicId,platform:t?.platform?.label,platformCode:t?.platform?.code,key:t.sku,showRating:!0}))}))})]}),(0,v.jsxs)(n.H.NewLevel,{children:[c&&(0,v.jsx)(Be,{constrained:!0,small:!0,marginBottom:0,children:(0,v.jsxs)(We,{children:[(0,v.jsxs)("div",{children:[r.headline&&(0,v.jsx)(n.H,{children:r.headline}),(0,v.jsx)(Dr,{maxLines:10,description:r.richTextDescription?.json||r.description,category:r.topLevelCategory}),r.officialSite&&(0,v.jsx)("a",{href:D,target:"_blank",rel:"noopener noreferrer",children:(0,v.jsx)(Y.B,{children:h("Explore this game's official website")})})]}),(r.descriptionImage||r.productImage)&&(0,v.jsx)(Ve,{children:(0,v.jsx)("div",{children:(0,v.jsx)(fe.I,{assetPath:r.descriptionImage?r.descriptionImage.publicId:r.productImage.publicId,alt:r.name})})})]})}),d?.asset?.primary?.assetPath?(0,v.jsx)(Je,{constrained:!0,small:!0,background:d.background?.backgroundType,id:"banner",children:(0,v.jsx)(l.tm,{content:{assetPath:d.asset?.primary?.assetPath,assetPathAlt:d.asset?.alt,cta:d.ctaList[0],description:d.description,heading:d.heading,modifiers:d.modifiers}})}):null,t,r.publisherNotifications&&(0,v.jsx)(l.$0,{constrained:!0,small:!0,marginBottom:0,children:(0,v.jsxs)(Ke,{children:[(0,v.jsx)(n.H,{variant:"h3",children:h("Publisher notification(s):")}),(0,v.jsx)(l.Ho,{textVariant:"legal",data:r.publisherNotifications})]})}),O?.length>0&&f===Qe.ZW&&(0,v.jsxs)(l.$0,{constrained:!0,small:!0,children:[(0,v.jsx)(k.H,{ctaText:h("Finding this content helpful?"),ctaType:"iconlink",ctaUrl:"https://nintendoofamerica.co1.qualtrics.com/jfe/form/SV_ahCL4zK2P7j2q3k",icon:_e.Z,ctaTarget:"_blank",children:h("Related news and events")}),(0,v.jsx)($.S,{size:16}),(0,v.jsx)($e.R,{contained:!0,children:O.map((e=>{let{id:t,url:r,title:n,media:i,publishDate:l}=e;return(0,v.jsx)(Ge.N,{articleLink:r,articleTitle:n,artPath:i?.publicId,publishDate:g(l,{format:m.SHORT}),readMoreLabel:h("Read more"),size:"small"},t)}))})]}),(0,v.jsx)(z,{product:r,locale:f}),r.sizeChart&&(0,v.jsxs)(l.$0,{id:"sizing",constrained:!0,background:Q.d.color.lightGray4,small:!0,children:[(0,v.jsx)("h2",{children:h("Size chart")}),(0,v.jsx)(_r,{product:r})]}),(0,v.jsx)(Xe,{product:r}),x?(0,v.jsx)(l.$0,{id:"dlc",small:!0,children:(0,v.jsx)(E,{product:r,locale:f})}):null,(0,v.jsx)(l.$0,{small:!0,constrained:!0,marginBottom:16,children:(0,v.jsx)(l.$3,{collections:T})}),(0,v.jsx)(l.HU,{currentSku:r.edition?r.sku:r.configurableProduct?.sku||r.sku,small:!0,onProductsLoaded:R}),(0,v.jsxs)(l.$0,{id:"legal",constrained:!0,small:!0,children:["GAMES"===r.topLevelCategory?.code&&(0,v.jsx)(i.T,{variant:"legal",children:h("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.")}),r.disclaimer&&(0,v.jsx)(qe,{dangerouslySetInnerHTML:{__html:r.disclaimer}}),r.richTextDisclaimer?.json&&(0,v.jsx)(l.Ho,{textVariant:"legal",data:r.richTextDisclaimer?.json}),r.displayProp65&&(0,v.jsxs)(qe,{children:[(0,v.jsxs)(Ue,{children:[(0,v.jsx)(He.Z,{size:16}),(0,v.jsx)(n.H,{variant:"h3",children:h("Warning:")})," ",h("Cancer and reproductive harm.")]}),(0,v.jsx)(K.L,{href:"https://www.p65warnings.ca.gov/",children:"p65warnings.ca.gov"})]})]})]})]})}var lt=r(9046),at=r(49446),ot=r(33120),st=r(21203),dt=r(85792),ct=r(25338),ut=r(46488),ht=r(24123),pt=r(32687),gt=r(44835),mt=r(64684),ft=r(94922);const bt=d.default.div.withConfig({componentId:"sc-1237z5p-0"})(["margin:"," 0;"],(e=>{let{theme:t}=e;return t.spacing[32]})),xt=d.default.div.withConfig({componentId:"sc-1237z5p-1"})(["",""],(e=>{let{theme:t}=e;return(0,d.css)(["display:grid;grid-template-columns:28px 1fr;align-items:start;gap:",";grid-row-gap:0;border-bottom:1px solid ",";padding:",";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.spacing[16]} ${t.spacing[8]}`}),(e=>{let{theme:t}=e;return t.color.lightGray2}),t.mediaQuery.tablet)})),wt=d.default.div.withConfig({componentId:"sc-1237z5p-2"})(["display:flex;align-items:center;flex-wrap:wrap;gap:",";button{padding:0;}","{gap:",";}"],(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]})),yt=(d.default.div.withConfig({componentId:"sc-1237z5p-3"})([""," 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,d.css)(["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})),d.default.div.withConfig({componentId:"sc-1237z5p-4"})(["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]})),e=>{let{icon:t,heading:r,descriptions:i}=e;return(0,v.jsxs)(xt,{children:[t,(0,v.jsx)(n.H,{variant:"h3",children:r}),(0,v.jsx)(wt,{children:i.map((e=>(0,v.jsx)("div",{children:e.href?(0,v.jsx)(K.L,{href:e.href,children:e.label}):e.label},e.label)))})]})}),jt=(e,t,r)=>{let n=[];return t.playersMax&&n.push(vt(r("Single System"),t.playersMin,t.playersMax,{searchPrefix:e,text:r})),t.playersMaxLocal&&n.push(vt(r("Local wireless"),t.playersMinLocal,t.playersMaxLocal,{searchPrefix:e,text:r})),t.playersMaxOnline&&n.push(vt(r("Online"),t.playersMinOnline,t.playersMaxOnline,{searchPrefix:e,text:r})),n},vt=(e,t,r,n)=>{const{searchPrefix:i,text:l}=n,a=parseInt(r||t),o=1===a?l("Single Player"):a>3?"4+":`${a}+`;return{href:`${i}#cat=gme&f=playerCount&playerCount=${encodeURIComponent(o)}`,label:e+" ("+(t!=r?t+"-":"")+(r||"")+")"}};var Ct=e=>{let{product:t}=e;const{date:r,DateFormat:i,text:l}=(0,o.useLocalizer)(),a="/search",d=t.genres?.map((e=>({href:`/search/#cat=gme&f=genres&genres=${encodeURIComponent(e.label)}`,label:e.label}))),c=t.playModes?.map((e=>l(e.label))),u=jt(a,t,l),h=(0,de.EE)(t),p=t?.topLevelCategory?.code===ft.j.HARDWARE;return(0,v.jsxs)(bt,{children:[(0,v.jsx)(lt.S,{id:"product-info",children:(0,v.jsx)(n.H,{children:l("Product information")})}),(0,v.jsx)(n.H.NewLevel,{children:(0,v.jsxs)(s.rj,{columns:1,gap:0,children:[t.releaseDate&&(0,v.jsx)(yt,{icon:(0,v.jsx)(at.Z,{size:28}),heading:l("Release date"),descriptions:[{label:t.releaseDateDisplay?t.releaseDateDisplay:r(t.releaseDate,{format:i.LONG})}]}),t.playersMax&&(0,v.jsx)(yt,{icon:(0,v.jsx)(ot.Z,{size:28}),heading:l("No. of players"),descriptions:u}),t.genres&&(0,v.jsx)(yt,{icon:(0,v.jsx)(st.Z,{size:28}),heading:l("Genre"),descriptions:d}),t.softwarePublisher&&(0,v.jsx)(yt,{icon:(0,v.jsx)(dt.Z,{size:28}),heading:l("Publisher"),descriptions:[{href:`/search#cat=gme&f=softwarePublisher&softwarePublisher=${encodeURIComponent(t.softwarePublisher)}`,label:t.softwarePublisher}]}),null!=t.contentRating&&(0,v.jsx)(yt,{icon:(0,v.jsx)(ct.Z,{size:28}),heading:l("ESRB rating"),descriptions:[{href:`/search#cat=gme&sort=df&f=${ft.z.CONTENT_RATING}&${ft.z.CONTENT_RATING}=${encodeURIComponent((0,M.r5)(t))}`,label:t.contentRating.label}]}),t.playModes&&(0,v.jsx)(yt,{icon:(0,v.jsx)(ut.Z,{size:28}),heading:l("Supported play modes"),descriptions:[{label:c.join(", ")}]}),t.romFileSize&&(0,v.jsx)(yt,{icon:(0,v.jsx)(ht.Z,{size:28}),heading:l("Game file size"),descriptions:[{label:(0,de.jb)(t.romFileSize)}]}),t.supportedLanguages&&(0,v.jsx)(yt,{icon:(0,v.jsx)(pt.Z,{size:28}),heading:l("Supported languages"),descriptions:[{label:t.supportedLanguages?.map(l).join(", ")}]}),t.countryOfOrigin&&(0,v.jsx)(yt,{icon:(0,v.jsx)(pt.Z,{size:28}),heading:l("Country of origin"),descriptions:[{label:t.countryOfOrigin}]}),t.manufacturer&&(0,v.jsx)(yt,{icon:(0,v.jsx)(dt.Z,{size:28}),heading:l("Manufacturer"),descriptions:[{href:`/search#cat=${p?"hdw":"merch"}&f=manufacturer&manufacturer=${encodeURIComponent(t.manufacturer)}&p=1&sort=df`,label:t.manufacturer}]}),t.sku&&!h&&(0,v.jsx)(yt,{icon:(0,v.jsx)(gt.Z,{size:28}),heading:l("SKU"),descriptions:[{label:t.sku}]}),t.upc&&!t.nsuid&&(0,v.jsx)(yt,{icon:(0,v.jsx)(mt.Z,{size:28}),heading:l("UPC"),descriptions:[{label:t.upc}]})]})})]})},Pt=r(25237),St=r.n(Pt),Lt=r(17474),It=r(80149),Dt=r(90085),Ot=r(7141),zt=r(1205),kt=r(7162);const Tt={"en-us":.01,"en-ca":.01,"fr-ca":.01,"es-mx":.2,"pt-br":.05,"es-ar":.5,"es-cl":5,"es-co":50,"es-pe":.05};var Mt=r(13847),Et=r.n(Mt);const At=e=>{let{eligiblePoints:t,loading:r,newMessage:n,goldPoints:l}=e;const{text:a}=(0,o.useLocalizer)();return r?(0,v.jsx)(W.S,{className:Et().skeleton,width:"100%"}):!1===n?(0,v.jsxs)("div",{className:Et().eligiblePoints,children:[(0,v.jsx)(kt.Z,{size:24}),(0,v.jsx)(i.T,{variant:"legal",children:a("Eligible for up to {0} Gold Points",{args:[(0,v.jsx)("span",{className:Et().boldText,children:t},"goldPoints")]})})]}):(0,v.jsxs)("div",{className:Et().goldPointsValue,children:[(0,v.jsx)(kt.Z,{size:24}),(0,v.jsx)("span",{className:Et().text,children:l.showValue?a("Your Gold Points: {0} = {1} discount",{args:[l.total,l.value]}):a("Earn up to {0} Gold Points",{args:[(0,v.jsx)("span",{className:Et().boldText,children:t},"goldPoints")]})})]})};var Rt=e=>{let{eligiblePoints:t}=e;const{loading:r,newMessage:n,goldPoints:i}=function(){const e=(0,o.useCustomer)(),t=(0,o.useFeature)(Qe.rI.GOLD_POINTS_DISCOUNT),{locale:r}=(0,a.Z)(),{price:n}=(0,o.useLocalizer)(),i=(0,p.useMemo)((()=>e?.data?.pointsWallet?.gold?.total||0),[e]),l=(0,p.useMemo)((()=>!1===e.loading&&(0,M.ln)(r,e?.data)&&i>=100),[i,e,r]),s=(0,p.useMemo)((()=>Intl.NumberFormat(r).format(i)),[r,i]),d=(0,p.useMemo)((()=>n(i*Tt[r])),[r,i,n]);return{loading:t?.loading||e?.loading,newMessage:t?.enabled,goldPoints:{showValue:l,total:s,value:d}}}();return(0,v.jsx)(At,{eligiblePoints:t,loading:r,newMessage:n,goldPoints:i})},Nt=r(60014),Xt=r(74039),Zt=r(83533),$t=r(12547),_t=r(59379);const Gt="64px",Ht="110px",Qt="14px",Ft="20px",Bt=d.default.div.withConfig({componentId:"sc-66y51m-0"})(["display:flex;justify-content:center;width:100%;"]),qt=d.default.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(Ht)}px`:Ht}),(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),_t.As,_t.oQ,(e=>{let{$hasError:t}=e;return t?`${10+parseInt(Gt)}px`:Gt})),Ut=d.default.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})),Vt=(0,d.default)(n.H).withConfig({componentId:"sc-66y51m-3"})(["display:none;","{display:block;}"],(e=>{let{theme:t}=e;return t.mediaQuery.desktop})),Wt=d.default.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})),Kt=d.default.div.withConfig({componentId:"sc-66y51m-5"})(["display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-right:1rem;position:relative;"]),Yt=d.default.div.withConfig({componentId:"sc-66y51m-6"})(["visibility:",";"],(e=>{let{$visible:t}=e;return t?"visible":"hidden"})),Jt=(0,d.default)(W.S).withConfig({componentId:"sc-66y51m-7"})(["position:absolute;top:-3px;left:0;z-index:1;"]),er=d.default.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"})),tr=(0,d.default)(Y.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)})),rr=(0,d.default)(s.rj).withConfig({componentId:"sc-66y51m-10"})(["grid-template-columns:"," 1fr;","{grid-template-columns:"," 1fr;}"],Qt,(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),Ft),nr=(0,d.default)(It.Z).withConfig({componentId:"sc-66y51m-11"})(["width:",";","{width:",";}"],Qt,(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),Ft),ir=(0,d.default)(n.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})),lr=(0,d.default)(i.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 ar=r(4095);var or=e=>{let{onChange:t,isBundle:r,product:n,title:i,value:l}=e;const{topLevelCategory:a,variations:o,nsuid:s}=n;if("GAMES"===a?.code){if("MOBILE"==s)return(0,v.jsx)(ar.uP,{product:n});if(o?.length>3)return(0,v.jsx)(ar.Z5,{product:n});if(o?.length>0)return(0,v.jsx)(ar.Kx,{onChange:t,isBundle:r,product:n,title:i,value:l})}return o?.length>0?(0,v.jsx)(ar.ig,{isBundle:r,onChange:t,product:n,title:i,value:l}):null},sr=r(93135),dr=r(76904);function cr(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}const ur=(e,t)=>{const r=[Qe.xJ,Qe.oV,Qe._1,Qe.bA],n={[Qe.xJ]:{4:"HNA"},[Qe.oV]:{8:"PSTM",7:"MSTM",6:"CSTM",5:"ESTM"},[Qe._1]:{3:"ART"},[Qe.bA]:{2:"FNT",3:"BRT",4:"AMT",5:"ACT"}};return r.includes(t)?e.replace(/(?:UTC|GMT).(\d)/,((e,r)=>n[t][r]||e)):e},hr=(e,t,r,n)=>{const i=new Date,l=new Date(e),a=t===Qe.xJ,o=l.getTime()-i.getTime();if(o<0)return null;if(!(o/6e4/60>24))return r("Sale ends: {0}",{args:[(0,v.jsx)(dr.C,{onTimeEnd:n,endDate:e,abbreviate:!1},"timer")]});{const e=a?"es-MX":t===Qe.bu?"en-US":(0,sr.ZP)(t);try{const n=Intl.DateTimeFormat().resolvedOptions().timeZone,i=l.toLocaleDateString(e,function(e){for(var t=1;t`${t.toLowerCase()}.m.`)),t)]})}catch{return null}}},pr="The requested quantity is not available",gr={DEFAULT:"Something went wrong. Please try again.",QTY_NOT_AVAILABLE:pr,QTY_NOT_AVAILABLE_FR:pr,INSUFFICIENT_STOCK:pr,QTY_EXCEEDS_MAXIMUM:pr,PURCHASE_LIMIT_REACHED:pr,PRODUCT_UNAVAILABLE:pr};function mr(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 fr(e){for(var t=1;tr.e(7363).then(r.bind(r,87363))),{ssr:!1,loadableGenerated:{webpack:()=>[87363]}}),xr=(0,Xt.Z)(Lt.W),wr="add-to-cart-drawer",yr="added-to-cart-drawer",jr=[wr];function vr(e){let{product:t,purchaseOptions:r}=e;const{actions:{openDrawer:i,closeDrawer:c,addOrUpdateDrawer:u,removeDrawer:h}}=(0,Nt.eV)(),g=(0,p.useRef)(),m="BUNDLE"===t.productType,f=t.bundleItems?.filter((e=>e.options?.length>1)),b=(0,p.useContext)(d.ThemeContext),{locale:x}=(0,a.Z)(),w=x?.split("-")[0]??"en",{text:y}=(0,o.useLocalizer)(),j=(0,Zt.Z)(Zt.o.DESKTOP),{0:C,1:P}=(0,p.useState)(0),{0:S,1:L}=(0,p.useState)(),{state:{addableQty:I,quantity:D,isLoading:O,isMobileGame:z,isDigitalProduct:k,isPurchasable:T,retailerSku:E,buttonDisabled:A,promptLogin:R,disableQuantity:N,buttonCopy:X,helperText:Z,boldHelperText:_,displayPrice:G,showRedemptionCodeModal:H,selectedOptionsByTitle:F},actions:{handleDirectDownloadClick:B,handleAddToCart:q,setQuantity:U,setShowRedemptionCodeModal:V,setSelectedOptionsByTitle:W}}=r,{platinumPoints:K,eshopDetails:re}=t,de=(0,p.useMemo)((()=>({id:yr,drawer:{height:"325px",target:Nt.zO.FLYOUT,bgColor:b.color.lightGray3,enableScrim:!0,content:(0,v.jsx)(l.ZL,{product:t,quantity:C,onClose:()=>c(yr)})}})),[t,C,b,c]),ce=(0,p.useCallback)((async()=>{P(D),L();const{data:e,errors:r}=await q()||{},n=e?.cart?.items.some((e=>{let{product:r}=e;return r.sku===t.sku})),l=r?.length>0;if(n&&!l)i(yr);else if(l){const e=r?.[0]?.extensions?.code;L(gr[e]||gr.DEFAULT)}}),[t,D,q,i]),ue=(0,p.useMemo)((()=>({viewPortTopOffset:j?Nt.nI.DESKTOP:0})),[j]),he=(0,p.useMemo)((()=>({[wr]:{ref:g}})),[]),pe=S?`${10+parseInt(Gt)}px`:Gt,ge=S?`${10+parseInt(Ht)}px`:Ht,me=(0,p.useMemo)((()=>({[wr]:{drawer:{height:j?pe:ge,target:Nt.zO.TOP_DRAWER,bgColor:Q.d.color.lightGray3,content:(0,v.jsx)(Gr,{product:t,errorMessage:S,purchaseOptions:fr(fr({},r),{},{actions:fr(fr({},r.actions),{},{handleAddToCart:ce})})})}}})),[t,j,r,S,ce,pe,ge]);(0,$t.Z)(jr,he,me,ue),(0,p.useEffect)((()=>{u(de.id,de.drawer)}),[de,u]),(0,p.useEffect)((()=>{U(1)}),[U,I]),(0,p.useEffect)((()=>{L()}),[t?.sku,D]),(0,p.useEffect)((()=>()=>{h(yr)}),[h]);const fe=(0,p.useMemo)((()=>re?.discountPriceEnd?hr(re?.discountPriceEnd,x,y,(()=>{window.location.reload()})):null),[re,x,y]);return(0,v.jsxs)(v.Fragment,{children:[!m&&(0,v.jsx)(or,{product:t}),(0,v.jsx)($.S,{size:24}),fe&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(ae,{backgroundColor:b.color.primary,foregroundColor:"#fff",children:fe}),(0,v.jsx)($.S,{size:8})]}),!z&&(0,v.jsxs)(ee,{children:[(0,M.vS)(x)&&!k?null:O?(0,v.jsx)(te,{width:"50%"}):K?(0,v.jsxs)(s.rj,{columns:"24px 1fr",justifyItems:"start",alignItems:"center",children:[(0,v.jsx)(It.Z,{size:24}),(0,v.jsxs)(n.H,{variant:"h2",children:[K," ",y("Platinum Points")]})]}):(0,v.jsx)(Dt.P,{regPrice:G.regPrice,size:"large",salePrice:G.salePrice,lang:w}),(0,Xt.Y)(t)&&(0,v.jsx)(xr,{product:t,analyticsName:"Product Detail Page wish list",iconOnly:!0})]}),m&&(0,v.jsx)(se,{children:f.map((e=>{const{options:t,title:r}=e,n=t.find((e=>{let{isDefault:t}=e;return t}))||t[0],i=n?.product?.configurableOptions?.[0]?.attributeCode?.toLowerCase();return(0,v.jsx)(or,{onChange:e=>{t.find((t=>{let{id:r}=t;return r===e})).product?.isSalableQty&&W((t=>fr(fr({},t),{},{[r]:e})))},value:F[r],title:y(`Select ${i} for {0}`,{args:[r]}),isBundle:!0,product:fr(fr({},n.product),{},{variations:t.map((e=>{const{label:t,value:r}=e.product.variations.find((t=>t.product.sku==e.product.sku));return fr(fr({},e),{},{label:t,value:r,product:fr(fr({},e.product),{},{url:""})})}))})},e.id)}))}),re?.goldPoints?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)($.S,{size:24}),(0,v.jsx)(o.CustomerProvider,{fetchPolicy:"cache-and-network",children:(0,v.jsx)(Rt,{eligiblePoints:re.goldPoints})})]}):null,(0,v.jsx)($.S,{size:24}),(0,v.jsx)(s.rj,{columns:"1fr 3fr",alignItems:"center",children:k?(0,v.jsx)(s.P4,{column:"span 2",children:(T||"MarketingProduct"===t.__typename)&&(0,v.jsx)(Y.B,{onClick:B,icon:A||R?"":Ot.Z,isLoading:O,buttonWidth:"full",disabled:A,size:"large",href:A||R?null:re?.purchaseUrl,children:"string"===typeof X?y(X):X})}):(0,M.vS)(x)?null:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(J,{quantity:D,max:N?1:I,min:1,onChange:U,disabled:A}),(0,v.jsx)(le,{onClick:ce,isLoading:O,disabled:A,icon:A||R?"":zt.Z,buttonWidth:"full",size:"large",children:"string"===typeof X?y(X):X})]})}),(0,v.jsx)("span",{ref:g,"data-drawer-id":wr}),Z&&(k||!(0,M.vS)(x))&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)($.S,{size:20}),S&&(0,v.jsx)(ie,{variant:"caption",children:y(S)}),t.voucherNsuid&&(0,v.jsx)(l.lE,{nsuid:t.nsuid}),(0,v.jsx)(ne,{variant:"legal",children:(0,v.jsx)(oe,{"data-testid":"helperText",$boldHelperText:_,children:"string"===typeof Z?y(Z):Z})})]}),E&&!t.requiresSubscription?(0,v.jsxs)(v.Fragment,{children:[(!(0,M.vS)(x)||k)&&(0,v.jsx)($.S,{size:24}),(0,v.jsx)(l.Qc,{sku:E,name:t.name,type:(0,M.vS)(x)&&!k?"button":"link"})]}):null,t.requiresCoupon&&(0,v.jsx)(br,{onApplyCode:async e=>{const{data:t,errors:r}=await q(e);if(!t?.cart?.id)throw new Error(r?.[0]?.extensions?.errors?.[0]?.message);setTimeout((()=>{i(yr)}),200)},onClose:()=>V(!1),visible:H})]})}var Cr=r(59124),Pr=r(1505);const Sr=d.default.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]})),Lr=(0,d.default)(me.I).withConfig({componentId:"sc-120wz1l-1"})(["padding-left:0;"]),Ir=d.default.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:r}=e;return t?9999:r}),(e=>{let{theme:t}=e;return t.spacing[8]}));var Dr=function(e){let{maxLines:t,description:r,category:n}=e;const{text:a}=(0,o.useLocalizer)(),{0:s,1:d}=(0,p.useState)(0),{0:c,1:u}=(0,p.useState)(!1),{0:h,1:g}=(0,p.useState)(!1),m="GAMES"===n?.code,f=(0,p.useRef)(null),b=(0,p.useRef)(null),x=(0,p.useRef)(null);(0,p.useEffect)((()=>(w(),window.addEventListener("resize",w),()=>{window.removeEventListener("resize",w)})),[]),(0,p.useEffect)((()=>{g(!1)}),[r]);const w=()=>{clearTimeout(x.current),x.current=setTimeout((()=>{u(b?.current?.scrollHeight>b?.current?.clientHeight)}),0)};return(0,p.useEffect)((()=>{b.current?.classList.add("clamp")}),[t]),(0,v.jsxs)(Sr,{ref:f,children:[(0,v.jsx)(Ir,{$isExpanded:h,$maxLines:t,children:(0,v.jsx)(l.Ho,{ref:b,data:r})}),c&&(0,v.jsx)(Lr,{icon:h?Cr.Z:Pr.Z,onClick:()=>{g((e=>(e?window.scrollTo(0,s):d(window.scrollY),!e)))},children:a(h?"Read less":"Read more")}),m&&(0,v.jsx)(i.T,{variant:"legal",children:a("Software description provided by the publisher.")})]})},Or=r(93122),zr=r(50135);const kr=d.default.div.withConfig({componentId:"sc-1hh5k55-0"})(["display:grid;grid-template-columns:repeat(5,1fr);grid-gap:0.5em;"]),Tr=e=>{let{theme:t,isActive:r,swatch:n,disabled:i}=e;return(0,d.css)(["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&&!n?t.color.lightGray2:n?"url("+n+")":r?t.color.primary:t.color.white,t.spacing[4],r?t.color.primary:i?t.color.lightGray2:t.color.white,i?t.color.darkGray2:r?t.color.white:t.color.darkGray2,t.mediaQuery.tablet,i?t.color.darkGray3:r?t.color.white:t.color.darkGray2,(e=>{let{theme:t}=e;return t.movement.duration+" "+t.movement.easing}),i&&n?"60%":"initial",i?"grayscale(60%)":"",t.spacing[4],t.color.primary,r&&!i?t.color.white:t.color.darkGray2)},Mr=d.default.div.withConfig({componentId:"sc-1hh5k55-1"})([""," "," flex-direction:column;justify-content:flex-start;text-align:center;"],zr.nd,Tr),Er=(0,d.default)(Or.Z).withConfig({componentId:"sc-1hh5k55-2"})(["",""],Tr);const Ar=new Set(["color"]);var Rr=e=>{let{onChange:t,product:r,value:n}=e;const{query:i}=(0,a.Z)(),l=r.configurableOptions?.[0]?.attributeCode;return(0,v.jsx)(kr,{children:r.variations.map((e=>{const r=Ar.has(l)&&function(e){return e?new URL(`/media/attribute/swatch/swatch_image/30x20${e}`,"https://store.nintendo.com/").toString():null}(e.value),a=e.product.url?e.product.urlKey===i.slug:e.id===n;return e.product.url?(0,v.jsx)(Er,{href:e.product.url,isActive:a,swatch:r,disabled:!e.product.isSalableQty,children:r?"":e.label},e.product.name):(0,v.jsx)(Mr,{onClick:()=>t(e.id),isActive:a,swatch:r,disabled:!e.product.isSalableQty,children:(0,v.jsx)(zr.Dx,{type:"portrait",children:r?"":e.label})},e.product.name)}))})};const Nr=(0,d.default)(l.He).withConfig({componentId:"sc-raxccj-0"})(["",""],(e=>{let{theme:t}=e;return(0,d.css)(["display:grid;grid-template-columns:1fr;grid-row-gap:",";grid-column-gap:",";align-items:center;box-shadow:0 2px 16px 0 rgba(72,72,72,0.15);border-radius:4px;padding:3em;margin-bottom:",";background:#fff;","{grid-template-columns:1fr 1fr;}"],t.spacing[24],t.spacing[48],(e=>{let{theme:t}=e;return t.spacing[32]}),t.mediaQuery.tablet)})),Xr=d.default.table.withConfig({componentId:"sc-raxccj-1"})(["text-align:left;border-collapse:collapse;tr:nth-child(2n + 3){background:",";}th,td{padding:",";border:none;}"],(e=>{let{theme:t}=e;return t.color.lightGray4}),(e=>{let{theme:t}=e;return`${t.spacing[16]} ${t.spacing[8]}`})),Zr=d.default.div.withConfig({componentId:"sc-raxccj-2"})(["img{object-fit:contain;max-height:24em;}"]),$r=(d.default.div.withConfig({componentId:"sc-raxccj-3"})(["display:flex;align-items:center;justify-content:center;border:1px dashed #e60012;width:100%;padding:1em 2em;"]),{868:{label:"tshirt",type:"shirt",sizes:[{label:"XS",width:"17.5",length:"27"},{label:"Small",width:"19",length:"28"},{label:"Medium",width:"20.5",length:"29"},{label:"Large",width:"22",length:"30"},{label:"XL",width:"24",length:"31"},{label:"2XL",width:"26",length:"32"},{label:"3XL",width:"28",length:"33"},{label:"4XL",width:"30",length:"34"}]},23198:{label:"FifthSunHoodie",type:"shirt",sizes:[{label:"Small",width:"20.5",length:"26.5"},{label:"Medium",width:"22",length:"28"},{label:"Large",width:"23.5",length:"29.5"},{label:"X-Large",width:"25",length:"31"},{label:"XX-Large",width:"26.5",length:"32.5"}]},23201:{label:"FifthSunMen",type:"shirt",sizes:[{label:"Small",width:"18",length:"28"},{label:"Medium",width:"20.5",length:"29"},{label:"Large",width:"22",length:"30"},{label:"X-Large",width:"24",length:"31"},{label:"XX-Large",width:"26",length:"32"}]},23204:{label:"Fifth Sun - Women",type:"shirt",sizes:[{label:"Small",width:"16.5",length:"25"},{label:"Medium",width:"17.5",length:"26"},{label:"Large",width:"19",length:"27"},{label:"X-Large",width:"20.5",length:"28"},{label:"XX-Large",width:"22",length:"28.5"}]},23219:{label:"SportiqeBomberJacket",type:"shirt",sizes:[{label:"X-Small",width:"42",length:"25 1/2"},{label:"Small",width:"44",length:"26 1/4"},{label:"Medium",width:"46",length:"27"},{label:"Large",width:"48",length:"27 3/4"},{label:"X-Large",width:"50",length:"28 1/2"},{label:"XX-Large",width:"52",length:"29 1/4"},{label:"XXX-Large",width:"54",length:"30"}]},23207:{label:"SportiqeDavis",type:"shirt",sizes:[{label:"Small",width:"19",length:"28"},{label:"Medium",width:"21",length:"29"},{label:"Large",width:"22",length:"30"},{label:"X-Large",width:"24",length:"31"},{label:"XX-Large",width:"26",length:"32"},{label:"XXX-Large",width:"28",length:"33"},{label:"XXXX-Large",width:"30",length:"34"}]},23216:{label:"SportiqeDavisWomen",type:"shirt",sizes:[{label:"X-Small",width:"30 1/2",length:"25 3/4"},{label:"Small",width:"32 1/2",length:"26 3/8"},{label:"Medium",width:"34 1/2",length:"27"},{label:"Large",width:"36 1/2",length:"27 5/8"},{label:"X-Large",width:"39 1/2",length:"28 1/4"},{label:"XX-Large",width:"42 1/2",length:"28 7/8"}]},23213:{label:"SportiqeHeywood",type:"shirt",sizes:[{label:"Small",width:"39",length:"26"},{label:"Medium",width:"41",length:"27"},{label:"Large",width:"43",length:"28"},{label:"X-Large",width:"45",length:"29"},{label:"XX-Large",width:"47",length:"30"},{label:"XXX-Large",width:"49",length:"33"}]},23210:{label:"SportiqeOlsen",type:"shirt",sizes:[{label:"Small",width:"21",length:"27"},{label:"Medium",width:"22",length:"28"},{label:"Large",width:"23",length:"29"},{label:"X-Large",width:"24",length:"30"},{label:"XX-Large",width:"25",length:"31"},{label:"XXX-Large",width:"26",length:"32"}]},26449:{label:"SportiqeBlake",type:"shirt",sizes:[{label:"XS",width:"39",length:"26.5"},{label:"S",width:"41",length:"27.5"},{label:"M",width:"43",length:"28.5"},{label:"L",width:"45",length:"29.5"},{label:"XL",width:"47",length:"30.5"},{label:"2XL",width:"49",length:"31.5"},{label:"3XL",width:"50",length:"32.5"}]},26467:{label:"SportiqeJo",type:"pants",sizes:[{label:"S",width:"26",length:"28"},{label:"M",width:"28",length:"28.5"},{label:"L",width:"30",length:"29"},{label:"XL",width:"32",length:"29.5"},{label:"2XL",width:"34",length:"30"}]},23192:{label:"BioworldMen",type:"shirt",sizes:[{label:"S",width:"18",length:"28"},{label:"M",width:"20",length:"29"},{label:"L",width:"22",length:"30"},{label:"XL",width:"24",length:"31"},{label:"2XL",width:"26",length:"32"},{label:"3XL",width:"28",length:"33"}]},26470:{label:"SportiqeBoon",type:"pants",sizes:[{label:"S",width:"29.5",length:"30.25"},{label:"M",width:"31",length:"30.75"},{label:"L",width:"32.5",length:"31.25"},{label:"XL",width:"34",length:"31.75"},{label:"2XL",width:"35.5",length:"32.25"}]},26452:{label:"SportiqeAva",type:"shirt",sizes:[{label:"S",width:"38",length:"22"},{label:"M",width:"40",length:"23"},{label:"L",width:"42",length:"24"},{label:"XL",width:"44",length:"25"},{label:"2XL",width:"46",length:"26"}]},26511:{label:"BioworldYouth",type:"shirt",sizes:[{label:"XS",width:"16",length:"21"},{label:"S",width:"17",length:"22.5"},{label:"M",width:"18",length:"24"},{label:"L",width:"19",length:"25"},{label:"XL",width:"20",length:"26.5"}]},23305:{label:"SportiqeDalyWomen",type:"pants",sizes:[{label:"XS",width:"28",length:"27 2/5"},{label:"S",width:"30",length:"28"},{label:"M",width:"32",length:"28 3/5"},{label:"L",width:"34",length:"29 1/4"},{label:"XL",width:"36",length:"29 4/5"}]},26479:{label:"MJCOpenLegPantMen",type:"pants",sizes:[{label:"S",width:"26-28",length:"30"},{label:"M",width:"28-30",length:"31"},{label:"L",width:"30-32",length:"31.5"},{label:"XL",width:"32-34",length:"32"},{label:"2XL",width:"34-36",length:"32.5"}]},26482:{label:"MJCJoggersMen",type:"pants",sizes:[{label:"S",width:"30-31",length:"31.25"},{label:"M",width:"32-33",length:"31.25"},{label:"L",width:"34-35",length:"31.25"},{label:"XL",width:"36-37",length:"31.25"},{label:"2XL",width:"38-39",length:"31.25"}]},26489:{label:"SportiqeMenComfy",type:"shirt",sizes:[{label:"S",width:"21",length:"27"},{label:"M",width:"22",length:"28"},{label:"L",width:"23",length:"29"},{label:"XL",width:"24",length:"30"},{label:"2XL",width:"25",length:"31"},{label:"3XL",width:"26",length:"32"}]},26492:{label:"SportiqeWomenComfy",type:"shirt",sizes:[{label:"S",width:"32",length:"25.5"},{label:"M",width:"34",length:"26"},{label:"L",width:"36",length:"26.5"},{label:"XL",width:"39",length:"27"},{label:"2XL",width:"42",length:"27.5"}]}});var _r=e=>{let{product:t}=e;const r=$r[t.sizeChart.code],{text:n}=(0,o.useLocalizer)();return(0,v.jsxs)(Nr,{children:[(0,v.jsx)(Zr,{children:(0,v.jsx)(fe.I,{assetPath:t.descriptionImage?t.descriptionImage.publicId:t.productImage.publicId,alt:t.name})}),(0,v.jsx)(Xr,{children:r?(0,v.jsxs)("tbody",{children:[(0,v.jsxs)("tr",{children:[(0,v.jsx)("th",{children:n("Size")}),(0,v.jsx)("th",{children:n("pants"===r?.type?"Waist":"Width")}),(0,v.jsx)("th",{children:n("pants"===r?.type?"Inseam":"Length")})]}),r.sizes.map((e=>(0,v.jsxs)("tr",{children:[(0,v.jsx)("td",{children:n(e.label)}),(0,v.jsxs)("td",{children:[e.width,'"']}),(0,v.jsxs)("td",{children:[e.length,'"']})]},e.label)))]}):(0,v.jsxs)("p",{children:[(0,v.jsx)(He.Z,{size:16})," Size chart unavailable."]})})]})};var Gr=e=>{const{product:t,purchaseOptions:r,errorMessage:n}=e,{text:i}=(0,o.useLocalizer)(),{query:s,locale:d}=(0,a.Z)(),c=d?.split("-")[0]??"en",{name:u,eshopDetails:h,topLevelCategory:g,platinumPoints:m}=t,{state:{isLoading:f,isDigitalProduct:b,isPurchasable:x,isMobileGame:w,buttonDisabled:y,promptLogin:j,buttonCopy:C,displayPrice:P,retailerSku:S},actions:{handleDirectDownloadClick:L,handleAddToCart:I}}=r,D=t.variations?.length&&!t.configurableProduct,O=(0,p.useMemo)((()=>t.variations?.find((e=>e?.product?.urlKey===s.slug))),[t,s]),z=O?.product.size?i("Size"):null,k=O?.label,T=z?`${z}: ${k}`:k;let E=null;"GAMES"===g?.code?E=i(b?"Digital":"Physical"):D&&!O?E=i("Starting at"):T&&(E=T);const A=(0,p.useMemo)((()=>D?()=>{window.scrollTo({top:0,behavior:"smooth"})}:I),[D,I]);return(0,v.jsx)(Bt,{children:(0,v.jsxs)(qt,{$hasError:!!n,children:[(0,v.jsx)(Vt,{forwardedAs:"p",variant:"h3",children:u}),(0,v.jsxs)(Ut,{children:[(0,v.jsxs)(Wt,{children:[E&&(0,v.jsx)(er,{$smallMargin:!O,children:E}),!w&&(Boolean(P.regPrice)||Boolean(m))&&(0,v.jsxs)(Kt,{children:[f&&(0,v.jsx)(Jt,{width:"100%"}),(0,v.jsx)(Yt,{$visible:!f,children:m?(0,v.jsxs)(rr,{gap:"0.5rem",justifyItems:"start",alignItems:"center",children:[(0,v.jsx)(nr,{}),(0,v.jsxs)(ir,{variant:"h2",children:[m," ",i("Platinum Points")]})]}):!(0,M.vS)(d)||b?(0,v.jsx)(Dt.P,{regPrice:P.regPrice,horizontal:!0,size:"medium",salePrice:P.salePrice,lang:c}):null})]})]}),(0,v.jsxs)("div",{children:[b?x&&(0,v.jsx)(tr,{onClick:L,icon:y||j?"":Ot.Z,isLoading:f,buttonWidth:"full",disabled:y,round:!0,size:"small",href:y?null:h?.purchaseUrl,children:"string"===typeof C?i(C):C}):(0,M.vS)(d)?(0,v.jsx)(l.Qc,{sku:S,name:t.name,type:"button-round"}):(0,v.jsx)(tr,{onClick:A,isLoading:f,disabled:y,icon:y||j?"":zt.Z,buttonWidth:"full",round:!0,size:"small",children:"string"===typeof C?i(C):C}),n&&(0,v.jsx)(lr,{variant:"legal",children:n})]})]})]})})}},12547:function(e,t,r){"use strict";var n=r(2784),i=r(60014);t.Z=(e,t,r,l)=>{const{actions:{openDrawer:a,closeDrawer:o,addOrUpdateDrawer:s,removeDrawer:d}}=(0,i.eV)(),{viewPortTopOffset:c=0,disableDrawers:u}=l||{},h=(0,n.useCallback)((e=>{e.forEach((e=>{const{target:t,boundingClientRect:r}=e,n=r?.top{u||e.forEach((e=>{s(e,r[e].drawer)}))}),[s,e,r,u]),(0,n.useEffect)((()=>{if(!u)return()=>{e.forEach((e=>{d(e)}))}}),[d,e,u]),(0,n.useLayoutEffect)((()=>{if(u)return;const r=new IntersectionObserver(h,{rootMargin:`-${c}px 0px 0px 0px`,threshold:1});return e.forEach((e=>{t[e].ref.current&&r.observe(t[e].ref.current)})),()=>{e.forEach((e=>{t[e].ref.current&&r.unobserve(t[e].ref.current)}))}}),[h,e,t,u,c])}},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"}}}]); //# sourceMappingURL=4165-56b4d8fa740dd2d6.js.map