import{makeStyleResponsive as t,getResponsiveStylePadding as e,handleConvertBorderStyle as r,handleConvertBorderWidth as l,handleConvertBorderColor as y,composeRadius as n,makeStyle as S,getGlobalColorCSSProp as g}from"@gem-sdk/core";function filterTruthyStyles(t){return Object.fromEntries(Object.entries(t||{}).filter(([,t])=>!!t))}let getWrapperStyle=e=>{let r={...t("jc",e?.textAlign)};return filterTruthyStyles(r)},getContainStyle=e=>{let{horizontalGap:r,textAlign:l}=e||{},y={gap:r,...t("jc",l)};return filterTruthyStyles(y)},getDateStyle=t=>{let{borderState:i,itemPadding:u,backgroundItemColor:c,roundedState:f}=t||{},o={...e(u),...r(i),...l(i),...y(i),...n(f),...S({bg:g(c)})};return filterTruthyStyles(o)},getTextFrontStyle=t=>{let{colorNumber:e,verticalGap:r}=t||{},l={};return e&&(l={...S({mb:r,c:g(e)})}),filterTruthyStyles(l)},getTextBackStyle=t=>{let{colorLabel:e}=t||{},r={};return e&&(r={...S({c:g(e)})}),filterTruthyStyles(r)};export{getContainStyle,getDateStyle,getTextBackStyle,getTextFrontStyle,getWrapperStyle};
