(window.webpackJsonp=window.webpackJsonp||[]).push([[303,109],{2956:function(e,t,r){"use strict";r.r(t);var n=r(0),o=r(829),l=r(10),c=r(881),d=r(933),v=new l.a("ShortcodeCommerceLink"),h=class extends(Object(o.mixins)(d.a)){get buttonLink(){var e=null;try{var t;e=null===(t=JSON.parse(this.api))||void 0===t?void 0:t.url}catch(e){v.log("Unable to parse monetized url.")}return e||this.rawUrl}created(){this.$store.dispatch("tracking/setPageComponents",{cm02:!0})}};Object(n.a)([Object(o.Prop)({default:""}),Object(n.b)("design:type",String)],h.prototype,"api",void 0),Object(n.a)([Object(o.Prop)({default:""}),Object(n.b)("design:type",String)],h.prototype,"linkShortcodeText",void 0),Object(n.a)([Object(o.Prop)({default:""}),Object(n.b)("design:type",String)],h.prototype,"useMonetization",void 0),Object(n.a)([Object(o.Prop)({default:""}),Object(n.b)("design:type",String)],h.prototype,"rawUrl",void 0),Object(n.a)([Object(o.Prop)({default:""}),Object(n.b)("design:type",String)],h.prototype,"id",void 0),Object(n.a)([Object(o.Prop)({default:null}),Object(n.b)("design:type",String)],h.prototype,"section",void 0),Object(n.a)([Object(o.Prop)({default:"BODY"}),Object(n.b)("design:type",String)],h.prototype,"location",void 0),Object(n.a)([Object(o.Prop)({default:""}),Object(n.b)("design:type",String)],h.prototype,"contentId",void 0);var f=h=Object(n.a)([Object(o.Component)({components:{CommerceBuyButton:c.default},inheritAttrs:!1})],h),O=r(127),component=Object(O.a)(f,(function(){var e=this,t=e._self._c;e._self._setupProxy;return t("span",{staticClass:"c-shortcodeCommerceLink"},[t("CommerceBuyButton",{attrs:{"button-text":e.linkShortcodeText,"button-url":e.buttonLink,"lead-click-data":e.winningOfferTrackingData,"is-link":!0,"content-id":e.contentId,section:e.section,"track-product-viewed":!0,"data-location":e.location}})],1)}),[],!1,null,null,null);t.default=component.exports},834:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));r(4),r(5),r(12);var n=r(342);function o(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 l(e,t){var r=new t;return Object(n.createDecorator)((t=>{t.directives=(null==t?void 0:t.directives)||{},t.directives[e]=o(r)}))}},835:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));r(35);var n=new(r(10).a)("observer");class o{constructor(e,t){if(!window.IntersectionObserver)return n.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 n.error("Failed to construct IntersectionObserver: ".concat(t.toString()),e),this}}create(e,t){if(n.log("create options",e),this.el=e.el,t)return Array.isArray(this.el)&&(this.lastTriggerPosition=[]),this.observer=new IntersectionObserver(((r,o)=>{r.forEach((r=>{var o=!0,data=(null==e?void 0:e.data)||{};if(Array.isArray(this.el)){var l,c,d=this.el.findIndex((e=>e===(null==r?void 0:r.target))),v=null===(l=this.lastTriggerPosition)||void 0===l?void 0:l[d];o=void 0===v||v>r.boundingClientRect.y,this.lastTriggerPosition[d]=r.boundingClientRect.y,data=(null==e||null===(c=e.data)||void 0===c?void 0:c[d])||{}}else o=void 0===this.lastTriggerPosition||this.lastTriggerPosition>r.boundingClientRect.y,this.lastTriggerPosition=r.boundingClientRect.y;var h=o?"down":"up",f=!1;if(n.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 O={direction:h,data:data,observer:this,entry:r};n.log(h,r,this),t(O)}}))}),e),this.enable(),this;n.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())}}},836:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(344);class o{bind(e,t,r){var{arg:o,value:l}=t,{context:c}=r;this.action=()=>{var t,r=c.$track(this.eventType);(t="function"==typeof l?r.create(l):r.with(l).create()).trackingData=n.a.replaceAttributeReferences(e,t.trackingData),t.fire()},e.addEventListener(o||"mousedown",this.action)}unbind(e,t){var{arg:r,value:n}=t;e.removeEventListener(r||"mousedown",this.action)}}function l(e){return class extends o{get eventType(){return e}}}},846:function(e,t,r){"use strict";var n=r(16),o=r(37),l=r(29),c=r(90),d=r(41),v=r(102),h=r(347),f=r(61),O=r(149),m=r(348),y=r(535),P=r(47),j=r(91),w=P("replace"),T=TypeError,C=l("".indexOf),k=l("".replace),D=l("".slice),I=Math.max;n({target:"String",proto:!0},{replaceAll:function(e,t){var r,n,l,P,S,x,_,R,U,E=c(this),A=0,N=0,L="";if(!v(e)){if((r=h(e))&&(n=f(c(m(e))),!~C(n,"g")))throw new T("`.replaceAll` does not allow non-global regexes");if(l=O(e,w))return o(l,e,E,t);if(j&&r)return k(f(E),e,t)}for(P=f(E),S=f(e),(x=d(t))||(t=f(t)),_=S.length,R=I(1,_),A=C(P,S);-1!==A;)U=x?f(t(S,A,P)):y(S,P,A,[],void 0,t),L+=D(P,N,A)+U,N=A+_,A=A+R>P.length?-1:C(P,S,A+R);return N{null==T||T.delete(param)}));var C={s1:f||null,s2:c||null,s3:O||null,s4:y||null,s5:"cb-".concat(h||null,"-").concat("mobile"===m?"mwb":"dtp")};for(var[k,D]of Object.entries(C))null==T||T.append(k,D);w.search=null==T?void 0:T.toString(),t=null==w?void 0:w.toString()}return t}},896:function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var n=r(6),o=r(0),l=r(44),c=r(48),d=r(36),v=r(79);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var f=class extends v.a{constructor(e){super(e),this.services=["googleAnalytics"]}get defaults(){return{"@event":"view_item"}}transform(data){var e,t,base=super.transform(data);return this.additionalData.googleAnalytics=base,null!=data&&null!==(e=data.items)&&void 0!==e&&e[0]&&isNaN(null===(t=data.items[0])||void 0===t?void 0:t.index)&&(data.items[0].index=null),this.additionalData.googleAnalytics=function(e){for(var t=1;t0)}get hasCreditCardOffer(){var e;return!(null===(e=this.extraData)||void 0===e||null===(e=e.creditCardData)||void 0===e||null===(e=e.attributes)||void 0===e||!e.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;return(null===(e=this.techProd)||void 0===e||null===(e=e.attributes)||void 0===e||null===(e=e.find((e=>"offer-link-text"===e.slug)))||void 0===e?void 0:e.val.toString())||null}get techProdOfferUrl(){var e;return(null===(e=this.techProd)||void 0===e||null===(e=e.attributes)||void 0===e||null===(e=e.find((e=>"offer-link-url"===e.slug)))||void 0===e?void 0:e.val.toString())||null}get productFamily(){var e;return(null===(e=this.techProd)||void 0===e||null===(e=e.family)||void 0===e?void 0:e[0])||{uuid:"",name:""}}get promoText(){var e,t=null===(e=this.techProd)||void 0===e||null===(e=e.attributes)||void 0===e?void 0:e.find((e=>"promo-text"===e.slug));return null==t?void 0:t.val[0]}get promoCode(){var e,t=null===(e=this.techProd)||void 0===e||null===(e=e.attributes)||void 0===e?void 0:e.find((e=>"coupon-code"===e.slug));return null==t?void 0:t.val[0]}get promoTextRightRail(){var e,t=null===(e=this.techProd)||void 0===e||null===(e=e.attributes)||void 0===e?void 0:e.find((e=>"vpn-promo-text-test"===e.slug));return null==t?void 0:t.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 productCategory(){return this.useReseller?"PRODUCT-CATALOG-OFFER":this.usePricing?"MANUAL-OFFER-NO-PRODUCT-CATALOG-ENTRY":"MANUAL-OFFER-PRODUCT-CATALOG-DEACTIVATED"}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,n;try{var o;r=new URL(null===(o=this.merchantOffer)||void 0===o?void 0:o.url)}catch(e){}if(null!==(e=r)&&void 0!==e&&null!==(e=e.hostname)&&void 0!==e&&e.endsWith("amazon.com"))return r.href;try{var l;n=new URL(null===(l=this.extraData)||void 0===l||null===(l=l.creditCardData)||void 0===l||null===(l=l.attributes)||void 0===l?void 0:l.link)}catch(e){}if(n){var v,h=n.searchParams;h.append("c_correlation_id",d.b[0]),h.append("c_tenant_id",null==c||null===(v=c.cohesion)||void 0===v?void 0:v.sourceKey),h.append("c_anonymous_id",this.$store.getters["tracking/clientId"]),h.append("c_session_id",this.$store.getters["tracking/sessionId"]),h.append("c_instance_id",this.$store.getters["tracking/viewGuid"])}return null===(t=n)||void 0===t?void 0:t.href}get winningOfferUrl(){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;var e,t}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,n,o,l,c,v,f,O,m,y,P,j,w,T,C,k,D,I,S=arguments.length>1&&void 0!==arguments[1]&&arguments[1],data={brand:null==e?void 0:e.offerMerchant,coupon:this.promoText,monetizationStatus:"",productCpc:"",productCategory:this.productCategory,productId:(null===(t=this.techProd)||void 0===t?void 0:t.id)||"",productManufacturer:(null===(r=this.techProd)||void 0===r||null===(r=r.manufacturer)||void 0===r?void 0:r.name)||"",productSeriesId:(null===(n=this.productFamily)||void 0===n?void 0:n.uuid)||"",productSeriesName:(null===(o=this.productFamily)||void 0===o?void 0:o.name)||"",productSku:Array.isArray(null===(l=this.techProd)||void 0===l||null===(l=l.product)||void 0===l?void 0:l.sku)&&(null===(c=this.techProd)||void 0===c||null===(c=c.product)||void 0===c||null===(c=c.sku)||void 0===c?void 0:c.length)>0?null===(v=this.techProd)||void 0===v||null===(v=v.product)||void 0===v||null===(v=v.sku)||void 0===v?void 0:v[0]:(null===(f=this.techProd)||void 0===f||null===(f=f.product)||void 0===f?void 0:f.sku)||"",productSlug:(null===(O=this.techProd)||void 0===O||null===(O=O.product)||void 0===O?void 0:O.slug)||"",resellerId:"",resellerTtag:"",shortcodeId:(null===(m=this.extraData)||void 0===m?void 0:m.uuid)||"",shortcodeType:this.shortcodeType(null!==(y=null===(P=this.extraData)||void 0===P?void 0:P.shortcodeType)&&void 0!==y?y:""),useMonetization:""};return h(h({},data),{},S?{productCpc:e.cpc,productName:null===(j=this.techProd)||void 0===j||null===(j=j.product)||void 0===j?void 0:j.name,productPrice:Number(e.totalPrice/100)||Number(e.price/100),rawUrl:(null==e?void 0:e.url)||(null===(w=this.extraData)||void 0===w?void 0:w.rawUrl),resellerId:e.id,resellerName:e.name,resellerTtag:e.tTag,subId:Object(d.f)(this.stateMappings,(null==e?void 0:e.url)||(null===(T=this.extraData)||void 0===T?void 0:T.rawUrl))}:{monetizationStatus:null==e?void 0:e.monetizationStatus,productName:(null===(C=this.techProd)||void 0===C||null===(C=C.product)||void 0===C?void 0:C.name)||(null===(k=this.extraData)||void 0===k?void 0:k.hed)||this.hed,productPrice:(null==e?void 0:e.offerPrice)||0,rawUrl:(null==e?void 0:e.rawUrl)||(null===(D=this.extraData)||void 0===D?void 0:D.rawUrl),resellerName:null==e?void 0:e.offerMerchant,subId:Object(d.f)(this.stateMappings,(null==e?void 0:e.rawUrl)||(null===(I=this.extraData)||void 0===I?void 0:I.rawUrl)),useMonetization:null==e?void 0:e.useMonetization})}getLowestOfferPrice(e){var t,r,n;if(!Array.isArray(e)||0===e.length)return null;var o=(null===(t=e[0])||void 0===t?void 0:t.totalPrice)||(null===(r=e[0])||void 0===r?void 0:r.price)||(null===(n=e[0])||void 0===n?void 0:n.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