@huyooo/ui 0.4.34 → 0.4.35

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 (61) hide show
  1. package/dist/{AuthkitAppSetting-DqhUivnU.js → AuthkitAppSetting-D6PAh-ZI.js} +216 -215
  2. package/dist/{AuthkitAuthorize-f_yAVn7e.js → AuthkitAuthorize-DKG7JGSV.js} +4 -4
  3. package/dist/{FeedbackItem-DJiIQBMe.js → FeedbackItem-BO8dYYKo.js} +3 -7
  4. package/dist/FeedbackModal-B_W_RWec.js +1061 -0
  5. package/dist/MessageHandle-Dt6rb0rg.js +830 -0
  6. package/dist/{PaySubscriptions-foEcT6VN.js → PaySubscriptions-B42IdT-5.js} +59 -58
  7. package/dist/ReferrerReferees-CvuUodDZ.js +116 -0
  8. package/dist/{Upload.vue_vue_type_script_setup_true_lang-C2OaTrku.js → Upload.vue_vue_type_script_setup_true_lang-Bw3IlEUj.js} +4 -4
  9. package/dist/{UserPanel-CA3roDgH.js → UserPanel-BIKWssEY.js} +169 -174
  10. package/dist/api/Authkit/apps.d.ts +1 -1
  11. package/dist/api/Buckets/Files.d.ts +7 -7
  12. package/dist/api/Buckets.d.ts +2 -2
  13. package/dist/api/Message/ChangelogNotifications.d.ts +2 -2
  14. package/dist/api/Message/EventNotifications.d.ts +2 -2
  15. package/dist/api/Message/MessageNotifications.d.ts +5 -5
  16. package/dist/api/Message/NoticeNotifications.d.ts +2 -2
  17. package/dist/api/Messages.d.ts +2 -2
  18. package/dist/api/Referrer.d.ts +1 -1
  19. package/dist/api/index.d.ts +8 -8
  20. package/dist/authkit.js +4 -4
  21. package/dist/common/globalConfig.d.ts +15 -0
  22. package/dist/common.d.ts +1 -1
  23. package/dist/common.js +21 -19
  24. package/dist/components/Feedback/FeedbackContainer.vue.d.ts +0 -8
  25. package/dist/components/Feedback/FeedbackDetails.vue.d.ts +1 -1
  26. package/dist/components/Feedback/FeedbackForm.vue.d.ts +2 -20
  27. package/dist/components/Message/MessageAppMessage.vue.d.ts +1 -24
  28. package/dist/components/Message/MessageChangelogNotifications.vue.d.ts +1 -11
  29. package/dist/components/Message/MessageChangelogNotificationsDetails.vue.d.ts +0 -8
  30. package/dist/components/Message/MessageEventNotifications.vue.d.ts +1 -11
  31. package/dist/components/Message/MessageEventNotificationsDetails.vue.d.ts +0 -8
  32. package/dist/components/Message/MessageHandle.vue.d.ts +28 -88
  33. package/dist/components/Message/MessageNoticeNotifications.vue.d.ts +1 -11
  34. package/dist/components/Message/MessageNoticeNotificationsDetails.vue.d.ts +0 -8
  35. package/dist/components/Message/MessageNotifications.vue.d.ts +1 -11
  36. package/dist/components/Referrer/ReferrerReferees.vue.d.ts +2 -12
  37. package/dist/components/User/UserPanel.vue.d.ts +30 -100
  38. package/dist/composables/useMessageNotifications.d.ts +1 -1
  39. package/dist/composables.d.ts +1 -1
  40. package/dist/composables.js +16 -15
  41. package/dist/feedback.js +2 -2
  42. package/dist/globalConfig-dtNQA0ZH.js +15 -0
  43. package/dist/index.js +27 -25
  44. package/dist/message.js +2 -2
  45. package/dist/pay.js +1 -1
  46. package/dist/referrer.js +1 -1
  47. package/dist/style.css +1 -1
  48. package/dist/upload.js +2 -2
  49. package/dist/{useAuthkitAuthModal-OkUKCIWR.js → useAuthkitAuthModal-C153ZpNb.js} +14 -13
  50. package/dist/useAuthkitUsersProfile-CT2MN1S5.js +228 -0
  51. package/dist/useMessageNotifications-DkKSVkdt.js +106 -0
  52. package/dist/{useUploadCos-uerXQY3P.js → useUploadCos-C3ts0Gpa.js} +1481 -1499
  53. package/dist/user.d.ts +0 -1
  54. package/dist/user.js +4 -6
  55. package/package.json +1 -1
  56. package/dist/FeedbackModal-D7gtWqMr.js +0 -1077
  57. package/dist/MessageHandle-DN_JsQb2.js +0 -885
  58. package/dist/ReferrerReferees-DxNJ2ETq.js +0 -121
  59. package/dist/composables/useGlobalConfig.d.ts +0 -20
  60. package/dist/useAuthkitUsersProfile-Diituvy1.js +0 -227
  61. package/dist/useMessageNotifications-lmP0vJDM.js +0 -105
@@ -1,29 +1,30 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { defineComponent as k, createBlock as y, openBlock as g, unref as e, withCtx as m, createElementVNode as w, toDisplayString as T, createVNode as l, computed as q, createElementBlock as P, createCommentVNode as S, createTextVNode as z, ref as h, onMounted as F, onUnmounted as ee, withDirectives as me, vShow as ce, useSlots as fe, renderSlot as te, normalizeStyle as D, isRef as ie, normalizeClass as pe, Fragment as j } from "vue";
5
- import { Button as U, Divider as ve, Form as L, FormItem as A, Input as V, Link as B, Modal as se, Avatar as ne, Textarea as ge, Message as O, Alert as R } from "@arco-design/web-vue";
6
- import { u as W, b as _e, c as Y, d as he, a as K, e as ye, f as we } from "./useAuthkitUsersProfile-Diituvy1.js";
7
- import { U as Z, u as be } from "./useAuthkitAuthModal-OkUKCIWR.js";
4
+ import { defineComponent as k, createBlock as y, openBlock as g, unref as e, withCtx as m, createElementVNode as w, toDisplayString as T, createVNode as l, computed as q, createElementBlock as P, createCommentVNode as S, createTextVNode as z, ref as h, onMounted as F, onUnmounted as te, withDirectives as ce, vShow as fe, useSlots as pe, renderSlot as ie, normalizeStyle as j, isRef as se, normalizeClass as ve, Fragment as W } from "vue";
5
+ import { Button as U, Divider as ge, Form as L, FormItem as A, Input as V, Link as B, Modal as ne, Avatar as le, Textarea as _e, Message as O, Alert as R } from "@arco-design/web-vue";
6
+ import { u as K, b as he, c as ee, d as ye, a as Z, e as we, f as be } from "./useAuthkitUsersProfile-CT2MN1S5.js";
7
+ import { U as J, u as ze } from "./useAuthkitAuthModal-C153ZpNb.js";
8
8
  /* empty css */
9
- import { Icon as ze } from "@iconify/vue";
9
+ import { Icon as Se } from "@iconify/vue";
10
10
  import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  /* empty css */
12
12
  /* empty css */
13
13
  /* empty css */
14
- import { a as Se } from "./useUploadCos-uerXQY3P.js";
15
- import { _ as ke, g as Ae, i as Ie } from "./plugin-vue_export-helper-LjDO2Zua.js";
14
+ import { u as ke } from "./useUploadCos-C3ts0Gpa.js";
15
+ import { _ as Ae, g as Ie, i as Pe } from "./plugin-vue_export-helper-LjDO2Zua.js";
16
16
  import { api as G } from "@huyooo/api";
17
- import { M as Pe } from "./Menu-Cxo8Rpu3.js";
18
- import { u as Ve } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
19
- function le() {
17
+ import { g as H } from "./globalConfig-dtNQA0ZH.js";
18
+ import { M as Ve } from "./Menu-Cxo8Rpu3.js";
19
+ import { u as Ue } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
20
+ function ae() {
20
21
  return G({
21
- url: "/restfulApi/OAuth/github/login",
22
+ url: `${H.authPrefixUrl}/restfulApi/OAuth/github/login`,
22
23
  method: "get"
23
24
  });
24
25
  }
25
- function Ue() {
26
- le().then(({
26
+ function $e() {
27
+ ae().then(({
27
28
  data: i
28
29
  }) => {
29
30
  const {
@@ -36,16 +37,16 @@ function Ue() {
36
37
  }
37
38
  function Ce() {
38
39
  }
39
- function $e() {
40
- }
41
40
  function xe() {
41
+ }
42
+ function qe() {
42
43
  return {
43
- githubAuth: Ue,
44
+ githubAuth: $e,
44
45
  googleAuth: Ce,
45
- microsoftAuth: $e
46
+ microsoftAuth: xe
46
47
  };
47
48
  }
48
- const H = /* @__PURE__ */ k({
49
+ const M = /* @__PURE__ */ k({
49
50
  __name: "AuthkitOAuthItem",
50
51
  props: {
51
52
  size: {
@@ -73,18 +74,18 @@ const H = /* @__PURE__ */ k({
73
74
  type: "primary",
74
75
  size: u.size
75
76
  }, {
76
- icon: m(() => [l(e(ze), {
77
+ icon: m(() => [l(e(Se), {
77
78
  icon: u.icon
78
79
  }, null, 8, ["icon"])]),
79
80
  default: m(() => [w("span", null, T(u.label), 1)]),
80
81
  _: 1
81
82
  }, 8, ["size"]));
82
83
  }
83
- }), qe = {
84
+ }), Re = {
84
85
  class: "OAuthList"
85
- }, Re = {
86
+ }, Te = {
86
87
  class: "OAuthList"
87
- }, Te = /* @__PURE__ */ k({
88
+ }, Le = /* @__PURE__ */ k({
88
89
  __name: "AuthkitOAuthList",
89
90
  props: {
90
91
  size: {
@@ -99,31 +100,31 @@ const H = /* @__PURE__ */ k({
99
100
  setup(i) {
100
101
  const {
101
102
  appsData: n
102
- } = Z(), u = i, {
103
+ } = J(), u = i, {
103
104
  githubAuth: s,
104
105
  googleAuth: a,
105
106
  microsoftAuth: o
106
- } = xe(), t = q(() => !(!n.value.oauth.google.enabled && !n.value.oauth.microsoft.enabled && !n.value.oauth.github.enabled && !n.value.oauth.wechat.enabled));
107
- return (r, _) => (g(), P("div", qe, [t.value ? (g(), y(e(ve), {
107
+ } = qe(), t = q(() => !(!n.value.oauth.google.enabled && !n.value.oauth.microsoft.enabled && !n.value.oauth.github.enabled && !n.value.oauth.wechat.enabled));
108
+ return (r, _) => (g(), P("div", Re, [t.value ? (g(), y(e(ge), {
108
109
  key: 0,
109
110
  orientation: "center"
110
111
  }, {
111
112
  default: m(() => _[0] || (_[0] = [z("OAuth登陆")])),
112
113
  _: 1,
113
114
  __: [0]
114
- })) : S("", !0), w("div", Re, [e(n).oauth.github.enabled ? (g(), y(H, {
115
+ })) : S("", !0), w("div", Te, [e(n).oauth.github.enabled ? (g(), y(M, {
115
116
  key: 0,
116
117
  icon: "mdi:github",
117
118
  label: "Github",
118
119
  size: u.size,
119
120
  onClick: e(s)
120
- }, null, 8, ["size", "onClick"])) : S("", !0), e(n).oauth.google.enabled ? (g(), y(H, {
121
+ }, null, 8, ["size", "onClick"])) : S("", !0), e(n).oauth.google.enabled ? (g(), y(M, {
121
122
  key: 1,
122
123
  icon: "mdi:google",
123
124
  label: "Google",
124
125
  size: u.size,
125
126
  onClick: e(a)
126
- }, null, 8, ["size", "onClick"])) : S("", !0), e(n).oauth.microsoft.enabled ? (g(), y(H, {
127
+ }, null, 8, ["size", "onClick"])) : S("", !0), e(n).oauth.microsoft.enabled ? (g(), y(M, {
127
128
  key: 2,
128
129
  icon: "mdi:microsoft",
129
130
  label: "Microsoft",
@@ -131,29 +132,29 @@ const H = /* @__PURE__ */ k({
131
132
  onClick: e(o)
132
133
  }, null, 8, ["size", "onClick"])) : S("", !0)])]));
133
134
  }
134
- }), Le = /* @__PURE__ */ I(Te, [["__scopeId", "data-v-7c6620c0"]]);
135
- function Be(i) {
135
+ }), Be = /* @__PURE__ */ I(Le, [["__scopeId", "data-v-7c6620c0"]]);
136
+ function Oe(i) {
136
137
  return G({
137
- url: "/restfulApi/verify/email",
138
+ url: `${H.authPrefixUrl}/restfulApi/verify/email`,
138
139
  method: "post",
139
140
  data: i
140
141
  });
141
142
  }
142
- function J(i) {
143
+ function Q(i) {
143
144
  return G({
144
- url: "/restfulApi/verify/email/retry",
145
+ url: `${H.authPrefixUrl}/restfulApi/verify/email/retry`,
145
146
  method: "post",
146
147
  data: i
147
148
  });
148
149
  }
149
- function Oe(i) {
150
+ function Ee(i) {
150
151
  return G({
151
- url: "/restfulApi/verify/password",
152
+ url: `${H.authPrefixUrl}/restfulApi/verify/password`,
152
153
  method: "post",
153
154
  data: i
154
155
  });
155
156
  }
156
- const Ee = /* @__PURE__ */ k({
157
+ const Ne = /* @__PURE__ */ k({
157
158
  __name: "AuthkitSendVerifyCode",
158
159
  props: {
159
160
  size: {
@@ -185,7 +186,7 @@ const Ee = /* @__PURE__ */ k({
185
186
  return F(() => {
186
187
  }), n({
187
188
  startCountFn: c
188
- }), ee(() => {
189
+ }), te(() => {
189
190
  t && clearInterval(t);
190
191
  }), (v, b) => (g(), y(e(U), {
191
192
  class: "OAuthItem",
@@ -195,20 +196,20 @@ const Ee = /* @__PURE__ */ k({
195
196
  loading: a.loading,
196
197
  onClick: d
197
198
  }, {
198
- default: m(() => [b[0] || (b[0] = w("span", null, " 发送验证码", -1)), me(w("span", {
199
+ default: m(() => [b[0] || (b[0] = w("span", null, " 发送验证码", -1)), ce(w("span", {
199
200
  class: "verify-code-timer"
200
- }, T(`(${_.value})`), 513), [[ce, f.value]])]),
201
+ }, T(`(${_.value})`), 513), [[fe, f.value]])]),
201
202
  _: 1,
202
203
  __: [0]
203
204
  }, 8, ["size", "disabled", "loading"]));
204
205
  }
205
- }), Q = /* @__PURE__ */ I(Ee, [["__scopeId", "data-v-2883dc6d"]]), Ne = {
206
+ }), X = /* @__PURE__ */ I(Ne, [["__scopeId", "data-v-2883dc6d"]]), Fe = {
206
207
  class: "content"
207
- }, Fe = {
208
- class: "sendVerifyCodeItem"
209
208
  }, Ge = {
209
+ class: "sendVerifyCodeItem"
210
+ }, He = {
210
211
  class: "handle"
211
- }, He = /* @__PURE__ */ k({
212
+ }, Me = /* @__PURE__ */ k({
212
213
  __name: "AuthkitPasswordUpdateAndVerify",
213
214
  props: {
214
215
  size: {
@@ -234,7 +235,7 @@ const Ee = /* @__PURE__ */ k({
234
235
  });
235
236
  async function _() {
236
237
  t.value.validateField(["email"]).then((p) => {
237
- p || (o.value = !0, J({
238
+ p || (o.value = !0, Q({
238
239
  email: r.value.email
239
240
  }).then(({
240
241
  data: d
@@ -250,7 +251,7 @@ const Ee = /* @__PURE__ */ k({
250
251
  p || u("submit", r.value);
251
252
  });
252
253
  }
253
- return (p, d) => (g(), P("div", Ne, [l(e(L), {
254
+ return (p, d) => (g(), P("div", Fe, [l(e(L), {
254
255
  ref_key: "formRef",
255
256
  ref: t,
256
257
  model: r.value,
@@ -284,11 +285,11 @@ const Ee = /* @__PURE__ */ k({
284
285
  message: "请输入验证码"
285
286
  }]
286
287
  }, {
287
- default: m(() => [w("div", Fe, [l(e(V), {
288
+ default: m(() => [w("div", Ge, [l(e(V), {
288
289
  modelValue: r.value.userToken,
289
290
  "onUpdate:modelValue": d[1] || (d[1] = (c) => r.value.userToken = c),
290
291
  placeholder: "请输入验证码"
291
- }, null, 8, ["modelValue"]), l(Q, {
292
+ }, null, 8, ["modelValue"]), l(X, {
292
293
  ref_key: "SendVerifyCodeRef",
293
294
  ref: a,
294
295
  size: s.size,
@@ -343,7 +344,7 @@ const Ee = /* @__PURE__ */ k({
343
344
  autocomplete: ""
344
345
  }, null, 8, ["modelValue"])]),
345
346
  _: 1
346
- }, 8, ["rules"]), w("div", Ge, [l(e(U), {
347
+ }, 8, ["rules"]), w("div", He, [l(e(U), {
347
348
  type: "primary",
348
349
  loading: s.loading,
349
350
  long: "",
@@ -357,9 +358,9 @@ const Ee = /* @__PURE__ */ k({
357
358
  _: 1
358
359
  }, 8, ["model", "size"])]));
359
360
  }
360
- }), Me = /* @__PURE__ */ I(He, [["__scopeId", "data-v-1c83f44a"]]), De = {
361
+ }), De = /* @__PURE__ */ I(Me, [["__scopeId", "data-v-1c83f44a"]]), je = {
361
362
  class: "SwitchSignIn"
362
- }, je = /* @__PURE__ */ k({
363
+ }, We = /* @__PURE__ */ k({
363
364
  __name: "AuthkitSwitchSignIn",
364
365
  emits: ["switchSignIn"],
365
366
  setup(i, {
@@ -369,7 +370,7 @@ const Ee = /* @__PURE__ */ k({
369
370
  function s() {
370
371
  u("switchSignIn");
371
372
  }
372
- return (a, o) => (g(), P("div", De, [w("span", null, [o[1] || (o[1] = w("span", null, "已经有账号?", -1)), l(e(B), {
373
+ return (a, o) => (g(), P("div", je, [w("span", null, [o[1] || (o[1] = w("span", null, "已经有账号?", -1)), l(e(B), {
373
374
  style: {
374
375
  padding: "0px"
375
376
  },
@@ -380,9 +381,9 @@ const Ee = /* @__PURE__ */ k({
380
381
  __: [0]
381
382
  })])]));
382
383
  }
383
- }), ae = /* @__PURE__ */ I(je, [["__scopeId", "data-v-fc1d3903"]]), We = {
384
+ }), oe = /* @__PURE__ */ I(We, [["__scopeId", "data-v-fc1d3903"]]), Ke = {
384
385
  class: "ResetPassword"
385
- }, Ke = /* @__PURE__ */ k({
386
+ }, Ze = /* @__PURE__ */ k({
386
387
  __name: "AuthkitResetPassword",
387
388
  props: {
388
389
  size: {
@@ -407,17 +408,17 @@ const Ee = /* @__PURE__ */ k({
407
408
  async function o() {
408
409
  u("submit");
409
410
  }
410
- return (t, r) => (g(), P("div", We, [l(Me, {
411
+ return (t, r) => (g(), P("div", Ke, [l(De, {
411
412
  loading: i.loading,
412
413
  size: s.size,
413
414
  onSubmit: o
414
- }, null, 8, ["loading", "size"]), l(ae, {
415
+ }, null, 8, ["loading", "size"]), l(oe, {
415
416
  onSwitchSignIn: a
416
417
  })]));
417
418
  }
418
- }), Ze = /* @__PURE__ */ I(Ke, [["__scopeId", "data-v-d9f5cafa"]]), Je = {
419
+ }), Je = /* @__PURE__ */ I(Ze, [["__scopeId", "data-v-d9f5cafa"]]), Qe = {
419
420
  class: "ServiceAgreementAndPrivacyProtection"
420
- }, Qe = /* @__PURE__ */ k({
421
+ }, Xe = /* @__PURE__ */ k({
421
422
  __name: "AuthkitServiceAgreementAndPrivacyProtection",
422
423
  emits: ["toUserServiceAgreement", "toPrivacyPolicy"],
423
424
  setup(i, {
@@ -430,7 +431,7 @@ const Ee = /* @__PURE__ */ k({
430
431
  function a() {
431
432
  u("toPrivacyPolicy");
432
433
  }
433
- return (o, t) => (g(), P("div", Je, [t[2] || (t[2] = w("span", null, " 注册登陆即表示同意", -1)), l(e(B), {
434
+ return (o, t) => (g(), P("div", Qe, [t[2] || (t[2] = w("span", null, " 注册登陆即表示同意", -1)), l(e(B), {
434
435
  onClick: s
435
436
  }, {
436
437
  default: m(() => t[0] || (t[0] = [z("用户服务协议")])),
@@ -444,11 +445,11 @@ const Ee = /* @__PURE__ */ k({
444
445
  __: [1]
445
446
  })]));
446
447
  }
447
- }), Xe = /* @__PURE__ */ I(Qe, [["__scopeId", "data-v-18e831ec"]]), Ye = {
448
+ }), Ye = /* @__PURE__ */ I(Xe, [["__scopeId", "data-v-18e831ec"]]), et = {
448
449
  class: "content"
449
- }, et = {
450
+ }, tt = {
450
451
  class: "handle"
451
- }, tt = /* @__PURE__ */ k({
452
+ }, it = /* @__PURE__ */ k({
452
453
  __name: "AuthkitPasswordAuth",
453
454
  props: {
454
455
  size: {
@@ -467,7 +468,7 @@ const Ee = /* @__PURE__ */ k({
467
468
  }) {
468
469
  const u = n, s = i;
469
470
  async function a(_, f) {
470
- const p = await Oe({
471
+ const p = await Ee({
471
472
  password: _
472
473
  });
473
474
  p || f("密码验证请求出错!");
@@ -486,7 +487,7 @@ const Ee = /* @__PURE__ */ k({
486
487
  _ || u("submit", t.value);
487
488
  });
488
489
  }
489
- return (_, f) => (g(), P("div", Ye, [l(e(L), {
490
+ return (_, f) => (g(), P("div", et, [l(e(L), {
490
491
  ref_key: "formRef",
491
492
  ref: o,
492
493
  model: t.value,
@@ -532,7 +533,7 @@ const Ee = /* @__PURE__ */ k({
532
533
  autocomplete: "current-password"
533
534
  }, null, 8, ["modelValue"])]),
534
535
  _: 1
535
- }, 8, ["rules"]), w("div", et, [l(e(U), {
536
+ }, 8, ["rules"]), w("div", tt, [l(e(U), {
536
537
  type: "primary",
537
538
  loading: s.loading,
538
539
  long: "",
@@ -546,9 +547,9 @@ const Ee = /* @__PURE__ */ k({
546
547
  _: 1
547
548
  }, 8, ["model", "size"])]));
548
549
  }
549
- }), it = /* @__PURE__ */ I(tt, [["__scopeId", "data-v-57de2ef6"]]), st = {
550
+ }), st = /* @__PURE__ */ I(it, [["__scopeId", "data-v-57de2ef6"]]), nt = {
550
551
  class: "SwitchSignUpOrResetPassword"
551
- }, nt = /* @__PURE__ */ k({
552
+ }, lt = /* @__PURE__ */ k({
552
553
  __name: "AuthkitSwitchSignUpOrResetPassword",
553
554
  emits: ["switchSignUp", "switchResetPassword"],
554
555
  setup(i, {
@@ -561,7 +562,7 @@ const Ee = /* @__PURE__ */ k({
561
562
  function a() {
562
563
  u("switchResetPassword");
563
564
  }
564
- return (o, t) => (g(), P("div", st, [w("span", null, [t[1] || (t[1] = w("span", null, " 还没有账户?", -1)), l(e(B), {
565
+ return (o, t) => (g(), P("div", nt, [w("span", null, [t[1] || (t[1] = w("span", null, " 还没有账户?", -1)), l(e(B), {
565
566
  style: {
566
567
  padding: "0px"
567
568
  },
@@ -581,9 +582,9 @@ const Ee = /* @__PURE__ */ k({
581
582
  __: [2]
582
583
  })]));
583
584
  }
584
- }), lt = /* @__PURE__ */ I(nt, [["__scopeId", "data-v-14e3aab2"]]), at = {
585
+ }), at = /* @__PURE__ */ I(lt, [["__scopeId", "data-v-14e3aab2"]]), ot = {
585
586
  class: "SignIn"
586
- }, ot = /* @__PURE__ */ k({
587
+ }, rt = /* @__PURE__ */ k({
587
588
  __name: "AuthkitSignIn",
588
589
  props: {
589
590
  size: {
@@ -600,7 +601,7 @@ const Ee = /* @__PURE__ */ k({
600
601
  setup(i, {
601
602
  emit: n
602
603
  }) {
603
- const u = n, s = i, a = fe(), o = q(() => !!a.OAuth);
604
+ const u = n, s = i, a = pe(), o = q(() => !!a.OAuth);
604
605
  function t() {
605
606
  u("switchSignUp");
606
607
  }
@@ -610,24 +611,24 @@ const Ee = /* @__PURE__ */ k({
610
611
  async function _(f) {
611
612
  u("submit", f);
612
613
  }
613
- return (f, p) => (g(), P("div", at, [S("", !0), l(it, {
614
+ return (f, p) => (g(), P("div", ot, [S("", !0), l(st, {
614
615
  loading: s.loading,
615
616
  size: s.size,
616
617
  onSubmit: _
617
- }, null, 8, ["loading", "size"]), o.value ? te(f.$slots, "OAuth", {
618
+ }, null, 8, ["loading", "size"]), o.value ? ie(f.$slots, "OAuth", {
618
619
  key: 1
619
- }, void 0, !0) : S("", !0), l(lt, {
620
+ }, void 0, !0) : S("", !0), l(at, {
620
621
  onSwitchSignUp: t,
621
622
  onSwitchResetPassword: r
622
623
  })]));
623
624
  }
624
- }), rt = /* @__PURE__ */ I(ot, [["__scopeId", "data-v-07112823"]]), ut = {
625
+ }), ut = /* @__PURE__ */ I(rt, [["__scopeId", "data-v-07112823"]]), dt = {
625
626
  class: "content"
626
- }, dt = {
627
- class: "sendVerifyCodeItem"
628
627
  }, mt = {
628
+ class: "sendVerifyCodeItem"
629
+ }, ct = {
629
630
  class: "handle"
630
- }, ct = /* @__PURE__ */ k({
631
+ }, ft = /* @__PURE__ */ k({
631
632
  __name: "AuthkitEmailUpdate",
632
633
  props: {
633
634
  size: {
@@ -654,7 +655,7 @@ const Ee = /* @__PURE__ */ k({
654
655
  });
655
656
  async function _() {
656
657
  t.value.validateField(["email"]).then((p) => {
657
- p || (o.value = !0, J({
658
+ p || (o.value = !0, Q({
658
659
  email: r.value.email
659
660
  }).then(({
660
661
  data: d
@@ -670,7 +671,7 @@ const Ee = /* @__PURE__ */ k({
670
671
  p || u("submit", r.value);
671
672
  });
672
673
  }
673
- return (p, d) => (g(), P("div", ut, [l(e(L), {
674
+ return (p, d) => (g(), P("div", dt, [l(e(L), {
674
675
  ref_key: "formRef",
675
676
  ref: t,
676
677
  model: r.value,
@@ -706,12 +707,12 @@ const Ee = /* @__PURE__ */ k({
706
707
  message: "请输入验证码"
707
708
  }]
708
709
  }, {
709
- default: m(() => [w("div", dt, [l(e(V), {
710
+ default: m(() => [w("div", mt, [l(e(V), {
710
711
  modelValue: r.value.userToken,
711
712
  "onUpdate:modelValue": d[1] || (d[1] = (c) => r.value.userToken = c),
712
713
  placeholder: "请输入验证码",
713
714
  autocomplete: "one-time-code"
714
- }, null, 8, ["modelValue"]), l(Q, {
715
+ }, null, 8, ["modelValue"]), l(X, {
715
716
  ref_key: "SendVerifyCodeRef",
716
717
  ref: a,
717
718
  size: s.size,
@@ -782,7 +783,7 @@ const Ee = /* @__PURE__ */ k({
782
783
  autocomplete: "off"
783
784
  }, null, 8, ["modelValue"])]),
784
785
  _: 1
785
- }), w("div", mt, [l(e(U), {
786
+ }), w("div", ct, [l(e(U), {
786
787
  type: "primary",
787
788
  loading: s.loading,
788
789
  long: "",
@@ -796,9 +797,9 @@ const Ee = /* @__PURE__ */ k({
796
797
  _: 1
797
798
  }, 8, ["model", "size"])]));
798
799
  }
799
- }), oe = /* @__PURE__ */ I(ct, [["__scopeId", "data-v-5b701953"]]), ft = {
800
+ }), re = /* @__PURE__ */ I(ft, [["__scopeId", "data-v-5b701953"]]), pt = {
800
801
  class: "SignUp"
801
- }, pt = /* @__PURE__ */ k({
802
+ }, vt = /* @__PURE__ */ k({
802
803
  __name: "AuthkitSignUp",
803
804
  props: {
804
805
  size: {
@@ -822,15 +823,15 @@ const Ee = /* @__PURE__ */ k({
822
823
  async function o(t) {
823
824
  u("submit", t);
824
825
  }
825
- return (t, r) => (g(), P("div", ft, [l(oe, {
826
+ return (t, r) => (g(), P("div", pt, [l(re, {
826
827
  size: s.size,
827
828
  loading: i.loading,
828
829
  onSubmit: o
829
- }, null, 8, ["size", "loading"]), l(ae, {
830
+ }, null, 8, ["size", "loading"]), l(oe, {
830
831
  onSwitchSignIn: a
831
832
  })]));
832
833
  }
833
- }), vt = /* @__PURE__ */ I(pt, [["__scopeId", "data-v-bb136d90"]]), gt = ["src"], _t = /* @__PURE__ */ k({
834
+ }), gt = /* @__PURE__ */ I(vt, [["__scopeId", "data-v-bb136d90"]]), _t = ["src"], ht = /* @__PURE__ */ k({
834
835
  __name: "AuthkitAuthTitle",
835
836
  props: {
836
837
  size: {
@@ -852,12 +853,12 @@ const Ee = /* @__PURE__ */ k({
852
853
  setup(i) {
853
854
  const n = i, u = `${n.size}px`, s = `${n.fontSize}px`, a = `${n.lineHeight}px`, {
854
855
  currentView: o
855
- } = W(), {
856
+ } = K(), {
856
857
  appsData: t
857
- } = Z(), r = q(() => o.value === "signIn" ? `${t.value.name}登录` : o.value === "signUp" ? `${t.value.name}账号注册` : o.value === "resetPassword" ? `${t.value.name}密码重置` : "");
858
+ } = J(), r = q(() => o.value === "signIn" ? `${t.value.name}登录` : o.value === "signUp" ? `${t.value.name}账号注册` : o.value === "resetPassword" ? `${t.value.name}密码重置` : "");
858
859
  return (_, f) => (g(), P("div", {
859
860
  class: "Title",
860
- style: D({
861
+ style: j({
861
862
  fontSize: s,
862
863
  lineHeight: a
863
864
  })
@@ -865,16 +866,16 @@ const Ee = /* @__PURE__ */ k({
865
866
  key: 0,
866
867
  src: e(t).applicationLogoUrl,
867
868
  srcset: "",
868
- style: D({
869
+ style: j({
869
870
  width: u
870
871
  })
871
- }, null, 12, gt)) : S("", !0), w("span", null, T(r.value), 1), te(_.$slots, "default", {}, void 0, !0)], 4));
872
+ }, null, 12, _t)) : S("", !0), w("span", null, T(r.value), 1), ie(_.$slots, "default", {}, void 0, !0)], 4));
872
873
  }
873
- }), re = /* @__PURE__ */ I(_t, [["__scopeId", "data-v-8255764a"]]), ht = {
874
+ }), ue = /* @__PURE__ */ I(ht, [["__scopeId", "data-v-8255764a"]]), yt = {
874
875
  class: "Auth"
875
- }, yt = {
876
+ }, wt = {
876
877
  class: "body"
877
- }, wt = /* @__PURE__ */ k({
878
+ }, bt = /* @__PURE__ */ k({
878
879
  __name: "AuthkitAuth",
879
880
  props: {
880
881
  size: {
@@ -901,20 +902,20 @@ const Ee = /* @__PURE__ */ k({
901
902
  switchSignUp: d,
902
903
  switchResetPassword: c,
903
904
  switchSignIn: v
904
- } = W(), {
905
+ } = K(), {
905
906
  appsAuthPageInfoApi: b
906
- } = Z();
907
- function C() {
907
+ } = J();
908
+ function $() {
908
909
  s("toPrivacyPolicy");
909
910
  }
910
- function $() {
911
+ function C() {
911
912
  s("toUserServiceAgreement");
912
913
  }
913
- return b(), (x, E) => (g(), P("div", ht, [i.showTitle ? (g(), y(re, {
914
+ return b(), (x, E) => (g(), P("div", yt, [i.showTitle ? (g(), y(ue, {
914
915
  key: 0,
915
916
  size: 32,
916
917
  "font-size": 20
917
- })) : S("", !0), w("div", yt, [e(r) === "signIn" ? (g(), y(rt, {
918
+ })) : S("", !0), w("div", wt, [e(r) === "signIn" ? (g(), y(ut, {
918
919
  key: 0,
919
920
  size: u.size,
920
921
  loading: e(_),
@@ -922,28 +923,28 @@ const Ee = /* @__PURE__ */ k({
922
923
  onSwitchResetPassword: e(c),
923
924
  onSubmit: e(a)
924
925
  }, {
925
- OAuth: m(() => [l(Le, {
926
+ OAuth: m(() => [l(Be, {
926
927
  size: u.size
927
928
  }, null, 8, ["size"])]),
928
929
  _: 1
929
- }, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword", "onSubmit"])) : e(r) === "signUp" ? (g(), y(vt, {
930
+ }, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword", "onSubmit"])) : e(r) === "signUp" ? (g(), y(gt, {
930
931
  key: 1,
931
932
  size: u.size,
932
933
  loading: e(f),
933
934
  onSwitchSignIn: e(v),
934
935
  onSubmit: e(o)
935
- }, null, 8, ["size", "loading", "onSwitchSignIn", "onSubmit"])) : e(r) === "resetPassword" ? (g(), y(Ze, {
936
+ }, null, 8, ["size", "loading", "onSwitchSignIn", "onSubmit"])) : e(r) === "resetPassword" ? (g(), y(Je, {
936
937
  key: 2,
937
938
  size: u.size,
938
939
  loading: e(p),
939
940
  onSwitchSignIn: e(v),
940
941
  onSubmit: e(t)
941
- }, null, 8, ["size", "loading", "onSwitchSignIn", "onSubmit"])) : S("", !0), l(Xe, {
942
- onToPrivacyPolicy: C,
943
- onToUserServiceAgreement: $
942
+ }, null, 8, ["size", "loading", "onSwitchSignIn", "onSubmit"])) : S("", !0), l(Ye, {
943
+ onToPrivacyPolicy: $,
944
+ onToUserServiceAgreement: C
944
945
  })])]));
945
946
  }
946
- }), bt = /* @__PURE__ */ I(wt, [["__scopeId", "data-v-865d3320"]]), zt = /* @__PURE__ */ k({
947
+ }), zt = /* @__PURE__ */ I(bt, [["__scopeId", "data-v-865d3320"]]), St = /* @__PURE__ */ k({
947
948
  __name: "AuthkitAuthModal",
948
949
  props: {
949
950
  size: {
@@ -961,9 +962,9 @@ const Ee = /* @__PURE__ */ k({
961
962
  }) {
962
963
  const {
963
964
  addSignInCallback: u
964
- } = W(), {
965
+ } = K(), {
965
966
  show: s
966
- } = be(), a = i, o = n;
967
+ } = ze(), a = i, o = n;
967
968
  function t(_) {
968
969
  _(!0);
969
970
  }
@@ -972,9 +973,9 @@ const Ee = /* @__PURE__ */ k({
972
973
  }
973
974
  return u(() => {
974
975
  s.value = !1;
975
- }), (_, f) => (g(), y(e(se), {
976
+ }), (_, f) => (g(), y(e(ne), {
976
977
  visible: e(s),
977
- "onUpdate:visible": f[0] || (f[0] = (p) => ie(s) ? s.value = p : null),
978
+ "onUpdate:visible": f[0] || (f[0] = (p) => se(s) ? s.value = p : null),
978
979
  footer: !1,
979
980
  "mask-closable": !1,
980
981
  "title-align": "center",
@@ -984,15 +985,15 @@ const Ee = /* @__PURE__ */ k({
984
985
  onBeforeOk: t,
985
986
  onClose: r
986
987
  }, {
987
- title: m(() => [l(re)]),
988
- default: m(() => [l(bt, {
988
+ title: m(() => [l(ue)]),
989
+ default: m(() => [l(zt, {
989
990
  "show-title": !1,
990
991
  size: a.size
991
992
  }, null, 8, ["size"])]),
992
993
  _: 1
993
994
  }, 8, ["visible"]));
994
995
  }
995
- }), ri = /* @__PURE__ */ I(zt, [["__scopeId", "data-v-a22ae615"]]), St = k({
996
+ }), di = /* @__PURE__ */ I(St, [["__scopeId", "data-v-a22ae615"]]), kt = k({
996
997
  name: "IconCamera",
997
998
  props: {
998
999
  size: {
@@ -1021,11 +1022,11 @@ const Ee = /* @__PURE__ */ k({
1021
1022
  setup(i, {
1022
1023
  emit: n
1023
1024
  }) {
1024
- const u = Ae("icon"), s = q(() => [u, `${u}-camera`, {
1025
+ const u = Ie("icon"), s = q(() => [u, `${u}-camera`, {
1025
1026
  [`${u}-spin`]: i.spin
1026
1027
  }]), a = q(() => {
1027
1028
  const t = {};
1028
- return i.size && (t.fontSize = Ie(i.size) ? `${i.size}px` : i.size), i.rotate && (t.transform = `rotate(${i.rotate}deg)`), t;
1029
+ return i.size && (t.fontSize = Pe(i.size) ? `${i.size}px` : i.size), i.rotate && (t.transform = `rotate(${i.rotate}deg)`), t;
1029
1030
  });
1030
1031
  return {
1031
1032
  cls: s,
@@ -1035,33 +1036,33 @@ const Ee = /* @__PURE__ */ k({
1035
1036
  }
1036
1037
  };
1037
1038
  }
1038
- }), kt = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1039
- function At(i, n, u, s, a, o) {
1039
+ }), At = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1040
+ function It(i, n, u, s, a, o) {
1040
1041
  return g(), P("svg", {
1041
1042
  viewBox: "0 0 48 48",
1042
1043
  fill: "none",
1043
1044
  xmlns: "http://www.w3.org/2000/svg",
1044
1045
  stroke: "currentColor",
1045
- class: pe(i.cls),
1046
- style: D(i.innerStyle),
1046
+ class: ve(i.cls),
1047
+ style: j(i.innerStyle),
1047
1048
  "stroke-width": i.strokeWidth,
1048
1049
  "stroke-linecap": i.strokeLinecap,
1049
1050
  "stroke-linejoin": i.strokeLinejoin,
1050
1051
  onClick: n[0] || (n[0] = (...t) => i.onClick && i.onClick(...t))
1051
1052
  }, n[1] || (n[1] = [w("path", {
1052
1053
  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"
1053
- }, null, -1)]), 14, kt);
1054
+ }, null, -1)]), 14, At);
1054
1055
  }
1055
- var M = /* @__PURE__ */ ke(St, [["render", At]]);
1056
- const It = Object.assign(M, {
1056
+ var D = /* @__PURE__ */ Ae(kt, [["render", It]]);
1057
+ const Pt = Object.assign(D, {
1057
1058
  install: (i, n) => {
1058
1059
  var u;
1059
1060
  const s = (u = n == null ? void 0 : n.iconPrefix) != null ? u : "";
1060
- i.component(s + M.name, M);
1061
+ i.component(s + D.name, D);
1061
1062
  }
1062
- }), Pt = {
1063
+ }), Vt = {
1063
1064
  class: "handle"
1064
- }, Vt = /* @__PURE__ */ k({
1065
+ }, Ut = /* @__PURE__ */ k({
1065
1066
  __name: "AuthkitPersonalInformation",
1066
1067
  props: {
1067
1068
  size: {
@@ -1081,7 +1082,7 @@ const It = Object.assign(M, {
1081
1082
  avatarUrl: ""
1082
1083
  }), o = h(!1), t = h(), r = h(!1);
1083
1084
  function _() {
1084
- r.value = !0, _e().then(({
1085
+ r.value = !0, he().then(({
1085
1086
  data: d
1086
1087
  }) => {
1087
1088
  r.value = !1, a.value.id = d.id, a.value.nickname = d.nickname, a.value.description = d.description, a.value.avatar = d.avatar, a.value.avatarUrl = d.avatarUrl;
@@ -1099,7 +1100,7 @@ const It = Object.assign(M, {
1099
1100
  description: a.value.description,
1100
1101
  avatar: a.value.avatar
1101
1102
  };
1102
- Y(c).then(({
1103
+ ee(c).then(({
1103
1104
  data: v
1104
1105
  }) => {
1105
1106
  r.value = !1, O.success("更新成功"), a.value.avatarUrl = v.avatarUrl, u("submit");
@@ -1113,24 +1114,24 @@ const It = Object.assign(M, {
1113
1114
  const p = () => {
1114
1115
  const {
1115
1116
  uploadFile: d
1116
- } = Se(), c = document.createElement("input");
1117
+ } = ke(), c = document.createElement("input");
1117
1118
  c.type = "file", c.accept = "image/*", c.style.display = "none", document.body.append(c), c.addEventListener("change", async (v) => {
1118
- var $;
1119
- const C = ($ = v.target.files) == null ? void 0 : $[0];
1120
- if (C) {
1119
+ var C;
1120
+ const $ = (C = v.target.files) == null ? void 0 : C[0];
1121
+ if ($) {
1121
1122
  o.value = !0;
1122
1123
  try {
1123
1124
  d({
1124
- file: C,
1125
+ file: $,
1125
1126
  onFileFinish(x, E, N) {
1126
1127
  o.value = !0;
1127
- const de = {
1128
+ const me = {
1128
1129
  id: a.value.id,
1129
1130
  nickname: a.value.nickname,
1130
1131
  description: a.value.description,
1131
1132
  avatar: N.Key
1132
1133
  };
1133
- Y(de).then(() => {
1134
+ ee(me).then(() => {
1134
1135
  o.value = !1, O.success("更新成功"), _(), u("submit");
1135
1136
  }).catch(() => {
1136
1137
  o.value = !1;
@@ -1162,7 +1163,7 @@ const It = Object.assign(M, {
1162
1163
  message: "请上传头像"
1163
1164
  }]
1164
1165
  }, {
1165
- default: m(() => [l(e(ne), {
1166
+ default: m(() => [l(e(le), {
1166
1167
  "image-url": a.value.avatarUrl,
1167
1168
  size: 42,
1168
1169
  "trigger-icon-style": {
@@ -1170,7 +1171,7 @@ const It = Object.assign(M, {
1170
1171
  },
1171
1172
  onClick: p
1172
1173
  }, {
1173
- "trigger-icon": m(() => [l(e(It))]),
1174
+ "trigger-icon": m(() => [l(e(Pt))]),
1174
1175
  _: 1
1175
1176
  }, 8, ["image-url"])]),
1176
1177
  _: 1
@@ -1196,7 +1197,7 @@ const It = Object.assign(M, {
1196
1197
  message: "请输入描述"
1197
1198
  }]
1198
1199
  }, {
1199
- default: m(() => [l(e(ge), {
1200
+ default: m(() => [l(e(_e), {
1200
1201
  modelValue: a.value.description,
1201
1202
  "onUpdate:modelValue": c[1] || (c[1] = (v) => a.value.description = v),
1202
1203
  placeholder: "请输入描述",
@@ -1211,7 +1212,7 @@ const It = Object.assign(M, {
1211
1212
  label: "",
1212
1213
  rules: []
1213
1214
  }, {
1214
- default: m(() => [w("div", Pt, [l(e(U), {
1215
+ default: m(() => [w("div", Vt, [l(e(U), {
1215
1216
  type: "primary",
1216
1217
  loading: r.value,
1217
1218
  onClick: f
@@ -1225,8 +1226,8 @@ const It = Object.assign(M, {
1225
1226
  _: 1
1226
1227
  }, 8, ["model", "size"]));
1227
1228
  }
1228
- }), Ut = /* @__PURE__ */ I(Vt, [["__scopeId", "data-v-a4dec37f"]]);
1229
- function ue(i, n = 3) {
1229
+ }), $t = /* @__PURE__ */ I(Ut, [["__scopeId", "data-v-35e8e735"]]);
1230
+ function de(i, n = 3) {
1230
1231
  const u = i.indexOf("@");
1231
1232
  if (u > 1) {
1232
1233
  const s = i.slice(0, n), a = i.slice(u);
@@ -1236,9 +1237,9 @@ function ue(i, n = 3) {
1236
1237
  }
1237
1238
  const Ct = {
1238
1239
  class: "sendVerifyCodeItem"
1239
- }, $t = {
1240
+ }, xt = {
1240
1241
  class: "handle"
1241
- }, xt = /* @__PURE__ */ k({
1242
+ }, qt = /* @__PURE__ */ k({
1242
1243
  __name: "AuthkitEmailVerify",
1243
1244
  props: {
1244
1245
  email: {
@@ -1255,12 +1256,12 @@ const Ct = {
1255
1256
  setup(i, {
1256
1257
  emit: n
1257
1258
  }) {
1258
- const u = n, s = i, a = q(() => ue(s.email)), o = h(), t = h(!1), r = h(!1), _ = h(), f = h({
1259
+ const u = n, s = i, a = q(() => de(s.email)), o = h(), t = h(!1), r = h(!1), _ = h(), f = h({
1259
1260
  userToken: void 0,
1260
1261
  emailVerifyId: void 0
1261
1262
  });
1262
1263
  async function p() {
1263
- t.value = !0, J({
1264
+ t.value = !0, Q({
1264
1265
  email: s.email
1265
1266
  }).then(({
1266
1267
  data: c
@@ -1279,7 +1280,7 @@ const Ct = {
1279
1280
  userToken: f.value.userToken,
1280
1281
  emailVerifyId: f.value.emailVerifyId
1281
1282
  };
1282
- Be(v).then(() => {
1283
+ Oe(v).then(() => {
1283
1284
  r.value = !1, u("next");
1284
1285
  }).catch(() => {
1285
1286
  r.value = !1;
@@ -1320,7 +1321,7 @@ const Ct = {
1320
1321
  modelValue: f.value.userToken,
1321
1322
  "onUpdate:modelValue": v[0] || (v[0] = (b) => f.value.userToken = b),
1322
1323
  placeholder: "请输入验证码"
1323
- }, null, 8, ["modelValue"]), l(Q, {
1324
+ }, null, 8, ["modelValue"]), l(X, {
1324
1325
  ref_key: "SendVerifyCodeRef",
1325
1326
  ref: o,
1326
1327
  size: s.size,
@@ -1336,7 +1337,7 @@ const Ct = {
1336
1337
  label: "",
1337
1338
  rules: []
1338
1339
  }, {
1339
- default: m(() => [w("div", $t, [l(e(U), {
1340
+ default: m(() => [w("div", xt, [l(e(U), {
1340
1341
  loading: r.value,
1341
1342
  type: "primary",
1342
1343
  onClick: d
@@ -1350,9 +1351,9 @@ const Ct = {
1350
1351
  _: 1
1351
1352
  }, 8, ["model", "size"]));
1352
1353
  }
1353
- }), X = /* @__PURE__ */ I(xt, [["__scopeId", "data-v-89ebb370"]]), qt = {
1354
+ }), Y = /* @__PURE__ */ I(qt, [["__scopeId", "data-v-89ebb370"]]), Rt = {
1354
1355
  class: "handle"
1355
- }, Rt = /* @__PURE__ */ k({
1356
+ }, Tt = /* @__PURE__ */ k({
1356
1357
  __name: "AuthkitPasswordUpdate",
1357
1358
  props: {
1358
1359
  size: {
@@ -1375,7 +1376,7 @@ const Ct = {
1375
1376
  const f = {
1376
1377
  password: t.value.password
1377
1378
  };
1378
- he(f).then(() => {
1379
+ ye(f).then(() => {
1379
1380
  s.value = !1, u("submit");
1380
1381
  }).catch(() => {
1381
1382
  s.value = !1;
@@ -1453,7 +1454,7 @@ const Ct = {
1453
1454
  label: "",
1454
1455
  rules: []
1455
1456
  }, {
1456
- default: m(() => [w("div", qt, [l(e(U), {
1457
+ default: m(() => [w("div", Rt, [l(e(U), {
1457
1458
  type: "primary",
1458
1459
  loading: s.value,
1459
1460
  onClick: r
@@ -1467,7 +1468,7 @@ const Ct = {
1467
1468
  _: 1
1468
1469
  }, 8, ["model", "size"]));
1469
1470
  }
1470
- }), Tt = /* @__PURE__ */ I(Rt, [["__scopeId", "data-v-a7ff41e3"]]), Lt = /* @__PURE__ */ k({
1471
+ }), Lt = /* @__PURE__ */ I(Tt, [["__scopeId", "data-v-975b48ac"]]), Bt = /* @__PURE__ */ k({
1471
1472
  __name: "AuthkitSetPassword",
1472
1473
  props: {
1473
1474
  size: {
@@ -1481,7 +1482,7 @@ const Ct = {
1481
1482
  loading: u,
1482
1483
  fetchUserProfile: s,
1483
1484
  isLoggedIn: a
1484
- } = K(), o = h("hidden"), t = i;
1485
+ } = Z(), o = h("hidden"), t = i;
1485
1486
  function r(p) {
1486
1487
  o.value = p;
1487
1488
  }
@@ -1494,15 +1495,15 @@ const Ct = {
1494
1495
  return F(() => {
1495
1496
  a.value && !n.value && s();
1496
1497
  }), (p, d) => {
1497
- var c, v, b, C;
1498
- return g(), P(j, null, [!((c = e(n)) != null && c.email) && !((v = e(n)) != null && v.phone) ? (g(), y(e(R), {
1498
+ var c, v, b, $;
1499
+ return g(), P(W, null, [!((c = e(n)) != null && c.email) && !((v = e(n)) != null && v.phone) ? (g(), y(e(R), {
1499
1500
  key: 0,
1500
1501
  title: "去绑定邮箱"
1501
1502
  }, {
1502
1503
  action: m(() => [l(e(U), {
1503
1504
  size: t.size,
1504
1505
  type: "primary",
1505
- onClick: d[0] || (d[0] = ($) => r("update"))
1506
+ onClick: d[0] || (d[0] = (C) => r("update"))
1506
1507
  }, {
1507
1508
  default: m(() => d[2] || (d[2] = [z(" 去绑定邮箱 ")])),
1508
1509
  _: 1,
@@ -1518,7 +1519,7 @@ const Ct = {
1518
1519
  action: m(() => [l(e(U), {
1519
1520
  size: t.size,
1520
1521
  type: "primary",
1521
- onClick: d[1] || (d[1] = ($) => r("verify"))
1522
+ onClick: d[1] || (d[1] = (C) => r("verify"))
1522
1523
  }, {
1523
1524
  default: m(() => d[4] || (d[4] = [z("更改密码")])),
1524
1525
  _: 1,
@@ -1527,20 +1528,20 @@ const Ct = {
1527
1528
  default: m(() => [d[5] || (d[5] = z(" 为了账户安全修改密码前会先验证身份 "))]),
1528
1529
  _: 1,
1529
1530
  __: [5]
1530
- })) : S("", !0), o.value === "update" ? (g(), y(Tt, {
1531
+ })) : S("", !0), o.value === "update" ? (g(), y(Lt, {
1531
1532
  key: 2,
1532
1533
  size: t.size,
1533
1534
  loading: e(u),
1534
1535
  onSubmit: _
1535
- }, null, 8, ["size", "loading"])) : S("", !0), o.value === "verify" ? (g(), y(X, {
1536
+ }, null, 8, ["size", "loading"])) : S("", !0), o.value === "verify" ? (g(), y(Y, {
1536
1537
  key: 3,
1537
1538
  size: t.size,
1538
- email: (C = e(n)) == null ? void 0 : C.email,
1539
+ email: ($ = e(n)) == null ? void 0 : $.email,
1539
1540
  onNext: f
1540
1541
  }, null, 8, ["size", "email"])) : S("", !0)], 64);
1541
1542
  };
1542
1543
  }
1543
- }), Bt = /* @__PURE__ */ k({
1544
+ }), Ot = /* @__PURE__ */ k({
1544
1545
  __name: "AuthkitEmailBinding",
1545
1546
  props: {
1546
1547
  size: {
@@ -1553,7 +1554,7 @@ const Ct = {
1553
1554
  userProfile: n,
1554
1555
  loading: u,
1555
1556
  fetchUserProfile: s
1556
- } = K(), a = h("hidden"), o = i;
1557
+ } = Z(), a = h("hidden"), o = i;
1557
1558
  function t(f) {
1558
1559
  a.value = f;
1559
1560
  }
@@ -1565,7 +1566,7 @@ const Ct = {
1565
1566
  emailVerifyId: f.emailVerifyId,
1566
1567
  password: f.password
1567
1568
  };
1568
- ye(p).then(() => {
1569
+ we(p).then(() => {
1569
1570
  u.value = !1, O.success("绑定成功"), a.value = "hidden", s();
1570
1571
  }).catch(() => {
1571
1572
  u.value = !1;
@@ -1578,7 +1579,7 @@ const Ct = {
1578
1579
  n.value || s();
1579
1580
  }), (f, p) => {
1580
1581
  var d, c, v;
1581
- return g(), P(j, null, [!((d = e(n)) != null && d.email) && a.value === "hidden" ? (g(), y(e(R), {
1582
+ return g(), P(W, null, [!((d = e(n)) != null && d.email) && a.value === "hidden" ? (g(), y(e(R), {
1582
1583
  key: 0,
1583
1584
  title: "绑定邮箱"
1584
1585
  }, {
@@ -1609,15 +1610,15 @@ const Ct = {
1609
1610
  }, 8, ["size"])]),
1610
1611
  default: m(() => {
1611
1612
  var b;
1612
- return [z(T(`您绑定的邮箱为${e(ue)((b = e(n)) == null ? void 0 : b.email)}`) + " ", 1)];
1613
+ return [z(T(`您绑定的邮箱为${e(de)((b = e(n)) == null ? void 0 : b.email)}`) + " ", 1)];
1613
1614
  }),
1614
1615
  _: 1
1615
- })) : S("", !0), a.value === "update" ? (g(), y(oe, {
1616
+ })) : S("", !0), a.value === "update" ? (g(), y(re, {
1616
1617
  key: 2,
1617
1618
  loading: e(u),
1618
1619
  size: o.size,
1619
1620
  onSubmit: r
1620
- }, null, 8, ["loading", "size"])) : S("", !0), a.value === "verify" ? (g(), y(X, {
1621
+ }, null, 8, ["loading", "size"])) : S("", !0), a.value === "verify" ? (g(), y(Y, {
1621
1622
  key: 3,
1622
1623
  size: o.size,
1623
1624
  email: (v = e(n)) == null ? void 0 : v.email,
@@ -1625,7 +1626,7 @@ const Ct = {
1625
1626
  }, null, 8, ["size", "email"])) : S("", !0)], 64);
1626
1627
  };
1627
1628
  }
1628
- }), Ot = /* @__PURE__ */ I(Bt, [["__scopeId", "data-v-3e555ec8"]]), Et = /* @__PURE__ */ k({
1629
+ }), Et = /* @__PURE__ */ I(Ot, [["__scopeId", "data-v-e830a996"]]), Nt = /* @__PURE__ */ k({
1629
1630
  __name: "AuthkitGithubBinding",
1630
1631
  props: {
1631
1632
  size: {
@@ -1637,14 +1638,14 @@ const Ct = {
1637
1638
  const {
1638
1639
  userProfile: n,
1639
1640
  fetchUserProfile: u
1640
- } = K(), s = h("hidden"), a = h(!1);
1641
+ } = Z(), s = h("hidden"), a = h(!1);
1641
1642
  let o;
1642
1643
  const t = i;
1643
1644
  function r(c) {
1644
1645
  s.value = c;
1645
1646
  }
1646
1647
  function _() {
1647
- le().then(({
1648
+ ae().then(({
1648
1649
  data: c
1649
1650
  }) => {
1650
1651
  const {
@@ -1654,7 +1655,7 @@ const Ct = {
1654
1655
  });
1655
1656
  }
1656
1657
  function f() {
1657
- we().then(() => {
1658
+ be().then(() => {
1658
1659
  O.success("解绑成功"), s.value = "hidden", u();
1659
1660
  });
1660
1661
  }
@@ -1666,11 +1667,11 @@ const Ct = {
1666
1667
  }
1667
1668
  return F(() => {
1668
1669
  n.value || u(), o = setInterval(d, 1e3);
1669
- }), ee(() => {
1670
+ }), te(() => {
1670
1671
  o && clearInterval(o);
1671
1672
  }), (c, v) => {
1672
- var b, C, $;
1673
- return g(), P(j, null, [!((b = e(n)) != null && b.github) && s.value === "hidden" ? (g(), y(e(R), {
1673
+ var b, $, C;
1674
+ return g(), P(W, null, [!((b = e(n)) != null && b.github) && s.value === "hidden" ? (g(), y(e(R), {
1674
1675
  key: 0,
1675
1676
  title: "绑定GitHUb"
1676
1677
  }, {
@@ -1686,7 +1687,7 @@ const Ct = {
1686
1687
  default: m(() => [v[3] || (v[3] = z(" 请尚未绑定GitHub,请点击绑定GitHUb "))]),
1687
1688
  _: 1,
1688
1689
  __: [3]
1689
- })) : S("", !0), (C = e(n)) != null && C.github && s.value === "hidden" ? (g(), y(e(R), {
1690
+ })) : S("", !0), ($ = e(n)) != null && $.github && s.value === "hidden" ? (g(), y(e(R), {
1690
1691
  key: 1,
1691
1692
  title: "解绑GitHub"
1692
1693
  }, {
@@ -1701,27 +1702,27 @@ const Ct = {
1701
1702
  }, 8, ["size"])]),
1702
1703
  default: m(() => {
1703
1704
  var x, E, N;
1704
- return [w("span", null, T(`您绑定的账号为 ${(E = (x = e(n)) == null ? void 0 : x.github) == null ? void 0 : E.login}`), 1), l(e(ne), {
1705
+ return [w("span", null, T(`您绑定的账号为 ${(E = (x = e(n)) == null ? void 0 : x.github) == null ? void 0 : E.login}`), 1), l(e(le), {
1705
1706
  "image-url": (N = e(n)) == null ? void 0 : N.avatar,
1706
1707
  size: 42
1707
1708
  }, null, 8, ["image-url"])];
1708
1709
  }),
1709
1710
  _: 1
1710
- })) : S("", !0), s.value === "bind" || s.value === "unbind" ? (g(), y(X, {
1711
+ })) : S("", !0), s.value === "bind" || s.value === "unbind" ? (g(), y(Y, {
1711
1712
  key: 2,
1712
1713
  size: t.size,
1713
- email: ($ = e(n)) == null ? void 0 : $.email,
1714
+ email: (C = e(n)) == null ? void 0 : C.email,
1714
1715
  onNext: p
1715
1716
  }, null, 8, ["size", "email"])) : S("", !0)], 64);
1716
1717
  };
1717
1718
  }
1718
- }), Nt = {
1719
+ }), Ft = {
1719
1720
  class: "content"
1720
- }, Ft = {
1721
- class: "left"
1722
1721
  }, Gt = {
1722
+ class: "left"
1723
+ }, Ht = {
1723
1724
  class: "right"
1724
- }, Ht = /* @__PURE__ */ k({
1725
+ }, Mt = /* @__PURE__ */ k({
1725
1726
  __name: "AuthkitAppSetting",
1726
1727
  emits: ["confirm", "cancel"],
1727
1728
  setup(i, {
@@ -1784,15 +1785,15 @@ const Ct = {
1784
1785
  const {
1785
1786
  changeType: f,
1786
1787
  show: p
1787
- } = Ve(s);
1788
+ } = Ue(s);
1788
1789
  function d(c, v) {
1789
1790
  console.log(c), p.value = v, f.value = "编辑";
1790
1791
  }
1791
1792
  return n({
1792
1793
  setData: d
1793
- }), (c, v) => (g(), y(e(se), {
1794
+ }), (c, v) => (g(), y(e(ne), {
1794
1795
  visible: e(p),
1795
- "onUpdate:visible": v[1] || (v[1] = (b) => ie(p) ? p.value = b : null),
1796
+ "onUpdate:visible": v[1] || (v[1] = (b) => se(p) ? p.value = b : null),
1796
1797
  "unmount-on-close": "",
1797
1798
  "body-class": "AppSettingbodyClass",
1798
1799
  "mask-closable": !1,
@@ -1801,49 +1802,49 @@ const Ct = {
1801
1802
  onCancel: a
1802
1803
  }, {
1803
1804
  title: m(() => v[2] || (v[2] = [z(" 系统设置 ")])),
1804
- default: m(() => [w("div", Nt, [w("div", Ft, [l(Pe, {
1805
+ default: m(() => [w("div", Ft, [w("div", Gt, [l(Ve, {
1805
1806
  "selected-keys": t.value,
1806
1807
  "onUpdate:selectedKeys": v[0] || (v[0] = (b) => t.value = b),
1807
1808
  menus: r.value,
1808
1809
  onChange: _
1809
- }, null, 8, ["selected-keys", "menus"])]), w("div", Gt, [t.value[0] === "PersonalInformation" ? (g(), y(Ut, {
1810
+ }, null, 8, ["selected-keys", "menus"])]), w("div", Ht, [t.value[0] === "PersonalInformation" ? (g(), y($t, {
1810
1811
  key: 0,
1811
1812
  size: o.value
1812
- }, null, 8, ["size"])) : S("", !0), t.value[0] === "EmailBinding" ? (g(), y(Ot, {
1813
+ }, null, 8, ["size"])) : S("", !0), t.value[0] === "EmailBinding" ? (g(), y(Et, {
1813
1814
  key: 1,
1814
1815
  size: o.value
1815
- }, null, 8, ["size"])) : S("", !0), t.value[0] === "SetPassword" ? (g(), y(Lt, {
1816
+ }, null, 8, ["size"])) : S("", !0), t.value[0] === "SetPassword" ? (g(), y(Bt, {
1816
1817
  key: 2,
1817
1818
  size: o.value
1818
- }, null, 8, ["size"])) : S("", !0), t.value[0] === "GithubBinding" ? (g(), y(Et, {
1819
+ }, null, 8, ["size"])) : S("", !0), t.value[0] === "GithubBinding" ? (g(), y(Nt, {
1819
1820
  key: 3,
1820
1821
  size: o.value
1821
1822
  }, null, 8, ["size"])) : S("", !0)])])]),
1822
1823
  _: 1
1823
1824
  }, 8, ["visible"]));
1824
1825
  }
1825
- }), ui = /* @__PURE__ */ I(Ht, [["__scopeId", "data-v-e9f9426e"]]);
1826
+ }), mi = /* @__PURE__ */ I(Mt, [["__scopeId", "data-v-e9f9426e"]]);
1826
1827
  export {
1827
- bt as A,
1828
- oe as E,
1829
- Le as O,
1830
- Me as P,
1831
- Ze as R,
1832
- Q as S,
1833
- H as _,
1834
- ri as a,
1835
- ui as b,
1836
- re as c,
1837
- rt as d,
1838
- vt as e,
1839
- it as f,
1840
- ae as g,
1841
- lt as h,
1842
- Xe as i,
1843
- Ut as j,
1844
- X as k,
1845
- Et as l,
1846
- Lt as m,
1847
- Ot as n,
1848
- Tt as o
1828
+ zt as A,
1829
+ re as E,
1830
+ Be as O,
1831
+ De as P,
1832
+ Je as R,
1833
+ X as S,
1834
+ M as _,
1835
+ di as a,
1836
+ mi as b,
1837
+ ue as c,
1838
+ ut as d,
1839
+ gt as e,
1840
+ st as f,
1841
+ oe as g,
1842
+ at as h,
1843
+ Ye as i,
1844
+ $t as j,
1845
+ Y as k,
1846
+ Nt as l,
1847
+ Bt as m,
1848
+ Et as n,
1849
+ Lt as o
1849
1850
  };