1 line
66 KiB
JSON
1 line
66 KiB
JSON
{"ast":null,"code":"import React, { createRef, Component } from 'react';\nimport { DomHandler, ZIndexUtils, ConnectedOverlayScrollHandler, ObjectUtils, classNames } from 'primereact/utils';\nimport { tip } from 'primereact/tooltip';\nimport { InputText } from 'primereact/inputtext';\nimport { CSSTransition } from 'primereact/csstransition';\nimport PrimeReact, { localeOption } from 'primereact/api';\nimport { OverlayService } from 'primereact/overlayservice';\nimport { Portal } from 'primereact/portal';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\n\nfunction _createSuper(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct();\n\n return function _createSuperInternal() {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nvar Password = /*#__PURE__*/function (_Component) {\n _inherits(Password, _Component);\n\n var _super = _createSuper(Password);\n\n function Password(props) {\n var _this;\n\n _classCallCheck(this, Password);\n\n _this = _super.call(this, props);\n _this.state = {\n overlayVisible: false,\n meter: null,\n infoText: _this.promptLabel(),\n focused: false,\n unmasked: false\n };\n _this.onFocus = _this.onFocus.bind(_assertThisInitialized(_this));\n _this.onBlur = _this.onBlur.bind(_assertThisInitialized(_this));\n _this.onKeyup = _this.onKeyup.bind(_assertThisInitialized(_this));\n _this.onInput = _this.onInput.bind(_assertThisInitialized(_this));\n _this.onMaskToggle = _this.onMaskToggle.bind(_assertThisInitialized(_this));\n _this.onOverlayEnter = _this.onOverlayEnter.bind(_assertThisInitialized(_this));\n _this.onOverlayEntered = _this.onOverlayEntered.bind(_assertThisInitialized(_this));\n _this.onOverlayExit = _this.onOverlayExit.bind(_assertThisInitialized(_this));\n _this.onOverlayExited = _this.onOverlayExited.bind(_assertThisInitialized(_this));\n _this.onPanelClick = _this.onPanelClick.bind(_assertThisInitialized(_this));\n _this.overlayRef = /*#__PURE__*/createRef();\n _this.inputRef = /*#__PURE__*/createRef(_this.props.inputRef);\n _this.mediumCheckRegExp = new RegExp(_this.props.mediumRegex);\n _this.strongCheckRegExp = new RegExp(_this.props.strongRegex);\n return _this;\n }\n\n _createClass(Password, [{\n key: \"promptLabel\",\n value: function promptLabel() {\n return this.props.promptLabel || localeOption('passwordPrompt');\n }\n }, {\n key: \"weakLabel\",\n value: function weakLabel() {\n return this.props.weakLabel || localeOption('weak');\n }\n }, {\n key: \"mediumLabel\",\n value: function mediumLabel() {\n return this.props.mediumLabel || localeOption('medium');\n }\n }, {\n key: \"strongLabel\",\n value: function strongLabel() {\n return this.props.strongLabel || localeOption('strong');\n }\n }, {\n key: \"isFilled\",\n value: function isFilled() {\n return this.props.value != null && this.props.value.toString().length > 0 || this.props.defaultValue != null && this.props.defaultValue.toString().length > 0 || this.inputRef && this.inputRef.current && DomHandler.hasClass(this.inputRef.current, 'p-filled');\n }\n }, {\n key: \"getInputType\",\n value: function getInputType() {\n return this.state.unmasked ? 'text' : 'password';\n }\n }, {\n key: \"updateLabels\",\n value: function updateLabels() {\n if (this.state.meter) {\n var label = null;\n\n switch (this.state.meter.strength) {\n case 'weak':\n label = this.weakLabel();\n break;\n\n case 'medium':\n label = this.mediumLabel();\n break;\n\n case 'strong':\n label = this.strongLabel();\n break;\n }\n\n if (label && this.state.infoText !== label) {\n this.setState({\n infoText: label\n });\n }\n } else {\n var promptLabel = this.promptLabel();\n\n if (this.state.infoText !== promptLabel) {\n this.setState({\n infoText: promptLabel\n });\n }\n }\n }\n }, {\n key: \"onPanelClick\",\n value: function onPanelClick(event) {\n if (this.props.feedback) {\n OverlayService.emit('overlay-click', {\n originalEvent: event,\n target: this.container\n });\n }\n }\n }, {\n key: \"onMaskToggle\",\n value: function onMaskToggle() {\n this.setState(function (prevState) {\n return {\n unmasked: !prevState.unmasked\n };\n });\n }\n }, {\n key: \"showOverlay\",\n value: function showOverlay() {\n this.updateLabels();\n this.setState({\n overlayVisible: true\n });\n }\n }, {\n key: \"hideOverlay\",\n value: function hideOverlay() {\n this.setState({\n overlayVisible: false\n });\n }\n }, {\n key: \"alignOverlay\",\n value: function alignOverlay() {\n if (this.inputRef && this.inputRef.current) {\n DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact.appendTo);\n }\n }\n }, {\n key: \"onOverlayEnter\",\n value: function onOverlayEnter() {\n ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);\n this.alignOverlay();\n }\n }, {\n key: \"onOverlayEntered\",\n value: function onOverlayEntered() {\n this.bindScrollListener();\n this.bindResizeListener();\n this.props.onShow && this.props.onShow();\n }\n }, {\n key: \"onOverlayExit\",\n value: function onOverlayExit() {\n this.unbindScrollListener();\n this.unbindResizeListener();\n }\n }, {\n key: \"onOverlayExited\",\n value: function onOverlayExited() {\n ZIndexUtils.clear(this.overlayRef.current);\n this.props.onHide && this.props.onHide();\n }\n }, {\n key: \"onFocus\",\n value: function onFocus(event) {\n var _this2 = this;\n\n event.persist();\n this.setState({\n focused: true\n }, function () {\n if (_this2.props.feedback) {\n _this2.showOverlay();\n }\n\n if (_this2.props.onFocus) {\n _this2.props.onFocus(event);\n }\n });\n }\n }, {\n key: \"onBlur\",\n value: function onBlur(event) {\n var _this3 = this;\n\n event.persist();\n this.setState({\n focused: false\n }, function () {\n if (_this3.props.feedback) {\n _this3.hideOverlay();\n }\n\n if (_this3.props.onBlur) {\n _this3.props.onBlur(event);\n }\n });\n }\n }, {\n key: \"onKeyup\",\n value: function onKeyup(e) {\n var _this4 = this;\n\n var keyCode = e.keyCode || e.which;\n\n if (this.props.feedback) {\n var value = e.target.value;\n var label = null;\n var meter = null;\n\n switch (this.testStrength(value)) {\n case 1:\n label = this.weakLabel();\n meter = {\n strength: 'weak',\n width: '33.33%'\n };\n break;\n\n case 2:\n label = this.mediumLabel();\n meter = {\n strength: 'medium',\n width: '66.66%'\n };\n break;\n\n case 3:\n label = this.strongLabel();\n meter = {\n strength: 'strong',\n width: '100%'\n };\n break;\n\n default:\n label = this.promptLabel();\n meter = null;\n break;\n }\n\n this.setState({\n meter: meter,\n infoText: label\n }, function () {\n if (!!keyCode && !_this4.state.overlayVisible) {\n _this4.showOverlay();\n }\n });\n }\n\n if (this.props.onKeyUp) {\n this.props.onKeyUp(e);\n }\n }\n }, {\n key: \"onInput\",\n value: function onInput(event, validatePattern) {\n if (this.props.onInput) {\n this.props.onInput(event, validatePattern);\n }\n\n if (!this.props.onChange) {\n if (event.target.value.length > 0) DomHandler.addClass(this.container, 'p-inputwrapper-filled');else DomHandler.removeClass(this.container, 'p-inputwrapper-filled');\n }\n }\n }, {\n key: \"testStrength\",\n value: function testStrength(str) {\n var level = 0;\n if (this.strongCheckRegExp.test(str)) level = 3;else if (this.mediumCheckRegExp.test(str)) level = 2;else if (str.length) level = 1;\n return level;\n }\n }, {\n key: \"bindScrollListener\",\n value: function bindScrollListener() {\n var _this5 = this;\n\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.inputEl, function () {\n if (_this5.state.overlayVisible) {\n _this5.hideOverlay();\n }\n });\n }\n\n this.scrollHandler.bindScrollListener();\n }\n }, {\n key: \"unbindScrollListener\",\n value: function unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n }\n }, {\n key: \"bindResizeListener\",\n value: function bindResizeListener() {\n var _this6 = this;\n\n if (!this.resizeListener) {\n this.resizeListener = function () {\n if (_this6.state.overlayVisible && !DomHandler.isTouchDevice()) {\n _this6.hideOverlay();\n }\n };\n\n window.addEventListener('resize', this.resizeListener);\n }\n }\n }, {\n key: \"unbindResizeListener\",\n value: function unbindResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n }\n }, {\n key: \"updateInputRef\",\n value: function updateInputRef() {\n var ref = this.props.inputRef;\n\n if (ref) {\n if (typeof ref === 'function') {\n ref(this.inputRef.current);\n } else {\n ref.current = this.inputRef.current;\n }\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.updateInputRef();\n\n if (this.props.tooltip) {\n this.renderTooltip();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (prevProps.tooltip !== this.props.tooltip || prevProps.tooltipOptions !== this.props.tooltipOptions) {\n if (this.tooltip) this.tooltip.update(_objectSpread({\n content: this.props.tooltip\n }, this.props.tooltipOptions || {}));else this.renderTooltip();\n }\n\n if (prevProps.mediumRegex !== this.props.mediumRegex) {\n this.mediumCheckRegExp = new RegExp(this.props.mediumRegex);\n }\n\n if (prevProps.strongRegex !== this.props.strongRegex) {\n this.strongCheckRegExp = new RegExp(this.props.strongRegex);\n }\n\n if (!this.isFilled() && DomHandler.hasClass(this.container, 'p-inputwrapper-filled')) {\n DomHandler.removeClass(this.container, 'p-inputwrapper-filled');\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.unbindResizeListener();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n if (this.tooltip) {\n this.tooltip.destroy();\n this.tooltip = null;\n }\n\n ZIndexUtils.clear(this.overlayRef.current);\n }\n }, {\n key: \"renderTooltip\",\n value: function renderTooltip() {\n this.tooltip = tip({\n target: this.inputEl,\n content: this.props.tooltip,\n options: this.props.tooltipOptions\n });\n }\n }, {\n key: \"renderIcon\",\n value: function renderIcon() {\n if (this.props.toggleMask) {\n var iconClassName = this.state.unmasked ? 'pi pi-eye-slash' : 'pi pi-eye';\n var content = /*#__PURE__*/React.createElement(\"i\", {\n className: iconClassName,\n onClick: this.onMaskToggle\n });\n\n if (this.props.icon) {\n var defaultIconOptions = {\n onClick: this.onMaskToggle,\n className: iconClassName,\n element: content,\n props: this.props\n };\n content = ObjectUtils.getJSXElement(this.props.icon, defaultIconOptions);\n }\n\n return content;\n }\n\n return null;\n }\n }, {\n key: \"renderPanel\",\n value: function renderPanel() {\n var panelClassName = classNames('p-password-panel p-component', this.props.panelClassName);\n\n var _ref = this.state.meter || {\n strength: '',\n width: '0%'\n },\n strength = _ref.strength,\n width = _ref.width;\n\n var header = ObjectUtils.getJSXElement(this.props.header, this.props);\n var footer = ObjectUtils.getJSXElement(this.props.footer, this.props);\n var content = this.props.content ? ObjectUtils.getJSXElement(this.props.content, this.props) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-password-meter\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-password-strength \".concat(strength),\n style: {\n width: width\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-password-info\"\n }, this.state.infoText));\n var panel = /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.overlayRef,\n classNames: \"p-connected-overlay\",\n \"in\": this.state.overlayVisible,\n timeout: {\n enter: 120,\n exit: 100\n },\n options: this.props.transitionOptions,\n unmountOnExit: true,\n onEnter: this.onOverlayEnter,\n onEntered: this.onOverlayEntered,\n onExit: this.onOverlayExit,\n onExited: this.onOverlayExited\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.overlayRef,\n className: panelClassName,\n style: this.props.panelStyle,\n onClick: this.onPanelClick\n }, header, content, footer));\n return /*#__PURE__*/React.createElement(Portal, {\n element: panel,\n appendTo: this.props.appendTo\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this7 = this;\n\n var containerClassName = classNames('p-password p-component p-inputwrapper', {\n 'p-inputwrapper-filled': this.isFilled(),\n 'p-inputwrapper-focus': this.state.focused,\n 'p-input-icon-right': this.props.toggleMask\n }, this.props.className);\n var inputClassName = classNames('p-password-input', this.props.inputClassName);\n var type = this.getInputType();\n var inputProps = ObjectUtils.findDiffKeys(this.props, Password.defaultProps);\n var icon = this.renderIcon();\n var panel = this.renderPanel();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this7.container = el;\n },\n id: this.props.id,\n className: containerClassName,\n style: this.props.style\n }, /*#__PURE__*/React.createElement(InputText, _extends({\n ref: this.inputRef,\n id: this.props.inputId\n }, inputProps, {\n type: type,\n className: inputClassName,\n style: this.props.inputStyle,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n onKeyUp: this.onKeyup,\n onInput: this.onInput\n })), icon, panel);\n }\n }]);\n\n return Password;\n}(Component);\n\n_defineProperty(Password, \"defaultProps\", {\n id: null,\n inputId: null,\n inputRef: null,\n promptLabel: null,\n weakLabel: null,\n mediumLabel: null,\n strongLabel: null,\n mediumRegex: '^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})',\n strongRegex: '^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})',\n feedback: true,\n toggleMask: false,\n appendTo: null,\n header: null,\n content: null,\n footer: null,\n icon: null,\n tooltip: null,\n tooltipOptions: null,\n style: null,\n className: null,\n inputStyle: null,\n inputClassName: null,\n panelStyle: null,\n panelClassName: null,\n transitionOptions: null,\n onInput: null,\n onShow: null,\n onHide: null\n});\n\nexport { Password };","map":{"version":3,"names":["React","createRef","Component","DomHandler","ZIndexUtils","ConnectedOverlayScrollHandler","ObjectUtils","classNames","tip","InputText","CSSTransition","PrimeReact","localeOption","OverlayService","Portal","_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","_classCallCheck","instance","Constructor","TypeError","_defineProperties","props","descriptor","enumerable","configurable","writable","defineProperty","_createClass","protoProps","staticProps","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","o","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","create","constructor","value","_typeof","obj","Symbol","iterator","_possibleConstructorReturn","_getPrototypeOf","getPrototypeOf","_defineProperty","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","push","_objectSpread","forEach","getOwnPropertyDescriptors","defineProperties","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","result","NewTarget","Reflect","construct","sham","Proxy","Boolean","valueOf","e","Password","_Component","_super","_this","state","overlayVisible","meter","infoText","promptLabel","focused","unmasked","onFocus","bind","onBlur","onKeyup","onInput","onMaskToggle","onOverlayEnter","onOverlayEntered","onOverlayExit","onOverlayExited","onPanelClick","overlayRef","inputRef","mediumCheckRegExp","RegExp","mediumRegex","strongCheckRegExp","strongRegex","weakLabel","mediumLabel","strongLabel","isFilled","toString","defaultValue","current","hasClass","getInputType","updateLabels","label","strength","setState","event","feedback","emit","originalEvent","container","prevState","showOverlay","hideOverlay","alignOverlay","parentElement","appendTo","set","autoZIndex","zIndex","bindScrollListener","bindResizeListener","onShow","unbindScrollListener","unbindResizeListener","clear","onHide","_this2","persist","_this3","_this4","keyCode","which","testStrength","width","onKeyUp","validatePattern","onChange","addClass","removeClass","str","level","test","_this5","scrollHandler","inputEl","_this6","resizeListener","isTouchDevice","window","addEventListener","removeEventListener","updateInputRef","ref","componentDidMount","tooltip","renderTooltip","componentDidUpdate","prevProps","tooltipOptions","update","content","componentWillUnmount","destroy","options","renderIcon","toggleMask","iconClassName","createElement","className","onClick","icon","defaultIconOptions","element","getJSXElement","renderPanel","panelClassName","_ref","header","footer","Fragment","concat","style","panel","nodeRef","timeout","enter","exit","transitionOptions","unmountOnExit","onEnter","onEntered","onExit","onExited","panelStyle","render","_this7","containerClassName","inputClassName","type","inputProps","findDiffKeys","defaultProps","el","id","inputId","inputStyle"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/password/password.esm.js"],"sourcesContent":["import React, { createRef, Component } from 'react';\nimport { DomHandler, ZIndexUtils, ConnectedOverlayScrollHandler, ObjectUtils, classNames } from 'primereact/utils';\nimport { tip } from 'primereact/tooltip';\nimport { InputText } from 'primereact/inputtext';\nimport { CSSTransition } from 'primereact/csstransition';\nimport PrimeReact, { localeOption } from 'primereact/api';\nimport { OverlayService } from 'primereact/overlayservice';\nimport { Portal } from 'primereact/portal';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n Object.defineProperty(subClass, \"prototype\", {\n writable: false\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n }, _typeof(obj);\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nvar Password = /*#__PURE__*/function (_Component) {\n _inherits(Password, _Component);\n\n var _super = _createSuper(Password);\n\n function Password(props) {\n var _this;\n\n _classCallCheck(this, Password);\n\n _this = _super.call(this, props);\n _this.state = {\n overlayVisible: false,\n meter: null,\n infoText: _this.promptLabel(),\n focused: false,\n unmasked: false\n };\n _this.onFocus = _this.onFocus.bind(_assertThisInitialized(_this));\n _this.onBlur = _this.onBlur.bind(_assertThisInitialized(_this));\n _this.onKeyup = _this.onKeyup.bind(_assertThisInitialized(_this));\n _this.onInput = _this.onInput.bind(_assertThisInitialized(_this));\n _this.onMaskToggle = _this.onMaskToggle.bind(_assertThisInitialized(_this));\n _this.onOverlayEnter = _this.onOverlayEnter.bind(_assertThisInitialized(_this));\n _this.onOverlayEntered = _this.onOverlayEntered.bind(_assertThisInitialized(_this));\n _this.onOverlayExit = _this.onOverlayExit.bind(_assertThisInitialized(_this));\n _this.onOverlayExited = _this.onOverlayExited.bind(_assertThisInitialized(_this));\n _this.onPanelClick = _this.onPanelClick.bind(_assertThisInitialized(_this));\n _this.overlayRef = /*#__PURE__*/createRef();\n _this.inputRef = /*#__PURE__*/createRef(_this.props.inputRef);\n _this.mediumCheckRegExp = new RegExp(_this.props.mediumRegex);\n _this.strongCheckRegExp = new RegExp(_this.props.strongRegex);\n return _this;\n }\n\n _createClass(Password, [{\n key: \"promptLabel\",\n value: function promptLabel() {\n return this.props.promptLabel || localeOption('passwordPrompt');\n }\n }, {\n key: \"weakLabel\",\n value: function weakLabel() {\n return this.props.weakLabel || localeOption('weak');\n }\n }, {\n key: \"mediumLabel\",\n value: function mediumLabel() {\n return this.props.mediumLabel || localeOption('medium');\n }\n }, {\n key: \"strongLabel\",\n value: function strongLabel() {\n return this.props.strongLabel || localeOption('strong');\n }\n }, {\n key: \"isFilled\",\n value: function isFilled() {\n return this.props.value != null && this.props.value.toString().length > 0 || this.props.defaultValue != null && this.props.defaultValue.toString().length > 0 || this.inputRef && this.inputRef.current && DomHandler.hasClass(this.inputRef.current, 'p-filled');\n }\n }, {\n key: \"getInputType\",\n value: function getInputType() {\n return this.state.unmasked ? 'text' : 'password';\n }\n }, {\n key: \"updateLabels\",\n value: function updateLabels() {\n if (this.state.meter) {\n var label = null;\n\n switch (this.state.meter.strength) {\n case 'weak':\n label = this.weakLabel();\n break;\n\n case 'medium':\n label = this.mediumLabel();\n break;\n\n case 'strong':\n label = this.strongLabel();\n break;\n }\n\n if (label && this.state.infoText !== label) {\n this.setState({\n infoText: label\n });\n }\n } else {\n var promptLabel = this.promptLabel();\n\n if (this.state.infoText !== promptLabel) {\n this.setState({\n infoText: promptLabel\n });\n }\n }\n }\n }, {\n key: \"onPanelClick\",\n value: function onPanelClick(event) {\n if (this.props.feedback) {\n OverlayService.emit('overlay-click', {\n originalEvent: event,\n target: this.container\n });\n }\n }\n }, {\n key: \"onMaskToggle\",\n value: function onMaskToggle() {\n this.setState(function (prevState) {\n return {\n unmasked: !prevState.unmasked\n };\n });\n }\n }, {\n key: \"showOverlay\",\n value: function showOverlay() {\n this.updateLabels();\n this.setState({\n overlayVisible: true\n });\n }\n }, {\n key: \"hideOverlay\",\n value: function hideOverlay() {\n this.setState({\n overlayVisible: false\n });\n }\n }, {\n key: \"alignOverlay\",\n value: function alignOverlay() {\n if (this.inputRef && this.inputRef.current) {\n DomHandler.alignOverlay(this.overlayRef.current, this.inputRef.current.parentElement, this.props.appendTo || PrimeReact.appendTo);\n }\n }\n }, {\n key: \"onOverlayEnter\",\n value: function onOverlayEnter() {\n ZIndexUtils.set('overlay', this.overlayRef.current, PrimeReact.autoZIndex, PrimeReact.zIndex['overlay']);\n this.alignOverlay();\n }\n }, {\n key: \"onOverlayEntered\",\n value: function onOverlayEntered() {\n this.bindScrollListener();\n this.bindResizeListener();\n this.props.onShow && this.props.onShow();\n }\n }, {\n key: \"onOverlayExit\",\n value: function onOverlayExit() {\n this.unbindScrollListener();\n this.unbindResizeListener();\n }\n }, {\n key: \"onOverlayExited\",\n value: function onOverlayExited() {\n ZIndexUtils.clear(this.overlayRef.current);\n this.props.onHide && this.props.onHide();\n }\n }, {\n key: \"onFocus\",\n value: function onFocus(event) {\n var _this2 = this;\n\n event.persist();\n this.setState({\n focused: true\n }, function () {\n if (_this2.props.feedback) {\n _this2.showOverlay();\n }\n\n if (_this2.props.onFocus) {\n _this2.props.onFocus(event);\n }\n });\n }\n }, {\n key: \"onBlur\",\n value: function onBlur(event) {\n var _this3 = this;\n\n event.persist();\n this.setState({\n focused: false\n }, function () {\n if (_this3.props.feedback) {\n _this3.hideOverlay();\n }\n\n if (_this3.props.onBlur) {\n _this3.props.onBlur(event);\n }\n });\n }\n }, {\n key: \"onKeyup\",\n value: function onKeyup(e) {\n var _this4 = this;\n\n var keyCode = e.keyCode || e.which;\n\n if (this.props.feedback) {\n var value = e.target.value;\n var label = null;\n var meter = null;\n\n switch (this.testStrength(value)) {\n case 1:\n label = this.weakLabel();\n meter = {\n strength: 'weak',\n width: '33.33%'\n };\n break;\n\n case 2:\n label = this.mediumLabel();\n meter = {\n strength: 'medium',\n width: '66.66%'\n };\n break;\n\n case 3:\n label = this.strongLabel();\n meter = {\n strength: 'strong',\n width: '100%'\n };\n break;\n\n default:\n label = this.promptLabel();\n meter = null;\n break;\n }\n\n this.setState({\n meter: meter,\n infoText: label\n }, function () {\n if (!!keyCode && !_this4.state.overlayVisible) {\n _this4.showOverlay();\n }\n });\n }\n\n if (this.props.onKeyUp) {\n this.props.onKeyUp(e);\n }\n }\n }, {\n key: \"onInput\",\n value: function onInput(event, validatePattern) {\n if (this.props.onInput) {\n this.props.onInput(event, validatePattern);\n }\n\n if (!this.props.onChange) {\n if (event.target.value.length > 0) DomHandler.addClass(this.container, 'p-inputwrapper-filled');else DomHandler.removeClass(this.container, 'p-inputwrapper-filled');\n }\n }\n }, {\n key: \"testStrength\",\n value: function testStrength(str) {\n var level = 0;\n if (this.strongCheckRegExp.test(str)) level = 3;else if (this.mediumCheckRegExp.test(str)) level = 2;else if (str.length) level = 1;\n return level;\n }\n }, {\n key: \"bindScrollListener\",\n value: function bindScrollListener() {\n var _this5 = this;\n\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.inputEl, function () {\n if (_this5.state.overlayVisible) {\n _this5.hideOverlay();\n }\n });\n }\n\n this.scrollHandler.bindScrollListener();\n }\n }, {\n key: \"unbindScrollListener\",\n value: function unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n }\n }, {\n key: \"bindResizeListener\",\n value: function bindResizeListener() {\n var _this6 = this;\n\n if (!this.resizeListener) {\n this.resizeListener = function () {\n if (_this6.state.overlayVisible && !DomHandler.isTouchDevice()) {\n _this6.hideOverlay();\n }\n };\n\n window.addEventListener('resize', this.resizeListener);\n }\n }\n }, {\n key: \"unbindResizeListener\",\n value: function unbindResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n }\n }, {\n key: \"updateInputRef\",\n value: function updateInputRef() {\n var ref = this.props.inputRef;\n\n if (ref) {\n if (typeof ref === 'function') {\n ref(this.inputRef.current);\n } else {\n ref.current = this.inputRef.current;\n }\n }\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.updateInputRef();\n\n if (this.props.tooltip) {\n this.renderTooltip();\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n if (prevProps.tooltip !== this.props.tooltip || prevProps.tooltipOptions !== this.props.tooltipOptions) {\n if (this.tooltip) this.tooltip.update(_objectSpread({\n content: this.props.tooltip\n }, this.props.tooltipOptions || {}));else this.renderTooltip();\n }\n\n if (prevProps.mediumRegex !== this.props.mediumRegex) {\n this.mediumCheckRegExp = new RegExp(this.props.mediumRegex);\n }\n\n if (prevProps.strongRegex !== this.props.strongRegex) {\n this.strongCheckRegExp = new RegExp(this.props.strongRegex);\n }\n\n if (!this.isFilled() && DomHandler.hasClass(this.container, 'p-inputwrapper-filled')) {\n DomHandler.removeClass(this.container, 'p-inputwrapper-filled');\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.unbindResizeListener();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n if (this.tooltip) {\n this.tooltip.destroy();\n this.tooltip = null;\n }\n\n ZIndexUtils.clear(this.overlayRef.current);\n }\n }, {\n key: \"renderTooltip\",\n value: function renderTooltip() {\n this.tooltip = tip({\n target: this.inputEl,\n content: this.props.tooltip,\n options: this.props.tooltipOptions\n });\n }\n }, {\n key: \"renderIcon\",\n value: function renderIcon() {\n if (this.props.toggleMask) {\n var iconClassName = this.state.unmasked ? 'pi pi-eye-slash' : 'pi pi-eye';\n var content = /*#__PURE__*/React.createElement(\"i\", {\n className: iconClassName,\n onClick: this.onMaskToggle\n });\n\n if (this.props.icon) {\n var defaultIconOptions = {\n onClick: this.onMaskToggle,\n className: iconClassName,\n element: content,\n props: this.props\n };\n content = ObjectUtils.getJSXElement(this.props.icon, defaultIconOptions);\n }\n\n return content;\n }\n\n return null;\n }\n }, {\n key: \"renderPanel\",\n value: function renderPanel() {\n var panelClassName = classNames('p-password-panel p-component', this.props.panelClassName);\n\n var _ref = this.state.meter || {\n strength: '',\n width: '0%'\n },\n strength = _ref.strength,\n width = _ref.width;\n\n var header = ObjectUtils.getJSXElement(this.props.header, this.props);\n var footer = ObjectUtils.getJSXElement(this.props.footer, this.props);\n var content = this.props.content ? ObjectUtils.getJSXElement(this.props.content, this.props) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-password-meter\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-password-strength \".concat(strength),\n style: {\n width: width\n }\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-password-info\"\n }, this.state.infoText));\n var panel = /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: this.overlayRef,\n classNames: \"p-connected-overlay\",\n \"in\": this.state.overlayVisible,\n timeout: {\n enter: 120,\n exit: 100\n },\n options: this.props.transitionOptions,\n unmountOnExit: true,\n onEnter: this.onOverlayEnter,\n onEntered: this.onOverlayEntered,\n onExit: this.onOverlayExit,\n onExited: this.onOverlayExited\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: this.overlayRef,\n className: panelClassName,\n style: this.props.panelStyle,\n onClick: this.onPanelClick\n }, header, content, footer));\n return /*#__PURE__*/React.createElement(Portal, {\n element: panel,\n appendTo: this.props.appendTo\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this7 = this;\n\n var containerClassName = classNames('p-password p-component p-inputwrapper', {\n 'p-inputwrapper-filled': this.isFilled(),\n 'p-inputwrapper-focus': this.state.focused,\n 'p-input-icon-right': this.props.toggleMask\n }, this.props.className);\n var inputClassName = classNames('p-password-input', this.props.inputClassName);\n var type = this.getInputType();\n var inputProps = ObjectUtils.findDiffKeys(this.props, Password.defaultProps);\n var icon = this.renderIcon();\n var panel = this.renderPanel();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: function ref(el) {\n return _this7.container = el;\n },\n id: this.props.id,\n className: containerClassName,\n style: this.props.style\n }, /*#__PURE__*/React.createElement(InputText, _extends({\n ref: this.inputRef,\n id: this.props.inputId\n }, inputProps, {\n type: type,\n className: inputClassName,\n style: this.props.inputStyle,\n onFocus: this.onFocus,\n onBlur: this.onBlur,\n onKeyUp: this.onKeyup,\n onInput: this.onInput\n })), icon, panel);\n }\n }]);\n\n return Password;\n}(Component);\n\n_defineProperty(Password, \"defaultProps\", {\n id: null,\n inputId: null,\n inputRef: null,\n promptLabel: null,\n weakLabel: null,\n mediumLabel: null,\n strongLabel: null,\n mediumRegex: '^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})',\n strongRegex: '^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})',\n feedback: true,\n toggleMask: false,\n appendTo: null,\n header: null,\n content: null,\n footer: null,\n icon: null,\n tooltip: null,\n tooltipOptions: null,\n style: null,\n className: null,\n inputStyle: null,\n inputClassName: null,\n panelStyle: null,\n panelClassName: null,\n transitionOptions: null,\n onInput: null,\n onShow: null,\n onHide: null\n});\n\nexport { Password };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,EAA2BC,SAA3B,QAA4C,OAA5C;AACA,SAASC,UAAT,EAAqBC,WAArB,EAAkCC,6BAAlC,EAAiEC,WAAjE,EAA8EC,UAA9E,QAAgG,kBAAhG;AACA,SAASC,GAAT,QAAoB,oBAApB;AACA,SAASC,SAAT,QAA0B,sBAA1B;AACA,SAASC,aAAT,QAA8B,0BAA9B;AACA,OAAOC,UAAP,IAAqBC,YAArB,QAAyC,gBAAzC;AACA,SAASC,cAAT,QAA+B,2BAA/B;AACA,SAASC,MAAT,QAAuB,mBAAvB;;AAEA,SAASC,QAAT,GAAoB;EAClBA,QAAQ,GAAGC,MAAM,CAACC,MAAP,IAAiB,UAAUC,MAAV,EAAkB;IAC5C,KAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGC,SAAS,CAACC,MAA9B,EAAsCF,CAAC,EAAvC,EAA2C;MACzC,IAAIG,MAAM,GAAGF,SAAS,CAACD,CAAD,CAAtB;;MAEA,KAAK,IAAII,GAAT,IAAgBD,MAAhB,EAAwB;QACtB,IAAIN,MAAM,CAACQ,SAAP,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqCJ,MAArC,EAA6CC,GAA7C,CAAJ,EAAuD;UACrDL,MAAM,CAACK,GAAD,CAAN,GAAcD,MAAM,CAACC,GAAD,CAApB;QACD;MACF;IACF;;IAED,OAAOL,MAAP;EACD,CAZD;;EAcA,OAAOH,QAAQ,CAACY,KAAT,CAAe,IAAf,EAAqBP,SAArB,CAAP;AACD;;AAED,SAASQ,eAAT,CAAyB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