mamba-layout 0.33.0 → 0.34.0

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.
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { getCurrentInstance as lt, readonly as it, ref as R, computed as S, unref as g, onActivated as ct, onMounted as Re, onUnmounted as Ke, watch as ue, defineComponent as D, openBlock as l, createElementBlock as v, normalizeClass as F, resolveComponent as L, Fragment as J, createBlock as k, resolveDynamicComponent as Ce, mergeProps as Je, withCtx as _, createCommentVNode as I, createElementVNode as d, toDisplayString as E, renderList as H, withDirectives as ut, vShow as dt, createVNode as A, renderSlot as j, watchEffect as Oe, Transition as Me } from "vue";
2
- import { Fold as Fe, ArrowDown as Se, Moon as pt, Sunny as mt, Expand as ht, User as gt, ArrowLeft as ft, ArrowRight as ye, Clock as vt } from "@element-plus/icons-vue";
3
- import { useRouter as He } from "vue-router";
1
+ import { getCurrentInstance as lt, readonly as it, ref as R, computed as w, unref as g, onActivated as ct, onMounted as Ke, onUnmounted as Je, watch as re, defineComponent as D, openBlock as l, createElementBlock as v, normalizeClass as F, resolveComponent as L, Fragment as K, createBlock as k, resolveDynamicComponent as we, mergeProps as Oe, withCtx as _, createCommentVNode as I, createElementVNode as d, toDisplayString as E, renderList as H, withDirectives as ut, vShow as dt, createVNode as A, renderSlot as q, watchEffect as Fe, Transition as De } from "vue";
2
+ import { Fold as He, ArrowDown as Se, Moon as pt, Sunny as mt, Expand as ht, User as gt, ArrowLeft as ft, ArrowRight as be, Clock as vt } from "@element-plus/icons-vue";
3
+ import { useRouter as Qe } from "vue-router";
4
4
  import { createI18n as yt } from "vue-i18n";
5
- function re() {
5
+ function V() {
6
6
  const a = lt();
7
7
  return a ? a.appContext.config.globalProperties.$route : null;
8
8
  }
9
- const bt = 3600 * 24 * 7, we = "UTC", Qe = "timezone", At = [
9
+ const bt = 3600 * 24 * 7, Pe = "UTC", ze = "timezone", At = [
10
10
  "UTC",
11
11
  "Asia/Shanghai",
12
12
  "Asia/Hong_Kong",
@@ -16,15 +16,15 @@ const bt = 3600 * 24 * 7, we = "UTC", Qe = "timezone", At = [
16
16
  "Europe/Berlin",
17
17
  "America/New_York",
18
18
  "America/Los_Angeles"
19
- ], De = /* @__PURE__ */ new Map(), ve = () => {
19
+ ], Ne = /* @__PURE__ */ new Map(), ye = () => {
20
20
  try {
21
21
  return globalThis.localStorage;
22
22
  } catch {
23
23
  return;
24
24
  }
25
- }, V = {
25
+ }, ee = {
26
26
  get(a, e = null) {
27
- const t = ve(), n = t == null ? void 0 : t.getItem(a.toUpperCase());
27
+ const t = ye(), n = t == null ? void 0 : t.getItem(a.toUpperCase());
28
28
  if (!n) return e;
29
29
  try {
30
30
  const s = JSON.parse(n);
@@ -37,7 +37,7 @@ const bt = 3600 * 24 * 7, we = "UTC", Qe = "timezone", At = [
37
37
  return e;
38
38
  },
39
39
  set(a, e, t = bt) {
40
- const n = ve(), s = {
40
+ const n = ye(), s = {
41
41
  value: e,
42
42
  expire: t === null ? null : Date.now() + t * 1e3
43
43
  };
@@ -45,45 +45,45 @@ const bt = 3600 * 24 * 7, we = "UTC", Qe = "timezone", At = [
45
45
  },
46
46
  clear() {
47
47
  var a;
48
- (a = ve()) == null || a.clear();
48
+ (a = ye()) == null || a.clear();
49
49
  }
50
- }, _t = (a) => typeof a == "object" && a !== null, Ne = (a) => {
50
+ }, _t = (a) => typeof a == "object" && a !== null, Be = (a) => {
51
51
  if (!_t(a) || Object.prototype.toString.call(a) !== "[object Object]") return !1;
52
52
  const e = Object.getPrototypeOf(a);
53
53
  return e === null || e === Object.prototype;
54
54
  };
55
- function ze(a, e) {
56
- if (!Ne(a)) return e;
57
- if (!Ne(e)) return a;
55
+ function Ze(a, e) {
56
+ if (!Be(a)) return e;
57
+ if (!Be(e)) return a;
58
58
  const t = a;
59
59
  return Object.keys(e).concat(Object.getOwnPropertySymbols(e)).forEach((n) => {
60
- t[n] = ze(
60
+ t[n] = Ze(
61
61
  t[n],
62
62
  e[n]
63
63
  );
64
64
  }), t;
65
65
  }
66
- function Ze() {
66
+ function je() {
67
67
  const a = typeof navigator > "u" ? "en-US" : navigator.language;
68
- return String(V.get("locale", a)).includes("zh") ? "zh-CN" : "en-US";
68
+ return String(ee.get("locale", a)).includes("zh") ? "zh-CN" : "en-US";
69
69
  }
70
- const Be = (a, e, t) => {
70
+ const Ue = (a, e, t) => {
71
71
  var n;
72
72
  return ((n = e == null ? void 0 : e[t]) == null ? void 0 : n[a]) || "";
73
- }, oe = (a, e, t = "") => {
73
+ }, le = (a, e, t = "") => {
74
74
  const n = a;
75
- return Be(e, n, Ze()) || t || Be(e, n, "en-US");
76
- }, de = (a = "") => a.replace(/【.*】/, ""), je = (a, e, t) => {
77
- var n, s, o, r, c;
78
- for (const h of e) {
79
- const i = ((n = h.path) == null ? void 0 : n.replace(/\/:(\w+)/g, "/([^/]+)")) || "", m = new RegExp(`^${i}$`);
80
- if (((s = h.path) == null ? void 0 : s.toLowerCase()) === a || m.test(a))
81
- return ((o = h.meta) == null ? void 0 : o.visible) === "0" && (t == null ? void 0 : t.path) || "";
82
- if ((r = h.children) != null && r.length) {
83
- const f = je(
75
+ return Ue(e, n, je()) || t || Ue(e, n, "en-US");
76
+ }, pe = (a = "") => a.replace(/【.*】/, ""), qe = (a, e, t) => {
77
+ var n, s, r, o, c;
78
+ for (const p of e) {
79
+ const i = ((n = p.path) == null ? void 0 : n.replace(/\/:(\w+)/g, "/([^/]+)")) || "", m = new RegExp(`^${i}$`);
80
+ if (((s = p.path) == null ? void 0 : s.toLowerCase()) === a || m.test(a))
81
+ return ((r = p.meta) == null ? void 0 : r.visible) === "0" && (t == null ? void 0 : t.path) || "";
82
+ if ((o = p.children) != null && o.length) {
83
+ const f = qe(
84
84
  a,
85
- h.children,
86
- ((c = h.meta) == null ? void 0 : c.visible) === "1" ? h : t
85
+ p.children,
86
+ ((c = p.meta) == null ? void 0 : c.visible) === "1" ? p : t
87
87
  );
88
88
  if (f) return f;
89
89
  }
@@ -92,23 +92,23 @@ const Be = (a, e, t) => {
92
92
  }, Ct = (a, e) => {
93
93
  const t = a.resolve(e);
94
94
  if (!(t != null && t.name)) return !1;
95
- const n = String(t.name).split("-").filter((o) => !!o && o !== "index"), s = t.path.split("-").join("/").split("/").filter(Boolean);
96
- return n.length === s.length && n.every((o, r) => o === s[r]);
97
- }, se = (a) => typeof a == "string" && qe(a) ? a : "", qe = (a) => {
95
+ const n = String(t.name).split("-").filter((r) => !!r && r !== "index"), s = t.path.split("-").join("/").split("/").filter(Boolean);
96
+ return n.length === s.length && n.every((r, o) => r === s[o]);
97
+ }, ie = (a) => typeof a == "string" && Ye(a) ? a : "", Ye = (a) => {
98
98
  try {
99
99
  return new Intl.DateTimeFormat("en-US", { timeZone: a }).format(/* @__PURE__ */ new Date()), !0;
100
100
  } catch {
101
101
  return !1;
102
102
  }
103
- }, Ye = () => se(Intl.DateTimeFormat().resolvedOptions().timeZone) || we, Pe = R(
104
- se(V.get(Qe)) || Ye()
105
- ), St = () => it(Pe);
106
- function wt(a) {
107
- const e = se(a);
108
- e && (Pe.value = e, V.set(Qe, e, null));
103
+ }, We = () => ie(Intl.DateTimeFormat().resolvedOptions().timeZone) || Pe, Te = R(
104
+ ie(ee.get(ze)) || We()
105
+ ), wt = () => it(Te);
106
+ function St(a) {
107
+ const e = ie(a);
108
+ e && (Te.value = e, ee.set(ze, e, null));
109
109
  }
110
110
  const Pt = (a) => {
111
- const e = se(a) || we, t = De.get(e);
111
+ const e = ie(a) || Pe, t = Ne.get(e);
112
112
  if (t) return t;
113
113
  const n = new Intl.DateTimeFormat("en-US", {
114
114
  timeZone: e,
@@ -120,9 +120,9 @@ const Pt = (a) => {
120
120
  second: "2-digit",
121
121
  hourCycle: "h23"
122
122
  });
123
- return De.set(e, n), n;
123
+ return Ne.set(e, n), n;
124
124
  }, Tt = (a, e) => Pt(e).formatToParts(a).reduce((n, s) => (s.type !== "literal" && (n[s.type] = Number(s.value)), n), {}), kt = (a, e = /* @__PURE__ */ new Date()) => {
125
- const t = se(a) || we, n = Tt(e, t), s = Date.UTC(
125
+ const t = ie(a) || Pe, n = Tt(e, t), s = Date.UTC(
126
126
  n.year || 0,
127
127
  (n.month || 1) - 1,
128
128
  n.day || 1,
@@ -132,71 +132,71 @@ const Pt = (a) => {
132
132
  e.getMilliseconds()
133
133
  );
134
134
  return Math.round((s - e.getTime()) / 6e4);
135
- }, We = (a, e = /* @__PURE__ */ new Date()) => {
136
- const t = kt(a, e), n = t >= 0 ? "+" : "-", s = Math.abs(t), o = Math.floor(s / 60), r = s % 60;
137
- return `UTC${n}${String(o).padStart(2, "0")}:${String(
138
- r
135
+ }, Xe = (a, e = /* @__PURE__ */ new Date()) => {
136
+ const t = kt(a, e), n = t >= 0 ? "+" : "-", s = Math.abs(t), r = Math.floor(s / 60), o = s % 60;
137
+ return `UTC${n}${String(r).padStart(2, "0")}:${String(
138
+ o
139
139
  ).padStart(2, "0")}`;
140
- }, It = (a, e = /* @__PURE__ */ new Date()) => `${a} (${We(a, e)})`, Lt = (a = /* @__PURE__ */ new Date()) => {
140
+ }, It = (a, e = /* @__PURE__ */ new Date()) => `${a} (${Xe(a, e)})`, Lt = (a = /* @__PURE__ */ new Date()) => {
141
141
  const e = new Set(
142
- [Ye(), ...At, Pe.value].filter(
143
- qe
142
+ [We(), ...At, Te.value].filter(
143
+ Ye
144
144
  )
145
145
  );
146
146
  return Array.from(e).map((t) => {
147
- const n = We(t, a);
147
+ const n = Xe(t, a);
148
148
  return {
149
149
  value: t,
150
150
  label: `${t} (${n})`,
151
151
  offset: n
152
152
  };
153
153
  });
154
- }, ee = R("light");
155
- function Xe() {
154
+ }, ne = R("light");
155
+ function Ge() {
156
156
  const a = "theme", e = "(prefers-color-scheme: dark)", t = R(!1);
157
157
  let n = !1;
158
- const s = (y) => y === "dark" || y === "light" ? y : null, o = () => typeof window > "u" || typeof window.matchMedia != "function" ? "light" : window.matchMedia(e).matches ? "dark" : "light", r = (y) => {
159
- const C = s(V.get(a, null));
160
- return C ? (t.value = !0, C) : y || o();
158
+ const s = (y) => y === "dark" || y === "light" ? y : null, r = () => typeof window > "u" || typeof window.matchMedia != "function" ? "light" : window.matchMedia(e).matches ? "dark" : "light", o = (y) => {
159
+ const C = s(ee.get(a, null));
160
+ return C ? (t.value = !0, C) : y || r();
161
161
  }, c = (y) => {
162
162
  typeof document > "u" || document.documentElement.classList.toggle("dark", y === "dark");
163
- }, h = (y) => {
164
- const C = r(y);
165
- return ee.value = C, c(C), n = !0, C;
163
+ }, p = (y) => {
164
+ const C = o(y);
165
+ return ne.value = C, c(C), n = !0, C;
166
166
  }, i = (y, C) => {
167
- ee.value = y, c(y), (C == null ? void 0 : C.persist) !== !1 && (V.set(a, y, null), t.value = !0);
167
+ ne.value = y, c(y), (C == null ? void 0 : C.persist) !== !1 && (ee.set(a, y, null), t.value = !0);
168
168
  }, m = () => {
169
- i(ee.value === "dark" ? "light" : "dark");
170
- }, p = (y) => {
169
+ i(ne.value === "dark" ? "light" : "dark");
170
+ }, h = (y) => {
171
171
  if (!n) {
172
- h(y);
172
+ p(y);
173
173
  return;
174
174
  }
175
175
  !t.value && y && i(y, { persist: !1 });
176
- }, f = S(() => ee.value === "dark");
176
+ }, f = w(() => ne.value === "dark");
177
177
  return {
178
- theme: ee,
178
+ theme: ne,
179
179
  isDark: f,
180
- initTheme: h,
180
+ initTheme: p,
181
181
  setTheme: i,
182
182
  toggleTheme: m,
183
- syncThemeFromSetting: p
183
+ syncThemeFromSetting: h
184
184
  };
185
185
  }
186
- const xt = () => typeof location > "u" ? "" : location.href, Ge = (a) => (a == null ? void 0 : a.loginPath) || `/login?redirect=${encodeURIComponent(xt())}`, pe = (a) => {
187
- typeof location > "u" || (location.href = Ge(a));
186
+ const xt = () => typeof location > "u" ? "" : location.href, Ve = (a) => (a == null ? void 0 : a.loginPath) || `/login?redirect=${encodeURIComponent(xt())}`, me = (a) => {
187
+ typeof location > "u" || (location.href = Ve(a));
188
188
  }, Et = (a) => (a == null ? void 0 : a.userCenterPath) || "/usercenter/home", Mt = (a) => {
189
- var o;
189
+ var r;
190
190
  const e = a.themeColor, t = {};
191
191
  if (e)
192
- for (const r in e) {
193
- if (!e[r]) continue;
194
- const c = "--layout-" + r.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
195
- t[c] = e[r], r == "colorPrimary" && Dt(e[r]);
192
+ for (const o in e) {
193
+ if (!e[o]) continue;
194
+ const c = "--layout-" + o.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
195
+ t[c] = e[o], o == "colorPrimary" && Dt(e[o]);
196
196
  }
197
197
  let n = document.getElementById("layout-style");
198
- n && ((o = n.parentNode) == null || o.removeChild(n)), n = document.createElement("style"), n.id = "layout-style", document.head.appendChild(n);
199
- const s = Object.keys(t).map((r) => r + ":" + t[r]).join(";");
198
+ n && ((r = n.parentNode) == null || r.removeChild(n)), n = document.createElement("style"), n.id = "layout-style", document.head.appendChild(n);
199
+ const s = Object.keys(t).map((o) => o + ":" + t[o]).join(";");
200
200
  n.innerHTML = `html:root{${s}}`;
201
201
  };
202
202
  function Dt(a) {
@@ -208,29 +208,29 @@ function Dt(a) {
208
208
  }
209
209
  const t = Nt(a);
210
210
  e || (e = document.createElement("style"), e.id = "primary-style", document.head.appendChild(e));
211
- const n = Object.keys(t).map((o) => o + ":" + t[o]).join(";");
211
+ const n = Object.keys(t).map((r) => r + ":" + t[r]).join(";");
212
212
  e.innerHTML = `html:root{${n}}`;
213
213
  }
214
214
  function Nt(a) {
215
- var h;
216
- const e = ((h = a.match(/\d+/g)) == null ? void 0 : h.map(Number)) || [], [t, n, s] = e, o = `rgb(${t}, ${n}, ${s})`, r = (i) => {
217
- const m = i / 100, p = Math.min(255, t + (255 - t) * m), f = Math.min(255, n + (255 - n) * m), y = Math.min(255, s + (255 - s) * m);
218
- return `rgb(${p.toFixed(1)}, ${f.toFixed(1)}, ${y.toFixed(1)})`;
215
+ var p;
216
+ const e = ((p = a.match(/\d+/g)) == null ? void 0 : p.map(Number)) || [], [t, n, s] = e, r = `rgb(${t}, ${n}, ${s})`, o = (i) => {
217
+ const m = i / 100, h = Math.min(255, t + (255 - t) * m), f = Math.min(255, n + (255 - n) * m), y = Math.min(255, s + (255 - s) * m);
218
+ return `rgb(${h.toFixed(1)}, ${f.toFixed(1)}, ${y.toFixed(1)})`;
219
219
  }, c = (i) => {
220
220
  const m = 1 - i / 100;
221
221
  return `rgb(${Math.round(t * m)} ${Math.round(n * m)} ${Math.round(s * m)})`;
222
222
  };
223
223
  return {
224
- "--el-color-primary": o,
225
- "--el-color-primary-light-3": r(30),
226
- "--el-color-primary-light-5": r(50),
227
- "--el-color-primary-light-7": r(70),
228
- "--el-color-primary-light-8": r(80),
229
- "--el-color-primary-light-9": r(90),
224
+ "--el-color-primary": r,
225
+ "--el-color-primary-light-3": o(30),
226
+ "--el-color-primary-light-5": o(50),
227
+ "--el-color-primary-light-7": o(70),
228
+ "--el-color-primary-light-8": o(80),
229
+ "--el-color-primary-light-9": o(90),
230
230
  "--el-color-primary-dark-2": c(20)
231
231
  };
232
232
  }
233
- const be = R({
233
+ const Ae = R({
234
234
  menus: [],
235
235
  layout: "classic",
236
236
  title: "",
@@ -239,95 +239,102 @@ const be = R({
239
239
  pageType: "common"
240
240
  });
241
241
  function Q() {
242
- return be;
242
+ return Ae;
243
243
  }
244
244
  const Bt = (a) => {
245
245
  const e = Q(), t = a && g(a) || {};
246
246
  if (!(e != null && e.value)) return t;
247
- be.value = ze(e.value, t);
248
- const { syncThemeFromSetting: n } = Xe();
249
- n(), Mt(be.value);
250
- }, Ut = 1024, Ve = R(), le = R([]), G = R(), ne = R(""), ae = R(""), ie = R(""), te = Q(), Ae = R(!0), _e = R(!1), Rt = R(), Kt = () => {
251
- const a = () => {
247
+ Ae.value = Ze(e.value, t);
248
+ const { syncThemeFromSetting: n } = Ge();
249
+ n(), Mt(Ae.value);
250
+ }, Ut = 1024, $e = R(), ce = R([]), $ = R(), oe = R(""), se = R(""), ue = R(""), ae = Q(), _e = R(!0), Ce = R(!1), Rt = R(), Kt = () => {
251
+ const a = V(), e = () => {
252
252
  var o;
253
- return ((o = te.value.menus) == null ? void 0 : o.filter((r) => {
254
- var c;
255
- return ((c = r.meta) == null ? void 0 : c.appId) == ae.value;
253
+ return ((o = ae.value.menus) == null ? void 0 : o.filter((c) => {
254
+ var p;
255
+ return ((p = c.meta) == null ? void 0 : p.appId) == se.value;
256
256
  })) || [];
257
- }, e = (o, r, c = 0, h) => {
258
- var C, T, N, U;
259
- const i = re();
260
- if (!i) return;
261
- const m = h ? [...h] : [], p = [], f = [];
257
+ }, t = (o, c, p = 0, i) => {
258
+ var T, N, U, Z;
259
+ const m = V();
260
+ if (!m) return;
261
+ const h = i ? [...i] : [], f = [], y = [];
262
262
  for (const M in o) {
263
- [...m], o[M];
264
- const K = ((C = i.meta) == null ? void 0 : C.parent) || i.path, q = ((T = o[M].path) == null ? void 0 : T.replace(/\/:(\w+)/g, "/([^/]+)")) || "", he = new RegExp(`^${q}$`);
265
- K == o[M].path ? p.push({ index: M, item: o[M] }) : he.test(K) && f.push({ index: M, item: o[M] });
263
+ [...h], o[M];
264
+ const J = ((T = m.meta) == null ? void 0 : T.parent) || m.path, Y = ((N = o[M].path) == null ? void 0 : N.replace(/\/:(\w+)/g, "/([^/]+)")) || "", ge = new RegExp(`^${Y}$`);
265
+ J == o[M].path ? f.push({ index: M, item: o[M] }) : ge.test(J) && y.push({ index: M, item: o[M] });
266
266
  }
267
- const y = p.length > 0 ? p : f;
268
- if (y.length > 0) {
269
- const M = y[0], K = [...m];
270
- K[c] = M.item, G.value = {
267
+ const C = f.length > 0 ? f : y;
268
+ if (C.length > 0) {
269
+ const M = C[0], J = [...h];
270
+ J[p] = M.item, $.value = {
271
271
  ...M.item,
272
- paths: K.slice(0, c + 1)
273
- }, ae.value = ((N = M.item.meta) == null ? void 0 : N.appId) || "", Ve.value = r;
272
+ paths: J.slice(0, p + 1)
273
+ }, se.value = ((U = M.item.meta) == null ? void 0 : U.appId) || "", $e.value = c;
274
274
  }
275
275
  for (const M in o)
276
- if (o[M].children && ((U = o[M].children) != null && U.length)) {
277
- const K = o[M].children || [], q = [...m];
278
- q[c] = o[M], e(K, o[M], c + 1, q);
276
+ if (o[M].children && ((Z = o[M].children) != null && Z.length)) {
277
+ const J = o[M].children || [], Y = [...h];
278
+ Y[p] = o[M], t(J, o[M], p + 1, Y);
279
279
  }
280
- ie.value = i.meta.parentPath || je(
281
- i.path.toLowerCase(),
282
- te.value.menus || []
283
- ) || i.path, console.log(ie.value);
284
- }, t = () => {
285
- var h, i, m, p, f, y, C, T, N, U;
286
- e(te.value.menus || []), ae.value || (ae.value = ((m = (i = (h = te.value.menus) == null ? void 0 : h.find(
280
+ ue.value = m.meta.parentPath || qe(
281
+ m.path.toLowerCase(),
282
+ ae.value.menus || []
283
+ ) || m.path, console.log(ue.value);
284
+ }, n = () => {
285
+ var i, m, h, f, y, C, T, N, U, Z;
286
+ t(ae.value.menus || []), se.value || (se.value = ((h = (m = (i = ae.value.menus) == null ? void 0 : i.find(
287
287
  (M) => {
288
- var K;
289
- return (K = M.path) == null ? void 0 : K.startsWith(ne.value);
288
+ var J;
289
+ return (J = M.path) == null ? void 0 : J.startsWith(oe.value);
290
290
  }
291
- )) == null ? void 0 : i.meta) == null ? void 0 : m.appId) || "");
292
- const o = ((p = G.value) == null ? void 0 : p.paths) || [], r = de(
293
- oe(((y = (f = G.value) == null ? void 0 : f.meta) == null ? void 0 : y.translations) || {}, "name")
294
- ), c = ((C = G.value) == null ? void 0 : C.path) == ((T = o[1]) == null ? void 0 : T.path) ? "" : de(oe(((U = (N = o[1]) == null ? void 0 : N.meta) == null ? void 0 : U.translations) || {}, "name"));
295
- document.title = r + (c ? ` - ${c}` : "");
296
- }, n = () => {
297
- const o = re();
298
- ne.value = "/" + (o.path.split("/").filter(Boolean).shift() || ""), t(), le.value = a();
291
+ )) == null ? void 0 : m.meta) == null ? void 0 : h.appId) || "");
292
+ const o = ((f = $.value) == null ? void 0 : f.paths) || [], c = pe(
293
+ le(((C = (y = $.value) == null ? void 0 : y.meta) == null ? void 0 : C.translations) || {}, "name")
294
+ ), p = ((T = $.value) == null ? void 0 : T.path) == ((N = o[1]) == null ? void 0 : N.path) ? "" : pe(le(((Z = (U = o[1]) == null ? void 0 : U.meta) == null ? void 0 : Z.translations) || {}, "name"));
295
+ document.title = c + (p ? ` - ${p}` : "");
299
296
  }, s = () => {
297
+ const o = V();
298
+ oe.value = "/" + (o.path.split("/").filter(Boolean).shift() || ""), n(), ce.value = e();
299
+ }, r = () => {
300
300
  const o = window.innerWidth < Ut;
301
- _e.value = o, Ae.value = !o;
301
+ Ce.value = o, _e.value = !o;
302
302
  };
303
- s(), n(), ct(() => {
304
- n();
305
- }), Re(() => {
306
- window.addEventListener("resize", s);
303
+ r(), s(), ct(() => {
304
+ s();
307
305
  }), Ke(() => {
308
- window.removeEventListener("resize", s);
309
- }), ue(
310
- () => ne.value,
311
- () => void (le.value = a())
312
- ), ue(
313
- () => [location.href, te.value.menus],
306
+ window.addEventListener("resize", r);
307
+ }), Je(() => {
308
+ window.removeEventListener("resize", r);
309
+ }), re(
310
+ () => oe.value,
311
+ () => void (ce.value = e())
312
+ ), re(
313
+ () => [a.path, ae.value.menus],
314
+ () => {
315
+ const o = V();
316
+ ue.value = "", $.value = void 0, oe.value = "/" + (o.path.split("/").filter(Boolean).shift() || ""), n(), ce.value = e(), Ce.value && (_e.value = !1);
317
+ }
318
+ ), re(
319
+ () => window.location.href,
314
320
  () => {
315
- const o = re();
316
- ie.value = "", G.value = void 0, ne.value = "/" + (o.path.split("/").filter(Boolean).shift() || ""), t(), le.value = a(), _e.value && (Ae.value = !1);
321
+ console.log(window.location.href);
322
+ const o = V();
323
+ console.log(o.path);
317
324
  }
318
325
  );
319
326
  };
320
327
  function z() {
321
328
  return {
322
329
  initLayoutState: Kt,
323
- menus: le,
324
- currentEndRoute: G,
325
- currentTabPath: ne,
326
- currentAppId: ae,
327
- defaultParentActive: ie,
328
- sideOpen: Ae,
329
- isMobile: _e,
330
- currentEndParentRoute: Ve,
330
+ menus: ce,
331
+ currentEndRoute: $,
332
+ currentTabPath: oe,
333
+ currentAppId: se,
334
+ defaultParentActive: ue,
335
+ sideOpen: _e,
336
+ isMobile: Ce,
337
+ currentEndParentRoute: $e,
331
338
  leftScrollRef: Rt
332
339
  };
333
340
  }
@@ -337,8 +344,8 @@ const Jt = { class: "menu-item-icon" }, Ot = ["innerHTML"], Ft = /* @__PURE__ */
337
344
  icon: { default: "metisicon-yingyong" }
338
345
  },
339
346
  setup(a) {
340
- const e = a, t = S(() => e.icon || "metisicon-yingyong"), n = /^\s*<svg[\s>]/i, s = /\son[a-z]+\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi, o = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, r = /\s(?:href|xlink:href)\s*=\s*("\s*javascript:[^"]*"|'\s*javascript:[^']*')/gi, c = (m) => !!m && n.test(m), h = (m) => !m || !c(m) ? "" : m.replace(o, "").replace(s, "").replace(r, ""), i = S(() => h(t.value));
341
- return (m, p) => (l(), v("div", Jt, [
347
+ const e = a, t = w(() => e.icon || "metisicon-yingyong"), n = /^\s*<svg[\s>]/i, s = /\son[a-z]+\s*=\s*("[^"]*"|'[^']*'|[^\s>]+)/gi, r = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, o = /\s(?:href|xlink:href)\s*=\s*("\s*javascript:[^"]*"|'\s*javascript:[^']*')/gi, c = (m) => !!m && n.test(m), p = (m) => !m || !c(m) ? "" : m.replace(r, "").replace(s, "").replace(o, ""), i = w(() => p(t.value));
348
+ return (m, h) => (l(), v("div", Jt, [
342
349
  c(t.value) ? (l(), v("span", {
343
350
  key: 0,
344
351
  class: "menu-item-icon__svg",
@@ -354,7 +361,7 @@ const Jt = { class: "menu-item-icon" }, Ot = ["innerHTML"], Ft = /* @__PURE__ */
354
361
  for (const [n, s] of e)
355
362
  t[n] = s;
356
363
  return t;
357
- }, $e = /* @__PURE__ */ B(Ft, [["__scopeId", "data-v-ed060390"]]), Ht = { key: 0 }, Qt = /* @__PURE__ */ D({
364
+ }, et = /* @__PURE__ */ B(Ft, [["__scopeId", "data-v-ed060390"]]), Ht = { key: 0 }, Qt = /* @__PURE__ */ D({
358
365
  __name: "AsideSubMenuItem",
359
366
  props: {
360
367
  menu: {
@@ -367,25 +374,25 @@ const Jt = { class: "menu-item-icon" }, Ot = ["innerHTML"], Ft = /* @__PURE__ */
367
374
  }
368
375
  },
369
376
  setup(a) {
370
- const e = a, t = S(
377
+ const e = a, t = w(
371
378
  () => {
372
379
  var i;
373
380
  return (i = e.menu.children) == null ? void 0 : i.filter((m) => {
374
- var p;
375
- return ((p = m.meta) == null ? void 0 : p.visible) != "0";
381
+ var h;
382
+ return ((h = m.meta) == null ? void 0 : h.visible) != "0";
376
383
  });
377
384
  }
378
- ), { defaultParentActive: n, currentTabPath: s } = z(), o = He(), r = S(() => {
385
+ ), { defaultParentActive: n, currentTabPath: s } = z(), r = Qe(), o = w(() => {
379
386
  var i;
380
- return e.level == 1 && !Ct(o, e.menu.path || "") ? "div" : /^http/.test(e.menu.path || "") || !((i = e.menu.path) != null && i.startsWith(s.value)) ? "a" : "router-link";
381
- }), c = S(() => {
387
+ return e.level == 1 && !Ct(r, e.menu.path || "") ? "div" : /^http/.test(e.menu.path || "") || !((i = e.menu.path) != null && i.startsWith(s.value)) ? "a" : "router-link";
388
+ }), c = w(() => {
382
389
  var i;
383
390
  return /^http/.test(e.menu.path || "") || !((i = e.menu.path) != null && i.startsWith(s.value)) ? {
384
391
  href: e.menu.path || ""
385
392
  } : {
386
393
  to: e.menu.path || ""
387
394
  };
388
- }), h = S(
395
+ }), p = w(
389
396
  () => {
390
397
  var i;
391
398
  return String(e.menu.icon || ((i = e.menu.meta) == null ? void 0 : i.icon) || "metisicon-yingyong");
@@ -393,9 +400,9 @@ const Jt = { class: "menu-item-icon" }, Ot = ["innerHTML"], Ft = /* @__PURE__ */
393
400
  );
394
401
  return (i, m) => {
395
402
  var f, y;
396
- const p = L("AsideSubMenuItem", !0);
397
- return l(), v(J, null, [
398
- (l(), k(Ce(r.value), Je({
403
+ const h = L("AsideSubMenuItem", !0);
404
+ return l(), v(K, null, [
405
+ (l(), k(we(o.value), Oe({
399
406
  class: ["pt-1 pb-1 pl-3 pr-3 flex items-center gap-2 rounded-md", [
400
407
  e.menu.path == g(n) ? "bg-[var(--ui-sidebar-active-bg,var(--el-fill-color))] text-[var(--ui-sidebar-active-fg)] font-medium" : "text-[var(--ui-sidebar-foreground)]",
401
408
  (f = t.value) != null && f.length ? " h-7" : " h-9.5 cursor-pointer hover:bg-[var(--ui-sidebar-hover-bg)]"
@@ -405,22 +412,22 @@ const Jt = { class: "menu-item-icon" }, Ot = ["innerHTML"], Ft = /* @__PURE__ */
405
412
  default: _(() => {
406
413
  var C, T, N, U;
407
414
  return [
408
- (C = t.value) != null && C.length ? I("", !0) : (l(), k($e, {
415
+ (C = t.value) != null && C.length ? I("", !0) : (l(), k(et, {
409
416
  key: 0,
410
- icon: h.value,
417
+ icon: p.value,
411
418
  class: F(["text-md", [
412
419
  e.menu.path == g(n) ? "opacity-100" : "opacity-60"
413
420
  ]])
414
421
  }, null, 8, ["icon", "class"])),
415
422
  d("div", {
416
423
  class: F(["truncate", (T = t.value) != null && T.length ? "text-xs text-gray-400" : ""])
417
- }, E(g(de)(g(oe)(((U = (N = e.menu) == null ? void 0 : N.meta) == null ? void 0 : U.translations) || {}, "name"))), 3)
424
+ }, E(g(pe)(g(le)(((U = (N = e.menu) == null ? void 0 : N.meta) == null ? void 0 : U.translations) || {}, "name"))), 3)
418
425
  ];
419
426
  }),
420
427
  _: 1
421
428
  }, 16, ["class"])),
422
429
  (y = t.value) != null && y.length ? (l(), v("div", Ht, [
423
- (l(!0), v(J, null, H(t.value, (C, T) => (l(), k(p, {
430
+ (l(!0), v(K, null, H(t.value, (C, T) => (l(), k(h, {
424
431
  menu: C,
425
432
  key: T,
426
433
  level: e.level + 1
@@ -432,7 +439,7 @@ const Jt = { class: "menu-item-icon" }, Ot = ["innerHTML"], Ft = /* @__PURE__ */
432
439
  }), zt = { class: "h-full" }, Zt = {
433
440
  key: 0,
434
441
  class: ""
435
- }, et = /* @__PURE__ */ D({
442
+ }, tt = /* @__PURE__ */ D({
436
443
  __name: "AsideSubMenus",
437
444
  props: {
438
445
  menus: {
@@ -446,12 +453,12 @@ const Jt = { class: "menu-item-icon" }, Ot = ["innerHTML"], Ft = /* @__PURE__ */
446
453
  var s;
447
454
  return ut((l(), v("div", zt, [
448
455
  (s = e.menus) != null && s.length ? (l(), v("div", Zt, [
449
- (l(!0), v(J, null, H(e.menus.filter((o) => {
450
- var r;
451
- return ((r = o.meta) == null ? void 0 : r.visible) != "0";
452
- }), (o, r) => (l(), k(Qt, {
453
- key: r,
454
- menu: o
456
+ (l(!0), v(K, null, H(e.menus.filter((r) => {
457
+ var o;
458
+ return ((o = r.meta) == null ? void 0 : o.visible) != "0";
459
+ }), (r, o) => (l(), k(Qt, {
460
+ key: o,
461
+ menu: r
455
462
  }, null, 8, ["menu"]))), 128))
456
463
  ])) : I("", !0)
457
464
  ], 512)), [
@@ -466,9 +473,9 @@ const Jt = { class: "menu-item-icon" }, Ot = ["innerHTML"], Ft = /* @__PURE__ */
466
473
  __name: "AsideBar",
467
474
  setup(a) {
468
475
  const { menus: e, isMobile: t, sideOpen: n } = z(), s = () => void (n.value = !n.value);
469
- return (o, r) => {
470
- const c = L("el-icon"), h = L("el-scrollbar");
471
- return g(e).length && !o.$route.meta.hideSidebar ? (l(), v("div", {
476
+ return (r, o) => {
477
+ const c = L("el-icon"), p = L("el-scrollbar");
478
+ return g(e).length && !r.$route.meta.hideSidebar ? (l(), v("div", {
472
479
  key: 0,
473
480
  class: F(["aside-bar flex flex-col h-full min-h-0 w-64 min-width-50", [
474
481
  g(t) ? "fixed top-0 left-0 z-200 transition-all" : "",
@@ -482,38 +489,38 @@ const Jt = { class: "menu-item-icon" }, Ot = ["innerHTML"], Ft = /* @__PURE__ */
482
489
  }, [
483
490
  A(c, null, {
484
491
  default: _(() => [
485
- A(g(Fe))
492
+ A(g(He))
486
493
  ]),
487
494
  _: 1
488
495
  })
489
496
  ])
490
497
  ])) : I("", !0),
491
- A(h, { ref: "leftScrollRef" }, {
498
+ A(p, { ref: "leftScrollRef" }, {
492
499
  default: _(() => [
493
500
  d("div", qt, [
494
- A(et, { menus: g(e) }, null, 8, ["menus"])
501
+ A(tt, { menus: g(e) }, null, 8, ["menus"])
495
502
  ])
496
503
  ]),
497
504
  _: 1
498
505
  }, 512),
499
- j(o.$slots, "sidebar-foot", {}, void 0, !0)
506
+ q(r.$slots, "sidebar-foot", {}, void 0, !0)
500
507
  ], 2)) : I("", !0);
501
508
  };
502
509
  }
503
510
  }), Wt = /* @__PURE__ */ B(Yt, [["__scopeId", "data-v-ff960d0f"]]);
504
- function tt() {
505
- const a = Q(), e = S(() => a.value.appList || []);
511
+ function nt() {
512
+ const a = Q(), e = w(() => a.value.appList || []);
506
513
  return {
507
514
  appList: e,
508
515
  getAppPath: (s) => (s == null ? void 0 : s.path) || "",
509
516
  findAppById: (s) => {
510
517
  if (s)
511
- return nt(e.value, s);
518
+ return at(e.value, s);
512
519
  }
513
520
  };
514
521
  }
515
- const nt = (a, e) => a.reduce(
516
- (t, n) => t || (n.appId === e ? n : nt(n.children || [], e)),
522
+ const at = (a, e) => a.reduce(
523
+ (t, n) => t || (n.appId === e ? n : at(n.children || [], e)),
517
524
  void 0
518
525
  ), Xt = {
519
526
  key: 0,
@@ -524,16 +531,16 @@ const nt = (a, e) => a.reduce(
524
531
  }, $t = ["href"], en = { class: "app-select__dropdown-icon text-xl" }, tn = { class: "app-select__dropdown-desc" }, nn = /* @__PURE__ */ D({
525
532
  __name: "AppSelect",
526
533
  setup(a) {
527
- const { currentAppId: e } = z(), { appList: t, getAppPath: n } = tt(), s = (o) => {
528
- var r;
529
- return e.value === o.appId || !!((r = o.children) != null && r.some((c) => c.appId === e.value));
534
+ const { currentAppId: e } = z(), { appList: t, getAppPath: n } = nt(), s = (r) => {
535
+ var o;
536
+ return e.value === r.appId || !!((o = r.children) != null && o.some((c) => c.appId === e.value));
530
537
  };
531
- return (o, r) => {
532
- var h;
538
+ return (r, o) => {
539
+ var p;
533
540
  const c = L("el-icon");
534
- return (h = g(t)) != null && h.length ? (l(), v("div", Xt, [
535
- (l(!0), v(J, null, H(g(t), (i) => {
536
- var m, p;
541
+ return (p = g(t)) != null && p.length ? (l(), v("div", Xt, [
542
+ (l(!0), v(K, null, H(g(t), (i) => {
543
+ var m, h;
537
544
  return l(), v("div", {
538
545
  key: i.appId,
539
546
  class: "app-select__group"
@@ -552,8 +559,8 @@ const nt = (a, e) => a.reduce(
552
559
  _: 1
553
560
  })) : I("", !0)
554
561
  ], 10, Gt),
555
- (p = i.children) != null && p.length ? (l(), v("div", Vt, [
556
- (l(!0), v(J, null, H(i.children, (f) => (l(), v("a", {
562
+ (h = i.children) != null && h.length ? (l(), v("div", Vt, [
563
+ (l(!0), v(K, null, H(i.children, (f) => (l(), v("a", {
557
564
  key: f.appId,
558
565
  class: F(["app-select__dropdown-item", {
559
566
  "app-select__dropdown-item--active": s(f)
@@ -584,25 +591,25 @@ const nt = (a, e) => a.reduce(
584
591
  iconOnly: { type: Boolean, default: !0 }
585
592
  },
586
593
  setup(a) {
587
- return (e, t) => (l(), k(Ce(a.tag), {
594
+ return (e, t) => (l(), k(we(a.tag), {
588
595
  type: a.tag === "button" ? a.type : void 0,
589
596
  class: F(["nav-icon-btn", { "nav-icon-btn--icon-only": a.iconOnly }])
590
597
  }, {
591
598
  default: _(() => [
592
- j(e.$slots, "default", {}, void 0, !0)
599
+ q(e.$slots, "default", {}, void 0, !0)
593
600
  ]),
594
601
  _: 3
595
602
  }, 8, ["type", "class"]));
596
603
  }
597
- }), $ = /* @__PURE__ */ B(on, [["__scopeId", "data-v-824bbddc"]]), sn = /* @__PURE__ */ D({
604
+ }), te = /* @__PURE__ */ B(on, [["__scopeId", "data-v-824bbddc"]]), sn = /* @__PURE__ */ D({
598
605
  __name: "ThemeToggle",
599
606
  setup(a) {
600
- const e = Q(), { theme: t, isDark: n, toggleTheme: s } = Xe();
601
- return Oe(() => {
607
+ const e = Q(), { theme: t, isDark: n, toggleTheme: s } = Ge();
608
+ return Fe(() => {
602
609
  e.value.theme = t.value;
603
- }), (o, r) => {
610
+ }), (r, o) => {
604
611
  const c = L("el-icon");
605
- return l(), k($, { onClick: g(s) }, {
612
+ return l(), k(te, { onClick: g(s) }, {
606
613
  default: _(() => [
607
614
  A(c, null, {
608
615
  default: _(() => [
@@ -615,7 +622,7 @@ const nt = (a, e) => a.reduce(
615
622
  }, 8, ["onClick"]);
616
623
  };
617
624
  }
618
- }), at = /* @__PURE__ */ B(sn, [["__scopeId", "data-v-e6ea60b7"]]), rn = {
625
+ }), ot = /* @__PURE__ */ B(sn, [["__scopeId", "data-v-e6ea60b7"]]), rn = {
619
626
  label: {
620
627
  clickToChangeImage: "Click to change image"
621
628
  },
@@ -1557,7 +1564,7 @@ const nt = (a, e) => a.reduce(
1557
1564
  StaticPrefixInput: {
1558
1565
  notEmpty: "不能为空"
1559
1566
  }
1560
- }, Sn = {
1567
+ }, wn = {
1561
1568
  label: {},
1562
1569
  btn: {},
1563
1570
  msg: {
@@ -1573,7 +1580,7 @@ const nt = (a, e) => a.reduce(
1573
1580
  charError: "密码必须包含字母、数字、特殊符号",
1574
1581
  charTypeError: "密码必须包含至少以下三种(大写字母、小写字母、数字、特殊符号)"
1575
1582
  }
1576
- }, wn = {
1583
+ }, Sn = {
1577
1584
  name: "中文简体",
1578
1585
  common: yn,
1579
1586
  account: fn,
@@ -1581,15 +1588,15 @@ const nt = (a, e) => a.reduce(
1581
1588
  components: bn,
1582
1589
  constant: An,
1583
1590
  filterBox: _n,
1584
- password: Sn,
1591
+ password: wn,
1585
1592
  instanceForm: Cn
1586
- }, ce = {
1593
+ }, de = {
1587
1594
  "en-US": gn,
1588
- "zh-CN": wn
1589
- }, me = yt({
1590
- locale: Ze(),
1595
+ "zh-CN": Sn
1596
+ }, he = yt({
1597
+ locale: je(),
1591
1598
  fallbackLocale: "en-US",
1592
- messages: ce,
1599
+ messages: de,
1593
1600
  legacy: !1
1594
1601
  }), Pn = {
1595
1602
  key: 0,
@@ -1600,24 +1607,24 @@ const nt = (a, e) => a.reduce(
1600
1607
  showLabel: { type: Boolean, default: !1 }
1601
1608
  },
1602
1609
  setup(a) {
1603
- const { locale: e } = me.global, t = S(
1604
- () => ce[e.value].name
1605
- ), n = Object.keys(ce).map((o) => ({
1606
- label: ce[o].name,
1607
- value: o
1608
- })), s = (o) => {
1609
- V.set("locale", o), location.reload();
1610
+ const { locale: e } = he.global, t = w(
1611
+ () => de[e.value].name
1612
+ ), n = Object.keys(de).map((r) => ({
1613
+ label: de[r].name,
1614
+ value: r
1615
+ })), s = (r) => {
1616
+ ee.set("locale", r), location.reload();
1610
1617
  };
1611
- return (o, r) => {
1612
- const c = L("el-icon"), h = L("el-popover");
1613
- return l(), k(h, {
1618
+ return (r, o) => {
1619
+ const c = L("el-icon"), p = L("el-popover");
1620
+ return l(), k(p, {
1614
1621
  placement: "bottom",
1615
1622
  width: 180,
1616
1623
  trigger: "hover",
1617
1624
  "popper-class": "top-language-popover"
1618
1625
  }, {
1619
1626
  reference: _(() => [
1620
- A($, {
1627
+ A(te, {
1621
1628
  "langselect-toggle": "",
1622
1629
  tag: "div",
1623
1630
  class: "language-select",
@@ -1626,9 +1633,9 @@ const nt = (a, e) => a.reduce(
1626
1633
  "aria-label": t.value
1627
1634
  }, {
1628
1635
  default: _(() => [
1629
- j(o.$slots, "prefix", {}, void 0, !0),
1636
+ q(r.$slots, "prefix", {}, void 0, !0),
1630
1637
  A(c, null, {
1631
- default: _(() => [...r[0] || (r[0] = [
1638
+ default: _(() => [...o[0] || (o[0] = [
1632
1639
  d("svg", {
1633
1640
  xmlns: "http://www.w3.org/2000/svg",
1634
1641
  width: "24",
@@ -1670,7 +1677,7 @@ const nt = (a, e) => a.reduce(
1670
1677
  ]),
1671
1678
  default: _(() => [
1672
1679
  d("div", Tn, [
1673
- (l(!0), v(J, null, H(g(n), (i) => (l(), v("div", {
1680
+ (l(!0), v(K, null, H(g(n), (i) => (l(), v("div", {
1674
1681
  key: i.value,
1675
1682
  class: F(["language-select__option", { "language-select__option--active": i.value === g(e) }]),
1676
1683
  onClick: (m) => s(i.value)
@@ -1681,16 +1688,16 @@ const nt = (a, e) => a.reduce(
1681
1688
  });
1682
1689
  };
1683
1690
  }
1684
- }), ot = /* @__PURE__ */ B(In, [["__scopeId", "data-v-48306ad1"]]), Ln = { class: "mobile-user-popover" }, xn = ["href"], En = /* @__PURE__ */ D({
1691
+ }), st = /* @__PURE__ */ B(In, [["__scopeId", "data-v-48306ad1"]]), Ln = { class: "mobile-user-popover" }, xn = ["href"], En = /* @__PURE__ */ D({
1685
1692
  __name: "AsideUserMobilePopover",
1686
1693
  setup(a) {
1687
- const { t: e } = me.global, t = Q(), n = S(() => Et(t.value)), s = () => {
1688
- var o, r;
1689
- Promise.resolve((r = (o = t.value).onLogout) == null ? void 0 : r.call(o)).finally(() => {
1690
- t.value.onLogout || pe(t.value);
1694
+ const { t: e } = he.global, t = Q(), n = w(() => Et(t.value)), s = () => {
1695
+ var r, o;
1696
+ Promise.resolve((o = (r = t.value).onLogout) == null ? void 0 : o.call(r)).finally(() => {
1697
+ t.value.onLogout || me(t.value);
1691
1698
  });
1692
1699
  };
1693
- return (o, r) => {
1700
+ return (r, o) => {
1694
1701
  const c = L("el-popover");
1695
1702
  return l(), k(c, {
1696
1703
  width: 220,
@@ -1698,7 +1705,7 @@ const nt = (a, e) => a.reduce(
1698
1705
  "popper-class": "top-userinfo-popover"
1699
1706
  }, {
1700
1707
  reference: _(() => [
1701
- j(o.$slots, "reference", {}, void 0, !0)
1708
+ q(r.$slots, "reference", {}, void 0, !0)
1702
1709
  ]),
1703
1710
  default: _(() => [
1704
1711
  d("div", Ln, [
@@ -1706,16 +1713,16 @@ const nt = (a, e) => a.reduce(
1706
1713
  href: n.value,
1707
1714
  class: "mobile-user-popover__item"
1708
1715
  }, [
1709
- r[0] || (r[0] = d("i", { class: "metisicon-yonghu1" }, null, -1)),
1716
+ o[0] || (o[0] = d("i", { class: "metisicon-yonghu1" }, null, -1)),
1710
1717
  d("span", null, E(g(e)("admin.label.profile")), 1)
1711
1718
  ], 8, xn),
1712
- A(ot),
1713
- r[2] || (r[2] = d("div", { class: "mobile-user-popover__divider" }, null, -1)),
1719
+ A(st),
1720
+ o[2] || (o[2] = d("div", { class: "mobile-user-popover__divider" }, null, -1)),
1714
1721
  d("div", {
1715
1722
  class: "mobile-user-popover__item mobile-user-popover__item--danger",
1716
1723
  onClick: s
1717
1724
  }, [
1718
- r[1] || (r[1] = d("i", { class: "metisicon-exit-full" }, null, -1)),
1725
+ o[1] || (o[1] = d("i", { class: "metisicon-exit-full" }, null, -1)),
1719
1726
  d("span", null, E(g(e)("common.btn.logout")), 1)
1720
1727
  ])
1721
1728
  ])
@@ -1724,36 +1731,36 @@ const nt = (a, e) => a.reduce(
1724
1731
  });
1725
1732
  };
1726
1733
  }
1727
- }), st = /* @__PURE__ */ B(En, [["__scopeId", "data-v-87e082b1"]]), Mn = { class: "header-right-mobile" }, Dn = /* @__PURE__ */ D({
1734
+ }), rt = /* @__PURE__ */ B(En, [["__scopeId", "data-v-87e082b1"]]), Mn = { class: "header-right-mobile" }, Dn = /* @__PURE__ */ D({
1728
1735
  __name: "HeaderRightMobile",
1729
1736
  setup(a) {
1730
- const e = Q(), t = S(
1737
+ const e = Q(), t = w(
1731
1738
  () => {
1732
- var s, o;
1733
- return !!((s = e.value.user) != null && s.id || (o = e.value.user) != null && o.userId);
1739
+ var s, r;
1740
+ return !!((s = e.value.user) != null && s.id || (r = e.value.user) != null && r.userId);
1734
1741
  }
1735
1742
  ), n = () => {
1736
- var s, o;
1737
- (o = (s = e.value).onLogin) != null && o.call(s) || pe(e.value);
1743
+ var s, r;
1744
+ (r = (s = e.value).onLogin) != null && r.call(s) || me(e.value);
1738
1745
  };
1739
- return (s, o) => (l(), v("div", Mn, [
1740
- A(at),
1741
- t.value ? (l(), k(st, { key: 0 }, {
1746
+ return (s, r) => (l(), v("div", Mn, [
1747
+ A(ot),
1748
+ t.value ? (l(), k(rt, { key: 0 }, {
1742
1749
  reference: _(() => [
1743
- A($, { class: "header-right-mobile__action" }, {
1744
- default: _(() => [...o[0] || (o[0] = [
1750
+ A(te, { class: "header-right-mobile__action" }, {
1751
+ default: _(() => [...r[0] || (r[0] = [
1745
1752
  d("i", { class: "metisicon-yonghu1" }, null, -1)
1746
1753
  ])]),
1747
1754
  _: 1
1748
1755
  })
1749
1756
  ]),
1750
1757
  _: 1
1751
- })) : (l(), k($, {
1758
+ })) : (l(), k(te, {
1752
1759
  key: 1,
1753
1760
  class: "header-right-mobile__action",
1754
1761
  onClick: n
1755
1762
  }, {
1756
- default: _(() => [...o[1] || (o[1] = [
1763
+ default: _(() => [...r[1] || (r[1] = [
1757
1764
  d("i", { class: "metisicon-yonghu1" }, null, -1)
1758
1765
  ])]),
1759
1766
  _: 1
@@ -1767,7 +1774,7 @@ const nt = (a, e) => a.reduce(
1767
1774
  e.value = !e.value;
1768
1775
  };
1769
1776
  return (n, s) => {
1770
- const o = L("el-icon");
1777
+ const r = L("el-icon");
1771
1778
  return l(), v("button", {
1772
1779
  type: "button",
1773
1780
  class: "mobile-menu-toggle",
@@ -1776,7 +1783,7 @@ const nt = (a, e) => a.reduce(
1776
1783
  onClick: t
1777
1784
  }, [
1778
1785
  d("div", Un, [
1779
- A(o, null, {
1786
+ A(r, null, {
1780
1787
  default: _(() => [
1781
1788
  A(g(ht))
1782
1789
  ]),
@@ -1796,37 +1803,37 @@ const nt = (a, e) => a.reduce(
1796
1803
  name: { default: "" }
1797
1804
  },
1798
1805
  setup(a) {
1799
- const e = a, t = R(!1), n = S(() => e.name.trim()), s = S(
1806
+ const e = a, t = R(!1), n = w(() => e.name.trim()), s = w(
1800
1807
  () => n.value.charAt(0).toUpperCase() || "U"
1801
- ), o = S(() => n.value || "User avatar"), r = S(() => e.src.trim()), c = S(
1802
- () => !r.value || t.value
1803
- ), h = S(
1808
+ ), r = w(() => n.value || "User avatar"), o = w(() => e.src.trim()), c = w(
1809
+ () => !o.value || t.value
1810
+ ), p = w(
1804
1811
  () => c.value && !!n.value
1805
- ), i = S(
1812
+ ), i = w(
1806
1813
  () => c.value && !n.value
1807
- ), m = S(
1808
- () => r.value && !t.value ? r.value : void 0
1814
+ ), m = w(
1815
+ () => o.value && !t.value ? o.value : void 0
1809
1816
  );
1810
- ue(
1817
+ re(
1811
1818
  () => e.src,
1812
1819
  () => {
1813
1820
  t.value = !1;
1814
1821
  }
1815
1822
  );
1816
- const p = () => {
1823
+ const h = () => {
1817
1824
  t.value = !0;
1818
1825
  };
1819
1826
  return (f, y) => {
1820
1827
  const C = L("el-icon"), T = L("el-avatar");
1821
- return l(), k(T, Je(f.$attrs, {
1828
+ return l(), k(T, Oe(f.$attrs, {
1822
1829
  src: m.value,
1823
1830
  "data-src": m.value,
1824
- alt: o.value,
1831
+ alt: r.value,
1825
1832
  class: ["user-avatar", { "user-avatar--fallback": c.value }],
1826
- onError: p
1833
+ onError: h
1827
1834
  }), {
1828
1835
  default: _(() => [
1829
- h.value ? (l(), v("span", Jn, E(s.value), 1)) : i.value ? (l(), k(C, {
1836
+ p.value ? (l(), v("span", Jn, E(s.value), 1)) : i.value ? (l(), k(C, {
1830
1837
  key: 1,
1831
1838
  class: "user-avatar__icon",
1832
1839
  "aria-hidden": "true"
@@ -1841,7 +1848,7 @@ const nt = (a, e) => a.reduce(
1841
1848
  }, 16, ["src", "data-src", "alt", "class"]);
1842
1849
  };
1843
1850
  }
1844
- }), Ue = /* @__PURE__ */ B(On, [["__scopeId", "data-v-50be58a7"]]), Fn = {
1851
+ }), Re = /* @__PURE__ */ B(On, [["__scopeId", "data-v-50be58a7"]]), Fn = {
1845
1852
  key: 0,
1846
1853
  class: "layout-breadcrumb text-xs",
1847
1854
  "aria-label": "Breadcrumb"
@@ -1864,41 +1871,41 @@ const nt = (a, e) => a.reduce(
1864
1871
  backLabel: { default: "返回" }
1865
1872
  },
1866
1873
  setup(a) {
1867
- const e = a, t = re(), n = He(), s = Q(), o = z(), r = S(() => {
1868
- var Te, ke, Ie, Le, xe, Ee;
1869
- if ((Te = e.items) != null && Te.length)
1870
- return e.items.filter((X) => X.title);
1874
+ const e = a, t = V(), n = Qe(), s = Q(), r = z(), o = w(() => {
1875
+ var ke, Ie, Le, xe, Ee, Me;
1876
+ if ((ke = e.items) != null && ke.length)
1877
+ return e.items.filter((G) => G.title);
1871
1878
  const u = T(t.path), b = T(
1872
- ((ke = t.meta) == null ? void 0 : ke.parent) || ((Ie = t.meta) == null ? void 0 : Ie.parentPath) || t.path
1873
- ), w = c(), P = (xe = (Le = o == null ? void 0 : o.currentEndRoute) == null ? void 0 : Le.value) == null ? void 0 : xe.paths, x = h(P || []);
1874
- let O = x.length ? x : f(w, b);
1875
- const fe = T(
1876
- e.parentPath || ((Ee = t.meta) == null ? void 0 : Ee.parentPath) || ""
1879
+ ((Ie = t.meta) == null ? void 0 : Ie.parent) || ((Le = t.meta) == null ? void 0 : Le.parentPath) || t.path
1880
+ ), S = c(), P = (Ee = (xe = r == null ? void 0 : r.currentEndRoute) == null ? void 0 : xe.value) == null ? void 0 : Ee.paths, x = p(P || []);
1881
+ let O = x.length ? x : f(S, b);
1882
+ const ve = T(
1883
+ e.parentPath || ((Me = t.meta) == null ? void 0 : Me.parentPath) || ""
1877
1884
  );
1878
- if (!O.length && fe && (O = f(w, fe)), !O.length) {
1879
- const X = fe || y(u, w);
1880
- O = X ? f(w, X) : [];
1885
+ if (!O.length && ve && (O = f(S, ve)), !O.length) {
1886
+ const G = ve || y(u, S);
1887
+ O = G ? f(S, G) : [];
1881
1888
  }
1882
- const Y = O.map(i).filter((X) => X.title), Z = Y[Y.length - 1], W = p();
1883
- return e.showCurrent && W && N(Z == null ? void 0 : Z.path) !== N(u) ? Y.push({
1884
- title: W,
1889
+ const W = O.map(i).filter((G) => G.title), j = W[W.length - 1], X = h();
1890
+ return e.showCurrent && X && N(j == null ? void 0 : j.path) !== N(u) ? W.push({
1891
+ title: X,
1885
1892
  path: u,
1886
1893
  disabled: !0
1887
- }) : W && Z && N(Z.path) === N(u) && (Z.title = W, Z.disabled = !0), !Y.length && W && Y.push({
1888
- title: W,
1894
+ }) : X && j && N(j.path) === N(u) && (j.title = X, j.disabled = !0), !W.length && X && W.push({
1895
+ title: X,
1889
1896
  path: u,
1890
1897
  disabled: !0
1891
- }), Y;
1898
+ }), W;
1892
1899
  }), c = () => {
1893
1900
  const u = [], b = /* @__PURE__ */ new Set();
1894
- return (s.value.menus || []).forEach((w) => {
1901
+ return (s.value.menus || []).forEach((S) => {
1895
1902
  var x;
1896
- const P = w.path || w.name || JSON.stringify(((x = w.meta) == null ? void 0 : x.translations) || {});
1897
- !P || b.has(P) || (b.add(P), u.push(w));
1903
+ const P = S.path || S.name || JSON.stringify(((x = S.meta) == null ? void 0 : x.translations) || {});
1904
+ !P || b.has(P) || (b.add(P), u.push(S));
1898
1905
  }), u;
1899
- }, h = (u) => u.filter((b) => {
1900
- var w;
1901
- return b && ((w = b.meta) == null ? void 0 : w.visible) !== "0";
1906
+ }, p = (u) => u.filter((b) => {
1907
+ var S;
1908
+ return b && ((S = b.meta) == null ? void 0 : S.visible) !== "0";
1902
1909
  }), i = (u) => {
1903
1910
  var b;
1904
1911
  return {
@@ -1908,41 +1915,41 @@ const nt = (a, e) => a.reduce(
1908
1915
  children: u.children
1909
1916
  };
1910
1917
  }, m = (u) => {
1911
- var w;
1912
- return ((w = u == null ? void 0 : u.meta) != null && w.translations ? de(oe(u.meta.translations, "name", u.name)) : "") || (u == null ? void 0 : u.title) || (u == null ? void 0 : u.name) || "";
1913
- }, p = () => {
1918
+ var S;
1919
+ return ((S = u == null ? void 0 : u.meta) != null && S.translations ? pe(le(u.meta.translations, "name", u.name)) : "") || (u == null ? void 0 : u.title) || (u == null ? void 0 : u.name) || "";
1920
+ }, h = () => {
1914
1921
  var u;
1915
1922
  return e.currentTitle ? e.currentTitle : typeof ((u = t.meta) == null ? void 0 : u.title) == "string" ? t.meta.title : String(t.params.id || t.params.tenantId || "");
1916
- }, f = (u, b, w = []) => {
1923
+ }, f = (u, b, S = []) => {
1917
1924
  if (!b) return [];
1918
1925
  for (const P of u) {
1919
- const x = [...w, P];
1926
+ const x = [...S, P];
1920
1927
  if (C(P.path, b))
1921
- return h(x);
1928
+ return p(x);
1922
1929
  const O = f(P.children || [], b, x);
1923
1930
  if (O.length) return O;
1924
1931
  }
1925
1932
  return [];
1926
1933
  }, y = (u, b) => {
1927
- const w = u.split("/").filter(Boolean);
1928
- for (let P = w.length - 1; P > 0; P -= 1) {
1929
- const x = `/${w.slice(0, P).join("/")}`;
1934
+ const S = u.split("/").filter(Boolean);
1935
+ for (let P = S.length - 1; P > 0; P -= 1) {
1936
+ const x = `/${S.slice(0, P).join("/")}`;
1930
1937
  if (f(b, x).length) return x;
1931
1938
  }
1932
1939
  return "";
1933
1940
  }, C = (u = "", b = "") => {
1934
- const w = N(u), P = N(b);
1935
- if (!w || !P) return !1;
1936
- if (w === P) return !0;
1937
- const x = w.replace(/\/:(\w+)/g, "/([^/]+)");
1941
+ const S = N(u), P = N(b);
1942
+ if (!S || !P) return !1;
1943
+ if (S === P) return !0;
1944
+ const x = S.replace(/\/:(\w+)/g, "/([^/]+)");
1938
1945
  return new RegExp(`^${x}$`, "i").test(P);
1939
- }, T = (u = "") => u ? u.split("?")[0].split("#")[0] : "", N = (u = "") => (T(u).replace(/\/+$/, "") || "/").toLowerCase(), U = (u) => /^https?:\/\//.test(u.path || ""), M = (u) => {
1946
+ }, T = (u = "") => u ? u.split("?")[0].split("#")[0] : "", N = (u = "") => (T(u).replace(/\/+$/, "") || "/").toLowerCase(), U = (u) => /^https?:\/\//.test(u.path || ""), Z = (u) => {
1940
1947
  var b;
1941
- return !!((b = u.children) != null && b.some((w) => !w.disabled));
1942
- }, K = (u, b) => u.disabled || b === r.value.length - 1 || !u.path ? !1 : U(u) || !M(u), q = (u) => {
1943
- const b = u.to || ge(u);
1948
+ return !!((b = u.children) != null && b.some((S) => !S.disabled));
1949
+ }, M = (u, b) => u.disabled || b === o.value.length - 1 || !u.path ? !1 : U(u) || !Z(u), J = (u) => {
1950
+ const b = u.to || fe(u);
1944
1951
  b && n.push(b);
1945
- }, he = () => {
1952
+ }, Y = () => {
1946
1953
  var b;
1947
1954
  if (e.backTo) {
1948
1955
  n.push(e.backTo);
@@ -1952,68 +1959,68 @@ const nt = (a, e) => a.reduce(
1952
1959
  n.back();
1953
1960
  return;
1954
1961
  }
1955
- const u = rt();
1962
+ const u = ge();
1956
1963
  u && n.push(u);
1957
- }, rt = () => {
1958
- var w, P;
1959
- const u = e.parentPath || ((w = t.meta) == null ? void 0 : w.parentPath) || ((P = t.meta) == null ? void 0 : P.parent) || "";
1964
+ }, ge = () => {
1965
+ var S, P;
1966
+ const u = e.parentPath || ((S = t.meta) == null ? void 0 : S.parentPath) || ((P = t.meta) == null ? void 0 : P.parent) || "";
1960
1967
  if (u)
1961
- return ge({ path: u });
1962
- const b = r.value[r.value.length - 2];
1968
+ return fe({ path: u });
1969
+ const b = o.value[o.value.length - 2];
1963
1970
  if (b != null && b.to) return b.to;
1964
1971
  if (b != null && b.path && !U(b))
1965
- return ge(b);
1966
- }, ge = (u) => {
1972
+ return fe(b);
1973
+ }, fe = (u) => {
1967
1974
  if (!u.path) return;
1968
- const b = e.preserveQueryKeys.reduce((w, P) => {
1975
+ const b = e.preserveQueryKeys.reduce((S, P) => {
1969
1976
  const x = t.query[P];
1970
- return typeof x == "string" && (w[P] = x), Array.isArray(x) && (w[P] = x.filter(
1977
+ return typeof x == "string" && (S[P] = x), Array.isArray(x) && (S[P] = x.filter(
1971
1978
  (O) => typeof O == "string"
1972
- )), w;
1979
+ )), S;
1973
1980
  }, {});
1974
1981
  return Object.keys(b).length ? { path: u.path, query: b } : { path: u.path };
1975
1982
  };
1976
1983
  return (u, b) => {
1977
- const w = L("el-icon");
1978
- return e.showBack || r.value.length ? (l(), v("nav", Fn, [
1984
+ const S = L("el-icon");
1985
+ return e.showBack || o.value.length ? (l(), v("nav", Fn, [
1979
1986
  e.showBack ? (l(), v("button", {
1980
1987
  key: 0,
1981
1988
  class: "layout-breadcrumb__back",
1982
1989
  type: "button",
1983
1990
  "aria-label": e.backLabel,
1984
1991
  title: e.backLabel,
1985
- onClick: he
1992
+ onClick: Y
1986
1993
  }, [
1987
- A(w, null, {
1994
+ A(S, null, {
1988
1995
  default: _(() => [
1989
1996
  A(g(ft))
1990
1997
  ]),
1991
1998
  _: 1
1992
1999
  })
1993
2000
  ], 8, Hn)) : I("", !0),
1994
- r.value.length ? (l(), v("ol", Qn, [
1995
- (l(!0), v(J, null, H(r.value, (P, x) => (l(), v("li", {
2001
+ o.value.length ? (l(), v("ol", Qn, [
2002
+ (l(!0), v(K, null, H(o.value, (P, x) => (l(), v("li", {
1996
2003
  key: `${P.path || P.title}-${x}`,
1997
2004
  class: "flex min-w-0 items-center gap-1"
1998
2005
  }, [
1999
- x > 0 ? (l(), k(w, {
2006
+ x > 0 ? (l(), k(S, {
2000
2007
  key: 0,
2001
2008
  class: "layout-breadcrumb__separator"
2002
2009
  }, {
2003
2010
  default: _(() => [
2004
- A(g(ye))
2011
+ A(g(be))
2005
2012
  ]),
2006
2013
  _: 1
2007
2014
  })) : I("", !0),
2008
- U(P) && K(P, x) ? (l(), v("a", {
2015
+ U(P) && M(P, x) ? (l(), v("a", {
2009
2016
  key: 1,
2010
2017
  class: "layout-breadcrumb__link",
2011
2018
  href: P.path
2012
- }, E(P.title), 9, zn)) : K(P, x) ? (l(), v("button", {
2019
+ }, E(P.title), 9, zn)) : M(P, x) ? (l(), v("button", {
2013
2020
  key: 2,
2014
2021
  class: "layout-breadcrumb__link",
2015
2022
  type: "button",
2016
- onClick: (O) => q(P)
2023
+ onClick: (O) => J(P)
2017
2024
  }, E(P.title), 9, Zn)) : (l(), v("span", jn, E(P.title), 1))
2018
2025
  ]))), 128))
2019
2026
  ])) : I("", !0)
@@ -2029,26 +2036,26 @@ const nt = (a, e) => a.reduce(
2029
2036
  showLabel: { type: Boolean, default: !1 }
2030
2037
  },
2031
2038
  setup(a) {
2032
- const e = St(), t = R(!1), n = S(() => e.value), s = S(() => Lt()), o = S(() => It(n.value)), r = (c) => {
2033
- wt(c), t.value = !1;
2039
+ const e = wt(), t = R(!1), n = w(() => e.value), s = w(() => Lt()), r = w(() => It(n.value)), o = (c) => {
2040
+ St(c), t.value = !1;
2034
2041
  };
2035
- return (c, h) => {
2042
+ return (c, p) => {
2036
2043
  const i = L("el-icon"), m = L("el-popover");
2037
2044
  return l(), k(m, {
2038
2045
  visible: t.value,
2039
- "onUpdate:visible": h[0] || (h[0] = (p) => t.value = p),
2046
+ "onUpdate:visible": p[0] || (p[0] = (h) => t.value = h),
2040
2047
  placement: "bottom",
2041
2048
  width: 280,
2042
2049
  trigger: "hover",
2043
2050
  "popper-class": "top-timezone-popover"
2044
2051
  }, {
2045
2052
  reference: _(() => [
2046
- A($, {
2053
+ A(te, {
2047
2054
  tag: "div",
2048
2055
  class: "timezone-select",
2049
2056
  "icon-only": !a.showLabel,
2050
- title: o.value,
2051
- "aria-label": o.value
2057
+ title: r.value,
2058
+ "aria-label": r.value
2052
2059
  }, {
2053
2060
  default: _(() => [
2054
2061
  A(i, null, {
@@ -2073,16 +2080,16 @@ const nt = (a, e) => a.reduce(
2073
2080
  ]),
2074
2081
  default: _(() => [
2075
2082
  d("div", Wn, [
2076
- (l(!0), v(J, null, H(s.value, (p) => (l(), v("button", {
2077
- key: p.value,
2083
+ (l(!0), v(K, null, H(s.value, (h) => (l(), v("button", {
2084
+ key: h.value,
2078
2085
  type: "button",
2079
2086
  class: F(["timezone-select__option", {
2080
- "timezone-select__option--active": p.value === n.value
2087
+ "timezone-select__option--active": h.value === n.value
2081
2088
  }]),
2082
- onClick: (f) => r(p.value)
2089
+ onClick: (f) => o(h.value)
2083
2090
  }, [
2084
- d("span", Gn, E(p.value), 1),
2085
- d("span", Vn, E(p.offset), 1)
2091
+ d("span", Gn, E(h.value), 1),
2092
+ d("span", Vn, E(h.offset), 1)
2086
2093
  ], 10, Xn))), 128))
2087
2094
  ])
2088
2095
  ]),
@@ -2093,27 +2100,27 @@ const nt = (a, e) => a.reduce(
2093
2100
  }), qa = /* @__PURE__ */ B($n, [["__scopeId", "data-v-e62f5f2d"]]), ea = { class: "user-info__panel" }, ta = { class: "user-info__profile" }, na = { class: "user-info__profile-main" }, aa = ["title"], oa = ["title"], sa = { class: "user-info__meta" }, ra = { class: "user-info__meta-label" }, la = ["title"], ia = ["href"], ca = /* @__PURE__ */ D({
2094
2101
  __name: "UserInfo",
2095
2102
  setup(a) {
2096
- const { t: e } = me.global, t = Q(), n = S(() => t.value.user || {}), s = S(() => t.value.accountMenu || []), o = S(
2103
+ const { t: e } = he.global, t = Q(), n = w(() => t.value.user || {}), s = w(() => t.value.accountMenu || []), r = w(
2097
2104
  () => {
2098
- var h, i, m, p;
2099
- return ((h = n.value) == null ? void 0 : h.name) || ((i = n.value) == null ? void 0 : i.username) || ((m = n.value) == null ? void 0 : m.email) || ((p = n.value) == null ? void 0 : p.userId) || "User";
2105
+ var p, i, m, h;
2106
+ return ((p = n.value) == null ? void 0 : p.name) || ((i = n.value) == null ? void 0 : i.username) || ((m = n.value) == null ? void 0 : m.email) || ((h = n.value) == null ? void 0 : h.userId) || "User";
2100
2107
  }
2101
- ), r = S(
2108
+ ), o = w(
2102
2109
  () => {
2103
- var h, i, m;
2110
+ var p, i, m;
2104
2111
  return [
2105
- { label: e("admin.label.userName"), value: (h = n.value) == null ? void 0 : h.username },
2112
+ { label: e("admin.label.userName"), value: (p = n.value) == null ? void 0 : p.username },
2106
2113
  { label: e("admin.label.email"), value: (i = n.value) == null ? void 0 : i.email },
2107
2114
  { label: e("admin.label.userId"), value: (m = n.value) == null ? void 0 : m.userId }
2108
- ].filter((p) => !!p.value);
2115
+ ].filter((h) => !!h.value);
2109
2116
  }
2110
2117
  ), c = () => {
2111
- var h, i;
2112
- Promise.resolve((i = (h = t.value).onLogout) == null ? void 0 : i.call(h)).finally(() => {
2113
- t.value.onLogout || pe(t.value);
2118
+ var p, i;
2119
+ Promise.resolve((i = (p = t.value).onLogout) == null ? void 0 : i.call(p)).finally(() => {
2120
+ t.value.onLogout || me(t.value);
2114
2121
  });
2115
2122
  };
2116
- return (h, i) => {
2123
+ return (p, i) => {
2117
2124
  const m = L("el-popover");
2118
2125
  return l(), k(m, {
2119
2126
  width: 280,
@@ -2121,28 +2128,28 @@ const nt = (a, e) => a.reduce(
2121
2128
  "popper-class": "top-userinfo-popover"
2122
2129
  }, {
2123
2130
  reference: _(() => [
2124
- A(g(Ue), {
2131
+ A(g(Re), {
2125
2132
  class: "user-info__trigger ml-2",
2126
2133
  src: n.value.avatar,
2127
- name: o.value
2134
+ name: r.value
2128
2135
  }, null, 8, ["src", "name"])
2129
2136
  ]),
2130
2137
  default: _(() => {
2131
- var p;
2138
+ var h;
2132
2139
  return [
2133
2140
  d("div", ea, [
2134
2141
  d("div", ta, [
2135
- A(g(Ue), {
2142
+ A(g(Re), {
2136
2143
  class: "user-info__profile-avatar",
2137
2144
  src: n.value.avatar,
2138
- name: o.value
2145
+ name: r.value
2139
2146
  }, null, 8, ["src", "name"]),
2140
2147
  d("div", na, [
2141
2148
  d("div", {
2142
2149
  class: "user-info__display-name",
2143
- title: o.value
2144
- }, E(o.value), 9, aa),
2145
- (p = n.value) != null && p.username ? (l(), v("div", {
2150
+ title: r.value
2151
+ }, E(r.value), 9, aa),
2152
+ (h = n.value) != null && h.username ? (l(), v("div", {
2146
2153
  key: 0,
2147
2154
  class: "user-info__username",
2148
2155
  title: n.value.username
@@ -2150,7 +2157,7 @@ const nt = (a, e) => a.reduce(
2150
2157
  ])
2151
2158
  ]),
2152
2159
  d("div", sa, [
2153
- (l(!0), v(J, null, H(r.value, (f) => (l(), v("div", {
2160
+ (l(!0), v(K, null, H(o.value, (f) => (l(), v("div", {
2154
2161
  key: f.label,
2155
2162
  class: "user-info__meta-row"
2156
2163
  }, [
@@ -2162,17 +2169,17 @@ const nt = (a, e) => a.reduce(
2162
2169
  ]))), 128))
2163
2170
  ]),
2164
2171
  i[1] || (i[1] = d("div", { class: "user-info__divider" }, null, -1)),
2165
- (l(!0), v(J, null, H(s.value, (f, y) => {
2172
+ (l(!0), v(K, null, H(s.value, (f, y) => {
2166
2173
  var C, T;
2167
2174
  return l(), v("a", {
2168
2175
  key: y,
2169
2176
  href: f.path,
2170
2177
  class: "user-info__item"
2171
2178
  }, [
2172
- A($e, {
2179
+ A(et, {
2173
2180
  icon: f.icon || ((C = f.meta) == null ? void 0 : C.icon)
2174
2181
  }, null, 8, ["icon"]),
2175
- d("span", null, E(g(oe)(((T = f.meta) == null ? void 0 : T.translations) || {}, "name", f.name)), 1)
2182
+ d("span", null, E(g(le)(((T = f.meta) == null ? void 0 : T.translations) || {}, "name", f.name)), 1)
2176
2183
  ], 8, ia);
2177
2184
  }), 128)),
2178
2185
  i[2] || (i[2] = d("div", { class: "user-info__divider" }, null, -1)),
@@ -2193,24 +2200,24 @@ const nt = (a, e) => a.reduce(
2193
2200
  }), ua = /* @__PURE__ */ B(ca, [["__scopeId", "data-v-ac052463"]]), da = { class: "header-right" }, pa = ["href"], ma = /* @__PURE__ */ D({
2194
2201
  __name: "SHeaderRight",
2195
2202
  setup(a) {
2196
- const { t: e } = me.global, t = Q(), n = S(() => t.value.hideDoc ?? !1), s = S(() => Ge(t.value)), o = S(() => t.value.user), r = S(() => {
2203
+ const { t: e } = he.global, t = Q(), n = w(() => t.value.hideDoc ?? !1), s = w(() => Ve(t.value)), r = w(() => t.value.user), o = w(() => {
2197
2204
  var i, m;
2198
- return !!((i = o.value) != null && i.id || (m = o.value) != null && m.userId);
2205
+ return !!((i = r.value) != null && i.id || (m = r.value) != null && m.userId);
2199
2206
  }), c = (i) => {
2200
2207
  t.value.onLogin && (i.preventDefault(), t.value.onLogin());
2201
- }, h = S(() => t.value.docsPath || "");
2208
+ }, p = w(() => t.value.docsPath || "");
2202
2209
  return (i, m) => {
2203
- const p = L("el-icon");
2210
+ const h = L("el-icon");
2204
2211
  return l(), v("div", da, [
2205
- !n.value && h.value ? (l(), k($, {
2212
+ !n.value && p.value ? (l(), k(te, {
2206
2213
  key: 0,
2207
2214
  tag: "a",
2208
2215
  class: "whitespace-nowrap",
2209
- href: h.value,
2216
+ href: p.value,
2210
2217
  target: "_blank"
2211
2218
  }, {
2212
2219
  default: _(() => [
2213
- A(p, null, {
2220
+ A(h, null, {
2214
2221
  default: _(() => [...m[0] || (m[0] = [
2215
2222
  d("svg", {
2216
2223
  xmlns: "http://www.w3.org/2000/svg",
@@ -2235,9 +2242,9 @@ const nt = (a, e) => a.reduce(
2235
2242
  ]),
2236
2243
  _: 1
2237
2244
  }, 8, ["href"])) : I("", !0),
2245
+ A(st),
2238
2246
  A(ot),
2239
- A(at),
2240
- r.value ? (l(), k(ua, { key: 1 })) : (l(), v("a", {
2247
+ o.value ? (l(), k(ua, { key: 1 })) : (l(), v("a", {
2241
2248
  key: 2,
2242
2249
  class: "header-right__login",
2243
2250
  href: s.value,
@@ -2260,20 +2267,20 @@ const nt = (a, e) => a.reduce(
2260
2267
  }, Aa = { class: "header-bar__right" }, _a = /* @__PURE__ */ D({
2261
2268
  __name: "HeaderBar",
2262
2269
  setup(a) {
2263
- const e = Q(), { isMobile: t } = z(), n = S(
2270
+ const e = Q(), { isMobile: t } = z(), n = w(
2264
2271
  () => {
2265
- var s, o;
2266
- return !!((s = e.value.user) != null && s.id || (o = e.value.user) != null && o.userId);
2272
+ var s, r;
2273
+ return !!((s = e.value.user) != null && s.id || (r = e.value.user) != null && r.userId);
2267
2274
  }
2268
2275
  );
2269
- return (s, o) => {
2270
- const r = L("el-image");
2276
+ return (s, r) => {
2277
+ const o = L("el-image");
2271
2278
  return l(), v("div", ga, [
2272
2279
  d("div", fa, [
2273
2280
  g(t) ? (l(), k(Kn, { key: 0 })) : I("", !0),
2274
2281
  d("div", va, [
2275
2282
  d("a", ya, [
2276
- A(r, {
2283
+ A(o, {
2277
2284
  src: g(e).logo,
2278
2285
  class: "h-7"
2279
2286
  }, null, 8, ["src"])
@@ -2283,38 +2290,38 @@ const nt = (a, e) => a.reduce(
2283
2290
  n.value && !g(t) ? (l(), k(an, { key: 2 })) : I("", !0)
2284
2291
  ]),
2285
2292
  d("div", Aa, [
2286
- j(s.$slots, "default", {}, void 0, !0),
2293
+ q(s.$slots, "default", {}, void 0, !0),
2287
2294
  g(t) ? I("", !0) : (l(), k(ha, { key: 0 })),
2288
2295
  g(t) ? (l(), k(Nn, { key: 1 })) : I("", !0)
2289
2296
  ])
2290
2297
  ]);
2291
2298
  };
2292
2299
  }
2293
- }), Ca = /* @__PURE__ */ B(_a, [["__scopeId", "data-v-0ce1ab70"]]), Sa = {
2300
+ }), Ca = /* @__PURE__ */ B(_a, [["__scopeId", "data-v-0ce1ab70"]]), wa = {
2294
2301
  key: 0,
2295
2302
  class: "min-w-0 flex-1"
2296
- }, wa = /* @__PURE__ */ D({
2303
+ }, Sa = /* @__PURE__ */ D({
2297
2304
  __name: "AppSelectMobile",
2298
2305
  setup(a) {
2299
- const { currentAppId: e } = z(), { appList: t, getAppPath: n, findAppById: s } = tt(), o = S(() => {
2306
+ const { currentAppId: e } = z(), { appList: t, getAppPath: n, findAppById: s } = nt(), r = w(() => {
2300
2307
  const c = s(e.value);
2301
2308
  return c ? n(c) : "";
2302
- }), r = (c) => {
2309
+ }), o = (c) => {
2303
2310
  c && (location.href = c);
2304
2311
  };
2305
- return (c, h) => {
2312
+ return (c, p) => {
2306
2313
  var f;
2307
- const i = L("el-option"), m = L("el-option-group"), p = L("el-select");
2308
- return (f = g(t)) != null && f.length ? (l(), v("div", Sa, [
2309
- A(p, {
2310
- "model-value": o.value,
2314
+ const i = L("el-option"), m = L("el-option-group"), h = L("el-select");
2315
+ return (f = g(t)) != null && f.length ? (l(), v("div", wa, [
2316
+ A(h, {
2317
+ "model-value": r.value,
2311
2318
  class: "w-full",
2312
- onChange: r
2319
+ onChange: o
2313
2320
  }, {
2314
2321
  default: _(() => [
2315
- (l(!0), v(J, null, H(g(t), (y) => {
2322
+ (l(!0), v(K, null, H(g(t), (y) => {
2316
2323
  var C;
2317
- return l(), v(J, {
2324
+ return l(), v(K, {
2318
2325
  key: y.appId
2319
2326
  }, [
2320
2327
  (C = y.children) != null && C.length ? (l(), k(m, {
@@ -2322,7 +2329,7 @@ const nt = (a, e) => a.reduce(
2322
2329
  label: y.name
2323
2330
  }, {
2324
2331
  default: _(() => [
2325
- (l(!0), v(J, null, H(y.children, (T) => (l(), k(i, {
2332
+ (l(!0), v(K, null, H(y.children, (T) => (l(), k(i, {
2326
2333
  key: T.appId,
2327
2334
  label: T.name,
2328
2335
  value: g(n)(T),
@@ -2346,13 +2353,13 @@ const nt = (a, e) => a.reduce(
2346
2353
  }), Pa = { class: "aside-user-mobile" }, Ta = { class: "flex-1" }, ka = { class: "absolute right-4 top-1/2 -translate-y-1/2" }, Ia = { class: "absolute right-4 top-1/2 -translate-y-1/2" }, La = /* @__PURE__ */ D({
2347
2354
  __name: "AsideUserMobile",
2348
2355
  setup(a) {
2349
- const e = Q(), t = S(() => e.value.user || {}), n = S(() => !!(t.value.id || t.value.userId)), s = S(() => t.value.name || t.value.username), o = () => {
2350
- var r, c;
2351
- (c = (r = e.value).onLogin) != null && c.call(r) || pe(e.value);
2356
+ const e = Q(), t = w(() => e.value.user || {}), n = w(() => !!(t.value.id || t.value.userId)), s = w(() => t.value.name || t.value.username), r = () => {
2357
+ var o, c;
2358
+ (c = (o = e.value).onLogin) != null && c.call(o) || me(e.value);
2352
2359
  };
2353
- return (r, c) => {
2354
- const h = L("el-icon");
2355
- return n.value ? (l(), k(st, { key: 0 }, {
2360
+ return (o, c) => {
2361
+ const p = L("el-icon");
2362
+ return n.value ? (l(), k(rt, { key: 0 }, {
2356
2363
  reference: _(() => [
2357
2364
  d("div", Pa, [
2358
2365
  c[0] || (c[0] = d("div", { class: "aside-user-mobile__icon text-lg" }, [
@@ -2360,9 +2367,9 @@ const nt = (a, e) => a.reduce(
2360
2367
  ], -1)),
2361
2368
  d("div", Ta, E(s.value), 1),
2362
2369
  d("div", ka, [
2363
- A(h, null, {
2370
+ A(p, null, {
2364
2371
  default: _(() => [
2365
- A(g(ye))
2372
+ A(g(be))
2366
2373
  ]),
2367
2374
  _: 1
2368
2375
  })
@@ -2373,16 +2380,16 @@ const nt = (a, e) => a.reduce(
2373
2380
  })) : (l(), v("div", {
2374
2381
  key: 1,
2375
2382
  class: "aside-user-mobile",
2376
- onClick: o
2383
+ onClick: r
2377
2384
  }, [
2378
2385
  c[1] || (c[1] = d("div", { class: "aside-user-mobile__icon text-lg" }, [
2379
2386
  d("i", { class: "metisicon-yonghu1" })
2380
2387
  ], -1)),
2381
2388
  c[2] || (c[2] = d("div", { class: "flex-1" }, "登录/注册", -1)),
2382
2389
  d("div", Ia, [
2383
- A(h, null, {
2390
+ A(p, null, {
2384
2391
  default: _(() => [
2385
- A(g(ye))
2392
+ A(g(be))
2386
2393
  ]),
2387
2394
  _: 1
2388
2395
  })
@@ -2394,8 +2401,8 @@ const nt = (a, e) => a.reduce(
2394
2401
  __name: "AsideBarMobile",
2395
2402
  setup(a) {
2396
2403
  const { menus: e, sideOpen: t } = z(), n = () => void (t.value = !1);
2397
- return (s, o) => {
2398
- const r = L("el-icon"), c = L("el-scrollbar");
2404
+ return (s, r) => {
2405
+ const o = L("el-icon"), c = L("el-scrollbar");
2399
2406
  return g(e).length && !s.$route.meta.hideSidebar ? (l(), v("div", {
2400
2407
  key: 0,
2401
2408
  class: F(["aside-bar-mobile fixed inset-y-0 left-0 z-200 flex min-h-0 flex-col transition-transform", [g(t) ? "translate-x-[0px]" : "translate-x-[-100%]"]])
@@ -2407,24 +2414,24 @@ const nt = (a, e) => a.reduce(
2407
2414
  "aria-label": "Close menu",
2408
2415
  onClick: n
2409
2416
  }, [
2410
- A(r, null, {
2417
+ A(o, null, {
2411
2418
  default: _(() => [
2412
- A(g(Fe))
2419
+ A(g(He))
2413
2420
  ]),
2414
2421
  _: 1
2415
2422
  })
2416
2423
  ]),
2417
- A(wa)
2424
+ A(Sa)
2418
2425
  ]),
2419
2426
  A(c, { ref: "leftScrollRef" }, {
2420
2427
  default: _(() => [
2421
2428
  d("div", Ma, [
2422
- A(et, { menus: g(e) }, null, 8, ["menus"])
2429
+ A(tt, { menus: g(e) }, null, 8, ["menus"])
2423
2430
  ])
2424
2431
  ]),
2425
2432
  _: 1
2426
2433
  }, 512),
2427
- j(s.$slots, "sidebar-foot", {}, void 0, !0),
2434
+ q(s.$slots, "sidebar-foot", {}, void 0, !0),
2428
2435
  A(xa)
2429
2436
  ], 2)) : I("", !0);
2430
2437
  };
@@ -2435,11 +2442,11 @@ const nt = (a, e) => a.reduce(
2435
2442
  setting: {}
2436
2443
  },
2437
2444
  setup(a) {
2438
- const e = a, t = S(() => {
2439
- var p, f, y, C, T, N, U;
2445
+ const e = a, t = w(() => {
2446
+ var h, f, y, C, T, N, U;
2440
2447
  return {
2441
2448
  ...e.setting || {},
2442
- logo: ((p = e.setting) == null ? void 0 : p.logo) || Ba,
2449
+ logo: ((h = e.setting) == null ? void 0 : h.logo) || Ba,
2443
2450
  menus: ((f = e.setting) == null ? void 0 : f.menus) || [],
2444
2451
  accountMenu: ((y = e.setting) == null ? void 0 : y.accountMenu) || [],
2445
2452
  user: ((C = e.setting) == null ? void 0 : C.user) ?? null,
@@ -2448,45 +2455,45 @@ const nt = (a, e) => a.reduce(
2448
2455
  onLogout: (U = e.setting) == null ? void 0 : U.onLogout
2449
2456
  };
2450
2457
  });
2451
- Oe(() => void Bt(t.value));
2458
+ Fe(() => void Bt(t.value));
2452
2459
  const { isMobile: n, sideOpen: s } = z();
2453
- let o = "", r = !1;
2454
- const c = () => void (s.value = !1), h = (p) => {
2455
- const f = p.matched[1];
2456
- if (!f) return p.path;
2457
- const y = i(f, p);
2460
+ let r = "", o = !1;
2461
+ const c = () => void (s.value = !1), p = (h) => {
2462
+ const f = h.matched[1];
2463
+ if (!f) return h.path;
2464
+ const y = i(f, h);
2458
2465
  return [f.path, y].filter(Boolean).join("|");
2459
- }, i = (p, f) => Array.from(
2460
- p.path.matchAll(/:(\w+)/g),
2466
+ }, i = (h, f) => Array.from(
2467
+ h.path.matchAll(/:(\w+)/g),
2461
2468
  ([, C]) => C
2462
2469
  ).map((C) => {
2463
2470
  const T = f.params[C];
2464
2471
  return `${C}:${Array.isArray(T) ? T.join(",") : T || ""}`;
2465
- }).join("|"), m = (p) => {
2466
- p.key === "Escape" && n.value && s.value && c();
2472
+ }).join("|"), m = (h) => {
2473
+ h.key === "Escape" && n.value && s.value && c();
2467
2474
  };
2468
- return ue(
2475
+ return re(
2469
2476
  () => n.value && s.value,
2470
- (p) => {
2477
+ (h) => {
2471
2478
  if (!(typeof document > "u")) {
2472
- if (p && !r) {
2473
- o = document.body.style.overflow, document.body.style.overflow = "hidden", r = !0;
2479
+ if (h && !o) {
2480
+ r = document.body.style.overflow, document.body.style.overflow = "hidden", o = !0;
2474
2481
  return;
2475
2482
  }
2476
- !p && r && (document.body.style.overflow = o, r = !1);
2483
+ !h && o && (document.body.style.overflow = r, o = !1);
2477
2484
  }
2478
2485
  },
2479
2486
  { immediate: !0 }
2480
- ), Re(() => {
2487
+ ), Ke(() => {
2481
2488
  window.addEventListener("keydown", m);
2482
- }), Ke(() => {
2483
- window.removeEventListener("keydown", m), typeof document < "u" && r && (document.body.style.overflow = o);
2484
- }), (p, f) => {
2489
+ }), Je(() => {
2490
+ window.removeEventListener("keydown", m), typeof document < "u" && o && (document.body.style.overflow = r);
2491
+ }), (h, f) => {
2485
2492
  const y = L("router-view");
2486
2493
  return l(), v("div", Ua, [
2487
2494
  A(Ca, null, {
2488
2495
  default: _(() => [
2489
- j(p.$slots, "header-right", {}, void 0, !0)
2496
+ q(h.$slots, "header-right", {}, void 0, !0)
2490
2497
  ]),
2491
2498
  _: 3
2492
2499
  }),
@@ -2496,16 +2503,16 @@ const nt = (a, e) => a.reduce(
2496
2503
  d("div", Ja, [
2497
2504
  A(y, null, {
2498
2505
  default: _(({ Component: C, route: T }) => [
2499
- A(Me, {
2506
+ A(De, {
2500
2507
  name: String(T.meta.transition || "layout-page"),
2501
2508
  mode: "out-in"
2502
2509
  }, {
2503
2510
  default: _(() => [
2504
2511
  (l(), v("div", {
2505
- key: h(T),
2512
+ key: p(T),
2506
2513
  class: "layout-page-view"
2507
2514
  }, [
2508
- (l(), k(Ce(C)))
2515
+ (l(), k(we(C)))
2509
2516
  ]))
2510
2517
  ]),
2511
2518
  _: 2
@@ -2516,7 +2523,7 @@ const nt = (a, e) => a.reduce(
2516
2523
  ])
2517
2524
  ])
2518
2525
  ]),
2519
- A(Me, { name: "layout-overlay" }, {
2526
+ A(De, { name: "layout-overlay" }, {
2520
2527
  default: _(() => [
2521
2528
  g(n) && g(s) ? (l(), v("div", {
2522
2529
  key: 0,
@@ -2532,15 +2539,15 @@ const nt = (a, e) => a.reduce(
2532
2539
  }), Ya = /* @__PURE__ */ B(Oa, [["__scopeId", "data-v-87720a5b"]]);
2533
2540
  export {
2534
2541
  Ya as BaseLayout,
2535
- ot as LanguageSelect,
2542
+ st as LanguageSelect,
2536
2543
  ja as LayoutBreadcrumb,
2537
- at as ThemeToggle,
2544
+ ot as ThemeToggle,
2538
2545
  qa as TimezoneSelect,
2539
- Ue as UserAvatar,
2546
+ Re as UserAvatar,
2540
2547
  ua as UserInfo,
2541
- me as i18n,
2542
- ce as messages,
2543
- tt as useApp,
2548
+ he as i18n,
2549
+ de as messages,
2550
+ nt as useApp,
2544
2551
  Q as useSetting,
2545
- Xe as useTheme
2552
+ Ge as useTheme
2546
2553
  };