import { s as __toESM } from "./chunk-BNovOVIE.js";
import { g as cn, r as cva } from "./button-Dj4BTre0.js";
import { t as require_react } from "./react-DA-nE2FX.js";
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
import { t as require_jsx_runtime } from "./jsx-runtime-COBk7ree.js";
import { _t as Primitive } from "./zod-BWkcDORu.js";
var import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1), NAME = "Label", Label$1 = import_react.forwardRef((e, c) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.label, {
  ...e,
  ref: c,
  onMouseDown: (c2) => {
    var _a;
    c2.target.closest("button, input, select, textarea") || ((_a = e.onMouseDown) == null ? void 0 : _a.call(e, c2), !c2.defaultPrevented && c2.detail > 1 && c2.preventDefault());
  }
}));
Label$1.displayName = NAME;
var Root = Label$1, import_compiler_runtime = require_compiler_runtime(), labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), Label = import_react.forwardRef((e, l) => {
  let u = (0, import_compiler_runtime.c)(9), d, f;
  u[0] === e ? (d = u[1], f = u[2]) : ({ className: d, ...f } = e, u[0] = e, u[1] = d, u[2] = f);
  let p;
  u[3] === d ? p = u[4] : (p = cn(labelVariants(), d), u[3] = d, u[4] = p);
  let m;
  return u[5] !== f || u[6] !== l || u[7] !== p ? (m = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root, {
    ref: l,
    className: p,
    ...f
  }), u[5] = f, u[6] = l, u[7] = p, u[8] = m) : m = u[8], m;
});
Label.displayName = Root.displayName;
export {
  Label as t
};
