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