"use client";
import * as o from "react";
import { Primitive as i } from "../../react-primitive/dist/index.js";
import { jsx as l } from "react/jsx-runtime";
var f = "Label", r = o.forwardRef((e, a) => /* @__PURE__ */ l(
  i.label,
  {
    ...e,
    ref: a,
    onMouseDown: (t) => {
      t.target.closest("button, input, select, textarea") || (e.onMouseDown?.(t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
    }
  }
));
r.displayName = f;
var n = r;
export {
  r as Label,
  n as Root
};
