"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3066],{45815:function(e,t,i){i.d(t,{uP:function(){return _},Kx:function(){return b},Z5:function(){return w},ig:function(){return P}});var r=i(2784),n=i(79685),l=i(65384),a=i(13675),s=i(21012),o=i(17788),d=i(7254),c=i(43791),u=i(83325);const p=(0,o.default)(d.R).withConfig({displayName:"OptionDisplaysstyles__StyledRadioDetailed",componentId:"sc-1nmdhxc-0"})(["margin-bottom:",";"],(e=>{let{theme:t}=e;return t.spacing[8]})),h=(0,o.default)(c.S).withConfig({displayName:"OptionDisplaysstyles__StyledSelectDetailed",componentId:"sc-1nmdhxc-1"})(["z-index:2;"]),g=((0,o.default)(u.Q).withConfig({displayName:"OptionDisplaysstyles__StyledQuantitySelector",componentId:"sc-1nmdhxc-2"})(["width:100%;"]),(0,o.default)(a.T).withConfig({displayName:"OptionDisplaysstyles__StyledText",componentId:"sc-1nmdhxc-3"})(["margin-bottom:",";"],(e=>{let{theme:t}=e;return t.spacing[8]})));var m=i(52322);const f=r.forwardRef((function(e,t){const{checked:i,onClick:r,href:n,onChange:a,product:s,variation:o}=e,{text:d,price:c}=(0,l.useLocalizer)();return(0,m.jsx)(p,{ref:t,caption:o.product.name,checked:i,discounted:o.product.prices?.minimum?.discounted,href:n,price:s.loadingPricing?null:c(o.product?.prices?.minimum?.finalPrice),regularPrice:s.loadingPricing?null:c(o.product?.prices?.minimum?.regularPrice),onChange:a,onClick:r,value:o.product.urlKey,name:o.product.name,label:o.product.nsuid?d("Digital"):d("Physical"),altContent:"\u2713"})}));function y(e){let{onChange:t,isBundle:i,product:r,title:o,value:d}=e;const{text:c}=(0,l.useLocalizer)();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(a.T,{variant:"legal",children:i?o:c("Select a product")}),(0,m.jsx)(s.S,{size:12}),(0,m.jsx)("div",{children:r.variations.map((e=>e.product.url?(0,m.jsx)(n.Z,{href:e.product.url,children:(0,m.jsx)(f,{checked:r.url===e.product.url,product:r,variation:e})},e.product.sku):(0,m.jsx)(f,{checked:d===e.id,product:r,variation:e,onChange:()=>t(e.id)},e.id)))})]})}y.defaultProps={onChange:()=>{}};var b=y,x=i(5632);var w=function(e){let{product:t}=e;const i=(0,x.useRouter)(),{text:n}=(0,l.useLocalizer)(),a=(0,r.useMemo)((()=>t.variations.map((e=>({label:e.product.nsuid?n("Digital"):n("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,n]);return(0,m.jsx)(h,{style:{zIndex:"100"},inputName:"select-a-product",inputLabel:n("Select a product"),onChange:e=>{i.push(e.urlKey)},options:a,showErrors:!1})},j=i(31523),v=i(96712),C=i(51228),S=i(29008);var P=function(e){let{onChange:t,isBundle:i,product:r,title:n,value:a}=e;const{text:o}=(0,l.useLocalizer)();return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(s.S,{size:24}),(0,m.jsxs)(j.G,{columns:2,alignItems:"end",children:[(0,m.jsx)(g,{variant:"legal",children:i?n:o("Select a product")}),r?.sizeChart&&(0,m.jsxs)(v.G,{justifySelf:"end",children:[(0,m.jsx)(C.L,{href:"#sizing",children:o("Size chart")}),(0,m.jsx)(s.S,{size:8})]})]}),(0,m.jsx)(s.S,{size:12}),(0,m.jsx)(S.um,{onChange:t,product:r,value:a})]})},L=i(66458);var _=function(e){let{product:t}=e;const{text:i}=(0,l.useLocalizer)(),{locale:r}=(0,x.useRouter)(),n=r?.split("-")[0]??"en";return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(s.S,{size:24}),(0,m.jsxs)(j.G,{columns:"144px 162px",rows:"48px",children:[t?.appStoreUrl&&(0,m.jsx)("a",{href:t.appStoreUrl,children:(0,m.jsx)(L.I,{assetPath:`/ncom/icons/app-store/app-store-badge-${n}`,alt:i("Download on the app store")})}),t?.googlePlayUrl&&(0,m.jsx)("a",{href:t.googlePlayUrl,children:(0,m.jsx)(L.I,{assetPath:`/ncom/icons/google-play/google-play-badge-${n}`,alt:i("Get it on Google Play")})})]})]})}},29008:function(e,t,i){i.d(t,{CL:function(){return D},jJ:function(){return E},VM:function(){return Ee},NR:function(){return Ze},jl:function(){return I},dn:function(){return nt},ww:function(){return Pt},Ym:function(){return mi},yL:function(){return ji},um:function(){return Ii},mW:function(){return Mi},Lx:function(){return Ti}});var r=i(68811),n=i(31523),l=i(13675),a=i(71444),s=i(5632),o=i(65384),d=i(17788);const c=d.default.div.withConfig({displayName:"Aboutstyles__About",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({displayName:"Aboutstyles__AboutItem",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:",";"],(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")),p=(0,d.default)(a.bs).withConfig({displayName:"Aboutstyles__AboutRating",componentId:"sc-1m8mxjv-2"})(["padding:",";background:",";box-shadow:0 4px 16px 0 rgba(60,64,89,0.15);text-align:left;margin-bottom:",";"],(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]}));var h=i(2784),g=i(61921),m=i(70103),f=i(38463),y=i(33594),b=i(3810),x=i(2099);const w=d.default.div.withConfig({displayName:"PlayModestyles__PlayMode",componentId:"sc-16atj0u-0"})(["display:grid;grid-template-columns:1fr;justify-content:center;p{font-weight:700;}"]),j=d.default.div.withConfig({displayName:"PlayModestyles__PlayModeIcon",componentId:"sc-16atj0u-1"})([""," padding:",";display:grid;justify-content:center;box-shadow:0 4px 16px 0 rgba(60,64,89,0.15);border-radius:4px;"],(e=>{let{theme:t}=e;return(0,d.css)(["background:",";color:",";"],(e=>{let{supported:i}=e;return i?t.color.darkGray2:t.color.lightGray2}),t.color.white)}),(e=>{let{theme:t}=e;return t.spacing[16]}));var v=i(52322);const C="TABLETOP",S="TV",P="HANDHELD",L={[C]:g.Z,[S]:m.Z,[P]:f.Z},_={[C]:y.Z,[S]:b.Z,[P]:x.Z},O=e=>{const{mode:t,iconSize:i,supported:r,title:n}=e,l=r?L[t]:_[t];return(0,v.jsxs)(w,{children:[(0,v.jsx)(j,{supported:r,children:(0,v.jsx)(l,{size:i})}),(0,v.jsx)("p",{children:n})]})};O.defaultProps={supported:!1,iconName:"tv-mode",iconSize:48,title:"tv-mode"};var I=O;var D=e=>{let{product:t}=e;const{locale:i}=(0,s.useRouter)(),{text:d}=(0,o.useLocalizer)(),h=t.playModes?.map((e=>e.code));return(0,v.jsxs)(a.$0,{constrained:!0,id:"about","aria-labelledby":"product-info",small:!0,children:[null!=t.contentRating||h?.length?(0,v.jsxs)(c,{children:[null!=t.contentRating&&(0,v.jsxs)(u,{solo:!h?.length,children:[(0,v.jsx)(r.H,{variant:"h4",children:d("ESRB rating")}),(0,v.jsx)(p,{rating:t.contentRating,descriptors:t.contentDescriptors,locale:i})]}),h?.length>0&&(0,v.jsxs)(u,{solo:!t.contentRating,children:[(0,v.jsx)(r.H,{variant:"h4",children:d("Supported play modes")}),(0,v.jsxs)(n.G,{columns:3,width:"100%",gap:"24px",children:[(0,v.jsx)(I,{supported:h?.includes("TV_MODE"),title:d("TV"),mode:S}),(0,v.jsx)(I,{supported:h?.includes("TABLETOP_MODE"),title:d("Tabletop"),mode:C}),(0,v.jsx)(I,{supported:h?.includes("HANDHELD_MODE"),title:d("Handheld"),mode:P})]}),!h?.includes("HANDHELD_MODE")&&(0,v.jsx)(l.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)(Pt,{product:t})]})},k=i(95144),z=i(31214),N=i(28623),M=i(67406);const T=d.default.div.withConfig({displayName:"DlcRailstyles__RailBG",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 R=i(11413);var E=e=>{let{product:t,locale:i}=e;const{text:n}=(0,o.useLocalizer)(),{trackViewItemList:l}=(0,o.useAnalytics)(),s=(0,h.useMemo)((()=>t.relatedProducts.slice(0,4).map(R.Z)),[t.relatedProducts]);return(0,M.nw)((()=>{l(s,(0,M.DW)({name:n("Downloadable content (DLC)")}))})),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(a.He,{small:!0,children:t.relatedProducts.length>4?(0,v.jsx)(k.H,{ctaType:"iconlink",headingProps:{variant:"h1"},ctaText:n("See all"),ctaUrl:t.urlKey+"/dlc/",locale:i,children:n("Downloadable content (DLC)")}):(0,v.jsx)(r.H,{variant:"h1",children:n("Downloadable content (DLC)")})}),(0,v.jsx)(T,{bgColor:"#"+t.backgroundColor,children:(0,v.jsx)(a.He,{small:!0,children:(0,v.jsx)(r.H.NewLevel,{children:(0,v.jsx)(z.R,{endCtaUrl:t.relatedProducts.length>4?t.urlKey+"/dlc/":"",endCtaText:n("See all"),locale:i,contained:!0,children:s.map(((e,t)=>(0,v.jsx)(N.I8,{artPath:e.artPath,availability:e.availability,dlcType:e.dlcType,isSalableQty:e.isSalableQty,nsuid:e.nsuid,productTitle:e.name,prices:e.prices,platform:e.platform,platformCode:e.platformCode,sku:e.sku,urlKey:e.urlKey,imageProps:{showplaceholder:!0,lazyload:!0}},e.name+t)))})})})})]})},A=i(95235),H=i(82360),X=i(76348),G=i(4047),Z=i(11288),Q=i(21012),B=i(35440),$=i(35063),q=i(88588),F=i(21369),U=i(96712),W=i(79685),K=i(87136),V=i(5119),Y=i(72354),J=i(83325),ee=i(44914),te=i(51228),ie=i(12873);const re=(0,d.default)(J.Q).withConfig({displayName:"PurchaseOptionsstyles__QuantitySelector",componentId:"sc-10vf2cu-0"})(["height:100%;font-weight:bold;"]),ne=d.default.div.withConfig({displayName:"PurchaseOptionsstyles__Pricing",componentId:"sc-10vf2cu-1"})(["display:flex;flex-direction:row;align-items:center;justify-content:space-between;"]),le=(0,d.default)(ee.S).withConfig({displayName:"PurchaseOptionsstyles__PriceSkeleton",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})),ae=d.default.div.withConfig({displayName:"PurchaseOptionsstyles__GoldPoints",componentId:"sc-10vf2cu-3"})(["display:flex;gap:",";align-items:center;img{max-width:100%;}"],(e=>{let{theme:t}=e;return t.spacing[8]})),se=d.default.span.withConfig({displayName:"PurchaseOptionsstyles__GoldPointsAmount",componentId:"sc-10vf2cu-4"})(["font-weight:",";"],(e=>{let{theme:t}=e;return t.font.weight.bold})),oe=(d.default.span.withConfig({displayName:"PurchaseOptionsstyles__LimitReachedText",componentId:"sc-10vf2cu-5"})(["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)(te.L).withConfig({displayName:"PurchaseOptionsstyles__Link",componentId:"sc-10vf2cu-6"})(["display:inline !important;span{font-size:",";}"],(e=>{let{theme:t}=e;return t.font.size.captionMobile}))),de=(0,d.default)(l.T).withConfig({displayName:"PurchaseOptionsstyles__Text",componentId:"sc-10vf2cu-7"})(["line-height:1.5;"]),ce=(0,d.default)(ie.B).withConfig({displayName:"PurchaseOptionsstyles__WrappingButton",componentId:"sc-10vf2cu-8"})(["white-space:pre-wrap;"]),ue=(0,d.default)(B.S).withConfig({displayName:"PurchaseOptionsstyles__StyledStatusLabel",componentId:"sc-10vf2cu-9"})(["width:max-content;"]),pe=d.default.span.withConfig({displayName:"PurchaseOptionsstyles__HelperText",componentId:"sc-10vf2cu-10"})(["font-weight:",";"],(e=>{let{boldHelperText:t}=e;return t?700:"initial"})),he=d.default.div.withConfig({displayName:"PurchaseOptionsstyles__BundleConfigOptions",componentId:"sc-10vf2cu-11"})(["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]}));function ge(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function me(e){for(var t=1;t{const{locale:t}=(0,s.useRouter)(),i=(0,o.useMaintenance)(),r=(0,o.useAccounts)(),n=(0,o.useCart)(),{trackAddToCart:l}=(0,o.useAnalytics)(),a=(0,o.useCustomer)(),{text:d,price:c,date:u}=(0,o.useLocalizer)(),{availability:p,bundleItems:g,nsuid:m,requiresSubscription:f,sku:y,requiresCoupon:b,requiresLogin:x,platinumPoints:w,eshopDetails:j,prePurchase:C,prices:S,loadingPricing:P,productType:L,isSalableQty:_,releaseDate:O,releaseDateDisplay:I,soldOutPermanent:D,isPreorderable:k,variations:z,voucherNsuid:N,startShippingDate:T,shipDateDisplay:R}=e,E=P||n?.loading||n?.updating||i?.loading,{0:A,1:H}=(0,h.useState)(!1),{0:X,1:G}=(0,h.useState)(1),{0:Z,1:Q}=(0,h.useState)({}),B=(0,V.u)(),$="MOBILE"===m,q="BUNDLE"===L,F="CONFIGURABLE"===L,U=Boolean(m),W=g?.every((e=>{let{required:t,title:i}=e;return t&&!!Z[i]}));(0,h.useEffect)((()=>{if(q){const e=g?.reduce(((e,t)=>{let{options:i,title:r}=t;const n=i.length>1?i?.find((e=>{let{isDefault:t}=e;return t})):i[0];return me(me({},e),{},{[r]:n?.id})}),{});Q(e)}}),[q,g]);const K=(p?.includes(d("Pre-order"))||p?.includes(d("Available now"))||_||C)&&!$,{consentedGroups:J}=(0,o.useCookies)(),ee=(0,h.useMemo)((()=>{const i=J?.has(o.ConsentGroups.PERFORMANCE);if(!i||!Y.HN.has(t))return null;if(m&&z?.length){const e=z.find((e=>!e.product?.nsuid));if(e)return e.product.sku}const r=e.softwarePublisher?.includes("Nintendo");return!m||(0,M.vS)(t)&&r?y:null}),[J,t,m,y,z,e.softwarePublisher]),te=a?.data?.membershipStatus.active,ie=n?.addableQty(e),re=X>=ie,ne=!_&&!$,le=(f||w||x)&&!r.isLoggedIn,ae=f&&!te,{buttonDisabled:se,promptLogin:de,disableQuantity:ce,buttonCopy:ue,helperText:pe,boldHelperText:he}=(0,h.useMemo)((()=>{if($)return{};let e="",r="",n=!1,l=!1,a=U,s=!1,o=i?.store?.active;const c=(0,v.jsx)(oe,{href:"/store/products/nintendo-switch-game-vouchers/",locale:!0,children:d("Learn more about vouchers")}),p=(0,v.jsx)(oe,{href:"/switch/online/",children:d("Nintendo Switch Online membership")});if(f&&(r=d("Paid {0} required for purchase.",{args:[p]})),U)i?.eshop?.active?(n=!0,r=d("Direct downloads are not possible during maintenance"),s=!0,e="Direct download"):le?(e="Log in to purchase",l=!0):ae?(s=!0,e="Direct download"):j?.isPreordered?(s=!0,e="Already pre-ordered"):j?.isPurchased?(s=!0,e="Already downloaded"):j?.isPreorderable?(e="Pre-order",r=N?d("Pre-order or redeem a Game Voucher to pre-load this game and start playing as soon as it\u2019s released. {0}",{args:[c]}):d("This lets you pre-load the game, so you'll be able to play as soon as the game is released.")):j?.isPurchasable?0==S?.minimum?.finalPrice?e="Free download":N?(e="Direct download",r=d("This item will be sent to your system automatically after purchase or Nintendo Switch Game Voucher redemption. {0}",{args:[c]})):(e="Direct download",r="This item will be sent to your system automatically after purchase."):(s=!0,I?e=d("Releases {0}",{args:[I]}):Date.now()({regPrice:Boolean(I)&&!C?null:c(S?.minimum?.regularPrice,{formatZero:!0}),salePrice:S?.minimum?.discounted?c(S?.minimum?.finalPrice):""})),[I,C,S,c]),fe=(0,h.useCallback)((()=>{if(de)r.promptLogin();else{const i="string"===typeof ue?ue:"CTA";l(e),B.trackEvent({eventName:`PDP: ${i} Clicked`,objectId:y,isConversion:!0},t)}}),[de,ue,t,y,B,l,r,e]),ye=(0,h.useCallback)((i=>{if(de)r.promptLogin();else{if(!e.requiresCoupon||i)return l(e),B.addToCart(y,{eventName:"PDP: Add to Cart Clicked",locale:t}),n.addProduct(e,{couponCode:i?.trim(),selectedOptions:Object.values(Z),quantity:X});H(!0)}}),[y,de,B,r,n,e,X,t,l,Z]);return(0,h.useMemo)((()=>({state:{isLoading:E,quantity:X,isMobileGame:$,isDigitalProduct:U,isPurchasable:K,isConfigurableProduct:F,retailerSku:ee,membershipRequired:ae,addableQty:ie,itemLimitReached:re,soldOut:ne,loginToPurchase:le,buttonDisabled:se,promptLogin:de,disableQuantity:ce,buttonCopy:ue,helperText:pe,boldHelperText:he,displayPrice:ge,showRedemptionCodeModal:A,selectedOptionsByTitle:Z},actions:{setQuantity:G,setSelectedOptionsByTitle:Q,handleDirectDownloadClick:fe,handleAddToCart:ye,setShowRedemptionCodeModal:H}})),[E,X,$,U,K,F,ee,ae,ie,re,ne,le,se,de,ce,ue,pe,he,ge,G,fe,ye,A,H,Z,Q])},ye=i(97729),be=i.n(ye),xe=i(49196),we=i(66458);const je=d.default.section.withConfig({displayName:"Herostyles__HeroSection",componentId:"sc-1i9d4nw-0"})(["background-color:",";position:relative;z-index:1;"],(e=>e.bgColor?e.bgColor:e=>{let{theme:t}=e;return t.color.lightGray4})),ve=d.default.div.withConfig({displayName:"Herostyles__Hero",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]})),Ce=d.default.div.withConfig({displayName:"Herostyles__GallerySide",componentId:"sc-1i9d4nw-2"})(["overflow:hidden;"]),Se=d.default.div.withConfig({displayName:"Herostyles__ChokingHazard",componentId:"sc-1i9d4nw-3"})(["display:flex;flex-direction:column;"]),Pe=d.default.div.withConfig({displayName:"Herostyles__BreadCrumbContainer",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})),Le=(0,d.default)(xe.D).withConfig({displayName:"Herostyles__StyledIconLink",componentId:"sc-1i9d4nw-5"})(["margin:0;padding:0;border:none;"]),_e=d.default.div.withConfig({displayName:"Herostyles__ExtraLinks",componentId:"sc-1i9d4nw-6"})(["display:flex;justify-content:left;gap:",";"],(e=>{let{theme:t}=e;return t.spacing[16]})),Oe=(0,d.default)(a.He).withConfig({displayName:"Herostyles__MediaGalleryWrapper",componentId:"sc-1i9d4nw-7"})(["",""],(e=>{let{theme:t}=e;return(0,d.css)(["","{width:100%;}"],t.mediaQuery.tablet)})),Ie=d.default.div.withConfig({displayName:"Herostyles__Warnings",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])})),De=d.default.div.withConfig({displayName:"Herostyles__HeroInfo",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%;display:flex;}","{padding:0;}"],t.spacing[16],t.spacing[16],t.spacing[16],t.mediaQuery.tablet)})),ke=((0,d.default)(we.I).withConfig({displayName:"Herostyles__WarningImg",componentId:"sc-1i9d4nw-10"})(["max-width:215px;"]),(0,d.default)(we.I).withConfig({displayName:"Herostyles__RequiredImage",componentId:"sc-1i9d4nw-11"})(["img{border-radius:",";}"],(e=>{let{theme:t}=e;return t.borderRadius}))),ze=d.default.div.withConfig({displayName:"Herostyles__ShowDesktop",componentId:"sc-1i9d4nw-12"})(["display:none;","{display:block;}"],(e=>{let{theme:t}=e;return t.mediaQuery.tablet})),Ne=d.default.div.withConfig({displayName:"Herostyles__ShowMobile",componentId:"sc-1i9d4nw-13"})(["display:block;","{display:none;}"],(e=>{let{theme:t}=e;return t.mediaQuery.tablet})),Me=d.default.div.withConfig({displayName:"Herostyles__PlatformContainer",componentId:"sc-1i9d4nw-14"})(["display:flex;gap:",";"],(e=>{let{theme:t}=e;return t.spacing[16]}));d.default.span.withConfig({displayName:"Herostyles__Tag",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 Te(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function Re(e){for(var t=1;t{const e=[{href:"/store/",label:d("Store")}];if(t.topLevelCategory){const i=t.topLevelCategory.code.toLowerCase().replace(/ /g,"-");e.push({href:`/store/${i}/`,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:i}=e;return(0,v.jsx)(W.Z,{href:t,children:(0,v.jsx)("a",{children:i})},t)}))}),[t,d]),y=(0,h.useMemo)((()=>[t.productImage&&Re({},t.productImage),...t.productGallery??[]].filter((e=>["image","video"].includes(e?.resourceType))).map(((e,i)=>{let{publicId:r,resourceType:n}=e;return"image"===n?(0,v.jsx)(H.K,{assetPath:r,alt:`${t.name} ${i+1}`},r):"video"===n?(0,v.jsx)(X.V,{assetPath:r},r):void 0}))),[t]);return(0,v.jsx)(je,{bgColor:t.backgroundColor?`#${t.backgroundColor}`:K.rG[m],children:(0,v.jsxs)(ve,{children:[(0,v.jsx)(Pe,{children:(0,v.jsx)(G.B,{currentPage:`/store/products/${t.urlKey}/`,children:f})}),(0,v.jsxs)(Ce,{children:[(0,v.jsxs)("div",{children:[(0,v.jsx)(Oe,{children:(0,v.jsx)(Z.M,{ariaLabel:t.name+" gallery",showLoader:!1,inInitialViewport:!0,Head:be(),children:y},t.sku)}),(0,v.jsx)(Q.S,{size:8}),(0,v.jsx)(ze,{children:(0,v.jsx)(Q.S,{size:16})})]}),(t.platinumPoints||t.exclusive||t.requiresSubscription||t.voucherNsuid)&&(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)(Ie,{children:[t.platinumPoints&&(0,v.jsx)(B.S,{backgroundColor:"#fde6e7",foregroundColor:"#ac000d",children:d("My Nintendo Reward")}),t.exclusive&&(0,v.jsx)(B.S,{backgroundColor:"#fde6e7",foregroundColor:"#ac000d",children:d("Exclusive")}),t.requiresSubscription&&(0,v.jsx)(B.S,{backgroundColor:"#fde6e7",foregroundColor:"#ac000d",children:d("Nintendo Switch Online required")}),t.voucherNsuid&&(0,v.jsx)(B.S,{backgroundColor:"#fde6e7",foregroundColor:"#ac000d",children:d("Game Voucher eligible")})]})}),null!=t.contentRating&&(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(ze,{children:(0,v.jsx)(a.bs,{rating:t.contentRating,descriptors:t.contentDescriptors})})}),(0,v.jsxs)(ze,{children:[(0,v.jsx)(Q.S,{size:24}),t.displayChokingHazard?(0,v.jsxs)(Se,{children:[(0,v.jsxs)(r.H,{variant:"h3",as:"strong",children:[d("Warning:")," ",(0,v.jsx)("br",{})]}),(0,v.jsxs)(l.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)(a.Ho,{textVariant:"legal",data:t.topLegalDisclaimer}):null]})]}),(0,v.jsxs)(De,{children:[(0,v.jsxs)(Me,{children:[t.dlcType&&"ROM_BUNDLE"!=t.dlcType.code&&(0,v.jsx)(B.S,{backgroundColor:"#3946a0",foregroundColor:"#fff",children:"DLC"}),(0,v.jsx)($.P,{accentColor:K.rG[m],children:"GAMES"===t.topLevelCategory?.code?p:t.topLevelCategory?.label})]}),(0,v.jsx)(Q.S,{size:24}),(0,v.jsx)(r.H,{variant:"h1",children:t.name}),g&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Q.S,{size:16}),(0,v.jsx)(l.T,{variant:"caption",children:d("Releases {0}",{args:[t.releaseDateDisplay?t.releaseDateDisplay:i(t.releaseDate,{format:{day:"numeric",month:"numeric",year:"2-digit"}})]})}),(0,v.jsx)(Q.S,{size:8})]}),(t.relatedProducts?.length>0||t.demoNsuid)&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Q.S,{size:24}),(0,v.jsxs)(_e,{children:[t.relatedProducts.length>0&&(0,v.jsx)("div",{children:(0,v.jsx)(Le,{href:"#dlc",icon:q.Z,locale:c,children:d("View DLC")})}),t.demoNsuid&&(0,v.jsx)(a.g,{product:t})]}),(0,v.jsx)(Q.S,{size:24})]}),(0,v.jsx)(mi,{product:t,purchaseOptions:u}),t.baseSoftware?.length?t.dlcType&&"ROM_BUNDLE"!=t.dlcType.code&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Q.S,{size:20}),(0,v.jsx)(W.Z,{href:t.baseSoftware[0].urlKey,children:(0,v.jsx)("a",{children:(0,v.jsxs)(n.G,{columns:"1fr 4fr",gap:F.d.spacing[8],alignItems:"center",children:[(0,v.jsx)(U.G,{column:"span 2",children:(0,v.jsx)(l.T,{variant:"legal",children:d("Required to play:")})}),(0,v.jsx)(ke,{assetPath:t.baseSoftware[0].productImage.publicId,alt:t.baseSoftware[0].name}),(0,v.jsx)(l.T,{variant:"caption",children:t.baseSoftware[0].name})]})})})]}):null,(0,v.jsxs)(Ne,{children:[(0,v.jsx)(Q.S,{size:24}),t.displayChokingHazard?(0,v.jsxs)(Se,{children:[(0,v.jsxs)(r.H,{variant:"h3",as:"strong",children:[d("Warning:")," ",(0,v.jsx)("br",{})]}),(0,v.jsxs)(l.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)(a.Ho,{data:t.topLegalDisclaimer}):null]})]})]})})},Ae=i(26581);const He=d.default.div.withConfig({displayName:"NSOStorystyles__Story",componentId:"sc-jla5jl-0"})(["",""],(e=>{let{theme:t}=e;return(0,d.css)(["background:",";border-radius:4px;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.spacing[32]}),t.mediaQuery.tablet,(e=>{let{theme:t}=e;return t.spacing[32]}))})),Xe=d.default.div.withConfig({displayName:"NSOStorystyles__StoryContent",componentId:"sc-jla5jl-1"})(["p{font-weight:700;a{margin:0 ",";}}"],(e=>{let{theme:t}=e;return t.spacing[8]})),Ge=d.default.p.withConfig({displayName:"NSOStorystyles__EmphasizedContent",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 Ze=e=>{let{product:t}=e;const{text:i}=(0,o.useLocalizer)(),{locale:r}=(0,s.useRouter)(),n="/switch/online/";return t.nsoFeatures?(0,v.jsx)(a.$0,{constrained:!0,small:!0,children:(0,v.jsxs)(He,{children:[(0,v.jsxs)(Xe,{children:[(0,v.jsx)(Ae.Z,{size:200}),(0,v.jsx)(Ge,{children:i("Play online, access classic NES\u2122 and Super NES\u2122 games, and more with a Nintendo Switch Online membership.")}),(0,v.jsxs)("p",{children:[i("This game supports:"),t.nsoFeatures?.map((e=>(0,v.jsxs)("span",{children:["ONLINE_PLAY"==e.code&&(0,v.jsx)(te.L,{href:n,children:i("Online Play")},"online-play"),"SAVE_DATA_CLOUD"==e.code&&(0,v.jsx)(te.L,{href:n,children:i("Save Data Cloud")},"save-data")]},e.code)))]}),(0,v.jsx)(ie.B,{href:n,buttonWidth:"auto",locale:r,children:i("Learn more")})]}),(0,v.jsx)("div",{className:"storyAsset",children:(0,v.jsx)(we.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:i("Nintendo Switch Pro Controller")})})]})}):(0,v.jsx)(v.Fragment,{})},Qe=i(79820),Be=i(79102),$e=i(71007),qe=i(77064),Fe=i(78098);const Ue=(0,d.default)(a.$0).withConfig({displayName:"ProductDetailstyles__ReadMoreSection",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]})),We=d.default.div.withConfig({displayName:"ProductDetailstyles__legal",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)})),Ke=d.default.div.withConfig({displayName:"ProductDetailstyles__PropSixFive",componentId:"sc-4l5ex7-2"})(["display:flex;align-items:baseline;gap:0.25rem;"]),Ve=d.default.div.withConfig({displayName:"ProductDetailstyles__DescrImageContainer",componentId:"sc-4l5ex7-3"})(["display:block;justify-content:center;img{max-height:24em;object-fit:contain;}"]),Ye=d.default.div.withConfig({displayName:"ProductDetailstyles__Grid",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)})),Je=d.default.section.withConfig({displayName:"ProductDetailstyles__AgeGateLoadingContainer",componentId:"sc-4l5ex7-5"})(["padding:1rem;"]);function et(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function tt(e){for(var t=1;t0,b=(0,o.useRecentlyViewed)(),{trackViewItem:x}=(0,o.useAnalytics)(),{0:w,1:j}=(0,h.useState)(!1),C=i.ageGate||i.contentRating?.requiresAgeGate,S=rt.get(),[P,L]=m.split("-"),_=i.officialSite?.startsWith("http")?i.officialSite:`//${i.officialSite}`,O=i.relatedArticles,I=(0,h.useMemo)((()=>{const e=[];return Y.wh.has(m)&&(i.upsellProducts?.length&&e.push({heading:u("Related items to explore"),products:i.upsellProducts.slice(0,16).map(R.Z)}),i.crossSellProducts?.length&&e.push({heading:u("More like this"),products:i.crossSellProducts.slice(0,16).map(R.Z)}),c?.length&&e.push({heading:u("Digital best sellers"),products:c.map(R.Z)})),e}),[i.upsellProducts,i.crossSellProducts,c,u,m]);return(0,Fe.r)(),(0,h.useEffect)((()=>{b.addProduct&&!w&&(j(!0),i.edition?b.addProduct(i):b.addProduct(i.configurableProduct||i))}),[b,i,w]),(0,M.nw)((()=>x(i,(0,M.DW)({name:i.name})))),C&&f.loading?(0,v.jsx)(Je,{}):(0,v.jsxs)(Qe.A,{passed:"true"===S&&!f.data?.isChild||!C,failed:(f.data?.isChild||"false"===S)&&C,onSuccess:()=>rt.set("true",it),onFailure:()=>rt.set("false",it),lang:P,country:L,children:[(0,v.jsx)(Ee,{product:i}),"BUNDLE"===i.productType&&(0,v.jsxs)(a.$0,{constrained:!0,small:!0,children:[(0,v.jsx)(Q.S,{size:24}),(0,v.jsx)(r.H,{variant:"h1",children:u("Included in this bundle")}),(0,v.jsx)(z.R,{contained:!0,children:i.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,i=e.options.length>1?t.variations:[];return(0,h.createElement)(N.I8,tt(tt({},t),{},{isSalableQty:e.options.some((e=>e?.product?.isSalableQty)),variations:i,artPath:t?.productImage?.publicId,platform:t?.platform?.label,platformCode:t?.platform?.code,key:t.sku,showRating:!0}))}))})]}),(0,v.jsxs)(r.H.NewLevel,{children:[d&&(0,v.jsx)(Ue,{constrained:!0,small:!0,children:(0,v.jsxs)(Ye,{children:[(0,v.jsxs)("div",{children:[i.headline&&(0,v.jsx)(r.H,{children:i.headline}),(0,v.jsx)(ji,{maxLines:10,description:i.description,category:i.topLevelCategory}),i.officialSite&&(0,v.jsx)("a",{href:_,target:"_blank",rel:"noopener noreferrer",children:(0,v.jsx)(ie.B,{children:u("Explore this game's official website")})})]}),(i.descriptionImage||i.productImage)&&(0,v.jsx)(Ve,{children:(0,v.jsx)("div",{children:(0,v.jsx)(we.I,{assetPath:i.descriptionImage?i.descriptionImage.publicId:i.productImage.publicId,alt:i.name})})})]})}),n?.asset?.primary?.assetPath?(0,v.jsx)(a.$0,{constrained:!0,small:!0,background:n.background?.backgroundType,children:(0,v.jsx)(a.tm,{content:{assetPath:n.asset?.primary?.assetPath,assetPathAlt:n.asset?.alt,cta:n.ctaList[0],description:n.description,heading:n.heading,modifiers:n.modifiers}})}):null,t,O?.length>0&&m===Y.ZW&&(0,v.jsxs)(a.$0,{constrained:!0,small:!0,children:[(0,v.jsx)(k.H,{ctaText:u("Finding this content helpful?"),ctaType:"iconlink",ctaUrl:"https://nintendoofamerica.co1.qualtrics.com/jfe/form/SV_ahCL4zK2P7j2q3k",icon:Be.Z,ctaTarget:"_blank",children:u("Related news and events")}),(0,v.jsx)(Q.S,{size:16}),(0,v.jsx)(z.R,{contained:!0,children:O.map((e=>{let{id:t,url:i,title:r,media:n,publishDate:l}=e;return(0,v.jsx)($e.N,{articleLink:i,articleTitle:r,artPath:n?.publicId,publishDate:p(l,{format:g.SHORT}),readMoreLabel:u("Read more"),size:"small"},t)}))})]}),(0,v.jsx)(D,{product:i,locale:m}),i.sizeChart&&(0,v.jsxs)(a.$0,{id:"sizing",constrained:!0,background:F.d.color.lightGray4,small:!0,children:[(0,v.jsx)("h2",{children:u("Size chart")}),(0,v.jsx)(Mi,{product:i})]}),(0,v.jsx)(Ze,{product:i}),y?(0,v.jsx)(a.$0,{id:"dlc",small:!0,children:(0,v.jsx)(E,{product:i,locale:m})}):null,(0,v.jsx)(a.$0,{small:!0,constrained:!0,marginBottom:16,children:(0,v.jsx)(a.$3,{collections:I})}),(0,v.jsx)(a.HU,{currentSku:i.edition?i.sku:i.configurableProduct?.sku||i.sku,small:!0}),(0,v.jsxs)(a.$0,{id:"legal",constrained:!0,small:!0,children:["GAMES"===i.topLevelCategory?.code&&(0,v.jsx)(l.T,{variant:"legal",children:u("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.")}),(0,v.jsx)(We,{dangerouslySetInnerHTML:{__html:i.disclaimer}}),i.displayProp65&&(0,v.jsxs)(We,{children:[(0,v.jsxs)(Ke,{children:[(0,v.jsx)(qe.Z,{size:16}),(0,v.jsx)(r.H,{variant:"h3",children:u("Warning:")})," ",u("Cancer and reproductive harm.")]}),(0,v.jsx)(te.L,{href:"https://www.p65warnings.ca.gov/",children:(0,v.jsx)("a",{children:"p65warnings.ca.gov"})})]})]})]})]})}var lt=i(71613),at=i(49446),st=i(33120),ot=i(21203),dt=i(85792),ct=i(25338),ut=i(46488),pt=i(24123),ht=i(32687),gt=i(44835),mt=i(64684),ft=i(74390),yt=i(3310);const bt=d.default.div.withConfig({displayName:"ProductInfostyles__InfoSection",componentId:"sc-1237z5p-0"})(["margin:"," 0;"],(e=>{let{theme:t}=e;return t.spacing[32]})),xt=d.default.div.withConfig({displayName:"ProductInfostyles__InfoRow",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({displayName:"ProductInfostyles__InfoDescr",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]})),jt=(d.default.div.withConfig({displayName:"ProductInfostyles__PlayModeIcon",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({displayName:"ProductInfostyles__Test",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]})),{[Y.bA]:yt.w.attribute,[Y.oV]:yt.v.attribute}),vt=e=>{let{icon:t,heading:i,descriptions:n}=e;return(0,v.jsxs)(xt,{children:[t,(0,v.jsx)(r.H,{variant:"h3",children:i}),(0,v.jsx)(wt,{children:n.map((e=>(0,v.jsx)("div",{children:e.href?(0,v.jsx)(te.L,{href:e.href,localeOverride:!1,children:e.label}):e.label},e.label)))})]})},Ct=(e,t,i)=>{let r=[];return t.playersMax&&r.push(St(i("Single System"),t.playersMin,t.playersMax,{searchPrefix:e,text:i})),t.playersMaxLocal&&r.push(St(i("Local wireless"),t.playersMinLocal,t.playersMaxLocal,{searchPrefix:e,text:i})),t.playersMaxOnline&&r.push(St(i("Online"),t.playersMinOnline,t.playersMaxOnline,{searchPrefix:e,text:i})),r},St=(e,t,i,r)=>{const{searchPrefix:n,text:l}=r,a=parseInt(i||t),s=1===a?l("Single Player"):a>3?"4+":`${a}+`;return{href:`${n}#cat=gme&f=playerCount&playerCount=${encodeURIComponent(s)}`,label:e+" ("+(t!=i?t+"-":"")+(i||"")+")"}};var Pt=e=>{let{product:t}=e;const{locale:i}=(0,s.useRouter)(),{date:l,DateFormat:a,text:d}=(0,o.useLocalizer)(),c=(0,ft.m7)(i),u=jt[i]||"esrbRating",p=t.genres?.map((e=>({href:`${c}#cat=gme&f=genres&genres=${encodeURIComponent(e.label)}`,label:e.label}))),h=t.playModes?.map((e=>d(e.label))),g=Ct(c,t,d);return(0,v.jsxs)(bt,{children:[(0,v.jsx)(lt.S,{id:"product-info",children:(0,v.jsx)(r.H,{children:d("Product information")})}),(0,v.jsx)(r.H.NewLevel,{children:(0,v.jsxs)(n.G,{columns:1,gap:0,children:[t.releaseDate&&(0,v.jsx)(vt,{icon:(0,v.jsx)(at.Z,{size:28}),heading:d("Release date"),descriptions:[{label:t.releaseDateDisplay?t.releaseDateDisplay:l(t.releaseDate,{format:a.LONG})}]}),t.playersMax&&(0,v.jsx)(vt,{icon:(0,v.jsx)(st.Z,{size:28}),heading:d("No. of players"),descriptions:g}),t.genres&&(0,v.jsx)(vt,{icon:(0,v.jsx)(ot.Z,{size:28}),heading:d("Genre"),descriptions:p}),t.softwarePublisher&&(0,v.jsx)(vt,{icon:(0,v.jsx)(dt.Z,{size:28}),heading:d("Publisher"),descriptions:[{href:`${c}#cat=gme&f=softwarePublisher&softwarePublisher=${encodeURIComponent(t.softwarePublisher)}`,label:t.softwarePublisher}]}),null!=t.contentRating&&(0,v.jsx)(vt,{icon:(0,v.jsx)(ct.Z,{size:28}),heading:d("ESRB rating"),descriptions:[{href:`${c}#cat=gme&sort=df&f=${u}&${u}=${encodeURIComponent(t.contentRating.code?.toUpperCase())}`,label:t.contentRating.label}]}),t.playModes&&(0,v.jsx)(vt,{icon:(0,v.jsx)(ut.Z,{size:28}),heading:d("Supported play modes"),descriptions:[{label:h.join(", ")}]}),t.romFileSize&&(0,v.jsx)(vt,{icon:(0,v.jsx)(pt.Z,{size:28}),heading:d("Game file size"),descriptions:[{label:(0,ft.jb)(t.romFileSize)}]}),t.supportedLanguages&&(0,v.jsx)(vt,{icon:(0,v.jsx)(ht.Z,{size:28}),heading:d("Supported languages"),descriptions:[{label:t.supportedLanguages?.map(d).join(", ")}]}),t.countryOfOrigin&&(0,v.jsx)(vt,{icon:(0,v.jsx)(ht.Z,{size:28}),heading:d("Country of origin"),descriptions:[{label:t.countryOfOrigin}]}),t.manufacturer&&(0,v.jsx)(vt,{icon:(0,v.jsx)(dt.Z,{size:28}),heading:d("Manufacturer"),descriptions:[{href:`${c}#q=${encodeURIComponent(t.manufacturer)}&p=1&cat=merch&sort=df`,label:t.manufacturer}]}),t.sku&&!t.nsuid&&(0,v.jsx)(vt,{icon:(0,v.jsx)(gt.Z,{size:28}),heading:d("SKU"),descriptions:[{label:t.sku}]}),t.upc&&!t.nsuid&&(0,v.jsx)(vt,{icon:(0,v.jsx)(mt.Z,{size:28}),heading:d("UPC"),descriptions:[{label:t.upc}]})]})})]})},Lt=i(25237),_t=i.n(Lt),Ot=i(34397),It=i(80149),Dt=i(47295),kt=i(7162),zt=i(7141),Nt=i(1205),Mt=i(12405),Tt=i(80963);var Rt=(e,t,i,r)=>{const{actions:{openDrawer:n,closeDrawer:l,addOrUpdateDrawer:a,removeDrawer:s}}=(0,Mt.eV)(),o=(0,h.useCallback)((e=>{e.forEach((e=>{const{target:t,boundingClientRect:i}=e,{viewPortTopOffset:a=0}=r||{},s=i?.top<=0+a,o=t?.dataset?.drawerId;o&&(s?n(o):l(o))}))}),[n,l,r]);(0,h.useEffect)((()=>{e.forEach((e=>{a(e,i[e].drawer)}))}),[a,e,i]),(0,h.useEffect)((()=>()=>{e.forEach((e=>{s(e)}))}),[s,e]),(0,h.useLayoutEffect)((()=>{const{viewPortTopOffset:i=0}=r||{},n=new IntersectionObserver(o,{rootMargin:`-${i}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)}))}}),[o,e,t,r])},Et=i(96827);const At="64px",Ht="110px",Xt="14px",Gt="20px",Zt=d.default.div.withConfig({displayName:"StickyCtastyles__Container",componentId:"sc-66y51m-0"})(["display:flex;justify-content:center;width:100%;"]),Qt=d.default.div.withConfig({displayName:"StickyCtastyles__Wrapper",componentId:"sc-66y51m-1"})(["display:flex;width:100%;height:",";align-items:flex-start;justify-content:space-between;padding-top:1rem;","{align-items:center;width:",";max-width:",";height:",";padding-top:0;}"],Ht,(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),Et.As,Et.oQ,At),Bt=d.default.div.withConfig({displayName:"StickyCtastyles__CtaContainer",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})),$t=(0,d.default)(r.H).withConfig({displayName:"StickyCtastyles__ProductName",componentId:"sc-66y51m-3"})(["display:none;","{display:block;}"],(e=>{let{theme:t}=e;return t.mediaQuery.desktop})),qt=d.default.div.withConfig({displayName:"StickyCtastyles__ProductDetails",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})),Ft=d.default.div.withConfig({displayName:"StickyCtastyles__PricingContainer",componentId:"sc-66y51m-5"})(["display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-right:1rem;position:relative;"]),Ut=d.default.div.withConfig({displayName:"StickyCtastyles__Pricing",componentId:"sc-66y51m-6"})(["visibility:",";"],(e=>{let{visible:t}=e;return t?"visible":"hidden"})),Wt=(0,d.default)(ee.S).withConfig({displayName:"StickyCtastyles__PricingSkeleton",componentId:"sc-66y51m-7"})(["position:absolute;top:-3px;left:0;z-index:1;"]),Kt=d.default.span.withConfig({displayName:"StickyCtastyles__VariantLabel",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"})),Vt=(0,d.default)(ie.B).withConfig({displayName:"StickyCtastyles__Button",componentId:"sc-66y51m-9"})(["width:",";"],(e=>{let{theme:t}=e;return t.pxToRem(250)})),Yt=(0,d.default)(n.G).withConfig({displayName:"StickyCtastyles__Grid",componentId:"sc-66y51m-10"})(["grid-template-columns:"," 1fr;","{grid-template-columns:"," 1fr;}"],Xt,(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),Gt),Jt=(0,d.default)(It.Z).withConfig({displayName:"StickyCtastyles__MyNintendoPlatinumCoinIcon",componentId:"sc-66y51m-11"})(["width:",";","{width:",";}"],Xt,(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),Gt),ei=(0,d.default)(r.H).withConfig({displayName:"StickyCtastyles__PlatinumPointsLabel",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}));var ti=i(45815);var ii=e=>{let{onChange:t,isBundle:i,product:r,title:n,value:l}=e;const{topLevelCategory:a,variations:s,nsuid:o}=r;if("GAMES"===a?.code){if("MOBILE"==o)return(0,v.jsx)(ti.uP,{product:r});if(s?.length>3)return(0,v.jsx)(ti.Z5,{product:r});if(s?.length>0)return(0,v.jsx)(ti.Kx,{onChange:t,isBundle:i,product:r,title:n,value:l})}return s?.length>0?(0,v.jsx)(ti.ig,{isBundle:i,onChange:t,product:r,title:n,value:l}):null},ri=i(85941),ni=i(53771);function li(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}const ai=(e,t)=>{const i=[Y.xJ,Y.oV,Y._1,Y.bA],r={[Y.xJ]:{4:"HNA"},[Y.oV]:{8:"PSTM",7:"MSTM",6:"CSTM",5:"ESTM"},[Y._1]:{3:"ART"},[Y.bA]:{2:"FNT",3:"BRT",4:"AMT",5:"ACT"}};return i.includes(t)?e.replace(/(?:UTC|GMT).(\d)/,((e,i)=>r[t][i]||e)):e},si=(e,t,i,r)=>{const n=new Date,l=new Date(e),a=t===Y.xJ,s=l.getTime()-n.getTime();if(s<0)return null;if(!(s/6e4/60>24))return i("Sale ends: {0}",{args:[(0,v.jsx)(ni.C,{onTimeEnd:r,endDate:e,abbreviate:!1},"timer")]});{const e=a?"es-MX":t===Y.bu?"en-US":(0,ri.ZP)(t);try{const r=Intl.DateTimeFormat().resolvedOptions().timeZone,n=l.toLocaleDateString(e,function(e){for(var t=1;t`${t.toLowerCase()}.m.`)),t)]})}catch{return null}}};function oi(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function di(e){for(var t=1;ti.e(1370).then(i.bind(i,91370))),{ssr:!1,loadableGenerated:{webpack:()=>[91370]}}),ui=(0,a.xe)(Ot.W),pi="add-to-cart-drawer",hi="added-to-cart-drawer",gi=[pi];function mi(e){let{product:t,purchaseOptions:i}=e;const{actions:{openDrawer:c,closeDrawer:u,addOrUpdateDrawer:p,removeDrawer:g}}=(0,Mt.eV)(),m=(0,h.useRef)(),f="BUNDLE"===t.productType,y=t.bundleItems?.filter((e=>e.options?.length>1)),b=(0,h.useContext)(d.ThemeContext),{locale:x}=(0,s.useRouter)(),w=x?.split("-")[0]??"en",{text:j}=(0,o.useLocalizer)(),C=(0,Tt.Z)(Tt.o.DESKTOP),{0:S,1:P}=(0,h.useState)(0),{state:{addableQty:L,quantity:_,isLoading:O,isMobileGame:I,isDigitalProduct:D,isPurchasable:k,retailerSku:z,buttonDisabled:N,promptLogin:T,disableQuantity:R,buttonCopy:E,helperText:A,boldHelperText:H,displayPrice:X,showRedemptionCodeModal:G,selectedOptionsByTitle:Z},actions:{handleDirectDownloadClick:B,handleAddToCart:$,setQuantity:q,setShowRedemptionCodeModal:W,setSelectedOptionsByTitle:K}}=i,{platinumPoints:V,eshopDetails:Y}=t,J=(0,h.useMemo)((()=>({id:hi,drawer:{height:"325px",target:Mt.zO.FLYOUT,bgColor:b.color.lightGray3,enableScrim:!0,content:(0,v.jsx)(a.ZL,{product:t,quantity:S,onClose:()=>u(hi)})}})),[t,S,b,u]),te=(0,h.useCallback)((async()=>{P(_);const e=(await $())?.data?.cart?.id;e&&c(hi)}),[_,$,c]),oe=(0,h.useMemo)((()=>({viewPortTopOffset:C?Mt.nI.DESKTOP:0})),[C]),ge=(0,h.useMemo)((()=>({[pi]:{ref:m}})),[]),me=(0,h.useMemo)((()=>({[pi]:{drawer:{height:C?At:Ht,target:Mt.zO.TOP_DRAWER,bgColor:F.d.color.lightGray3,content:(0,v.jsx)(Ti,{product:t,purchaseOptions:di(di({},i),{},{actions:di(di({},i.actions),{},{handleAddToCart:te})})})}}})),[t,C,i,te]);Rt(gi,ge,me,oe),(0,h.useEffect)((()=>{p(J.id,J.drawer)}),[J,p]),(0,h.useEffect)((()=>{q(1)}),[q,L]),(0,h.useEffect)((()=>()=>{g(hi)}),[g]);const fe=(0,h.useMemo)((()=>Y?.discountPriceEnd?si(Y?.discountPriceEnd,x,j,(()=>{window.location.reload()})):null),[Y,x,j]);return(0,v.jsxs)(v.Fragment,{children:[!f&&(0,v.jsx)(ii,{product:t}),(0,v.jsx)(Q.S,{size:24}),fe&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(ue,{backgroundColor:b.color.primary,foregroundColor:"#fff",children:fe}),(0,v.jsx)(Q.S,{size:8})]}),!I&&(0,v.jsxs)(ne,{children:[(0,M.vS)(x)?null:O?(0,v.jsx)(le,{width:"50%"}):V?(0,v.jsxs)(n.G,{columns:"24px 1fr",justifyItems:"start",alignItems:"center",children:[(0,v.jsx)(It.Z,{size:24}),(0,v.jsxs)(r.H,{variant:"h2",children:[V," ",j("Platinum Points")]})]}):(0,v.jsx)(Dt.P,{regPrice:X.regPrice,size:"large",salePrice:X.salePrice,lang:w}),(0,a.Yj)(t)&&(0,v.jsx)(ui,{product:t,analyticsName:"Product Detail Page wish list",iconOnly:!0})]}),f&&(0,v.jsx)(he,{children:y.map((e=>{const{options:t,title:i}=e,r=t.find((e=>{let{isDefault:t}=e;return t}))||t[0],n=r?.product?.configurableOptions?.[0]?.attributeCode?.toLowerCase();return(0,v.jsx)(ii,{onChange:e=>{t.find((t=>{let{id:i}=t;return i===e})).product?.isSalableQty&&K((t=>di(di({},t),{},{[i]:e})))},value:Z[i],title:j(`Select ${n} for {0}`,{args:[i]}),isBundle:!0,product:di(di({},r.product),{},{variations:t.map((e=>{const{label:t,value:i}=e.product.variations.find((t=>t.product.sku==e.product.sku));return di(di({},e),{},{label:t,value:i,product:di(di({},e.product),{},{url:""})})}))})},e.id)}))}),Y?.goldPoints?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Q.S,{size:24}),O?(0,v.jsx)(ee.S,{width:"25%"}):(0,v.jsxs)(ae,{children:[(0,v.jsx)("div",{children:(0,v.jsx)(kt.Z,{size:24})}),(0,v.jsx)(l.T,{variant:"legal",children:j("Eligible for up to {0} Gold Points",{args:[(0,v.jsx)(se,{children:Y?.goldPoints},"goldPoints")]})})]})]}):null,(0,v.jsx)(Q.S,{size:24}),(0,v.jsx)(n.G,{columns:"1fr 3fr",alignItems:"center",children:D?(0,v.jsx)(U.G,{column:"span 2",children:k&&(0,v.jsx)(ie.B,{onClick:B,icon:N||T?"":zt.Z,isLoading:O,buttonWidth:"full",disabled:N,size:"large",href:N?null:Y?.purchaseUrl,children:"string"===typeof E?j(E):E})}):(0,M.vS)(x)?null:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(re,{quantity:_,max:R?1:L,min:1,onChange:q,disabled:N}),(0,v.jsx)(ce,{onClick:te,isLoading:O,disabled:N,icon:N||T?"":Nt.Z,buttonWidth:"full",size:"large",children:"string"===typeof E?j(E):E})]})}),(0,v.jsx)("span",{ref:m,"data-drawer-id":pi}),A&&!(0,M.vS)(x)&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Q.S,{size:20}),t.voucherNsuid&&(0,v.jsx)(a.lE,{nsuid:t.nsuid}),(0,v.jsx)(de,{variant:"legal",children:(0,v.jsx)(pe,{"data-testid":"helperText",boldHelperText:H,children:"string"===typeof A?j(A):A})})]}),z?(0,v.jsxs)(v.Fragment,{children:[(!(0,M.vS)(x)||D)&&(0,v.jsx)(Q.S,{size:24}),(0,v.jsx)(a.Qc,{sku:z,name:t.name,type:(0,M.vS)(x)&&!D?"button":"link"})]}):null,t.requiresCoupon&&(0,v.jsx)(ci,{onApplyCode:async e=>{const{data:t}=await $(e);if(!t?.cart?.id)throw new Error;setTimeout((()=>{c(hi)}),200)},onClose:()=>W(!1),visible:G})]})}var fi=i(59124),yi=i(1505);const bi=d.default.div.withConfig({displayName:"ReadMorestyles__ReadMore",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]})),xi=(0,d.default)(xe.D).withConfig({displayName:"ReadMorestyles__StyledIconLink",componentId:"sc-120wz1l-1"})(["padding-left:0;"]),wi=d.default.div.withConfig({displayName:"ReadMorestyles__ChildContent",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:i}=e;return t?9999:i}),(e=>{let{theme:t}=e;return t.spacing[8]}));var ji=function(e){let{maxLines:t,description:i,category:r}=e;const{text:n}=(0,o.useLocalizer)(),{0:s,1:d}=(0,h.useState)(0),{0:c,1:u}=(0,h.useState)(!1),{0:p,1:g}=(0,h.useState)(!1),m="GAMES"===r?.code,f=(0,h.useRef)(null),y=(0,h.useRef)(null),b=(0,h.useRef)(null);(0,h.useEffect)((()=>(x(),window.addEventListener("resize",x),()=>{window.removeEventListener("resize",x)})),[]),(0,h.useEffect)((()=>{g(!1)}),[i]);const x=()=>{clearTimeout(b.current),b.current=setTimeout((()=>{u(y?.current?.scrollHeight>y?.current?.clientHeight)}),0)};return(0,h.useEffect)((()=>{y.current?.classList.add("clamp")}),[t]),(0,v.jsxs)(bi,{ref:f,children:[(0,v.jsx)(wi,{isExpanded:p,maxLines:t,children:(0,v.jsx)(a.Ho,{ref:y,data:i})}),c&&(0,v.jsx)(xi,{icon:p?fi.Z:yi.Z,onClick:()=>{g((e=>(e?window.scrollTo(0,s):d(window.scrollY),!e)))},children:n(p?"Read less":"Read more")}),m&&(0,v.jsx)(l.T,{variant:"legal",children:n("Software description provided by the publisher.")})]})},vi=i(32443),Ci=i(58842);const Si=d.default.div.withConfig({displayName:"SelectAttributesstyles__StyledAttributes",componentId:"sc-1hh5k55-0"})(["display:grid;grid-template-columns:repeat(5,1fr);grid-gap:0.5em;"]),Pi=e=>{let{theme:t,isActive:i,swatch:r,disabled:n}=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:",";}}"],n&&!r?t.color.lightGray2:r?"url("+r+")":i?t.color.primary:t.color.white,t.spacing[4],i?t.color.primary:n?t.color.lightGray2:t.color.white,n?t.color.darkGray2:i?t.color.white:t.color.darkGray2,t.mediaQuery.tablet,n?t.color.darkGray3:i?t.color.white:t.color.darkGray2,(e=>{let{theme:t}=e;return t.movement.duration+" "+t.movement.easing}),n&&r?"60%":"initial",n?"grayscale(60%)":"",t.spacing[4],t.color.primary,i&&!n?t.color.white:t.color.darkGray2)},Li=d.default.div.withConfig({displayName:"SelectAttributesstyles__Tile",componentId:"sc-1hh5k55-1"})([""," "," flex-direction:column;justify-content:flex-start;text-align:center;"],Ci.nd,Pi),_i=(0,d.default)(vi.Z).withConfig({displayName:"SelectAttributesstyles__TileLink",componentId:"sc-1hh5k55-2"})(["",""],Pi);const Oi=new Set(["color"]);var Ii=e=>{let{onChange:t,product:i,value:r}=e;const{query:n}=(0,s.useRouter)(),l=i.configurableOptions?.[0]?.attributeCode;return(0,v.jsx)(Si,{children:i.variations.map((e=>{const i=Oi.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===n.slug:e.id===r;return e.product.url?(0,v.jsx)(_i,{href:e.product.url,isActive:a,swatch:i,disabled:!e.product.isSalableQty,children:i?"":e.label},e.product.name):(0,v.jsx)(Li,{onClick:()=>t(e.id),isActive:a,swatch:i,disabled:!e.product.isSalableQty,children:(0,v.jsx)(Ci.Dx,{type:"portrait",children:i?"":e.label})},e.product.name)}))})};const Di=(0,d.default)(a.He).withConfig({displayName:"SizeChartstyles__SizeChart",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)})),ki=d.default.table.withConfig({displayName:"SizeChartstyles__SizeTable",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]}`})),zi=d.default.div.withConfig({displayName:"SizeChartstyles__ImageContainer",componentId:"sc-raxccj-2"})(["img{object-fit:contain;max-height:24em;}"]),Ni=(d.default.div.withConfig({displayName:"SizeChartstyles__Test",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 Mi=e=>{let{product:t}=e;const i=Ni[t.sizeChart.code],{text:r}=(0,o.useLocalizer)();return(0,v.jsxs)(Di,{children:[(0,v.jsx)(zi,{children:(0,v.jsx)(we.I,{assetPath:t.descriptionImage?t.descriptionImage.publicId:t.productImage.publicId,alt:t.name})}),(0,v.jsx)(ki,{children:i?(0,v.jsxs)("tbody",{children:[(0,v.jsxs)("tr",{children:[(0,v.jsx)("th",{children:r("Size")}),(0,v.jsx)("th",{children:r("pants"===i?.type?"Waist":"Width")}),(0,v.jsx)("th",{children:r("pants"===i?.type?"Inseam":"Length")})]}),i.sizes.map((e=>(0,v.jsxs)("tr",{children:[(0,v.jsx)("td",{children:r(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)(qe.Z,{size:16})," Size chart unavailable."]})})]})};var Ti=e=>{const{product:t,purchaseOptions:i}=e,{text:r}=(0,o.useLocalizer)(),{query:n,locale:l}=(0,s.useRouter)(),d=l?.split("-")[0]??"en",{name:c,eshopDetails:u,topLevelCategory:p,platinumPoints:g}=t,{state:{isLoading:m,isDigitalProduct:f,isPurchasable:y,isMobileGame:b,buttonDisabled:x,promptLogin:w,buttonCopy:j,displayPrice:C,retailerSku:S},actions:{handleDirectDownloadClick:P,handleAddToCart:L}}=i,_=t.variations?.length&&!t.configurableProduct,O=(0,h.useMemo)((()=>t.variations?.find((e=>e?.product?.urlKey===n.slug))),[t,n]),I=O?.product.size?r("Size"):null,D=O?.label,k=I?`${I}: ${D}`:D;let z=null;"GAMES"===p?.code?z=r(f?"Digital":"Physical"):_&&!O?z=r("Starting at"):k&&(z=k);const N=(0,h.useMemo)((()=>_?()=>{window.scrollTo({top:0,behavior:"smooth"})}:L),[_,L]);return(0,v.jsx)(Zt,{children:(0,v.jsxs)(Qt,{children:[(0,v.jsx)($t,{forwardedAs:"p",variant:"h3",children:c}),(0,v.jsxs)(Bt,{children:[(0,v.jsxs)(qt,{children:[z&&(0,v.jsx)(Kt,{smallMargin:!O,children:z}),!b&&(Boolean(C.regPrice)||Boolean(g))&&(0,v.jsxs)(Ft,{children:[m&&(0,v.jsx)(Wt,{width:"100%"}),(0,v.jsx)(Ut,{visible:!m,children:g?(0,v.jsxs)(Yt,{gap:"0.5rem",justifyItems:"start",alignItems:"center",children:[(0,v.jsx)(Jt,{}),(0,v.jsxs)(ei,{variant:"h2",children:[g," ",r("Platinum Points")]})]}):!(0,M.vS)(l)||f?(0,v.jsx)(Dt.P,{regPrice:C.regPrice,horizontal:!0,size:"medium",salePrice:C.salePrice,lang:d}):null})]})]}),f?y&&(0,v.jsx)(Vt,{onClick:P,icon:x||w?"":zt.Z,isLoading:m,buttonWidth:"full",disabled:x,round:!0,size:"small",href:x?null:u?.purchaseUrl,children:"string"===typeof j?r(j):j}):(0,M.vS)(l)?(0,v.jsx)(a.Qc,{sku:S,name:t.name,type:"button-round"}):(0,v.jsx)(Vt,{onClick:N,isLoading:m,disabled:x,icon:x||w?"":Nt.Z,buttonWidth:"full",round:!0,size:"small",children:"string"===typeof j?r(j):j})]})]})})}},78098:function(e,t,i){i.d(t,{r:function(){return r.Z}});var r=i(89364)},89364:function(e,t,i){var r=i(2784),n=i(24580);t.Z=()=>{const{updateScroll:e}=(0,n.lP)();(0,r.useEffect)((()=>{e()}),[])}}}]);