@huyooo/ui 0.10.4 → 0.11.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.
Files changed (65) hide show
  1. package/dist/AuthkitSignInPhone-BWPCpUie.js +3034 -0
  2. package/dist/{Clipboard-CMm8I4Rb.js → Clipboard-CK_nROjb.js} +1 -1
  3. package/dist/CollapseItem-DUzZA6tx.js +124 -0
  4. package/dist/{Contact-Dgn8_it4.js → Contact-CpHU1bJ7.js} +2 -2
  5. package/dist/{CustomTable-CVZ4mFzi.js → CustomTable-1W5byjgJ.js} +3 -2
  6. package/dist/FeedbackModal-qAJLL3V3.js +1535 -0
  7. package/dist/{LandingPageSectionTabs-Dv_xOLqR.js → LandingPageSectionTabs-B6ZVxR47.js} +1 -1
  8. package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-D109kT8_.js +1282 -0
  9. package/dist/{PaySubscriptions-W6GJ28uE.js → PaySubscriptions-C4Een__-.js} +17 -16
  10. package/dist/{ReferrerReferees-C5Sjn7aD.js → ReferrerReferees-DIassvGO.js} +8 -8
  11. package/dist/{Upload.vue_vue_type_script_setup_true_lang-C4-In_x4.js → Upload.vue_vue_type_script_setup_true_lang-DA8VZBrl.js} +1 -1
  12. package/dist/UserAccountMenu-BIRTtjLb.js +266 -0
  13. package/dist/UserSubscriptionBaseInformation-BUs3qiHd.js +60 -0
  14. package/dist/WidthContainer-TXsvW1ut.js +673 -0
  15. package/dist/{apiClients-DJchWBAG.js → apiClients-ANEApCyY.js} +84 -75
  16. package/dist/authkit.d.ts +5 -6
  17. package/dist/authkit.js +43 -43
  18. package/dist/common.js +3 -3
  19. package/dist/components/Authkit/Auth/AuthkitServiceAgreementAndPrivacyProtection.vue.d.ts +5 -5
  20. package/dist/components/Authkit/AuthkitAuthModal.vue.d.ts +13 -31
  21. package/dist/components/Feedback/FeedbackBubbleEnd.vue.d.ts +1 -1
  22. package/dist/components/Feedback/FeedbackBubbleStart.vue.d.ts +1 -1
  23. package/dist/components/User/UserButton.vue.d.ts +1 -36
  24. package/dist/components/User/UserPanel.vue.d.ts +26 -201
  25. package/dist/components/User/UserPanelItem.vue.d.ts +38 -0
  26. package/dist/composables/Authkit/useAuthkitAuth.d.ts +34 -10
  27. package/dist/composables/Authkit/useAuthkitAuthModal.d.ts +22 -3
  28. package/dist/composables/Authkit/useLegalLinks.d.ts +34 -0
  29. package/dist/composables/Authkit/useOauth.d.ts +0 -1
  30. package/dist/composables.d.ts +3 -2
  31. package/dist/composables.js +27 -25
  32. package/dist/{useUploadCos-BO3W_uqs.js → cos-js-sdk-v5-BJ5AlBRu.js} +2232 -2469
  33. package/dist/feedback.js +15 -16
  34. package/dist/landingPage.js +1 -1
  35. package/dist/main.js +177 -177
  36. package/dist/message.js +9 -10
  37. package/dist/pay.js +1 -1
  38. package/dist/privateCom.js +1 -1
  39. package/dist/referrer.js +1 -1
  40. package/dist/style.css +1 -1
  41. package/dist/upload.js +2 -2
  42. package/dist/{useAuthkitAppsAuthPageInfo-C3EHOtlk.js → useAuthkitAppsAuthPageInfo-Da2yJTT-.js} +1 -1
  43. package/dist/{useAuthkitCreateAndUpdate-CPkogY7K.js → useAuthkitCreateAndUpdate-BLs5vQOu.js} +1 -1
  44. package/dist/useAuthkitUsersProfile-Cx8NXjlt.js +186 -0
  45. package/dist/{useDownloads-COXmopbe.js → useDownloads-DT5W2af6.js} +1 -1
  46. package/dist/useLegalLinks-BIF45kUt.js +60 -0
  47. package/dist/{useMessageNotifications-SIM85vdb.js → useMessageNotifications-CavBmgO7.js} +1 -1
  48. package/dist/{useSEO-DeAU9YEc.js → useSEO-MPXQf0dn.js} +2 -2
  49. package/dist/{useTableHandle-CWu0LbeI.js → useTableHandle--NSbZ-57.js} +1 -1
  50. package/dist/useUploadCos-D6y0INvP.js +242 -0
  51. package/dist/user.d.ts +1 -0
  52. package/dist/user.js +9 -7
  53. package/dist/utils/legalLinks.d.ts +22 -0
  54. package/package.json +1 -1
  55. package/dist/AuthkitAuthModal-De0eEWOC.js +0 -2112
  56. package/dist/AuthkitSignInPhone-DEUVn3Rq.js +0 -920
  57. package/dist/CollapseItem-BAuejDBZ.js +0 -57
  58. package/dist/FeedbackItem-CRiLkWMh.js +0 -495
  59. package/dist/FeedbackModal-B8WLPCy_.js +0 -1053
  60. package/dist/MessageHandle-DpIUeQ7U.js +0 -1147
  61. package/dist/MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BbtfWRUD.js +0 -142
  62. package/dist/UserAccountMenu-OdwonGFa.js +0 -633
  63. package/dist/WidthContainer-Cpdc67hQ.js +0 -652
  64. package/dist/index-CUfrjRxu.js +0 -73
  65. package/dist/useAuthkitUsersProfile-BqW74gfs.js +0 -172
@@ -1,633 +0,0 @@
1
- /* empty css */
2
- /* empty css */
3
- /* empty css */
4
- import { b as De, A as Ve } from "./AuthkitAuthModal-De0eEWOC.js";
5
- import { defineComponent as C, computed as P, openBlock as s, createElementBlock as g, normalizeStyle as ie, normalizeClass as se, createElementVNode as p, createVNode as c, unref as o, withCtx as l, createTextVNode as y, toDisplayString as S, createBlock as d, createCommentVNode as m, useModel as re, renderSlot as ae, mergeModels as D, ref as f, Fragment as Re } from "vue";
6
- import { Tag as ze, Button as le, Avatar as ue, Dropdown as Ne, Divider as ce, Doption as h } from "@arco-design/web-vue";
7
- import { S as Le } from "./PaySubscriptions-W6GJ28uE.js";
8
- import { R as je } from "./ReferrerReferees-C5Sjn7aD.js";
9
- import { a as N, u as He } from "./useAuthkitUsersProfile-BqW74gfs.js";
10
- import { g as oe, u as Fe } from "./apiClients-DJchWBAG.js";
11
- import { d as qe } from "./FeedbackModal-B8WLPCy_.js";
12
- import { M as Ee } from "./MessageHandle-DpIUeQ7U.js";
13
- /* empty css */
14
- /* empty css */
15
- import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- /* empty css */
17
- import { I as U } from "./index-CUfrjRxu.js";
18
- import { _ as de, g as pe, i as fe } from "./plugin-vue_export-helper-LjDO2Zua.js";
19
- import { Icon as Ke } from "@iconify/vue";
20
- const Te = C({
21
- name: "IconExport",
22
- props: {
23
- size: {
24
- type: [Number, String]
25
- },
26
- strokeWidth: {
27
- type: Number,
28
- default: 4
29
- },
30
- strokeLinecap: {
31
- type: String,
32
- default: "butt",
33
- validator: (e) => ["butt", "round", "square"].includes(e)
34
- },
35
- strokeLinejoin: {
36
- type: String,
37
- default: "miter",
38
- validator: (e) => ["arcs", "bevel", "miter", "miter-clip", "round"].includes(e)
39
- },
40
- rotate: Number,
41
- spin: Boolean
42
- },
43
- emits: {
44
- click: (e) => !0
45
- },
46
- setup(e, {
47
- emit: n
48
- }) {
49
- const t = pe("icon"), r = P(() => [t, `${t}-export`, {
50
- [`${t}-spin`]: e.spin
51
- }]), u = P(() => {
52
- const i = {};
53
- return e.size && (i.fontSize = fe(e.size) ? `${e.size}px` : e.size), e.rotate && (i.transform = `rotate(${e.rotate}deg)`), i;
54
- });
55
- return {
56
- cls: r,
57
- innerStyle: u,
58
- onClick: (i) => {
59
- n("click", i);
60
- }
61
- };
62
- }
63
- }), We = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
64
- function Xe(e, n, t, r, u, v) {
65
- return s(), g("svg", {
66
- viewBox: "0 0 48 48",
67
- fill: "none",
68
- xmlns: "http://www.w3.org/2000/svg",
69
- stroke: "currentColor",
70
- class: se(e.cls),
71
- style: ie(e.innerStyle),
72
- "stroke-width": e.strokeWidth,
73
- "stroke-linecap": e.strokeLinecap,
74
- "stroke-linejoin": e.strokeLinejoin,
75
- onClick: n[0] || (n[0] = (...i) => e.onClick && e.onClick(...i))
76
- }, n[1] || (n[1] = [p("path", {
77
- d: "M31.928 33.072 41 24.002l-9.072-9.072M16.858 24h24M31 41H7V7h24"
78
- }, null, -1)]), 14, We);
79
- }
80
- var R = /* @__PURE__ */ de(Te, [["render", Xe]]);
81
- const Ye = Object.assign(R, {
82
- install: (e, n) => {
83
- var t;
84
- const r = (t = n == null ? void 0 : n.iconPrefix) != null ? t : "";
85
- e.component(r + R.name, R);
86
- }
87
- }), Ge = C({
88
- name: "IconLaunch",
89
- props: {
90
- size: {
91
- type: [Number, String]
92
- },
93
- strokeWidth: {
94
- type: Number,
95
- default: 4
96
- },
97
- strokeLinecap: {
98
- type: String,
99
- default: "butt",
100
- validator: (e) => ["butt", "round", "square"].includes(e)
101
- },
102
- strokeLinejoin: {
103
- type: String,
104
- default: "miter",
105
- validator: (e) => ["arcs", "bevel", "miter", "miter-clip", "round"].includes(e)
106
- },
107
- rotate: Number,
108
- spin: Boolean
109
- },
110
- emits: {
111
- click: (e) => !0
112
- },
113
- setup(e, {
114
- emit: n
115
- }) {
116
- const t = pe("icon"), r = P(() => [t, `${t}-launch`, {
117
- [`${t}-spin`]: e.spin
118
- }]), u = P(() => {
119
- const i = {};
120
- return e.size && (i.fontSize = fe(e.size) ? `${e.size}px` : e.size), e.rotate && (i.transform = `rotate(${e.rotate}deg)`), i;
121
- });
122
- return {
123
- cls: r,
124
- innerStyle: u,
125
- onClick: (i) => {
126
- n("click", i);
127
- }
128
- };
129
- }
130
- }), Je = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
131
- function Qe(e, n, t, r, u, v) {
132
- return s(), g("svg", {
133
- viewBox: "0 0 48 48",
134
- fill: "none",
135
- stroke: "currentColor",
136
- xmlns: "http://www.w3.org/2000/svg",
137
- class: se(e.cls),
138
- style: ie(e.innerStyle),
139
- "stroke-width": e.strokeWidth,
140
- "stroke-linecap": e.strokeLinecap,
141
- "stroke-linejoin": e.strokeLinejoin,
142
- onClick: n[0] || (n[0] = (...i) => e.onClick && e.onClick(...i))
143
- }, n[1] || (n[1] = [p("path", {
144
- d: "M41 26v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h14M19.822 28.178 39.899 8.1M41 20V7H28"
145
- }, null, -1)]), 14, Je);
146
- }
147
- var z = /* @__PURE__ */ de(Ge, [["render", Qe]]);
148
- const Ze = Object.assign(z, {
149
- install: (e, n) => {
150
- var t;
151
- const r = (t = n == null ? void 0 : n.iconPrefix) != null ? t : "";
152
- e.component(r + z.name, z);
153
- }
154
- }), et = {
155
- class: "pricing"
156
- }, tt = {
157
- class: "base"
158
- }, nt = {
159
- class: "pricingInfo"
160
- }, ot = /* @__PURE__ */ C({
161
- __name: "UserSubscriptionBaseInformation",
162
- props: {
163
- currentVersionName: {
164
- type: String,
165
- required: !0
166
- },
167
- expireDate: {
168
- type: String,
169
- required: !0
170
- },
171
- canUpgrade: {
172
- type: Boolean,
173
- required: !0
174
- }
175
- },
176
- emits: ["upgradeHandle"],
177
- setup(e, {
178
- emit: n
179
- }) {
180
- const t = e, r = n;
181
- function u() {
182
- r("upgradeHandle");
183
- }
184
- return (v, i) => (s(), g("div", et, [p("div", tt, [p("div", nt, [i[0] || (i[0] = p("span", null, "我的订阅:", -1)), c(o(ze), {
185
- color: "arcoblue",
186
- style: {
187
- "border-radius": "6px"
188
- }
189
- }, {
190
- default: l(() => [y(S(t.currentVersionName), 1)]),
191
- _: 1
192
- })]), t.canUpgrade ? (s(), d(o(le), {
193
- key: 0,
194
- type: "primary",
195
- size: "mini",
196
- class: "updatePricing",
197
- onClick: u
198
- }, {
199
- default: l(() => [...i[1] || (i[1] = [y(" 升级 ", -1)])]),
200
- _: 1
201
- })) : m("", !0)]), p("span", null, "有效期至: " + S(t.expireDate), 1)]));
202
- }
203
- }), it = /* @__PURE__ */ I(ot, [["__scopeId", "data-v-1e32fa72"]]), st = {
204
- class: "userInfo"
205
- }, rt = {
206
- key: 0,
207
- class: "userName"
208
- }, at = /* @__PURE__ */ C({
209
- __name: "UserAvatar",
210
- props: {
211
- nickname: {
212
- type: String,
213
- default: ""
214
- },
215
- avatar: {
216
- type: String,
217
- default: ""
218
- }
219
- },
220
- setup(e) {
221
- const n = e;
222
- return (t, r) => (s(), g("div", st, [n.nickname ? (s(), g("span", rt, S(n.nickname), 1)) : m("", !0), c(o(ue), {
223
- "image-url": n.avatar,
224
- size: 32,
225
- "object-fit": "cover"
226
- }, null, 8, ["image-url"])]));
227
- }
228
- }), lt = /* @__PURE__ */ I(at, [["__scopeId", "data-v-36643afe"]]), ut = {
229
- class: "userInfo"
230
- }, ct = {
231
- class: "extra"
232
- }, dt = {
233
- class: "userName"
234
- }, pt = {
235
- class: "email"
236
- }, ft = {
237
- key: 0,
238
- class: "referrerId"
239
- }, mt = /* @__PURE__ */ C({
240
- __name: "UserBasicInformation",
241
- props: {
242
- nickname: {
243
- type: String,
244
- default: ""
245
- },
246
- email: {
247
- type: String,
248
- default: ""
249
- },
250
- avatarUrl: {
251
- type: String,
252
- default: ""
253
- },
254
- referrerId: {
255
- type: String,
256
- default: ""
257
- }
258
- },
259
- setup(e) {
260
- const n = e;
261
- return (t, r) => (s(), g("div", ut, [c(o(ue), {
262
- "image-url": n.avatarUrl,
263
- size: 42,
264
- "object-fit": "cover"
265
- }, null, 8, ["image-url"]), p("div", ct, [p("span", dt, S(n.nickname), 1), p("span", pt, S(n.email), 1), n.referrerId ? (s(), g("span", ft, " 邀请码:" + S(n.referrerId), 1)) : m("", !0)])]));
266
- }
267
- }), vt = /* @__PURE__ */ I(mt, [["__scopeId", "data-v-094943aa"]]), kt = {
268
- class: "dropdownContent"
269
- }, yt = {
270
- class: "header"
271
- }, gt = /* @__PURE__ */ C({
272
- __name: "UserButton",
273
- props: /* @__PURE__ */ D({
274
- position: {
275
- default: "bl"
276
- },
277
- dropdownOffsetX: {
278
- default: "0"
279
- },
280
- dropdownOffsetY: {
281
- default: "0"
282
- }
283
- }, {
284
- modelValue: {
285
- type: Boolean,
286
- default: !1
287
- },
288
- modelModifiers: {}
289
- }),
290
- emits: /* @__PURE__ */ D(["enterSystem", "toSignIn"], ["update:modelValue"]),
291
- setup(e, {
292
- emit: n
293
- }) {
294
- const t = e, r = n, {
295
- userProfile: u,
296
- isLoggedIn: v
297
- } = N();
298
- function i() {
299
- r("toSignIn");
300
- }
301
- const b = re(e, "modelValue");
302
- return ($, k) => o(v) ? (s(), d(o(Ne), {
303
- key: 1,
304
- popupVisible: b.value,
305
- "onUpdate:popupVisible": k[0] || (k[0] = (_) => b.value = _),
306
- class: "DropdownUserInfo",
307
- position: t.position,
308
- "popup-style": {
309
- "--dropdown-translate-x": t.dropdownOffsetX ?? "0",
310
- "--dropdown-translate-y": t.dropdownOffsetY ?? "0"
311
- }
312
- }, {
313
- content: l(() => {
314
- var _, B, A, O;
315
- return [p("div", kt, [p("div", yt, [c(vt, {
316
- "avatar-url": (_ = o(u)) == null ? void 0 : _.avatarUrl,
317
- nickname: (B = o(u)) == null ? void 0 : B.nickname,
318
- email: (A = o(u)) == null ? void 0 : A.email,
319
- "referrer-id": (O = o(u)) == null ? void 0 : O.referrerId
320
- }, null, 8, ["avatar-url", "nickname", "email", "referrer-id"]), c(it, {
321
- currentVersionName: "免费版本",
322
- "expire-date": "2025-01-01",
323
- "can-upgrade": !0
324
- })]), c(o(ce), {
325
- style: {
326
- margin: "10px 0px"
327
- }
328
- }), ae($.$slots, "DoptionList", {}, void 0, !0)])];
329
- }),
330
- default: l(() => {
331
- var _;
332
- return [c(lt, {
333
- avatar: (_ = o(u)) == null ? void 0 : _.avatarUrl
334
- }, null, 8, ["avatar"])];
335
- }),
336
- _: 3
337
- }, 8, ["popupVisible", "position", "popup-style"])) : (s(), d(o(le), {
338
- key: 0,
339
- type: "primary",
340
- class: "handle",
341
- onClick: i
342
- }, {
343
- default: l(() => [...k[1] || (k[1] = [y(" 登陆 ", -1)])]),
344
- _: 1
345
- }));
346
- }
347
- }), _t = /* @__PURE__ */ I(gt, [["__scopeId", "data-v-ba98c4bf"]]), bt = {
348
- class: "UserPanel"
349
- }, St = /* @__PURE__ */ C({
350
- __name: "UserPanel",
351
- props: /* @__PURE__ */ D({
352
- position: {
353
- default: "br"
354
- },
355
- dropdownOffsetX: {
356
- default: "0"
357
- },
358
- dropdownOffsetY: {
359
- default: "0"
360
- },
361
- visibleOptions: {
362
- default: () => ({
363
- messages: !0,
364
- setting: !0,
365
- subscription: !0,
366
- feedBack: !0,
367
- invitations: !0,
368
- homePage: !0,
369
- signOut: !0
370
- })
371
- }
372
- }, {
373
- modelValue: {
374
- type: Boolean,
375
- default: !1
376
- },
377
- modelModifiers: {}
378
- }),
379
- emits: /* @__PURE__ */ D(["toHomePage", "signOut", "signIn"], ["update:modelValue"]),
380
- setup(e, {
381
- emit: n
382
- }) {
383
- const t = e, r = f(), u = f(), v = f(Symbol("key")), i = n, {
384
- fetchUserProfile: b,
385
- clearUserProfile: $,
386
- isLoggedIn: k
387
- } = N(), {
388
- addSignInCallback: _,
389
- initializeAuth: B,
390
- clearAuth: A
391
- } = He();
392
- B() && b();
393
- const O = f(), L = f(Symbol("key")), j = f(), H = f(), me = f(Symbol("key")), ve = f(), ke = f(Symbol("key"));
394
- function ye(q) {
395
- const a = `https://ones.huyooo.com/AboutUsDetails?type=privacyPolicy&appId=${oe.appId}`;
396
- window.open(a, "_blank");
397
- }
398
- function ge(q) {
399
- const a = `https://ones.huyooo.com/AboutUsDetails?type=userServiceAgreement&appId=${oe.appId}`;
400
- window.open(a, "_blank");
401
- }
402
- const {
403
- show: _e
404
- } = Fe(), F = re(e, "modelValue");
405
- function be() {
406
- L.value = Symbol("key");
407
- }
408
- const V = f(), M = f(Symbol("key"));
409
- function Se() {
410
- M.value = Symbol("key");
411
- }
412
- function Ce() {
413
- M.value = Symbol("key");
414
- }
415
- function w() {
416
- _e.value = !0, i("signIn");
417
- }
418
- _(() => {
419
- b();
420
- });
421
- function he() {
422
- v.value = Symbol("key");
423
- }
424
- function $e() {
425
- u.value.show = !1;
426
- }
427
- function we() {
428
- M.value = Symbol("key");
429
- }
430
- function Ie() {
431
- V.value.setData(null, !0);
432
- }
433
- function Oe() {
434
- if (!k.value) {
435
- w();
436
- return;
437
- }
438
- V.value.setData(null, !0);
439
- }
440
- function Ue() {
441
- if (!k.value) {
442
- w();
443
- return;
444
- }
445
- j.value.openNotification();
446
- }
447
- function Be() {
448
- if (!k.value) {
449
- w();
450
- return;
451
- }
452
- H.value.setData(null, !0);
453
- }
454
- function Ae() {
455
- if (!k.value) {
456
- w();
457
- return;
458
- }
459
- r.value.setData(!0);
460
- }
461
- function Me() {
462
- if (!k.value) {
463
- w();
464
- return;
465
- }
466
- O.value.setData(!0);
467
- }
468
- function xe() {
469
- i("toHomePage");
470
- }
471
- async function Pe() {
472
- $(), A(), i("signOut");
473
- }
474
- return (q, a) => (s(), g("div", bt, [c(_t, {
475
- modelValue: F.value,
476
- "onUpdate:modelValue": a[0] || (a[0] = (x) => F.value = x),
477
- position: t.position,
478
- "dropdown-offset-x": t.dropdownOffsetX,
479
- "dropdown-offset-y": t.dropdownOffsetY,
480
- onToSignIn: w
481
- }, {
482
- DoptionList: l(() => {
483
- var x, E, K, T, W, X, Y, G, J, Q, Z, ee, te, ne;
484
- return [(x = t.visibleOptions) != null && x.messages ? (s(), d(o(h), {
485
- key: 0,
486
- value: "messages",
487
- class: "Doption",
488
- onClick: Ue
489
- }, {
490
- icon: l(() => [...a[1] || (a[1] = [y("消息中心", -1)])]),
491
- default: l(() => [c(o(U))]),
492
- _: 1
493
- })) : m("", !0), (E = t.visibleOptions) != null && E.setting ? (s(), d(o(h), {
494
- key: 1,
495
- value: "setting",
496
- class: "Doption",
497
- onClick: Oe
498
- }, {
499
- icon: l(() => [...a[2] || (a[2] = [y("系统设置 ", -1)])]),
500
- default: l(() => [c(o(U))]),
501
- _: 1
502
- })) : m("", !0), (K = t.visibleOptions) != null && K.subscription ? (s(), d(o(h), {
503
- key: 2,
504
- value: "subscription",
505
- class: "Doption",
506
- onClick: Be
507
- }, {
508
- icon: l(() => [...a[3] || (a[3] = [y("订阅信息 ", -1)])]),
509
- default: l(() => [c(o(U))]),
510
- _: 1
511
- })) : m("", !0), (T = t.visibleOptions) != null && T.feedBack ? (s(), d(o(h), {
512
- key: 3,
513
- value: "feedBack",
514
- class: "Doption",
515
- onClick: Ae
516
- }, {
517
- icon: l(() => [...a[4] || (a[4] = [y("系统反馈 ", -1)])]),
518
- default: l(() => [c(o(U))]),
519
- _: 1
520
- })) : m("", !0), (W = t.visibleOptions) != null && W.invitations ? (s(), d(o(h), {
521
- key: 4,
522
- value: "invitations",
523
- class: "Doption",
524
- onClick: Me
525
- }, {
526
- icon: l(() => [...a[5] || (a[5] = [y("邀请 ", -1)])]),
527
- default: l(() => [c(o(U))]),
528
- _: 1
529
- })) : m("", !0), ((X = t.visibleOptions) != null && X.messages || (Y = t.visibleOptions) != null && Y.setting || (G = t.visibleOptions) != null && G.subscription || (J = t.visibleOptions) != null && J.feedBack || (Q = t.visibleOptions) != null && Q.invitations) && ((Z = t.visibleOptions) != null && Z.homePage || (ee = t.visibleOptions) != null && ee.signOut) ? (s(), d(o(ce), {
530
- key: 5,
531
- style: {
532
- margin: "10px 0px"
533
- }
534
- })) : m("", !0), (te = t.visibleOptions) != null && te.homePage ? (s(), d(o(h), {
535
- key: 6,
536
- value: "homePage",
537
- class: "Doption",
538
- onClick: xe
539
- }, {
540
- icon: l(() => [...a[6] || (a[6] = [y("主页 ", -1)])]),
541
- default: l(() => [c(o(Ze))]),
542
- _: 1
543
- })) : m("", !0), (ne = t.visibleOptions) != null && ne.signOut ? (s(), d(o(h), {
544
- key: 7,
545
- value: "signOut",
546
- class: "Doption",
547
- onClick: Pe
548
- }, {
549
- icon: l(() => [...a[7] || (a[7] = [y("退出登陆 ", -1)])]),
550
- default: l(() => [c(o(Ye))]),
551
- _: 1
552
- })) : m("", !0)];
553
- }),
554
- _: 1
555
- }, 8, ["modelValue", "position", "dropdown-offset-x", "dropdown-offset-y"]), (s(), d(De, {
556
- ref_key: "AuthModalRef",
557
- ref: ve,
558
- key: ke.value,
559
- size: "large",
560
- onToPrivacyPolicy: ye,
561
- onToUserServiceAgreement: ge
562
- })), o(k) ? (s(), g(Re, {
563
- key: 0
564
- }, [(s(), d(Ve, {
565
- ref_key: "AppSettingRef",
566
- ref: V,
567
- key: M.value,
568
- onConfirm: Ie,
569
- onCancel: we
570
- })), (s(), d(je, {
571
- ref_key: "RefereesRef",
572
- ref: O,
573
- key: L.value,
574
- onCancel: be
575
- })), (s(), d(Le, {
576
- ref_key: "SubscriptionsRef",
577
- ref: H,
578
- key: me.value,
579
- title: "订阅详情",
580
- onConfirm: Se,
581
- onCancel: Ce
582
- })), c(Ee, {
583
- ref_key: "MessageHandleRef",
584
- ref: j
585
- }, null, 512), (s(), d(qe, {
586
- ref_key: "FeedBackModalRef",
587
- ref: r,
588
- key: v.value,
589
- onConfirm: $e,
590
- onCancel: he
591
- }))], 64)) : m("", !0)]));
592
- }
593
- }), Wt = /* @__PURE__ */ I(St, [["__scopeId", "data-v-656b2ccb"]]), Ct = {
594
- class: "UserAccountMenu"
595
- }, ht = {
596
- class: "avatar"
597
- }, $t = {
598
- class: "meta"
599
- }, wt = {
600
- class: "name"
601
- }, It = {
602
- class: "email"
603
- }, Ot = /* @__PURE__ */ C({
604
- __name: "UserAccountMenu",
605
- emits: ["arrowClick"],
606
- setup(e, {
607
- emit: n
608
- }) {
609
- const {
610
- userProfile: t
611
- } = N(), r = n;
612
- function u() {
613
- r("arrowClick");
614
- }
615
- return (v, i) => {
616
- var b, $;
617
- return s(), g("div", Ct, [p("div", ht, [ae(v.$slots, "avatar", {}, void 0, !0)]), p("div", $t, [p("div", wt, S(((b = o(t)) == null ? void 0 : b.nickname) || ""), 1), p("div", It, S((($ = o(t)) == null ? void 0 : $.email) || ""), 1)]), p("div", {
618
- class: "arrow",
619
- onClick: u
620
- }, [c(o(Ke), {
621
- icon: "lucide:chevrons-up-down"
622
- })])]);
623
- };
624
- }
625
- }), Xt = /* @__PURE__ */ I(Ot, [["__scopeId", "data-v-e3c824dc"]]);
626
- export {
627
- it as S,
628
- Xt as U,
629
- lt as a,
630
- vt as b,
631
- _t as c,
632
- Wt as d
633
- };