@huyooo/ui 2.0.6 → 2.0.7

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,25 +1,25 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  import "./index-Cn6LcfZO.js";
4
- import { defineComponent as p, computed as b, openBlock as r, createElementBlock as _, toDisplayString as h, createCommentVNode as U, createVNode as f, unref as t, createBlock as v, withCtx as g, createTextVNode as k, ref as C, createElementVNode as d, watch as x, onMounted as ee, Fragment as q, renderSlot as A, normalizeClass as ne } from "vue";
5
- import { Avatar as G, Button as N, Dropdown as te, Badge as ae } from "@arco-design/web-vue";
6
- import { u as R } from "./useAuthkitUsersProfile-CW_exa7E.js";
4
+ import { defineComponent as m, computed as b, openBlock as r, createElementBlock as _, toDisplayString as $, createCommentVNode as U, createVNode as p, unref as t, withCtx as g, createBlock as f, createTextVNode as k, ref as C, createElementVNode as d, watch as x, onMounted as ee, Fragment as q, renderSlot as A, normalizeClass as ne } from "vue";
5
+ import { Avatar as G, Skeleton as te, SkeletonShape as ae, Button as N, Dropdown as se, Badge as oe } from "@arco-design/web-vue";
6
+ import { u as R } from "./useAuthkitUsersProfile-BclJWOvR.js";
7
7
  import { u as y } from "./useUserMenu-ClPBlvaM.js";
8
8
  /* empty css */
9
- import { g as J, a as se, R as oe } from "./ReferrerReferees-BU9IEQgz.js";
10
- import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ import { g as J, a as ie, R as re } from "./ReferrerReferees-Mvv6oiqe.js";
10
+ import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  /* empty css */
12
- import { u as ie } from "./apiClients-Ctcq8NZs.js";
13
- import { f as re, u as le, g as ue, c as ce, s as de, P as pe } from "./PaySubscriptions-BSkcUqHk.js";
14
- import { d as me } from "./useBillingStatusOptions-Br-iL77Z.js";
15
- import { A as fe } from "./AuthkitAppSetting-D_94iUEG.js";
16
- import { c as _e, u as K } from "./FeedbackModal.vue_vue_type_script_setup_true_lang-CnvQjQFT.js";
17
- import { M as ve } from "./MessageHandle-BUufez4S.js";
12
+ import { u as le } from "./apiClients-Ctcq8NZs.js";
13
+ import { f as ue, u as ce, g as de, c as pe, s as me, P as fe } from "./PaySubscriptions-BSkcUqHk.js";
14
+ import { d as _e } from "./useBillingStatusOptions-Br-iL77Z.js";
15
+ import { A as ve } from "./AuthkitAppSetting-CX4WTwNd.js";
16
+ import { c as ge, u as K } from "./FeedbackModal.vue_vue_type_script_setup_true_lang-BNBzOqrv.js";
17
+ import { M as be } from "./MessageHandle-BUufez4S.js";
18
18
  import "./Menu-uCexrsKP.js";
19
- import { Icon as ge } from "@iconify/vue";
20
- const be = {
19
+ import { Icon as Ue } from "@iconify/vue";
20
+ const ke = {
21
21
  class: "UserAvatar"
22
- }, Ue = ["title"], ke = /* @__PURE__ */ p({
22
+ }, ye = ["title"], Ie = /* @__PURE__ */ m({
23
23
  __name: "UserAvatar",
24
24
  props: {
25
25
  userId: {
@@ -39,29 +39,50 @@ const be = {
39
39
  }
40
40
  },
41
41
  setup(n) {
42
- const e = n, o = b(() => J({
42
+ const e = n, s = b(() => J({
43
43
  userId: e.userId,
44
44
  nickname: e.nickname,
45
45
  email: e.email,
46
46
  phone: e.phone
47
47
  }));
48
- return (a, i) => (r(), _("div", be, [o.value ? (r(), _("span", {
48
+ return (a, i) => (r(), _("div", ke, [s.value ? (r(), _("span", {
49
49
  key: 0,
50
50
  class: "UserAvatar__nickname",
51
- title: o.value
52
- }, h(o.value), 9, Ue)) : U("", !0), f(t(G), {
51
+ title: s.value
52
+ }, $(s.value), 9, ye)) : U("", !0), p(t(G), {
53
53
  "image-url": n.avatar,
54
54
  size: 32,
55
55
  "object-fit": "cover"
56
56
  }, null, 8, ["image-url"])]));
57
57
  }
58
- }), ye = /* @__PURE__ */ S(ke, [["__scopeId", "data-v-949e953e"]]), Ie = /* @__PURE__ */ p({
58
+ }), he = /* @__PURE__ */ I(Ie, [["__scopeId", "data-v-949e953e"]]), Se = {
59
+ class: "UserMenuAuthPlaceholder",
60
+ "aria-hidden": "true"
61
+ }, Be = /* @__PURE__ */ m({
62
+ __name: "UserMenuAuthPlaceholder",
63
+ props: {
64
+ size: {
65
+ default: 32
66
+ }
67
+ },
68
+ setup(n) {
69
+ return (e, s) => (r(), _("div", Se, [p(t(te), {
70
+ animation: !0
71
+ }, {
72
+ default: g(() => [p(t(ae), {
73
+ shape: "circle",
74
+ size: `${n.size}`
75
+ }, null, 8, ["size"])]),
76
+ _: 1
77
+ })]));
78
+ }
79
+ }), $e = /* @__PURE__ */ I(Be, [["__scopeId", "data-v-05239c44"]]), Me = /* @__PURE__ */ m({
59
80
  __name: "UserSignInButton",
60
81
  setup(n) {
61
82
  const {
62
83
  open: e
63
- } = ie();
64
- return (o, a) => (r(), v(t(N), {
84
+ } = le();
85
+ return (s, a) => (r(), f(t(N), {
65
86
  type: "primary",
66
87
  class: "UserSignInButton",
67
88
  onClick: a[0] || (a[0] = (i) => t(e)())
@@ -70,40 +91,40 @@ const be = {
70
91
  _: 1
71
92
  }));
72
93
  }
73
- }), Se = /* @__PURE__ */ S(Ie, [["__scopeId", "data-v-85695587"]]), Be = {}, $e = {
94
+ }), Ce = /* @__PURE__ */ I(Me, [["__scopeId", "data-v-85695587"]]), xe = {}, Ae = {
74
95
  class: "UserMenuDivider",
75
96
  role: "separator"
76
97
  };
77
- function he(n, e) {
78
- return r(), _("div", $e);
98
+ function Pe(n, e) {
99
+ return r(), _("div", Ae);
79
100
  }
80
- const Me = /* @__PURE__ */ S(Be, [["render", he], ["__scopeId", "data-v-c7d18d97"]]), Y = C(0);
81
- let P = null;
82
- function Ce() {
101
+ const we = /* @__PURE__ */ I(xe, [["render", Pe], ["__scopeId", "data-v-c7d18d97"]]), Y = C(0);
102
+ let w = null;
103
+ function De() {
83
104
  async function n() {
84
- return P || (P = (async () => {
105
+ return w || (w = (async () => {
85
106
  const {
86
107
  data: e,
87
- error: o
88
- } = await me.productOptions();
89
- o || !Array.isArray(e) || (Y.value = e.filter((a) => {
108
+ error: s
109
+ } = await _e.productOptions();
110
+ s || !Array.isArray(e) || (Y.value = e.filter((a) => {
90
111
  var i;
91
112
  return (i = a.prices) == null ? void 0 : i.some((c) => c.type === "recurring");
92
113
  }).length);
93
114
  })().finally(() => {
94
- P = null;
95
- }), P);
115
+ w = null;
116
+ }), w);
96
117
  }
97
118
  return {
98
119
  paidProductCount: Y,
99
120
  loadPaidProductCount: n
100
121
  };
101
122
  }
102
- const xe = {
123
+ const Ne = {
103
124
  class: "UserBasicInformation"
104
- }, Ae = {
125
+ }, Re = {
105
126
  class: "UserBasicInformation__extra"
106
- }, we = ["title"], Pe = ["title"], De = /* @__PURE__ */ p({
127
+ }, ze = ["title"], He = ["title"], Oe = /* @__PURE__ */ m({
107
128
  __name: "UserBasicInformation",
108
129
  props: {
109
130
  userId: {
@@ -126,44 +147,44 @@ const xe = {
126
147
  }
127
148
  },
128
149
  setup(n) {
129
- const e = n, o = b(() => ({
150
+ const e = n, s = b(() => ({
130
151
  userId: e.userId,
131
152
  nickname: e.nickname,
132
153
  email: e.email,
133
154
  phone: e.phone
134
- })), a = b(() => J(o.value)), i = b(() => se(o.value));
135
- return (c, s) => (r(), _("div", xe, [f(t(G), {
155
+ })), a = b(() => J(s.value)), i = b(() => ie(s.value));
156
+ return (c, o) => (r(), _("div", Ne, [p(t(G), {
136
157
  "image-url": n.avatarUrl,
137
158
  size: n.avatarSize,
138
159
  "object-fit": "cover"
139
- }, null, 8, ["image-url", "size"]), d("div", Ae, [d("span", {
160
+ }, null, 8, ["image-url", "size"]), d("div", Re, [d("span", {
140
161
  class: "UserBasicInformation__nickname",
141
162
  title: a.value
142
- }, h(a.value), 9, we), i.value ? (r(), _("span", {
163
+ }, $(a.value), 9, ze), i.value ? (r(), _("span", {
143
164
  key: 0,
144
165
  class: "UserBasicInformation__contact",
145
166
  title: i.value
146
- }, h(i.value), 9, Pe)) : U("", !0)])]));
167
+ }, $(i.value), 9, He)) : U("", !0)])]));
147
168
  }
148
- }), Q = /* @__PURE__ */ S(De, [["__scopeId", "data-v-cb95c00d"]]), Ne = {
169
+ }), Q = /* @__PURE__ */ I(Oe, [["__scopeId", "data-v-cb95c00d"]]), Ve = {
149
170
  class: "UserSubscriptionBaseInformation"
150
- }, Re = {
171
+ }, Te = {
151
172
  class: "UserSubscriptionBaseInformation__row"
152
- }, He = {
173
+ }, Le = {
153
174
  class: "UserSubscriptionBaseInformation__info"
154
- }, Oe = ["title"], Ve = {
175
+ }, Ee = ["title"], je = {
155
176
  key: 0,
156
177
  class: "UserSubscriptionBaseInformation__info"
157
- }, ze = ["title"], Te = {
178
+ }, Fe = ["title"], Xe = {
158
179
  class: "UserSubscriptionBaseInformation__row"
159
- }, Le = {
180
+ }, Ye = {
160
181
  class: "UserSubscriptionBaseInformation__info"
161
- }, Ee = {
182
+ }, qe = {
162
183
  class: "UserSubscriptionBaseInformation__value"
163
- }, je = {
184
+ }, Ge = {
164
185
  key: 1,
165
186
  class: "UserSubscriptionBaseInformation__row"
166
- }, Fe = /* @__PURE__ */ p({
187
+ }, Je = /* @__PURE__ */ m({
167
188
  __name: "UserSubscriptionBaseInformation",
168
189
  props: {
169
190
  currentVersionName: {
@@ -190,53 +211,53 @@ const xe = {
190
211
  setup(n, {
191
212
  emit: e
192
213
  }) {
193
- const o = n, a = e, i = b(() => re(o.pointsBalance));
194
- return (c, s) => (r(), _("div", Ne, [d("div", Re, [d("div", He, [s[3] || (s[3] = d("span", {
214
+ const s = n, a = e, i = b(() => ue(s.pointsBalance));
215
+ return (c, o) => (r(), _("div", Ve, [d("div", Te, [d("div", Le, [o[3] || (o[3] = d("span", {
195
216
  class: "UserSubscriptionBaseInformation__label"
196
217
  }, "当前权益:", -1)), d("span", {
197
218
  class: "UserSubscriptionBaseInformation__value",
198
219
  title: n.currentVersionName
199
- }, h(n.currentVersionName), 9, Oe)]), n.canUpgrade ? (r(), v(t(N), {
220
+ }, $(n.currentVersionName), 9, Ee)]), n.canUpgrade ? (r(), f(t(N), {
200
221
  key: 0,
201
222
  type: "primary",
202
223
  size: "mini",
203
224
  class: "UserSubscriptionBaseInformation__action",
204
225
  loading: n.loading,
205
- onClick: s[0] || (s[0] = (l) => a("upgradeHandle"))
226
+ onClick: o[0] || (o[0] = (l) => a("upgradeHandle"))
206
227
  }, {
207
- default: g(() => [k(h(n.actionLabel), 1)]),
228
+ default: g(() => [k($(n.actionLabel), 1)]),
208
229
  _: 1
209
- }, 8, ["loading"])) : U("", !0)]), n.expireDate ? (r(), _("div", Ve, [s[4] || (s[4] = d("span", {
230
+ }, 8, ["loading"])) : U("", !0)]), n.expireDate ? (r(), _("div", je, [o[4] || (o[4] = d("span", {
210
231
  class: "UserSubscriptionBaseInformation__label"
211
232
  }, "有效期至:", -1)), d("span", {
212
233
  class: "UserSubscriptionBaseInformation__value",
213
234
  title: n.expireDate
214
- }, h(n.expireDate), 9, ze)])) : U("", !0), d("div", Te, [d("div", Le, [s[5] || (s[5] = d("span", {
235
+ }, $(n.expireDate), 9, Fe)])) : U("", !0), d("div", Xe, [d("div", Ye, [o[5] || (o[5] = d("span", {
215
236
  class: "UserSubscriptionBaseInformation__label"
216
- }, "积分余额:", -1)), d("span", Ee, h(i.value), 1)]), f(t(N), {
237
+ }, "积分余额:", -1)), d("span", qe, $(i.value), 1)]), p(t(N), {
217
238
  type: "primary",
218
239
  size: "mini",
219
240
  class: "UserSubscriptionBaseInformation__action",
220
241
  loading: n.loading,
221
- onClick: s[1] || (s[1] = (l) => a("pointsHandle"))
242
+ onClick: o[1] || (o[1] = (l) => a("pointsHandle"))
222
243
  }, {
223
- default: g(() => [...s[6] || (s[6] = [k(" 充值 ", -1)])]),
244
+ default: g(() => [...o[6] || (o[6] = [k(" 充值 ", -1)])]),
224
245
  _: 1
225
- }, 8, ["loading"])]), typeof n.pendingInvoiceTotal == "number" && n.pendingInvoiceTotal > 0 ? (r(), _("div", je, [s[8] || (s[8] = d("span", {
246
+ }, 8, ["loading"])]), typeof n.pendingInvoiceTotal == "number" && n.pendingInvoiceTotal > 0 ? (r(), _("div", Ge, [o[8] || (o[8] = d("span", {
226
247
  class: "UserSubscriptionBaseInformation__warning"
227
- }, "有待支付订阅账单", -1)), f(t(N), {
248
+ }, "有待支付订阅账单", -1)), p(t(N), {
228
249
  type: "primary",
229
250
  status: "warning",
230
251
  size: "mini",
231
252
  class: "UserSubscriptionBaseInformation__action",
232
253
  loading: n.loading,
233
- onClick: s[2] || (s[2] = (l) => a("payHandle"))
254
+ onClick: o[2] || (o[2] = (l) => a("payHandle"))
234
255
  }, {
235
- default: g(() => [...s[7] || (s[7] = [k(" 去支付 ", -1)])]),
256
+ default: g(() => [...o[7] || (o[7] = [k(" 去支付 ", -1)])]),
236
257
  _: 1
237
258
  }, 8, ["loading"])])) : U("", !0)]));
238
259
  }
239
- }), Xe = /* @__PURE__ */ S(Fe, [["__scopeId", "data-v-7938abb7"]]), Ye = /* @__PURE__ */ p({
260
+ }), Ke = /* @__PURE__ */ I(Je, [["__scopeId", "data-v-7938abb7"]]), Qe = /* @__PURE__ */ m({
240
261
  __name: "UserMenuHeader",
241
262
  props: {
242
263
  showSubscription: {
@@ -256,45 +277,45 @@ const xe = {
256
277
  },
257
278
  setup(n) {
258
279
  const e = n, {
259
- userProfile: o
280
+ userProfile: s
260
281
  } = R(), {
261
282
  isOpen: a,
262
283
  openSubscriptions: i
263
284
  } = y(), {
264
285
  entitlement: c,
265
- pointsBalance: s,
286
+ pointsBalance: o,
266
287
  pendingInvoice: l,
267
- loading: m,
268
- refresh: B
269
- } = le(), {
270
- paidProductCount: I,
271
- loadPaidProductCount: $
272
- } = Ce(), u = b(() => e.currentVersionName ? e.currentVersionName : ue(c.value)), H = b(() => {
273
- var w;
274
- return e.expireDate || ((w = c.value) == null ? void 0 : w.endAt) || "";
275
- }), W = b(() => ce(c.value, I.value)), Z = b(() => de(c.value, I.value, e.canUpgrade));
276
- function O() {
277
- e.showSubscription && (B(), $());
288
+ loading: v,
289
+ refresh: S
290
+ } = ce(), {
291
+ paidProductCount: h,
292
+ loadPaidProductCount: B
293
+ } = De(), u = b(() => e.currentVersionName ? e.currentVersionName : de(c.value)), z = b(() => {
294
+ var P;
295
+ return e.expireDate || ((P = c.value) == null ? void 0 : P.endAt) || "";
296
+ }), W = b(() => pe(c.value, h.value)), Z = b(() => me(c.value, h.value, e.canUpgrade));
297
+ function H() {
298
+ e.showSubscription && (S(), B());
278
299
  }
279
- return x(a, (w) => {
280
- w && O();
300
+ return x(a, (P) => {
301
+ P && H();
281
302
  }), ee(() => {
282
- a.value && O();
283
- }), (w, M) => {
284
- var V, z, T, L, E, j, F;
285
- return r(), _(q, null, [f(Q, {
286
- "user-id": (V = t(o)) == null ? void 0 : V.id,
287
- "avatar-url": (z = t(o)) == null ? void 0 : z.avatarUrl,
288
- nickname: (T = t(o)) == null ? void 0 : T.nickname,
289
- email: (L = t(o)) == null ? void 0 : L.email,
290
- phone: (E = t(o)) == null ? void 0 : E.phone
291
- }, null, 8, ["user-id", "avatar-url", "nickname", "email", "phone"]), n.showSubscription ? (r(), v(Xe, {
303
+ a.value && H();
304
+ }), (P, M) => {
305
+ var O, V, T, L, E, j, F;
306
+ return r(), _(q, null, [p(Q, {
307
+ "user-id": (O = t(s)) == null ? void 0 : O.id,
308
+ "avatar-url": (V = t(s)) == null ? void 0 : V.avatarUrl,
309
+ nickname: (T = t(s)) == null ? void 0 : T.nickname,
310
+ email: (L = t(s)) == null ? void 0 : L.email,
311
+ phone: (E = t(s)) == null ? void 0 : E.phone
312
+ }, null, 8, ["user-id", "avatar-url", "nickname", "email", "phone"]), n.showSubscription ? (r(), f(Ke, {
292
313
  key: 0,
293
314
  "current-version-name": u.value,
294
- "expire-date": H.value,
295
- "points-balance": ((j = t(s)) == null ? void 0 : j.totalPoints) ?? 0,
315
+ "expire-date": z.value,
316
+ "points-balance": ((j = t(o)) == null ? void 0 : j.totalPoints) ?? 0,
296
317
  "pending-invoice-total": (F = t(l)) == null ? void 0 : F.total,
297
- loading: t(m),
318
+ loading: t(v),
298
319
  "can-upgrade": Z.value,
299
320
  "action-label": W.value,
300
321
  onUpgradeHandle: M[0] || (M[0] = (X) => t(i)()),
@@ -307,11 +328,11 @@ const xe = {
307
328
  }, null, 8, ["current-version-name", "expire-date", "points-balance", "pending-invoice-total", "loading", "can-upgrade", "action-label"])) : U("", !0)], 64);
308
329
  };
309
330
  }
310
- }), qe = {
331
+ }), We = {
311
332
  class: "UserMenu__content"
312
- }, Ge = {
333
+ }, Ze = {
313
334
  class: "UserMenu__header"
314
- }, Je = /* @__PURE__ */ p({
335
+ }, en = /* @__PURE__ */ m({
315
336
  __name: "UserMenu",
316
337
  props: {
317
338
  position: {
@@ -327,18 +348,22 @@ const xe = {
327
348
  setup(n) {
328
349
  const {
329
350
  userProfile: e,
330
- isLoggedIn: o
351
+ authSessionState: s
331
352
  } = R(), {
332
353
  isOpen: a,
333
354
  setOpen: i
334
355
  } = y(), c = b({
335
356
  get: () => a.value,
336
- set: (s) => i(s)
357
+ set: (o) => i(o)
337
358
  });
338
- return (s, l) => t(o) ? (r(), v(t(te), {
339
- key: 1,
359
+ return (o, l) => t(s) === "pending" ? (r(), f($e, {
360
+ key: 0
361
+ })) : t(s) === "unauthenticated" ? (r(), f(Ce, {
362
+ key: 1
363
+ })) : (r(), f(t(se), {
364
+ key: 2,
340
365
  "popup-visible": c.value,
341
- "onUpdate:popupVisible": l[0] || (l[0] = (m) => c.value = m),
366
+ "onUpdate:popupVisible": l[0] || (l[0] = (v) => c.value = v),
342
367
  class: "UserMenu",
343
368
  position: n.position,
344
369
  "popup-max-height": !1,
@@ -347,36 +372,34 @@ const xe = {
347
372
  "--user-menu-translate-y": n.dropdownOffsetY ?? "0"
348
373
  }
349
374
  }, {
350
- content: g(() => [d("div", qe, [d("div", Ge, [A(s.$slots, "header", {
375
+ content: g(() => [d("div", We, [d("div", Ze, [A(o.$slots, "header", {
351
376
  user: t(e)
352
- }, () => [f(Ye)], !0)]), s.$slots.items ? (r(), v(Me, {
377
+ }, () => [p(Qe)], !0)]), o.$slots.items ? (r(), f(we, {
353
378
  key: 0
354
- })) : U("", !0), A(s.$slots, "items", {}, void 0, !0)])]),
355
- default: g(() => [A(s.$slots, "trigger", {
379
+ })) : U("", !0), A(o.$slots, "items", {}, void 0, !0)])]),
380
+ default: g(() => [A(o.$slots, "trigger", {
356
381
  user: t(e)
357
382
  }, () => {
358
- var m, B, I, $, u;
359
- return [f(ye, {
360
- "user-id": (m = t(e)) == null ? void 0 : m.id,
361
- nickname: (B = t(e)) == null ? void 0 : B.nickname,
362
- email: (I = t(e)) == null ? void 0 : I.email,
363
- phone: ($ = t(e)) == null ? void 0 : $.phone,
383
+ var v, S, h, B, u;
384
+ return [p(he, {
385
+ "user-id": (v = t(e)) == null ? void 0 : v.id,
386
+ nickname: (S = t(e)) == null ? void 0 : S.nickname,
387
+ email: (h = t(e)) == null ? void 0 : h.email,
388
+ phone: (B = t(e)) == null ? void 0 : B.phone,
364
389
  avatar: (u = t(e)) == null ? void 0 : u.avatarUrl
365
390
  }, null, 8, ["user-id", "nickname", "email", "phone", "avatar"])];
366
391
  }, !0)]),
367
392
  _: 3
368
- }, 8, ["popup-visible", "position", "popup-style"])) : (r(), v(Se, {
369
- key: 0
370
- }));
393
+ }, 8, ["popup-visible", "position", "popup-style"]));
371
394
  }
372
- }), Sn = /* @__PURE__ */ S(Je, [["__scopeId", "data-v-65156499"]]), Ke = ["disabled"], Qe = {
395
+ }), Cn = /* @__PURE__ */ I(en, [["__scopeId", "data-v-dc67b4d9"]]), nn = ["disabled"], tn = {
373
396
  class: "UserMenuItem__label"
374
- }, We = {
397
+ }, an = {
375
398
  class: "UserMenuItem__label-text"
376
- }, Ze = {
399
+ }, sn = {
377
400
  key: 0,
378
401
  class: "UserMenuItem__icon"
379
- }, en = /* @__PURE__ */ p({
402
+ }, on = /* @__PURE__ */ m({
380
403
  __name: "UserMenuItem",
381
404
  props: {
382
405
  icon: {
@@ -402,123 +425,123 @@ const xe = {
402
425
  setup(n, {
403
426
  emit: e
404
427
  }) {
405
- const o = n, a = b(() => o.badge > 0), i = e, {
428
+ const s = n, a = b(() => s.badge > 0), i = e, {
406
429
  close: c
407
430
  } = y();
408
- function s(l) {
409
- l.stopPropagation(), !o.disabled && (o.closeOnClick && c(), i("click", l));
431
+ function o(l) {
432
+ l.stopPropagation(), !s.disabled && (s.closeOnClick && c(), i("click", l));
410
433
  }
411
- return (l, m) => (r(), _("button", {
434
+ return (l, v) => (r(), _("button", {
412
435
  type: "button",
413
436
  class: ne(["UserMenuItem", {
414
437
  "is-danger": n.danger,
415
438
  "is-disabled": n.disabled
416
439
  }]),
417
440
  disabled: n.disabled,
418
- onClick: s
419
- }, [d("span", Qe, [a.value ? (r(), v(t(ae), {
441
+ onClick: o
442
+ }, [d("span", tn, [a.value ? (r(), f(t(oe), {
420
443
  key: 0,
421
444
  count: n.badge,
422
445
  "max-count": 99,
423
446
  offset: [10, 0]
424
447
  }, {
425
- default: g(() => [d("span", We, [A(l.$slots, "default", {}, void 0, !0)])]),
448
+ default: g(() => [d("span", an, [A(l.$slots, "default", {}, void 0, !0)])]),
426
449
  _: 3
427
450
  }, 8, ["count"])) : A(l.$slots, "default", {
428
451
  key: 1
429
- }, void 0, !0)]), l.$slots.icon || n.icon ? (r(), _("span", Ze, [A(l.$slots, "icon", {}, () => [n.icon ? (r(), v(t(ge), {
452
+ }, void 0, !0)]), l.$slots.icon || n.icon ? (r(), _("span", sn, [A(l.$slots, "icon", {}, () => [n.icon ? (r(), f(t(Ue), {
430
453
  key: 0,
431
454
  icon: n.icon,
432
455
  width: 16,
433
456
  height: 16
434
- }, null, 8, ["icon"])) : U("", !0)], !0)])) : U("", !0)], 10, Ke));
457
+ }, null, 8, ["icon"])) : U("", !0)], !0)])) : U("", !0)], 10, nn));
435
458
  }
436
- }), D = /* @__PURE__ */ S(en, [["__scopeId", "data-v-d5d01729"]]), Bn = /* @__PURE__ */ p({
459
+ }), D = /* @__PURE__ */ I(on, [["__scopeId", "data-v-d5d01729"]]), xn = /* @__PURE__ */ m({
437
460
  __name: "UserMenuModals",
438
461
  setup(n) {
439
462
  const {
440
463
  settingTrigger: e,
441
- subscriptionsTrigger: o,
464
+ subscriptionsTrigger: s,
442
465
  subscriptionsOptions: a,
443
466
  messagesTrigger: i,
444
467
  feedbackTrigger: c,
445
- invitationsTrigger: s
446
- } = y(), l = C(null), m = C(null), B = C(null), I = C(null), $ = C(null);
468
+ invitationsTrigger: o
469
+ } = y(), l = C(null), v = C(null), S = C(null), h = C(null), B = C(null);
447
470
  return x(e, () => {
448
471
  var u;
449
472
  (u = l.value) == null || u.setData(null, !0);
450
- }), x(o, () => {
473
+ }), x(s, () => {
451
474
  var u;
452
- (u = m.value) == null || u.setData(a.value, !0);
475
+ (u = v.value) == null || u.setData(a.value, !0);
453
476
  }), x(i, () => {
454
477
  var u;
455
- (u = B.value) == null || u.openNotification();
478
+ (u = S.value) == null || u.openNotification();
456
479
  }), x(c, () => {
457
480
  var u;
458
- (u = I.value) == null || u.setData(!0);
459
- }), x(s, () => {
481
+ (u = h.value) == null || u.setData(!0);
482
+ }), x(o, () => {
460
483
  var u;
461
- (u = $.value) == null || u.setData(!0);
462
- }), (u, H) => (r(), _(q, null, [f(fe, {
484
+ (u = B.value) == null || u.setData(!0);
485
+ }), (u, z) => (r(), _(q, null, [p(ve, {
463
486
  ref_key: "appSettingRef",
464
487
  ref: l
465
- }, null, 512), f(pe, {
488
+ }, null, 512), p(fe, {
466
489
  ref_key: "paySubsRef",
467
- ref: m
468
- }, null, 512), f(ve, {
490
+ ref: v
491
+ }, null, 512), p(be, {
469
492
  ref_key: "messageHandleRef",
470
- ref: B
471
- }, null, 512), f(_e, {
493
+ ref: S
494
+ }, null, 512), p(ge, {
472
495
  ref_key: "feedbackModalRef",
473
- ref: I
474
- }, null, 512), f(oe, {
496
+ ref: h
497
+ }, null, 512), p(re, {
475
498
  ref_key: "refereesRef",
476
- ref: $
499
+ ref: B
477
500
  }, null, 512)], 64));
478
501
  }
479
- }), nn = {
502
+ }), rn = {
480
503
  class: "UserAccountMenu"
481
- }, tn = /* @__PURE__ */ p({
504
+ }, ln = /* @__PURE__ */ m({
482
505
  __name: "UserAccountMenu",
483
506
  setup(n) {
484
507
  const {
485
508
  userProfile: e
486
509
  } = R();
487
- return (o, a) => {
488
- var i, c, s, l, m;
489
- return r(), _("div", nn, [f(Q, {
510
+ return (s, a) => {
511
+ var i, c, o, l, v;
512
+ return r(), _("div", rn, [p(Q, {
490
513
  "user-id": (i = t(e)) == null ? void 0 : i.id,
491
514
  "avatar-url": (c = t(e)) == null ? void 0 : c.avatarUrl,
492
- nickname: (s = t(e)) == null ? void 0 : s.nickname,
515
+ nickname: (o = t(e)) == null ? void 0 : o.nickname,
493
516
  email: (l = t(e)) == null ? void 0 : l.email,
494
- phone: (m = t(e)) == null ? void 0 : m.phone
517
+ phone: (v = t(e)) == null ? void 0 : v.phone
495
518
  }, null, 8, ["user-id", "avatar-url", "nickname", "email", "phone"])]);
496
519
  };
497
520
  }
498
- }), $n = /* @__PURE__ */ S(tn, [["__scopeId", "data-v-fe79b69c"]]), hn = /* @__PURE__ */ p({
521
+ }), An = /* @__PURE__ */ I(ln, [["__scopeId", "data-v-fe79b69c"]]), Pn = /* @__PURE__ */ m({
499
522
  __name: "UserMenuMessageItem",
500
523
  setup(n) {
501
524
  const {
502
525
  openMessages: e
503
526
  } = y(), {
504
- messageUnreadCount: o
527
+ messageUnreadCount: s
505
528
  } = K();
506
- return (a, i) => (r(), v(D, {
529
+ return (a, i) => (r(), f(D, {
507
530
  icon: "lucide:chevron-right",
508
- badge: t(o),
531
+ badge: t(s),
509
532
  onClick: t(e)
510
533
  }, {
511
534
  default: g(() => [...i[0] || (i[0] = [k(" 消息中心 ", -1)])]),
512
535
  _: 1
513
536
  }, 8, ["badge", "onClick"]));
514
537
  }
515
- }), Mn = /* @__PURE__ */ p({
538
+ }), wn = /* @__PURE__ */ m({
516
539
  __name: "UserMenuSettingItem",
517
540
  setup(n) {
518
541
  const {
519
542
  openSetting: e
520
543
  } = y();
521
- return (o, a) => (r(), v(D, {
544
+ return (s, a) => (r(), f(D, {
522
545
  icon: "lucide:user-round",
523
546
  onClick: t(e)
524
547
  }, {
@@ -526,13 +549,13 @@ const xe = {
526
549
  _: 1
527
550
  }, 8, ["onClick"]));
528
551
  }
529
- }), Cn = /* @__PURE__ */ p({
552
+ }), Dn = /* @__PURE__ */ m({
530
553
  __name: "UserMenuSubscriptionItem",
531
554
  setup(n) {
532
555
  const {
533
556
  openSubscriptions: e
534
557
  } = y();
535
- return (o, a) => (r(), v(D, {
558
+ return (s, a) => (r(), f(D, {
536
559
  icon: "lucide:chevron-right",
537
560
  onClick: a[0] || (a[0] = (i) => t(e)())
538
561
  }, {
@@ -540,30 +563,30 @@ const xe = {
540
563
  _: 1
541
564
  }));
542
565
  }
543
- }), xn = /* @__PURE__ */ p({
566
+ }), Nn = /* @__PURE__ */ m({
544
567
  __name: "UserMenuFeedbackItem",
545
568
  setup(n) {
546
569
  const {
547
570
  openFeedback: e
548
571
  } = y(), {
549
- feedbackUnreadCount: o
572
+ feedbackUnreadCount: s
550
573
  } = K();
551
- return (a, i) => (r(), v(D, {
574
+ return (a, i) => (r(), f(D, {
552
575
  icon: "lucide:chevron-right",
553
- badge: t(o),
576
+ badge: t(s),
554
577
  onClick: t(e)
555
578
  }, {
556
579
  default: g(() => [...i[0] || (i[0] = [k(" 系统反馈 ", -1)])]),
557
580
  _: 1
558
581
  }, 8, ["badge", "onClick"]));
559
582
  }
560
- }), An = /* @__PURE__ */ p({
583
+ }), Rn = /* @__PURE__ */ m({
561
584
  __name: "UserMenuInvitationsItem",
562
585
  setup(n) {
563
586
  const {
564
587
  openInvitations: e
565
588
  } = y();
566
- return (o, a) => (r(), v(D, {
589
+ return (s, a) => (r(), f(D, {
567
590
  icon: "lucide:chevron-right",
568
591
  onClick: t(e)
569
592
  }, {
@@ -573,19 +596,19 @@ const xe = {
573
596
  }
574
597
  });
575
598
  export {
576
- $n as U,
577
- xn as _,
578
- ye as a,
599
+ An as U,
600
+ Nn as _,
601
+ he as a,
579
602
  Q as b,
580
- Sn as c,
581
- Me as d,
582
- Ye as e,
583
- An as f,
603
+ Cn as c,
604
+ we as d,
605
+ Qe as e,
606
+ Rn as f,
584
607
  D as g,
585
- hn as h,
586
- Bn as i,
587
- Mn as j,
588
- Cn as k,
589
- Se as l,
590
- Xe as m
608
+ Pn as h,
609
+ xn as i,
610
+ wn as j,
611
+ Dn as k,
612
+ Ce as l,
613
+ Ke as m
591
614
  };