import { jsx as f } from "react/jsx-runtime";
import { useMemo as x } from "react";
import { c as S, s as u, a as v } from "../tools/tools.js";
const b = function(i) {
  const {
    as: p = "div",
    className: e,
    dropOldClass: n,
    grow: s,
    size: o,
    style: t,
    variables: a,
    variant: r,
    ...l
  } = i, m = x(() => {
    const c = S(
      !n && (s ? "spinner-grow" : "spinner-border"),
      r && `text-${r}`,
      o && (s ? "spinner-grow-sm" : "spinner-border-sm"),
      e
    ), d = u((w, y) => ({ tKey: v(y) }), a, t);
    return {
      className: c,
      style: d
    };
  }, [e, n, s, o, t, a, r]);
  return /* @__PURE__ */ f(p, { ...l, ...m });
};
b.displayName = "BRL.Spinner";
export {
  b as S
};
//# sourceMappingURL=spinner.js.map
