@huyooo/ui 0.4.78 → 0.4.80
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-A8HqP1Bw.js → AuthkitAuthModal-DCx9UFiy.js} +369 -367
- package/dist/{UserAccountMenu-C7LQIjwT.js → UserAccountMenu-Bx18RJcq.js} +215 -210
- package/dist/authkit.js +1 -1
- package/dist/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/user.js +1 -1
- package/package.json +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { Form as O, FormItem as A, Avatar as ne, Input as
|
|
4
|
+
import { defineComponent as k, computed as T, createElementBlock as I, openBlock as g, normalizeStyle as j, normalizeClass as ce, createElementVNode as b, ref as y, createBlock as h, unref as e, withCtx as m, createVNode as a, createTextVNode as z, onMounted as G, onUnmounted as te, withDirectives as fe, toDisplayString as B, vShow as pe, Fragment as W, createCommentVNode as S, isRef as ie, useSlots as ve, renderSlot as se } from "vue";
|
|
5
|
+
import { Form as O, FormItem as A, Avatar as ne, Input as U, Textarea as ge, Button as V, Message as E, Alert as L, Modal as le, Divider as _e, Link as N } from "@arco-design/web-vue";
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { u as
|
|
10
|
-
import { b as
|
|
9
|
+
import { u as ye } from "./useUploadCos-B5P_PDcy.js";
|
|
10
|
+
import { b as he, c as ee, d as be, a as K, e as we, f as ze, u as Z } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
|
|
11
11
|
import { g as F } from "./globalConfig-DZIhLe1R.js";
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { M as
|
|
15
|
-
import { u as
|
|
16
|
-
import { U as J, u as
|
|
12
|
+
import { _ as Se, g as ke, i as Ae } from "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
13
|
+
import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
import { M as Pe } from "./Menu-Cxo8Rpu3.js";
|
|
15
|
+
import { u as Ie } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
|
|
16
|
+
import { U as J, u as Ue } from "./useAuthkitAppsAuthPageInfo-COeq29Tn.js";
|
|
17
17
|
/* empty css */
|
|
18
18
|
import { api as H } from "@huyooo/api";
|
|
19
|
-
import { Icon as
|
|
20
|
-
const $e =
|
|
19
|
+
import { Icon as Ve } from "@iconify/vue";
|
|
20
|
+
const $e = k({
|
|
21
21
|
name: "IconCamera",
|
|
22
22
|
props: {
|
|
23
23
|
size: {
|
|
@@ -46,23 +46,23 @@ const $e = S({
|
|
|
46
46
|
setup(i, {
|
|
47
47
|
emit: n
|
|
48
48
|
}) {
|
|
49
|
-
const u =
|
|
49
|
+
const u = ke("icon"), s = T(() => [u, `${u}-camera`, {
|
|
50
50
|
[`${u}-spin`]: i.spin
|
|
51
|
-
}]),
|
|
51
|
+
}]), o = T(() => {
|
|
52
52
|
const t = {};
|
|
53
53
|
return i.size && (t.fontSize = Ae(i.size) ? `${i.size}px` : i.size), i.rotate && (t.transform = `rotate(${i.rotate}deg)`), t;
|
|
54
54
|
});
|
|
55
55
|
return {
|
|
56
56
|
cls: s,
|
|
57
|
-
innerStyle:
|
|
57
|
+
innerStyle: o,
|
|
58
58
|
onClick: (t) => {
|
|
59
59
|
n("click", t);
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
}), Ce = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
64
|
-
function xe(i, n, u, s,
|
|
65
|
-
return g(),
|
|
64
|
+
function xe(i, n, u, s, o, l) {
|
|
65
|
+
return g(), I("svg", {
|
|
66
66
|
viewBox: "0 0 48 48",
|
|
67
67
|
fill: "none",
|
|
68
68
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -77,7 +77,7 @@ function xe(i, n, u, s, a, o) {
|
|
|
77
77
|
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"
|
|
78
78
|
}, null, -1)]), 14, Ce);
|
|
79
79
|
}
|
|
80
|
-
var M = /* @__PURE__ */
|
|
80
|
+
var M = /* @__PURE__ */ Se($e, [["render", xe]]);
|
|
81
81
|
const qe = Object.assign(M, {
|
|
82
82
|
install: (i, n) => {
|
|
83
83
|
var u;
|
|
@@ -86,7 +86,7 @@ const qe = Object.assign(M, {
|
|
|
86
86
|
}
|
|
87
87
|
}), Re = {
|
|
88
88
|
class: "handle"
|
|
89
|
-
}, Te = /* @__PURE__ */
|
|
89
|
+
}, Te = /* @__PURE__ */ k({
|
|
90
90
|
__name: "AuthkitPersonalInformation",
|
|
91
91
|
props: {
|
|
92
92
|
size: {
|
|
@@ -98,36 +98,36 @@ const qe = Object.assign(M, {
|
|
|
98
98
|
setup(i, {
|
|
99
99
|
emit: n
|
|
100
100
|
}) {
|
|
101
|
-
const u = n, s = i,
|
|
101
|
+
const u = n, s = i, o = y({
|
|
102
102
|
id: void 0,
|
|
103
103
|
nickname: "",
|
|
104
104
|
description: "",
|
|
105
105
|
avatar: "",
|
|
106
106
|
avatarUrl: ""
|
|
107
|
-
}),
|
|
107
|
+
}), l = y(!1), t = y(), r = y(!1);
|
|
108
108
|
function _() {
|
|
109
|
-
r.value = !0,
|
|
109
|
+
r.value = !0, he().then(({
|
|
110
110
|
data: d
|
|
111
111
|
}) => {
|
|
112
|
-
r.value = !1,
|
|
112
|
+
r.value = !1, o.value.id = d.id, o.value.nickname = d.nickname, o.value.description = d.description, o.value.avatar = d.avatar, o.value.avatarUrl = d.avatarUrl;
|
|
113
113
|
}).catch(() => {
|
|
114
114
|
r.value = !1;
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function c() {
|
|
118
118
|
t.value.validate().then((d) => {
|
|
119
119
|
if (!d) {
|
|
120
120
|
r.value = !0;
|
|
121
|
-
const
|
|
122
|
-
id:
|
|
123
|
-
nickname:
|
|
124
|
-
description:
|
|
125
|
-
avatar:
|
|
121
|
+
const f = {
|
|
122
|
+
id: o.value.id,
|
|
123
|
+
nickname: o.value.nickname,
|
|
124
|
+
description: o.value.description,
|
|
125
|
+
avatar: o.value.avatar
|
|
126
126
|
};
|
|
127
|
-
ee(
|
|
127
|
+
ee(f).then(({
|
|
128
128
|
data: v
|
|
129
129
|
}) => {
|
|
130
|
-
r.value = !1, E.success("更新成功"),
|
|
130
|
+
r.value = !1, E.success("更新成功"), o.value.avatarUrl = v.avatarUrl, u("submit");
|
|
131
131
|
}).catch(() => {
|
|
132
132
|
r.value = !1;
|
|
133
133
|
});
|
|
@@ -138,49 +138,49 @@ const qe = Object.assign(M, {
|
|
|
138
138
|
const p = () => {
|
|
139
139
|
const {
|
|
140
140
|
uploadFile: d
|
|
141
|
-
} =
|
|
142
|
-
|
|
141
|
+
} = ye(), f = document.createElement("input");
|
|
142
|
+
f.type = "file", f.accept = "image/*", f.style.display = "none", document.body.append(f), f.addEventListener("change", async (v) => {
|
|
143
143
|
var q;
|
|
144
144
|
const $ = (q = v.target.files) == null ? void 0 : q[0];
|
|
145
145
|
if ($) {
|
|
146
|
-
|
|
146
|
+
l.value = !0;
|
|
147
147
|
try {
|
|
148
148
|
d({
|
|
149
149
|
bucketId: F.avatarBucketId,
|
|
150
150
|
file: $,
|
|
151
151
|
onFileFinish(R, C, x) {
|
|
152
|
-
|
|
152
|
+
l.value = !0;
|
|
153
153
|
const me = {
|
|
154
|
-
id:
|
|
155
|
-
nickname:
|
|
156
|
-
description:
|
|
154
|
+
id: o.value.id,
|
|
155
|
+
nickname: o.value.nickname,
|
|
156
|
+
description: o.value.description,
|
|
157
157
|
avatar: x.Key
|
|
158
158
|
};
|
|
159
159
|
ee(me).then(() => {
|
|
160
|
-
|
|
160
|
+
l.value = !1, E.success("更新成功"), _(), u("submit");
|
|
161
161
|
}).catch(() => {
|
|
162
|
-
|
|
162
|
+
l.value = !1;
|
|
163
163
|
});
|
|
164
164
|
},
|
|
165
165
|
onError(R) {
|
|
166
|
-
console.error("上传图片失败"),
|
|
166
|
+
console.error("上传图片失败"), l.value = !1;
|
|
167
167
|
}
|
|
168
168
|
});
|
|
169
169
|
} catch (R) {
|
|
170
|
-
console.error("上传图片失败", R),
|
|
170
|
+
console.error("上传图片失败", R), l.value = !1;
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
|
|
174
|
-
}),
|
|
173
|
+
f.remove();
|
|
174
|
+
}), f.click();
|
|
175
175
|
};
|
|
176
|
-
return (d,
|
|
176
|
+
return (d, f) => (g(), h(e(O), {
|
|
177
177
|
ref_key: "formRef",
|
|
178
178
|
ref: t,
|
|
179
|
-
model:
|
|
179
|
+
model: o.value,
|
|
180
180
|
"auto-label-width": "",
|
|
181
181
|
size: s.size
|
|
182
182
|
}, {
|
|
183
|
-
default: m(() => [
|
|
183
|
+
default: m(() => [a(e(A), {
|
|
184
184
|
field: "avatar",
|
|
185
185
|
label: "头像",
|
|
186
186
|
rules: [{
|
|
@@ -188,19 +188,19 @@ const qe = Object.assign(M, {
|
|
|
188
188
|
message: "请上传头像"
|
|
189
189
|
}]
|
|
190
190
|
}, {
|
|
191
|
-
default: m(() => [
|
|
192
|
-
"image-url":
|
|
191
|
+
default: m(() => [a(e(ne), {
|
|
192
|
+
"image-url": o.value.avatarUrl,
|
|
193
193
|
size: 42,
|
|
194
194
|
"trigger-icon-style": {
|
|
195
195
|
color: "#3491FA"
|
|
196
196
|
},
|
|
197
197
|
onClick: p
|
|
198
198
|
}, {
|
|
199
|
-
"trigger-icon": m(() => [
|
|
199
|
+
"trigger-icon": m(() => [a(e(qe))]),
|
|
200
200
|
_: 1
|
|
201
201
|
}, 8, ["image-url"])]),
|
|
202
202
|
_: 1
|
|
203
|
-
}),
|
|
203
|
+
}), a(e(A), {
|
|
204
204
|
field: "nickname",
|
|
205
205
|
label: "昵称",
|
|
206
206
|
rules: [{
|
|
@@ -208,13 +208,13 @@ const qe = Object.assign(M, {
|
|
|
208
208
|
message: "请输入昵称"
|
|
209
209
|
}]
|
|
210
210
|
}, {
|
|
211
|
-
default: m(() => [
|
|
212
|
-
modelValue:
|
|
213
|
-
"onUpdate:modelValue":
|
|
211
|
+
default: m(() => [a(e(U), {
|
|
212
|
+
modelValue: o.value.nickname,
|
|
213
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => o.value.nickname = v),
|
|
214
214
|
placeholder: "请输入昵称"
|
|
215
215
|
}, null, 8, ["modelValue"])]),
|
|
216
216
|
_: 1
|
|
217
|
-
}),
|
|
217
|
+
}), a(e(A), {
|
|
218
218
|
field: "description",
|
|
219
219
|
label: "简介",
|
|
220
220
|
rules: [{
|
|
@@ -222,9 +222,9 @@ const qe = Object.assign(M, {
|
|
|
222
222
|
message: "请输入描述"
|
|
223
223
|
}]
|
|
224
224
|
}, {
|
|
225
|
-
default: m(() => [
|
|
226
|
-
modelValue:
|
|
227
|
-
"onUpdate:modelValue":
|
|
225
|
+
default: m(() => [a(e(ge), {
|
|
226
|
+
modelValue: o.value.description,
|
|
227
|
+
"onUpdate:modelValue": f[1] || (f[1] = (v) => o.value.description = v),
|
|
228
228
|
placeholder: "请输入描述",
|
|
229
229
|
"allow-clear": "",
|
|
230
230
|
"auto-size": {
|
|
@@ -232,17 +232,17 @@ const qe = Object.assign(M, {
|
|
|
232
232
|
}
|
|
233
233
|
}, null, 8, ["modelValue"])]),
|
|
234
234
|
_: 1
|
|
235
|
-
}),
|
|
235
|
+
}), a(e(A), {
|
|
236
236
|
field: "",
|
|
237
237
|
label: "",
|
|
238
238
|
rules: []
|
|
239
239
|
}, {
|
|
240
|
-
default: m(() => [b("div", Re, [
|
|
240
|
+
default: m(() => [b("div", Re, [a(e(V), {
|
|
241
241
|
type: "primary",
|
|
242
242
|
loading: r.value,
|
|
243
|
-
onClick:
|
|
243
|
+
onClick: c
|
|
244
244
|
}, {
|
|
245
|
-
default: m(() =>
|
|
245
|
+
default: m(() => f[2] || (f[2] = [z(" 提交 ")])),
|
|
246
246
|
_: 1,
|
|
247
247
|
__: [2]
|
|
248
248
|
}, 8, ["loading"])])]),
|
|
@@ -251,7 +251,7 @@ const qe = Object.assign(M, {
|
|
|
251
251
|
_: 1
|
|
252
252
|
}, 8, ["model", "size"]));
|
|
253
253
|
}
|
|
254
|
-
}), Le = /* @__PURE__ */
|
|
254
|
+
}), Le = /* @__PURE__ */ P(Te, [["__scopeId", "data-v-9f97445b"]]);
|
|
255
255
|
function Be(i) {
|
|
256
256
|
return H({
|
|
257
257
|
url: `${F.authPrefixUrl}/restfulApi/verify/email`,
|
|
@@ -273,7 +273,7 @@ function Oe(i) {
|
|
|
273
273
|
data: i
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
|
-
const Ee = /* @__PURE__ */
|
|
276
|
+
const Ee = /* @__PURE__ */ k({
|
|
277
277
|
__name: "AuthkitSendVerifyCode",
|
|
278
278
|
props: {
|
|
279
279
|
size: {
|
|
@@ -291,43 +291,43 @@ const Ee = /* @__PURE__ */ S({
|
|
|
291
291
|
expose: n,
|
|
292
292
|
emit: u
|
|
293
293
|
}) {
|
|
294
|
-
const s = u,
|
|
294
|
+
const s = u, o = i, l = y(!1);
|
|
295
295
|
let t;
|
|
296
|
-
const r =
|
|
297
|
-
|
|
296
|
+
const r = y(0), _ = T(() => r.value.toString().padStart(2, "0")), c = T(() => r.value > 0), p = () => {
|
|
297
|
+
l.value && (r.value <= 0 ? (clearInterval(t), l.value = !1) : r.value--);
|
|
298
298
|
};
|
|
299
299
|
function d() {
|
|
300
300
|
s("send");
|
|
301
301
|
}
|
|
302
|
-
function
|
|
303
|
-
r.value = 60,
|
|
302
|
+
function f() {
|
|
303
|
+
r.value = 60, l.value = !0, t && clearInterval(t), t = setInterval(p, 1e3);
|
|
304
304
|
}
|
|
305
305
|
return G(() => {
|
|
306
306
|
}), n({
|
|
307
|
-
startCountFn:
|
|
307
|
+
startCountFn: f
|
|
308
308
|
}), te(() => {
|
|
309
309
|
t && clearInterval(t);
|
|
310
|
-
}), (v, w) => (g(),
|
|
310
|
+
}), (v, w) => (g(), h(e(V), {
|
|
311
311
|
class: "OAuthItem",
|
|
312
312
|
type: "primary",
|
|
313
|
-
size:
|
|
314
|
-
disabled:
|
|
315
|
-
loading:
|
|
313
|
+
size: o.size,
|
|
314
|
+
disabled: c.value,
|
|
315
|
+
loading: o.loading,
|
|
316
316
|
onClick: d
|
|
317
317
|
}, {
|
|
318
318
|
default: m(() => [w[0] || (w[0] = b("span", null, " 发送验证码", -1)), fe(b("span", {
|
|
319
319
|
class: "verify-code-timer"
|
|
320
|
-
}, B(`(${_.value})`), 513), [[pe,
|
|
320
|
+
}, B(`(${_.value})`), 513), [[pe, c.value]])]),
|
|
321
321
|
_: 1,
|
|
322
322
|
__: [0]
|
|
323
323
|
}, 8, ["size", "disabled", "loading"]));
|
|
324
324
|
}
|
|
325
|
-
}), X = /* @__PURE__ */
|
|
325
|
+
}), X = /* @__PURE__ */ P(Ee, [["__scopeId", "data-v-2883dc6d"]]);
|
|
326
326
|
function ae(i, n = 3) {
|
|
327
327
|
const u = i.indexOf("@");
|
|
328
328
|
if (u > 1) {
|
|
329
|
-
const s = i.slice(0, n),
|
|
330
|
-
return s + "***" +
|
|
329
|
+
const s = i.slice(0, n), o = i.slice(u);
|
|
330
|
+
return s + "***" + o;
|
|
331
331
|
}
|
|
332
332
|
return i;
|
|
333
333
|
}
|
|
@@ -335,7 +335,7 @@ const Ne = {
|
|
|
335
335
|
class: "sendVerifyCodeItem"
|
|
336
336
|
}, Fe = {
|
|
337
337
|
class: "handle"
|
|
338
|
-
}, Ge = /* @__PURE__ */
|
|
338
|
+
}, Ge = /* @__PURE__ */ k({
|
|
339
339
|
__name: "AuthkitEmailVerify",
|
|
340
340
|
props: {
|
|
341
341
|
email: {
|
|
@@ -352,7 +352,7 @@ const Ne = {
|
|
|
352
352
|
setup(i, {
|
|
353
353
|
emit: n
|
|
354
354
|
}) {
|
|
355
|
-
const u = n, s = i,
|
|
355
|
+
const u = n, s = i, o = T(() => ae(s.email)), l = y(), t = y(!1), r = y(!1), _ = y(), c = y({
|
|
356
356
|
userToken: void 0,
|
|
357
357
|
emailVerifyId: void 0
|
|
358
358
|
});
|
|
@@ -360,21 +360,21 @@ const Ne = {
|
|
|
360
360
|
t.value = !0, Q({
|
|
361
361
|
email: s.email
|
|
362
362
|
}).then(({
|
|
363
|
-
data:
|
|
363
|
+
data: f
|
|
364
364
|
}) => {
|
|
365
|
-
|
|
365
|
+
c.value.emailVerifyId = f.emailVerifyId, t.value = !1, l.value.startCountFn();
|
|
366
366
|
}).catch(() => {
|
|
367
367
|
t.value = !1;
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
370
|
async function d() {
|
|
371
|
-
_.value.validate(["userToken"]).then((
|
|
372
|
-
if (!
|
|
371
|
+
_.value.validate(["userToken"]).then((f) => {
|
|
372
|
+
if (!f) {
|
|
373
373
|
r.value = !0;
|
|
374
374
|
const v = {
|
|
375
375
|
email: s.email,
|
|
376
|
-
userToken:
|
|
377
|
-
emailVerifyId:
|
|
376
|
+
userToken: c.value.userToken,
|
|
377
|
+
emailVerifyId: c.value.emailVerifyId
|
|
378
378
|
};
|
|
379
379
|
Be(v).then(() => {
|
|
380
380
|
r.value = !1, u("next");
|
|
@@ -384,14 +384,14 @@ const Ne = {
|
|
|
384
384
|
}
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
|
-
return (
|
|
387
|
+
return (f, v) => (g(), h(e(O), {
|
|
388
388
|
ref_key: "formRef",
|
|
389
389
|
ref: _,
|
|
390
|
-
model:
|
|
390
|
+
model: c.value,
|
|
391
391
|
"auto-label-width": "",
|
|
392
392
|
size: s.size
|
|
393
393
|
}, {
|
|
394
|
-
default: m(() => [
|
|
394
|
+
default: m(() => [a(e(A), {
|
|
395
395
|
field: "email",
|
|
396
396
|
label: "邮箱",
|
|
397
397
|
rules: [{
|
|
@@ -402,9 +402,9 @@ const Ne = {
|
|
|
402
402
|
message: "请输入有效的邮箱"
|
|
403
403
|
}]
|
|
404
404
|
}, {
|
|
405
|
-
default: m(() => [z(B(
|
|
405
|
+
default: m(() => [z(B(o.value), 1)]),
|
|
406
406
|
_: 1
|
|
407
|
-
}),
|
|
407
|
+
}), a(e(A), {
|
|
408
408
|
field: "userToken",
|
|
409
409
|
label: "验证码",
|
|
410
410
|
"hide-label": "",
|
|
@@ -413,13 +413,13 @@ const Ne = {
|
|
|
413
413
|
message: "请输入验证码"
|
|
414
414
|
}]
|
|
415
415
|
}, {
|
|
416
|
-
default: m(() => [b("div", Ne, [
|
|
417
|
-
modelValue:
|
|
418
|
-
"onUpdate:modelValue": v[0] || (v[0] = (w) =>
|
|
416
|
+
default: m(() => [b("div", Ne, [a(e(U), {
|
|
417
|
+
modelValue: c.value.userToken,
|
|
418
|
+
"onUpdate:modelValue": v[0] || (v[0] = (w) => c.value.userToken = w),
|
|
419
419
|
placeholder: "请输入验证码"
|
|
420
|
-
}, null, 8, ["modelValue"]),
|
|
420
|
+
}, null, 8, ["modelValue"]), a(X, {
|
|
421
421
|
ref_key: "SendVerifyCodeRef",
|
|
422
|
-
ref:
|
|
422
|
+
ref: l,
|
|
423
423
|
size: s.size,
|
|
424
424
|
loading: t.value,
|
|
425
425
|
style: {
|
|
@@ -428,12 +428,12 @@ const Ne = {
|
|
|
428
428
|
onSend: p
|
|
429
429
|
}, null, 8, ["size", "loading"])])]),
|
|
430
430
|
_: 1
|
|
431
|
-
}),
|
|
431
|
+
}), a(e(A), {
|
|
432
432
|
field: "",
|
|
433
433
|
label: "",
|
|
434
434
|
rules: []
|
|
435
435
|
}, {
|
|
436
|
-
default: m(() => [b("div", Fe, [
|
|
436
|
+
default: m(() => [b("div", Fe, [a(e(V), {
|
|
437
437
|
loading: r.value,
|
|
438
438
|
type: "primary",
|
|
439
439
|
onClick: d
|
|
@@ -447,9 +447,9 @@ const Ne = {
|
|
|
447
447
|
_: 1
|
|
448
448
|
}, 8, ["model", "size"]));
|
|
449
449
|
}
|
|
450
|
-
}), Y = /* @__PURE__ */
|
|
450
|
+
}), Y = /* @__PURE__ */ P(Ge, [["__scopeId", "data-v-89ebb370"]]), He = {
|
|
451
451
|
class: "handle"
|
|
452
|
-
}, Me = /* @__PURE__ */
|
|
452
|
+
}, Me = /* @__PURE__ */ k({
|
|
453
453
|
__name: "AuthkitPasswordUpdate",
|
|
454
454
|
props: {
|
|
455
455
|
size: {
|
|
@@ -461,33 +461,33 @@ const Ne = {
|
|
|
461
461
|
setup(i, {
|
|
462
462
|
emit: n
|
|
463
463
|
}) {
|
|
464
|
-
const u = n, s =
|
|
464
|
+
const u = n, s = y(!1), o = y(), l = i, t = y({
|
|
465
465
|
oldPassword: "",
|
|
466
466
|
password: "",
|
|
467
467
|
confirmPassword: ""
|
|
468
468
|
});
|
|
469
469
|
async function r() {
|
|
470
|
-
|
|
470
|
+
o.value.validate().then((_) => {
|
|
471
471
|
if (!_) {
|
|
472
|
-
const
|
|
472
|
+
const c = {
|
|
473
473
|
password: t.value.password
|
|
474
474
|
};
|
|
475
|
-
be(
|
|
476
|
-
s.value = !1, u("submit",
|
|
475
|
+
be(c).then(() => {
|
|
476
|
+
s.value = !1, u("submit", c);
|
|
477
477
|
}).catch(() => {
|
|
478
478
|
s.value = !1;
|
|
479
479
|
});
|
|
480
480
|
}
|
|
481
481
|
});
|
|
482
482
|
}
|
|
483
|
-
return (_,
|
|
483
|
+
return (_, c) => (g(), h(e(O), {
|
|
484
484
|
ref_key: "formRef",
|
|
485
|
-
ref:
|
|
485
|
+
ref: o,
|
|
486
486
|
model: t.value,
|
|
487
487
|
"auto-label-width": "",
|
|
488
|
-
size:
|
|
488
|
+
size: l.size
|
|
489
489
|
}, {
|
|
490
|
-
default: m(() => [
|
|
490
|
+
default: m(() => [a(e(A), {
|
|
491
491
|
field: "oldPassword",
|
|
492
492
|
label: "当前密码",
|
|
493
493
|
"hide-label": "",
|
|
@@ -496,14 +496,14 @@ const Ne = {
|
|
|
496
496
|
message: "请输入当前密码"
|
|
497
497
|
}]
|
|
498
498
|
}, {
|
|
499
|
-
default: m(() => [
|
|
499
|
+
default: m(() => [a(e(U), {
|
|
500
500
|
modelValue: t.value.oldPassword,
|
|
501
|
-
"onUpdate:modelValue":
|
|
501
|
+
"onUpdate:modelValue": c[0] || (c[0] = (p) => t.value.oldPassword = p),
|
|
502
502
|
placeholder: "请输入当前密码",
|
|
503
503
|
type: "password"
|
|
504
504
|
}, null, 8, ["modelValue"])]),
|
|
505
505
|
_: 1
|
|
506
|
-
}),
|
|
506
|
+
}), a(e(A), {
|
|
507
507
|
field: "password",
|
|
508
508
|
label: "新密码",
|
|
509
509
|
"hide-label": "",
|
|
@@ -515,14 +515,14 @@ const Ne = {
|
|
|
515
515
|
message: "新密码不能少于10字符"
|
|
516
516
|
}]
|
|
517
517
|
}, {
|
|
518
|
-
default: m(() => [
|
|
518
|
+
default: m(() => [a(e(U), {
|
|
519
519
|
modelValue: t.value.password,
|
|
520
|
-
"onUpdate:modelValue":
|
|
520
|
+
"onUpdate:modelValue": c[1] || (c[1] = (p) => t.value.password = p),
|
|
521
521
|
placeholder: "请输入新密码",
|
|
522
522
|
type: "password"
|
|
523
523
|
}, null, 8, ["modelValue"])]),
|
|
524
524
|
_: 1
|
|
525
|
-
}),
|
|
525
|
+
}), a(e(A), {
|
|
526
526
|
field: "confirmPassword",
|
|
527
527
|
label: "确认密码",
|
|
528
528
|
"hide-label": "",
|
|
@@ -538,24 +538,24 @@ const Ne = {
|
|
|
538
538
|
}
|
|
539
539
|
}]
|
|
540
540
|
}, {
|
|
541
|
-
default: m(() => [
|
|
541
|
+
default: m(() => [a(e(U), {
|
|
542
542
|
modelValue: t.value.confirmPassword,
|
|
543
|
-
"onUpdate:modelValue":
|
|
543
|
+
"onUpdate:modelValue": c[2] || (c[2] = (p) => t.value.confirmPassword = p),
|
|
544
544
|
placeholder: "请输入确认密码密码",
|
|
545
545
|
type: "password"
|
|
546
546
|
}, null, 8, ["modelValue"])]),
|
|
547
547
|
_: 1
|
|
548
|
-
}, 8, ["rules"]),
|
|
548
|
+
}, 8, ["rules"]), a(e(A), {
|
|
549
549
|
field: "",
|
|
550
550
|
label: "",
|
|
551
551
|
rules: []
|
|
552
552
|
}, {
|
|
553
|
-
default: m(() => [b("div", He, [
|
|
553
|
+
default: m(() => [b("div", He, [a(e(V), {
|
|
554
554
|
type: "primary",
|
|
555
555
|
loading: s.value,
|
|
556
556
|
onClick: r
|
|
557
557
|
}, {
|
|
558
|
-
default: m(() =>
|
|
558
|
+
default: m(() => c[3] || (c[3] = [z(" 提交 ")])),
|
|
559
559
|
_: 1,
|
|
560
560
|
__: [3]
|
|
561
561
|
}, 8, ["loading"])])]),
|
|
@@ -564,7 +564,7 @@ const Ne = {
|
|
|
564
564
|
_: 1
|
|
565
565
|
}, 8, ["model", "size"]));
|
|
566
566
|
}
|
|
567
|
-
}), De = /* @__PURE__ */
|
|
567
|
+
}), De = /* @__PURE__ */ P(Me, [["__scopeId", "data-v-a9e25b03"]]), je = /* @__PURE__ */ k({
|
|
568
568
|
__name: "AuthkitSetPassword",
|
|
569
569
|
props: {
|
|
570
570
|
size: {
|
|
@@ -577,26 +577,26 @@ const Ne = {
|
|
|
577
577
|
userProfile: n,
|
|
578
578
|
loading: u,
|
|
579
579
|
fetchUserProfile: s,
|
|
580
|
-
isLoggedIn:
|
|
581
|
-
} = K(),
|
|
580
|
+
isLoggedIn: o
|
|
581
|
+
} = K(), l = y("hidden"), t = i;
|
|
582
582
|
function r(p) {
|
|
583
|
-
|
|
583
|
+
l.value = p;
|
|
584
584
|
}
|
|
585
585
|
function _(p) {
|
|
586
|
-
E.success("密码修改成功"),
|
|
586
|
+
E.success("密码修改成功"), l.value = "hidden", s();
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
|
|
588
|
+
function c() {
|
|
589
|
+
l.value = "update";
|
|
590
590
|
}
|
|
591
591
|
return G(() => {
|
|
592
|
-
|
|
592
|
+
o.value && !n.value && s();
|
|
593
593
|
}), (p, d) => {
|
|
594
|
-
var
|
|
595
|
-
return g(),
|
|
594
|
+
var f, v, w, $;
|
|
595
|
+
return g(), I(W, null, [!((f = e(n)) != null && f.email) && !((v = e(n)) != null && v.phone) ? (g(), h(e(L), {
|
|
596
596
|
key: 0,
|
|
597
597
|
title: "去绑定邮箱"
|
|
598
598
|
}, {
|
|
599
|
-
action: m(() => [
|
|
599
|
+
action: m(() => [a(e(V), {
|
|
600
600
|
size: t.size,
|
|
601
601
|
type: "primary",
|
|
602
602
|
onClick: d[0] || (d[0] = (q) => r("update"))
|
|
@@ -608,11 +608,11 @@ const Ne = {
|
|
|
608
608
|
default: m(() => [d[3] || (d[3] = z(" 请先去绑定邮箱或者手机号码,才能设置密码 "))]),
|
|
609
609
|
_: 1,
|
|
610
610
|
__: [3]
|
|
611
|
-
})) :
|
|
611
|
+
})) : S("", !0), (w = e(n)) != null && w.email && l.value === "hidden" ? (g(), h(e(L), {
|
|
612
612
|
key: 1,
|
|
613
613
|
title: "更改密码"
|
|
614
614
|
}, {
|
|
615
|
-
action: m(() => [
|
|
615
|
+
action: m(() => [a(e(V), {
|
|
616
616
|
size: t.size,
|
|
617
617
|
type: "primary",
|
|
618
618
|
onClick: d[1] || (d[1] = (q) => r("verify"))
|
|
@@ -624,17 +624,17 @@ const Ne = {
|
|
|
624
624
|
default: m(() => [d[5] || (d[5] = z(" 为了账户安全修改密码前会先验证身份 "))]),
|
|
625
625
|
_: 1,
|
|
626
626
|
__: [5]
|
|
627
|
-
})) :
|
|
627
|
+
})) : S("", !0), l.value === "update" ? (g(), h(De, {
|
|
628
628
|
key: 2,
|
|
629
629
|
size: t.size,
|
|
630
630
|
loading: e(u),
|
|
631
631
|
onSubmit: _
|
|
632
|
-
}, null, 8, ["size", "loading"])) :
|
|
632
|
+
}, null, 8, ["size", "loading"])) : S("", !0), l.value === "verify" ? (g(), h(Y, {
|
|
633
633
|
key: 3,
|
|
634
634
|
size: t.size,
|
|
635
635
|
email: ($ = e(n)) == null ? void 0 : $.email,
|
|
636
|
-
onNext:
|
|
637
|
-
}, null, 8, ["size", "email"])) :
|
|
636
|
+
onNext: c
|
|
637
|
+
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
640
|
}), We = {
|
|
@@ -643,7 +643,7 @@ const Ne = {
|
|
|
643
643
|
class: "sendVerifyCodeItem"
|
|
644
644
|
}, Ze = {
|
|
645
645
|
class: "handle"
|
|
646
|
-
}, Je = /* @__PURE__ */
|
|
646
|
+
}, Je = /* @__PURE__ */ k({
|
|
647
647
|
__name: "AuthkitEmailUpdate",
|
|
648
648
|
props: {
|
|
649
649
|
size: {
|
|
@@ -660,7 +660,7 @@ const Ne = {
|
|
|
660
660
|
setup(i, {
|
|
661
661
|
emit: n
|
|
662
662
|
}) {
|
|
663
|
-
const u = n, s = i,
|
|
663
|
+
const u = n, s = i, o = y(), l = y(!1), t = y(), r = y({
|
|
664
664
|
email: void 0,
|
|
665
665
|
userToken: void 0,
|
|
666
666
|
emailVerifyId: void 0,
|
|
@@ -670,30 +670,30 @@ const Ne = {
|
|
|
670
670
|
});
|
|
671
671
|
async function _() {
|
|
672
672
|
t.value.validateField(["email"]).then((p) => {
|
|
673
|
-
p || (
|
|
673
|
+
p || (l.value = !0, Q({
|
|
674
674
|
email: r.value.email
|
|
675
675
|
}).then(({
|
|
676
676
|
data: d
|
|
677
677
|
}) => {
|
|
678
|
-
r.value.emailVerifyId = d.emailVerifyId,
|
|
678
|
+
r.value.emailVerifyId = d.emailVerifyId, l.value = !1, o.value.startCountFn();
|
|
679
679
|
}).catch(() => {
|
|
680
|
-
|
|
680
|
+
l.value = !1;
|
|
681
681
|
}));
|
|
682
682
|
});
|
|
683
683
|
}
|
|
684
|
-
async function
|
|
684
|
+
async function c() {
|
|
685
685
|
t.value.validate().then((p) => {
|
|
686
686
|
p || u("submit", r.value);
|
|
687
687
|
});
|
|
688
688
|
}
|
|
689
|
-
return (p, d) => (g(),
|
|
689
|
+
return (p, d) => (g(), I("div", We, [a(e(O), {
|
|
690
690
|
ref_key: "formRef",
|
|
691
691
|
ref: t,
|
|
692
692
|
model: r.value,
|
|
693
693
|
size: s.size,
|
|
694
694
|
"auto-label-width": ""
|
|
695
695
|
}, {
|
|
696
|
-
default: m(() => [
|
|
696
|
+
default: m(() => [a(e(A), {
|
|
697
697
|
field: "email",
|
|
698
698
|
label: "邮箱",
|
|
699
699
|
"hide-label": "",
|
|
@@ -705,15 +705,15 @@ const Ne = {
|
|
|
705
705
|
message: "请输入有效的邮箱"
|
|
706
706
|
}]
|
|
707
707
|
}, {
|
|
708
|
-
default: m(() => [
|
|
708
|
+
default: m(() => [a(e(U), {
|
|
709
709
|
modelValue: r.value.email,
|
|
710
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
710
|
+
"onUpdate:modelValue": d[0] || (d[0] = (f) => r.value.email = f),
|
|
711
711
|
placeholder: "请输入邮箱",
|
|
712
712
|
autocomplete: "email username",
|
|
713
713
|
type: "email"
|
|
714
714
|
}, null, 8, ["modelValue"])]),
|
|
715
715
|
_: 1
|
|
716
|
-
}),
|
|
716
|
+
}), a(e(A), {
|
|
717
717
|
field: "userToken",
|
|
718
718
|
label: "验证码",
|
|
719
719
|
"hide-label": "",
|
|
@@ -722,23 +722,23 @@ const Ne = {
|
|
|
722
722
|
message: "请输入验证码"
|
|
723
723
|
}]
|
|
724
724
|
}, {
|
|
725
|
-
default: m(() => [b("div", Ke, [
|
|
725
|
+
default: m(() => [b("div", Ke, [a(e(U), {
|
|
726
726
|
modelValue: r.value.userToken,
|
|
727
|
-
"onUpdate:modelValue": d[1] || (d[1] = (
|
|
727
|
+
"onUpdate:modelValue": d[1] || (d[1] = (f) => r.value.userToken = f),
|
|
728
728
|
placeholder: "请输入验证码",
|
|
729
729
|
autocomplete: "one-time-code"
|
|
730
|
-
}, null, 8, ["modelValue"]),
|
|
730
|
+
}, null, 8, ["modelValue"]), a(X, {
|
|
731
731
|
ref_key: "SendVerifyCodeRef",
|
|
732
|
-
ref:
|
|
732
|
+
ref: o,
|
|
733
733
|
size: s.size,
|
|
734
|
-
loading:
|
|
734
|
+
loading: l.value,
|
|
735
735
|
style: {
|
|
736
736
|
"margin-left": "10px"
|
|
737
737
|
},
|
|
738
738
|
onSend: _
|
|
739
739
|
}, null, 8, ["size", "loading"])])]),
|
|
740
740
|
_: 1
|
|
741
|
-
}),
|
|
741
|
+
}), a(e(A), {
|
|
742
742
|
field: "password",
|
|
743
743
|
label: "密码",
|
|
744
744
|
"hide-label": "",
|
|
@@ -750,15 +750,15 @@ const Ne = {
|
|
|
750
750
|
message: "密码不能少于10字符"
|
|
751
751
|
}]
|
|
752
752
|
}, {
|
|
753
|
-
default: m(() => [
|
|
753
|
+
default: m(() => [a(e(U), {
|
|
754
754
|
modelValue: r.value.password,
|
|
755
|
-
"onUpdate:modelValue": d[2] || (d[2] = (
|
|
755
|
+
"onUpdate:modelValue": d[2] || (d[2] = (f) => r.value.password = f),
|
|
756
756
|
placeholder: "请输入密码",
|
|
757
757
|
type: "password",
|
|
758
758
|
autocomplete: "new-password"
|
|
759
759
|
}, null, 8, ["modelValue"])]),
|
|
760
760
|
_: 1
|
|
761
|
-
}),
|
|
761
|
+
}), a(e(A), {
|
|
762
762
|
field: "confirmPassword",
|
|
763
763
|
label: "确认密码",
|
|
764
764
|
"hide-label": "",
|
|
@@ -769,20 +769,20 @@ const Ne = {
|
|
|
769
769
|
minLength: 10,
|
|
770
770
|
message: "确认密码不能少于10字符"
|
|
771
771
|
}, {
|
|
772
|
-
validator: (
|
|
773
|
-
|
|
772
|
+
validator: (f, v) => {
|
|
773
|
+
f !== r.value.password ? v("两次密码输入不一致,请重新输入") : v();
|
|
774
774
|
}
|
|
775
775
|
}]
|
|
776
776
|
}, {
|
|
777
|
-
default: m(() => [
|
|
777
|
+
default: m(() => [a(e(U), {
|
|
778
778
|
modelValue: r.value.confirmPassword,
|
|
779
|
-
"onUpdate:modelValue": d[3] || (d[3] = (
|
|
779
|
+
"onUpdate:modelValue": d[3] || (d[3] = (f) => r.value.confirmPassword = f),
|
|
780
780
|
placeholder: "请输入确认密码密码",
|
|
781
781
|
type: "password",
|
|
782
782
|
autocomplete: "new-password"
|
|
783
783
|
}, null, 8, ["modelValue"])]),
|
|
784
784
|
_: 1
|
|
785
|
-
}, 8, ["rules"]),
|
|
785
|
+
}, 8, ["rules"]), a(e(A), {
|
|
786
786
|
field: "referrerId",
|
|
787
787
|
label: "邀请人",
|
|
788
788
|
"hide-label": "",
|
|
@@ -791,19 +791,19 @@ const Ne = {
|
|
|
791
791
|
message: "请输入邀请人ID"
|
|
792
792
|
}]
|
|
793
793
|
}, {
|
|
794
|
-
default: m(() => [
|
|
794
|
+
default: m(() => [a(e(U), {
|
|
795
795
|
modelValue: r.value.referrerId,
|
|
796
|
-
"onUpdate:modelValue": d[4] || (d[4] = (
|
|
796
|
+
"onUpdate:modelValue": d[4] || (d[4] = (f) => r.value.referrerId = f),
|
|
797
797
|
placeholder: "邀请人ID(可选)",
|
|
798
798
|
autocomplete: "off"
|
|
799
799
|
}, null, 8, ["modelValue"])]),
|
|
800
800
|
_: 1
|
|
801
|
-
}), b("div", Ze, [
|
|
801
|
+
}), b("div", Ze, [a(e(V), {
|
|
802
802
|
type: "primary",
|
|
803
803
|
loading: s.loading,
|
|
804
804
|
long: "",
|
|
805
805
|
size: s.size,
|
|
806
|
-
onClick:
|
|
806
|
+
onClick: c
|
|
807
807
|
}, {
|
|
808
808
|
default: m(() => d[5] || (d[5] = [z(" 提交 ")])),
|
|
809
809
|
_: 1,
|
|
@@ -812,7 +812,7 @@ const Ne = {
|
|
|
812
812
|
_: 1
|
|
813
813
|
}, 8, ["model", "size"])]));
|
|
814
814
|
}
|
|
815
|
-
}), oe = /* @__PURE__ */
|
|
815
|
+
}), oe = /* @__PURE__ */ P(Je, [["__scopeId", "data-v-5b701953"]]), Qe = /* @__PURE__ */ k({
|
|
816
816
|
__name: "AuthkitEmailBinding",
|
|
817
817
|
props: {
|
|
818
818
|
size: {
|
|
@@ -825,36 +825,36 @@ const Ne = {
|
|
|
825
825
|
userProfile: n,
|
|
826
826
|
loading: u,
|
|
827
827
|
fetchUserProfile: s
|
|
828
|
-
} = K(),
|
|
829
|
-
function t(
|
|
830
|
-
|
|
828
|
+
} = K(), o = y("hidden"), l = i;
|
|
829
|
+
function t(c) {
|
|
830
|
+
o.value = c;
|
|
831
831
|
}
|
|
832
|
-
function r(
|
|
832
|
+
function r(c) {
|
|
833
833
|
u.value = !0;
|
|
834
834
|
const p = {
|
|
835
|
-
email:
|
|
836
|
-
userToken:
|
|
837
|
-
emailVerifyId:
|
|
835
|
+
email: c.email,
|
|
836
|
+
userToken: c.userToken,
|
|
837
|
+
emailVerifyId: c.emailVerifyId
|
|
838
838
|
};
|
|
839
839
|
we(p).then(() => {
|
|
840
|
-
u.value = !1, E.success("绑定成功"),
|
|
840
|
+
u.value = !1, E.success("绑定成功"), o.value = "hidden", s();
|
|
841
841
|
}).catch(() => {
|
|
842
842
|
u.value = !1;
|
|
843
843
|
});
|
|
844
844
|
}
|
|
845
845
|
function _() {
|
|
846
|
-
|
|
846
|
+
o.value = "update";
|
|
847
847
|
}
|
|
848
848
|
return G(() => {
|
|
849
849
|
n.value || s();
|
|
850
|
-
}), (
|
|
851
|
-
var d,
|
|
852
|
-
return g(),
|
|
850
|
+
}), (c, p) => {
|
|
851
|
+
var d, f, v;
|
|
852
|
+
return g(), I(W, null, [!((d = e(n)) != null && d.email) && o.value === "hidden" ? (g(), h(e(L), {
|
|
853
853
|
key: 0,
|
|
854
854
|
title: "绑定邮箱"
|
|
855
855
|
}, {
|
|
856
|
-
action: m(() => [
|
|
857
|
-
size:
|
|
856
|
+
action: m(() => [a(e(V), {
|
|
857
|
+
size: l.size,
|
|
858
858
|
type: "primary",
|
|
859
859
|
onClick: p[0] || (p[0] = (w) => t("update"))
|
|
860
860
|
}, {
|
|
@@ -865,12 +865,12 @@ const Ne = {
|
|
|
865
865
|
default: m(() => [p[3] || (p[3] = z(" 您还未绑定邮箱,请点击绑定邮箱 "))]),
|
|
866
866
|
_: 1,
|
|
867
867
|
__: [3]
|
|
868
|
-
})) :
|
|
868
|
+
})) : S("", !0), (f = e(n)) != null && f.email && o.value === "hidden" ? (g(), h(e(L), {
|
|
869
869
|
key: 1,
|
|
870
870
|
title: "更改邮箱"
|
|
871
871
|
}, {
|
|
872
|
-
action: m(() => [
|
|
873
|
-
size:
|
|
872
|
+
action: m(() => [a(e(V), {
|
|
873
|
+
size: l.size,
|
|
874
874
|
type: "primary",
|
|
875
875
|
onClick: p[1] || (p[1] = (w) => t("verify"))
|
|
876
876
|
}, {
|
|
@@ -883,27 +883,27 @@ const Ne = {
|
|
|
883
883
|
return [z(B(`您绑定的邮箱为${e(ae)((w = e(n)) == null ? void 0 : w.email)}`) + " ", 1)];
|
|
884
884
|
}),
|
|
885
885
|
_: 1
|
|
886
|
-
})) :
|
|
886
|
+
})) : S("", !0), o.value === "update" ? (g(), h(oe, {
|
|
887
887
|
key: 2,
|
|
888
888
|
loading: e(u),
|
|
889
|
-
size:
|
|
889
|
+
size: l.size,
|
|
890
890
|
onSubmit: r
|
|
891
|
-
}, null, 8, ["loading", "size"])) :
|
|
891
|
+
}, null, 8, ["loading", "size"])) : S("", !0), o.value === "verify" ? (g(), h(Y, {
|
|
892
892
|
key: 3,
|
|
893
|
-
size:
|
|
893
|
+
size: l.size,
|
|
894
894
|
email: (v = e(n)) == null ? void 0 : v.email,
|
|
895
895
|
onNext: _
|
|
896
|
-
}, null, 8, ["size", "email"])) :
|
|
896
|
+
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
897
897
|
};
|
|
898
898
|
}
|
|
899
|
-
}), Xe = /* @__PURE__ */
|
|
899
|
+
}), Xe = /* @__PURE__ */ P(Qe, [["__scopeId", "data-v-b2663ea1"]]);
|
|
900
900
|
function re() {
|
|
901
901
|
return H({
|
|
902
902
|
url: `${F.authPrefixUrl}/restfulApi/OAuth/github/login`,
|
|
903
903
|
method: "get"
|
|
904
904
|
});
|
|
905
905
|
}
|
|
906
|
-
const Ye = /* @__PURE__ */
|
|
906
|
+
const Ye = /* @__PURE__ */ k({
|
|
907
907
|
__name: "AuthkitGithubBinding",
|
|
908
908
|
props: {
|
|
909
909
|
size: {
|
|
@@ -915,44 +915,44 @@ const Ye = /* @__PURE__ */ S({
|
|
|
915
915
|
const {
|
|
916
916
|
userProfile: n,
|
|
917
917
|
fetchUserProfile: u
|
|
918
|
-
} = K(), s =
|
|
919
|
-
let
|
|
918
|
+
} = K(), s = y("hidden"), o = y(!1);
|
|
919
|
+
let l;
|
|
920
920
|
const t = i;
|
|
921
|
-
function r(
|
|
922
|
-
s.value =
|
|
921
|
+
function r(f) {
|
|
922
|
+
s.value = f;
|
|
923
923
|
}
|
|
924
924
|
function _() {
|
|
925
925
|
re().then(({
|
|
926
|
-
data:
|
|
926
|
+
data: f
|
|
927
927
|
}) => {
|
|
928
928
|
const {
|
|
929
929
|
redirectUri: v
|
|
930
|
-
} =
|
|
931
|
-
|
|
930
|
+
} = f;
|
|
931
|
+
o.value = !0, window.open(v, "_blank");
|
|
932
932
|
});
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function c() {
|
|
935
935
|
ze().then(() => {
|
|
936
936
|
E.success("解绑成功"), s.value = "hidden", u();
|
|
937
937
|
});
|
|
938
938
|
}
|
|
939
939
|
function p() {
|
|
940
|
-
s.value === "bind" && (s.value = "hidden", _()), s.value === "unbind" &&
|
|
940
|
+
s.value === "bind" && (s.value = "hidden", _()), s.value === "unbind" && c();
|
|
941
941
|
}
|
|
942
942
|
function d() {
|
|
943
|
-
|
|
943
|
+
o.value && u();
|
|
944
944
|
}
|
|
945
945
|
return G(() => {
|
|
946
|
-
n.value || u(),
|
|
946
|
+
n.value || u(), l = setInterval(d, 1e3);
|
|
947
947
|
}), te(() => {
|
|
948
|
-
|
|
949
|
-
}), (
|
|
948
|
+
l && clearInterval(l);
|
|
949
|
+
}), (f, v) => {
|
|
950
950
|
var w, $, q;
|
|
951
|
-
return g(),
|
|
951
|
+
return g(), I(W, null, [!((w = e(n)) != null && w.github) && s.value === "hidden" ? (g(), h(e(L), {
|
|
952
952
|
key: 0,
|
|
953
953
|
title: "绑定GitHUb"
|
|
954
954
|
}, {
|
|
955
|
-
action: m(() => [
|
|
955
|
+
action: m(() => [a(e(V), {
|
|
956
956
|
size: t.size,
|
|
957
957
|
type: "primary",
|
|
958
958
|
onClick: v[0] || (v[0] = (R) => r("bind"))
|
|
@@ -964,11 +964,11 @@ const Ye = /* @__PURE__ */ S({
|
|
|
964
964
|
default: m(() => [v[3] || (v[3] = z(" 请尚未绑定GitHub,请点击绑定GitHUb "))]),
|
|
965
965
|
_: 1,
|
|
966
966
|
__: [3]
|
|
967
|
-
})) :
|
|
967
|
+
})) : S("", !0), ($ = e(n)) != null && $.github && s.value === "hidden" ? (g(), h(e(L), {
|
|
968
968
|
key: 1,
|
|
969
969
|
title: "解绑GitHub"
|
|
970
970
|
}, {
|
|
971
|
-
action: m(() => [
|
|
971
|
+
action: m(() => [a(e(V), {
|
|
972
972
|
size: t.size,
|
|
973
973
|
type: "primary",
|
|
974
974
|
onClick: v[1] || (v[1] = (R) => r("unbind"))
|
|
@@ -979,18 +979,18 @@ const Ye = /* @__PURE__ */ S({
|
|
|
979
979
|
}, 8, ["size"])]),
|
|
980
980
|
default: m(() => {
|
|
981
981
|
var R, C, x;
|
|
982
|
-
return [b("span", null, B(`您绑定的账号为 ${(C = (R = e(n)) == null ? void 0 : R.github) == null ? void 0 : C.login}`), 1),
|
|
982
|
+
return [b("span", null, B(`您绑定的账号为 ${(C = (R = e(n)) == null ? void 0 : R.github) == null ? void 0 : C.login}`), 1), a(e(ne), {
|
|
983
983
|
"image-url": (x = e(n)) == null ? void 0 : x.avatar,
|
|
984
984
|
size: 42
|
|
985
985
|
}, null, 8, ["image-url"])];
|
|
986
986
|
}),
|
|
987
987
|
_: 1
|
|
988
|
-
})) :
|
|
988
|
+
})) : S("", !0), s.value === "bind" || s.value === "unbind" ? (g(), h(Y, {
|
|
989
989
|
key: 2,
|
|
990
990
|
size: t.size,
|
|
991
991
|
email: (q = e(n)) == null ? void 0 : q.email,
|
|
992
992
|
onNext: p
|
|
993
|
-
}, null, 8, ["size", "email"])) :
|
|
993
|
+
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
994
994
|
};
|
|
995
995
|
}
|
|
996
996
|
}), et = {
|
|
@@ -999,7 +999,7 @@ const Ye = /* @__PURE__ */ S({
|
|
|
999
999
|
class: "left"
|
|
1000
1000
|
}, it = {
|
|
1001
1001
|
class: "right"
|
|
1002
|
-
}, st = /* @__PURE__ */
|
|
1002
|
+
}, st = /* @__PURE__ */ k({
|
|
1003
1003
|
__name: "AuthkitAppSetting",
|
|
1004
1004
|
emits: ["confirm", "cancel"],
|
|
1005
1005
|
setup(i, {
|
|
@@ -1007,10 +1007,10 @@ const Ye = /* @__PURE__ */ S({
|
|
|
1007
1007
|
emit: u
|
|
1008
1008
|
}) {
|
|
1009
1009
|
const s = u;
|
|
1010
|
-
function
|
|
1010
|
+
function o() {
|
|
1011
1011
|
s("cancel");
|
|
1012
1012
|
}
|
|
1013
|
-
const
|
|
1013
|
+
const l = y("large"), t = y(["PersonalInformation"]), r = y([{
|
|
1014
1014
|
name: "个人信息",
|
|
1015
1015
|
path: "PersonalInformation",
|
|
1016
1016
|
meta: {
|
|
@@ -1055,20 +1055,20 @@ const Ye = /* @__PURE__ */ S({
|
|
|
1055
1055
|
// },
|
|
1056
1056
|
]
|
|
1057
1057
|
}]);
|
|
1058
|
-
function _(
|
|
1059
|
-
const w =
|
|
1058
|
+
function _(f, v) {
|
|
1059
|
+
const w = f.path;
|
|
1060
1060
|
console.log(w, v, "lokokoko"), t.value = [w];
|
|
1061
1061
|
}
|
|
1062
1062
|
const {
|
|
1063
|
-
changeType:
|
|
1063
|
+
changeType: c,
|
|
1064
1064
|
show: p
|
|
1065
|
-
} =
|
|
1066
|
-
function d(
|
|
1067
|
-
console.log(
|
|
1065
|
+
} = Ie(s);
|
|
1066
|
+
function d(f, v) {
|
|
1067
|
+
console.log(f), p.value = v, c.value = "编辑";
|
|
1068
1068
|
}
|
|
1069
1069
|
return n({
|
|
1070
1070
|
setData: d
|
|
1071
|
-
}), (
|
|
1071
|
+
}), (f, v) => (g(), h(e(le), {
|
|
1072
1072
|
visible: e(p),
|
|
1073
1073
|
"onUpdate:visible": v[1] || (v[1] = (w) => ie(p) ? p.value = w : null),
|
|
1074
1074
|
"unmount-on-close": "",
|
|
@@ -1076,31 +1076,31 @@ const Ye = /* @__PURE__ */ S({
|
|
|
1076
1076
|
"mask-closable": !1,
|
|
1077
1077
|
footer: !1,
|
|
1078
1078
|
width: "700px",
|
|
1079
|
-
onCancel:
|
|
1079
|
+
onCancel: o
|
|
1080
1080
|
}, {
|
|
1081
1081
|
title: m(() => v[2] || (v[2] = [z(" 系统设置 ")])),
|
|
1082
|
-
default: m(() => [b("div", et, [b("div", tt, [
|
|
1082
|
+
default: m(() => [b("div", et, [b("div", tt, [a(Pe, {
|
|
1083
1083
|
"selected-keys": t.value,
|
|
1084
1084
|
"onUpdate:selectedKeys": v[0] || (v[0] = (w) => t.value = w),
|
|
1085
1085
|
menus: r.value,
|
|
1086
1086
|
onChange: _
|
|
1087
|
-
}, null, 8, ["selected-keys", "menus"])]), b("div", it, [t.value[0] === "PersonalInformation" ? (g(),
|
|
1087
|
+
}, null, 8, ["selected-keys", "menus"])]), b("div", it, [t.value[0] === "PersonalInformation" ? (g(), h(Le, {
|
|
1088
1088
|
key: 0,
|
|
1089
|
-
size:
|
|
1090
|
-
}, null, 8, ["size"])) :
|
|
1089
|
+
size: l.value
|
|
1090
|
+
}, null, 8, ["size"])) : S("", !0), t.value[0] === "EmailBinding" ? (g(), h(Xe, {
|
|
1091
1091
|
key: 1,
|
|
1092
|
-
size:
|
|
1093
|
-
}, null, 8, ["size"])) :
|
|
1092
|
+
size: l.value
|
|
1093
|
+
}, null, 8, ["size"])) : S("", !0), t.value[0] === "SetPassword" ? (g(), h(je, {
|
|
1094
1094
|
key: 2,
|
|
1095
|
-
size:
|
|
1096
|
-
}, null, 8, ["size"])) :
|
|
1095
|
+
size: l.value
|
|
1096
|
+
}, null, 8, ["size"])) : S("", !0), t.value[0] === "GithubBinding" ? (g(), h(Ye, {
|
|
1097
1097
|
key: 3,
|
|
1098
|
-
size:
|
|
1099
|
-
}, null, 8, ["size"])) :
|
|
1098
|
+
size: l.value
|
|
1099
|
+
}, null, 8, ["size"])) : S("", !0)])])]),
|
|
1100
1100
|
_: 1
|
|
1101
1101
|
}, 8, ["visible"]));
|
|
1102
1102
|
}
|
|
1103
|
-
}), di = /* @__PURE__ */
|
|
1103
|
+
}), di = /* @__PURE__ */ P(st, [["__scopeId", "data-v-cd51dcec"]]);
|
|
1104
1104
|
function nt() {
|
|
1105
1105
|
re().then(({
|
|
1106
1106
|
data: i
|
|
@@ -1124,7 +1124,7 @@ function ot() {
|
|
|
1124
1124
|
microsoftAuth: at
|
|
1125
1125
|
};
|
|
1126
1126
|
}
|
|
1127
|
-
const D = /* @__PURE__ */
|
|
1127
|
+
const D = /* @__PURE__ */ k({
|
|
1128
1128
|
__name: "AuthkitOAuthItem",
|
|
1129
1129
|
props: {
|
|
1130
1130
|
size: {
|
|
@@ -1147,12 +1147,12 @@ const D = /* @__PURE__ */ S({
|
|
|
1147
1147
|
emit: n
|
|
1148
1148
|
}) {
|
|
1149
1149
|
const u = i;
|
|
1150
|
-
return (s,
|
|
1150
|
+
return (s, o) => (g(), h(e(V), {
|
|
1151
1151
|
class: "OAuthItem",
|
|
1152
1152
|
type: "primary",
|
|
1153
1153
|
size: u.size
|
|
1154
1154
|
}, {
|
|
1155
|
-
icon: m(() => [
|
|
1155
|
+
icon: m(() => [a(e(Ve), {
|
|
1156
1156
|
icon: u.icon
|
|
1157
1157
|
}, null, 8, ["icon"])]),
|
|
1158
1158
|
default: m(() => [b("span", null, B(u.label), 1)]),
|
|
@@ -1163,7 +1163,7 @@ const D = /* @__PURE__ */ S({
|
|
|
1163
1163
|
class: "OAuthList"
|
|
1164
1164
|
}, ut = {
|
|
1165
1165
|
class: "OAuthList"
|
|
1166
|
-
}, dt = /* @__PURE__ */
|
|
1166
|
+
}, dt = /* @__PURE__ */ k({
|
|
1167
1167
|
__name: "AuthkitOAuthList",
|
|
1168
1168
|
props: {
|
|
1169
1169
|
size: {
|
|
@@ -1180,43 +1180,43 @@ const D = /* @__PURE__ */ S({
|
|
|
1180
1180
|
appsData: n
|
|
1181
1181
|
} = J(), u = i, {
|
|
1182
1182
|
githubAuth: s,
|
|
1183
|
-
googleAuth:
|
|
1184
|
-
microsoftAuth:
|
|
1183
|
+
googleAuth: o,
|
|
1184
|
+
microsoftAuth: l
|
|
1185
1185
|
} = ot(), t = T(() => !(!n.value.oauth.google.enabled && !n.value.oauth.microsoft.enabled && !n.value.oauth.github.enabled && !n.value.oauth.wechat.enabled));
|
|
1186
|
-
return (r, _) => (g(),
|
|
1186
|
+
return (r, _) => (g(), I("div", rt, [t.value ? (g(), h(e(_e), {
|
|
1187
1187
|
key: 0,
|
|
1188
1188
|
orientation: "center"
|
|
1189
1189
|
}, {
|
|
1190
1190
|
default: m(() => _[0] || (_[0] = [z("OAuth登陆")])),
|
|
1191
1191
|
_: 1,
|
|
1192
1192
|
__: [0]
|
|
1193
|
-
})) :
|
|
1193
|
+
})) : S("", !0), b("div", ut, [e(n).oauth.github.enabled ? (g(), h(D, {
|
|
1194
1194
|
key: 0,
|
|
1195
1195
|
icon: "mdi:github",
|
|
1196
1196
|
label: "Github",
|
|
1197
1197
|
size: u.size,
|
|
1198
1198
|
onClick: e(s)
|
|
1199
|
-
}, null, 8, ["size", "onClick"])) :
|
|
1199
|
+
}, null, 8, ["size", "onClick"])) : S("", !0), e(n).oauth.google.enabled ? (g(), h(D, {
|
|
1200
1200
|
key: 1,
|
|
1201
1201
|
icon: "mdi:google",
|
|
1202
1202
|
label: "Google",
|
|
1203
1203
|
size: u.size,
|
|
1204
|
-
onClick: e(
|
|
1205
|
-
}, null, 8, ["size", "onClick"])) :
|
|
1204
|
+
onClick: e(o)
|
|
1205
|
+
}, null, 8, ["size", "onClick"])) : S("", !0), e(n).oauth.microsoft.enabled ? (g(), h(D, {
|
|
1206
1206
|
key: 2,
|
|
1207
1207
|
icon: "mdi:microsoft",
|
|
1208
1208
|
label: "Microsoft",
|
|
1209
1209
|
size: u.size,
|
|
1210
|
-
onClick: e(
|
|
1211
|
-
}, null, 8, ["size", "onClick"])) :
|
|
1210
|
+
onClick: e(l)
|
|
1211
|
+
}, null, 8, ["size", "onClick"])) : S("", !0)])]));
|
|
1212
1212
|
}
|
|
1213
|
-
}), mt = /* @__PURE__ */
|
|
1213
|
+
}), mt = /* @__PURE__ */ P(dt, [["__scopeId", "data-v-7c6620c0"]]), ct = {
|
|
1214
1214
|
class: "content"
|
|
1215
1215
|
}, ft = {
|
|
1216
1216
|
class: "sendVerifyCodeItem"
|
|
1217
1217
|
}, pt = {
|
|
1218
1218
|
class: "handle"
|
|
1219
|
-
}, vt = /* @__PURE__ */
|
|
1219
|
+
}, vt = /* @__PURE__ */ k({
|
|
1220
1220
|
__name: "AuthkitPasswordUpdateAndVerify",
|
|
1221
1221
|
props: {
|
|
1222
1222
|
size: {
|
|
@@ -1233,7 +1233,7 @@ const D = /* @__PURE__ */ S({
|
|
|
1233
1233
|
setup(i, {
|
|
1234
1234
|
emit: n
|
|
1235
1235
|
}) {
|
|
1236
|
-
const u = n, s = i,
|
|
1236
|
+
const u = n, s = i, o = y(), l = y(!1), t = y(), r = y({
|
|
1237
1237
|
email: void 0,
|
|
1238
1238
|
userToken: void 0,
|
|
1239
1239
|
emailVerifyId: void 0,
|
|
@@ -1242,30 +1242,30 @@ const D = /* @__PURE__ */ S({
|
|
|
1242
1242
|
});
|
|
1243
1243
|
async function _() {
|
|
1244
1244
|
t.value.validateField(["email"]).then((p) => {
|
|
1245
|
-
p || (
|
|
1245
|
+
p || (l.value = !0, Q({
|
|
1246
1246
|
email: r.value.email
|
|
1247
1247
|
}).then(({
|
|
1248
1248
|
data: d
|
|
1249
1249
|
}) => {
|
|
1250
|
-
|
|
1250
|
+
l.value = !1, r.value.emailVerifyId = d.emailVerifyId, o.value.startCountFn();
|
|
1251
1251
|
}).catch(() => {
|
|
1252
|
-
|
|
1252
|
+
l.value = !1;
|
|
1253
1253
|
}));
|
|
1254
1254
|
});
|
|
1255
1255
|
}
|
|
1256
|
-
async function
|
|
1256
|
+
async function c() {
|
|
1257
1257
|
t.value.validate().then((p) => {
|
|
1258
1258
|
p || u("submit", r.value);
|
|
1259
1259
|
});
|
|
1260
1260
|
}
|
|
1261
|
-
return (p, d) => (g(),
|
|
1261
|
+
return (p, d) => (g(), I("div", ct, [a(e(O), {
|
|
1262
1262
|
ref_key: "formRef",
|
|
1263
1263
|
ref: t,
|
|
1264
1264
|
model: r.value,
|
|
1265
1265
|
size: s.size,
|
|
1266
1266
|
"auto-label-width": ""
|
|
1267
1267
|
}, {
|
|
1268
|
-
default: m(() => [
|
|
1268
|
+
default: m(() => [a(e(A), {
|
|
1269
1269
|
field: "email",
|
|
1270
1270
|
label: "邮箱",
|
|
1271
1271
|
"hide-label": "",
|
|
@@ -1277,13 +1277,13 @@ const D = /* @__PURE__ */ S({
|
|
|
1277
1277
|
message: "请输入有效的邮箱"
|
|
1278
1278
|
}]
|
|
1279
1279
|
}, {
|
|
1280
|
-
default: m(() => [
|
|
1280
|
+
default: m(() => [a(e(U), {
|
|
1281
1281
|
modelValue: r.value.email,
|
|
1282
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
1282
|
+
"onUpdate:modelValue": d[0] || (d[0] = (f) => r.value.email = f),
|
|
1283
1283
|
placeholder: "请输入邮箱"
|
|
1284
1284
|
}, null, 8, ["modelValue"])]),
|
|
1285
1285
|
_: 1
|
|
1286
|
-
}),
|
|
1286
|
+
}), a(e(A), {
|
|
1287
1287
|
field: "userToken",
|
|
1288
1288
|
label: "验证码",
|
|
1289
1289
|
"hide-label": "",
|
|
@@ -1292,22 +1292,22 @@ const D = /* @__PURE__ */ S({
|
|
|
1292
1292
|
message: "请输入验证码"
|
|
1293
1293
|
}]
|
|
1294
1294
|
}, {
|
|
1295
|
-
default: m(() => [b("div", ft, [
|
|
1295
|
+
default: m(() => [b("div", ft, [a(e(U), {
|
|
1296
1296
|
modelValue: r.value.userToken,
|
|
1297
|
-
"onUpdate:modelValue": d[1] || (d[1] = (
|
|
1297
|
+
"onUpdate:modelValue": d[1] || (d[1] = (f) => r.value.userToken = f),
|
|
1298
1298
|
placeholder: "请输入验证码"
|
|
1299
|
-
}, null, 8, ["modelValue"]),
|
|
1299
|
+
}, null, 8, ["modelValue"]), a(X, {
|
|
1300
1300
|
ref_key: "SendVerifyCodeRef",
|
|
1301
|
-
ref:
|
|
1301
|
+
ref: o,
|
|
1302
1302
|
size: s.size,
|
|
1303
|
-
loading:
|
|
1303
|
+
loading: l.value,
|
|
1304
1304
|
style: {
|
|
1305
1305
|
"margin-left": "10px"
|
|
1306
1306
|
},
|
|
1307
1307
|
onSend: _
|
|
1308
1308
|
}, null, 8, ["size", "loading"])])]),
|
|
1309
1309
|
_: 1
|
|
1310
|
-
}),
|
|
1310
|
+
}), a(e(A), {
|
|
1311
1311
|
field: "password",
|
|
1312
1312
|
label: "密码",
|
|
1313
1313
|
"hide-label": "",
|
|
@@ -1319,15 +1319,15 @@ const D = /* @__PURE__ */ S({
|
|
|
1319
1319
|
message: "密码不能少于10字符"
|
|
1320
1320
|
}]
|
|
1321
1321
|
}, {
|
|
1322
|
-
default: m(() => [
|
|
1322
|
+
default: m(() => [a(e(U), {
|
|
1323
1323
|
modelValue: r.value.password,
|
|
1324
|
-
"onUpdate:modelValue": d[2] || (d[2] = (
|
|
1324
|
+
"onUpdate:modelValue": d[2] || (d[2] = (f) => r.value.password = f),
|
|
1325
1325
|
placeholder: "请输入密码",
|
|
1326
1326
|
type: "password",
|
|
1327
1327
|
autocomplete: ""
|
|
1328
1328
|
}, null, 8, ["modelValue"])]),
|
|
1329
1329
|
_: 1
|
|
1330
|
-
}),
|
|
1330
|
+
}), a(e(A), {
|
|
1331
1331
|
field: "confirmPassword",
|
|
1332
1332
|
label: "确认密码",
|
|
1333
1333
|
"hide-label": "",
|
|
@@ -1338,25 +1338,25 @@ const D = /* @__PURE__ */ S({
|
|
|
1338
1338
|
minLength: 10,
|
|
1339
1339
|
message: "确认密码不能少于10字符"
|
|
1340
1340
|
}, {
|
|
1341
|
-
validator: (
|
|
1342
|
-
|
|
1341
|
+
validator: (f, v) => {
|
|
1342
|
+
f !== r.value.password ? v("两次密码输入不一致,请重新输入") : v();
|
|
1343
1343
|
}
|
|
1344
1344
|
}]
|
|
1345
1345
|
}, {
|
|
1346
|
-
default: m(() => [
|
|
1346
|
+
default: m(() => [a(e(U), {
|
|
1347
1347
|
modelValue: r.value.confirmPassword,
|
|
1348
|
-
"onUpdate:modelValue": d[3] || (d[3] = (
|
|
1348
|
+
"onUpdate:modelValue": d[3] || (d[3] = (f) => r.value.confirmPassword = f),
|
|
1349
1349
|
placeholder: "请输入确认密码密码",
|
|
1350
1350
|
type: "password",
|
|
1351
1351
|
autocomplete: ""
|
|
1352
1352
|
}, null, 8, ["modelValue"])]),
|
|
1353
1353
|
_: 1
|
|
1354
|
-
}, 8, ["rules"]), b("div", pt, [
|
|
1354
|
+
}, 8, ["rules"]), b("div", pt, [a(e(V), {
|
|
1355
1355
|
type: "primary",
|
|
1356
1356
|
loading: s.loading,
|
|
1357
1357
|
long: "",
|
|
1358
1358
|
size: s.size,
|
|
1359
|
-
onClick:
|
|
1359
|
+
onClick: c
|
|
1360
1360
|
}, {
|
|
1361
1361
|
default: m(() => d[4] || (d[4] = [z(" 提交 ")])),
|
|
1362
1362
|
_: 1,
|
|
@@ -1365,9 +1365,9 @@ const D = /* @__PURE__ */ S({
|
|
|
1365
1365
|
_: 1
|
|
1366
1366
|
}, 8, ["model", "size"])]));
|
|
1367
1367
|
}
|
|
1368
|
-
}), gt = /* @__PURE__ */
|
|
1368
|
+
}), gt = /* @__PURE__ */ P(vt, [["__scopeId", "data-v-1c83f44a"]]), _t = {
|
|
1369
1369
|
class: "SwitchSignIn"
|
|
1370
|
-
},
|
|
1370
|
+
}, yt = /* @__PURE__ */ k({
|
|
1371
1371
|
__name: "AuthkitSwitchSignIn",
|
|
1372
1372
|
emits: ["switchSignIn"],
|
|
1373
1373
|
setup(i, {
|
|
@@ -1377,20 +1377,20 @@ const D = /* @__PURE__ */ S({
|
|
|
1377
1377
|
function s() {
|
|
1378
1378
|
u("switchSignIn");
|
|
1379
1379
|
}
|
|
1380
|
-
return (
|
|
1380
|
+
return (o, l) => (g(), I("div", _t, [b("span", null, [l[1] || (l[1] = b("span", null, "已经有账号?", -1)), a(e(N), {
|
|
1381
1381
|
style: {
|
|
1382
1382
|
padding: "0px"
|
|
1383
1383
|
},
|
|
1384
1384
|
onClick: s
|
|
1385
1385
|
}, {
|
|
1386
|
-
default: m(() =>
|
|
1386
|
+
default: m(() => l[0] || (l[0] = [z("去登陆")])),
|
|
1387
1387
|
_: 1,
|
|
1388
1388
|
__: [0]
|
|
1389
1389
|
})])]));
|
|
1390
1390
|
}
|
|
1391
|
-
}), ue = /* @__PURE__ */
|
|
1391
|
+
}), ue = /* @__PURE__ */ P(yt, [["__scopeId", "data-v-fc1d3903"]]), ht = {
|
|
1392
1392
|
class: "ResetPassword"
|
|
1393
|
-
}, bt = /* @__PURE__ */
|
|
1393
|
+
}, bt = /* @__PURE__ */ k({
|
|
1394
1394
|
__name: "AuthkitResetPassword",
|
|
1395
1395
|
props: {
|
|
1396
1396
|
size: {
|
|
@@ -1409,23 +1409,23 @@ const D = /* @__PURE__ */ S({
|
|
|
1409
1409
|
emit: n
|
|
1410
1410
|
}) {
|
|
1411
1411
|
const u = n, s = i;
|
|
1412
|
-
function
|
|
1412
|
+
function o() {
|
|
1413
1413
|
u("switchSignIn");
|
|
1414
1414
|
}
|
|
1415
|
-
async function
|
|
1415
|
+
async function l(t) {
|
|
1416
1416
|
u("submit", t);
|
|
1417
1417
|
}
|
|
1418
|
-
return (t, r) => (g(),
|
|
1418
|
+
return (t, r) => (g(), I("div", ht, [a(gt, {
|
|
1419
1419
|
loading: i.loading,
|
|
1420
1420
|
size: s.size,
|
|
1421
|
-
onSubmit:
|
|
1422
|
-
}, null, 8, ["loading", "size"]),
|
|
1423
|
-
onSwitchSignIn:
|
|
1421
|
+
onSubmit: l
|
|
1422
|
+
}, null, 8, ["loading", "size"]), a(ue, {
|
|
1423
|
+
onSwitchSignIn: o
|
|
1424
1424
|
})]));
|
|
1425
1425
|
}
|
|
1426
|
-
}), wt = /* @__PURE__ */
|
|
1426
|
+
}), wt = /* @__PURE__ */ P(bt, [["__scopeId", "data-v-0622cbe3"]]), zt = {
|
|
1427
1427
|
class: "ServiceAgreementAndPrivacyProtection"
|
|
1428
|
-
},
|
|
1428
|
+
}, St = /* @__PURE__ */ k({
|
|
1429
1429
|
__name: "AuthkitServiceAgreementAndPrivacyProtection",
|
|
1430
1430
|
emits: ["toUserServiceAgreement", "toPrivacyPolicy"],
|
|
1431
1431
|
setup(i, {
|
|
@@ -1435,28 +1435,28 @@ const D = /* @__PURE__ */ S({
|
|
|
1435
1435
|
function s() {
|
|
1436
1436
|
u("toUserServiceAgreement");
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function o() {
|
|
1439
1439
|
u("toPrivacyPolicy");
|
|
1440
1440
|
}
|
|
1441
|
-
return (
|
|
1441
|
+
return (l, t) => (g(), I("div", zt, [t[2] || (t[2] = b("span", null, " 注册登陆即表示同意", -1)), a(e(N), {
|
|
1442
1442
|
onClick: s
|
|
1443
1443
|
}, {
|
|
1444
1444
|
default: m(() => t[0] || (t[0] = [z("用户服务协议")])),
|
|
1445
1445
|
_: 1,
|
|
1446
1446
|
__: [0]
|
|
1447
|
-
}), t[3] || (t[3] = b("span", null, " 和 ", -1)),
|
|
1448
|
-
onClick:
|
|
1447
|
+
}), t[3] || (t[3] = b("span", null, " 和 ", -1)), a(e(N), {
|
|
1448
|
+
onClick: o
|
|
1449
1449
|
}, {
|
|
1450
1450
|
default: m(() => t[1] || (t[1] = [z("隐私协议")])),
|
|
1451
1451
|
_: 1,
|
|
1452
1452
|
__: [1]
|
|
1453
1453
|
})]));
|
|
1454
1454
|
}
|
|
1455
|
-
}),
|
|
1455
|
+
}), kt = /* @__PURE__ */ P(St, [["__scopeId", "data-v-18e831ec"]]), At = {
|
|
1456
1456
|
class: "content"
|
|
1457
|
-
},
|
|
1457
|
+
}, Pt = {
|
|
1458
1458
|
class: "handle"
|
|
1459
|
-
},
|
|
1459
|
+
}, It = /* @__PURE__ */ k({
|
|
1460
1460
|
__name: "AuthkitPasswordAuth",
|
|
1461
1461
|
props: {
|
|
1462
1462
|
size: {
|
|
@@ -1474,34 +1474,34 @@ const D = /* @__PURE__ */ S({
|
|
|
1474
1474
|
emit: n
|
|
1475
1475
|
}) {
|
|
1476
1476
|
const u = n, s = i;
|
|
1477
|
-
async function
|
|
1477
|
+
async function o(_, c) {
|
|
1478
1478
|
const p = await Oe({
|
|
1479
1479
|
password: _
|
|
1480
1480
|
});
|
|
1481
|
-
p ||
|
|
1481
|
+
p || c("密码验证请求出错!");
|
|
1482
1482
|
const {
|
|
1483
1483
|
isValidate: d,
|
|
1484
|
-
message:
|
|
1484
|
+
message: f
|
|
1485
1485
|
} = p.data;
|
|
1486
|
-
d || f
|
|
1486
|
+
d || c(f), c();
|
|
1487
1487
|
}
|
|
1488
|
-
const
|
|
1488
|
+
const l = y(), t = y({
|
|
1489
1489
|
email: void 0,
|
|
1490
1490
|
password: void 0
|
|
1491
1491
|
});
|
|
1492
1492
|
async function r() {
|
|
1493
|
-
|
|
1493
|
+
l.value.validate().then((_) => {
|
|
1494
1494
|
_ || u("submit", t.value);
|
|
1495
1495
|
});
|
|
1496
1496
|
}
|
|
1497
|
-
return (_,
|
|
1497
|
+
return (_, c) => (g(), I("div", At, [a(e(O), {
|
|
1498
1498
|
ref_key: "formRef",
|
|
1499
|
-
ref:
|
|
1499
|
+
ref: l,
|
|
1500
1500
|
model: t.value,
|
|
1501
1501
|
size: s.size,
|
|
1502
1502
|
"auto-label-width": ""
|
|
1503
1503
|
}, {
|
|
1504
|
-
default: m(() => [
|
|
1504
|
+
default: m(() => [a(e(A), {
|
|
1505
1505
|
field: "email",
|
|
1506
1506
|
label: "邮箱",
|
|
1507
1507
|
"hide-label": "",
|
|
@@ -1513,15 +1513,15 @@ const D = /* @__PURE__ */ S({
|
|
|
1513
1513
|
message: "请输入有效的邮箱"
|
|
1514
1514
|
}]
|
|
1515
1515
|
}, {
|
|
1516
|
-
default: m(() => [
|
|
1516
|
+
default: m(() => [a(e(U), {
|
|
1517
1517
|
modelValue: t.value.email,
|
|
1518
|
-
"onUpdate:modelValue":
|
|
1518
|
+
"onUpdate:modelValue": c[0] || (c[0] = (p) => t.value.email = p),
|
|
1519
1519
|
placeholder: "请输入邮箱",
|
|
1520
1520
|
autocomplete: "email username",
|
|
1521
1521
|
type: "email"
|
|
1522
1522
|
}, null, 8, ["modelValue"])]),
|
|
1523
1523
|
_: 1
|
|
1524
|
-
}),
|
|
1524
|
+
}), a(e(A), {
|
|
1525
1525
|
field: "password",
|
|
1526
1526
|
label: "密码",
|
|
1527
1527
|
"hide-label": "",
|
|
@@ -1529,34 +1529,34 @@ const D = /* @__PURE__ */ S({
|
|
|
1529
1529
|
required: !0,
|
|
1530
1530
|
message: "请输入密码"
|
|
1531
1531
|
}, {
|
|
1532
|
-
validator:
|
|
1532
|
+
validator: o
|
|
1533
1533
|
}]
|
|
1534
1534
|
}, {
|
|
1535
|
-
default: m(() => [
|
|
1535
|
+
default: m(() => [a(e(U), {
|
|
1536
1536
|
modelValue: t.value.password,
|
|
1537
|
-
"onUpdate:modelValue":
|
|
1537
|
+
"onUpdate:modelValue": c[1] || (c[1] = (p) => t.value.password = p),
|
|
1538
1538
|
placeholder: "请输入密码",
|
|
1539
1539
|
type: "password",
|
|
1540
1540
|
autocomplete: "current-password"
|
|
1541
1541
|
}, null, 8, ["modelValue"])]),
|
|
1542
1542
|
_: 1
|
|
1543
|
-
}, 8, ["rules"]), b("div",
|
|
1543
|
+
}, 8, ["rules"]), b("div", Pt, [a(e(V), {
|
|
1544
1544
|
type: "primary",
|
|
1545
1545
|
loading: s.loading,
|
|
1546
1546
|
long: "",
|
|
1547
1547
|
size: s.size,
|
|
1548
1548
|
onClick: r
|
|
1549
1549
|
}, {
|
|
1550
|
-
default: m(() =>
|
|
1550
|
+
default: m(() => c[2] || (c[2] = [z(" 登陆 ")])),
|
|
1551
1551
|
_: 1,
|
|
1552
1552
|
__: [2]
|
|
1553
1553
|
}, 8, ["loading", "size"])])]),
|
|
1554
1554
|
_: 1
|
|
1555
1555
|
}, 8, ["model", "size"])]));
|
|
1556
1556
|
}
|
|
1557
|
-
}),
|
|
1557
|
+
}), Ut = /* @__PURE__ */ P(It, [["__scopeId", "data-v-76d6bc26"]]), Vt = {
|
|
1558
1558
|
class: "SwitchSignUpOrResetPassword"
|
|
1559
|
-
}, $t = /* @__PURE__ */
|
|
1559
|
+
}, $t = /* @__PURE__ */ k({
|
|
1560
1560
|
__name: "AuthkitSwitchSignUpOrResetPassword",
|
|
1561
1561
|
emits: ["switchSignUp", "switchResetPassword"],
|
|
1562
1562
|
setup(i, {
|
|
@@ -1566,10 +1566,10 @@ const D = /* @__PURE__ */ S({
|
|
|
1566
1566
|
function s() {
|
|
1567
1567
|
u("switchSignUp");
|
|
1568
1568
|
}
|
|
1569
|
-
function
|
|
1569
|
+
function o() {
|
|
1570
1570
|
u("switchResetPassword");
|
|
1571
1571
|
}
|
|
1572
|
-
return (
|
|
1572
|
+
return (l, t) => (g(), I("div", Vt, [b("span", null, [t[1] || (t[1] = b("span", null, " 还没有账户?", -1)), a(e(N), {
|
|
1573
1573
|
style: {
|
|
1574
1574
|
padding: "0px"
|
|
1575
1575
|
},
|
|
@@ -1578,20 +1578,20 @@ const D = /* @__PURE__ */ S({
|
|
|
1578
1578
|
default: m(() => t[0] || (t[0] = [z("去注册?")])),
|
|
1579
1579
|
_: 1,
|
|
1580
1580
|
__: [0]
|
|
1581
|
-
})]),
|
|
1581
|
+
})]), a(e(N), {
|
|
1582
1582
|
style: {
|
|
1583
1583
|
padding: "0px"
|
|
1584
1584
|
},
|
|
1585
|
-
onClick:
|
|
1585
|
+
onClick: o
|
|
1586
1586
|
}, {
|
|
1587
1587
|
default: m(() => t[2] || (t[2] = [z(" 忘记密码?")])),
|
|
1588
1588
|
_: 1,
|
|
1589
1589
|
__: [2]
|
|
1590
1590
|
})]));
|
|
1591
1591
|
}
|
|
1592
|
-
}), Ct = /* @__PURE__ */
|
|
1592
|
+
}), Ct = /* @__PURE__ */ P($t, [["__scopeId", "data-v-14e3aab2"]]), xt = {
|
|
1593
1593
|
class: "SignIn"
|
|
1594
|
-
}, qt = /* @__PURE__ */
|
|
1594
|
+
}, qt = /* @__PURE__ */ k({
|
|
1595
1595
|
__name: "AuthkitSignIn",
|
|
1596
1596
|
props: {
|
|
1597
1597
|
size: {
|
|
@@ -1608,30 +1608,30 @@ const D = /* @__PURE__ */ S({
|
|
|
1608
1608
|
setup(i, {
|
|
1609
1609
|
emit: n
|
|
1610
1610
|
}) {
|
|
1611
|
-
const u = n, s = i,
|
|
1611
|
+
const u = n, s = i, o = ve(), l = T(() => !!o.OAuth);
|
|
1612
1612
|
function t() {
|
|
1613
1613
|
u("switchSignUp");
|
|
1614
1614
|
}
|
|
1615
1615
|
function r() {
|
|
1616
1616
|
u("switchResetPassword");
|
|
1617
1617
|
}
|
|
1618
|
-
async function _(
|
|
1619
|
-
u("submit",
|
|
1618
|
+
async function _(c) {
|
|
1619
|
+
u("submit", c);
|
|
1620
1620
|
}
|
|
1621
|
-
return (
|
|
1621
|
+
return (c, p) => (g(), I("div", xt, [S("", !0), a(Ut, {
|
|
1622
1622
|
loading: s.loading,
|
|
1623
1623
|
size: s.size,
|
|
1624
1624
|
onSubmit: _
|
|
1625
|
-
}, null, 8, ["loading", "size"]),
|
|
1625
|
+
}, null, 8, ["loading", "size"]), l.value ? se(c.$slots, "OAuth", {
|
|
1626
1626
|
key: 1
|
|
1627
|
-
}, void 0, !0) :
|
|
1627
|
+
}, void 0, !0) : S("", !0), a(Ct, {
|
|
1628
1628
|
onSwitchSignUp: t,
|
|
1629
1629
|
onSwitchResetPassword: r
|
|
1630
1630
|
})]));
|
|
1631
1631
|
}
|
|
1632
|
-
}), Rt = /* @__PURE__ */
|
|
1632
|
+
}), Rt = /* @__PURE__ */ P(qt, [["__scopeId", "data-v-f52ce3b3"]]), Tt = {
|
|
1633
1633
|
class: "SignUp"
|
|
1634
|
-
}, Lt = /* @__PURE__ */
|
|
1634
|
+
}, Lt = /* @__PURE__ */ k({
|
|
1635
1635
|
__name: "AuthkitSignUp",
|
|
1636
1636
|
props: {
|
|
1637
1637
|
size: {
|
|
@@ -1649,21 +1649,21 @@ const D = /* @__PURE__ */ S({
|
|
|
1649
1649
|
emit: n
|
|
1650
1650
|
}) {
|
|
1651
1651
|
const u = n, s = i;
|
|
1652
|
-
function
|
|
1652
|
+
function o() {
|
|
1653
1653
|
u("switchSignIn");
|
|
1654
1654
|
}
|
|
1655
|
-
async function
|
|
1655
|
+
async function l(t) {
|
|
1656
1656
|
u("submit", t);
|
|
1657
1657
|
}
|
|
1658
|
-
return (t, r) => (g(),
|
|
1658
|
+
return (t, r) => (g(), I("div", Tt, [a(oe, {
|
|
1659
1659
|
size: s.size,
|
|
1660
1660
|
loading: i.loading,
|
|
1661
|
-
onSubmit:
|
|
1662
|
-
}, null, 8, ["size", "loading"]),
|
|
1663
|
-
onSwitchSignIn:
|
|
1661
|
+
onSubmit: l
|
|
1662
|
+
}, null, 8, ["size", "loading"]), a(ue, {
|
|
1663
|
+
onSwitchSignIn: o
|
|
1664
1664
|
})]));
|
|
1665
1665
|
}
|
|
1666
|
-
}), Bt = /* @__PURE__ */
|
|
1666
|
+
}), Bt = /* @__PURE__ */ P(Lt, [["__scopeId", "data-v-058bbbef"]]), Ot = ["src"], Et = /* @__PURE__ */ k({
|
|
1667
1667
|
__name: "AuthkitAuthTitle",
|
|
1668
1668
|
props: {
|
|
1669
1669
|
size: {
|
|
@@ -1683,31 +1683,31 @@ const D = /* @__PURE__ */ S({
|
|
|
1683
1683
|
}
|
|
1684
1684
|
},
|
|
1685
1685
|
setup(i) {
|
|
1686
|
-
const n = i, u = `${n.size}px`, s = `${n.fontSize}px`,
|
|
1687
|
-
currentView:
|
|
1686
|
+
const n = i, u = `${n.size}px`, s = `${n.fontSize}px`, o = `${n.lineHeight}px`, {
|
|
1687
|
+
currentView: l
|
|
1688
1688
|
} = Z(), {
|
|
1689
1689
|
appsData: t
|
|
1690
|
-
} = J(), r = T(() =>
|
|
1691
|
-
return (_,
|
|
1690
|
+
} = J(), r = T(() => l.value === "signIn" ? `${t.value.name}登录` : l.value === "signUp" ? `${t.value.name}账号注册` : l.value === "resetPassword" ? `${t.value.name}密码重置` : "");
|
|
1691
|
+
return (_, c) => (g(), I("div", {
|
|
1692
1692
|
class: "Title",
|
|
1693
1693
|
style: j({
|
|
1694
1694
|
fontSize: s,
|
|
1695
|
-
lineHeight:
|
|
1695
|
+
lineHeight: o
|
|
1696
1696
|
})
|
|
1697
|
-
}, [e(t).applicationLogoUrl ? (g(),
|
|
1697
|
+
}, [e(t).applicationLogoUrl ? (g(), I("img", {
|
|
1698
1698
|
key: 0,
|
|
1699
1699
|
src: e(t).applicationLogoUrl,
|
|
1700
1700
|
srcset: "",
|
|
1701
1701
|
style: j({
|
|
1702
1702
|
width: u
|
|
1703
1703
|
})
|
|
1704
|
-
}, null, 12, Ot)) :
|
|
1704
|
+
}, null, 12, Ot)) : S("", !0), b("span", null, B(r.value), 1), se(_.$slots, "default", {}, void 0, !0)], 4));
|
|
1705
1705
|
}
|
|
1706
|
-
}), de = /* @__PURE__ */
|
|
1706
|
+
}), de = /* @__PURE__ */ P(Et, [["__scopeId", "data-v-8255764a"]]), Nt = {
|
|
1707
1707
|
class: "Auth"
|
|
1708
1708
|
}, Ft = {
|
|
1709
1709
|
class: "body"
|
|
1710
|
-
}, Gt = /* @__PURE__ */
|
|
1710
|
+
}, Gt = /* @__PURE__ */ k({
|
|
1711
1711
|
__name: "AuthkitAuth",
|
|
1712
1712
|
props: {
|
|
1713
1713
|
size: {
|
|
@@ -1724,15 +1724,15 @@ const D = /* @__PURE__ */ S({
|
|
|
1724
1724
|
emit: n
|
|
1725
1725
|
}) {
|
|
1726
1726
|
const u = i, s = n, {
|
|
1727
|
-
signInSubmit:
|
|
1728
|
-
signUpSubmit:
|
|
1727
|
+
signInSubmit: o,
|
|
1728
|
+
signUpSubmit: l,
|
|
1729
1729
|
resetPasswordSubmit: t,
|
|
1730
1730
|
currentView: r,
|
|
1731
1731
|
authSignInLoading: _,
|
|
1732
|
-
authSignUpLoading:
|
|
1732
|
+
authSignUpLoading: c,
|
|
1733
1733
|
resetPasswordLoading: p,
|
|
1734
1734
|
switchSignUp: d,
|
|
1735
|
-
switchResetPassword:
|
|
1735
|
+
switchResetPassword: f,
|
|
1736
1736
|
switchSignIn: v
|
|
1737
1737
|
} = Z(), {
|
|
1738
1738
|
appsAuthPageInfoApi: w
|
|
@@ -1743,40 +1743,40 @@ const D = /* @__PURE__ */ S({
|
|
|
1743
1743
|
function q() {
|
|
1744
1744
|
s("toUserServiceAgreement");
|
|
1745
1745
|
}
|
|
1746
|
-
return w(), (R, C) => (g(),
|
|
1746
|
+
return w(), (R, C) => (g(), I("div", Nt, [i.showTitle ? (g(), h(de, {
|
|
1747
1747
|
key: 0,
|
|
1748
1748
|
size: 32,
|
|
1749
1749
|
"font-size": 20
|
|
1750
|
-
})) :
|
|
1750
|
+
})) : S("", !0), b("div", Ft, [e(r) === "signIn" ? (g(), h(Rt, {
|
|
1751
1751
|
key: 0,
|
|
1752
1752
|
size: u.size,
|
|
1753
1753
|
loading: e(_),
|
|
1754
1754
|
onSwitchSignUp: e(d),
|
|
1755
|
-
onSwitchResetPassword: e(
|
|
1756
|
-
onSubmit: C[0] || (C[0] = (x) => e(
|
|
1755
|
+
onSwitchResetPassword: e(f),
|
|
1756
|
+
onSubmit: C[0] || (C[0] = (x) => e(o)(x))
|
|
1757
1757
|
}, {
|
|
1758
|
-
OAuth: m(() => [
|
|
1758
|
+
OAuth: m(() => [a(mt, {
|
|
1759
1759
|
size: u.size
|
|
1760
1760
|
}, null, 8, ["size"])]),
|
|
1761
1761
|
_: 1
|
|
1762
|
-
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(r) === "signUp" ? (g(),
|
|
1762
|
+
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(r) === "signUp" ? (g(), h(Bt, {
|
|
1763
1763
|
key: 1,
|
|
1764
1764
|
size: u.size,
|
|
1765
|
-
loading: e(
|
|
1765
|
+
loading: e(c),
|
|
1766
1766
|
onSwitchSignIn: e(v),
|
|
1767
|
-
onSubmit: C[1] || (C[1] = (x) => e(
|
|
1768
|
-
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(r) === "resetPassword" ? (g(),
|
|
1767
|
+
onSubmit: C[1] || (C[1] = (x) => e(l)(x))
|
|
1768
|
+
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(r) === "resetPassword" ? (g(), h(wt, {
|
|
1769
1769
|
key: 2,
|
|
1770
1770
|
size: u.size,
|
|
1771
1771
|
loading: e(p),
|
|
1772
1772
|
onSwitchSignIn: e(v),
|
|
1773
1773
|
onSubmit: C[2] || (C[2] = (x) => e(t)(x))
|
|
1774
|
-
}, null, 8, ["size", "loading", "onSwitchSignIn"])) :
|
|
1774
|
+
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : S("", !0), a(kt, {
|
|
1775
1775
|
onToPrivacyPolicy: $,
|
|
1776
1776
|
onToUserServiceAgreement: q
|
|
1777
1777
|
})])]));
|
|
1778
1778
|
}
|
|
1779
|
-
}), Ht = /* @__PURE__ */
|
|
1779
|
+
}), Ht = /* @__PURE__ */ P(Gt, [["__scopeId", "data-v-67d0eb00"]]), Mt = /* @__PURE__ */ k({
|
|
1780
1780
|
__name: "AuthkitAuthModal",
|
|
1781
1781
|
props: {
|
|
1782
1782
|
size: {
|
|
@@ -1796,18 +1796,18 @@ const D = /* @__PURE__ */ S({
|
|
|
1796
1796
|
addSignInCallback: u
|
|
1797
1797
|
} = Z(), {
|
|
1798
1798
|
show: s
|
|
1799
|
-
} =
|
|
1799
|
+
} = Ue(), o = i, l = n;
|
|
1800
1800
|
function t(_) {
|
|
1801
1801
|
_(!0);
|
|
1802
1802
|
}
|
|
1803
1803
|
function r() {
|
|
1804
|
-
s.value = !1,
|
|
1804
|
+
s.value = !1, l("close");
|
|
1805
1805
|
}
|
|
1806
1806
|
return u(() => {
|
|
1807
1807
|
s.value = !1;
|
|
1808
|
-
}), (_,
|
|
1808
|
+
}), (_, c) => (g(), h(e(le), {
|
|
1809
1809
|
visible: e(s),
|
|
1810
|
-
"onUpdate:visible":
|
|
1810
|
+
"onUpdate:visible": c[2] || (c[2] = (p) => ie(s) ? s.value = p : null),
|
|
1811
1811
|
footer: !1,
|
|
1812
1812
|
"mask-closable": !1,
|
|
1813
1813
|
"title-align": "center",
|
|
@@ -1817,15 +1817,17 @@ const D = /* @__PURE__ */ S({
|
|
|
1817
1817
|
onBeforeOk: t,
|
|
1818
1818
|
onClose: r
|
|
1819
1819
|
}, {
|
|
1820
|
-
title: m(() => [
|
|
1821
|
-
default: m(() => [
|
|
1820
|
+
title: m(() => [a(de)]),
|
|
1821
|
+
default: m(() => [a(Ht, {
|
|
1822
1822
|
"show-title": !1,
|
|
1823
|
-
size:
|
|
1823
|
+
size: o.size,
|
|
1824
|
+
onToPrivacyPolicy: c[0] || (c[0] = (p) => l("toPrivacyPolicy")),
|
|
1825
|
+
onToUserServiceAgreement: c[1] || (c[1] = (p) => l("toUserServiceAgreement"))
|
|
1824
1826
|
}, null, 8, ["size"])]),
|
|
1825
1827
|
_: 1
|
|
1826
1828
|
}, 8, ["visible"]));
|
|
1827
1829
|
}
|
|
1828
|
-
}), mi = /* @__PURE__ */
|
|
1830
|
+
}), mi = /* @__PURE__ */ P(Mt, [["__scopeId", "data-v-6fbefff8"]]);
|
|
1829
1831
|
export {
|
|
1830
1832
|
di as A,
|
|
1831
1833
|
oe as E,
|
|
@@ -1839,10 +1841,10 @@ export {
|
|
|
1839
1841
|
mi as c,
|
|
1840
1842
|
Rt as d,
|
|
1841
1843
|
Bt as e,
|
|
1842
|
-
|
|
1844
|
+
Ut as f,
|
|
1843
1845
|
ue as g,
|
|
1844
1846
|
Ct as h,
|
|
1845
|
-
|
|
1847
|
+
kt as i,
|
|
1846
1848
|
Le as j,
|
|
1847
1849
|
Y as k,
|
|
1848
1850
|
Ye as l,
|