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