@huyooo/ui 2.2.7 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/{AuthkitAppSetting-K0qhtQoU.js → AuthkitAppSetting-DNUAV5I8.js} +95 -89
  2. package/dist/{FeedbackModal.vue_vue_type_script_setup_true_lang-hbfe8U5u.js → FeedbackModal.vue_vue_type_script_setup_true_lang-DEuryJ4s.js} +1 -1
  3. package/dist/{LegalDocViewer-C6yZJ_kH.js → LegalDocViewer-B8nGoL2n.js} +618 -621
  4. package/dist/{PricingPlans-BKbMjHaY.js → PricingPlans-B3HVDVac.js} +2 -2
  5. package/dist/{ReferrerReferees-BQ0_OW74.js → ReferrerReferees-DEdEjkFH.js} +1 -1
  6. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-K5_YUkGs.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Bal7vFj8.js} +4 -4
  7. package/dist/{WidthContainer-ummelwr_.js → WidthContainer-Ck7Cr5Wc.js} +4 -4
  8. package/dist/authkit.js +5 -5
  9. package/dist/common.js +1 -1
  10. package/dist/composables/Authkit/oauthCallback.d.ts +1 -1
  11. package/dist/composables/Authkit/useAuthkitAuth.d.ts +14 -3
  12. package/dist/composables.js +4 -4
  13. package/dist/feedback.js +1 -1
  14. package/dist/main.js +12 -12
  15. package/dist/pay.js +2 -2
  16. package/dist/referrer.js +1 -1
  17. package/dist/style.css +1 -1
  18. package/dist/types/api/auth.generated.d.ts +23 -0
  19. package/dist/useAuthkitAuth-DSC6QSKm.js +300 -0
  20. package/dist/{useAuthkitUsersProfile-DyjCmUka.js → useAuthkitUsersProfile-DSd5VA3_.js} +1 -1
  21. package/dist/{useEnsureAuthenticated-CpZcAqLg.js → useEnsureAuthenticated-COQKiCLk.js} +1 -1
  22. package/dist/{useRoutePermission-BCXxvMoU.js → useRoutePermission-DgQlbUBI.js} +1 -1
  23. package/dist/{useSubscriptionCheckout-D8W6v3YG.js → useSubscriptionCheckout-LrwlCr84.js} +1 -1
  24. package/dist/user.js +1 -1
  25. package/package.json +1 -1
  26. package/dist/useAuthkitAuth-HqXgYzfZ.js +0 -273
@@ -1,13 +1,13 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  import { U as Be } from "./userMenuModal-D-nDaYqM.js";
4
- import { defineComponent as J, ref as A, computed as $, openBlock as h, createElementBlock as M, createElementVNode as z, createVNode as p, unref as n, withCtx as o, createTextVNode as k, createCommentVNode as E, toDisplayString as O, createBlock as I, onUnmounted as Ae, withDirectives as qe, vShow as Le, onMounted as de, Fragment as ie, createSlots as Me, normalizeClass as Pe, renderList as Ke, watch as Ie } from "vue";
5
- import { Avatar as Ee, Input as Q, Textarea as Fe, Button as T, Message as G, Form as le, FormItem as L, Alert as Y, Space as me, Popconfirm as He, Link as Ce, InputPassword as We, Result as Ge, Modal as Ye } from "@arco-design/web-vue";
4
+ import { defineComponent as J, ref as A, computed as $, openBlock as h, createElementBlock as M, createElementVNode as z, createVNode as p, unref as n, withCtx as o, createTextVNode as k, createCommentVNode as C, toDisplayString as O, createBlock as I, onUnmounted as Ae, withDirectives as qe, vShow as Le, onMounted as de, Fragment as ie, createSlots as Me, normalizeClass as Pe, renderList as Ke, watch as Ie } from "vue";
5
+ import { Avatar as Ce, Input as Q, Textarea as Fe, Button as T, Message as G, Form as le, FormItem as L, Alert as Y, Space as me, Popconfirm as He, Link as Ee, InputPassword as We, Result as Ge, Modal as Ye } from "@arco-design/web-vue";
6
6
  /* empty css */
7
7
  import { f as Je, g as U, b as je, h as Re } from "./apiClients-8_c5cDW5.js";
8
8
  import { C as Qe } from "./index-D9YtlhTa.js";
9
9
  /* empty css */
10
- import { u as ne } from "./useAuthkitUsersProfile-DyjCmUka.js";
10
+ import { u as ne } from "./useAuthkitUsersProfile-DSd5VA3_.js";
11
11
  import { u as Se, g as Xe } from "./runtime-CDEl4QQl.js";
12
12
  import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  /* empty css */
@@ -16,7 +16,7 @@ import { C as Ze } from "./CustomTable-B1KjkixL.js";
16
16
  import { u as Ve } from "./useAuthkitAppsAuthPageInfo-mv7hOnhi.js";
17
17
  import { Icon as et } from "@iconify/vue";
18
18
  import { i as tt, M as it } from "./Menu-uCexrsKP.js";
19
- import { u as nt } from "./useAuthkitAuth-HqXgYzfZ.js";
19
+ import { u as nt } from "./useAuthkitAuth-DSC6QSKm.js";
20
20
  import { u as at } from "./useAuthkitCreateAndUpdate-CYIcEuub.js";
21
21
  const ot = {
22
22
  class: "personal-information"
@@ -159,7 +159,7 @@ const ot = {
159
159
  disabled: f.value,
160
160
  title: "更换头像",
161
161
  onClick: j
162
- }, [p(n(Ee), {
162
+ }, [p(n(Ce), {
163
163
  "image-url": t.value.avatarUrl,
164
164
  size: 28,
165
165
  "object-fit": "cover"
@@ -196,13 +196,13 @@ const ot = {
196
196
  }, {
197
197
  default: o(() => [...w[5] || (w[5] = [k(" 保存修改 ", -1)])]),
198
198
  _: 1
199
- }, 8, ["size", "loading"])])) : E("", !0)]), z("section", ft, [w[11] || (w[11] = z("h3", {
199
+ }, 8, ["size", "loading"])])) : C("", !0)]), z("section", ft, [w[11] || (w[11] = z("h3", {
200
200
  class: "profile-card__title"
201
201
  }, "账号信息", -1)), z("dl", pt, [z("div", mt, [w[7] || (w[7] = z("dt", null, "用户 ID", -1)), z("dd", null, [z("span", null, O(g.value.id || "-"), 1), g.value.id ? (h(), I(Qe, {
202
202
  key: 0,
203
203
  value: g.value.id,
204
204
  message: "用户 ID 已复制"
205
- }, null, 8, ["value"])) : E("", !0)])]), z("div", vt, [w[8] || (w[8] = z("dt", null, "注册时间", -1)), z("dd", null, O(g.value.createAt || "-"), 1)]), z("div", ht, [w[9] || (w[9] = z("dt", null, "账号状态", -1)), z("dd", null, O(n(Je)(g.value.status)), 1)]), z("div", yt, [w[10] || (w[10] = z("dt", null, "登录标识", -1)), z("dd", null, O(g.value.loginIdentity), 1)])])])]));
205
+ }, null, 8, ["value"])) : C("", !0)])]), z("div", vt, [w[8] || (w[8] = z("dt", null, "注册时间", -1)), z("dd", null, O(g.value.createAt || "-"), 1)]), z("div", ht, [w[9] || (w[9] = z("dt", null, "账号状态", -1)), z("dd", null, O(n(Je)(g.value.status)), 1)]), z("div", yt, [w[10] || (w[10] = z("dt", null, "登录标识", -1)), z("dd", null, O(g.value.loginIdentity), 1)])])])]));
206
206
  }
207
207
  }), bt = /* @__PURE__ */ X(wt, [["__scopeId", "data-v-e03e688b"]]), _t = /* @__PURE__ */ J({
208
208
  __name: "AuthkitSendVerifyCode",
@@ -391,9 +391,9 @@ const At = {
391
391
  }
392
392
  }), ge = /* @__PURE__ */ X(Pt, [["__scopeId", "data-v-0939d925"]]), It = {
393
393
  class: "sendVerifyCodeItem"
394
- }, Et = {
394
+ }, Ct = {
395
395
  class: "handle"
396
- }, Ct = /* @__PURE__ */ J({
396
+ }, Et = /* @__PURE__ */ J({
397
397
  __name: "AuthkitPhoneVerify",
398
398
  props: {
399
399
  phone: {
@@ -482,7 +482,7 @@ const At = {
482
482
  label: "",
483
483
  rules: []
484
484
  }, {
485
- default: o(() => [z("div", Et, [p(n(T), {
485
+ default: o(() => [z("div", Ct, [p(n(T), {
486
486
  loading: u.value,
487
487
  type: "primary",
488
488
  onClick: v
@@ -495,7 +495,7 @@ const At = {
495
495
  _: 1
496
496
  }, 8, ["model", "size"]));
497
497
  }
498
- }), we = /* @__PURE__ */ X(Ct, [["__scopeId", "data-v-d26a59d3"]]), Rt = {
498
+ }), we = /* @__PURE__ */ X(Et, [["__scopeId", "data-v-d26a59d3"]]), Rt = {
499
499
  class: "handle"
500
500
  }, St = /* @__PURE__ */ J({
501
501
  __name: "AuthkitPasswordUpdate",
@@ -566,7 +566,7 @@ const At = {
566
566
  type: "password"
567
567
  }, null, 8, ["modelValue"])]),
568
568
  _: 1
569
- })) : E("", !0), p(n(L), {
569
+ })) : C("", !0), p(n(L), {
570
570
  field: "password",
571
571
  label: d.requireOldPassword ? "新密码" : "登录密码",
572
572
  "hide-label": "",
@@ -651,7 +651,7 @@ const At = {
651
651
  }, {
652
652
  default: o(() => [...f[1] || (f[1] = [k(" 请先绑定邮箱或手机号,再设置登录密码。 ", -1)])]),
653
653
  _: 1
654
- })) : E("", !0), ((m = n(i)) != null && m.email || (S = n(i)) != null && S.phone) && s.value === "hidden" ? (h(), I(n(Y), {
654
+ })) : C("", !0), ((m = n(i)) != null && m.email || (S = n(i)) != null && S.phone) && s.value === "hidden" ? (h(), I(n(Y), {
655
655
  key: 1,
656
656
  title: (R = n(i)) != null && R.hasPassword ? "更改密码" : "设置登录密码"
657
657
  }, {
@@ -671,22 +671,22 @@ const At = {
671
671
  return [k(O((w = n(i)) != null && w.hasPassword ? "为了账户安全,修改密码前会先验证身份。" : "设置登录密码前会先验证身份。") + " ", 1)];
672
672
  }),
673
673
  _: 1
674
- }, 8, ["title"])) : E("", !0), s.value === "update" ? (h(), I(Vt, {
674
+ }, 8, ["title"])) : C("", !0), s.value === "update" ? (h(), I(Vt, {
675
675
  key: 2,
676
676
  size: d.size,
677
677
  "require-old-password": !!((B = n(i)) != null && B.hasPassword),
678
678
  onSubmit: t
679
- }, null, 8, ["size", "require-old-password"])) : E("", !0), s.value === "verify" && ((K = n(i)) != null && K.email) ? (h(), I(ge, {
679
+ }, null, 8, ["size", "require-old-password"])) : C("", !0), s.value === "verify" && ((K = n(i)) != null && K.email) ? (h(), I(ge, {
680
680
  key: 3,
681
681
  size: d.size,
682
682
  email: n(i).email,
683
683
  onNext: y
684
- }, null, 8, ["size", "email"])) : E("", !0), s.value === "verify" && !((j = n(i)) != null && j.email) && ((V = n(i)) != null && V.phone) ? (h(), I(we, {
684
+ }, null, 8, ["size", "email"])) : C("", !0), s.value === "verify" && !((j = n(i)) != null && j.email) && ((V = n(i)) != null && V.phone) ? (h(), I(we, {
685
685
  key: 4,
686
686
  size: d.size,
687
687
  phone: n(i).phone,
688
688
  onNext: y
689
- }, null, 8, ["size", "phone"])) : E("", !0)], 64);
689
+ }, null, 8, ["size", "phone"])) : C("", !0)], 64);
690
690
  };
691
691
  }
692
692
  }), fe = {
@@ -1234,7 +1234,7 @@ const Ht = {
1234
1234
  }, {
1235
1235
  default: o(() => [...P[2] || (P[2] = [k(" Passkey 使用设备生物识别(指纹 / 面容)登录,绑定后可在登录页一键验证身份。 ", -1)])]),
1236
1236
  _: 1
1237
- }), n(u) ? (h(), M("div", Wt, O(n(u)), 1)) : E("", !0), g.value && !f.value ? (h(), I(n(Y), {
1237
+ }), n(u) ? (h(), M("div", Wt, O(n(u)), 1)) : C("", !0), g.value && !f.value ? (h(), I(n(Y), {
1238
1238
  key: 1,
1239
1239
  type: "warning",
1240
1240
  title: "移除前验证身份"
@@ -1254,7 +1254,7 @@ const Ht = {
1254
1254
  }, {
1255
1255
  default: o(() => [...P[3] || (P[3] = [k(" 邮箱验证 ", -1)])]),
1256
1256
  _: 1
1257
- }, 8, ["size"])) : E("", !0), (Z = n(a)) != null && Z.phone ? (h(), I(n(T), {
1257
+ }, 8, ["size"])) : C("", !0), (Z = n(a)) != null && Z.phone ? (h(), I(n(T), {
1258
1258
  key: 1,
1259
1259
  size: i.size,
1260
1260
  type: "primary",
@@ -1262,7 +1262,7 @@ const Ht = {
1262
1262
  }, {
1263
1263
  default: o(() => [...P[4] || (P[4] = [k(" 手机验证 ", -1)])]),
1264
1264
  _: 1
1265
- }, 8, ["size"])) : E("", !0), p(n(T), {
1265
+ }, 8, ["size"])) : C("", !0), p(n(T), {
1266
1266
  size: i.size,
1267
1267
  onClick: w
1268
1268
  }, {
@@ -1273,17 +1273,17 @@ const Ht = {
1273
1273
  _: 1
1274
1274
  })]),
1275
1275
  key: "0"
1276
- } : void 0]), 1024)) : E("", !0), g.value && v.value === "email" && ((N = n(a)) != null && N.email) ? (h(), I(ge, {
1276
+ } : void 0]), 1024)) : C("", !0), g.value && v.value === "email" && ((N = n(a)) != null && N.email) ? (h(), I(ge, {
1277
1277
  key: 2,
1278
1278
  size: i.size,
1279
1279
  email: n(a).email,
1280
1280
  onNext: V
1281
- }, null, 8, ["size", "email"])) : E("", !0), g.value && v.value === "phone" && ((F = n(a)) != null && F.phone) ? (h(), I(we, {
1281
+ }, null, 8, ["size", "email"])) : C("", !0), g.value && v.value === "phone" && ((F = n(a)) != null && F.phone) ? (h(), I(we, {
1282
1282
  key: 3,
1283
1283
  size: i.size,
1284
1284
  phone: n(a).phone,
1285
1285
  onNext: V
1286
- }, null, 8, ["size", "phone"])) : E("", !0), g.value ? E("", !0) : (h(), M("div", Gt, [p(n(T), {
1286
+ }, null, 8, ["size", "phone"])) : C("", !0), g.value ? C("", !0) : (h(), M("div", Gt, [p(n(T), {
1287
1287
  type: "primary",
1288
1288
  size: i.size,
1289
1289
  loading: s.value,
@@ -1292,7 +1292,7 @@ const Ht = {
1292
1292
  }, {
1293
1293
  default: o(() => [...P[7] || (P[7] = [k(" 添加 Passkey ", -1)])]),
1294
1294
  _: 1
1295
- }, 8, ["size", "loading", "disabled"])])), g.value ? E("", !0) : (h(), I(Ze, {
1295
+ }, 8, ["size", "loading", "disabled"])])), g.value ? C("", !0) : (h(), I(Ze, {
1296
1296
  key: 5,
1297
1297
  columns: S,
1298
1298
  data: d.value,
@@ -1468,12 +1468,12 @@ const Ht = {
1468
1468
  _: 1
1469
1469
  }, 8, ["loading", "size"])])]),
1470
1470
  _: 1
1471
- }, 8, ["model", "size"])]), l.showSkip ? (h(), M("div", ei, [p(n(Ce), {
1471
+ }, 8, ["model", "size"])]), l.showSkip ? (h(), M("div", ei, [p(n(Ee), {
1472
1472
  onClick: f
1473
1473
  }, {
1474
1474
  default: o(() => [...r[2] || (r[2] = [k("稍后绑定", -1)])]),
1475
1475
  _: 1
1476
- })])) : E("", !0)]));
1476
+ })])) : C("", !0)]));
1477
1477
  }
1478
1478
  }), ii = /* @__PURE__ */ X(ti, [["__scopeId", "data-v-00ac3b6a"]]), ni = /* @__PURE__ */ J({
1479
1479
  __name: "AuthkitEmailBinding",
@@ -1531,7 +1531,7 @@ const Ht = {
1531
1531
  }, 8, ["size"])]),
1532
1532
  default: o(() => [k(O(`您绑定的邮箱为 ${n(Re)(n(i).email)}`) + " ", 1)]),
1533
1533
  _: 1
1534
- })) : E("", !0), !((S = n(i)) != null && S.email) || s.value === "update" ? (h(), I(ii, {
1534
+ })) : C("", !0), !((S = n(i)) != null && S.email) || s.value === "update" ? (h(), I(ii, {
1535
1535
  key: 1,
1536
1536
  loading: n(a),
1537
1537
  size: u.size,
@@ -1539,12 +1539,12 @@ const Ht = {
1539
1539
  subtitle: t.value ? "请输入新的邮箱并完成验证" : "请绑定邮箱以完成账号设置,绑定后可使用邮箱登录",
1540
1540
  "submit-text": t.value ? "更改邮箱" : "绑定邮箱",
1541
1541
  onSubmit: g
1542
- }, null, 8, ["loading", "size", "title", "subtitle", "submit-text"])) : E("", !0), s.value === "verify" ? (h(), I(ge, {
1542
+ }, null, 8, ["loading", "size", "title", "subtitle", "submit-text"])) : C("", !0), s.value === "verify" ? (h(), I(ge, {
1543
1543
  key: 2,
1544
1544
  size: u.size,
1545
1545
  email: (R = n(i)) == null ? void 0 : R.email,
1546
1546
  onNext: f
1547
- }, null, 8, ["size", "email"])) : E("", !0)], 64);
1547
+ }, null, 8, ["size", "email"])) : C("", !0)], 64);
1548
1548
  };
1549
1549
  }
1550
1550
  }), ai = {
@@ -1685,12 +1685,12 @@ const Ht = {
1685
1685
  _: 1
1686
1686
  }, 8, ["loading", "size"])])]),
1687
1687
  _: 1
1688
- }, 8, ["model", "size"])]), l.showSkip ? (h(), M("div", ci, [p(n(Ce), {
1688
+ }, 8, ["model", "size"])]), l.showSkip ? (h(), M("div", ci, [p(n(Ee), {
1689
1689
  onClick: f
1690
1690
  }, {
1691
1691
  default: o(() => [...r[2] || (r[2] = [k("稍后绑定", -1)])]),
1692
1692
  _: 1
1693
- })])) : E("", !0)]));
1693
+ })])) : C("", !0)]));
1694
1694
  }
1695
1695
  }), pi = /* @__PURE__ */ X(fi, [["__scopeId", "data-v-1db8897d"]]), mi = /* @__PURE__ */ J({
1696
1696
  __name: "AuthkitPhoneBinding",
@@ -1751,7 +1751,7 @@ const Ht = {
1751
1751
  }, 8, ["size"])]),
1752
1752
  default: o(() => [m[3] || (m[3] = k(" 您还未绑定手机号,请点击绑定手机号。 ", -1))]),
1753
1753
  _: 1
1754
- })) : E("", !0), (R = n(i)) != null && R.phone && s.value === "hidden" ? (h(), I(n(Y), {
1754
+ })) : C("", !0), (R = n(i)) != null && R.phone && s.value === "hidden" ? (h(), I(n(Y), {
1755
1755
  key: 1,
1756
1756
  title: "已绑定手机号"
1757
1757
  }, {
@@ -1765,7 +1765,7 @@ const Ht = {
1765
1765
  }, 8, ["size"])]),
1766
1766
  default: o(() => [k(O(`您绑定的手机号为 ${t.value}`) + " ", 1)]),
1767
1767
  _: 1
1768
- })) : E("", !0), s.value === "update" ? (h(), I(pi, {
1768
+ })) : C("", !0), s.value === "update" ? (h(), I(pi, {
1769
1769
  key: 2,
1770
1770
  loading: n(a),
1771
1771
  size: u.size,
@@ -1773,12 +1773,12 @@ const Ht = {
1773
1773
  subtitle: y.value ? "请输入新的手机号并完成短信验证" : "请绑定手机号以完成账号设置",
1774
1774
  "submit-text": y.value ? "更改手机号" : "绑定手机号",
1775
1775
  onSubmit: f
1776
- }, null, 8, ["loading", "size", "title", "subtitle", "submit-text"])) : E("", !0), s.value === "verify" ? (h(), I(we, {
1776
+ }, null, 8, ["loading", "size", "title", "subtitle", "submit-text"])) : C("", !0), s.value === "verify" ? (h(), I(we, {
1777
1777
  key: 3,
1778
1778
  size: u.size,
1779
1779
  phone: ((B = n(i)) == null ? void 0 : B.phone) || "",
1780
1780
  onNext: v
1781
- }, null, 8, ["size", "phone"])) : E("", !0)], 64);
1781
+ }, null, 8, ["size", "phone"])) : C("", !0)], 64);
1782
1782
  };
1783
1783
  }
1784
1784
  });
@@ -1786,7 +1786,13 @@ function vi() {
1786
1786
  var i;
1787
1787
  return typeof window > "u" ? "" : ((i = new URLSearchParams(window.location.search).get("inviteCode")) == null ? void 0 : i.trim()) || "";
1788
1788
  }
1789
- const ze = ["token", "refreshToken", "userId", "appId", "error", "needBindIdentity", "bindSuccess", "provider", "expiresIn"], ue = "auth_redirect";
1789
+ const ze = [
1790
+ /** 一次性登录 code,经 POST 兑换 token */
1791
+ "loginCode",
1792
+ "error",
1793
+ "bindSuccess",
1794
+ "provider"
1795
+ ], ue = "auth_redirect";
1790
1796
  function hi(e) {
1791
1797
  return ze.some((i) => e.searchParams.has(i));
1792
1798
  }
@@ -1908,14 +1914,14 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
1908
1914
  width: i.size,
1909
1915
  height: i.size,
1910
1916
  class: Pe(["auth-provider-icon__image", i.class])
1911
- }, null, 10, zi)) : E("", !0);
1917
+ }, null, 10, zi)) : C("", !0);
1912
1918
  }
1913
1919
  }), Ii = /* @__PURE__ */ X(Pi, [["__scopeId", "data-v-1d09c1ef"]]), re = {
1914
1920
  github: "selfhst:github",
1915
1921
  google: "selfhst:google",
1916
1922
  microsoft: "selfhst:microsoft",
1917
1923
  wechat: "selfhst:wechat"
1918
- }, Ei = "selfhst:ksuite-kpaste", Ci = 32, Ri = 2, _n = Ci + Ri * 2, kn = 12, Si = 24, pe = {
1924
+ }, Ci = "selfhst:ksuite-kpaste", Ei = 32, Ri = 2, _n = Ei + Ri * 2, kn = 12, Si = 24, pe = {
1919
1925
  github: "GitHub",
1920
1926
  google: "Google",
1921
1927
  microsoft: "Microsoft",
@@ -2001,12 +2007,12 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2001
2007
  c === "bind" && Z(), c === "unbind" && ae();
2002
2008
  return;
2003
2009
  }
2004
- const C = V.value;
2005
- if (C.length === 0) {
2010
+ const E = V.value;
2011
+ if (E.length === 0) {
2006
2012
  G.error("请先绑定应用已开启的邮箱或手机号后再操作第三方账号");
2007
2013
  return;
2008
2014
  }
2009
- t.value = c, y.value = C.length === 1 ? C[0] : void 0;
2015
+ t.value = c, y.value = E.length === 1 ? E[0] : void 0;
2010
2016
  }
2011
2017
  function D(c) {
2012
2018
  y.value = c;
@@ -2017,26 +2023,26 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2017
2023
  console.error(`${a.label} OAuth 失败: appId 未配置`);
2018
2024
  return;
2019
2025
  }
2020
- const C = u(), H = U().auth, oe = {
2026
+ const E = u(), H = U().auth, oe = {
2021
2027
  github: () => H.oauth.github.login.get({
2022
2028
  appId: c,
2023
2029
  mode: "bind",
2024
- redirectUri: C
2030
+ redirectUri: E
2025
2031
  }),
2026
2032
  google: () => H.oauth.google.login.get({
2027
2033
  appId: c,
2028
2034
  mode: "bind",
2029
- redirectUri: C
2035
+ redirectUri: E
2030
2036
  }),
2031
2037
  microsoft: () => H.oauth.microsoft.login.get({
2032
2038
  appId: c,
2033
2039
  mode: "bind",
2034
- redirectUri: C
2040
+ redirectUri: E
2035
2041
  }),
2036
2042
  wechat: () => H.oauth.wechat.login.get({
2037
2043
  appId: c,
2038
2044
  mode: "bind",
2039
- redirectUri: C
2045
+ redirectUri: E
2040
2046
  })
2041
2047
  }, {
2042
2048
  data: te,
@@ -2062,7 +2068,7 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2062
2068
  l.value || s(), f = setInterval(b, 1e3);
2063
2069
  }), Ae(() => {
2064
2070
  f && clearInterval(f);
2065
- }), (c, C) => {
2071
+ }), (c, E) => {
2066
2072
  var H, oe;
2067
2073
  return h(), M(ie, null, [!v.value && t.value === "hidden" ? (h(), I(n(Y), {
2068
2074
  key: 0,
@@ -2071,26 +2077,26 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2071
2077
  action: o(() => [p(n(T), {
2072
2078
  size: a.size,
2073
2079
  type: "primary",
2074
- onClick: C[0] || (C[0] = (te) => F("bind"))
2080
+ onClick: E[0] || (E[0] = (te) => F("bind"))
2075
2081
  }, {
2076
2082
  default: o(() => [k(" 绑定" + O(a.label), 1)]),
2077
2083
  _: 1
2078
2084
  }, 8, ["size"])]),
2079
2085
  default: o(() => [k(" 您还未绑定" + O(a.label) + "账号,请点击绑定。 ", 1)]),
2080
2086
  _: 1
2081
- }, 8, ["title"])) : E("", !0), v.value && t.value === "hidden" ? (h(), I(n(Y), {
2087
+ }, 8, ["title"])) : C("", !0), v.value && t.value === "hidden" ? (h(), I(n(Y), {
2082
2088
  key: 1,
2083
2089
  title: `解绑${a.label}`
2084
2090
  }, {
2085
2091
  action: o(() => [p(n(T), {
2086
2092
  size: a.size,
2087
2093
  type: "primary",
2088
- onClick: C[1] || (C[1] = (te) => F("unbind"))
2094
+ onClick: E[1] || (E[1] = (te) => F("unbind"))
2089
2095
  }, {
2090
2096
  default: o(() => [k(" 解绑" + O(a.label), 1)]),
2091
2097
  _: 1
2092
2098
  }, 8, ["size"])]),
2093
- default: o(() => [z("div", Vi, [m.value ? (h(), I(n(Ee), {
2099
+ default: o(() => [z("div", Vi, [m.value ? (h(), I(n(Ce), {
2094
2100
  key: 0,
2095
2101
  class: "oauth-binding-account__avatar",
2096
2102
  "image-url": m.value,
@@ -2101,7 +2107,7 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2101
2107
  alt: a.label
2102
2108
  }, null, 8, ["icon", "size", "alt"])])), z("div", Ti, [z("div", Oi, O(a.label), 1), z("div", Ui, O(r.value), 1)])])]),
2103
2109
  _: 1
2104
- }, 8, ["title"])) : E("", !0), q.value ? (h(), I(n(Y), {
2110
+ }, 8, ["title"])) : C("", !0), q.value ? (h(), I(n(Y), {
2105
2111
  key: 2,
2106
2112
  title: `${N.value}前验证身份`
2107
2113
  }, {
@@ -2109,32 +2115,32 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2109
2115
  key: 0,
2110
2116
  size: a.size,
2111
2117
  type: "primary",
2112
- onClick: C[2] || (C[2] = (te) => D("email"))
2118
+ onClick: E[2] || (E[2] = (te) => D("email"))
2113
2119
  }, {
2114
- default: o(() => [...C[4] || (C[4] = [k(" 邮箱验证 ", -1)])]),
2120
+ default: o(() => [...E[4] || (E[4] = [k(" 邮箱验证 ", -1)])]),
2115
2121
  _: 1
2116
- }, 8, ["size"])) : E("", !0), j.value ? (h(), I(n(T), {
2122
+ }, 8, ["size"])) : C("", !0), j.value ? (h(), I(n(T), {
2117
2123
  key: 1,
2118
2124
  size: a.size,
2119
2125
  type: "primary",
2120
- onClick: C[3] || (C[3] = (te) => D("phone"))
2126
+ onClick: E[3] || (E[3] = (te) => D("phone"))
2121
2127
  }, {
2122
- default: o(() => [...C[5] || (C[5] = [k(" 手机验证 ", -1)])]),
2128
+ default: o(() => [...E[5] || (E[5] = [k(" 手机验证 ", -1)])]),
2123
2129
  _: 1
2124
- }, 8, ["size"])) : E("", !0)])]),
2125
- default: o(() => [C[6] || (C[6] = k(" 请选择一种已绑定的验证方式。 ", -1))]),
2130
+ }, 8, ["size"])) : C("", !0)])]),
2131
+ default: o(() => [E[6] || (E[6] = k(" 请选择一种已绑定的验证方式。 ", -1))]),
2126
2132
  _: 1
2127
- }, 8, ["title"])) : E("", !0), _.value ? (h(), I(ge, {
2133
+ }, 8, ["title"])) : C("", !0), _.value ? (h(), I(ge, {
2128
2134
  key: 3,
2129
2135
  size: a.size,
2130
2136
  email: (H = n(l)) == null ? void 0 : H.email,
2131
2137
  onNext: x
2132
- }, null, 8, ["size", "email"])) : E("", !0), P.value ? (h(), I(we, {
2138
+ }, null, 8, ["size", "email"])) : C("", !0), P.value ? (h(), I(we, {
2133
2139
  key: 4,
2134
2140
  size: a.size,
2135
2141
  phone: ((oe = n(l)) == null ? void 0 : oe.phone) || "",
2136
2142
  onNext: x
2137
- }, null, 8, ["size", "phone"])) : E("", !0)], 64);
2143
+ }, null, 8, ["size", "phone"])) : C("", !0)], 64);
2138
2144
  };
2139
2145
  }
2140
2146
  }), Di = /* @__PURE__ */ X(Ni, [["__scopeId", "data-v-6b13b949"]]), Bi = {
@@ -2169,8 +2175,8 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2169
2175
  } = nt(), t = A("check"), y = A(!1), g = A([]), f = A(!1), v = A(""), r = A(0);
2170
2176
  let m = null;
2171
2177
  const S = A("email"), R = $(() => {
2172
- var C;
2173
- const x = ((C = s.value) == null ? void 0 : C.email) || "";
2178
+ var E;
2179
+ const x = ((E = s.value) == null ? void 0 : E.email) || "";
2174
2180
  if (!x) return "";
2175
2181
  const [b, c] = x.split("@");
2176
2182
  return b.length <= 2 ? x : `${b.slice(0, 2)}***@${c}`;
@@ -2203,7 +2209,7 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2203
2209
  S.value = x, t.value = "sendCode";
2204
2210
  }
2205
2211
  async function F() {
2206
- var c, C;
2212
+ var c, E;
2207
2213
  if (S.value === "email") {
2208
2214
  if (!((c = s.value) != null && c.email)) {
2209
2215
  G.error("请先绑定邮箱");
@@ -2219,7 +2225,7 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2219
2225
  H.data && (v.value = H.data.emailVerifyId, G.success("验证码已发送"), t.value = "confirm"), D(oe);
2220
2226
  return;
2221
2227
  }
2222
- if (!((C = s.value) != null && C.phone)) {
2228
+ if (!((E = s.value) != null && E.phone)) {
2223
2229
  G.error("请先绑定手机号");
2224
2230
  return;
2225
2231
  }
@@ -2241,8 +2247,8 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2241
2247
  m && (clearInterval(m), m = null);
2242
2248
  });
2243
2249
  async function Z() {
2244
- var C, H;
2245
- if (await ((C = V.value) == null ? void 0 : C.validate())) return;
2250
+ var E, H;
2251
+ if (await ((E = V.value) == null ? void 0 : E.validate())) return;
2246
2252
  q.value = !0;
2247
2253
  const b = S.value === "email" ? {
2248
2254
  method: "email",
@@ -2305,7 +2311,7 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2305
2311
  }, {
2306
2312
  action: o(() => [p(n(me), null, {
2307
2313
  default: o(() => {
2308
- var c, C;
2314
+ var c, E;
2309
2315
  return [p(n(T), {
2310
2316
  size: a.size,
2311
2317
  onClick: b[1] || (b[1] = (H) => t.value = "check")
@@ -2320,7 +2326,7 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2320
2326
  }, {
2321
2327
  default: o(() => [...b[14] || (b[14] = [k(" 邮箱验证 ", -1)])]),
2322
2328
  _: 1
2323
- }, 8, ["size"])) : E("", !0), (C = n(s)) != null && C.phone ? (h(), I(n(T), {
2329
+ }, 8, ["size"])) : C("", !0), (E = n(s)) != null && E.phone ? (h(), I(n(T), {
2324
2330
  key: 1,
2325
2331
  size: a.size,
2326
2332
  type: "primary",
@@ -2328,7 +2334,7 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2328
2334
  }, {
2329
2335
  default: o(() => [...b[15] || (b[15] = [k(" 手机验证 ", -1)])]),
2330
2336
  _: 1
2331
- }, 8, ["size"])) : E("", !0)];
2337
+ }, 8, ["size"])) : C("", !0)];
2332
2338
  }),
2333
2339
  _: 1
2334
2340
  })]),
@@ -2388,7 +2394,7 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2388
2394
  }, {
2389
2395
  default: o(() => [z("div", Ki, [p(n(Q), {
2390
2396
  modelValue: w.value.userToken,
2391
- "onUpdate:modelValue": b[5] || (b[5] = (C) => w.value.userToken = C),
2397
+ "onUpdate:modelValue": b[5] || (b[5] = (E) => w.value.userToken = E),
2392
2398
  placeholder: "请输入6位验证码",
2393
2399
  "max-length": 6,
2394
2400
  "allow-clear": ""
@@ -2412,7 +2418,7 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2412
2418
  }, {
2413
2419
  default: o(() => [z("div", Fi, [p(n(Q), {
2414
2420
  modelValue: w.value.code,
2415
- "onUpdate:modelValue": b[6] || (b[6] = (C) => w.value.code = C),
2421
+ "onUpdate:modelValue": b[6] || (b[6] = (E) => w.value.code = E),
2416
2422
  placeholder: "请输入验证码",
2417
2423
  "allow-clear": ""
2418
2424
  }, null, 8, ["modelValue"]), p(n(T), {
@@ -2435,12 +2441,12 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2435
2441
  }, {
2436
2442
  default: o(() => [p(n(We), {
2437
2443
  modelValue: w.value.password,
2438
- "onUpdate:modelValue": b[7] || (b[7] = (C) => w.value.password = C),
2444
+ "onUpdate:modelValue": b[7] || (b[7] = (E) => w.value.password = E),
2439
2445
  placeholder: "请输入您的登录密码",
2440
2446
  "allow-clear": ""
2441
2447
  }, null, 8, ["modelValue"])]),
2442
2448
  _: 1
2443
- })) : E("", !0), p(n(L), {
2449
+ })) : C("", !0), p(n(L), {
2444
2450
  field: "confirmText",
2445
2451
  label: "请输入「注销」以确认",
2446
2452
  rules: [{
@@ -2452,7 +2458,7 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2452
2458
  }, {
2453
2459
  default: o(() => [p(n(Q), {
2454
2460
  modelValue: w.value.confirmText,
2455
- "onUpdate:modelValue": b[8] || (b[8] = (C) => w.value.confirmText = C),
2461
+ "onUpdate:modelValue": b[8] || (b[8] = (E) => w.value.confirmText = E),
2456
2462
  placeholder: "注销",
2457
2463
  "allow-clear": ""
2458
2464
  }, null, 8, ["modelValue"])]),
@@ -2460,7 +2466,7 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2460
2466
  }, 8, ["rules"]), p(n(L), null, {
2461
2467
  default: o(() => [p(n(me), null, {
2462
2468
  default: o(() => [p(n(T), {
2463
- onClick: b[9] || (b[9] = (C) => t.value = "check")
2469
+ onClick: b[9] || (b[9] = (E) => t.value = "check")
2464
2470
  }, {
2465
2471
  default: o(() => [...b[18] || (b[18] = [k("取消", -1)])]),
2466
2472
  _: 1
@@ -2493,7 +2499,7 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2493
2499
  _: 1
2494
2500
  })]),
2495
2501
  _: 1
2496
- })) : E("", !0);
2502
+ })) : C("", !0);
2497
2503
  }
2498
2504
  }), Wi = /* @__PURE__ */ X(Hi, [["__scopeId", "data-v-90439767"]]), Gi = {
2499
2505
  class: "content"
@@ -2580,7 +2586,7 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2580
2586
  name: "Passkey",
2581
2587
  path: "PasskeyBinding",
2582
2588
  meta: {
2583
- icon: Ei
2589
+ icon: Ci
2584
2590
  }
2585
2591
  }), _.push({
2586
2592
  name: "注销账号",
@@ -2653,30 +2659,30 @@ const zi = ["src", "alt", "width", "height"], Pi = /* @__PURE__ */ J({
2653
2659
  }, null, 8, ["selected-keys", "menus"])]), z("div", Ji, [t.value[0] === "PersonalInformation" ? (h(), I(bt, {
2654
2660
  key: 0,
2655
2661
  size: u.value
2656
- }, null, 8, ["size"])) : E("", !0), t.value[0] === "EmailBinding" ? (h(), I(ni, {
2662
+ }, null, 8, ["size"])) : C("", !0), t.value[0] === "EmailBinding" ? (h(), I(ni, {
2657
2663
  key: 1,
2658
2664
  size: u.value
2659
- }, null, 8, ["size"])) : E("", !0), t.value[0] === "PhoneBinding" ? (h(), I(mi, {
2665
+ }, null, 8, ["size"])) : C("", !0), t.value[0] === "PhoneBinding" ? (h(), I(mi, {
2660
2666
  key: 2,
2661
2667
  size: u.value
2662
- }, null, 8, ["size"])) : E("", !0), t.value[0] === "SetPassword" ? (h(), I($t, {
2668
+ }, null, 8, ["size"])) : C("", !0), t.value[0] === "SetPassword" ? (h(), I($t, {
2663
2669
  key: 3,
2664
2670
  size: u.value
2665
- }, null, 8, ["size"])) : E("", !0), t.value[0] === "PasskeyBinding" ? (h(), I(Jt, {
2671
+ }, null, 8, ["size"])) : C("", !0), t.value[0] === "PasskeyBinding" ? (h(), I(Jt, {
2666
2672
  key: 4,
2667
2673
  size: u.value
2668
- }, null, 8, ["size"])) : E("", !0), K.value ? (h(), I(Di, {
2674
+ }, null, 8, ["size"])) : C("", !0), K.value ? (h(), I(Di, {
2669
2675
  key: K.value.provider,
2670
2676
  provider: K.value.provider,
2671
2677
  label: K.value.name,
2672
2678
  size: u.value
2673
- }, null, 8, ["provider", "label", "size"])) : E("", !0), t.value[0] === "AccountDelete" ? (h(), I(Wi, {
2679
+ }, null, 8, ["provider", "label", "size"])) : C("", !0), t.value[0] === "AccountDelete" ? (h(), I(Wi, {
2674
2680
  key: 6,
2675
2681
  size: u.value,
2676
2682
  onDeleted: d
2677
- }, null, 8, ["size"])) : E("", !0)])])]),
2683
+ }, null, 8, ["size"])) : C("", !0)])])]),
2678
2684
  _: 1
2679
- }, 8, ["width"])) : E("", !0);
2685
+ }, 8, ["width"])) : C("", !0);
2680
2686
  }
2681
2687
  }), An = /* @__PURE__ */ X(ji, [["__scopeId", "data-v-ff81539f"]]);
2682
2688
  export {
@@ -2700,8 +2706,8 @@ export {
2700
2706
  Ii as l,
2701
2707
  kn as m,
2702
2708
  re as n,
2703
- Ci as o,
2704
- Ei as p,
2709
+ Ei as o,
2710
+ Ci as p,
2705
2711
  ye as q,
2706
2712
  vi as r,
2707
2713
  hi as s,
@@ -15,7 +15,7 @@ import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
15
  import { r as ht, m as Be, a as wt, M as Ct } from "./MessageList-BK4u5DCH.js";
16
16
  import { f as se } from "./index-D56hUMeD.js";
17
17
  import { Bubble as Le, Sender as St } from "ant-design-x-vue";
18
- import { u as Ut } from "./useAuthkitUsersProfile-DyjCmUka.js";
18
+ import { u as Ut } from "./useAuthkitUsersProfile-DSd5VA3_.js";
19
19
  import { u as xt } from "./useUserMenu-ClPBlvaM.js";
20
20
  /* empty css */
21
21
  import { Icon as $t } from "@iconify/vue";