
/**
 * 由 Fantastic-admin 提供技术支持
 * Powered by Fantastic-admin
 * https://fantastic-admin.hurui.me
 */
  
import{Vt as e,Z as t,nn as n,ot as r}from"./src-CLMBPGj1.js";import{B as i}from"./reactivity.esm-bundler-D9OPVc9J.js";import{et as a,k as o,mt as s,qt as c,v as l,xt as u}from"./runtime-core.esm-bundler-D-xeQwTN.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(e){let n=e;return r(),(e,r)=>(s(),l(i(t),a(n,{onMousedown:r[0]||(r[0]=e=>{!e.defaultPrevented&&e.detail>1&&e.preventDefault()})}),{default:c(()=>[u(e.$slots,`default`)]),_:3},16))}}),f=o({__name:`Label`,props:{for:{},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(t){let r=t,o=n(r,`class`);return(t,n)=>(s(),l(i(d),a({"data-slot":`label`},i(o),{class:i(e)(`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`,r.class)}),{default:c(()=>[u(t.$slots,`default`)]),_:3},16,[`class`]))}});export{f as t};