"use strict"; /* * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file in the browser devtools. * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) * or disable the default devtool with "devtool: false". * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). */ (self["webpackChunkcomplexes"] = self["webpackChunkcomplexes"] || []).push([["node_modules_primevue_menu_menu_esm_js"],{ /***/ "./node_modules/primevue/menu/menu.esm.js": /*!************************************************!*\ !*** ./node_modules/primevue/menu/menu.esm.js ***! \************************************************/ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ script; }\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/overlayeventbus */ \"./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js\");\n/* harmony import */ var primevue_portal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primevue/portal */ \"./node_modules/primevue/portal/portal.esm.js\");\n/* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primevue/utils */ \"./node_modules/primevue/utils/utils.esm.js\");\n/* harmony import */ var primevue_basecomponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! primevue/basecomponent */ \"./node_modules/primevue/basecomponent/basecomponent.esm.js\");\n/* harmony import */ var primevue_usestyle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primevue/usestyle */ \"./node_modules/primevue/usestyle/usestyle.esm.js\");\n/* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! primevue/ripple */ \"./node_modules/primevue/ripple/ripple.esm.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm-bundler.js\");\n\n\n\n\n\n\n\n\nvar styles = \"\\n.p-menu ul {\\n margin: 0;\\n padding: 0;\\n list-style: none;\\n}\\n\\n.p-menu .p-menuitem-link {\\n cursor: pointer;\\n display: flex;\\n align-items: center;\\n text-decoration: none;\\n overflow: hidden;\\n position: relative;\\n}\\n\\n.p-menu .p-menuitem-text {\\n line-height: 1;\\n}\\n\";\nvar classes = {\n root: function root(_ref) {\n var instance = _ref.instance,\n props = _ref.props;\n return ['p-menu p-component', {\n 'p-menu-overlay': props.popup,\n 'p-input-filled': instance.$primevue.config.inputStyle === 'filled',\n 'p-ripple-disabled': instance.$primevue.config.ripple === false\n }];\n },\n start: 'p-menu-start',\n menu: 'p-menu-list p-reset',\n submenuHeader: 'p-submenu-header',\n separator: 'p-menuitem-separator',\n end: 'p-menu-end',\n menuitem: function menuitem(_ref2) {\n var instance = _ref2.instance;\n return ['p-menuitem', {\n 'p-focus': instance.id === instance.focusedOptionId,\n 'p-disabled': instance.disabled()\n }];\n },\n content: 'p-menuitem-content',\n action: function action(_ref3) {\n var props = _ref3.props,\n isActive = _ref3.isActive,\n isExactActive = _ref3.isExactActive;\n return ['p-menuitem-link', {\n 'router-link-active': isActive,\n 'router-link-active-exact': props.exact && isExactActive\n }];\n },\n icon: 'p-menuitem-icon',\n label: 'p-menuitem-text'\n};\nvar _useStyle = (0,primevue_usestyle__WEBPACK_IMPORTED_MODULE_5__.useStyle)(styles, {\n name: 'menu',\n manual: true\n }),\n loadStyle = _useStyle.load;\nvar script$2 = {\n name: 'BaseMenu',\n \"extends\": primevue_basecomponent__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n props: {\n popup: {\n type: Boolean,\n \"default\": false\n },\n model: {\n type: Array,\n \"default\": null\n },\n appendTo: {\n type: String,\n \"default\": 'body'\n },\n autoZIndex: {\n type: Boolean,\n \"default\": true\n },\n baseZIndex: {\n type: Number,\n \"default\": 0\n },\n exact: {\n type: Boolean,\n \"default\": true\n },\n tabindex: {\n type: Number,\n \"default\": 0\n },\n 'aria-label': {\n type: String,\n \"default\": null\n },\n 'aria-labelledby': {\n type: String,\n \"default\": null\n }\n },\n css: {\n classes: classes,\n loadStyle: loadStyle\n },\n provide: function provide() {\n return {\n $parentInstance: this\n };\n }\n};\nvar script$1 = {\n name: 'Menuitem',\n hostName: 'Menu',\n \"extends\": primevue_basecomponent__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n inheritAttrs: false,\n emits: ['item-click'],\n props: {\n item: null,\n templates: null,\n exact: null,\n id: null,\n focusedOptionId: null,\n index: null\n },\n methods: {\n getItemProp: function getItemProp(processedItem, name) {\n return processedItem && processedItem.item ? primevue_utils__WEBPACK_IMPORTED_MODULE_3__.ObjectUtils.getItemValue(processedItem.item[name]) : undefined;\n },\n getPTOptions: function getPTOptions(key) {\n return this.ptm(key, {\n context: {\n item: this.item,\n index: this.index,\n focused: this.isItemFocused()\n }\n });\n },\n isItemFocused: function isItemFocused() {\n return this.focusedOptionId === this.id;\n },\n onItemActionClick: function onItemActionClick(event, navigate) {\n navigate && navigate(event);\n },\n onItemClick: function onItemClick(event) {\n var command = this.getItemProp(this.item, 'command');\n command && command({\n originalEvent: event,\n item: this.item.item\n });\n this.$emit('item-click', {\n originalEvent: event,\n item: this.item,\n id: this.id\n });\n },\n visible: function visible() {\n return typeof this.item.visible === 'function' ? this.item.visible() : this.item.visible !== false;\n },\n disabled: function disabled() {\n return typeof this.item.disabled === 'function' ? this.item.disabled() : this.item.disabled;\n },\n label: function label() {\n return typeof this.item.label === 'function' ? this.item.label() : this.item.label;\n }\n },\n directives: {\n ripple: primevue_ripple__WEBPACK_IMPORTED_MODULE_6__[\"default\"]\n }\n};\nvar _hoisted_1$1 = [\"id\", \"aria-label\", \"aria-disabled\", \"data-p-focused\", \"data-p-disabled\"];\nvar _hoisted_2$1 = [\"href\", \"onClick\"];\nvar _hoisted_3$1 = [\"href\", \"target\"];\nfunction render$1(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_router_link = (0,vue__WEBPACK_IMPORTED_MODULE_7__.resolveComponent)(\"router-link\");\n var _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_7__.resolveDirective)(\"ripple\");\n return $options.visible() ? ((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementBlock)(\"li\", (0,vue__WEBPACK_IMPORTED_MODULE_7__.mergeProps)({\n key: 0,\n id: $props.id,\n \"class\": [_ctx.cx('menuitem'), $props.item[\"class\"]],\n role: \"menuitem\",\n style: $props.item.style,\n \"aria-label\": $options.label(),\n \"aria-disabled\": $options.disabled()\n }, $options.getPTOptions('menuitem'), {\n \"data-p-focused\": $options.isItemFocused(),\n \"data-p-disabled\": $options.disabled() || false\n }), [(0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementVNode)(\"div\", (0,vue__WEBPACK_IMPORTED_MODULE_7__.mergeProps)({\n \"class\": _ctx.cx('content'),\n onClick: _cache[0] || (_cache[0] = function ($event) {\n return $options.onItemClick($event);\n })\n }, $options.getPTOptions('content')), [!$props.templates.item ? ((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_7__.Fragment, {\n key: 0\n }, [$props.item.to && !$options.disabled() ? ((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createBlock)(_component_router_link, {\n key: 0,\n to: $props.item.to,\n custom: \"\"\n }, {\n \"default\": (0,vue__WEBPACK_IMPORTED_MODULE_7__.withCtx)(function (_ref) {\n var navigate = _ref.navigate,\n href = _ref.href,\n isActive = _ref.isActive,\n isExactActive = _ref.isExactActive;\n return [(0,vue__WEBPACK_IMPORTED_MODULE_7__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementBlock)(\"a\", (0,vue__WEBPACK_IMPORTED_MODULE_7__.mergeProps)({\n href: href,\n \"class\": _ctx.cx('action', {\n isActive: isActive,\n isExactActive: isExactActive\n }),\n tabindex: \"-1\",\n \"aria-hidden\": \"true\",\n onClick: function onClick($event) {\n return $options.onItemActionClick($event, navigate);\n }\n }, $options.getPTOptions('action')), [$props.templates.itemicon ? ((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_7__.resolveDynamicComponent)($props.templates.itemicon), {\n key: 0,\n item: $props.item,\n \"class\": (0,vue__WEBPACK_IMPORTED_MODULE_7__.normalizeClass)([_ctx.cx('icon'), $props.item.icon])\n }, null, 8, [\"item\", \"class\"])) : $props.item.icon ? ((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementBlock)(\"span\", (0,vue__WEBPACK_IMPORTED_MODULE_7__.mergeProps)({\n key: 1,\n \"class\": [_ctx.cx('icon'), $props.item.icon]\n }, $options.getPTOptions('icon')), null, 16)) : (0,vue__WEBPACK_IMPORTED_MODULE_7__.createCommentVNode)(\"\", true), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementVNode)(\"span\", (0,vue__WEBPACK_IMPORTED_MODULE_7__.mergeProps)({\n \"class\": _ctx.cx('label')\n }, $options.getPTOptions('label')), (0,vue__WEBPACK_IMPORTED_MODULE_7__.toDisplayString)($options.label()), 17)], 16, _hoisted_2$1)), [[_directive_ripple]])];\n }),\n _: 1\n }, 8, [\"to\"])) : (0,vue__WEBPACK_IMPORTED_MODULE_7__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementBlock)(\"a\", (0,vue__WEBPACK_IMPORTED_MODULE_7__.mergeProps)({\n key: 1,\n href: $props.item.url,\n \"class\": _ctx.cx('action'),\n target: $props.item.target,\n tabindex: \"-1\",\n \"aria-hidden\": \"true\"\n }, $options.getPTOptions('action')), [$props.templates.itemicon ? ((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_7__.resolveDynamicComponent)($props.templates.itemicon), {\n key: 0,\n item: $props.item,\n \"class\": (0,vue__WEBPACK_IMPORTED_MODULE_7__.normalizeClass)([_ctx.cx('icon'), $props.item.icon])\n }, null, 8, [\"item\", \"class\"])) : $props.item.icon ? ((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementBlock)(\"span\", (0,vue__WEBPACK_IMPORTED_MODULE_7__.mergeProps)({\n key: 1,\n \"class\": [_ctx.cx('icon'), $props.item.icon]\n }, $options.getPTOptions('icon')), null, 16)) : (0,vue__WEBPACK_IMPORTED_MODULE_7__.createCommentVNode)(\"\", true), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementVNode)(\"span\", (0,vue__WEBPACK_IMPORTED_MODULE_7__.mergeProps)({\n \"class\": _ctx.cx('label')\n }, $options.getPTOptions('label')), (0,vue__WEBPACK_IMPORTED_MODULE_7__.toDisplayString)($options.label()), 17)], 16, _hoisted_3$1)), [[_directive_ripple]])], 64)) : ((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_7__.resolveDynamicComponent)($props.templates.item), {\n key: 1,\n item: $props.item\n }, null, 8, [\"item\"]))], 16)], 16, _hoisted_1$1)) : (0,vue__WEBPACK_IMPORTED_MODULE_7__.createCommentVNode)(\"\", true);\n}\nscript$1.render = render$1;\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\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}\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}\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}\nvar script = {\n name: 'Menu',\n \"extends\": script$2,\n inheritAttrs: false,\n emits: ['show', 'hide', 'focus', 'blur'],\n data: function data() {\n return {\n id: this.$attrs.id,\n overlayVisible: false,\n focused: false,\n focusedOptionIndex: -1,\n selectedOptionIndex: -1\n };\n },\n watch: {\n '$attrs.id': function $attrsId(newValue) {\n this.id = newValue || (0,primevue_utils__WEBPACK_IMPORTED_MODULE_3__.UniqueComponentId)();\n }\n },\n target: null,\n outsideClickListener: null,\n scrollHandler: null,\n resizeListener: null,\n container: null,\n list: null,\n mounted: function mounted() {\n this.id = this.id || (0,primevue_utils__WEBPACK_IMPORTED_MODULE_3__.UniqueComponentId)();\n if (!this.popup) {\n this.bindResizeListener();\n this.bindOutsideClickListener();\n }\n },\n beforeUnmount: function beforeUnmount() {\n this.unbindResizeListener();\n this.unbindOutsideClickListener();\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n this.target = null;\n if (this.container && this.autoZIndex) {\n primevue_utils__WEBPACK_IMPORTED_MODULE_3__.ZIndexUtils.clear(this.container);\n }\n this.container = null;\n },\n methods: {\n itemClick: function itemClick(event) {\n var item = event.item;\n if (this.disabled(item)) {\n return;\n }\n if (item.command) {\n item.command(event);\n }\n if (item.to && event.navigate) {\n event.navigate(event.originalEvent);\n }\n if (this.overlayVisible) this.hide();\n if (!this.popup && this.focusedOptionIndex !== event.id) {\n this.focusedOptionIndex = event.id;\n }\n },\n onListFocus: function onListFocus(event) {\n this.focused = true;\n if (!this.popup) {\n if (this.selectedOptionIndex !== -1) {\n this.changeFocusedOptionIndex(this.selectedOptionIndex);\n this.selectedOptionIndex = -1;\n } else this.changeFocusedOptionIndex(0);\n }\n this.$emit('focus', event);\n },\n onListBlur: function onListBlur(event) {\n this.focused = false;\n this.focusedOptionIndex = -1;\n this.$emit('blur', event);\n },\n onListKeyDown: function onListKeyDown(event) {\n switch (event.code) {\n case 'ArrowDown':\n this.onArrowDownKey(event);\n break;\n case 'ArrowUp':\n this.onArrowUpKey(event);\n break;\n case 'Home':\n this.onHomeKey(event);\n break;\n case 'End':\n this.onEndKey(event);\n break;\n case 'Enter':\n this.onEnterKey(event);\n break;\n case 'Space':\n this.onSpaceKey(event);\n break;\n case 'Escape':\n if (this.popup) {\n primevue_utils__WEBPACK_IMPORTED_MODULE_3__.DomHandler.focus(this.target);\n this.hide();\n }\n case 'Tab':\n this.overlayVisible && this.hide();\n break;\n }\n },\n onArrowDownKey: function onArrowDownKey(event) {\n var optionIndex = this.findNextOptionIndex(this.focusedOptionIndex);\n this.changeFocusedOptionIndex(optionIndex);\n event.preventDefault();\n },\n onArrowUpKey: function onArrowUpKey(event) {\n if (event.altKey && this.popup) {\n primevue_utils__WEBPACK_IMPORTED_MODULE_3__.DomHandler.focus(this.target);\n this.hide();\n event.preventDefault();\n } else {\n var optionIndex = this.findPrevOptionIndex(this.focusedOptionIndex);\n this.changeFocusedOptionIndex(optionIndex);\n event.preventDefault();\n }\n },\n onHomeKey: function onHomeKey(event) {\n this.changeFocusedOptionIndex(0);\n event.preventDefault();\n },\n onEndKey: function onEndKey(event) {\n this.changeFocusedOptionIndex(primevue_utils__WEBPACK_IMPORTED_MODULE_3__.DomHandler.find(this.container, 'li[data-pc-section=\"menuitem\"][data-p-disabled=\"false\"]').length - 1);\n event.preventDefault();\n },\n onEnterKey: function onEnterKey(event) {\n var element = primevue_utils__WEBPACK_IMPORTED_MODULE_3__.DomHandler.findSingle(this.list, \"li[id=\\\"\".concat(\"\".concat(this.focusedOptionIndex), \"\\\"]\"));\n var anchorElement = element && primevue_utils__WEBPACK_IMPORTED_MODULE_3__.DomHandler.findSingle(element, 'a[data-pc-section=\"action\"]');\n this.popup && primevue_utils__WEBPACK_IMPORTED_MODULE_3__.DomHandler.focus(this.target);\n anchorElement ? anchorElement.click() : element && element.click();\n event.preventDefault();\n },\n onSpaceKey: function onSpaceKey(event) {\n this.onEnterKey(event);\n },\n findNextOptionIndex: function findNextOptionIndex(index) {\n var links = primevue_utils__WEBPACK_IMPORTED_MODULE_3__.DomHandler.find(this.container, 'li[data-pc-section=\"menuitem\"][data-p-disabled=\"false\"]');\n var matchedOptionIndex = _toConsumableArray(links).findIndex(function (link) {\n return link.id === index;\n });\n return matchedOptionIndex > -1 ? matchedOptionIndex + 1 : 0;\n },\n findPrevOptionIndex: function findPrevOptionIndex(index) {\n var links = primevue_utils__WEBPACK_IMPORTED_MODULE_3__.DomHandler.find(this.container, 'li[data-pc-section=\"menuitem\"][data-p-disabled=\"false\"]');\n var matchedOptionIndex = _toConsumableArray(links).findIndex(function (link) {\n return link.id === index;\n });\n return matchedOptionIndex > -1 ? matchedOptionIndex - 1 : 0;\n },\n changeFocusedOptionIndex: function changeFocusedOptionIndex(index) {\n var links = primevue_utils__WEBPACK_IMPORTED_MODULE_3__.DomHandler.find(this.container, 'li[data-pc-section=\"menuitem\"][data-p-disabled=\"false\"]');\n var order = index >= links.length ? links.length - 1 : index < 0 ? 0 : index;\n order > -1 && (this.focusedOptionIndex = links[order].getAttribute('id'));\n },\n toggle: function toggle(event) {\n if (this.overlayVisible) this.hide();else this.show(event);\n },\n show: function show(event) {\n this.overlayVisible = true;\n this.target = event.currentTarget;\n },\n hide: function hide() {\n this.overlayVisible = false;\n this.target = null;\n },\n onEnter: function onEnter(el) {\n primevue_utils__WEBPACK_IMPORTED_MODULE_3__.DomHandler.addStyles(el, {\n position: 'absolute',\n top: '0',\n left: '0'\n });\n this.alignOverlay();\n this.bindOutsideClickListener();\n this.bindResizeListener();\n this.bindScrollListener();\n if (this.autoZIndex) {\n primevue_utils__WEBPACK_IMPORTED_MODULE_3__.ZIndexUtils.set('menu', el, this.baseZIndex + this.$primevue.config.zIndex.menu);\n }\n if (this.popup) {\n primevue_utils__WEBPACK_IMPORTED_MODULE_3__.DomHandler.focus(this.list);\n this.changeFocusedOptionIndex(0);\n }\n this.$emit('show');\n },\n onLeave: function onLeave() {\n this.unbindOutsideClickListener();\n this.unbindResizeListener();\n this.unbindScrollListener();\n this.$emit('hide');\n },\n onAfterLeave: function onAfterLeave(el) {\n if (this.autoZIndex) {\n primevue_utils__WEBPACK_IMPORTED_MODULE_3__.ZIndexUtils.clear(el);\n }\n },\n alignOverlay: function alignOverlay() {\n primevue_utils__WEBPACK_IMPORTED_MODULE_3__.DomHandler.absolutePosition(this.container, this.target);\n this.container.style.minWidth = primevue_utils__WEBPACK_IMPORTED_MODULE_3__.DomHandler.getOuterWidth(this.target) + 'px';\n },\n bindOutsideClickListener: function bindOutsideClickListener() {\n var _this = this;\n if (!this.outsideClickListener) {\n this.outsideClickListener = function (event) {\n var isOutsideContainer = _this.container && !_this.container.contains(event.target);\n var isOutsideTarget = !(_this.target && (_this.target === event.target || _this.target.contains(event.target)));\n if (_this.overlayVisible && isOutsideContainer && isOutsideTarget) {\n _this.hide();\n } else if (!_this.popup && isOutsideContainer && isOutsideTarget) {\n _this.focusedOptionIndex = -1;\n }\n };\n document.addEventListener('click', this.outsideClickListener);\n }\n },\n unbindOutsideClickListener: function unbindOutsideClickListener() {\n if (this.outsideClickListener) {\n document.removeEventListener('click', this.outsideClickListener);\n this.outsideClickListener = null;\n }\n },\n bindScrollListener: function bindScrollListener() {\n var _this2 = this;\n if (!this.scrollHandler) {\n this.scrollHandler = new primevue_utils__WEBPACK_IMPORTED_MODULE_3__.ConnectedOverlayScrollHandler(this.target, function () {\n if (_this2.overlayVisible) {\n _this2.hide();\n }\n });\n }\n this.scrollHandler.bindScrollListener();\n },\n unbindScrollListener: function unbindScrollListener() {\n if (this.scrollHandler) {\n this.scrollHandler.unbindScrollListener();\n }\n },\n bindResizeListener: function bindResizeListener() {\n var _this3 = this;\n if (!this.resizeListener) {\n this.resizeListener = function () {\n if (_this3.overlayVisible && !primevue_utils__WEBPACK_IMPORTED_MODULE_3__.DomHandler.isTouchDevice()) {\n _this3.hide();\n }\n };\n window.addEventListener('resize', this.resizeListener);\n }\n },\n unbindResizeListener: function unbindResizeListener() {\n if (this.resizeListener) {\n window.removeEventListener('resize', this.resizeListener);\n this.resizeListener = null;\n }\n },\n visible: function visible(item) {\n return typeof item.visible === 'function' ? item.visible() : item.visible !== false;\n },\n disabled: function disabled(item) {\n return typeof item.disabled === 'function' ? item.disabled() : item.disabled;\n },\n label: function label(item) {\n return typeof item.label === 'function' ? item.label() : item.label;\n },\n onOverlayClick: function onOverlayClick(event) {\n primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__[\"default\"].emit('overlay-click', {\n originalEvent: event,\n target: this.target\n });\n },\n containerRef: function containerRef(el) {\n this.container = el;\n },\n listRef: function listRef(el) {\n this.list = el;\n }\n },\n computed: {\n focusedOptionId: function focusedOptionId() {\n return this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : null;\n }\n },\n components: {\n PVMenuitem: script$1,\n Portal: primevue_portal__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\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}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\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 return keys;\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 return target;\n}\nfunction _defineProperty(obj, key, value) {\n key = _toPropertyKey(key);\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 return obj;\n}\nfunction _toPropertyKey(arg) {\n var key = _toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}\nfunction _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}\nvar _hoisted_1 = [\"id\"];\nvar _hoisted_2 = [\"id\", \"tabindex\", \"aria-activedescendant\", \"aria-label\", \"aria-labelledby\"];\nvar _hoisted_3 = [\"id\"];\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_PVMenuitem = (0,vue__WEBPACK_IMPORTED_MODULE_7__.resolveComponent)(\"PVMenuitem\");\n var _component_Portal = (0,vue__WEBPACK_IMPORTED_MODULE_7__.resolveComponent)(\"Portal\");\n return (0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createBlock)(_component_Portal, {\n appendTo: _ctx.appendTo,\n disabled: !_ctx.popup\n }, {\n \"default\": (0,vue__WEBPACK_IMPORTED_MODULE_7__.withCtx)(function () {\n return [(0,vue__WEBPACK_IMPORTED_MODULE_7__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_7__.Transition, (0,vue__WEBPACK_IMPORTED_MODULE_7__.mergeProps)({\n name: \"p-connected-overlay\",\n onEnter: $options.onEnter,\n onLeave: $options.onLeave,\n onAfterLeave: $options.onAfterLeave\n }, _ctx.ptm('transition')), {\n \"default\": (0,vue__WEBPACK_IMPORTED_MODULE_7__.withCtx)(function () {\n return [(_ctx.popup ? $data.overlayVisible : true) ? ((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementBlock)(\"div\", (0,vue__WEBPACK_IMPORTED_MODULE_7__.mergeProps)({\n key: 0,\n ref: $options.containerRef,\n id: $data.id,\n \"class\": _ctx.cx('root'),\n onClick: _cache[3] || (_cache[3] = function () {\n return $options.onOverlayClick && $options.onOverlayClick.apply($options, arguments);\n })\n }, _objectSpread(_objectSpread({}, _ctx.$attrs), _ctx.ptm('root')), {\n \"data-pc-name\": \"menu\"\n }), [_ctx.$slots.start ? ((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementBlock)(\"div\", (0,vue__WEBPACK_IMPORTED_MODULE_7__.mergeProps)({\n key: 0,\n \"class\": _ctx.cx('start')\n }, _ctx.ptm('start')), [(0,vue__WEBPACK_IMPORTED_MODULE_7__.renderSlot)(_ctx.$slots, \"start\")], 16)) : (0,vue__WEBPACK_IMPORTED_MODULE_7__.createCommentVNode)(\"\", true), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementVNode)(\"ul\", (0,vue__WEBPACK_IMPORTED_MODULE_7__.mergeProps)({\n ref: $options.listRef,\n id: $data.id + '_list',\n \"class\": _ctx.cx('menu'),\n role: \"menu\",\n tabindex: _ctx.tabindex,\n \"aria-activedescendant\": $data.focused ? $options.focusedOptionId : undefined,\n \"aria-label\": _ctx.ariaLabel,\n \"aria-labelledby\": _ctx.ariaLabelledby,\n onFocus: _cache[0] || (_cache[0] = function () {\n return $options.onListFocus && $options.onListFocus.apply($options, arguments);\n }),\n onBlur: _cache[1] || (_cache[1] = function () {\n return $options.onListBlur && $options.onListBlur.apply($options, arguments);\n }),\n onKeydown: _cache[2] || (_cache[2] = function () {\n return $options.onListKeyDown && $options.onListKeyDown.apply($options, arguments);\n })\n }, _ctx.ptm('menu')), [((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_7__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_7__.renderList)(_ctx.model, function (item, i) {\n return (0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_7__.Fragment, {\n key: $options.label(item) + i.toString()\n }, [item.items && $options.visible(item) && !item.separator ? ((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_7__.Fragment, {\n key: 0\n }, [item.items ? ((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementBlock)(\"li\", (0,vue__WEBPACK_IMPORTED_MODULE_7__.mergeProps)({\n key: 0,\n id: $data.id + '_' + i,\n \"class\": _ctx.cx('submenuHeader'),\n role: \"none\"\n }, _ctx.ptm('submenuHeader')), [(0,vue__WEBPACK_IMPORTED_MODULE_7__.renderSlot)(_ctx.$slots, \"item\", {\n item: item\n }, function () {\n return [(0,vue__WEBPACK_IMPORTED_MODULE_7__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_7__.toDisplayString)($options.label(item)), 1)];\n })], 16, _hoisted_3)) : (0,vue__WEBPACK_IMPORTED_MODULE_7__.createCommentVNode)(\"\", true), ((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_7__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_7__.renderList)(item.items, function (child, j) {\n return (0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_7__.Fragment, {\n key: child.label + i + '_' + j\n }, [$options.visible(child) && !child.separator ? ((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createBlock)(_component_PVMenuitem, {\n key: 0,\n id: $data.id + '_' + i + '_' + j,\n item: child,\n templates: _ctx.$slots,\n exact: _ctx.exact,\n focusedOptionId: $options.focusedOptionId,\n onItemClick: $options.itemClick,\n pt: _ctx.pt\n }, null, 8, [\"id\", \"item\", \"templates\", \"exact\", \"focusedOptionId\", \"onItemClick\", \"pt\"])) : $options.visible(child) && child.separator ? ((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementBlock)(\"li\", (0,vue__WEBPACK_IMPORTED_MODULE_7__.mergeProps)({\n key: 'separator' + i + j,\n \"class\": [_ctx.cx('separator'), item[\"class\"]],\n style: child.style,\n role: \"separator\"\n }, _ctx.ptm('separator')), null, 16)) : (0,vue__WEBPACK_IMPORTED_MODULE_7__.createCommentVNode)(\"\", true)], 64);\n }), 128))], 64)) : $options.visible(item) && item.separator ? ((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementBlock)(\"li\", (0,vue__WEBPACK_IMPORTED_MODULE_7__.mergeProps)({\n key: 'separator' + i.toString(),\n \"class\": [_ctx.cx('separator'), item[\"class\"]],\n style: item.style,\n role: \"separator\"\n }, _ctx.ptm('separator')), null, 16)) : ((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createBlock)(_component_PVMenuitem, {\n key: $options.label(item) + i.toString(),\n id: $data.id + '_' + i,\n item: item,\n index: i,\n templates: _ctx.$slots,\n exact: _ctx.exact,\n focusedOptionId: $options.focusedOptionId,\n onItemClick: $options.itemClick,\n pt: _ctx.pt\n }, null, 8, [\"id\", \"item\", \"index\", \"templates\", \"exact\", \"focusedOptionId\", \"onItemClick\", \"pt\"]))], 64);\n }), 128))], 16, _hoisted_2), _ctx.$slots.end ? ((0,vue__WEBPACK_IMPORTED_MODULE_7__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_7__.createElementBlock)(\"div\", (0,vue__WEBPACK_IMPORTED_MODULE_7__.mergeProps)({\n key: 1,\n \"class\": _ctx.cx('end')\n }, _ctx.ptm('end')), [(0,vue__WEBPACK_IMPORTED_MODULE_7__.renderSlot)(_ctx.$slots, \"end\")], 16)) : (0,vue__WEBPACK_IMPORTED_MODULE_7__.createCommentVNode)(\"\", true)], 16, _hoisted_1)) : (0,vue__WEBPACK_IMPORTED_MODULE_7__.createCommentVNode)(\"\", true)];\n }),\n _: 3\n }, 16, [\"onEnter\", \"onLeave\", \"onAfterLeave\"])];\n }),\n _: 3\n }, 8, [\"appendTo\", \"disabled\"]);\n}\nscript.render = render;\n\n\n//# sourceURL=webpack://complexes/./node_modules/primevue/menu/menu.esm.js?"); /***/ }) }]);