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