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