import { $, a as c } from "./utils-B6pV5ewr.es.js";
import { $ as u } from "./Hidden-X9vuhkMZ.es.js";
import l, { createContext as b } from "react";
import { $ as v } from "./useHover-BQRSM3qT.es.js";
import { $ as m } from "./useFocusRing-FPt2Rwil.es.js";
import { $ as x } from "./mergeProps-Dsl8k3Ig.es.js";
const H = /* @__PURE__ */ b({});
let p = (d) => {
  let { onHoverStart: e, onHoverChange: a, onHoverEnd: t, ...o } = d;
  return o;
};
const S = /* @__PURE__ */ u(function(e, a) {
  [e, a] = $(e, a, H);
  let { hoverProps: t, isHovered: o } = v(e), { 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: o,
      isFocused: i,
      isFocusVisible: r,
      isDisabled: e.disabled || !1,
      isInvalid: s
    },
    defaultClassName: "react-aria-Input"
  });
  return /* @__PURE__ */ l.createElement("input", {
    ...x(p(e), f, t),
    ...n,
    ref: a,
    "data-focused": i || void 0,
    "data-disabled": e.disabled || void 0,
    "data-hovered": o || void 0,
    "data-focus-visible": r || void 0,
    "data-invalid": s || void 0
  });
});
export {
  H as $,
  S as a
};
//# sourceMappingURL=Input-Cmg08oRP.es.js.map
