(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{1310:function(t,e,r){var content=r(1712);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(39).default)("1ab0f66c",content,!0,{sourceMap:!1})},1711:function(t,e,r){"use strict";r(1310)},1712:function(t,e,r){var n=r(38)((function(i){return i[1]}));n.push([t.i,".c-bestListButtons_button{text-transform:none;height:44px}@media(min-width: 768px){.c-bestListButtons_button{width:100%;height:64px}}",""]),n.locals={},t.exports=n},1840:function(t,e,r){"use strict";r.r(e);r(16),r(960),r(21),r(20),r(73),r(37);var n=r(0),o=r(3),c=r(935),l=r(938),d=class extends l.a{get listicleIndex(){return this.getListicleIndex(this.shortcodeId)}get shortcodeType(){var t;return"cross_content_listicle"===(null===(t=this.commerceData)||void 0===t?void 0:t.shortcodeType)?"x-listicle":"listicle"}get isVpn(){var t,e,r=((null===(t=this.commerceData)||void 0===t?void 0:t.hed)||"").toLowerCase(),sub=((null===(e=this.commerceData)||void 0===e?void 0:e.subhed)||"").toLowerCase();return r.includes("vpn")||sub.includes("vpn")}parsePrice(t){if(null!=t){if("number"==typeof t)return Number.isFinite(t)&&t>0?t:void 0;var e=t.replace(/[^\d.,-]/g,"").match(/-?\d+(?:[.,]\d+)?/);if(e){var r=parseFloat(e[0].replace(/,/g,""));return Number.isFinite(r)&&r>0?r:void 0}}}getMsrp(){var t,e=((null===(t=this.commerceData)||void 0===t||null===(t=t.techProd)||void 0===t?void 0:t.attributes)||[]).find((a=>"MSRP"===(null==a?void 0:a.name))),r=Array.isArray(null==e?void 0:e.val)?e.val[0]:null==e?void 0:e.val;return this.parsePrice(r)}ctaPrice(t){return this.parsePrice(t)}get resolvedButtonsPrice(){var t="number"==typeof this.winningSellerPrice&&this.winningSellerPrice>0?this.winningSellerPrice:void 0;return null!=t?t:this.getMsrp()}buttonText(t,e){var r=this.$abtest.isUserInActiveTestAndBucket("cta_language","test"),p="number"==typeof e&&Number.isFinite(e)&&e>0?e:void 0;if(!t)return this.$t("view_now");if(r&&"number"==typeof p){var n=Math.round(p);return this.$t("buy_at",{price:this.$currency(String(n),"USD"),store:t})}return this.$t("view_at_no_price",{store:t})}};Object(n.__decorate)([Object(o.Prop)({default:""}),Object(n.__metadata)("design:type",String)],d.prototype,"api",void 0),Object(n.__decorate)([Object(o.Prop)({default:()=>({})}),Object(n.__metadata)("design:type",Function)],d.prototype,"getListicleIndex",void 0),Object(n.__decorate)([Object(o.Prop)({default:"listicle",type:String}),Object(n.__metadata)("design:type",String)],d.prototype,"formatSubtype",void 0);var v=d=Object(n.__decorate)([Object(o.Component)({name:"BestListButtons",components:{CommerceBuyButton:c.a}})],d),h=(r(1711),r(11)),component=Object(h.a)(v,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"c-bestListButtons"},[t.techProd&&t.preferredResellers?t._l(t.preferredResellers,(function(r,n){return e("CommerceBuyButton",{key:r.id,staticClass:"c-bestListButtons_button",attrs:{"button-text":t.buttonText(r.name,t.resolvedButtonsPrice),"button-price":t.resolvedButtonsPrice,"button-url":r.url,"button-position":t.listicleIndex,"product-id":r.id,"track-click-data":t.winningSellerTrackingData,"variant-tracking":t.shortcodeType+"|button|"+(n+1),"fire-product-viewed":0===n,"button-theme":"large","vendor-name":r.name,"shortcode-id":t.shortcodeId,"format-subtype":t.formatSubtype}})})):t.hasMerchantOffer?t._l(t.manualOffers,(function(r,n){return e("CommerceBuyButton",{key:r.monetizedUrl,staticClass:"c-bestListButtons_button",attrs:{"button-text":t.buttonText(r.offerMerchant,t.resolvedButtonsPrice),"button-price":t.resolvedButtonsPrice,"button-url":r.url,"button-position":t.listicleIndex,"track-click-data":t.winningSellerTrackingData,"variant-tracking":t.shortcodeType+"|button|"+(n+1),"fire-product-viewed":0===n,"button-theme":"large","vendor-name":r.offerMerchant,"shortcode-id":t.shortcodeId,"format-subtype":t.formatSubtype}})})):t._e()],2)}),[],!1,null,null,null);e.default=component.exports}}]);