import { prepareComponentToken as n, prepareToken as m } from "./index.mjs";
import s from "../../_util/capitalize.mjs";
import "../../../../@ant-design/cssinjs/es/extractStyle.mjs";
import "../../../../@ant-design/cssinjs/es/hooks/useCacheToken.mjs";
import "react";
import "../../../../@ant-design/cssinjs/es/StyleContext.mjs";
import "../../../../@ant-design/cssinjs/es/theme/createTheme.mjs";
import "../../../../rc-util/es/warning.mjs";
import "../../../../@ant-design/cssinjs/es/theme/ThemeCache.mjs";
import "../../../../@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.mjs";
import "../../../../@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.mjs";
import "../../../../@ant-design/cssinjs/es/hooks/useHMR.mjs";
import "../../../../@ant-design/cssinjs/es/transformers/legacyLogicalProperties.mjs";
import { genSubStyleComponent as i } from "../../theme/util/genComponentStyleHook.mjs";
const t = (r, o, p) => {
  const e = s(p);
  return {
    [`${r.componentCls}${r.componentCls}-${o}`]: {
      color: r[`color${p}`],
      background: r[`color${e}Bg`],
      borderColor: r[`color${e}Border`],
      [`&${r.componentCls}-borderless`]: {
        borderColor: "transparent"
      }
    }
  };
}, B = i(["Tag", "status"], (r) => {
  const o = m(r);
  return [t(o, "success", "Success"), t(o, "processing", "Info"), t(o, "error", "Error"), t(o, "warning", "Warning")];
}, n);
export {
  B as default
};
