import{P as f,c}from"./index-C32fBP6Q.js";import{f as _}from"./useForwardExpose-Cx2E44RD.js";import{d as l,o as d,g as n,w as p,M as u,N as i,e as o,m}from"./app-bWy6VYs1.js";var b=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 _(),(r,a)=>(d(),n(o(f),i(t,{onMousedown:a[0]||(a[0]=e=>{!e.defaultPrevented&&e.detail>1&&e.preventDefault()})}),{default:p(()=>[u(r.$slots,"default")]),_:3},16))}}),g=b;const x=l({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{},class:{}},setup(s){const t=s,r=m(()=>{const{class:a,...e}=t;return e});return(a,e)=>(d(),n(o(g),i({"data-slot":"label"},r.value,{class:o(c)("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",t.class)}),{default:p(()=>[u(a.$slots,"default")]),_:3},16,["class"]))}});export{x as _};
