import{r as o,j as i}from"./index-C-9v46qO.js";import{a as u,b as c}from"./button-B-2orO_-.js";import{c as b}from"./utils-BQHNewu7.js";var v=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],w=v.reduce((r,a)=>{const e=u(`Primitive.${a}`),t=o.forwardRef((n,d)=>{const{asChild:m,...f}=n,p=m?e:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(p,{...f,ref:d})});return t.displayName=`Primitive.${a}`,{...r,[a]:t}},{}),x="Label",s=o.forwardRef((r,a)=>i.jsx(w.label,{...r,ref:a,onMouseDown:e=>{e.target.closest("button, input, select, textarea")||(r.onMouseDown?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}}));s.displayName=x;var l=s;const N=c("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),y=o.forwardRef(({className:r,...a},e)=>i.jsx(l,{ref:e,className:b(N(),r),...a}));y.displayName=l.displayName;export{y as L};
