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