import{r as u,n as m,aa as c,ac as d}from"./index.02c939b6.js";import{d as i,g as p,o as f,i as x,e as g,s as _,F as h}from"./index.9838a17e.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(l,{emit:o}){const s=u(),n=()=>{var e;if(!s.value)return;const t=s.value;t.style.height="auto";const a=(e=s.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,[g("textarea",{ref_key:"textareaElement",ref:s,class:m(["no-scrollbar",[c(v)(),l.modelValue?"set":"empty"]]),spellcheck:"false",value:l.modelValue,rows:"1",onInput:a[0]||(a[0]=e=>r(e.target))},null,42,y),_(" "+d(l.modelValue),1)],64))}});export{B as default};
