@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.
- package/dist/{AuthkitAppSetting-CX4WTwNd.js → AuthkitAppSetting-DoC2RJh7.js} +787 -752
- package/dist/{Contact-CBGSJC2q.js → Contact-Ck3LVLx-.js} +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
- package/dist/{LandingPageLinkGroup-BZJ48Yss.js → LandingPageLinkGroup-DTFhrYK1.js} +1 -1
- package/dist/{LandingPageSectionTabs-jRjkWlM-.js → LandingPageSectionTabs-Bm_zZrfT.js} +1 -1
- package/dist/LegalDocViewer-DBr0x1ZE.js +2497 -0
- package/dist/{Logo-D7fyXyB-.js → Logo-B9DFBxDU.js} +1 -1
- package/dist/{PaySubscriptions-BSkcUqHk.js → PaySubscriptions-Bv6LQ_Pf.js} +1 -1
- package/dist/{PricingPlans-CyFvgf18.js → PricingPlans-CQaXgOIR.js} +3 -3
- package/dist/{ReferrerReferees-Mvv6oiqe.js → ReferrerReferees-CGrH-gYJ.js} +1 -1
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-oa6LJgCY.js → Upload.vue_vue_type_script_setup_true_lang-CgZQOZYt.js} +1 -1
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-V5EzZMCL.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-QE1ARaXY.js} +195 -211
- package/dist/WidthContainer-Clc_WxY_.js +706 -0
- package/dist/authkit.d.ts +1 -0
- package/dist/authkit.js +51 -50
- package/dist/common/globalConfig.d.ts +0 -5
- package/dist/common.js +2 -2
- package/dist/components/Authkit/Auth/AuthkitOauthCallback.vue.d.ts +1 -3
- package/dist/components/Gradientbackground.vue.d.ts +1 -1
- package/dist/components/UserMenu/UserMenu.vue.d.ts +2 -2
- package/dist/composables/Authkit/oauthCallback.d.ts +14 -0
- package/dist/composables/Authkit/useAppBrand.d.ts +7 -0
- package/dist/composables/Authkit/useAuthkitUsersProfile.d.ts +2 -0
- package/dist/composables/Authkit/useOAuthCallbackHandler.d.ts +11 -0
- package/dist/composables/Authkit/useOauth.d.ts +3 -3
- package/dist/composables.d.ts +1 -0
- package/dist/composables.js +39 -38
- package/dist/feedback.js +1 -1
- package/dist/{fetchAuthPageAboutUs-CP5a7jIo.js → fetchAuthPageAboutUs-DV7ArpNZ.js} +1 -1
- package/dist/landingPage.js +3 -3
- package/dist/main.js +239 -237
- package/dist/pay.js +3 -3
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/{runtime-qs4IasEB.js → runtime-Dp7MgwhI.js} +115 -116
- package/dist/style.css +1 -1
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAuth-BPTZUSkM.js → useAuthkitAuth-cHrJMM8E.js} +48 -47
- package/dist/useAuthkitUsersProfile-8FzLTfUJ.js +55 -0
- package/dist/{useEnsureAuthenticated-CncOvj2H.js → useEnsureAuthenticated-C8qS8DLL.js} +1 -1
- package/dist/{useLegalDocs-BZlntAI7.js → useLegalDocs-C4qk5CTb.js} +1 -1
- package/dist/{usePageSEO-DwhbUUjW.js → usePageSEO-Dl6_kBWP.js} +1 -1
- package/dist/useRoutePermission-DYPZgvYv.js +247 -0
- package/dist/{useSubscriptionCheckout-BDDCRxSs.js → useSubscriptionCheckout-CYU2Ke0y.js} +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/LegalDocViewer-DPUiWxcR.js +0 -2492
- package/dist/WidthContainer-Dts5qV1W.js +0 -717
- package/dist/components/UserMenu/parts/UserMenuAuthPlaceholder.vue.d.ts +0 -7
- package/dist/useAuthkitUsersProfile-BclJWOvR.js +0 -45
- 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
|
|
5
|
-
import { Avatar as
|
|
6
|
-
import { u as R } from "./useAuthkitUsersProfile-
|
|
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
|
|
10
|
-
import { _ as
|
|
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
|
|
13
|
-
import { f as
|
|
14
|
-
import { d as
|
|
15
|
-
import { A as
|
|
16
|
-
import { c as
|
|
17
|
-
import { M as
|
|
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
|
|
20
|
-
const
|
|
19
|
+
import { Icon as ge } from "@iconify/vue";
|
|
20
|
+
const be = {
|
|
21
21
|
class: "UserAvatar"
|
|
22
|
-
},
|
|
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,
|
|
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 (
|
|
48
|
+
return (s, i) => (r(), p("div", be, [o.value ? (r(), p("span", {
|
|
49
49
|
key: 0,
|
|
50
50
|
class: "UserAvatar__nickname",
|
|
51
|
-
title:
|
|
52
|
-
}, $(
|
|
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
|
-
}),
|
|
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
|
-
} =
|
|
85
|
-
return (
|
|
63
|
+
} = ie();
|
|
64
|
+
return (o, s) => (r(), v(t(N), {
|
|
86
65
|
type: "primary",
|
|
87
66
|
class: "UserSignInButton",
|
|
88
|
-
onClick:
|
|
67
|
+
onClick: s[0] || (s[0] = (i) => t(e)())
|
|
89
68
|
}, {
|
|
90
|
-
default: g(() => [...
|
|
69
|
+
default: g(() => [...s[1] || (s[1] = [k("登录", -1)])]),
|
|
91
70
|
_: 1
|
|
92
71
|
}));
|
|
93
72
|
}
|
|
94
|
-
}),
|
|
73
|
+
}), he = /* @__PURE__ */ h(Ie, [["__scopeId", "data-v-85695587"]]), Se = {}, Be = {
|
|
95
74
|
class: "UserMenuDivider",
|
|
96
75
|
role: "separator"
|
|
97
76
|
};
|
|
98
|
-
function
|
|
99
|
-
return r(),
|
|
77
|
+
function $e(n, e) {
|
|
78
|
+
return r(), p("div", Be);
|
|
100
79
|
}
|
|
101
|
-
const
|
|
102
|
-
let
|
|
103
|
-
function
|
|
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
|
|
84
|
+
return P || (P = (async () => {
|
|
106
85
|
const {
|
|
107
86
|
data: e,
|
|
108
|
-
error:
|
|
109
|
-
} = await
|
|
110
|
-
|
|
87
|
+
error: o
|
|
88
|
+
} = await me.productOptions();
|
|
89
|
+
o || !Array.isArray(e) || (Y.value = e.filter((s) => {
|
|
111
90
|
var i;
|
|
112
|
-
return (i =
|
|
91
|
+
return (i = s.prices) == null ? void 0 : i.some((c) => c.type === "recurring");
|
|
113
92
|
}).length);
|
|
114
93
|
})().finally(() => {
|
|
115
|
-
|
|
116
|
-
}),
|
|
94
|
+
P = null;
|
|
95
|
+
}), P);
|
|
117
96
|
}
|
|
118
97
|
return {
|
|
119
98
|
paidProductCount: Y,
|
|
120
99
|
loadPaidProductCount: n
|
|
121
100
|
};
|
|
122
101
|
}
|
|
123
|
-
const
|
|
102
|
+
const xe = {
|
|
124
103
|
class: "UserBasicInformation"
|
|
125
|
-
},
|
|
104
|
+
}, Ae = {
|
|
126
105
|
class: "UserBasicInformation__extra"
|
|
127
|
-
},
|
|
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,
|
|
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
|
-
})),
|
|
156
|
-
return (c,
|
|
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",
|
|
139
|
+
}, null, 8, ["image-url", "size"]), d("div", Ae, [d("span", {
|
|
161
140
|
class: "UserBasicInformation__nickname",
|
|
162
|
-
title:
|
|
163
|
-
}, $(
|
|
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,
|
|
146
|
+
}, $(i.value), 9, Pe)) : U("", !0)])]));
|
|
168
147
|
}
|
|
169
|
-
}),
|
|
148
|
+
}), W = /* @__PURE__ */ h(De, [["__scopeId", "data-v-cb95c00d"]]), Ne = {
|
|
170
149
|
class: "UserSubscriptionBaseInformation"
|
|
171
|
-
},
|
|
150
|
+
}, Re = {
|
|
172
151
|
class: "UserSubscriptionBaseInformation__row"
|
|
173
|
-
},
|
|
152
|
+
}, He = {
|
|
174
153
|
class: "UserSubscriptionBaseInformation__info"
|
|
175
|
-
},
|
|
154
|
+
}, Oe = ["title"], Ve = {
|
|
176
155
|
key: 0,
|
|
177
156
|
class: "UserSubscriptionBaseInformation__info"
|
|
178
|
-
},
|
|
157
|
+
}, ze = ["title"], Te = {
|
|
179
158
|
class: "UserSubscriptionBaseInformation__row"
|
|
180
|
-
},
|
|
159
|
+
}, Le = {
|
|
181
160
|
class: "UserSubscriptionBaseInformation__info"
|
|
182
|
-
},
|
|
161
|
+
}, Ee = {
|
|
183
162
|
class: "UserSubscriptionBaseInformation__value"
|
|
184
|
-
},
|
|
163
|
+
}, je = {
|
|
185
164
|
key: 1,
|
|
186
165
|
class: "UserSubscriptionBaseInformation__row"
|
|
187
|
-
},
|
|
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
|
|
215
|
-
return (c,
|
|
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,
|
|
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:
|
|
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(),
|
|
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,
|
|
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",
|
|
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:
|
|
221
|
+
onClick: a[1] || (a[1] = (l) => s("pointsHandle"))
|
|
243
222
|
}, {
|
|
244
|
-
default: g(() => [...
|
|
223
|
+
default: g(() => [...a[6] || (a[6] = [k(" 充值 ", -1)])]),
|
|
245
224
|
_: 1
|
|
246
|
-
}, 8, ["loading"])]), typeof n.pendingInvoiceTotal == "number" && n.pendingInvoiceTotal > 0 ? (r(),
|
|
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)),
|
|
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:
|
|
233
|
+
onClick: a[2] || (a[2] = (l) => s("payHandle"))
|
|
255
234
|
}, {
|
|
256
|
-
default: g(() => [...
|
|
235
|
+
default: g(() => [...a[7] || (a[7] = [k(" 去支付 ", -1)])]),
|
|
257
236
|
_: 1
|
|
258
237
|
}, 8, ["loading"])])) : U("", !0)]));
|
|
259
238
|
}
|
|
260
|
-
}),
|
|
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:
|
|
259
|
+
userProfile: o
|
|
281
260
|
} = R(), {
|
|
282
|
-
isOpen:
|
|
261
|
+
isOpen: s,
|
|
283
262
|
openSubscriptions: i
|
|
284
263
|
} = y(), {
|
|
285
264
|
entitlement: c,
|
|
286
|
-
pointsBalance:
|
|
265
|
+
pointsBalance: a,
|
|
287
266
|
pendingInvoice: l,
|
|
288
|
-
loading:
|
|
267
|
+
loading: f,
|
|
289
268
|
refresh: S
|
|
290
|
-
} =
|
|
291
|
-
paidProductCount:
|
|
269
|
+
} = le(), {
|
|
270
|
+
paidProductCount: I,
|
|
292
271
|
loadPaidProductCount: B
|
|
293
|
-
} =
|
|
294
|
-
var
|
|
295
|
-
return e.expireDate || ((
|
|
296
|
-
}),
|
|
297
|
-
function
|
|
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(
|
|
301
|
-
|
|
302
|
-
}),
|
|
303
|
-
|
|
304
|
-
}), (
|
|
305
|
-
var
|
|
306
|
-
return r(),
|
|
307
|
-
"user-id": (
|
|
308
|
-
"avatar-url": (
|
|
309
|
-
nickname: (T = t(
|
|
310
|
-
email: (L = t(
|
|
311
|
-
phone: (E = t(
|
|
312
|
-
}, null, 8, ["user-id", "avatar-url", "nickname", "email", "phone"]), n.showSubscription ? (r(),
|
|
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":
|
|
316
|
-
"points-balance": ((j = t(
|
|
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(
|
|
319
|
-
"can-upgrade":
|
|
320
|
-
"action-label":
|
|
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
|
-
}),
|
|
310
|
+
}), qe = {
|
|
311
|
+
key: 0,
|
|
312
|
+
"aria-hidden": "true"
|
|
313
|
+
}, Ge = {
|
|
332
314
|
class: "UserMenu__content"
|
|
333
|
-
},
|
|
315
|
+
}, Je = {
|
|
334
316
|
class: "UserMenu__header"
|
|
335
|
-
},
|
|
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:
|
|
333
|
+
authSessionState: o
|
|
352
334
|
} = R(), {
|
|
353
|
-
isOpen:
|
|
335
|
+
isOpen: s,
|
|
354
336
|
setOpen: i
|
|
355
337
|
} = y(), c = b({
|
|
356
|
-
get: () =>
|
|
357
|
-
set: (
|
|
338
|
+
get: () => s.value,
|
|
339
|
+
set: (a) => i(a)
|
|
358
340
|
});
|
|
359
|
-
return (
|
|
360
|
-
|
|
361
|
-
|
|
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(),
|
|
347
|
+
})) : (r(), v(t(te), {
|
|
364
348
|
key: 2,
|
|
365
349
|
"popup-visible": c.value,
|
|
366
|
-
"onUpdate:popupVisible": l[0] || (l[0] = (
|
|
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",
|
|
359
|
+
content: g(() => [d("div", Ge, [d("div", Je, [A(a.$slots, "header", {
|
|
376
360
|
user: t(e)
|
|
377
|
-
}, () => [
|
|
361
|
+
}, () => [_(Ye)], !0)]), a.$slots.items ? (r(), v(Me, {
|
|
378
362
|
key: 0
|
|
379
|
-
})) : U("", !0), A(
|
|
380
|
-
default: g(() => [A(
|
|
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
|
|
384
|
-
return [
|
|
385
|
-
"user-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: (
|
|
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
|
-
}),
|
|
379
|
+
}), Sn = /* @__PURE__ */ h(Ke, [["__scopeId", "data-v-c03d428f"]]), Qe = ["disabled"], We = {
|
|
396
380
|
class: "UserMenuItem__label"
|
|
397
|
-
},
|
|
381
|
+
}, Ze = {
|
|
398
382
|
class: "UserMenuItem__label-text"
|
|
399
|
-
},
|
|
383
|
+
}, en = {
|
|
400
384
|
key: 0,
|
|
401
385
|
class: "UserMenuItem__icon"
|
|
402
|
-
},
|
|
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
|
|
412
|
+
const o = n, s = b(() => o.badge > 0), i = e, {
|
|
429
413
|
close: c
|
|
430
414
|
} = y();
|
|
431
|
-
function
|
|
432
|
-
l.stopPropagation(), !
|
|
415
|
+
function a(l) {
|
|
416
|
+
l.stopPropagation(), !o.disabled && (o.closeOnClick && c(), i("click", l));
|
|
433
417
|
}
|
|
434
|
-
return (l,
|
|
418
|
+
return (l, f) => (r(), p("button", {
|
|
435
419
|
type: "button",
|
|
436
|
-
class:
|
|
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:
|
|
442
|
-
}, [d("span",
|
|
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",
|
|
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(),
|
|
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,
|
|
441
|
+
}, null, 8, ["icon"])) : U("", !0)], !0)])) : U("", !0)], 10, Qe));
|
|
458
442
|
}
|
|
459
|
-
}), D = /* @__PURE__ */
|
|
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:
|
|
465
|
-
subscriptionsOptions:
|
|
448
|
+
subscriptionsTrigger: o,
|
|
449
|
+
subscriptionsOptions: s,
|
|
466
450
|
messagesTrigger: i,
|
|
467
451
|
feedbackTrigger: c,
|
|
468
|
-
invitationsTrigger:
|
|
469
|
-
} = y(), l = 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(
|
|
457
|
+
}), x(o, () => {
|
|
474
458
|
var u;
|
|
475
|
-
(u =
|
|
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 =
|
|
482
|
-
}), x(
|
|
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,
|
|
469
|
+
}), (u, H) => (r(), p(q, null, [_(fe, {
|
|
486
470
|
ref_key: "appSettingRef",
|
|
487
471
|
ref: l
|
|
488
|
-
}, null, 512),
|
|
472
|
+
}, null, 512), _(pe, {
|
|
489
473
|
ref_key: "paySubsRef",
|
|
490
|
-
ref:
|
|
491
|
-
}, null, 512),
|
|
474
|
+
ref: f
|
|
475
|
+
}, null, 512), _(ve, {
|
|
492
476
|
ref_key: "messageHandleRef",
|
|
493
477
|
ref: S
|
|
494
|
-
}, null, 512),
|
|
478
|
+
}, null, 512), _(_e, {
|
|
495
479
|
ref_key: "feedbackModalRef",
|
|
496
|
-
ref:
|
|
497
|
-
}, null, 512),
|
|
480
|
+
ref: I
|
|
481
|
+
}, null, 512), _(oe, {
|
|
498
482
|
ref_key: "refereesRef",
|
|
499
483
|
ref: B
|
|
500
484
|
}, null, 512)], 64));
|
|
501
485
|
}
|
|
502
|
-
}),
|
|
486
|
+
}), tn = {
|
|
503
487
|
class: "UserAccountMenu"
|
|
504
|
-
},
|
|
488
|
+
}, sn = /* @__PURE__ */ m({
|
|
505
489
|
__name: "UserAccountMenu",
|
|
506
490
|
setup(n) {
|
|
507
491
|
const {
|
|
508
492
|
userProfile: e
|
|
509
493
|
} = R();
|
|
510
|
-
return (
|
|
511
|
-
var i, c,
|
|
512
|
-
return r(),
|
|
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: (
|
|
499
|
+
nickname: (a = t(e)) == null ? void 0 : a.nickname,
|
|
516
500
|
email: (l = t(e)) == null ? void 0 : l.email,
|
|
517
|
-
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
|
-
}),
|
|
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:
|
|
528
|
-
} =
|
|
529
|
-
return (
|
|
511
|
+
messageUnreadCount: o
|
|
512
|
+
} = Q();
|
|
513
|
+
return (s, i) => (r(), v(D, {
|
|
530
514
|
icon: "lucide:chevron-right",
|
|
531
|
-
badge: t(
|
|
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
|
-
}),
|
|
522
|
+
}), Cn = /* @__PURE__ */ m({
|
|
539
523
|
__name: "UserMenuSettingItem",
|
|
540
524
|
setup(n) {
|
|
541
525
|
const {
|
|
542
526
|
openSetting: e
|
|
543
527
|
} = y();
|
|
544
|
-
return (
|
|
528
|
+
return (o, s) => (r(), v(D, {
|
|
545
529
|
icon: "lucide:user-round",
|
|
546
530
|
onClick: t(e)
|
|
547
531
|
}, {
|
|
548
|
-
default: g(() => [...
|
|
532
|
+
default: g(() => [...s[0] || (s[0] = [k("用户信息", -1)])]),
|
|
549
533
|
_: 1
|
|
550
534
|
}, 8, ["onClick"]));
|
|
551
535
|
}
|
|
552
|
-
}),
|
|
536
|
+
}), xn = /* @__PURE__ */ m({
|
|
553
537
|
__name: "UserMenuSubscriptionItem",
|
|
554
538
|
setup(n) {
|
|
555
539
|
const {
|
|
556
540
|
openSubscriptions: e
|
|
557
541
|
} = y();
|
|
558
|
-
return (
|
|
542
|
+
return (o, s) => (r(), v(D, {
|
|
559
543
|
icon: "lucide:chevron-right",
|
|
560
|
-
onClick:
|
|
544
|
+
onClick: s[0] || (s[0] = (i) => t(e)())
|
|
561
545
|
}, {
|
|
562
|
-
default: g(() => [...
|
|
546
|
+
default: g(() => [...s[1] || (s[1] = [k("订阅与积分", -1)])]),
|
|
563
547
|
_: 1
|
|
564
548
|
}));
|
|
565
549
|
}
|
|
566
|
-
}),
|
|
550
|
+
}), An = /* @__PURE__ */ m({
|
|
567
551
|
__name: "UserMenuFeedbackItem",
|
|
568
552
|
setup(n) {
|
|
569
553
|
const {
|
|
570
554
|
openFeedback: e
|
|
571
555
|
} = y(), {
|
|
572
|
-
feedbackUnreadCount:
|
|
573
|
-
} =
|
|
574
|
-
return (
|
|
556
|
+
feedbackUnreadCount: o
|
|
557
|
+
} = Q();
|
|
558
|
+
return (s, i) => (r(), v(D, {
|
|
575
559
|
icon: "lucide:chevron-right",
|
|
576
|
-
badge: t(
|
|
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
|
-
}),
|
|
567
|
+
}), wn = /* @__PURE__ */ m({
|
|
584
568
|
__name: "UserMenuInvitationsItem",
|
|
585
569
|
setup(n) {
|
|
586
570
|
const {
|
|
587
571
|
openInvitations: e
|
|
588
572
|
} = y();
|
|
589
|
-
return (
|
|
573
|
+
return (o, s) => (r(), v(D, {
|
|
590
574
|
icon: "lucide:chevron-right",
|
|
591
575
|
onClick: t(e)
|
|
592
576
|
}, {
|
|
593
|
-
default: g(() => [...
|
|
577
|
+
default: g(() => [...s[0] || (s[0] = [k("邀请", -1)])]),
|
|
594
578
|
_: 1
|
|
595
579
|
}, 8, ["onClick"]));
|
|
596
580
|
}
|
|
597
581
|
});
|
|
598
582
|
export {
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
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
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
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
|
};
|