jmash-core 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/dist/{401-DoLCxv3l.mjs → 401-DZeMj80g.mjs} +3 -3
  2. package/dist/{BarChart-C1VgkGMN.mjs → BarChart-BYm859ri.mjs} +3 -3
  3. package/dist/{FileSaver.min-CbZYb_R2.mjs → FileSaver.min-DJ2XURfB.mjs} +1 -1
  4. package/dist/{PieChart-D4hXD0SH.mjs → PieChart-BRbbIH3_.mjs} +1 -1
  5. package/dist/{PieChart.vue_vue_type_script_setup_true_lang-BzbbPmOh.mjs → PieChart.vue_vue_type_script_setup_true_lang-XjLBqCzM.mjs} +2 -2
  6. package/dist/{RadarChart-BIL7VT1H.mjs → RadarChart-Bk_uy6Km.mjs} +1 -1
  7. package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-DcuctIiI.mjs → RadarChart.vue_vue_type_script_setup_true_lang-COsDkkQU.mjs} +2 -2
  8. package/dist/{caret-bottom-Cm1qBSrY.mjs → caret-bottom-DGvkHVYd.mjs} +8 -8
  9. package/dist/{debounce-C0G0JMal.mjs → debounce-XYByYe_I.mjs} +18 -18
  10. package/dist/{dropdown2-BiRFTrOq.mjs → dropdown2-D_RJXnOl.mjs} +13 -13
  11. package/dist/{edit-DLx0iRHQ.mjs → edit-BTjApg1x.mjs} +49 -50
  12. package/dist/{edit-D3-EslTs.mjs → edit-BcLHrCSo.mjs} +1 -1
  13. package/dist/{edit-CYWeo3RE.mjs → edit-DC3SyT6J.mjs} +1 -1
  14. package/dist/{edit-Cde8RIRN.mjs → edit-DmP9tv3r.mjs} +1 -1
  15. package/dist/{edit-NICINRFG.mjs → edit-Dr-9X4r3.mjs} +1 -1
  16. package/dist/{edit-Bpt21Eir.mjs → edit-FjRAXd1B.mjs} +74 -75
  17. package/dist/edit-bpHMc65Q.mjs +4 -0
  18. package/dist/edit-lB54egzx.mjs +4 -0
  19. package/dist/{edit.vue_vue_type_script_setup_true_lang-C_NNjRjK.mjs → edit.vue_vue_type_script_setup_true_lang-BKutjIoX.mjs} +45 -46
  20. package/dist/{edit.vue_vue_type_script_setup_true_lang-DBxZMZyS.mjs → edit.vue_vue_type_script_setup_true_lang-BVXBx_a-.mjs} +19 -20
  21. package/dist/{edit.vue_vue_type_script_setup_true_lang-_tHqd9tg.mjs → edit.vue_vue_type_script_setup_true_lang-Bm1SAtWP.mjs} +47 -48
  22. package/dist/{edit.vue_vue_type_script_setup_true_lang-BYoUZaYJ.mjs → edit.vue_vue_type_script_setup_true_lang-CYZNHUnm.mjs} +17 -18
  23. package/dist/{edit.vue_vue_type_script_setup_true_lang-mM66jf9N.mjs → edit.vue_vue_type_script_setup_true_lang-CZmh3q4f.mjs} +20 -21
  24. package/dist/{edit.vue_vue_type_script_setup_true_lang-CFHGaytm.mjs → edit.vue_vue_type_script_setup_true_lang-DqZ2GCoE.mjs} +13 -14
  25. package/dist/{el-card-BIRVdEQY.mjs → el-card-Da9MvaWO.mjs} +4 -4
  26. package/dist/{el-checkbox-miY6QbQ8.mjs → el-checkbox-B44P9jFr.mjs} +62 -62
  27. package/dist/{el-col-BOgRUJYE.mjs → el-col-BY0nB6k3.mjs} +19 -19
  28. package/dist/{el-date-picker-D9yvdcj2.mjs → el-date-picker-CVwJoDEA.mjs} +5 -5
  29. package/dist/{el-dialog-BSTwker5.mjs → el-dialog-CSWvTJrq.mjs} +72 -72
  30. package/dist/{el-dropdown-item-YDb2-w9y.mjs → el-dropdown-item-CD8hUpml.mjs} +68 -68
  31. package/dist/{el-form-item-BzKoZc6I.mjs → el-form-item-f-baJSfe.mjs} +118 -118
  32. package/dist/{el-popover-DuRdut0P.mjs → el-popover-D8RrIMbA.mjs} +24 -24
  33. package/dist/{el-popper-AjIjI4wK.mjs → el-popper-C13p_dqu.mjs} +1 -1
  34. package/dist/{el-progress-BPv5gfee.mjs → el-progress-CHUzIxT1.mjs} +60 -60
  35. package/dist/{el-radio-NC-gfUsx.mjs → el-radio-BpdPD-RN.mjs} +52 -52
  36. package/dist/{el-scrollbar-p0O6uID0.mjs → el-scrollbar-B8QteGV0.mjs} +82 -82
  37. package/dist/{el-select-DAMII7lv.mjs → el-select-ChOy6agQ.mjs} +128 -128
  38. package/dist/{el-switch-C2AFgHGW.mjs → el-switch-cqWxQwcb.mjs} +44 -44
  39. package/dist/{el-table-IQFrP3zv.mjs → el-table-c9Sup56w.mjs} +143 -143
  40. package/dist/{el-tree-select-CyDKS6nF.mjs → el-tree-select-CKOwMXR7.mjs} +85 -85
  41. package/dist/{importUpload.vue_vue_type_script_setup_true_lang-DWWbxFGH.mjs → importUpload.vue_vue_type_script_setup_true_lang-DWrcOBGS.mjs} +30 -31
  42. package/dist/index-B6wY38lY.mjs +13173 -0
  43. package/dist/{index-Bs3AcT6R.mjs → index-BH-_mfRR.mjs} +18 -18
  44. package/dist/{index-B46NFfoE.mjs → index-BfhiNV8H.mjs} +27 -28
  45. package/dist/{index-mkT_dTWL.mjs → index-BuHauank.mjs} +1 -1
  46. package/dist/{index-xtDIXRPY.mjs → index-CBJwB8q2.mjs} +65 -65
  47. package/dist/{index-Url6hMpl.mjs → index-CGCQHwLq.mjs} +78 -79
  48. package/dist/{index-BWx4KWAY.mjs → index-CU0iVHXP.mjs} +24 -25
  49. package/dist/{index-BWyb1bu2.mjs → index-CYxGYOaT.mjs} +95 -96
  50. package/dist/{index-A3UILhe-.mjs → index-Cjii0qCc.mjs} +35 -36
  51. package/dist/{index-C0vV2_4K.mjs → index-Czh2Pqwr.mjs} +7 -7
  52. package/dist/index-DUKlDGLk.mjs +2589 -0
  53. package/dist/{index-CCFtIl_h.mjs → index-DUVtKaDI.mjs} +49 -50
  54. package/dist/{index-Cd3TOW5i.mjs → index-Dgd4Zhxz.mjs} +9 -9
  55. package/dist/{index-BvixCbHl.mjs → index-Di5--Hao.mjs} +17 -18
  56. package/dist/{index-CurzO9C6.mjs → index-DrKW_cyG.mjs} +26 -27
  57. package/dist/{index-CgNPGcHv.mjs → index-LuiPOgGW.mjs} +58 -59
  58. package/dist/{index-CoOFKDgw.mjs → index-VD-Tf32c.mjs} +5 -5
  59. package/dist/{index-C0UgbyoZ.mjs → index-cRrjzkNb.mjs} +46 -46
  60. package/dist/{index-BnbEfNmI.mjs → index-cp7l4CIE.mjs} +5 -5
  61. package/dist/{index-BpAihYhN.mjs → index-dKz1IRM_.mjs} +35 -36
  62. package/dist/{index-CBB_r4G5.mjs → index-dLPnFa10.mjs} +34 -35
  63. package/dist/{index-eT2JltVa.mjs → index-vp1_Sd0A.mjs} +8 -8
  64. package/dist/index.mjs +13 -10
  65. package/dist/{index.vue_vue_type_script_setup_true_lang-C6yk_vUt.mjs → index.vue_vue_type_script_setup_true_lang-DcIQIMBC.mjs} +22 -22
  66. package/dist/{index.vue_vue_type_script_setup_true_lang-BoxqootF.mjs → index.vue_vue_type_script_setup_true_lang-DidEhco6.mjs} +5 -5
  67. package/dist/{picture-kPnmHaoS.mjs → picture-kDaEiPHi.mjs} +16 -16
  68. package/dist/{profile-RVQuIwXg.mjs → profile-Sn98YUfh.mjs} +23 -23
  69. package/dist/{refs-S3PYDmaW.mjs → refs-COP_DuTD.mjs} +1 -1
  70. package/dist/{types-CCG3Dvqs.mjs → types-BolK_Oyb.mjs} +16 -16
  71. package/dist/{updatePwd-2UsTmJa5.mjs → updatePwd-B3rEU05i.mjs} +1 -1
  72. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-_Uadc2g3.mjs → updatePwd.vue_vue_type_script_setup_true_lang-1LEdjkQ3.mjs} +5 -5
  73. package/dist/{useColumnToggleTable-D_QF8Uy9.mjs → useColumnToggleTable-CC9EXcfR.mjs} +5 -5
  74. package/dts/src/App.vue.d.ts +1 -1
  75. package/dts/src/api/auth/index.d.ts +41 -0
  76. package/dts/src/api/auth/types.d.ts +180 -0
  77. package/dts/src/api/file/index.d.ts +14 -0
  78. package/dts/src/api/file/types.d.ts +7 -0
  79. package/dts/src/api/system/dept/index.d.ts +91 -0
  80. package/dts/src/api/system/dept/types.d.ts +63 -0
  81. package/dts/src/api/system/index.d.ts +7 -0
  82. package/dts/src/api/system/job/index.d.ts +42 -0
  83. package/dts/src/api/system/job/types.d.ts +60 -0
  84. package/dts/src/api/system/log/index.d.ts +29 -0
  85. package/dts/src/api/system/log/types.d.ts +42 -0
  86. package/dts/src/api/system/menu/index.d.ts +103 -0
  87. package/dts/src/api/system/menu/types.d.ts +96 -0
  88. package/dts/src/api/system/module/index.d.ts +57 -0
  89. package/dts/src/api/system/module/types.d.ts +13 -0
  90. package/dts/src/api/system/operation/index.d.ts +51 -0
  91. package/dts/src/api/system/operation/types.d.ts +12 -0
  92. package/dts/src/api/system/permission/index.d.ts +50 -0
  93. package/dts/src/api/system/permission/types.d.ts +12 -0
  94. package/dts/src/api/system/role/index.d.ts +77 -0
  95. package/dts/src/api/system/role/types.d.ts +26 -0
  96. package/dts/src/api/system/user/index.d.ts +133 -0
  97. package/dts/src/api/system/user/types.d.ts +53 -0
  98. package/dts/src/api/system/userLog/index.d.ts +29 -0
  99. package/dts/src/api/system/userLog/types.d.ts +22 -0
  100. package/dts/src/assets/icons/index.d.ts +0 -0
  101. package/dts/src/components/{TheWelcome.vue.d.ts → Breadcrumb/index.vue.d.ts} +1 -1
  102. package/dts/src/components/DictRadio/index.vue.d.ts +23 -0
  103. package/dts/src/components/DictSelect/index.vue.d.ts +41 -0
  104. package/dts/src/components/Dictionary/index.vue.d.ts +47 -0
  105. package/dts/src/components/{icons/IconEcosystem.vue.d.ts → GithubCorner/index.vue.d.ts} +1 -1
  106. package/dts/src/components/Hamburger/index.vue.d.ts +18 -0
  107. package/dts/src/components/IconSelect/index.vue.d.ts +20 -0
  108. package/dts/src/components/IconSelect/requireIcons.d.ts +2 -0
  109. package/dts/src/components/{icons/IconCommunity.vue.d.ts → LangSelect/index.vue.d.ts} +1 -1
  110. package/dts/src/components/Pagination/index.vue.d.ts +88 -0
  111. package/dts/src/components/RightPanel/index.vue.d.ts +21 -0
  112. package/dts/src/components/{icons/IconDocumentation.vue.d.ts → SizeSelect/index.vue.d.ts} +1 -1
  113. package/dts/src/components/SvgIcon/index.vue.d.ts +43 -0
  114. package/dts/src/components/Table/index.vue.d.ts +73 -0
  115. package/dts/src/components/TableSet/index.vue.d.ts +29 -0
  116. package/dts/src/components/Upload/MultiUpload.vue.d.ts +65 -0
  117. package/dts/src/components/Upload/SingleUpload.vue.d.ts +18 -0
  118. package/dts/src/components/Upload/importUpload.vue.d.ts +31 -0
  119. package/dts/src/components/Upload/index.vue.d.ts +18 -0
  120. package/dts/src/components/WangEditor/index.vue.d.ts +18 -0
  121. package/dts/src/directive/index.d.ts +5 -0
  122. package/dts/src/directive/permission/index.d.ts +9 -0
  123. package/dts/src/enums/MenuTypeEnum.d.ts +18 -0
  124. package/dts/src/hooks/useColumnToggleTable.d.ts +7 -0
  125. package/dts/src/index.d.ts +29 -3
  126. package/dts/src/lang/index.d.ts +534 -0
  127. package/dts/src/lang/package/en.d.ts +261 -0
  128. package/dts/src/lang/package/zh-cn.d.ts +275 -0
  129. package/dts/src/layout/components/AppMain.vue.d.ts +2 -0
  130. package/dts/src/layout/components/NavBar/NavRight.vue.d.ts +2 -0
  131. package/dts/src/layout/components/NavBar/index.vue.d.ts +2 -0
  132. package/dts/src/layout/components/Settings/index.vue.d.ts +2 -0
  133. package/dts/src/layout/components/Sidebar/Item.vue.d.ts +23 -0
  134. package/dts/src/layout/components/Sidebar/LeftMenu.vue.d.ts +24 -0
  135. package/dts/src/layout/components/Sidebar/Link.vue.d.ts +19 -0
  136. package/dts/src/layout/components/Sidebar/Logo.vue.d.ts +12 -0
  137. package/dts/src/layout/components/Sidebar/SidebarItem.vue.d.ts +42 -0
  138. package/dts/src/layout/components/Sidebar/TopMenu.vue.d.ts +2 -0
  139. package/dts/src/layout/components/Sidebar/index.vue.d.ts +2 -0
  140. package/dts/src/layout/components/TagsView/ScrollPane.vue.d.ts +16 -0
  141. package/dts/src/layout/components/TagsView/index.vue.d.ts +2 -0
  142. package/dts/src/layout/components/index.d.ts +4 -0
  143. package/dts/src/layout/index.vue.d.ts +2 -0
  144. package/dts/src/layout/main.vue.d.ts +2 -0
  145. package/dts/src/main.d.ts +5 -1
  146. package/dts/src/permission.d.ts +1 -0
  147. package/dts/src/router/index.d.ts +10 -0
  148. package/dts/src/settings.d.ts +13 -0
  149. package/dts/src/stores/index.d.ts +7 -0
  150. package/dts/src/stores/modules/tagsView.d.ts +82 -0
  151. package/dts/src/utils/common.d.ts +6 -0
  152. package/dts/src/utils/grpc.d.ts +2 -0
  153. package/dts/src/utils/i18n.d.ts +1 -0
  154. package/dts/src/utils/index.d.ts +24 -0
  155. package/dts/src/utils/request.d.ts +2 -0
  156. package/dts/src/utils/resize.d.ts +1 -0
  157. package/dts/src/utils/scroll-to.d.ts +6 -0
  158. package/dts/src/views/dashboard/components/BarChart.vue.d.ts +45 -0
  159. package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +45 -0
  160. package/dts/src/views/dashboard/components/PieChart.vue.d.ts +45 -0
  161. package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +45 -0
  162. package/dts/src/views/dashboard/index.vue.d.ts +2 -0
  163. package/dts/src/views/error-page/401.vue.d.ts +2 -0
  164. package/dts/src/views/error-page/404.vue.d.ts +2 -0
  165. package/dts/src/views/login/components/types.vue.d.ts +2 -0
  166. package/dts/src/views/login/index.vue.d.ts +2 -0
  167. package/dts/src/views/my/profile.vue.d.ts +2 -0
  168. package/dts/src/views/my/updatePwd.vue.d.ts +18 -0
  169. package/dts/src/views/redirect/index.vue.d.ts +2 -0
  170. package/dts/src/views/system/dept/edit.vue.d.ts +31 -0
  171. package/dts/src/views/system/dept/index.vue.d.ts +2 -0
  172. package/dts/src/views/system/job/edit.vue.d.ts +30 -0
  173. package/dts/src/views/system/job/index.vue.d.ts +2 -0
  174. package/dts/src/views/system/log/index.vue.d.ts +2 -0
  175. package/dts/src/views/system/log/oplog/index.vue.d.ts +2 -0
  176. package/dts/src/views/system/log/userLog/index.vue.d.ts +2 -0
  177. package/dts/src/views/system/menu/edit.vue.d.ts +31 -0
  178. package/dts/src/views/system/menu/index.vue.d.ts +2 -0
  179. package/dts/src/views/system/module/edit.vue.d.ts +31 -0
  180. package/dts/src/views/system/module/index.vue.d.ts +2 -0
  181. package/dts/src/views/system/operation/edit.vue.d.ts +31 -0
  182. package/dts/src/views/system/operation/index.vue.d.ts +2 -0
  183. package/dts/src/views/system/permission/edit.vue.d.ts +30 -0
  184. package/dts/src/views/system/permission/index.vue.d.ts +2 -0
  185. package/dts/src/views/system/role/edit.vue.d.ts +31 -0
  186. package/dts/src/views/system/role/index.vue.d.ts +2 -0
  187. package/dts/src/views/system/user/edit.vue.d.ts +31 -0
  188. package/dts/src/views/system/user/index.vue.d.ts +2 -0
  189. package/dts/tsconfig.tsbuildinfo +1 -1
  190. package/package.json +1 -1
  191. package/dist/edit-Vk23bJyE.mjs +0 -4
  192. package/dist/edit-sqzPOfBX.mjs +0 -4
  193. package/dist/index-Ax_8ZsXK.mjs +0 -3163
  194. package/dist/index-CrNYgyNm.mjs +0 -8800
  195. package/dist/vue-i18n-CE6tUbcO.mjs +0 -3808
  196. package/dts/src/components/HelloWorld.vue.d.ts +0 -15
  197. package/dts/src/components/WelcomeItem.vue.d.ts +0 -11
  198. package/dts/src/components/icons/IconSupport.vue.d.ts +0 -2
  199. package/dts/src/components/icons/IconTooling.vue.d.ts +0 -2
  200. package/dts/src/stores/counter.d.ts +0 -13
  201. package/dts/src/views/AboutView.vue.d.ts +0 -2
  202. package/dts/src/views/HomeView.vue.d.ts +0 -2
@@ -0,0 +1,2589 @@
1
+ import { _ as Ce } from "./index-DjkMA-Wh.mjs";
2
+ import { defineComponent as O, ref as P, provide as Oe, onMounted as fe, openBlock as m, createElementBlock as _, normalizeClass as Z, unref as h, renderSlot as ee, getCurrentInstance as ke, inject as Ee, createElementVNode as C, createBlock as R, withCtx as y, resolveDynamicComponent as vt, toDisplayString as de, Transition as qe, mergeProps as Wt, computed as E, reactive as Ue, watch as oe, onBeforeUnmount as Ze, h as J, Fragment as F, withDirectives as ve, vShow as Te, watchEffect as et, nextTick as ze, toRef as Dt, resolveComponent as Ie, createTextVNode as $, createVNode as b, renderList as he, resolveDirective as Ut, createCommentVNode as U, onBeforeMount as Zt, TransitionGroup as Gt, withModifiers as Me, KeepAlive as Qt, normalizeStyle as tt, pushScopeId as ht, popScopeId as gt } from "vue";
3
+ import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
4
+ import { m as Re, Y as _e, x as le, _ as Ne, n as We, z as Ge, L as bt, Z as Qe, J as re, $ as Le, a0 as Be, a1 as He, a2 as Yt, a3 as $t, a4 as De, a5 as Jt, C as jt, O as ye, a6 as st, a7 as Ht, a8 as Kt, o as Xt, a9 as Ft, aa as qt, ab as it, u as ae, E as _t, ac as Ye, d as be, ad as en, ae as tn, af as rt, ag as nn, ah as on, ai as ct, r as ut, b as ge, aj as Ve, ak as ln, c as yt, al as an } from "./index-B6wY38lY.mjs";
5
+ import { E as sn } from "./el-dialog-CSWvTJrq.mjs";
6
+ import { _ as rn } from "./index.vue_vue_type_script_setup_true_lang-DcIQIMBC.mjs";
7
+ import { E as xt, a as wt, b as Ct } from "./el-dropdown-item-CD8hUpml.mjs";
8
+ import { E as $e } from "./el-popper-C13p_dqu.mjs";
9
+ import { C as cn, E as nt } from "./el-scrollbar-B8QteGV0.mjs";
10
+ import { _ as un, E as dn } from "./caret-bottom-DGvkHVYd.mjs";
11
+ import "./el-tooltip-l0sNRNKZ.mjs";
12
+ import { storeToRefs as ot } from "pinia";
13
+ import { useRouter as Je, useRoute as je } from "vue-router";
14
+ import { _ as fn } from "./updatePwd.vue_vue_type_script_setup_true_lang-1LEdjkQ3.mjs";
15
+ import { E as mn } from "./el-switch-cqWxQwcb.mjs";
16
+ import { _ as pn } from "./index-vp1_Sd0A.mjs";
17
+ import "./el-icon-l0sNRNKZ.mjs";
18
+ const kt = Symbol("breadcrumbKey"), vn = Re({
19
+ separator: {
20
+ type: String,
21
+ default: "/"
22
+ },
23
+ separatorIcon: {
24
+ type: _e
25
+ }
26
+ }), hn = O({
27
+ name: "ElBreadcrumb"
28
+ }), gn = /* @__PURE__ */ O({
29
+ ...hn,
30
+ props: vn,
31
+ setup(n) {
32
+ const t = n, e = le("breadcrumb"), o = P();
33
+ return Oe(kt, t), fe(() => {
34
+ const l = o.value.querySelectorAll(`.${e.e("item")}`);
35
+ l.length && l[l.length - 1].setAttribute("aria-current", "page");
36
+ }), (l, i) => (m(), _("div", {
37
+ ref_key: "breadcrumb",
38
+ ref: o,
39
+ class: Z(h(e).b()),
40
+ "aria-label": "Breadcrumb",
41
+ role: "navigation"
42
+ }, [
43
+ ee(l.$slots, "default")
44
+ ], 2));
45
+ }
46
+ });
47
+ var bn = /* @__PURE__ */ Ne(gn, [["__file", "breadcrumb.vue"]]);
48
+ const _n = Re({
49
+ to: {
50
+ type: We([String, Object]),
51
+ default: ""
52
+ },
53
+ replace: {
54
+ type: Boolean,
55
+ default: !1
56
+ }
57
+ }), yn = O({
58
+ name: "ElBreadcrumbItem"
59
+ }), xn = /* @__PURE__ */ O({
60
+ ...yn,
61
+ props: _n,
62
+ setup(n) {
63
+ const t = n, e = ke(), o = Ee(kt, void 0), l = le("breadcrumb"), i = e.appContext.config.globalProperties.$router, a = P(), r = () => {
64
+ !t.to || !i || (t.replace ? i.replace(t.to) : i.push(t.to));
65
+ };
66
+ return (s, d) => {
67
+ var u, c;
68
+ return m(), _("span", {
69
+ class: Z(h(l).e("item"))
70
+ }, [
71
+ C("span", {
72
+ ref_key: "link",
73
+ ref: a,
74
+ class: Z([h(l).e("inner"), h(l).is("link", !!s.to)]),
75
+ role: "link",
76
+ onClick: r
77
+ }, [
78
+ ee(s.$slots, "default")
79
+ ], 2),
80
+ (u = h(o)) != null && u.separatorIcon ? (m(), R(h(Ge), {
81
+ key: 0,
82
+ class: Z(h(l).e("separator"))
83
+ }, {
84
+ default: y(() => [
85
+ (m(), R(vt(h(o).separatorIcon)))
86
+ ]),
87
+ _: 1
88
+ }, 8, ["class"])) : (m(), _("span", {
89
+ key: 1,
90
+ class: Z(h(l).e("separator")),
91
+ role: "presentation"
92
+ }, de((c = h(o)) == null ? void 0 : c.separator), 3))
93
+ ], 2);
94
+ };
95
+ }
96
+ });
97
+ var It = /* @__PURE__ */ Ne(xn, [["__file", "breadcrumb-item.vue"]]);
98
+ const wn = bt(bn, {
99
+ BreadcrumbItem: It
100
+ }), Cn = Qe(It);
101
+ let kn = class {
102
+ constructor(t, e) {
103
+ this.parent = t, this.domNode = e, this.subIndex = 0, this.subIndex = 0, this.init();
104
+ }
105
+ init() {
106
+ this.subMenuItems = this.domNode.querySelectorAll("li"), this.addListeners();
107
+ }
108
+ gotoSubIndex(t) {
109
+ t === this.subMenuItems.length ? t = 0 : t < 0 && (t = this.subMenuItems.length - 1), this.subMenuItems[t].focus(), this.subIndex = t;
110
+ }
111
+ addListeners() {
112
+ const t = this.parent.domNode;
113
+ Array.prototype.forEach.call(this.subMenuItems, (e) => {
114
+ e.addEventListener("keydown", (o) => {
115
+ let l = !1;
116
+ switch (o.code) {
117
+ case re.down: {
118
+ this.gotoSubIndex(this.subIndex + 1), l = !0;
119
+ break;
120
+ }
121
+ case re.up: {
122
+ this.gotoSubIndex(this.subIndex - 1), l = !0;
123
+ break;
124
+ }
125
+ case re.tab: {
126
+ Le(t, "mouseleave");
127
+ break;
128
+ }
129
+ case re.enter:
130
+ case re.space: {
131
+ l = !0, o.currentTarget.click();
132
+ break;
133
+ }
134
+ }
135
+ return l && (o.preventDefault(), o.stopPropagation()), !1;
136
+ });
137
+ });
138
+ }
139
+ }, In = class {
140
+ constructor(t, e) {
141
+ this.domNode = t, this.submenu = null, this.submenu = null, this.init(e);
142
+ }
143
+ init(t) {
144
+ this.domNode.setAttribute("tabindex", "0");
145
+ const e = this.domNode.querySelector(`.${t}-menu`);
146
+ e && (this.submenu = new kn(this, e)), this.addListeners();
147
+ }
148
+ addListeners() {
149
+ this.domNode.addEventListener("keydown", (t) => {
150
+ let e = !1;
151
+ switch (t.code) {
152
+ case re.down: {
153
+ Le(t.currentTarget, "mouseenter"), this.submenu && this.submenu.gotoSubIndex(0), e = !0;
154
+ break;
155
+ }
156
+ case re.up: {
157
+ Le(t.currentTarget, "mouseenter"), this.submenu && this.submenu.gotoSubIndex(this.submenu.subMenuItems.length - 1), e = !0;
158
+ break;
159
+ }
160
+ case re.tab: {
161
+ Le(t.currentTarget, "mouseleave");
162
+ break;
163
+ }
164
+ case re.enter:
165
+ case re.space: {
166
+ e = !0, t.currentTarget.click();
167
+ break;
168
+ }
169
+ }
170
+ e && t.preventDefault();
171
+ });
172
+ }
173
+ }, Sn = class {
174
+ constructor(t, e) {
175
+ this.domNode = t, this.init(e);
176
+ }
177
+ init(t) {
178
+ const e = this.domNode.childNodes;
179
+ Array.from(e).forEach((o) => {
180
+ o.nodeType === 1 && new In(o, t);
181
+ });
182
+ }
183
+ };
184
+ const Mn = O({
185
+ name: "ElMenuCollapseTransition",
186
+ setup() {
187
+ const n = le("menu");
188
+ return {
189
+ listeners: {
190
+ onBeforeEnter: (e) => e.style.opacity = "0.2",
191
+ onEnter(e, o) {
192
+ Be(e, `${n.namespace.value}-opacity-transition`), e.style.opacity = "1", o();
193
+ },
194
+ onAfterEnter(e) {
195
+ He(e, `${n.namespace.value}-opacity-transition`), e.style.opacity = "";
196
+ },
197
+ onBeforeLeave(e) {
198
+ e.dataset || (e.dataset = {}), Yt(e, n.m("collapse")) ? (He(e, n.m("collapse")), e.dataset.oldOverflow = e.style.overflow, e.dataset.scrollWidth = e.clientWidth.toString(), Be(e, n.m("collapse"))) : (Be(e, n.m("collapse")), e.dataset.oldOverflow = e.style.overflow, e.dataset.scrollWidth = e.clientWidth.toString(), He(e, n.m("collapse"))), e.style.width = `${e.scrollWidth}px`, e.style.overflow = "hidden";
199
+ },
200
+ onLeave(e) {
201
+ Be(e, "horizontal-collapse-transition"), e.style.width = `${e.dataset.scrollWidth}px`;
202
+ }
203
+ }
204
+ };
205
+ }
206
+ });
207
+ function En(n, t, e, o, l, i) {
208
+ return m(), R(qe, Wt({ mode: "out-in" }, n.listeners), {
209
+ default: y(() => [
210
+ ee(n.$slots, "default")
211
+ ]),
212
+ _: 3
213
+ }, 16);
214
+ }
215
+ var Tn = /* @__PURE__ */ Ne(Mn, [["render", En], ["__file", "menu-collapse-transition.vue"]]);
216
+ function St(n, t) {
217
+ const e = E(() => {
218
+ let l = n.parent;
219
+ const i = [t.value];
220
+ for (; l.type.name !== "ElMenu"; )
221
+ l.props.index && i.unshift(l.props.index), l = l.parent;
222
+ return i;
223
+ });
224
+ return {
225
+ parentMenu: E(() => {
226
+ let l = n.parent;
227
+ for (; l && !["ElMenu", "ElSubMenu"].includes(l.type.name); )
228
+ l = l.parent;
229
+ return l;
230
+ }),
231
+ indexPath: e
232
+ };
233
+ }
234
+ function An(n) {
235
+ return E(() => {
236
+ const e = n.backgroundColor;
237
+ return e ? new $t(e).shade(20).toString() : "";
238
+ });
239
+ }
240
+ const Mt = (n, t) => {
241
+ const e = le("menu");
242
+ return E(() => e.cssVarBlock({
243
+ "text-color": n.textColor || "",
244
+ "hover-text-color": n.textColor || "",
245
+ "bg-color": n.backgroundColor || "",
246
+ "hover-bg-color": An(n).value || "",
247
+ "active-color": n.activeTextColor || "",
248
+ level: `${t}`
249
+ }));
250
+ }, Pn = Re({
251
+ index: {
252
+ type: String,
253
+ required: !0
254
+ },
255
+ showTimeout: Number,
256
+ hideTimeout: Number,
257
+ popperClass: String,
258
+ disabled: Boolean,
259
+ teleported: {
260
+ type: Boolean,
261
+ default: void 0
262
+ },
263
+ popperOffset: Number,
264
+ expandCloseIcon: {
265
+ type: _e
266
+ },
267
+ expandOpenIcon: {
268
+ type: _e
269
+ },
270
+ collapseCloseIcon: {
271
+ type: _e
272
+ },
273
+ collapseOpenIcon: {
274
+ type: _e
275
+ }
276
+ }), Ke = "ElSubMenu";
277
+ var lt = O({
278
+ name: Ke,
279
+ props: Pn,
280
+ setup(n, { slots: t, expose: e }) {
281
+ const o = ke(), { indexPath: l, parentMenu: i } = St(o, E(() => n.index)), a = le("menu"), r = le("sub-menu"), s = Ee("rootMenu");
282
+ s || De(Ke, "can not inject root menu");
283
+ const d = Ee(`subMenu:${i.value.uid}`);
284
+ d || De(Ke, "can not inject sub menu");
285
+ const u = P({}), c = P({});
286
+ let v;
287
+ const k = P(!1), x = P(), V = P(null), I = E(() => H.value === "horizontal" && B.value ? "bottom-start" : "right-start"), S = E(() => H.value === "horizontal" && B.value || H.value === "vertical" && !s.props.collapse ? n.expandCloseIcon && n.expandOpenIcon ? z.value ? n.expandOpenIcon : n.expandCloseIcon : Jt : n.collapseCloseIcon && n.collapseOpenIcon ? z.value ? n.collapseOpenIcon : n.collapseCloseIcon : jt), B = E(() => d.level === 0), Q = E(() => {
288
+ const f = n.teleported;
289
+ return f === void 0 ? B.value : f;
290
+ }), Y = E(() => s.props.collapse ? `${a.namespace.value}-zoom-in-left` : `${a.namespace.value}-zoom-in-top`), X = E(() => H.value === "horizontal" && B.value ? [
291
+ "bottom-start",
292
+ "bottom-end",
293
+ "top-start",
294
+ "top-end",
295
+ "right-start",
296
+ "left-start"
297
+ ] : [
298
+ "right-start",
299
+ "right",
300
+ "right-end",
301
+ "left-start",
302
+ "bottom-start",
303
+ "bottom-end",
304
+ "top-start",
305
+ "top-end"
306
+ ]), z = E(() => s.openedMenus.includes(n.index)), L = E(() => {
307
+ let f = !1;
308
+ return Object.values(u.value).forEach((p) => {
309
+ p.active && (f = !0);
310
+ }), Object.values(c.value).forEach((p) => {
311
+ p.active && (f = !0);
312
+ }), f;
313
+ }), H = E(() => s.props.mode), K = Ue({
314
+ index: n.index,
315
+ indexPath: l,
316
+ active: L
317
+ }), q = Mt(s.props, d.level + 1), me = E(() => {
318
+ var f;
319
+ return (f = n.popperOffset) != null ? f : s.props.popperOffset;
320
+ }), se = E(() => {
321
+ var f;
322
+ return (f = n.popperClass) != null ? f : s.props.popperClass;
323
+ }), pe = E(() => {
324
+ var f;
325
+ return (f = n.showTimeout) != null ? f : s.props.showTimeout;
326
+ }), g = E(() => {
327
+ var f;
328
+ return (f = n.hideTimeout) != null ? f : s.props.hideTimeout;
329
+ }), w = () => {
330
+ var f, p, T;
331
+ return (T = (p = (f = V.value) == null ? void 0 : f.popperRef) == null ? void 0 : p.popperInstanceRef) == null ? void 0 : T.destroy();
332
+ }, M = (f) => {
333
+ f || w();
334
+ }, G = () => {
335
+ s.props.menuTrigger === "hover" && s.props.mode === "horizontal" || s.props.collapse && s.props.mode === "vertical" || n.disabled || s.handleSubMenuClick({
336
+ index: n.index,
337
+ indexPath: l.value,
338
+ active: L.value
339
+ });
340
+ }, D = (f, p = pe.value) => {
341
+ var T;
342
+ if (f.type !== "focus") {
343
+ if (s.props.menuTrigger === "click" && s.props.mode === "horizontal" || !s.props.collapse && s.props.mode === "vertical" || n.disabled) {
344
+ d.mouseInChild.value = !0;
345
+ return;
346
+ }
347
+ d.mouseInChild.value = !0, v == null || v(), { stop: v } = st(() => {
348
+ s.openMenu(n.index, l.value);
349
+ }, p), Q.value && ((T = i.value.vnode.el) == null || T.dispatchEvent(new MouseEvent("mouseenter")));
350
+ }
351
+ }, te = (f = !1) => {
352
+ var p;
353
+ if (s.props.menuTrigger === "click" && s.props.mode === "horizontal" || !s.props.collapse && s.props.mode === "vertical") {
354
+ d.mouseInChild.value = !1;
355
+ return;
356
+ }
357
+ v == null || v(), d.mouseInChild.value = !1, { stop: v } = st(() => !k.value && s.closeMenu(n.index, l.value), g.value), Q.value && f && ((p = d.handleMouseleave) == null || p.call(d, !0));
358
+ };
359
+ oe(() => s.props.collapse, (f) => M(!!f));
360
+ {
361
+ const f = (T) => {
362
+ c.value[T.index] = T;
363
+ }, p = (T) => {
364
+ delete c.value[T.index];
365
+ };
366
+ Oe(`subMenu:${o.uid}`, {
367
+ addSubMenu: f,
368
+ removeSubMenu: p,
369
+ handleMouseleave: te,
370
+ mouseInChild: k,
371
+ level: d.level + 1
372
+ });
373
+ }
374
+ return e({
375
+ opened: z
376
+ }), fe(() => {
377
+ s.addSubMenu(K), d.addSubMenu(K);
378
+ }), Ze(() => {
379
+ d.removeSubMenu(K), s.removeSubMenu(K);
380
+ }), () => {
381
+ var f;
382
+ const p = [
383
+ (f = t.title) == null ? void 0 : f.call(t),
384
+ J(Ge, {
385
+ class: r.e("icon-arrow"),
386
+ style: {
387
+ transform: z.value ? n.expandCloseIcon && n.expandOpenIcon || n.collapseCloseIcon && n.collapseOpenIcon && s.props.collapse ? "none" : "rotateZ(180deg)" : "none"
388
+ }
389
+ }, {
390
+ default: () => ye(S.value) ? J(o.appContext.components[S.value]) : J(S.value)
391
+ })
392
+ ], T = s.isMenuPopup ? J($e, {
393
+ ref: V,
394
+ visible: z.value,
395
+ effect: "light",
396
+ pure: !0,
397
+ offset: me.value,
398
+ showArrow: !1,
399
+ persistent: !0,
400
+ popperClass: se.value,
401
+ placement: I.value,
402
+ teleported: Q.value,
403
+ fallbackPlacements: X.value,
404
+ transition: Y.value,
405
+ gpuAcceleration: !1
406
+ }, {
407
+ content: () => {
408
+ var W;
409
+ return J("div", {
410
+ class: [
411
+ a.m(H.value),
412
+ a.m("popup-container"),
413
+ se.value
414
+ ],
415
+ onMouseenter: (A) => D(A, 100),
416
+ onMouseleave: () => te(!0),
417
+ onFocus: (A) => D(A, 100)
418
+ }, [
419
+ J("ul", {
420
+ class: [
421
+ a.b(),
422
+ a.m("popup"),
423
+ a.m(`popup-${I.value}`)
424
+ ],
425
+ style: q.value
426
+ }, [(W = t.default) == null ? void 0 : W.call(t)])
427
+ ]);
428
+ },
429
+ default: () => J("div", {
430
+ class: r.e("title"),
431
+ onClick: G
432
+ }, p)
433
+ }) : J(F, {}, [
434
+ J("div", {
435
+ class: r.e("title"),
436
+ ref: x,
437
+ onClick: G
438
+ }, p),
439
+ J(pn, {}, {
440
+ default: () => {
441
+ var W;
442
+ return ve(J("ul", {
443
+ role: "menu",
444
+ class: [a.b(), a.m("inline")],
445
+ style: q.value
446
+ }, [(W = t.default) == null ? void 0 : W.call(t)]), [[Te, z.value]]);
447
+ }
448
+ })
449
+ ]);
450
+ return J("li", {
451
+ class: [
452
+ r.b(),
453
+ r.is("active", L.value),
454
+ r.is("opened", z.value),
455
+ r.is("disabled", n.disabled)
456
+ ],
457
+ role: "menuitem",
458
+ ariaHaspopup: !0,
459
+ ariaExpanded: z.value,
460
+ onMouseenter: D,
461
+ onMouseleave: () => te(),
462
+ onFocus: D
463
+ }, [T]);
464
+ };
465
+ }
466
+ });
467
+ const Rn = Re({
468
+ mode: {
469
+ type: String,
470
+ values: ["horizontal", "vertical"],
471
+ default: "vertical"
472
+ },
473
+ defaultActive: {
474
+ type: String,
475
+ default: ""
476
+ },
477
+ defaultOpeneds: {
478
+ type: We(Array),
479
+ default: () => Xt([])
480
+ },
481
+ uniqueOpened: Boolean,
482
+ router: Boolean,
483
+ menuTrigger: {
484
+ type: String,
485
+ values: ["hover", "click"],
486
+ default: "hover"
487
+ },
488
+ collapse: Boolean,
489
+ backgroundColor: String,
490
+ textColor: String,
491
+ activeTextColor: String,
492
+ closeOnClickOutside: Boolean,
493
+ collapseTransition: {
494
+ type: Boolean,
495
+ default: !0
496
+ },
497
+ ellipsis: {
498
+ type: Boolean,
499
+ default: !0
500
+ },
501
+ popperOffset: {
502
+ type: Number,
503
+ default: 6
504
+ },
505
+ ellipsisIcon: {
506
+ type: _e,
507
+ default: () => Ft
508
+ },
509
+ popperEffect: {
510
+ type: String,
511
+ values: ["dark", "light"],
512
+ default: "dark"
513
+ },
514
+ popperClass: String,
515
+ showTimeout: {
516
+ type: Number,
517
+ default: 300
518
+ },
519
+ hideTimeout: {
520
+ type: Number,
521
+ default: 300
522
+ }
523
+ }), Xe = (n) => Array.isArray(n) && n.every((t) => ye(t)), Nn = {
524
+ close: (n, t) => ye(n) && Xe(t),
525
+ open: (n, t) => ye(n) && Xe(t),
526
+ select: (n, t, e, o) => ye(n) && Xe(t) && qt(e) && (o === void 0 || o instanceof Promise)
527
+ };
528
+ var Vn = O({
529
+ name: "ElMenu",
530
+ props: Rn,
531
+ emits: Nn,
532
+ setup(n, { emit: t, slots: e, expose: o }) {
533
+ const l = ke(), i = l.appContext.config.globalProperties.$router, a = P(), r = le("menu"), s = le("sub-menu"), d = P(-1), u = P(n.defaultOpeneds && !n.collapse ? n.defaultOpeneds.slice(0) : []), c = P(n.defaultActive), v = P({}), k = P({}), x = E(() => n.mode === "horizontal" || n.mode === "vertical" && n.collapse), V = () => {
534
+ const g = c.value && v.value[c.value];
535
+ if (!g || n.mode === "horizontal" || n.collapse)
536
+ return;
537
+ g.indexPath.forEach((M) => {
538
+ const G = k.value[M];
539
+ G && I(M, G.indexPath);
540
+ });
541
+ }, I = (g, w) => {
542
+ u.value.includes(g) || (n.uniqueOpened && (u.value = u.value.filter((M) => w.includes(M))), u.value.push(g), t("open", g, w));
543
+ }, S = (g) => {
544
+ const w = u.value.indexOf(g);
545
+ w !== -1 && u.value.splice(w, 1);
546
+ }, B = (g, w) => {
547
+ S(g), t("close", g, w);
548
+ }, Q = ({
549
+ index: g,
550
+ indexPath: w
551
+ }) => {
552
+ u.value.includes(g) ? B(g, w) : I(g, w);
553
+ }, Y = (g) => {
554
+ (n.mode === "horizontal" || n.collapse) && (u.value = []);
555
+ const { index: w, indexPath: M } = g;
556
+ if (!(it(w) || it(M)))
557
+ if (n.router && i) {
558
+ const G = g.route || w, D = i.push(G).then((te) => (te || (c.value = w), te));
559
+ t("select", w, M, { index: w, indexPath: M, route: G }, D);
560
+ } else
561
+ c.value = w, t("select", w, M, { index: w, indexPath: M });
562
+ }, X = (g) => {
563
+ const w = v.value, M = w[g] || c.value && w[c.value] || w[n.defaultActive];
564
+ M ? c.value = M.index : c.value = g;
565
+ }, z = (g) => {
566
+ const w = getComputedStyle(g), M = Number.parseInt(w.marginLeft, 10), G = Number.parseInt(w.marginRight, 10);
567
+ return g.offsetWidth + M + G || 0;
568
+ }, L = () => {
569
+ var g, w;
570
+ if (!a.value)
571
+ return -1;
572
+ const M = Array.from((w = (g = a.value) == null ? void 0 : g.childNodes) != null ? w : []).filter((A) => A.nodeName !== "#comment" && (A.nodeName !== "#text" || A.nodeValue)), G = 64, D = getComputedStyle(a.value), te = Number.parseInt(D.paddingLeft, 10), f = Number.parseInt(D.paddingRight, 10), p = a.value.clientWidth - te - f;
573
+ let T = 0, W = 0;
574
+ return M.forEach((A, N) => {
575
+ T += z(A), T <= p - G && (W = N + 1);
576
+ }), W === M.length ? -1 : W;
577
+ }, H = (g) => k.value[g].indexPath, K = (g, w = 33.34) => {
578
+ let M;
579
+ return () => {
580
+ M && clearTimeout(M), M = setTimeout(() => {
581
+ g();
582
+ }, w);
583
+ };
584
+ };
585
+ let q = !0;
586
+ const me = () => {
587
+ if (d.value === L())
588
+ return;
589
+ const g = () => {
590
+ d.value = -1, ze(() => {
591
+ d.value = L();
592
+ });
593
+ };
594
+ q ? g() : K(g)(), q = !1;
595
+ };
596
+ oe(() => n.defaultActive, (g) => {
597
+ v.value[g] || (c.value = ""), X(g);
598
+ }), oe(() => n.collapse, (g) => {
599
+ g && (u.value = []);
600
+ }), oe(v.value, V);
601
+ let se;
602
+ et(() => {
603
+ n.mode === "horizontal" && n.ellipsis ? se = Ht(a, me).stop : se == null || se();
604
+ });
605
+ const pe = P(!1);
606
+ {
607
+ const g = (D) => {
608
+ k.value[D.index] = D;
609
+ }, w = (D) => {
610
+ delete k.value[D.index];
611
+ };
612
+ Oe("rootMenu", Ue({
613
+ props: n,
614
+ openedMenus: u,
615
+ items: v,
616
+ subMenus: k,
617
+ activeIndex: c,
618
+ isMenuPopup: x,
619
+ addMenuItem: (D) => {
620
+ v.value[D.index] = D;
621
+ },
622
+ removeMenuItem: (D) => {
623
+ delete v.value[D.index];
624
+ },
625
+ addSubMenu: g,
626
+ removeSubMenu: w,
627
+ openMenu: I,
628
+ closeMenu: B,
629
+ handleMenuItemClick: Y,
630
+ handleSubMenuClick: Q
631
+ })), Oe(`subMenu:${l.uid}`, {
632
+ addSubMenu: g,
633
+ removeSubMenu: w,
634
+ mouseInChild: pe,
635
+ level: 0
636
+ });
637
+ }
638
+ return fe(() => {
639
+ n.mode === "horizontal" && new Sn(l.vnode.el, r.namespace.value);
640
+ }), o({
641
+ open: (w) => {
642
+ const { indexPath: M } = k.value[w];
643
+ M.forEach((G) => I(G, M));
644
+ },
645
+ close: S,
646
+ handleResize: me
647
+ }), () => {
648
+ var g, w;
649
+ let M = (w = (g = e.default) == null ? void 0 : g.call(e)) != null ? w : [];
650
+ const G = [];
651
+ if (n.mode === "horizontal" && a.value) {
652
+ const p = Kt(M), T = d.value === -1 ? p : p.slice(0, d.value), W = d.value === -1 ? [] : p.slice(d.value);
653
+ W != null && W.length && n.ellipsis && (M = T, G.push(J(lt, {
654
+ index: "sub-menu-more",
655
+ class: s.e("hide-arrow"),
656
+ popperOffset: n.popperOffset
657
+ }, {
658
+ title: () => J(Ge, {
659
+ class: s.e("icon-more")
660
+ }, {
661
+ default: () => J(n.ellipsisIcon)
662
+ }),
663
+ default: () => W
664
+ })));
665
+ }
666
+ const D = Mt(n, 0), te = n.closeOnClickOutside ? [
667
+ [
668
+ cn,
669
+ () => {
670
+ u.value.length && (pe.value || (u.value.forEach((p) => t("close", p, H(p))), u.value = []));
671
+ }
672
+ ]
673
+ ] : [], f = ve(J("ul", {
674
+ key: String(n.collapse),
675
+ role: "menubar",
676
+ ref: a,
677
+ style: D.value,
678
+ class: {
679
+ [r.b()]: !0,
680
+ [r.m(n.mode)]: !0,
681
+ [r.m("collapse")]: n.collapse
682
+ }
683
+ }, [...M, ...G]), te);
684
+ return n.collapseTransition && n.mode === "vertical" ? J(Tn, () => f) : f;
685
+ };
686
+ }
687
+ });
688
+ const Bn = Re({
689
+ index: {
690
+ type: We([String, null]),
691
+ default: null
692
+ },
693
+ route: {
694
+ type: We([String, Object])
695
+ },
696
+ disabled: Boolean
697
+ }), Ln = {
698
+ click: (n) => ye(n.index) && Array.isArray(n.indexPath)
699
+ }, Fe = "ElMenuItem", On = O({
700
+ name: Fe,
701
+ components: {
702
+ ElTooltip: $e
703
+ },
704
+ props: Bn,
705
+ emits: Ln,
706
+ setup(n, { emit: t }) {
707
+ const e = ke(), o = Ee("rootMenu"), l = le("menu"), i = le("menu-item");
708
+ o || De(Fe, "can not inject root menu");
709
+ const { parentMenu: a, indexPath: r } = St(e, Dt(n, "index")), s = Ee(`subMenu:${a.value.uid}`);
710
+ s || De(Fe, "can not inject sub menu");
711
+ const d = E(() => n.index === o.activeIndex), u = Ue({
712
+ index: n.index,
713
+ indexPath: r,
714
+ active: d
715
+ }), c = () => {
716
+ n.disabled || (o.handleMenuItemClick({
717
+ index: n.index,
718
+ indexPath: r.value,
719
+ route: n.route
720
+ }), t("click", u));
721
+ };
722
+ return fe(() => {
723
+ s.addSubMenu(u), o.addMenuItem(u);
724
+ }), Ze(() => {
725
+ s.removeSubMenu(u), o.removeMenuItem(u);
726
+ }), {
727
+ parentMenu: a,
728
+ rootMenu: o,
729
+ active: d,
730
+ nsMenu: l,
731
+ nsMenuItem: i,
732
+ handleClick: c
733
+ };
734
+ }
735
+ });
736
+ function zn(n, t, e, o, l, i) {
737
+ const a = Ie("el-tooltip");
738
+ return m(), _("li", {
739
+ class: Z([
740
+ n.nsMenuItem.b(),
741
+ n.nsMenuItem.is("active", n.active),
742
+ n.nsMenuItem.is("disabled", n.disabled)
743
+ ]),
744
+ role: "menuitem",
745
+ tabindex: "-1",
746
+ onClick: t[0] || (t[0] = (...r) => n.handleClick && n.handleClick(...r))
747
+ }, [
748
+ n.parentMenu.type.name === "ElMenu" && n.rootMenu.props.collapse && n.$slots.title ? (m(), R(a, {
749
+ key: 0,
750
+ effect: n.rootMenu.props.popperEffect,
751
+ placement: "right",
752
+ "fallback-placements": ["left"],
753
+ persistent: ""
754
+ }, {
755
+ content: y(() => [
756
+ ee(n.$slots, "title")
757
+ ]),
758
+ default: y(() => [
759
+ C("div", {
760
+ class: Z(n.nsMenu.be("tooltip", "trigger"))
761
+ }, [
762
+ ee(n.$slots, "default")
763
+ ], 2)
764
+ ]),
765
+ _: 3
766
+ }, 8, ["effect"])) : (m(), _(F, { key: 1 }, [
767
+ ee(n.$slots, "default"),
768
+ ee(n.$slots, "title")
769
+ ], 64))
770
+ ], 2);
771
+ }
772
+ var Et = /* @__PURE__ */ Ne(On, [["render", zn], ["__file", "menu-item.vue"]]);
773
+ const Wn = {
774
+ title: String
775
+ }, Dn = "ElMenuItemGroup", Un = O({
776
+ name: Dn,
777
+ props: Wn,
778
+ setup() {
779
+ return {
780
+ ns: le("menu-item-group")
781
+ };
782
+ }
783
+ });
784
+ function Zn(n, t, e, o, l, i) {
785
+ return m(), _("li", {
786
+ class: Z(n.ns.b())
787
+ }, [
788
+ C("div", {
789
+ class: Z(n.ns.e("title"))
790
+ }, [
791
+ n.$slots.title ? ee(n.$slots, "title", { key: 1 }) : (m(), _(F, { key: 0 }, [
792
+ $(de(n.title), 1)
793
+ ], 64))
794
+ ], 2),
795
+ C("ul", null, [
796
+ ee(n.$slots, "default")
797
+ ])
798
+ ], 2);
799
+ }
800
+ var Tt = /* @__PURE__ */ Ne(Un, [["render", Zn], ["__file", "menu-item-group.vue"]]);
801
+ const At = bt(Vn, {
802
+ MenuItem: Et,
803
+ MenuItemGroup: Tt,
804
+ SubMenu: lt
805
+ }), Pt = Qe(Et);
806
+ Qe(Tt);
807
+ const Gn = Qe(lt), Qn = /* @__PURE__ */ O({
808
+ __name: "index",
809
+ props: {
810
+ isActive: {
811
+ required: !0,
812
+ type: Boolean,
813
+ default: !1
814
+ }
815
+ },
816
+ emits: ["toggleClick"],
817
+ setup(n, { emit: t }) {
818
+ const e = t;
819
+ function o() {
820
+ e("toggleClick");
821
+ }
822
+ return (l, i) => {
823
+ const a = Ce;
824
+ return m(), _("div", {
825
+ class: "px-[15px] flex items-center justify-center color-[var(--el-text-color-regular)]",
826
+ onClick: o
827
+ }, [
828
+ b(a, {
829
+ class: Z(["hamburger", { "is-active": n.isActive }]),
830
+ "icon-class": "shrink"
831
+ }, null, 8, ["class"])
832
+ ]);
833
+ };
834
+ }
835
+ }), Rt = /* @__PURE__ */ j(Qn, [["__scopeId", "data-v-49d8a6fe"]]), Yn = /* @__PURE__ */ O({
836
+ __name: "index",
837
+ setup(n) {
838
+ const t = ae(), e = P([
839
+ { label: "默认", value: "default" },
840
+ { label: "大型", value: "large" },
841
+ { label: "小型", value: "small" }
842
+ ]);
843
+ function o(l) {
844
+ t.changeSize(l), _t.success("切换布局大小成功");
845
+ }
846
+ return (l, i) => {
847
+ const a = Ce, r = xt, s = wt, d = Ct;
848
+ return m(), R(d, {
849
+ trigger: "click",
850
+ onCommand: o
851
+ }, {
852
+ dropdown: y(() => [
853
+ b(s, null, {
854
+ default: y(() => [
855
+ (m(!0), _(F, null, he(h(e), (u) => (m(), R(r, {
856
+ key: u.value,
857
+ disabled: h(t).size == u.value,
858
+ command: u.value
859
+ }, {
860
+ default: y(() => [
861
+ $(de(u.label), 1)
862
+ ]),
863
+ _: 2
864
+ }, 1032, ["disabled", "command"]))), 128))
865
+ ]),
866
+ _: 1
867
+ })
868
+ ]),
869
+ default: y(() => [
870
+ C("div", null, [
871
+ b(a, { "icon-class": "size" })
872
+ ])
873
+ ]),
874
+ _: 1
875
+ });
876
+ };
877
+ }
878
+ }), $n = {
879
+ key: 0,
880
+ class: "setting-container"
881
+ }, Jn = { class: "avatar-container" }, jn = ["src"], Hn = ["onClick"], Kn = /* @__PURE__ */ O({
882
+ __name: "NavRight",
883
+ setup(n) {
884
+ const t = ae(), e = Ye(), o = be(), l = Je(), { device: i } = ot(t), a = P(!1), r = P(!1), s = P(!1), d = P([]), u = Ue([
885
+ {
886
+ label: "用户名",
887
+ prop: "loginName",
888
+ width: "100",
889
+ sortable: !0,
890
+ isColumn: !0
891
+ },
892
+ {
893
+ label: "用户昵称",
894
+ prop: "nickName",
895
+ width: "100",
896
+ isColumn: !0
897
+ },
898
+ {
899
+ label: "手机号",
900
+ prop: "mobilePhone",
901
+ width: "180",
902
+ isColumn: !0,
903
+ sortable: !0
904
+ },
905
+ {
906
+ label: "邮箱",
907
+ prop: "email",
908
+ width: "180",
909
+ isColumn: !0,
910
+ sortable: !0
911
+ },
912
+ {
913
+ label: "查看/隐藏",
914
+ width: "100",
915
+ slotName: "encryption",
916
+ columnType: "slot",
917
+ isColumn: !0
918
+ },
919
+ {
920
+ label: "操作",
921
+ width: "100",
922
+ slotName: "operation",
923
+ columnType: "slot",
924
+ fixed: "right",
925
+ isColumn: !0
926
+ }
927
+ ]), { isFullscreen: c, toggle: v } = en();
928
+ function k(S) {
929
+ r.value = S;
930
+ }
931
+ function x() {
932
+ a.value = !0, s.value = !0, tn().then(({ data: S }) => {
933
+ console.log(S), s.value = !1, d.value = S.results;
934
+ });
935
+ }
936
+ function V(S) {
937
+ rt.confirm("确定切换用户身份吗?", "提示", {
938
+ confirmButtonText: "确定",
939
+ cancelButtonText: "取消",
940
+ type: "warning"
941
+ }).then(() => {
942
+ console.log(be()), nn(S.userId).then(async (B) => {
943
+ if (B.status === 200) {
944
+ be().user.roleCodes = [], be().user.permCodes = [];
945
+ const { roleCodes: Q } = await be().getRoleInfo(), Y = await be().getUserInfo();
946
+ await on().generateRoutes(Q, Y), _t({
947
+ message: "切换成功",
948
+ type: "success"
949
+ }), a.value = !1;
950
+ }
951
+ });
952
+ });
953
+ }
954
+ function I() {
955
+ rt.confirm("确定注销并退出系统吗?", "提示", {
956
+ confirmButtonText: "确定",
957
+ cancelButtonText: "取消",
958
+ type: "warning"
959
+ }).then(() => {
960
+ o.logout().then(() => {
961
+ e.delAllViews();
962
+ }).then(() => {
963
+ l.push("/login");
964
+ });
965
+ }).catch(() => {
966
+ });
967
+ }
968
+ return (S, B) => {
969
+ const Q = Ce, Y = Yn, X = $e, z = un, L = xt, H = Ie("router-link"), K = wt, q = Ct, me = rn, se = sn, pe = Ut("hasPerm");
970
+ return m(), _(F, null, [
971
+ h(i) !== "mobile" ? (m(), _("div", $n, [
972
+ C("div", {
973
+ class: "setting-item",
974
+ onClick: B[0] || (B[0] = //@ts-ignore
975
+ (...g) => h(v) && h(v)(...g))
976
+ }, [
977
+ b(Q, {
978
+ "icon-class": h(c) ? "exit-fullscreen" : "fullscreen"
979
+ }, null, 8, ["icon-class"])
980
+ ]),
981
+ b(X, {
982
+ content: "布局大小",
983
+ effect: "dark",
984
+ placement: "bottom"
985
+ }, {
986
+ default: y(() => [
987
+ b(Y, { class: "setting-item" })
988
+ ]),
989
+ _: 1
990
+ })
991
+ ])) : U("", !0),
992
+ b(q, { trigger: "click" }, {
993
+ dropdown: y(() => [
994
+ b(K, null, {
995
+ default: y(() => [
996
+ b(H, { to: "/" }, {
997
+ default: y(() => [
998
+ b(L, null, {
999
+ default: y(() => [
1000
+ $("首页")
1001
+ ]),
1002
+ _: 1
1003
+ })
1004
+ ]),
1005
+ _: 1
1006
+ }),
1007
+ b(L, null, {
1008
+ default: y(() => [
1009
+ b(H, { to: "/my/profile" }, {
1010
+ default: y(() => [
1011
+ $("个人中心")
1012
+ ]),
1013
+ _: 1
1014
+ })
1015
+ ]),
1016
+ _: 1
1017
+ }),
1018
+ b(L, {
1019
+ onClick: B[1] || (B[1] = (g) => r.value = !0)
1020
+ }, {
1021
+ default: y(() => [
1022
+ $(" 修改密码 ")
1023
+ ]),
1024
+ _: 1
1025
+ }),
1026
+ b(L, { onClick: x }, {
1027
+ default: y(() => [
1028
+ $("切换身份")
1029
+ ]),
1030
+ _: 1
1031
+ }),
1032
+ b(L, {
1033
+ divided: "",
1034
+ onClick: I
1035
+ }, {
1036
+ default: y(() => [
1037
+ $("退出登录")
1038
+ ]),
1039
+ _: 1
1040
+ })
1041
+ ]),
1042
+ _: 1
1043
+ })
1044
+ ]),
1045
+ default: y(() => [
1046
+ C("div", Jn, [
1047
+ C("img", {
1048
+ src: h(o).user.avatar
1049
+ }, null, 8, jn),
1050
+ b(z, { class: "w-3 h-3" })
1051
+ ])
1052
+ ]),
1053
+ _: 1
1054
+ }),
1055
+ b(se, {
1056
+ title: "切换身份",
1057
+ modelValue: a.value,
1058
+ "onUpdate:modelValue": B[2] || (B[2] = (g) => a.value = g),
1059
+ width: "700px"
1060
+ }, {
1061
+ default: y(() => [
1062
+ b(me, {
1063
+ class: "table-top",
1064
+ ref: "multipleTableRef",
1065
+ "row-keys": "userId",
1066
+ "list-loading": s.value,
1067
+ "table-data": d.value,
1068
+ "table-label": u
1069
+ }, {
1070
+ operation: y((g) => [
1071
+ ve((m(), _("span", {
1072
+ class: "el-button-color",
1073
+ onClick: (w) => V(g.data.row)
1074
+ }, [
1075
+ $(" 切换 ")
1076
+ ], 8, Hn)), [
1077
+ [pe, ["rbac:user:switch"]]
1078
+ ])
1079
+ ]),
1080
+ _: 1
1081
+ }, 8, ["list-loading", "table-data", "table-label"])
1082
+ ]),
1083
+ _: 1
1084
+ }, 8, ["modelValue"]),
1085
+ r.value ? (m(), R(fn, {
1086
+ key: 1,
1087
+ "pwd-visible": r.value,
1088
+ onDialogActionChange: k
1089
+ }, null, 8, ["pwd-visible"])) : U("", !0)
1090
+ ], 64);
1091
+ };
1092
+ }
1093
+ }), Nt = /* @__PURE__ */ j(Kn, [["__scopeId", "data-v-0c82d9ad"]]);
1094
+ function Xn(n) {
1095
+ for (var t = [], e = 0; e < n.length; ) {
1096
+ var o = n[e];
1097
+ if (o === "*" || o === "+" || o === "?") {
1098
+ t.push({ type: "MODIFIER", index: e, value: n[e++] });
1099
+ continue;
1100
+ }
1101
+ if (o === "\\") {
1102
+ t.push({ type: "ESCAPED_CHAR", index: e++, value: n[e++] });
1103
+ continue;
1104
+ }
1105
+ if (o === "{") {
1106
+ t.push({ type: "OPEN", index: e, value: n[e++] });
1107
+ continue;
1108
+ }
1109
+ if (o === "}") {
1110
+ t.push({ type: "CLOSE", index: e, value: n[e++] });
1111
+ continue;
1112
+ }
1113
+ if (o === ":") {
1114
+ for (var l = "", i = e + 1; i < n.length; ) {
1115
+ var a = n.charCodeAt(i);
1116
+ if (
1117
+ // `0-9`
1118
+ a >= 48 && a <= 57 || // `A-Z`
1119
+ a >= 65 && a <= 90 || // `a-z`
1120
+ a >= 97 && a <= 122 || // `_`
1121
+ a === 95
1122
+ ) {
1123
+ l += n[i++];
1124
+ continue;
1125
+ }
1126
+ break;
1127
+ }
1128
+ if (!l)
1129
+ throw new TypeError("Missing parameter name at ".concat(e));
1130
+ t.push({ type: "NAME", index: e, value: l }), e = i;
1131
+ continue;
1132
+ }
1133
+ if (o === "(") {
1134
+ var r = 1, s = "", i = e + 1;
1135
+ if (n[i] === "?")
1136
+ throw new TypeError('Pattern cannot start with "?" at '.concat(i));
1137
+ for (; i < n.length; ) {
1138
+ if (n[i] === "\\") {
1139
+ s += n[i++] + n[i++];
1140
+ continue;
1141
+ }
1142
+ if (n[i] === ")") {
1143
+ if (r--, r === 0) {
1144
+ i++;
1145
+ break;
1146
+ }
1147
+ } else if (n[i] === "(" && (r++, n[i + 1] !== "?"))
1148
+ throw new TypeError("Capturing groups are not allowed at ".concat(i));
1149
+ s += n[i++];
1150
+ }
1151
+ if (r)
1152
+ throw new TypeError("Unbalanced pattern at ".concat(e));
1153
+ if (!s)
1154
+ throw new TypeError("Missing pattern at ".concat(e));
1155
+ t.push({ type: "PATTERN", index: e, value: s }), e = i;
1156
+ continue;
1157
+ }
1158
+ t.push({ type: "CHAR", index: e, value: n[e++] });
1159
+ }
1160
+ return t.push({ type: "END", index: e, value: "" }), t;
1161
+ }
1162
+ function Fn(n, t) {
1163
+ t === void 0 && (t = {});
1164
+ for (var e = Xn(n), o = t.prefixes, l = o === void 0 ? "./" : o, i = "[^".concat(to(t.delimiter || "/#?"), "]+?"), a = [], r = 0, s = 0, d = "", u = function(z) {
1165
+ if (s < e.length && e[s].type === z)
1166
+ return e[s++].value;
1167
+ }, c = function(z) {
1168
+ var L = u(z);
1169
+ if (L !== void 0)
1170
+ return L;
1171
+ var H = e[s], K = H.type, q = H.index;
1172
+ throw new TypeError("Unexpected ".concat(K, " at ").concat(q, ", expected ").concat(z));
1173
+ }, v = function() {
1174
+ for (var z = "", L; L = u("CHAR") || u("ESCAPED_CHAR"); )
1175
+ z += L;
1176
+ return z;
1177
+ }; s < e.length; ) {
1178
+ var k = u("CHAR"), x = u("NAME"), V = u("PATTERN");
1179
+ if (x || V) {
1180
+ var I = k || "";
1181
+ l.indexOf(I) === -1 && (d += I, I = ""), d && (a.push(d), d = ""), a.push({
1182
+ name: x || r++,
1183
+ prefix: I,
1184
+ suffix: "",
1185
+ pattern: V || i,
1186
+ modifier: u("MODIFIER") || ""
1187
+ });
1188
+ continue;
1189
+ }
1190
+ var S = k || u("ESCAPED_CHAR");
1191
+ if (S) {
1192
+ d += S;
1193
+ continue;
1194
+ }
1195
+ d && (a.push(d), d = "");
1196
+ var B = u("OPEN");
1197
+ if (B) {
1198
+ var I = v(), Q = u("NAME") || "", Y = u("PATTERN") || "", X = v();
1199
+ c("CLOSE"), a.push({
1200
+ name: Q || (Y ? r++ : ""),
1201
+ pattern: Q && !Y ? i : Y,
1202
+ prefix: I,
1203
+ suffix: X,
1204
+ modifier: u("MODIFIER") || ""
1205
+ });
1206
+ continue;
1207
+ }
1208
+ c("END");
1209
+ }
1210
+ return a;
1211
+ }
1212
+ function qn(n, t) {
1213
+ return eo(Fn(n, t), t);
1214
+ }
1215
+ function eo(n, t) {
1216
+ t === void 0 && (t = {});
1217
+ var e = no(t), o = t.encode, l = o === void 0 ? function(s) {
1218
+ return s;
1219
+ } : o, i = t.validate, a = i === void 0 ? !0 : i, r = n.map(function(s) {
1220
+ if (typeof s == "object")
1221
+ return new RegExp("^(?:".concat(s.pattern, ")$"), e);
1222
+ });
1223
+ return function(s) {
1224
+ for (var d = "", u = 0; u < n.length; u++) {
1225
+ var c = n[u];
1226
+ if (typeof c == "string") {
1227
+ d += c;
1228
+ continue;
1229
+ }
1230
+ var v = s ? s[c.name] : void 0, k = c.modifier === "?" || c.modifier === "*", x = c.modifier === "*" || c.modifier === "+";
1231
+ if (Array.isArray(v)) {
1232
+ if (!x)
1233
+ throw new TypeError('Expected "'.concat(c.name, '" to not repeat, but got an array'));
1234
+ if (v.length === 0) {
1235
+ if (k)
1236
+ continue;
1237
+ throw new TypeError('Expected "'.concat(c.name, '" to not be empty'));
1238
+ }
1239
+ for (var V = 0; V < v.length; V++) {
1240
+ var I = l(v[V], c);
1241
+ if (a && !r[u].test(I))
1242
+ throw new TypeError('Expected all "'.concat(c.name, '" to match "').concat(c.pattern, '", but got "').concat(I, '"'));
1243
+ d += c.prefix + I + c.suffix;
1244
+ }
1245
+ continue;
1246
+ }
1247
+ if (typeof v == "string" || typeof v == "number") {
1248
+ var I = l(String(v), c);
1249
+ if (a && !r[u].test(I))
1250
+ throw new TypeError('Expected "'.concat(c.name, '" to match "').concat(c.pattern, '", but got "').concat(I, '"'));
1251
+ d += c.prefix + I + c.suffix;
1252
+ continue;
1253
+ }
1254
+ if (!k) {
1255
+ var S = x ? "an array" : "a string";
1256
+ throw new TypeError('Expected "'.concat(c.name, '" to be ').concat(S));
1257
+ }
1258
+ }
1259
+ return d;
1260
+ };
1261
+ }
1262
+ function to(n) {
1263
+ return n.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
1264
+ }
1265
+ function no(n) {
1266
+ return n && n.sensitive ? "" : "i";
1267
+ }
1268
+ function Ae(n) {
1269
+ return ct.global.te("route." + n) ? ct.global.t("route." + n) : n;
1270
+ }
1271
+ const oo = {
1272
+ key: 0,
1273
+ class: "text-[var(--el-disabled-text-color)]"
1274
+ }, lo = ["onClick"], ao = /* @__PURE__ */ O({
1275
+ __name: "index",
1276
+ setup(n) {
1277
+ const t = je(), e = (r) => {
1278
+ const { params: s } = t;
1279
+ return qn(r)(s);
1280
+ }, o = P([]);
1281
+ function l() {
1282
+ let r = t.matched.filter(
1283
+ (d) => d.meta && d.meta.title
1284
+ );
1285
+ const s = r[0];
1286
+ i(s) || (r = [
1287
+ { path: "/dashboard", meta: { title: "dashboard" } }
1288
+ ].concat(r)), o.value = r.filter((d) => d.meta && d.meta.title && d.meta.breadcrumb != !1);
1289
+ }
1290
+ function i(r) {
1291
+ const s = r && r.name;
1292
+ return s ? s.toString().trim().toLocaleLowerCase() === "Dashboard".toLocaleLowerCase() : !1;
1293
+ }
1294
+ function a(r) {
1295
+ const { redirect: s, path: d } = r;
1296
+ if (s) {
1297
+ ut.push(s).catch((u) => {
1298
+ console.warn(u);
1299
+ });
1300
+ return;
1301
+ }
1302
+ ut.push(e(d)).catch((u) => {
1303
+ console.warn(u);
1304
+ });
1305
+ }
1306
+ return oe(
1307
+ () => t.path,
1308
+ (r) => {
1309
+ r.startsWith("/redirect/") || l();
1310
+ }
1311
+ ), Zt(() => {
1312
+ l();
1313
+ }), (r, s) => {
1314
+ const d = Cn, u = wn;
1315
+ return m(), R(u, { class: "h-[50px] flex items-center" }, {
1316
+ default: y(() => [
1317
+ b(Gt, { name: "breadcrumb" }, {
1318
+ default: y(() => [
1319
+ (m(!0), _(F, null, he(h(o), (c, v) => (m(), R(d, {
1320
+ key: c.path
1321
+ }, {
1322
+ default: y(() => [
1323
+ c.redirect === "noredirect" || v === h(o).length - 1 ? (m(), _("span", oo, de(h(Ae)(c.meta.title)), 1)) : (m(), _("a", {
1324
+ key: 1,
1325
+ onClick: Me((k) => a(c), ["prevent"])
1326
+ }, de(h(Ae)(c.meta.title)), 9, lo))
1327
+ ]),
1328
+ _: 2
1329
+ }, 1024))), 128))
1330
+ ]),
1331
+ _: 1
1332
+ })
1333
+ ]),
1334
+ _: 1
1335
+ });
1336
+ };
1337
+ }
1338
+ }), so = /* @__PURE__ */ j(ao, [["__scopeId", "data-v-762ee6cf"]]), io = { class: "navbar" }, ro = { class: "flex" }, co = { class: "flex" }, uo = /* @__PURE__ */ O({
1339
+ __name: "index",
1340
+ setup(n) {
1341
+ const t = ae();
1342
+ function e() {
1343
+ t.toggleSidebar();
1344
+ }
1345
+ return (o, l) => {
1346
+ const i = Rt, a = so, r = Nt;
1347
+ return m(), _("div", io, [
1348
+ C("div", ro, [
1349
+ b(i, {
1350
+ "is-active": h(t).sidebar.opened,
1351
+ onToggleClick: e
1352
+ }, null, 8, ["is-active"]),
1353
+ b(a)
1354
+ ]),
1355
+ C("div", co, [
1356
+ b(r)
1357
+ ])
1358
+ ]);
1359
+ };
1360
+ }
1361
+ }), fo = /* @__PURE__ */ j(uo, [["__scopeId", "data-v-5ef96d24"]]), mo = { class: "app-main" }, po = /* @__PURE__ */ O({
1362
+ __name: "AppMain",
1363
+ setup(n) {
1364
+ const t = Ye();
1365
+ return (e, o) => {
1366
+ const l = Ie("router-view");
1367
+ return m(), _("section", mo, [
1368
+ b(l, null, {
1369
+ default: y(({ Component: i, route: a }) => [
1370
+ b(qe, {
1371
+ name: "fade-slide",
1372
+ mode: "out-in"
1373
+ }, {
1374
+ default: y(() => [
1375
+ (m(), R(Qt, {
1376
+ include: h(t).cachedViews
1377
+ }, [
1378
+ (m(), R(vt(i), {
1379
+ key: a.fullPath
1380
+ }))
1381
+ ], 1032, ["include"]))
1382
+ ]),
1383
+ _: 2
1384
+ }, 1024)
1385
+ ]),
1386
+ _: 1
1387
+ })
1388
+ ]);
1389
+ };
1390
+ }
1391
+ }), vo = /* @__PURE__ */ j(po, [["__scopeId", "data-v-efceebb1"]]), ho = {
1392
+ viewBox: "0 0 1024 1024",
1393
+ width: "1.2em",
1394
+ height: "1.2em"
1395
+ }, go = /* @__PURE__ */ C("path", {
1396
+ fill: "currentColor",
1397
+ d: "M406.656 706.944L195.84 496.256a32 32 0 1 0-45.248 45.248l256 256l512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"
1398
+ }, null, -1), bo = [
1399
+ go
1400
+ ];
1401
+ function _o(n, t) {
1402
+ return m(), _("svg", ho, [...bo]);
1403
+ }
1404
+ const yo = { name: "ep-check", render: _o }, ce = (n) => (ht("data-v-96dc8891"), n = n(), gt(), n), xo = { class: "settings-container" }, wo = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("h3", { class: "text-base font-bold" }, "项目配置", -1)), Co = { class: "py-[8px] flex justify-between" }, ko = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("span", { class: "text-xs" }, "开启 Tags-View", -1)), Io = { class: "py-[8px] flex justify-between" }, So = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("span", { class: "text-xs" }, "固定 Header", -1)), Mo = { class: "py-[8px] flex justify-between" }, Eo = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("span", { class: "text-xs" }, "侧边栏 Logo", -1)), To = { class: "w-full space-x-2 flex justify-center py-2" }, Ao = ["onClick"], Po = { class: "layout" }, Ro = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("div", null, null, -1)), No = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("div", null, null, -1)), Vo = [
1405
+ Ro,
1406
+ No
1407
+ ], Bo = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("div", null, null, -1)), Lo = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("div", null, null, -1)), Oo = [
1408
+ Bo,
1409
+ Lo
1410
+ ], zo = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("div", null, null, -1)), Wo = /* @__PURE__ */ ce(() => /* @__PURE__ */ C("div", null, null, -1)), Do = [
1411
+ zo,
1412
+ Wo
1413
+ ], Uo = /* @__PURE__ */ O({
1414
+ __name: "index",
1415
+ setup(n) {
1416
+ const t = je(), e = ge(), o = Ve(), l = ae();
1417
+ function i(c, v) {
1418
+ let k = {};
1419
+ function x(I, S) {
1420
+ if (k[I.name] = S, I.children)
1421
+ for (let B = 0; B < I.children.length; B++)
1422
+ x(I.children[B], I);
1423
+ }
1424
+ for (let I = 0; I < c.length; I++)
1425
+ x(c[I], null);
1426
+ let V = k[v];
1427
+ for (; V; ) {
1428
+ if (!k[V.name])
1429
+ return V;
1430
+ V = k[V.name];
1431
+ }
1432
+ return null;
1433
+ }
1434
+ const a = (c) => {
1435
+ const v = i(o.routes, c);
1436
+ l.activeTopMenu !== v.path && l.changeTopActive(v.path);
1437
+ };
1438
+ function r(c) {
1439
+ e.changeSetting({ key: "layout", value: c }), window.document.body.setAttribute("layout", e.layout), c === "mix" && t.name && a(t.name);
1440
+ }
1441
+ const s = P([
1442
+ "#409EFF",
1443
+ "#304156",
1444
+ "#11a983",
1445
+ "#13c2c2",
1446
+ "#6959CD",
1447
+ "#f5222d"
1448
+ ]);
1449
+ function d(c) {
1450
+ document.documentElement.style.setProperty("--el-color-primary", c), e.changeSetting({ key: "themeColor", value: c });
1451
+ }
1452
+ const u = E(() => e.themeColor);
1453
+ return fe(() => {
1454
+ window.document.body.setAttribute("layout", e.layout), e.theme == "dark" && document.documentElement.classList.add("dark"), document.documentElement.style.setProperty(
1455
+ "--el-color-primary",
1456
+ e.themeColor
1457
+ );
1458
+ }), (c, v) => {
1459
+ const k = dn, x = mn, V = yo, I = $e;
1460
+ return m(), _("div", xo, [
1461
+ wo,
1462
+ b(k, null, {
1463
+ default: y(() => [
1464
+ $("界面设置")
1465
+ ]),
1466
+ _: 1
1467
+ }),
1468
+ C("div", Co, [
1469
+ ko,
1470
+ b(x, {
1471
+ modelValue: h(e).tagsView,
1472
+ "onUpdate:modelValue": v[0] || (v[0] = (S) => h(e).tagsView = S)
1473
+ }, null, 8, ["modelValue"])
1474
+ ]),
1475
+ C("div", Io, [
1476
+ So,
1477
+ b(x, {
1478
+ modelValue: h(e).fixedHeader,
1479
+ "onUpdate:modelValue": v[1] || (v[1] = (S) => h(e).fixedHeader = S)
1480
+ }, null, 8, ["modelValue"])
1481
+ ]),
1482
+ C("div", Mo, [
1483
+ Eo,
1484
+ b(x, {
1485
+ modelValue: h(e).sidebarLogo,
1486
+ "onUpdate:modelValue": v[2] || (v[2] = (S) => h(e).sidebarLogo = S)
1487
+ }, null, 8, ["modelValue"])
1488
+ ]),
1489
+ b(k, null, {
1490
+ default: y(() => [
1491
+ $("主题颜色")
1492
+ ]),
1493
+ _: 1
1494
+ }),
1495
+ C("ul", To, [
1496
+ (m(!0), _(F, null, he(s.value, (S, B) => (m(), _("li", {
1497
+ key: B,
1498
+ class: "inline-block w-[30px] h-[30px] cursor-pointer theme-wrap",
1499
+ style: tt({ background: S }),
1500
+ onClick: (Q) => d(S)
1501
+ }, [
1502
+ ve(b(V, null, null, 512), [
1503
+ [Te, S === u.value]
1504
+ ])
1505
+ ], 12, Ao))), 128))
1506
+ ]),
1507
+ b(k, null, {
1508
+ default: y(() => [
1509
+ $("导航设置")
1510
+ ]),
1511
+ _: 1
1512
+ }),
1513
+ C("ul", Po, [
1514
+ b(I, {
1515
+ content: "左侧模式",
1516
+ placement: "bottom"
1517
+ }, {
1518
+ default: y(() => [
1519
+ C("li", {
1520
+ class: Z(
1521
+ "layout-item layout-left " + (h(e).layout === "left" ? "is-active" : "")
1522
+ ),
1523
+ onClick: v[3] || (v[3] = (S) => r("left"))
1524
+ }, Vo, 2)
1525
+ ]),
1526
+ _: 1
1527
+ }),
1528
+ b(I, {
1529
+ content: "顶部模式",
1530
+ placement: "bottom"
1531
+ }, {
1532
+ default: y(() => [
1533
+ C("li", {
1534
+ class: Z(
1535
+ "layout-item layout-top " + (h(e).layout === "top" ? "is-active" : "")
1536
+ ),
1537
+ onClick: v[4] || (v[4] = (S) => r("top"))
1538
+ }, Oo, 2)
1539
+ ]),
1540
+ _: 1
1541
+ }),
1542
+ b(I, {
1543
+ content: "混合模式",
1544
+ placement: "bottom"
1545
+ }, {
1546
+ default: y(() => [
1547
+ C("li", {
1548
+ class: Z(
1549
+ "layout-item layout-mix " + (h(e).layout === "mix" ? "is-active" : "")
1550
+ ),
1551
+ onClick: v[5] || (v[5] = (S) => r("mix"))
1552
+ }, Do, 2)
1553
+ ]),
1554
+ _: 1
1555
+ })
1556
+ ])
1557
+ ]);
1558
+ };
1559
+ }
1560
+ }), Zo = /* @__PURE__ */ j(Uo, [["__scopeId", "data-v-96dc8891"]]), Go = {
1561
+ viewBox: "0 0 1024 1024",
1562
+ width: "1.2em",
1563
+ height: "1.2em"
1564
+ }, Qo = /* @__PURE__ */ C("path", {
1565
+ fill: "currentColor",
1566
+ d: "M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
1567
+ }, null, -1), Yo = [
1568
+ Qo
1569
+ ];
1570
+ function $o(n, t) {
1571
+ return m(), _("svg", Go, [...Yo]);
1572
+ }
1573
+ const Vt = { name: "ep-close", render: $o };
1574
+ function ie(n) {
1575
+ if (typeof n != "string")
1576
+ throw new TypeError("Path must be a string. Received " + JSON.stringify(n));
1577
+ }
1578
+ function dt(n, t) {
1579
+ for (var e = "", o = 0, l = -1, i = 0, a, r = 0; r <= n.length; ++r) {
1580
+ if (r < n.length)
1581
+ a = n.charCodeAt(r);
1582
+ else {
1583
+ if (a === 47)
1584
+ break;
1585
+ a = 47;
1586
+ }
1587
+ if (a === 47) {
1588
+ if (!(l === r - 1 || i === 1))
1589
+ if (l !== r - 1 && i === 2) {
1590
+ if (e.length < 2 || o !== 2 || e.charCodeAt(e.length - 1) !== 46 || e.charCodeAt(e.length - 2) !== 46) {
1591
+ if (e.length > 2) {
1592
+ var s = e.lastIndexOf("/");
1593
+ if (s !== e.length - 1) {
1594
+ s === -1 ? (e = "", o = 0) : (e = e.slice(0, s), o = e.length - 1 - e.lastIndexOf("/")), l = r, i = 0;
1595
+ continue;
1596
+ }
1597
+ } else if (e.length === 2 || e.length === 1) {
1598
+ e = "", o = 0, l = r, i = 0;
1599
+ continue;
1600
+ }
1601
+ }
1602
+ t && (e.length > 0 ? e += "/.." : e = "..", o = 2);
1603
+ } else
1604
+ e.length > 0 ? e += "/" + n.slice(l + 1, r) : e = n.slice(l + 1, r), o = r - l - 1;
1605
+ l = r, i = 0;
1606
+ } else
1607
+ a === 46 && i !== -1 ? ++i : i = -1;
1608
+ }
1609
+ return e;
1610
+ }
1611
+ function Jo(n, t) {
1612
+ var e = t.dir || t.root, o = t.base || (t.name || "") + (t.ext || "");
1613
+ return e ? e === t.root ? e + o : e + n + o : o;
1614
+ }
1615
+ var xe = {
1616
+ // path.resolve([from ...], to)
1617
+ resolve: function() {
1618
+ for (var t = "", e = !1, o, l = arguments.length - 1; l >= -1 && !e; l--) {
1619
+ var i;
1620
+ l >= 0 ? i = arguments[l] : (o === void 0 && (o = process.cwd()), i = o), ie(i), i.length !== 0 && (t = i + "/" + t, e = i.charCodeAt(0) === 47);
1621
+ }
1622
+ return t = dt(t, !e), e ? t.length > 0 ? "/" + t : "/" : t.length > 0 ? t : ".";
1623
+ },
1624
+ normalize: function(t) {
1625
+ if (ie(t), t.length === 0)
1626
+ return ".";
1627
+ var e = t.charCodeAt(0) === 47, o = t.charCodeAt(t.length - 1) === 47;
1628
+ return t = dt(t, !e), t.length === 0 && !e && (t = "."), t.length > 0 && o && (t += "/"), e ? "/" + t : t;
1629
+ },
1630
+ isAbsolute: function(t) {
1631
+ return ie(t), t.length > 0 && t.charCodeAt(0) === 47;
1632
+ },
1633
+ join: function() {
1634
+ if (arguments.length === 0)
1635
+ return ".";
1636
+ for (var t, e = 0; e < arguments.length; ++e) {
1637
+ var o = arguments[e];
1638
+ ie(o), o.length > 0 && (t === void 0 ? t = o : t += "/" + o);
1639
+ }
1640
+ return t === void 0 ? "." : xe.normalize(t);
1641
+ },
1642
+ relative: function(t, e) {
1643
+ if (ie(t), ie(e), t === e || (t = xe.resolve(t), e = xe.resolve(e), t === e))
1644
+ return "";
1645
+ for (var o = 1; o < t.length && t.charCodeAt(o) === 47; ++o)
1646
+ ;
1647
+ for (var l = t.length, i = l - o, a = 1; a < e.length && e.charCodeAt(a) === 47; ++a)
1648
+ ;
1649
+ for (var r = e.length, s = r - a, d = i < s ? i : s, u = -1, c = 0; c <= d; ++c) {
1650
+ if (c === d) {
1651
+ if (s > d) {
1652
+ if (e.charCodeAt(a + c) === 47)
1653
+ return e.slice(a + c + 1);
1654
+ if (c === 0)
1655
+ return e.slice(a + c);
1656
+ } else
1657
+ i > d && (t.charCodeAt(o + c) === 47 ? u = c : c === 0 && (u = 0));
1658
+ break;
1659
+ }
1660
+ var v = t.charCodeAt(o + c), k = e.charCodeAt(a + c);
1661
+ if (v !== k)
1662
+ break;
1663
+ v === 47 && (u = c);
1664
+ }
1665
+ var x = "";
1666
+ for (c = o + u + 1; c <= l; ++c)
1667
+ (c === l || t.charCodeAt(c) === 47) && (x.length === 0 ? x += ".." : x += "/..");
1668
+ return x.length > 0 ? x + e.slice(a + u) : (a += u, e.charCodeAt(a) === 47 && ++a, e.slice(a));
1669
+ },
1670
+ _makeLong: function(t) {
1671
+ return t;
1672
+ },
1673
+ dirname: function(t) {
1674
+ if (ie(t), t.length === 0)
1675
+ return ".";
1676
+ for (var e = t.charCodeAt(0), o = e === 47, l = -1, i = !0, a = t.length - 1; a >= 1; --a)
1677
+ if (e = t.charCodeAt(a), e === 47) {
1678
+ if (!i) {
1679
+ l = a;
1680
+ break;
1681
+ }
1682
+ } else
1683
+ i = !1;
1684
+ return l === -1 ? o ? "/" : "." : o && l === 1 ? "//" : t.slice(0, l);
1685
+ },
1686
+ basename: function(t, e) {
1687
+ if (e !== void 0 && typeof e != "string")
1688
+ throw new TypeError('"ext" argument must be a string');
1689
+ ie(t);
1690
+ var o = 0, l = -1, i = !0, a;
1691
+ if (e !== void 0 && e.length > 0 && e.length <= t.length) {
1692
+ if (e.length === t.length && e === t)
1693
+ return "";
1694
+ var r = e.length - 1, s = -1;
1695
+ for (a = t.length - 1; a >= 0; --a) {
1696
+ var d = t.charCodeAt(a);
1697
+ if (d === 47) {
1698
+ if (!i) {
1699
+ o = a + 1;
1700
+ break;
1701
+ }
1702
+ } else
1703
+ s === -1 && (i = !1, s = a + 1), r >= 0 && (d === e.charCodeAt(r) ? --r === -1 && (l = a) : (r = -1, l = s));
1704
+ }
1705
+ return o === l ? l = s : l === -1 && (l = t.length), t.slice(o, l);
1706
+ } else {
1707
+ for (a = t.length - 1; a >= 0; --a)
1708
+ if (t.charCodeAt(a) === 47) {
1709
+ if (!i) {
1710
+ o = a + 1;
1711
+ break;
1712
+ }
1713
+ } else
1714
+ l === -1 && (i = !1, l = a + 1);
1715
+ return l === -1 ? "" : t.slice(o, l);
1716
+ }
1717
+ },
1718
+ extname: function(t) {
1719
+ ie(t);
1720
+ for (var e = -1, o = 0, l = -1, i = !0, a = 0, r = t.length - 1; r >= 0; --r) {
1721
+ var s = t.charCodeAt(r);
1722
+ if (s === 47) {
1723
+ if (!i) {
1724
+ o = r + 1;
1725
+ break;
1726
+ }
1727
+ continue;
1728
+ }
1729
+ l === -1 && (i = !1, l = r + 1), s === 46 ? e === -1 ? e = r : a !== 1 && (a = 1) : e !== -1 && (a = -1);
1730
+ }
1731
+ return e === -1 || l === -1 || // We saw a non-dot character immediately before the dot
1732
+ a === 0 || // The (right-most) trimmed path component is exactly '..'
1733
+ a === 1 && e === l - 1 && e === o + 1 ? "" : t.slice(e, l);
1734
+ },
1735
+ format: function(t) {
1736
+ if (t === null || typeof t != "object")
1737
+ throw new TypeError('The "pathObject" argument must be of type Object. Received type ' + typeof t);
1738
+ return Jo("/", t);
1739
+ },
1740
+ parse: function(t) {
1741
+ ie(t);
1742
+ var e = { root: "", dir: "", base: "", ext: "", name: "" };
1743
+ if (t.length === 0)
1744
+ return e;
1745
+ var o = t.charCodeAt(0), l = o === 47, i;
1746
+ l ? (e.root = "/", i = 1) : i = 0;
1747
+ for (var a = -1, r = 0, s = -1, d = !0, u = t.length - 1, c = 0; u >= i; --u) {
1748
+ if (o = t.charCodeAt(u), o === 47) {
1749
+ if (!d) {
1750
+ r = u + 1;
1751
+ break;
1752
+ }
1753
+ continue;
1754
+ }
1755
+ s === -1 && (d = !1, s = u + 1), o === 46 ? a === -1 ? a = u : c !== 1 && (c = 1) : a !== -1 && (c = -1);
1756
+ }
1757
+ return a === -1 || s === -1 || // We saw a non-dot character immediately before the dot
1758
+ c === 0 || // The (right-most) trimmed path component is exactly '..'
1759
+ c === 1 && a === s - 1 && a === r + 1 ? s !== -1 && (r === 0 && l ? e.base = e.name = t.slice(1, s) : e.base = e.name = t.slice(r, s)) : (r === 0 && l ? (e.name = t.slice(1, a), e.base = t.slice(1, s)) : (e.name = t.slice(r, a), e.base = t.slice(r, s)), e.ext = t.slice(a, s)), r > 0 ? e.dir = t.slice(0, r - 1) : l && (e.dir = "/"), e;
1760
+ },
1761
+ sep: "/",
1762
+ delimiter: ":",
1763
+ win32: null,
1764
+ posix: null
1765
+ };
1766
+ xe.posix = xe;
1767
+ var Bt = xe;
1768
+ const Lt = /* @__PURE__ */ ln(Bt), jo = /* @__PURE__ */ O({
1769
+ __name: "ScrollPane",
1770
+ emits: ["scroll"],
1771
+ setup(n, { expose: t, emit: e }) {
1772
+ const o = P(4), { proxy: l } = ke(), i = e, a = () => {
1773
+ i("scroll");
1774
+ }, r = Ye(), s = E(
1775
+ () => l == null ? void 0 : l.$refs.scrollContainer.$refs.wrapRef
1776
+ );
1777
+ fe(() => {
1778
+ s.value.addEventListener("scroll", a, !0);
1779
+ }), Ze(() => {
1780
+ s.value.removeEventListener("scroll", a);
1781
+ });
1782
+ function d(c) {
1783
+ const v = c.wheelDelta || -c.deltaY * 40;
1784
+ s.value.scrollLeft = s.value.scrollLeft + v / 4;
1785
+ }
1786
+ function u(c) {
1787
+ const k = l.$refs.scrollContainer.$el.offsetWidth, x = s.value;
1788
+ let V = null, I = null;
1789
+ if (r.visitedViews.length > 0 && (V = r.visitedViews[0], I = r.visitedViews[r.visitedViews.length - 1]), V === c)
1790
+ x.scrollLeft = 0;
1791
+ else if (I === c)
1792
+ x.scrollLeft = x.scrollWidth - k;
1793
+ else {
1794
+ const S = document.getElementsByClassName("tags-item"), B = r.visitedViews.findIndex(
1795
+ (L) => L === c
1796
+ );
1797
+ let Q = null, Y = null;
1798
+ for (const L in S)
1799
+ L !== "length" && Object.hasOwnProperty.call(S, L) && (S[L].dataset.path === r.visitedViews[B - 1].path && (Q = S[L]), S[L].dataset.path === r.visitedViews[B + 1].path && (Y = S[L]));
1800
+ const X = Y.offsetLeft + Y.offsetWidth + o.value, z = Q.offsetLeft - o.value;
1801
+ X > x.scrollLeft + k ? x.scrollLeft = X - k : z < x.scrollLeft && (x.scrollLeft = z);
1802
+ }
1803
+ }
1804
+ return t({
1805
+ moveToTarget: u
1806
+ }), (c, v) => {
1807
+ const k = nt;
1808
+ return m(), R(k, {
1809
+ ref: "scrollContainer",
1810
+ class: "scroll-container",
1811
+ vertical: !1,
1812
+ onWheel: Me(d, ["prevent"])
1813
+ }, {
1814
+ default: y(() => [
1815
+ ee(c.$slots, "default", {}, void 0, !0)
1816
+ ]),
1817
+ _: 3
1818
+ }, 512);
1819
+ };
1820
+ }
1821
+ }), Ho = /* @__PURE__ */ j(jo, [["__scopeId", "data-v-b2694f45"]]), Ko = { class: "tags-container" }, Xo = ["onClick"], Fo = /* @__PURE__ */ O({
1822
+ __name: "index",
1823
+ setup(n) {
1824
+ const t = ke(), e = Je(), o = je(), l = Ve(), i = Ye(), a = ae(), { visitedViews: r } = ot(i), s = ge(), d = E(() => s.layout), u = P({
1825
+ path: "",
1826
+ fullPath: "",
1827
+ name: "",
1828
+ title: "",
1829
+ affix: !1,
1830
+ keepAlive: !1
1831
+ }), c = P([]), v = P(), k = P(0), x = P(0);
1832
+ oe(
1833
+ o,
1834
+ () => {
1835
+ B(), Q();
1836
+ },
1837
+ {
1838
+ immediate: !0
1839
+ //初始化立即执行
1840
+ }
1841
+ );
1842
+ const V = P(!1);
1843
+ oe(V, (f) => {
1844
+ f ? document.body.addEventListener("click", M) : document.body.removeEventListener("click", M);
1845
+ });
1846
+ function I(f, p = "/") {
1847
+ const T = (A) => {
1848
+ var ue, Se, at;
1849
+ const N = Bt.resolve(p, A.path), ne = {
1850
+ path: A.path,
1851
+ fullPath: N,
1852
+ name: String(A.name),
1853
+ title: ((ue = A.meta) == null ? void 0 : ue.title) || "no-name",
1854
+ affix: (Se = A.meta) == null ? void 0 : Se.affix,
1855
+ keepAlive: (at = A.meta) == null ? void 0 : at.keepAlive
1856
+ };
1857
+ ne.affix && W.push(ne), A.children && A.children.forEach(T);
1858
+ };
1859
+ let W = [];
1860
+ return f.forEach(T), W;
1861
+ }
1862
+ function S() {
1863
+ const f = I(l.routes);
1864
+ c.value = f;
1865
+ for (const p of f)
1866
+ p.name && i.addVisitedView(p);
1867
+ }
1868
+ function B() {
1869
+ var f, p;
1870
+ o.meta.title && i.addView({
1871
+ name: o.name,
1872
+ title: o.meta.title,
1873
+ path: o.path,
1874
+ fullPath: o.fullPath,
1875
+ affix: (f = o.meta) == null ? void 0 : f.affix,
1876
+ keepAlive: (p = o.meta) == null ? void 0 : p.keepAlive
1877
+ });
1878
+ }
1879
+ function Q() {
1880
+ ze(() => {
1881
+ var f, p;
1882
+ for (const T of r.value)
1883
+ T.path === o.path && (v.value.moveToTarget(T), T.fullPath !== o.fullPath && i.updateVisitedView({
1884
+ name: o.name,
1885
+ title: o.meta.title || "",
1886
+ path: o.path,
1887
+ fullPath: o.fullPath,
1888
+ affix: (f = o.meta) == null ? void 0 : f.affix,
1889
+ keepAlive: (p = o.meta) == null ? void 0 : p.keepAlive
1890
+ }));
1891
+ });
1892
+ }
1893
+ function Y(f) {
1894
+ return f.fullPath === o.fullPath;
1895
+ }
1896
+ function X(f) {
1897
+ return f == null ? void 0 : f.affix;
1898
+ }
1899
+ function z() {
1900
+ try {
1901
+ return u.value.fullPath === "/dashboard" || u.value.fullPath === i.visitedViews[1].fullPath;
1902
+ } catch {
1903
+ return !1;
1904
+ }
1905
+ }
1906
+ function L() {
1907
+ try {
1908
+ return u.value.fullPath === i.visitedViews[i.visitedViews.length - 1].fullPath;
1909
+ } catch {
1910
+ return !1;
1911
+ }
1912
+ }
1913
+ function H(f) {
1914
+ i.delCachedView(f);
1915
+ const { fullPath: p } = f;
1916
+ ze(() => {
1917
+ e.replace({ path: "/redirect" + p });
1918
+ });
1919
+ }
1920
+ function K(f, p) {
1921
+ const T = f.slice(-1)[0];
1922
+ T && T.fullPath ? e.push(T.fullPath) : (p == null ? void 0 : p.name) === "Dashboard" ? e.replace({ path: "/redirect" + p.fullPath }) : e.push("/");
1923
+ }
1924
+ function q(f) {
1925
+ i.delView(f).then((p) => {
1926
+ Y(f) && K(p.visitedViews, f);
1927
+ });
1928
+ }
1929
+ function me() {
1930
+ i.delLeftViews(u.value).then((f) => {
1931
+ f.visitedViews.find((p) => p.fullPath === o.fullPath) || K(f.visitedViews);
1932
+ });
1933
+ }
1934
+ function se() {
1935
+ i.delRightViews(u.value).then((f) => {
1936
+ f.visitedViews.find((p) => p.fullPath === o.fullPath) || K(f.visitedViews);
1937
+ });
1938
+ }
1939
+ function pe() {
1940
+ e.push(u.value), i.delOtherViews(u.value).then(() => {
1941
+ Q();
1942
+ });
1943
+ }
1944
+ function g(f) {
1945
+ i.delAllViews().then((p) => {
1946
+ K(p.visitedViews, f);
1947
+ });
1948
+ }
1949
+ function w(f, p) {
1950
+ var ue, Se;
1951
+ let W, A;
1952
+ (t == null ? void 0 : t.proxy) != null && (W = (ue = t == null ? void 0 : t.proxy) == null ? void 0 : ue.$el.getBoundingClientRect().left, A = (Se = t == null ? void 0 : t.proxy) == null ? void 0 : Se.$el.offsetWidth);
1953
+ const N = A - 105, ne = p.clientX - W + 15;
1954
+ ne > N ? k.value = N : k.value = ne, d.value === "mix" ? x.value = p.clientY - 50 : x.value = p.clientY, V.value = !0, u.value = f;
1955
+ }
1956
+ function M() {
1957
+ V.value = !1;
1958
+ }
1959
+ function G() {
1960
+ M();
1961
+ }
1962
+ function D(f, p) {
1963
+ let T = {};
1964
+ function W(N, ne) {
1965
+ if (T[N.name] = ne, N.children)
1966
+ for (let ue = 0; ue < N.children.length; ue++)
1967
+ W(N.children[ue], N);
1968
+ }
1969
+ for (let N = 0; N < f.length; N++)
1970
+ W(f[N], null);
1971
+ let A = T[p];
1972
+ for (; A; ) {
1973
+ if (!T[A.name])
1974
+ return A;
1975
+ A = T[A.name];
1976
+ }
1977
+ return null;
1978
+ }
1979
+ const te = (f) => {
1980
+ if (d.value !== "mix")
1981
+ return;
1982
+ const p = D(l.routes, f);
1983
+ a.activeTopMenu !== p.path && a.changeTopActive(p.path);
1984
+ };
1985
+ return oe(
1986
+ () => o.name,
1987
+ (f) => {
1988
+ f && te(f);
1989
+ },
1990
+ {
1991
+ deep: !0
1992
+ }
1993
+ ), fe(() => {
1994
+ S();
1995
+ }), (f, p) => {
1996
+ const T = Vt, W = Ie("router-link"), A = Ce;
1997
+ return m(), _("div", Ko, [
1998
+ b(Ho, {
1999
+ ref_key: "scrollPaneRef",
2000
+ ref: v,
2001
+ onScroll: G
2002
+ }, {
2003
+ default: y(() => [
2004
+ (m(!0), _(F, null, he(h(r), (N) => (m(), R(W, {
2005
+ ref_for: !0,
2006
+ ref: "tagRef",
2007
+ key: N.path,
2008
+ class: Z("tags-item " + (Y(N) ? "active" : "")),
2009
+ "data-path": N.path,
2010
+ to: { path: N.path, query: N.query },
2011
+ onMouseup: Me((ne) => X(N) ? "" : q(N), ["middle"]),
2012
+ onContextmenu: Me((ne) => w(N, ne), ["prevent"])
2013
+ }, {
2014
+ default: y(() => [
2015
+ $(de(h(Ae)(N.title)) + " ", 1),
2016
+ X(N) ? U("", !0) : (m(), _("span", {
2017
+ key: 0,
2018
+ class: "tags-item-close",
2019
+ onClick: Me((ne) => q(N), ["prevent", "stop"])
2020
+ }, [
2021
+ b(T, { size: "10px" })
2022
+ ], 8, Xo))
2023
+ ]),
2024
+ _: 2
2025
+ }, 1032, ["class", "data-path", "to", "onMouseup", "onContextmenu"]))), 128))
2026
+ ]),
2027
+ _: 1
2028
+ }, 512),
2029
+ ve(C("ul", {
2030
+ class: "tag-menu",
2031
+ style: tt({ left: k.value + "px", top: x.value + "px" })
2032
+ }, [
2033
+ C("li", {
2034
+ onClick: p[0] || (p[0] = (N) => H(u.value))
2035
+ }, [
2036
+ b(A, { "icon-class": "refresh" }),
2037
+ $(" 刷新 ")
2038
+ ]),
2039
+ X(u.value) ? U("", !0) : (m(), _("li", {
2040
+ key: 0,
2041
+ onClick: p[1] || (p[1] = (N) => q(u.value))
2042
+ }, [
2043
+ b(A, { "icon-class": "close" }),
2044
+ $(" 关闭 ")
2045
+ ])),
2046
+ C("li", { onClick: pe }, [
2047
+ b(A, { "icon-class": "close_other" }),
2048
+ $(" 关闭其它 ")
2049
+ ]),
2050
+ z() ? U("", !0) : (m(), _("li", {
2051
+ key: 1,
2052
+ onClick: me
2053
+ }, [
2054
+ b(A, { "icon-class": "close_left" }),
2055
+ $(" 关闭左侧 ")
2056
+ ])),
2057
+ L() ? U("", !0) : (m(), _("li", {
2058
+ key: 2,
2059
+ onClick: se
2060
+ }, [
2061
+ b(A, { "icon-class": "close_right" }),
2062
+ $(" 关闭右侧 ")
2063
+ ])),
2064
+ C("li", {
2065
+ onClick: p[2] || (p[2] = (N) => g(u.value))
2066
+ }, [
2067
+ b(A, { "icon-class": "close_all" }),
2068
+ $(" 关闭所有 ")
2069
+ ])
2070
+ ], 4), [
2071
+ [Te, V.value]
2072
+ ])
2073
+ ]);
2074
+ };
2075
+ }
2076
+ }), qo = /* @__PURE__ */ j(Fo, [["__scopeId", "data-v-54ba5761"]]), el = {
2077
+ viewBox: "0 0 1024 1024",
2078
+ width: "1.2em",
2079
+ height: "1.2em"
2080
+ }, tl = /* @__PURE__ */ C("path", {
2081
+ fill: "currentColor",
2082
+ d: "M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088l-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36l-116.224-25.088l-65.28 113.152l79.68 88.192l-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136l-79.808 88.192l65.344 113.152l116.224-25.024l22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152l24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296l116.288 25.024l65.28-113.152l-79.744-88.192l1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136l79.808-88.128l-65.344-113.152l-116.288 24.96l-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384a192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256a128 128 0 0 0 0-256"
2083
+ }, null, -1), nl = [
2084
+ tl
2085
+ ];
2086
+ function ol(n, t) {
2087
+ return m(), _("svg", el, [...nl]);
2088
+ }
2089
+ const ll = { name: "ep-setting", render: ol };
2090
+ function Ot(n, t) {
2091
+ return !!n.className.match(new RegExp("(\\s|^)" + t + "(\\s|$)"));
2092
+ }
2093
+ function al(n, t) {
2094
+ Ot(n, t) || (n.className += " " + t);
2095
+ }
2096
+ function sl(n, t) {
2097
+ if (Ot(n, t)) {
2098
+ const e = new RegExp("(\\s|^)" + t + "(\\s|$)");
2099
+ n.className = n.className.replace(e, " ");
2100
+ }
2101
+ }
2102
+ function Pe(n) {
2103
+ return /^(https?:|http?:|mailto:|tel:)/.test(n);
2104
+ }
2105
+ const il = (n) => (ht("data-v-b6b011c4"), n = n(), gt(), n), rl = /* @__PURE__ */ il(() => /* @__PURE__ */ C("div", { class: "right-panel-overlay" }, null, -1)), cl = { class: "right-panel-container" }, ul = /* @__PURE__ */ O({
2106
+ __name: "index",
2107
+ props: {
2108
+ buttonTop: {
2109
+ default: 250,
2110
+ type: Number
2111
+ }
2112
+ },
2113
+ setup(n) {
2114
+ const t = P(!1);
2115
+ oe(t, (a) => {
2116
+ a && e(), a ? al(document.body, "showRightPanel") : sl(document.body, "showRightPanel");
2117
+ });
2118
+ function e() {
2119
+ window.addEventListener("click", o, { passive: !0 });
2120
+ }
2121
+ function o(a) {
2122
+ a.target.closest(".right-panel-container") || (t.value = !1, window.removeEventListener("click", o));
2123
+ }
2124
+ const l = P();
2125
+ function i() {
2126
+ const a = document.querySelector("body");
2127
+ a.insertBefore(l.value, a.firstChild);
2128
+ }
2129
+ return fe(() => {
2130
+ i();
2131
+ }), Ze(() => {
2132
+ l.value.remove();
2133
+ }), (a, r) => {
2134
+ const s = Vt, d = ll;
2135
+ return m(), _("div", {
2136
+ ref_key: "rightPanel",
2137
+ ref: l,
2138
+ class: Z({ show: t.value })
2139
+ }, [
2140
+ rl,
2141
+ C("div", cl, [
2142
+ C("div", {
2143
+ class: "right-panel-btn",
2144
+ style: tt({
2145
+ top: n.buttonTop + "px"
2146
+ }),
2147
+ onClick: r[0] || (r[0] = (u) => t.value = !t.value)
2148
+ }, [
2149
+ ve(b(s, null, null, 512), [
2150
+ [Te, t.value]
2151
+ ]),
2152
+ ve(b(d, null, null, 512), [
2153
+ [Te, !t.value]
2154
+ ])
2155
+ ], 4),
2156
+ C("div", null, [
2157
+ ee(a.$slots, "default", {}, void 0, !0)
2158
+ ])
2159
+ ])
2160
+ ], 2);
2161
+ };
2162
+ }
2163
+ }), dl = /* @__PURE__ */ j(ul, [["__scopeId", "data-v-b6b011c4"]]), fl = 992, ml = /* @__PURE__ */ O({
2164
+ __name: "main",
2165
+ setup(n) {
2166
+ const { width: t } = yt(), e = ae(), o = ge(), l = E(() => o.fixedHeader), i = E(() => o.tagsView), a = E(() => o.showSettings), r = E(() => o.layout), s = E(() => e.device);
2167
+ return et(() => {
2168
+ t.value < fl ? (e.toggleDevice("mobile"), e.closeSideBar(!0)) : (e.toggleDevice("desktop"), t.value >= 1200 ? e.openSideBar(!0) : e.closeSideBar(!0));
2169
+ }), (d, u) => (m(), _("div", {
2170
+ class: Z([{ hasTagsView: i.value }, "main-container"])
2171
+ }, [
2172
+ C("div", {
2173
+ class: Z({ "fixed-header": l.value, device: s.value })
2174
+ }, [
2175
+ r.value === "left" ? (m(), R(h(fo), { key: 0 })) : U("", !0),
2176
+ i.value ? (m(), R(h(qo), { key: 1 })) : U("", !0)
2177
+ ], 2),
2178
+ b(h(vo)),
2179
+ a.value ? (m(), R(dl, { key: 0 }, {
2180
+ default: y(() => [
2181
+ b(h(Zo))
2182
+ ]),
2183
+ _: 1
2184
+ })) : U("", !0)
2185
+ ], 2));
2186
+ }
2187
+ }), ft = /* @__PURE__ */ j(ml, [["__scopeId", "data-v-d384a7fe"]]), pl = "var(--menuBg)", vl = "var(--menuText)", hl = "var(--menuActiveText)", we = {
2188
+ menuBg: pl,
2189
+ menuText: vl,
2190
+ menuActiveText: hl
2191
+ }, gl = { key: 1 }, bl = { key: 0 }, _l = /* @__PURE__ */ O({
2192
+ __name: "TopMenu",
2193
+ setup(n) {
2194
+ const t = ae(), e = E(() => t.activeTopMenu), o = Je(), l = (s) => {
2195
+ if (!s.length)
2196
+ return;
2197
+ const [d] = s;
2198
+ d.children ? l(d.children) : o.push({
2199
+ name: d.name
2200
+ });
2201
+ }, i = (s) => {
2202
+ t.changeTopActive(s), a.getMixLeftMenu(s);
2203
+ const { mixLeftMenu: d } = a;
2204
+ l(d);
2205
+ }, a = Ve(), r = P([]);
2206
+ return fe(() => {
2207
+ r.value = a.routes.filter(
2208
+ (s) => !s.meta || !s.meta.hidden
2209
+ );
2210
+ }), (s, d) => {
2211
+ const u = Ce, c = Pt, v = At, k = nt;
2212
+ return m(), R(k, null, {
2213
+ default: y(() => [
2214
+ b(v, {
2215
+ mode: "horizontal",
2216
+ "default-active": e.value,
2217
+ "background-color": h(we).menuBg,
2218
+ "text-color": h(we).menuText,
2219
+ "active-text-color": h(we).menuActiveText,
2220
+ onSelect: i
2221
+ }, {
2222
+ default: y(() => [
2223
+ (m(!0), _(F, null, he(r.value, (x) => (m(), R(c, {
2224
+ key: x.path,
2225
+ index: x.path
2226
+ }, {
2227
+ title: y(() => [
2228
+ x.meta && x.meta.icon ? (m(), R(u, {
2229
+ key: 0,
2230
+ "icon-class": x.meta.icon
2231
+ }, null, 8, ["icon-class"])) : U("", !0),
2232
+ x.path === "/" ? (m(), _("span", gl, " 首页 ")) : (m(), _(F, { key: 2 }, [
2233
+ x.meta && x.meta.title ? (m(), _("span", bl, de(h(Ae)(x.meta.title)), 1)) : U("", !0)
2234
+ ], 64))
2235
+ ]),
2236
+ _: 2
2237
+ }, 1032, ["index"]))), 128))
2238
+ ]),
2239
+ _: 1
2240
+ }, 8, ["default-active", "background-color", "text-color", "active-text-color"])
2241
+ ]),
2242
+ _: 1
2243
+ });
2244
+ };
2245
+ }
2246
+ }), yl = /* @__PURE__ */ j(_l, [["__scopeId", "data-v-5631fe31"]]), xl = ["href"], wl = /* @__PURE__ */ O({
2247
+ __name: "Link",
2248
+ props: {
2249
+ to: {
2250
+ type: String,
2251
+ required: !0
2252
+ }
2253
+ },
2254
+ setup(n) {
2255
+ const t = ae(), e = E(() => t.sidebar), o = E(() => t.device), l = n, i = Je();
2256
+ function a() {
2257
+ o.value === "mobile" && e.value.opened == !0 && t.closeSideBar(!1), i.push(l.to).catch((r) => {
2258
+ console.error(r);
2259
+ });
2260
+ }
2261
+ return (r, s) => h(Pe)(n.to) ? (m(), _("a", {
2262
+ key: 0,
2263
+ href: n.to,
2264
+ target: "_blank",
2265
+ rel: "noopener"
2266
+ }, [
2267
+ ee(r.$slots, "default")
2268
+ ], 8, xl)) : (m(), _("div", {
2269
+ key: 1,
2270
+ onClick: a
2271
+ }, [
2272
+ ee(r.$slots, "default")
2273
+ ]));
2274
+ }
2275
+ }), Cl = { key: 2 }, kl = /* @__PURE__ */ O({
2276
+ __name: "Item",
2277
+ props: {
2278
+ icon: {
2279
+ type: String,
2280
+ default: ""
2281
+ },
2282
+ title: {
2283
+ type: String,
2284
+ default: ""
2285
+ }
2286
+ },
2287
+ setup(n) {
2288
+ return (t, e) => {
2289
+ const o = Ge, l = Ce;
2290
+ return m(), _(F, null, [
2291
+ n.icon && n.icon.includes("el-icon") ? (m(), R(o, {
2292
+ key: 0,
2293
+ class: "sub-el-icon"
2294
+ })) : n.icon ? (m(), R(l, {
2295
+ key: 1,
2296
+ "icon-class": n.icon
2297
+ }, null, 8, ["icon-class"])) : U("", !0),
2298
+ n.title ? (m(), _("span", Cl, de(h(Ae)(n.title)), 1)) : U("", !0)
2299
+ ], 64);
2300
+ };
2301
+ }
2302
+ }), mt = /* @__PURE__ */ j(kl, [["__scopeId", "data-v-b1fbe86d"]]), Il = { key: 0 }, Sl = /* @__PURE__ */ O({
2303
+ __name: "SidebarItem",
2304
+ props: {
2305
+ /**
2306
+ * 路由(eg:user)
2307
+ */
2308
+ item: {
2309
+ type: Object,
2310
+ required: !0
2311
+ },
2312
+ /**
2313
+ * 父层级完整路由路径(eg:/system)
2314
+ */
2315
+ basePath: {
2316
+ type: String,
2317
+ required: !0
2318
+ },
2319
+ isNest: {
2320
+ type: Boolean,
2321
+ default: !1
2322
+ }
2323
+ },
2324
+ setup(n) {
2325
+ const t = n, e = P();
2326
+ function o(i = [], a) {
2327
+ const r = i.filter((s) => {
2328
+ var d;
2329
+ return (d = s.meta) != null && d.hidden ? !1 : (s.meta !== void 0 && (s.meta.hidden = !1), e.value = s, !0);
2330
+ });
2331
+ return r.length === 1 ? !0 : r.length === 0 ? (e.value = { ...a, path: "", noShowingChildren: !0 }, !0) : !1;
2332
+ }
2333
+ function l(i) {
2334
+ return Pe(i) ? i : Pe(t.basePath) ? t.basePath : Lt.resolve(t.basePath, i);
2335
+ }
2336
+ return (i, a) => {
2337
+ var u;
2338
+ const r = Pt, s = Ie("sidebar-item", !0), d = Gn;
2339
+ return !n.item.meta || !n.item.meta.hidden ? (m(), _("div", Il, [
2340
+ o(n.item.children, n.item) && (!e.value.children || e.value.noShowingChildren) && !((u = n.item.meta) != null && u.alwaysShow) ? (m(), _(F, { key: 0 }, [
2341
+ e.value.meta ? (m(), R(wl, {
2342
+ key: 0,
2343
+ to: l(e.value.path)
2344
+ }, {
2345
+ default: y(() => [
2346
+ b(r, {
2347
+ index: l(e.value.path),
2348
+ class: Z({ "submenu-title-noDropdown": !n.isNest })
2349
+ }, {
2350
+ default: y(() => [
2351
+ b(mt, {
2352
+ icon: e.value.meta.icon || n.item.meta && n.item.meta.icon,
2353
+ title: e.value.meta.title
2354
+ }, null, 8, ["icon", "title"])
2355
+ ]),
2356
+ _: 1
2357
+ }, 8, ["index", "class"])
2358
+ ]),
2359
+ _: 1
2360
+ }, 8, ["to"])) : U("", !0)
2361
+ ], 64)) : (m(), R(d, {
2362
+ key: 1,
2363
+ index: l(n.item.path),
2364
+ teleported: ""
2365
+ }, {
2366
+ title: y(() => [
2367
+ n.item.meta ? (m(), R(mt, {
2368
+ key: 0,
2369
+ icon: n.item.meta && n.item.meta.icon,
2370
+ title: n.item.meta.title
2371
+ }, null, 8, ["icon", "title"])) : U("", !0)
2372
+ ]),
2373
+ default: y(() => [
2374
+ (m(!0), _(F, null, he(n.item.children, (c) => (m(), R(s, {
2375
+ key: c.path,
2376
+ "is-nest": !0,
2377
+ item: c,
2378
+ "base-path": l(c.path)
2379
+ }, null, 8, ["item", "base-path"]))), 128))
2380
+ ]),
2381
+ _: 1
2382
+ }, 8, ["index"]))
2383
+ ])) : U("", !0);
2384
+ };
2385
+ }
2386
+ }), Ml = /* @__PURE__ */ j(Sl, [["__scopeId", "data-v-da083b59"]]), zt = /* @__PURE__ */ O({
2387
+ __name: "LeftMenu",
2388
+ props: {
2389
+ menuList: {
2390
+ required: !0,
2391
+ default: () => [],
2392
+ type: Array
2393
+ },
2394
+ basePath: {
2395
+ type: String,
2396
+ required: !0
2397
+ }
2398
+ },
2399
+ setup(n) {
2400
+ const t = ge(), e = ae(), o = je(), l = E(() => t.layout), i = n;
2401
+ function a(r) {
2402
+ return Pe(r) ? r : Pe(i.basePath) ? i.basePath : Lt.resolve(i.basePath, r);
2403
+ }
2404
+ return (r, s) => {
2405
+ const d = At;
2406
+ return m(), R(d, {
2407
+ "default-active": l.value === "top" ? "-" : h(o).path,
2408
+ collapse: !h(e).sidebar.opened,
2409
+ "background-color": h(we).menuBg,
2410
+ "text-color": h(we).menuText,
2411
+ "active-text-color": h(we).menuActiveText,
2412
+ "unique-opened": !1,
2413
+ "collapse-transition": !1,
2414
+ mode: l.value === "top" ? "horizontal" : "vertical"
2415
+ }, {
2416
+ default: y(() => [
2417
+ (m(!0), _(F, null, he(n.menuList, (u) => (m(), R(Ml, {
2418
+ key: u.path,
2419
+ item: u,
2420
+ "base-path": a(u.path),
2421
+ "is-collapse": !h(e).sidebar.opened
2422
+ }, null, 8, ["item", "base-path", "is-collapse"]))), 128))
2423
+ ]),
2424
+ _: 1
2425
+ }, 8, ["default-active", "collapse", "background-color", "text-color", "active-text-color", "mode"]);
2426
+ };
2427
+ }
2428
+ }), El = { class: "w-full h-[50px] bg-gray-800 dark:bg-[var(--el-bg-color-overlay)] logo-wrap" }, Tl = ["src"], Al = ["src"], Pl = { class: "ml-3 text-white text-sm font-bold" }, Rl = /* @__PURE__ */ O({
2429
+ __name: "Logo",
2430
+ props: {
2431
+ collapse: {
2432
+ type: Boolean,
2433
+ required: !0
2434
+ }
2435
+ },
2436
+ setup(n) {
2437
+ const t = ge(), e = P(new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/e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nQgnSNMBu6uM1OM84Nedu80qQFscY1SYfx2Z7LoUSpOlwH9ubi/j9m/YcCiWIDth1YK4EaUU8z7Z7Ab/bbX+rUII0PdY36DcKJUgu8R7btnkcv83+RqEEaRncwnZkDscdsccqlCAthQrbDXM47gZ7rEIJ0nJ4lO2VE3z/ij1GoQRpWaxb4HcKJUhL4GW2XTN8vst+p1CCtDw+Oc6Y6/hEoQRpCRxm23rcv7fazxRKEIXFXZRuwBDZvxUC4GsIREHflguDkyQqaVYotIulUChBFAoliEKhBFEolCAKhRJEoVCCKBRKEIVCCaJQKJQgCoUSRKFQgigUShCFIhP8vwADACog5YM65zugAAAAAElFTkSuQmCC", import.meta.url).href);
2438
+ return (o, l) => {
2439
+ const i = Ie("router-link");
2440
+ return m(), _("div", El, [
2441
+ b(qe, { name: "sidebarLogoFade" }, {
2442
+ default: y(() => [
2443
+ n.collapse ? (m(), R(i, {
2444
+ key: "collapse",
2445
+ class: "h-full w-full flex items-center justify-center",
2446
+ to: "/"
2447
+ }, {
2448
+ default: y(() => [
2449
+ h(t).sidebarLogo ? (m(), _("img", {
2450
+ key: 0,
2451
+ src: e.value,
2452
+ class: "w-5 h-5"
2453
+ }, null, 8, Tl)) : U("", !0)
2454
+ ]),
2455
+ _: 1
2456
+ })) : (m(), R(i, {
2457
+ key: "expand",
2458
+ class: "h-full w-full flex items-center justify-center",
2459
+ to: "/"
2460
+ }, {
2461
+ default: y(() => [
2462
+ h(t).sidebarLogo ? (m(), _("img", {
2463
+ key: 0,
2464
+ src: e.value,
2465
+ class: "w-5 h-5"
2466
+ }, null, 8, Al)) : U("", !0),
2467
+ C("span", Pl, de(h(an).title), 1)
2468
+ ]),
2469
+ _: 1
2470
+ }))
2471
+ ]),
2472
+ _: 1
2473
+ })
2474
+ ]);
2475
+ };
2476
+ }
2477
+ }), pt = /* @__PURE__ */ j(Rl, [["__scopeId", "data-v-a57666ab"]]), Nl = { class: "header" }, Vl = /* @__PURE__ */ O({
2478
+ __name: "index",
2479
+ setup(n) {
2480
+ const t = ge(), e = Ve(), o = ae(), { sidebarLogo: l } = ot(t), i = E(() => t.layout), a = P(!0);
2481
+ return oe(
2482
+ () => i.value,
2483
+ () => {
2484
+ a.value = !1, ze(() => {
2485
+ a.value = !0;
2486
+ });
2487
+ }
2488
+ ), (r, s) => {
2489
+ const d = nt, u = Nt;
2490
+ return i.value !== "mix" ? (m(), _("div", {
2491
+ key: 0,
2492
+ class: Z([{ "has-logo": h(l) }, "menu-wrap"])
2493
+ }, [
2494
+ h(l) ? (m(), R(pt, {
2495
+ key: 0,
2496
+ collapse: !h(o).sidebar.opened
2497
+ }, null, 8, ["collapse"])) : U("", !0),
2498
+ a.value ? (m(), R(d, { key: 1 }, {
2499
+ default: y(() => [
2500
+ b(zt, {
2501
+ "menu-list": h(e).routes,
2502
+ "base-path": ""
2503
+ }, null, 8, ["menu-list"])
2504
+ ]),
2505
+ _: 1
2506
+ })) : U("", !0),
2507
+ i.value === "top" ? (m(), R(u, { key: 2 })) : U("", !0)
2508
+ ], 2)) : (m(), _("div", {
2509
+ key: 1,
2510
+ class: Z([{ "has-logo": h(l) }, "menu-wrap"])
2511
+ }, [
2512
+ C("div", Nl, [
2513
+ h(l) ? (m(), R(pt, {
2514
+ key: 0,
2515
+ collapse: !h(o).sidebar.opened
2516
+ }, null, 8, ["collapse"])) : U("", !0),
2517
+ b(yl),
2518
+ b(u)
2519
+ ])
2520
+ ], 2));
2521
+ };
2522
+ }
2523
+ }), Bl = /* @__PURE__ */ j(Vl, [["__scopeId", "data-v-a7cbf656"]]), Ll = {
2524
+ key: 1,
2525
+ class: "mix-wrapper"
2526
+ }, Ol = { class: "mix-wrapper__left" }, zl = { class: "toggle-sidebar" }, Wl = 992, Dl = /* @__PURE__ */ O({
2527
+ __name: "index",
2528
+ setup(n) {
2529
+ const t = Ve(), { width: e } = yt(), o = ae(), l = ge(), i = E(() => o.activeTopMenu), a = E(() => t.mixLeftMenu), r = E(() => l.layout);
2530
+ oe(
2531
+ () => i.value,
2532
+ (c) => {
2533
+ r.value === "mix" && t.getMixLeftMenu(c);
2534
+ },
2535
+ {
2536
+ deep: !0,
2537
+ immediate: !0
2538
+ }
2539
+ );
2540
+ const s = E(() => ({
2541
+ hideSidebar: !o.sidebar.opened,
2542
+ openSidebar: o.sidebar.opened,
2543
+ withoutAnimation: o.sidebar.withoutAnimation,
2544
+ mobile: o.device === "mobile",
2545
+ isTop: r.value === "top",
2546
+ isMix: r.value === "mix"
2547
+ }));
2548
+ et(() => {
2549
+ e.value < Wl ? (o.toggleDevice("mobile"), o.closeSideBar(!0)) : (o.toggleDevice("desktop"), e.value >= 1200 ? o.openSideBar(!0) : o.closeSideBar(!0));
2550
+ });
2551
+ function d() {
2552
+ o.closeSideBar(!1);
2553
+ }
2554
+ function u() {
2555
+ o.toggleSidebar();
2556
+ }
2557
+ return (c, v) => {
2558
+ const k = Rt;
2559
+ return m(), _("div", {
2560
+ class: Z([s.value, "app-wrapper"])
2561
+ }, [
2562
+ s.value.mobile && s.value.openSidebar ? (m(), _("div", {
2563
+ key: 0,
2564
+ class: "drawer__background",
2565
+ onClick: d
2566
+ })) : U("", !0),
2567
+ b(Bl, { class: "sidebar-container" }),
2568
+ r.value === "mix" ? (m(), _("div", Ll, [
2569
+ C("div", Ol, [
2570
+ b(zt, {
2571
+ "menu-list": a.value,
2572
+ "base-path": i.value
2573
+ }, null, 8, ["menu-list", "base-path"]),
2574
+ C("div", zl, [
2575
+ b(k, {
2576
+ "is-active": h(o).sidebar.opened,
2577
+ onToggleClick: u
2578
+ }, null, 8, ["is-active"])
2579
+ ])
2580
+ ]),
2581
+ b(ft)
2582
+ ])) : (m(), R(ft, { key: 2 }))
2583
+ ], 2);
2584
+ };
2585
+ }
2586
+ }), ia = /* @__PURE__ */ j(Dl, [["__scopeId", "data-v-bb0d901c"]]);
2587
+ export {
2588
+ ia as default
2589
+ };