"use strict";(self.webpackChunkcomplianz_gdpr=self.webpackChunkcomplianz_gdpr||[]).push([[1799],{51799:(e,t,a)=>{a.r(t),a.d(t,{default:()=>l});var r=a(51609),s=a(45111);const l=(0,r.memo)((({value:e,onChange:t,required:a,disabled:l,id:u,name:n,placeholder:o})=>{const c=u||n,[p,d]=(0,r.useState)(""),[i,m]=(0,r.useState)("password"),[g,f]=(0,r.useState)("eye");return(0,r.useEffect)((()=>{d(e||"")}),[e]),(0,r.useEffect)((()=>{if(e===p)return;const a=setTimeout((()=>{t(p)}),400);return()=>{clearTimeout(a)}}),[p]),(0,r.createElement)("div",{className:"cmplz-input-group cmplz-password-input-group"},(0,r.createElement)("input",{type:i,id:c,name:n,value:p,onChange:e=>(e=>{d(e)})(e.target.value),required:a,disabled:l,className:"cmplz-text-input-group__input",placeholder:o}),(0,r.createElement)("div",{onClick:e=>(e=>{console.log("togle",e),"password"===i?(m("text"),f("eye-slash")):(m("password"),f("eye"))})(e)},(0,r.createElement)(s.default,{name:g,color:"grey",size:16})))}))}}]);