(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9826],{22648:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return ue},default:function(){return be}});var a={};t.r(a),t.d(a,{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 G},EndlessOceanLuminousSwitch:function(){return S},EverybodySwitch:function(){return v},FZero99Switch:function(){return y},FireEmblemEngageSwitch:function(){return Y},FireEmblemThreeHopes:function(){return F},GameAndWatchLegendOfZeldaPage:function(){return E},GameBuilderGarageSwitchPage:function(){return D},KirbyStarAlliesSwitchPage:function(){return T},KirbysDreamBuffetSwitch:function(){return X},KirbysReturnToDreamLandDeluxe:function(){return ee},LClassicsPage:function(){return ne},LiveALiveSwitch:function(){return M},MarioStrikersSwitch:function(){return z},MarioVsDk:function(){return _},MiitopiaPage:function(){return L},MinecraftTemplate:function(){return j},Nintendo64Page:function(){return I},NintendoEntertainmentSystemPage:function(){return A},NintendoSwitchGameVouchers:function(){return q},Pikmin4:function(){return te},PokemonLegendsArceusPage:function(){return R},PokemonScarletSwitch:function(){return Z},PokemonScarletVioletDLCTemplate:function(){return Q},PokemonScarletVioletDoublePackSwitch:function(){return J},PokemonVioletSwitch:function(){return $},PrincessPeachShowtime:function(){return oe},SMBWonder:function(){return ae},SegaGenesisPage:function(){return V},ShipS:function(){return N},SuperMarioRPG:function(){return re},SuperNintendoEntertainmentSystemPage:function(){return K},SwitchHardwareTemplate:function(){return x},TearsOfTheKingdomTemplate:function(){return U},Tetris99SwitchPage:function(){return B},TriangleStrategySwitchPage:function(){return W},WarioWareGetItTogetherSwitch:function(){return C},WarioWareMoveIt:function(){return O},XenobladeChronicles3Switch:function(){return H},plmpStandard:function(){return g}});var r=t(95235),o=t(2784),i=t(68215),l=t(34693),c=t(15820),d=t(51580),u=t(90929),b=t(29019),s=t(25237),h=t.n(s);const p=h()((()=>Promise.all([t.e(1582),t.e(2763)]).then(t.bind(t,42763))),{loadableGenerated:{webpack:()=>[42763]}}),m=h()((()=>Promise.all([t.e(1582),t.e(3746)]).then(t.bind(t,13746))),{loadableGenerated:{webpack:()=>[13746]}}),w=h()((()=>Promise.all([t.e(1582),t.e(2418)]).then(t.bind(t,2418))),{loadableGenerated:{webpack:()=>[2418]}}),P=h()((()=>Promise.all([t.e(1582),t.e(163)]).then(t.bind(t,80163))),{loadableGenerated:{webpack:()=>[80163]}}),f=h()((()=>Promise.all([t.e(1582),t.e(6673)]).then(t.bind(t,36673))),{loadableGenerated:{webpack:()=>[36673]}}),k=h()((()=>Promise.all([t.e(1582),t.e(6337)]).then(t.bind(t,86337))),{loadableGenerated:{webpack:()=>[86337]}}),g=h()((()=>t.e(1807).then(t.bind(t,61807))),{loadableGenerated:{webpack:()=>[61807]}}),G=h()((()=>Promise.all([t.e(1582),t.e(7809)]).then(t.bind(t,27809))),{loadableGenerated:{webpack:()=>[27809]}}),S=h()((()=>Promise.all([t.e(1582),t.e(6473)]).then(t.bind(t,46473))),{loadableGenerated:{webpack:()=>[46473]}}),y=h()((()=>Promise.all([t.e(1582),t.e(396)]).then(t.bind(t,80396))),{loadableGenerated:{webpack:()=>[80396]}}),O=h()((()=>Promise.all([t.e(1582),t.e(1779)]).then(t.bind(t,1779))),{loadableGenerated:{webpack:()=>[1779]}}),v=h()((()=>Promise.all([t.e(1582),t.e(2097)]).then(t.bind(t,42097))),{loadableGenerated:{webpack:()=>[42097]}}),D=h()((()=>Promise.all([t.e(1582),t.e(7840)]).then(t.bind(t,27840))),{loadableGenerated:{webpack:()=>[27840]}}),E=h()((()=>Promise.all([t.e(1582),t.e(938)]).then(t.bind(t,80938))),{loadableGenerated:{webpack:()=>[80938]}}),T=h()((()=>Promise.all([t.e(1582),t.e(2793)]).then(t.bind(t,79847))),{loadableGenerated:{webpack:()=>[79847]}}),M=h()((()=>Promise.all([t.e(1582),t.e(9036)]).then(t.bind(t,49036))),{loadableGenerated:{webpack:()=>[49036]}}),_=h()((()=>Promise.all([t.e(1582),t.e(8722)]).then(t.bind(t,68722))),{loadableGenerated:{webpack:()=>[68722]}}),j=h()((()=>Promise.all([t.e(1582),t.e(5025)]).then(t.bind(t,95025))),{loadableGenerated:{webpack:()=>[95025]}}),N=h()((()=>Promise.all([t.e(1582),t.e(8225)]).then(t.bind(t,88225))),{loadableGenerated:{webpack:()=>[88225]}}),L=h()((()=>Promise.all([t.e(1582),t.e(4307)]).then(t.bind(t,24307))),{loadableGenerated:{webpack:()=>[24307]}}),R=h()((()=>Promise.all([t.e(1582),t.e(7602)]).then(t.bind(t,67602))),{loadableGenerated:{webpack:()=>[67602]}}),B=h()((()=>Promise.all([t.e(1582),t.e(5819)]).then(t.bind(t,55819))),{loadableGenerated:{webpack:()=>[55819]}}),C=h()((()=>Promise.all([t.e(1582),t.e(7632)]).then(t.bind(t,70684))),{loadableGenerated:{webpack:()=>[70684]}}),W=h()((()=>Promise.all([t.e(1582),t.e(4720)]).then(t.bind(t,94720))),{loadableGenerated:{webpack:()=>[94720]}}),A=h()((()=>Promise.all([t.e(1582),t.e(7707)]).then(t.bind(t,87707))),{loadableGenerated:{webpack:()=>[87707]}}),K=h()((()=>Promise.all([t.e(1582),t.e(9834)]).then(t.bind(t,59834))),{loadableGenerated:{webpack:()=>[59834]}}),x=h()((()=>Promise.all([t.e(2182),t.e(1582),t.e(3812)]).then(t.bind(t,12029))),{loadableGenerated:{webpack:()=>[12029]}}),I=h()((()=>Promise.all([t.e(1582),t.e(3523)]).then(t.bind(t,43523))),{loadableGenerated:{webpack:()=>[43523]}}),V=h()((()=>Promise.all([t.e(1582),t.e(484)]).then(t.bind(t,40484))),{loadableGenerated:{webpack:()=>[40484]}}),z=h()((()=>Promise.all([t.e(1582),t.e(1108)]).then(t.bind(t,51108))),{loadableGenerated:{webpack:()=>[51108]}}),F=h()((()=>Promise.all([t.e(1582),t.e(9990)]).then(t.bind(t,69990))),{loadableGenerated:{webpack:()=>[69990]}}),H=h()((()=>Promise.all([t.e(1582),t.e(2451)]).then(t.bind(t,12451))),{loadableGenerated:{webpack:()=>[12451]}}),X=h()((()=>Promise.all([t.e(1582),t.e(4680)]).then(t.bind(t,14680))),{loadableGenerated:{webpack:()=>[14680]}}),Z=h()((()=>Promise.all([t.e(1582),t.e(5099)]).then(t.bind(t,95099))),{loadableGenerated:{webpack:()=>[95099]}}),$=h()((()=>Promise.all([t.e(1582),t.e(642)]).then(t.bind(t,80642))),{loadableGenerated:{webpack:()=>[80642]}}),q=h()((()=>Promise.all([t.e(1582),t.e(6438)]).then(t.bind(t,36438))),{loadableGenerated:{webpack:()=>[36438]}}),Q=h()((()=>Promise.all([t.e(1582),t.e(1330)]).then(t.bind(t,11330))),{loadableGenerated:{webpack:()=>[11330]}}),J=h()((()=>Promise.all([t.e(1582),t.e(9847)]).then(t.bind(t,69847))),{loadableGenerated:{webpack:()=>[69847]}}),U=h()((()=>Promise.all([t.e(1582),t.e(1708)]).then(t.bind(t,41708))),{loadableGenerated:{webpack:()=>[41708]}}),Y=h()((()=>Promise.all([t.e(1582),t.e(5832)]).then(t.bind(t,65832))),{loadableGenerated:{webpack:()=>[65832]}}),ee=h()((()=>Promise.all([t.e(1582),t.e(1332)]).then(t.bind(t,61332))),{loadableGenerated:{webpack:()=>[61332]}}),ne=h()((()=>Promise.all([t.e(1582),t.e(7245)]).then(t.bind(t,97245))),{loadableGenerated:{webpack:()=>[97245]}}),te=h()((()=>Promise.all([t.e(4725),t.e(6259),t.e(4002),t.e(6703)]).then(t.bind(t,46363))),{loadableGenerated:{webpack:()=>[46363]}}),ae=h()((()=>Promise.all([t.e(6259),t.e(4002),t.e(934)]).then(t.bind(t,70934))),{loadableGenerated:{webpack:()=>[70934]}}),re=h()((()=>Promise.all([t.e(6259),t.e(1795)]).then(t.bind(t,21795))),{loadableGenerated:{webpack:()=>[21795]}}),oe=h()((()=>Promise.all([t.e(7686),t.e(6259),t.e(4002),t.e(6198)]).then(t.bind(t,3697))),{loadableGenerated:{webpack:()=>[3697]}});var ie=t(86409),le=t(52322);function ce(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function de(e){for(var n=1;nde(de({},e),{},{[w.slug]:!0}))):g[w.slug]&&!P.data&&G((e=>de(de({},e),{},{[w.slug]:!1})));const D=P.loading||v.loading,E=(0,o.useMemo)((()=>de(de({},S.data.product),{},{loadingPricing:D})),[S.data.product,D]),T=(0,o.useRef)();(0,o.useEffect)((()=>{if(T.current&&clearTimeout(T.current),E.eshopDetails?.discountPriceEnd){const e=Math.ceil(Date.parse(E.eshopDetails.discountPriceEnd)-Date.now());e>0&&e<2147483648&&(T.current=setTimeout((()=>(P.data?v:S).refetch()),e))}return()=>T.current&&clearTimeout(T.current)}),[E.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"}),_=(0,o.useMemo)((()=>M.data?.products?.length?(0,u.v5)({products:M.data.products,rating:E.contentRating}):[]),[M.data,E.contentRating]),j=r&&r.templateName,N=j?a[r.templateName]:null;return(0,le.jsx)(b.Kq,{preview:s,disableScrollRestoration:!0,children:(0,le.jsx)(d.dn,{product:E,merchBanner:t,showReadMore:!j&&p,bestSellers:_,children:j?(0,le.jsx)(N,{marketingPage:r.modularPageReference||r,productProps:E,DemoButton:()=>(0,le.jsx)(ie.g,{variant:"button",product:E}),locale:m}):n})})}},22739:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/store/products/[slug]",function(){return t(22648)}])}},function(e){e.O(0,[1850,5208,8286,4511,929,6409,9019,6275,9774,2888,179],(function(){return n=22739,e(e.s=n);var n}));var n=e.O();_N_E=n}]);