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