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