"use strict";var e=require("@gem-sdk/core"),t=require("./helpers.js");exports.getContainerStyles=t=>{let{width:r,textColor:o}=t??{};return{...e.makeStyleResponsive("w",e.makeWidth(r)),...e.makeStyle({c:e.getSingleColorVariable(o)})}},exports.getIconStyles=(r,o,a)=>{let{iconColor:s,oosIconColor:l}=r??{};return{...e.makeStyle({c:e.getSingleColorVariable(a?l:s)}),...function(r,o){let{typo:a}=r??{},{iconSize:s}=o??{};if(s?.desktop)return{...e.makeStyleResponsive("w",e.makeWidth(s),"px")};let l=a&&!a.custom?e.genVariable(e.getShortName(`typography-${a.type}-fontSize`)):void 0,p=a&&a.custom?t.convertSizeToWidth(e.composeTypographyV2(a.custom)):{};return l?e.makeStyle({w:l}):p}(r,o)}},exports.getProgressBarStyles=(t,r)=>{let o;let{progressBarHeight:a,color:s}=t??{},{remainingPercentage:l}=r??{};return a&&(o=Object.fromEntries(Object.entries(a).map(([e,t])=>[e,Number((t+"").replace("px",""))]))),{...e.makeStyleResponsive("h",e.makeWidth(o),"px"),...e.makeStyle({bg:"linear-gradient(90deg, #eee 50%, transparent 50%)",bgc:e.getSingleColorVariable(s),bgp:`${parseInt(String(l||0))}% center`})}},exports.getTextStyles=(t,r)=>{let{typo:o,oosTextColor:a}=t??{},s={...o,attrs:{...o?.attrs,color:r?a:o?.attrs?.color}},l=e.composeTypographyStyle(s,t?.typography);return{...l,...e.getStyleShadow({value:o?.custom?.textShadow,styleAppliedFor:"text-shadow",isEnableShadow:o?.custom?.hasShadowText})}},exports.getWrapperStyles=t=>{let{alignment:r}=t??{};return{...e.makeStyleResponsive("jc",r)}};
