import{$t as e,Kt as t,Mt as n,Tn as r,X as i,or as a,st as o}from"./dist-CoD0k1Bd.js";import{i as s,t as c}from"./Primitive-GZZWGonv.js";import{t as l}from"./useForwardExpose--BtaxwkE.js";import{s as u}from"./shared-C4LIOFnZ.js";var d=o({__name:`Label`,props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`label`}},setup(o){let s=o;return l(),(o,l)=>(t(),i(a(c),n(s,{onMousedown:l[0]||=e=>{!e.defaultPrevented&&e.detail>1&&e.preventDefault()}}),{default:r(()=>[e(o.$slots,`default`)]),_:3},16))}}),f=o({__name:`Label`,props:{for:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(o){let c=o,l=u(c,`class`);return(o,u)=>(t(),i(a(d),n({"data-slot":`label`},a(l),{class:a(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:r(()=>[e(o.$slots,`default`)]),_:3},16,[`class`]))}});export{f as t};