@huyooo/ui 0.6.6 → 0.6.12
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/{AuthkitAuthModal-GorxR6ZJ.js → AuthkitAuthModal-Bfcu3xeg.js} +132 -133
- package/dist/{AuthkitSignInPhone-CLW_u8AY.js → AuthkitSignInPhone-CZGGn8Ax.js} +1 -1
- package/dist/{FeedbackItem-r5WNpUmu.js → FeedbackItem-8-jd3QUl.js} +1 -1
- package/dist/{FeedbackModal-BmRx3EOj.js → FeedbackModal-scDtV6-8.js} +319 -321
- package/dist/MessageHandle-CRKV0GBm.js +1182 -0
- package/dist/MessageNotifications-CJtKlzc3.js +35 -0
- package/dist/{UserAccountMenu-DHDAWoPE.js → UserAccountMenu-B8dw6I3n.js} +22 -23
- package/dist/{WidthContainer-DzPQ94uA.js → WidthContainer-CdCvKjzU.js} +2 -2
- package/dist/api/Message/ChangelogNotifications.d.ts +46 -2
- package/dist/api/Message/EventNotifications.d.ts +49 -2
- package/dist/api/Message/MessageNotifications.d.ts +55 -5
- package/dist/api/Message/NoticeNotifications.d.ts +54 -2
- package/dist/authkit.js +2 -2
- package/dist/common.js +1 -1
- package/dist/components/LandingPage/LandingPageContact.vue.d.ts +1 -1
- package/dist/components/Message/MessageItem.vue.d.ts +40 -0
- package/dist/components/Message/MessageList.vue.d.ts +31 -92
- package/dist/composables/useMessageList.d.ts +52 -0
- package/dist/composables/useMessageNotifications.d.ts +40 -4
- package/dist/composables.js +1 -1
- package/dist/feedback.js +2 -2
- package/dist/index.js +8 -8
- package/dist/message.js +2 -2
- package/dist/style.css +1 -1
- package/dist/useMessageNotifications-CnWbDToT.js +84 -0
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/MessageHandle-BlsLRmdj.js +0 -820
- package/dist/useMessageNotifications-BT84SOgI.js +0 -105
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { defineComponent as A, computed as F, createElementBlock as V, openBlock as g, normalizeStyle as le, normalizeClass as ze, createElementVNode as z, ref as w, createBlock as k, unref as e, withCtx as n, createVNode as i, createTextVNode as _, onMounted as Z, onUnmounted as re, withDirectives as Se, toDisplayString as T, vShow as Ie, Fragment as G, createCommentVNode as S, renderList as Ae, isRef as ue, useSlots as Pe, renderSlot as de } from "vue";
|
|
5
|
-
import { Form as H, FormItem as I, Avatar as
|
|
5
|
+
import { Form as H, FormItem as I, Avatar as ce, Input as q, Textarea as Ve, Button as P, Message as N, Alert as D, Space as ee, InputPassword as Ue, Result as $e, Modal as me, Divider as Ce, Link as j } from "@arco-design/web-vue";
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { g as E, c as M, h as fe, u as xe } from "./auth-bwwc2iT8.js";
|
|
8
8
|
/* empty css */
|
|
@@ -13,7 +13,6 @@ import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
|
13
13
|
import { M as He } from "./Menu-BjWB9hre.js";
|
|
14
14
|
import { u as Me } from "./useAuthkitCreateAndUpdate-Co5wMbv7.js";
|
|
15
15
|
import { u as se } from "./useAuthkitAppsAuthPageInfo-CzZmhPMm.js";
|
|
16
|
-
/* empty css */
|
|
17
16
|
import { Icon as Ge } from "@iconify/vue";
|
|
18
17
|
const je = A({
|
|
19
18
|
name: "IconCamera",
|
|
@@ -105,16 +104,16 @@ const Ze = Object.assign(te, {
|
|
|
105
104
|
}), d = w(!1), t = w(), s = w(!1);
|
|
106
105
|
function y() {
|
|
107
106
|
s.value = !0, Re().then(({
|
|
108
|
-
data:
|
|
107
|
+
data: c
|
|
109
108
|
}) => {
|
|
110
|
-
s.value = !1, o.value.id =
|
|
109
|
+
s.value = !1, o.value.id = c.id, o.value.nickname = c.nickname, o.value.description = c.description, o.value.avatar = c.avatar, o.value.avatarUrl = c.avatarUrl;
|
|
111
110
|
}).catch(() => {
|
|
112
111
|
s.value = !1;
|
|
113
112
|
});
|
|
114
113
|
}
|
|
115
|
-
function
|
|
116
|
-
t.value.validate().then((
|
|
117
|
-
if (!
|
|
114
|
+
function m() {
|
|
115
|
+
t.value.validate().then((c) => {
|
|
116
|
+
if (!c) {
|
|
118
117
|
s.value = !0;
|
|
119
118
|
const f = {
|
|
120
119
|
id: o.value.id,
|
|
@@ -135,7 +134,7 @@ const Ze = Object.assign(te, {
|
|
|
135
134
|
y();
|
|
136
135
|
const p = () => {
|
|
137
136
|
const {
|
|
138
|
-
uploadFile:
|
|
137
|
+
uploadFile: c
|
|
139
138
|
} = qe(), f = document.createElement("input");
|
|
140
139
|
f.type = "file", f.accept = "image/*", f.style.display = "none", document.body.append(f), f.addEventListener("change", async (v) => {
|
|
141
140
|
var $;
|
|
@@ -143,7 +142,7 @@ const Ze = Object.assign(te, {
|
|
|
143
142
|
if (U) {
|
|
144
143
|
d.value = !0;
|
|
145
144
|
try {
|
|
146
|
-
|
|
145
|
+
c({
|
|
147
146
|
bucketId: E.avatarBucketId,
|
|
148
147
|
file: U,
|
|
149
148
|
onFileFinish(R, B, O) {
|
|
@@ -171,7 +170,7 @@ const Ze = Object.assign(te, {
|
|
|
171
170
|
f.remove();
|
|
172
171
|
}), f.click();
|
|
173
172
|
};
|
|
174
|
-
return (
|
|
173
|
+
return (c, f) => (g(), k(e(H), {
|
|
175
174
|
ref_key: "formRef",
|
|
176
175
|
ref: t,
|
|
177
176
|
model: o.value,
|
|
@@ -186,7 +185,7 @@ const Ze = Object.assign(te, {
|
|
|
186
185
|
message: "请上传头像"
|
|
187
186
|
}]
|
|
188
187
|
}, {
|
|
189
|
-
default: n(() => [i(e(
|
|
188
|
+
default: n(() => [i(e(ce), {
|
|
190
189
|
"image-url": o.value.avatarUrl,
|
|
191
190
|
size: 42,
|
|
192
191
|
"object-fit": "cover",
|
|
@@ -239,7 +238,7 @@ const Ze = Object.assign(te, {
|
|
|
239
238
|
default: n(() => [z("div", Je, [i(e(P), {
|
|
240
239
|
type: "primary",
|
|
241
240
|
loading: s.value,
|
|
242
|
-
onClick:
|
|
241
|
+
onClick: m
|
|
243
242
|
}, {
|
|
244
243
|
default: n(() => [...f[2] || (f[2] = [_(" 提交 ", -1)])]),
|
|
245
244
|
_: 1
|
|
@@ -271,7 +270,7 @@ function et(l) {
|
|
|
271
270
|
data: l
|
|
272
271
|
});
|
|
273
272
|
}
|
|
274
|
-
function
|
|
273
|
+
function Ci(l) {
|
|
275
274
|
return M({
|
|
276
275
|
url: `${E.authPrefixUrl}/restfulApi/verify/sms/send`,
|
|
277
276
|
method: "post",
|
|
@@ -298,10 +297,10 @@ const tt = /* @__PURE__ */ A({
|
|
|
298
297
|
}) {
|
|
299
298
|
const a = u, o = l, d = w(!1);
|
|
300
299
|
let t;
|
|
301
|
-
const s = w(0), y = F(() => s.value.toString().padStart(2, "0")),
|
|
300
|
+
const s = w(0), y = F(() => s.value.toString().padStart(2, "0")), m = F(() => s.value > 0), p = () => {
|
|
302
301
|
d.value && (s.value <= 0 ? (clearInterval(t), d.value = !1) : s.value--);
|
|
303
302
|
};
|
|
304
|
-
function
|
|
303
|
+
function c() {
|
|
305
304
|
a("send");
|
|
306
305
|
}
|
|
307
306
|
function f() {
|
|
@@ -316,13 +315,13 @@ const tt = /* @__PURE__ */ A({
|
|
|
316
315
|
class: "OAuthItem",
|
|
317
316
|
type: "primary",
|
|
318
317
|
size: o.size,
|
|
319
|
-
disabled:
|
|
318
|
+
disabled: m.value,
|
|
320
319
|
loading: o.loading,
|
|
321
|
-
onClick:
|
|
320
|
+
onClick: c
|
|
322
321
|
}, {
|
|
323
322
|
default: n(() => [b[0] || (b[0] = z("span", null, " 发送验证码", -1)), Se(z("span", {
|
|
324
323
|
class: "verify-code-timer"
|
|
325
|
-
}, T(`(${y.value})`), 513), [[Ie,
|
|
324
|
+
}, T(`(${y.value})`), 513), [[Ie, m.value]])]),
|
|
326
325
|
_: 1
|
|
327
326
|
}, 8, ["size", "disabled", "loading"]));
|
|
328
327
|
}
|
|
@@ -347,7 +346,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
347
346
|
setup(l, {
|
|
348
347
|
emit: r
|
|
349
348
|
}) {
|
|
350
|
-
const u = r, a = l, o = F(() => fe(a.email)), d = w(), t = w(!1), s = w(!1), y = w(),
|
|
349
|
+
const u = r, a = l, o = F(() => fe(a.email)), d = w(), t = w(!1), s = w(!1), y = w(), m = w({
|
|
351
350
|
userToken: void 0,
|
|
352
351
|
emailVerifyId: void 0
|
|
353
352
|
});
|
|
@@ -357,19 +356,19 @@ const tt = /* @__PURE__ */ A({
|
|
|
357
356
|
}).then(({
|
|
358
357
|
data: f
|
|
359
358
|
}) => {
|
|
360
|
-
|
|
359
|
+
m.value.emailVerifyId = f.emailVerifyId, t.value = !1, d.value.startCountFn();
|
|
361
360
|
}).catch(() => {
|
|
362
361
|
t.value = !1;
|
|
363
362
|
});
|
|
364
363
|
}
|
|
365
|
-
async function
|
|
364
|
+
async function c() {
|
|
366
365
|
y.value.validate(["userToken"]).then((f) => {
|
|
367
366
|
if (!f) {
|
|
368
367
|
s.value = !0;
|
|
369
368
|
const v = {
|
|
370
369
|
email: a.email,
|
|
371
|
-
userToken:
|
|
372
|
-
emailVerifyId:
|
|
370
|
+
userToken: m.value.userToken,
|
|
371
|
+
emailVerifyId: m.value.emailVerifyId
|
|
373
372
|
};
|
|
374
373
|
Ye(v).then(() => {
|
|
375
374
|
s.value = !1, u("next");
|
|
@@ -382,7 +381,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
382
381
|
return (f, v) => (g(), k(e(H), {
|
|
383
382
|
ref_key: "formRef",
|
|
384
383
|
ref: y,
|
|
385
|
-
model:
|
|
384
|
+
model: m.value,
|
|
386
385
|
"auto-label-width": "",
|
|
387
386
|
size: a.size
|
|
388
387
|
}, {
|
|
@@ -409,8 +408,8 @@ const tt = /* @__PURE__ */ A({
|
|
|
409
408
|
}]
|
|
410
409
|
}, {
|
|
411
410
|
default: n(() => [z("div", it, [i(e(q), {
|
|
412
|
-
modelValue:
|
|
413
|
-
"onUpdate:modelValue": v[0] || (v[0] = (b) =>
|
|
411
|
+
modelValue: m.value.userToken,
|
|
412
|
+
"onUpdate:modelValue": v[0] || (v[0] = (b) => m.value.userToken = b),
|
|
414
413
|
placeholder: "请输入验证码"
|
|
415
414
|
}, null, 8, ["modelValue"]), i(ne, {
|
|
416
415
|
ref_key: "SendVerifyCodeRef",
|
|
@@ -431,7 +430,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
431
430
|
default: n(() => [z("div", lt, [i(e(P), {
|
|
432
431
|
loading: s.value,
|
|
433
432
|
type: "primary",
|
|
434
|
-
onClick:
|
|
433
|
+
onClick: c
|
|
435
434
|
}, {
|
|
436
435
|
default: n(() => [...v[1] || (v[1] = [_(" 提交 ", -1)])]),
|
|
437
436
|
_: 1
|
|
@@ -463,18 +462,18 @@ const tt = /* @__PURE__ */ A({
|
|
|
463
462
|
async function s() {
|
|
464
463
|
o.value.validate().then((y) => {
|
|
465
464
|
if (!y) {
|
|
466
|
-
const
|
|
465
|
+
const m = {
|
|
467
466
|
password: t.value.password
|
|
468
467
|
};
|
|
469
|
-
Te(
|
|
470
|
-
a.value = !1, u("submit",
|
|
468
|
+
Te(m).then(() => {
|
|
469
|
+
a.value = !1, u("submit", m);
|
|
471
470
|
}).catch(() => {
|
|
472
471
|
a.value = !1;
|
|
473
472
|
});
|
|
474
473
|
}
|
|
475
474
|
});
|
|
476
475
|
}
|
|
477
|
-
return (y,
|
|
476
|
+
return (y, m) => (g(), k(e(H), {
|
|
478
477
|
ref_key: "formRef",
|
|
479
478
|
ref: o,
|
|
480
479
|
model: t.value,
|
|
@@ -492,7 +491,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
492
491
|
}, {
|
|
493
492
|
default: n(() => [i(e(q), {
|
|
494
493
|
modelValue: t.value.oldPassword,
|
|
495
|
-
"onUpdate:modelValue":
|
|
494
|
+
"onUpdate:modelValue": m[0] || (m[0] = (p) => t.value.oldPassword = p),
|
|
496
495
|
placeholder: "请输入当前密码",
|
|
497
496
|
type: "password"
|
|
498
497
|
}, null, 8, ["modelValue"])]),
|
|
@@ -511,7 +510,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
511
510
|
}, {
|
|
512
511
|
default: n(() => [i(e(q), {
|
|
513
512
|
modelValue: t.value.password,
|
|
514
|
-
"onUpdate:modelValue":
|
|
513
|
+
"onUpdate:modelValue": m[1] || (m[1] = (p) => t.value.password = p),
|
|
515
514
|
placeholder: "请输入新密码",
|
|
516
515
|
type: "password"
|
|
517
516
|
}, null, 8, ["modelValue"])]),
|
|
@@ -527,14 +526,14 @@ const tt = /* @__PURE__ */ A({
|
|
|
527
526
|
minLength: 10,
|
|
528
527
|
message: "确认密码不能少于10字符"
|
|
529
528
|
}, {
|
|
530
|
-
validator: (p,
|
|
531
|
-
p !== t.value.password ?
|
|
529
|
+
validator: (p, c) => {
|
|
530
|
+
p !== t.value.password ? c("两次密码输入不一致,请重新输入") : c();
|
|
532
531
|
}
|
|
533
532
|
}]
|
|
534
533
|
}, {
|
|
535
534
|
default: n(() => [i(e(q), {
|
|
536
535
|
modelValue: t.value.confirmPassword,
|
|
537
|
-
"onUpdate:modelValue":
|
|
536
|
+
"onUpdate:modelValue": m[2] || (m[2] = (p) => t.value.confirmPassword = p),
|
|
538
537
|
placeholder: "请输入确认密码密码",
|
|
539
538
|
type: "password"
|
|
540
539
|
}, null, 8, ["modelValue"])]),
|
|
@@ -549,7 +548,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
549
548
|
loading: a.value,
|
|
550
549
|
onClick: s
|
|
551
550
|
}, {
|
|
552
|
-
default: n(() => [...
|
|
551
|
+
default: n(() => [...m[3] || (m[3] = [_(" 提交 ", -1)])]),
|
|
553
552
|
_: 1
|
|
554
553
|
}, 8, ["loading"])])]),
|
|
555
554
|
_: 1
|
|
@@ -578,12 +577,12 @@ const tt = /* @__PURE__ */ A({
|
|
|
578
577
|
function y(p) {
|
|
579
578
|
N.success("密码修改成功"), d.value = "hidden", a();
|
|
580
579
|
}
|
|
581
|
-
function
|
|
580
|
+
function m() {
|
|
582
581
|
d.value = "update";
|
|
583
582
|
}
|
|
584
583
|
return Z(() => {
|
|
585
584
|
o.value && !r.value && a();
|
|
586
|
-
}), (p,
|
|
585
|
+
}), (p, c) => {
|
|
587
586
|
var f, v, b, U;
|
|
588
587
|
return g(), V(G, null, [!((f = e(r)) != null && f.email) && !((v = e(r)) != null && v.phone) ? (g(), k(e(D), {
|
|
589
588
|
key: 0,
|
|
@@ -592,12 +591,12 @@ const tt = /* @__PURE__ */ A({
|
|
|
592
591
|
action: n(() => [i(e(P), {
|
|
593
592
|
size: t.size,
|
|
594
593
|
type: "primary",
|
|
595
|
-
onClick:
|
|
594
|
+
onClick: c[0] || (c[0] = ($) => s("update"))
|
|
596
595
|
}, {
|
|
597
|
-
default: n(() => [...
|
|
596
|
+
default: n(() => [...c[2] || (c[2] = [_(" 去绑定邮箱 ", -1)])]),
|
|
598
597
|
_: 1
|
|
599
598
|
}, 8, ["size"])]),
|
|
600
|
-
default: n(() => [
|
|
599
|
+
default: n(() => [c[3] || (c[3] = _(" 请先去绑定邮箱或者手机号码,才能设置密码 ", -1))]),
|
|
601
600
|
_: 1
|
|
602
601
|
})) : S("", !0), (b = e(r)) != null && b.email && d.value === "hidden" ? (g(), k(e(D), {
|
|
603
602
|
key: 1,
|
|
@@ -606,12 +605,12 @@ const tt = /* @__PURE__ */ A({
|
|
|
606
605
|
action: n(() => [i(e(P), {
|
|
607
606
|
size: t.size,
|
|
608
607
|
type: "primary",
|
|
609
|
-
onClick:
|
|
608
|
+
onClick: c[1] || (c[1] = ($) => s("verify"))
|
|
610
609
|
}, {
|
|
611
|
-
default: n(() => [...
|
|
610
|
+
default: n(() => [...c[4] || (c[4] = [_("更改密码", -1)])]),
|
|
612
611
|
_: 1
|
|
613
612
|
}, 8, ["size"])]),
|
|
614
|
-
default: n(() => [
|
|
613
|
+
default: n(() => [c[5] || (c[5] = _(" 为了账户安全修改密码前会先验证身份 ", -1))]),
|
|
615
614
|
_: 1
|
|
616
615
|
})) : S("", !0), d.value === "update" ? (g(), k(ot, {
|
|
617
616
|
key: 2,
|
|
@@ -622,7 +621,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
622
621
|
key: 3,
|
|
623
622
|
size: t.size,
|
|
624
623
|
email: (U = e(r)) == null ? void 0 : U.email,
|
|
625
|
-
onNext:
|
|
624
|
+
onNext: m
|
|
626
625
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
627
626
|
};
|
|
628
627
|
}
|
|
@@ -630,9 +629,9 @@ const tt = /* @__PURE__ */ A({
|
|
|
630
629
|
class: "content"
|
|
631
630
|
}, dt = {
|
|
632
631
|
class: "sendVerifyCodeItem"
|
|
633
|
-
},
|
|
632
|
+
}, ct = {
|
|
634
633
|
class: "handle"
|
|
635
|
-
},
|
|
634
|
+
}, mt = /* @__PURE__ */ A({
|
|
636
635
|
__name: "AuthkitEmailUpdate",
|
|
637
636
|
props: {
|
|
638
637
|
size: {
|
|
@@ -662,20 +661,20 @@ const tt = /* @__PURE__ */ A({
|
|
|
662
661
|
p || (d.value = !0, X({
|
|
663
662
|
email: s.value.email
|
|
664
663
|
}).then(({
|
|
665
|
-
data:
|
|
664
|
+
data: c
|
|
666
665
|
}) => {
|
|
667
|
-
s.value.emailVerifyId =
|
|
666
|
+
s.value.emailVerifyId = c.emailVerifyId, d.value = !1, o.value.startCountFn();
|
|
668
667
|
}).catch(() => {
|
|
669
668
|
d.value = !1;
|
|
670
669
|
}));
|
|
671
670
|
});
|
|
672
671
|
}
|
|
673
|
-
async function
|
|
672
|
+
async function m() {
|
|
674
673
|
t.value.validate().then((p) => {
|
|
675
674
|
p || u("submit", s.value);
|
|
676
675
|
});
|
|
677
676
|
}
|
|
678
|
-
return (p,
|
|
677
|
+
return (p, c) => (g(), V("div", ut, [i(e(H), {
|
|
679
678
|
ref_key: "formRef",
|
|
680
679
|
ref: t,
|
|
681
680
|
model: s.value,
|
|
@@ -696,7 +695,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
696
695
|
}, {
|
|
697
696
|
default: n(() => [i(e(q), {
|
|
698
697
|
modelValue: s.value.email,
|
|
699
|
-
"onUpdate:modelValue":
|
|
698
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => s.value.email = f),
|
|
700
699
|
placeholder: "请输入邮箱",
|
|
701
700
|
autocomplete: "email username",
|
|
702
701
|
type: "email"
|
|
@@ -713,7 +712,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
713
712
|
}, {
|
|
714
713
|
default: n(() => [z("div", dt, [i(e(q), {
|
|
715
714
|
modelValue: s.value.userToken,
|
|
716
|
-
"onUpdate:modelValue":
|
|
715
|
+
"onUpdate:modelValue": c[1] || (c[1] = (f) => s.value.userToken = f),
|
|
717
716
|
placeholder: "请输入验证码",
|
|
718
717
|
autocomplete: "one-time-code"
|
|
719
718
|
}, null, 8, ["modelValue"]), i(ne, {
|
|
@@ -741,7 +740,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
741
740
|
}, {
|
|
742
741
|
default: n(() => [i(e(q), {
|
|
743
742
|
modelValue: s.value.password,
|
|
744
|
-
"onUpdate:modelValue":
|
|
743
|
+
"onUpdate:modelValue": c[2] || (c[2] = (f) => s.value.password = f),
|
|
745
744
|
placeholder: "请输入密码",
|
|
746
745
|
type: "password",
|
|
747
746
|
autocomplete: "new-password"
|
|
@@ -765,7 +764,7 @@ const tt = /* @__PURE__ */ A({
|
|
|
765
764
|
}, {
|
|
766
765
|
default: n(() => [i(e(q), {
|
|
767
766
|
modelValue: s.value.confirmPassword,
|
|
768
|
-
"onUpdate:modelValue":
|
|
767
|
+
"onUpdate:modelValue": c[3] || (c[3] = (f) => s.value.confirmPassword = f),
|
|
769
768
|
placeholder: "请输入确认密码密码",
|
|
770
769
|
type: "password",
|
|
771
770
|
autocomplete: "new-password"
|
|
@@ -782,25 +781,25 @@ const tt = /* @__PURE__ */ A({
|
|
|
782
781
|
}, {
|
|
783
782
|
default: n(() => [i(e(q), {
|
|
784
783
|
modelValue: s.value.referrerId,
|
|
785
|
-
"onUpdate:modelValue":
|
|
784
|
+
"onUpdate:modelValue": c[4] || (c[4] = (f) => s.value.referrerId = f),
|
|
786
785
|
placeholder: "邀请人ID(可选)",
|
|
787
786
|
autocomplete: "off"
|
|
788
787
|
}, null, 8, ["modelValue"])]),
|
|
789
788
|
_: 1
|
|
790
|
-
}), z("div",
|
|
789
|
+
}), z("div", ct, [i(e(P), {
|
|
791
790
|
type: "primary",
|
|
792
791
|
loading: a.loading,
|
|
793
792
|
long: "",
|
|
794
793
|
size: a.size,
|
|
795
|
-
onClick:
|
|
794
|
+
onClick: m
|
|
796
795
|
}, {
|
|
797
|
-
default: n(() => [...
|
|
796
|
+
default: n(() => [...c[5] || (c[5] = [_(" 提交 ", -1)])]),
|
|
798
797
|
_: 1
|
|
799
798
|
}, 8, ["loading", "size"])])]),
|
|
800
799
|
_: 1
|
|
801
800
|
}, 8, ["model", "size"])]));
|
|
802
801
|
}
|
|
803
|
-
}), pe = /* @__PURE__ */ C(
|
|
802
|
+
}), pe = /* @__PURE__ */ C(mt, [["__scopeId", "data-v-5b701953"]]), ft = /* @__PURE__ */ A({
|
|
804
803
|
__name: "AuthkitEmailBinding",
|
|
805
804
|
props: {
|
|
806
805
|
size: {
|
|
@@ -814,15 +813,15 @@ const tt = /* @__PURE__ */ A({
|
|
|
814
813
|
loading: u,
|
|
815
814
|
fetchUserProfile: a
|
|
816
815
|
} = J(), o = w("hidden"), d = l;
|
|
817
|
-
function t(
|
|
818
|
-
o.value =
|
|
816
|
+
function t(m) {
|
|
817
|
+
o.value = m;
|
|
819
818
|
}
|
|
820
|
-
function s(
|
|
819
|
+
function s(m) {
|
|
821
820
|
u.value = !0;
|
|
822
821
|
const p = {
|
|
823
|
-
email:
|
|
824
|
-
userToken:
|
|
825
|
-
emailVerifyId:
|
|
822
|
+
email: m.email,
|
|
823
|
+
userToken: m.userToken,
|
|
824
|
+
emailVerifyId: m.emailVerifyId
|
|
826
825
|
};
|
|
827
826
|
Le(p).then(() => {
|
|
828
827
|
u.value = !1, N.success("绑定成功"), o.value = "hidden", a();
|
|
@@ -835,9 +834,9 @@ const tt = /* @__PURE__ */ A({
|
|
|
835
834
|
}
|
|
836
835
|
return Z(() => {
|
|
837
836
|
r.value || a();
|
|
838
|
-
}), (
|
|
839
|
-
var
|
|
840
|
-
return g(), V(G, null, [!((
|
|
837
|
+
}), (m, p) => {
|
|
838
|
+
var c, f, v;
|
|
839
|
+
return g(), V(G, null, [!((c = e(r)) != null && c.email) && o.value === "hidden" ? (g(), k(e(D), {
|
|
841
840
|
key: 0,
|
|
842
841
|
title: "绑定邮箱"
|
|
843
842
|
}, {
|
|
@@ -938,19 +937,19 @@ const yt = /* @__PURE__ */ A({
|
|
|
938
937
|
o.value = !0, window.open(b, "_blank");
|
|
939
938
|
});
|
|
940
939
|
}
|
|
941
|
-
function
|
|
940
|
+
function m() {
|
|
942
941
|
Be().then(() => {
|
|
943
942
|
N.success("解绑成功"), a.value = "hidden", u();
|
|
944
943
|
});
|
|
945
944
|
}
|
|
946
945
|
function p() {
|
|
947
|
-
a.value === "bind" && (a.value = "hidden", y()), a.value === "unbind" &&
|
|
946
|
+
a.value === "bind" && (a.value = "hidden", y()), a.value === "unbind" && m();
|
|
948
947
|
}
|
|
949
|
-
function
|
|
948
|
+
function c() {
|
|
950
949
|
o.value && u();
|
|
951
950
|
}
|
|
952
951
|
return Z(() => {
|
|
953
|
-
r.value || u(), d = setInterval(
|
|
952
|
+
r.value || u(), d = setInterval(c, 1e3);
|
|
954
953
|
}), re(() => {
|
|
955
954
|
d && clearInterval(d);
|
|
956
955
|
}), (f, v) => {
|
|
@@ -983,7 +982,7 @@ const yt = /* @__PURE__ */ A({
|
|
|
983
982
|
}, 8, ["size"])]),
|
|
984
983
|
default: n(() => {
|
|
985
984
|
var R, B, O;
|
|
986
|
-
return [z("span", null, T(`您绑定的账号为 ${(B = (R = e(r)) == null ? void 0 : R.github) == null ? void 0 : B.login}`), 1), i(e(
|
|
985
|
+
return [z("span", null, T(`您绑定的账号为 ${(B = (R = e(r)) == null ? void 0 : R.github) == null ? void 0 : B.login}`), 1), i(e(ce), {
|
|
987
986
|
"image-url": (O = e(r)) == null ? void 0 : O.avatar,
|
|
988
987
|
size: 42
|
|
989
988
|
}, null, 8, ["image-url"])];
|
|
@@ -1022,7 +1021,7 @@ const yt = /* @__PURE__ */ A({
|
|
|
1022
1021
|
clearUserProfile: d
|
|
1023
1022
|
} = J(), {
|
|
1024
1023
|
clearAuth: t
|
|
1025
|
-
} = Q(), s = w("check"), y = w(!1),
|
|
1024
|
+
} = Q(), s = w("check"), y = w(!1), m = w([]), p = w(!1), c = w(""), f = w(0);
|
|
1026
1025
|
let v = null;
|
|
1027
1026
|
const b = F(() => {
|
|
1028
1027
|
var K;
|
|
@@ -1047,7 +1046,7 @@ const yt = /* @__PURE__ */ A({
|
|
|
1047
1046
|
dependencies: K
|
|
1048
1047
|
} = h.data;
|
|
1049
1048
|
if (x)
|
|
1050
|
-
|
|
1049
|
+
m.value = K, s.value = "dependencies";
|
|
1051
1050
|
else {
|
|
1052
1051
|
if (!((L = o.value) != null && L.email)) {
|
|
1053
1052
|
N.error("账号未绑定邮箱,无法进行注销验证。请先绑定邮箱");
|
|
@@ -1072,7 +1071,7 @@ const yt = /* @__PURE__ */ A({
|
|
|
1072
1071
|
const h = await X({
|
|
1073
1072
|
email: o.value.email
|
|
1074
1073
|
});
|
|
1075
|
-
|
|
1074
|
+
c.value = h.data.emailVerifyId, N.success("验证码已发送"), s.value = "confirm", _e();
|
|
1076
1075
|
} catch (h) {
|
|
1077
1076
|
console.error("发送验证码失败:", h);
|
|
1078
1077
|
} finally {
|
|
@@ -1092,7 +1091,7 @@ const yt = /* @__PURE__ */ A({
|
|
|
1092
1091
|
await Ee({
|
|
1093
1092
|
password: $.value.password,
|
|
1094
1093
|
userToken: $.value.userToken,
|
|
1095
|
-
emailVerifyId:
|
|
1094
|
+
emailVerifyId: c.value,
|
|
1096
1095
|
confirmText: $.value.confirmText
|
|
1097
1096
|
}), s.value = "success", d(), t(), a("deleted");
|
|
1098
1097
|
} catch (x) {
|
|
@@ -1130,7 +1129,7 @@ const yt = /* @__PURE__ */ A({
|
|
|
1130
1129
|
}, {
|
|
1131
1130
|
default: n(() => [...h[7] || (h[7] = [_(" 您的账号下还有以下资源,请先处理后再注销: ", -1)])]),
|
|
1132
1131
|
_: 1
|
|
1133
|
-
}), z("div", ht, [(g(!0), V(G, null, Ae(
|
|
1132
|
+
}), z("div", ht, [(g(!0), V(G, null, Ae(m.value, (x) => (g(), V("div", {
|
|
1134
1133
|
key: x.type,
|
|
1135
1134
|
class: "dependency-item"
|
|
1136
1135
|
}, [z("span", wt, T(x.label), 1), z("span", _t, T(x.count) + " 个", 1)]))), 128))]), z("div", bt, [i(e(P), {
|
|
@@ -1296,7 +1295,7 @@ const yt = /* @__PURE__ */ A({
|
|
|
1296
1295
|
a("cancel");
|
|
1297
1296
|
}
|
|
1298
1297
|
function d() {
|
|
1299
|
-
|
|
1298
|
+
c.value = !1, a("cancel");
|
|
1300
1299
|
}
|
|
1301
1300
|
const t = w("large"), s = w(["PersonalInformation"]), y = w([{
|
|
1302
1301
|
name: "个人信息",
|
|
@@ -1351,22 +1350,22 @@ const yt = /* @__PURE__ */ A({
|
|
|
1351
1350
|
// },
|
|
1352
1351
|
]
|
|
1353
1352
|
}]);
|
|
1354
|
-
function
|
|
1353
|
+
function m(v, b) {
|
|
1355
1354
|
const U = v.path;
|
|
1356
1355
|
console.log(U, b, "lokokoko"), s.value = [U];
|
|
1357
1356
|
}
|
|
1358
1357
|
const {
|
|
1359
1358
|
changeType: p,
|
|
1360
|
-
show:
|
|
1359
|
+
show: c
|
|
1361
1360
|
} = Me(a);
|
|
1362
1361
|
function f(v, b) {
|
|
1363
|
-
console.log(v),
|
|
1362
|
+
console.log(v), c.value = b, p.value = "编辑";
|
|
1364
1363
|
}
|
|
1365
1364
|
return r({
|
|
1366
1365
|
setData: f
|
|
1367
|
-
}), (v, b) => (g(), k(e(
|
|
1368
|
-
visible: e(
|
|
1369
|
-
"onUpdate:visible": b[1] || (b[1] = (U) => ue(
|
|
1366
|
+
}), (v, b) => (g(), k(e(me), {
|
|
1367
|
+
visible: e(c),
|
|
1368
|
+
"onUpdate:visible": b[1] || (b[1] = (U) => ue(c) ? c.value = U : null),
|
|
1370
1369
|
"unmount-on-close": "",
|
|
1371
1370
|
"body-class": "AppSettingbodyClass",
|
|
1372
1371
|
"mask-closable": !1,
|
|
@@ -1379,7 +1378,7 @@ const yt = /* @__PURE__ */ A({
|
|
|
1379
1378
|
"selected-keys": s.value,
|
|
1380
1379
|
"onUpdate:selectedKeys": b[0] || (b[0] = (U) => s.value = U),
|
|
1381
1380
|
menus: y.value,
|
|
1382
|
-
onChange:
|
|
1381
|
+
onChange: m
|
|
1383
1382
|
}, null, 8, ["selected-keys", "menus"])]), z("div", At, [s.value[0] === "PersonalInformation" ? (g(), k(Xe, {
|
|
1384
1383
|
key: 0,
|
|
1385
1384
|
size: t.value
|
|
@@ -1400,7 +1399,7 @@ const yt = /* @__PURE__ */ A({
|
|
|
1400
1399
|
_: 1
|
|
1401
1400
|
}, 8, ["visible"]));
|
|
1402
1401
|
}
|
|
1403
|
-
}),
|
|
1402
|
+
}), xi = /* @__PURE__ */ C(Pt, [["__scopeId", "data-v-9f056370"]]);
|
|
1404
1403
|
function ge() {
|
|
1405
1404
|
return E.oauthCallbackUrl ? E.oauthCallbackUrl : `${window.location.origin}/auth/callback`;
|
|
1406
1405
|
}
|
|
@@ -1458,7 +1457,7 @@ function ye() {
|
|
|
1458
1457
|
getOauthCallbackUrl: ge
|
|
1459
1458
|
};
|
|
1460
1459
|
}
|
|
1461
|
-
const
|
|
1460
|
+
const qi = ye, ie = /* @__PURE__ */ A({
|
|
1462
1461
|
__name: "AuthkitOauthItem",
|
|
1463
1462
|
props: {
|
|
1464
1463
|
size: {
|
|
@@ -1528,19 +1527,19 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
1528
1527
|
icon: "mdi:github",
|
|
1529
1528
|
label: "Github",
|
|
1530
1529
|
size: u.size,
|
|
1531
|
-
onClick: y[0] || (y[0] = (
|
|
1530
|
+
onClick: y[0] || (y[0] = (m) => e(a)())
|
|
1532
1531
|
}, null, 8, ["size"])) : S("", !0), e(r).oauth.google.enabled ? (g(), k(ie, {
|
|
1533
1532
|
key: 1,
|
|
1534
1533
|
icon: "mdi:google",
|
|
1535
1534
|
label: "Google",
|
|
1536
1535
|
size: u.size,
|
|
1537
|
-
onClick: y[1] || (y[1] = (
|
|
1536
|
+
onClick: y[1] || (y[1] = (m) => e(o)())
|
|
1538
1537
|
}, null, 8, ["size"])) : S("", !0), e(r).oauth.microsoft.enabled ? (g(), k(ie, {
|
|
1539
1538
|
key: 2,
|
|
1540
1539
|
icon: "mdi:microsoft",
|
|
1541
1540
|
label: "Microsoft",
|
|
1542
1541
|
size: u.size,
|
|
1543
|
-
onClick: y[2] || (y[2] = (
|
|
1542
|
+
onClick: y[2] || (y[2] = (m) => e(d)())
|
|
1544
1543
|
}, null, 8, ["size"])) : S("", !0)])]));
|
|
1545
1544
|
}
|
|
1546
1545
|
}), Tt = /* @__PURE__ */ C(Rt, [["__scopeId", "data-v-886fd902"]]), Lt = {
|
|
@@ -1578,20 +1577,20 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
1578
1577
|
p || (d.value = !0, X({
|
|
1579
1578
|
email: s.value.email
|
|
1580
1579
|
}).then(({
|
|
1581
|
-
data:
|
|
1580
|
+
data: c
|
|
1582
1581
|
}) => {
|
|
1583
|
-
d.value = !1, s.value.emailVerifyId =
|
|
1582
|
+
d.value = !1, s.value.emailVerifyId = c.emailVerifyId, o.value.startCountFn();
|
|
1584
1583
|
}).catch(() => {
|
|
1585
1584
|
d.value = !1;
|
|
1586
1585
|
}));
|
|
1587
1586
|
});
|
|
1588
1587
|
}
|
|
1589
|
-
async function
|
|
1588
|
+
async function m() {
|
|
1590
1589
|
t.value.validate().then((p) => {
|
|
1591
1590
|
p || u("submit", s.value);
|
|
1592
1591
|
});
|
|
1593
1592
|
}
|
|
1594
|
-
return (p,
|
|
1593
|
+
return (p, c) => (g(), V("div", Lt, [i(e(H), {
|
|
1595
1594
|
ref_key: "formRef",
|
|
1596
1595
|
ref: t,
|
|
1597
1596
|
model: s.value,
|
|
@@ -1612,7 +1611,7 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
1612
1611
|
}, {
|
|
1613
1612
|
default: n(() => [i(e(q), {
|
|
1614
1613
|
modelValue: s.value.email,
|
|
1615
|
-
"onUpdate:modelValue":
|
|
1614
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => s.value.email = f),
|
|
1616
1615
|
placeholder: "请输入邮箱"
|
|
1617
1616
|
}, null, 8, ["modelValue"])]),
|
|
1618
1617
|
_: 1
|
|
@@ -1627,7 +1626,7 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
1627
1626
|
}, {
|
|
1628
1627
|
default: n(() => [z("div", Bt, [i(e(q), {
|
|
1629
1628
|
modelValue: s.value.userToken,
|
|
1630
|
-
"onUpdate:modelValue":
|
|
1629
|
+
"onUpdate:modelValue": c[1] || (c[1] = (f) => s.value.userToken = f),
|
|
1631
1630
|
placeholder: "请输入验证码"
|
|
1632
1631
|
}, null, 8, ["modelValue"]), i(ne, {
|
|
1633
1632
|
ref_key: "SendVerifyCodeRef",
|
|
@@ -1654,7 +1653,7 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
1654
1653
|
}, {
|
|
1655
1654
|
default: n(() => [i(e(q), {
|
|
1656
1655
|
modelValue: s.value.password,
|
|
1657
|
-
"onUpdate:modelValue":
|
|
1656
|
+
"onUpdate:modelValue": c[2] || (c[2] = (f) => s.value.password = f),
|
|
1658
1657
|
placeholder: "请输入密码",
|
|
1659
1658
|
type: "password",
|
|
1660
1659
|
autocomplete: ""
|
|
@@ -1678,7 +1677,7 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
1678
1677
|
}, {
|
|
1679
1678
|
default: n(() => [i(e(q), {
|
|
1680
1679
|
modelValue: s.value.confirmPassword,
|
|
1681
|
-
"onUpdate:modelValue":
|
|
1680
|
+
"onUpdate:modelValue": c[3] || (c[3] = (f) => s.value.confirmPassword = f),
|
|
1682
1681
|
placeholder: "请输入确认密码密码",
|
|
1683
1682
|
type: "password",
|
|
1684
1683
|
autocomplete: ""
|
|
@@ -1689,9 +1688,9 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
1689
1688
|
loading: a.loading,
|
|
1690
1689
|
long: "",
|
|
1691
1690
|
size: a.size,
|
|
1692
|
-
onClick:
|
|
1691
|
+
onClick: m
|
|
1693
1692
|
}, {
|
|
1694
|
-
default: n(() => [...
|
|
1693
|
+
default: n(() => [...c[4] || (c[4] = [_(" 提交 ", -1)])]),
|
|
1695
1694
|
_: 1
|
|
1696
1695
|
}, 8, ["loading", "size"])])]),
|
|
1697
1696
|
_: 1
|
|
@@ -1803,16 +1802,16 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
1803
1802
|
emit: r
|
|
1804
1803
|
}) {
|
|
1805
1804
|
const u = r, a = l;
|
|
1806
|
-
async function o(y,
|
|
1805
|
+
async function o(y, m) {
|
|
1807
1806
|
const p = await et({
|
|
1808
1807
|
password: y
|
|
1809
1808
|
});
|
|
1810
|
-
p ||
|
|
1809
|
+
p || m("密码验证请求出错!");
|
|
1811
1810
|
const {
|
|
1812
|
-
isValidate:
|
|
1811
|
+
isValidate: c,
|
|
1813
1812
|
message: f
|
|
1814
1813
|
} = p.data;
|
|
1815
|
-
|
|
1814
|
+
c || m(f), m();
|
|
1816
1815
|
}
|
|
1817
1816
|
const d = w(), t = w({
|
|
1818
1817
|
email: void 0,
|
|
@@ -1823,7 +1822,7 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
1823
1822
|
y || u("submit", t.value);
|
|
1824
1823
|
});
|
|
1825
1824
|
}
|
|
1826
|
-
return (y,
|
|
1825
|
+
return (y, m) => (g(), V("div", Zt, [i(e(H), {
|
|
1827
1826
|
ref_key: "formRef",
|
|
1828
1827
|
ref: d,
|
|
1829
1828
|
model: t.value,
|
|
@@ -1844,7 +1843,7 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
1844
1843
|
}, {
|
|
1845
1844
|
default: n(() => [i(e(q), {
|
|
1846
1845
|
modelValue: t.value.email,
|
|
1847
|
-
"onUpdate:modelValue":
|
|
1846
|
+
"onUpdate:modelValue": m[0] || (m[0] = (p) => t.value.email = p),
|
|
1848
1847
|
placeholder: "请输入邮箱",
|
|
1849
1848
|
autocomplete: "email username",
|
|
1850
1849
|
type: "email"
|
|
@@ -1863,7 +1862,7 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
1863
1862
|
}, {
|
|
1864
1863
|
default: n(() => [i(e(q), {
|
|
1865
1864
|
modelValue: t.value.password,
|
|
1866
|
-
"onUpdate:modelValue":
|
|
1865
|
+
"onUpdate:modelValue": m[1] || (m[1] = (p) => t.value.password = p),
|
|
1867
1866
|
placeholder: "请输入密码",
|
|
1868
1867
|
type: "password",
|
|
1869
1868
|
autocomplete: "current-password"
|
|
@@ -1876,7 +1875,7 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
1876
1875
|
size: a.size,
|
|
1877
1876
|
onClick: s
|
|
1878
1877
|
}, {
|
|
1879
|
-
default: n(() => [...
|
|
1878
|
+
default: n(() => [...m[2] || (m[2] = [_(" 登陆 ", -1)])]),
|
|
1880
1879
|
_: 1
|
|
1881
1880
|
}, 8, ["loading", "size"])])]),
|
|
1882
1881
|
_: 1
|
|
@@ -1941,14 +1940,14 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
1941
1940
|
function s() {
|
|
1942
1941
|
u("switchResetPassword");
|
|
1943
1942
|
}
|
|
1944
|
-
async function y(
|
|
1945
|
-
u("submit",
|
|
1943
|
+
async function y(m) {
|
|
1944
|
+
u("submit", m);
|
|
1946
1945
|
}
|
|
1947
|
-
return (
|
|
1946
|
+
return (m, p) => (g(), V("div", ii, [S("", !0), i(Xt, {
|
|
1948
1947
|
loading: a.loading,
|
|
1949
1948
|
size: a.size,
|
|
1950
1949
|
onSubmit: y
|
|
1951
|
-
}, null, 8, ["loading", "size"]), d.value ? de(
|
|
1950
|
+
}, null, 8, ["loading", "size"]), d.value ? de(m.$slots, "OAuth", {
|
|
1952
1951
|
key: 1
|
|
1953
1952
|
}, void 0, !0) : S("", !0), i(ti, {
|
|
1954
1953
|
onSwitchSignUp: t,
|
|
@@ -2014,7 +2013,7 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
2014
2013
|
} = Q(), {
|
|
2015
2014
|
appsData: t
|
|
2016
2015
|
} = se(), s = F(() => d.value === "signIn" ? `${t.value.name}登录` : d.value === "signUp" ? `${t.value.name}账号注册` : d.value === "resetPassword" ? `${t.value.name}密码重置` : "");
|
|
2017
|
-
return (y,
|
|
2016
|
+
return (y, m) => (g(), V("div", {
|
|
2018
2017
|
class: "Title",
|
|
2019
2018
|
style: le({
|
|
2020
2019
|
fontSize: a,
|
|
@@ -2031,9 +2030,9 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
2031
2030
|
}
|
|
2032
2031
|
}), we = /* @__PURE__ */ C(ui, [["__scopeId", "data-v-5576db64"]]), di = {
|
|
2033
2032
|
class: "Auth"
|
|
2034
|
-
},
|
|
2033
|
+
}, ci = {
|
|
2035
2034
|
class: "body"
|
|
2036
|
-
},
|
|
2035
|
+
}, mi = /* @__PURE__ */ A({
|
|
2037
2036
|
__name: "AuthkitAuth",
|
|
2038
2037
|
props: {
|
|
2039
2038
|
size: {
|
|
@@ -2055,9 +2054,9 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
2055
2054
|
resetPasswordSubmit: t,
|
|
2056
2055
|
currentView: s,
|
|
2057
2056
|
authSignInLoading: y,
|
|
2058
|
-
authSignUpLoading:
|
|
2057
|
+
authSignUpLoading: m,
|
|
2059
2058
|
resetPasswordLoading: p,
|
|
2060
|
-
switchSignUp:
|
|
2059
|
+
switchSignUp: c,
|
|
2061
2060
|
switchResetPassword: f,
|
|
2062
2061
|
switchSignIn: v
|
|
2063
2062
|
} = Q(), {
|
|
@@ -2073,11 +2072,11 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
2073
2072
|
key: 0,
|
|
2074
2073
|
size: 32,
|
|
2075
2074
|
"font-size": 20
|
|
2076
|
-
})) : S("", !0), z("div",
|
|
2075
|
+
})) : S("", !0), z("div", ci, [e(s) === "signIn" ? (g(), k(si, {
|
|
2077
2076
|
key: 0,
|
|
2078
2077
|
size: u.size,
|
|
2079
2078
|
loading: e(y),
|
|
2080
|
-
onSwitchSignUp: e(
|
|
2079
|
+
onSwitchSignUp: e(c),
|
|
2081
2080
|
onSwitchResetPassword: e(f),
|
|
2082
2081
|
onSubmit: B[0] || (B[0] = (O) => e(o)(O))
|
|
2083
2082
|
}, {
|
|
@@ -2088,7 +2087,7 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
2088
2087
|
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(s) === "signUp" ? (g(), k(oi, {
|
|
2089
2088
|
key: 1,
|
|
2090
2089
|
size: u.size,
|
|
2091
|
-
loading: e(
|
|
2090
|
+
loading: e(m),
|
|
2092
2091
|
onSwitchSignIn: e(v),
|
|
2093
2092
|
onSubmit: B[1] || (B[1] = (O) => e(d)(O))
|
|
2094
2093
|
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(s) === "resetPassword" ? (g(), k(Gt, {
|
|
@@ -2102,7 +2101,7 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
2102
2101
|
onToUserServiceAgreement: $
|
|
2103
2102
|
})])]));
|
|
2104
2103
|
}
|
|
2105
|
-
}), fi = /* @__PURE__ */ C(
|
|
2104
|
+
}), fi = /* @__PURE__ */ C(mi, [["__scopeId", "data-v-bc3a1eb8"]]), pi = /* @__PURE__ */ A({
|
|
2106
2105
|
__name: "AuthkitAuthModal",
|
|
2107
2106
|
props: {
|
|
2108
2107
|
size: {
|
|
@@ -2131,9 +2130,9 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
2131
2130
|
}
|
|
2132
2131
|
return u(() => {
|
|
2133
2132
|
a.value = !1;
|
|
2134
|
-
}), (y,
|
|
2133
|
+
}), (y, m) => (g(), k(e(me), {
|
|
2135
2134
|
visible: e(a),
|
|
2136
|
-
"onUpdate:visible":
|
|
2135
|
+
"onUpdate:visible": m[2] || (m[2] = (p) => ue(a) ? a.value = p : null),
|
|
2137
2136
|
footer: !1,
|
|
2138
2137
|
"mask-closable": !1,
|
|
2139
2138
|
"title-align": "center",
|
|
@@ -2147,15 +2146,15 @@ const Ri = ye, ie = /* @__PURE__ */ A({
|
|
|
2147
2146
|
default: n(() => [i(fi, {
|
|
2148
2147
|
"show-title": !1,
|
|
2149
2148
|
size: o.size,
|
|
2150
|
-
onToPrivacyPolicy:
|
|
2151
|
-
onToUserServiceAgreement:
|
|
2149
|
+
onToPrivacyPolicy: m[0] || (m[0] = (p) => d("toPrivacyPolicy")),
|
|
2150
|
+
onToUserServiceAgreement: m[1] || (m[1] = (p) => d("toUserServiceAgreement"))
|
|
2152
2151
|
}, null, 8, ["size"])]),
|
|
2153
2152
|
_: 1
|
|
2154
2153
|
}, 8, ["visible"]));
|
|
2155
2154
|
}
|
|
2156
|
-
}),
|
|
2155
|
+
}), Ri = /* @__PURE__ */ C(pi, [["__scopeId", "data-v-6fbefff8"]]);
|
|
2157
2156
|
export {
|
|
2158
|
-
|
|
2157
|
+
xi as A,
|
|
2159
2158
|
pe as E,
|
|
2160
2159
|
Tt as O,
|
|
2161
2160
|
Dt as P,
|
|
@@ -2164,7 +2163,7 @@ export {
|
|
|
2164
2163
|
ie as _,
|
|
2165
2164
|
fi as a,
|
|
2166
2165
|
we as b,
|
|
2167
|
-
|
|
2166
|
+
Ri as c,
|
|
2168
2167
|
si as d,
|
|
2169
2168
|
oi as e,
|
|
2170
2169
|
Xt as f,
|
|
@@ -2177,8 +2176,8 @@ export {
|
|
|
2177
2176
|
rt as m,
|
|
2178
2177
|
pt as n,
|
|
2179
2178
|
ot as o,
|
|
2180
|
-
|
|
2181
|
-
|
|
2179
|
+
qi as p,
|
|
2180
|
+
Ci as q,
|
|
2182
2181
|
ye as u,
|
|
2183
2182
|
X as v
|
|
2184
2183
|
};
|