mamba-layout 0.24.0 → 0.26.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 pt, readonly as mt, ref as N, computed as S, unref as f, onActivated as ht, onMounted as Re, onUnmounted as Ke, watch as re, 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 Je, 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 Oe, Transition as Ee } from "vue";
2
- import { Fold as Fe, 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 He } from "vue-router";
4
- import { createI18n as St } from "vue-i18n";
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, 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 ht, vShow as gt, createVNode as _, renderSlot as z, watchEffect as Je, Transition as Ee } from "vue";
2
+ import { Fold as Oe, ArrowDown as _e, Moon as ft, Sunny as vt, Expand as yt, User as bt, ArrowLeft as At, ArrowRight as he, Clock as _t } from "@element-plus/icons-vue";
3
+ import { useRouter as Fe } from "vue-router";
4
+ import { createI18n as Ct } from "vue-i18n";
5
5
  function ie() {
6
- const n = pt();
6
+ const n = dt();
7
7
  return n ? n.appContext.config.globalProperties.$route : null;
8
8
  }
9
- const wt = 3600 * 24 * 7, Ce = "UTC", Qe = "timezone", Pt = [
9
+ const St = 3600 * 24 * 7, Ce = "UTC", He = "timezone", wt = [
10
10
  "UTC",
11
11
  "Asia/Shanghai",
12
12
  "Asia/Hong_Kong",
@@ -22,7 +22,7 @@ const wt = 3600 * 24 * 7, Ce = "UTC", Qe = "timezone", Pt = [
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 wt = 3600 * 24 * 7, Ce = "UTC", Qe = "timezone", Pt = [
36
36
  }
37
37
  return e;
38
38
  },
39
- set(n, e, t = wt) {
39
+ set(n, e, t = St) {
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 wt = 3600 * 24 * 7, Ce = "UTC", Qe = "timezone", Pt = [
47
47
  var n;
48
48
  (n = me()) == null || n.clear();
49
49
  }
50
- }, Tt = (n) => typeof n == "object" && n !== null, De = (n) => {
51
- if (!Tt(n) || Object.prototype.toString.call(n) !== "[object Object]") return !1;
50
+ }, Pt = (n) => typeof n == "object" && n !== null, De = (n) => {
51
+ if (!Pt(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
- }, te = (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
- }, le = (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,25 +89,25 @@ const Ne = (n, e, t) => {
89
89
  }
90
90
  }
91
91
  return "";
92
- }, kt = (n, e) => {
92
+ }, Tt = (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
- }, ne = (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 = () => ne(Intl.DateTimeFormat().resolvedOptions().timeZone) || Ce, Se = N(
104
- ne(G.get(Qe)) || Ye()
105
- ), It = () => mt(Se);
106
- function Lt(n) {
103
+ }, qe = () => ne(Intl.DateTimeFormat().resolvedOptions().timeZone) || Ce, Se = N(
104
+ ne(W.get(He)) || qe()
105
+ ), kt = () => pt(Se);
106
+ function It(n) {
107
107
  const e = ne(n);
108
- e && (Se.value = e, G.set(Qe, e, null));
108
+ e && (Se.value = e, W.set(He, e, null));
109
109
  }
110
- const xt = (n) => {
110
+ const Lt = (n) => {
111
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", {
@@ -121,8 +121,8 @@ const xt = (n) => {
121
121
  hourCycle: "h23"
122
122
  });
123
123
  return Me.set(e, a), a;
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(
124
+ }, xt = (n, e) => Lt(e).formatToParts(n).reduce((a, o) => (o.type !== "literal" && (a[o.type] = Number(o.value)), a), {}), Et = (n, e = /* @__PURE__ */ new Date()) => {
125
+ const t = ne(n) || Ce, a = xt(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 xt = (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 = Mt(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 = Et(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
- }, Dt = (n, e = /* @__PURE__ */ new Date()) => `${n} (${We(n, e)})`, Nt = (n = /* @__PURE__ */ new Date()) => {
140
+ }, Mt = (n, e = /* @__PURE__ */ new Date()) => `${n} (${Ye(n, e)})`, Dt = (n = /* @__PURE__ */ new Date()) => {
141
141
  const e = new Set(
142
- [Ye(), ...Pt, Se.value].filter(
143
- qe
142
+ [qe(), ...wt, 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 Bt = () => typeof location > "u" ? "" : location.href, Ge = (n) => (n == null ? void 0 : n.loginPath) || `/login?redirect=${encodeURIComponent(Bt())}`, ce = (n) => {
187
- typeof location > "u" || (location.href = Ge(n));
188
- }, Ut = (n) => (n == null ? void 0 : n.userCenterPath) || "/usercenter/home", Rt = (n) => {
186
+ const Nt = () => typeof location > "u" ? "" : location.href, Xe = (n) => (n == null ? void 0 : n.loginPath) || `/login?redirect=${encodeURIComponent(Nt())}`, ce = (n) => {
187
+ typeof location > "u" || (location.href = Xe(n));
188
+ }, Bt = (n) => (n == null ? void 0 : n.userCenterPath) || "/usercenter/home", Ut = (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" && Kt(e[r]);
195
+ t[c] = e[r], r == "colorPrimary" && Rt(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 Kt(n) {
202
+ function Rt(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 = Jt(n);
209
+ const t = Kt(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 Jt(n) {
214
+ function Kt(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,19 +241,19 @@ const ge = N({
241
241
  function O() {
242
242
  return ge;
243
243
  }
244
- const Ot = (n) => {
244
+ const Jt = (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(), Rt(ge.value);
250
- }, Ft = 1024, Ve = N(), ae = N([]), Y = N(), ee = N(""), W = N(""), fe = N(""), X = O(), ve = N(!0), ye = N(!1), Ht = N(), oe = () => {
247
+ ge.value = Qe(e.value, t);
248
+ const { syncThemeFromSetting: a } = We();
249
+ a(), Ut(ge.value);
250
+ }, Ot = 1024, Ge = N(), ae = N([]), Y = N(), V = N(""), ee = N(""), fe = N(""), te = O(), ve = N(!0), ye = N(!1), Ft = 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
258
  const o = ie(), s = a ? [...a] : [], r = [], c = [];
259
259
  for (const p in n) {
@@ -267,62 +267,63 @@ const Ot = (n) => {
267
267
  b[t] = p.item, Y.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
- fe.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(ee.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
287
  const n = ((r = Y.value) == null ? void 0 : r.paths) || [], e = le(
288
- te(((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) ? "" : le(te(((v = (m = n[1]) == null ? void 0 : m.meta) == null ? void 0 : v.translations) || {}, "name"));
288
+ $(((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) ? "" : le($(((v = (m = n[1]) == null ? void 0 : m.meta) == null ? void 0 : v.translations) || {}, "name"));
290
290
  document.title = e + (t ? ` - ${t}` : "");
291
- }, Be = () => {
291
+ }, Ht = () => {
292
292
  const n = ie();
293
- ee.value = "/" + (n.path.split("/").filter(Boolean).shift() || ""), et(), ae.value = oe();
293
+ V.value = "/" + (n.path.split("/").filter(Boolean).shift() || ""), $e(), ae.value = oe();
294
294
  }, be = () => {
295
- const n = window.innerWidth < Ft;
295
+ const n = window.innerWidth < Ot;
296
296
  ye.value = n, ve.value = !n;
297
297
  };
298
298
  be();
299
299
  function H() {
300
- const n = ie();
301
- return Be(), ht(() => {
302
- Be();
303
- }), Re(() => {
300
+ mt(() => {
301
+ Ht();
302
+ }), Ue(() => {
304
303
  window.addEventListener("resize", be);
305
- }), Ke(() => {
304
+ }), Re(() => {
306
305
  window.removeEventListener("resize", be);
307
- }), re(
308
- () => ee.value,
306
+ });
307
+ const n = ie();
308
+ return re(
309
+ () => V.value,
309
310
  () => void (ae.value = oe())
310
311
  ), re(
311
- () => [n.path, X.value.menus],
312
+ () => [n.path, te.value.menus],
312
313
  () => {
313
- fe.value = "", Y.value = void 0, ee.value = "/" + (n.path.split("/").filter(Boolean).shift() || ""), et(), ae.value = oe(), ye.value && (ve.value = !1);
314
+ fe.value = "", Y.value = void 0, V.value = "/" + (n.path.split("/").filter(Boolean).shift() || ""), $e(), ae.value = oe(), ye.value && (ve.value = !1);
314
315
  }
315
316
  ), {
316
317
  menus: ae,
317
318
  currentEndRoute: Y,
318
- currentTabPath: ee,
319
- currentAppId: W,
319
+ currentTabPath: V,
320
+ currentAppId: ee,
320
321
  defaultParentActive: fe,
321
322
  sideOpen: ve,
322
323
  isMobile: ye,
323
324
  getMenus: oe,
324
- currentEndParentRoute: Ve,
325
- leftScrollRef: Ht
325
+ currentEndParentRoute: Ge,
326
+ leftScrollRef: Ft
326
327
  };
327
328
  }
328
329
  const Qt = { class: "menu-item-icon" }, zt = ["innerHTML"], Zt = /* @__PURE__ */ M({
@@ -348,7 +349,7 @@ const Qt = { class: "menu-item-icon" }, zt = ["innerHTML"], Zt = /* @__PURE__ */
348
349
  for (const [a, o] of e)
349
350
  t[a] = o;
350
351
  return t;
351
- }, tt = /* @__PURE__ */ D(Zt, [["__scopeId", "data-v-ed060390"]]), jt = { key: 0 }, qt = /* @__PURE__ */ M({
352
+ }, et = /* @__PURE__ */ D(Zt, [["__scopeId", "data-v-ed060390"]]), jt = { key: 0 }, qt = /* @__PURE__ */ M({
352
353
  __name: "AsideSubMenuItem",
353
354
  props: {
354
355
  menu: {
@@ -369,9 +370,9 @@ const Qt = { class: "menu-item-icon" }, zt = ["innerHTML"], Zt = /* @__PURE__ */
369
370
  return ((m = h.meta) == null ? void 0 : m.visible) != "0";
370
371
  });
371
372
  }
372
- ), { defaultParentActive: a, currentTabPath: o } = H(), s = He(), r = S(() => {
373
+ ), { defaultParentActive: a, currentTabPath: o } = H(), s = Fe(), r = S(() => {
373
374
  var i;
374
- 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";
375
+ return e.level == 1 && !Tt(s, e.menu.path || "") ? "div" : /^http/.test(e.menu.path || "") || !((i = e.menu.path) != null && i.startsWith(o.value)) ? "a" : "router-link";
375
376
  }), c = S(() => {
376
377
  var i;
377
378
  return /^http/.test(e.menu.path || "") || !((i = e.menu.path) != null && i.startsWith(o.value)) ? {
@@ -389,7 +390,7 @@ const Qt = { class: "menu-item-icon" }, zt = ["innerHTML"], Zt = /* @__PURE__ */
389
390
  var v, p;
390
391
  const m = L("AsideSubMenuItem", !0);
391
392
  return l(), y(U, null, [
392
- (l(), k(Ae(r.value), Je({
393
+ (l(), k(Ae(r.value), Ke({
393
394
  class: ["pt-1 pb-1 pl-3 pr-3 flex items-center gap-2 rounded-md", [
394
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)]",
395
396
  (v = t.value) != null && v.length ? " h-7" : " h-9.5 cursor-pointer hover:bg-[var(--ui-sidebar-hover-bg)]"
@@ -399,7 +400,7 @@ const Qt = { class: "menu-item-icon" }, zt = ["innerHTML"], Zt = /* @__PURE__ */
399
400
  default: C(() => {
400
401
  var b, T, B, F;
401
402
  return [
402
- (b = t.value) != null && b.length ? I("", !0) : (l(), k(tt, {
403
+ (b = t.value) != null && b.length ? I("", !0) : (l(), k(et, {
403
404
  key: 0,
404
405
  icon: g.value,
405
406
  class: K(["text-md", [
@@ -408,7 +409,7 @@ const Qt = { class: "menu-item-icon" }, zt = ["innerHTML"], Zt = /* @__PURE__ */
408
409
  }, null, 8, ["icon", "class"])),
409
410
  d("div", {
410
411
  class: K(["truncate", (T = t.value) != null && T.length ? "text-xs text-gray-400" : ""])
411
- }, E(f(le)(f(te)(((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)
412
413
  ];
413
414
  }),
414
415
  _: 1
@@ -426,7 +427,7 @@ const Qt = { class: "menu-item-icon" }, zt = ["innerHTML"], Zt = /* @__PURE__ */
426
427
  }), Yt = { class: "h-full" }, Wt = {
427
428
  key: 0,
428
429
  class: ""
429
- }, nt = /* @__PURE__ */ M({
430
+ }, tt = /* @__PURE__ */ M({
430
431
  __name: "AsideSubMenus",
431
432
  props: {
432
433
  menus: {
@@ -438,7 +439,7 @@ const Qt = { class: "menu-item-icon" }, zt = ["innerHTML"], Zt = /* @__PURE__ */
438
439
  const e = n;
439
440
  return (t, a) => {
440
441
  var o;
441
- return gt((l(), y("div", Yt, [
442
+ return ht((l(), y("div", Yt, [
442
443
  (o = e.menus) != null && o.length ? (l(), y("div", Wt, [
443
444
  (l(!0), y(U, null, J(e.menus.filter((s) => {
444
445
  var r;
@@ -449,7 +450,7 @@ const Qt = { class: "menu-item-icon" }, zt = ["innerHTML"], Zt = /* @__PURE__ */
449
450
  }, null, 8, ["menu"]))), 128))
450
451
  ])) : I("", !0)
451
452
  ], 512)), [
452
- [ft, e.menus.length]
453
+ [gt, e.menus.length]
453
454
  ]);
454
455
  };
455
456
  }
@@ -476,7 +477,7 @@ const Qt = { class: "menu-item-icon" }, zt = ["innerHTML"], Zt = /* @__PURE__ */
476
477
  }, [
477
478
  _(c, null, {
478
479
  default: C(() => [
479
- _(f(Fe))
480
+ _(f(Oe))
480
481
  ]),
481
482
  _: 1
482
483
  })
@@ -485,7 +486,7 @@ const Qt = { class: "menu-item-icon" }, zt = ["innerHTML"], Zt = /* @__PURE__ */
485
486
  _(g, { ref: "leftScrollRef" }, {
486
487
  default: C(() => [
487
488
  d("div", Gt, [
488
- _(nt, { menus: f(e) }, null, 8, ["menus"])
489
+ _(tt, { menus: f(e) }, null, 8, ["menus"])
489
490
  ])
490
491
  ]),
491
492
  _: 1
@@ -495,19 +496,19 @@ const Qt = { class: "menu-item-icon" }, zt = ["innerHTML"], Zt = /* @__PURE__ */
495
496
  };
496
497
  }
497
498
  }), $t = /* @__PURE__ */ D(Vt, [["__scopeId", "data-v-ff960d0f"]]);
498
- function at() {
499
+ function nt() {
499
500
  const n = O(), e = S(() => n.value.appList || []);
500
501
  return {
501
502
  appList: e,
502
503
  getAppPath: (o) => (o == null ? void 0 : o.path) || "",
503
504
  findAppById: (o) => {
504
505
  if (o)
505
- return ot(e.value, o);
506
+ return at(e.value, o);
506
507
  }
507
508
  };
508
509
  }
509
- const ot = (n, e) => n.reduce(
510
- (t, a) => t || (a.appId === e ? a : ot(a.children || [], e)),
510
+ const at = (n, e) => n.reduce(
511
+ (t, a) => t || (a.appId === e ? a : at(a.children || [], e)),
511
512
  void 0
512
513
  ), en = {
513
514
  key: 0,
@@ -518,7 +519,7 @@ const ot = (n, e) => n.reduce(
518
519
  }, an = ["href"], on = { class: "app-select__dropdown-icon text-xl" }, sn = { class: "app-select__dropdown-desc" }, rn = /* @__PURE__ */ M({
519
520
  __name: "AppSelect",
520
521
  setup(n) {
521
- const { currentAppId: e } = H(), { appList: t, getAppPath: a } = at(), o = (s) => {
522
+ const { currentAppId: e } = H(), { appList: t, getAppPath: a } = nt(), o = (s) => {
522
523
  var r;
523
524
  return e.value === s.appId || !!((r = s.children) != null && r.some((c) => c.appId === e.value));
524
525
  };
@@ -588,19 +589,19 @@ const ot = (n, e) => n.reduce(
588
589
  _: 3
589
590
  }, 8, ["type", "class"]));
590
591
  }
591
- }), V = /* @__PURE__ */ D(cn, [["__scopeId", "data-v-824bbddc"]]), un = /* @__PURE__ */ M({
592
+ }), X = /* @__PURE__ */ D(cn, [["__scopeId", "data-v-824bbddc"]]), un = /* @__PURE__ */ M({
592
593
  __name: "ThemeToggle",
593
594
  setup(n) {
594
- const e = O(), { theme: t, isDark: a, toggleTheme: o } = Xe();
595
- return Oe(() => {
595
+ const e = O(), { theme: t, isDark: a, toggleTheme: o } = We();
596
+ return Je(() => {
596
597
  e.value.theme = t.value;
597
598
  }), (s, r) => {
598
599
  const c = L("el-icon");
599
- return l(), k(V, { onClick: f(o) }, {
600
+ return l(), k(X, { onClick: f(o) }, {
600
601
  default: C(() => [
601
602
  _(c, null, {
602
603
  default: C(() => [
603
- f(a) ? (l(), k(f(yt), { key: 1 })) : (l(), k(f(vt), { key: 0 }))
604
+ f(a) ? (l(), k(f(vt), { key: 1 })) : (l(), k(f(ft), { key: 0 }))
604
605
  ]),
605
606
  _: 1
606
607
  })
@@ -609,7 +610,7 @@ const ot = (n, e) => n.reduce(
609
610
  }, 8, ["onClick"]);
610
611
  };
611
612
  }
612
- }), st = /* @__PURE__ */ D(un, [["__scopeId", "data-v-e6ea60b7"]]), dn = {
613
+ }), ot = /* @__PURE__ */ D(un, [["__scopeId", "data-v-e6ea60b7"]]), dn = {
613
614
  label: {
614
615
  clickToChangeImage: "Click to change image"
615
616
  },
@@ -1580,8 +1581,8 @@ const ot = (n, e) => n.reduce(
1580
1581
  }, se = {
1581
1582
  "en-US": bn,
1582
1583
  "zh-CN": In
1583
- }, ue = St({
1584
- locale: Ze(),
1584
+ }, ue = Ct({
1585
+ locale: ze(),
1585
1586
  fallbackLocale: "en-US",
1586
1587
  messages: se,
1587
1588
  legacy: !1
@@ -1600,7 +1601,7 @@ const ot = (n, e) => n.reduce(
1600
1601
  label: se[s].name,
1601
1602
  value: s
1602
1603
  })), o = (s) => {
1603
- G.set("locale", s), location.reload();
1604
+ W.set("locale", s), location.reload();
1604
1605
  };
1605
1606
  return (s, r) => {
1606
1607
  const c = L("el-icon"), g = L("el-popover");
@@ -1611,7 +1612,7 @@ const ot = (n, e) => n.reduce(
1611
1612
  "popper-class": "top-language-popover"
1612
1613
  }, {
1613
1614
  reference: C(() => [
1614
- _(V, {
1615
+ _(X, {
1615
1616
  "langselect-toggle": "",
1616
1617
  tag: "div",
1617
1618
  class: "language-select",
@@ -1675,10 +1676,10 @@ const ot = (n, e) => n.reduce(
1675
1676
  });
1676
1677
  };
1677
1678
  }
1678
- }), rt = /* @__PURE__ */ D(Mn, [["__scopeId", "data-v-48306ad1"]]), Dn = { class: "mobile-user-popover" }, Nn = ["href"], Bn = /* @__PURE__ */ M({
1679
+ }), st = /* @__PURE__ */ D(Mn, [["__scopeId", "data-v-48306ad1"]]), Dn = { class: "mobile-user-popover" }, Nn = ["href"], Bn = /* @__PURE__ */ M({
1679
1680
  __name: "AsideUserMobilePopover",
1680
1681
  setup(n) {
1681
- const { t: e } = ue.global, t = O(), a = S(() => Ut(t.value)), o = () => {
1682
+ const { t: e } = ue.global, t = O(), a = S(() => Bt(t.value)), o = () => {
1682
1683
  var s, r;
1683
1684
  Promise.resolve((r = (s = t.value).onLogout) == null ? void 0 : r.call(s)).finally(() => {
1684
1685
  t.value.onLogout || ce(t.value);
@@ -1703,7 +1704,7 @@ const ot = (n, e) => n.reduce(
1703
1704
  r[0] || (r[0] = d("i", { class: "metisicon-yonghu1" }, null, -1)),
1704
1705
  d("span", null, E(f(e)("admin.label.profile")), 1)
1705
1706
  ], 8, Nn),
1706
- _(rt),
1707
+ _(st),
1707
1708
  r[2] || (r[2] = d("div", { class: "mobile-user-popover__divider" }, null, -1)),
1708
1709
  d("div", {
1709
1710
  class: "mobile-user-popover__item mobile-user-popover__item--danger",
@@ -1718,7 +1719,7 @@ const ot = (n, e) => n.reduce(
1718
1719
  });
1719
1720
  };
1720
1721
  }
1721
- }), lt = /* @__PURE__ */ D(Bn, [["__scopeId", "data-v-87e082b1"]]), Un = { class: "header-right-mobile" }, Rn = /* @__PURE__ */ M({
1722
+ }), rt = /* @__PURE__ */ D(Bn, [["__scopeId", "data-v-87e082b1"]]), Un = { class: "header-right-mobile" }, Rn = /* @__PURE__ */ M({
1722
1723
  __name: "HeaderRightMobile",
1723
1724
  setup(n) {
1724
1725
  const e = O(), t = S(
@@ -1731,10 +1732,10 @@ const ot = (n, e) => n.reduce(
1731
1732
  (s = (o = e.value).onLogin) != null && s.call(o) || ce(e.value);
1732
1733
  };
1733
1734
  return (o, s) => (l(), y("div", Un, [
1734
- _(st),
1735
- t.value ? (l(), k(lt, { key: 0 }, {
1735
+ _(ot),
1736
+ t.value ? (l(), k(rt, { key: 0 }, {
1736
1737
  reference: C(() => [
1737
- _(V, { class: "header-right-mobile__action" }, {
1738
+ _(X, { class: "header-right-mobile__action" }, {
1738
1739
  default: C(() => [...s[0] || (s[0] = [
1739
1740
  d("i", { class: "metisicon-yonghu1" }, null, -1)
1740
1741
  ])]),
@@ -1742,7 +1743,7 @@ const ot = (n, e) => n.reduce(
1742
1743
  })
1743
1744
  ]),
1744
1745
  _: 1
1745
- })) : (l(), k(V, {
1746
+ })) : (l(), k(X, {
1746
1747
  key: 1,
1747
1748
  class: "header-right-mobile__action",
1748
1749
  onClick: a
@@ -1772,7 +1773,7 @@ const ot = (n, e) => n.reduce(
1772
1773
  d("div", On, [
1773
1774
  _(s, null, {
1774
1775
  default: C(() => [
1775
- _(f(bt))
1776
+ _(f(yt))
1776
1777
  ]),
1777
1778
  _: 1
1778
1779
  })
@@ -1812,7 +1813,7 @@ const ot = (n, e) => n.reduce(
1812
1813
  };
1813
1814
  return (v, p) => {
1814
1815
  const b = L("el-icon"), T = L("el-avatar");
1815
- return l(), k(T, Je(v.$attrs, {
1816
+ return l(), k(T, Ke(v.$attrs, {
1816
1817
  src: h.value,
1817
1818
  "data-src": h.value,
1818
1819
  alt: s.value,
@@ -1826,7 +1827,7 @@ const ot = (n, e) => n.reduce(
1826
1827
  "aria-hidden": "true"
1827
1828
  }, {
1828
1829
  default: C(() => [
1829
- _(f(At))
1830
+ _(f(bt))
1830
1831
  ]),
1831
1832
  _: 1
1832
1833
  })) : I("", !0)
@@ -1835,7 +1836,7 @@ const ot = (n, e) => n.reduce(
1835
1836
  }, 16, ["src", "data-src", "alt", "class"]);
1836
1837
  };
1837
1838
  }
1838
- }), Ue = /* @__PURE__ */ D(zn, [["__scopeId", "data-v-50be58a7"]]), Zn = {
1839
+ }), Be = /* @__PURE__ */ D(zn, [["__scopeId", "data-v-50be58a7"]]), Zn = {
1839
1840
  key: 0,
1840
1841
  class: "layout-breadcrumb text-xs",
1841
1842
  "aria-label": "Breadcrumb"
@@ -1858,7 +1859,7 @@ const ot = (n, e) => n.reduce(
1858
1859
  backLabel: { default: "返回" }
1859
1860
  },
1860
1861
  setup(n) {
1861
- const e = n, t = ie(), a = He(), o = O(), s = H(), r = S(() => {
1862
+ const e = n, t = ie(), a = Fe(), o = O(), s = H(), r = S(() => {
1862
1863
  var Pe, Te, ke, Ie, Le, xe;
1863
1864
  if ((Pe = e.items) != null && Pe.length)
1864
1865
  return e.items.filter((q) => q.title);
@@ -1903,7 +1904,7 @@ const ot = (n, e) => n.reduce(
1903
1904
  };
1904
1905
  }, h = (u) => {
1905
1906
  var w;
1906
- return ((w = u == null ? void 0 : u.meta) != null && w.translations ? le(te(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) || "";
1907
1908
  }, m = () => {
1908
1909
  var u;
1909
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 || "");
@@ -1930,13 +1931,13 @@ const ot = (n, e) => n.reduce(
1930
1931
  if (w === P) return !0;
1931
1932
  const x = w.replace(/\/:(\w+)/g, "/([^/]+)");
1932
1933
  return new RegExp(`^${x}$`, "i").test(P);
1933
- }, T = (u = "") => u ? u.split("?")[0].split("#")[0] : "", B = (u = "") => (T(u).replace(/\/+$/, "") || "/").toLowerCase(), F = (u) => /^https?:\/\//.test(u.path || ""), it = (u) => {
1934
+ }, T = (u = "") => u ? u.split("?")[0].split("#")[0] : "", B = (u = "") => (T(u).replace(/\/+$/, "") || "/").toLowerCase(), F = (u) => /^https?:\/\//.test(u.path || ""), lt = (u) => {
1934
1935
  var A;
1935
1936
  return !!((A = u.children) != null && A.some((w) => !w.disabled));
1936
- }, we = (u, A) => u.disabled || A === r.value.length - 1 || !u.path ? !1 : F(u) || !it(u), ct = (u) => {
1937
+ }, we = (u, A) => u.disabled || A === r.value.length - 1 || !u.path ? !1 : F(u) || !lt(u), it = (u) => {
1937
1938
  const A = u.to || de(u);
1938
1939
  A && a.push(A);
1939
- }, ut = () => {
1940
+ }, ct = () => {
1940
1941
  var A;
1941
1942
  if (e.backTo) {
1942
1943
  a.push(e.backTo);
@@ -1946,9 +1947,9 @@ const ot = (n, e) => n.reduce(
1946
1947
  a.back();
1947
1948
  return;
1948
1949
  }
1949
- const u = dt();
1950
+ const u = ut();
1950
1951
  u && a.push(u);
1951
- }, dt = () => {
1952
+ }, ut = () => {
1952
1953
  var w, P;
1953
1954
  const u = e.parentPath || ((w = t.meta) == null ? void 0 : w.parentPath) || ((P = t.meta) == null ? void 0 : P.parent) || "";
1954
1955
  if (u)
@@ -1976,11 +1977,11 @@ const ot = (n, e) => n.reduce(
1976
1977
  type: "button",
1977
1978
  "aria-label": e.backLabel,
1978
1979
  title: e.backLabel,
1979
- onClick: ut
1980
+ onClick: ct
1980
1981
  }, [
1981
1982
  _(w, null, {
1982
1983
  default: C(() => [
1983
- _(f(_t))
1984
+ _(f(At))
1984
1985
  ]),
1985
1986
  _: 1
1986
1987
  })
@@ -2007,7 +2008,7 @@ const ot = (n, e) => n.reduce(
2007
2008
  key: 2,
2008
2009
  class: "layout-breadcrumb__link",
2009
2010
  type: "button",
2010
- onClick: (R) => ct(P)
2011
+ onClick: (R) => it(P)
2011
2012
  }, E(P.title), 9, Wn)) : (l(), y("span", Xn, E(P.title), 1))
2012
2013
  ]))), 128))
2013
2014
  ])) : I("", !0)
@@ -2023,8 +2024,8 @@ const ot = (n, e) => n.reduce(
2023
2024
  showLabel: { type: Boolean, default: !1 }
2024
2025
  },
2025
2026
  setup(n) {
2026
- const e = It(), t = N(!1), a = S(() => e.value), o = S(() => Nt()), s = S(() => Dt(a.value)), r = (c) => {
2027
- Lt(c), t.value = !1;
2027
+ const e = kt(), t = N(!1), a = S(() => e.value), o = S(() => Dt()), s = S(() => Mt(a.value)), r = (c) => {
2028
+ It(c), t.value = !1;
2028
2029
  };
2029
2030
  return (c, g) => {
2030
2031
  const i = L("el-icon"), h = L("el-popover");
@@ -2037,7 +2038,7 @@ const ot = (n, e) => n.reduce(
2037
2038
  "popper-class": "top-timezone-popover"
2038
2039
  }, {
2039
2040
  reference: C(() => [
2040
- _(V, {
2041
+ _(X, {
2041
2042
  tag: "div",
2042
2043
  class: "timezone-select",
2043
2044
  "icon-only": !n.showLabel,
@@ -2047,7 +2048,7 @@ const ot = (n, e) => n.reduce(
2047
2048
  default: C(() => [
2048
2049
  _(i, null, {
2049
2050
  default: C(() => [
2050
- _(f(Ct))
2051
+ _(f(_t))
2051
2052
  ]),
2052
2053
  _: 1
2053
2054
  }),
@@ -2115,7 +2116,7 @@ const ot = (n, e) => n.reduce(
2115
2116
  "popper-class": "top-userinfo-popover"
2116
2117
  }, {
2117
2118
  reference: C(() => [
2118
- _(f(Ue), {
2119
+ _(f(Be), {
2119
2120
  class: "user-info__trigger ml-2",
2120
2121
  src: a.value.avatar,
2121
2122
  name: s.value
@@ -2126,7 +2127,7 @@ const ot = (n, e) => n.reduce(
2126
2127
  return [
2127
2128
  d("div", oa, [
2128
2129
  d("div", sa, [
2129
- _(f(Ue), {
2130
+ _(f(Be), {
2130
2131
  class: "user-info__profile-avatar",
2131
2132
  src: a.value.avatar,
2132
2133
  name: s.value
@@ -2163,10 +2164,10 @@ const ot = (n, e) => n.reduce(
2163
2164
  href: v.path,
2164
2165
  class: "user-info__item"
2165
2166
  }, [
2166
- _(tt, {
2167
+ _(et, {
2167
2168
  icon: v.icon || ((b = v.meta) == null ? void 0 : b.icon)
2168
2169
  }, null, 8, ["icon"]),
2169
- d("span", null, E(f(te)(((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)
2170
2171
  ], 8, pa);
2171
2172
  }), 128)),
2172
2173
  i[2] || (i[2] = d("div", { class: "user-info__divider" }, null, -1)),
@@ -2187,7 +2188,7 @@ const ot = (n, e) => n.reduce(
2187
2188
  }), ha = /* @__PURE__ */ D(ma, [["__scopeId", "data-v-ac052463"]]), ga = { class: "header-right" }, fa = ["href"], va = /* @__PURE__ */ M({
2188
2189
  __name: "SHeaderRight",
2189
2190
  setup(n) {
2190
- 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(() => {
2191
2192
  var i, h;
2192
2193
  return !!((i = s.value) != null && i.id || (h = s.value) != null && h.userId);
2193
2194
  }), c = (i) => {
@@ -2196,7 +2197,7 @@ const ot = (n, e) => n.reduce(
2196
2197
  return (i, h) => {
2197
2198
  const m = L("el-icon");
2198
2199
  return l(), y("div", ga, [
2199
- !a.value && g.value ? (l(), k(V, {
2200
+ !a.value && g.value ? (l(), k(X, {
2200
2201
  key: 0,
2201
2202
  tag: "a",
2202
2203
  class: "whitespace-nowrap",
@@ -2229,8 +2230,8 @@ const ot = (n, e) => n.reduce(
2229
2230
  ]),
2230
2231
  _: 1
2231
2232
  }, 8, ["href"])) : I("", !0),
2232
- _(rt),
2233
2233
  _(st),
2234
+ _(ot),
2234
2235
  r.value ? (l(), k(ha, { key: 1 })) : (l(), y("a", {
2235
2236
  key: 2,
2236
2237
  class: "header-right__login",
@@ -2290,7 +2291,7 @@ const ot = (n, e) => n.reduce(
2290
2291
  }, Ia = /* @__PURE__ */ M({
2291
2292
  __name: "AppSelectMobile",
2292
2293
  setup(n) {
2293
- const { currentAppId: e } = H(), { appList: t, getAppPath: a, findAppById: o } = at(), s = S(() => {
2294
+ const { currentAppId: e } = H(), { appList: t, getAppPath: a, findAppById: o } = nt(), s = S(() => {
2294
2295
  const c = o(e.value);
2295
2296
  return c ? a(c) : "";
2296
2297
  }), r = (c) => {
@@ -2346,7 +2347,7 @@ const ot = (n, e) => n.reduce(
2346
2347
  };
2347
2348
  return (r, c) => {
2348
2349
  const g = L("el-icon");
2349
- return a.value ? (l(), k(lt, { key: 0 }, {
2350
+ return a.value ? (l(), k(rt, { key: 0 }, {
2350
2351
  reference: C(() => [
2351
2352
  d("div", La, [
2352
2353
  c[0] || (c[0] = d("div", { class: "aside-user-mobile__icon text-lg" }, [
@@ -2403,7 +2404,7 @@ const ot = (n, e) => n.reduce(
2403
2404
  }, [
2404
2405
  _(r, null, {
2405
2406
  default: C(() => [
2406
- _(f(Fe))
2407
+ _(f(Oe))
2407
2408
  ]),
2408
2409
  _: 1
2409
2410
  })
@@ -2413,7 +2414,7 @@ const ot = (n, e) => n.reduce(
2413
2414
  _(c, { ref: "leftScrollRef" }, {
2414
2415
  default: C(() => [
2415
2416
  d("div", Ua, [
2416
- _(nt, { menus: f(e) }, null, 8, ["menus"])
2417
+ _(tt, { menus: f(e) }, null, 8, ["menus"])
2417
2418
  ])
2418
2419
  ]),
2419
2420
  _: 1
@@ -2442,7 +2443,7 @@ const ot = (n, e) => n.reduce(
2442
2443
  onLogout: (F = e.setting) == null ? void 0 : F.onLogout
2443
2444
  };
2444
2445
  });
2445
- Oe(() => void Ot(t.value));
2446
+ Je(() => void Jt(t.value));
2446
2447
  const { isMobile: a, sideOpen: o } = H();
2447
2448
  let s = "", r = !1;
2448
2449
  const c = () => void (o.value = !1), g = (m) => {
@@ -2471,9 +2472,9 @@ const ot = (n, e) => n.reduce(
2471
2472
  }
2472
2473
  },
2473
2474
  { immediate: !0 }
2474
- ), Re(() => {
2475
+ ), Ue(() => {
2475
2476
  window.addEventListener("keydown", h);
2476
- }), Ke(() => {
2477
+ }), Re(() => {
2477
2478
  window.removeEventListener("keydown", h), typeof document < "u" && r && (document.body.style.overflow = s);
2478
2479
  }), (m, v) => {
2479
2480
  const p = L("router-view");
@@ -2526,16 +2527,16 @@ const ot = (n, e) => n.reduce(
2526
2527
  }), Va = /* @__PURE__ */ D(za, [["__scopeId", "data-v-87720a5b"]]);
2527
2528
  export {
2528
2529
  Va as BaseLayout,
2529
- rt as LanguageSelect,
2530
+ st as LanguageSelect,
2530
2531
  Xa as LayoutBreadcrumb,
2531
- st as ThemeToggle,
2532
+ ot as ThemeToggle,
2532
2533
  Ga as TimezoneSelect,
2533
- Ue as UserAvatar,
2534
+ Be as UserAvatar,
2534
2535
  ha as UserInfo,
2535
2536
  ue as i18n,
2536
2537
  se as messages,
2537
- at as useApp,
2538
+ nt as useApp,
2538
2539
  H as useLayoutState,
2539
2540
  O as useSetting,
2540
- Xe as useTheme
2541
+ We as useTheme
2541
2542
  };