import{_ as n}from"./FlashMessages-DImpr6PL.js";import{v as u}from"./v4-SoommWqA.js";import{c as r,o as a,f as o,b as d,t as l,p as m,n as c}from"./app-BLo7SiiE.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 p(t,s,e,v,h,V){return a(),r("div",{class:c(t.$attrs.class)},[e.label?(a(),r("label",{key:0,class:"form-label",for:e.id},l(e.label),9,_)):o("",!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?(a(),r("div",g,l(e.error),1)):o("",!0)],2)}const w=n(f,[["render",p]]);export{w as T};
