import{splitStyle as t,makeStyleResponsive as e,makeStyle as o}from"@gem-sdk/core";let getButtonStyle=(t,o)=>({...t,...e("ta",o?.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:a,oosShadowV2:n,oosTextColor:S,oosRoundedV2:s,oosBackground:g,oosTextColorV2:y,oosBackgroundV2:p,oosEnableShadow:B,...m}=t??{},u=JSON.parse(JSON.stringify(m));return Object.assign(u,{textColor:{normal:y},hasBoxShadowBtn:{normal:B},boxShadowBtn:{normal:l},roundedBtnV2:s,borderBtnV2:a,backgroundColorV2:p}),y?.normal&&(u.typo={...u.typo,attrs:{...u.typo?.attrs,color:y.normal}}),{...getButtonBaseStyles(),...u}},getSplitStyle=e=>{let[o,l]=t(["pos","top","left","bottom","right","z"],e);return{wrapStyle:o,restStyle:l}},getSeparatorStyle=()=>({...o({mr:"8px",ml:"8px"})}),getBlankSpaceStyle=()=>({"--mr":"2px","--ml":"2px",display:"block !important"});export{getAddToCartButtonStyles,getBlankSpaceStyle,getButtonBaseStyles,getButtonStyle,getSeparatorStyle,getSoldOutButtonStyles,getSplitStyle};
