@huyooo/ui 0.7.6 → 0.7.8

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.
@@ -1,16 +1,16 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { defineComponent as A, computed as F, createElementBlock as V, openBlock as g, normalizeStyle as le, normalizeClass as ze, createElementVNode as z, ref as w, createBlock as k, unref as e, withCtx as n, createVNode as i, createTextVNode as _, onMounted as Z, onUnmounted as re, withDirectives as Se, toDisplayString as T, vShow as Ie, Fragment as G, createCommentVNode as S, renderList as Ae, isRef as ue, useSlots as Pe, renderSlot as de } from "vue";
5
- import { Form as H, FormItem as I, Avatar as ce, Input as q, Textarea as Ve, Button as P, Message as N, Alert as D, Space as ee, InputPassword as Ue, Result as $e, Modal as me, Divider as Ce, Link as j } from "@arco-design/web-vue";
4
+ import { defineComponent as A, computed as F, createElementBlock as V, openBlock as g, normalizeStyle as le, normalizeClass as ze, createElementVNode as z, ref as w, createBlock as k, unref as e, withCtx as a, createVNode as i, createTextVNode as _, onMounted as Z, onUnmounted as re, withDirectives as Se, toDisplayString as T, vShow as Ie, Fragment as G, createCommentVNode as S, renderList as Ae, isRef as ue, useSlots as Pe, renderSlot as de } from "vue";
5
+ import { Form as H, FormItem as I, Avatar as me, Input as x, Textarea as Ve, Button as P, Message as N, Alert as D, Space as ee, InputPassword as Ue, Result as $e, Modal as ce, Divider as Ce, Link as j } from "@arco-design/web-vue";
6
6
  /* empty css */
7
7
  import { g as E, c as M, h as fe, u as xe } from "./auth-bwwc2iT8.js";
8
8
  /* empty css */
9
9
  import { u as qe } from "./useUploadCos-EWMNJjRf.js";
10
10
  import { b as Re, c as oe, d as Te, a as J, e as Le, f as Be, u as Q, g as Oe, h as Ee } from "./useAuthkitUsersProfile-hZ9L3rYe.js";
11
11
  import { _ as De, g as Ne, i as Fe } from "./plugin-vue_export-helper-LjDO2Zua.js";
12
- import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- import { M as He } from "./Menu-BjWB9hre.js";
12
+ import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ import { M as He } from "./Menu-BbmibpaB.js";
14
14
  import { u as Me } from "./useAuthkitCreateAndUpdate-Co5wMbv7.js";
15
15
  import { u as se } from "./useAuthkitAppsAuthPageInfo-CzZmhPMm.js";
16
16
  import { Icon as Ge } from "@iconify/vue";
@@ -43,14 +43,14 @@ const je = A({
43
43
  setup(l, {
44
44
  emit: r
45
45
  }) {
46
- const u = Ne("icon"), a = F(() => [u, `${u}-camera`, {
46
+ const u = Ne("icon"), n = F(() => [u, `${u}-camera`, {
47
47
  [`${u}-spin`]: l.spin
48
48
  }]), o = F(() => {
49
49
  const t = {};
50
50
  return l.size && (t.fontSize = Fe(l.size) ? `${l.size}px` : l.size), l.rotate && (t.transform = `rotate(${l.rotate}deg)`), t;
51
51
  });
52
52
  return {
53
- cls: a,
53
+ cls: n,
54
54
  innerStyle: o,
55
55
  onClick: (t) => {
56
56
  r("click", t);
@@ -58,7 +58,7 @@ const je = A({
58
58
  };
59
59
  }
60
60
  }), We = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
61
- function Ke(l, r, u, a, o, d) {
61
+ function Ke(l, r, u, n, o, d) {
62
62
  return g(), V("svg", {
63
63
  viewBox: "0 0 48 48",
64
64
  fill: "none",
@@ -78,8 +78,8 @@ var te = /* @__PURE__ */ De(je, [["render", Ke]]);
78
78
  const Ze = Object.assign(te, {
79
79
  install: (l, r) => {
80
80
  var u;
81
- const a = (u = r == null ? void 0 : r.iconPrefix) != null ? u : "";
82
- l.component(a + te.name, te);
81
+ const n = (u = r == null ? void 0 : r.iconPrefix) != null ? u : "";
82
+ l.component(n + te.name, te);
83
83
  }
84
84
  }), Je = {
85
85
  class: "handle"
@@ -95,7 +95,7 @@ const Ze = Object.assign(te, {
95
95
  setup(l, {
96
96
  emit: r
97
97
  }) {
98
- const u = r, a = l, o = w({
98
+ const u = r, n = l, o = w({
99
99
  id: void 0,
100
100
  nickname: "",
101
101
  description: "",
@@ -104,16 +104,16 @@ const Ze = Object.assign(te, {
104
104
  }), d = w(!1), t = w(), s = w(!1);
105
105
  function y() {
106
106
  s.value = !0, Re().then(({
107
- data: c
107
+ data: m
108
108
  }) => {
109
- s.value = !1, o.value.id = c.id, o.value.nickname = c.nickname, o.value.description = c.description, o.value.avatar = c.avatar, o.value.avatarUrl = c.avatarUrl;
109
+ s.value = !1, o.value.id = m.id, o.value.nickname = m.nickname, o.value.description = m.description, o.value.avatar = m.avatar, o.value.avatarUrl = m.avatarUrl;
110
110
  }).catch(() => {
111
111
  s.value = !1;
112
112
  });
113
113
  }
114
- function m() {
115
- t.value.validate().then((c) => {
116
- if (!c) {
114
+ function c() {
115
+ t.value.validate().then((m) => {
116
+ if (!m) {
117
117
  s.value = !0;
118
118
  const f = {
119
119
  id: o.value.id,
@@ -134,17 +134,17 @@ const Ze = Object.assign(te, {
134
134
  y();
135
135
  const p = () => {
136
136
  const {
137
- uploadFile: c
137
+ uploadFile: m
138
138
  } = qe(), f = document.createElement("input");
139
139
  f.type = "file", f.accept = "image/*", f.style.display = "none", document.body.append(f), f.addEventListener("change", async (v) => {
140
- var $;
141
- const U = ($ = v.target.files) == null ? void 0 : $[0];
142
- if (U) {
140
+ var U;
141
+ const q = (U = v.target.files) == null ? void 0 : U[0];
142
+ if (q) {
143
143
  d.value = !0;
144
144
  try {
145
- c({
145
+ m({
146
146
  bucketId: E.avatarBucketId,
147
- file: U,
147
+ file: q,
148
148
  onFileFinish(R, B, O) {
149
149
  d.value = !0;
150
150
  const W = {
@@ -170,14 +170,14 @@ const Ze = Object.assign(te, {
170
170
  f.remove();
171
171
  }), f.click();
172
172
  };
173
- return (c, f) => (g(), k(e(H), {
173
+ return (m, f) => (g(), k(e(H), {
174
174
  ref_key: "formRef",
175
175
  ref: t,
176
176
  model: o.value,
177
177
  "auto-label-width": "",
178
- size: a.size
178
+ size: n.size
179
179
  }, {
180
- default: n(() => [i(e(I), {
180
+ default: a(() => [i(e(I), {
181
181
  field: "avatar",
182
182
  label: "头像",
183
183
  rules: [{
@@ -185,7 +185,7 @@ const Ze = Object.assign(te, {
185
185
  message: "请上传头像"
186
186
  }]
187
187
  }, {
188
- default: n(() => [i(e(ce), {
188
+ default: a(() => [i(e(me), {
189
189
  "image-url": o.value.avatarUrl,
190
190
  size: 42,
191
191
  "object-fit": "cover",
@@ -194,7 +194,7 @@ const Ze = Object.assign(te, {
194
194
  },
195
195
  onClick: p
196
196
  }, {
197
- "trigger-icon": n(() => [i(e(Ze))]),
197
+ "trigger-icon": a(() => [i(e(Ze))]),
198
198
  _: 1
199
199
  }, 8, ["image-url"])]),
200
200
  _: 1
@@ -206,7 +206,7 @@ const Ze = Object.assign(te, {
206
206
  message: "请输入昵称"
207
207
  }]
208
208
  }, {
209
- default: n(() => [i(e(q), {
209
+ default: a(() => [i(e(x), {
210
210
  modelValue: o.value.nickname,
211
211
  "onUpdate:modelValue": f[0] || (f[0] = (v) => o.value.nickname = v),
212
212
  placeholder: "请输入昵称"
@@ -220,7 +220,7 @@ const Ze = Object.assign(te, {
220
220
  message: "请输入描述"
221
221
  }]
222
222
  }, {
223
- default: n(() => [i(e(Ve), {
223
+ default: a(() => [i(e(Ve), {
224
224
  modelValue: o.value.description,
225
225
  "onUpdate:modelValue": f[1] || (f[1] = (v) => o.value.description = v),
226
226
  placeholder: "请输入描述",
@@ -235,12 +235,12 @@ const Ze = Object.assign(te, {
235
235
  label: "",
236
236
  rules: []
237
237
  }, {
238
- default: n(() => [z("div", Je, [i(e(P), {
238
+ default: a(() => [z("div", Je, [i(e(P), {
239
239
  type: "primary",
240
240
  loading: s.value,
241
- onClick: m
241
+ onClick: c
242
242
  }, {
243
- default: n(() => [...f[2] || (f[2] = [_(" 提交 ", -1)])]),
243
+ default: a(() => [...f[2] || (f[2] = [_(" 提交 ", -1)])]),
244
244
  _: 1
245
245
  }, 8, ["loading"])])]),
246
246
  _: 1
@@ -248,7 +248,7 @@ const Ze = Object.assign(te, {
248
248
  _: 1
249
249
  }, 8, ["model", "size"]));
250
250
  }
251
- }), Xe = /* @__PURE__ */ C(Qe, [["__scopeId", "data-v-c241b7f8"]]);
251
+ }), Xe = /* @__PURE__ */ $(Qe, [["__scopeId", "data-v-c241b7f8"]]);
252
252
  function Ye(l) {
253
253
  return M({
254
254
  url: `${E.authPrefixUrl}/restfulApi/verify/email`,
@@ -295,13 +295,13 @@ const tt = /* @__PURE__ */ A({
295
295
  expose: r,
296
296
  emit: u
297
297
  }) {
298
- const a = u, o = l, d = w(!1);
298
+ const n = u, o = l, d = w(!1);
299
299
  let t;
300
- const s = w(0), y = F(() => s.value.toString().padStart(2, "0")), m = F(() => s.value > 0), p = () => {
300
+ const s = w(0), y = F(() => s.value.toString().padStart(2, "0")), c = F(() => s.value > 0), p = () => {
301
301
  d.value && (s.value <= 0 ? (clearInterval(t), d.value = !1) : s.value--);
302
302
  };
303
- function c() {
304
- a("send");
303
+ function m() {
304
+ n("send");
305
305
  }
306
306
  function f() {
307
307
  s.value = 60, d.value = !0, t && clearInterval(t), t = setInterval(p, 1e3);
@@ -315,17 +315,17 @@ const tt = /* @__PURE__ */ A({
315
315
  class: "OAuthItem",
316
316
  type: "primary",
317
317
  size: o.size,
318
- disabled: m.value,
318
+ disabled: c.value,
319
319
  loading: o.loading,
320
- onClick: c
320
+ onClick: m
321
321
  }, {
322
- default: n(() => [b[0] || (b[0] = z("span", null, " 发送验证码", -1)), Se(z("span", {
322
+ default: a(() => [b[0] || (b[0] = z("span", null, " 发送验证码", -1)), Se(z("span", {
323
323
  class: "verify-code-timer"
324
- }, T(`(${y.value})`), 513), [[Ie, m.value]])]),
324
+ }, T(`(${y.value})`), 513), [[Ie, c.value]])]),
325
325
  _: 1
326
326
  }, 8, ["size", "disabled", "loading"]));
327
327
  }
328
- }), ne = /* @__PURE__ */ C(tt, [["__scopeId", "data-v-2883dc6d"]]), it = {
328
+ }), ae = /* @__PURE__ */ $(tt, [["__scopeId", "data-v-2883dc6d"]]), it = {
329
329
  class: "sendVerifyCodeItem"
330
330
  }, lt = {
331
331
  class: "handle"
@@ -346,29 +346,29 @@ const tt = /* @__PURE__ */ A({
346
346
  setup(l, {
347
347
  emit: r
348
348
  }) {
349
- const u = r, a = l, o = F(() => fe(a.email)), d = w(), t = w(!1), s = w(!1), y = w(), m = w({
349
+ const u = r, n = l, o = F(() => fe(n.email)), d = w(), t = w(!1), s = w(!1), y = w(), c = w({
350
350
  userToken: void 0,
351
351
  emailVerifyId: void 0
352
352
  });
353
353
  async function p() {
354
354
  t.value = !0, X({
355
- email: a.email
355
+ email: n.email
356
356
  }).then(({
357
357
  data: f
358
358
  }) => {
359
- m.value.emailVerifyId = f.emailVerifyId, t.value = !1, d.value.startCountFn();
359
+ c.value.emailVerifyId = f.emailVerifyId, t.value = !1, d.value.startCountFn();
360
360
  }).catch(() => {
361
361
  t.value = !1;
362
362
  });
363
363
  }
364
- async function c() {
364
+ async function m() {
365
365
  y.value.validate(["userToken"]).then((f) => {
366
366
  if (!f) {
367
367
  s.value = !0;
368
368
  const v = {
369
- email: a.email,
370
- userToken: m.value.userToken,
371
- emailVerifyId: m.value.emailVerifyId
369
+ email: n.email,
370
+ userToken: c.value.userToken,
371
+ emailVerifyId: c.value.emailVerifyId
372
372
  };
373
373
  Ye(v).then(() => {
374
374
  s.value = !1, u("next");
@@ -381,11 +381,11 @@ const tt = /* @__PURE__ */ A({
381
381
  return (f, v) => (g(), k(e(H), {
382
382
  ref_key: "formRef",
383
383
  ref: y,
384
- model: m.value,
384
+ model: c.value,
385
385
  "auto-label-width": "",
386
- size: a.size
386
+ size: n.size
387
387
  }, {
388
- default: n(() => [i(e(I), {
388
+ default: a(() => [i(e(I), {
389
389
  field: "email",
390
390
  label: "邮箱",
391
391
  rules: [{
@@ -396,7 +396,7 @@ const tt = /* @__PURE__ */ A({
396
396
  message: "请输入有效的邮箱"
397
397
  }]
398
398
  }, {
399
- default: n(() => [_(T(o.value), 1)]),
399
+ default: a(() => [_(T(o.value), 1)]),
400
400
  _: 1
401
401
  }), i(e(I), {
402
402
  field: "userToken",
@@ -407,14 +407,14 @@ const tt = /* @__PURE__ */ A({
407
407
  message: "请输入验证码"
408
408
  }]
409
409
  }, {
410
- default: n(() => [z("div", it, [i(e(q), {
411
- modelValue: m.value.userToken,
412
- "onUpdate:modelValue": v[0] || (v[0] = (b) => m.value.userToken = b),
410
+ default: a(() => [z("div", it, [i(e(x), {
411
+ modelValue: c.value.userToken,
412
+ "onUpdate:modelValue": v[0] || (v[0] = (b) => c.value.userToken = b),
413
413
  placeholder: "请输入验证码"
414
- }, null, 8, ["modelValue"]), i(ne, {
414
+ }, null, 8, ["modelValue"]), i(ae, {
415
415
  ref_key: "SendVerifyCodeRef",
416
416
  ref: d,
417
- size: a.size,
417
+ size: n.size,
418
418
  loading: t.value,
419
419
  style: {
420
420
  "margin-left": "10px"
@@ -427,12 +427,12 @@ const tt = /* @__PURE__ */ A({
427
427
  label: "",
428
428
  rules: []
429
429
  }, {
430
- default: n(() => [z("div", lt, [i(e(P), {
430
+ default: a(() => [z("div", lt, [i(e(P), {
431
431
  loading: s.value,
432
432
  type: "primary",
433
- onClick: c
433
+ onClick: m
434
434
  }, {
435
- default: n(() => [...v[1] || (v[1] = [_(" 提交 ", -1)])]),
435
+ default: a(() => [...v[1] || (v[1] = [_(" 提交 ", -1)])]),
436
436
  _: 1
437
437
  }, 8, ["loading"])])]),
438
438
  _: 1
@@ -440,9 +440,9 @@ const tt = /* @__PURE__ */ A({
440
440
  _: 1
441
441
  }, 8, ["model", "size"]));
442
442
  }
443
- }), ae = /* @__PURE__ */ C(st, [["__scopeId", "data-v-89ebb370"]]), nt = {
443
+ }), ne = /* @__PURE__ */ $(st, [["__scopeId", "data-v-89ebb370"]]), at = {
444
444
  class: "handle"
445
- }, at = /* @__PURE__ */ A({
445
+ }, nt = /* @__PURE__ */ A({
446
446
  __name: "AuthkitPasswordUpdate",
447
447
  props: {
448
448
  size: {
@@ -454,7 +454,7 @@ const tt = /* @__PURE__ */ A({
454
454
  setup(l, {
455
455
  emit: r
456
456
  }) {
457
- const u = r, a = w(!1), o = w(), d = l, t = w({
457
+ const u = r, n = w(!1), o = w(), d = l, t = w({
458
458
  oldPassword: "",
459
459
  password: "",
460
460
  confirmPassword: ""
@@ -462,25 +462,25 @@ const tt = /* @__PURE__ */ A({
462
462
  async function s() {
463
463
  o.value.validate().then((y) => {
464
464
  if (!y) {
465
- const m = {
465
+ const c = {
466
466
  password: t.value.password
467
467
  };
468
- Te(m).then(() => {
469
- a.value = !1, u("submit", m);
468
+ Te(c).then(() => {
469
+ n.value = !1, u("submit", c);
470
470
  }).catch(() => {
471
- a.value = !1;
471
+ n.value = !1;
472
472
  });
473
473
  }
474
474
  });
475
475
  }
476
- return (y, m) => (g(), k(e(H), {
476
+ return (y, c) => (g(), k(e(H), {
477
477
  ref_key: "formRef",
478
478
  ref: o,
479
479
  model: t.value,
480
480
  "auto-label-width": "",
481
481
  size: d.size
482
482
  }, {
483
- default: n(() => [i(e(I), {
483
+ default: a(() => [i(e(I), {
484
484
  field: "oldPassword",
485
485
  label: "当前密码",
486
486
  "hide-label": "",
@@ -489,9 +489,9 @@ const tt = /* @__PURE__ */ A({
489
489
  message: "请输入当前密码"
490
490
  }]
491
491
  }, {
492
- default: n(() => [i(e(q), {
492
+ default: a(() => [i(e(x), {
493
493
  modelValue: t.value.oldPassword,
494
- "onUpdate:modelValue": m[0] || (m[0] = (p) => t.value.oldPassword = p),
494
+ "onUpdate:modelValue": c[0] || (c[0] = (p) => t.value.oldPassword = p),
495
495
  placeholder: "请输入当前密码",
496
496
  type: "password"
497
497
  }, null, 8, ["modelValue"])]),
@@ -508,9 +508,9 @@ const tt = /* @__PURE__ */ A({
508
508
  message: "新密码不能少于10字符"
509
509
  }]
510
510
  }, {
511
- default: n(() => [i(e(q), {
511
+ default: a(() => [i(e(x), {
512
512
  modelValue: t.value.password,
513
- "onUpdate:modelValue": m[1] || (m[1] = (p) => t.value.password = p),
513
+ "onUpdate:modelValue": c[1] || (c[1] = (p) => t.value.password = p),
514
514
  placeholder: "请输入新密码",
515
515
  type: "password"
516
516
  }, null, 8, ["modelValue"])]),
@@ -526,14 +526,14 @@ const tt = /* @__PURE__ */ A({
526
526
  minLength: 10,
527
527
  message: "确认密码不能少于10字符"
528
528
  }, {
529
- validator: (p, c) => {
530
- p !== t.value.password ? c("两次密码输入不一致,请重新输入") : c();
529
+ validator: (p, m) => {
530
+ p !== t.value.password ? m("两次密码输入不一致,请重新输入") : m();
531
531
  }
532
532
  }]
533
533
  }, {
534
- default: n(() => [i(e(q), {
534
+ default: a(() => [i(e(x), {
535
535
  modelValue: t.value.confirmPassword,
536
- "onUpdate:modelValue": m[2] || (m[2] = (p) => t.value.confirmPassword = p),
536
+ "onUpdate:modelValue": c[2] || (c[2] = (p) => t.value.confirmPassword = p),
537
537
  placeholder: "请输入确认密码密码",
538
538
  type: "password"
539
539
  }, null, 8, ["modelValue"])]),
@@ -543,12 +543,12 @@ const tt = /* @__PURE__ */ A({
543
543
  label: "",
544
544
  rules: []
545
545
  }, {
546
- default: n(() => [z("div", nt, [i(e(P), {
546
+ default: a(() => [z("div", at, [i(e(P), {
547
547
  type: "primary",
548
- loading: a.value,
548
+ loading: n.value,
549
549
  onClick: s
550
550
  }, {
551
- default: n(() => [...m[3] || (m[3] = [_(" 提交 ", -1)])]),
551
+ default: a(() => [...c[3] || (c[3] = [_(" 提交 ", -1)])]),
552
552
  _: 1
553
553
  }, 8, ["loading"])])]),
554
554
  _: 1
@@ -556,7 +556,7 @@ const tt = /* @__PURE__ */ A({
556
556
  _: 1
557
557
  }, 8, ["model", "size"]));
558
558
  }
559
- }), ot = /* @__PURE__ */ C(at, [["__scopeId", "data-v-a9e25b03"]]), rt = /* @__PURE__ */ A({
559
+ }), ot = /* @__PURE__ */ $(nt, [["__scopeId", "data-v-a9e25b03"]]), rt = /* @__PURE__ */ A({
560
560
  __name: "AuthkitSetPassword",
561
561
  props: {
562
562
  size: {
@@ -568,60 +568,60 @@ const tt = /* @__PURE__ */ A({
568
568
  const {
569
569
  userProfile: r,
570
570
  loading: u,
571
- fetchUserProfile: a,
571
+ fetchUserProfile: n,
572
572
  isLoggedIn: o
573
573
  } = J(), d = w("hidden"), t = l;
574
574
  function s(p) {
575
575
  d.value = p;
576
576
  }
577
577
  function y(p) {
578
- N.success("密码修改成功"), d.value = "hidden", a();
578
+ N.success("密码修改成功"), d.value = "hidden", n();
579
579
  }
580
- function m() {
580
+ function c() {
581
581
  d.value = "update";
582
582
  }
583
583
  return Z(() => {
584
- o.value && !r.value && a();
585
- }), (p, c) => {
586
- var f, v, b, U;
584
+ o.value && !r.value && n();
585
+ }), (p, m) => {
586
+ var f, v, b, q;
587
587
  return g(), V(G, null, [!((f = e(r)) != null && f.email) && !((v = e(r)) != null && v.phone) ? (g(), k(e(D), {
588
588
  key: 0,
589
589
  title: "去绑定邮箱"
590
590
  }, {
591
- action: n(() => [i(e(P), {
591
+ action: a(() => [i(e(P), {
592
592
  size: t.size,
593
593
  type: "primary",
594
- onClick: c[0] || (c[0] = ($) => s("update"))
594
+ onClick: m[0] || (m[0] = (U) => s("update"))
595
595
  }, {
596
- default: n(() => [...c[2] || (c[2] = [_(" 去绑定邮箱 ", -1)])]),
596
+ default: a(() => [...m[2] || (m[2] = [_(" 去绑定邮箱 ", -1)])]),
597
597
  _: 1
598
598
  }, 8, ["size"])]),
599
- default: n(() => [c[3] || (c[3] = _(" 请先去绑定邮箱或者手机号码,才能设置密码 ", -1))]),
599
+ default: a(() => [m[3] || (m[3] = _(" 请先去绑定邮箱或者手机号码,才能设置密码 ", -1))]),
600
600
  _: 1
601
601
  })) : S("", !0), (b = e(r)) != null && b.email && d.value === "hidden" ? (g(), k(e(D), {
602
602
  key: 1,
603
603
  title: "更改密码"
604
604
  }, {
605
- action: n(() => [i(e(P), {
605
+ action: a(() => [i(e(P), {
606
606
  size: t.size,
607
607
  type: "primary",
608
- onClick: c[1] || (c[1] = ($) => s("verify"))
608
+ onClick: m[1] || (m[1] = (U) => s("verify"))
609
609
  }, {
610
- default: n(() => [...c[4] || (c[4] = [_("更改密码", -1)])]),
610
+ default: a(() => [...m[4] || (m[4] = [_("更改密码", -1)])]),
611
611
  _: 1
612
612
  }, 8, ["size"])]),
613
- default: n(() => [c[5] || (c[5] = _(" 为了账户安全修改密码前会先验证身份 ", -1))]),
613
+ default: a(() => [m[5] || (m[5] = _(" 为了账户安全修改密码前会先验证身份 ", -1))]),
614
614
  _: 1
615
615
  })) : S("", !0), d.value === "update" ? (g(), k(ot, {
616
616
  key: 2,
617
617
  size: t.size,
618
618
  loading: e(u),
619
619
  onSubmit: y
620
- }, null, 8, ["size", "loading"])) : S("", !0), d.value === "verify" ? (g(), k(ae, {
620
+ }, null, 8, ["size", "loading"])) : S("", !0), d.value === "verify" ? (g(), k(ne, {
621
621
  key: 3,
622
622
  size: t.size,
623
- email: (U = e(r)) == null ? void 0 : U.email,
624
- onNext: m
623
+ email: (q = e(r)) == null ? void 0 : q.email,
624
+ onNext: c
625
625
  }, null, 8, ["size", "email"])) : S("", !0)], 64);
626
626
  };
627
627
  }
@@ -629,9 +629,9 @@ const tt = /* @__PURE__ */ A({
629
629
  class: "content"
630
630
  }, dt = {
631
631
  class: "sendVerifyCodeItem"
632
- }, ct = {
632
+ }, mt = {
633
633
  class: "handle"
634
- }, mt = /* @__PURE__ */ A({
634
+ }, ct = /* @__PURE__ */ A({
635
635
  __name: "AuthkitEmailUpdate",
636
636
  props: {
637
637
  size: {
@@ -648,7 +648,7 @@ const tt = /* @__PURE__ */ A({
648
648
  setup(l, {
649
649
  emit: r
650
650
  }) {
651
- const u = r, a = l, o = w(), d = w(!1), t = w(), s = w({
651
+ const u = r, n = l, o = w(), d = w(!1), t = w(), s = w({
652
652
  email: void 0,
653
653
  userToken: void 0,
654
654
  emailVerifyId: void 0,
@@ -661,27 +661,27 @@ const tt = /* @__PURE__ */ A({
661
661
  p || (d.value = !0, X({
662
662
  email: s.value.email
663
663
  }).then(({
664
- data: c
664
+ data: m
665
665
  }) => {
666
- s.value.emailVerifyId = c.emailVerifyId, d.value = !1, o.value.startCountFn();
666
+ s.value.emailVerifyId = m.emailVerifyId, d.value = !1, o.value.startCountFn();
667
667
  }).catch(() => {
668
668
  d.value = !1;
669
669
  }));
670
670
  });
671
671
  }
672
- async function m() {
672
+ async function c() {
673
673
  t.value.validate().then((p) => {
674
674
  p || u("submit", s.value);
675
675
  });
676
676
  }
677
- return (p, c) => (g(), V("div", ut, [i(e(H), {
677
+ return (p, m) => (g(), V("div", ut, [i(e(H), {
678
678
  ref_key: "formRef",
679
679
  ref: t,
680
680
  model: s.value,
681
- size: a.size,
681
+ size: n.size,
682
682
  "auto-label-width": ""
683
683
  }, {
684
- default: n(() => [i(e(I), {
684
+ default: a(() => [i(e(I), {
685
685
  field: "email",
686
686
  label: "邮箱",
687
687
  "hide-label": "",
@@ -693,9 +693,9 @@ const tt = /* @__PURE__ */ A({
693
693
  message: "请输入有效的邮箱"
694
694
  }]
695
695
  }, {
696
- default: n(() => [i(e(q), {
696
+ default: a(() => [i(e(x), {
697
697
  modelValue: s.value.email,
698
- "onUpdate:modelValue": c[0] || (c[0] = (f) => s.value.email = f),
698
+ "onUpdate:modelValue": m[0] || (m[0] = (f) => s.value.email = f),
699
699
  placeholder: "请输入邮箱",
700
700
  autocomplete: "email username",
701
701
  type: "email"
@@ -710,15 +710,15 @@ const tt = /* @__PURE__ */ A({
710
710
  message: "请输入验证码"
711
711
  }]
712
712
  }, {
713
- default: n(() => [z("div", dt, [i(e(q), {
713
+ default: a(() => [z("div", dt, [i(e(x), {
714
714
  modelValue: s.value.userToken,
715
- "onUpdate:modelValue": c[1] || (c[1] = (f) => s.value.userToken = f),
715
+ "onUpdate:modelValue": m[1] || (m[1] = (f) => s.value.userToken = f),
716
716
  placeholder: "请输入验证码",
717
717
  autocomplete: "one-time-code"
718
- }, null, 8, ["modelValue"]), i(ne, {
718
+ }, null, 8, ["modelValue"]), i(ae, {
719
719
  ref_key: "SendVerifyCodeRef",
720
720
  ref: o,
721
- size: a.size,
721
+ size: n.size,
722
722
  loading: d.value,
723
723
  style: {
724
724
  "margin-left": "10px"
@@ -738,9 +738,9 @@ const tt = /* @__PURE__ */ A({
738
738
  message: "密码不能少于10字符"
739
739
  }]
740
740
  }, {
741
- default: n(() => [i(e(q), {
741
+ default: a(() => [i(e(x), {
742
742
  modelValue: s.value.password,
743
- "onUpdate:modelValue": c[2] || (c[2] = (f) => s.value.password = f),
743
+ "onUpdate:modelValue": m[2] || (m[2] = (f) => s.value.password = f),
744
744
  placeholder: "请输入密码",
745
745
  type: "password",
746
746
  autocomplete: "new-password"
@@ -762,9 +762,9 @@ const tt = /* @__PURE__ */ A({
762
762
  }
763
763
  }]
764
764
  }, {
765
- default: n(() => [i(e(q), {
765
+ default: a(() => [i(e(x), {
766
766
  modelValue: s.value.confirmPassword,
767
- "onUpdate:modelValue": c[3] || (c[3] = (f) => s.value.confirmPassword = f),
767
+ "onUpdate:modelValue": m[3] || (m[3] = (f) => s.value.confirmPassword = f),
768
768
  placeholder: "请输入确认密码密码",
769
769
  type: "password",
770
770
  autocomplete: "new-password"
@@ -779,27 +779,27 @@ const tt = /* @__PURE__ */ A({
779
779
  message: "请输入邀请人ID"
780
780
  }]
781
781
  }, {
782
- default: n(() => [i(e(q), {
782
+ default: a(() => [i(e(x), {
783
783
  modelValue: s.value.referrerId,
784
- "onUpdate:modelValue": c[4] || (c[4] = (f) => s.value.referrerId = f),
784
+ "onUpdate:modelValue": m[4] || (m[4] = (f) => s.value.referrerId = f),
785
785
  placeholder: "邀请人ID(可选)",
786
786
  autocomplete: "off"
787
787
  }, null, 8, ["modelValue"])]),
788
788
  _: 1
789
- }), z("div", ct, [i(e(P), {
789
+ }), z("div", mt, [i(e(P), {
790
790
  type: "primary",
791
- loading: a.loading,
791
+ loading: n.loading,
792
792
  long: "",
793
- size: a.size,
794
- onClick: m
793
+ size: n.size,
794
+ onClick: c
795
795
  }, {
796
- default: n(() => [...c[5] || (c[5] = [_(" 提交 ", -1)])]),
796
+ default: a(() => [...m[5] || (m[5] = [_(" 提交 ", -1)])]),
797
797
  _: 1
798
798
  }, 8, ["loading", "size"])])]),
799
799
  _: 1
800
800
  }, 8, ["model", "size"])]));
801
801
  }
802
- }), pe = /* @__PURE__ */ C(mt, [["__scopeId", "data-v-5b701953"]]), ft = /* @__PURE__ */ A({
802
+ }), pe = /* @__PURE__ */ $(ct, [["__scopeId", "data-v-5b701953"]]), ft = /* @__PURE__ */ A({
803
803
  __name: "AuthkitEmailBinding",
804
804
  props: {
805
805
  size: {
@@ -811,20 +811,20 @@ const tt = /* @__PURE__ */ A({
811
811
  const {
812
812
  userProfile: r,
813
813
  loading: u,
814
- fetchUserProfile: a
814
+ fetchUserProfile: n
815
815
  } = J(), o = w("hidden"), d = l;
816
- function t(m) {
817
- o.value = m;
816
+ function t(c) {
817
+ o.value = c;
818
818
  }
819
- function s(m) {
819
+ function s(c) {
820
820
  u.value = !0;
821
821
  const p = {
822
- email: m.email,
823
- userToken: m.userToken,
824
- emailVerifyId: m.emailVerifyId
822
+ email: c.email,
823
+ userToken: c.userToken,
824
+ emailVerifyId: c.emailVerifyId
825
825
  };
826
826
  Le(p).then(() => {
827
- u.value = !1, N.success("绑定成功"), o.value = "hidden", a();
827
+ u.value = !1, N.success("绑定成功"), o.value = "hidden", n();
828
828
  }).catch(() => {
829
829
  u.value = !1;
830
830
  });
@@ -833,36 +833,36 @@ const tt = /* @__PURE__ */ A({
833
833
  o.value = "update";
834
834
  }
835
835
  return Z(() => {
836
- r.value || a();
837
- }), (m, p) => {
838
- var c, f, v;
839
- return g(), V(G, null, [!((c = e(r)) != null && c.email) && o.value === "hidden" ? (g(), k(e(D), {
836
+ r.value || n();
837
+ }), (c, p) => {
838
+ var m, f, v;
839
+ return g(), V(G, null, [!((m = e(r)) != null && m.email) && o.value === "hidden" ? (g(), k(e(D), {
840
840
  key: 0,
841
841
  title: "绑定邮箱"
842
842
  }, {
843
- action: n(() => [i(e(P), {
843
+ action: a(() => [i(e(P), {
844
844
  size: d.size,
845
845
  type: "primary",
846
846
  onClick: p[0] || (p[0] = (b) => t("update"))
847
847
  }, {
848
- default: n(() => [...p[2] || (p[2] = [_(" 绑定邮箱 ", -1)])]),
848
+ default: a(() => [...p[2] || (p[2] = [_(" 绑定邮箱 ", -1)])]),
849
849
  _: 1
850
850
  }, 8, ["size"])]),
851
- default: n(() => [p[3] || (p[3] = _(" 您还未绑定邮箱,请点击绑定邮箱 ", -1))]),
851
+ default: a(() => [p[3] || (p[3] = _(" 您还未绑定邮箱,请点击绑定邮箱 ", -1))]),
852
852
  _: 1
853
853
  })) : S("", !0), (f = e(r)) != null && f.email && o.value === "hidden" ? (g(), k(e(D), {
854
854
  key: 1,
855
855
  title: "更改邮箱"
856
856
  }, {
857
- action: n(() => [i(e(P), {
857
+ action: a(() => [i(e(P), {
858
858
  size: d.size,
859
859
  type: "primary",
860
860
  onClick: p[1] || (p[1] = (b) => t("verify"))
861
861
  }, {
862
- default: n(() => [...p[4] || (p[4] = [_(" 更改邮箱 ", -1)])]),
862
+ default: a(() => [...p[4] || (p[4] = [_(" 更改邮箱 ", -1)])]),
863
863
  _: 1
864
864
  }, 8, ["size"])]),
865
- default: n(() => {
865
+ default: a(() => {
866
866
  var b;
867
867
  return [_(T(`您绑定的邮箱为${e(fe)((b = e(r)) == null ? void 0 : b.email)}`) + " ", 1)];
868
868
  }),
@@ -872,7 +872,7 @@ const tt = /* @__PURE__ */ A({
872
872
  loading: e(u),
873
873
  size: d.size,
874
874
  onSubmit: s
875
- }, null, 8, ["loading", "size"])) : S("", !0), o.value === "verify" ? (g(), k(ae, {
875
+ }, null, 8, ["loading", "size"])) : S("", !0), o.value === "verify" ? (g(), k(ne, {
876
876
  key: 3,
877
877
  size: d.size,
878
878
  email: (v = e(r)) == null ? void 0 : v.email,
@@ -880,7 +880,7 @@ const tt = /* @__PURE__ */ A({
880
880
  }, null, 8, ["size", "email"])) : S("", !0)], 64);
881
881
  };
882
882
  }
883
- }), pt = /* @__PURE__ */ C(ft, [["__scopeId", "data-v-b2663ea1"]]);
883
+ }), pt = /* @__PURE__ */ $(ft, [["__scopeId", "data-v-b2663ea1"]]);
884
884
  function ve(l) {
885
885
  return M({
886
886
  url: `${E.authPrefixUrl}/restfulApi/oauth/github/login`,
@@ -914,11 +914,11 @@ const yt = /* @__PURE__ */ A({
914
914
  const {
915
915
  userProfile: r,
916
916
  fetchUserProfile: u
917
- } = J(), a = w("hidden"), o = w(!1);
917
+ } = J(), n = w("hidden"), o = w(!1);
918
918
  let d;
919
919
  const t = l;
920
920
  function s(f) {
921
- a.value = f;
921
+ n.value = f;
922
922
  }
923
923
  function y() {
924
924
  const f = E.appId;
@@ -937,61 +937,61 @@ const yt = /* @__PURE__ */ A({
937
937
  o.value = !0, window.open(b, "_blank");
938
938
  });
939
939
  }
940
- function m() {
940
+ function c() {
941
941
  Be().then(() => {
942
- N.success("解绑成功"), a.value = "hidden", u();
942
+ N.success("解绑成功"), n.value = "hidden", u();
943
943
  });
944
944
  }
945
945
  function p() {
946
- a.value === "bind" && (a.value = "hidden", y()), a.value === "unbind" && m();
946
+ n.value === "bind" && (n.value = "hidden", y()), n.value === "unbind" && c();
947
947
  }
948
- function c() {
948
+ function m() {
949
949
  o.value && u();
950
950
  }
951
951
  return Z(() => {
952
- r.value || u(), d = setInterval(c, 1e3);
952
+ r.value || u(), d = setInterval(m, 1e3);
953
953
  }), re(() => {
954
954
  d && clearInterval(d);
955
955
  }), (f, v) => {
956
- var b, U, $;
957
- return g(), V(G, null, [!((b = e(r)) != null && b.github) && a.value === "hidden" ? (g(), k(e(D), {
956
+ var b, q, U;
957
+ return g(), V(G, null, [!((b = e(r)) != null && b.github) && n.value === "hidden" ? (g(), k(e(D), {
958
958
  key: 0,
959
959
  title: "绑定GitHUb"
960
960
  }, {
961
- action: n(() => [i(e(P), {
961
+ action: a(() => [i(e(P), {
962
962
  size: t.size,
963
963
  type: "primary",
964
964
  onClick: v[0] || (v[0] = (R) => s("bind"))
965
965
  }, {
966
- default: n(() => [...v[2] || (v[2] = [_(" 绑定GitHUb ", -1)])]),
966
+ default: a(() => [...v[2] || (v[2] = [_(" 绑定GitHUb ", -1)])]),
967
967
  _: 1
968
968
  }, 8, ["size"])]),
969
- default: n(() => [v[3] || (v[3] = _(" 请尚未绑定GitHub,请点击绑定GitHUb ", -1))]),
969
+ default: a(() => [v[3] || (v[3] = _(" 请尚未绑定GitHub,请点击绑定GitHUb ", -1))]),
970
970
  _: 1
971
- })) : S("", !0), (U = e(r)) != null && U.github && a.value === "hidden" ? (g(), k(e(D), {
971
+ })) : S("", !0), (q = e(r)) != null && q.github && n.value === "hidden" ? (g(), k(e(D), {
972
972
  key: 1,
973
973
  title: "解绑GitHub"
974
974
  }, {
975
- action: n(() => [i(e(P), {
975
+ action: a(() => [i(e(P), {
976
976
  size: t.size,
977
977
  type: "primary",
978
978
  onClick: v[1] || (v[1] = (R) => s("unbind"))
979
979
  }, {
980
- default: n(() => [...v[4] || (v[4] = [_(" 解绑GitHUb ", -1)])]),
980
+ default: a(() => [...v[4] || (v[4] = [_(" 解绑GitHUb ", -1)])]),
981
981
  _: 1
982
982
  }, 8, ["size"])]),
983
- default: n(() => {
983
+ default: a(() => {
984
984
  var R, B, O;
985
- return [z("span", null, T(`您绑定的账号为 ${(B = (R = e(r)) == null ? void 0 : R.github) == null ? void 0 : B.login}`), 1), i(e(ce), {
985
+ return [z("span", null, T(`您绑定的账号为 ${(B = (R = e(r)) == null ? void 0 : R.github) == null ? void 0 : B.login}`), 1), i(e(me), {
986
986
  "image-url": (O = e(r)) == null ? void 0 : O.avatar,
987
987
  size: 42
988
988
  }, null, 8, ["image-url"])];
989
989
  }),
990
990
  _: 1
991
- })) : S("", !0), a.value === "bind" || a.value === "unbind" ? (g(), k(ae, {
991
+ })) : S("", !0), n.value === "bind" || n.value === "unbind" ? (g(), k(ne, {
992
992
  key: 2,
993
993
  size: t.size,
994
- email: ($ = e(r)) == null ? void 0 : $.email,
994
+ email: (U = e(r)) == null ? void 0 : U.email,
995
995
  onNext: p
996
996
  }, null, 8, ["size", "email"])) : S("", !0)], 64);
997
997
  };
@@ -1016,20 +1016,20 @@ const yt = /* @__PURE__ */ A({
1016
1016
  setup(l, {
1017
1017
  emit: r
1018
1018
  }) {
1019
- const u = l, a = r, {
1019
+ const u = l, n = r, {
1020
1020
  userProfile: o,
1021
1021
  clearUserProfile: d
1022
1022
  } = J(), {
1023
1023
  clearAuth: t
1024
- } = Q(), s = w("check"), y = w(!1), m = w([]), p = w(!1), c = w(""), f = w(0);
1024
+ } = Q(), s = w("check"), y = w(!1), c = w([]), p = w(!1), m = w(""), f = w(0);
1025
1025
  let v = null;
1026
1026
  const b = F(() => {
1027
1027
  var K;
1028
1028
  const L = ((K = o.value) == null ? void 0 : K.email) || "";
1029
1029
  if (!L) return "";
1030
- const [h, x] = L.split("@");
1031
- return h.length <= 2 ? L : `${h.slice(0, 2)}***@${x}`;
1032
- }), U = w(), $ = w({
1030
+ const [h, C] = L.split("@");
1031
+ return h.length <= 2 ? L : `${h.slice(0, 2)}***@${C}`;
1032
+ }), q = w(), U = w({
1033
1033
  userToken: "",
1034
1034
  password: "",
1035
1035
  confirmText: ""
@@ -1042,11 +1042,11 @@ const yt = /* @__PURE__ */ A({
1042
1042
  y.value = !0;
1043
1043
  try {
1044
1044
  const h = await Oe(), {
1045
- hasDependencies: x,
1045
+ hasDependencies: C,
1046
1046
  dependencies: K
1047
1047
  } = h.data;
1048
- if (x)
1049
- m.value = K, s.value = "dependencies";
1048
+ if (C)
1049
+ c.value = K, s.value = "dependencies";
1050
1050
  else {
1051
1051
  if (!((L = o.value) != null && L.email)) {
1052
1052
  N.error("账号未绑定邮箱,无法进行注销验证。请先绑定邮箱");
@@ -1071,7 +1071,7 @@ const yt = /* @__PURE__ */ A({
1071
1071
  const h = await X({
1072
1072
  email: o.value.email
1073
1073
  });
1074
- c.value = h.data.emailVerifyId, N.success("验证码已发送"), s.value = "confirm", _e();
1074
+ m.value = h.data.emailVerifyId, N.success("验证码已发送"), s.value = "confirm", _e();
1075
1075
  } catch (h) {
1076
1076
  console.error("发送验证码失败:", h);
1077
1077
  } finally {
@@ -1085,17 +1085,17 @@ const yt = /* @__PURE__ */ A({
1085
1085
  }
1086
1086
  async function be() {
1087
1087
  var h;
1088
- if (!await ((h = U.value) == null ? void 0 : h.validate())) {
1088
+ if (!await ((h = q.value) == null ? void 0 : h.validate())) {
1089
1089
  R.value = !0;
1090
1090
  try {
1091
1091
  await Ee({
1092
- password: $.value.password,
1093
- userToken: $.value.userToken,
1094
- emailVerifyId: c.value,
1095
- confirmText: $.value.confirmText
1096
- }), s.value = "success", d(), t(), a("deleted");
1097
- } catch (x) {
1098
- console.error("注销失败:", x);
1092
+ password: U.value.password,
1093
+ userToken: U.value.userToken,
1094
+ emailVerifyId: m.value,
1095
+ confirmText: U.value.confirmText
1096
+ }), s.value = "success", d(), t(), n("deleted");
1097
+ } catch (C) {
1098
+ console.error("注销失败:", C);
1099
1099
  } finally {
1100
1100
  R.value = !1;
1101
1101
  }
@@ -1109,17 +1109,17 @@ const yt = /* @__PURE__ */ A({
1109
1109
  type: "warning",
1110
1110
  title: "注销账号"
1111
1111
  }, {
1112
- action: n(() => [i(e(P), {
1112
+ action: a(() => [i(e(P), {
1113
1113
  size: u.size,
1114
1114
  type: "primary",
1115
1115
  status: "danger",
1116
1116
  loading: y.value,
1117
1117
  onClick: O
1118
1118
  }, {
1119
- default: n(() => [_(T(y.value ? "检查中..." : "开始注销"), 1)]),
1119
+ default: a(() => [_(T(y.value ? "检查中..." : "开始注销"), 1)]),
1120
1120
  _: 1
1121
1121
  }, 8, ["size", "loading"])]),
1122
- default: n(() => [h[6] || (h[6] = _(" 注销账号后,您的所有数据将被永久删除,无法恢复。请确认您已备份重要数据。 ", -1))]),
1122
+ default: a(() => [h[6] || (h[6] = _(" 注销账号后,您的所有数据将被永久删除,无法恢复。请确认您已备份重要数据。 ", -1))]),
1123
1123
  _: 1
1124
1124
  })) : s.value === "dependencies" ? (g(), V(G, {
1125
1125
  key: 1
@@ -1127,28 +1127,28 @@ const yt = /* @__PURE__ */ A({
1127
1127
  type: "error",
1128
1128
  title: "无法注销账号"
1129
1129
  }, {
1130
- default: n(() => [...h[7] || (h[7] = [_(" 您的账号下还有以下资源,请先处理后再注销: ", -1)])]),
1130
+ default: a(() => [...h[7] || (h[7] = [_(" 您的账号下还有以下资源,请先处理后再注销: ", -1)])]),
1131
1131
  _: 1
1132
- }), z("div", ht, [(g(!0), V(G, null, Ae(m.value, (x) => (g(), V("div", {
1133
- key: x.type,
1132
+ }), z("div", ht, [(g(!0), V(G, null, Ae(c.value, (C) => (g(), V("div", {
1133
+ key: C.type,
1134
1134
  class: "dependency-item"
1135
- }, [z("span", wt, T(x.label), 1), z("span", _t, T(x.count) + " 个", 1)]))), 128))]), z("div", bt, [i(e(P), {
1135
+ }, [z("span", wt, T(C.label), 1), z("span", _t, T(C.count) + " 个", 1)]))), 128))]), z("div", bt, [i(e(P), {
1136
1136
  size: u.size,
1137
- onClick: h[0] || (h[0] = (x) => s.value = "check")
1137
+ onClick: h[0] || (h[0] = (C) => s.value = "check")
1138
1138
  }, {
1139
- default: n(() => [...h[8] || (h[8] = [_("返回", -1)])]),
1139
+ default: a(() => [...h[8] || (h[8] = [_("返回", -1)])]),
1140
1140
  _: 1
1141
1141
  }, 8, ["size"])])], 64)) : s.value === "sendCode" ? (g(), k(e(D), {
1142
1142
  key: 2,
1143
1143
  type: "normal",
1144
1144
  title: "身份验证"
1145
1145
  }, {
1146
- action: n(() => [i(e(ee), null, {
1147
- default: n(() => [i(e(P), {
1146
+ action: a(() => [i(e(ee), null, {
1147
+ default: a(() => [i(e(P), {
1148
1148
  size: u.size,
1149
- onClick: h[1] || (h[1] = (x) => s.value = "check")
1149
+ onClick: h[1] || (h[1] = (C) => s.value = "check")
1150
1150
  }, {
1151
- default: n(() => [...h[9] || (h[9] = [_("取消", -1)])]),
1151
+ default: a(() => [...h[9] || (h[9] = [_("取消", -1)])]),
1152
1152
  _: 1
1153
1153
  }, 8, ["size"]), i(e(P), {
1154
1154
  size: u.size,
@@ -1156,12 +1156,12 @@ const yt = /* @__PURE__ */ A({
1156
1156
  loading: p.value,
1157
1157
  onClick: W
1158
1158
  }, {
1159
- default: n(() => [_(T(p.value ? "发送中..." : "发送验证码"), 1)]),
1159
+ default: a(() => [_(T(p.value ? "发送中..." : "发送验证码"), 1)]),
1160
1160
  _: 1
1161
1161
  }, 8, ["size", "loading"])]),
1162
1162
  _: 1
1163
1163
  })]),
1164
- default: n(() => [_(" 为确保账号安全,我们将向您的邮箱 " + T(b.value) + " 发送验证码 ", 1)]),
1164
+ default: a(() => [_(" 为确保账号安全,我们将向您的邮箱 " + T(b.value) + " 发送验证码 ", 1)]),
1165
1165
  _: 1
1166
1166
  })) : s.value === "confirm" ? (g(), V(G, {
1167
1167
  key: 3
@@ -1169,17 +1169,17 @@ const yt = /* @__PURE__ */ A({
1169
1169
  type: "warning",
1170
1170
  title: "确认注销"
1171
1171
  }, {
1172
- default: n(() => [_(" 验证码已发送至 " + T(b.value) + ",此操作不可逆,请谨慎操作 ", 1)]),
1172
+ default: a(() => [_(" 验证码已发送至 " + T(b.value) + ",此操作不可逆,请谨慎操作 ", 1)]),
1173
1173
  _: 1
1174
1174
  }), i(e(H), {
1175
1175
  ref_key: "formRef",
1176
- ref: U,
1177
- model: $.value,
1176
+ ref: q,
1177
+ model: U.value,
1178
1178
  size: u.size,
1179
1179
  class: "confirm-form",
1180
1180
  layout: "vertical"
1181
1181
  }, {
1182
- default: n(() => [i(e(I), {
1182
+ default: a(() => [i(e(I), {
1183
1183
  field: "userToken",
1184
1184
  label: "邮箱验证码",
1185
1185
  rules: [{
@@ -1187,10 +1187,10 @@ const yt = /* @__PURE__ */ A({
1187
1187
  message: "请输入验证码"
1188
1188
  }]
1189
1189
  }, {
1190
- default: n(() => [i(e(ee), null, {
1191
- default: n(() => [i(e(q), {
1192
- modelValue: $.value.userToken,
1193
- "onUpdate:modelValue": h[2] || (h[2] = (x) => $.value.userToken = x),
1190
+ default: a(() => [i(e(ee), null, {
1191
+ default: a(() => [i(e(x), {
1192
+ modelValue: U.value.userToken,
1193
+ "onUpdate:modelValue": h[2] || (h[2] = (C) => U.value.userToken = C),
1194
1194
  placeholder: "请输入6位验证码",
1195
1195
  "max-length": 6,
1196
1196
  "allow-clear": "",
@@ -1202,7 +1202,7 @@ const yt = /* @__PURE__ */ A({
1202
1202
  loading: p.value,
1203
1203
  onClick: W
1204
1204
  }, {
1205
- default: n(() => [_(T(f.value > 0 ? `${f.value}s 后重发` : "重新发送"), 1)]),
1205
+ default: a(() => [_(T(f.value > 0 ? `${f.value}s 后重发` : "重新发送"), 1)]),
1206
1206
  _: 1
1207
1207
  }, 8, ["disabled", "loading"])]),
1208
1208
  _: 1
@@ -1216,9 +1216,9 @@ const yt = /* @__PURE__ */ A({
1216
1216
  message: "请输入密码"
1217
1217
  }]
1218
1218
  }, {
1219
- default: n(() => [i(e(Ue), {
1220
- modelValue: $.value.password,
1221
- "onUpdate:modelValue": h[3] || (h[3] = (x) => $.value.password = x),
1219
+ default: a(() => [i(e(Ue), {
1220
+ modelValue: U.value.password,
1221
+ "onUpdate:modelValue": h[3] || (h[3] = (C) => U.value.password = C),
1222
1222
  placeholder: "请输入您的登录密码",
1223
1223
  "allow-clear": ""
1224
1224
  }, null, 8, ["modelValue"])]),
@@ -1233,19 +1233,19 @@ const yt = /* @__PURE__ */ A({
1233
1233
  validator: B
1234
1234
  }]
1235
1235
  }, {
1236
- default: n(() => [i(e(q), {
1237
- modelValue: $.value.confirmText,
1238
- "onUpdate:modelValue": h[4] || (h[4] = (x) => $.value.confirmText = x),
1236
+ default: a(() => [i(e(x), {
1237
+ modelValue: U.value.confirmText,
1238
+ "onUpdate:modelValue": h[4] || (h[4] = (C) => U.value.confirmText = C),
1239
1239
  placeholder: "注销",
1240
1240
  "allow-clear": ""
1241
1241
  }, null, 8, ["modelValue"])]),
1242
1242
  _: 1
1243
1243
  }, 8, ["rules"]), i(e(I), null, {
1244
- default: n(() => [i(e(ee), null, {
1245
- default: n(() => [i(e(P), {
1246
- onClick: h[5] || (h[5] = (x) => s.value = "check")
1244
+ default: a(() => [i(e(ee), null, {
1245
+ default: a(() => [i(e(P), {
1246
+ onClick: h[5] || (h[5] = (C) => s.value = "check")
1247
1247
  }, {
1248
- default: n(() => [...h[10] || (h[10] = [_("取消", -1)])]),
1248
+ default: a(() => [...h[10] || (h[10] = [_("取消", -1)])]),
1249
1249
  _: 1
1250
1250
  }), i(e(P), {
1251
1251
  type: "primary",
@@ -1253,7 +1253,7 @@ const yt = /* @__PURE__ */ A({
1253
1253
  loading: R.value,
1254
1254
  onClick: be
1255
1255
  }, {
1256
- default: n(() => [_(T(R.value ? "注销中..." : "确认注销"), 1)]),
1256
+ default: a(() => [_(T(R.value ? "注销中..." : "确认注销"), 1)]),
1257
1257
  _: 1
1258
1258
  }, 8, ["loading"])]),
1259
1259
  _: 1
@@ -1266,18 +1266,18 @@ const yt = /* @__PURE__ */ A({
1266
1266
  status: "success",
1267
1267
  title: "账号已注销"
1268
1268
  }, {
1269
- subtitle: n(() => [...h[11] || (h[11] = [_(" 您的账号已成功注销,感谢您的使用 ", -1)])]),
1270
- extra: n(() => [i(e(P), {
1269
+ subtitle: a(() => [...h[11] || (h[11] = [_(" 您的账号已成功注销,感谢您的使用 ", -1)])]),
1270
+ extra: a(() => [i(e(P), {
1271
1271
  type: "primary",
1272
1272
  onClick: ke
1273
1273
  }, {
1274
- default: n(() => [...h[12] || (h[12] = [_("返回首页", -1)])]),
1274
+ default: a(() => [...h[12] || (h[12] = [_("返回首页", -1)])]),
1275
1275
  _: 1
1276
1276
  })]),
1277
1277
  _: 1
1278
1278
  })) : S("", !0);
1279
1279
  }
1280
- }), zt = /* @__PURE__ */ C(kt, [["__scopeId", "data-v-15e302c7"]]), St = {
1280
+ }), zt = /* @__PURE__ */ $(kt, [["__scopeId", "data-v-15e302c7"]]), St = {
1281
1281
  class: "content"
1282
1282
  }, It = {
1283
1283
  class: "left"
@@ -1290,12 +1290,12 @@ const yt = /* @__PURE__ */ A({
1290
1290
  expose: r,
1291
1291
  emit: u
1292
1292
  }) {
1293
- const a = u;
1293
+ const n = u;
1294
1294
  function o() {
1295
- a("cancel");
1295
+ n("cancel");
1296
1296
  }
1297
1297
  function d() {
1298
- c.value = !1, a("cancel");
1298
+ m.value = !1, n("cancel");
1299
1299
  }
1300
1300
  const t = w("large"), s = w(["PersonalInformation"]), y = w([{
1301
1301
  name: "个人信息",
@@ -1350,22 +1350,22 @@ const yt = /* @__PURE__ */ A({
1350
1350
  // },
1351
1351
  ]
1352
1352
  }]);
1353
- function m(v, b) {
1354
- const U = v.path;
1355
- console.log(U, b, "lokokoko"), s.value = [U];
1353
+ function c(v) {
1354
+ const b = v.path;
1355
+ s.value = [b];
1356
1356
  }
1357
1357
  const {
1358
1358
  changeType: p,
1359
- show: c
1360
- } = Me(a);
1359
+ show: m
1360
+ } = Me(n);
1361
1361
  function f(v, b) {
1362
- console.log(v), c.value = b, p.value = "编辑";
1362
+ console.log(v), m.value = b, p.value = "编辑";
1363
1363
  }
1364
1364
  return r({
1365
1365
  setData: f
1366
- }), (v, b) => (g(), k(e(me), {
1367
- visible: e(c),
1368
- "onUpdate:visible": b[1] || (b[1] = (U) => ue(c) ? c.value = U : null),
1366
+ }), (v, b) => (g(), k(e(ce), {
1367
+ visible: e(m),
1368
+ "onUpdate:visible": b[1] || (b[1] = (q) => ue(m) ? m.value = q : null),
1369
1369
  "unmount-on-close": "",
1370
1370
  "body-class": "AppSettingbodyClass",
1371
1371
  "mask-closable": !1,
@@ -1373,12 +1373,12 @@ const yt = /* @__PURE__ */ A({
1373
1373
  width: "700px",
1374
1374
  onCancel: o
1375
1375
  }, {
1376
- title: n(() => [...b[2] || (b[2] = [_(" 系统设置 ", -1)])]),
1377
- default: n(() => [z("div", St, [z("div", It, [i(He, {
1376
+ title: a(() => [...b[2] || (b[2] = [_(" 系统设置 ", -1)])]),
1377
+ default: a(() => [z("div", St, [z("div", It, [i(He, {
1378
1378
  "selected-keys": s.value,
1379
- "onUpdate:selectedKeys": b[0] || (b[0] = (U) => s.value = U),
1379
+ "onUpdate:selectedKeys": b[0] || (b[0] = (q) => s.value = q),
1380
1380
  menus: y.value,
1381
- onChange: m
1381
+ onChange: c
1382
1382
  }, null, 8, ["selected-keys", "menus"])]), z("div", At, [s.value[0] === "PersonalInformation" ? (g(), k(Xe, {
1383
1383
  key: 0,
1384
1384
  size: t.value
@@ -1399,7 +1399,7 @@ const yt = /* @__PURE__ */ A({
1399
1399
  _: 1
1400
1400
  }, 8, ["visible"]));
1401
1401
  }
1402
- }), xi = /* @__PURE__ */ C(Pt, [["__scopeId", "data-v-9f056370"]]);
1402
+ }), xi = /* @__PURE__ */ $(Pt, [["__scopeId", "data-v-55a8599d"]]);
1403
1403
  function ge() {
1404
1404
  return E.oauthCallbackUrl ? E.oauthCallbackUrl : `${window.location.origin}/auth/callback`;
1405
1405
  }
@@ -1413,10 +1413,10 @@ async function Y(l, r) {
1413
1413
  console.error(`${l} OAuth 失败: appId 未配置`);
1414
1414
  return;
1415
1415
  }
1416
- const a = ge(), o = {
1416
+ const n = ge(), o = {
1417
1417
  appId: u,
1418
1418
  referrerId: r == null ? void 0 : r.referrerId,
1419
- redirectUri: a
1419
+ redirectUri: n
1420
1420
  };
1421
1421
  Vt();
1422
1422
  const d = {
@@ -1480,15 +1480,15 @@ const qi = ye, ie = /* @__PURE__ */ A({
1480
1480
  emit: r
1481
1481
  }) {
1482
1482
  const u = l;
1483
- return (a, o) => (g(), k(e(P), {
1483
+ return (n, o) => (g(), k(e(P), {
1484
1484
  class: "OAuthItem",
1485
1485
  type: "primary",
1486
1486
  size: u.size
1487
1487
  }, {
1488
- icon: n(() => [i(e(Ge), {
1488
+ icon: a(() => [i(e(Ge), {
1489
1489
  icon: u.icon
1490
1490
  }, null, 8, ["icon"])]),
1491
- default: n(() => [z("span", null, T(u.label), 1)]),
1491
+ default: a(() => [z("span", null, T(u.label), 1)]),
1492
1492
  _: 1
1493
1493
  }, 8, ["size"]));
1494
1494
  }
@@ -1512,7 +1512,7 @@ const qi = ye, ie = /* @__PURE__ */ A({
1512
1512
  const {
1513
1513
  appsData: r
1514
1514
  } = se(), u = l, {
1515
- githubAuth: a,
1515
+ githubAuth: n,
1516
1516
  googleAuth: o,
1517
1517
  microsoftAuth: d
1518
1518
  } = ye(), t = F(() => !(!r.value.oauth.google.enabled && !r.value.oauth.microsoft.enabled && !r.value.oauth.github.enabled && !r.value.oauth.wechat.enabled));
@@ -1520,29 +1520,29 @@ const qi = ye, ie = /* @__PURE__ */ A({
1520
1520
  key: 0,
1521
1521
  orientation: "center"
1522
1522
  }, {
1523
- default: n(() => [...y[3] || (y[3] = [_("OAuth登陆", -1)])]),
1523
+ default: a(() => [...y[3] || (y[3] = [_("OAuth登陆", -1)])]),
1524
1524
  _: 1
1525
1525
  })) : S("", !0), z("div", qt, [e(r).oauth.github.enabled ? (g(), k(ie, {
1526
1526
  key: 0,
1527
1527
  icon: "mdi:github",
1528
1528
  label: "Github",
1529
1529
  size: u.size,
1530
- onClick: y[0] || (y[0] = (m) => e(a)())
1530
+ onClick: y[0] || (y[0] = (c) => e(n)())
1531
1531
  }, null, 8, ["size"])) : S("", !0), e(r).oauth.google.enabled ? (g(), k(ie, {
1532
1532
  key: 1,
1533
1533
  icon: "mdi:google",
1534
1534
  label: "Google",
1535
1535
  size: u.size,
1536
- onClick: y[1] || (y[1] = (m) => e(o)())
1536
+ onClick: y[1] || (y[1] = (c) => e(o)())
1537
1537
  }, null, 8, ["size"])) : S("", !0), e(r).oauth.microsoft.enabled ? (g(), k(ie, {
1538
1538
  key: 2,
1539
1539
  icon: "mdi:microsoft",
1540
1540
  label: "Microsoft",
1541
1541
  size: u.size,
1542
- onClick: y[2] || (y[2] = (m) => e(d)())
1542
+ onClick: y[2] || (y[2] = (c) => e(d)())
1543
1543
  }, null, 8, ["size"])) : S("", !0)])]));
1544
1544
  }
1545
- }), Tt = /* @__PURE__ */ C(Rt, [["__scopeId", "data-v-886fd902"]]), Lt = {
1545
+ }), Tt = /* @__PURE__ */ $(Rt, [["__scopeId", "data-v-886fd902"]]), Lt = {
1546
1546
  class: "content"
1547
1547
  }, Bt = {
1548
1548
  class: "sendVerifyCodeItem"
@@ -1565,7 +1565,7 @@ const qi = ye, ie = /* @__PURE__ */ A({
1565
1565
  setup(l, {
1566
1566
  emit: r
1567
1567
  }) {
1568
- const u = r, a = l, o = w(), d = w(!1), t = w(), s = w({
1568
+ const u = r, n = l, o = w(), d = w(!1), t = w(), s = w({
1569
1569
  email: void 0,
1570
1570
  userToken: void 0,
1571
1571
  emailVerifyId: void 0,
@@ -1577,27 +1577,27 @@ const qi = ye, ie = /* @__PURE__ */ A({
1577
1577
  p || (d.value = !0, X({
1578
1578
  email: s.value.email
1579
1579
  }).then(({
1580
- data: c
1580
+ data: m
1581
1581
  }) => {
1582
- d.value = !1, s.value.emailVerifyId = c.emailVerifyId, o.value.startCountFn();
1582
+ d.value = !1, s.value.emailVerifyId = m.emailVerifyId, o.value.startCountFn();
1583
1583
  }).catch(() => {
1584
1584
  d.value = !1;
1585
1585
  }));
1586
1586
  });
1587
1587
  }
1588
- async function m() {
1588
+ async function c() {
1589
1589
  t.value.validate().then((p) => {
1590
1590
  p || u("submit", s.value);
1591
1591
  });
1592
1592
  }
1593
- return (p, c) => (g(), V("div", Lt, [i(e(H), {
1593
+ return (p, m) => (g(), V("div", Lt, [i(e(H), {
1594
1594
  ref_key: "formRef",
1595
1595
  ref: t,
1596
1596
  model: s.value,
1597
- size: a.size,
1597
+ size: n.size,
1598
1598
  "auto-label-width": ""
1599
1599
  }, {
1600
- default: n(() => [i(e(I), {
1600
+ default: a(() => [i(e(I), {
1601
1601
  field: "email",
1602
1602
  label: "邮箱",
1603
1603
  "hide-label": "",
@@ -1609,9 +1609,9 @@ const qi = ye, ie = /* @__PURE__ */ A({
1609
1609
  message: "请输入有效的邮箱"
1610
1610
  }]
1611
1611
  }, {
1612
- default: n(() => [i(e(q), {
1612
+ default: a(() => [i(e(x), {
1613
1613
  modelValue: s.value.email,
1614
- "onUpdate:modelValue": c[0] || (c[0] = (f) => s.value.email = f),
1614
+ "onUpdate:modelValue": m[0] || (m[0] = (f) => s.value.email = f),
1615
1615
  placeholder: "请输入邮箱"
1616
1616
  }, null, 8, ["modelValue"])]),
1617
1617
  _: 1
@@ -1624,14 +1624,14 @@ const qi = ye, ie = /* @__PURE__ */ A({
1624
1624
  message: "请输入验证码"
1625
1625
  }]
1626
1626
  }, {
1627
- default: n(() => [z("div", Bt, [i(e(q), {
1627
+ default: a(() => [z("div", Bt, [i(e(x), {
1628
1628
  modelValue: s.value.userToken,
1629
- "onUpdate:modelValue": c[1] || (c[1] = (f) => s.value.userToken = f),
1629
+ "onUpdate:modelValue": m[1] || (m[1] = (f) => s.value.userToken = f),
1630
1630
  placeholder: "请输入验证码"
1631
- }, null, 8, ["modelValue"]), i(ne, {
1631
+ }, null, 8, ["modelValue"]), i(ae, {
1632
1632
  ref_key: "SendVerifyCodeRef",
1633
1633
  ref: o,
1634
- size: a.size,
1634
+ size: n.size,
1635
1635
  loading: d.value,
1636
1636
  style: {
1637
1637
  "margin-left": "10px"
@@ -1651,9 +1651,9 @@ const qi = ye, ie = /* @__PURE__ */ A({
1651
1651
  message: "密码不能少于10字符"
1652
1652
  }]
1653
1653
  }, {
1654
- default: n(() => [i(e(q), {
1654
+ default: a(() => [i(e(x), {
1655
1655
  modelValue: s.value.password,
1656
- "onUpdate:modelValue": c[2] || (c[2] = (f) => s.value.password = f),
1656
+ "onUpdate:modelValue": m[2] || (m[2] = (f) => s.value.password = f),
1657
1657
  placeholder: "请输入密码",
1658
1658
  type: "password",
1659
1659
  autocomplete: ""
@@ -1675,9 +1675,9 @@ const qi = ye, ie = /* @__PURE__ */ A({
1675
1675
  }
1676
1676
  }]
1677
1677
  }, {
1678
- default: n(() => [i(e(q), {
1678
+ default: a(() => [i(e(x), {
1679
1679
  modelValue: s.value.confirmPassword,
1680
- "onUpdate:modelValue": c[3] || (c[3] = (f) => s.value.confirmPassword = f),
1680
+ "onUpdate:modelValue": m[3] || (m[3] = (f) => s.value.confirmPassword = f),
1681
1681
  placeholder: "请输入确认密码密码",
1682
1682
  type: "password",
1683
1683
  autocomplete: ""
@@ -1685,18 +1685,18 @@ const qi = ye, ie = /* @__PURE__ */ A({
1685
1685
  _: 1
1686
1686
  }, 8, ["rules"]), z("div", Ot, [i(e(P), {
1687
1687
  type: "primary",
1688
- loading: a.loading,
1688
+ loading: n.loading,
1689
1689
  long: "",
1690
- size: a.size,
1691
- onClick: m
1690
+ size: n.size,
1691
+ onClick: c
1692
1692
  }, {
1693
- default: n(() => [...c[4] || (c[4] = [_(" 提交 ", -1)])]),
1693
+ default: a(() => [...m[4] || (m[4] = [_(" 提交 ", -1)])]),
1694
1694
  _: 1
1695
1695
  }, 8, ["loading", "size"])])]),
1696
1696
  _: 1
1697
1697
  }, 8, ["model", "size"])]));
1698
1698
  }
1699
- }), Dt = /* @__PURE__ */ C(Et, [["__scopeId", "data-v-1c83f44a"]]), Nt = {
1699
+ }), Dt = /* @__PURE__ */ $(Et, [["__scopeId", "data-v-1c83f44a"]]), Nt = {
1700
1700
  class: "SwitchSignIn"
1701
1701
  }, Ft = /* @__PURE__ */ A({
1702
1702
  __name: "AuthkitSwitchSignIn",
@@ -1705,20 +1705,20 @@ const qi = ye, ie = /* @__PURE__ */ A({
1705
1705
  emit: r
1706
1706
  }) {
1707
1707
  const u = r;
1708
- function a() {
1708
+ function n() {
1709
1709
  u("switchSignIn");
1710
1710
  }
1711
1711
  return (o, d) => (g(), V("div", Nt, [z("span", null, [d[1] || (d[1] = z("span", null, "已经有账号?", -1)), i(e(j), {
1712
1712
  style: {
1713
1713
  padding: "0px"
1714
1714
  },
1715
- onClick: a
1715
+ onClick: n
1716
1716
  }, {
1717
- default: n(() => [...d[0] || (d[0] = [_("去登陆", -1)])]),
1717
+ default: a(() => [...d[0] || (d[0] = [_("去登陆", -1)])]),
1718
1718
  _: 1
1719
1719
  })])]));
1720
1720
  }
1721
- }), he = /* @__PURE__ */ C(Ft, [["__scopeId", "data-v-fc1d3903"]]), Ht = {
1721
+ }), he = /* @__PURE__ */ $(Ft, [["__scopeId", "data-v-fc1d3903"]]), Ht = {
1722
1722
  class: "ResetPassword"
1723
1723
  }, Mt = /* @__PURE__ */ A({
1724
1724
  __name: "AuthkitResetPassword",
@@ -1738,7 +1738,7 @@ const qi = ye, ie = /* @__PURE__ */ A({
1738
1738
  setup(l, {
1739
1739
  emit: r
1740
1740
  }) {
1741
- const u = r, a = l;
1741
+ const u = r, n = l;
1742
1742
  function o() {
1743
1743
  u("switchSignIn");
1744
1744
  }
@@ -1747,13 +1747,13 @@ const qi = ye, ie = /* @__PURE__ */ A({
1747
1747
  }
1748
1748
  return (t, s) => (g(), V("div", Ht, [i(Dt, {
1749
1749
  loading: l.loading,
1750
- size: a.size,
1750
+ size: n.size,
1751
1751
  onSubmit: d
1752
1752
  }, null, 8, ["loading", "size"]), i(he, {
1753
1753
  onSwitchSignIn: o
1754
1754
  })]));
1755
1755
  }
1756
- }), Gt = /* @__PURE__ */ C(Mt, [["__scopeId", "data-v-0622cbe3"]]), jt = {
1756
+ }), Gt = /* @__PURE__ */ $(Mt, [["__scopeId", "data-v-0622cbe3"]]), jt = {
1757
1757
  class: "ServiceAgreementAndPrivacyProtection"
1758
1758
  }, Wt = /* @__PURE__ */ A({
1759
1759
  __name: "AuthkitServiceAgreementAndPrivacyProtection",
@@ -1762,25 +1762,25 @@ const qi = ye, ie = /* @__PURE__ */ A({
1762
1762
  emit: r
1763
1763
  }) {
1764
1764
  const u = r;
1765
- function a() {
1765
+ function n() {
1766
1766
  u("toUserServiceAgreement");
1767
1767
  }
1768
1768
  function o() {
1769
1769
  u("toPrivacyPolicy");
1770
1770
  }
1771
1771
  return (d, t) => (g(), V("div", jt, [t[2] || (t[2] = z("span", null, " 注册登陆即表示同意", -1)), i(e(j), {
1772
- onClick: a
1772
+ onClick: n
1773
1773
  }, {
1774
- default: n(() => [...t[0] || (t[0] = [_("用户服务协议", -1)])]),
1774
+ default: a(() => [...t[0] || (t[0] = [_("用户服务协议", -1)])]),
1775
1775
  _: 1
1776
1776
  }), t[3] || (t[3] = z("span", null, " 和 ", -1)), i(e(j), {
1777
1777
  onClick: o
1778
1778
  }, {
1779
- default: n(() => [...t[1] || (t[1] = [_("隐私协议", -1)])]),
1779
+ default: a(() => [...t[1] || (t[1] = [_("隐私协议", -1)])]),
1780
1780
  _: 1
1781
1781
  })]));
1782
1782
  }
1783
- }), Kt = /* @__PURE__ */ C(Wt, [["__scopeId", "data-v-18e831ec"]]), Zt = {
1783
+ }), Kt = /* @__PURE__ */ $(Wt, [["__scopeId", "data-v-18e831ec"]]), Zt = {
1784
1784
  class: "content"
1785
1785
  }, Jt = {
1786
1786
  class: "handle"
@@ -1801,17 +1801,17 @@ const qi = ye, ie = /* @__PURE__ */ A({
1801
1801
  setup(l, {
1802
1802
  emit: r
1803
1803
  }) {
1804
- const u = r, a = l;
1805
- async function o(y, m) {
1804
+ const u = r, n = l;
1805
+ async function o(y, c) {
1806
1806
  const p = await et({
1807
1807
  password: y
1808
1808
  });
1809
- p || m("密码验证请求出错!");
1809
+ p || c("密码验证请求出错!");
1810
1810
  const {
1811
- isValidate: c,
1811
+ isValidate: m,
1812
1812
  message: f
1813
1813
  } = p.data;
1814
- c || m(f), m();
1814
+ m || c(f), c();
1815
1815
  }
1816
1816
  const d = w(), t = w({
1817
1817
  email: void 0,
@@ -1822,14 +1822,14 @@ const qi = ye, ie = /* @__PURE__ */ A({
1822
1822
  y || u("submit", t.value);
1823
1823
  });
1824
1824
  }
1825
- return (y, m) => (g(), V("div", Zt, [i(e(H), {
1825
+ return (y, c) => (g(), V("div", Zt, [i(e(H), {
1826
1826
  ref_key: "formRef",
1827
1827
  ref: d,
1828
1828
  model: t.value,
1829
- size: a.size,
1829
+ size: n.size,
1830
1830
  "auto-label-width": ""
1831
1831
  }, {
1832
- default: n(() => [i(e(I), {
1832
+ default: a(() => [i(e(I), {
1833
1833
  field: "email",
1834
1834
  label: "邮箱",
1835
1835
  "hide-label": "",
@@ -1841,9 +1841,9 @@ const qi = ye, ie = /* @__PURE__ */ A({
1841
1841
  message: "请输入有效的邮箱"
1842
1842
  }]
1843
1843
  }, {
1844
- default: n(() => [i(e(q), {
1844
+ default: a(() => [i(e(x), {
1845
1845
  modelValue: t.value.email,
1846
- "onUpdate:modelValue": m[0] || (m[0] = (p) => t.value.email = p),
1846
+ "onUpdate:modelValue": c[0] || (c[0] = (p) => t.value.email = p),
1847
1847
  placeholder: "请输入邮箱",
1848
1848
  autocomplete: "email username",
1849
1849
  type: "email"
@@ -1860,9 +1860,9 @@ const qi = ye, ie = /* @__PURE__ */ A({
1860
1860
  validator: o
1861
1861
  }]
1862
1862
  }, {
1863
- default: n(() => [i(e(q), {
1863
+ default: a(() => [i(e(x), {
1864
1864
  modelValue: t.value.password,
1865
- "onUpdate:modelValue": m[1] || (m[1] = (p) => t.value.password = p),
1865
+ "onUpdate:modelValue": c[1] || (c[1] = (p) => t.value.password = p),
1866
1866
  placeholder: "请输入密码",
1867
1867
  type: "password",
1868
1868
  autocomplete: "current-password"
@@ -1870,18 +1870,18 @@ const qi = ye, ie = /* @__PURE__ */ A({
1870
1870
  _: 1
1871
1871
  }, 8, ["rules"]), z("div", Jt, [i(e(P), {
1872
1872
  type: "primary",
1873
- loading: a.loading,
1873
+ loading: n.loading,
1874
1874
  long: "",
1875
- size: a.size,
1875
+ size: n.size,
1876
1876
  onClick: s
1877
1877
  }, {
1878
- default: n(() => [...m[2] || (m[2] = [_(" 登陆 ", -1)])]),
1878
+ default: a(() => [...c[2] || (c[2] = [_(" 登陆 ", -1)])]),
1879
1879
  _: 1
1880
1880
  }, 8, ["loading", "size"])])]),
1881
1881
  _: 1
1882
1882
  }, 8, ["model", "size"])]));
1883
1883
  }
1884
- }), Xt = /* @__PURE__ */ C(Qt, [["__scopeId", "data-v-76d6bc26"]]), Yt = {
1884
+ }), Xt = /* @__PURE__ */ $(Qt, [["__scopeId", "data-v-76d6bc26"]]), Yt = {
1885
1885
  class: "SwitchSignUpOrResetPassword"
1886
1886
  }, ei = /* @__PURE__ */ A({
1887
1887
  __name: "AuthkitSwitchSignUpOrResetPassword",
@@ -1890,7 +1890,7 @@ const qi = ye, ie = /* @__PURE__ */ A({
1890
1890
  emit: r
1891
1891
  }) {
1892
1892
  const u = r;
1893
- function a() {
1893
+ function n() {
1894
1894
  u("switchSignUp");
1895
1895
  }
1896
1896
  function o() {
@@ -1900,9 +1900,9 @@ const qi = ye, ie = /* @__PURE__ */ A({
1900
1900
  style: {
1901
1901
  padding: "0px"
1902
1902
  },
1903
- onClick: a
1903
+ onClick: n
1904
1904
  }, {
1905
- default: n(() => [...t[0] || (t[0] = [_("去注册?", -1)])]),
1905
+ default: a(() => [...t[0] || (t[0] = [_("去注册?", -1)])]),
1906
1906
  _: 1
1907
1907
  })]), i(e(j), {
1908
1908
  style: {
@@ -1910,11 +1910,11 @@ const qi = ye, ie = /* @__PURE__ */ A({
1910
1910
  },
1911
1911
  onClick: o
1912
1912
  }, {
1913
- default: n(() => [...t[2] || (t[2] = [_(" 忘记密码?", -1)])]),
1913
+ default: a(() => [...t[2] || (t[2] = [_(" 忘记密码?", -1)])]),
1914
1914
  _: 1
1915
1915
  })]));
1916
1916
  }
1917
- }), ti = /* @__PURE__ */ C(ei, [["__scopeId", "data-v-14e3aab2"]]), ii = {
1917
+ }), ti = /* @__PURE__ */ $(ei, [["__scopeId", "data-v-14e3aab2"]]), ii = {
1918
1918
  class: "SignIn"
1919
1919
  }, li = /* @__PURE__ */ A({
1920
1920
  __name: "AuthkitSignIn",
@@ -1933,30 +1933,30 @@ const qi = ye, ie = /* @__PURE__ */ A({
1933
1933
  setup(l, {
1934
1934
  emit: r
1935
1935
  }) {
1936
- const u = r, a = l, o = Pe(), d = F(() => !!o.OAuth);
1936
+ const u = r, n = l, o = Pe(), d = F(() => !!o.OAuth);
1937
1937
  function t() {
1938
1938
  u("switchSignUp");
1939
1939
  }
1940
1940
  function s() {
1941
1941
  u("switchResetPassword");
1942
1942
  }
1943
- async function y(m) {
1944
- u("submit", m);
1943
+ async function y(c) {
1944
+ u("submit", c);
1945
1945
  }
1946
- return (m, p) => (g(), V("div", ii, [S("", !0), i(Xt, {
1947
- loading: a.loading,
1948
- size: a.size,
1946
+ return (c, p) => (g(), V("div", ii, [S("", !0), i(Xt, {
1947
+ loading: n.loading,
1948
+ size: n.size,
1949
1949
  onSubmit: y
1950
- }, null, 8, ["loading", "size"]), d.value ? de(m.$slots, "OAuth", {
1950
+ }, null, 8, ["loading", "size"]), d.value ? de(c.$slots, "OAuth", {
1951
1951
  key: 1
1952
1952
  }, void 0, !0) : S("", !0), i(ti, {
1953
1953
  onSwitchSignUp: t,
1954
1954
  onSwitchResetPassword: s
1955
1955
  })]));
1956
1956
  }
1957
- }), si = /* @__PURE__ */ C(li, [["__scopeId", "data-v-f52ce3b3"]]), ni = {
1957
+ }), si = /* @__PURE__ */ $(li, [["__scopeId", "data-v-f52ce3b3"]]), ai = {
1958
1958
  class: "SignUp"
1959
- }, ai = /* @__PURE__ */ A({
1959
+ }, ni = /* @__PURE__ */ A({
1960
1960
  __name: "AuthkitSignUp",
1961
1961
  props: {
1962
1962
  size: {
@@ -1973,22 +1973,22 @@ const qi = ye, ie = /* @__PURE__ */ A({
1973
1973
  setup(l, {
1974
1974
  emit: r
1975
1975
  }) {
1976
- const u = r, a = l;
1976
+ const u = r, n = l;
1977
1977
  function o() {
1978
1978
  u("switchSignIn");
1979
1979
  }
1980
1980
  async function d(t) {
1981
1981
  u("submit", t);
1982
1982
  }
1983
- return (t, s) => (g(), V("div", ni, [i(pe, {
1984
- size: a.size,
1983
+ return (t, s) => (g(), V("div", ai, [i(pe, {
1984
+ size: n.size,
1985
1985
  loading: l.loading,
1986
1986
  onSubmit: d
1987
1987
  }, null, 8, ["size", "loading"]), i(he, {
1988
1988
  onSwitchSignIn: o
1989
1989
  })]));
1990
1990
  }
1991
- }), oi = /* @__PURE__ */ C(ai, [["__scopeId", "data-v-058bbbef"]]), ri = ["src"], ui = /* @__PURE__ */ A({
1991
+ }), oi = /* @__PURE__ */ $(ni, [["__scopeId", "data-v-058bbbef"]]), ri = ["src"], ui = /* @__PURE__ */ A({
1992
1992
  __name: "AuthkitAuthTitle",
1993
1993
  props: {
1994
1994
  size: {
@@ -2008,15 +2008,15 @@ const qi = ye, ie = /* @__PURE__ */ A({
2008
2008
  }
2009
2009
  },
2010
2010
  setup(l) {
2011
- const r = l, u = `${r.size}px`, a = `${r.fontSize}px`, o = `${r.lineHeight}px`, {
2011
+ const r = l, u = `${r.size}px`, n = `${r.fontSize}px`, o = `${r.lineHeight}px`, {
2012
2012
  currentView: d
2013
2013
  } = Q(), {
2014
2014
  appsData: t
2015
2015
  } = se(), s = F(() => d.value === "signIn" ? `${t.value.name}登录` : d.value === "signUp" ? `${t.value.name}账号注册` : d.value === "resetPassword" ? `${t.value.name}密码重置` : "");
2016
- return (y, m) => (g(), V("div", {
2016
+ return (y, c) => (g(), V("div", {
2017
2017
  class: "Title",
2018
2018
  style: le({
2019
- fontSize: a,
2019
+ fontSize: n,
2020
2020
  lineHeight: o
2021
2021
  })
2022
2022
  }, [e(t).applicationLogoUrl ? (g(), V("img", {
@@ -2028,11 +2028,11 @@ const qi = ye, ie = /* @__PURE__ */ A({
2028
2028
  })
2029
2029
  }, null, 12, ri)) : S("", !0), z("span", null, T(s.value), 1), de(y.$slots, "default", {}, void 0, !0)], 4));
2030
2030
  }
2031
- }), we = /* @__PURE__ */ C(ui, [["__scopeId", "data-v-5576db64"]]), di = {
2031
+ }), we = /* @__PURE__ */ $(ui, [["__scopeId", "data-v-5576db64"]]), di = {
2032
2032
  class: "Auth"
2033
- }, ci = {
2033
+ }, mi = {
2034
2034
  class: "body"
2035
- }, mi = /* @__PURE__ */ A({
2035
+ }, ci = /* @__PURE__ */ A({
2036
2036
  __name: "AuthkitAuth",
2037
2037
  props: {
2038
2038
  size: {
@@ -2048,46 +2048,46 @@ const qi = ye, ie = /* @__PURE__ */ A({
2048
2048
  setup(l, {
2049
2049
  emit: r
2050
2050
  }) {
2051
- const u = l, a = r, {
2051
+ const u = l, n = r, {
2052
2052
  signInSubmit: o,
2053
2053
  signUpSubmit: d,
2054
2054
  resetPasswordSubmit: t,
2055
2055
  currentView: s,
2056
2056
  authSignInLoading: y,
2057
- authSignUpLoading: m,
2057
+ authSignUpLoading: c,
2058
2058
  resetPasswordLoading: p,
2059
- switchSignUp: c,
2059
+ switchSignUp: m,
2060
2060
  switchResetPassword: f,
2061
2061
  switchSignIn: v
2062
2062
  } = Q(), {
2063
2063
  appsAuthPageInfoApi: b
2064
2064
  } = se();
2065
- function U() {
2066
- a("toPrivacyPolicy");
2065
+ function q() {
2066
+ n("toPrivacyPolicy");
2067
2067
  }
2068
- function $() {
2069
- a("toUserServiceAgreement");
2068
+ function U() {
2069
+ n("toUserServiceAgreement");
2070
2070
  }
2071
2071
  return b(), (R, B) => (g(), V("div", di, [l.showTitle ? (g(), k(we, {
2072
2072
  key: 0,
2073
2073
  size: 32,
2074
2074
  "font-size": 20
2075
- })) : S("", !0), z("div", ci, [e(s) === "signIn" ? (g(), k(si, {
2075
+ })) : S("", !0), z("div", mi, [e(s) === "signIn" ? (g(), k(si, {
2076
2076
  key: 0,
2077
2077
  size: u.size,
2078
2078
  loading: e(y),
2079
- onSwitchSignUp: e(c),
2079
+ onSwitchSignUp: e(m),
2080
2080
  onSwitchResetPassword: e(f),
2081
2081
  onSubmit: B[0] || (B[0] = (O) => e(o)(O))
2082
2082
  }, {
2083
- OAuth: n(() => [i(Tt, {
2083
+ OAuth: a(() => [i(Tt, {
2084
2084
  size: u.size
2085
2085
  }, null, 8, ["size"])]),
2086
2086
  _: 1
2087
2087
  }, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(s) === "signUp" ? (g(), k(oi, {
2088
2088
  key: 1,
2089
2089
  size: u.size,
2090
- loading: e(m),
2090
+ loading: e(c),
2091
2091
  onSwitchSignIn: e(v),
2092
2092
  onSubmit: B[1] || (B[1] = (O) => e(d)(O))
2093
2093
  }, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(s) === "resetPassword" ? (g(), k(Gt, {
@@ -2097,11 +2097,11 @@ const qi = ye, ie = /* @__PURE__ */ A({
2097
2097
  onSwitchSignIn: e(v),
2098
2098
  onSubmit: B[2] || (B[2] = (O) => e(t)(O))
2099
2099
  }, null, 8, ["size", "loading", "onSwitchSignIn"])) : S("", !0), i(Kt, {
2100
- onToPrivacyPolicy: U,
2101
- onToUserServiceAgreement: $
2100
+ onToPrivacyPolicy: q,
2101
+ onToUserServiceAgreement: U
2102
2102
  })])]));
2103
2103
  }
2104
- }), fi = /* @__PURE__ */ C(mi, [["__scopeId", "data-v-bc3a1eb8"]]), pi = /* @__PURE__ */ A({
2104
+ }), fi = /* @__PURE__ */ $(ci, [["__scopeId", "data-v-bc3a1eb8"]]), pi = /* @__PURE__ */ A({
2105
2105
  __name: "AuthkitAuthModal",
2106
2106
  props: {
2107
2107
  size: {
@@ -2120,19 +2120,19 @@ const qi = ye, ie = /* @__PURE__ */ A({
2120
2120
  const {
2121
2121
  addSignInCallback: u
2122
2122
  } = Q(), {
2123
- show: a
2123
+ show: n
2124
2124
  } = xe(), o = l, d = r;
2125
2125
  function t(y) {
2126
2126
  y(!0);
2127
2127
  }
2128
2128
  function s() {
2129
- a.value = !1, d("close");
2129
+ n.value = !1, d("close");
2130
2130
  }
2131
2131
  return u(() => {
2132
- a.value = !1;
2133
- }), (y, m) => (g(), k(e(me), {
2134
- visible: e(a),
2135
- "onUpdate:visible": m[2] || (m[2] = (p) => ue(a) ? a.value = p : null),
2132
+ n.value = !1;
2133
+ }), (y, c) => (g(), k(e(ce), {
2134
+ visible: e(n),
2135
+ "onUpdate:visible": c[2] || (c[2] = (p) => ue(n) ? n.value = p : null),
2136
2136
  footer: !1,
2137
2137
  "mask-closable": !1,
2138
2138
  "title-align": "center",
@@ -2142,24 +2142,24 @@ const qi = ye, ie = /* @__PURE__ */ A({
2142
2142
  onBeforeOk: t,
2143
2143
  onClose: s
2144
2144
  }, {
2145
- title: n(() => [i(we)]),
2146
- default: n(() => [i(fi, {
2145
+ title: a(() => [i(we)]),
2146
+ default: a(() => [i(fi, {
2147
2147
  "show-title": !1,
2148
2148
  size: o.size,
2149
- onToPrivacyPolicy: m[0] || (m[0] = (p) => d("toPrivacyPolicy")),
2150
- onToUserServiceAgreement: m[1] || (m[1] = (p) => d("toUserServiceAgreement"))
2149
+ onToPrivacyPolicy: c[0] || (c[0] = (p) => d("toPrivacyPolicy")),
2150
+ onToUserServiceAgreement: c[1] || (c[1] = (p) => d("toUserServiceAgreement"))
2151
2151
  }, null, 8, ["size"])]),
2152
2152
  _: 1
2153
2153
  }, 8, ["visible"]));
2154
2154
  }
2155
- }), Ri = /* @__PURE__ */ C(pi, [["__scopeId", "data-v-6fbefff8"]]);
2155
+ }), Ri = /* @__PURE__ */ $(pi, [["__scopeId", "data-v-6fbefff8"]]);
2156
2156
  export {
2157
2157
  xi as A,
2158
2158
  pe as E,
2159
2159
  Tt as O,
2160
2160
  Dt as P,
2161
2161
  Gt as R,
2162
- ne as S,
2162
+ ae as S,
2163
2163
  ie as _,
2164
2164
  fi as a,
2165
2165
  we as b,
@@ -2171,7 +2171,7 @@ export {
2171
2171
  ti as h,
2172
2172
  Kt as i,
2173
2173
  Xe as j,
2174
- ae as k,
2174
+ ne as k,
2175
2175
  yt as l,
2176
2176
  rt as m,
2177
2177
  pt as n,