"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[2489],{32489:(e,t,a)=>{a.r(t),a.d(t,{default:()=>l});var u=a(51609);const l=(0,u.memo)((({value:e,onChange:t,required:a,disabled:l,id:r,name:n,placeholder:p})=>{const c=r||n,[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:n,value:i,onChange:e=>(e=>{s(e)})(e.target.value),required:a,disabled:l,className:"cmplz-text-input-group__input",placeholder:p}))}))}}]);