import{jsx as t}from"react/jsx-runtime";import"react";import o from"../../../button/components/Button.js";import{createClass as s}from"@gem-sdk/system";import{getAddToCartButtonData as r}from"./common/data.js";import{getAddToCartButtonClasses as e}from"./common/classes.js";import i from"./ProductButtonPrice.js";let m=m=>{let{children:n,addToCart:a,...d}=m,{styles:c,setting:l,advanced:p,builderProps:u,builderAttrs:f}=d,{buttonStyle:j,buttonStyles:b,getButtonSettings:g}=r(d),y=s(e({isDisabled:d?.isLoading})),P=g(),k=t(i,{setting:l,styles:c});return t(o,{style:j,advanced:p,nodePrice:k,styles:b,setting:P,className:y,builderProps:u,builderAttrs:{...f,"data-is-in-stock":!0},onClick:a,children:n})};export{m as default};
