@huyooo/ui 0.5.3 → 0.5.5

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 (48) hide show
  1. package/dist/{AuthkitAuthModal-cEi5Hm14.js → AuthkitAuthModal-BjqMoIed.js} +141 -162
  2. package/dist/AuthkitAuthModal.vue_vue_type_style_index_1_lang-BpOmabWi.js +10 -0
  3. package/dist/{AuthkitAuthorize-DksJZktr.js → AuthkitAuthorize-DWb0xKRa.js} +12 -15
  4. package/dist/{Clipboard-CGm0G1dN.js → Clipboard-Bful1lNJ.js} +1 -1
  5. package/dist/CustomTable-B8i1SbFB.js +202 -0
  6. package/dist/{FeedbackItem-Day3rfSw.js → FeedbackItem-bPlL6uEE.js} +15 -14
  7. package/dist/{FeedbackModal-CsRXm-MY.js → FeedbackModal-DJx3R3rM.js} +22 -25
  8. package/dist/Introduce-e3nEDSRY.js +390 -0
  9. package/dist/LandingPageSectionHeader-Dlc5rL21.js +463 -0
  10. package/dist/LandingPageSectionTabs-CrFrtbqu.js +1369 -0
  11. package/dist/{MessageHandle-DqH_478k.js → MessageHandle-BJH_S-61.js} +37 -45
  12. package/dist/{PaySubscriptions-Dp8y1fdJ.js → PaySubscriptions-BGl9BQru.js} +17 -16
  13. package/dist/{ReferrerReferees-xIXZglpy.js → ReferrerReferees-oi-zzWCo.js} +20 -19
  14. package/dist/{Upload.vue_vue_type_script_setup_true_lang-CxGZSDoo.js → Upload.vue_vue_type_script_setup_true_lang-CDyUt05d.js} +11 -10
  15. package/dist/{UserAccountMenu-DD3zoOBd.js → UserAccountMenu-BD8F9vEK.js} +1 -1
  16. package/dist/{UserPanel-C1NGdsFk.js → UserPanel-C6XusLxb.js} +23 -24
  17. package/dist/{WidthContainer-C30YFs9X.js → WidthContainer-uWfPyPEH.js} +19 -18
  18. package/dist/authkit.js +12 -11
  19. package/dist/common.js +2 -2
  20. package/dist/components/PrivateCom/BodyAndFooterLayout.vue.d.ts +17 -0
  21. package/dist/components/PrivateCom/Footer.vue.d.ts +2 -0
  22. package/dist/components/PrivateCom/Introduce.vue.d.ts +2 -0
  23. package/dist/components/PrivateCom/useSEO.d.ts +71 -0
  24. package/dist/composables.js +26 -25
  25. package/dist/feedback.js +3 -3
  26. package/dist/index-Bb-d5pBq.js +1167 -0
  27. package/dist/index.js +367 -359
  28. package/dist/landingPage.js +46 -45
  29. package/dist/main.d.ts +1 -0
  30. package/dist/message.js +2 -2
  31. package/dist/pay.js +1 -1
  32. package/dist/privateCom.d.ts +4 -0
  33. package/dist/privateCom.js +8 -0
  34. package/dist/referrer.js +1 -1
  35. package/dist/style.css +1 -1
  36. package/dist/upload.js +2 -2
  37. package/dist/{AuthkitAuthModal.vue_vue_type_style_index_1_lang-B-QKS_BT.js → useAuthkitAppsAuthPageInfo-Dr5K7ULW.js} +16 -23
  38. package/dist/{useAuthkitUsersProfile-D2UZf7n0.js → useAuthkitUsersProfile-DNOB_Kuk.js} +1 -1
  39. package/dist/{useMessageNotifications-BahKMcby.js → useMessageNotifications-DOH1MS61.js} +1 -1
  40. package/dist/{useRoutePermission-Uxu5S3m1.js → useRoutePermission-DuZZniIv.js} +18 -17
  41. package/dist/{useUploadCos-DNKp_9xt.js → useUploadCos-B5P_PDcy.js} +2 -2
  42. package/dist/user.js +2 -2
  43. package/package.json +6 -1
  44. package/dist/CustomTable-kfI18phy.js +0 -1359
  45. package/dist/LandingPageSectionTabs-DPTZIwiJ.js +0 -1838
  46. package/dist/utils/landingPage.d.ts +0 -1
  47. /package/dist/{index-DaMA6jEr.js → _commonjsHelpers-DaMA6jEr.js} +0 -0
  48. /package/dist/{index-DZIhLe1R.js → globalConfig-DZIhLe1R.js} +0 -0
@@ -1,17 +1,19 @@
1
1
  /* empty css */
2
- import { g as F } from "./index-DZIhLe1R.js";
3
2
  /* empty css */
4
- import { defineComponent as k, computed as T, createElementBlock as I, openBlock as g, normalizeStyle as j, normalizeClass as ce, createElementVNode as b, ref as y, createBlock as h, unref as e, withCtx as m, createVNode as a, createTextVNode as z, onMounted as G, onUnmounted as te, withDirectives as fe, toDisplayString as B, vShow as pe, Fragment as W, createCommentVNode as S, isRef as ie, useSlots as ve, renderSlot as se } from "vue";
5
- import { Form as O, FormItem as A, Avatar as ne, Input as V, Textarea as ge, Button as U, Message as E, Alert as L, Modal as le, Divider as _e, Link as N } from "@arco-design/web-vue";
6
3
  /* empty css */
4
+ import { defineComponent as k, computed as T, createElementBlock as I, openBlock as g, normalizeStyle as j, normalizeClass as ce, createElementVNode as b, ref as h, createBlock as _, unref as e, withCtx as m, createVNode as a, createTextVNode as z, onMounted as G, onUnmounted as te, withDirectives as fe, toDisplayString as B, vShow as pe, Fragment as W, createCommentVNode as S, isRef as ie, useSlots as ve, renderSlot as se } from "vue";
5
+ import { Form as O, FormItem as A, Avatar as ne, Input as V, Textarea as ge, Button as U, Message as E, Alert as L, Modal as le, Divider as ye, Link as N } from "@arco-design/web-vue";
7
6
  /* empty css */
8
- import { u as ye } from "./useUploadCos-DNKp_9xt.js";
9
- import { b as he, c as ee, d as be, a as K, e as we, f as ze, u as Z } from "./useAuthkitUsersProfile-D2UZf7n0.js";
7
+ /* empty css */
8
+ import { u as he } from "./useUploadCos-B5P_PDcy.js";
9
+ import { b as _e, c as ee, d as be, a as K, e as we, f as ze, u as Z } from "./useAuthkitUsersProfile-DNOB_Kuk.js";
10
+ import { g as F } from "./globalConfig-DZIhLe1R.js";
10
11
  import { _ as Se, g as ke, i as Ae } from "./plugin-vue_export-helper-LjDO2Zua.js";
11
- import { u as J, a as Pe } from "./AuthkitAuthModal.vue_vue_type_style_index_1_lang-B-QKS_BT.js";
12
+ import { u as Pe } from "./AuthkitAuthModal.vue_vue_type_style_index_1_lang-BpOmabWi.js";
12
13
  import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
14
  import { M as Ie } from "./Menu-BKBnsDJ8.js";
14
15
  import { u as Ve } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
16
+ import { u as J } from "./useAuthkitAppsAuthPageInfo-Dr5K7ULW.js";
15
17
  /* empty css */
16
18
  import { api as H } from "@huyooo/api";
17
19
  import { Icon as Ue } from "@iconify/vue";
@@ -96,15 +98,15 @@ const qe = Object.assign(M, {
96
98
  setup(i, {
97
99
  emit: n
98
100
  }) {
99
- const u = n, s = i, o = y({
101
+ const u = n, s = i, o = h({
100
102
  id: void 0,
101
103
  nickname: "",
102
104
  description: "",
103
105
  avatar: "",
104
106
  avatarUrl: ""
105
- }), l = y(!1), t = y(), r = y(!1);
106
- function _() {
107
- r.value = !0, he().then(({
107
+ }), l = h(!1), t = h(), r = h(!1);
108
+ function y() {
109
+ r.value = !0, _e().then(({
108
110
  data: d
109
111
  }) => {
110
112
  r.value = !1, o.value.id = d.id, o.value.nickname = d.nickname, o.value.description = d.description, o.value.avatar = d.avatar, o.value.avatarUrl = d.avatarUrl;
@@ -132,11 +134,11 @@ const qe = Object.assign(M, {
132
134
  }
133
135
  });
134
136
  }
135
- _();
137
+ y();
136
138
  const p = () => {
137
139
  const {
138
140
  uploadFile: d
139
- } = ye(), f = document.createElement("input");
141
+ } = he(), f = document.createElement("input");
140
142
  f.type = "file", f.accept = "image/*", f.style.display = "none", document.body.append(f), f.addEventListener("change", async (v) => {
141
143
  var q;
142
144
  const $ = (q = v.target.files) == null ? void 0 : q[0];
@@ -155,7 +157,7 @@ const qe = Object.assign(M, {
155
157
  avatar: x.Key
156
158
  };
157
159
  ee(me).then(() => {
158
- l.value = !1, E.success("更新成功"), _(), u("submit");
160
+ l.value = !1, E.success("更新成功"), y(), u("submit");
159
161
  }).catch(() => {
160
162
  l.value = !1;
161
163
  });
@@ -171,7 +173,7 @@ const qe = Object.assign(M, {
171
173
  f.remove();
172
174
  }), f.click();
173
175
  };
174
- return (d, f) => (g(), h(e(O), {
176
+ return (d, f) => (g(), _(e(O), {
175
177
  ref_key: "formRef",
176
178
  ref: t,
177
179
  model: o.value,
@@ -240,9 +242,8 @@ const qe = Object.assign(M, {
240
242
  loading: r.value,
241
243
  onClick: c
242
244
  }, {
243
- default: m(() => f[2] || (f[2] = [z(" 提交 ")])),
244
- _: 1,
245
- __: [2]
245
+ default: m(() => [...f[2] || (f[2] = [z(" 提交 ", -1)])]),
246
+ _: 1
246
247
  }, 8, ["loading"])])]),
247
248
  _: 1
248
249
  })]),
@@ -289,9 +290,9 @@ const Ee = /* @__PURE__ */ k({
289
290
  expose: n,
290
291
  emit: u
291
292
  }) {
292
- const s = u, o = i, l = y(!1);
293
+ const s = u, o = i, l = h(!1);
293
294
  let t;
294
- const r = y(0), _ = T(() => r.value.toString().padStart(2, "0")), c = T(() => r.value > 0), p = () => {
295
+ const r = h(0), y = T(() => r.value.toString().padStart(2, "0")), c = T(() => r.value > 0), p = () => {
295
296
  l.value && (r.value <= 0 ? (clearInterval(t), l.value = !1) : r.value--);
296
297
  };
297
298
  function d() {
@@ -305,7 +306,7 @@ const Ee = /* @__PURE__ */ k({
305
306
  startCountFn: f
306
307
  }), te(() => {
307
308
  t && clearInterval(t);
308
- }), (v, w) => (g(), h(e(U), {
309
+ }), (v, w) => (g(), _(e(U), {
309
310
  class: "OAuthItem",
310
311
  type: "primary",
311
312
  size: o.size,
@@ -315,9 +316,8 @@ const Ee = /* @__PURE__ */ k({
315
316
  }, {
316
317
  default: m(() => [w[0] || (w[0] = b("span", null, " 发送验证码", -1)), fe(b("span", {
317
318
  class: "verify-code-timer"
318
- }, B(`(${_.value})`), 513), [[pe, c.value]])]),
319
- _: 1,
320
- __: [0]
319
+ }, B(`(${y.value})`), 513), [[pe, c.value]])]),
320
+ _: 1
321
321
  }, 8, ["size", "disabled", "loading"]));
322
322
  }
323
323
  }), X = /* @__PURE__ */ P(Ee, [["__scopeId", "data-v-2883dc6d"]]);
@@ -350,7 +350,7 @@ const Ne = {
350
350
  setup(i, {
351
351
  emit: n
352
352
  }) {
353
- const u = n, s = i, o = T(() => ae(s.email)), l = y(), t = y(!1), r = y(!1), _ = y(), c = y({
353
+ const u = n, s = i, o = T(() => ae(s.email)), l = h(), t = h(!1), r = h(!1), y = h(), c = h({
354
354
  userToken: void 0,
355
355
  emailVerifyId: void 0
356
356
  });
@@ -366,7 +366,7 @@ const Ne = {
366
366
  });
367
367
  }
368
368
  async function d() {
369
- _.value.validate(["userToken"]).then((f) => {
369
+ y.value.validate(["userToken"]).then((f) => {
370
370
  if (!f) {
371
371
  r.value = !0;
372
372
  const v = {
@@ -382,9 +382,9 @@ const Ne = {
382
382
  }
383
383
  });
384
384
  }
385
- return (f, v) => (g(), h(e(O), {
385
+ return (f, v) => (g(), _(e(O), {
386
386
  ref_key: "formRef",
387
- ref: _,
387
+ ref: y,
388
388
  model: c.value,
389
389
  "auto-label-width": "",
390
390
  size: s.size
@@ -436,9 +436,8 @@ const Ne = {
436
436
  type: "primary",
437
437
  onClick: d
438
438
  }, {
439
- default: m(() => v[1] || (v[1] = [z(" 提交 ")])),
440
- _: 1,
441
- __: [1]
439
+ default: m(() => [...v[1] || (v[1] = [z(" 提交 ", -1)])]),
440
+ _: 1
442
441
  }, 8, ["loading"])])]),
443
442
  _: 1
444
443
  })]),
@@ -459,14 +458,14 @@ const Ne = {
459
458
  setup(i, {
460
459
  emit: n
461
460
  }) {
462
- const u = n, s = y(!1), o = y(), l = i, t = y({
461
+ const u = n, s = h(!1), o = h(), l = i, t = h({
463
462
  oldPassword: "",
464
463
  password: "",
465
464
  confirmPassword: ""
466
465
  });
467
466
  async function r() {
468
- o.value.validate().then((_) => {
469
- if (!_) {
467
+ o.value.validate().then((y) => {
468
+ if (!y) {
470
469
  const c = {
471
470
  password: t.value.password
472
471
  };
@@ -478,7 +477,7 @@ const Ne = {
478
477
  }
479
478
  });
480
479
  }
481
- return (_, c) => (g(), h(e(O), {
480
+ return (y, c) => (g(), _(e(O), {
482
481
  ref_key: "formRef",
483
482
  ref: o,
484
483
  model: t.value,
@@ -553,9 +552,8 @@ const Ne = {
553
552
  loading: s.value,
554
553
  onClick: r
555
554
  }, {
556
- default: m(() => c[3] || (c[3] = [z(" 提交 ")])),
557
- _: 1,
558
- __: [3]
555
+ default: m(() => [...c[3] || (c[3] = [z(" 提交 ", -1)])]),
556
+ _: 1
559
557
  }, 8, ["loading"])])]),
560
558
  _: 1
561
559
  })]),
@@ -576,11 +574,11 @@ const Ne = {
576
574
  loading: u,
577
575
  fetchUserProfile: s,
578
576
  isLoggedIn: o
579
- } = K(), l = y("hidden"), t = i;
577
+ } = K(), l = h("hidden"), t = i;
580
578
  function r(p) {
581
579
  l.value = p;
582
580
  }
583
- function _(p) {
581
+ function y(p) {
584
582
  E.success("密码修改成功"), l.value = "hidden", s();
585
583
  }
586
584
  function c() {
@@ -590,7 +588,7 @@ const Ne = {
590
588
  o.value && !n.value && s();
591
589
  }), (p, d) => {
592
590
  var f, v, w, $;
593
- return g(), I(W, null, [!((f = e(n)) != null && f.email) && !((v = e(n)) != null && v.phone) ? (g(), h(e(L), {
591
+ return g(), I(W, null, [!((f = e(n)) != null && f.email) && !((v = e(n)) != null && v.phone) ? (g(), _(e(L), {
594
592
  key: 0,
595
593
  title: "去绑定邮箱"
596
594
  }, {
@@ -599,14 +597,12 @@ const Ne = {
599
597
  type: "primary",
600
598
  onClick: d[0] || (d[0] = (q) => r("update"))
601
599
  }, {
602
- default: m(() => d[2] || (d[2] = [z(" 去绑定邮箱 ")])),
603
- _: 1,
604
- __: [2]
600
+ default: m(() => [...d[2] || (d[2] = [z(" 去绑定邮箱 ", -1)])]),
601
+ _: 1
605
602
  }, 8, ["size"])]),
606
- default: m(() => [d[3] || (d[3] = z(" 请先去绑定邮箱或者手机号码,才能设置密码 "))]),
607
- _: 1,
608
- __: [3]
609
- })) : S("", !0), (w = e(n)) != null && w.email && l.value === "hidden" ? (g(), h(e(L), {
603
+ default: m(() => [d[3] || (d[3] = z(" 请先去绑定邮箱或者手机号码,才能设置密码 ", -1))]),
604
+ _: 1
605
+ })) : S("", !0), (w = e(n)) != null && w.email && l.value === "hidden" ? (g(), _(e(L), {
610
606
  key: 1,
611
607
  title: "更改密码"
612
608
  }, {
@@ -615,19 +611,17 @@ const Ne = {
615
611
  type: "primary",
616
612
  onClick: d[1] || (d[1] = (q) => r("verify"))
617
613
  }, {
618
- default: m(() => d[4] || (d[4] = [z("更改密码")])),
619
- _: 1,
620
- __: [4]
614
+ default: m(() => [...d[4] || (d[4] = [z("更改密码", -1)])]),
615
+ _: 1
621
616
  }, 8, ["size"])]),
622
- default: m(() => [d[5] || (d[5] = z(" 为了账户安全修改密码前会先验证身份 "))]),
623
- _: 1,
624
- __: [5]
625
- })) : S("", !0), l.value === "update" ? (g(), h(De, {
617
+ default: m(() => [d[5] || (d[5] = z(" 为了账户安全修改密码前会先验证身份 ", -1))]),
618
+ _: 1
619
+ })) : S("", !0), l.value === "update" ? (g(), _(De, {
626
620
  key: 2,
627
621
  size: t.size,
628
622
  loading: e(u),
629
- onSubmit: _
630
- }, null, 8, ["size", "loading"])) : S("", !0), l.value === "verify" ? (g(), h(Y, {
623
+ onSubmit: y
624
+ }, null, 8, ["size", "loading"])) : S("", !0), l.value === "verify" ? (g(), _(Y, {
631
625
  key: 3,
632
626
  size: t.size,
633
627
  email: ($ = e(n)) == null ? void 0 : $.email,
@@ -658,7 +652,7 @@ const Ne = {
658
652
  setup(i, {
659
653
  emit: n
660
654
  }) {
661
- const u = n, s = i, o = y(), l = y(!1), t = y(), r = y({
655
+ const u = n, s = i, o = h(), l = h(!1), t = h(), r = h({
662
656
  email: void 0,
663
657
  userToken: void 0,
664
658
  emailVerifyId: void 0,
@@ -666,7 +660,7 @@ const Ne = {
666
660
  confirmPassword: void 0,
667
661
  referrerId: void 0
668
662
  });
669
- async function _() {
663
+ async function y() {
670
664
  t.value.validateField(["email"]).then((p) => {
671
665
  p || (l.value = !0, Q({
672
666
  email: r.value.email
@@ -733,7 +727,7 @@ const Ne = {
733
727
  style: {
734
728
  "margin-left": "10px"
735
729
  },
736
- onSend: _
730
+ onSend: y
737
731
  }, null, 8, ["size", "loading"])])]),
738
732
  _: 1
739
733
  }), a(e(A), {
@@ -803,9 +797,8 @@ const Ne = {
803
797
  size: s.size,
804
798
  onClick: c
805
799
  }, {
806
- default: m(() => d[5] || (d[5] = [z(" 提交 ")])),
807
- _: 1,
808
- __: [5]
800
+ default: m(() => [...d[5] || (d[5] = [z(" 提交 ", -1)])]),
801
+ _: 1
809
802
  }, 8, ["loading", "size"])])]),
810
803
  _: 1
811
804
  }, 8, ["model", "size"])]));
@@ -823,7 +816,7 @@ const Ne = {
823
816
  userProfile: n,
824
817
  loading: u,
825
818
  fetchUserProfile: s
826
- } = K(), o = y("hidden"), l = i;
819
+ } = K(), o = h("hidden"), l = i;
827
820
  function t(c) {
828
821
  o.value = c;
829
822
  }
@@ -840,14 +833,14 @@ const Ne = {
840
833
  u.value = !1;
841
834
  });
842
835
  }
843
- function _() {
836
+ function y() {
844
837
  o.value = "update";
845
838
  }
846
839
  return G(() => {
847
840
  n.value || s();
848
841
  }), (c, p) => {
849
842
  var d, f, v;
850
- return g(), I(W, null, [!((d = e(n)) != null && d.email) && o.value === "hidden" ? (g(), h(e(L), {
843
+ return g(), I(W, null, [!((d = e(n)) != null && d.email) && o.value === "hidden" ? (g(), _(e(L), {
851
844
  key: 0,
852
845
  title: "绑定邮箱"
853
846
  }, {
@@ -856,14 +849,12 @@ const Ne = {
856
849
  type: "primary",
857
850
  onClick: p[0] || (p[0] = (w) => t("update"))
858
851
  }, {
859
- default: m(() => p[2] || (p[2] = [z(" 绑定邮箱 ")])),
860
- _: 1,
861
- __: [2]
852
+ default: m(() => [...p[2] || (p[2] = [z(" 绑定邮箱 ", -1)])]),
853
+ _: 1
862
854
  }, 8, ["size"])]),
863
- default: m(() => [p[3] || (p[3] = z(" 您还未绑定邮箱,请点击绑定邮箱 "))]),
864
- _: 1,
865
- __: [3]
866
- })) : S("", !0), (f = e(n)) != null && f.email && o.value === "hidden" ? (g(), h(e(L), {
855
+ default: m(() => [p[3] || (p[3] = z(" 您还未绑定邮箱,请点击绑定邮箱 ", -1))]),
856
+ _: 1
857
+ })) : S("", !0), (f = e(n)) != null && f.email && o.value === "hidden" ? (g(), _(e(L), {
867
858
  key: 1,
868
859
  title: "更改邮箱"
869
860
  }, {
@@ -872,25 +863,24 @@ const Ne = {
872
863
  type: "primary",
873
864
  onClick: p[1] || (p[1] = (w) => t("verify"))
874
865
  }, {
875
- default: m(() => p[4] || (p[4] = [z(" 更改邮箱 ")])),
876
- _: 1,
877
- __: [4]
866
+ default: m(() => [...p[4] || (p[4] = [z(" 更改邮箱 ", -1)])]),
867
+ _: 1
878
868
  }, 8, ["size"])]),
879
869
  default: m(() => {
880
870
  var w;
881
871
  return [z(B(`您绑定的邮箱为${e(ae)((w = e(n)) == null ? void 0 : w.email)}`) + " ", 1)];
882
872
  }),
883
873
  _: 1
884
- })) : S("", !0), o.value === "update" ? (g(), h(oe, {
874
+ })) : S("", !0), o.value === "update" ? (g(), _(oe, {
885
875
  key: 2,
886
876
  loading: e(u),
887
877
  size: l.size,
888
878
  onSubmit: r
889
- }, null, 8, ["loading", "size"])) : S("", !0), o.value === "verify" ? (g(), h(Y, {
879
+ }, null, 8, ["loading", "size"])) : S("", !0), o.value === "verify" ? (g(), _(Y, {
890
880
  key: 3,
891
881
  size: l.size,
892
882
  email: (v = e(n)) == null ? void 0 : v.email,
893
- onNext: _
883
+ onNext: y
894
884
  }, null, 8, ["size", "email"])) : S("", !0)], 64);
895
885
  };
896
886
  }
@@ -913,13 +903,13 @@ const Ye = /* @__PURE__ */ k({
913
903
  const {
914
904
  userProfile: n,
915
905
  fetchUserProfile: u
916
- } = K(), s = y("hidden"), o = y(!1);
906
+ } = K(), s = h("hidden"), o = h(!1);
917
907
  let l;
918
908
  const t = i;
919
909
  function r(f) {
920
910
  s.value = f;
921
911
  }
922
- function _() {
912
+ function y() {
923
913
  re().then(({
924
914
  data: f
925
915
  }) => {
@@ -935,7 +925,7 @@ const Ye = /* @__PURE__ */ k({
935
925
  });
936
926
  }
937
927
  function p() {
938
- s.value === "bind" && (s.value = "hidden", _()), s.value === "unbind" && c();
928
+ s.value === "bind" && (s.value = "hidden", y()), s.value === "unbind" && c();
939
929
  }
940
930
  function d() {
941
931
  o.value && u();
@@ -946,7 +936,7 @@ const Ye = /* @__PURE__ */ k({
946
936
  l && clearInterval(l);
947
937
  }), (f, v) => {
948
938
  var w, $, q;
949
- return g(), I(W, null, [!((w = e(n)) != null && w.github) && s.value === "hidden" ? (g(), h(e(L), {
939
+ return g(), I(W, null, [!((w = e(n)) != null && w.github) && s.value === "hidden" ? (g(), _(e(L), {
950
940
  key: 0,
951
941
  title: "绑定GitHUb"
952
942
  }, {
@@ -955,14 +945,12 @@ const Ye = /* @__PURE__ */ k({
955
945
  type: "primary",
956
946
  onClick: v[0] || (v[0] = (R) => r("bind"))
957
947
  }, {
958
- default: m(() => v[2] || (v[2] = [z(" 绑定GitHUb ")])),
959
- _: 1,
960
- __: [2]
948
+ default: m(() => [...v[2] || (v[2] = [z(" 绑定GitHUb ", -1)])]),
949
+ _: 1
961
950
  }, 8, ["size"])]),
962
- default: m(() => [v[3] || (v[3] = z(" 请尚未绑定GitHub,请点击绑定GitHUb "))]),
963
- _: 1,
964
- __: [3]
965
- })) : S("", !0), ($ = e(n)) != null && $.github && s.value === "hidden" ? (g(), h(e(L), {
951
+ default: m(() => [v[3] || (v[3] = z(" 请尚未绑定GitHub,请点击绑定GitHUb ", -1))]),
952
+ _: 1
953
+ })) : S("", !0), ($ = e(n)) != null && $.github && s.value === "hidden" ? (g(), _(e(L), {
966
954
  key: 1,
967
955
  title: "解绑GitHub"
968
956
  }, {
@@ -971,9 +959,8 @@ const Ye = /* @__PURE__ */ k({
971
959
  type: "primary",
972
960
  onClick: v[1] || (v[1] = (R) => r("unbind"))
973
961
  }, {
974
- default: m(() => v[4] || (v[4] = [z(" 解绑GitHUb ")])),
975
- _: 1,
976
- __: [4]
962
+ default: m(() => [...v[4] || (v[4] = [z(" 解绑GitHUb ", -1)])]),
963
+ _: 1
977
964
  }, 8, ["size"])]),
978
965
  default: m(() => {
979
966
  var R, C, x;
@@ -983,7 +970,7 @@ const Ye = /* @__PURE__ */ k({
983
970
  }, null, 8, ["image-url"])];
984
971
  }),
985
972
  _: 1
986
- })) : S("", !0), s.value === "bind" || s.value === "unbind" ? (g(), h(Y, {
973
+ })) : S("", !0), s.value === "bind" || s.value === "unbind" ? (g(), _(Y, {
987
974
  key: 2,
988
975
  size: t.size,
989
976
  email: (q = e(n)) == null ? void 0 : q.email,
@@ -1008,7 +995,7 @@ const Ye = /* @__PURE__ */ k({
1008
995
  function o() {
1009
996
  s("cancel");
1010
997
  }
1011
- const l = y("large"), t = y(["PersonalInformation"]), r = y([{
998
+ const l = h("large"), t = h(["PersonalInformation"]), r = h([{
1012
999
  name: "个人信息",
1013
1000
  path: "PersonalInformation",
1014
1001
  meta: {
@@ -1053,7 +1040,7 @@ const Ye = /* @__PURE__ */ k({
1053
1040
  // },
1054
1041
  ]
1055
1042
  }]);
1056
- function _(f, v) {
1043
+ function y(f, v) {
1057
1044
  const w = f.path;
1058
1045
  console.log(w, v, "lokokoko"), t.value = [w];
1059
1046
  }
@@ -1066,7 +1053,7 @@ const Ye = /* @__PURE__ */ k({
1066
1053
  }
1067
1054
  return n({
1068
1055
  setData: d
1069
- }), (f, v) => (g(), h(e(le), {
1056
+ }), (f, v) => (g(), _(e(le), {
1070
1057
  visible: e(p),
1071
1058
  "onUpdate:visible": v[1] || (v[1] = (w) => ie(p) ? p.value = w : null),
1072
1059
  "unmount-on-close": "",
@@ -1076,29 +1063,29 @@ const Ye = /* @__PURE__ */ k({
1076
1063
  width: "700px",
1077
1064
  onCancel: o
1078
1065
  }, {
1079
- title: m(() => v[2] || (v[2] = [z(" 系统设置 ")])),
1066
+ title: m(() => [...v[2] || (v[2] = [z(" 系统设置 ", -1)])]),
1080
1067
  default: m(() => [b("div", et, [b("div", tt, [a(Ie, {
1081
1068
  "selected-keys": t.value,
1082
1069
  "onUpdate:selectedKeys": v[0] || (v[0] = (w) => t.value = w),
1083
1070
  menus: r.value,
1084
- onChange: _
1085
- }, null, 8, ["selected-keys", "menus"])]), b("div", it, [t.value[0] === "PersonalInformation" ? (g(), h(Le, {
1071
+ onChange: y
1072
+ }, null, 8, ["selected-keys", "menus"])]), b("div", it, [t.value[0] === "PersonalInformation" ? (g(), _(Le, {
1086
1073
  key: 0,
1087
1074
  size: l.value
1088
- }, null, 8, ["size"])) : S("", !0), t.value[0] === "EmailBinding" ? (g(), h(Xe, {
1075
+ }, null, 8, ["size"])) : S("", !0), t.value[0] === "EmailBinding" ? (g(), _(Xe, {
1089
1076
  key: 1,
1090
1077
  size: l.value
1091
- }, null, 8, ["size"])) : S("", !0), t.value[0] === "SetPassword" ? (g(), h(je, {
1078
+ }, null, 8, ["size"])) : S("", !0), t.value[0] === "SetPassword" ? (g(), _(je, {
1092
1079
  key: 2,
1093
1080
  size: l.value
1094
- }, null, 8, ["size"])) : S("", !0), t.value[0] === "GithubBinding" ? (g(), h(Ye, {
1081
+ }, null, 8, ["size"])) : S("", !0), t.value[0] === "GithubBinding" ? (g(), _(Ye, {
1095
1082
  key: 3,
1096
1083
  size: l.value
1097
1084
  }, null, 8, ["size"])) : S("", !0)])])]),
1098
1085
  _: 1
1099
1086
  }, 8, ["visible"]));
1100
1087
  }
1101
- }), ri = /* @__PURE__ */ P(st, [["__scopeId", "data-v-cd51dcec"]]);
1088
+ }), di = /* @__PURE__ */ P(st, [["__scopeId", "data-v-cd51dcec"]]);
1102
1089
  function nt() {
1103
1090
  re().then(({
1104
1091
  data: i
@@ -1145,7 +1132,7 @@ const D = /* @__PURE__ */ k({
1145
1132
  emit: n
1146
1133
  }) {
1147
1134
  const u = i;
1148
- return (s, o) => (g(), h(e(U), {
1135
+ return (s, o) => (g(), _(e(U), {
1149
1136
  class: "OAuthItem",
1150
1137
  type: "primary",
1151
1138
  size: u.size
@@ -1181,26 +1168,25 @@ const D = /* @__PURE__ */ k({
1181
1168
  googleAuth: o,
1182
1169
  microsoftAuth: l
1183
1170
  } = ot(), t = T(() => !(!n.value.oauth.google.enabled && !n.value.oauth.microsoft.enabled && !n.value.oauth.github.enabled && !n.value.oauth.wechat.enabled));
1184
- return (r, _) => (g(), I("div", rt, [t.value ? (g(), h(e(_e), {
1171
+ return (r, y) => (g(), I("div", rt, [t.value ? (g(), _(e(ye), {
1185
1172
  key: 0,
1186
1173
  orientation: "center"
1187
1174
  }, {
1188
- default: m(() => _[0] || (_[0] = [z("OAuth登陆")])),
1189
- _: 1,
1190
- __: [0]
1191
- })) : S("", !0), b("div", ut, [e(n).oauth.github.enabled ? (g(), h(D, {
1175
+ default: m(() => [...y[0] || (y[0] = [z("OAuth登陆", -1)])]),
1176
+ _: 1
1177
+ })) : S("", !0), b("div", ut, [e(n).oauth.github.enabled ? (g(), _(D, {
1192
1178
  key: 0,
1193
1179
  icon: "mdi:github",
1194
1180
  label: "Github",
1195
1181
  size: u.size,
1196
1182
  onClick: e(s)
1197
- }, null, 8, ["size", "onClick"])) : S("", !0), e(n).oauth.google.enabled ? (g(), h(D, {
1183
+ }, null, 8, ["size", "onClick"])) : S("", !0), e(n).oauth.google.enabled ? (g(), _(D, {
1198
1184
  key: 1,
1199
1185
  icon: "mdi:google",
1200
1186
  label: "Google",
1201
1187
  size: u.size,
1202
1188
  onClick: e(o)
1203
- }, null, 8, ["size", "onClick"])) : S("", !0), e(n).oauth.microsoft.enabled ? (g(), h(D, {
1189
+ }, null, 8, ["size", "onClick"])) : S("", !0), e(n).oauth.microsoft.enabled ? (g(), _(D, {
1204
1190
  key: 2,
1205
1191
  icon: "mdi:microsoft",
1206
1192
  label: "Microsoft",
@@ -1231,14 +1217,14 @@ const D = /* @__PURE__ */ k({
1231
1217
  setup(i, {
1232
1218
  emit: n
1233
1219
  }) {
1234
- const u = n, s = i, o = y(), l = y(!1), t = y(), r = y({
1220
+ const u = n, s = i, o = h(), l = h(!1), t = h(), r = h({
1235
1221
  email: void 0,
1236
1222
  userToken: void 0,
1237
1223
  emailVerifyId: void 0,
1238
1224
  password: void 0,
1239
1225
  confirmPassword: void 0
1240
1226
  });
1241
- async function _() {
1227
+ async function y() {
1242
1228
  t.value.validateField(["email"]).then((p) => {
1243
1229
  p || (l.value = !0, Q({
1244
1230
  email: r.value.email
@@ -1302,7 +1288,7 @@ const D = /* @__PURE__ */ k({
1302
1288
  style: {
1303
1289
  "margin-left": "10px"
1304
1290
  },
1305
- onSend: _
1291
+ onSend: y
1306
1292
  }, null, 8, ["size", "loading"])])]),
1307
1293
  _: 1
1308
1294
  }), a(e(A), {
@@ -1356,16 +1342,15 @@ const D = /* @__PURE__ */ k({
1356
1342
  size: s.size,
1357
1343
  onClick: c
1358
1344
  }, {
1359
- default: m(() => d[4] || (d[4] = [z(" 提交 ")])),
1360
- _: 1,
1361
- __: [4]
1345
+ default: m(() => [...d[4] || (d[4] = [z(" 提交 ", -1)])]),
1346
+ _: 1
1362
1347
  }, 8, ["loading", "size"])])]),
1363
1348
  _: 1
1364
1349
  }, 8, ["model", "size"])]));
1365
1350
  }
1366
- }), gt = /* @__PURE__ */ P(vt, [["__scopeId", "data-v-1c83f44a"]]), _t = {
1351
+ }), gt = /* @__PURE__ */ P(vt, [["__scopeId", "data-v-1c83f44a"]]), yt = {
1367
1352
  class: "SwitchSignIn"
1368
- }, yt = /* @__PURE__ */ k({
1353
+ }, ht = /* @__PURE__ */ k({
1369
1354
  __name: "AuthkitSwitchSignIn",
1370
1355
  emits: ["switchSignIn"],
1371
1356
  setup(i, {
@@ -1375,18 +1360,17 @@ const D = /* @__PURE__ */ k({
1375
1360
  function s() {
1376
1361
  u("switchSignIn");
1377
1362
  }
1378
- return (o, l) => (g(), I("div", _t, [b("span", null, [l[1] || (l[1] = b("span", null, "已经有账号?", -1)), a(e(N), {
1363
+ return (o, l) => (g(), I("div", yt, [b("span", null, [l[1] || (l[1] = b("span", null, "已经有账号?", -1)), a(e(N), {
1379
1364
  style: {
1380
1365
  padding: "0px"
1381
1366
  },
1382
1367
  onClick: s
1383
1368
  }, {
1384
- default: m(() => l[0] || (l[0] = [z("去登陆")])),
1385
- _: 1,
1386
- __: [0]
1369
+ default: m(() => [...l[0] || (l[0] = [z("去登陆", -1)])]),
1370
+ _: 1
1387
1371
  })])]));
1388
1372
  }
1389
- }), ue = /* @__PURE__ */ P(yt, [["__scopeId", "data-v-fc1d3903"]]), ht = {
1373
+ }), ue = /* @__PURE__ */ P(ht, [["__scopeId", "data-v-fc1d3903"]]), _t = {
1390
1374
  class: "ResetPassword"
1391
1375
  }, bt = /* @__PURE__ */ k({
1392
1376
  __name: "AuthkitResetPassword",
@@ -1413,7 +1397,7 @@ const D = /* @__PURE__ */ k({
1413
1397
  async function l(t) {
1414
1398
  u("submit", t);
1415
1399
  }
1416
- return (t, r) => (g(), I("div", ht, [a(gt, {
1400
+ return (t, r) => (g(), I("div", _t, [a(gt, {
1417
1401
  loading: i.loading,
1418
1402
  size: s.size,
1419
1403
  onSubmit: l
@@ -1439,15 +1423,13 @@ const D = /* @__PURE__ */ k({
1439
1423
  return (l, t) => (g(), I("div", zt, [t[2] || (t[2] = b("span", null, " 注册登陆即表示同意", -1)), a(e(N), {
1440
1424
  onClick: s
1441
1425
  }, {
1442
- default: m(() => t[0] || (t[0] = [z("用户服务协议")])),
1443
- _: 1,
1444
- __: [0]
1426
+ default: m(() => [...t[0] || (t[0] = [z("用户服务协议", -1)])]),
1427
+ _: 1
1445
1428
  }), t[3] || (t[3] = b("span", null, " 和 ", -1)), a(e(N), {
1446
1429
  onClick: o
1447
1430
  }, {
1448
- default: m(() => t[1] || (t[1] = [z("隐私协议")])),
1449
- _: 1,
1450
- __: [1]
1431
+ default: m(() => [...t[1] || (t[1] = [z("隐私协议", -1)])]),
1432
+ _: 1
1451
1433
  })]));
1452
1434
  }
1453
1435
  }), kt = /* @__PURE__ */ P(St, [["__scopeId", "data-v-18e831ec"]]), At = {
@@ -1472,9 +1454,9 @@ const D = /* @__PURE__ */ k({
1472
1454
  emit: n
1473
1455
  }) {
1474
1456
  const u = n, s = i;
1475
- async function o(_, c) {
1457
+ async function o(y, c) {
1476
1458
  const p = await Oe({
1477
- password: _
1459
+ password: y
1478
1460
  });
1479
1461
  p || c("密码验证请求出错!");
1480
1462
  const {
@@ -1483,16 +1465,16 @@ const D = /* @__PURE__ */ k({
1483
1465
  } = p.data;
1484
1466
  d || c(f), c();
1485
1467
  }
1486
- const l = y(), t = y({
1468
+ const l = h(), t = h({
1487
1469
  email: void 0,
1488
1470
  password: void 0
1489
1471
  });
1490
1472
  async function r() {
1491
- l.value.validate().then((_) => {
1492
- _ || u("submit", t.value);
1473
+ l.value.validate().then((y) => {
1474
+ y || u("submit", t.value);
1493
1475
  });
1494
1476
  }
1495
- return (_, c) => (g(), I("div", At, [a(e(O), {
1477
+ return (y, c) => (g(), I("div", At, [a(e(O), {
1496
1478
  ref_key: "formRef",
1497
1479
  ref: l,
1498
1480
  model: t.value,
@@ -1545,9 +1527,8 @@ const D = /* @__PURE__ */ k({
1545
1527
  size: s.size,
1546
1528
  onClick: r
1547
1529
  }, {
1548
- default: m(() => c[2] || (c[2] = [z(" 登陆 ")])),
1549
- _: 1,
1550
- __: [2]
1530
+ default: m(() => [...c[2] || (c[2] = [z(" 登陆 ", -1)])]),
1531
+ _: 1
1551
1532
  }, 8, ["loading", "size"])])]),
1552
1533
  _: 1
1553
1534
  }, 8, ["model", "size"])]));
@@ -1573,18 +1554,16 @@ const D = /* @__PURE__ */ k({
1573
1554
  },
1574
1555
  onClick: s
1575
1556
  }, {
1576
- default: m(() => t[0] || (t[0] = [z("去注册?")])),
1577
- _: 1,
1578
- __: [0]
1557
+ default: m(() => [...t[0] || (t[0] = [z("去注册?", -1)])]),
1558
+ _: 1
1579
1559
  })]), a(e(N), {
1580
1560
  style: {
1581
1561
  padding: "0px"
1582
1562
  },
1583
1563
  onClick: o
1584
1564
  }, {
1585
- default: m(() => t[2] || (t[2] = [z(" 忘记密码?")])),
1586
- _: 1,
1587
- __: [2]
1565
+ default: m(() => [...t[2] || (t[2] = [z(" 忘记密码?", -1)])]),
1566
+ _: 1
1588
1567
  })]));
1589
1568
  }
1590
1569
  }), Ct = /* @__PURE__ */ P($t, [["__scopeId", "data-v-14e3aab2"]]), xt = {
@@ -1613,13 +1592,13 @@ const D = /* @__PURE__ */ k({
1613
1592
  function r() {
1614
1593
  u("switchResetPassword");
1615
1594
  }
1616
- async function _(c) {
1595
+ async function y(c) {
1617
1596
  u("submit", c);
1618
1597
  }
1619
1598
  return (c, p) => (g(), I("div", xt, [S("", !0), a(Vt, {
1620
1599
  loading: s.loading,
1621
1600
  size: s.size,
1622
- onSubmit: _
1601
+ onSubmit: y
1623
1602
  }, null, 8, ["loading", "size"]), l.value ? se(c.$slots, "OAuth", {
1624
1603
  key: 1
1625
1604
  }, void 0, !0) : S("", !0), a(Ct, {
@@ -1686,7 +1665,7 @@ const D = /* @__PURE__ */ k({
1686
1665
  } = Z(), {
1687
1666
  appsData: t
1688
1667
  } = J(), r = T(() => l.value === "signIn" ? `${t.value.name}登录` : l.value === "signUp" ? `${t.value.name}账号注册` : l.value === "resetPassword" ? `${t.value.name}密码重置` : "");
1689
- return (_, c) => (g(), I("div", {
1668
+ return (y, c) => (g(), I("div", {
1690
1669
  class: "Title",
1691
1670
  style: j({
1692
1671
  fontSize: s,
@@ -1699,7 +1678,7 @@ const D = /* @__PURE__ */ k({
1699
1678
  style: j({
1700
1679
  width: u
1701
1680
  })
1702
- }, null, 12, Ot)) : S("", !0), b("span", null, B(r.value), 1), se(_.$slots, "default", {}, void 0, !0)], 4));
1681
+ }, null, 12, Ot)) : S("", !0), b("span", null, B(r.value), 1), se(y.$slots, "default", {}, void 0, !0)], 4));
1703
1682
  }
1704
1683
  }), de = /* @__PURE__ */ P(Et, [["__scopeId", "data-v-5576db64"]]), Nt = {
1705
1684
  class: "Auth"
@@ -1726,7 +1705,7 @@ const D = /* @__PURE__ */ k({
1726
1705
  signUpSubmit: l,
1727
1706
  resetPasswordSubmit: t,
1728
1707
  currentView: r,
1729
- authSignInLoading: _,
1708
+ authSignInLoading: y,
1730
1709
  authSignUpLoading: c,
1731
1710
  resetPasswordLoading: p,
1732
1711
  switchSignUp: d,
@@ -1741,14 +1720,14 @@ const D = /* @__PURE__ */ k({
1741
1720
  function q() {
1742
1721
  s("toUserServiceAgreement");
1743
1722
  }
1744
- return w(), (R, C) => (g(), I("div", Nt, [i.showTitle ? (g(), h(de, {
1723
+ return w(), (R, C) => (g(), I("div", Nt, [i.showTitle ? (g(), _(de, {
1745
1724
  key: 0,
1746
1725
  size: 32,
1747
1726
  "font-size": 20
1748
- })) : S("", !0), b("div", Ft, [e(r) === "signIn" ? (g(), h(Rt, {
1727
+ })) : S("", !0), b("div", Ft, [e(r) === "signIn" ? (g(), _(Rt, {
1749
1728
  key: 0,
1750
1729
  size: u.size,
1751
- loading: e(_),
1730
+ loading: e(y),
1752
1731
  onSwitchSignUp: e(d),
1753
1732
  onSwitchResetPassword: e(f),
1754
1733
  onSubmit: C[0] || (C[0] = (x) => e(o)(x))
@@ -1757,13 +1736,13 @@ const D = /* @__PURE__ */ k({
1757
1736
  size: u.size
1758
1737
  }, null, 8, ["size"])]),
1759
1738
  _: 1
1760
- }, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(r) === "signUp" ? (g(), h(Bt, {
1739
+ }, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(r) === "signUp" ? (g(), _(Bt, {
1761
1740
  key: 1,
1762
1741
  size: u.size,
1763
1742
  loading: e(c),
1764
1743
  onSwitchSignIn: e(v),
1765
1744
  onSubmit: C[1] || (C[1] = (x) => e(l)(x))
1766
- }, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(r) === "resetPassword" ? (g(), h(wt, {
1745
+ }, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(r) === "resetPassword" ? (g(), _(wt, {
1767
1746
  key: 2,
1768
1747
  size: u.size,
1769
1748
  loading: e(p),
@@ -1795,15 +1774,15 @@ const D = /* @__PURE__ */ k({
1795
1774
  } = Z(), {
1796
1775
  show: s
1797
1776
  } = Pe(), o = i, l = n;
1798
- function t(_) {
1799
- _(!0);
1777
+ function t(y) {
1778
+ y(!0);
1800
1779
  }
1801
1780
  function r() {
1802
1781
  s.value = !1, l("close");
1803
1782
  }
1804
1783
  return u(() => {
1805
1784
  s.value = !1;
1806
- }), (_, c) => (g(), h(e(le), {
1785
+ }), (y, c) => (g(), _(e(le), {
1807
1786
  visible: e(s),
1808
1787
  "onUpdate:visible": c[2] || (c[2] = (p) => ie(s) ? s.value = p : null),
1809
1788
  footer: !1,
@@ -1825,9 +1804,9 @@ const D = /* @__PURE__ */ k({
1825
1804
  _: 1
1826
1805
  }, 8, ["visible"]));
1827
1806
  }
1828
- }), ui = /* @__PURE__ */ P(Mt, [["__scopeId", "data-v-6fbefff8"]]);
1807
+ }), mi = /* @__PURE__ */ P(Mt, [["__scopeId", "data-v-6fbefff8"]]);
1829
1808
  export {
1830
- ri as A,
1809
+ di as A,
1831
1810
  oe as E,
1832
1811
  mt as O,
1833
1812
  gt as P,
@@ -1836,7 +1815,7 @@ export {
1836
1815
  D as _,
1837
1816
  Ht as a,
1838
1817
  de as b,
1839
- ui as c,
1818
+ mi as c,
1840
1819
  Rt as d,
1841
1820
  Bt as e,
1842
1821
  Vt as f,