import{e}from"./BxzO3ZRt.js";import{P as a,r as s,c as t}from"./CiTEG3KO.js";import{d as l,V as o,y as r,C as d,a3 as n,a9 as p,J as u}from"./CNYe4-mv.js";var i=l({__name:"Label",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"label"}},setup(s){const t=s;return e(),(e,s)=>(r(),o(u(a),p(t,{onMousedown:s[0]||(s[0]=e=>{!e.defaultPrevented&&e.detail>1&&e.preventDefault()})}),{default:d(()=>[n(e.$slots,"default")]),_:3},16))}});const c=l({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const a=e,l=s(a,"class");return(e,s)=>(r(),o(u(i),p({"data-slot":"label"},u(l),{class:u(t)("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",a.class)}),{default:d(()=>[n(e.$slots,"default")]),_:3},16,["class"]))}});export{c as _};
