"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(51609),u=a(10790);const l=(0,r.memo)(({value:e,onChange:t,required:a,placeholder:l,disabled:s,id:n,name:c})=>{const i=n||c,p=(0,r.useRef)(null),[o,d]=(0,r.useState)("");return(0,r.useEffect)(()=>{d(e)},[]),(0,r.useEffect)(()=>{if(o===e)return;const a=setTimeout(()=>{t(o)},400);return()=>{clearTimeout(a)}},[o]),(0,r.useEffect)(()=>{var e;p.current&&((e=p.current).style.height="auto",e.style.height=e.scrollHeight+"px")},[e]),(0,u.jsx)("div",{className:"cmplz-input-group cmplz-text-area-input-group",children:(0,u.jsx)("textarea",{ref:p,id:i,name:c,value:o,onChange:e=>{(e=>{d(e)})(e.target.value)},required:a,placeholder:l,disabled:s,className:"cmplz-text-area-input-group__input"})})})}}]);