{"version":3,"file":"vue-sidebar-menu-CCf7xgdF.js","sources":["../../node_modules/vue-sidebar-menu/dist/vue-sidebar-menu.esm.js"],"sourcesContent":["import { toRefs, ref, reactive, computed, provide, inject, getCurrentInstance, watch, resolveComponent, openBlock, createElementBlock, normalizeProps, mergeProps, renderSlot, createBlock, withCtx, createElementVNode, resolveDynamicComponent, createTextVNode, toDisplayString, unref, guardReactiveProps, toHandlers, Transition, normalizeStyle, createCommentVNode, normalizeClass, Fragment, renderList, onMounted, onUnmounted, createVNode, withDirectives, vShow, nextTick } from 'vue';\n\nvar initSidebar = function initSidebar(props, emits) {\n var _toRefs = toRefs(props),\n collapsed = _toRefs.collapsed,\n relative = _toRefs.relative,\n width = _toRefs.width,\n widthCollapsed = _toRefs.widthCollapsed,\n rtl = _toRefs.rtl;\n var sidebarRef = ref(null);\n var isCollapsed = ref(collapsed.value);\n var mobileItem = reactive({\n item: null,\n rect: {\n top: 0,\n height: 0,\n padding: [0, 0],\n maxHeight: 0,\n maxWidth: 0,\n dropup: 0\n },\n timeout: null\n });\n var getMobileItem = computed(function () {\n return mobileItem.item;\n });\n var getMobileItemRect = computed(function () {\n return mobileItem.rect;\n });\n var currentRoute = ref('');\n var updateIsCollapsed = function updateIsCollapsed(val) {\n isCollapsed.value = val;\n };\n var setMobileItem = function setMobileItem(_ref) {\n var item = _ref.item,\n itemEl = _ref.itemEl;\n clearMobileItemTimeout();\n var linkEl = itemEl.children[0];\n var rect = getMobileItemRectFromEl(linkEl);\n updateMobileItem(item);\n updateMobileItemRect(rect);\n };\n var getMobileItemRectFromEl = function getMobileItemRectFromEl(el) {\n var _el$getBoundingClient = el.getBoundingClientRect(),\n elTop = _el$getBoundingClient.top,\n elBottom = _el$getBoundingClient.bottom,\n elHeight = _el$getBoundingClient.height;\n var _sidebarRef$value$get = sidebarRef.value.getBoundingClientRect(),\n sidebarLeft = _sidebarRef$value$get.left,\n sidebarRight = _sidebarRef$value$get.right;\n var _sidebarRef$value$fir = sidebarRef.value.firstElementChild.getBoundingClientRect(),\n wrapperBottom = _sidebarRef$value$fir.bottom,\n wrapperHeight = _sidebarRef$value$fir.height;\n var scrollWrapperEl = el.offsetParent;\n var scrollWrapperOffsetTop = scrollWrapperEl.offsetTop;\n var _scrollWrapperEl$getB = scrollWrapperEl.getBoundingClientRect(),\n scrollWrapperTop = _scrollWrapperEl$getB.top,\n scrollWrapperHeight = _scrollWrapperEl$getB.height;\n var parentHeight = window.innerHeight;\n var parentWidth = window.innerWidth;\n var parentTop = 0;\n var parentRight = parentWidth;\n var maxWidth = parseInt(width.value) - parseInt(widthCollapsed.value);\n if (relative.value) {\n var parent = sidebarRef.value.parentElement;\n parentHeight = parent.clientHeight;\n parentWidth = parent.clientWidth;\n parentTop = parent.getBoundingClientRect().top;\n parentRight = parent.getBoundingClientRect().right;\n }\n var rectWidth = rtl.value ? parentWidth - (parentRight - sidebarLeft) : parentRight - sidebarRight;\n maxWidth = rectWidth <= maxWidth ? rectWidth : maxWidth;\n var _window$getComputedSt = window.getComputedStyle(el),\n pl = _window$getComputedSt.paddingLeft,\n pr = _window$getComputedSt.paddingRight;\n var paddingLeft = parseInt(pl);\n var paddingRight = parseInt(pr);\n var absoluteTop = elTop - scrollWrapperTop;\n var absoluteBottom = wrapperBottom - elTop - (wrapperHeight - (scrollWrapperHeight + scrollWrapperOffsetTop));\n var maxHeight = parentHeight - (elBottom - parentTop);\n var parentVisibleHeight = Math.min(window.innerHeight, window.innerHeight - parentTop, parentHeight, parentHeight + parentTop);\n var maxVisible = parentVisibleHeight - (Math.max(elBottom, 0) - Math.max(parentTop, 0));\n var dropup = maxVisible < parentVisibleHeight * 0.25 ? absoluteBottom : 0;\n maxHeight = dropup ? elTop - parentTop : maxHeight;\n return {\n top: absoluteTop,\n height: elHeight,\n padding: [paddingLeft, paddingRight],\n maxWidth: maxWidth,\n maxHeight: maxHeight,\n dropup: dropup\n };\n };\n var unsetMobileItem = function unsetMobileItem() {\n var immediate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 800;\n if (!getMobileItem.value) return;\n clearMobileItemTimeout();\n if (immediate) {\n updateMobileItem(null);\n return;\n }\n mobileItem.timeout = setTimeout(function () {\n updateMobileItem(null);\n }, delay);\n };\n var clearMobileItemTimeout = function clearMobileItemTimeout() {\n if (mobileItem.timeout) clearTimeout(mobileItem.timeout);\n };\n var updateMobileItem = function updateMobileItem(item) {\n mobileItem.item = item;\n };\n var updateMobileItemRect = function updateMobileItemRect(mobileItemRect) {\n Object.keys(mobileItem.rect).forEach(function (key) {\n mobileItem.rect[key] = mobileItemRect[key];\n });\n };\n var updateCurrentRoute = function updateCurrentRoute() {\n var route = window.location.pathname + window.location.search + window.location.hash;\n currentRoute.value = route;\n };\n var onItemClick = function onItemClick(event, item) {\n emits('item-click', event, item);\n };\n provide('vsmProps', props);\n provide('getSidebarRef', sidebarRef);\n provide('getIsCollapsed', isCollapsed);\n provide('getMobileItem', getMobileItem);\n provide('getMobileItemRect', getMobileItemRect);\n provide('getCurrentRoute', currentRoute);\n provide('updateIsCollapsed', updateIsCollapsed);\n provide('setMobileItem', setMobileItem);\n provide('unsetMobileItem', unsetMobileItem);\n provide('clearMobileItemTimeout', clearMobileItemTimeout);\n provide('onRouteChange', updateCurrentRoute);\n provide('emitItemClick', onItemClick);\n return {\n getSidebarRef: sidebarRef,\n getIsCollapsed: isCollapsed,\n getMobileItem: getMobileItem,\n getMobileItemRect: getMobileItemRect,\n getCurrentRoute: currentRoute,\n updateIsCollapsed: updateIsCollapsed,\n setMobileItem: setMobileItem,\n unsetMobileItem: unsetMobileItem,\n clearMobileItemTimeout: clearMobileItemTimeout,\n updateCurrentRoute: updateCurrentRoute,\n onItemClick: onItemClick\n };\n};\nvar useSidebar = function useSidebar() {\n return {\n getSidebarProps: inject('vsmProps'),\n getSidebarRef: inject('getSidebarRef'),\n getIsCollapsed: inject('getIsCollapsed'),\n getMobileItem: inject('getMobileItem'),\n getMobileItemRect: inject('getMobileItemRect'),\n getCurrentRoute: inject('getCurrentRoute'),\n updateIsCollapsed: inject('updateIsCollapsed'),\n setMobileItem: inject('setMobileItem'),\n unsetMobileItem: inject('unsetMobileItem'),\n clearMobileItemTimeout: inject('clearMobileItemTimeout'),\n onRouteChange: inject('onRouteChange'),\n emitItemClick: inject('emitItemClick')\n };\n};\n\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}\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n _defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\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}\nfunction _toPropertyKey(t) {\n var i = _toPrimitive(t, \"string\");\n return \"symbol\" == typeof i ? i : i + \"\";\n}\n\n// Adapted from vue-router-next\n// See: https://github.com/vuejs/vue-router-next/blob/master/src/RouterLink.ts\n\nfunction activeRecordIndex(route, currentRoute) {\n var matched = route.matched;\n var length = matched.length;\n var routeMatched = matched[length - 1];\n var currentMatched = currentRoute.matched;\n if (!routeMatched || !currentMatched.length) return -1;\n var index = currentMatched.findIndex(isSameRouteRecord.bind(null, routeMatched));\n if (index > -1) return index;\n var parentRecordPath = getOriginalPath(matched[length - 2]);\n return length > 1 && getOriginalPath(routeMatched) === parentRecordPath && currentMatched[currentMatched.length - 1].path !== parentRecordPath ? currentMatched.findIndex(isSameRouteRecord.bind(null, matched[length - 2])) : index;\n}\nfunction isSameRouteLocationParams(a, b) {\n if (Object.keys(a).length !== Object.keys(b).length) return false;\n for (var key in a) {\n if (!isSameRouteLocationParamsValue(a[key], b[key])) return false;\n }\n return true;\n}\nfunction includesParams(outer, inner) {\n var _loop = function _loop() {\n var innerValue = inner[key];\n var outerValue = outer[key];\n if (typeof innerValue === 'string') {\n if (innerValue !== outerValue) return {\n v: false\n };\n } else {\n if (!Array.isArray(outerValue) || outerValue.length !== innerValue.length || innerValue.some(function (value, i) {\n return value !== outerValue[i];\n })) {\n return {\n v: false\n };\n }\n }\n },\n _ret;\n for (var key in inner) {\n _ret = _loop();\n if (_ret) return _ret.v;\n }\n return true;\n}\nfunction getOriginalPath(record) {\n return record ? record.aliasOf ? record.aliasOf.path : record.path : '';\n}\nfunction isSameRouteRecord(a, b) {\n return (a.aliasOf || a) === (b.aliasOf || b);\n}\nfunction isSameRouteLocationParamsValue(a, b) {\n return Array.isArray(a) ? isEquivalentArray(a, b) : Array.isArray(b) ? isEquivalentArray(b, a) : a === b;\n}\nfunction isEquivalentArray(a, b) {\n return Array.isArray(b) ? a.length === b.length && a.every(function (value, i) {\n return value === b[i];\n }) : a.length === 1 && a[0] === b;\n}\n\nfunction useItem(props, emits) {\n var router = getCurrentInstance().appContext.config.globalProperties.$router;\n var _useSidebar = useSidebar(),\n sidebarProps = _useSidebar.getSidebarProps,\n isCollapsed = _useSidebar.getIsCollapsed,\n mobileItem = _useSidebar.getMobileItem,\n mobileItemRect = _useSidebar.getMobileItemRect,\n currentRoute = _useSidebar.getCurrentRoute,\n setMobileItem = _useSidebar.setMobileItem,\n unsetMobileItem = _useSidebar.unsetMobileItem,\n clearMobileItemTimeout = _useSidebar.clearMobileItemTimeout,\n emitItemClick = _useSidebar.emitItemClick;\n var emitScrollUpdate = inject('emitScrollUpdate');\n var itemShow = ref(false);\n var itemHover = ref(false);\n var active = computed(function () {\n return isLinkActive(props.item) || _isChildActive(props.item.child);\n });\n var exactActive = computed(function () {\n return isLinkActive(props.item, true);\n });\n var isLinkActive = function isLinkActive(item, exact) {\n if (item.isActive && typeof item.isActive === 'function') {\n var isActive = item.isActive(item);\n if (typeof isActive === 'boolean') {\n return isActive;\n }\n }\n if (!item.href || item.external) return false;\n if (router) {\n var route = router.resolve(item.href);\n var routerCurrentRoute = router.currentRoute.value;\n var activeIndex = activeRecordIndex(route, routerCurrentRoute);\n if (exact || item.exact) {\n return activeIndex > -1 && activeIndex === routerCurrentRoute.matched.length - 1 && isSameRouteLocationParams(routerCurrentRoute.params, route.params);\n }\n return activeIndex > -1 && includesParams(routerCurrentRoute.params, route.params);\n } else {\n return item.href === currentRoute.value;\n }\n };\n var _isChildActive = function isChildActive(child) {\n if (!child) return false;\n return child.some(function (item) {\n return isLinkActive(item) || _isChildActive(item.child);\n });\n };\n var onLinkClick = function onLinkClick(event) {\n if (!props.item.href || props.item.disabled) {\n event.preventDefault();\n if (props.item.disabled) return;\n }\n emitMobileItem(event, event.currentTarget.parentElement);\n if (hasChild.value) {\n if (!props.item.href || active.value) {\n show.value = !show.value;\n }\n }\n emitItemClick(event, props.item);\n };\n var onMouseOver = function onMouseOver(event) {\n if (props.item.disabled) return;\n event.stopPropagation();\n itemHover.value = true;\n };\n var onMouseOut = function onMouseOut(event) {\n event.stopPropagation();\n itemHover.value = false;\n };\n var onMouseEnter = function onMouseEnter(event) {\n if (props.item.disabled) return;\n if (sidebarProps.disableHover) {\n if (isMobileItem.value && hasChild.value) {\n clearMobileItemTimeout();\n }\n } else {\n clearMobileItemTimeout();\n emitMobileItem(event, event.currentTarget);\n }\n };\n var onMouseLeave = function onMouseLeave() {\n if (sidebarProps.disableHover && !hasChild.value) return;\n if (isMobileItem.value) {\n unsetMobileItem(false, !sidebarProps.disableHover ? 300 : undefined);\n }\n };\n var emitMobileItem = function emitMobileItem(event, itemEl) {\n if (isMobileItem.value) return;\n if (isCollapsed.value) {\n setTimeout(function () {\n if (isFirstLevel.value) {\n if (!isMobileItem.value) {\n setMobileItem({\n item: props.item,\n itemEl: itemEl\n });\n }\n }\n if (event.type === 'click' && !hasChild.value) {\n unsetMobileItem(false, !isFirstLevel.value ? 300 : undefined);\n }\n }, 0);\n }\n };\n var onExpandEnter = function onExpandEnter(el) {\n el.style.height = el.scrollHeight + 'px';\n };\n var onExpandAfterEnter = function onExpandAfterEnter(el) {\n el.style.height = 'auto';\n if (!isCollapsed.value) {\n emitScrollUpdate();\n }\n };\n var onExpandBeforeLeave = function onExpandBeforeLeave(el) {\n if (isCollapsed.value && isFirstLevel.value) {\n el.style.display = 'none';\n return;\n }\n el.style.height = el.scrollHeight + 'px';\n };\n var onExpandAfterLeave = function onExpandAfterLeave() {\n if (!isCollapsed.value) {\n emitScrollUpdate();\n }\n };\n var show = computed({\n get: function get() {\n if (!hasChild.value) return false;\n if (isCollapsed.value && isFirstLevel.value) return hover.value;\n if (sidebarProps.showChild) return true;\n if (sidebarProps.showOneChild && isFirstLevel.value || sidebarProps.showOneChild === 'deep') {\n return props.item.id === props.activeShow;\n } else {\n return itemShow.value;\n }\n },\n set: function set(show) {\n if (sidebarProps.showOneChild && isFirstLevel.value || sidebarProps.showOneChild === 'deep') {\n if (show) {\n emits('update-active-show', props.item.id);\n } else {\n emits('update-active-show', undefined);\n }\n }\n itemShow.value = show;\n }\n });\n var hover = computed(function () {\n return isCollapsed.value && isFirstLevel.value ? isMobileItem.value : itemHover.value;\n });\n var isFirstLevel = computed(function () {\n return props.level === 1;\n });\n var isHidden = computed(function () {\n if (isCollapsed.value) {\n if (props.item.hidden && props.item.hiddenOnCollapse === undefined) {\n return true;\n } else {\n return props.item.hiddenOnCollapse === true;\n }\n } else {\n return props.item.hidden === true;\n }\n });\n var hasChild = computed(function () {\n return !!(props.item.child && props.item.child.length > 0);\n });\n var linkClass = computed(function () {\n return ['vsm--link', \"vsm--link_level-\".concat(props.level), {\n 'vsm--link_mobile': isMobileItem.value,\n 'vsm--link_hover': hover.value,\n 'vsm--link_active': active.value,\n 'vsm--link_disabled': props.item.disabled,\n 'vsm--link_open': show.value\n }, props.item.class];\n });\n var linkAttrs = computed(function () {\n var href = props.item.href ? props.item.href : '#';\n var target = props.item.external ? '_blank' : '_self';\n var tabindex = props.item.disabled ? -1 : null;\n var ariaCurrent = exactActive.value ? 'page' : null;\n var ariaExpanded = hasChild.value ? show.value : null;\n var ariaControls = ariaExpanded ? \"vsm-\".concat(props.item.id) : null;\n return _objectSpread2({\n href: href,\n target: target,\n tabindex: tabindex,\n 'aria-current': ariaCurrent,\n 'aria-expanded': ariaExpanded,\n 'aria-controls': ariaControls\n }, props.item.attributes);\n });\n var childAttrs = computed(function () {\n return {\n id: \"vsm-\".concat(props.item.id)\n };\n });\n var itemClass = computed(function () {\n return ['vsm--item', {\n 'vsm--item_mobile': isMobileItem.value\n }];\n });\n var isMobileItem = computed(function () {\n var _mobileItem$value;\n return props.item.id === ((_mobileItem$value = mobileItem.value) === null || _mobileItem$value === void 0 ? void 0 : _mobileItem$value.id);\n });\n var mobileItemDropdownStyle = computed(function () {\n return _objectSpread2(_objectSpread2({\n position: 'absolute',\n 'max-height': \"\".concat(mobileItemRect.value.maxHeight, \"px\"),\n width: \"\".concat(mobileItemRect.value.maxWidth, \"px\"),\n 'overflow-y': 'auto'\n }, !mobileItemRect.value.dropup ? {\n top: \"\".concat(mobileItemRect.value.top + mobileItemRect.value.height, \"px\")\n } : {\n bottom: \"\".concat(mobileItemRect.value.dropup, \"px\")\n }), !sidebarProps.rtl ? {\n left: sidebarProps.widthCollapsed\n } : {\n right: sidebarProps.widthCollapsed\n });\n });\n var mobileItemStyle = computed(function () {\n return _objectSpread2(_objectSpread2({\n position: 'absolute',\n top: \"\".concat(mobileItemRect.value.top, \"px\")\n }, !sidebarProps.rtl ? {\n left: sidebarProps.widthCollapsed\n } : {\n right: sidebarProps.widthCollapsed\n }), {}, {\n width: \"\".concat(mobileItemRect.value.maxWidth, \"px\"),\n height: \"\".concat(mobileItemRect.value.height, \"px\"),\n 'padding-left': \"\".concat(mobileItemRect.value.padding[0], \"px\"),\n 'padding-right': \"\".concat(mobileItemRect.value.padding[1], \"px\"),\n 'z-index': '20'\n });\n });\n var mobileItemBackgroundStyle = computed(function () {\n return _objectSpread2(_objectSpread2({\n position: 'absolute',\n top: \"\".concat(mobileItemRect.value.top, \"px\")\n }, !sidebarProps.rtl ? {\n left: '0px'\n } : {\n right: '0px'\n }), {}, {\n width: \"\".concat(mobileItemRect.value.maxWidth + parseInt(sidebarProps.widthCollapsed), \"px\"),\n height: \"\".concat(mobileItemRect.value.height, \"px\"),\n 'z-index': '10'\n });\n });\n watch(function () {\n return active.value;\n }, function () {\n if (active.value) {\n show.value = true;\n }\n }, {\n immediate: true\n });\n return {\n active: active,\n exactActive: exactActive,\n show: show,\n hover: hover,\n isFirstLevel: isFirstLevel,\n isHidden: isHidden,\n hasChild: hasChild,\n linkClass: linkClass,\n linkAttrs: linkAttrs,\n childAttrs: childAttrs,\n itemClass: itemClass,\n isMobileItem: isMobileItem,\n mobileItemDropdownStyle: mobileItemDropdownStyle,\n mobileItemStyle: mobileItemStyle,\n mobileItemBackgroundStyle: mobileItemBackgroundStyle,\n onLinkClick: onLinkClick,\n onMouseOver: onMouseOver,\n onMouseOut: onMouseOut,\n onMouseEnter: onMouseEnter,\n onMouseLeave: onMouseLeave,\n onExpandEnter: onExpandEnter,\n onExpandAfterEnter: onExpandAfterEnter,\n onExpandBeforeLeave: onExpandBeforeLeave,\n onExpandAfterLeave: onExpandAfterLeave\n };\n}\n\nconst _hoisted_1$2 = [\"href\", \"onClick\"];\n\r\n\r\nconst __default__$5 = {\r\n compatConfig: {\r\n MODE: 3,\r\n inheritAttrs: false,\r\n },\r\n};\r\n\nvar script$5 = /*@__PURE__*/Object.assign(__default__$5, {\n __name: 'SidebarMenuLink',\n props: {\r\n item: {\r\n type: Object,\r\n required: true,\r\n },\r\n},\n setup(__props) {\n\r\nconst props = __props;\r\n\r\nconst router = getCurrentInstance().appContext.config.globalProperties.$router;\r\n\r\nconst isHyperLink = computed(() => {\r\n return !!(!props.item.href || props.item.external || !router)\r\n});\r\n\nreturn (_ctx, _cache) => {\n const _component_router_link = resolveComponent(\"router-link\");\n\n return (isHyperLink.value)\n ? (openBlock(), createElementBlock(\"a\", normalizeProps(mergeProps({ key: 0 }, _ctx.$attrs)), [\n renderSlot(_ctx.$slots, \"default\")\n ], 16 /* FULL_PROPS */))\n : (openBlock(), createBlock(_component_router_link, {\n key: 1,\n custom: \"\",\n to: _ctx.$attrs.href\n }, {\n default: withCtx(({ href, navigate }) => [\n createElementVNode(\"a\", mergeProps(_ctx.$attrs, {\n href: href,\n onClick: navigate\n }), [\n renderSlot(_ctx.$slots, \"default\")\n ], 16 /* FULL_PROPS */, _hoisted_1$2)\n ]),\n _: 3 /* FORWARDED */\n }, 8 /* PROPS */, [\"to\"]))\n}\n}\n\n});\n\nscript$5.__file = \"src/components/SidebarMenuLink.vue\";\n\nconst __default__$4 = {\r\n compatConfig: { MODE: 3 },\r\n};\r\n\nvar script$4 = /*@__PURE__*/Object.assign(__default__$4, {\n __name: 'SidebarMenuIcon',\n props: {\r\n icon: {\r\n type: [String, Object],\r\n default: '',\r\n },\r\n},\n setup(__props) {\n\r\nconst props = __props;\r\n\r\nconst attributes = computed(() => {\r\n return {\r\n class: [\r\n 'vsm--icon',\r\n typeof props.icon === 'object' ? props.icon.class : props.icon,\r\n ],\r\n 'aria-hidden': true,\r\n ...props.icon.attributes,\r\n }\r\n});\r\n\nreturn (_ctx, _cache) => {\n return (typeof __props.icon === 'object' && __props.icon.text)\n ? (openBlock(), createBlock(resolveDynamicComponent(__props.icon.element ? __props.icon.element : 'i'), normalizeProps(mergeProps({ key: 0 }, attributes.value)), {\n default: withCtx(() => [\n createTextVNode(toDisplayString(__props.icon.text), 1 /* TEXT */)\n ]),\n _: 1 /* STABLE */\n }, 16 /* FULL_PROPS */))\n : (typeof __props.icon === 'object')\n ? (openBlock(), createBlock(resolveDynamicComponent(__props.icon.element ? __props.icon.element : 'i'), normalizeProps(mergeProps({ key: 1 }, attributes.value)), null, 16 /* FULL_PROPS */))\n : (openBlock(), createElementBlock(\"i\", normalizeProps(mergeProps({ key: 2 }, attributes.value)), null, 16 /* FULL_PROPS */))\n}\n}\n\n});\n\nscript$4.__file = \"src/components/SidebarMenuIcon.vue\";\n\nconst __default__$3 = {\r\n compatConfig: { MODE: 3 },\r\n};\r\n\nvar script$3 = /*@__PURE__*/Object.assign(__default__$3, {\n __name: 'SidebarMenuBadge',\n props: {\r\n badge: {\r\n type: Object,\r\n default: () => {},\r\n },\r\n},\n setup(__props) {\n\r\nconst props = __props;\r\n\r\nconst attributes = computed(() => {\r\n return {\r\n class: ['vsm--badge', props.badge.class],\r\n ...props.badge.attributes,\r\n }\r\n});\r\n\nreturn (_ctx, _cache) => {\n return (__props.badge.text)\n ? (openBlock(), createBlock(resolveDynamicComponent(__props.badge.element ? __props.badge.element : 'span'), normalizeProps(mergeProps({ key: 0 }, attributes.value)), {\n default: withCtx(() => [\n createTextVNode(toDisplayString(__props.badge.text), 1 /* TEXT */)\n ]),\n _: 1 /* STABLE */\n }, 16 /* FULL_PROPS */))\n : (openBlock(), createBlock(resolveDynamicComponent(__props.badge.element ? __props.badge.element : 'span'), normalizeProps(mergeProps({ key: 1 }, attributes.value)), null, 16 /* FULL_PROPS */))\n}\n}\n\n});\n\nscript$3.__file = \"src/components/SidebarMenuBadge.vue\";\n\nconst _hoisted_1$1 = { key: 0 };\nconst _hoisted_2$1 = { class: \"vsm--dropdown\" };\n\r\n\r\nconst __default__$2 = {\r\n compatConfig: { MODE: 3 },\r\n};\r\n\nvar script$2 = /*@__PURE__*/Object.assign(__default__$2, {\n __name: 'SidebarMenuItem',\n props: {\r\n item: {\r\n type: Object,\r\n required: true,\r\n },\r\n level: {\r\n type: Number,\r\n default: 1,\r\n },\r\n activeShow: {\r\n type: String,\r\n default: undefined,\r\n },\r\n},\n emits: ['update-active-show'],\n setup(__props, { emit: __emit }) {\n\r\nconst props = __props;\r\n\r\nconst emits = __emit;\r\n\r\nconst { getSidebarProps, getIsCollapsed: isCollapsed } = useSidebar();\r\nconst { linkComponentName } = toRefs(getSidebarProps);\r\nconst subActiveShow = ref(undefined);\r\n\r\nconst updateActiveShow = (id) => {\r\n subActiveShow.value = id;\r\n};\r\n\r\nconst {\r\n show,\r\n hover,\r\n isFirstLevel,\r\n isHidden,\r\n hasChild,\r\n linkClass,\r\n linkAttrs,\r\n childAttrs,\r\n itemClass,\r\n isMobileItem,\r\n mobileItemStyle,\r\n mobileItemDropdownStyle,\r\n mobileItemBackgroundStyle,\r\n onLinkClick,\r\n onMouseOver,\r\n onMouseOut,\r\n onMouseEnter,\r\n onMouseLeave,\r\n onExpandEnter,\r\n onExpandAfterEnter,\r\n onExpandBeforeLeave,\r\n onExpandAfterLeave,\r\n} = useItem(props, emits);\r\n\nreturn (_ctx, _cache) => {\n const _component_sidebar_menu_item = resolveComponent(\"sidebar-menu-item\", true);\n\n return (__props.item.component && !unref(isHidden))\n ? (openBlock(), createElementBlock(\"li\", _hoisted_1$1, [\n (openBlock(), createBlock(resolveDynamicComponent(__props.item.component), normalizeProps(guardReactiveProps(__props.item.props)), null, 16 /* FULL_PROPS */))\n ]))\n : (__props.item.header && !unref(isHidden))\n ? (openBlock(), createElementBlock(\"li\", mergeProps({\n key: 1,\n class: ['vsm--header', __props.item.class]\n }, __props.item.attributes), toDisplayString(__props.item.header), 17 /* TEXT, FULL_PROPS */))\n : (!unref(isHidden))\n ? (openBlock(), createElementBlock(\"li\", mergeProps({\n key: 2,\n class: unref(itemClass),\n onMouseover: _cache[0] || (_cache[0] = (...args) => (unref(onMouseOver) && unref(onMouseOver)(...args))),\n onMouseout: _cache[1] || (_cache[1] = (...args) => (unref(onMouseOut) && unref(onMouseOut)(...args)))\n }, toHandlers(\r\n unref(isCollapsed) && unref(isFirstLevel)\r\n ? { mouseenter: unref(onMouseEnter), mouseleave: unref(onMouseLeave) }\r\n : {}\r\n , true)), [\n (openBlock(), createBlock(resolveDynamicComponent(unref(linkComponentName) ? unref(linkComponentName) : script$5), mergeProps({\n item: __props.item,\n class: unref(linkClass)\n }, unref(linkAttrs), { onClick: unref(onLinkClick) }), {\n default: withCtx(() => [\n (unref(isCollapsed) && unref(isFirstLevel))\n ? (openBlock(), createBlock(Transition, {\n key: 0,\n name: \"slide-animation\"\n }, {\n default: withCtx(() => [\n (unref(hover))\n ? (openBlock(), createElementBlock(\"div\", {\n key: 0,\n class: \"vsm--mobile-bg\",\n style: normalizeStyle(unref(mobileItemBackgroundStyle))\n }, null, 4 /* STYLE */))\n : createCommentVNode(\"v-if\", true)\n ]),\n _: 1 /* STABLE */\n }))\n : createCommentVNode(\"v-if\", true),\n (__props.item.icon)\n ? (openBlock(), createBlock(script$4, {\n key: 1,\n icon: __props.item.icon\n }, null, 8 /* PROPS */, [\"icon\"]))\n : createCommentVNode(\"v-if\", true),\n createElementVNode(\"div\", {\n class: normalizeClass([\r\n 'vsm--title',\r\n unref(isCollapsed) && unref(isFirstLevel) && !unref(isMobileItem) && 'vsm--title_hidden',\r\n ]),\n style: normalizeStyle(unref(isMobileItem) && unref(mobileItemStyle))\n }, [\n createElementVNode(\"span\", null, toDisplayString(__props.item.title), 1 /* TEXT */),\n (__props.item.badge)\n ? (openBlock(), createBlock(script$3, {\n key: 0,\n badge: __props.item.badge\n }, null, 8 /* PROPS */, [\"badge\"]))\n : createCommentVNode(\"v-if\", true),\n (unref(hasChild))\n ? (openBlock(), createElementBlock(\"div\", {\n key: 1,\n class: normalizeClass(['vsm--arrow', { 'vsm--arrow_open': unref(show) }])\n }, [\n renderSlot(_ctx.$slots, \"dropdown-icon\", normalizeProps(guardReactiveProps({ isOpen: unref(show) })))\n ], 2 /* CLASS */))\n : createCommentVNode(\"v-if\", true)\n ], 6 /* CLASS, STYLE */)\n ]),\n _: 3 /* FORWARDED */\n }, 16 /* FULL_PROPS */, [\"item\", \"class\", \"onClick\"])),\n (unref(hasChild))\n ? (openBlock(), createBlock(Transition, {\n key: 0,\n appear: unref(isMobileItem),\n name: \"expand\",\n onEnter: unref(onExpandEnter),\n onAfterEnter: unref(onExpandAfterEnter),\n onBeforeLeave: unref(onExpandBeforeLeave),\n onAfterLeave: unref(onExpandAfterLeave)\n }, {\n default: withCtx(() => [\n (unref(show))\n ? (openBlock(), createElementBlock(\"div\", mergeProps({\n key: 0,\n class: ['vsm--child', unref(isMobileItem) && 'vsm--child_mobile'],\n style: unref(isMobileItem) && unref(mobileItemDropdownStyle)\n }, unref(childAttrs)), [\n createElementVNode(\"ul\", _hoisted_2$1, [\n (openBlock(true), createElementBlock(Fragment, null, renderList(__props.item.child, (subItem) => {\n return (openBlock(), createBlock(_component_sidebar_menu_item, {\n key: subItem.id,\n item: subItem,\n level: __props.level + 1,\n \"active-show\": subActiveShow.value,\n onUpdateActiveShow: updateActiveShow\n }, {\n \"dropdown-icon\": withCtx(({ isOpen }) => [\n renderSlot(_ctx.$slots, \"dropdown-icon\", mergeProps({ ref_for: true }, { isOpen }))\n ]),\n _: 2 /* DYNAMIC */\n }, 1032 /* PROPS, DYNAMIC_SLOTS */, [\"item\", \"level\", \"active-show\"]))\n }), 128 /* KEYED_FRAGMENT */))\n ])\n ], 16 /* FULL_PROPS */))\n : createCommentVNode(\"v-if\", true)\n ]),\n _: 3 /* FORWARDED */\n }, 8 /* PROPS */, [\"appear\", \"onEnter\", \"onAfterEnter\", \"onBeforeLeave\", \"onAfterLeave\"]))\n : createCommentVNode(\"v-if\", true)\n ], 16 /* FULL_PROPS */))\n : createCommentVNode(\"v-if\", true)\n}\n}\n\n});\n\nscript$2.__file = \"src/components/SidebarMenuItem.vue\";\n\nconst __default__$1 = {\r\n compatConfig: { MODE: 3 },\r\n};\r\n\nvar script$1 = /*@__PURE__*/Object.assign(__default__$1, {\n __name: 'SidebarMenuScroll',\n setup(__props) {\n\r\nconst { getIsCollapsed: isCollapsed } = useSidebar();\r\n\r\nconst scrollRef = ref(null);\r\nconst scrollBarRef = ref(null);\r\nconst scrollThumbRef = ref(null);\r\n\r\nlet cursorY = 0;\r\nlet cursorDown = false;\r\n\r\nconst visible = ref(false);\r\n\r\nconst onScrollUpdate = () => {\r\n if (!scrollRef.value) return\r\n nextTick(() => {\r\n updateThumb();\r\n });\r\n};\r\n\r\nconst onScroll = () => {\r\n requestAnimationFrame(onScrollUpdate);\r\n};\r\n\r\nconst onClick = (e) => {\r\n const offset = Math.abs(\r\n scrollBarRef.value.getBoundingClientRect().y - e.clientY\r\n );\r\n const thumbHalf = scrollThumbRef.value.offsetHeight / 2;\r\n updateScrollTop(offset - thumbHalf);\r\n};\r\n\r\nconst onMouseDown = (e) => {\r\n e.stopImmediatePropagation();\r\n cursorDown = true;\r\n window.addEventListener('mousemove', onMouseMove);\r\n window.addEventListener('mouseup', onMouseUp);\r\n cursorY =\r\n scrollThumbRef.value.offsetHeight -\r\n (e.clientY - scrollThumbRef.value.getBoundingClientRect().y);\r\n};\r\n\r\nconst onMouseMove = (e) => {\r\n if (!cursorDown) return\r\n const offset = e.clientY - scrollBarRef.value.getBoundingClientRect().y;\r\n const thumbClickPosition = scrollThumbRef.value.offsetHeight - cursorY;\r\n visible.value = true;\r\n updateScrollTop(offset - thumbClickPosition);\r\n};\r\n\r\nconst onMouseUp = (e) => {\r\n cursorDown = false;\r\n cursorY = 0;\r\n visible.value = false;\r\n window.removeEventListener('mousemove', onMouseMove);\r\n window.removeEventListener('mouseup', onMouseUp);\r\n};\r\n\r\nconst onMouseIn = (e) => {\r\n visible.value = true;\r\n};\r\n\r\nconst onMouseLeave = (e) => {\r\n visible.value = false;\r\n};\r\n\r\nconst updateThumb = () => {\r\n const heightPerc =\r\n (scrollRef.value.clientHeight * 100) / scrollRef.value.scrollHeight;\r\n const thumbHeightPerc = heightPerc < 100 ? heightPerc : 0;\r\n const thumbYPerc =\r\n (scrollRef.value.scrollTop * 100) / scrollRef.value.clientHeight || 0;\r\n\r\n scrollThumbRef.value.style.height = `${thumbHeightPerc}%`;\r\n scrollThumbRef.value.style.transform = `translateY(${thumbYPerc}%)`;\r\n};\r\n\r\nconst updateScrollTop = (y) => {\r\n const scrollPerc = (y * 100) / scrollBarRef.value.offsetHeight;\r\n scrollRef.value.scrollTop = (scrollPerc * scrollRef.value.scrollHeight) / 100;\r\n};\r\n\r\nwatch(\r\n () => isCollapsed.value,\r\n () => {\r\n onScrollUpdate();\r\n }\r\n);\r\n\r\nonMounted(() => {\r\n onScrollUpdate();\r\n window.addEventListener('resize', onScrollUpdate);\r\n});\r\nonUnmounted(() => {\r\n window.removeEventListener('resize', onScrollUpdate);\r\n});\r\n\r\nprovide('emitScrollUpdate', onScrollUpdate);\r\n\nreturn (_ctx, _cache) => {\n return (openBlock(), createElementBlock(\"div\", {\n class: \"vsm--scroll-wrapper\",\n onMousemove: onMouseIn,\n onMouseleave: onMouseLeave\n }, [\n createElementVNode(\"div\", {\n ref_key: \"scrollRef\",\n ref: scrollRef,\n class: \"vsm--scroll\",\n onScroll: onScroll\n }, [\n renderSlot(_ctx.$slots, \"default\")\n ], 544 /* NEED_HYDRATION, NEED_PATCH */),\n createVNode(Transition, { persisted: \"\" }, {\n default: withCtx(() => [\n withDirectives(createElementVNode(\"div\", {\n ref_key: \"scrollBarRef\",\n ref: scrollBarRef,\n class: \"vsm--scroll-bar\",\n onMousedown: onClick\n }, [\n createElementVNode(\"div\", {\n ref_key: \"scrollThumbRef\",\n ref: scrollThumbRef,\n class: \"vsm--scroll-thumb\",\n onMousedown: onMouseDown\n }, null, 544 /* NEED_HYDRATION, NEED_PATCH */)\n ], 544 /* NEED_HYDRATION, NEED_PATCH */), [\n [vShow, visible.value]\n ])\n ]),\n _: 1 /* STABLE */\n })\n ], 32 /* NEED_HYDRATION */))\n}\n}\n\n});\n\nscript$1.__scopeId = \"data-v-402f9588\";\nscript$1.__file = \"src/components/SidebarMenuScroll.vue\";\n\nconst _hoisted_1 = { class: \"vsm--wrapper\" };\nconst _hoisted_2 = [\"aria-label\"];\n\r\n\r\nconst __default__ = {\r\n compatConfig: { MODE: 3 },\r\n};\r\n\nvar script = /*@__PURE__*/Object.assign(__default__, {\n __name: 'SidebarMenu',\n props: {\r\n menu: {\r\n type: Array,\r\n required: true,\r\n },\r\n collapsed: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n width: {\r\n type: String,\r\n default: '290px',\r\n },\r\n widthCollapsed: {\r\n type: String,\r\n default: '65px',\r\n },\r\n showChild: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n theme: {\r\n type: String,\r\n default: undefined,\r\n validator: (value) => ['', 'white-theme'].includes(value),\r\n },\r\n showOneChild: {\r\n type: [Boolean, String],\r\n default: false,\r\n validator(value) {\r\n if (typeof value === 'string') {\r\n return ['deep'].includes(value)\r\n } else {\r\n return typeof value === 'boolean'\r\n }\r\n },\r\n },\r\n rtl: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n relative: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n hideToggle: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n disableHover: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n linkComponentName: {\r\n type: String,\r\n default: undefined,\r\n },\r\n},\n emits: {\r\n 'item-click'(event, item) {\r\n return !!(event && item)\r\n },\r\n 'update:collapsed'(collapsed) {\r\n return !!(typeof collapsed === 'boolean')\r\n },\r\n},\n setup(__props, { expose: __expose, emit: __emit }) {\n\r\nconst props = __props;\r\n\r\nconst emits = __emit;\r\n\r\nconst {\r\n getSidebarRef: sidebarMenuRef,\r\n getIsCollapsed: isCollapsed,\r\n updateIsCollapsed,\r\n unsetMobileItem,\r\n updateCurrentRoute,\r\n} = initSidebar(props, emits);\r\n\r\nconst activeShow = ref(undefined);\r\n\r\nconst computedMenu = computed(() => {\r\n let id = 0;\r\n function transformItems(items) {\r\n function randomId() {\r\n return `${Date.now() + '' + id++}`\r\n }\r\n return items.map((item) => {\r\n return {\r\n id: randomId(),\r\n ...item,\r\n ...(item.child && { child: transformItems(item.child) }),\r\n }\r\n })\r\n }\r\n return transformItems(props.menu)\r\n});\r\n\r\nconst sidebarWidth = computed(() => {\r\n return isCollapsed.value ? props.widthCollapsed : props.width\r\n});\r\n\r\nconst sidebarClass = computed(() => {\r\n return [\r\n 'v-sidebar-menu',\r\n !isCollapsed.value ? 'vsm_expanded' : 'vsm_collapsed',\r\n props.theme && `vsm_${props.theme}`,\r\n props.rtl && 'vsm_rtl',\r\n props.relative && 'vsm_relative',\r\n ]\r\n});\r\n\r\nconst updateActiveShow = (id) => {\r\n activeShow.value = id;\r\n};\r\n\r\nconst onToggleClick = () => {\r\n unsetMobileItem();\r\n updateIsCollapsed(!isCollapsed.value);\r\n emits('update:collapsed', isCollapsed.value);\r\n};\r\n\r\nwatch(\r\n () => props.collapsed,\r\n (currentCollapsed) => {\r\n unsetMobileItem();\r\n updateIsCollapsed(currentCollapsed);\r\n }\r\n);\r\n\r\nconst router = getCurrentInstance().appContext.config.globalProperties.$router;\r\nif (!router) {\r\n onMounted(() => {\r\n updateCurrentRoute();\r\n window.addEventListener('hashchange', updateCurrentRoute);\r\n });\r\n onUnmounted(() => {\r\n window.removeEventListener('hashchange', updateCurrentRoute);\r\n });\r\n}\r\n\r\n__expose({\r\n onRouteChange: updateCurrentRoute,\r\n});\r\n\nreturn (_ctx, _cache) => {\n return (openBlock(), createElementBlock(\"div\", {\n ref_key: \"sidebarMenuRef\",\n ref: sidebarMenuRef,\n class: normalizeClass([sidebarClass.value]),\n style: normalizeStyle({ 'max-width': sidebarWidth.value })\n }, [\n createElementVNode(\"div\", _hoisted_1, [\n renderSlot(_ctx.$slots, \"header\"),\n createVNode(script$1, null, {\n default: withCtx(() => [\n createElementVNode(\"ul\", {\n class: \"vsm--menu\",\n style: normalizeStyle({ width: sidebarWidth.value })\n }, [\n (openBlock(true), createElementBlock(Fragment, null, renderList(computedMenu.value, (item) => {\n return (openBlock(), createBlock(script$2, {\n key: item.id,\n item: item,\n \"active-show\": activeShow.value,\n onUpdateActiveShow: updateActiveShow\n }, {\n \"dropdown-icon\": withCtx(({ isOpen }) => [\n renderSlot(_ctx.$slots, \"dropdown-icon\", mergeProps({ ref_for: true }, { isOpen }), () => [\n _cache[0] || (_cache[0] = createElementVNode(\"span\", { class: \"vsm--arrow_default\" }, null, -1 /* HOISTED */))\n ])\n ]),\n _: 2 /* DYNAMIC */\n }, 1032 /* PROPS, DYNAMIC_SLOTS */, [\"item\", \"active-show\"]))\n }), 128 /* KEYED_FRAGMENT */))\n ], 4 /* STYLE */)\n ]),\n _: 3 /* FORWARDED */\n }),\n renderSlot(_ctx.$slots, \"footer\")\n ]),\n (!__props.hideToggle)\n ? (openBlock(), createElementBlock(\"button\", {\n key: 0,\n class: \"vsm--toggle-btn\",\n \"aria-label\": __props.collapsed ? 'Expand sidebar' : 'Collapse sidebar',\n onClick: onToggleClick\n }, [\n renderSlot(_ctx.$slots, \"toggle-icon\", {}, () => [\n _cache[1] || (_cache[1] = createElementVNode(\"span\", { class: \"vsm--toggle-btn_default\" }, null, -1 /* HOISTED */))\n ])\n ], 8 /* PROPS */, _hoisted_2))\n : createCommentVNode(\"v-if\", true)\n ], 6 /* CLASS, STYLE */))\n}\n}\n\n});\n\nscript.__file = \"src/components/SidebarMenu.vue\";\n\nvar index = {\n install: function install(Vue) {\n Vue.component('SidebarMenu', script);\n }\n};\n\nexport { script as SidebarMenu, index as default };\n//# sourceMappingURL=vue-sidebar-menu.esm.js.map\n"],"names":["initSidebar","props","emits","_toRefs","toRefs","collapsed","relative","width","widthCollapsed","rtl","sidebarRef","ref","isCollapsed","mobileItem","reactive","getMobileItem","computed","getMobileItemRect","currentRoute","updateIsCollapsed","val","setMobileItem","_ref","item","itemEl","clearMobileItemTimeout","linkEl","rect","getMobileItemRectFromEl","updateMobileItem","updateMobileItemRect","el","_el$getBoundingClient","elTop","elBottom","elHeight","_sidebarRef$value$get","sidebarLeft","sidebarRight","_sidebarRef$value$fir","wrapperBottom","wrapperHeight","scrollWrapperEl","scrollWrapperOffsetTop","_scrollWrapperEl$getB","scrollWrapperTop","scrollWrapperHeight","parentHeight","parentWidth","parentTop","parentRight","maxWidth","parent","rectWidth","_window$getComputedSt","pl","pr","paddingLeft","paddingRight","absoluteTop","absoluteBottom","maxHeight","parentVisibleHeight","maxVisible","dropup","unsetMobileItem","immediate","delay","mobileItemRect","key","updateCurrentRoute","route","onItemClick","event","provide","useSidebar","inject","_defineProperty","r","t","_toPropertyKey","ownKeys","o","_objectSpread2","_toPrimitive","e","i","activeRecordIndex","matched","length","routeMatched","currentMatched","index","isSameRouteRecord","parentRecordPath","getOriginalPath","isSameRouteLocationParams","a","b","isSameRouteLocationParamsValue","includesParams","outer","inner","_loop","innerValue","outerValue","value","_ret","record","isEquivalentArray","useItem","router","getCurrentInstance","_useSidebar","sidebarProps","emitItemClick","emitScrollUpdate","itemShow","itemHover","active","isLinkActive","_isChildActive","exactActive","exact","isActive","routerCurrentRoute","activeIndex","child","onLinkClick","emitMobileItem","hasChild","show","onMouseOver","onMouseOut","onMouseEnter","isMobileItem","onMouseLeave","isFirstLevel","onExpandEnter","onExpandAfterEnter","onExpandBeforeLeave","onExpandAfterLeave","hover","isHidden","linkClass","linkAttrs","href","target","tabindex","ariaCurrent","ariaExpanded","ariaControls","childAttrs","itemClass","_mobileItem$value","mobileItemDropdownStyle","mobileItemStyle","mobileItemBackgroundStyle","watch","_hoisted_1$2","__default__$5","script$5","__props","isHyperLink","_ctx","_cache","_component_router_link","resolveComponent","openBlock","createElementBlock","normalizeProps","mergeProps","renderSlot","createBlock","withCtx","navigate","createElementVNode","__default__$4","script$4","attributes","resolveDynamicComponent","createTextVNode","toDisplayString","__default__$3","script$3","_hoisted_1$1","_hoisted_2$1","__default__$2","script$2","__emit","getSidebarProps","linkComponentName","subActiveShow","updateActiveShow","id","_component_sidebar_menu_item","unref","guardReactiveProps","createCommentVNode","args","toHandlers","Transition","normalizeStyle","normalizeClass","Fragment","renderList","subItem","isOpen","__default__$1","script$1","scrollRef","scrollBarRef","scrollThumbRef","cursorY","cursorDown","visible","onScrollUpdate","nextTick","updateThumb","onScroll","onClick","offset","thumbHalf","updateScrollTop","onMouseDown","onMouseMove","onMouseUp","thumbClickPosition","onMouseIn","heightPerc","thumbHeightPerc","thumbYPerc","y","scrollPerc","onMounted","onUnmounted","createVNode","withDirectives","vShow","_hoisted_1","_hoisted_2","__default__","script","__expose","sidebarMenuRef","activeShow","computedMenu","transformItems","items","randomId","sidebarWidth","sidebarClass","onToggleClick","currentCollapsed","Vue"],"mappings":"iTAEA,IAAIA,GAAc,SAAqBC,EAAOC,EAAO,CACnD,IAAIC,EAAUC,GAAOH,CAAK,EACxBI,EAAYF,EAAQ,UACpBG,EAAWH,EAAQ,SACnBI,EAAQJ,EAAQ,MAChBK,EAAiBL,EAAQ,eACzBM,EAAMN,EAAQ,IACZO,EAAaC,EAAI,IAAI,EACrBC,EAAcD,EAAIN,EAAU,KAAK,EACjCQ,EAAaC,GAAS,CACxB,KAAM,KACN,KAAM,CACJ,IAAK,EACL,OAAQ,EACR,QAAS,CAAC,EAAG,CAAC,EACd,UAAW,EACX,SAAU,EACV,OAAQ,CACT,EACD,QAAS,IACb,CAAG,EACGC,EAAgBC,EAAS,UAAY,CACvC,OAAOH,EAAW,IACtB,CAAG,EACGI,EAAoBD,EAAS,UAAY,CAC3C,OAAOH,EAAW,IACtB,CAAG,EACGK,EAAeP,EAAI,EAAE,EACrBQ,EAAoB,SAA2BC,EAAK,CACtDR,EAAY,MAAQQ,CACrB,EACGC,EAAgB,SAAuBC,EAAM,CAC/C,IAAIC,EAAOD,EAAK,KACdE,EAASF,EAAK,OAChBG,EAAwB,EACxB,IAAIC,EAASF,EAAO,SAAS,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