(window.webpackJsonp=window.webpackJsonp||[]).push([[182,69,101],{1323:function(e,t,r){var content=r(1734);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(243).default)("7e7a8600",content,!0,{sourceMap:!1})},1733:function(e,t,r){"use strict";r(1323)},1734:function(e,t,r){var o=r(242)((function(i){return i[1]}));o.push([e.i,".c-shortcodeCommercePromo{grid-gap:1rem;border:1px solid #dadada;border-radius:.25rem}@media(min-width: 768px){.c-shortcodeCommercePromo{margin-bottom:1.5rem}}.c-shortcodeCommercePromo_content{flex:2;padding:1rem}@media(min-width: 768px){.c-shortcodeCommercePromo_content{padding:1.5rem}}.c-shortcodeCommercePromo_hed{display:inline-block;width:fit-content;-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}@media(min-width: 768px){.c-shortcodeCommercePromo_hed{font-size:1.25rem;line-height:1.75rem}}.c-shortcodeCommercePromo_button{min-width:249px;max-width:fit-content}.c-shortcodeCommercePromo_image{height:100%;max-width:96px}.c-shortcodeCommercePromo_image picture,.c-shortcodeCommercePromo_image img{height:100%;border-radius:0 .25rem .25rem 0;object-fit:cover}.c-shortcodeCommercePromo-noSeller .c-shortcodeCommercePromo_image{height:unset}@media(min-width: 768px){.c-shortcodeCommercePromo_image{min-width:196px}}.is-smallPromo .c-shortcodeCommercePromo{border:0;border-radius:0;border-top:1px solid #dadada;border-bottom:1px solid #dadada}@media(max-width: 767px){.is-smallPromo .c-shortcodeCommercePromo{flex-direction:column-reverse}}.is-smallPromo .c-shortcodeCommercePromo_button{display:none}.is-smallPromo .c-shortcodeCommercePromo_hed{font-family:sentinel,serif;font-weight:600;letter-spacing:-0.032em;word-spacing:.15em}.is-smallPromo .c-shortcodeCommercePromo_image{transform:scale(0.8)}@media(max-width: 767px){.is-smallPromo .c-shortcodeCommercePromo_image{transform:none;max-width:50%;margin:1rem auto 0 auto}}.is-smallPromo .c-shortcodeCommercePromo_image picture,.is-smallPromo .c-shortcodeCommercePromo_image img{border-radius:.25rem;object-fit:cover}.is-smallPromo .c-shortcodeCommercePromo_content{justify-content:center;padding:1rem 0}@media(max-width: 767px){.is-smallPromo .c-shortcodeCommercePromo_content{padding:0 0 1rem 0}}.is-smallPromo .c-shortcodeCommercePromo_content a{margin-bottom:0}",""]),o.locals={},e.exports=o},2347:function(e,t,r){"use strict";r.r(t);var o=r(6),n=(r(3),r(5),r(31),r(0)),c=r(769),l=r(772),d=r(324),m=r(795),h=r(326),f=r(776),v=r(774),O=r(29),y=r(773),j=r(793),w=r(831),P=r(830);function C(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}function _(e){for(var i=1;i0)return null===(o=null===(r=this.extraData)||void 0===r?void 0:r.merchantOffers)||void 0===o?void 0:o[0];if(this.offermerchant&&this.offerurl){var n={offerMerchant:this.offermerchant,url:this.offerurl};return this.offerprice&&(n.offerPrice=this.offerprice),n}return null}get offerMerchant(){var e;return(null===(e=this.extraData)||void 0===e?void 0:e.offerMerchant)||this.offermerchant}get preferredReseller(){var e,t=P.a.preferredResellers(null===(e=this.extraData.techProd)||void 0===e?void 0:e.resellers,1);return t?t[0]:null}get productPrice(){var e,t,r,o=null;return this.useReseller?o=(null===(e=this.preferredReseller)||void 0===e?void 0:e.price)/100:(null===(t=this.merchantOffer)||void 0===t?void 0:t.offerPrice)?o=Number(null===(r=this.merchantOffer)||void 0===r?void 0:r.offerPrice):this.offerprice&&(o=Number(this.offerprice)),o}get resellerName(){var e,t;return(this.useReseller?null===(e=this.preferredReseller)||void 0===e?void 0:e.name:null===(t=this.merchantOffer)||void 0===t?void 0:t.offerMerchant)||this.offerMerchant||null}get relAttribute(){return this.$services.isFeatureEnabled("isSleepPages")?"follow":"noopener nofollow"}fireElementViewed(){var e={webElement:{name:"demand-driver-unit",text:this.hed,elementType:"LINK",location:this.$attributeRef.location,htmlId:this.$attributeRef.section}},t=h.a.replaceAttributeReferences(this.$el,e);this.$track(m.a).with(t).fire()}created(){this.$store.dispatch("tracking/setPageComponents",{cm08:!0})}mounted(){this.isInternalLink&&(this.inViewportObserver=new v.a({rootMargin:"0px",el:this.$el,threshold:.5},(()=>{this.inViewportObserver.destroy(),this.fireElementViewed()})))}beforeDestroy(){this.inViewportObserver&&this.inViewportObserver.destroy()}};Object(n.c)([Object(c.Prop)({default:"",type:String}),Object(n.f)("design:type",String)],k.prototype,"api",void 0),Object(n.c)([Object(c.Prop)({default:null,type:String}),Object(n.f)("design:type",String)],k.prototype,"buttonTextOverride",void 0),Object(n.c)([Object(c.Prop)({default:"",type:String}),Object(n.f)("design:type",String)],k.prototype,"id",void 0),Object(n.c)([Object(c.Prop)({default:"",type:String}),Object(n.f)("design:type",String)],k.prototype,"hed",void 0),Object(n.c)([Object(c.Prop)({default:null,type:String}),Object(n.f)("design:type",String)],k.prototype,"imagegroup",void 0),Object(n.c)([Object(c.Prop)({default:"",type:String}),Object(n.f)("design:type",String)],k.prototype,"offer",void 0),Object(n.c)([Object(c.Prop)({default:"",type:String}),Object(n.f)("design:type",String)],k.prototype,"offerurl",void 0),Object(n.c)([Object(c.Prop)({default:"",type:String}),Object(n.f)("design:type",String)],k.prototype,"offerprice",void 0),Object(n.c)([Object(c.Prop)({default:"",type:String}),Object(n.f)("design:type",String)],k.prototype,"offermerchant",void 0),Object(n.c)([Object(c.Prop)({default:"",type:String}),Object(n.f)("design:type",String)],k.prototype,"techobjectinfo",void 0),Object(n.c)([Object(c.Prop)({default:""}),Object(n.f)("design:type",String)],k.prototype,"contentId",void 0);var x=k=Object(n.c)([Object(c.Component)({components:{CmsImage:y.default,CommerceBuyButton:j.default}}),Object(l.a)("track-click",Object(f.a)(d.a))],k),I=(r(1733),r(117)),component=Object(I.a)(x,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"c-shortcodeCommercePromo u-flexbox u-grid-gap-medium g-outer-spacing-bottom-medium",class:{"c-shortcodeCommercePromo-noSeller":!e.winningOfferUrl},attrs:{"data-location":"CARDS",section:"commerce-promo"}},[t("div",{staticClass:"c-shortcodeCommercePromo_content u-flexbox-column",attrs:{section:"button"}},[e.isInternalLink?t("a",{directives:[{name:"track-click",rawName:"v-track-click",value:{outboundUrl:e.$attributeRef.href,webElement:{name:"demand-driver-unit",text:e.hed,elementType:"LINK",location:e.$attributeRef.location,htmlId:e.$attributeRef.section}},expression:"{\n outboundUrl: $attributeRef.href,\n webElement: {\n name: 'demand-driver-unit',\n text: hed,\n elementType: 'LINK',\n location: $attributeRef.location,\n htmlId: $attributeRef.section\n }\n }"}],staticClass:"c-shortcodeCommercePromo_hed g-text-xsmall g-text-bold g-outer-spacing-bottom-xsmall",attrs:{href:e.winningOfferUrl,rel:e.relAttribute,target:"_blank"}},[t("span",[e._v(e._s(e.hed))])]):e.winningOfferUrl?t("CommerceBuyButton",{staticClass:"c-shortcodeCommercePromo_hed g-text-xsmall g-text-bold g-outer-spacing-bottom-medium",attrs:{"button-text":e.hed,"button-url":e.winningOfferUrl,"button-price":e.winningOfferTrackingData.productPrice,"lead-click-data":e.winningOfferTrackingData,"is-link":!0,"has-offer":!e.useReseller,"content-id":e.contentId,"track-product-viewed":!0,variant:"commerce-promo|button"}},[t("span",[e._v(e._s(e.hed))])]):t("span",{staticClass:"c-shortcodeCommercePromo_hed g-text-xsmall g-text-bold g-outer-spacing-bottom-xsmall"},[e._v(e._s(e.hed))]),e._v(" "),e.winningOfferUrl?t("CommerceBuyButton",{staticClass:"c-shortcodeCommercePromo_button",attrs:{"button-text":e.buttonText,"button-size":"small","button-url":e.winningOfferUrl,"button-price":e.winningOfferTrackingData.productPrice,"lead-click-data":e.winningOfferTrackingData,"has-offer":!e.useReseller,"article-id":e.contentId,variant:"commerce-promo|button"}}):e._e()],1),e._v(" "),e.image?[e.isInternalLink?t("a",{directives:[{name:"track-click",rawName:"v-track-click",value:{outboundUrl:e.$attributeRef.href,webElement:{name:"demand-driver-unit",text:e.hed,elementType:"LINK",location:e.$attributeRef.location,htmlId:e.$attributeRef.section}},expression:"{\n outboundUrl: $attributeRef.href,\n webElement: {\n name: 'demand-driver-unit',\n text: hed,\n elementType: 'LINK',\n location: $attributeRef.location,\n htmlId: $attributeRef.section\n }\n }"}],attrs:{href:e.winningOfferUrl,section:"image",rel:e.relAttribute,target:"_blank"}},[t("CmsImage",{staticClass:"c-shortcodeCommercePromo_image",attrs:{image:e.image,"lazy-load":!0,size:e.imageSize}})],1):e.winningOfferUrl?t("CommerceBuyButton",{attrs:{"button-text":e.hed,"button-url":e.winningOfferUrl,"button-price":e.winningOfferTrackingData.productPrice,"lead-click-data":e.winningOfferTrackingData,"is-link":!0,"has-offer":!e.useReseller,"content-id":e.contentId,variant:"commerce-promo|image"}},[t("CmsImage",{staticClass:"c-shortcodeCommercePromo_image",attrs:{image:e.image,"lazy-load":!0,size:e.imageSize}})],1):t("CmsImage",{staticClass:"c-shortcodeCommercePromo_image",attrs:{image:e.image,"lazy-load":!0,size:e.imageSize}})]:e._e()],2)}),[],!1,null,null,null);t.default=component.exports},772:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));r(3),r(5),r(10);var o=r(325);function n(e){return{bind:e.bind?function(){return e.bind(...arguments)}:()=>{},componentUpdated:e.componentUpdated?function(){return e.componentUpdated(...arguments)}:()=>{},inserted:e.inserted?function(){return e.inserted(...arguments)}:()=>{},unbind:e.unbind?function(){return e.unbind(...arguments)}:()=>{},update:e.update?function(){return e.update(...arguments)}:()=>{}}}function c(e,t){var r=new t;return Object(o.createDecorator)((t=>{t.directives=(null==t?void 0:t.directives)||{},t.directives[e]=n(r)}))}},773:function(e,t,r){"use strict";r.r(t);var o=r(6),n=(r(3),r(5),r(508),r(143),r(22),r(27),r(24),r(78),r(0)),c=r(769),l=r(777),d=class extends c.Vue{get imageHtml(){return'').concat(this.alt,'')}};Object(n.c)([Object(c.Prop)({default:"",type:String}),Object(n.f)("design:type",String)],d.prototype,"src",void 0),Object(n.c)([Object(c.Prop)({default:"",type:String}),Object(n.f)("design:type",String)],d.prototype,"alt",void 0),Object(n.c)([Object(c.Prop)({default:null,type:[Number,String]}),Object(n.f)("design:type",Object)],d.prototype,"height",void 0),Object(n.c)([Object(c.Prop)({default:null,type:[Number,String]}),Object(n.f)("design:type",Object)],d.prototype,"width",void 0);var m=d=Object(n.c)([Object(c.Component)({})],d),h=r(117),f=Object(h.a)(m,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("noscript",{domProps:{innerHTML:e._s(e.imageHtml)}})}),[],!1,null,null,null).exports,v=r(200);function O(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}function y(e){for(var i=1;i{var image="small"===t&&this.hasMobileImage?this.mobileImage:this.image;this.validImage(image)&&e.push({maxwidth:"".concat(this.$device.breakpointForSize(t).max,"w"),mediaquery:"(max-width: ".concat(this.$device.breakpointForSize(t).max,"px)"),url:this.imageUrl(image,this.sizes[t])})})),e}get baseImageUrl(){var e=this.imageSize;return this.image?this.imageUrl(this.image,e):null}get gifvPosterUrl(){return this.$image(y(y({},this.image),{},{size:this.imageSize}),{frame:"1"})}get imageHeight(){var e,t,r;return this.imageConfigHeight>0?this.imageConfigHeight:this.imageConfigWidth&&(null===(e=this.image)||void 0===e?void 0:e.height)&&(null===(t=this.image)||void 0===t?void 0:t.width)?this.imageConfigWidth*(this.image.height/this.image.width):(null===(r=this.image)||void 0===r?void 0:r.height)||306}get imageRadius(){return this.hasBorderRadius?"c-cmsImage_hasBorderRadius":null}get imageWidth(){var e;return this.imageConfigWidth?this.imageConfigWidth:(null===(e=this.image)||void 0===e?void 0:e.width)||456}get isGifv(){var e;return this.$services.isFeatureEnabled("gifv")&&this.validImage(this.image)&&(null===(e=this.baseImageUrl)||void 0===e?void 0:e.includes(".gif"))}get imageAltText(){return this.altText||this.image.alt}get imageConfig(){return v.a.sizes[this.imageSize]}get imageConfigHeight(){var e,t,r;return(null===(e=this.imageConfig)||void 0===e?void 0:e.height)||(null===(r=null===(t=this.imageConfig)||void 0===t?void 0:t.params)||void 0===r?void 0:r.height)}get imageConfigWidth(){var e,t,r;return(null===(e=this.imageConfig)||void 0===e?void 0:e.width)||(null===(r=null===(t=this.imageConfig)||void 0===t?void 0:t.params)||void 0===r?void 0:r.width)}get imageSize(){return this.size||(this.sizes?this.sizes.large||this.sizes.medium||this.sizes.small:void 0)}onImgLoad(){this.isLoaded=!0}created(){this.lazyEnabled=this.lazyLoad}imageUrl(image,e){return this.$image(y(y({},image),{size:e}))}validImage(image){return this.$isValidImage(image)}};Object(n.c)([Object(c.Prop)({default:"",type:String}),Object(n.f)("design:type",String)],j.prototype,"altText",void 0),Object(n.c)([Object(c.Prop)({default:null,type:Object}),Object(n.f)("design:type",Object)],j.prototype,"image",void 0),Object(n.c)([Object(c.Prop)({default:!1,type:Boolean}),Object(n.f)("design:type",Boolean)],j.prototype,"lazyLoad",void 0),Object(n.c)([Object(c.Prop)({default:null,type:Object}),Object(n.f)("design:type",Object)],j.prototype,"mobileImage",void 0),Object(n.c)([Object(c.Prop)({default:!1,type:[Boolean,String]}),Object(n.f)("design:type",Object)],j.prototype,"preload",void 0),Object(n.c)([Object(c.Prop)({default:"",type:String}),Object(n.f)("design:type",String)],j.prototype,"size",void 0),Object(n.c)([Object(c.Prop)({default:null,type:Object}),Object(n.f)("design:type",Object)],j.prototype,"sizes",void 0),Object(n.c)([Object(c.Prop)({default:null,type:Boolean}),Object(n.f)("design:type",Boolean)],j.prototype,"hasBorderRadius",void 0);var w=j=Object(n.c)([Object(c.Component)({components:{NoscriptImage:f}})],j),P=(r(779),Object(h.a)(w,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"c-cmsImage"},[e.validImage(e.image)&&e.isGifv?t("div",{staticClass:"c-cmsImage_video"},[t("video",{attrs:{src:e.shouldLoad?e.baseImageUrl:"",poster:e.gifvPosterUrl,width:e.imageWidth,height:e.imageHeight,autoplay:"",loop:"",muted:"",playsinline:"",disableRemotePlayback:""},domProps:{muted:!0}})]):e.validImage(e.image)?[t("picture",{staticClass:"c-cmsImage_image",class:{"c-cmsImage-loaded":e.isLoaded||!e.lazyLoad}},[e._l(e.imageSources,(function(source,r){return t("source",{key:r,attrs:{media:source.mediaquery,srcset:source.url,alt:e.imageAltText}})})),e._v(" "),t("img",{class:e.imageRadius,attrs:{src:e.shouldLoad?e.baseImageUrl:"",alt:e.imageAltText,height:e.imageHeight,width:e.imageWidth,loading:e.lazyLoad?"lazy":void 0},on:{load:e.onImgLoad}}),e._v(" "),e.lazyLoad&&e.baseImageUrl?t("NoscriptImage",{attrs:{src:e.baseImageUrl,alt:e.imageAltText,height:e.imageHeight,width:e.imageWidth}}):e._e()],2)]:e._e()],2)}),[],!1,null,null,null));t.default=P.exports},774:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));r(31);var o=new(r(8).a)("observer");class n{constructor(e,t){if(!window.IntersectionObserver)return o.warn("This browser does not support IntersectionObserver"),this;e.rootMargin=e.rootMargin||"0px",e.singleIntersection=!!e.singleIntersection&&e.singleIntersection,e.triggerOn=e.triggerOn?e.triggerOn:"top";try{return this.create(e,t)}catch(t){return o.error("Failed to construct IntersectionObserver: ".concat(t.toString()),e),this}}create(e,t){if(o.log("create options",e),this.el=e.el,t)return Array.isArray(this.el)&&(this.lastTriggerPosition=[]),this.observer=new IntersectionObserver(((r,n)=>{r.forEach((r=>{var n,c,l=!0,data=(null==e?void 0:e.data)||{};if(Array.isArray(this.el)){var d=this.el.findIndex((e=>e===(null==r?void 0:r.target))),m=null===(n=this.lastTriggerPosition)||void 0===n?void 0:n[d];l=void 0===m||m>r.boundingClientRect.y,this.lastTriggerPosition[d]=r.boundingClientRect.y,data=(null===(c=null==e?void 0:e.data)||void 0===c?void 0:c[d])||{}}else l=void 0===this.lastTriggerPosition||this.lastTriggerPosition>r.boundingClientRect.y,this.lastTriggerPosition=r.boundingClientRect.y;var h=l?"down":"up",f=!1;if(o.log(h,r),e.singleIntersection?"top"===e.triggerOn?"down"===h&&r.isIntersecting?f=!0:"up"!==h||r.isIntersecting||(f=!0):"bottom"===e.triggerOn&&("down"!==h||r.isIntersecting?"up"===h&&r.isIntersecting&&(f=!0):f=!0):r.isIntersecting&&(f=!0),f){var v={direction:h,data:data,observer:this,entry:r};o.log(h,r,this),t(v)}}))}),e),this.enable(),this;o.warn("No handler specified on Intersection Observer")}enable(){this.observer&&this.el&&(Array.isArray(this.el)?this.el.forEach((e=>{this.observer.observe(e)})):this.observer.observe(this.el))}disable(){this.observer&&this.el&&(Array.isArray(this.el)?this.el.forEach((e=>{this.observer.unobserve(e)})):this.observer.unobserve(this.el))}destroy(){this.observer&&this.el&&(this.disable(),this.observer.disconnect(),this.observer=null,this.el=null)}refresh(){this.observer&&this.el&&(this.disable(),this.enable())}}},775:function(e,t,r){var content=r(780);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,r(243).default)("3c8bc705",content,!0,{sourceMap:!1})},776:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var o=r(326);class n{bind(e,t,r){var{arg:n,value:c}=t,{context:l}=r;this.action=()=>{var t,r=l.$track(this.eventType);(t="function"==typeof c?r.create(c):r.with(c).create()).trackingData=o.a.replaceAttributeReferences(e,t.trackingData),t.fire()},e.addEventListener(n||"mousedown",this.action)}unbind(e,t){var{arg:r,value:o}=t;e.removeEventListener(r||"mousedown",this.action)}}function c(e){return class extends n{get eventType(){return e}}}},777:function(e,t,r){"use strict";var o=r(7),n=(r(3),r(5),r(0)),c=r(769),l=r(8),d=r(774),m=new l.a("lazyLoad"),h=class extends c.Vue{constructor(){super(...arguments),this.lazyEnabled=!0,this.lazyLoaded=!1,this.rootMargin="50% 0px"}mounted(){var e=this;return Object(o.a)((function*(){yield c.Vue.nextTick(),"undefined"!=typeof window&&e.lazyEnabled&&(e.lazyObserver=new d.a({rootMargin:e.rootMargin,el:e.$el,threshold:0},(data=>{m.log(e.$el,data),data.direction&&(e.lazyLoaded=!0,e.lazyObserver.destroy())})))}))()}beforeDestroy(){this.lazyObserver&&this.lazyObserver.destroy()}};h=Object(n.c)([c.Component],h),t.a=h},779:function(e,t,r){"use strict";r(775)},780:function(e,t,r){var o=r(242)((function(i){return i[1]}));o.push([e.i,".c-cmsImage,.c-cmsImage img{display:block;width:100%;height:auto;max-width:100%}.c-cmsImage_image{opacity:0}.c-cmsImage_video video{width:100%;height:100%}.c-cmsImage-loaded{opacity:1}.c-cmsImage_hasBorderRadius{border-radius:.25rem}",""]),o.locals={},e.exports=o},782:function(e,t,r){"use strict";r.d(t,"a",(function(){return v}));var o=r(6),n=r(0),c=r(33),l=r(38),d=r(25),m=r(58),h=r(29);function f(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}var v=class extends m.a{constructor(e){super(e),this.services=["tagular"]}get defaults(){return{"@type":"redventures.ecommerce.v1.ProductClicked"}}transform(data){var base=super.transform(data);if(this.additionalData.tagular=base,data.outboundUrl){var e=data.actionOutcome||this.getLinkActionOutcome(data.outboundUrl);"INTERNALLINK"===e&&data.outboundUrl===h.a.getPath(data.outboundUrl)&&(data.outboundUrl=h.a.liveUrl(data.outboundUrl)),data.actionOutcome=e}return data.customDimensions&&(data.customDimensions=data.customDimensions.filter((e=>e.value))),this.additionalData.tagular=function(e){for(var i=1;i2&&void 0!==arguments[2]?arguments[2]:l,o=e;if(e.includes(t)){e=e.replace(/(dtp|mwb)-oo/,"$1");var n=new RegExp(t,"g");return e.replace(n,r[0])}return o},v=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,o=e;if(e.includes(r[0])||e.includes(r[1])){var n=new RegExp("(".concat(r.join("|"),")"),"g");return e.replace(n,t)}return o},O=(e,t)=>{var r=e;try{c.log("Original commerce URL: ",r);var o=e.includes("amazon.com"),f=e.startsWith("https://amazon")||e.startsWith("https://www.amazon"),v=(e=>{var t="dtp";return e.device===n.b.Mobile&&(t="mwb"),t})(t),O=(e=>{var t,r,o,n;return(null===(t=e.topicPaths)||void 0===t?void 0:t.includes("home-internet"))?"cb":(null===(r=e.topicPaths)||void 0===r?void 0:r.includes("home-energy-and-utilities"))?"ce":(null===(o=e.topicPaths)||void 0===o?void 0:o.includes("personal-finance"))?"cm":(null===(n=e.topicPaths)||void 0===n?void 0:n.includes("sleep"))?"cs":"cn"})(t),y=O+"-"+l[0]+"-"+v,j=!1;if((e=f?"https://assoc-redirect.amazon.com/g/r/"+e:e).includes("[subid_value]")?(e=e.replace("[subid_value]",y),j=!0):e.includes("subid_value")&&(e=e.replace("subid_value",y),j=!0),e.includes(d)){var w=encodeURIComponent("https://www.cnet.com"+t.canonicalPath);e=e.replace(d,w)}if(e.includes(m)){var P=encodeURIComponent(t.articleName);e=e.replace(m,P)}var C=new URL(e),_=C.searchParams;if(o){var k=l[0]+"|"+t.guid+"|"+v+"|"+O;_.delete("tag"),_.append("tag","cnet-buy-button-20"),_.delete("ascsubtag"),_.append("ascsubtag",k),j=!0}var x=h[C.host];!j&&x&&_.append(x,y);var I=C.toString();return c.log("Modified Commerce URL: ",I),I}catch(t){return c.error("could not construct URL: '".concat(e,"' "),t),r}}},793:function(e,t,r){"use strict";r.r(t),r.d(t,"CommerceBuyButton",(function(){return _}));r(31),r(22),r(27);var o=r(0),n=r(769),c=r(772),l=r(782),d=r(796),m=r(326),h=r(776),f=r(774),v=(r(3),r(5),r(24),r(40),r(794),r(93),r(144)),O=r(8),y=r(792),j=new O.b("commerceUrlModifier"),w=class extends n.Vue{constructor(){super(...arguments),this.modifiedCommerceUrl="",this.performanceConsentGranted=!1,this._uuid="",this.stateMappings={articleName:this.$store.getters["tracking/data"].articleTitle,canonicalPath:this.$store.getters["routeHistory/getCurrentPath"],device:this.$store.getters.device,guid:this.$store.getters["tracking/viewGuid"]||"-",topicPaths:this.$store.getters["tracking/dataByKey"]("primaryTopics")}}get originalUrl(){return""}checkCohesionConsent(){var e,t;"function"==typeof(null===(e=null===window||void 0===window?void 0:window.cohesion)||void 0===e?void 0:e.consent)?this.performanceConsentGranted=null===(t=window.cohesion.consent("list"))||void 0===t?void 0:t.includes("C0002"):this.performanceConsentGranted=!1}injectCorrelationId(e){if(this._uuid=this.performanceConsentGranted?Object(v.v4)().replaceAll("-",""):this.$store.getters["tracking/data"].contentId.replaceAll("-",""),this.modifiedCommerceUrl=Object(y.c)(e,this._uuid),!this.performanceConsentGranted){var t=new RegExp(this._uuid+"-(dtp|mwb)","g");this.modifiedCommerceUrl=this.modifiedCommerceUrl.replace(t,"$&-oo")}j.log("Button click, consent status: ".concat(this.performanceConsentGranted)),setTimeout((()=>this.resetCommerceUrl(this.modifiedCommerceUrl)),500)}resetCommerceUrl(e){this.modifiedCommerceUrl=Object(y.d)(e,this._uuid)}created(){this.modifiedCommerceUrl=this.originalUrl}beforeMount(){this.updateModifiedCommerceUrl()}mounted(){window.cohesion&&window.cohesion("ready",(()=>{window.cohesion("consent:ready",(()=>{this.checkCohesionConsent(),j.log("Initial consent: ".concat(this.performanceConsentGranted))})),window.cohesion("consent:changed",(()=>{this.checkCohesionConsent(),j.log("Consent changed: ".concat(this.performanceConsentGranted))}))}))}updateModifiedCommerceUrl(){this.originalUrl&&(this.modifiedCommerceUrl=Object(y.b)(this.originalUrl,this.stateMappings))}};Object(o.c)([Object(n.Watch)("originalUrl"),Object(o.f)("design:type",Function),Object(o.f)("design:paramtypes",[]),Object(o.f)("design:returntype",void 0)],w.prototype,"updateModifiedCommerceUrl",null);var P=w=Object(o.c)([n.Component],w),C=r(806),_=class extends n.Vue{get linkHref(){return this.buttonHref}get buttonHref(){return this.shouldMonetize?this.modifiedCommerceUrl:this.buttonUrl}get buttonColor(){return this.$abtest.isUserInActiveTestAndBucket("btncolor_test","test")?"t-ctaAbcolorTest-lime":"o-button-".concat(this.buttonTheme)}get buttonClasses(){return"c-commerceBuyButton o-button ".concat(this.buttonColor," o-button-").concat(this.buttonSize," o-button-smallRound")}get correlationId(){return this._uuid}get formatSubType(){var e=this.isLink?"in-text link":"in-text button";return this.isImage&&(e=null),this.subtype||e}get originalUrl(){return this.buttonUrl}get leadType(){return this.hasOffer?"manual":"mlst"}get formatType(){var e=this.isLink?"LINK":"BUTTON";return this.isImage&&(e="IMAGE"),e}get productData(){var e,t,r,o,n,c,l,d;return{brand:(null===(t=null===(e=this.leadClickData)||void 0===e?void 0:e.productManufacturer)||void 0===t?void 0:t.toString())||(null===(r=this.leadClickData)||void 0===r?void 0:r.brand)||null,category:this.leadType,coupon:(null===(o=this.leadClickData)||void 0===o?void 0:o.coupon)||null,formatSubtype:this.formatSubType,formatType:this.formatType,location:this.$attributeRef.location,name:(null===(n=this.leadClickData)||void 0===n?void 0:n.productName)||null,pageId:this.contentId||null,position:this.$attributeRef.position,price:Number(this.buttonPrice)||0,productId:(null===(c=this.leadClickData)||void 0===c?void 0:c.productId)||null,quantity:1,sku:(null===(l=this.leadClickData)||void 0===l?void 0:l.productSku)||"",text:this.buttonText,upc:(null===(d=this.leadClickData)||void 0===d?void 0:d.productSku)||"",variant:this.variant||this.$attributeRef.section}}get customDimensionsData(){var e,t,r,o,n=[{key:"shortcodeId",value:null===(e=this.leadClickData)||void 0===e?void 0:e.shortcodeId},{key:"shortcodeType",value:null===(t=this.leadClickData)||void 0===t?void 0:t.shortcodeType}];if(this.trackProductViewed&&this.allLeadsData){var c=[],l=[];this.allLeadsData.forEach(((e,t)=>{c=c.concat({key:"rawUrl_".concat(t),value:null==e?void 0:e.rawUrl}),l=l.concat({key:"vendor_".concat(t),value:null==e?void 0:e.resellerName})})),n=n.concat(c,l)}else n=n.concat([{key:"rawUrl",value:(null===(r=this.leadClickData)||void 0===r?void 0:r.rawUrl)||this.buttonUrl},{key:"vendor",value:null===(o=this.leadClickData)||void 0===o?void 0:o.resellerName}]);return n}get productClickedData(){return{actionOutcome:"EXTERNALLINK",correlationId:this._uuid,outboundUrl:this.buttonHref,product:this.productData,customDimensions:this.customDimensionsData}}get productViewedData(){return{product:this.productData,customDimensions:this.customDimensionsData}}get isEnabled(){var e;return!(this.$abtest.isUserInActiveTestAndBucket("bb_super","test")&&!this.isLink&&(null===(e=this.preferredResellers)||void 0===e?void 0:e.some((e=>"Best Buy"===e.name)))&&!this.buttonText.includes("Best Buy"))}commerceButtonClicked(){this.$nuxt.$emit("show_mattress_exit_modal")}fireProductViewed(){if(this.trackProductViewed){var e=m.a.replaceAttributeReferences(this.$el,this.productViewedData);this.$track(d.a).with(e).fire()}}created(){var e;this.buttonUrl&&Object(C.c)(this.buttonUrl)?e={cm07:!0}:this.buttonPrice&&!this.isLink&&(e={cm01:!0}),this.$store.dispatch("tracking/setPageComponents",e)}mounted(){this.trackProductViewed&&(this.inViewportObserver=new f.a({rootMargin:"0px",el:this.$el,threshold:.5},(()=>{this.inViewportObserver.destroy(),this.fireProductViewed()})))}beforeDestroy(){this.inViewportObserver&&this.inViewportObserver.destroy()}};Object(o.c)([Object(n.Getter)("tracking/data"),Object(o.f)("design:type",Object)],_.prototype,"data",void 0),Object(o.c)([Object(n.Prop)({default:"",type:String}),Object(o.f)("design:type",String)],_.prototype,"buttonText",void 0),Object(o.c)([Object(n.Prop)({default:"",type:String}),Object(o.f)("design:type",String)],_.prototype,"buttonUrl",void 0),Object(o.c)([Object(n.Prop)({default:"",type:[Number,String]}),Object(o.f)("design:type",Object)],_.prototype,"buttonPrice",void 0),Object(o.c)([Object(n.Prop)({default:"primary",type:String}),Object(o.f)("design:type",String)],_.prototype,"buttonTheme",void 0),Object(o.c)([Object(n.Prop)({default:"medium",type:String}),Object(o.f)("design:type",String)],_.prototype,"buttonSize",void 0),Object(o.c)([Object(n.Prop)({default:!1}),Object(o.f)("design:type",Boolean)],_.prototype,"trackProductViewed",void 0),Object(o.c)([Object(n.Prop)({default:null,type:Boolean}),Object(o.f)("design:type",Boolean)],_.prototype,"isImage",void 0),Object(o.c)([Object(n.Prop)({default:null,type:Boolean}),Object(o.f)("design:type",Boolean)],_.prototype,"isLink",void 0),Object(o.c)([Object(n.Prop)({default:!1,type:Boolean}),Object(o.f)("design:type",Boolean)],_.prototype,"hasOffer",void 0),Object(o.c)([Object(n.Prop)({default:!0}),Object(o.f)("design:type",Boolean)],_.prototype,"shouldMonetize",void 0),Object(o.c)([Object(n.Prop)({default:null}),Object(o.f)("design:type",String)],_.prototype,"subtype",void 0),Object(o.c)([Object(n.Prop)({default:null}),Object(o.f)("design:type",Object)],_.prototype,"leadClickData",void 0),Object(o.c)([Object(n.Prop)({default:null}),Object(o.f)("design:type",Array)],_.prototype,"allLeadsData",void 0),Object(o.c)([Object(n.Prop)({default:""}),Object(o.f)("design:type",String)],_.prototype,"contentId",void 0),Object(o.c)([Object(n.Prop)({default:null}),Object(o.f)("design:type",String)],_.prototype,"variant",void 0),Object(o.c)([Object(n.Prop)({default:null,type:Array}),Object(o.f)("design:type",Array)],_.prototype,"preferredResellers",void 0);var k=_=Object(o.c)([Object(n.Component)({mixins:[P]}),Object(c.a)("track-click",Object(h.a)(l.a))],_),x=(r(815),r(117)),component=Object(x.a)(k,(function(){var e=this,t=e._self._c;e._self._setupProxy;return e.isEnabled?t("a",{directives:[{name:"track-click",rawName:"v-track-click",value:t=>(t.trackingData=e.productClickedData,t),expression:"(event) => {\n event.trackingData = productClickedData;\n return event;\n }"}],class:{[e.buttonClasses]:!e.isLink},attrs:{href:e.linkHref,rel:"noopener nofollow",target:"_blank"},on:{mousedown:function(t){return e.injectCorrelationId(e.modifiedCommerceUrl)},click:e.commerceButtonClicked}},[e._t("default",(function(){return[e._v(e._s(e.buttonText))]}))],2):e._e()}),[],!1,null,null,null);t.default=component.exports},794:function(e,t,r){r(799)},795:function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var o=r(0),n=r(33),c=r(38),l=r(25),d=r(58),m=class extends d.a{constructor(e){super(e),this.services=["tagular"]}get defaults(){return{"@type":"redventures.usertracking.v3.ElementViewed"}}};m=Object(o.c)([Object(n.a)(l.a.Transient),Object(o.g)(0,c.a),Object(o.f)("design:paramtypes",[Object])],m)},796:function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var o=r(6),n=r(0),c=r(33),l=r(38),d=r(25),m=r(58);function h(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}var f=class extends m.a{constructor(e){super(e),this.services=["tagular"]}get defaults(){return{"@type":"redventures.ecommerce.v1.ProductViewed"}}transform(data){var base=super.transform(data);return this.additionalData.tagular=base,data.customDimensions&&(data.customDimensions=data.customDimensions.filter((e=>e.value))),this.additionalData.tagular=function(e){for(var i=1;ie.length?-1:""===t?r:_(e,t,r)};o({target:"String",proto:!0},{replaceAll:function(e,t){var r,o,c,j,U,S,R,T,L,z=l(this),M=0,$=0,N="";if(!m(e)){if((r=h(e))&&(o=f(l(O(e))),!~_(o,"g")))throw C("`.replaceAll` does not allow non-global regexes");if(c=v(e,P))return n(c,e,z,t);if(w&&r)return k(f(z),e,t)}for(j=f(z),U=f(e),(S=d(t))||(t=f(t)),R=U.length,T=I(1,R),M=D(j,U,0);-1!==M;)L=S?f(t(U,M,j)):y(U,j,M,[],void 0,t),N+=x(j,$,M)+L,$=M+R,M=D(j,U,M+T);return $1&&void 0!==arguments[1]?arguments[1]:{},d={utm_campaign:null!==(t=l.utm_campaign)&&void 0!==t?t:"",utm_content:null!==(r=l.utm_content)&&void 0!==r?r:"",utm_medium:"referral",utm_source:"roadshow",u1:l.correlation_id,ref_url:l.ref_url,referrer_id:null!==(c=l.referrer_id)&&void 0!==c?c:""},m="/roadshow/roadshow-auto-buying-program/";if(e){var h,f=n(e);f&&null!==(h=f.model)&&void 0!==h&&h.cdId?m="https://roadshow.truecar.com/redirect-link.html?linkto=prices-new&chromeMake=".concat(f.make.slug,"&chromeTrimId=").concat(f.model.cdId,"&").concat(o.a.stringifyObject(d)):f&&(m="https://roadshow.truecar.com/prices-new/".concat(f.make.slug,"/").concat(f.model.slug,"-summary/?").concat(o.a.stringifyObject(d)))}return m}function l(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c={utm_campaign:null!==(e=n.utm_campaign)&&void 0!==e?e:"",utm_content:null!==(t=n.utm_content)&&void 0!==t?t:"",utm_medium:"referral",utm_source:"roadshow",u1:n.correlation_id,ref_url:n.ref_url,referrer_id:null!==(r=n.referrer_id)&&void 0!==r?r:""};return"https://roadshow.truecar.com/used-cars-for-sale/?".concat(o.a.stringifyObject(c))}function d(e){return e.includes("roadshow.truecar.com")}},815:function(e,t,r){"use strict";r(787)},816:function(e,t,r){var o=r(242)((function(i){return i[1]}));o.push([e.i,".c-commerceBuyButton{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}",""]),o.locals={},e.exports=o},830:function(e,t,r){"use strict";t.a={preferredResellers(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return""!==r&&e&&e.length>0&&(null==e?void 0:e.some((e=>e.name===r)))&&(e=e.filter((e=>e.name===r))),e&&0!==e.length?e.slice(0,t):null}}},831:function(e,t,r){"use strict";var o=r(6),n=(r(31),r(3),r(5),r(169),r(107),r(173),r(509),r(0)),c=r(769),l=r(792);function d(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,r)}return t}function m(e){for(var i=1;i0)}get hasCreditCardOffer(){var e,t,r;return!!(null===(r=null===(t=null===(e=this.extraData)||void 0===e?void 0:e.creditCardData)||void 0===t?void 0:t.attributes)||void 0===r?void 0:r.link)}get monetizedUrl(){var e;return(null===(e=this.extraData)||void 0===e?void 0:e.monetizedUrl)||null}get offerUrl(){var e;return(null===(e=this.extraData)||void 0===e?void 0:e.offerUrl)||null}get productPrice(){var e,t;return this.useReseller?(null===(e=this.preferredReseller)||void 0===e?void 0:e.price)/100:Number(null===(t=this.merchantOffer)||void 0===t?void 0:t.offerPrice)}get resellerName(){var e,t;return(this.useReseller?null===(e=this.preferredReseller)||void 0===e?void 0:e.name:null===(t=this.merchantOffer)||void 0===t?void 0:t.offerMerchant)||null}get techProdOfferText(){var e,t,r;return(null===(r=null===(t=null===(e=this.techProd)||void 0===e?void 0:e.attributes)||void 0===t?void 0:t.find((e=>"offer-link-text"===e.slug)))||void 0===r?void 0:r.val.toString())||null}get techProdOfferUrl(){var e,t,r;return(null===(r=null===(t=null===(e=this.techProd)||void 0===e?void 0:e.attributes)||void 0===t?void 0:t.find((e=>"offer-link-url"===e.slug)))||void 0===r?void 0:r.val.toString())||null}get productFamily(){var e,t;return(null===(t=null===(e=this.techProd)||void 0===e?void 0:e.family)||void 0===t?void 0:t[0])||{uuid:"",name:""}}get promoText(){var e,t,r=null===(t=null===(e=this.techProd)||void 0===e?void 0:e.attributes)||void 0===t?void 0:t.find((e=>"promo-text"===e.slug));return null==r?void 0:r.val[0]}get techProd(){var e;return(null===(e=this.extraData)||void 0===e?void 0:e.techProd)||null}get usePricing(){var e;return(null===(e=this.extraData)||void 0===e?void 0:e.usePricing)||!1}get useReseller(){return!(!this.hasReseller||!this.techProd||!this.usePricing&&(this.hasMerchantOffer||this.hasOfferLink))}get allLeadsTrackingData(){var e=this.useReseller?this.preferredResellers:this.merchantOffers,t=[];for(var r of e)t.push({rawUrl:this.useReseller?null==r?void 0:r.url:null==r?void 0:r.rawUrl,resellerName:this.useReseller?null==r?void 0:r.name:null==r?void 0:r.offerMerchant});return t}get creditCardOffer(){var e,t,r,o,n,c,d;try{c=new URL(null===(e=this.merchantOffer)||void 0===e?void 0:e.url)}catch(e){}if(null===(t=null==c?void 0:c.hostname)||void 0===t?void 0:t.endsWith("amazon.com"))return c.href;try{d=new URL(null===(n=null===(o=null===(r=this.extraData)||void 0===r?void 0:r.creditCardData)||void 0===o?void 0:o.attributes)||void 0===n?void 0:n.link)}catch(e){}return d&&"undefined"!=typeof window&&window.cohesion&&window.cohesion("ready",(()=>{var e=window._Cohesion,t=d.searchParams;t.append("c_correlation_id",l.a[0]),t.append("c_tenant_id",e.tenantId),t.append("c_anonymous_id",e.anonymousId),t.append("c_session_id",e.sessionId),t.append("c_instance_id",e.instanceId)})),null==d?void 0:d.href}get winningOfferUrl(){var e,t;return this.hasCreditCardOffer?this.creditCardOffer:this.techProdOfferUrl?this.techProdOfferUrl:this.useReseller?(null===(e=this.preferredReseller)||void 0===e?void 0:e.url)||null:this.monetizedUrl?this.monetizedUrl:this.hasMerchantOffer?(null===(t=this.merchantOffer)||void 0===t?void 0:t.url)||null:this.offerUrl?this.offerUrl:null}get winningOfferTrackingData(){var e=this.useReseller?this.preferredReseller:this.merchantOffer;return this.getLeadTrackingData(e,this.useReseller)}shortcodeType(e){var t={commercelink:"link",commercelinkshortcode:"link",cnetlisticle:"listicle",cross_content_listicle:"x-listicle",commercepromo:"promo",buybutton:"button",reviewcard:"reviewcard"};return t[e]?t[e]:e}getLeadTrackingData(e){var t,r,o,n,c,l,d,h,f,v,O,y,j,w,P,C,_,k,x,I,D,U,S,R,T,L=arguments.length>1&&void 0!==arguments[1]&&arguments[1],data={brand:null==e?void 0:e.offerMerchant,coupon:this.promoText,productCpc:"",productId:(null===(t=this.techProd)||void 0===t?void 0:t.id)||"",productManufacturer:(null===(o=null===(r=this.techProd)||void 0===r?void 0:r.manufacturer)||void 0===o?void 0:o.name)||"",productSeriesId:(null===(n=this.productFamily)||void 0===n?void 0:n.uuid)||"",productSeriesName:(null===(c=this.productFamily)||void 0===c?void 0:c.name)||"",productSku:Array.isArray(null===(d=null===(l=this.techProd)||void 0===l?void 0:l.product)||void 0===d?void 0:d.sku)&&(null===(v=null===(f=null===(h=this.techProd)||void 0===h?void 0:h.product)||void 0===f?void 0:f.sku)||void 0===v?void 0:v.length)>0?null===(j=null===(y=null===(O=this.techProd)||void 0===O?void 0:O.product)||void 0===y?void 0:y.sku)||void 0===j?void 0:j[0]:(null===(P=null===(w=this.techProd)||void 0===w?void 0:w.product)||void 0===P?void 0:P.sku)||"",productSlug:(null===(_=null===(C=this.techProd)||void 0===C?void 0:C.product)||void 0===_?void 0:_.slug)||"",resellerId:"",resellerTtag:"",shortcodeId:(null===(k=this.extraData)||void 0===k?void 0:k.uuid)||"",shortcodeType:this.shortcodeType(null!==(I=null===(x=this.extraData)||void 0===x?void 0:x.shortcodeType)&&void 0!==I?I:"")};return m(m({},data),{},L?{productCpc:e.cpc,productName:null===(U=null===(D=this.techProd)||void 0===D?void 0:D.product)||void 0===U?void 0:U.name,productPrice:Number(e.totalPrice/100)||Number(e.price/100),rawUrl:null==e?void 0:e.url,resellerId:e.id,resellerName:e.name,resellerTtag:e.tTag}:{productName:(null===(R=null===(S=this.techProd)||void 0===S?void 0:S.product)||void 0===R?void 0:R.name)||(null===(T=this.extraData)||void 0===T?void 0:T.hed)||this.hed,productPrice:(null==e?void 0:e.offerPrice)||0,rawUrl:null==e?void 0:e.rawUrl,resellerName:null==e?void 0:e.offerMerchant})}getLowestOfferPrice(e){var t,r,o;if(!Array.isArray(e)||0===e.length)return null;var n=(null===(t=e[0])||void 0===t?void 0:t.totalPrice)||(null===(r=e[0])||void 0===r?void 0:r.price)||(null===(o=e[0])||void 0===o?void 0:o.offerPrice);return e.forEach((e=>{var t=(null==e?void 0:e.totalPrice)||(null==e?void 0:e.price)||(null==e?void 0:e.offerPrice);t