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