import{makeStyleResponsive as t,makeStyle as e,getSingleColorVariable as r,composeTypographyStyle as l,makeWidth as n}from"@gem-sdk/core";let getStyleWrapNotIcon=({styles:l})=>{let{width:n,lineStyle:o,thickness:i,transform:a,customTransform:c,color:g}=l??{};return{...wWidthFull(n??{}),...t("bs",o),...t("bbw",thicknessToUnit(i)),...e({t:`gp-rotate(${getTransformAngle(a,c)}deg)`}),...e({bc:r(g)})}},getStyleWrapIcon=({styles:t})=>{let{width:l,transform:n,customTransform:o,color:i}=t??{};return{...wWidthFull(l??{}),...e({bc:r(i)}),...e({t:`gp-rotate(${getTransformAngle(n,o)}deg)`})}},getStyleIcon=({styles:l,setting:n})=>{let{position:o}=n??{},{iconSpacing:i,iconSize:a,iconColor:c,iconRotate:g}=l??{};return{...getStyleSpacing(i,o),...t("w",a),...t("h",a),...e({t:`gp-rotate(${g})`}),...e({c:r(c)})}},getStyleContainerText=({styles:t})=>{let{textColor:n,textSpacing:o,typo:i,typography:a}=t??{},c=l(i,a);return{...e({tt:t?.transform}),...c,...e({c:r(n)}),...getStyleSpacing(o)}},getStyleContainerDivider=({config:l})=>({...e({bc:r(l?.color)}),...t("bs",l?.lineStyle),...t("bbw",thicknessToUnit(l?.thickness)),...t("minw",l?.width),...wWidthFull(l?.width??{})}),getTransformAngle=(t,e)=>{switch(t){case"horizontal":default:return 0;case"vertical":return 90;case"custom":return e||0}},wWidthFull=e=>(Object.keys(e).forEach(t=>{"default"===e[t]&&(e[t]="1200px")}),t("w",n(e))),thicknessToUnit=t=>({desktop:t?.desktop?`${t.desktop}px`:"1px",tablet:t?.desktop?`${t.tablet}px`:"1px",mobile:t?.desktop?`${t.mobile}px`:"1px"}),getStyleSpacing=(t,r)=>{switch(r){case"left":return e({mr:t});case"right":return e({ml:t});default:return e({mr:t,ml:t})}};export{getStyleContainerDivider,getStyleContainerText,getStyleIcon,getStyleWrapIcon,getStyleWrapNotIcon};
