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