@huyooo/ui 0.11.5 → 0.11.7

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 (47) hide show
  1. package/dist/{AuthkitAppSetting-CSHkDxQT.js → AuthkitAppSetting-DrX6fwKt.js} +11 -10
  2. package/dist/{useEnsureAuthenticated-Cc64hF1O.js → AuthkitGithubBinding-r2oVuCSV.js} +631 -680
  3. package/dist/{Clipboard-CRZDADLE.js → Clipboard-ChMNfcO5.js} +1 -1
  4. package/dist/{Contact-Y0Yczmc9.js → Contact-Yqmjh47e.js} +2 -2
  5. package/dist/{FeedbackItem-D7MpOmoM.js → FeedbackItem-DHp_C0pN.js} +3 -3
  6. package/dist/{FeedbackModal-CvNF1D-5.js → FeedbackModal-Dzl0Alp7.js} +3 -3
  7. package/dist/{MessageHandle-B12koVQL.js → MessageHandle-BcRjYeVi.js} +2 -2
  8. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DxDn6Ok8.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BOtgTje-.js} +2 -2
  9. package/dist/{PaySubscriptions-B8jAtG5n.js → PaySubscriptions-BsU0XmXf.js} +2 -2
  10. package/dist/PricingPlans-Cf20-GqK.js +251 -0
  11. package/dist/{ReferrerReferees-D_Iiw9wZ.js → ReferrerReferees-B-ISyXHw.js} +4 -4
  12. package/dist/{Upload.vue_vue_type_script_setup_true_lang-CbVSY_vt.js → Upload.vue_vue_type_script_setup_true_lang-CDWyo3RL.js} +1 -1
  13. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-DpVadjMH.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-Czix4_tj.js} +8 -8
  14. package/dist/{WidthContainer-B6d4xrGT.js → WidthContainer-CYYbzXj0.js} +20 -19
  15. package/dist/{apiClients-DVz12LeW.js → apiClients-KFp-rs-C.js} +19 -19
  16. package/dist/authkit.js +31 -29
  17. package/dist/common/globalConfig.d.ts +2 -0
  18. package/dist/common.js +1 -1
  19. package/dist/composables/Billing/useBillingPlans.d.ts +29 -1
  20. package/dist/composables.js +41 -40
  21. package/dist/feedback.js +3 -3
  22. package/dist/main.d.ts +1 -0
  23. package/dist/main.js +674 -642
  24. package/dist/message.js +3 -3
  25. package/dist/pay.js +3 -3
  26. package/dist/privateCom.js +1 -1
  27. package/dist/referrer.js +1 -1
  28. package/dist/style.css +1 -1
  29. package/dist/upload.js +2 -2
  30. package/dist/{useAuthkitAppsAuthPageInfo-Du5d6VK-.js → useAuthkitAppsAuthPageInfo-B9_VzVkQ.js} +1 -1
  31. package/dist/useAuthkitAuth-Doj5VYjK.js +170 -0
  32. package/dist/{useAuthkitCreateAndUpdate-Bc9D5C6R.js → useAuthkitCreateAndUpdate-DomftQMK.js} +1 -1
  33. package/dist/useAuthkitUsersProfile-FJnHJad-.js +36 -0
  34. package/dist/{useDownloads-BFx1a-f9.js → useDownloads-CzC3gLUV.js} +1 -1
  35. package/dist/useEnsureAuthenticated-D78tsddF.js +56 -0
  36. package/dist/{useLegalLinks-Deksq9h-.js → useLegalLinks-OGVbqXVy.js} +2 -2
  37. package/dist/{useMessageNotifications-DY5xKtif.js → useMessageNotifications-DeHFJFcX.js} +1 -1
  38. package/dist/{useSEO-CvfzTZA9.js → useSEO-BZhVKEZr.js} +2 -2
  39. package/dist/useSubscriptionCheckout-BubIsxjO.js +386 -0
  40. package/dist/{useTableHandle-D71P3Ez_.js → useTableHandle-jw0P7-2a.js} +1 -1
  41. package/dist/{useUploadCos-N5pim6q1.js → useUploadCos-keDKcs0j.js} +1 -1
  42. package/dist/user.js +1 -1
  43. package/dist/utils/legacyApi.d.ts +18 -0
  44. package/package.json +1 -1
  45. package/dist/PricingPlans-CO26OcbJ.js +0 -210
  46. package/dist/useAuthkitUsersProfile-CQGyvL7g.js +0 -201
  47. package/dist/useSubscriptionCheckout-BgQJN61l.js +0 -345
@@ -1,22 +1,23 @@
1
- import { defineComponent as z, openBlock as c, createElementBlock as b, normalizeClass as he, createVNode as s, unref as t, computed as C, createElementVNode as y, createCommentVNode as I, createBlock as k, ref as S, withCtx as m, createTextVNode as $, watchEffect as te, Fragment as D, renderList as ie, toDisplayString as O, useSlots as ce, renderSlot as N, normalizeStyle as Q, onMounted as j, onUnmounted as oe } from "vue";
1
+ import { defineComponent as z, openBlock as c, createElementBlock as b, normalizeClass as me, createVNode as s, unref as t, computed as C, createElementVNode as y, createCommentVNode as I, createBlock as k, ref as S, withCtx as f, createTextVNode as $, watchEffect as ee, Fragment as G, renderList as te, toDisplayString as O, useSlots as re, renderSlot as N, normalizeStyle as Q, onMounted as j, onUnmounted as ie } from "vue";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import "./index-D3Kp6R4z.js";
5
- import { Form as M, FormItem as A, Input as V, Button as B, Link as E, Tabs as se, TabPane as ne, Divider as ae, Modal as ye, Message as ee, List as we, ListItem as X, ListItemMeta as Z, Avatar as H, Alert as re } from "@arco-design/web-vue";
6
- import { u as x, a as J } from "./useAuthkitUsersProfile-CQGyvL7g.js";
7
- import { e as T, u as pe, s as _e, g as be } from "./apiClients-DVz12LeW.js";
8
- import { u as F } from "./useAuthkitAppsAuthPageInfo-Du5d6VK-.js";
9
- import { u as fe, S as G, a as Se, b as ke } from "./AuthkitAppSetting-CSHkDxQT.js";
10
- import { Icon as me } from "@iconify/vue";
5
+ import { Form as L, FormItem as A, Input as V, Button as B, Link as F, Tabs as oe, TabPane as se, Divider as ae, Modal as fe, Message as Z, List as ve, ListItem as X, ListItemMeta as Y, Avatar as E, Alert as le } from "@arco-design/web-vue";
6
+ import { u as H } from "./useAuthkitAuth-Doj5VYjK.js";
7
+ import { e as T, u as ge, s as he, g as ye } from "./apiClients-KFp-rs-C.js";
8
+ import { u as M } from "./useAuthkitAppsAuthPageInfo-B9_VzVkQ.js";
9
+ import { u as ue, S as D, a as we, b as _e } from "./AuthkitAppSetting-DrX6fwKt.js";
10
+ import { Icon as de } from "@iconify/vue";
11
11
  import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  /* empty css */
15
- import { u as Ie } from "./useLegalLinks-Deksq9h-.js";
15
+ import { u as be } from "./useLegalLinks-OGVbqXVy.js";
16
+ import { u as J } from "./useAuthkitUsersProfile-FJnHJad-.js";
16
17
  /* empty css */
17
18
  /* empty css */
18
19
  /* empty css */
19
- const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
20
+ const Se = ["title", "aria-label"], ke = /* @__PURE__ */ z({
20
21
  __name: "AuthkitOauthItem",
21
22
  props: {
22
23
  size: {
@@ -35,26 +36,26 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
35
36
  }
36
37
  },
37
38
  setup(g) {
38
- const r = g;
39
- return (n, i) => (c(), b("button", {
40
- class: he(["OAuthItem", {
41
- "OAuthItem--wechat": r.label === "微信"
39
+ const u = g;
40
+ return (a, o) => (c(), b("button", {
41
+ class: me(["OAuthItem", {
42
+ "OAuthItem--wechat": u.label === "微信"
42
43
  }]),
43
44
  type: "button",
44
- title: r.label,
45
- "aria-label": r.label
46
- }, [s(t(me), {
47
- icon: r.icon
48
- }, null, 8, ["icon"])], 10, ze));
45
+ title: u.label,
46
+ "aria-label": u.label
47
+ }, [s(t(de), {
48
+ icon: u.icon
49
+ }, null, 8, ["icon"])], 10, Se));
49
50
  }
50
- }), W = /* @__PURE__ */ P(Pe, [["__scopeId", "data-v-61ace547"]]), Ae = {
51
+ }), W = /* @__PURE__ */ P(ke, [["__scopeId", "data-v-61ace547"]]), Ie = {
51
52
  class: "OAuthList"
52
- }, Ve = {
53
+ }, ze = {
53
54
  key: 0,
54
55
  class: "OAuthDivider"
55
- }, Ue = {
56
+ }, Pe = {
56
57
  class: "OAuthIcons"
57
- }, $e = /* @__PURE__ */ z({
58
+ }, Ae = /* @__PURE__ */ z({
58
59
  __name: "AuthkitOauthList",
59
60
  props: {
60
61
  size: {
@@ -68,46 +69,46 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
68
69
  },
69
70
  setup(g) {
70
71
  const {
71
- appsData: r
72
- } = F(), n = g, {
73
- githubAuth: i,
72
+ appsData: u
73
+ } = M(), a = g, {
74
+ githubAuth: o,
74
75
  googleAuth: v,
75
76
  microsoftAuth: l,
76
- wechatAuth: u
77
- } = fe(), e = C(() => !(!r.value.oauth.google.enabled && !r.value.oauth.microsoft.enabled && !r.value.oauth.github.enabled && !r.value.oauth.wechat.enabled));
78
- return (h, o) => (c(), b("div", Ae, [e.value ? (c(), b("div", Ve, [...o[4] || (o[4] = [y("span", null, "其他登录方式", -1)])])) : I("", !0), y("div", Ue, [t(r).oauth.google.enabled ? (c(), k(W, {
77
+ wechatAuth: r
78
+ } = ue(), e = C(() => !(!u.value.oauth.google.enabled && !u.value.oauth.microsoft.enabled && !u.value.oauth.github.enabled && !u.value.oauth.wechat.enabled));
79
+ return (h, i) => (c(), b("div", Ie, [e.value ? (c(), b("div", ze, [...i[4] || (i[4] = [y("span", null, "其他登录方式", -1)])])) : I("", !0), y("div", Pe, [t(u).oauth.google.enabled ? (c(), k(W, {
79
80
  key: 0,
80
81
  icon: "logos:google-icon",
81
82
  label: "Google",
82
- size: n.size,
83
- onClick: o[0] || (o[0] = (d) => t(v)())
84
- }, null, 8, ["size"])) : I("", !0), t(r).oauth.github.enabled ? (c(), k(W, {
83
+ size: a.size,
84
+ onClick: i[0] || (i[0] = (d) => t(v)())
85
+ }, null, 8, ["size"])) : I("", !0), t(u).oauth.github.enabled ? (c(), k(W, {
85
86
  key: 1,
86
87
  icon: "logos:github-icon",
87
88
  label: "Github",
88
- size: n.size,
89
- onClick: o[1] || (o[1] = (d) => t(i)())
90
- }, null, 8, ["size"])) : I("", !0), t(r).oauth.microsoft.enabled ? (c(), k(W, {
89
+ size: a.size,
90
+ onClick: i[1] || (i[1] = (d) => t(o)())
91
+ }, null, 8, ["size"])) : I("", !0), t(u).oauth.microsoft.enabled ? (c(), k(W, {
91
92
  key: 2,
92
93
  icon: "logos:microsoft-icon",
93
94
  label: "Microsoft",
94
- size: n.size,
95
- onClick: o[2] || (o[2] = (d) => t(l)())
96
- }, null, 8, ["size"])) : I("", !0), t(r).oauth.wechat.enabled ? (c(), k(W, {
95
+ size: a.size,
96
+ onClick: i[2] || (i[2] = (d) => t(l)())
97
+ }, null, 8, ["size"])) : I("", !0), t(u).oauth.wechat.enabled ? (c(), k(W, {
97
98
  key: 3,
98
99
  icon: "ri:wechat-fill",
99
100
  label: "微信",
100
- size: n.size,
101
- onClick: o[3] || (o[3] = (d) => t(u)())
101
+ size: a.size,
102
+ onClick: i[3] || (i[3] = (d) => t(r)())
102
103
  }, null, 8, ["size"])) : I("", !0)])]));
103
104
  }
104
- }), Ce = /* @__PURE__ */ P($e, [["__scopeId", "data-v-4ff27a11"]]), Re = {
105
+ }), Ve = /* @__PURE__ */ P(Ae, [["__scopeId", "data-v-4ff27a11"]]), Ue = {
105
106
  class: "content"
106
- }, qe = {
107
+ }, $e = {
107
108
  class: "sendVerifyCodeItem"
108
- }, Be = {
109
+ }, Ce = {
109
110
  class: "handle"
110
- }, Te = /* @__PURE__ */ z({
111
+ }, Re = /* @__PURE__ */ z({
111
112
  __name: "AuthkitPasswordUpdateAndVerify",
112
113
  props: {
113
114
  size: {
@@ -122,9 +123,9 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
122
123
  },
123
124
  emits: ["signIn", "submit"],
124
125
  setup(g, {
125
- emit: r
126
+ emit: u
126
127
  }) {
127
- const n = r, i = g, v = S(), l = S(!1), u = S(), e = S({
128
+ const a = u, o = g, v = S(), l = S(!1), r = S(), e = S({
128
129
  email: void 0,
129
130
  userToken: void 0,
130
131
  emailVerifyId: void 0,
@@ -132,30 +133,30 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
132
133
  confirmPassword: void 0
133
134
  });
134
135
  async function h() {
135
- if (!await u.value.validateField(["email"])) {
136
+ if (!await r.value.validateField(["email"])) {
136
137
  l.value = !0;
137
138
  const {
138
- data: f
139
+ data: m
139
140
  } = await T.verify.email.retry.post({
140
141
  email: e.value.email,
141
142
  purpose: "resetPassword"
142
143
  });
143
- l.value = !1, f && (e.value.emailVerifyId = f.emailVerifyId, v.value.startCountFn());
144
+ l.value = !1, m && (e.value.emailVerifyId = m.emailVerifyId, v.value.startCountFn());
144
145
  }
145
146
  }
146
- async function o() {
147
- u.value.validate().then((d) => {
148
- d || n("submit", e.value);
147
+ async function i() {
148
+ r.value.validate().then((d) => {
149
+ d || a("submit", e.value);
149
150
  });
150
151
  }
151
- return (d, f) => (c(), b("div", Re, [s(t(M), {
152
+ return (d, m) => (c(), b("div", Ue, [s(t(L), {
152
153
  ref_key: "formRef",
153
- ref: u,
154
+ ref: r,
154
155
  model: e.value,
155
- size: i.size,
156
+ size: o.size,
156
157
  "auto-label-width": ""
157
158
  }, {
158
- default: m(() => [s(t(A), {
159
+ default: f(() => [s(t(A), {
159
160
  field: "email",
160
161
  label: "邮箱",
161
162
  "hide-label": "",
@@ -167,9 +168,9 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
167
168
  message: "请输入有效的邮箱"
168
169
  }]
169
170
  }, {
170
- default: m(() => [s(t(V), {
171
+ default: f(() => [s(t(V), {
171
172
  modelValue: e.value.email,
172
- "onUpdate:modelValue": f[0] || (f[0] = (a) => e.value.email = a),
173
+ "onUpdate:modelValue": m[0] || (m[0] = (n) => e.value.email = n),
173
174
  placeholder: "请输入邮箱"
174
175
  }, null, 8, ["modelValue"])]),
175
176
  _: 1
@@ -182,14 +183,14 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
182
183
  message: "请输入验证码"
183
184
  }]
184
185
  }, {
185
- default: m(() => [y("div", qe, [s(t(V), {
186
+ default: f(() => [y("div", $e, [s(t(V), {
186
187
  modelValue: e.value.userToken,
187
- "onUpdate:modelValue": f[1] || (f[1] = (a) => e.value.userToken = a),
188
+ "onUpdate:modelValue": m[1] || (m[1] = (n) => e.value.userToken = n),
188
189
  placeholder: "请输入验证码"
189
- }, null, 8, ["modelValue"]), s(G, {
190
+ }, null, 8, ["modelValue"]), s(D, {
190
191
  ref_key: "SendVerifyCodeRef",
191
192
  ref: v,
192
- size: i.size,
193
+ size: o.size,
193
194
  loading: l.value,
194
195
  style: {
195
196
  "margin-left": "10px"
@@ -209,9 +210,9 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
209
210
  message: "密码不能少于10字符"
210
211
  }]
211
212
  }, {
212
- default: m(() => [s(t(V), {
213
+ default: f(() => [s(t(V), {
213
214
  modelValue: e.value.password,
214
- "onUpdate:modelValue": f[2] || (f[2] = (a) => e.value.password = a),
215
+ "onUpdate:modelValue": m[2] || (m[2] = (n) => e.value.password = n),
215
216
  placeholder: "请输入密码",
216
217
  type: "password",
217
218
  autocomplete: ""
@@ -228,37 +229,37 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
228
229
  minLength: 10,
229
230
  message: "确认密码不能少于10字符"
230
231
  }, {
231
- validator: (a, p) => {
232
- a !== e.value.password ? p("两次密码输入不一致,请重新输入") : p();
232
+ validator: (n, p) => {
233
+ n !== e.value.password ? p("两次密码输入不一致,请重新输入") : p();
233
234
  }
234
235
  }]
235
236
  }, {
236
- default: m(() => [s(t(V), {
237
+ default: f(() => [s(t(V), {
237
238
  modelValue: e.value.confirmPassword,
238
- "onUpdate:modelValue": f[3] || (f[3] = (a) => e.value.confirmPassword = a),
239
+ "onUpdate:modelValue": m[3] || (m[3] = (n) => e.value.confirmPassword = n),
239
240
  placeholder: "请输入确认密码密码",
240
241
  type: "password",
241
242
  autocomplete: ""
242
243
  }, null, 8, ["modelValue"])]),
243
244
  _: 1
244
- }, 8, ["rules"]), y("div", Be, [s(t(B), {
245
+ }, 8, ["rules"]), y("div", Ce, [s(t(B), {
245
246
  type: "primary",
246
- loading: i.loading,
247
+ loading: o.loading,
247
248
  long: "",
248
- size: i.size,
249
- onClick: o
249
+ size: o.size,
250
+ onClick: i
250
251
  }, {
251
- default: m(() => [...f[4] || (f[4] = [$(" 提交 ", -1)])]),
252
+ default: f(() => [...m[4] || (m[4] = [$(" 提交 ", -1)])]),
252
253
  _: 1
253
254
  }, 8, ["loading", "size"])])]),
254
255
  _: 1
255
256
  }, 8, ["model", "size"])]));
256
257
  }
257
- }), Oe = /* @__PURE__ */ P(Te, [["__scopeId", "data-v-6748c8cb"]]), xe = {
258
+ }), qe = /* @__PURE__ */ P(Re, [["__scopeId", "data-v-6748c8cb"]]), Be = {
258
259
  class: "content"
259
- }, Le = {
260
+ }, Te = {
260
261
  class: "sendVerifyCodeItem"
261
- }, Me = /* @__PURE__ */ z({
262
+ }, Oe = /* @__PURE__ */ z({
262
263
  __name: "AuthkitPhonePasswordUpdateAndVerify",
263
264
  props: {
264
265
  size: {
@@ -273,9 +274,9 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
273
274
  },
274
275
  emits: ["submit"],
275
276
  setup(g, {
276
- emit: r
277
+ emit: u
277
278
  }) {
278
- const n = r, i = g, v = S(), l = S(!1), u = S(), e = S({
279
+ const a = u, o = g, v = S(), l = S(!1), r = S(), e = S({
279
280
  phone: void 0,
280
281
  code: void 0,
281
282
  password: void 0,
@@ -287,29 +288,29 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
287
288
  minLength: 10,
288
289
  message: "确认密码不能少于10字符"
289
290
  }, {
290
- validator: (f, a) => {
291
- if (f !== e.value.password) {
292
- a("两次密码输入不一致,请重新输入");
291
+ validator: (m, n) => {
292
+ if (m !== e.value.password) {
293
+ n("两次密码输入不一致,请重新输入");
293
294
  return;
294
295
  }
295
- a();
296
+ n();
296
297
  }
297
298
  }];
298
- async function o() {
299
- if (!await u.value.validateField(["phone"])) {
299
+ async function i() {
300
+ if (!await r.value.validateField(["phone"])) {
300
301
  l.value = !0;
301
302
  const {
302
- error: a
303
+ error: n
303
304
  } = await T.verify.sms.send.post({
304
305
  phone: e.value.phone,
305
306
  purpose: "resetPassword"
306
307
  });
307
- l.value = !1, a || v.value.startCountFn();
308
+ l.value = !1, n || v.value.startCountFn();
308
309
  }
309
310
  }
310
311
  async function d() {
311
- u.value.validate().then((f) => {
312
- f || n("submit", {
312
+ r.value.validate().then((m) => {
313
+ m || a("submit", {
313
314
  method: "phone",
314
315
  phone: e.value.phone,
315
316
  code: e.value.code,
@@ -317,14 +318,14 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
317
318
  });
318
319
  });
319
320
  }
320
- return (f, a) => (c(), b("div", xe, [s(t(M), {
321
+ return (m, n) => (c(), b("div", Be, [s(t(L), {
321
322
  ref_key: "formRef",
322
- ref: u,
323
+ ref: r,
323
324
  model: e.value,
324
- size: i.size,
325
+ size: o.size,
325
326
  "auto-label-width": ""
326
327
  }, {
327
- default: m(() => [s(t(A), {
328
+ default: f(() => [s(t(A), {
328
329
  field: "phone",
329
330
  label: "手机号",
330
331
  "hide-label": "",
@@ -336,9 +337,9 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
336
337
  message: "请输入有效的手机号"
337
338
  }]
338
339
  }, {
339
- default: m(() => [s(t(V), {
340
+ default: f(() => [s(t(V), {
340
341
  modelValue: e.value.phone,
341
- "onUpdate:modelValue": a[0] || (a[0] = (p) => e.value.phone = p),
342
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => e.value.phone = p),
342
343
  placeholder: "请输入手机号",
343
344
  autocomplete: "tel",
344
345
  type: "tel"
@@ -353,20 +354,20 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
353
354
  message: "请输入验证码"
354
355
  }]
355
356
  }, {
356
- default: m(() => [y("div", Le, [s(t(V), {
357
+ default: f(() => [y("div", Te, [s(t(V), {
357
358
  modelValue: e.value.code,
358
- "onUpdate:modelValue": a[1] || (a[1] = (p) => e.value.code = p),
359
+ "onUpdate:modelValue": n[1] || (n[1] = (p) => e.value.code = p),
359
360
  placeholder: "请输入验证码",
360
361
  autocomplete: "one-time-code"
361
- }, null, 8, ["modelValue"]), s(G, {
362
+ }, null, 8, ["modelValue"]), s(D, {
362
363
  ref_key: "SendVerifyCodeRef",
363
364
  ref: v,
364
- size: i.size,
365
+ size: o.size,
365
366
  loading: l.value,
366
367
  style: {
367
368
  "margin-left": "10px"
368
369
  },
369
- onSend: o
370
+ onSend: i
370
371
  }, null, 8, ["size", "loading"])])]),
371
372
  _: 1
372
373
  }), s(t(A), {
@@ -381,9 +382,9 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
381
382
  message: "密码不能少于10字符"
382
383
  }]
383
384
  }, {
384
- default: m(() => [s(t(V), {
385
+ default: f(() => [s(t(V), {
385
386
  modelValue: e.value.password,
386
- "onUpdate:modelValue": a[2] || (a[2] = (p) => e.value.password = p),
387
+ "onUpdate:modelValue": n[2] || (n[2] = (p) => e.value.password = p),
387
388
  placeholder: "请输入密码",
388
389
  type: "password",
389
390
  autocomplete: "new-password"
@@ -395,9 +396,9 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
395
396
  "hide-label": "",
396
397
  rules: h
397
398
  }, {
398
- default: m(() => [s(t(V), {
399
+ default: f(() => [s(t(V), {
399
400
  modelValue: e.value.confirmPassword,
400
- "onUpdate:modelValue": a[3] || (a[3] = (p) => e.value.confirmPassword = p),
401
+ "onUpdate:modelValue": n[3] || (n[3] = (p) => e.value.confirmPassword = p),
401
402
  placeholder: "请输入确认密码",
402
403
  type: "password",
403
404
  autocomplete: "new-password"
@@ -405,48 +406,48 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
405
406
  _: 1
406
407
  }), s(t(B), {
407
408
  type: "primary",
408
- loading: i.loading,
409
+ loading: o.loading,
409
410
  long: "",
410
- size: i.size,
411
+ size: o.size,
411
412
  onClick: d
412
413
  }, {
413
- default: m(() => [...a[4] || (a[4] = [$(" 提交 ", -1)])]),
414
+ default: f(() => [...n[4] || (n[4] = [$(" 提交 ", -1)])]),
414
415
  _: 1
415
416
  }, 8, ["loading", "size"])]),
416
417
  _: 1
417
418
  }, 8, ["model", "size"])]));
418
419
  }
419
- }), Fe = /* @__PURE__ */ P(Me, [["__scopeId", "data-v-717c5c0f"]]), Ee = {
420
+ }), xe = /* @__PURE__ */ P(Oe, [["__scopeId", "data-v-717c5c0f"]]), Le = {
420
421
  class: "SwitchSignIn"
421
- }, Ge = /* @__PURE__ */ z({
422
+ }, Me = /* @__PURE__ */ z({
422
423
  __name: "AuthkitSwitchSignIn",
423
424
  emits: ["switchSignIn"],
424
425
  setup(g, {
425
- emit: r
426
+ emit: u
426
427
  }) {
427
- const n = r;
428
- function i() {
429
- n("switchSignIn");
428
+ const a = u;
429
+ function o() {
430
+ a("switchSignIn");
430
431
  }
431
- return (v, l) => (c(), b("div", Ee, [y("span", null, [l[1] || (l[1] = y("span", null, "已经有账号?", -1)), s(t(E), {
432
+ return (v, l) => (c(), b("div", Le, [y("span", null, [l[1] || (l[1] = y("span", null, "已经有账号?", -1)), s(t(F), {
432
433
  style: {
433
434
  padding: "0px"
434
435
  },
435
- onClick: i
436
+ onClick: o
436
437
  }, {
437
- default: m(() => [...l[0] || (l[0] = [$("去登陆", -1)])]),
438
+ default: f(() => [...l[0] || (l[0] = [$("去登陆", -1)])]),
438
439
  _: 1
439
440
  })])]));
440
441
  }
441
- }), le = /* @__PURE__ */ P(Ge, [["__scopeId", "data-v-fc1d3903"]]), He = {
442
+ }), ne = /* @__PURE__ */ P(Me, [["__scopeId", "data-v-fc1d3903"]]), Fe = {
442
443
  class: "ResetPassword"
443
- }, De = {
444
+ }, He = {
444
445
  key: 0,
445
446
  class: "tabsContainer"
446
- }, Ne = {
447
+ }, De = {
447
448
  key: 3,
448
449
  class: "empty"
449
- }, je = /* @__PURE__ */ z({
450
+ }, Ee = /* @__PURE__ */ z({
450
451
  __name: "AuthkitResetPassword",
451
452
  props: {
452
453
  size: {
@@ -462,11 +463,11 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
462
463
  },
463
464
  emits: ["switchSignIn", "submit"],
464
465
  setup(g, {
465
- emit: r
466
+ emit: u
466
467
  }) {
467
- const n = r, i = g, {
468
+ const a = u, o = g, {
468
469
  appsData: v
469
- } = F(), l = C(() => v.value.authMethods), u = C(() => {
470
+ } = M(), l = C(() => v.value.authMethods), r = C(() => {
470
471
  const d = [];
471
472
  return l.value.login.emailPassword && d.push({
472
473
  key: "email",
@@ -476,26 +477,26 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
476
477
  title: "手机号找回"
477
478
  }), d;
478
479
  }), e = S("email");
479
- te(() => {
480
+ ee(() => {
480
481
  var d;
481
- u.value.some((f) => f.key === e.value) || (e.value = ((d = u.value[0]) == null ? void 0 : d.key) || "email");
482
+ r.value.some((m) => m.key === e.value) || (e.value = ((d = r.value[0]) == null ? void 0 : d.key) || "email");
482
483
  });
483
484
  function h() {
484
- n("switchSignIn");
485
+ a("switchSignIn");
485
486
  }
486
- async function o(d) {
487
- n("submit", {
487
+ async function i(d) {
488
+ a("submit", {
488
489
  method: e.value,
489
490
  ...d
490
491
  });
491
492
  }
492
- return (d, f) => (c(), b("div", He, [u.value.length > 1 ? (c(), b("div", De, [s(t(se), {
493
+ return (d, m) => (c(), b("div", Fe, [r.value.length > 1 ? (c(), b("div", He, [s(t(oe), {
493
494
  "active-key": e.value,
494
- "onUpdate:activeKey": f[0] || (f[0] = (a) => e.value = a)
495
+ "onUpdate:activeKey": m[0] || (m[0] = (n) => e.value = n)
495
496
  }, {
496
- default: m(() => [(c(!0), b(D, null, ie(u.value, (a) => (c(), k(t(ne), {
497
- key: a.key,
498
- title: a.title
497
+ default: f(() => [(c(!0), b(G, null, te(r.value, (n) => (c(), k(t(se), {
498
+ key: n.key,
499
+ title: n.title
499
500
  }, null, 8, ["title"]))), 128))]),
500
501
  _: 1
501
502
  }, 8, ["active-key"]), s(t(ae), {
@@ -503,65 +504,65 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
503
504
  style: {
504
505
  margin: "0"
505
506
  }
506
- })])) : I("", !0), e.value === "email" && l.value.login.emailPassword ? (c(), k(Oe, {
507
+ })])) : I("", !0), e.value === "email" && l.value.login.emailPassword ? (c(), k(qe, {
507
508
  key: 1,
508
509
  loading: g.loading,
509
- size: i.size,
510
- onSubmit: o
511
- }, null, 8, ["loading", "size"])) : e.value === "phone" && l.value.login.phonePassword ? (c(), k(Fe, {
510
+ size: o.size,
511
+ onSubmit: i
512
+ }, null, 8, ["loading", "size"])) : e.value === "phone" && l.value.login.phonePassword ? (c(), k(xe, {
512
513
  key: 2,
513
514
  loading: g.loading,
514
- size: i.size,
515
- onSubmit: o
516
- }, null, 8, ["loading", "size"])) : (c(), b("div", Ne, "当前应用未开放找回密码")), s(le, {
515
+ size: o.size,
516
+ onSubmit: i
517
+ }, null, 8, ["loading", "size"])) : (c(), b("div", De, "当前应用未开放找回密码")), s(ne, {
517
518
  onSwitchSignIn: h
518
519
  })]));
519
520
  }
520
- }), Ke = /* @__PURE__ */ P(je, [["__scopeId", "data-v-ca18289f"]]), We = {
521
+ }), Ge = /* @__PURE__ */ P(Ee, [["__scopeId", "data-v-ca18289f"]]), Ne = {
521
522
  key: 0,
522
523
  class: "ServiceAgreementAndPrivacyProtection"
523
- }, Qe = {
524
+ }, je = {
524
525
  key: 1
525
- }, Ye = /* @__PURE__ */ z({
526
+ }, Ke = /* @__PURE__ */ z({
526
527
  __name: "AuthkitServiceAgreementAndPrivacyProtection",
527
528
  emits: ["toUserServiceAgreement", "toPrivacyPolicy"],
528
529
  setup(g, {
529
- emit: r
530
+ emit: u
530
531
  }) {
531
- const n = r, {
532
- getLink: i
533
- } = Ie(), v = C(() => {
534
- const o = i("userServiceAgreement");
535
- return o != null && o.configured ? o : void 0;
532
+ const a = u, {
533
+ getLink: o
534
+ } = be(), v = C(() => {
535
+ const i = o("userServiceAgreement");
536
+ return i != null && i.configured ? i : void 0;
536
537
  }), l = C(() => {
537
- const o = i("privacyPolicy");
538
- return o != null && o.configured ? o : void 0;
539
- }), u = C(() => !!(v.value || l.value));
538
+ const i = o("privacyPolicy");
539
+ return i != null && i.configured ? i : void 0;
540
+ }), r = C(() => !!(v.value || l.value));
540
541
  function e() {
541
- n("toUserServiceAgreement");
542
+ a("toUserServiceAgreement");
542
543
  }
543
544
  function h() {
544
- n("toPrivacyPolicy");
545
+ a("toPrivacyPolicy");
545
546
  }
546
- return (o, d) => u.value ? (c(), b("div", We, [d[0] || (d[0] = y("span", null, "注册登陆即表示同意", -1)), v.value ? (c(), k(t(E), {
547
+ return (i, d) => r.value ? (c(), b("div", Ne, [d[0] || (d[0] = y("span", null, "注册登陆即表示同意", -1)), v.value ? (c(), k(t(F), {
547
548
  key: 0,
548
549
  onClick: e
549
550
  }, {
550
- default: m(() => [$(O(v.value.label), 1)]),
551
+ default: f(() => [$(O(v.value.label), 1)]),
551
552
  _: 1
552
- })) : I("", !0), v.value && l.value ? (c(), b("span", Qe, "和")) : I("", !0), l.value ? (c(), k(t(E), {
553
+ })) : I("", !0), v.value && l.value ? (c(), b("span", je, "和")) : I("", !0), l.value ? (c(), k(t(F), {
553
554
  key: 2,
554
555
  onClick: h
555
556
  }, {
556
- default: m(() => [$(O(l.value.label), 1)]),
557
+ default: f(() => [$(O(l.value.label), 1)]),
557
558
  _: 1
558
559
  })) : I("", !0)])) : I("", !0);
559
560
  }
560
- }), Je = /* @__PURE__ */ P(Ye, [["__scopeId", "data-v-c45a9ad9"]]), Xe = {
561
+ }), We = /* @__PURE__ */ P(Ke, [["__scopeId", "data-v-c45a9ad9"]]), Qe = {
561
562
  class: "content"
562
- }, Ze = {
563
+ }, Je = {
563
564
  class: "handle"
564
- }, et = /* @__PURE__ */ z({
565
+ }, Xe = /* @__PURE__ */ z({
565
566
  __name: "AuthkitPasswordAuth",
566
567
  props: {
567
568
  size: {
@@ -580,25 +581,25 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
580
581
  },
581
582
  emits: ["submit"],
582
583
  setup(g, {
583
- emit: r
584
+ emit: u
584
585
  }) {
585
- const n = r, i = g, v = S(), l = S({
586
+ const a = u, o = g, v = S(), l = S({
586
587
  identifier: void 0,
587
588
  password: void 0
588
589
  });
589
- async function u() {
590
+ async function r() {
590
591
  v.value.validate().then((e) => {
591
- e || n("submit", l.value);
592
+ e || a("submit", l.value);
592
593
  });
593
594
  }
594
- return (e, h) => (c(), b("div", Xe, [s(t(M), {
595
+ return (e, h) => (c(), b("div", Qe, [s(t(L), {
595
596
  ref_key: "formRef",
596
597
  ref: v,
597
598
  model: l.value,
598
- size: i.size,
599
+ size: o.size,
599
600
  "auto-label-width": ""
600
601
  }, {
601
- default: m(() => [s(t(A), {
602
+ default: f(() => [s(t(A), {
602
603
  field: "identifier",
603
604
  label: "邮箱或手机号",
604
605
  "hide-label": "",
@@ -607,10 +608,10 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
607
608
  message: "请输入邮箱或手机号"
608
609
  }]
609
610
  }, {
610
- default: m(() => [s(t(V), {
611
+ default: f(() => [s(t(V), {
611
612
  modelValue: l.value.identifier,
612
- "onUpdate:modelValue": h[0] || (h[0] = (o) => l.value.identifier = o),
613
- placeholder: i.allowPhone ? "请输入邮箱或手机号" : "请输入邮箱",
613
+ "onUpdate:modelValue": h[0] || (h[0] = (i) => l.value.identifier = i),
614
+ placeholder: o.allowPhone ? "请输入邮箱或手机号" : "请输入邮箱",
614
615
  autocomplete: "email username"
615
616
  }, null, 8, ["modelValue", "placeholder"])]),
616
617
  _: 1
@@ -623,32 +624,32 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
623
624
  message: "请输入密码"
624
625
  }]
625
626
  }, {
626
- default: m(() => [s(t(V), {
627
+ default: f(() => [s(t(V), {
627
628
  modelValue: l.value.password,
628
- "onUpdate:modelValue": h[1] || (h[1] = (o) => l.value.password = o),
629
+ "onUpdate:modelValue": h[1] || (h[1] = (i) => l.value.password = i),
629
630
  placeholder: "请输入密码",
630
631
  type: "password",
631
632
  autocomplete: "current-password"
632
633
  }, null, 8, ["modelValue"])]),
633
634
  _: 1
634
- }), y("div", Ze, [s(t(B), {
635
+ }), y("div", Je, [s(t(B), {
635
636
  type: "primary",
636
- loading: i.loading,
637
+ loading: o.loading,
637
638
  long: "",
638
- size: i.size,
639
- onClick: u
639
+ size: o.size,
640
+ onClick: r
640
641
  }, {
641
- default: m(() => [...h[2] || (h[2] = [$(" 登陆 ", -1)])]),
642
+ default: f(() => [...h[2] || (h[2] = [$(" 登陆 ", -1)])]),
642
643
  _: 1
643
644
  }, 8, ["loading", "size"])])]),
644
645
  _: 1
645
646
  }, 8, ["model", "size"])]));
646
647
  }
647
- }), tt = /* @__PURE__ */ P(et, [["__scopeId", "data-v-f2994068"]]), it = {
648
+ }), Ye = /* @__PURE__ */ P(Xe, [["__scopeId", "data-v-f2994068"]]), Ze = {
648
649
  class: "SwitchSignUpOrResetPassword"
649
- }, ot = {
650
+ }, et = {
650
651
  key: 0
651
- }, st = /* @__PURE__ */ z({
652
+ }, tt = /* @__PURE__ */ z({
652
653
  __name: "AuthkitSwitchSignUpOrResetPassword",
653
654
  props: {
654
655
  showSignUp: {
@@ -658,42 +659,42 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
658
659
  },
659
660
  emits: ["switchSignUp", "switchResetPassword"],
660
661
  setup(g, {
661
- emit: r
662
+ emit: u
662
663
  }) {
663
- const n = g, i = r;
664
+ const a = g, o = u;
664
665
  function v() {
665
- i("switchSignUp");
666
+ o("switchSignUp");
666
667
  }
667
668
  function l() {
668
- i("switchResetPassword");
669
+ o("switchResetPassword");
669
670
  }
670
- return (u, e) => (c(), b("div", it, [n.showSignUp ? (c(), b("span", ot, [e[1] || (e[1] = y("span", null, " 还没有账户?", -1)), s(t(E), {
671
+ return (r, e) => (c(), b("div", Ze, [a.showSignUp ? (c(), b("span", et, [e[1] || (e[1] = y("span", null, " 还没有账户?", -1)), s(t(F), {
671
672
  style: {
672
673
  padding: "0px"
673
674
  },
674
675
  onClick: v
675
676
  }, {
676
- default: m(() => [...e[0] || (e[0] = [$("去注册?", -1)])]),
677
+ default: f(() => [...e[0] || (e[0] = [$("去注册?", -1)])]),
677
678
  _: 1
678
- })])) : I("", !0), s(t(E), {
679
+ })])) : I("", !0), s(t(F), {
679
680
  style: {
680
681
  padding: "0px"
681
682
  },
682
683
  onClick: l
683
684
  }, {
684
- default: m(() => [...e[2] || (e[2] = [$(" 忘记密码?", -1)])]),
685
+ default: f(() => [...e[2] || (e[2] = [$(" 忘记密码?", -1)])]),
685
686
  _: 1
686
687
  })]));
687
688
  }
688
- }), ve = /* @__PURE__ */ P(st, [["__scopeId", "data-v-9d5ae890"]]), nt = {
689
+ }), ce = /* @__PURE__ */ P(tt, [["__scopeId", "data-v-9d5ae890"]]), it = {
689
690
  class: "SignInPhone"
690
- }, at = {
691
+ }, ot = {
691
692
  class: "content"
692
- }, lt = {
693
+ }, st = {
693
694
  class: "sendVerifyCodeItem"
694
- }, rt = {
695
+ }, at = {
695
696
  class: "handle"
696
- }, ut = /* @__PURE__ */ z({
697
+ }, nt = /* @__PURE__ */ z({
697
698
  __name: "AuthkitSignInPhone",
698
699
  props: {
699
700
  size: {
@@ -708,47 +709,47 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
708
709
  },
709
710
  emits: ["submit", "switchSignUp", "switchResetPassword"],
710
711
  setup(g, {
711
- emit: r
712
+ emit: u
712
713
  }) {
713
- const n = r, i = g, v = ce(), l = C(() => !!v.OAuth), u = S(), e = S(!1), h = S(), o = S({
714
+ const a = u, o = g, v = re(), l = C(() => !!v.OAuth), r = S(), e = S(!1), h = S(), i = S({
714
715
  phone: void 0,
715
716
  code: void 0
716
717
  });
717
718
  function d() {
718
- n("switchSignUp");
719
+ a("switchSignUp");
719
720
  }
720
- function f() {
721
- n("switchResetPassword");
721
+ function m() {
722
+ a("switchResetPassword");
722
723
  }
723
- async function a() {
724
+ async function n() {
724
725
  if (!await h.value.validateField(["phone"])) {
725
726
  e.value = !0;
726
727
  const {
727
728
  error: w
728
729
  } = await T.verify.sms.send.post({
729
- phone: o.value.phone,
730
+ phone: i.value.phone,
730
731
  purpose: "signIn"
731
732
  });
732
- e.value = !1, w || u.value.startCountFn();
733
+ e.value = !1, w || r.value.startCountFn();
733
734
  }
734
735
  }
735
736
  async function p() {
736
737
  h.value.validate().then((_) => {
737
- _ || n("submit", {
738
- identifier: o.value.phone,
739
- code: o.value.code,
738
+ _ || a("submit", {
739
+ identifier: i.value.phone,
740
+ code: i.value.code,
740
741
  method: "code"
741
742
  });
742
743
  });
743
744
  }
744
- return (_, w) => (c(), b("div", nt, [y("div", at, [s(t(M), {
745
+ return (_, w) => (c(), b("div", it, [y("div", ot, [s(t(L), {
745
746
  ref_key: "formRef",
746
747
  ref: h,
747
- model: o.value,
748
- size: i.size,
748
+ model: i.value,
749
+ size: o.size,
749
750
  "auto-label-width": ""
750
751
  }, {
751
- default: m(() => [s(t(A), {
752
+ default: f(() => [s(t(A), {
752
753
  field: "phone",
753
754
  label: "手机号",
754
755
  "hide-label": "",
@@ -760,9 +761,9 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
760
761
  message: "请输入有效的手机号"
761
762
  }]
762
763
  }, {
763
- default: m(() => [s(t(V), {
764
- modelValue: o.value.phone,
765
- "onUpdate:modelValue": w[0] || (w[0] = (U) => o.value.phone = U),
764
+ default: f(() => [s(t(V), {
765
+ modelValue: i.value.phone,
766
+ "onUpdate:modelValue": w[0] || (w[0] = (U) => i.value.phone = U),
766
767
  placeholder: "请输入手机号",
767
768
  autocomplete: "tel",
768
769
  type: "tel"
@@ -777,45 +778,45 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
777
778
  message: "请输入验证码"
778
779
  }]
779
780
  }, {
780
- default: m(() => [y("div", lt, [s(t(V), {
781
- modelValue: o.value.code,
782
- "onUpdate:modelValue": w[1] || (w[1] = (U) => o.value.code = U),
781
+ default: f(() => [y("div", st, [s(t(V), {
782
+ modelValue: i.value.code,
783
+ "onUpdate:modelValue": w[1] || (w[1] = (U) => i.value.code = U),
783
784
  placeholder: "请输入验证码",
784
785
  autocomplete: "one-time-code"
785
- }, null, 8, ["modelValue"]), s(G, {
786
+ }, null, 8, ["modelValue"]), s(D, {
786
787
  ref_key: "SendVerifyCodeRef",
787
- ref: u,
788
- size: i.size,
788
+ ref: r,
789
+ size: o.size,
789
790
  loading: e.value,
790
791
  style: {
791
792
  "margin-left": "10px"
792
793
  },
793
- onSend: a
794
+ onSend: n
794
795
  }, null, 8, ["size", "loading"])])]),
795
796
  _: 1
796
- }), y("div", rt, [s(t(B), {
797
+ }), y("div", at, [s(t(B), {
797
798
  type: "primary",
798
- loading: i.loading,
799
+ loading: o.loading,
799
800
  long: "",
800
- size: i.size,
801
+ size: o.size,
801
802
  onClick: p
802
803
  }, {
803
- default: m(() => [...w[2] || (w[2] = [$(" 登录 ", -1)])]),
804
+ default: f(() => [...w[2] || (w[2] = [$(" 登录 ", -1)])]),
804
805
  _: 1
805
806
  }, 8, ["loading", "size"])])]),
806
807
  _: 1
807
808
  }, 8, ["model", "size"])]), l.value ? N(_.$slots, "OAuth", {
808
809
  key: 0
809
- }, void 0, !0) : I("", !0), s(ve, {
810
+ }, void 0, !0) : I("", !0), s(ce, {
810
811
  onSwitchSignUp: d,
811
- onSwitchResetPassword: f
812
+ onSwitchResetPassword: m
812
813
  })]));
813
814
  }
814
- }), dt = /* @__PURE__ */ P(ut, [["__scopeId", "data-v-723d4155"]]), ct = {
815
+ }), lt = /* @__PURE__ */ P(nt, [["__scopeId", "data-v-723d4155"]]), rt = {
815
816
  class: "SignInEmailCode"
816
- }, pt = {
817
+ }, ut = {
817
818
  class: "sendVerifyCodeItem"
818
- }, ft = /* @__PURE__ */ z({
819
+ }, dt = /* @__PURE__ */ z({
819
820
  __name: "AuthkitSignInEmailCode",
820
821
  props: {
821
822
  size: {
@@ -830,29 +831,29 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
830
831
  },
831
832
  emits: ["submit"],
832
833
  setup(g, {
833
- emit: r
834
+ emit: u
834
835
  }) {
835
- const n = r, i = g, v = S(), l = S(!1), u = S(), e = S({
836
+ const a = u, o = g, v = S(), l = S(!1), r = S(), e = S({
836
837
  email: void 0,
837
838
  code: void 0,
838
839
  emailVerifyId: ""
839
840
  });
840
841
  async function h() {
841
- if (!await u.value.validateField(["email"])) {
842
+ if (!await r.value.validateField(["email"])) {
842
843
  l.value = !0;
843
844
  const {
844
- data: f,
845
- error: a
845
+ data: m,
846
+ error: n
846
847
  } = await T.verify.email.retry.post({
847
848
  email: e.value.email,
848
849
  purpose: "signIn"
849
850
  });
850
- l.value = !1, !a && (f != null && f.emailVerifyId) && (e.value.emailVerifyId = f.emailVerifyId, v.value.startCountFn());
851
+ l.value = !1, !n && (m != null && m.emailVerifyId) && (e.value.emailVerifyId = m.emailVerifyId, v.value.startCountFn());
851
852
  }
852
853
  }
853
- async function o() {
854
- u.value.validate().then((d) => {
855
- d || n("submit", {
854
+ async function i() {
855
+ r.value.validate().then((d) => {
856
+ d || a("submit", {
856
857
  identifier: e.value.email,
857
858
  code: e.value.code,
858
859
  emailVerifyId: e.value.emailVerifyId,
@@ -860,14 +861,14 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
860
861
  });
861
862
  });
862
863
  }
863
- return (d, f) => (c(), b("div", ct, [s(t(M), {
864
+ return (d, m) => (c(), b("div", rt, [s(t(L), {
864
865
  ref_key: "formRef",
865
- ref: u,
866
+ ref: r,
866
867
  model: e.value,
867
- size: i.size,
868
+ size: o.size,
868
869
  "auto-label-width": ""
869
870
  }, {
870
- default: m(() => [s(t(A), {
871
+ default: f(() => [s(t(A), {
871
872
  field: "email",
872
873
  "hide-label": "",
873
874
  rules: [{
@@ -878,9 +879,9 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
878
879
  message: "请输入有效的邮箱"
879
880
  }]
880
881
  }, {
881
- default: m(() => [s(t(V), {
882
+ default: f(() => [s(t(V), {
882
883
  modelValue: e.value.email,
883
- "onUpdate:modelValue": f[0] || (f[0] = (a) => e.value.email = a),
884
+ "onUpdate:modelValue": m[0] || (m[0] = (n) => e.value.email = n),
884
885
  placeholder: "请输入邮箱",
885
886
  autocomplete: "email"
886
887
  }, null, 8, ["modelValue"])]),
@@ -893,15 +894,15 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
893
894
  message: "请输入验证码"
894
895
  }]
895
896
  }, {
896
- default: m(() => [y("div", pt, [s(t(V), {
897
+ default: f(() => [y("div", ut, [s(t(V), {
897
898
  modelValue: e.value.code,
898
- "onUpdate:modelValue": f[1] || (f[1] = (a) => e.value.code = a),
899
+ "onUpdate:modelValue": m[1] || (m[1] = (n) => e.value.code = n),
899
900
  placeholder: "请输入验证码",
900
901
  autocomplete: "one-time-code"
901
- }, null, 8, ["modelValue"]), s(G, {
902
+ }, null, 8, ["modelValue"]), s(D, {
902
903
  ref_key: "SendVerifyCodeRef",
903
904
  ref: v,
904
- size: i.size,
905
+ size: o.size,
905
906
  loading: l.value,
906
907
  style: {
907
908
  "margin-left": "10px"
@@ -911,23 +912,23 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
911
912
  _: 1
912
913
  }), s(t(B), {
913
914
  type: "primary",
914
- loading: i.loading,
915
+ loading: o.loading,
915
916
  long: "",
916
- size: i.size,
917
- onClick: o
917
+ size: o.size,
918
+ onClick: i
918
919
  }, {
919
- default: m(() => [...f[2] || (f[2] = [$(" 登录 ", -1)])]),
920
+ default: f(() => [...m[2] || (m[2] = [$(" 登录 ", -1)])]),
920
921
  _: 1
921
922
  }, 8, ["loading", "size"])]),
922
923
  _: 1
923
924
  }, 8, ["model", "size"])]));
924
925
  }
925
- }), mt = /* @__PURE__ */ P(ft, [["__scopeId", "data-v-7d6e80be"]]), vt = {
926
+ }), ct = /* @__PURE__ */ P(dt, [["__scopeId", "data-v-7d6e80be"]]), pt = {
926
927
  class: "SignIn"
927
- }, gt = {
928
+ }, mt = {
928
929
  key: 0,
929
930
  class: "tabsContainer"
930
- }, ht = /* @__PURE__ */ z({
931
+ }, ft = /* @__PURE__ */ z({
931
932
  __name: "AuthkitSignIn",
932
933
  props: {
933
934
  size: {
@@ -942,11 +943,11 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
942
943
  },
943
944
  emits: ["submit", "switchSignUp", "switchResetPassword"],
944
945
  setup(g, {
945
- emit: r
946
+ emit: u
946
947
  }) {
947
- const n = r, i = g, v = ce(), l = C(() => !!v.OAuth), {
948
- appsData: u
949
- } = F(), e = C(() => u.value.authMethods), h = C(() => {
948
+ const a = u, o = g, v = re(), l = C(() => !!v.OAuth), {
949
+ appsData: r
950
+ } = M(), e = C(() => r.value.authMethods), h = C(() => {
950
951
  const p = [];
951
952
  return (e.value.login.emailPassword || e.value.login.phonePassword) && p.push({
952
953
  key: "password",
@@ -958,28 +959,28 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
958
959
  key: "emailCode",
959
960
  title: "邮箱验证码登录"
960
961
  }), p;
961
- }), o = S("password");
962
- te(() => {
962
+ }), i = S("password");
963
+ ee(() => {
963
964
  var p;
964
- h.value.some((_) => _.key === o.value) || (o.value = ((p = h.value[0]) == null ? void 0 : p.key) || "password");
965
+ h.value.some((_) => _.key === i.value) || (i.value = ((p = h.value[0]) == null ? void 0 : p.key) || "password");
965
966
  });
966
967
  function d() {
967
- n("switchSignUp");
968
+ a("switchSignUp");
968
969
  }
969
- function f() {
970
- n("switchResetPassword");
970
+ function m() {
971
+ a("switchResetPassword");
971
972
  }
972
- async function a(p) {
973
- n("submit", {
974
- method: o.value === "password" ? "password" : "code",
973
+ async function n(p) {
974
+ a("submit", {
975
+ method: i.value === "password" ? "password" : "code",
975
976
  ...p
976
977
  });
977
978
  }
978
- return (p, _) => (c(), b("div", vt, [h.value.length > 1 ? (c(), b("div", gt, [s(t(se), {
979
- "active-key": o.value,
980
- "onUpdate:activeKey": _[0] || (_[0] = (w) => o.value = w)
979
+ return (p, _) => (c(), b("div", pt, [h.value.length > 1 ? (c(), b("div", mt, [s(t(oe), {
980
+ "active-key": i.value,
981
+ "onUpdate:activeKey": _[0] || (_[0] = (w) => i.value = w)
981
982
  }, {
982
- default: m(() => [(c(!0), b(D, null, ie(h.value, (w) => (c(), k(t(ne), {
983
+ default: f(() => [(c(!0), b(G, null, te(h.value, (w) => (c(), k(t(se), {
983
984
  key: w.key,
984
985
  title: w.title
985
986
  }, null, 8, ["title"]))), 128))]),
@@ -989,39 +990,39 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
989
990
  style: {
990
991
  margin: "0"
991
992
  }
992
- })])) : I("", !0), o.value === "password" && (e.value.login.emailPassword || e.value.login.phonePassword) ? (c(), k(tt, {
993
+ })])) : I("", !0), i.value === "password" && (e.value.login.emailPassword || e.value.login.phonePassword) ? (c(), k(Ye, {
993
994
  key: 1,
994
- loading: i.loading,
995
- size: i.size,
995
+ loading: o.loading,
996
+ size: o.size,
996
997
  "allow-phone": e.value.login.phonePassword,
997
- onSubmit: a
998
- }, null, 8, ["loading", "size", "allow-phone"])) : o.value === "phoneCode" ? (c(), k(dt, {
998
+ onSubmit: n
999
+ }, null, 8, ["loading", "size", "allow-phone"])) : i.value === "phoneCode" ? (c(), k(lt, {
999
1000
  key: 2,
1000
- loading: i.loading,
1001
- size: i.size,
1002
- onSubmit: a
1003
- }, null, 8, ["loading", "size"])) : o.value === "emailCode" ? (c(), k(mt, {
1001
+ loading: o.loading,
1002
+ size: o.size,
1003
+ onSubmit: n
1004
+ }, null, 8, ["loading", "size"])) : i.value === "emailCode" ? (c(), k(ct, {
1004
1005
  key: 3,
1005
- loading: i.loading,
1006
- size: i.size,
1007
- onSubmit: a
1006
+ loading: o.loading,
1007
+ size: o.size,
1008
+ onSubmit: n
1008
1009
  }, null, 8, ["loading", "size"])) : I("", !0), l.value ? N(p.$slots, "OAuth", {
1009
1010
  key: 4
1010
- }, void 0, !0) : I("", !0), s(ve, {
1011
+ }, void 0, !0) : I("", !0), s(ce, {
1011
1012
  "show-sign-up": e.value.signUp.email || e.value.signUp.phone,
1012
1013
  onSwitchSignUp: d,
1013
- onSwitchResetPassword: f
1014
+ onSwitchResetPassword: m
1014
1015
  }, null, 8, ["show-sign-up"])]));
1015
1016
  }
1016
- }), yt = /* @__PURE__ */ P(ht, [["__scopeId", "data-v-cf331a08"]]), wt = {
1017
+ }), vt = /* @__PURE__ */ P(ft, [["__scopeId", "data-v-cf331a08"]]), gt = {
1017
1018
  class: "SignUpPhone"
1018
- }, _t = {
1019
+ }, ht = {
1019
1020
  class: "content"
1020
- }, bt = {
1021
+ }, yt = {
1021
1022
  class: "sendVerifyCodeItem"
1022
- }, St = {
1023
+ }, wt = {
1023
1024
  class: "handle"
1024
- }, kt = /* @__PURE__ */ z({
1025
+ }, _t = /* @__PURE__ */ z({
1025
1026
  __name: "AuthkitSignUpPhone",
1026
1027
  props: {
1027
1028
  size: {
@@ -1041,9 +1042,9 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1041
1042
  },
1042
1043
  emits: ["switchSignIn", "submit"],
1043
1044
  setup(g, {
1044
- emit: r
1045
+ emit: u
1045
1046
  }) {
1046
- const n = r, i = g, v = S(), l = S(!1), u = S(), e = S({
1047
+ const a = u, o = g, v = S(), l = S(!1), r = S(), e = S({
1047
1048
  phone: void 0,
1048
1049
  code: void 0,
1049
1050
  password: void 0,
@@ -1053,15 +1054,15 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1053
1054
  required: !0,
1054
1055
  message: "请输入确认密码"
1055
1056
  }, {
1056
- validator: (a, p) => {
1057
- e.value.password && a !== e.value.password ? p("两次密码输入不一致") : p();
1057
+ validator: (n, p) => {
1058
+ e.value.password && n !== e.value.password ? p("两次密码输入不一致") : p();
1058
1059
  }
1059
1060
  }];
1060
- function o() {
1061
- n("switchSignIn");
1061
+ function i() {
1062
+ a("switchSignIn");
1062
1063
  }
1063
1064
  async function d() {
1064
- if (!await u.value.validateField(["phone"])) {
1065
+ if (!await r.value.validateField(["phone"])) {
1065
1066
  l.value = !0;
1066
1067
  const {
1067
1068
  error: p
@@ -1072,9 +1073,9 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1072
1073
  l.value = !1, p || v.value.startCountFn();
1073
1074
  }
1074
1075
  }
1075
- async function f() {
1076
- u.value.validate().then((a) => {
1077
- a || n("submit", {
1076
+ async function m() {
1077
+ r.value.validate().then((n) => {
1078
+ n || a("submit", {
1078
1079
  type: "phone",
1079
1080
  phone: e.value.phone,
1080
1081
  code: e.value.code,
@@ -1083,14 +1084,14 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1083
1084
  });
1084
1085
  });
1085
1086
  }
1086
- return (a, p) => (c(), b("div", wt, [y("div", _t, [s(t(M), {
1087
+ return (n, p) => (c(), b("div", gt, [y("div", ht, [s(t(L), {
1087
1088
  ref_key: "formRef",
1088
- ref: u,
1089
+ ref: r,
1089
1090
  model: e.value,
1090
- size: i.size,
1091
+ size: o.size,
1091
1092
  "auto-label-width": ""
1092
1093
  }, {
1093
- default: m(() => [s(t(A), {
1094
+ default: f(() => [s(t(A), {
1094
1095
  field: "phone",
1095
1096
  label: "手机号",
1096
1097
  "hide-label": "",
@@ -1102,7 +1103,7 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1102
1103
  message: "请输入有效的手机号"
1103
1104
  }]
1104
1105
  }, {
1105
- default: m(() => [s(t(V), {
1106
+ default: f(() => [s(t(V), {
1106
1107
  modelValue: e.value.phone,
1107
1108
  "onUpdate:modelValue": p[0] || (p[0] = (_) => e.value.phone = _),
1108
1109
  placeholder: "请输入手机号",
@@ -1119,15 +1120,15 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1119
1120
  message: "请输入验证码"
1120
1121
  }]
1121
1122
  }, {
1122
- default: m(() => [y("div", bt, [s(t(V), {
1123
+ default: f(() => [y("div", yt, [s(t(V), {
1123
1124
  modelValue: e.value.code,
1124
1125
  "onUpdate:modelValue": p[1] || (p[1] = (_) => e.value.code = _),
1125
1126
  placeholder: "请输入验证码",
1126
1127
  autocomplete: "one-time-code"
1127
- }, null, 8, ["modelValue"]), s(G, {
1128
+ }, null, 8, ["modelValue"]), s(D, {
1128
1129
  ref_key: "SendVerifyCodeRef",
1129
1130
  ref: v,
1130
- size: i.size,
1131
+ size: o.size,
1131
1132
  loading: l.value,
1132
1133
  style: {
1133
1134
  "margin-left": "10px"
@@ -1135,20 +1136,20 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1135
1136
  onSend: d
1136
1137
  }, null, 8, ["size", "loading"])])]),
1137
1138
  _: 1
1138
- }), i.requirePassword ? (c(), k(t(A), {
1139
+ }), o.requirePassword ? (c(), k(t(A), {
1139
1140
  key: 0,
1140
1141
  field: "password",
1141
1142
  label: "密码",
1142
1143
  "hide-label": "",
1143
1144
  rules: [{
1144
- required: i.requirePassword,
1145
+ required: o.requirePassword,
1145
1146
  message: "密码请输入"
1146
1147
  }, {
1147
1148
  minLength: 10,
1148
1149
  message: "密码不能少于10字符"
1149
1150
  }]
1150
1151
  }, {
1151
- default: m(() => [s(t(V), {
1152
+ default: f(() => [s(t(V), {
1152
1153
  modelValue: e.value.password,
1153
1154
  "onUpdate:modelValue": p[2] || (p[2] = (_) => e.value.password = _),
1154
1155
  placeholder: "请输入密码(可选)",
@@ -1156,14 +1157,14 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1156
1157
  autocomplete: "new-password"
1157
1158
  }, null, 8, ["modelValue"])]),
1158
1159
  _: 1
1159
- }, 8, ["rules"])) : I("", !0), i.requirePassword && e.value.password ? (c(), k(t(A), {
1160
+ }, 8, ["rules"])) : I("", !0), o.requirePassword && e.value.password ? (c(), k(t(A), {
1160
1161
  key: 1,
1161
1162
  field: "confirmPassword",
1162
1163
  label: "确认密码",
1163
1164
  "hide-label": "",
1164
1165
  rules: h
1165
1166
  }, {
1166
- default: m(() => [s(t(V), {
1167
+ default: f(() => [s(t(V), {
1167
1168
  modelValue: e.value.confirmPassword,
1168
1169
  "onUpdate:modelValue": p[3] || (p[3] = (_) => e.value.confirmPassword = _),
1169
1170
  placeholder: "请输入确认密码",
@@ -1179,37 +1180,37 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1179
1180
  required: !1
1180
1181
  }]
1181
1182
  }, {
1182
- default: m(() => [s(t(V), {
1183
+ default: f(() => [s(t(V), {
1183
1184
  modelValue: e.value.referrerId,
1184
1185
  "onUpdate:modelValue": p[4] || (p[4] = (_) => e.value.referrerId = _),
1185
1186
  placeholder: "邀请人ID(可选)",
1186
1187
  autocomplete: "off"
1187
1188
  }, null, 8, ["modelValue"])]),
1188
1189
  _: 1
1189
- }), y("div", St, [s(t(B), {
1190
+ }), y("div", wt, [s(t(B), {
1190
1191
  type: "primary",
1191
- loading: i.loading,
1192
+ loading: o.loading,
1192
1193
  long: "",
1193
- size: i.size,
1194
- onClick: f
1194
+ size: o.size,
1195
+ onClick: m
1195
1196
  }, {
1196
- default: m(() => [...p[5] || (p[5] = [$(" 注册 ", -1)])]),
1197
+ default: f(() => [...p[5] || (p[5] = [$(" 注册 ", -1)])]),
1197
1198
  _: 1
1198
1199
  }, 8, ["loading", "size"])])]),
1199
1200
  _: 1
1200
- }, 8, ["model", "size"])]), s(le, {
1201
- onSwitchSignIn: o
1201
+ }, 8, ["model", "size"])]), s(ne, {
1202
+ onSwitchSignIn: i
1202
1203
  })]));
1203
1204
  }
1204
- }), It = /* @__PURE__ */ P(kt, [["__scopeId", "data-v-fc971294"]]), zt = {
1205
+ }), bt = /* @__PURE__ */ P(_t, [["__scopeId", "data-v-fc971294"]]), St = {
1205
1206
  class: "SignUp"
1206
- }, Pt = {
1207
+ }, kt = {
1207
1208
  key: 0,
1208
1209
  class: "tabsContainer"
1209
- }, At = {
1210
+ }, It = {
1210
1211
  key: 3,
1211
1212
  class: "empty"
1212
- }, Vt = /* @__PURE__ */ z({
1213
+ }, zt = /* @__PURE__ */ z({
1213
1214
  __name: "AuthkitSignUp",
1214
1215
  props: {
1215
1216
  size: {
@@ -1224,11 +1225,11 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1224
1225
  },
1225
1226
  emits: ["switchSignIn", "submit"],
1226
1227
  setup(g, {
1227
- emit: r
1228
+ emit: u
1228
1229
  }) {
1229
- const n = r, i = g, {
1230
+ const a = u, o = g, {
1230
1231
  appsData: v
1231
- } = F(), l = C(() => v.value.authMethods), u = C(() => {
1232
+ } = M(), l = C(() => v.value.authMethods), r = C(() => {
1232
1233
  const d = [];
1233
1234
  return l.value.signUp.email && d.push({
1234
1235
  key: "email",
@@ -1238,26 +1239,26 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1238
1239
  title: "手机号注册"
1239
1240
  }), d;
1240
1241
  }), e = S("email");
1241
- te(() => {
1242
+ ee(() => {
1242
1243
  var d;
1243
- u.value.some((f) => f.key === e.value) || (e.value = ((d = u.value[0]) == null ? void 0 : d.key) || "email");
1244
+ r.value.some((m) => m.key === e.value) || (e.value = ((d = r.value[0]) == null ? void 0 : d.key) || "email");
1244
1245
  });
1245
1246
  function h() {
1246
- n("switchSignIn");
1247
+ a("switchSignIn");
1247
1248
  }
1248
- async function o(d) {
1249
- n("submit", {
1249
+ async function i(d) {
1250
+ a("submit", {
1250
1251
  type: e.value,
1251
1252
  ...d
1252
1253
  });
1253
1254
  }
1254
- return (d, f) => (c(), b("div", zt, [u.value.length > 1 ? (c(), b("div", Pt, [s(t(se), {
1255
+ return (d, m) => (c(), b("div", St, [r.value.length > 1 ? (c(), b("div", kt, [s(t(oe), {
1255
1256
  "active-key": e.value,
1256
- "onUpdate:activeKey": f[0] || (f[0] = (a) => e.value = a)
1257
+ "onUpdate:activeKey": m[0] || (m[0] = (n) => e.value = n)
1257
1258
  }, {
1258
- default: m(() => [(c(!0), b(D, null, ie(u.value, (a) => (c(), k(t(ne), {
1259
- key: a.key,
1260
- title: a.title
1259
+ default: f(() => [(c(!0), b(G, null, te(r.value, (n) => (c(), k(t(se), {
1260
+ key: n.key,
1261
+ title: n.title
1261
1262
  }, null, 8, ["title"]))), 128))]),
1262
1263
  _: 1
1263
1264
  }, 8, ["active-key"]), s(t(ae), {
@@ -1265,23 +1266,23 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1265
1266
  style: {
1266
1267
  margin: "0"
1267
1268
  }
1268
- })])) : I("", !0), e.value === "email" && l.value.signUp.email ? (c(), k(Se, {
1269
+ })])) : I("", !0), e.value === "email" && l.value.signUp.email ? (c(), k(we, {
1269
1270
  key: 1,
1270
- size: i.size,
1271
+ size: o.size,
1271
1272
  loading: g.loading,
1272
- onSubmit: o
1273
- }, null, 8, ["size", "loading"])) : e.value === "phone" && l.value.signUp.phone ? (c(), k(It, {
1273
+ onSubmit: i
1274
+ }, null, 8, ["size", "loading"])) : e.value === "phone" && l.value.signUp.phone ? (c(), k(bt, {
1274
1275
  key: 2,
1275
- size: i.size,
1276
+ size: o.size,
1276
1277
  loading: g.loading,
1277
- onSubmit: o,
1278
+ onSubmit: i,
1278
1279
  onSwitchSignIn: h
1279
- }, null, 8, ["size", "loading"])) : (c(), b("div", At, " 当前应用未开放用户注册 ")), e.value === "email" ? (c(), k(le, {
1280
+ }, null, 8, ["size", "loading"])) : (c(), b("div", It, " 当前应用未开放用户注册 ")), e.value === "email" ? (c(), k(ne, {
1280
1281
  key: 4,
1281
1282
  onSwitchSignIn: h
1282
1283
  })) : I("", !0)]));
1283
1284
  }
1284
- }), Ut = /* @__PURE__ */ P(Vt, [["__scopeId", "data-v-2a0b239f"]]), $t = ["src"], Ct = /* @__PURE__ */ z({
1285
+ }), Pt = /* @__PURE__ */ P(zt, [["__scopeId", "data-v-2a0b239f"]]), At = ["src"], Vt = /* @__PURE__ */ z({
1285
1286
  __name: "AuthkitAuthTitle",
1286
1287
  props: {
1287
1288
  size: {
@@ -1301,31 +1302,31 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1301
1302
  }
1302
1303
  },
1303
1304
  setup(g) {
1304
- const r = g, n = `${r.size}px`, i = `${r.fontSize}px`, v = `${r.lineHeight}px`, {
1305
+ const u = g, a = `${u.size}px`, o = `${u.fontSize}px`, v = `${u.lineHeight}px`, {
1305
1306
  currentView: l
1306
- } = x(), {
1307
- appsData: u
1308
- } = F(), e = C(() => l.value === "signIn" ? `${u.value.name}登录` : l.value === "signUp" ? `${u.value.name}账号注册` : l.value === "resetPassword" ? `${u.value.name}密码重置` : "");
1309
- return (h, o) => (c(), b("div", {
1307
+ } = H(), {
1308
+ appsData: r
1309
+ } = M(), e = C(() => l.value === "signIn" ? `${r.value.name}登录` : l.value === "signUp" ? `${r.value.name}账号注册` : l.value === "resetPassword" ? `${r.value.name}密码重置` : "");
1310
+ return (h, i) => (c(), b("div", {
1310
1311
  class: "Title",
1311
1312
  style: Q({
1312
- fontSize: i,
1313
+ fontSize: o,
1313
1314
  lineHeight: v
1314
1315
  })
1315
- }, [t(u).applicationLogoUrl ? (c(), b("img", {
1316
+ }, [t(r).applicationLogoUrl ? (c(), b("img", {
1316
1317
  key: 0,
1317
- src: t(u).applicationLogoUrl,
1318
+ src: t(r).applicationLogoUrl,
1318
1319
  srcset: "",
1319
1320
  style: Q({
1320
- width: n
1321
+ width: a
1321
1322
  })
1322
- }, null, 12, $t)) : I("", !0), y("span", null, O(e.value), 1), N(h.$slots, "default", {}, void 0, !0)], 4));
1323
+ }, null, 12, At)) : I("", !0), y("span", null, O(e.value), 1), N(h.$slots, "default", {}, void 0, !0)], 4));
1323
1324
  }
1324
- }), ge = /* @__PURE__ */ P(Ct, [["__scopeId", "data-v-8ebe7939"]]), Rt = {
1325
+ }), pe = /* @__PURE__ */ P(Vt, [["__scopeId", "data-v-8ebe7939"]]), Ut = {
1325
1326
  class: "Auth"
1326
- }, qt = {
1327
+ }, $t = {
1327
1328
  class: "body"
1328
- }, Bt = /* @__PURE__ */ z({
1329
+ }, Ct = /* @__PURE__ */ z({
1329
1330
  __name: "AuthkitAuth",
1330
1331
  props: {
1331
1332
  size: {
@@ -1339,62 +1340,62 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1339
1340
  },
1340
1341
  emits: ["toPrivacyPolicy", "toUserServiceAgreement"],
1341
1342
  setup(g, {
1342
- emit: r
1343
+ emit: u
1343
1344
  }) {
1344
- const n = g, i = r, {
1345
+ const a = g, o = u, {
1345
1346
  signInSubmit: v,
1346
1347
  signUpSubmit: l,
1347
- resetPasswordSubmit: u,
1348
+ resetPasswordSubmit: r,
1348
1349
  currentView: e,
1349
1350
  authSignInLoading: h,
1350
- authSignUpLoading: o,
1351
+ authSignUpLoading: i,
1351
1352
  resetPasswordLoading: d,
1352
- switchSignUp: f,
1353
- switchResetPassword: a,
1353
+ switchSignUp: m,
1354
+ switchResetPassword: n,
1354
1355
  switchSignIn: p
1355
- } = x(), {
1356
+ } = H(), {
1356
1357
  appsAuthPageInfoApi: _
1357
- } = F();
1358
+ } = M();
1358
1359
  function w() {
1359
- i("toPrivacyPolicy");
1360
+ o("toPrivacyPolicy");
1360
1361
  }
1361
1362
  function U() {
1362
- i("toUserServiceAgreement");
1363
+ o("toUserServiceAgreement");
1363
1364
  }
1364
- return _(), (L, R) => (c(), b("div", Rt, [g.showTitle ? (c(), k(ge, {
1365
+ return _(), (x, R) => (c(), b("div", Ut, [g.showTitle ? (c(), k(pe, {
1365
1366
  key: 0,
1366
1367
  size: 32,
1367
1368
  "font-size": 20
1368
- })) : I("", !0), y("div", qt, [t(e) === "signIn" ? (c(), k(yt, {
1369
+ })) : I("", !0), y("div", $t, [t(e) === "signIn" ? (c(), k(vt, {
1369
1370
  key: 0,
1370
- size: n.size,
1371
+ size: a.size,
1371
1372
  loading: t(h),
1372
- onSwitchSignUp: t(f),
1373
- onSwitchResetPassword: t(a),
1373
+ onSwitchSignUp: t(m),
1374
+ onSwitchResetPassword: t(n),
1374
1375
  onSubmit: R[0] || (R[0] = (q) => t(v)(q))
1375
1376
  }, {
1376
- OAuth: m(() => [s(Ce, {
1377
- size: n.size
1377
+ OAuth: f(() => [s(Ve, {
1378
+ size: a.size
1378
1379
  }, null, 8, ["size"])]),
1379
1380
  _: 1
1380
- }, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : t(e) === "signUp" ? (c(), k(Ut, {
1381
+ }, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : t(e) === "signUp" ? (c(), k(Pt, {
1381
1382
  key: 1,
1382
- size: n.size,
1383
- loading: t(o),
1383
+ size: a.size,
1384
+ loading: t(i),
1384
1385
  onSwitchSignIn: t(p),
1385
1386
  onSubmit: R[1] || (R[1] = (q) => t(l)(q))
1386
- }, null, 8, ["size", "loading", "onSwitchSignIn"])) : t(e) === "resetPassword" ? (c(), k(Ke, {
1387
+ }, null, 8, ["size", "loading", "onSwitchSignIn"])) : t(e) === "resetPassword" ? (c(), k(Ge, {
1387
1388
  key: 2,
1388
- size: n.size,
1389
+ size: a.size,
1389
1390
  loading: t(d),
1390
1391
  onSwitchSignIn: t(p),
1391
- onSubmit: R[2] || (R[2] = (q) => t(u)(q))
1392
- }, null, 8, ["size", "loading", "onSwitchSignIn"])) : I("", !0), s(Je, {
1392
+ onSubmit: R[2] || (R[2] = (q) => t(r)(q))
1393
+ }, null, 8, ["size", "loading", "onSwitchSignIn"])) : I("", !0), s(We, {
1393
1394
  onToPrivacyPolicy: w,
1394
1395
  onToUserServiceAgreement: U
1395
1396
  })])]));
1396
1397
  }
1397
- }), Tt = /* @__PURE__ */ P(Bt, [["__scopeId", "data-v-99ccec1c"]]), Ot = /* @__PURE__ */ z({
1398
+ }), Rt = /* @__PURE__ */ P(Ct, [["__scopeId", "data-v-99ccec1c"]]), qt = /* @__PURE__ */ z({
1398
1399
  __name: "AuthkitAuthModal",
1399
1400
  props: {
1400
1401
  size: {
@@ -1403,27 +1404,27 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1403
1404
  },
1404
1405
  emits: ["close", "toPrivacyPolicy", "toUserServiceAgreement"],
1405
1406
  setup(g, {
1406
- emit: r
1407
+ emit: u
1407
1408
  }) {
1408
- const n = r, {
1409
- onSignIn: i
1410
- } = x(), {
1409
+ const a = u, {
1410
+ onSignIn: o
1411
+ } = H(), {
1411
1412
  isOpen: v,
1412
1413
  close: l
1413
- } = pe();
1414
- let u = null;
1414
+ } = ge();
1415
+ let r = null;
1415
1416
  j(() => {
1416
- u = i(() => l());
1417
- }), oe(() => {
1418
- u == null || u(), u = null;
1417
+ r = o(() => l());
1418
+ }), ie(() => {
1419
+ r == null || r(), r = null;
1419
1420
  });
1420
- function e(o) {
1421
- o || l();
1421
+ function e(i) {
1422
+ i || l();
1422
1423
  }
1423
1424
  function h() {
1424
- l(), n("close");
1425
+ l(), a("close");
1425
1426
  }
1426
- return (o, d) => (c(), k(t(ye), {
1427
+ return (i, d) => (c(), k(t(fe), {
1427
1428
  visible: t(v),
1428
1429
  footer: !1,
1429
1430
  "mask-closable": !1,
@@ -1434,17 +1435,17 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1434
1435
  "onUpdate:visible": e,
1435
1436
  onClose: h
1436
1437
  }, {
1437
- title: m(() => [s(ge)]),
1438
- default: m(() => [s(Tt, {
1438
+ title: f(() => [s(pe)]),
1439
+ default: f(() => [s(Rt, {
1439
1440
  "show-title": !1,
1440
1441
  size: g.size,
1441
- onToPrivacyPolicy: d[0] || (d[0] = (f) => n("toPrivacyPolicy")),
1442
- onToUserServiceAgreement: d[1] || (d[1] = (f) => n("toUserServiceAgreement"))
1442
+ onToPrivacyPolicy: d[0] || (d[0] = (m) => a("toPrivacyPolicy")),
1443
+ onToUserServiceAgreement: d[1] || (d[1] = (m) => a("toUserServiceAgreement"))
1443
1444
  }, null, 8, ["size"])]),
1444
1445
  _: 1
1445
1446
  }, 8, ["visible"]));
1446
1447
  }
1447
- }), xt = /* @__PURE__ */ P(Ot, [["__scopeId", "data-v-e2b88450"]]), Lt = /* @__PURE__ */ z({
1448
+ }), Bt = /* @__PURE__ */ P(qt, [["__scopeId", "data-v-e2b88450"]]), Tt = /* @__PURE__ */ z({
1448
1449
  __name: "AuthkitOAuthCallbackProvider",
1449
1450
  props: {
1450
1451
  bindIdentityRedirect: {
@@ -1460,50 +1461,50 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1460
1461
  }
1461
1462
  },
1462
1463
  setup(g) {
1463
- const r = g, n = ["token", "userId", "appId", "error", "needBindIdentity", "bindSuccess", "provider"], {
1464
- completeSignIn: i
1465
- } = x(), {
1464
+ const u = g, a = ["token", "userId", "appId", "error", "needBindIdentity", "bindSuccess", "provider"], {
1465
+ completeSignIn: o
1466
+ } = H(), {
1466
1467
  fetchUserProfile: v
1467
1468
  } = J();
1468
- function l(o) {
1469
- return n.some((d) => o.searchParams.has(d));
1469
+ function l(i) {
1470
+ return a.some((d) => i.searchParams.has(d));
1470
1471
  }
1471
- function u(o) {
1472
- n.forEach((f) => o.searchParams.delete(f));
1473
- const d = `${o.pathname}${o.search}${o.hash}`;
1472
+ function r(i) {
1473
+ a.forEach((m) => i.searchParams.delete(m));
1474
+ const d = `${i.pathname}${i.search}${i.hash}`;
1474
1475
  window.history.replaceState({}, "", d);
1475
1476
  }
1476
1477
  function e() {
1477
- if (!r.restoreRedirectAfterSignIn) return null;
1478
- const o = sessionStorage.getItem("auth_redirect");
1479
- if (sessionStorage.removeItem("auth_redirect"), !o) return null;
1478
+ if (!u.restoreRedirectAfterSignIn) return null;
1479
+ const i = sessionStorage.getItem("auth_redirect");
1480
+ if (sessionStorage.removeItem("auth_redirect"), !i) return null;
1480
1481
  const d = window.location.pathname + window.location.search + window.location.hash;
1481
- return o === d ? null : o;
1482
+ return i === d ? null : i;
1482
1483
  }
1483
1484
  async function h() {
1484
1485
  if (typeof window > "u") return;
1485
- const o = new URL(window.location.href);
1486
- if (!l(o)) return;
1487
- const d = o.searchParams.get("error");
1486
+ const i = new URL(window.location.href);
1487
+ if (!l(i)) return;
1488
+ const d = i.searchParams.get("error");
1488
1489
  if (d) {
1489
- u(o), ee.error(d);
1490
+ r(i), Z.error(d);
1490
1491
  return;
1491
1492
  }
1492
- if (o.searchParams.get("bindSuccess") === "true") {
1493
- const U = o.searchParams.get("provider");
1494
- u(o), await v(), ee.success(U ? `${U} 绑定成功` : "绑定成功"), r.closePopupOnBindSuccess && window.opener && setTimeout(() => window.close(), 800);
1493
+ if (i.searchParams.get("bindSuccess") === "true") {
1494
+ const U = i.searchParams.get("provider");
1495
+ r(i), await v(), Z.success(U ? `${U} 绑定成功` : "绑定成功"), u.closePopupOnBindSuccess && window.opener && setTimeout(() => window.close(), 800);
1495
1496
  return;
1496
1497
  }
1497
- const f = o.searchParams.get("token");
1498
- if (!f) return;
1499
- const a = o.searchParams.get("userId"), p = o.searchParams.get("appId"), _ = o.searchParams.get("needBindIdentity") === "true";
1500
- if (u(o), i({
1501
- jwtToken: f,
1502
- userId: a,
1498
+ const m = i.searchParams.get("token");
1499
+ if (!m) return;
1500
+ const n = i.searchParams.get("userId"), p = i.searchParams.get("appId"), _ = i.searchParams.get("needBindIdentity") === "true";
1501
+ if (r(i), o({
1502
+ jwtToken: m,
1503
+ userId: n,
1503
1504
  appId: p,
1504
1505
  needBindIdentity: _
1505
- }), await v(), _ && r.bindIdentityRedirect) {
1506
- window.location.href = r.bindIdentityRedirect;
1506
+ }), await v(), _ && u.bindIdentityRedirect) {
1507
+ window.location.href = u.bindIdentityRedirect;
1507
1508
  return;
1508
1509
  }
1509
1510
  const w = e();
@@ -1511,9 +1512,9 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1511
1512
  }
1512
1513
  return j(() => {
1513
1514
  h();
1514
- }), (o, d) => null;
1515
+ }), (i, d) => null;
1515
1516
  }
1516
- }), Ci = /* @__PURE__ */ z({
1517
+ }), Pi = /* @__PURE__ */ z({
1517
1518
  __name: "AuthkitProvider",
1518
1519
  props: {
1519
1520
  config: {},
@@ -1550,41 +1551,41 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1550
1551
  },
1551
1552
  emits: ["toPrivacyPolicy", "toUserServiceAgreement"],
1552
1553
  setup(g, {
1553
- emit: r
1554
+ emit: u
1554
1555
  }) {
1555
- const n = g, i = r;
1556
- n.config && _e(n.config);
1556
+ const a = g, o = u;
1557
+ a.config && he(a.config);
1557
1558
  const {
1558
1559
  restoreSession: v,
1559
1560
  onSignIn: l
1560
- } = x(), {
1561
- fetchUserProfile: u
1561
+ } = H(), {
1562
+ fetchUserProfile: r
1562
1563
  } = J(), {
1563
1564
  appsAuthPageInfoApi: e
1564
- } = F(), h = l(() => {
1565
- u();
1565
+ } = M(), h = l(() => {
1566
+ r();
1566
1567
  });
1567
1568
  return j(async () => {
1568
- n.fetchAppInfo && await e(), n.restoreSession && v() && u();
1569
- }), oe(() => {
1569
+ a.fetchAppInfo && await e(), a.restoreSession && v() && r();
1570
+ }), ie(() => {
1570
1571
  h();
1571
- }), (o, d) => (c(), b(D, null, [N(o.$slots, "default"), n.handleOAuthCallback ? (c(), k(Lt, {
1572
+ }), (i, d) => (c(), b(G, null, [N(i.$slots, "default"), a.handleOAuthCallback ? (c(), k(Tt, {
1572
1573
  key: 0,
1573
- "bind-identity-redirect": n.bindIdentityRedirect,
1574
- "close-popup-on-bind-success": n.closePopupOnBindSuccess,
1575
- "restore-redirect-after-sign-in": n.restoreRedirectAfterSignIn
1576
- }, null, 8, ["bind-identity-redirect", "close-popup-on-bind-success", "restore-redirect-after-sign-in"])) : I("", !0), n.showAuthModal ? (c(), k(xt, {
1574
+ "bind-identity-redirect": a.bindIdentityRedirect,
1575
+ "close-popup-on-bind-success": a.closePopupOnBindSuccess,
1576
+ "restore-redirect-after-sign-in": a.restoreRedirectAfterSignIn
1577
+ }, null, 8, ["bind-identity-redirect", "close-popup-on-bind-success", "restore-redirect-after-sign-in"])) : I("", !0), a.showAuthModal ? (c(), k(Bt, {
1577
1578
  key: 1,
1578
- size: n.authModalSize,
1579
- onToPrivacyPolicy: d[0] || (d[0] = (f) => i("toPrivacyPolicy")),
1580
- onToUserServiceAgreement: d[1] || (d[1] = (f) => i("toUserServiceAgreement"))
1579
+ size: a.authModalSize,
1580
+ onToPrivacyPolicy: d[0] || (d[0] = (m) => o("toPrivacyPolicy")),
1581
+ onToUserServiceAgreement: d[1] || (d[1] = (m) => o("toUserServiceAgreement"))
1581
1582
  }, null, 8, ["size"])) : I("", !0)], 64));
1582
1583
  }
1583
- }), Mt = {
1584
+ }), Ot = {
1584
1585
  class: "header"
1585
- }, Ft = ["href"], Et = {
1586
+ }, xt = ["href"], Lt = {
1586
1587
  class: "container"
1587
- }, Gt = /* @__PURE__ */ z({
1588
+ }, Mt = /* @__PURE__ */ z({
1588
1589
  __name: "AuthkitAuthContainer",
1589
1590
  props: {
1590
1591
  applicationLogoUrl: {
@@ -1627,38 +1628,38 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1627
1628
  }
1628
1629
  },
1629
1630
  setup(g) {
1630
- const r = g, n = C(() => r.backgroundType === "color" ? {
1631
- backgroundColor: r.backgroundColor
1631
+ const u = g, a = C(() => u.backgroundType === "color" ? {
1632
+ backgroundColor: u.backgroundColor
1632
1633
  } : {
1633
- backgroundImage: `url(${r.backgroundImage})`
1634
+ backgroundImage: `url(${u.backgroundImage})`
1634
1635
  });
1635
- return (i, v) => (c(), b("div", {
1636
+ return (o, v) => (c(), b("div", {
1636
1637
  class: "auth",
1637
- style: Q(n.value)
1638
- }, [y("div", Mt, [r.name ? (c(), b("a", {
1638
+ style: Q(a.value)
1639
+ }, [y("div", Ot, [u.name ? (c(), b("a", {
1639
1640
  key: 0,
1640
- href: r.appHomePage,
1641
+ href: u.appHomePage,
1641
1642
  target: "_self",
1642
1643
  class: "link",
1643
1644
  style: Q({
1644
- color: r.linkColor
1645
+ color: u.linkColor
1645
1646
  })
1646
- }, " 返回主页 ", 12, Ft)) : I("", !0)]), y("div", Et, [N(i.$slots, "default", {}, void 0, !0)])], 4));
1647
+ }, " 返回主页 ", 12, xt)) : I("", !0)]), y("div", Lt, [N(o.$slots, "default", {}, void 0, !0)])], 4));
1647
1648
  }
1648
- }), Ri = /* @__PURE__ */ P(Gt, [["__scopeId", "data-v-0e13d3ff"]]), Ht = {
1649
+ }), Ai = /* @__PURE__ */ P(Mt, [["__scopeId", "data-v-0e13d3ff"]]), Ft = {
1649
1650
  class: "box"
1650
- }, Dt = {
1651
+ }, Ht = {
1651
1652
  class: "title"
1652
- }, Nt = {
1653
+ }, Dt = {
1653
1654
  class: "content"
1654
- }, jt = {
1655
+ }, Et = {
1655
1656
  class: "redirect"
1656
- }, Kt = {
1657
+ }, Gt = {
1657
1658
  style: {
1658
1659
  "font-weight": "bold",
1659
1660
  "font-size": "12px"
1660
1661
  }
1661
- }, Wt = /* @__PURE__ */ z({
1662
+ }, Nt = /* @__PURE__ */ z({
1662
1663
  __name: "AuthkitAuthorize",
1663
1664
  props: {
1664
1665
  size: {
@@ -1707,7 +1708,7 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1707
1708
  }
1708
1709
  },
1709
1710
  setup(g) {
1710
- const r = S(!1), n = g, i = S({
1711
+ const u = S(!1), a = g, o = S({
1711
1712
  appKey: "",
1712
1713
  name: "",
1713
1714
  homePageUrl: "",
@@ -1716,39 +1717,39 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1716
1717
  });
1717
1718
  async function v() {
1718
1719
  const {
1719
- data: u
1720
+ data: r
1720
1721
  } = await T.apps.findOne.post({
1721
- id: n.clientId
1722
+ id: a.clientId
1722
1723
  });
1723
- u && (i.value = u);
1724
+ r && (o.value = r);
1724
1725
  }
1725
1726
  v();
1726
1727
  async function l() {
1727
- r.value = !0;
1728
+ u.value = !0;
1728
1729
  const {
1729
- data: u
1730
+ data: r
1730
1731
  } = await T.oauth2.authorize.post({
1731
- client_id: n.clientId,
1732
- response_type: n.responseType,
1733
- scope: n.scope,
1734
- state: n.state,
1735
- redirect_uri: n.redirectUri
1732
+ client_id: a.clientId,
1733
+ response_type: a.responseType,
1734
+ scope: a.scope,
1735
+ state: a.state,
1736
+ redirect_uri: a.redirectUri
1736
1737
  });
1737
- r.value = !1, u && (window.location = u.authorizeUrl);
1738
+ u.value = !1, r && (window.location = r.authorizeUrl);
1738
1739
  }
1739
- return (u, e) => (c(), b("div", Ht, [y("div", Dt, O(`授权 ${i.value.name}`), 1), y("div", Nt, [s(t(we), null, {
1740
- default: m(() => [s(t(X), null, {
1741
- default: m(() => {
1740
+ return (r, e) => (c(), b("div", Ft, [y("div", Ht, O(`授权 ${o.value.name}`), 1), y("div", Dt, [s(t(ve), null, {
1741
+ default: f(() => [s(t(X), null, {
1742
+ default: f(() => {
1742
1743
  var h;
1743
- return [s(t(Z), {
1744
- title: i.value.name,
1745
- description: `想要使用您的${(h = n.userInfo) == null ? void 0 : h.nickname}账户`
1744
+ return [s(t(Y), {
1745
+ title: o.value.name,
1746
+ description: `想要使用您的${(h = a.userInfo) == null ? void 0 : h.nickname}账户`
1746
1747
  }, {
1747
- avatar: m(() => {
1748
- var o;
1749
- return [s(t(H), {
1748
+ avatar: f(() => {
1749
+ var i;
1750
+ return [s(t(E), {
1750
1751
  shape: "square",
1751
- "image-url": (o = n.userInfo) == null ? void 0 : o.avatar
1752
+ "image-url": (i = a.userInfo) == null ? void 0 : i.avatar
1752
1753
  }, null, 8, ["image-url"])];
1753
1754
  }),
1754
1755
  _: 1
@@ -1756,14 +1757,14 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1756
1757
  }),
1757
1758
  _: 1
1758
1759
  }), s(t(X), null, {
1759
- default: m(() => [s(t(Z), {
1760
+ default: f(() => [s(t(Y), {
1760
1761
  title: "公开信息",
1761
1762
  description: "头像、昵称"
1762
1763
  }, {
1763
- avatar: m(() => [s(t(H), {
1764
+ avatar: f(() => [s(t(E), {
1764
1765
  shape: "square"
1765
1766
  }, {
1766
- default: m(() => [...e[0] || (e[0] = [y("img", {
1767
+ default: f(() => [...e[0] || (e[0] = [y("img", {
1767
1768
  alt: "avatar",
1768
1769
  src: "https://p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp"
1769
1770
  }, null, -1)])]),
@@ -1773,14 +1774,14 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1773
1774
  })]),
1774
1775
  _: 1
1775
1776
  }), s(t(X), null, {
1776
- default: m(() => [s(t(Z), {
1777
+ default: f(() => [s(t(Y), {
1777
1778
  title: "个人用户数据",
1778
1779
  description: "电子邮件地址"
1779
1780
  }, {
1780
- avatar: m(() => [s(t(H), {
1781
+ avatar: f(() => [s(t(E), {
1781
1782
  shape: "square"
1782
1783
  }, {
1783
- default: m(() => [...e[1] || (e[1] = [y("img", {
1784
+ default: f(() => [...e[1] || (e[1] = [y("img", {
1784
1785
  alt: "avatar",
1785
1786
  src: "https://p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp"
1786
1787
  }, null, -1)])]),
@@ -1793,28 +1794,28 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1793
1794
  _: 1
1794
1795
  }), s(t(B), {
1795
1796
  type: "primary",
1796
- size: n.size,
1797
- loading: r.value,
1797
+ size: a.size,
1798
+ loading: u.value,
1798
1799
  onClick: l
1799
1800
  }, {
1800
- default: m(() => [...e[2] || (e[2] = [$(" 授权 ", -1)])]),
1801
+ default: f(() => [...e[2] || (e[2] = [$(" 授权 ", -1)])]),
1801
1802
  _: 1
1802
- }, 8, ["size", "loading"]), y("div", jt, [e[3] || (e[3] = y("div", {
1803
+ }, 8, ["size", "loading"]), y("div", Et, [e[3] || (e[3] = y("div", {
1803
1804
  class: "redirect-hint"
1804
- }, "授权后将跳转至", -1)), y("div", Kt, O(i.value.authorizationCallback), 1)])])]));
1805
+ }, "授权后将跳转至", -1)), y("div", Gt, O(o.value.authorizationCallback), 1)])])]));
1805
1806
  }
1806
- }), qi = /* @__PURE__ */ P(Wt, [["__scopeId", "data-v-5665e1c4"]]), Qt = {
1807
+ }), Vi = /* @__PURE__ */ P(Nt, [["__scopeId", "data-v-5665e1c4"]]), jt = {
1807
1808
  class: "oauth-callback"
1808
- }, Yt = {
1809
+ }, Kt = {
1809
1810
  key: 0,
1810
1811
  class: "callback-loading"
1811
- }, Jt = {
1812
+ }, Wt = {
1812
1813
  key: 1,
1813
1814
  class: "callback-error"
1814
- }, Xt = {
1815
+ }, Qt = {
1815
1816
  key: 2,
1816
1817
  class: "callback-success"
1817
- }, Zt = /* @__PURE__ */ z({
1818
+ }, Jt = /* @__PURE__ */ z({
1818
1819
  __name: "AuthkitOauthCallback",
1819
1820
  props: {
1820
1821
  defaultRedirect: {},
@@ -1823,29 +1824,29 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1823
1824
  },
1824
1825
  emits: ["success", "error", "needBindIdentity"],
1825
1826
  setup(g, {
1826
- emit: r
1827
+ emit: u
1827
1828
  }) {
1828
- const n = g, i = r, v = S(!0), l = S(""), u = S("登录成功,正在跳转..."), {
1829
+ const a = g, o = u, v = S(!0), l = S(""), r = S("登录成功,正在跳转..."), {
1829
1830
  completeSignIn: e,
1830
1831
  restoreSession: h
1831
- } = x(), {
1832
- fetchUserProfile: o
1832
+ } = H(), {
1833
+ fetchUserProfile: i
1833
1834
  } = J();
1834
1835
  async function d() {
1835
- const a = new URLSearchParams(window.location.search), p = a.get("error");
1836
+ const n = new URLSearchParams(window.location.search), p = n.get("error");
1836
1837
  if (p) {
1837
- l.value = p, v.value = !1, i("error", l.value);
1838
+ l.value = p, v.value = !1, o("error", l.value);
1838
1839
  return;
1839
1840
  }
1840
- if (a.get("bindSuccess") === "true") {
1841
- u.value = "绑定成功,可以关闭此页面", window.history.replaceState({}, "", window.location.pathname), v.value = !1, setTimeout(() => {
1841
+ if (n.get("bindSuccess") === "true") {
1842
+ r.value = "绑定成功,可以关闭此页面", window.history.replaceState({}, "", window.location.pathname), v.value = !1, setTimeout(() => {
1842
1843
  window.close();
1843
1844
  }, 800);
1844
1845
  return;
1845
1846
  }
1846
- const _ = a.get("token"), w = a.get("userId"), U = a.get("appId"), L = a.get("needBindIdentity") === "true";
1847
+ const _ = n.get("token"), w = n.get("userId"), U = n.get("appId"), x = n.get("needBindIdentity") === "true";
1847
1848
  if (!_) {
1848
- l.value = "登录失败:未收到认证令牌", v.value = !1, i("error", l.value);
1849
+ l.value = "登录失败:未收到认证令牌", v.value = !1, o("error", l.value);
1849
1850
  return;
1850
1851
  }
1851
1852
  try {
@@ -1853,71 +1854,71 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1853
1854
  jwtToken: _,
1854
1855
  userId: w,
1855
1856
  appId: U,
1856
- needBindIdentity: L
1857
- }), await o();
1857
+ needBindIdentity: x
1858
+ }), await i();
1858
1859
  const R = window.location.pathname;
1859
- if (window.history.replaceState({}, "", R), L && (i("needBindIdentity", {
1860
+ if (window.history.replaceState({}, "", R), x && (o("needBindIdentity", {
1860
1861
  token: _,
1861
1862
  userId: w || "",
1862
1863
  appId: U || ""
1863
- }), n.bindIdentityRedirect)) {
1864
+ }), a.bindIdentityRedirect)) {
1864
1865
  v.value = !1, setTimeout(() => {
1865
- window.location.href = n.bindIdentityRedirect;
1866
+ window.location.href = a.bindIdentityRedirect;
1866
1867
  }, 300);
1867
1868
  return;
1868
1869
  }
1869
- i("success", {
1870
+ o("success", {
1870
1871
  token: _,
1871
1872
  userId: w || "",
1872
1873
  appId: U || "",
1873
- needBindIdentity: L
1874
+ needBindIdentity: x
1874
1875
  });
1875
1876
  const q = sessionStorage.getItem("auth_redirect");
1876
1877
  sessionStorage.removeItem("auth_redirect");
1877
- const K = q || n.defaultRedirect || "/";
1878
+ const K = q || a.defaultRedirect || "/";
1878
1879
  v.value = !1, setTimeout(() => {
1879
1880
  window.location.href = K;
1880
1881
  }, 500);
1881
1882
  } catch (R) {
1882
- console.error("OAuth 回调处理失败:", R), l.value = "登录处理失败,请重试", v.value = !1, i("error", l.value);
1883
+ console.error("OAuth 回调处理失败:", R), l.value = "登录处理失败,请重试", v.value = !1, o("error", l.value);
1883
1884
  }
1884
1885
  }
1885
- function f() {
1886
- const a = sessionStorage.getItem("auth_redirect");
1887
- sessionStorage.removeItem("auth_redirect"), window.location.href = a || n.defaultRedirect || "/";
1886
+ function m() {
1887
+ const n = sessionStorage.getItem("auth_redirect");
1888
+ sessionStorage.removeItem("auth_redirect"), window.location.href = n || a.defaultRedirect || "/";
1888
1889
  }
1889
1890
  return j(() => {
1890
- const a = new URLSearchParams(window.location.search);
1891
- if (a.has("token") || a.has("error") || a.has("bindSuccess"))
1891
+ const n = new URLSearchParams(window.location.search);
1892
+ if (n.has("token") || n.has("error") || n.has("bindSuccess"))
1892
1893
  d();
1893
1894
  else if (h()) {
1894
1895
  const p = sessionStorage.getItem("auth_redirect");
1895
- sessionStorage.removeItem("auth_redirect"), window.location.href = p || n.defaultRedirect || "/";
1896
+ sessionStorage.removeItem("auth_redirect"), window.location.href = p || a.defaultRedirect || "/";
1896
1897
  } else
1897
1898
  l.value = "无效的访问", v.value = !1;
1898
- }), (a, p) => (c(), b("div", Qt, [v.value ? (c(), b("div", Yt, [p[0] || (p[0] = y("div", {
1899
+ }), (n, p) => (c(), b("div", jt, [v.value ? (c(), b("div", Kt, [p[0] || (p[0] = y("div", {
1899
1900
  class: "spinner"
1900
- }, null, -1)), y("p", null, O(g.loadingText), 1)])) : l.value ? (c(), b("div", Jt, [p[1] || (p[1] = y("div", {
1901
+ }, null, -1)), y("p", null, O(g.loadingText), 1)])) : l.value ? (c(), b("div", Wt, [p[1] || (p[1] = y("div", {
1901
1902
  class: "error-icon"
1902
1903
  }, "✕", -1)), p[2] || (p[2] = y("h2", null, "登录失败", -1)), y("p", null, O(l.value), 1), y("button", {
1903
1904
  class: "retry-btn",
1904
- onClick: f
1905
- }, "返回重试")])) : (c(), b("div", Xt, [p[3] || (p[3] = y("div", {
1905
+ onClick: m
1906
+ }, "返回重试")])) : (c(), b("div", Qt, [p[3] || (p[3] = y("div", {
1906
1907
  class: "success-icon"
1907
- }, "✓", -1)), y("p", null, O(u.value), 1)]))]));
1908
+ }, "✓", -1)), y("p", null, O(r.value), 1)]))]));
1908
1909
  }
1909
- }), Bi = /* @__PURE__ */ P(Zt, [["__scopeId", "data-v-4b4b59a1"]]), ei = {
1910
+ }), Ui = /* @__PURE__ */ P(Jt, [["__scopeId", "data-v-4b4b59a1"]]), Xt = {
1910
1911
  class: "BindEmail"
1911
- }, ti = {
1912
+ }, Yt = {
1912
1913
  class: "content"
1913
- }, ii = {
1914
+ }, Zt = {
1914
1915
  class: "sendVerifyCodeItem"
1915
- }, oi = {
1916
+ }, ei = {
1916
1917
  class: "handle"
1917
- }, si = {
1918
+ }, ti = {
1918
1919
  key: 0,
1919
1920
  class: "skip"
1920
- }, ni = /* @__PURE__ */ z({
1921
+ }, ii = /* @__PURE__ */ z({
1921
1922
  __name: "AuthkitBindEmail",
1922
1923
  props: {
1923
1924
  size: {
@@ -1937,28 +1938,28 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1937
1938
  },
1938
1939
  emits: ["submit", "skip"],
1939
1940
  setup(g, {
1940
- emit: r
1941
+ emit: u
1941
1942
  }) {
1942
- const n = r, i = g, v = S(), l = S(!1), u = S(), e = S({
1943
+ const a = u, o = g, v = S(), l = S(!1), r = S(), e = S({
1943
1944
  email: void 0,
1944
1945
  userToken: void 0,
1945
1946
  emailVerifyId: void 0
1946
1947
  });
1947
1948
  async function h() {
1948
- if (!await u.value.validateField(["email"])) {
1949
+ if (!await r.value.validateField(["email"])) {
1949
1950
  l.value = !0;
1950
1951
  const {
1951
- data: a
1952
+ data: n
1952
1953
  } = await T.verify.email.retry.post({
1953
1954
  email: e.value.email,
1954
1955
  purpose: "bindEmail"
1955
1956
  });
1956
- l.value = !1, a && (e.value.emailVerifyId = a.emailVerifyId, v.value.startCountFn());
1957
+ l.value = !1, n && (e.value.emailVerifyId = n.emailVerifyId, v.value.startCountFn());
1957
1958
  }
1958
1959
  }
1959
- async function o() {
1960
- u.value.validate().then((f) => {
1961
- f || n("submit", {
1960
+ async function i() {
1961
+ r.value.validate().then((m) => {
1962
+ m || a("submit", {
1962
1963
  email: e.value.email,
1963
1964
  userToken: e.value.userToken,
1964
1965
  emailVerifyId: e.value.emailVerifyId
@@ -1966,22 +1967,22 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1966
1967
  });
1967
1968
  }
1968
1969
  function d() {
1969
- n("skip");
1970
+ a("skip");
1970
1971
  }
1971
- return (f, a) => (c(), b("div", ei, [a[4] || (a[4] = y("div", {
1972
+ return (m, n) => (c(), b("div", Xt, [n[4] || (n[4] = y("div", {
1972
1973
  class: "header"
1973
1974
  }, [y("h3", {
1974
1975
  class: "title"
1975
1976
  }, "绑定邮箱"), y("p", {
1976
1977
  class: "subtitle"
1977
- }, "请绑定邮箱以完成账号设置,绑定后可使用邮箱登录")], -1)), y("div", ti, [s(t(M), {
1978
+ }, "请绑定邮箱以完成账号设置,绑定后可使用邮箱登录")], -1)), y("div", Yt, [s(t(L), {
1978
1979
  ref_key: "formRef",
1979
- ref: u,
1980
+ ref: r,
1980
1981
  model: e.value,
1981
- size: i.size,
1982
+ size: o.size,
1982
1983
  "auto-label-width": ""
1983
1984
  }, {
1984
- default: m(() => [s(t(A), {
1985
+ default: f(() => [s(t(A), {
1985
1986
  field: "email",
1986
1987
  label: "邮箱",
1987
1988
  "hide-label": "",
@@ -1993,9 +1994,9 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
1993
1994
  message: "请输入有效的邮箱"
1994
1995
  }]
1995
1996
  }, {
1996
- default: m(() => [s(t(V), {
1997
+ default: f(() => [s(t(V), {
1997
1998
  modelValue: e.value.email,
1998
- "onUpdate:modelValue": a[0] || (a[0] = (p) => e.value.email = p),
1999
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => e.value.email = p),
1999
2000
  placeholder: "请输入邮箱",
2000
2001
  autocomplete: "email",
2001
2002
  type: "email"
@@ -2010,15 +2011,15 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
2010
2011
  message: "请输入验证码"
2011
2012
  }]
2012
2013
  }, {
2013
- default: m(() => [y("div", ii, [s(t(V), {
2014
+ default: f(() => [y("div", Zt, [s(t(V), {
2014
2015
  modelValue: e.value.userToken,
2015
- "onUpdate:modelValue": a[1] || (a[1] = (p) => e.value.userToken = p),
2016
+ "onUpdate:modelValue": n[1] || (n[1] = (p) => e.value.userToken = p),
2016
2017
  placeholder: "请输入验证码",
2017
2018
  autocomplete: "one-time-code"
2018
- }, null, 8, ["modelValue"]), s(G, {
2019
+ }, null, 8, ["modelValue"]), s(D, {
2019
2020
  ref_key: "SendVerifyCodeRef",
2020
2021
  ref: v,
2021
- size: i.size,
2022
+ size: o.size,
2022
2023
  loading: l.value,
2023
2024
  style: {
2024
2025
  "margin-left": "10px"
@@ -2026,31 +2027,31 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
2026
2027
  onSend: h
2027
2028
  }, null, 8, ["size", "loading"])])]),
2028
2029
  _: 1
2029
- }), y("div", oi, [s(t(B), {
2030
+ }), y("div", ei, [s(t(B), {
2030
2031
  type: "primary",
2031
- loading: i.loading,
2032
+ loading: o.loading,
2032
2033
  long: "",
2033
- size: i.size,
2034
- onClick: o
2034
+ size: o.size,
2035
+ onClick: i
2035
2036
  }, {
2036
- default: m(() => [...a[2] || (a[2] = [$(" 绑定邮箱 ", -1)])]),
2037
+ default: f(() => [...n[2] || (n[2] = [$(" 绑定邮箱 ", -1)])]),
2037
2038
  _: 1
2038
2039
  }, 8, ["loading", "size"])])]),
2039
2040
  _: 1
2040
- }, 8, ["model", "size"])]), i.showSkip ? (c(), b("div", si, [s(t(E), {
2041
+ }, 8, ["model", "size"])]), o.showSkip ? (c(), b("div", ti, [s(t(F), {
2041
2042
  onClick: d
2042
2043
  }, {
2043
- default: m(() => [...a[3] || (a[3] = [$("稍后绑定", -1)])]),
2044
+ default: f(() => [...n[3] || (n[3] = [$("稍后绑定", -1)])]),
2044
2045
  _: 1
2045
2046
  })])) : I("", !0)]));
2046
2047
  }
2047
- }), Ti = /* @__PURE__ */ P(ni, [["__scopeId", "data-v-2432c885"]]), ai = {
2048
+ }), $i = /* @__PURE__ */ P(ii, [["__scopeId", "data-v-2432c885"]]), oi = {
2048
2049
  class: "oauth-binding-account"
2049
- }, li = {
2050
+ }, si = {
2050
2051
  class: "oauth-binding-account__info"
2051
- }, ri = {
2052
+ }, ai = {
2052
2053
  class: "oauth-binding-account__name"
2053
- }, ui = /* @__PURE__ */ z({
2054
+ }, ni = /* @__PURE__ */ z({
2054
2055
  __name: "AuthkitGithubBinding",
2055
2056
  props: {
2056
2057
  size: {
@@ -2060,21 +2061,21 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
2060
2061
  },
2061
2062
  setup(g) {
2062
2063
  const {
2063
- userProfile: r,
2064
- fetchUserProfile: n
2065
- } = J(), i = S("hidden"), v = S(!1);
2064
+ userProfile: u,
2065
+ fetchUserProfile: a
2066
+ } = J(), o = S("hidden"), v = S(!1);
2066
2067
  let l;
2067
- const u = g, e = C(() => {
2068
+ const r = g, e = C(() => {
2068
2069
  var _, w, U;
2069
- return ((w = (_ = r.value) == null ? void 0 : _.github) == null ? void 0 : w.avatar_url) || ((U = r.value) == null ? void 0 : U.avatar) || "";
2070
+ return ((w = (_ = u.value) == null ? void 0 : _.github) == null ? void 0 : w.avatar_url) || ((U = u.value) == null ? void 0 : U.avatar) || "";
2070
2071
  }), {
2071
2072
  getOauthCallbackUrl: h
2072
- } = fe();
2073
- function o(_) {
2074
- i.value = _;
2073
+ } = ue();
2074
+ function i(_) {
2075
+ o.value = _;
2075
2076
  }
2076
2077
  async function d() {
2077
- const _ = be.appId;
2078
+ const _ = ye.appId;
2078
2079
  if (!_) {
2079
2080
  console.error("GitHub OAuth 失败: appId 未配置");
2080
2081
  return;
@@ -2093,155 +2094,105 @@ const ze = ["title", "aria-label"], Pe = /* @__PURE__ */ z({
2093
2094
  v.value = !0, window.open(U, "_blank");
2094
2095
  }
2095
2096
  }
2096
- async function f() {
2097
+ async function m() {
2097
2098
  const {
2098
2099
  error: _
2099
2100
  } = await T.users.unbind.oauth.post({
2100
2101
  provider: "github"
2101
2102
  });
2102
- _ || (ee.success("解绑成功"), i.value = "hidden", n());
2103
+ _ || (Z.success("解绑成功"), o.value = "hidden", a());
2103
2104
  }
2104
- function a() {
2105
- i.value === "bind" && (i.value = "hidden", d()), i.value === "unbind" && f();
2105
+ function n() {
2106
+ o.value === "bind" && (o.value = "hidden", d()), o.value === "unbind" && m();
2106
2107
  }
2107
2108
  function p() {
2108
- v.value && n();
2109
+ v.value && a();
2109
2110
  }
2110
2111
  return j(() => {
2111
- r.value || n(), l = setInterval(p, 1e3);
2112
- }), oe(() => {
2112
+ u.value || a(), l = setInterval(p, 1e3);
2113
+ }), ie(() => {
2113
2114
  l && clearInterval(l);
2114
2115
  }), (_, w) => {
2115
- var U, L, R;
2116
- return c(), b(D, null, [!((U = t(r)) != null && U.github) && i.value === "hidden" ? (c(), k(t(re), {
2116
+ var U, x, R;
2117
+ return c(), b(G, null, [!((U = t(u)) != null && U.github) && o.value === "hidden" ? (c(), k(t(le), {
2117
2118
  key: 0,
2118
2119
  title: "绑定GitHub"
2119
2120
  }, {
2120
- action: m(() => [s(t(B), {
2121
- size: u.size,
2121
+ action: f(() => [s(t(B), {
2122
+ size: r.size,
2122
2123
  type: "primary",
2123
- onClick: w[0] || (w[0] = (q) => o("bind"))
2124
+ onClick: w[0] || (w[0] = (q) => i("bind"))
2124
2125
  }, {
2125
- default: m(() => [...w[2] || (w[2] = [$(" 绑定GitHub ", -1)])]),
2126
+ default: f(() => [...w[2] || (w[2] = [$(" 绑定GitHub ", -1)])]),
2126
2127
  _: 1
2127
2128
  }, 8, ["size"])]),
2128
- default: m(() => [w[3] || (w[3] = $(" 您还未绑定GitHub账号,请点击绑定。 ", -1))]),
2129
+ default: f(() => [w[3] || (w[3] = $(" 您还未绑定GitHub账号,请点击绑定。 ", -1))]),
2129
2130
  _: 1
2130
- })) : I("", !0), (L = t(r)) != null && L.github && i.value === "hidden" ? (c(), k(t(re), {
2131
+ })) : I("", !0), (x = t(u)) != null && x.github && o.value === "hidden" ? (c(), k(t(le), {
2131
2132
  key: 1,
2132
2133
  title: "解绑GitHub"
2133
2134
  }, {
2134
- action: m(() => [s(t(B), {
2135
- size: u.size,
2135
+ action: f(() => [s(t(B), {
2136
+ size: r.size,
2136
2137
  type: "primary",
2137
- onClick: w[1] || (w[1] = (q) => o("unbind"))
2138
+ onClick: w[1] || (w[1] = (q) => i("unbind"))
2138
2139
  }, {
2139
- default: m(() => [...w[5] || (w[5] = [$(" 解绑GitHub ", -1)])]),
2140
+ default: f(() => [...w[5] || (w[5] = [$(" 解绑GitHub ", -1)])]),
2140
2141
  _: 1
2141
2142
  }, 8, ["size"])]),
2142
- default: m(() => {
2143
+ default: f(() => {
2143
2144
  var q, K;
2144
- return [y("div", ai, [e.value ? (c(), k(t(H), {
2145
+ return [y("div", oi, [e.value ? (c(), k(t(E), {
2145
2146
  key: 0,
2146
2147
  class: "oauth-binding-account__avatar",
2147
2148
  "image-url": e.value,
2148
2149
  size: 42
2149
- }, null, 8, ["image-url"])) : (c(), k(t(H), {
2150
+ }, null, 8, ["image-url"])) : (c(), k(t(E), {
2150
2151
  key: 1,
2151
2152
  class: "oauth-binding-account__avatar oauth-binding-account__avatar--placeholder",
2152
2153
  size: 42
2153
2154
  }, {
2154
- default: m(() => [s(t(me), {
2155
+ default: f(() => [s(t(de), {
2155
2156
  icon: "bi:github",
2156
2157
  width: 22
2157
2158
  })]),
2158
2159
  _: 1
2159
- })), y("div", li, [w[4] || (w[4] = y("div", {
2160
+ })), y("div", si, [w[4] || (w[4] = y("div", {
2160
2161
  class: "oauth-binding-account__provider"
2161
- }, "GitHub", -1)), y("div", ri, O(((K = (q = t(r)) == null ? void 0 : q.github) == null ? void 0 : K.login) || "GitHub"), 1)])])];
2162
+ }, "GitHub", -1)), y("div", ai, O(((K = (q = t(u)) == null ? void 0 : q.github) == null ? void 0 : K.login) || "GitHub"), 1)])])];
2162
2163
  }),
2163
2164
  _: 1
2164
- })) : I("", !0), i.value === "bind" || i.value === "unbind" ? (c(), k(ke, {
2165
+ })) : I("", !0), o.value === "bind" || o.value === "unbind" ? (c(), k(_e, {
2165
2166
  key: 2,
2166
- size: u.size,
2167
- email: (R = t(r)) == null ? void 0 : R.email,
2168
- onNext: a
2167
+ size: r.size,
2168
+ email: (R = t(u)) == null ? void 0 : R.email,
2169
+ onNext: n
2169
2170
  }, null, 8, ["size", "email"])) : I("", !0)], 64);
2170
2171
  };
2171
2172
  }
2172
- }), Oi = /* @__PURE__ */ P(ui, [["__scopeId", "data-v-6ab8a1f9"]]), di = "jwtToken";
2173
- let Y = null, ue = !1;
2174
- async function ci(g) {
2175
- g.intent && await g.intent();
2176
- }
2177
- function pi() {
2178
- if (ue) return;
2179
- ue = !0;
2180
- const {
2181
- onSignIn: g
2182
- } = x();
2183
- g(() => {
2184
- const r = Y;
2185
- Y = null, r && ci(r);
2186
- });
2187
- }
2188
- function de() {
2189
- try {
2190
- return localStorage.getItem(di);
2191
- } catch {
2192
- return null;
2193
- }
2194
- }
2195
- function xi() {
2196
- pi();
2197
- const {
2198
- jwtToken: g
2199
- } = x(), {
2200
- open: r
2201
- } = pe(), n = C(() => !!(g.value || de()));
2202
- function i() {
2203
- return !!(g.value || de());
2204
- }
2205
- function v(u) {
2206
- return i() ? !0 : (Y = {
2207
- intent: u ?? null
2208
- }, r({
2209
- view: "signIn"
2210
- }), !1);
2211
- }
2212
- function l() {
2213
- Y = null;
2214
- }
2215
- return {
2216
- isAuthenticatedRef: n,
2217
- isAuthenticated: i,
2218
- ensureAuthenticated: v,
2219
- clearPendingIntent: l
2220
- };
2221
- }
2173
+ }), Ci = /* @__PURE__ */ P(ni, [["__scopeId", "data-v-6ab8a1f9"]]);
2222
2174
  export {
2223
- Tt as A,
2175
+ Rt as A,
2224
2176
  W as O,
2225
- tt as P,
2226
- Ke as R,
2227
- Je as S,
2228
- Lt as _,
2229
- Ri as a,
2230
- xt as b,
2231
- ge as c,
2232
- qi as d,
2233
- Ti as e,
2234
- Oi as f,
2235
- Bi as g,
2236
- Ce as h,
2237
- Oe as i,
2238
- Fe as j,
2239
- Ci as k,
2240
- yt as l,
2241
- dt as m,
2242
- Ut as n,
2243
- It as o,
2244
- le as p,
2245
- ve as q,
2246
- xi as u
2177
+ Ye as P,
2178
+ Ge as R,
2179
+ We as S,
2180
+ Tt as _,
2181
+ Ai as a,
2182
+ Bt as b,
2183
+ pe as c,
2184
+ Vi as d,
2185
+ $i as e,
2186
+ Ci as f,
2187
+ Ui as g,
2188
+ Ve as h,
2189
+ qe as i,
2190
+ xe as j,
2191
+ Pi as k,
2192
+ vt as l,
2193
+ lt as m,
2194
+ Pt as n,
2195
+ bt as o,
2196
+ ne as p,
2197
+ ce as q
2247
2198
  };