import{d as l,o,c as n,a as d,b as u,m as p,e as f,f as _,_ as m}from"./app-DZcRemIr.js";import{P as b,c as g}from"./index-CA0zsXLm.js";import{u as y}from"./SiifIconBC3-DYQKLzWx.js";var v=l({__name:"Label",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"label"}},setup(a){const s=a;return y(),(t,e)=>(o(),n(f(b),p(s,{onMousedown:e[0]||(e[0]=r=>{!r.defaultPrevented&&r.detail>1&&r.preventDefault()})}),{default:d(()=>[u(t.$slots,"default")]),_:3},16))}}),L=v;const q=l({__name:"Label",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},class:{type:[Boolean,null,String,Object,Array],required:!1,skipCheck:!0}},setup(a,{expose:s}){s();const t=a,e=_(()=>{const{class:i,...c}=t;return c}),r={props:t,delegatedProps:e,get cn(){return g},get Label(){return L}};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}});function w(a,s,t,e,r,i){return o(),n(e.Label,p({"data-slot":"label"},e.delegatedProps,{class:e.cn("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",e.props.class)}),{default:d(()=>[u(a.$slots,"default")]),_:3},16,["class"])}const B=m(q,[["render",w],["__file","/var/www/resources/js/components/ui/label/Label.vue"]]);export{B as L};
