"use strict";(self.webpackChunkcomplianz_gdpr=self.webpackChunkcomplianz_gdpr||[]).push([[2489],{32489:(e,t,a)=>{a.r(t),a.d(t,{default:()=>r});var u=a(51609);const r=(0,u.memo)((({value:e,onChange:t,required:a,disabled:r,id:n,name:l,placeholder:p})=>{const c=n||l,[i,s]=(0,u.useState)("");return(0,u.useEffect)((()=>{s(e||"")}),[e]),(0,u.useEffect)((()=>{if(e===i)return;const a=setTimeout((()=>{t(i)}),400);return()=>{clearTimeout(a)}}),[i]),(0,u.createElement)("div",{className:"cmplz-input-group cmplz-text-input-group"},(0,u.createElement)("input",{type:"text",id:c,name:l,value:i,onChange:e=>(e=>{s(e)})(e.target.value),required:a,disabled:r,className:"cmplz-text-input-group__input",placeholder:p}))}))}}]);