"use strict";var core=require("@gem-sdk/core");const getButtonStyle=(t,e)=>({...t,...core.makeStyleResponsive("ta",e?.align)}),getButtonBaseStyles=()=>({size:{desktop:"1em",tablet:"1em",mobile:"1em"}}),getAddToCartButtonStyles=t=>({...t,...getButtonBaseStyles(),enableTextStyle:!0}),getSoldOutButtonStyles=t=>{let{isCustomOutOfStock:e,oosBorder:o,oosShadow:l,oosRounded:r,oosBorderV2:S,oosShadowV2:a,oosTextColor:s,oosRoundedV2:n,oosBackground:y,oosTextColorV2:p,oosBackgroundV2:g,oosEnableShadow:B,...u}=t??{},d=JSON.parse(JSON.stringify(u));return Object.assign(d,{textColor:{normal:p},hasBoxShadowBtn:{normal:B},boxShadowBtn:{normal:l},roundedBtnV2:n,borderBtnV2:S,backgroundColorV2:g}),p?.normal&&(d.typo={...d.typo,attrs:{...d.typo?.attrs,color:p.normal}}),{...getButtonBaseStyles(),...d}},getSplitStyle=t=>{let[e,o]=core.splitStyle(["pos","top","left","bottom","right","z"],t);return{wrapStyle:e,restStyle:o}},getSeparatorStyle=()=>({...core.makeStyle({mr:"8px",ml:"8px"})}),getBlankSpaceStyle=()=>({"--mr":"2px","--ml":"2px",display:"block !important"});exports.getAddToCartButtonStyles=getAddToCartButtonStyles,exports.getBlankSpaceStyle=getBlankSpaceStyle,exports.getButtonBaseStyles=getButtonBaseStyles,exports.getButtonStyle=getButtonStyle,exports.getSeparatorStyle=getSeparatorStyle,exports.getSoldOutButtonStyles=getSoldOutButtonStyles,exports.getSplitStyle=getSplitStyle;
