"use strict";var core=require("@gem-sdk/core"),helpers=require("../../helpers.js");const getWrapperStyle=(e,t)=>{let{align:r}=t??{},o={...e,...core.makeStyleResponsive("ta",r)};return helpers.filterTruthyStyles(o)},getContainerStyle=e=>{let{bgColor:t,iconBorder:r,iconRounded:o,globalSize:l,iconShadow:a}=e??{},i=core.makeGlobalSizeIcon(l),h={...i.padding,...core.handleConvertBorderStyle(r),...core.handleConvertBorderWidth(r),...core.handleConvertBorderColor(r),...core.composeRadius(o),...core.getGlobalColorStateStyle("bg",t),...core.getStyleShadow({value:a,styleAppliedFor:"box-shadow",isEnableShadow:a?.enable})};return helpers.filterTruthyStyles(h)},getIconStyle=e=>{let{globalSize:t,color:r,spin:o,iconRotate:l}=e??{},a=()=>o?0:l||0,i=core.makeGlobalSizeIcon(t),h={...core.getGlobalColorStateStyle("c",r),...core.makeStyle({t:`rotate(${a()}deg)`}),...i.width,...i.height,...i.minWidth,"--height-desktop":`${t?.desktop?.width}`,"--height-tablet":`${t?.tablet?.width||t?.desktop?.width}`,"--height-mobile":`${t?.mobile?.width||t?.tablet?.width||t?.desktop?.width}`};return helpers.filterTruthyStyles(h)};exports.getContainerStyle=getContainerStyle,exports.getIconStyle=getIconStyle,exports.getWrapperStyle=getWrapperStyle;
