import{r as e}from"./rolldown-runtime-CpWojdLp.js";import{n as t,r as n,t as r}from"./jsx-runtime-BrKkGzFB.js";import{t as i}from"./utils--B3oMbdy.js";import{D as a}from"./app-KzKSswgw.js";var o=t(),s=e(n(),1),c=r(),l=`Label`,u=s.forwardRef((e,t)=>(0,c.jsx)(a.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));u.displayName=l;var d=u;function f(e){let t=(0,o.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let a;t[3]===n?a=t[4]:(a=i(`text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,n),t[3]=n,t[4]=a);let s;return t[5]!==r||t[6]!==a?(s=(0,c.jsx)(d,{"data-slot":`label`,className:a,...r}),t[5]=r,t[6]=a,t[7]=s):s=t[7],s}export{f as t};