@huyooo/ui 0.8.0 → 0.8.2
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-CX6-EB-D.js → AuthkitAuthModal-DPf1AlaQ.js} +363 -354
- package/dist/{AuthkitSignInPhone-D3hR0dGZ.js → AuthkitSignInPhone-CWzkKKL0.js} +4 -4
- package/dist/{Clipboard-CI4IUrMw.js → Clipboard-D9v7JOBm.js} +14 -13
- package/dist/{Contact-mQa-gB4k.js → Contact-ytZiAQRw.js} +3 -3
- package/dist/{CustomTable-D8ubfrWL.js → CustomTable-BCOwLyRJ.js} +2 -2
- package/dist/{FeedbackItem-qaxaQ8gu.js → FeedbackItem-i0oANWbH.js} +4 -4
- package/dist/{FeedbackModal-CUSOWVn5.js → FeedbackModal-DHWN4Jhy.js} +6 -6
- package/dist/{LandingPageSectionTabs-BOX6nVdh.js → LandingPageSectionTabs-DYNXKElT.js} +2 -2
- package/dist/{MessageHandle-WcCeYl7E.js → MessageHandle-42tZkEyh.js} +3 -3
- package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BwZM2SQn.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-Dt5A9Six.js} +2 -2
- package/dist/{PaySubscriptions-DO2W3Y5v.js → PaySubscriptions-CX3DhX82.js} +4 -4
- package/dist/{ReferrerReferees-CXVi2pUl.js → ReferrerReferees-CdAsYLZl.js} +17 -17
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-CY_Pk57x.js → Upload.vue_vue_type_script_setup_true_lang-7AFuqo0A.js} +2 -2
- package/dist/{UserAccountMenu-CHkdka0u.js → UserAccountMenu-DBVdpUn8.js} +8 -8
- package/dist/{WidthContainer-BBoIS50Z.js → WidthContainer-CFNPAWZ8.js} +10 -10
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/apiClients-myKy30Xh.js +167 -0
- package/dist/authkit.js +6 -6
- package/dist/common/globalConfig.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/composables.js +9 -9
- package/dist/feedback.js +3 -3
- package/dist/{index-4_tj9bS1.js → index-Bb-d5pBq.js} +1 -1
- package/dist/index.js +26 -26
- package/dist/landingPage.js +1 -1
- package/dist/message.js +3 -3
- package/dist/pay.js +1 -1
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/api/auth.generated.d.ts +822 -594
- package/dist/types/api/billing.generated.d.ts +72 -0
- package/dist/types/api/ones.generated.d.ts +0 -379
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-gn2zm_NY.js → useAuthkitAppsAuthPageInfo-Bb7RIaTy.js} +1 -1
- package/dist/{useAuthkitCreateAndUpdate-yNpIyVXV.js → useAuthkitCreateAndUpdate-DXdMyzQQ.js} +2 -2
- package/dist/{useAuthkitUsersProfile-D32zPSn2.js → useAuthkitUsersProfile-4plbUlY5.js} +1 -1
- package/dist/{useDownloads-MF9rK9J_.js → useDownloads-gcrEJA6i.js} +2 -2
- package/dist/{useMessageNotifications-CCfM6W6J.js → useMessageNotifications-Bph752i8.js} +1 -1
- package/dist/{useSEO-DivOwPWc.js → useSEO-D1NT53Rv.js} +2 -2
- package/dist/{useTableHandle-DpemWl6Y.js → useTableHandle-DrYIPjL5.js} +2 -2
- package/dist/{useUploadCos-BVvRc0BW.js → useUploadCos-F3oBTo2B.js} +2 -2
- package/dist/user.js +1 -1
- package/package.json +2 -2
- package/dist/apiClients-CChPISR0.js +0 -1805
- package/dist/index-96pA3ONI.js +0 -30
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import "./index-96pA3ONI.js";
|
|
2
1
|
/* empty css */
|
|
3
2
|
/* empty css */
|
|
4
|
-
import { defineComponent as V, computed as N, createElementBlock as P, openBlock as g, normalizeStyle as ie, normalizeClass as _e, createElementVNode as z, ref as w, createBlock as k, unref as e, withCtx as a, createVNode as i, createTextVNode as _, onMounted as K, onUnmounted as oe, withDirectives as be, toDisplayString as L, vShow as ke, Fragment as G, createCommentVNode as S, renderList as ze, isRef as re, useSlots as Se, renderSlot as ue } from "vue";
|
|
5
|
-
import { Form as H, FormItem as I, Avatar as de, Input as C, Textarea as Ie, Button as A, Message as F, Alert as D, Space as Y, InputPassword as Ve, Result as Ae, Modal as me, Divider as Pe, Link as M } from "@arco-design/web-vue";
|
|
6
3
|
/* empty css */
|
|
7
|
-
import {
|
|
4
|
+
import { defineComponent as V, computed as N, createElementBlock as U, openBlock as g, normalizeStyle as ie, normalizeClass as _e, createElementVNode as z, ref as w, createBlock as k, unref as e, withCtx as a, createVNode as i, createTextVNode as _, onMounted as K, onUnmounted as oe, withDirectives as be, toDisplayString as B, vShow as ke, Fragment as M, createCommentVNode as S, renderList as ze, isRef as re, useSlots as Se, renderSlot as ue } from "vue";
|
|
5
|
+
import { Form as H, FormItem as I, Avatar as de, Input as x, Textarea as Ie, Button as A, Message as F, Alert as D, Space as Y, InputPassword as Ve, Result as Ae, Modal as me, Divider as Pe, Link as G } from "@arco-design/web-vue";
|
|
8
6
|
/* empty css */
|
|
9
|
-
import { u as
|
|
7
|
+
import { c as R, g as j, h as ce, u as Ue } from "./apiClients-myKy30Xh.js";
|
|
8
|
+
/* empty css */
|
|
9
|
+
import { u as $e } from "./useUploadCos-F3oBTo2B.js";
|
|
10
10
|
import { _ as Ce, g as xe, i as qe } from "./plugin-vue_export-helper-LjDO2Zua.js";
|
|
11
11
|
import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
import { a as Z, u as J } from "./useAuthkitUsersProfile-
|
|
12
|
+
import { a as Z, u as J } from "./useAuthkitUsersProfile-4plbUlY5.js";
|
|
13
13
|
import { M as Te } from "./Menu-H-LxepvQ.js";
|
|
14
|
-
import { u as Re } from "./useAuthkitCreateAndUpdate-
|
|
15
|
-
import { u as se } from "./useAuthkitAppsAuthPageInfo-
|
|
14
|
+
import { u as Re } from "./useAuthkitCreateAndUpdate-DXdMyzQQ.js";
|
|
15
|
+
import { u as se } from "./useAuthkitAppsAuthPageInfo-Bb7RIaTy.js";
|
|
16
16
|
import { Icon as Le } from "@iconify/vue";
|
|
17
17
|
const Be = V({
|
|
18
18
|
name: "IconCamera",
|
|
@@ -58,8 +58,8 @@ const Be = V({
|
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
}), Oe = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
61
|
-
function Ee(o, u, d, l, n,
|
|
62
|
-
return g(),
|
|
61
|
+
function Ee(o, u, d, l, n, c) {
|
|
62
|
+
return g(), U("svg", {
|
|
63
63
|
viewBox: "0 0 48 48",
|
|
64
64
|
fill: "none",
|
|
65
65
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -101,45 +101,45 @@ const De = Object.assign(ee, {
|
|
|
101
101
|
description: "",
|
|
102
102
|
avatar: "",
|
|
103
103
|
avatarUrl: ""
|
|
104
|
-
}),
|
|
104
|
+
}), c = w(!1), t = w(), s = w(!1);
|
|
105
105
|
async function y() {
|
|
106
106
|
s.value = !0;
|
|
107
107
|
const {
|
|
108
108
|
data: r
|
|
109
|
-
} = await
|
|
109
|
+
} = await R.users.profile.post({});
|
|
110
110
|
s.value = !1, r && (n.value.id = r.id, n.value.nickname = r.nickname, n.value.description = r.description, n.value.avatar = r.avatar, n.value.avatarUrl = r.avatarUrl);
|
|
111
111
|
}
|
|
112
|
-
async function
|
|
112
|
+
async function f() {
|
|
113
113
|
if (!await t.value.validate()) {
|
|
114
114
|
s.value = !0;
|
|
115
|
-
const
|
|
115
|
+
const m = {
|
|
116
116
|
id: n.value.id,
|
|
117
117
|
nickname: n.value.nickname,
|
|
118
118
|
description: n.value.description,
|
|
119
119
|
avatar: n.value.avatar
|
|
120
120
|
}, {
|
|
121
|
-
data:
|
|
121
|
+
data: p,
|
|
122
122
|
error: h
|
|
123
|
-
} = await
|
|
124
|
-
s.value = !1, !h &&
|
|
123
|
+
} = await R.users.update.baseInfo.post(m);
|
|
124
|
+
s.value = !1, !h && p && (F.success("更新成功"), n.value.avatarUrl = p.avatarUrl, d("submit"));
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
y();
|
|
128
|
-
const
|
|
128
|
+
const v = () => {
|
|
129
129
|
const {
|
|
130
130
|
uploadFile: r
|
|
131
|
-
} = $e(),
|
|
132
|
-
|
|
133
|
-
var
|
|
134
|
-
const
|
|
135
|
-
if (
|
|
136
|
-
|
|
131
|
+
} = $e(), m = document.createElement("input");
|
|
132
|
+
m.type = "file", m.accept = "image/*", m.style.display = "none", document.body.append(m), m.addEventListener("change", async (p) => {
|
|
133
|
+
var P;
|
|
134
|
+
const C = (P = p.target.files) == null ? void 0 : P[0];
|
|
135
|
+
if (C) {
|
|
136
|
+
c.value = !0;
|
|
137
137
|
try {
|
|
138
138
|
r({
|
|
139
139
|
bucketId: j.avatarBucketId,
|
|
140
|
-
file:
|
|
141
|
-
onFileFinish(
|
|
142
|
-
|
|
140
|
+
file: C,
|
|
141
|
+
onFileFinish(q, L, E) {
|
|
142
|
+
c.value = !0;
|
|
143
143
|
const W = {
|
|
144
144
|
id: n.value.id,
|
|
145
145
|
nickname: n.value.nickname,
|
|
@@ -149,22 +149,22 @@ const De = Object.assign(ee, {
|
|
|
149
149
|
(async () => {
|
|
150
150
|
const {
|
|
151
151
|
error: X
|
|
152
|
-
} = await
|
|
153
|
-
|
|
152
|
+
} = await R.users.update.baseInfo.post(W);
|
|
153
|
+
c.value = !1, X || (F.success("更新成功"), y(), d("submit"));
|
|
154
154
|
})();
|
|
155
155
|
},
|
|
156
|
-
onError(
|
|
157
|
-
console.error("上传图片失败"),
|
|
156
|
+
onError(q) {
|
|
157
|
+
console.error("上传图片失败"), c.value = !1;
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
|
-
} catch (
|
|
161
|
-
console.error("上传图片失败",
|
|
160
|
+
} catch (q) {
|
|
161
|
+
console.error("上传图片失败", q), c.value = !1;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
|
|
165
|
-
}),
|
|
164
|
+
m.remove();
|
|
165
|
+
}), m.click();
|
|
166
166
|
};
|
|
167
|
-
return (r,
|
|
167
|
+
return (r, m) => (g(), k(e(H), {
|
|
168
168
|
ref_key: "formRef",
|
|
169
169
|
ref: t,
|
|
170
170
|
model: n.value,
|
|
@@ -186,7 +186,7 @@ const De = Object.assign(ee, {
|
|
|
186
186
|
"trigger-icon-style": {
|
|
187
187
|
color: "#3491FA"
|
|
188
188
|
},
|
|
189
|
-
onClick:
|
|
189
|
+
onClick: v
|
|
190
190
|
}, {
|
|
191
191
|
"trigger-icon": a(() => [i(e(De))]),
|
|
192
192
|
_: 1
|
|
@@ -200,9 +200,9 @@ const De = Object.assign(ee, {
|
|
|
200
200
|
message: "请输入昵称"
|
|
201
201
|
}]
|
|
202
202
|
}, {
|
|
203
|
-
default: a(() => [i(e(
|
|
203
|
+
default: a(() => [i(e(x), {
|
|
204
204
|
modelValue: n.value.nickname,
|
|
205
|
-
"onUpdate:modelValue":
|
|
205
|
+
"onUpdate:modelValue": m[0] || (m[0] = (p) => n.value.nickname = p),
|
|
206
206
|
placeholder: "请输入昵称"
|
|
207
207
|
}, null, 8, ["modelValue"])]),
|
|
208
208
|
_: 1
|
|
@@ -216,7 +216,7 @@ const De = Object.assign(ee, {
|
|
|
216
216
|
}, {
|
|
217
217
|
default: a(() => [i(e(Ie), {
|
|
218
218
|
modelValue: n.value.description,
|
|
219
|
-
"onUpdate:modelValue":
|
|
219
|
+
"onUpdate:modelValue": m[1] || (m[1] = (p) => n.value.description = p),
|
|
220
220
|
placeholder: "请输入描述",
|
|
221
221
|
"allow-clear": "",
|
|
222
222
|
"auto-size": {
|
|
@@ -232,9 +232,9 @@ const De = Object.assign(ee, {
|
|
|
232
232
|
default: a(() => [z("div", Ne, [i(e(A), {
|
|
233
233
|
type: "primary",
|
|
234
234
|
loading: s.value,
|
|
235
|
-
onClick:
|
|
235
|
+
onClick: f
|
|
236
236
|
}, {
|
|
237
|
-
default: a(() => [...
|
|
237
|
+
default: a(() => [...m[2] || (m[2] = [_(" 提交 ", -1)])]),
|
|
238
238
|
_: 1
|
|
239
239
|
}, 8, ["loading"])])]),
|
|
240
240
|
_: 1
|
|
@@ -242,7 +242,7 @@ const De = Object.assign(ee, {
|
|
|
242
242
|
_: 1
|
|
243
243
|
}, 8, ["model", "size"]));
|
|
244
244
|
}
|
|
245
|
-
}), He = /* @__PURE__ */ $(Fe, [["__scopeId", "data-v-7815fc15"]]),
|
|
245
|
+
}), He = /* @__PURE__ */ $(Fe, [["__scopeId", "data-v-7815fc15"]]), Me = /* @__PURE__ */ V({
|
|
246
246
|
__name: "AuthkitSendVerifyCode",
|
|
247
247
|
props: {
|
|
248
248
|
size: {
|
|
@@ -260,37 +260,37 @@ const De = Object.assign(ee, {
|
|
|
260
260
|
expose: u,
|
|
261
261
|
emit: d
|
|
262
262
|
}) {
|
|
263
|
-
const l = d, n = o,
|
|
263
|
+
const l = d, n = o, c = w(!1);
|
|
264
264
|
let t;
|
|
265
|
-
const s = w(0), y = N(() => s.value.toString().padStart(2, "0")),
|
|
266
|
-
|
|
265
|
+
const s = w(0), y = N(() => s.value.toString().padStart(2, "0")), f = N(() => s.value > 0), v = () => {
|
|
266
|
+
c.value && (s.value <= 0 ? (clearInterval(t), c.value = !1) : s.value--);
|
|
267
267
|
};
|
|
268
268
|
function r() {
|
|
269
269
|
l("send");
|
|
270
270
|
}
|
|
271
|
-
function
|
|
272
|
-
s.value = 60,
|
|
271
|
+
function m() {
|
|
272
|
+
s.value = 60, c.value = !0, t && clearInterval(t), t = setInterval(v, 1e3);
|
|
273
273
|
}
|
|
274
274
|
return K(() => {
|
|
275
275
|
}), u({
|
|
276
|
-
startCountFn:
|
|
276
|
+
startCountFn: m
|
|
277
277
|
}), oe(() => {
|
|
278
278
|
t && clearInterval(t);
|
|
279
|
-
}), (
|
|
279
|
+
}), (p, h) => (g(), k(e(A), {
|
|
280
280
|
class: "OAuthItem",
|
|
281
281
|
type: "primary",
|
|
282
282
|
size: n.size,
|
|
283
|
-
disabled:
|
|
283
|
+
disabled: f.value,
|
|
284
284
|
loading: n.loading,
|
|
285
285
|
onClick: r
|
|
286
286
|
}, {
|
|
287
287
|
default: a(() => [h[0] || (h[0] = z("span", null, " 发送验证码", -1)), be(z("span", {
|
|
288
288
|
class: "verify-code-timer"
|
|
289
|
-
},
|
|
289
|
+
}, B(`(${y.value})`), 513), [[ke, f.value]])]),
|
|
290
290
|
_: 1
|
|
291
291
|
}, 8, ["size", "disabled", "loading"]));
|
|
292
292
|
}
|
|
293
|
-
}), ae = /* @__PURE__ */ $(
|
|
293
|
+
}), ae = /* @__PURE__ */ $(Me, [["__scopeId", "data-v-2883dc6d"]]), Ge = {
|
|
294
294
|
class: "sendVerifyCodeItem"
|
|
295
295
|
}, je = {
|
|
296
296
|
class: "handle"
|
|
@@ -311,36 +311,36 @@ const De = Object.assign(ee, {
|
|
|
311
311
|
setup(o, {
|
|
312
312
|
emit: u
|
|
313
313
|
}) {
|
|
314
|
-
const d = u, l = o, n = N(() => ce(l.email)),
|
|
314
|
+
const d = u, l = o, n = N(() => ce(l.email)), c = w(), t = w(!1), s = w(!1), y = w(), f = w({
|
|
315
315
|
userToken: void 0,
|
|
316
316
|
emailVerifyId: void 0
|
|
317
317
|
});
|
|
318
|
-
async function
|
|
318
|
+
async function v() {
|
|
319
319
|
t.value = !0;
|
|
320
320
|
const {
|
|
321
|
-
data:
|
|
322
|
-
} = await
|
|
321
|
+
data: m
|
|
322
|
+
} = await R.verify.email.retry.post({
|
|
323
323
|
email: l.email
|
|
324
324
|
});
|
|
325
|
-
t.value = !1,
|
|
325
|
+
t.value = !1, m && (f.value.emailVerifyId = m.emailVerifyId, c.value.startCountFn());
|
|
326
326
|
}
|
|
327
327
|
async function r() {
|
|
328
328
|
if (!await y.value.validate(["userToken"])) {
|
|
329
329
|
s.value = !0;
|
|
330
|
-
const
|
|
330
|
+
const p = {
|
|
331
331
|
email: l.email,
|
|
332
|
-
userToken:
|
|
333
|
-
emailVerifyId:
|
|
332
|
+
userToken: f.value.userToken,
|
|
333
|
+
emailVerifyId: f.value.emailVerifyId
|
|
334
334
|
}, {
|
|
335
335
|
error: h
|
|
336
|
-
} = await
|
|
336
|
+
} = await R.verify.email.post(p);
|
|
337
337
|
s.value = !1, h || d("next");
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
return (
|
|
340
|
+
return (m, p) => (g(), k(e(H), {
|
|
341
341
|
ref_key: "formRef",
|
|
342
342
|
ref: y,
|
|
343
|
-
model:
|
|
343
|
+
model: f.value,
|
|
344
344
|
"auto-label-width": "",
|
|
345
345
|
size: l.size
|
|
346
346
|
}, {
|
|
@@ -355,7 +355,7 @@ const De = Object.assign(ee, {
|
|
|
355
355
|
message: "请输入有效的邮箱"
|
|
356
356
|
}]
|
|
357
357
|
}, {
|
|
358
|
-
default: a(() => [_(
|
|
358
|
+
default: a(() => [_(B(n.value), 1)]),
|
|
359
359
|
_: 1
|
|
360
360
|
}), i(e(I), {
|
|
361
361
|
field: "userToken",
|
|
@@ -366,19 +366,19 @@ const De = Object.assign(ee, {
|
|
|
366
366
|
message: "请输入验证码"
|
|
367
367
|
}]
|
|
368
368
|
}, {
|
|
369
|
-
default: a(() => [z("div",
|
|
370
|
-
modelValue:
|
|
371
|
-
"onUpdate:modelValue":
|
|
369
|
+
default: a(() => [z("div", Ge, [i(e(x), {
|
|
370
|
+
modelValue: f.value.userToken,
|
|
371
|
+
"onUpdate:modelValue": p[0] || (p[0] = (h) => f.value.userToken = h),
|
|
372
372
|
placeholder: "请输入验证码"
|
|
373
373
|
}, null, 8, ["modelValue"]), i(ae, {
|
|
374
374
|
ref_key: "SendVerifyCodeRef",
|
|
375
|
-
ref:
|
|
375
|
+
ref: c,
|
|
376
376
|
size: l.size,
|
|
377
377
|
loading: t.value,
|
|
378
378
|
style: {
|
|
379
379
|
"margin-left": "10px"
|
|
380
380
|
},
|
|
381
|
-
onSend:
|
|
381
|
+
onSend: v
|
|
382
382
|
}, null, 8, ["size", "loading"])])]),
|
|
383
383
|
_: 1
|
|
384
384
|
}), i(e(I), {
|
|
@@ -391,7 +391,7 @@ const De = Object.assign(ee, {
|
|
|
391
391
|
type: "primary",
|
|
392
392
|
onClick: r
|
|
393
393
|
}, {
|
|
394
|
-
default: a(() => [...
|
|
394
|
+
default: a(() => [...p[1] || (p[1] = [_(" 提交 ", -1)])]),
|
|
395
395
|
_: 1
|
|
396
396
|
}, 8, ["loading"])])]),
|
|
397
397
|
_: 1
|
|
@@ -413,7 +413,7 @@ const De = Object.assign(ee, {
|
|
|
413
413
|
setup(o, {
|
|
414
414
|
emit: u
|
|
415
415
|
}) {
|
|
416
|
-
const d = u, l = w(!1), n = w(),
|
|
416
|
+
const d = u, l = w(!1), n = w(), c = o, t = w({
|
|
417
417
|
oldPassword: "",
|
|
418
418
|
password: "",
|
|
419
419
|
confirmPassword: ""
|
|
@@ -421,20 +421,20 @@ const De = Object.assign(ee, {
|
|
|
421
421
|
async function s() {
|
|
422
422
|
if (!await n.value.validate()) {
|
|
423
423
|
l.value = !0;
|
|
424
|
-
const
|
|
424
|
+
const f = {
|
|
425
425
|
password: t.value.password
|
|
426
426
|
}, {
|
|
427
|
-
error:
|
|
428
|
-
} = await
|
|
429
|
-
l.value = !1,
|
|
427
|
+
error: v
|
|
428
|
+
} = await R.users.update.password.post(f);
|
|
429
|
+
l.value = !1, v || d("submit", f);
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
return (y,
|
|
432
|
+
return (y, f) => (g(), k(e(H), {
|
|
433
433
|
ref_key: "formRef",
|
|
434
434
|
ref: n,
|
|
435
435
|
model: t.value,
|
|
436
436
|
"auto-label-width": "",
|
|
437
|
-
size:
|
|
437
|
+
size: c.size
|
|
438
438
|
}, {
|
|
439
439
|
default: a(() => [i(e(I), {
|
|
440
440
|
field: "oldPassword",
|
|
@@ -445,9 +445,9 @@ const De = Object.assign(ee, {
|
|
|
445
445
|
message: "请输入当前密码"
|
|
446
446
|
}]
|
|
447
447
|
}, {
|
|
448
|
-
default: a(() => [i(e(
|
|
448
|
+
default: a(() => [i(e(x), {
|
|
449
449
|
modelValue: t.value.oldPassword,
|
|
450
|
-
"onUpdate:modelValue":
|
|
450
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => t.value.oldPassword = v),
|
|
451
451
|
placeholder: "请输入当前密码",
|
|
452
452
|
type: "password"
|
|
453
453
|
}, null, 8, ["modelValue"])]),
|
|
@@ -464,9 +464,9 @@ const De = Object.assign(ee, {
|
|
|
464
464
|
message: "新密码不能少于10字符"
|
|
465
465
|
}]
|
|
466
466
|
}, {
|
|
467
|
-
default: a(() => [i(e(
|
|
467
|
+
default: a(() => [i(e(x), {
|
|
468
468
|
modelValue: t.value.password,
|
|
469
|
-
"onUpdate:modelValue":
|
|
469
|
+
"onUpdate:modelValue": f[1] || (f[1] = (v) => t.value.password = v),
|
|
470
470
|
placeholder: "请输入新密码",
|
|
471
471
|
type: "password"
|
|
472
472
|
}, null, 8, ["modelValue"])]),
|
|
@@ -482,14 +482,14 @@ const De = Object.assign(ee, {
|
|
|
482
482
|
minLength: 10,
|
|
483
483
|
message: "确认密码不能少于10字符"
|
|
484
484
|
}, {
|
|
485
|
-
validator: (
|
|
486
|
-
|
|
485
|
+
validator: (v, r) => {
|
|
486
|
+
v !== t.value.password ? r("两次密码输入不一致,请重新输入") : r();
|
|
487
487
|
}
|
|
488
488
|
}]
|
|
489
489
|
}, {
|
|
490
|
-
default: a(() => [i(e(
|
|
490
|
+
default: a(() => [i(e(x), {
|
|
491
491
|
modelValue: t.value.confirmPassword,
|
|
492
|
-
"onUpdate:modelValue":
|
|
492
|
+
"onUpdate:modelValue": f[2] || (f[2] = (v) => t.value.confirmPassword = v),
|
|
493
493
|
placeholder: "请输入确认密码密码",
|
|
494
494
|
type: "password"
|
|
495
495
|
}, null, 8, ["modelValue"])]),
|
|
@@ -504,7 +504,7 @@ const De = Object.assign(ee, {
|
|
|
504
504
|
loading: l.value,
|
|
505
505
|
onClick: s
|
|
506
506
|
}, {
|
|
507
|
-
default: a(() => [...
|
|
507
|
+
default: a(() => [...f[3] || (f[3] = [_(" 提交 ", -1)])]),
|
|
508
508
|
_: 1
|
|
509
509
|
}, 8, ["loading"])])]),
|
|
510
510
|
_: 1
|
|
@@ -526,58 +526,58 @@ const De = Object.assign(ee, {
|
|
|
526
526
|
loading: d,
|
|
527
527
|
fetchUserProfile: l,
|
|
528
528
|
isLoggedIn: n
|
|
529
|
-
} = Z(),
|
|
530
|
-
function s(
|
|
531
|
-
|
|
529
|
+
} = Z(), c = w("hidden"), t = o;
|
|
530
|
+
function s(v) {
|
|
531
|
+
c.value = v;
|
|
532
532
|
}
|
|
533
|
-
function y(
|
|
534
|
-
F.success("密码修改成功"),
|
|
533
|
+
function y(v) {
|
|
534
|
+
F.success("密码修改成功"), c.value = "hidden", l();
|
|
535
535
|
}
|
|
536
|
-
function
|
|
537
|
-
|
|
536
|
+
function f() {
|
|
537
|
+
c.value = "update";
|
|
538
538
|
}
|
|
539
539
|
return K(() => {
|
|
540
540
|
n.value && !u.value && l();
|
|
541
|
-
}), (
|
|
542
|
-
var
|
|
543
|
-
return g(),
|
|
541
|
+
}), (v, r) => {
|
|
542
|
+
var m, p, h, C;
|
|
543
|
+
return g(), U(M, null, [!((m = e(u)) != null && m.email) && !((p = e(u)) != null && p.phone) ? (g(), k(e(D), {
|
|
544
544
|
key: 0,
|
|
545
545
|
title: "去绑定邮箱"
|
|
546
546
|
}, {
|
|
547
547
|
action: a(() => [i(e(A), {
|
|
548
548
|
size: t.size,
|
|
549
549
|
type: "primary",
|
|
550
|
-
onClick: r[0] || (r[0] = (
|
|
550
|
+
onClick: r[0] || (r[0] = (P) => s("update"))
|
|
551
551
|
}, {
|
|
552
552
|
default: a(() => [...r[2] || (r[2] = [_(" 去绑定邮箱 ", -1)])]),
|
|
553
553
|
_: 1
|
|
554
554
|
}, 8, ["size"])]),
|
|
555
555
|
default: a(() => [r[3] || (r[3] = _(" 请先去绑定邮箱或者手机号码,才能设置密码 ", -1))]),
|
|
556
556
|
_: 1
|
|
557
|
-
})) : S("", !0), (h = e(u)) != null && h.email &&
|
|
557
|
+
})) : S("", !0), (h = e(u)) != null && h.email && c.value === "hidden" ? (g(), k(e(D), {
|
|
558
558
|
key: 1,
|
|
559
559
|
title: "更改密码"
|
|
560
560
|
}, {
|
|
561
561
|
action: a(() => [i(e(A), {
|
|
562
562
|
size: t.size,
|
|
563
563
|
type: "primary",
|
|
564
|
-
onClick: r[1] || (r[1] = (
|
|
564
|
+
onClick: r[1] || (r[1] = (P) => s("verify"))
|
|
565
565
|
}, {
|
|
566
566
|
default: a(() => [...r[4] || (r[4] = [_("更改密码", -1)])]),
|
|
567
567
|
_: 1
|
|
568
568
|
}, 8, ["size"])]),
|
|
569
569
|
default: a(() => [r[5] || (r[5] = _(" 为了账户安全修改密码前会先验证身份 ", -1))]),
|
|
570
570
|
_: 1
|
|
571
|
-
})) : S("", !0),
|
|
571
|
+
})) : S("", !0), c.value === "update" ? (g(), k(Je, {
|
|
572
572
|
key: 2,
|
|
573
573
|
size: t.size,
|
|
574
574
|
loading: e(d),
|
|
575
575
|
onSubmit: y
|
|
576
|
-
}, null, 8, ["size", "loading"])) : S("", !0),
|
|
576
|
+
}, null, 8, ["size", "loading"])) : S("", !0), c.value === "verify" ? (g(), k(le, {
|
|
577
577
|
key: 3,
|
|
578
578
|
size: t.size,
|
|
579
|
-
email: (
|
|
580
|
-
onNext:
|
|
579
|
+
email: (C = e(u)) == null ? void 0 : C.email,
|
|
580
|
+
onNext: f
|
|
581
581
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
582
582
|
};
|
|
583
583
|
}
|
|
@@ -604,7 +604,7 @@ const De = Object.assign(ee, {
|
|
|
604
604
|
setup(o, {
|
|
605
605
|
emit: u
|
|
606
606
|
}) {
|
|
607
|
-
const d = u, l = o, n = w(),
|
|
607
|
+
const d = u, l = o, n = w(), c = w(!1), t = w(), s = w({
|
|
608
608
|
email: void 0,
|
|
609
609
|
userToken: void 0,
|
|
610
610
|
emailVerifyId: void 0,
|
|
@@ -614,21 +614,21 @@ const De = Object.assign(ee, {
|
|
|
614
614
|
});
|
|
615
615
|
async function y() {
|
|
616
616
|
if (!await t.value.validateField(["email"])) {
|
|
617
|
-
|
|
617
|
+
c.value = !0;
|
|
618
618
|
const {
|
|
619
619
|
data: r
|
|
620
|
-
} = await
|
|
620
|
+
} = await R.verify.email.retry.post({
|
|
621
621
|
email: s.value.email
|
|
622
622
|
});
|
|
623
|
-
|
|
623
|
+
c.value = !1, r && (s.value.emailVerifyId = r.emailVerifyId, n.value.startCountFn());
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
|
-
async function
|
|
627
|
-
t.value.validate().then((
|
|
628
|
-
|
|
626
|
+
async function f() {
|
|
627
|
+
t.value.validate().then((v) => {
|
|
628
|
+
v || d("submit", s.value);
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
|
-
return (
|
|
631
|
+
return (v, r) => (g(), U("div", Xe, [i(e(H), {
|
|
632
632
|
ref_key: "formRef",
|
|
633
633
|
ref: t,
|
|
634
634
|
model: s.value,
|
|
@@ -647,9 +647,9 @@ const De = Object.assign(ee, {
|
|
|
647
647
|
message: "请输入有效的邮箱"
|
|
648
648
|
}]
|
|
649
649
|
}, {
|
|
650
|
-
default: a(() => [i(e(
|
|
650
|
+
default: a(() => [i(e(x), {
|
|
651
651
|
modelValue: s.value.email,
|
|
652
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
652
|
+
"onUpdate:modelValue": r[0] || (r[0] = (m) => s.value.email = m),
|
|
653
653
|
placeholder: "请输入邮箱",
|
|
654
654
|
autocomplete: "email username",
|
|
655
655
|
type: "email"
|
|
@@ -664,16 +664,16 @@ const De = Object.assign(ee, {
|
|
|
664
664
|
message: "请输入验证码"
|
|
665
665
|
}]
|
|
666
666
|
}, {
|
|
667
|
-
default: a(() => [z("div", Ye, [i(e(
|
|
667
|
+
default: a(() => [z("div", Ye, [i(e(x), {
|
|
668
668
|
modelValue: s.value.userToken,
|
|
669
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
669
|
+
"onUpdate:modelValue": r[1] || (r[1] = (m) => s.value.userToken = m),
|
|
670
670
|
placeholder: "请输入验证码",
|
|
671
671
|
autocomplete: "one-time-code"
|
|
672
672
|
}, null, 8, ["modelValue"]), i(ae, {
|
|
673
673
|
ref_key: "SendVerifyCodeRef",
|
|
674
674
|
ref: n,
|
|
675
675
|
size: l.size,
|
|
676
|
-
loading:
|
|
676
|
+
loading: c.value,
|
|
677
677
|
style: {
|
|
678
678
|
"margin-left": "10px"
|
|
679
679
|
},
|
|
@@ -692,9 +692,9 @@ const De = Object.assign(ee, {
|
|
|
692
692
|
message: "密码不能少于10字符"
|
|
693
693
|
}]
|
|
694
694
|
}, {
|
|
695
|
-
default: a(() => [i(e(
|
|
695
|
+
default: a(() => [i(e(x), {
|
|
696
696
|
modelValue: s.value.password,
|
|
697
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
697
|
+
"onUpdate:modelValue": r[2] || (r[2] = (m) => s.value.password = m),
|
|
698
698
|
placeholder: "请输入密码",
|
|
699
699
|
type: "password",
|
|
700
700
|
autocomplete: "new-password"
|
|
@@ -711,14 +711,14 @@ const De = Object.assign(ee, {
|
|
|
711
711
|
minLength: 10,
|
|
712
712
|
message: "确认密码不能少于10字符"
|
|
713
713
|
}, {
|
|
714
|
-
validator: (
|
|
715
|
-
|
|
714
|
+
validator: (m, p) => {
|
|
715
|
+
m !== s.value.password ? p("两次密码输入不一致,请重新输入") : p();
|
|
716
716
|
}
|
|
717
717
|
}]
|
|
718
718
|
}, {
|
|
719
|
-
default: a(() => [i(e(
|
|
719
|
+
default: a(() => [i(e(x), {
|
|
720
720
|
modelValue: s.value.confirmPassword,
|
|
721
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
|
721
|
+
"onUpdate:modelValue": r[3] || (r[3] = (m) => s.value.confirmPassword = m),
|
|
722
722
|
placeholder: "请输入确认密码密码",
|
|
723
723
|
type: "password",
|
|
724
724
|
autocomplete: "new-password"
|
|
@@ -733,9 +733,9 @@ const De = Object.assign(ee, {
|
|
|
733
733
|
message: "请输入邀请人ID"
|
|
734
734
|
}]
|
|
735
735
|
}, {
|
|
736
|
-
default: a(() => [i(e(
|
|
736
|
+
default: a(() => [i(e(x), {
|
|
737
737
|
modelValue: s.value.referrerId,
|
|
738
|
-
"onUpdate:modelValue": r[4] || (r[4] = (
|
|
738
|
+
"onUpdate:modelValue": r[4] || (r[4] = (m) => s.value.referrerId = m),
|
|
739
739
|
placeholder: "邀请人ID(可选)",
|
|
740
740
|
autocomplete: "off"
|
|
741
741
|
}, null, 8, ["modelValue"])]),
|
|
@@ -745,7 +745,7 @@ const De = Object.assign(ee, {
|
|
|
745
745
|
loading: l.loading,
|
|
746
746
|
long: "",
|
|
747
747
|
size: l.size,
|
|
748
|
-
onClick:
|
|
748
|
+
onClick: f
|
|
749
749
|
}, {
|
|
750
750
|
default: a(() => [...r[5] || (r[5] = [_(" 提交 ", -1)])]),
|
|
751
751
|
_: 1
|
|
@@ -766,21 +766,21 @@ const De = Object.assign(ee, {
|
|
|
766
766
|
userProfile: u,
|
|
767
767
|
loading: d,
|
|
768
768
|
fetchUserProfile: l
|
|
769
|
-
} = Z(), n = w("hidden"),
|
|
770
|
-
function t(
|
|
771
|
-
n.value =
|
|
769
|
+
} = Z(), n = w("hidden"), c = o;
|
|
770
|
+
function t(f) {
|
|
771
|
+
n.value = f;
|
|
772
772
|
}
|
|
773
|
-
async function s(
|
|
773
|
+
async function s(f) {
|
|
774
774
|
d.value = !0;
|
|
775
|
-
const
|
|
776
|
-
email:
|
|
777
|
-
userToken:
|
|
778
|
-
emailVerifyId:
|
|
779
|
-
password:
|
|
775
|
+
const v = {
|
|
776
|
+
email: f.email,
|
|
777
|
+
userToken: f.userToken,
|
|
778
|
+
emailVerifyId: f.emailVerifyId,
|
|
779
|
+
password: f.password || ""
|
|
780
780
|
// API 要求 password,但绑定邮箱时可能不需要,传空字符串
|
|
781
781
|
}, {
|
|
782
782
|
error: r
|
|
783
|
-
} = await
|
|
783
|
+
} = await R.users.update.email.post(v);
|
|
784
784
|
d.value = !1, r || (F.success("绑定成功"), n.value = "hidden", l());
|
|
785
785
|
}
|
|
786
786
|
function y() {
|
|
@@ -788,48 +788,48 @@ const De = Object.assign(ee, {
|
|
|
788
788
|
}
|
|
789
789
|
return K(() => {
|
|
790
790
|
u.value || l();
|
|
791
|
-
}), (
|
|
792
|
-
var r,
|
|
793
|
-
return g(),
|
|
791
|
+
}), (f, v) => {
|
|
792
|
+
var r, m, p;
|
|
793
|
+
return g(), U(M, null, [!((r = e(u)) != null && r.email) && n.value === "hidden" ? (g(), k(e(D), {
|
|
794
794
|
key: 0,
|
|
795
795
|
title: "绑定邮箱"
|
|
796
796
|
}, {
|
|
797
797
|
action: a(() => [i(e(A), {
|
|
798
|
-
size:
|
|
798
|
+
size: c.size,
|
|
799
799
|
type: "primary",
|
|
800
|
-
onClick:
|
|
800
|
+
onClick: v[0] || (v[0] = (h) => t("update"))
|
|
801
801
|
}, {
|
|
802
|
-
default: a(() => [...
|
|
802
|
+
default: a(() => [...v[2] || (v[2] = [_(" 绑定邮箱 ", -1)])]),
|
|
803
803
|
_: 1
|
|
804
804
|
}, 8, ["size"])]),
|
|
805
|
-
default: a(() => [
|
|
805
|
+
default: a(() => [v[3] || (v[3] = _(" 您还未绑定邮箱,请点击绑定邮箱 ", -1))]),
|
|
806
806
|
_: 1
|
|
807
|
-
})) : S("", !0), (
|
|
807
|
+
})) : S("", !0), (m = e(u)) != null && m.email && n.value === "hidden" ? (g(), k(e(D), {
|
|
808
808
|
key: 1,
|
|
809
809
|
title: "更改邮箱"
|
|
810
810
|
}, {
|
|
811
811
|
action: a(() => [i(e(A), {
|
|
812
|
-
size:
|
|
812
|
+
size: c.size,
|
|
813
813
|
type: "primary",
|
|
814
|
-
onClick:
|
|
814
|
+
onClick: v[1] || (v[1] = (h) => t("verify"))
|
|
815
815
|
}, {
|
|
816
|
-
default: a(() => [...
|
|
816
|
+
default: a(() => [...v[4] || (v[4] = [_(" 更改邮箱 ", -1)])]),
|
|
817
817
|
_: 1
|
|
818
818
|
}, 8, ["size"])]),
|
|
819
819
|
default: a(() => {
|
|
820
820
|
var h;
|
|
821
|
-
return [_(
|
|
821
|
+
return [_(B(`您绑定的邮箱为${e(ce)((h = e(u)) == null ? void 0 : h.email)}`) + " ", 1)];
|
|
822
822
|
}),
|
|
823
823
|
_: 1
|
|
824
824
|
})) : S("", !0), n.value === "update" ? (g(), k(fe, {
|
|
825
825
|
key: 2,
|
|
826
826
|
loading: e(d),
|
|
827
|
-
size:
|
|
827
|
+
size: c.size,
|
|
828
828
|
onSubmit: s
|
|
829
829
|
}, null, 8, ["loading", "size"])) : S("", !0), n.value === "verify" ? (g(), k(le, {
|
|
830
830
|
key: 3,
|
|
831
|
-
size:
|
|
832
|
-
email: (
|
|
831
|
+
size: c.size,
|
|
832
|
+
email: (p = e(u)) == null ? void 0 : p.email,
|
|
833
833
|
onNext: y
|
|
834
834
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
835
835
|
};
|
|
@@ -847,76 +847,76 @@ const De = Object.assign(ee, {
|
|
|
847
847
|
userProfile: u,
|
|
848
848
|
fetchUserProfile: d
|
|
849
849
|
} = Z(), l = w("hidden"), n = w(!1);
|
|
850
|
-
let
|
|
850
|
+
let c;
|
|
851
851
|
const t = o;
|
|
852
|
-
function s(
|
|
853
|
-
l.value =
|
|
852
|
+
function s(m) {
|
|
853
|
+
l.value = m;
|
|
854
854
|
}
|
|
855
855
|
async function y() {
|
|
856
|
-
const
|
|
857
|
-
if (!
|
|
856
|
+
const m = j.appId;
|
|
857
|
+
if (!m) {
|
|
858
858
|
console.error("GitHub OAuth 失败: appId 未配置");
|
|
859
859
|
return;
|
|
860
860
|
}
|
|
861
861
|
const {
|
|
862
|
-
data:
|
|
863
|
-
} = await
|
|
864
|
-
appId:
|
|
862
|
+
data: p
|
|
863
|
+
} = await R.oauth.github.login.get({
|
|
864
|
+
appId: m
|
|
865
865
|
});
|
|
866
|
-
if (
|
|
866
|
+
if (p) {
|
|
867
867
|
const {
|
|
868
868
|
redirectUri: h
|
|
869
|
-
} =
|
|
869
|
+
} = p;
|
|
870
870
|
n.value = !0, window.open(h, "_blank");
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
|
-
async function
|
|
873
|
+
async function f() {
|
|
874
874
|
const {
|
|
875
|
-
error:
|
|
876
|
-
} = await
|
|
877
|
-
|
|
875
|
+
error: m
|
|
876
|
+
} = await R.users.unbind.email.post({});
|
|
877
|
+
m || (F.success("解绑成功"), l.value = "hidden", d());
|
|
878
878
|
}
|
|
879
|
-
function
|
|
880
|
-
l.value === "bind" && (l.value = "hidden", y()), l.value === "unbind" &&
|
|
879
|
+
function v() {
|
|
880
|
+
l.value === "bind" && (l.value = "hidden", y()), l.value === "unbind" && f();
|
|
881
881
|
}
|
|
882
882
|
function r() {
|
|
883
883
|
n.value && d();
|
|
884
884
|
}
|
|
885
885
|
return K(() => {
|
|
886
|
-
u.value || d(),
|
|
886
|
+
u.value || d(), c = setInterval(r, 1e3);
|
|
887
887
|
}), oe(() => {
|
|
888
|
-
|
|
889
|
-
}), (
|
|
890
|
-
var h,
|
|
891
|
-
return g(),
|
|
888
|
+
c && clearInterval(c);
|
|
889
|
+
}), (m, p) => {
|
|
890
|
+
var h, C, P;
|
|
891
|
+
return g(), U(M, null, [!((h = e(u)) != null && h.github) && l.value === "hidden" ? (g(), k(e(D), {
|
|
892
892
|
key: 0,
|
|
893
893
|
title: "绑定GitHUb"
|
|
894
894
|
}, {
|
|
895
895
|
action: a(() => [i(e(A), {
|
|
896
896
|
size: t.size,
|
|
897
897
|
type: "primary",
|
|
898
|
-
onClick:
|
|
898
|
+
onClick: p[0] || (p[0] = (q) => s("bind"))
|
|
899
899
|
}, {
|
|
900
|
-
default: a(() => [...
|
|
900
|
+
default: a(() => [...p[2] || (p[2] = [_(" 绑定GitHUb ", -1)])]),
|
|
901
901
|
_: 1
|
|
902
902
|
}, 8, ["size"])]),
|
|
903
|
-
default: a(() => [
|
|
903
|
+
default: a(() => [p[3] || (p[3] = _(" 请尚未绑定GitHub,请点击绑定GitHUb ", -1))]),
|
|
904
904
|
_: 1
|
|
905
|
-
})) : S("", !0), (
|
|
905
|
+
})) : S("", !0), (C = e(u)) != null && C.github && l.value === "hidden" ? (g(), k(e(D), {
|
|
906
906
|
key: 1,
|
|
907
907
|
title: "解绑GitHub"
|
|
908
908
|
}, {
|
|
909
909
|
action: a(() => [i(e(A), {
|
|
910
910
|
size: t.size,
|
|
911
911
|
type: "primary",
|
|
912
|
-
onClick:
|
|
912
|
+
onClick: p[1] || (p[1] = (q) => s("unbind"))
|
|
913
913
|
}, {
|
|
914
|
-
default: a(() => [...
|
|
914
|
+
default: a(() => [...p[4] || (p[4] = [_(" 解绑GitHUb ", -1)])]),
|
|
915
915
|
_: 1
|
|
916
916
|
}, 8, ["size"])]),
|
|
917
917
|
default: a(() => {
|
|
918
|
-
var
|
|
919
|
-
return [z("span", null,
|
|
918
|
+
var q, L, E;
|
|
919
|
+
return [z("span", null, B(`您绑定的账号为 ${(L = (q = e(u)) == null ? void 0 : q.github) == null ? void 0 : L.login}`), 1), i(e(de), {
|
|
920
920
|
"image-url": (E = e(u)) == null ? void 0 : E.avatar,
|
|
921
921
|
size: 42
|
|
922
922
|
}, null, 8, ["image-url"])];
|
|
@@ -925,8 +925,8 @@ const De = Object.assign(ee, {
|
|
|
925
925
|
})) : S("", !0), l.value === "bind" || l.value === "unbind" ? (g(), k(le, {
|
|
926
926
|
key: 2,
|
|
927
927
|
size: t.size,
|
|
928
|
-
email: (
|
|
929
|
-
onNext:
|
|
928
|
+
email: (P = e(u)) == null ? void 0 : P.email,
|
|
929
|
+
onNext: v
|
|
930
930
|
}, null, 8, ["size", "email"])) : S("", !0)], 64);
|
|
931
931
|
};
|
|
932
932
|
}
|
|
@@ -952,28 +952,28 @@ const De = Object.assign(ee, {
|
|
|
952
952
|
}) {
|
|
953
953
|
const d = o, l = u, {
|
|
954
954
|
userProfile: n,
|
|
955
|
-
clearUserProfile:
|
|
955
|
+
clearUserProfile: c
|
|
956
956
|
} = Z(), {
|
|
957
957
|
clearAuth: t
|
|
958
|
-
} = J(), s = w("check"), y = w(!1),
|
|
959
|
-
let
|
|
958
|
+
} = J(), s = w("check"), y = w(!1), f = w([]), v = w(!1), r = w(""), m = w(0);
|
|
959
|
+
let p = null;
|
|
960
960
|
const h = N(() => {
|
|
961
961
|
var ne;
|
|
962
|
-
const
|
|
963
|
-
if (!
|
|
964
|
-
const [b,
|
|
965
|
-
return b.length <= 2 ?
|
|
966
|
-
}),
|
|
962
|
+
const O = ((ne = n.value) == null ? void 0 : ne.email) || "";
|
|
963
|
+
if (!O) return "";
|
|
964
|
+
const [b, T] = O.split("@");
|
|
965
|
+
return b.length <= 2 ? O : `${b.slice(0, 2)}***@${T}`;
|
|
966
|
+
}), C = w(), P = w({
|
|
967
967
|
userToken: "",
|
|
968
968
|
password: "",
|
|
969
969
|
confirmText: ""
|
|
970
|
-
}),
|
|
971
|
-
function O
|
|
972
|
-
|
|
970
|
+
}), q = w(!1);
|
|
971
|
+
function L(O, b) {
|
|
972
|
+
O !== "注销" ? b('请输入"注销"以确认操作') : b();
|
|
973
973
|
}
|
|
974
974
|
async function E() {
|
|
975
|
-
var
|
|
976
|
-
if (y.value = !0, y.value = !1, !((
|
|
975
|
+
var O;
|
|
976
|
+
if (y.value = !0, y.value = !1, !((O = n.value) != null && O.email)) {
|
|
977
977
|
F.error("账号未绑定邮箱,无法进行注销验证。请先绑定邮箱");
|
|
978
978
|
return;
|
|
979
979
|
}
|
|
@@ -985,37 +985,37 @@ const De = Object.assign(ee, {
|
|
|
985
985
|
F.error("请先绑定邮箱");
|
|
986
986
|
return;
|
|
987
987
|
}
|
|
988
|
-
|
|
988
|
+
v.value = !0;
|
|
989
989
|
const {
|
|
990
|
-
data:
|
|
991
|
-
} = await
|
|
990
|
+
data: O
|
|
991
|
+
} = await R.verify.email.retry.post({
|
|
992
992
|
email: n.value.email
|
|
993
993
|
});
|
|
994
|
-
|
|
994
|
+
v.value = !1, O && (r.value = O.emailVerifyId, F.success("验证码已发送"), s.value = "confirm", X());
|
|
995
995
|
}
|
|
996
996
|
function X() {
|
|
997
|
-
|
|
998
|
-
|
|
997
|
+
m.value = 60, p && clearInterval(p), p = setInterval(() => {
|
|
998
|
+
m.value--, m.value <= 0 && p && (clearInterval(p), p = null);
|
|
999
999
|
}, 1e3);
|
|
1000
1000
|
}
|
|
1001
1001
|
async function we() {
|
|
1002
|
-
var
|
|
1003
|
-
if (await ((
|
|
1004
|
-
|
|
1002
|
+
var T;
|
|
1003
|
+
if (await ((T = C.value) == null ? void 0 : T.validate())) return;
|
|
1004
|
+
q.value = !0;
|
|
1005
1005
|
const {
|
|
1006
1006
|
error: b
|
|
1007
|
-
} = await
|
|
1008
|
-
password:
|
|
1009
|
-
userToken:
|
|
1007
|
+
} = await R.users.deleteAccount.post({
|
|
1008
|
+
password: P.value.password,
|
|
1009
|
+
userToken: P.value.userToken,
|
|
1010
1010
|
emailVerifyId: r.value,
|
|
1011
|
-
confirmText:
|
|
1011
|
+
confirmText: P.value.confirmText
|
|
1012
1012
|
});
|
|
1013
|
-
|
|
1013
|
+
q.value = !1, b || (s.value = "success", c(), t(), l("deleted"));
|
|
1014
1014
|
}
|
|
1015
1015
|
function he() {
|
|
1016
1016
|
window.location.href = "/";
|
|
1017
1017
|
}
|
|
1018
|
-
return (
|
|
1018
|
+
return (O, b) => s.value === "check" ? (g(), k(e(D), {
|
|
1019
1019
|
key: 0,
|
|
1020
1020
|
type: "warning",
|
|
1021
1021
|
title: "注销账号"
|
|
@@ -1027,12 +1027,12 @@ const De = Object.assign(ee, {
|
|
|
1027
1027
|
loading: y.value,
|
|
1028
1028
|
onClick: E
|
|
1029
1029
|
}, {
|
|
1030
|
-
default: a(() => [_(
|
|
1030
|
+
default: a(() => [_(B(y.value ? "检查中..." : "开始注销"), 1)]),
|
|
1031
1031
|
_: 1
|
|
1032
1032
|
}, 8, ["size", "loading"])]),
|
|
1033
1033
|
default: a(() => [b[6] || (b[6] = _(" 注销账号后,您的所有数据将被永久删除,无法恢复。请确认您已备份重要数据。 ", -1))]),
|
|
1034
1034
|
_: 1
|
|
1035
|
-
})) : s.value === "dependencies" ? (g(),
|
|
1035
|
+
})) : s.value === "dependencies" ? (g(), U(M, {
|
|
1036
1036
|
key: 1
|
|
1037
1037
|
}, [i(e(D), {
|
|
1038
1038
|
type: "error",
|
|
@@ -1040,12 +1040,12 @@ const De = Object.assign(ee, {
|
|
|
1040
1040
|
}, {
|
|
1041
1041
|
default: a(() => [...b[7] || (b[7] = [_(" 您的账号下还有以下资源,请先处理后再注销: ", -1)])]),
|
|
1042
1042
|
_: 1
|
|
1043
|
-
}), z("div", lt, [(g(!0),
|
|
1044
|
-
key:
|
|
1043
|
+
}), z("div", lt, [(g(!0), U(M, null, ze(f.value, (T) => (g(), U("div", {
|
|
1044
|
+
key: T.type,
|
|
1045
1045
|
class: "dependency-item"
|
|
1046
|
-
}, [z("span", nt,
|
|
1046
|
+
}, [z("span", nt, B(T.label), 1), z("span", ot, B(T.count) + " 个", 1)]))), 128))]), z("div", rt, [i(e(A), {
|
|
1047
1047
|
size: d.size,
|
|
1048
|
-
onClick: b[0] || (b[0] = (
|
|
1048
|
+
onClick: b[0] || (b[0] = (T) => s.value = "check")
|
|
1049
1049
|
}, {
|
|
1050
1050
|
default: a(() => [...b[8] || (b[8] = [_("返回", -1)])]),
|
|
1051
1051
|
_: 1
|
|
@@ -1057,35 +1057,35 @@ const De = Object.assign(ee, {
|
|
|
1057
1057
|
action: a(() => [i(e(Y), null, {
|
|
1058
1058
|
default: a(() => [i(e(A), {
|
|
1059
1059
|
size: d.size,
|
|
1060
|
-
onClick: b[1] || (b[1] = (
|
|
1060
|
+
onClick: b[1] || (b[1] = (T) => s.value = "check")
|
|
1061
1061
|
}, {
|
|
1062
1062
|
default: a(() => [...b[9] || (b[9] = [_("取消", -1)])]),
|
|
1063
1063
|
_: 1
|
|
1064
1064
|
}, 8, ["size"]), i(e(A), {
|
|
1065
1065
|
size: d.size,
|
|
1066
1066
|
type: "primary",
|
|
1067
|
-
loading:
|
|
1067
|
+
loading: v.value,
|
|
1068
1068
|
onClick: W
|
|
1069
1069
|
}, {
|
|
1070
|
-
default: a(() => [_(
|
|
1070
|
+
default: a(() => [_(B(v.value ? "发送中..." : "发送验证码"), 1)]),
|
|
1071
1071
|
_: 1
|
|
1072
1072
|
}, 8, ["size", "loading"])]),
|
|
1073
1073
|
_: 1
|
|
1074
1074
|
})]),
|
|
1075
|
-
default: a(() => [_(" 为确保账号安全,我们将向您的邮箱 " +
|
|
1075
|
+
default: a(() => [_(" 为确保账号安全,我们将向您的邮箱 " + B(h.value) + " 发送验证码 ", 1)]),
|
|
1076
1076
|
_: 1
|
|
1077
|
-
})) : s.value === "confirm" ? (g(),
|
|
1077
|
+
})) : s.value === "confirm" ? (g(), U(M, {
|
|
1078
1078
|
key: 3
|
|
1079
1079
|
}, [i(e(D), {
|
|
1080
1080
|
type: "warning",
|
|
1081
1081
|
title: "确认注销"
|
|
1082
1082
|
}, {
|
|
1083
|
-
default: a(() => [_(" 验证码已发送至 " +
|
|
1083
|
+
default: a(() => [_(" 验证码已发送至 " + B(h.value) + ",此操作不可逆,请谨慎操作 ", 1)]),
|
|
1084
1084
|
_: 1
|
|
1085
1085
|
}), i(e(H), {
|
|
1086
1086
|
ref_key: "formRef",
|
|
1087
|
-
ref:
|
|
1088
|
-
model:
|
|
1087
|
+
ref: C,
|
|
1088
|
+
model: P.value,
|
|
1089
1089
|
size: d.size,
|
|
1090
1090
|
class: "confirm-form",
|
|
1091
1091
|
layout: "vertical"
|
|
@@ -1099,9 +1099,9 @@ const De = Object.assign(ee, {
|
|
|
1099
1099
|
}]
|
|
1100
1100
|
}, {
|
|
1101
1101
|
default: a(() => [i(e(Y), null, {
|
|
1102
|
-
default: a(() => [i(e(
|
|
1103
|
-
modelValue:
|
|
1104
|
-
"onUpdate:modelValue": b[2] || (b[2] = (
|
|
1102
|
+
default: a(() => [i(e(x), {
|
|
1103
|
+
modelValue: P.value.userToken,
|
|
1104
|
+
"onUpdate:modelValue": b[2] || (b[2] = (T) => P.value.userToken = T),
|
|
1105
1105
|
placeholder: "请输入6位验证码",
|
|
1106
1106
|
"max-length": 6,
|
|
1107
1107
|
"allow-clear": "",
|
|
@@ -1109,11 +1109,11 @@ const De = Object.assign(ee, {
|
|
|
1109
1109
|
width: "180px"
|
|
1110
1110
|
}
|
|
1111
1111
|
}, null, 8, ["modelValue"]), i(e(A), {
|
|
1112
|
-
disabled:
|
|
1113
|
-
loading:
|
|
1112
|
+
disabled: m.value > 0,
|
|
1113
|
+
loading: v.value,
|
|
1114
1114
|
onClick: W
|
|
1115
1115
|
}, {
|
|
1116
|
-
default: a(() => [_(
|
|
1116
|
+
default: a(() => [_(B(m.value > 0 ? `${m.value}s 后重发` : "重新发送"), 1)]),
|
|
1117
1117
|
_: 1
|
|
1118
1118
|
}, 8, ["disabled", "loading"])]),
|
|
1119
1119
|
_: 1
|
|
@@ -1128,8 +1128,8 @@ const De = Object.assign(ee, {
|
|
|
1128
1128
|
}]
|
|
1129
1129
|
}, {
|
|
1130
1130
|
default: a(() => [i(e(Ve), {
|
|
1131
|
-
modelValue:
|
|
1132
|
-
"onUpdate:modelValue": b[3] || (b[3] = (
|
|
1131
|
+
modelValue: P.value.password,
|
|
1132
|
+
"onUpdate:modelValue": b[3] || (b[3] = (T) => P.value.password = T),
|
|
1133
1133
|
placeholder: "请输入您的登录密码",
|
|
1134
1134
|
"allow-clear": ""
|
|
1135
1135
|
}, null, 8, ["modelValue"])]),
|
|
@@ -1141,12 +1141,12 @@ const De = Object.assign(ee, {
|
|
|
1141
1141
|
required: !0,
|
|
1142
1142
|
message: "请输入确认文字"
|
|
1143
1143
|
}, {
|
|
1144
|
-
validator:
|
|
1144
|
+
validator: L
|
|
1145
1145
|
}]
|
|
1146
1146
|
}, {
|
|
1147
|
-
default: a(() => [i(e(
|
|
1148
|
-
modelValue:
|
|
1149
|
-
"onUpdate:modelValue": b[4] || (b[4] = (
|
|
1147
|
+
default: a(() => [i(e(x), {
|
|
1148
|
+
modelValue: P.value.confirmText,
|
|
1149
|
+
"onUpdate:modelValue": b[4] || (b[4] = (T) => P.value.confirmText = T),
|
|
1150
1150
|
placeholder: "注销",
|
|
1151
1151
|
"allow-clear": ""
|
|
1152
1152
|
}, null, 8, ["modelValue"])]),
|
|
@@ -1154,17 +1154,17 @@ const De = Object.assign(ee, {
|
|
|
1154
1154
|
}, 8, ["rules"]), i(e(I), null, {
|
|
1155
1155
|
default: a(() => [i(e(Y), null, {
|
|
1156
1156
|
default: a(() => [i(e(A), {
|
|
1157
|
-
onClick: b[5] || (b[5] = (
|
|
1157
|
+
onClick: b[5] || (b[5] = (T) => s.value = "check")
|
|
1158
1158
|
}, {
|
|
1159
1159
|
default: a(() => [...b[10] || (b[10] = [_("取消", -1)])]),
|
|
1160
1160
|
_: 1
|
|
1161
1161
|
}), i(e(A), {
|
|
1162
1162
|
type: "primary",
|
|
1163
1163
|
status: "danger",
|
|
1164
|
-
loading:
|
|
1164
|
+
loading: q.value,
|
|
1165
1165
|
onClick: we
|
|
1166
1166
|
}, {
|
|
1167
|
-
default: a(() => [_(
|
|
1167
|
+
default: a(() => [_(B(q.value ? "注销中..." : "确认注销"), 1)]),
|
|
1168
1168
|
_: 1
|
|
1169
1169
|
}, 8, ["loading"])]),
|
|
1170
1170
|
_: 1
|
|
@@ -1205,7 +1205,7 @@ const De = Object.assign(ee, {
|
|
|
1205
1205
|
function n() {
|
|
1206
1206
|
l("cancel");
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function c() {
|
|
1209
1209
|
r.value = !1, l("cancel");
|
|
1210
1210
|
}
|
|
1211
1211
|
const t = w("large"), s = w(["PersonalInformation"]), y = w([{
|
|
@@ -1261,22 +1261,22 @@ const De = Object.assign(ee, {
|
|
|
1261
1261
|
// },
|
|
1262
1262
|
]
|
|
1263
1263
|
}]);
|
|
1264
|
-
function
|
|
1265
|
-
const h =
|
|
1264
|
+
function f(p) {
|
|
1265
|
+
const h = p.path;
|
|
1266
1266
|
s.value = [h];
|
|
1267
1267
|
}
|
|
1268
1268
|
const {
|
|
1269
|
-
changeType:
|
|
1269
|
+
changeType: v,
|
|
1270
1270
|
show: r
|
|
1271
1271
|
} = Re(l);
|
|
1272
|
-
function
|
|
1273
|
-
console.log(
|
|
1272
|
+
function m(p, h) {
|
|
1273
|
+
console.log(p), r.value = h, v.value = "编辑";
|
|
1274
1274
|
}
|
|
1275
1275
|
return u({
|
|
1276
|
-
setData:
|
|
1277
|
-
}), (
|
|
1276
|
+
setData: m
|
|
1277
|
+
}), (p, h) => (g(), k(e(me), {
|
|
1278
1278
|
visible: e(r),
|
|
1279
|
-
"onUpdate:visible": h[1] || (h[1] = (
|
|
1279
|
+
"onUpdate:visible": h[1] || (h[1] = (C) => re(r) ? r.value = C : null),
|
|
1280
1280
|
"unmount-on-close": "",
|
|
1281
1281
|
"body-class": "AppSettingbodyClass",
|
|
1282
1282
|
"mask-closable": !1,
|
|
@@ -1287,9 +1287,9 @@ const De = Object.assign(ee, {
|
|
|
1287
1287
|
title: a(() => [...h[2] || (h[2] = [_(" 系统设置 ", -1)])]),
|
|
1288
1288
|
default: a(() => [z("div", mt, [z("div", ct, [i(Te, {
|
|
1289
1289
|
"selected-keys": s.value,
|
|
1290
|
-
"onUpdate:selectedKeys": h[0] || (h[0] = (
|
|
1290
|
+
"onUpdate:selectedKeys": h[0] || (h[0] = (C) => s.value = C),
|
|
1291
1291
|
menus: y.value,
|
|
1292
|
-
onChange:
|
|
1292
|
+
onChange: f
|
|
1293
1293
|
}, null, 8, ["selected-keys", "menus"])]), z("div", ft, [s.value[0] === "PersonalInformation" ? (g(), k(He, {
|
|
1294
1294
|
key: 0,
|
|
1295
1295
|
size: t.value
|
|
@@ -1305,7 +1305,7 @@ const De = Object.assign(ee, {
|
|
|
1305
1305
|
}, null, 8, ["size"])) : S("", !0), s.value[0] === "AccountDelete" ? (g(), k(dt, {
|
|
1306
1306
|
key: 4,
|
|
1307
1307
|
size: t.value,
|
|
1308
|
-
onDeleted:
|
|
1308
|
+
onDeleted: c
|
|
1309
1309
|
}, null, 8, ["size"])) : S("", !0)])])]),
|
|
1310
1310
|
_: 1
|
|
1311
1311
|
}, 8, ["visible"]));
|
|
@@ -1330,15 +1330,15 @@ async function Q(o, u) {
|
|
|
1330
1330
|
redirectUri: l
|
|
1331
1331
|
};
|
|
1332
1332
|
vt();
|
|
1333
|
-
const
|
|
1334
|
-
github: () =>
|
|
1335
|
-
google: () =>
|
|
1336
|
-
microsoft: () =>
|
|
1333
|
+
const c = {
|
|
1334
|
+
github: () => R.oauth.github.login.get(n),
|
|
1335
|
+
google: () => R.oauth.google.login.get(n),
|
|
1336
|
+
microsoft: () => R.oauth.microsoft.login.get(n)
|
|
1337
1337
|
};
|
|
1338
1338
|
try {
|
|
1339
1339
|
const {
|
|
1340
1340
|
data: t
|
|
1341
|
-
} = await
|
|
1341
|
+
} = await c[o]();
|
|
1342
1342
|
t != null && t.redirectUri ? window.location.href = t.redirectUri : console.error(`${o} OAuth 重定向URL为空`);
|
|
1343
1343
|
} catch (t) {
|
|
1344
1344
|
console.error(`${o} OAuth 授权失败:`, t);
|
|
@@ -1399,7 +1399,7 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1399
1399
|
icon: a(() => [i(e(Le), {
|
|
1400
1400
|
icon: d.icon
|
|
1401
1401
|
}, null, 8, ["icon"])]),
|
|
1402
|
-
default: a(() => [z("span", null,
|
|
1402
|
+
default: a(() => [z("span", null, B(d.label), 1)]),
|
|
1403
1403
|
_: 1
|
|
1404
1404
|
}, 8, ["size"]));
|
|
1405
1405
|
}
|
|
@@ -1425,9 +1425,9 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1425
1425
|
} = se(), d = o, {
|
|
1426
1426
|
githubAuth: l,
|
|
1427
1427
|
googleAuth: n,
|
|
1428
|
-
microsoftAuth:
|
|
1428
|
+
microsoftAuth: c
|
|
1429
1429
|
} = ve(), t = N(() => !(!u.value.oauth.google.enabled && !u.value.oauth.microsoft.enabled && !u.value.oauth.github.enabled && !u.value.oauth.wechat.enabled));
|
|
1430
|
-
return (s, y) => (g(),
|
|
1430
|
+
return (s, y) => (g(), U("div", ht, [t.value ? (g(), k(e(Pe), {
|
|
1431
1431
|
key: 0,
|
|
1432
1432
|
orientation: "center"
|
|
1433
1433
|
}, {
|
|
@@ -1438,19 +1438,19 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1438
1438
|
icon: "mdi:github",
|
|
1439
1439
|
label: "Github",
|
|
1440
1440
|
size: d.size,
|
|
1441
|
-
onClick: y[0] || (y[0] = (
|
|
1441
|
+
onClick: y[0] || (y[0] = (f) => e(l)())
|
|
1442
1442
|
}, null, 8, ["size"])) : S("", !0), e(u).oauth.google.enabled ? (g(), k(te, {
|
|
1443
1443
|
key: 1,
|
|
1444
1444
|
icon: "mdi:google",
|
|
1445
1445
|
label: "Google",
|
|
1446
1446
|
size: d.size,
|
|
1447
|
-
onClick: y[1] || (y[1] = (
|
|
1447
|
+
onClick: y[1] || (y[1] = (f) => e(n)())
|
|
1448
1448
|
}, null, 8, ["size"])) : S("", !0), e(u).oauth.microsoft.enabled ? (g(), k(te, {
|
|
1449
1449
|
key: 2,
|
|
1450
1450
|
icon: "mdi:microsoft",
|
|
1451
1451
|
label: "Microsoft",
|
|
1452
1452
|
size: d.size,
|
|
1453
|
-
onClick: y[2] || (y[2] = (
|
|
1453
|
+
onClick: y[2] || (y[2] = (f) => e(c)())
|
|
1454
1454
|
}, null, 8, ["size"])) : S("", !0)])]));
|
|
1455
1455
|
}
|
|
1456
1456
|
}), kt = /* @__PURE__ */ $(bt, [["__scopeId", "data-v-886fd902"]]), zt = {
|
|
@@ -1476,7 +1476,7 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1476
1476
|
setup(o, {
|
|
1477
1477
|
emit: u
|
|
1478
1478
|
}) {
|
|
1479
|
-
const d = u, l = o, n = w(),
|
|
1479
|
+
const d = u, l = o, n = w(), c = w(!1), t = w(), s = w({
|
|
1480
1480
|
email: void 0,
|
|
1481
1481
|
userToken: void 0,
|
|
1482
1482
|
emailVerifyId: void 0,
|
|
@@ -1485,21 +1485,21 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1485
1485
|
});
|
|
1486
1486
|
async function y() {
|
|
1487
1487
|
if (!await t.value.validateField(["email"])) {
|
|
1488
|
-
|
|
1488
|
+
c.value = !0;
|
|
1489
1489
|
const {
|
|
1490
1490
|
data: r
|
|
1491
|
-
} = await
|
|
1491
|
+
} = await R.verify.email.retry.post({
|
|
1492
1492
|
email: s.value.email
|
|
1493
1493
|
});
|
|
1494
|
-
|
|
1494
|
+
c.value = !1, r && (s.value.emailVerifyId = r.emailVerifyId, n.value.startCountFn());
|
|
1495
1495
|
}
|
|
1496
1496
|
}
|
|
1497
|
-
async function
|
|
1498
|
-
t.value.validate().then((
|
|
1499
|
-
|
|
1497
|
+
async function f() {
|
|
1498
|
+
t.value.validate().then((v) => {
|
|
1499
|
+
v || d("submit", s.value);
|
|
1500
1500
|
});
|
|
1501
1501
|
}
|
|
1502
|
-
return (
|
|
1502
|
+
return (v, r) => (g(), U("div", zt, [i(e(H), {
|
|
1503
1503
|
ref_key: "formRef",
|
|
1504
1504
|
ref: t,
|
|
1505
1505
|
model: s.value,
|
|
@@ -1518,9 +1518,9 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1518
1518
|
message: "请输入有效的邮箱"
|
|
1519
1519
|
}]
|
|
1520
1520
|
}, {
|
|
1521
|
-
default: a(() => [i(e(
|
|
1521
|
+
default: a(() => [i(e(x), {
|
|
1522
1522
|
modelValue: s.value.email,
|
|
1523
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
1523
|
+
"onUpdate:modelValue": r[0] || (r[0] = (m) => s.value.email = m),
|
|
1524
1524
|
placeholder: "请输入邮箱"
|
|
1525
1525
|
}, null, 8, ["modelValue"])]),
|
|
1526
1526
|
_: 1
|
|
@@ -1533,15 +1533,15 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1533
1533
|
message: "请输入验证码"
|
|
1534
1534
|
}]
|
|
1535
1535
|
}, {
|
|
1536
|
-
default: a(() => [z("div", St, [i(e(
|
|
1536
|
+
default: a(() => [z("div", St, [i(e(x), {
|
|
1537
1537
|
modelValue: s.value.userToken,
|
|
1538
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
|
1538
|
+
"onUpdate:modelValue": r[1] || (r[1] = (m) => s.value.userToken = m),
|
|
1539
1539
|
placeholder: "请输入验证码"
|
|
1540
1540
|
}, null, 8, ["modelValue"]), i(ae, {
|
|
1541
1541
|
ref_key: "SendVerifyCodeRef",
|
|
1542
1542
|
ref: n,
|
|
1543
1543
|
size: l.size,
|
|
1544
|
-
loading:
|
|
1544
|
+
loading: c.value,
|
|
1545
1545
|
style: {
|
|
1546
1546
|
"margin-left": "10px"
|
|
1547
1547
|
},
|
|
@@ -1560,9 +1560,9 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1560
1560
|
message: "密码不能少于10字符"
|
|
1561
1561
|
}]
|
|
1562
1562
|
}, {
|
|
1563
|
-
default: a(() => [i(e(
|
|
1563
|
+
default: a(() => [i(e(x), {
|
|
1564
1564
|
modelValue: s.value.password,
|
|
1565
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
1565
|
+
"onUpdate:modelValue": r[2] || (r[2] = (m) => s.value.password = m),
|
|
1566
1566
|
placeholder: "请输入密码",
|
|
1567
1567
|
type: "password",
|
|
1568
1568
|
autocomplete: ""
|
|
@@ -1579,14 +1579,14 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1579
1579
|
minLength: 10,
|
|
1580
1580
|
message: "确认密码不能少于10字符"
|
|
1581
1581
|
}, {
|
|
1582
|
-
validator: (
|
|
1583
|
-
|
|
1582
|
+
validator: (m, p) => {
|
|
1583
|
+
m !== s.value.password ? p("两次密码输入不一致,请重新输入") : p();
|
|
1584
1584
|
}
|
|
1585
1585
|
}]
|
|
1586
1586
|
}, {
|
|
1587
|
-
default: a(() => [i(e(
|
|
1587
|
+
default: a(() => [i(e(x), {
|
|
1588
1588
|
modelValue: s.value.confirmPassword,
|
|
1589
|
-
"onUpdate:modelValue": r[3] || (r[3] = (
|
|
1589
|
+
"onUpdate:modelValue": r[3] || (r[3] = (m) => s.value.confirmPassword = m),
|
|
1590
1590
|
placeholder: "请输入确认密码密码",
|
|
1591
1591
|
type: "password",
|
|
1592
1592
|
autocomplete: ""
|
|
@@ -1597,7 +1597,7 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1597
1597
|
loading: l.loading,
|
|
1598
1598
|
long: "",
|
|
1599
1599
|
size: l.size,
|
|
1600
|
-
onClick:
|
|
1600
|
+
onClick: f
|
|
1601
1601
|
}, {
|
|
1602
1602
|
default: a(() => [...r[4] || (r[4] = [_(" 提交 ", -1)])]),
|
|
1603
1603
|
_: 1
|
|
@@ -1617,13 +1617,13 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1617
1617
|
function l() {
|
|
1618
1618
|
d("switchSignIn");
|
|
1619
1619
|
}
|
|
1620
|
-
return (n,
|
|
1620
|
+
return (n, c) => (g(), U("div", Pt, [z("span", null, [c[1] || (c[1] = z("span", null, "已经有账号?", -1)), i(e(G), {
|
|
1621
1621
|
style: {
|
|
1622
1622
|
padding: "0px"
|
|
1623
1623
|
},
|
|
1624
1624
|
onClick: l
|
|
1625
1625
|
}, {
|
|
1626
|
-
default: a(() => [...
|
|
1626
|
+
default: a(() => [...c[0] || (c[0] = [_("去登陆", -1)])]),
|
|
1627
1627
|
_: 1
|
|
1628
1628
|
})])]));
|
|
1629
1629
|
}
|
|
@@ -1651,13 +1651,13 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1651
1651
|
function n() {
|
|
1652
1652
|
d("switchSignIn");
|
|
1653
1653
|
}
|
|
1654
|
-
async function
|
|
1654
|
+
async function c(t) {
|
|
1655
1655
|
d("submit", t);
|
|
1656
1656
|
}
|
|
1657
|
-
return (t, s) => (g(),
|
|
1657
|
+
return (t, s) => (g(), U("div", $t, [i(At, {
|
|
1658
1658
|
loading: o.loading,
|
|
1659
1659
|
size: l.size,
|
|
1660
|
-
onSubmit:
|
|
1660
|
+
onSubmit: c
|
|
1661
1661
|
}, null, 8, ["loading", "size"]), i(ge, {
|
|
1662
1662
|
onSwitchSignIn: n
|
|
1663
1663
|
})]));
|
|
@@ -1677,12 +1677,12 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1677
1677
|
function n() {
|
|
1678
1678
|
d("toPrivacyPolicy");
|
|
1679
1679
|
}
|
|
1680
|
-
return (
|
|
1680
|
+
return (c, t) => (g(), U("div", qt, [t[2] || (t[2] = z("span", null, " 注册登陆即表示同意", -1)), i(e(G), {
|
|
1681
1681
|
onClick: l
|
|
1682
1682
|
}, {
|
|
1683
1683
|
default: a(() => [...t[0] || (t[0] = [_("用户服务协议", -1)])]),
|
|
1684
1684
|
_: 1
|
|
1685
|
-
}), t[3] || (t[3] = z("span", null, " 和 ", -1)), i(e(
|
|
1685
|
+
}), t[3] || (t[3] = z("span", null, " 和 ", -1)), i(e(G), {
|
|
1686
1686
|
onClick: n
|
|
1687
1687
|
}, {
|
|
1688
1688
|
default: a(() => [...t[1] || (t[1] = [_("隐私协议", -1)])]),
|
|
@@ -1711,42 +1711,51 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1711
1711
|
emit: u
|
|
1712
1712
|
}) {
|
|
1713
1713
|
const d = u, l = o;
|
|
1714
|
-
async function n(y,
|
|
1714
|
+
async function n(y, f) {
|
|
1715
|
+
var q;
|
|
1715
1716
|
if (!y) {
|
|
1716
|
-
|
|
1717
|
+
f("请输入密码");
|
|
1717
1718
|
return;
|
|
1718
1719
|
}
|
|
1719
1720
|
const {
|
|
1720
|
-
data:
|
|
1721
|
-
|
|
1721
|
+
data: v,
|
|
1722
|
+
error: r
|
|
1723
|
+
} = await R.verify.password.post({
|
|
1722
1724
|
password: y
|
|
1723
1725
|
});
|
|
1724
|
-
if (
|
|
1725
|
-
|
|
1726
|
+
if (r) {
|
|
1727
|
+
f(r.message || "密码验证请求出错!");
|
|
1728
|
+
return;
|
|
1729
|
+
}
|
|
1730
|
+
if (!v) {
|
|
1731
|
+
f("密码验证请求出错!");
|
|
1726
1732
|
return;
|
|
1727
1733
|
}
|
|
1728
1734
|
const {
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1735
|
+
isPass: m,
|
|
1736
|
+
feedback: p,
|
|
1737
|
+
score: h,
|
|
1738
|
+
minPasswordComplexity: C
|
|
1739
|
+
} = v;
|
|
1740
|
+
if (!(m === !0 || m === "true" || typeof m == "boolean" && m)) {
|
|
1741
|
+
const L = (p == null ? void 0 : p.warning) || ((q = p == null ? void 0 : p.suggestions) != null && q.length ? p.suggestions.join(", ") : "") || "密码强度不足";
|
|
1742
|
+
f(L);
|
|
1734
1743
|
return;
|
|
1735
1744
|
}
|
|
1736
|
-
|
|
1745
|
+
f();
|
|
1737
1746
|
}
|
|
1738
|
-
const
|
|
1747
|
+
const c = w(), t = w({
|
|
1739
1748
|
email: void 0,
|
|
1740
1749
|
password: void 0
|
|
1741
1750
|
});
|
|
1742
1751
|
async function s() {
|
|
1743
|
-
|
|
1752
|
+
c.value.validate().then((y) => {
|
|
1744
1753
|
y || d("submit", t.value);
|
|
1745
1754
|
});
|
|
1746
1755
|
}
|
|
1747
|
-
return (y,
|
|
1756
|
+
return (y, f) => (g(), U("div", Lt, [i(e(H), {
|
|
1748
1757
|
ref_key: "formRef",
|
|
1749
|
-
ref:
|
|
1758
|
+
ref: c,
|
|
1750
1759
|
model: t.value,
|
|
1751
1760
|
size: l.size,
|
|
1752
1761
|
"auto-label-width": ""
|
|
@@ -1763,9 +1772,9 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1763
1772
|
message: "请输入有效的邮箱"
|
|
1764
1773
|
}]
|
|
1765
1774
|
}, {
|
|
1766
|
-
default: a(() => [i(e(
|
|
1775
|
+
default: a(() => [i(e(x), {
|
|
1767
1776
|
modelValue: t.value.email,
|
|
1768
|
-
"onUpdate:modelValue":
|
|
1777
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => t.value.email = v),
|
|
1769
1778
|
placeholder: "请输入邮箱",
|
|
1770
1779
|
autocomplete: "email username",
|
|
1771
1780
|
type: "email"
|
|
@@ -1782,9 +1791,9 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1782
1791
|
validator: n
|
|
1783
1792
|
}]
|
|
1784
1793
|
}, {
|
|
1785
|
-
default: a(() => [i(e(
|
|
1794
|
+
default: a(() => [i(e(x), {
|
|
1786
1795
|
modelValue: t.value.password,
|
|
1787
|
-
"onUpdate:modelValue":
|
|
1796
|
+
"onUpdate:modelValue": f[1] || (f[1] = (v) => t.value.password = v),
|
|
1788
1797
|
placeholder: "请输入密码",
|
|
1789
1798
|
type: "password",
|
|
1790
1799
|
autocomplete: "current-password"
|
|
@@ -1797,13 +1806,13 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1797
1806
|
size: l.size,
|
|
1798
1807
|
onClick: s
|
|
1799
1808
|
}, {
|
|
1800
|
-
default: a(() => [...
|
|
1809
|
+
default: a(() => [...f[2] || (f[2] = [_(" 登陆 ", -1)])]),
|
|
1801
1810
|
_: 1
|
|
1802
1811
|
}, 8, ["loading", "size"])])]),
|
|
1803
1812
|
_: 1
|
|
1804
1813
|
}, 8, ["model", "size"])]));
|
|
1805
1814
|
}
|
|
1806
|
-
}), Et = /* @__PURE__ */ $(Ot, [["__scopeId", "data-v-
|
|
1815
|
+
}), Et = /* @__PURE__ */ $(Ot, [["__scopeId", "data-v-a5b44bae"]]), Dt = {
|
|
1807
1816
|
class: "SwitchSignUpOrResetPassword"
|
|
1808
1817
|
}, Nt = /* @__PURE__ */ V({
|
|
1809
1818
|
__name: "AuthkitSwitchSignUpOrResetPassword",
|
|
@@ -1818,7 +1827,7 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1818
1827
|
function n() {
|
|
1819
1828
|
d("switchResetPassword");
|
|
1820
1829
|
}
|
|
1821
|
-
return (
|
|
1830
|
+
return (c, t) => (g(), U("div", Dt, [z("span", null, [t[1] || (t[1] = z("span", null, " 还没有账户?", -1)), i(e(G), {
|
|
1822
1831
|
style: {
|
|
1823
1832
|
padding: "0px"
|
|
1824
1833
|
},
|
|
@@ -1826,7 +1835,7 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1826
1835
|
}, {
|
|
1827
1836
|
default: a(() => [...t[0] || (t[0] = [_("去注册?", -1)])]),
|
|
1828
1837
|
_: 1
|
|
1829
|
-
})]), i(e(
|
|
1838
|
+
})]), i(e(G), {
|
|
1830
1839
|
style: {
|
|
1831
1840
|
padding: "0px"
|
|
1832
1841
|
},
|
|
@@ -1838,7 +1847,7 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1838
1847
|
}
|
|
1839
1848
|
}), Ft = /* @__PURE__ */ $(Nt, [["__scopeId", "data-v-14e3aab2"]]), Ht = {
|
|
1840
1849
|
class: "SignIn"
|
|
1841
|
-
},
|
|
1850
|
+
}, Mt = /* @__PURE__ */ V({
|
|
1842
1851
|
__name: "AuthkitSignIn",
|
|
1843
1852
|
props: {
|
|
1844
1853
|
size: {
|
|
@@ -1855,28 +1864,28 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1855
1864
|
setup(o, {
|
|
1856
1865
|
emit: u
|
|
1857
1866
|
}) {
|
|
1858
|
-
const d = u, l = o, n = Se(),
|
|
1867
|
+
const d = u, l = o, n = Se(), c = N(() => !!n.OAuth);
|
|
1859
1868
|
function t() {
|
|
1860
1869
|
d("switchSignUp");
|
|
1861
1870
|
}
|
|
1862
1871
|
function s() {
|
|
1863
1872
|
d("switchResetPassword");
|
|
1864
1873
|
}
|
|
1865
|
-
async function y(
|
|
1866
|
-
d("submit",
|
|
1874
|
+
async function y(f) {
|
|
1875
|
+
d("submit", f);
|
|
1867
1876
|
}
|
|
1868
|
-
return (
|
|
1877
|
+
return (f, v) => (g(), U("div", Ht, [S("", !0), i(Et, {
|
|
1869
1878
|
loading: l.loading,
|
|
1870
1879
|
size: l.size,
|
|
1871
1880
|
onSubmit: y
|
|
1872
|
-
}, null, 8, ["loading", "size"]),
|
|
1881
|
+
}, null, 8, ["loading", "size"]), c.value ? ue(f.$slots, "OAuth", {
|
|
1873
1882
|
key: 1
|
|
1874
1883
|
}, void 0, !0) : S("", !0), i(Ft, {
|
|
1875
1884
|
onSwitchSignUp: t,
|
|
1876
1885
|
onSwitchResetPassword: s
|
|
1877
1886
|
})]));
|
|
1878
1887
|
}
|
|
1879
|
-
}),
|
|
1888
|
+
}), Gt = /* @__PURE__ */ $(Mt, [["__scopeId", "data-v-f52ce3b3"]]), jt = {
|
|
1880
1889
|
class: "SignUp"
|
|
1881
1890
|
}, Wt = /* @__PURE__ */ V({
|
|
1882
1891
|
__name: "AuthkitSignUp",
|
|
@@ -1899,13 +1908,13 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1899
1908
|
function n() {
|
|
1900
1909
|
d("switchSignIn");
|
|
1901
1910
|
}
|
|
1902
|
-
async function
|
|
1911
|
+
async function c(t) {
|
|
1903
1912
|
d("submit", t);
|
|
1904
1913
|
}
|
|
1905
|
-
return (t, s) => (g(),
|
|
1914
|
+
return (t, s) => (g(), U("div", jt, [i(fe, {
|
|
1906
1915
|
size: l.size,
|
|
1907
1916
|
loading: o.loading,
|
|
1908
|
-
onSubmit:
|
|
1917
|
+
onSubmit: c
|
|
1909
1918
|
}, null, 8, ["size", "loading"]), i(ge, {
|
|
1910
1919
|
onSwitchSignIn: n
|
|
1911
1920
|
})]));
|
|
@@ -1931,24 +1940,24 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1931
1940
|
},
|
|
1932
1941
|
setup(o) {
|
|
1933
1942
|
const u = o, d = `${u.size}px`, l = `${u.fontSize}px`, n = `${u.lineHeight}px`, {
|
|
1934
|
-
currentView:
|
|
1943
|
+
currentView: c
|
|
1935
1944
|
} = J(), {
|
|
1936
1945
|
appsData: t
|
|
1937
|
-
} = se(), s = N(() =>
|
|
1938
|
-
return (y,
|
|
1946
|
+
} = se(), s = N(() => c.value === "signIn" ? `${t.value.name}登录` : c.value === "signUp" ? `${t.value.name}账号注册` : c.value === "resetPassword" ? `${t.value.name}密码重置` : "");
|
|
1947
|
+
return (y, f) => (g(), U("div", {
|
|
1939
1948
|
class: "Title",
|
|
1940
1949
|
style: ie({
|
|
1941
1950
|
fontSize: l,
|
|
1942
1951
|
lineHeight: n
|
|
1943
1952
|
})
|
|
1944
|
-
}, [e(t).applicationLogoUrl ? (g(),
|
|
1953
|
+
}, [e(t).applicationLogoUrl ? (g(), U("img", {
|
|
1945
1954
|
key: 0,
|
|
1946
1955
|
src: e(t).applicationLogoUrl,
|
|
1947
1956
|
srcset: "",
|
|
1948
1957
|
style: ie({
|
|
1949
1958
|
width: d
|
|
1950
1959
|
})
|
|
1951
|
-
}, null, 12, Zt)) : S("", !0), z("span", null,
|
|
1960
|
+
}, null, 12, Zt)) : S("", !0), z("span", null, B(s.value), 1), ue(y.$slots, "default", {}, void 0, !0)], 4));
|
|
1952
1961
|
}
|
|
1953
1962
|
}), ye = /* @__PURE__ */ $(Jt, [["__scopeId", "data-v-5576db64"]]), Qt = {
|
|
1954
1963
|
class: "Auth"
|
|
@@ -1972,35 +1981,35 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
1972
1981
|
}) {
|
|
1973
1982
|
const d = o, l = u, {
|
|
1974
1983
|
signInSubmit: n,
|
|
1975
|
-
signUpSubmit:
|
|
1984
|
+
signUpSubmit: c,
|
|
1976
1985
|
resetPasswordSubmit: t,
|
|
1977
1986
|
currentView: s,
|
|
1978
1987
|
authSignInLoading: y,
|
|
1979
|
-
authSignUpLoading:
|
|
1980
|
-
resetPasswordLoading:
|
|
1988
|
+
authSignUpLoading: f,
|
|
1989
|
+
resetPasswordLoading: v,
|
|
1981
1990
|
switchSignUp: r,
|
|
1982
|
-
switchResetPassword:
|
|
1983
|
-
switchSignIn:
|
|
1991
|
+
switchResetPassword: m,
|
|
1992
|
+
switchSignIn: p
|
|
1984
1993
|
} = J(), {
|
|
1985
1994
|
appsAuthPageInfoApi: h
|
|
1986
1995
|
} = se();
|
|
1987
|
-
function
|
|
1996
|
+
function C() {
|
|
1988
1997
|
l("toPrivacyPolicy");
|
|
1989
1998
|
}
|
|
1990
|
-
function
|
|
1999
|
+
function P() {
|
|
1991
2000
|
l("toUserServiceAgreement");
|
|
1992
2001
|
}
|
|
1993
|
-
return h(), (
|
|
2002
|
+
return h(), (q, L) => (g(), U("div", Qt, [o.showTitle ? (g(), k(ye, {
|
|
1994
2003
|
key: 0,
|
|
1995
2004
|
size: 32,
|
|
1996
2005
|
"font-size": 20
|
|
1997
|
-
})) : S("", !0), z("div", Xt, [e(s) === "signIn" ? (g(), k(
|
|
2006
|
+
})) : S("", !0), z("div", Xt, [e(s) === "signIn" ? (g(), k(Gt, {
|
|
1998
2007
|
key: 0,
|
|
1999
2008
|
size: d.size,
|
|
2000
2009
|
loading: e(y),
|
|
2001
2010
|
onSwitchSignUp: e(r),
|
|
2002
|
-
onSwitchResetPassword: e(
|
|
2003
|
-
onSubmit:
|
|
2011
|
+
onSwitchResetPassword: e(m),
|
|
2012
|
+
onSubmit: L[0] || (L[0] = (E) => e(n)(E))
|
|
2004
2013
|
}, {
|
|
2005
2014
|
OAuth: a(() => [i(kt, {
|
|
2006
2015
|
size: d.size
|
|
@@ -2009,18 +2018,18 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
2009
2018
|
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(s) === "signUp" ? (g(), k(Kt, {
|
|
2010
2019
|
key: 1,
|
|
2011
2020
|
size: d.size,
|
|
2012
|
-
loading: e(
|
|
2013
|
-
onSwitchSignIn: e(
|
|
2014
|
-
onSubmit:
|
|
2021
|
+
loading: e(f),
|
|
2022
|
+
onSwitchSignIn: e(p),
|
|
2023
|
+
onSubmit: L[1] || (L[1] = (E) => e(c)(E))
|
|
2015
2024
|
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(s) === "resetPassword" ? (g(), k(xt, {
|
|
2016
2025
|
key: 2,
|
|
2017
2026
|
size: d.size,
|
|
2018
|
-
loading: e(
|
|
2019
|
-
onSwitchSignIn: e(
|
|
2020
|
-
onSubmit:
|
|
2027
|
+
loading: e(v),
|
|
2028
|
+
onSwitchSignIn: e(p),
|
|
2029
|
+
onSubmit: L[2] || (L[2] = (E) => e(t)(E))
|
|
2021
2030
|
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : S("", !0), i(Rt, {
|
|
2022
|
-
onToPrivacyPolicy:
|
|
2023
|
-
onToUserServiceAgreement:
|
|
2031
|
+
onToPrivacyPolicy: C,
|
|
2032
|
+
onToUserServiceAgreement: P
|
|
2024
2033
|
})])]));
|
|
2025
2034
|
}
|
|
2026
2035
|
}), ei = /* @__PURE__ */ $(Yt, [["__scopeId", "data-v-bc3a1eb8"]]), ti = /* @__PURE__ */ V({
|
|
@@ -2043,18 +2052,18 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
2043
2052
|
addSignInCallback: d
|
|
2044
2053
|
} = J(), {
|
|
2045
2054
|
show: l
|
|
2046
|
-
} = Ue(), n = o,
|
|
2055
|
+
} = Ue(), n = o, c = u;
|
|
2047
2056
|
function t(y) {
|
|
2048
2057
|
y(!0);
|
|
2049
2058
|
}
|
|
2050
2059
|
function s() {
|
|
2051
|
-
l.value = !1,
|
|
2060
|
+
l.value = !1, c("close");
|
|
2052
2061
|
}
|
|
2053
2062
|
return d(() => {
|
|
2054
2063
|
l.value = !1;
|
|
2055
|
-
}), (y,
|
|
2064
|
+
}), (y, f) => (g(), k(e(me), {
|
|
2056
2065
|
visible: e(l),
|
|
2057
|
-
"onUpdate:visible":
|
|
2066
|
+
"onUpdate:visible": f[2] || (f[2] = (v) => re(l) ? l.value = v : null),
|
|
2058
2067
|
footer: !1,
|
|
2059
2068
|
"mask-closable": !1,
|
|
2060
2069
|
"title-align": "center",
|
|
@@ -2068,8 +2077,8 @@ const hi = ve, te = /* @__PURE__ */ V({
|
|
|
2068
2077
|
default: a(() => [i(ei, {
|
|
2069
2078
|
"show-title": !1,
|
|
2070
2079
|
size: n.size,
|
|
2071
|
-
onToPrivacyPolicy:
|
|
2072
|
-
onToUserServiceAgreement:
|
|
2080
|
+
onToPrivacyPolicy: f[0] || (f[0] = (v) => c("toPrivacyPolicy")),
|
|
2081
|
+
onToUserServiceAgreement: f[1] || (f[1] = (v) => c("toUserServiceAgreement"))
|
|
2073
2082
|
}, null, 8, ["size"])]),
|
|
2074
2083
|
_: 1
|
|
2075
2084
|
}, 8, ["visible"]));
|
|
@@ -2086,7 +2095,7 @@ export {
|
|
|
2086
2095
|
ei as a,
|
|
2087
2096
|
ye as b,
|
|
2088
2097
|
_i as c,
|
|
2089
|
-
|
|
2098
|
+
Gt as d,
|
|
2090
2099
|
Kt as e,
|
|
2091
2100
|
Et as f,
|
|
2092
2101
|
ge as g,
|