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