import n from"./B7Hqpkvs.js";import{d as u,N as i,u as m,c as p,a as r,o as c,e as f,f as v,t as V,g as b,l as _}from"./dVzHJMF1.js";const y={class:"w-full"},g=["for"],h=u({__name:"Input",props:i({label:{},id:{},value:{default:()=>{}},placeholder:{default:()=>{}},name:{default:()=>{}},disabled:{type:Boolean},type:{default:"text"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(a){const o=m(a,"modelValue"),l=p({get:()=>{var e;return o.value||((e=a.value)==null?void 0:e.toString())},set:e=>{o.value=e}});return(e,d)=>{const t=n;return c(),r("div",y,[f("label",{for:e.id},V(e.label),9,g),v(t,{id:e.id,modelValue:b(l),"onUpdate:modelValue":d[0]||(d[0]=s=>_(l)?l.value=s:null),type:e.type,name:e.name,placeholder:e.placeholder,disabled:e.disabled,class:"w-full"},null,8,["id","modelValue","type","name","placeholder","disabled"])])}}}),M=Object.assign(h,{__name:"UiFormInput"});export{M as _};
