import{j as u,S as i,c as t,a as c,t as d,o as s,z as m,X as p,N as _,r as g,v as f}from"./app-DE5EohoY.js";const k={class:"text-sm text-red-600 dark:text-red-400"},S={__name:"InputError",props:{message:{type:String}},setup(e){return(a,r)=>u((s(),t("div",null,[c("p",k,d(e.message),1)],512)),[[i,e.message]])}},v={class:"block text-sm font-medium text-gray-700 dark:text-gray-300"},x={key:0},y={key:1},V={__name:"InputLabel",props:{value:{type:String}},setup(e){return(a,r)=>(s(),t("label",v,[e.value?(s(),t("span",x,d(e.value),1)):(s(),t("span",y,[m(a.$slots,"default")]))]))}},M={__name:"TextInput",props:{modelValue:{type:String,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(e,{expose:a}){const r=p(e,"modelValue"),o=g(null);return _(()=>{o.value.hasAttribute("autofocus")&&o.value.focus()}),a({focus:()=>o.value.focus()}),(b,n)=>u((s(),t("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":n[0]||(n[0]=l=>r.value=l),ref_key:"input",ref:o},null,512)),[[f,r.value]])}};export{V as _,M as a,S as b};
