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