import{d as l,g as d,o as n,w as u,q as p,l as c,u as o,B as m,G as _,a as f,z as x,H as v,D as w,b as h,t as V,c as y}from"./app-DCwpEDbg.js";import{P as B,a as b}from"./AppLogoIcon.vue_vue_type_script_setup_true_lang-C7FVy0Gu.js";import{a as k,b as C}from"./useForwardExpose-sC1iCvAF.js";const P=l({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{default:"label"}},setup(t){const s=t;return k(),(a,r)=>(n(),d(o(B),c(s,{onMousedown:r[0]||(r[0]=e=>{!e.defaultPrevented&&e.detail>1&&e.preventDefault()})}),{default:u(()=>[p(a.$slots,"default")]),_:3},16))}}),z=l({__name:"Input",props:{defaultValue:{},modelValue:{},class:{}},emits:["update:modelValue"],setup(t,{emit:s}){const a=t,e=C(a,"modelValue",s,{passive:!0,defaultValue:a.defaultValue});return(D,i)=>m((n(),f("input",{"onUpdate:modelValue":i[0]||(i[0]=g=>v(e)?e.value=g:null),"data-slot":"input",class:x(o(b)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",a.class))},null,2)),[[_,o(e)]])}}),$={class:"text-sm text-red-600 dark:text-red-500"},I=l({__name:"InputError",props:{message:{}},setup(t){return(s,a)=>m((n(),f("div",null,[h("p",$,V(s.message),1)],512)),[[w,s.message]])}}),L=l({__name:"Label",props:{for:{},asChild:{type:Boolean},as:{},class:{}},setup(t){const s=t,a=y(()=>{const{class:r,...e}=s;return e});return(r,e)=>(n(),d(o(P),c({"data-slot":"label"},a.value,{class:o(b)("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",s.class)}),{default:u(()=>[p(r.$slots,"default")]),_:3},16,["class"]))}});export{L as _,z as a,I as b};
