!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]="bb92d8a0-e1d5-4f4e-8023-54bf64db2eae",t._sentryDebugIdIdentifier="sentry-dbid-bb92d8a0-e1d5-4f4e-8023-54bf64db2eae")}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([[113],{1979:function(t,n,e){var content=e(2938);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,e(305).default)("5674994b",content,!0,{sourceMap:!1})},2934:function(t,n,e){"use strict";var o=e(24),r=e(2935).start;o({target:"String",proto:!0,forced:e(2936)},{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},2935:function(t,n,e){"use strict";var o=e(48),r=e(192),d=e(79),c=e(587),l=e(105),h=o(c),w=o("".slice),f=Math.ceil,m=function(t){return function(n,e,o){var c,m,v=d(l(n)),_=r(e),x=v.length,B=void 0===o?" ":d(o);return _<=x||""===B?v:((m=h(B,f((c=_-x)/B.length))).length>c&&(m=w(m,0,c)),t?v+m:m+v)}};t.exports={start:m(!1),end:m(!0)}},2936:function(t,n,e){"use strict";var o=e(153);t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(o)},2937:function(t,n,e){"use strict";e(1979)},2938:function(t,n,e){var o=e(304)((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},3180:function(t,n,e){"use strict";e.r(n);e(8),e(35),e(13),e(41),e(90),e(42),e(20),e(31),e(49),e(2934);var o=e(140),r=e(27),d=e(387),c=e(893),l=e(18),h=e(388),w=e(892),f=e(881),m=e(877),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 l.a("CountdownBanner"),x=36e5,B=Object(r.defineComponent)({name:"CountDownBanner",components:{GlobalSvgIcon:m.default},data:function(){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:function(){var t,n,e,o,r=this,d=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(!d||null===(n=this.trackingData)||void 0===n||!n.topicSlugs)return!1;var c=null!==(e=this.pagesToInclude)&&void 0!==e&&e.includes(",")?this.pagesToInclude.split(", "):[this.pagesToInclude],l=this.$store.getters["countdown/getStartDate"],h=this.$store.getters["countdown/getTargetDate"],w=null==c?void 0:c.includes(null===(o=this.trackingData)||void 0===o?void 0:o.articleType);return(null==d?void 0:d.some((function(t){var n;return null===(n=r.trackingData)||void 0===n||null===(n=n.topicSlugs)||void 0===n?void 0:n.includes(t)})))&&this.isWithinDateRange(l,h)&&w},bannerData:function(){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((function(t){return"CountDown"===t.label}));return"development"===this.$nuxt.context.env.NODE_ENV?v:e},trackingData:function(){return this.$store.getters["tracking/data"]||null},isNotTargetPage:function(){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:function(){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:function(){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,c,l=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==l||null===(r=l.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==l||null===(c=l.startDate)||void 0===c?void 0:c.toString())||null,this.secondary=(null==l?void 0:l.secondary)||!1,this.badgeText=(null==l?void 0:l.badgeText)||"",this.pagesToInclude=(null==l?void 0:l.pageType)||null}catch(t){_.error(t)}}},mounted:function(){var t=this;this.isValidToShow&&(this.startCountdown(),this.bannerObserver=new f.a({rootMargin:"0px",el:this.$el,threshold:0},(function(){var n;null===(n=t.bannerObserver)||void 0===n||n.destroy(),t.$track(c.a).with({webElement:{elementType:"SECTION",location:"BANNER",name:"countdown-banner",text:t.title}}).fire(),t.$track(w.a).with({view_correlation_id:t.correlationId,type:"COMPONENT",location:"BANNER",name:"countdown-banner",element_label:t.title}).fire()})))},beforeDestroy:function(){var t;this.stopCountdown(),null===(t=this.bannerObserver)||void 0===t||t.destroy()},methods:{isWithinDateRange:function(t,n){return!!(this.isValidDateFormat(this.serverDate)&&this.isValidDateFormat(t)&&this.isValidDateFormat(n))&&(this.serverDate>=t&&this.serverDate<=n)},isValidDateFormat:function(t){return/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(t)},trackClick:function(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:function(){this.updateCountdown(),this.isCountdownStarted=!0},updateCountdown:function(){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),c=Math.floor(o%x/6e4),l=Math.floor(o%6e4/1e3);this.days=String(r).padStart(2,"0"),this.hours=String(d).padStart(2,"0"),this.minutes=String(c).padStart(2,"0"),this.seconds=String(l).padStart(2,"0"),this.intervalId=null===(t=window)||void 0===t?void 0:t.requestAnimationFrame(this.updateCountdown)},stopCountdown:function(){this.intervalId&&(window.cancelAnimationFrame(this.intervalId),this.intervalId=null)}}}),D=(e(2937),e(150)),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}}]);