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