@huyooo/ui 0.5.56 → 0.5.58
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-Bt_oatde.js → AuthkitAuthModal-BVXtE_sP.js} +314 -298
- package/dist/{UserAccountMenu-ByEEFdDV.js → UserAccountMenu-BbHFa60w.js} +1 -1
- package/dist/{WidthContainer-C5bq-fmp.js → WidthContainer-VdifT6ZJ.js} +1 -1
- package/dist/api/Authkit/OAuth.d.ts +7 -1
- package/dist/authkit.js +1 -1
- package/dist/common.js +1 -1
- package/dist/composables/Authkit/useAuthkitOAuth.d.ts +2 -1
- package/dist/index.js +3 -3
- package/dist/user.js +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { defineComponent as I, computed as
|
|
5
|
-
import { Form as
|
|
4
|
+
import { defineComponent as I, computed as G, createElementBlock as P, openBlock as g, normalizeStyle as ie, normalizeClass as we, createElementVNode as z, ref as _, createBlock as k, unref as e, withCtx as s, createVNode as i, createTextVNode as w, onMounted as K, onUnmounted as oe, withDirectives as be, toDisplayString as R, vShow as ke, Fragment as F, createCommentVNode as S, renderList as ze, isRef as re, useSlots as Se, renderSlot as ue } from "vue";
|
|
5
|
+
import { Form as H, FormItem as A, Avatar as de, Input as q, Textarea as Ae, Button as V, Message as D, Alert as E, Space as Y, InputPassword as Ie, Result as Ve, Modal as me, Divider as Pe, Link as M } from "@arco-design/web-vue";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { g as
|
|
7
|
+
import { g as N, c as Z, h as ce, u as Ue } from "./auth-CDARHcht.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { u as Ce } from "./useUploadCos-DKh-eczm.js";
|
|
10
10
|
import { b as $e, c as ae, d as xe, a as J, e as qe, f as Te, u as Q, g as Re, h as Le } from "./useAuthkitUsersProfile-B_uMdnat.js";
|
|
11
|
-
import { _ as Be, g as
|
|
11
|
+
import { _ as Be, g as Oe, i as Ee } from "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
12
12
|
import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
import { M as De } from "./Menu-BjWB9hre.js";
|
|
14
|
-
import { u as
|
|
14
|
+
import { u as Ge } from "./useAuthkitCreateAndUpdate-Bsl_uyGQ.js";
|
|
15
15
|
import { u as le } from "./useAuthkitAppsAuthPageInfo-h9CL-MmH.js";
|
|
16
16
|
/* empty css */
|
|
17
|
-
import { Icon as
|
|
18
|
-
const
|
|
17
|
+
import { Icon as He } from "@iconify/vue";
|
|
18
|
+
const Ne = I({
|
|
19
19
|
name: "IconCamera",
|
|
20
20
|
props: {
|
|
21
21
|
size: {
|
|
@@ -28,59 +28,59 @@ const Ge = I({
|
|
|
28
28
|
strokeLinecap: {
|
|
29
29
|
type: String,
|
|
30
30
|
default: "butt",
|
|
31
|
-
validator: (
|
|
31
|
+
validator: (u) => ["butt", "round", "square"].includes(u)
|
|
32
32
|
},
|
|
33
33
|
strokeLinejoin: {
|
|
34
34
|
type: String,
|
|
35
35
|
default: "miter",
|
|
36
|
-
validator: (
|
|
36
|
+
validator: (u) => ["arcs", "bevel", "miter", "miter-clip", "round"].includes(u)
|
|
37
37
|
},
|
|
38
38
|
rotate: Number,
|
|
39
39
|
spin: Boolean
|
|
40
40
|
},
|
|
41
41
|
emits: {
|
|
42
|
-
click: (
|
|
42
|
+
click: (u) => !0
|
|
43
43
|
},
|
|
44
|
-
setup(
|
|
45
|
-
emit:
|
|
44
|
+
setup(u, {
|
|
45
|
+
emit: o
|
|
46
46
|
}) {
|
|
47
|
-
const
|
|
48
|
-
[`${
|
|
49
|
-
}]),
|
|
47
|
+
const a = Oe("icon"), n = G(() => [a, `${a}-camera`, {
|
|
48
|
+
[`${a}-spin`]: u.spin
|
|
49
|
+
}]), r = G(() => {
|
|
50
50
|
const t = {};
|
|
51
|
-
return
|
|
51
|
+
return u.size && (t.fontSize = Ee(u.size) ? `${u.size}px` : u.size), u.rotate && (t.transform = `rotate(${u.rotate}deg)`), t;
|
|
52
52
|
});
|
|
53
53
|
return {
|
|
54
54
|
cls: n,
|
|
55
|
-
innerStyle:
|
|
55
|
+
innerStyle: r,
|
|
56
56
|
onClick: (t) => {
|
|
57
|
-
|
|
57
|
+
o("click", t);
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
}),
|
|
62
|
-
function Me(
|
|
61
|
+
}), Fe = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
62
|
+
function Me(u, o, a, n, r, m) {
|
|
63
63
|
return g(), P("svg", {
|
|
64
64
|
viewBox: "0 0 48 48",
|
|
65
65
|
fill: "none",
|
|
66
66
|
xmlns: "http://www.w3.org/2000/svg",
|
|
67
67
|
stroke: "currentColor",
|
|
68
|
-
class: we(
|
|
69
|
-
style: ie(
|
|
70
|
-
"stroke-width":
|
|
71
|
-
"stroke-linecap":
|
|
72
|
-
"stroke-linejoin":
|
|
73
|
-
onClick:
|
|
74
|
-
},
|
|
68
|
+
class: we(u.cls),
|
|
69
|
+
style: ie(u.innerStyle),
|
|
70
|
+
"stroke-width": u.strokeWidth,
|
|
71
|
+
"stroke-linecap": u.strokeLinecap,
|
|
72
|
+
"stroke-linejoin": u.strokeLinejoin,
|
|
73
|
+
onClick: o[0] || (o[0] = (...t) => u.onClick && u.onClick(...t))
|
|
74
|
+
}, o[1] || (o[1] = [z("path", {
|
|
75
75
|
d: "m33 12-1.862-3.724A.5.5 0 0 0 30.691 8H17.309a.5.5 0 0 0-.447.276L15 12m16 14a7 7 0 1 1-14 0 7 7 0 0 1 14 0ZM7 40h34a1 1 0 0 0 1-1V13a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1Z"
|
|
76
|
-
}, null, -1)]), 14,
|
|
76
|
+
}, null, -1)]), 14, Fe);
|
|
77
77
|
}
|
|
78
|
-
var ee = /* @__PURE__ */ Be(
|
|
78
|
+
var ee = /* @__PURE__ */ Be(Ne, [["render", Me]]);
|
|
79
79
|
const je = Object.assign(ee, {
|
|
80
|
-
install: (
|
|
81
|
-
var
|
|
82
|
-
const n = (
|
|
83
|
-
|
|
80
|
+
install: (u, o) => {
|
|
81
|
+
var a;
|
|
82
|
+
const n = (a = o == null ? void 0 : o.iconPrefix) != null ? a : "";
|
|
83
|
+
u.component(n + ee.name, ee);
|
|
84
84
|
}
|
|
85
85
|
}), We = {
|
|
86
86
|
class: "handle"
|
|
@@ -93,10 +93,10 @@ const je = Object.assign(ee, {
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
emits: ["submit"],
|
|
96
|
-
setup(
|
|
97
|
-
emit:
|
|
96
|
+
setup(u, {
|
|
97
|
+
emit: o
|
|
98
98
|
}) {
|
|
99
|
-
const
|
|
99
|
+
const a = o, n = u, r = _({
|
|
100
100
|
id: void 0,
|
|
101
101
|
nickname: "",
|
|
102
102
|
description: "",
|
|
@@ -107,7 +107,7 @@ const je = Object.assign(ee, {
|
|
|
107
107
|
l.value = !0, $e().then(({
|
|
108
108
|
data: d
|
|
109
109
|
}) => {
|
|
110
|
-
l.value = !1,
|
|
110
|
+
l.value = !1, r.value.id = d.id, r.value.nickname = d.nickname, r.value.description = d.description, r.value.avatar = d.avatar, r.value.avatarUrl = d.avatarUrl;
|
|
111
111
|
}).catch(() => {
|
|
112
112
|
l.value = !1;
|
|
113
113
|
});
|
|
@@ -117,15 +117,15 @@ const je = Object.assign(ee, {
|
|
|
117
117
|
if (!d) {
|
|
118
118
|
l.value = !0;
|
|
119
119
|
const c = {
|
|
120
|
-
id:
|
|
121
|
-
nickname:
|
|
122
|
-
description:
|
|
123
|
-
avatar:
|
|
120
|
+
id: r.value.id,
|
|
121
|
+
nickname: r.value.nickname,
|
|
122
|
+
description: r.value.description,
|
|
123
|
+
avatar: r.value.avatar
|
|
124
124
|
};
|
|
125
125
|
ae(c).then(({
|
|
126
126
|
data: v
|
|
127
127
|
}) => {
|
|
128
|
-
l.value = !1, D.success("更新成功"),
|
|
128
|
+
l.value = !1, D.success("更新成功"), r.value.avatarUrl = v.avatarUrl, a("submit");
|
|
129
129
|
}).catch(() => {
|
|
130
130
|
l.value = !1;
|
|
131
131
|
});
|
|
@@ -144,18 +144,18 @@ const je = Object.assign(ee, {
|
|
|
144
144
|
m.value = !0;
|
|
145
145
|
try {
|
|
146
146
|
d({
|
|
147
|
-
bucketId:
|
|
147
|
+
bucketId: N.avatarBucketId,
|
|
148
148
|
file: U,
|
|
149
|
-
onFileFinish(T, B,
|
|
149
|
+
onFileFinish(T, B, O) {
|
|
150
150
|
m.value = !0;
|
|
151
151
|
const j = {
|
|
152
|
-
id:
|
|
153
|
-
nickname:
|
|
154
|
-
description:
|
|
155
|
-
avatar:
|
|
152
|
+
id: r.value.id,
|
|
153
|
+
nickname: r.value.nickname,
|
|
154
|
+
description: r.value.description,
|
|
155
|
+
avatar: O.Key
|
|
156
156
|
};
|
|
157
157
|
ae(j).then(() => {
|
|
158
|
-
m.value = !1, D.success("更新成功"), y(),
|
|
158
|
+
m.value = !1, D.success("更新成功"), y(), a("submit");
|
|
159
159
|
}).catch(() => {
|
|
160
160
|
m.value = !1;
|
|
161
161
|
});
|
|
@@ -171,10 +171,10 @@ const je = Object.assign(ee, {
|
|
|
171
171
|
c.remove();
|
|
172
172
|
}), c.click();
|
|
173
173
|
};
|
|
174
|
-
return (d, c) => (g(), k(e(
|
|
174
|
+
return (d, c) => (g(), k(e(H), {
|
|
175
175
|
ref_key: "formRef",
|
|
176
176
|
ref: t,
|
|
177
|
-
model:
|
|
177
|
+
model: r.value,
|
|
178
178
|
"auto-label-width": "",
|
|
179
179
|
size: n.size
|
|
180
180
|
}, {
|
|
@@ -187,7 +187,7 @@ const je = Object.assign(ee, {
|
|
|
187
187
|
}]
|
|
188
188
|
}, {
|
|
189
189
|
default: s(() => [i(e(de), {
|
|
190
|
-
"image-url":
|
|
190
|
+
"image-url": r.value.avatarUrl,
|
|
191
191
|
size: 42,
|
|
192
192
|
"object-fit": "cover",
|
|
193
193
|
"trigger-icon-style": {
|
|
@@ -208,8 +208,8 @@ const je = Object.assign(ee, {
|
|
|
208
208
|
}]
|
|
209
209
|
}, {
|
|
210
210
|
default: s(() => [i(e(q), {
|
|
211
|
-
modelValue:
|
|
212
|
-
"onUpdate:modelValue": c[0] || (c[0] = (v) =>
|
|
211
|
+
modelValue: r.value.nickname,
|
|
212
|
+
"onUpdate:modelValue": c[0] || (c[0] = (v) => r.value.nickname = v),
|
|
213
213
|
placeholder: "请输入昵称"
|
|
214
214
|
}, null, 8, ["modelValue"])]),
|
|
215
215
|
_: 1
|
|
@@ -222,8 +222,8 @@ const je = Object.assign(ee, {
|
|
|
222
222
|
}]
|
|
223
223
|
}, {
|
|
224
224
|
default: s(() => [i(e(Ae), {
|
|
225
|
-
modelValue:
|
|
226
|
-
"onUpdate:modelValue": c[1] || (c[1] = (v) =>
|
|
225
|
+
modelValue: r.value.description,
|
|
226
|
+
"onUpdate:modelValue": c[1] || (c[1] = (v) => r.value.description = v),
|
|
227
227
|
placeholder: "请输入描述",
|
|
228
228
|
"allow-clear": "",
|
|
229
229
|
"auto-size": {
|
|
@@ -250,25 +250,25 @@ const je = Object.assign(ee, {
|
|
|
250
250
|
}, 8, ["model", "size"]));
|
|
251
251
|
}
|
|
252
252
|
}), Ze = /* @__PURE__ */ $(Ke, [["__scopeId", "data-v-c241b7f8"]]);
|
|
253
|
-
function Je(
|
|
253
|
+
function Je(u) {
|
|
254
254
|
return Z({
|
|
255
|
-
url: `${
|
|
255
|
+
url: `${N.authPrefixUrl}/restfulApi/verify/email`,
|
|
256
256
|
method: "post",
|
|
257
|
-
data:
|
|
257
|
+
data: u
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
|
-
function X(
|
|
260
|
+
function X(u) {
|
|
261
261
|
return Z({
|
|
262
|
-
url: `${
|
|
262
|
+
url: `${N.authPrefixUrl}/restfulApi/verify/email/retry`,
|
|
263
263
|
method: "post",
|
|
264
|
-
data:
|
|
264
|
+
data: u
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
|
-
function Qe(
|
|
267
|
+
function Qe(u) {
|
|
268
268
|
return Z({
|
|
269
|
-
url: `${
|
|
269
|
+
url: `${N.authPrefixUrl}/restfulApi/verify/password`,
|
|
270
270
|
method: "post",
|
|
271
|
-
data:
|
|
271
|
+
data: u
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
274
|
const Xe = /* @__PURE__ */ I({
|
|
@@ -285,13 +285,13 @@ const Xe = /* @__PURE__ */ I({
|
|
|
285
285
|
}
|
|
286
286
|
},
|
|
287
287
|
emits: ["send"],
|
|
288
|
-
setup(
|
|
289
|
-
expose:
|
|
290
|
-
emit:
|
|
288
|
+
setup(u, {
|
|
289
|
+
expose: o,
|
|
290
|
+
emit: a
|
|
291
291
|
}) {
|
|
292
|
-
const n =
|
|
292
|
+
const n = a, r = u, m = _(!1);
|
|
293
293
|
let t;
|
|
294
|
-
const l = _(0), y =
|
|
294
|
+
const l = _(0), y = G(() => l.value.toString().padStart(2, "0")), f = G(() => l.value > 0), p = () => {
|
|
295
295
|
m.value && (l.value <= 0 ? (clearInterval(t), m.value = !1) : l.value--);
|
|
296
296
|
};
|
|
297
297
|
function d() {
|
|
@@ -301,21 +301,21 @@ const Xe = /* @__PURE__ */ I({
|
|
|
301
301
|
l.value = 60, m.value = !0, t && clearInterval(t), t = setInterval(p, 1e3);
|
|
302
302
|
}
|
|
303
303
|
return K(() => {
|
|
304
|
-
}),
|
|
304
|
+
}), o({
|
|
305
305
|
startCountFn: c
|
|
306
306
|
}), oe(() => {
|
|
307
307
|
t && clearInterval(t);
|
|
308
308
|
}), (v, b) => (g(), k(e(V), {
|
|
309
309
|
class: "OAuthItem",
|
|
310
310
|
type: "primary",
|
|
311
|
-
size:
|
|
311
|
+
size: r.size,
|
|
312
312
|
disabled: f.value,
|
|
313
|
-
loading:
|
|
313
|
+
loading: r.loading,
|
|
314
314
|
onClick: d
|
|
315
315
|
}, {
|
|
316
|
-
default: s(() => [b[0] || (b[0] = z("span", null, " 发送验证码", -1)),
|
|
316
|
+
default: s(() => [b[0] || (b[0] = z("span", null, " 发送验证码", -1)), be(z("span", {
|
|
317
317
|
class: "verify-code-timer"
|
|
318
|
-
}, R(`(${y.value})`), 513), [[
|
|
318
|
+
}, R(`(${y.value})`), 513), [[ke, f.value]])]),
|
|
319
319
|
_: 1
|
|
320
320
|
}, 8, ["size", "disabled", "loading"]));
|
|
321
321
|
}
|
|
@@ -337,10 +337,10 @@ const Xe = /* @__PURE__ */ I({
|
|
|
337
337
|
}
|
|
338
338
|
},
|
|
339
339
|
emits: ["next"],
|
|
340
|
-
setup(
|
|
341
|
-
emit:
|
|
340
|
+
setup(u, {
|
|
341
|
+
emit: o
|
|
342
342
|
}) {
|
|
343
|
-
const
|
|
343
|
+
const a = o, n = u, r = G(() => ce(n.email)), m = _(), t = _(!1), l = _(!1), y = _(), f = _({
|
|
344
344
|
userToken: void 0,
|
|
345
345
|
emailVerifyId: void 0
|
|
346
346
|
});
|
|
@@ -365,14 +365,14 @@ const Xe = /* @__PURE__ */ I({
|
|
|
365
365
|
emailVerifyId: f.value.emailVerifyId
|
|
366
366
|
};
|
|
367
367
|
Je(v).then(() => {
|
|
368
|
-
l.value = !1,
|
|
368
|
+
l.value = !1, a("next");
|
|
369
369
|
}).catch(() => {
|
|
370
370
|
l.value = !1;
|
|
371
371
|
});
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
|
-
return (c, v) => (g(), k(e(
|
|
375
|
+
return (c, v) => (g(), k(e(H), {
|
|
376
376
|
ref_key: "formRef",
|
|
377
377
|
ref: y,
|
|
378
378
|
model: f.value,
|
|
@@ -390,7 +390,7 @@ const Xe = /* @__PURE__ */ I({
|
|
|
390
390
|
message: "请输入有效的邮箱"
|
|
391
391
|
}]
|
|
392
392
|
}, {
|
|
393
|
-
default: s(() => [w(R(
|
|
393
|
+
default: s(() => [w(R(r.value), 1)]),
|
|
394
394
|
_: 1
|
|
395
395
|
}), i(e(A), {
|
|
396
396
|
field: "userToken",
|
|
@@ -445,31 +445,31 @@ const Xe = /* @__PURE__ */ I({
|
|
|
445
445
|
}
|
|
446
446
|
},
|
|
447
447
|
emits: ["submit"],
|
|
448
|
-
setup(
|
|
449
|
-
emit:
|
|
448
|
+
setup(u, {
|
|
449
|
+
emit: o
|
|
450
450
|
}) {
|
|
451
|
-
const
|
|
451
|
+
const a = o, n = _(!1), r = _(), m = u, t = _({
|
|
452
452
|
oldPassword: "",
|
|
453
453
|
password: "",
|
|
454
454
|
confirmPassword: ""
|
|
455
455
|
});
|
|
456
456
|
async function l() {
|
|
457
|
-
|
|
457
|
+
r.value.validate().then((y) => {
|
|
458
458
|
if (!y) {
|
|
459
459
|
const f = {
|
|
460
460
|
password: t.value.password
|
|
461
461
|
};
|
|
462
462
|
xe(f).then(() => {
|
|
463
|
-
n.value = !1,
|
|
463
|
+
n.value = !1, a("submit", f);
|
|
464
464
|
}).catch(() => {
|
|
465
465
|
n.value = !1;
|
|
466
466
|
});
|
|
467
467
|
}
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
|
-
return (y, f) => (g(), k(e(
|
|
470
|
+
return (y, f) => (g(), k(e(H), {
|
|
471
471
|
ref_key: "formRef",
|
|
472
|
-
ref:
|
|
472
|
+
ref: r,
|
|
473
473
|
model: t.value,
|
|
474
474
|
"auto-label-width": "",
|
|
475
475
|
size: m.size
|
|
@@ -558,13 +558,13 @@ const Xe = /* @__PURE__ */ I({
|
|
|
558
558
|
required: !0
|
|
559
559
|
}
|
|
560
560
|
},
|
|
561
|
-
setup(
|
|
561
|
+
setup(u) {
|
|
562
562
|
const {
|
|
563
|
-
userProfile:
|
|
564
|
-
loading:
|
|
563
|
+
userProfile: o,
|
|
564
|
+
loading: a,
|
|
565
565
|
fetchUserProfile: n,
|
|
566
|
-
isLoggedIn:
|
|
567
|
-
} = J(), m = _("hidden"), t =
|
|
566
|
+
isLoggedIn: r
|
|
567
|
+
} = J(), m = _("hidden"), t = u;
|
|
568
568
|
function l(p) {
|
|
569
569
|
m.value = p;
|
|
570
570
|
}
|
|
@@ -575,10 +575,10 @@ const Xe = /* @__PURE__ */ I({
|
|
|
575
575
|
m.value = "update";
|
|
576
576
|
}
|
|
577
577
|
return K(() => {
|
|
578
|
-
|
|
578
|
+
r.value && !o.value && n();
|
|
579
579
|
}), (p, d) => {
|
|
580
580
|
var c, v, b, U;
|
|
581
|
-
return g(), P(
|
|
581
|
+
return g(), P(F, null, [!((c = e(o)) != null && c.email) && !((v = e(o)) != null && v.phone) ? (g(), k(e(E), {
|
|
582
582
|
key: 0,
|
|
583
583
|
title: "去绑定邮箱"
|
|
584
584
|
}, {
|
|
@@ -592,7 +592,7 @@ const Xe = /* @__PURE__ */ I({
|
|
|
592
592
|
}, 8, ["size"])]),
|
|
593
593
|
default: s(() => [d[3] || (d[3] = w(" 请先去绑定邮箱或者手机号码,才能设置密码 ", -1))]),
|
|
594
594
|
_: 1
|
|
595
|
-
})) : S("", !0), (b = e(
|
|
595
|
+
})) : S("", !0), (b = e(o)) != null && b.email && m.value === "hidden" ? (g(), k(e(E), {
|
|
596
596
|
key: 1,
|
|
597
597
|
title: "更改密码"
|
|
598
598
|
}, {
|
|
@@ -609,12 +609,12 @@ const Xe = /* @__PURE__ */ I({
|
|
|
609
609
|
})) : S("", !0), m.value === "update" ? (g(), k(st, {
|
|
610
610
|
key: 2,
|
|
611
611
|
size: t.size,
|
|
612
|
-
loading: e(
|
|
612
|
+
loading: e(a),
|
|
613
613
|
onSubmit: y
|
|
614
614
|
}, null, 8, ["size", "loading"])) : S("", !0), m.value === "verify" ? (g(), k(ne, {
|
|
615
615
|
key: 3,
|
|
616
616
|
size: t.size,
|
|
617
|
-
email: (U = e(
|
|
617
|
+
email: (U = e(o)) == null ? void 0 : U.email,
|
|
618
618
|
onNext: f
|
|
619
619
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
620
620
|
};
|
|
@@ -639,10 +639,10 @@ const Xe = /* @__PURE__ */ I({
|
|
|
639
639
|
}
|
|
640
640
|
},
|
|
641
641
|
emits: ["submit"],
|
|
642
|
-
setup(
|
|
643
|
-
emit:
|
|
642
|
+
setup(u, {
|
|
643
|
+
emit: o
|
|
644
644
|
}) {
|
|
645
|
-
const
|
|
645
|
+
const a = o, n = u, r = _(), m = _(!1), t = _(), l = _({
|
|
646
646
|
email: void 0,
|
|
647
647
|
userToken: void 0,
|
|
648
648
|
emailVerifyId: void 0,
|
|
@@ -657,7 +657,7 @@ const Xe = /* @__PURE__ */ I({
|
|
|
657
657
|
}).then(({
|
|
658
658
|
data: d
|
|
659
659
|
}) => {
|
|
660
|
-
l.value.emailVerifyId = d.emailVerifyId, m.value = !1,
|
|
660
|
+
l.value.emailVerifyId = d.emailVerifyId, m.value = !1, r.value.startCountFn();
|
|
661
661
|
}).catch(() => {
|
|
662
662
|
m.value = !1;
|
|
663
663
|
}));
|
|
@@ -665,10 +665,10 @@ const Xe = /* @__PURE__ */ I({
|
|
|
665
665
|
}
|
|
666
666
|
async function f() {
|
|
667
667
|
t.value.validate().then((p) => {
|
|
668
|
-
p ||
|
|
668
|
+
p || a("submit", l.value);
|
|
669
669
|
});
|
|
670
670
|
}
|
|
671
|
-
return (p, d) => (g(), P("div", at, [i(e(
|
|
671
|
+
return (p, d) => (g(), P("div", at, [i(e(H), {
|
|
672
672
|
ref_key: "formRef",
|
|
673
673
|
ref: t,
|
|
674
674
|
model: l.value,
|
|
@@ -711,7 +711,7 @@ const Xe = /* @__PURE__ */ I({
|
|
|
711
711
|
autocomplete: "one-time-code"
|
|
712
712
|
}, null, 8, ["modelValue"]), i(se, {
|
|
713
713
|
ref_key: "SendVerifyCodeRef",
|
|
714
|
-
ref:
|
|
714
|
+
ref: r,
|
|
715
715
|
size: n.size,
|
|
716
716
|
loading: m.value,
|
|
717
717
|
style: {
|
|
@@ -801,36 +801,36 @@ const Xe = /* @__PURE__ */ I({
|
|
|
801
801
|
required: !0
|
|
802
802
|
}
|
|
803
803
|
},
|
|
804
|
-
setup(
|
|
804
|
+
setup(u) {
|
|
805
805
|
const {
|
|
806
|
-
userProfile:
|
|
807
|
-
loading:
|
|
806
|
+
userProfile: o,
|
|
807
|
+
loading: a,
|
|
808
808
|
fetchUserProfile: n
|
|
809
|
-
} = J(),
|
|
809
|
+
} = J(), r = _("hidden"), m = u;
|
|
810
810
|
function t(f) {
|
|
811
|
-
|
|
811
|
+
r.value = f;
|
|
812
812
|
}
|
|
813
813
|
function l(f) {
|
|
814
|
-
|
|
814
|
+
a.value = !0;
|
|
815
815
|
const p = {
|
|
816
816
|
email: f.email,
|
|
817
817
|
userToken: f.userToken,
|
|
818
818
|
emailVerifyId: f.emailVerifyId
|
|
819
819
|
};
|
|
820
820
|
qe(p).then(() => {
|
|
821
|
-
|
|
821
|
+
a.value = !1, D.success("绑定成功"), r.value = "hidden", n();
|
|
822
822
|
}).catch(() => {
|
|
823
|
-
|
|
823
|
+
a.value = !1;
|
|
824
824
|
});
|
|
825
825
|
}
|
|
826
826
|
function y() {
|
|
827
|
-
|
|
827
|
+
r.value = "update";
|
|
828
828
|
}
|
|
829
829
|
return K(() => {
|
|
830
|
-
|
|
830
|
+
o.value || n();
|
|
831
831
|
}), (f, p) => {
|
|
832
832
|
var d, c, v;
|
|
833
|
-
return g(), P(
|
|
833
|
+
return g(), P(F, null, [!((d = e(o)) != null && d.email) && r.value === "hidden" ? (g(), k(e(E), {
|
|
834
834
|
key: 0,
|
|
835
835
|
title: "绑定邮箱"
|
|
836
836
|
}, {
|
|
@@ -844,7 +844,7 @@ const Xe = /* @__PURE__ */ I({
|
|
|
844
844
|
}, 8, ["size"])]),
|
|
845
845
|
default: s(() => [p[3] || (p[3] = w(" 您还未绑定邮箱,请点击绑定邮箱 ", -1))]),
|
|
846
846
|
_: 1
|
|
847
|
-
})) : S("", !0), (c = e(
|
|
847
|
+
})) : S("", !0), (c = e(o)) != null && c.email && r.value === "hidden" ? (g(), k(e(E), {
|
|
848
848
|
key: 1,
|
|
849
849
|
title: "更改邮箱"
|
|
850
850
|
}, {
|
|
@@ -858,27 +858,28 @@ const Xe = /* @__PURE__ */ I({
|
|
|
858
858
|
}, 8, ["size"])]),
|
|
859
859
|
default: s(() => {
|
|
860
860
|
var b;
|
|
861
|
-
return [w(R(`您绑定的邮箱为${e(ce)((b = e(
|
|
861
|
+
return [w(R(`您绑定的邮箱为${e(ce)((b = e(o)) == null ? void 0 : b.email)}`) + " ", 1)];
|
|
862
862
|
}),
|
|
863
863
|
_: 1
|
|
864
|
-
})) : S("", !0),
|
|
864
|
+
})) : S("", !0), r.value === "update" ? (g(), k(fe, {
|
|
865
865
|
key: 2,
|
|
866
|
-
loading: e(
|
|
866
|
+
loading: e(a),
|
|
867
867
|
size: m.size,
|
|
868
868
|
onSubmit: l
|
|
869
|
-
}, null, 8, ["loading", "size"])) : S("", !0),
|
|
869
|
+
}, null, 8, ["loading", "size"])) : S("", !0), r.value === "verify" ? (g(), k(ne, {
|
|
870
870
|
key: 3,
|
|
871
871
|
size: m.size,
|
|
872
|
-
email: (v = e(
|
|
872
|
+
email: (v = e(o)) == null ? void 0 : v.email,
|
|
873
873
|
onNext: y
|
|
874
874
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
875
875
|
};
|
|
876
876
|
}
|
|
877
877
|
}), mt = /* @__PURE__ */ $(dt, [["__scopeId", "data-v-b2663ea1"]]);
|
|
878
|
-
function pe() {
|
|
878
|
+
function pe(u) {
|
|
879
879
|
return Z({
|
|
880
|
-
url: `${
|
|
881
|
-
method: "get"
|
|
880
|
+
url: `${N.authPrefixUrl}/restfulApi/OAuth/github/login`,
|
|
881
|
+
method: "get",
|
|
882
|
+
params: u
|
|
882
883
|
});
|
|
883
884
|
}
|
|
884
885
|
const ct = /* @__PURE__ */ I({
|
|
@@ -889,44 +890,51 @@ const ct = /* @__PURE__ */ I({
|
|
|
889
890
|
required: !0
|
|
890
891
|
}
|
|
891
892
|
},
|
|
892
|
-
setup(
|
|
893
|
+
setup(u) {
|
|
893
894
|
const {
|
|
894
|
-
userProfile:
|
|
895
|
-
fetchUserProfile:
|
|
896
|
-
} = J(), n = _("hidden"),
|
|
895
|
+
userProfile: o,
|
|
896
|
+
fetchUserProfile: a
|
|
897
|
+
} = J(), n = _("hidden"), r = _(!1);
|
|
897
898
|
let m;
|
|
898
|
-
const t =
|
|
899
|
+
const t = u;
|
|
899
900
|
function l(c) {
|
|
900
901
|
n.value = c;
|
|
901
902
|
}
|
|
902
903
|
function y() {
|
|
903
|
-
|
|
904
|
-
|
|
904
|
+
const c = N.appId;
|
|
905
|
+
if (!c) {
|
|
906
|
+
console.error("GitHub OAuth 失败: appId 未配置");
|
|
907
|
+
return;
|
|
908
|
+
}
|
|
909
|
+
pe({
|
|
910
|
+
appId: c
|
|
911
|
+
}).then(({
|
|
912
|
+
data: v
|
|
905
913
|
}) => {
|
|
906
914
|
const {
|
|
907
|
-
redirectUri:
|
|
908
|
-
} =
|
|
909
|
-
|
|
915
|
+
redirectUri: b
|
|
916
|
+
} = v;
|
|
917
|
+
r.value = !0, window.open(b, "_blank");
|
|
910
918
|
});
|
|
911
919
|
}
|
|
912
920
|
function f() {
|
|
913
921
|
Te().then(() => {
|
|
914
|
-
D.success("解绑成功"), n.value = "hidden",
|
|
922
|
+
D.success("解绑成功"), n.value = "hidden", a();
|
|
915
923
|
});
|
|
916
924
|
}
|
|
917
925
|
function p() {
|
|
918
926
|
n.value === "bind" && (n.value = "hidden", y()), n.value === "unbind" && f();
|
|
919
927
|
}
|
|
920
928
|
function d() {
|
|
921
|
-
|
|
929
|
+
r.value && a();
|
|
922
930
|
}
|
|
923
931
|
return K(() => {
|
|
924
|
-
|
|
932
|
+
o.value || a(), m = setInterval(d, 1e3);
|
|
925
933
|
}), oe(() => {
|
|
926
934
|
m && clearInterval(m);
|
|
927
935
|
}), (c, v) => {
|
|
928
936
|
var b, U, C;
|
|
929
|
-
return g(), P(
|
|
937
|
+
return g(), P(F, null, [!((b = e(o)) != null && b.github) && n.value === "hidden" ? (g(), k(e(E), {
|
|
930
938
|
key: 0,
|
|
931
939
|
title: "绑定GitHUb"
|
|
932
940
|
}, {
|
|
@@ -940,7 +948,7 @@ const ct = /* @__PURE__ */ I({
|
|
|
940
948
|
}, 8, ["size"])]),
|
|
941
949
|
default: s(() => [v[3] || (v[3] = w(" 请尚未绑定GitHub,请点击绑定GitHUb ", -1))]),
|
|
942
950
|
_: 1
|
|
943
|
-
})) : S("", !0), (U = e(
|
|
951
|
+
})) : S("", !0), (U = e(o)) != null && U.github && n.value === "hidden" ? (g(), k(e(E), {
|
|
944
952
|
key: 1,
|
|
945
953
|
title: "解绑GitHub"
|
|
946
954
|
}, {
|
|
@@ -953,9 +961,9 @@ const ct = /* @__PURE__ */ I({
|
|
|
953
961
|
_: 1
|
|
954
962
|
}, 8, ["size"])]),
|
|
955
963
|
default: s(() => {
|
|
956
|
-
var T, B,
|
|
957
|
-
return [z("span", null, R(`您绑定的账号为 ${(B = (T = e(
|
|
958
|
-
"image-url": (
|
|
964
|
+
var T, B, O;
|
|
965
|
+
return [z("span", null, R(`您绑定的账号为 ${(B = (T = e(o)) == null ? void 0 : T.github) == null ? void 0 : B.login}`), 1), i(e(de), {
|
|
966
|
+
"image-url": (O = e(o)) == null ? void 0 : O.avatar,
|
|
959
967
|
size: 42
|
|
960
968
|
}, null, 8, ["image-url"])];
|
|
961
969
|
}),
|
|
@@ -963,7 +971,7 @@ const ct = /* @__PURE__ */ I({
|
|
|
963
971
|
})) : S("", !0), n.value === "bind" || n.value === "unbind" ? (g(), k(ne, {
|
|
964
972
|
key: 2,
|
|
965
973
|
size: t.size,
|
|
966
|
-
email: (C = e(
|
|
974
|
+
email: (C = e(o)) == null ? void 0 : C.email,
|
|
967
975
|
onNext: p
|
|
968
976
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
969
977
|
};
|
|
@@ -985,19 +993,19 @@ const ct = /* @__PURE__ */ I({
|
|
|
985
993
|
}
|
|
986
994
|
},
|
|
987
995
|
emits: ["deleted"],
|
|
988
|
-
setup(
|
|
989
|
-
emit:
|
|
996
|
+
setup(u, {
|
|
997
|
+
emit: o
|
|
990
998
|
}) {
|
|
991
|
-
const
|
|
992
|
-
userProfile:
|
|
999
|
+
const a = u, n = o, {
|
|
1000
|
+
userProfile: r,
|
|
993
1001
|
clearUserProfile: m
|
|
994
1002
|
} = J(), {
|
|
995
1003
|
clearAuth: t
|
|
996
1004
|
} = Q(), l = _("check"), y = _(!1), f = _([]), p = _(!1), d = _(""), c = _(0);
|
|
997
1005
|
let v = null;
|
|
998
|
-
const b =
|
|
1006
|
+
const b = G(() => {
|
|
999
1007
|
var W;
|
|
1000
|
-
const L = ((W =
|
|
1008
|
+
const L = ((W = r.value) == null ? void 0 : W.email) || "";
|
|
1001
1009
|
if (!L) return "";
|
|
1002
1010
|
const [h, x] = L.split("@");
|
|
1003
1011
|
return h.length <= 2 ? L : `${h.slice(0, 2)}***@${x}`;
|
|
@@ -1009,7 +1017,7 @@ const ct = /* @__PURE__ */ I({
|
|
|
1009
1017
|
function B(L, h) {
|
|
1010
1018
|
L !== "注销" ? h('请输入"注销"以确认操作') : h();
|
|
1011
1019
|
}
|
|
1012
|
-
async function
|
|
1020
|
+
async function O() {
|
|
1013
1021
|
var L;
|
|
1014
1022
|
y.value = !0;
|
|
1015
1023
|
try {
|
|
@@ -1020,7 +1028,7 @@ const ct = /* @__PURE__ */ I({
|
|
|
1020
1028
|
if (x)
|
|
1021
1029
|
f.value = W, l.value = "dependencies";
|
|
1022
1030
|
else {
|
|
1023
|
-
if (!((L =
|
|
1031
|
+
if (!((L = r.value) != null && L.email)) {
|
|
1024
1032
|
D.error("账号未绑定邮箱,无法进行注销验证。请先绑定邮箱");
|
|
1025
1033
|
return;
|
|
1026
1034
|
}
|
|
@@ -1034,14 +1042,14 @@ const ct = /* @__PURE__ */ I({
|
|
|
1034
1042
|
}
|
|
1035
1043
|
async function j() {
|
|
1036
1044
|
var L;
|
|
1037
|
-
if (!((L =
|
|
1045
|
+
if (!((L = r.value) != null && L.email)) {
|
|
1038
1046
|
D.error("请先绑定邮箱");
|
|
1039
1047
|
return;
|
|
1040
1048
|
}
|
|
1041
1049
|
p.value = !0;
|
|
1042
1050
|
try {
|
|
1043
1051
|
const h = await X({
|
|
1044
|
-
email:
|
|
1052
|
+
email: r.value.email
|
|
1045
1053
|
});
|
|
1046
1054
|
d.value = h.data.emailVerifyId, D.success("验证码已发送"), l.value = "confirm", ye();
|
|
1047
1055
|
} catch (h) {
|
|
@@ -1076,54 +1084,54 @@ const ct = /* @__PURE__ */ I({
|
|
|
1076
1084
|
function _e() {
|
|
1077
1085
|
window.location.href = "/";
|
|
1078
1086
|
}
|
|
1079
|
-
return (L, h) => l.value === "check" ? (g(), k(e(
|
|
1087
|
+
return (L, h) => l.value === "check" ? (g(), k(e(E), {
|
|
1080
1088
|
key: 0,
|
|
1081
1089
|
type: "warning",
|
|
1082
1090
|
title: "注销账号"
|
|
1083
1091
|
}, {
|
|
1084
1092
|
action: s(() => [i(e(V), {
|
|
1085
|
-
size:
|
|
1093
|
+
size: a.size,
|
|
1086
1094
|
type: "primary",
|
|
1087
1095
|
status: "danger",
|
|
1088
1096
|
loading: y.value,
|
|
1089
|
-
onClick:
|
|
1097
|
+
onClick: O
|
|
1090
1098
|
}, {
|
|
1091
1099
|
default: s(() => [w(R(y.value ? "检查中..." : "开始注销"), 1)]),
|
|
1092
1100
|
_: 1
|
|
1093
1101
|
}, 8, ["size", "loading"])]),
|
|
1094
1102
|
default: s(() => [h[6] || (h[6] = w(" 注销账号后,您的所有数据将被永久删除,无法恢复。请确认您已备份重要数据。 ", -1))]),
|
|
1095
1103
|
_: 1
|
|
1096
|
-
})) : l.value === "dependencies" ? (g(), P(
|
|
1104
|
+
})) : l.value === "dependencies" ? (g(), P(F, {
|
|
1097
1105
|
key: 1
|
|
1098
|
-
}, [i(e(
|
|
1106
|
+
}, [i(e(E), {
|
|
1099
1107
|
type: "error",
|
|
1100
1108
|
title: "无法注销账号"
|
|
1101
1109
|
}, {
|
|
1102
1110
|
default: s(() => [...h[7] || (h[7] = [w(" 您的账号下还有以下资源,请先处理后再注销: ", -1)])]),
|
|
1103
1111
|
_: 1
|
|
1104
|
-
}), z("div", ft, [(g(!0), P(
|
|
1112
|
+
}), z("div", ft, [(g(!0), P(F, null, ze(f.value, (x) => (g(), P("div", {
|
|
1105
1113
|
key: x.type,
|
|
1106
1114
|
class: "dependency-item"
|
|
1107
1115
|
}, [z("span", pt, R(x.label), 1), z("span", vt, R(x.count) + " 个", 1)]))), 128))]), z("div", gt, [i(e(V), {
|
|
1108
|
-
size:
|
|
1116
|
+
size: a.size,
|
|
1109
1117
|
onClick: h[0] || (h[0] = (x) => l.value = "check")
|
|
1110
1118
|
}, {
|
|
1111
1119
|
default: s(() => [...h[8] || (h[8] = [w("返回", -1)])]),
|
|
1112
1120
|
_: 1
|
|
1113
|
-
}, 8, ["size"])])], 64)) : l.value === "sendCode" ? (g(), k(e(
|
|
1121
|
+
}, 8, ["size"])])], 64)) : l.value === "sendCode" ? (g(), k(e(E), {
|
|
1114
1122
|
key: 2,
|
|
1115
1123
|
type: "normal",
|
|
1116
1124
|
title: "身份验证"
|
|
1117
1125
|
}, {
|
|
1118
1126
|
action: s(() => [i(e(Y), null, {
|
|
1119
1127
|
default: s(() => [i(e(V), {
|
|
1120
|
-
size:
|
|
1128
|
+
size: a.size,
|
|
1121
1129
|
onClick: h[1] || (h[1] = (x) => l.value = "check")
|
|
1122
1130
|
}, {
|
|
1123
1131
|
default: s(() => [...h[9] || (h[9] = [w("取消", -1)])]),
|
|
1124
1132
|
_: 1
|
|
1125
1133
|
}, 8, ["size"]), i(e(V), {
|
|
1126
|
-
size:
|
|
1134
|
+
size: a.size,
|
|
1127
1135
|
type: "primary",
|
|
1128
1136
|
loading: p.value,
|
|
1129
1137
|
onClick: j
|
|
@@ -1135,19 +1143,19 @@ const ct = /* @__PURE__ */ I({
|
|
|
1135
1143
|
})]),
|
|
1136
1144
|
default: s(() => [w(" 为确保账号安全,我们将向您的邮箱 " + R(b.value) + " 发送验证码 ", 1)]),
|
|
1137
1145
|
_: 1
|
|
1138
|
-
})) : l.value === "confirm" ? (g(), P(
|
|
1146
|
+
})) : l.value === "confirm" ? (g(), P(F, {
|
|
1139
1147
|
key: 3
|
|
1140
|
-
}, [i(e(
|
|
1148
|
+
}, [i(e(E), {
|
|
1141
1149
|
type: "warning",
|
|
1142
1150
|
title: "确认注销"
|
|
1143
1151
|
}, {
|
|
1144
1152
|
default: s(() => [w(" 验证码已发送至 " + R(b.value) + ",此操作不可逆,请谨慎操作 ", 1)]),
|
|
1145
1153
|
_: 1
|
|
1146
|
-
}), i(e(
|
|
1154
|
+
}), i(e(H), {
|
|
1147
1155
|
ref_key: "formRef",
|
|
1148
1156
|
ref: U,
|
|
1149
1157
|
model: C.value,
|
|
1150
|
-
size:
|
|
1158
|
+
size: a.size,
|
|
1151
1159
|
class: "confirm-form",
|
|
1152
1160
|
layout: "vertical"
|
|
1153
1161
|
}, {
|
|
@@ -1253,17 +1261,17 @@ const ct = /* @__PURE__ */ I({
|
|
|
1253
1261
|
class: "content"
|
|
1254
1262
|
}, wt = {
|
|
1255
1263
|
class: "left"
|
|
1256
|
-
},
|
|
1264
|
+
}, bt = {
|
|
1257
1265
|
class: "right"
|
|
1258
|
-
},
|
|
1266
|
+
}, kt = /* @__PURE__ */ I({
|
|
1259
1267
|
__name: "AuthkitAppSetting",
|
|
1260
1268
|
emits: ["confirm", "cancel"],
|
|
1261
|
-
setup(
|
|
1262
|
-
expose:
|
|
1263
|
-
emit:
|
|
1269
|
+
setup(u, {
|
|
1270
|
+
expose: o,
|
|
1271
|
+
emit: a
|
|
1264
1272
|
}) {
|
|
1265
|
-
const n =
|
|
1266
|
-
function
|
|
1273
|
+
const n = a;
|
|
1274
|
+
function r() {
|
|
1267
1275
|
n("cancel");
|
|
1268
1276
|
}
|
|
1269
1277
|
function m() {
|
|
@@ -1329,11 +1337,11 @@ const ct = /* @__PURE__ */ I({
|
|
|
1329
1337
|
const {
|
|
1330
1338
|
changeType: p,
|
|
1331
1339
|
show: d
|
|
1332
|
-
} =
|
|
1340
|
+
} = Ge(n);
|
|
1333
1341
|
function c(v, b) {
|
|
1334
1342
|
console.log(v), d.value = b, p.value = "编辑";
|
|
1335
1343
|
}
|
|
1336
|
-
return
|
|
1344
|
+
return o({
|
|
1337
1345
|
setData: c
|
|
1338
1346
|
}), (v, b) => (g(), k(e(me), {
|
|
1339
1347
|
visible: e(d),
|
|
@@ -1343,7 +1351,7 @@ const ct = /* @__PURE__ */ I({
|
|
|
1343
1351
|
"mask-closable": !1,
|
|
1344
1352
|
footer: !1,
|
|
1345
1353
|
width: "700px",
|
|
1346
|
-
onCancel:
|
|
1354
|
+
onCancel: r
|
|
1347
1355
|
}, {
|
|
1348
1356
|
title: s(() => [...b[2] || (b[2] = [w(" 系统设置 ", -1)])]),
|
|
1349
1357
|
default: s(() => [z("div", _t, [z("div", wt, [i(De, {
|
|
@@ -1351,7 +1359,7 @@ const ct = /* @__PURE__ */ I({
|
|
|
1351
1359
|
"onUpdate:selectedKeys": b[0] || (b[0] = (U) => l.value = U),
|
|
1352
1360
|
menus: y.value,
|
|
1353
1361
|
onChange: f
|
|
1354
|
-
}, null, 8, ["selected-keys", "menus"])]), z("div",
|
|
1362
|
+
}, null, 8, ["selected-keys", "menus"])]), z("div", bt, [l.value[0] === "PersonalInformation" ? (g(), k(Ze, {
|
|
1355
1363
|
key: 0,
|
|
1356
1364
|
size: t.value
|
|
1357
1365
|
}, null, 8, ["size"])) : S("", !0), l.value[0] === "EmailBinding" ? (g(), k(mt, {
|
|
@@ -1371,17 +1379,25 @@ const ct = /* @__PURE__ */ I({
|
|
|
1371
1379
|
_: 1
|
|
1372
1380
|
}, 8, ["visible"]));
|
|
1373
1381
|
}
|
|
1374
|
-
}), Vi = /* @__PURE__ */ $(
|
|
1375
|
-
function zt() {
|
|
1376
|
-
|
|
1377
|
-
|
|
1382
|
+
}), Vi = /* @__PURE__ */ $(kt, [["__scopeId", "data-v-9f056370"]]);
|
|
1383
|
+
function zt(u) {
|
|
1384
|
+
const o = N.appId;
|
|
1385
|
+
if (!o) {
|
|
1386
|
+
console.error("GitHub OAuth 失败: appId 未配置");
|
|
1387
|
+
return;
|
|
1388
|
+
}
|
|
1389
|
+
pe({
|
|
1390
|
+
appId: o,
|
|
1391
|
+
referrerId: u
|
|
1392
|
+
}).then(({
|
|
1393
|
+
data: a
|
|
1378
1394
|
}) => {
|
|
1379
1395
|
const {
|
|
1380
|
-
redirectUri:
|
|
1381
|
-
} =
|
|
1382
|
-
|
|
1383
|
-
}).catch((
|
|
1384
|
-
console.error("GitHub OAuth 授权失败:",
|
|
1396
|
+
redirectUri: n
|
|
1397
|
+
} = a;
|
|
1398
|
+
n ? window.location.href = n : console.error("GitHub OAuth 重定向URL为空");
|
|
1399
|
+
}).catch((a) => {
|
|
1400
|
+
console.error("GitHub OAuth 授权失败:", a);
|
|
1385
1401
|
});
|
|
1386
1402
|
}
|
|
1387
1403
|
function St() {
|
|
@@ -1414,19 +1430,19 @@ const te = /* @__PURE__ */ I({
|
|
|
1414
1430
|
}
|
|
1415
1431
|
},
|
|
1416
1432
|
emits: [],
|
|
1417
|
-
setup(
|
|
1418
|
-
emit:
|
|
1433
|
+
setup(u, {
|
|
1434
|
+
emit: o
|
|
1419
1435
|
}) {
|
|
1420
|
-
const
|
|
1421
|
-
return (n,
|
|
1436
|
+
const a = u;
|
|
1437
|
+
return (n, r) => (g(), k(e(V), {
|
|
1422
1438
|
class: "OAuthItem",
|
|
1423
1439
|
type: "primary",
|
|
1424
|
-
size:
|
|
1440
|
+
size: a.size
|
|
1425
1441
|
}, {
|
|
1426
|
-
icon: s(() => [i(e(
|
|
1427
|
-
icon:
|
|
1442
|
+
icon: s(() => [i(e(He), {
|
|
1443
|
+
icon: a.icon
|
|
1428
1444
|
}, null, 8, ["icon"])]),
|
|
1429
|
-
default: s(() => [z("span", null, R(
|
|
1445
|
+
default: s(() => [z("span", null, R(a.label), 1)]),
|
|
1430
1446
|
_: 1
|
|
1431
1447
|
}, 8, ["size"]));
|
|
1432
1448
|
}
|
|
@@ -1446,37 +1462,37 @@ const te = /* @__PURE__ */ I({
|
|
|
1446
1462
|
default: () => ""
|
|
1447
1463
|
}
|
|
1448
1464
|
},
|
|
1449
|
-
setup(
|
|
1465
|
+
setup(u) {
|
|
1450
1466
|
const {
|
|
1451
|
-
appsData:
|
|
1452
|
-
} = le(),
|
|
1467
|
+
appsData: o
|
|
1468
|
+
} = le(), a = u, {
|
|
1453
1469
|
githubAuth: n,
|
|
1454
|
-
googleAuth:
|
|
1470
|
+
googleAuth: r,
|
|
1455
1471
|
microsoftAuth: m
|
|
1456
|
-
} = It(), t =
|
|
1472
|
+
} = It(), t = G(() => !(!o.value.oauth.google.enabled && !o.value.oauth.microsoft.enabled && !o.value.oauth.github.enabled && !o.value.oauth.wechat.enabled));
|
|
1457
1473
|
return (l, y) => (g(), P("div", Vt, [t.value ? (g(), k(e(Pe), {
|
|
1458
1474
|
key: 0,
|
|
1459
1475
|
orientation: "center"
|
|
1460
1476
|
}, {
|
|
1461
1477
|
default: s(() => [...y[0] || (y[0] = [w("OAuth登陆", -1)])]),
|
|
1462
1478
|
_: 1
|
|
1463
|
-
})) : S("", !0), z("div", Pt, [e(
|
|
1479
|
+
})) : S("", !0), z("div", Pt, [e(o).oauth.github.enabled ? (g(), k(te, {
|
|
1464
1480
|
key: 0,
|
|
1465
1481
|
icon: "mdi:github",
|
|
1466
1482
|
label: "Github",
|
|
1467
|
-
size:
|
|
1483
|
+
size: a.size,
|
|
1468
1484
|
onClick: e(n)
|
|
1469
|
-
}, null, 8, ["size", "onClick"])) : S("", !0), e(
|
|
1485
|
+
}, null, 8, ["size", "onClick"])) : S("", !0), e(o).oauth.google.enabled ? (g(), k(te, {
|
|
1470
1486
|
key: 1,
|
|
1471
1487
|
icon: "mdi:google",
|
|
1472
1488
|
label: "Google",
|
|
1473
|
-
size:
|
|
1474
|
-
onClick: e(
|
|
1475
|
-
}, null, 8, ["size", "onClick"])) : S("", !0), e(
|
|
1489
|
+
size: a.size,
|
|
1490
|
+
onClick: e(r)
|
|
1491
|
+
}, null, 8, ["size", "onClick"])) : S("", !0), e(o).oauth.microsoft.enabled ? (g(), k(te, {
|
|
1476
1492
|
key: 2,
|
|
1477
1493
|
icon: "mdi:microsoft",
|
|
1478
1494
|
label: "Microsoft",
|
|
1479
|
-
size:
|
|
1495
|
+
size: a.size,
|
|
1480
1496
|
onClick: e(m)
|
|
1481
1497
|
}, null, 8, ["size", "onClick"])) : S("", !0)])]));
|
|
1482
1498
|
}
|
|
@@ -1500,10 +1516,10 @@ const te = /* @__PURE__ */ I({
|
|
|
1500
1516
|
}
|
|
1501
1517
|
},
|
|
1502
1518
|
emits: ["signIn", "submit"],
|
|
1503
|
-
setup(
|
|
1504
|
-
emit:
|
|
1519
|
+
setup(u, {
|
|
1520
|
+
emit: o
|
|
1505
1521
|
}) {
|
|
1506
|
-
const
|
|
1522
|
+
const a = o, n = u, r = _(), m = _(!1), t = _(), l = _({
|
|
1507
1523
|
email: void 0,
|
|
1508
1524
|
userToken: void 0,
|
|
1509
1525
|
emailVerifyId: void 0,
|
|
@@ -1517,7 +1533,7 @@ const te = /* @__PURE__ */ I({
|
|
|
1517
1533
|
}).then(({
|
|
1518
1534
|
data: d
|
|
1519
1535
|
}) => {
|
|
1520
|
-
m.value = !1, l.value.emailVerifyId = d.emailVerifyId,
|
|
1536
|
+
m.value = !1, l.value.emailVerifyId = d.emailVerifyId, r.value.startCountFn();
|
|
1521
1537
|
}).catch(() => {
|
|
1522
1538
|
m.value = !1;
|
|
1523
1539
|
}));
|
|
@@ -1525,10 +1541,10 @@ const te = /* @__PURE__ */ I({
|
|
|
1525
1541
|
}
|
|
1526
1542
|
async function f() {
|
|
1527
1543
|
t.value.validate().then((p) => {
|
|
1528
|
-
p ||
|
|
1544
|
+
p || a("submit", l.value);
|
|
1529
1545
|
});
|
|
1530
1546
|
}
|
|
1531
|
-
return (p, d) => (g(), P("div", $t, [i(e(
|
|
1547
|
+
return (p, d) => (g(), P("div", $t, [i(e(H), {
|
|
1532
1548
|
ref_key: "formRef",
|
|
1533
1549
|
ref: t,
|
|
1534
1550
|
model: l.value,
|
|
@@ -1568,7 +1584,7 @@ const te = /* @__PURE__ */ I({
|
|
|
1568
1584
|
placeholder: "请输入验证码"
|
|
1569
1585
|
}, null, 8, ["modelValue"]), i(se, {
|
|
1570
1586
|
ref_key: "SendVerifyCodeRef",
|
|
1571
|
-
ref:
|
|
1587
|
+
ref: r,
|
|
1572
1588
|
size: n.size,
|
|
1573
1589
|
loading: m.value,
|
|
1574
1590
|
style: {
|
|
@@ -1639,14 +1655,14 @@ const te = /* @__PURE__ */ I({
|
|
|
1639
1655
|
}, Bt = /* @__PURE__ */ I({
|
|
1640
1656
|
__name: "AuthkitSwitchSignIn",
|
|
1641
1657
|
emits: ["switchSignIn"],
|
|
1642
|
-
setup(
|
|
1643
|
-
emit:
|
|
1658
|
+
setup(u, {
|
|
1659
|
+
emit: o
|
|
1644
1660
|
}) {
|
|
1645
|
-
const
|
|
1661
|
+
const a = o;
|
|
1646
1662
|
function n() {
|
|
1647
|
-
|
|
1663
|
+
a("switchSignIn");
|
|
1648
1664
|
}
|
|
1649
|
-
return (
|
|
1665
|
+
return (r, m) => (g(), P("div", Lt, [z("span", null, [m[1] || (m[1] = z("span", null, "已经有账号?", -1)), i(e(M), {
|
|
1650
1666
|
style: {
|
|
1651
1667
|
padding: "0px"
|
|
1652
1668
|
},
|
|
@@ -1656,9 +1672,9 @@ const te = /* @__PURE__ */ I({
|
|
|
1656
1672
|
_: 1
|
|
1657
1673
|
})])]));
|
|
1658
1674
|
}
|
|
1659
|
-
}), ve = /* @__PURE__ */ $(Bt, [["__scopeId", "data-v-fc1d3903"]]),
|
|
1675
|
+
}), ve = /* @__PURE__ */ $(Bt, [["__scopeId", "data-v-fc1d3903"]]), Ot = {
|
|
1660
1676
|
class: "ResetPassword"
|
|
1661
|
-
},
|
|
1677
|
+
}, Et = /* @__PURE__ */ I({
|
|
1662
1678
|
__name: "AuthkitResetPassword",
|
|
1663
1679
|
props: {
|
|
1664
1680
|
size: {
|
|
@@ -1673,52 +1689,52 @@ const te = /* @__PURE__ */ I({
|
|
|
1673
1689
|
}
|
|
1674
1690
|
},
|
|
1675
1691
|
emits: ["switchSignIn", "submit"],
|
|
1676
|
-
setup(
|
|
1677
|
-
emit:
|
|
1692
|
+
setup(u, {
|
|
1693
|
+
emit: o
|
|
1678
1694
|
}) {
|
|
1679
|
-
const
|
|
1680
|
-
function
|
|
1681
|
-
|
|
1695
|
+
const a = o, n = u;
|
|
1696
|
+
function r() {
|
|
1697
|
+
a("switchSignIn");
|
|
1682
1698
|
}
|
|
1683
1699
|
async function m(t) {
|
|
1684
|
-
|
|
1700
|
+
a("submit", t);
|
|
1685
1701
|
}
|
|
1686
|
-
return (t, l) => (g(), P("div",
|
|
1687
|
-
loading:
|
|
1702
|
+
return (t, l) => (g(), P("div", Ot, [i(Rt, {
|
|
1703
|
+
loading: u.loading,
|
|
1688
1704
|
size: n.size,
|
|
1689
1705
|
onSubmit: m
|
|
1690
1706
|
}, null, 8, ["loading", "size"]), i(ve, {
|
|
1691
|
-
onSwitchSignIn:
|
|
1707
|
+
onSwitchSignIn: r
|
|
1692
1708
|
})]));
|
|
1693
1709
|
}
|
|
1694
|
-
}), Dt = /* @__PURE__ */ $(
|
|
1710
|
+
}), Dt = /* @__PURE__ */ $(Et, [["__scopeId", "data-v-0622cbe3"]]), Gt = {
|
|
1695
1711
|
class: "ServiceAgreementAndPrivacyProtection"
|
|
1696
|
-
},
|
|
1712
|
+
}, Ht = /* @__PURE__ */ I({
|
|
1697
1713
|
__name: "AuthkitServiceAgreementAndPrivacyProtection",
|
|
1698
1714
|
emits: ["toUserServiceAgreement", "toPrivacyPolicy"],
|
|
1699
|
-
setup(
|
|
1700
|
-
emit:
|
|
1715
|
+
setup(u, {
|
|
1716
|
+
emit: o
|
|
1701
1717
|
}) {
|
|
1702
|
-
const
|
|
1718
|
+
const a = o;
|
|
1703
1719
|
function n() {
|
|
1704
|
-
|
|
1720
|
+
a("toUserServiceAgreement");
|
|
1705
1721
|
}
|
|
1706
|
-
function
|
|
1707
|
-
|
|
1722
|
+
function r() {
|
|
1723
|
+
a("toPrivacyPolicy");
|
|
1708
1724
|
}
|
|
1709
|
-
return (m, t) => (g(), P("div",
|
|
1725
|
+
return (m, t) => (g(), P("div", Gt, [t[2] || (t[2] = z("span", null, " 注册登陆即表示同意", -1)), i(e(M), {
|
|
1710
1726
|
onClick: n
|
|
1711
1727
|
}, {
|
|
1712
1728
|
default: s(() => [...t[0] || (t[0] = [w("用户服务协议", -1)])]),
|
|
1713
1729
|
_: 1
|
|
1714
|
-
}), t[3] || (t[3] = z("span", null, " 和 ", -1)), i(e(
|
|
1715
|
-
onClick:
|
|
1730
|
+
}), t[3] || (t[3] = z("span", null, " 和 ", -1)), i(e(M), {
|
|
1731
|
+
onClick: r
|
|
1716
1732
|
}, {
|
|
1717
1733
|
default: s(() => [...t[1] || (t[1] = [w("隐私协议", -1)])]),
|
|
1718
1734
|
_: 1
|
|
1719
1735
|
})]));
|
|
1720
1736
|
}
|
|
1721
|
-
}),
|
|
1737
|
+
}), Nt = /* @__PURE__ */ $(Ht, [["__scopeId", "data-v-18e831ec"]]), Ft = {
|
|
1722
1738
|
class: "content"
|
|
1723
1739
|
}, Mt = {
|
|
1724
1740
|
class: "handle"
|
|
@@ -1736,11 +1752,11 @@ const te = /* @__PURE__ */ I({
|
|
|
1736
1752
|
}
|
|
1737
1753
|
},
|
|
1738
1754
|
emits: ["submit"],
|
|
1739
|
-
setup(
|
|
1740
|
-
emit:
|
|
1755
|
+
setup(u, {
|
|
1756
|
+
emit: o
|
|
1741
1757
|
}) {
|
|
1742
|
-
const
|
|
1743
|
-
async function
|
|
1758
|
+
const a = o, n = u;
|
|
1759
|
+
async function r(y, f) {
|
|
1744
1760
|
const p = await Qe({
|
|
1745
1761
|
password: y
|
|
1746
1762
|
});
|
|
@@ -1757,10 +1773,10 @@ const te = /* @__PURE__ */ I({
|
|
|
1757
1773
|
});
|
|
1758
1774
|
async function l() {
|
|
1759
1775
|
m.value.validate().then((y) => {
|
|
1760
|
-
y ||
|
|
1776
|
+
y || a("submit", t.value);
|
|
1761
1777
|
});
|
|
1762
1778
|
}
|
|
1763
|
-
return (y, f) => (g(), P("div",
|
|
1779
|
+
return (y, f) => (g(), P("div", Ft, [i(e(H), {
|
|
1764
1780
|
ref_key: "formRef",
|
|
1765
1781
|
ref: m,
|
|
1766
1782
|
model: t.value,
|
|
@@ -1795,7 +1811,7 @@ const te = /* @__PURE__ */ I({
|
|
|
1795
1811
|
required: !0,
|
|
1796
1812
|
message: "请输入密码"
|
|
1797
1813
|
}, {
|
|
1798
|
-
validator:
|
|
1814
|
+
validator: r
|
|
1799
1815
|
}]
|
|
1800
1816
|
}, {
|
|
1801
1817
|
default: s(() => [i(e(q), {
|
|
@@ -1824,17 +1840,17 @@ const te = /* @__PURE__ */ I({
|
|
|
1824
1840
|
}, Zt = /* @__PURE__ */ I({
|
|
1825
1841
|
__name: "AuthkitSwitchSignUpOrResetPassword",
|
|
1826
1842
|
emits: ["switchSignUp", "switchResetPassword"],
|
|
1827
|
-
setup(
|
|
1828
|
-
emit:
|
|
1843
|
+
setup(u, {
|
|
1844
|
+
emit: o
|
|
1829
1845
|
}) {
|
|
1830
|
-
const
|
|
1846
|
+
const a = o;
|
|
1831
1847
|
function n() {
|
|
1832
|
-
|
|
1848
|
+
a("switchSignUp");
|
|
1833
1849
|
}
|
|
1834
|
-
function
|
|
1835
|
-
|
|
1850
|
+
function r() {
|
|
1851
|
+
a("switchResetPassword");
|
|
1836
1852
|
}
|
|
1837
|
-
return (m, t) => (g(), P("div", Kt, [z("span", null, [t[1] || (t[1] = z("span", null, " 还没有账户?", -1)), i(e(
|
|
1853
|
+
return (m, t) => (g(), P("div", Kt, [z("span", null, [t[1] || (t[1] = z("span", null, " 还没有账户?", -1)), i(e(M), {
|
|
1838
1854
|
style: {
|
|
1839
1855
|
padding: "0px"
|
|
1840
1856
|
},
|
|
@@ -1842,11 +1858,11 @@ const te = /* @__PURE__ */ I({
|
|
|
1842
1858
|
}, {
|
|
1843
1859
|
default: s(() => [...t[0] || (t[0] = [w("去注册?", -1)])]),
|
|
1844
1860
|
_: 1
|
|
1845
|
-
})]), i(e(
|
|
1861
|
+
})]), i(e(M), {
|
|
1846
1862
|
style: {
|
|
1847
1863
|
padding: "0px"
|
|
1848
1864
|
},
|
|
1849
|
-
onClick:
|
|
1865
|
+
onClick: r
|
|
1850
1866
|
}, {
|
|
1851
1867
|
default: s(() => [...t[2] || (t[2] = [w(" 忘记密码?", -1)])]),
|
|
1852
1868
|
_: 1
|
|
@@ -1868,18 +1884,18 @@ const te = /* @__PURE__ */ I({
|
|
|
1868
1884
|
}
|
|
1869
1885
|
},
|
|
1870
1886
|
emits: ["submit", "switchSignUp", "switchResetPassword"],
|
|
1871
|
-
setup(
|
|
1872
|
-
emit:
|
|
1887
|
+
setup(u, {
|
|
1888
|
+
emit: o
|
|
1873
1889
|
}) {
|
|
1874
|
-
const
|
|
1890
|
+
const a = o, n = u, r = Se(), m = G(() => !!r.OAuth);
|
|
1875
1891
|
function t() {
|
|
1876
|
-
|
|
1892
|
+
a("switchSignUp");
|
|
1877
1893
|
}
|
|
1878
1894
|
function l() {
|
|
1879
|
-
|
|
1895
|
+
a("switchResetPassword");
|
|
1880
1896
|
}
|
|
1881
1897
|
async function y(f) {
|
|
1882
|
-
|
|
1898
|
+
a("submit", f);
|
|
1883
1899
|
}
|
|
1884
1900
|
return (f, p) => (g(), P("div", Qt, [S("", !0), i(Wt, {
|
|
1885
1901
|
loading: n.loading,
|
|
@@ -1908,22 +1924,22 @@ const te = /* @__PURE__ */ I({
|
|
|
1908
1924
|
}
|
|
1909
1925
|
},
|
|
1910
1926
|
emits: ["switchSignIn", "submit"],
|
|
1911
|
-
setup(
|
|
1912
|
-
emit:
|
|
1927
|
+
setup(u, {
|
|
1928
|
+
emit: o
|
|
1913
1929
|
}) {
|
|
1914
|
-
const
|
|
1915
|
-
function
|
|
1916
|
-
|
|
1930
|
+
const a = o, n = u;
|
|
1931
|
+
function r() {
|
|
1932
|
+
a("switchSignIn");
|
|
1917
1933
|
}
|
|
1918
1934
|
async function m(t) {
|
|
1919
|
-
|
|
1935
|
+
a("submit", t);
|
|
1920
1936
|
}
|
|
1921
1937
|
return (t, l) => (g(), P("div", ei, [i(fe, {
|
|
1922
1938
|
size: n.size,
|
|
1923
|
-
loading:
|
|
1939
|
+
loading: u.loading,
|
|
1924
1940
|
onSubmit: m
|
|
1925
1941
|
}, null, 8, ["size", "loading"]), i(ve, {
|
|
1926
|
-
onSwitchSignIn:
|
|
1942
|
+
onSwitchSignIn: r
|
|
1927
1943
|
})]));
|
|
1928
1944
|
}
|
|
1929
1945
|
}), ii = /* @__PURE__ */ $(ti, [["__scopeId", "data-v-058bbbef"]]), li = ["src"], si = /* @__PURE__ */ I({
|
|
@@ -1945,24 +1961,24 @@ const te = /* @__PURE__ */ I({
|
|
|
1945
1961
|
default: 60
|
|
1946
1962
|
}
|
|
1947
1963
|
},
|
|
1948
|
-
setup(
|
|
1949
|
-
const
|
|
1964
|
+
setup(u) {
|
|
1965
|
+
const o = u, a = `${o.size}px`, n = `${o.fontSize}px`, r = `${o.lineHeight}px`, {
|
|
1950
1966
|
currentView: m
|
|
1951
1967
|
} = Q(), {
|
|
1952
1968
|
appsData: t
|
|
1953
|
-
} = le(), l =
|
|
1969
|
+
} = le(), l = G(() => m.value === "signIn" ? `${t.value.name}登录` : m.value === "signUp" ? `${t.value.name}账号注册` : m.value === "resetPassword" ? `${t.value.name}密码重置` : "");
|
|
1954
1970
|
return (y, f) => (g(), P("div", {
|
|
1955
1971
|
class: "Title",
|
|
1956
1972
|
style: ie({
|
|
1957
1973
|
fontSize: n,
|
|
1958
|
-
lineHeight:
|
|
1974
|
+
lineHeight: r
|
|
1959
1975
|
})
|
|
1960
1976
|
}, [e(t).applicationLogoUrl ? (g(), P("img", {
|
|
1961
1977
|
key: 0,
|
|
1962
1978
|
src: e(t).applicationLogoUrl,
|
|
1963
1979
|
srcset: "",
|
|
1964
1980
|
style: ie({
|
|
1965
|
-
width:
|
|
1981
|
+
width: a
|
|
1966
1982
|
})
|
|
1967
1983
|
}, null, 12, li)) : S("", !0), z("span", null, R(l.value), 1), ue(y.$slots, "default", {}, void 0, !0)], 4));
|
|
1968
1984
|
}
|
|
@@ -1983,11 +1999,11 @@ const te = /* @__PURE__ */ I({
|
|
|
1983
1999
|
}
|
|
1984
2000
|
},
|
|
1985
2001
|
emits: ["toPrivacyPolicy", "toUserServiceAgreement"],
|
|
1986
|
-
setup(
|
|
1987
|
-
emit:
|
|
2002
|
+
setup(u, {
|
|
2003
|
+
emit: o
|
|
1988
2004
|
}) {
|
|
1989
|
-
const
|
|
1990
|
-
signInSubmit:
|
|
2005
|
+
const a = u, n = o, {
|
|
2006
|
+
signInSubmit: r,
|
|
1991
2007
|
signUpSubmit: m,
|
|
1992
2008
|
resetPasswordSubmit: t,
|
|
1993
2009
|
currentView: l,
|
|
@@ -2006,35 +2022,35 @@ const te = /* @__PURE__ */ I({
|
|
|
2006
2022
|
function C() {
|
|
2007
2023
|
n("toUserServiceAgreement");
|
|
2008
2024
|
}
|
|
2009
|
-
return b(), (T, B) => (g(), P("div", ni, [
|
|
2025
|
+
return b(), (T, B) => (g(), P("div", ni, [u.showTitle ? (g(), k(ge, {
|
|
2010
2026
|
key: 0,
|
|
2011
2027
|
size: 32,
|
|
2012
2028
|
"font-size": 20
|
|
2013
2029
|
})) : S("", !0), z("div", ai, [e(l) === "signIn" ? (g(), k(Yt, {
|
|
2014
2030
|
key: 0,
|
|
2015
|
-
size:
|
|
2031
|
+
size: a.size,
|
|
2016
2032
|
loading: e(y),
|
|
2017
2033
|
onSwitchSignUp: e(d),
|
|
2018
2034
|
onSwitchResetPassword: e(c),
|
|
2019
|
-
onSubmit: B[0] || (B[0] = (
|
|
2035
|
+
onSubmit: B[0] || (B[0] = (O) => e(r)(O))
|
|
2020
2036
|
}, {
|
|
2021
2037
|
OAuth: s(() => [i(Ct, {
|
|
2022
|
-
size:
|
|
2038
|
+
size: a.size
|
|
2023
2039
|
}, null, 8, ["size"])]),
|
|
2024
2040
|
_: 1
|
|
2025
2041
|
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(l) === "signUp" ? (g(), k(ii, {
|
|
2026
2042
|
key: 1,
|
|
2027
|
-
size:
|
|
2043
|
+
size: a.size,
|
|
2028
2044
|
loading: e(f),
|
|
2029
2045
|
onSwitchSignIn: e(v),
|
|
2030
|
-
onSubmit: B[1] || (B[1] = (
|
|
2046
|
+
onSubmit: B[1] || (B[1] = (O) => e(m)(O))
|
|
2031
2047
|
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(l) === "resetPassword" ? (g(), k(Dt, {
|
|
2032
2048
|
key: 2,
|
|
2033
|
-
size:
|
|
2049
|
+
size: a.size,
|
|
2034
2050
|
loading: e(p),
|
|
2035
2051
|
onSwitchSignIn: e(v),
|
|
2036
|
-
onSubmit: B[2] || (B[2] = (
|
|
2037
|
-
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : S("", !0), i(
|
|
2052
|
+
onSubmit: B[2] || (B[2] = (O) => e(t)(O))
|
|
2053
|
+
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : S("", !0), i(Nt, {
|
|
2038
2054
|
onToPrivacyPolicy: U,
|
|
2039
2055
|
onToUserServiceAgreement: C
|
|
2040
2056
|
})])]));
|
|
@@ -2052,21 +2068,21 @@ const te = /* @__PURE__ */ I({
|
|
|
2052
2068
|
}
|
|
2053
2069
|
},
|
|
2054
2070
|
emits: ["confirm", "close", "toPrivacyPolicy", "toUserServiceAgreement"],
|
|
2055
|
-
setup(
|
|
2056
|
-
emit:
|
|
2071
|
+
setup(u, {
|
|
2072
|
+
emit: o
|
|
2057
2073
|
}) {
|
|
2058
2074
|
const {
|
|
2059
|
-
addSignInCallback:
|
|
2075
|
+
addSignInCallback: a
|
|
2060
2076
|
} = Q(), {
|
|
2061
2077
|
show: n
|
|
2062
|
-
} = Ue(),
|
|
2078
|
+
} = Ue(), r = u, m = o;
|
|
2063
2079
|
function t(y) {
|
|
2064
2080
|
y(!0);
|
|
2065
2081
|
}
|
|
2066
2082
|
function l() {
|
|
2067
2083
|
n.value = !1, m("close");
|
|
2068
2084
|
}
|
|
2069
|
-
return
|
|
2085
|
+
return a(() => {
|
|
2070
2086
|
n.value = !1;
|
|
2071
2087
|
}), (y, f) => (g(), k(e(me), {
|
|
2072
2088
|
visible: e(n),
|
|
@@ -2083,7 +2099,7 @@ const te = /* @__PURE__ */ I({
|
|
|
2083
2099
|
title: s(() => [i(ge)]),
|
|
2084
2100
|
default: s(() => [i(ri, {
|
|
2085
2101
|
"show-title": !1,
|
|
2086
|
-
size:
|
|
2102
|
+
size: r.size,
|
|
2087
2103
|
onToPrivacyPolicy: f[0] || (f[0] = (p) => m("toPrivacyPolicy")),
|
|
2088
2104
|
onToUserServiceAgreement: f[1] || (f[1] = (p) => m("toUserServiceAgreement"))
|
|
2089
2105
|
}, null, 8, ["size"])]),
|
|
@@ -2107,7 +2123,7 @@ export {
|
|
|
2107
2123
|
Wt as f,
|
|
2108
2124
|
ve as g,
|
|
2109
2125
|
Jt as h,
|
|
2110
|
-
|
|
2126
|
+
Nt as i,
|
|
2111
2127
|
Ze as j,
|
|
2112
2128
|
ne as k,
|
|
2113
2129
|
ct as l,
|