"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../utils/index.js");const o=t=>{switch(t){case"primary":return e.getColorAlias("interactiveBrand");case"secondary":return e.getColorAlias("interactiveSecondary");case"outline":case"ghost":case"ghost-inverse":case"ghost-tertiary":return"transparent";case"inverse":return e.getColorAlias("contentInverse");default:console.warn("Error, incorrect props. Pass the correct set of props to the getIconButtonBackgroundColor function.")}},n=t=>{switch(t){case"primary":case"secondary":case"outline":return e.getColorAlias("disabled01");case"inverse":return e.getColorAlias("disabled01");case"ghost":case"ghost-tertiary":case"ghost-inverse":return"transparent";default:console.warn("Error, incorrect props. Pass the correct set of props to the getDisabledBackgroundColor function.")}},a=(t,r)=>{if(r)return"#8c999b";switch(t){case"primary":case"ghost-inverse":return e.getColorAlias("contentInverse");case"secondary":case"ghost-tertiary":return e.getColorAlias("contentSubdued");case"outline":case"ghost":case"inverse":return e.getColorAlias("interactiveBrand");default:console.warn("Error, incorrect props. Pass the correct set of props to the getIconButtonSvgColor function.")}},c=(t,r)=>{switch(t){case"primary":return e.getDarkenColor("active01","contentBrand");case"secondary":return r?e.transparentizeAliasColor("active01","contentLight"):e.getDarkenColor("active01","containerDefault");case"outline":return r?e.getDarkenColor("active01","interactiveLight"):e.getDarkenColor("active01","containerDefault");case"ghost":case"ghost-tertiary":return r?e.transparentizeAliasColor("active01","contentLight"):e.getDarkenColor("active01","containerDefault");case"inverse":return r?e.getDarkenColor("active01","backgroundDark"):e.getDarkenColor("active01","contentLight");case"ghost-inverse":return r?"transparent":e.getDarkenColor("active01","backgroundDark");default:console.warn("Error, incorrect props. Pass the correct set of props to the getIconButtonBackgroundColorLoading function.")}},s=(t,r)=>{switch(t){case"primary":return e.getDarkenColor("hover01","contentBrand");case"secondary":return r?e.transparentizeAliasColor("hover01","contentLight"):e.getDarkenColor("hover02","containerDefault");case"outline":return r?e.transparentizeAliasColor("hover01","contentLight"):e.getDarkenColor("hover01","containerDefault");case"ghost":case"ghost-tertiary":return r?e.transparentizeAliasColor("hover01","contentSubdued"):e.getDarkenColor("hover01","containerDefault");case"inverse":return r?e.getDarkenColor("hover01","contentSubdued"):e.getDarkenColor("hover01","contentLight");case"ghost-inverse":return r?e.transparentizeAliasColor("hover01","containerDefault"):e.getDarkenColor("hover01","contentSubdued");default:console.warn("Error, incorrect props. Pass the correct set of props to the getHoverIconButtonBackground function.")}},i=(t,r)=>{switch(t){case"primary":return e.getDarkenColor("active01","contentBrand");case"secondary":return r?e.transparentizeAliasColor("active01","contentLight"):e.getDarkenColor("active01","containerDefault");case"outline":return r?e.transparentizeAliasColor("active01","contentLight"):e.getDarkenColor("active01","containerDefault");case"ghost":case"ghost-tertiary":return r?e.transparentizeAliasColor("active01","contentSubdued"):e.getDarkenColor("active01","containerDefault");case"inverse":return r?e.getDarkenColor("active01","contentSubdued"):e.getDarkenColor("active01","contentLight");case"ghost-inverse":return r?e.getDarkenColor("active01","contentSubdued"):e.getDarkenColor("active01","contentLight");default:console.warn("Error, incorrect props. Pass the correct set of props to the getHoverIconButtonBackground function.")}},u=t=>{switch(t){case"primary":case"ghost-inverse":return"inverse";case"secondary":case"ghost-tertiary":return"secondary";case"outline":case"ghost":case"inverse":return"brand";default:console.warn("Error, incorrect props. Pass the correct set of props to the getSpinnerType function.")}},l=t=>{switch(t){case"x-small":return"XS";case"small":return"S";case"medium":return"M";case"large":return"L";default:console.warn("Error, incorrect props. Pass the correct set of props to the getSpinnerSize function.")}},g=t=>{switch(t){case"large":return"56px";case"medium":return"48px";case"small":return"40px";case"x-small":return"32px";default:console.warn("Error, incorrect props. Pass the correct set of props to the getIconButtonSize function.")}},h=t=>t==="large"?`
      height: 24.5px;
      width: 24.5px;
    `:`
      height: 21px;
      width: 21px;
    `;exports.getActiveIconButtonBackground=i;exports.getDisabledBackgroundColor=n;exports.getHoverIconButtonBackground=s;exports.getIconButtonBackgroundColor=o;exports.getIconButtonBackgroundColorLoading=c;exports.getIconButtonSize=g;exports.getIconButtonSvgColor=a;exports.getSVGSize=h;exports.getSpinnerSize=l;exports.getSpinnerType=u;
