"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3783],{43783: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 qr},NAV_HEIGHT:function(){return Xr},default:function(){return Kr},navTheme:function(){return Jr},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(9311),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(79736),y=n(52322);const M=`(min-width: ${c.T0}px)`;var f=()=>(0,g.useMatchMedia)(M);function L(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),w=()=>(0,o.useContext)(x),j=new g.WebStorageCache(c.R5),C=new g.WebStorageCache(c.IJ),I=e=>Math.max(new Date(L(e)?.end).getTime()-Date.now(),0),b=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.useAccounts)(),p=(0,g.useCart)(),m=(0,g.useCustomer)(),h=f(),M=(0,g.useMaintenance)(),w=a?.router?a.router?.locale:n.locale,{text:b,date:N,price:v,DateFormat:S}=(0,g.useLocalizer)(w?{locale:w}:{locale:"en-us"}),D=(0,o.useMemo)((()=>a?.router?a.router?.pathname?.includes("/store"):n.pathname?.includes("/store")),[n.pathname,a]),T=(0,o.useMemo)((()=>"en-us"!==w?new URL(`/cart/${w}`,i):new URL("/cart/",i)),[w,i]),O=(0,o.useCallback)((()=>{l((e=>({visible:!1,content:e.content,label:""})))}),[]),A=(0,o.useCallback)((e=>{let{content:t,label:n}=e;l({visible:!0,content:t,label:n})}),[]),k=(0,o.useCallback)((()=>{j.set(!1,I(M)),u(!1)}),[M]);(0,o.useEffect)((()=>{const e=L(M),t=j.get(),n=C.get();void 0!==t?null===t||n!==JSON.stringify(e)?(j.delete(),C.set(JSON.stringify(e),I(M)),u(Boolean(e?.shownDescription))):u(t):u(Boolean(e?.shownDescription))}),[M]);const z=(0,o.useMemo)((()=>({state:{router:n,origin:i,accountsUrl:t,accounts:d,cart:p,customer:m,maintenance:M,modal:s,maintenanceNotifOpen:c,isDesktop:h,onStorePage:D,cartUrl:T.toString(),...a},actions:{closeModal:O,openModal:A,closeMaintenanceNotif:k},localizer:{text:b,date:N,price:v,DateFormat:S},methods:{promptLogin:d.promptLogin,promptLogout:d.promptLogout}})),[b,N,v,S,t,i,p,m,d,h,n,D,T,a,M,s,O,A,c,k]);return(0,y.jsx)(x.Provider,{value:z,children:r})};b.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})})},b.defaultProps=h;var N=b,v=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 T(){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 O=o.createContext(null),A=()=>(0,o.useContext)(O),k=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,M]=(0,o.useState)({focus:()=>{}}),{state:{activeCustomDrawer:f},actions:{openDrawer:L,closeDrawer:x}}=(0,S.e)(),w=(0,o.useRef)(null);(0,o.useEffect)((()=>()=>clearTimeout(w.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)((()=>{w.current=setTimeout((()=>r(null)),c.th.DROPDOWN_DESKTOP),s(!1),h(!1)}),[]),b=(0,o.useCallback)(((e,t)=>{r(e),s(!0),C(),M(t),w.current=setTimeout((()=>h(!0)),c.th.DROPDOWN_DESKTOP)}),[C]),N=(0,o.useCallback)((()=>{I()}),[I]),v=(0,o.useCallback)((()=>{u(!0),p(!0),I()}),[I]),A=(0,o.useCallback)((()=>{C()}),[C]);(0,o.useEffect)((()=>{a||l||f?.isOpen&&f?.enableScrim?D():T()}),[a,l,f]);const k=(0,o.useMemo)((()=>({state:{activeMenu:i,activeCustomDrawer:f,menuOpen:a,flyoutOpen:l,flyoutVisible:d,bindFocus:m,returnFocus:g},actions:{openMenu:b,openCustomDrawer:L,closeMenu:N,closeCustomDrawer:x,openFlyout:v,closeFlyout:A}})),[i,f,a,l,d,m,g,b,L,N,x,v,A]);return(0,y.jsx)(O.Provider,{value:t||k,children:n})};k.propTypes={customValue:i.object,children:i.node};var z=k;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,M]=(0,o.useState)(!1),[f,L]=(0,o.useState)(null),{state:{activeCustomDrawer:x},actions:{openDrawer:w,closeDrawer:j}}=(0,S.e)(),C=(0,o.useRef)(null);(0,o.useEffect)((()=>()=>clearTimeout(C.current)),[]);const I=(0,o.useCallback)((e=>{L((()=>i)),r(e),s(!0),p(!1)}),[i]),b=(0,o.useCallback)((()=>{C.current=setTimeout((()=>{r(null),p(!1)}),c.th.DROPDOWN_DESKTOP),s(!1)}),[]),N=(0,o.useRef)(null);(0,o.useEffect)((()=>()=>clearTimeout(N.current)),[]);const v=(0,o.useCallback)((e=>{u(e),p(!0)}),[]),O=(0,o.useCallback)((()=>{C.current=setTimeout((()=>{u(null),h(null)}),c.th.DROPDOWN_DESKTOP),p(!1)}),[]),A=(0,o.useRef)(null);(0,o.useEffect)((()=>()=>clearTimeout(A.current)),[]);const k=(0,o.useCallback)((e=>{h(e),M(!0)}),[]),z=(0,o.useCallback)((()=>{M(!1),A.current=setTimeout((()=>h(null)),c.th.ACCORDION_MOBILE)}),[]);(0,o.useEffect)((()=>{a||x?.isOpen&&x?.enableScrim?D():T()}),[a,x]);const _=(0,o.useMemo)((()=>({state:{activeDrawer:i,activeCustomDrawer:x,drawerOpen:a,activeMenu:l,menuOpen:d,activeAccordion:m,accordionOpen:g,returnFocus:f,...t?.state},actions:{openDrawer:I,openCustomDrawer:w,closeDrawer:b,closeCustomDrawer:j,openMenu:v,closeMenu:O,openAccordion:k,closeAccordion:z}})),[i,x,a,l,d,m,g,f,I,w,b,j,v,O,k,z,t]);return(0,y.jsx)(E.Provider,{value:_,children:n})};R.propTypes={customValue:i.object,children:i.node};var P=R;const Y=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})),Z="en-us",B="en-ca",U="fr-ca",G=new Set([Z,B,U]),Q="es-mx",W="pt-br",F=new Set(["es-ar","es-cl","es-co","es-pe"]),$=new Set([Q,W,...F]),H=new Set([Z,B,U,...$]);[...H].map((e=>{const t=e.split("-");return`${t[0]}_${t[1].toUpperCase()}`}));const{MY_NINTENDO_STORE:V,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={[V]:{name:V,icon:"my-nintendo-tile",label:"My Nintendo Store",activeStateUrl:"/store",excludeLocale:[...$],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:[...G]})],[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:[...$]})],[ie({image:"/Dev/Global%20Navigation/oled.png",label:"Shop systems",to:"/store/hardware/systems/",type:ne,excludeLocale:[...$]})],[ie({image:"/Dev/Global%20Navigation/oled.png",label:"Systems",to:"/switch/buy-now/",type:ne,excludeLocale:[...G,W]})],[ie({image:"/Nclood/nav/switch-lineup-pt_br",label:"Systems",to:"/switch/buy-now/",type:ne,excludeLocale:[...G,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",...$],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:[...$]})],authd:[ie({icon:"heart",label:"Wish List",to:"/wish-list"}),ie({icon:"receipt",label:"Order history",to:"/orders",excludeLocale:[...$]}),ie({icon:"receipt",label:"Purchase history",to:"https://ec.nintendo.com/my/#/",excludeLocale:[...G]}),ie({icon:"address-book",label:"Address book",to:"/address-book",excludeLocale:[...$]})]},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(59822),ce=n(99030);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.Z,buttonWidth:"full",still:!0}))).withConfig({displayName:"Menustyles__LogOutButton",componentId:"sc-1q588nn-4"})([""]);var ge=n(43499),ye=n(71613),Me=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})),Le=e=>{let{onClick:t,className:n}=e;const{localizer:{text:o}}=w();return(0,y.jsx)(fe,{className:n,onClick:t,"aria-label":o("Close"),children:(0,y.jsx)(Me.Z,{size:26})})};Le.propTypes={className:i.string,onClick:i.func};var xe=Le;const we=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 je=we;we.propTypes={href:i.string,onClick:i.func};const Ce=(0,l.default)(je).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]})),Ie=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})),be=(0,l.default)(xe).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})),Ne=e=>{let{children:t,handleClose:n,handleBack:o}=e;const{text:i}=(0,g.useLocalizer)();return(0,y.jsxs)(Ie,{children:[o&&(0,y.jsxs)(Ce,{onClick:o,children:[(0,y.jsx)(ge.Z,{size:14}),(0,y.jsx)(ye.S,{children:i("Back")})]}),(0,y.jsx)(v.H,{children:t}),(0,y.jsx)(be,{onClick:n})]})};Ne.propTypes={children:i.node,handleBack:i.func,handleClose:i.func};var ve=Ne,Se=n(65905),De=n(21203),Te=n(25338),Oe=n(89056),Ae=n(12814),ke=n(92445),ze=n(77682),Ee=n(79102),_e=n(46658),Re=n(3099),Pe=n(68374),Ye=n(56007),Ze=n(19089),Be=n(31766),Ue=n(52048),Ge=n(51855),Qe=n(38217);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:M},origin:f}}=w(),L=function(){const{ProxyLink:e}=(0,o.useContext)(l.ThemeContext);return e}(),{trackNavLinkClick:x}=(0,g.useAnalytics)(),j=/^https?:\/\//i.test(s),C=(0,o.useMemo)((()=>""===h||"/"===h?s:j?new URL(s,f).href:new URL(((e,t)=>t===Z?e:`/${t}${e}`)(s,M)||s,f).href),[h,s,f,M,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)(je,{ref:t,...I,disabled:!0,children:n}):s?j?(0,y.jsx)(je,{ref:t,href:C,...I,children:n}):(0,y.jsx)(L,{href:C,children:(0,y.jsx)(je,{ref:t,...I,children:n})}):(0,y.jsx)(je,{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 $e=(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})),He=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})),Ve=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;"]);var Je=n(64187);const Ke=l.default.a.withConfig({displayName:"RegionSelectorLinkstyles__Wrapper",componentId:"sc-1og1ar5-0"})(["display:inline-flex;align-items:center;justify-content:center;"]),Xe=l.default.span.withConfig({displayName:"RegionSelectorLinkstyles__FlagBorder",componentId:"sc-1og1ar5-1"})(["border-radius:0.25rem;border:solid 1px white;overflow:hidden;img{display:block;}"]),et=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})),tt={"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"}},nt=e=>{const{flagOnly:t,locale:n,noLink:o}=e,{country:i,flag:r,language:a}=tt[n]||{};return(0,y.jsxs)(Ke,{as:o?"span":"a",href:o?null:"https://www.nintendo.com/regionselector/",children:[(0,y.jsx)(Xe,{children:(0,y.jsx)(Je.F,{country:r||i,width:"24"})}),!t&&(0,y.jsxs)(et,{"data-testid":"language-country",children:[a," ",`(${i})`]})]})};nt.propTypes={locale:r().oneOf([...H]),flagOnly:r().bool,noLink:r().bool},nt.defaultProps={noLink:!1};const ot={"address-book":Se.Z,"d-pad":De.Z,"region-selection":e=>{let{locale:t}=e;return(0,y.jsx)(nt,{flagOnly:!0,locale:t,noLink:!0})},gear:Te.Z,gift:Oe.Z,heart:Ae.Z,news:ke.Z,receipt:ze.Z,offsite:Ee.Z,"star-play-nintendo":_e.Z,storefront:Re.Z,support:Pe.Z,switch:Ye.Z,"my-nintendo-tile":Ze.Z,snowflake:Be.Z},it={down:Ue.Z,right:Ge.Z,up:Qe.Z},rt=e=>{let{chevron:t,children:n,icon:o,secondaryIcon:i,open:r,to:a,...s}=e;const{state:{router:l}}=w(),c=ot[o],u=t&&it[t],d=i&&ot[i],p=/^https?:\/\//i.test(a);return(0,y.jsxs)($e,{target:p?"_blank":"_self",to:a,...s,children:[o&&(0,y.jsx)(He,{children:(0,y.jsx)(c,{size:18,locale:l.locale})}),(0,y.jsx)("span",{children:n}),u&&(0,y.jsx)(Ve,{open:r,children:(0,y.jsx)(u,{size:14})}),d&&(0,y.jsx)(qe,{children:(0,y.jsx)(d,{size:14})})]})};rt.propTypes={chevron:(0,i.oneOf)(Object.keys(it)),children:i.string,icon:(0,i.oneOf)(Object.keys(ot)),secondaryIcon:(0,i.oneOf)(Object.keys(ot)),open:i.bool,to:i.string};var at=rt,st=n(8897),lt=n(88749);const ct=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})),ut=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;"])})),dt=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})),pt=e=>{let{className:t,size:n,expression:i,animation:r}=e;const{state:{customer:{loading:a,data:s}},localizer:{text:l}}=w(),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)(dt,{className:t,src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMThweCIgaGVpZ2h0PSIxOHB4IiB2aWV3Qm94PSIwIDAgMTggMTgiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+SWNvbi9Vc2VyIGFjY291bnQvTm8gbG9naW4gKGNpcmNsZSk8L3RpdGxlPgogICAgPGRlZnM+CiAgICAgICAgPGNpcmNsZSBpZD0icGF0aC0xIiBjeD0iOSIgY3k9IjkiIHI9IjkiPjwvY2lyY2xlPgogICAgPC9kZWZzPgogICAgPGcgaWQ9IlN5bWJvbHMiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJnbG9iYWwtbmF2LS8tZGVza3RvcC0vLXVuYXV0aCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTEyOTEuMDAwMDAwLCAtMTcuMDAwMDAwKSI+CiAgICAgICAgICAgIDxnIGlkPSJHcm91cC0x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2MjA5NywxMi45MDQ4Mzg3IDcuMzk0MTUzMjMsMTIuOTA0ODM4NyBMMTAuNDgwNjQ1MiwxMi45MDQ4Mzg3IEMxMy4zMjIxNzc0LDEyLjkwNDgzODcgMTUuNjI0Nzk4NCwxNS4yMDc0NTk3IDE1LjYyNDc5ODQsMTggTDIuMjUsMTgiIGlkPSJTaGFwZSIgZmlsbD0iIzk2OTY5NiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4KICAgICAgICAgICAgICAgICAgICA8L2c+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)(ct,{className:t,size:n,children:(0,y.jsx)(ut,{src:d,size:n,animation:r,alt:l("User Mii")})})};pt.defaultProps={animation:{iterationCount:"infinite"},size:128},pt.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 mt=pt;const ht=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),gt=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 yt=n(13675),Mt=n(7162),ft=n(80149);const Lt=(0,l.default)(ht).withConfig({displayName:"AuthdCardFrontstyles__AuthdCardFront",componentId:"sc-lf8zoa-0"})(["transform:",";"],(e=>{let{flipped:t}=e;return t?"rotateY(-180deg)":"none"})),xt=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),wt=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})),jt=(0,l.default)(v.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})),Ct=(0,l.default)(yt.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})),It=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]})),bt=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})),Nt=(0,l.default)(Mt.Z).withConfig({displayName:"AuthdCardFrontstyles__GoldPointsIcon",componentId:"sc-lf8zoa-7"})(["align-self:start;grid-row:1/3;"]),vt=(0,l.default)(ft.Z).withConfig({displayName:"AuthdCardFrontstyles__PlatinumPointsIcon",componentId:"sc-lf8zoa-8"})(["align-self:start;grid-row:1/3;"]),St=(0,l.default)(yt.T).withConfig({displayName:"AuthdCardFrontstyles__PointTypeLabel",componentId:"sc-lf8zoa-9"})(["margin:0;line-height:1rem;"]),Dt=(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})),Tt=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})),Ot=(0,l.default)(yt.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]})),At=(0,l.default)(yt.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})),kt=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}}=w(),{membershipStatus:h,pointsWallet:g}=u,M=p(u.createdAt,{format:m.YEAR}),f=(0,o.useMemo)((()=>l?90:52),[l]);return(0,y.jsxs)(Lt,{"aria-hidden":t,flipped:t,children:[(0,y.jsx)(gt,{onClick:n,"aria-label":d("Show back"),children:(0,y.jsx)("div",{children:(0,y.jsx)(st.Z,{size:26})})}),(0,y.jsxs)(xt,{children:[(0,y.jsx)(wt,{onMouseEnter:()=>r(c.bN.SMILE),onMouseLeave:()=>r(c.bN.NORMAL),href:`${s}/mii_studio`,target:"_blank",children:(0,y.jsx)(mt,{expression:i,animation:a,size:f})}),(0,y.jsx)(jt,{children:u.nickname}),(0,y.jsxs)(Ct,{children:[d("Member since")," ",M]})]}),(0,y.jsxs)(It,{children:[(0,y.jsxs)(bt,{children:[(0,y.jsx)(Nt,{size:20}),(0,y.jsx)(St,{variant:"caption",children:d("Gold Points")}),(0,y.jsx)(St,{variant:"title",children:g?.gold?.total||0})]}),(0,y.jsxs)(bt,{children:[(0,y.jsx)(vt,{size:20}),(0,y.jsx)(St,{variant:"caption",children:d("Platinum Points")}),(0,y.jsx)(St,{variant:"title",children:g?.platinum?.total||0})]})]}),(0,y.jsxs)(Dt,{to:h?.active?"https://ec.nintendo.com/my/membership":"/switch/online/",children:[(0,y.jsxs)(Tt,{children:[h?.active&&(0,y.jsx)(lt.Z,{size:12}),(0,y.jsx)(Ot,{variant:"caption",children:d(h?.active?"Nintendo Switch Online":"Level up with Nintendo Switch Online")})]}),(0,y.jsx)(At,{variant:"caption",children:d(h?.active?"Manage":"Shop now")})]})]})};kt.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 zt=kt;const Et=(0,l.default)(ht).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]})),_t=(0,l.default)(mt).withConfig({displayName:"AuthdCardBackstyles__StyledMii",componentId:"sc-12lfjd-1"})(["width:28px;height:28px;"]),Rt=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]})),Pt=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})),Yt=(0,l.default)(yt.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})),Zt=(0,l.default)(yt.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})),Bt=(0,l.default)(yt.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 Ut=n(1137);const Gt=(0,o.lazy)((()=>n.e(5716).then(n.t.bind(n,35716,23)).then((e=>{let{QRCode:t}=e;return{default:t}})))),Qt=e=>{let{flipped:t,toggleFlipped:n}=e;const{state:{customer:{data:i}},localizer:{text:r}}=w(),[a,s]=(0,o.useState)(!1),l=t||a,u=(0,o.useCallback)((()=>Gt?l?(0,y.jsx)(o.Suspense,{fallback:(0,y.jsx)("div",{}),children:(0,y.jsx)(Gt,{"aria-label":r("User's QR Code"),value:i.id,size:c.Vz.QR_CODE,quietZone:0,logoImage:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNzYuNDUgMjc1LjY4Ij48cGF0aCBkPSJNMj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MCwwLDEtLjEuMiw1OS42Miw1OS42MiwwLDAsMS00LjcsMTEuN2gwYy02LjgsMTMuMi0xOC44LDI2LjEtMzQuNywzMmgwYzAtNS4xLS40LTguNS0uNC04LjZsLS4xLTEtLjYtLjhjLTE0LjYtMTguOC00NC4zLTMwLjgtNzkuOC0zMC45LTM1LjkuMS02NywxMS45LTgxLDMwLjlsLS42LjgtLjEsMWMwLC4xLS40LDMuMS0uNSw3LjdhNjcuMDgsNjcuMDgsMCwwLDEtOC41LTQuMmgwYTU5LjEsNTkuMSwwLDAsMS01LjItMy41aDBhNTkuNDksNTkuNDksMCwwLDEtNy4xLTYuMmgwYy0xLjUtMS41LTIuOC0zLjEtNC4yLTQuN2gwYTUxLjkxLDUxLjkxLDAsMCwxLTUuMy03Ljl2LS4xYy0xLTEuOC0yLTMuNy0yLjktNS43di0uMWMtLjQtMS0uOS0yLTEuMi0zcS0xLjM1LTMuNi0yLjQtNy41bC0uMy0xLjQtLjEtLjRBOTYuNCw5Ni40LDAsMCwxLDE2LDE0My44YzAtMjMuNiw3LjYtNDkuMywyMS42LTcwLjguNS0uOC44LTEuMiwxLTEuNXYuMUM2MS42OSwzNi45LDk3LDE3LjIsMTM3Ljg5LDE2SDEzOWM0MC42LDEuMiw3NS44LDIxLDk5LDU1LjlsLjksMS40aDBjMTQsMjEuNywyMS41LDQ2LjgsMjEuNSw3MC4yQTk4LjMxLDk4LjMxLDAsMCwxLDI1OC4yOSwxNjRaIiBmaWxsPSIjMTYwNDAyIi8+PC9zdmc+",logoWidth:36,ecLevel:"M",qrStyle:"dots",eyeRadius:8})}):void 0:null),[l,i.id,r]);return(0,y.jsxs)(Et,{flipped:t,"aria-hidden":!t,children:[(0,y.jsx)(gt,{onClick:()=>{s(!0),n()},"aria-label":r("Show front"),children:(0,y.jsx)("div",{children:(0,y.jsx)(_t,{data:i.mii})})}),(0,y.jsxs)(Yt,{variant:"title",children:[r("Present this QR Code\xae to check in at select Nintendo events and locations.")," ",(0,y.jsx)(Ut.D,{href:"https://accounts.nintendo.com/qrcode",children:r("Details")})]}),(0,y.jsxs)(Rt,{children:[(0,y.jsx)(Pt,{"aria-label":r("User's QR code"),children:u()}),(0,y.jsxs)("div",{children:[(0,y.jsxs)(Zt,{variant:"title",children:[r("This QR Code contains your Nintendo Account information."),(0,y.jsx)("br",{}),r("See "),(0,y.jsx)(Ut.D,{href:"/privacy-policy/",children:r("Nintendo Privacy Policy")})]}),(0,y.jsx)(Bt,{variant:"legal",children:r("QR Code is a registered trademark of DENSO WAVE INCORPORATED.")})]})]})]})};Qt.propTypes={flipped:i.bool,toggleFlipped:i.func};var Wt=Qt;const Ft=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}))}));Ft.propTypes={loggedIn:i.bool.isRequired,flyoutOpen:i.bool};var $t=Ft;const Ht=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)($t,{loggedIn:!0,flyoutOpen:t,children:[(0,y.jsx)(zt,{flipped:n,toggleFlipped:d,miiExpression:r,setMiiExpression:a,miiAnimation:s}),(0,y.jsx)(Wt,{flipped:n,toggleFlipped:d})]})};Ht.propTypes={flyoutOpen:i.bool};var Vt=Ht,qt=n(66458);const Jt=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]})),Kt=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]})),Xt=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})),en=(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})),tn=e=>{let{promptLogin:t}=e;const{state:{accountsUrl:n,router:{locale:i}},localizer:{text:r}}=w(),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)($t,{loggedIn:!1,children:[(0,y.jsxs)(Jt,{children:[(0,y.jsx)(qt.I,{assetPath:"/Dev/Global%20Navigation/unauthd-asset.png",alt:""}),(0,y.jsxs)(Kt,{children:[(0,y.jsx)(yt.T,{variant:"title",children:r("With a free account, you can")}),s.map((e=>(0,y.jsxs)(Xt,{children:[(0,y.jsx)(lt.Z,{size:11}),(0,y.jsx)(yt.T,{variant:"caption",children:e})]},e)))]})]}),(0,y.jsx)(le.B,{onClick:t,buttonWidth:"full",still:!0,children:r("Log in")}),(0,y.jsx)(en,{variant:"secondary",href:a,buttonWidth:"full",still:!0,children:r("Sign up")})]})};tn.propTypes={promptLogin:i.func};var nn=tn;const on=e=>{let{flyoutOpen:t}=e;const{state:{customer:{data:n}},methods:{promptLogin:o}}=w();return n?(0,y.jsx)(Vt,{flyoutOpen:t}):(0,y.jsx)(nn,{promptLogin:o})};on.propTypes={flyoutOpen:i.bool};var rn=on;const an=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}}=w(),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)(at,{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)(at,{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)(ve,{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)(rn,{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)(at,{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")})})]})]})]})};an.propTypes={handleClose:i.func,flyoutOpen:i.bool};var sn=an,ln=n(76542),cn=n(13584),un=n(18019),dn=n(99221),pn=n(60396),mn=n(61970),hn=n.n(mn),gn=n(4792),yn=n(57682),Mn=n(64544),fn=n(70510);var Ln=(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 xn=l.default.div.withConfig({displayName:"AutoCompleteInputstyles__Container",componentId:"sc-ax1lsj-0"})(["position:relative;width:100%;height:100%;"]),wn=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})),jn=(0,l.default)(wn).withConfig({displayName:"AutoCompleteInputstyles__Suggestion",componentId:"sc-ax1lsj-2"})(["color:",";z-index:1;"],(e=>{let{theme:t}=e;return t.color.darkGray4})),Cn=o.forwardRef((function(e,t){const{className:n,placeholder:i,value:r,onInputChange:a,onFocus:s,onBlur:l,suggestions:c,...u}=e,d=Ln(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]),M=(0,o.useCallback)((e=>{d&&m(!0),s&&s(e)}),[s]),f=(0,o.useCallback)((e=>{m(!1),l&&l(e)}),[l]);return(0,y.jsxs)(xn,{children:[(0,y.jsx)(wn,{ref:t,className:n,placeholder:i,value:r,onKeyDown:h,onChange:g,onFocus:M,onBlur:f,...u}),p&&(0,y.jsx)(jn,{className:n,value:d,disabled:!0})]})}));Cn.defaultProps={value:"",suggestions:[]},Cn.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 In=Cn,bn=n(53704);const Nn=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})),vn=(0,l.default)(fn.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)})),Sn=l.default.span.withConfig({displayName:"SearchInputstyles__RefContainer",componentId:"sc-1r59ztq-2"})(["width:100%;"]),Dn=l.default.button.withConfig({displayName:"SearchInputstyles__Button",componentId:"sc-1r59ztq-3"})(["display:flex;align-items:center;flex:1;background:none;border:none;color:",";cursor:pointer;height:100%;width:100%;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}),vn,(e=>{let{theme:t}=e;return t.color.primary})),Tn=l.default.div.withConfig({displayName:"SearchInputstyles__InputWrapper",componentId:"sc-1r59ztq-4"})(["display:flex;align-items:center;height:100%;width:100%;"]),On=(0,l.default)(In).withConfig({displayName:"SearchInputstyles__Input",componentId:"sc-1r59ztq-5"})(["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})),An=l.default.input.withConfig({displayName:"SearchInputstyles__HiddenInput",componentId:"sc-1r59ztq-6"})(["position:absolute;visibility:hidden;"]),kn=(0,l.default)(bn.S).withConfig({displayName:"SearchInputstyles__Select",componentId:"sc-1r59ztq-7"})(["display:none;flex-basis:140px;flex-shrink:0;","{display:inline-block;}"],(e=>{let{theme:t}=e;return t.mediaQuery.desktop})),zn=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:dn.p,...e.labels},{text:M}=(0,g.useLocalizer)(),{trackSearchClick:f}=(0,Mn.u)(),L=(0,o.useMemo)((()=>s&&{value:s.value,label:M(s.label)}),[s,M]),x=(0,o.useMemo)((()=>p.map((e=>{let{value:t,label:n}=e;return{value:t,label:M(n)}}))),[p,M]),w=(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()}),[]),b=(0,o.useCallback)((e=>{if(e.preventDefault(),u){const e=a;e&&L?.label&&f(e,"User hit ",L?.label),u({queryValue:e,categoryValue:L?.value?.category})}}),[a,L,u,f]);return(0,y.jsxs)(Nn,{className:n,inputEnabled:r,onSubmit:b,action:i,method:"get",autoComplete:"off","data-testid":"form",children:[r?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(Tn,{children:[(0,y.jsx)(vn,{$inputEnabled:r}),(0,y.jsx)(On,{name:"q",ref:t,value:a,type:"text","aria-label":M(h.placeholderLabel),placeholder:M(h.placeholderLabel),suggestions:m,onInputChange:j,onFocus:I})]}),(0,y.jsx)("input",{type:"hidden",name:"cat",value:L?.value?.category||x[0].value?.category}),(0,y.jsx)(An,{type:"submit"})]}):(0,y.jsx)(Sn,{ref:t,children:(0,y.jsxs)(Dn,{"aria-haspopup":"dialog",onClick:w,children:[(0,y.jsx)(vn,{$inputEnabled:r}),(0,y.jsx)("span",{children:a||M(h.placeholderLabel)})]})}),(0,y.jsx)(kn,{onSelect:C,value:L,options:x})]})}));zn.defaultProps={labels:dn.p,options:dn.f,suggestions:[]},zn.propTypes={className:r().string,searchPath:r().string,inputEnabled:r().bool,inputValue:r().string,suggestions:r().arrayOf(r().string),selectedOption:gn.O,onClick:r().func,onSearchSubmit:r().func,onDropdownChange:r().func,onInputChange:r().func,labels:gn.L,options:r().arrayOf(gn.O).isRequired};var En=zn;var _n=(e,t,n)=>{const[i,r]=(0,o.useState)([]),a=(0,o.useMemo)((()=>hn()(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?dn.E&&s.search(e.toLowerCase(),{hitsPerPage:dn.M}).then((e=>{let{hits:t}=e;r(t.map((e=>{let{query:t}=e;return t})))})):r([])}),[s,e]),l};const Rn=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}`})),Pn=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)})),Yn=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]})),Zn=(0,l.default)(En).withConfig({displayName:"SearchFlyoverstyles__SearchInput",componentId:"sc-14rqey7-3"})([""]),Bn=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}),Zn,(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}`)})),Un=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]}`})),Gn=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}`})),Qn=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:M,inputWidth:f}=e,L=(0,o.useRef)(),x=(0,o.useRef)(),[w,j]=(0,o.useState)(i),[C,I]=(0,o.useState)(w),[b,N]=(0,o.useState)(w),[v,S]=(0,o.useState)(r),[D,T]=(0,o.useState)(0),{text:O}=(0,g.useLocalizer)(),[A,k]=(0,o.useMemo)((()=>u.toLowerCase().split("-")),[u]),z=(0,o.useCallback)((e=>{j(e)}),[]),E=(0,o.useCallback)((e=>{S(e)}),[]),_=(0,o.useCallback)((()=>{T(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]),Y=(0,o.useCallback)((()=>{t&&L.current?.blur()}),[t]),Z=(0,o.useCallback)((e=>{let{queryValue:t,categoryValue:n}=e;t!==w&&j(t),n!==v?.value?.category&&S(l.find((e=>e.value.category===n))),s&&s({queryValue:t,categoryValue:n})}),[w,v,l,s]),{suggestionsIndexName:B}=v?.value||{},{suggestions:U}=_n(b,`${B}_${A}_${k}`,m);return(0,o.useEffect)((()=>{j(i)}),[i]),(0,o.useEffect)((()=>{S(r)}),[l,r]),(0,o.useEffect)((()=>{const e=window.setTimeout((()=>{I(w)}),500);return()=>{clearTimeout(e)}}),[w]),(0,o.useEffect)((()=>{const e=window.setTimeout((()=>{N(w)}),100);return()=>{clearTimeout(e)}}),[w]),(0,o.useEffect)((()=>{let e;return t?e=window.setTimeout((()=>{L.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=()=>{T(x.current?.offsetHeight),e()};return window.addEventListener("resize",t),e(),()=>{window.removeEventListener("resize",t)}}),[]),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(Pn,{isOpen:t,role:"dialog",contentHeight:D,"aria-modal":"true",onKeyDown:P,onScroll:Y,children:[(0,y.jsxs)(Bn,{inputWidth:f,isOpen:t,children:[(0,y.jsx)(Yn,{children:(0,y.jsx)(un.Z,{size:69})}),(0,y.jsx)(Zn,{ref:L,searchPath:n,inputEnabled:!0,inputValue:w,suggestions:U,selectedOption:v,onSearchSubmit:Z,onDropdownChange:E,onInputChange:z,labels:c,options:l}),(0,y.jsx)(Gn,{onClick:R,"aria-label":O(c.closeLabel),isOpen:t,children:(0,y.jsx)(Me.Z,{size:24})})]}),(0,y.jsx)(Un,{ref:x,children:(0,y.jsx)(yn.F,{selectedOption:v,locale:u,labels:c,fetchResults:t,onResultsChange:_,onSearchSubmit:Z,query:C,allProductsIndexConfig:d,additionalResultsIndexConfig:p,topStoreProductSkus:M,trendingResults:h,closeFlyover:R})})]}),(0,y.jsx)(Rn,{isOpen:t,"data-testid":"flyover-overlay",onClick:R})]})};Qn.defaultProps={activeCategoryOption:dn.f[0],locale:yn.D,searchPath:dn.g,topStoreProductSkus:dn.B,trendingResults:dn.z,labels:dn.p,options:dn.f,defaultClientConfig:dn.D,allProductsIndexConfig:dn.c[dn.b.ALL_PRODUCTS],additionalResultsIndexConfig:dn.c[dn.b.ALL]},Qn.propTypes={isOpen:r().bool,searchPath:r().string,activeQuery:r().string,activeCategoryOption:gn.O,labels:gn.L,locale:r().string,allProductsIndexConfig:gn.C,additionalResultsIndexConfig:gn.C,defaultClientConfig:gn.a.isRequired,onCloseClick:r().func,onSearchSubmit:r().func,options:r().arrayOf(gn.O).isRequired,topStoreProductSkus:r().arrayOf(r().string),trendingResults:r().arrayOf(r().shape({label:r().string,url:r().string}))};var Wn=Qn;function Fn(e){return $.has(e)}var $n=n(8205),Hn=n(92102),Vn=n(19843),qn=n(22382),Jn=n(30744),Kn=n(49482),Xn=n(55257);const eo=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}))}})),to=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)})),no=(0,l.default)(yt.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 oo=n(1205);const io=e=>{let{theme:t,size:n}=e;return n?t.pxToRem(n):t.pxToRem(20)},ro=e=>{let{theme:t,size:n}=e;return n?t.pxToRem(.2*n):t.pxToRem(4)},ao=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=>io(e)),(e=>io(e)),(e=>ro(e)),(e=>ro(e)),(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return t.color.primary}),(e=>io(e)),(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return`${t.color.darkGray3}45`}));ao.propTypes={count:i.number,size:i.number};var so=ao;const lo=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"})),co=(0,l.default)(so).withConfig({displayName:"ConnectedCartCounterstyles__CartCounter",componentId:"sc-9xtx9i-1"})(["position:absolute;top:0;right:0;transform:translate(50%,-48%);"]),uo=e=>{let{iconSize:t,counterSize:n,disabled:i}=e;const{state:{cart:r}}=w(),a=(0,o.useMemo)((()=>!r.loading&&r.data?.totalQuantity?(0,y.jsx)(co,{size:n,count:r.data?.totalQuantity}):null),[r.loading,r.data,n]);return(0,y.jsxs)(lo,{iconSize:t,disabled:i,children:[(0,y.jsx)(oo.Z,{size:t}),a]})};uo.propTypes={iconSize:i.number,counterSize:i.number,disabled:i.bool};var po=uo;const mo={"d-pad":De.Z,"sales-tag":Hn.Z,"t-shirt":Vn.Z,user:qn.Z,heart:Ae.Z,storefront:Re.Z,support:Pe.Z,controller:Jn.Z,character:Kn.Z,StarFilledIcon:Xn.Z,snowflake:Be.Z},ho="icon",go="mii",yo="cart",Mo=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=mo[n];switch(t){case ho:e=(0,y.jsx)(eo,{type:a,children:(0,y.jsx)(o,{size:18})});break;case go:e=(0,y.jsx)(eo,{children:(0,y.jsx)(mt,{size:24,data:i})});break;case yo:e=(0,y.jsx)(to,{children:(0,y.jsx)(po,{iconSize:20,counterSize:16})});break;default:e=(0,y.jsx)(eo,{type:a,children:(0,y.jsx)(o,{})})}return(0,y.jsxs)(y.Fragment,{children:[e,(0,y.jsx)(no,{as:"span",variant:"title",type:a,children:l})]})}),[l,n,t,i,a]);return c?(0,y.jsx)(je,{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)(je,{className:u,onClick:s,analytics:p,children:m})};Mo.defaultProps={iconType:"icon"},Mo.propTypes={iconType:(0,i.oneOf)(["icon","mii","cart","nso"]),iconName:(0,i.oneOf)(Object.keys(mo)),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 fo=Mo;const Lo="\n padding-top: 0.875rem;\n padding-bottom: 0.875rem;\n",xo=(0,l.default)(fo).withConfig({displayName:"UserButtonstyles__Button",componentId:"sc-jxbhoc-0"})(["",""],Lo),wo=l.default.div.withConfig({displayName:"UserButtonstyles__LoadingWrap",componentId:"sc-jxbhoc-1"})(["",""],Lo);var jo=()=>{const{state:{accounts:{loading:e},customer:{loading:t,data:n}},localizer:{text:o}}=w(),{actions:{openFlyout:i}}=A();return e||t?(0,y.jsx)(wo,{children:(0,y.jsx)($n.L,{loadingIcon:"mushroom",loadingVariant:"fade"})}):n?(0,y.jsx)(xo,{iconType:"mii",mii:n.mii,type:"secondary",onClick:i,children:n.nickname}):(0,y.jsx)(xo,{iconName:"user",type:"secondary",onClick:i,children:o("Log in / Sign up")})};const Co={navLocationLevel:1,navLocation:"desktop"},Io=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})),bo=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})),No=(0,l.default)(fo).attrs({analytics:Co}).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})),So=(0,l.default)(En).withConfig({displayName:"Topstyles__SearchInput",componentId:"sc-14wlync-4"})([""]),Do=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 To=n(96051),Oo=n(21012);const Ao=l.default.div.withConfig({displayName:"MaintenanceCardstyles__Wrap",componentId:"sc-7r3tnc-0"})(["width:100%;"]),ko=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]})),zo=l.default.div.withConfig({displayName:"MaintenanceCardstyles__Content",componentId:"sc-7r3tnc-2"})(["padding:",";text-align:center;"],(e=>{let{theme:t}=e;return t.spacing[16]})),Eo=e=>{let{type:t}=e;const{localizer:{text:n},actions:{closeModal:i}}=w(),r=(0,o.useMemo)((()=>{if("cart"===t)return{heading:n("Cart down for maintenance"),icon:(0,y.jsx)(To.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)(Ao,{children:[(0,y.jsx)(ko,{children:(0,y.jsx)(v.H,{variant:"h3",children:r.heading})}),(0,y.jsxs)(zo,{children:[(0,y.jsx)("div",{children:r.icon}),(0,y.jsx)(Oo.S,{size:8}),(0,y.jsx)(yt.T,{children:r.body}),(0,y.jsx)(Oo.S,{size:16}),(0,y.jsx)(le.B,{buttonWidth:"full",onClick:i,children:n("Close")})]})]})};Eo.propTypes={type:(0,i.oneOf)(["cart"])};var _o=Eo;var Ro=()=>{const{state:{router:e,cartUrl:t,maintenance:n},actions:{openModal:i},localizer:{text:r}}=w(),{actions:{closeMenu:a}}=A(),s=(0,o.useRef)(),{ref:l,width:c}=(0,ln.Z)({round:e=>e}),u=(0,o.useMemo)((()=>$.has(e.locale)?dn.L:dn.f),[e.locale]),d=(0,o.useMemo)((()=>$.has(e.locale)?dn.b.LATAM_ALL_PRODUCTS:dn.b.ALL_PRODUCTS),[e.locale]),{state:{query:p,isSearchFlyoverOpen:m,selectedSearchOption:h},actions:{openSearchFlyover:g,closeSearchFlyover:M,onSearchOptionChange:f,onSearchSubmit:L}}=(0,pn.N1)({locale:e.locale,categoryOptions:u}),x=(0,o.useMemo)((()=>s.current?(0,y.jsx)(cn.F,{returnFocus:s.current,bindFocus:m,children:(0,y.jsx)(Wn,{isOpen:m,locale:e.locale,onCloseClick:M,activeQuery:p,activeCategoryOption:h,onSearchSubmit:L,options:u,allProductsIndexConfig:dn.c[d],inputWidth:c})}):(0,y.jsx)(Wn,{isOpen:m,locale:e.locale,onCloseClick:M,activeQuery:p,activeCategoryOption:h,onSearchSubmit:L,options:u,allProductsIndexConfig:dn.c[d],inputWidth:c})),[d,M,m,L,p,e.locale,h,u,c]),j=(0,o.useMemo)((()=>Boolean(n.store?.active)),[n.store]);return(0,y.jsxs)(Io,{children:[(0,y.jsxs)(bo,{gap:16,children:[(0,y.jsxs)(Fe,{to:"/",analytics:Co,children:[(0,y.jsx)(ye.S,{children:"Nintendo"}),(0,y.jsx)(vo,{children:(0,y.jsx)(un.Z,{size:69})})]}),(0,y.jsx)(Do,{ref:l,children:(0,y.jsx)(So,{ref:s,inputValue:p,selectedOption:h,onClick:g,onDropdownChange:f,options:u,labels:{placeholderLabel:r("Search")}})}),x]}),(0,y.jsxs)(bo,{padding:"0 1.25rem",children:[(0,y.jsx)(No,{to:r("https://en-americas-support.nintendo.com/"),iconName:"support",type:"secondary",onClick:a,target:"_blank",children:r("Support")}),(0,y.jsx)(No,{to:"/wish-list",iconName:"heart",type:"secondary",onClick:a,children:r("Wish List")}),Fn(e.locale)?null:(0,y.jsx)(No,{to:j?null:t,iconType:"cart",type:"secondary",onClick:()=>j?i({label:r("Cart down for maintenance"),content:(0,y.jsx)(_o,{type:"cart"})}):a,maintenance:j,children:r("Cart")}),(0,y.jsx)(jo,{}),(0,y.jsx)(nt,{locale:e.locale,flagOnly:!0})]})]})};const Po=(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)})),Yo=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)})),Zo=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)(yt.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})),Uo={storefront:Re.Z,"d-pad":De.Z,switch:Ye.Z,news:ke.Z,"star-play-nintendo":_e.Z,"my-nintendo-tile":Ze.Z,snowflake:Be.Z},Go=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}}=A(),{state:{router:m}}=w(),h=(0,o.useMemo)((()=>c===a&&u),[c,a,u]),g=Uo[n];return(0,y.jsxs)(Po,{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)(Yo,{children:(0,y.jsx)(g,{size:16})}),(0,y.jsx)(Bo,{as:"span",variant:"title",children:i}),!r&&(0,y.jsx)(Zo,{menuActive:h,children:(0,y.jsx)(Ue.Z,{size:12})})]})}));Go.displayName="DropdownButton",Go.defaultProps={active:!1},Go.propTypes={children:i.node,href:i.string,icon:(0,i.oneOf)(Object.keys(Uo)),menuName:(0,i.oneOf)(Object.values(c.aA)),activeStateUrl:i.string,analytics:c.lH};var Qo=Go,Wo=n(80648),Fo=n(94589),$o=n(93556);const Ho=(0,l.default)($o.m.div).withConfig({displayName:"Drawerstyles__DrawerWrapper",componentId:"sc-82tvyz-0"})(["position:relative;"]),Vo=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})),qo=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 Jo=n(43821);const Ko=e=>{let{className:t}=e;const{state:{activeCustomDrawer:n}}=A(),i=(0,Wo.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)(Fo.M,{children:a?.isOpen&&(0,y.jsxs)(Ho,{transition:i?"none":Jo.d.animation.vertical.standardEase,initial:{y:`-${a?.height}`,opacity:1},animate:{y:0},exit:{y:`calc(-${a?.height} - 44px)`},children:[(0,y.jsx)(Vo,{bgColor:r.current.bgColor,animationOffset:44}),(0,y.jsx)(qo,{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})]})})};Ko.propTypes={className:i.string};var Xo=Ko,ei=n(95933),ti=n(49446),ni=n(66959),oi=n(77879),ii=n(8735),ri=n(50709);const{MY_NINTENDO_STORE:ai}=c.aA,si="0.25rem",li=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}`})),ci=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===ai?0:8]}),(e=>{let{theme:t}=e;return t.spacing[12]})),ui=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]})),di=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)})),pi=(0,l.default)(Fe).withConfig({displayName:"DropdownMenustyles__LinkItem",componentId:"sc-fwuyy1-4"})(["padding-top:",";padding-bottom:",";font-size:",";"],si,si,(e=>{let{theme:t}=e;return t.font.size.captionDesktop})),mi=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===ai?0:16]}),(e=>{let{theme:t,activeMenu:n}=e;return t.spacing[n===ai?24:4]})),hi=(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"})),gi=(0,l.default)(ii.Z).withConfig({displayName:"DropdownMenustyles__NsoIcon",componentId:"sc-fwuyy1-7"})(["background-color:white;color:",";"],(e=>{let{theme:t}=e;return t.color.primary})),yi=(0,l.default)(ri.Z).attrs({width:62}).withConfig({displayName:"DropdownMenustyles__CompareArrowsIcon",componentId:"sc-fwuyy1-8"})([""]),Mi=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}),hi,(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}),gi,(e=>{let{theme:t}=e;return t.color.primary}),(e=>{let{theme:t}=e;return t.movement.duration})),fi=(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})),Li=(0,l.default)(fo).withConfig({displayName:"DropdownMenustyles__HeadingLink",componentId:"sc-fwuyy1-11"})(["padding:"," 0;"],si),xi={switch:Ye.Z,megaphone:ei.Z,calendar:ti.Z,"d-pad":De.Z,CompareArrowsIcon:yi,ForParentsIcon:ni.Z,ForKidsIcon:oi.Z,nso:gi,SalesTagIcon:Hn.Z};var wi=()=>{const{state:{router:{locale:e}},localizer:{text:t}}=w(),{state:{activeMenu:n},actions:{closeMenu:i}}=A(),r=(0,o.useMemo)((()=>ae[n]),[n]);return(0,y.jsx)(ui,{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)(di,{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=xi[o];switch(l){case c.iB.LIST:return o?(0,y.jsx)(Li,{iconName:o,to:s,onClick:i,analytics:{navLocation:"desktop",navLocationLevel:2},children:t(a)},a):(0,y.jsx)(pi,{to:s,onClick:i,analytics:{navLocation:"desktop",navLocationLevel:2},children:t(a)},a);case c.iB.ICON:return(0,y.jsxs)(hi,{to:s,onClick:i,width:d,analytics:{navLocation:"desktop",navLocationLevel:2},children:[m&&(0,y.jsx)(Mi,{children:(0,y.jsx)(m,{size:42})}),r&&(0,y.jsx)(Mi,{children:(0,y.jsx)(qt.I,{assetPath:r,showPlaceholder:!0,alt:""})}),(0,y.jsx)(yt.T,{variant:"caption",children:t(a)})]},a)}}))},`group ${n[0].label}`)}))})},ji=n(70342);const Ci=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})),Ii=(0,l.default)(xe).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})),bi=(0,l.default)(Ge.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}`})),Ni=(0,l.default)(Fe).withConfig({displayName:"Awningstyles__AwningLink",componentId:"sc-12iyqmw-3"})(["&:hover{","{transform:translate(10px,2px);}}"],bi),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,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDVweCIgaGVpZ2h0PSIxNHB4IiB2aWV3Qm94PSIwIDAgNDUgMTQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDx0aXRsZT5TdG9yZWZyb250LWF3bmluZy1wYXR0ZXJuPC90aXRsZT4KICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIGlkPSJTdG9yZWZyb250LWF3bmluZy1wYXR0ZXJuIiBmaWxsPSIjRTYwMDEyIiBmaWxsLXJ1bGU9Im5vbnplcm8iPgog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NTM5MDE4IDMuNzM4NzcsMTIuNjgzMzUgTDE5LjI4NDQ4LDEuNjI4NjYgQzIxLjM2NjIzOTQsMC4xNDgzMTg1OTggMjQuMTU3MDEwNiwwLjE0ODMxODU5OCAyNi4yMzg3NywxLjYyODY2IEw0MS43ODQ0OCwxMi42ODMzNSBDNDIuNzI4MzU2MywxMy4zNTAwNDM4IDQzLjg0NTI4NSwxMy43Mjg3NzYgNDUsMTMuNzczNjggTDQ1LDAgWiIgaWQ9IlBhdGgiPjwvcGF0aD4KICAgICAgICA8L2c+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);"])})),Si=e=>(0,y.jsx)(vi,{...e});Si.defaultProps={flip:!1,placement:"outside",type:"awning-primary"},Si.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 Di=Si;var Ti=()=>{const{actions:{closeMenu:e}}=A();return(0,y.jsxs)(Ci,{children:[(0,y.jsx)(Ni,{to:"/store",onClick:e,analytics:{navLocation:"desktop",navLocationLevel:2},children:(0,y.jsx)(ji.Z,{size:188})}),(0,y.jsx)(Ii,{onClick:e}),(0,y.jsx)(Di,{height:14,position:"bottom"})]})};const Oi=e=>{let{className:t}=e;const{localizer:{text:n}}=w(),{state:{activeMenu:i,menuOpen:r,bindFocus:a,returnFocus:s},actions:{closeMenu:l}}=A(),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)(li,{className:t,"data-testid":"dropdownMenu",menuOpen:r,menuHeight:d+"px",children:(0,y.jsx)(cn.F,{bindFocus:a,returnFocus:s,children:(0,y.jsxs)(ci,{ref:u,activeMenu:i,children:[(0,y.jsx)(mi,{activeMenu:i,children:i===c.aA.MY_NINTENDO_STORE?(0,y.jsx)(Ti,{}):(0,y.jsx)(xe,{onClick:l})}),(0,y.jsx)(wi,{}),i===c.aA.MY_NINTENDO_STORE&&(0,y.jsx)(fi,{to:"/store",analytics:{navLocation:"desktop",navLocationLevel:2},children:(0,y.jsx)(le.B,{variant:"secondary",onClick:l,children:n("Shop all")})})]})})})};Oi.propTypes={className:i.string};var Ai=Oi;const ki=l.default.div.withConfig({displayName:"Bottomstyles__BottomContainer",componentId:"sc-ivev9d-0"})(["position:relative;"]),zi=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})),Ei=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]})),_i=(0,l.default)(Xo).withConfig({displayName:"Bottomstyles__BottomDesktopDrawer",componentId:"sc-ivev9d-3"})(["position:absolute;top:0;left:0;"]),Ri=(0,l.default)(Ai).withConfig({displayName:"Bottomstyles__BottomDropdownMenu",componentId:"sc-ivev9d-4"})(["position:absolute;top:","px;left:0;width:100%;z-index:50;"],c.Vz.NAV_DESKTOP_BOTTOM),Pi=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})),Yi=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)(Pi,{className:t,active:n,flyoutOpen:r,visible:s,onClick:i})};Yi.propTypes={className:i.string,flyoutOpen:i.bool,active:i.bool,onClick:i.func};var Zi=Yi;const Bi=()=>{const{state:{router:e},localizer:{text:t}}=w(),{state:{menuOpen:n,flyoutOpen:i,activeCustomDrawer:r},actions:{closeMenu:a,closeFlyout:s,closeCustomDrawer:l}}=A(),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)(ki,{children:[(0,y.jsx)(zi,{children:(0,y.jsx)(Ei,{children:Object.keys(ae).map((n=>!ae[n].excludeLocale?.includes(e.locale)&&(0,y.jsx)(Qo,{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)(Ri,{}),(0,y.jsx)(_i,{flyoutOpen:i})]}),(0,y.jsx)(Zi,{active:n||i||d,onClick:u,flyoutOpen:i})]})};Bi.propTypes={navRef:i.object};var Ui=Bi;const Gi=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),Qi=e=>{let{children:t}=e;const{state:{flyoutVisible:n,flyoutOpen:i,activeCustomDrawer:r}}=A(),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)(Gi,{"aria-hidden":!l,open:l,bgColor:!n&&a?.bgColor,children:s})};Qi.propTypes={children:i.node};var Wi=Qi;const Fi=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 $i=e=>{let{size:t}=e;return(0,y.jsx)(Fi,{size:t})},Hi=n(20204);const Vi=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})),qi=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]})),Ji=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]})),Ki=(0,l.default)(xe).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})),Xi=l.default.div.withConfig({displayName:"MaintenanceNotificationstyles__DescWrap",componentId:"sc-iz67m1-4"})(["a{font-weight:700;text-decoration:underline;}"]);var er=()=>{const{state:{maintenance:e,maintenanceNotifOpen:t},actions:{closeMaintenanceNotif:n}}=w(),{store:i,eshop:r}=e,a=(0,o.useMemo)((()=>L({store:i,eshop:r})),[i,r]);return t?(0,y.jsxs)(Vi,{children:[(0,y.jsxs)(Ji,{children:[(0,y.jsx)(qi,{size:24,children:(0,y.jsx)(To.Z,{size:24})}),(0,y.jsx)(Xi,{children:(0,Hi.h)(a?.shownDescription.json)})]}),(0,y.jsx)(Ki,{onClick:n})]}):null};var tr=()=>{const{state:{maintenanceNotifOpen:e}}=w(),{state:{flyoutOpen:t},actions:{closeFlyout:n}}=A(),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)($i,{size:i}),(0,y.jsxs)(Y,{children:[(0,y.jsx)(er,{}),(0,y.jsx)(Ro,{}),(0,y.jsx)(Ui,{})]}),(0,y.jsx)(Wi,{children:(0,y.jsx)(sn,{flyoutOpen:t,handleClose:n})})]})};const nr=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})),or=o.forwardRef((function(e,t){const{onButtonClick:n,...o}=e;return(0,y.jsx)(nr,{onClick:n,ref:t,...o,children:(0,y.jsx)(fn.Z,{size:32})})}));or.propTypes={onButtonClick:r().func};var ir=or;const rr=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})),ar=(0,l.default)(ir).withConfig({displayName:"Mobilestyles__StyledSearchButton",componentId:"sc-nfbri6-1"})(["margin-top:",";"],(e=>{let{theme:t}=e;return`-${t.spacing[16]}`})),sr=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;"]),lr=l.default.header.withConfig({displayName:"Topstyles__Wrapper",componentId:"sc-ogbajk-0"})(["position:relative;width:100%;height:auto;"]),cr=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})),ur=l.default.div.withConfig({displayName:"Topstyles__Links",componentId:"sc-ogbajk-2"})(["height:100%;display:flex;align-items:center;"]);var dr=e=>{let{searchButtonRef:t}=e;const{state:{onStorePage:n,router:i}}=w(),r=(0,o.useMemo)((()=>$.has(i.locale)?dn.L:dn.f),[i.locale]),{state:{query:a,isSearchFlyoverOpen:s,selectedSearchOption:l},actions:{closeSearchFlyover:c,onSearchSubmit:u}}=(0,pn.N1)({locale:i.locale,categoryOptions:r}),d=(0,o.useMemo)((()=>$.has(i.locale)?dn.b.LATAM_ALL_PRODUCTS:dn.b.ALL_PRODUCTS),[i.locale]),p=(0,o.useMemo)((()=>t?.current?(0,y.jsx)(cn.F,{returnFocus:t.current,bindFocus:s,children:(0,y.jsx)(Wn,{isOpen:s,locale:i.locale,onCloseClick:c,activeQuery:a,activeCategoryOption:l,onSearchSubmit:u,options:r,allProductsIndexConfig:dn.c[d]})}):(0,y.jsx)(Wn,{isOpen:s,locale:i.locale,onCloseClick:c,activeQuery:a,activeCategoryOption:l,onSearchSubmit:u,options:r,allProductsIndexConfig:dn.c[d]})),[d,c,s,u,a,i.locale,l,r,t]);return(0,y.jsxs)(lr,{children:[p,(0,y.jsxs)(cr,{children:[(0,y.jsxs)(Fe,{to:"/",analytics:{navLocation:"mobile top",navLocationLevel:1},children:[(0,y.jsx)(ye.S,{children:"Nintendo"}),(0,y.jsx)(un.Z,{size:89})]}),(0,y.jsxs)(ur,{children:[(0,y.jsx)(Fe,{to:"/store",ariaLabel:"My Nintendo Store",analytics:{navLocation:"mobile top",navLocationLevel:1},children:n&&(0,y.jsx)(ji.Z,{size:136})}),(0,y.jsx)(Oo.S,{size:20}),(0,y.jsx)(nt,{locale:i.locale,flagOnly:!0})]})]})]})},pr=n(95439);const mr=l.default.div.withConfig({displayName:"HamburgerMenustyles__HamburgerMenu",componentId:"sc-ueqadc-0"})(["position:relative;"]),hr=(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}`})),gr=(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}`})),yr=()=>{const{state:{router:e},localizer:{text:t}}=w(),{state:{menuOpen:n},actions:{openMenu:o,closeDrawer:i}}=_();return(0,y.jsxs)(hr,{"data-testid":"primary-menu",secondaryOpen:n,children:[(0,y.jsx)(ve,{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)(at,{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)(at,{icon:"support",to:t("https://en-americas-support.nintendo.com/"),onClick:i,analytics:{navLocation:"mobile bottom",navLocationLevel:2},children:t("Support")}),(0,y.jsx)(at,{icon:"region-selection",to:"/regionselector/",onClick:i,analytics:{navLocation:"mobile bottom",navLocationLevel:2},children:t("Change Region")})]})]})]})};yr.propTypes={secondaryOpen:i.bool,handleClose:i.func,setActiveMenu:i.func};var Mr=yr;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),Lr=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]})),xr=(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),wr=e=>{let{onClick:t,menuItem:n,open:i,handleClose:r}=e;const{localizer:{text:a}}=w(),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)(xr,{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)(at,{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)(Lr,{children:u})})]}):(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(at,{to:s.to,onClick:r,children:a(s.label)})})};wr.defaultProps={open:!1},wr.propTypes={onClick:i.func,menuItem:re,open:i.bool,handleClose:i.func};var jr=wr;const Cr=()=>{const{localizer:{text:e},state:{router:{locale:t}}}=w(),{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)(jr,{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)(gr,{"data-testid":"secondary-menu",secondaryOpen:i,children:[(0,y.jsx)(ve,{handleClose:s,handleBack:d,children:ae[n]&&e(ae[n].label)}),(0,y.jsx)(de,{height:c.Vz.DRAWER_HAMBURGER_MOBILE,children:m})]})};Cr.propTypes={activeMenu:(0,i.oneOf)(Object.keys(c.aA)),secondaryOpen:i.bool,handleClose:i.func,setActiveMenu:i.func};var Ir=Cr;const br=()=>(0,y.jsxs)(mr,{children:[(0,y.jsx)(Mr,{}),(0,y.jsx)(Ir,{})]});br.propTypes={handleClose:i.func};var Nr=br;const vr=(0,l.default)($o.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:Sr,ACCOUNT:Dr}=c.mH;var Tr=()=>{const{state:{activeDrawer:e,activeCustomDrawer:t,drawerOpen:n},actions:{closeDrawer:i}}=_(),r=(0,Wo.J)(),a=(0,o.useMemo)((()=>{switch(e){case Sr:return(0,y.jsx)(Nr,{});case Dr:return(0,y.jsx)(sn,{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)(Fo.M,{children:n||t?.isOpen?(0,y.jsx)(vr,{"aria-hidden":!e&&!t?.isOpen,"data-testid":"drawer",bgColor:!e&&t?.bgColor,borderColor:!e&&t?.borderColor,drawerHeight:s,transition:r?"none":Jo.d.animation.vertical.standardEase,initial:{height:"0px",opacity:1},animate:{height:s},exit:{height:"0px"},children:a}):null})};const Or="58px",Ar=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;}"],Or,(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.mediaQuery.desktop})),kr=l.default.div.withConfig({displayName:"Bottomstyles__Bottom",componentId:"sc-tvb962-1"})(["margin:auto;height:",";width:96%;max-width:440px;","{display:none;}"],Or,(e=>{let{theme:t}=e;return t.mediaQuery.desktop})),zr=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);"],Or,(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)})),Er=(0,l.default)(Fe).withConfig({displayName:"Bottomstyles__Button",componentId:"sc-tvb962-3"})(["display:flex;justify-content:center;flex:1 auto;position:relative;height:",";"],Or);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:",";"],Or);const _r=(0,l.keyframes)(["from{opacity:.3}to{opacity:1}"]),Rr=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})),Pr=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;"]),Yr=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}),_r);var Zr=()=>(0,y.jsx)(Rr,{children:(0,y.jsxs)(Pr,{children:[(0,y.jsx)(Yr,{}),(0,y.jsx)(Yr,{}),(0,y.jsx)(Yr,{}),(0,y.jsx)(Yr,{})]})});const{HAMBURGER:Br,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}}=w(),{state:{activeDrawer:d,activeCustomDrawer:p,drawerOpen:m},actions:{closeDrawer:h,closeCustomDrawer:g,openDrawer:M}}=_(),f=(0,o.useMemo)((()=>d===Br?(0,y.jsx)(Me.Z,{}):(0,y.jsx)(pr.Z,{})),[d]),L=(0,o.useMemo)((()=>{let e=null;return i||r?(0,y.jsx)(Zr,{}):(e=n?(0,y.jsx)(mt,{size:24}):(0,y.jsx)(qn.Z,{}),d===Ur?(0,y.jsx)(Me.Z,{}):e)}),[d,i,n,r]),x=(0,o.useMemo)((()=>Fn(l)?(0,y.jsx)(Er,{to:"/store/games/",ariaLabel:u("Games"),analytics:{navLocation:"mobile bottom",navLocationLevel:1},children:(0,y.jsx)(De.Z,{})}):a.store?.active?(0,y.jsx)(Er,{ariaLabel:u("Shopping cart"),analytics:{navLocation:"mobile bottom",navLocationLevel:1},onClick:()=>c({label:u("Cart down for maintenance"),content:(0,y.jsx)(_o,{type:"cart"})}),children:(0,y.jsx)(po,{disabled:!0})}):(0,y.jsx)(Er,{to:s,ariaLabel:u("Shopping cart"),analytics:{navLocation:"mobile bottom",navLocationLevel:1},children:(0,y.jsx)(po,{})})),[a,s,l,u,c]),j=(0,o.useCallback)((()=>d===Br?h():M(Br)),[d,h,M]),C=(0,o.useCallback)((()=>i||r?null:d===Ur?h():M(Ur)),[d,h,M,i,r]),I=(0,o.useCallback)((()=>{m?h():p?.isOpen&&p?.enableScrim&&g(p?.id)}),[m,h,p,g]),b=p?.isOpen&&p?.enableScrim;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Zi,{active:m||b,onClick:I}),(0,y.jsx)(Ar,{children:(0,y.jsx)(kr,{children:(0,y.jsxs)(zr,{children:[(0,y.jsx)(Er,{ariaLabel:u("Main menu"),onClick:j,analytics:{navLocation:"mobile bottom",navLocationLevel:1,clickLocation:"MAIN_MENU"},children:f}),(0,y.jsx)(Er,{to:"/wish-list",ariaLabel:u("Wish List"),analytics:{navLocation:"mobile bottom",navLocationLevel:1},children:(0,y.jsx)(Ae.Z,{})}),t,x,(0,y.jsx)(Er,{ariaLabel:u("Account"),onClick:C,analytics:{navLocation:"mobile bottom",navLocationLevel:1,clickLocation:"ACCOUNT_MENU"},children:L}),(0,y.jsx)(Tr,{})]})})})]})};Gr.propTypes={children:i.node};var Qr=Gr;var Wr=()=>{const{state:{router:e},localizer:{text:t}}=w(),{state:{isSearchFlyoverOpen:n},actions:{openSearchFlyover:i}}=(0,pn.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)(sr,{ref:r,hidden:!n}),(0,y.jsxs)(rr,{children:[(0,y.jsx)(er,{}),(0,y.jsx)(dr,{searchButtonRef:a}),(0,y.jsx)(Qr,{children:(0,y.jsx)(ar,{ref:a,onClick:s,"aria-label":t("Search")})})]})]})},Fr=n(66321);var $r=()=>{const{state:{modal:e},actions:{closeModal:t}}=w();return(0,y.jsx)(Fr.M,{visible:e.visible,dialogLabel:e.label,onClose:t,children:e.content})};var Hr=()=>{const[e,t]=(0,o.useState)(!1),{state:{isDesktop:n}}=w();var i;return i=()=>t(!0),(0,o.useEffect)(i,[]),n?(0,y.jsxs)(z,{children:[e&&(0,y.jsx)($r,{}),(0,y.jsx)(tr,{})]}):(0,y.jsxs)(P,{children:[e&&(0,y.jsx)($r,{}),(0,y.jsx)(Wr,{})]})},Vr=n(82383);const qr=`@media ${`(min-width: ${c.T0}px)`}`,Jr=e=>({...e,mediaQuery:{...e.mediaQuery,navDesktop:qr}}),Kr=e=>{let{router:t,accountsUrl:n,origin:o}=e;return(0,y.jsx)(N,{accountsUrl:n,router:t,origin:o,children:(0,y.jsx)(l.ThemeProvider,{theme:Jr,children:(0,y.jsx)(a.X,{features:s.H,children:(0,y.jsx)(v.H.NewLevel,{children:(0,y.jsx)(Hr,{})})})})})};Kr.propTypes={accountsUrl:i.string.isRequired,router:m,origin:i.string},Kr.defaultProps=h;const Xr={MOBILE:c.Vz.NAV_MOBILE,DESKTOP:c.Vz.NAV_DESKTOP}},53704: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;overflow:hidden;}"],(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}))})),M=(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})),f=e=>{let{selectProps:t}=e;return(0,d.jsx)(y,{$menuIsOpen:t.menuIsOpen})};f.propTypes={selectProps:r().shape({menuIsOpen:r().bool})};const L=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:M,DropdownIndicator:f,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})};L.defaultProps={replacementComponents:{}},L.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=L}}]);