import{makeGlobalSize as e,makeStyleResponsive as t,getStyleBackgroundByDevice as i,getGradientBgrStyleByDevice as r,getResponsiveStyleShadowWithoutState as l,composeRadiusResponsive as o,composeBorderResponsive as d,getGlobalColorResponsiveStyle as a}from"@gem-sdk/core";let filterStyles=e=>{let t=["--mb","--mb-mobile","--mb-tablet"];return t.forEach(t=>{delete e?.[t]}),e||{}},getContainerStyles=(l,o,d)=>{let{align:a,background:g,globalSize:s}=o||{},n=e(s||{desktop:{width:"100%"}}),m={...l,...d?.advancedClasses,...n.width,...t("ta",a),...i(g,{liquid:d?.isLiquid}),...r(g)};return d?.isLiquid?m:filterStyles(m)},getWrapperStyles=e=>{let{alignWrapper:i}=e||{};return{...t("jc",i)}},getItemStyles=i=>{let r=e(i?.itemPadding);return{...r.padding,...l(i?.itemBoxShadow,"box-shadow",i?.itemBoxShadow),...o(i?.itemRounded),...d(i?.itemBorder),...a("bgc",i?.itemBackgroundColor),...a("bgi",i?.itemBackgroundColor),...t("cg",i?.horizontalSpacing)}},getUlStyles=e=>({...t("gg",e?.verticalSpacing)});export{getContainerStyles,getItemStyles,getUlStyles,getWrapperStyles};
