"use strict";var core=require("@gem-sdk/core"),helpers=require("../../../helpers.js"),helper=require("../../common/helper.js");const getButtonStyles=(e,t)=>{let r=()=>e?core.makeStyle({bg:helper.buttonColor.secondary}):t?.buttonType==="primary"?core.makeStyle({bg:helper.buttonColor.primary}):t?.buttonType==="secondary"?{boxShadow:`inset 0 0 0 1px ${helper.buttonColor.secondary}`}:void 0,o=r()?r():{};return helpers.filterTruthyStyles({...o})},getContainerStyle=e=>helpers.filterTruthyStyles({...core.makeStyleResponsive("maxw",e?.width)}),getWrapperStyle=e=>{let t={...core.makeStyle({jc:e?.align==="center"?"center":e?.align==="end"?"end":"start"})};return helpers.filterTruthyStyles(t)},getTextStyles=(e,t,r)=>({typo:{...r?.typo,fontWeight:t?.buttonType==="link"?helper.postPurchaseFontWeight.normal:helper.postPurchaseFontWeight.bold,textColor:t?.buttonType==="primary"||e?"defaultButton":"defaultLink"},direction:r?.direction});exports.getButtonStyles=getButtonStyles,exports.getContainerStyle=getContainerStyle,exports.getTextStyles=getTextStyles,exports.getWrapperStyle=getWrapperStyle;
