import{_ as m}from"./InputModelBase-CeuTljlj.js";import{_ as u,o as l,a as n,e as s,f as p,t as r,d as i,z as y,C as f,n as t,b}from"./_plugin-vue_export-helper-DfQgE-tC.js";const v={name:"InputTextarea",extends:m,props:{minHeight:{type:Number,default:100},resize:{type:Boolean,default:!1}}},B={class:"ainput-label"},g={key:0,class:"ainput-stern"},z=["autocomplete","name","required","disabled","readonly","placeholder"],I={key:0,class:"ainput-errormessage"};function N(e,o,d,k,q,w){return l(),n("div",{class:t(["ainput",{error:!e.model.valid,disabled:e.model.disabled}])},[s("label",null,[s("span",B,[p(r(e.model.label),1),e.model.required?(l(),n("span",g,"*")):i("",!0)]),y(s("textarea",{class:t(["ainput-input ainput-textarea",{resize:d.resize}]),style:b({"min-height":d.minHeight+"px"}),autocomplete:e.autocomplete,name:e.formElementName,required:e.model.required,disabled:e.model.disabled,readonly:e.model.readonly,placeholder:e.model.placeholder,"onUpdate:modelValue":o[0]||(o[0]=a=>e.model.value=a),onFocus:o[1]||(o[1]=(...a)=>e.onFocus&&e.onFocus(...a)),onBlur:o[2]||(o[2]=(...a)=>e.onBlur&&e.onBlur(...a)),onKeydown:o[3]||(o[3]=(...a)=>e.onKeydown&&e.onKeydown(...a)),onInvalid:o[4]||(o[4]=(...a)=>e.onInvalid&&e.onInvalid(...a))},null,46,z),[[f,e.model.value]])]),e.model.valid?i("",!0):(l(),n("p",I,r(e.model.message),1))],2)}const h=u(v,[["render",N]]);export{h as I};