"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(86087),l=a(51609);const r=(0,l.memo)((({value:e,onChange:t,required:a,disabled:r,id:n,name:p,placeholder:c})=>{const i=n||p,[s,o]=(0,l.useState)("");return(0,l.useEffect)((()=>{o(e||"")}),[e]),(0,l.useEffect)((()=>{if(e===s)return;const a=setTimeout((()=>{t(s)}),400);return()=>{clearTimeout(a)}}),[s]),(0,u.createElement)("div",{className:"cmplz-input-group cmplz-text-input-group"},(0,u.createElement)("input",{type:"text",id:i,name:p,value:s,onChange:e=>(e=>{o(e)})(e.target.value),required:a,disabled:r,className:"cmplz-text-input-group__input",placeholder:c}))}))}}]);