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