"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("react");var t=require("../../../button/components/Button.js"),s=require("@gem-sdk/system"),r=require("./common/data.js"),a=require("./common/classes.js"),i=require("./ProductButtonPrice.js");exports.default=o=>{let{children:u,addToCart:d,...n}=o,{styles:l,setting:c,advanced:m,builderProps:j,builderAttrs:q}=n,{buttonStyle:g,buttonStyles:b,getButtonSettings:p}=r.getAddToCartButtonData(n),x=s.createClass(a.getAddToCartButtonClasses({isDisabled:n?.isLoading})),y=p(),C=e.jsx(i.default,{setting:c,styles:l});return e.jsx(t.default,{style:g,advanced:m,nodePrice:C,styles:b,setting:y,className:x,builderProps:j,builderAttrs:{...q,"data-is-in-stock":!0},onClick:d,children:u})};
