(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 he},default:function(){return pe}});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 O},FireEmblemEngageSwitch:function(){return ne},FireEmblemThreeHopes:function(){return X},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 _},MarioStrikersSwitch:function(){return H},MarioVsDk:function(){return j},May2024Switch:function(){return v},MiitopiaPage:function(){return B},MinecraftTemplate:function(){return R},Nintendo64Page:function(){return z},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 F},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 Z},peon:function(){return G},plmpStandard:function(){return g}});var r=a(95235),o=a(2784),i=a(68215),l=a(34693),c=a(15820),d=a(51580),u=a(14684),b=a(29019),s=a(25237),h=a.n(s);const p=h()((()=>Promise.all([a.e(1582),a.e(2763)]).then(a.bind(a,42763))),{loadableGenerated:{webpack:()=>[42763]}}),m=h()((()=>Promise.all([a.e(1582),a.e(3746)]).then(a.bind(a,13746))),{loadableGenerated:{webpack:()=>[13746]}}),w=h()((()=>Promise.all([a.e(1582),a.e(2418)]).then(a.bind(a,2418))),{loadableGenerated:{webpack:()=>[2418]}}),P=h()((()=>Promise.all([a.e(1582),a.e(163)]).then(a.bind(a,80163))),{loadableGenerated:{webpack:()=>[80163]}}),f=h()((()=>Promise.all([a.e(1582),a.e(6673)]).then(a.bind(a,36673))),{loadableGenerated:{webpack:()=>[36673]}}),k=h()((()=>Promise.all([a.e(1582),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(1582),a.e(3298)]).then(a.bind(a,45554))),{loadableGenerated:{webpack:()=>[45554]}}),S=h()((()=>Promise.all([a.e(1582),a.e(7809)]).then(a.bind(a,27809))),{loadableGenerated:{webpack:()=>[27809]}}),y=h()((()=>Promise.all([a.e(1582),a.e(6473)]).then(a.bind(a,46473))),{loadableGenerated:{webpack:()=>[46473]}}),v=h()((()=>Promise.all([a.e(1582),a.e(5226)]).then(a.bind(a,75226))),{loadableGenerated:{webpack:()=>[75226]}}),O=h()((()=>Promise.all([a.e(1582),a.e(396)]).then(a.bind(a,80396))),{loadableGenerated:{webpack:()=>[80396]}}),D=h()((()=>Promise.all([a.e(1582),a.e(1779)]).then(a.bind(a,1779))),{loadableGenerated:{webpack:()=>[1779]}}),T=h()((()=>Promise.all([a.e(1582),a.e(2097)]).then(a.bind(a,42097))),{loadableGenerated:{webpack:()=>[42097]}}),E=h()((()=>Promise.all([a.e(1582),a.e(7840)]).then(a.bind(a,27840))),{loadableGenerated:{webpack:()=>[27840]}}),M=h()((()=>Promise.all([a.e(1582),a.e(938)]).then(a.bind(a,80938))),{loadableGenerated:{webpack:()=>[80938]}}),N=h()((()=>Promise.all([a.e(1582),a.e(2793)]).then(a.bind(a,79847))),{loadableGenerated:{webpack:()=>[79847]}}),_=h()((()=>Promise.all([a.e(1582),a.e(9036)]).then(a.bind(a,49036))),{loadableGenerated:{webpack:()=>[49036]}}),j=h()((()=>Promise.all([a.e(1582),a.e(8722)]).then(a.bind(a,68722))),{loadableGenerated:{webpack:()=>[68722]}}),R=h()((()=>Promise.all([a.e(1582),a.e(5025)]).then(a.bind(a,95025))),{loadableGenerated:{webpack:()=>[95025]}}),L=h()((()=>Promise.all([a.e(1582),a.e(8225)]).then(a.bind(a,88225))),{loadableGenerated:{webpack:()=>[88225]}}),B=h()((()=>Promise.all([a.e(1582),a.e(4307)]).then(a.bind(a,24307))),{loadableGenerated:{webpack:()=>[24307]}}),C=h()((()=>Promise.all([a.e(1582),a.e(7602)]).then(a.bind(a,67602))),{loadableGenerated:{webpack:()=>[67602]}}),W=h()((()=>Promise.all([a.e(1582),a.e(5819)]).then(a.bind(a,55819))),{loadableGenerated:{webpack:()=>[55819]}}),A=h()((()=>Promise.all([a.e(1582),a.e(7632)]).then(a.bind(a,70684))),{loadableGenerated:{webpack:()=>[70684]}}),K=h()((()=>Promise.all([a.e(1582),a.e(4720)]).then(a.bind(a,94720))),{loadableGenerated:{webpack:()=>[94720]}}),x=h()((()=>Promise.all([a.e(1582),a.e(7707)]).then(a.bind(a,87707))),{loadableGenerated:{webpack:()=>[87707]}}),I=h()((()=>Promise.all([a.e(1582),a.e(9834)]).then(a.bind(a,59834))),{loadableGenerated:{webpack:()=>[59834]}}),V=h()((()=>Promise.all([a.e(2182),a.e(1582),a.e(3812)]).then(a.bind(a,12029))),{loadableGenerated:{webpack:()=>[12029]}}),z=h()((()=>Promise.all([a.e(1582),a.e(3523)]).then(a.bind(a,43523))),{loadableGenerated:{webpack:()=>[43523]}}),F=h()((()=>Promise.all([a.e(1582),a.e(484)]).then(a.bind(a,40484))),{loadableGenerated:{webpack:()=>[40484]}}),H=h()((()=>Promise.all([a.e(1582),a.e(1108)]).then(a.bind(a,51108))),{loadableGenerated:{webpack:()=>[51108]}}),X=h()((()=>Promise.all([a.e(1582),a.e(9990)]).then(a.bind(a,69990))),{loadableGenerated:{webpack:()=>[69990]}}),Z=h()((()=>Promise.all([a.e(1582),a.e(2451)]).then(a.bind(a,12451))),{loadableGenerated:{webpack:()=>[12451]}}),$=h()((()=>Promise.all([a.e(1582),a.e(4680)]).then(a.bind(a,14680))),{loadableGenerated:{webpack:()=>[14680]}}),q=h()((()=>Promise.all([a.e(1582),a.e(5099)]).then(a.bind(a,95099))),{loadableGenerated:{webpack:()=>[95099]}}),Q=h()((()=>Promise.all([a.e(1582),a.e(642)]).then(a.bind(a,80642))),{loadableGenerated:{webpack:()=>[80642]}}),Y=h()((()=>Promise.all([a.e(1582),a.e(6438)]).then(a.bind(a,36438))),{loadableGenerated:{webpack:()=>[36438]}}),J=h()((()=>Promise.all([a.e(1582),a.e(1330)]).then(a.bind(a,11330))),{loadableGenerated:{webpack:()=>[11330]}}),U=h()((()=>Promise.all([a.e(1582),a.e(9847)]).then(a.bind(a,69847))),{loadableGenerated:{webpack:()=>[69847]}}),ee=h()((()=>Promise.all([a.e(1582),a.e(1708)]).then(a.bind(a,41708))),{loadableGenerated:{webpack:()=>[41708]}}),ne=h()((()=>Promise.all([a.e(1582),a.e(5832)]).then(a.bind(a,65832))),{loadableGenerated:{webpack:()=>[65832]}}),ae=h()((()=>Promise.all([a.e(1582),a.e(1332)]).then(a.bind(a,61332))),{loadableGenerated:{webpack:()=>[61332]}}),te=h()((()=>Promise.all([a.e(1582),a.e(7245)]).then(a.bind(a,97245))),{loadableGenerated:{webpack:()=>[97245]}}),re=h()((()=>Promise.all([a.e(6509),a.e(2212),a.e(4002),a.e(9664)]).then(a.bind(a,3521))),{loadableGenerated:{webpack:()=>[3521]}}),oe=h()((()=>Promise.all([a.e(2212),a.e(4002),a.e(2233)]).then(a.bind(a,72233))),{loadableGenerated:{webpack:()=>[72233]}}),ie=h()((()=>Promise.all([a.e(2212),a.e(5790)]).then(a.bind(a,25790))),{loadableGenerated:{webpack:()=>[25790]}}),le=h()((()=>Promise.all([a.e(3567),a.e(2212),a.e(4002),a.e(623),a.e(8498)]).then(a.bind(a,3697))),{loadableGenerated:{webpack:()=>[3697]}}),ce=h()((()=>Promise.all([a.e(2212),a.e(4002),a.e(623),a.e(4851)]).then(a.bind(a,24851))),{loadableGenerated:{webpack:()=>[24851]}});var de=a(86409),ue=a(52322);function be(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}))):g[w.slug]&&!P.data&&G((e=>se(se({},e),{},{[w.slug]:!1})));const D=P.loading||O.loading,T=(0,o.useMemo)((()=>se(se({},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?O:S).refetch()),e))}return()=>E.current&&clearTimeout(E.current)}),[T.eshopDetails?.discountPriceEnd,P.data,S,O]);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,ue.jsx)(b.Kq,{preview:s,disableScrollRestoration:!0,children:(0,ue.jsx)(d.dn,{product:T,merchBanner:a,showReadMore:!_&&p,bestSellers:N,children:_?(0,ue.jsx)(j,{marketingPage:r.modularPageReference||r,productProps:T,DemoButton:()=>(0,ue.jsx)(de.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,[8505,5208,8286,4511,4684,6409,9019,6275,9774,2888,179],(function(){return n=22739,e(e.s=n);var n}));var n=e.O();_N_E=n}]);