katoikia-app/web-ui/web-react/node_modules/.cache/babel-loader/71dc76549786abfbf60ef84c823...

1 line
57 KiB
JSON

{"ast":null,"code":"import React, { Component } from 'react';\nimport { classNames, ObjectUtils, UniqueComponentId } from 'primereact/utils';\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 _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 _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 _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 _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 PanelMenuSub = /*#__PURE__*/function (_Component) {\n _inherits(PanelMenuSub, _Component);\n\n var _super = _createSuper(PanelMenuSub);\n\n function PanelMenuSub(props) {\n var _this;\n\n _classCallCheck(this, PanelMenuSub);\n\n _this = _super.call(this, props);\n _this.state = {\n activeItem: _this.findActiveItem()\n };\n return _this;\n }\n\n _createClass(PanelMenuSub, [{\n key: \"onItemClick\",\n value: function onItemClick(event, item) {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n\n if (!item.url) {\n event.preventDefault();\n }\n\n if (item.command) {\n item.command({\n originalEvent: event,\n item: item\n });\n }\n\n var activeItem = this.state.activeItem;\n var active = this.isItemActive(item);\n\n if (active) {\n item.expanded = false;\n this.setState({\n activeItem: this.props.multiple ? activeItem.filter(function (a_item) {\n return a_item !== item;\n }) : null\n });\n } else {\n if (!this.props.multiple && activeItem) {\n activeItem.expanded = false;\n }\n\n item.expanded = true;\n this.setState({\n activeItem: this.props.multiple ? [].concat(_toConsumableArray(activeItem || []), [item]) : item\n });\n }\n }\n }, {\n key: \"findActiveItem\",\n value: function findActiveItem() {\n if (this.props.model) {\n if (this.props.multiple) {\n return this.props.model.filter(function (item) {\n return item.expanded;\n });\n } else {\n var activeItem = null;\n this.props.model.forEach(function (item) {\n if (item.expanded) {\n if (!activeItem) activeItem = item;else item.expanded = false;\n }\n });\n return activeItem;\n }\n }\n\n return null;\n }\n }, {\n key: \"isItemActive\",\n value: function isItemActive(item) {\n return this.state.activeItem && (this.props.multiple ? this.state.activeItem.indexOf(item) > -1 : this.state.activeItem === item);\n }\n }, {\n key: \"renderSeparator\",\n value: function renderSeparator(index) {\n return /*#__PURE__*/React.createElement(\"li\", {\n key: 'separator_' + index,\n className: \"p-menu-separator\"\n });\n }\n }, {\n key: \"renderSubmenu\",\n value: function renderSubmenu(item, active) {\n var submenuWrapperClassName = classNames('p-toggleable-content', {\n 'p-toggleable-content-collapsed': !active\n });\n var submenuContentRef = /*#__PURE__*/React.createRef();\n\n if (item.items) {\n return /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: submenuContentRef,\n classNames: \"p-toggleable-content\",\n timeout: {\n enter: 1000,\n exit: 450\n },\n \"in\": active,\n unmountOnExit: true\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: submenuContentRef,\n className: submenuWrapperClassName\n }, /*#__PURE__*/React.createElement(PanelMenuSub, {\n model: item.items,\n multiple: this.props.multiple\n })));\n }\n\n return null;\n }\n }, {\n key: \"renderMenuitem\",\n value: function renderMenuitem(item, index) {\n var _this2 = this;\n\n var active = this.isItemActive(item);\n var className = classNames('p-menuitem', item.className);\n var linkClassName = classNames('p-menuitem-link', {\n 'p-disabled': item.disabled\n });\n var iconClassName = classNames('p-menuitem-icon', item.icon);\n var submenuIconClassName = classNames('p-panelmenu-icon pi pi-fw', {\n 'pi-angle-right': !active,\n 'pi-angle-down': active\n });\n var icon = item.icon && /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n });\n var label = item.label && /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-menuitem-text\"\n }, item.label);\n var submenuIcon = item.items && /*#__PURE__*/React.createElement(\"span\", {\n className: submenuIconClassName\n });\n var submenu = this.renderSubmenu(item, active);\n var content = /*#__PURE__*/React.createElement(\"a\", {\n href: item.url || '#',\n className: linkClassName,\n target: item.target,\n onClick: function onClick(event) {\n return _this2.onItemClick(event, item, index);\n },\n role: \"menuitem\",\n \"aria-disabled\": item.disabled\n }, submenuIcon, icon, label);\n\n if (item.template) {\n var defaultContentOptions = {\n onClick: function onClick(event) {\n return _this2.onItemClick(event, item, index);\n },\n className: linkClassName,\n labelClassName: 'p-menuitem-text',\n iconClassName: iconClassName,\n submenuIconClassName: submenuIconClassName,\n element: content,\n props: this.props,\n leaf: !item.items,\n active: active\n };\n content = ObjectUtils.getJSXElement(item.template, item, defaultContentOptions);\n }\n\n return /*#__PURE__*/React.createElement(\"li\", {\n key: item.label + '_' + index,\n className: className,\n style: item.style,\n role: \"none\"\n }, content, submenu);\n }\n }, {\n key: \"renderItem\",\n value: function renderItem(item, index) {\n if (item.separator) return this.renderSeparator(index);else return this.renderMenuitem(item, index);\n }\n }, {\n key: \"renderMenu\",\n value: function renderMenu() {\n var _this3 = this;\n\n if (this.props.model) {\n return this.props.model.map(function (item, index) {\n return _this3.renderItem(item, index);\n });\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var className = classNames('p-submenu-list', this.props.className);\n var menu = this.renderMenu();\n return /*#__PURE__*/React.createElement(\"ul\", {\n className: className,\n role: \"tree\"\n }, menu);\n }\n }]);\n\n return PanelMenuSub;\n}(Component);\n\n_defineProperty(PanelMenuSub, \"defaultProps\", {\n model: null,\n multiple: false\n});\n\nvar PanelMenu = /*#__PURE__*/function (_Component2) {\n _inherits(PanelMenu, _Component2);\n\n var _super2 = _createSuper(PanelMenu);\n\n function PanelMenu(props) {\n var _this4;\n\n _classCallCheck(this, PanelMenu);\n\n _this4 = _super2.call(this, props);\n _this4.state = {\n id: props.id,\n activeItem: _this4.findActiveItem()\n };\n return _this4;\n }\n\n _createClass(PanelMenu, [{\n key: \"onItemClick\",\n value: function onItemClick(event, item) {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n\n if (!item.url) {\n event.preventDefault();\n }\n\n if (item.command) {\n item.command({\n originalEvent: event,\n item: item\n });\n }\n\n var activeItem = this.state.activeItem;\n var active = this.isItemActive(item);\n\n if (active) {\n item.expanded = false;\n this.setState({\n activeItem: this.props.multiple ? activeItem.filter(function (a_item) {\n return a_item !== item;\n }) : null\n });\n } else {\n if (!this.props.multiple && activeItem) {\n activeItem.expanded = false;\n }\n\n item.expanded = true;\n this.setState({\n activeItem: this.props.multiple ? [].concat(_toConsumableArray(activeItem || []), [item]) : item\n });\n }\n }\n }, {\n key: \"findActiveItem\",\n value: function findActiveItem() {\n if (this.props.model) {\n if (this.props.multiple) {\n return this.props.model.filter(function (item) {\n return item.expanded;\n });\n } else {\n var activeItem = null;\n this.props.model.forEach(function (item) {\n if (item.expanded) {\n if (!activeItem) activeItem = item;else item.expanded = false;\n }\n });\n return activeItem;\n }\n }\n\n return null;\n }\n }, {\n key: \"isItemActive\",\n value: function isItemActive(item) {\n return this.state.activeItem && (this.props.multiple ? this.state.activeItem.indexOf(item) > -1 : this.state.activeItem === item);\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (!this.state.id) {\n this.setState({\n id: UniqueComponentId()\n });\n }\n }\n }, {\n key: \"renderPanel\",\n value: function renderPanel(item, index) {\n var _this5 = this;\n\n var active = this.isItemActive(item);\n var className = classNames('p-panelmenu-panel', item.className);\n var headerClassName = classNames('p-component p-panelmenu-header', {\n 'p-highlight': active,\n 'p-disabled': item.disabled\n });\n var submenuIconClassName = classNames('p-panelmenu-icon pi', {\n 'pi-chevron-right': !active,\n ' pi-chevron-down': active\n });\n var iconClassName = classNames('p-menuitem-icon', item.icon);\n var submenuIcon = item.items && /*#__PURE__*/React.createElement(\"span\", {\n className: submenuIconClassName\n });\n var itemIcon = item.icon && /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n });\n var label = item.label && /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-menuitem-text\"\n }, item.label);\n var contentWrapperClassName = classNames('p-toggleable-content', {\n 'p-toggleable-content-collapsed': !active\n });\n var menuContentRef = /*#__PURE__*/React.createRef();\n var content = /*#__PURE__*/React.createElement(\"a\", {\n href: item.url || '#',\n className: \"p-panelmenu-header-link\",\n onClick: function onClick(e) {\n return _this5.onItemClick(e, item);\n },\n \"aria-expanded\": active,\n id: this.state.id + '_header',\n \"aria-controls\": this.state.id + 'content',\n \"aria-disabled\": item.disabled\n }, submenuIcon, itemIcon, label);\n\n if (item.template) {\n var defaultContentOptions = {\n onClick: function onClick(event) {\n return _this5.onItemClick(event, item);\n },\n className: 'p-panelmenu-header-link',\n labelClassName: 'p-menuitem-text',\n submenuIconClassName: submenuIconClassName,\n iconClassName: iconClassName,\n element: content,\n props: this.props,\n leaf: !item.items,\n active: active\n };\n content = ObjectUtils.getJSXElement(item.template, item, defaultContentOptions);\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n key: item.label + '_' + index,\n className: className,\n style: item.style\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: headerClassName,\n style: item.style\n }, content), /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: menuContentRef,\n classNames: \"p-toggleable-content\",\n timeout: {\n enter: 1000,\n exit: 450\n },\n \"in\": active,\n unmountOnExit: true,\n options: this.props.transitionOptions\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: menuContentRef,\n className: contentWrapperClassName,\n role: \"region\",\n id: this.state.id + '_content',\n \"aria-labelledby\": this.state.id + '_header'\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-panelmenu-content\"\n }, /*#__PURE__*/React.createElement(PanelMenuSub, {\n model: item.items,\n className: \"p-panelmenu-root-submenu\",\n multiple: this.props.multiple\n })))));\n }\n }, {\n key: \"renderPanels\",\n value: function renderPanels() {\n var _this6 = this;\n\n if (this.props.model) {\n return this.props.model.map(function (item, index) {\n return _this6.renderPanel(item, index);\n });\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var className = classNames('p-panelmenu p-component', this.props.className);\n var panels = this.renderPanels();\n return /*#__PURE__*/React.createElement(\"div\", {\n id: this.props.id,\n className: className,\n style: this.props.style\n }, panels);\n }\n }]);\n\n return PanelMenu;\n}(Component);\n\n_defineProperty(PanelMenu, \"defaultProps\", {\n id: null,\n model: null,\n style: null,\n className: null,\n multiple: false,\n transitionOptions: null\n});\n\nexport { PanelMenu };","map":{"version":3,"names":["React","Component","classNames","ObjectUtils","UniqueComponentId","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","_setPrototypeOf","p","setPrototypeOf","__proto__","_inherits","subClass","superClass","create","value","_typeof","obj","_assertThisInitialized","self","ReferenceError","_possibleConstructorReturn","_getPrototypeOf","getPrototypeOf","_defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","result","NewTarget","Reflect","construct","arguments","apply","sham","Proxy","Boolean","valueOf","e","PanelMenuSub","_Component","_super","_this","state","activeItem","findActiveItem","onItemClick","event","item","disabled","preventDefault","url","command","originalEvent","active","isItemActive","expanded","setState","multiple","filter","a_item","concat","model","forEach","indexOf","renderSeparator","index","createElement","className","renderSubmenu","submenuWrapperClassName","submenuContentRef","createRef","items","nodeRef","timeout","enter","exit","unmountOnExit","ref","renderMenuitem","_this2","linkClassName","iconClassName","icon","submenuIconClassName","label","submenuIcon","submenu","content","href","onClick","role","template","defaultContentOptions","labelClassName","element","leaf","getJSXElement","style","renderItem","separator","renderMenu","_this3","map","render","menu","PanelMenu","_Component2","_super2","_this4","id","componentDidMount","renderPanel","_this5","headerClassName","itemIcon","contentWrapperClassName","menuContentRef","options","transitionOptions","renderPanels","_this6","panels"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/primereact/panelmenu/panelmenu.esm.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { classNames, ObjectUtils, UniqueComponentId } from 'primereact/utils';\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 _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 _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 _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 _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; } }\n\nvar PanelMenuSub = /*#__PURE__*/function (_Component) {\n _inherits(PanelMenuSub, _Component);\n\n var _super = _createSuper(PanelMenuSub);\n\n function PanelMenuSub(props) {\n var _this;\n\n _classCallCheck(this, PanelMenuSub);\n\n _this = _super.call(this, props);\n _this.state = {\n activeItem: _this.findActiveItem()\n };\n return _this;\n }\n\n _createClass(PanelMenuSub, [{\n key: \"onItemClick\",\n value: function onItemClick(event, item) {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n\n if (!item.url) {\n event.preventDefault();\n }\n\n if (item.command) {\n item.command({\n originalEvent: event,\n item: item\n });\n }\n\n var activeItem = this.state.activeItem;\n var active = this.isItemActive(item);\n\n if (active) {\n item.expanded = false;\n this.setState({\n activeItem: this.props.multiple ? activeItem.filter(function (a_item) {\n return a_item !== item;\n }) : null\n });\n } else {\n if (!this.props.multiple && activeItem) {\n activeItem.expanded = false;\n }\n\n item.expanded = true;\n this.setState({\n activeItem: this.props.multiple ? [].concat(_toConsumableArray(activeItem || []), [item]) : item\n });\n }\n }\n }, {\n key: \"findActiveItem\",\n value: function findActiveItem() {\n if (this.props.model) {\n if (this.props.multiple) {\n return this.props.model.filter(function (item) {\n return item.expanded;\n });\n } else {\n var activeItem = null;\n this.props.model.forEach(function (item) {\n if (item.expanded) {\n if (!activeItem) activeItem = item;else item.expanded = false;\n }\n });\n return activeItem;\n }\n }\n\n return null;\n }\n }, {\n key: \"isItemActive\",\n value: function isItemActive(item) {\n return this.state.activeItem && (this.props.multiple ? this.state.activeItem.indexOf(item) > -1 : this.state.activeItem === item);\n }\n }, {\n key: \"renderSeparator\",\n value: function renderSeparator(index) {\n return /*#__PURE__*/React.createElement(\"li\", {\n key: 'separator_' + index,\n className: \"p-menu-separator\"\n });\n }\n }, {\n key: \"renderSubmenu\",\n value: function renderSubmenu(item, active) {\n var submenuWrapperClassName = classNames('p-toggleable-content', {\n 'p-toggleable-content-collapsed': !active\n });\n var submenuContentRef = /*#__PURE__*/React.createRef();\n\n if (item.items) {\n return /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: submenuContentRef,\n classNames: \"p-toggleable-content\",\n timeout: {\n enter: 1000,\n exit: 450\n },\n \"in\": active,\n unmountOnExit: true\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: submenuContentRef,\n className: submenuWrapperClassName\n }, /*#__PURE__*/React.createElement(PanelMenuSub, {\n model: item.items,\n multiple: this.props.multiple\n })));\n }\n\n return null;\n }\n }, {\n key: \"renderMenuitem\",\n value: function renderMenuitem(item, index) {\n var _this2 = this;\n\n var active = this.isItemActive(item);\n var className = classNames('p-menuitem', item.className);\n var linkClassName = classNames('p-menuitem-link', {\n 'p-disabled': item.disabled\n });\n var iconClassName = classNames('p-menuitem-icon', item.icon);\n var submenuIconClassName = classNames('p-panelmenu-icon pi pi-fw', {\n 'pi-angle-right': !active,\n 'pi-angle-down': active\n });\n var icon = item.icon && /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n });\n var label = item.label && /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-menuitem-text\"\n }, item.label);\n var submenuIcon = item.items && /*#__PURE__*/React.createElement(\"span\", {\n className: submenuIconClassName\n });\n var submenu = this.renderSubmenu(item, active);\n var content = /*#__PURE__*/React.createElement(\"a\", {\n href: item.url || '#',\n className: linkClassName,\n target: item.target,\n onClick: function onClick(event) {\n return _this2.onItemClick(event, item, index);\n },\n role: \"menuitem\",\n \"aria-disabled\": item.disabled\n }, submenuIcon, icon, label);\n\n if (item.template) {\n var defaultContentOptions = {\n onClick: function onClick(event) {\n return _this2.onItemClick(event, item, index);\n },\n className: linkClassName,\n labelClassName: 'p-menuitem-text',\n iconClassName: iconClassName,\n submenuIconClassName: submenuIconClassName,\n element: content,\n props: this.props,\n leaf: !item.items,\n active: active\n };\n content = ObjectUtils.getJSXElement(item.template, item, defaultContentOptions);\n }\n\n return /*#__PURE__*/React.createElement(\"li\", {\n key: item.label + '_' + index,\n className: className,\n style: item.style,\n role: \"none\"\n }, content, submenu);\n }\n }, {\n key: \"renderItem\",\n value: function renderItem(item, index) {\n if (item.separator) return this.renderSeparator(index);else return this.renderMenuitem(item, index);\n }\n }, {\n key: \"renderMenu\",\n value: function renderMenu() {\n var _this3 = this;\n\n if (this.props.model) {\n return this.props.model.map(function (item, index) {\n return _this3.renderItem(item, index);\n });\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var className = classNames('p-submenu-list', this.props.className);\n var menu = this.renderMenu();\n return /*#__PURE__*/React.createElement(\"ul\", {\n className: className,\n role: \"tree\"\n }, menu);\n }\n }]);\n\n return PanelMenuSub;\n}(Component);\n\n_defineProperty(PanelMenuSub, \"defaultProps\", {\n model: null,\n multiple: false\n});\n\nvar PanelMenu = /*#__PURE__*/function (_Component2) {\n _inherits(PanelMenu, _Component2);\n\n var _super2 = _createSuper(PanelMenu);\n\n function PanelMenu(props) {\n var _this4;\n\n _classCallCheck(this, PanelMenu);\n\n _this4 = _super2.call(this, props);\n _this4.state = {\n id: props.id,\n activeItem: _this4.findActiveItem()\n };\n return _this4;\n }\n\n _createClass(PanelMenu, [{\n key: \"onItemClick\",\n value: function onItemClick(event, item) {\n if (item.disabled) {\n event.preventDefault();\n return;\n }\n\n if (!item.url) {\n event.preventDefault();\n }\n\n if (item.command) {\n item.command({\n originalEvent: event,\n item: item\n });\n }\n\n var activeItem = this.state.activeItem;\n var active = this.isItemActive(item);\n\n if (active) {\n item.expanded = false;\n this.setState({\n activeItem: this.props.multiple ? activeItem.filter(function (a_item) {\n return a_item !== item;\n }) : null\n });\n } else {\n if (!this.props.multiple && activeItem) {\n activeItem.expanded = false;\n }\n\n item.expanded = true;\n this.setState({\n activeItem: this.props.multiple ? [].concat(_toConsumableArray(activeItem || []), [item]) : item\n });\n }\n }\n }, {\n key: \"findActiveItem\",\n value: function findActiveItem() {\n if (this.props.model) {\n if (this.props.multiple) {\n return this.props.model.filter(function (item) {\n return item.expanded;\n });\n } else {\n var activeItem = null;\n this.props.model.forEach(function (item) {\n if (item.expanded) {\n if (!activeItem) activeItem = item;else item.expanded = false;\n }\n });\n return activeItem;\n }\n }\n\n return null;\n }\n }, {\n key: \"isItemActive\",\n value: function isItemActive(item) {\n return this.state.activeItem && (this.props.multiple ? this.state.activeItem.indexOf(item) > -1 : this.state.activeItem === item);\n }\n }, {\n key: \"componentDidMount\",\n value: function componentDidMount() {\n if (!this.state.id) {\n this.setState({\n id: UniqueComponentId()\n });\n }\n }\n }, {\n key: \"renderPanel\",\n value: function renderPanel(item, index) {\n var _this5 = this;\n\n var active = this.isItemActive(item);\n var className = classNames('p-panelmenu-panel', item.className);\n var headerClassName = classNames('p-component p-panelmenu-header', {\n 'p-highlight': active,\n 'p-disabled': item.disabled\n });\n var submenuIconClassName = classNames('p-panelmenu-icon pi', {\n 'pi-chevron-right': !active,\n ' pi-chevron-down': active\n });\n var iconClassName = classNames('p-menuitem-icon', item.icon);\n var submenuIcon = item.items && /*#__PURE__*/React.createElement(\"span\", {\n className: submenuIconClassName\n });\n var itemIcon = item.icon && /*#__PURE__*/React.createElement(\"span\", {\n className: iconClassName\n });\n var label = item.label && /*#__PURE__*/React.createElement(\"span\", {\n className: \"p-menuitem-text\"\n }, item.label);\n var contentWrapperClassName = classNames('p-toggleable-content', {\n 'p-toggleable-content-collapsed': !active\n });\n var menuContentRef = /*#__PURE__*/React.createRef();\n var content = /*#__PURE__*/React.createElement(\"a\", {\n href: item.url || '#',\n className: \"p-panelmenu-header-link\",\n onClick: function onClick(e) {\n return _this5.onItemClick(e, item);\n },\n \"aria-expanded\": active,\n id: this.state.id + '_header',\n \"aria-controls\": this.state.id + 'content',\n \"aria-disabled\": item.disabled\n }, submenuIcon, itemIcon, label);\n\n if (item.template) {\n var defaultContentOptions = {\n onClick: function onClick(event) {\n return _this5.onItemClick(event, item);\n },\n className: 'p-panelmenu-header-link',\n labelClassName: 'p-menuitem-text',\n submenuIconClassName: submenuIconClassName,\n iconClassName: iconClassName,\n element: content,\n props: this.props,\n leaf: !item.items,\n active: active\n };\n content = ObjectUtils.getJSXElement(item.template, item, defaultContentOptions);\n }\n\n return /*#__PURE__*/React.createElement(\"div\", {\n key: item.label + '_' + index,\n className: className,\n style: item.style\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: headerClassName,\n style: item.style\n }, content), /*#__PURE__*/React.createElement(CSSTransition, {\n nodeRef: menuContentRef,\n classNames: \"p-toggleable-content\",\n timeout: {\n enter: 1000,\n exit: 450\n },\n \"in\": active,\n unmountOnExit: true,\n options: this.props.transitionOptions\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: menuContentRef,\n className: contentWrapperClassName,\n role: \"region\",\n id: this.state.id + '_content',\n \"aria-labelledby\": this.state.id + '_header'\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"p-panelmenu-content\"\n }, /*#__PURE__*/React.createElement(PanelMenuSub, {\n model: item.items,\n className: \"p-panelmenu-root-submenu\",\n multiple: this.props.multiple\n })))));\n }\n }, {\n key: \"renderPanels\",\n value: function renderPanels() {\n var _this6 = this;\n\n if (this.props.model) {\n return this.props.model.map(function (item, index) {\n return _this6.renderPanel(item, index);\n });\n }\n\n return null;\n }\n }, {\n key: \"render\",\n value: function render() {\n var className = classNames('p-panelmenu p-component', this.props.className);\n var panels = this.renderPanels();\n return /*#__PURE__*/React.createElement(\"div\", {\n id: this.props.id,\n className: className,\n style: this.props.style\n }, panels);\n }\n }]);\n\n return PanelMenu;\n}(Component);\n\n_defineProperty(PanelMenu, \"defaultProps\", {\n id: null,\n model: null,\n style: null,\n className: null,\n multiple: false,\n transitionOptions: null\n});\n\nexport { PanelMenu };\n"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,UAAT,EAAqBC,WAArB,EAAkCC,iBAAlC,QAA2D,kBAA3D;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,EAAgDE,CAAC,EAAjD,EAAqD;IACnDC,IAAI,CAACD,CAAD,CAAJ,GAAUH,GAAG,CAACG,CAAD,CAAb;EACD;;EAED,OAAOC,IAAP;AACD;;AAED,SAASE,kBAAT,CAA4BN,GAA5B,EAAiC;EAC/B,IAAIK,KAAK,CAACE,OAAN,CAAcP,GAAd,CAAJ,EAAwB,OAAOD,iBAAiB,CAACC,GAAD,CAAxB;AACzB;;AAED,SAASQ,gBAAT,CAA0BC,IAA1B,EAAgC;EAC9B,IAAI,OAAOC,MAAP,KAAkB,WAAlB,IAAiCD,IAAI,CAACC,MAAM,CAACC,QAAR,CAAJ,IAAyB,IAA1D,IAAkEF,IAAI,CAAC,YAAD,CAAJ,IAAsB,IAA5F,EAAkG,OAAOJ,KAAK,CAACO,IAAN,CAAWH,IAAX,CAAP;AACnG;;AAED,SAASI,2BAAT,CAAqCC,CAArC,EAAwCC,MAAxC,EAAgD;EAC9C,IAAI,CAACD,CAAL,EAAQ;EACR,IAAI,OAAOA,CAAP,KAAa,QAAjB,EAA2B,OAAOf,iBAA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