!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]="6527fa9b-332f-4e29-9a80-2a0586aa85ee",e._sentryDebugIdIdentifier="sentry-dbid-6527fa9b-332f-4e29-9a80-2a0586aa85ee")}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 ke},default:function(){return ge}});var t={};a.r(t),a.d(t,{AdvanceWarsTemplate:function(){return m},AnimalCrossingNewHorizonsPage:function(){return w},AnotherCodeRecollectionSwitch:function(){return f},Bayonetta3Switch:function(){return P},BayonettaOriginsSwitch:function(){return k},DetectivePikachuReturnsSwitch:function(){return g},DisneyIllusionIslandSwitch:function(){return y},EndlessOceanLuminousSwitch:function(){return D},EverybodySwitch:function(){return M},FZero99Switch:function(){return v},FireEmblemEngageSwitch:function(){return te},FireEmblemThreeHopes:function(){return X},GameAndWatchLegendOfZeldaPage:function(){return _},GameBuilderGarageSwitchPage:function(){return T},KirbyStarAlliesSwitchPage:function(){return N},KirbysDreamBuffetSwitch:function(){return q},KirbysReturnToDreamLandDeluxe:function(){return re},LClassicsPage:function(){return ie},LegendOfZeldaEOW:function(){return se},LiveALiveSwitch:function(){return j},LuigisMansion2HD:function(){return be},MarioLuigiBrothership:function(){return pe},MarioStrikersSwitch:function(){return F},MarioVsDk:function(){return L},May2024Switch:function(){return O},MiitopiaPage:function(){return I},MinecraftTemplate:function(){return R},Nintendo64Page:function(){return H},NintendoEntertainmentSystemPage:function(){return V},NintendoSwitchGameVouchers:function(){return U},PaperMarioTTYD:function(){return ue},Pikmin4:function(){return oe},PokemonLegendsArceusPage:function(){return W},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 B},SuperMarioPartyJamboree:function(){return he},SuperMarioRPG:function(){return de},SuperNintendoEntertainmentSystemPage:function(){return x},SwitchHardwareTemplate:function(){return Z},TearsOfTheKingdomTemplate:function(){return ae},Tetris99SwitchPage:function(){return C},TriangleStrategySwitchPage:function(){return K},WDEV4389:function(){return Y},WarioWareGetItTogetherSwitch:function(){return A},WarioWareMoveIt:function(){return E},XenobladeChronicles3Switch:function(){return $},peon:function(){return S},plmpStandard:function(){return G}});var r=a(95235),i=a(2784),o=a(64897),l=a(82091),d=a(98087),c=a(76454),u=a(67282),b=a(82090),s=a(402),h=a(25237),p=a.n(h);const m=p()((()=>Promise.all([a.e(3731),a.e(8535)]).then(a.bind(a,8535))),{loadableGenerated:{webpack:()=>[8535]}}),w=p()((()=>Promise.all([a.e(3731),a.e(3205)]).then(a.bind(a,43205))),{loadableGenerated:{webpack:()=>[43205]}}),f=p()((()=>Promise.all([a.e(3731),a.e(5567)]).then(a.bind(a,45567))),{loadableGenerated:{webpack:()=>[45567]}}),P=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(7201).then(a.bind(a,97201))),{loadableGenerated:{webpack:()=>[97201]}}),S=p()((()=>Promise.all([a.e(3731),a.e(6856)]).then(a.bind(a,86856))),{loadableGenerated:{webpack:()=>[86856]}}),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]}}),v=p()((()=>Promise.all([a.e(3731),a.e(7245)]).then(a.bind(a,17245))),{loadableGenerated:{webpack:()=>[17245]}}),E=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]}}),B=p()((()=>Promise.all([a.e(3731),a.e(4434)]).then(a.bind(a,24434))),{loadableGenerated:{webpack:()=>[24434]}}),I=p()((()=>Promise.all([a.e(3731),a.e(8140)]).then(a.bind(a,98140))),{loadableGenerated:{webpack:()=>[98140]}}),W=p()((()=>Promise.all([a.e(3731),a.e(4067)]).then(a.bind(a,14067))),{loadableGenerated:{webpack:()=>[14067]}}),C=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]}}),V=p()((()=>Promise.all([a.e(3731),a.e(9128)]).then(a.bind(a,59128))),{loadableGenerated:{webpack:()=>[59128]}}),x=p()((()=>Promise.all([a.e(3731),a.e(4074)]).then(a.bind(a,73019))),{loadableGenerated:{webpack:()=>[73019]}}),Z=p()((()=>Promise.all([a.e(3731),a.e(4564),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]}}),F=p()((()=>Promise.all([a.e(3731),a.e(967)]).then(a.bind(a,90967))),{loadableGenerated:{webpack:()=>[90967]}}),X=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]}}),ie=p()((()=>Promise.all([a.e(3731),a.e(6340)]).then(a.bind(a,46340))),{loadableGenerated:{webpack:()=>[46340]}}),oe=p()((()=>Promise.all([a.e(9358),a.e(7035),a.e(3983)]).then(a.bind(a,3983))),{loadableGenerated:{webpack:()=>[3983]}}),le=p()((()=>Promise.all([a.e(9358),a.e(7035),a.e(5829)]).then(a.bind(a,15829))),{loadableGenerated:{webpack:()=>[15829]}}),de=p()((()=>Promise.all([a.e(9358),a.e(7760)]).then(a.bind(a,47760))),{loadableGenerated:{webpack:()=>[47760]}}),ce=p()((()=>Promise.all([a.e(8901),a.e(9358),a.e(7035),a.e(8623),a.e(9695)]).then(a.bind(a,27449))),{loadableGenerated:{webpack:()=>[27449]}}),ue=p()((()=>Promise.all([a.e(9358),a.e(7035),a.e(8623),a.e(9823)]).then(a.bind(a,49823))),{loadableGenerated:{webpack:()=>[49823]}}),be=p()((()=>Promise.all([a.e(4589),a.e(9358),a.e(7035),a.e(8623),a.e(4174)]).then(a.bind(a,97935))),{loadableGenerated:{webpack:()=>[97935]}}),se=p()((()=>Promise.all([a.e(9358),a.e(8623),a.e(5367)]).then(a.bind(a,35367))),{loadableGenerated:{webpack:()=>[35367]}}),he=p()((()=>Promise.all([a.e(2745),a.e(9358),a.e(7035),a.e(8623),a.e(1324)]).then(a.bind(a,75147))),{loadableGenerated:{webpack:()=>[75147]}}),pe=p()((()=>Promise.all([a.e(3493),a.e(9358),a.e(7035),a.e(8623),a.e(934)]).then(a.bind(a,96697))),{ssr:!1,loadableGenerated:{webpack:()=>[96697]}});var me=a(88627),we=a(52322);function fe(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),{},{[f.slug]:!0}))):G[f.slug]&&!P.data&&S((e=>Pe(Pe({},e),{},{[f.slug]:!1})));const E=P.loading||v.loading,M=(0,i.useMemo)((()=>Pe(Pe({},y.data.product),{},{loadingPricing:E})),[y.data.product,E]),T=(0,i.useRef)();(0,i.useEffect)((()=>{if(T.current&&clearTimeout(T.current),M.eshopDetails?.discountPriceEnd){const e=Math.ceil(Date.parse(M.eshopDetails.discountPriceEnd)-Date.now());e>0&&e<2147483648&&(T.current=setTimeout((()=>(P.data?v:y).refetch()),e))}return()=>T.current&&clearTimeout(T.current)}),[M.eshopDetails?.discountPriceEnd,P.data,y,v]);const _=(0,d.aM)(c.o$.gg,{locale:w,where:{criteria:"TOP_SELLING"},pageSize:16},{fetchPolicy:"cache-only"}),N=(0,i.useMemo)((()=>_.data?.products?.length?(0,b.v5)({products:_.data.products,rating:M.contentRating}):[]),[_.data,M.contentRating]),j=r&&r?.modularPageReference?.templateName||r?.templateName,L=j?t[r.templateName??r.modularPageReference?.templateName]:null;return(0,we.jsx)(s.Kq,{preview:h,disableScrollRestoration:!0,children:(0,we.jsx)(u.dn,{product:M,merchBanner:a,showReadMore:!j&&m,bestSellers:N,children:j?(0,we.jsx)(L,{marketingPage:r.modularPageReference||r,productProps:M,DemoButton:()=>(0,we.jsx)(me.g,{variant:"button",product:M}),preview:h,locale:w}):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,754,9774,2888,179],(function(){return n=22739,e(e.s=n);var n}));var n=e.O();_N_E=n}]); //# sourceMappingURL=[slug]-bfa1f599006d2c5a.js.map