import { $ as H, a as h } from "./utils-B6pV5ewr.es.js";
import x, { forwardRef as p, createContext as F } from "react";
import { $ as P } from "./useHover-BQRSM3qT.es.js";
import { $ as _ } from "./useFocusRing-FPt2Rwil.es.js";
import { $ as C } from "./mergeProps-Dsl8k3Ig.es.js";
const g = /* @__PURE__ */ F({}), I = /* @__PURE__ */ p(function(e, i) {
  [e, i] = H(e, i, g);
  let { isDisabled: a, isInvalid: d, isReadOnly: f, onHoverStart: u, onHoverChange: v, onHoverEnd: $, ...c } = e, { hoverProps: b, isHovered: s } = P({
    onHoverStart: u,
    onHoverChange: v,
    onHoverEnd: $,
    isDisabled: a
  }), { isFocused: n, isFocusVisible: t, focusProps: m } = _({
    within: !0
  });
  a ?? (a = !!e["aria-disabled"] && e["aria-disabled"] !== "false"), d ?? (d = !!e["aria-invalid"] && e["aria-invalid"] !== "false");
  let l = h({
    ...e,
    values: {
      isHovered: s,
      isFocusWithin: n,
      isFocusVisible: t,
      isDisabled: a,
      isInvalid: d
    },
    defaultClassName: "react-aria-Group"
  });
  var o, r;
  return /* @__PURE__ */ x.createElement("div", {
    ...C(c, m, b),
    ...l,
    ref: i,
    role: (o = e.role) !== null && o !== void 0 ? o : "group",
    slot: (r = e.slot) !== null && r !== void 0 ? r : void 0,
    "data-focus-within": n || void 0,
    "data-hovered": s || void 0,
    "data-focus-visible": t || void 0,
    "data-disabled": a || void 0,
    "data-invalid": d || void 0,
    "data-readonly": f || void 0
  }, l.children);
});
export {
  I as $,
  g as a
};
//# sourceMappingURL=Group-BQc9LuMT.es.js.map
