!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ab543a54-6a03-4f4e-87bb-440fbe25f574",e._sentryDebugIdIdentifier="sentry-dbid-ab543a54-6a03-4f4e-87bb-440fbe25f574")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2613],{51111:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return D},default:function(){return j}});var r=n(95235),a=n(2784),o=n(7798),i=(n(16297),n(64897)),s=n(60780),l=n(46420),c=n(82091),u=n(99140),d=n(2786),f=n(15188),p=n(98288),g=n(79149),m=n(36734),b=n(73353),h=n(31911),y=n(70933),P=n(52322);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t{let{analytics:t,page:n}=e;const{marketingPage:r={},pageHeader:O,pageLinkFarm:w=[]}=n.content,{text:C}=(0,c.useLocalizer)(),E=(0,i.Z)(),S=(0,p.Hf)(),D=(0,c.useAccounts)(),j=(0,a.useRef)(),x=!!(0,c.useFeature)("WDEV-4622-tags")?.variant?.payload?.value?.enableOnPLP,N=(0,a.useMemo)((()=>(0,d.vS)(E.locale)),[E.locale]),I=C("Deals"),k=(0,a.useMemo)((()=>[I]),[I]),{0:L,1:A}=(0,a.useState)(!0),M=Boolean(E.query[u.Tx.CAMPAIGN_CODE]),F=(0,a.useCallback)((()=>{A(!1)}),[]),R=(0,a.useCallback)((()=>{j.current&&(0,d.n5)(j.current,{offsetY:b.d,forceScroll:!0,behavior:"smooth"})}),[]),H=n.content.merchandisedGrid,q=(0,a.useMemo)((()=>N?null:(0,P.jsx)(o.my,{filterBySlug:m.Pp.ON_SALE,onClosePrompt:F,analytics:{listDetails:{id:`plp-${(0,d.GL)(t.pageName)}-recommendations`,name:`${t.pageName} - Recommendations`},featureFlag:u.rI.SALES_AND_DEALS_REDUX},content:n.content})),[F,N,t,n.content]),G=s.e.GAMES,T=(0,g.XD)({category:G,filter:`topLevelFilters:${I}`,merchandisedGrid:H,router:E}),z=x?s.G:s.H,B=(0,a.useMemo)((()=>{const e=new URL(E.asPath,u.$e).pathname;return{list:[S,...w].map((t=>_(_({},t),{},{label:C(t.label),isSelected:e===t.url})))}}),[C,S,w,E.asPath]),$=(0,a.useMemo)((()=>_(_({templateName:"peon"},r),{},{modules:[(0,h.MR)(_(_({},O),{},{description:(0,P.jsx)(y.Hb,{data:O.description})}),B.list,R),...r?.modules||[]].filter(Boolean)})),[O,r,B,R]);return(0,a.useEffect)((()=>{D.isLoggedIn||L||A(!0)}),[D.isLoggedIn,L]),(0,P.jsx)(P.Fragment,{children:(0,P.jsx)(l.X$,{router:E,categoryConfig:T,sortByCategories:v,defaultCategory:G,searchParamWhitelist:m.uy,preserveQueryParamKeys:m.aq,hiddenFilters:k,children:(0,P.jsx)(f.Z,{page:_(_({},n.content),{},{pageHeader:null,marketingPage:$,merchandisedGrid:H,merchandisedGridHeader:q,merchandisedGridRemainingProductsLabel:"Shop all deals",ctaCollection:B}),showRating:M,gridHeaderIsOpen:L,cachePrefix:"sales_and_deal_v2",filterSections:z,analytics:{eventPrefix:t.eventPrefix,pageName:t.pageName,featureFlag:t?.featureFlag},fullBleedHero:!0,cmsProductPageSize:40,seeAllCtaLabel:"Load more results",enableStickyCollectionNav:!0,hiddenFilters:k,scrollToProductsRef:j,disableDefaultMarketingPageHeading:!0})})})};function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;tE(E({},e.analytics),{},{eventPrefix:S})),[e.analytics]);return(0,P.jsx)(w,E(E({},e),{},{analytics:t}))}},70933:function(e,t,n){"use strict";n.d(t,{Hb:function(){return s},Tx:function(){return i}});var r=n(82731),a=n(82061),o=n(7798);const i=r.default.div.withConfig({componentId:"sc-rxe36q-0"})(["width:100%;position:relative;"]),s=((0,r.default)(o.tm).withConfig({componentId:"sc-rxe36q-1"})(["padding-top:",";padding-bottom:",";","{padding-top:",";padding-bottom:",";}"],(e=>{let{theme:t}=e;return t.spacing[40]}),(e=>{let{theme:t}=e;return t.spacing[40]}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.spacing[64]}),(e=>{let{theme:t}=e;return t.spacing[64]})),(0,r.default)(a.B).withConfig({componentId:"sc-rxe36q-2"})(["grid-column:span 2;","{height:",";font-size:",";padding:",";grid-column:span 1;}"],(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.spacing[64]}),(e=>{let{theme:t}=e;return t.font.size.h2Desktop}),(e=>{let{theme:t}=e;return`0 ${t.spacing[24]}`})),r.default.div.withConfig({componentId:"sc-rxe36q-3"})(["margin:"," ",";","{margin-top:",";margin-bottom:",";}"],(e=>{let{theme:t}=e;return t.spacing[32]}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.spacing[64]}),(e=>{let{theme:t}=e;return t.spacing[96]})),(0,r.default)(o.en).withConfig({componentId:"sc-rxe36q-4"})(["padding-left:0;"]),r.default.div.withConfig({componentId:"sc-rxe36q-5"})(["background-color:",";border-radius:",";padding:",";margin-bottom:0;*{font-size:",";}","{margin-bottom:",";*{font-size:",";}}"],(e=>{let{theme:t}=e;return t.color.white}),(e=>{let{theme:t}=e;return t.borderRadius}),(e=>{let{theme:t}=e;return t.spacing[16]}),(e=>{let{theme:t}=e;return t.font.size.legalMobile}),(e=>{let{theme:t}=e;return t.mediaQuery.tablet}),(e=>{let{theme:t}=e;return t.spacing[32]}),(e=>{let{theme:t}=e;return t.font.size.legalDesktop})),r.default.div.withConfig({componentId:"sc-rxe36q-6"})(["display:inline-flex;text{color:",";}"],(e=>{let{$textColor:t}=e;return t})),(0,r.default)(o.Ho).withConfig({componentId:"sc-rxe36q-7"})(["margin-bottom:0;"]))},16297:function(e,t,n){"use strict";n(2784),n(82091),n(10135),n(7798),n(36734),n(70933),n(52322)},31911:function(e,t,n){"use strict";n.d(t,{MR:function(){return a}});var r=n(91159);n(2786);const a=(e,t,n)=>e&&{sectionType:"HeaderFullBleed",background:{},modules:[{__contentType:r.OB.PEON_PROMO,body:{content:[{content:[{value:e.heading}]},{content:[{value:e.description}]}]},asset:{primary:{assetPath:e.asset?.primary?.assetPath},secondary:{assetPath:e.asset?.secondary?.assetPath},alt:"sale"},ctas:t,onPillClick:n,pillProps:{proxyLinkProps:{scroll:!1}}}]}},37135:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/store/sales-and-deals",function(){return n(51111)}])}},function(e){e.O(0,[8286,4511,402,5806,5188,9774,2888,179],(function(){return t=37135,e(e.s=t);var t}));var t=e.O();_N_E=t}]); //# sourceMappingURL=sales-and-deals-b113470d18f30907.js.map