mamba-layout 0.25.0 → 0.27.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 mt, readonly as ht, ref as N, computed as S, unref as f, onActivated as gt, onMounted as Re, onUnmounted as Ke, watch as se, defineComponent as M, openBlock as l, createElementBlock as y, normalizeClass as K, resolveComponent as L, Fragment as U, createBlock as k, resolveDynamicComponent as fe, mergeProps as Je, withCtx as C, createCommentVNode as I, createElementVNode as d, toDisplayString as E, renderList as J, withDirectives as ft, vShow as vt, createVNode as _, renderSlot as z, watchEffect as Oe, Transition as Ee } from "vue";
2
- import { Fold as Fe, ArrowDown as ve, Moon as yt, Sunny as bt, Expand as At, User as _t, ArrowLeft as Ct, ArrowRight as he, Clock as St } from "@element-plus/icons-vue";
3
- import { useRouter as He } from "vue-router";
4
- import { createI18n as wt } from "vue-i18n";
5
- function re() {
6
- const n = mt();
1
+ import { getCurrentInstance as dt, readonly as pt, ref as N, computed as S, unref as f, onActivated as mt, onMounted as Ue, onUnmounted as Re, watch as re, provide as ht, defineComponent as M, openBlock as l, createElementBlock as y, normalizeClass as K, resolveComponent as L, Fragment as U, createBlock as k, resolveDynamicComponent as Ae, mergeProps as Ke, withCtx as C, createCommentVNode as I, createElementVNode as d, toDisplayString as E, renderList as J, withDirectives as gt, vShow as ft, createVNode as _, renderSlot as Z, watchEffect as Je, Transition as Ee } from "vue";
2
+ import { Fold as Oe, ArrowDown as _e, Moon as vt, Sunny as yt, Expand as bt, User as At, ArrowLeft as _t, ArrowRight as he, Clock as Ct } from "@element-plus/icons-vue";
3
+ import { useRouter as Fe } from "vue-router";
4
+ import { createI18n as St } from "vue-i18n";
5
+ function ie() {
6
+ const n = dt();
7
7
  return n ? n.appContext.config.globalProperties.$route : null;
8
8
  }
9
- const Pt = 3600 * 24 * 7, ye = "UTC", Qe = "timezone", Tt = [
9
+ const wt = 3600 * 24 * 7, Ce = "UTC", He = "timezone", Pt = [
10
10
  "UTC",
11
11
  "Asia/Shanghai",
12
12
  "Asia/Hong_Kong",
@@ -22,7 +22,7 @@ const Pt = 3600 * 24 * 7, ye = "UTC", Qe = "timezone", Tt = [
22
22
  } catch {
23
23
  return;
24
24
  }
25
- }, G = {
25
+ }, W = {
26
26
  get(n, e = null) {
27
27
  const t = me(), a = t == null ? void 0 : t.getItem(n.toUpperCase());
28
28
  if (!a) return e;
@@ -36,7 +36,7 @@ const Pt = 3600 * 24 * 7, ye = "UTC", Qe = "timezone", Tt = [
36
36
  }
37
37
  return e;
38
38
  },
39
- set(n, e, t = Pt) {
39
+ set(n, e, t = wt) {
40
40
  const a = me(), o = {
41
41
  value: e,
42
42
  expire: t === null ? null : Date.now() + t * 1e3
@@ -47,40 +47,40 @@ const Pt = 3600 * 24 * 7, ye = "UTC", Qe = "timezone", Tt = [
47
47
  var n;
48
48
  (n = me()) == null || n.clear();
49
49
  }
50
- }, kt = (n) => typeof n == "object" && n !== null, De = (n) => {
51
- if (!kt(n) || Object.prototype.toString.call(n) !== "[object Object]") return !1;
50
+ }, Tt = (n) => typeof n == "object" && n !== null, De = (n) => {
51
+ if (!Tt(n) || Object.prototype.toString.call(n) !== "[object Object]") return !1;
52
52
  const e = Object.getPrototypeOf(n);
53
53
  return e === null || e === Object.prototype;
54
54
  };
55
- function ze(n, e) {
55
+ function Qe(n, e) {
56
56
  if (!De(n)) return e;
57
57
  if (!De(e)) return n;
58
58
  const t = n;
59
59
  return Object.keys(e).concat(Object.getOwnPropertySymbols(e)).forEach((a) => {
60
- t[a] = ze(
60
+ t[a] = Qe(
61
61
  t[a],
62
62
  e[a]
63
63
  );
64
64
  }), t;
65
65
  }
66
- function Ze() {
66
+ function ze() {
67
67
  const n = typeof navigator > "u" ? "en-US" : navigator.language;
68
- return String(G.get("locale", n)).includes("zh") ? "zh-CN" : "en-US";
68
+ return String(W.get("locale", n)).includes("zh") ? "zh-CN" : "en-US";
69
69
  }
70
70
  const Ne = (n, e, t) => {
71
71
  var a;
72
72
  return ((a = e == null ? void 0 : e[t]) == null ? void 0 : a[n]) || "";
73
- }, ee = (n, e, t = "") => {
73
+ }, $ = (n, e, t = "") => {
74
74
  const a = n;
75
- return Ne(e, a, Ze()) || t || Ne(e, a, "en-US");
76
- }, oe = (n = "") => n.replace(/【.*】/, ""), je = (n, e, t) => {
75
+ return Ne(e, a, ze()) || t || Ne(e, a, "en-US");
76
+ }, le = (n = "") => n.replace(/【.*】/, ""), Ze = (n, e, t) => {
77
77
  var a, o, s, r, c;
78
78
  for (const g of e) {
79
79
  const i = ((a = g.path) == null ? void 0 : a.replace(/\/:(\w+)/g, "/([^/]+)")) || "", h = new RegExp(`^${i}$`);
80
80
  if (((o = g.path) == null ? void 0 : o.toLowerCase()) === n || h.test(n))
81
81
  return ((s = g.meta) == null ? void 0 : s.visible) === "0" && (t == null ? void 0 : t.path) || "";
82
82
  if ((r = g.children) != null && r.length) {
83
- const v = je(
83
+ const v = Ze(
84
84
  n,
85
85
  g.children,
86
86
  ((c = g.meta) == null ? void 0 : c.visible) === "1" ? g : t
@@ -89,26 +89,26 @@ const Ne = (n, e, t) => {
89
89
  }
90
90
  }
91
91
  return "";
92
- }, It = (n, e) => {
92
+ }, kt = (n, e) => {
93
93
  const t = n.resolve(e);
94
94
  if (!(t != null && t.name)) return !1;
95
95
  const a = String(t.name).split("-").filter((s) => !!s && s !== "index"), o = t.path.split("-").join("/").split("/").filter(Boolean);
96
96
  return a.length === o.length && a.every((s, r) => s === o[r]);
97
- }, te = (n) => typeof n == "string" && qe(n) ? n : "", qe = (n) => {
97
+ }, ne = (n) => typeof n == "string" && je(n) ? n : "", je = (n) => {
98
98
  try {
99
99
  return new Intl.DateTimeFormat("en-US", { timeZone: n }).format(/* @__PURE__ */ new Date()), !0;
100
100
  } catch {
101
101
  return !1;
102
102
  }
103
- }, Ye = () => te(Intl.DateTimeFormat().resolvedOptions().timeZone) || ye, be = N(
104
- te(G.get(Qe)) || Ye()
105
- ), Lt = () => ht(be);
106
- function xt(n) {
107
- const e = te(n);
108
- e && (be.value = e, G.set(Qe, e, null));
103
+ }, qe = () => ne(Intl.DateTimeFormat().resolvedOptions().timeZone) || Ce, Se = N(
104
+ ne(W.get(He)) || qe()
105
+ ), It = () => pt(Se);
106
+ function Lt(n) {
107
+ const e = ne(n);
108
+ e && (Se.value = e, W.set(He, e, null));
109
109
  }
110
- const Et = (n) => {
111
- const e = te(n) || ye, t = Me.get(e);
110
+ const xt = (n) => {
111
+ const e = ne(n) || Ce, t = Me.get(e);
112
112
  if (t) return t;
113
113
  const a = new Intl.DateTimeFormat("en-US", {
114
114
  timeZone: e,
@@ -121,8 +121,8 @@ const Et = (n) => {
121
121
  hourCycle: "h23"
122
122
  });
123
123
  return Me.set(e, a), a;
124
- }, Mt = (n, e) => Et(e).formatToParts(n).reduce((a, o) => (o.type !== "literal" && (a[o.type] = Number(o.value)), a), {}), Dt = (n, e = /* @__PURE__ */ new Date()) => {
125
- const t = te(n) || ye, a = Mt(e, t), o = Date.UTC(
124
+ }, Et = (n, e) => xt(e).formatToParts(n).reduce((a, o) => (o.type !== "literal" && (a[o.type] = Number(o.value)), a), {}), Mt = (n, e = /* @__PURE__ */ new Date()) => {
125
+ const t = ne(n) || Ce, a = Et(e, t), o = Date.UTC(
126
126
  a.year || 0,
127
127
  (a.month || 1) - 1,
128
128
  a.day || 1,
@@ -132,50 +132,50 @@ const Et = (n) => {
132
132
  e.getMilliseconds()
133
133
  );
134
134
  return Math.round((o - e.getTime()) / 6e4);
135
- }, We = (n, e = /* @__PURE__ */ new Date()) => {
136
- const t = Dt(n, e), a = t >= 0 ? "+" : "-", o = Math.abs(t), s = Math.floor(o / 60), r = o % 60;
135
+ }, Ye = (n, e = /* @__PURE__ */ new Date()) => {
136
+ const t = Mt(n, e), a = t >= 0 ? "+" : "-", o = Math.abs(t), s = Math.floor(o / 60), r = o % 60;
137
137
  return `UTC${a}${String(s).padStart(2, "0")}:${String(
138
138
  r
139
139
  ).padStart(2, "0")}`;
140
- }, Nt = (n, e = /* @__PURE__ */ new Date()) => `${n} (${We(n, e)})`, Bt = (n = /* @__PURE__ */ new Date()) => {
140
+ }, Dt = (n, e = /* @__PURE__ */ new Date()) => `${n} (${Ye(n, e)})`, Nt = (n = /* @__PURE__ */ new Date()) => {
141
141
  const e = new Set(
142
- [Ye(), ...Tt, be.value].filter(
143
- qe
142
+ [qe(), ...Pt, Se.value].filter(
143
+ je
144
144
  )
145
145
  );
146
146
  return Array.from(e).map((t) => {
147
- const a = We(t, n);
147
+ const a = Ye(t, n);
148
148
  return {
149
149
  value: t,
150
150
  label: `${t} (${a})`,
151
151
  offset: a
152
152
  };
153
153
  });
154
- }, $ = N("light");
155
- function Xe() {
154
+ }, G = N("light");
155
+ function We() {
156
156
  const n = "theme", e = "(prefers-color-scheme: dark)", t = N(!1);
157
157
  let a = !1;
158
158
  const o = (p) => p === "dark" || p === "light" ? p : null, s = () => typeof window > "u" || typeof window.matchMedia != "function" ? "light" : window.matchMedia(e).matches ? "dark" : "light", r = (p) => {
159
- const b = o(G.get(n, null));
159
+ const b = o(W.get(n, null));
160
160
  return b ? (t.value = !0, b) : p || s();
161
161
  }, c = (p) => {
162
162
  typeof document > "u" || document.documentElement.classList.toggle("dark", p === "dark");
163
163
  }, g = (p) => {
164
164
  const b = r(p);
165
- return $.value = b, c(b), a = !0, b;
165
+ return G.value = b, c(b), a = !0, b;
166
166
  }, i = (p, b) => {
167
- $.value = p, c(p), (b == null ? void 0 : b.persist) !== !1 && (G.set(n, p, null), t.value = !0);
167
+ G.value = p, c(p), (b == null ? void 0 : b.persist) !== !1 && (W.set(n, p, null), t.value = !0);
168
168
  }, h = () => {
169
- i($.value === "dark" ? "light" : "dark");
169
+ i(G.value === "dark" ? "light" : "dark");
170
170
  }, m = (p) => {
171
171
  if (!a) {
172
172
  g(p);
173
173
  return;
174
174
  }
175
175
  !t.value && p && i(p, { persist: !1 });
176
- }, v = S(() => $.value === "dark");
176
+ }, v = S(() => G.value === "dark");
177
177
  return {
178
- theme: $,
178
+ theme: G,
179
179
  isDark: v,
180
180
  initTheme: g,
181
181
  setTheme: i,
@@ -183,35 +183,35 @@ function Xe() {
183
183
  syncThemeFromSetting: m
184
184
  };
185
185
  }
186
- const Ut = () => typeof location > "u" ? "" : location.href, Ge = (n) => (n == null ? void 0 : n.loginPath) || `/login?redirect=${encodeURIComponent(Ut())}`, le = (n) => {
187
- typeof location > "u" || (location.href = Ge(n));
188
- }, Rt = (n) => (n == null ? void 0 : n.userCenterPath) || "/usercenter/home", Kt = (n) => {
186
+ const Bt = () => typeof location > "u" ? "" : location.href, Xe = (n) => (n == null ? void 0 : n.loginPath) || `/login?redirect=${encodeURIComponent(Bt())}`, ce = (n) => {
187
+ typeof location > "u" || (location.href = Xe(n));
188
+ }, Ut = (n) => (n == null ? void 0 : n.userCenterPath) || "/usercenter/home", Rt = (n) => {
189
189
  var s;
190
190
  const e = n.themeColor, t = {};
191
191
  if (e)
192
192
  for (const r in e) {
193
193
  if (!e[r]) continue;
194
194
  const c = "--layout-" + r.replace(/([A-Z])/g, "-$1").toLocaleLowerCase();
195
- t[c] = e[r], r == "colorPrimary" && Jt(e[r]);
195
+ t[c] = e[r], r == "colorPrimary" && Kt(e[r]);
196
196
  }
197
197
  let a = document.getElementById("layout-style");
198
198
  a && ((s = a.parentNode) == null || s.removeChild(a)), a = document.createElement("style"), a.id = "layout-style", document.head.appendChild(a);
199
199
  const o = Object.keys(t).map((r) => r + ":" + t[r]).join(";");
200
200
  a.innerHTML = `html:root{${o}}`;
201
201
  };
202
- function Jt(n) {
202
+ function Kt(n) {
203
203
  var o;
204
204
  let e = document.getElementById("primary-style");
205
205
  if (n == "theme-default" && e) {
206
206
  (o = e.parentNode) == null || o.removeChild(e);
207
207
  return;
208
208
  }
209
- const t = Ot(n);
209
+ const t = Jt(n);
210
210
  e || (e = document.createElement("style"), e.id = "primary-style", document.head.appendChild(e));
211
211
  const a = Object.keys(t).map((s) => s + ":" + t[s]).join(";");
212
212
  e.innerHTML = `html:root{${a}}`;
213
213
  }
214
- function Ot(n) {
214
+ function Jt(n) {
215
215
  var g;
216
216
  const e = ((g = n.match(/\d+/g)) == null ? void 0 : g.map(Number)) || [], [t, a, o] = e, s = `rgb(${t}, ${a}, ${o})`, r = (i) => {
217
217
  const h = i / 100, m = Math.min(255, t + (255 - t) * h), v = Math.min(255, a + (255 - a) * h), p = Math.min(255, o + (255 - o) * h);
@@ -241,21 +241,21 @@ const ge = N({
241
241
  function O() {
242
242
  return ge;
243
243
  }
244
- const Ft = (n) => {
244
+ const Ot = (n) => {
245
245
  const e = O(), t = n && f(n) || {};
246
246
  if (!(e != null && e.value)) return t;
247
- ge.value = ze(e.value, t);
248
- const { syncThemeFromSetting: a } = Xe();
249
- a(), Kt(ge.value);
250
- }, Ht = 1024, Ve = N(), ie = N([]), Y = N(), ne = N(""), W = N(""), Ae = N(""), X = O(), _e = N(!0), Ce = N(!1), Qt = N(), ce = () => {
247
+ ge.value = Qe(e.value, t);
248
+ const { syncThemeFromSetting: a } = We();
249
+ a(), Rt(ge.value);
250
+ }, Ft = 1024, Ge = N(), ae = N([]), z = N(), V = N(""), ee = N(""), fe = N(""), te = O(), ve = N(!0), ye = N(!1), Ht = N(), oe = () => {
251
251
  var n;
252
- return ((n = X.value.menus) == null ? void 0 : n.filter((e) => {
252
+ return ((n = te.value.menus) == null ? void 0 : n.filter((e) => {
253
253
  var t;
254
- return ((t = e.meta) == null ? void 0 : t.appId) == W.value;
254
+ return ((t = e.meta) == null ? void 0 : t.appId) == ee.value;
255
255
  })) || [];
256
- }, $e = (n, e, t = 0, a) => {
256
+ }, Ve = (n, e, t = 0, a) => {
257
257
  var i, h, m, v;
258
- const o = re(), s = a ? [...a] : [], r = [], c = [];
258
+ const o = ie(), s = a ? [...a] : [], r = [], c = [];
259
259
  for (const p in n) {
260
260
  [...s], n[p];
261
261
  const b = ((i = o.meta) == null ? void 0 : i.parent) || o.path, T = ((h = n[p].path) == null ? void 0 : h.replace(/\/:(\w+)/g, "/([^/]+)")) || "", B = new RegExp(`^${T}$`);
@@ -264,71 +264,66 @@ const Ft = (n) => {
264
264
  const g = r.length > 0 ? r : c;
265
265
  if (g.length > 0) {
266
266
  const p = g[0], b = [...s];
267
- b[t] = p.item, Y.value = {
267
+ b[t] = p.item, z.value = {
268
268
  ...p.item,
269
269
  paths: b.slice(0, t + 1)
270
- }, console.log(p.item), W.value = ((m = p.item.meta) == null ? void 0 : m.appId) || "", Ve.value = e;
270
+ }, console.log(p.item), ee.value = ((m = p.item.meta) == null ? void 0 : m.appId) || "", Ge.value = e;
271
271
  }
272
272
  for (const p in n)
273
273
  if (n[p].children && ((v = n[p].children) != null && v.length)) {
274
274
  const b = n[p].children || [], T = [...s];
275
- T[t] = n[p], $e(b, n[p], t + 1, T);
275
+ T[t] = n[p], Ve(b, n[p], t + 1, T);
276
276
  }
277
- Ae.value = o.meta.parentPath || je(
277
+ fe.value = o.meta.parentPath || Ze(
278
278
  o.path.toLowerCase(),
279
- X.value.menus || []
279
+ te.value.menus || []
280
280
  ) || o.path;
281
- }, et = () => {
281
+ }, $e = () => {
282
282
  var a, o, s, r, c, g, i, h, m, v;
283
- console.log(X.value.menus), $e(X.value.menus || []), console.log(W.value), W.value || (W.value = ((s = (o = (a = X.value.menus) == null ? void 0 : a.find((p) => {
283
+ Ve(te.value.menus || []), ee.value || (ee.value = ((s = (o = (a = te.value.menus) == null ? void 0 : a.find((p) => {
284
284
  var b;
285
- return (b = p.path) == null ? void 0 : b.startsWith(ne.value);
285
+ return (b = p.path) == null ? void 0 : b.startsWith(V.value);
286
286
  })) == null ? void 0 : o.meta) == null ? void 0 : s.appId) || "");
287
- const n = ((r = Y.value) == null ? void 0 : r.paths) || [], e = oe(
288
- ee(((g = (c = Y.value) == null ? void 0 : c.meta) == null ? void 0 : g.translations) || {}, "name")
289
- ), t = ((i = Y.value) == null ? void 0 : i.path) == ((h = n[1]) == null ? void 0 : h.path) ? "" : oe(ee(((v = (m = n[1]) == null ? void 0 : m.meta) == null ? void 0 : v.translations) || {}, "name"));
287
+ const n = ((r = z.value) == null ? void 0 : r.paths) || [], e = le(
288
+ $(((g = (c = z.value) == null ? void 0 : c.meta) == null ? void 0 : g.translations) || {}, "name")
289
+ ), t = ((i = z.value) == null ? void 0 : i.path) == ((h = n[1]) == null ? void 0 : h.path) ? "" : le($(((v = (m = n[1]) == null ? void 0 : m.meta) == null ? void 0 : v.translations) || {}, "name"));
290
290
  document.title = e + (t ? ` - ${t}` : "");
291
- }, tt = () => {
292
- const n = re();
293
- ne.value = "/" + (n.path.split("/").filter(Boolean).shift() || ""), et(), ie.value = ce();
294
- }, Se = () => {
295
- const n = window.innerWidth < Ht;
296
- Ce.value = n, _e.value = !n;
291
+ }, Qt = () => {
292
+ const n = ie();
293
+ V.value = "/" + (n.path.split("/").filter(Boolean).shift() || ""), $e(), ae.value = oe();
294
+ }, be = () => {
295
+ const n = window.innerWidth < Ft;
296
+ ye.value = n, ve.value = !n;
297
297
  };
298
- Se();
299
- const Be = re();
300
- tt();
301
- gt(() => {
302
- tt();
303
- });
304
- Re(() => {
305
- window.addEventListener("resize", Se);
306
- });
307
- Ke(() => {
308
- window.removeEventListener("resize", Se);
309
- });
310
- se(
311
- () => ne.value,
312
- () => void (ie.value = ce())
313
- );
314
- se(
315
- () => [Be.path, X.value.menus],
316
- () => {
317
- Ae.value = "", Y.value = void 0, ne.value = "/" + (Be.path.split("/").filter(Boolean).shift() || ""), et(), ie.value = ce(), Ce.value && (_e.value = !1);
318
- }
319
- );
298
+ be();
320
299
  function H() {
321
- return {
322
- menus: ie,
323
- currentEndRoute: Y,
324
- currentTabPath: ne,
325
- currentAppId: W,
326
- defaultParentActive: Ae,
327
- sideOpen: _e,
328
- isMobile: Ce,
329
- getMenus: ce,
330
- currentEndParentRoute: Ve,
331
- leftScrollRef: Qt
300
+ mt(() => {
301
+ Qt();
302
+ }), Ue(() => {
303
+ window.addEventListener("resize", be);
304
+ }), Re(() => {
305
+ window.removeEventListener("resize", be);
306
+ });
307
+ const n = ie();
308
+ return re(
309
+ () => V.value,
310
+ () => void (ae.value = oe())
311
+ ), re(
312
+ () => [n.path, te.value.menus],
313
+ () => {
314
+ fe.value = "", z.value = void 0, V.value = "/" + (n.path.split("/").filter(Boolean).shift() || ""), $e(), ae.value = oe(), ye.value && (ve.value = !1);
315
+ }
316
+ ), ht("currentEndRoute", z), {
317
+ menus: ae,
318
+ currentEndRoute: z,
319
+ currentTabPath: V,
320
+ currentAppId: ee,
321
+ defaultParentActive: fe,
322
+ sideOpen: ve,
323
+ isMobile: ye,
324
+ getMenus: oe,
325
+ currentEndParentRoute: Ge,
326
+ leftScrollRef: Ht
332
327
  };
333
328
  }
334
329
  const zt = { class: "menu-item-icon" }, Zt = ["innerHTML"], jt = /* @__PURE__ */ M({
@@ -354,7 +349,7 @@ const zt = { class: "menu-item-icon" }, Zt = ["innerHTML"], jt = /* @__PURE__ */
354
349
  for (const [a, o] of e)
355
350
  t[a] = o;
356
351
  return t;
357
- }, nt = /* @__PURE__ */ D(jt, [["__scopeId", "data-v-ed060390"]]), qt = { key: 0 }, Yt = /* @__PURE__ */ M({
352
+ }, et = /* @__PURE__ */ D(jt, [["__scopeId", "data-v-ed060390"]]), qt = { key: 0 }, Yt = /* @__PURE__ */ M({
358
353
  __name: "AsideSubMenuItem",
359
354
  props: {
360
355
  menu: {
@@ -375,9 +370,9 @@ const zt = { class: "menu-item-icon" }, Zt = ["innerHTML"], jt = /* @__PURE__ */
375
370
  return ((m = h.meta) == null ? void 0 : m.visible) != "0";
376
371
  });
377
372
  }
378
- ), { defaultParentActive: a, currentTabPath: o } = H(), s = He(), r = S(() => {
373
+ ), { defaultParentActive: a, currentTabPath: o } = H(), s = Fe(), r = S(() => {
379
374
  var i;
380
- return e.level == 1 && !It(s, e.menu.path || "") ? "div" : /^http/.test(e.menu.path || "") || !((i = e.menu.path) != null && i.startsWith(o.value)) ? "a" : "router-link";
375
+ return e.level == 1 && !kt(s, e.menu.path || "") ? "div" : /^http/.test(e.menu.path || "") || !((i = e.menu.path) != null && i.startsWith(o.value)) ? "a" : "router-link";
381
376
  }), c = S(() => {
382
377
  var i;
383
378
  return /^http/.test(e.menu.path || "") || !((i = e.menu.path) != null && i.startsWith(o.value)) ? {
@@ -395,7 +390,7 @@ const zt = { class: "menu-item-icon" }, Zt = ["innerHTML"], jt = /* @__PURE__ */
395
390
  var v, p;
396
391
  const m = L("AsideSubMenuItem", !0);
397
392
  return l(), y(U, null, [
398
- (l(), k(fe(r.value), Je({
393
+ (l(), k(Ae(r.value), Ke({
399
394
  class: ["pt-1 pb-1 pl-3 pr-3 flex items-center gap-2 rounded-md", [
400
395
  e.menu.path == f(a) ? "bg-[var(--ui-sidebar-active-bg,var(--el-fill-color))] text-[var(--ui-sidebar-active-fg)] font-medium" : "text-[var(--ui-sidebar-foreground)]",
401
396
  (v = t.value) != null && v.length ? " h-7" : " h-9.5 cursor-pointer hover:bg-[var(--ui-sidebar-hover-bg)]"
@@ -405,7 +400,7 @@ const zt = { class: "menu-item-icon" }, Zt = ["innerHTML"], jt = /* @__PURE__ */
405
400
  default: C(() => {
406
401
  var b, T, B, F;
407
402
  return [
408
- (b = t.value) != null && b.length ? I("", !0) : (l(), k(nt, {
403
+ (b = t.value) != null && b.length ? I("", !0) : (l(), k(et, {
409
404
  key: 0,
410
405
  icon: g.value,
411
406
  class: K(["text-md", [
@@ -414,7 +409,7 @@ const zt = { class: "menu-item-icon" }, Zt = ["innerHTML"], jt = /* @__PURE__ */
414
409
  }, null, 8, ["icon", "class"])),
415
410
  d("div", {
416
411
  class: K(["truncate", (T = t.value) != null && T.length ? "text-xs text-gray-400" : ""])
417
- }, E(f(oe)(f(ee)(((F = (B = e.menu) == null ? void 0 : B.meta) == null ? void 0 : F.translations) || {}, "name"))), 3)
412
+ }, E(f(le)(f($)(((F = (B = e.menu) == null ? void 0 : B.meta) == null ? void 0 : F.translations) || {}, "name"))), 3)
418
413
  ];
419
414
  }),
420
415
  _: 1
@@ -432,7 +427,7 @@ const zt = { class: "menu-item-icon" }, Zt = ["innerHTML"], jt = /* @__PURE__ */
432
427
  }), Wt = { class: "h-full" }, Xt = {
433
428
  key: 0,
434
429
  class: ""
435
- }, at = /* @__PURE__ */ M({
430
+ }, tt = /* @__PURE__ */ M({
436
431
  __name: "AsideSubMenus",
437
432
  props: {
438
433
  menus: {
@@ -444,7 +439,7 @@ const zt = { class: "menu-item-icon" }, Zt = ["innerHTML"], jt = /* @__PURE__ */
444
439
  const e = n;
445
440
  return (t, a) => {
446
441
  var o;
447
- return ft((l(), y("div", Wt, [
442
+ return gt((l(), y("div", Wt, [
448
443
  (o = e.menus) != null && o.length ? (l(), y("div", Xt, [
449
444
  (l(!0), y(U, null, J(e.menus.filter((s) => {
450
445
  var r;
@@ -455,7 +450,7 @@ const zt = { class: "menu-item-icon" }, Zt = ["innerHTML"], jt = /* @__PURE__ */
455
450
  }, null, 8, ["menu"]))), 128))
456
451
  ])) : I("", !0)
457
452
  ], 512)), [
458
- [vt, e.menus.length]
453
+ [ft, e.menus.length]
459
454
  ]);
460
455
  };
461
456
  }
@@ -482,7 +477,7 @@ const zt = { class: "menu-item-icon" }, Zt = ["innerHTML"], jt = /* @__PURE__ */
482
477
  }, [
483
478
  _(c, null, {
484
479
  default: C(() => [
485
- _(f(Fe))
480
+ _(f(Oe))
486
481
  ]),
487
482
  _: 1
488
483
  })
@@ -491,29 +486,29 @@ const zt = { class: "menu-item-icon" }, Zt = ["innerHTML"], jt = /* @__PURE__ */
491
486
  _(g, { ref: "leftScrollRef" }, {
492
487
  default: C(() => [
493
488
  d("div", Vt, [
494
- _(at, { menus: f(e) }, null, 8, ["menus"])
489
+ _(tt, { menus: f(e) }, null, 8, ["menus"])
495
490
  ])
496
491
  ]),
497
492
  _: 1
498
493
  }, 512),
499
- z(s.$slots, "sidebar-foot", {}, void 0, !0)
494
+ Z(s.$slots, "sidebar-foot", {}, void 0, !0)
500
495
  ], 2)) : I("", !0);
501
496
  };
502
497
  }
503
498
  }), en = /* @__PURE__ */ D($t, [["__scopeId", "data-v-ff960d0f"]]);
504
- function ot() {
499
+ function nt() {
505
500
  const n = O(), e = S(() => n.value.appList || []);
506
501
  return {
507
502
  appList: e,
508
503
  getAppPath: (o) => (o == null ? void 0 : o.path) || "",
509
504
  findAppById: (o) => {
510
505
  if (o)
511
- return st(e.value, o);
506
+ return at(e.value, o);
512
507
  }
513
508
  };
514
509
  }
515
- const st = (n, e) => n.reduce(
516
- (t, a) => t || (a.appId === e ? a : st(a.children || [], e)),
510
+ const at = (n, e) => n.reduce(
511
+ (t, a) => t || (a.appId === e ? a : at(a.children || [], e)),
517
512
  void 0
518
513
  ), tn = {
519
514
  key: 0,
@@ -524,7 +519,7 @@ const st = (n, e) => n.reduce(
524
519
  }, on = ["href"], sn = { class: "app-select__dropdown-icon text-xl" }, rn = { class: "app-select__dropdown-desc" }, ln = /* @__PURE__ */ M({
525
520
  __name: "AppSelect",
526
521
  setup(n) {
527
- const { currentAppId: e } = H(), { appList: t, getAppPath: a } = ot(), o = (s) => {
522
+ const { currentAppId: e } = H(), { appList: t, getAppPath: a } = nt(), o = (s) => {
528
523
  var r;
529
524
  return e.value === s.appId || !!((r = s.children) != null && r.some((c) => c.appId === e.value));
530
525
  };
@@ -547,7 +542,7 @@ const st = (n, e) => n.reduce(
547
542
  d("span", null, E(i.name), 1),
548
543
  (h = i.children) != null && h.length ? (l(), k(c, { key: 0 }, {
549
544
  default: C(() => [
550
- _(f(ve))
545
+ _(f(_e))
551
546
  ]),
552
547
  _: 1
553
548
  })) : I("", !0)
@@ -584,29 +579,29 @@ const st = (n, e) => n.reduce(
584
579
  iconOnly: { type: Boolean, default: !0 }
585
580
  },
586
581
  setup(n) {
587
- return (e, t) => (l(), k(fe(n.tag), {
582
+ return (e, t) => (l(), k(Ae(n.tag), {
588
583
  type: n.tag === "button" ? n.type : void 0,
589
584
  class: K(["nav-icon-btn", { "nav-icon-btn--icon-only": n.iconOnly }])
590
585
  }, {
591
586
  default: C(() => [
592
- z(e.$slots, "default", {}, void 0, !0)
587
+ Z(e.$slots, "default", {}, void 0, !0)
593
588
  ]),
594
589
  _: 3
595
590
  }, 8, ["type", "class"]));
596
591
  }
597
- }), V = /* @__PURE__ */ D(un, [["__scopeId", "data-v-824bbddc"]]), dn = /* @__PURE__ */ M({
592
+ }), X = /* @__PURE__ */ D(un, [["__scopeId", "data-v-824bbddc"]]), dn = /* @__PURE__ */ M({
598
593
  __name: "ThemeToggle",
599
594
  setup(n) {
600
- const e = O(), { theme: t, isDark: a, toggleTheme: o } = Xe();
601
- return Oe(() => {
595
+ const e = O(), { theme: t, isDark: a, toggleTheme: o } = We();
596
+ return Je(() => {
602
597
  e.value.theme = t.value;
603
598
  }), (s, r) => {
604
599
  const c = L("el-icon");
605
- return l(), k(V, { onClick: f(o) }, {
600
+ return l(), k(X, { onClick: f(o) }, {
606
601
  default: C(() => [
607
602
  _(c, null, {
608
603
  default: C(() => [
609
- f(a) ? (l(), k(f(bt), { key: 1 })) : (l(), k(f(yt), { key: 0 }))
604
+ f(a) ? (l(), k(f(yt), { key: 1 })) : (l(), k(f(vt), { key: 0 }))
610
605
  ]),
611
606
  _: 1
612
607
  })
@@ -615,7 +610,7 @@ const st = (n, e) => n.reduce(
615
610
  }, 8, ["onClick"]);
616
611
  };
617
612
  }
618
- }), rt = /* @__PURE__ */ D(dn, [["__scopeId", "data-v-e6ea60b7"]]), pn = {
613
+ }), ot = /* @__PURE__ */ D(dn, [["__scopeId", "data-v-e6ea60b7"]]), pn = {
619
614
  label: {
620
615
  clickToChangeImage: "Click to change image"
621
616
  },
@@ -1583,13 +1578,13 @@ const st = (n, e) => n.reduce(
1583
1578
  filterBox: Tn,
1584
1579
  password: In,
1585
1580
  instanceForm: kn
1586
- }, ae = {
1581
+ }, se = {
1587
1582
  "en-US": An,
1588
1583
  "zh-CN": Ln
1589
- }, ue = wt({
1590
- locale: Ze(),
1584
+ }, ue = St({
1585
+ locale: ze(),
1591
1586
  fallbackLocale: "en-US",
1592
- messages: ae,
1587
+ messages: se,
1593
1588
  legacy: !1
1594
1589
  }), xn = {
1595
1590
  key: 0,
@@ -1601,12 +1596,12 @@ const st = (n, e) => n.reduce(
1601
1596
  },
1602
1597
  setup(n) {
1603
1598
  const { locale: e } = ue.global, t = S(
1604
- () => ae[e.value].name
1605
- ), a = Object.keys(ae).map((s) => ({
1606
- label: ae[s].name,
1599
+ () => se[e.value].name
1600
+ ), a = Object.keys(se).map((s) => ({
1601
+ label: se[s].name,
1607
1602
  value: s
1608
1603
  })), o = (s) => {
1609
- G.set("locale", s), location.reload();
1604
+ W.set("locale", s), location.reload();
1610
1605
  };
1611
1606
  return (s, r) => {
1612
1607
  const c = L("el-icon"), g = L("el-popover");
@@ -1617,7 +1612,7 @@ const st = (n, e) => n.reduce(
1617
1612
  "popper-class": "top-language-popover"
1618
1613
  }, {
1619
1614
  reference: C(() => [
1620
- _(V, {
1615
+ _(X, {
1621
1616
  "langselect-toggle": "",
1622
1617
  tag: "div",
1623
1618
  class: "language-select",
@@ -1626,7 +1621,7 @@ const st = (n, e) => n.reduce(
1626
1621
  "aria-label": t.value
1627
1622
  }, {
1628
1623
  default: C(() => [
1629
- z(s.$slots, "prefix", {}, void 0, !0),
1624
+ Z(s.$slots, "prefix", {}, void 0, !0),
1630
1625
  _(c, null, {
1631
1626
  default: C(() => [...r[0] || (r[0] = [
1632
1627
  d("svg", {
@@ -1660,7 +1655,7 @@ const st = (n, e) => n.reduce(
1660
1655
  class: "language-select__caret"
1661
1656
  }, {
1662
1657
  default: C(() => [
1663
- _(f(ve))
1658
+ _(f(_e))
1664
1659
  ]),
1665
1660
  _: 1
1666
1661
  })) : I("", !0)
@@ -1681,13 +1676,13 @@ const st = (n, e) => n.reduce(
1681
1676
  });
1682
1677
  };
1683
1678
  }
1684
- }), lt = /* @__PURE__ */ D(Dn, [["__scopeId", "data-v-48306ad1"]]), Nn = { class: "mobile-user-popover" }, Bn = ["href"], Un = /* @__PURE__ */ M({
1679
+ }), st = /* @__PURE__ */ D(Dn, [["__scopeId", "data-v-48306ad1"]]), Nn = { class: "mobile-user-popover" }, Bn = ["href"], Un = /* @__PURE__ */ M({
1685
1680
  __name: "AsideUserMobilePopover",
1686
1681
  setup(n) {
1687
- const { t: e } = ue.global, t = O(), a = S(() => Rt(t.value)), o = () => {
1682
+ const { t: e } = ue.global, t = O(), a = S(() => Ut(t.value)), o = () => {
1688
1683
  var s, r;
1689
1684
  Promise.resolve((r = (s = t.value).onLogout) == null ? void 0 : r.call(s)).finally(() => {
1690
- t.value.onLogout || le(t.value);
1685
+ t.value.onLogout || ce(t.value);
1691
1686
  });
1692
1687
  };
1693
1688
  return (s, r) => {
@@ -1698,7 +1693,7 @@ const st = (n, e) => n.reduce(
1698
1693
  "popper-class": "top-userinfo-popover"
1699
1694
  }, {
1700
1695
  reference: C(() => [
1701
- z(s.$slots, "reference", {}, void 0, !0)
1696
+ Z(s.$slots, "reference", {}, void 0, !0)
1702
1697
  ]),
1703
1698
  default: C(() => [
1704
1699
  d("div", Nn, [
@@ -1709,7 +1704,7 @@ const st = (n, e) => n.reduce(
1709
1704
  r[0] || (r[0] = d("i", { class: "metisicon-yonghu1" }, null, -1)),
1710
1705
  d("span", null, E(f(e)("admin.label.profile")), 1)
1711
1706
  ], 8, Bn),
1712
- _(lt),
1707
+ _(st),
1713
1708
  r[2] || (r[2] = d("div", { class: "mobile-user-popover__divider" }, null, -1)),
1714
1709
  d("div", {
1715
1710
  class: "mobile-user-popover__item mobile-user-popover__item--danger",
@@ -1724,7 +1719,7 @@ const st = (n, e) => n.reduce(
1724
1719
  });
1725
1720
  };
1726
1721
  }
1727
- }), it = /* @__PURE__ */ D(Un, [["__scopeId", "data-v-87e082b1"]]), Rn = { class: "header-right-mobile" }, Kn = /* @__PURE__ */ M({
1722
+ }), rt = /* @__PURE__ */ D(Un, [["__scopeId", "data-v-87e082b1"]]), Rn = { class: "header-right-mobile" }, Kn = /* @__PURE__ */ M({
1728
1723
  __name: "HeaderRightMobile",
1729
1724
  setup(n) {
1730
1725
  const e = O(), t = S(
@@ -1734,13 +1729,13 @@ const st = (n, e) => n.reduce(
1734
1729
  }
1735
1730
  ), a = () => {
1736
1731
  var o, s;
1737
- (s = (o = e.value).onLogin) != null && s.call(o) || le(e.value);
1732
+ (s = (o = e.value).onLogin) != null && s.call(o) || ce(e.value);
1738
1733
  };
1739
1734
  return (o, s) => (l(), y("div", Rn, [
1740
- _(rt),
1741
- t.value ? (l(), k(it, { key: 0 }, {
1735
+ _(ot),
1736
+ t.value ? (l(), k(rt, { key: 0 }, {
1742
1737
  reference: C(() => [
1743
- _(V, { class: "header-right-mobile__action" }, {
1738
+ _(X, { class: "header-right-mobile__action" }, {
1744
1739
  default: C(() => [...s[0] || (s[0] = [
1745
1740
  d("i", { class: "metisicon-yonghu1" }, null, -1)
1746
1741
  ])]),
@@ -1748,7 +1743,7 @@ const st = (n, e) => n.reduce(
1748
1743
  })
1749
1744
  ]),
1750
1745
  _: 1
1751
- })) : (l(), k(V, {
1746
+ })) : (l(), k(X, {
1752
1747
  key: 1,
1753
1748
  class: "header-right-mobile__action",
1754
1749
  onClick: a
@@ -1778,7 +1773,7 @@ const st = (n, e) => n.reduce(
1778
1773
  d("div", Fn, [
1779
1774
  _(s, null, {
1780
1775
  default: C(() => [
1781
- _(f(At))
1776
+ _(f(bt))
1782
1777
  ]),
1783
1778
  _: 1
1784
1779
  })
@@ -1807,7 +1802,7 @@ const st = (n, e) => n.reduce(
1807
1802
  ), h = S(
1808
1803
  () => r.value && !t.value ? r.value : void 0
1809
1804
  );
1810
- se(
1805
+ re(
1811
1806
  () => e.src,
1812
1807
  () => {
1813
1808
  t.value = !1;
@@ -1818,7 +1813,7 @@ const st = (n, e) => n.reduce(
1818
1813
  };
1819
1814
  return (v, p) => {
1820
1815
  const b = L("el-icon"), T = L("el-avatar");
1821
- return l(), k(T, Je(v.$attrs, {
1816
+ return l(), k(T, Ke(v.$attrs, {
1822
1817
  src: h.value,
1823
1818
  "data-src": h.value,
1824
1819
  alt: s.value,
@@ -1832,7 +1827,7 @@ const st = (n, e) => n.reduce(
1832
1827
  "aria-hidden": "true"
1833
1828
  }, {
1834
1829
  default: C(() => [
1835
- _(f(_t))
1830
+ _(f(At))
1836
1831
  ]),
1837
1832
  _: 1
1838
1833
  })) : I("", !0)
@@ -1841,7 +1836,7 @@ const st = (n, e) => n.reduce(
1841
1836
  }, 16, ["src", "data-src", "alt", "class"]);
1842
1837
  };
1843
1838
  }
1844
- }), Ue = /* @__PURE__ */ D(Zn, [["__scopeId", "data-v-50be58a7"]]), jn = {
1839
+ }), Be = /* @__PURE__ */ D(Zn, [["__scopeId", "data-v-50be58a7"]]), jn = {
1845
1840
  key: 0,
1846
1841
  class: "layout-breadcrumb text-xs",
1847
1842
  "aria-label": "Breadcrumb"
@@ -1864,10 +1859,10 @@ const st = (n, e) => n.reduce(
1864
1859
  backLabel: { default: "返回" }
1865
1860
  },
1866
1861
  setup(n) {
1867
- const e = n, t = re(), a = He(), o = O(), s = H(), r = S(() => {
1862
+ const e = n, t = ie(), a = Fe(), o = O(), s = H(), r = S(() => {
1868
1863
  var Pe, Te, ke, Ie, Le, xe;
1869
1864
  if ((Pe = e.items) != null && Pe.length)
1870
- return e.items.filter((q) => q.title);
1865
+ return e.items.filter((Y) => Y.title);
1871
1866
  const u = T(t.path), A = T(
1872
1867
  ((Te = t.meta) == null ? void 0 : Te.parent) || ((ke = t.meta) == null ? void 0 : ke.parentPath) || t.path
1873
1868
  ), w = c(), P = (Le = (Ie = s == null ? void 0 : s.currentEndRoute) == null ? void 0 : Ie.value) == null ? void 0 : Le.paths, x = g(P || []);
@@ -1876,19 +1871,19 @@ const st = (n, e) => n.reduce(
1876
1871
  e.parentPath || ((xe = t.meta) == null ? void 0 : xe.parentPath) || ""
1877
1872
  );
1878
1873
  if (!R.length && pe && (R = v(w, pe)), !R.length) {
1879
- const q = pe || p(u, w);
1880
- R = q ? v(w, q) : [];
1874
+ const Y = pe || p(u, w);
1875
+ R = Y ? v(w, Y) : [];
1881
1876
  }
1882
- const Z = R.map(i).filter((q) => q.title), Q = Z[Z.length - 1], j = m();
1883
- return e.showCurrent && j && B(Q == null ? void 0 : Q.path) !== B(u) ? Z.push({
1884
- title: j,
1877
+ const j = R.map(i).filter((Y) => Y.title), Q = j[j.length - 1], q = m();
1878
+ return e.showCurrent && q && B(Q == null ? void 0 : Q.path) !== B(u) ? j.push({
1879
+ title: q,
1885
1880
  path: u,
1886
1881
  disabled: !0
1887
- }) : j && Q && B(Q.path) === B(u) && (Q.title = j, Q.disabled = !0), !Z.length && j && Z.push({
1888
- title: j,
1882
+ }) : q && Q && B(Q.path) === B(u) && (Q.title = q, Q.disabled = !0), !j.length && q && j.push({
1883
+ title: q,
1889
1884
  path: u,
1890
1885
  disabled: !0
1891
- }), Z;
1886
+ }), j;
1892
1887
  }), c = () => {
1893
1888
  const u = [], A = /* @__PURE__ */ new Set();
1894
1889
  return (o.value.menus || []).forEach((w) => {
@@ -1909,7 +1904,7 @@ const st = (n, e) => n.reduce(
1909
1904
  };
1910
1905
  }, h = (u) => {
1911
1906
  var w;
1912
- return ((w = u == null ? void 0 : u.meta) != null && w.translations ? oe(ee(u.meta.translations, "name", u.name)) : "") || (u == null ? void 0 : u.title) || (u == null ? void 0 : u.name) || "";
1907
+ return ((w = u == null ? void 0 : u.meta) != null && w.translations ? le($(u.meta.translations, "name", u.name)) : "") || (u == null ? void 0 : u.title) || (u == null ? void 0 : u.name) || "";
1913
1908
  }, m = () => {
1914
1909
  var u;
1915
1910
  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 || "");
@@ -1936,13 +1931,13 @@ const st = (n, e) => n.reduce(
1936
1931
  if (w === P) return !0;
1937
1932
  const x = w.replace(/\/:(\w+)/g, "/([^/]+)");
1938
1933
  return new RegExp(`^${x}$`, "i").test(P);
1939
- }, T = (u = "") => u ? u.split("?")[0].split("#")[0] : "", B = (u = "") => (T(u).replace(/\/+$/, "") || "/").toLowerCase(), F = (u) => /^https?:\/\//.test(u.path || ""), ct = (u) => {
1934
+ }, T = (u = "") => u ? u.split("?")[0].split("#")[0] : "", B = (u = "") => (T(u).replace(/\/+$/, "") || "/").toLowerCase(), F = (u) => /^https?:\/\//.test(u.path || ""), lt = (u) => {
1940
1935
  var A;
1941
1936
  return !!((A = u.children) != null && A.some((w) => !w.disabled));
1942
- }, we = (u, A) => u.disabled || A === r.value.length - 1 || !u.path ? !1 : F(u) || !ct(u), ut = (u) => {
1937
+ }, we = (u, A) => u.disabled || A === r.value.length - 1 || !u.path ? !1 : F(u) || !lt(u), it = (u) => {
1943
1938
  const A = u.to || de(u);
1944
1939
  A && a.push(A);
1945
- }, dt = () => {
1940
+ }, ct = () => {
1946
1941
  var A;
1947
1942
  if (e.backTo) {
1948
1943
  a.push(e.backTo);
@@ -1952,9 +1947,9 @@ const st = (n, e) => n.reduce(
1952
1947
  a.back();
1953
1948
  return;
1954
1949
  }
1955
- const u = pt();
1950
+ const u = ut();
1956
1951
  u && a.push(u);
1957
- }, pt = () => {
1952
+ }, ut = () => {
1958
1953
  var w, P;
1959
1954
  const u = e.parentPath || ((w = t.meta) == null ? void 0 : w.parentPath) || ((P = t.meta) == null ? void 0 : P.parent) || "";
1960
1955
  if (u)
@@ -1982,11 +1977,11 @@ const st = (n, e) => n.reduce(
1982
1977
  type: "button",
1983
1978
  "aria-label": e.backLabel,
1984
1979
  title: e.backLabel,
1985
- onClick: dt
1980
+ onClick: ct
1986
1981
  }, [
1987
1982
  _(w, null, {
1988
1983
  default: C(() => [
1989
- _(f(Ct))
1984
+ _(f(_t))
1990
1985
  ]),
1991
1986
  _: 1
1992
1987
  })
@@ -2013,7 +2008,7 @@ const st = (n, e) => n.reduce(
2013
2008
  key: 2,
2014
2009
  class: "layout-breadcrumb__link",
2015
2010
  type: "button",
2016
- onClick: (R) => ut(P)
2011
+ onClick: (R) => it(P)
2017
2012
  }, E(P.title), 9, Xn)) : (l(), y("span", Gn, E(P.title), 1))
2018
2013
  ]))), 128))
2019
2014
  ])) : I("", !0)
@@ -2029,8 +2024,8 @@ const st = (n, e) => n.reduce(
2029
2024
  showLabel: { type: Boolean, default: !1 }
2030
2025
  },
2031
2026
  setup(n) {
2032
- const e = Lt(), t = N(!1), a = S(() => e.value), o = S(() => Bt()), s = S(() => Nt(a.value)), r = (c) => {
2033
- xt(c), t.value = !1;
2027
+ const e = It(), t = N(!1), a = S(() => e.value), o = S(() => Nt()), s = S(() => Dt(a.value)), r = (c) => {
2028
+ Lt(c), t.value = !1;
2034
2029
  };
2035
2030
  return (c, g) => {
2036
2031
  const i = L("el-icon"), h = L("el-popover");
@@ -2043,7 +2038,7 @@ const st = (n, e) => n.reduce(
2043
2038
  "popper-class": "top-timezone-popover"
2044
2039
  }, {
2045
2040
  reference: C(() => [
2046
- _(V, {
2041
+ _(X, {
2047
2042
  tag: "div",
2048
2043
  class: "timezone-select",
2049
2044
  "icon-only": !n.showLabel,
@@ -2053,7 +2048,7 @@ const st = (n, e) => n.reduce(
2053
2048
  default: C(() => [
2054
2049
  _(i, null, {
2055
2050
  default: C(() => [
2056
- _(f(St))
2051
+ _(f(Ct))
2057
2052
  ]),
2058
2053
  _: 1
2059
2054
  }),
@@ -2063,7 +2058,7 @@ const st = (n, e) => n.reduce(
2063
2058
  class: "timezone-select__caret"
2064
2059
  }, {
2065
2060
  default: C(() => [
2066
- _(f(ve))
2061
+ _(f(_e))
2067
2062
  ]),
2068
2063
  _: 1
2069
2064
  })) : I("", !0)
@@ -2110,7 +2105,7 @@ const st = (n, e) => n.reduce(
2110
2105
  ), c = () => {
2111
2106
  var g, i;
2112
2107
  Promise.resolve((i = (g = t.value).onLogout) == null ? void 0 : i.call(g)).finally(() => {
2113
- t.value.onLogout || le(t.value);
2108
+ t.value.onLogout || ce(t.value);
2114
2109
  });
2115
2110
  };
2116
2111
  return (g, i) => {
@@ -2121,7 +2116,7 @@ const st = (n, e) => n.reduce(
2121
2116
  "popper-class": "top-userinfo-popover"
2122
2117
  }, {
2123
2118
  reference: C(() => [
2124
- _(f(Ue), {
2119
+ _(f(Be), {
2125
2120
  class: "user-info__trigger ml-2",
2126
2121
  src: a.value.avatar,
2127
2122
  name: s.value
@@ -2132,7 +2127,7 @@ const st = (n, e) => n.reduce(
2132
2127
  return [
2133
2128
  d("div", sa, [
2134
2129
  d("div", ra, [
2135
- _(f(Ue), {
2130
+ _(f(Be), {
2136
2131
  class: "user-info__profile-avatar",
2137
2132
  src: a.value.avatar,
2138
2133
  name: s.value
@@ -2169,10 +2164,10 @@ const st = (n, e) => n.reduce(
2169
2164
  href: v.path,
2170
2165
  class: "user-info__item"
2171
2166
  }, [
2172
- _(nt, {
2167
+ _(et, {
2173
2168
  icon: v.icon || ((b = v.meta) == null ? void 0 : b.icon)
2174
2169
  }, null, 8, ["icon"]),
2175
- d("span", null, E(f(ee)(((T = v.meta) == null ? void 0 : T.translations) || {}, "name", v.name)), 1)
2170
+ d("span", null, E(f($)(((T = v.meta) == null ? void 0 : T.translations) || {}, "name", v.name)), 1)
2176
2171
  ], 8, ma);
2177
2172
  }), 128)),
2178
2173
  i[2] || (i[2] = d("div", { class: "user-info__divider" }, null, -1)),
@@ -2193,7 +2188,7 @@ const st = (n, e) => n.reduce(
2193
2188
  }), ga = /* @__PURE__ */ D(ha, [["__scopeId", "data-v-ac052463"]]), fa = { class: "header-right" }, va = ["href"], ya = /* @__PURE__ */ M({
2194
2189
  __name: "SHeaderRight",
2195
2190
  setup(n) {
2196
- const { t: e } = ue.global, t = O(), a = S(() => t.value.hideDoc ?? !1), o = S(() => Ge(t.value)), s = S(() => t.value.user), r = S(() => {
2191
+ const { t: e } = ue.global, t = O(), a = S(() => t.value.hideDoc ?? !1), o = S(() => Xe(t.value)), s = S(() => t.value.user), r = S(() => {
2197
2192
  var i, h;
2198
2193
  return !!((i = s.value) != null && i.id || (h = s.value) != null && h.userId);
2199
2194
  }), c = (i) => {
@@ -2202,7 +2197,7 @@ const st = (n, e) => n.reduce(
2202
2197
  return (i, h) => {
2203
2198
  const m = L("el-icon");
2204
2199
  return l(), y("div", fa, [
2205
- !a.value && g.value ? (l(), k(V, {
2200
+ !a.value && g.value ? (l(), k(X, {
2206
2201
  key: 0,
2207
2202
  tag: "a",
2208
2203
  class: "whitespace-nowrap",
@@ -2235,8 +2230,8 @@ const st = (n, e) => n.reduce(
2235
2230
  ]),
2236
2231
  _: 1
2237
2232
  }, 8, ["href"])) : I("", !0),
2238
- _(lt),
2239
- _(rt),
2233
+ _(st),
2234
+ _(ot),
2240
2235
  r.value ? (l(), k(ga, { key: 1 })) : (l(), y("a", {
2241
2236
  key: 2,
2242
2237
  class: "header-right__login",
@@ -2283,7 +2278,7 @@ const st = (n, e) => n.reduce(
2283
2278
  a.value && !f(t) ? (l(), k(cn, { key: 2 })) : I("", !0)
2284
2279
  ]),
2285
2280
  d("div", Pa, [
2286
- z(o.$slots, "default", {}, void 0, !0),
2281
+ Z(o.$slots, "default", {}, void 0, !0),
2287
2282
  f(t) ? I("", !0) : (l(), k(ba, { key: 0 })),
2288
2283
  f(t) ? (l(), k(Jn, { key: 1 })) : I("", !0)
2289
2284
  ])
@@ -2296,7 +2291,7 @@ const st = (n, e) => n.reduce(
2296
2291
  }, La = /* @__PURE__ */ M({
2297
2292
  __name: "AppSelectMobile",
2298
2293
  setup(n) {
2299
- const { currentAppId: e } = H(), { appList: t, getAppPath: a, findAppById: o } = ot(), s = S(() => {
2294
+ const { currentAppId: e } = H(), { appList: t, getAppPath: a, findAppById: o } = nt(), s = S(() => {
2300
2295
  const c = o(e.value);
2301
2296
  return c ? a(c) : "";
2302
2297
  }), r = (c) => {
@@ -2348,11 +2343,11 @@ const st = (n, e) => n.reduce(
2348
2343
  setup(n) {
2349
2344
  const e = O(), t = S(() => e.value.user || {}), a = S(() => !!(t.value.id || t.value.userId)), o = S(() => t.value.name || t.value.username), s = () => {
2350
2345
  var r, c;
2351
- (c = (r = e.value).onLogin) != null && c.call(r) || le(e.value);
2346
+ (c = (r = e.value).onLogin) != null && c.call(r) || ce(e.value);
2352
2347
  };
2353
2348
  return (r, c) => {
2354
2349
  const g = L("el-icon");
2355
- return a.value ? (l(), k(it, { key: 0 }, {
2350
+ return a.value ? (l(), k(rt, { key: 0 }, {
2356
2351
  reference: C(() => [
2357
2352
  d("div", xa, [
2358
2353
  c[0] || (c[0] = d("div", { class: "aside-user-mobile__icon text-lg" }, [
@@ -2409,7 +2404,7 @@ const st = (n, e) => n.reduce(
2409
2404
  }, [
2410
2405
  _(r, null, {
2411
2406
  default: C(() => [
2412
- _(f(Fe))
2407
+ _(f(Oe))
2413
2408
  ]),
2414
2409
  _: 1
2415
2410
  })
@@ -2419,12 +2414,12 @@ const st = (n, e) => n.reduce(
2419
2414
  _(c, { ref: "leftScrollRef" }, {
2420
2415
  default: C(() => [
2421
2416
  d("div", Ra, [
2422
- _(at, { menus: f(e) }, null, 8, ["menus"])
2417
+ _(tt, { menus: f(e) }, null, 8, ["menus"])
2423
2418
  ])
2424
2419
  ]),
2425
2420
  _: 1
2426
2421
  }, 512),
2427
- z(o.$slots, "sidebar-foot", {}, void 0, !0),
2422
+ Z(o.$slots, "sidebar-foot", {}, void 0, !0),
2428
2423
  _(Ba)
2429
2424
  ], 2)) : I("", !0);
2430
2425
  };
@@ -2448,7 +2443,7 @@ const st = (n, e) => n.reduce(
2448
2443
  onLogout: (F = e.setting) == null ? void 0 : F.onLogout
2449
2444
  };
2450
2445
  });
2451
- Oe(() => void Ft(t.value));
2446
+ Je(() => void Ot(t.value));
2452
2447
  const { isMobile: a, sideOpen: o } = H();
2453
2448
  let s = "", r = !1;
2454
2449
  const c = () => void (o.value = !1), g = (m) => {
@@ -2465,7 +2460,7 @@ const st = (n, e) => n.reduce(
2465
2460
  }).join("|"), h = (m) => {
2466
2461
  m.key === "Escape" && a.value && o.value && c();
2467
2462
  };
2468
- return se(
2463
+ return re(
2469
2464
  () => a.value && o.value,
2470
2465
  (m) => {
2471
2466
  if (!(typeof document > "u")) {
@@ -2477,16 +2472,16 @@ const st = (n, e) => n.reduce(
2477
2472
  }
2478
2473
  },
2479
2474
  { immediate: !0 }
2480
- ), Re(() => {
2475
+ ), Ue(() => {
2481
2476
  window.addEventListener("keydown", h);
2482
- }), Ke(() => {
2477
+ }), Re(() => {
2483
2478
  window.removeEventListener("keydown", h), typeof document < "u" && r && (document.body.style.overflow = s);
2484
2479
  }), (m, v) => {
2485
2480
  const p = L("router-view");
2486
2481
  return l(), y("div", Fa, [
2487
2482
  _(ka, null, {
2488
2483
  default: C(() => [
2489
- z(m.$slots, "header-right", {}, void 0, !0)
2484
+ Z(m.$slots, "header-right", {}, void 0, !0)
2490
2485
  ]),
2491
2486
  _: 3
2492
2487
  }),
@@ -2505,7 +2500,7 @@ const st = (n, e) => n.reduce(
2505
2500
  key: g(T),
2506
2501
  class: "layout-page-view"
2507
2502
  }, [
2508
- (l(), k(fe(b)))
2503
+ (l(), k(Ae(b)))
2509
2504
  ]))
2510
2505
  ]),
2511
2506
  _: 2
@@ -2532,16 +2527,16 @@ const st = (n, e) => n.reduce(
2532
2527
  }), $a = /* @__PURE__ */ D(Za, [["__scopeId", "data-v-87720a5b"]]);
2533
2528
  export {
2534
2529
  $a as BaseLayout,
2535
- lt as LanguageSelect,
2530
+ st as LanguageSelect,
2536
2531
  Ga as LayoutBreadcrumb,
2537
- rt as ThemeToggle,
2532
+ ot as ThemeToggle,
2538
2533
  Va as TimezoneSelect,
2539
- Ue as UserAvatar,
2534
+ Be as UserAvatar,
2540
2535
  ga as UserInfo,
2541
2536
  ue as i18n,
2542
- ae as messages,
2543
- ot as useApp,
2537
+ se as messages,
2538
+ nt as useApp,
2544
2539
  H as useLayoutState,
2545
2540
  O as useSetting,
2546
- Xe as useTheme
2541
+ We as useTheme
2547
2542
  };