1 line
42 KiB
JSON
1 line
42 KiB
JSON
{"ast":null,"code":"import React, { Component } from 'react';\nimport { classNames } from 'primereact/utils';\nimport { Ripple } from 'primereact/ripple';\nimport { TransitionGroup } from 'react-transition-group';\nimport { CSSTransition } from 'primereact/csstransition';\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\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 _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 _createSuper$1(Derived) {\n var hasNativeReflectConstruct = _isNativeReflectConstruct$1();\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$1() {\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 UIMessageComponent = /*#__PURE__*/function (_Component) {\n _inherits(UIMessageComponent, _Component);\n\n var _super = _createSuper$1(UIMessageComponent);\n\n function UIMessageComponent(props) {\n var _this;\n\n _classCallCheck(this, UIMessageComponent);\n\n _this = _super.call(this, props);\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onClose = _this.onClose.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(UIMessageComponent, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n\n if (!this.props.message.sticky) {\n this.timeout = setTimeout(function () {\n _this2.onClose(null);\n }, this.props.message.life || 3000);\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.timeout) {\n clearTimeout(this.timeout);\n }\n }\n }, {\n key: \"onClose\",\n value: function onClose(event) {\n if (this.timeout) {\n clearTimeout(this.timeout);\n }\n\n if (this.props.onClose) {\n this.props.onClose(this.props.message);\n }\n\n if (event) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n }, {\n key: \"onClick\",\n value: function onClick() {\n if (this.props.onClick) {\n this.props.onClick(this.props.message);\n }\n }\n }, {\n key: \"renderCloseIcon\",\n value: function renderCloseIcon() {\n if (this.props.message.closable !== false) {\n return /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: \"p-message-close p-link\",\n onClick: this.onClose\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: \"p-message-close-icon pi pi-times\"\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return null;\n }\n }, {\n key: \"renderMessage\",\n value: function renderMessage() {\n if (this.props.message) {\n var _this$props$message = this.props.message,\n severity = _this$props$message.severity,\n content = _this$props$message.content,\n summary = _this$props$message.summary,\n detail = _this$props$message.detail;\n var icon = classNames('p-message-icon pi ', {\n 'pi-info-circle': severity === 'info',\n 'pi-check': severity === 'success',\n 'pi-exclamation-triangle': severity === 'warn',\n 'pi-times-circle': severity === 'error'\n });\n return content || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"span\", {\n className: icon\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-message-summary\"\n }, summary), /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-message-detail\"\n }, detail));\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var severity = this.props.message.severity;\n var className = 'p-message p-component p-message-' + severity;\n var closeIcon = this.renderCloseIcon();\n var message = this.renderMessage();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: this.props.forwardRef,\n className: className,\n onClick: this.onClick\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-message-wrapper\"\n }, message, closeIcon));\n }\n }]);\n\n return UIMessageComponent;\n}(Component);\n\n_defineProperty(UIMessageComponent, \"defaultProps\", {\n message: null,\n onClose: null,\n onClick: null\n});\n\nvar UIMessage = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(UIMessageComponent, _extends({\n forwardRef: ref\n }, props));\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 messageIdx = 0;\n\nvar Messages = /*#__PURE__*/function (_Component) {\n _inherits(Messages, _Component);\n\n var _super = _createSuper(Messages);\n\n function Messages(props) {\n var _this;\n\n _classCallCheck(this, Messages);\n\n _this = _super.call(this, props);\n _this.state = {\n messages: []\n };\n _this.onClose = _this.onClose.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Messages, [{\n key: \"show\",\n value: function show(value) {\n if (value) {\n var newMessages = [];\n\n if (Array.isArray(value)) {\n for (var i = 0; i < value.length; i++) {\n value[i].id = messageIdx++;\n newMessages = [].concat(_toConsumableArray(this.state.messages), _toConsumableArray(value));\n }\n } else {\n value.id = messageIdx++;\n newMessages = this.state.messages ? [].concat(_toConsumableArray(this.state.messages), [value]) : [value];\n }\n\n this.setState({\n messages: newMessages\n });\n }\n }\n }, {\n key: \"clear\",\n value: function clear() {\n this.setState({\n messages: []\n });\n }\n }, {\n key: \"replace\",\n value: function replace(value) {\n var _this2 = this;\n\n this.setState({\n messages: []\n }, function () {\n return _this2.show(value);\n });\n }\n }, {\n key: \"onClose\",\n value: function onClose(message) {\n var newMessages = this.state.messages.filter(function (msg) {\n return msg.id !== message.id;\n });\n this.setState({\n messages: newMessages\n });\n\n if (this.props.onRemove) {\n this.props.onRemove(message);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this3 = this;\n\n return /*#__PURE__*/React.createElement(\"div\", {\n id: this.props.id,\n className: this.props.className,\n style: this.props.style\n }, /*#__PURE__*/React.createElement(TransitionGroup, null, this.state.messages.map(function (message) {\n var messageRef = /*#__PURE__*/React.createRef();\n return /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: messageRef,\n key: message.id,\n classNames: \"p-message\",\n unmountOnExit: true,\n timeout: {\n enter: 300,\n exit: 300\n },\n options: _this3.props.transitionOptions\n }, /*#__PURE__*/React.createElement(UIMessage, {\n ref: messageRef,\n message: message,\n onClick: _this3.props.onClick,\n onClose: _this3.onClose\n }));\n })));\n }\n }]);\n\n return Messages;\n}(Component);\n\n_defineProperty(Messages, \"defaultProps\", {\n id: null,\n className: null,\n style: null,\n transitionOptions: null,\n onRemove: null,\n onClick: null\n});\n\nexport { Messages };","map":{"version":3,"names":["React","Component","classNames","Ripple","TransitionGroup","CSSTransition","_arrayLikeToArray","arr","len","length","i","arr2","Array","_arrayWithoutHoles","isArray","_iterableToArray","iter","Symbol","iterator","from","_unsupportedIterableToArray","o","minLen","n","Object","prototype","toString","call","slice","constructor","name","test","_nonIterableSpread","TypeError","_toConsumableArray","_classCallCheck","instance","Constructor","_defineProperties","target","props","descriptor","enumerable","configurable","writable","defineProperty","key","_createClass","protoProps","staticProps","_assertThisInitialized","self","ReferenceError","_setPrototypeOf","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","create","value","_typeof","obj","_possibleConstructorReturn","_getPrototypeOf","getPrototypeOf","_defineProperty","_extends","assign","arguments","source","hasOwnProperty","apply","_createSuper$1","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct$1","_createSuperInternal","Super","result","NewTarget","Reflect","construct","sham","Proxy","Boolean","valueOf","e","UIMessageComponent","_Component","_super","_this","onClick","bind","onClose","componentDidMount","_this2","message","sticky","timeout","setTimeout","life","componentWillUnmount","clearTimeout","event","preventDefault","stopPropagation","renderCloseIcon","closable","createElement","type","className","renderMessage","_this$props$message","severity","content","summary","detail","icon","Fragment","render","closeIcon","ref","forwardRef","UIMessage","_createSuper","_isNativeReflectConstruct","messageIdx","Messages","state","messages","show","newMessages","id","concat","setState","clear","replace","filter","msg","onRemove","_this3","style","map","messageRef","createRef","nodeRef","unmountOnExit","enter","exit","options","transitionOptions"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/messages/messages.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { classNames } from 'primereact/utils';\nimport { Ripple } from 'primereact/ripple';\nimport { TransitionGroup } from 'react-transition-group';\nimport { CSSTransition } from 'primereact/csstransition';\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\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 _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 _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); 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$1() { 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; } }\n\nvar UIMessageComponent = /*#__PURE__*/function (_Component) {\n _inherits(UIMessageComponent, _Component);\n\n var _super = _createSuper$1(UIMessageComponent);\n\n function UIMessageComponent(props) {\n var _this;\n\n _classCallCheck(this, UIMessageComponent);\n\n _this = _super.call(this, props);\n _this.onClick = _this.onClick.bind(_assertThisInitialized(_this));\n _this.onClose = _this.onClose.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(UIMessageComponent, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n\n if (!this.props.message.sticky) {\n this.timeout = setTimeout(function () {\n _this2.onClose(null);\n }, this.props.message.life || 3000);\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.timeout) {\n clearTimeout(this.timeout);\n }\n }\n }, {\n key: \"onClose\",\n value: function onClose(event) {\n if (this.timeout) {\n clearTimeout(this.timeout);\n }\n\n if (this.props.onClose) {\n this.props.onClose(this.props.message);\n }\n\n if (event) {\n event.preventDefault();\n event.stopPropagation();\n }\n }\n }, {\n key: \"onClick\",\n value: function onClick() {\n if (this.props.onClick) {\n this.props.onClick(this.props.message);\n }\n }\n }, {\n key: \"renderCloseIcon\",\n value: function renderCloseIcon() {\n if (this.props.message.closable !== false) {\n return /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: \"p-message-close p-link\",\n onClick: this.onClose\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: \"p-message-close-icon pi pi-times\"\n }), /*#__PURE__*/React.createElement(Ripple, null));\n }\n\n return null;\n }\n }, {\n key: \"renderMessage\",\n value: function renderMessage() {\n if (this.props.message) {\n var _this$props$message = this.props.message,\n severity = _this$props$message.severity,\n content = _this$props$message.content,\n summary = _this$props$message.summary,\n detail = _this$props$message.detail;\n var icon = classNames('p-message-icon pi ', {\n 'pi-info-circle': severity === 'info',\n 'pi-check': severity === 'success',\n 'pi-exclamation-triangle': severity === 'warn',\n 'pi-times-circle': severity === 'error'\n });\n return content || /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"span\", {\n className: icon\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-message-summary\"\n }, summary), /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-message-detail\"\n }, detail));\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var severity = this.props.message.severity;\n var className = 'p-message p-component p-message-' + severity;\n var closeIcon = this.renderCloseIcon();\n var message = this.renderMessage();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: this.props.forwardRef,\n className: className,\n onClick: this.onClick\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-message-wrapper\"\n }, message, closeIcon));\n }\n }]);\n\n return UIMessageComponent;\n}(Component);\n\n_defineProperty(UIMessageComponent, \"defaultProps\", {\n message: null,\n onClose: null,\n onClick: null\n});\n\nvar UIMessage = /*#__PURE__*/React.forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(UIMessageComponent, _extends({\n forwardRef: ref\n }, props));\n});\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 messageIdx = 0;\nvar Messages = /*#__PURE__*/function (_Component) {\n _inherits(Messages, _Component);\n\n var _super = _createSuper(Messages);\n\n function Messages(props) {\n var _this;\n\n _classCallCheck(this, Messages);\n\n _this = _super.call(this, props);\n _this.state = {\n messages: []\n };\n _this.onClose = _this.onClose.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Messages, [{\n key: \"show\",\n value: function show(value) {\n if (value) {\n var newMessages = [];\n\n if (Array.isArray(value)) {\n for (var i = 0; i < value.length; i++) {\n value[i].id = messageIdx++;\n newMessages = [].concat(_toConsumableArray(this.state.messages), _toConsumableArray(value));\n }\n } else {\n value.id = messageIdx++;\n newMessages = this.state.messages ? [].concat(_toConsumableArray(this.state.messages), [value]) : [value];\n }\n\n this.setState({\n messages: newMessages\n });\n }\n }\n }, {\n key: \"clear\",\n value: function clear() {\n this.setState({\n messages: []\n });\n }\n }, {\n key: \"replace\",\n value: function replace(value) {\n var _this2 = this;\n\n this.setState({\n messages: []\n }, function () {\n return _this2.show(value);\n });\n }\n }, {\n key: \"onClose\",\n value: function onClose(message) {\n var newMessages = this.state.messages.filter(function (msg) {\n return msg.id !== message.id;\n });\n this.setState({\n messages: newMessages\n });\n\n if (this.props.onRemove) {\n this.props.onRemove(message);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this3 = this;\n\n return /*#__PURE__*/React.createElement(\"div\", {\n id: this.props.id,\n className: this.props.className,\n style: this.props.style\n }, /*#__PURE__*/React.createElement(TransitionGroup, null, this.state.messages.map(function (message) {\n var messageRef = /*#__PURE__*/React.createRef();\n return /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: messageRef,\n key: message.id,\n classNames: \"p-message\",\n unmountOnExit: true,\n timeout: {\n enter: 300,\n exit: 300\n },\n options: _this3.props.transitionOptions\n }, /*#__PURE__*/React.createElement(UIMessage, {\n ref: messageRef,\n message: message,\n onClick: _this3.props.onClick,\n onClose: _this3.onClose\n }));\n })));\n }\n }]);\n\n return Messages;\n}(Component);\n\n_defineProperty(Messages, \"defaultProps\", {\n id: null,\n className: null,\n style: null,\n transitionOptions: null,\n onRemove: null,\n onClick: null\n});\n\nexport { Messages };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,UAAT,QAA2B,kBAA3B;AACA,SAASC,MAAT,QAAuB,mBAAvB;AACA,SAASC,eAAT,QAAgC,wBAAhC;AACA,SAASC,aAAT,QAA8B,0BAA9B;;AAEA,SAASC,iBAAT,CAA2BC,GAA3B,EAAgCC,GAAhC,EAAqC;EACnC,IAAIA,GAAG,IAAI,IAAP,IAAeA,GAAG,GAAGD,GAAG,CAACE,MAA7B,EAAqCD,GAAG,GAAGD,GAAG,CAACE,MAAV;;EAErC,KAAK,IAAIC,CAAC,GAAG,CAAR,EAAWC,IAAI,GAAG,IAAIC,KAAJ,CAAUJ,GAAV,CAAvB,EAAuCE,CAAC,GAAGF,GAA3C,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