import{composeClasses as e,makeGlobalSize as o,makeStyle as n,getRadiusStyleActiveState as d,getBorderStyle as l,handleConvertBorderColor as r,handleConvertBorderStyle as a,handleConvertBorderWidth as t,getStyleShadow as i,getStyleShadowState as u,composeRadius as c,makeStyleState as g,makeStyleResponsive as b,getGlobalColorStateStyle as B}from"@gem-sdk/core";let S=e=>o(e?.size),h=(e,o)=>({...S(e).width,...S(e).padding,...o?g("bg",{...e?.backgroundColor,hover:e?.backgroundColor?.active??e?.backgroundColor?.normal}):g("bg",e?.backgroundColor),...n({bg:o?e?.backgroundColor?.active:e?.backgroundColor?.normal}),...o?c({...e?.roundedBundle,hover:e?.roundedBundle?.active??e?.roundedBundle?.normal}):c(e?.roundedBundle),...o?i({value:Object.keys(e?.boxShadowBundle?.active??{})?.length<=0?e?.boxShadowBundle?.normal:e?.boxShadowBundle?.active,styleAppliedFor:"box-shadow",isEnableShadow:e?.hasBoxShadowBundle?.active??e?.hasBoxShadowBundle?.normal}):{...u({...e?.boxShadowBundle,active:{}},"box-shadow",{...e?.hasBoxShadowBundle,active:!1})},...o?l(e?.borderBundle?.active):{...t(e?.borderBundle),...a(e?.borderBundle),...r(e?.borderBundle)},...o?d({...e?.roundedBundle,active:{...e?.roundedBundle?.active?e?.roundedBundle?.active:e?.roundedBundle?.normal,radiusType:"custom"}}):{}}),s=e=>({...e?.layout!=="horizontal-layout"?n({mr:e?.iconSpacing}):n({mb:e.iconSpacing}),...b("w",e?.iconSize,"px"),...b("h",e?.iconSize,"px")}),v=e=>({...B("c",e?.iconColor),...n({c:e?.iconColor?.active})}),m=e=>({...B("c",{...e?.iconColor,normal:e?.iconColor?.normal})}),x=e=>{let o=e?.align==="left"?"start":e?.align==="right"?"end":"center";return{...n({ai:o})}},p=e("gp-flex-1"),w=(e,o,n)=>({...e,...x(o),...n});export{x as getAlignStyle,w as getContainerStyles,p as getFlexChildren,s as getIconStyles,h as getItemWrapStyles,S as getSizeSettings,v as getSvgActiveStyles,m as getSvgStyles};
