(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9826],{22648:function(e,n,a){"use strict";a.r(n),a.d(n,{__N_SSP:function(){return me},default:function(){return we}});var t={};a.r(t),a.d(t,{AdvanceWarsTemplate:function(){return m},AnimalCrossingNewHorizonsPage:function(){return w},AnotherCodeRecollectionSwitch:function(){return P},Bayonetta3Switch:function(){return f},BayonettaOriginsSwitch:function(){return k},DetectivePikachuReturnsSwitch:function(){return g},DisneyIllusionIslandSwitch:function(){return y},EndlessOceanLuminousSwitch:function(){return O},EverybodySwitch:function(){return E},FZero99Switch:function(){return D},FireEmblemEngageSwitch:function(){return ae},FireEmblemThreeHopes:function(){return X},GameAndWatchLegendOfZeldaPage:function(){return N},GameBuilderGarageSwitchPage:function(){return M},KirbyStarAlliesSwitchPage:function(){return _},KirbysDreamBuffetSwitch:function(){return q},KirbysReturnToDreamLandDeluxe:function(){return te},LClassicsPage:function(){return re},LiveALiveSwitch:function(){return j},LuigisMansion2HD:function(){return ue},MarioStrikersSwitch:function(){return F},MarioVsDk:function(){return R},May2024Switch:function(){return v},MiitopiaPage:function(){return C},MinecraftTemplate:function(){return L},Nintendo64Page:function(){return Z},NintendoEntertainmentSystemPage:function(){return I},NintendoSwitchGameVouchers:function(){return J},PaperMarioTTYD:function(){return de},Pikmin4:function(){return oe},PokemonLegendsArceusPage:function(){return W},PokemonScarletSwitch:function(){return Q},PokemonScarletVioletDLCTemplate:function(){return U},PokemonScarletVioletDoublePackSwitch:function(){return ee},PokemonVioletSwitch:function(){return Y},PrincessPeachShowtime:function(){return ce},SMBWonder:function(){return ie},SegaGenesisPage:function(){return z},ShipS:function(){return B},SuperMarioRPG:function(){return le},SuperNintendoEntertainmentSystemPage:function(){return V},SwitchHardwareTemplate:function(){return H},TearsOfTheKingdomTemplate:function(){return ne},Tetris99SwitchPage:function(){return A},TriangleStrategySwitchPage:function(){return x},WarioWareGetItTogetherSwitch:function(){return K},WarioWareMoveIt:function(){return T},XenobladeChronicles3Switch:function(){return $},peon:function(){return S},plmpStandard:function(){return G}});var r=a(95235),o=a(2784),i=a(64897),l=a(82091),c=a(98087),d=a(15820),u=a(53246),b=a(92072),s=a(29019),h=a(25237),p=a.n(h);const m=p()((()=>Promise.all([a.e(9362),a.e(2763)]).then(a.bind(a,42763))),{loadableGenerated:{webpack:()=>[42763]}}),w=p()((()=>Promise.all([a.e(9362),a.e(3746)]).then(a.bind(a,13746))),{loadableGenerated:{webpack:()=>[13746]}}),P=p()((()=>Promise.all([a.e(9362),a.e(2418)]).then(a.bind(a,2418))),{loadableGenerated:{webpack:()=>[2418]}}),f=p()((()=>Promise.all([a.e(9362),a.e(163)]).then(a.bind(a,80163))),{loadableGenerated:{webpack:()=>[80163]}}),k=p()((()=>Promise.all([a.e(9362),a.e(6673)]).then(a.bind(a,36673))),{loadableGenerated:{webpack:()=>[36673]}}),g=p()((()=>Promise.all([a.e(9362),a.e(6337)]).then(a.bind(a,86337))),{loadableGenerated:{webpack:()=>[86337]}}),G=p()((()=>a.e(7889).then(a.bind(a,87889))),{loadableGenerated:{webpack:()=>[87889]}}),S=p()((()=>Promise.all([a.e(9362),a.e(4071)]).then(a.bind(a,64071))),{loadableGenerated:{webpack:()=>[64071]}}),y=p()((()=>Promise.all([a.e(9362),a.e(7809)]).then(a.bind(a,27809))),{loadableGenerated:{webpack:()=>[27809]}}),O=p()((()=>Promise.all([a.e(9362),a.e(6473)]).then(a.bind(a,46473))),{loadableGenerated:{webpack:()=>[46473]}}),v=p()((()=>Promise.all([a.e(9362),a.e(7890)]).then(a.bind(a,67890))),{loadableGenerated:{webpack:()=>[67890]}}),D=p()((()=>Promise.all([a.e(9362),a.e(396)]).then(a.bind(a,80396))),{loadableGenerated:{webpack:()=>[80396]}}),T=p()((()=>Promise.all([a.e(9362),a.e(1779)]).then(a.bind(a,1779))),{loadableGenerated:{webpack:()=>[1779]}}),E=p()((()=>Promise.all([a.e(9362),a.e(2097)]).then(a.bind(a,42097))),{loadableGenerated:{webpack:()=>[42097]}}),M=p()((()=>Promise.all([a.e(9362),a.e(7840)]).then(a.bind(a,27840))),{loadableGenerated:{webpack:()=>[27840]}}),N=p()((()=>Promise.all([a.e(9362),a.e(938)]).then(a.bind(a,80938))),{loadableGenerated:{webpack:()=>[80938]}}),_=p()((()=>Promise.all([a.e(9362),a.e(2793)]).then(a.bind(a,79847))),{loadableGenerated:{webpack:()=>[79847]}}),j=p()((()=>Promise.all([a.e(9362),a.e(9036)]).then(a.bind(a,49036))),{loadableGenerated:{webpack:()=>[49036]}}),R=p()((()=>Promise.all([a.e(9362),a.e(8722)]).then(a.bind(a,68722))),{loadableGenerated:{webpack:()=>[68722]}}),L=p()((()=>Promise.all([a.e(9362),a.e(5025)]).then(a.bind(a,95025))),{loadableGenerated:{webpack:()=>[95025]}}),B=p()((()=>Promise.all([a.e(9362),a.e(8225)]).then(a.bind(a,88225))),{loadableGenerated:{webpack:()=>[88225]}}),C=p()((()=>Promise.all([a.e(9362),a.e(4307)]).then(a.bind(a,24307))),{loadableGenerated:{webpack:()=>[24307]}}),W=p()((()=>Promise.all([a.e(9362),a.e(7602)]).then(a.bind(a,67602))),{loadableGenerated:{webpack:()=>[67602]}}),A=p()((()=>Promise.all([a.e(9362),a.e(5819)]).then(a.bind(a,55819))),{loadableGenerated:{webpack:()=>[55819]}}),K=p()((()=>Promise.all([a.e(9362),a.e(7632)]).then(a.bind(a,17632))),{loadableGenerated:{webpack:()=>[17632]}}),x=p()((()=>Promise.all([a.e(9362),a.e(4720)]).then(a.bind(a,94720))),{loadableGenerated:{webpack:()=>[94720]}}),I=p()((()=>Promise.all([a.e(9362),a.e(7707)]).then(a.bind(a,87707))),{loadableGenerated:{webpack:()=>[87707]}}),V=p()((()=>Promise.all([a.e(9362),a.e(9834)]).then(a.bind(a,59834))),{loadableGenerated:{webpack:()=>[59834]}}),H=p()((()=>Promise.all([a.e(9362),a.e(7710),a.e(2029)]).then(a.bind(a,12029))),{loadableGenerated:{webpack:()=>[12029]}}),Z=p()((()=>Promise.all([a.e(9362),a.e(3523)]).then(a.bind(a,43523))),{loadableGenerated:{webpack:()=>[43523]}}),z=p()((()=>Promise.all([a.e(9362),a.e(484)]).then(a.bind(a,40484))),{loadableGenerated:{webpack:()=>[40484]}}),F=p()((()=>Promise.all([a.e(9362),a.e(1108)]).then(a.bind(a,51108))),{loadableGenerated:{webpack:()=>[51108]}}),X=p()((()=>Promise.all([a.e(9362),a.e(9990)]).then(a.bind(a,69990))),{loadableGenerated:{webpack:()=>[69990]}}),$=p()((()=>Promise.all([a.e(9362),a.e(2451)]).then(a.bind(a,12451))),{loadableGenerated:{webpack:()=>[12451]}}),q=p()((()=>Promise.all([a.e(9362),a.e(4680)]).then(a.bind(a,14680))),{loadableGenerated:{webpack:()=>[14680]}}),Q=p()((()=>Promise.all([a.e(9362),a.e(5099)]).then(a.bind(a,95099))),{loadableGenerated:{webpack:()=>[95099]}}),Y=p()((()=>Promise.all([a.e(9362),a.e(642)]).then(a.bind(a,80642))),{loadableGenerated:{webpack:()=>[80642]}}),J=p()((()=>Promise.all([a.e(9362),a.e(6438)]).then(a.bind(a,36438))),{loadableGenerated:{webpack:()=>[36438]}}),U=p()((()=>Promise.all([a.e(9362),a.e(1330)]).then(a.bind(a,11330))),{loadableGenerated:{webpack:()=>[11330]}}),ee=p()((()=>Promise.all([a.e(9362),a.e(9847)]).then(a.bind(a,69847))),{loadableGenerated:{webpack:()=>[69847]}}),ne=p()((()=>Promise.all([a.e(9362),a.e(1708)]).then(a.bind(a,41708))),{loadableGenerated:{webpack:()=>[41708]}}),ae=p()((()=>Promise.all([a.e(9362),a.e(5832)]).then(a.bind(a,65832))),{loadableGenerated:{webpack:()=>[65832]}}),te=p()((()=>Promise.all([a.e(9362),a.e(1332)]).then(a.bind(a,61332))),{loadableGenerated:{webpack:()=>[61332]}}),re=p()((()=>Promise.all([a.e(9362),a.e(7245)]).then(a.bind(a,97245))),{loadableGenerated:{webpack:()=>[97245]}}),oe=p()((()=>Promise.all([a.e(6619),a.e(4002),a.e(4277)]).then(a.bind(a,74277))),{loadableGenerated:{webpack:()=>[74277]}}),ie=p()((()=>Promise.all([a.e(6619),a.e(4002),a.e(1825)]).then(a.bind(a,71825))),{loadableGenerated:{webpack:()=>[71825]}}),le=p()((()=>Promise.all([a.e(6619),a.e(3680)]).then(a.bind(a,93680))),{loadableGenerated:{webpack:()=>[93680]}}),ce=p()((()=>Promise.all([a.e(6439),a.e(6619),a.e(4002),a.e(623),a.e(8834)]).then(a.bind(a,3697))),{loadableGenerated:{webpack:()=>[3697]}}),de=p()((()=>Promise.all([a.e(6619),a.e(4002),a.e(623),a.e(9508)]).then(a.bind(a,29508))),{loadableGenerated:{webpack:()=>[29508]}}),ue=p()((()=>Promise.all([a.e(9794),a.e(6619),a.e(4002),a.e(623),a.e(1652)]).then(a.bind(a,35850))),{loadableGenerated:{webpack:()=>[35850]}});var be=a(79788),se=a(52322);function he(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 pe(e){for(var n=1;npe(pe({},e),{},{[P.slug]:!0}))):G[P.slug]&&!f.data&&S((e=>pe(pe({},e),{},{[P.slug]:!1})));const T=f.loading||D.loading,E=(0,o.useMemo)((()=>pe(pe({},y.data.product),{},{loadingPricing:T})),[y.data.product,T]),M=(0,o.useRef)();(0,o.useEffect)((()=>{if(M.current&&clearTimeout(M.current),E.eshopDetails?.discountPriceEnd){const e=Math.ceil(Date.parse(E.eshopDetails.discountPriceEnd)-Date.now());e>0&&e<2147483648&&(M.current=setTimeout((()=>(f.data?D:y).refetch()),e))}return()=>M.current&&clearTimeout(M.current)}),[E.eshopDetails?.discountPriceEnd,f.data,y,D]);const N=(0,c.aM)(d.o$.gg,{locale:w,where:{criteria:"TOP_SELLING"},pageSize:16},{fetchPolicy:"cache-only"}),_=(0,o.useMemo)((()=>N.data?.products?.length?(0,b.v5)({products:N.data.products,rating:E.contentRating}):[]),[N.data,E.contentRating]),j=r&&r?.modularPageReference?.templateName||r?.templateName,R=j?t[r.templateName??r.modularPageReference?.templateName]:null;return(0,se.jsx)(s.Kq,{preview:h,disableScrollRestoration:!0,children:(0,se.jsx)(u.dn,{product:E,merchBanner:a,showReadMore:!j&&m,bestSellers:_,children:j?(0,se.jsx)(R,{marketingPage:r.modularPageReference||r,productProps:E,DemoButton:()=>(0,se.jsx)(be.g,{variant:"button",product:E}),preview:h,locale:w}):n})})}},22739:function(e,n,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/store/products/[slug]",function(){return a(22648)}])}},function(e){e.O(0,[507,2150,1369,8286,4511,5820,2072,9788,9019,7715,9774,2888,179],(function(){return n=22739,e(e.s=n);var n}));var n=e.O();_N_E=n}]);