"use strict";var e=require("@gem-sdk/core");const o=o=>e.makeGlobalSize(o?.size),t=o=>{let t=o?.align==="left"?"start":o?.align==="right"?"end":"center";return{...e.makeStyle({ai:t})}},l=e.composeClasses("gp-flex-1");exports.getAlignStyle=t,exports.getContainerStyles=(e,o,l)=>({...e,...t(o),...l}),exports.getFlexChildren=l,exports.getIconStyles=o=>({...o?.layout!=="horizontal-layout"?e.makeStyle({mr:o?.iconSpacing}):e.makeStyle({mb:o.iconSpacing}),...e.makeStyleResponsive("w",o?.iconSize,"px"),...e.makeStyleResponsive("h",o?.iconSize,"px")}),exports.getItemWrapStyles=(t,l)=>({...o(t).width,...o(t).padding,...l?e.makeStyleState("bg",{...t?.backgroundColor,hover:t?.backgroundColor?.active??t?.backgroundColor?.normal}):e.makeStyleState("bg",t?.backgroundColor),...e.makeStyle({bg:l?t?.backgroundColor?.active:t?.backgroundColor?.normal}),...l?e.composeRadius({...t?.roundedBundle,hover:t?.roundedBundle?.active??t?.roundedBundle?.normal}):e.composeRadius(t?.roundedBundle),...l?e.getStyleShadow({value:Object.keys(t?.boxShadowBundle?.active??{})?.length<=0?t?.boxShadowBundle?.normal:t?.boxShadowBundle?.active,styleAppliedFor:"box-shadow",isEnableShadow:t?.hasBoxShadowBundle?.active??t?.hasBoxShadowBundle?.normal}):{...e.getStyleShadowState({...t?.boxShadowBundle,active:{}},"box-shadow",{...t?.hasBoxShadowBundle,active:!1})},...l?e.getBorderStyle(t?.borderBundle?.active):{...e.handleConvertBorderWidth(t?.borderBundle),...e.handleConvertBorderStyle(t?.borderBundle),...e.handleConvertBorderColor(t?.borderBundle)},...l?e.getRadiusStyleActiveState({...t?.roundedBundle,active:{...t?.roundedBundle?.active?t?.roundedBundle?.active:t?.roundedBundle?.normal,radiusType:"custom"}}):{}}),exports.getSizeSettings=o,exports.getSvgActiveStyles=o=>({...e.getGlobalColorStateStyle("c",o?.iconColor),...e.makeStyle({c:o?.iconColor?.active})}),exports.getSvgStyles=o=>({...e.getGlobalColorStateStyle("c",{...o?.iconColor,normal:o?.iconColor?.normal})});
