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