"use strict";(self.webpackChunkcomplianz_gdpr=self.webpackChunkcomplianz_gdpr||[]).push([[873],{73254:(e,t,a)=>{a.r(t),a.d(t,{default:()=>u});var r=a(51609);const u=(0,r.memo)((({value:e,onChange:t,required:a,placeholder:u,disabled:l,id:n,name:c})=>{const s=n||c,i=(0,r.useRef)(null),[p,o]=(0,r.useState)("");return(0,r.useEffect)((()=>{o(e)}),[]),(0,r.useEffect)((()=>{if(p===e)return;const a=setTimeout((()=>{t(p)}),400);return()=>{clearTimeout(a)}}),[p]),(0,r.useEffect)((()=>{var e;i.current&&((e=i.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:i,id:s,name:c,value:p,onChange:e=>{(e=>{o(e)})(e.target.value)},required:a,placeholder:u,disabled:l,className:"cmplz-text-area-input-group__input"}))}))}}]);