import{b as s,j as o}from"./app-CyJEXGyv.js";import{P as i}from"./index-l-_2VD5G.js";import{a as n}from"./utils-D3rN0LeJ.js";var d="Label",l=s.forwardRef((e,a)=>o.jsx(i.label,{...e,ref:a,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));l.displayName=d;var u=l;function x({className:e,...a}){return o.jsx(u,{"data-slot":"label",className:n("text-foreground text-sm leading-4 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",e),...a})}export{x as L};
