@huyooo/ui 0.4.23 → 0.4.24

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 (33) hide show
  1. package/dist/{AuthkitAppSetting-MYrqMZAf.js → AuthkitAppSetting-BFCdC1j2.js} +114 -88
  2. package/dist/{AuthkitAuthorize-CCSa1q9E.js → AuthkitAuthorize-p0mbjzzG.js} +6 -5
  3. package/dist/Clipboard-Bful1lNJ.js +558 -0
  4. package/dist/{FeedbackItem-DKowiTJj.js → FeedbackItem-MY9mxyf6.js} +1 -1
  5. package/dist/FeedbackModal-CMmvJOi1.js +1164 -0
  6. package/dist/{Menu-MZJINp6f.js → Menu-Cxo8Rpu3.js} +11 -11
  7. package/dist/{MessageHandle-BLiqnTvy.js → MessageHandle-DN_JsQb2.js} +1 -1
  8. package/dist/{MessageMenu-x26lfAeK.js → MessageMenu-_RZJ9Mbi.js} +15 -15
  9. package/dist/ReferrerReferees-BZqtRuiP.js +186 -0
  10. package/dist/{UserPanel-DT6fS0L2.js → UserPanel-BL8qPaxq.js} +8 -7
  11. package/dist/authkit.js +12 -11
  12. package/dist/common/referrerOptions.d.ts +0 -4
  13. package/dist/common.js +4 -4
  14. package/dist/composables/Authkit/useAuthkitAuth.d.ts +1 -0
  15. package/dist/composables/Authkit/useAuthkitUsersProfile.d.ts +0 -6
  16. package/dist/composables.js +20 -19
  17. package/dist/feedback.d.ts +1 -1
  18. package/dist/feedback.js +13 -12
  19. package/dist/index.js +130 -128
  20. package/dist/message.js +2 -2
  21. package/dist/referrer.js +1 -1
  22. package/dist/style.css +1 -1
  23. package/dist/styles.d.ts +1 -1
  24. package/dist/styles.js +1 -4
  25. package/dist/types/api.d.ts +1 -2
  26. package/dist/useAuthkitProps-CW3Jem_o.js +160 -0
  27. package/dist/useAuthkitUsersProfile-Diituvy1.js +227 -0
  28. package/dist/user.js +1 -1
  29. package/package.json +1 -1
  30. package/dist/FeedbackModal-BvIlQ5Qe.js +0 -1712
  31. package/dist/ReferrerReferees-E5Sq9dVw.js +0 -185
  32. package/dist/useAuthkitProps-BM6B7mZP.js +0 -384
  33. /package/dist/components/{Feedback/FeedbackClipboard.vue.d.ts → Clipboard.vue.d.ts} +0 -0
@@ -1,9 +1,10 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { defineComponent as S, createBlock as y, openBlock as g, unref as e, withCtx as d, createElementVNode as w, toDisplayString as L, createVNode as l, computed as R, createElementBlock as U, createCommentVNode as k, createTextVNode as z, ref as h, onMounted as N, onUnmounted as se, withDirectives as ve, vShow as ge, useSlots as _e, renderSlot as ne, normalizeStyle as D, isRef as ae, normalizeClass as he, Fragment as W } from "vue";
5
- import { Button as $, Divider as ye, Form as B, FormItem as I, Input as C, Link as O, Modal as le, Avatar as oe, Textarea as be, Message as E, Alert as T } from "@arco-design/web-vue";
6
- import { U as K, u as Z, b as we, c as ze, e as ke, f as ie, g as Se, a as J, h as Ae, i as Ie } from "./useAuthkitProps-BM6B7mZP.js";
4
+ import { defineComponent as S, createBlock as y, openBlock as g, unref as e, withCtx as d, createElementVNode as w, toDisplayString as L, createVNode as l, computed as R, createElementBlock as U, createCommentVNode as k, createTextVNode as z, ref as h, onMounted as N, onUnmounted as se, withDirectives as ve, vShow as ge, useSlots as _e, renderSlot as ne, normalizeStyle as j, isRef as ae, normalizeClass as he, Fragment as W } from "vue";
5
+ import { Button as $, Divider as ye, Form as B, FormItem as A, Input as C, Link as O, Modal as le, Avatar as oe, Textarea as be, Message as E, Alert as T } from "@arco-design/web-vue";
6
+ import { u as K, b as we, c as ie, d as ze, a as Z, e as ke, f as Se } from "./useAuthkitUsersProfile-Diituvy1.js";
7
+ import { U as J, u as Ie, a as Ae } from "./useAuthkitProps-CW3Jem_o.js";
7
8
  /* empty css */
8
9
  import { Icon as Pe } from "@iconify/vue";
9
10
  import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
@@ -13,7 +14,7 @@ import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
14
  import { u as Ve } from "./useUploadCos-B8D9lYIk.js";
14
15
  import { _ as Ue, g as Ce, i as $e } from "./plugin-vue_export-helper-LjDO2Zua.js";
15
16
  import { api as F } from "@huyooo/api";
16
- import { M as xe } from "./Menu-MZJINp6f.js";
17
+ import { M as xe } from "./Menu-Cxo8Rpu3.js";
17
18
  import { u as qe } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
18
19
  function re() {
19
20
  return F({
@@ -98,7 +99,7 @@ const M = /* @__PURE__ */ S({
98
99
  setup(i) {
99
100
  const {
100
101
  appsData: a
101
- } = K(), o = i, {
102
+ } = J(), o = i, {
102
103
  githubAuth: s,
103
104
  googleAuth: f,
104
105
  microsoftAuth: r
@@ -201,9 +202,9 @@ const Me = /* @__PURE__ */ S({
201
202
  __: [0]
202
203
  }, 8, ["size", "disabled", "loading"]));
203
204
  }
204
- }), X = /* @__PURE__ */ P(Me, [["__scopeId", "data-v-2883dc6d"]]), je = {
205
+ }), X = /* @__PURE__ */ P(Me, [["__scopeId", "data-v-2883dc6d"]]), De = {
205
206
  class: "content"
206
- }, De = {
207
+ }, je = {
207
208
  class: "sendVerifyCodeItem"
208
209
  }, We = {
209
210
  class: "handle"
@@ -249,14 +250,14 @@ const Me = /* @__PURE__ */ S({
249
250
  m || o("submit", u.value);
250
251
  });
251
252
  }
252
- return (m, c) => (g(), U("div", je, [l(e(B), {
253
+ return (m, c) => (g(), U("div", De, [l(e(B), {
253
254
  ref_key: "formRef",
254
255
  ref: t,
255
256
  model: u.value,
256
257
  size: s.size,
257
258
  "auto-label-width": ""
258
259
  }, {
259
- default: d(() => [l(e(I), {
260
+ default: d(() => [l(e(A), {
260
261
  field: "email",
261
262
  label: "邮箱",
262
263
  "hide-label": "",
@@ -274,7 +275,7 @@ const Me = /* @__PURE__ */ S({
274
275
  placeholder: "请输入邮箱"
275
276
  }, null, 8, ["modelValue"])]),
276
277
  _: 1
277
- }), l(e(I), {
278
+ }), l(e(A), {
278
279
  field: "userToken",
279
280
  label: "验证码",
280
281
  "hide-label": "",
@@ -283,7 +284,7 @@ const Me = /* @__PURE__ */ S({
283
284
  message: "请输入验证码"
284
285
  }]
285
286
  }, {
286
- default: d(() => [w("div", De, [l(e(C), {
287
+ default: d(() => [w("div", je, [l(e(C), {
287
288
  modelValue: u.value.userToken,
288
289
  "onUpdate:modelValue": c[1] || (c[1] = (p) => u.value.userToken = p),
289
290
  placeholder: "请输入验证码"
@@ -298,7 +299,7 @@ const Me = /* @__PURE__ */ S({
298
299
  onSend: _
299
300
  }, null, 8, ["size", "loading"])])]),
300
301
  _: 1
301
- }), l(e(I), {
302
+ }), l(e(A), {
302
303
  field: "password",
303
304
  label: "密码",
304
305
  "hide-label": "",
@@ -318,7 +319,7 @@ const Me = /* @__PURE__ */ S({
318
319
  autocomplete: ""
319
320
  }, null, 8, ["modelValue"])]),
320
321
  _: 1
321
- }), l(e(I), {
322
+ }), l(e(A), {
322
323
  field: "confirmPassword",
323
324
  label: "确认密码",
324
325
  "hide-label": "",
@@ -492,7 +493,7 @@ const Me = /* @__PURE__ */ S({
492
493
  size: s.size,
493
494
  "auto-label-width": ""
494
495
  }, {
495
- default: d(() => [l(e(I), {
496
+ default: d(() => [l(e(A), {
496
497
  field: "email",
497
498
  label: "邮箱",
498
499
  "hide-label": "",
@@ -507,10 +508,12 @@ const Me = /* @__PURE__ */ S({
507
508
  default: d(() => [l(e(C), {
508
509
  modelValue: t.value.email,
509
510
  "onUpdate:modelValue": n[0] || (n[0] = (m) => t.value.email = m),
510
- placeholder: "请输入邮箱"
511
+ placeholder: "请输入邮箱",
512
+ autocomplete: "email username",
513
+ type: "email"
511
514
  }, null, 8, ["modelValue"])]),
512
515
  _: 1
513
- }), l(e(I), {
516
+ }), l(e(A), {
514
517
  field: "password",
515
518
  label: "密码",
516
519
  "hide-label": "",
@@ -525,7 +528,8 @@ const Me = /* @__PURE__ */ S({
525
528
  modelValue: t.value.password,
526
529
  "onUpdate:modelValue": n[1] || (n[1] = (m) => t.value.password = m),
527
530
  placeholder: "请输入密码",
528
- type: "password"
531
+ type: "password",
532
+ autocomplete: "current-password"
529
533
  }, null, 8, ["modelValue"])]),
530
534
  _: 1
531
535
  }, 8, ["rules"]), w("div", at, [l(e($), {
@@ -542,7 +546,7 @@ const Me = /* @__PURE__ */ S({
542
546
  _: 1
543
547
  }, 8, ["model", "size"])]));
544
548
  }
545
- }), ot = /* @__PURE__ */ P(lt, [["__scopeId", "data-v-c9ba960d"]]), rt = {
549
+ }), ot = /* @__PURE__ */ P(lt, [["__scopeId", "data-v-57de2ef6"]]), rt = {
546
550
  class: "SwitchSignUpOrResetPassword"
547
551
  }, ut = /* @__PURE__ */ S({
548
552
  __name: "AuthkitSwitchSignUpOrResetPassword",
@@ -645,7 +649,8 @@ const Me = /* @__PURE__ */ S({
645
649
  userToken: void 0,
646
650
  emailVerifyId: void 0,
647
651
  password: void 0,
648
- confirmPassword: void 0
652
+ confirmPassword: void 0,
653
+ referrerId: void 0
649
654
  });
650
655
  async function _() {
651
656
  t.value.validateField(["email"]).then((m) => {
@@ -672,7 +677,7 @@ const Me = /* @__PURE__ */ S({
672
677
  size: s.size,
673
678
  "auto-label-width": ""
674
679
  }, {
675
- default: d(() => [l(e(I), {
680
+ default: d(() => [l(e(A), {
676
681
  field: "email",
677
682
  label: "邮箱",
678
683
  "hide-label": "",
@@ -687,10 +692,12 @@ const Me = /* @__PURE__ */ S({
687
692
  default: d(() => [l(e(C), {
688
693
  modelValue: u.value.email,
689
694
  "onUpdate:modelValue": c[0] || (c[0] = (p) => u.value.email = p),
690
- placeholder: "请输入邮箱"
695
+ placeholder: "请输入邮箱",
696
+ autocomplete: "email username",
697
+ type: "email"
691
698
  }, null, 8, ["modelValue"])]),
692
699
  _: 1
693
- }), l(e(I), {
700
+ }), l(e(A), {
694
701
  field: "userToken",
695
702
  label: "验证码",
696
703
  "hide-label": "",
@@ -702,7 +709,8 @@ const Me = /* @__PURE__ */ S({
702
709
  default: d(() => [w("div", vt, [l(e(C), {
703
710
  modelValue: u.value.userToken,
704
711
  "onUpdate:modelValue": c[1] || (c[1] = (p) => u.value.userToken = p),
705
- placeholder: "请输入验证码"
712
+ placeholder: "请输入验证码",
713
+ autocomplete: "one-time-code"
706
714
  }, null, 8, ["modelValue"]), l(X, {
707
715
  ref_key: "SendVerifyCodeRef",
708
716
  ref: f,
@@ -714,7 +722,7 @@ const Me = /* @__PURE__ */ S({
714
722
  onSend: _
715
723
  }, null, 8, ["size", "loading"])])]),
716
724
  _: 1
717
- }), l(e(I), {
725
+ }), l(e(A), {
718
726
  field: "password",
719
727
  label: "密码",
720
728
  "hide-label": "",
@@ -730,10 +738,11 @@ const Me = /* @__PURE__ */ S({
730
738
  modelValue: u.value.password,
731
739
  "onUpdate:modelValue": c[2] || (c[2] = (p) => u.value.password = p),
732
740
  placeholder: "请输入密码",
733
- type: "password"
741
+ type: "password",
742
+ autocomplete: "new-password"
734
743
  }, null, 8, ["modelValue"])]),
735
744
  _: 1
736
- }), l(e(I), {
745
+ }), l(e(A), {
737
746
  field: "confirmPassword",
738
747
  label: "确认密码",
739
748
  "hide-label": "",
@@ -753,24 +762,41 @@ const Me = /* @__PURE__ */ S({
753
762
  modelValue: u.value.confirmPassword,
754
763
  "onUpdate:modelValue": c[3] || (c[3] = (p) => u.value.confirmPassword = p),
755
764
  placeholder: "请输入确认密码密码",
756
- type: "password"
765
+ type: "password",
766
+ autocomplete: "new-password"
757
767
  }, null, 8, ["modelValue"])]),
758
768
  _: 1
759
- }, 8, ["rules"]), w("div", gt, [l(e($), {
769
+ }, 8, ["rules"]), l(e(A), {
770
+ field: "referrerId",
771
+ label: "邀请人",
772
+ "hide-label": "",
773
+ rules: [{
774
+ required: !1,
775
+ message: "请输入邀请人ID"
776
+ }]
777
+ }, {
778
+ default: d(() => [l(e(C), {
779
+ modelValue: u.value.referrerId,
780
+ "onUpdate:modelValue": c[4] || (c[4] = (p) => u.value.referrerId = p),
781
+ placeholder: "邀请人ID(可选)",
782
+ autocomplete: "off"
783
+ }, null, 8, ["modelValue"])]),
784
+ _: 1
785
+ }), w("div", gt, [l(e($), {
760
786
  type: "primary",
761
787
  loading: s.loading,
762
788
  long: "",
763
789
  size: s.size,
764
790
  onClick: n
765
791
  }, {
766
- default: d(() => c[4] || (c[4] = [z(" 提交 ")])),
792
+ default: d(() => c[5] || (c[5] = [z(" 提交 ")])),
767
793
  _: 1,
768
- __: [4]
794
+ __: [5]
769
795
  }, 8, ["loading", "size"])])]),
770
796
  _: 1
771
797
  }, 8, ["model", "size"])]));
772
798
  }
773
- }), de = /* @__PURE__ */ P(_t, [["__scopeId", "data-v-11d6b232"]]), ht = {
799
+ }), de = /* @__PURE__ */ P(_t, [["__scopeId", "data-v-5b701953"]]), ht = {
774
800
  class: "SignUp"
775
801
  }, yt = /* @__PURE__ */ S({
776
802
  __name: "AuthkitSignUp",
@@ -826,12 +852,12 @@ const Me = /* @__PURE__ */ S({
826
852
  setup(i) {
827
853
  const a = i, o = `${a.size}px`, s = `${a.fontSize}px`, f = `${a.lineHeight}px`, {
828
854
  currentView: r
829
- } = Z(), {
855
+ } = K(), {
830
856
  appsData: t
831
- } = K(), u = R(() => r.value === "signIn" ? `${t.value.name}登录` : r.value === "signUp" ? `${t.value.name}账号注册` : r.value === "resetPassword" ? `${t.value.name}密码重置` : "");
857
+ } = J(), u = R(() => r.value === "signIn" ? `${t.value.name}登录` : r.value === "signUp" ? `${t.value.name}账号注册` : r.value === "resetPassword" ? `${t.value.name}密码重置` : "");
832
858
  return (_, n) => (g(), U("div", {
833
859
  class: "Title",
834
- style: D({
860
+ style: j({
835
861
  fontSize: s,
836
862
  lineHeight: f
837
863
  })
@@ -839,7 +865,7 @@ const Me = /* @__PURE__ */ S({
839
865
  key: 0,
840
866
  src: e(t).applicationLogoUrl,
841
867
  srcset: "",
842
- style: D({
868
+ style: j({
843
869
  width: o
844
870
  })
845
871
  }, null, 12, wt)) : k("", !0), w("span", null, L(u.value), 1), ne(_.$slots, "default", {}, void 0, !0)], 4));
@@ -848,7 +874,7 @@ const Me = /* @__PURE__ */ S({
848
874
  class: "Auth"
849
875
  }, St = {
850
876
  class: "body"
851
- }, At = /* @__PURE__ */ S({
877
+ }, It = /* @__PURE__ */ S({
852
878
  __name: "AuthkitAuth",
853
879
  props: {
854
880
  size: {
@@ -875,16 +901,16 @@ const Me = /* @__PURE__ */ S({
875
901
  switchSignUp: c,
876
902
  switchResetPassword: p,
877
903
  switchSignIn: v
878
- } = Z(), {
904
+ } = K(), {
879
905
  appsAuthPageInfoApi: b
880
- } = K();
906
+ } = J();
881
907
  function q() {
882
908
  s("toPrivacyPolicy");
883
909
  }
884
910
  function V() {
885
911
  s("toUserServiceAgreement");
886
912
  }
887
- return b(), (A, x) => (g(), U("div", kt, [i.showTitle ? (g(), y(me, {
913
+ return b(), (I, x) => (g(), U("div", kt, [i.showTitle ? (g(), y(me, {
888
914
  key: 0,
889
915
  size: 32,
890
916
  "font-size": 20
@@ -917,7 +943,7 @@ const Me = /* @__PURE__ */ S({
917
943
  onToUserServiceAgreement: V
918
944
  })])]));
919
945
  }
920
- }), It = /* @__PURE__ */ P(At, [["__scopeId", "data-v-865d3320"]]), Pt = /* @__PURE__ */ S({
946
+ }), At = /* @__PURE__ */ P(It, [["__scopeId", "data-v-865d3320"]]), Pt = /* @__PURE__ */ S({
921
947
  __name: "AuthkitAuthModal",
922
948
  props: {
923
949
  size: {
@@ -935,9 +961,9 @@ const Me = /* @__PURE__ */ S({
935
961
  }) {
936
962
  const {
937
963
  addSignInCallback: o
938
- } = Z(), {
964
+ } = K(), {
939
965
  show: s
940
- } = we(), f = i, r = a;
966
+ } = Ie(), f = i, r = a;
941
967
  function t(_) {
942
968
  _(!0);
943
969
  }
@@ -959,14 +985,14 @@ const Me = /* @__PURE__ */ S({
959
985
  onClose: u
960
986
  }, {
961
987
  title: d(() => [l(me)]),
962
- default: d(() => [l(It, {
988
+ default: d(() => [l(At, {
963
989
  "show-title": !1,
964
990
  size: f.size
965
991
  }, null, 8, ["size"])]),
966
992
  _: 1
967
993
  }, 8, ["visible"]));
968
994
  }
969
- }), fi = /* @__PURE__ */ P(Pt, [["__scopeId", "data-v-a22ae615"]]), Vt = S({
995
+ }), pi = /* @__PURE__ */ P(Pt, [["__scopeId", "data-v-a22ae615"]]), Vt = S({
970
996
  name: "IconCamera",
971
997
  props: {
972
998
  size: {
@@ -1017,7 +1043,7 @@ function Ct(i, a, o, s, f, r) {
1017
1043
  xmlns: "http://www.w3.org/2000/svg",
1018
1044
  stroke: "currentColor",
1019
1045
  class: he(i.cls),
1020
- style: D(i.innerStyle),
1046
+ style: j(i.innerStyle),
1021
1047
  "stroke-width": i.strokeWidth,
1022
1048
  "stroke-linecap": i.strokeLinecap,
1023
1049
  "stroke-linejoin": i.strokeLinejoin,
@@ -1026,12 +1052,12 @@ function Ct(i, a, o, s, f, r) {
1026
1052
  d: "m33 12-1.862-3.724A.5.5 0 0 0 30.691 8H17.309a.5.5 0 0 0-.447.276L15 12m16 14a7 7 0 1 1-14 0 7 7 0 0 1 14 0ZM7 40h34a1 1 0 0 0 1-1V13a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1Z"
1027
1053
  }, null, -1)]), 14, Ut);
1028
1054
  }
1029
- var j = /* @__PURE__ */ Ue(Vt, [["render", Ct]]);
1030
- const $t = Object.assign(j, {
1055
+ var D = /* @__PURE__ */ Ue(Vt, [["render", Ct]]);
1056
+ const $t = Object.assign(D, {
1031
1057
  install: (i, a) => {
1032
1058
  var o;
1033
1059
  const s = (o = a == null ? void 0 : a.iconPrefix) != null ? o : "";
1034
- i.component(s + j.name, j);
1060
+ i.component(s + D.name, D);
1035
1061
  }
1036
1062
  }), xt = {
1037
1063
  class: "handle"
@@ -1053,7 +1079,7 @@ const $t = Object.assign(j, {
1053
1079
  prefixUrl: f,
1054
1080
  bucket: r,
1055
1081
  region: t
1056
- } = ze(), u = a, _ = i, n = h({
1082
+ } = Ae(), u = a, _ = i, n = h({
1057
1083
  id: void 0,
1058
1084
  nickname: "",
1059
1085
  description: "",
@@ -1061,7 +1087,7 @@ const $t = Object.assign(j, {
1061
1087
  avatarUrl: ""
1062
1088
  }), m = h(!1), c = h(), p = h(!1);
1063
1089
  function v() {
1064
- p.value = !0, ke().then(({
1090
+ p.value = !0, we().then(({
1065
1091
  data: V
1066
1092
  }) => {
1067
1093
  p.value = !1, n.value.id = V.id, n.value.nickname = V.nickname, n.value.description = V.description, n.value.avatar = V.avatar, n.value.avatarUrl = V.avatarUrl;
@@ -1073,13 +1099,13 @@ const $t = Object.assign(j, {
1073
1099
  c.value.validate().then((V) => {
1074
1100
  if (!V) {
1075
1101
  p.value = !0;
1076
- const A = {
1102
+ const I = {
1077
1103
  id: n.value.id,
1078
1104
  nickname: n.value.nickname,
1079
1105
  description: n.value.description,
1080
1106
  avatar: n.value.avatar
1081
1107
  };
1082
- ie(A).then(({
1108
+ ie(I).then(({
1083
1109
  data: x
1084
1110
  }) => {
1085
1111
  p.value = !1, E.success("更新成功"), n.value.avatarUrl = x.avatarUrl, u("submit");
@@ -1099,8 +1125,8 @@ const $t = Object.assign(j, {
1099
1125
  baseURL: f.value,
1100
1126
  bucket: r.value,
1101
1127
  region: t.value
1102
- }), A = document.createElement("input");
1103
- A.type = "file", A.accept = "image/*", A.style.display = "none", document.body.append(A), A.addEventListener("change", async (x) => {
1128
+ }), I = document.createElement("input");
1129
+ I.type = "file", I.accept = "image/*", I.style.display = "none", document.body.append(I), I.addEventListener("change", async (x) => {
1104
1130
  var te;
1105
1131
  const ee = (te = x.target.files) == null ? void 0 : te[0];
1106
1132
  if (ee) {
@@ -1130,17 +1156,17 @@ const $t = Object.assign(j, {
1130
1156
  console.error("上传图片失败", H), m.value = !1;
1131
1157
  }
1132
1158
  }
1133
- A.remove();
1134
- }), A.click();
1159
+ I.remove();
1160
+ }), I.click();
1135
1161
  };
1136
- return (V, A) => (g(), y(e(B), {
1162
+ return (V, I) => (g(), y(e(B), {
1137
1163
  ref_key: "formRef",
1138
1164
  ref: c,
1139
1165
  model: n.value,
1140
1166
  "auto-label-width": "",
1141
1167
  size: _.size
1142
1168
  }, {
1143
- default: d(() => [l(e(I), {
1169
+ default: d(() => [l(e(A), {
1144
1170
  field: "avatar",
1145
1171
  label: "头像",
1146
1172
  rules: [{
@@ -1160,7 +1186,7 @@ const $t = Object.assign(j, {
1160
1186
  _: 1
1161
1187
  }, 8, ["image-url"])]),
1162
1188
  _: 1
1163
- }), l(e(I), {
1189
+ }), l(e(A), {
1164
1190
  field: "nickname",
1165
1191
  label: "昵称",
1166
1192
  rules: [{
@@ -1170,11 +1196,11 @@ const $t = Object.assign(j, {
1170
1196
  }, {
1171
1197
  default: d(() => [l(e(C), {
1172
1198
  modelValue: n.value.nickname,
1173
- "onUpdate:modelValue": A[0] || (A[0] = (x) => n.value.nickname = x),
1199
+ "onUpdate:modelValue": I[0] || (I[0] = (x) => n.value.nickname = x),
1174
1200
  placeholder: "请输入昵称"
1175
1201
  }, null, 8, ["modelValue"])]),
1176
1202
  _: 1
1177
- }), l(e(I), {
1203
+ }), l(e(A), {
1178
1204
  field: "description",
1179
1205
  label: "简介",
1180
1206
  rules: [{
@@ -1184,7 +1210,7 @@ const $t = Object.assign(j, {
1184
1210
  }, {
1185
1211
  default: d(() => [l(e(be), {
1186
1212
  modelValue: n.value.description,
1187
- "onUpdate:modelValue": A[1] || (A[1] = (x) => n.value.description = x),
1213
+ "onUpdate:modelValue": I[1] || (I[1] = (x) => n.value.description = x),
1188
1214
  placeholder: "请输入描述",
1189
1215
  "allow-clear": "",
1190
1216
  "auto-size": {
@@ -1192,7 +1218,7 @@ const $t = Object.assign(j, {
1192
1218
  }
1193
1219
  }, null, 8, ["modelValue"])]),
1194
1220
  _: 1
1195
- }), l(e(I), {
1221
+ }), l(e(A), {
1196
1222
  field: "",
1197
1223
  label: "",
1198
1224
  rules: []
@@ -1202,7 +1228,7 @@ const $t = Object.assign(j, {
1202
1228
  loading: p.value,
1203
1229
  onClick: b
1204
1230
  }, {
1205
- default: d(() => A[2] || (A[2] = [z(" 提交 ")])),
1231
+ default: d(() => I[2] || (I[2] = [z(" 提交 ")])),
1206
1232
  _: 1,
1207
1233
  __: [2]
1208
1234
  }, 8, ["loading"])])]),
@@ -1280,7 +1306,7 @@ const Tt = {
1280
1306
  "auto-label-width": "",
1281
1307
  size: s.size
1282
1308
  }, {
1283
- default: d(() => [l(e(I), {
1309
+ default: d(() => [l(e(A), {
1284
1310
  field: "email",
1285
1311
  label: "邮箱",
1286
1312
  rules: [{
@@ -1293,7 +1319,7 @@ const Tt = {
1293
1319
  }, {
1294
1320
  default: d(() => [z(L(f.value), 1)]),
1295
1321
  _: 1
1296
- }), l(e(I), {
1322
+ }), l(e(A), {
1297
1323
  field: "userToken",
1298
1324
  label: "验证码",
1299
1325
  "hide-label": "",
@@ -1317,7 +1343,7 @@ const Tt = {
1317
1343
  onSend: m
1318
1344
  }, null, 8, ["size", "loading"])])]),
1319
1345
  _: 1
1320
- }), l(e(I), {
1346
+ }), l(e(A), {
1321
1347
  field: "",
1322
1348
  label: "",
1323
1349
  rules: []
@@ -1361,7 +1387,7 @@ const Tt = {
1361
1387
  const n = {
1362
1388
  password: t.value.password
1363
1389
  };
1364
- Se(n).then(() => {
1390
+ ze(n).then(() => {
1365
1391
  s.value = !1, o("submit");
1366
1392
  }).catch(() => {
1367
1393
  s.value = !1;
@@ -1376,7 +1402,7 @@ const Tt = {
1376
1402
  "auto-label-width": "",
1377
1403
  size: r.size
1378
1404
  }, {
1379
- default: d(() => [l(e(I), {
1405
+ default: d(() => [l(e(A), {
1380
1406
  field: "oldPassword",
1381
1407
  label: "当前密码",
1382
1408
  "hide-label": "",
@@ -1392,7 +1418,7 @@ const Tt = {
1392
1418
  type: "password"
1393
1419
  }, null, 8, ["modelValue"])]),
1394
1420
  _: 1
1395
- }), l(e(I), {
1421
+ }), l(e(A), {
1396
1422
  field: "password",
1397
1423
  label: "新密码",
1398
1424
  "hide-label": "",
@@ -1411,7 +1437,7 @@ const Tt = {
1411
1437
  type: "password"
1412
1438
  }, null, 8, ["modelValue"])]),
1413
1439
  _: 1
1414
- }), l(e(I), {
1440
+ }), l(e(A), {
1415
1441
  field: "confirmPassword",
1416
1442
  label: "确认密码",
1417
1443
  "hide-label": "",
@@ -1434,7 +1460,7 @@ const Tt = {
1434
1460
  type: "password"
1435
1461
  }, null, 8, ["modelValue"])]),
1436
1462
  _: 1
1437
- }, 8, ["rules"]), l(e(I), {
1463
+ }, 8, ["rules"]), l(e(A), {
1438
1464
  field: "",
1439
1465
  label: "",
1440
1466
  rules: []
@@ -1467,7 +1493,7 @@ const Tt = {
1467
1493
  loading: o,
1468
1494
  fetchUserProfile: s,
1469
1495
  isLoggedIn: f
1470
- } = J(), r = h("hidden"), t = i;
1496
+ } = Z(), r = h("hidden"), t = i;
1471
1497
  function u(m) {
1472
1498
  r.value = m;
1473
1499
  }
@@ -1539,7 +1565,7 @@ const Tt = {
1539
1565
  userProfile: a,
1540
1566
  loading: o,
1541
1567
  fetchUserProfile: s
1542
- } = J(), f = h("hidden"), r = i;
1568
+ } = Z(), f = h("hidden"), r = i;
1543
1569
  function t(n) {
1544
1570
  f.value = n;
1545
1571
  }
@@ -1551,7 +1577,7 @@ const Tt = {
1551
1577
  emailVerifyId: n.emailVerifyId,
1552
1578
  password: n.password
1553
1579
  };
1554
- Ae(m).then(() => {
1580
+ ke(m).then(() => {
1555
1581
  o.value = !1, E.success("绑定成功"), f.value = "hidden", s();
1556
1582
  }).catch(() => {
1557
1583
  o.value = !1;
@@ -1623,7 +1649,7 @@ const Tt = {
1623
1649
  const {
1624
1650
  userProfile: a,
1625
1651
  fetchUserProfile: o
1626
- } = J(), s = h("hidden"), f = h(!1);
1652
+ } = Z(), s = h("hidden"), f = h(!1);
1627
1653
  let r;
1628
1654
  const t = i;
1629
1655
  function u(p) {
@@ -1640,7 +1666,7 @@ const Tt = {
1640
1666
  });
1641
1667
  }
1642
1668
  function n() {
1643
- Ie().then(() => {
1669
+ Se().then(() => {
1644
1670
  E.success("解绑成功"), s.value = "hidden", o();
1645
1671
  });
1646
1672
  }
@@ -1663,7 +1689,7 @@ const Tt = {
1663
1689
  action: d(() => [l(e($), {
1664
1690
  size: t.size,
1665
1691
  type: "primary",
1666
- onClick: v[0] || (v[0] = (A) => u("bind"))
1692
+ onClick: v[0] || (v[0] = (I) => u("bind"))
1667
1693
  }, {
1668
1694
  default: d(() => v[2] || (v[2] = [z(" 绑定GitHUb ")])),
1669
1695
  _: 1,
@@ -1679,15 +1705,15 @@ const Tt = {
1679
1705
  action: d(() => [l(e($), {
1680
1706
  size: t.size,
1681
1707
  type: "primary",
1682
- onClick: v[1] || (v[1] = (A) => u("unbind"))
1708
+ onClick: v[1] || (v[1] = (I) => u("unbind"))
1683
1709
  }, {
1684
1710
  default: d(() => v[4] || (v[4] = [z(" 解绑GitHUb ")])),
1685
1711
  _: 1,
1686
1712
  __: [4]
1687
1713
  }, 8, ["size"])]),
1688
1714
  default: d(() => {
1689
- var A, x, G;
1690
- return [w("span", null, L(`您绑定的账号为 ${(x = (A = e(a)) == null ? void 0 : A.github) == null ? void 0 : x.login}`), 1), l(e(oe), {
1715
+ var I, x, G;
1716
+ return [w("span", null, L(`您绑定的账号为 ${(x = (I = e(a)) == null ? void 0 : I.github) == null ? void 0 : x.login}`), 1), l(e(oe), {
1691
1717
  "image-url": (G = e(a)) == null ? void 0 : G.avatar,
1692
1718
  size: 42
1693
1719
  }, null, 8, ["image-url"])];
@@ -1701,9 +1727,9 @@ const Tt = {
1701
1727
  }, null, 8, ["size", "email"])) : k("", !0)], 64);
1702
1728
  };
1703
1729
  }
1704
- }), jt = {
1730
+ }), Dt = {
1705
1731
  class: "content"
1706
- }, Dt = {
1732
+ }, jt = {
1707
1733
  class: "left"
1708
1734
  }, Wt = {
1709
1735
  class: "right"
@@ -1787,7 +1813,7 @@ const Tt = {
1787
1813
  onCancel: f
1788
1814
  }, {
1789
1815
  title: d(() => v[2] || (v[2] = [z(" 系统设置 ")])),
1790
- default: d(() => [w("div", jt, [w("div", Dt, [l(xe, {
1816
+ default: d(() => [w("div", Dt, [w("div", jt, [l(xe, {
1791
1817
  "selected-keys": t.value,
1792
1818
  "onUpdate:selectedKeys": v[0] || (v[0] = (b) => t.value = b),
1793
1819
  menus: u.value,
@@ -1808,17 +1834,17 @@ const Tt = {
1808
1834
  _: 1
1809
1835
  }, 8, ["visible"]));
1810
1836
  }
1811
- }), pi = /* @__PURE__ */ P(Kt, [["__scopeId", "data-v-e9f9426e"]]);
1837
+ }), vi = /* @__PURE__ */ P(Kt, [["__scopeId", "data-v-e9f9426e"]]);
1812
1838
  export {
1813
- It as A,
1839
+ At as A,
1814
1840
  de as E,
1815
1841
  Fe as O,
1816
1842
  Ze as P,
1817
1843
  et as R,
1818
1844
  X as S,
1819
1845
  M as _,
1820
- fi as a,
1821
- pi as b,
1846
+ pi as a,
1847
+ vi as b,
1822
1848
  me as c,
1823
1849
  ft as d,
1824
1850
  bt as e,
@@ -8,7 +8,8 @@ import { _ as S } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  import { List as w, ListItem as d, ListItemMeta as p, Avatar as c, Button as x } from "@arco-design/web-vue";
11
- import { d as $, o as T } from "./useAuthkitProps-BM6B7mZP.js";
11
+ import { b as $ } from "./useAuthkitProps-CW3Jem_o.js";
12
+ import { o as T } from "./useAuthkitUsersProfile-Diituvy1.js";
12
13
  const U = {
13
14
  class: "header"
14
15
  }, B = ["href"], L = {
@@ -74,7 +75,7 @@ const U = {
74
75
  })
75
76
  }, " 返回主页 ", 12, B)) : A("", !0)]), a("div", L, [C(l.$slots, "default", {}, void 0, !0)])], 4));
76
77
  }
77
- }), Z = /* @__PURE__ */ S(N, [["__scopeId", "data-v-203946ff"]]), V = {
78
+ }), ee = /* @__PURE__ */ S(N, [["__scopeId", "data-v-203946ff"]]), V = {
78
79
  class: "box"
79
80
  }, O = {
80
81
  class: "title"
@@ -243,8 +244,8 @@ const U = {
243
244
  }
244
245
  }, "授权后将跳转至", -1)), a("div", E, v(l.value.authorizationCallback), 1)])])]));
245
246
  }
246
- }), ee = /* @__PURE__ */ S(F, [["__scopeId", "data-v-3b88b8b3"]]);
247
+ }), te = /* @__PURE__ */ S(F, [["__scopeId", "data-v-3b88b8b3"]]);
247
248
  export {
248
- Z as A,
249
- ee as a
249
+ ee as A,
250
+ te as a
250
251
  };