"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[873],{73254:(e,t,a)=>{a.r(t),a.d(t,{default:()=>l});var r=a(86087),u=a(51609);const l=(0,u.memo)((({value:e,onChange:t,required:a,placeholder:l,disabled:n,id:c,name:s})=>{const i=c||s,p=(0,u.useRef)(null),[o,d]=(0,u.useState)("");return(0,u.useEffect)((()=>{d(e)}),[]),(0,u.useEffect)((()=>{if(o===e)return;const a=setTimeout((()=>{t(o)}),400);return()=>{clearTimeout(a)}}),[o]),(0,u.useEffect)((()=>{var e;p.current&&((e=p.current).style.height="auto",e.style.height=e.scrollHeight+"px")}),[e]),(0,r.createElement)("div",{className:"cmplz-input-group cmplz-text-area-input-group"},(0,r.createElement)("textarea",{ref:p,id:i,name:s,value:o,onChange:e=>{(e=>{d(e)})(e.target.value)},required:a,placeholder:l,disabled:n,className:"cmplz-text-area-input-group__input"}))}))}}]);