import{_ as n}from"./FlashMessages-ByEdcHWZ.js";import{v as u}from"./v4-SoommWqA.js";import{o as r,c as a,t as o,h as l,b as d,p as m,n as c}from"./app-CK3cEAAe.js";const f={inheritAttrs:!1,props:{id:{type:String,default(){return`textarea-input-${u()}`}},error:String,label:String,modelValue:String,rows:{type:Number,default:3}},emits:["update:modelValue"],methods:{focus(){this.$refs.input.focus()},select(){this.$refs.input.select()}}},_=["for"],b=["id","rows","value"],g={key:1,class:"form-error"};function h(t,s,e,p,v,V){return r(),a("div",{class:c(t.$attrs.class)},[e.label?(r(),a("label",{key:0,class:"form-label",for:e.id},o(e.label),9,_)):l("",!0),d("textarea",m({id:e.id,ref:"input"},{...t.$attrs,class:null},{class:["form-textarea",{error:e.error}],rows:e.rows,value:e.modelValue,onInput:s[0]||(s[0]=i=>t.$emit("update:modelValue",i.target.value))}),null,16,b),e.error?(r(),a("div",g,o(e.error),1)):l("",!0)],2)}const w=n(f,[["render",h]]);export{w as T};
