@huyooo/ui 2.0.7 → 2.0.9

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