import{r as u,n as m,aa as c,ac as d}from"./index.ef672c15.js";import{d as i,h as p,o as f,a as x,f as _,v as g,F as h}from"./index.477073af.js";import{t as v}from"./theme.43fc44e2.js";const y=["value"],B=i({__name:"InputTextarea",props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(s,{emit:o}){const l=u(),n=()=>{var e;if(!l.value)return;const t=l.value;t.style.height="auto";const a=(e=l.value)==null?void 0:e.scrollHeight;t.style.height=`${a}px`};p(()=>n());const r=t=>{n();const e=t.value;o("update:modelValue",e)};return(t,a)=>(f(),x(h,null,[_("textarea",{ref_key:"textareaElement",ref:l,class:m(["no-scrollbar",[c(v)(),s.modelValue?"set":"empty"]]),spellcheck:"false",value:s.modelValue,rows:"1",onInput:a[0]||(a[0]=e=>r(e.target))},null,42,y),g(" "+d(s.modelValue),1)],64))}});export{B as default};
