import{d as r,i,x as d,g as o,b as m,t as l,o as n,r as p,m as _,y as f}from"./app-afdf1bec.js";const v={class:"text-sm text-red-600"},k=r({__name:"InputError",props:{message:{}},setup(e){return(u,t)=>i((n(),o("div",null,[m("p",v,l(e.message),1)],512)),[[d,e.message]])}}),g={class:"block font-medium text-sm text-gray-700"},h={key:0},x={key:1},$=r({__name:"InputLabel",props:{value:{}},setup(e){return(u,t)=>(n(),o("label",g,[e.value?(n(),o("span",h,l(e.value),1)):(n(),o("span",x,[p(u.$slots,"default")]))]))}}),b=["value"],V=r({__name:"TextInput",props:{modelValue:{}},emits:["update:modelValue"],setup(e,{expose:u}){const t=f(null);return _(()=>{var s,a;(s=t.value)!=null&&s.hasAttribute("autofocus")&&((a=t.value)==null||a.focus())}),u({focus:()=>{var s;return(s=t.value)==null?void 0:s.focus()}}),(s,a)=>(n(),o("input",{class:"border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm",value:e.modelValue,onInput:a[0]||(a[0]=c=>s.$emit("update:modelValue",c.target.value)),ref_key:"input",ref:t},null,40,b))}});export{$ as _,V as a,k as b};
