!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]="2c5e41e1-6e53-4ebd-970a-943faf69434f",e._sentryDebugIdIdentifier="sentry-dbid-2c5e41e1-6e53-4ebd-970a-943faf69434f")}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 Se},default:function(){return ye}});var t={};a.r(t),a.d(t,{AdvanceWarsTemplate:function(){return f},AnimalCrossingNewHorizonsPage:function(){return m},AnotherCodeRecollectionSwitch:function(){return P},Bayonetta3Switch:function(){return w},BayonettaOriginsSwitch:function(){return k},DetectivePikachuReturnsSwitch:function(){return g},DisneyIllusionIslandSwitch:function(){return y},DonkeyKongCountryReturnsHD:function(){return fe},EndlessOceanLuminousSwitch:function(){return D},EverybodySwitch:function(){return M},FZero99Switch:function(){return E},FireEmblemEngageSwitch:function(){return te},FireEmblemThreeHopes:function(){return F},GameAndWatchLegendOfZeldaPage:function(){return _},GameBuilderGarageSwitchPage:function(){return T},KirbyStarAlliesSwitchPage:function(){return N},KirbysDreamBuffetSwitch:function(){return q},KirbysReturnToDreamLandDeluxe:function(){return re},LClassicsPage:function(){return oe},LegendOfZeldaEOW:function(){return se},LiveALiveSwitch:function(){return j},LuigisMansion2HD:function(){return be},MarioLuigiBrothership:function(){return pe},MarioStrikersSwitch:function(){return z},MarioVsDk:function(){return L},May2024Switch:function(){return O},MiitopiaPage:function(){return B},MinecraftTemplate:function(){return R},Nintendo64Page:function(){return H},NintendoEntertainmentSystemPage:function(){return X},NintendoSwitchGameVouchers:function(){return U},PaperMarioTTYD:function(){return ue},Pikmin4:function(){return ie},PokemonLegendsArceusPage:function(){return I},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 v},XenobladeChronicles3Switch:function(){return $},XenobladeChroniclesXDefinitiveEdition:function(){return me},XenobladeChroniclesX_PhaseTwo:function(){return Pe},peon:function(){return S},plmpStandard:function(){return G}});var r=a(95235),o=a(2784),i=a(64897),l=a(82091),d=a(98087),c=a(76454),u=a(92350),b=a(79149),s=a(402),h=a(25237),p=a.n(h);const f=p()((()=>Promise.all([a.e(3731),a.e(8535)]).then(a.bind(a,8535))),{loadableGenerated:{webpack:()=>[8535]}}),m=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(3731),a.e(7718),a.e(5671)]).then(a.bind(a,97718))),{loadableGenerated:{webpack:()=>[97718]}}),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]}}),O=p()((()=>Promise.all([a.e(3731),a.e(3984)]).then(a.bind(a,83984))),{loadableGenerated:{webpack:()=>[83984]}}),E=p()((()=>Promise.all([a.e(3731),a.e(7245)]).then(a.bind(a,17245))),{loadableGenerated:{webpack:()=>[17245]}}),v=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]}}),L=p()((()=>Promise.all([a.e(3731),a.e(1373)]).then(a.bind(a,61373))),{loadableGenerated:{webpack:()=>[61373]}}),R=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]}}),B=p()((()=>Promise.all([a.e(3731),a.e(8140)]).then(a.bind(a,98140))),{loadableGenerated:{webpack:()=>[98140]}}),I=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]}}),z=p()((()=>Promise.all([a.e(3731),a.e(967)]).then(a.bind(a,90967))),{loadableGenerated:{webpack:()=>[90967]}}),F=p()((()=>Promise.all([a.e(3731),a.e(5683)]).then(a.bind(a,35683))),{loadableGenerated:{webpack:()=>[35683]}}),$=p()((()=>Promise.all([a.e(3731),a.e(8063)]).then(a.bind(a,28063))),{loadableGenerated:{webpack:()=>[28063]}}),q=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]}}),oe=p()((()=>Promise.all([a.e(3731),a.e(6340)]).then(a.bind(a,46340))),{loadableGenerated:{webpack:()=>[46340]}}),ie=p()((()=>Promise.all([a.e(4119),a.e(9221),a.e(6098)]).then(a.bind(a,86098))),{loadableGenerated:{webpack:()=>[86098]}}),le=p()((()=>Promise.all([a.e(4119),a.e(9221),a.e(8317)]).then(a.bind(a,48317))),{loadableGenerated:{webpack:()=>[48317]}}),de=p()((()=>Promise.all([a.e(4119),a.e(5434)]).then(a.bind(a,75434))),{loadableGenerated:{webpack:()=>[75434]}}),ce=p()((()=>Promise.all([a.e(4165),a.e(4119),a.e(9221),a.e(6538),a.e(8890)]).then(a.bind(a,27449))),{loadableGenerated:{webpack:()=>[27449]}}),ue=p()((()=>Promise.all([a.e(4119),a.e(9221),a.e(6538),a.e(9517)]).then(a.bind(a,29517))),{loadableGenerated:{webpack:()=>[29517]}}),be=p()((()=>Promise.all([a.e(1083),a.e(4119),a.e(9221),a.e(6538),a.e(6514)]).then(a.bind(a,97935))),{loadableGenerated:{webpack:()=>[97935]}}),se=p()((()=>Promise.all([a.e(4119),a.e(6538),a.e(31)]).then(a.bind(a,20031))),{loadableGenerated:{webpack:()=>[20031]}}),he=p()((()=>Promise.all([a.e(4526),a.e(4119),a.e(9221),a.e(6538),a.e(9325)]).then(a.bind(a,75147))),{loadableGenerated:{webpack:()=>[75147]}}),pe=p()((()=>Promise.all([a.e(772),a.e(4119),a.e(9221),a.e(6538),a.e(7557)]).then(a.bind(a,96697))),{ssr:!1,loadableGenerated:{webpack:()=>[96697]}}),fe=p()((()=>Promise.all([a.e(9816),a.e(4119),a.e(9221),a.e(6538),a.e(6210)]).then(a.bind(a,46221))),{loadableGenerated:{webpack:()=>[46221]}}),me=p()((()=>Promise.all([a.e(4119),a.e(7158)]).then(a.bind(a,7158))),{loadableGenerated:{webpack:()=>[7158]}}),Pe=p()((()=>Promise.all([a.e(660),a.e(4119),a.e(9221),a.e(6538),a.e(6725)]).then(a.bind(a,63909))),{loadableGenerated:{webpack:()=>[63909]}});var we=a(7798),ke=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 Ge(e){for(var n=1;nGe(Ge({},e),{},{[m.slug]:!0}))):g[m.slug]&&!P.data&&G((e=>Ge(Ge({},e),{},{[m.slug]:!1})));const E=P.loading||O.loading,v=(0,o.useMemo)((()=>Ge(Ge({},S.data.product),{},{loadingPricing:E,removeGoldPoints:p})),[S.data.product,E,p]),M=(0,o.useRef)();(0,o.useEffect)((()=>{if(M.current&&clearTimeout(M.current),v.eshopDetails?.discountPriceEnd){const e=Math.ceil(Date.parse(v.eshopDetails.discountPriceEnd)-Date.now());e>0&&e<2147483648&&(M.current=setTimeout((()=>(P.data?O:S).refetch()),e))}return()=>M.current&&clearTimeout(M.current)}),[v.eshopDetails?.discountPriceEnd,P.data,S,O]);const T=(0,d.aM)(c.o$.gg,{locale:f,where:{criteria:"TOP_SELLING"},pageSize:16},{fetchPolicy:"cache-only"}),_=(0,o.useMemo)((()=>T.data?.products?.length?(0,b.v5)({products:T.data.products,rating:v.contentRating}):[]),[T.data,v.contentRating]),N=r&&r?.modularPageReference?.templateName||r?.templateName,j=N?t[r.templateName??r.modularPageReference?.templateName]:null;return(0,ke.jsx)(s.Kq,{disableScrollRestoration:!0,children:(0,ke.jsx)(u.dn,{product:v,merchBanner:a,showReadMore:!N&&h,bestSellers:_,children:N?(0,ke.jsx)(j,{marketingPage:r.modularPageReference||r,productProps:v,DemoButton:()=>(0,ke.jsx)(we.g,{variant:"button",product:v}),locale:f}):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,9780,9774,2888,179],(function(){return n=22739,e(e.s=n);var n}));var n=e.O();_N_E=n}]); //# sourceMappingURL=[slug]-4b6074461487f6a8.js.map