import{slicedToArray as e}from"../../_virtual/_rollupPluginBabelHelpers.esm.js";import{TextField as r,InputAdornment as i,IconButton as n}from"@mui/material";import l from"@mui/icons-material/Visibility";import o from"@mui/icons-material/VisibilityOff";import t from"react";import{jsx as a}from"react/jsx-runtime";function u(u){var s=t.useState(!1),m=e(s,2),d=m[0],p=m[1];return a(r,{id:"outlined-multiline-flexible",fullWidth:!0,type:d?"text":"password",name:u.name,onChange:u.onChange,onFocus:u.onFocus,value:u.value||"",placeholder:u.placeholder,label:u.label,required:u.required,variant:u.variant,InputLabelProps:{shrink:null==u?void 0:u.shrink,required:u.required},InputProps:{readOnly:u.readOnly,endAdornment:a(i,{position:"end",children:a(n,{"aria-label":"toggle password visibility",onClick:function(){return p(function(e){return!e})},onMouseDown:function(e){e.preventDefault()},children:a(d?o:l,{})})})}})}export{u as default};
//# sourceMappingURL=PasswordInputComponent.esm.js.map
