import{d as r,A as d,c as u,b as i,t as c,o as n,D as m,z as p,k as f,q as _}from"./app-z_grtNg1.js";const g={class:"text-sm text-red-600"},h={__name:"InputError",props:{message:{type:String}},setup(e){return(o,t)=>r((n(),u("div",null,[i("p",g,c(e.message),1)],512)),[[d,e.message]])}},y={__name:"TextInput",props:{modelValue:{type:String,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(e,{expose:o}){const t=m(e,"modelValue"),s=_(null);return p(()=>{s.value.hasAttribute("autofocus")&&s.value.focus()}),o({focus:()=>s.value.focus()}),(v,a)=>r((n(),u("input",{class:"border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm","onUpdate:modelValue":a[0]||(a[0]=l=>t.value=l),ref_key:"input",ref:s},null,512)),[[f,t.value]])}};export{y as _,h as a};
