@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.
Files changed (46) hide show
  1. package/dist/{AuthkitAuthModal-CX6-EB-D.js → AuthkitAuthModal-DPf1AlaQ.js} +363 -354
  2. package/dist/{AuthkitSignInPhone-D3hR0dGZ.js → AuthkitSignInPhone-CWzkKKL0.js} +4 -4
  3. package/dist/{Clipboard-CI4IUrMw.js → Clipboard-D9v7JOBm.js} +14 -13
  4. package/dist/{Contact-mQa-gB4k.js → Contact-ytZiAQRw.js} +3 -3
  5. package/dist/{CustomTable-D8ubfrWL.js → CustomTable-BCOwLyRJ.js} +2 -2
  6. package/dist/{FeedbackItem-qaxaQ8gu.js → FeedbackItem-i0oANWbH.js} +4 -4
  7. package/dist/{FeedbackModal-CUSOWVn5.js → FeedbackModal-DHWN4Jhy.js} +6 -6
  8. package/dist/{LandingPageSectionTabs-BOX6nVdh.js → LandingPageSectionTabs-DYNXKElT.js} +2 -2
  9. package/dist/{MessageHandle-WcCeYl7E.js → MessageHandle-42tZkEyh.js} +3 -3
  10. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BwZM2SQn.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-Dt5A9Six.js} +2 -2
  11. package/dist/{PaySubscriptions-DO2W3Y5v.js → PaySubscriptions-CX3DhX82.js} +4 -4
  12. package/dist/{ReferrerReferees-CXVi2pUl.js → ReferrerReferees-CdAsYLZl.js} +17 -17
  13. 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
  14. package/dist/{UserAccountMenu-CHkdka0u.js → UserAccountMenu-DBVdpUn8.js} +8 -8
  15. package/dist/{WidthContainer-BBoIS50Z.js → WidthContainer-CFNPAWZ8.js} +10 -10
  16. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  17. package/dist/apiClients-myKy30Xh.js +167 -0
  18. package/dist/authkit.js +6 -6
  19. package/dist/common/globalConfig.d.ts +2 -2
  20. package/dist/common.js +2 -2
  21. package/dist/composables.js +9 -9
  22. package/dist/feedback.js +3 -3
  23. package/dist/{index-4_tj9bS1.js → index-Bb-d5pBq.js} +1 -1
  24. package/dist/index.js +26 -26
  25. package/dist/landingPage.js +1 -1
  26. package/dist/message.js +3 -3
  27. package/dist/pay.js +1 -1
  28. package/dist/privateCom.js +1 -1
  29. package/dist/referrer.js +1 -1
  30. package/dist/style.css +1 -1
  31. package/dist/types/api/auth.generated.d.ts +822 -594
  32. package/dist/types/api/billing.generated.d.ts +72 -0
  33. package/dist/types/api/ones.generated.d.ts +0 -379
  34. package/dist/upload.js +2 -2
  35. package/dist/{useAuthkitAppsAuthPageInfo-gn2zm_NY.js → useAuthkitAppsAuthPageInfo-Bb7RIaTy.js} +1 -1
  36. package/dist/{useAuthkitCreateAndUpdate-yNpIyVXV.js → useAuthkitCreateAndUpdate-DXdMyzQQ.js} +2 -2
  37. package/dist/{useAuthkitUsersProfile-D32zPSn2.js → useAuthkitUsersProfile-4plbUlY5.js} +1 -1
  38. package/dist/{useDownloads-MF9rK9J_.js → useDownloads-gcrEJA6i.js} +2 -2
  39. package/dist/{useMessageNotifications-CCfM6W6J.js → useMessageNotifications-Bph752i8.js} +1 -1
  40. package/dist/{useSEO-DivOwPWc.js → useSEO-D1NT53Rv.js} +2 -2
  41. package/dist/{useTableHandle-DpemWl6Y.js → useTableHandle-DrYIPjL5.js} +2 -2
  42. package/dist/{useUploadCos-BVvRc0BW.js → useUploadCos-F3oBTo2B.js} +2 -2
  43. package/dist/user.js +1 -1
  44. package/package.json +2 -2
  45. package/dist/apiClients-CChPISR0.js +0 -1805
  46. 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 { c as T, g as j, h as ce, u as Ue } from "./apiClients-CChPISR0.js";
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 $e } from "./useUploadCos-BVvRc0BW.js";
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-D32zPSn2.js";
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-yNpIyVXV.js";
15
- import { u as se } from "./useAuthkitAppsAuthPageInfo-gn2zm_NY.js";
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, m) {
62
- return g(), P("svg", {
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
- }), m = w(!1), t = w(), s = w(!1);
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 T.users.profile.post({});
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 c() {
112
+ async function f() {
113
113
  if (!await t.value.validate()) {
114
114
  s.value = !0;
115
- const f = {
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: v,
121
+ data: p,
122
122
  error: h
123
- } = await T.users.update.baseInfo.post(f);
124
- s.value = !1, !h && v && (F.success("更新成功"), n.value.avatarUrl = v.avatarUrl, d("submit"));
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 p = () => {
128
+ const v = () => {
129
129
  const {
130
130
  uploadFile: r
131
- } = $e(), f = document.createElement("input");
132
- f.type = "file", f.accept = "image/*", f.style.display = "none", document.body.append(f), f.addEventListener("change", async (v) => {
133
- var U;
134
- const x = (U = v.target.files) == null ? void 0 : U[0];
135
- if (x) {
136
- m.value = !0;
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: x,
141
- onFileFinish(R, O, E) {
142
- m.value = !0;
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 T.users.update.baseInfo.post(W);
153
- m.value = !1, X || (F.success("更新成功"), y(), d("submit"));
152
+ } = await R.users.update.baseInfo.post(W);
153
+ c.value = !1, X || (F.success("更新成功"), y(), d("submit"));
154
154
  })();
155
155
  },
156
- onError(R) {
157
- console.error("上传图片失败"), m.value = !1;
156
+ onError(q) {
157
+ console.error("上传图片失败"), c.value = !1;
158
158
  }
159
159
  });
160
- } catch (R) {
161
- console.error("上传图片失败", R), m.value = !1;
160
+ } catch (q) {
161
+ console.error("上传图片失败", q), c.value = !1;
162
162
  }
163
163
  }
164
- f.remove();
165
- }), f.click();
164
+ m.remove();
165
+ }), m.click();
166
166
  };
167
- return (r, f) => (g(), k(e(H), {
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: p
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(C), {
203
+ default: a(() => [i(e(x), {
204
204
  modelValue: n.value.nickname,
205
- "onUpdate:modelValue": f[0] || (f[0] = (v) => n.value.nickname = v),
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": f[1] || (f[1] = (v) => n.value.description = v),
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: c
235
+ onClick: f
236
236
  }, {
237
- default: a(() => [...f[2] || (f[2] = [_(" 提交 ", -1)])]),
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"]]), Ge = /* @__PURE__ */ V({
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, m = w(!1);
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")), c = N(() => s.value > 0), p = () => {
266
- m.value && (s.value <= 0 ? (clearInterval(t), m.value = !1) : s.value--);
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 f() {
272
- s.value = 60, m.value = !0, t && clearInterval(t), t = setInterval(p, 1e3);
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: f
276
+ startCountFn: m
277
277
  }), oe(() => {
278
278
  t && clearInterval(t);
279
- }), (v, h) => (g(), k(e(A), {
279
+ }), (p, h) => (g(), k(e(A), {
280
280
  class: "OAuthItem",
281
281
  type: "primary",
282
282
  size: n.size,
283
- disabled: c.value,
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
- }, L(`(${y.value})`), 513), [[ke, c.value]])]),
289
+ }, B(`(${y.value})`), 513), [[ke, f.value]])]),
290
290
  _: 1
291
291
  }, 8, ["size", "disabled", "loading"]));
292
292
  }
293
- }), ae = /* @__PURE__ */ $(Ge, [["__scopeId", "data-v-2883dc6d"]]), Me = {
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)), m = w(), t = w(!1), s = w(!1), y = w(), c = w({
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 p() {
318
+ async function v() {
319
319
  t.value = !0;
320
320
  const {
321
- data: f
322
- } = await T.verify.email.retry.post({
321
+ data: m
322
+ } = await R.verify.email.retry.post({
323
323
  email: l.email
324
324
  });
325
- t.value = !1, f && (c.value.emailVerifyId = f.emailVerifyId, m.value.startCountFn());
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 v = {
330
+ const p = {
331
331
  email: l.email,
332
- userToken: c.value.userToken,
333
- emailVerifyId: c.value.emailVerifyId
332
+ userToken: f.value.userToken,
333
+ emailVerifyId: f.value.emailVerifyId
334
334
  }, {
335
335
  error: h
336
- } = await T.verify.email.post(v);
336
+ } = await R.verify.email.post(p);
337
337
  s.value = !1, h || d("next");
338
338
  }
339
339
  }
340
- return (f, v) => (g(), k(e(H), {
340
+ return (m, p) => (g(), k(e(H), {
341
341
  ref_key: "formRef",
342
342
  ref: y,
343
- model: c.value,
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(() => [_(L(n.value), 1)]),
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", Me, [i(e(C), {
370
- modelValue: c.value.userToken,
371
- "onUpdate:modelValue": v[0] || (v[0] = (h) => c.value.userToken = h),
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: m,
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: p
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(() => [...v[1] || (v[1] = [_(" 提交 ", -1)])]),
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(), m = o, t = 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 c = {
424
+ const f = {
425
425
  password: t.value.password
426
426
  }, {
427
- error: p
428
- } = await T.users.update.password.post(c);
429
- l.value = !1, p || d("submit", c);
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, c) => (g(), k(e(H), {
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: m.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(C), {
448
+ default: a(() => [i(e(x), {
449
449
  modelValue: t.value.oldPassword,
450
- "onUpdate:modelValue": c[0] || (c[0] = (p) => t.value.oldPassword = p),
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(C), {
467
+ default: a(() => [i(e(x), {
468
468
  modelValue: t.value.password,
469
- "onUpdate:modelValue": c[1] || (c[1] = (p) => t.value.password = p),
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: (p, r) => {
486
- p !== t.value.password ? r("两次密码输入不一致,请重新输入") : r();
485
+ validator: (v, r) => {
486
+ v !== t.value.password ? r("两次密码输入不一致,请重新输入") : r();
487
487
  }
488
488
  }]
489
489
  }, {
490
- default: a(() => [i(e(C), {
490
+ default: a(() => [i(e(x), {
491
491
  modelValue: t.value.confirmPassword,
492
- "onUpdate:modelValue": c[2] || (c[2] = (p) => t.value.confirmPassword = p),
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(() => [...c[3] || (c[3] = [_(" 提交 ", -1)])]),
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(), m = w("hidden"), t = o;
530
- function s(p) {
531
- m.value = p;
529
+ } = Z(), c = w("hidden"), t = o;
530
+ function s(v) {
531
+ c.value = v;
532
532
  }
533
- function y(p) {
534
- F.success("密码修改成功"), m.value = "hidden", l();
533
+ function y(v) {
534
+ F.success("密码修改成功"), c.value = "hidden", l();
535
535
  }
536
- function c() {
537
- m.value = "update";
536
+ function f() {
537
+ c.value = "update";
538
538
  }
539
539
  return K(() => {
540
540
  n.value && !u.value && l();
541
- }), (p, r) => {
542
- var f, v, h, x;
543
- return g(), P(G, null, [!((f = e(u)) != null && f.email) && !((v = e(u)) != null && v.phone) ? (g(), k(e(D), {
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] = (U) => s("update"))
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 && m.value === "hidden" ? (g(), k(e(D), {
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] = (U) => s("verify"))
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), m.value === "update" ? (g(), k(Je, {
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), m.value === "verify" ? (g(), k(le, {
576
+ }, null, 8, ["size", "loading"])) : S("", !0), c.value === "verify" ? (g(), k(le, {
577
577
  key: 3,
578
578
  size: t.size,
579
- email: (x = e(u)) == null ? void 0 : x.email,
580
- onNext: c
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(), m = w(!1), t = w(), s = 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
- m.value = !0;
617
+ c.value = !0;
618
618
  const {
619
619
  data: r
620
- } = await T.verify.email.retry.post({
620
+ } = await R.verify.email.retry.post({
621
621
  email: s.value.email
622
622
  });
623
- m.value = !1, r && (s.value.emailVerifyId = r.emailVerifyId, n.value.startCountFn());
623
+ c.value = !1, r && (s.value.emailVerifyId = r.emailVerifyId, n.value.startCountFn());
624
624
  }
625
625
  }
626
- async function c() {
627
- t.value.validate().then((p) => {
628
- p || d("submit", s.value);
626
+ async function f() {
627
+ t.value.validate().then((v) => {
628
+ v || d("submit", s.value);
629
629
  });
630
630
  }
631
- return (p, r) => (g(), P("div", Xe, [i(e(H), {
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(C), {
650
+ default: a(() => [i(e(x), {
651
651
  modelValue: s.value.email,
652
- "onUpdate:modelValue": r[0] || (r[0] = (f) => s.value.email = f),
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(C), {
667
+ default: a(() => [z("div", Ye, [i(e(x), {
668
668
  modelValue: s.value.userToken,
669
- "onUpdate:modelValue": r[1] || (r[1] = (f) => s.value.userToken = f),
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: m.value,
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(C), {
695
+ default: a(() => [i(e(x), {
696
696
  modelValue: s.value.password,
697
- "onUpdate:modelValue": r[2] || (r[2] = (f) => s.value.password = f),
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: (f, v) => {
715
- f !== s.value.password ? v("两次密码输入不一致,请重新输入") : v();
714
+ validator: (m, p) => {
715
+ m !== s.value.password ? p("两次密码输入不一致,请重新输入") : p();
716
716
  }
717
717
  }]
718
718
  }, {
719
- default: a(() => [i(e(C), {
719
+ default: a(() => [i(e(x), {
720
720
  modelValue: s.value.confirmPassword,
721
- "onUpdate:modelValue": r[3] || (r[3] = (f) => s.value.confirmPassword = f),
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(C), {
736
+ default: a(() => [i(e(x), {
737
737
  modelValue: s.value.referrerId,
738
- "onUpdate:modelValue": r[4] || (r[4] = (f) => s.value.referrerId = f),
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: c
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"), m = o;
770
- function t(c) {
771
- n.value = c;
769
+ } = Z(), n = w("hidden"), c = o;
770
+ function t(f) {
771
+ n.value = f;
772
772
  }
773
- async function s(c) {
773
+ async function s(f) {
774
774
  d.value = !0;
775
- const p = {
776
- email: c.email,
777
- userToken: c.userToken,
778
- emailVerifyId: c.emailVerifyId,
779
- password: c.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 T.users.update.email.post(p);
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
- }), (c, p) => {
792
- var r, f, v;
793
- return g(), P(G, null, [!((r = e(u)) != null && r.email) && n.value === "hidden" ? (g(), k(e(D), {
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: m.size,
798
+ size: c.size,
799
799
  type: "primary",
800
- onClick: p[0] || (p[0] = (h) => t("update"))
800
+ onClick: v[0] || (v[0] = (h) => t("update"))
801
801
  }, {
802
- default: a(() => [...p[2] || (p[2] = [_(" 绑定邮箱 ", -1)])]),
802
+ default: a(() => [...v[2] || (v[2] = [_(" 绑定邮箱 ", -1)])]),
803
803
  _: 1
804
804
  }, 8, ["size"])]),
805
- default: a(() => [p[3] || (p[3] = _(" 您还未绑定邮箱,请点击绑定邮箱 ", -1))]),
805
+ default: a(() => [v[3] || (v[3] = _(" 您还未绑定邮箱,请点击绑定邮箱 ", -1))]),
806
806
  _: 1
807
- })) : S("", !0), (f = e(u)) != null && f.email && n.value === "hidden" ? (g(), k(e(D), {
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: m.size,
812
+ size: c.size,
813
813
  type: "primary",
814
- onClick: p[1] || (p[1] = (h) => t("verify"))
814
+ onClick: v[1] || (v[1] = (h) => t("verify"))
815
815
  }, {
816
- default: a(() => [...p[4] || (p[4] = [_(" 更改邮箱 ", -1)])]),
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 [_(L(`您绑定的邮箱为${e(ce)((h = e(u)) == null ? void 0 : h.email)}`) + " ", 1)];
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: m.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: m.size,
832
- email: (v = e(u)) == null ? void 0 : v.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 m;
850
+ let c;
851
851
  const t = o;
852
- function s(f) {
853
- l.value = f;
852
+ function s(m) {
853
+ l.value = m;
854
854
  }
855
855
  async function y() {
856
- const f = j.appId;
857
- if (!f) {
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: v
863
- } = await T.oauth.github.login.get({
864
- appId: f
862
+ data: p
863
+ } = await R.oauth.github.login.get({
864
+ appId: m
865
865
  });
866
- if (v) {
866
+ if (p) {
867
867
  const {
868
868
  redirectUri: h
869
- } = v;
869
+ } = p;
870
870
  n.value = !0, window.open(h, "_blank");
871
871
  }
872
872
  }
873
- async function c() {
873
+ async function f() {
874
874
  const {
875
- error: f
876
- } = await T.users.unbind.email.post({});
877
- f || (F.success("解绑成功"), l.value = "hidden", d());
875
+ error: m
876
+ } = await R.users.unbind.email.post({});
877
+ m || (F.success("解绑成功"), l.value = "hidden", d());
878
878
  }
879
- function p() {
880
- l.value === "bind" && (l.value = "hidden", y()), l.value === "unbind" && c();
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(), m = setInterval(r, 1e3);
886
+ u.value || d(), c = setInterval(r, 1e3);
887
887
  }), oe(() => {
888
- m && clearInterval(m);
889
- }), (f, v) => {
890
- var h, x, U;
891
- return g(), P(G, null, [!((h = e(u)) != null && h.github) && l.value === "hidden" ? (g(), k(e(D), {
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: v[0] || (v[0] = (R) => s("bind"))
898
+ onClick: p[0] || (p[0] = (q) => s("bind"))
899
899
  }, {
900
- default: a(() => [...v[2] || (v[2] = [_(" 绑定GitHUb ", -1)])]),
900
+ default: a(() => [...p[2] || (p[2] = [_(" 绑定GitHUb ", -1)])]),
901
901
  _: 1
902
902
  }, 8, ["size"])]),
903
- default: a(() => [v[3] || (v[3] = _(" 请尚未绑定GitHub,请点击绑定GitHUb ", -1))]),
903
+ default: a(() => [p[3] || (p[3] = _(" 请尚未绑定GitHub,请点击绑定GitHUb ", -1))]),
904
904
  _: 1
905
- })) : S("", !0), (x = e(u)) != null && x.github && l.value === "hidden" ? (g(), k(e(D), {
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: v[1] || (v[1] = (R) => s("unbind"))
912
+ onClick: p[1] || (p[1] = (q) => s("unbind"))
913
913
  }, {
914
- default: a(() => [...v[4] || (v[4] = [_(" 解绑GitHUb ", -1)])]),
914
+ default: a(() => [...p[4] || (p[4] = [_(" 解绑GitHUb ", -1)])]),
915
915
  _: 1
916
916
  }, 8, ["size"])]),
917
917
  default: a(() => {
918
- var R, O, E;
919
- return [z("span", null, L(`您绑定的账号为 ${(O = (R = e(u)) == null ? void 0 : R.github) == null ? void 0 : O.login}`), 1), i(e(de), {
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: (U = e(u)) == null ? void 0 : U.email,
929
- onNext: p
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: m
955
+ clearUserProfile: c
956
956
  } = Z(), {
957
957
  clearAuth: t
958
- } = J(), s = w("check"), y = w(!1), c = w([]), p = w(!1), r = w(""), f = w(0);
959
- let v = null;
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 B = ((ne = n.value) == null ? void 0 : ne.email) || "";
963
- if (!B) return "";
964
- const [b, q] = B.split("@");
965
- return b.length <= 2 ? B : `${b.slice(0, 2)}***@${q}`;
966
- }), x = w(), U = w({
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
- }), R = w(!1);
971
- function O(B, b) {
972
- B !== "注销" ? b('请输入"注销"以确认操作') : b();
970
+ }), q = w(!1);
971
+ function L(O, b) {
972
+ O !== "注销" ? b('请输入"注销"以确认操作') : b();
973
973
  }
974
974
  async function E() {
975
- var B;
976
- if (y.value = !0, y.value = !1, !((B = n.value) != null && B.email)) {
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
- p.value = !0;
988
+ v.value = !0;
989
989
  const {
990
- data: B
991
- } = await T.verify.email.retry.post({
990
+ data: O
991
+ } = await R.verify.email.retry.post({
992
992
  email: n.value.email
993
993
  });
994
- p.value = !1, B && (r.value = B.emailVerifyId, F.success("验证码已发送"), s.value = "confirm", X());
994
+ v.value = !1, O && (r.value = O.emailVerifyId, F.success("验证码已发送"), s.value = "confirm", X());
995
995
  }
996
996
  function X() {
997
- f.value = 60, v && clearInterval(v), v = setInterval(() => {
998
- f.value--, f.value <= 0 && v && (clearInterval(v), v = null);
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 q;
1003
- if (await ((q = x.value) == null ? void 0 : q.validate())) return;
1004
- R.value = !0;
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 T.users.deleteAccount.post({
1008
- password: U.value.password,
1009
- userToken: U.value.userToken,
1007
+ } = await R.users.deleteAccount.post({
1008
+ password: P.value.password,
1009
+ userToken: P.value.userToken,
1010
1010
  emailVerifyId: r.value,
1011
- confirmText: U.value.confirmText
1011
+ confirmText: P.value.confirmText
1012
1012
  });
1013
- R.value = !1, b || (s.value = "success", m(), t(), l("deleted"));
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 (B, b) => s.value === "check" ? (g(), k(e(D), {
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(() => [_(L(y.value ? "检查中..." : "开始注销"), 1)]),
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(), P(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), P(G, null, ze(c.value, (q) => (g(), P("div", {
1044
- key: q.type,
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, L(q.label), 1), z("span", ot, L(q.count) + " 个", 1)]))), 128))]), z("div", rt, [i(e(A), {
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] = (q) => s.value = "check")
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] = (q) => s.value = "check")
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: p.value,
1067
+ loading: v.value,
1068
1068
  onClick: W
1069
1069
  }, {
1070
- default: a(() => [_(L(p.value ? "发送中..." : "发送验证码"), 1)]),
1070
+ default: a(() => [_(B(v.value ? "发送中..." : "发送验证码"), 1)]),
1071
1071
  _: 1
1072
1072
  }, 8, ["size", "loading"])]),
1073
1073
  _: 1
1074
1074
  })]),
1075
- default: a(() => [_(" 为确保账号安全,我们将向您的邮箱 " + L(h.value) + " 发送验证码 ", 1)]),
1075
+ default: a(() => [_(" 为确保账号安全,我们将向您的邮箱 " + B(h.value) + " 发送验证码 ", 1)]),
1076
1076
  _: 1
1077
- })) : s.value === "confirm" ? (g(), P(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(() => [_(" 验证码已发送至 " + L(h.value) + ",此操作不可逆,请谨慎操作 ", 1)]),
1083
+ default: a(() => [_(" 验证码已发送至 " + B(h.value) + ",此操作不可逆,请谨慎操作 ", 1)]),
1084
1084
  _: 1
1085
1085
  }), i(e(H), {
1086
1086
  ref_key: "formRef",
1087
- ref: x,
1088
- model: U.value,
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(C), {
1103
- modelValue: U.value.userToken,
1104
- "onUpdate:modelValue": b[2] || (b[2] = (q) => U.value.userToken = q),
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: f.value > 0,
1113
- loading: p.value,
1112
+ disabled: m.value > 0,
1113
+ loading: v.value,
1114
1114
  onClick: W
1115
1115
  }, {
1116
- default: a(() => [_(L(f.value > 0 ? `${f.value}s 后重发` : "重新发送"), 1)]),
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: U.value.password,
1132
- "onUpdate:modelValue": b[3] || (b[3] = (q) => U.value.password = q),
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: O
1144
+ validator: L
1145
1145
  }]
1146
1146
  }, {
1147
- default: a(() => [i(e(C), {
1148
- modelValue: U.value.confirmText,
1149
- "onUpdate:modelValue": b[4] || (b[4] = (q) => U.value.confirmText = q),
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] = (q) => s.value = "check")
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: R.value,
1164
+ loading: q.value,
1165
1165
  onClick: we
1166
1166
  }, {
1167
- default: a(() => [_(L(R.value ? "注销中..." : "确认注销"), 1)]),
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 m() {
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 c(v) {
1265
- const h = v.path;
1264
+ function f(p) {
1265
+ const h = p.path;
1266
1266
  s.value = [h];
1267
1267
  }
1268
1268
  const {
1269
- changeType: p,
1269
+ changeType: v,
1270
1270
  show: r
1271
1271
  } = Re(l);
1272
- function f(v, h) {
1273
- console.log(v), r.value = h, p.value = "编辑";
1272
+ function m(p, h) {
1273
+ console.log(p), r.value = h, v.value = "编辑";
1274
1274
  }
1275
1275
  return u({
1276
- setData: f
1277
- }), (v, h) => (g(), k(e(me), {
1276
+ setData: m
1277
+ }), (p, h) => (g(), k(e(me), {
1278
1278
  visible: e(r),
1279
- "onUpdate:visible": h[1] || (h[1] = (x) => re(r) ? r.value = x : null),
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] = (x) => s.value = x),
1290
+ "onUpdate:selectedKeys": h[0] || (h[0] = (C) => s.value = C),
1291
1291
  menus: y.value,
1292
- onChange: c
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: m
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 m = {
1334
- github: () => T.oauth.github.login.get(n),
1335
- google: () => T.oauth.google.login.get(n),
1336
- microsoft: () => T.oauth.microsoft.login.get(n)
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 m[o]();
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, L(d.label), 1)]),
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: m
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(), P("div", ht, [t.value ? (g(), k(e(Pe), {
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] = (c) => e(l)())
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] = (c) => e(n)())
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] = (c) => e(m)())
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(), m = w(!1), t = w(), s = 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
- m.value = !0;
1488
+ c.value = !0;
1489
1489
  const {
1490
1490
  data: r
1491
- } = await T.verify.email.retry.post({
1491
+ } = await R.verify.email.retry.post({
1492
1492
  email: s.value.email
1493
1493
  });
1494
- m.value = !1, r && (s.value.emailVerifyId = r.emailVerifyId, n.value.startCountFn());
1494
+ c.value = !1, r && (s.value.emailVerifyId = r.emailVerifyId, n.value.startCountFn());
1495
1495
  }
1496
1496
  }
1497
- async function c() {
1498
- t.value.validate().then((p) => {
1499
- p || d("submit", s.value);
1497
+ async function f() {
1498
+ t.value.validate().then((v) => {
1499
+ v || d("submit", s.value);
1500
1500
  });
1501
1501
  }
1502
- return (p, r) => (g(), P("div", zt, [i(e(H), {
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(C), {
1521
+ default: a(() => [i(e(x), {
1522
1522
  modelValue: s.value.email,
1523
- "onUpdate:modelValue": r[0] || (r[0] = (f) => s.value.email = f),
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(C), {
1536
+ default: a(() => [z("div", St, [i(e(x), {
1537
1537
  modelValue: s.value.userToken,
1538
- "onUpdate:modelValue": r[1] || (r[1] = (f) => s.value.userToken = f),
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: m.value,
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(C), {
1563
+ default: a(() => [i(e(x), {
1564
1564
  modelValue: s.value.password,
1565
- "onUpdate:modelValue": r[2] || (r[2] = (f) => s.value.password = f),
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: (f, v) => {
1583
- f !== s.value.password ? v("两次密码输入不一致,请重新输入") : v();
1582
+ validator: (m, p) => {
1583
+ m !== s.value.password ? p("两次密码输入不一致,请重新输入") : p();
1584
1584
  }
1585
1585
  }]
1586
1586
  }, {
1587
- default: a(() => [i(e(C), {
1587
+ default: a(() => [i(e(x), {
1588
1588
  modelValue: s.value.confirmPassword,
1589
- "onUpdate:modelValue": r[3] || (r[3] = (f) => s.value.confirmPassword = f),
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: c
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, m) => (g(), P("div", Pt, [z("span", null, [m[1] || (m[1] = z("span", null, "已经有账号?", -1)), i(e(M), {
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(() => [...m[0] || (m[0] = [_("去登陆", -1)])]),
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 m(t) {
1654
+ async function c(t) {
1655
1655
  d("submit", t);
1656
1656
  }
1657
- return (t, s) => (g(), P("div", $t, [i(At, {
1657
+ return (t, s) => (g(), U("div", $t, [i(At, {
1658
1658
  loading: o.loading,
1659
1659
  size: l.size,
1660
- onSubmit: m
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 (m, t) => (g(), P("div", qt, [t[2] || (t[2] = z("span", null, " 注册登陆即表示同意", -1)), i(e(M), {
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(M), {
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, c) {
1714
+ async function n(y, f) {
1715
+ var q;
1715
1716
  if (!y) {
1716
- c("请输入密码");
1717
+ f("请输入密码");
1717
1718
  return;
1718
1719
  }
1719
1720
  const {
1720
- data: p
1721
- } = await T.verify.password.post({
1721
+ data: v,
1722
+ error: r
1723
+ } = await R.verify.password.post({
1722
1724
  password: y
1723
1725
  });
1724
- if (!p) {
1725
- c("密码验证请求出错!");
1726
+ if (r) {
1727
+ f(r.message || "密码验证请求出错!");
1728
+ return;
1729
+ }
1730
+ if (!v) {
1731
+ f("密码验证请求出错!");
1726
1732
  return;
1727
1733
  }
1728
1734
  const {
1729
- isValidate: r,
1730
- message: f
1731
- } = p;
1732
- if (!r) {
1733
- c(f || "密码强度不足");
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
- c();
1745
+ f();
1737
1746
  }
1738
- const m = w(), t = w({
1747
+ const c = w(), t = w({
1739
1748
  email: void 0,
1740
1749
  password: void 0
1741
1750
  });
1742
1751
  async function s() {
1743
- m.value.validate().then((y) => {
1752
+ c.value.validate().then((y) => {
1744
1753
  y || d("submit", t.value);
1745
1754
  });
1746
1755
  }
1747
- return (y, c) => (g(), P("div", Lt, [i(e(H), {
1756
+ return (y, f) => (g(), U("div", Lt, [i(e(H), {
1748
1757
  ref_key: "formRef",
1749
- ref: m,
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(C), {
1775
+ default: a(() => [i(e(x), {
1767
1776
  modelValue: t.value.email,
1768
- "onUpdate:modelValue": c[0] || (c[0] = (p) => t.value.email = p),
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(C), {
1794
+ default: a(() => [i(e(x), {
1786
1795
  modelValue: t.value.password,
1787
- "onUpdate:modelValue": c[1] || (c[1] = (p) => t.value.password = p),
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(() => [...c[2] || (c[2] = [_(" 登陆 ", -1)])]),
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-9f99281d"]]), Dt = {
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 (m, t) => (g(), P("div", Dt, [z("span", null, [t[1] || (t[1] = z("span", null, " 还没有账户?", -1)), i(e(M), {
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(M), {
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
- }, Gt = /* @__PURE__ */ V({
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(), m = N(() => !!n.OAuth);
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(c) {
1866
- d("submit", c);
1874
+ async function y(f) {
1875
+ d("submit", f);
1867
1876
  }
1868
- return (c, p) => (g(), P("div", Ht, [S("", !0), i(Et, {
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"]), m.value ? ue(c.$slots, "OAuth", {
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
- }), Mt = /* @__PURE__ */ $(Gt, [["__scopeId", "data-v-f52ce3b3"]]), jt = {
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 m(t) {
1911
+ async function c(t) {
1903
1912
  d("submit", t);
1904
1913
  }
1905
- return (t, s) => (g(), P("div", jt, [i(fe, {
1914
+ return (t, s) => (g(), U("div", jt, [i(fe, {
1906
1915
  size: l.size,
1907
1916
  loading: o.loading,
1908
- onSubmit: m
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: m
1943
+ currentView: c
1935
1944
  } = J(), {
1936
1945
  appsData: t
1937
- } = se(), s = N(() => m.value === "signIn" ? `${t.value.name}登录` : m.value === "signUp" ? `${t.value.name}账号注册` : m.value === "resetPassword" ? `${t.value.name}密码重置` : "");
1938
- return (y, c) => (g(), P("div", {
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(), P("img", {
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, L(s.value), 1), ue(y.$slots, "default", {}, void 0, !0)], 4));
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: m,
1984
+ signUpSubmit: c,
1976
1985
  resetPasswordSubmit: t,
1977
1986
  currentView: s,
1978
1987
  authSignInLoading: y,
1979
- authSignUpLoading: c,
1980
- resetPasswordLoading: p,
1988
+ authSignUpLoading: f,
1989
+ resetPasswordLoading: v,
1981
1990
  switchSignUp: r,
1982
- switchResetPassword: f,
1983
- switchSignIn: v
1991
+ switchResetPassword: m,
1992
+ switchSignIn: p
1984
1993
  } = J(), {
1985
1994
  appsAuthPageInfoApi: h
1986
1995
  } = se();
1987
- function x() {
1996
+ function C() {
1988
1997
  l("toPrivacyPolicy");
1989
1998
  }
1990
- function U() {
1999
+ function P() {
1991
2000
  l("toUserServiceAgreement");
1992
2001
  }
1993
- return h(), (R, O) => (g(), P("div", Qt, [o.showTitle ? (g(), k(ye, {
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(Mt, {
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(f),
2003
- onSubmit: O[0] || (O[0] = (E) => e(n)(E))
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(c),
2013
- onSwitchSignIn: e(v),
2014
- onSubmit: O[1] || (O[1] = (E) => e(m)(E))
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(p),
2019
- onSwitchSignIn: e(v),
2020
- onSubmit: O[2] || (O[2] = (E) => e(t)(E))
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: x,
2023
- onToUserServiceAgreement: U
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, m = u;
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, m("close");
2060
+ l.value = !1, c("close");
2052
2061
  }
2053
2062
  return d(() => {
2054
2063
  l.value = !1;
2055
- }), (y, c) => (g(), k(e(me), {
2064
+ }), (y, f) => (g(), k(e(me), {
2056
2065
  visible: e(l),
2057
- "onUpdate:visible": c[2] || (c[2] = (p) => re(l) ? l.value = p : null),
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: c[0] || (c[0] = (p) => m("toPrivacyPolicy")),
2072
- onToUserServiceAgreement: c[1] || (c[1] = (p) => m("toUserServiceAgreement"))
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
- Mt as d,
2098
+ Gt as d,
2090
2099
  Kt as e,
2091
2100
  Et as f,
2092
2101
  ge as g,