!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="2f776b5e-5a88-4d10-9b56-e76f301bfa26",t._sentryDebugIdIdentifier="sentry-dbid-2f776b5e-5a88-4d10-9b56-e76f301bfa26")}catch(t){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"cnet-neutron@cnet.prod.254f83"},(window.webpackJsonp=window.webpackJsonp||[]).push([[112],{1892:function(t,n,e){var content=e(2854);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,e(248).default)("5674994b",content,!0,{sourceMap:!1})},2850:function(t,n,e){"use strict";var o=e(19),r=e(2851).start;o({target:"String",proto:!0,forced:e(2852)},{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},2851:function(t,n,e){"use strict";var o=e(30),r=e(157),d=e(56),l=e(903),c=e(87),h=o(l),w=o("".slice),f=Math.ceil,m=function(t){return function(n,e,o){var l,m,v=d(c(n)),_=r(e),x=v.length,B=void 0===o?" ":d(o);return _<=x||""===B?v:((m=h(B,f((l=_-x)/B.length))).length>l&&(m=w(m,0,l)),t?v+m:m+v)}};t.exports={start:m(!1),end:m(!0)}},2852:function(t,n,e){"use strict";var o=e(141);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(o)},2853:function(t,n,e){"use strict";e(1892)},2854:function(t,n,e){var o=e(247)((function(i){return i[1]}));o.push([t.i,".c-countdownBanner{background-color:#121218;width:100%;color:#fff;cursor:pointer}.c-countdownBanner_noCursor{cursor:unset}.c-countdownBanner_container{padding-block:1rem;display:flex;justify-content:space-between;flex-wrap:wrap;align-items:end;gap:.5rem}@media(min-width: 768px){.c-countdownBanner_container{flex-wrap:nowrap}}@media(min-width: 1024px){.c-countdownBanner_container{gap:.5rem}}@media(min-width: 1440px){.c-countdownBanner_container{padding-block:2rem;gap:1rem}}.c-countdownBanner_hed{display:flex;flex-direction:column;justify-content:start;gap:.5rem;max-width:343px;order:1}@media(min-width: 768px){.c-countdownBanner_hed{order:unset}}.c-countdownBanner_title{font-size:1.5rem;line-height:1.5rem;font-family:stardust,serif;font-weight:500;font-stretch:48%;text-transform:uppercase}@media(min-width: 768px){.c-countdownBanner_title{font-size:24px;line-height:24px}}@media(min-width: 1024px){.c-countdownBanner_title{font-size:1.75rem;line-height:1.75rem;font-family:stardust,serif;font-weight:500;font-stretch:48%;text-transform:uppercase}}@media(min-width: 1440px){.c-countdownBanner_title{font-size:2.625rem;line-height:2.625rem;font-family:stardust,serif;font-weight:500;font-stretch:48%;text-transform:uppercase}}.c-countdownBanner_badge{display:none;border-radius:.125rem;width:fit-content;padding-inline:.25rem;color:#121218;background:linear-gradient(211.63deg, #b4fd8c -23.83%, #fcf95a 126.88%)}@media(min-width: 768px){.c-countdownBanner_badge{height:1rem;line-height:1rem;display:block;font-weight:700;font-size:10px;line-height:14px}}@media(min-width: 1440px){.c-countdownBanner_badge{font-weight:700;font-size:12px;line-height:16px;line-height:1.125rem;height:1.125rem}}.c-countdownBanner_badge_secondary{background:linear-gradient(217.64deg, #fcf95a -7.23%, #ff5d53 109.53%)}.c-countdownBanner_date{display:flex;justify-content:center;gap:.5rem;order:3;margin:auto;width:100%}@media(min-width: 768px){.c-countdownBanner_date{width:unset;margin:unset;order:unset}}@media(min-width: 1440px){.c-countdownBanner_date{gap:1rem}}.c-countdownBanner_dateBox{display:flex;flex-direction:column;justify-content:center;background-color:#2b2b31;text-align:center;height:52px;width:5rem;border-radius:.5rem}@media(min-width: 768px){.c-countdownBanner_dateBox{height:56px}}@media(min-width: 1024px){.c-countdownBanner_dateBox{height:52px}}@media(min-width: 1440px){.c-countdownBanner_dateBox{width:120px;height:68px}}.c-countdownBanner_dateBox_number{font-size:1.5rem;line-height:1.5rem;font-family:stardust,serif;font-weight:500;font-stretch:48%;text-transform:uppercase;font-weight:700;font-stretch:120%;background:linear-gradient(211.63deg, #b4fd8c -23.83%, #fcf95a 126.88%);background-clip:text;color:rgba(0,0,0,0)}@media(min-width: 768px){.c-countdownBanner_dateBox_number{font-size:2.625rem;line-height:2.625rem;font-family:stardust,serif;font-weight:500;font-stretch:48%;text-transform:uppercase;font-weight:700;font-stretch:120%;font-size:24px;line-height:24px}}@media(min-width: 1024px){.c-countdownBanner_dateBox_number{font-size:20px;line-height:20px}}@media(min-width: 1440px){.c-countdownBanner_dateBox_number{font-size:32px;line-height:32px}}.c-countdownBanner_dateBox_text{font-weight:700;font-size:12px;line-height:.5rem;background:linear-gradient(211.63deg, #b4fd8c -23.83%, #fcf95a 126.88%);background-clip:text;color:rgba(0,0,0,0)}@media(min-width: 768px){.c-countdownBanner_dateBox_text{line-height:12px}}@media(min-width: 1440px){.c-countdownBanner_dateBox_text{font-size:16px;line-height:16px}}.c-countdownBanner_date_secondary .c-countdownBanner_dateBox_number{background:linear-gradient(217.64deg, #fcf95a -7.23%, #ff5d53 109.53%);background-clip:text}.c-countdownBanner_date_secondary .c-countdownBanner_dateBox_text{background:linear-gradient(217.64deg, #fcf95a -7.23%, #ff5d53 109.53%);background-clip:text}.c-countdownBanner_description{text-align:start;display:none}@media(min-width: 1024px){.c-countdownBanner_description{max-width:222px;display:block;font-weight:400;font-size:12px;line-height:16px}}@media(min-width: 1440px){.c-countdownBanner_description{max-width:184px}}.c-countdownBanner_CTA{font-weight:700;font-size:12px;line-height:16px;margin-block:auto;color:#b4fd8c;margin-left:.5rem;display:flex;gap:.125rem;order:2;line-height:1.125rem}@media(min-width: 768px){.c-countdownBanner_CTA{order:unset;font-weight:700;font-size:14px;line-height:20px}}.c-countdownBanner_CTA svg{fill:#b4fd8c;margin:auto}",""]),o.locals={},t.exports=o},3095:function(t,n,e){"use strict";e.r(n);e(33),e(63),e(22),e(27),e(26),e(2850);var o=e(109),r=e(12),d=e(329),l=e(816),c=e(10),h=e(330),w=e(814),f=e(803),m=e(799),v={author:null,body:"CNET's shopping experts are working nonstop to find the deepest discounts before, during and after Amazon's Big Deal Days event.",description:'{\r\n "targetDate": "2024-10-25T14:59:00",\r\n "startDate": "2024-10-18T03:00:00",\r\n "secondary": false,\r\n "badgeText": "Ends Oct. 9",\r\n "pageType": "Deals - Precap"\r\n}',id:!1,label:"CountDown",metaData:{linkText:"See Our Top Deals",linkUrl:"/deals/best-october-prime-day-sales-2024-10-09/",origin:"tech, laptops",relatedItems:[]},section:"",slug:"prime-big-deal-days",title:"Prime Big Deal Days",topics:[]},_=new c.a("CountdownBanner"),x=36e5,B=Object(r.defineComponent)({name:"CountDownBanner",components:{GlobalSvgIcon:m.default},data(){return{bannerObserver:null,title:"",badgeText:"",pagesToInclude:"",secondary:!1,targetDate:null,startDate:null,defaultTime:"--",days:"00",hours:"00",minutes:"00",seconds:"00",correlationId:Object(o.v4)(),isCountdownStarted:!1,intervalId:null,serverDate:this.$store.getters["countdown/getServerDate"]}},computed:{isValidToShow(){var t,n,e,o,r=null===(t=this.bannerData)||void 0===t||null===(t=t.metaData)||void 0===t||null===(t=t.origin)||void 0===t?void 0:t.split(" ");if(!r||null===(n=this.trackingData)||void 0===n||!n.topicSlugs)return!1;var d=null!==(e=this.pagesToInclude)&&void 0!==e&&e.includes(",")?this.pagesToInclude.split(", "):[this.pagesToInclude],l=this.$store.getters["countdown/getStartDate"],c=this.$store.getters["countdown/getTargetDate"],h=null==d?void 0:d.includes(null===(o=this.trackingData)||void 0===o?void 0:o.articleType);return(null==r?void 0:r.some((t=>{var n;return null===(n=this.trackingData)||void 0===n||null===(n=n.topicSlugs)||void 0===n?void 0:n.includes(t)})))&&this.isWithinDateRange(l,c)&&h},bannerData(){var t,n=this.$store.getters["page/headerComponentByName"]("curated-nav-header-redesign")||null,e=null==n||null===(t=n.items)||void 0===t?void 0:t.find((t=>"CountDown"===t.label));return"development"===this.$nuxt.context.env.NODE_ENV?v:e},trackingData(){return this.$store.getters["tracking/data"]||null},isNotTargetPage(){var t,n;return(null===(t=this.$store.getters["countdown/getCurrentPath"])||void 0===t?void 0:t.split("?")[0])!==(null===(n=this.bannerData)||void 0===n||null===(n=n.metaData)||void 0===n?void 0:n.linkUrl)},showCtaBanner(){var t,n;return(null===(t=this.bannerData)||void 0===t||null===(t=t.metaData)||void 0===t?void 0:t.linkText)&&(null===(n=this.bannerData)||void 0===n||null===(n=n.metaData)||void 0===n?void 0:n.linkUrl)&&this.isNotTargetPage}},created(){if(this.bannerData){var t,n=this.$route.query;this.title=(null===(t=this.bannerData)||void 0===t?void 0:t.title)||"";try{var e,o,r,d,l,c=JSON.parse(null===(e=this.bannerData)||void 0===e?void 0:e.description);this.targetDate=(null==n||null===(o=n.targetDate)||void 0===o?void 0:o.toString())||(null==c||null===(r=c.targetDate)||void 0===r?void 0:r.toString())||null,this.startDate=(null==n||null===(d=n.startDate)||void 0===d?void 0:d.toString())||(null==c||null===(l=c.startDate)||void 0===l?void 0:l.toString())||null,this.secondary=(null==c?void 0:c.secondary)||!1,this.badgeText=(null==c?void 0:c.badgeText)||"",this.pagesToInclude=(null==c?void 0:c.pageType)||null}catch(t){_.error(t)}}},mounted(){this.isValidToShow&&(this.startCountdown(),this.bannerObserver=new f.a({rootMargin:"0px",el:this.$el,threshold:0},(()=>{var t;null===(t=this.bannerObserver)||void 0===t||t.destroy(),this.$track(l.a).with({webElement:{elementType:"SECTION",location:"BANNER",name:"countdown-banner",text:this.title}}).fire(),this.$track(w.a).with({view_correlation_id:this.correlationId,type:"COMPONENT",location:"BANNER",name:"countdown-banner",element_label:this.title}).fire()})))},beforeDestroy(){var t;this.stopCountdown(),null===(t=this.bannerObserver)||void 0===t||t.destroy()},methods:{isWithinDateRange(t,n){return!!(this.isValidDateFormat(this.serverDate)&&this.isValidDateFormat(t)&&this.isValidDateFormat(n))&&(this.serverDate>=t&&this.serverDate<=n)},isValidDateFormat:t=>/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(t),trackClick(t){var n,e;(this.$track(d.a).with({webElement:{elementType:"BANNER",location:"BANNER",name:t,text:this.title}}).fire(),this.$track(h.a).with({view_correlation_id:this.correlationId,type:"ITEM",location:"BANNER",name:t,element_label:this.title}).fire(),null!==(n=this.bannerData)&&void 0!==n&&null!==(n=n.metaData)&&void 0!==n&&n.linkUrl)&&window.open(null===(e=this.bannerData)||void 0===e||null===(e=e.metaData)||void 0===e||null===(e=e.linkUrl)||void 0===e?void 0:e.toString(),"_self")},startCountdown(){this.updateCountdown(),this.isCountdownStarted=!0},updateCountdown(){var t,n=this.$store.getters["countdown/getServerDate"],e=this.$store.getters["countdown/getTargetDate"],o=new Date(e).getTime()-new Date(n).getTime();if(o<0)return this.days="00",this.hours="00",this.minutes="00",void(this.seconds="00");var r=Math.floor(o/864e5),d=Math.floor(o%864e5/x),l=Math.floor(o%x/6e4),c=Math.floor(o%6e4/1e3);this.days=String(r).padStart(2,"0"),this.hours=String(d).padStart(2,"0"),this.minutes=String(l).padStart(2,"0"),this.seconds=String(c).padStart(2,"0"),this.intervalId=null===(t=window)||void 0===t?void 0:t.requestAnimationFrame(this.updateCountdown)},stopCountdown(){this.intervalId&&(window.cancelAnimationFrame(this.intervalId),this.intervalId=null)}}}),D=(e(2853),e(121)),component=Object(D.a)(B,(function(){var t,n,e,o=this,r=o._self._c;o._self._setupProxy;return r("div",{directives:[{name:"show",rawName:"v-show",value:o.isValidToShow,expression:"isValidToShow"}],staticClass:"c-countdownBanner",class:{"c-countdownBanner_noCursor":!o.isNotTargetPage},on:{click:function(t){o.isNotTargetPage&&o.trackClick("countdown-banner|banner")}}},[r("div",{staticClass:"c-countdownBanner_container g-grid-container"},[r("div",{staticClass:"c-countdownBanner_hed"},[r("span",{staticClass:"c-countdownBanner_badge",class:{"c-countdownBanner_badge_secondary":o.secondary}},[o._v("\n "+o._s(o.badgeText)+"\n ")]),o._v(" "),r("span",{staticClass:"c-countdownBanner_title"},[o._v(o._s(o.title))])]),o._v(" "),r("div",{staticClass:"c-countdownBanner_date",class:{"c-countdownBanner_date_secondary":o.secondary}},[r("span",{staticClass:"c-countdownBanner_dateBox"},[r("span",{staticClass:"c-countdownBanner_dateBox_number"},[o._v("\n "+o._s(o.isCountdownStarted?o.days:o.defaultTime)+"\n ")]),o._v(" "),r("span",{staticClass:"c-countdownBanner_dateBox_text"},[o._v(o._s(o.$t("countdownBanner.days")))])]),o._v(" "),r("span",{staticClass:"c-countdownBanner_dateBox"},[r("span",{staticClass:"c-countdownBanner_dateBox_number"},[o._v("\n "+o._s(o.isCountdownStarted?o.hours:o.defaultTime)+"\n ")]),o._v(" "),r("span",{staticClass:"c-countdownBanner_dateBox_text"},[o._v(o._s(o.$t("countdownBanner.hours")))])]),o._v(" "),r("span",{staticClass:"c-countdownBanner_dateBox"},[r("span",{staticClass:"c-countdownBanner_dateBox_number"},[o._v("\n "+o._s(o.isCountdownStarted?o.minutes:o.defaultTime)+"\n ")]),o._v(" "),r("span",{staticClass:"c-countdownBanner_dateBox_text"},[o._v(o._s(o.$t("countdownBanner.minutes")))])]),o._v(" "),r("span",{staticClass:"c-countdownBanner_dateBox"},[r("span",{staticClass:"c-countdownBanner_dateBox_number"},[o._v("\n "+o._s(o.isCountdownStarted?o.seconds:o.defaultTime)+"\n ")]),o._v(" "),r("span",{staticClass:"c-countdownBanner_dateBox_text"},[o._v(o._s(o.$t("countdownBanner.seconds")))])])]),o._v(" "),r("div",{staticClass:"c-countdownBanner_description"},[r("span",[o._v(o._s(null===(t=o.bannerData)||void 0===t?void 0:t.body))])]),o._v(" "),o.showCtaBanner?r("a",{staticClass:"c-countdownBanner_CTA o-inText-link o-inText-link-darkBg",attrs:{href:null===(n=o.bannerData)||void 0===n||null===(n=n.metaData)||void 0===n||null===(n=n.linkUrl)||void 0===n?void 0:n.toString(),target:"_self"},on:{click:function(t){return t.stopPropagation(),o.trackClick("countdown-banner|cta")}}},[o._v("\n "+o._s(null===(e=o.bannerData)||void 0===e||null===(e=e.metaData)||void 0===e?void 0:e.linkText)+"\n "),r("GlobalSvgIcon",{staticClass:"c-countdownBanner_icon o-icon o-cnetButton-icon",attrs:{id:"hero-arrow-long"}})],1):o._e()])])}),[],!1,null,null,null);n.default=component.exports},903:function(t,n,e){"use strict";var o=e(153),r=e(56),d=e(87),l=RangeError;t.exports=function(t){var n=r(d(this)),e="",c=o(t);if(c<0||c===1/0)throw new l("Wrong number of repetitions");for(;c>0;(c>>>=1)&&(n+=n))1&c&&(e+=n);return e}}}]);