import{makeStyle as e,makeStyleResponsive as t,makeStyleState as o,composeRadius as a,handleConvertBorderWidth as n,handleConvertBorderStyle as i,handleConvertBorderColor as l,getStyleShadowState as r,getGlobalColorStateStyle as c,getStyleShadow as s,getSingleColorVariable as S,makeGlobalSize as p,composeTypographyStyle as d}from"@gem-sdk/core";let composeGlobalSize=e=>p(e?.size),composePaddingSize=e=>p(e?.paddingSize),appendTypoStyle=e=>d(e?.typo),createContentWithStyles=(c,s)=>({...e({jc:c?.arrangeContent}),...t("w",c?.contentWidth),...composePaddingSize(c).padding,...composeGlobalSize(c).height,...o("bg",s?.backgroundColor),...a(s?.roundedBtn),...n(s?.borderBtn),...i(s?.borderBtn),...l(s?.borderBtn),...r(s?.boxShadowBtn,"box-shadow",s?.hasBoxShadowBtn)}),createLayoutStyles=(o,a)=>({...c("c",a?.textColor),...t("gg",a?.spacing),...o?.fileUploadLayout==="horizontal"?{...e({ai:o?.positionHorizontal})}:{}}),createIconContainerStyles=t=>({...t?.fileUploadLayout==="vertical"?{...e({w:"100%",jc:t?.positionVertical,o:t?.iconAlignVertical!=="above"?"1":"unset"})}:{...e({o:t?.iconAlignHorizontal!=="left"?"1":"unset"})}}),createIconContentStyles=(e,o)=>({...t("w",e?.iconSize,"px"),...t("h",e?.iconSize,"px"),...c("c",o?.textColor),"--height-desktop":`${e?.iconSize?.desktop}`,"--height-tablet":`${e?.iconSize?.tablet??e?.iconSize?.desktop}`,"--height-mobile":`${e?.iconSize?.mobile??e?.iconSize?.tablet??e?.iconSize?.desktop}`}),createTypoStyles=e=>({...appendTypoStyle(e),...t("ta",e?.textAlign),"--hvr-c":e?.textColor?.hover??e?.textColor?.normal??"",...s({value:e?.typo?.custom?.textShadow,styleAppliedFor:"text-shadow",isEnableShadow:e?.typo?.custom?.hasShadowText})}),createMessageStyles=()=>({...e({c:"#DB3D31",size:"12px"})}),createWrapContentWidthStyles=t=>({...e({jc:t?.arrangeContent}),...composeGlobalSize(t).width}),createContainerStyles=(e,o)=>({...t("jc",e),"--text-hover-color":S(o?.hover??o?.normal)});export{composeGlobalSize,composePaddingSize,createContainerStyles,createContentWithStyles,createIconContainerStyles,createIconContentStyles,createLayoutStyles,createMessageStyles,createTypoStyles,createWrapContentWidthStyles};
