import { $, a as c } from "./utils-CrjF8U_E.es.js";
import { $ as u } from "./Hidden-X9vuhkMZ.es.js";
import l, { createContext as b } from "react";
import { $ as v } from "./useHover-BiPYlZr_.es.js";
import { $ as m } from "./useFocusRing-CZQUsztf.es.js";
import { $ as x } from "./mergeProps-B-cqsBhL.es.js";
const H = /* @__PURE__ */ b({});
let F = (o) => {
  let { onHoverStart: e, onHoverChange: a, onHoverEnd: t, ...d } = o;
  return d;
};
const S = /* @__PURE__ */ u(function(e, a) {
  [e, a] = $(e, a, H);
  let { hoverProps: t, isHovered: d } = v({
    ...e,
    isDisabled: e.disabled
  }), { isFocused: i, isFocusVisible: r, focusProps: f } = m({
    isTextInput: !0,
    autoFocus: e.autoFocus
  }), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", n = c({
    ...e,
    values: {
      isHovered: d,
      isFocused: i,
      isFocusVisible: r,
      isDisabled: e.disabled || !1,
      isInvalid: s
    },
    defaultClassName: "react-aria-Input"
  });
  return /* @__PURE__ */ l.createElement("input", {
    ...x(F(e), f, t),
    ...n,
    ref: a,
    "data-focused": i || void 0,
    "data-disabled": e.disabled || void 0,
    "data-hovered": d || void 0,
    "data-focus-visible": r || void 0,
    "data-invalid": s || void 0
  });
});
export {
  H as $,
  S as a
};
//# sourceMappingURL=Input-CXkgRPwc.es.js.map
