import{B as e,K as t,M as n,T as r,Y as i,ot as a,wt as o}from"./dist-B4ulKgpj.js";import{i as s,t as c}from"./Primitive-CN38JRWA.js";import{t as l}from"./useForwardExpose-EAYoNPYk.js";import{v as u}from"./app-DUC9tg6Z.js";var d=n({__name:`Label`,props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`label`}},setup(n){let s=n;return l(),(n,l)=>(t(),r(o(c),e(s,{onMousedown:l[0]||=e=>{!e.defaultPrevented&&e.detail>1&&e.preventDefault()}}),{default:a(()=>[i(n.$slots,`default`)]),_:3},16))}}),f=n({__name:`Label`,props:{for:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(n){let c=n,l=u(c,`class`);return(n,u)=>(t(),r(o(d),e({"data-slot":`label`},o(l),{class:o(s)(`flex items-center gap-2 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`,c.class)}),{default:a(()=>[i(n.$slots,`default`)]),_:3},16,[`class`]))}});export{f as t};