smart-admin-web 10.12.2 → 10.13.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.
@@ -1,61 +1,64 @@
1
- import { defineComponent as le, ref as D, computed as M, openBlock as n, createElementBlock as m, createElementVNode as k, createBlock as i, unref as e, withCtx as o, createVNode as t, createCommentVNode as b, toDisplayString as u, Fragment as U, renderList as F, createTextVNode as f, resolveDynamicComponent as ae, normalizeClass as re, h as ne } from "vue";
2
- import { useRoute as se, useRouter as ie } from "vue-router";
3
- import { useMessage as ue, NButton as p, NBreadcrumb as pe, NBreadcrumbItem as ce, NMenu as q, NTooltip as h, NDropdown as A, NAvatar as de } from "naive-ui";
1
+ import { defineComponent as le, ref as F, computed as M, openBlock as n, createElementBlock as d, createElementVNode as k, createBlock as i, unref as e, withCtx as o, createVNode as t, createCommentVNode as g, toDisplayString as u, Fragment as U, renderList as A, createTextVNode as h, resolveDynamicComponent as re, normalizeClass as ne, h as se } from "vue";
2
+ import { useRoute as ie, useRouter as ue } from "vue-router";
3
+ import { useMessage as ce, NButton as p, NBreadcrumb as pe, NBreadcrumbItem as de, NMenu as q, NTooltip as v, NDropdown as T, NAvatar as me } from "naive-ui";
4
4
  import { Icon as c } from "@iconify/vue";
5
- import { useI18n as me } from "vue-i18n";
6
- import { useAppStore as fe } from "../stores/app.js";
7
- import { useUserStore as he } from "../stores/user.js";
8
- import { useAuthStore as ge } from "../stores/auth.js";
9
- import { useLayoutMenu as ve } from "../composables/useLayoutMenu.js";
10
- import { useMenuFlat as ye } from "../composables/useMenuFlat.js";
11
- import { useSite as be } from "../composables/useSite.js";
12
- import { useFullscreenToggle as ke } from "../composables/useFullscreenToggle.js";
13
- import { useHeaderTools as we } from "../composables/useHeaderTools.js";
14
- import { authApi as Ce } from "../api/index.js";
15
- import { clearClientCache as _e } from "../composables/clearClientCache.js";
5
+ import { useI18n as fe } from "vue-i18n";
6
+ import { useAppStore as he } from "../stores/app.js";
7
+ import { useUserStore as ge } from "../stores/user.js";
8
+ import { useAuthStore as ve } from "../stores/auth.js";
9
+ import { useLayoutMenu as ye } from "../composables/useLayoutMenu.js";
10
+ import { useMenuFlat as be } from "../composables/useMenuFlat.js";
11
+ import { useSite as ke } from "../composables/useSite.js";
12
+ import { useFullscreenToggle as we } from "../composables/useFullscreenToggle.js";
13
+ import { useHeaderTools as Ce } from "../composables/useHeaderTools.js";
14
+ import { authApi as _e } from "../api/index.js";
15
+ import { clearClientCache as Ne } from "../composables/clearClientCache.js";
16
16
  import { beginVoluntaryLogout as Se } from "../composables/useRealtime.js";
17
- import { resetRouter as Ne } from "../router/index.js";
18
- import { translateError as T } from "../utils/error.js";
19
- import Be from "../components/SmartLogo.vue.js";
20
- import Me from "../components/AppIcon.vue.js";
21
- import Ue from "./SettingsDrawer.vue.js";
22
- import qe from "../components/MenuSearch.vue.js";
23
- import ze from "./NoticeBell.vue.js";
24
- const Ie = { class: "bar" }, Le = { class: "left" }, Oe = {
17
+ import { resetRouter as Be } from "../router/index.js";
18
+ import { translateError as V } from "../utils/error.js";
19
+ import Me from "../components/SmartLogo.vue.js";
20
+ import Ue from "../components/AppIcon.vue.js";
21
+ import qe from "./SettingsDrawer.vue.js";
22
+ import Ie from "../components/MenuSearch.vue.js";
23
+ import xe from "./NoticeBell.vue.js";
24
+ const ze = { class: "bar" }, Le = { class: "left" }, Oe = {
25
25
  key: 1,
26
26
  class: "brand"
27
- }, $e = { class: "brand-name mobile-hide" }, xe = {
27
+ }, $e = { class: "brand-name mobile-hide" }, De = {
28
28
  key: 3,
29
29
  class: "title"
30
- }, De = {
30
+ }, Fe = {
31
31
  key: 0,
32
32
  class: "center"
33
- }, Fe = { class: "right" }, Ae = { class: "uname mobile-hide" }, io = /* @__PURE__ */ le({
33
+ }, Ae = { class: "right" }, Te = {
34
+ key: 0,
35
+ class: "tenant-tag mobile-hide"
36
+ }, Ve = { class: "tenant-tag-text" }, Ee = { class: "uname mobile-hide" }, pt = /* @__PURE__ */ le({
34
37
  __name: "AppHeader",
35
38
  props: {
36
39
  showCollapse: { type: Boolean, default: !0 },
37
40
  showBrand: { type: Boolean, default: !1 },
38
41
  topMenu: { default: null }
39
42
  },
40
- setup(g) {
41
- const d = fe(), { site: V } = be(), v = he(), z = ge(), I = se(), w = ie(), C = ue(), { t: s } = me(), {
42
- isSupported: E,
43
+ setup(y) {
44
+ const m = he(), { site: E } = ke(), f = ge(), I = ve(), x = ie(), w = ue(), C = ce(), { t: s } = fe(), {
45
+ isSupported: R,
43
46
  isFullscreen: _,
44
- toggle: R
45
- } = ke(), { menuOptions: H, l1Options: K, l2Options: j, activeKey: L, selectedL1: G, onSelect: O, onSelectL1: J } = ve(), P = ye(), Q = we(), S = D(!1), N = D(!1), W = M(() => {
46
- const r = I.meta.title;
47
+ toggle: H
48
+ } = we(), { menuOptions: K, l1Options: j, l2Options: G, activeKey: z, selectedL1: J, onSelect: L, onSelectL1: P } = ye(), Q = be(), W = Ce(), N = F(!1), S = F(!1), X = M(() => {
49
+ const r = x.meta.title;
47
50
  return r ? r.includes(".") ? s(r) : r : "";
48
- }), $ = M(() => {
51
+ }), O = M(() => {
49
52
  var r;
50
- return ((r = P.value.find((a) => a.path === I.path)) == null ? void 0 : r.breadcrumb) ?? [];
51
- }), X = [
53
+ return ((r = Q.value.find((l) => l.path === x.path)) == null ? void 0 : r.breadcrumb) ?? [];
54
+ }), Y = [
52
55
  { label: "简体中文", key: "zh-CN" },
53
56
  { label: "English", key: "en-US" }
54
57
  ];
55
- function Y(r) {
56
- d.setLocale(r);
58
+ function Z(r) {
59
+ m.setLocale(r);
57
60
  }
58
- const B = (r, a) => () => ne(c, { icon: r, width: 16, style: a ? { color: a } : void 0 }), Z = M(() => [
61
+ const B = (r, l) => () => se(c, { icon: r, width: 16, style: l ? { color: l } : void 0 }), ee = M(() => [
59
62
  { label: s("app.personalCenter"), key: "personal", icon: B("ph:user") },
60
63
  { label: s("app.clearCache"), key: "clearCache", icon: B("ph:broom") },
61
64
  { type: "divider", key: "d1" },
@@ -67,286 +70,297 @@ const Ie = { class: "bar" }, Le = { class: "left" }, Oe = {
67
70
  props: { style: "color: var(--color-danger)" }
68
71
  }
69
72
  ]);
70
- async function ee(r) {
71
- r === "personal" ? w.push("/personal/profile") : r === "clearCache" ? await oe() : r === "logout" && await te();
73
+ async function te(r) {
74
+ r === "personal" ? w.push("/personal/profile") : r === "clearCache" ? await oe() : r === "logout" && await ae();
72
75
  }
73
76
  async function oe() {
74
77
  try {
75
- await _e(), C.success(s("app.cacheCleared"));
78
+ await Ne(), C.success(s("app.cacheCleared"));
76
79
  } catch (r) {
77
- C.error(T(r));
80
+ C.error(V(r));
78
81
  }
79
82
  }
80
- async function te() {
83
+ async function ae() {
81
84
  await Se();
82
85
  try {
83
- await Ce.logout();
86
+ await _e.logout();
84
87
  } catch (r) {
85
- C.error(T(r));
88
+ C.error(V(r));
86
89
  }
87
- Ne(), z.reset(), v.clear(), w.replace("/login");
90
+ Be(), I.reset(), f.clear(), w.replace("/login");
88
91
  }
89
- return (r, a) => (n(), m("div", Ie, [
90
- k("div", Le, [
91
- g.showCollapse ? (n(), i(e(p), {
92
- key: 0,
93
- quaternary: "",
94
- circle: "",
95
- "aria-label": e(s)("app.collapse"),
96
- onClick: a[0] || (a[0] = (l) => e(d).toggleCollapsed())
97
- }, {
98
- default: o(() => [
92
+ return (r, l) => {
93
+ var $;
94
+ return n(), d("div", ze, [
95
+ k("div", Le, [
96
+ y.showCollapse ? (n(), i(e(p), {
97
+ key: 0,
98
+ quaternary: "",
99
+ circle: "",
100
+ "aria-label": e(s)("app.collapse"),
101
+ onClick: l[0] || (l[0] = (a) => e(m).toggleCollapsed())
102
+ }, {
103
+ default: o(() => [
104
+ t(e(c), {
105
+ icon: e(m).collapsed ? "ph:list" : "ph:sidebar-simple",
106
+ width: 20
107
+ }, null, 8, ["icon"])
108
+ ]),
109
+ _: 1
110
+ }, 8, ["aria-label"])) : g("", !0),
111
+ y.showBrand ? (n(), d("div", Oe, [
112
+ t(Me, { size: 26 }),
113
+ k("span", $e, u(e(E).title), 1)
114
+ ])) : g("", !0),
115
+ e(m).showBreadcrumb && O.value.length ? (n(), i(e(pe), { key: 2 }, {
116
+ default: o(() => [
117
+ (n(!0), d(U, null, A(O.value, (a, b) => (n(), i(e(de), { key: b }, {
118
+ default: o(() => [
119
+ h(u(a), 1)
120
+ ]),
121
+ _: 2
122
+ }, 1024))), 128))
123
+ ]),
124
+ _: 1
125
+ })) : (n(), d("span", De, u(X.value), 1))
126
+ ]),
127
+ y.topMenu ? (n(), d("div", Fe, [
128
+ y.topMenu === "full" ? (n(), i(e(q), {
129
+ key: 0,
130
+ mode: "horizontal",
131
+ responsive: "",
132
+ options: e(K),
133
+ value: e(z),
134
+ "onUpdate:value": e(L)
135
+ }, null, 8, ["options", "value", "onUpdate:value"])) : y.topMenu === "l1" ? (n(), i(e(q), {
136
+ key: 1,
137
+ mode: "horizontal",
138
+ responsive: "",
139
+ options: e(j),
140
+ value: e(J),
141
+ "onUpdate:value": e(P)
142
+ }, null, 8, ["options", "value", "onUpdate:value"])) : (n(), i(e(q), {
143
+ key: 2,
144
+ mode: "horizontal",
145
+ responsive: "",
146
+ options: e(G),
147
+ value: e(z),
148
+ "onUpdate:value": e(L)
149
+ }, null, 8, ["options", "value", "onUpdate:value"]))
150
+ ])) : g("", !0),
151
+ k("div", Ae, [
152
+ ($ = e(f).userInfo) != null && $.tenantName ? (n(), d("span", Te, [
99
153
  t(e(c), {
100
- icon: e(d).collapsed ? "ph:list" : "ph:sidebar-simple",
101
- width: 20
102
- }, null, 8, ["icon"])
103
- ]),
104
- _: 1
105
- }, 8, ["aria-label"])) : b("", !0),
106
- g.showBrand ? (n(), m("div", Oe, [
107
- t(Be, { size: 26 }),
108
- k("span", $e, u(e(V).title), 1)
109
- ])) : b("", !0),
110
- e(d).showBreadcrumb && $.value.length ? (n(), i(e(pe), { key: 2 }, {
111
- default: o(() => [
112
- (n(!0), m(U, null, F($.value, (l, y) => (n(), i(e(ce), { key: y }, {
113
- default: o(() => [
114
- f(u(l), 1)
115
- ]),
116
- _: 2
117
- }, 1024))), 128))
118
- ]),
119
- _: 1
120
- })) : (n(), m("span", xe, u(W.value), 1))
121
- ]),
122
- g.topMenu ? (n(), m("div", De, [
123
- g.topMenu === "full" ? (n(), i(e(q), {
124
- key: 0,
125
- mode: "horizontal",
126
- responsive: "",
127
- options: e(H),
128
- value: e(L),
129
- "onUpdate:value": e(O)
130
- }, null, 8, ["options", "value", "onUpdate:value"])) : g.topMenu === "l1" ? (n(), i(e(q), {
131
- key: 1,
132
- mode: "horizontal",
133
- responsive: "",
134
- options: e(K),
135
- value: e(G),
136
- "onUpdate:value": e(J)
137
- }, null, 8, ["options", "value", "onUpdate:value"])) : (n(), i(e(q), {
138
- key: 2,
139
- mode: "horizontal",
140
- responsive: "",
141
- options: e(j),
142
- value: e(L),
143
- "onUpdate:value": e(O)
144
- }, null, 8, ["options", "value", "onUpdate:value"]))
145
- ])) : b("", !0),
146
- k("div", Fe, [
147
- t(e(h), null, {
148
- trigger: o(() => [
149
- t(e(p), {
150
- quaternary: "",
151
- circle: "",
152
- class: "mobile-hide",
153
- onClick: a[1] || (a[1] = (l) => N.value = !0)
154
- }, {
155
- default: o(() => [
156
- t(e(c), {
157
- icon: "ph:magnifying-glass",
158
- width: 18
159
- })
160
- ]),
161
- _: 1
162
- })
163
- ]),
164
- default: o(() => [
165
- f(" " + u(e(s)("app.search")) + " (Ctrl+K) ", 1)
166
- ]),
167
- _: 1
168
- }),
169
- e(E) ? (n(), i(e(h), { key: 0 }, {
170
- trigger: o(() => [
171
- t(e(p), {
172
- quaternary: "",
173
- circle: "",
174
- class: "mobile-hide",
175
- "aria-label": e(_) ? e(s)("app.exitFullscreen") : e(s)("app.fullscreen"),
176
- onClick: a[2] || (a[2] = (l) => e(R)())
177
- }, {
178
- default: o(() => [
179
- t(e(c), {
180
- icon: e(_) ? "ph:arrows-in" : "ph:arrows-out",
181
- width: 18
182
- }, null, 8, ["icon"])
183
- ]),
184
- _: 1
185
- }, 8, ["aria-label"])
186
- ]),
187
- default: o(() => [
188
- f(" " + u(e(_) ? e(s)("app.exitFullscreen") : e(s)("app.fullscreen")), 1)
189
- ]),
190
- _: 1
191
- })) : b("", !0),
192
- t(e(h), null, {
193
- trigger: o(() => [
194
- t(e(p), {
195
- quaternary: "",
196
- circle: "",
197
- onClick: a[3] || (a[3] = (l) => e(d).toggleDark())
198
- }, {
199
- default: o(() => [
200
- t(e(c), {
201
- icon: e(d).isDark ? "ph:moon-stars" : "ph:sun",
202
- width: 18
203
- }, null, 8, ["icon"])
204
- ]),
205
- _: 1
206
- })
207
- ]),
208
- default: o(() => [
209
- f(" " + u(e(d).isDark ? e(s)("app.dark") : e(s)("app.light")), 1)
210
- ]),
211
- _: 1
212
- }),
213
- t(e(A), {
214
- options: X,
215
- onSelect: Y
216
- }, {
217
- default: o(() => [
218
- t(e(p), {
219
- quaternary: "",
220
- circle: "",
221
- class: "mobile-hide",
222
- "aria-label": e(s)("app.language")
223
- }, {
224
- default: o(() => [
225
- t(e(c), {
226
- icon: "ph:translate",
227
- width: 18
228
- })
229
- ]),
230
- _: 1
231
- }, 8, ["aria-label"])
232
- ]),
233
- _: 1
234
- }),
235
- t(e(h), null, {
236
- trigger: o(() => [
237
- t(e(p), {
238
- quaternary: "",
239
- circle: "",
240
- class: "mobile-hide",
241
- onClick: a[4] || (a[4] = (l) => S.value = !0)
242
- }, {
243
- default: o(() => [
244
- t(e(c), {
245
- icon: "ph:gear-six",
246
- width: 18
247
- })
248
- ]),
249
- _: 1
250
- })
251
- ]),
252
- default: o(() => [
253
- f(" " + u(e(s)("app.settings")), 1)
254
- ]),
255
- _: 1
256
- }),
257
- e(z).modules.length > 1 ? (n(), i(e(h), { key: 1 }, {
258
- trigger: o(() => [
259
- t(e(p), {
260
- quaternary: "",
261
- circle: "",
262
- "aria-label": e(s)("app.switchModule"),
263
- onClick: a[5] || (a[5] = (l) => e(w).push("/module"))
264
- }, {
265
- default: o(() => [
266
- t(e(c), {
267
- icon: "ph:squares-four",
268
- width: 18
269
- })
270
- ]),
271
- _: 1
272
- }, 8, ["aria-label"])
273
- ]),
274
- default: o(() => [
275
- f(" " + u(e(s)("app.switchModule")), 1)
276
- ]),
277
- _: 1
278
- })) : b("", !0),
279
- (n(!0), m(U, null, F(e(Q), (l) => (n(), m(U, {
280
- key: l.key
281
- }, [
282
- l.component ? (n(), i(ae(l.component), { key: 0 })) : (n(), i(e(h), { key: 1 }, {
154
+ icon: "ph:buildings",
155
+ width: 16,
156
+ class: "tenant-tag-icon"
157
+ }),
158
+ k("span", Ve, u(e(f).userInfo.tenantName), 1)
159
+ ])) : g("", !0),
160
+ t(e(v), null, {
161
+ trigger: o(() => [
162
+ t(e(p), {
163
+ quaternary: "",
164
+ circle: "",
165
+ class: "mobile-hide",
166
+ onClick: l[1] || (l[1] = (a) => S.value = !0)
167
+ }, {
168
+ default: o(() => [
169
+ t(e(c), {
170
+ icon: "ph:magnifying-glass",
171
+ width: 18
172
+ })
173
+ ]),
174
+ _: 1
175
+ })
176
+ ]),
177
+ default: o(() => [
178
+ h(" " + u(e(s)("app.search")) + " (Ctrl+K) ", 1)
179
+ ]),
180
+ _: 1
181
+ }),
182
+ e(R) ? (n(), i(e(v), { key: 1 }, {
283
183
  trigger: o(() => [
284
184
  t(e(p), {
285
185
  quaternary: "",
286
186
  circle: "",
287
- class: re({ "mobile-hide": !l.keepOnMobile }),
288
- "aria-label": l.label,
289
- onClick: (y) => l.onClick()
187
+ class: "mobile-hide",
188
+ "aria-label": e(_) ? e(s)("app.exitFullscreen") : e(s)("app.fullscreen"),
189
+ onClick: l[2] || (l[2] = (a) => e(H)())
290
190
  }, {
291
191
  default: o(() => [
292
- t(Me, {
293
- icon: l.icon,
294
- size: 18
192
+ t(e(c), {
193
+ icon: e(_) ? "ph:arrows-in" : "ph:arrows-out",
194
+ width: 18
295
195
  }, null, 8, ["icon"])
296
196
  ]),
297
- _: 2
298
- }, 1032, ["class", "aria-label", "onClick"])
197
+ _: 1
198
+ }, 8, ["aria-label"])
199
+ ]),
200
+ default: o(() => [
201
+ h(" " + u(e(_) ? e(s)("app.exitFullscreen") : e(s)("app.fullscreen")), 1)
202
+ ]),
203
+ _: 1
204
+ })) : g("", !0),
205
+ t(e(v), null, {
206
+ trigger: o(() => [
207
+ t(e(p), {
208
+ quaternary: "",
209
+ circle: "",
210
+ onClick: l[3] || (l[3] = (a) => e(m).toggleDark())
211
+ }, {
212
+ default: o(() => [
213
+ t(e(c), {
214
+ icon: e(m).isDark ? "ph:moon-stars" : "ph:sun",
215
+ width: 18
216
+ }, null, 8, ["icon"])
217
+ ]),
218
+ _: 1
219
+ })
220
+ ]),
221
+ default: o(() => [
222
+ h(" " + u(e(m).isDark ? e(s)("app.dark") : e(s)("app.light")), 1)
299
223
  ]),
224
+ _: 1
225
+ }),
226
+ t(e(T), {
227
+ options: Y,
228
+ onSelect: Z
229
+ }, {
300
230
  default: o(() => [
301
- f(" " + u(l.label), 1)
231
+ t(e(p), {
232
+ quaternary: "",
233
+ circle: "",
234
+ class: "mobile-hide",
235
+ "aria-label": e(s)("app.language")
236
+ }, {
237
+ default: o(() => [
238
+ t(e(c), {
239
+ icon: "ph:translate",
240
+ width: 18
241
+ })
242
+ ]),
243
+ _: 1
244
+ }, 8, ["aria-label"])
245
+ ]),
246
+ _: 1
247
+ }),
248
+ t(e(v), null, {
249
+ trigger: o(() => [
250
+ t(e(p), {
251
+ quaternary: "",
252
+ circle: "",
253
+ class: "mobile-hide",
254
+ onClick: l[4] || (l[4] = (a) => N.value = !0)
255
+ }, {
256
+ default: o(() => [
257
+ t(e(c), {
258
+ icon: "ph:gear-six",
259
+ width: 18
260
+ })
261
+ ]),
262
+ _: 1
263
+ })
264
+ ]),
265
+ default: o(() => [
266
+ h(" " + u(e(s)("app.settings")), 1)
267
+ ]),
268
+ _: 1
269
+ }),
270
+ e(I).modules.length > 1 ? (n(), i(e(v), { key: 2 }, {
271
+ trigger: o(() => [
272
+ t(e(p), {
273
+ quaternary: "",
274
+ circle: "",
275
+ "aria-label": e(s)("app.switchModule"),
276
+ onClick: l[5] || (l[5] = (a) => e(w).push("/module"))
277
+ }, {
278
+ default: o(() => [
279
+ t(e(c), {
280
+ icon: "ph:squares-four",
281
+ width: 18
282
+ })
283
+ ]),
284
+ _: 1
285
+ }, 8, ["aria-label"])
286
+ ]),
287
+ default: o(() => [
288
+ h(" " + u(e(s)("app.switchModule")), 1)
289
+ ]),
290
+ _: 1
291
+ })) : g("", !0),
292
+ (n(!0), d(U, null, A(e(W), (a) => (n(), d(U, {
293
+ key: a.key
294
+ }, [
295
+ a.component ? (n(), i(re(a.component), { key: 0 })) : (n(), i(e(v), { key: 1 }, {
296
+ trigger: o(() => [
297
+ t(e(p), {
298
+ quaternary: "",
299
+ circle: "",
300
+ class: ne({ "mobile-hide": !a.keepOnMobile }),
301
+ "aria-label": a.label,
302
+ onClick: (b) => a.onClick()
303
+ }, {
304
+ default: o(() => [
305
+ t(Ue, {
306
+ icon: a.icon,
307
+ size: 18
308
+ }, null, 8, ["icon"])
309
+ ]),
310
+ _: 2
311
+ }, 1032, ["class", "aria-label", "onClick"])
312
+ ]),
313
+ default: o(() => [
314
+ h(" " + u(a.label), 1)
315
+ ]),
316
+ _: 2
317
+ }, 1024))
318
+ ], 64))), 128)),
319
+ t(xe),
320
+ t(e(T), {
321
+ options: ee.value,
322
+ onSelect: te
323
+ }, {
324
+ default: o(() => [
325
+ t(e(p), {
326
+ quaternary: "",
327
+ "aria-label": e(s)("app.profile")
328
+ }, {
329
+ default: o(() => {
330
+ var a, b, D;
331
+ return [
332
+ (a = e(f).userInfo) != null && a.avatar ? (n(), i(e(me), {
333
+ key: 0,
334
+ round: "",
335
+ size: 22,
336
+ src: e(f).userInfo.avatar
337
+ }, null, 8, ["src"])) : (n(), i(e(c), {
338
+ key: 1,
339
+ icon: "ph:user-circle",
340
+ width: 20
341
+ })),
342
+ k("span", Ee, u(((b = e(f).userInfo) == null ? void 0 : b.name) ?? ((D = e(f).userInfo) == null ? void 0 : D.account) ?? ""), 1)
343
+ ];
344
+ }),
345
+ _: 1
346
+ }, 8, ["aria-label"])
302
347
  ]),
303
- _: 2
304
- }, 1024))
305
- ], 64))), 128)),
306
- t(ze),
307
- t(e(A), {
308
- options: Z.value,
309
- onSelect: ee
310
- }, {
311
- default: o(() => [
312
- t(e(p), {
313
- quaternary: "",
314
- "aria-label": e(s)("app.profile")
315
- }, {
316
- default: o(() => {
317
- var l, y, x;
318
- return [
319
- (l = e(v).userInfo) != null && l.avatar ? (n(), i(e(de), {
320
- key: 0,
321
- round: "",
322
- size: 22,
323
- src: e(v).userInfo.avatar
324
- }, null, 8, ["src"])) : (n(), i(e(c), {
325
- key: 1,
326
- icon: "ph:user-circle",
327
- width: 20
328
- })),
329
- k("span", Ae, u(((y = e(v).userInfo) == null ? void 0 : y.name) ?? ((x = e(v).userInfo) == null ? void 0 : x.account) ?? ""), 1)
330
- ];
331
- }),
332
- _: 1
333
- }, 8, ["aria-label"])
334
- ]),
335
- _: 1
336
- }, 8, ["options"])
337
- ]),
338
- t(Ue, {
339
- show: S.value,
340
- "onUpdate:show": a[6] || (a[6] = (l) => S.value = l)
341
- }, null, 8, ["show"]),
342
- t(qe, {
343
- show: N.value,
344
- "onUpdate:show": a[7] || (a[7] = (l) => N.value = l)
345
- }, null, 8, ["show"])
346
- ]));
348
+ _: 1
349
+ }, 8, ["options"])
350
+ ]),
351
+ t(qe, {
352
+ show: N.value,
353
+ "onUpdate:show": l[6] || (l[6] = (a) => N.value = a)
354
+ }, null, 8, ["show"]),
355
+ t(Ie, {
356
+ show: S.value,
357
+ "onUpdate:show": l[7] || (l[7] = (a) => S.value = a)
358
+ }, null, 8, ["show"])
359
+ ]);
360
+ };
347
361
  }
348
362
  });
349
363
  export {
350
- io as default
364
+ pt as default
351
365
  };
352
366
  //# sourceMappingURL=AppHeader2.vue.js.map