"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../_virtual/jsx-runtime.js"),s=require("styled-components"),r=require("../../utils/index.js"),i=require("../../icons/AlertCircle.js"),l=require("../../icons/AlertTriangle.js"),a=require("../../icons/CheckCircle.js"),n=require("../../icons/InfoCircle.js");function u(e,o){switch(e){case"neutral":return s.css`
        background-color: ${r.getColorAlias("containerSubtle")};
      `;case"neutral-alternative":return s.css`
        background-color: ${r.getColorAlias("containerDefault")};
      `;case"info":return s.css`
        background-color: ${r.getColorAlias("supportInfo02")};

        ${o} > svg {
          fill: ${r.getColorAlias("supportInfo")};
        }
      `;case"positive":return s.css`
        background-color: ${r.getColorAlias("supportPositive02")};

        ${o} > svg {
          fill: ${r.getColorAlias("supportPositive")};
        }
      `;case"warning":return s.css`
        background-color: ${r.getColorAlias("supportWarning02")};

        ${o} > svg {
          fill: ${r.getColorAlias("supportWarning")};
        }
      `;case"error":return s.css`
        background-color: ${r.getColorAlias("supportError02")};

        ${o} > svg {
          fill: ${r.getColorAlias("supportError")};
        }
      `}}function c(e,o){if(e||e===null)return e;switch(o){case"neutral":case"neutral-alternative":return e;case"info":return t.jsxRuntimeExports.jsx(n.default,{role:"img","aria-label":"info-icon"});case"positive":return t.jsxRuntimeExports.jsx(a.default,{role:"img","aria-label":"positive-icon"});case"warning":return t.jsxRuntimeExports.jsx(l.default,{role:"img","aria-label":"warning-icon"});case"error":return t.jsxRuntimeExports.jsx(i.default,{role:"img","aria-label":"error-icon"})}}exports.getIcon=c;exports.mapTypeToCss=u;
