import { t as e } from "./utils-B7XIe3qq.js";
import { t } from "./dist-BCCeHAQm.js";
import { n } from "./dist-D0fg6pif.js";
import * as r from "react";
import { jsx as i } from "react/jsx-runtime";
import "react-dom";
//#region node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-primitive/dist/index.mjs
var a = [
	"a",
	"button",
	"div",
	"form",
	"h2",
	"h3",
	"img",
	"input",
	"label",
	"li",
	"nav",
	"ol",
	"p",
	"select",
	"span",
	"svg",
	"ul"
].reduce((e, t) => {
	let a = n(`Primitive.${t}`), o = r.forwardRef((e, n) => {
		let { asChild: r, ...o } = e, s = r ? a : t;
		return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ i(s, {
			...o,
			ref: n
		});
	});
	return o.displayName = `Primitive.${t}`, {
		...e,
		[t]: o
	};
}, {}), o = "Label", s = r.forwardRef((e, t) => /* @__PURE__ */ i(a.label, {
	...e,
	ref: t,
	onMouseDown: (t) => {
		t.target.closest("button, input, select, textarea") || (e.onMouseDown?.(t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
	}
}));
s.displayName = o;
var c = s, l = t("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), u = r.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ i(c, {
	ref: r,
	className: e(l(), t),
	...n
}));
u.displayName = c.displayName;
//#endregion
export { u as t };

//# sourceMappingURL=label-DaoC8KCo.js.map