import { jsxs as i, jsx as r } from "react/jsx-runtime";
import { a as c } from "./index.CfQlFjZU.js";
import { c as s } from "./index.CfM2L_w0.js";
import { n as _ } from "./index.B0wX8xO7.js";
import { G as l } from "./index.dWlEA7uO.js";
import { L as m } from "./LoadingState.BcrOPPws.js";
const d = "creator_container_Ctxsz", v = "creator_large_GxH9n", u = "creator_medium_nS7HT", f = "creator_small_pE-ZJ", g = "creator_status_DB7SJ", p = "creator_variant_default_ekWdy", x = "creator_variant_info_Mgk7X", S = "creator_variant_success_lDiVb", w = "creator_variant_warning_SLWmk", N = "creator_variant_error_6NH4i", h = "creator_variant_loading_fE16v", k = "creator_text_mCzDR", t = { container: d, large: v, medium: u, small: f, status: g, variant_default: p, variant_info: x, variant_success: S, variant_warning: w, variant_error: N, variant_loading: h, text: k }, y = ({
  status: a,
  text: n,
  size: e = "medium"
}) => {
  const o = s(
    t.container,
    t[e],
    t[`variant_${a || "default"}`]
  );
  return { status: a, text: n, containerClassName: o };
}, z = ({ status: a, text: n, containerClassName: e }) => /* @__PURE__ */ i("div", { className: e, "data-testid": "status-container", children: [
  /* @__PURE__ */ r(
    _,
    {
      value: a === "loading",
      then: /* @__PURE__ */ r(m, { "data-testid": "status-loading", type: "wheel", size: "small" }),
      otherwise: /* @__PURE__ */ r(
        l,
        {
          "data-testid": "status-icon",
          className: s(t.status, {
            [t.variant_default]: a === "default" || !a,
            [t.variant_info]: a === "info",
            [t.variant_success]: a === "success",
            [t.variant_warning]: a === "warning",
            [t.variant_error]: a === "error"
          })
        }
      )
    }
  ),
  /* @__PURE__ */ r("span", { className: t.text, "data-testid": "status-text", children: n })
] }), j = c(z, y);
export {
  z as S,
  j as a,
  y as u
};
