import{C as e,D as t,F as n,N as r,Q as i,U as a,b as o,m as s,p as c,q as l,z as u}from"./app-gZlh9fBQ.js";var d={class:`text-sm text-red-600 dark:text-red-400`},f=t({__name:`InputError`,props:{message:{}},setup(t){return(r,c)=>a((n(),e(`div`,null,[o(`p`,d,i(t.message),1)],512)),[[s,t.message]])}}),p=t({__name:`TextInput`,props:{modelValue:{required:!0},modelModifiers:{}},emits:[`update:modelValue`],setup(t,{expose:i}){let o=u(t,`modelValue`),s=l(null);return r(()=>{s.value?.hasAttribute(`autofocus`)&&s.value?.focus()}),i({focus:()=>s.value?.focus()}),(t,r)=>a((n(),e(`input`,{class:`rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-300 dark:focus:border-indigo-600 dark:focus:ring-indigo-600`,"onUpdate:modelValue":r[0]||=e=>o.value=e,ref_key:`input`,ref:s},null,512)),[[c,o.value]])}});export{f as n,p as t};