import a from"./FormGroup.efd02a6a.js";import l from"./Label.9d0d3ee0.js";import s from"./ErrorText.b141a597.js";import u from"./HelperText.14a7ed0b.js";import{n}from"./plugin-vue2_normalizer.000ba15c.js";const d="w-full border-medium-emphasis text-body px-2 border rounded bg-surface-1 focus:outline-none focus:border-primary",p={props:{id:{type:String,required:!1},label:{type:String,required:!0},required:{type:Boolean,default:()=>!1},errors:{type:Array},placeholder:{type:String},value:{required:!1,default:""},rows:{default:3,required:!1},helperText:{type:String}},components:{FormGroup:a,Label:l,ErrorText:s,HelperText:u},data(){return{defaultClasses:d}},methods:{updateValue(t){this.$emit("input",t)}}};var i=function(){var e=this,r=e._self._c;return r("FormGroup",[r("Label",{attrs:{errors:e.errors,forId:e.id}},[e._v(e._s(e.label))]),r("textarea",{class:[e.defaultClasses],attrs:{id:e.id,required:e.required,rows:e.rows,placeholder:e.placeholder},domProps:{value:e.value},on:{input:function(o){return e.updateValue(o.target.value)}}}),e.errors?r("ErrorText",[e._v(e._s(e.errors[0]))]):e._e(),e.helperText&&!e.errors?r("HelperText",[e._v(e._s(e.helperText))]):e._e()],1)},f=[],m=n(p,i,f,!1,null,null,null,null);const b=m.exports;export{b as default};
