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