@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.
- package/dist/{AuthkitAppSetting-D_94iUEG.js → AuthkitAppSetting-CX4WTwNd.js} +1 -1
- package/dist/{FeedbackModal.vue_vue_type_script_setup_true_lang-CnvQjQFT.js → FeedbackModal.vue_vue_type_script_setup_true_lang-BNBzOqrv.js} +1 -1
- package/dist/{LegalDocViewer-DeDXQX3X.js → LegalDocViewer-DPUiWxcR.js} +2 -2
- package/dist/{ReferrerReferees-BU9IEQgz.js → ReferrerReferees-Mvv6oiqe.js} +1 -1
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DqgwJ7r3.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-V5EzZMCL.js} +204 -181
- package/dist/{WidthContainer-BIRNIRX5.js → WidthContainer-Dts5qV1W.js} +3 -3
- package/dist/authkit.js +3 -3
- package/dist/common.js +1 -1
- package/dist/components/UserMenu/parts/UserMenuAuthPlaceholder.vue.d.ts +7 -0
- package/dist/composables/Authkit/useAuthkitUsersProfile.d.ts +2 -0
- package/dist/composables.js +2 -2
- package/dist/feedback.js +1 -1
- package/dist/main.js +8 -8
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/useAuthkitUsersProfile-BclJWOvR.js +45 -0
- package/dist/{useRoutePermission-BrQX7NTq.js → useRoutePermission-CePjXomb.js} +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/useAuthkitUsersProfile-CW_exa7E.js +0 -39
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
import "./index-Cn6LcfZO.js";
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { Avatar as G, Button as N, Dropdown as
|
|
6
|
-
import { u as R } from "./useAuthkitUsersProfile-
|
|
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
|
|
10
|
-
import { _ as
|
|
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
|
|
13
|
-
import { f as
|
|
14
|
-
import { d as
|
|
15
|
-
import { A as
|
|
16
|
-
import { c as
|
|
17
|
-
import { M as
|
|
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
|
|
20
|
-
const
|
|
19
|
+
import { Icon as Ue } from "@iconify/vue";
|
|
20
|
+
const ke = {
|
|
21
21
|
class: "UserAvatar"
|
|
22
|
-
},
|
|
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,
|
|
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",
|
|
48
|
+
return (a, i) => (r(), _("div", ke, [s.value ? (r(), _("span", {
|
|
49
49
|
key: 0,
|
|
50
50
|
class: "UserAvatar__nickname",
|
|
51
|
-
title:
|
|
52
|
-
},
|
|
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
|
-
}),
|
|
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
|
-
} =
|
|
64
|
-
return (
|
|
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
|
-
}),
|
|
94
|
+
}), Ce = /* @__PURE__ */ I(Me, [["__scopeId", "data-v-85695587"]]), xe = {}, Ae = {
|
|
74
95
|
class: "UserMenuDivider",
|
|
75
96
|
role: "separator"
|
|
76
97
|
};
|
|
77
|
-
function
|
|
78
|
-
return r(), _("div",
|
|
98
|
+
function Pe(n, e) {
|
|
99
|
+
return r(), _("div", Ae);
|
|
79
100
|
}
|
|
80
|
-
const
|
|
81
|
-
let
|
|
82
|
-
function
|
|
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
|
|
105
|
+
return w || (w = (async () => {
|
|
85
106
|
const {
|
|
86
107
|
data: e,
|
|
87
|
-
error:
|
|
88
|
-
} = await
|
|
89
|
-
|
|
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
|
-
|
|
95
|
-
}),
|
|
115
|
+
w = null;
|
|
116
|
+
}), w);
|
|
96
117
|
}
|
|
97
118
|
return {
|
|
98
119
|
paidProductCount: Y,
|
|
99
120
|
loadPaidProductCount: n
|
|
100
121
|
};
|
|
101
122
|
}
|
|
102
|
-
const
|
|
123
|
+
const Ne = {
|
|
103
124
|
class: "UserBasicInformation"
|
|
104
|
-
},
|
|
125
|
+
}, Re = {
|
|
105
126
|
class: "UserBasicInformation__extra"
|
|
106
|
-
},
|
|
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,
|
|
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(
|
|
135
|
-
return (c,
|
|
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",
|
|
160
|
+
}, null, 8, ["image-url", "size"]), d("div", Re, [d("span", {
|
|
140
161
|
class: "UserBasicInformation__nickname",
|
|
141
162
|
title: a.value
|
|
142
|
-
},
|
|
163
|
+
}, $(a.value), 9, ze), i.value ? (r(), _("span", {
|
|
143
164
|
key: 0,
|
|
144
165
|
class: "UserBasicInformation__contact",
|
|
145
166
|
title: i.value
|
|
146
|
-
},
|
|
167
|
+
}, $(i.value), 9, He)) : U("", !0)])]));
|
|
147
168
|
}
|
|
148
|
-
}), Q = /* @__PURE__ */
|
|
169
|
+
}), Q = /* @__PURE__ */ I(Oe, [["__scopeId", "data-v-cb95c00d"]]), Ve = {
|
|
149
170
|
class: "UserSubscriptionBaseInformation"
|
|
150
|
-
},
|
|
171
|
+
}, Te = {
|
|
151
172
|
class: "UserSubscriptionBaseInformation__row"
|
|
152
|
-
},
|
|
173
|
+
}, Le = {
|
|
153
174
|
class: "UserSubscriptionBaseInformation__info"
|
|
154
|
-
},
|
|
175
|
+
}, Ee = ["title"], je = {
|
|
155
176
|
key: 0,
|
|
156
177
|
class: "UserSubscriptionBaseInformation__info"
|
|
157
|
-
},
|
|
178
|
+
}, Fe = ["title"], Xe = {
|
|
158
179
|
class: "UserSubscriptionBaseInformation__row"
|
|
159
|
-
},
|
|
180
|
+
}, Ye = {
|
|
160
181
|
class: "UserSubscriptionBaseInformation__info"
|
|
161
|
-
},
|
|
182
|
+
}, qe = {
|
|
162
183
|
class: "UserSubscriptionBaseInformation__value"
|
|
163
|
-
},
|
|
184
|
+
}, Ge = {
|
|
164
185
|
key: 1,
|
|
165
186
|
class: "UserSubscriptionBaseInformation__row"
|
|
166
|
-
},
|
|
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
|
|
194
|
-
return (c,
|
|
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
|
-
},
|
|
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:
|
|
226
|
+
onClick: o[0] || (o[0] = (l) => a("upgradeHandle"))
|
|
206
227
|
}, {
|
|
207
|
-
default: g(() => [k(
|
|
228
|
+
default: g(() => [k($(n.actionLabel), 1)]),
|
|
208
229
|
_: 1
|
|
209
|
-
}, 8, ["loading"])) : U("", !0)]), n.expireDate ? (r(), _("div",
|
|
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
|
-
},
|
|
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",
|
|
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:
|
|
242
|
+
onClick: o[1] || (o[1] = (l) => a("pointsHandle"))
|
|
222
243
|
}, {
|
|
223
|
-
default: g(() => [...
|
|
244
|
+
default: g(() => [...o[6] || (o[6] = [k(" 充值 ", -1)])]),
|
|
224
245
|
_: 1
|
|
225
|
-
}, 8, ["loading"])]), typeof n.pendingInvoiceTotal == "number" && n.pendingInvoiceTotal > 0 ? (r(), _("div",
|
|
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)),
|
|
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:
|
|
254
|
+
onClick: o[2] || (o[2] = (l) => a("payHandle"))
|
|
234
255
|
}, {
|
|
235
|
-
default: g(() => [...
|
|
256
|
+
default: g(() => [...o[7] || (o[7] = [k(" 去支付 ", -1)])]),
|
|
236
257
|
_: 1
|
|
237
258
|
}, 8, ["loading"])])) : U("", !0)]));
|
|
238
259
|
}
|
|
239
|
-
}),
|
|
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:
|
|
280
|
+
userProfile: s
|
|
260
281
|
} = R(), {
|
|
261
282
|
isOpen: a,
|
|
262
283
|
openSubscriptions: i
|
|
263
284
|
} = y(), {
|
|
264
285
|
entitlement: c,
|
|
265
|
-
pointsBalance:
|
|
286
|
+
pointsBalance: o,
|
|
266
287
|
pendingInvoice: l,
|
|
267
|
-
loading:
|
|
268
|
-
refresh:
|
|
269
|
-
} =
|
|
270
|
-
paidProductCount:
|
|
271
|
-
loadPaidProductCount:
|
|
272
|
-
} =
|
|
273
|
-
var
|
|
274
|
-
return e.expireDate || ((
|
|
275
|
-
}), W = b(() =>
|
|
276
|
-
function
|
|
277
|
-
e.showSubscription && (
|
|
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, (
|
|
280
|
-
|
|
300
|
+
return x(a, (P) => {
|
|
301
|
+
P && H();
|
|
281
302
|
}), ee(() => {
|
|
282
|
-
a.value &&
|
|
283
|
-
}), (
|
|
284
|
-
var
|
|
285
|
-
return r(), _(q, null, [
|
|
286
|
-
"user-id": (
|
|
287
|
-
"avatar-url": (
|
|
288
|
-
nickname: (T = t(
|
|
289
|
-
email: (L = t(
|
|
290
|
-
phone: (E = t(
|
|
291
|
-
}, null, 8, ["user-id", "avatar-url", "nickname", "email", "phone"]), n.showSubscription ? (r(),
|
|
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":
|
|
295
|
-
"points-balance": ((j = t(
|
|
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(
|
|
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
|
-
}),
|
|
331
|
+
}), We = {
|
|
311
332
|
class: "UserMenu__content"
|
|
312
|
-
},
|
|
333
|
+
}, Ze = {
|
|
313
334
|
class: "UserMenu__header"
|
|
314
|
-
},
|
|
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
|
-
|
|
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: (
|
|
357
|
+
set: (o) => i(o)
|
|
337
358
|
});
|
|
338
|
-
return (
|
|
339
|
-
key:
|
|
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] = (
|
|
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",
|
|
375
|
+
content: g(() => [d("div", We, [d("div", Ze, [A(o.$slots, "header", {
|
|
351
376
|
user: t(e)
|
|
352
|
-
}, () => [
|
|
377
|
+
}, () => [p(Qe)], !0)]), o.$slots.items ? (r(), f(we, {
|
|
353
378
|
key: 0
|
|
354
|
-
})) : U("", !0), A(
|
|
355
|
-
default: g(() => [A(
|
|
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
|
|
359
|
-
return [
|
|
360
|
-
"user-id": (
|
|
361
|
-
nickname: (
|
|
362
|
-
email: (
|
|
363
|
-
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"]))
|
|
369
|
-
key: 0
|
|
370
|
-
}));
|
|
393
|
+
}, 8, ["popup-visible", "position", "popup-style"]));
|
|
371
394
|
}
|
|
372
|
-
}),
|
|
395
|
+
}), Cn = /* @__PURE__ */ I(en, [["__scopeId", "data-v-dc67b4d9"]]), nn = ["disabled"], tn = {
|
|
373
396
|
class: "UserMenuItem__label"
|
|
374
|
-
},
|
|
397
|
+
}, an = {
|
|
375
398
|
class: "UserMenuItem__label-text"
|
|
376
|
-
},
|
|
399
|
+
}, sn = {
|
|
377
400
|
key: 0,
|
|
378
401
|
class: "UserMenuItem__icon"
|
|
379
|
-
},
|
|
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
|
|
428
|
+
const s = n, a = b(() => s.badge > 0), i = e, {
|
|
406
429
|
close: c
|
|
407
430
|
} = y();
|
|
408
|
-
function
|
|
409
|
-
l.stopPropagation(), !
|
|
431
|
+
function o(l) {
|
|
432
|
+
l.stopPropagation(), !s.disabled && (s.closeOnClick && c(), i("click", l));
|
|
410
433
|
}
|
|
411
|
-
return (l,
|
|
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:
|
|
419
|
-
}, [d("span",
|
|
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",
|
|
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",
|
|
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,
|
|
457
|
+
}, null, 8, ["icon"])) : U("", !0)], !0)])) : U("", !0)], 10, nn));
|
|
435
458
|
}
|
|
436
|
-
}), D = /* @__PURE__ */
|
|
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:
|
|
464
|
+
subscriptionsTrigger: s,
|
|
442
465
|
subscriptionsOptions: a,
|
|
443
466
|
messagesTrigger: i,
|
|
444
467
|
feedbackTrigger: c,
|
|
445
|
-
invitationsTrigger:
|
|
446
|
-
} = y(), l = 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(
|
|
473
|
+
}), x(s, () => {
|
|
451
474
|
var u;
|
|
452
|
-
(u =
|
|
475
|
+
(u = v.value) == null || u.setData(a.value, !0);
|
|
453
476
|
}), x(i, () => {
|
|
454
477
|
var u;
|
|
455
|
-
(u =
|
|
478
|
+
(u = S.value) == null || u.openNotification();
|
|
456
479
|
}), x(c, () => {
|
|
457
480
|
var u;
|
|
458
|
-
(u =
|
|
459
|
-
}), x(
|
|
481
|
+
(u = h.value) == null || u.setData(!0);
|
|
482
|
+
}), x(o, () => {
|
|
460
483
|
var u;
|
|
461
|
-
(u =
|
|
462
|
-
}), (u,
|
|
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),
|
|
488
|
+
}, null, 512), p(fe, {
|
|
466
489
|
ref_key: "paySubsRef",
|
|
467
|
-
ref:
|
|
468
|
-
}, null, 512),
|
|
490
|
+
ref: v
|
|
491
|
+
}, null, 512), p(be, {
|
|
469
492
|
ref_key: "messageHandleRef",
|
|
470
|
-
ref:
|
|
471
|
-
}, null, 512),
|
|
493
|
+
ref: S
|
|
494
|
+
}, null, 512), p(ge, {
|
|
472
495
|
ref_key: "feedbackModalRef",
|
|
473
|
-
ref:
|
|
474
|
-
}, null, 512),
|
|
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
|
-
}),
|
|
502
|
+
}), rn = {
|
|
480
503
|
class: "UserAccountMenu"
|
|
481
|
-
},
|
|
504
|
+
}, ln = /* @__PURE__ */ m({
|
|
482
505
|
__name: "UserAccountMenu",
|
|
483
506
|
setup(n) {
|
|
484
507
|
const {
|
|
485
508
|
userProfile: e
|
|
486
509
|
} = R();
|
|
487
|
-
return (
|
|
488
|
-
var i, c,
|
|
489
|
-
return r(), _("div",
|
|
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: (
|
|
515
|
+
nickname: (o = t(e)) == null ? void 0 : o.nickname,
|
|
493
516
|
email: (l = t(e)) == null ? void 0 : l.email,
|
|
494
|
-
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
|
-
}),
|
|
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:
|
|
527
|
+
messageUnreadCount: s
|
|
505
528
|
} = K();
|
|
506
|
-
return (a, i) => (r(),
|
|
529
|
+
return (a, i) => (r(), f(D, {
|
|
507
530
|
icon: "lucide:chevron-right",
|
|
508
|
-
badge: t(
|
|
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
|
-
}),
|
|
538
|
+
}), wn = /* @__PURE__ */ m({
|
|
516
539
|
__name: "UserMenuSettingItem",
|
|
517
540
|
setup(n) {
|
|
518
541
|
const {
|
|
519
542
|
openSetting: e
|
|
520
543
|
} = y();
|
|
521
|
-
return (
|
|
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
|
-
}),
|
|
552
|
+
}), Dn = /* @__PURE__ */ m({
|
|
530
553
|
__name: "UserMenuSubscriptionItem",
|
|
531
554
|
setup(n) {
|
|
532
555
|
const {
|
|
533
556
|
openSubscriptions: e
|
|
534
557
|
} = y();
|
|
535
|
-
return (
|
|
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
|
-
}),
|
|
566
|
+
}), Nn = /* @__PURE__ */ m({
|
|
544
567
|
__name: "UserMenuFeedbackItem",
|
|
545
568
|
setup(n) {
|
|
546
569
|
const {
|
|
547
570
|
openFeedback: e
|
|
548
571
|
} = y(), {
|
|
549
|
-
feedbackUnreadCount:
|
|
572
|
+
feedbackUnreadCount: s
|
|
550
573
|
} = K();
|
|
551
|
-
return (a, i) => (r(),
|
|
574
|
+
return (a, i) => (r(), f(D, {
|
|
552
575
|
icon: "lucide:chevron-right",
|
|
553
|
-
badge: t(
|
|
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
|
-
}),
|
|
583
|
+
}), Rn = /* @__PURE__ */ m({
|
|
561
584
|
__name: "UserMenuInvitationsItem",
|
|
562
585
|
setup(n) {
|
|
563
586
|
const {
|
|
564
587
|
openInvitations: e
|
|
565
588
|
} = y();
|
|
566
|
-
return (
|
|
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
|
-
|
|
577
|
-
|
|
578
|
-
|
|
599
|
+
An as U,
|
|
600
|
+
Nn as _,
|
|
601
|
+
he as a,
|
|
579
602
|
Q as b,
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
603
|
+
Cn as c,
|
|
604
|
+
we as d,
|
|
605
|
+
Qe as e,
|
|
606
|
+
Rn as f,
|
|
584
607
|
D as g,
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
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
|
};
|