"use strict";var e=require("@gem-sdk/system"),t=require("./common/data.js"),s=require("./common/classes.js"),a=require("./ProductButtonPrice.liquid.js"),r=require("../../../button/components/Button.liquid.js");exports.AddToCartButton=d=>{let{pageContext:u,...i}=d,{styles:n,setting:l,advanced:o,builderProps:c,builderAttrs:m}=i,{buttonStyle:q,buttonStyles:g,getButtonSettings:p}=t.getAddToCartButtonData(i),v=e.createClass(s.getAddToCartButtonClasses({isLiquid:!0})),C=p({isLiquid:!0}),b=a.default({setting:l,styles:n,pageContext:u});return r.default({style:q,advanced:o,nodePrice:b,styles:g,setting:C,className:v,wrapClassName:"{% unless variant.available %} !gp-hidden {% endunless %}",builderProps:c,builderAttrs:m,customAttrs:{name:"add","gp-data-hidden":"{% unless variant.available %}true{% endunless %}"},pageContext:u})};
