1 line
1.1 MiB
1 line
1.1 MiB
{"version":3,"file":"GraphView-CVV2XJjS.js","sources":["../../src/components/common/EditableText.vue","../../src/components/graph/TitleEditor.vue","../../node_modules/primevue/overlaybadge/style/index.mjs","../../node_modules/primevue/overlaybadge/index.mjs","../../src/components/sidebar/SidebarIcon.vue","../../src/components/sidebar/SidebarThemeToggleIcon.vue","../../src/components/sidebar/SidebarSettingsToggleIcon.vue","../../src/components/sidebar/SideToolbar.vue","../../node_modules/primevue/splitter/style/index.mjs","../../node_modules/primevue/splitter/index.mjs","../../node_modules/primevue/splitterpanel/style/index.mjs","../../node_modules/primevue/splitterpanel/index.mjs","../../src/components/LiteGraphCanvasSplitterOverlay.vue","../../node_modules/primevue/autocomplete/style/index.mjs","../../node_modules/primevue/autocomplete/index.mjs","../../src/components/primevueOverride/AutoCompletePlus.vue","../../node_modules/primevue/togglebutton/style/index.mjs","../../node_modules/primevue/togglebutton/index.mjs","../../node_modules/primevue/selectbutton/style/index.mjs","../../node_modules/primevue/selectbutton/index.mjs","../../src/components/searchbox/NodeSearchFilter.vue","../../src/stores/nodeBookmarkStore.ts","../../src/components/searchbox/NodeSearchItem.vue","../../src/components/node/NodePreview.vue","../../src/components/searchbox/NodeSearchBox.vue","../../src/types/litegraphTypes.ts","../../src/components/searchbox/NodeSearchBoxPopover.vue","../../src/components/graph/NodeTooltip.vue","../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js","../../node_modules/bind-event-listener/dist/bind.js","../../node_modules/bind-event-listener/dist/bind-all.js","../../node_modules/bind-event-listener/dist/index.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/honey-pot-data-attribute.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/is-honey-pot-element.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/get-element-from-point-without-honey-pot.js","../../node_modules/@babel/runtime/helpers/esm/typeof.js","../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/max-z-index.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/honey-pot-fix/make-honey-pot-fix.js","../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js","../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/once.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/is-firefox.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/is-safari.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/count-events-for-safari.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-from-another-window.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/changing-window/is-leaving-window.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/detect-broken-drag.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/get-input.js","../../node_modules/raf-schd/dist/raf-schd.esm.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/dispatch-consumer-event.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/lifecycle-manager.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/ledger/usage-ledger.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/public-utils/combine.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/add-attribute.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-drop-target.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-monitor.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/make-adapter/make-adapter.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/android.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/media-types/text-media-type.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/util/media-types/url-media-type.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/adapter/element-adapter-native-data-key.js","../../node_modules/@atlaskit/pragmatic-drag-and-drop/dist/esm/adapter/element-adapter.js","../../src/stores/modelToNodeStore.ts","../../node_modules/primevue/buttongroup/style/index.mjs","../../node_modules/primevue/buttongroup/index.mjs","../../src/components/graph/GraphCanvasMenu.vue","../../src/components/graph/GraphCanvas.vue","../../node_modules/primevue/confirmpopup/style/index.mjs","../../node_modules/primevue/confirmpopup/index.mjs","../../node_modules/primevue/contextmenu/style/index.mjs","../../node_modules/primevue/contextmenu/index.mjs","../../src/components/common/ComfyImage.vue","../../src/components/sidebar/tabs/queue/ResultItem.vue","../../src/components/sidebar/tabs/queue/TaskItem.vue","../../node_modules/primevue/galleria/style/index.mjs","../../node_modules/@primevue/icons/chevronup/index.mjs","../../node_modules/primevue/galleria/index.mjs","../../src/components/sidebar/tabs/queue/ResultGallery.vue","../../node_modules/primevue/toolbar/style/index.mjs","../../node_modules/primevue/toolbar/index.mjs","../../src/components/sidebar/tabs/SidebarTabTemplate.vue","../../src/components/sidebar/tabs/QueueSidebarTab.vue","../../node_modules/primevue/popover/style/index.mjs","../../node_modules/primevue/popover/index.mjs","../../node_modules/primevue/tree/style/index.mjs","../../node_modules/primevue/tree/index.mjs","../../src/components/common/TreeExplorerTreeNode.vue","../../src/components/common/TreeExplorer.vue","../../src/components/sidebar/tabs/nodeLibrary/NodeTreeLeaf.vue","../../src/components/sidebar/tabs/nodeLibrary/NodeTreeFolder.vue","../../node_modules/primevue/colorpicker/style/index.mjs","../../node_modules/primevue/colorpicker/index.mjs","../../src/components/common/CustomizationDialog.vue","../../src/hooks/treeHooks.ts","../../src/components/sidebar/tabs/nodeLibrary/NodeBookmarkTreeExplorer.vue","../../src/components/sidebar/tabs/NodeLibrarySidebarTab.vue","../../src/components/sidebar/tabs/modelLibrary/ModelPreview.vue","../../src/components/sidebar/tabs/modelLibrary/ModelTreeLeaf.vue","../../src/components/sidebar/tabs/ModelLibrarySidebarTab.vue","../../node_modules/primevue/toast/style/index.mjs","../../node_modules/primevue/toast/index.mjs","../../src/components/toast/GlobalToast.vue","../../src/components/dialog/UnloadWindowConfirmDialog.vue","../../src/components/BrowserTabTitle.vue","../../src/components/sidebar/tabs/workflows/WorkflowTreeLeaf.vue","../../src/components/common/TextDivider.vue","../../src/components/sidebar/tabs/WorkflowsSidebarTab.vue","../../src/components/topbar/WorkflowTabs.vue","../../node_modules/primevue/menubar/style/index.mjs","../../node_modules/primevue/menubar/index.mjs","../../src/components/topbar/CommandMenubar.vue","../../node_modules/primevue/panel/style/index.mjs","../../node_modules/primevue/panel/index.mjs","../../node_modules/primevue/tieredmenu/style/index.mjs","../../node_modules/primevue/tieredmenu/index.mjs","../../node_modules/primevue/splitbutton/style/index.mjs","../../node_modules/primevue/splitbutton/index.mjs","../../src/components/actionbar/BatchCountEdit.vue","../../src/components/actionbar/ComfyQueueButton.vue","../../src/components/actionbar/ComfyActionbar.vue","../../src/components/topbar/TopMenubar.vue","../../src/services/autoQueueService.ts","../../src/views/GraphView.vue"],"sourcesContent":["<template>\n <div class=\"editable-text\">\n <span v-if=\"!props.isEditing\">\n {{ modelValue }}\n </span>\n <InputText\n v-else\n type=\"text\"\n size=\"small\"\n fluid\n v-model:modelValue=\"inputValue\"\n ref=\"inputRef\"\n @keyup.enter=\"finishEditing\"\n @click.stop\n :pt=\"{\n root: {\n onBlur: finishEditing\n }\n }\"\n v-focus\n />\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport InputText from 'primevue/inputtext'\nimport { nextTick, ref, watch } from 'vue'\n\ninterface EditableTextProps {\n modelValue: string\n isEditing?: boolean\n}\n\nconst props = withDefaults(defineProps<EditableTextProps>(), {\n isEditing: false\n})\n\nconst emit = defineEmits(['update:modelValue', 'edit'])\nconst inputValue = ref<string>(props.modelValue)\nconst isEditingFinished = ref<boolean>(false)\nconst inputRef = ref(null)\nconst finishEditing = () => {\n if (isEditingFinished.value) {\n return\n }\n isEditingFinished.value = true\n emit('edit', inputValue.value)\n}\nwatch(\n () => props.isEditing,\n (newVal) => {\n if (newVal) {\n inputValue.value = props.modelValue\n isEditingFinished.value = false\n nextTick(() => {\n if (!inputRef.value) return\n const fileName = inputValue.value.includes('.')\n ? inputValue.value.split('.').slice(0, -1).join('.')\n : inputValue.value\n const start = 0\n const end = fileName.length\n const inputElement = inputRef.value.$el\n inputElement.setSelectionRange?.(start, end)\n })\n }\n },\n { immediate: true }\n)\nconst vFocus = {\n mounted: (el: HTMLElement) => el.focus()\n}\n</script>\n\n<style scoped>\n.editable-text {\n display: inline;\n}\n.editable-text input {\n width: 100%;\n box-sizing: border-box;\n}\n</style>\n","<template>\n <div\n v-if=\"showInput\"\n class=\"group-title-editor node-title-editor\"\n :style=\"inputStyle\"\n >\n <EditableText\n :isEditing=\"showInput\"\n :modelValue=\"editedTitle\"\n @edit=\"onEdit\"\n />\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, onMounted, onUnmounted, CSSProperties, watch } from 'vue'\nimport { app } from '@/scripts/app'\nimport { LGraphGroup, LGraphNode, LiteGraph } from '@comfyorg/litegraph'\nimport EditableText from '@/components/common/EditableText.vue'\nimport { ComfyExtension } from '@/types/comfy'\nimport { useSettingStore } from '@/stores/settingStore'\nimport type { LiteGraphCanvasEvent } from '@comfyorg/litegraph'\nimport { useCanvasStore, useTitleEditorStore } from '@/stores/graphStore'\n\nconst settingStore = useSettingStore()\n\nconst showInput = ref(false)\nconst editedTitle = ref('')\nconst inputStyle = ref<CSSProperties>({\n position: 'fixed',\n left: '0px',\n top: '0px',\n width: '200px',\n height: '20px',\n fontSize: '12px'\n})\n\nconst titleEditorStore = useTitleEditorStore()\nconst canvasStore = useCanvasStore()\nconst previousCanvasDraggable = ref(true)\n\nconst onEdit = (newValue: string) => {\n if (titleEditorStore.titleEditorTarget && newValue.trim() !== '') {\n titleEditorStore.titleEditorTarget.title = newValue.trim()\n app.graph.setDirtyCanvas(true, true)\n }\n showInput.value = false\n titleEditorStore.titleEditorTarget = null\n canvasStore.canvas!.allow_dragcanvas = previousCanvasDraggable.value\n}\n\nwatch(\n () => titleEditorStore.titleEditorTarget,\n (target) => {\n if (target === null) {\n return\n }\n editedTitle.value = target.title\n showInput.value = true\n previousCanvasDraggable.value = canvasStore.canvas!.allow_dragcanvas\n canvasStore.canvas!.allow_dragcanvas = false\n\n if (target instanceof LGraphGroup) {\n const group = target\n const [x, y] = group.pos\n const [w, h] = group.size\n\n const [left, top] = app.canvasPosToClientPos([x, y])\n inputStyle.value.left = `${left}px`\n inputStyle.value.top = `${top}px`\n\n const width = w * app.canvas.ds.scale\n const height = group.titleHeight * app.canvas.ds.scale\n inputStyle.value.width = `${width}px`\n inputStyle.value.height = `${height}px`\n\n const fontSize = group.font_size * app.canvas.ds.scale\n inputStyle.value.fontSize = `${fontSize}px`\n } else if (target instanceof LGraphNode) {\n const node = target\n const [x, y] = node.getBounding()\n const canvasWidth = node.width\n const canvasHeight = LiteGraph.NODE_TITLE_HEIGHT\n\n const [left, top] = app.canvasPosToClientPos([x, y])\n inputStyle.value.left = `${left}px`\n inputStyle.value.top = `${top}px`\n\n const width = canvasWidth * app.canvas.ds.scale\n const height = canvasHeight * app.canvas.ds.scale\n inputStyle.value.width = `${width}px`\n inputStyle.value.height = `${height}px`\n const fontSize = 12 * app.canvas.ds.scale\n inputStyle.value.fontSize = `${fontSize}px`\n }\n }\n)\n\nconst canvasEventHandler = (event: LiteGraphCanvasEvent) => {\n if (!settingStore.get('Comfy.Group.DoubleClickTitleToEdit')) {\n return\n }\n\n if (event.detail.subType === 'group-double-click') {\n const group: LGraphGroup = event.detail.group\n const [x, y] = group.pos\n\n const e = event.detail.originalEvent\n // @ts-expect-error LiteGraphCanvasEvent is not typed\n const relativeY = e.canvasY - y\n // Only allow editing if the click is on the title bar\n if (relativeY > group.titleHeight) {\n return\n }\n\n titleEditorStore.titleEditorTarget = group\n }\n}\n\nconst extension: ComfyExtension = {\n name: 'Comfy.NodeTitleEditor',\n nodeCreated(node: LGraphNode) {\n // Store the original callback\n const originalCallback = node.onNodeTitleDblClick\n\n node.onNodeTitleDblClick = function (e: MouseEvent, ...args: any[]) {\n if (!settingStore.get('Comfy.Node.DoubleClickTitleToEdit')) {\n return\n }\n\n titleEditorStore.titleEditorTarget = this\n\n // Call the original callback if it exists\n if (typeof originalCallback === 'function') {\n originalCallback.call(this, e, ...args)\n }\n }\n }\n}\n\nonMounted(() => {\n document.addEventListener('litegraph:canvas', canvasEventHandler)\n app.registerExtension(extension)\n})\n\nonUnmounted(() => {\n document.removeEventListener('litegraph:canvas', canvasEventHandler)\n})\n</script>\n\n<style scoped>\n.group-title-editor.node-title-editor {\n z-index: 9999;\n padding: 0.25rem;\n}\n\n:deep(.editable-text) {\n width: 100%;\n height: 100%;\n}\n\n:deep(.editable-text input) {\n width: 100%;\n height: 100%;\n /* Override the default font size */\n font-size: inherit;\n}\n</style>\n","import BaseStyle from '@primevue/core/base/style';\n\nvar theme = function theme(_ref) {\n var dt = _ref.dt;\n return \"\\n.p-overlaybadge {\\n position: relative;\\n}\\n\\n.p-overlaybadge .p-badge {\\n position: absolute;\\n top: 0;\\n right: 0;\\n transform: translate(50%, -50%);\\n transform-origin: 100% 0;\\n margin: 0;\\n outline-width: \".concat(dt('overlaybadge.outline.width'), \";\\n outline-style: solid;\\n outline-color: \").concat(dt('overlaybadge.outline.color'), \";\\n}\\n\");\n};\nvar classes = {\n root: 'p-overlaybadge'\n};\nvar OverlayBadgeStyle = BaseStyle.extend({\n name: 'overlaybadge',\n theme: theme,\n classes: classes\n});\n\nexport { OverlayBadgeStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import Badge from 'primevue/badge';\nimport OverlayBadgeStyle from 'primevue/overlaybadge/style';\nimport { resolveComponent, openBlock, createElementBlock, mergeProps, renderSlot, createVNode } from 'vue';\n\nvar script$1 = {\n name: 'OverlayBadge',\n \"extends\": Badge,\n style: OverlayBadgeStyle,\n provide: function provide() {\n return {\n $pcOverlayBadge: this,\n $parentInstance: this\n };\n }\n};\n\nvar script = {\n name: 'OverlayBadge',\n \"extends\": script$1,\n inheritAttrs: false,\n components: {\n Badge: Badge\n }\n};\n\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_Badge = resolveComponent(\"Badge\");\n return openBlock(), createElementBlock(\"div\", mergeProps({\n \"class\": _ctx.cx('root')\n }, _ctx.ptmi('root')), [renderSlot(_ctx.$slots, \"default\"), createVNode(_component_Badge, mergeProps(_ctx.$props, {\n pt: _ctx.ptm('pcBadge')\n }), null, 16, [\"pt\"])], 16);\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","<template>\n <Button\n :class=\"props.class\"\n text\n :pt=\"{\n root: {\n class: `side-bar-button ${\n props.selected\n ? 'p-button-primary side-bar-button-selected'\n : 'p-button-secondary'\n }`,\n 'aria-label': props.tooltip\n }\n }\"\n @click=\"emit('click', $event)\"\n v-tooltip=\"{ value: props.tooltip, showDelay: 300, hideDelay: 300 }\"\n >\n <template #icon>\n <OverlayBadge v-if=\"shouldShowBadge\" :value=\"overlayValue\">\n <i :class=\"props.icon + ' side-bar-button-icon'\" />\n </OverlayBadge>\n <i v-else :class=\"props.icon + ' side-bar-button-icon'\" />\n </template>\n </Button>\n</template>\n\n<script setup lang=\"ts\">\nimport OverlayBadge from 'primevue/overlaybadge'\nimport Button from 'primevue/button'\nimport { computed, PropType } from 'vue' // Add this line to import PropsType\n\nconst props = defineProps({\n icon: String,\n selected: Boolean,\n tooltip: {\n type: String,\n default: ''\n },\n class: {\n type: String,\n default: ''\n },\n iconBadge: {\n type: [String, Function] as PropType<string | (() => string | null)>,\n default: ''\n }\n})\n\nconst emit = defineEmits(['click'])\nconst overlayValue = computed(() =>\n typeof props.iconBadge === 'function'\n ? props.iconBadge() || ''\n : props.iconBadge\n)\nconst shouldShowBadge = computed(() => !!overlayValue.value)\n</script>\n\n<style>\n.side-bar-button-icon {\n font-size: var(--sidebar-icon-size) !important;\n}\n\n.side-bar-button-selected .side-bar-button-icon {\n font-size: var(--sidebar-icon-size) !important;\n font-weight: bold;\n}\n</style>\n\n<style scoped>\n.side-bar-button {\n width: var(--sidebar-width);\n height: var(--sidebar-width);\n border-radius: 0;\n}\n\n.comfyui-body-left .side-bar-button.side-bar-button-selected,\n.comfyui-body-left .side-bar-button.side-bar-button-selected:hover {\n border-left: 4px solid var(--p-button-text-primary-color);\n}\n\n.comfyui-body-right .side-bar-button.side-bar-button-selected,\n.comfyui-body-right .side-bar-button.side-bar-button-selected:hover {\n border-right: 4px solid var(--p-button-text-primary-color);\n}\n</style>\n","<template>\n <SidebarIcon\n :icon=\"icon\"\n @click=\"toggleTheme\"\n :tooltip=\"$t('sideToolbar.themeToggle')\"\n class=\"comfy-vue-theme-toggle\"\n />\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref } from 'vue'\nimport SidebarIcon from './SidebarIcon.vue'\nimport { useSettingStore } from '@/stores/settingStore'\n\nconst previousDarkTheme = ref('dark')\nconst currentTheme = computed(() => useSettingStore().get('Comfy.ColorPalette'))\nconst isDarkMode = computed(() => currentTheme.value !== 'light')\nconst icon = computed(() => (isDarkMode.value ? 'pi pi-moon' : 'pi pi-sun'))\n\nconst toggleTheme = () => {\n if (isDarkMode.value) {\n previousDarkTheme.value = currentTheme.value\n useSettingStore().set('Comfy.ColorPalette', 'light')\n } else {\n useSettingStore().set('Comfy.ColorPalette', previousDarkTheme.value)\n }\n}\n</script>\n","<template>\n <SidebarIcon\n icon=\"pi pi-cog\"\n class=\"comfy-settings-btn\"\n @click=\"showSetting\"\n :tooltip=\"$t('settings')\"\n />\n</template>\n\n<script setup lang=\"ts\">\nimport SidebarIcon from './SidebarIcon.vue'\nimport { useDialogStore } from '@/stores/dialogStore'\nimport SettingDialogContent from '@/components/dialog/content/SettingDialogContent.vue'\nimport SettingDialogHeader from '@/components/dialog/header/SettingDialogHeader.vue'\n\nconst dialogStore = useDialogStore()\nconst showSetting = () => {\n dialogStore.showDialog({\n headerComponent: SettingDialogHeader,\n component: SettingDialogContent\n })\n}\n</script>\n","<template>\n <teleport :to=\"teleportTarget\">\n <nav :class=\"'side-tool-bar-container' + (isSmall ? ' small-sidebar' : '')\">\n <SidebarIcon\n v-for=\"tab in tabs\"\n :key=\"tab.id\"\n :icon=\"tab.icon\"\n :iconBadge=\"tab.iconBadge\"\n :tooltip=\"tab.tooltip\"\n :selected=\"tab.id === selectedTab?.id\"\n :class=\"tab.id + '-tab-button'\"\n @click=\"onTabClick(tab)\"\n />\n <div class=\"side-tool-bar-end\">\n <SidebarThemeToggleIcon />\n <SidebarSettingsToggleIcon />\n </div>\n </nav>\n </teleport>\n <div v-if=\"selectedTab\" class=\"sidebar-content-container\">\n <component v-if=\"selectedTab.type === 'vue'\" :is=\"selectedTab.component\" />\n <div\n v-else\n :ref=\"\n (el) => {\n if (el)\n mountCustomTab(\n selectedTab as CustomSidebarTabExtension,\n el as HTMLElement\n )\n }\n \"\n ></div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport SidebarIcon from './SidebarIcon.vue'\nimport SidebarThemeToggleIcon from './SidebarThemeToggleIcon.vue'\nimport SidebarSettingsToggleIcon from './SidebarSettingsToggleIcon.vue'\nimport { computed, onBeforeUnmount } from 'vue'\nimport { useWorkspaceStore } from '@/stores/workspaceStateStore'\nimport { useSettingStore } from '@/stores/settingStore'\nimport {\n CustomSidebarTabExtension,\n SidebarTabExtension\n} from '@/types/extensionTypes'\n\nconst workspaceStore = useWorkspaceStore()\nconst settingStore = useSettingStore()\n\nconst teleportTarget = computed(() =>\n settingStore.get('Comfy.Sidebar.Location') === 'left'\n ? '.comfyui-body-left'\n : '.comfyui-body-right'\n)\n\nconst isSmall = computed(\n () => settingStore.get('Comfy.Sidebar.Size') === 'small'\n)\n\nconst tabs = computed(() => workspaceStore.getSidebarTabs())\nconst selectedTab = computed(() => workspaceStore.sidebarTab.activeSidebarTab)\nconst mountCustomTab = (tab: CustomSidebarTabExtension, el: HTMLElement) => {\n tab.render(el)\n}\nconst onTabClick = (item: SidebarTabExtension) => {\n workspaceStore.sidebarTab.toggleSidebarTab(item.id)\n}\nonBeforeUnmount(() => {\n tabs.value.forEach((tab) => {\n if (tab.type === 'custom' && tab.destroy) {\n tab.destroy()\n }\n })\n})\n</script>\n\n<style>\n:root {\n --sidebar-width: 64px;\n --sidebar-icon-size: 1.5rem;\n}\n:root .small-sidebar {\n --sidebar-width: 40px;\n --sidebar-icon-size: 1rem;\n}\n</style>\n\n<style scoped>\n.side-tool-bar-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n\n pointer-events: auto;\n\n width: var(--sidebar-width);\n height: 100%;\n\n background-color: var(--comfy-menu-bg);\n color: var(--fg-color);\n}\n\n.side-tool-bar-end {\n align-self: flex-end;\n margin-top: auto;\n}\n\n.sidebar-content-container {\n height: 100%;\n overflow-y: auto;\n}\n</style>\n","import BaseStyle from '@primevue/core/base/style';\n\nvar theme = function theme(_ref) {\n var dt = _ref.dt;\n return \"\\n.p-splitter {\\n display: flex;\\n flex-wrap: nowrap;\\n border: 1px solid \".concat(dt('splitter.border.color'), \";\\n background: \").concat(dt('splitter.background'), \";\\n border-radius: \").concat(dt('border.radius.md'), \";\\n color: \").concat(dt('splitter.color'), \";\\n}\\n\\n.p-splitter-vertical {\\n flex-direction: column;\\n}\\n\\n.p-splitter-gutter {\\n flex-grow: 0;\\n flex-shrink: 0;\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n z-index: 1;\\n background: \").concat(dt('splitter.gutter.background'), \";\\n}\\n\\n.p-splitter-gutter-handle {\\n border-radius: \").concat(dt('splitter.handle.border.radius'), \";\\n background: \").concat(dt('splitter.handle.background'), \";\\n transition: outline-color \").concat(dt('splitter.transition.duration'), \", box-shadow \").concat(dt('splitter.transition.duration'), \";\\n outline-color: transparent;\\n}\\n\\n.p-splitter-gutter-handle:focus-visible {\\n box-shadow: \").concat(dt('splitter.handle.focus.ring.shadow'), \";\\n outline: \").concat(dt('splitter.handle.focus.ring.width'), \" \").concat(dt('splitter.handle.focus.ring.style'), \" \").concat(dt('splitter.handle.focus.ring.color'), \";\\n outline-offset: \").concat(dt('splitter.handle.focus.ring.offset'), \";\\n}\\n\\n.p-splitter-horizontal.p-splitter-resizing {\\n cursor: col-resize;\\n user-select: none;\\n}\\n\\n.p-splitter-vertical.p-splitter-resizing {\\n cursor: row-resize;\\n user-select: none;\\n}\\n\\n.p-splitter-horizontal > .p-splitter-gutter > .p-splitter-gutter-handle {\\n height: \").concat(dt('splitter.handle.size'), \";\\n width: 100%;\\n}\\n\\n.p-splitter-vertical > .p-splitter-gutter > .p-splitter-gutter-handle {\\n width: \").concat(dt('splitter.handle.size'), \";\\n height: 100%;\\n}\\n\\n.p-splitter-horizontal > .p-splitter-gutter {\\n cursor: col-resize;\\n}\\n\\n.p-splitter-vertical > .p-splitter-gutter {\\n cursor: row-resize;\\n}\\n\\n.p-splitterpanel {\\n flex-grow: 1;\\n overflow: hidden;\\n}\\n\\n.p-splitterpanel-nested {\\n display: flex;\\n}\\n\\n.p-splitterpanel .p-splitter {\\n flex-grow: 1;\\n border: 0 none;\\n}\\n\");\n};\nvar classes = {\n root: function root(_ref2) {\n var props = _ref2.props;\n return ['p-splitter p-component', 'p-splitter-' + props.layout];\n },\n gutter: 'p-splitter-gutter',\n gutterHandle: 'p-splitter-gutter-handle'\n};\nvar inlineStyles = {\n root: function root(_ref3) {\n var props = _ref3.props;\n return [{\n display: 'flex',\n 'flex-wrap': 'nowrap'\n }, props.layout === 'vertical' ? {\n 'flex-direction': 'column'\n } : ''];\n }\n};\nvar SplitterStyle = BaseStyle.extend({\n name: 'splitter',\n theme: theme,\n classes: classes,\n inlineStyles: inlineStyles\n});\n\nexport { SplitterStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import { getVNodeProp } from '@primevue/core/utils';\nimport { getWidth, getHeight, getOuterWidth, getOuterHeight } from '@primeuix/utils/dom';\nimport { isArray } from '@primeuix/utils/object';\nimport BaseComponent from '@primevue/core/basecomponent';\nimport SplitterStyle from 'primevue/splitter/style';\nimport { openBlock, createElementBlock, mergeProps, Fragment, renderList, createBlock, resolveDynamicComponent, createElementVNode, createCommentVNode } from 'vue';\n\nvar script$1 = {\n name: 'BaseSplitter',\n \"extends\": BaseComponent,\n props: {\n layout: {\n type: String,\n \"default\": 'horizontal'\n },\n gutterSize: {\n type: Number,\n \"default\": 4\n },\n stateKey: {\n type: String,\n \"default\": null\n },\n stateStorage: {\n type: String,\n \"default\": 'session'\n },\n step: {\n type: Number,\n \"default\": 5\n }\n },\n style: SplitterStyle,\n provide: function provide() {\n return {\n $pcSplitter: this,\n $parentInstance: this\n };\n }\n};\n\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nvar script = {\n name: 'Splitter',\n \"extends\": script$1,\n inheritAttrs: false,\n emits: ['resizestart', 'resizeend', 'resize'],\n dragging: false,\n mouseMoveListener: null,\n mouseUpListener: null,\n touchMoveListener: null,\n touchEndListener: null,\n size: null,\n gutterElement: null,\n startPos: null,\n prevPanelElement: null,\n nextPanelElement: null,\n nextPanelSize: null,\n prevPanelSize: null,\n panelSizes: null,\n prevPanelIndex: null,\n timer: null,\n data: function data() {\n return {\n prevSize: null\n };\n },\n mounted: function mounted() {\n var _this = this;\n if (this.panels && this.panels.length) {\n var initialized = false;\n if (this.isStateful()) {\n initialized = this.restoreState();\n }\n if (!initialized) {\n var children = _toConsumableArray(this.$el.children).filter(function (child) {\n return child.getAttribute('data-pc-name') === 'splitterpanel';\n });\n var _panelSizes = [];\n this.panels.map(function (panel, i) {\n var panelInitialSize = panel.props && panel.props.size ? panel.props.size : null;\n var panelSize = panelInitialSize || 100 / _this.panels.length;\n _panelSizes[i] = panelSize;\n children[i].style.flexBasis = 'calc(' + panelSize + '% - ' + (_this.panels.length - 1) * _this.gutterSize + 'px)';\n });\n this.panelSizes = _panelSizes;\n this.prevSize = parseFloat(_panelSizes[0]).toFixed(4);\n }\n }\n },\n beforeUnmount: function beforeUnmount() {\n this.clear();\n this.unbindMouseListeners();\n },\n methods: {\n isSplitterPanel: function isSplitterPanel(child) {\n return child.type.name === 'SplitterPanel';\n },\n onResizeStart: function onResizeStart(event, index, isKeyDown) {\n this.gutterElement = event.currentTarget || event.target.parentElement;\n this.size = this.horizontal ? getWidth(this.$el) : getHeight(this.$el);\n if (!isKeyDown) {\n this.dragging = true;\n this.startPos = this.layout === 'horizontal' ? event.pageX || event.changedTouches[0].pageX : event.pageY || event.changedTouches[0].pageY;\n }\n this.prevPanelElement = this.gutterElement.previousElementSibling;\n this.nextPanelElement = this.gutterElement.nextElementSibling;\n if (isKeyDown) {\n this.prevPanelSize = this.horizontal ? getOuterWidth(this.prevPanelElement, true) : getOuterHeight(this.prevPanelElement, true);\n this.nextPanelSize = this.horizontal ? getOuterWidth(this.nextPanelElement, true) : getOuterHeight(this.nextPanelElement, true);\n } else {\n this.prevPanelSize = 100 * (this.horizontal ? getOuterWidth(this.prevPanelElement, true) : getOuterHeight(this.prevPanelElement, true)) / this.size;\n this.nextPanelSize = 100 * (this.horizontal ? getOuterWidth(this.nextPanelElement, true) : getOuterHeight(this.nextPanelElement, true)) / this.size;\n }\n this.prevPanelIndex = index;\n this.$emit('resizestart', {\n originalEvent: event,\n sizes: this.panelSizes\n });\n this.$refs.gutter[index].setAttribute('data-p-gutter-resizing', true);\n this.$el.setAttribute('data-p-resizing', true);\n },\n onResize: function onResize(event, step, isKeyDown) {\n var newPos, newPrevPanelSize, newNextPanelSize;\n if (isKeyDown) {\n if (this.horizontal) {\n newPrevPanelSize = 100 * (this.prevPanelSize + step) / this.size;\n newNextPanelSize = 100 * (this.nextPanelSize - step) / this.size;\n } else {\n newPrevPanelSize = 100 * (this.prevPanelSize - step) / this.size;\n newNextPanelSize = 100 * (this.nextPanelSize + step) / this.size;\n }\n } else {\n if (this.horizontal) newPos = event.pageX * 100 / this.size - this.startPos * 100 / this.size;else newPos = event.pageY * 100 / this.size - this.startPos * 100 / this.size;\n newPrevPanelSize = this.prevPanelSize + newPos;\n newNextPanelSize = this.nextPanelSize - newPos;\n }\n if (this.validateResize(newPrevPanelSize, newNextPanelSize)) {\n this.prevPanelElement.style.flexBasis = 'calc(' + newPrevPanelSize + '% - ' + (this.panels.length - 1) * this.gutterSize + 'px)';\n this.nextPanelElement.style.flexBasis = 'calc(' + newNextPanelSize + '% - ' + (this.panels.length - 1) * this.gutterSize + 'px)';\n this.panelSizes[this.prevPanelIndex] = newPrevPanelSize;\n this.panelSizes[this.prevPanelIndex + 1] = newNextPanelSize;\n this.prevSize = parseFloat(newPrevPanelSize).toFixed(4);\n }\n this.$emit('resize', {\n originalEvent: event,\n sizes: this.panelSizes\n });\n },\n onResizeEnd: function onResizeEnd(event) {\n if (this.isStateful()) {\n this.saveState();\n }\n this.$emit('resizeend', {\n originalEvent: event,\n sizes: this.panelSizes\n });\n this.$refs.gutter.forEach(function (gutter) {\n return gutter.setAttribute('data-p-gutter-resizing', false);\n });\n this.$el.setAttribute('data-p-resizing', false);\n this.clear();\n },\n repeat: function repeat(event, index, step) {\n this.onResizeStart(event, index, true);\n this.onResize(event, step, true);\n },\n setTimer: function setTimer(event, index, step) {\n var _this2 = this;\n if (!this.timer) {\n this.timer = setInterval(function () {\n _this2.repeat(event, index, step);\n }, 40);\n }\n },\n clearTimer: function clearTimer() {\n if (this.timer) {\n clearInterval(this.timer);\n this.timer = null;\n }\n },\n onGutterKeyUp: function onGutterKeyUp() {\n this.clearTimer();\n this.onResizeEnd();\n },\n onGutterKeyDown: function onGutterKeyDown(event, index) {\n switch (event.code) {\n case 'ArrowLeft':\n {\n if (this.layout === 'horizontal') {\n this.setTimer(event, index, this.step * -1);\n }\n event.preventDefault();\n break;\n }\n case 'ArrowRight':\n {\n if (this.layout === 'horizontal') {\n this.setTimer(event, index, this.step);\n }\n event.preventDefault();\n break;\n }\n case 'ArrowDown':\n {\n if (this.layout === 'vertical') {\n this.setTimer(event, index, this.step * -1);\n }\n event.preventDefault();\n break;\n }\n case 'ArrowUp':\n {\n if (this.layout === 'vertical') {\n this.setTimer(event, index, this.step);\n }\n event.preventDefault();\n break;\n }\n }\n },\n onGutterMouseDown: function onGutterMouseDown(event, index) {\n this.onResizeStart(event, index);\n this.bindMouseListeners();\n },\n onGutterTouchStart: function onGutterTouchStart(event, index) {\n this.onResizeStart(event, index);\n this.bindTouchListeners();\n event.preventDefault();\n },\n onGutterTouchMove: function onGutterTouchMove(event) {\n this.onResize(event);\n event.preventDefault();\n },\n onGutterTouchEnd: function onGutterTouchEnd(event) {\n this.onResizeEnd(event);\n this.unbindTouchListeners();\n event.preventDefault();\n },\n bindMouseListeners: function bindMouseListeners() {\n var _this3 = this;\n if (!this.mouseMoveListener) {\n this.mouseMoveListener = function (event) {\n return _this3.onResize(event);\n };\n document.addEventListener('mousemove', this.mouseMoveListener);\n }\n if (!this.mouseUpListener) {\n this.mouseUpListener = function (event) {\n _this3.onResizeEnd(event);\n _this3.unbindMouseListeners();\n };\n document.addEventListener('mouseup', this.mouseUpListener);\n }\n },\n bindTouchListeners: function bindTouchListeners() {\n var _this4 = this;\n if (!this.touchMoveListener) {\n this.touchMoveListener = function (event) {\n return _this4.onResize(event.changedTouches[0]);\n };\n document.addEventListener('touchmove', this.touchMoveListener);\n }\n if (!this.touchEndListener) {\n this.touchEndListener = function (event) {\n _this4.resizeEnd(event);\n _this4.unbindTouchListeners();\n };\n document.addEventListener('touchend', this.touchEndListener);\n }\n },\n validateResize: function validateResize(newPrevPanelSize, newNextPanelSize) {\n if (newPrevPanelSize > 100 || newPrevPanelSize < 0) return false;\n if (newNextPanelSize > 100 || newNextPanelSize < 0) return false;\n var prevPanelMinSize = getVNodeProp(this.panels[this.prevPanelIndex], 'minSize');\n if (this.panels[this.prevPanelIndex].props && prevPanelMinSize && prevPanelMinSize > newPrevPanelSize) {\n return false;\n }\n var newPanelMinSize = getVNodeProp(this.panels[this.prevPanelIndex + 1], 'minSize');\n if (this.panels[this.prevPanelIndex + 1].props && newPanelMinSize && newPanelMinSize > newNextPanelSize) {\n return false;\n }\n return true;\n },\n unbindMouseListeners: function unbindMouseListeners() {\n if (this.mouseMoveListener) {\n document.removeEventListener('mousemove', this.mouseMoveListener);\n this.mouseMoveListener = null;\n }\n if (this.mouseUpListener) {\n document.removeEventListener('mouseup', this.mouseUpListener);\n this.mouseUpListener = null;\n }\n },\n unbindTouchListeners: function unbindTouchListeners() {\n if (this.touchMoveListener) {\n document.removeEventListener('touchmove', this.touchMoveListener);\n this.touchMoveListener = null;\n }\n if (this.touchEndListener) {\n document.removeEventListener('touchend', this.touchEndListener);\n this.touchEndListener = null;\n }\n },\n clear: function clear() {\n this.dragging = false;\n this.size = null;\n this.startPos = null;\n this.prevPanelElement = null;\n this.nextPanelElement = null;\n this.prevPanelSize = null;\n this.nextPanelSize = null;\n this.gutterElement = null;\n this.prevPanelIndex = null;\n },\n isStateful: function isStateful() {\n return this.stateKey != null;\n },\n getStorage: function getStorage() {\n switch (this.stateStorage) {\n case 'local':\n return window.localStorage;\n case 'session':\n return window.sessionStorage;\n default:\n throw new Error(this.stateStorage + ' is not a valid value for the state storage, supported values are \"local\" and \"session\".');\n }\n },\n saveState: function saveState() {\n if (isArray(this.panelSizes)) {\n this.getStorage().setItem(this.stateKey, JSON.stringify(this.panelSizes));\n }\n },\n restoreState: function restoreState() {\n var _this5 = this;\n var storage = this.getStorage();\n var stateString = storage.getItem(this.stateKey);\n if (stateString) {\n this.panelSizes = JSON.parse(stateString);\n var children = _toConsumableArray(this.$el.children).filter(function (child) {\n return child.getAttribute('data-pc-name') === 'splitterpanel';\n });\n children.forEach(function (child, i) {\n child.style.flexBasis = 'calc(' + _this5.panelSizes[i] + '% - ' + (_this5.panels.length - 1) * _this5.gutterSize + 'px)';\n });\n return true;\n }\n return false;\n }\n },\n computed: {\n panels: function panels() {\n var _this6 = this;\n var panels = [];\n this.$slots[\"default\"]().forEach(function (child) {\n if (_this6.isSplitterPanel(child)) {\n panels.push(child);\n } else if (child.children instanceof Array) {\n child.children.forEach(function (nestedChild) {\n if (_this6.isSplitterPanel(nestedChild)) {\n panels.push(nestedChild);\n }\n });\n }\n });\n return panels;\n },\n gutterStyle: function gutterStyle() {\n if (this.horizontal) return {\n width: this.gutterSize + 'px'\n };else return {\n height: this.gutterSize + 'px'\n };\n },\n horizontal: function horizontal() {\n return this.layout === 'horizontal';\n },\n getPTOptions: function getPTOptions() {\n var _this$$parentInstance;\n return {\n context: {\n nested: (_this$$parentInstance = this.$parentInstance) === null || _this$$parentInstance === void 0 ? void 0 : _this$$parentInstance.nestedState\n }\n };\n }\n }\n};\n\nvar _hoisted_1 = [\"onMousedown\", \"onTouchstart\", \"onTouchmove\", \"onTouchend\"];\nvar _hoisted_2 = [\"aria-orientation\", \"aria-valuenow\", \"onKeydown\"];\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"div\", mergeProps({\n \"class\": _ctx.cx('root'),\n style: _ctx.sx('root'),\n \"data-p-resizing\": false\n }, _ctx.ptmi('root', $options.getPTOptions)), [(openBlock(true), createElementBlock(Fragment, null, renderList($options.panels, function (panel, i) {\n return openBlock(), createElementBlock(Fragment, {\n key: i\n }, [(openBlock(), createBlock(resolveDynamicComponent(panel), {\n tabindex: \"-1\"\n })), i !== $options.panels.length - 1 ? (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 0,\n ref_for: true,\n ref: \"gutter\",\n \"class\": _ctx.cx('gutter'),\n role: \"separator\",\n tabindex: \"-1\",\n onMousedown: function onMousedown($event) {\n return $options.onGutterMouseDown($event, i);\n },\n onTouchstart: function onTouchstart($event) {\n return $options.onGutterTouchStart($event, i);\n },\n onTouchmove: function onTouchmove($event) {\n return $options.onGutterTouchMove($event, i);\n },\n onTouchend: function onTouchend($event) {\n return $options.onGutterTouchEnd($event, i);\n },\n \"data-p-gutter-resizing\": false\n }, _ctx.ptm('gutter')), [createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('gutterHandle'),\n tabindex: \"0\",\n style: [$options.gutterStyle],\n \"aria-orientation\": _ctx.layout,\n \"aria-valuenow\": $data.prevSize,\n onKeyup: _cache[0] || (_cache[0] = function () {\n return $options.onGutterKeyUp && $options.onGutterKeyUp.apply($options, arguments);\n }),\n onKeydown: function onKeydown($event) {\n return $options.onGutterKeyDown($event, i);\n },\n ref_for: true\n }, _ctx.ptm('gutterHandle')), null, 16, _hoisted_2)], 16, _hoisted_1)) : createCommentVNode(\"\", true)], 64);\n }), 128))], 16);\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","import BaseStyle from '@primevue/core/base/style';\n\nvar classes = {\n root: function root(_ref) {\n var instance = _ref.instance;\n return ['p-splitterpanel', {\n 'p-splitterpanel-nested': instance.isNested\n }];\n }\n};\nvar SplitterPanelStyle = BaseStyle.extend({\n name: 'splitterpanel',\n classes: classes\n});\n\nexport { SplitterPanelStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import BaseComponent from '@primevue/core/basecomponent';\nimport SplitterPanelStyle from 'primevue/splitterpanel/style';\nimport { openBlock, createElementBlock, mergeProps, renderSlot } from 'vue';\n\nvar script$1 = {\n name: 'BaseSplitterPanel',\n \"extends\": BaseComponent,\n props: {\n size: {\n type: Number,\n \"default\": null\n },\n minSize: {\n type: Number,\n \"default\": null\n }\n },\n style: SplitterPanelStyle,\n provide: function provide() {\n return {\n $pcSplitterPanel: this,\n $parentInstance: this\n };\n }\n};\n\nvar script = {\n name: 'SplitterPanel',\n \"extends\": script$1,\n inheritAttrs: false,\n data: function data() {\n return {\n nestedState: null\n };\n },\n computed: {\n isNested: function isNested() {\n var _this = this;\n return this.$slots[\"default\"]().some(function (child) {\n _this.nestedState = child.type.name === 'Splitter' ? true : null;\n return _this.nestedState;\n });\n },\n getPTOptions: function getPTOptions() {\n return {\n context: {\n nested: this.isNested\n }\n };\n }\n }\n};\n\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"div\", mergeProps({\n ref: \"container\",\n \"class\": _ctx.cx('root')\n }, _ctx.ptmi('root', $options.getPTOptions)), [renderSlot(_ctx.$slots, \"default\")], 16);\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","<template>\n <Splitter class=\"splitter-overlay\" :pt:gutter=\"gutterClass\">\n <SplitterPanel\n class=\"side-bar-panel\"\n :minSize=\"10\"\n :size=\"20\"\n v-show=\"sidebarPanelVisible\"\n v-if=\"sidebarLocation === 'left'\"\n >\n <slot name=\"side-bar-panel\"></slot>\n </SplitterPanel>\n <SplitterPanel class=\"graph-canvas-panel relative\" :size=\"100\">\n <slot name=\"graph-canvas-panel\"></slot>\n </SplitterPanel>\n <SplitterPanel\n class=\"side-bar-panel\"\n :minSize=\"10\"\n :size=\"20\"\n v-show=\"sidebarPanelVisible\"\n v-if=\"sidebarLocation === 'right'\"\n >\n <slot name=\"side-bar-panel\"></slot>\n </SplitterPanel>\n </Splitter>\n</template>\n\n<script setup lang=\"ts\">\nimport { useSettingStore } from '@/stores/settingStore'\nimport { useWorkspaceStore } from '@/stores/workspaceStateStore'\nimport Splitter from 'primevue/splitter'\nimport SplitterPanel from 'primevue/splitterpanel'\nimport { computed } from 'vue'\n\nconst settingStore = useSettingStore()\nconst sidebarLocation = computed<'left' | 'right'>(() =>\n settingStore.get('Comfy.Sidebar.Location')\n)\n\nconst sidebarPanelVisible = computed(\n () => useWorkspaceStore().sidebarTab.activeSidebarTab !== null\n)\nconst gutterClass = computed(() => {\n return sidebarPanelVisible.value ? '' : 'gutter-hidden'\n})\n</script>\n\n<style>\n.p-splitter-gutter {\n pointer-events: auto;\n}\n\n.gutter-hidden {\n display: none !important;\n}\n</style>\n\n<style scoped>\n.side-bar-panel {\n background-color: var(--bg-color);\n pointer-events: auto;\n}\n\n.splitter-overlay {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n background-color: transparent;\n pointer-events: none;\n /* Set it the same as the ComfyUI menu */\n /* Note: Lite-graph DOM widgets have the same z-index as the node id, so\n 999 should be sufficient to make sure splitter overlays on node's DOM\n widgets */\n z-index: 999;\n border: none;\n}\n</style>\n","import { isNotEmpty } from '@primeuix/utils/object';\nimport BaseStyle from '@primevue/core/base/style';\n\nvar theme = function theme(_ref) {\n var dt = _ref.dt;\n return \"\\n.p-autocomplete {\\n display: inline-flex;\\n}\\n\\n.p-autocomplete-loader {\\n position: absolute;\\n top: 50%;\\n margin-top: -0.5rem;\\n right: \".concat(dt('autocomplete.padding.x'), \";\\n}\\n\\n.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-loader {\\n right: calc(\").concat(dt('autocomplete.dropdown.width'), \" + \").concat(dt('autocomplete.padding.x'), \");\\n}\\n\\n.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input {\\n flex: 1 1 auto;\\n width: 1%;\\n}\\n\\n.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input,\\n.p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-input-multiple {\\n border-top-right-radius: 0;\\n border-bottom-right-radius: 0;\\n}\\n\\n.p-autocomplete-dropdown {\\n cursor: pointer;\\n display: inline-flex;\\n cursor: pointer;\\n user-select: none;\\n align-items: center;\\n justify-content: center;\\n overflow: hidden;\\n position: relative;\\n width: \").concat(dt('autocomplete.dropdown.width'), \";\\n border-top-right-radius: \").concat(dt('autocomplete.dropdown.border.radius'), \";\\n border-bottom-right-radius: \").concat(dt('autocomplete.dropdown.border.radius'), \";\\n background: \").concat(dt('autocomplete.dropdown.background'), \";\\n border: 1px solid \").concat(dt('autocomplete.dropdown.border.color'), \";\\n border-left: 0 none;\\n color: \").concat(dt('autocomplete.dropdown.color'), \";\\n transition: background \").concat(dt('autocomplete.transition.duration'), \", color \").concat(dt('autocomplete.transition.duration'), \", border-color \").concat(dt('autocomplete.transition.duration'), \", outline-color \").concat(dt('autocomplete.transition.duration'), \", box-shadow \").concat(dt('autocomplete.transition.duration'), \";\\n outline-color: transparent;\\n}\\n\\n.p-autocomplete-dropdown:not(:disabled):hover {\\n background: \").concat(dt('autocomplete.dropdown.hover.background'), \";\\n border-color: \").concat(dt('autocomplete.dropdown.hover.border.color'), \";\\n color: \").concat(dt('autocomplete.dropdown.hover.color'), \";\\n}\\n\\n.p-autocomplete-dropdown:not(:disabled):active {\\n background: \").concat(dt('autocomplete.dropdown.active.background'), \";\\n border-color: \").concat(dt('autocomplete.dropdown.active.border.color'), \";\\n color: \").concat(dt('autocomplete.dropdown.active.color'), \";\\n}\\n\\n.p-autocomplete-dropdown:focus-visible {\\n box-shadow: \").concat(dt('autocomplete.dropdown.focus.ring.shadow'), \";\\n outline: \").concat(dt('autocomplete.dropdown.focus.ring.width'), \" \").concat(dt('autocomplete.dropdown.focus.ring.style'), \" \").concat(dt('autocomplete.dropdown.focus.ring.color'), \";\\n outline-offset: \").concat(dt('autocomplete.dropdown.focus.ring.offset'), \";\\n}\\n\\n.p-autocomplete .p-autocomplete-overlay {\\n min-width: 100%;\\n}\\n\\n.p-autocomplete-overlay {\\n position: absolute;\\n overflow: auto;\\n top: 0;\\n left: 0;\\n background: \").concat(dt('autocomplete.overlay.background'), \";\\n color: \").concat(dt('autocomplete.overlay.color'), \";\\n border: 1px solid \").concat(dt('autocomplete.overlay.border.color'), \";\\n border-radius: \").concat(dt('autocomplete.overlay.border.radius'), \";\\n box-shadow: \").concat(dt('autocomplete.overlay.shadow'), \";\\n}\\n\\n.p-autocomplete-list {\\n margin: 0;\\n padding: 0;\\n list-style-type: none;\\n display: flex;\\n flex-direction: column;\\n gap: \").concat(dt('autocomplete.list.gap'), \";\\n padding: \").concat(dt('autocomplete.list.padding'), \";\\n}\\n\\n.p-autocomplete-option {\\n cursor: pointer;\\n white-space: nowrap;\\n position: relative;\\n overflow: hidden;\\n display: flex;\\n align-items: center;\\n padding: \").concat(dt('autocomplete.option.padding'), \";\\n border: 0 none;\\n color: \").concat(dt('autocomplete.option.color'), \";\\n background: transparent;\\n transition: background \").concat(dt('autocomplete.transition.duration'), \", color \").concat(dt('autocomplete.transition.duration'), \", border-color \").concat(dt('autocomplete.transition.duration'), \";\\n border-radius: \").concat(dt('autocomplete.option.border.radius'), \";\\n}\\n\\n.p-autocomplete-option:not(.p-autocomplete-option-selected):not(.p-disabled).p-focus {\\n background: \").concat(dt('autocomplete.option.focus.background'), \";\\n color: \").concat(dt('autocomplete.option.focus.color'), \";\\n}\\n\\n.p-autocomplete-option-selected {\\n background: \").concat(dt('autocomplete.option.selected.background'), \";\\n color: \").concat(dt('autocomplete.option.selected.color'), \";\\n}\\n\\n.p-autocomplete-option-selected.p-focus {\\n background: \").concat(dt('autocomplete.option.selected.focus.background'), \";\\n color: \").concat(dt('autocomplete.option.selected.focus.color'), \";\\n}\\n\\n.p-autocomplete-option-group {\\n margin: 0;\\n padding: \").concat(dt('autocomplete.option.group.padding'), \";\\n color: \").concat(dt('autocomplete.option.group.color'), \";\\n background: \").concat(dt('autocomplete.option.group.background'), \";\\n font-weight: \").concat(dt('autocomplete.option.group.font.weight'), \";\\n}\\n\\n.p-autocomplete-input-multiple {\\n margin: 0;\\n list-style-type: none;\\n cursor: text;\\n overflow: hidden;\\n display: flex;\\n align-items: center;\\n flex-wrap: wrap;\\n padding: calc(\").concat(dt('autocomplete.padding.y'), \" / 2) \").concat(dt('autocomplete.padding.x'), \";\\n gap: calc(\").concat(dt('autocomplete.padding.y'), \" / 2);\\n color: \").concat(dt('autocomplete.color'), \";\\n background: \").concat(dt('autocomplete.background'), \";\\n border: 1px solid \").concat(dt('autocomplete.border.color'), \";\\n border-radius: \").concat(dt('autocomplete.border.radius'), \";\\n width: 100%;\\n transition: background \").concat(dt('autocomplete.transition.duration'), \", color \").concat(dt('autocomplete.transition.duration'), \", border-color \").concat(dt('autocomplete.transition.duration'), \", outline-color \").concat(dt('autocomplete.transition.duration'), \", box-shadow \").concat(dt('autocomplete.transition.duration'), \";\\n outline-color: transparent;\\n box-shadow: \").concat(dt('autocomplete.shadow'), \";\\n}\\n\\n.p-autocomplete:not(.p-disabled):hover .p-autocomplete-input-multiple {\\n border-color: \").concat(dt('autocomplete.hover.border.color'), \";\\n}\\n\\n.p-autocomplete:not(.p-disabled).p-focus .p-autocomplete-input-multiple {\\n border-color: \").concat(dt('autocomplete.focus.border.color'), \";\\n box-shadow: \").concat(dt('autocomplete.focus.ring.shadow'), \";\\n outline: \").concat(dt('autocomplete.focus.ring.width'), \" \").concat(dt('autocomplete.focus.ring.style'), \" \").concat(dt('autocomplete.focus.ring.color'), \";\\n outline-offset: \").concat(dt('autocomplete.focus.ring.offset'), \";\\n}\\n\\n.p-autocomplete.p-invalid .p-autocomplete-input-multiple {\\n border-color: \").concat(dt('autocomplete.invalid.border.color'), \";\\n}\\n\\n.p-variant-filled.p-autocomplete-input-multiple {\\n background: \").concat(dt('autocomplete.filled.background'), \";\\n}\\n\\n.p-autocomplete:not(.p-disabled).p-focus .p-variant-filled.p-autocomplete-input-multiple {\\n background: \").concat(dt('autocomplete.filled.focus.background'), \";\\n}\\n\\n.p-autocomplete.p-disabled .p-autocomplete-input-multiple {\\n opacity: 1;\\n background: \").concat(dt('autocomplete.disabled.background'), \";\\n color: \").concat(dt('autocomplete.disabled.color'), \";\\n}\\n\\n.p-autocomplete-chip.p-chip {\\n padding-top: calc(\").concat(dt('autocomplete.padding.y'), \" / 2);\\n padding-bottom: calc(\").concat(dt('autocomplete.padding.y'), \" / 2);\\n border-radius: \").concat(dt('autocomplete.chip.border.radius'), \";\\n}\\n\\n.p-autocomplete-input-multiple:has(.p-autocomplete-chip) {\\n padding-left: calc(\").concat(dt('autocomplete.padding.y'), \" / 2);\\n padding-right: calc(\").concat(dt('autocomplete.padding.y'), \" / 2);\\n}\\n\\n.p-autocomplete-chip-item.p-focus .p-autocomplete-chip {\\n background: \").concat(dt('inputchips.chip.focus.background'), \";\\n color: \").concat(dt('inputchips.chip.focus.color'), \";\\n}\\n\\n.p-autocomplete-input-chip {\\n flex: 1 1 auto;\\n display: inline-flex;\\n padding-top: calc(\").concat(dt('autocomplete.padding.y'), \" / 2);\\n padding-bottom: calc(\").concat(dt('autocomplete.padding.y'), \" / 2);\\n}\\n\\n.p-autocomplete-input-chip input {\\n border: 0 none;\\n outline: 0 none;\\n background: transparent;\\n margin: 0;\\n padding: 0;\\n box-shadow: none;\\n border-radius: 0;\\n width: 100%;\\n font-family: inherit;\\n font-feature-settings: inherit;\\n font-size: 1rem;\\n color: inherit;\\n}\\n\\n.p-autocomplete-input-chip input::placeholder {\\n color: \").concat(dt('autocomplete.placeholder.color'), \";\\n}\\n\\n.p-autocomplete-empty-message {\\n padding: \").concat(dt('autocomplete.empty.message.padding'), \";\\n}\\n\\n.p-autocomplete-fluid {\\n display: flex;\\n}\\n\\n.p-autocomplete-fluid:has(.p-autocomplete-dropdown) .p-autocomplete-input {\\n width: 1%;\\n}\\n\");\n};\nvar inlineStyles = {\n root: {\n position: 'relative'\n }\n};\nvar classes = {\n root: function root(_ref2) {\n var instance = _ref2.instance,\n props = _ref2.props;\n return ['p-autocomplete p-component p-inputwrapper', {\n 'p-disabled': props.disabled,\n 'p-invalid': props.invalid,\n 'p-focus': instance.focused,\n 'p-inputwrapper-filled': props.modelValue || isNotEmpty(instance.inputValue),\n 'p-inputwrapper-focus': instance.focused,\n 'p-autocomplete-open': instance.overlayVisible,\n 'p-autocomplete-fluid': instance.hasFluid\n }];\n },\n pcInput: 'p-autocomplete-input',\n inputMultiple: function inputMultiple(_ref3) {\n var props = _ref3.props,\n instance = _ref3.instance;\n return ['p-autocomplete-input-multiple', {\n 'p-variant-filled': props.variant ? props.variant === 'filled' : instance.$primevue.config.inputStyle === 'filled' || instance.$primevue.config.inputVariant === 'filled'\n }];\n },\n chipItem: function chipItem(_ref4) {\n var instance = _ref4.instance,\n i = _ref4.i;\n return ['p-autocomplete-chip-item', {\n 'p-focus': instance.focusedMultipleOptionIndex === i\n }];\n },\n pcChip: 'p-autocomplete-chip',\n chipIcon: 'p-autocomplete-chip-icon',\n inputChip: 'p-autocomplete-input-chip',\n loader: 'p-autocomplete-loader',\n dropdown: 'p-autocomplete-dropdown',\n overlay: 'p-autocomplete-overlay p-component',\n list: 'p-autocomplete-list',\n optionGroup: 'p-autocomplete-option-group',\n option: function option(_ref5) {\n var instance = _ref5.instance,\n _option = _ref5.option,\n i = _ref5.i,\n getItemOptions = _ref5.getItemOptions;\n return ['p-autocomplete-option', {\n 'p-autocomplete-option-selected': instance.isSelected(_option),\n 'p-focus': instance.focusedOptionIndex === instance.getOptionIndex(i, getItemOptions),\n 'p-disabled': instance.isOptionDisabled(_option)\n }];\n },\n emptyMessage: 'p-autocomplete-empty-message'\n};\nvar AutoCompleteStyle = BaseStyle.extend({\n name: 'autocomplete',\n theme: theme,\n classes: classes,\n inlineStyles: inlineStyles\n});\n\nexport { AutoCompleteStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import { focus, addStyle, relativePosition, getOuterWidth, absolutePosition, isTouchDevice, findSingle } from '@primeuix/utils/dom';\nimport { resolveFieldData, isEmpty, isNotEmpty, equals, findLastIndex } from '@primeuix/utils/object';\nimport { ZIndex } from '@primeuix/utils/zindex';\nimport { UniqueComponentId, ConnectedOverlayScrollHandler } from '@primevue/core/utils';\nimport ChevronDownIcon from '@primevue/icons/chevrondown';\nimport SpinnerIcon from '@primevue/icons/spinner';\nimport Chip from 'primevue/chip';\nimport InputText from 'primevue/inputtext';\nimport OverlayEventBus from 'primevue/overlayeventbus';\nimport Portal from 'primevue/portal';\nimport Ripple from 'primevue/ripple';\nimport VirtualScroller from 'primevue/virtualscroller';\nimport BaseComponent from '@primevue/core/basecomponent';\nimport AutoCompleteStyle from 'primevue/autocomplete/style';\nimport { resolveComponent, resolveDirective, openBlock, createElementBlock, mergeProps, createBlock, normalizeClass, normalizeStyle, createCommentVNode, Fragment, renderList, renderSlot, createVNode, withCtx, createElementVNode, resolveDynamicComponent, toDisplayString, Transition, createSlots, createTextVNode, withDirectives } from 'vue';\n\nvar script$1 = {\n name: 'BaseAutoComplete',\n \"extends\": BaseComponent,\n props: {\n modelValue: null,\n suggestions: {\n type: Array,\n \"default\": null\n },\n optionLabel: null,\n optionDisabled: null,\n optionGroupLabel: null,\n optionGroupChildren: null,\n scrollHeight: {\n type: String,\n \"default\": '14rem'\n },\n dropdown: {\n type: Boolean,\n \"default\": false\n },\n dropdownMode: {\n type: String,\n \"default\": 'blank'\n },\n multiple: {\n type: Boolean,\n \"default\": false\n },\n loading: {\n type: Boolean,\n \"default\": false\n },\n variant: {\n type: String,\n \"default\": null\n },\n invalid: {\n type: Boolean,\n \"default\": false\n },\n disabled: {\n type: Boolean,\n \"default\": false\n },\n placeholder: {\n type: String,\n \"default\": null\n },\n dataKey: {\n type: String,\n \"default\": null\n },\n minLength: {\n type: Number,\n \"default\": 1\n },\n delay: {\n type: Number,\n \"default\": 300\n },\n appendTo: {\n type: [String, Object],\n \"default\": 'body'\n },\n forceSelection: {\n type: Boolean,\n \"default\": false\n },\n completeOnFocus: {\n type: Boolean,\n \"default\": false\n },\n inputId: {\n type: String,\n \"default\": null\n },\n inputStyle: {\n type: Object,\n \"default\": null\n },\n inputClass: {\n type: [String, Object],\n \"default\": null\n },\n panelStyle: {\n type: Object,\n \"default\": null\n },\n panelClass: {\n type: [String, Object],\n \"default\": null\n },\n overlayStyle: {\n type: Object,\n \"default\": null\n },\n overlayClass: {\n type: [String, Object],\n \"default\": null\n },\n dropdownIcon: {\n type: String,\n \"default\": null\n },\n dropdownClass: {\n type: [String, Object],\n \"default\": null\n },\n loader: {\n type: String,\n \"default\": null\n },\n loadingIcon: {\n type: String,\n \"default\": null\n },\n removeTokenIcon: {\n type: String,\n \"default\": null\n },\n chipIcon: {\n type: String,\n \"default\": null\n },\n virtualScrollerOptions: {\n type: Object,\n \"default\": null\n },\n autoOptionFocus: {\n type: Boolean,\n \"default\": false\n },\n selectOnFocus: {\n type: Boolean,\n \"default\": false\n },\n focusOnHover: {\n type: Boolean,\n \"default\": true\n },\n searchLocale: {\n type: String,\n \"default\": undefined\n },\n searchMessage: {\n type: String,\n \"default\": null\n },\n selectionMessage: {\n type: String,\n \"default\": null\n },\n emptySelectionMessage: {\n type: String,\n \"default\": null\n },\n emptySearchMessage: {\n type: String,\n \"default\": null\n },\n tabindex: {\n type: Number,\n \"default\": 0\n },\n typeahead: {\n type: Boolean,\n \"default\": true\n },\n ariaLabel: {\n type: String,\n \"default\": null\n },\n ariaLabelledby: {\n type: String,\n \"default\": null\n },\n fluid: {\n type: Boolean,\n \"default\": null\n }\n },\n style: AutoCompleteStyle,\n provide: function provide() {\n return {\n $pcAutoComplete: this,\n $parentInstance: this\n };\n }\n};\n\nfunction _typeof$1(o) { \"@babel/helpers - typeof\"; return _typeof$1 = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof$1(o); }\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nvar script = {\n name: 'AutoComplete',\n \"extends\": script$1,\n inheritAttrs: false,\n emits: ['update:modelValue', 'change', 'focus', 'blur', 'item-select', 'item-unselect', 'option-select', 'option-unselect', 'dropdown-click', 'clear', 'complete', 'before-show', 'before-hide', 'show', 'hide'],\n inject: {\n $pcFluid: {\n \"default\": null\n }\n },\n outsideClickListener: null,\n resizeListener: null,\n scrollHandler: null,\n overlay: null,\n virtualScroller: null,\n searchTimeout: null,\n dirty: false,\n data: function data() {\n return {\n id: this.$attrs.id,\n clicked: false,\n focused: false,\n focusedOptionIndex: -1,\n focusedMultipleOptionIndex: -1,\n overlayVisible: false,\n searching: false\n };\n },\n watch: {\n '$attrs.id': function $attrsId(newValue) {\n this.id = newValue || UniqueComponentId();\n },\n suggestions: function suggestions() {\n if (this.searching) {\n this.show();\n this.focusedOptionIndex = this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;\n this.searching = false;\n }\n this.autoUpdateModel();\n }\n },\n mounted: function mounted() {\n this.id = this.id || UniqueComponentId();\n this.autoUpdateModel();\n },\n updated: function updated() {\n if (this.overlayVisible) {\n this.alignOverlay();\n }\n },\n beforeUnmount: function beforeUnmount() {\n this.unbindOutsideClickListener();\n this.unbindResizeListener();\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n if (this.overlay) {\n ZIndex.clear(this.overlay);\n this.overlay = null;\n }\n },\n methods: {\n getOptionIndex: function getOptionIndex(index, fn) {\n return this.virtualScrollerDisabled ? index : fn && fn(index)['index'];\n },\n getOptionLabel: function getOptionLabel(option) {\n return this.optionLabel ? resolveFieldData(option, this.optionLabel) : option;\n },\n getOptionValue: function getOptionValue(option) {\n return option; // TODO: The 'optionValue' properties can be added.\n },\n getOptionRenderKey: function getOptionRenderKey(option, index) {\n return (this.dataKey ? resolveFieldData(option, this.dataKey) : this.getOptionLabel(option)) + '_' + index;\n },\n getPTOptions: function getPTOptions(option, itemOptions, index, key) {\n return this.ptm(key, {\n context: {\n selected: this.isSelected(option),\n focused: this.focusedOptionIndex === this.getOptionIndex(index, itemOptions),\n disabled: this.isOptionDisabled(option)\n }\n });\n },\n isOptionDisabled: function isOptionDisabled(option) {\n return this.optionDisabled ? resolveFieldData(option, this.optionDisabled) : false;\n },\n isOptionGroup: function isOptionGroup(option) {\n return this.optionGroupLabel && option.optionGroup && option.group;\n },\n getOptionGroupLabel: function getOptionGroupLabel(optionGroup) {\n return resolveFieldData(optionGroup, this.optionGroupLabel);\n },\n getOptionGroupChildren: function getOptionGroupChildren(optionGroup) {\n return resolveFieldData(optionGroup, this.optionGroupChildren);\n },\n getAriaPosInset: function getAriaPosInset(index) {\n var _this = this;\n return (this.optionGroupLabel ? index - this.visibleOptions.slice(0, index).filter(function (option) {\n return _this.isOptionGroup(option);\n }).length : index) + 1;\n },\n show: function show(isFocus) {\n this.$emit('before-show');\n this.dirty = true;\n this.overlayVisible = true;\n this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;\n isFocus && focus(this.multiple ? this.$refs.focusInput : this.$refs.focusInput.$el);\n },\n hide: function hide(isFocus) {\n var _this2 = this;\n var _hide = function _hide() {\n _this2.$emit('before-hide');\n _this2.dirty = isFocus;\n _this2.overlayVisible = false;\n _this2.clicked = false;\n _this2.focusedOptionIndex = -1;\n isFocus && focus(_this2.multiple ? _this2.$refs.focusInput : _this2.$refs.focusInput.$el);\n };\n setTimeout(function () {\n _hide();\n }, 0); // For ScreenReaders\n },\n onFocus: function onFocus(event) {\n if (this.disabled) {\n // For ScreenReaders\n return;\n }\n if (!this.dirty && this.completeOnFocus) {\n this.search(event, event.target.value, 'focus');\n }\n this.dirty = true;\n this.focused = true;\n if (this.overlayVisible) {\n this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;\n this.scrollInView(this.focusedOptionIndex);\n }\n this.$emit('focus', event);\n },\n onBlur: function onBlur(event) {\n this.dirty = false;\n this.focused = false;\n this.focusedOptionIndex = -1;\n this.$emit('blur', event);\n },\n onKeyDown: function onKeyDown(event) {\n if (this.disabled) {\n event.preventDefault();\n return;\n }\n switch (event.code) {\n case 'ArrowDown':\n this.onArrowDownKey(event);\n break;\n case 'ArrowUp':\n this.onArrowUpKey(event);\n break;\n case 'ArrowLeft':\n this.onArrowLeftKey(event);\n break;\n case 'ArrowRight':\n this.onArrowRightKey(event);\n break;\n case 'Home':\n this.onHomeKey(event);\n break;\n case 'End':\n this.onEndKey(event);\n break;\n case 'PageDown':\n this.onPageDownKey(event);\n break;\n case 'PageUp':\n this.onPageUpKey(event);\n break;\n case 'Enter':\n case 'NumpadEnter':\n this.onEnterKey(event);\n break;\n case 'Escape':\n this.onEscapeKey(event);\n break;\n case 'Tab':\n this.onTabKey(event);\n break;\n case 'Backspace':\n this.onBackspaceKey(event);\n break;\n }\n this.clicked = false;\n },\n onInput: function onInput(event) {\n var _this3 = this;\n if (this.typeahead) {\n if (this.searchTimeout) {\n clearTimeout(this.searchTimeout);\n }\n var query = event.target.value;\n if (!this.multiple) {\n this.updateModel(event, query);\n }\n if (query.length === 0) {\n this.hide();\n this.$emit('clear');\n } else {\n if (query.length >= this.minLength) {\n this.focusedOptionIndex = -1;\n this.searchTimeout = setTimeout(function () {\n _this3.search(event, query, 'input');\n }, this.delay);\n } else {\n this.hide();\n }\n }\n }\n },\n onChange: function onChange(event) {\n var _this4 = this;\n if (this.forceSelection) {\n var valid = false;\n\n // when forceSelection is on, prevent called twice onOptionSelect()\n if (this.visibleOptions && !this.multiple) {\n var value = this.multiple ? this.$refs.focusInput.value : this.$refs.focusInput.$el.value;\n var matchedValue = this.visibleOptions.find(function (option) {\n return _this4.isOptionMatched(option, value || '');\n });\n if (matchedValue !== undefined) {\n valid = true;\n !this.isSelected(matchedValue) && this.onOptionSelect(event, matchedValue);\n }\n }\n if (!valid) {\n if (this.multiple) this.$refs.focusInput.value = '';else this.$refs.focusInput.$el.value = '';\n this.$emit('clear');\n !this.multiple && this.updateModel(event, null);\n }\n }\n },\n onMultipleContainerFocus: function onMultipleContainerFocus() {\n if (this.disabled) {\n // For ScreenReaders\n return;\n }\n this.focused = true;\n },\n onMultipleContainerBlur: function onMultipleContainerBlur() {\n this.focusedMultipleOptionIndex = -1;\n this.focused = false;\n },\n onMultipleContainerKeyDown: function onMultipleContainerKeyDown(event) {\n if (this.disabled) {\n event.preventDefault();\n return;\n }\n switch (event.code) {\n case 'ArrowLeft':\n this.onArrowLeftKeyOnMultiple(event);\n break;\n case 'ArrowRight':\n this.onArrowRightKeyOnMultiple(event);\n break;\n case 'Backspace':\n this.onBackspaceKeyOnMultiple(event);\n break;\n }\n },\n onContainerClick: function onContainerClick(event) {\n this.clicked = true;\n if (this.disabled || this.searching || this.loading || this.isInputClicked(event) || this.isDropdownClicked(event)) {\n return;\n }\n if (!this.overlay || !this.overlay.contains(event.target)) {\n focus(this.multiple ? this.$refs.focusInput : this.$refs.focusInput.$el);\n }\n },\n onDropdownClick: function onDropdownClick(event) {\n var query = undefined;\n if (this.overlayVisible) {\n this.hide(true);\n } else {\n var target = this.multiple ? this.$refs.focusInput : this.$refs.focusInput.$el;\n focus(target);\n query = target.value;\n if (this.dropdownMode === 'blank') this.search(event, '', 'dropdown');else if (this.dropdownMode === 'current') this.search(event, query, 'dropdown');\n }\n this.$emit('dropdown-click', {\n originalEvent: event,\n query: query\n });\n },\n onOptionSelect: function onOptionSelect(event, option) {\n var isHide = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var value = this.getOptionValue(option);\n if (this.multiple) {\n this.$refs.focusInput.value = '';\n if (!this.isSelected(option)) {\n this.updateModel(event, [].concat(_toConsumableArray(this.modelValue || []), [value]));\n }\n } else {\n this.updateModel(event, value);\n }\n this.$emit('item-select', {\n originalEvent: event,\n value: option\n });\n this.$emit('option-select', {\n originalEvent: event,\n value: option\n });\n isHide && this.hide(true);\n },\n onOptionMouseMove: function onOptionMouseMove(event, index) {\n if (this.focusOnHover) {\n this.changeFocusedOptionIndex(event, index);\n }\n },\n onOverlayClick: function onOverlayClick(event) {\n OverlayEventBus.emit('overlay-click', {\n originalEvent: event,\n target: this.$el\n });\n },\n onOverlayKeyDown: function onOverlayKeyDown(event) {\n switch (event.code) {\n case 'Escape':\n this.onEscapeKey(event);\n break;\n }\n },\n onArrowDownKey: function onArrowDownKey(event) {\n if (!this.overlayVisible) {\n return;\n }\n var optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.clicked ? this.findFirstOptionIndex() : this.findFirstFocusedOptionIndex();\n this.changeFocusedOptionIndex(event, optionIndex);\n event.preventDefault();\n },\n onArrowUpKey: function onArrowUpKey(event) {\n if (!this.overlayVisible) {\n return;\n }\n if (event.altKey) {\n if (this.focusedOptionIndex !== -1) {\n this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);\n }\n this.overlayVisible && this.hide();\n event.preventDefault();\n } else {\n var optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.clicked ? this.findLastOptionIndex() : this.findLastFocusedOptionIndex();\n this.changeFocusedOptionIndex(event, optionIndex);\n event.preventDefault();\n }\n },\n onArrowLeftKey: function onArrowLeftKey(event) {\n var target = event.currentTarget;\n this.focusedOptionIndex = -1;\n if (this.multiple) {\n if (isEmpty(target.value) && this.hasSelectedOption) {\n focus(this.$refs.multiContainer);\n this.focusedMultipleOptionIndex = this.modelValue.length;\n } else {\n event.stopPropagation(); // To prevent onArrowLeftKeyOnMultiple method\n }\n }\n },\n onArrowRightKey: function onArrowRightKey(event) {\n this.focusedOptionIndex = -1;\n this.multiple && event.stopPropagation(); // To prevent onArrowRightKeyOnMultiple method\n },\n onHomeKey: function onHomeKey(event) {\n var currentTarget = event.currentTarget;\n var len = currentTarget.value.length;\n currentTarget.setSelectionRange(0, event.shiftKey ? len : 0);\n this.focusedOptionIndex = -1;\n event.preventDefault();\n },\n onEndKey: function onEndKey(event) {\n var currentTarget = event.currentTarget;\n var len = currentTarget.value.length;\n currentTarget.setSelectionRange(event.shiftKey ? 0 : len, len);\n this.focusedOptionIndex = -1;\n event.preventDefault();\n },\n onPageUpKey: function onPageUpKey(event) {\n this.scrollInView(0);\n event.preventDefault();\n },\n onPageDownKey: function onPageDownKey(event) {\n this.scrollInView(this.visibleOptions.length - 1);\n event.preventDefault();\n },\n onEnterKey: function onEnterKey(event) {\n if (!this.typeahead) {\n if (this.multiple) {\n this.updateModel(event, [].concat(_toConsumableArray(this.modelValue || []), [event.target.value]));\n this.$refs.focusInput.value = '';\n }\n } else {\n if (!this.overlayVisible) {\n this.focusedOptionIndex = -1; // reset\n this.onArrowDownKey(event);\n } else {\n if (this.focusedOptionIndex !== -1) {\n this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);\n }\n this.hide();\n }\n }\n },\n onEscapeKey: function onEscapeKey(event) {\n this.overlayVisible && this.hide(true);\n event.preventDefault();\n },\n onTabKey: function onTabKey(event) {\n if (this.focusedOptionIndex !== -1) {\n this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);\n }\n this.overlayVisible && this.hide();\n },\n onBackspaceKey: function onBackspaceKey(event) {\n if (this.multiple) {\n if (isNotEmpty(this.modelValue) && !this.$refs.focusInput.value) {\n var removedValue = this.modelValue[this.modelValue.length - 1];\n var newValue = this.modelValue.slice(0, -1);\n this.$emit('update:modelValue', newValue);\n this.$emit('item-unselect', {\n originalEvent: event,\n value: removedValue\n });\n this.$emit('option-unselect', {\n originalEvent: event,\n value: removedValue\n });\n }\n event.stopPropagation(); // To prevent onBackspaceKeyOnMultiple method\n }\n },\n onArrowLeftKeyOnMultiple: function onArrowLeftKeyOnMultiple() {\n this.focusedMultipleOptionIndex = this.focusedMultipleOptionIndex < 1 ? 0 : this.focusedMultipleOptionIndex - 1;\n },\n onArrowRightKeyOnMultiple: function onArrowRightKeyOnMultiple() {\n this.focusedMultipleOptionIndex++;\n if (this.focusedMultipleOptionIndex > this.modelValue.length - 1) {\n this.focusedMultipleOptionIndex = -1;\n focus(this.$refs.focusInput);\n }\n },\n onBackspaceKeyOnMultiple: function onBackspaceKeyOnMultiple(event) {\n if (this.focusedMultipleOptionIndex !== -1) {\n this.removeOption(event, this.focusedMultipleOptionIndex);\n }\n },\n onOverlayEnter: function onOverlayEnter(el) {\n ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);\n addStyle(el, {\n position: 'absolute',\n top: '0',\n left: '0'\n });\n this.alignOverlay();\n },\n onOverlayAfterEnter: function onOverlayAfterEnter() {\n this.bindOutsideClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n this.$emit('show');\n },\n onOverlayLeave: function onOverlayLeave() {\n this.unbindOutsideClickListener();\n this.unbindScrollListener();\n this.unbindResizeListener();\n this.$emit('hide');\n this.overlay = null;\n },\n onOverlayAfterLeave: function onOverlayAfterLeave(el) {\n ZIndex.clear(el);\n },\n alignOverlay: function alignOverlay() {\n var target = this.multiple ? this.$refs.multiContainer : this.$refs.focusInput.$el;\n if (this.appendTo === 'self') {\n relativePosition(this.overlay, target);\n } else {\n this.overlay.style.minWidth = getOuterWidth(target) + 'px';\n absolutePosition(this.overlay, target);\n }\n },\n bindOutsideClickListener: function bindOutsideClickListener() {\n var _this5 = this;\n if (!this.outsideClickListener) {\n this.outsideClickListener = function (event) {\n if (_this5.overlayVisible && _this5.overlay && _this5.isOutsideClicked(event)) {\n _this5.hide();\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 _this6 = this;\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.$refs.container, function () {\n if (_this6.overlayVisible) {\n _this6.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 _this7 = this;\n if (!this.resizeListener) {\n this.resizeListener = function () {\n if (_this7.overlayVisible && !isTouchDevice()) {\n _this7.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 isOutsideClicked: function isOutsideClicked(event) {\n return !this.overlay.contains(event.target) && !this.isInputClicked(event) && !this.isDropdownClicked(event);\n },\n isInputClicked: function isInputClicked(event) {\n if (this.multiple) return event.target === this.$refs.multiContainer || this.$refs.multiContainer.contains(event.target);else return event.target === this.$refs.focusInput.$el;\n },\n isDropdownClicked: function isDropdownClicked(event) {\n return this.$refs.dropdownButton ? event.target === this.$refs.dropdownButton || this.$refs.dropdownButton.contains(event.target) : false;\n },\n isOptionMatched: function isOptionMatched(option, value) {\n var _this$getOptionLabel;\n return this.isValidOption(option) && ((_this$getOptionLabel = this.getOptionLabel(option)) === null || _this$getOptionLabel === void 0 ? void 0 : _this$getOptionLabel.toLocaleLowerCase(this.searchLocale)) === value.toLocaleLowerCase(this.searchLocale);\n },\n isValidOption: function isValidOption(option) {\n return isNotEmpty(option) && !(this.isOptionDisabled(option) || this.isOptionGroup(option));\n },\n isValidSelectedOption: function isValidSelectedOption(option) {\n return this.isValidOption(option) && this.isSelected(option);\n },\n isEquals: function isEquals(value1, value2) {\n return equals(value1, value2, this.equalityKey);\n },\n isSelected: function isSelected(option) {\n var _this8 = this;\n var optionValue = this.getOptionValue(option);\n return this.multiple ? (this.modelValue || []).some(function (value) {\n return _this8.isEquals(value, optionValue);\n }) : this.isEquals(this.modelValue, this.getOptionValue(option));\n },\n findFirstOptionIndex: function findFirstOptionIndex() {\n var _this9 = this;\n return this.visibleOptions.findIndex(function (option) {\n return _this9.isValidOption(option);\n });\n },\n findLastOptionIndex: function findLastOptionIndex() {\n var _this10 = this;\n return findLastIndex(this.visibleOptions, function (option) {\n return _this10.isValidOption(option);\n });\n },\n findNextOptionIndex: function findNextOptionIndex(index) {\n var _this11 = this;\n var matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {\n return _this11.isValidOption(option);\n }) : -1;\n return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;\n },\n findPrevOptionIndex: function findPrevOptionIndex(index) {\n var _this12 = this;\n var matchedOptionIndex = index > 0 ? findLastIndex(this.visibleOptions.slice(0, index), function (option) {\n return _this12.isValidOption(option);\n }) : -1;\n return matchedOptionIndex > -1 ? matchedOptionIndex : index;\n },\n findSelectedOptionIndex: function findSelectedOptionIndex() {\n var _this13 = this;\n return this.hasSelectedOption ? this.visibleOptions.findIndex(function (option) {\n return _this13.isValidSelectedOption(option);\n }) : -1;\n },\n findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {\n var selectedIndex = this.findSelectedOptionIndex();\n return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;\n },\n findLastFocusedOptionIndex: function findLastFocusedOptionIndex() {\n var selectedIndex = this.findSelectedOptionIndex();\n return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;\n },\n search: function search(event, query, source) {\n //allow empty string but not undefined or null\n if (query === undefined || query === null) {\n return;\n }\n\n //do not search blank values on input change\n if (source === 'input' && query.trim().length === 0) {\n return;\n }\n this.searching = true;\n this.$emit('complete', {\n originalEvent: event,\n query: query\n });\n },\n removeOption: function removeOption(event, index) {\n var _this14 = this;\n var removedOption = this.modelValue[index];\n var value = this.modelValue.filter(function (_, i) {\n return i !== index;\n }).map(function (option) {\n return _this14.getOptionValue(option);\n });\n this.updateModel(event, value);\n this.$emit('item-unselect', {\n originalEvent: event,\n value: removedOption\n });\n this.$emit('option-unselect', {\n originalEvent: event,\n value: removedOption\n });\n this.dirty = true;\n focus(this.multiple ? this.$refs.focusInput : this.$refs.focusInput.$el);\n },\n changeFocusedOptionIndex: function changeFocusedOptionIndex(event, index) {\n if (this.focusedOptionIndex !== index) {\n this.focusedOptionIndex = index;\n this.scrollInView();\n if (this.selectOnFocus) {\n this.onOptionSelect(event, this.visibleOptions[index], false);\n }\n }\n },\n scrollInView: function scrollInView() {\n var _this15 = this;\n var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;\n this.$nextTick(function () {\n var id = index !== -1 ? \"\".concat(_this15.id, \"_\").concat(index) : _this15.focusedOptionId;\n var element = findSingle(_this15.list, \"li[id=\\\"\".concat(id, \"\\\"]\"));\n if (element) {\n element.scrollIntoView && element.scrollIntoView({\n block: 'nearest',\n inline: 'start'\n });\n } else if (!_this15.virtualScrollerDisabled) {\n _this15.virtualScroller && _this15.virtualScroller.scrollToIndex(index !== -1 ? index : _this15.focusedOptionIndex);\n }\n });\n },\n autoUpdateModel: function autoUpdateModel() {\n if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption) {\n this.focusedOptionIndex = this.findFirstFocusedOptionIndex();\n this.onOptionSelect(null, this.visibleOptions[this.focusedOptionIndex], false);\n }\n },\n updateModel: function updateModel(event, value) {\n this.$emit('update:modelValue', value);\n this.$emit('change', {\n originalEvent: event,\n value: value\n });\n },\n flatOptions: function flatOptions(options) {\n var _this16 = this;\n return (options || []).reduce(function (result, option, index) {\n result.push({\n optionGroup: option,\n group: true,\n index: index\n });\n var optionGroupChildren = _this16.getOptionGroupChildren(option);\n optionGroupChildren && optionGroupChildren.forEach(function (o) {\n return result.push(o);\n });\n return result;\n }, []);\n },\n overlayRef: function overlayRef(el) {\n this.overlay = el;\n },\n listRef: function listRef(el, contentRef) {\n this.list = el;\n contentRef && contentRef(el); // For VirtualScroller\n },\n virtualScrollerRef: function virtualScrollerRef(el) {\n this.virtualScroller = el;\n }\n },\n computed: {\n visibleOptions: function visibleOptions() {\n return this.optionGroupLabel ? this.flatOptions(this.suggestions) : this.suggestions || [];\n },\n inputValue: function inputValue() {\n if (isNotEmpty(this.modelValue)) {\n if (_typeof$1(this.modelValue) === 'object') {\n var label = this.getOptionLabel(this.modelValue);\n return label != null ? label : this.modelValue;\n } else {\n return this.modelValue;\n }\n } else {\n return '';\n }\n },\n hasSelectedOption: function hasSelectedOption() {\n return isNotEmpty(this.modelValue);\n },\n equalityKey: function equalityKey() {\n return this.dataKey; // TODO: The 'optionValue' properties can be added.\n },\n searchResultMessageText: function searchResultMessageText() {\n return isNotEmpty(this.visibleOptions) && this.overlayVisible ? this.searchMessageText.replaceAll('{0}', this.visibleOptions.length) : this.emptySearchMessageText;\n },\n searchMessageText: function searchMessageText() {\n return this.searchMessage || this.$primevue.config.locale.searchMessage || '';\n },\n emptySearchMessageText: function emptySearchMessageText() {\n return this.emptySearchMessage || this.$primevue.config.locale.emptySearchMessage || '';\n },\n selectionMessageText: function selectionMessageText() {\n return this.selectionMessage || this.$primevue.config.locale.selectionMessage || '';\n },\n emptySelectionMessageText: function emptySelectionMessageText() {\n return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || '';\n },\n selectedMessageText: function selectedMessageText() {\n return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', this.multiple ? this.modelValue.length : '1') : this.emptySelectionMessageText;\n },\n listAriaLabel: function listAriaLabel() {\n return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.listLabel : undefined;\n },\n focusedOptionId: function focusedOptionId() {\n return this.focusedOptionIndex !== -1 ? \"\".concat(this.id, \"_\").concat(this.focusedOptionIndex) : null;\n },\n focusedMultipleOptionId: function focusedMultipleOptionId() {\n return this.focusedMultipleOptionIndex !== -1 ? \"\".concat(this.id, \"_multiple_option_\").concat(this.focusedMultipleOptionIndex) : null;\n },\n ariaSetSize: function ariaSetSize() {\n var _this17 = this;\n return this.visibleOptions.filter(function (option) {\n return !_this17.isOptionGroup(option);\n }).length;\n },\n virtualScrollerDisabled: function virtualScrollerDisabled() {\n return !this.virtualScrollerOptions;\n },\n panelId: function panelId() {\n return this.id + '_panel';\n },\n hasFluid: function hasFluid() {\n return isEmpty(this.fluid) ? !!this.$pcFluid : this.fluid;\n }\n },\n components: {\n InputText: InputText,\n VirtualScroller: VirtualScroller,\n Portal: Portal,\n ChevronDownIcon: ChevronDownIcon,\n SpinnerIcon: SpinnerIcon,\n Chip: Chip\n },\n directives: {\n ripple: Ripple\n }\n};\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar _hoisted_1 = [\"aria-activedescendant\"];\nvar _hoisted_2 = [\"id\", \"aria-label\", \"aria-setsize\", \"aria-posinset\"];\nvar _hoisted_3 = [\"id\", \"placeholder\", \"tabindex\", \"disabled\", \"aria-label\", \"aria-labelledby\", \"aria-expanded\", \"aria-controls\", \"aria-activedescendant\", \"aria-invalid\"];\nvar _hoisted_4 = [\"disabled\", \"aria-expanded\", \"aria-controls\"];\nvar _hoisted_5 = [\"id\"];\nvar _hoisted_6 = [\"id\", \"aria-label\"];\nvar _hoisted_7 = [\"id\"];\nvar _hoisted_8 = [\"id\", \"aria-label\", \"aria-selected\", \"aria-disabled\", \"aria-setsize\", \"aria-posinset\", \"onClick\", \"onMousemove\", \"data-p-selected\", \"data-p-focus\", \"data-p-disabled\"];\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_InputText = resolveComponent(\"InputText\");\n var _component_Chip = resolveComponent(\"Chip\");\n var _component_SpinnerIcon = resolveComponent(\"SpinnerIcon\");\n var _component_VirtualScroller = resolveComponent(\"VirtualScroller\");\n var _component_Portal = resolveComponent(\"Portal\");\n var _directive_ripple = resolveDirective(\"ripple\");\n return openBlock(), createElementBlock(\"div\", mergeProps({\n ref: \"container\",\n \"class\": _ctx.cx('root'),\n style: _ctx.sx('root'),\n onClick: _cache[11] || (_cache[11] = function () {\n return $options.onContainerClick && $options.onContainerClick.apply($options, arguments);\n })\n }, _ctx.ptmi('root')), [!_ctx.multiple ? (openBlock(), createBlock(_component_InputText, {\n key: 0,\n ref: \"focusInput\",\n id: _ctx.inputId,\n type: \"text\",\n \"class\": normalizeClass([_ctx.cx('pcInput'), _ctx.inputClass]),\n style: normalizeStyle(_ctx.inputStyle),\n value: $options.inputValue,\n placeholder: _ctx.placeholder,\n tabindex: !_ctx.disabled ? _ctx.tabindex : -1,\n fluid: $options.hasFluid,\n disabled: _ctx.disabled,\n invalid: _ctx.invalid,\n variant: _ctx.variant,\n autocomplete: \"off\",\n role: \"combobox\",\n \"aria-label\": _ctx.ariaLabel,\n \"aria-labelledby\": _ctx.ariaLabelledby,\n \"aria-haspopup\": \"listbox\",\n \"aria-autocomplete\": \"list\",\n \"aria-expanded\": $data.overlayVisible,\n \"aria-controls\": $options.panelId,\n \"aria-activedescendant\": $data.focused ? $options.focusedOptionId : undefined,\n onFocus: $options.onFocus,\n onBlur: $options.onBlur,\n onKeydown: $options.onKeyDown,\n onInput: $options.onInput,\n onChange: $options.onChange,\n unstyled: _ctx.unstyled,\n pt: _ctx.ptm('pcInput')\n }, null, 8, [\"id\", \"class\", \"style\", \"value\", \"placeholder\", \"tabindex\", \"fluid\", \"disabled\", \"invalid\", \"variant\", \"aria-label\", \"aria-labelledby\", \"aria-expanded\", \"aria-controls\", \"aria-activedescendant\", \"onFocus\", \"onBlur\", \"onKeydown\", \"onInput\", \"onChange\", \"unstyled\", \"pt\"])) : createCommentVNode(\"\", true), _ctx.multiple ? (openBlock(), createElementBlock(\"ul\", mergeProps({\n key: 1,\n ref: \"multiContainer\",\n \"class\": _ctx.cx('inputMultiple'),\n tabindex: \"-1\",\n role: \"listbox\",\n \"aria-orientation\": \"horizontal\",\n \"aria-activedescendant\": $data.focused ? $options.focusedMultipleOptionId : undefined,\n onFocus: _cache[5] || (_cache[5] = function () {\n return $options.onMultipleContainerFocus && $options.onMultipleContainerFocus.apply($options, arguments);\n }),\n onBlur: _cache[6] || (_cache[6] = function () {\n return $options.onMultipleContainerBlur && $options.onMultipleContainerBlur.apply($options, arguments);\n }),\n onKeydown: _cache[7] || (_cache[7] = function () {\n return $options.onMultipleContainerKeyDown && $options.onMultipleContainerKeyDown.apply($options, arguments);\n })\n }, _ctx.ptm('inputMultiple')), [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.modelValue, function (option, i) {\n return openBlock(), createElementBlock(\"li\", mergeProps({\n key: \"\".concat(i, \"_\").concat($options.getOptionLabel(option)),\n id: $data.id + '_multiple_option_' + i,\n \"class\": _ctx.cx('chipItem', {\n i: i\n }),\n role: \"option\",\n \"aria-label\": $options.getOptionLabel(option),\n \"aria-selected\": true,\n \"aria-setsize\": _ctx.modelValue.length,\n \"aria-posinset\": i + 1,\n ref_for: true\n }, _ctx.ptm('chipItem')), [renderSlot(_ctx.$slots, \"chip\", mergeProps({\n \"class\": _ctx.cx('pcChip'),\n value: option,\n index: i,\n removeCallback: function removeCallback(event) {\n return $options.removeOption(event, i);\n },\n ref_for: true\n }, _ctx.ptm('pcChip')), function () {\n return [createVNode(_component_Chip, {\n \"class\": normalizeClass(_ctx.cx('pcChip')),\n label: $options.getOptionLabel(option),\n removeIcon: _ctx.chipIcon || _ctx.removeTokenIcon,\n removable: \"\",\n unstyled: _ctx.unstyled,\n onRemove: function onRemove($event) {\n return $options.removeOption($event, i);\n },\n pt: _ctx.ptm('pcChip')\n }, {\n removeicon: withCtx(function () {\n return [renderSlot(_ctx.$slots, _ctx.$slots.chipicon ? 'chipicon' : 'removetokenicon', {\n \"class\": normalizeClass(_ctx.cx('chipIcon')),\n index: i,\n removeCallback: function removeCallback(event) {\n return $options.removeOption(event, i);\n }\n })];\n }),\n _: 2\n }, 1032, [\"class\", \"label\", \"removeIcon\", \"unstyled\", \"onRemove\", \"pt\"])];\n })], 16, _hoisted_2);\n }), 128)), createElementVNode(\"li\", mergeProps({\n \"class\": _ctx.cx('inputChip'),\n role: \"option\"\n }, _ctx.ptm('inputChip')), [createElementVNode(\"input\", mergeProps({\n ref: \"focusInput\",\n id: _ctx.inputId,\n type: \"text\",\n style: _ctx.inputStyle,\n \"class\": _ctx.inputClass,\n placeholder: _ctx.placeholder,\n tabindex: !_ctx.disabled ? _ctx.tabindex : -1,\n disabled: _ctx.disabled,\n autocomplete: \"off\",\n role: \"combobox\",\n \"aria-label\": _ctx.ariaLabel,\n \"aria-labelledby\": _ctx.ariaLabelledby,\n \"aria-haspopup\": \"listbox\",\n \"aria-autocomplete\": \"list\",\n \"aria-expanded\": $data.overlayVisible,\n \"aria-controls\": $data.id + '_list',\n \"aria-activedescendant\": $data.focused ? $options.focusedOptionId : undefined,\n \"aria-invalid\": _ctx.invalid || undefined,\n onFocus: _cache[0] || (_cache[0] = function () {\n return $options.onFocus && $options.onFocus.apply($options, arguments);\n }),\n onBlur: _cache[1] || (_cache[1] = function () {\n return $options.onBlur && $options.onBlur.apply($options, arguments);\n }),\n onKeydown: _cache[2] || (_cache[2] = function () {\n return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);\n }),\n onInput: _cache[3] || (_cache[3] = function () {\n return $options.onInput && $options.onInput.apply($options, arguments);\n }),\n onChange: _cache[4] || (_cache[4] = function () {\n return $options.onChange && $options.onChange.apply($options, arguments);\n })\n }, _ctx.ptm('input')), null, 16, _hoisted_3)], 16)], 16, _hoisted_1)) : createCommentVNode(\"\", true), $data.searching || _ctx.loading ? renderSlot(_ctx.$slots, _ctx.$slots.loader ? 'loader' : 'loadingicon', {\n key: 2,\n \"class\": normalizeClass(_ctx.cx('loader'))\n }, function () {\n return [_ctx.loader || _ctx.loadingIcon ? (openBlock(), createElementBlock(\"i\", mergeProps({\n key: 0,\n \"class\": ['pi-spin', _ctx.cx('loader'), _ctx.loader, _ctx.loadingIcon],\n \"aria-hidden\": \"true\"\n }, _ctx.ptm('loader')), null, 16)) : (openBlock(), createBlock(_component_SpinnerIcon, mergeProps({\n key: 1,\n \"class\": _ctx.cx('loader'),\n spin: \"\",\n \"aria-hidden\": \"true\"\n }, _ctx.ptm('loader')), null, 16, [\"class\"]))];\n }) : createCommentVNode(\"\", true), renderSlot(_ctx.$slots, _ctx.$slots.dropdown ? 'dropdown' : 'dropdownbutton', {\n toggleCallback: function toggleCallback(event) {\n return $options.onDropdownClick(event);\n }\n }, function () {\n return [_ctx.dropdown ? (openBlock(), createElementBlock(\"button\", mergeProps({\n key: 0,\n ref: \"dropdownButton\",\n type: \"button\",\n \"class\": [_ctx.cx('dropdown'), _ctx.dropdownClass],\n disabled: _ctx.disabled,\n \"aria-haspopup\": \"listbox\",\n \"aria-expanded\": $data.overlayVisible,\n \"aria-controls\": $options.panelId,\n onClick: _cache[8] || (_cache[8] = function () {\n return $options.onDropdownClick && $options.onDropdownClick.apply($options, arguments);\n })\n }, _ctx.ptm('dropdown')), [renderSlot(_ctx.$slots, \"dropdownicon\", {\n \"class\": normalizeClass(_ctx.dropdownIcon)\n }, function () {\n return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.dropdownIcon ? 'span' : 'ChevronDownIcon'), mergeProps({\n \"class\": _ctx.dropdownIcon\n }, _ctx.ptm('dropdownIcon')), null, 16, [\"class\"]))];\n })], 16, _hoisted_4)) : createCommentVNode(\"\", true)];\n }), createElementVNode(\"span\", mergeProps({\n role: \"status\",\n \"aria-live\": \"polite\",\n \"class\": \"p-hidden-accessible\"\n }, _ctx.ptm('hiddenSearchResult'), {\n \"data-p-hidden-accessible\": true\n }), toDisplayString($options.searchResultMessageText), 17), createVNode(_component_Portal, {\n appendTo: _ctx.appendTo\n }, {\n \"default\": withCtx(function () {\n return [createVNode(Transition, mergeProps({\n name: \"p-connected-overlay\",\n onEnter: $options.onOverlayEnter,\n onAfterEnter: $options.onOverlayAfterEnter,\n onLeave: $options.onOverlayLeave,\n onAfterLeave: $options.onOverlayAfterLeave\n }, _ctx.ptm('transition')), {\n \"default\": withCtx(function () {\n return [$data.overlayVisible ? (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 0,\n ref: $options.overlayRef,\n id: $options.panelId,\n \"class\": [_ctx.cx('overlay'), _ctx.panelClass, _ctx.overlayClass],\n style: _objectSpread(_objectSpread(_objectSpread({}, _ctx.panelStyle), _ctx.overlayStyle), {}, {\n 'max-height': $options.virtualScrollerDisabled ? _ctx.scrollHeight : ''\n }),\n onClick: _cache[9] || (_cache[9] = function () {\n return $options.onOverlayClick && $options.onOverlayClick.apply($options, arguments);\n }),\n onKeydown: _cache[10] || (_cache[10] = function () {\n return $options.onOverlayKeyDown && $options.onOverlayKeyDown.apply($options, arguments);\n })\n }, _ctx.ptm('overlay')), [renderSlot(_ctx.$slots, \"header\", {\n value: _ctx.modelValue,\n suggestions: $options.visibleOptions\n }), createVNode(_component_VirtualScroller, mergeProps({\n ref: $options.virtualScrollerRef\n }, _ctx.virtualScrollerOptions, {\n style: {\n height: _ctx.scrollHeight\n },\n items: $options.visibleOptions,\n tabindex: -1,\n disabled: $options.virtualScrollerDisabled,\n pt: _ctx.ptm('virtualScroller')\n }), createSlots({\n content: withCtx(function (_ref) {\n var styleClass = _ref.styleClass,\n contentRef = _ref.contentRef,\n items = _ref.items,\n getItemOptions = _ref.getItemOptions,\n contentStyle = _ref.contentStyle,\n itemSize = _ref.itemSize;\n return [createElementVNode(\"ul\", mergeProps({\n ref: function ref(el) {\n return $options.listRef(el, contentRef);\n },\n id: $data.id + '_list',\n \"class\": [_ctx.cx('list'), styleClass],\n style: contentStyle,\n role: \"listbox\",\n \"aria-label\": $options.listAriaLabel\n }, _ctx.ptm('list')), [(openBlock(true), createElementBlock(Fragment, null, renderList(items, function (option, i) {\n return openBlock(), createElementBlock(Fragment, {\n key: $options.getOptionRenderKey(option, $options.getOptionIndex(i, getItemOptions))\n }, [$options.isOptionGroup(option) ? (openBlock(), createElementBlock(\"li\", mergeProps({\n key: 0,\n id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),\n style: {\n height: itemSize ? itemSize + 'px' : undefined\n },\n \"class\": _ctx.cx('optionGroup'),\n role: \"option\",\n ref_for: true\n }, _ctx.ptm('optionGroup')), [renderSlot(_ctx.$slots, \"optiongroup\", {\n option: option.optionGroup,\n index: $options.getOptionIndex(i, getItemOptions)\n }, function () {\n return [createTextVNode(toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 1)];\n })], 16, _hoisted_7)) : withDirectives((openBlock(), createElementBlock(\"li\", mergeProps({\n key: 1,\n id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),\n style: {\n height: itemSize ? itemSize + 'px' : undefined\n },\n \"class\": _ctx.cx('option', {\n option: option,\n i: i,\n getItemOptions: getItemOptions\n }),\n role: \"option\",\n \"aria-label\": $options.getOptionLabel(option),\n \"aria-selected\": $options.isSelected(option),\n \"aria-disabled\": $options.isOptionDisabled(option),\n \"aria-setsize\": $options.ariaSetSize,\n \"aria-posinset\": $options.getAriaPosInset($options.getOptionIndex(i, getItemOptions)),\n onClick: function onClick($event) {\n return $options.onOptionSelect($event, option);\n },\n onMousemove: function onMousemove($event) {\n return $options.onOptionMouseMove($event, $options.getOptionIndex(i, getItemOptions));\n },\n \"data-p-selected\": $options.isSelected(option),\n \"data-p-focus\": $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions),\n \"data-p-disabled\": $options.isOptionDisabled(option),\n ref_for: true\n }, $options.getPTOptions(option, getItemOptions, i, 'option')), [renderSlot(_ctx.$slots, \"option\", {\n option: option,\n index: $options.getOptionIndex(i, getItemOptions)\n }, function () {\n return [createTextVNode(toDisplayString($options.getOptionLabel(option)), 1)];\n })], 16, _hoisted_8)), [[_directive_ripple]])], 64);\n }), 128)), !items || items && items.length === 0 ? (openBlock(), createElementBlock(\"li\", mergeProps({\n key: 0,\n \"class\": _ctx.cx('emptyMessage'),\n role: \"option\"\n }, _ctx.ptm('emptyMessage')), [renderSlot(_ctx.$slots, \"empty\", {}, function () {\n return [createTextVNode(toDisplayString($options.searchResultMessageText), 1)];\n })], 16)) : createCommentVNode(\"\", true)], 16, _hoisted_6)];\n }),\n _: 2\n }, [_ctx.$slots.loader ? {\n name: \"loader\",\n fn: withCtx(function (_ref2) {\n var options = _ref2.options;\n return [renderSlot(_ctx.$slots, \"loader\", {\n options: options\n })];\n }),\n key: \"0\"\n } : undefined]), 1040, [\"style\", \"items\", \"disabled\", \"pt\"]), renderSlot(_ctx.$slots, \"footer\", {\n value: _ctx.modelValue,\n suggestions: $options.visibleOptions\n }), createElementVNode(\"span\", mergeProps({\n role: \"status\",\n \"aria-live\": \"polite\",\n \"class\": \"p-hidden-accessible\"\n }, _ctx.ptm('hiddenSelectedMessage'), {\n \"data-p-hidden-accessible\": true\n }), toDisplayString($options.selectedMessageText), 17)], 16, _hoisted_5)) : createCommentVNode(\"\", true)];\n }),\n _: 3\n }, 16, [\"onEnter\", \"onAfterEnter\", \"onLeave\", \"onAfterLeave\"])];\n }),\n _: 3\n }, 8, [\"appendTo\"])], 16);\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","<!-- Auto complete with extra event \"focused-option-changed\" -->\n<script>\nimport AutoComplete from 'primevue/autocomplete'\n\nexport default {\n name: 'AutoCompletePlus',\n extends: AutoComplete,\n emits: ['focused-option-changed'],\n mounted() {\n if (typeof AutoComplete.mounted === 'function') {\n AutoComplete.mounted.call(this)\n }\n\n // Add a watcher on the focusedOptionIndex property\n this.$watch(\n () => this.focusedOptionIndex,\n (newVal, oldVal) => {\n // Emit a custom event when focusedOptionIndex changes\n this.$emit('focused-option-changed', newVal)\n }\n )\n }\n}\n</script>\n","import BaseStyle from '@primevue/core/base/style';\n\nvar theme = function theme(_ref) {\n var dt = _ref.dt;\n return \"\\n.p-togglebutton {\\n display: inline-flex;\\n cursor: pointer;\\n user-select: none;\\n align-items: center;\\n justify-content: center;\\n overflow: hidden;\\n position: relative;\\n color: \".concat(dt('togglebutton.color'), \";\\n background: \").concat(dt('togglebutton.background'), \";\\n border: 1px solid \").concat(dt('togglebutton.border.color'), \";\\n padding: \").concat(dt('togglebutton.padding'), \";\\n font-size: 1rem;\\n font-family: inherit;\\n font-feature-settings: inherit;\\n transition: background \").concat(dt('togglebutton.transition.duration'), \", color \").concat(dt('togglebutton.transition.duration'), \", border-color \").concat(dt('togglebutton.transition.duration'), \",\\n outline-color \").concat(dt('togglebutton.transition.duration'), \", box-shadow \").concat(dt('togglebutton.transition.duration'), \";\\n border-radius: \").concat(dt('togglebutton.border.radius'), \";\\n outline-color: transparent;\\n font-weight: \").concat(dt('togglebutton.font.weight'), \";\\n}\\n\\n.p-togglebutton-content {\\n position: relative;\\n display: inline-flex;\\n align-items: center;\\n justify-content: center;\\n gap: \").concat(dt('togglebutton.gap'), \";\\n}\\n\\n.p-togglebutton-label,\\n.p-togglebutton-icon {\\n position: relative;\\n transition: none;\\n}\\n\\n.p-togglebutton::before {\\n content: \\\"\\\";\\n background: transparent;\\n transition: background \").concat(dt('togglebutton.transition.duration'), \", color \").concat(dt('togglebutton.transition.duration'), \", border-color \").concat(dt('togglebutton.transition.duration'), \",\\n outline-color \").concat(dt('togglebutton.transition.duration'), \", box-shadow \").concat(dt('togglebutton.transition.duration'), \";\\n position: absolute;\\n left: \").concat(dt('togglebutton.content.left'), \";\\n top: \").concat(dt('togglebutton.content.top'), \";\\n width: calc(100% - calc(2 * \").concat(dt('togglebutton.content.left'), \"));\\n height: calc(100% - calc(2 * \").concat(dt('togglebutton.content.top'), \"));\\n border-radius: \").concat(dt('togglebutton.border.radius'), \";\\n}\\n\\n.p-togglebutton.p-togglebutton-checked::before {\\n background: \").concat(dt('togglebutton.content.checked.background'), \";\\n box-shadow: \").concat(dt('togglebutton.content.checked.shadow'), \";\\n}\\n\\n.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover {\\n background: \").concat(dt('togglebutton.hover.background'), \";\\n color: \").concat(dt('togglebutton.hover.color'), \";\\n}\\n\\n.p-togglebutton.p-togglebutton-checked {\\n background: \").concat(dt('togglebutton.checked.background'), \";\\n border-color: \").concat(dt('togglebutton.checked.border.color'), \";\\n color: \").concat(dt('togglebutton.checked.color'), \";\\n}\\n\\n.p-togglebutton:focus-visible {\\n box-shadow: \").concat(dt('togglebutton.focus.ring.shadow'), \";\\n outline: \").concat(dt('togglebutton.focus.ring.width'), \" \").concat(dt('togglebutton.focus.ring.style'), \" \").concat(dt('togglebutton.focus.ring.color'), \";\\n outline-offset: \").concat(dt('togglebutton.focus.ring.offset'), \";\\n}\\n\\n.p-togglebutton.p-invalid {\\n border-color: \").concat(dt('togglebutton.invalid.border.color'), \";\\n}\\n\\n.p-togglebutton:disabled {\\n opacity: 1;\\n cursor: default;\\n background: \").concat(dt('togglebutton.disabled.background'), \";\\n border-color: \").concat(dt('togglebutton.disabled.border.color'), \";\\n color: \").concat(dt('togglebutton.disabled.color'), \";\\n}\\n\\n.p-togglebutton-icon {\\n color: \").concat(dt('togglebutton.icon.color'), \";\\n}\\n\\n.p-togglebutton:not(:disabled):not(.p-togglebutton-checked):hover .p-togglebutton-icon {\\n color: \").concat(dt('togglebutton.icon.hover.color'), \";\\n}\\n\\n.p-togglebutton.p-togglebutton-checked .p-togglebutton-icon {\\n color: \").concat(dt('togglebutton.icon.checked.color'), \";\\n}\\n\\n.p-togglebutton:disabled .p-togglebutton-icon {\\n color: \").concat(dt('togglebutton.icon.disabled.color'), \";\\n}\\n\");\n};\nvar classes = {\n root: function root(_ref2) {\n var instance = _ref2.instance,\n props = _ref2.props;\n return ['p-togglebutton p-component', {\n 'p-togglebutton-checked': instance.active,\n 'p-invalid': props.invalid\n }];\n },\n content: 'p-togglebutton-content',\n icon: 'p-togglebutton-icon',\n label: 'p-togglebutton-label'\n};\nvar ToggleButtonStyle = BaseStyle.extend({\n name: 'togglebutton',\n theme: theme,\n classes: classes\n});\n\nexport { ToggleButtonStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import { isNotEmpty } from '@primeuix/utils/object';\nimport Ripple from 'primevue/ripple';\nimport BaseComponent from '@primevue/core/basecomponent';\nimport ToggleButtonStyle from 'primevue/togglebutton/style';\nimport { resolveDirective, withDirectives, openBlock, createElementBlock, mergeProps, createElementVNode, renderSlot, normalizeClass, createCommentVNode, toDisplayString } from 'vue';\n\nvar script$1 = {\n name: 'BaseToggleButton',\n \"extends\": BaseComponent,\n props: {\n modelValue: Boolean,\n onIcon: String,\n offIcon: String,\n onLabel: {\n type: String,\n \"default\": 'Yes'\n },\n offLabel: {\n type: String,\n \"default\": 'No'\n },\n iconPos: {\n type: String,\n \"default\": 'left'\n },\n invalid: {\n type: Boolean,\n \"default\": false\n },\n disabled: {\n type: Boolean,\n \"default\": false\n },\n readonly: {\n type: Boolean,\n \"default\": false\n },\n tabindex: {\n type: Number,\n \"default\": null\n },\n ariaLabelledby: {\n type: String,\n \"default\": null\n },\n ariaLabel: {\n type: String,\n \"default\": null\n }\n },\n style: ToggleButtonStyle,\n provide: function provide() {\n return {\n $pcToggleButton: this,\n $parentInstance: this\n };\n }\n};\n\nvar script = {\n name: 'ToggleButton',\n \"extends\": script$1,\n inheritAttrs: false,\n emits: ['update:modelValue', 'change'],\n methods: {\n getPTOptions: function getPTOptions(key) {\n var _ptm = key === 'root' ? this.ptmi : this.ptm;\n return _ptm(key, {\n context: {\n active: this.active,\n disabled: this.disabled\n }\n });\n },\n onChange: function onChange(event) {\n if (!this.disabled && !this.readonly) {\n this.$emit('update:modelValue', !this.modelValue);\n this.$emit('change', event);\n }\n }\n },\n computed: {\n active: function active() {\n return this.modelValue === true;\n },\n hasLabel: function hasLabel() {\n return isNotEmpty(this.onLabel) && isNotEmpty(this.offLabel);\n },\n label: function label() {\n return this.hasLabel ? this.modelValue ? this.onLabel : this.offLabel : ' ';\n }\n },\n directives: {\n ripple: Ripple\n }\n};\n\nvar _hoisted_1 = [\"tabindex\", \"disabled\", \"aria-pressed\", \"data-p-checked\", \"data-p-disabled\"];\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n var _directive_ripple = resolveDirective(\"ripple\");\n return withDirectives((openBlock(), createElementBlock(\"button\", mergeProps({\n type: \"button\",\n \"class\": _ctx.cx('root'),\n tabindex: _ctx.tabindex,\n disabled: _ctx.disabled,\n \"aria-pressed\": _ctx.modelValue,\n onClick: _cache[0] || (_cache[0] = function () {\n return $options.onChange && $options.onChange.apply($options, arguments);\n })\n }, $options.getPTOptions('root'), {\n \"data-p-checked\": $options.active,\n \"data-p-disabled\": _ctx.disabled\n }), [createElementVNode(\"span\", mergeProps({\n \"class\": _ctx.cx('content')\n }, $options.getPTOptions('content')), [renderSlot(_ctx.$slots, \"default\", {}, function () {\n return [renderSlot(_ctx.$slots, \"icon\", {\n value: _ctx.modelValue,\n \"class\": normalizeClass(_ctx.cx('icon'))\n }, function () {\n return [_ctx.onIcon || _ctx.offIcon ? (openBlock(), createElementBlock(\"span\", mergeProps({\n key: 0,\n \"class\": [_ctx.cx('icon'), _ctx.modelValue ? _ctx.onIcon : _ctx.offIcon]\n }, $options.getPTOptions('icon')), null, 16)) : createCommentVNode(\"\", true)];\n }), createElementVNode(\"span\", mergeProps({\n \"class\": _ctx.cx('label')\n }, $options.getPTOptions('label')), toDisplayString($options.label), 17)];\n })], 16)], 16, _hoisted_1)), [[_directive_ripple]]);\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","import BaseStyle from '@primevue/core/base/style';\n\nvar theme = function theme(_ref) {\n var dt = _ref.dt;\n return \"\\n.p-selectbutton {\\n display: inline-flex;\\n user-select: none;\\n vertical-align: bottom;\\n outline-color: transparent;\\n border-radius: \".concat(dt('selectbutton.border.radius'), \";\\n}\\n\\n.p-selectbutton .p-togglebutton {\\n border-radius: 0;\\n border-width: 1px 1px 1px 0;\\n}\\n\\n.p-selectbutton .p-togglebutton:focus-visible {\\n position: relative;\\n z-index: 1;\\n}\\n\\n.p-selectbutton .p-togglebutton:first-child {\\n border-left-width: 1px;\\n border-top-left-radius: \").concat(dt('selectbutton.border.radius'), \";\\n border-bottom-left-radius: \").concat(dt('selectbutton.border.radius'), \";\\n}\\n\\n.p-selectbutton .p-togglebutton:last-child {\\n border-top-right-radius: \").concat(dt('selectbutton.border.radius'), \";\\n border-bottom-right-radius: \").concat(dt('selectbutton.border.radius'), \";\\n}\\n\\n.p-selectbutton.p-invalid {\\n outline: 1px solid \").concat(dt('selectbutton.invalid.border.color'), \";\\n outline-offset: 0;\\n}\\n\");\n};\nvar classes = {\n root: function root(_ref2) {\n var props = _ref2.props;\n return ['p-selectbutton p-component', {\n 'p-invalid': props.invalid\n }];\n }\n};\nvar SelectButtonStyle = BaseStyle.extend({\n name: 'selectbutton',\n theme: theme,\n classes: classes\n});\n\nexport { SelectButtonStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import { resolveFieldData, equals } from '@primeuix/utils/object';\nimport Ripple from 'primevue/ripple';\nimport ToggleButton from 'primevue/togglebutton';\nimport BaseComponent from '@primevue/core/basecomponent';\nimport SelectButtonStyle from 'primevue/selectbutton/style';\nimport { resolveComponent, openBlock, createElementBlock, mergeProps, Fragment, renderList, createBlock, createSlots, withCtx, renderSlot, createElementVNode, toDisplayString } from 'vue';\n\nvar script$1 = {\n name: 'BaseSelectButton',\n \"extends\": BaseComponent,\n props: {\n modelValue: null,\n options: Array,\n optionLabel: null,\n optionValue: null,\n optionDisabled: null,\n multiple: Boolean,\n allowEmpty: {\n type: Boolean,\n \"default\": true\n },\n invalid: {\n type: Boolean,\n \"default\": false\n },\n disabled: Boolean,\n dataKey: null,\n ariaLabelledby: {\n type: String,\n \"default\": null\n }\n },\n style: SelectButtonStyle,\n provide: function provide() {\n return {\n $pcSelectButton: this,\n $parentInstance: this\n };\n }\n};\n\nfunction _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t[\"return\"] || t[\"return\"](); } finally { if (u) throw o; } } }; }\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nvar script = {\n name: 'SelectButton',\n \"extends\": script$1,\n inheritAttrs: false,\n emits: ['update:modelValue', 'change'],\n methods: {\n getOptionLabel: function getOptionLabel(option) {\n return this.optionLabel ? resolveFieldData(option, this.optionLabel) : option;\n },\n getOptionValue: function getOptionValue(option) {\n return this.optionValue ? resolveFieldData(option, this.optionValue) : option;\n },\n getOptionRenderKey: function getOptionRenderKey(option) {\n return this.dataKey ? resolveFieldData(option, this.dataKey) : this.getOptionLabel(option);\n },\n getPTOptions: function getPTOptions(option, key) {\n return this.ptm(key, {\n context: {\n active: this.isSelected(option),\n disabled: this.isOptionDisabled(option),\n option: option\n }\n });\n },\n isOptionDisabled: function isOptionDisabled(option) {\n return this.optionDisabled ? resolveFieldData(option, this.optionDisabled) : false;\n },\n onOptionSelect: function onOptionSelect(event, option, index) {\n var _this = this;\n if (this.disabled || this.isOptionDisabled(option)) {\n return;\n }\n var selected = this.isSelected(option);\n if (selected && !this.allowEmpty) {\n return;\n }\n var optionValue = this.getOptionValue(option);\n var newValue;\n if (this.multiple) {\n if (selected) newValue = this.modelValue.filter(function (val) {\n return !equals(val, optionValue, _this.equalityKey);\n });else newValue = this.modelValue ? [].concat(_toConsumableArray(this.modelValue), [optionValue]) : [optionValue];\n } else {\n newValue = selected ? null : optionValue;\n }\n this.focusedIndex = index;\n this.$emit('update:modelValue', newValue);\n this.$emit('change', {\n event: event,\n value: newValue\n });\n },\n isSelected: function isSelected(option) {\n var selected = false;\n var optionValue = this.getOptionValue(option);\n if (this.multiple) {\n if (this.modelValue) {\n var _iterator = _createForOfIteratorHelper(this.modelValue),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var val = _step.value;\n if (equals(val, optionValue, this.equalityKey)) {\n selected = true;\n break;\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n } else {\n selected = equals(this.modelValue, optionValue, this.equalityKey);\n }\n return selected;\n }\n },\n computed: {\n equalityKey: function equalityKey() {\n return this.optionValue ? null : this.dataKey;\n }\n },\n directives: {\n ripple: Ripple\n },\n components: {\n ToggleButton: ToggleButton\n }\n};\n\nvar _hoisted_1 = [\"aria-labelledby\"];\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_ToggleButton = resolveComponent(\"ToggleButton\");\n return openBlock(), createElementBlock(\"div\", mergeProps({\n \"class\": _ctx.cx('root'),\n role: \"group\",\n \"aria-labelledby\": _ctx.ariaLabelledby\n }, _ctx.ptmi('root')), [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, function (option, index) {\n return openBlock(), createBlock(_component_ToggleButton, {\n key: $options.getOptionRenderKey(option),\n modelValue: $options.isSelected(option),\n onLabel: $options.getOptionLabel(option),\n offLabel: $options.getOptionLabel(option),\n disabled: _ctx.disabled || $options.isOptionDisabled(option),\n unstyled: _ctx.unstyled,\n onChange: function onChange($event) {\n return $options.onOptionSelect($event, option, index);\n },\n pt: _ctx.ptm('pcButton')\n }, createSlots({\n _: 2\n }, [_ctx.$slots.option ? {\n name: \"default\",\n fn: withCtx(function () {\n return [renderSlot(_ctx.$slots, \"option\", {\n option: option,\n index: index\n }, function () {\n return [createElementVNode(\"span\", mergeProps({\n ref_for: true\n }, _ctx.ptm('pcButton')['label']), toDisplayString($options.getOptionLabel(option)), 17)];\n })];\n }),\n key: \"0\"\n } : undefined]), 1032, [\"modelValue\", \"onLabel\", \"offLabel\", \"disabled\", \"unstyled\", \"onChange\", \"pt\"]);\n }), 128))], 16, _hoisted_1);\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","<template>\n <div class=\"_content\">\n <SelectButton\n class=\"filter-type-select\"\n v-model=\"selectedFilter\"\n :options=\"filters\"\n :allowEmpty=\"false\"\n optionLabel=\"name\"\n @change=\"updateSelectedFilterValue\"\n />\n <Select\n class=\"filter-value-select\"\n v-model=\"selectedFilterValue\"\n :options=\"filterValues\"\n filter\n />\n </div>\n <div class=\"_footer\">\n <Button type=\"button\" :label=\"$t('add')\" @click=\"submit\"></Button>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { NodeFilter, type FilterAndValue } from '@/services/nodeSearchService'\nimport Button from 'primevue/button'\nimport SelectButton from 'primevue/selectbutton'\nimport Select from 'primevue/select'\nimport { ref, onMounted, computed } from 'vue'\nimport { useNodeDefStore } from '@/stores/nodeDefStore'\n\nconst filters = computed(() => nodeDefStore.nodeSearchService.nodeFilters)\nconst selectedFilter = ref<NodeFilter>()\nconst filterValues = computed(() => selectedFilter.value?.fuseSearch.data ?? [])\nconst selectedFilterValue = ref<string>('')\n\nconst nodeDefStore = useNodeDefStore()\n\nonMounted(() => {\n selectedFilter.value = nodeDefStore.nodeSearchService.nodeFilters[0]\n updateSelectedFilterValue()\n})\n\nconst emit = defineEmits<{\n (event: 'addFilter', filterAndValue: FilterAndValue): void\n}>()\n\nconst updateSelectedFilterValue = () => {\n if (filterValues.value.includes(selectedFilterValue.value)) {\n return\n }\n selectedFilterValue.value = filterValues.value[0]\n}\n\nconst submit = () => {\n emit('addFilter', [\n selectedFilter.value,\n selectedFilterValue.value\n ] as FilterAndValue)\n}\n</script>\n\n<style scoped>\n._content {\n @apply flex flex-col space-y-2;\n}\n\n._footer {\n @apply flex flex-col pt-4 items-end;\n}\n</style>\n","import { defineStore } from 'pinia'\nimport { computed } from 'vue'\nimport { useSettingStore } from './settingStore'\nimport { useNodeDefStore } from './nodeDefStore'\nimport { ComfyNodeDefImpl, createDummyFolderNodeDef } from './nodeDefStore'\nimport { buildNodeDefTree } from './nodeDefStore'\nimport type { TreeNode } from 'primevue/treenode'\nimport _ from 'lodash'\nimport type { BookmarkCustomization } from '@/types/apiTypes'\n\nexport const BOOKMARK_SETTING_ID = 'Comfy.NodeLibrary.Bookmarks.V2'\n\nexport const useNodeBookmarkStore = defineStore('nodeBookmark', () => {\n const settingStore = useSettingStore()\n const nodeDefStore = useNodeDefStore()\n\n const migrateLegacyBookmarks = () => {\n settingStore\n .get('Comfy.NodeLibrary.Bookmarks')\n .forEach((bookmark: string) => {\n // If the bookmark is a folder, add it as a bookmark\n if (bookmark.endsWith('/')) {\n addBookmark(bookmark)\n return\n }\n const category = bookmark.split('/').slice(0, -1).join('/')\n const displayName = bookmark.split('/').pop()\n const nodeDef = nodeDefStore.nodeDefsByDisplayName[displayName]\n\n if (!nodeDef) return\n addBookmark(`${category === '' ? '' : category + '/'}${nodeDef.name}`)\n })\n settingStore.set('Comfy.NodeLibrary.Bookmarks', [])\n }\n\n const bookmarks = computed<string[]>(() =>\n settingStore.get(BOOKMARK_SETTING_ID)\n )\n\n const bookmarksSet = computed<Set<string>>(() => new Set(bookmarks.value))\n\n const bookmarkedRoot = computed<TreeNode>(() =>\n buildBookmarkTree(bookmarks.value)\n )\n\n // For a node in custom bookmark folders, check if its nodePath is in bookmarksSet\n // For a node in the nodeDefStore, check if its name is bookmarked at top level\n const isBookmarked = (node: ComfyNodeDefImpl) =>\n bookmarksSet.value.has(node.nodePath) || bookmarksSet.value.has(node.name)\n\n const toggleBookmark = (node: ComfyNodeDefImpl) => {\n if (isBookmarked(node)) {\n deleteBookmark(node.nodePath)\n // Delete the bookmark at the top level if it exists\n // This is used for clicking the bookmark button in the node library, i.e.\n // the node is inside original/standard node library tree node\n deleteBookmark(node.name)\n } else {\n addBookmark(node.name)\n }\n }\n\n const buildBookmarkTree = (bookmarks: string[]) => {\n const bookmarkNodes = bookmarks\n .map((bookmark: string) => {\n if (bookmark.endsWith('/')) return createDummyFolderNodeDef(bookmark)\n\n const parts = bookmark.split('/')\n const name = parts.pop()\n const category = parts.join('/')\n const srcNodeDef = nodeDefStore.nodeDefsByName[name]\n if (!srcNodeDef) {\n return null\n }\n const nodeDef = _.clone(srcNodeDef)\n nodeDef.category = category\n return nodeDef\n })\n .filter((nodeDef) => nodeDef !== null)\n return buildNodeDefTree(bookmarkNodes)\n }\n\n const addBookmark = (nodePath: string) => {\n settingStore.set(BOOKMARK_SETTING_ID, [...bookmarks.value, nodePath])\n }\n\n const deleteBookmark = (nodePath: string) => {\n settingStore.set(\n BOOKMARK_SETTING_ID,\n bookmarks.value.filter((b: string) => b !== nodePath)\n )\n }\n\n const addNewBookmarkFolder = (parent?: ComfyNodeDefImpl) => {\n const parentPath = parent ? parent.nodePath : ''\n let newFolderPath = parentPath + 'New Folder/'\n let suffix = 1\n while (bookmarks.value.some((b: string) => b.startsWith(newFolderPath))) {\n newFolderPath = parentPath + `New Folder ${suffix}/`\n suffix++\n }\n addBookmark(newFolderPath)\n return newFolderPath\n }\n\n const renameBookmarkFolder = (\n folderNode: ComfyNodeDefImpl,\n newName: string\n ) => {\n if (!folderNode.isDummyFolder) {\n throw new Error('Cannot rename non-folder node')\n }\n\n const newNodePath =\n folderNode.category.split('/').slice(0, -1).concat(newName).join('/') +\n '/'\n\n if (newNodePath === folderNode.nodePath) {\n return\n }\n\n if (bookmarks.value.some((b: string) => b.startsWith(newNodePath))) {\n throw new Error(`Folder name \"${newNodePath}\" already exists`)\n }\n\n settingStore.set(\n BOOKMARK_SETTING_ID,\n bookmarks.value.map((b: string) =>\n b.startsWith(folderNode.nodePath)\n ? b.replace(folderNode.nodePath, newNodePath)\n : b\n )\n )\n renameBookmarkCustomization(folderNode.nodePath, newNodePath)\n }\n\n const deleteBookmarkFolder = (folderNode: ComfyNodeDefImpl) => {\n if (!folderNode.isDummyFolder) {\n throw new Error('Cannot delete non-folder node')\n }\n settingStore.set(\n BOOKMARK_SETTING_ID,\n bookmarks.value.filter(\n (b: string) =>\n b !== folderNode.nodePath && !b.startsWith(folderNode.nodePath)\n )\n )\n deleteBookmarkCustomization(folderNode.nodePath)\n }\n\n const bookmarksCustomization = computed<\n Record<string, BookmarkCustomization>\n >(() => settingStore.get('Comfy.NodeLibrary.BookmarksCustomization'))\n\n const updateBookmarkCustomization = (\n nodePath: string,\n customization: BookmarkCustomization\n ) => {\n const currentCustomization = bookmarksCustomization.value[nodePath] || {}\n const newCustomization = { ...currentCustomization, ...customization }\n\n // Remove attributes that are set to default values\n if (newCustomization.icon === defaultBookmarkIcon) {\n delete newCustomization.icon\n }\n if (newCustomization.color === defaultBookmarkColor) {\n delete newCustomization.color\n }\n\n // If the customization is empty, remove it entirely\n if (Object.keys(newCustomization).length === 0) {\n deleteBookmarkCustomization(nodePath)\n } else {\n settingStore.set('Comfy.NodeLibrary.BookmarksCustomization', {\n ...bookmarksCustomization.value,\n [nodePath]: newCustomization\n })\n }\n }\n\n const deleteBookmarkCustomization = (nodePath: string) => {\n settingStore.set('Comfy.NodeLibrary.BookmarksCustomization', {\n ...bookmarksCustomization.value,\n [nodePath]: undefined\n })\n }\n\n const renameBookmarkCustomization = (\n oldNodePath: string,\n newNodePath: string\n ) => {\n const updatedCustomization = { ...bookmarksCustomization.value }\n if (updatedCustomization[oldNodePath]) {\n updatedCustomization[newNodePath] = updatedCustomization[oldNodePath]\n delete updatedCustomization[oldNodePath]\n }\n settingStore.set(\n 'Comfy.NodeLibrary.BookmarksCustomization',\n updatedCustomization\n )\n }\n\n const defaultBookmarkIcon = 'pi-bookmark-fill'\n const defaultBookmarkColor = '#a1a1aa'\n\n return {\n bookmarks,\n bookmarkedRoot,\n isBookmarked,\n toggleBookmark,\n addBookmark,\n addNewBookmarkFolder,\n renameBookmarkFolder,\n deleteBookmarkFolder,\n\n bookmarksCustomization,\n updateBookmarkCustomization,\n deleteBookmarkCustomization,\n renameBookmarkCustomization,\n defaultBookmarkIcon,\n defaultBookmarkColor,\n\n migrateLegacyBookmarks\n }\n})\n","<template>\n <div\n class=\"option-container flex justify-between items-center px-2 py-0 cursor-pointer overflow-hidden w-full\"\n >\n <div class=\"option-display-name font-semibold flex flex-col\">\n <div>\n <span v-if=\"isBookmarked\">\n <i class=\"pi pi-bookmark-fill text-sm mr-1\"></i>\n </span>\n <span\n v-html=\"highlightQuery(nodeDef.display_name, currentQuery)\"\n ></span>\n <span> </span>\n <Tag v-if=\"showIdName\" severity=\"secondary\">\n <span v-html=\"highlightQuery(nodeDef.name, currentQuery)\"></span>\n </Tag>\n </div>\n <div\n v-if=\"showCategory\"\n class=\"option-category font-light text-sm text-gray-400 overflow-hidden text-ellipsis whitespace-nowrap\"\n >\n {{ nodeDef.category.replaceAll('/', ' > ') }}\n </div>\n </div>\n <div class=\"option-badges\">\n <Tag\n v-if=\"nodeDef.experimental\"\n :value=\"$t('experimental')\"\n severity=\"primary\"\n />\n <Tag\n v-if=\"nodeDef.deprecated\"\n :value=\"$t('deprecated')\"\n severity=\"danger\"\n />\n <Tag\n v-if=\"showNodeFrequency && nodeFrequency > 0\"\n :value=\"formatNumberWithSuffix(nodeFrequency, { roundToInt: true })\"\n severity=\"secondary\"\n />\n <Chip\n v-if=\"nodeDef.nodeSource.type !== NodeSourceType.Unknown\"\n class=\"text-sm font-light\"\n >\n {{ nodeDef.nodeSource.displayText }}\n </Chip>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport Tag from 'primevue/tag'\nimport Chip from 'primevue/chip'\nimport { NodeSourceType } from '@/types/nodeSource'\nimport { ComfyNodeDefImpl, useNodeFrequencyStore } from '@/stores/nodeDefStore'\nimport { highlightQuery } from '@/utils/formatUtil'\nimport { computed } from 'vue'\nimport { useSettingStore } from '@/stores/settingStore'\nimport { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'\nimport { formatNumberWithSuffix } from '@/utils/formatUtil'\n\nconst settingStore = useSettingStore()\nconst showCategory = computed(() =>\n settingStore.get('Comfy.NodeSearchBoxImpl.ShowCategory')\n)\nconst showIdName = computed(() =>\n settingStore.get('Comfy.NodeSearchBoxImpl.ShowIdName')\n)\nconst showNodeFrequency = computed(() =>\n settingStore.get('Comfy.NodeSearchBoxImpl.ShowNodeFrequency')\n)\nconst nodeFrequencyStore = useNodeFrequencyStore()\nconst nodeFrequency = computed(() =>\n nodeFrequencyStore.getNodeFrequency(props.nodeDef)\n)\n\nconst nodeBookmarkStore = useNodeBookmarkStore()\nconst isBookmarked = computed(() =>\n nodeBookmarkStore.isBookmarked(props.nodeDef)\n)\n\nconst props = defineProps<{\n nodeDef: ComfyNodeDefImpl\n currentQuery: string\n}>()\n</script>\n\n<style scoped>\n:deep(.highlight) {\n background-color: var(--p-primary-color);\n color: var(--p-primary-contrast-color);\n font-weight: bold;\n border-radius: 0.25rem;\n padding: 0rem 0.125rem;\n margin: -0.125rem 0.125rem;\n}\n</style>\n","<!-- Reference:\nhttps://github.com/Nuked88/ComfyUI-N-Sidebar/blob/7ae7da4a9761009fb6629bc04c683087a3e168db/app/js/functions/sb_fn.js#L149\n-->\n\n<template>\n <div class=\"_sb_node_preview\">\n <div class=\"_sb_table\">\n <div\n class=\"node_header\"\n :style=\"{\n backgroundColor: litegraphColors.NODE_DEFAULT_COLOR,\n color: litegraphColors.NODE_TITLE_COLOR\n }\"\n >\n <div class=\"_sb_dot headdot\"></div>\n {{ nodeDef.display_name }}\n </div>\n <div class=\"_sb_preview_badge\">PREVIEW</div>\n\n <!-- Node slot I/O -->\n <div\n v-for=\"[slotInput, slotOutput] in _.zip(slotInputDefs, allOutputDefs)\"\n class=\"_sb_row slot_row\"\n :key=\"(slotInput?.name || '') + (slotOutput?.index.toString() || '')\"\n >\n <div class=\"_sb_col\">\n <div v-if=\"slotInput\" :class=\"['_sb_dot', slotInput.type]\"></div>\n </div>\n <div class=\"_sb_col\">{{ slotInput ? slotInput.name : '' }}</div>\n <div class=\"_sb_col middle-column\"></div>\n <div\n class=\"_sb_col _sb_inherit\"\n :style=\"{\n color: litegraphColors.NODE_TEXT_COLOR\n }\"\n >\n {{ slotOutput ? slotOutput.name : '' }}\n </div>\n <div class=\"_sb_col\">\n <div v-if=\"slotOutput\" :class=\"['_sb_dot', slotOutput.type]\"></div>\n </div>\n </div>\n\n <!-- Node widget inputs -->\n <div\n v-for=\"widgetInput in widgetInputDefs\"\n class=\"_sb_row _long_field\"\n :key=\"widgetInput.name\"\n >\n <div class=\"_sb_col _sb_arrow\">◀</div>\n <div\n class=\"_sb_col\"\n :style=\"{\n color: litegraphColors.WIDGET_SECONDARY_TEXT_COLOR\n }\"\n >\n {{ widgetInput.name }}\n </div>\n <div class=\"_sb_col middle-column\"></div>\n <div\n class=\"_sb_col _sb_inherit\"\n :style=\"{ color: litegraphColors.WIDGET_TEXT_COLOR }\"\n >\n {{ truncateDefaultValue(widgetInput.default) }}\n </div>\n <div class=\"_sb_col _sb_arrow\">▶</div>\n </div>\n </div>\n <div\n class=\"_sb_description\"\n v-if=\"nodeDef.description\"\n :style=\"{\n color: litegraphColors.WIDGET_SECONDARY_TEXT_COLOR,\n backgroundColor: litegraphColors.WIDGET_BGCOLOR\n }\"\n >\n {{ nodeDef.description }}\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ComfyNodeDefImpl, useNodeDefStore } from '@/stores/nodeDefStore'\nimport {\n getColorPalette,\n defaultColorPalette\n} from '@/extensions/core/colorPalette'\nimport _ from 'lodash'\n\nconst props = defineProps({\n nodeDef: {\n type: ComfyNodeDefImpl,\n required: true\n }\n})\n\n// Node preview currently is recreated every time something is hovered.\n// So not reactive to the color palette changes after setup is fine.\n// If later we want NodePreview to be shown more persistently, then we should\n// make the getColorPalette() call reactive.\nconst colors = getColorPalette()?.colors?.litegraph_base\nconst litegraphColors = colors ?? defaultColorPalette.colors.litegraph_base\n\nconst nodeDefStore = useNodeDefStore()\n\nconst nodeDef = props.nodeDef\nconst allInputDefs = nodeDef.input.all\nconst allOutputDefs = nodeDef.output.all\nconst slotInputDefs = allInputDefs.filter(\n (input) => !nodeDefStore.inputIsWidget(input)\n)\nconst widgetInputDefs = allInputDefs.filter((input) =>\n nodeDefStore.inputIsWidget(input)\n)\nconst truncateDefaultValue = (value: any, charLimit: number = 32): string => {\n let stringValue: string\n\n if (typeof value === 'object' && value !== null) {\n stringValue = JSON.stringify(value)\n } else if (Array.isArray(value)) {\n stringValue = JSON.stringify(value)\n } else if (typeof value === 'string') {\n stringValue = value\n } else {\n stringValue = String(value)\n }\n\n return _.truncate(stringValue, { length: charLimit })\n}\n</script>\n\n<style scoped>\n.slot_row {\n padding: 2px;\n}\n\n/* Original N-Sidebar styles */\n._sb_dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background-color: grey;\n}\n\n.node_header {\n line-height: 1;\n padding: 8px 13px 7px;\n margin-bottom: 5px;\n font-size: 15px;\n text-wrap: nowrap;\n overflow: hidden;\n display: flex;\n align-items: center;\n}\n\n.headdot {\n width: 10px;\n height: 10px;\n float: inline-start;\n margin-right: 8px;\n}\n\n.IMAGE {\n background-color: #64b5f6;\n}\n\n.VAE {\n background-color: #ff6e6e;\n}\n\n.LATENT {\n background-color: #ff9cf9;\n}\n\n.MASK {\n background-color: #81c784;\n}\n\n.CONDITIONING {\n background-color: #ffa931;\n}\n\n.CLIP {\n background-color: #ffd500;\n}\n\n.MODEL {\n background-color: #b39ddb;\n}\n\n.CONTROL_NET {\n background-color: #a5d6a7;\n}\n\n._sb_node_preview {\n background-color: var(--comfy-menu-bg);\n font-family: 'Open Sans', sans-serif;\n font-size: small;\n color: var(--descrip-text);\n border: 1px solid var(--descrip-text);\n min-width: 300px;\n width: min-content;\n height: fit-content;\n z-index: 9999;\n border-radius: 12px;\n overflow: hidden;\n font-size: 12px;\n padding-bottom: 10px;\n}\n\n._sb_node_preview ._sb_description {\n margin: 10px;\n padding: 6px;\n background: var(--border-color);\n border-radius: 5px;\n font-style: italic;\n font-weight: 500;\n font-size: 0.9rem;\n word-break: break-word;\n}\n\n._sb_table {\n display: grid;\n\n grid-column-gap: 10px;\n /* Spazio tra le colonne */\n width: 100%;\n /* Imposta la larghezza della tabella al 100% del contenitore */\n}\n\n._sb_row {\n display: grid;\n grid-template-columns: 10px 1fr 1fr 1fr 10px;\n grid-column-gap: 10px;\n align-items: center;\n padding-left: 9px;\n padding-right: 9px;\n}\n\n._sb_row_string {\n grid-template-columns: 10px 1fr 1fr 10fr 1fr;\n}\n\n._sb_col {\n border: 0px solid #000;\n display: flex;\n align-items: flex-end;\n flex-direction: row-reverse;\n flex-wrap: nowrap;\n align-content: flex-start;\n justify-content: flex-end;\n}\n\n._sb_inherit {\n display: inherit;\n}\n\n._long_field {\n background: var(--bg-color);\n border: 2px solid var(--border-color);\n margin: 5px 5px 0 5px;\n border-radius: 10px;\n line-height: 1.7;\n text-wrap: nowrap;\n}\n\n._sb_arrow {\n color: var(--fg-color);\n}\n\n._sb_preview_badge {\n text-align: center;\n background: var(--comfy-input-bg);\n font-weight: bold;\n color: var(--error-text);\n}\n</style>\n","<template>\n <div class=\"comfy-vue-node-search-container\">\n <div class=\"comfy-vue-node-preview-container\" v-if=\"enableNodePreview\">\n <NodePreview\n :nodeDef=\"hoveredSuggestion\"\n :key=\"hoveredSuggestion?.name || ''\"\n v-if=\"hoveredSuggestion\"\n />\n </div>\n\n <Button\n icon=\"pi pi-filter\"\n severity=\"secondary\"\n class=\"_filter-button\"\n @click=\"nodeSearchFilterVisible = true\"\n />\n <Dialog v-model:visible=\"nodeSearchFilterVisible\" class=\"_dialog\">\n <template #header>\n <h3>Add node filter condition</h3>\n </template>\n <div class=\"_dialog-body\">\n <NodeSearchFilter @addFilter=\"onAddFilter\"></NodeSearchFilter>\n </div>\n </Dialog>\n\n <AutoCompletePlus\n :model-value=\"props.filters\"\n class=\"comfy-vue-node-search-box\"\n scrollHeight=\"40vh\"\n :placeholder=\"placeholder\"\n :input-id=\"inputId\"\n append-to=\"self\"\n :suggestions=\"suggestions\"\n :min-length=\"0\"\n :delay=\"100\"\n :loading=\"!nodeFrequencyStore.isLoaded\"\n @complete=\"search($event.query)\"\n @option-select=\"emit('addNode', $event.value)\"\n @focused-option-changed=\"setHoverSuggestion($event)\"\n complete-on-focus\n auto-option-focus\n force-selection\n multiple\n :optionLabel=\"'display_name'\"\n >\n <template v-slot:option=\"{ option }\">\n <NodeSearchItem :nodeDef=\"option\" :currentQuery=\"currentQuery\" />\n </template>\n <!-- FilterAndValue -->\n <template v-slot:chip=\"{ value }\">\n <SearchFilterChip\n @remove=\"onRemoveFilter($event, value)\"\n :text=\"value[1]\"\n :badge=\"value[0].invokeSequence.toUpperCase()\"\n :badge-class=\"value[0].invokeSequence + '-badge'\"\n />\n </template>\n </AutoCompletePlus>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, onMounted, ref } from 'vue'\nimport AutoCompletePlus from '@/components/primevueOverride/AutoCompletePlus.vue'\nimport Dialog from 'primevue/dialog'\nimport Button from 'primevue/button'\nimport NodeSearchFilter from '@/components/searchbox/NodeSearchFilter.vue'\nimport NodeSearchItem from '@/components/searchbox/NodeSearchItem.vue'\nimport { type FilterAndValue } from '@/services/nodeSearchService'\nimport NodePreview from '@/components/node/NodePreview.vue'\nimport {\n ComfyNodeDefImpl,\n useNodeDefStore,\n useNodeFrequencyStore\n} from '@/stores/nodeDefStore'\nimport { useSettingStore } from '@/stores/settingStore'\nimport { useI18n } from 'vue-i18n'\nimport SearchFilterChip from '../common/SearchFilterChip.vue'\n\nconst settingStore = useSettingStore()\nconst { t } = useI18n()\n\nconst enableNodePreview = computed(() =>\n settingStore.get('Comfy.NodeSearchBoxImpl.NodePreview')\n)\n\nconst props = withDefaults(\n defineProps<{\n filters: FilterAndValue[]\n searchLimit?: number\n }>(),\n {\n searchLimit: 64\n }\n)\n\nconst nodeSearchFilterVisible = ref(false)\nconst inputId = `comfy-vue-node-search-box-input-${Math.random()}`\nconst suggestions = ref<ComfyNodeDefImpl[]>([])\nconst hoveredSuggestion = ref<ComfyNodeDefImpl | null>(null)\nconst currentQuery = ref('')\nconst placeholder = computed(() => {\n return props.filters.length === 0 ? t('searchNodes') + '...' : ''\n})\n\nconst nodeDefStore = useNodeDefStore()\nconst nodeFrequencyStore = useNodeFrequencyStore()\nconst search = (query: string) => {\n const queryIsEmpty = query === '' && props.filters.length === 0\n currentQuery.value = query\n suggestions.value = queryIsEmpty\n ? nodeFrequencyStore.topNodeDefs\n : [\n ...nodeDefStore.nodeSearchService.searchNode(query, props.filters, {\n limit: props.searchLimit\n })\n ]\n}\n\nconst emit = defineEmits(['addFilter', 'removeFilter', 'addNode'])\n\nconst reFocusInput = () => {\n const inputElement = document.getElementById(inputId) as HTMLInputElement\n if (inputElement) {\n inputElement.blur()\n inputElement.focus()\n }\n}\n\nonMounted(reFocusInput)\nconst onAddFilter = (filterAndValue: FilterAndValue) => {\n nodeSearchFilterVisible.value = false\n emit('addFilter', filterAndValue)\n reFocusInput()\n}\nconst onRemoveFilter = (event: Event, filterAndValue: FilterAndValue) => {\n event.stopPropagation()\n event.preventDefault()\n emit('removeFilter', filterAndValue)\n reFocusInput()\n}\nconst setHoverSuggestion = (index: number) => {\n if (index === -1) {\n hoveredSuggestion.value = null\n return\n }\n const value = suggestions.value[index]\n hoveredSuggestion.value = value\n}\n</script>\n\n<style scoped>\n.comfy-vue-node-search-container {\n @apply flex justify-center items-center w-full min-w-96;\n}\n\n.comfy-vue-node-search-container * {\n pointer-events: auto;\n}\n\n.comfy-vue-node-preview-container {\n position: absolute;\n left: -350px;\n top: 50px;\n}\n\n.comfy-vue-node-search-box {\n @apply z-10 flex-grow;\n}\n\n._filter-button {\n z-index: 10;\n}\n\n._dialog {\n @apply min-w-96;\n}\n</style>\n","import type {\n ConnectingLink,\n LGraphNode,\n Vector2,\n INodeInputSlot,\n INodeOutputSlot,\n INodeSlot\n} from '@comfyorg/litegraph'\nimport type { ISlotType } from '@comfyorg/litegraph'\nimport { LiteGraph } from '@comfyorg/litegraph'\n\nexport class ConnectingLinkImpl implements ConnectingLink {\n node: LGraphNode\n slot: number\n input: INodeInputSlot | null\n output: INodeOutputSlot | null\n pos: Vector2\n\n constructor(\n node: LGraphNode,\n slot: number,\n input: INodeInputSlot | null,\n output: INodeOutputSlot | null,\n pos: Vector2\n ) {\n this.node = node\n this.slot = slot\n this.input = input\n this.output = output\n this.pos = pos\n }\n\n static createFromPlainObject(obj: ConnectingLink) {\n return new ConnectingLinkImpl(\n obj.node,\n obj.slot,\n obj.input,\n obj.output,\n obj.pos\n )\n }\n\n get type(): ISlotType | null {\n const result = this.input ? this.input.type : this.output.type\n return result === -1 ? null : result\n }\n\n /**\n * Which slot type is release and need to be reconnected.\n * - 'output' means we need a new node's outputs slot to connect with this link\n */\n get releaseSlotType(): 'input' | 'output' {\n return this.output ? 'input' : 'output'\n }\n\n connectTo(newNode: LGraphNode) {\n const newNodeSlots =\n this.releaseSlotType === 'output' ? newNode.outputs : newNode.inputs\n if (!newNodeSlots) return\n\n const newNodeSlot = newNodeSlots.findIndex((slot: INodeSlot) =>\n LiteGraph.isValidConnection(slot.type, this.type)\n )\n\n if (newNodeSlot === -1) {\n console.warn(\n `Could not find slot with type ${this.type} on node ${newNode.title}. This should never happen`\n )\n return\n }\n\n if (this.releaseSlotType === 'input') {\n this.node.connect(this.slot, newNode, newNodeSlot)\n } else {\n newNode.connect(newNodeSlot, this.node, this.slot)\n }\n }\n}\n\nexport type CanvasDragAndDropData<T = any> = {\n type: 'add-node'\n data: T\n}\n","<template>\n <div>\n <Dialog\n v-model:visible=\"visible\"\n modal\n :dismissable-mask=\"dismissable\"\n @hide=\"clearFilters\"\n :pt=\"{\n root: {\n class: 'invisible-dialog-root',\n role: 'search'\n },\n mask: { class: 'node-search-box-dialog-mask' },\n transition: {\n enterFromClass: 'opacity-0 scale-75',\n // 100ms is the duration of the transition in the dialog component\n enterActiveClass: 'transition-all duration-100 ease-out',\n leaveActiveClass: 'transition-all duration-100 ease-in',\n leaveToClass: 'opacity-0 scale-75'\n }\n }\"\n >\n <template #container>\n <NodeSearchBox\n :filters=\"nodeFilters\"\n @add-filter=\"addFilter\"\n @remove-filter=\"removeFilter\"\n @add-node=\"addNode\"\n />\n </template>\n </Dialog>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { app } from '@/scripts/app'\nimport { computed, onMounted, onUnmounted, ref, toRaw, watchEffect } from 'vue'\nimport NodeSearchBox from './NodeSearchBox.vue'\nimport Dialog from 'primevue/dialog'\nimport { ConnectingLink } from '@comfyorg/litegraph'\nimport { FilterAndValue } from '@/services/nodeSearchService'\nimport { ComfyNodeDefImpl, useNodeDefStore } from '@/stores/nodeDefStore'\nimport { ConnectingLinkImpl } from '@/types/litegraphTypes'\nimport { useSettingStore } from '@/stores/settingStore'\nimport { LinkReleaseTriggerAction } from '@/types/searchBoxTypes'\nimport { useCanvasStore } from '@/stores/graphStore'\nimport { LiteGraphCanvasEvent } from '@comfyorg/litegraph'\nimport { LiteGraph } from '@comfyorg/litegraph'\n\nconst settingStore = useSettingStore()\n\nconst visible = ref(false)\nconst dismissable = ref(true)\nconst triggerEvent = ref<LiteGraphCanvasEvent | null>(null)\nconst getNewNodeLocation = (): [number, number] => {\n if (triggerEvent.value === null) {\n return [100, 100]\n }\n\n const originalEvent = triggerEvent.value.detail.originalEvent\n // @ts-expect-error LiteGraph types are not typed\n return [originalEvent.canvasX, originalEvent.canvasY]\n}\nconst nodeFilters = ref<FilterAndValue[]>([])\nconst addFilter = (filter: FilterAndValue) => {\n nodeFilters.value.push(filter)\n}\nconst removeFilter = (filter: FilterAndValue) => {\n nodeFilters.value = nodeFilters.value.filter(\n (f) => toRaw(f) !== toRaw(filter)\n )\n}\nconst clearFilters = () => {\n nodeFilters.value = []\n}\nconst closeDialog = () => {\n visible.value = false\n}\n\nconst addNode = (nodeDef: ComfyNodeDefImpl) => {\n const node = app.addNodeOnGraph(nodeDef, { pos: getNewNodeLocation() })\n\n const eventDetail = triggerEvent.value.detail\n if (eventDetail.subType === 'empty-release') {\n eventDetail.linkReleaseContext.links.forEach((link: ConnectingLink) => {\n ConnectingLinkImpl.createFromPlainObject(link).connectTo(node)\n })\n }\n\n // TODO: This is not robust timing-wise.\n // PrimeVue complains about the dialog being closed before the event selecting\n // item is fully processed.\n window.setTimeout(() => {\n closeDialog()\n }, 100)\n}\n\nconst newSearchBoxEnabled = computed(\n () => settingStore.get('Comfy.NodeSearchBoxImpl') === 'default'\n)\nconst showSearchBox = (e: LiteGraphCanvasEvent) => {\n if (newSearchBoxEnabled.value) {\n if (e.detail.originalEvent?.pointerType === 'touch') {\n setTimeout(() => {\n showNewSearchBox(e)\n }, 128)\n } else {\n showNewSearchBox(e)\n }\n } else {\n canvasStore.canvas.showSearchBox(e.detail.originalEvent as MouseEvent)\n }\n}\n\nconst nodeDefStore = useNodeDefStore()\nconst showNewSearchBox = (e: LiteGraphCanvasEvent) => {\n if (e.detail.linkReleaseContext) {\n const links = e.detail.linkReleaseContext.links\n if (links.length === 0) {\n console.warn('Empty release with no links! This should never happen')\n return\n }\n const firstLink = ConnectingLinkImpl.createFromPlainObject(links[0])\n const filter = nodeDefStore.nodeSearchService.getFilterById(\n firstLink.releaseSlotType\n )\n const dataType = firstLink.type\n addFilter([filter, dataType])\n }\n\n visible.value = true\n triggerEvent.value = e\n\n // Prevent the dialog from being dismissed immediately\n dismissable.value = false\n setTimeout(() => {\n dismissable.value = true\n }, 300)\n}\n\nconst showContextMenu = (e: LiteGraphCanvasEvent) => {\n const links = e.detail.linkReleaseContext.links\n if (links.length === 0) {\n console.warn('Empty release with no links! This should never happen')\n return\n }\n\n const firstLink = ConnectingLinkImpl.createFromPlainObject(links[0])\n const mouseEvent = e.detail.originalEvent as MouseEvent\n const commonOptions = {\n e: mouseEvent,\n allow_searchbox: true,\n showSearchBox: () => showSearchBox(e)\n }\n const connectionOptions = firstLink.output\n ? { nodeFrom: firstLink.node, slotFrom: firstLink.output }\n : { nodeTo: firstLink.node, slotTo: firstLink.input }\n canvasStore.canvas.showConnectionMenu({\n ...connectionOptions,\n ...commonOptions\n })\n}\n\n// Disable litegraph's default behavior of release link and search box.\nconst canvasStore = useCanvasStore()\nwatchEffect(() => {\n if (canvasStore.canvas) {\n LiteGraph.release_link_on_empty_shows_menu = false\n canvasStore.canvas.allow_searchbox = false\n }\n})\n\nconst canvasEventHandler = (e: LiteGraphCanvasEvent) => {\n if (e.detail.subType === 'empty-double-click') {\n showSearchBox(e)\n } else if (e.detail.subType === 'empty-release') {\n handleCanvasEmptyRelease(e)\n } else if (e.detail.subType === 'group-double-click') {\n const group = e.detail.group\n const [x, y] = group.pos\n // @ts-expect-error LiteGraphCanvasEvent is not typed\n const relativeY = e.detail.originalEvent.canvasY - y\n // Show search box if the click is NOT on the title bar\n if (relativeY > group.titleHeight) {\n showSearchBox(e)\n }\n }\n}\n\nconst linkReleaseAction = computed(() => {\n return settingStore.get('Comfy.LinkRelease.Action')\n})\n\nconst linkReleaseActionShift = computed(() => {\n return settingStore.get('Comfy.LinkRelease.ActionShift')\n})\n\nconst handleCanvasEmptyRelease = (e: LiteGraphCanvasEvent) => {\n const originalEvent = e.detail.originalEvent as MouseEvent\n const shiftPressed = originalEvent.shiftKey\n\n const action = shiftPressed\n ? linkReleaseActionShift.value\n : linkReleaseAction.value\n switch (action) {\n case LinkReleaseTriggerAction.SEARCH_BOX:\n showSearchBox(e)\n break\n case LinkReleaseTriggerAction.CONTEXT_MENU:\n showContextMenu(e)\n break\n case LinkReleaseTriggerAction.NO_ACTION:\n default:\n break\n }\n}\n\nonMounted(() => {\n document.addEventListener('litegraph:canvas', canvasEventHandler)\n})\n\nonUnmounted(() => {\n document.removeEventListener('litegraph:canvas', canvasEventHandler)\n})\n</script>\n\n<style>\n.invisible-dialog-root {\n width: 60%;\n min-width: 24rem;\n max-width: 48rem;\n border: 0 !important;\n background-color: transparent !important;\n margin-top: 25vh;\n margin-left: 400px;\n}\n@media all and (max-width: 768px) {\n .invisible-dialog-root {\n margin-left: 0px;\n }\n}\n\n.node-search-box-dialog-mask {\n align-items: flex-start !important;\n}\n</style>\n","<template>\n <div\n v-if=\"tooltipText\"\n ref=\"tooltipRef\"\n class=\"node-tooltip\"\n :style=\"{ left, top }\"\n >\n {{ tooltipText }}\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { nextTick, ref, onBeforeUnmount, watch } from 'vue'\nimport { LiteGraph } from '@comfyorg/litegraph'\nimport { app as comfyApp } from '@/scripts/app'\nimport { useNodeDefStore } from '@/stores/nodeDefStore'\nimport { useSettingStore } from '@/stores/settingStore'\n\nlet idleTimeout: number\nconst nodeDefStore = useNodeDefStore()\nconst settingStore = useSettingStore()\nconst tooltipRef = ref<HTMLDivElement>()\nconst tooltipText = ref('')\nconst left = ref<string>()\nconst top = ref<string>()\n\nconst getHoveredWidget = () => {\n const node = comfyApp.canvas.node_over\n if (!node.widgets) return\n\n const graphPos = comfyApp.canvas.graph_mouse\n const x = graphPos[0] - node.pos[0]\n const y = graphPos[1] - node.pos[1]\n\n for (const w of node.widgets) {\n let widgetWidth: number, widgetHeight: number\n if (w.computeSize) {\n ;[widgetWidth, widgetHeight] = w.computeSize(node.size[0])\n } else {\n widgetWidth = (w as { width?: number }).width || node.size[0]\n widgetHeight = LiteGraph.NODE_WIDGET_HEIGHT\n }\n\n if (\n w.last_y !== undefined &&\n x >= 6 &&\n x <= widgetWidth - 12 &&\n y >= w.last_y &&\n y <= w.last_y + widgetHeight\n ) {\n return w\n }\n }\n}\n\nconst hideTooltip = () => (tooltipText.value = null)\n\nconst showTooltip = async (tooltip: string | null | undefined) => {\n if (!tooltip) return\n\n left.value = comfyApp.canvas.mouse[0] + 'px'\n top.value = comfyApp.canvas.mouse[1] + 'px'\n tooltipText.value = tooltip\n\n await nextTick()\n\n const rect = tooltipRef.value.getBoundingClientRect()\n if (rect.right > window.innerWidth) {\n left.value = comfyApp.canvas.mouse[0] - rect.width + 'px'\n }\n\n if (rect.top < 0) {\n top.value = comfyApp.canvas.mouse[1] + rect.height + 'px'\n }\n}\n\nconst onIdle = () => {\n const { canvas } = comfyApp\n const node = canvas.node_over\n if (!node) return\n\n const ctor = node.constructor as { title_mode?: 0 | 1 | 2 | 3 }\n const nodeDef = nodeDefStore.nodeDefsByName[node.type]\n\n if (\n ctor.title_mode !== LiteGraph.NO_TITLE &&\n canvas.graph_mouse[1] < node.pos[1] // If we are over a node, but not within the node then we are on its title\n ) {\n return showTooltip(nodeDef.description)\n }\n\n if (node.flags?.collapsed) return\n\n const inputSlot = canvas.isOverNodeInput(\n node,\n canvas.graph_mouse[0],\n canvas.graph_mouse[1],\n [0, 0]\n )\n if (inputSlot !== -1) {\n const inputName = node.inputs[inputSlot].name\n return showTooltip(nodeDef.input.getInput(inputName)?.tooltip)\n }\n\n const outputSlot = canvas.isOverNodeOutput(\n node,\n canvas.graph_mouse[0],\n canvas.graph_mouse[1],\n [0, 0]\n )\n if (outputSlot !== -1) {\n return showTooltip(nodeDef.output.all?.[outputSlot]?.tooltip)\n }\n\n const widget = getHoveredWidget()\n // Dont show for DOM widgets, these use native browser tooltips as we dont get proper mouse events on these\n if (widget && !widget.element) {\n return showTooltip(\n widget.tooltip ?? nodeDef.input.getInput(widget.name)?.tooltip\n )\n }\n}\n\nconst onMouseMove = (e: MouseEvent) => {\n hideTooltip()\n clearTimeout(idleTimeout)\n\n if ((e.target as Node).nodeName !== 'CANVAS') return\n idleTimeout = window.setTimeout(onIdle, 500)\n}\n\nwatch(\n () => settingStore.get('Comfy.EnableTooltips'),\n (enabled) => {\n if (enabled) {\n window.addEventListener('mousemove', onMouseMove)\n window.addEventListener('click', hideTooltip)\n } else {\n window.removeEventListener('mousemove', onMouseMove)\n window.removeEventListener('click', hideTooltip)\n }\n },\n { immediate: true }\n)\n\nonBeforeUnmount(() => {\n window.removeEventListener('mousemove', onMouseMove)\n window.removeEventListener('click', hideTooltip)\n})\n</script>\n\n<style lang=\"css\" scoped>\n.node-tooltip {\n background: var(--comfy-input-bg);\n border-radius: 5px;\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);\n color: var(--input-text);\n font-family: sans-serif;\n left: 0;\n max-width: 30vw;\n padding: 4px 8px;\n position: absolute;\n top: 0;\n transform: translate(5px, calc(-100% - 5px));\n white-space: pre-wrap;\n z-index: 99999;\n}\n</style>\n","function _arrayWithHoles(r) {\n if (Array.isArray(r)) return r;\n}\nexport { _arrayWithHoles as default };","function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nexport { _iterableToArrayLimit as default };","function _arrayLikeToArray(r, a) {\n (null == a || a > r.length) && (a = r.length);\n for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n return n;\n}\nexport { _arrayLikeToArray as default };","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nfunction _unsupportedIterableToArray(r, a) {\n if (r) {\n if (\"string\" == typeof r) return arrayLikeToArray(r, a);\n var t = {}.toString.call(r).slice(8, -1);\n return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;\n }\n}\nexport { _unsupportedIterableToArray as default };","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _nonIterableRest as default };","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nfunction _slicedToArray(r, e) {\n return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();\n}\nexport { _slicedToArray as default };","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.bind = void 0;\nfunction bind(target, _a) {\n var type = _a.type, listener = _a.listener, options = _a.options;\n target.addEventListener(type, listener, options);\n return function unbind() {\n target.removeEventListener(type, listener, options);\n };\n}\nexports.bind = bind;\n","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.bindAll = void 0;\nvar bind_1 = require(\"./bind\");\nfunction toOptions(value) {\n if (typeof value === 'undefined') {\n return undefined;\n }\n if (typeof value === 'boolean') {\n return {\n capture: value,\n };\n }\n return value;\n}\nfunction getBinding(original, sharedOptions) {\n if (sharedOptions == null) {\n return original;\n }\n var binding = __assign(__assign({}, original), { options: __assign(__assign({}, toOptions(sharedOptions)), toOptions(original.options)) });\n return binding;\n}\nfunction bindAll(target, bindings, sharedOptions) {\n var unbinds = bindings.map(function (original) {\n var binding = getBinding(original, sharedOptions);\n return (0, bind_1.bind)(target, binding);\n });\n return function unbindAll() {\n unbinds.forEach(function (unbind) { return unbind(); });\n };\n}\nexports.bindAll = bindAll;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.bindAll = exports.bind = void 0;\nvar bind_1 = require(\"./bind\");\nObject.defineProperty(exports, \"bind\", { enumerable: true, get: function () { return bind_1.bind; } });\nvar bind_all_1 = require(\"./bind-all\");\nObject.defineProperty(exports, \"bindAll\", { enumerable: true, get: function () { return bind_all_1.bindAll; } });\n","// pulling this into a separate file so adapter(s) that don't\n// need the honey pot can pay as little as possible for it.\nexport var honeyPotDataAttribute = 'data-pdnd-honey-pot';","import { honeyPotDataAttribute } from './honey-pot-data-attribute';\nexport function isHoneyPotElement(target) {\n return target instanceof Element && target.hasAttribute(honeyPotDataAttribute);\n}","import _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport { isHoneyPotElement } from './is-honey-pot-element';\nexport function getElementFromPointWithoutHoneypot(client) {\n // eslint-disable-next-line no-restricted-syntax\n var _document$elementsFro = document.elementsFromPoint(client.x, client.y),\n _document$elementsFro2 = _slicedToArray(_document$elementsFro, 2),\n top = _document$elementsFro2[0],\n second = _document$elementsFro2[1];\n if (!top) {\n return null;\n }\n if (isHoneyPotElement(top)) {\n return second !== null && second !== void 0 ? second : null;\n }\n return top;\n}","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nexport { _typeof as default };","import _typeof from \"./typeof.js\";\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nexport { toPrimitive as default };","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nexport { toPropertyKey as default };","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nexport { _defineProperty as default };","// Maximum possible z-index\n// https://stackoverflow.com/questions/491052/minimum-and-maximum-value-of-z-index\nexport var maxZIndex = 2147483647;","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nimport { bind, bindAll } from 'bind-event-listener';\nimport { maxZIndex } from '../util/max-z-index';\nimport { honeyPotDataAttribute } from './honey-pot-data-attribute';\nvar honeyPotSize = 2;\nvar halfHoneyPotSize = honeyPotSize / 2;\n\n/**\n * `clientX` and `clientY` can be in sub pixels (eg `2.332`)\n * However, browser hitbox testing is commonly do to the closest pixel.\n *\n * → https://issues.chromium.org/issues/40940531\n *\n * To be sure that the honey pot will be over the `client` position,\n * we `.floor()` `clientX` and`clientY` and then make it `2px` in size.\n **/\nfunction floorToClosestPixel(point) {\n return {\n x: Math.floor(point.x),\n y: Math.floor(point.y)\n };\n}\n\n/**\n * We want to make sure the honey pot sits around the users position.\n * This seemed to be the most resilient while testing.\n */\nfunction pullBackByHalfHoneyPotSize(point) {\n return {\n x: point.x - halfHoneyPotSize,\n y: point.y - halfHoneyPotSize\n };\n}\n\n/**\n * Prevent the honey pot from changing the window size.\n * This is super unlikely to occur, but just being safe.\n */\nfunction preventGoingBackwardsOffScreen(point) {\n return {\n x: Math.max(point.x, 0),\n y: Math.max(point.y, 0)\n };\n}\n\n/**\n * Prevent the honey pot from changing the window size.\n * This is super unlikely to occur, but just being safe.\n */\nfunction preventGoingForwardsOffScreen(point) {\n return {\n x: Math.min(point.x, window.innerWidth - honeyPotSize),\n y: Math.min(point.y, window.innerHeight - honeyPotSize)\n };\n}\n\n/**\n * Create a `2x2` `DOMRect` around the `client` position\n */\nfunction getHoneyPotRectFor(_ref) {\n var client = _ref.client;\n var point = preventGoingForwardsOffScreen(preventGoingBackwardsOffScreen(pullBackByHalfHoneyPotSize(floorToClosestPixel(client))));\n\n // When debugging, it is helpful to\n // make this element a bit bigger\n return DOMRect.fromRect({\n x: point.x,\n y: point.y,\n width: honeyPotSize,\n height: honeyPotSize\n });\n}\nfunction getRectStyles(_ref2) {\n var clientRect = _ref2.clientRect;\n return {\n left: \"\".concat(clientRect.left, \"px\"),\n top: \"\".concat(clientRect.top, \"px\"),\n width: \"\".concat(clientRect.width, \"px\"),\n height: \"\".concat(clientRect.height, \"px\")\n };\n}\nfunction isWithin(_ref3) {\n var client = _ref3.client,\n clientRect = _ref3.clientRect;\n return (\n // is within horizontal bounds\n client.x >= clientRect.x && client.x <= clientRect.x + clientRect.width &&\n // is within vertical bounds\n client.y >= clientRect.y && client.y <= clientRect.y + clientRect.height\n );\n}\n/**\n * The honey pot fix is designed to get around a painful bug in all browsers.\n *\n * [Overview](https://www.youtube.com/watch?v=udE9qbFTeQg)\n *\n * **Background**\n *\n * When a drag starts, browsers incorrectly think that the users pointer is\n * still depressed where the drag started. Any element that goes under this position\n * will be entered into, causing `\"mouseenter\"` events and `\":hover\"` styles to be applied.\n *\n * _This is a violation of the spec_\n *\n * > \"From the moment that the user agent is to initiate the drag-and-drop operation,\n * > until the end \tof the drag-and-drop operation, device input events\n * > (e.g. mouse and keyboard events) must be suppressed.\"\n * >\n * > - https://html.spec.whatwg.org/multipage/dnd.html#drag-and-drop-processing-model\n *\n * _Some impacts_\n *\n * - `\":hover\"` styles being applied where they shouldn't (looks messy)\n * - components such as tooltips responding to `\"mouseenter\"` can show during a drag,\n * and on an element the user isn't even over\n *\n * Bug: https://issues.chromium.org/issues/41129937\n *\n * **Honey pot fix**\n *\n * 1. Create an element where the browser thinks the depressed pointer is\n * to absorb the incorrect pointer events\n * 2. Remove that element when it is no longer needed\n */\nfunction mountHoneyPot(_ref4) {\n var initial = _ref4.initial;\n var element = document.createElement('div');\n element.setAttribute(honeyPotDataAttribute, 'true');\n\n // can shift during the drag thanks to Firefox\n var clientRect = getHoneyPotRectFor({\n client: initial\n });\n Object.assign(element.style, _objectSpread(_objectSpread({\n // Setting a background color explicitly to avoid any inherited styles.\n // Looks like this could be `opacity: 0`, but worried that _might_\n // cause the element to be ignored on some platforms.\n // When debugging, set backgroundColor to something like \"red\".\n backgroundColor: 'transparent',\n position: 'fixed',\n // Being explicit to avoid inheriting styles\n padding: 0,\n margin: 0,\n boxSizing: 'border-box'\n }, getRectStyles({\n clientRect: clientRect\n })), {}, {\n // We want this element to absorb pointer events,\n // it's kind of the whole point 😉\n pointerEvents: 'auto',\n // Want to make sure the honey pot is top of everything else.\n // Don't need to worry about native drag previews, as they will\n // have been rendered (and removed) before the honey pot is rendered\n zIndex: maxZIndex\n }));\n document.body.appendChild(element);\n\n /**\n * 🦊 In firefox we can get `\"pointermove\"` events after the drag\n * has started, which is a spec violation.\n * The final `\"pointermove\"` will reveal where the \"depressed\" position\n * is for our honey pot fix.\n */\n var unbindPointerMove = bind(window, {\n type: 'pointermove',\n listener: function listener(event) {\n var client = {\n x: event.clientX,\n y: event.clientY\n };\n clientRect = getHoneyPotRectFor({\n client: client\n });\n Object.assign(element.style, getRectStyles({\n clientRect: clientRect\n }));\n },\n // using capture so we are less likely to be impacted by event stopping\n options: {\n capture: true\n }\n });\n return function finish(_ref5) {\n var current = _ref5.current;\n // Don't need this any more\n unbindPointerMove();\n\n // If the user is hover the honey pot, we remove it\n // so that the user can continue to interact with the page normally.\n if (isWithin({\n client: current,\n clientRect: clientRect\n })) {\n element.remove();\n return;\n }\n function cleanup() {\n unbindPostDragEvents();\n element.remove();\n }\n var unbindPostDragEvents = bindAll(window, [{\n type: 'pointerdown',\n listener: cleanup\n }, {\n type: 'pointermove',\n listener: cleanup\n }, {\n type: 'focusin',\n listener: cleanup\n }, {\n type: 'focusout',\n listener: cleanup\n },\n // a 'pointerdown' should happen before 'dragstart', but just being super safe\n {\n type: 'dragstart',\n listener: cleanup\n },\n // if the user has dragged something out of the window\n // and then is dragging something back into the window\n // the first events we will see are \"dragenter\" (and then \"dragover\").\n // So if we see any of these we need to clear the post drag fix.\n {\n type: 'dragenter',\n listener: cleanup\n }, {\n type: 'dragover',\n listener: cleanup\n }\n\n // Not adding a \"wheel\" event listener, as \"wheel\" by itself does not\n // resolve the bug.\n ], {\n // Using `capture` so less likely to be impacted by other code stopping events\n capture: true\n });\n };\n}\nexport function makeHoneyPotFix() {\n var latestPointerMove = null;\n function bindEvents() {\n // For sanity, only collecting this value from when events are first bound.\n // This prevents the case where a super old \"pointermove\" could be used\n // from a prior interaction.\n latestPointerMove = null;\n return bind(window, {\n type: 'pointermove',\n listener: function listener(event) {\n latestPointerMove = {\n x: event.clientX,\n y: event.clientY\n };\n },\n // listening for pointer move in capture phase\n // so we are less likely to be impacted by events being stopped.\n options: {\n capture: true\n }\n });\n }\n function getOnPostDispatch() {\n var finish = null;\n return function onPostEvent(_ref6) {\n var eventName = _ref6.eventName,\n payload = _ref6.payload;\n // We are adding the honey pot `onDragStart` so we don't\n // impact the creation of the native drag preview.\n if (eventName === 'onDragStart') {\n var _latestPointerMove;\n var input = payload.location.initial.input;\n\n // Sometimes there will be no latest \"pointermove\" (eg iOS).\n // In which case, we use the start position of the drag.\n var initial = (_latestPointerMove = latestPointerMove) !== null && _latestPointerMove !== void 0 ? _latestPointerMove : {\n x: input.clientX,\n y: input.clientY\n };\n\n // Don't need to defensively call `finish()` as `onDrop` from\n // one interaction is guaranteed to be called before `onDragStart`\n // of the next.\n finish = mountHoneyPot({\n initial: initial\n });\n }\n if (eventName === 'onDrop') {\n var _finish;\n var _input = payload.location.current.input;\n (_finish = finish) === null || _finish === void 0 || _finish({\n current: {\n x: _input.clientX,\n y: _input.clientY\n }\n });\n finish = null;\n // this interaction is finished, we want to use\n // the latest \"pointermove\" for each interaction\n latestPointerMove = null;\n }\n };\n }\n return {\n bindEvents: bindEvents,\n getOnPostDispatch: getOnPostDispatch\n };\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nfunction _arrayWithoutHoles(r) {\n if (Array.isArray(r)) return arrayLikeToArray(r);\n}\nexport { _arrayWithoutHoles as default };","function _iterableToArray(r) {\n if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r);\n}\nexport { _iterableToArray as default };","function _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}\nexport { _nonIterableSpread as default };","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nfunction _toConsumableArray(r) {\n return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread();\n}\nexport { _toConsumableArray as default };","/** Provide a function that you only ever want to be called a single time */\nexport function once(fn) {\n var cache = null;\n return function wrapped() {\n if (!cache) {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n var result = fn.apply(this, args);\n cache = {\n result: result\n };\n }\n return cache.result;\n };\n}","import { once } from '../public-utils/once';\n\n// using `cache` as our `isFirefox()` result will not change in a browser\n\n/**\n * Returns `true` if a `Firefox` browser\n * */\nexport var isFirefox = once(function isFirefox() {\n if (process.env.NODE_ENV === 'test') {\n return false;\n }\n return navigator.userAgent.includes('Firefox');\n});","import { once } from '../public-utils/once';\n\n// using `cache` as our `isSafari()` result will not change in a browser\n\n/**\n * Returns `true` if a `Safari` browser.\n * Returns `true` if the browser is running on iOS (they are all Safari).\n * */\nexport var isSafari = once(function isSafari() {\n if (process.env.NODE_ENV === 'test') {\n return false;\n }\n var _navigator = navigator,\n userAgent = _navigator.userAgent;\n return userAgent.includes('AppleWebKit') && !userAgent.includes('Chrome');\n});","import { bindAll } from 'bind-event-listener';\nimport { isSafari } from '../is-safari';\n\n/* For \"dragenter\" events, the browser should set `relatedTarget` to the previous element.\n * For external drag operations, our first \"dragenter\" event should have a `event.relatedTarget` of `null`.\n *\n * Unfortunately in Safari `event.relatedTarget` is *always* set to `null`\n * Safari bug: https://bugs.webkit.org/show_bug.cgi?id=242627\n * To work around this we count \"dragenter\" and \"dragleave\" events */\n\n// Using symbols for event properties so we don't clash with\n// anything on the `event` object\nvar symbols = {\n isLeavingWindow: Symbol('leaving'),\n isEnteringWindow: Symbol('entering')\n};\nexport function isEnteringWindowInSafari(_ref) {\n var dragEnter = _ref.dragEnter;\n if (!isSafari()) {\n return false;\n }\n return dragEnter.hasOwnProperty(symbols.isEnteringWindow);\n}\nexport function isLeavingWindowInSafari(_ref2) {\n var dragLeave = _ref2.dragLeave;\n if (!isSafari()) {\n return false;\n }\n return dragLeave.hasOwnProperty(symbols.isLeavingWindow);\n}\n(function fixSafari() {\n // Don't do anything when server side rendering\n if (typeof window === 'undefined') {\n return;\n }\n\n // rather than checking the userAgent for \"jsdom\" we can do this check\n // so that the check will be removed completely in production code\n if (process.env.NODE_ENV === 'test') {\n return;\n }\n if (!isSafari()) {\n return;\n }\n function getInitialState() {\n return {\n enterCount: 0,\n isOverWindow: false\n };\n }\n var state = getInitialState();\n function resetState() {\n state = getInitialState();\n }\n\n // These event listeners are bound _forever_ and _never_ removed\n // We don't bother cleaning up these event listeners (for now)\n // as this workaround is only for Safari\n\n // This is how the event count works:\n //\n // lift (+1 enterCount)\n // - dragstart(draggable) [enterCount: 0]\n // - dragenter(draggable) [enterCount: 1]\n // leaving draggable (+0 enterCount)\n // - dragenter(document.body) [enterCount: 2]\n // - dragleave(draggable) [enterCount: 1]\n // leaving window (-1 enterCount)\n // - dragleave(document.body) [enterCount: 0] {leaving the window}\n\n // Things to note:\n // - dragenter and dragleave bubble\n // - the first dragenter when entering a window might not be on `window`\n // - it could be on an element that is pressed up against the window\n // - (so we cannot rely on `event.target` values)\n\n bindAll(window, [{\n type: 'dragstart',\n listener: function listener() {\n state.enterCount = 0;\n // drag start occurs in the source window\n state.isOverWindow = true;\n // When a drag first starts it will also trigger a \"dragenter\" on the draggable element\n }\n }, {\n type: 'drop',\n listener: resetState\n }, {\n type: 'dragend',\n listener: resetState\n }, {\n type: 'dragenter',\n listener: function listener(event) {\n if (!state.isOverWindow && state.enterCount === 0) {\n // Patching the `event` object\n // The `event` object is shared with all event listeners for the event\n // @ts-expect-error: adding property to the event object\n event[symbols.isEnteringWindow] = true;\n }\n state.isOverWindow = true;\n state.enterCount++;\n }\n }, {\n type: 'dragleave',\n listener: function listener(event) {\n state.enterCount--;\n if (state.isOverWindow && state.enterCount === 0) {\n // Patching the `event` object as it is shared with all event listeners\n // The `event` object is shared with all event listeners for the event\n // @ts-expect-error: adding property to the event object\n event[symbols.isLeavingWindow] = true;\n state.isOverWindow = false;\n }\n }\n }],\n // using `capture: true` so that adding event listeners\n // in bubble phase will have the correct symbols\n {\n capture: true\n });\n})();","/**\n * Does the `EventTarget` look like a `Node` based on \"duck typing\".\n *\n * Helpful when the `Node` might be outside of the current document\n * so we cannot to an `target instanceof Node` check.\n */\nfunction isNodeLike(target) {\n return 'nodeName' in target;\n}\n\n/**\n * Is an `EventTarget` a `Node` from another `window`?\n */\nexport function isFromAnotherWindow(eventTarget) {\n return isNodeLike(eventTarget) && eventTarget.ownerDocument !== document;\n}","import { isFirefox } from '../is-firefox';\nimport { isSafari } from '../is-safari';\nimport { isLeavingWindowInSafari } from './count-events-for-safari';\nimport { isFromAnotherWindow } from './is-from-another-window';\nexport function isLeavingWindow(_ref) {\n var dragLeave = _ref.dragLeave;\n var type = dragLeave.type,\n relatedTarget = dragLeave.relatedTarget;\n if (type !== 'dragleave') {\n return false;\n }\n if (isSafari()) {\n return isLeavingWindowInSafari({\n dragLeave: dragLeave\n });\n }\n\n // Standard check: if going to `null` we are leaving the `window`\n if (relatedTarget == null) {\n return true;\n }\n\n /**\n * 🦊 Exception: `iframe` in Firefox (`125.0`)\n *\n * Case 1: parent `window` → child `iframe`\n * `dragLeave.relatedTarget` is element _inside_ the child `iframe`\n * (foreign element)\n *\n * Case 2: child `iframe` → parent `window`\n * `dragLeave.relatedTarget` is the `iframe` in the parent `window`\n * (foreign element)\n */\n\n if (isFirefox()) {\n return isFromAnotherWindow(relatedTarget);\n }\n\n /**\n * 🌏 Exception: `iframe` in Chrome (`124.0`)\n *\n * Case 1: parent `window` → child `iframe`\n * `dragLeave.relatedTarget` is the `iframe` in the parent `window`\n *\n * Case 2: child `iframe` → parent `window`\n * `dragLeave.relatedTarget` is `null` *(standard check)*\n */\n\n // Case 2\n // Using `instanceof` check as the element will be in the same `window`\n return relatedTarget instanceof HTMLIFrameElement;\n}","export function getBindingsForBrokenDrags(_ref) {\n var onDragEnd = _ref.onDragEnd;\n return [\n // ## Detecting drag ending for removed draggables\n //\n // If a draggable element is removed during a drag and the user drops:\n // 1. if over a valid drop target: we get a \"drop\" event to know the drag is finished\n // 2. if not over a valid drop target (or cancelled): we get nothing\n // The \"dragend\" event will not fire on the source draggable if it has been\n // removed from the DOM.\n // So we need to figure out if a drag operation has finished by looking at other events\n // We can do this by looking at other events\n\n // ### First detection: \"pointermove\" events\n\n // 1. \"pointermove\" events cannot fire during a drag and drop operation\n // according to the spec. So if we get a \"pointermove\" it means that\n // the drag and drop operations has finished. So if we get a \"pointermove\"\n // we know that the drag is over\n // 2. 🦊😤 Drag and drop operations are _supposed_ to suppress\n // other pointer events. However, firefox will allow a few\n // pointer event to get through after a drag starts.\n // The most I've seen is 3\n {\n type: 'pointermove',\n listener: function () {\n var callCount = 0;\n return function listener() {\n // Using 20 as it is far bigger than the most observed (3)\n if (callCount < 20) {\n callCount++;\n return;\n }\n onDragEnd();\n };\n }()\n },\n // ### Second detection: \"pointerdown\" events\n\n // If we receive this event then we know that a drag operation has finished\n // and potentially another one is about to start.\n // Note: `pointerdown` fires on all browsers / platforms before \"dragstart\"\n {\n type: 'pointerdown',\n listener: onDragEnd\n }];\n}","export function getInput(event) {\n return {\n altKey: event.altKey,\n button: event.button,\n buttons: event.buttons,\n ctrlKey: event.ctrlKey,\n metaKey: event.metaKey,\n shiftKey: event.shiftKey,\n clientX: event.clientX,\n clientY: event.clientY,\n pageX: event.pageX,\n pageY: event.pageY\n };\n}","var rafSchd = function rafSchd(fn) {\n var lastArgs = [];\n var frameId = null;\n\n var wrapperFn = function wrapperFn() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n lastArgs = args;\n\n if (frameId) {\n return;\n }\n\n frameId = requestAnimationFrame(function () {\n frameId = null;\n fn.apply(void 0, lastArgs);\n });\n };\n\n wrapperFn.cancel = function () {\n if (!frameId) {\n return;\n }\n\n cancelAnimationFrame(frameId);\n frameId = null;\n };\n\n return wrapperFn;\n};\n\nexport default rafSchd;\n","import rafSchd from 'raf-schd';\nvar scheduleOnDrag = rafSchd(function (fn) {\n return fn();\n});\nvar dragStart = function () {\n var scheduled = null;\n function schedule(fn) {\n var frameId = requestAnimationFrame(function () {\n scheduled = null;\n fn();\n });\n scheduled = {\n frameId: frameId,\n fn: fn\n };\n }\n function flush() {\n if (scheduled) {\n cancelAnimationFrame(scheduled.frameId);\n scheduled.fn();\n scheduled = null;\n }\n }\n return {\n schedule: schedule,\n flush: flush\n };\n}();\nexport function makeDispatch(_ref) {\n var source = _ref.source,\n initial = _ref.initial,\n dispatchEvent = _ref.dispatchEvent;\n var previous = {\n dropTargets: []\n };\n function safeDispatch(args) {\n dispatchEvent(args);\n previous = {\n dropTargets: args.payload.location.current.dropTargets\n };\n }\n var dispatch = {\n start: function start(_ref2) {\n var nativeSetDragImage = _ref2.nativeSetDragImage;\n // Ensuring that both `onGenerateDragPreview` and `onDragStart` get the same location.\n // We do this so that `previous` is`[]` in `onDragStart` (which is logical)\n var location = {\n current: initial,\n previous: previous,\n initial: initial\n };\n // a `onGenerateDragPreview` does _not_ add another entry for `previous`\n // onDragPreview\n safeDispatch({\n eventName: 'onGenerateDragPreview',\n payload: {\n source: source,\n location: location,\n nativeSetDragImage: nativeSetDragImage\n }\n });\n dragStart.schedule(function () {\n safeDispatch({\n eventName: 'onDragStart',\n payload: {\n source: source,\n location: location\n }\n });\n });\n },\n dragUpdate: function dragUpdate(_ref3) {\n var current = _ref3.current;\n dragStart.flush();\n scheduleOnDrag.cancel();\n safeDispatch({\n eventName: 'onDropTargetChange',\n payload: {\n source: source,\n location: {\n initial: initial,\n previous: previous,\n current: current\n }\n }\n });\n },\n drag: function drag(_ref4) {\n var current = _ref4.current;\n scheduleOnDrag(function () {\n dragStart.flush();\n var location = {\n initial: initial,\n previous: previous,\n current: current\n };\n safeDispatch({\n eventName: 'onDrag',\n payload: {\n source: source,\n location: location\n }\n });\n });\n },\n drop: function drop(_ref5) {\n var current = _ref5.current,\n updatedSourcePayload = _ref5.updatedSourcePayload;\n dragStart.flush();\n scheduleOnDrag.cancel();\n safeDispatch({\n eventName: 'onDrop',\n payload: {\n source: updatedSourcePayload !== null && updatedSourcePayload !== void 0 ? updatedSourcePayload : source,\n location: {\n current: current,\n previous: previous,\n initial: initial\n }\n }\n });\n }\n };\n return dispatch;\n}","import _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\nimport { bindAll } from 'bind-event-listener';\nimport { getElementFromPointWithoutHoneypot } from '../honey-pot-fix/get-element-from-point-without-honey-pot';\nimport { isHoneyPotElement } from '../honey-pot-fix/is-honey-pot-element';\nimport { isLeavingWindow } from '../util/changing-window/is-leaving-window';\nimport { getBindingsForBrokenDrags } from '../util/detect-broken-drag';\nimport { getInput } from '../util/get-input';\nimport { makeDispatch } from './dispatch-consumer-event';\nvar globalState = {\n isActive: false\n};\nfunction canStart() {\n return !globalState.isActive;\n}\nfunction getNativeSetDragImage(event) {\n if (event.dataTransfer) {\n // need to use `.bind` as `setDragImage` is required\n // to be run with `event.dataTransfer` as the \"this\" context\n return event.dataTransfer.setDragImage.bind(event.dataTransfer);\n }\n return null;\n}\nfunction hasHierarchyChanged(_ref) {\n var current = _ref.current,\n next = _ref.next;\n if (current.length !== next.length) {\n return true;\n }\n // not checking stickiness, data or dropEffect,\n // just whether the hierarchy has changed\n for (var i = 0; i < current.length; i++) {\n if (current[i].element !== next[i].element) {\n return true;\n }\n }\n return false;\n}\nfunction start(_ref2) {\n var event = _ref2.event,\n dragType = _ref2.dragType,\n getDropTargetsOver = _ref2.getDropTargetsOver,\n dispatchEvent = _ref2.dispatchEvent;\n if (!canStart()) {\n return;\n }\n var initial = getStartLocation({\n event: event,\n dragType: dragType,\n getDropTargetsOver: getDropTargetsOver\n });\n globalState.isActive = true;\n var state = {\n current: initial\n };\n\n // Setting initial drop effect for the drag\n setDropEffectOnEvent({\n event: event,\n current: initial.dropTargets\n });\n var dispatch = makeDispatch({\n source: dragType.payload,\n dispatchEvent: dispatchEvent,\n initial: initial\n });\n function updateState(next) {\n // only looking at whether hierarchy has changed to determine whether something as 'changed'\n var hasChanged = hasHierarchyChanged({\n current: state.current.dropTargets,\n next: next.dropTargets\n });\n\n // Always updating the state to include latest data, dropEffect and stickiness\n // Only updating consumers if the hierarchy has changed in some way\n // Consumers can get the latest data by using `onDrag`\n state.current = next;\n if (hasChanged) {\n dispatch.dragUpdate({\n current: state.current\n });\n }\n }\n function onUpdateEvent(event) {\n var input = getInput(event);\n\n // If we are over the honey pot, we need to get the element\n // that the user would have been over if not for the honey pot\n var target = isHoneyPotElement(event.target) ? getElementFromPointWithoutHoneypot({\n x: input.clientX,\n y: input.clientY\n }) : event.target;\n var nextDropTargets = getDropTargetsOver({\n target: target,\n input: input,\n source: dragType.payload,\n current: state.current.dropTargets\n });\n if (nextDropTargets.length) {\n // 🩸 must call `event.preventDefault()` to allow a browser drop to occur\n event.preventDefault();\n setDropEffectOnEvent({\n event: event,\n current: nextDropTargets\n });\n }\n updateState({\n dropTargets: nextDropTargets,\n input: input\n });\n }\n function cancel() {\n // The spec behaviour is that when a drag is cancelled, or when dropping on no drop targets,\n // a \"dragleave\" event is fired on the active drop target before a \"dragend\" event.\n // We are replicating that behaviour in `cancel` if there are any active drop targets to\n // ensure consistent behaviour.\n //\n // Note: When cancelling, or dropping on no drop targets, a \"dragleave\" event\n // will have already cleared the dropTargets to `[]` (as that particular \"dragleave\" has a `relatedTarget` of `null`)\n\n if (state.current.dropTargets.length) {\n updateState({\n dropTargets: [],\n input: state.current.input\n });\n }\n dispatch.drop({\n current: state.current,\n updatedSourcePayload: null\n });\n finish();\n }\n function finish() {\n globalState.isActive = false;\n unbindEvents();\n }\n var unbindEvents = bindAll(window, [{\n // 👋 Note: we are repurposing the `dragover` event as our `drag` event\n // this is because firefox does not publish pointer coordinates during\n // a `drag` event, but does for every other type of drag event\n // `dragover` fires on all elements that are being dragged over\n // Because we are binding to `window` - our `dragover` is effectively the same as a `drag`\n // 🦊😤\n type: 'dragover',\n listener: function listener(event) {\n // We need to regularly calculate the drop targets in order to allow:\n // - dynamic `canDrop()` checks\n // - rapid updating `getData()` calls to attach data in response to user input (eg for edge detection)\n // Sadly we cannot schedule inspecting changes resulting from this event\n // we need to be able to conditionally cancel the event with `event.preventDefault()`\n // to enable the correct native drop experience.\n\n // 1. check to see if anything has changed\n onUpdateEvent(event);\n\n // 2. let consumers know a move has occurred\n // This will include the latest 'input' values\n dispatch.drag({\n current: state.current\n });\n }\n }, {\n type: 'dragenter',\n listener: onUpdateEvent\n }, {\n type: 'dragleave',\n listener: function listener(event) {\n if (!isLeavingWindow({\n dragLeave: event\n })) {\n return;\n }\n\n /**\n * At this point we don't know if a drag is being cancelled,\n * or if a drag is leaving the `window`.\n *\n * Both have:\n * 1. \"dragleave\" (with `relatedTarget: null`)\n * 2. \"dragend\" (a \"dragend\" can occur when outside the `window`)\n *\n * **Clearing drop targets**\n *\n * For either case we are clearing the the drop targets\n *\n * - cancelling: we clear drop targets in `\"dragend\"` anyway\n * - leaving the `window`: we clear the drop targets (to clear stickiness)\n *\n * **Leaving the window and finishing the drag**\n *\n * _internal drags_\n *\n * - The drag continues when the user is outside the `window`\n * and can resume if the user drags back over the `window`,\n * or end when the user drops in an external `window`.\n * - We will get a `\"dragend\"`, or we can listen for other\n * events to determine the drag is finished when the user re-enters the `window`).\n *\n * _external drags_\n *\n * - We conclude the drag operation.\n * - We have no idea if the user will drag back over the `window`,\n * or if the drag ends elsewhere.\n * - We will create a new drag if the user re-enters the `window`.\n *\n * **Not updating `input`**\n *\n * 🐛 Bug[Chrome] the final `\"dragleave\"` has default input values (eg `clientX == 0`)\n * Workaround: intentionally not updating `input` in \"dragleave\"\n * rather than the users current input values\n * - [Conversation](https://twitter.com/alexandereardon/status/1642697633864241152)\n * - [Bug](https://bugs.chromium.org/p/chromium/issues/detail?id=1429937)\n **/\n\n updateState({\n input: state.current.input,\n dropTargets: []\n });\n if (dragType.startedFrom === 'external') {\n cancel();\n }\n }\n }, {\n // A \"drop\" can only happen if the browser allowed the drop\n type: 'drop',\n listener: function listener(event) {\n // Capture the final input.\n // We are capturing the final `input` for the\n // most accurate honey pot experience\n state.current = {\n dropTargets: state.current.dropTargets,\n input: getInput(event)\n };\n\n /** If there are no drop targets, then we will get\n * a \"drop\" event if:\n * - `preventUnhandled()` is being used\n * - there is an unmanaged drop target (eg another library)\n * In these cases, it's up to the consumer\n * to handle the drop if it's not over one of our drop targets\n * - `preventUnhandled()` will cancel the \"drop\"\n * - unmanaged drop targets can handle the \"drop\" how they want to\n * We won't call `event.preventDefault()` in this call path */\n\n if (!state.current.dropTargets.length) {\n cancel();\n return;\n }\n event.preventDefault();\n\n // applying the latest drop effect to the event\n setDropEffectOnEvent({\n event: event,\n current: state.current.dropTargets\n });\n dispatch.drop({\n current: state.current,\n // When dropping something native, we need to extract the latest\n // `.items` from the \"drop\" event as it is now accessible\n updatedSourcePayload: dragType.type === 'external' ? dragType.getDropPayload(event) : null\n });\n finish();\n }\n }, {\n // \"dragend\" fires when on the drag source (eg a draggable element)\n // when the drag is finished.\n // \"dragend\" will fire after \"drop\" (if there was a successful drop)\n // \"dragend\" does not fire if the draggable source has been removed during the drag\n // or for external drag sources (eg files)\n\n // This \"dragend\" listener will not fire if there was a successful drop\n // as we will have already removed the event listener\n\n type: 'dragend',\n listener: function listener(event) {\n // In firefox, the position of the \"dragend\" event can\n // be a bit different to the last \"dragover\" event.\n // Updating the input so we can get the best possible\n // information for the honey pot.\n state.current = {\n dropTargets: state.current.dropTargets,\n input: getInput(event)\n };\n cancel();\n }\n }].concat(_toConsumableArray(getBindingsForBrokenDrags({\n onDragEnd: cancel\n }))),\n // Once we have started a managed drag operation it is important that we see / own all drag events\n // We got one adoption bug pop up where some code was stopping (`event.stopPropagation()`)\n // all \"drop\" events in the bubble phase on the `document.body`.\n // This meant that we never saw the \"drop\" event.\n {\n capture: true\n });\n dispatch.start({\n nativeSetDragImage: getNativeSetDragImage(event)\n });\n}\nfunction setDropEffectOnEvent(_ref3) {\n var _current$;\n var event = _ref3.event,\n current = _ref3.current;\n // setting the `dropEffect` to be the innerMost drop targets dropEffect\n var innerMost = (_current$ = current[0]) === null || _current$ === void 0 ? void 0 : _current$.dropEffect;\n if (innerMost != null && event.dataTransfer) {\n event.dataTransfer.dropEffect = innerMost;\n }\n}\nfunction getStartLocation(_ref4) {\n var event = _ref4.event,\n dragType = _ref4.dragType,\n getDropTargetsOver = _ref4.getDropTargetsOver;\n var input = getInput(event);\n\n // When dragging from outside of the browser,\n // the drag is not being sourced from any local drop targets\n if (dragType.startedFrom === 'external') {\n return {\n input: input,\n dropTargets: []\n };\n }\n var dropTargets = getDropTargetsOver({\n input: input,\n source: dragType.payload,\n target: event.target,\n current: []\n });\n return {\n input: input,\n dropTargets: dropTargets\n };\n}\nexport var lifecycle = {\n canStart: canStart,\n start: start\n};","// Extending `Map` to allow us to link Key and Values together\n\nvar ledger = new Map();\nfunction registerUsage(_ref) {\n var typeKey = _ref.typeKey,\n mount = _ref.mount;\n var entry = ledger.get(typeKey);\n if (entry) {\n entry.usageCount++;\n return entry;\n }\n var initial = {\n typeKey: typeKey,\n unmount: mount(),\n usageCount: 1\n };\n ledger.set(typeKey, initial);\n return initial;\n}\nexport function register(args) {\n var entry = registerUsage(args);\n return function unregister() {\n entry.usageCount--;\n if (entry.usageCount > 0) {\n return;\n }\n // Only a single usage left, remove it\n entry.unmount();\n ledger.delete(args.typeKey);\n };\n}","/** Create a new combined function that will call all the provided functions */\nexport function combine() {\n for (var _len = arguments.length, fns = new Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n return function cleanup() {\n fns.forEach(function (fn) {\n return fn();\n });\n };\n}","export function addAttribute(element, _ref) {\n var attribute = _ref.attribute,\n value = _ref.value;\n element.setAttribute(attribute, value);\n return function () {\n return element.removeAttribute(attribute);\n };\n}","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _toConsumableArray from \"@babel/runtime/helpers/toConsumableArray\";\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nimport { combine } from '../public-utils/combine';\nimport { addAttribute } from '../util/add-attribute';\nfunction copyReverse(array) {\n return array.slice(0).reverse();\n}\nexport function makeDropTarget(_ref) {\n var typeKey = _ref.typeKey,\n defaultDropEffect = _ref.defaultDropEffect;\n var registry = new WeakMap();\n var dropTargetDataAtt = \"data-drop-target-for-\".concat(typeKey);\n var dropTargetSelector = \"[\".concat(dropTargetDataAtt, \"]\");\n function addToRegistry(args) {\n registry.set(args.element, args);\n return function () {\n return registry.delete(args.element);\n };\n }\n function dropTargetForConsumers(args) {\n // Guardrail: warn if the draggable element is already registered\n if (process.env.NODE_ENV !== 'production') {\n var existing = registry.get(args.element);\n if (existing) {\n // eslint-disable-next-line no-console\n console.warn(\"You have already registered a [\".concat(typeKey, \"] dropTarget on the same element\"), {\n existing: existing,\n proposed: args\n });\n }\n if (args.element instanceof HTMLIFrameElement) {\n // eslint-disable-next-line no-console\n console.warn(\"\\n We recommend not registering <iframe> elements as drop targets\\n as it can result in some strange browser event ordering.\\n \" // Removing newlines and excessive whitespace\n .replace(/\\s{2,}/g, ' ').trim());\n }\n }\n return combine(addAttribute(args.element, {\n attribute: dropTargetDataAtt,\n value: 'true'\n }), addToRegistry(args));\n }\n function getActualDropTargets(_ref2) {\n var _args$getData, _args$getData2, _args$getDropEffect, _args$getDropEffect2;\n var source = _ref2.source,\n target = _ref2.target,\n input = _ref2.input,\n _ref2$result = _ref2.result,\n result = _ref2$result === void 0 ? [] : _ref2$result;\n if (target == null) {\n return result;\n }\n if (!(target instanceof Element)) {\n // For \"text-selection\" drags, the original `target`\n // is not an `Element`, so we need to start looking from\n // the parent element\n if (target instanceof Node) {\n return getActualDropTargets({\n source: source,\n target: target.parentElement,\n input: input,\n result: result\n });\n }\n\n // not sure what we are working with,\n // so we can exit.\n return result;\n }\n var closest = target.closest(dropTargetSelector);\n\n // Cannot find anything else\n if (closest == null) {\n return result;\n }\n var args = registry.get(closest);\n\n // error: something had a dropTargetSelector but we could not\n // find a match. For now, failing silently\n if (args == null) {\n return result;\n }\n var feedback = {\n input: input,\n source: source,\n element: args.element\n };\n\n // if dropping is not allowed, skip this drop target\n // and continue looking up the DOM tree\n if (args.canDrop && !args.canDrop(feedback)) {\n return getActualDropTargets({\n source: source,\n target: args.element.parentElement,\n input: input,\n result: result\n });\n }\n\n // calculate our new record\n var data = (_args$getData = (_args$getData2 = args.getData) === null || _args$getData2 === void 0 ? void 0 : _args$getData2.call(args, feedback)) !== null && _args$getData !== void 0 ? _args$getData : {};\n var dropEffect = (_args$getDropEffect = (_args$getDropEffect2 = args.getDropEffect) === null || _args$getDropEffect2 === void 0 ? void 0 : _args$getDropEffect2.call(args, feedback)) !== null && _args$getDropEffect !== void 0 ? _args$getDropEffect : defaultDropEffect;\n var record = {\n data: data,\n element: args.element,\n dropEffect: dropEffect,\n // we are collecting _actual_ drop targets, so these are\n // being applied _not_ due to stickiness\n isActiveDueToStickiness: false\n };\n return getActualDropTargets({\n source: source,\n target: args.element.parentElement,\n input: input,\n // Using bubble ordering. Same ordering as `event.getPath()`\n result: [].concat(_toConsumableArray(result), [record])\n });\n }\n function notifyCurrent(_ref3) {\n var eventName = _ref3.eventName,\n payload = _ref3.payload;\n var _iterator = _createForOfIteratorHelper(payload.location.current.dropTargets),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _entry$eventName;\n var record = _step.value;\n var entry = registry.get(record.element);\n var _args = _objectSpread(_objectSpread({}, payload), {}, {\n self: record\n });\n entry === null || entry === void 0 || (_entry$eventName = entry[eventName]) === null || _entry$eventName === void 0 || _entry$eventName.call(entry,\n // I cannot seem to get the types right here.\n // TS doesn't seem to like that one event can need `nativeSetDragImage`\n // @ts-expect-error\n _args);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n var actions = {\n onGenerateDragPreview: notifyCurrent,\n onDrag: notifyCurrent,\n onDragStart: notifyCurrent,\n onDrop: notifyCurrent,\n onDropTargetChange: function onDropTargetChange(_ref4) {\n var payload = _ref4.payload;\n var isCurrent = new Set(payload.location.current.dropTargets.map(function (record) {\n return record.element;\n }));\n var visited = new Set();\n var _iterator2 = _createForOfIteratorHelper(payload.location.previous.dropTargets),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var _entry$onDropTargetCh;\n var record = _step2.value;\n visited.add(record.element);\n var entry = registry.get(record.element);\n var isOver = isCurrent.has(record.element);\n var _args2 = _objectSpread(_objectSpread({}, payload), {}, {\n self: record\n });\n entry === null || entry === void 0 || (_entry$onDropTargetCh = entry.onDropTargetChange) === null || _entry$onDropTargetCh === void 0 || _entry$onDropTargetCh.call(entry, _args2);\n\n // if we cannot find the drop target in the current array, then it has been left\n if (!isOver) {\n var _entry$onDragLeave;\n entry === null || entry === void 0 || (_entry$onDragLeave = entry.onDragLeave) === null || _entry$onDragLeave === void 0 || _entry$onDragLeave.call(entry, _args2);\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n var _iterator3 = _createForOfIteratorHelper(payload.location.current.dropTargets),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var _entry$onDropTargetCh2, _entry$onDragEnter;\n var _record = _step3.value;\n // already published an update to this drop target\n if (visited.has(_record.element)) {\n continue;\n }\n // at this point we have a new drop target that is being entered into\n var _args3 = _objectSpread(_objectSpread({}, payload), {}, {\n self: _record\n });\n var _entry = registry.get(_record.element);\n _entry === null || _entry === void 0 || (_entry$onDropTargetCh2 = _entry.onDropTargetChange) === null || _entry$onDropTargetCh2 === void 0 || _entry$onDropTargetCh2.call(_entry, _args3);\n _entry === null || _entry === void 0 || (_entry$onDragEnter = _entry.onDragEnter) === null || _entry$onDragEnter === void 0 || _entry$onDragEnter.call(_entry, _args3);\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n }\n };\n function dispatchEvent(args) {\n actions[args.eventName](args);\n }\n function getIsOver(_ref5) {\n var source = _ref5.source,\n target = _ref5.target,\n input = _ref5.input,\n current = _ref5.current;\n var actual = getActualDropTargets({\n source: source,\n target: target,\n input: input\n });\n\n // stickiness is only relevant when we have less\n // drop targets than we did before\n if (actual.length >= current.length) {\n return actual;\n }\n\n // less 'actual' drop targets than before,\n // we need to see if 'stickiness' applies\n\n // An old drop target will continue to be dropped on if:\n // 1. it has the same parent\n // 2. nothing exists in it's previous index\n\n var lastCaptureOrdered = copyReverse(current);\n var actualCaptureOrdered = copyReverse(actual);\n var resultCaptureOrdered = [];\n for (var index = 0; index < lastCaptureOrdered.length; index++) {\n var _argsForLast$getIsSti;\n var last = lastCaptureOrdered[index];\n var fresh = actualCaptureOrdered[index];\n\n // if a record is in the new index -> use that\n // it will have the latest data + dropEffect\n if (fresh != null) {\n resultCaptureOrdered.push(fresh);\n continue;\n }\n\n // At this point we have no drop target in the old spot\n // Check to see if we can use a previous sticky drop target\n\n // The \"parent\" is the one inside of `resultCaptureOrdered`\n // (the parent might be a drop target that was sticky)\n var parent = resultCaptureOrdered[index - 1];\n var lastParent = lastCaptureOrdered[index - 1];\n\n // Stickiness is based on parent relationships, so if the parent relationship has change\n // then we can stop our search\n if ((parent === null || parent === void 0 ? void 0 : parent.element) !== (lastParent === null || lastParent === void 0 ? void 0 : lastParent.element)) {\n break;\n }\n\n // We need to check whether the old drop target can still be dropped on\n\n var argsForLast = registry.get(last.element);\n\n // We cannot drop on a drop target that is no longer mounted\n if (!argsForLast) {\n break;\n }\n var feedback = {\n input: input,\n source: source,\n element: argsForLast.element\n };\n\n // We cannot drop on a drop target that no longer allows being dropped on\n if (argsForLast.canDrop && !argsForLast.canDrop(feedback)) {\n break;\n }\n\n // We cannot drop on a drop target that is no longer sticky\n if (!((_argsForLast$getIsSti = argsForLast.getIsSticky) !== null && _argsForLast$getIsSti !== void 0 && _argsForLast$getIsSti.call(argsForLast, feedback))) {\n break;\n }\n\n // Note: intentionally not recollecting `getData()` or `getDropEffect()`\n // Previous values for `data` and `dropEffect` will be borrowed\n // This is to prevent things like the 'closest edge' changing when\n // no longer over a drop target.\n // We could change our mind on this behaviour in the future\n\n resultCaptureOrdered.push(_objectSpread(_objectSpread({}, last), {}, {\n // making it clear to consumers this drop target is active due to stickiness\n isActiveDueToStickiness: true\n }));\n }\n\n // return bubble ordered result\n return copyReverse(resultCaptureOrdered);\n }\n return {\n dropTargetForConsumers: dropTargetForConsumers,\n getIsOver: getIsOver,\n dispatchEvent: dispatchEvent\n };\n}","import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nexport function makeMonitor() {\n var registry = new Set();\n var dragging = null;\n function tryAddToActive(monitor) {\n if (!dragging) {\n return;\n }\n // Monitor is allowed to monitor events if:\n // 1. It has no `canMonitor` function (default is that a monitor can listen to everything)\n // 2. `canMonitor` returns true\n if (!monitor.canMonitor || monitor.canMonitor(dragging.canMonitorArgs)) {\n dragging.active.add(monitor);\n }\n }\n function monitorForConsumers(args) {\n // We are giving each `args` a new reference so that you\n // can create multiple monitors with the same `args`.\n var entry = _objectSpread({}, args);\n registry.add(entry);\n\n // if there is an active drag we need to see if this new monitor is relevant\n tryAddToActive(entry);\n return function cleanup() {\n registry.delete(entry);\n\n // We need to stop publishing events during a drag to this monitor!\n if (dragging) {\n dragging.active.delete(entry);\n }\n };\n }\n function dispatchEvent(_ref) {\n var eventName = _ref.eventName,\n payload = _ref.payload;\n if (eventName === 'onGenerateDragPreview') {\n dragging = {\n canMonitorArgs: {\n initial: payload.location.initial,\n source: payload.source\n },\n active: new Set()\n };\n var _iterator = _createForOfIteratorHelper(registry),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var monitor = _step.value;\n tryAddToActive(monitor);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n\n // This should never happen.\n if (!dragging) {\n return;\n }\n\n // Creating an array from the set _before_ iterating\n // This is so that monitors added during the current event will not be called.\n // This behaviour matches native EventTargets where an event listener\n // cannot add another event listener during an active event to the same\n // event target in the same event (for us we have a single global event target)\n var active = Array.from(dragging.active);\n for (var _i = 0, _active = active; _i < _active.length; _i++) {\n var _monitor = _active[_i];\n // A monitor can be removed by another monitor during an event.\n // We need to check that the monitor is still registered before calling it\n if (dragging.active.has(_monitor)) {\n var _monitor$eventName;\n // @ts-expect-error: I cannot get this type working!\n (_monitor$eventName = _monitor[eventName]) === null || _monitor$eventName === void 0 || _monitor$eventName.call(_monitor, payload);\n }\n }\n if (eventName === 'onDrop') {\n dragging.active.clear();\n dragging = null;\n }\n }\n return {\n dispatchEvent: dispatchEvent,\n monitorForConsumers: monitorForConsumers\n };\n}","import { lifecycle } from '../ledger/lifecycle-manager';\nimport { register } from '../ledger/usage-ledger';\nimport { makeDropTarget } from './make-drop-target';\nimport { makeMonitor } from './make-monitor';\nexport function makeAdapter(_ref) {\n var typeKey = _ref.typeKey,\n mount = _ref.mount,\n dispatchEventToSource = _ref.dispatchEventToSource,\n onPostDispatch = _ref.onPostDispatch,\n defaultDropEffect = _ref.defaultDropEffect;\n var monitorAPI = makeMonitor();\n var dropTargetAPI = makeDropTarget({\n typeKey: typeKey,\n defaultDropEffect: defaultDropEffect\n });\n function dispatchEvent(args) {\n // 1. forward the event to source\n dispatchEventToSource === null || dispatchEventToSource === void 0 || dispatchEventToSource(args);\n\n // 2. forward the event to relevant dropTargets\n dropTargetAPI.dispatchEvent(args);\n\n // 3. forward event to monitors\n monitorAPI.dispatchEvent(args);\n\n // 4. post consumer dispatch (used for honey pot fix)\n onPostDispatch === null || onPostDispatch === void 0 || onPostDispatch(args);\n }\n function start(_ref2) {\n var event = _ref2.event,\n dragType = _ref2.dragType;\n lifecycle.start({\n event: event,\n dragType: dragType,\n getDropTargetsOver: dropTargetAPI.getIsOver,\n dispatchEvent: dispatchEvent\n });\n }\n function registerUsage() {\n function mountAdapter() {\n var api = {\n canStart: lifecycle.canStart,\n start: start\n };\n return mount(api);\n }\n return register({\n typeKey: typeKey,\n mount: mountAdapter\n });\n }\n return {\n registerUsage: registerUsage,\n dropTarget: dropTargetAPI.dropTargetForConsumers,\n monitor: monitorAPI.monitorForConsumers\n };\n}","import { once } from '../public-utils/once';\n\n// using `cache` as our `isAndroid()` result will not change in a browser\nexport var isAndroid = once(function isAndroid() {\n return navigator.userAgent.toLocaleLowerCase().includes('android');\n});\nexport var androidFallbackText = 'pdnd:android-fallback';","// Why we put the media types in their own files:\n//\n// - we are not putting them all in one file as not all adapters need all types\n// - we are not putting them in the external helpers as some things just need the\n// types and not the external functions code\nexport var textMediaType = 'text/plain';","// Why we put the media types in their own files:\n//\n// - we are not putting them all in one file as not all adapters need all types\n// - we are not putting them in the external helpers as some things just need the\n// types and not the external functions code\nexport var urlMediaType = 'text/uri-list';","/**\n * This key has been pulled into a separate module\n * so that the external adapter does not need to import\n * the element adapter\n */\nexport var elementAdapterNativeDataKey = 'application/vnd.pdnd';","import _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport { bind } from 'bind-event-listener';\nimport { getElementFromPointWithoutHoneypot } from '../honey-pot-fix/get-element-from-point-without-honey-pot';\nimport { makeHoneyPotFix } from '../honey-pot-fix/make-honey-pot-fix';\nimport { makeAdapter } from '../make-adapter/make-adapter';\nimport { combine } from '../public-utils/combine';\nimport { addAttribute } from '../util/add-attribute';\nimport { androidFallbackText, isAndroid } from '../util/android';\nimport { getInput } from '../util/get-input';\nimport { textMediaType } from '../util/media-types/text-media-type';\nimport { urlMediaType } from '../util/media-types/url-media-type';\nimport { elementAdapterNativeDataKey } from './element-adapter-native-data-key';\nvar draggableRegistry = new WeakMap();\nfunction addToRegistry(args) {\n draggableRegistry.set(args.element, args);\n return function cleanup() {\n draggableRegistry.delete(args.element);\n };\n}\nvar honeyPotFix = makeHoneyPotFix();\nvar adapter = makeAdapter({\n typeKey: 'element',\n defaultDropEffect: 'move',\n mount: function mount(api) {\n /** Binding event listeners the `document` rather than `window` so that\n * this adapter always gets preference over the text adapter.\n * `document` is the first `EventTarget` under `window`\n * https://twitter.com/alexandereardon/status/1604658588311465985\n */\n return combine(honeyPotFix.bindEvents(), bind(document, {\n type: 'dragstart',\n listener: function listener(event) {\n var _entry$dragHandle, _entry$getInitialData, _entry$getInitialData2, _entry$dragHandle2, _entry$getInitialData3, _entry$getInitialData4;\n if (!api.canStart(event)) {\n return;\n }\n\n // If the \"dragstart\" event is cancelled, then a drag won't start\n // There will be no further drag operation events (eg no \"dragend\" event)\n if (event.defaultPrevented) {\n return;\n }\n\n // Technically `dataTransfer` can be `null` according to the types\n // But that behaviour does not seem to appear in the spec.\n // If there is not `dataTransfer`, we can assume something is wrong and not\n // start a drag\n if (!event.dataTransfer) {\n // Including this code on \"test\" and \"development\" environments:\n // - Browser tests commonly run against \"development\" builds\n // - Unit tests commonly run in \"test\"\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line no-console\n console.warn(\"\\n It appears as though you have are not testing DragEvents correctly.\\n\\n - If you are unit testing, ensure you have polyfilled DragEvent.\\n - If you are browser testing, ensure you are dispatching drag events correctly.\\n\\n Please see our testing guides for more information:\\n https://atlassian.design/components/pragmatic-drag-and-drop/core-package/testing\\n \".replace(/ {2}/g, ''));\n }\n return;\n }\n\n // the closest parent that is a draggable element will be marked as\n // the `event.target` for the event\n var target = event.target;\n\n // this source is only for elements\n // Note: only HTMLElements can have the \"draggable\" attribute\n if (!(target instanceof HTMLElement)) {\n return null;\n }\n\n // see if the thing being dragged is owned by us\n var entry = draggableRegistry.get(target);\n\n // no matching element found\n // → dragging an element with `draggable=\"true\"` that is not controlled by us\n if (!entry) {\n return null;\n }\n var input = getInput(event);\n var feedback = {\n element: entry.element,\n dragHandle: (_entry$dragHandle = entry.dragHandle) !== null && _entry$dragHandle !== void 0 ? _entry$dragHandle : null,\n input: input\n };\n\n // Check: does the draggable want to allow dragging?\n if (entry.canDrag && !entry.canDrag(feedback)) {\n // cancel drag operation if we cannot drag\n event.preventDefault();\n return null;\n }\n\n // Check: is there a drag handle and is the user using it?\n if (entry.dragHandle) {\n // technically don't need this util, but just being\n // consistent with how we look up what is under the users\n // cursor.\n var over = getElementFromPointWithoutHoneypot({\n x: input.clientX,\n y: input.clientY\n });\n\n // if we are not dragging from the drag handle (or something inside the drag handle)\n // then we will cancel the active drag\n if (!entry.dragHandle.contains(over)) {\n event.preventDefault();\n return null;\n }\n }\n\n /**\n * **Goal**\n * Pass information to other applications\n *\n * **Approach**\n * Put data into the native data store\n *\n * **What about the native adapter?**\n * When the element adapter puts native data into the native data store\n * the native adapter is not triggered in the current window,\n * but a native adapter in an external window _can_ be triggered\n *\n * **Why bake this into core?**\n * This functionality could be pulled out and exposed inside of\n * `onGenerateDragPreview`. But decided to make it a part of the\n * base API as it felt like a common enough use case and ended\n * up being a similar amount of code to include this function as\n * it was to expose the hook for it\n */\n var nativeData = (_entry$getInitialData = (_entry$getInitialData2 = entry.getInitialDataForExternal) === null || _entry$getInitialData2 === void 0 ? void 0 : _entry$getInitialData2.call(entry, feedback)) !== null && _entry$getInitialData !== void 0 ? _entry$getInitialData : null;\n if (nativeData) {\n for (var _i = 0, _Object$entries = Object.entries(nativeData); _i < _Object$entries.length; _i++) {\n var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),\n key = _Object$entries$_i[0],\n data = _Object$entries$_i[1];\n event.dataTransfer.setData(key, data !== null && data !== void 0 ? data : '');\n }\n }\n\n /**\n * 📱 For Android devices, a drag operation will not start unless\n * \"text/plain\" or \"text/uri-list\" data exists in the native data store\n * https://twitter.com/alexandereardon/status/1732189803754713424\n *\n * Tested on:\n * Device: Google Pixel 5\n * Android version: 14 (November 5, 2023)\n * Chrome version: 120.0\n */\n var types = event.dataTransfer.types;\n if (isAndroid() && !types.includes(textMediaType) && !types.includes(urlMediaType)) {\n event.dataTransfer.setData(textMediaType, androidFallbackText);\n }\n\n /**\n * 1. Must set any media type for `iOS15` to work\n * 2. We are also doing adding data so that the native adapter\n * can know that the element adapter has handled this drag\n *\n * We used to wrap this `setData()` in a `try/catch` for Firefox,\n * but it looks like that was not needed.\n *\n * Tested using: https://codesandbox.io/s/checking-firefox-throw-behaviour-on-dragstart-qt8h4f\n *\n * - ✅ Firefox@70.0 (Oct 2019) on macOS Sonoma\n * - ✅ Firefox@70.0 (Oct 2019) on macOS Big Sur\n * - ✅ Firefox@70.0 (Oct 2019) on Windows 10\n *\n * // just checking a few more combinations to be super safe\n *\n * - ✅ Chrome@78 (Oct 2019) on macOS Big Sur\n * - ✅ Chrome@78 (Oct 2019) on Windows 10\n * - ✅ Safari@14.1 on macOS Big Sur\n */\n event.dataTransfer.setData(elementAdapterNativeDataKey, '');\n var payload = {\n element: entry.element,\n dragHandle: (_entry$dragHandle2 = entry.dragHandle) !== null && _entry$dragHandle2 !== void 0 ? _entry$dragHandle2 : null,\n data: (_entry$getInitialData3 = (_entry$getInitialData4 = entry.getInitialData) === null || _entry$getInitialData4 === void 0 ? void 0 : _entry$getInitialData4.call(entry, feedback)) !== null && _entry$getInitialData3 !== void 0 ? _entry$getInitialData3 : {}\n };\n var dragType = {\n type: 'element',\n payload: payload,\n startedFrom: 'internal'\n };\n api.start({\n event: event,\n dragType: dragType\n });\n }\n }));\n },\n dispatchEventToSource: function dispatchEventToSource(_ref) {\n var _draggableRegistry$ge, _draggableRegistry$ge2;\n var eventName = _ref.eventName,\n payload = _ref.payload;\n // During a drag operation, a draggable can be:\n // - remounted with different functions\n // - removed completely\n // So we need to get the latest entry from the registry in order\n // to call the latest event functions\n\n (_draggableRegistry$ge = draggableRegistry.get(payload.source.element)) === null || _draggableRegistry$ge === void 0 || (_draggableRegistry$ge2 = _draggableRegistry$ge[eventName]) === null || _draggableRegistry$ge2 === void 0 || _draggableRegistry$ge2.call(_draggableRegistry$ge,\n // I cannot seem to get the types right here.\n // TS doesn't seem to like that one event can need `nativeSetDragImage`\n // @ts-expect-error\n payload);\n },\n onPostDispatch: honeyPotFix.getOnPostDispatch()\n});\nexport var dropTargetForElements = adapter.dropTarget;\nexport var monitorForElements = adapter.monitor;\nexport function draggable(args) {\n // Guardrail: warn if the drag handle is not contained in draggable element\n if (process.env.NODE_ENV !== 'production') {\n if (args.dragHandle && !args.element.contains(args.dragHandle)) {\n // eslint-disable-next-line no-console\n console.warn('Drag handle element must be contained in draggable element', {\n element: args.element,\n dragHandle: args.dragHandle\n });\n }\n }\n // Guardrail: warn if the draggable element is already registered\n if (process.env.NODE_ENV !== 'production') {\n var existing = draggableRegistry.get(args.element);\n if (existing) {\n // eslint-disable-next-line no-console\n console.warn('You have already registered a `draggable` on the same element', {\n existing: existing,\n proposed: args\n });\n }\n }\n return combine(\n // making the draggable register the adapter rather than drop targets\n // this is because you *must* have a draggable element to start a drag\n // but you _might_ not have any drop targets immediately\n // (You might create drop targets async)\n adapter.registerUsage(), addToRegistry(args), addAttribute(args.element, {\n attribute: 'draggable',\n value: 'true'\n }));\n}\n\n/** Common event payload for all events */\n\n/** A map containing payloads for all events */\n\n/** Common event payload for all drop target events */\n\n/** A map containing payloads for all events on drop targets */\n\n/** Arguments given to all feedback functions (eg `canDrag()`) on for a `draggable()` */\n\n/** Arguments given to all feedback functions (eg `canDrop()`) on a `dropTargetForElements()` */\n\n/** Arguments given to all monitor feedback functions (eg `canMonitor()`) for a `monitorForElements` */","import { ComfyNodeDefImpl } from '@/stores/nodeDefStore'\nimport { useNodeDefStore } from '@/stores/nodeDefStore'\nimport { defineStore } from 'pinia'\n\n/** Helper class that defines how to construct a node from a model. */\nexport class ModelNodeProvider {\n /** The node definition to use for this model. */\n public nodeDef: ComfyNodeDefImpl\n\n /** The node input key for where to inside the model name. */\n public key: string\n\n constructor(nodeDef: ComfyNodeDefImpl, key: string) {\n this.nodeDef = nodeDef\n this.key = key\n }\n}\n\n/** Service for mapping model types (by folder name) to nodes. */\nexport const useModelToNodeStore = defineStore('modelToNode', {\n state: () => ({\n modelToNodeMap: {} as Record<string, ModelNodeProvider[]>,\n nodeDefStore: useNodeDefStore(),\n haveDefaultsLoaded: false\n }),\n actions: {\n /**\n * Get the node provider for the given model type name.\n * @param modelType The name of the model type to get the node provider for.\n * @returns The node provider for the given model type name.\n */\n getNodeProvider(modelType: string): ModelNodeProvider {\n this.registerDefaults()\n return this.modelToNodeMap[modelType]?.[0]\n },\n\n /**\n * Get the list of all valid node providers for the given model type name.\n * @param modelType The name of the model type to get the node providers for.\n * @returns The list of all valid node providers for the given model type name.\n */\n getAllNodeProviders(modelType: string): ModelNodeProvider[] {\n this.registerDefaults()\n return this.modelToNodeMap[modelType] ?? []\n },\n\n /**\n * Register a node provider for the given model type name.\n * @param modelType The name of the model type to register the node provider for.\n * @param nodeProvider The node provider to register.\n */\n registerNodeProvider(modelType: string, nodeProvider: ModelNodeProvider) {\n this.registerDefaults()\n this.modelToNodeMap[modelType] ??= []\n this.modelToNodeMap[modelType].push(nodeProvider)\n },\n\n /**\n * Register a node provider for the given simple names.\n * @param modelType The name of the model type to register the node provider for.\n * @param nodeClass The node class name to register.\n * @param key The key to use for the node input.\n */\n quickRegister(modelType: string, nodeClass: string, key: string) {\n this.registerNodeProvider(\n modelType,\n new ModelNodeProvider(this.nodeDefStore.nodeDefsByName[nodeClass], key)\n )\n },\n\n registerDefaults() {\n if (this.haveDefaultsLoaded) {\n return\n }\n if (Object.keys(this.nodeDefStore.nodeDefsByName).length === 0) {\n return\n }\n this.haveDefaultsLoaded = true\n this.quickRegister('checkpoints', 'CheckpointLoaderSimple', 'ckpt_name')\n this.quickRegister(\n 'checkpoints',\n 'ImageOnlyCheckpointLoader',\n 'ckpt_name'\n )\n this.quickRegister('loras', 'LoraLoader', 'lora_name')\n this.quickRegister('loras', 'LoraLoaderModelOnly', 'lora_name')\n this.quickRegister('vae', 'VAELoader', 'vae_name')\n this.quickRegister('controlnet', 'ControlNetLoader', 'control_net_name')\n }\n }\n})\n","import BaseStyle from '@primevue/core/base/style';\n\nvar theme = function theme(_ref) {\n _ref.dt;\n return \"\\n.p-buttongroup .p-button {\\n margin: 0;\\n}\\n\\n.p-buttongroup .p-button:not(:last-child),\\n.p-buttongroup .p-button:not(:last-child):hover {\\n border-right: 0 none;\\n}\\n\\n.p-buttongroup .p-button:not(:first-of-type):not(:last-of-type) {\\n border-radius: 0;\\n}\\n\\n.p-buttongroup .p-button:first-of-type:not(:only-of-type) {\\n border-top-right-radius: 0;\\n border-bottom-right-radius: 0;\\n}\\n\\n.p-buttongroup .p-button:last-of-type:not(:only-of-type) {\\n border-top-left-radius: 0;\\n border-bottom-left-radius: 0;\\n}\\n\\n.p-buttongroup .p-button:focus {\\n position: relative;\\n z-index: 1;\\n}\\n\";\n};\nvar classes = {\n root: 'p-buttongroup p-component'\n};\nvar ButtonGroupStyle = BaseStyle.extend({\n name: 'buttongroup',\n theme: theme,\n classes: classes\n});\n\nexport { ButtonGroupStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import BaseComponent from '@primevue/core/basecomponent';\nimport ButtonGroupStyle from 'primevue/buttongroup/style';\nimport { openBlock, createElementBlock, mergeProps, renderSlot } from 'vue';\n\nvar script$1 = {\n name: 'BaseButtonGroup',\n \"extends\": BaseComponent,\n style: ButtonGroupStyle,\n provide: function provide() {\n return {\n $pcButtonGroup: this,\n $parentInstance: this\n };\n }\n};\n\nvar script = {\n name: 'ButtonGroup',\n \"extends\": script$1,\n inheritAttrs: false\n};\n\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"span\", mergeProps({\n \"class\": _ctx.cx('root'),\n role: \"group\"\n }, _ctx.ptmi('root')), [renderSlot(_ctx.$slots, \"default\")], 16);\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","<template>\n <ButtonGroup\n class=\"p-buttongroup-vertical absolute bottom-[10px] right-[10px] z-[1000] pointer-events-auto\"\n >\n <Button\n severity=\"secondary\"\n icon=\"pi pi-plus\"\n v-tooltip.left=\"t('graphCanvasMenu.zoomIn')\"\n @mousedown=\"repeat('Comfy.Canvas.ZoomIn')\"\n @mouseup=\"stopRepeat\"\n />\n <Button\n severity=\"secondary\"\n icon=\"pi pi-minus\"\n v-tooltip.left=\"t('graphCanvasMenu.zoomOut')\"\n @mousedown=\"repeat('Comfy.Canvas.ZoomOut')\"\n @mouseup=\"stopRepeat\"\n />\n <Button\n severity=\"secondary\"\n icon=\"pi pi-expand\"\n v-tooltip.left=\"t('graphCanvasMenu.resetView')\"\n @click=\"() => commandStore.execute('Comfy.Canvas.ResetView')\"\n />\n <Button\n severity=\"secondary\"\n v-tooltip.left=\"\n t(\n 'graphCanvasMenu.' + (canvasStore.readOnly ? 'panMode' : 'selectMode')\n ) + ' (Space)'\n \"\n @click=\"() => commandStore.execute('Comfy.Canvas.ToggleLock')\"\n >\n <template #icon>\n <i-material-symbols:pan-tool-outline v-if=\"canvasStore.readOnly\" />\n <i-simple-line-icons:cursor v-else />\n </template>\n </Button>\n <Button\n severity=\"secondary\"\n :icon=\"linkHidden ? 'pi pi-eye-slash' : 'pi pi-eye'\"\n v-tooltip.left=\"t('graphCanvasMenu.toggleLinkVisibility')\"\n @click=\"() => commandStore.execute('Comfy.Canvas.ToggleLinkVisibility')\"\n data-testid=\"toggle-link-visibility-button\"\n />\n </ButtonGroup>\n</template>\n\n<script setup lang=\"ts\">\nimport ButtonGroup from 'primevue/buttongroup'\nimport Button from 'primevue/button'\nimport { useCommandStore } from '@/stores/commandStore'\nimport { useCanvasStore } from '@/stores/graphStore'\nimport { useSettingStore } from '@/stores/settingStore'\nimport { useI18n } from 'vue-i18n'\nimport { LiteGraph } from '@comfyorg/litegraph'\nimport { computed } from 'vue'\n\nconst { t } = useI18n()\nconst commandStore = useCommandStore()\nconst canvasStore = useCanvasStore()\nconst settingStore = useSettingStore()\n\nconst linkHidden = computed(\n () => settingStore.get('Comfy.LinkRenderMode') === LiteGraph.HIDDEN_LINK\n)\n\nlet interval: number | null = null\nconst repeat = (command: string) => {\n if (interval) return\n const cmd = () => commandStore.execute(command)\n cmd()\n interval = window.setInterval(cmd, 100)\n}\nconst stopRepeat = () => {\n if (interval) {\n clearInterval(interval)\n interval = null\n }\n}\n</script>\n\n<style scoped>\n.p-buttongroup-vertical {\n display: flex;\n flex-direction: column;\n border-radius: var(--p-button-border-radius);\n overflow: hidden;\n border: 1px solid var(--p-panel-border-color);\n}\n\n.p-buttongroup-vertical .p-button {\n margin: 0;\n border-radius: 0;\n}\n</style>\n","<template>\n <teleport to=\".graph-canvas-container\">\n <LiteGraphCanvasSplitterOverlay v-if=\"betaMenuEnabled\">\n <template #side-bar-panel>\n <SideToolbar />\n </template>\n <template #graph-canvas-panel>\n <GraphCanvasMenu v-if=\"canvasMenuEnabled\" />\n </template>\n </LiteGraphCanvasSplitterOverlay>\n <TitleEditor />\n <GraphCanvasMenu v-if=\"!betaMenuEnabled && canvasMenuEnabled\" />\n <canvas ref=\"canvasRef\" id=\"graph-canvas\" tabindex=\"1\" />\n </teleport>\n <NodeSearchboxPopover />\n <NodeTooltip />\n</template>\n\n<script setup lang=\"ts\">\nimport TitleEditor from '@/components/graph/TitleEditor.vue'\nimport SideToolbar from '@/components/sidebar/SideToolbar.vue'\nimport LiteGraphCanvasSplitterOverlay from '@/components/LiteGraphCanvasSplitterOverlay.vue'\nimport NodeSearchboxPopover from '@/components/searchbox/NodeSearchBoxPopover.vue'\nimport NodeTooltip from '@/components/graph/NodeTooltip.vue'\nimport { ref, computed, onUnmounted, onMounted, watchEffect } from 'vue'\nimport { app as comfyApp } from '@/scripts/app'\nimport { useSettingStore } from '@/stores/settingStore'\nimport { dropTargetForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter'\nimport {\n ComfyNodeDefImpl,\n useNodeDefStore,\n useNodeFrequencyStore\n} from '@/stores/nodeDefStore'\nimport { useWorkspaceStore } from '@/stores/workspaceStateStore'\nimport {\n LiteGraph,\n LGraph,\n LLink,\n LGraphNode,\n LGraphGroup,\n DragAndScale,\n LGraphCanvas,\n ContextMenu,\n LGraphBadge\n} from '@comfyorg/litegraph'\nimport type { RenderedTreeExplorerNode } from '@/types/treeExplorerTypes'\nimport { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'\nimport { useCanvasStore } from '@/stores/graphStore'\nimport { ComfyModelDef } from '@/stores/modelStore'\nimport {\n ModelNodeProvider,\n useModelToNodeStore\n} from '@/stores/modelToNodeStore'\nimport GraphCanvasMenu from '@/components/graph/GraphCanvasMenu.vue'\nimport { useKeybindingStore } from '@/stores/keybindingStore'\n\nconst emit = defineEmits(['ready'])\nconst canvasRef = ref<HTMLCanvasElement | null>(null)\nconst settingStore = useSettingStore()\nconst nodeDefStore = useNodeDefStore()\nconst workspaceStore = useWorkspaceStore()\nconst canvasStore = useCanvasStore()\nconst modelToNodeStore = useModelToNodeStore()\nconst betaMenuEnabled = computed(\n () => settingStore.get('Comfy.UseNewMenu') !== 'Disabled'\n)\nconst canvasMenuEnabled = computed(() =>\n settingStore.get('Comfy.Graph.CanvasMenu')\n)\n\nwatchEffect(() => {\n const canvasInfoEnabled = settingStore.get('Comfy.Graph.CanvasInfo')\n if (canvasStore.canvas) {\n canvasStore.canvas.show_info = canvasInfoEnabled\n }\n})\n\nwatchEffect(() => {\n const zoomSpeed = settingStore.get('Comfy.Graph.ZoomSpeed')\n if (canvasStore.canvas) {\n canvasStore.canvas.zoom_speed = zoomSpeed\n }\n})\n\nwatchEffect(() => {\n nodeDefStore.showDeprecated = settingStore.get('Comfy.Node.ShowDeprecated')\n})\n\nwatchEffect(() => {\n nodeDefStore.showExperimental = settingStore.get(\n 'Comfy.Node.ShowExperimental'\n )\n})\n\nwatchEffect(() => {\n const spellcheckEnabled = settingStore.get('Comfy.TextareaWidget.Spellcheck')\n const textareas = document.querySelectorAll('textarea.comfy-multiline-input')\n\n textareas.forEach((textarea: HTMLTextAreaElement) => {\n textarea.spellcheck = spellcheckEnabled\n // Force recheck to ensure visual update\n textarea.focus()\n textarea.blur()\n })\n})\n\nwatchEffect(() => {\n if (!canvasStore.canvas) return\n\n if (canvasStore.draggingCanvas) {\n canvasStore.canvas.canvas.style.cursor = 'grabbing'\n return\n }\n\n if (canvasStore.readOnly) {\n canvasStore.canvas.canvas.style.cursor = 'grab'\n return\n }\n\n canvasStore.canvas.canvas.style.cursor = 'default'\n})\n\nlet dropTargetCleanup = () => {}\n\nonMounted(async () => {\n // Backward compatible\n // Assign all properties of lg to window\n window['LiteGraph'] = LiteGraph\n window['LGraph'] = LGraph\n window['LLink'] = LLink\n window['LGraphNode'] = LGraphNode\n window['LGraphGroup'] = LGraphGroup\n window['DragAndScale'] = DragAndScale\n window['LGraphCanvas'] = LGraphCanvas\n window['ContextMenu'] = ContextMenu\n window['LGraphBadge'] = LGraphBadge\n\n comfyApp.vueAppReady = true\n\n workspaceStore.spinner = true\n await comfyApp.setup(canvasRef.value)\n canvasStore.canvas = comfyApp.canvas\n workspaceStore.spinner = false\n\n window['app'] = comfyApp\n window['graph'] = comfyApp.graph\n\n dropTargetCleanup = dropTargetForElements({\n element: canvasRef.value,\n onDrop: (event) => {\n const loc = event.location.current.input\n const dndData = event.source.data\n\n if (dndData.type === 'tree-explorer-node') {\n const node = dndData.data as RenderedTreeExplorerNode\n if (node.data instanceof ComfyNodeDefImpl) {\n const nodeDef = node.data\n // Add an offset on x to make sure after adding the node, the cursor\n // is on the node (top left corner)\n const pos = comfyApp.clientPosToCanvasPos([\n loc.clientX - 20,\n loc.clientY\n ])\n comfyApp.addNodeOnGraph(nodeDef, { pos })\n } else if (node.data instanceof ComfyModelDef) {\n const model = node.data\n const pos = comfyApp.clientPosToCanvasPos([loc.clientX, loc.clientY])\n const nodeAtPos = comfyApp.graph.getNodeOnPos(pos[0], pos[1])\n let targetProvider: ModelNodeProvider | null = null\n let targetGraphNode: LGraphNode | null = null\n if (nodeAtPos) {\n const providers = modelToNodeStore.getAllNodeProviders(\n model.directory\n )\n for (const provider of providers) {\n if (provider.nodeDef.name === nodeAtPos.comfyClass) {\n targetGraphNode = nodeAtPos\n targetProvider = provider\n }\n }\n }\n if (!targetGraphNode) {\n const provider = modelToNodeStore.getNodeProvider(model.directory)\n if (provider) {\n targetGraphNode = comfyApp.addNodeOnGraph(provider.nodeDef, {\n pos\n })\n targetProvider = provider\n }\n }\n if (targetGraphNode) {\n const widget = targetGraphNode.widgets.find(\n (widget) => widget.name === targetProvider.key\n )\n if (widget) {\n widget.value = model.file_name\n }\n }\n }\n }\n }\n })\n\n // Load keybindings. This must be done after comfyApp loads settings.\n useKeybindingStore().loadUserKeybindings()\n\n // Migrate legacy bookmarks\n useNodeBookmarkStore().migrateLegacyBookmarks()\n\n // Explicitly initialize nodeSearchService to avoid indexing delay when\n // node search is triggered\n useNodeDefStore().nodeSearchService.endsWithFilterStartSequence('')\n\n // Non-blocking load of node frequencies\n useNodeFrequencyStore().loadNodeFrequencies()\n emit('ready')\n})\n\nonUnmounted(() => {\n dropTargetCleanup()\n})\n</script>\n","import BaseStyle from '@primevue/core/base/style';\n\nvar theme = function theme(_ref) {\n var dt = _ref.dt;\n return \"\\n.p-confirmpopup {\\n position: absolute;\\n margin-top: \".concat(dt('confirmpopup.gutter'), \";\\n top: 0;\\n left: 0;\\n background: \").concat(dt('confirmpopup.background'), \";\\n color: \").concat(dt('confirmpopup.color'), \";\\n border: 1px solid \").concat(dt('confirmpopup.border.color'), \";\\n border-radius: \").concat(dt('confirmpopup.border.radius'), \";\\n box-shadow: \").concat(dt('confirmpopup.shadow'), \";\\n}\\n\\n.p-confirmpopup-content {\\n display: flex;\\n align-items: center;\\n padding: \").concat(dt('confirmpopup.content.padding'), \";\\n gap: \").concat(dt('confirmpopup.content.gap'), \";\\n}\\n\\n.p-confirmpopup-icon {\\n font-size: \").concat(dt('confirmpopup.icon.size'), \";\\n width: \").concat(dt('confirmpopup.icon.size'), \";\\n height: \").concat(dt('confirmpopup.icon.size'), \";\\n color: \").concat(dt('confirmpopup.icon.color'), \";\\n}\\n\\n.p-confirmpopup-footer {\\n display: flex;\\n justify-content: flex-end;\\n gap: \").concat(dt('confirmpopup.footer.gap'), \";\\n padding: \").concat(dt('confirmpopup.footer.padding'), \";\\n}\\n\\n.p-confirmpopup-footer button {\\n width: auto;\\n}\\n\\n.p-confirmpopup-footer button:last-child {\\n margin: 0;\\n}\\n\\n.p-confirmpopup-flipped {\\n margin-top: calc(\").concat(dt('confirmpopup.gutter'), \" * -1);\\n margin-bottom: \").concat(dt('confirmpopup.gutter'), \";\\n}\\n\\n.p-confirmpopup-enter-from {\\n opacity: 0;\\n transform: scaleY(0.8);\\n}\\n\\n.p-confirmpopup-leave-to {\\n opacity: 0;\\n}\\n\\n.p-confirmpopup-enter-active {\\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\\n}\\n\\n.p-confirmpopup-leave-active {\\n transition: opacity 0.1s linear;\\n}\\n\\n.p-confirmpopup:after,\\n.p-confirmpopup:before {\\n bottom: 100%;\\n left: calc(\").concat(dt('confirmpopup.arrow.offset'), \" + \").concat(dt('confirmpopup.arrow.left'), \");\\n content: \\\" \\\";\\n height: 0;\\n width: 0;\\n position: absolute;\\n pointer-events: none;\\n}\\n\\n.p-confirmpopup:after {\\n border-width: calc(\").concat(dt('confirmpopup.gutter'), \" - 2px);\\n margin-left: calc(-1 * (\").concat(dt('confirmpopup.gutter'), \" - 2px));\\n border-style: solid;\\n border-color: transparent;\\n border-bottom-color: \").concat(dt('confirmpopup.background'), \";\\n}\\n\\n.p-confirmpopup:before {\\n border-width: \").concat(dt('confirmpopup.gutter'), \";\\n margin-left: calc(-1 * \").concat(dt('confirmpopup.gutter'), \");\\n border-style: solid;\\n border-color: transparent;\\n border-bottom-color: \").concat(dt('confirmpopup.border.color'), \";\\n}\\n\\n.p-confirmpopup-flipped:after,\\n.p-confirmpopup-flipped:before {\\n bottom: auto;\\n top: 100%;\\n}\\n\\n.p-confirmpopup-flipped:after {\\n border-bottom-color: transparent;\\n border-top-color: \").concat(dt('confirmpopup.background'), \";\\n}\\n\\n.p-confirmpopup-flipped:before {\\n border-bottom-color: transparent;\\n border-top-color: \").concat(dt('confirmpopup.border.color'), \";\\n}\\n\");\n};\nvar classes = {\n root: 'p-confirmpopup p-component',\n content: 'p-confirmpopup-content',\n icon: 'p-confirmpopup-icon',\n message: 'p-confirmpopup-message',\n footer: 'p-confirmpopup-footer',\n pcRejectButton: 'p-confirmpopup-reject-button',\n pcAcceptButton: 'p-confirmpopup-accept-button'\n};\nvar ConfirmPopupStyle = BaseStyle.extend({\n name: 'confirmpopup',\n theme: theme,\n classes: classes\n});\n\nexport { ConfirmPopupStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import { $dt } from '@primeuix/styled';\nimport { focus, absolutePosition, getOffset, addClass, isTouchDevice } from '@primeuix/utils/dom';\nimport { ZIndex } from '@primeuix/utils/zindex';\nimport { ConnectedOverlayScrollHandler } from '@primevue/core/utils';\nimport Button from 'primevue/button';\nimport ConfirmationEventBus from 'primevue/confirmationeventbus';\nimport FocusTrap from 'primevue/focustrap';\nimport OverlayEventBus from 'primevue/overlayeventbus';\nimport Portal from 'primevue/portal';\nimport BaseComponent from '@primevue/core/basecomponent';\nimport ConfirmPopupStyle from 'primevue/confirmpopup/style';\nimport { resolveComponent, resolveDirective, openBlock, createBlock, withCtx, createVNode, Transition, mergeProps, withDirectives, createElementBlock, renderSlot, Fragment, resolveDynamicComponent, normalizeClass, createCommentVNode, createElementVNode, toDisplayString, createSlots } from 'vue';\n\nvar script$1 = {\n name: 'BaseConfirmPopup',\n \"extends\": BaseComponent,\n props: {\n group: String\n },\n style: ConfirmPopupStyle,\n provide: function provide() {\n return {\n $pcConfirmPopup: this,\n $parentInstance: this\n };\n }\n};\n\nvar script = {\n name: 'ConfirmPopup',\n \"extends\": script$1,\n inheritAttrs: false,\n data: function data() {\n return {\n visible: false,\n confirmation: null,\n autoFocusAccept: null,\n autoFocusReject: null,\n target: null\n };\n },\n target: null,\n outsideClickListener: null,\n scrollHandler: null,\n resizeListener: null,\n container: null,\n confirmListener: null,\n closeListener: null,\n mounted: function mounted() {\n var _this = this;\n this.confirmListener = function (options) {\n if (!options) {\n return;\n }\n if (options.group === _this.group) {\n _this.confirmation = options;\n _this.target = options.target;\n if (_this.confirmation.onShow) {\n _this.confirmation.onShow();\n }\n _this.visible = true;\n }\n };\n this.closeListener = function () {\n _this.visible = false;\n _this.confirmation = null;\n };\n ConfirmationEventBus.on('confirm', this.confirmListener);\n ConfirmationEventBus.on('close', this.closeListener);\n },\n beforeUnmount: function beforeUnmount() {\n ConfirmationEventBus.off('confirm', this.confirmListener);\n ConfirmationEventBus.off('close', this.closeListener);\n this.unbindOutsideClickListener();\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n this.unbindResizeListener();\n if (this.container) {\n ZIndex.clear(this.container);\n this.container = null;\n }\n this.target = null;\n this.confirmation = null;\n },\n methods: {\n accept: function accept() {\n if (this.confirmation.accept) {\n this.confirmation.accept();\n }\n this.visible = false;\n },\n reject: function reject() {\n if (this.confirmation.reject) {\n this.confirmation.reject();\n }\n this.visible = false;\n },\n onHide: function onHide() {\n if (this.confirmation.onHide) {\n this.confirmation.onHide();\n }\n this.visible = false;\n },\n onAcceptKeydown: function onAcceptKeydown(event) {\n if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') {\n this.accept();\n focus(this.target);\n event.preventDefault();\n }\n },\n onRejectKeydown: function onRejectKeydown(event) {\n if (event.code === 'Space' || event.code === 'Enter' || event.code === 'NumpadEnter') {\n this.reject();\n focus(this.target);\n event.preventDefault();\n }\n },\n onEnter: function onEnter(el) {\n this.autoFocusAccept = this.confirmation.defaultFocus === undefined || this.confirmation.defaultFocus === 'accept' ? true : false;\n this.autoFocusReject = this.confirmation.defaultFocus === 'reject' ? true : false;\n this.target = document.activeElement;\n this.bindOutsideClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n ZIndex.set('overlay', el, this.$primevue.config.zIndex.overlay);\n },\n onAfterEnter: function onAfterEnter() {\n this.focus();\n },\n onLeave: function onLeave() {\n this.autoFocusAccept = null;\n this.autoFocusReject = null;\n focus(this.target);\n this.target = null;\n this.unbindOutsideClickListener();\n this.unbindScrollListener();\n this.unbindResizeListener();\n },\n onAfterLeave: function onAfterLeave(el) {\n ZIndex.clear(el);\n },\n alignOverlay: function alignOverlay() {\n absolutePosition(this.container, this.target, false);\n var containerOffset = getOffset(this.container);\n var targetOffset = getOffset(this.target);\n var arrowLeft = 0;\n if (containerOffset.left < targetOffset.left) {\n arrowLeft = targetOffset.left - containerOffset.left;\n }\n this.container.style.setProperty($dt('confirmpopup.arrow.left').name, \"\".concat(arrowLeft, \"px\"));\n if (containerOffset.top < targetOffset.top) {\n this.container.setAttribute('data-p-confirmpopup-flipped', 'true');\n !this.isUnstyled && addClass(this.container, 'p-confirmpopup-flipped');\n }\n },\n bindOutsideClickListener: function bindOutsideClickListener() {\n var _this2 = this;\n if (!this.outsideClickListener) {\n this.outsideClickListener = function (event) {\n if (_this2.visible && _this2.container && !_this2.container.contains(event.target) && !_this2.isTargetClicked(event)) {\n if (_this2.confirmation.onHide) {\n _this2.confirmation.onHide();\n }\n _this2.visible = false;\n } else {\n _this2.alignOverlay();\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 _this3 = this;\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.target, function () {\n if (_this3.visible) {\n _this3.visible = false;\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 _this4 = this;\n if (!this.resizeListener) {\n this.resizeListener = function () {\n if (_this4.visible && !isTouchDevice()) {\n _this4.visible = false;\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 focus: function focus() {\n var focusTarget = this.container.querySelector('[autofocus]');\n if (focusTarget) {\n focusTarget.focus({\n preventScroll: true\n }); // Firefox requires preventScroll\n }\n },\n isTargetClicked: function isTargetClicked(event) {\n return this.target && (this.target === event.target || this.target.contains(event.target));\n },\n containerRef: function containerRef(el) {\n this.container = el;\n },\n onOverlayClick: function onOverlayClick(event) {\n OverlayEventBus.emit('overlay-click', {\n originalEvent: event,\n target: this.target\n });\n },\n onOverlayKeydown: function onOverlayKeydown(event) {\n if (event.code === 'Escape') {\n ConfirmationEventBus.emit('close', this.closeListener);\n focus(this.target);\n }\n }\n },\n computed: {\n message: function message() {\n return this.confirmation ? this.confirmation.message : null;\n },\n acceptLabel: function acceptLabel() {\n if (this.confirmation) {\n var _confirmation$acceptP;\n var confirmation = this.confirmation;\n return confirmation.acceptLabel || ((_confirmation$acceptP = confirmation.acceptProps) === null || _confirmation$acceptP === void 0 ? void 0 : _confirmation$acceptP.label) || this.$primevue.config.locale.accept;\n }\n return this.$primevue.config.locale.accept;\n },\n rejectLabel: function rejectLabel() {\n if (this.confirmation) {\n var _confirmation$rejectP;\n var confirmation = this.confirmation;\n return confirmation.rejectLabel || ((_confirmation$rejectP = confirmation.rejectProps) === null || _confirmation$rejectP === void 0 ? void 0 : _confirmation$rejectP.label) || this.$primevue.config.locale.reject;\n }\n return this.$primevue.config.locale.reject;\n },\n acceptIcon: function acceptIcon() {\n var _this$confirmation;\n return this.confirmation ? this.confirmation.acceptIcon : (_this$confirmation = this.confirmation) !== null && _this$confirmation !== void 0 && _this$confirmation.acceptProps ? this.confirmation.acceptProps.icon : null;\n },\n rejectIcon: function rejectIcon() {\n var _this$confirmation2;\n return this.confirmation ? this.confirmation.rejectIcon : (_this$confirmation2 = this.confirmation) !== null && _this$confirmation2 !== void 0 && _this$confirmation2.rejectProps ? this.confirmation.rejectProps.icon : null;\n }\n },\n components: {\n Button: Button,\n Portal: Portal\n },\n directives: {\n focustrap: FocusTrap\n }\n};\n\nvar _hoisted_1 = [\"aria-modal\"];\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_Button = resolveComponent(\"Button\");\n var _component_Portal = resolveComponent(\"Portal\");\n var _directive_focustrap = resolveDirective(\"focustrap\");\n return openBlock(), createBlock(_component_Portal, null, {\n \"default\": withCtx(function () {\n return [createVNode(Transition, mergeProps({\n name: \"p-confirmpopup\",\n onEnter: $options.onEnter,\n onAfterEnter: $options.onAfterEnter,\n onLeave: $options.onLeave,\n onAfterLeave: $options.onAfterLeave\n }, _ctx.ptm('transition')), {\n \"default\": withCtx(function () {\n var _$data$confirmation$r, _$data$confirmation$r2, _$data$confirmation$a;\n return [$data.visible ? withDirectives((openBlock(), createElementBlock(\"div\", mergeProps({\n key: 0,\n ref: $options.containerRef,\n role: \"alertdialog\",\n \"class\": _ctx.cx('root'),\n \"aria-modal\": $data.visible,\n onClick: _cache[2] || (_cache[2] = function () {\n return $options.onOverlayClick && $options.onOverlayClick.apply($options, arguments);\n }),\n onKeydown: _cache[3] || (_cache[3] = function () {\n return $options.onOverlayKeydown && $options.onOverlayKeydown.apply($options, arguments);\n })\n }, _ctx.ptmi('root')), [_ctx.$slots.container ? renderSlot(_ctx.$slots, \"container\", {\n key: 0,\n message: $data.confirmation,\n acceptCallback: $options.accept,\n rejectCallback: $options.reject\n }) : (openBlock(), createElementBlock(Fragment, {\n key: 1\n }, [!_ctx.$slots.message ? (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 0,\n \"class\": _ctx.cx('content')\n }, _ctx.ptm('content')), [renderSlot(_ctx.$slots, \"icon\", {}, function () {\n return [_ctx.$slots.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.icon), {\n key: 0,\n \"class\": normalizeClass(_ctx.cx('icon'))\n }, null, 8, [\"class\"])) : $data.confirmation.icon ? (openBlock(), createElementBlock(\"span\", mergeProps({\n key: 1,\n \"class\": [$data.confirmation.icon, _ctx.cx('icon')]\n }, _ctx.ptm('icon')), null, 16)) : createCommentVNode(\"\", true)];\n }), createElementVNode(\"span\", mergeProps({\n \"class\": _ctx.cx('message')\n }, _ctx.ptm('message')), toDisplayString($data.confirmation.message), 17)], 16)) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.message), {\n key: 1,\n message: $data.confirmation\n }, null, 8, [\"message\"])), createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('footer')\n }, _ctx.ptm('footer')), [createVNode(_component_Button, mergeProps({\n \"class\": [_ctx.cx('pcRejectButton'), $data.confirmation.rejectClass],\n autofocus: $data.autoFocusReject,\n unstyled: _ctx.unstyled,\n size: ((_$data$confirmation$r = $data.confirmation.rejectProps) === null || _$data$confirmation$r === void 0 ? void 0 : _$data$confirmation$r.size) || 'small',\n text: ((_$data$confirmation$r2 = $data.confirmation.rejectProps) === null || _$data$confirmation$r2 === void 0 ? void 0 : _$data$confirmation$r2.text) || false,\n onClick: _cache[0] || (_cache[0] = function ($event) {\n return $options.reject();\n }),\n onKeydown: $options.onRejectKeydown\n }, $data.confirmation.rejectProps, {\n label: $options.rejectLabel,\n pt: _ctx.ptm('pcRejectButton')\n }), createSlots({\n _: 2\n }, [$options.rejectIcon || _ctx.$slots.rejecticon ? {\n name: \"icon\",\n fn: withCtx(function (iconProps) {\n return [renderSlot(_ctx.$slots, \"rejecticon\", {}, function () {\n return [createElementVNode(\"span\", mergeProps({\n \"class\": [$options.rejectIcon, iconProps[\"class\"]]\n }, _ctx.ptm('pcRejectButton')['icon'], {\n \"data-pc-section\": \"rejectbuttonicon\"\n }), null, 16)];\n })];\n }),\n key: \"0\"\n } : undefined]), 1040, [\"class\", \"autofocus\", \"unstyled\", \"size\", \"text\", \"onKeydown\", \"label\", \"pt\"]), createVNode(_component_Button, mergeProps({\n \"class\": [_ctx.cx('pcAcceptButton'), $data.confirmation.acceptClass],\n autofocus: $data.autoFocusAccept,\n unstyled: _ctx.unstyled,\n size: ((_$data$confirmation$a = $data.confirmation.acceptProps) === null || _$data$confirmation$a === void 0 ? void 0 : _$data$confirmation$a.size) || 'small',\n onClick: _cache[1] || (_cache[1] = function ($event) {\n return $options.accept();\n }),\n onKeydown: $options.onAcceptKeydown\n }, $data.confirmation.acceptProps, {\n label: $options.acceptLabel,\n pt: _ctx.ptm('pcAcceptButton')\n }), createSlots({\n _: 2\n }, [$options.acceptIcon || _ctx.$slots.accepticon ? {\n name: \"icon\",\n fn: withCtx(function (iconProps) {\n return [renderSlot(_ctx.$slots, \"accepticon\", {}, function () {\n return [createElementVNode(\"span\", mergeProps({\n \"class\": [$options.acceptIcon, iconProps[\"class\"]]\n }, _ctx.ptm('pcAcceptButton')['icon'], {\n \"data-pc-section\": \"acceptbuttonicon\"\n }), null, 16)];\n })];\n }),\n key: \"0\"\n } : undefined]), 1040, [\"class\", \"autofocus\", \"unstyled\", \"size\", \"onKeydown\", \"label\", \"pt\"])], 16)], 64))], 16, _hoisted_1)), [[_directive_focustrap]]) : createCommentVNode(\"\", true)];\n }),\n _: 3\n }, 16, [\"onEnter\", \"onAfterEnter\", \"onLeave\", \"onAfterLeave\"])];\n }),\n _: 3\n });\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","import BaseStyle from '@primevue/core/base/style';\n\nvar theme = function theme(_ref) {\n var dt = _ref.dt;\n return \"\\n.p-contextmenu {\\n background: \".concat(dt('contextmenu.background'), \";\\n color: \").concat(dt('contextmenu.color'), \";\\n border: 1px solid \").concat(dt('contextmenu.border.color'), \";\\n border-radius: \").concat(dt('contextmenu.border.radius'), \";\\n box-shadow: \").concat(dt('contextmenu.shadow'), \";\\n min-width: 12.5rem;\\n}\\n\\n.p-contextmenu-root-list,\\n.p-contextmenu-submenu {\\n margin: 0;\\n padding: \").concat(dt('contextmenu.list.padding'), \";\\n list-style: none;\\n outline: 0 none;\\n display: flex;\\n flex-direction: column;\\n gap: \").concat(dt('contextmenu.list.gap'), \";\\n}\\n\\n.p-contextmenu-submenu {\\n position: absolute;\\n display: flex;\\n flex-direction: column;\\n min-width: 100%;\\n z-index: 1;\\n background: \").concat(dt('contextmenu.background'), \";\\n color: \").concat(dt('contextmenu.color'), \";\\n border: 1px solid \").concat(dt('contextmenu.border.color'), \";\\n border-radius: \").concat(dt('contextmenu.border.radius'), \";\\n box-shadow: \").concat(dt('contextmenu.shadow'), \";\\n}\\n\\n.p-contextmenu-item {\\n position: relative;\\n}\\n\\n.p-contextmenu-item-content {\\n transition: background \").concat(dt('contextmenu.transition.duration'), \", color \").concat(dt('contextmenu.transition.duration'), \";\\n border-radius: \").concat(dt('contextmenu.item.border.radius'), \";\\n color: \").concat(dt('contextmenu.item.color'), \";\\n}\\n\\n.p-contextmenu-item-link {\\n cursor: pointer;\\n display: flex;\\n align-items: center;\\n text-decoration: none;\\n overflow: hidden;\\n position: relative;\\n color: inherit;\\n padding: \").concat(dt('contextmenu.item.padding'), \";\\n gap: \").concat(dt('contextmenu.item.gap'), \";\\n user-select: none;\\n}\\n\\n.p-contextmenu-item-label {\\n line-height: 1;\\n}\\n\\n.p-contextmenu-item-icon {\\n color: \").concat(dt('contextmenu.item.icon.color'), \";\\n}\\n\\n.p-contextmenu-submenu-icon {\\n color: \").concat(dt('contextmenu.submenu.icon.color'), \";\\n margin-left: auto;\\n font-size: \").concat(dt('contextmenu.submenu.icon.size'), \";\\n width: \").concat(dt('contextmenu.submenu.icon.size'), \";\\n height: \").concat(dt('contextmenu.submenu.icon.size'), \";\\n}\\n\\n.p-contextmenu-item.p-focus > .p-contextmenu-item-content {\\n color: \").concat(dt('contextmenu.item.focus.color'), \";\\n background: \").concat(dt('contextmenu.item.focus.background'), \";\\n}\\n\\n.p-contextmenu-item.p-focus > .p-contextmenu-item-content .p-contextmenu-item-icon {\\n color: \").concat(dt('contextmenu.item.icon.focus.color'), \";\\n}\\n\\n.p-contextmenu-item.p-focus > .p-contextmenu-item-content .p-contextmenu-submenu-icon {\\n color: \").concat(dt('contextmenu.submenu.icon.focus.color'), \";\\n}\\n\\n.p-contextmenu-item:not(.p-disabled) > .p-contextmenu-item-content:hover {\\n color: \").concat(dt('contextmenu.item.focus.color'), \";\\n background: \").concat(dt('contextmenu.item.focus.background'), \";\\n}\\n\\n.p-contextmenu-item:not(.p-disabled) > .p-contextmenu-item-content:hover .p-contextmenu-item-icon {\\n color: \").concat(dt('contextmenu.item.icon.focus.color'), \";\\n}\\n\\n.p-contextmenu-item:not(.p-disabled) > .p-contextmenu-item-content:hover .p-contextmenu-submenu-icon {\\n color: \").concat(dt('contextmenu.submenu.icon.focus.color'), \";\\n}\\n\\n.p-contextmenu-item-active > .p-contextmenu-item-content {\\n color: \").concat(dt('contextmenu.item.active.color'), \";\\n background: \").concat(dt('contextmenu.item.active.background'), \";\\n}\\n\\n.p-contextmenu-item-active > .p-contextmenu-item-content .p-contextmenu-item-icon {\\n color: \").concat(dt('contextmenu.item.icon.active.color'), \";\\n}\\n\\n.p-contextmenu-item-active > .p-contextmenu-item-content .p-contextmenu-submenu-icon {\\n color: \").concat(dt('contextmenu.submenu.icon.active.color'), \";\\n}\\n\\n.p-contextmenu-separator {\\n border-top: 1px solid \").concat(dt('contextmenu.separator.border.color'), \";\\n}\\n\\n.p-contextmenu-enter-from,\\n.p-contextmenu-leave-active {\\n opacity: 0;\\n}\\n\\n.p-contextmenu-enter-active {\\n transition: opacity 250ms;\\n}\\n\");\n};\nvar classes = {\n root: 'p-contextmenu p-component',\n rootList: 'p-contextmenu-root-list',\n item: function item(_ref2) {\n var instance = _ref2.instance,\n processedItem = _ref2.processedItem;\n return ['p-contextmenu-item', {\n 'p-contextmenu-item-active': instance.isItemActive(processedItem),\n 'p-focus': instance.isItemFocused(processedItem),\n 'p-disabled': instance.isItemDisabled(processedItem)\n }];\n },\n itemContent: 'p-contextmenu-item-content',\n itemLink: 'p-contextmenu-item-link',\n itemIcon: 'p-contextmenu-item-icon',\n itemLabel: 'p-contextmenu-item-label',\n submenuIcon: 'p-contextmenu-submenu-icon',\n submenu: 'p-contextmenu-submenu',\n separator: 'p-contextmenu-separator'\n};\nvar ContextMenuStyle = BaseStyle.extend({\n name: 'contextmenu',\n theme: theme,\n classes: classes\n});\n\nexport { ContextMenuStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import { UniqueComponentId } from '@primevue/core/utils';\nimport { nestedPosition, focus, findSingle, addStyle, getHiddenElementOuterWidth, getHiddenElementOuterHeight, getViewport, isTouchDevice } from '@primeuix/utils/dom';\nimport { resolve, isNotEmpty, isPrintableCharacter, isEmpty, findLastIndex } from '@primeuix/utils/object';\nimport { ZIndex } from '@primeuix/utils/zindex';\nimport Portal from 'primevue/portal';\nimport BaseComponent from '@primevue/core/basecomponent';\nimport ContextMenuStyle from 'primevue/contextmenu/style';\nimport AngleRightIcon from '@primevue/icons/angleright';\nimport Ripple from 'primevue/ripple';\nimport { mergeProps, resolveComponent, resolveDirective, openBlock, createBlock, Transition, withCtx, createElementBlock, Fragment, renderList, createElementVNode, withDirectives, resolveDynamicComponent, normalizeClass, createCommentVNode, toDisplayString, createVNode } from 'vue';\n\nvar script$2 = {\n name: 'BaseContextMenu',\n \"extends\": BaseComponent,\n props: {\n model: {\n type: Array,\n \"default\": null\n },\n appendTo: {\n type: [String, Object],\n \"default\": 'body'\n },\n autoZIndex: {\n type: Boolean,\n \"default\": true\n },\n baseZIndex: {\n type: Number,\n \"default\": 0\n },\n global: {\n type: Boolean,\n \"default\": false\n },\n tabindex: {\n type: Number,\n \"default\": 0\n },\n ariaLabelledby: {\n type: String,\n \"default\": null\n },\n ariaLabel: {\n type: String,\n \"default\": null\n }\n },\n style: ContextMenuStyle,\n provide: function provide() {\n return {\n $pcContextMenu: this,\n $parentInstance: this\n };\n }\n};\n\nvar script$1 = {\n name: 'ContextMenuSub',\n hostName: 'ContextMenu',\n \"extends\": BaseComponent,\n emits: ['item-click', 'item-mouseenter', 'item-mousemove'],\n props: {\n items: {\n type: Array,\n \"default\": null\n },\n menuId: {\n type: String,\n \"default\": null\n },\n focusedItemId: {\n type: String,\n \"default\": null\n },\n root: {\n type: Boolean,\n \"default\": false\n },\n visible: {\n type: Boolean,\n \"default\": false\n },\n level: {\n type: Number,\n \"default\": 0\n },\n templates: {\n type: Object,\n \"default\": null\n },\n activeItemPath: {\n type: Object,\n \"default\": null\n },\n tabindex: {\n type: Number,\n \"default\": 0\n }\n },\n methods: {\n getItemId: function getItemId(processedItem) {\n return \"\".concat(this.menuId, \"_\").concat(processedItem.key);\n },\n getItemKey: function getItemKey(processedItem) {\n return this.getItemId(processedItem);\n },\n getItemProp: function getItemProp(processedItem, name, params) {\n return processedItem && processedItem.item ? resolve(processedItem.item[name], params) : undefined;\n },\n getItemLabel: function getItemLabel(processedItem) {\n return this.getItemProp(processedItem, 'label');\n },\n getItemLabelId: function getItemLabelId(processedItem) {\n return \"\".concat(this.menuId, \"_\").concat(processedItem.key, \"_label\");\n },\n getPTOptions: function getPTOptions(key, processedItem, index) {\n return this.ptm(key, {\n context: {\n item: processedItem.item,\n active: this.isItemActive(processedItem),\n focused: this.isItemFocused(processedItem),\n disabled: this.isItemDisabled(processedItem),\n index: index\n }\n });\n },\n isItemActive: function isItemActive(processedItem) {\n return this.activeItemPath.some(function (path) {\n return path.key === processedItem.key;\n });\n },\n isItemVisible: function isItemVisible(processedItem) {\n return this.getItemProp(processedItem, 'visible') !== false;\n },\n isItemDisabled: function isItemDisabled(processedItem) {\n return this.getItemProp(processedItem, 'disabled');\n },\n isItemFocused: function isItemFocused(processedItem) {\n return this.focusedItemId === this.getItemId(processedItem);\n },\n isItemGroup: function isItemGroup(processedItem) {\n return isNotEmpty(processedItem.items);\n },\n onItemClick: function onItemClick(event, processedItem) {\n this.getItemProp(processedItem, 'command', {\n originalEvent: event,\n item: processedItem.item\n });\n this.$emit('item-click', {\n originalEvent: event,\n processedItem: processedItem,\n isFocus: true\n });\n },\n onItemMouseEnter: function onItemMouseEnter(event, processedItem) {\n this.$emit('item-mouseenter', {\n originalEvent: event,\n processedItem: processedItem\n });\n },\n onItemMouseMove: function onItemMouseMove(event, processedItem) {\n this.$emit('item-mousemove', {\n originalEvent: event,\n processedItem: processedItem,\n isFocus: true\n });\n },\n getAriaSetSize: function getAriaSetSize() {\n var _this = this;\n return this.items.filter(function (processedItem) {\n return _this.isItemVisible(processedItem) && !_this.getItemProp(processedItem, 'separator');\n }).length;\n },\n getAriaPosInset: function getAriaPosInset(index) {\n var _this2 = this;\n return index - this.items.slice(0, index).filter(function (processedItem) {\n return _this2.isItemVisible(processedItem) && _this2.getItemProp(processedItem, 'separator');\n }).length + 1;\n },\n onEnter: function onEnter() {\n nestedPosition(this.$refs.container, this.level);\n },\n getMenuItemProps: function getMenuItemProps(processedItem, index) {\n return {\n action: mergeProps({\n \"class\": this.cx('itemLink'),\n tabindex: -1,\n 'aria-hidden': true\n }, this.getPTOptions('itemLink', processedItem, index)),\n icon: mergeProps({\n \"class\": [this.cx('itemIcon'), this.getItemProp(processedItem, 'icon')]\n }, this.getPTOptions('itemIcon', processedItem, index)),\n label: mergeProps({\n \"class\": this.cx('itemLabel')\n }, this.getPTOptions('itemLabel', processedItem, index)),\n submenuicon: mergeProps({\n \"class\": this.cx('submenuIcon')\n }, this.getPTOptions('submenuicon', processedItem, index))\n };\n }\n },\n components: {\n AngleRightIcon: AngleRightIcon\n },\n directives: {\n ripple: Ripple\n }\n};\n\nvar _hoisted_1 = [\"tabindex\"];\nvar _hoisted_2 = [\"id\", \"aria-label\", \"aria-disabled\", \"aria-expanded\", \"aria-haspopup\", \"aria-level\", \"aria-setsize\", \"aria-posinset\", \"data-p-active\", \"data-p-focused\", \"data-p-disabled\"];\nvar _hoisted_3 = [\"onClick\", \"onMouseenter\", \"onMousemove\"];\nvar _hoisted_4 = [\"href\", \"target\"];\nvar _hoisted_5 = [\"id\"];\nvar _hoisted_6 = [\"id\"];\nfunction render$1(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_AngleRightIcon = resolveComponent(\"AngleRightIcon\");\n var _component_ContextMenuSub = resolveComponent(\"ContextMenuSub\", true);\n var _directive_ripple = resolveDirective(\"ripple\");\n return openBlock(), createBlock(Transition, mergeProps({\n name: \"p-contextmenusub\",\n onEnter: $options.onEnter\n }, _ctx.ptm('menu.transition')), {\n \"default\": withCtx(function () {\n return [($props.root ? true : $props.visible) ? (openBlock(), createElementBlock(\"ul\", mergeProps({\n key: 0,\n ref: \"container\",\n tabindex: $props.tabindex\n }, _ctx.ptm('rootList')), [(openBlock(true), createElementBlock(Fragment, null, renderList($props.items, function (processedItem, index) {\n return openBlock(), createElementBlock(Fragment, {\n key: $options.getItemKey(processedItem)\n }, [$options.isItemVisible(processedItem) && !$options.getItemProp(processedItem, 'separator') ? (openBlock(), createElementBlock(\"li\", mergeProps({\n key: 0,\n id: $options.getItemId(processedItem),\n style: $options.getItemProp(processedItem, 'style'),\n \"class\": [_ctx.cx('item', {\n processedItem: processedItem\n }), $options.getItemProp(processedItem, 'class')],\n role: \"menuitem\",\n \"aria-label\": $options.getItemLabel(processedItem),\n \"aria-disabled\": $options.isItemDisabled(processedItem) || undefined,\n \"aria-expanded\": $options.isItemGroup(processedItem) ? $options.isItemActive(processedItem) : undefined,\n \"aria-haspopup\": $options.isItemGroup(processedItem) && !$options.getItemProp(processedItem, 'to') ? 'menu' : undefined,\n \"aria-level\": $props.level + 1,\n \"aria-setsize\": $options.getAriaSetSize(),\n \"aria-posinset\": $options.getAriaPosInset(index),\n ref_for: true\n }, $options.getPTOptions('item', processedItem, index), {\n \"data-p-active\": $options.isItemActive(processedItem),\n \"data-p-focused\": $options.isItemFocused(processedItem),\n \"data-p-disabled\": $options.isItemDisabled(processedItem)\n }), [createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('itemContent'),\n onClick: function onClick($event) {\n return $options.onItemClick($event, processedItem);\n },\n onMouseenter: function onMouseenter($event) {\n return $options.onItemMouseEnter($event, processedItem);\n },\n onMousemove: function onMousemove($event) {\n return $options.onItemMouseMove($event, processedItem);\n },\n ref_for: true\n }, $options.getPTOptions('itemContent', processedItem, index)), [!$props.templates.item ? withDirectives((openBlock(), createElementBlock(\"a\", mergeProps({\n key: 0,\n href: $options.getItemProp(processedItem, 'url'),\n \"class\": _ctx.cx('itemLink'),\n target: $options.getItemProp(processedItem, 'target'),\n tabindex: \"-1\",\n ref_for: true\n }, $options.getPTOptions('itemLink', processedItem, index)), [$props.templates.itemicon ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.itemicon), {\n key: 0,\n item: processedItem.item,\n \"class\": normalizeClass(_ctx.cx('itemIcon'))\n }, null, 8, [\"item\", \"class\"])) : $options.getItemProp(processedItem, 'icon') ? (openBlock(), createElementBlock(\"span\", mergeProps({\n key: 1,\n \"class\": [_ctx.cx('itemIcon'), $options.getItemProp(processedItem, 'icon')],\n ref_for: true\n }, $options.getPTOptions('itemIcon', processedItem, index)), null, 16)) : createCommentVNode(\"\", true), createElementVNode(\"span\", mergeProps({\n id: $options.getItemLabelId(processedItem),\n \"class\": _ctx.cx('itemLabel'),\n ref_for: true\n }, $options.getPTOptions('itemLabel', processedItem, index)), toDisplayString($options.getItemLabel(processedItem)), 17, _hoisted_5), $options.getItemProp(processedItem, 'items') ? (openBlock(), createElementBlock(Fragment, {\n key: 2\n }, [$props.templates.submenuicon ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.submenuicon), {\n key: 0,\n active: $options.isItemActive(processedItem),\n \"class\": normalizeClass(_ctx.cx('submenuIcon'))\n }, null, 8, [\"active\", \"class\"])) : (openBlock(), createBlock(_component_AngleRightIcon, mergeProps({\n key: 1,\n \"class\": _ctx.cx('submenuIcon'),\n ref_for: true\n }, $options.getPTOptions('submenuicon', processedItem, index)), null, 16, [\"class\"]))], 64)) : createCommentVNode(\"\", true)], 16, _hoisted_4)), [[_directive_ripple]]) : (openBlock(), createBlock(resolveDynamicComponent($props.templates.item), {\n key: 1,\n item: processedItem.item,\n hasSubmenu: $options.getItemProp(processedItem, 'items'),\n label: $options.getItemLabel(processedItem),\n props: $options.getMenuItemProps(processedItem, index)\n }, null, 8, [\"item\", \"hasSubmenu\", \"label\", \"props\"]))], 16, _hoisted_3), $options.isItemVisible(processedItem) && $options.isItemGroup(processedItem) ? (openBlock(), createBlock(_component_ContextMenuSub, mergeProps({\n key: 0,\n id: $options.getItemId(processedItem) + '_list',\n role: \"menu\",\n \"class\": _ctx.cx('submenu'),\n menuId: $props.menuId,\n focusedItemId: $props.focusedItemId,\n items: processedItem.items,\n templates: $props.templates,\n activeItemPath: $props.activeItemPath,\n level: $props.level + 1,\n visible: $options.isItemActive(processedItem) && $options.isItemGroup(processedItem),\n pt: _ctx.pt,\n unstyled: _ctx.unstyled,\n onItemClick: _cache[0] || (_cache[0] = function ($event) {\n return _ctx.$emit('item-click', $event);\n }),\n onItemMouseenter: _cache[1] || (_cache[1] = function ($event) {\n return _ctx.$emit('item-mouseenter', $event);\n }),\n onItemMousemove: _cache[2] || (_cache[2] = function ($event) {\n return _ctx.$emit('item-mousemove', $event);\n }),\n \"aria-labelledby\": $options.getItemLabelId(processedItem),\n ref_for: true\n }, _ctx.ptm('submenu')), null, 16, [\"id\", \"class\", \"menuId\", \"focusedItemId\", \"items\", \"templates\", \"activeItemPath\", \"level\", \"visible\", \"pt\", \"unstyled\", \"aria-labelledby\"])) : createCommentVNode(\"\", true)], 16, _hoisted_2)) : createCommentVNode(\"\", true), $options.isItemVisible(processedItem) && $options.getItemProp(processedItem, 'separator') ? (openBlock(), createElementBlock(\"li\", mergeProps({\n key: 1,\n id: $options.getItemId(processedItem),\n style: $options.getItemProp(processedItem, 'style'),\n \"class\": [_ctx.cx('separator'), $options.getItemProp(processedItem, 'class')],\n role: \"separator\",\n ref_for: true\n }, _ctx.ptm('separator')), null, 16, _hoisted_6)) : createCommentVNode(\"\", true)], 64);\n }), 128))], 16, _hoisted_1)) : createCommentVNode(\"\", true)];\n }),\n _: 1\n }, 16, [\"onEnter\"]);\n}\n\nscript$1.render = render$1;\n\nvar script = {\n name: 'ContextMenu',\n \"extends\": script$2,\n inheritAttrs: false,\n emits: ['focus', 'blur', 'show', 'hide', 'before-show', 'before-hide'],\n target: null,\n outsideClickListener: null,\n resizeListener: null,\n documentContextMenuListener: null,\n pageX: null,\n pageY: null,\n container: null,\n list: null,\n data: function data() {\n return {\n id: this.$attrs.id,\n focused: false,\n focusedItemInfo: {\n index: -1,\n level: 0,\n parentKey: ''\n },\n activeItemPath: [],\n visible: false,\n submenuVisible: false\n };\n },\n watch: {\n '$attrs.id': function $attrsId(newValue) {\n this.id = newValue || UniqueComponentId();\n },\n activeItemPath: function activeItemPath(newPath) {\n if (isNotEmpty(newPath)) {\n this.bindOutsideClickListener();\n this.bindResizeListener();\n } else if (!this.visible) {\n this.unbindOutsideClickListener();\n this.unbindResizeListener();\n }\n }\n },\n mounted: function mounted() {\n this.id = this.id || UniqueComponentId();\n if (this.global) {\n this.bindDocumentContextMenuListener();\n }\n },\n beforeUnmount: function beforeUnmount() {\n this.unbindResizeListener();\n this.unbindOutsideClickListener();\n this.unbindDocumentContextMenuListener();\n if (this.container && this.autoZIndex) {\n ZIndex.clear(this.container);\n }\n this.target = null;\n this.container = null;\n },\n methods: {\n getItemProp: function getItemProp(item, name) {\n return item ? resolve(item[name]) : undefined;\n },\n getItemLabel: function getItemLabel(item) {\n return this.getItemProp(item, 'label');\n },\n isItemDisabled: function isItemDisabled(item) {\n return this.getItemProp(item, 'disabled');\n },\n isItemVisible: function isItemVisible(item) {\n return this.getItemProp(item, 'visible') !== false;\n },\n isItemGroup: function isItemGroup(item) {\n return isNotEmpty(this.getItemProp(item, 'items'));\n },\n isItemSeparator: function isItemSeparator(item) {\n return this.getItemProp(item, 'separator');\n },\n getProccessedItemLabel: function getProccessedItemLabel(processedItem) {\n return processedItem ? this.getItemLabel(processedItem.item) : undefined;\n },\n isProccessedItemGroup: function isProccessedItemGroup(processedItem) {\n return processedItem && isNotEmpty(processedItem.items);\n },\n toggle: function toggle(event) {\n this.visible ? this.hide() : this.show(event);\n },\n show: function show(event) {\n this.$emit('before-show');\n this.activeItemPath = [];\n this.focusedItemInfo = {\n index: -1,\n level: 0,\n parentKey: ''\n };\n focus(this.list);\n this.pageX = event.pageX;\n this.pageY = event.pageY;\n this.visible ? this.position() : this.visible = true;\n event.stopPropagation();\n event.preventDefault();\n },\n hide: function hide() {\n this.$emit('before-hide');\n this.visible = false;\n this.activeItemPath = [];\n this.focusedItemInfo = {\n index: -1,\n level: 0,\n parentKey: ''\n };\n },\n onFocus: function onFocus(event) {\n this.focused = true;\n this.focusedItemInfo = this.focusedItemInfo.index !== -1 ? this.focusedItemInfo : {\n index: -1,\n level: 0,\n parentKey: ''\n };\n this.$emit('focus', event);\n },\n onBlur: function onBlur(event) {\n this.focused = false;\n this.focusedItemInfo = {\n index: -1,\n level: 0,\n parentKey: ''\n };\n this.searchValue = '';\n this.$emit('blur', event);\n },\n onKeyDown: function onKeyDown(event) {\n var metaKey = event.metaKey || event.ctrlKey;\n switch (event.code) {\n case 'ArrowDown':\n this.onArrowDownKey(event);\n break;\n case 'ArrowUp':\n this.onArrowUpKey(event);\n break;\n case 'ArrowLeft':\n this.onArrowLeftKey(event);\n break;\n case 'ArrowRight':\n this.onArrowRightKey(event);\n break;\n case 'Home':\n this.onHomeKey(event);\n break;\n case 'End':\n this.onEndKey(event);\n break;\n case 'Space':\n this.onSpaceKey(event);\n break;\n case 'Enter':\n case 'NumpadEnter':\n this.onEnterKey(event);\n break;\n case 'Escape':\n this.onEscapeKey(event);\n break;\n case 'Tab':\n this.onTabKey(event);\n break;\n case 'PageDown':\n case 'PageUp':\n case 'Backspace':\n case 'ShiftLeft':\n case 'ShiftRight':\n //NOOP\n break;\n default:\n if (!metaKey && isPrintableCharacter(event.key)) {\n this.searchItems(event, event.key);\n }\n break;\n }\n },\n onItemChange: function onItemChange(event) {\n var processedItem = event.processedItem,\n isFocus = event.isFocus;\n if (isEmpty(processedItem)) return;\n var index = processedItem.index,\n key = processedItem.key,\n level = processedItem.level,\n parentKey = processedItem.parentKey,\n items = processedItem.items;\n var grouped = isNotEmpty(items);\n var activeItemPath = this.activeItemPath.filter(function (p) {\n return p.parentKey !== parentKey && p.parentKey !== key;\n });\n if (grouped) {\n activeItemPath.push(processedItem);\n this.submenuVisible = true;\n }\n this.focusedItemInfo = {\n index: index,\n level: level,\n parentKey: parentKey\n };\n this.activeItemPath = activeItemPath;\n isFocus && focus(this.list);\n },\n onItemClick: function onItemClick(event) {\n var processedItem = event.processedItem;\n var grouped = this.isProccessedItemGroup(processedItem);\n var selected = this.isSelected(processedItem);\n if (selected) {\n var index = processedItem.index,\n key = processedItem.key,\n level = processedItem.level,\n parentKey = processedItem.parentKey;\n this.activeItemPath = this.activeItemPath.filter(function (p) {\n return key !== p.key && key.startsWith(p.key);\n });\n this.focusedItemInfo = {\n index: index,\n level: level,\n parentKey: parentKey\n };\n focus(this.list);\n } else {\n grouped ? this.onItemChange(event) : this.hide();\n }\n },\n onItemMouseEnter: function onItemMouseEnter(event) {\n this.onItemChange(event);\n },\n onItemMouseMove: function onItemMouseMove(event) {\n if (this.focused) {\n this.changeFocusedItemIndex(event, event.processedItem.index);\n }\n },\n onArrowDownKey: function onArrowDownKey(event) {\n var itemIndex = this.focusedItemInfo.index !== -1 ? this.findNextItemIndex(this.focusedItemInfo.index) : this.findFirstFocusedItemIndex();\n this.changeFocusedItemIndex(event, itemIndex);\n event.preventDefault();\n },\n onArrowUpKey: function onArrowUpKey(event) {\n if (event.altKey) {\n if (this.focusedItemInfo.index !== -1) {\n var processedItem = this.visibleItems[this.focusedItemInfo.index];\n var grouped = this.isProccessedItemGroup(processedItem);\n !grouped && this.onItemChange({\n originalEvent: event,\n processedItem: processedItem\n });\n }\n this.popup && this.hide();\n event.preventDefault();\n } else {\n var itemIndex = this.focusedItemInfo.index !== -1 ? this.findPrevItemIndex(this.focusedItemInfo.index) : this.findLastFocusedItemIndex();\n this.changeFocusedItemIndex(event, itemIndex);\n event.preventDefault();\n }\n },\n onArrowLeftKey: function onArrowLeftKey(event) {\n var _this = this;\n var processedItem = this.visibleItems[this.focusedItemInfo.index];\n var parentItem = this.activeItemPath.find(function (p) {\n return p.key === processedItem.parentKey;\n });\n var root = isEmpty(processedItem.parent);\n if (!root) {\n this.focusedItemInfo = {\n index: -1,\n parentKey: parentItem ? parentItem.parentKey : ''\n };\n this.searchValue = '';\n this.onArrowDownKey(event);\n }\n this.activeItemPath = this.activeItemPath.filter(function (p) {\n return p.parentKey !== _this.focusedItemInfo.parentKey;\n });\n event.preventDefault();\n },\n onArrowRightKey: function onArrowRightKey(event) {\n var processedItem = this.visibleItems[this.focusedItemInfo.index];\n var grouped = this.isProccessedItemGroup(processedItem);\n if (grouped) {\n this.onItemChange({\n originalEvent: event,\n processedItem: processedItem\n });\n this.focusedItemInfo = {\n index: -1,\n parentKey: processedItem.key\n };\n this.searchValue = '';\n this.onArrowDownKey(event);\n }\n event.preventDefault();\n },\n onHomeKey: function onHomeKey(event) {\n this.changeFocusedItemIndex(event, this.findFirstItemIndex());\n event.preventDefault();\n },\n onEndKey: function onEndKey(event) {\n this.changeFocusedItemIndex(event, this.findLastItemIndex());\n event.preventDefault();\n },\n onEnterKey: function onEnterKey(event) {\n if (this.focusedItemInfo.index !== -1) {\n var element = findSingle(this.list, \"li[id=\\\"\".concat(\"\".concat(this.focusedItemIdx), \"\\\"]\"));\n var anchorElement = element && findSingle(element, '[data-pc-section=\"itemlink\"]');\n anchorElement ? anchorElement.click() : element && element.click();\n var processedItem = this.visibleItems[this.focusedItemInfo.index];\n var grouped = this.isProccessedItemGroup(processedItem);\n !grouped && (this.focusedItemInfo.index = this.findFirstFocusedItemIndex());\n }\n event.preventDefault();\n },\n onSpaceKey: function onSpaceKey(event) {\n this.onEnterKey(event);\n },\n onEscapeKey: function onEscapeKey(event) {\n this.hide();\n !this.popup && (this.focusedItemInfo.index = this.findFirstFocusedItemIndex());\n event.preventDefault();\n },\n onTabKey: function onTabKey(event) {\n if (this.focusedItemInfo.index !== -1) {\n var processedItem = this.visibleItems[this.focusedItemInfo.index];\n var grouped = this.isProccessedItemGroup(processedItem);\n !grouped && this.onItemChange({\n originalEvent: event,\n processedItem: processedItem\n });\n }\n this.hide();\n },\n onEnter: function onEnter(el) {\n addStyle(el, {\n position: 'absolute'\n });\n this.position();\n if (this.autoZIndex) {\n ZIndex.set('menu', el, this.baseZIndex + this.$primevue.config.zIndex.menu);\n }\n },\n onAfterEnter: function onAfterEnter() {\n this.bindOutsideClickListener();\n this.bindResizeListener();\n this.$emit('show');\n focus(this.list);\n },\n onLeave: function onLeave() {\n this.$emit('hide');\n this.container = null;\n },\n onAfterLeave: function onAfterLeave(el) {\n if (this.autoZIndex) {\n ZIndex.clear(el);\n }\n this.unbindOutsideClickListener();\n this.unbindResizeListener();\n },\n position: function position() {\n var left = this.pageX + 1;\n var top = this.pageY + 1;\n var width = this.container.offsetParent ? this.container.offsetWidth : getHiddenElementOuterWidth(this.container);\n var height = this.container.offsetParent ? this.container.offsetHeight : getHiddenElementOuterHeight(this.container);\n var viewport = getViewport();\n\n //flip\n if (left + width - document.body.scrollLeft > viewport.width) {\n left -= width;\n }\n\n //flip\n if (top + height - document.body.scrollTop > viewport.height) {\n top -= height;\n }\n\n //fit\n if (left < document.body.scrollLeft) {\n left = document.body.scrollLeft;\n }\n\n //fit\n if (top < document.body.scrollTop) {\n top = document.body.scrollTop;\n }\n this.container.style.left = left + 'px';\n this.container.style.top = top + 'px';\n },\n bindOutsideClickListener: function bindOutsideClickListener() {\n var _this2 = this;\n if (!this.outsideClickListener) {\n this.outsideClickListener = function (event) {\n var isOutsideContainer = _this2.container && !_this2.container.contains(event.target);\n var isOutsideTarget = _this2.visible ? !(_this2.target && (_this2.target === event.target || _this2.target.contains(event.target))) : true;\n if (isOutsideContainer && isOutsideTarget) {\n _this2.hide();\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 bindResizeListener: function bindResizeListener() {\n var _this3 = this;\n if (!this.resizeListener) {\n this.resizeListener = function () {\n if (_this3.visible && !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 bindDocumentContextMenuListener: function bindDocumentContextMenuListener() {\n var _this4 = this;\n if (!this.documentContextMenuListener) {\n this.documentContextMenuListener = function (event) {\n event.button === 2 && _this4.show(event);\n };\n document.addEventListener('contextmenu', this.documentContextMenuListener);\n }\n },\n unbindDocumentContextMenuListener: function unbindDocumentContextMenuListener() {\n if (this.documentContextMenuListener) {\n document.removeEventListener('contextmenu', this.documentContextMenuListener);\n this.documentContextMenuListener = null;\n }\n },\n isItemMatched: function isItemMatched(processedItem) {\n var _this$getProccessedIt;\n return this.isValidItem(processedItem) && ((_this$getProccessedIt = this.getProccessedItemLabel(processedItem)) === null || _this$getProccessedIt === void 0 ? void 0 : _this$getProccessedIt.toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase()));\n },\n isValidItem: function isValidItem(processedItem) {\n return !!processedItem && !this.isItemDisabled(processedItem.item) && !this.isItemSeparator(processedItem.item) && this.isItemVisible(processedItem.item);\n },\n isValidSelectedItem: function isValidSelectedItem(processedItem) {\n return this.isValidItem(processedItem) && this.isSelected(processedItem);\n },\n isSelected: function isSelected(processedItem) {\n return this.activeItemPath.some(function (p) {\n return p.key === processedItem.key;\n });\n },\n findFirstItemIndex: function findFirstItemIndex() {\n var _this5 = this;\n return this.visibleItems.findIndex(function (processedItem) {\n return _this5.isValidItem(processedItem);\n });\n },\n findLastItemIndex: function findLastItemIndex() {\n var _this6 = this;\n return findLastIndex(this.visibleItems, function (processedItem) {\n return _this6.isValidItem(processedItem);\n });\n },\n findNextItemIndex: function findNextItemIndex(index) {\n var _this7 = this;\n var matchedItemIndex = index < this.visibleItems.length - 1 ? this.visibleItems.slice(index + 1).findIndex(function (processedItem) {\n return _this7.isValidItem(processedItem);\n }) : -1;\n return matchedItemIndex > -1 ? matchedItemIndex + index + 1 : index;\n },\n findPrevItemIndex: function findPrevItemIndex(index) {\n var _this8 = this;\n var matchedItemIndex = index > 0 ? findLastIndex(this.visibleItems.slice(0, index), function (processedItem) {\n return _this8.isValidItem(processedItem);\n }) : -1;\n return matchedItemIndex > -1 ? matchedItemIndex : index;\n },\n findSelectedItemIndex: function findSelectedItemIndex() {\n var _this9 = this;\n return this.visibleItems.findIndex(function (processedItem) {\n return _this9.isValidSelectedItem(processedItem);\n });\n },\n findFirstFocusedItemIndex: function findFirstFocusedItemIndex() {\n var selectedIndex = this.findSelectedItemIndex();\n return selectedIndex < 0 ? this.findFirstItemIndex() : selectedIndex;\n },\n findLastFocusedItemIndex: function findLastFocusedItemIndex() {\n var selectedIndex = this.findSelectedItemIndex();\n return selectedIndex < 0 ? this.findLastItemIndex() : selectedIndex;\n },\n searchItems: function searchItems(event, _char) {\n var _this10 = this;\n this.searchValue = (this.searchValue || '') + _char;\n var itemIndex = -1;\n var matched = false;\n if (this.focusedItemInfo.index !== -1) {\n itemIndex = this.visibleItems.slice(this.focusedItemInfo.index).findIndex(function (processedItem) {\n return _this10.isItemMatched(processedItem);\n });\n itemIndex = itemIndex === -1 ? this.visibleItems.slice(0, this.focusedItemInfo.index).findIndex(function (processedItem) {\n return _this10.isItemMatched(processedItem);\n }) : itemIndex + this.focusedItemInfo.index;\n } else {\n itemIndex = this.visibleItems.findIndex(function (processedItem) {\n return _this10.isItemMatched(processedItem);\n });\n }\n if (itemIndex !== -1) {\n matched = true;\n }\n if (itemIndex === -1 && this.focusedItemInfo.index === -1) {\n itemIndex = this.findFirstFocusedItemIndex();\n }\n if (itemIndex !== -1) {\n this.changeFocusedItemIndex(event, itemIndex);\n }\n if (this.searchTimeout) {\n clearTimeout(this.searchTimeout);\n }\n this.searchTimeout = setTimeout(function () {\n _this10.searchValue = '';\n _this10.searchTimeout = null;\n }, 500);\n return matched;\n },\n changeFocusedItemIndex: function changeFocusedItemIndex(event, index) {\n if (this.focusedItemInfo.index !== index) {\n this.focusedItemInfo.index = index;\n this.scrollInView();\n }\n },\n scrollInView: function scrollInView() {\n var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;\n var id = index !== -1 ? \"\".concat(this.id, \"_\").concat(index) : this.focusedItemIdx;\n var element = findSingle(this.list, \"li[id=\\\"\".concat(id, \"\\\"]\"));\n if (element) {\n element.scrollIntoView && element.scrollIntoView({\n block: 'nearest',\n inline: 'start'\n });\n }\n },\n createProcessedItems: function createProcessedItems(items) {\n var _this11 = this;\n var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var parentKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';\n var processedItems = [];\n items && items.forEach(function (item, index) {\n var key = (parentKey !== '' ? parentKey + '_' : '') + index;\n var newItem = {\n item: item,\n index: index,\n level: level,\n key: key,\n parent: parent,\n parentKey: parentKey\n };\n newItem['items'] = _this11.createProcessedItems(item.items, level + 1, newItem, key);\n processedItems.push(newItem);\n });\n return processedItems;\n },\n containerRef: function containerRef(el) {\n this.container = el;\n },\n listRef: function listRef(el) {\n this.list = el ? el.$el : undefined;\n }\n },\n computed: {\n processedItems: function processedItems() {\n return this.createProcessedItems(this.model || []);\n },\n visibleItems: function visibleItems() {\n var _this12 = this;\n var processedItem = this.activeItemPath.find(function (p) {\n return p.key === _this12.focusedItemInfo.parentKey;\n });\n return processedItem ? processedItem.items : this.processedItems;\n },\n focusedItemIdx: function focusedItemIdx() {\n return this.focusedItemInfo.index !== -1 ? \"\".concat(this.id).concat(isNotEmpty(this.focusedItemInfo.parentKey) ? '_' + this.focusedItemInfo.parentKey : '', \"_\").concat(this.focusedItemInfo.index) : null;\n }\n },\n components: {\n ContextMenuSub: script$1,\n Portal: Portal\n }\n};\n\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_ContextMenuSub = resolveComponent(\"ContextMenuSub\");\n var _component_Portal = resolveComponent(\"Portal\");\n return openBlock(), createBlock(_component_Portal, {\n appendTo: _ctx.appendTo\n }, {\n \"default\": withCtx(function () {\n return [createVNode(Transition, mergeProps({\n name: \"p-contextmenu\",\n onEnter: $options.onEnter,\n onAfterEnter: $options.onAfterEnter,\n onLeave: $options.onLeave,\n onAfterLeave: $options.onAfterLeave\n }, _ctx.ptm('transition')), {\n \"default\": withCtx(function () {\n return [$data.visible ? (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 0,\n ref: $options.containerRef,\n \"class\": _ctx.cx('root')\n }, _ctx.ptmi('root')), [createVNode(_component_ContextMenuSub, {\n ref: $options.listRef,\n id: $data.id + '_list',\n \"class\": normalizeClass(_ctx.cx('rootList')),\n role: \"menubar\",\n root: true,\n tabindex: _ctx.tabindex,\n \"aria-orientation\": \"vertical\",\n \"aria-activedescendant\": $data.focused ? $options.focusedItemIdx : undefined,\n menuId: $data.id,\n focusedItemId: $data.focused ? $options.focusedItemIdx : undefined,\n items: $options.processedItems,\n templates: _ctx.$slots,\n activeItemPath: $data.activeItemPath,\n \"aria-labelledby\": _ctx.ariaLabelledby,\n \"aria-label\": _ctx.ariaLabel,\n level: 0,\n visible: $data.submenuVisible,\n pt: _ctx.pt,\n unstyled: _ctx.unstyled,\n onFocus: $options.onFocus,\n onBlur: $options.onBlur,\n onKeydown: $options.onKeyDown,\n onItemClick: $options.onItemClick,\n onItemMouseenter: $options.onItemMouseEnter,\n onItemMousemove: $options.onItemMouseMove\n }, null, 8, [\"id\", \"class\", \"tabindex\", \"aria-activedescendant\", \"menuId\", \"focusedItemId\", \"items\", \"templates\", \"activeItemPath\", \"aria-labelledby\", \"aria-label\", \"visible\", \"pt\", \"unstyled\", \"onFocus\", \"onBlur\", \"onKeydown\", \"onItemClick\", \"onItemMouseenter\", \"onItemMousemove\"])], 16)) : createCommentVNode(\"\", true)];\n }),\n _: 1\n }, 16, [\"onEnter\", \"onAfterEnter\", \"onLeave\", \"onAfterLeave\"])];\n }),\n _: 1\n }, 8, [\"appendTo\"]);\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","<!-- A image with placeholder fallback on error -->\n<template>\n <span\n v-if=\"!imageBroken\"\n class=\"comfy-image-wrap\"\n :class=\"[{ contain: contain }]\"\n >\n <img\n v-if=\"contain\"\n :src=\"src\"\n @error=\"handleImageError\"\n :data-test=\"src\"\n class=\"comfy-image-blur\"\n :style=\"{ 'background-image': `url(${src})` }\"\n />\n <img\n :src=\"src\"\n @error=\"handleImageError\"\n class=\"comfy-image-main\"\n :class=\"[...classArray]\"\n />\n </span>\n <div v-if=\"imageBroken\" class=\"broken-image-placeholder\">\n <i class=\"pi pi-image\"></i>\n <span>{{ $t('imageFailedToLoad') }}</span>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref } from 'vue'\n\nconst props = withDefaults(\n defineProps<{\n src: string\n class?: string | string[] | object\n contain: boolean\n }>(),\n {\n contain: false\n }\n)\n\nconst imageBroken = ref(false)\nconst handleImageError = (e: Event) => {\n imageBroken.value = true\n}\n\nconst classArray = computed(() => {\n if (Array.isArray(props.class)) {\n return props.class\n } else if (typeof props.class === 'string') {\n return props.class.split(' ')\n } else if (typeof props.class === 'object') {\n return Object.keys(props.class).filter((key) => props.class[key])\n }\n return []\n})\n</script>\n\n<style scoped>\n.comfy-image-wrap {\n display: contents;\n}\n\n.comfy-image-blur {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n.comfy-image-main {\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center;\n z-index: 1;\n}\n\n.contain .comfy-image-wrap {\n position: relative;\n width: 100%;\n height: 100%;\n}\n\n.contain .comfy-image-main {\n object-fit: contain;\n backdrop-filter: blur(10px);\n position: absolute;\n}\n\n.broken-image-placeholder {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n margin: 2rem;\n}\n\n.broken-image-placeholder i {\n font-size: 3rem;\n margin-bottom: 0.5rem;\n}\n</style>\n","<template>\n <div class=\"result-container\" ref=\"resultContainer\">\n <template\n v-if=\"result.mediaType === 'images' || result.mediaType === 'gifs'\"\n >\n <ComfyImage\n :src=\"result.url\"\n class=\"task-output-image\"\n :contain=\"imageFit === 'contain'\"\n />\n <div class=\"image-preview-mask\">\n <Button\n icon=\"pi pi-eye\"\n severity=\"secondary\"\n @click=\"emit('preview', result)\"\n rounded\n />\n </div>\n </template>\n <!-- TODO: handle more media types -->\n <div v-else class=\"task-result-preview\">\n <i class=\"pi pi-file\"></i>\n <span>{{ result.mediaType }}</span>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ResultItemImpl } from '@/stores/queueStore'\nimport ComfyImage from '@/components/common/ComfyImage.vue'\nimport Button from 'primevue/button'\nimport { computed, onMounted, ref } from 'vue'\nimport { useSettingStore } from '@/stores/settingStore'\n\nconst props = defineProps<{\n result: ResultItemImpl\n}>()\n\nconst emit = defineEmits<{\n (e: 'preview', result: ResultItemImpl): void\n}>()\n\nconst resultContainer = ref<HTMLElement | null>(null)\nconst settingStore = useSettingStore()\nconst imageFit = computed<string>(() =>\n settingStore.get('Comfy.Queue.ImageFit')\n)\n\nonMounted(() => {\n if (props.result.mediaType === 'images') {\n resultContainer.value?.querySelectorAll('img').forEach((img) => {\n img.draggable = true\n })\n }\n})\n</script>\n\n<style scoped>\n.result-container {\n width: 100%;\n height: 100%;\n aspect-ratio: 1 / 1;\n overflow: hidden;\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.image-preview-mask {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n display: flex;\n align-items: center;\n justify-content: center;\n opacity: 0;\n transition: opacity 0.3s ease;\n z-index: 1;\n}\n\n.result-container:hover .image-preview-mask {\n opacity: 1;\n}\n</style>\n","<template>\n <div class=\"task-item\" @contextmenu=\"handleContextMenu\">\n <div class=\"task-result-preview\">\n <template v-if=\"task.displayStatus === TaskItemDisplayStatus.Completed\">\n <ResultItem\n v-if=\"flatOutputs.length\"\n :result=\"coverResult\"\n @preview=\"handlePreview\"\n />\n </template>\n <template v-if=\"task.displayStatus === TaskItemDisplayStatus.Running\">\n <i v-if=\"!progressPreviewBlobUrl\" class=\"pi pi-spin pi-spinner\"></i>\n <img\n v-else\n :src=\"progressPreviewBlobUrl\"\n class=\"progress-preview-img\"\n />\n </template>\n <span v-else-if=\"task.displayStatus === TaskItemDisplayStatus.Pending\"\n >...</span\n >\n <i\n v-else-if=\"task.displayStatus === TaskItemDisplayStatus.Cancelled\"\n class=\"pi pi-exclamation-triangle\"\n ></i>\n <i\n v-else-if=\"task.displayStatus === TaskItemDisplayStatus.Failed\"\n class=\"pi pi-exclamation-circle\"\n ></i>\n </div>\n\n <div class=\"task-item-details\">\n <div class=\"tag-wrapper status-tag-group\">\n <Tag v-if=\"isFlatTask && task.isHistory\" class=\"node-name-tag\">\n <Button\n class=\"task-node-link\"\n :label=\"`${node?.type} (#${node?.id})`\"\n link\n size=\"small\"\n @click=\"app.goToNode(node?.id)\"\n />\n </Tag>\n <Tag :severity=\"taskTagSeverity(task.displayStatus)\">\n <span v-html=\"taskStatusText(task.displayStatus)\"></span>\n <span v-if=\"task.isHistory\" class=\"task-time\">\n {{ formatTime(task.executionTimeInSeconds) }}\n </span>\n <span v-if=\"isFlatTask\" class=\"task-prompt-id\">\n {{ task.promptId.split('-')[0] }}\n </span>\n </Tag>\n </div>\n <div class=\"tag-wrapper\">\n <Button\n v-if=\"task.isHistory && flatOutputs.length > 1\"\n outlined\n @click=\"handleOutputLengthClick\"\n >\n <span style=\"font-weight: bold\">{{ flatOutputs.length }}</span>\n </Button>\n </div>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, onMounted, onUnmounted } from 'vue'\nimport Button from 'primevue/button'\nimport Tag from 'primevue/tag'\nimport ResultItem from './ResultItem.vue'\nimport { TaskItemDisplayStatus, type TaskItemImpl } from '@/stores/queueStore'\nimport { ComfyNode } from '@/types/comfyWorkflow'\nimport { app } from '@/scripts/app'\nimport { api } from '@/scripts/api'\n\nconst props = defineProps<{\n task: TaskItemImpl\n isFlatTask: boolean\n}>()\n\nconst flatOutputs = props.task.flatOutputs\nconst coverResult = flatOutputs.length\n ? props.task.previewOutput || flatOutputs[0]\n : null\n// Using `==` instead of `===` because NodeId can be a string or a number\nconst node: ComfyNode | null = flatOutputs.length\n ? props.task.workflow.nodes.find(\n (n: ComfyNode) => n.id == coverResult.nodeId\n ) ?? null\n : null\nconst progressPreviewBlobUrl = ref('')\n\nconst emit = defineEmits<{\n (\n e: 'contextmenu',\n value: { task: TaskItemImpl; event: MouseEvent; node?: ComfyNode }\n ): void\n (e: 'preview', value: TaskItemImpl): void\n (e: 'task-output-length-clicked', value: TaskItemImpl): void\n}>()\n\nonMounted(() => {\n api.addEventListener('b_preview', onProgressPreviewReceived)\n})\n\nonUnmounted(() => {\n api.removeEventListener('b_preview', onProgressPreviewReceived)\n})\n\nconst handleContextMenu = (e: MouseEvent) => {\n emit('contextmenu', { task: props.task, event: e, node })\n}\n\nconst handlePreview = () => {\n emit('preview', props.task)\n}\n\nconst handleOutputLengthClick = () => {\n emit('task-output-length-clicked', props.task)\n}\n\nconst taskTagSeverity = (status: TaskItemDisplayStatus) => {\n switch (status) {\n case TaskItemDisplayStatus.Pending:\n return 'secondary'\n case TaskItemDisplayStatus.Running:\n return 'info'\n case TaskItemDisplayStatus.Completed:\n return 'success'\n case TaskItemDisplayStatus.Failed:\n return 'danger'\n case TaskItemDisplayStatus.Cancelled:\n return 'warn'\n }\n}\n\nconst taskStatusText = (status: TaskItemDisplayStatus) => {\n switch (status) {\n case TaskItemDisplayStatus.Pending:\n return 'Pending'\n case TaskItemDisplayStatus.Running:\n return '<i class=\"pi pi-spin pi-spinner\" style=\"font-weight: bold\"></i> Running'\n case TaskItemDisplayStatus.Completed:\n return '<i class=\"pi pi-check\" style=\"font-weight: bold\"></i>'\n case TaskItemDisplayStatus.Failed:\n return 'Failed'\n case TaskItemDisplayStatus.Cancelled:\n return 'Cancelled'\n }\n}\n\nconst formatTime = (time?: number) => {\n if (time === undefined) {\n return ''\n }\n return `${time.toFixed(2)}s`\n}\n\nconst onProgressPreviewReceived = async ({ detail }: CustomEvent) => {\n if (props.task.displayStatus === TaskItemDisplayStatus.Running) {\n progressPreviewBlobUrl.value = URL.createObjectURL(detail)\n }\n}\n</script>\n\n<style scoped>\n.task-result-preview {\n aspect-ratio: 1 / 1;\n overflow: hidden;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n}\n\n.task-result-preview i,\n.task-result-preview span {\n font-size: 2rem;\n}\n\n.task-item {\n display: flex;\n flex-direction: column;\n border-radius: 4px;\n overflow: hidden;\n position: relative;\n}\n\n.task-item-details {\n position: absolute;\n bottom: 0;\n padding: 0.6rem;\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n z-index: 1;\n}\n\n.task-node-link {\n padding: 2px;\n}\n\n/* In dark mode, transparent background color for tags is not ideal for tags that\nare floating on top of images. */\n.tag-wrapper {\n background-color: var(--p-primary-contrast-color);\n border-radius: 6px;\n display: inline-flex;\n}\n\n.node-name-tag {\n word-break: break-all;\n}\n\n.status-tag-group {\n display: flex;\n flex-direction: column;\n}\n\n.progress-preview-img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center;\n}\n</style>\n","import BaseStyle from '@primevue/core/base/style';\n\nvar theme = function theme(_ref) {\n var dt = _ref.dt;\n return \"\\n.p-galleria {\\n overflow: hidden;\\n border-style: solid;\\n border-width: \".concat(dt('galleria.border.width'), \";\\n border-color: \").concat(dt('galleria.border.color'), \";\\n border-radius: \").concat(dt('galleria.border.radius'), \";\\n}\\n\\n.p-galleria-content {\\n display: flex;\\n flex-direction: column;\\n}\\n\\n.p-galleria-items-container {\\n display: flex;\\n flex-direction: column;\\n position: relative;\\n}\\n\\n.p-galleria-items {\\n position: relative;\\n display: flex;\\n height: 100%;\\n}\\n\\n.p-galleria-nav-button {\\n position: absolute;\\n top: 50%;\\n display: inline-flex;\\n justify-content: center;\\n align-items: center;\\n overflow: hidden;\\n background: \").concat(dt('galleria.nav.button.background'), \";\\n color: \").concat(dt('galleria.nav.button.color'), \";\\n width: \").concat(dt('galleria.nav.button.size'), \";\\n height: \").concat(dt('galleria.nav.button.size'), \";\\n transition: background \").concat(dt('galleria.transition.duration'), \", color \").concat(dt('galleria.transition.duration'), \", outline-color \").concat(dt('galleria.transition.duration'), \", box-shadow \").concat(dt('galleria.transition.duration'), \";\\n margin: calc(-1 * calc(\").concat(dt('galleria.nav.button.size'), \") / 2) \").concat(dt('galleria.nav.button.gutter'), \" 0 \").concat(dt('galleria.nav.button.gutter'), \";\\n padding: 0;\\n user-select: none;\\n border: 0 none;\\n cursor: pointer;\\n outline-color: transparent;\\n}\\n\\n.p-galleria-nav-button:not(.p-disabled):hover {\\n background: \").concat(dt('galleria.nav.button.hover.background'), \";\\n color: \").concat(dt('galleria.nav.button.hover.color'), \";\\n}\\n\\n.p-galleria-nav-button:not(.p-disabled):focus-visible {\\n box-shadow: \").concat(dt('galleria.nav.button.focus.ring.shadow'), \";\\n outline: \").concat(dt('galleria.nav.button.focus.ring.width'), \" \").concat(dt('galleria.nav.button.focus.ring.style'), \" \").concat(dt('galleria.nav.button.focus.ring.color'), \";\\n outline-offset: \").concat(dt('galleria.nav.button.focus.ring.offset'), \";\\n}\\n\\n.p-galleria-next-icon,\\n.p-galleria-prev-icon {\\n font-size: \").concat(dt('galleria.nav.icon.size'), \";\\n width: \").concat(dt('galleria.nav.icon.size'), \";\\n height: \").concat(dt('galleria.nav.icon.size'), \";\\n}\\n\\n.p-galleria-prev-button {\\n border-radius: \").concat(dt('galleria.nav.button.prev.border.radius'), \";\\n left: 0;\\n}\\n\\n.p-galleria-next-button {\\n border-radius: \").concat(dt('galleria.nav.button.next.border.radius'), \";\\n right: 0;\\n}\\n\\n.p-galleria-item {\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n height: 100%;\\n width: 100%;\\n}\\n\\n.p-galleria-hover-navigators .p-galleria-nav-button {\\n pointer-events: none;\\n opacity: 0;\\n transition: opacity \").concat(dt('galleria.transition.duration'), \" ease-in-out;\\n}\\n\\n.p-galleria-hover-navigators .p-galleria-items-container:hover .p-galleria-nav-button {\\n pointer-events: all;\\n opacity: 1;\\n}\\n\\n.p-galleria-hover-navigators .p-galleria-items-container:hover .p-galleria-nav-button.p-disabled {\\n pointer-events: none;\\n}\\n\\n.p-galleria-caption {\\n position: absolute;\\n bottom: 0;\\n left: 0;\\n width: 100%;\\n background: \").concat(dt('galleria.caption.background'), \";\\n color: \").concat(dt('galleria.caption.color'), \";\\n padding: \").concat(dt('galleria.caption.padding'), \";\\n}\\n\\n.p-galleria-thumbnails {\\n display: flex;\\n flex-direction: column;\\n overflow: auto;\\n flex-shrink: 0;\\n}\\n\\n.p-galleria-thumbnail-nav-button {\\n align-self: center;\\n flex: 0 0 auto;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n overflow: hidden;\\n position: relative;\\n margin: 0 \").concat(dt('galleria.thumbnail.nav.button.gutter'), \";\\n padding: 0;\\n border: none;\\n user-select: none;\\n cursor: pointer;\\n background: transparent;\\n color: \").concat(dt('galleria.thumbnail.nav.button.color'), \";\\n width: \").concat(dt('galleria.thumbnail.nav.button.size'), \";\\n height: \").concat(dt('galleria.thumbnail.nav.button.size'), \";\\n transition: background \").concat(dt('galleria.transition.duration'), \", color \").concat(dt('galleria.transition.duration'), \", outline-color \").concat(dt('galleria.transition.duration'), \";\\n outline-color: transparent;\\n border-radius: \").concat(dt('galleria.thumbnail.nav.button.border.radius'), \";\\n}\\n\\n.p-galleria-thumbnail-nav-button:hover {\\n background: \").concat(dt('galleria.thumbnail.nav.button.hover.background'), \";\\n color: \").concat(dt('galleria.thumbnail.nav.button.hover.color'), \";\\n}\\n\\n.p-galleria-thumbnail-nav-button:focus-visible {\\n box-shadow: \").concat(dt('galleria.thumbnail.nav.button.focus.ring.shadow'), \";\\n outline: \").concat(dt('galleria.thumbnail.nav.button.focus.ring.width'), \" \").concat(dt('galleria.thumbnail.nav.button.focus.ring.style'), \" \").concat(dt('galleria.thumbnail.nav.button.focus.ring.color'), \";\\n outline-offset: \").concat(dt('galleria.thumbnail.nav.button.focus.ring.offset'), \";\\n}\\n\\n.p-galleria-thumbnail-nav-button .p-galleria-thumbnail-next-icon,\\n.p-galleria-thumbnail-nav-button .p-galleria-thumbnail-prev-icon {\\n font-size: \").concat(dt('galleria.thumbnail.nav.button.icon.size'), \";\\n width: \").concat(dt('galleria.thumbnail.nav.button.icon.size'), \";\\n height: \").concat(dt('galleria.thumbnail.nav.button.icon.size'), \";\\n}\\n\\n.p-galleria-thumbnails-content {\\n display: flex;\\n flex-direction: row;\\n background: \").concat(dt('galleria.thumbnails.content.background'), \";\\n padding: \").concat(dt('galleria.thumbnails.content.padding'), \";\\n}\\n\\n.p-galleria-thumbnails-viewport {\\n overflow: hidden;\\n width: 100%;\\n}\\n\\n.p-galleria-thumbnail-items {\\n display: flex;\\n}\\n\\n.p-galleria-thumbnail-item {\\n overflow: auto;\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n cursor: pointer;\\n opacity: 0.5;\\n}\\n\\n.p-galleria-thumbnail {\\n outline-color: transparent;\\n}\\n\\n.p-galleria-thumbnail-item:hover {\\n opacity: 1;\\n transition: opacity 0.3s;\\n}\\n\\n.p-galleria-thumbnail-item-current {\\n opacity: 1;\\n}\\n\\n.p-galleria-thumbnails-left .p-galleria-content,\\n.p-galleria-thumbnails-right .p-galleria-content {\\n flex-direction: row;\\n}\\n\\n.p-galleria-thumbnails-left .p-galleria-items-container,\\n.p-galleria-thumbnails-right .p-galleria-items-container {\\n flex-direction: row;\\n}\\n\\n.p-galleria-thumbnails-left .p-galleria-items-container,\\n.p-galleria-thumbnails-top .p-galleria-items-container {\\n order: 2;\\n}\\n\\n.p-galleria-thumbnails-left .p-galleria-thumbnails,\\n.p-galleria-thumbnails-top .p-galleria-thumbnails {\\n order: 1;\\n}\\n\\n.p-galleria-thumbnails-left .p-galleria-thumbnails-content,\\n.p-galleria-thumbnails-right .p-galleria-thumbnails-content {\\n flex-direction: column;\\n flex-grow: 1;\\n}\\n\\n.p-galleria-thumbnails-left .p-galleria-thumbnail-items,\\n.p-galleria-thumbnails-right .p-galleria-thumbnail-items {\\n flex-direction: column;\\n height: 100%;\\n}\\n\\n.p-galleria-indicator-list {\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n padding: \").concat(dt('galleria.indicator.list.padding'), \";\\n gap: \").concat(dt('galleria.indicator.list.gap'), \";\\n margin: 0;\\n list-style: none;\\n}\\n\\n.p-galleria-indicator-button {\\n display: inline-flex;\\n align-items: center;\\n background: \").concat(dt('galleria.indicator.button.background'), \";\\n width: \").concat(dt('galleria.indicator.button.width'), \";\\n height: \").concat(dt('galleria.indicator.button.height'), \";\\n transition: background \").concat(dt('galleria.transition.duration'), \", color \").concat(dt('galleria.transition.duration'), \", outline-color \").concat(dt('galleria.transition.duration'), \", box-shadow \").concat(dt('galleria.transition.duration'), \";\\n outline-color: transparent;\\n border-radius: \").concat(dt('galleria.indicator.button.border.radius'), \";\\n margin: 0;\\n padding: 0;\\n border: none;\\n user-select: none;\\n cursor: pointer;\\n}\\n\\n.p-galleria-indicator-button:hover {\\n background: \").concat(dt('galleria.indicator.button.hover.background'), \";\\n}\\n\\n.p-galleria-indicator-button:focus-visible {\\n box-shadow: \").concat(dt('galleria.indicator.button.focus.ring.shadow'), \";\\n outline: \").concat(dt('galleria.indicator.button.focus.ring.width'), \" \").concat(dt('galleria.indicator.button.focus.ring.style'), \" \").concat(dt('galleria.indicator.button.focus.ring.color'), \";\\n outline-offset: \").concat(dt('galleria.indicator.button.focus.ring.offset'), \";\\n}\\n\\n.p-galleria-indicator-active .p-galleria-indicator-button {\\n background: \").concat(dt('galleria.indicator.button.active.background'), \";\\n}\\n\\n.p-galleria-indicators-left .p-galleria-items-container,\\n.p-galleria-indicators-right .p-galleria-items-container {\\n flex-direction: row;\\n align-items: center;\\n}\\n\\n.p-galleria-indicators-left .p-galleria-items,\\n.p-galleria-indicators-top .p-galleria-items {\\n order: 2;\\n}\\n\\n.p-galleria-indicators-left .p-galleria-indicator-list,\\n.p-galleria-indicators-top .p-galleria-indicator-list {\\n order: 1;\\n}\\n\\n.p-galleria-indicators-left .p-galleria-indicator-list,\\n.p-galleria-indicators-right .p-galleria-indicator-list {\\n flex-direction: column;\\n}\\n\\n.p-galleria-inset-indicators .p-galleria-indicator-list {\\n position: absolute;\\n display: flex;\\n z-index: 1;\\n background: \").concat(dt('galleria.inset.indicator.list.background'), \";\\n}\\n\\n.p-galleria-inset-indicators .p-galleria-indicator-button {\\n background: \").concat(dt('galleria.inset.indicator.button.background'), \";\\n}\\n\\n.p-galleria-inset-indicators .p-galleria-indicator-button:hover {\\n background: \").concat(dt('galleria.inset.indicator.button.hover.background'), \";\\n}\\n\\n.p-galleria-inset-indicators .p-galleria-indicator-active .p-galleria-indicator-button {\\n background: \").concat(dt('galleria.inset.indicator.button.active.background'), \";\\n}\\n\\n.p-galleria-inset-indicators.p-galleria-indicators-top .p-galleria-indicator-list {\\n top: 0;\\n left: 0;\\n width: 100%;\\n align-items: flex-start;\\n}\\n\\n.p-galleria-inset-indicators.p-galleria-indicators-right .p-galleria-indicator-list {\\n right: 0;\\n top: 0;\\n height: 100%;\\n align-items: flex-end;\\n}\\n\\n.p-galleria-inset-indicators.p-galleria-indicators-bottom .p-galleria-indicator-list {\\n bottom: 0;\\n left: 0;\\n width: 100%;\\n align-items: flex-end;\\n}\\n\\n.p-galleria-inset-indicators.p-galleria-indicators-left .p-galleria-indicator-list {\\n left: 0;\\n top: 0;\\n height: 100%;\\n align-items: flex-start;\\n}\\n\\n.p-galleria-mask {\\n position: fixed;\\n top: 0;\\n left: 0;\\n width: 100%;\\n height: 100%;\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n}\\n\\n.p-galleria-close-button {\\n position: absolute;\\n top: 0;\\n right: 0;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n overflow: hidden;\\n margin: \").concat(dt('galleria.close.button.gutter'), \";\\n background: \").concat(dt('galleria.close.button.background'), \";\\n color: \").concat(dt('galleria.close.button.color'), \";\\n width: \").concat(dt('galleria.close.button.size'), \";\\n height: \").concat(dt('galleria.close.button.size'), \";\\n padding: 0;\\n border: none;\\n user-select: none;\\n cursor: pointer;\\n border-radius: \").concat(dt('galleria.close.button.border.radius'), \";\\n outline-color: transparent;\\n transition: background \").concat(dt('galleria.transition.duration'), \", color \").concat(dt('galleria.transition.duration'), \", outline-color \").concat(dt('galleria.transition.duration'), \";\\n}\\n\\n.p-galleria-close-icon {\\n font-size: \").concat(dt('galleria.close.button.icon.size'), \";\\n width: \").concat(dt('galleria.close.button.icon.size'), \";\\n height: \").concat(dt('galleria.close.button.icon.size'), \";\\n}\\n\\n.p-galleria-close-button:hover {\\n background: \").concat(dt('galleria.close.button.hover.background'), \";\\n color: \").concat(dt('galleria.close.button.hover.color'), \";\\n}\\n\\n.p-galleria-close-button:focus-visible {\\n box-shadow: \").concat(dt('galleria.close.button.focus.ring.shadow'), \";\\n outline: \").concat(dt('galleria.close.button.focus.ring.width'), \" \").concat(dt('galleria.close.button.focus.ring.style'), \" \").concat(dt('galleria.close.button.focus.ring.color'), \";\\n outline-offset: \").concat(dt('galleria.close.button.focus.ring.offset'), \";\\n}\\n\\n.p-galleria-mask .p-galleria-nav-button {\\n position: fixed;\\n top: 50%;\\n}\\n\\n.p-galleria-enter-active {\\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\\n}\\n\\n.p-galleria-leave-active {\\n transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);\\n}\\n\\n.p-galleria-enter-from,\\n.p-galleria-leave-to {\\n opacity: 0;\\n transform: scale(0.7);\\n}\\n\\n.p-galleria-enter-active .p-galleria-nav-button {\\n opacity: 0;\\n}\\n\\n.p-items-hidden .p-galleria-thumbnail-item {\\n visibility: hidden;\\n}\\n\\n.p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active {\\n visibility: visible;\\n}\\n\");\n};\nvar classes = {\n mask: 'p-galleria-mask p-overlay-mask p-overlay-mask-enter',\n root: function root(_ref2) {\n var instance = _ref2.instance;\n var thumbnailsPosClass = instance.$attrs.showThumbnails && instance.getPositionClass('p-galleria-thumbnails', instance.$attrs.thumbnailsPosition);\n var indicatorPosClass = instance.$attrs.showIndicators && instance.getPositionClass('p-galleria-indicators', instance.$attrs.indicatorsPosition);\n return ['p-galleria p-component', {\n 'p-galleria-fullscreen': instance.$attrs.fullScreen,\n 'p-galleria-inset-indicators': instance.$attrs.showIndicatorsOnItem,\n 'p-galleria-hover-navigators': instance.$attrs.showItemNavigatorsOnHover && !instance.$attrs.fullScreen\n }, thumbnailsPosClass, indicatorPosClass];\n },\n closeButton: 'p-galleria-close-button',\n closeIcon: 'p-galleria-close-icon',\n header: 'p-galleria-header',\n content: 'p-galleria-content',\n footer: 'p-galleria-footer',\n itemsContainer: 'p-galleria-items-container',\n items: 'p-galleria-items',\n prevButton: function prevButton(_ref3) {\n var instance = _ref3.instance;\n return ['p-galleria-prev-button p-galleria-nav-button', {\n 'p-disabled': instance.isNavBackwardDisabled()\n }];\n },\n prevIcon: 'p-galleria-prev-icon',\n item: 'p-galleria-item',\n nextButton: function nextButton(_ref4) {\n var instance = _ref4.instance;\n return ['p-galleria-next-button p-galleria-nav-button', {\n 'p-disabled': instance.isNavForwardDisabled()\n }];\n },\n nextIcon: 'p-galleria-next-icon',\n caption: 'p-galleria-caption',\n indicatorList: 'p-galleria-indicator-list',\n indicator: function indicator(_ref5) {\n var instance = _ref5.instance,\n index = _ref5.index;\n return ['p-galleria-indicator', {\n 'p-galleria-indicator-active': instance.isIndicatorItemActive(index)\n }];\n },\n indicatorButton: 'p-galleria-indicator-button',\n thumbnails: 'p-galleria-thumbnails',\n thumbnailContent: 'p-galleria-thumbnails-content',\n thumbnailPrevButton: function thumbnailPrevButton(_ref6) {\n var instance = _ref6.instance;\n return ['p-galleria-thumbnail-prev-button p-galleria-thumbnail-nav-button', {\n 'p-disabled': instance.isNavBackwardDisabled()\n }];\n },\n thumbnailPrevIcon: 'p-galleria-thumbnail-prev-icon',\n thumbnailsViewport: 'p-galleria-thumbnails-viewport',\n thumbnailItems: 'p-galleria-thumbnail-items',\n thumbnailItem: function thumbnailItem(_ref7) {\n var instance = _ref7.instance,\n index = _ref7.index,\n activeIndex = _ref7.activeIndex;\n return ['p-galleria-thumbnail-item', {\n 'p-galleria-thumbnail-item-current': activeIndex === index,\n 'p-galleria-thumbnail-item-active': instance.isItemActive(index),\n 'p-galleria-thumbnail-item-start': instance.firstItemAciveIndex() === index,\n 'p-galleria-thumbnail-item-end': instance.lastItemActiveIndex() === index\n }];\n },\n thumbnail: 'p-galleria-thumbnail',\n thumbnailNextButton: function thumbnailNextButton(_ref8) {\n var instance = _ref8.instance;\n return ['p-galleria-thumbnail-next-button p-galleria-thumbnail-nav-button', {\n 'p-disabled': instance.isNavForwardDisabled()\n }];\n },\n thumbnailNextIcon: 'p-galleria-thumbnail-next-icon'\n};\nvar GalleriaStyle = BaseStyle.extend({\n name: 'galleria',\n theme: theme,\n classes: classes\n});\n\nexport { GalleriaStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import BaseIcon from '@primevue/icons/baseicon';\nimport { openBlock, createElementBlock, mergeProps, createElementVNode } from 'vue';\n\nvar script = {\n name: 'ChevronUpIcon',\n \"extends\": BaseIcon\n};\n\nvar _hoisted_1 = /*#__PURE__*/createElementVNode(\"path\", {\n d: \"M12.2097 10.4113C12.1057 10.4118 12.0027 10.3915 11.9067 10.3516C11.8107 10.3118 11.7237 10.2532 11.6506 10.1792L6.93602 5.46461L2.22139 10.1476C2.07272 10.244 1.89599 10.2877 1.71953 10.2717C1.54307 10.2556 1.3771 10.1808 1.24822 10.0593C1.11933 9.93766 1.035 9.77633 1.00874 9.6011C0.982477 9.42587 1.0158 9.2469 1.10338 9.09287L6.37701 3.81923C6.52533 3.6711 6.72639 3.58789 6.93602 3.58789C7.14565 3.58789 7.3467 3.6711 7.49502 3.81923L12.7687 9.09287C12.9168 9.24119 13 9.44225 13 9.65187C13 9.8615 12.9168 10.0626 12.7687 10.2109C12.616 10.3487 12.4151 10.4207 12.2097 10.4113Z\",\n fill: \"currentColor\"\n}, null, -1);\nvar _hoisted_2 = [_hoisted_1];\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"svg\", mergeProps({\n width: \"14\",\n height: \"14\",\n viewBox: \"0 0 14 14\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, _ctx.pti()), _hoisted_2, 16);\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","import { find, getAttribute, findSingle, removeClass, addClass, setAttribute, unblockBodyScroll, blockBodyScroll } from '@primeuix/utils/dom';\nimport { ZIndex } from '@primeuix/utils/zindex';\nimport FocusTrap from 'primevue/focustrap';\nimport Portal from 'primevue/portal';\nimport BaseComponent from '@primevue/core/basecomponent';\nimport GalleriaStyle from 'primevue/galleria/style';\nimport { UniqueComponentId } from '@primevue/core/utils';\nimport TimesIcon from '@primevue/icons/times';\nimport Ripple from 'primevue/ripple';\nimport ChevronLeftIcon from '@primevue/icons/chevronleft';\nimport ChevronRightIcon from '@primevue/icons/chevronright';\nimport { resolveDirective, openBlock, createElementBlock, mergeProps, createElementVNode, withDirectives, createBlock, resolveDynamicComponent, createCommentVNode, Fragment, renderList, resolveComponent, createVNode, withCtx, Transition } from 'vue';\nimport { localeComparator, sort } from '@primeuix/utils/object';\nimport ChevronDownIcon from '@primevue/icons/chevrondown';\nimport ChevronUpIcon from '@primevue/icons/chevronup';\n\nvar script$4 = {\n name: 'BaseGalleria',\n \"extends\": BaseComponent,\n props: {\n id: {\n type: String,\n \"default\": null\n },\n value: {\n type: Array,\n \"default\": null\n },\n activeIndex: {\n type: Number,\n \"default\": 0\n },\n fullScreen: {\n type: Boolean,\n \"default\": false\n },\n visible: {\n type: Boolean,\n \"default\": false\n },\n numVisible: {\n type: Number,\n \"default\": 3\n },\n responsiveOptions: {\n type: Array,\n \"default\": null\n },\n showItemNavigators: {\n type: Boolean,\n \"default\": false\n },\n showThumbnailNavigators: {\n type: Boolean,\n \"default\": true\n },\n showItemNavigatorsOnHover: {\n type: Boolean,\n \"default\": false\n },\n changeItemOnIndicatorHover: {\n type: Boolean,\n \"default\": false\n },\n circular: {\n type: Boolean,\n \"default\": false\n },\n autoPlay: {\n type: Boolean,\n \"default\": false\n },\n transitionInterval: {\n type: Number,\n \"default\": 4000\n },\n showThumbnails: {\n type: Boolean,\n \"default\": true\n },\n thumbnailsPosition: {\n type: String,\n \"default\": 'bottom'\n },\n verticalThumbnailViewPortHeight: {\n type: String,\n \"default\": '300px'\n },\n showIndicators: {\n type: Boolean,\n \"default\": false\n },\n showIndicatorsOnItem: {\n type: Boolean,\n \"default\": false\n },\n indicatorsPosition: {\n type: String,\n \"default\": 'bottom'\n },\n baseZIndex: {\n type: Number,\n \"default\": 0\n },\n maskClass: {\n type: String,\n \"default\": null\n },\n containerStyle: {\n type: null,\n \"default\": null\n },\n containerClass: {\n type: null,\n \"default\": null\n },\n containerProps: {\n type: null,\n \"default\": null\n },\n prevButtonProps: {\n type: null,\n \"default\": null\n },\n nextButtonProps: {\n type: null,\n \"default\": null\n },\n ariaLabel: {\n type: String,\n \"default\": null\n },\n ariaRoledescription: {\n type: String,\n \"default\": null\n }\n },\n style: GalleriaStyle,\n provide: function provide() {\n return {\n $pcGalleria: this,\n $parentInstance: this\n };\n }\n};\n\nfunction _toConsumableArray$1(r) { return _arrayWithoutHoles$1(r) || _iterableToArray$1(r) || _unsupportedIterableToArray$1(r) || _nonIterableSpread$1(); }\nfunction _nonIterableSpread$1() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray$1(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }\nfunction _iterableToArray$1(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\nfunction _arrayWithoutHoles$1(r) { if (Array.isArray(r)) return _arrayLikeToArray$1(r); }\nfunction _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nvar script$3 = {\n name: 'GalleriaItem',\n hostName: 'Galleria',\n \"extends\": BaseComponent,\n emits: ['start-slideshow', 'stop-slideshow', 'update:activeIndex'],\n props: {\n circular: {\n type: Boolean,\n \"default\": false\n },\n activeIndex: {\n type: Number,\n \"default\": 0\n },\n value: {\n type: Array,\n \"default\": null\n },\n showItemNavigators: {\n type: Boolean,\n \"default\": true\n },\n showIndicators: {\n type: Boolean,\n \"default\": true\n },\n slideShowActive: {\n type: Boolean,\n \"default\": true\n },\n changeItemOnIndicatorHover: {\n type: Boolean,\n \"default\": true\n },\n autoPlay: {\n type: Boolean,\n \"default\": false\n },\n templates: {\n type: null,\n \"default\": null\n },\n id: {\n type: String,\n \"default\": null\n }\n },\n mounted: function mounted() {\n if (this.autoPlay) {\n this.$emit('start-slideshow');\n }\n },\n methods: {\n getIndicatorPTOptions: function getIndicatorPTOptions(index) {\n return {\n context: {\n highlighted: this.activeIndex === index\n }\n };\n },\n next: function next() {\n var nextItemIndex = this.activeIndex + 1;\n var activeIndex = this.circular && this.value.length - 1 === this.activeIndex ? 0 : nextItemIndex;\n this.$emit('update:activeIndex', activeIndex);\n },\n prev: function prev() {\n var prevItemIndex = this.activeIndex !== 0 ? this.activeIndex - 1 : 0;\n var activeIndex = this.circular && this.activeIndex === 0 ? this.value.length - 1 : prevItemIndex;\n this.$emit('update:activeIndex', activeIndex);\n },\n stopSlideShow: function stopSlideShow() {\n if (this.slideShowActive && this.stopSlideShow) {\n this.$emit('stop-slideshow');\n }\n },\n navBackward: function navBackward(e) {\n this.stopSlideShow();\n this.prev();\n if (e && e.cancelable) {\n e.preventDefault();\n }\n },\n navForward: function navForward(e) {\n this.stopSlideShow();\n this.next();\n if (e && e.cancelable) {\n e.preventDefault();\n }\n },\n onIndicatorClick: function onIndicatorClick(index) {\n this.stopSlideShow();\n this.$emit('update:activeIndex', index);\n },\n onIndicatorMouseEnter: function onIndicatorMouseEnter(index) {\n if (this.changeItemOnIndicatorHover) {\n this.stopSlideShow();\n this.$emit('update:activeIndex', index);\n }\n },\n onIndicatorKeyDown: function onIndicatorKeyDown(event, index) {\n switch (event.code) {\n case 'Enter':\n case 'NumpadEnter':\n case 'Space':\n this.stopSlideShow();\n this.$emit('update:activeIndex', index);\n event.preventDefault();\n break;\n case 'ArrowRight':\n this.onRightKey();\n break;\n case 'ArrowLeft':\n this.onLeftKey();\n break;\n case 'Home':\n this.onHomeKey();\n event.preventDefault();\n break;\n case 'End':\n this.onEndKey();\n event.preventDefault();\n break;\n case 'Tab':\n this.onTabKey();\n break;\n case 'ArrowDown':\n case 'ArrowUp':\n case 'PageUp':\n case 'PageDown':\n event.preventDefault();\n break;\n }\n },\n onRightKey: function onRightKey() {\n var indicators = _toConsumableArray$1(find(this.$refs.indicatorContent, '[data-pc-section=\"indicator\"]'));\n var activeIndex = this.findFocusedIndicatorIndex();\n this.changedFocusedIndicator(activeIndex, activeIndex + 1 === indicators.length ? indicators.length - 1 : activeIndex + 1);\n },\n onLeftKey: function onLeftKey() {\n var activeIndex = this.findFocusedIndicatorIndex();\n this.changedFocusedIndicator(activeIndex, activeIndex - 1 <= 0 ? 0 : activeIndex - 1);\n },\n onHomeKey: function onHomeKey() {\n var activeIndex = this.findFocusedIndicatorIndex();\n this.changedFocusedIndicator(activeIndex, 0);\n },\n onEndKey: function onEndKey() {\n var indicators = _toConsumableArray$1(find(this.$refs.indicatorContent, '[data-pc-section=\"indicator\"]'));\n var activeIndex = this.findFocusedIndicatorIndex();\n this.changedFocusedIndicator(activeIndex, indicators.length - 1);\n },\n onTabKey: function onTabKey() {\n var indicators = _toConsumableArray$1(find(this.$refs.indicatorContent, '[data-pc-section=\"indicator\"]'));\n var highlightedIndex = indicators.findIndex(function (ind) {\n return getAttribute(ind, 'data-p-active') === true;\n });\n var activeIndicator = findSingle(this.$refs.indicatorContent, '[data-pc-section=\"indicator\"] > button[tabindex=\"0\"]');\n var activeIndex = indicators.findIndex(function (ind) {\n return ind === activeIndicator.parentElement;\n });\n indicators[activeIndex].children[0].tabIndex = '-1';\n indicators[highlightedIndex].children[0].tabIndex = '0';\n },\n findFocusedIndicatorIndex: function findFocusedIndicatorIndex() {\n var indicators = _toConsumableArray$1(find(this.$refs.indicatorContent, '[data-pc-section=\"indicator\"]'));\n var activeIndicator = findSingle(this.$refs.indicatorContent, '[data-pc-section=\"indicator\"] > button[tabindex=\"0\"]');\n return indicators.findIndex(function (ind) {\n return ind === activeIndicator.parentElement;\n });\n },\n changedFocusedIndicator: function changedFocusedIndicator(prevInd, nextInd) {\n var indicators = _toConsumableArray$1(find(this.$refs.indicatorContent, '[data-pc-section=\"indicator\"]'));\n indicators[prevInd].children[0].tabIndex = '-1';\n indicators[nextInd].children[0].tabIndex = '0';\n indicators[nextInd].children[0].focus();\n },\n isIndicatorItemActive: function isIndicatorItemActive(index) {\n return this.activeIndex === index;\n },\n isNavBackwardDisabled: function isNavBackwardDisabled() {\n return !this.circular && this.activeIndex === 0;\n },\n isNavForwardDisabled: function isNavForwardDisabled() {\n return !this.circular && this.activeIndex === this.value.length - 1;\n },\n ariaSlideNumber: function ariaSlideNumber(value) {\n return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.slideNumber.replace(/{slideNumber}/g, value) : undefined;\n },\n ariaPageLabel: function ariaPageLabel(value) {\n return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g, value) : undefined;\n }\n },\n computed: {\n activeItem: function activeItem() {\n return this.value[this.activeIndex];\n },\n ariaSlideLabel: function ariaSlideLabel() {\n return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.slide : undefined;\n }\n },\n components: {\n ChevronLeftIcon: ChevronLeftIcon,\n ChevronRightIcon: ChevronRightIcon\n },\n directives: {\n ripple: Ripple\n }\n};\n\nvar _hoisted_1$3 = [\"disabled\"];\nvar _hoisted_2$2 = [\"id\", \"aria-label\", \"aria-roledescription\"];\nvar _hoisted_3$2 = [\"disabled\"];\nvar _hoisted_4$1 = [\"aria-label\", \"aria-selected\", \"aria-controls\", \"onClick\", \"onMouseenter\", \"onKeydown\", \"data-p-active\"];\nvar _hoisted_5 = [\"tabindex\"];\nfunction render$3(_ctx, _cache, $props, $setup, $data, $options) {\n var _directive_ripple = resolveDirective(\"ripple\");\n return openBlock(), createElementBlock(\"div\", mergeProps({\n \"class\": _ctx.cx('itemsContainer')\n }, _ctx.ptm('itemsContainer')), [createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('items')\n }, _ctx.ptm('items')), [$props.showItemNavigators ? withDirectives((openBlock(), createElementBlock(\"button\", mergeProps({\n key: 0,\n type: \"button\",\n \"class\": _ctx.cx('prevButton'),\n onClick: _cache[0] || (_cache[0] = function ($event) {\n return $options.navBackward($event);\n }),\n disabled: $options.isNavBackwardDisabled()\n }, _ctx.ptm('prevButton'), {\n \"data-pc-group-section\": \"itemnavigator\"\n }), [(openBlock(), createBlock(resolveDynamicComponent($props.templates.previousitemicon || 'ChevronLeftIcon'), mergeProps({\n \"class\": _ctx.cx('prevIcon')\n }, _ctx.ptm('prevIcon')), null, 16, [\"class\"]))], 16, _hoisted_1$3)), [[_directive_ripple]]) : createCommentVNode(\"\", true), createElementVNode(\"div\", mergeProps({\n id: $props.id + '_item_' + $props.activeIndex,\n \"class\": _ctx.cx('item'),\n role: \"group\",\n \"aria-label\": $options.ariaSlideNumber($props.activeIndex + 1),\n \"aria-roledescription\": $options.ariaSlideLabel\n }, _ctx.ptm('item')), [$props.templates.item ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.item), {\n key: 0,\n item: $options.activeItem\n }, null, 8, [\"item\"])) : createCommentVNode(\"\", true)], 16, _hoisted_2$2), $props.showItemNavigators ? withDirectives((openBlock(), createElementBlock(\"button\", mergeProps({\n key: 1,\n type: \"button\",\n \"class\": _ctx.cx('nextButton'),\n onClick: _cache[1] || (_cache[1] = function ($event) {\n return $options.navForward($event);\n }),\n disabled: $options.isNavForwardDisabled()\n }, _ctx.ptm('nextButton'), {\n \"data-pc-group-section\": \"itemnavigator\"\n }), [(openBlock(), createBlock(resolveDynamicComponent($props.templates.nextitemicon || 'ChevronRightIcon'), mergeProps({\n \"class\": _ctx.cx('nextIcon')\n }, _ctx.ptm('nextIcon')), null, 16, [\"class\"]))], 16, _hoisted_3$2)), [[_directive_ripple]]) : createCommentVNode(\"\", true), $props.templates['caption'] ? (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 2,\n \"class\": _ctx.cx('caption')\n }, _ctx.ptm('caption')), [$props.templates.caption ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.caption), {\n key: 0,\n item: $options.activeItem\n }, null, 8, [\"item\"])) : createCommentVNode(\"\", true)], 16)) : createCommentVNode(\"\", true)], 16), $props.showIndicators ? (openBlock(), createElementBlock(\"ul\", mergeProps({\n key: 0,\n ref: \"indicatorContent\",\n \"class\": _ctx.cx('indicatorList')\n }, _ctx.ptm('indicatorList')), [(openBlock(true), createElementBlock(Fragment, null, renderList($props.value, function (item, index) {\n return openBlock(), createElementBlock(\"li\", mergeProps({\n key: \"p-galleria-indicator-\".concat(index),\n \"class\": _ctx.cx('indicator', {\n index: index\n }),\n \"aria-label\": $options.ariaPageLabel(index + 1),\n \"aria-selected\": $props.activeIndex === index,\n \"aria-controls\": $props.id + '_item_' + index,\n onClick: function onClick($event) {\n return $options.onIndicatorClick(index);\n },\n onMouseenter: function onMouseenter($event) {\n return $options.onIndicatorMouseEnter(index);\n },\n onKeydown: function onKeydown($event) {\n return $options.onIndicatorKeyDown($event, index);\n },\n ref_for: true\n }, _ctx.ptm('indicator', $options.getIndicatorPTOptions(index)), {\n \"data-p-active\": $options.isIndicatorItemActive(index)\n }), [!$props.templates['indicator'] ? (openBlock(), createElementBlock(\"button\", mergeProps({\n key: 0,\n type: \"button\",\n tabindex: $props.activeIndex === index ? '0' : '-1',\n \"class\": _ctx.cx('indicatorButton'),\n ref_for: true\n }, _ctx.ptm('indicatorButton', $options.getIndicatorPTOptions(index))), null, 16, _hoisted_5)) : createCommentVNode(\"\", true), $props.templates.indicator ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.indicator), {\n key: 1,\n index: index\n }, null, 8, [\"index\"])) : createCommentVNode(\"\", true)], 16, _hoisted_4$1);\n }), 128))], 16)) : createCommentVNode(\"\", true)], 16);\n}\n\nscript$3.render = render$3;\n\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nvar script$2 = {\n name: 'GalleriaThumbnails',\n hostName: 'Galleria',\n \"extends\": BaseComponent,\n emits: ['stop-slideshow', 'update:activeIndex'],\n props: {\n containerId: {\n type: String,\n \"default\": null\n },\n value: {\n type: Array,\n \"default\": null\n },\n numVisible: {\n type: Number,\n \"default\": 3\n },\n activeIndex: {\n type: Number,\n \"default\": 0\n },\n isVertical: {\n type: Boolean,\n \"default\": false\n },\n slideShowActive: {\n type: Boolean,\n \"default\": false\n },\n circular: {\n type: Boolean,\n \"default\": false\n },\n responsiveOptions: {\n type: Array,\n \"default\": null\n },\n contentHeight: {\n type: String,\n \"default\": '300px'\n },\n showThumbnailNavigators: {\n type: Boolean,\n \"default\": true\n },\n templates: {\n type: null,\n \"default\": null\n },\n prevButtonProps: {\n type: null,\n \"default\": null\n },\n nextButtonProps: {\n type: null,\n \"default\": null\n }\n },\n startPos: null,\n thumbnailsStyle: null,\n sortedResponsiveOptions: null,\n data: function data() {\n return {\n d_numVisible: this.numVisible,\n d_oldNumVisible: this.numVisible,\n d_activeIndex: this.activeIndex,\n d_oldActiveItemIndex: this.activeIndex,\n totalShiftedItems: 0,\n page: 0\n };\n },\n watch: {\n numVisible: function numVisible(newValue, oldValue) {\n this.d_numVisible = newValue;\n this.d_oldNumVisible = oldValue;\n },\n activeIndex: function activeIndex(newValue, oldValue) {\n this.d_activeIndex = newValue;\n this.d_oldActiveItemIndex = oldValue;\n }\n },\n mounted: function mounted() {\n this.createStyle();\n this.calculatePosition();\n if (this.responsiveOptions) {\n this.bindDocumentListeners();\n }\n },\n updated: function updated() {\n var totalShiftedItems = this.totalShiftedItems;\n if (this.d_oldNumVisible !== this.d_numVisible || this.d_oldActiveItemIndex !== this.d_activeIndex) {\n if (this.d_activeIndex <= this.getMedianItemIndex()) {\n totalShiftedItems = 0;\n } else if (this.value.length - this.d_numVisible + this.getMedianItemIndex() < this.d_activeIndex) {\n totalShiftedItems = this.d_numVisible - this.value.length;\n } else if (this.value.length - this.d_numVisible < this.d_activeIndex && this.d_numVisible % 2 === 0) {\n totalShiftedItems = this.d_activeIndex * -1 + this.getMedianItemIndex() + 1;\n } else {\n totalShiftedItems = this.d_activeIndex * -1 + this.getMedianItemIndex();\n }\n if (totalShiftedItems !== this.totalShiftedItems) {\n this.totalShiftedItems = totalShiftedItems;\n }\n this.$refs.itemsContainer.style.transform = this.isVertical ? \"translate3d(0, \".concat(totalShiftedItems * (100 / this.d_numVisible), \"%, 0)\") : \"translate3d(\".concat(totalShiftedItems * (100 / this.d_numVisible), \"%, 0, 0)\");\n if (this.d_oldActiveItemIndex !== this.d_activeIndex) {\n document.body.setAttribute('data-p-items-hidden', 'false');\n !this.isUnstyled && removeClass(this.$refs.itemsContainer, 'p-items-hidden');\n this.$refs.itemsContainer.style.transition = 'transform 500ms ease 0s';\n }\n this.d_oldActiveItemIndex = this.d_activeIndex;\n this.d_oldNumVisible = this.d_numVisible;\n }\n },\n beforeUnmount: function beforeUnmount() {\n if (this.responsiveOptions) {\n this.unbindDocumentListeners();\n }\n if (this.thumbnailsStyle) {\n this.thumbnailsStyle.parentNode.removeChild(this.thumbnailsStyle);\n }\n },\n methods: {\n step: function step(dir) {\n var totalShiftedItems = this.totalShiftedItems + dir;\n if (dir < 0 && -1 * totalShiftedItems + this.d_numVisible > this.value.length - 1) {\n totalShiftedItems = this.d_numVisible - this.value.length;\n } else if (dir > 0 && totalShiftedItems > 0) {\n totalShiftedItems = 0;\n }\n if (this.circular) {\n if (dir < 0 && this.value.length - 1 === this.d_activeIndex) {\n totalShiftedItems = 0;\n } else if (dir > 0 && this.d_activeIndex === 0) {\n totalShiftedItems = this.d_numVisible - this.value.length;\n }\n }\n if (this.$refs.itemsContainer) {\n document.body.setAttribute('data-p-items-hidden', 'false');\n !this.isUnstyled && removeClass(this.$refs.itemsContainer, 'p-items-hidden');\n this.$refs.itemsContainer.style.transform = this.isVertical ? \"translate3d(0, \".concat(totalShiftedItems * (100 / this.d_numVisible), \"%, 0)\") : \"translate3d(\".concat(totalShiftedItems * (100 / this.d_numVisible), \"%, 0, 0)\");\n this.$refs.itemsContainer.style.transition = 'transform 500ms ease 0s';\n }\n this.totalShiftedItems = totalShiftedItems;\n },\n stopSlideShow: function stopSlideShow() {\n if (this.slideShowActive && this.stopSlideShow) {\n this.$emit('stop-slideshow');\n }\n },\n getMedianItemIndex: function getMedianItemIndex() {\n var index = Math.floor(this.d_numVisible / 2);\n return this.d_numVisible % 2 ? index : index - 1;\n },\n navBackward: function navBackward(e) {\n this.stopSlideShow();\n var prevItemIndex = this.d_activeIndex !== 0 ? this.d_activeIndex - 1 : 0;\n var diff = prevItemIndex + this.totalShiftedItems;\n if (this.d_numVisible - diff - 1 > this.getMedianItemIndex() && (-1 * this.totalShiftedItems !== 0 || this.circular)) {\n this.step(1);\n }\n var activeIndex = this.circular && this.d_activeIndex === 0 ? this.value.length - 1 : prevItemIndex;\n this.$emit('update:activeIndex', activeIndex);\n if (e.cancelable) {\n e.preventDefault();\n }\n },\n navForward: function navForward(e) {\n this.stopSlideShow();\n var nextItemIndex = this.d_activeIndex === this.value.length - 1 ? this.value.length - 1 : this.d_activeIndex + 1;\n if (nextItemIndex + this.totalShiftedItems > this.getMedianItemIndex() && (-1 * this.totalShiftedItems < this.getTotalPageNumber() - 1 || this.circular)) {\n this.step(-1);\n }\n var activeIndex = this.circular && this.value.length - 1 === this.d_activeIndex ? 0 : nextItemIndex;\n this.$emit('update:activeIndex', activeIndex);\n if (e.cancelable) {\n e.preventDefault();\n }\n },\n onItemClick: function onItemClick(index) {\n this.stopSlideShow();\n var selectedItemIndex = index;\n if (selectedItemIndex !== this.d_activeIndex) {\n var diff = selectedItemIndex + this.totalShiftedItems;\n var dir = 0;\n if (selectedItemIndex < this.d_activeIndex) {\n dir = this.d_numVisible - diff - 1 - this.getMedianItemIndex();\n if (dir > 0 && -1 * this.totalShiftedItems !== 0) {\n this.step(dir);\n }\n } else {\n dir = this.getMedianItemIndex() - diff;\n if (dir < 0 && -1 * this.totalShiftedItems < this.getTotalPageNumber() - 1) {\n this.step(dir);\n }\n }\n this.$emit('update:activeIndex', selectedItemIndex);\n }\n },\n onThumbnailKeydown: function onThumbnailKeydown(event, index) {\n if (event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') {\n this.onItemClick(index);\n event.preventDefault();\n }\n switch (event.code) {\n case 'ArrowRight':\n this.onRightKey();\n break;\n case 'ArrowLeft':\n this.onLeftKey();\n break;\n case 'Home':\n this.onHomeKey();\n event.preventDefault();\n break;\n case 'End':\n this.onEndKey();\n event.preventDefault();\n break;\n case 'ArrowUp':\n case 'ArrowDown':\n event.preventDefault();\n break;\n case 'Tab':\n this.onTabKey();\n break;\n }\n },\n onRightKey: function onRightKey() {\n var indicators = find(this.$refs.itemsContainer, '[data-pc-section=\"thumbnailitem\"]');\n var activeIndex = this.findFocusedIndicatorIndex();\n this.changedFocusedIndicator(activeIndex, activeIndex + 1 === indicators.length ? indicators.length - 1 : activeIndex + 1);\n },\n onLeftKey: function onLeftKey() {\n var activeIndex = this.findFocusedIndicatorIndex();\n this.changedFocusedIndicator(activeIndex, activeIndex - 1 <= 0 ? 0 : activeIndex - 1);\n },\n onHomeKey: function onHomeKey() {\n var activeIndex = this.findFocusedIndicatorIndex();\n this.changedFocusedIndicator(activeIndex, 0);\n },\n onEndKey: function onEndKey() {\n var indicators = find(this.$refs.itemsContainer, '[data-pc-section=\"thumbnailitem\"]');\n var activeIndex = this.findFocusedIndicatorIndex();\n this.changedFocusedIndicator(activeIndex, indicators.length - 1);\n },\n onTabKey: function onTabKey() {\n var indicators = _toConsumableArray(find(this.$refs.itemsContainer, '[data-pc-section=\"thumbnailitem\"]'));\n var highlightedIndex = indicators.findIndex(function (ind) {\n return getAttribute(ind, 'data-p-active') === true;\n });\n var activeIndicator = findSingle(this.$refs.itemsContainer, '[tabindex=\"0\"]');\n var activeIndex = indicators.findIndex(function (ind) {\n return ind === activeIndicator.parentElement;\n });\n indicators[activeIndex].children[0].tabIndex = '-1';\n indicators[highlightedIndex].children[0].tabIndex = '0';\n },\n findFocusedIndicatorIndex: function findFocusedIndicatorIndex() {\n var indicators = _toConsumableArray(find(this.$refs.itemsContainer, '[data-pc-section=\"thumbnailitem\"]'));\n var activeIndicator = findSingle(this.$refs.itemsContainer, '[data-pc-section=\"thumbnailitem\"] > [tabindex=\"0\"]');\n return indicators.findIndex(function (ind) {\n return ind === activeIndicator.parentElement;\n });\n },\n changedFocusedIndicator: function changedFocusedIndicator(prevInd, nextInd) {\n var indicators = find(this.$refs.itemsContainer, '[data-pc-section=\"thumbnailitem\"]');\n indicators[prevInd].children[0].tabIndex = '-1';\n indicators[nextInd].children[0].tabIndex = '0';\n indicators[nextInd].children[0].focus();\n },\n onTransitionEnd: function onTransitionEnd(e) {\n if (this.$refs.itemsContainer && e.propertyName === 'transform') {\n document.body.setAttribute('data-p-items-hidden', 'true');\n !this.isUnstyled && addClass(this.$refs.itemsContainer, 'p-items-hidden');\n this.$refs.itemsContainer.style.transition = '';\n }\n },\n onTouchStart: function onTouchStart(e) {\n var touchobj = e.changedTouches[0];\n this.startPos = {\n x: touchobj.pageX,\n y: touchobj.pageY\n };\n },\n onTouchMove: function onTouchMove(e) {\n if (e.cancelable) {\n e.preventDefault();\n }\n },\n onTouchEnd: function onTouchEnd(e) {\n var touchobj = e.changedTouches[0];\n if (this.isVertical) {\n this.changePageOnTouch(e, touchobj.pageY - this.startPos.y);\n } else {\n this.changePageOnTouch(e, touchobj.pageX - this.startPos.x);\n }\n },\n changePageOnTouch: function changePageOnTouch(e, diff) {\n if (diff < 0) {\n // left\n this.navForward(e);\n } else {\n // right\n this.navBackward(e);\n }\n },\n getTotalPageNumber: function getTotalPageNumber() {\n return this.value.length > this.d_numVisible ? this.value.length - this.d_numVisible + 1 : 0;\n },\n createStyle: function createStyle() {\n if (!this.thumbnailsStyle) {\n var _this$$primevue;\n this.thumbnailsStyle = document.createElement('style');\n this.thumbnailsStyle.type = 'text/css';\n setAttribute(this.thumbnailsStyle, 'nonce', (_this$$primevue = this.$primevue) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.config) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.csp) === null || _this$$primevue === void 0 ? void 0 : _this$$primevue.nonce);\n document.body.appendChild(this.thumbnailsStyle);\n }\n var innerHTML = \"\\n #\".concat(this.containerId, \" [data-pc-section=\\\"thumbnailitem\\\"] {\\n flex: 1 0 \").concat(100 / this.d_numVisible, \"%\\n }\\n \");\n if (this.responsiveOptions && !this.isUnstyled) {\n this.sortedResponsiveOptions = _toConsumableArray(this.responsiveOptions);\n var comparer = localeComparator();\n this.sortedResponsiveOptions.sort(function (data1, data2) {\n var value1 = data1.breakpoint;\n var value2 = data2.breakpoint;\n return sort(value1, value2, -1, comparer);\n });\n for (var i = 0; i < this.sortedResponsiveOptions.length; i++) {\n var res = this.sortedResponsiveOptions[i];\n innerHTML += \"\\n @media screen and (max-width: \".concat(res.breakpoint, \") {\\n #\").concat(this.containerId, \" .p-galleria-thumbnail-item {\\n flex: 1 0 \").concat(100 / res.numVisible, \"%\\n }\\n }\\n \");\n }\n }\n this.thumbnailsStyle.innerHTML = innerHTML;\n },\n calculatePosition: function calculatePosition() {\n if (this.$refs.itemsContainer && this.sortedResponsiveOptions) {\n var windowWidth = window.innerWidth;\n var matchedResponsiveData = {\n numVisible: this.numVisible\n };\n for (var i = 0; i < this.sortedResponsiveOptions.length; i++) {\n var res = this.sortedResponsiveOptions[i];\n if (parseInt(res.breakpoint, 10) >= windowWidth) {\n matchedResponsiveData = res;\n }\n }\n if (this.d_numVisible !== matchedResponsiveData.numVisible) {\n this.d_numVisible = matchedResponsiveData.numVisible;\n }\n }\n },\n bindDocumentListeners: function bindDocumentListeners() {\n var _this = this;\n if (!this.documentResizeListener) {\n this.documentResizeListener = function () {\n _this.calculatePosition();\n };\n window.addEventListener('resize', this.documentResizeListener);\n }\n },\n unbindDocumentListeners: function unbindDocumentListeners() {\n if (this.documentResizeListener) {\n window.removeEventListener('resize', this.documentResizeListener);\n this.documentResizeListener = null;\n }\n },\n isNavBackwardDisabled: function isNavBackwardDisabled() {\n return !this.circular && this.d_activeIndex === 0 || this.value.length <= this.d_numVisible;\n },\n isNavForwardDisabled: function isNavForwardDisabled() {\n return !this.circular && this.d_activeIndex === this.value.length - 1 || this.value.length <= this.d_numVisible;\n },\n firstItemAciveIndex: function firstItemAciveIndex() {\n return this.totalShiftedItems * -1;\n },\n lastItemActiveIndex: function lastItemActiveIndex() {\n return this.firstItemAciveIndex() + this.d_numVisible - 1;\n },\n isItemActive: function isItemActive(index) {\n return this.firstItemAciveIndex() <= index && this.lastItemActiveIndex() >= index;\n },\n ariaPageLabel: function ariaPageLabel(value) {\n return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g, value) : undefined;\n }\n },\n computed: {\n ariaPrevButtonLabel: function ariaPrevButtonLabel() {\n return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.prevPageLabel : undefined;\n },\n ariaNextButtonLabel: function ariaNextButtonLabel() {\n return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.nextPageLabel : undefined;\n }\n },\n components: {\n ChevronLeftIcon: ChevronLeftIcon,\n ChevronRightIcon: ChevronRightIcon,\n ChevronUpIcon: ChevronUpIcon,\n ChevronDownIcon: ChevronDownIcon\n },\n directives: {\n ripple: Ripple\n }\n};\n\nfunction _typeof$2(o) { \"@babel/helpers - typeof\"; return _typeof$2 = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof$2(o); }\nfunction ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty$2(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty$2(e, r, t) { return (r = _toPropertyKey$2(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey$2(t) { var i = _toPrimitive$2(t, \"string\"); return \"symbol\" == _typeof$2(i) ? i : i + \"\"; }\nfunction _toPrimitive$2(t, r) { if (\"object\" != _typeof$2(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof$2(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar _hoisted_1$2 = [\"disabled\", \"aria-label\"];\nvar _hoisted_2$1 = [\"data-p-active\", \"aria-selected\", \"aria-controls\", \"onKeydown\", \"data-p-galleria-thumbnail-item-current\", \"data-p-galleria-thumbnail-item-active\", \"data-p-galleria-thumbnail-item-start\", \"data-p-galleria-thumbnail-item-end\"];\nvar _hoisted_3$1 = [\"tabindex\", \"aria-label\", \"aria-current\", \"onClick\"];\nvar _hoisted_4 = [\"disabled\", \"aria-label\"];\nfunction render$2(_ctx, _cache, $props, $setup, $data, $options) {\n var _directive_ripple = resolveDirective(\"ripple\");\n return openBlock(), createElementBlock(\"div\", mergeProps({\n \"class\": _ctx.cx('thumbnails')\n }, _ctx.ptm('thumbnails')), [createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('thumbnailContent')\n }, _ctx.ptm('thumbnailContent')), [$props.showThumbnailNavigators ? withDirectives((openBlock(), createElementBlock(\"button\", mergeProps({\n key: 0,\n \"class\": _ctx.cx('thumbnailPrevButton'),\n disabled: $options.isNavBackwardDisabled(),\n type: \"button\",\n \"aria-label\": $options.ariaPrevButtonLabel,\n onClick: _cache[0] || (_cache[0] = function ($event) {\n return $options.navBackward($event);\n })\n }, _objectSpread$2(_objectSpread$2({}, $props.prevButtonProps), _ctx.ptm('thumbnailPrevButton')), {\n \"data-pc-group-section\": \"thumbnailnavigator\"\n }), [(openBlock(), createBlock(resolveDynamicComponent($props.templates.previousthumbnailicon || ($props.isVertical ? 'ChevronUpIcon' : 'ChevronLeftIcon')), mergeProps({\n \"class\": _ctx.cx('thumbnailPrevIcon')\n }, _ctx.ptm('thumbnailPrevIcon')), null, 16, [\"class\"]))], 16, _hoisted_1$2)), [[_directive_ripple]]) : createCommentVNode(\"\", true), createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('thumbnailsViewport'),\n style: {\n height: $props.isVertical ? $props.contentHeight : ''\n }\n }, _ctx.ptm('thumbnailsViewport')), [createElementVNode(\"div\", mergeProps({\n ref: \"itemsContainer\",\n \"class\": _ctx.cx('thumbnailItems'),\n role: \"tablist\",\n onTransitionend: _cache[1] || (_cache[1] = function ($event) {\n return $options.onTransitionEnd($event);\n }),\n onTouchstart: _cache[2] || (_cache[2] = function ($event) {\n return $options.onTouchStart($event);\n }),\n onTouchmove: _cache[3] || (_cache[3] = function ($event) {\n return $options.onTouchMove($event);\n }),\n onTouchend: _cache[4] || (_cache[4] = function ($event) {\n return $options.onTouchEnd($event);\n })\n }, _ctx.ptm('thumbnailItems')), [(openBlock(true), createElementBlock(Fragment, null, renderList($props.value, function (item, index) {\n return openBlock(), createElementBlock(\"div\", mergeProps({\n key: \"p-galleria-thumbnail-item-\".concat(index),\n \"class\": _ctx.cx('thumbnailItem', {\n index: index,\n activeIndex: $props.activeIndex\n }),\n role: \"tab\",\n \"data-p-active\": $props.activeIndex === index,\n \"aria-selected\": $props.activeIndex === index,\n \"aria-controls\": $props.containerId + '_item_' + index,\n onKeydown: function onKeydown($event) {\n return $options.onThumbnailKeydown($event, index);\n },\n ref_for: true\n }, _ctx.ptm('thumbnailItem'), {\n \"data-p-galleria-thumbnail-item-current\": $props.activeIndex === index,\n \"data-p-galleria-thumbnail-item-active\": $options.isItemActive(index),\n \"data-p-galleria-thumbnail-item-start\": $options.firstItemAciveIndex() === index,\n \"data-p-galleria-thumbnail-item-end\": $options.lastItemActiveIndex() === index\n }), [createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('thumbnail'),\n tabindex: $props.activeIndex === index ? '0' : '-1',\n \"aria-label\": $options.ariaPageLabel(index + 1),\n \"aria-current\": $props.activeIndex === index ? 'page' : undefined,\n onClick: function onClick($event) {\n return $options.onItemClick(index);\n },\n ref_for: true\n }, _ctx.ptm('thumbnail')), [$props.templates.thumbnail ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.thumbnail), {\n key: 0,\n item: item\n }, null, 8, [\"item\"])) : createCommentVNode(\"\", true)], 16, _hoisted_3$1)], 16, _hoisted_2$1);\n }), 128))], 16)], 16), $props.showThumbnailNavigators ? withDirectives((openBlock(), createElementBlock(\"button\", mergeProps({\n key: 1,\n \"class\": _ctx.cx('thumbnailNextButton'),\n disabled: $options.isNavForwardDisabled(),\n type: \"button\",\n \"aria-label\": $options.ariaNextButtonLabel,\n onClick: _cache[5] || (_cache[5] = function ($event) {\n return $options.navForward($event);\n })\n }, _objectSpread$2(_objectSpread$2({}, $props.nextButtonProps), _ctx.ptm('thumbnailNextButton')), {\n \"data-pc-group-section\": \"thumbnailnavigator\"\n }), [(openBlock(), createBlock(resolveDynamicComponent($props.templates.nextthumbnailicon || ($props.isVertical ? 'ChevronDownIcon' : 'ChevronRightIcon')), mergeProps({\n \"class\": _ctx.cx('thumbnailNextIcon')\n }, _ctx.ptm('thumbnailNextIcon')), null, 16, [\"class\"]))], 16, _hoisted_4)), [[_directive_ripple]]) : createCommentVNode(\"\", true)], 16)], 16);\n}\n\nscript$2.render = render$2;\n\nfunction _typeof$1(o) { \"@babel/helpers - typeof\"; return _typeof$1 = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof$1(o); }\nfunction ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty$1(e, r, t) { return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey$1(t) { var i = _toPrimitive$1(t, \"string\"); return \"symbol\" == _typeof$1(i) ? i : i + \"\"; }\nfunction _toPrimitive$1(t, r) { if (\"object\" != _typeof$1(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof$1(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar script$1 = {\n name: 'GalleriaContent',\n hostName: 'Galleria',\n \"extends\": BaseComponent,\n inheritAttrs: false,\n interval: null,\n emits: ['activeitem-change', 'mask-hide'],\n data: function data() {\n return {\n id: this.$attrs.id || UniqueComponentId(),\n activeIndex: this.$attrs.activeIndex,\n numVisible: this.$attrs.numVisible,\n slideShowActive: false\n };\n },\n watch: {\n '$attrs.id': function $attrsId(newValue) {\n this.id = newValue || UniqueComponentId();\n },\n '$attrs.value': function $attrsValue(newVal) {\n if (newVal && newVal.length < this.numVisible) {\n this.numVisible = newVal.length;\n }\n },\n '$attrs.activeIndex': function $attrsActiveIndex(newVal) {\n this.activeIndex = newVal;\n },\n '$attrs.numVisible': function $attrsNumVisible(newVal) {\n this.numVisible = newVal;\n },\n '$attrs.autoPlay': function $attrsAutoPlay(newVal) {\n newVal ? this.startSlideShow() : this.stopSlideShow();\n }\n },\n mounted: function mounted() {\n this.id = this.id || UniqueComponentId();\n },\n updated: function updated() {\n this.$emit('activeitem-change', this.activeIndex);\n },\n beforeUnmount: function beforeUnmount() {\n if (this.slideShowActive) {\n this.stopSlideShow();\n }\n },\n methods: {\n getPTOptions: function getPTOptions(key) {\n return this.ptm(key, {\n props: _objectSpread$1(_objectSpread$1({}, this.$attrs), {}, {\n pt: this.pt,\n unstyled: this.unstyled\n })\n });\n },\n isAutoPlayActive: function isAutoPlayActive() {\n return this.slideShowActive;\n },\n startSlideShow: function startSlideShow() {\n var _this = this;\n this.interval = setInterval(function () {\n var activeIndex = _this.$attrs.circular && _this.$attrs.value.length - 1 === _this.activeIndex ? 0 : _this.activeIndex + 1;\n _this.activeIndex = activeIndex;\n }, this.$attrs.transitionInterval);\n this.slideShowActive = true;\n },\n stopSlideShow: function stopSlideShow() {\n if (this.interval) {\n clearInterval(this.interval);\n }\n this.slideShowActive = false;\n },\n getPositionClass: function getPositionClass(preClassName, position) {\n var positions = ['top', 'left', 'bottom', 'right'];\n var pos = positions.find(function (item) {\n return item === position;\n });\n return pos ? \"\".concat(preClassName, \"-\").concat(pos) : '';\n },\n isVertical: function isVertical() {\n return this.$attrs.thumbnailsPosition === 'left' || this.$attrs.thumbnailsPosition === 'right';\n }\n },\n computed: {\n closeAriaLabel: function closeAriaLabel() {\n return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.close : undefined;\n }\n },\n components: {\n GalleriaItem: script$3,\n GalleriaThumbnails: script$2,\n TimesIcon: TimesIcon\n },\n directives: {\n ripple: Ripple\n }\n};\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar _hoisted_1$1 = [\"id\", \"aria-label\", \"aria-roledescription\"];\nvar _hoisted_2 = [\"aria-label\"];\nvar _hoisted_3 = [\"aria-live\"];\nfunction render$1(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_GalleriaItem = resolveComponent(\"GalleriaItem\");\n var _component_GalleriaThumbnails = resolveComponent(\"GalleriaThumbnails\");\n var _directive_ripple = resolveDirective(\"ripple\");\n return _ctx.$attrs.value && _ctx.$attrs.value.length > 0 ? (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 0,\n id: $data.id,\n role: \"region\",\n \"class\": [_ctx.cx('root'), _ctx.$attrs.containerClass],\n style: _ctx.$attrs.containerStyle,\n \"aria-label\": _ctx.$attrs.ariaLabel,\n \"aria-roledescription\": _ctx.$attrs.ariaRoledescription\n }, _objectSpread(_objectSpread({}, _ctx.$attrs.containerProps), $options.getPTOptions('root'))), [_ctx.$attrs.fullScreen ? withDirectives((openBlock(), createElementBlock(\"button\", mergeProps({\n key: 0,\n autofocus: \"\",\n type: \"button\",\n \"class\": _ctx.cx('closeButton'),\n \"aria-label\": $options.closeAriaLabel,\n onClick: _cache[0] || (_cache[0] = function ($event) {\n return _ctx.$emit('mask-hide');\n })\n }, $options.getPTOptions('closeButton')), [(openBlock(), createBlock(resolveDynamicComponent(_ctx.$attrs.templates['closeicon'] || 'TimesIcon'), mergeProps({\n \"class\": _ctx.cx('closeIcon')\n }, $options.getPTOptions('closeIcon')), null, 16, [\"class\"]))], 16, _hoisted_2)), [[_directive_ripple]]) : createCommentVNode(\"\", true), _ctx.$attrs.templates && _ctx.$attrs.templates['header'] ? (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 1,\n \"class\": _ctx.cx('header')\n }, $options.getPTOptions('header')), [(openBlock(), createBlock(resolveDynamicComponent(_ctx.$attrs.templates['header'])))], 16)) : createCommentVNode(\"\", true), createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('content'),\n \"aria-live\": _ctx.$attrs.autoPlay ? 'polite' : 'off'\n }, $options.getPTOptions('content')), [createVNode(_component_GalleriaItem, {\n id: $data.id,\n activeIndex: $data.activeIndex,\n \"onUpdate:activeIndex\": _cache[1] || (_cache[1] = function ($event) {\n return $data.activeIndex = $event;\n }),\n slideShowActive: $data.slideShowActive,\n \"onUpdate:slideShowActive\": _cache[2] || (_cache[2] = function ($event) {\n return $data.slideShowActive = $event;\n }),\n value: _ctx.$attrs.value,\n circular: _ctx.$attrs.circular,\n templates: _ctx.$attrs.templates,\n showIndicators: _ctx.$attrs.showIndicators,\n changeItemOnIndicatorHover: _ctx.$attrs.changeItemOnIndicatorHover,\n showItemNavigators: _ctx.$attrs.showItemNavigators,\n autoPlay: _ctx.$attrs.autoPlay,\n onStartSlideshow: $options.startSlideShow,\n onStopSlideshow: $options.stopSlideShow,\n pt: _ctx.pt,\n unstyled: _ctx.unstyled\n }, null, 8, [\"id\", \"activeIndex\", \"slideShowActive\", \"value\", \"circular\", \"templates\", \"showIndicators\", \"changeItemOnIndicatorHover\", \"showItemNavigators\", \"autoPlay\", \"onStartSlideshow\", \"onStopSlideshow\", \"pt\", \"unstyled\"]), _ctx.$attrs.showThumbnails ? (openBlock(), createBlock(_component_GalleriaThumbnails, {\n key: 0,\n activeIndex: $data.activeIndex,\n \"onUpdate:activeIndex\": _cache[3] || (_cache[3] = function ($event) {\n return $data.activeIndex = $event;\n }),\n slideShowActive: $data.slideShowActive,\n \"onUpdate:slideShowActive\": _cache[4] || (_cache[4] = function ($event) {\n return $data.slideShowActive = $event;\n }),\n containerId: $data.id,\n value: _ctx.$attrs.value,\n templates: _ctx.$attrs.templates,\n numVisible: $data.numVisible,\n responsiveOptions: _ctx.$attrs.responsiveOptions,\n circular: _ctx.$attrs.circular,\n isVertical: $options.isVertical(),\n contentHeight: _ctx.$attrs.verticalThumbnailViewPortHeight,\n showThumbnailNavigators: _ctx.$attrs.showThumbnailNavigators,\n prevButtonProps: _ctx.$attrs.prevButtonProps,\n nextButtonProps: _ctx.$attrs.nextButtonProps,\n onStopSlideshow: $options.stopSlideShow,\n pt: _ctx.pt,\n unstyled: _ctx.unstyled\n }, null, 8, [\"activeIndex\", \"slideShowActive\", \"containerId\", \"value\", \"templates\", \"numVisible\", \"responsiveOptions\", \"circular\", \"isVertical\", \"contentHeight\", \"showThumbnailNavigators\", \"prevButtonProps\", \"nextButtonProps\", \"onStopSlideshow\", \"pt\", \"unstyled\"])) : createCommentVNode(\"\", true)], 16, _hoisted_3), _ctx.$attrs.templates && _ctx.$attrs.templates['footer'] ? (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 2,\n \"class\": _ctx.cx('footer')\n }, $options.getPTOptions('footer')), [(openBlock(), createBlock(resolveDynamicComponent(_ctx.$attrs.templates['footer'])))], 16)) : createCommentVNode(\"\", true)], 16, _hoisted_1$1)) : createCommentVNode(\"\", true);\n}\n\nscript$1.render = render$1;\n\nvar script = {\n name: 'Galleria',\n \"extends\": script$4,\n inheritAttrs: false,\n emits: ['update:activeIndex', 'update:visible'],\n container: null,\n mask: null,\n data: function data() {\n return {\n containerVisible: this.visible\n };\n },\n updated: function updated() {\n if (this.fullScreen && this.visible) {\n this.containerVisible = this.visible;\n }\n },\n beforeUnmount: function beforeUnmount() {\n if (this.fullScreen) {\n unblockBodyScroll();\n }\n this.mask = null;\n if (this.container) {\n ZIndex.clear(this.container);\n this.container = null;\n }\n },\n methods: {\n onBeforeEnter: function onBeforeEnter(el) {\n ZIndex.set('modal', el, this.baseZIndex || this.$primevue.config.zIndex.modal);\n },\n onEnter: function onEnter(el) {\n this.mask.style.zIndex = String(parseInt(el.style.zIndex, 10) - 1);\n blockBodyScroll();\n this.focus();\n },\n onBeforeLeave: function onBeforeLeave() {\n !this.isUnstyled && addClass(this.mask, 'p-overlay-mask-leave');\n },\n onAfterLeave: function onAfterLeave(el) {\n ZIndex.clear(el);\n this.containerVisible = false;\n unblockBodyScroll();\n },\n onActiveItemChange: function onActiveItemChange(index) {\n if (this.activeIndex !== index) {\n this.$emit('update:activeIndex', index);\n }\n },\n maskHide: function maskHide() {\n this.$emit('update:visible', false);\n },\n containerRef: function containerRef(el) {\n this.container = el;\n },\n maskRef: function maskRef(el) {\n this.mask = el;\n },\n focus: function focus() {\n var focusTarget = this.container.$el.querySelector('[autofocus]');\n if (focusTarget) {\n focusTarget.focus();\n }\n }\n },\n components: {\n GalleriaContent: script$1,\n Portal: Portal\n },\n directives: {\n focustrap: FocusTrap\n }\n};\n\nvar _hoisted_1 = [\"aria-modal\"];\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_GalleriaContent = resolveComponent(\"GalleriaContent\");\n var _component_Portal = resolveComponent(\"Portal\");\n var _directive_focustrap = resolveDirective(\"focustrap\");\n return _ctx.fullScreen ? (openBlock(), createBlock(_component_Portal, {\n key: 0\n }, {\n \"default\": withCtx(function () {\n return [$data.containerVisible ? (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 0,\n ref: $options.maskRef,\n \"class\": [_ctx.cx('mask'), _ctx.maskClass],\n role: \"dialog\",\n \"aria-modal\": _ctx.fullScreen ? 'true' : undefined\n }, _ctx.ptm('mask')), [createVNode(Transition, mergeProps({\n name: \"p-galleria\",\n onBeforeEnter: $options.onBeforeEnter,\n onEnter: $options.onEnter,\n onBeforeLeave: $options.onBeforeLeave,\n onAfterLeave: $options.onAfterLeave,\n appear: \"\"\n }, _ctx.ptm('transition')), {\n \"default\": withCtx(function () {\n return [_ctx.visible ? withDirectives((openBlock(), createBlock(_component_GalleriaContent, mergeProps({\n key: 0,\n ref: $options.containerRef,\n onMaskHide: $options.maskHide,\n templates: _ctx.$slots,\n onActiveitemChange: $options.onActiveItemChange,\n pt: _ctx.pt,\n unstyled: _ctx.unstyled\n }, _ctx.$props), null, 16, [\"onMaskHide\", \"templates\", \"onActiveitemChange\", \"pt\", \"unstyled\"])), [[_directive_focustrap]]) : createCommentVNode(\"\", true)];\n }),\n _: 1\n }, 16, [\"onBeforeEnter\", \"onEnter\", \"onBeforeLeave\", \"onAfterLeave\"])], 16, _hoisted_1)) : createCommentVNode(\"\", true)];\n }),\n _: 1\n })) : (openBlock(), createBlock(_component_GalleriaContent, mergeProps({\n key: 1,\n templates: _ctx.$slots,\n onActiveitemChange: $options.onActiveItemChange,\n pt: _ctx.pt,\n unstyled: _ctx.unstyled\n }, _ctx.$props), null, 16, [\"templates\", \"onActiveitemChange\", \"pt\", \"unstyled\"]));\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","<template>\n <Galleria\n v-model:visible=\"galleryVisible\"\n @update:visible=\"handleVisibilityChange\"\n :activeIndex=\"activeIndex\"\n @update:activeIndex=\"handleActiveIndexChange\"\n :value=\"allGalleryItems\"\n :showIndicators=\"false\"\n changeItemOnIndicatorHover\n showItemNavigators\n fullScreen\n circular\n :showThumbnails=\"false\"\n :pt=\"{\n mask: {\n onMousedown: onMaskMouseDown,\n onMouseup: onMaskMouseUp,\n 'data-mask': true\n }\n }\"\n >\n <template #item=\"{ item }\">\n <ComfyImage\n :key=\"item.url\"\n :src=\"item.url\"\n :contain=\"false\"\n class=\"galleria-image\"\n />\n </template>\n </Galleria>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, watch, onMounted, onUnmounted } from 'vue'\nimport Galleria from 'primevue/galleria'\nimport { ResultItemImpl } from '@/stores/queueStore'\nimport ComfyImage from '@/components/common/ComfyImage.vue'\n\nconst galleryVisible = ref(false)\n\nconst emit = defineEmits<{\n (e: 'update:activeIndex', value: number): void\n}>()\n\nconst props = defineProps<{\n allGalleryItems: ResultItemImpl[]\n activeIndex: number\n}>()\n\nlet maskMouseDownTarget: EventTarget | null = null\n\nconst onMaskMouseDown = (event: MouseEvent) => {\n maskMouseDownTarget = event.target\n}\n\nconst onMaskMouseUp = (event: MouseEvent) => {\n const maskEl = document.querySelector('[data-mask]')\n if (\n galleryVisible.value &&\n maskMouseDownTarget === event.target &&\n maskMouseDownTarget === maskEl\n ) {\n galleryVisible.value = false\n handleVisibilityChange(false)\n }\n}\n\nwatch(\n () => props.activeIndex,\n (index) => {\n if (index !== -1) {\n galleryVisible.value = true\n }\n }\n)\n\nconst handleVisibilityChange = (visible: boolean) => {\n if (!visible) {\n emit('update:activeIndex', -1)\n }\n}\n\nconst handleActiveIndexChange = (index: number) => {\n emit('update:activeIndex', index)\n}\n\nconst handleKeyDown = (event: KeyboardEvent) => {\n if (!galleryVisible.value) return\n\n switch (event.key) {\n case 'ArrowLeft':\n navigateImage(-1)\n break\n case 'ArrowRight':\n navigateImage(1)\n break\n case 'Escape':\n galleryVisible.value = false\n handleVisibilityChange(false)\n break\n }\n}\n\nconst navigateImage = (direction: number) => {\n const newIndex =\n (props.activeIndex + direction + props.allGalleryItems.length) %\n props.allGalleryItems.length\n emit('update:activeIndex', newIndex)\n}\n\nonMounted(() => {\n window.addEventListener('keydown', handleKeyDown)\n})\n\nonUnmounted(() => {\n window.removeEventListener('keydown', handleKeyDown)\n})\n</script>\n\n<style>\n/* PrimeVue's galleria teleports the fullscreen gallery out of subtree so we\ncannot use scoped style here. */\nimg.galleria-image {\n max-width: 100vw;\n max-height: 100vh;\n object-fit: contain;\n}\n\n.p-galleria-close-button {\n /* Set z-index so the close button doesn't get hidden behind the image when image is large */\n z-index: 1;\n}\n</style>\n","import BaseStyle from '@primevue/core/base/style';\n\nvar theme = function theme(_ref) {\n var dt = _ref.dt;\n return \"\\n.p-toolbar {\\n display: flex;\\n align-items: center;\\n justify-content: space-between;\\n flex-wrap: wrap;\\n padding: \".concat(dt('toolbar.padding'), \";\\n background: \").concat(dt('toolbar.background'), \";\\n border: 1px solid \").concat(dt('toolbar.border.color'), \";\\n color: \").concat(dt('toolbar.color'), \";\\n border-radius: \").concat(dt('toolbar.border.radius'), \";\\n gap: \").concat(dt('toolbar.gap'), \";\\n}\\n\\n.p-toolbar-start,\\n.p-toolbar-center,\\n.p-toolbar-end {\\n display: flex;\\n align-items: center;\\n}\\n\");\n};\nvar classes = {\n root: 'p-toolbar p-component',\n start: 'p-toolbar-start',\n center: 'p-toolbar-center',\n end: 'p-toolbar-end'\n};\nvar ToolbarStyle = BaseStyle.extend({\n name: 'toolbar',\n theme: theme,\n classes: classes\n});\n\nexport { ToolbarStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import BaseComponent from '@primevue/core/basecomponent';\nimport ToolbarStyle from 'primevue/toolbar/style';\nimport { openBlock, createElementBlock, mergeProps, createElementVNode, renderSlot } from 'vue';\n\nvar script$1 = {\n name: 'BaseToolbar',\n \"extends\": BaseComponent,\n props: {\n ariaLabelledby: {\n type: String,\n \"default\": null\n }\n },\n style: ToolbarStyle,\n provide: function provide() {\n return {\n $pcToolbar: this,\n $parentInstance: this\n };\n }\n};\n\nvar script = {\n name: 'Toolbar',\n \"extends\": script$1,\n inheritAttrs: false\n};\n\nvar _hoisted_1 = [\"aria-labelledby\"];\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"div\", mergeProps({\n \"class\": _ctx.cx('root'),\n role: \"toolbar\",\n \"aria-labelledby\": _ctx.ariaLabelledby\n }, _ctx.ptmi('root')), [createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('start')\n }, _ctx.ptm('start')), [renderSlot(_ctx.$slots, \"start\")], 16), createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('center')\n }, _ctx.ptm('center')), [renderSlot(_ctx.$slots, \"center\")], 16), createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('end')\n }, _ctx.ptm('end')), [renderSlot(_ctx.$slots, \"end\")], 16)], 16, _hoisted_1);\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","<template>\n <div class=\"comfy-vue-side-bar-container\">\n <Toolbar class=\"comfy-vue-side-bar-header\">\n <template #start>\n <span class=\"comfy-vue-side-bar-header-span\">{{\n props.title.toUpperCase()\n }}</span>\n </template>\n <template #end>\n <slot name=\"tool-buttons\"></slot>\n </template>\n </Toolbar>\n <div class=\"comfy-vue-side-bar-body\">\n <slot name=\"body\"></slot>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport Toolbar from 'primevue/toolbar'\n\nconst props = defineProps({\n title: {\n type: String,\n required: true\n }\n})\n</script>\n\n<style scoped>\n.comfy-vue-side-bar-container {\n display: flex;\n flex-direction: column;\n height: 100%;\n overflow: hidden;\n}\n\n.comfy-vue-side-bar-header {\n flex-shrink: 0;\n border-left: none;\n border-right: none;\n border-top: none;\n border-radius: 0;\n padding: 0.25rem 1rem;\n min-height: 2.5rem;\n}\n\n.comfy-vue-side-bar-header-span {\n font-size: small;\n}\n\n.comfy-vue-side-bar-body {\n flex-grow: 1;\n overflow: auto;\n scrollbar-width: thin;\n scrollbar-color: transparent transparent;\n}\n\n.comfy-vue-side-bar-body::-webkit-scrollbar {\n width: 1px;\n}\n\n.comfy-vue-side-bar-body::-webkit-scrollbar-thumb {\n background-color: transparent;\n}\n</style>\n","<template>\n <SidebarTabTemplate :title=\"$t('sideToolbar.queue')\">\n <template #tool-buttons>\n <Button\n :icon=\"\n imageFit === 'cover'\n ? 'pi pi-arrow-down-left-and-arrow-up-right-to-center'\n : 'pi pi-arrow-up-right-and-arrow-down-left-from-center'\n \"\n text\n severity=\"secondary\"\n @click=\"toggleImageFit\"\n class=\"toggle-expanded-button\"\n v-tooltip=\"$t(`sideToolbar.queueTab.${imageFit}ImagePreview`)\"\n />\n <Button\n v-if=\"isInFolderView\"\n icon=\"pi pi-arrow-left\"\n text\n severity=\"secondary\"\n @click=\"exitFolderView\"\n class=\"back-button\"\n v-tooltip=\"$t('sideToolbar.queueTab.backToAllTasks')\"\n />\n <template v-else>\n <Button\n :icon=\"isExpanded ? 'pi pi-images' : 'pi pi-image'\"\n text\n severity=\"secondary\"\n @click=\"toggleExpanded\"\n class=\"toggle-expanded-button\"\n v-tooltip=\"$t('sideToolbar.queueTab.showFlatList')\"\n />\n <Button\n v-if=\"queueStore.hasPendingTasks\"\n icon=\"pi pi-stop\"\n severity=\"danger\"\n text\n @click=\"() => commandStore.execute('Comfy.ClearPendingTasks')\"\n v-tooltip.bottom=\"$t('sideToolbar.queueTab.clearPendingTasks')\"\n />\n <Button\n icon=\"pi pi-trash\"\n text\n severity=\"primary\"\n @click=\"confirmRemoveAll($event)\"\n class=\"clear-all-button\"\n />\n </template>\n </template>\n <template #body>\n <div\n v-if=\"visibleTasks.length > 0\"\n ref=\"scrollContainer\"\n class=\"scroll-container\"\n >\n <div class=\"queue-grid\">\n <TaskItem\n v-for=\"task in visibleTasks\"\n :key=\"task.key\"\n :task=\"task\"\n :isFlatTask=\"isExpanded || isInFolderView\"\n @contextmenu=\"handleContextMenu\"\n @preview=\"handlePreview\"\n @taskOutputLengthClicked=\"enterFolderView($event)\"\n />\n </div>\n <div ref=\"loadMoreTrigger\" style=\"height: 1px\" />\n </div>\n <div v-else-if=\"queueStore.isLoading\">\n <ProgressSpinner\n style=\"width: 50px; left: 50%; transform: translateX(-50%)\"\n />\n </div>\n <div v-else>\n <NoResultsPlaceholder\n icon=\"pi pi-info-circle\"\n :title=\"$t('noTasksFound')\"\n :message=\"$t('noTasksFoundMessage')\"\n />\n </div>\n </template>\n </SidebarTabTemplate>\n <ConfirmPopup />\n <ContextMenu ref=\"menu\" :model=\"menuItems\" />\n <ResultGallery\n v-model:activeIndex=\"galleryActiveIndex\"\n :allGalleryItems=\"allGalleryItems\"\n />\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, onMounted, onUnmounted, watch, nextTick } from 'vue'\nimport { useInfiniteScroll, useResizeObserver } from '@vueuse/core'\nimport { useI18n } from 'vue-i18n'\nimport { useConfirm } from 'primevue/useconfirm'\nimport { useToast } from 'primevue/usetoast'\nimport Button from 'primevue/button'\nimport ConfirmPopup from 'primevue/confirmpopup'\nimport ContextMenu from 'primevue/contextmenu'\nimport type { MenuItem } from 'primevue/menuitem'\nimport ProgressSpinner from 'primevue/progressspinner'\nimport TaskItem from './queue/TaskItem.vue'\nimport ResultGallery from './queue/ResultGallery.vue'\nimport SidebarTabTemplate from './SidebarTabTemplate.vue'\nimport NoResultsPlaceholder from '@/components/common/NoResultsPlaceholder.vue'\nimport { TaskItemImpl, useQueueStore } from '@/stores/queueStore'\nimport { api } from '@/scripts/api'\nimport { ComfyNode } from '@/types/comfyWorkflow'\nimport { useSettingStore } from '@/stores/settingStore'\nimport { useCommandStore } from '@/stores/commandStore'\nimport { app } from '@/scripts/app'\n\nconst IMAGE_FIT = 'Comfy.Queue.ImageFit'\nconst confirm = useConfirm()\nconst toast = useToast()\nconst queueStore = useQueueStore()\nconst settingStore = useSettingStore()\nconst commandStore = useCommandStore()\nconst { t } = useI18n()\n\n// Expanded view: show all outputs in a flat list.\nconst isExpanded = ref(false)\nconst visibleTasks = ref<TaskItemImpl[]>([])\nconst scrollContainer = ref<HTMLElement | null>(null)\nconst loadMoreTrigger = ref<HTMLElement | null>(null)\nconst galleryActiveIndex = ref(-1)\n// Folder view: only show outputs from a single selected task.\nconst folderTask = ref<TaskItemImpl | null>(null)\nconst isInFolderView = computed(() => folderTask.value !== null)\nconst imageFit = computed<string>(() => settingStore.get(IMAGE_FIT))\n\nconst ITEMS_PER_PAGE = 8\nconst SCROLL_THRESHOLD = 100 // pixels from bottom to trigger load\n\nconst allTasks = computed(() =>\n isInFolderView.value\n ? folderTask.value\n ? folderTask.value.flatten()\n : []\n : isExpanded.value\n ? queueStore.flatTasks\n : queueStore.tasks\n)\nconst allGalleryItems = computed(() =>\n allTasks.value.flatMap((task: TaskItemImpl) => {\n const previewOutput = task.previewOutput\n return previewOutput ? [previewOutput] : []\n })\n)\n\nconst loadMoreItems = () => {\n const currentLength = visibleTasks.value.length\n const newTasks = allTasks.value.slice(\n currentLength,\n currentLength + ITEMS_PER_PAGE\n )\n visibleTasks.value.push(...newTasks)\n}\n\nconst checkAndLoadMore = () => {\n if (!scrollContainer.value) return\n\n const { scrollHeight, scrollTop, clientHeight } = scrollContainer.value\n if (scrollHeight - scrollTop - clientHeight < SCROLL_THRESHOLD) {\n loadMoreItems()\n }\n}\n\nuseInfiniteScroll(\n scrollContainer,\n () => {\n if (visibleTasks.value.length < allTasks.value.length) {\n loadMoreItems()\n }\n },\n { distance: SCROLL_THRESHOLD }\n)\n\n// Use ResizeObserver to detect container size changes\n// This is necessary as the sidebar tab can change size when user drags the splitter.\nuseResizeObserver(scrollContainer, () => {\n nextTick(() => {\n checkAndLoadMore()\n })\n})\n\nconst updateVisibleTasks = () => {\n visibleTasks.value = allTasks.value.slice(0, ITEMS_PER_PAGE)\n}\n\nconst toggleExpanded = () => {\n isExpanded.value = !isExpanded.value\n updateVisibleTasks()\n}\n\nconst removeTask = (task: TaskItemImpl) => {\n if (task.isRunning) {\n api.interrupt()\n }\n queueStore.delete(task)\n}\n\nconst removeAllTasks = async () => {\n await queueStore.clear()\n}\n\nconst confirmRemoveAll = (event: Event) => {\n confirm.require({\n target: event.currentTarget as HTMLElement,\n message: 'Do you want to delete all tasks?',\n icon: 'pi pi-info-circle',\n rejectProps: {\n label: 'Cancel',\n severity: 'secondary',\n outlined: true\n },\n acceptProps: {\n label: 'Delete',\n severity: 'danger'\n },\n accept: async () => {\n await removeAllTasks()\n toast.add({\n severity: 'info',\n summary: 'Confirmed',\n detail: 'Tasks deleted',\n life: 3000\n })\n }\n })\n}\n\nconst onStatus = async () => {\n await queueStore.update()\n updateVisibleTasks()\n}\n\nconst menu = ref(null)\nconst menuTargetTask = ref<TaskItemImpl | null>(null)\nconst menuTargetNode = ref<ComfyNode | null>(null)\nconst menuItems = computed<MenuItem[]>(() => [\n {\n label: t('delete'),\n icon: 'pi pi-trash',\n command: () => menuTargetTask.value && removeTask(menuTargetTask.value),\n disabled: isExpanded.value || isInFolderView.value\n },\n {\n label: t('loadWorkflow'),\n icon: 'pi pi-file-export',\n command: () => menuTargetTask.value?.loadWorkflow()\n },\n {\n label: t('goToNode'),\n icon: 'pi pi-arrow-circle-right',\n command: () => app.goToNode(menuTargetNode.value?.id),\n visible: !!menuTargetNode.value\n }\n])\n\nconst handleContextMenu = ({\n task,\n event,\n node\n}: {\n task: TaskItemImpl\n event: Event\n node?: ComfyNode\n}) => {\n menuTargetTask.value = task\n menuTargetNode.value = node\n menu.value?.show(event)\n}\n\nconst handlePreview = (task: TaskItemImpl) => {\n galleryActiveIndex.value = allGalleryItems.value.findIndex(\n (item) => item.url === task.previewOutput?.url\n )\n}\n\nconst enterFolderView = (task: TaskItemImpl) => {\n folderTask.value = task\n updateVisibleTasks()\n}\n\nconst exitFolderView = () => {\n folderTask.value = null\n updateVisibleTasks()\n}\n\nconst toggleImageFit = () => {\n settingStore.set(IMAGE_FIT, imageFit.value === 'cover' ? 'contain' : 'cover')\n}\n\nonMounted(() => {\n api.addEventListener('status', onStatus)\n queueStore.update()\n})\n\nonUnmounted(() => {\n api.removeEventListener('status', onStatus)\n})\n\n// Watch for changes in allTasks and reset visibleTasks if necessary\nwatch(\n allTasks,\n (newTasks) => {\n if (\n visibleTasks.value.length === 0 ||\n visibleTasks.value.length > newTasks.length\n ) {\n updateVisibleTasks()\n }\n\n nextTick(() => {\n checkAndLoadMore()\n })\n },\n { immediate: true }\n)\n</script>\n\n<style scoped>\n.scroll-container {\n height: 100%;\n overflow-y: auto;\n}\n\n.queue-grid {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\n padding: 0.5rem;\n gap: 0.5rem;\n}\n</style>\n","import BaseStyle from '@primevue/core/base/style';\n\nvar theme = function theme(_ref) {\n var dt = _ref.dt;\n return \"\\n.p-popover {\\n margin-top: \".concat(dt('popover.gutter'), \";\\n background: \").concat(dt('popover.background'), \";\\n color: \").concat(dt('popover.color'), \";\\n border: 1px solid \").concat(dt('popover.border.color'), \";\\n border-radius: \").concat(dt('popover.border.radius'), \";\\n box-shadow: \").concat(dt('popover.shadow'), \";\\n}\\n\\n.p-popover-content {\\n padding: \").concat(dt('popover.content.padding'), \";\\n}\\n\\n.p-popover-flipped {\\n margin-top: calc(\").concat(dt('popover.gutter'), \" * -1);\\n margin-bottom: \").concat(dt('popover.gutter'), \";\\n}\\n\\n.p-popover-enter-from {\\n opacity: 0;\\n transform: scaleY(0.8);\\n}\\n\\n.p-popover-leave-to {\\n opacity: 0;\\n}\\n\\n.p-popover-enter-active {\\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\\n}\\n\\n.p-popover-leave-active {\\n transition: opacity 0.1s linear;\\n}\\n\\n.p-popover:after,\\n.p-popover:before {\\n bottom: 100%;\\n left: calc(\").concat(dt('popover.arrow.offset'), \" + \").concat(dt('popover.arrow.left'), \");\\n content: \\\" \\\";\\n height: 0;\\n width: 0;\\n position: absolute;\\n pointer-events: none;\\n}\\n\\n.p-popover:after {\\n border-width: calc(\").concat(dt('popover.gutter'), \" - 2px);\\n margin-left: calc(-1 * (\").concat(dt('popover.gutter'), \" - 2px));\\n border-style: solid;\\n border-color: transparent;\\n border-bottom-color: \").concat(dt('popover.background'), \";\\n}\\n\\n.p-popover:before {\\n border-width: \").concat(dt('popover.gutter'), \";\\n margin-left: calc(-1 * \").concat(dt('popover.gutter'), \");\\n border-style: solid;\\n border-color: transparent;\\n border-bottom-color: \").concat(dt('popover.border.color'), \";\\n}\\n\\n.p-popover-flipped:after,\\n.p-popover-flipped:before {\\n bottom: auto;\\n top: 100%;\\n}\\n\\n.p-popover.p-popover-flipped:after {\\n border-bottom-color: transparent;\\n border-top-color: \").concat(dt('popover.background'), \";\\n}\\n\\n.p-popover.p-popover-flipped:before {\\n border-bottom-color: transparent;\\n border-top-color: \").concat(dt('popover.border.color'), \";\\n}\\n\");\n};\nvar classes = {\n root: 'p-popover p-component',\n content: 'p-popover-content'\n};\nvar PopoverStyle = BaseStyle.extend({\n name: 'popover',\n theme: theme,\n classes: classes\n});\n\nexport { PopoverStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import { ConnectedOverlayScrollHandler, UniqueComponentId } from '@primevue/core/utils';\nimport { addStyle, absolutePosition, getOffset, addClass, focus, isClient, isTouchDevice, setAttribute } from '@primeuix/utils/dom';\nimport { ZIndex } from '@primeuix/utils/zindex';\nimport { $dt } from '@primeuix/styled';\nimport FocusTrap from 'primevue/focustrap';\nimport OverlayEventBus from 'primevue/overlayeventbus';\nimport Portal from 'primevue/portal';\nimport Ripple from 'primevue/ripple';\nimport BaseComponent from '@primevue/core/basecomponent';\nimport PopoverStyle from 'primevue/popover/style';\nimport { resolveComponent, resolveDirective, openBlock, createBlock, withCtx, createVNode, Transition, mergeProps, withDirectives, createElementBlock, renderSlot, createCommentVNode } from 'vue';\n\nvar script$1 = {\n name: 'BasePopover',\n \"extends\": BaseComponent,\n props: {\n dismissable: {\n type: Boolean,\n \"default\": true\n },\n appendTo: {\n type: [String, Object],\n \"default\": 'body'\n },\n baseZIndex: {\n type: Number,\n \"default\": 0\n },\n autoZIndex: {\n type: Boolean,\n \"default\": true\n },\n breakpoints: {\n type: Object,\n \"default\": null\n },\n closeOnEscape: {\n type: Boolean,\n \"default\": true\n }\n },\n style: PopoverStyle,\n provide: function provide() {\n return {\n $pcPopover: this,\n $parentInstance: this\n };\n }\n};\n\nvar script = {\n name: 'Popover',\n \"extends\": script$1,\n inheritAttrs: false,\n emits: ['show', 'hide'],\n data: function data() {\n return {\n visible: false\n };\n },\n watch: {\n dismissable: {\n immediate: true,\n handler: function handler(newValue) {\n if (newValue) {\n this.bindOutsideClickListener();\n } else {\n this.unbindOutsideClickListener();\n }\n }\n }\n },\n selfClick: false,\n target: null,\n eventTarget: null,\n outsideClickListener: null,\n scrollHandler: null,\n resizeListener: null,\n container: null,\n styleElement: null,\n overlayEventListener: null,\n documentKeydownListener: null,\n beforeUnmount: function beforeUnmount() {\n if (this.dismissable) {\n this.unbindOutsideClickListener();\n }\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n this.destroyStyle();\n this.unbindResizeListener();\n this.target = null;\n if (this.container && this.autoZIndex) {\n ZIndex.clear(this.container);\n }\n if (this.overlayEventListener) {\n OverlayEventBus.off('overlay-click', this.overlayEventListener);\n this.overlayEventListener = null;\n }\n this.container = null;\n },\n mounted: function mounted() {\n if (this.breakpoints) {\n this.createStyle();\n }\n },\n methods: {\n toggle: function toggle(event, target) {\n if (this.visible) this.hide();else this.show(event, target);\n },\n show: function show(event, target) {\n this.visible = true;\n this.eventTarget = event.currentTarget;\n this.target = target || event.currentTarget;\n },\n hide: function hide() {\n this.visible = false;\n },\n onContentClick: function onContentClick() {\n this.selfClick = true;\n },\n onEnter: function onEnter(el) {\n var _this = this;\n this.container.setAttribute(this.attributeSelector, '');\n addStyle(el, {\n position: 'absolute',\n top: '0',\n left: '0'\n });\n this.alignOverlay();\n if (this.dismissable) {\n this.bindOutsideClickListener();\n }\n this.bindScrollListener();\n this.bindResizeListener();\n if (this.autoZIndex) {\n ZIndex.set('overlay', el, this.baseZIndex + this.$primevue.config.zIndex.overlay);\n }\n this.overlayEventListener = function (e) {\n if (_this.container.contains(e.target)) {\n _this.selfClick = true;\n }\n };\n this.focus();\n OverlayEventBus.on('overlay-click', this.overlayEventListener);\n this.$emit('show');\n if (this.closeOnEscape) {\n this.bindDocumentKeyDownListener();\n }\n },\n onLeave: function onLeave() {\n this.unbindOutsideClickListener();\n this.unbindScrollListener();\n this.unbindResizeListener();\n this.unbindDocumentKeyDownListener();\n OverlayEventBus.off('overlay-click', this.overlayEventListener);\n this.overlayEventListener = null;\n this.$emit('hide');\n },\n onAfterLeave: function onAfterLeave(el) {\n if (this.autoZIndex) {\n ZIndex.clear(el);\n }\n },\n alignOverlay: function alignOverlay() {\n absolutePosition(this.container, this.target, false);\n var containerOffset = getOffset(this.container);\n var targetOffset = getOffset(this.target);\n var arrowLeft = 0;\n if (containerOffset.left < targetOffset.left) {\n arrowLeft = targetOffset.left - containerOffset.left;\n }\n this.container.style.setProperty($dt('popover.arrow.left').name, \"\".concat(arrowLeft, \"px\"));\n if (containerOffset.top < targetOffset.top) {\n this.container.setAttribute('data-p-popover-flipped', 'true');\n !this.isUnstyled && addClass(this.container, 'p-popover-flipped');\n }\n },\n onContentKeydown: function onContentKeydown(event) {\n if (event.code === 'Escape' && this.closeOnEscape) {\n this.hide();\n focus(this.target);\n }\n },\n onButtonKeydown: function onButtonKeydown(event) {\n switch (event.code) {\n case 'ArrowDown':\n case 'ArrowUp':\n case 'ArrowLeft':\n case 'ArrowRight':\n event.preventDefault();\n }\n },\n focus: function focus() {\n var focusTarget = this.container.querySelector('[autofocus]');\n if (focusTarget) {\n focusTarget.focus();\n }\n },\n onKeyDown: function onKeyDown(event) {\n if (event.code === 'Escape' && this.closeOnEscape) {\n this.visible = false;\n }\n },\n bindDocumentKeyDownListener: function bindDocumentKeyDownListener() {\n if (!this.documentKeydownListener) {\n this.documentKeydownListener = this.onKeyDown.bind(this);\n window.document.addEventListener('keydown', this.documentKeydownListener);\n }\n },\n unbindDocumentKeyDownListener: function unbindDocumentKeyDownListener() {\n if (this.documentKeydownListener) {\n window.document.removeEventListener('keydown', this.documentKeydownListener);\n this.documentKeydownListener = null;\n }\n },\n bindOutsideClickListener: function bindOutsideClickListener() {\n var _this2 = this;\n if (!this.outsideClickListener && isClient()) {\n this.outsideClickListener = function (event) {\n if (_this2.visible && !_this2.selfClick && !_this2.isTargetClicked(event)) {\n _this2.visible = false;\n }\n _this2.selfClick = false;\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 this.selfClick = false;\n }\n },\n bindScrollListener: function bindScrollListener() {\n var _this3 = this;\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.target, function () {\n if (_this3.visible) {\n _this3.visible = false;\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 _this4 = this;\n if (!this.resizeListener) {\n this.resizeListener = function () {\n if (_this4.visible && !isTouchDevice()) {\n _this4.visible = false;\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 isTargetClicked: function isTargetClicked(event) {\n return this.eventTarget && (this.eventTarget === event.target || this.eventTarget.contains(event.target));\n },\n containerRef: function containerRef(el) {\n this.container = el;\n },\n createStyle: function createStyle() {\n if (!this.styleElement && !this.isUnstyled) {\n var _this$$primevue;\n this.styleElement = document.createElement('style');\n this.styleElement.type = 'text/css';\n setAttribute(this.styleElement, 'nonce', (_this$$primevue = this.$primevue) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.config) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.csp) === null || _this$$primevue === void 0 ? void 0 : _this$$primevue.nonce);\n document.head.appendChild(this.styleElement);\n var innerHTML = '';\n for (var breakpoint in this.breakpoints) {\n innerHTML += \"\\n @media screen and (max-width: \".concat(breakpoint, \") {\\n .p-popover[\").concat(this.attributeSelector, \"] {\\n width: \").concat(this.breakpoints[breakpoint], \" !important;\\n }\\n }\\n \");\n }\n this.styleElement.innerHTML = innerHTML;\n }\n },\n destroyStyle: function destroyStyle() {\n if (this.styleElement) {\n document.head.removeChild(this.styleElement);\n this.styleElement = null;\n }\n },\n onOverlayClick: function onOverlayClick(event) {\n OverlayEventBus.emit('overlay-click', {\n originalEvent: event,\n target: this.target\n });\n }\n },\n computed: {\n attributeSelector: function attributeSelector() {\n return UniqueComponentId();\n }\n },\n directives: {\n focustrap: FocusTrap,\n ripple: Ripple\n },\n components: {\n Portal: Portal\n }\n};\n\nvar _hoisted_1 = [\"aria-modal\"];\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_Portal = resolveComponent(\"Portal\");\n var _directive_focustrap = resolveDirective(\"focustrap\");\n return openBlock(), createBlock(_component_Portal, {\n appendTo: _ctx.appendTo\n }, {\n \"default\": withCtx(function () {\n return [createVNode(Transition, mergeProps({\n name: \"p-popover\",\n onEnter: $options.onEnter,\n onLeave: $options.onLeave,\n onAfterLeave: $options.onAfterLeave\n }, _ctx.ptm('transition')), {\n \"default\": withCtx(function () {\n return [$data.visible ? withDirectives((openBlock(), createElementBlock(\"div\", mergeProps({\n key: 0,\n ref: $options.containerRef,\n role: \"dialog\",\n \"aria-modal\": $data.visible,\n onClick: _cache[3] || (_cache[3] = function () {\n return $options.onOverlayClick && $options.onOverlayClick.apply($options, arguments);\n }),\n \"class\": _ctx.cx('root')\n }, _ctx.ptmi('root')), [_ctx.$slots.container ? renderSlot(_ctx.$slots, \"container\", {\n key: 0,\n closeCallback: $options.hide,\n keydownCallback: function keydownCallback(event) {\n return $options.onButtonKeydown(event);\n }\n }) : (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 1,\n \"class\": _ctx.cx('content'),\n onClick: _cache[0] || (_cache[0] = function () {\n return $options.onContentClick && $options.onContentClick.apply($options, arguments);\n }),\n onMousedown: _cache[1] || (_cache[1] = function () {\n return $options.onContentClick && $options.onContentClick.apply($options, arguments);\n }),\n onKeydown: _cache[2] || (_cache[2] = function () {\n return $options.onContentKeydown && $options.onContentKeydown.apply($options, arguments);\n })\n }, _ctx.ptm('content')), [renderSlot(_ctx.$slots, \"default\")], 16))], 16, _hoisted_1)), [[_directive_focustrap]]) : createCommentVNode(\"\", true)];\n }),\n _: 3\n }, 16, [\"onEnter\", \"onLeave\", \"onAfterLeave\"])];\n }),\n _: 3\n }, 8, [\"appendTo\"]);\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","import BaseStyle from '@primevue/core/base/style';\n\nvar theme = function theme(_ref) {\n var dt = _ref.dt;\n return \"\\n.p-tree {\\n background: \".concat(dt('tree.background'), \";\\n color: \").concat(dt('tree.color'), \";\\n padding: \").concat(dt('tree.padding'), \";\\n}\\n\\n.p-tree-root-children,\\n.p-tree-node-children {\\n display: flex;\\n list-style-type: none;\\n flex-direction: column;\\n margin: 0;\\n gap: \").concat(dt('tree.gap'), \";\\n}\\n\\n.p-tree-root-children {\\n padding: \").concat(dt('tree.gap'), \" 0 0 0;\\n}\\n\\n.p-tree-node-children {\\n padding: \").concat(dt('tree.gap'), \" 0 0 \").concat(dt('tree.indent'), \";\\n}\\n\\n.p-tree-node {\\n padding: 0;\\n outline: 0 none;\\n}\\n\\n.p-tree-node-content {\\n border-radius: \").concat(dt('tree.node.border.radius'), \";\\n padding: \").concat(dt('tree.node.padding'), \";\\n display: flex;\\n align-items: center;\\n outline-color: transparent;\\n color: \").concat(dt('tree.node.color'), \";\\n gap: \").concat(dt('tree.node.gap'), \";\\n transition: background \").concat(dt('tree.transition.duration'), \", color \").concat(dt('tree.transition.duration'), \", outline-color \").concat(dt('tree.transition.duration'), \", box-shadow \").concat(dt('tree.transition.duration'), \";\\n}\\n\\n.p-tree-node:focus-visible > .p-tree-node-content {\\n box-shadow: \").concat(dt('tree.node.focus.ring.shadow'), \";\\n outline: \").concat(dt('tree.node.focus.ring.width'), \" \").concat(dt('tree.node.focus.ring.style'), \" \").concat(dt('tree.node.focus.ring.color'), \";\\n outline-offset: \").concat(dt('tree.node.focus.ring.offset'), \";\\n}\\n\\n.p-tree-node-content.p-tree-node-selectable:not(.p-tree-node-selected):hover {\\n background: \").concat(dt('tree.node.hover.background'), \";\\n color: \").concat(dt('tree.node.hover.color'), \";\\n}\\n\\n.p-tree-node-content.p-tree-node-selectable:not(.p-tree-node-selected):hover .p-tree-node-icon {\\n color: \").concat(dt('tree.node.icon.hover.color'), \";\\n}\\n\\n.p-tree-node-content.p-tree-node-selected {\\n background: \").concat(dt('tree.node.selected.background'), \";\\n color: \").concat(dt('tree.node.selected.color'), \";\\n}\\n\\n.p-tree-node-content.p-tree-node-selected .p-tree-node-toggle-button {\\n color: inherit;\\n}\\n\\n.p-tree-node-toggle-button {\\n cursor: pointer;\\n user-select: none;\\n display: inline-flex;\\n align-items: center;\\n justify-content: center;\\n overflow: hidden;\\n position: relative;\\n flex-shrink: 0;\\n width: \").concat(dt('tree.node.toggle.button.size'), \";\\n height: \").concat(dt('tree.node.toggle.button.size'), \";\\n color: \").concat(dt('tree.node.toggle.button.color'), \";\\n border: 0 none;\\n background: transparent;\\n border-radius: \").concat(dt('tree.node.toggle.button.border.radius'), \";\\n transition: background \").concat(dt('tree.transition.duration'), \", color \").concat(dt('tree.transition.duration'), \", border-color \").concat(dt('tree.transition.duration'), \", outline-color \").concat(dt('tree.transition.duration'), \", box-shadow \").concat(dt('tree.transition.duration'), \";\\n outline-color: transparent;\\n padding: 0;\\n}\\n\\n.p-tree-node-toggle-button:enabled:hover {\\n background: \").concat(dt('tree.node.toggle.button.hover.background'), \";\\n color: \").concat(dt('tree.node.toggle.button.hover.color'), \";\\n}\\n\\n.p-tree-node-content.p-tree-node-selected .p-tree-node-toggle-button:hover {\\n background: \").concat(dt('tree.node.toggle.button.selected.hover.background'), \";\\n color: \").concat(dt('tree.node.toggle.button.selected.hover.color'), \";\\n}\\n\\n.p-tree-root {\\n overflow: auto;\\n}\\n\\n.p-tree-node-selectable {\\n cursor: pointer;\\n user-select: none;\\n}\\n\\n.p-tree-node-leaf > .p-tree-node-content .p-tree-node-toggle-button {\\n visibility: hidden;\\n}\\n\\n.p-tree-node-icon {\\n color: \").concat(dt('tree.node.icon.color'), \";\\n transition: color \").concat(dt('tree.transition.duration'), \";\\n}\\n\\n.p-tree-node-content.p-tree-node-selected .p-tree-node-icon {\\n color: \").concat(dt('tree.node.icon.selected.color'), \";\\n}\\n\\n.p-tree-filter-input {\\n width: 100%;\\n}\\n\\n.p-tree-loading {\\n position: relative;\\n height: 100%;\\n}\\n\\n.p-tree-loading-icon {\\n font-size: \").concat(dt('tree.loading.icon.size'), \";\\n width: \").concat(dt('tree.loading.icon.size'), \";\\n height: \").concat(dt('tree.loading.icon.size'), \";\\n}\\n\\n.p-tree .p-tree-mask {\\n position: absolute;\\n z-index: 1;\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n}\\n\\n.p-tree-flex-scrollable {\\n display: flex;\\n flex: 1;\\n height: 100%;\\n flex-direction: column;\\n}\\n\\n.p-tree-flex-scrollable .p-tree-root {\\n flex: 1;\\n}\\n\");\n};\nvar classes = {\n root: function root(_ref2) {\n var props = _ref2.props;\n return ['p-tree p-component', {\n 'p-tree-selectable': props.selectionMode != null,\n 'p-tree-loading': props.loading,\n 'p-tree-flex-scrollable': props.scrollHeight === 'flex'\n }];\n },\n mask: 'p-tree-mask p-overlay-mask',\n loadingIcon: 'p-tree-loading-icon',\n pcFilterInput: 'p-tree-filter-input',\n wrapper: 'p-tree-root',\n //TODO: discuss\n rootChildren: 'p-tree-root-children',\n node: function node(_ref3) {\n var instance = _ref3.instance;\n return ['p-tree-node', {\n 'p-tree-node-leaf': instance.leaf\n }];\n },\n nodeContent: function nodeContent(_ref4) {\n var instance = _ref4.instance;\n return ['p-tree-node-content', instance.node.styleClass, {\n 'p-tree-node-selectable': instance.selectable,\n 'p-tree-node-selected': instance.checkboxMode && instance.$parentInstance.highlightOnSelect ? instance.checked : instance.selected\n }];\n },\n nodeToggleButton: 'p-tree-node-toggle-button',\n nodeToggleIcon: 'p-tree-node-toggle-icon',\n nodeCheckbox: 'p-tree-node-checkbox',\n nodeIcon: 'p-tree-node-icon',\n nodeLabel: 'p-tree-node-label',\n nodeChildren: 'p-tree-node-children'\n};\nvar TreeStyle = BaseStyle.extend({\n name: 'tree',\n theme: theme,\n classes: classes\n});\n\nexport { TreeStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import { resolveFieldData } from '@primeuix/utils/object';\nimport SearchIcon from '@primevue/icons/search';\nimport SpinnerIcon from '@primevue/icons/spinner';\nimport IconField from 'primevue/iconfield';\nimport InputIcon from 'primevue/inputicon';\nimport InputText from 'primevue/inputtext';\nimport BaseComponent from '@primevue/core/basecomponent';\nimport TreeStyle from 'primevue/tree/style';\nimport { getAttribute, findSingle, find } from '@primeuix/utils/dom';\nimport CheckIcon from '@primevue/icons/check';\nimport ChevronDownIcon from '@primevue/icons/chevrondown';\nimport ChevronRightIcon from '@primevue/icons/chevronright';\nimport MinusIcon from '@primevue/icons/minus';\nimport Checkbox from 'primevue/checkbox';\nimport Ripple from 'primevue/ripple';\nimport { resolveComponent, resolveDirective, openBlock, createElementBlock, mergeProps, createElementVNode, withDirectives, Fragment, createBlock, resolveDynamicComponent, normalizeClass, withCtx, createCommentVNode, withModifiers, createTextVNode, toDisplayString, renderList, renderSlot, createVNode } from 'vue';\n\nvar script$2 = {\n name: 'BaseTree',\n \"extends\": BaseComponent,\n props: {\n value: {\n type: null,\n \"default\": null\n },\n expandedKeys: {\n type: null,\n \"default\": null\n },\n selectionKeys: {\n type: null,\n \"default\": null\n },\n selectionMode: {\n type: String,\n \"default\": null\n },\n metaKeySelection: {\n type: Boolean,\n \"default\": false\n },\n loading: {\n type: Boolean,\n \"default\": false\n },\n loadingIcon: {\n type: String,\n \"default\": undefined\n },\n loadingMode: {\n type: String,\n \"default\": 'mask'\n },\n filter: {\n type: Boolean,\n \"default\": false\n },\n filterBy: {\n type: String,\n \"default\": 'label'\n },\n filterMode: {\n type: String,\n \"default\": 'lenient'\n },\n filterPlaceholder: {\n type: String,\n \"default\": null\n },\n filterLocale: {\n type: String,\n \"default\": undefined\n },\n highlightOnSelect: {\n type: Boolean,\n \"default\": false\n },\n scrollHeight: {\n type: String,\n \"default\": null\n },\n level: {\n type: Number,\n \"default\": 0\n },\n ariaLabelledby: {\n type: String,\n \"default\": null\n },\n ariaLabel: {\n type: String,\n \"default\": null\n }\n },\n style: TreeStyle,\n provide: function provide() {\n return {\n $pcTree: this,\n $parentInstance: this\n };\n }\n};\n\nfunction _typeof$1(o) { \"@babel/helpers - typeof\"; return _typeof$1 = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof$1(o); }\nfunction _createForOfIteratorHelper$1(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t[\"return\"] || t[\"return\"](); } finally { if (u) throw o; } } }; }\nfunction ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty$1(e, r, t) { return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey$1(t) { var i = _toPrimitive$1(t, \"string\"); return \"symbol\" == _typeof$1(i) ? i : i + \"\"; }\nfunction _toPrimitive$1(t, r) { if (\"object\" != _typeof$1(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof$1(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _toConsumableArray$1(r) { return _arrayWithoutHoles$1(r) || _iterableToArray$1(r) || _unsupportedIterableToArray$1(r) || _nonIterableSpread$1(); }\nfunction _nonIterableSpread$1() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray$1(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }\nfunction _iterableToArray$1(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\nfunction _arrayWithoutHoles$1(r) { if (Array.isArray(r)) return _arrayLikeToArray$1(r); }\nfunction _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nvar script$1 = {\n name: 'TreeNode',\n hostName: 'Tree',\n \"extends\": BaseComponent,\n emits: ['node-toggle', 'node-click', 'checkbox-change'],\n props: {\n node: {\n type: null,\n \"default\": null\n },\n expandedKeys: {\n type: null,\n \"default\": null\n },\n loadingMode: {\n type: String,\n \"default\": 'mask'\n },\n selectionKeys: {\n type: null,\n \"default\": null\n },\n selectionMode: {\n type: String,\n \"default\": null\n },\n templates: {\n type: null,\n \"default\": null\n },\n level: {\n type: Number,\n \"default\": null\n },\n index: null\n },\n nodeTouched: false,\n toggleClicked: false,\n mounted: function mounted() {\n this.setAllNodesTabIndexes();\n },\n methods: {\n toggle: function toggle() {\n this.$emit('node-toggle', this.node);\n this.toggleClicked = true;\n },\n label: function label(node) {\n return typeof node.label === 'function' ? node.label() : node.label;\n },\n onChildNodeToggle: function onChildNodeToggle(node) {\n this.$emit('node-toggle', node);\n },\n getPTOptions: function getPTOptions(key) {\n return this.ptm(key, {\n context: {\n index: this.index,\n expanded: this.expanded,\n selected: this.selected,\n checked: this.checked,\n leaf: this.leaf\n }\n });\n },\n onClick: function onClick(event) {\n if (this.toggleClicked || getAttribute(event.target, '[data-pc-section=\"nodetogglebutton\"]') || getAttribute(event.target.parentElement, '[data-pc-section=\"nodetogglebutton\"]')) {\n this.toggleClicked = false;\n return;\n }\n if (this.isCheckboxSelectionMode()) {\n if (this.node.selectable != false) {\n this.toggleCheckbox();\n }\n } else {\n this.$emit('node-click', {\n originalEvent: event,\n nodeTouched: this.nodeTouched,\n node: this.node\n });\n }\n this.nodeTouched = false;\n },\n onChildNodeClick: function onChildNodeClick(event) {\n this.$emit('node-click', event);\n },\n onTouchEnd: function onTouchEnd() {\n this.nodeTouched = true;\n },\n onKeyDown: function onKeyDown(event) {\n if (!this.isSameNode(event)) return;\n switch (event.code) {\n case 'Tab':\n this.onTabKey(event);\n break;\n case 'ArrowDown':\n this.onArrowDown(event);\n break;\n case 'ArrowUp':\n this.onArrowUp(event);\n break;\n case 'ArrowRight':\n this.onArrowRight(event);\n break;\n case 'ArrowLeft':\n this.onArrowLeft(event);\n break;\n case 'Enter':\n case 'NumpadEnter':\n case 'Space':\n this.onEnterKey(event);\n break;\n }\n },\n onArrowDown: function onArrowDown(event) {\n var nodeElement = event.target.getAttribute('data-pc-section') === 'nodetogglebutton' ? event.target.closest('[role=\"treeitem\"]') : event.target;\n var listElement = nodeElement.children[1];\n if (listElement) {\n this.focusRowChange(nodeElement, listElement.children[0]);\n } else {\n if (nodeElement.nextElementSibling) {\n this.focusRowChange(nodeElement, nodeElement.nextElementSibling);\n } else {\n var nextSiblingAncestor = this.findNextSiblingOfAncestor(nodeElement);\n if (nextSiblingAncestor) {\n this.focusRowChange(nodeElement, nextSiblingAncestor);\n }\n }\n }\n event.preventDefault();\n },\n onArrowUp: function onArrowUp(event) {\n var nodeElement = event.target;\n if (nodeElement.previousElementSibling) {\n this.focusRowChange(nodeElement, nodeElement.previousElementSibling, this.findLastVisibleDescendant(nodeElement.previousElementSibling));\n } else {\n var parentNodeElement = this.getParentNodeElement(nodeElement);\n if (parentNodeElement) {\n this.focusRowChange(nodeElement, parentNodeElement);\n }\n }\n event.preventDefault();\n },\n onArrowRight: function onArrowRight(event) {\n var _this = this;\n if (this.leaf || this.expanded) return;\n event.currentTarget.tabIndex = -1;\n this.$emit('node-toggle', this.node);\n this.$nextTick(function () {\n _this.onArrowDown(event);\n });\n },\n onArrowLeft: function onArrowLeft(event) {\n var togglerElement = findSingle(event.currentTarget, '[data-pc-section=\"nodetogglebutton\"]');\n if (this.level === 0 && !this.expanded) {\n return false;\n }\n if (this.expanded && !this.leaf) {\n togglerElement.click();\n return false;\n }\n var target = this.findBeforeClickableNode(event.currentTarget);\n if (target) {\n this.focusRowChange(event.currentTarget, target);\n }\n },\n onEnterKey: function onEnterKey(event) {\n this.setTabIndexForSelectionMode(event, this.nodeTouched);\n this.onClick(event);\n event.preventDefault();\n },\n onTabKey: function onTabKey() {\n this.setAllNodesTabIndexes();\n },\n setAllNodesTabIndexes: function setAllNodesTabIndexes() {\n var nodes = find(this.$refs.currentNode.closest('[data-pc-section=\"rootchildren\"]'), '[role=\"treeitem\"]');\n var hasSelectedNode = _toConsumableArray$1(nodes).some(function (node) {\n return node.getAttribute('aria-selected') === 'true' || node.getAttribute('aria-checked') === 'true';\n });\n _toConsumableArray$1(nodes).forEach(function (node) {\n node.tabIndex = -1;\n });\n if (hasSelectedNode) {\n var selectedNodes = _toConsumableArray$1(nodes).filter(function (node) {\n return node.getAttribute('aria-selected') === 'true' || node.getAttribute('aria-checked') === 'true';\n });\n selectedNodes[0].tabIndex = 0;\n return;\n }\n _toConsumableArray$1(nodes)[0].tabIndex = 0;\n },\n setTabIndexForSelectionMode: function setTabIndexForSelectionMode(event, nodeTouched) {\n if (this.selectionMode !== null) {\n var elements = _toConsumableArray$1(find(this.$refs.currentNode.parentElement, '[role=\"treeitem\"]'));\n event.currentTarget.tabIndex = nodeTouched === false ? -1 : 0;\n if (elements.every(function (element) {\n return element.tabIndex === -1;\n })) {\n elements[0].tabIndex = 0;\n }\n }\n },\n focusRowChange: function focusRowChange(firstFocusableRow, currentFocusedRow, lastVisibleDescendant) {\n firstFocusableRow.tabIndex = '-1';\n currentFocusedRow.tabIndex = '0';\n this.focusNode(lastVisibleDescendant || currentFocusedRow);\n },\n findBeforeClickableNode: function findBeforeClickableNode(node) {\n var parentListElement = node.closest('ul').closest('li');\n if (parentListElement) {\n var prevNodeButton = findSingle(parentListElement, 'button');\n if (prevNodeButton && prevNodeButton.style.visibility !== 'hidden') {\n return parentListElement;\n }\n return this.findBeforeClickableNode(node.previousElementSibling);\n }\n return null;\n },\n toggleCheckbox: function toggleCheckbox() {\n var _selectionKeys = this.selectionKeys ? _objectSpread$1({}, this.selectionKeys) : {};\n var _check = !this.checked;\n this.propagateDown(this.node, _check, _selectionKeys);\n this.$emit('checkbox-change', {\n node: this.node,\n check: _check,\n selectionKeys: _selectionKeys\n });\n },\n propagateDown: function propagateDown(node, check, selectionKeys) {\n if (check && node.selectable != false) selectionKeys[node.key] = {\n checked: true,\n partialChecked: false\n };else delete selectionKeys[node.key];\n if (node.children && node.children.length) {\n var _iterator = _createForOfIteratorHelper$1(node.children),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var child = _step.value;\n this.propagateDown(child, check, selectionKeys);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n },\n propagateUp: function propagateUp(event) {\n var check = event.check;\n var _selectionKeys = _objectSpread$1({}, event.selectionKeys);\n var checkedChildCount = 0;\n var childPartialSelected = false;\n var _iterator2 = _createForOfIteratorHelper$1(this.node.children),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var child = _step2.value;\n if (_selectionKeys[child.key] && _selectionKeys[child.key].checked) checkedChildCount++;else if (_selectionKeys[child.key] && _selectionKeys[child.key].partialChecked) childPartialSelected = true;\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n if (check && checkedChildCount === this.node.children.length) {\n _selectionKeys[this.node.key] = {\n checked: true,\n partialChecked: false\n };\n } else {\n if (!check) {\n delete _selectionKeys[this.node.key];\n }\n if (childPartialSelected || checkedChildCount > 0 && checkedChildCount !== this.node.children.length) _selectionKeys[this.node.key] = {\n checked: false,\n partialChecked: true\n };else delete _selectionKeys[this.node.key];\n }\n this.$emit('checkbox-change', {\n node: event.node,\n check: event.check,\n selectionKeys: _selectionKeys\n });\n },\n onChildCheckboxChange: function onChildCheckboxChange(event) {\n this.$emit('checkbox-change', event);\n },\n findNextSiblingOfAncestor: function findNextSiblingOfAncestor(nodeElement) {\n var parentNodeElement = this.getParentNodeElement(nodeElement);\n if (parentNodeElement) {\n if (parentNodeElement.nextElementSibling) return parentNodeElement.nextElementSibling;else return this.findNextSiblingOfAncestor(parentNodeElement);\n } else {\n return null;\n }\n },\n findLastVisibleDescendant: function findLastVisibleDescendant(nodeElement) {\n var childrenListElement = nodeElement.children[1];\n if (childrenListElement) {\n var lastChildElement = childrenListElement.children[childrenListElement.children.length - 1];\n return this.findLastVisibleDescendant(lastChildElement);\n } else {\n return nodeElement;\n }\n },\n getParentNodeElement: function getParentNodeElement(nodeElement) {\n var parentNodeElement = nodeElement.parentElement.parentElement;\n return getAttribute(parentNodeElement, 'role') === 'treeitem' ? parentNodeElement : null;\n },\n focusNode: function focusNode(element) {\n element.focus();\n },\n isCheckboxSelectionMode: function isCheckboxSelectionMode() {\n return this.selectionMode === 'checkbox';\n },\n isSameNode: function isSameNode(event) {\n return event.currentTarget && (event.currentTarget.isSameNode(event.target) || event.currentTarget.isSameNode(event.target.closest('[role=\"treeitem\"]')));\n }\n },\n computed: {\n hasChildren: function hasChildren() {\n return this.node.children && this.node.children.length > 0;\n },\n expanded: function expanded() {\n return this.expandedKeys && this.expandedKeys[this.node.key] === true;\n },\n leaf: function leaf() {\n return this.node.leaf === false ? false : !(this.node.children && this.node.children.length);\n },\n selectable: function selectable() {\n return this.node.selectable === false ? false : this.selectionMode != null;\n },\n selected: function selected() {\n return this.selectionMode && this.selectionKeys ? this.selectionKeys[this.node.key] === true : false;\n },\n checkboxMode: function checkboxMode() {\n return this.selectionMode === 'checkbox' && this.node.selectable !== false;\n },\n checked: function checked() {\n return this.selectionKeys ? this.selectionKeys[this.node.key] && this.selectionKeys[this.node.key].checked : false;\n },\n partialChecked: function partialChecked() {\n return this.selectionKeys ? this.selectionKeys[this.node.key] && this.selectionKeys[this.node.key].partialChecked : false;\n },\n ariaChecked: function ariaChecked() {\n return this.selectionMode === 'single' || this.selectionMode === 'multiple' ? this.selected : undefined;\n },\n ariaSelected: function ariaSelected() {\n return this.checkboxMode ? this.checked : undefined;\n }\n },\n components: {\n Checkbox: Checkbox,\n ChevronDownIcon: ChevronDownIcon,\n ChevronRightIcon: ChevronRightIcon,\n CheckIcon: CheckIcon,\n MinusIcon: MinusIcon,\n SpinnerIcon: SpinnerIcon\n },\n directives: {\n ripple: Ripple\n }\n};\n\nvar _hoisted_1$1 = [\"aria-label\", \"aria-selected\", \"aria-expanded\", \"aria-setsize\", \"aria-posinset\", \"aria-level\", \"aria-checked\", \"tabindex\"];\nvar _hoisted_2 = [\"data-p-selected\", \"data-p-selectable\"];\nfunction render$1(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_SpinnerIcon = resolveComponent(\"SpinnerIcon\");\n var _component_Checkbox = resolveComponent(\"Checkbox\");\n var _component_TreeNode = resolveComponent(\"TreeNode\", true);\n var _directive_ripple = resolveDirective(\"ripple\");\n return openBlock(), createElementBlock(\"li\", mergeProps({\n ref: \"currentNode\",\n \"class\": _ctx.cx('node'),\n role: \"treeitem\",\n \"aria-label\": $options.label($props.node),\n \"aria-selected\": $options.ariaSelected,\n \"aria-expanded\": $options.expanded,\n \"aria-setsize\": $props.node.children ? $props.node.children.length : 0,\n \"aria-posinset\": $props.index + 1,\n \"aria-level\": $props.level,\n \"aria-checked\": $options.ariaChecked,\n tabindex: $props.index === 0 ? 0 : -1,\n onKeydown: _cache[4] || (_cache[4] = function () {\n return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);\n })\n }, $props.level === 1 ? $options.getPTOptions('node') : _ctx.ptm('nodeChildren')), [createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('nodeContent'),\n onClick: _cache[2] || (_cache[2] = function () {\n return $options.onClick && $options.onClick.apply($options, arguments);\n }),\n onTouchend: _cache[3] || (_cache[3] = function () {\n return $options.onTouchEnd && $options.onTouchEnd.apply($options, arguments);\n }),\n style: $props.node.style\n }, $options.getPTOptions('nodeContent'), {\n \"data-p-selected\": $options.checkboxMode ? $options.checked : $options.selected,\n \"data-p-selectable\": $options.selectable\n }), [withDirectives((openBlock(), createElementBlock(\"button\", mergeProps({\n type: \"button\",\n \"class\": _ctx.cx('nodeToggleButton'),\n onClick: _cache[0] || (_cache[0] = function () {\n return $options.toggle && $options.toggle.apply($options, arguments);\n }),\n tabindex: \"-1\"\n }, $options.getPTOptions('nodeToggleButton')), [$props.node.loading && $props.loadingMode === 'icon' ? (openBlock(), createElementBlock(Fragment, {\n key: 0\n }, [$props.templates['nodetoggleicon'] || $props.templates['nodetogglericon'] ? (openBlock(), createBlock(resolveDynamicComponent($props.templates['nodetoggleicon'] || $props.templates['nodetogglericon']), {\n key: 0,\n \"class\": normalizeClass(_ctx.cx('nodeToggleIcon'))\n }, null, 8, [\"class\"])) : (openBlock(), createBlock(_component_SpinnerIcon, mergeProps({\n key: 1,\n spin: \"\",\n \"class\": _ctx.cx('nodetogglericon')\n }, _ctx.ptm('nodeToggleIcon')), null, 16, [\"class\"]))], 64)) : (openBlock(), createElementBlock(Fragment, {\n key: 1\n }, [$props.templates['nodetoggleicon'] || $props.templates['togglericon'] ? (openBlock(), createBlock(resolveDynamicComponent($props.templates['nodetoggleicon'] || $props.templates['togglericon']), {\n key: 0,\n node: $props.node,\n expanded: $options.expanded,\n \"class\": normalizeClass(_ctx.cx('nodeToggleIcon'))\n }, null, 8, [\"node\", \"expanded\", \"class\"])) : $options.expanded ? (openBlock(), createBlock(resolveDynamicComponent($props.node.expandedIcon ? 'span' : 'ChevronDownIcon'), mergeProps({\n key: 1,\n \"class\": _ctx.cx('nodeToggleIcon')\n }, $options.getPTOptions('nodeToggleIcon')), null, 16, [\"class\"])) : (openBlock(), createBlock(resolveDynamicComponent($props.node.collapsedIcon ? 'span' : 'ChevronRightIcon'), mergeProps({\n key: 2,\n \"class\": _ctx.cx('nodeToggleIcon')\n }, $options.getPTOptions('nodeToggleIcon')), null, 16, [\"class\"]))], 64))], 16)), [[_directive_ripple]]), $options.checkboxMode ? (openBlock(), createBlock(_component_Checkbox, {\n key: 0,\n modelValue: $options.checked,\n binary: true,\n indeterminate: $options.partialChecked,\n \"class\": normalizeClass(_ctx.cx('nodeCheckbox')),\n tabindex: -1,\n unstyled: _ctx.unstyled,\n pt: $options.getPTOptions('nodeCheckbox'),\n \"data-p-partialchecked\": $options.partialChecked\n }, {\n icon: withCtx(function (slotProps) {\n return [$props.templates['checkboxicon'] ? (openBlock(), createBlock(resolveDynamicComponent($props.templates['checkboxicon']), {\n key: 0,\n checked: slotProps.checked,\n partialChecked: $options.partialChecked,\n \"class\": normalizeClass(slotProps[\"class\"])\n }, null, 8, [\"checked\", \"partialChecked\", \"class\"])) : createCommentVNode(\"\", true)];\n }),\n _: 1\n }, 8, [\"modelValue\", \"indeterminate\", \"class\", \"unstyled\", \"pt\", \"data-p-partialchecked\"])) : createCommentVNode(\"\", true), $props.templates['nodeicon'] ? (openBlock(), createBlock(resolveDynamicComponent($props.templates['nodeicon']), mergeProps({\n key: 1,\n node: $props.node,\n \"class\": [_ctx.cx('nodeIcon')]\n }, $options.getPTOptions('nodeIcon')), null, 16, [\"node\", \"class\"])) : (openBlock(), createElementBlock(\"span\", mergeProps({\n key: 2,\n \"class\": [_ctx.cx('nodeIcon'), $props.node.icon]\n }, $options.getPTOptions('nodeIcon')), null, 16)), createElementVNode(\"span\", mergeProps({\n \"class\": _ctx.cx('nodeLabel')\n }, $options.getPTOptions('nodeLabel'), {\n onKeydown: _cache[1] || (_cache[1] = withModifiers(function () {}, [\"stop\"]))\n }), [$props.templates[$props.node.type] || $props.templates['default'] ? (openBlock(), createBlock(resolveDynamicComponent($props.templates[$props.node.type] || $props.templates['default']), {\n key: 0,\n node: $props.node,\n selected: $options.checkboxMode ? $options.checked : $options.selected\n }, null, 8, [\"node\", \"selected\"])) : (openBlock(), createElementBlock(Fragment, {\n key: 1\n }, [createTextVNode(toDisplayString($options.label($props.node)), 1)], 64))], 16)], 16, _hoisted_2), $options.hasChildren && $options.expanded ? (openBlock(), createElementBlock(\"ul\", mergeProps({\n key: 0,\n \"class\": _ctx.cx('nodeChildren'),\n role: \"group\"\n }, _ctx.ptm('nodeChildren')), [(openBlock(true), createElementBlock(Fragment, null, renderList($props.node.children, function (childNode) {\n return openBlock(), createBlock(_component_TreeNode, {\n key: childNode.key,\n node: childNode,\n templates: $props.templates,\n level: $props.level + 1,\n loadingMode: $props.loadingMode,\n expandedKeys: $props.expandedKeys,\n onNodeToggle: $options.onChildNodeToggle,\n onNodeClick: $options.onChildNodeClick,\n selectionMode: $props.selectionMode,\n selectionKeys: $props.selectionKeys,\n onCheckboxChange: $options.propagateUp,\n unstyled: _ctx.unstyled,\n pt: _ctx.pt\n }, null, 8, [\"node\", \"templates\", \"level\", \"loadingMode\", \"expandedKeys\", \"onNodeToggle\", \"onNodeClick\", \"selectionMode\", \"selectionKeys\", \"onCheckboxChange\", \"unstyled\", \"pt\"]);\n }), 128))], 16)) : createCommentVNode(\"\", true)], 16, _hoisted_1$1);\n}\n\nscript$1.render = render$1;\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _createForOfIteratorHelper(r, e) { var t = \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t[\"return\"] || t[\"return\"](); } finally { if (u) throw o; } } }; }\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar script = {\n name: 'Tree',\n \"extends\": script$2,\n inheritAttrs: false,\n emits: ['node-expand', 'node-collapse', 'update:expandedKeys', 'update:selectionKeys', 'node-select', 'node-unselect', 'filter'],\n data: function data() {\n return {\n d_expandedKeys: this.expandedKeys || {},\n filterValue: null\n };\n },\n watch: {\n expandedKeys: function expandedKeys(newValue) {\n this.d_expandedKeys = newValue;\n }\n },\n methods: {\n onNodeToggle: function onNodeToggle(node) {\n var key = node.key;\n if (this.d_expandedKeys[key]) {\n delete this.d_expandedKeys[key];\n this.$emit('node-collapse', node);\n } else {\n this.d_expandedKeys[key] = true;\n this.$emit('node-expand', node);\n }\n this.d_expandedKeys = _objectSpread({}, this.d_expandedKeys);\n this.$emit('update:expandedKeys', this.d_expandedKeys);\n },\n onNodeClick: function onNodeClick(event) {\n if (this.selectionMode != null && event.node.selectable !== false) {\n var metaSelection = event.nodeTouched ? false : this.metaKeySelection;\n var _selectionKeys = metaSelection ? this.handleSelectionWithMetaKey(event) : this.handleSelectionWithoutMetaKey(event);\n this.$emit('update:selectionKeys', _selectionKeys);\n }\n },\n onCheckboxChange: function onCheckboxChange(event) {\n this.$emit('update:selectionKeys', event.selectionKeys);\n if (event.check) this.$emit('node-select', event.node);else this.$emit('node-unselect', event.node);\n },\n handleSelectionWithMetaKey: function handleSelectionWithMetaKey(event) {\n var originalEvent = event.originalEvent;\n var node = event.node;\n var metaKey = originalEvent.metaKey || originalEvent.ctrlKey;\n var selected = this.isNodeSelected(node);\n var _selectionKeys;\n if (selected && metaKey) {\n if (this.isSingleSelectionMode()) {\n _selectionKeys = {};\n } else {\n _selectionKeys = _objectSpread({}, this.selectionKeys);\n delete _selectionKeys[node.key];\n }\n this.$emit('node-unselect', node);\n } else {\n if (this.isSingleSelectionMode()) {\n _selectionKeys = {};\n } else if (this.isMultipleSelectionMode()) {\n _selectionKeys = !metaKey ? {} : this.selectionKeys ? _objectSpread({}, this.selectionKeys) : {};\n }\n _selectionKeys[node.key] = true;\n this.$emit('node-select', node);\n }\n return _selectionKeys;\n },\n handleSelectionWithoutMetaKey: function handleSelectionWithoutMetaKey(event) {\n var node = event.node;\n var selected = this.isNodeSelected(node);\n var _selectionKeys;\n if (this.isSingleSelectionMode()) {\n if (selected) {\n _selectionKeys = {};\n this.$emit('node-unselect', node);\n } else {\n _selectionKeys = {};\n _selectionKeys[node.key] = true;\n this.$emit('node-select', node);\n }\n } else {\n if (selected) {\n _selectionKeys = _objectSpread({}, this.selectionKeys);\n delete _selectionKeys[node.key];\n this.$emit('node-unselect', node);\n } else {\n _selectionKeys = this.selectionKeys ? _objectSpread({}, this.selectionKeys) : {};\n _selectionKeys[node.key] = true;\n this.$emit('node-select', node);\n }\n }\n return _selectionKeys;\n },\n isSingleSelectionMode: function isSingleSelectionMode() {\n return this.selectionMode === 'single';\n },\n isMultipleSelectionMode: function isMultipleSelectionMode() {\n return this.selectionMode === 'multiple';\n },\n isNodeSelected: function isNodeSelected(node) {\n return this.selectionMode && this.selectionKeys ? this.selectionKeys[node.key] === true : false;\n },\n isChecked: function isChecked(node) {\n return this.selectionKeys ? this.selectionKeys[node.key] && this.selectionKeys[node.key].checked : false;\n },\n isNodeLeaf: function isNodeLeaf(node) {\n return node.leaf === false ? false : !(node.children && node.children.length);\n },\n onFilterKeydown: function onFilterKeydown(event) {\n if (event.code === 'Enter' || event.code === 'NumpadEnter') {\n event.preventDefault();\n }\n this.$emit('filter', {\n originalEvent: event,\n value: event.target.value\n });\n },\n findFilteredNodes: function findFilteredNodes(node, paramsWithoutNode) {\n if (node) {\n var matched = false;\n if (node.children) {\n var childNodes = _toConsumableArray(node.children);\n node.children = [];\n var _iterator = _createForOfIteratorHelper(childNodes),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var childNode = _step.value;\n var copyChildNode = _objectSpread({}, childNode);\n if (this.isFilterMatched(copyChildNode, paramsWithoutNode)) {\n matched = true;\n node.children.push(copyChildNode);\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n if (matched) {\n return true;\n }\n }\n },\n isFilterMatched: function isFilterMatched(node, _ref) {\n var searchFields = _ref.searchFields,\n filterText = _ref.filterText,\n strict = _ref.strict;\n var matched = false;\n var _iterator2 = _createForOfIteratorHelper(searchFields),\n _step2;\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var field = _step2.value;\n var fieldValue = String(resolveFieldData(node, field)).toLocaleLowerCase(this.filterLocale);\n if (fieldValue.indexOf(filterText) > -1) {\n matched = true;\n }\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n if (!matched || strict && !this.isNodeLeaf(node)) {\n matched = this.findFilteredNodes(node, {\n searchFields: searchFields,\n filterText: filterText,\n strict: strict\n }) || matched;\n }\n return matched;\n }\n },\n computed: {\n filteredValue: function filteredValue() {\n var filteredNodes = [];\n var searchFields = this.filterBy.split(',');\n var filterText = this.filterValue.trim().toLocaleLowerCase(this.filterLocale);\n var strict = this.filterMode === 'strict';\n var _iterator3 = _createForOfIteratorHelper(this.value),\n _step3;\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var node = _step3.value;\n var _node = _objectSpread({}, node);\n var paramsWithoutNode = {\n searchFields: searchFields,\n filterText: filterText,\n strict: strict\n };\n if (strict && (this.findFilteredNodes(_node, paramsWithoutNode) || this.isFilterMatched(_node, paramsWithoutNode)) || !strict && (this.isFilterMatched(_node, paramsWithoutNode) || this.findFilteredNodes(_node, paramsWithoutNode))) {\n filteredNodes.push(_node);\n }\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n return filteredNodes;\n },\n valueToRender: function valueToRender() {\n if (this.filterValue && this.filterValue.trim().length > 0) return this.filteredValue;else return this.value;\n }\n },\n components: {\n TreeNode: script$1,\n InputText: InputText,\n InputIcon: InputIcon,\n IconField: IconField,\n SearchIcon: SearchIcon,\n SpinnerIcon: SpinnerIcon\n }\n};\n\nvar _hoisted_1 = [\"aria-labelledby\", \"aria-label\"];\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_SpinnerIcon = resolveComponent(\"SpinnerIcon\");\n var _component_InputText = resolveComponent(\"InputText\");\n var _component_SearchIcon = resolveComponent(\"SearchIcon\");\n var _component_InputIcon = resolveComponent(\"InputIcon\");\n var _component_IconField = resolveComponent(\"IconField\");\n var _component_TreeNode = resolveComponent(\"TreeNode\");\n return openBlock(), createElementBlock(\"div\", mergeProps({\n \"class\": _ctx.cx('root')\n }, _ctx.ptmi('root')), [_ctx.loading && _ctx.loadingMode === 'mask' ? (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 0,\n \"class\": _ctx.cx('mask')\n }, _ctx.ptm('mask')), [renderSlot(_ctx.$slots, \"loadingicon\", {\n \"class\": normalizeClass(_ctx.cx('loadingIcon'))\n }, function () {\n return [_ctx.loadingIcon ? (openBlock(), createElementBlock(\"i\", mergeProps({\n key: 0,\n \"class\": [_ctx.cx('loadingIcon'), 'pi-spin', _ctx.loadingIcon]\n }, _ctx.ptm('loadingIcon')), null, 16)) : (openBlock(), createBlock(_component_SpinnerIcon, mergeProps({\n key: 1,\n spin: \"\",\n \"class\": _ctx.cx('loadingIcon')\n }, _ctx.ptm('loadingIcon')), null, 16, [\"class\"]))];\n })], 16)) : createCommentVNode(\"\", true), _ctx.filter ? (openBlock(), createBlock(_component_IconField, {\n key: 1,\n unstyled: _ctx.unstyled,\n pt: _ctx.ptm('pcFilterContainer')\n }, {\n \"default\": withCtx(function () {\n return [createVNode(_component_InputText, {\n modelValue: $data.filterValue,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = function ($event) {\n return $data.filterValue = $event;\n }),\n autocomplete: \"off\",\n \"class\": normalizeClass(_ctx.cx('pcFilter')),\n placeholder: _ctx.filterPlaceholder,\n unstyled: _ctx.unstyled,\n onKeydown: $options.onFilterKeydown,\n pt: _ctx.ptm('pcFilter')\n }, null, 8, [\"modelValue\", \"class\", \"placeholder\", \"unstyled\", \"onKeydown\", \"pt\"]), createVNode(_component_InputIcon, {\n unstyled: _ctx.unstyled,\n pt: _ctx.ptm('pcFilterIconContainer')\n }, {\n \"default\": withCtx(function () {\n return [renderSlot(_ctx.$slots, _ctx.$slots.filtericon ? 'filtericon' : 'searchicon', {\n \"class\": normalizeClass(_ctx.cx('filterIcon'))\n }, function () {\n return [createVNode(_component_SearchIcon, mergeProps({\n \"class\": _ctx.cx('filterIcon')\n }, _ctx.ptm('filterIcon')), null, 16, [\"class\"])];\n })];\n }),\n _: 3\n }, 8, [\"unstyled\", \"pt\"])];\n }),\n _: 3\n }, 8, [\"unstyled\", \"pt\"])) : createCommentVNode(\"\", true), createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('wrapper'),\n style: {\n maxHeight: _ctx.scrollHeight\n }\n }, _ctx.ptm('wrapper')), [createElementVNode(\"ul\", mergeProps({\n \"class\": _ctx.cx('rootChildren'),\n role: \"tree\",\n \"aria-labelledby\": _ctx.ariaLabelledby,\n \"aria-label\": _ctx.ariaLabel\n }, _ctx.ptm('rootChildren')), [(openBlock(true), createElementBlock(Fragment, null, renderList($options.valueToRender, function (node, index) {\n return openBlock(), createBlock(_component_TreeNode, {\n key: node.key,\n node: node,\n templates: _ctx.$slots,\n level: _ctx.level + 1,\n index: index,\n expandedKeys: $data.d_expandedKeys,\n onNodeToggle: $options.onNodeToggle,\n onNodeClick: $options.onNodeClick,\n selectionMode: _ctx.selectionMode,\n selectionKeys: _ctx.selectionKeys,\n onCheckboxChange: $options.onCheckboxChange,\n loadingMode: _ctx.loadingMode,\n unstyled: _ctx.unstyled,\n pt: _ctx.pt\n }, null, 8, [\"node\", \"templates\", \"level\", \"index\", \"expandedKeys\", \"onNodeToggle\", \"onNodeClick\", \"selectionMode\", \"selectionKeys\", \"onCheckboxChange\", \"loadingMode\", \"unstyled\", \"pt\"]);\n }), 128))], 16, _hoisted_1)], 16)], 16);\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","<template>\n <div\n :class=\"[\n 'tree-node',\n {\n 'can-drop': canDrop,\n 'tree-folder': !props.node.leaf,\n 'tree-leaf': props.node.leaf\n }\n ]\"\n ref=\"container\"\n >\n <div class=\"node-content\">\n <span class=\"node-label\">\n <slot name=\"before-label\" :node=\"props.node\"></slot>\n <EditableText\n :modelValue=\"node.label\"\n :isEditing=\"isEditing\"\n @edit=\"handleRename\"\n />\n <slot name=\"after-label\" :node=\"props.node\"></slot>\n </span>\n <Badge\n v-if=\"!props.node.leaf\"\n :value=\"props.node.badgeText ?? props.node.totalLeaves\"\n severity=\"secondary\"\n class=\"leaf-count-badge\"\n />\n </div>\n <div class=\"node-actions\">\n <slot name=\"actions\" :node=\"props.node\"></slot>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, onMounted, onUnmounted, inject, Ref, computed } from 'vue'\nimport Badge from 'primevue/badge'\nimport {\n dropTargetForElements,\n draggable\n} from '@atlaskit/pragmatic-drag-and-drop/element/adapter'\nimport type {\n TreeExplorerDragAndDropData,\n RenderedTreeExplorerNode,\n TreeExplorerNode\n} from '@/types/treeExplorerTypes'\nimport EditableText from '@/components/common/EditableText.vue'\nimport { useErrorHandling } from '@/hooks/errorHooks'\n\nconst props = defineProps<{\n node: RenderedTreeExplorerNode\n}>()\n\nconst emit = defineEmits<{\n (\n e: 'itemDropped',\n node: RenderedTreeExplorerNode,\n data: RenderedTreeExplorerNode\n ): void\n (e: 'dragStart', node: RenderedTreeExplorerNode): void\n (e: 'dragEnd', node: RenderedTreeExplorerNode): void\n}>()\n\nconst labelEditable = computed<boolean>(() => !!props.node.handleRename)\nconst renameEditingNode =\n inject<Ref<TreeExplorerNode | null>>('renameEditingNode')\nconst isEditing = computed(\n () => labelEditable.value && renameEditingNode.value?.key === props.node.key\n)\nconst errorHandling = useErrorHandling()\nconst handleRename = errorHandling.wrapWithErrorHandlingAsync(\n async (newName: string) => {\n await props.node.handleRename(props.node, newName)\n renameEditingNode.value = null\n },\n props.node.handleError\n)\nconst container = ref<HTMLElement | null>(null)\nconst canDrop = ref(false)\nconst treeNodeElement = ref<HTMLElement | null>(null)\nlet dropTargetCleanup = () => {}\nlet draggableCleanup = () => {}\nonMounted(() => {\n treeNodeElement.value = container.value?.closest(\n '.p-tree-node-content'\n ) as HTMLElement\n if (props.node.droppable) {\n dropTargetCleanup = dropTargetForElements({\n element: treeNodeElement.value,\n onDrop: async (event) => {\n const dndData = event.source.data as TreeExplorerDragAndDropData\n if (dndData.type === 'tree-explorer-node') {\n await props.node.handleDrop?.(props.node, dndData)\n canDrop.value = false\n emit('itemDropped', props.node, dndData.data)\n }\n },\n onDragEnter: (event) => {\n const dndData = event.source.data as TreeExplorerDragAndDropData\n if (dndData.type === 'tree-explorer-node') {\n canDrop.value = true\n }\n },\n onDragLeave: () => {\n canDrop.value = false\n }\n })\n }\n\n if (props.node.draggable) {\n draggableCleanup = draggable({\n element: treeNodeElement.value,\n getInitialData() {\n return {\n type: 'tree-explorer-node',\n data: props.node\n }\n },\n onDragStart: () => emit('dragStart', props.node),\n onDrop: () => emit('dragEnd', props.node)\n })\n }\n})\nonUnmounted(() => {\n dropTargetCleanup()\n draggableCleanup()\n})\n</script>\n\n<style scoped>\n.tree-node {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n.leaf-count-badge {\n margin-left: 0.5rem;\n}\n.node-content {\n display: flex;\n align-items: center;\n flex-grow: 1;\n}\n.leaf-label {\n margin-left: 0.5rem;\n}\n:deep(.editable-text span) {\n word-break: break-all;\n}\n</style>\n","<template>\n <Tree\n class=\"tree-explorer\"\n :class=\"props.class\"\n v-model:expandedKeys=\"expandedKeys\"\n v-model:selectionKeys=\"selectionKeys\"\n :value=\"renderedRoots\"\n selectionMode=\"single\"\n :pt=\"{\n nodeLabel: 'tree-explorer-node-label',\n nodeContent: ({ props }) => ({\n onClick: (e: MouseEvent) => onNodeContentClick(e, props.node),\n onContextmenu: (e: MouseEvent) => handleContextMenu(props.node, e)\n }),\n nodeToggleButton: () => ({\n onClick: (e: MouseEvent) => {\n e.stopImmediatePropagation()\n }\n })\n }\"\n >\n <template #folder=\"{ node }\">\n <slot name=\"folder\" :node=\"node\">\n <TreeExplorerTreeNode :node=\"node\" />\n </slot>\n </template>\n <template #node=\"{ node }\">\n <slot name=\"node\" :node=\"node\">\n <TreeExplorerTreeNode :node=\"node\" />\n </slot>\n </template>\n </Tree>\n <ContextMenu ref=\"menu\" :model=\"menuItems\" />\n</template>\n<script setup lang=\"ts\">\nimport { ref, computed, provide } from 'vue'\nimport Tree from 'primevue/tree'\nimport ContextMenu from 'primevue/contextmenu'\nimport TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue'\nimport type {\n RenderedTreeExplorerNode,\n TreeExplorerNode\n} from '@/types/treeExplorerTypes'\nimport type { MenuItem, MenuItemCommandEvent } from 'primevue/menuitem'\nimport { useI18n } from 'vue-i18n'\nimport { useErrorHandling } from '@/hooks/errorHooks'\n\nconst expandedKeys = defineModel<Record<string, boolean>>('expandedKeys')\nprovide('expandedKeys', expandedKeys)\nconst selectionKeys = defineModel<Record<string, boolean>>('selectionKeys')\nprovide('selectionKeys', selectionKeys)\n// Tracks whether the caller has set the selectionKeys model.\nconst storeSelectionKeys = selectionKeys.value !== undefined\n\nconst props = defineProps<{\n roots: TreeExplorerNode[]\n class?: string\n}>()\nconst emit = defineEmits<{\n (e: 'nodeClick', node: RenderedTreeExplorerNode, event: MouseEvent): void\n (e: 'nodeDelete', node: RenderedTreeExplorerNode): void\n (e: 'contextMenu', node: RenderedTreeExplorerNode, event: MouseEvent): void\n}>()\nconst renderedRoots = computed<RenderedTreeExplorerNode[]>(() => {\n return props.roots.map(fillNodeInfo)\n})\nconst getTreeNodeIcon = (node: TreeExplorerNode) => {\n if (node.getIcon) {\n const icon = node.getIcon(node)\n if (icon) {\n return icon\n }\n } else if (node.icon) {\n return node.icon\n }\n // node.icon is undefined\n if (node.leaf) {\n return 'pi pi-file'\n }\n const isExpanded = expandedKeys.value[node.key]\n return isExpanded ? 'pi pi-folder-open' : 'pi pi-folder'\n}\nconst fillNodeInfo = (node: TreeExplorerNode): RenderedTreeExplorerNode => {\n const children = node.children?.map(fillNodeInfo)\n const totalLeaves = node.leaf\n ? 1\n : children.reduce((acc, child) => acc + child.totalLeaves, 0)\n return {\n ...node,\n icon: getTreeNodeIcon(node),\n children,\n type: node.leaf ? 'node' : 'folder',\n totalLeaves,\n badgeText: node.getBadgeText ? node.getBadgeText(node) : null\n }\n}\nconst onNodeContentClick = async (\n e: MouseEvent,\n node: RenderedTreeExplorerNode\n) => {\n if (!storeSelectionKeys) {\n selectionKeys.value = {}\n }\n if (node.handleClick) {\n await node.handleClick(node, e)\n }\n emit('nodeClick', node, e)\n}\nconst menu = ref(null)\nconst menuTargetNode = ref<RenderedTreeExplorerNode | null>(null)\nprovide('menuTargetNode', menuTargetNode)\nconst extraMenuItems = computed(() => {\n return menuTargetNode.value?.contextMenuItems\n ? typeof menuTargetNode.value.contextMenuItems === 'function'\n ? menuTargetNode.value.contextMenuItems(menuTargetNode.value)\n : menuTargetNode.value.contextMenuItems\n : []\n})\nconst renameEditingNode = ref<RenderedTreeExplorerNode | null>(null)\nprovide('renameEditingNode', renameEditingNode)\n\nconst { t } = useI18n()\nconst renameCommand = (node: RenderedTreeExplorerNode) => {\n renameEditingNode.value = node\n}\nconst deleteCommand = async (node: RenderedTreeExplorerNode) => {\n await node.handleDelete?.(node)\n emit('nodeDelete', node)\n}\nconst menuItems = computed<MenuItem[]>(() =>\n [\n {\n label: t('rename'),\n icon: 'pi pi-file-edit',\n command: () => renameCommand(menuTargetNode.value),\n visible: menuTargetNode.value?.handleRename !== undefined\n },\n {\n label: t('delete'),\n icon: 'pi pi-trash',\n command: () => deleteCommand(menuTargetNode.value),\n visible: menuTargetNode.value?.handleDelete !== undefined,\n isAsync: true // The delete command can be async\n },\n ...extraMenuItems.value\n ].map((menuItem) => ({\n ...menuItem,\n command: wrapCommandWithErrorHandler(menuItem.command, {\n isAsync: menuItem.isAsync ?? false\n })\n }))\n)\n\nconst handleContextMenu = (node: RenderedTreeExplorerNode, e: MouseEvent) => {\n menuTargetNode.value = node\n emit('contextMenu', node, e)\n if (menuItems.value.filter((item) => item.visible).length > 0) {\n menu.value?.show(e)\n }\n}\n\nconst errorHandling = useErrorHandling()\nconst wrapCommandWithErrorHandler = (\n command: (event: MenuItemCommandEvent) => void,\n { isAsync = false }: { isAsync: boolean }\n) => {\n return isAsync\n ? errorHandling.wrapWithErrorHandlingAsync(\n command as (...args: any[]) => Promise<any>,\n menuTargetNode.value?.handleError\n )\n : errorHandling.wrapWithErrorHandling(\n command,\n menuTargetNode.value?.handleError\n )\n}\n\ndefineExpose({\n renameCommand,\n deleteCommand\n})\n</script>\n\n<style scoped>\n:deep(.tree-explorer-node-label) {\n width: 100%;\n display: flex;\n align-items: center;\n margin-left: var(--p-tree-node-gap);\n flex-grow: 1;\n}\n\n/*\n * The following styles are necessary to avoid layout shift when dragging nodes over folders.\n * By setting the position to relative on the parent and using an absolutely positioned pseudo-element,\n * we can create a visual indicator for the drop target without affecting the layout of other elements.\n */\n:deep(.p-tree-node-content:has(.tree-folder)) {\n position: relative;\n}\n\n:deep(.p-tree-node-content:has(.tree-folder.can-drop))::after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n border: 1px solid var(--p-content-color);\n pointer-events: none;\n}\n</style>\n","<template>\n <div ref=\"container\" class=\"node-lib-node-container\">\n <TreeExplorerTreeNode :node=\"node\">\n <template #before-label>\n <Tag\n v-if=\"nodeDef.experimental\"\n :value=\"$t('experimental')\"\n severity=\"primary\"\n />\n <Tag\n v-if=\"nodeDef.deprecated\"\n :value=\"$t('deprecated')\"\n severity=\"danger\"\n />\n </template>\n <template #actions>\n <Button\n class=\"bookmark-button\"\n size=\"small\"\n :icon=\"isBookmarked ? 'pi pi-bookmark-fill' : 'pi pi-bookmark'\"\n text\n severity=\"secondary\"\n @click.stop=\"toggleBookmark\"\n />\n </template>\n </TreeExplorerTreeNode>\n\n <teleport v-if=\"isHovered\" to=\"#node-library-node-preview-container\">\n <div class=\"node-lib-node-preview\" :style=\"nodePreviewStyle\">\n <NodePreview ref=\"previewRef\" :nodeDef=\"nodeDef\"></NodePreview>\n </div>\n </teleport>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport Button from 'primevue/button'\nimport Tag from 'primevue/tag'\nimport TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue'\nimport NodePreview from '@/components/node/NodePreview.vue'\nimport { ComfyNodeDefImpl } from '@/stores/nodeDefStore'\nimport {\n computed,\n CSSProperties,\n nextTick,\n onMounted,\n onUnmounted,\n ref\n} from 'vue'\nimport { RenderedTreeExplorerNode } from '@/types/treeExplorerTypes'\nimport { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'\nimport { useSettingStore } from '@/stores/settingStore'\n\nconst props = defineProps<{\n node: RenderedTreeExplorerNode<ComfyNodeDefImpl>\n}>()\n\nconst nodeDef = computed(() => props.node.data)\nconst nodeBookmarkStore = useNodeBookmarkStore()\nconst isBookmarked = computed(() =>\n nodeBookmarkStore.isBookmarked(nodeDef.value)\n)\nconst settingStore = useSettingStore()\nconst sidebarLocation = computed<'left' | 'right'>(() =>\n settingStore.get('Comfy.Sidebar.Location')\n)\n\nconst emit = defineEmits<{\n (e: 'toggle-bookmark', value: ComfyNodeDefImpl): void\n}>()\n\nconst toggleBookmark = () => {\n nodeBookmarkStore.toggleBookmark(nodeDef.value)\n}\n\nconst previewRef = ref<InstanceType<typeof NodePreview> | null>(null)\nconst nodePreviewStyle = ref<CSSProperties>({\n position: 'absolute',\n top: '0px',\n left: '0px'\n})\n\nconst handleNodeHover = async () => {\n const hoverTarget = nodeContentElement.value\n const targetRect = hoverTarget.getBoundingClientRect()\n\n const previewHeight = previewRef.value?.$el.offsetHeight || 0\n const availableSpaceBelow = window.innerHeight - targetRect.bottom\n\n nodePreviewStyle.value.top =\n previewHeight > availableSpaceBelow\n ? `${Math.max(0, targetRect.top - (previewHeight - availableSpaceBelow) - 20)}px`\n : `${targetRect.top - 40}px`\n if (sidebarLocation.value === 'left') {\n nodePreviewStyle.value.left = `${targetRect.right}px`\n } else {\n nodePreviewStyle.value.left = `${targetRect.left - 400}px`\n }\n}\n\nconst container = ref<HTMLElement | null>(null)\nconst nodeContentElement = ref<HTMLElement | null>(null)\nconst isHovered = ref(false)\nconst handleMouseEnter = async () => {\n isHovered.value = true\n await nextTick()\n handleNodeHover()\n}\nconst handleMouseLeave = () => {\n isHovered.value = false\n}\nonMounted(() => {\n nodeContentElement.value = container.value?.closest('.p-tree-node-content')\n nodeContentElement.value?.addEventListener('mouseenter', handleMouseEnter)\n nodeContentElement.value?.addEventListener('mouseleave', handleMouseLeave)\n})\n\nonUnmounted(() => {\n nodeContentElement.value?.removeEventListener('mouseenter', handleMouseEnter)\n nodeContentElement.value?.removeEventListener('mouseleave', handleMouseLeave)\n})\n</script>\n\n<style scoped>\n.node-lib-node-container {\n @apply h-full w-full;\n}\n</style>\n","<template>\n <div ref=\"container\" class=\"node-lib-node-container\">\n <TreeExplorerTreeNode\n :node=\"node\"\n @item-dropped=\"handleItemDrop\"\n ></TreeExplorerTreeNode>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue'\nimport { ComfyNodeDefImpl } from '@/stores/nodeDefStore'\nimport { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'\nimport { computed, inject, onMounted, onUnmounted, Ref, ref, watch } from 'vue'\nimport type { BookmarkCustomization } from '@/types/apiTypes'\nimport { RenderedTreeExplorerNode } from '@/types/treeExplorerTypes'\n\nconst props = defineProps<{\n node: RenderedTreeExplorerNode<ComfyNodeDefImpl>\n}>()\n\nconst nodeBookmarkStore = useNodeBookmarkStore()\nconst customization = computed<BookmarkCustomization | undefined>(() => {\n return nodeBookmarkStore.bookmarksCustomization[props.node.data.nodePath]\n})\n\nconst treeNodeElement = ref<HTMLElement | null>(null)\nconst iconElement = ref<HTMLElement | null>(null)\n\nlet stopWatchCustomization: (() => void) | null = null\n\nconst container = ref<HTMLElement | null>(null)\nonMounted(() => {\n treeNodeElement.value = container.value?.closest(\n '.p-tree-node-content'\n ) as HTMLElement\n iconElement.value = treeNodeElement.value.querySelector(\n ':scope > .p-tree-node-icon'\n ) as HTMLElement\n updateIconColor()\n\n // Start watching after the component is mounted\n stopWatchCustomization = watch(customization, updateIconColor, { deep: true })\n})\n\nconst updateIconColor = () => {\n if (iconElement.value && customization.value) {\n iconElement.value.style.color = customization.value.color\n }\n}\n\nonUnmounted(() => {\n if (stopWatchCustomization) {\n stopWatchCustomization()\n }\n})\n\nconst expandedKeys = inject<Ref<Record<string, boolean>>>('expandedKeys')\nconst handleItemDrop = (node: RenderedTreeExplorerNode) => {\n expandedKeys.value[node.key] = true\n}\n</script>\n","import BaseStyle from '@primevue/core/base/style';\n\nvar theme = function theme(_ref) {\n var dt = _ref.dt;\n return \"\\n.p-colorpicker {\\n display: inline-block;\\n position: relative;\\n}\\n\\n.p-colorpicker-dragging {\\n cursor: pointer;\\n}\\n\\n.p-colorpicker-preview {\\n width: \".concat(dt('colorpicker.preview.width'), \";\\n height: \").concat(dt('colorpicker.preview.height'), \";\\n padding: 0;\\n border: 0 none;\\n border-radius: \").concat(dt('colorpicker.preview.border.radius'), \";\\n transition: background \").concat(dt('colorpicker.transition.duration'), \", color \").concat(dt('colorpicker.transition.duration'), \", border-color \").concat(dt('colorpicker.transition.duration'), \", outline-color \").concat(dt('colorpicker.transition.duration'), \", box-shadow \").concat(dt('colorpicker.transition.duration'), \";\\n outline-color: transparent;\\n cursor: pointer;\\n}\\n\\n.p-colorpicker-preview:enabled:focus-visible {\\n border-color: \").concat(dt('colorpicker.preview.focus.border.color'), \";\\n box-shadow: \").concat(dt('colorpicker.preview.focus.ring.shadow'), \";\\n outline: \").concat(dt('colorpicker.preview.focus.ring.width'), \" \").concat(dt('colorpicker.preview.focus.ring.style'), \" \").concat(dt('colorpicker.preview.focus.ring.color'), \";\\n outline-offset: \").concat(dt('colorpicker.preview.focus.ring.offset'), \";\\n}\\n\\n.p-colorpicker-panel {\\n background: \").concat(dt('colorpicker.panel.background'), \";\\n border: 1px solid \").concat(dt('colorpicker.panel.border.color'), \";\\n border-radius: \").concat(dt('colorpicker.panel.border.radius'), \";\\n box-shadow: \").concat(dt('colorpicker.panel.shadow'), \";\\n width: 193px;\\n height: 166px;\\n position: absolute;\\n top: 0;\\n left: 0;\\n}\\n\\n.p-colorpicker-panel-inline {\\n box-shadow: none;\\n position: static;\\n}\\n\\n.p-colorpicker-content {\\n position: relative;\\n}\\n\\n.p-colorpicker-color-selector {\\n width: 150px;\\n height: 150px;\\n top: 8px;\\n left: 8px;\\n position: absolute;\\n}\\n\\n.p-colorpicker-color-background {\\n width: 100%;\\n height: 100%;\\n background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 100%), linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);\\n}\\n\\n.p-colorpicker-color-handle {\\n position: absolute;\\n top: 0px;\\n left: 150px;\\n border-radius: 100%;\\n width: 10px;\\n height: 10px;\\n border-width: 1px;\\n border-style: solid;\\n margin: -5px 0 0 -5px;\\n cursor: pointer;\\n opacity: 0.85;\\n border-color: \").concat(dt('colorpicker.handle.color'), \";\\n}\\n\\n.p-colorpicker-hue {\\n width: 17px;\\n height: 150px;\\n top: 8px;\\n left: 167px;\\n position: absolute;\\n opacity: 0.85;\\n background: linear-gradient(0deg,\\n red 0,\\n #ff0 17%,\\n #0f0 33%,\\n #0ff 50%,\\n #00f 67%,\\n #f0f 83%,\\n red);\\n}\\n\\n.p-colorpicker-hue-handle {\\n position: absolute;\\n top: 150px;\\n left: 0px;\\n width: 21px;\\n margin-left: -2px;\\n margin-top: -5px;\\n height: 10px;\\n border-width: 2px;\\n border-style: solid;\\n opacity: 0.85;\\n cursor: pointer;\\n border-color: \").concat(dt('colorpicker.handle.color'), \";\\n}\\n\");\n};\nvar classes = {\n root: 'p-colorpicker p-component',\n preview: function preview(_ref2) {\n var props = _ref2.props;\n return ['p-colorpicker-preview', {\n 'p-disabled': props.disabled\n }];\n },\n panel: function panel(_ref3) {\n var props = _ref3.props;\n return ['p-colorpicker-panel', {\n 'p-colorpicker-panel-inline': props.inline,\n 'p-disabled': props.disabled\n }];\n },\n colorSelector: 'p-colorpicker-color-selector',\n colorBackground: 'p-colorpicker-color-background',\n colorHandle: 'p-colorpicker-color-handle',\n hue: 'p-colorpicker-hue',\n hueHandle: 'p-colorpicker-hue-handle'\n};\nvar ColorPickerStyle = BaseStyle.extend({\n name: 'colorpicker',\n theme: theme,\n classes: classes\n});\n\nexport { ColorPickerStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import { ConnectedOverlayScrollHandler } from '@primevue/core/utils';\nimport { relativePosition, absolutePosition, addClass, removeClass, isTouchDevice } from '@primeuix/utils/dom';\nimport { ZIndex } from '@primeuix/utils/zindex';\nimport OverlayEventBus from 'primevue/overlayeventbus';\nimport Portal from 'primevue/portal';\nimport BaseComponent from '@primevue/core/basecomponent';\nimport ColorPickerStyle from 'primevue/colorpicker/style';\nimport { resolveComponent, openBlock, createElementBlock, mergeProps, createCommentVNode, createVNode, withCtx, Transition, createElementVNode } from 'vue';\n\nvar script$1 = {\n name: 'BaseColorPicker',\n \"extends\": BaseComponent,\n props: {\n modelValue: {\n type: null,\n \"default\": null\n },\n defaultColor: {\n type: null,\n \"default\": 'ff0000'\n },\n inline: {\n type: Boolean,\n \"default\": false\n },\n format: {\n type: String,\n \"default\": 'hex'\n },\n disabled: {\n type: Boolean,\n \"default\": false\n },\n tabindex: {\n type: String,\n \"default\": null\n },\n autoZIndex: {\n type: Boolean,\n \"default\": true\n },\n baseZIndex: {\n type: Number,\n \"default\": 0\n },\n appendTo: {\n type: [String, Object],\n \"default\": 'body'\n },\n inputId: {\n type: String,\n \"default\": null\n },\n panelClass: null\n },\n style: ColorPickerStyle,\n provide: function provide() {\n return {\n $pcColorPicker: this,\n $parentInstance: this\n };\n }\n};\n\nvar script = {\n name: 'ColorPicker',\n \"extends\": script$1,\n inheritAttrs: false,\n emits: ['update:modelValue', 'change', 'show', 'hide'],\n data: function data() {\n return {\n overlayVisible: false\n };\n },\n hsbValue: null,\n outsideClickListener: null,\n documentMouseMoveListener: null,\n documentMouseUpListener: null,\n scrollHandler: null,\n resizeListener: null,\n hueDragging: null,\n colorDragging: null,\n selfUpdate: null,\n picker: null,\n colorSelector: null,\n colorHandle: null,\n hueView: null,\n hueHandle: null,\n watch: {\n modelValue: {\n immediate: true,\n handler: function handler(newValue) {\n this.hsbValue = this.toHSB(newValue);\n if (this.selfUpdate) this.selfUpdate = false;else this.updateUI();\n }\n }\n },\n beforeUnmount: function beforeUnmount() {\n this.unbindOutsideClickListener();\n this.unbindDragListeners();\n this.unbindResizeListener();\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n if (this.picker && this.autoZIndex) {\n ZIndex.clear(this.picker);\n }\n this.clearRefs();\n },\n mounted: function mounted() {\n this.updateUI();\n },\n methods: {\n pickColor: function pickColor(event) {\n var rect = this.colorSelector.getBoundingClientRect();\n var top = rect.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0);\n var left = rect.left + document.body.scrollLeft;\n var saturation = Math.floor(100 * Math.max(0, Math.min(150, (event.pageX || event.changedTouches[0].pageX) - left)) / 150);\n var brightness = Math.floor(100 * (150 - Math.max(0, Math.min(150, (event.pageY || event.changedTouches[0].pageY) - top))) / 150);\n this.hsbValue = this.validateHSB({\n h: this.hsbValue.h,\n s: saturation,\n b: brightness\n });\n this.selfUpdate = true;\n this.updateColorHandle();\n this.updateInput();\n this.updateModel(event);\n },\n pickHue: function pickHue(event) {\n var top = this.hueView.getBoundingClientRect().top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0);\n this.hsbValue = this.validateHSB({\n h: Math.floor(360 * (150 - Math.max(0, Math.min(150, (event.pageY || event.changedTouches[0].pageY) - top))) / 150),\n s: 100,\n b: 100\n });\n this.selfUpdate = true;\n this.updateColorSelector();\n this.updateHue();\n this.updateModel(event);\n this.updateInput();\n },\n updateModel: function updateModel(event) {\n var value = this.modelValue;\n switch (this.format) {\n case 'hex':\n value = this.HSBtoHEX(this.hsbValue);\n break;\n case 'rgb':\n value = this.HSBtoRGB(this.hsbValue);\n break;\n case 'hsb':\n value = this.hsbValue;\n break;\n }\n this.$emit('update:modelValue', value);\n this.$emit('change', {\n event: event,\n value: value\n });\n },\n updateColorSelector: function updateColorSelector() {\n if (this.colorSelector) {\n var hsbValue = this.validateHSB({\n h: this.hsbValue.h,\n s: 100,\n b: 100\n });\n this.colorSelector.style.backgroundColor = '#' + this.HSBtoHEX(hsbValue);\n }\n },\n updateColorHandle: function updateColorHandle() {\n if (this.colorHandle) {\n this.colorHandle.style.left = Math.floor(150 * this.hsbValue.s / 100) + 'px';\n this.colorHandle.style.top = Math.floor(150 * (100 - this.hsbValue.b) / 100) + 'px';\n }\n },\n updateHue: function updateHue() {\n if (this.hueHandle) {\n this.hueHandle.style.top = Math.floor(150 - 150 * this.hsbValue.h / 360) + 'px';\n }\n },\n updateInput: function updateInput() {\n if (this.$refs.input) {\n this.$refs.input.style.backgroundColor = '#' + this.HSBtoHEX(this.hsbValue);\n }\n },\n updateUI: function updateUI() {\n this.updateHue();\n this.updateColorHandle();\n this.updateInput();\n this.updateColorSelector();\n },\n validateHSB: function validateHSB(hsb) {\n return {\n h: Math.min(360, Math.max(0, hsb.h)),\n s: Math.min(100, Math.max(0, hsb.s)),\n b: Math.min(100, Math.max(0, hsb.b))\n };\n },\n validateRGB: function validateRGB(rgb) {\n return {\n r: Math.min(255, Math.max(0, rgb.r)),\n g: Math.min(255, Math.max(0, rgb.g)),\n b: Math.min(255, Math.max(0, rgb.b))\n };\n },\n validateHEX: function validateHEX(hex) {\n var len = 6 - hex.length;\n if (len > 0) {\n var o = [];\n for (var i = 0; i < len; i++) {\n o.push('0');\n }\n o.push(hex);\n hex = o.join('');\n }\n return hex;\n },\n HEXtoRGB: function HEXtoRGB(hex) {\n var hexValue = parseInt(hex.indexOf('#') > -1 ? hex.substring(1) : hex, 16);\n return {\n r: hexValue >> 16,\n g: (hexValue & 0x00ff00) >> 8,\n b: hexValue & 0x0000ff\n };\n },\n HEXtoHSB: function HEXtoHSB(hex) {\n return this.RGBtoHSB(this.HEXtoRGB(hex));\n },\n RGBtoHSB: function RGBtoHSB(rgb) {\n var hsb = {\n h: 0,\n s: 0,\n b: 0\n };\n var min = Math.min(rgb.r, rgb.g, rgb.b);\n var max = Math.max(rgb.r, rgb.g, rgb.b);\n var delta = max - min;\n hsb.b = max;\n hsb.s = max !== 0 ? 255 * delta / max : 0;\n if (hsb.s !== 0) {\n if (rgb.r === max) {\n hsb.h = (rgb.g - rgb.b) / delta;\n } else if (rgb.g === max) {\n hsb.h = 2 + (rgb.b - rgb.r) / delta;\n } else {\n hsb.h = 4 + (rgb.r - rgb.g) / delta;\n }\n } else {\n hsb.h = -1;\n }\n hsb.h *= 60;\n if (hsb.h < 0) {\n hsb.h += 360;\n }\n hsb.s *= 100 / 255;\n hsb.b *= 100 / 255;\n return hsb;\n },\n HSBtoRGB: function HSBtoRGB(hsb) {\n var rgb = {\n r: null,\n g: null,\n b: null\n };\n var h = Math.round(hsb.h);\n var s = Math.round(hsb.s * 255 / 100);\n var v = Math.round(hsb.b * 255 / 100);\n if (s === 0) {\n rgb = {\n r: v,\n g: v,\n b: v\n };\n } else {\n var t1 = v;\n var t2 = (255 - s) * v / 255;\n var t3 = (t1 - t2) * (h % 60) / 60;\n if (h === 360) h = 0;\n if (h < 60) {\n rgb.r = t1;\n rgb.b = t2;\n rgb.g = t2 + t3;\n } else if (h < 120) {\n rgb.g = t1;\n rgb.b = t2;\n rgb.r = t1 - t3;\n } else if (h < 180) {\n rgb.g = t1;\n rgb.r = t2;\n rgb.b = t2 + t3;\n } else if (h < 240) {\n rgb.b = t1;\n rgb.r = t2;\n rgb.g = t1 - t3;\n } else if (h < 300) {\n rgb.b = t1;\n rgb.g = t2;\n rgb.r = t2 + t3;\n } else if (h < 360) {\n rgb.r = t1;\n rgb.g = t2;\n rgb.b = t1 - t3;\n } else {\n rgb.r = 0;\n rgb.g = 0;\n rgb.b = 0;\n }\n }\n return {\n r: Math.round(rgb.r),\n g: Math.round(rgb.g),\n b: Math.round(rgb.b)\n };\n },\n RGBtoHEX: function RGBtoHEX(rgb) {\n var hex = [rgb.r.toString(16), rgb.g.toString(16), rgb.b.toString(16)];\n for (var key in hex) {\n if (hex[key].length === 1) {\n hex[key] = '0' + hex[key];\n }\n }\n return hex.join('');\n },\n HSBtoHEX: function HSBtoHEX(hsb) {\n return this.RGBtoHEX(this.HSBtoRGB(hsb));\n },\n toHSB: function toHSB(value) {\n var hsb;\n if (value) {\n switch (this.format) {\n case 'hex':\n hsb = this.HEXtoHSB(value);\n break;\n case 'rgb':\n hsb = this.RGBtoHSB(value);\n break;\n case 'hsb':\n hsb = value;\n break;\n }\n } else {\n hsb = this.HEXtoHSB(this.defaultColor);\n }\n return hsb;\n },\n onOverlayEnter: function onOverlayEnter(el) {\n this.updateUI();\n this.alignOverlay();\n this.bindOutsideClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n if (this.autoZIndex) {\n ZIndex.set('overlay', el, this.baseZIndex, this.$primevue.config.zIndex.overlay);\n }\n this.$emit('show');\n },\n onOverlayLeave: function onOverlayLeave() {\n this.unbindOutsideClickListener();\n this.unbindScrollListener();\n this.unbindResizeListener();\n this.clearRefs();\n this.$emit('hide');\n },\n onOverlayAfterLeave: function onOverlayAfterLeave(el) {\n if (this.autoZIndex) {\n ZIndex.clear(el);\n }\n },\n alignOverlay: function alignOverlay() {\n if (this.appendTo === 'self') relativePosition(this.picker, this.$refs.input);else absolutePosition(this.picker, this.$refs.input);\n },\n onInputClick: function onInputClick() {\n if (this.disabled) {\n return;\n }\n this.overlayVisible = !this.overlayVisible;\n },\n onInputKeydown: function onInputKeydown(event) {\n switch (event.code) {\n case 'Space':\n this.overlayVisible = !this.overlayVisible;\n event.preventDefault();\n break;\n case 'Escape':\n case 'Tab':\n this.overlayVisible = false;\n break;\n }\n },\n onColorMousedown: function onColorMousedown(event) {\n if (this.disabled) {\n return;\n }\n this.bindDragListeners();\n this.onColorDragStart(event);\n },\n onColorDragStart: function onColorDragStart(event) {\n if (this.disabled) {\n return;\n }\n this.colorDragging = true;\n this.pickColor(event);\n this.$el.setAttribute('p-colorpicker-dragging', 'true');\n !this.isUnstyled && addClass(this.$el, 'p-colorpicker-dragging');\n event.preventDefault();\n },\n onDrag: function onDrag(event) {\n if (this.colorDragging) {\n this.pickColor(event);\n event.preventDefault();\n }\n if (this.hueDragging) {\n this.pickHue(event);\n event.preventDefault();\n }\n },\n onDragEnd: function onDragEnd() {\n this.colorDragging = false;\n this.hueDragging = false;\n this.$el.setAttribute('p-colorpicker-dragging', 'false');\n !this.isUnstyled && removeClass(this.$el, 'p-colorpicker-dragging');\n this.unbindDragListeners();\n },\n onHueMousedown: function onHueMousedown(event) {\n if (this.disabled) {\n return;\n }\n this.bindDragListeners();\n this.onHueDragStart(event);\n },\n onHueDragStart: function onHueDragStart(event) {\n if (this.disabled) {\n return;\n }\n this.hueDragging = true;\n this.pickHue(event);\n !this.isUnstyled && addClass(this.$el, 'p-colorpicker-dragging');\n },\n isInputClicked: function isInputClicked(event) {\n return this.$refs.input && this.$refs.input.isSameNode(event.target);\n },\n bindDragListeners: function bindDragListeners() {\n this.bindDocumentMouseMoveListener();\n this.bindDocumentMouseUpListener();\n },\n unbindDragListeners: function unbindDragListeners() {\n this.unbindDocumentMouseMoveListener();\n this.unbindDocumentMouseUpListener();\n },\n bindOutsideClickListener: function bindOutsideClickListener() {\n var _this = this;\n if (!this.outsideClickListener) {\n this.outsideClickListener = function (event) {\n if (_this.overlayVisible && _this.picker && !_this.picker.contains(event.target) && !_this.isInputClicked(event)) {\n _this.overlayVisible = false;\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 ConnectedOverlayScrollHandler(this.$refs.container, function () {\n if (_this2.overlayVisible) {\n _this2.overlayVisible = false;\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 && !isTouchDevice()) {\n _this3.overlayVisible = false;\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 bindDocumentMouseMoveListener: function bindDocumentMouseMoveListener() {\n if (!this.documentMouseMoveListener) {\n this.documentMouseMoveListener = this.onDrag.bind(this);\n document.addEventListener('mousemove', this.documentMouseMoveListener);\n }\n },\n unbindDocumentMouseMoveListener: function unbindDocumentMouseMoveListener() {\n if (this.documentMouseMoveListener) {\n document.removeEventListener('mousemove', this.documentMouseMoveListener);\n this.documentMouseMoveListener = null;\n }\n },\n bindDocumentMouseUpListener: function bindDocumentMouseUpListener() {\n if (!this.documentMouseUpListener) {\n this.documentMouseUpListener = this.onDragEnd.bind(this);\n document.addEventListener('mouseup', this.documentMouseUpListener);\n }\n },\n unbindDocumentMouseUpListener: function unbindDocumentMouseUpListener() {\n if (this.documentMouseUpListener) {\n document.removeEventListener('mouseup', this.documentMouseUpListener);\n this.documentMouseUpListener = null;\n }\n },\n pickerRef: function pickerRef(el) {\n this.picker = el;\n },\n colorSelectorRef: function colorSelectorRef(el) {\n this.colorSelector = el;\n },\n colorHandleRef: function colorHandleRef(el) {\n this.colorHandle = el;\n },\n hueViewRef: function hueViewRef(el) {\n this.hueView = el;\n },\n hueHandleRef: function hueHandleRef(el) {\n this.hueHandle = el;\n },\n clearRefs: function clearRefs() {\n this.picker = null;\n this.colorSelector = null;\n this.colorHandle = null;\n this.hueView = null;\n this.hueHandle = null;\n },\n onOverlayClick: function onOverlayClick(event) {\n OverlayEventBus.emit('overlay-click', {\n originalEvent: event,\n target: this.$el\n });\n }\n },\n components: {\n Portal: Portal\n }\n};\n\nvar _hoisted_1 = [\"id\", \"tabindex\", \"disabled\"];\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_Portal = resolveComponent(\"Portal\");\n return openBlock(), createElementBlock(\"div\", mergeProps({\n ref: \"container\",\n \"class\": _ctx.cx('root')\n }, _ctx.ptmi('root')), [!_ctx.inline ? (openBlock(), createElementBlock(\"input\", mergeProps({\n key: 0,\n ref: \"input\",\n id: _ctx.inputId,\n type: \"text\",\n \"class\": _ctx.cx('preview'),\n readonly: \"readonly\",\n tabindex: _ctx.tabindex,\n disabled: _ctx.disabled,\n onClick: _cache[0] || (_cache[0] = function () {\n return $options.onInputClick && $options.onInputClick.apply($options, arguments);\n }),\n onKeydown: _cache[1] || (_cache[1] = function () {\n return $options.onInputKeydown && $options.onInputKeydown.apply($options, arguments);\n })\n }, _ctx.ptm('preview')), null, 16, _hoisted_1)) : createCommentVNode(\"\", true), createVNode(_component_Portal, {\n appendTo: _ctx.appendTo,\n disabled: _ctx.inline\n }, {\n \"default\": withCtx(function () {\n return [createVNode(Transition, mergeProps({\n name: \"p-connected-overlay\",\n onEnter: $options.onOverlayEnter,\n onLeave: $options.onOverlayLeave,\n onAfterLeave: $options.onOverlayAfterLeave\n }, _ctx.ptm('transition')), {\n \"default\": withCtx(function () {\n return [(_ctx.inline ? true : $data.overlayVisible) ? (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 0,\n ref: $options.pickerRef,\n \"class\": [_ctx.cx('panel'), _ctx.panelClass],\n onClick: _cache[10] || (_cache[10] = function () {\n return $options.onOverlayClick && $options.onOverlayClick.apply($options, arguments);\n })\n }, _ctx.ptm('panel')), [createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('content')\n }, _ctx.ptm('content')), [createElementVNode(\"div\", mergeProps({\n ref: $options.colorSelectorRef,\n \"class\": _ctx.cx('colorSelector'),\n onMousedown: _cache[2] || (_cache[2] = function ($event) {\n return $options.onColorMousedown($event);\n }),\n onTouchstart: _cache[3] || (_cache[3] = function ($event) {\n return $options.onColorDragStart($event);\n }),\n onTouchmove: _cache[4] || (_cache[4] = function ($event) {\n return $options.onDrag($event);\n }),\n onTouchend: _cache[5] || (_cache[5] = function ($event) {\n return $options.onDragEnd();\n })\n }, _ctx.ptm('colorSelector')), [createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('colorBackground')\n }, _ctx.ptm('colorBackground')), [createElementVNode(\"div\", mergeProps({\n ref: $options.colorHandleRef,\n \"class\": _ctx.cx('colorHandle')\n }, _ctx.ptm('colorHandle')), null, 16)], 16)], 16), createElementVNode(\"div\", mergeProps({\n ref: $options.hueViewRef,\n \"class\": _ctx.cx('hue'),\n onMousedown: _cache[6] || (_cache[6] = function ($event) {\n return $options.onHueMousedown($event);\n }),\n onTouchstart: _cache[7] || (_cache[7] = function ($event) {\n return $options.onHueDragStart($event);\n }),\n onTouchmove: _cache[8] || (_cache[8] = function ($event) {\n return $options.onDrag($event);\n }),\n onTouchend: _cache[9] || (_cache[9] = function ($event) {\n return $options.onDragEnd();\n })\n }, _ctx.ptm('hue')), [createElementVNode(\"div\", mergeProps({\n ref: $options.hueHandleRef,\n \"class\": _ctx.cx('hueHandle')\n }, _ctx.ptm('hueHandle')), null, 16)], 16)], 16)], 16)) : createCommentVNode(\"\", true)];\n }),\n _: 1\n }, 16, [\"onEnter\", \"onLeave\", \"onAfterLeave\"])];\n }),\n _: 1\n }, 8, [\"appendTo\", \"disabled\"])], 16);\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","<template>\n <Dialog v-model:visible=\"visible\" :header=\"$t('customizeFolder')\">\n <div class=\"p-fluid\">\n <div class=\"field icon-field\">\n <label for=\"icon\">{{ $t('icon') }}</label>\n <SelectButton\n v-model=\"selectedIcon\"\n :options=\"iconOptions\"\n optionLabel=\"name\"\n dataKey=\"value\"\n >\n <template #option=\"slotProps\">\n <i\n :class=\"['pi', slotProps.option.value, 'mr-2']\"\n :style=\"{ color: finalColor }\"\n ></i>\n </template>\n </SelectButton>\n </div>\n <Divider />\n <div class=\"field color-field\">\n <label for=\"color\">{{ $t('color') }}</label>\n <div class=\"color-picker-container\">\n <SelectButton\n v-model=\"selectedColor\"\n :options=\"colorOptions\"\n optionLabel=\"name\"\n dataKey=\"value\"\n >\n <template #option=\"slotProps\">\n <div\n v-if=\"slotProps.option.value !== 'custom'\"\n :style=\"{\n width: '20px',\n height: '20px',\n backgroundColor: slotProps.option.value,\n borderRadius: '50%'\n }\"\n ></div>\n <i\n v-else\n class=\"pi pi-palette\"\n :style=\"{ fontSize: '1.2rem' }\"\n v-tooltip=\"$t('customColor')\"\n ></i>\n </template>\n </SelectButton>\n <ColorPicker\n v-if=\"selectedColor.value === 'custom'\"\n v-model=\"customColor\"\n />\n </div>\n </div>\n </div>\n <template #footer>\n <Button\n :label=\"$t('reset')\"\n icon=\"pi pi-refresh\"\n @click=\"resetCustomization\"\n class=\"p-button-text\"\n />\n <Button\n :label=\"$t('confirm')\"\n icon=\"pi pi-check\"\n @click=\"confirmCustomization\"\n autofocus\n />\n </template>\n </Dialog>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, watch } from 'vue'\nimport Dialog from 'primevue/dialog'\nimport SelectButton from 'primevue/selectbutton'\nimport Button from 'primevue/button'\nimport Divider from 'primevue/divider'\nimport ColorPicker from 'primevue/colorpicker'\nimport { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'\nimport { useI18n } from 'vue-i18n'\n\nconst { t } = useI18n()\n\nconst props = defineProps<{\n modelValue: boolean\n initialIcon?: string\n initialColor?: string\n}>()\n\nconst emit = defineEmits<{\n (e: 'update:modelValue', value: boolean): void\n (e: 'confirm', icon: string, color: string): void\n}>()\n\nconst visible = computed({\n get: () => props.modelValue,\n set: (value) => emit('update:modelValue', value)\n})\n\nconst nodeBookmarkStore = useNodeBookmarkStore()\n\nconst iconOptions = [\n { name: t('bookmark'), value: nodeBookmarkStore.defaultBookmarkIcon },\n { name: t('folder'), value: 'pi-folder' },\n { name: t('star'), value: 'pi-star' },\n { name: t('heart'), value: 'pi-heart' },\n { name: t('file'), value: 'pi-file' },\n { name: t('inbox'), value: 'pi-inbox' },\n { name: t('box'), value: 'pi-box' },\n { name: t('briefcase'), value: 'pi-briefcase' }\n]\n\nconst colorOptions = [\n { name: t('default'), value: nodeBookmarkStore.defaultBookmarkColor },\n { name: t('blue'), value: '#007bff' },\n { name: t('green'), value: '#28a745' },\n { name: t('red'), value: '#dc3545' },\n { name: t('pink'), value: '#e83e8c' },\n { name: t('yellow'), value: '#ffc107' },\n { name: t('custom'), value: 'custom' }\n]\n\nconst defaultIcon = iconOptions.find(\n (option) => option.value === nodeBookmarkStore.defaultBookmarkIcon\n)\nconst defaultColor = colorOptions.find(\n (option) => option.value === nodeBookmarkStore.defaultBookmarkColor\n)\n\nconst selectedIcon = ref<{ name: string; value: string }>(defaultIcon)\nconst selectedColor = ref<{ name: string; value: string }>(defaultColor)\nconst finalColor = computed(() =>\n selectedColor.value.value === 'custom'\n ? `#${customColor.value}`\n : selectedColor.value.value\n)\n\nconst customColor = ref('000000')\n\nconst closeDialog = () => {\n visible.value = false\n}\n\nconst confirmCustomization = () => {\n emit('confirm', selectedIcon.value.value, finalColor.value)\n closeDialog()\n}\n\nconst resetCustomization = () => {\n selectedIcon.value =\n iconOptions.find((option) => option.value === props.initialIcon) ||\n defaultIcon\n const colorOption = colorOptions.find(\n (option) => option.value === props.initialColor\n )\n if (!props.initialColor) {\n selectedColor.value = defaultColor\n } else if (!colorOption) {\n customColor.value = props.initialColor.replace('#', '')\n selectedColor.value = { name: 'Custom', value: 'custom' }\n } else {\n selectedColor.value = colorOption\n }\n}\n\nwatch(\n () => props.modelValue,\n (newValue: boolean) => {\n if (newValue) {\n resetCustomization()\n }\n },\n { immediate: true }\n)\n</script>\n\n<style scoped>\n.p-selectbutton .p-button {\n padding: 0.5rem;\n}\n\n.p-selectbutton .p-button .pi {\n font-size: 1.5rem;\n}\n\n.field {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n.color-picker-container {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n}\n</style>\n","import { Ref } from 'vue'\nimport type { TreeNode } from 'primevue/treenode'\n\nexport function useTreeExpansion(expandedKeys: Ref<Record<string, boolean>>) {\n const toggleNode = (node: TreeNode) => {\n if (node.key && typeof node.key === 'string') {\n if (node.key in expandedKeys.value) {\n delete expandedKeys.value[node.key]\n } else {\n expandedKeys.value[node.key] = true\n }\n }\n }\n\n const toggleNodeRecursive = (node: TreeNode) => {\n if (node.key && typeof node.key === 'string') {\n if (node.key in expandedKeys.value) {\n collapseNode(node)\n } else {\n expandNode(node)\n }\n }\n }\n\n const expandNode = (node: TreeNode) => {\n if (\n node.key &&\n typeof node.key === 'string' &&\n node.children &&\n node.children.length\n ) {\n expandedKeys.value[node.key] = true\n\n for (const child of node.children) {\n expandNode(child)\n }\n }\n }\n\n const collapseNode = (node: TreeNode) => {\n if (\n node.key &&\n typeof node.key === 'string' &&\n node.children &&\n node.children.length\n ) {\n delete expandedKeys.value[node.key]\n\n for (const child of node.children) {\n collapseNode(child)\n }\n }\n }\n\n const toggleNodeOnEvent = (e: MouseEvent | KeyboardEvent, node: TreeNode) => {\n if (e.ctrlKey) {\n toggleNodeRecursive(node)\n } else {\n toggleNode(node)\n }\n }\n\n return {\n toggleNode,\n toggleNodeRecursive,\n expandNode,\n collapseNode,\n toggleNodeOnEvent\n }\n}\n","<template>\n <TreeExplorer\n class=\"node-lib-bookmark-tree-explorer\"\n ref=\"treeExplorerRef\"\n :roots=\"renderedBookmarkedRoot.children\"\n :expandedKeys=\"expandedKeys\"\n >\n <template #folder=\"{ node }\">\n <NodeTreeFolder :node=\"node\" />\n </template>\n <template #node=\"{ node }\">\n <NodeTreeLeaf :node=\"node\" />\n </template>\n </TreeExplorer>\n\n <FolderCustomizationDialog\n v-model=\"showCustomizationDialog\"\n @confirm=\"updateCustomization\"\n :initialIcon=\"initialIcon\"\n :initialColor=\"initialColor\"\n />\n</template>\n\n<script setup lang=\"ts\">\nimport TreeExplorer from '@/components/common/TreeExplorer.vue'\nimport NodeTreeLeaf from '@/components/sidebar/tabs/nodeLibrary/NodeTreeLeaf.vue'\nimport NodeTreeFolder from '@/components/sidebar/tabs/nodeLibrary/NodeTreeFolder.vue'\nimport FolderCustomizationDialog from '@/components/common/CustomizationDialog.vue'\nimport { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'\nimport { ComfyNodeDefImpl } from '@/stores/nodeDefStore'\nimport type {\n RenderedTreeExplorerNode,\n TreeExplorerDragAndDropData,\n TreeExplorerNode\n} from '@/types/treeExplorerTypes'\nimport type { TreeNode } from 'primevue/treenode'\nimport { computed, nextTick, ref, watch } from 'vue'\nimport { useI18n } from 'vue-i18n'\nimport { useTreeExpansion } from '@/hooks/treeHooks'\nimport { app } from '@/scripts/app'\nimport { findNodeByKey } from '@/utils/treeUtil'\nimport { useErrorHandling } from '@/hooks/errorHooks'\n\nconst props = defineProps<{\n filteredNodeDefs: ComfyNodeDefImpl[]\n}>()\n\nconst expandedKeys = ref<Record<string, boolean>>({})\nconst { expandNode, toggleNodeOnEvent } = useTreeExpansion(expandedKeys)\n\nconst nodeBookmarkStore = useNodeBookmarkStore()\nconst bookmarkedRoot = computed<TreeNode>(() => {\n const filterTree = (node: TreeNode): TreeNode | null => {\n if (node.leaf) {\n // Check if the node's display_name is in the filteredNodeDefs list\n return props.filteredNodeDefs.some((def) => def.name === node.data.name)\n ? node\n : null\n }\n\n const filteredChildren = node.children\n ?.map(filterTree)\n .filter((child): child is TreeNode => child !== null)\n\n if (filteredChildren && filteredChildren.length > 0) {\n return {\n ...node,\n children: filteredChildren\n }\n }\n\n return null // Remove empty folders\n }\n\n return props.filteredNodeDefs.length\n ? filterTree(nodeBookmarkStore.bookmarkedRoot) || {\n key: 'root',\n label: 'Root',\n children: []\n }\n : nodeBookmarkStore.bookmarkedRoot\n})\nwatch(\n () => props.filteredNodeDefs,\n (newValue) => {\n if (newValue.length) {\n nextTick(() => expandNode(bookmarkedRoot.value))\n }\n }\n)\n\nconst { t } = useI18n()\nconst extraMenuItems = (\n menuTargetNode: RenderedTreeExplorerNode<ComfyNodeDefImpl>\n) => [\n {\n label: t('newFolder'),\n icon: 'pi pi-folder-plus',\n command: () => {\n addNewBookmarkFolder(menuTargetNode)\n },\n visible: !menuTargetNode?.leaf\n },\n {\n label: t('customize'),\n icon: 'pi pi-palette',\n command: () => {\n const customization =\n nodeBookmarkStore.bookmarksCustomization[menuTargetNode.data.nodePath]\n initialIcon.value =\n customization?.icon || nodeBookmarkStore.defaultBookmarkIcon\n initialColor.value =\n customization?.color || nodeBookmarkStore.defaultBookmarkColor\n\n showCustomizationDialog.value = true\n customizationTargetNodePath.value = menuTargetNode.data.nodePath\n },\n visible: !menuTargetNode?.leaf\n }\n]\n\nconst renderedBookmarkedRoot = computed<TreeExplorerNode<ComfyNodeDefImpl>>(\n () => {\n const fillNodeInfo = (\n node: TreeNode\n ): TreeExplorerNode<ComfyNodeDefImpl> => {\n const children = node.children?.map(fillNodeInfo)\n\n // Sort children: non-leaf nodes first, then leaf nodes, both alphabetically\n const sortedChildren = children?.sort((a, b) => {\n if (a.leaf === b.leaf) {\n return a.label.localeCompare(b.label)\n }\n return a.leaf ? 1 : -1\n })\n\n return {\n key: node.key,\n label: node.leaf ? node.data.display_name : node.label,\n leaf: node.leaf,\n data: node.data,\n getIcon: (node: TreeExplorerNode<ComfyNodeDefImpl>) => {\n if (node.leaf) {\n return 'pi pi-circle-fill'\n }\n const customization =\n nodeBookmarkStore.bookmarksCustomization[node.data.nodePath]\n return customization?.icon\n ? 'pi ' + customization.icon\n : 'pi pi-bookmark-fill'\n },\n children: sortedChildren,\n draggable: node.leaf,\n droppable: !node.leaf,\n handleDrop: (\n node: TreeExplorerNode<ComfyNodeDefImpl>,\n data: TreeExplorerDragAndDropData<ComfyNodeDefImpl>\n ) => {\n const nodeDefToAdd = data.data.data\n // Remove bookmark if the source is the top level bookmarked node.\n if (nodeBookmarkStore.isBookmarked(nodeDefToAdd)) {\n nodeBookmarkStore.toggleBookmark(nodeDefToAdd)\n }\n const folderNodeDef = node.data as ComfyNodeDefImpl\n const nodePath = folderNodeDef.category + '/' + nodeDefToAdd.name\n nodeBookmarkStore.addBookmark(nodePath)\n },\n handleClick: (\n node: RenderedTreeExplorerNode<ComfyNodeDefImpl>,\n e: MouseEvent\n ) => {\n if (node.leaf) {\n app.addNodeOnGraph(node.data, { pos: app.getCanvasCenter() })\n } else {\n toggleNodeOnEvent(e, node)\n }\n },\n contextMenuItems: extraMenuItems,\n ...(node.leaf\n ? {}\n : {\n handleRename,\n handleDelete: (node: TreeExplorerNode<ComfyNodeDefImpl>) => {\n nodeBookmarkStore.deleteBookmarkFolder(node.data)\n }\n })\n }\n }\n return fillNodeInfo(bookmarkedRoot.value)\n }\n)\n\nconst treeExplorerRef = ref<InstanceType<typeof TreeExplorer> | null>(null)\nconst addNewBookmarkFolder = (\n parent?: RenderedTreeExplorerNode<ComfyNodeDefImpl>\n) => {\n const newFolderKey =\n 'root/' + nodeBookmarkStore.addNewBookmarkFolder(parent?.data).slice(0, -1)\n nextTick(() => {\n treeExplorerRef.value?.renameCommand(\n findNodeByKey(\n renderedBookmarkedRoot.value,\n newFolderKey\n ) as RenderedTreeExplorerNode\n )\n if (parent) {\n expandedKeys.value[parent.key] = true\n }\n })\n}\ndefineExpose({\n addNewBookmarkFolder\n})\n\nconst handleRename = useErrorHandling().wrapWithErrorHandling(\n (node: TreeNode, newName: string) => {\n if (node.data && node.data.isDummyFolder) {\n nodeBookmarkStore.renameBookmarkFolder(node.data, newName)\n }\n }\n)\n\nconst showCustomizationDialog = ref(false)\nconst initialIcon = ref(nodeBookmarkStore.defaultBookmarkIcon)\nconst initialColor = ref(nodeBookmarkStore.defaultBookmarkColor)\nconst customizationTargetNodePath = ref('')\nconst updateCustomization = (icon: string, color: string) => {\n if (customizationTargetNodePath.value) {\n nodeBookmarkStore.updateBookmarkCustomization(\n customizationTargetNodePath.value,\n { icon, color }\n )\n }\n}\n</script>\n","<template>\n <SidebarTabTemplate :title=\"$t('sideToolbar.nodeLibrary')\">\n <template #tool-buttons>\n <Button\n class=\"new-folder-button\"\n icon=\"pi pi-folder-plus\"\n text\n severity=\"secondary\"\n @click=\"nodeBookmarkTreeExplorerRef?.addNewBookmarkFolder()\"\n v-tooltip=\"$t('newFolder')\"\n />\n <Button\n class=\"sort-button\"\n :icon=\"alphabeticalSort ? 'pi pi-sort-alpha-down' : 'pi pi-sort-alt'\"\n text\n severity=\"secondary\"\n @click=\"alphabeticalSort = !alphabeticalSort\"\n v-tooltip=\"$t('sideToolbar.nodeLibraryTab.sortOrder')\"\n />\n </template>\n <template #body>\n <div class=\"flex flex-col h-full\">\n <div class=\"flex-shrink-0\">\n <SearchBox\n class=\"node-lib-search-box mx-4 mt-4\"\n v-model:modelValue=\"searchQuery\"\n @search=\"handleSearch\"\n @show-filter=\"($event) => searchFilter.toggle($event)\"\n @remove-filter=\"onRemoveFilter\"\n :placeholder=\"$t('searchNodes') + '...'\"\n filter-icon=\"pi pi-filter\"\n :filters\n />\n\n <Popover ref=\"searchFilter\" class=\"node-lib-filter-popup\">\n <NodeSearchFilter @addFilter=\"onAddFilter\" />\n </Popover>\n </div>\n <div class=\"flex-grow overflow-y-auto\">\n <NodeBookmarkTreeExplorer\n ref=\"nodeBookmarkTreeExplorerRef\"\n :filtered-node-defs=\"filteredNodeDefs\"\n />\n <Divider\n v-if=\"nodeBookmarkStore.bookmarks.length > 0\"\n type=\"dashed\"\n />\n <TreeExplorer\n class=\"node-lib-tree-explorer mt-1\"\n :roots=\"renderedRoot.children\"\n v-model:expandedKeys=\"expandedKeys\"\n >\n <template #node=\"{ node }\">\n <NodeTreeLeaf :node=\"node\" />\n </template>\n </TreeExplorer>\n </div>\n </div>\n </template>\n </SidebarTabTemplate>\n <div id=\"node-library-node-preview-container\" />\n</template>\n\n<script setup lang=\"ts\">\nimport Button from 'primevue/button'\nimport {\n buildNodeDefTree,\n ComfyNodeDefImpl,\n useNodeDefStore\n} from '@/stores/nodeDefStore'\nimport { computed, nextTick, ref, Ref } from 'vue'\nimport type { TreeNode } from 'primevue/treenode'\nimport Popover from 'primevue/popover'\nimport Divider from 'primevue/divider'\nimport SearchBox from '@/components/common/SearchBox.vue'\nimport SidebarTabTemplate from '@/components/sidebar/tabs/SidebarTabTemplate.vue'\nimport NodeBookmarkTreeExplorer from './nodeLibrary/NodeBookmarkTreeExplorer.vue'\nimport TreeExplorer from '@/components/common/TreeExplorer.vue'\nimport NodeTreeLeaf from '@/components/sidebar/tabs/nodeLibrary/NodeTreeLeaf.vue'\nimport { app } from '@/scripts/app'\nimport { sortedTree } from '@/utils/treeUtil'\nimport { useTreeExpansion } from '@/hooks/treeHooks'\nimport NodeSearchFilter from '@/components/searchbox/NodeSearchFilter.vue'\nimport { FilterAndValue } from '@/services/nodeSearchService'\nimport { SearchFilter } from '@/components/common/SearchFilterChip.vue'\nimport type {\n RenderedTreeExplorerNode,\n TreeExplorerNode\n} from '@/types/treeExplorerTypes'\nimport { useNodeBookmarkStore } from '@/stores/nodeBookmarkStore'\n\nconst nodeDefStore = useNodeDefStore()\nconst nodeBookmarkStore = useNodeBookmarkStore()\nconst expandedKeys = ref<Record<string, boolean>>({})\nconst { expandNode, toggleNodeOnEvent } = useTreeExpansion(expandedKeys)\n\nconst nodeBookmarkTreeExplorerRef = ref<InstanceType<\n typeof NodeBookmarkTreeExplorer\n> | null>(null)\nconst searchFilter = ref(null)\nconst alphabeticalSort = ref(false)\n\nconst searchQuery = ref<string>('')\n\nconst root = computed(() => {\n const root = filteredRoot.value || nodeDefStore.nodeTree\n return alphabeticalSort.value ? sortedTree(root) : root\n})\n\nconst renderedRoot = computed<TreeExplorerNode<ComfyNodeDefImpl>>(() => {\n const fillNodeInfo = (node: TreeNode): TreeExplorerNode<ComfyNodeDefImpl> => {\n const children = node.children?.map(fillNodeInfo)\n\n return {\n key: node.key,\n label: node.leaf ? node.data.display_name : node.label,\n leaf: node.leaf,\n data: node.data,\n getIcon: (node: TreeExplorerNode<ComfyNodeDefImpl>) => {\n if (node.leaf) {\n return 'pi pi-circle-fill'\n }\n },\n children,\n draggable: node.leaf,\n handleClick: (\n node: RenderedTreeExplorerNode<ComfyNodeDefImpl>,\n e: MouseEvent\n ) => {\n if (node.leaf) {\n app.addNodeOnGraph(node.data, { pos: app.getCanvasCenter() })\n } else {\n toggleNodeOnEvent(e, node)\n }\n }\n }\n }\n return fillNodeInfo(root.value)\n})\n\nconst filteredNodeDefs = ref<ComfyNodeDefImpl[]>([])\nconst filteredRoot = computed<TreeNode | null>(() => {\n if (!filteredNodeDefs.value.length) {\n return null\n }\n return buildNodeDefTree(filteredNodeDefs.value)\n})\nconst filters: Ref<Array<SearchFilter & { filter: FilterAndValue<string> }>> =\n ref([])\nconst handleSearch = (query: string) => {\n // Don't apply a min length filter because it does not make sense in\n // multi-byte languages like Chinese, Japanese, Korean, etc.\n if (query.length === 0 && !filters.value.length) {\n filteredNodeDefs.value = []\n expandedKeys.value = {}\n return\n }\n\n const f = filters.value.map((f) => f.filter as FilterAndValue<string>)\n filteredNodeDefs.value = nodeDefStore.nodeSearchService.searchNode(\n query,\n f,\n {\n limit: 64\n },\n {\n matchWildcards: false\n }\n )\n\n nextTick(() => {\n expandNode(filteredRoot.value)\n })\n}\n\nconst onAddFilter = (filterAndValue: FilterAndValue) => {\n filters.value.push({\n filter: filterAndValue,\n badge: filterAndValue[0].invokeSequence.toUpperCase(),\n badgeClass: filterAndValue[0].invokeSequence + '-badge',\n text: filterAndValue[1],\n id: +new Date()\n })\n\n handleSearch(searchQuery.value)\n}\n\nconst onRemoveFilter = (filterAndValue) => {\n const index = filters.value.findIndex((f) => f === filterAndValue)\n if (index !== -1) {\n filters.value.splice(index, 1)\n }\n handleSearch(searchQuery.value)\n}\n</script>\n\n<style>\n.node-lib-filter-popup {\n margin-left: -13px;\n}\n</style>\n\n<style scoped>\n:deep(.comfy-vue-side-bar-body) {\n background: var(--p-tree-background);\n}\n\n:deep(.node-lib-bookmark-tree-explorer) {\n padding-bottom: 2px;\n}\n\n:deep(.p-divider) {\n margin: var(--comfy-tree-explorer-item-padding) 0px;\n}\n</style>\n","<template>\n <div class=\"model_preview\">\n <div class=\"model_preview_title\">\n {{ modelDef.title }}\n </div>\n <div class=\"model_preview_top_container\">\n <div class=\"model_preview_filename\">\n {{ modelDef.file_name }}\n </div>\n <div class=\"model_preview_architecture\" v-if=\"modelDef.architecture_id\">\n <span class=\"model_preview_prefix\">Architecture: </span>\n {{ modelDef.architecture_id }}\n </div>\n <div class=\"model_preview_author\" v-if=\"modelDef.author\">\n <span class=\"model_preview_prefix\">Author: </span>\n {{ modelDef.author }}\n </div>\n </div>\n <div class=\"model_preview_image\" v-if=\"modelDef.image\">\n <img :src=\"modelDef.image\" />\n </div>\n <div class=\"model_preview_usage_hint\" v-if=\"modelDef.usage_hint\">\n <span class=\"model_preview_prefix\">Usage hint: </span>\n {{ modelDef.usage_hint }}\n </div>\n <div class=\"model_preview_trigger_phrase\" v-if=\"modelDef.trigger_phrase\">\n <span class=\"model_preview_prefix\">Trigger phrase: </span>\n {{ modelDef.trigger_phrase }}\n </div>\n <div class=\"model_preview_description\" v-if=\"modelDef.description\">\n <span class=\"model_preview_prefix\">Description: </span>\n {{ modelDef.description }}\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ComfyModelDef } from '@/stores/modelStore'\n\nconst props = defineProps({\n modelDef: {\n type: ComfyModelDef,\n required: true\n }\n})\n\nconst modelDef = props.modelDef\n</script>\n<style scoped>\n.model_preview {\n background-color: var(--comfy-menu-bg);\n font-family: 'Open Sans', sans-serif;\n color: var(--descrip-text);\n border: 1px solid var(--descrip-text);\n min-width: 300px;\n max-width: 500px;\n width: fit-content;\n height: fit-content;\n z-index: 9999;\n border-radius: 12px;\n overflow: hidden;\n font-size: 12px;\n padding: 10px;\n}\n.model_preview_image {\n margin: auto;\n width: fit-content;\n}\n.model_preview_image img {\n max-width: 100%;\n max-height: 150px;\n object-fit: contain;\n}\n.model_preview_title {\n font-weight: bold;\n text-align: center;\n font-size: 14px;\n}\n.model_preview_top_container {\n text-align: center;\n line-height: 0.5;\n}\n.model_preview_filename,\n.model_preview_author,\n.model_preview_architecture {\n display: inline-block;\n text-align: center;\n margin: 5px;\n font-size: 10px;\n}\n.model_preview_prefix {\n font-weight: bold;\n}\n</style>\n","<template>\n <div ref=\"container\" class=\"model-lib-node-container h-full w-full\">\n <TreeExplorerTreeNode :node=\"node\">\n <template #before-label>\n <span\n v-if=\"modelDef && modelDef.image\"\n class=\"model-lib-model-icon-container\"\n >\n <span\n class=\"model-lib-model-icon\"\n :style=\"{ backgroundImage: `url(${modelDef.image})` }\"\n >\n </span>\n </span>\n </template>\n </TreeExplorerTreeNode>\n\n <teleport v-if=\"showPreview\" to=\"#model-library-model-preview-container\">\n <div class=\"model-lib-model-preview\" :style=\"modelPreviewStyle\">\n <ModelPreview ref=\"previewRef\" :modelDef=\"modelDef\"></ModelPreview>\n </div>\n </teleport>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue'\nimport ModelPreview from './ModelPreview.vue'\nimport { ComfyModelDef } from '@/stores/modelStore'\nimport { RenderedTreeExplorerNode } from '@/types/treeExplorerTypes'\nimport {\n computed,\n CSSProperties,\n nextTick,\n onMounted,\n onUnmounted,\n ref\n} from 'vue'\nimport { useSettingStore } from '@/stores/settingStore'\n\nconst props = defineProps<{\n node: RenderedTreeExplorerNode<ComfyModelDef>\n}>()\n\nconst modelDef = computed(() => props.node.data)\n\nconst previewRef = ref<InstanceType<typeof ModelPreview> | null>(null)\nconst modelPreviewStyle = ref<CSSProperties>({\n position: 'absolute',\n top: '0px',\n left: '0px'\n})\n\nconst settingStore = useSettingStore()\nconst sidebarLocation = computed<'left' | 'right'>(() =>\n settingStore.get('Comfy.Sidebar.Location')\n)\n\nconst handleModelHover = async () => {\n if (modelDef.value.is_fake_object) {\n return\n }\n const hoverTarget = modelContentElement.value\n const targetRect = hoverTarget.getBoundingClientRect()\n\n const previewHeight = previewRef.value?.$el.offsetHeight || 0\n const availableSpaceBelow = window.innerHeight - targetRect.bottom\n\n modelPreviewStyle.value.top =\n previewHeight > availableSpaceBelow\n ? `${Math.max(0, targetRect.top - (previewHeight - availableSpaceBelow) - 20)}px`\n : `${targetRect.top - 40}px`\n if (sidebarLocation.value === 'left') {\n modelPreviewStyle.value.left = `${targetRect.right}px`\n } else {\n modelPreviewStyle.value.left = `${targetRect.left - 400}px`\n }\n\n modelDef.value.load()\n}\n\nconst container = ref<HTMLElement | null>(null)\nconst modelContentElement = ref<HTMLElement | null>(null)\nconst isHovered = ref(false)\n\nconst showPreview = computed(() => {\n return (\n isHovered.value &&\n modelDef.value &&\n !modelDef.value.is_fake_object &&\n modelDef.value.has_loaded_metadata &&\n (modelDef.value.author ||\n modelDef.value.simplified_file_name != modelDef.value.title ||\n modelDef.value.description ||\n modelDef.value.usage_hint ||\n modelDef.value.trigger_phrase ||\n modelDef.value.image)\n )\n})\n\nconst handleMouseEnter = async () => {\n if (modelDef.value.is_fake_object) {\n return\n }\n isHovered.value = true\n await nextTick()\n handleModelHover()\n}\nconst handleMouseLeave = () => {\n isHovered.value = false\n}\nonMounted(() => {\n modelContentElement.value = container.value?.closest('.p-tree-node-content')\n modelContentElement.value?.addEventListener('mouseenter', handleMouseEnter)\n modelContentElement.value?.addEventListener('mouseleave', handleMouseLeave)\n if (!modelDef.value.is_fake_object) {\n modelDef.value.load()\n }\n})\n\nonUnmounted(() => {\n modelContentElement.value?.removeEventListener('mouseenter', handleMouseEnter)\n modelContentElement.value?.removeEventListener('mouseleave', handleMouseLeave)\n})\n</script>\n\n<style scoped>\n.model-lib-model-icon-container {\n display: inline-block;\n position: relative;\n left: 0;\n height: 1.5rem;\n vertical-align: top;\n width: 0px;\n}\n.model-lib-model-icon {\n background-size: cover;\n background-position: center;\n display: inline-block;\n position: relative;\n left: -2.5rem;\n height: 2rem;\n width: 2rem;\n vertical-align: top;\n}\n</style>\n","<template>\n <SidebarTabTemplate :title=\"$t('sideToolbar.modelLibrary')\">\n <template #tool-buttons> </template>\n <template #body>\n <div class=\"flex flex-col h-full\">\n <div class=\"flex-shrink-0\">\n <SearchBox\n class=\"model-lib-search-box mx-4 mt-4\"\n v-model:modelValue=\"searchQuery\"\n :placeholder=\"$t('searchModels') + '...'\"\n />\n </div>\n <div class=\"flex-grow overflow-y-auto\">\n <TreeExplorer\n class=\"model-lib-tree-explorer mt-1\"\n :roots=\"renderedRoot.children\"\n v-model:expandedKeys=\"expandedKeys\"\n @nodeClick=\"handleNodeClick\"\n >\n <template #node=\"{ node }\">\n <ModelTreeLeaf :node=\"node\" />\n </template>\n </TreeExplorer>\n </div>\n </div>\n </template>\n </SidebarTabTemplate>\n <div id=\"model-library-model-preview-container\" />\n</template>\n\n<script setup lang=\"ts\">\nimport SearchBox from '@/components/common/SearchBox.vue'\nimport { useI18n } from 'vue-i18n'\nimport TreeExplorer from '@/components/common/TreeExplorer.vue'\nimport SidebarTabTemplate from '@/components/sidebar/tabs/SidebarTabTemplate.vue'\nimport ModelTreeLeaf from '@/components/sidebar/tabs/modelLibrary/ModelTreeLeaf.vue'\nimport { ComfyModelDef, useModelStore } from '@/stores/modelStore'\nimport { useModelToNodeStore } from '@/stores/modelToNodeStore'\nimport { useSettingStore } from '@/stores/settingStore'\nimport { useTreeExpansion } from '@/hooks/treeHooks'\nimport type {\n RenderedTreeExplorerNode,\n TreeExplorerNode\n} from '@/types/treeExplorerTypes'\nimport { computed, ref, type ComputedRef, watch, toRef } from 'vue'\nimport type { TreeNode } from 'primevue/treenode'\nimport { app } from '@/scripts/app'\nimport { buildTree } from '@/utils/treeUtil'\nconst { t } = useI18n()\nconst modelStore = useModelStore()\nconst modelToNodeStore = useModelToNodeStore()\nconst settingStore = useSettingStore()\nconst searchQuery = ref<string>('')\nconst expandedKeys = ref<Record<string, boolean>>({})\nconst { toggleNodeOnEvent } = useTreeExpansion(expandedKeys)\n\nconst root: ComputedRef<TreeNode> = computed(() => {\n let modelList: ComfyModelDef[] = []\n if (!modelStore.modelFolders.length) {\n modelStore.getModelFolders()\n }\n if (settingStore.get('Comfy.ModelLibrary.AutoLoadAll')) {\n for (let folder of modelStore.modelFolders) {\n modelStore.getModelsInFolderCached(folder)\n }\n }\n for (let folder of modelStore.modelFolders) {\n const models = modelStore.modelStoreMap[folder]\n if (models) {\n if (Object.values(models.models).length) {\n modelList.push(...Object.values(models.models))\n } else {\n const fakeModel = new ComfyModelDef('(No Content)', folder)\n fakeModel.is_fake_object = true\n modelList.push(fakeModel)\n }\n } else {\n const fakeModel = new ComfyModelDef('Loading', folder)\n fakeModel.is_fake_object = true\n modelList.push(fakeModel)\n }\n }\n if (searchQuery.value) {\n const search = searchQuery.value.toLocaleLowerCase()\n modelList = modelList.filter((model: ComfyModelDef) => {\n return model.searchable.includes(search)\n })\n }\n const tree: TreeNode = buildTree(modelList, (model: ComfyModelDef) => {\n return [\n model.directory,\n ...model.file_name.replaceAll('\\\\', '/').split('/')\n ]\n })\n return tree\n})\n\nconst renderedRoot = computed<TreeExplorerNode<ComfyModelDef>>(() => {\n const nameFormat = settingStore.get('Comfy.ModelLibrary.NameFormat')\n const fillNodeInfo = (node: TreeNode): TreeExplorerNode<ComfyModelDef> => {\n const children = node.children?.map(fillNodeInfo)\n const model: ComfyModelDef | null =\n node.leaf && node.data ? node.data : null\n if (model?.is_fake_object) {\n if (model.file_name === '(No Content)') {\n return {\n key: node.key,\n label: t('noContent'),\n leaf: true,\n data: node.data,\n getIcon: (node: TreeExplorerNode<ComfyModelDef>) => {\n return 'pi pi-file'\n },\n children: []\n }\n } else {\n return {\n key: node.key,\n label: t('loading') + '...',\n leaf: true,\n data: node.data,\n getIcon: (node: TreeExplorerNode<ComfyModelDef>) => {\n return 'pi pi-spin pi-spinner'\n },\n children: []\n }\n }\n }\n\n return {\n key: node.key,\n label: model\n ? nameFormat === 'title'\n ? model.title\n : model.simplified_file_name\n : node.label,\n leaf: node.leaf,\n data: node.data,\n getIcon: (node: TreeExplorerNode<ComfyModelDef>) => {\n if (node.leaf) {\n if (node.data && node.data.image) {\n return 'pi pi-fake-spacer'\n }\n return 'pi pi-file'\n }\n },\n getBadgeText: (node: TreeExplorerNode<ComfyModelDef>) => {\n if (node.leaf) {\n return null\n }\n if (node.children?.length === 1) {\n const onlyChild = node.children[0]\n if (onlyChild.data?.is_fake_object) {\n if (onlyChild.data.file_name === '(No Content)') {\n return '0'\n } else if (onlyChild.data.file_name === 'Loading') {\n return '?'\n }\n }\n }\n return null\n },\n children,\n draggable: node.leaf,\n handleClick: (\n node: RenderedTreeExplorerNode<ComfyModelDef>,\n e: MouseEvent\n ) => {\n if (node.leaf) {\n const provider = modelToNodeStore.getNodeProvider(model.directory)\n if (provider) {\n const node = app.addNodeOnGraph(provider.nodeDef, {\n pos: app.getCanvasCenter()\n })\n const widget = node.widgets.find(\n (widget) => widget.name === provider.key\n )\n if (widget) {\n widget.value = model.file_name\n }\n }\n }\n }\n }\n }\n return fillNodeInfo(root.value)\n})\n\nconst handleNodeClick = (\n node: RenderedTreeExplorerNode<ComfyModelDef>,\n e: MouseEvent\n) => {\n if (node.leaf) {\n // TODO\n } else {\n toggleNodeOnEvent(e, node)\n }\n}\n\nwatch(\n toRef(expandedKeys, 'value'),\n (newExpandedKeys) => {\n Object.entries(newExpandedKeys).forEach(([key, isExpanded]) => {\n if (isExpanded) {\n const folderPath = key.split('/').slice(1).join('/')\n if (folderPath && !folderPath.includes('/')) {\n // Trigger (async) load of model data for this folder\n modelStore.getModelsInFolderCached(folderPath)\n }\n }\n })\n },\n { deep: true }\n)\n</script>\n\n<style>\n.pi-fake-spacer {\n height: 1px;\n width: 16px;\n}\n</style>\n\n<style scoped>\n:deep(.comfy-vue-side-bar-body) {\n background: var(--p-tree-background);\n}\n</style>\n","import BaseStyle from '@primevue/core/base/style';\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar theme = function theme(_ref) {\n var dt = _ref.dt;\n return \"\\n.p-toast {\\n width: \".concat(dt('toast.width'), \";\\n white-space: pre-line;\\n word-break: break-word;\\n}\\n\\n.p-toast-message {\\n margin: 0 0 1rem 0;\\n}\\n\\n.p-toast-message-icon {\\n flex-shrink: 0;\\n font-size: \").concat(dt('toast.icon.size'), \";\\n width: \").concat(dt('toast.icon.size'), \";\\n height: \").concat(dt('toast.icon.size'), \";\\n}\\n\\n.p-toast-message-content {\\n display: flex;\\n align-items: flex-start;\\n padding: \").concat(dt('toast.content.padding'), \";\\n gap: \").concat(dt('toast.content.gap'), \";\\n}\\n\\n.p-toast-message-text {\\n flex: 1 1 auto;\\n display: flex;\\n flex-direction: column;\\n gap: \").concat(dt('toast.text.gap'), \";\\n}\\n\\n.p-toast-summary {\\n font-weight: \").concat(dt('toast.summary.font.weight'), \";\\n font-size: \").concat(dt('toast.summary.font.size'), \";\\n}\\n\\n.p-toast-detail {\\n font-weight: \").concat(dt('toast.detail.font.weight'), \";\\n font-size: \").concat(dt('toast.detail.font.size'), \";\\n}\\n\\n.p-toast-close-button {\\n display: flex;\\n align-items: center;\\n justify-content: center;\\n overflow: hidden;\\n position: relative;\\n cursor: pointer;\\n background: transparent;\\n transition: background \").concat(dt('toast.transition.duration'), \", color \").concat(dt('toast.transition.duration'), \", outline-color \").concat(dt('toast.transition.duration'), \", box-shadow \").concat(dt('toast.transition.duration'), \";\\n outline-color: transparent;\\n color: inherit;\\n width: \").concat(dt('toast.close.button.width'), \";\\n height: \").concat(dt('toast.close.button.height'), \";\\n border-radius: \").concat(dt('toast.close.button.border.radius'), \";\\n margin: -25% 0 0 0;\\n right: -25%;\\n padding: 0;\\n border: none;\\n user-select: none;\\n}\\n\\n.p-toast-message-info,\\n.p-toast-message-success,\\n.p-toast-message-warn,\\n.p-toast-message-error,\\n.p-toast-message-secondary,\\n.p-toast-message-contrast {\\n border-width: \").concat(dt('toast.border.width'), \";\\n border-style: solid;\\n backdrop-filter: blur(\").concat(dt('toast.blur'), \");\\n border-radius: \").concat(dt('toast.border.radius'), \";\\n}\\n\\n.p-toast-close-icon {\\n font-size: \").concat(dt('toast.close.icon.size'), \";\\n width: \").concat(dt('toast.close.icon.size'), \";\\n height: \").concat(dt('toast.close.icon.size'), \";\\n}\\n\\n.p-toast-close-button:focus-visible {\\n outline-width: \").concat(dt('focus.ring.width'), \";\\n outline-style: \").concat(dt('focus.ring.style'), \";\\n outline-offset: \").concat(dt('focus.ring.offset'), \";\\n}\\n\\n.p-toast-message-info {\\n background: \").concat(dt('toast.info.background'), \";\\n border-color: \").concat(dt('toast.info.border.color'), \";\\n color: \").concat(dt('toast.info.color'), \";\\n box-shadow: \").concat(dt('toast.info.shadow'), \";\\n}\\n\\n.p-toast-message-info .p-toast-detail {\\n color: \").concat(dt('toast.info.detail.color'), \";\\n}\\n\\n.p-toast-message-info .p-toast-close-button:focus-visible {\\n outline-color: \").concat(dt('toast.info.close.button.focus.ring.color'), \";\\n box-shadow: \").concat(dt('toast.info.close.button.focus.ring.shadow'), \";\\n}\\n\\n.p-toast-message-info .p-toast-close-button:hover {\\n background: \").concat(dt('toast.info.close.button.hover.background'), \";\\n}\\n\\n.p-toast-message-success {\\n background: \").concat(dt('toast.success.background'), \";\\n border-color: \").concat(dt('toast.success.border.color'), \";\\n color: \").concat(dt('toast.success.color'), \";\\n box-shadow: \").concat(dt('toast.success.shadow'), \";\\n}\\n\\n.p-toast-message-success .p-toast-detail {\\n color: \").concat(dt('toast.success.detail.color'), \";\\n}\\n\\n.p-toast-message-success .p-toast-close-button:focus-visible {\\n outline-color: \").concat(dt('toast.success.close.button.focus.ring.color'), \";\\n box-shadow: \").concat(dt('toast.success.close.button.focus.ring.shadow'), \";\\n}\\n\\n.p-toast-message-success .p-toast-close-button:hover {\\n background: \").concat(dt('toast.success.close.button.hover.background'), \";\\n}\\n\\n.p-toast-message-warn {\\n background: \").concat(dt('toast.warn.background'), \";\\n border-color: \").concat(dt('toast.warn.border.color'), \";\\n color: \").concat(dt('toast.warn.color'), \";\\n box-shadow: \").concat(dt('toast.warn.shadow'), \";\\n}\\n\\n.p-toast-message-warn .p-toast-detail {\\n color: \").concat(dt('toast.warn.detail.color'), \";\\n}\\n\\n.p-toast-message-warn .p-toast-close-button:focus-visible {\\n outline-color: \").concat(dt('toast.warn.close.button.focus.ring.color'), \";\\n box-shadow: \").concat(dt('toast.warn.close.button.focus.ring.shadow'), \";\\n}\\n\\n.p-toast-message-warn .p-toast-close-button:hover {\\n background: \").concat(dt('toast.warn.close.button.hover.background'), \";\\n}\\n\\n.p-toast-message-error {\\n background: \").concat(dt('toast.error.background'), \";\\n border-color: \").concat(dt('toast.error.border.color'), \";\\n color: \").concat(dt('toast.error.color'), \";\\n box-shadow: \").concat(dt('toast.error.shadow'), \";\\n}\\n\\n.p-toast-message-error .p-toast-detail {\\n color: \").concat(dt('toast.error.detail.color'), \";\\n}\\n\\n.p-toast-message-error .p-toast-close-button:focus-visible {\\n outline-color: \").concat(dt('toast.error.close.button.focus.ring.color'), \";\\n box-shadow: \").concat(dt('toast.error.close.button.focus.ring.shadow'), \";\\n}\\n\\n.p-toast-message-error .p-toast-close-button:hover {\\n background: \").concat(dt('toast.error.close.button.hover.background'), \";\\n}\\n\\n.p-toast-message-secondary {\\n background: \").concat(dt('toast.secondary.background'), \";\\n border-color: \").concat(dt('toast.secondary.border.color'), \";\\n color: \").concat(dt('toast.secondary.color'), \";\\n box-shadow: \").concat(dt('toast.secondary.shadow'), \";\\n}\\n\\n.p-toast-message-secondary .p-toast-detail {\\n color: \").concat(dt('toast.secondary.detail.color'), \";\\n}\\n\\n.p-toast-message-secondary .p-toast-close-button:focus-visible {\\n outline-color: \").concat(dt('toast.secondary.close.button.focus.ring.color'), \";\\n box-shadow: \").concat(dt('toast.secondary.close.button.focus.ring.shadow'), \";\\n}\\n\\n.p-toast-message-secondary .p-toast-close-button:hover {\\n background: \").concat(dt('toast.secondary.close.button.hover.background'), \";\\n}\\n\\n.p-toast-message-contrast {\\n background: \").concat(dt('toast.contrast.background'), \";\\n border-color: \").concat(dt('toast.contrast.border.color'), \";\\n color: \").concat(dt('toast.contrast.color'), \";\\n box-shadow: \").concat(dt('toast.contrast.shadow'), \";\\n}\\n\\n.p-toast-message-contrast .p-toast-detail {\\n color: \").concat(dt('toast.contrast.detail.color'), \";\\n}\\n\\n.p-toast-message-contrast .p-toast-close-button:focus-visible {\\n outline-color: \").concat(dt('toast.contrast.close.button.focus.ring.color'), \";\\n box-shadow: \").concat(dt('toast.contrast.close.button.focus.ring.shadow'), \";\\n}\\n\\n.p-toast-message-contrast .p-toast-close-button:hover {\\n background: \").concat(dt('toast.contrast.close.button.hover.background'), \";\\n}\\n\\n.p-toast-top-center {\\n transform: translateX(-50%);\\n}\\n\\n.p-toast-bottom-center {\\n transform: translateX(-50%);\\n}\\n\\n.p-toast-center {\\n min-width: 20vw;\\n transform: translate(-50%, -50%);\\n}\\n\\n.p-toast-message-enter-from {\\n opacity: 0;\\n transform: translateY(50%);\\n}\\n\\n.p-toast-message-leave-from {\\n max-height: 1000px;\\n}\\n\\n.p-toast .p-toast-message.p-toast-message-leave-to {\\n max-height: 0;\\n opacity: 0;\\n margin-bottom: 0;\\n overflow: hidden;\\n}\\n\\n.p-toast-message-enter-active {\\n transition: transform 0.3s, opacity 0.3s;\\n}\\n\\n.p-toast-message-leave-active {\\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1), opacity 0.3s, margin-bottom 0.3s;\\n}\\n\");\n};\n\n// Position\nvar inlineStyles = {\n root: function root(_ref2) {\n var position = _ref2.position;\n return {\n position: 'fixed',\n top: position === 'top-right' || position === 'top-left' || position === 'top-center' ? '20px' : position === 'center' ? '50%' : null,\n right: (position === 'top-right' || position === 'bottom-right') && '20px',\n bottom: (position === 'bottom-left' || position === 'bottom-right' || position === 'bottom-center') && '20px',\n left: position === 'top-left' || position === 'bottom-left' ? '20px' : position === 'center' || position === 'top-center' || position === 'bottom-center' ? '50%' : null\n };\n }\n};\nvar classes = {\n root: function root(_ref3) {\n var props = _ref3.props;\n return ['p-toast p-component p-toast-' + props.position];\n },\n message: function message(_ref4) {\n var props = _ref4.props;\n return ['p-toast-message', {\n 'p-toast-message-info': props.message.severity === 'info' || props.message.severity === undefined,\n 'p-toast-message-warn': props.message.severity === 'warn',\n 'p-toast-message-error': props.message.severity === 'error',\n 'p-toast-message-success': props.message.severity === 'success',\n 'p-toast-message-secondary': props.message.severity === 'secondary',\n 'p-toast-message-contrast': props.message.severity === 'contrast'\n }];\n },\n messageContent: 'p-toast-message-content',\n messageIcon: function messageIcon(_ref5) {\n var props = _ref5.props;\n return ['p-toast-message-icon', _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, props.infoIcon, props.message.severity === 'info'), props.warnIcon, props.message.severity === 'warn'), props.errorIcon, props.message.severity === 'error'), props.successIcon, props.message.severity === 'success')];\n },\n messageText: 'p-toast-message-text',\n summary: 'p-toast-summary',\n detail: 'p-toast-detail',\n closeButton: 'p-toast-close-button',\n closeIcon: 'p-toast-close-icon'\n};\nvar ToastStyle = BaseStyle.extend({\n name: 'toast',\n theme: theme,\n classes: classes,\n inlineStyles: inlineStyles\n});\n\nexport { ToastStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import { setAttribute } from '@primeuix/utils/dom';\nimport { isEmpty } from '@primeuix/utils/object';\nimport { ZIndex } from '@primeuix/utils/zindex';\nimport { UniqueComponentId } from '@primevue/core/utils';\nimport Portal from 'primevue/portal';\nimport ToastEventBus from 'primevue/toasteventbus';\nimport BaseComponent from '@primevue/core/basecomponent';\nimport ToastStyle from 'primevue/toast/style';\nimport CheckIcon from '@primevue/icons/check';\nimport ExclamationTriangleIcon from '@primevue/icons/exclamationtriangle';\nimport InfoCircleIcon from '@primevue/icons/infocircle';\nimport TimesIcon from '@primevue/icons/times';\nimport TimesCircleIcon from '@primevue/icons/timescircle';\nimport Ripple from 'primevue/ripple';\nimport { resolveDirective, openBlock, createElementBlock, mergeProps, createBlock, resolveDynamicComponent, Fragment, createElementVNode, toDisplayString, normalizeProps, withDirectives, createCommentVNode, resolveComponent, withCtx, createVNode, TransitionGroup, renderList } from 'vue';\n\nvar script$2 = {\n name: 'BaseToast',\n \"extends\": BaseComponent,\n props: {\n group: {\n type: String,\n \"default\": null\n },\n position: {\n type: String,\n \"default\": 'top-right'\n },\n autoZIndex: {\n type: Boolean,\n \"default\": true\n },\n baseZIndex: {\n type: Number,\n \"default\": 0\n },\n breakpoints: {\n type: Object,\n \"default\": null\n },\n closeIcon: {\n type: String,\n \"default\": undefined\n },\n infoIcon: {\n type: String,\n \"default\": undefined\n },\n warnIcon: {\n type: String,\n \"default\": undefined\n },\n errorIcon: {\n type: String,\n \"default\": undefined\n },\n successIcon: {\n type: String,\n \"default\": undefined\n },\n closeButtonProps: {\n type: null,\n \"default\": null\n }\n },\n style: ToastStyle,\n provide: function provide() {\n return {\n $pcToast: this,\n $parentInstance: this\n };\n }\n};\n\nvar script$1 = {\n name: 'ToastMessage',\n hostName: 'Toast',\n \"extends\": BaseComponent,\n emits: ['close'],\n closeTimeout: null,\n props: {\n message: {\n type: null,\n \"default\": null\n },\n templates: {\n type: Object,\n \"default\": null\n },\n closeIcon: {\n type: String,\n \"default\": null\n },\n infoIcon: {\n type: String,\n \"default\": null\n },\n warnIcon: {\n type: String,\n \"default\": null\n },\n errorIcon: {\n type: String,\n \"default\": null\n },\n successIcon: {\n type: String,\n \"default\": null\n },\n closeButtonProps: {\n type: null,\n \"default\": null\n }\n },\n mounted: function mounted() {\n var _this = this;\n if (this.message.life) {\n this.closeTimeout = setTimeout(function () {\n _this.close({\n message: _this.message,\n type: 'life-end'\n });\n }, this.message.life);\n }\n },\n beforeUnmount: function beforeUnmount() {\n this.clearCloseTimeout();\n },\n methods: {\n close: function close(params) {\n this.$emit('close', params);\n },\n onCloseClick: function onCloseClick() {\n this.clearCloseTimeout();\n this.close({\n message: this.message,\n type: 'close'\n });\n },\n clearCloseTimeout: function clearCloseTimeout() {\n if (this.closeTimeout) {\n clearTimeout(this.closeTimeout);\n this.closeTimeout = null;\n }\n }\n },\n computed: {\n iconComponent: function iconComponent() {\n return {\n info: !this.infoIcon && InfoCircleIcon,\n success: !this.successIcon && CheckIcon,\n warn: !this.warnIcon && ExclamationTriangleIcon,\n error: !this.errorIcon && TimesCircleIcon\n }[this.message.severity];\n },\n closeAriaLabel: function closeAriaLabel() {\n return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.close : undefined;\n }\n },\n components: {\n TimesIcon: TimesIcon,\n InfoCircleIcon: InfoCircleIcon,\n CheckIcon: CheckIcon,\n ExclamationTriangleIcon: ExclamationTriangleIcon,\n TimesCircleIcon: TimesCircleIcon\n },\n directives: {\n ripple: Ripple\n }\n};\n\nfunction _typeof$1(o) { \"@babel/helpers - typeof\"; return _typeof$1 = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof$1(o); }\nfunction ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty$1(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty$1(e, r, t) { return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey$1(t) { var i = _toPrimitive$1(t, \"string\"); return \"symbol\" == _typeof$1(i) ? i : i + \"\"; }\nfunction _toPrimitive$1(t, r) { if (\"object\" != _typeof$1(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof$1(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar _hoisted_1 = [\"aria-label\"];\nfunction render$1(_ctx, _cache, $props, $setup, $data, $options) {\n var _directive_ripple = resolveDirective(\"ripple\");\n return openBlock(), createElementBlock(\"div\", mergeProps({\n \"class\": [_ctx.cx('message'), $props.message.styleClass],\n role: \"alert\",\n \"aria-live\": \"assertive\",\n \"aria-atomic\": \"true\"\n }, _ctx.ptm('message')), [$props.templates.container ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.container), {\n key: 0,\n message: $props.message,\n closeCallback: $options.onCloseClick\n }, null, 8, [\"message\", \"closeCallback\"])) : (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 1,\n \"class\": [_ctx.cx('messageContent'), $props.message.contentStyleClass]\n }, _ctx.ptm('messageContent')), [!$props.templates.message ? (openBlock(), createElementBlock(Fragment, {\n key: 0\n }, [(openBlock(), createBlock(resolveDynamicComponent($props.templates.messageicon ? $props.templates.messageicon : $props.templates.icon ? $props.templates.icon : $options.iconComponent && $options.iconComponent.name ? $options.iconComponent : 'span'), mergeProps({\n \"class\": _ctx.cx('messageIcon')\n }, _ctx.ptm('messageIcon')), null, 16, [\"class\"])), createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('messageText')\n }, _ctx.ptm('messageText')), [createElementVNode(\"span\", mergeProps({\n \"class\": _ctx.cx('summary')\n }, _ctx.ptm('summary')), toDisplayString($props.message.summary), 17), createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('detail')\n }, _ctx.ptm('detail')), toDisplayString($props.message.detail), 17)], 16)], 64)) : (openBlock(), createBlock(resolveDynamicComponent($props.templates.message), {\n key: 1,\n message: $props.message\n }, null, 8, [\"message\"])), $props.message.closable !== false ? (openBlock(), createElementBlock(\"div\", normalizeProps(mergeProps({\n key: 2\n }, _ctx.ptm('buttonContainer'))), [withDirectives((openBlock(), createElementBlock(\"button\", mergeProps({\n \"class\": _ctx.cx('closeButton'),\n type: \"button\",\n \"aria-label\": $options.closeAriaLabel,\n onClick: _cache[0] || (_cache[0] = function () {\n return $options.onCloseClick && $options.onCloseClick.apply($options, arguments);\n }),\n autofocus: \"\"\n }, _objectSpread$1(_objectSpread$1({}, $props.closeButtonProps), _ctx.ptm('closeButton'))), [(openBlock(), createBlock(resolveDynamicComponent($props.templates.closeicon || 'TimesIcon'), mergeProps({\n \"class\": [_ctx.cx('closeIcon'), $props.closeIcon]\n }, _ctx.ptm('closeIcon')), null, 16, [\"class\"]))], 16, _hoisted_1)), [[_directive_ripple]])], 16)) : createCommentVNode(\"\", true)], 16))], 16);\n}\n\nscript$1.render = render$1;\n\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }\nvar messageIdx = 0;\nvar script = {\n name: 'Toast',\n \"extends\": script$2,\n inheritAttrs: false,\n emits: ['close', 'life-end'],\n data: function data() {\n return {\n messages: []\n };\n },\n styleElement: null,\n mounted: function mounted() {\n ToastEventBus.on('add', this.onAdd);\n ToastEventBus.on('remove', this.onRemove);\n ToastEventBus.on('remove-group', this.onRemoveGroup);\n ToastEventBus.on('remove-all-groups', this.onRemoveAllGroups);\n if (this.breakpoints) {\n this.createStyle();\n }\n },\n beforeUnmount: function beforeUnmount() {\n this.destroyStyle();\n if (this.$refs.container && this.autoZIndex) {\n ZIndex.clear(this.$refs.container);\n }\n ToastEventBus.off('add', this.onAdd);\n ToastEventBus.off('remove', this.onRemove);\n ToastEventBus.off('remove-group', this.onRemoveGroup);\n ToastEventBus.off('remove-all-groups', this.onRemoveAllGroups);\n },\n methods: {\n add: function add(message) {\n if (message.id == null) {\n message.id = messageIdx++;\n }\n this.messages = [].concat(_toConsumableArray(this.messages), [message]);\n },\n remove: function remove(params) {\n var index = this.messages.findIndex(function (m) {\n return m.id === params.message.id;\n });\n if (index !== -1) {\n this.messages.splice(index, 1);\n this.$emit(params.type, {\n message: params.message\n });\n }\n },\n onAdd: function onAdd(message) {\n if (this.group == message.group) {\n this.add(message);\n }\n },\n onRemove: function onRemove(message) {\n this.remove({\n message: message,\n type: 'close'\n });\n },\n onRemoveGroup: function onRemoveGroup(group) {\n if (this.group === group) {\n this.messages = [];\n }\n },\n onRemoveAllGroups: function onRemoveAllGroups() {\n this.messages = [];\n },\n onEnter: function onEnter() {\n this.$refs.container.setAttribute(this.attributeSelector, '');\n if (this.autoZIndex) {\n ZIndex.set('modal', this.$refs.container, this.baseZIndex || this.$primevue.config.zIndex.modal);\n }\n },\n onLeave: function onLeave() {\n var _this = this;\n if (this.$refs.container && this.autoZIndex && isEmpty(this.messages)) {\n setTimeout(function () {\n ZIndex.clear(_this.$refs.container);\n }, 200);\n }\n },\n createStyle: function createStyle() {\n if (!this.styleElement && !this.isUnstyled) {\n var _this$$primevue;\n this.styleElement = document.createElement('style');\n this.styleElement.type = 'text/css';\n setAttribute(this.styleElement, 'nonce', (_this$$primevue = this.$primevue) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.config) === null || _this$$primevue === void 0 || (_this$$primevue = _this$$primevue.csp) === null || _this$$primevue === void 0 ? void 0 : _this$$primevue.nonce);\n document.head.appendChild(this.styleElement);\n var innerHTML = '';\n for (var breakpoint in this.breakpoints) {\n var breakpointStyle = '';\n for (var styleProp in this.breakpoints[breakpoint]) {\n breakpointStyle += styleProp + ':' + this.breakpoints[breakpoint][styleProp] + '!important;';\n }\n innerHTML += \"\\n @media screen and (max-width: \".concat(breakpoint, \") {\\n .p-toast[\").concat(this.attributeSelector, \"] {\\n \").concat(breakpointStyle, \"\\n }\\n }\\n \");\n }\n this.styleElement.innerHTML = innerHTML;\n }\n },\n destroyStyle: function destroyStyle() {\n if (this.styleElement) {\n document.head.removeChild(this.styleElement);\n this.styleElement = null;\n }\n }\n },\n computed: {\n attributeSelector: function attributeSelector() {\n return UniqueComponentId();\n }\n },\n components: {\n ToastMessage: script$1,\n Portal: Portal\n }\n};\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_ToastMessage = resolveComponent(\"ToastMessage\");\n var _component_Portal = resolveComponent(\"Portal\");\n return openBlock(), createBlock(_component_Portal, null, {\n \"default\": withCtx(function () {\n return [createElementVNode(\"div\", mergeProps({\n ref: \"container\",\n \"class\": _ctx.cx('root'),\n style: _ctx.sx('root', true, {\n position: _ctx.position\n })\n }, _ctx.ptmi('root')), [createVNode(TransitionGroup, mergeProps({\n name: \"p-toast-message\",\n tag: \"div\",\n onEnter: $options.onEnter,\n onLeave: $options.onLeave\n }, _objectSpread({}, _ctx.ptm('transition'))), {\n \"default\": withCtx(function () {\n return [(openBlock(true), createElementBlock(Fragment, null, renderList($data.messages, function (msg) {\n return openBlock(), createBlock(_component_ToastMessage, {\n key: msg.id,\n message: msg,\n templates: _ctx.$slots,\n closeIcon: _ctx.closeIcon,\n infoIcon: _ctx.infoIcon,\n warnIcon: _ctx.warnIcon,\n errorIcon: _ctx.errorIcon,\n successIcon: _ctx.successIcon,\n closeButtonProps: _ctx.closeButtonProps,\n unstyled: _ctx.unstyled,\n onClose: _cache[0] || (_cache[0] = function ($event) {\n return $options.remove($event);\n }),\n pt: _ctx.pt\n }, null, 8, [\"message\", \"templates\", \"closeIcon\", \"infoIcon\", \"warnIcon\", \"errorIcon\", \"successIcon\", \"closeButtonProps\", \"unstyled\", \"pt\"]);\n }), 128))];\n }),\n _: 1\n }, 16, [\"onEnter\", \"onLeave\"])], 16)];\n }),\n _: 1\n });\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","<template>\n <Toast />\n</template>\n\n<script setup lang=\"ts\">\nimport { useSettingStore } from '@/stores/settingStore'\nimport { useToastStore } from '@/stores/toastStore'\nimport Toast from 'primevue/toast'\nimport { useToast } from 'primevue/usetoast'\nimport { nextTick, watch } from 'vue'\n\nconst toast = useToast()\nconst toastStore = useToastStore()\nconst settingStore = useSettingStore()\n\nwatch(\n () => toastStore.messagesToAdd,\n (newMessages) => {\n if (newMessages.length === 0) {\n return\n }\n\n newMessages.forEach((message) => {\n toast.add(message)\n })\n toastStore.messagesToAdd = []\n },\n { deep: true }\n)\n\nwatch(\n () => toastStore.messagesToRemove,\n (messagesToRemove) => {\n if (messagesToRemove.length === 0) {\n return\n }\n\n messagesToRemove.forEach((message) => {\n toast.remove(message)\n })\n toastStore.messagesToRemove = []\n },\n { deep: true }\n)\n\nwatch(\n () => toastStore.removeAllRequested,\n (requested) => {\n if (requested) {\n toast.removeAllGroups()\n toastStore.removeAllRequested = false\n }\n }\n)\n\nfunction updateToastPosition() {\n const styleElement =\n document.getElementById('dynamic-toast-style') || createStyleElement()\n const rect = document\n .querySelector('.graph-canvas-container')\n .getBoundingClientRect()\n styleElement.textContent = `\n .p-toast.p-component.p-toast-top-right {\n top: ${rect.top + 20}px !important;\n right: ${window.innerWidth - (rect.left + rect.width) + 20}px !important;\n }\n `\n}\n\nfunction createStyleElement() {\n const style = document.createElement('style')\n style.id = 'dynamic-toast-style'\n document.head.appendChild(style)\n return style\n}\n\nwatch(\n () => settingStore.get('Comfy.UseNewMenu'),\n () => nextTick(updateToastPosition),\n { immediate: true }\n)\nwatch(\n () => settingStore.get('Comfy.Sidebar.Location'),\n () => nextTick(updateToastPosition),\n { immediate: true }\n)\n</script>\n","<template>\n <div>\n <!--\n UnloadWindowConfirmDialog: This component does not render\n anything visible. It is used to confirm the user wants to\n close the window, and if they do, it will call the\n beforeunload event.\n -->\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { useSettingStore } from '@/stores/settingStore'\nimport { onMounted, onBeforeUnmount } from 'vue'\n\nconst settingStore = useSettingStore()\n\nconst handleBeforeUnload = (event: BeforeUnloadEvent) => {\n if (settingStore.get('Comfy.Window.UnloadConfirmation')) {\n event.preventDefault()\n return true\n }\n return undefined\n}\n\nonMounted(() => {\n window.addEventListener('beforeunload', handleBeforeUnload)\n})\n\nonBeforeUnmount(() => {\n window.removeEventListener('beforeunload', handleBeforeUnload)\n})\n</script>\n","<template>\n <div>\n <!-- This component does not render anything visible. -->\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { useExecutionStore } from '@/stores/executionStore'\nimport { useSettingStore } from '@/stores/settingStore'\nimport { useWorkflowStore } from '@/stores/workflowStore'\nimport { useTitle } from '@vueuse/core'\nimport { computed } from 'vue'\n\nconst DEFAULT_TITLE = 'ComfyUI'\nconst TITLE_SUFFIX = ' - ComfyUI'\n\nconst executionStore = useExecutionStore()\nconst executionText = computed(() =>\n executionStore.isIdle ? '' : `[${executionStore.executionProgress}%]`\n)\n\nconst settingStore = useSettingStore()\nconst betaMenuEnabled = computed(\n () => settingStore.get('Comfy.UseNewMenu') !== 'Disabled'\n)\n\nconst workflowStore = useWorkflowStore()\nconst isUnsavedText = computed(() =>\n workflowStore.activeWorkflow?.unsaved ? ' *' : ''\n)\nconst workflowNameText = computed(() => {\n const workflowName = workflowStore.activeWorkflow?.name\n return workflowName\n ? isUnsavedText.value + workflowName + TITLE_SUFFIX\n : DEFAULT_TITLE\n})\n\nconst nodeExecutionTitle = computed(() =>\n executionStore.executingNode && executionStore.executingNodeProgress\n ? `${executionText.value}[${executionStore.executingNodeProgress}%] ${executionStore.executingNode.type}`\n : ''\n)\n\nconst workflowTitle = computed(\n () =>\n executionText.value +\n (betaMenuEnabled.value ? workflowNameText.value : DEFAULT_TITLE)\n)\n\nconst title = computed(() => nodeExecutionTitle.value || workflowTitle.value)\nuseTitle(title)\n</script>\n","<template>\n <TreeExplorerTreeNode :node=\"node\">\n <template #actions=\"{ node }\">\n <Button\n :icon=\"isBookmarked ? 'pi pi-bookmark-fill' : 'pi pi-bookmark'\"\n text\n severity=\"secondary\"\n size=\"small\"\n @click.stop=\"workflowBookmarkStore.toggleBookmarked(node.data.path)\"\n />\n </template>\n </TreeExplorerTreeNode>\n</template>\n\n<script setup lang=\"ts\">\nimport TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue'\nimport Button from 'primevue/button'\nimport { useWorkflowBookmarkStore } from '@/stores/workflowStore'\nimport { ComfyWorkflow } from '@/scripts/workflows'\nimport type { RenderedTreeExplorerNode } from '@/types/treeExplorerTypes'\nimport { computed } from 'vue'\n\nconst props = defineProps<{\n node: RenderedTreeExplorerNode<ComfyWorkflow>\n}>()\n\nconst workflowBookmarkStore = useWorkflowBookmarkStore()\nconst isBookmarked = computed(() =>\n workflowBookmarkStore.isBookmarked(props.node.data.path)\n)\n</script>\n","<template>\n <div class=\"flex items-center\" :class=\"props.class\">\n <span v-if=\"position === 'left'\" class=\"mr-2 shrink-0\">{{ text }}</span>\n <Divider :align=\"align\" :type=\"type\" :layout=\"layout\" class=\"flex-grow\" />\n <span v-if=\"position === 'right'\" class=\"ml-2 shrink-0\">{{ text }}</span>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport Divider from 'primevue/divider'\n\ninterface Props {\n text: string\n class?: string\n position?: 'left' | 'right'\n align?: 'left' | 'center' | 'right' | 'top' | 'bottom'\n type?: 'solid' | 'dashed' | 'dotted'\n layout?: 'horizontal' | 'vertical'\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n position: 'left',\n align: 'center',\n type: 'solid',\n layout: 'horizontal'\n})\n</script>\n","<template>\n <SidebarTabTemplate :title=\"$t('sideToolbar.workflows')\">\n <template #tool-buttons>\n <Button\n class=\"browse-templates-button\"\n icon=\"pi pi-th-large\"\n v-tooltip=\"$t('sideToolbar.browseTemplates')\"\n text\n @click=\"() => commandStore.execute('Comfy.BrowseTemplates')\"\n />\n <Button\n class=\"open-workflow-button\"\n icon=\"pi pi-folder-open\"\n v-tooltip=\"$t('sideToolbar.openWorkflow')\"\n text\n @click=\"() => commandStore.execute('Comfy.OpenWorkflow')\"\n />\n <Button\n class=\"new-blank-workflow-button\"\n icon=\"pi pi-plus\"\n v-tooltip=\"$t('sideToolbar.newBlankWorkflow')\"\n @click=\"() => commandStore.execute('Comfy.NewBlankWorkflow')\"\n text\n />\n </template>\n <template #body>\n <SearchBox\n class=\"workflows-search-box mx-4 my-4\"\n v-model:modelValue=\"searchQuery\"\n @search=\"handleSearch\"\n :placeholder=\"$t('searchWorkflows') + '...'\"\n />\n <div class=\"comfyui-workflows-panel\" v-if=\"!isSearching\">\n <div\n class=\"comfyui-workflows-open\"\n v-if=\"workflowTabsPosition === 'Sidebar'\"\n >\n <TextDivider text=\"Open\" type=\"dashed\" class=\"ml-2\" />\n <TreeExplorer\n :roots=\"renderTreeNode(workflowStore.openWorkflowsTree).children\"\n v-model:selectionKeys=\"selectionKeys\"\n >\n <template #node=\"{ node }\">\n <TreeExplorerTreeNode :node=\"node\">\n <template #before-label=\"{ node }\">\n <span v-if=\"node.data.unsaved\">*</span>\n </template>\n <template #actions=\"{ node }\">\n <Button\n icon=\"pi pi-times\"\n text\n severity=\"secondary\"\n size=\"small\"\n @click.stop=\"app.workflowManager.closeWorkflow(node.data)\"\n />\n </template>\n </TreeExplorerTreeNode>\n </template>\n </TreeExplorer>\n </div>\n <div\n class=\"comfyui-workflows-bookmarks\"\n v-show=\"workflowStore.bookmarkedWorkflows.length > 0\"\n >\n <TextDivider text=\"Bookmarks\" type=\"dashed\" class=\"ml-2\" />\n <TreeExplorer\n :roots=\"\n renderTreeNode(workflowStore.bookmarkedWorkflowsTree).children\n \"\n >\n <template #node=\"{ node }\">\n <WorkflowTreeLeaf :node=\"node\" />\n </template>\n </TreeExplorer>\n </div>\n <div class=\"comfyui-workflows-browse\">\n <TextDivider text=\"Browse\" type=\"dashed\" class=\"ml-2\" />\n <TreeExplorer\n :roots=\"renderTreeNode(workflowStore.workflowsTree).children\"\n v-model:expandedKeys=\"expandedKeys\"\n >\n <template #node=\"{ node }\">\n <WorkflowTreeLeaf :node=\"node\" />\n </template>\n </TreeExplorer>\n </div>\n </div>\n <div class=\"comfyui-workflows-search-panel\" v-else>\n <TreeExplorer\n :roots=\"renderTreeNode(filteredRoot).children\"\n v-model:expandedKeys=\"expandedKeys\"\n >\n <template #node=\"{ node }\">\n <WorkflowTreeLeaf :node=\"node\" />\n </template>\n </TreeExplorer>\n </div>\n </template>\n </SidebarTabTemplate>\n</template>\n\n<script setup lang=\"ts\">\nimport SearchBox from '@/components/common/SearchBox.vue'\nimport WorkflowTreeLeaf from '@/components/sidebar/tabs/workflows/WorkflowTreeLeaf.vue'\nimport SidebarTabTemplate from '@/components/sidebar/tabs/SidebarTabTemplate.vue'\nimport TreeExplorer from '@/components/common/TreeExplorer.vue'\nimport TreeExplorerTreeNode from '@/components/common/TreeExplorerTreeNode.vue'\nimport Button from 'primevue/button'\nimport TextDivider from '@/components/common/TextDivider.vue'\nimport { app } from '@/scripts/app'\nimport { computed, nextTick, ref } from 'vue'\nimport { useWorkflowStore } from '@/stores/workflowStore'\nimport { useCommandStore } from '@/stores/commandStore'\nimport type { TreeNode } from 'primevue/treenode'\nimport { TreeExplorerNode } from '@/types/treeExplorerTypes'\nimport { ComfyWorkflow } from '@/scripts/workflows'\nimport { useI18n } from 'vue-i18n'\nimport { useTreeExpansion } from '@/hooks/treeHooks'\nimport { useSettingStore } from '@/stores/settingStore'\n\nconst settingStore = useSettingStore()\nconst workflowTabsPosition = computed(() =>\n settingStore.get('Comfy.Workflow.WorkflowTabsPosition')\n)\n\nconst searchQuery = ref('')\nconst isSearching = computed(() => searchQuery.value.length > 0)\nconst filteredWorkflows = ref<ComfyWorkflow[]>([])\nconst filteredRoot = computed<TreeNode>(() => {\n return workflowStore.buildWorkflowTree(\n filteredWorkflows.value as ComfyWorkflow[]\n )\n})\nconst handleSearch = (query: string) => {\n if (query.length === 0) {\n filteredWorkflows.value = []\n expandedKeys.value = {}\n return\n }\n const lowerQuery = query.toLocaleLowerCase()\n filteredWorkflows.value = workflowStore.workflows.filter((workflow) => {\n return workflow.name.toLocaleLowerCase().includes(lowerQuery)\n })\n nextTick(() => {\n expandNode(filteredRoot.value)\n })\n}\n\nconst commandStore = useCommandStore()\n\nconst workflowStore = useWorkflowStore()\nconst { t } = useI18n()\nconst expandedKeys = ref<Record<string, boolean>>({})\nconst { expandNode, toggleNodeOnEvent } = useTreeExpansion(expandedKeys)\n\nconst renderTreeNode = (node: TreeNode): TreeExplorerNode<ComfyWorkflow> => {\n const children = node.children?.map(renderTreeNode)\n\n const workflow: ComfyWorkflow = node.data\n\n const handleClick = (\n node: TreeExplorerNode<ComfyWorkflow>,\n e: MouseEvent\n ) => {\n if (node.leaf) {\n const workflow = node.data\n workflow.load()\n } else {\n toggleNodeOnEvent(e, node)\n }\n }\n const actions = node.leaf\n ? {\n handleClick,\n handleRename: (\n node: TreeExplorerNode<ComfyWorkflow>,\n newName: string\n ) => {\n const workflow = node.data\n workflow.rename(newName)\n },\n handleDelete: workflow.isTemporary\n ? undefined\n : (node: TreeExplorerNode<ComfyWorkflow>) => {\n const workflow = node.data\n workflow.delete()\n },\n contextMenuItems: (node: TreeExplorerNode<ComfyWorkflow>) => {\n return [\n {\n label: t('insert'),\n icon: 'pi pi-file-export',\n command: () => {\n const workflow = node.data\n workflow.insert()\n }\n }\n ]\n }\n }\n : { handleClick }\n\n return {\n key: node.key,\n label: node.label,\n leaf: node.leaf,\n data: node.data,\n children,\n ...actions\n }\n}\n\nconst selectionKeys = computed(() => ({\n [`root/${workflowStore.activeWorkflow?.name}.json`]: true\n}))\n</script>\n\n<style scoped>\n:deep(.comfy-vue-side-bar-body) {\n background: var(--p-tree-background);\n}\n</style>\n","<template>\n <SelectButton\n class=\"workflow-tabs bg-transparent flex flex-wrap\"\n :class=\"props.class\"\n :modelValue=\"selectedWorkflow\"\n @update:modelValue=\"onWorkflowChange\"\n :options=\"options\"\n optionLabel=\"label\"\n dataKey=\"value\"\n >\n <template #option=\"{ option }\">\n <span\n class=\"workflow-label text-sm max-w-[150px] truncate inline-block\"\n v-tooltip=\"option.tooltip\"\n >\n {{ option.label }}\n </span>\n <div class=\"relative\">\n <span class=\"status-indicator\" v-if=\"option.unsaved\">•</span>\n <Button\n class=\"close-button p-0 w-auto\"\n icon=\"pi pi-times\"\n text\n severity=\"secondary\"\n size=\"small\"\n @click.stop=\"onCloseWorkflow(option)\"\n />\n </div>\n </template>\n </SelectButton>\n</template>\n\n<script setup lang=\"ts\">\nimport { app } from '@/scripts/app'\nimport { ComfyWorkflow } from '@/scripts/workflows'\nimport { useWorkflowStore } from '@/stores/workflowStore'\nimport SelectButton from 'primevue/selectbutton'\nimport Button from 'primevue/button'\nimport { computed } from 'vue'\n\nconst props = defineProps<{\n class?: string\n}>()\n\nconst workflowStore = useWorkflowStore()\ninterface WorkflowOption {\n label: string\n tooltip: string\n value: string\n unsaved: boolean\n}\n\nconst workflowToOption = (workflow: ComfyWorkflow): WorkflowOption => ({\n label: workflow.name,\n tooltip: workflow.path,\n value: workflow.key,\n unsaved: workflow.unsaved\n})\n\nconst optionToWorkflow = (option: WorkflowOption): ComfyWorkflow =>\n workflowStore.workflowLookup[option.value]\n\nconst options = computed<WorkflowOption[]>(() =>\n workflowStore.openWorkflows.map(workflowToOption)\n)\nconst selectedWorkflow = computed<WorkflowOption | null>(() =>\n workflowStore.activeWorkflow\n ? workflowToOption(workflowStore.activeWorkflow as ComfyWorkflow)\n : null\n)\nconst onWorkflowChange = (option: WorkflowOption) => {\n // Prevent unselecting the current workflow\n if (!option) {\n return\n }\n // Prevent reloading the current workflow\n if (selectedWorkflow.value?.value === option.value) {\n return\n }\n\n const workflow = optionToWorkflow(option)\n workflow.load()\n}\n\nconst onCloseWorkflow = (option: WorkflowOption) => {\n const workflow = optionToWorkflow(option)\n app.workflowManager.closeWorkflow(workflow)\n}\n</script>\n\n<style scoped>\n:deep(.p-togglebutton::before) {\n @apply hidden;\n}\n\n:deep(.p-togglebutton) {\n @apply px-2 bg-transparent rounded-none flex-shrink-0 relative;\n}\n\n:deep(.p-togglebutton.p-togglebutton-checked) {\n @apply border-b-2;\n border-bottom-color: var(--p-button-text-primary-color);\n}\n\n:deep(.p-togglebutton-checked) .close-button,\n:deep(.p-togglebutton:hover) .close-button {\n @apply visible;\n}\n\n.status-indicator {\n @apply absolute font-bold;\n font-size: 1.5rem;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n:deep(.p-togglebutton:hover) .status-indicator {\n @apply hidden;\n}\n\n:deep(.p-togglebutton) .close-button {\n @apply invisible;\n}\n</style>\n","import BaseStyle from '@primevue/core/base/style';\n\nvar theme = function theme(_ref) {\n var dt = _ref.dt;\n return \"\\n.p-menubar {\\n display: flex;\\n align-items: center;\\n background: \".concat(dt('menubar.background'), \";\\n border: 1px solid \").concat(dt('menubar.border.color'), \";\\n border-radius: \").concat(dt('menubar.border.radius'), \";\\n color: \").concat(dt('menubar.color'), \";\\n padding: \").concat(dt('menubar.padding'), \";\\n gap: \").concat(dt('menubar.gap'), \";\\n}\\n\\n.p-menubar-start,\\n.p-megamenu-end {\\n display: flex;\\n align-items: center;\\n}\\n\\n.p-menubar-root-list,\\n.p-menubar-submenu {\\n display: flex;\\n margin: 0;\\n padding: 0;\\n list-style: none;\\n outline: 0 none;\\n}\\n\\n.p-menubar-root-list {\\n align-items: center;\\n flex-wrap: wrap;\\n gap: \").concat(dt('menubar.gap'), \";\\n}\\n\\n.p-menubar-root-list > .p-menubar-item > .p-menubar-item-content {\\n border-radius: \").concat(dt('menubar.base.item.border.radius'), \";\\n}\\n\\n.p-menubar-root-list > .p-menubar-item > .p-menubar-item-content > .p-menubar-item-link {\\n padding: \").concat(dt('menubar.base.item.padding'), \";\\n}\\n\\n.p-menubar-item-content {\\n transition: background \").concat(dt('menubar.transition.duration'), \", color \").concat(dt('menubar.transition.duration'), \";\\n border-radius: \").concat(dt('menubar.item.border.radius'), \";\\n color: \").concat(dt('menubar.item.color'), \";\\n}\\n\\n.p-menubar-item-link {\\n cursor: pointer;\\n display: flex;\\n align-items: center;\\n text-decoration: none;\\n overflow: hidden;\\n position: relative;\\n color: inherit;\\n padding: \").concat(dt('menubar.item.padding'), \";\\n gap: \").concat(dt('menubar.item.gap'), \";\\n user-select: none;\\n outline: 0 none;\\n}\\n\\n.p-menubar-item-label {\\n line-height: 1;\\n}\\n\\n.p-menubar-item-icon {\\n color: \").concat(dt('menubar.item.icon.color'), \";\\n}\\n\\n.p-menubar-submenu-icon {\\n color: \").concat(dt('menubar.submenu.icon.color'), \";\\n margin-left: auto;\\n font-size: \").concat(dt('menubar.submenu.icon.size'), \";\\n width: \").concat(dt('menubar.submenu.icon.size'), \";\\n height: \").concat(dt('menubar.submenu.icon.size'), \";\\n}\\n\\n.p-menubar-item.p-focus > .p-menubar-item-content {\\n color: \").concat(dt('menubar.item.focus.color'), \";\\n background: \").concat(dt('menubar.item.focus.background'), \";\\n}\\n\\n.p-menubar-item.p-focus > .p-menubar-item-content .p-menubar-item-icon {\\n color: \").concat(dt('menubar.item.icon.focus.color'), \";\\n}\\n\\n.p-menubar-item.p-focus > .p-menubar-item-content .p-menubar-submenu-icon {\\n color: \").concat(dt('menubar.submenu.icon.focus.color'), \";\\n}\\n\\n.p-menubar-item:not(.p-disabled) > .p-menubar-item-content:hover {\\n color: \").concat(dt('menubar.item.focus.color'), \";\\n background: \").concat(dt('menubar.item.focus.background'), \";\\n}\\n\\n.p-menubar-item:not(.p-disabled) > .p-menubar-item-content:hover .p-menubar-item-icon {\\n color: \").concat(dt('menubar.item.icon.focus.color'), \";\\n}\\n\\n.p-menubar-item:not(.p-disabled) > .p-menubar-item-content:hover .p-menubar-submenu-icon {\\n color: \").concat(dt('menubar.submenu.icon.focus.color'), \";\\n}\\n\\n.p-menubar-item-active > .p-menubar-item-content {\\n color: \").concat(dt('menubar.item.active.color'), \";\\n background: \").concat(dt('menubar.item.active.background'), \";\\n}\\n\\n.p-menubar-item-active > .p-menubar-item-content .p-menubar-item-icon {\\n color: \").concat(dt('menubar.item.icon.active.color'), \";\\n}\\n\\n.p-menubar-item-active > .p-menubar-item-content .p-menubar-submenu-icon {\\n color: \").concat(dt('menubar.submenu.icon.active.color'), \";\\n}\\n\\n.p-menubar-submenu {\\n display: none;\\n position: absolute;\\n min-width: 12.5rem;\\n z-index: 1;\\n background: \").concat(dt('menubar.submenu.background'), \";\\n border: 1px solid \").concat(dt('menubar.submenu.border.color'), \";\\n border-radius: \").concat(dt('menubar.border.radius'), \";\\n box-shadow: \").concat(dt('menubar.submenu.shadow'), \";\\n color: \").concat(dt('menubar.submenu.color'), \";\\n flex-direction: column;\\n padding: \").concat(dt('menubar.submenu.padding'), \";\\n gap: \").concat(dt('menubar.submenu.gap'), \";\\n}\\n\\n.p-menubar-submenu .p-menubar-separator {\\n border-top: 1px solid \").concat(dt('menubar.separator.border.color'), \";\\n}\\n\\n.p-menubar-submenu .p-menubar-item {\\n position: relative;\\n}\\n\\n .p-menubar-submenu > .p-menubar-item-active > .p-menubar-submenu {\\n display: block;\\n left: 100%;\\n top: 0;\\n}\\n\\n.p-menubar-end {\\n margin-left: auto;\\n align-self: center;\\n}\\n\\n.p-menubar-button {\\n display: none;\\n justify-content: center;\\n align-items: center;\\n cursor: pointer;\\n width: \").concat(dt('menubar.mobile.button.size'), \";\\n height: \").concat(dt('menubar.mobile.button.size'), \";\\n position: relative;\\n color: \").concat(dt('menubar.mobile.button.color'), \";\\n border: 0 none;\\n background: transparent;\\n border-radius: \").concat(dt('menubar.mobile.button.border.radius'), \";\\n transition: background \").concat(dt('menubar.transition.duration'), \", color \").concat(dt('menubar.transition.duration'), \", outline-color \").concat(dt('menubar.transition.duration'), \";\\n outline-color: transparent;\\n}\\n\\n.p-menubar-button:hover {\\n color: \").concat(dt('menubar.mobile.button.hover.color'), \";\\n background: \").concat(dt('menubar.mobile.button.hover.background'), \";\\n}\\n\\n.p-menubar-button:focus-visible {\\n box-shadow: \").concat(dt('menubar.mobile.button.focus.ring.shadow'), \";\\n outline: \").concat(dt('menubar.mobile.button.focus.ring.width'), \" \").concat(dt('menubar.mobile.button.focus.ring.style'), \" \").concat(dt('menubar.mobile.button.focus.ring.color'), \";\\n outline-offset: \").concat(dt('menubar.mobile.button.focus.ring.offset'), \";\\n}\\n\\n.p-menubar-mobile {\\n position: relative;\\n}\\n\\n.p-menubar-mobile .p-menubar-button {\\n display: flex;\\n}\\n\\n.p-menubar-mobile .p-menubar-root-list {\\n position: absolute;\\n display: none;\\n width: 100%;\\n padding: \").concat(dt('menubar.submenu.padding'), \";\\n background: \").concat(dt('menubar.submenu.background'), \";\\n border: 1px solid \").concat(dt('menubar.submenu.border.color'), \";\\n box-shadow: \").concat(dt('menubar.submenu.shadow'), \";\\n}\\n\\n.p-menubar-mobile .p-menubar-root-list > .p-menubar-item > .p-menubar-item-content {\\n border-radius: \").concat(dt('menubar.item.border.radius'), \";\\n}\\n\\n.p-menubar-mobile .p-menubar-root-list > .p-menubar-item > .p-menubar-item-content > .p-menubar-item-link {\\n padding: \").concat(dt('menubar.item.padding'), \";\\n}\\n\\n.p-menubar-mobile-active .p-menubar-root-list {\\n display: flex;\\n flex-direction: column;\\n top: 100%;\\n left: 0;\\n z-index: 1;\\n}\\n\\n.p-menubar-mobile .p-menubar-root-list .p-menubar-item {\\n width: 100%;\\n position: static;\\n}\\n\\n.p-menubar-mobile .p-menubar-root-list .p-menubar-separator {\\n border-top: 1px solid \").concat(dt('menubar.separator.border.color'), \";\\n}\\n\\n.p-menubar-mobile .p-menubar-root-list > .p-menubar-item > .p-menubar-item-content .p-menubar-submenu-icon {\\n margin-left: auto;\\n transition: transform 0.2s;\\n}\\n\\n.p-menubar-mobile .p-menubar-root-list > .p-menubar-item-active > .p-menubar-item-content .p-menubar-submenu-icon {\\n transform: rotate(-180deg);\\n}\\n\\n.p-menubar-mobile .p-menubar-submenu .p-menubar-submenu-icon {\\n transition: transform 0.2s;\\n transform: rotate(90deg);\\n}\\n\\n.p-menubar-mobile .p-menubar-item-active > .p-menubar-item-content .p-menubar-submenu-icon {\\n transform: rotate(-90deg);\\n}\\n\\n.p-menubar-mobile .p-menubar-submenu {\\n width: 100%;\\n position: static;\\n box-shadow: none;\\n border: 0 none;\\n padding-left: \").concat(dt('menubar.submenu.mobile.indent'), \";\\n}\\n\");\n};\nvar inlineStyles = {\n submenu: function submenu(_ref2) {\n var instance = _ref2.instance,\n processedItem = _ref2.processedItem;\n return {\n display: instance.isItemActive(processedItem) ? 'flex' : 'none'\n };\n }\n};\nvar classes = {\n root: function root(_ref3) {\n var instance = _ref3.instance;\n return ['p-menubar p-component', {\n 'p-menubar-mobile': instance.queryMatches,\n 'p-menubar-mobile-active': instance.mobileActive\n }];\n },\n start: 'p-menubar-start',\n button: 'p-menubar-button',\n rootList: 'p-menubar-root-list',\n item: function item(_ref4) {\n var instance = _ref4.instance,\n processedItem = _ref4.processedItem;\n return ['p-menubar-item', {\n 'p-menubar-item-active': instance.isItemActive(processedItem),\n 'p-focus': instance.isItemFocused(processedItem),\n 'p-disabled': instance.isItemDisabled(processedItem)\n }];\n },\n itemContent: 'p-menubar-item-content',\n itemLink: 'p-menubar-item-link',\n itemIcon: 'p-menubar-item-icon',\n itemLabel: 'p-menubar-item-label',\n submenuIcon: 'p-menubar-submenu-icon',\n submenu: 'p-menubar-submenu',\n separator: 'p-menubar-separator',\n end: 'p-menubar-end'\n};\nvar MenubarStyle = BaseStyle.extend({\n name: 'menubar',\n theme: theme,\n classes: classes,\n inlineStyles: inlineStyles\n});\n\nexport { MenubarStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import { UniqueComponentId } from '@primevue/core/utils';\nimport { focus, findSingle, isTouchDevice } from '@primeuix/utils/dom';\nimport { resolve, isNotEmpty, isPrintableCharacter, isEmpty, findLastIndex } from '@primeuix/utils/object';\nimport { ZIndex } from '@primeuix/utils/zindex';\nimport BarsIcon from '@primevue/icons/bars';\nimport BaseComponent from '@primevue/core/basecomponent';\nimport MenubarStyle from 'primevue/menubar/style';\nimport AngleDownIcon from '@primevue/icons/angledown';\nimport AngleRightIcon from '@primevue/icons/angleright';\nimport Ripple from 'primevue/ripple';\nimport { mergeProps, resolveComponent, resolveDirective, openBlock, createElementBlock, Fragment, renderList, createElementVNode, withDirectives, createBlock, resolveDynamicComponent, normalizeClass, createCommentVNode, toDisplayString, normalizeStyle, renderSlot, createVNode, normalizeProps, guardReactiveProps } from 'vue';\n\nvar script$2 = {\n name: 'BaseMenubar',\n \"extends\": BaseComponent,\n props: {\n model: {\n type: Array,\n \"default\": null\n },\n buttonProps: {\n type: null,\n \"default\": null\n },\n breakpoint: {\n type: String,\n \"default\": '960px'\n },\n ariaLabelledby: {\n type: String,\n \"default\": null\n },\n ariaLabel: {\n type: String,\n \"default\": null\n }\n },\n style: MenubarStyle,\n provide: function provide() {\n return {\n $pcMenubar: this,\n $parentInstance: this\n };\n }\n};\n\nvar script$1 = {\n name: 'MenubarSub',\n hostName: 'Menubar',\n \"extends\": BaseComponent,\n emits: ['item-mouseenter', 'item-click', 'item-mousemove'],\n props: {\n items: {\n type: Array,\n \"default\": null\n },\n root: {\n type: Boolean,\n \"default\": false\n },\n popup: {\n type: Boolean,\n \"default\": false\n },\n mobileActive: {\n type: Boolean,\n \"default\": false\n },\n templates: {\n type: Object,\n \"default\": null\n },\n level: {\n type: Number,\n \"default\": 0\n },\n menuId: {\n type: String,\n \"default\": null\n },\n focusedItemId: {\n type: String,\n \"default\": null\n },\n activeItemPath: {\n type: Object,\n \"default\": null\n }\n },\n list: null,\n methods: {\n getItemId: function getItemId(processedItem) {\n return \"\".concat(this.menuId, \"_\").concat(processedItem.key);\n },\n getItemKey: function getItemKey(processedItem) {\n return this.getItemId(processedItem);\n },\n getItemProp: function getItemProp(processedItem, name, params) {\n return processedItem && processedItem.item ? resolve(processedItem.item[name], params) : undefined;\n },\n getItemLabel: function getItemLabel(processedItem) {\n return this.getItemProp(processedItem, 'label');\n },\n getItemLabelId: function getItemLabelId(processedItem) {\n return \"\".concat(this.menuId, \"_\").concat(processedItem.key, \"_label\");\n },\n getPTOptions: function getPTOptions(processedItem, index, key) {\n return this.ptm(key, {\n context: {\n item: processedItem.item,\n index: index,\n active: this.isItemActive(processedItem),\n focused: this.isItemFocused(processedItem),\n disabled: this.isItemDisabled(processedItem),\n level: this.level\n }\n });\n },\n isItemActive: function isItemActive(processedItem) {\n return this.activeItemPath.some(function (path) {\n return path.key === processedItem.key;\n });\n },\n isItemVisible: function isItemVisible(processedItem) {\n return this.getItemProp(processedItem, 'visible') !== false;\n },\n isItemDisabled: function isItemDisabled(processedItem) {\n return this.getItemProp(processedItem, 'disabled');\n },\n isItemFocused: function isItemFocused(processedItem) {\n return this.focusedItemId === this.getItemId(processedItem);\n },\n isItemGroup: function isItemGroup(processedItem) {\n return isNotEmpty(processedItem.items);\n },\n onItemClick: function onItemClick(event, processedItem) {\n this.getItemProp(processedItem, 'command', {\n originalEvent: event,\n item: processedItem.item\n });\n this.$emit('item-click', {\n originalEvent: event,\n processedItem: processedItem,\n isFocus: true\n });\n },\n onItemMouseEnter: function onItemMouseEnter(event, processedItem) {\n this.$emit('item-mouseenter', {\n originalEvent: event,\n processedItem: processedItem\n });\n },\n onItemMouseMove: function onItemMouseMove(event, processedItem) {\n this.$emit('item-mousemove', {\n originalEvent: event,\n processedItem: processedItem\n });\n },\n getAriaPosInset: function getAriaPosInset(index) {\n return index - this.calculateAriaSetSize.slice(0, index).length + 1;\n },\n getMenuItemProps: function getMenuItemProps(processedItem, index) {\n return {\n action: mergeProps({\n \"class\": this.cx('itemLink'),\n tabindex: -1,\n 'aria-hidden': true\n }, this.getPTOptions(processedItem, index, 'itemLink')),\n icon: mergeProps({\n \"class\": [this.cx('itemIcon'), this.getItemProp(processedItem, 'icon')]\n }, this.getPTOptions(processedItem, index, 'itemIcon')),\n label: mergeProps({\n \"class\": this.cx('itemLabel')\n }, this.getPTOptions(processedItem, index, 'itemLabel')),\n submenuicon: mergeProps({\n \"class\": this.cx('submenuIcon')\n }, this.getPTOptions(processedItem, index, 'submenuIcon'))\n };\n }\n },\n computed: {\n calculateAriaSetSize: function calculateAriaSetSize() {\n var _this = this;\n return this.items.filter(function (processedItem) {\n return _this.isItemVisible(processedItem) && _this.getItemProp(processedItem, 'separator');\n });\n },\n getAriaSetSize: function getAriaSetSize() {\n var _this2 = this;\n return this.items.filter(function (processedItem) {\n return _this2.isItemVisible(processedItem) && !_this2.getItemProp(processedItem, 'separator');\n }).length;\n }\n },\n components: {\n AngleRightIcon: AngleRightIcon,\n AngleDownIcon: AngleDownIcon\n },\n directives: {\n ripple: Ripple\n }\n};\n\nvar _hoisted_1$1 = [\"id\", \"aria-label\", \"aria-disabled\", \"aria-expanded\", \"aria-haspopup\", \"aria-level\", \"aria-setsize\", \"aria-posinset\", \"data-p-active\", \"data-p-focused\", \"data-p-disabled\"];\nvar _hoisted_2 = [\"onClick\", \"onMouseenter\", \"onMousemove\"];\nvar _hoisted_3 = [\"href\", \"target\"];\nvar _hoisted_4 = [\"id\"];\nvar _hoisted_5 = [\"id\"];\nfunction render$1(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_MenubarSub = resolveComponent(\"MenubarSub\", true);\n var _directive_ripple = resolveDirective(\"ripple\");\n return openBlock(), createElementBlock(\"ul\", mergeProps({\n \"class\": $props.level === 0 ? _ctx.cx('rootList') : _ctx.cx('submenu')\n }, $props.level === 0 ? _ctx.ptm('rootList') : _ctx.ptm('submenu')), [(openBlock(true), createElementBlock(Fragment, null, renderList($props.items, function (processedItem, index) {\n return openBlock(), createElementBlock(Fragment, {\n key: $options.getItemKey(processedItem)\n }, [$options.isItemVisible(processedItem) && !$options.getItemProp(processedItem, 'separator') ? (openBlock(), createElementBlock(\"li\", mergeProps({\n key: 0,\n id: $options.getItemId(processedItem),\n style: $options.getItemProp(processedItem, 'style'),\n \"class\": [_ctx.cx('item', {\n processedItem: processedItem\n }), $options.getItemProp(processedItem, 'class')],\n role: \"menuitem\",\n \"aria-label\": $options.getItemLabel(processedItem),\n \"aria-disabled\": $options.isItemDisabled(processedItem) || undefined,\n \"aria-expanded\": $options.isItemGroup(processedItem) ? $options.isItemActive(processedItem) : undefined,\n \"aria-haspopup\": $options.isItemGroup(processedItem) && !$options.getItemProp(processedItem, 'to') ? 'menu' : undefined,\n \"aria-level\": $props.level + 1,\n \"aria-setsize\": $options.getAriaSetSize,\n \"aria-posinset\": $options.getAriaPosInset(index),\n ref_for: true\n }, $options.getPTOptions(processedItem, index, 'item'), {\n \"data-p-active\": $options.isItemActive(processedItem),\n \"data-p-focused\": $options.isItemFocused(processedItem),\n \"data-p-disabled\": $options.isItemDisabled(processedItem)\n }), [createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('itemContent'),\n onClick: function onClick($event) {\n return $options.onItemClick($event, processedItem);\n },\n onMouseenter: function onMouseenter($event) {\n return $options.onItemMouseEnter($event, processedItem);\n },\n onMousemove: function onMousemove($event) {\n return $options.onItemMouseMove($event, processedItem);\n },\n ref_for: true\n }, $options.getPTOptions(processedItem, index, 'itemContent')), [!$props.templates.item ? withDirectives((openBlock(), createElementBlock(\"a\", mergeProps({\n key: 0,\n href: $options.getItemProp(processedItem, 'url'),\n \"class\": _ctx.cx('itemLink'),\n target: $options.getItemProp(processedItem, 'target'),\n tabindex: \"-1\",\n ref_for: true\n }, $options.getPTOptions(processedItem, index, 'itemLink')), [$props.templates.itemicon ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.itemicon), {\n key: 0,\n item: processedItem.item,\n \"class\": normalizeClass(_ctx.cx('itemIcon'))\n }, null, 8, [\"item\", \"class\"])) : $options.getItemProp(processedItem, 'icon') ? (openBlock(), createElementBlock(\"span\", mergeProps({\n key: 1,\n \"class\": [_ctx.cx('itemIcon'), $options.getItemProp(processedItem, 'icon')],\n ref_for: true\n }, $options.getPTOptions(processedItem, index, 'itemIcon')), null, 16)) : createCommentVNode(\"\", true), createElementVNode(\"span\", mergeProps({\n id: $options.getItemLabelId(processedItem),\n \"class\": _ctx.cx('itemLabel'),\n ref_for: true\n }, $options.getPTOptions(processedItem, index, 'itemLabel')), toDisplayString($options.getItemLabel(processedItem)), 17, _hoisted_4), $options.getItemProp(processedItem, 'items') ? (openBlock(), createElementBlock(Fragment, {\n key: 2\n }, [$props.templates.submenuicon ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.submenuicon), {\n key: 0,\n root: $props.root,\n active: $options.isItemActive(processedItem),\n \"class\": normalizeClass(_ctx.cx('submenuIcon'))\n }, null, 8, [\"root\", \"active\", \"class\"])) : (openBlock(), createBlock(resolveDynamicComponent($props.root ? 'AngleDownIcon' : 'AngleRightIcon'), mergeProps({\n key: 1,\n \"class\": _ctx.cx('submenuIcon'),\n ref_for: true\n }, $options.getPTOptions(processedItem, index, 'submenuIcon')), null, 16, [\"class\"]))], 64)) : createCommentVNode(\"\", true)], 16, _hoisted_3)), [[_directive_ripple]]) : (openBlock(), createBlock(resolveDynamicComponent($props.templates.item), {\n key: 1,\n item: processedItem.item,\n root: $props.root,\n hasSubmenu: $options.getItemProp(processedItem, 'items'),\n label: $options.getItemLabel(processedItem),\n props: $options.getMenuItemProps(processedItem, index)\n }, null, 8, [\"item\", \"root\", \"hasSubmenu\", \"label\", \"props\"]))], 16, _hoisted_2), $options.isItemVisible(processedItem) && $options.isItemGroup(processedItem) ? (openBlock(), createBlock(_component_MenubarSub, {\n key: 0,\n id: $options.getItemId(processedItem) + '_list',\n menuId: $props.menuId,\n role: \"menu\",\n style: normalizeStyle(_ctx.sx('submenu', true, {\n processedItem: processedItem\n })),\n focusedItemId: $props.focusedItemId,\n items: processedItem.items,\n mobileActive: $props.mobileActive,\n activeItemPath: $props.activeItemPath,\n templates: $props.templates,\n level: $props.level + 1,\n \"aria-labelledby\": $options.getItemLabelId(processedItem),\n pt: _ctx.pt,\n unstyled: _ctx.unstyled,\n onItemClick: _cache[0] || (_cache[0] = function ($event) {\n return _ctx.$emit('item-click', $event);\n }),\n onItemMouseenter: _cache[1] || (_cache[1] = function ($event) {\n return _ctx.$emit('item-mouseenter', $event);\n }),\n onItemMousemove: _cache[2] || (_cache[2] = function ($event) {\n return _ctx.$emit('item-mousemove', $event);\n })\n }, null, 8, [\"id\", \"menuId\", \"style\", \"focusedItemId\", \"items\", \"mobileActive\", \"activeItemPath\", \"templates\", \"level\", \"aria-labelledby\", \"pt\", \"unstyled\"])) : createCommentVNode(\"\", true)], 16, _hoisted_1$1)) : createCommentVNode(\"\", true), $options.isItemVisible(processedItem) && $options.getItemProp(processedItem, 'separator') ? (openBlock(), createElementBlock(\"li\", mergeProps({\n key: 1,\n id: $options.getItemId(processedItem),\n \"class\": [_ctx.cx('separator'), $options.getItemProp(processedItem, 'class')],\n style: $options.getItemProp(processedItem, 'style'),\n role: \"separator\",\n ref_for: true\n }, _ctx.ptm('separator')), null, 16, _hoisted_5)) : createCommentVNode(\"\", true)], 64);\n }), 128))], 16);\n}\n\nscript$1.render = render$1;\n\nvar script = {\n name: 'Menubar',\n \"extends\": script$2,\n inheritAttrs: false,\n emits: ['focus', 'blur'],\n matchMediaListener: null,\n data: function data() {\n return {\n id: this.$attrs.id,\n mobileActive: false,\n focused: false,\n focusedItemInfo: {\n index: -1,\n level: 0,\n parentKey: ''\n },\n activeItemPath: [],\n dirty: false,\n query: null,\n queryMatches: false\n };\n },\n watch: {\n '$attrs.id': function $attrsId(newValue) {\n this.id = newValue || UniqueComponentId();\n },\n activeItemPath: function activeItemPath(newPath) {\n if (isNotEmpty(newPath)) {\n this.bindOutsideClickListener();\n this.bindResizeListener();\n } else {\n this.unbindOutsideClickListener();\n this.unbindResizeListener();\n }\n }\n },\n outsideClickListener: null,\n container: null,\n menubar: null,\n mounted: function mounted() {\n this.id = this.id || UniqueComponentId();\n this.bindMatchMediaListener();\n },\n beforeUnmount: function beforeUnmount() {\n this.mobileActive = false;\n this.unbindOutsideClickListener();\n this.unbindResizeListener();\n this.unbindMatchMediaListener();\n if (this.container) {\n ZIndex.clear(this.container);\n }\n this.container = null;\n },\n methods: {\n getItemProp: function getItemProp(item, name) {\n return item ? resolve(item[name]) : undefined;\n },\n getItemLabel: function getItemLabel(item) {\n return this.getItemProp(item, 'label');\n },\n isItemDisabled: function isItemDisabled(item) {\n return this.getItemProp(item, 'disabled');\n },\n isItemVisible: function isItemVisible(item) {\n return this.getItemProp(item, 'visible') !== false;\n },\n isItemGroup: function isItemGroup(item) {\n return isNotEmpty(this.getItemProp(item, 'items'));\n },\n isItemSeparator: function isItemSeparator(item) {\n return this.getItemProp(item, 'separator');\n },\n getProccessedItemLabel: function getProccessedItemLabel(processedItem) {\n return processedItem ? this.getItemLabel(processedItem.item) : undefined;\n },\n isProccessedItemGroup: function isProccessedItemGroup(processedItem) {\n return processedItem && isNotEmpty(processedItem.items);\n },\n toggle: function toggle(event) {\n var _this = this;\n if (this.mobileActive) {\n this.mobileActive = false;\n ZIndex.clear(this.menubar);\n this.hide();\n } else {\n this.mobileActive = true;\n ZIndex.set('menu', this.menubar, this.$primevue.config.zIndex.menu);\n setTimeout(function () {\n _this.show();\n }, 1);\n }\n this.bindOutsideClickListener();\n event.preventDefault();\n },\n show: function show() {\n focus(this.menubar);\n },\n hide: function hide(event, isFocus) {\n var _this2 = this;\n if (this.mobileActive) {\n this.mobileActive = false;\n setTimeout(function () {\n focus(_this2.$refs.menubutton);\n }, 0);\n }\n this.activeItemPath = [];\n this.focusedItemInfo = {\n index: -1,\n level: 0,\n parentKey: ''\n };\n isFocus && focus(this.menubar);\n this.dirty = false;\n },\n onFocus: function onFocus(event) {\n this.focused = true;\n this.focusedItemInfo = this.focusedItemInfo.index !== -1 ? this.focusedItemInfo : {\n index: this.findFirstFocusedItemIndex(),\n level: 0,\n parentKey: ''\n };\n this.$emit('focus', event);\n },\n onBlur: function onBlur(event) {\n this.focused = false;\n this.focusedItemInfo = {\n index: -1,\n level: 0,\n parentKey: ''\n };\n this.searchValue = '';\n this.dirty = false;\n this.$emit('blur', event);\n },\n onKeyDown: function onKeyDown(event) {\n var metaKey = event.metaKey || event.ctrlKey;\n switch (event.code) {\n case 'ArrowDown':\n this.onArrowDownKey(event);\n break;\n case 'ArrowUp':\n this.onArrowUpKey(event);\n break;\n case 'ArrowLeft':\n this.onArrowLeftKey(event);\n break;\n case 'ArrowRight':\n this.onArrowRightKey(event);\n break;\n case 'Home':\n this.onHomeKey(event);\n break;\n case 'End':\n this.onEndKey(event);\n break;\n case 'Space':\n this.onSpaceKey(event);\n break;\n case 'Enter':\n case 'NumpadEnter':\n this.onEnterKey(event);\n break;\n case 'Escape':\n this.onEscapeKey(event);\n break;\n case 'Tab':\n this.onTabKey(event);\n break;\n case 'PageDown':\n case 'PageUp':\n case 'Backspace':\n case 'ShiftLeft':\n case 'ShiftRight':\n //NOOP\n break;\n default:\n if (!metaKey && isPrintableCharacter(event.key)) {\n this.searchItems(event, event.key);\n }\n break;\n }\n },\n onItemChange: function onItemChange(event) {\n var processedItem = event.processedItem,\n isFocus = event.isFocus;\n if (isEmpty(processedItem)) return;\n var index = processedItem.index,\n key = processedItem.key,\n level = processedItem.level,\n parentKey = processedItem.parentKey,\n items = processedItem.items;\n var grouped = isNotEmpty(items);\n var activeItemPath = this.activeItemPath.filter(function (p) {\n return p.parentKey !== parentKey && p.parentKey !== key;\n });\n grouped && activeItemPath.push(processedItem);\n this.focusedItemInfo = {\n index: index,\n level: level,\n parentKey: parentKey\n };\n this.activeItemPath = activeItemPath;\n grouped && (this.dirty = true);\n isFocus && focus(this.menubar);\n },\n onItemClick: function onItemClick(event) {\n var originalEvent = event.originalEvent,\n processedItem = event.processedItem;\n var grouped = this.isProccessedItemGroup(processedItem);\n var root = isEmpty(processedItem.parent);\n var selected = this.isSelected(processedItem);\n if (selected) {\n var index = processedItem.index,\n key = processedItem.key,\n level = processedItem.level,\n parentKey = processedItem.parentKey;\n this.activeItemPath = this.activeItemPath.filter(function (p) {\n return key !== p.key && key.startsWith(p.key);\n });\n this.focusedItemInfo = {\n index: index,\n level: level,\n parentKey: parentKey\n };\n this.dirty = !root;\n focus(this.menubar);\n } else {\n if (grouped) {\n this.onItemChange(event);\n } else {\n var rootProcessedItem = root ? processedItem : this.activeItemPath.find(function (p) {\n return p.parentKey === '';\n });\n this.hide(originalEvent);\n this.changeFocusedItemIndex(originalEvent, rootProcessedItem ? rootProcessedItem.index : -1);\n this.mobileActive = false;\n focus(this.menubar);\n }\n }\n },\n onItemMouseEnter: function onItemMouseEnter(event) {\n if (this.dirty) {\n this.onItemChange(event);\n }\n },\n onItemMouseMove: function onItemMouseMove(event) {\n if (this.focused) {\n this.changeFocusedItemIndex(event, event.processedItem.index);\n }\n },\n menuButtonClick: function menuButtonClick(event) {\n this.toggle(event);\n },\n menuButtonKeydown: function menuButtonKeydown(event) {\n (event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') && this.menuButtonClick(event);\n },\n onArrowDownKey: function onArrowDownKey(event) {\n var processedItem = this.visibleItems[this.focusedItemInfo.index];\n var root = processedItem ? isEmpty(processedItem.parent) : null;\n if (root) {\n var grouped = this.isProccessedItemGroup(processedItem);\n if (grouped) {\n this.onItemChange({\n originalEvent: event,\n processedItem: processedItem\n });\n this.focusedItemInfo = {\n index: -1,\n parentKey: processedItem.key\n };\n this.onArrowRightKey(event);\n }\n } else {\n var itemIndex = this.focusedItemInfo.index !== -1 ? this.findNextItemIndex(this.focusedItemInfo.index) : this.findFirstFocusedItemIndex();\n this.changeFocusedItemIndex(event, itemIndex);\n }\n event.preventDefault();\n },\n onArrowUpKey: function onArrowUpKey(event) {\n var _this3 = this;\n var processedItem = this.visibleItems[this.focusedItemInfo.index];\n var root = isEmpty(processedItem.parent);\n if (root) {\n var grouped = this.isProccessedItemGroup(processedItem);\n if (grouped) {\n this.onItemChange({\n originalEvent: event,\n processedItem: processedItem\n });\n this.focusedItemInfo = {\n index: -1,\n parentKey: processedItem.key\n };\n var itemIndex = this.findLastItemIndex();\n this.changeFocusedItemIndex(event, itemIndex);\n }\n } else {\n var parentItem = this.activeItemPath.find(function (p) {\n return p.key === processedItem.parentKey;\n });\n if (this.focusedItemInfo.index === 0) {\n this.focusedItemInfo = {\n index: -1,\n parentKey: parentItem ? parentItem.parentKey : ''\n };\n this.searchValue = '';\n this.onArrowLeftKey(event);\n this.activeItemPath = this.activeItemPath.filter(function (p) {\n return p.parentKey !== _this3.focusedItemInfo.parentKey;\n });\n } else {\n var _itemIndex = this.focusedItemInfo.index !== -1 ? this.findPrevItemIndex(this.focusedItemInfo.index) : this.findLastFocusedItemIndex();\n this.changeFocusedItemIndex(event, _itemIndex);\n }\n }\n event.preventDefault();\n },\n onArrowLeftKey: function onArrowLeftKey(event) {\n var _this4 = this;\n var processedItem = this.visibleItems[this.focusedItemInfo.index];\n var parentItem = processedItem ? this.activeItemPath.find(function (p) {\n return p.key === processedItem.parentKey;\n }) : null;\n if (parentItem) {\n this.onItemChange({\n originalEvent: event,\n processedItem: parentItem\n });\n this.activeItemPath = this.activeItemPath.filter(function (p) {\n return p.parentKey !== _this4.focusedItemInfo.parentKey;\n });\n event.preventDefault();\n } else {\n var itemIndex = this.focusedItemInfo.index !== -1 ? this.findPrevItemIndex(this.focusedItemInfo.index) : this.findLastFocusedItemIndex();\n this.changeFocusedItemIndex(event, itemIndex);\n event.preventDefault();\n }\n },\n onArrowRightKey: function onArrowRightKey(event) {\n var processedItem = this.visibleItems[this.focusedItemInfo.index];\n var parentItem = processedItem ? this.activeItemPath.find(function (p) {\n return p.key === processedItem.parentKey;\n }) : null;\n if (parentItem) {\n var grouped = this.isProccessedItemGroup(processedItem);\n if (grouped) {\n this.onItemChange({\n originalEvent: event,\n processedItem: processedItem\n });\n this.focusedItemInfo = {\n index: -1,\n parentKey: processedItem.key\n };\n this.onArrowDownKey(event);\n }\n } else {\n var itemIndex = this.focusedItemInfo.index !== -1 ? this.findNextItemIndex(this.focusedItemInfo.index) : this.findFirstFocusedItemIndex();\n this.changeFocusedItemIndex(event, itemIndex);\n event.preventDefault();\n }\n },\n onHomeKey: function onHomeKey(event) {\n this.changeFocusedItemIndex(event, this.findFirstItemIndex());\n event.preventDefault();\n },\n onEndKey: function onEndKey(event) {\n this.changeFocusedItemIndex(event, this.findLastItemIndex());\n event.preventDefault();\n },\n onEnterKey: function onEnterKey(event) {\n if (this.focusedItemInfo.index !== -1) {\n var element = findSingle(this.menubar, \"li[id=\\\"\".concat(\"\".concat(this.focusedItemId), \"\\\"]\"));\n var anchorElement = element && findSingle(element, 'a[data-pc-section=\"itemlink\"]');\n anchorElement ? anchorElement.click() : element && element.click();\n var processedItem = this.visibleItems[this.focusedItemInfo.index];\n var grouped = this.isProccessedItemGroup(processedItem);\n !grouped && (this.focusedItemInfo.index = this.findFirstFocusedItemIndex());\n }\n event.preventDefault();\n },\n onSpaceKey: function onSpaceKey(event) {\n this.onEnterKey(event);\n },\n onEscapeKey: function onEscapeKey(event) {\n if (this.focusedItemInfo.level !== 0) {\n var _focusedItemInfo = this.focusedItemInfo;\n this.hide(event, false);\n this.focusedItemInfo = {\n index: Number(_focusedItemInfo.parentKey.split('_')[0]),\n level: 0,\n parentKey: ''\n };\n }\n event.preventDefault();\n },\n onTabKey: function onTabKey(event) {\n if (this.focusedItemInfo.index !== -1) {\n var processedItem = this.visibleItems[this.focusedItemInfo.index];\n var grouped = this.isProccessedItemGroup(processedItem);\n !grouped && this.onItemChange({\n originalEvent: event,\n processedItem: processedItem\n });\n }\n this.hide();\n },\n bindOutsideClickListener: function bindOutsideClickListener() {\n var _this5 = this;\n if (!this.outsideClickListener) {\n this.outsideClickListener = function (event) {\n var isOutsideContainer = _this5.container && !_this5.container.contains(event.target);\n var isOutsideTarget = !(_this5.target && (_this5.target === event.target || _this5.target.contains(event.target)));\n if (isOutsideContainer && isOutsideTarget) {\n _this5.hide();\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 bindResizeListener: function bindResizeListener() {\n var _this6 = this;\n if (!this.resizeListener) {\n this.resizeListener = function (event) {\n if (!isTouchDevice()) {\n _this6.hide(event, true);\n }\n _this6.mobileActive = false;\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 bindMatchMediaListener: function bindMatchMediaListener() {\n var _this7 = this;\n if (!this.matchMediaListener) {\n var query = matchMedia(\"(max-width: \".concat(this.breakpoint, \")\"));\n this.query = query;\n this.queryMatches = query.matches;\n this.matchMediaListener = function () {\n _this7.queryMatches = query.matches;\n _this7.mobileActive = false;\n };\n this.query.addEventListener('change', this.matchMediaListener);\n }\n },\n unbindMatchMediaListener: function unbindMatchMediaListener() {\n if (this.matchMediaListener) {\n this.query.removeEventListener('change', this.matchMediaListener);\n this.matchMediaListener = null;\n }\n },\n isItemMatched: function isItemMatched(processedItem) {\n var _this$getProccessedIt;\n return this.isValidItem(processedItem) && ((_this$getProccessedIt = this.getProccessedItemLabel(processedItem)) === null || _this$getProccessedIt === void 0 ? void 0 : _this$getProccessedIt.toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase()));\n },\n isValidItem: function isValidItem(processedItem) {\n return !!processedItem && !this.isItemDisabled(processedItem.item) && !this.isItemSeparator(processedItem.item) && this.isItemVisible(processedItem.item);\n },\n isValidSelectedItem: function isValidSelectedItem(processedItem) {\n return this.isValidItem(processedItem) && this.isSelected(processedItem);\n },\n isSelected: function isSelected(processedItem) {\n return this.activeItemPath.some(function (p) {\n return p.key === processedItem.key;\n });\n },\n findFirstItemIndex: function findFirstItemIndex() {\n var _this8 = this;\n return this.visibleItems.findIndex(function (processedItem) {\n return _this8.isValidItem(processedItem);\n });\n },\n findLastItemIndex: function findLastItemIndex() {\n var _this9 = this;\n return findLastIndex(this.visibleItems, function (processedItem) {\n return _this9.isValidItem(processedItem);\n });\n },\n findNextItemIndex: function findNextItemIndex(index) {\n var _this10 = this;\n var matchedItemIndex = index < this.visibleItems.length - 1 ? this.visibleItems.slice(index + 1).findIndex(function (processedItem) {\n return _this10.isValidItem(processedItem);\n }) : -1;\n return matchedItemIndex > -1 ? matchedItemIndex + index + 1 : index;\n },\n findPrevItemIndex: function findPrevItemIndex(index) {\n var _this11 = this;\n var matchedItemIndex = index > 0 ? findLastIndex(this.visibleItems.slice(0, index), function (processedItem) {\n return _this11.isValidItem(processedItem);\n }) : -1;\n return matchedItemIndex > -1 ? matchedItemIndex : index;\n },\n findSelectedItemIndex: function findSelectedItemIndex() {\n var _this12 = this;\n return this.visibleItems.findIndex(function (processedItem) {\n return _this12.isValidSelectedItem(processedItem);\n });\n },\n findFirstFocusedItemIndex: function findFirstFocusedItemIndex() {\n var selectedIndex = this.findSelectedItemIndex();\n return selectedIndex < 0 ? this.findFirstItemIndex() : selectedIndex;\n },\n findLastFocusedItemIndex: function findLastFocusedItemIndex() {\n var selectedIndex = this.findSelectedItemIndex();\n return selectedIndex < 0 ? this.findLastItemIndex() : selectedIndex;\n },\n searchItems: function searchItems(event, _char) {\n var _this13 = this;\n this.searchValue = (this.searchValue || '') + _char;\n var itemIndex = -1;\n var matched = false;\n if (this.focusedItemInfo.index !== -1) {\n itemIndex = this.visibleItems.slice(this.focusedItemInfo.index).findIndex(function (processedItem) {\n return _this13.isItemMatched(processedItem);\n });\n itemIndex = itemIndex === -1 ? this.visibleItems.slice(0, this.focusedItemInfo.index).findIndex(function (processedItem) {\n return _this13.isItemMatched(processedItem);\n }) : itemIndex + this.focusedItemInfo.index;\n } else {\n itemIndex = this.visibleItems.findIndex(function (processedItem) {\n return _this13.isItemMatched(processedItem);\n });\n }\n if (itemIndex !== -1) {\n matched = true;\n }\n if (itemIndex === -1 && this.focusedItemInfo.index === -1) {\n itemIndex = this.findFirstFocusedItemIndex();\n }\n if (itemIndex !== -1) {\n this.changeFocusedItemIndex(event, itemIndex);\n }\n if (this.searchTimeout) {\n clearTimeout(this.searchTimeout);\n }\n this.searchTimeout = setTimeout(function () {\n _this13.searchValue = '';\n _this13.searchTimeout = null;\n }, 500);\n return matched;\n },\n changeFocusedItemIndex: function changeFocusedItemIndex(event, index) {\n if (this.focusedItemInfo.index !== index) {\n this.focusedItemInfo.index = index;\n this.scrollInView();\n }\n },\n scrollInView: function scrollInView() {\n var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;\n var id = index !== -1 ? \"\".concat(this.id, \"_\").concat(index) : this.focusedItemId;\n var element = findSingle(this.menubar, \"li[id=\\\"\".concat(id, \"\\\"]\"));\n if (element) {\n element.scrollIntoView && element.scrollIntoView({\n block: 'nearest',\n inline: 'start'\n });\n }\n },\n createProcessedItems: function createProcessedItems(items) {\n var _this14 = this;\n var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var parentKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';\n var processedItems = [];\n items && items.forEach(function (item, index) {\n var key = (parentKey !== '' ? parentKey + '_' : '') + index;\n var newItem = {\n item: item,\n index: index,\n level: level,\n key: key,\n parent: parent,\n parentKey: parentKey\n };\n newItem['items'] = _this14.createProcessedItems(item.items, level + 1, newItem, key);\n processedItems.push(newItem);\n });\n return processedItems;\n },\n containerRef: function containerRef(el) {\n this.container = el;\n },\n menubarRef: function menubarRef(el) {\n this.menubar = el ? el.$el : undefined;\n }\n },\n computed: {\n processedItems: function processedItems() {\n return this.createProcessedItems(this.model || []);\n },\n visibleItems: function visibleItems() {\n var _this15 = this;\n var processedItem = this.activeItemPath.find(function (p) {\n return p.key === _this15.focusedItemInfo.parentKey;\n });\n return processedItem ? processedItem.items : this.processedItems;\n },\n focusedItemId: function focusedItemId() {\n return this.focusedItemInfo.index !== -1 ? \"\".concat(this.id).concat(isNotEmpty(this.focusedItemInfo.parentKey) ? '_' + this.focusedItemInfo.parentKey : '', \"_\").concat(this.focusedItemInfo.index) : null;\n }\n },\n components: {\n MenubarSub: script$1,\n BarsIcon: BarsIcon\n }\n};\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar _hoisted_1 = [\"aria-haspopup\", \"aria-expanded\", \"aria-controls\", \"aria-label\"];\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_BarsIcon = resolveComponent(\"BarsIcon\");\n var _component_MenubarSub = resolveComponent(\"MenubarSub\");\n return openBlock(), createElementBlock(\"div\", mergeProps({\n ref: $options.containerRef,\n \"class\": _ctx.cx('root')\n }, _ctx.ptmi('root')), [_ctx.$slots.start ? (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 0,\n \"class\": _ctx.cx('start')\n }, _ctx.ptm('start')), [renderSlot(_ctx.$slots, \"start\")], 16)) : createCommentVNode(\"\", true), renderSlot(_ctx.$slots, _ctx.$slots.button ? 'button' : 'menubutton', {\n id: $data.id,\n \"class\": normalizeClass(_ctx.cx('button')),\n toggleCallback: function toggleCallback(event) {\n return $options.menuButtonClick(event);\n }\n }, function () {\n var _ctx$$primevue$config;\n return [_ctx.model && _ctx.model.length > 0 ? (openBlock(), createElementBlock(\"a\", mergeProps({\n key: 0,\n ref: \"menubutton\",\n role: \"button\",\n tabindex: \"0\",\n \"class\": _ctx.cx('button'),\n \"aria-haspopup\": _ctx.model.length && _ctx.model.length > 0 ? true : false,\n \"aria-expanded\": $data.mobileActive,\n \"aria-controls\": $data.id,\n \"aria-label\": (_ctx$$primevue$config = _ctx.$primevue.config.locale.aria) === null || _ctx$$primevue$config === void 0 ? void 0 : _ctx$$primevue$config.navigation,\n onClick: _cache[0] || (_cache[0] = function ($event) {\n return $options.menuButtonClick($event);\n }),\n onKeydown: _cache[1] || (_cache[1] = function ($event) {\n return $options.menuButtonKeydown($event);\n })\n }, _objectSpread(_objectSpread({}, _ctx.buttonProps), _ctx.ptm('button'))), [renderSlot(_ctx.$slots, _ctx.$slots.buttonicon ? 'buttonicon' : 'menubuttonicon', {}, function () {\n return [createVNode(_component_BarsIcon, normalizeProps(guardReactiveProps(_ctx.ptm('buttonicon'))), null, 16)];\n })], 16, _hoisted_1)) : createCommentVNode(\"\", true)];\n }), createVNode(_component_MenubarSub, {\n ref: $options.menubarRef,\n id: $data.id + '_list',\n role: \"menubar\",\n items: $options.processedItems,\n templates: _ctx.$slots,\n root: true,\n mobileActive: $data.mobileActive,\n tabindex: \"0\",\n \"aria-activedescendant\": $data.focused ? $options.focusedItemId : undefined,\n menuId: $data.id,\n focusedItemId: $data.focused ? $options.focusedItemId : undefined,\n activeItemPath: $data.activeItemPath,\n level: 0,\n \"aria-labelledby\": _ctx.ariaLabelledby,\n \"aria-label\": _ctx.ariaLabel,\n pt: _ctx.pt,\n unstyled: _ctx.unstyled,\n onFocus: $options.onFocus,\n onBlur: $options.onBlur,\n onKeydown: $options.onKeyDown,\n onItemClick: $options.onItemClick,\n onItemMouseenter: $options.onItemMouseEnter,\n onItemMousemove: $options.onItemMouseMove\n }, null, 8, [\"id\", \"items\", \"templates\", \"mobileActive\", \"aria-activedescendant\", \"menuId\", \"focusedItemId\", \"activeItemPath\", \"aria-labelledby\", \"aria-label\", \"pt\", \"unstyled\", \"onFocus\", \"onBlur\", \"onKeydown\", \"onItemClick\", \"onItemMouseenter\", \"onItemMousemove\"]), _ctx.$slots.end ? (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 1,\n \"class\": _ctx.cx('end')\n }, _ctx.ptm('end')), [renderSlot(_ctx.$slots, \"end\")], 16)) : createCommentVNode(\"\", true)], 16);\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","<template>\n <Menubar\n :model=\"items\"\n class=\"top-menubar border-none p-0 bg-transparent\"\n :pt=\"{\n rootList: 'gap-0 flex-nowrap w-auto',\n submenu: `dropdown-direction-${dropdownDirection}`,\n item: 'relative'\n }\"\n >\n <template #item=\"{ item, props }\">\n <a class=\"p-menubar-item-link\" v-bind=\"props.action\">\n <span v-if=\"item.icon\" class=\"p-menubar-item-icon\" :class=\"item.icon\" />\n <span class=\"p-menubar-item-label\">{{ item.label }}</span>\n <span\n v-if=\"item?.comfyCommand?.keybinding\"\n class=\"ml-auto border border-surface rounded text-muted text-xs p-1 keybinding-tag\"\n >\n {{ item.comfyCommand.keybinding.combo.toString() }}\n </span>\n </a>\n </template>\n </Menubar>\n</template>\n\n<script setup lang=\"ts\">\nimport { useMenuItemStore } from '@/stores/menuItemStore'\nimport { useSettingStore } from '@/stores/settingStore'\nimport Menubar from 'primevue/menubar'\nimport { computed } from 'vue'\n\nconst settingStore = useSettingStore()\nconst dropdownDirection = computed(() =>\n settingStore.get('Comfy.UseNewMenu') === 'Top' ? 'down' : 'up'\n)\n\nconst menuItemsStore = useMenuItemStore()\nconst items = menuItemsStore.menuItems\n</script>\n\n<style scoped>\n.top-menubar :deep(.p-menubar-item-link) svg {\n display: none;\n}\n\n:deep(.p-menubar-submenu.dropdown-direction-up) {\n @apply top-auto bottom-full flex-col-reverse;\n}\n\n.keybinding-tag {\n background: var(--p-content-hover-background);\n border-color: var(--p-content-border-color);\n border-style: solid;\n}\n</style>\n","import BaseStyle from '@primevue/core/base/style';\n\nvar theme = function theme(_ref) {\n var dt = _ref.dt;\n return \"\\n.p-panel {\\n border: 1px solid \".concat(dt('panel.border.color'), \";\\n border-radius: \").concat(dt('panel.border.radius'), \";\\n background: \").concat(dt('panel.background'), \";\\n color: \").concat(dt('panel.color'), \";\\n}\\n\\n.p-panel-header {\\n display: flex;\\n justify-content: space-between;\\n align-items: center;\\n padding: \").concat(dt('panel.header.padding'), \";\\n background: \").concat(dt('panel.header.background'), \";\\n color: \").concat(dt('panel.header.color'), \";\\n border-style: solid;\\n border-width: \").concat(dt('panel.header.border.width'), \";\\n border-color: \").concat(dt('panel.header.border.color'), \";\\n border-radius: \").concat(dt('panel.header.border.radius'), \";\\n}\\n\\n.p-panel-toggleable .p-panel-header {\\n padding: \").concat(dt('panel.toggleable.header.padding'), \";\\n}\\n\\n.p-panel-title {\\n line-height: 1;\\n font-weight: \").concat(dt('panel.title.font.weight'), \";\\n}\\n\\n.p-panel-content {\\n padding: \").concat(dt('panel.content.padding'), \";\\n}\\n\\n.p-panel-footer {\\n padding: \").concat(dt('panel.footer.padding'), \";\\n}\\n\");\n};\nvar classes = {\n root: function root(_ref2) {\n var props = _ref2.props;\n return ['p-panel p-component', {\n 'p-panel-toggleable': props.toggleable\n }];\n },\n header: 'p-panel-header',\n title: 'p-panel-title',\n headerActions: 'p-panel-header-actions',\n pcToggleButton: 'p-panel-toggle-button',\n contentContainer: 'p-panel-content-container',\n content: 'p-panel-content',\n footer: 'p-panel-footer'\n};\nvar PanelStyle = BaseStyle.extend({\n name: 'panel',\n theme: theme,\n classes: classes\n});\n\nexport { PanelStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import { UniqueComponentId } from '@primevue/core/utils';\nimport MinusIcon from '@primevue/icons/minus';\nimport PlusIcon from '@primevue/icons/plus';\nimport Button from 'primevue/button';\nimport Ripple from 'primevue/ripple';\nimport BaseComponent from '@primevue/core/basecomponent';\nimport PanelStyle from 'primevue/panel/style';\nimport { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, renderSlot, normalizeClass, toDisplayString, createCommentVNode, createBlock, withCtx, resolveDynamicComponent, createVNode, Transition, withDirectives, vShow } from 'vue';\n\nvar script$1 = {\n name: 'BasePanel',\n \"extends\": BaseComponent,\n props: {\n header: String,\n toggleable: Boolean,\n collapsed: Boolean,\n toggleButtonProps: {\n type: Object,\n \"default\": function _default() {\n return {\n severity: 'secondary',\n text: true,\n rounded: true\n };\n }\n }\n },\n style: PanelStyle,\n provide: function provide() {\n return {\n $pcPanel: this,\n $parentInstance: this\n };\n }\n};\n\nvar script = {\n name: 'Panel',\n \"extends\": script$1,\n inheritAttrs: false,\n emits: ['update:collapsed', 'toggle'],\n data: function data() {\n return {\n id: this.$attrs.id,\n d_collapsed: this.collapsed\n };\n },\n watch: {\n '$attrs.id': function $attrsId(newValue) {\n this.id = newValue || UniqueComponentId();\n },\n collapsed: function collapsed(newValue) {\n this.d_collapsed = newValue;\n }\n },\n mounted: function mounted() {\n this.id = this.id || UniqueComponentId();\n },\n methods: {\n toggle: function toggle(event) {\n this.d_collapsed = !this.d_collapsed;\n this.$emit('update:collapsed', this.d_collapsed);\n this.$emit('toggle', {\n originalEvent: event,\n value: this.d_collapsed\n });\n },\n onKeyDown: function onKeyDown(event) {\n if (event.code === 'Enter' || event.code === 'NumpadEnter' || event.code === 'Space') {\n this.toggle(event);\n event.preventDefault();\n }\n }\n },\n computed: {\n buttonAriaLabel: function buttonAriaLabel() {\n return this.toggleButtonProps && this.toggleButtonProps.ariaLabel ? this.toggleButtonProps.ariaLabel : this.header;\n }\n },\n components: {\n PlusIcon: PlusIcon,\n MinusIcon: MinusIcon,\n Button: Button\n },\n directives: {\n ripple: Ripple\n }\n};\n\nvar _hoisted_1 = [\"id\"];\nvar _hoisted_2 = [\"id\", \"aria-labelledby\"];\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_Button = resolveComponent(\"Button\");\n return openBlock(), createElementBlock(\"div\", mergeProps({\n \"class\": _ctx.cx('root')\n }, _ctx.ptmi('root')), [createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('header')\n }, _ctx.ptm('header')), [renderSlot(_ctx.$slots, \"header\", {\n id: $data.id + '_header',\n \"class\": normalizeClass(_ctx.cx('title'))\n }, function () {\n return [_ctx.header ? (openBlock(), createElementBlock(\"span\", mergeProps({\n key: 0,\n id: $data.id + '_header',\n \"class\": _ctx.cx('title')\n }, _ctx.ptm('title')), toDisplayString(_ctx.header), 17, _hoisted_1)) : createCommentVNode(\"\", true)];\n }), createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('headerActions')\n }, _ctx.ptm('headerActions')), [renderSlot(_ctx.$slots, \"icons\"), _ctx.toggleable ? (openBlock(), createBlock(_component_Button, mergeProps({\n key: 0,\n id: $data.id + '_header',\n \"class\": _ctx.cx('pcToggleButton'),\n \"aria-label\": $options.buttonAriaLabel,\n \"aria-controls\": $data.id + '_content',\n \"aria-expanded\": !$data.d_collapsed,\n unstyled: _ctx.unstyled,\n onClick: $options.toggle,\n onKeydown: $options.onKeyDown\n }, _ctx.toggleButtonProps, {\n pt: _ctx.ptm('pcToggleButton')\n }), {\n icon: withCtx(function (slotProps) {\n return [renderSlot(_ctx.$slots, _ctx.$slots.toggleicon ? 'toggleicon' : 'togglericon', {\n collapsed: $data.d_collapsed\n }, function () {\n return [(openBlock(), createBlock(resolveDynamicComponent($data.d_collapsed ? 'PlusIcon' : 'MinusIcon'), mergeProps({\n \"class\": slotProps[\"class\"]\n }, _ctx.ptm('pcToggleButton')['icon']), null, 16, [\"class\"]))];\n })];\n }),\n _: 3\n }, 16, [\"id\", \"class\", \"aria-label\", \"aria-controls\", \"aria-expanded\", \"unstyled\", \"onClick\", \"onKeydown\", \"pt\"])) : createCommentVNode(\"\", true)], 16)], 16), createVNode(Transition, mergeProps({\n name: \"p-toggleable-content\"\n }, _ctx.ptm('transition')), {\n \"default\": withCtx(function () {\n return [withDirectives(createElementVNode(\"div\", mergeProps({\n id: $data.id + '_content',\n \"class\": _ctx.cx('contentContainer'),\n role: \"region\",\n \"aria-labelledby\": $data.id + '_header'\n }, _ctx.ptm('contentContainer')), [createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('content')\n }, _ctx.ptm('content')), [renderSlot(_ctx.$slots, \"default\")], 16), _ctx.$slots.footer ? (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 0,\n \"class\": _ctx.cx('footer')\n }, _ctx.ptm('footer')), [renderSlot(_ctx.$slots, \"footer\")], 16)) : createCommentVNode(\"\", true)], 16, _hoisted_2), [[vShow, !$data.d_collapsed]])];\n }),\n _: 3\n }, 16)], 16);\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","import BaseStyle from '@primevue/core/base/style';\n\nvar theme = function theme(_ref) {\n var dt = _ref.dt;\n return \"\\n.p-tieredmenu {\\n background: \".concat(dt('tieredmenu.background'), \";\\n color: \").concat(dt('tieredmenu.color'), \";\\n border: 1px solid \").concat(dt('tieredmenu.border.color'), \";\\n border-radius: \").concat(dt('tieredmenu.border.radius'), \";\\n min-width: 12.5rem;\\n}\\n\\n.p-tieredmenu-root-list,\\n.p-tieredmenu-submenu {\\n margin: 0;\\n padding: \").concat(dt('tieredmenu.list.padding'), \";\\n list-style: none;\\n outline: 0 none;\\n display: flex;\\n flex-direction: column;\\n gap: \").concat(dt('tieredmenu.list.gap'), \";\\n}\\n\\n.p-tieredmenu-submenu {\\n position: absolute;\\n min-width: 100%;\\n z-index: 1;\\n background: \").concat(dt('tieredmenu.background'), \";\\n color: \").concat(dt('tieredmenu.color'), \";\\n border: 1px solid \").concat(dt('tieredmenu.border.color'), \";\\n border-radius: \").concat(dt('tieredmenu.border.radius'), \";\\n box-shadow: \").concat(dt('tieredmenu.shadow'), \";\\n}\\n\\n.p-tieredmenu-item {\\n position: relative;\\n}\\n\\n.p-tieredmenu-item-content {\\n transition: background \").concat(dt('tieredmenu.transition.duration'), \", color \").concat(dt('tieredmenu.transition.duration'), \";\\n border-radius: \").concat(dt('tieredmenu.item.border.radius'), \";\\n color: \").concat(dt('tieredmenu.item.color'), \";\\n}\\n\\n.p-tieredmenu-item-link {\\n cursor: pointer;\\n display: flex;\\n align-items: center;\\n text-decoration: none;\\n overflow: hidden;\\n position: relative;\\n color: inherit;\\n padding: \").concat(dt('tieredmenu.item.padding'), \";\\n gap: \").concat(dt('tieredmenu.item.gap'), \";\\n user-select: none;\\n outline: 0 none;\\n}\\n\\n.p-tieredmenu-item-label {\\n line-height: 1;\\n}\\n\\n.p-tieredmenu-item-icon {\\n color: \").concat(dt('tieredmenu.item.icon.color'), \";\\n}\\n\\n.p-tieredmenu-submenu-icon {\\n color: \").concat(dt('tieredmenu.submenu.icon.color'), \";\\n margin-left: auto;\\n font-size: \").concat(dt('tieredmenu.submenu.icon.size'), \";\\n width: \").concat(dt('tieredmenu.submenu.icon.size'), \";\\n height: \").concat(dt('tieredmenu.submenu.icon.size'), \";\\n}\\n\\n.p-tieredmenu-item.p-focus > .p-tieredmenu-item-content {\\n color: \").concat(dt('tieredmenu.item.focus.color'), \";\\n background: \").concat(dt('tieredmenu.item.focus.background'), \";\\n}\\n\\n.p-tieredmenu-item.p-focus > .p-tieredmenu-item-content .p-tieredmenu-item-icon {\\n color: \").concat(dt('tieredmenu.item.icon.focus.color'), \";\\n}\\n\\n.p-tieredmenu-item.p-focus > .p-tieredmenu-item-content .p-tieredmenu-submenu-icon {\\n color: \").concat(dt('tieredmenu.submenu.icon.focus.color'), \";\\n}\\n\\n.p-tieredmenu-item:not(.p-disabled) > .p-tieredmenu-item-content:hover {\\n color: \").concat(dt('tieredmenu.item.focus.color'), \";\\n background: \").concat(dt('tieredmenu.item.focus.background'), \";\\n}\\n\\n.p-tieredmenu-item:not(.p-disabled) > .p-tieredmenu-item-content:hover .p-tieredmenu-item-icon {\\n color: \").concat(dt('tieredmenu.item.icon.focus.color'), \";\\n}\\n\\n.p-tieredmenu-item:not(.p-disabled) > .p-tieredmenu-item-content:hover .p-tieredmenu-submenu-icon {\\n color: \").concat(dt('tieredmenu.submenu.icon.focus.color'), \";\\n}\\n\\n.p-tieredmenu-item-active > .p-tieredmenu-item-content {\\n color: \").concat(dt('tieredmenu.item.active.color'), \";\\n background: \").concat(dt('tieredmenu.item.active.background'), \";\\n}\\n\\n.p-tieredmenu-item-active > .p-tieredmenu-item-content .p-tieredmenu-item-icon {\\n color: \").concat(dt('tieredmenu.item.icon.active.color'), \";\\n}\\n\\n.p-tieredmenu-item-active > .p-tieredmenu-item-content .p-tieredmenu-submenu-icon {\\n color: \").concat(dt('tieredmenu.submenu.icon.active.color'), \";\\n}\\n\\n.p-tieredmenu-separator {\\n border-top: 1px solid \").concat(dt('tieredmenu.separator.border.color'), \";\\n}\\n\\n.p-tieredmenu-overlay {\\n box-shadow: \").concat(dt('tieredmenu.shadow'), \";\\n}\\n\\n.p-tieredmenu-enter-from,\\n.p-tieredmenu-leave-active {\\n opacity: 0;\\n}\\n\\n.p-tieredmenu-enter-active {\\n transition: opacity 250ms;\\n}\\n\");\n};\nvar inlineStyles = {\n submenu: function submenu(_ref2) {\n var instance = _ref2.instance,\n processedItem = _ref2.processedItem;\n return {\n display: instance.isItemActive(processedItem) ? 'flex' : 'none'\n };\n }\n};\nvar classes = {\n root: function root(_ref3) {\n _ref3.instance;\n var props = _ref3.props;\n return ['p-tieredmenu p-component', {\n 'p-tieredmenu-overlay': props.popup\n }];\n },\n start: 'p-tieredmenu-start',\n rootList: 'p-tieredmenu-root-list',\n item: function item(_ref4) {\n var instance = _ref4.instance,\n processedItem = _ref4.processedItem;\n return ['p-tieredmenu-item', {\n 'p-tieredmenu-item-active': instance.isItemActive(processedItem),\n 'p-focus': instance.isItemFocused(processedItem),\n 'p-disabled': instance.isItemDisabled(processedItem)\n }];\n },\n itemContent: 'p-tieredmenu-item-content',\n itemLink: 'p-tieredmenu-item-link',\n itemIcon: 'p-tieredmenu-item-icon',\n itemLabel: 'p-tieredmenu-item-label',\n submenuIcon: 'p-tieredmenu-submenu-icon',\n submenu: 'p-tieredmenu-submenu',\n separator: 'p-tieredmenu-separator',\n end: 'p-tieredmenu-end'\n};\nvar TieredMenuStyle = BaseStyle.extend({\n name: 'tieredmenu',\n theme: theme,\n classes: classes,\n inlineStyles: inlineStyles\n});\n\nexport { TieredMenuStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import { UniqueComponentId, ConnectedOverlayScrollHandler } from '@primevue/core/utils';\nimport { nestedPosition, focus, findSingle, addStyle, absolutePosition, getOuterWidth, isTouchDevice } from '@primeuix/utils/dom';\nimport { resolve, isNotEmpty, isPrintableCharacter, isEmpty, findLastIndex } from '@primeuix/utils/object';\nimport { ZIndex } from '@primeuix/utils/zindex';\nimport OverlayEventBus from 'primevue/overlayeventbus';\nimport Portal from 'primevue/portal';\nimport BaseComponent from '@primevue/core/basecomponent';\nimport TieredMenuStyle from 'primevue/tieredmenu/style';\nimport AngleRightIcon from '@primevue/icons/angleright';\nimport Ripple from 'primevue/ripple';\nimport { mergeProps, resolveComponent, resolveDirective, openBlock, createBlock, Transition, withCtx, createElementBlock, Fragment, renderList, createElementVNode, withDirectives, resolveDynamicComponent, normalizeClass, createCommentVNode, toDisplayString, normalizeStyle, createVNode, renderSlot } from 'vue';\n\nvar script$2 = {\n name: 'BaseTieredMenu',\n \"extends\": BaseComponent,\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, Object],\n \"default\": 'body'\n },\n autoZIndex: {\n type: Boolean,\n \"default\": true\n },\n baseZIndex: {\n type: Number,\n \"default\": 0\n },\n disabled: {\n type: Boolean,\n \"default\": false\n },\n tabindex: {\n type: Number,\n \"default\": 0\n },\n ariaLabelledby: {\n type: String,\n \"default\": null\n },\n ariaLabel: {\n type: String,\n \"default\": null\n }\n },\n style: TieredMenuStyle,\n provide: function provide() {\n return {\n $pcTieredMenu: this,\n $parentInstance: this\n };\n }\n};\n\nvar script$1 = {\n name: 'TieredMenuSub',\n hostName: 'TieredMenu',\n \"extends\": BaseComponent,\n emits: ['item-click', 'item-mouseenter', 'item-mousemove'],\n container: null,\n props: {\n menuId: {\n type: String,\n \"default\": null\n },\n focusedItemId: {\n type: String,\n \"default\": null\n },\n items: {\n type: Array,\n \"default\": null\n },\n visible: {\n type: Boolean,\n \"default\": false\n },\n level: {\n type: Number,\n \"default\": 0\n },\n templates: {\n type: Object,\n \"default\": null\n },\n activeItemPath: {\n type: Object,\n \"default\": null\n },\n tabindex: {\n type: Number,\n \"default\": 0\n }\n },\n methods: {\n getItemId: function getItemId(processedItem) {\n return \"\".concat(this.menuId, \"_\").concat(processedItem.key);\n },\n getItemKey: function getItemKey(processedItem) {\n return this.getItemId(processedItem);\n },\n getItemProp: function getItemProp(processedItem, name, params) {\n return processedItem && processedItem.item ? resolve(processedItem.item[name], params) : undefined;\n },\n getItemLabel: function getItemLabel(processedItem) {\n return this.getItemProp(processedItem, 'label');\n },\n getItemLabelId: function getItemLabelId(processedItem) {\n return \"\".concat(this.menuId, \"_\").concat(processedItem.key, \"_label\");\n },\n getPTOptions: function getPTOptions(processedItem, index, key) {\n return this.ptm(key, {\n context: {\n item: processedItem.item,\n index: index,\n active: this.isItemActive(processedItem),\n focused: this.isItemFocused(processedItem),\n disabled: this.isItemDisabled(processedItem)\n }\n });\n },\n isItemActive: function isItemActive(processedItem) {\n return this.activeItemPath.some(function (path) {\n return path.key === processedItem.key;\n });\n },\n isItemVisible: function isItemVisible(processedItem) {\n return this.getItemProp(processedItem, 'visible') !== false;\n },\n isItemDisabled: function isItemDisabled(processedItem) {\n return this.getItemProp(processedItem, 'disabled');\n },\n isItemFocused: function isItemFocused(processedItem) {\n return this.focusedItemId === this.getItemId(processedItem);\n },\n isItemGroup: function isItemGroup(processedItem) {\n return isNotEmpty(processedItem.items);\n },\n onEnter: function onEnter() {\n nestedPosition(this.container, this.level);\n },\n onItemClick: function onItemClick(event, processedItem) {\n this.getItemProp(processedItem, 'command', {\n originalEvent: event,\n item: processedItem.item\n });\n this.$emit('item-click', {\n originalEvent: event,\n processedItem: processedItem,\n isFocus: true\n });\n },\n onItemMouseEnter: function onItemMouseEnter(event, processedItem) {\n this.$emit('item-mouseenter', {\n originalEvent: event,\n processedItem: processedItem\n });\n },\n onItemMouseMove: function onItemMouseMove(event, processedItem) {\n this.$emit('item-mousemove', {\n originalEvent: event,\n processedItem: processedItem\n });\n },\n getAriaSetSize: function getAriaSetSize() {\n var _this = this;\n return this.items.filter(function (processedItem) {\n return _this.isItemVisible(processedItem) && !_this.getItemProp(processedItem, 'separator');\n }).length;\n },\n getAriaPosInset: function getAriaPosInset(index) {\n var _this2 = this;\n return index - this.items.slice(0, index).filter(function (processedItem) {\n return _this2.isItemVisible(processedItem) && _this2.getItemProp(processedItem, 'separator');\n }).length + 1;\n },\n getMenuItemProps: function getMenuItemProps(processedItem, index) {\n return {\n action: mergeProps({\n \"class\": this.cx('itemLink'),\n tabindex: -1,\n 'aria-hidden': true\n }, this.getPTOptions(processedItem, index, 'itemLink')),\n icon: mergeProps({\n \"class\": [this.cx('itemIcon'), this.getItemProp(processedItem, 'icon')]\n }, this.getPTOptions(processedItem, index, 'itemIcon')),\n label: mergeProps({\n \"class\": this.cx('itemLabel')\n }, this.getPTOptions(processedItem, index, 'itemLabel')),\n submenuicon: mergeProps({\n \"class\": this.cx('submenuIcon')\n }, this.getPTOptions(processedItem, index, 'submenuIcon'))\n };\n },\n containerRef: function containerRef(el) {\n this.container = el;\n }\n },\n components: {\n AngleRightIcon: AngleRightIcon\n },\n directives: {\n ripple: Ripple\n }\n};\n\nvar _hoisted_1$1 = [\"tabindex\"];\nvar _hoisted_2 = [\"id\", \"aria-label\", \"aria-disabled\", \"aria-expanded\", \"aria-haspopup\", \"aria-level\", \"aria-setsize\", \"aria-posinset\", \"data-p-active\", \"data-p-focused\", \"data-p-disabled\"];\nvar _hoisted_3 = [\"onClick\", \"onMouseenter\", \"onMousemove\"];\nvar _hoisted_4 = [\"href\", \"target\"];\nvar _hoisted_5 = [\"id\"];\nvar _hoisted_6 = [\"id\"];\nfunction render$1(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_AngleRightIcon = resolveComponent(\"AngleRightIcon\");\n var _component_TieredMenuSub = resolveComponent(\"TieredMenuSub\", true);\n var _directive_ripple = resolveDirective(\"ripple\");\n return openBlock(), createBlock(Transition, mergeProps({\n name: \"p-tieredmenu\",\n onEnter: $options.onEnter\n }, _ctx.ptm('menu.transition')), {\n \"default\": withCtx(function () {\n return [($props.level === 0 ? true : $props.visible) ? (openBlock(), createElementBlock(\"ul\", mergeProps({\n key: 0,\n ref: $options.containerRef,\n \"class\": $props.level === 0 ? _ctx.cx('rootList') : _ctx.cx('submenu'),\n tabindex: $props.tabindex\n }, $props.level === 0 ? _ctx.ptm('rootList') : _ctx.ptm('submenu')), [(openBlock(true), createElementBlock(Fragment, null, renderList($props.items, function (processedItem, index) {\n return openBlock(), createElementBlock(Fragment, {\n key: $options.getItemKey(processedItem)\n }, [$options.isItemVisible(processedItem) && !$options.getItemProp(processedItem, 'separator') ? (openBlock(), createElementBlock(\"li\", mergeProps({\n key: 0,\n id: $options.getItemId(processedItem),\n style: $options.getItemProp(processedItem, 'style'),\n \"class\": [_ctx.cx('item', {\n processedItem: processedItem\n }), $options.getItemProp(processedItem, 'class')],\n role: \"menuitem\",\n \"aria-label\": $options.getItemLabel(processedItem),\n \"aria-disabled\": $options.isItemDisabled(processedItem) || undefined,\n \"aria-expanded\": $options.isItemGroup(processedItem) ? $options.isItemActive(processedItem) : undefined,\n \"aria-haspopup\": $options.isItemGroup(processedItem) && !$options.getItemProp(processedItem, 'to') ? 'menu' : undefined,\n \"aria-level\": $props.level + 1,\n \"aria-setsize\": $options.getAriaSetSize(),\n \"aria-posinset\": $options.getAriaPosInset(index),\n ref_for: true\n }, $options.getPTOptions(processedItem, index, 'item'), {\n \"data-p-active\": $options.isItemActive(processedItem),\n \"data-p-focused\": $options.isItemFocused(processedItem),\n \"data-p-disabled\": $options.isItemDisabled(processedItem)\n }), [createElementVNode(\"div\", mergeProps({\n \"class\": _ctx.cx('itemContent'),\n onClick: function onClick($event) {\n return $options.onItemClick($event, processedItem);\n },\n onMouseenter: function onMouseenter($event) {\n return $options.onItemMouseEnter($event, processedItem);\n },\n onMousemove: function onMousemove($event) {\n return $options.onItemMouseMove($event, processedItem);\n },\n ref_for: true\n }, $options.getPTOptions(processedItem, index, 'itemContent')), [!$props.templates.item ? withDirectives((openBlock(), createElementBlock(\"a\", mergeProps({\n key: 0,\n href: $options.getItemProp(processedItem, 'url'),\n \"class\": _ctx.cx('itemLink'),\n target: $options.getItemProp(processedItem, 'target'),\n tabindex: \"-1\",\n ref_for: true\n }, $options.getPTOptions(processedItem, index, 'itemLink')), [$props.templates.itemicon ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.itemicon), {\n key: 0,\n item: processedItem.item,\n \"class\": normalizeClass(_ctx.cx('itemIcon'))\n }, null, 8, [\"item\", \"class\"])) : $options.getItemProp(processedItem, 'icon') ? (openBlock(), createElementBlock(\"span\", mergeProps({\n key: 1,\n \"class\": [_ctx.cx('itemIcon'), $options.getItemProp(processedItem, 'icon')],\n ref_for: true\n }, $options.getPTOptions(processedItem, index, 'itemIcon')), null, 16)) : createCommentVNode(\"\", true), createElementVNode(\"span\", mergeProps({\n id: $options.getItemLabelId(processedItem),\n \"class\": _ctx.cx('itemLabel'),\n ref_for: true\n }, $options.getPTOptions(processedItem, index, 'itemLabel')), toDisplayString($options.getItemLabel(processedItem)), 17, _hoisted_5), $options.getItemProp(processedItem, 'items') ? (openBlock(), createElementBlock(Fragment, {\n key: 2\n }, [$props.templates.submenuicon ? (openBlock(), createBlock(resolveDynamicComponent($props.templates.submenuicon), mergeProps({\n key: 0,\n \"class\": _ctx.cx('submenuIcon'),\n active: $options.isItemActive(processedItem),\n ref_for: true\n }, $options.getPTOptions(processedItem, index, 'submenuIcon')), null, 16, [\"class\", \"active\"])) : (openBlock(), createBlock(_component_AngleRightIcon, mergeProps({\n key: 1,\n \"class\": _ctx.cx('submenuIcon'),\n ref_for: true\n }, $options.getPTOptions(processedItem, index, 'submenuIcon')), null, 16, [\"class\"]))], 64)) : createCommentVNode(\"\", true)], 16, _hoisted_4)), [[_directive_ripple]]) : (openBlock(), createBlock(resolveDynamicComponent($props.templates.item), {\n key: 1,\n item: processedItem.item,\n hasSubmenu: $options.getItemProp(processedItem, 'items'),\n label: $options.getItemLabel(processedItem),\n props: $options.getMenuItemProps(processedItem, index)\n }, null, 8, [\"item\", \"hasSubmenu\", \"label\", \"props\"]))], 16, _hoisted_3), $options.isItemVisible(processedItem) && $options.isItemGroup(processedItem) ? (openBlock(), createBlock(_component_TieredMenuSub, {\n key: 0,\n id: $options.getItemId(processedItem) + '_list',\n style: normalizeStyle(_ctx.sx('submenu', true, {\n processedItem: processedItem\n })),\n \"aria-labelledby\": $options.getItemLabelId(processedItem),\n role: \"menu\",\n menuId: $props.menuId,\n focusedItemId: $props.focusedItemId,\n items: processedItem.items,\n templates: $props.templates,\n activeItemPath: $props.activeItemPath,\n level: $props.level + 1,\n visible: $options.isItemActive(processedItem) && $options.isItemGroup(processedItem),\n pt: _ctx.pt,\n unstyled: _ctx.unstyled,\n onItemClick: _cache[0] || (_cache[0] = function ($event) {\n return _ctx.$emit('item-click', $event);\n }),\n onItemMouseenter: _cache[1] || (_cache[1] = function ($event) {\n return _ctx.$emit('item-mouseenter', $event);\n }),\n onItemMousemove: _cache[2] || (_cache[2] = function ($event) {\n return _ctx.$emit('item-mousemove', $event);\n })\n }, null, 8, [\"id\", \"style\", \"aria-labelledby\", \"menuId\", \"focusedItemId\", \"items\", \"templates\", \"activeItemPath\", \"level\", \"visible\", \"pt\", \"unstyled\"])) : createCommentVNode(\"\", true)], 16, _hoisted_2)) : createCommentVNode(\"\", true), $options.isItemVisible(processedItem) && $options.getItemProp(processedItem, 'separator') ? (openBlock(), createElementBlock(\"li\", mergeProps({\n key: 1,\n id: $options.getItemId(processedItem),\n style: $options.getItemProp(processedItem, 'style'),\n \"class\": [_ctx.cx('separator'), $options.getItemProp(processedItem, 'class')],\n role: \"separator\",\n ref_for: true\n }, _ctx.ptm('separator')), null, 16, _hoisted_6)) : createCommentVNode(\"\", true)], 64);\n }), 128))], 16, _hoisted_1$1)) : createCommentVNode(\"\", true)];\n }),\n _: 1\n }, 16, [\"onEnter\"]);\n}\n\nscript$1.render = render$1;\n\nvar script = {\n name: 'TieredMenu',\n \"extends\": script$2,\n inheritAttrs: false,\n emits: ['focus', 'blur', 'before-show', 'before-hide', 'hide', 'show'],\n outsideClickListener: null,\n scrollHandler: null,\n resizeListener: null,\n target: null,\n container: null,\n menubar: null,\n searchTimeout: null,\n searchValue: null,\n data: function data() {\n return {\n id: this.$attrs.id,\n focused: false,\n focusedItemInfo: {\n index: -1,\n level: 0,\n parentKey: ''\n },\n activeItemPath: [],\n visible: !this.popup,\n submenuVisible: false,\n dirty: false\n };\n },\n watch: {\n '$attrs.id': function $attrsId(newValue) {\n this.id = newValue || UniqueComponentId();\n },\n activeItemPath: function activeItemPath(newPath) {\n if (!this.popup) {\n if (isNotEmpty(newPath)) {\n this.bindOutsideClickListener();\n this.bindResizeListener();\n } else {\n this.unbindOutsideClickListener();\n this.unbindResizeListener();\n }\n }\n }\n },\n mounted: function mounted() {\n this.id = this.id || UniqueComponentId();\n },\n beforeUnmount: function beforeUnmount() {\n this.unbindOutsideClickListener();\n this.unbindResizeListener();\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n if (this.container && this.autoZIndex) {\n ZIndex.clear(this.container);\n }\n this.target = null;\n this.container = null;\n },\n methods: {\n getItemProp: function getItemProp(item, name) {\n return item ? resolve(item[name]) : undefined;\n },\n getItemLabel: function getItemLabel(item) {\n return this.getItemProp(item, 'label');\n },\n isItemDisabled: function isItemDisabled(item) {\n return this.getItemProp(item, 'disabled');\n },\n isItemVisible: function isItemVisible(item) {\n return this.getItemProp(item, 'visible') !== false;\n },\n isItemGroup: function isItemGroup(item) {\n return isNotEmpty(this.getItemProp(item, 'items'));\n },\n isItemSeparator: function isItemSeparator(item) {\n return this.getItemProp(item, 'separator');\n },\n getProccessedItemLabel: function getProccessedItemLabel(processedItem) {\n return processedItem ? this.getItemLabel(processedItem.item) : undefined;\n },\n isProccessedItemGroup: function isProccessedItemGroup(processedItem) {\n return processedItem && isNotEmpty(processedItem.items);\n },\n toggle: function toggle(event) {\n this.visible ? this.hide(event, true) : this.show(event);\n },\n show: function show(event, isFocus) {\n if (this.popup) {\n this.$emit('before-show');\n this.visible = true;\n this.target = this.target || event.currentTarget;\n this.relatedTarget = event.relatedTarget || null;\n }\n isFocus && focus(this.menubar);\n },\n hide: function hide(event, isFocus) {\n if (this.popup) {\n this.$emit('before-hide');\n this.visible = false;\n }\n this.activeItemPath = [];\n this.focusedItemInfo = {\n index: -1,\n level: 0,\n parentKey: ''\n };\n isFocus && focus(this.relatedTarget || this.target || this.menubar);\n this.dirty = false;\n },\n onFocus: function onFocus(event) {\n this.focused = true;\n if (!this.popup) {\n this.focusedItemInfo = this.focusedItemInfo.index !== -1 ? this.focusedItemInfo : {\n index: this.findFirstFocusedItemIndex(),\n level: 0,\n parentKey: ''\n };\n }\n this.$emit('focus', event);\n },\n onBlur: function onBlur(event) {\n this.focused = false;\n this.focusedItemInfo = {\n index: -1,\n level: 0,\n parentKey: ''\n };\n this.searchValue = '';\n this.dirty = false;\n this.$emit('blur', event);\n },\n onKeyDown: function onKeyDown(event) {\n if (this.disabled) {\n event.preventDefault();\n return;\n }\n var metaKey = event.metaKey || event.ctrlKey;\n switch (event.code) {\n case 'ArrowDown':\n this.onArrowDownKey(event);\n break;\n case 'ArrowUp':\n this.onArrowUpKey(event);\n break;\n case 'ArrowLeft':\n this.onArrowLeftKey(event);\n break;\n case 'ArrowRight':\n this.onArrowRightKey(event);\n break;\n case 'Home':\n this.onHomeKey(event);\n break;\n case 'End':\n this.onEndKey(event);\n break;\n case 'Space':\n this.onSpaceKey(event);\n break;\n case 'Enter':\n case 'NumpadEnter':\n this.onEnterKey(event);\n break;\n case 'Escape':\n this.onEscapeKey(event);\n break;\n case 'Tab':\n this.onTabKey(event);\n break;\n case 'PageDown':\n case 'PageUp':\n case 'Backspace':\n case 'ShiftLeft':\n case 'ShiftRight':\n //NOOP\n break;\n default:\n if (!metaKey && isPrintableCharacter(event.key)) {\n this.searchItems(event, event.key);\n }\n break;\n }\n },\n onItemChange: function onItemChange(event) {\n var processedItem = event.processedItem,\n isFocus = event.isFocus;\n if (isEmpty(processedItem)) return;\n var index = processedItem.index,\n key = processedItem.key,\n level = processedItem.level,\n parentKey = processedItem.parentKey,\n items = processedItem.items;\n var grouped = isNotEmpty(items);\n var activeItemPath = this.activeItemPath.filter(function (p) {\n return p.parentKey !== parentKey && p.parentKey !== key;\n });\n if (grouped) {\n activeItemPath.push(processedItem);\n this.submenuVisible = true;\n }\n this.focusedItemInfo = {\n index: index,\n level: level,\n parentKey: parentKey\n };\n this.activeItemPath = activeItemPath;\n grouped && (this.dirty = true);\n isFocus && focus(this.menubar);\n },\n onOverlayClick: function onOverlayClick(event) {\n OverlayEventBus.emit('overlay-click', {\n originalEvent: event,\n target: this.target\n });\n },\n onItemClick: function onItemClick(event) {\n var originalEvent = event.originalEvent,\n processedItem = event.processedItem;\n var grouped = this.isProccessedItemGroup(processedItem);\n var root = isEmpty(processedItem.parent);\n var selected = this.isSelected(processedItem);\n if (selected) {\n var index = processedItem.index,\n key = processedItem.key,\n level = processedItem.level,\n parentKey = processedItem.parentKey;\n this.activeItemPath = this.activeItemPath.filter(function (p) {\n return key !== p.key && key.startsWith(p.key);\n });\n this.focusedItemInfo = {\n index: index,\n level: level,\n parentKey: parentKey\n };\n this.dirty = !root;\n focus(this.menubar);\n } else {\n if (grouped) {\n this.onItemChange(event);\n } else {\n var rootProcessedItem = root ? processedItem : this.activeItemPath.find(function (p) {\n return p.parentKey === '';\n });\n this.hide(originalEvent);\n this.changeFocusedItemIndex(originalEvent, rootProcessedItem ? rootProcessedItem.index : -1);\n focus(this.menubar);\n }\n }\n },\n onItemMouseEnter: function onItemMouseEnter(event) {\n if (this.dirty) {\n this.onItemChange(event);\n }\n },\n onItemMouseMove: function onItemMouseMove(event) {\n if (this.focused) {\n this.changeFocusedItemIndex(event, event.processedItem.index);\n }\n },\n onArrowDownKey: function onArrowDownKey(event) {\n var itemIndex = this.focusedItemInfo.index !== -1 ? this.findNextItemIndex(this.focusedItemInfo.index) : this.findFirstFocusedItemIndex();\n this.changeFocusedItemIndex(event, itemIndex);\n event.preventDefault();\n },\n onArrowUpKey: function onArrowUpKey(event) {\n if (event.altKey) {\n if (this.focusedItemInfo.index !== -1) {\n var processedItem = this.visibleItems[this.focusedItemInfo.index];\n var grouped = this.isProccessedItemGroup(processedItem);\n !grouped && this.onItemChange({\n originalEvent: event,\n processedItem: processedItem\n });\n }\n this.popup && this.hide(event, true);\n event.preventDefault();\n } else {\n var itemIndex = this.focusedItemInfo.index !== -1 ? this.findPrevItemIndex(this.focusedItemInfo.index) : this.findLastFocusedItemIndex();\n this.changeFocusedItemIndex(event, itemIndex);\n event.preventDefault();\n }\n },\n onArrowLeftKey: function onArrowLeftKey(event) {\n var _this = this;\n var processedItem = this.visibleItems[this.focusedItemInfo.index];\n var parentItem = this.activeItemPath.find(function (p) {\n return p.key === processedItem.parentKey;\n });\n var root = isEmpty(processedItem.parent);\n if (!root) {\n this.focusedItemInfo = {\n index: -1,\n parentKey: parentItem ? parentItem.parentKey : ''\n };\n this.searchValue = '';\n this.onArrowDownKey(event);\n }\n this.activeItemPath = this.activeItemPath.filter(function (p) {\n return p.parentKey !== _this.focusedItemInfo.parentKey;\n });\n event.preventDefault();\n },\n onArrowRightKey: function onArrowRightKey(event) {\n var processedItem = this.visibleItems[this.focusedItemInfo.index];\n var grouped = this.isProccessedItemGroup(processedItem);\n if (grouped) {\n this.onItemChange({\n originalEvent: event,\n processedItem: processedItem\n });\n this.focusedItemInfo = {\n index: -1,\n parentKey: processedItem.key\n };\n this.searchValue = '';\n this.onArrowDownKey(event);\n }\n event.preventDefault();\n },\n onHomeKey: function onHomeKey(event) {\n this.changeFocusedItemIndex(event, this.findFirstItemIndex());\n event.preventDefault();\n },\n onEndKey: function onEndKey(event) {\n this.changeFocusedItemIndex(event, this.findLastItemIndex());\n event.preventDefault();\n },\n onEnterKey: function onEnterKey(event) {\n if (this.focusedItemInfo.index !== -1) {\n var element = findSingle(this.menubar, \"li[id=\\\"\".concat(\"\".concat(this.focusedItemId), \"\\\"]\"));\n var anchorElement = element && findSingle(element, '[data-pc-section=\"itemlink\"]');\n anchorElement ? anchorElement.click() : element && element.click();\n if (!this.popup) {\n var processedItem = this.visibleItems[this.focusedItemInfo.index];\n var grouped = this.isProccessedItemGroup(processedItem);\n !grouped && (this.focusedItemInfo.index = this.findFirstFocusedItemIndex());\n }\n }\n event.preventDefault();\n },\n onSpaceKey: function onSpaceKey(event) {\n this.onEnterKey(event);\n },\n onEscapeKey: function onEscapeKey(event) {\n if (this.popup || this.focusedItemInfo.level !== 0) {\n var _focusedItemInfo = this.focusedItemInfo;\n this.hide(event, false);\n this.focusedItemInfo = {\n index: Number(_focusedItemInfo.parentKey.split('_')[0]),\n level: 0,\n parentKey: ''\n };\n this.popup && focus(this.target);\n }\n event.preventDefault();\n },\n onTabKey: function onTabKey(event) {\n if (this.focusedItemInfo.index !== -1) {\n var processedItem = this.visibleItems[this.focusedItemInfo.index];\n var grouped = this.isProccessedItemGroup(processedItem);\n !grouped && this.onItemChange({\n originalEvent: event,\n processedItem: processedItem\n });\n }\n this.hide();\n },\n onEnter: function onEnter(el) {\n if (this.autoZIndex) {\n ZIndex.set('menu', el, this.baseZIndex + this.$primevue.config.zIndex.menu);\n }\n addStyle(el, {\n position: 'absolute',\n top: '0',\n left: '0'\n });\n this.alignOverlay();\n focus(this.menubar);\n this.scrollInView();\n },\n onAfterEnter: function onAfterEnter() {\n this.bindOutsideClickListener();\n this.bindScrollListener();\n this.bindResizeListener();\n this.$emit('show');\n },\n onLeave: function onLeave() {\n this.unbindOutsideClickListener();\n this.unbindScrollListener();\n this.unbindResizeListener();\n this.$emit('hide');\n this.container = null;\n this.dirty = false;\n },\n onAfterLeave: function onAfterLeave(el) {\n if (this.autoZIndex) {\n ZIndex.clear(el);\n }\n },\n alignOverlay: function alignOverlay() {\n absolutePosition(this.container, this.target);\n var targetWidth = getOuterWidth(this.target);\n if (targetWidth > getOuterWidth(this.container)) {\n this.container.style.minWidth = getOuterWidth(this.target) + 'px';\n }\n },\n bindOutsideClickListener: function bindOutsideClickListener() {\n var _this2 = this;\n if (!this.outsideClickListener) {\n this.outsideClickListener = function (event) {\n var isOutsideContainer = _this2.container && !_this2.container.contains(event.target);\n var isOutsideTarget = _this2.popup ? !(_this2.target && (_this2.target === event.target || _this2.target.contains(event.target))) : true;\n if (isOutsideContainer && isOutsideTarget) {\n _this2.hide();\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 _this3 = this;\n if (!this.scrollHandler) {\n this.scrollHandler = new ConnectedOverlayScrollHandler(this.target, function (event) {\n _this3.hide(event, true);\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 _this4 = this;\n if (!this.resizeListener) {\n this.resizeListener = function (event) {\n if (!isTouchDevice()) {\n _this4.hide(event, true);\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 isItemMatched: function isItemMatched(processedItem) {\n var _this$getProccessedIt;\n return this.isValidItem(processedItem) && ((_this$getProccessedIt = this.getProccessedItemLabel(processedItem)) === null || _this$getProccessedIt === void 0 ? void 0 : _this$getProccessedIt.toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase()));\n },\n isValidItem: function isValidItem(processedItem) {\n return !!processedItem && !this.isItemDisabled(processedItem.item) && !this.isItemSeparator(processedItem.item) && this.isItemVisible(processedItem.item);\n },\n isValidSelectedItem: function isValidSelectedItem(processedItem) {\n return this.isValidItem(processedItem) && this.isSelected(processedItem);\n },\n isSelected: function isSelected(processedItem) {\n return this.activeItemPath.some(function (p) {\n return p.key === processedItem.key;\n });\n },\n findFirstItemIndex: function findFirstItemIndex() {\n var _this5 = this;\n return this.visibleItems.findIndex(function (processedItem) {\n return _this5.isValidItem(processedItem);\n });\n },\n findLastItemIndex: function findLastItemIndex() {\n var _this6 = this;\n return findLastIndex(this.visibleItems, function (processedItem) {\n return _this6.isValidItem(processedItem);\n });\n },\n findNextItemIndex: function findNextItemIndex(index) {\n var _this7 = this;\n var matchedItemIndex = index < this.visibleItems.length - 1 ? this.visibleItems.slice(index + 1).findIndex(function (processedItem) {\n return _this7.isValidItem(processedItem);\n }) : -1;\n return matchedItemIndex > -1 ? matchedItemIndex + index + 1 : index;\n },\n findPrevItemIndex: function findPrevItemIndex(index) {\n var _this8 = this;\n var matchedItemIndex = index > 0 ? findLastIndex(this.visibleItems.slice(0, index), function (processedItem) {\n return _this8.isValidItem(processedItem);\n }) : -1;\n return matchedItemIndex > -1 ? matchedItemIndex : index;\n },\n findSelectedItemIndex: function findSelectedItemIndex() {\n var _this9 = this;\n return this.visibleItems.findIndex(function (processedItem) {\n return _this9.isValidSelectedItem(processedItem);\n });\n },\n findFirstFocusedItemIndex: function findFirstFocusedItemIndex() {\n var selectedIndex = this.findSelectedItemIndex();\n return selectedIndex < 0 ? this.findFirstItemIndex() : selectedIndex;\n },\n findLastFocusedItemIndex: function findLastFocusedItemIndex() {\n var selectedIndex = this.findSelectedItemIndex();\n return selectedIndex < 0 ? this.findLastItemIndex() : selectedIndex;\n },\n searchItems: function searchItems(event, _char) {\n var _this10 = this;\n this.searchValue = (this.searchValue || '') + _char;\n var itemIndex = -1;\n var matched = false;\n if (this.focusedItemInfo.index !== -1) {\n itemIndex = this.visibleItems.slice(this.focusedItemInfo.index).findIndex(function (processedItem) {\n return _this10.isItemMatched(processedItem);\n });\n itemIndex = itemIndex === -1 ? this.visibleItems.slice(0, this.focusedItemInfo.index).findIndex(function (processedItem) {\n return _this10.isItemMatched(processedItem);\n }) : itemIndex + this.focusedItemInfo.index;\n } else {\n itemIndex = this.visibleItems.findIndex(function (processedItem) {\n return _this10.isItemMatched(processedItem);\n });\n }\n if (itemIndex !== -1) {\n matched = true;\n }\n if (itemIndex === -1 && this.focusedItemInfo.index === -1) {\n itemIndex = this.findFirstFocusedItemIndex();\n }\n if (itemIndex !== -1) {\n this.changeFocusedItemIndex(event, itemIndex);\n }\n if (this.searchTimeout) {\n clearTimeout(this.searchTimeout);\n }\n this.searchTimeout = setTimeout(function () {\n _this10.searchValue = '';\n _this10.searchTimeout = null;\n }, 500);\n return matched;\n },\n changeFocusedItemIndex: function changeFocusedItemIndex(event, index) {\n if (this.focusedItemInfo.index !== index) {\n this.focusedItemInfo.index = index;\n this.scrollInView();\n }\n },\n scrollInView: function scrollInView() {\n var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;\n var id = index !== -1 ? \"\".concat(this.id, \"_\").concat(index) : this.focusedItemId;\n var element = findSingle(this.menubar, \"li[id=\\\"\".concat(id, \"\\\"]\"));\n if (element) {\n element.scrollIntoView && element.scrollIntoView({\n block: 'nearest',\n inline: 'start'\n });\n }\n },\n createProcessedItems: function createProcessedItems(items) {\n var _this11 = this;\n var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var parentKey = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';\n var processedItems = [];\n items && items.forEach(function (item, index) {\n var key = (parentKey !== '' ? parentKey + '_' : '') + index;\n var newItem = {\n item: item,\n index: index,\n level: level,\n key: key,\n parent: parent,\n parentKey: parentKey\n };\n newItem['items'] = _this11.createProcessedItems(item.items, level + 1, newItem, key);\n processedItems.push(newItem);\n });\n return processedItems;\n },\n containerRef: function containerRef(el) {\n this.container = el;\n },\n menubarRef: function menubarRef(el) {\n this.menubar = el ? el.$el : undefined;\n }\n },\n computed: {\n processedItems: function processedItems() {\n return this.createProcessedItems(this.model || []);\n },\n visibleItems: function visibleItems() {\n var _this12 = this;\n var processedItem = this.activeItemPath.find(function (p) {\n return p.key === _this12.focusedItemInfo.parentKey;\n });\n return processedItem ? processedItem.items : this.processedItems;\n },\n focusedItemId: function focusedItemId() {\n return this.focusedItemInfo.index !== -1 ? \"\".concat(this.id).concat(isNotEmpty(this.focusedItemInfo.parentKey) ? '_' + this.focusedItemInfo.parentKey : '', \"_\").concat(this.focusedItemInfo.index) : null;\n }\n },\n components: {\n TieredMenuSub: script$1,\n Portal: Portal\n }\n};\n\nvar _hoisted_1 = [\"id\"];\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_TieredMenuSub = resolveComponent(\"TieredMenuSub\");\n var _component_Portal = resolveComponent(\"Portal\");\n return openBlock(), createBlock(_component_Portal, {\n appendTo: _ctx.appendTo,\n disabled: !_ctx.popup\n }, {\n \"default\": withCtx(function () {\n return [createVNode(Transition, mergeProps({\n name: \"p-connected-overlay\",\n onEnter: $options.onEnter,\n onAfterEnter: $options.onAfterEnter,\n onLeave: $options.onLeave,\n onAfterLeave: $options.onAfterLeave\n }, _ctx.ptm('transition')), {\n \"default\": withCtx(function () {\n return [$data.visible ? (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 0,\n ref: $options.containerRef,\n id: $data.id,\n \"class\": _ctx.cx('root'),\n onClick: _cache[0] || (_cache[0] = function () {\n return $options.onOverlayClick && $options.onOverlayClick.apply($options, arguments);\n })\n }, _ctx.ptmi('root')), [_ctx.$slots.start ? (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 0,\n \"class\": _ctx.cx('start')\n }, _ctx.ptm('start')), [renderSlot(_ctx.$slots, \"start\")], 16)) : createCommentVNode(\"\", true), createVNode(_component_TieredMenuSub, {\n ref: $options.menubarRef,\n id: $data.id + '_list',\n tabindex: !_ctx.disabled ? _ctx.tabindex : -1,\n role: \"menubar\",\n \"aria-label\": _ctx.ariaLabel,\n \"aria-labelledby\": _ctx.ariaLabelledby,\n \"aria-disabled\": _ctx.disabled || undefined,\n \"aria-orientation\": \"vertical\",\n \"aria-activedescendant\": $data.focused ? $options.focusedItemId : undefined,\n menuId: $data.id,\n focusedItemId: $data.focused ? $options.focusedItemId : undefined,\n items: $options.processedItems,\n templates: _ctx.$slots,\n activeItemPath: $data.activeItemPath,\n level: 0,\n visible: $data.submenuVisible,\n pt: _ctx.pt,\n unstyled: _ctx.unstyled,\n onFocus: $options.onFocus,\n onBlur: $options.onBlur,\n onKeydown: $options.onKeyDown,\n onItemClick: $options.onItemClick,\n onItemMouseenter: $options.onItemMouseEnter,\n onItemMousemove: $options.onItemMouseMove\n }, null, 8, [\"id\", \"tabindex\", \"aria-label\", \"aria-labelledby\", \"aria-disabled\", \"aria-activedescendant\", \"menuId\", \"focusedItemId\", \"items\", \"templates\", \"activeItemPath\", \"visible\", \"pt\", \"unstyled\", \"onFocus\", \"onBlur\", \"onKeydown\", \"onItemClick\", \"onItemMouseenter\", \"onItemMousemove\"]), _ctx.$slots.end ? (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 1,\n \"class\": _ctx.cx('end')\n }, _ctx.ptm('end')), [renderSlot(_ctx.$slots, \"end\")], 16)) : createCommentVNode(\"\", true)], 16, _hoisted_1)) : createCommentVNode(\"\", true)];\n }),\n _: 3\n }, 16, [\"onEnter\", \"onAfterEnter\", \"onLeave\", \"onAfterLeave\"])];\n }),\n _: 3\n }, 8, [\"appendTo\", \"disabled\"]);\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","import BaseStyle from '@primevue/core/base/style';\n\nvar theme = function theme(_ref) {\n var dt = _ref.dt;\n return \"\\n.p-splitbutton {\\n display: inline-flex;\\n position: relative;\\n border-radius: \".concat(dt('splitbutton.border.radius'), \";\\n}\\n\\n.p-splitbutton-button {\\n border-top-right-radius: 0;\\n border-bottom-right-radius: 0;\\n border-right: 0 none;\\n}\\n\\n.p-splitbutton-button:focus-visible,\\n.p-splitbutton-dropdown:focus-visible {\\n z-index: 1;\\n}\\n\\n.p-splitbutton-button:not(:disabled):hover,\\n.p-splitbutton-button:not(:disabled):active {\\n border-right: 0 none;\\n}\\n\\n.p-splitbutton-dropdown {\\n border-top-left-radius: 0;\\n border-bottom-left-radius: 0;\\n}\\n\\n.p-splitbutton .p-menu {\\n min-width: 100%;\\n}\\n\\n.p-splitbutton-fluid {\\n display: flex;\\n}\\n\\n.p-splitbutton-rounded .p-splitbutton-dropdown {\\n border-top-right-radius: \").concat(dt('splitbutton.rounded.border.radius'), \";\\n border-bottom-right-radius: \").concat(dt('splitbutton.rounded.border.radius'), \";\\n}\\n\\n.p-splitbutton-rounded .p-splitbutton-button {\\n border-top-left-radius: \").concat(dt('splitbutton.rounded.border.radius'), \";\\n border-bottom-left-radius: \").concat(dt('splitbutton.rounded.border.radius'), \";\\n}\\n\\n.p-splitbutton-raised {\\n box-shadow: \").concat(dt('splitbutton.raised.shadow'), \";\\n}\\n\");\n};\nvar classes = {\n root: function root(_ref2) {\n var instance = _ref2.instance,\n props = _ref2.props;\n return ['p-splitbutton p-component', {\n 'p-splitbutton-raised': props.raised,\n 'p-splitbutton-rounded': props.rounded,\n 'p-splitbutton-fluid': instance.hasFluid\n }];\n },\n pcButton: 'p-splitbutton-button',\n pcDropdown: 'p-splitbutton-dropdown'\n};\nvar SplitButtonStyle = BaseStyle.extend({\n name: 'splitbutton',\n theme: theme,\n classes: classes\n});\n\nexport { SplitButtonStyle as default };\n//# sourceMappingURL=index.mjs.map\n","import { isEmpty } from '@primeuix/utils/object';\nimport { UniqueComponentId } from '@primevue/core/utils';\nimport ChevronDownIcon from '@primevue/icons/chevrondown';\nimport Button from 'primevue/button';\nimport TieredMenu from 'primevue/tieredmenu';\nimport BaseComponent from '@primevue/core/basecomponent';\nimport SplitButtonStyle from 'primevue/splitbutton/style';\nimport { resolveComponent, openBlock, createElementBlock, mergeProps, createVNode, createSlots, withCtx, renderSlot, normalizeClass, createElementVNode, createBlock, resolveDynamicComponent } from 'vue';\n\nvar script$1 = {\n name: 'BaseSplitButton',\n \"extends\": BaseComponent,\n props: {\n label: {\n type: String,\n \"default\": null\n },\n icon: {\n type: String,\n \"default\": null\n },\n model: {\n type: Array,\n \"default\": null\n },\n autoZIndex: {\n type: Boolean,\n \"default\": true\n },\n baseZIndex: {\n type: Number,\n \"default\": 0\n },\n appendTo: {\n type: [String, Object],\n \"default\": 'body'\n },\n disabled: {\n type: Boolean,\n \"default\": false\n },\n fluid: {\n type: Boolean,\n \"default\": null\n },\n \"class\": {\n type: null,\n \"default\": null\n },\n style: {\n type: null,\n \"default\": null\n },\n buttonProps: {\n type: null,\n \"default\": null\n },\n menuButtonProps: {\n type: null,\n \"default\": null\n },\n menuButtonIcon: {\n type: String,\n \"default\": undefined\n },\n dropdownIcon: {\n type: String,\n \"default\": undefined\n },\n severity: {\n type: String,\n \"default\": null\n },\n raised: {\n type: Boolean,\n \"default\": false\n },\n rounded: {\n type: Boolean,\n \"default\": false\n },\n text: {\n type: Boolean,\n \"default\": false\n },\n outlined: {\n type: Boolean,\n \"default\": false\n },\n size: {\n type: String,\n \"default\": null\n },\n plain: {\n type: Boolean,\n \"default\": false\n }\n },\n style: SplitButtonStyle,\n provide: function provide() {\n return {\n $pcSplitButton: this,\n $parentInstance: this\n };\n }\n};\n\nvar script = {\n name: 'SplitButton',\n \"extends\": script$1,\n inheritAttrs: false,\n emits: ['click'],\n inject: {\n $pcFluid: {\n \"default\": null\n }\n },\n data: function data() {\n return {\n id: this.$attrs.id,\n isExpanded: false\n };\n },\n watch: {\n '$attrs.id': function $attrsId(newValue) {\n this.id = newValue || UniqueComponentId();\n }\n },\n mounted: function mounted() {\n var _this = this;\n this.id = this.id || UniqueComponentId();\n this.$watch('$refs.menu.visible', function (newValue) {\n _this.isExpanded = newValue;\n });\n },\n methods: {\n onDropdownButtonClick: function onDropdownButtonClick(event) {\n if (event) {\n event.preventDefault();\n }\n this.$refs.menu.toggle({\n currentTarget: this.$el,\n relatedTarget: this.$refs.button.$el\n });\n this.isExpanded = this.$refs.menu.visible;\n },\n onDropdownKeydown: function onDropdownKeydown(event) {\n if (event.code === 'ArrowDown' || event.code === 'ArrowUp') {\n this.onDropdownButtonClick();\n event.preventDefault();\n }\n },\n onDefaultButtonClick: function onDefaultButtonClick(event) {\n if (this.isExpanded) {\n this.$refs.menu.hide(event);\n }\n this.$emit('click', event);\n }\n },\n computed: {\n containerClass: function containerClass() {\n return [this.cx('root'), this[\"class\"]];\n },\n hasFluid: function hasFluid() {\n return isEmpty(this.fluid) ? !!this.$pcFluid : this.fluid;\n }\n },\n components: {\n PVSButton: Button,\n PVSMenu: TieredMenu,\n ChevronDownIcon: ChevronDownIcon\n }\n};\n\nvar _hoisted_1 = [\"data-p-severity\"];\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n var _component_PVSButton = resolveComponent(\"PVSButton\");\n var _component_PVSMenu = resolveComponent(\"PVSMenu\");\n return openBlock(), createElementBlock(\"div\", mergeProps({\n \"class\": $options.containerClass,\n style: _ctx.style\n }, _ctx.ptmi('root'), {\n \"data-p-severity\": _ctx.severity\n }), [createVNode(_component_PVSButton, mergeProps({\n type: \"button\",\n \"class\": _ctx.cx('pcButton'),\n label: _ctx.label,\n disabled: _ctx.disabled,\n severity: _ctx.severity,\n text: _ctx.text,\n icon: _ctx.icon,\n outlined: _ctx.outlined,\n size: _ctx.size,\n fluid: _ctx.fluid,\n \"aria-label\": _ctx.label,\n onClick: $options.onDefaultButtonClick\n }, _ctx.buttonProps, {\n pt: _ctx.ptm('pcButton'),\n unstyled: _ctx.unstyled\n }), createSlots({\n \"default\": withCtx(function () {\n return [renderSlot(_ctx.$slots, \"default\")];\n }),\n _: 2\n }, [_ctx.$slots.icon ? {\n name: \"icon\",\n fn: withCtx(function (slotProps) {\n return [renderSlot(_ctx.$slots, \"icon\", {\n \"class\": normalizeClass(slotProps[\"class\"])\n }, function () {\n return [createElementVNode(\"span\", mergeProps({\n \"class\": [_ctx.icon, slotProps[\"class\"]]\n }, _ctx.ptm('pcButton')['icon'], {\n \"data-pc-section\": \"buttonicon\"\n }), null, 16)];\n })];\n }),\n key: \"0\"\n } : undefined]), 1040, [\"class\", \"label\", \"disabled\", \"severity\", \"text\", \"icon\", \"outlined\", \"size\", \"fluid\", \"aria-label\", \"onClick\", \"pt\", \"unstyled\"]), createVNode(_component_PVSButton, mergeProps({\n ref: \"button\",\n type: \"button\",\n \"class\": _ctx.cx('pcDropdown'),\n disabled: _ctx.disabled,\n \"aria-haspopup\": \"true\",\n \"aria-expanded\": $data.isExpanded,\n \"aria-controls\": $data.id + '_overlay',\n onClick: $options.onDropdownButtonClick,\n onKeydown: $options.onDropdownKeydown,\n severity: _ctx.severity,\n text: _ctx.text,\n outlined: _ctx.outlined,\n size: _ctx.size,\n unstyled: _ctx.unstyled\n }, _ctx.menuButtonProps, {\n pt: _ctx.ptm('pcDropdown')\n }), {\n icon: withCtx(function (slotProps) {\n return [renderSlot(_ctx.$slots, _ctx.$slots.dropdownicon ? 'dropdownicon' : 'menubuttonicon', {\n \"class\": normalizeClass(slotProps[\"class\"])\n }, function () {\n return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.menuButtonIcon || _ctx.dropdownIcon ? 'span' : 'ChevronDownIcon'), mergeProps({\n \"class\": [_ctx.dropdownIcon || _ctx.menuButtonIcon, slotProps[\"class\"]]\n }, _ctx.ptm('pcDropdown')['icon'], {\n \"data-pc-section\": \"menubuttonicon\"\n }), null, 16, [\"class\"]))];\n })];\n }),\n _: 3\n }, 16, [\"class\", \"disabled\", \"aria-expanded\", \"aria-controls\", \"onClick\", \"onKeydown\", \"severity\", \"text\", \"outlined\", \"size\", \"unstyled\", \"pt\"]), createVNode(_component_PVSMenu, {\n ref: \"menu\",\n id: $data.id + '_overlay',\n model: _ctx.model,\n popup: true,\n autoZIndex: _ctx.autoZIndex,\n baseZIndex: _ctx.baseZIndex,\n appendTo: _ctx.appendTo,\n unstyled: _ctx.unstyled,\n pt: _ctx.ptm('pcMenu')\n }, createSlots({\n _: 2\n }, [_ctx.$slots.menuitemicon ? {\n name: \"itemicon\",\n fn: withCtx(function (slotProps) {\n return [renderSlot(_ctx.$slots, \"menuitemicon\", {\n item: slotProps.item,\n \"class\": normalizeClass(slotProps[\"class\"])\n })];\n }),\n key: \"0\"\n } : undefined, _ctx.$slots.item ? {\n name: \"item\",\n fn: withCtx(function (slotProps) {\n return [renderSlot(_ctx.$slots, \"item\", {\n item: slotProps.item,\n hasSubmenu: slotProps.hasSubmenu,\n label: slotProps.label,\n props: slotProps.props\n })];\n }),\n key: \"1\"\n } : undefined]), 1032, [\"id\", \"model\", \"autoZIndex\", \"baseZIndex\", \"appendTo\", \"unstyled\", \"pt\"])], 16, _hoisted_1);\n}\n\nscript.render = render;\n\nexport { script as default };\n//# sourceMappingURL=index.mjs.map\n","<template>\n <div\n class=\"batch-count\"\n :class=\"props.class\"\n v-tooltip.bottom=\"$t('menu.batchCount')\"\n >\n <InputNumber\n class=\"w-14\"\n v-model=\"batchCount\"\n :min=\"minQueueCount\"\n :max=\"maxQueueCount\"\n fluid\n showButtons\n :pt=\"{\n incrementButton: {\n class: 'w-6',\n onmousedown: () => {\n handleClick(true)\n }\n },\n decrementButton: {\n class: 'w-6',\n onmousedown: () => {\n handleClick(false)\n }\n }\n }\"\n />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { useQueueSettingsStore } from '@/stores/queueStore'\nimport { useSettingStore } from '@/stores/settingStore'\nimport { storeToRefs } from 'pinia'\nimport InputNumber from 'primevue/inputnumber'\nimport { computed } from 'vue'\n\ninterface Props {\n class?: string\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n class: ''\n})\n\nconst queueSettingsStore = useQueueSettingsStore()\nconst { batchCount } = storeToRefs(queueSettingsStore)\nconst minQueueCount = 1\n\nconst settingStore = useSettingStore()\nconst maxQueueCount = computed(() =>\n settingStore.get('Comfy.QueueButton.BatchCountLimit')\n)\n\nconst handleClick = (increment: boolean) => {\n let newCount: number\n if (increment) {\n const originalCount = batchCount.value - 1\n newCount = originalCount * 2\n } else {\n const originalCount = batchCount.value + 1\n newCount = Math.floor(originalCount / 2)\n }\n\n batchCount.value = newCount\n}\n</script>\n\n<style scoped>\n:deep(.p-inputtext) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n</style>\n","<template>\n <div class=\"queue-button-group flex\">\n <SplitButton\n class=\"comfyui-queue-button\"\n :label=\"activeQueueModeMenuItem.label\"\n :icon=\"activeQueueModeMenuItem.icon\"\n severity=\"primary\"\n @click=\"queuePrompt\"\n :model=\"queueModeMenuItems\"\n data-testid=\"queue-button\"\n v-tooltip.bottom=\"$t('menu.queueWorkflow')\"\n >\n <template #item=\"{ item }\">\n <Button\n :label=\"item.label\"\n :icon=\"item.icon\"\n :severity=\"item.key === queueMode ? 'primary' : 'secondary'\"\n text\n v-tooltip=\"item.tooltip\"\n />\n </template>\n </SplitButton>\n <BatchCountEdit />\n <ButtonGroup class=\"execution-actions flex flex-nowrap\">\n <Button\n v-tooltip.bottom=\"$t('menu.interrupt')\"\n icon=\"pi pi-times\"\n :severity=\"executingPrompt ? 'danger' : 'secondary'\"\n :disabled=\"!executingPrompt\"\n text\n @click=\"() => commandStore.execute('Comfy.Interrupt')\"\n >\n </Button>\n <Button\n v-tooltip.bottom=\"$t('sideToolbar.queueTab.clearPendingTasks')\"\n icon=\"pi pi-stop\"\n :severity=\"hasPendingTasks ? 'danger' : 'secondary'\"\n :disabled=\"!hasPendingTasks\"\n text\n @click=\"() => commandStore.execute('Comfy.ClearPendingTasks')\"\n />\n </ButtonGroup>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport SplitButton from 'primevue/splitbutton'\nimport Button from 'primevue/button'\nimport BatchCountEdit from './BatchCountEdit.vue'\nimport ButtonGroup from 'primevue/buttongroup'\nimport { useI18n } from 'vue-i18n'\nimport {\n AutoQueueMode,\n useQueuePendingTaskCountStore,\n useQueueSettingsStore\n} from '@/stores/queueStore'\nimport type { MenuItem } from 'primevue/menuitem'\nimport { storeToRefs } from 'pinia'\nimport { computed } from 'vue'\nimport { useCommandStore } from '@/stores/commandStore'\n\nconst queueCountStore = storeToRefs(useQueuePendingTaskCountStore())\nconst { mode: queueMode } = storeToRefs(useQueueSettingsStore())\n\nconst { t } = useI18n()\nconst queueModeMenuItemLookup: Record<AutoQueueMode, MenuItem> = {\n disabled: {\n key: 'disabled',\n label: 'Queue',\n icon: 'pi pi-play',\n tooltip: t('menu.disabledTooltip'),\n command: () => {\n queueMode.value = 'disabled'\n }\n },\n instant: {\n key: 'instant',\n label: 'Queue (Instant)',\n icon: 'pi pi-forward',\n tooltip: t('menu.instantTooltip'),\n command: () => {\n queueMode.value = 'instant'\n }\n },\n change: {\n key: 'change',\n label: 'Queue (Change)',\n icon: 'pi pi-step-forward-alt',\n tooltip: t('menu.changeTooltip'),\n command: () => {\n queueMode.value = 'change'\n }\n }\n}\n\nconst activeQueueModeMenuItem = computed(\n () => queueModeMenuItemLookup[queueMode.value]\n)\nconst queueModeMenuItems = computed(() =>\n Object.values(queueModeMenuItemLookup)\n)\n\nconst executingPrompt = computed(() => !!queueCountStore.count.value)\nconst hasPendingTasks = computed(() => queueCountStore.count.value > 1)\n\nconst commandStore = useCommandStore()\nconst queuePrompt = (e: MouseEvent) => {\n const commandId = e.shiftKey ? 'Comfy.QueuePromptFront' : 'Comfy.QueuePrompt'\n commandStore.execute(commandId)\n}\n</script>\n\n<style scoped>\n.comfyui-queue-button :deep(.p-splitbutton-dropdown) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n</style>\n","<template>\n <Panel\n class=\"actionbar w-fit\"\n :style=\"style\"\n :class=\"{ 'is-dragging': isDragging, 'is-docked': isDocked }\"\n >\n <div class=\"actionbar-content flex items-center\" ref=\"panelRef\">\n <span class=\"drag-handle cursor-move mr-2 p-0!\" ref=\"dragHandleRef\">\n </span>\n <ComfyQueueButton />\n <Divider layout=\"vertical\" class=\"mx-1\" />\n <ButtonGroup class=\"flex flex-nowrap\">\n <Button\n v-tooltip.bottom=\"$t('menu.refresh')\"\n icon=\"pi pi-refresh\"\n severity=\"secondary\"\n text\n @click=\"() => commandStore.execute('Comfy.RefreshNodeDefinitions')\"\n />\n </ButtonGroup>\n </div>\n </Panel>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject, nextTick, onMounted, Ref, ref, watch } from 'vue'\nimport Panel from 'primevue/panel'\nimport Divider from 'primevue/divider'\nimport Button from 'primevue/button'\nimport ButtonGroup from 'primevue/buttongroup'\nimport ComfyQueueButton from './ComfyQueueButton.vue'\nimport { useSettingStore } from '@/stores/settingStore'\nimport { useCommandStore } from '@/stores/commandStore'\nimport {\n useDraggable,\n useElementBounding,\n useEventBus,\n useEventListener,\n useLocalStorage,\n watchDebounced\n} from '@vueuse/core'\nimport { clamp } from 'lodash'\n\nconst settingsStore = useSettingStore()\nconst commandStore = useCommandStore()\n\nconst visible = computed(\n () => settingsStore.get('Comfy.UseNewMenu') !== 'Disabled'\n)\n\nconst panelRef = ref<HTMLElement | null>(null)\nconst dragHandleRef = ref<HTMLElement | null>(null)\nconst isDocked = useLocalStorage('Comfy.MenuPosition.Docked', false)\nconst storedPosition = useLocalStorage('Comfy.MenuPosition.Floating', {\n x: 0,\n y: 0\n})\nconst {\n x,\n y,\n style: style,\n isDragging\n} = useDraggable(panelRef, {\n initialValue: { x: 0, y: 0 },\n handle: dragHandleRef,\n containerElement: document.body\n})\n\n// Update storedPosition when x or y changes\nwatchDebounced(\n [x, y],\n ([newX, newY]) => {\n storedPosition.value = { x: newX, y: newY }\n },\n { debounce: 300 }\n)\n\n// Set initial position to bottom center\nconst setInitialPosition = () => {\n if (x.value !== 0 || y.value !== 0) {\n return\n }\n if (storedPosition.value.x !== 0 || storedPosition.value.y !== 0) {\n x.value = storedPosition.value.x\n y.value = storedPosition.value.y\n return\n }\n if (panelRef.value) {\n const screenWidth = window.innerWidth\n const screenHeight = window.innerHeight\n const menuWidth = panelRef.value.offsetWidth\n const menuHeight = panelRef.value.offsetHeight\n\n if (menuWidth === 0 || menuHeight === 0) {\n return\n }\n\n x.value = (screenWidth - menuWidth) / 2\n y.value = screenHeight - menuHeight - 10 // 10px margin from bottom\n }\n}\nonMounted(setInitialPosition)\nwatch(visible, (newVisible) => {\n if (newVisible) {\n nextTick(setInitialPosition)\n }\n})\n\nconst adjustMenuPosition = () => {\n if (panelRef.value) {\n const screenWidth = window.innerWidth\n const screenHeight = window.innerHeight\n const menuWidth = panelRef.value.offsetWidth\n const menuHeight = panelRef.value.offsetHeight\n\n // Adjust x position if menu is off-screen horizontally\n x.value = clamp(x.value, 0, screenWidth - menuWidth)\n\n // Adjust y position if menu is off-screen vertically\n y.value = clamp(y.value, 0, screenHeight - menuHeight)\n }\n}\n\nuseEventListener(window, 'resize', adjustMenuPosition)\n\nconst topMenuRef = inject<Ref<HTMLDivElement | null>>('topMenuRef')\nconst topMenuBounds = useElementBounding(topMenuRef)\nconst overlapThreshold = 20 // pixels\nconst isOverlappingWithTopMenu = computed(() => {\n if (!panelRef.value) {\n return false\n }\n const { height } = panelRef.value.getBoundingClientRect()\n const actionbarBottom = y.value + height\n const topMenuBottom = topMenuBounds.bottom.value\n\n const overlapPixels =\n Math.min(actionbarBottom, topMenuBottom) -\n Math.max(y.value, topMenuBounds.top.value)\n return overlapPixels > overlapThreshold\n})\n\nwatch(isDragging, (newIsDragging) => {\n if (!newIsDragging) {\n // Stop dragging\n isDocked.value = isOverlappingWithTopMenu.value\n } else {\n // Start dragging\n isDocked.value = false\n }\n})\n\nconst eventBus = useEventBus<string>('topMenu')\nwatch([isDragging, isOverlappingWithTopMenu], ([dragging, overlapping]) => {\n eventBus.emit('updateHighlight', {\n isDragging: dragging,\n isOverlapping: overlapping\n })\n})\n</script>\n\n<style scoped>\n.actionbar {\n pointer-events: all;\n position: fixed;\n z-index: 1000;\n}\n\n.actionbar.is-docked {\n position: static;\n @apply bg-transparent border-none p-0;\n}\n\n.actionbar.is-dragging {\n user-select: none;\n}\n\n:deep(.p-panel-content) {\n @apply p-1;\n}\n\n:deep(.p-panel-header) {\n display: none;\n}\n</style>\n","<template>\n <teleport :to=\"teleportTarget\">\n <div\n ref=\"topMenuRef\"\n class=\"comfyui-menu flex items-center\"\n v-show=\"betaMenuEnabled\"\n :class=\"{ dropzone: isDropZone, 'dropzone-active': isDroppable }\"\n >\n <h1 class=\"comfyui-logo mx-2\">ComfyUI</h1>\n <CommandMenubar />\n <Divider layout=\"vertical\" class=\"mx-2\" />\n <div class=\"flex-grow\">\n <WorkflowTabs v-if=\"workflowTabsPosition === 'Topbar'\" />\n </div>\n <div class=\"comfyui-menu-right\" ref=\"menuRight\"></div>\n <Actionbar />\n </div>\n </teleport>\n</template>\n\n<script setup lang=\"ts\">\nimport Divider from 'primevue/divider'\nimport WorkflowTabs from '@/components/topbar/WorkflowTabs.vue'\nimport CommandMenubar from '@/components/topbar/CommandMenubar.vue'\nimport Actionbar from '@/components/actionbar/ComfyActionbar.vue'\nimport { computed, onMounted, provide, ref } from 'vue'\nimport { useSettingStore } from '@/stores/settingStore'\nimport { app } from '@/scripts/app'\nimport { useEventBus } from '@vueuse/core'\n\nconst settingStore = useSettingStore()\nconst workflowTabsPosition = computed(() =>\n settingStore.get('Comfy.Workflow.WorkflowTabsPosition')\n)\nconst betaMenuEnabled = computed(\n () => settingStore.get('Comfy.UseNewMenu') !== 'Disabled'\n)\nconst teleportTarget = computed(() =>\n settingStore.get('Comfy.UseNewMenu') === 'Top'\n ? '.comfyui-body-top'\n : '.comfyui-body-bottom'\n)\n\nconst menuRight = ref<HTMLDivElement | null>(null)\n// Menu-right holds legacy topbar elements attached by custom scripts\nonMounted(() => {\n if (menuRight.value) {\n menuRight.value.appendChild(app.menu.element)\n }\n})\n\nconst topMenuRef = ref<HTMLDivElement | null>(null)\nprovide('topMenuRef', topMenuRef)\nconst eventBus = useEventBus<string>('topMenu')\nconst isDropZone = ref(false)\nconst isDroppable = ref(false)\neventBus.on((event: string, payload: any) => {\n if (event === 'updateHighlight') {\n isDropZone.value = payload.isDragging\n isDroppable.value = payload.isOverlapping && payload.isDragging\n }\n})\n</script>\n\n<style scoped>\n.comfyui-menu {\n width: 100vw;\n background: var(--comfy-menu-bg);\n color: var(--fg-color);\n font-family: Arial, Helvetica, sans-serif;\n font-size: 0.8em;\n box-sizing: border-box;\n z-index: 1000;\n order: 0;\n grid-column: 1/-1;\n max-height: 90vh;\n}\n\n.comfyui-menu.dropzone {\n background: var(--p-highlight-background);\n}\n\n.comfyui-menu.dropzone-active {\n background: var(--p-highlight-background-focus);\n}\n\n.comfyui-logo {\n font-size: 1.2em;\n user-select: none;\n cursor: default;\n}\n</style>\n","import {\n useQueueSettingsStore,\n useQueuePendingTaskCountStore\n} from '@/stores/queueStore'\nimport { app } from '@/scripts/app'\nimport { api } from '@/scripts/api'\n\nexport function setupAutoQueueHandler() {\n const queueCountStore = useQueuePendingTaskCountStore()\n const queueSettingsStore = useQueueSettingsStore()\n\n let graphHasChanged = false\n let internalCount = 0 // Use an internal counter here so it is instantly updated when re-queuing\n api.addEventListener('graphChanged', () => {\n if (queueSettingsStore.mode === 'change') {\n if (internalCount) {\n graphHasChanged = true\n } else {\n graphHasChanged = false\n app.queuePrompt(0, queueSettingsStore.batchCount)\n internalCount++\n }\n }\n })\n\n queueCountStore.$subscribe(\n () => {\n internalCount = queueCountStore.count\n if (!internalCount && !app.lastExecutionError) {\n if (\n queueSettingsStore.mode === 'instant' ||\n (queueSettingsStore.mode === 'change' && graphHasChanged)\n ) {\n graphHasChanged = false\n app.queuePrompt(0, queueSettingsStore.batchCount)\n }\n }\n },\n { detached: true }\n )\n}\n","<template>\n <!-- Top menu bar needs to load before the GraphCanvas as it needs to host\n the menu buttons added by legacy extension scripts.-->\n <TopMenubar />\n <GraphCanvas />\n <GlobalToast />\n <UnloadWindowConfirmDialog />\n <BrowserTabTitle />\n</template>\n\n<script setup lang=\"ts\">\nimport GraphCanvas from '@/components/graph/GraphCanvas.vue'\n\nimport {\n computed,\n markRaw,\n onMounted,\n onBeforeUnmount,\n watch,\n watchEffect\n} from 'vue'\nimport { app } from '@/scripts/app'\nimport { useSettingStore } from '@/stores/settingStore'\nimport { useI18n } from 'vue-i18n'\nimport { useWorkspaceStore } from '@/stores/workspaceStateStore'\nimport { api } from '@/scripts/api'\nimport { StatusWsMessageStatus } from '@/types/apiTypes'\nimport { useQueuePendingTaskCountStore } from '@/stores/queueStore'\nimport type { ToastMessageOptions } from 'primevue/toast'\nimport { useToast } from 'primevue/usetoast'\nimport { i18n } from '@/i18n'\nimport { useExecutionStore } from '@/stores/executionStore'\nimport {\n useWorkflowStore,\n useWorkflowBookmarkStore\n} from '@/stores/workflowStore'\nimport QueueSidebarTab from '@/components/sidebar/tabs/QueueSidebarTab.vue'\nimport NodeLibrarySidebarTab from '@/components/sidebar/tabs/NodeLibrarySidebarTab.vue'\nimport ModelLibrarySidebarTab from '@/components/sidebar/tabs/ModelLibrarySidebarTab.vue'\nimport GlobalToast from '@/components/toast/GlobalToast.vue'\nimport UnloadWindowConfirmDialog from '@/components/dialog/UnloadWindowConfirmDialog.vue'\nimport BrowserTabTitle from '@/components/BrowserTabTitle.vue'\nimport WorkflowsSidebarTab from '@/components/sidebar/tabs/WorkflowsSidebarTab.vue'\nimport TopMenubar from '@/components/topbar/TopMenubar.vue'\nimport { setupAutoQueueHandler } from '@/services/autoQueueService'\nimport { useKeybindingStore } from '@/stores/keybindingStore'\n\nsetupAutoQueueHandler()\n\nconst { t } = useI18n()\nconst toast = useToast()\nconst settingStore = useSettingStore()\nconst executionStore = useExecutionStore()\n\nconst theme = computed<string>(() => settingStore.get('Comfy.ColorPalette'))\n\nwatch(\n theme,\n (newTheme) => {\n const DARK_THEME_CLASS = 'dark-theme'\n const isDarkTheme = newTheme !== 'light'\n if (isDarkTheme) {\n document.body.classList.add(DARK_THEME_CLASS)\n } else {\n document.body.classList.remove(DARK_THEME_CLASS)\n }\n },\n { immediate: true }\n)\n\nwatchEffect(() => {\n const fontSize = settingStore.get('Comfy.TextareaWidget.FontSize')\n document.documentElement.style.setProperty(\n '--comfy-textarea-font-size',\n `${fontSize}px`\n )\n})\n\nwatchEffect(() => {\n const padding = settingStore.get('Comfy.TreeExplorer.ItemPadding')\n document.documentElement.style.setProperty(\n '--comfy-tree-explorer-item-padding',\n `${padding}px`\n )\n})\n\nwatchEffect(() => {\n const locale = settingStore.get('Comfy.Locale')\n if (locale) {\n i18n.global.locale.value = locale as 'en' | 'zh'\n }\n})\n\nwatchEffect(() => {\n const useNewMenu = settingStore.get('Comfy.UseNewMenu')\n if (useNewMenu === 'Disabled') {\n app.ui.menuContainer.style.removeProperty('display')\n app.ui.restoreMenuPosition()\n } else {\n app.ui.menuContainer.style.setProperty('display', 'none')\n }\n})\n\nconst init = () => {\n settingStore.addSettings(app.ui.settings)\n useKeybindingStore().loadCoreKeybindings()\n\n app.extensionManager = useWorkspaceStore()\n app.extensionManager.registerSidebarTab({\n id: 'queue',\n icon: 'pi pi-history',\n iconBadge: () => {\n const value = useQueuePendingTaskCountStore().count.toString()\n return value === '0' ? null : value\n },\n title: t('sideToolbar.queue'),\n tooltip: t('sideToolbar.queue'),\n component: markRaw(QueueSidebarTab),\n type: 'vue'\n })\n app.extensionManager.registerSidebarTab({\n id: 'node-library',\n icon: 'pi pi-book',\n title: t('sideToolbar.nodeLibrary'),\n tooltip: t('sideToolbar.nodeLibrary'),\n component: markRaw(NodeLibrarySidebarTab),\n type: 'vue'\n })\n app.extensionManager.registerSidebarTab({\n id: 'model-library',\n icon: 'pi pi-box',\n title: t('sideToolbar.modelLibrary'),\n tooltip: t('sideToolbar.modelLibrary'),\n component: markRaw(ModelLibrarySidebarTab),\n type: 'vue'\n })\n app.extensionManager.registerSidebarTab({\n id: 'workflows',\n icon: 'pi pi-folder-open',\n iconBadge: () => {\n if (\n settingStore.get('Comfy.Workflow.WorkflowTabsPosition') !== 'Sidebar'\n ) {\n return null\n }\n const value = useWorkflowStore().openWorkflows.length.toString()\n return value === '0' ? null : value\n },\n title: t('sideToolbar.workflows'),\n tooltip: t('sideToolbar.workflows'),\n component: markRaw(WorkflowsSidebarTab),\n type: 'vue'\n })\n}\n\nconst queuePendingTaskCountStore = useQueuePendingTaskCountStore()\nconst onStatus = (e: CustomEvent<StatusWsMessageStatus>) => {\n queuePendingTaskCountStore.update(e)\n}\n\nconst reconnectingMessage: ToastMessageOptions = {\n severity: 'error',\n summary: t('reconnecting')\n}\n\nconst onReconnecting = () => {\n toast.remove(reconnectingMessage)\n toast.add(reconnectingMessage)\n}\n\nconst onReconnected = () => {\n toast.remove(reconnectingMessage)\n toast.add({\n severity: 'success',\n summary: t('reconnected'),\n life: 2000\n })\n}\n\nconst workflowStore = useWorkflowStore()\nconst workflowBookmarkStore = useWorkflowBookmarkStore()\napp.workflowManager.executionStore = executionStore\napp.workflowManager.workflowStore = workflowStore\napp.workflowManager.workflowBookmarkStore = workflowBookmarkStore\n\nonMounted(() => {\n api.addEventListener('status', onStatus)\n api.addEventListener('reconnecting', onReconnecting)\n api.addEventListener('reconnected', onReconnected)\n executionStore.bindExecutionEvents()\n\n try {\n init()\n } catch (e) {\n console.error('Failed to init ComfyUI frontend', e)\n }\n})\n\nonBeforeUnmount(() => {\n api.removeEventListener('status', onStatus)\n api.removeEventListener('reconnecting', onReconnecting)\n api.removeEventListener('reconnected', onReconnected)\n executionStore.unbindExecutionEvents()\n})\n</script>\n"],"names":["inputValue","start","node","theme","classes","script$1","Badge","provide","script","render","item","inlineStyles","root","BaseComponent","_toConsumableArray","_arrayWithoutHoles","_iterableToArray","_unsupportedIterableToArray","_nonIterableSpread","_arrayLikeToArray","panel","index","step","panels","_hoisted_1","_hoisted_2","createElementVNode","data","getPTOptions","_typeof$1","o","mounted","beforeUnmount","option","_hide","_","label","InputText","VirtualScroller","Portal","ChevronDownIcon","SpinnerIcon","Chip","_typeof","ownKeys","r","_objectSpread","_defineProperty","_toPropertyKey","_toPrimitive","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","onRemove","ref","onClick","_sfc_main","AutoComplete","onChange","_createForOfIteratorHelper","F","e","getOptionLabel","getOptionValue","getOptionRenderKey","isOptionDisabled","onOptionSelect","selected","isSelected","equalityKey","ToggleButton","bookmarks","suggestions","search","comfyApp","arrayLikeToArray","arrayWithHoles","iterableToArrayLimit","unsupportedIterableToArray","nonIterableRest","bind_1","this","bindAll_1","require$$0","require$$1","bind","bindAll","arrayWithoutHoles","iterableToArray","nonIterableSpread","isFirefox","isSafari","onDragEnd","rafSchd","wrapperFn","next","event","mount","addToRegistry","record","active","dispatchEventToSource","registerUsage","api","isAndroid","repeat","widget","alignOverlay","bindOutsideClickListener","unbindOutsideClickListener","bindScrollListener","unbindScrollListener","bindResizeListener","unbindResizeListener","focus","onOverlayClick","Button","script$2","getAriaPosInset","onEnter","AngleRightIcon","render$1","$attrsId","getItemProp","getItemLabel","isItemDisabled","isItemVisible","isItemGroup","show","hide","onFocus","onBlur","onKeyDown","activeItemPath","onItemClick","onItemMouseEnter","onItemMouseMove","onArrowDownKey","onArrowUpKey","onArrowLeftKey","onArrowRightKey","onHomeKey","onEndKey","onEnterKey","onEscapeKey","onTabKey","onAfterEnter","onLeave","onAfterLeave","scrollInView","processedItems","containerRef","listRef","activeIndex","BaseIcon","script$4","_toConsumableArray$1","_arrayWithoutHoles$1","_iterableToArray$1","_unsupportedIterableToArray$1","_nonIterableSpread$1","_arrayLikeToArray$1","script$3","ChevronLeftIcon","ChevronRightIcon","_hoisted_1$3","_hoisted_2$2","_hoisted_3$2","_hoisted_4$1","render$3","updated","stopSlideShow","navBackward","navForward","onRightKey","onLeftKey","findFocusedIndicatorIndex","changedFocusedIndicator","data2","isNavBackwardDisabled","isNavForwardDisabled","isItemActive","ariaPageLabel","ChevronUpIcon","_typeof$2","ownKeys$2","_objectSpread$2","_defineProperty$2","_toPropertyKey$2","_toPrimitive$2","_hoisted_1$2","_hoisted_2$1","_hoisted_3$1","render$2","ownKeys$1","_objectSpread$1","_defineProperty$1","_toPropertyKey$1","_toPrimitive$1","position","TimesIcon","_hoisted_1$1","toggle","isTargetClicked","createStyle","onTouchEnd","Checkbox","CheckIcon","MinusIcon","InputIcon","IconField","SearchIcon","expandedKeys","_useModel","handler","updateModel","onOverlayEnter","onOverlayLeave","onOverlayAfterLeave","isInputClicked","f","message","InfoCircleIcon","ExclamationTriangleIcon","TimesCircleIcon","closeAriaLabel","destroyStyle","attributeSelector","workflow","getItemId","getItemKey","getItemLabelId","isItemFocused","getMenuItemProps","getAriaSetSize","AngleDownIcon","isItemSeparator","getProccessedItemLabel","isProccessedItemGroup","onItemChange","onSpaceKey","isItemMatched","isValidItem","isValidSelectedItem","findFirstItemIndex","findLastItemIndex","findNextItemIndex","findPrevItemIndex","findSelectedItemIndex","findFirstFocusedItemIndex","findLastFocusedItemIndex","searchItems","changeFocusedItemIndex","create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AM;AAC3B,YAAM,OAAO,mBAAmB;AAChC,YAAM,IAAI,mBAAmB;AAAA,IAAA,GAFR;AAKvB,UAAM,gBAAgB,6BAAM;AAC1B,YAAM,OAAO,mBAAmB;AAChC,YAAM,IAAI;AAAA,QACR,UAAU;AAAA,QACV,SAAS,EAAE,aAAa;AAAA,QACxB,MAAM;AAAA,MAAA,CACP;AAAA,IAAA,GANmB;AAStB,UAAM,gBAAgB;AACtB,UAAM,wBAAwB;AAC9B,QAAI,gBAAgB,iBAAiB;AACrC,QAAI,gBAAgB,gBAAgB;AACpC,QAAI,gBAAgB,wBAAwB;AAE5C,cAAU,MAAM;AACV,UAAA,iBAAiB,UAAU,QAAQ;AACnC,UAAA,iBAAiB,gBAAgB,cAAc;AAC/C,UAAA,iBAAiB,eAAe,aAAa;AACjD,qBAAe,oBAAoB;AAE/B,UAAA;AACG;eACE,GAAG;AACF,gBAAA,MAAM,mCAAmC,CAAC;AAAA,MACpD;AAAA,IAAA,CACD;AAED,oBAAgB,MAAM;AAChB,UAAA,oBAAoB,UAAU,QAAQ;AACtC,UAAA,oBAAoB,gBAAgB,cAAc;AAClD,UAAA,oBAAoB,eAAe,aAAa;AACpD,qBAAe,sBAAsB;AAAA,IAAA,CACtC;;;;;;;;;;;;","x_google_ignoreList":[2,3,8,9,10,11,13,14,16,17,18,19,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,77,78,79,80,84,85,86,88,89,92,93,94,95,100,101,109,110,118,119,121,122,123,124,125,126]} |