"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3894],{49446:function(e,t,n){n.d(t,{Z:function(){return a}});n(2784);var o=n(13980),i=n.n(o),r=n(52322);const a=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",xmlSpace:"preserve",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"CalendarIcon",...e,children:[(0,r.jsx)("path",{fill:e.color,d:"M21.8 19.1h5.6c.5 0 .9-.4.9-.9v-5.6c0-.5-.4-.9-.9-.9h-5.6c-.5 0-.9.4-.9.9v5.6c0 .5.4.9.9.9zm0 8.6h5.6c.5 0 .9-.4.9-.9v-5.6c0-.5-.4-.9-.9-.9h-5.6c-.5 0-.9.4-.9.9v5.6c0 .5.4.9.9.9zm1.6-20.3h1.5c.5 0 .9-.4.9-.9v-5c0-.5-.4-.9-.9-.9h-1.5c-.5 0-.9.4-.9.9v5c0 .5.4.9.9.9zm-16.3 0h1.5c.5 0 .9-.4.9-.9v-5c0-.5-.4-.9-.9-.9H7.1c-.5 0-.9.4-.9.9v5c0 .5.4.9.9.9zm6.1 20.3h5.6c.5 0 .9-.4.9-.9v-5.6c0-.5-.4-.9-.9-.9h-5.6c-.5 0-.9.4-.9.9v5.6c0 .5.4.9.9.9z"}),(0,r.jsx)("path",{fill:e.color,d:"M29.5 4.3H27v2.2c0 1.2-.9 2.1-2.1 2.1h-1.5c-1.2 0-2.1-1-2.1-2.1V4.3H10.7v2.2c0 1.2-.9 2.1-2.1 2.1H7.1C5.9 8.6 5 7.6 5 6.5V4.3H2.5C1.1 4.3 0 5.4 0 6.7V29c0 1.4 1.1 2.5 2.5 2.5h27c1.4 0 2.5-1.1 2.5-2.5V6.7c0-1.3-1.1-2.4-2.5-2.4zm0 24.7h-27V10.4h27V29z"}),(0,r.jsx)("path",{fill:e.color,d:"M13.2 19.1h5.6c.5 0 .9-.4.9-.9v-5.6c0-.5-.4-.9-.9-.9h-5.6c-.5 0-.9.4-.9.9v5.6c0 .5.4.9.9.9zm-8.6 8.6h5.6c.5 0 .9-.4.9-.9v-5.6c0-.5-.4-.9-.9-.9H4.6c-.5 0-.9.4-.9.9v5.6c0 .5.4.9.9.9zm0-8.6h5.6c.5 0 .9-.4.9-.9v-5.6c0-.5-.4-.9-.9-.9H4.6c-.5 0-.9.4-.9.9v5.6c0 .5.4.9.9.9z"})]});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},25338:function(e,t,n){n.d(t,{Z:function(){return a}});n(2784);var o=n(13980),i=n.n(o),r=n(52322);const a=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"GearIcon",...e,children:(0,r.jsx)("path",{d:"M30.6 13.1h-2.4c-.3-1.4-.8-2.6-1.5-3.8l1.7-1.7c.5-.5.5-1.4 0-1.9l-2.1-2.1c-.5-.5-1.4-.5-1.9 0l-1.7 1.7c-1.2-.7-2.4-1.3-3.8-1.5V1.4c0-.7-.6-1.4-1.4-1.4h-3c-.7 0-1.4.6-1.4 1.4v2.4c-1.4.4-2.6.8-3.8 1.5L7.6 3.6c-.5-.5-1.4-.5-1.9 0L3.6 5.7c-.6.5-.6 1.4 0 1.9l1.7 1.7c-.7 1.2-1.3 2.4-1.5 3.8H1.3c-.7 0-1.4.6-1.4 1.4v3c0 .7.6 1.4 1.4 1.4h2.4c.3 1.4.8 2.6 1.5 3.8l-1.7 1.7c-.5.5-.5 1.4 0 1.9l2.1 2.1c.6.5 1.4.5 2 0l1.7-1.7c1.2.7 2.4 1.3 3.8 1.5v2.5c0 .7.6 1.4 1.4 1.4h3c.7 0 1.4-.6 1.4-1.4v-2.4c1.4-.3 2.6-.8 3.8-1.5l1.7 1.7c.5.5 1.4.5 1.9 0l2.1-2.1c.5-.5.5-1.4 0-1.9l-1.7-1.7c.7-1.2 1.3-2.4 1.5-3.8h2.4c.7 0 1.4-.6 1.4-1.4v-3c.1-.9-.6-1.5-1.4-1.5zM16 21.6c-3.1 0-5.6-2.5-5.6-5.6 0-3.1 2.5-5.6 5.6-5.6 3.1 0 5.6 2.5 5.6 5.6-.1 3.1-2.6 5.6-5.6 5.6z",fillRule:"evenodd",clipRule:"evenodd",fill:e.color})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},70510:function(e,t,n){n.d(t,{Z:function(){return a}});n(2784);var o=n(13980),i=n.n(o),r=n(52322);const a=e=>(0,r.jsx)("svg",{"data-name":"Magnifying glass",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"MagnifyingGlassIcon",...e,children:(0,r.jsx)("path",{d:"M31.564 28.745l-8.73-8.73a12.66 12.66 0 1 0-2.804 2.834l8.715 8.715a1.5 1.5 0 0 0 2.114 0l.705-.705a1.5 1.5 0 0 0 0-2.114zm-18.966-7.433A8.611 8.611 0 1 1 21.21 12.7a8.62 8.62 0 0 1-8.612 8.612z",fill:e.color})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},7162:function(e,t,n){n.d(t,{Z:function(){return s}});n(2784);var o=n(13980),i=n.n(o),r=n(52792),a=n(52322);const s=e=>{const{className:t,size:n}=e;return(0,a.jsx)(r.Y,{role:"presentation",alt:"",size:n,assetPath:"/Design System/Component Library/Icon/my-nintendo-gold-coin.png",className:t,"data-testid":"MyNintendoGoldCoinIcon"})};s.propTypes={className:i().string,size:i().oneOfType([i().number,i().string])},s.defaultProps={size:24}},1205:function(e,t,n){n.d(t,{Z:function(){return a}});n(2784);var o=n(13980),i=n.n(o),r=n(52322);const a=e=>(0,r.jsx)("svg",{"data-name":"Shopping cart",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"ShoppingCartIcon",...e,children:(0,r.jsx)("path",{fill:e.color,d:"M23.12 28.073a2.248 2.248 0 1 0 2.25-2.326h-.005a2.288 2.288 0 0 0-2.245 2.326zm2.397-7.29a1.728 1.728 0 0 0 1.498-.982l4.844-11.686a1.544 1.544 0 0 0-.15-1.551 1.593 1.593 0 0 0-1.349-.673H8.44l-.55-2.895A1.494 1.494 0 0 0 6.393 1.6H1.598A1.606 1.606 0 0 0 0 3.255a1.548 1.548 0 0 0 1.598 1.654h3.496L7.49 18.973l-1.098 4.706a1.67 1.67 0 0 0 .25 1.395 1.529 1.529 0 0 0 1.198.673h18.675a1.656 1.656 0 0 0 0-3.31H9.937l.4-1.654zm-18.726 7.29a2.248 2.248 0 1 0 2.25-2.326h-.005a2.288 2.288 0 0 0-2.245 2.326z"})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},56007:function(e,t,n){n.d(t,{Z:function(){return a}});n(2784);var o=n(13980),i=n.n(o),r=n(52322);const a=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"SwitchIcon",...e,children:(0,r.jsx)("path",{d:"M13.54 0a.18.18 0 0 1 .17.17v31.66a.15.15 0 0 1-.17.17H8.11a6.86 6.86 0 0 1-6.85-6.8V6.74A6.81 6.81 0 0 1 8.11 0h5.43zm10.4 0a6.77 6.77 0 0 1 6.8 6.74V25.2a6.82 6.82 0 0 1-6.85 6.8h-5.43a.15.15 0 0 1-.17-.17V.17c0-.11.11-.17.22-.17h5.43zM7.49 19.6a1.26 1.26 0 1 0 0 2.51 1.32 1.32 0 0 0 1.31-1.25 1.28 1.28 0 0 0-1.31-1.26zm17-3.6a2.86 2.86 0 0 0-2.85 2.86A2.86 2.86 0 1 0 24.51 16zm-14.28.86a1.26 1.26 0 1 0 0 2.51 1.35 1.35 0 0 0 1.31-1.26 1.32 1.32 0 0 0-1.29-1.25zm-5.49 0a1.26 1.26 0 1 0 0 2.51 1.36 1.36 0 0 0 1.32-1.26 1.28 1.28 0 0 0-1.3-1.25zm2.75-2.69a1.26 1.26 0 1 0 0 2.52 1.37 1.37 0 0 0 1.33-1.26 1.28 1.28 0 0 0-1.31-1.26zm17-4a1.36 1.36 0 0 0-1.31 1.26 1.32 1.32 0 1 0 1.31-1.26zm-17-5.08a2.86 2.86 0 1 0 0 5.71 2.86 2.86 0 0 0 2.85-2.86 2.82 2.82 0 0 0-2.83-2.85zm19.77 2.4a1.26 1.26 0 1 0 1.31 1.25 1.32 1.32 0 0 0-1.29-1.25zm-5.43 0a1.26 1.26 0 1 0 1.31 1.25 1.29 1.29 0 0 0-1.29-1.25zm2.68-2.75A1.36 1.36 0 0 0 23.2 6a1.32 1.32 0 1 0 1.31-1.26z",fill:e.color,fillRule:"evenodd"})});a.propTypes={className:i().string,color:i().string,size:i().oneOfType([i().number,i().string])},a.defaultProps={color:"currentColor",size:24}},63894:function(e,t,n){n.r(t),n.d(t,{CUSTOM_DRAWER_TARGET:function(){return c.zO},CustomDrawerProvider:function(){return S.Z},NAV_BREAKPOINT:function(){return $r},NAV_HEIGHT:function(){return Kr},default:function(){return Jr},navTheme:function(){return qr},translations:function(){return Vr.Z},useCustomDrawers:function(){return S.e}});var o=n(2784),i=n(13980),r=n.n(i),a=n(35463),s=n(13189),l=n(17788),c=n(4633),u=n(50334);const d=(0,i.shape)({mii:i.object,nickname:i.string,createdAt:i.string,id:i.string});(0,i.shape)({loading:i.bool,user:d,promptLogin:i.func,promptLogout:i.func}).isRequired;const p=(0,i.oneOf)(Array.from(u.nD,(e=>e.toLowerCase()))),m=(0,i.shape)({pathname:i.string.isRequired,locale:p.isRequired,basePath:i.string.isRequired}),h={accountsUrl:"https://accounts.nintendo.com",router:{locale:"en-us",pathname:"/",basePath:"/"},origin:"https://www-ng-stg.nintendo.com"};var g=n(90293),y=n(52322);const f=`(min-width: ${c.T0}px)`;var w=()=>(0,g.ag)(f);function M(e){let{store:t,eshop:n}=e;const o=n?.scheduled||t?.scheduled,i=n?.active||t?.active;return i?{...i,shownDescription:i.description}:o?{...o,shownDescription:o.preMaintenanceDescription}:void 0}const x=o.createContext(null),L=()=>(0,o.useContext)(x),j=new g.fZ(c.R5,null),C=new g.fZ(c.IJ,null),I=e=>Math.max(new Date(M(e)?.end).getTime()-Date.now(),0),v=e=>{let{accountsUrl:t,router:n,origin:i,children:r,customData:a}=e;const[s,l]=(0,o.useState)({visible:!1,content:null,label:""}),[c,u]=(0,o.useState)(!1),d=(0,g.xe)(),p=(0,g.jD)(),m=(0,g.ON)(),h=w(),f=(0,g.K8)(),L=a?.router?a.router?.locale:n.locale,{text:v,date:b,price:N,DateFormat:S}=(0,g.i1)(L?{locale:L}:{locale:"en-us"}),D=(0,o.useMemo)((()=>a?.router?a.router?.pathname?.includes("/store"):n.pathname?.includes("/store")),[n.pathname,a]),z=(0,o.useMemo)((()=>"en-us"!==L?new URL(`/cart/${L}`,i):new URL("/cart/",i)),[L,i]),T=(0,o.useCallback)((()=>{l((e=>({visible:!1,content:e.content,label:""})))}),[]),O=(0,o.useCallback)((e=>{let{content:t,label:n}=e;l({visible:!0,content:t,label:n})}),[]),A=(0,o.useCallback)((()=>{j.set(!1,I(f)),u(!1)}),[f]);(0,o.useEffect)((()=>{const e=M(f),t=j.get(),n=C.get();void 0!==t?null===t||n!==JSON.stringify(e)?(j.delete(),C.set(JSON.stringify(e),I(f)),u(Boolean(e?.shownDescription))):u(t):u(Boolean(e?.shownDescription))}),[f]);const k=(0,o.useMemo)((()=>({state:{router:n,origin:i,accountsUrl:t,accounts:d,cart:p,customer:m,maintenance:f,modal:s,maintenanceNotifOpen:c,isDesktop:h,onStorePage:D,cartUrl:z.toString(),...a},actions:{closeModal:T,openModal:O,closeMaintenanceNotif:A},localizer:{text:v,date:b,price:N,DateFormat:S},methods:{promptLogin:d.promptLogin,promptLogout:d.promptLogout}})),[v,b,N,S,t,i,p,m,d,h,n,D,z,a,f,s,T,O,c,A]);return(0,y.jsx)(x.Provider,{value:k,children:r})};v.propTypes={accountsUrl:i.string,router:m,origin:i.string,children:i.node,customData:(0,i.shape)({router:(0,i.shape)({pathname:i.string,locale:p,basePath:i.string}),accounts:(0,i.shape)({isLoggedIn:i.bool.isRequired,loading:i.bool.isRequired}),cart:(0,i.shape)({loading:i.bool.isRequired,data:(0,i.shape)({totalQuantity:i.number})}),customer:(0,i.shape)({loading:i.bool.isRequired,data:d})})},v.defaultProps=h;var b=v,N=n(68811);n(5632);var S=n(31826);function D(){if("undefined"!==typeof window){const e=document.querySelector("body"),t=document.querySelector("html"),n=window.pageYOffset;"hidden"!==e.style.overflow&&(e.style.overflow="hidden",e.style.position="fixed",e.style.top=`-${n}px`,e.style.width="100%",t.style.height="calc(100vh - 1px)")}}function z(){if("undefined"!==typeof window){const e=document.querySelector("body");if("hidden"===e.style.overflow){const t=-1*parseInt(e.style.top);e.style.removeProperty("overflow"),e.style.removeProperty("position"),e.style.removeProperty("top"),e.style.removeProperty("width"),window.scrollTo(0,t)}}}const T=o.createContext(null),O=()=>(0,o.useContext)(T),A=e=>{let{customValue:t,children:n}=e;const[i,r]=(0,o.useState)(null),[a,s]=(0,o.useState)(!1),[l,u]=(0,o.useState)(!1),[d,p]=(0,o.useState)(!1),[m,h]=(0,o.useState)(!1),[g,f]=(0,o.useState)({focus:()=>{}}),{state:{activeCustomDrawer:w},actions:{openDrawer:M,closeDrawer:x}}=(0,S.e)(),L=(0,o.useRef)(null);(0,o.useEffect)((()=>()=>clearTimeout(L.current)),[]);const j=(0,o.useRef)(null);(0,o.useEffect)((()=>()=>clearTimeout(j.current)),[]);const C=(0,o.useCallback)((()=>{j.current=setTimeout((()=>p(!1)),c.th.DROPDOWN_DESKTOP),u(!1)}),[]),I=(0,o.useCallback)((()=>{L.current=setTimeout((()=>r(null)),c.th.DROPDOWN_DESKTOP),s(!1),h(!1)}),[]),v=(0,o.useCallback)(((e,t)=>{r(e),s(!0),C(),f(t),L.current=setTimeout((()=>h(!0)),c.th.DROPDOWN_DESKTOP)}),[C]),b=(0,o.useCallback)((()=>{I()}),[I]),N=(0,o.useCallback)((()=>{u(!0),p(!0),I()}),[I]),O=(0,o.useCallback)((()=>{C()}),[C]);(0,o.useEffect)((()=>{a||l||w?.isOpen&&w?.enableScrim?D():z()}),[a,l,w]);const A=(0,o.useMemo)((()=>({state:{activeMenu:i,activeCustomDrawer:w,menuOpen:a,flyoutOpen:l,flyoutVisible:d,bindFocus:m,returnFocus:g},actions:{openMenu:v,openCustomDrawer:M,closeMenu:b,closeCustomDrawer:x,openFlyout:N,closeFlyout:O}})),[i,w,a,l,d,m,g,v,M,b,x,N,O]);return(0,y.jsx)(T.Provider,{value:t||A,children:n})};A.propTypes={customValue:i.object,children:i.node};var k=A;const E=o.createContext(null),_=()=>(0,o.useContext)(E),R=e=>{let{customValue:t,children:n}=e;const[i,r]=(0,o.useState)(null),[a,s]=(0,o.useState)(!1),[l,u]=(0,o.useState)(null),[d,p]=(0,o.useState)(!1),[m,h]=(0,o.useState)(null),[g,f]=(0,o.useState)(!1),[w,M]=(0,o.useState)(null),{state:{activeCustomDrawer:x},actions:{openDrawer:L,closeDrawer:j}}=(0,S.e)(),C=(0,o.useRef)(null);(0,o.useEffect)((()=>()=>clearTimeout(C.current)),[]);const I=(0,o.useCallback)((e=>{M((()=>i)),r(e),s(!0),p(!1)}),[i]),v=(0,o.useCallback)((()=>{C.current=setTimeout((()=>{r(null),p(!1)}),c.th.DROPDOWN_DESKTOP),s(!1)}),[]),b=(0,o.useRef)(null);(0,o.useEffect)((()=>()=>clearTimeout(b.current)),[]);const N=(0,o.useCallback)((e=>{u(e),p(!0)}),[]),T=(0,o.useCallback)((()=>{C.current=setTimeout((()=>{u(null),h(null)}),c.th.DROPDOWN_DESKTOP),p(!1)}),[]),O=(0,o.useRef)(null);(0,o.useEffect)((()=>()=>clearTimeout(O.current)),[]);const A=(0,o.useCallback)((e=>{h(e),f(!0)}),[]),k=(0,o.useCallback)((()=>{f(!1),O.current=setTimeout((()=>h(null)),c.th.ACCORDION_MOBILE)}),[]);(0,o.useEffect)((()=>{a||x?.isOpen&&x?.enableScrim?D():z()}),[a,x]);const _=(0,o.useMemo)((()=>({state:{activeDrawer:i,activeCustomDrawer:x,drawerOpen:a,activeMenu:l,menuOpen:d,activeAccordion:m,accordionOpen:g,returnFocus:w,...t?.state},actions:{openDrawer:I,openCustomDrawer:L,closeDrawer:v,closeCustomDrawer:j,openMenu:N,closeMenu:T,openAccordion:A,closeAccordion:k}})),[i,x,a,l,d,m,g,w,I,L,v,j,N,T,A,k,t]);return(0,y.jsx)(E.Provider,{value:_,children:n})};R.propTypes={customValue:i.object,children:i.node};var P=R;const B=l.default.nav.withConfig({displayName:"Desktopstyles__Nav",componentId:"sc-q5sxim-0"})(["position:fixed;top:0;left:0;width:100%;z-index:",";display:none;","{display:block;}"],c.kg,(e=>{let{theme:t}=e;return t.mediaQuery.navDesktop})),Y="en-us",U="en-ca",G="fr-ca",Z=new Set([Y,U,G]),Q="es-mx",W="pt-br",F=new Set(["es-ar","es-cl","es-co","es-pe"]),H=new Set([Q,W,...F]),V=new Set([Y,U,G,...H]);[...V].map((e=>{const t=e.split("-");return`${t[0]}_${t[1].toUpperCase()}`}));const{MY_NINTENDO_STORE:$,GAMES:q,NINTENDO_SWITCH:J,NEWS_EVENTS:K,PLAY_NINTENDO:X,HOLIDAY_GIFT_GUIDE:ee}=c.aA,{LIST:te,ICON:ne}=c.iB,oe="desktop",ie=e=>{let{icon:t,image:n,width:o,label:i,to:r,type:a,hidden:s,excludeLocale:l}=e;return{icon:t,image:n,width:o,label:i,to:r,type:a||te,hidden:s||!1,excludeLocale:l||[]}},re=(0,i.arrayOf)((0,i.shape)({icon:i.string,image:i.string,width:i.string,label:i.string,to:i.string}));var ae={[$]:{name:$,icon:"my-nintendo-tile",label:"My Nintendo Store",activeStateUrl:"/store",excludeLocale:[...H],items:[[ie({icon:"d-pad",label:"Shop all",to:"/store",type:te,hidden:oe})],[ie({icon:"d-pad",label:"Games",to:"/store/games",type:te}),ie({icon:null,label:"Shop all games",to:"/store/games",type:te,hidden:oe}),ie({icon:null,label:"Nintendo Switch games",to:"/store/games/nintendo-switch-games/",type:te}),ie({icon:null,label:"New releases",to:"/store/games/new-releases/",type:te}),ie({icon:null,label:"Sales & deals",to:"/store/sales-and-deals",type:te})],[ie({icon:"controller",label:"Hardware",to:"/store/hardware",type:te}),ie({icon:null,label:" Shop all hardware",to:"/store/hardware/",type:te,hidden:oe}),ie({icon:null,label:"Nintendo Switch systems",to:"/store/hardware/systems",type:te}),ie({icon:null,label:"Joy-Con & controllers",to:"/store/hardware/joy-con-and-controllers/",type:te}),ie({icon:null,label:"Cases & more",to:"/store/hardware/accessories/",type:te}),ie({icon:null,label:"Replacement parts",to:"/store/hardware/parts",type:te})],[ie({icon:"t-shirt",label:"Merchandise",to:"/store/merchandise",type:te}),ie({icon:null,label:" Shop all merchandise",to:"/store/merchandise",type:te,hidden:oe}),ie({icon:null,label:"Apparel & accessories",to:"/store/merchandise/apparel/",type:te}),ie({icon:null,label:"Home & office",to:"/store/merchandise/home-and-office/",type:te}),ie({icon:null,label:"Plush",to:"/store/merchandise/plush",type:te}),ie({icon:null,label:"Toys",to:"/store/merchandise/toys",type:te})],[ie({icon:"StarFilledIcon",label:"Store exclusives",to:"/store/exclusives",type:te}),ie({icon:null,label:"Shop all store exclusives",to:"/store/exclusives",type:te,hidden:oe}),ie({icon:null,label:"Exclusive products",to:"/store/exclusives/products",type:te}),ie({icon:null,label:"My Nintendo rewards",to:"/store/exclusives/rewards",type:te}),ie({icon:null,label:"Nintendo Switch Online offers",to:"/store/exclusives/online",type:te})],[ie({icon:"character",label:"Characters",to:"/store/characters",type:te}),ie({icon:null,label:" Shop all characters",to:"/store/characters",type:te,hidden:oe}),ie({icon:null,label:"Animal Crossing",to:"/store/characters/animal-crossing",type:te}),ie({icon:null,label:"Splatoon",to:"/store/characters/splatoon",type:te}),ie({icon:null,label:"Super Mario",to:"/store/characters/mushroom-kingdom/",type:te}),ie({icon:null,label:"The Legend of Zelda",to:"/store/characters/zelda",type:te})],[ie({icon:"sales-tag",label:"Sales & deals",to:"/store/sales-and-deals",type:te})],null].filter(Boolean)},[q]:{name:q,icon:"d-pad",label:"Games",items:[[ie({icon:"switch",label:"Nintendo Switch games",to:"/store/games/nintendo-switch-games/",type:ne})],[ie({icon:"SalesTagIcon",label:"Sales & deals",to:"/store/sales-and-deals",type:ne,excludeLocale:[...Z]})],[ie({icon:"megaphone",label:"New releases",to:"/store/games/new-releases/",type:ne})],[ie({icon:"calendar",label:"Coming soon",to:"/store/games/coming-soon/",type:ne})],[ie({icon:"d-pad",label:"Shop games",to:"/store/games/",type:ne})]]},[J]:{name:J,icon:"switch",label:"Nintendo Switch",items:[[ie({image:"/Dev/Global%20Navigation/lineup.png",label:"Nintendo Switch lineup",to:"/switch/",type:ne,width:"260px"})],[ie({icon:"CompareArrowsIcon",label:"Compare systems",to:"/switch/compare/",type:ne})],[ie({icon:"nso",label:"Online service",to:"/switch/online/",type:ne})],[ie({image:"/Dev/Global%20Navigation/procon.png",label:"Accessories",to:"/store/hardware/",type:ne,excludeLocale:[...H]})],[ie({image:"/Dev/Global%20Navigation/oled.png",label:"Shop systems",to:"/store/hardware/systems/",type:ne,excludeLocale:[...H]})],[ie({image:"/Dev/Global%20Navigation/oled.png",label:"Systems",to:"/switch/buy-now/",type:ne,excludeLocale:[...Z,W]})],[ie({image:"/Nclood/nav/switch-lineup-pt_br",label:"Systems",to:"/switch/buy-now/",type:ne,excludeLocale:[...Z,Q,...F]})]]},[K]:{name:K,icon:"news",label:"News & Events",items:[],to:"/whatsnew"},[X]:{name:X,icon:"star-play-nintendo",label:"Play Nintendo",excludeLocale:["fr-ca",...H],items:[[ie({icon:"ForKidsIcon",label:"For kids",to:"https://play.nintendo.com/",type:ne})],[ie({icon:"ForParentsIcon",label:"For parents",to:"https://play.nintendo.com/parents/",type:ne})]]}};var se=e=>({internal:{unauthd:[ie({icon:"receipt",label:"Order status",to:"/orders",excludeLocale:[...H]})],authd:[ie({icon:"heart",label:"Wish List",to:"/wish-list"}),ie({icon:"receipt",label:"Order history",to:"/orders",excludeLocale:[...H]}),ie({icon:"receipt",label:"Purchase history",to:"https://ec.nintendo.com/my/#/",excludeLocale:[...Z]}),ie({icon:"address-book",label:"Address book",to:"/address-book",excludeLocale:[...H]})]},external:[ie({icon:"my-nintendo-tile",label:"My Nintendo",to:"https://my.nintendo.com"}),ie({icon:"gift",label:"Redeem code",to:"https://ec.nintendo.com/redeem/#/"}),ie({icon:"gear",label:"Account settings",to:e})]}),le=n(60367);const ce=e=>(0,y.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"LogOutIcon",...e,children:(0,y.jsxs)("g",{fill:e.color,children:[(0,y.jsx)("path",{d:"M21.211 17.41l.001-3.849-13.867.063 4.21-4.09L8.84 6.897 0 15.486l8.84 8.588 2.715-2.637-4.211-4.09z"}),(0,y.jsx)("path",{d:"M32 2.886l-.01-.205A2.378 2.378 0 0 0 29.813.58l-.207-.01h-13.46l-.208.01c-1.135.1-2.04.993-2.154 2.127l-.01 7.683h3.824V4.31h10.58v23.38h-10.58v-6.08h-3.823v7.482a2.383 2.383 0 0 0 2.185 2.328l13.647.01a2.398 2.398 0 0 0 2.384-2.137l.009-.201V2.886z"})]})});ce.propTypes={className:r().string,color:r().string,size:r().oneOfType([r().number,r().string])},ce.defaultProps={color:"currentColor",size:24};const ue=l.default.div.withConfig({displayName:"Menustyles__Card",componentId:"sc-1q588nn-0"})(["position:absolute;top:0;left:0;width:100%;background-color:",";","{height:100%;position:relative;}"],(e=>{let{theme:t}=e;return t.color.lightGray3}),(e=>{let{theme:t}=e;return t.mediaQuery.navDesktop})),de=l.default.div.withConfig({displayName:"Menustyles__Scrolling",componentId:"sc-1q588nn-1"})(["height:calc("," - ",");overflow-y:scroll;padding-bottom:",";","{height:100vh;padding-bottom:",";}"],(e=>{let{height:t}=e;return t}),c.Vz.DRAWER_HEADER_MOBILE,(e=>{let{theme:t}=e;return t.spacing[48]}),(e=>{let{theme:t}=e;return t.mediaQuery.navDesktop}),(e=>{let{theme:t}=e;return t.spacing[96]})),pe=l.default.div.withConfig({displayName:"Menustyles__ItemsWrap",componentId:"sc-1q588nn-2"})(["","{","}"],(e=>{let{theme:t}=e;return t.mediaQuery.navDesktop}),(e=>{let{user:t}=e;return t&&(0,l.css)(["margin-top:calc( ","px + "," );"],265,(e=>{let{theme:t}=e;return t.spacing[28]}))})),me=l.default.div.withConfig({displayName:"Menustyles__MoreItems",componentId:"sc-1q588nn-3"})(["margin-top:",";","{margin-top:",";}"],(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.mediaQuery.navDesktop}),(e=>{let{theme:t}=e;return t.spacing[24]})),he=(0,l.default)(le.B).attrs((()=>({variant:"tertiary",icon:ce,buttonWidth:"full",still:!0}))).withConfig({displayName:"Menustyles__LogOutButton",componentId:"sc-1q588nn-4"})([""]);var ge=n(43499),ye=n(86290);const fe=l.default.button.withConfig({displayName:"CloseButtonstyles__CloseButton",componentId:"sc-auhxh6-0"})(["width:",";height:",";cursor:pointer;background:transparent;border:none;color:",";padding:0;transition:color ",";&:hover{color:",";}"],(e=>{let{theme:t}=e;return t.pxToRem(26)}),(e=>{let{theme:t}=e;return t.pxToRem(26)}),(e=>{let{theme:t}=e;return t.color.lightGray1}),(e=>{let{theme:t}=e;return`${t.movement.duration} ${t.movement.easing}`}),(e=>{let{theme:t}=e;return t.color.darkGray2})),we=e=>{let{onClick:t,className:n}=e;const{localizer:{text:o}}=L();return(0,y.jsx)(fe,{className:n,onClick:t,"aria-label":o("Close"),children:(0,y.jsx)(ye.Z,{size:26})})};we.propTypes={className:i.string,onClick:i.func};var Me=we;const xe=l.default.button.attrs((e=>{let{href:t,onClick:n}=e;return{as:t&&"a",onClick:n}})).withConfig({displayName:"ButtonLink",componentId:"sc-1empns-0"})(["display:inline-flex;align-items:center;border:none;background:transparent;cursor:",";padding:0;transition:",";*{color:",";}","{&:hover{color:",";transition:",";}}"],(e=>{let{disabled:t}=e;return t?"initial":"pointer"}),(e=>{let{theme:t}=e;return`all ${t.movement.duration} ${t.movement.easing}`}),(e=>{let{theme:t,disabled:n}=e;return n?t.color.lightGray1:"inherit"}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t,disabled:n}=e;return n?t.color.lightGray1:t.color.primary}),(e=>{let{theme:t}=e;return`all ${t.movement.duration} ${t.movement.easing}`}));var Le=xe;xe.propTypes={href:i.string,onClick:i.func};const je=(0,l.default)(Le).withConfig({displayName:"DrawerHeaderstyles__BackButton",componentId:"sc-q0gw4c-0"})(["position:absolute;left:0;display:flex;justify-content:center;padding:",";"],(e=>{let{theme:t}=e;return t.spacing[16]})),Ce=l.default.div.withConfig({displayName:"DrawerHeaderstyles__DrawerHeader",componentId:"sc-q0gw4c-1"})(["position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:",";border-bottom:1px solid ",";background-color:",";","{justify-content:flex-start;background-color:transparent;border-bottom:none;}"],c.Vz.DRAWER_HEADER_MOBILE,(e=>{let{theme:t}=e;return t.color.lightGray2}),(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return t.mediaQuery.navDesktop})),Ie=(0,l.default)(Me).withConfig({displayName:"DrawerHeaderstyles__CloseButton",componentId:"sc-q0gw4c-2"})(["position:absolute;right:",";top:50%;transform:translateY(-50%);","{right:0;}"],(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.mediaQuery.navDesktop})),ve=e=>{let{children:t,handleClose:n,handleBack:o}=e;return(0,y.jsxs)(Ce,{children:[o&&(0,y.jsx)(je,{onClick:o,children:(0,y.jsx)(ge.Z,{size:14})}),(0,y.jsx)(N.H,{children:t}),(0,y.jsx)(Ie,{onClick:n})]})};ve.propTypes={children:i.node,handleBack:i.func,handleClose:i.func};var be=ve,Ne=n(65905),Se=n(21203),De=n(64187),ze=n(25338),Te=n(89056);const Oe=e=>(0,y.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"HeartIcon",...e,children:(0,y.jsx)("path",{d:"M22.3 1.3c-2.3 0-4.5 1-6.3 2.8-1.7-1.8-3.9-2.8-6.3-2.8C4.4 1.3 0 5.7 0 11.2c0 2.6 1.2 5.1 3.3 7.3L15 30.2c.3.3.6.4 1 .4.3 0 .7-.1 1-.4l11.6-11.6c1.5-1.8 3.3-4.3 3.3-7.5.1-5.4-4.3-9.8-9.6-9.8z",fillRule:"evenodd",clipRule:"evenodd",fill:e.color})});Oe.propTypes={className:r().string,color:r().string,size:r().oneOfType([r().number,r().string])},Oe.defaultProps={color:"currentColor",size:24};var Ae=n(92445),ke=n(77682),Ee=n(79102),_e=n(46658),Re=n(3099),Pe=n(68374),Be=n(56007);const Ye=e=>(0,y.jsx)("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"MyNintendoTileIcon",...e,children:(0,y.jsx)("path",{d:"M26.667 0H5.333A5.333 5.333 0 0 0 0 5.333v21.334A5.333 5.333 0 0 0 5.333 32h21.334A5.333 5.333 0 0 0 32 26.667V5.333A5.333 5.333 0 0 0 26.667 0zm-5.105 22.423a5.212 5.212 0 0 1-2.37-.602 10.482 10.482 0 0 1-13.67-1.608.803.803 0 0 1 1.228-1.036 8.866 8.866 0 0 0 11.914 1.04.803.803 0 0 1 .986-.005 3.461 3.461 0 0 0 5.41-2.888 3.495 3.495 0 0 0-3.39-3.416c-.016 0-.036 0-.063-.002a.962.962 0 0 0-.12.003.806.806 0 0 1-.778-.455 6.54 6.54 0 0 0-5.992-3.848c-2.82 0-5.738 1.802-5.738 4.819-.003.818.35 1.596.969 2.132l1.688-3.147a.803.803 0 0 1 1.423.015l.982 1.926.983-1.926a.8.8 0 0 1 .71-.438c.3 0 .574.164.716.428l2.076 3.933a.8.8 0 0 1-.03.804.802.802 0 0 1-1.391-.054l-1.353-2.564-.995 1.95a.803.803 0 0 1-1.431-.001l-1-1.96-1.384 2.58a.805.805 0 0 1-1.046.349 4.563 4.563 0 0 1-2.524-4.027C7.372 10.403 11.107 8 14.717 8a8.081 8.081 0 0 1 7.209 4.308 5.063 5.063 0 0 1-.363 10.115z",fill:e.color,fillRule:"evenodd"})});Ye.propTypes={className:r().string,color:r().string,size:r().oneOfType([r().number,r().string])},Ye.defaultProps={color:"currentColor",size:24};const Ue=e=>(0,y.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"SnowflakeIcon",...e,children:(0,y.jsx)("path",{d:"M15 0s-.1 1.5-.1 3.7c0 0-1.3-.7-2.6-2.2l-1.6 1.2s1.3 1.9 1.9 2.8l2.1 2.4c-.2 2-.4 3.2-.6 4.3-1.5-.4-2.6-.8-4.2-1.5 0 0-.7-.9-1.2-2.7-.4-1.9-.5-2.8-.5-2.8l-2.1.6.4 1.6.2 1.6C4.6 7.9 2.9 7 2.9 7L1.8 9s1.7 1.1 3.8 2.5l-3.5 1.2.6 2.2s1.1-.2 2.5-.5c1.5-.3 3.6-.8 3.6-.8 1.4.9 2.8 1.8 4 2.5-1.2.7-3.1 1.9-4.5 2.8 0 0-.9-.2-2.7-.5-1.8-.2-3.8-.5-3.8-.5l.1 2.1 2.1.6 1.8.6C3.7 22.8 1 24.6 1 24.6l.8 1.4s2.8-1.4 4.9-2.5l-.6 3.6 1.9.3.7-2 1.4-3.6c1.4-1 2.9-2.1 4.4-3.2.1 2.9-.1 6.1-.1 6.1L12 27.4 10.6 29l1.6 1.6 2.6-2.3c.1 2.1.2 3.7.2 3.7h2.3s.1-1.6.2-3.8l1 .9 1.6 1.4 1.6-1.6-2.9-3.2-1.2-1.2c.1-2 .3-4 .5-5.7 1.3.7 2.6 1.7 4.2 2.5l1.3 3.4.8 2 1.8-.6-.4-2.1-.2-1c2.1 1.1 3.7 1.9 3.7 1.9l1.1-2s-1.7-1.1-3.8-2.5l1.5-.5 2-.7-.4-1.6-2.1.1-4.1.7c-1.4-1-2.4-1.8-3.3-2.5 1.3-1.1 2.8-2.5 4.6-3.8 0 0 1 .4 2.3.8 1.3.4 3 .7 3 .7s.2-1.1.4-1.8c-2-.7-3.4-1.3-3.4-1.3C29.3 9.1 31 8.1 31 8.1l-1.1-2s-1.6.8-3.8 2l.3-2 .2-1.7-1.8-.4s-.3 1.3-.7 2.6c-.4 1.4-1.2 2.7-1.2 2.7-1.6 1.2-3.3 2.4-4.6 3.1-.2-1.5-.3-2.8-.4-4.8.9-1.5 3.7-4.7 3.7-4.7l-1.3-1.1L17.4 4c-.1-2.4-.2-4-.2-4H15z",fillRule:"evenodd",clipRule:"evenodd",fill:e.color})});Ue.propTypes={className:r().string,color:r().string,size:r().oneOfType([r().number,r().string])},Ue.defaultProps={color:"currentColor",size:24};var Ge=n(52048),Ze=n(51855);const Qe=e=>(0,y.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"ChevronUpIcon",...e,children:(0,y.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",fill:e.color,d:"M16 14.3L4.3 26.7 0 22.2 16 5.3l16 16.9-4.3 4.5z"})});Qe.propTypes={className:r().string,color:r().string,size:r().oneOfType([r().number,r().string])},Qe.defaultProps={color:"currentColor",size:24};const We=o.forwardRef(((e,t)=>{let{children:n,className:i,onClick:r,target:a,to:s,ariaLabel:c,ariaExpanded:u,ariaControls:d,disabled:p,analytics:m}=e;const{state:{router:{basePath:h,locale:f},origin:w}}=L(),M=function(){const{ProxyLink:e}=(0,o.useContext)(l.ThemeContext);return e}(),{trackNavLinkClick:x}=(0,g.z$)(),j=/^https?:\/\//i.test(s),C=(0,o.useMemo)((()=>""===h||"/"===h?s:j?new URL(s,w).href:new URL(((e,t)=>t===Y?e:`/${t}${e}`)(s,f)||s,w).href),[h,s,w,f,j]),I={className:i,onClick:()=>{if(r&&r(),m){const{navLocation:t,navLocationLevel:n}=m,o=m.clickLocation||s||"none";try{x(t,n,o)}catch(e){console.log(e)}}},target:a,"aria-label":c,"aria-expanded":u,"aria-controls":d};return p?(0,y.jsx)(Le,{ref:t,...I,disabled:!0,children:n}):s?j?(0,y.jsx)(Le,{ref:t,href:C,...I,children:n}):(0,y.jsx)(M,{href:C,children:(0,y.jsx)(Le,{ref:t,...I,children:n})}):(0,y.jsx)(Le,{ref:t,...I,children:n})}));We.displayName="Link",We.propTypes={children:i.node,className:i.string,onClick:i.func,target:i.string,to:i.string,ariaLabel:i.string,ariaExpanded:i.string,ariaControls:i.string,disabled:i.bool,analytics:c.lH};var Fe=We;const He=(0,l.default)(Fe).withConfig({displayName:"DrawerItemstyles__DrawerItem",componentId:"sc-gg9o27-0"})(["display:flex;width:100%;height:60px;border-top:1px solid ",";border-bottom:1px solid ",";margin-top:-1px;font-weight:bold;padding-left:",";padding-right:",";background-color:",";span{flex:1 auto;text-align:left;}","{border:1px solid ",";height:48px;&:first-child{border-top-left-radius:",";border-top-right-radius:",";}&:last-child{border-bottom-left-radius:",";border-bottom-right-radius:",";}}"],(e=>{let{theme:t}=e;return t.color.lightGray2}),(e=>{let{theme:t}=e;return t.color.lightGray2}),(e=>{let{theme:t}=e;return t.spacing[24]}),(e=>{let{theme:t}=e;return t.spacing[24]}),(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return t.mediaQuery.navDesktop}),(e=>{let{theme:t}=e;return t.color.lightGray2}),(e=>{let{theme:t}=e;return t.borderRadius}),(e=>{let{theme:t}=e;return t.borderRadius}),(e=>{let{theme:t}=e;return t.borderRadius}),(e=>{let{theme:t}=e;return t.borderRadius})),Ve=l.default.div.withConfig({displayName:"DrawerItemstyles__IconContainer",componentId:"sc-gg9o27-1"})(["display:inline-flex;margin:0 "," 0 0;color:",";height:100%;align-items:center;img{display:block;}"],(e=>{let{theme:t}=e;return t.spacing[8]}),(e=>{let{theme:t}=e;return t.color.primary})),$e=l.default.div.withConfig({displayName:"DrawerItemstyles__ChevronWrap",componentId:"sc-gg9o27-2"})(["justify-self:flex-end;transform:rotate(",");transition:",";"],(e=>{let{open:t}=e;return t?"180deg":"0deg"}),(e=>{let{theme:t}=e;return`transform ${t.movement.duration} ${t.movement.easing}`})),qe=l.default.div.withConfig({displayName:"DrawerItemstyles__SecondaryIcon",componentId:"sc-gg9o27-3"})(["justify-self:flex-end;"]),Je={"address-book":Ne.Z,"d-pad":Se.Z,"flag-usa":e=>{let{size:t}=e;return(0,y.jsx)(De.F,{country:"Usa",width:`${t}`})},gear:ze.Z,gift:Te.Z,heart:Oe,news:Ae.Z,receipt:ke.Z,offsite:Ee.Z,"star-play-nintendo":_e.Z,storefront:Re.Z,support:Pe.Z,switch:Be.Z,"my-nintendo-tile":Ye,snowflake:Ue},Ke={down:Ge.Z,right:Ze.Z,up:Qe},Xe=e=>{let{chevron:t,children:n,icon:o,secondaryIcon:i,open:r,to:a,...s}=e;const l=Je[o],c=t&&Ke[t],u=i&&Je[i],d=/^https?:\/\//i.test(a);return(0,y.jsxs)(He,{target:d?"_blank":"_self",to:a,...s,children:[o&&(0,y.jsx)(Ve,{children:(0,y.jsx)(l,{size:18})}),(0,y.jsx)("span",{children:n}),c&&(0,y.jsx)($e,{open:r,children:(0,y.jsx)(c,{size:14})}),u&&(0,y.jsx)(qe,{children:(0,y.jsx)(u,{size:14})})]})};Xe.propTypes={chevron:(0,i.oneOf)(Object.keys(Ke)),children:i.string,icon:(0,i.oneOf)(Object.keys(Je)),secondaryIcon:(0,i.oneOf)(Object.keys(Je)),open:i.bool,to:i.string};var et=Xe;const tt=e=>(0,y.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",xmlSpace:"preserve",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"QrCodeIcon",...e,children:[(0,y.jsx)("path",{fill:e.color,d:"M12.299 0H2.9C1.299 0 0 1.325 0 2.955v9.172c0 1.63 1.299 2.955 2.9 2.955h9.399c1.5 0 2.801-1.325 2.901-3.057v-9.07C15.2 1.325 13.9 0 12.299 0zM11.7 11.72H3.4V3.362h8.3v8.356zM6.1 26.292H9c.2 0 .4-.204.4-.406V23.03c0-.203-.2-.406-.4-.406H6.1c-.2 0-.4.203-.4.406v2.855c0 .202.2.406.4.406z"}),(0,y.jsx)("path",{fill:e.color,d:"M6.1 9.376H9c.2 0 .4-.204.4-.408V6.114c0-.203-.2-.407-.4-.407H6.1c-.2 0-.4.204-.4.407v2.854c0 .204.2.408.4.408zm6.199 7.644H2.9c-1.601 0-2.9 1.323-2.9 2.954v9.07C0 30.674 1.299 32 2.9 32h9.399c1.5 0 2.801-1.326 2.901-2.956v-9.07c0-1.63-1.3-2.954-2.901-2.954zM11.7 28.636H3.4v-8.254h8.3v8.254zm11.2-19.26h2.899c.201 0 .401-.204.401-.408V6.114c0-.203-.2-.407-.401-.407H22.9c-.2 0-.4.204-.4.407v2.854c0 .204.2.408.4.408z"}),(0,y.jsx)("path",{fill:e.color,d:"M29.099 0H19.7c-1.601 0-2.901 1.325-2.901 2.955v9.172c0 1.63 1.3 2.955 2.901 2.955h9.399c1.5 0 2.801-1.325 2.901-3.057v-9.07C32 1.325 30.7 0 29.099 0zM28.5 11.72h-8.3V3.362h8.3v8.356zm-7.594 15.897h-2.899c-.2 0-.4.204-.4.408v2.853c0 .204.2.409.4.409h2.9c.2 0 .4-.205.4-.409v-2.853c0-.204-.2-.408-.4-.408zm0-4.992h-2.899c-.2 0-.4.203-.4.406v2.855c0 .202.2.406.4.406h2.9c.2 0 .4-.204.4-.406V23.03c0-.203-.2-.406-.4-.406zm0-4.995h-2.899c-.2 0-.4.204-.4.409v2.852c0 .205.2.409.4.409h2.9c.2 0 .4-.204.4-.409V18.04c0-.205-.2-.409-.4-.409zM25.942 17.63h-2.9c-.2 0-.4.204-.4.409v2.852c0 .205.2.409.4.409h2.9c.2 0 .4-.204.4-.409V18.04c0-.205-.2-.409-.4-.409zm0 9.987h-2.9c-.2 0-.4.204-.4.408v2.853c0 .204.2.409.4.409h2.9c.2 0 .4-.205.4-.409v-2.853c0-.204-.2-.408-.4-.408zm0-4.992h-2.9c-.2 0-.4.203-.4.406v2.855c0 .202.2.406.4.406h2.9c.2 0 .4-.204.4-.406V23.03c0-.203-.2-.406-.4-.406zM30.992 17.63h-2.9c-.2 0-.4.204-.4.409v2.852c0 .205.2.409.4.409h2.9c.2 0 .4-.204.4-.409V18.04c0-.205-.2-.409-.4-.409zm0 9.987h-2.9c-.2 0-.4.204-.4.408v2.853c0 .204.2.409.4.409h2.9c.2 0 .4-.205.4-.409v-2.853c0-.204-.2-.408-.4-.408zm0-4.992h-2.9c-.2 0-.4.203-.4.406v2.855c0 .202.2.406.4.406h2.9c.2 0 .4-.204.4-.406V23.03c0-.203-.2-.406-.4-.406z"})]});tt.propTypes={className:r().string,color:r().string,size:r().oneOfType([r().number,r().string])},tt.defaultProps={color:"currentColor",size:24};const nt=e=>(0,y.jsx)("svg",{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"CheckmarkIcon",...e,children:(0,y.jsx)("path",{fill:e.color,d:"M26.737 2L12.786 21.945 4.047 15.82.5 20.394 14.204 30 31.5 5.274 26.737 2z"})});nt.propTypes={className:r().string,color:r().string,size:r().oneOfType([r().number,r().string])},nt.defaultProps={color:"currentColor",size:24};const ot=l.default.div.withConfig({displayName:"Miistyles__MiiImgWrap",componentId:"sc-7h29aw-0"})(["position:relative;width:","px;height:","px;overflow:hidden;border-radius:100%;background-color:",";"],(e=>{let{size:t}=e;return t}),(e=>{let{size:t}=e;return t}),(e=>{let{theme:t}=e;return t.color.lightGray2})),it=l.default.img.withConfig({displayName:"Miistyles__MiiImg",componentId:"sc-7h29aw-1"})(["position:absolute;left:0;top:0;height:100%;width:auto;",";@media (prefers-reduced-motion){animation:none;}"],(e=>{let{animation:t,size:n}=e;return"spin"===t.name?(0,l.css)(["animation-name:",";animation-duration:",";animation-timing-function:steps(16);animation-iteration-count:",";animation-direction:reverse;"],(e=>(0,l.keyframes)(["from{left:0px}to{left:-","px}"],16*e))(n),t.duration,t.iterationCount):(0,l.css)(["animation:none;"])})),rt=l.default.img.withConfig({displayName:"Miistyles__NoMiiImg",componentId:"sc-7h29aw-2"})(["width:","px;height:","px;"],(e=>{let{size:t}=e;return t}),(e=>{let{size:t}=e;return t})),at=e=>{let{className:t,size:n,expression:i,animation:r}=e;const{state:{customer:{loading:a,data:s}},localizer:{text:l}}=L(),u=(0,o.useMemo)((()=>{switch(i){case c.bN.SURPRISE:return"&expression=surprise&characterXRotate=350";case c.bN.SMILE:return"&expression=smile";case c.bN.ANGER:return"&expression=anger";case c.bN.FRUSTRATED:return"&expression=frustrated";default:return"&expression=normal"}}),[i]);if(a||!s?.mii)return(0,y.jsx)(rt,{className:t,src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMThweCIgaGVpZ2h0PSIxOHB4IiB2aWV3Qm94PSIwIDAgMTggMTgiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+SWNvbi9Vc2VyIGFjY291bnQvTm8gbG9naW4gKGNpcmNsZSk8L3RpdGxlPgogICAgPGRlZnM+CiAgICAgICAgPGNpcmNsZSBpZD0icGF0aC0xIiBjeD0iOSIgY3k9IjkiIHI9IjkiPjwvY2lyY2xlPgogICAgPC9kZWZzPgogICAgPGcgaWQ9IlN5bWJvbHMiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxI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Y3NywyLjgxMjUgMTMuNjE2MTI5LDQuODcwMTYxMjkgMTMuNjE2MTI5LDcuNDE3NzQxOTQgQzEzLjYxNjEyOSw5Ljk2NTMyMjU4IDExLjU1ODQ2NzcsMTIuMDIyOTgzOSA5LjAxMDg4NzEsMTIuMDIyOTgzOSBaIE0yLjI1LDE4IEMyLjI1LDE1LjIwNzQ1OTcgNC41NTI2MjA5NywxMi45MDQ4Mzg3IDcuMzk0MTUzMjMsMTIuOTA0ODM4NyBMMTAuNDgwNjQ1MiwxMi45MDQ4Mzg3IEMxMy4zMjIxNzc0LDEyLjkwNDgzODcgMTUuNjI0Nzk4NCwxNS4yMDc0NTk3IDE1LjYyNDc5ODQsMTggTDIuMjUsMTgiIGlkPSJTaGFwZSIgZmlsbD0iIzk2OTY5NiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==",size:n,alt:l("User Icon")});const d=`https://${s.mii.imageOrigin}/2.0.0/mii_images/${s.mii.id}/${s.mii.etag}.png?type=face&width=128${u}${r&&"&instanceCount=16"}`;return(0,y.jsx)(ot,{className:t,size:n,children:(0,y.jsx)(it,{src:d,size:n,animation:r,alt:l("User Mii")})})};at.defaultProps={animation:{iterationCount:"infinite"},size:128},at.propTypes={className:i.string,size:i.number,expression:(0,i.oneOf)(["NORMAL","SMILE","SURPRISE","ANGER","FRUSTRATED"]),animation:(0,i.shape)({name:(0,i.oneOf)(["none","spin"]),duration:i.string,iterationCount:i.string})};var st=at;const lt=l.default.div.withConfig({displayName:"AuthdCardstyles__AuthdCard",componentId:"sc-1v34ib3-0"})(["background-color:",";border:1px solid ",";border-radius:",";box-shadow:0 "," "," 0 rgba(72,72,72,0.15);overflow:hidden;transition:transform ","ms;transform-style:preserve-3d;backface-visibility:hidden;"],(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return t.color.lightGray2}),(e=>{let{theme:t}=e;return t.borderRadiusRound}),(e=>{let{theme:t}=e;return t.spacing[4]}),(e=>{let{theme:t}=e;return t.spacing[16]}),c.th.USERCARD_FLIP),ct=l.default.button.withConfig({displayName:"AuthdCardstyles__QRCodeButton",componentId:"sc-1v34ib3-1"})(["position:absolute;top:0;right:0;background-color:",";width:",";height:",";border:none;border-bottom-left-radius:",";display:flex;align-items:center;justify-content:center;cursor:pointer;"],(e=>{let{theme:t}=e;return t.color.lightGray3}),(e=>{let{theme:t}=e;return t.spacing[48]}),(e=>{let{theme:t}=e;return t.spacing[48]}),(e=>{let{theme:t}=e;return t.borderRadiusRound}));var ut=n(13675),dt=n(7162),pt=n(80149);const mt=(0,l.default)(lt).withConfig({displayName:"AuthdCardFrontstyles__AuthdCardFront",componentId:"sc-lf8zoa-0"})(["transform:",";"],(e=>{let{flipped:t}=e;return t?"rotateY(-180deg)":"none"})),ht=l.default.div.withConfig({displayName:"AuthdCardFrontstyles__MiiGrid",componentId:"sc-lf8zoa-1"})(["display:grid;grid-template-columns:minmax(","px,calc(50% - ","px)) auto;grid-template-rows:repeat(2,1fr);column-gap:",";align-items:center;max-width:","px;margin-left:",";margin-right:",";margin-top:",";margin-bottom:",";","{grid-template-columns:repeat(2,auto);max-width:","px;}"],52,26,(e=>{let{theme:t}=e;return t.spacing[12]}),296,(e=>{let{theme:t}=e;return t.spacing[4]}),(e=>{let{theme:t}=e;return t.pxToRem(48)}),(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.navDesktop}),368),gt=l.default.a.withConfig({displayName:"AuthdCardFrontstyles__MiiWrap",componentId:"sc-lf8zoa-2"})(["grid-row:1 / span 2;justify-self:flex-end;cursor:pointer;transition:background-color ",";&:hover{& > *{background-color:",";transition:background-color ",";}}& > *{transition:background-color ",";}"],(e=>{let{theme:t}=e;return t.movement.duration}),(e=>{let{theme:t}=e;return t.color.darkGray4}),(e=>{let{theme:t}=e;return t.movement.duration}),(e=>{let{theme:t}=e;return t.movement.duration})),yt=(0,l.default)(N.H).withConfig({displayName:"AuthdCardFrontstyles__UserNickname",componentId:"sc-lf8zoa-3"})(["margin:0;","{font-size:",";align-self:flex-end;}"],(e=>{let{theme:t}=e;return t.mediaQuery.navDesktop}),(e=>{let{theme:t}=e;return t.font.size.h1SDesktop})),ft=(0,l.default)(ut.T).attrs((()=>({variant:"caption"}))).withConfig({displayName:"AuthdCardFrontstyles__UserJoinDate",componentId:"sc-lf8zoa-4"})(["margin:0;","{align-self:flex-start;}"],(e=>{let{theme:t}=e;return t.mediaQuery.navDesktop})),wt=l.default.div.withConfig({displayName:"AuthdCardFrontstyles__PointsTotals",componentId:"sc-lf8zoa-5"})(["display:grid;grid-template-columns:repeat(2,auto);max-width:","px;margin-left:auto;margin-right:auto;margin-top:",";margin-bottom:",";"],296,(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.spacing[16]})),Mt=l.default.div.withConfig({displayName:"AuthdCardFrontstyles__PointsGrid",componentId:"sc-lf8zoa-6"})(["display:grid;grid-template-columns:20px auto;grid-template-rows:repeat(2,20px);grid-column-gap:",";align-items:center;padding-left:",";&:first-child{border-right:1px solid ",";padding-left:",";padding-right:",";","{padding-left:0;}}"],(e=>{let{theme:t}=e;return t.spacing[8]}),(e=>{let{theme:t}=e;return t.spacing[12]}),(e=>{let{theme:t}=e;return t.color.lightGray2}),(e=>{let{theme:t}=e;return t.spacing[12]}),(e=>{let{theme:t}=e;return t.spacing[12]}),(e=>{let{theme:t}=e;return t.mediaQuery.navDesktop})),xt=(0,l.default)(dt.Z).withConfig({displayName:"AuthdCardFrontstyles__GoldPointsIcon",componentId:"sc-lf8zoa-7"})(["align-self:start;grid-row:1/3;"]),Lt=(0,l.default)(pt.Z).withConfig({displayName:"AuthdCardFrontstyles__PlatinumPointsIcon",componentId:"sc-lf8zoa-8"})(["align-self:start;grid-row:1/3;"]),jt=(0,l.default)(ut.T).withConfig({displayName:"AuthdCardFrontstyles__PointTypeLabel",componentId:"sc-lf8zoa-9"})(["margin:0;line-height:1rem;"]),Ct=(0,l.default)(Fe).withConfig({displayName:"AuthdCardFrontstyles__NSOStatusLink",componentId:"sc-lf8zoa-10"})(["display:flex;flex-direction:column;padding:",";border-top:1px solid ",";"],(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.color.lightGray2})),It=l.default.div.withConfig({displayName:"AuthdCardFrontstyles__NSOStatusValue",componentId:"sc-lf8zoa-11"})(["display:flex;align-items:center;justify-content:flex-end;gap:",";svg{fill:",";}"],(e=>{let{theme:t}=e;return t.spacing[8]}),(e=>{let{theme:t}=e;return t.color.primary})),vt=(0,l.default)(ut.T).withConfig({displayName:"AuthdCardFrontstyles__NSOStatusLabel",componentId:"sc-lf8zoa-12"})(["margin:0;font-weight:",";margin-bottom:",";"],(e=>{let{theme:t}=e;return t.font.weight.bold}),(e=>{let{theme:t}=e;return t.spacing[4]})),bt=(0,l.default)(ut.T).withConfig({displayName:"AuthdCardFrontstyles__NSOStatusManageText",componentId:"sc-lf8zoa-13"})(["font-weight:",";color:",";color:",";"],(e=>{let{theme:t}=e;return t.font.weight.bold}),(e=>{let{theme:t}=e;return t.color.primary}),(e=>{let{theme:t}=e;return t.color.primary})),Nt=e=>{let{flipped:t,toggleFlipped:n,miiExpression:i,setMiiExpression:r,miiAnimation:a}=e;const{state:{accountsUrl:s,isDesktop:l,customer:{data:u}},localizer:{text:d,date:p,DateFormat:m}}=L(),{membershipStatus:h,pointsWallet:g}=u,f=p(u.createdAt,{format:m.YEAR}),w=(0,o.useMemo)((()=>l?90:52),[l]);return(0,y.jsxs)(mt,{"aria-hidden":t,flipped:t,children:[(0,y.jsx)(ct,{onClick:n,"aria-label":d("Show back"),children:(0,y.jsx)("div",{children:(0,y.jsx)(tt,{size:26})})}),(0,y.jsxs)(ht,{children:[(0,y.jsx)(gt,{onMouseEnter:()=>r(c.bN.SMILE),onMouseLeave:()=>r(c.bN.NORMAL),href:`${s}/mii_studio`,target:"_blank",children:(0,y.jsx)(st,{expression:i,animation:a,size:w})}),(0,y.jsx)(yt,{children:u.nickname}),(0,y.jsxs)(ft,{children:[d("Member since")," ",f]})]}),(0,y.jsxs)(wt,{children:[(0,y.jsxs)(Mt,{children:[(0,y.jsx)(xt,{size:20}),(0,y.jsx)(jt,{variant:"caption",children:d("Gold Points")}),(0,y.jsx)(jt,{variant:"title",children:g?.gold?.total||0})]}),(0,y.jsxs)(Mt,{children:[(0,y.jsx)(Lt,{size:20}),(0,y.jsx)(jt,{variant:"caption",children:d("Platinum Points")}),(0,y.jsx)(jt,{variant:"title",children:g?.platinum?.total||0})]})]}),(0,y.jsxs)(Ct,{to:h?.active?"https://ec.nintendo.com/my/membership":"/switch/online/",children:[(0,y.jsxs)(It,{children:[h?.active&&(0,y.jsx)(nt,{size:12}),(0,y.jsx)(vt,{variant:"caption",children:d(h?.active?"Nintendo Switch Online":"Level up with Nintendo Switch Online")})]}),(0,y.jsx)(bt,{variant:"caption",children:d(h?.active?"Manage":"Shop now")})]})]})};Nt.propTypes={flipped:i.bool,toggleFlipped:i.func,miiExpression:(0,i.oneOf)(Object.values(c.bN)),setMiiExpression:i.func,miiAnimation:(0,i.shape)({name:i.string,duration:i.string,iterationCount:i.string})};var St=Nt;const Dt=(0,l.default)(lt).withConfig({displayName:"AuthdCardBackstyles__AuthdCardBack",componentId:"sc-12lfjd-0"})(["position:absolute;top:0;left:0;width:100%;height:100%;transform:",";padding:",";"],(e=>{let{flipped:t}=e;return t?"none":"rotateY(180deg)"}),(e=>{let{theme:t}=e;return t.spacing[16]})),zt=(0,l.default)(st).withConfig({displayName:"AuthdCardBackstyles__StyledMii",componentId:"sc-12lfjd-1"})(["width:28px;height:28px;"]),Tt=l.default.div.withConfig({displayName:"AuthdCardBackstyles__QRContainer",componentId:"sc-12lfjd-2"})(["display:flex;flex-direction:space-between;gap:",";align-items:center;"],(e=>{let{theme:t}=e;return t.spacing[16]})),Ot=l.default.div.withConfig({displayName:"AuthdCardBackstyles__QRWrap",componentId:"sc-12lfjd-3"})(["","{canvas{width:100% !important;height:auto !important;}}"],(e=>{let{theme:t}=e;return t.mediaQuery.desktop})),At=(0,l.default)(ut.T).withConfig({displayName:"AuthdCardBackstyles__QRTitle",componentId:"sc-12lfjd-4"})(["font-size:",";span{font-size:",";}display:block;margin-bottom:",";margin-right:",";","{font-size:",";span{font-size:",";}}"],(e=>{let{theme:t}=e;return t.font.size.legalMobile}),(e=>{let{theme:t}=e;return t.font.size.legalMobile}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.spacing[48]}),(e=>{let{theme:t}=e;return t.mediaQuery.tabletSmall}),(e=>{let{theme:t}=e;return t.font.size.captionMobile}),(e=>{let{theme:t}=e;return t.font.size.captionMobile})),kt=(0,l.default)(ut.T).withConfig({displayName:"AuthdCardBackstyles__QRText",componentId:"sc-12lfjd-5"})(["font-size:",";margin-bottom:",";span{font-size:",";}"],(e=>{let{theme:t}=e;return t.font.size.legalMobile}),(e=>{let{theme:t}=e;return t.spacing[8]}),(e=>{let{theme:t}=e;return t.font.size.legalMobile})),Et=(0,l.default)(ut.T).withConfig({displayName:"AuthdCardBackstyles__QRLegalText",componentId:"sc-12lfjd-6"})(["font-size:",";margin-top:",";"],(e=>{let{theme:t}=e;return t.font.size.legalMobile}),(e=>{let{theme:t}=e;return t.spacing[12]}));var _t=n(92988);const Rt=(0,o.lazy)((()=>n.e(5716).then(n.t.bind(n,35716,23)).then((e=>{let{QRCode:t}=e;return{default:t}})))),Pt=e=>{let{flipped:t,toggleFlipped:n}=e;const{state:{customer:{data:i}},localizer:{text:r}}=L(),[a,s]=(0,o.useState)(!1),l=t||a,u=(0,o.useCallback)((()=>Rt?l?(0,y.jsx)(o.Suspense,{fallback:(0,y.jsx)("div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);return(0,y.jsxs)(Dt,{flipped:t,"aria-hidden":!t,children:[(0,y.jsx)(ct,{onClick:()=>{s(!0),n()},"aria-label":r("Show front"),children:(0,y.jsx)("div",{children:(0,y.jsx)(zt,{data:i.mii})})}),(0,y.jsxs)(At,{variant:"title",children:[r("Present this QR Code\xae to check in at select Nintendo events and locations.")," ",(0,y.jsx)(_t.D,{href:"https://accounts.nintendo.com/qrcode",children:r("Details")})]}),(0,y.jsxs)(Tt,{children:[(0,y.jsx)(Ot,{"aria-label":r("User's QR code"),children:u()}),(0,y.jsxs)("div",{children:[(0,y.jsxs)(kt,{variant:"title",children:[r("This QR Code contains your Nintendo Account information."),(0,y.jsx)("br",{}),r("See "),(0,y.jsx)(_t.D,{href:"/privacy-policy/",children:r("Nintendo Privacy Policy")})]}),(0,y.jsx)(Et,{variant:"legal",children:r("QR Code is a registered trademark of DENSO WAVE INCORPORATED.")})]})]})]})};Pt.propTypes={flipped:i.bool,toggleFlipped:i.func};var Bt=Pt;const Yt=l.default.div.withConfig({displayName:"CardWrap",componentId:"sc-1h06vbw-0"})(["position:relative;margin:",";perspective:1000px;","{margin-left:0;margin-right:0;","}"],(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.mediaQuery.navDesktop}),(e=>{let{loggedIn:t}=e;return t&&(0,l.css)(["position:absolute;top:calc( "," + "," );right:",";margin:0;width:","px;transition:right ","ms ",";"],c.Vz.DRAWER_HEADER_MOBILE,(e=>{let{theme:t}=e;return t.spacing[4]}),(e=>{let{flyoutOpen:t}=e;return t?0:(0,l.css)(["calc(","px - ",")"],c.n.FLYOUT_DESKTOP-c.n.USER_CARD_DESKTOP,(e=>{let{theme:t}=e;return t.spacing[40]}))}),c.n.USER_CARD_DESKTOP,1.5*c.th.DRAWER_MOBILE,(e=>{let{flyoutOpen:t}=e;return t?(0,l.css)(["","ms"],c.th.DRAWER_MOBILE/2):null}))}));Yt.propTypes={loggedIn:i.bool.isRequired,flyoutOpen:i.bool};var Ut=Yt;const Gt=e=>{let{flyoutOpen:t}=e;const[n,i]=(0,o.useState)(!1),[r,a]=(0,o.useState)(c.bN.NORMAL),[s,l]=(0,o.useState)(c.js.NONE),u=(0,o.useRef)(null),d=(0,o.useCallback)((()=>{n?(l(c.js.SPIN_TWICE),u.current=setTimeout((()=>{a(c.bN.NORMAL),l(c.js.NONE)}),c.th.MII_FLIP_SPIN+100)):a(c.bN.SURPRISE),i((e=>!e))}),[n]);return(0,o.useEffect)((()=>()=>clearTimeout(u.current)),[]),(0,y.jsxs)(Ut,{loggedIn:!0,flyoutOpen:t,children:[(0,y.jsx)(St,{flipped:n,toggleFlipped:d,miiExpression:r,setMiiExpression:a,miiAnimation:s}),(0,y.jsx)(Bt,{flipped:n,toggleFlipped:d})]})};Gt.propTypes={flyoutOpen:i.bool};var Zt=Gt,Qt=n(54054);const Wt=l.default.div.withConfig({displayName:"UnAuthdCardstyles__UnAuthdCard",componentId:"sc-11dpf8s-0"})(["padding-top:",";padding-bottom:",";padding-left:",";padding-right:",";background-color:",";border-radius:",";margin-bottom:",";"],(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.spacing[8]}),(e=>{let{theme:t}=e;return t.spacing[28]}),(e=>{let{theme:t}=e;return t.spacing[28]}),(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return t.borderRadius}),(e=>{let{theme:t}=e;return t.spacing[16]})),Ft=l.default.div.withConfig({displayName:"UnAuthdCardstyles__UnAuthdCardTextWrap",componentId:"sc-11dpf8s-1"})(["margin-left:",";margin-right:",";"],(e=>{let{theme:t}=e;return t.spacing[12]}),(e=>{let{theme:t}=e;return t.spacing[12]})),Ht=l.default.div.withConfig({displayName:"UnAuthdCardstyles__UnAuthdCardListItem",componentId:"sc-11dpf8s-2"})(["display:flex;gap:",";margin-top:",";margin-bottom:",";p{font-weight:700;margin-top:0;margin-bottom:0;}svg{fill:",";}"],(e=>{let{theme:t}=e;return t.spacing[8]}),(e=>{let{theme:t}=e;return t.spacing[4]}),(e=>{let{theme:t}=e;return t.spacing[4]}),(e=>{let{theme:t}=e;return t.color.primary})),Vt=(0,l.default)(le.B).withConfig({displayName:"UnAuthdCardstyles__CreateAccountButton",componentId:"sc-11dpf8s-3"})(["margin-top:",";&:hover{color:",";}&::before{background-color:transparent;border:none;}&:hover:not(:disabled)::before{background-color:transparent;border:none;}"],(e=>{let{theme:t}=e;return t.spacing[8]}),(e=>{let{theme:t}=e;return t.color.primaryHover})),$t=e=>{let{promptLogin:t}=e;const{state:{accountsUrl:n,router:{locale:i}},localizer:{text:r}}=L(),a=(0,o.useMemo)((()=>{const e=new URL(`${n}/authorize_age_gate_us`);return e.searchParams.set("redirect_uri",window.location.href),e.searchParams.set("lang",i),e.toString()}),[n,i]),s=[r("Shop online"),r("Earn My Nintendo points"),r("Save a Wish List")];return(0,y.jsxs)(Ut,{loggedIn:!1,children:[(0,y.jsxs)(Wt,{children:[(0,y.jsx)(Qt.I,{assetPath:"/Dev/Global%20Navigation/unauthd-asset.png",alt:""}),(0,y.jsxs)(Ft,{children:[(0,y.jsx)(ut.T,{variant:"title",children:r("With a free account, you can")}),s.map((e=>(0,y.jsxs)(Ht,{children:[(0,y.jsx)(nt,{size:11}),(0,y.jsx)(ut.T,{variant:"caption",children:e})]},e)))]})]}),(0,y.jsx)(le.B,{onClick:t,buttonWidth:"full",still:!0,children:r("Log in")}),(0,y.jsx)(Vt,{variant:"secondary",href:a,buttonWidth:"full",still:!0,children:r("Sign up")})]})};$t.propTypes={promptLogin:i.func};var qt=$t;const Jt=e=>{let{flyoutOpen:t}=e;const{state:{customer:{data:n}},methods:{promptLogin:o}}=L();return n?(0,y.jsx)(Zt,{flyoutOpen:t}):(0,y.jsx)(qt,{promptLogin:o})};Jt.propTypes={flyoutOpen:i.bool};var Kt=Jt;const Xt=e=>{let{handleClose:t,flyoutOpen:n}=e;const{state:{accountsUrl:i,customer:{data:r},maintenance:a,router:{locale:s}},localizer:{text:l},methods:{promptLogout:u,promptLogin:d}}=L(),p=se(i),m=(0,o.useMemo)((()=>r?p.internal.authd.map((e=>{if(null===e)return null;if(e.excludeLocale.includes(s))return null;const{label:n,icon:o,to:i}=e;return(0,y.jsx)(et,{icon:o,to:i,onClick:t,disabled:a.store?.active&&"Wish List"!==n,analytics:{navLocation:"mobile bottom",navLocationLevel:2},children:l(n)},n)})):p.internal.unauthd.map((e=>{if(null===e)return null;if(e.excludeLocale.includes(s))return null;const{label:t,icon:n,to:o}=e;return(0,y.jsx)(et,{icon:n,to:o,analytics:{navLocation:"mobile bottom",navLocationLevel:2},children:l(t)},t)}))),[r,l,p,t,a.store?.active,s]);return(0,y.jsxs)(ue,{children:[(0,y.jsx)(be,{handleClose:t,children:r?`${l("Welcome {0}",{args:[r.nickname]})}`:l("Log in / Sign up")}),(0,y.jsxs)(de,{height:c.Vz.DRAWER_ACCOUNT_MOBILE,children:[(0,y.jsx)(Kt,{promptLogin:d,flyoutOpen:n}),(0,y.jsxs)(pe,{user:Boolean(r),children:[(0,y.jsx)("div",{children:m}),(0,y.jsx)(me,{children:p.external.map((e=>{let{icon:n,label:o,to:i}=e;return(0,y.jsx)(et,{icon:n,secondaryIcon:"offsite",to:i,onClick:t,analytics:{navLocation:"mobile bottom",navLocationLevel:2},children:l(o)},o)}))}),r&&(0,y.jsx)(me,{children:(0,y.jsx)(he,{onClick:u,analytics:{navLocation:"mobile bottom",navLocationLevel:2,clickLocation:"Sign out"},children:l("Sign out")})})]})]})]})};Xt.propTypes={handleClose:i.func,flyoutOpen:i.bool};var en=Xt,tn=n(76542),nn=n(13584),on=n(18019),rn=n(99221),an=n(60396),sn=n(61970),ln=n.n(sn),cn=n(4792),un=n(77155),dn=n(64544),pn=n(70510);var mn=(e,t)=>{if(!e.length||!t.length)return"";const n=t.filter((t=>{const n=t.toLowerCase(),o=e.toLowerCase();return n!==o&&n.startsWith(o)})).sort(((e,t)=>e.length-t.length)),o=n[0];return o?`${e}${o.substring(e.length)}`:""};const hn=l.default.div.withConfig({displayName:"AutoCompleteInputstyles__Container",componentId:"sc-ax1lsj-0"})(["position:relative;width:100%;height:100%;"]),gn=l.default.input.attrs({type:"text",autoComplete:"off",autoCapitalize:"off",autoCorrect:"off"}).withConfig({displayName:"AutoCompleteInputstyles__ActiveInput",componentId:"sc-ax1lsj-1"})(["color:",";width:100%;position:absolute;top:0;left:0;padding:0;border:0;background:transparent;z-index:2;"],(e=>{let{theme:t}=e;return t.color.darkGray2})),yn=(0,l.default)(gn).withConfig({displayName:"AutoCompleteInputstyles__Suggestion",componentId:"sc-ax1lsj-2"})(["color:",";z-index:1;"],(e=>{let{theme:t}=e;return t.color.darkGray4})),fn=o.forwardRef((function(e,t){const{className:n,placeholder:i,value:r,onInputChange:a,onFocus:s,onBlur:l,suggestions:c,...u}=e,d=mn(r,c),[p,m]=(0,o.useState)(!1),h=(0,o.useCallback)((e=>{9===e.keyCode&&d.length>0&&r!==d&&(e.preventDefault(),a&&a(d))}),[a,r,d]),g=(0,o.useCallback)((e=>{a&&a(e.target.value)}),[a]),f=(0,o.useCallback)((e=>{m(!0),s&&s(e)}),[s]),w=(0,o.useCallback)((e=>{m(!1),l&&l(e)}),[l]);return(0,y.jsxs)(hn,{children:[(0,y.jsx)(gn,{ref:t,className:n,placeholder:i,value:r,onKeyDown:h,onChange:g,onFocus:f,onBlur:w,...u}),p&&(0,y.jsx)(yn,{className:n,value:d,disabled:!0})]})}));fn.defaultProps={value:"",suggestions:[]},fn.propTypes={className:r().string,placeholder:r().string,value:r().string,onInputChange:r().func,onFocus:r().func,onBlur:r().func,suggestions:r().arrayOf(r().string)};var wn=fn,Mn=n(5847);const xn=l.default.form.withConfig({displayName:"SearchInputstyles__ContainerForm",componentId:"sc-1r59ztq-0"})(["display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid ",";height:",";width:100%;svg{margin-right:10px;}&:hover{transition:",";border-bottom:1px solid ",";}"," ","{max-width:",";font-size:",";}"],(e=>{let{theme:t}=e;return t.color.darkGray2}),(e=>{let{theme:t}=e;return t.pxToRem(34)}),(e=>{let{theme:t}=e;return`border-bottom ${t.movement.duration} ${t.movement.easing} ${t.movement.delay}`}),(e=>{let{theme:t}=e;return t.color.primary}),(e=>{let{inputEnabled:t,theme:n}=e;return t&&(0,l.css)(["border-bottom:1px solid ",";"],n.color.primary)}),(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),(e=>{let{theme:t}=e;return t.pxToRem(450)}),(e=>{let{theme:t}=e;return t.font.size.captionDesktop})),Ln=(0,l.default)(pn.Z).attrs((()=>({size:18}))).withConfig({displayName:"SearchInputstyles__SearchIcon",componentId:"sc-1r59ztq-1"})(["color:",";transition:",";",""],(e=>{let{theme:t}=e;return t.color.darkGray2}),(e=>{let{theme:t}=e;return`color ${t.movement.duration} ${t.movement.easing} ${t.movement.delay}`}),(e=>{let{$inputEnabled:t,theme:n}=e;return t&&(0,l.css)(["color:",";"],n.color.primary)})),jn=l.default.button.withConfig({displayName:"SearchInputstyles__Button",componentId:"sc-1r59ztq-2"})(["display:flex;align-items:center;flex:1;background:none;border:none;color:",";cursor:pointer;height:100%;min-width:220px;line-height:1.5;padding:0;transition:",";span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}&:hover{color:",";","{color:",";}}"],(e=>{let{theme:t}=e;return t.color.darkGray3}),(e=>{let{theme:t}=e;return`color ${t.movement.duration} ${t.movement.easing} ${t.movement.delay}`}),(e=>{let{theme:t}=e;return t.color.primary}),Ln,(e=>{let{theme:t}=e;return t.color.primary})),Cn=l.default.div.withConfig({displayName:"SearchInputstyles__InputWrapper",componentId:"sc-1r59ztq-3"})(["display:flex;align-items:center;height:100%;width:100%;"]),In=(0,l.default)(wn).withConfig({displayName:"SearchInputstyles__Input",componentId:"sc-1r59ztq-4"})(["width:100%;height:100%;line-height:1.5;flex:1;&:focus[data-focus-visible-added],&:focus-visible{outline:none;}::placeholder{color:",";}"],(e=>{let{theme:t}=e;return t.color.darkGray3})),vn=l.default.input.withConfig({displayName:"SearchInputstyles__HiddenInput",componentId:"sc-1r59ztq-5"})(["position:absolute;visibility:hidden;"]),bn=(0,l.default)(Mn.S).withConfig({displayName:"SearchInputstyles__Select",componentId:"sc-1r59ztq-6"})(["display:none;flex-basis:140px;flex-shrink:0;","{display:inline-block;}"],(e=>{let{theme:t}=e;return t.mediaQuery.desktop})),Nn=o.forwardRef((function(e,t){const{className:n,searchPath:i,inputEnabled:r,inputValue:a,selectedOption:s,onClick:l,onDropdownChange:c,onSearchSubmit:u,onInputChange:d,options:p,suggestions:m}=e,h={SEARCH_LABELS:rn.p,...e.labels},{text:f}=(0,g.i1)(),{trackSearchClick:w}=(0,dn.u)(),M=(0,o.useMemo)((()=>s&&{value:s.value,label:f(s.label)}),[s,f]),x=(0,o.useMemo)((()=>p.map((e=>{let{value:t,label:n}=e;return{value:t,label:f(n)}}))),[p,f]),L=(0,o.useCallback)((e=>{e.preventDefault(),l&&l()}),[l]),j=(0,o.useCallback)((e=>{d&&d(e)}),[d]),C=(0,o.useCallback)((e=>{c&&c(e)}),[c]),I=(0,o.useCallback)((e=>{e.target.select()}),[]),v=(0,o.useCallback)((e=>{if(e.preventDefault(),u){const e=a;e&&M?.label&&w(e,"User hit ",M?.label),u({queryValue:e,categoryValue:M?.value?.category})}}),[a,M,u,w]);return(0,y.jsxs)(xn,{className:n,inputEnabled:r,onSubmit:v,action:i,method:"get",autoComplete:"off","data-testid":"form",children:[r?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(Cn,{children:[(0,y.jsx)(Ln,{$inputEnabled:r}),(0,y.jsx)(In,{name:"q",ref:t,value:a,type:"text","aria-label":f(h.placeholderLabel),placeholder:f(h.placeholderLabel),suggestions:m,onInputChange:j,onFocus:I})]}),(0,y.jsx)("input",{type:"hidden",name:"cat",value:M?.value?.category||x[0].value?.category}),(0,y.jsx)(vn,{type:"submit"})]}):(0,y.jsxs)(jn,{"aria-haspopup":"dialog",ref:t,onClick:L,children:[(0,y.jsx)(Ln,{$inputEnabled:r}),(0,y.jsx)("span",{children:a||f(h.placeholderLabel)})]}),(0,y.jsx)(bn,{onSelect:C,value:M,options:x})]})}));Nn.defaultProps={labels:rn.p,options:rn.f,suggestions:[]},Nn.propTypes={className:r().string,searchPath:r().string,inputEnabled:r().bool,inputValue:r().string,suggestions:r().arrayOf(r().string),selectedOption:cn.O,onClick:r().func,onSearchSubmit:r().func,onDropdownChange:r().func,onInputChange:r().func,labels:cn.L,options:r().arrayOf(cn.O).isRequired};var Sn=Nn;var Dn=(e,t,n)=>{const[i,r]=(0,o.useState)([]),a=(0,o.useMemo)((()=>ln()(n.appId,n.appKey)),[n.appId,n.appKey]),s=(0,o.useMemo)((()=>a.initIndex(t)),[t,a]),l=(0,o.useMemo)((()=>({suggestions:i})),[i]);return(0,o.useEffect)((()=>{e?rn.E&&s.search(e.toLowerCase(),{hitsPerPage:rn.M}).then((e=>{let{hits:t}=e;r(t.map((e=>{let{query:t}=e;return t})))})):r([])}),[s,e]),l};const zn=l.default.div.attrs({tabIndex:"-1","aria-hidden":"true"}).withConfig({displayName:"SearchFlyoverstyles__Overlay",componentId:"sc-14rqey7-0"})(["visibility:",";pointer-events:",";position:fixed;top:0;left:0;z-index:",";width:100%;height:100vh;background-color:",";transition:",";transition-property:visibility,background-color;"],(e=>{let{isOpen:t}=e;return t?"visible":"hidden"}),(e=>{let{isOpen:t}=e;return t?"auto":"none"}),2e3,(e=>{let{theme:t,isOpen:n}=e;return n?t.scrim.dark:"transparent"}),(e=>{let{theme:t}=e;return`all ${t.movement.duration} ${t.movement.easing} ${t.movement.delay}`})),Tn=l.default.div.withConfig({displayName:"SearchFlyoverstyles__Container",componentId:"sc-14rqey7-1"})(["visibility:",";position:absolute;top:0;left:0;z-index:",";width:100%;",";overflow-y:auto;pointer-events:",";background-color:",";padding:0 ",";transition:",";transition-property:height visibility;","{overflow:hidden;padding:0;padding-right:",";height:",";}"],(e=>{let{isOpen:t}=e;return t?"visible":"hidden"}),2001,(e=>{let{isOpen:t,theme:n}=e;return t?"\n height: 100vh;\n height: var(--app-height);\n ":`height: ${n.spacing[44]}`}),(e=>{let{isOpen:t}=e;return t?"auto":"none"}),(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return`all ${t.movement.duration} ${t.movement.easing} ${t.movement.delay}`}),(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{isOpen:t,theme:n,contentHeight:o}=e;return t?n.pxToRem(52+o):n.pxToRem(52)})),On=l.default.div.withConfig({displayName:"SearchFlyoverstyles__LogoContainer",componentId:"sc-14rqey7-2"})(["display:none;background-color:",";width:",";height:100%;","{display:flex;justify-content:center;align-items:center;color:white;margin-right:",";}"],(e=>{let{theme:t}=e;return t.color.primary}),(e=>{let{theme:t}=e;return t.pxToRem(105)}),(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),(e=>{let{theme:t}=e;return t.spacing[16]})),An=(0,l.default)(Sn).withConfig({displayName:"SearchFlyoverstyles__SearchInput",componentId:"sc-14rqey7-3"})([""]),kn=l.default.div.withConfig({displayName:"SearchFlyoverstyles__SearchBarContainer",componentId:"sc-14rqey7-4"})(["display:flex;justify-content:space-between;align-content:center;height:",";> form{align-self:center;}","{justify-content:initial;padding:0;height:",";border-bottom:1px solid ",";}","{","{",";}}"],(e=>{let{theme:t}=e;return t.spacing[44]}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.pxToRem(52)}),(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),An,(e=>{let{inputWidth:t,isOpen:n,theme:o}=e;return(0,l.css)(["width:",";transition:",";"],n?"450px":`${t}px`,`width ${o.movement.duration} ${o.movement.easing} ${o.movement.delay}`)})),En=l.default.div.withConfig({displayName:"SearchFlyoverstyles__Content",componentId:"sc-14rqey7-5"})(["min-height:100%;","{padding:0 ",";}","{min-height:",";padding:",";}"],(e=>{let{theme:t}=e;return t.mediaQuery.tabletSmall}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),(e=>{let{theme:t}=e;return t.pxToRem(280)}),(e=>{let{theme:t}=e;return`${t.spacing[12]} ${t.pxToRem(121)} ${t.spacing[40]}`})),_n=l.default.button.withConfig({displayName:"SearchFlyoverstyles__Close",componentId:"sc-14rqey7-6"})(["opacity:",";border:none;background:transparent;padding:0;margin-left:16px;cursor:pointer;transition:",";"],(e=>{let{isOpen:t}=e;return t?1:0}),(e=>{let{theme:t}=e;return`opacity ${t.movement.duration} ${t.movement.easing} ${t.movement.delay}`})),Rn=e=>{const{isOpen:t,searchPath:n,activeQuery:i,activeCategoryOption:r,onCloseClick:a,onSearchSubmit:s,options:l,labels:c,locale:u,allProductsIndexConfig:d,additionalResultsIndexConfig:p,defaultClientConfig:m,trendingResults:h,topStoreProductSkus:f,inputWidth:w}=e,M=(0,o.useRef)(),x=(0,o.useRef)(),[L,j]=(0,o.useState)(i),[C,I]=(0,o.useState)(L),[v,b]=(0,o.useState)(L),[N,S]=(0,o.useState)(r),[D,z]=(0,o.useState)(0),{text:T}=(0,g.i1)(),[O,A]=(0,o.useMemo)((()=>u.toLowerCase().split("-")),[u]),k=(0,o.useCallback)((e=>{j(e)}),[]),E=(0,o.useCallback)((e=>{S(e)}),[]),_=(0,o.useCallback)((()=>{z(x.current?.offsetHeight)}),[]),R=(0,o.useCallback)((()=>{j(i),S(r),a&&a()}),[a,i,r]),P=(0,o.useCallback)((e=>{27===e.keyCode&&R()}),[R]),B=(0,o.useCallback)((()=>{t&&M.current?.blur()}),[t]),Y=(0,o.useCallback)((e=>{let{queryValue:t,categoryValue:n}=e;t!==L&&j(t),n!==N?.value?.category&&S(l.find((e=>e.value.category===n))),s&&s({queryValue:t,categoryValue:n})}),[L,N,l,s]),{suggestionsIndexName:U}=N?.value||{},{suggestions:G}=Dn(v,`${U}_${O}_${A}`,m);return(0,o.useEffect)((()=>{j(i)}),[i]),(0,o.useEffect)((()=>{S(r)}),[l,r]),(0,o.useEffect)((()=>{const e=window.setTimeout((()=>{I(L)}),500);return()=>{clearTimeout(e)}}),[L]),(0,o.useEffect)((()=>{const e=window.setTimeout((()=>{b(L)}),100);return()=>{clearTimeout(e)}}),[L]),(0,o.useEffect)((()=>{let e;return t?e=window.setTimeout((()=>{M.current.focus(),document.body.style.overflow="hidden",document.body.style.pointerEvents="none",document.body.style.touchAction="none"}),100):(document.body.style.removeProperty("overflow"),document.body.style.removeProperty("pointer-events"),document.body.style.removeProperty("touch-action")),()=>{clearTimeout(e)}}),[t]),(0,o.useEffect)((()=>{const e=()=>document?.documentElement.style.setProperty("--app-height",`${window.innerHeight}px`),t=()=>{z(x.current?.offsetHeight),e()};return window.addEventListener("resize",t),e(),()=>{window.removeEventListener("resize",t)}}),[]),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(Tn,{isOpen:t,role:"dialog",contentHeight:D,"aria-modal":"true",onKeyDown:P,onScroll:B,children:[(0,y.jsxs)(kn,{inputWidth:w,isOpen:t,children:[(0,y.jsx)(On,{children:(0,y.jsx)(on.Z,{size:69})}),(0,y.jsx)(An,{ref:M,searchPath:n,inputEnabled:!0,inputValue:L,suggestions:G,selectedOption:N,onSearchSubmit:Y,onDropdownChange:E,onInputChange:k,labels:c,options:l}),(0,y.jsx)(_n,{onClick:R,"aria-label":T(c.closeLabel),isOpen:t,children:(0,y.jsx)(ye.Z,{size:24})})]}),(0,y.jsx)(En,{ref:x,children:(0,y.jsx)(un.F,{selectedOption:N,locale:u,labels:c,fetchResults:t,onResultsChange:_,onSearchSubmit:Y,query:C,allProductsIndexConfig:d,additionalResultsIndexConfig:p,topStoreProductSkus:f,trendingResults:h,closeFlyover:R})})]}),(0,y.jsx)(zn,{isOpen:t,"data-testid":"flyover-overlay",onClick:R})]})};Rn.defaultProps={activeCategoryOption:rn.f[0],locale:un.D,searchPath:rn.g,topStoreProductSkus:rn.B,trendingResults:rn.z,labels:rn.p,options:rn.f,defaultClientConfig:rn.D,allProductsIndexConfig:rn.c[rn.b.ALL_PRODUCTS],additionalResultsIndexConfig:rn.c[rn.b.ALL]},Rn.propTypes={isOpen:r().bool,searchPath:r().string,activeQuery:r().string,activeCategoryOption:cn.O,labels:cn.L,locale:r().string,allProductsIndexConfig:cn.C,additionalResultsIndexConfig:cn.C,defaultClientConfig:cn.a.isRequired,onCloseClick:r().func,onSearchSubmit:r().func,options:r().arrayOf(cn.O).isRequired,topStoreProductSkus:r().arrayOf(r().string),trendingResults:r().arrayOf(r().shape({label:r().string,url:r().string}))};var Pn=Rn;function Bn(e){return H.has(e)}const Yn=l.default.a.withConfig({displayName:"RegionSelectorLinkstyles__Wrapper",componentId:"sc-1og1ar5-0"})(["display:inline-flex;align-items:center;justify-content:center;"]),Un=l.default.span.withConfig({displayName:"RegionSelectorLinkstyles__FlagBorder",componentId:"sc-1og1ar5-1"})(["border-radius:",";border:solid 1px white;overflow:hidden;img{display:block;}"],(e=>{let{theme:t}=e;return t.borderRadius})),Gn=l.default.span.withConfig({displayName:"RegionSelectorLinkstyles__Language",componentId:"sc-1og1ar5-2"})(["color:",";padding:0;font-size:",";font-weight:",";line-height:",";margin-left:",";border:none;border-bottom-width:2px;border-bottom-style:solid;border-bottom-color:transparent;transition:",";&:focus-visible,&:hover{border-bottom-color:",";}"],(e=>{let{theme:t}=e;return t.color.white}),(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.font.lineHeight}),(e=>{let{theme:t}=e;return t.spacing[8]}),(e=>{let{theme:t}=e;return`border-bottom-color ${t.movement.duration} ${t.movement.easing} ${t.movement.delay}, color ${t.movement.duration} ${t.movement.easing} ${t.movement.delay}`}),(e=>{let{theme:t}=e;return t.color.white})),Zn={"en-us":{country:"United States",flag:"Usa",language:"English"},"en-ca":{country:"Canada",flag:"Canada",language:"English"},"fr-ca":{country:"Canada",flag:"Canada",language:"French"},"es-mx":{country:"Mexico",flag:"Mexico",language:"Spanish"},"pt-br":{country:"Brazil",flag:"Brazil",language:"Portuguese"},"es-cl":{country:"Chile",flag:"Chile",language:"Spanish"},"es-co":{country:"Colombia",flag:"Colombia",language:"Spanish"},"es-pe":{country:"Peru",flag:"Peru",language:"Spanish"},"es-ar":{country:"Argentina",flag:"Argentina",language:"Spanish"}},Qn=e=>{const{flagOnly:t,locale:n}=e,{country:o,flag:i,language:r}=Zn[n]||{};return(0,y.jsxs)(Yn,{href:"https://www.nintendo.com/regionselector/",children:[(0,y.jsx)(Un,{children:(0,y.jsx)(De.F,{country:i||o,width:"24"})}),!t&&(0,y.jsxs)(Gn,{"data-testid":"language-country",children:[r," ",`(${o})`]})]})};Qn.propTypes={locale:r().oneOf([...V]),flagOnly:r().bool};var Wn=n(43381),Fn=n(92102),Hn=n(19843);const Vn=e=>(0,y.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"UserIcon",...e,children:(0,y.jsx)("path",{d:"M16.22 19.41A9.71 9.71 0 1 1 26 9.7a9.74 9.74 0 0 1-9.8 9.71M1.84 32a10.88 10.88 0 0 1 10.94-10.74h6.57A10.88 10.88 0 0 1 30.29 32H1.84",fill:e.color})});Vn.propTypes={className:r().string,color:r().string,size:r().oneOfType([r().number,r().string])},Vn.defaultProps={color:"currentColor",size:24};var $n=n(30744),qn=n(49482),Jn=n(55257);const Kn=l.default.span.withConfig({displayName:"HeadingLinkstyles__IconContainer",componentId:"sc-1k9k6ch-0"})(["display:inline-flex;justify-content:center;align-items:center;margin:0px "," 0 0;svg{","}"],(e=>{let{theme:t}=e;return t.pxToRem(6)}),(e=>{let{type:t}=e;switch(t){case"primary":return(0,l.css)(["color:",";"],(e=>{let{theme:t}=e;return t.color.primary}));case"secondary":return(0,l.css)(["color:inherit;"]);default:return(0,l.css)(["color:",";"],(e=>{let{theme:t}=e;return t.color.primary}))}})),Xn=l.default.div.withConfig({displayName:"HeadingLinkstyles__CartContainer",componentId:"sc-1k9k6ch-1"})(["display:inline-flex;margin:0px "," 0 0;"],(e=>{let{theme:t}=e;return t.pxToRem(8)})),eo=(0,l.default)(ut.T).withConfig({displayName:"HeadingLinkstyles__Text",componentId:"sc-1k9k6ch-2"})(["font-weight:700;",""],(e=>{let{type:t}=e;switch(t){case"primary":return(0,l.css)(["font-size:",";"],(e=>{let{theme:t}=e;return t.font.size.bodyDesktop}));case"secondary":return(0,l.css)(["font-size:",";"],(e=>{let{theme:t}=e;return t.font.size.captionDesktop}));default:return(0,l.css)(["font-size:",";"],(e=>{let{theme:t}=e;return t.font.size.bodyDesktop}))}}));var to=n(1205);const no=e=>{let{theme:t,size:n}=e;return n?t.pxToRem(n):t.pxToRem(20)},oo=e=>{let{theme:t,size:n}=e;return n?t.pxToRem(.2*n):t.pxToRem(4)},io=l.default.div.attrs((e=>{let{count:t}=e;return{children:t}})).withConfig({displayName:"CountBadge",componentId:"sc-1gorow4-0"})(["display:inline-flex;align-items:center;justify-content:center;font-size:",";font-weight:700;width:auto;min-width:",";height:",";padding-left:",";padding-right:",";color:",";background-color:",";border-radius:",";border:1px solid ",";box-shadow:0 0 6px ",";"],(e=>(e=>{let{theme:t,size:n}=e;return n?t.pxToRem(.6*n):t.pxToRem(12)})(e)),(e=>no(e)),(e=>no(e)),(e=>oo(e)),(e=>oo(e)),(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return t.color.primary}),(e=>no(e)),(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return`${t.color.darkGray3}45`}));io.propTypes={count:i.number,size:i.number};var ro=io;const ao=l.default.div.withConfig({displayName:"ConnectedCartCounterstyles__Wrap",componentId:"sc-9xtx9i-0"})(["display:grid;justify-content:center;position:relative;width:",";height:",";color:",";"],(e=>{let{iconSize:t}=e;return`${t}px`}),(e=>{let{iconSize:t}=e;return`${t}px`}),(e=>{let{disabled:t,theme:n}=e;return t?n.color.lightGray1:"inherit"})),so=(0,l.default)(ro).withConfig({displayName:"ConnectedCartCounterstyles__CartCounter",componentId:"sc-9xtx9i-1"})(["position:absolute;top:0;right:0;transform:translate(50%,-48%);"]),lo=e=>{let{iconSize:t,counterSize:n,disabled:i}=e;const{state:{cart:r}}=L(),a=(0,o.useMemo)((()=>!r.loading&&r.data?.totalQuantity?(0,y.jsx)(so,{size:n,count:r.data?.totalQuantity}):null),[r.loading,r.data,n]);return(0,y.jsxs)(ao,{iconSize:t,disabled:i,children:[(0,y.jsx)(to.Z,{size:t}),a]})};lo.propTypes={iconSize:i.number,counterSize:i.number,disabled:i.bool};var co=lo;const uo={"d-pad":Se.Z,"sales-tag":Fn.Z,"t-shirt":Hn.Z,user:Vn,heart:Oe,storefront:Re.Z,support:Pe.Z,controller:$n.Z,character:qn.Z,StarFilledIcon:Jn.Z,snowflake:Ue},po="icon",mo="mii",ho="cart",go=e=>{let{iconType:t,iconName:n,mii:i,to:r,type:a,onClick:s,children:l,disabled:c,className:u,target:d,analytics:p}=e;const m=(0,o.useMemo)((()=>{let e=null;const o=uo[n];switch(t){case po:e=(0,y.jsx)(Kn,{type:a,children:(0,y.jsx)(o,{size:18})});break;case mo:e=(0,y.jsx)(Kn,{children:(0,y.jsx)(st,{size:24,data:i})});break;case ho:e=(0,y.jsx)(Xn,{children:(0,y.jsx)(co,{iconSize:20,counterSize:16})});break;default:e=(0,y.jsx)(Kn,{type:a,children:(0,y.jsx)(o,{})})}return(0,y.jsxs)(y.Fragment,{children:[e,(0,y.jsx)(eo,{as:"span",variant:"title",type:a,children:l})]})}),[l,n,t,i,a]);return c?(0,y.jsx)(Le,{className:u,disabled:!0,children:m}):r?(0,y.jsx)(Fe,{to:r,className:u,onClick:s,target:d,analytics:p,children:m}):(0,y.jsx)(Le,{className:u,onClick:s,analytics:p,children:m})};go.defaultProps={iconType:"icon"},go.propTypes={iconType:(0,i.oneOf)(["icon","mii","cart","nso"]),iconName:(0,i.oneOf)(Object.keys(uo)),mii:i.object,to:i.string,onClick:i.func,type:(0,i.oneOf)(["primary","secondary"]),children:i.node,disabled:i.bool,className:i.string,target:i.string,analytics:c.lH};var yo=go;const fo="\n padding-top: 0.875rem;\n padding-bottom: 0.875rem;\n",wo=(0,l.default)(yo).withConfig({displayName:"UserButtonstyles__Button",componentId:"sc-jxbhoc-0"})(["",""],fo),Mo=l.default.div.withConfig({displayName:"UserButtonstyles__LoadingWrap",componentId:"sc-jxbhoc-1"})(["",""],fo);var xo=()=>{const{state:{accounts:{loading:e},customer:{loading:t,data:n}},localizer:{text:o}}=L(),{actions:{openFlyout:i}}=O();return e||t?(0,y.jsx)(Mo,{children:(0,y.jsx)(Wn.L,{loadingIcon:"mushroom",loadingVariant:"fade"})}):n?(0,y.jsx)(wo,{iconType:"mii",mii:n.mii,type:"secondary",onClick:i,children:n.nickname}):(0,y.jsx)(wo,{iconName:"user",type:"secondary",onClick:i,children:o("Log in / Sign up")})};const Lo={navLocationLevel:1,navLocation:"desktop"},jo=l.default.header.withConfig({displayName:"Topstyles__Top",componentId:"sc-14wlync-0"})(["display:flex;justify-content:space-between;align-items:center;height:","px;border-bottom:1px solid ",";background-color:",";position:relative;z-index:100;"],c.Vz.NAV_DESKTOP_TOP,(e=>{let{theme:t}=e;return t.color.lightGray2}),(e=>{let{theme:t}=e;return t.color.white})),Co=l.default.div.withConfig({displayName:"Topstyles__Flex",componentId:"sc-14wlync-1"})(["display:flex;align-items:center;gap:",";padding:",";&:first-child{flex:1;}& + &{flex-shrink:0;}"],(e=>{let{theme:t,gap:n}=e;return t.spacing[n||28]}),(e=>{let{padding:t}=e;return t})),Io=(0,l.default)(yo).attrs({analytics:Lo}).withConfig({displayName:"Topstyles__TopLink",componentId:"sc-14wlync-2"})([""," padding-top:0.875rem;padding-bottom:0.875rem;"],(e=>{let{maintenance:t,theme:n}=e;return t&&(0,l.css)(["color:",";cursor:default;&:hover{color:",";}"],n.color.lightGray1,n.color.lightGray1)})),vo=l.default.div.withConfig({displayName:"Topstyles__Logo",componentId:"sc-14wlync-3"})(["width:105px;height:52px;background-color:",";display:flex;justify-content:center;align-items:center;color:white;"],(e=>{let{theme:t}=e;return t.color.primary})),bo=(0,l.default)(Sn).withConfig({displayName:"Topstyles__SearchInput",componentId:"sc-14wlync-4"})([""]),No=l.default.div.withConfig({displayName:"Topstyles__SearchInputWrapper",componentId:"sc-14wlync-5"})(["","{flex-basis:",";}"],(e=>{let{theme:t}=e;return t.mediaQuery.desktop}),(e=>{let{theme:t}=e;return t.pxToRem(450)}));var So=n(96051),Do=n(21012);const zo=l.default.div.withConfig({displayName:"MaintenanceCardstyles__Wrap",componentId:"sc-7r3tnc-0"})(["width:100%;"]),To=l.default.div.withConfig({displayName:"MaintenanceCardstyles__Header",componentId:"sc-7r3tnc-1"})(["background-color:",";text-align:center;color:",";padding:",";"],(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.spacing[8]})),Oo=l.default.div.withConfig({displayName:"MaintenanceCardstyles__Content",componentId:"sc-7r3tnc-2"})(["padding:",";text-align:center;"],(e=>{let{theme:t}=e;return t.spacing[16]})),Ao=e=>{let{type:t}=e;const{localizer:{text:n},actions:{closeModal:i}}=L(),r=(0,o.useMemo)((()=>{if("cart"===t)return{heading:n("Cart down for maintenance"),icon:(0,y.jsx)(So.Z,{size:32}),body:n("Sorry, it\u2019s not possible to view your cart or check out right now.")}}),[n,t]);return(0,y.jsxs)(zo,{children:[(0,y.jsx)(To,{children:(0,y.jsx)(N.H,{variant:"h3",children:r.heading})}),(0,y.jsxs)(Oo,{children:[(0,y.jsx)("div",{children:r.icon}),(0,y.jsx)(Do.S,{size:8}),(0,y.jsx)(ut.T,{children:r.body}),(0,y.jsx)(Do.S,{size:16}),(0,y.jsx)(le.B,{buttonWidth:"full",onClick:i,children:n("Close")})]})]})};Ao.propTypes={type:(0,i.oneOf)(["cart"])};var ko=Ao;var Eo=()=>{const{state:{router:e,cartUrl:t,maintenance:n},actions:{openModal:i},localizer:{text:r}}=L(),{actions:{closeMenu:a}}=O(),s=(0,o.useRef)(),{ref:l,width:c}=(0,tn.Z)({round:e=>e}),u=(0,o.useMemo)((()=>H.has(e.locale)?rn.L:rn.f),[e.locale]),d=(0,o.useMemo)((()=>H.has(e.locale)?rn.b.LATAM_ALL_PRODUCTS:rn.b.ALL_PRODUCTS),[e.locale]),{state:{query:p,isSearchFlyoverOpen:m,selectedSearchOption:h},actions:{openSearchFlyover:g,closeSearchFlyover:f,onSearchOptionChange:w,onSearchSubmit:M}}=(0,an.N1)({locale:e.locale,categoryOptions:u}),x=(0,o.useMemo)((()=>s.current?(0,y.jsx)(nn.F,{returnFocus:s.current,bindFocus:m,children:(0,y.jsx)(Pn,{isOpen:m,locale:e.locale,onCloseClick:f,activeQuery:p,activeCategoryOption:h,onSearchSubmit:M,options:u,allProductsIndexConfig:rn.c[d],inputWidth:c})}):(0,y.jsx)(Pn,{isOpen:m,locale:e.locale,onCloseClick:f,activeQuery:p,activeCategoryOption:h,onSearchSubmit:M,options:u,allProductsIndexConfig:rn.c[d],inputWidth:c})),[d,f,m,M,p,e.locale,h,u,c]),j=(0,o.useMemo)((()=>Boolean(n.store?.active)),[n.store]);return(0,y.jsxs)(jo,{children:[(0,y.jsxs)(Co,{gap:16,children:[(0,y.jsx)(Fe,{to:"/",analytics:Lo,children:(0,y.jsx)(vo,{children:(0,y.jsx)(on.Z,{size:69})})}),(0,y.jsx)(No,{ref:l,children:(0,y.jsx)(bo,{ref:s,inputValue:p,selectedOption:h,onClick:g,onDropdownChange:w,options:u,labels:{placeholderLabel:r("Search")}})}),x]}),(0,y.jsxs)(Co,{padding:"0 1.25rem",children:[(0,y.jsx)(Io,{to:r("https://en-americas-support.nintendo.com/"),iconName:"support",type:"secondary",onClick:a,target:"_blank",children:r("Support")}),(0,y.jsx)(Io,{to:"/wish-list",iconName:"heart",type:"secondary",onClick:a,children:r("Wish List")}),Bn(e.locale)?null:(0,y.jsx)(Io,{to:j?null:t,iconType:"cart",type:"secondary",onClick:()=>j?i({label:r("Cart down for maintenance"),content:(0,y.jsx)(ko,{type:"cart"})}):a,maintenance:j,children:r("Cart")}),(0,y.jsx)(xo,{}),(0,y.jsx)(Qn,{locale:e.locale,flagOnly:!0})]})]})};const _o=(0,l.default)(Fe).withConfig({displayName:"DropdownButtonstyles__Button",componentId:"sc-m78d24-0"})(["position:relative;padding:",";*{color:",";}",";"],(e=>{let{theme:t}=e;return t.spacing[12]}),(e=>{let{active:t,menuActive:n,theme:o}=e;return n||t?o.color.primary:"inherit"}),(e=>{let{active:t,theme:n}=e;return t&&(0,l.css)([":before{content:'';height:4px;position:absolute;bottom:2px;width:calc(100% - ",");background-color:",";}"],n.spacing[24],n.color.primary)})),Ro=l.default.span.withConfig({displayName:"DropdownButtonstyles__IconContainer",componentId:"sc-m78d24-1"})(["display:flex;justify-content:center;align-items:center;margin:0 "," 0 0;"],(e=>{let{theme:t}=e;return t.pxToRem(6)})),Po=l.default.span.withConfig({displayName:"DropdownButtonstyles__CaratContainer",componentId:"sc-m78d24-2"})(["display:inline-flex;justify-content:center;align-items:center;margin:1px 0 0 ",";svg{transition:",";}",";"],(e=>{let{theme:t}=e;return t.pxToRem(8)}),(e=>{let{theme:t}=e;return`transform ${t.movement.duration} ${t.movement.easing}`}),(e=>{let{menuActive:t}=e;return t&&(0,l.css)(["svg{transform:rotate(180deg);}"])})),Bo=(0,l.default)(ut.T).withConfig({displayName:"DropdownButtonstyles__Text",componentId:"sc-m78d24-3"})(["","{font-size:",";font-weight:",";}"],(e=>{let{theme:t}=e;return t.mediaQuery.tabletSmall}),(e=>{let{theme:t}=e;return t.font.size.titleMobile}),(e=>{let{theme:t}=e;return t.font.weight.bold})),Yo={storefront:Re.Z,"d-pad":Se.Z,switch:Be.Z,news:Ae.Z,"star-play-nintendo":_e.Z,"my-nintendo-tile":Ye,snowflake:Ue},Uo=o.forwardRef(((e,t)=>{let{icon:n,children:i,href:r,menuName:a,activeStateUrl:s,analytics:l}=e;const{state:{activeMenu:c,menuOpen:u},actions:{openMenu:d,closeMenu:p}}=O(),{state:{router:m}}=L(),h=(0,o.useMemo)((()=>c===a&&u),[c,a,u]),g=Yo[n];return(0,y.jsxs)(_o,{ref:t,onClick:()=>r||h?p():d(a,t.current),menuActive:h,ariaExpanded:h?"true":"false",ariaControls:a,active:m.pathname?.includes(s),to:r,analytics:l,children:[(0,y.jsx)(Ro,{children:(0,y.jsx)(g,{size:16})}),(0,y.jsx)(Bo,{as:"span",variant:"title",children:i}),!r&&(0,y.jsx)(Po,{menuActive:h,children:(0,y.jsx)(Ge.Z,{size:12})})]})}));Uo.displayName="DropdownButton",Uo.defaultProps={active:!1},Uo.propTypes={children:i.node,href:i.string,icon:(0,i.oneOf)(Object.keys(Yo)),menuName:(0,i.oneOf)(Object.values(c.aA)),activeStateUrl:i.string,analytics:c.lH};var Go=Uo,Zo=n(80648),Qo=n(94589),Wo=n(80148);const Fo=(0,l.default)(Wo.m.div).withConfig({displayName:"Drawerstyles__DrawerWrapper",componentId:"sc-82tvyz-0"})(["position:relative;"]),Ho=l.default.div.withConfig({displayName:"Drawerstyles__DrawerTopPadding",componentId:"sc-82tvyz-1"})(["position:relative;background-color:",";height:",";top:",";"],(e=>{let{theme:t,bgColor:n}=e;return n||t.color.white}),(e=>{let{animationOffset:t}=e;return t?`${t}px`:0}),(e=>{let{animationOffset:t}=e;return t?`-${t}px`:0})),Vo=l.default.div.withConfig({displayName:"Drawerstyles__Drawer",componentId:"sc-82tvyz-2"})(["width:100%;height:",";background-color:",";"," overflow:hidden;"],(e=>{let{drawerHeight:t}=e;return t||"0"}),(e=>{let{theme:t,bgColor:n}=e;return n||t.color.white}),(e=>{let{drawerOpen:t}=e;return t?`\n border: 1px solid\n ${e=>{let{theme:t,borderColor:n}=e;return n||t.color.lightGray3}};\n box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);\n `:""}));var $o=n(74901);const qo=e=>{let{className:t}=e;const{state:{activeCustomDrawer:n}}=O(),i=(0,Zo.J)(),r=(0,o.useRef)({bgColor:null,borderColor:null}),a=(0,o.useMemo)((()=>n?.target===c.zO.TOP_DRAWER?n:null),[n]);return r.current.bgColor=a?.bgColor||r.current.bgColor,r.current.borderColor=a?.borderColor||r.current.borderColor,(0,y.jsx)(Qo.M,{children:a?.isOpen&&(0,y.jsxs)(Fo,{transition:i?"none":$o.d.animation.vertical.standardEase,initial:{y:`-${a?.height}`,opacity:1},animate:{y:0},exit:{y:`calc(-${a?.height} - 44px)`},children:[(0,y.jsx)(Ho,{bgColor:r.current.bgColor,animationOffset:44}),(0,y.jsx)(Vo,{className:t,"aria-hidden":!a?.isOpen,"data-testid":"top-drawer",bgColor:r.current.bgColor,borderColor:r.current.borderColor,drawerHeight:a?.height,drawerOpen:a?.isOpen,children:a?.content})]})})};qo.propTypes={className:i.string};var Jo=qo;const Ko=e=>(0,y.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 44 34.22",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"MegaphoneDarkIcon",...e,children:(0,y.jsx)("path",{fillRule:"evenodd",fill:e.color,d:"M29.55 0a1.91 1.91 0 0 1 1.93 1.87V10h.21a4.87 4.87 0 0 1 4.82 4.89v.2A4.87 4.87 0 0 1 31.69 20h-.21v8.1a1.91 1.91 0 0 1-1.93 1.87L19 22.45h-4.61l1.13 8.62a3.24 3.24 0 0 1-3.31 3.15h-1.66a3.24 3.24 0 0 1-3.31-3.15l-1.13-8.62H3.4A3.59 3.59 0 0 1 0 18.71v-7.49a3.6 3.6 0 0 1 3.4-3.74H18.95zm8.2 20.81a.6.6 0 0 1 .85.05l4.12 4.61a.62.62 0 0 1 0 .86.59.59 0 0 1-.41.16.6.6 0 0 1-.44-.2l-4.17-4.61a.63.63 0 0 1 .05-.87zm-6.06-8.39h-.21v5.09h.21a2.42 2.42 0 0 0 2.41-2.44v-.2a2.43 2.43 0 0 0-2.41-2.45zM43.4 14a.62.62 0 0 1 0 1.23h-4.67a.62.62 0 0 1 0-1.23h4.67zM41.83 3a.59.59 0 0 1 .85 0 .62.62 0 0 1 0 .86l-4.08 4.6a.62.62 0 0 1-.45.2.61.61 0 0 1-.4-.16.63.63 0 0 1 0-.87z"})});Ko.propTypes={className:r().string,color:r().string,size:r().oneOfType([r().number,r().string])},Ko.defaultProps={color:"currentColor",size:24};var Xo=n(49446);const ei=e=>(0,y.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 61.22 42.34",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"ForParentsIcon",...e,children:(0,y.jsx)("path",{d:"M46.32 32.31A7.13 7.13 0 0 1 41 29.94a1.05 1.05 0 0 1 .15-1.62 1.21 1.21 0 0 1 1.77.15 4.76 4.76 0 0 0 3.39 1.47 5.13 5.13 0 0 0 3.54-1.47 1.35 1.35 0 0 1 1.77-.15 1.17 1.17 0 0 1 .15 1.62 7.23 7.23 0 0 1-5.46 2.37M51.78 23A1.79 1.79 0 0 1 50 24.78 1.77 1.77 0 1 1 51.78 23m-7.23 0a1.79 1.79 0 0 1-1.77 1.77A1.77 1.77 0 1 1 44.55 23m12.68 2.8a10.77 10.77 0 0 0-21.53 0 10.68 10.68 0 0 0 10.77 10.49c6-.15 10.76-4.72 10.76-10.48M31 16.67a2.84 2.84 0 0 0-3-2.8 2.92 2.92 0 0 0-3 2.8 2.83 2.83 0 0 0 3 2.8 2.93 2.93 0 0 0 3-2.8m-12 0a2.84 2.84 0 0 0-3-2.8 2.93 2.93 0 0 0-2.95 2.8 2.84 2.84 0 0 0 2.95 2.8 2.93 2.93 0 0 0 3-2.8m3 15.19A12.62 12.62 0 0 0 31 28a2.06 2.06 0 0 0-.15-2.8h-.15a2.1 2.1 0 0 0-2.95.29A8 8 0 0 1 22 28a7.19 7.19 0 0 1-5.61-2.51 2.24 2.24 0 0 0-3-.29 1.93 1.93 0 0 0-.29 2.8v.15a12.12 12.12 0 0 0 8.9 3.71m24.47-20.35c8.11 0 14.75 6.34 14.75 14.16s-6.64 14.16-14.75 14.16a14.53 14.53 0 0 1-9.3-3.25 22.8 22.8 0 0 1-15 5.76C9.88 42.34 0 32.75 0 21.1S9.88 0 22.13 0A22.05 22.05 0 0 1 42 12.24a15.56 15.56 0 0 1 4.43-.73",fill:e.color,fillRule:"evenodd"})});ei.propTypes={className:r().string,color:r().string,size:r().oneOfType([r().number,r().string])},ei.defaultProps={color:"currentColor",size:24};const ti=e=>(0,y.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 27.76",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"ForKidsIcon",...e,children:[(0,y.jsx)("path",{d:"M45.55,0c-8,0-14.46,6.21-14.46,13.88s6.47,13.88,14.46,13.88S60,21.55,60,13.88,53.53,0,45.55,0m0,3.75c5.9,0,10.7,4.55,10.7,10.13S51.45,24,45.55,24,34.84,19.46,34.84,13.88,39.64,3.75,45.55,3.75",fill:e.color,fillRule:"evenodd"}),(0,y.jsx)("path",{d:"M43.66,11.28A1.75,1.75,0,0,1,41.93,13a1.67,1.67,0,0,1-1.74-1.6v-.13A1.74,1.74,0,1,1,43.66,11a1.13,1.13,0,0,1,0,.26m7.09,0A1.77,1.77,0,0,1,49,13a1.66,1.66,0,0,1-1.73-1.59v-.14A1.74,1.74,0,1,1,50.74,11a1.13,1.13,0,0,1,0,.26M45.4,20.39a7,7,0,0,1-5.21-2.32,1,1,0,0,1-.06-1.41.91.91,0,0,1,.21-.18,1.18,1.18,0,0,1,1.67.08l.06.07a4.76,4.76,0,0,0,3.33,1.44,5.06,5.06,0,0,0,3.47-1.44,1.32,1.32,0,0,1,1.73-.15,1.15,1.15,0,0,1,.15,1.59,7.08,7.08,0,0,1-5.35,2.32",fill:e.color,fillRule:"evenodd"}),(0,y.jsx)("path",{d:"M14.45,0C6.47,0,0,6.21,0,13.88S6.47,27.76,14.45,27.76s14.46-6.21,14.46-13.88S22.44,0,14.45,0m0,3.75c5.91,0,10.71,4.55,10.71,10.13S20.36,24,14.45,24,3.75,19.46,3.75,13.88,8.55,3.75,14.45,3.75",fill:e.color,fillRule:"evenodd"}),(0,y.jsx)("path",{d:"M12.57,11.28A1.75,1.75,0,0,1,10.84,13,1.67,1.67,0,0,1,9.1,11.4v-.12a1.67,1.67,0,0,1,1.6-1.74h.14a1.67,1.67,0,0,1,1.73,1.61v.13m7.09,0A1.76,1.76,0,0,1,17.92,13a1.67,1.67,0,0,1-1.74-1.6v-.13a1.74,1.74,0,1,1,3.48,0h0m-5.35,9.12A7,7,0,0,1,9.1,18.07,1,1,0,0,1,9,16.66a.91.91,0,0,1,.21-.18,1.18,1.18,0,0,1,1.67.08l.06.07a4.74,4.74,0,0,0,3.33,1.44,5.06,5.06,0,0,0,3.47-1.44,1.32,1.32,0,0,1,1.73-.15,1.15,1.15,0,0,1,.15,1.59,7.11,7.11,0,0,1-5.35,2.32",fill:e.color,fillRule:"evenodd"})]});ti.propTypes={className:r().string,color:r().string,size:r().oneOfType([r().number,r().string])},ti.defaultProps={color:"currentColor",size:24};var ni=n(8735);const oi=e=>(0,y.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 65.62 43.47",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"CompareArrowsIcon",...e,children:(0,y.jsx)("path",{fillRule:"evenodd",fill:e.color,d:"M33.64 14.63L19.01 29.25l-3.65-3.66 8.41-8.41L0 17.31v-5.37l23.77.13-8.41-8.41L19.01 0l14.63 14.63zM31.98 28.84L46.6 43.47l3.66-3.66-8.41-8.41 23.77.12v-5.36l-23.77.13 8.41-8.41-3.66-3.66-14.62 14.62z"})});oi.propTypes={className:r().string,color:r().string,size:r().oneOfType([r().number,r().string])},oi.defaultProps={color:"currentColor",size:24};const{MY_NINTENDO_STORE:ii}=c.aA,ri="0.25rem",ai=l.default.div.withConfig({displayName:"DropdownMenustyles__DropdownMenu",componentId:"sc-fwuyy1-0"})(["background-color:",";height:",";overflow:hidden;transition:",";"],(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{menuOpen:t,menuHeight:n}=e;return t?n:"0px"}),(e=>{let{theme:t}=e;return`height ${c.th.DROPDOWN_DESKTOP}ms ${t.movement.easing}`})),si=l.default.div.withConfig({displayName:"DropdownMenustyles__Wrap",componentId:"sc-fwuyy1-1"})(["padding-top:",";padding-bottom:",";display:flex;flex-direction:column;"],(e=>{let{theme:t,activeMenu:n}=e;return t.spacing[n===ii?0:8]}),(e=>{let{theme:t}=e;return t.spacing[12]})),li=l.default.div.withConfig({displayName:"DropdownMenustyles__DropdownItems",componentId:"sc-fwuyy1-2"})(["display:flex;justify-content:center;gap:",";padding-left:",";padding-right:",";max-width:1440px;min-width:calc(","px - ",");margin:0 auto;"],(e=>{let{theme:t}=e;return t.spacing[28]}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.spacing[16]}),c.T0,(e=>{let{theme:t}=e;return t.spacing[32]})),ci=l.default.div.withConfig({displayName:"DropdownMenustyles__DropdownItemGroup",componentId:"sc-fwuyy1-3"})(["display:flex;flex-direction:column;justify-self:center;min-width:",";"],(e=>{let{theme:t}=e;return t.pxToRem(120)})),ui=(0,l.default)(Fe).withConfig({displayName:"DropdownMenustyles__LinkItem",componentId:"sc-fwuyy1-4"})(["padding-top:",";padding-bottom:",";font-size:",";"],ri,ri,(e=>{let{theme:t}=e;return t.font.size.captionDesktop})),di=l.default.div.withConfig({displayName:"DropdownMenustyles__CloseRow",componentId:"sc-fwuyy1-5"})(["display:flex;justify-content:flex-end;padding-right:",";padding-bottom:",";"],(e=>{let{theme:t,activeMenu:n}=e;return t.spacing[n===ii?0:16]}),(e=>{let{theme:t,activeMenu:n}=e;return t.spacing[n===ii?24:4]})),pi=(0,l.default)(Fe).withConfig({displayName:"DropdownMenustyles__TileItem",componentId:"sc-fwuyy1-6"})(["display:block;text-align:center;width:",";"],(e=>{let{width:t}=e;return t||"120px"})),mi=(0,l.default)(ni.Z).withConfig({displayName:"DropdownMenustyles__NsoIcon",componentId:"sc-fwuyy1-7"})(["background-color:white;color:",";"],(e=>{let{theme:t}=e;return t.color.primary})),hi=(0,l.default)(oi).attrs({width:62}).withConfig({displayName:"DropdownMenustyles__CompareArrowsIcon",componentId:"sc-fwuyy1-8"})([""]),gi=l.default.div.withConfig({displayName:"DropdownMenustyles__TileIconWrap",componentId:"sc-fwuyy1-9"})(["display:flex;align-items:center;justify-content:center;width:100%;height:",";border:1px solid ",";border-radius:",";margin-bottom:",";background-color:white;transition-property:background-color,border-color;transition-duration:",";",":hover &{background-color:",";border-color:",";transition-property:background-color,border-color;transition-duration:",";& > ","{color:",";}& > svg{color:white;transition-property:color;transition-duration:",";}}img{width:auto;height:auto;max-width:100%;max-height:100%;padding:0;}"],(e=>{let{theme:t}=e;return t.pxToRem(68)}),(e=>{let{theme:t}=e;return t.color.lightGray2}),(e=>{let{theme:t}=e;return t.borderRadius}),(e=>{let{theme:t}=e;return t.spacing[8]}),(e=>{let{theme:t}=e;return t.movement.duration}),pi,(e=>{let{theme:t}=e;return t.color.primary}),(e=>{let{theme:t}=e;return t.color.primary}),(e=>{let{theme:t}=e;return t.movement.duration}),mi,(e=>{let{theme:t}=e;return t.color.primary}),(e=>{let{theme:t}=e;return t.movement.duration})),yi=(0,l.default)(Fe).withConfig({displayName:"DropdownMenustyles__ShopAllButton",componentId:"sc-fwuyy1-10"})(["margin-top:",";align-self:center;color:",";"],(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.color.primary})),fi=(0,l.default)(yo).withConfig({displayName:"DropdownMenustyles__HeadingLink",componentId:"sc-fwuyy1-11"})(["padding:"," 0;"],ri),wi={switch:Be.Z,megaphone:Ko,calendar:Xo.Z,"d-pad":Se.Z,CompareArrowsIcon:hi,ForParentsIcon:ei,ForKidsIcon:ti,nso:mi,SalesTagIcon:Fn.Z};var Mi=()=>{const{state:{router:{locale:e}},localizer:{text:t}}=L(),{state:{activeMenu:n},actions:{closeMenu:i}}=O(),r=(0,o.useMemo)((()=>ae[n]),[n]);return(0,y.jsx)(li,{id:n,children:r?.items.map((n=>{const{hidden:o,excludeLocale:r}=n[0];if("desktop"!==o&&(!r||!r.includes(e)))return(0,y.jsx)(ci,{children:n.map((n=>{let{icon:o,image:r,label:a,to:s,type:l,hidden:u,width:d,excludeLocale:p}=n;if("desktop"===u)return;if(p.includes(e))return;const m=wi[o];switch(l){case c.iB.LIST:return o?(0,y.jsx)(fi,{iconName:o,to:s,onClick:i,analytics:{navLocation:"desktop",navLocationLevel:2},children:t(a)},a):(0,y.jsx)(ui,{to:s,onClick:i,analytics:{navLocation:"desktop",navLocationLevel:2},children:t(a)},a);case c.iB.ICON:return(0,y.jsxs)(pi,{to:s,onClick:i,width:d,analytics:{navLocation:"desktop",navLocationLevel:2},children:[m&&(0,y.jsx)(gi,{children:(0,y.jsx)(m,{size:42})}),r&&(0,y.jsx)(gi,{children:(0,y.jsx)(Qt.I,{assetPath:r,showPlaceholder:!0,alt:t(a)})}),(0,y.jsx)(ut.T,{variant:"caption",children:t(a)})]},a)}}))},`group ${n[0].label}`)}))})},xi=n(70342);const Li=l.default.div.withConfig({displayName:"Awningstyles__AwningWrap",componentId:"sc-12iyqmw-0"})(["width:100%;height:64px;background-color:",";display:flex;align-items:center;justify-content:center;color:",";position:relative;a{&:hover{color:",";}}"],(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.color.white})),ji=(0,l.default)(Me).withConfig({displayName:"Awningstyles__AwningClose",componentId:"sc-12iyqmw-1"})(["position:absolute;right:",";color:",";&:hover{color:",";}"],(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return t.color.lightGray2})),Ci=(0,l.default)(Ze.Z).withConfig({displayName:"Awningstyles__AwningChevron",componentId:"sc-12iyqmw-2"})(["transform:translate(6px,2px);transition:",";"],(e=>{let{theme:t}=e;return`${t.movement.duration} ${t.movement.easing}`})),Ii=(0,l.default)(Fe).withConfig({displayName:"Awningstyles__AwningLink",componentId:"sc-12iyqmw-3"})(["&:hover{","{transform:translate(10px,2px);}}"],Ci),vi=l.default.div.withConfig({displayName:"FancyBorderstyles__FancyBorder",componentId:"sc-18enkvc-0"})(["position:absolute;width:100%;height:","px;background-size:auto ","px;background-repeat:repeat-x;z-index:1;background-image:",";"," "," ",""],(e=>{let{height:t}=e;return t}),(e=>{let{height:t}=e;return t}),(e=>{let{type:t}=e;switch(t){case"awning-primary":return"url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDVweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgNDUgMTQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDx0aXRsZT5TdG9yZWZyb250LWF3bmluZy1wYXR0ZXJuPC90aXRsZT4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJTdG9yZWZyb250LWF3bmluZy1wYXR0ZXJuIiBmaWxsPSIjRTYwMDEyIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgICAgICA8cGF0aCBkPSJNNDUsMCBMMCwwIEwwLDEzLjc3MzY4IEMxLjMzMzAyMDAxLDEzLjgzNzcxOTMgMi42NDkxNDAxMywxMy40NTM5MDE4IDMuNzM4NzcsMTIuNjgzMzUgTDE5LjI4NDQ4LDEuNjI4NjYgQzIxLjM2NjIzOTQsMC4xNDgzMTg1OTggMjQuMTU3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g0NTI4NSwxMy43Mjg3NzYgNDUsMTMuNzczNjggTDQ1LDAgWiIgaWQ9IlBhdGgiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==')";case"awning-white-jagged":return"url('data:image/svg+xml,%3Csvg%20width%3D%2244%22%20height%3D%2216%22%20viewBox%3D%220%200%2044%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ctitle%3ESlice%3C%2Ftitle%3E%3Cpath%20fill%3D%22%23FFF%22%20d%3D%22M0%2016h44L22%200z%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E')";case"wave-white":return"url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNzRweCIgaGVpZ2h0PSIxNXB4IiB2aWV3Qm94PSIwIDAgNzQgMTUiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+UGF0aDwvdGl0bGU+CiAgICA8ZyBpZD0iUGFnZS0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8ZyBpZD0iU3RvcmVmcm9udC13YXZlLXBhdHRlcm4iIGZpbGw9IiNGRkZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik03NCwxNSBDNTYuMzc5MDcsMTQuOTE0NjkgNTUuNDAwMTQsMC45MzY3NiAzNi45ODgxOSwxLjE4NyBDMTguOTIyMjEsMC44MDg2IDE3Ljc3MjE4LDE0LjgwNzc4IDAsMTUgTDAsMCBMNzQsMCBMNzQsMTUgWiIgaWQ9IlBhdGgiPjwvcGF0aD4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==')"}}),(e=>{let{position:t}=e;return"top"===t&&(0,l.css)(["top:",";"],(e=>{let{placement:t,height:n}=e;return"inside"===t?"0px":`-${n}px`}))}),(e=>{let{position:t}=e;return"bottom"===t&&(0,l.css)(["bottom:",";"],(e=>{let{placement:t,height:n}=e;return"inside"===t?"0px":`-${n}px`}))}),(e=>{let{flip:t}=e;return t&&(0,l.css)(["transform:rotate(180deg);"])})),bi=e=>(0,y.jsx)(vi,{...e});bi.defaultProps={flip:!1,placement:"outside",type:"awning-primary"},bi.propTypes={flip:i.bool,height:i.number.isRequired,placement:(0,i.oneOf)(["inside","outside"]),position:(0,i.oneOf)(["top","bottom"]).isRequired,type:(0,i.oneOf)(["awning-primary","awning-white","awning-white-jagged","wave-white"]).isRequired};var Ni=bi;var Si=()=>{const{actions:{closeMenu:e}}=O();return(0,y.jsxs)(Li,{children:[(0,y.jsx)(Ii,{to:"/store",onClick:e,analytics:{navLocation:"desktop",navLocationLevel:2},children:(0,y.jsx)(xi.Z,{size:188})}),(0,y.jsx)(ji,{onClick:e}),(0,y.jsx)(Ni,{height:14,position:"bottom"})]})};const Di=e=>{let{className:t}=e;const{localizer:{text:n}}=L(),{state:{activeMenu:i,menuOpen:r,bindFocus:a,returnFocus:s},actions:{closeMenu:l}}=O(),u=(0,o.useRef)(null),d=function(e,t){const[n,i]=(0,o.useState)("0");return(0,o.useEffect)((()=>{t&&i(e.current.getBoundingClientRect().height)}),[e,t]),n}(u,i);return(0,y.jsx)(ai,{className:t,"data-testid":"dropdownMenu",menuOpen:r,menuHeight:d+"px",children:(0,y.jsx)(nn.F,{bindFocus:a,returnFocus:s,children:(0,y.jsxs)(si,{ref:u,activeMenu:i,children:[(0,y.jsx)(di,{activeMenu:i,children:i===c.aA.MY_NINTENDO_STORE?(0,y.jsx)(Si,{}):(0,y.jsx)(Me,{onClick:l})}),(0,y.jsx)(Mi,{}),i===c.aA.MY_NINTENDO_STORE&&(0,y.jsx)(yi,{to:"/store",analytics:{navLocation:"desktop",navLocationLevel:2},children:(0,y.jsx)(le.B,{variant:"secondary",onClick:l,children:n("Shop all")})})]})})})};Di.propTypes={className:i.string};var zi=Di;const Ti=l.default.div.withConfig({displayName:"Bottomstyles__BottomContainer",componentId:"sc-ivev9d-0"})(["position:relative;"]),Oi=l.default.div.withConfig({displayName:"Bottomstyles__Bottom",componentId:"sc-ivev9d-1"})(["display:flex;position:relative;justify-content:center;align-items:center;height:","px;border-bottom:1px solid ",";background-color:",";z-index:1;"],c.Vz.NAV_DESKTOP_BOTTOM,(e=>{let{theme:t}=e;return t.color.lightGray2}),(e=>{let{theme:t}=e;return t.color.white})),Ai=l.default.div.withConfig({displayName:"Bottomstyles__MainMenu",componentId:"sc-ivev9d-2"})(["display:flex;gap:",";padding:2px 0 0px 0;"],(e=>{let{theme:t}=e;return t.spacing[16]})),ki=(0,l.default)(Jo).withConfig({displayName:"Bottomstyles__BottomDesktopDrawer",componentId:"sc-ivev9d-3"})(["position:absolute;top:0;left:0;"]),Ei=(0,l.default)(zi).withConfig({displayName:"Bottomstyles__BottomDropdownMenu",componentId:"sc-ivev9d-4"})(["position:absolute;top:","px;left:0;width:100%;z-index:50;"],c.Vz.NAV_DESKTOP_BOTTOM),_i=l.default.div.withConfig({displayName:"Scrimstyles__Overlay",componentId:"sc-12ilsja-0"})(["visibility:",";opacity:",";transition:opacity ",";position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:",";z-index:10;","{z-index:",";}"],(e=>{let{visible:t}=e;return t?"visible":"hidden"}),(e=>{let{active:t}=e;return t?"1":"0"}),(e=>{let{theme:t}=e;return t.movement.duration}),(e=>{let{theme:t}=e;return t.scrim.dark}),(e=>{let{theme:t}=e;return t.mediaQuery.navDesktop}),(e=>{let{flyoutOpen:t}=e;return t?0:-1})),Ri=e=>{let{className:t,active:n,onClick:i,flyoutOpen:r}=e;const a=(0,o.useContext)(l.ThemeContext),[s,c]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{let e=null;return n?c(!0):e=window.setInterval((()=>c(!1)),parseInt(a.movement.duration)),()=>{window.clearInterval(e)}}),[a,n]),(0,y.jsx)(_i,{className:t,active:n,flyoutOpen:r,visible:s,onClick:i})};Ri.propTypes={className:i.string,flyoutOpen:i.bool,active:i.bool,onClick:i.func};var Pi=Ri;const Bi=()=>{const{state:{router:e},localizer:{text:t}}=L(),{state:{menuOpen:n,flyoutOpen:i,activeCustomDrawer:r},actions:{closeMenu:a,closeFlyout:s,closeCustomDrawer:l}}=O(),c=(0,o.useMemo)((()=>{const e=Object.keys(ae).map((e=>[ae[e].name,(0,o.createRef)()]));return Object.fromEntries(e)}),[]),u=(0,o.useCallback)((()=>{n?a():i?s():r?.isOpen&&r?.enableScrim&&l(r?.id)}),[n,i,a,s,r,l]),d=r?.isOpen&&r?.enableScrim;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(Ti,{children:[(0,y.jsx)(Oi,{children:(0,y.jsx)(Ai,{children:Object.keys(ae).map((n=>!ae[n].excludeLocale?.includes(e.locale)&&(0,y.jsx)(Go,{ref:c[ae[n].name],menuName:ae[n].name,icon:ae[n].icon,href:ae[n].to,activeStateUrl:ae[n].activeStateUrl,analytics:{navLocation:"desktop",navLocationLevel:1,clickLocation:ae[n].name},children:t(ae[n].label)},ae[n].name)))})}),(0,y.jsx)(Ei,{}),(0,y.jsx)(ki,{flyoutOpen:i})]}),(0,y.jsx)(Pi,{active:n||i||d,onClick:u,flyoutOpen:i})]})};Bi.propTypes={navRef:i.object};var Yi=Bi;const Ui=l.default.div.withConfig({displayName:"Flyoutstyles__Flyout",componentId:"sc-jqi7uv-0"})(["visibility:",";position:fixed;right:",";top:0;z-index:",";width:","px;height:100%;background-color:",";padding-left:",";padding-right:",";transition:all ","ms;"],(e=>{let{open:t}=e;return t?"visible":"hidden"}),(e=>{let{open:t}=e;return t?0:`-${c.n.FLYOUT_DESKTOP}px`}),c.kg,c.n.FLYOUT_DESKTOP,(e=>{let{theme:t,bgColor:n}=e;return n||t.color.lightGray3}),(e=>{let{theme:t}=e;return t.spacing[20]}),(e=>{let{theme:t}=e;return t.spacing[20]}),c.th.DROPDOWN_DESKTOP),Gi=e=>{let{children:t}=e;const{state:{flyoutVisible:n,flyoutOpen:i,activeCustomDrawer:r}}=O(),a=(0,o.useMemo)((()=>r?.target===c.zO.FLYOUT?r:null),[r]),s=(0,o.useMemo)((()=>!n&&a?a.content:t),[n,a,t]),l=i||a?.isOpen;return(0,y.jsx)(Ui,{"aria-hidden":!l,open:l,bgColor:!n&&a?.bgColor,children:s})};Gi.propTypes={children:i.node};var Zi=Gi;const Qi=l.default.span.withConfig({displayName:"OffsetSpacing__Offset",componentId:"sc-vy8zrw-0"})(["display:block;height:","px;min-height:","px;"],(e=>{let{size:t}=e;return t}),(e=>{let{size:t}=e;return t}));var Wi=e=>{let{size:t}=e;return(0,y.jsx)(Qi,{size:t})},Fi=n(20204);const Hi=l.default.div.withConfig({displayName:"MaintenanceNotificationstyles__Wrapper",componentId:"sc-iz67m1-0"})(["border:1px solid ",";background-color:",";position:relative;z-index:2001;"],(e=>{let{theme:t}=e;return t.color.darkGray2}),(e=>{let{theme:t}=e;return t.color.lightGray3})),Vi=l.default.span.withConfig({displayName:"MaintenanceNotificationstyles__IconSpan",componentId:"sc-iz67m1-1"})(["height:","px;margin-right:",";"],(e=>{let{size:t}=e;return t}),(e=>{let{theme:t}=e;return t.spacing[16]})),$i=l.default.div.withConfig({displayName:"MaintenanceNotificationstyles__Content",componentId:"sc-iz67m1-2"})(["min-height:","px;display:flex;justify-content:center;align-items:center;height:100%;width:100%;max-width:",";padding-top:",";padding-bottom:",";padding-left:",";padding-right:",";margin:0 auto;*{margin-top:0;margin-bottom:0;}"],c.Vz.MAINT_NOTIF,(e=>{let{theme:t}=e;return t.page.maxWidth}),(e=>{let{theme:t}=e;return t.spacing[12]}),(e=>{let{theme:t}=e;return t.spacing[12]}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.spacing[48]})),qi=(0,l.default)(Me).withConfig({displayName:"MaintenanceNotificationstyles__Close",componentId:"sc-iz67m1-3"})(["position:absolute;right:",";top:50%;transform:translateY(-50%);color:",";"],(e=>{let{theme:t}=e;return t.spacing[12]}),(e=>{let{theme:t}=e;return t.color.black})),Ji=l.default.div.withConfig({displayName:"MaintenanceNotificationstyles__DescWrap",componentId:"sc-iz67m1-4"})(["a{font-weight:700;text-decoration:underline;}"]);var Ki=()=>{const{state:{maintenance:e,maintenanceNotifOpen:t},actions:{closeMaintenanceNotif:n}}=L(),{store:i,eshop:r}=e,a=(0,o.useMemo)((()=>M({store:i,eshop:r})),[i,r]);return t?(0,y.jsxs)(Hi,{children:[(0,y.jsxs)($i,{children:[(0,y.jsx)(Vi,{size:24,children:(0,y.jsx)(So.Z,{size:24})}),(0,y.jsx)(Ji,{children:(0,Fi.h)(a?.shownDescription.json)})]}),(0,y.jsx)(qi,{onClick:n})]}):null};var Xi=()=>{const{state:{maintenanceNotifOpen:e}}=L(),{state:{flyoutOpen:t},actions:{closeFlyout:n}}=O(),i=(0,o.useMemo)((()=>e?c.Vz.NAV_DESKTOP+c.Vz.MAINT_NOTIF:c.Vz.NAV_DESKTOP),[e]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Wi,{size:i}),(0,y.jsxs)(B,{children:[(0,y.jsx)(Ki,{}),(0,y.jsx)(Eo,{}),(0,y.jsx)(Yi,{})]}),(0,y.jsx)(Zi,{children:(0,y.jsx)(en,{flyoutOpen:t,handleClose:n})})]})};const er=l.default.button.withConfig({displayName:"SearchButtonstyles__StyledButton",componentId:"sc-2kugj4-0"})(["width:60px;height:60px;background:",";border:none;border-radius:50%;color:",";cursor:pointer;"],(e=>{let{theme:t}=e;return t.color.primary}),(e=>{let{theme:t}=e;return t.color.white})),tr=o.forwardRef((function(e,t){const{onButtonClick:n,...o}=e;return(0,y.jsx)(er,{onClick:n,ref:t,...o,children:(0,y.jsx)(pn.Z,{size:32})})}));tr.propTypes={onButtonClick:r().func};var nr=tr;const or=l.default.div.withConfig({displayName:"Mobilestyles__StyledMobile",componentId:"sc-nfbri6-0"})(["position:relative;top:0;left:0;width:100%;z-index:",";","{display:none;}"],c.kg,(e=>{let{theme:t}=e;return t.mediaQuery.navDesktop})),ir=(0,l.default)(nr).withConfig({displayName:"Mobilestyles__StyledSearchButton",componentId:"sc-nfbri6-1"})(["margin-top:",";"],(e=>{let{theme:t}=e;return`-${t.spacing[16]}`})),rr=l.default.input.withConfig({displayName:"Mobilestyles__HiddenInput",componentId:"sc-nfbri6-2"})(["position:fixed;top:9px;left:32px;z-index:-1;border-color:transparent;background:transparent;"]);var ar=n(71613);const sr=l.default.header.withConfig({displayName:"Topstyles__Wrapper",componentId:"sc-ogbajk-0"})(["position:relative;width:100%;height:auto;"]),lr=l.default.div.withConfig({displayName:"Topstyles__Top",componentId:"sc-ogbajk-1"})(["display:flex;align-items:center;justify-content:space-between;width:100%;padding-left:1rem;padding-right:1rem;height:","px;z-index:1000;background-color:",";color:",";","{display:none;}"],c.Vz.NAV_MOBILE,(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.mediaQuery.desktop})),cr=l.default.div.withConfig({displayName:"Topstyles__Links",componentId:"sc-ogbajk-2"})(["height:100%;display:flex;align-items:center;"]);var ur=e=>{let{searchButtonRef:t}=e;const{state:{onStorePage:n,router:i}}=L(),r=(0,o.useMemo)((()=>H.has(i.locale)?rn.L:rn.f),[i.locale]),{state:{query:a,isSearchFlyoverOpen:s,selectedSearchOption:l},actions:{closeSearchFlyover:c,onSearchSubmit:u}}=(0,an.N1)({locale:i.locale,categoryOptions:r}),d=(0,o.useMemo)((()=>H.has(i.locale)?rn.b.LATAM_ALL_PRODUCTS:rn.b.ALL_PRODUCTS),[i.locale]),p=(0,o.useMemo)((()=>t?.current?(0,y.jsx)(nn.F,{returnFocus:t.current,bindFocus:s,children:(0,y.jsx)(Pn,{isOpen:s,locale:i.locale,onCloseClick:c,activeQuery:a,activeCategoryOption:l,onSearchSubmit:u,options:r,allProductsIndexConfig:rn.c[d]})}):(0,y.jsx)(Pn,{isOpen:s,locale:i.locale,onCloseClick:c,activeQuery:a,activeCategoryOption:l,onSearchSubmit:u,options:r,allProductsIndexConfig:rn.c[d]})),[d,c,s,u,a,i.locale,l,r,t]);return(0,y.jsxs)(sr,{children:[p,(0,y.jsxs)(lr,{children:[(0,y.jsxs)(Fe,{to:"/",analytics:{navLocation:"mobile top",navLocationLevel:1},children:[(0,y.jsx)(ar.S,{as:"h1",children:"Nintendo"}),(0,y.jsx)(on.Z,{size:89})]}),(0,y.jsxs)(cr,{children:[(0,y.jsx)(Fe,{to:"/store",ariaLabel:"My Nintendo Store",analytics:{navLocation:"mobile top",navLocationLevel:1},children:n&&(0,y.jsx)(xi.Z,{size:136})}),(0,y.jsx)(Do.S,{size:20}),(0,y.jsx)(Qn,{locale:i.locale,flagOnly:!0})]})]})]})};const dr=e=>(0,y.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",xmlSpace:"preserve",className:e.className,width:e.size,role:"presentation",alt:"","data-testid":"HamburgerMenuIcon",...e,children:(0,y.jsx)("path",{fill:e.color,d:"M0 12.8h32v6.4H0zM0 24h32v6.4H0zM0 1.6h32V8H0z"})});dr.propTypes={className:r().string,color:r().string,size:r().oneOfType([r().number,r().string])},dr.defaultProps={color:"currentColor",size:24};const pr=l.default.div.withConfig({displayName:"HamburgerMenustyles__HamburgerMenu",componentId:"sc-ueqadc-0"})(["position:relative;"]),mr=(0,l.default)(ue).withConfig({displayName:"HamburgerMenustyles__PrimaryMenu",componentId:"sc-ueqadc-1"})(["transform:translateX( "," );transition:",";"],(e=>{let{secondaryOpen:t}=e;return t?"-33%":"0"}),(e=>{let{theme:t}=e;return`transform ${c.th.HAMBURGER_SLIDE_MOBILE}ms ${t.movement.easing}`})),hr=(0,l.default)(ue).withConfig({displayName:"HamburgerMenustyles__SecondaryMenu",componentId:"sc-ueqadc-2"})(["transform:translateX( "," );transition:",";"],(e=>{let{secondaryOpen:t}=e;return t?"0":"100%"}),(e=>{let{theme:t}=e;return`transform ${c.th.HAMBURGER_SLIDE_MOBILE}ms ${t.movement.easing}`})),gr=()=>{const{state:{router:e},localizer:{text:t}}=L(),{state:{menuOpen:n},actions:{openMenu:o,closeDrawer:i}}=_();return(0,y.jsxs)(mr,{"data-testid":"primary-menu",secondaryOpen:n,children:[(0,y.jsx)(be,{handleClose:i,children:t("Menu")}),(0,y.jsxs)(de,{height:c.Vz.DRAWER_HAMBURGER_MOBILE,children:[Object.keys(ae).map((n=>!ae[n].excludeLocale?.includes(e.locale)&&(0,y.jsx)(et,{icon:ae[n].icon,chevron:ae[n].to?null:"right",onClick:()=>ae[n].to?i():o(ae[n].name),to:ae[n].to,analytics:{navLocation:"mobile bottom",navLocationLevel:2,clickLocation:ae[n].to||ae[n].name},children:t(ae[n].label)},ae[n].name))),(0,y.jsxs)(me,{children:[(0,y.jsx)(et,{icon:"support",to:t("https://en-americas-support.nintendo.com/"),onClick:i,analytics:{navLocation:"mobile bottom",navLocationLevel:2},children:t("Support")}),(0,y.jsx)(et,{icon:"flag-usa",to:"/regionselector/",onClick:i,analytics:{navLocation:"mobile bottom",navLocationLevel:2},children:t("Change Region")})]})]})]})};gr.propTypes={secondaryOpen:i.bool,handleClose:i.func,setActiveMenu:i.func};var yr=gr;const fr=l.default.div.withConfig({displayName:"AccordionItemstyles__SubItems",componentId:"sc-1lp5ej7-0"})(["overflow-y:hidden;height:auto;max-height:",";transition:max-height ","ms;"],(e=>{let{maxHeight:t,open:n}=e;return n?t:0}),c.th.ACCORDION_MOBILE),wr=l.default.div.withConfig({displayName:"AccordionItemstyles__Wrap",componentId:"sc-1lp5ej7-1"})(["padding-top:",";padding-bottom:",";"],(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.spacing[16]})),Mr=(0,l.default)(Fe).withConfig({displayName:"AccordionItemstyles__SubItem",componentId:"sc-1lp5ej7-2"})(["display:flex;align-items:center;padding-left:",";padding-right:",";height:","px;"],(e=>{let{theme:t}=e;return t.spacing[32]}),(e=>{let{theme:t}=e;return t.spacing[16]}),c.Vz.ACCORDION_SUBITEM_MOBILE),xr=e=>{let{onClick:t,menuItem:n,open:i,handleClose:r}=e;const{localizer:{text:a}}=L(),s=(0,o.useMemo)((()=>n[0]),[n]),l=(0,o.useMemo)((()=>`${(n.length-1)*c.Vz.ACCORDION_SUBITEM_MOBILE+c.Vz.ACCORDION_SUBITEM_WRAP_MOBILE}px`),[n]),u=(0,o.useMemo)((()=>n.slice(1).map((e=>(0,y.jsx)(Mr,{to:e.to,onClick:r,analytics:{navLocation:"mobile bottom",navLocationLevel:3},children:a(e.label)},e.label)))),[n,a,r]);return u.length?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(et,{chevron:"down",open:i,onClick:t,"aria-expanded":i,"aria-controls":`collapse-${s.label}`,analytics:{navLocation:"mobile bottom",navLocationLevel:3,clickLocation:s.label},children:a(s.label)}),(0,y.jsx)(fr,{id:`collapse-${s.label}`,maxHeight:l,open:i,"aria-label":a(s.label),children:(0,y.jsx)(wr,{children:u})})]}):(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(et,{to:s.to,onClick:r,children:a(s.label)})})};xr.defaultProps={open:!1},xr.propTypes={onClick:i.func,menuItem:re,open:i.bool,handleClose:i.func};var Lr=xr;const jr=()=>{const{localizer:{text:e},state:{router:{locale:t}}}=L(),{state:{activeMenu:n,menuOpen:i,activeAccordion:r,accordionOpen:a},actions:{closeDrawer:s,openAccordion:l,closeAccordion:u,closeMenu:d}}=_(),p=(0,o.useCallback)((e=>r!==e?l(e):u()),[r,l,u]),m=(0,o.useMemo)((()=>ae[n]?.items.map((e=>{const n=e.filter((e=>"mobile"!==e.hidden));if(!n.length)return;const o=n[0];return o.excludeLocale.includes(t)?void 0:(0,y.jsx)(Lr,{onClick:()=>p(o.label),handleClose:s,menuItem:n,open:r===o.label&&a},o.label)}))),[n,r,s,p,a,t]);return(0,y.jsxs)(hr,{"data-testid":"secondary-menu",secondaryOpen:i,children:[(0,y.jsx)(be,{handleClose:s,handleBack:d,children:ae[n]&&e(ae[n].label)}),(0,y.jsx)(de,{height:c.Vz.DRAWER_HAMBURGER_MOBILE,children:m})]})};jr.propTypes={activeMenu:(0,i.oneOf)(Object.keys(c.aA)),secondaryOpen:i.bool,handleClose:i.func,setActiveMenu:i.func};var Cr=jr;const Ir=()=>(0,y.jsxs)(pr,{children:[(0,y.jsx)(yr,{}),(0,y.jsx)(Cr,{})]});Ir.propTypes={handleClose:i.func};var vr=Ir;const br=(0,l.default)(Wo.m.div).withConfig({displayName:"Drawerstyles__Drawer",componentId:"sc-oe8kf6-0"})(["position:absolute;left:0;bottom:29px;width:100%;height:",";background-color:",";border:1px solid ",";border-top-left-radius:",";border-top-right-radius:",";overflow:hidden;z-index:-1;"],(e=>{let{drawerHeight:t}=e;return t||"0"}),(e=>{let{theme:t,bgColor:n}=e;return n||t.color.white}),(e=>{let{theme:t,borderColor:n}=e;return n||t.color.lightGray3}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.spacing[16]})),{HAMBURGER:Nr,ACCOUNT:Sr}=c.mH;var Dr=()=>{const{state:{activeDrawer:e,activeCustomDrawer:t,drawerOpen:n},actions:{closeDrawer:i}}=_(),r=(0,Zo.J)(),a=(0,o.useMemo)((()=>{switch(e){case Nr:return(0,y.jsx)(vr,{});case Sr:return(0,y.jsx)(en,{handleClose:i})}if(t)return t.content}),[t,e,i]),s=e===c.mH.HAMBURGER?c.Vz.DRAWER_HAMBURGER_MOBILE:e===c.mH.ACCOUNT?c.Vz.DRAWER_ACCOUNT_MOBILE:t?.height;return(0,y.jsx)(Qo.M,{children:n||t?.isOpen?(0,y.jsx)(br,{"aria-hidden":!e&&!t?.isOpen,"data-testid":"drawer",bgColor:!e&&t?.bgColor,borderColor:!e&&t?.borderColor,drawerHeight:s,transition:r?"none":$o.d.animation.vertical.standardEase,initial:{height:"0px",opacity:1},animate:{height:s},exit:{height:"0px"},children:a}):null})};const zr="58px",Tr=l.default.div.withConfig({displayName:"Bottomstyles__Wrapper",componentId:"sc-tvb962-0"})(["position:relative;width:100%;height:calc("," + ",");background:linear-gradient(to bottom,rgba(0,0,0,0),rgba(0,0,0,0.2));position:fixed;bottom:0px;display:block;left:50%;transform:translateX(-50%);z-index:1000;","{display:none;}"],zr,(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.mediaQuery.desktop})),Or=l.default.div.withConfig({displayName:"Bottomstyles__Bottom",componentId:"sc-tvb962-1"})(["margin:auto;height:",";width:96%;max-width:440px;","{display:none;}"],zr,(e=>{let{theme:t}=e;return t.mediaQuery.desktop})),Ar=l.default.nav.withConfig({displayName:"Bottomstyles__BottomNav",componentId:"sc-tvb962-2"})(["position:relative;height:",";display:flex;align-items:center;justify-content:space-between;padding-left:",";padding-right:",";background-color:",";border-radius:100px;box-shadow:0 "," "," 0 rgba(0,0,0,0.2);"],zr,(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return t.pxToRem(4)}),(e=>{let{theme:t}=e;return t.pxToRem(8)})),kr=(0,l.default)(Fe).withConfig({displayName:"Bottomstyles__Button",componentId:"sc-tvb962-3"})(["display:flex;justify-content:center;flex:1 auto;position:relative;height:",";"],zr);l.default.div.withConfig({displayName:"Bottomstyles__DisabledCart",componentId:"sc-tvb962-4"})(["display:flex;justify-content:center;align-items:center;flex:1 auto;position:relative;height:",";"],zr);const Er=(0,l.keyframes)(["from{opacity:.3}to{opacity:1}"]),_r=l.default.div.withConfig({displayName:"LoadingIconstyles__LoadingWrap",componentId:"sc-8ypsl5-0"})(["position:relative;width:26px;height:26px;border:2px solid ",";border-radius:100%;"],(e=>{let{theme:t}=e;return t.color.lightGray2})),Rr=l.default.div.withConfig({displayName:"LoadingIconstyles__DotsWrap",componentId:"sc-8ypsl5-1"})(["position:absolute;left:0;top:0;right:0;bottom:0;margin:auto;width:10px;height:10px;"]),Pr=l.default.div.withConfig({displayName:"LoadingIconstyles__Dot",componentId:"sc-8ypsl5-2"})(["position:absolute;width:4px;height:4px;background-color:",";opacity:0.3;border-radius:100%;animation-duration:0.4s;animation-timing-function:cubic-bezier(0.47,0,0.745,0.715);animation-iteration-count:infinite;animation-direction:alternate;animation-fill-mode:none;animation-play-state:running;animation-name:",";&:nth-child(1){top:0;left:0;animation-delay:0.2s;}&:nth-child(2){top:0;right:0;animation-delay:0.4s;}&:nth-child(3){bottom:0;right:0;animation-delay:0.6s;}&:nth-child(4){bottom:0;left:0;animation-delay:0.8s;}"],(e=>{let{theme:t}=e;return t.color.darkGray3}),Er);var Br=()=>(0,y.jsx)(_r,{children:(0,y.jsxs)(Rr,{children:[(0,y.jsx)(Pr,{}),(0,y.jsx)(Pr,{}),(0,y.jsx)(Pr,{}),(0,y.jsx)(Pr,{})]})});const{HAMBURGER:Yr,ACCOUNT:Ur}=c.mH,Gr=e=>{let{children:t}=e;const{state:{accounts:{isLoggedIn:n,loading:i},customer:{loading:r},maintenance:a,cartUrl:s,router:{locale:l}},actions:{openModal:c},localizer:{text:u}}=L(),{state:{activeDrawer:d,activeCustomDrawer:p,drawerOpen:m},actions:{closeDrawer:h,closeCustomDrawer:g,openDrawer:f}}=_(),w=(0,o.useMemo)((()=>d===Yr?(0,y.jsx)(ye.Z,{}):(0,y.jsx)(dr,{})),[d]),M=(0,o.useMemo)((()=>{let e=null;return i||r?(0,y.jsx)(Br,{}):(e=n?(0,y.jsx)(st,{size:24}):(0,y.jsx)(Vn,{}),d===Ur?(0,y.jsx)(ye.Z,{}):e)}),[d,i,n,r]),x=(0,o.useMemo)((()=>Bn(l)?(0,y.jsx)(kr,{to:"/store/games/",ariaLabel:u("Games"),analytics:{navLocation:"mobile bottom",navLocationLevel:1},children:(0,y.jsx)(Se.Z,{})}):a.store?.active?(0,y.jsx)(kr,{ariaLabel:u("Shopping cart"),analytics:{navLocation:"mobile bottom",navLocationLevel:1},onClick:()=>c({label:u("Cart down for maintenance"),content:(0,y.jsx)(ko,{type:"cart"})}),children:(0,y.jsx)(co,{disabled:!0})}):(0,y.jsx)(kr,{to:s,ariaLabel:u("Shopping cart"),analytics:{navLocation:"mobile bottom",navLocationLevel:1},children:(0,y.jsx)(co,{})})),[a,s,l,u,c]),j=(0,o.useCallback)((()=>d===Yr?h():f(Yr)),[d,h,f]),C=(0,o.useCallback)((()=>i||r?null:d===Ur?h():f(Ur)),[d,h,f,i,r]),I=(0,o.useCallback)((()=>{m?h():p?.isOpen&&p?.enableScrim&&g(p?.id)}),[m,h,p,g]),v=p?.isOpen&&p?.enableScrim;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Pi,{active:m||v,onClick:I}),(0,y.jsx)(Tr,{children:(0,y.jsx)(Or,{children:(0,y.jsxs)(Ar,{children:[(0,y.jsx)(kr,{ariaLabel:u("Main menu"),onClick:j,analytics:{navLocation:"mobile bottom",navLocationLevel:1,clickLocation:"MAIN_MENU"},children:w}),(0,y.jsx)(kr,{to:"/wish-list",ariaLabel:u("Wish List"),analytics:{navLocation:"mobile bottom",navLocationLevel:1},children:(0,y.jsx)(Oe,{})}),t,x,(0,y.jsx)(kr,{ariaLabel:u("Account"),onClick:C,analytics:{navLocation:"mobile bottom",navLocationLevel:1,clickLocation:"ACCOUNT_MENU"},children:M}),(0,y.jsx)(Dr,{})]})})})]})};Gr.propTypes={children:i.node};var Zr=Gr;var Qr=()=>{const{state:{router:e},localizer:{text:t}}=L(),{state:{isSearchFlyoverOpen:n},actions:{openSearchFlyover:i}}=(0,an.N1)({locale:e.locale}),r=(0,o.useRef)(),a=(0,o.useRef)(),s=(0,o.useCallback)((()=>{i(),r.current.focus()}),[i]);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(rr,{ref:r,hidden:!n}),(0,y.jsxs)(or,{children:[(0,y.jsx)(Ki,{}),(0,y.jsx)(ur,{searchButtonRef:a}),(0,y.jsx)(Zr,{children:(0,y.jsx)(ir,{ref:a,onClick:s,"aria-label":t("Search")})})]})]})},Wr=n(65273);var Fr=()=>{const{state:{modal:e},actions:{closeModal:t}}=L();return(0,y.jsx)(Wr.M,{visible:e.visible,dialogLabel:e.label,onClose:t,children:e.content})};var Hr=()=>{const[e,t]=(0,o.useState)(!1),{state:{isDesktop:n}}=L();var i;return i=()=>t(!0),(0,o.useEffect)(i,[]),n?(0,y.jsxs)(k,{children:[e&&(0,y.jsx)(Fr,{}),(0,y.jsx)(Xi,{})]}):(0,y.jsxs)(P,{children:[e&&(0,y.jsx)(Fr,{}),(0,y.jsx)(Qr,{})]})},Vr=n(82383);const $r=`@media ${`(min-width: ${c.T0}px)`}`,qr=e=>({...e,mediaQuery:{...e.mediaQuery,navDesktop:$r}}),Jr=e=>{let{router:t,accountsUrl:n,origin:o}=e;return(0,y.jsx)(b,{accountsUrl:n,router:t,origin:o,children:(0,y.jsx)(l.ThemeProvider,{theme:qr,children:(0,y.jsx)(a.X,{features:s.H,children:(0,y.jsx)(N.H.NewLevel,{children:(0,y.jsx)(Hr,{})})})})})};Jr.propTypes={accountsUrl:i.string.isRequired,router:m,origin:i.string},Jr.defaultProps=h;const Kr={MOBILE:c.Vz.NAV_MOBILE,DESKTOP:c.Vz.NAV_DESKTOP}},5847:function(e,t,n){n.d(t,{S:function(){return x}});var o=n(2784),i=n(13980),r=n.n(i),a=n(19689),s=n(31776),l=n(17788),c=n(4792),u=n(52048),d=n(52322);const p=(0,l.default)(a.c.ValueContainer).withConfig({displayName:"SearchBarSelectstyles__ValueContainerReplacement",componentId:"sc-190tvj8-0"})(["&&&{padding:",";}"],(e=>{let{theme:t}=e;return`${t.spacing[2]} ${t.spacing[4]} ${t.spacing[2]} ${t.spacing[8]}`})),m=(0,l.default)(a.c.SingleValue).withConfig({displayName:"SearchBarSelectstyles__SingleValueReplacement",componentId:"sc-190tvj8-1"})(["&&&{color:",";margin-left:0;transition:",";","}"],(e=>{let{theme:t}=e;return t.color.darkGray2}),(e=>{let{theme:t}=e;return`color ${t.movement.duration} ${t.movement.easing} ${t.movement.delay}`}),(e=>{let{selectProps:t}=e;return t.menuIsOpen&&(0,l.css)(["color:",";"],(e=>{let{theme:t}=e;return t.color.primary}))})),h=(0,l.default)(a.c.Menu).withConfig({displayName:"SearchBarSelectstyles__MenuReplacement",componentId:"sc-190tvj8-2"})(["&&&{box-shadow:0 0 8px 0 rgba(0,0,0,0.2);border:solid 1px ",";border-radius:",";font-size:",";font-weight:",";margin-top:",";z-index:2002;}"],(e=>{let{theme:t}=e;return t.color.lightGray2}),(e=>{let{theme:t}=e;return t.borderRadius}),(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.spacing[4]})),g=(0,l.default)(a.c.Option).withConfig({displayName:"SearchBarSelectstyles__OptionReplacement",componentId:"sc-190tvj8-3"})(["&&&{background:",";color:",";cursor:pointer;padding:"," ",";&:hover{background:",";}"," ","}"],(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return t.color.darkGray2}),(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.color.lightGray3}),(e=>{let{isFocused:t}=e;return t&&(0,l.css)(["background:",";"],(e=>{let{theme:t}=e;return t.color.lightGray2}))}),(e=>{let{selectProps:t}=e;return t.isFocused&&(0,l.css)(["background:",";"],(e=>{let{theme:t}=e;return t.color.lightGray3}))})),y=(0,l.default)(u.Z).attrs((()=>({size:14}))).withConfig({displayName:"SearchBarSelectstyles__DropdownIndicatorReplacement",componentId:"sc-190tvj8-4"})(["color:",";margin-right:",";transition-property:transform,color;"," ",""],(e=>{let{theme:t}=e;return t.color.darkGray2}),(e=>{let{theme:t}=e;return t.spacing[8]}),(e=>{let{theme:t}=e;return(0,l.css)(["transition-delay:",";transition-duration:",";transition-timing-function:",";"],t.movement.delay,t.movement.duration,t.movement.easing)}),(e=>{let{$menuIsOpen:t}=e;return t&&(0,l.css)(["transform:rotate(180deg);color:",";"],(e=>{let{theme:t}=e;return t.color.primary}))})),f=(0,l.default)(a.c.Control).withConfig({displayName:"SearchBarSelectstyles__ControlReplacement",componentId:"sc-190tvj8-5"})(["&&&{border:none;cursor:pointer;font-size:",";font-weight:",";min-height:fit-content;"," &:hover{","{transition:",";color:",";}","{transition:",";color:",";}}}"],(e=>{let{theme:t}=e;return t.font.size.captionDesktop}),(e=>{let{theme:t}=e;return t.font.weight.bold}),(e=>{let{isFocused:t,theme:n}=e;return t&&(0,l.css)(["box-shadow:0 0 0 1px ",";outline:none;","{transition:",";color:",";}","{color:",";}"],n.color.white,m,(e=>{let{theme:t}=e;return`color ${t.movement.duration} ${t.movement.easing} ${t.movement.delay}`}),(e=>{let{theme:t}=e;return t.color.primary}),y,(e=>{let{theme:t}=e;return t.color.primary}))}),m,(e=>{let{theme:t}=e;return`color ${t.movement.duration} ${t.movement.easing} ${t.movement.delay}`}),(e=>{let{theme:t}=e;return t.color.primary}),y,(e=>{let{theme:t}=e;return`transform ${t.movement.duration} ${t.movement.easing} ${t.movement.delay}, color ${t.movement.duration} ${t.movement.easing} ${t.movement.delay}`}),(e=>{let{theme:t}=e;return t.color.primary})),w=e=>{let{selectProps:t}=e;return(0,d.jsx)(y,{$menuIsOpen:t.menuIsOpen})};w.propTypes={selectProps:r().shape({menuIsOpen:r().bool})};const M=e=>{const{onSelect:t,options:n,replacementComponents:i,value:r,...a}=e,c=o.useContext(l.ThemeContext);return(0,d.jsx)(s.ZP,{components:{Control:f,DropdownIndicator:w,IndicatorSeparator:()=>null,Menu:h,Option:g,SingleValue:m,ValueContainer:p,...i},defaultValue:n?.[0],onChange:t,options:n,isClearable:!1,isSearchable:!1,"aria-label":r?.label||n?.[0].label,theme:e=>({...e,...c,spacing:{...e.spacing,...c.spacing}}),value:r,...a})};M.defaultProps={replacementComponents:{}},M.propTypes={onSelect:r().func.isRequired,value:c.O,options:r().arrayOf(c.O).isRequired,replacementComponents:r().shape({ClearIndicator:r().func,Control:r().func,CrossIcon:r().func,DownChevron:r().func,DropdownIndicator:r().func,Group:r().func,GroupHeading:r().func,IndicatorSeparator:r().func,IndicatorsContainer:r().func,Input:r().func,LoadingIndicator:r().func,LoadingMessage:r().func,Menu:r().func,MenuList:r().func,MenuPortal:r().func,MultiValue:r().func,MultiValueContainer:r().func,MultiValueLabel:r().func,MultiValueRemove:r().func,NoOptionsMessage:r().func,Option:r().func,Placeholder:r().func,SelectContainer:r().func,SingleValue:r().func,ValueContainer:r().func})};var x=M}}]);