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