!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d3ae6269-222d-4b71-b49f-ee3eef644378",e._sentryDebugIdIdentifier="sentry-dbid-d3ae6269-222d-4b71-b49f-ee3eef644378")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9826],{36349:function(e,n,a){"use strict";a.r(n),a.d(n,{__N_SSP:function(){return ye},default:function(){return De}});var t={};a.r(t),a.d(t,{AdvanceWarsTemplate:function(){return m},AnimalCrossingNewHorizonsPage:function(){return f},AnotherCodeRecollectionSwitch:function(){return P},Bayonetta3Switch:function(){return w},BayonettaOriginsSwitch:function(){return k},DetectivePikachuReturnsSwitch:function(){return g},DisneyIllusionIslandSwitch:function(){return y},DonkeyKongCountryReturnsHD:function(){return me},EndlessOceanLuminousSwitch:function(){return D},EverybodySwitch:function(){return M},FZero99Switch:function(){return O},FireEmblemEngageSwitch:function(){return te},FireEmblemThreeHopes:function(){return q},GameAndWatchLegendOfZeldaPage:function(){return _},GameBuilderGarageSwitchPage:function(){return T},KirbyStarAlliesSwitchPage:function(){return N},KirbysDreamBuffetSwitch:function(){return F},KirbysReturnToDreamLandDeluxe:function(){return re},LClassicsPage:function(){return ie},LegendOfZeldaEOW:function(){return se},LiveALiveSwitch:function(){return j},LuigisMansion2HD:function(){return be},MarioLuigiBrothership:function(){return pe},MarioStrikersSwitch:function(){return $},MarioVsDk:function(){return R},May2024Switch:function(){return v},MiitopiaPage:function(){return I},MinecraftTemplate:function(){return L},Nintendo64Page:function(){return H},NintendoEntertainmentSystemPage:function(){return X},NintendoSwitchGameVouchers:function(){return U},PaperMarioTTYD:function(){return ue},Pikmin4:function(){return oe},PokemonLegendsArceusPage:function(){return B},PokemonScarletSwitch:function(){return J},PokemonScarletVioletDLCTemplate:function(){return ee},PokemonScarletVioletDoublePackSwitch:function(){return ne},PokemonVioletSwitch:function(){return Q},PrincessPeachShowtime:function(){return ce},SMBWonder:function(){return le},SegaGenesisPage:function(){return Z},ShipS:function(){return C},SuperMarioPartyJamboree:function(){return he},SuperMarioRPG:function(){return de},SuperNintendoEntertainmentSystemPage:function(){return V},SwitchHardwareTemplate:function(){return x},TearsOfTheKingdomTemplate:function(){return ae},Tetris99SwitchPage:function(){return W},TriangleStrategySwitchPage:function(){return K},WDEV4389:function(){return Y},WarioWareGetItTogetherSwitch:function(){return A},WarioWareMoveIt:function(){return E},XenobladeChronicles3Switch:function(){return z},XenobladeChroniclesXDefinitiveEdition:function(){return fe},XenobladeChroniclesX_PhaseTwo:function(){return Pe},peon:function(){return S},plmpStandard:function(){return G}});var r=a(95235),i=a(2784),o=a(64897),l=a(82091),d=a(98087),c=a(76454),u=a(55642),b=a(79149),s=a(402),h=a(25237),p=a.n(h);const m=p()((()=>Promise.all([a.e(3731),a.e(8535)]).then(a.bind(a,8535))),{loadableGenerated:{webpack:()=>[8535]}}),f=p()((()=>Promise.all([a.e(3731),a.e(3205)]).then(a.bind(a,43205))),{loadableGenerated:{webpack:()=>[43205]}}),P=p()((()=>Promise.all([a.e(3731),a.e(5567)]).then(a.bind(a,45567))),{loadableGenerated:{webpack:()=>[45567]}}),w=p()((()=>Promise.all([a.e(3731),a.e(8260)]).then(a.bind(a,71759))),{loadableGenerated:{webpack:()=>[71759]}}),k=p()((()=>Promise.all([a.e(3731),a.e(8502)]).then(a.bind(a,78502))),{loadableGenerated:{webpack:()=>[78502]}}),g=p()((()=>Promise.all([a.e(3731),a.e(9982)]).then(a.bind(a,39982))),{loadableGenerated:{webpack:()=>[39982]}}),G=p()((()=>a.e(7323).then(a.bind(a,57323))),{loadableGenerated:{webpack:()=>[57323]}}),S=p()((()=>Promise.all([a.e(6425),a.e(3731),a.e(7781)]).then(a.bind(a,99338))),{loadableGenerated:{webpack:()=>[99338]}}),y=p()((()=>Promise.all([a.e(3731),a.e(6315)]).then(a.bind(a,16315))),{loadableGenerated:{webpack:()=>[16315]}}),D=p()((()=>Promise.all([a.e(3731),a.e(7741)]).then(a.bind(a,77741))),{loadableGenerated:{webpack:()=>[77741]}}),v=p()((()=>Promise.all([a.e(3731),a.e(3984)]).then(a.bind(a,83984))),{loadableGenerated:{webpack:()=>[83984]}}),O=p()((()=>Promise.all([a.e(3731),a.e(7245)]).then(a.bind(a,17245))),{loadableGenerated:{webpack:()=>[17245]}}),E=p()((()=>Promise.all([a.e(3731),a.e(6974)]).then(a.bind(a,46974))),{loadableGenerated:{webpack:()=>[46974]}}),M=p()((()=>Promise.all([a.e(3731),a.e(5424)]).then(a.bind(a,85424))),{loadableGenerated:{webpack:()=>[85424]}}),T=p()((()=>Promise.all([a.e(3731),a.e(1442)]).then(a.bind(a,51442))),{loadableGenerated:{webpack:()=>[51442]}}),_=p()((()=>Promise.all([a.e(3731),a.e(7630)]).then(a.bind(a,87630))),{loadableGenerated:{webpack:()=>[87630]}}),N=p()((()=>Promise.all([a.e(3731),a.e(8084)]).then(a.bind(a,98084))),{loadableGenerated:{webpack:()=>[98084]}}),j=p()((()=>Promise.all([a.e(3731),a.e(2963)]).then(a.bind(a,52963))),{loadableGenerated:{webpack:()=>[52963]}}),R=p()((()=>Promise.all([a.e(3731),a.e(5807)]).then(a.bind(a,61373))),{loadableGenerated:{webpack:()=>[61373]}}),L=p()((()=>Promise.all([a.e(3731),a.e(9867)]).then(a.bind(a,19867))),{loadableGenerated:{webpack:()=>[19867]}}),C=p()((()=>Promise.all([a.e(3731),a.e(4434)]).then(a.bind(a,24434))),{loadableGenerated:{webpack:()=>[24434]}}),I=p()((()=>Promise.all([a.e(3731),a.e(8140)]).then(a.bind(a,98140))),{loadableGenerated:{webpack:()=>[98140]}}),B=p()((()=>Promise.all([a.e(3731),a.e(4067)]).then(a.bind(a,14067))),{loadableGenerated:{webpack:()=>[14067]}}),W=p()((()=>Promise.all([a.e(3731),a.e(7866)]).then(a.bind(a,27866))),{loadableGenerated:{webpack:()=>[27866]}}),A=p()((()=>Promise.all([a.e(3731),a.e(2989)]).then(a.bind(a,62989))),{loadableGenerated:{webpack:()=>[62989]}}),K=p()((()=>Promise.all([a.e(3731),a.e(4023)]).then(a.bind(a,74023))),{loadableGenerated:{webpack:()=>[74023]}}),X=p()((()=>Promise.all([a.e(3731),a.e(9128)]).then(a.bind(a,59128))),{loadableGenerated:{webpack:()=>[59128]}}),V=p()((()=>Promise.all([a.e(3731),a.e(4074)]).then(a.bind(a,73019))),{loadableGenerated:{webpack:()=>[73019]}}),x=p()((()=>Promise.all([a.e(3731),a.e(6730),a.e(9491)]).then(a.bind(a,39491))),{loadableGenerated:{webpack:()=>[39491]}}),H=p()((()=>Promise.all([a.e(3731),a.e(4794)]).then(a.bind(a,14794))),{loadableGenerated:{webpack:()=>[14794]}}),Z=p()((()=>Promise.all([a.e(3731),a.e(6703)]).then(a.bind(a,6703))),{loadableGenerated:{webpack:()=>[6703]}}),$=p()((()=>Promise.all([a.e(3731),a.e(967)]).then(a.bind(a,90967))),{loadableGenerated:{webpack:()=>[90967]}}),q=p()((()=>Promise.all([a.e(3731),a.e(5683)]).then(a.bind(a,35683))),{loadableGenerated:{webpack:()=>[35683]}}),z=p()((()=>Promise.all([a.e(3731),a.e(8063)]).then(a.bind(a,28063))),{loadableGenerated:{webpack:()=>[28063]}}),F=p()((()=>Promise.all([a.e(3731),a.e(2759)]).then(a.bind(a,92759))),{loadableGenerated:{webpack:()=>[92759]}}),J=p()((()=>Promise.all([a.e(3731),a.e(5303)]).then(a.bind(a,55303))),{loadableGenerated:{webpack:()=>[55303]}}),Q=p()((()=>Promise.all([a.e(3731),a.e(1357)]).then(a.bind(a,1357))),{loadableGenerated:{webpack:()=>[1357]}}),Y=p()((()=>Promise.all([a.e(3731),a.e(6621)]).then(a.bind(a,6621))),{loadableGenerated:{webpack:()=>[6621]}}),U=p()((()=>Promise.all([a.e(3731),a.e(2953)]).then(a.bind(a,82953))),{loadableGenerated:{webpack:()=>[82953]}}),ee=p()((()=>Promise.all([a.e(3731),a.e(7502)]).then(a.bind(a,7502))),{loadableGenerated:{webpack:()=>[7502]}}),ne=p()((()=>Promise.all([a.e(3731),a.e(2826)]).then(a.bind(a,22826))),{loadableGenerated:{webpack:()=>[22826]}}),ae=p()((()=>Promise.all([a.e(3731),a.e(4120)]).then(a.bind(a,44120))),{loadableGenerated:{webpack:()=>[44120]}}),te=p()((()=>Promise.all([a.e(3731),a.e(7575)]).then(a.bind(a,59505))),{loadableGenerated:{webpack:()=>[59505]}}),re=p()((()=>Promise.all([a.e(3731),a.e(5929)]).then(a.bind(a,5929))),{loadableGenerated:{webpack:()=>[5929]}}),ie=p()((()=>Promise.all([a.e(3731),a.e(6340)]).then(a.bind(a,46340))),{loadableGenerated:{webpack:()=>[46340]}}),oe=p()((()=>Promise.all([a.e(6),a.e(9490),a.e(5589),a.e(4428)]).then(a.bind(a,84428))),{loadableGenerated:{webpack:()=>[84428]}}),le=p()((()=>Promise.all([a.e(6),a.e(9490),a.e(5589),a.e(5011)]).then(a.bind(a,25011))),{loadableGenerated:{webpack:()=>[25011]}}),de=p()((()=>Promise.all([a.e(6),a.e(9490),a.e(2135)]).then(a.bind(a,72135))),{loadableGenerated:{webpack:()=>[72135]}}),ce=p()((()=>Promise.all([a.e(2902),a.e(6),a.e(9490),a.e(6871),a.e(5589),a.e(8430)]).then(a.bind(a,27449))),{loadableGenerated:{webpack:()=>[27449]}}),ue=p()((()=>Promise.all([a.e(6),a.e(9490),a.e(6871),a.e(5589),a.e(387)]).then(a.bind(a,60387))),{loadableGenerated:{webpack:()=>[60387]}}),be=p()((()=>Promise.all([a.e(7953),a.e(6),a.e(9490),a.e(6871),a.e(5589),a.e(6514)]).then(a.bind(a,97935))),{loadableGenerated:{webpack:()=>[97935]}}),se=p()((()=>Promise.all([a.e(6),a.e(9490),a.e(6871),a.e(4033)]).then(a.bind(a,4033))),{loadableGenerated:{webpack:()=>[4033]}}),he=p()((()=>Promise.all([a.e(7181),a.e(6),a.e(9490),a.e(6871),a.e(5589),a.e(6153)]).then(a.bind(a,75147))),{loadableGenerated:{webpack:()=>[75147]}}),pe=p()((()=>Promise.all([a.e(3044),a.e(6),a.e(9490),a.e(6871),a.e(5589),a.e(8207)]).then(a.bind(a,96697))),{ssr:!1,loadableGenerated:{webpack:()=>[96697]}}),me=p()((()=>Promise.all([a.e(4337),a.e(6),a.e(9490),a.e(6871),a.e(5589),a.e(8640)]).then(a.bind(a,46221))),{loadableGenerated:{webpack:()=>[46221]}}),fe=p()((()=>Promise.all([a.e(6),a.e(9490),a.e(863)]).then(a.bind(a,60863))),{loadableGenerated:{webpack:()=>[60863]}}),Pe=p()((()=>Promise.all([a.e(9010),a.e(6),a.e(9490),a.e(6871),a.e(5589),a.e(9185)]).then(a.bind(a,63909))),{loadableGenerated:{webpack:()=>[63909]}});var we=a(18459),ke=a(90321),ge=a(52322);function Ge(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),a.push.apply(a,t)}return a}function Se(e){for(var n=1;nSe(Se({},e),{},{[w.slug]:!0}))):S[w.slug]&&!k.data&&y((e=>Se(Se({},e),{},{[w.slug]:!1})));const j=k.loading||N.loading,R=(0,i.useMemo)((()=>Se(Se({},D.data.product),{},{loadingPricing:j,removeGoldPoints:m,waitlist:{campaign:a,invite:T,loadingInvites:M,refreshInvites:_}})),[D.data.product,a,M,j,m]),L=(0,i.useRef)();(0,i.useEffect)((()=>{if(L.current&&clearTimeout(L.current),R.eshopDetails?.discountPriceEnd){const e=Math.ceil(Date.parse(R.eshopDetails.discountPriceEnd)-Date.now());e>0&&e<2147483648&&(L.current=setTimeout((()=>(k.data?N:D).refetch()),e))}return()=>L.current&&clearTimeout(L.current)}),[R.eshopDetails?.discountPriceEnd,k.data,D,N]);const C=(0,d.aM)(c.o$.gg,{locale:P,where:{criteria:"TOP_SELLING"},pageSize:16},{fetchPolicy:"cache-only"}),I=(0,i.useMemo)((()=>C.data?.products?.length?(0,b.v5)({products:C.data.products,rating:R.contentRating}):[]),[C.data,R.contentRating]),B=h&&h?.modularPageReference?.templateName||h?.templateName,W=B?t[h.templateName??h.modularPageReference?.templateName]:null;return(0,ge.jsx)(s.Kq,{disableScrollRestoration:!0,children:(0,ge.jsx)(u.dn,{product:R,merchBanner:r,showReadMore:!B&&p,bestSellers:I,children:B?(0,ge.jsx)(W,{marketingPage:h.modularPageReference||h,productProps:R,DemoButton:()=>(0,ge.jsx)(we.g,{variant:"button",product:R}),locale:P}):n})})}},22739:function(e,n,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/store/products/[slug]",function(){return a(36349)}])}},function(e){e.O(0,[8286,4511,402,9589,9774,2888,179],(function(){return n=22739,e(e.s=n);var n}));var n=e.O();_N_E=n}]); //# sourceMappingURL=[slug]-0fd3cafb433a9a04.js.map