"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_rollupPluginBabelHelpers.js"),r=require("@mui/material"),i=require("@mui/icons-material/Visibility"),n=require("@mui/icons-material/VisibilityOff"),l=require("react"),t=require("react/jsx-runtime");exports.default=function(u){var a=l.useState(!1),o=e.slicedToArray(a,2),s=o[0],d=o[1];return t.jsx(r.TextField,{id:"outlined-multiline-flexible",fullWidth:!0,type:s?"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:t.jsx(r.InputAdornment,{position:"end",children:t.jsx(r.IconButton,{"aria-label":"toggle password visibility",onClick:function(){return d(function(e){return!e})},onMouseDown:function(e){e.preventDefault()},children:s?t.jsx(n,{}):t.jsx(i,{})})})}})};
//# sourceMappingURL=PasswordInputComponent.js.map
