import * as e from "react";
import p from "../../../../../../../../../_virtual/index9.js";
import { Flex as r } from "./flex.js";
import { spinnerPropDefs as c } from "./spinner.props.js";
import { extractProps as o } from "../helpers/extract-props.js";
import { marginPropDefs as f } from "../props/margin.props.js";
const E = e.forwardRef((t, s) => {
  const { className: i, children: a, loading: l, ...m } = o(t, c, f);
  if (!l) return a;
  const n = e.createElement("span", { ...m, ref: s, className: p("rt-Spinner", i) }, e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }), e.createElement("span", { className: "rt-SpinnerLeaf" }));
  return a === void 0 ? n : e.createElement(r, { asChild: !0, position: "relative", align: "center", justify: "center" }, e.createElement("span", null, e.createElement("span", { "aria-hidden": !0, style: { display: "contents", visibility: "hidden" }, inert: void 0 }, a), e.createElement(r, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, e.createElement("span", null, n))));
});
E.displayName = "Spinner";
export {
  E as Spinner
};
//# sourceMappingURL=spinner.js.map
