import{_ as o,o as i,c as n,aq as u,d as _,t as m,z as r,a as y}from"./entry.816e6e91.js";const f={props:{label:{type:String,required:!1},labelClasses:{type:String},accept:{type:String,default:""},min:{type:Number},max:{type:Number},type:{type:String,default:"text"},id:{type:String,required:!1},placeholder:{type:String,required:!1},size:{type:String,default:"default"},valid:{type:Boolean,default:!0},classes:{type:String},success:{type:String,default:""},error:{type:String,default:""},disabled:{type:Boolean,default:!1},isRequired:{type:Boolean,default:!1},modelValue:{type:[String,Number],description:"Input value"}},methods:{handleInput(t){this.$emit("update:modelValue",t.target.value)},getClasses:(t,a,e)=>{let l,d;return l=t?`form-control-${t}`:"",d=a?"":"invalid",`${l||""} ${d||""} ${e||""}`}}},g={class:"form-group"},b=["for"],p={key:0},h=["type","min","max","id","placeholder","isRequired","disabled","value"];function S(t,a,e,l,d,s){return i(),n("div",g,[e.label?(i(),n("label",{key:0,for:e.id,class:u(["mb-1",e.labelClasses])},[_(m(e.label)+" ",1),e.isRequired?(i(),n("span",p,"*")):r("",!0)],10,b)):r("",!0),y("input",{type:e.type,min:e.min,max:e.max,id:e.id,class:u(["form-control",s.getClasses(e.size,e.valid,e.classes)]),placeholder:e.placeholder,isRequired:e.isRequired,disabled:e.disabled,value:e.modelValue,onInput:a[0]||(a[0]=(...c)=>s.handleInput&&s.handleInput(...c))},null,42,h)])}const x=o(f,[["render",S],["__scopeId","data-v-42a1cbce"]]);export{x as _};
