PageSourceSearch

https://www.article.com/assets/AddToCartButton.7aa082a0.js

js article.com collected 2026-09-24 08:49:22 UTC 2,490 bytes, 2 lines download raw bytes

1try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="43e68c91-5d49-42ac-9d9d-0f5babc15ebc",t._sentryDebugIdIdentifier="sentry-dbid-43e68c91-5d49-42ac-9d9d-0f5babc15ebc")}catch(I){}import{cz as t,b$ as e,dS as a,dn as d,cj as s,ca as o,cs as r,cu as l,d0 as n,cZ as i,cF as c,cG as u,cx as b,c7 as f}from"./index.061e774e.js";import{u as p}from"./useAddToCart.5a80e920.js";const y={class:"add-to-cart-container"},m={key:0,disabled:"","aria-label":"Shop Similar In Stock",class:"out-of-stock-button"},A=["data-test"];var C=f(t({__name:"AddToCartButton",props:{scrollFirst:{type:Boolean,required:!1,default:!0},products:{type:Array,required:!0},animate:{type:Boolean,required:!1,default:!1},showLoader:{type:Boolean,required:!1,default:!1},buttonClasses:{type:Array,required:!1,default:()=>["filled","coral"]},isEtaAtRisk:{type:Boolean,required:!1,default:!1},isSmallVariant:{type:Boolean,required:!1,default:!1},dataTest:{type:String,required:!1},bloomreachCollectionId:{type:String,required:!1}},emits:["beforeAdded","added"],setup(t,{emit:f}){const C=t,I=f,g=e(),h=a(),{notifyCartItemsAddedAction:S}=d(),{addCartProcess:k,isAddingCart:T}=p(),q=s(null);return(t,e)=>(o(),r("div",y,[t.isEtaAtRisk?(o(),r("button",m,[l(t.$slots,"default",{},(()=>[e[1]||(e[1]=n("COMING BACK SOON",-1))]),!0)])):(o(),r("form",{key:1,class:"add-to-cart-form",onSubmit:e[0]||(e[0]=i((e=>async function(t){I("beforeAdded",t),await k({products:t,buttonToAnimate:C.animate?q.value:null,scrollFirst:C.scrollFirst,bloomreachCollectionId:C.bloomreachCollectionId}),"/cart"!==g.currentRoute.value.path&&S(),I("added",t),h.dispatch("cart/load")}(t.products)),["prevent","stop"]))},[t.showLoader&&c(T)?(o(),r("div",{key:0,class:u(["button add-to-cart-loader",[...t.buttonClasses,{small:t.isSmallVariant}]])},[l(t.$slots,"loader",{},(()=>[e[2]||(e[2]=b("span",{class:"loader tiny"},null,-1))]),!0)],2)):(o(),r("button",{key:1,ref_key:"addToCartButton",ref:q,class:u(["add-cart-button",[...t.buttonClasses,{small:t.isSmallVariant}]]),name:"addToCart",type:"submit","aria-label":"Add to cart",title:"Add to cart","data-test":t.dataTest},[l(t.$slots,"default",{},(()=>[e[3]||(e[3]=n("Add To Cart",-1))]),!0)],10,A))],32))]))}}),[["__scopeId","data-v-4e8f9ce7"]]);export{C as default};
2//# sourceMappingURL=AddToCartButton.7aa082a0.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.