"use strict";var t=require("./helpers.js"),e=require("./styles.js");const l=({style:l,styles:s,setting:n})=>{let{iconSvg:i,iconAlign:o,shouldClearSpace:r,enableHoverEffect:u}=n??{};return{iconVisible:t.checkIconVisibility(s),buttonStyle:e.getButtonStyle(l,s),buttonSettings:{iconSvg:i,iconAlign:o,iconVisible:t.checkIconVisibility(s),shouldClearSpace:r,enableHoverEffect:u}}};exports.getAddToCartButtonData=t=>{let s=e.getAddToCartButtonStyles(t.styles),{buttonStyle:n,buttonSettings:i}=l(t);return{buttonStyle:n,buttonStyles:s,getButtonSettings:e=>{let{isLiquid:l=!1}=e??{},s=l?{disabledLoading:!1,translate:t.setting?.translate?"label":void 0}:{loading:t.isLoading};return{...i,...s,htmlType:"submit",label:t.setting?.label}}}},exports.getSoldOutButtonData=t=>{let{buttonStyle:s,buttonSettings:n}=l(t);return{buttonStyles:e.getSoldOutButtonStyles(t.styles),buttonStyle:s,buttonSettings:{...n,htmlType:"button",label:t.label}}};
