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