@huyooo/ui 0.5.58 → 0.5.59

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 (43) hide show
  1. package/dist/{AuthkitAuthModal-BVXtE_sP.js → AuthkitAuthModal-BSvtvlyj.js} +789 -748
  2. package/dist/AuthkitOAuthCallback-DQ1RAKyR.js +330 -0
  3. package/dist/{Clipboard-CXQgZeZq.js → Clipboard-BAn3vQlX.js} +1 -1
  4. package/dist/{Contact-ZkK_OxmG.js → Contact-CDelrtDR.js} +2 -2
  5. package/dist/{FeedbackItem-BZ3zskgs.js → FeedbackItem-B9lo9J0G.js} +3 -3
  6. package/dist/{FeedbackModal-CLRw0hmp.js → FeedbackModal-DWJmFtvY.js} +3 -3
  7. package/dist/{MessageHandle-cK3Z3tfe.js → MessageHandle-BlsLRmdj.js} +3 -3
  8. package/dist/{PaySubscriptions-DlV3SHOV.js → PaySubscriptions-Vj0KnZGv.js} +3 -3
  9. package/dist/{ReferrerReferees-DBOVVD_R.js → ReferrerReferees-D8hYkkAy.js} +4 -4
  10. package/dist/{Upload.vue_vue_type_script_setup_true_lang-bvoyktaa.js → Upload.vue_vue_type_script_setup_true_lang-BYlxlhfb.js} +2 -2
  11. package/dist/{UserAccountMenu-BbHFa60w.js → UserAccountMenu-BWx4hX66.js} +7 -7
  12. package/dist/{WidthContainer-VdifT6ZJ.js → WidthContainer-DiEkVFtH.js} +6 -6
  13. package/dist/api/Authkit/OAuth.d.ts +7 -4
  14. package/dist/{auth-CDARHcht.js → auth-bwwc2iT8.js} +60 -59
  15. package/dist/authkit.d.ts +2 -0
  16. package/dist/authkit.js +23 -21
  17. package/dist/common/globalConfig.d.ts +4 -0
  18. package/dist/common.js +1 -1
  19. package/dist/components/Authkit/Auth/AuthkitOAuthCallback.vue.d.ts +22 -0
  20. package/dist/components/Authkit/Auth/AuthkitOAuthList.vue.d.ts +1 -1
  21. package/dist/components/InfiniteLoading.vue.d.ts +1 -1
  22. package/dist/composables/Authkit/useAuthkitAuth.d.ts +2 -0
  23. package/dist/composables/Authkit/useAuthkitOAuth.d.ts +13 -3
  24. package/dist/composables.js +9 -9
  25. package/dist/feedback.js +3 -3
  26. package/dist/index.js +179 -177
  27. package/dist/message.js +2 -2
  28. package/dist/pay.js +1 -1
  29. package/dist/privateCom.js +1 -1
  30. package/dist/referrer.js +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/upload.js +2 -2
  33. package/dist/{useAuthkitAppsAuthPageInfo-h9CL-MmH.js → useAuthkitAppsAuthPageInfo-CzZmhPMm.js} +1 -1
  34. package/dist/{useAuthkitCreateAndUpdate-Bsl_uyGQ.js → useAuthkitCreateAndUpdate-Co5wMbv7.js} +1 -1
  35. package/dist/{useAuthkitUsersProfile-B_uMdnat.js → useAuthkitUsersProfile-hZ9L3rYe.js} +93 -71
  36. package/dist/{useDownloads-05u8toS3.js → useDownloads-C0V_Sjr9.js} +1 -1
  37. package/dist/{useMessageNotifications-CAiVf4PX.js → useMessageNotifications-BT84SOgI.js} +1 -1
  38. package/dist/{useSEO-D5sci2ek.js → useSEO-DT8VkGVt.js} +2 -2
  39. package/dist/{useTableHandle-aJOWPWFL.js → useTableHandle-DaKaAKAH.js} +1 -1
  40. package/dist/{useUploadCos-DKh-eczm.js → useUploadCos-_xwV40NS.js} +1 -1
  41. package/dist/user.js +1 -1
  42. package/package.json +1 -1
  43. package/dist/AuthkitAuthorize-Cu6_4HoY.js +0 -248
@@ -1,21 +1,21 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { defineComponent as I, computed as G, createElementBlock as P, openBlock as g, normalizeStyle as ie, normalizeClass as we, createElementVNode as z, ref as _, createBlock as k, unref as e, withCtx as s, createVNode as i, createTextVNode as w, onMounted as K, onUnmounted as oe, withDirectives as be, toDisplayString as R, vShow as ke, Fragment as F, createCommentVNode as S, renderList as ze, isRef as re, useSlots as Se, renderSlot as ue } from "vue";
5
- import { Form as H, FormItem as A, Avatar as de, Input as q, Textarea as Ae, Button as V, Message as D, Alert as E, Space as Y, InputPassword as Ie, Result as Ve, Modal as me, Divider as Pe, Link as M } from "@arco-design/web-vue";
4
+ import { defineComponent as I, computed as F, createElementBlock as V, openBlock as g, normalizeStyle as le, normalizeClass as ke, createElementVNode as z, ref as w, createBlock as k, unref as e, withCtx as n, createVNode as i, createTextVNode as _, onMounted as Z, onUnmounted as re, withDirectives as ze, toDisplayString as R, vShow as Se, Fragment as M, createCommentVNode as S, renderList as Ae, isRef as ue, useSlots as Ie, renderSlot as de } from "vue";
5
+ import { Form as G, FormItem as A, Avatar as ce, Input as q, Textarea as Pe, Button as P, Message as N, Alert as D, Space as ee, InputPassword as Ve, Result as Ue, Modal as me, Divider as $e, Link as j } from "@arco-design/web-vue";
6
6
  /* empty css */
7
- import { g as N, c as Z, h as ce, u as Ue } from "./auth-CDARHcht.js";
7
+ import { g as E, c as H, h as fe, u as Ce } from "./auth-bwwc2iT8.js";
8
8
  /* empty css */
9
- import { u as Ce } from "./useUploadCos-DKh-eczm.js";
10
- import { b as $e, c as ae, d as xe, a as J, e as qe, f as Te, u as Q, g as Re, h as Le } from "./useAuthkitUsersProfile-B_uMdnat.js";
11
- import { _ as Be, g as Oe, i as Ee } from "./plugin-vue_export-helper-LjDO2Zua.js";
12
- import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- import { M as De } from "./Menu-BjWB9hre.js";
14
- import { u as Ge } from "./useAuthkitCreateAndUpdate-Bsl_uyGQ.js";
15
- import { u as le } from "./useAuthkitAppsAuthPageInfo-h9CL-MmH.js";
9
+ import { u as xe } from "./useUploadCos-_xwV40NS.js";
10
+ import { b as qe, c as oe, d as Te, a as J, e as Re, f as Le, u as Q, g as Be, h as Oe } from "./useAuthkitUsersProfile-hZ9L3rYe.js";
11
+ import { _ as Ee, g as De, i as Ne } from "./plugin-vue_export-helper-LjDO2Zua.js";
12
+ import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
+ import { M as Fe } from "./Menu-BjWB9hre.js";
14
+ import { u as Ge } from "./useAuthkitCreateAndUpdate-Co5wMbv7.js";
15
+ import { u as se } from "./useAuthkitAppsAuthPageInfo-CzZmhPMm.js";
16
16
  /* empty css */
17
- import { Icon as He } from "@iconify/vue";
18
- const Ne = I({
17
+ import { Icon as Me } from "@iconify/vue";
18
+ const He = I({
19
19
  name: "IconCamera",
20
20
  props: {
21
21
  size: {
@@ -28,63 +28,63 @@ const Ne = I({
28
28
  strokeLinecap: {
29
29
  type: String,
30
30
  default: "butt",
31
- validator: (u) => ["butt", "round", "square"].includes(u)
31
+ validator: (s) => ["butt", "round", "square"].includes(s)
32
32
  },
33
33
  strokeLinejoin: {
34
34
  type: String,
35
35
  default: "miter",
36
- validator: (u) => ["arcs", "bevel", "miter", "miter-clip", "round"].includes(u)
36
+ validator: (s) => ["arcs", "bevel", "miter", "miter-clip", "round"].includes(s)
37
37
  },
38
38
  rotate: Number,
39
39
  spin: Boolean
40
40
  },
41
41
  emits: {
42
- click: (u) => !0
42
+ click: (s) => !0
43
43
  },
44
- setup(u, {
45
- emit: o
44
+ setup(s, {
45
+ emit: r
46
46
  }) {
47
- const a = Oe("icon"), n = G(() => [a, `${a}-camera`, {
48
- [`${a}-spin`]: u.spin
49
- }]), r = G(() => {
47
+ const u = De("icon"), a = F(() => [u, `${u}-camera`, {
48
+ [`${u}-spin`]: s.spin
49
+ }]), o = F(() => {
50
50
  const t = {};
51
- return u.size && (t.fontSize = Ee(u.size) ? `${u.size}px` : u.size), u.rotate && (t.transform = `rotate(${u.rotate}deg)`), t;
51
+ return s.size && (t.fontSize = Ne(s.size) ? `${s.size}px` : s.size), s.rotate && (t.transform = `rotate(${s.rotate}deg)`), t;
52
52
  });
53
53
  return {
54
- cls: n,
55
- innerStyle: r,
54
+ cls: a,
55
+ innerStyle: o,
56
56
  onClick: (t) => {
57
- o("click", t);
57
+ r("click", t);
58
58
  }
59
59
  };
60
60
  }
61
- }), Fe = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
62
- function Me(u, o, a, n, r, m) {
63
- return g(), P("svg", {
61
+ }), je = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
62
+ function We(s, r, u, a, o, d) {
63
+ return g(), V("svg", {
64
64
  viewBox: "0 0 48 48",
65
65
  fill: "none",
66
66
  xmlns: "http://www.w3.org/2000/svg",
67
67
  stroke: "currentColor",
68
- class: we(u.cls),
69
- style: ie(u.innerStyle),
70
- "stroke-width": u.strokeWidth,
71
- "stroke-linecap": u.strokeLinecap,
72
- "stroke-linejoin": u.strokeLinejoin,
73
- onClick: o[0] || (o[0] = (...t) => u.onClick && u.onClick(...t))
74
- }, o[1] || (o[1] = [z("path", {
68
+ class: ke(s.cls),
69
+ style: le(s.innerStyle),
70
+ "stroke-width": s.strokeWidth,
71
+ "stroke-linecap": s.strokeLinecap,
72
+ "stroke-linejoin": s.strokeLinejoin,
73
+ onClick: r[0] || (r[0] = (...t) => s.onClick && s.onClick(...t))
74
+ }, r[1] || (r[1] = [z("path", {
75
75
  d: "m33 12-1.862-3.724A.5.5 0 0 0 30.691 8H17.309a.5.5 0 0 0-.447.276L15 12m16 14a7 7 0 1 1-14 0 7 7 0 0 1 14 0ZM7 40h34a1 1 0 0 0 1-1V13a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1Z"
76
- }, null, -1)]), 14, Fe);
76
+ }, null, -1)]), 14, je);
77
77
  }
78
- var ee = /* @__PURE__ */ Be(Ne, [["render", Me]]);
79
- const je = Object.assign(ee, {
80
- install: (u, o) => {
81
- var a;
82
- const n = (a = o == null ? void 0 : o.iconPrefix) != null ? a : "";
83
- u.component(n + ee.name, ee);
78
+ var te = /* @__PURE__ */ Ee(He, [["render", We]]);
79
+ const Ke = Object.assign(te, {
80
+ install: (s, r) => {
81
+ var u;
82
+ const a = (u = r == null ? void 0 : r.iconPrefix) != null ? u : "";
83
+ s.component(a + te.name, te);
84
84
  }
85
- }), We = {
85
+ }), Ze = {
86
86
  class: "handle"
87
- }, Ke = /* @__PURE__ */ I({
87
+ }, Je = /* @__PURE__ */ I({
88
88
  __name: "AuthkitPersonalInformation",
89
89
  props: {
90
90
  size: {
@@ -93,39 +93,39 @@ const je = Object.assign(ee, {
93
93
  }
94
94
  },
95
95
  emits: ["submit"],
96
- setup(u, {
97
- emit: o
96
+ setup(s, {
97
+ emit: r
98
98
  }) {
99
- const a = o, n = u, r = _({
99
+ const u = r, a = s, o = w({
100
100
  id: void 0,
101
101
  nickname: "",
102
102
  description: "",
103
103
  avatar: "",
104
104
  avatarUrl: ""
105
- }), m = _(!1), t = _(), l = _(!1);
105
+ }), d = w(!1), t = w(), l = w(!1);
106
106
  function y() {
107
- l.value = !0, $e().then(({
108
- data: d
107
+ l.value = !0, qe().then(({
108
+ data: c
109
109
  }) => {
110
- l.value = !1, r.value.id = d.id, r.value.nickname = d.nickname, r.value.description = d.description, r.value.avatar = d.avatar, r.value.avatarUrl = d.avatarUrl;
110
+ l.value = !1, o.value.id = c.id, o.value.nickname = c.nickname, o.value.description = c.description, o.value.avatar = c.avatar, o.value.avatarUrl = c.avatarUrl;
111
111
  }).catch(() => {
112
112
  l.value = !1;
113
113
  });
114
114
  }
115
- function f() {
116
- t.value.validate().then((d) => {
117
- if (!d) {
115
+ function m() {
116
+ t.value.validate().then((c) => {
117
+ if (!c) {
118
118
  l.value = !0;
119
- const c = {
120
- id: r.value.id,
121
- nickname: r.value.nickname,
122
- description: r.value.description,
123
- avatar: r.value.avatar
119
+ const f = {
120
+ id: o.value.id,
121
+ nickname: o.value.nickname,
122
+ description: o.value.description,
123
+ avatar: o.value.avatar
124
124
  };
125
- ae(c).then(({
125
+ oe(f).then(({
126
126
  data: v
127
127
  }) => {
128
- l.value = !1, D.success("更新成功"), r.value.avatarUrl = v.avatarUrl, a("submit");
128
+ l.value = !1, N.success("更新成功"), o.value.avatarUrl = v.avatarUrl, u("submit");
129
129
  }).catch(() => {
130
130
  l.value = !1;
131
131
  });
@@ -135,50 +135,50 @@ const je = Object.assign(ee, {
135
135
  y();
136
136
  const p = () => {
137
137
  const {
138
- uploadFile: d
139
- } = Ce(), c = document.createElement("input");
140
- c.type = "file", c.accept = "image/*", c.style.display = "none", document.body.append(c), c.addEventListener("change", async (v) => {
141
- var C;
142
- const U = (C = v.target.files) == null ? void 0 : C[0];
138
+ uploadFile: c
139
+ } = xe(), f = document.createElement("input");
140
+ f.type = "file", f.accept = "image/*", f.style.display = "none", document.body.append(f), f.addEventListener("change", async (v) => {
141
+ var $;
142
+ const U = ($ = v.target.files) == null ? void 0 : $[0];
143
143
  if (U) {
144
- m.value = !0;
144
+ d.value = !0;
145
145
  try {
146
- d({
147
- bucketId: N.avatarBucketId,
146
+ c({
147
+ bucketId: E.avatarBucketId,
148
148
  file: U,
149
149
  onFileFinish(T, B, O) {
150
- m.value = !0;
151
- const j = {
152
- id: r.value.id,
153
- nickname: r.value.nickname,
154
- description: r.value.description,
150
+ d.value = !0;
151
+ const W = {
152
+ id: o.value.id,
153
+ nickname: o.value.nickname,
154
+ description: o.value.description,
155
155
  avatar: O.Key
156
156
  };
157
- ae(j).then(() => {
158
- m.value = !1, D.success("更新成功"), y(), a("submit");
157
+ oe(W).then(() => {
158
+ d.value = !1, N.success("更新成功"), y(), u("submit");
159
159
  }).catch(() => {
160
- m.value = !1;
160
+ d.value = !1;
161
161
  });
162
162
  },
163
163
  onError(T) {
164
- console.error("上传图片失败"), m.value = !1;
164
+ console.error("上传图片失败"), d.value = !1;
165
165
  }
166
166
  });
167
167
  } catch (T) {
168
- console.error("上传图片失败", T), m.value = !1;
168
+ console.error("上传图片失败", T), d.value = !1;
169
169
  }
170
170
  }
171
- c.remove();
172
- }), c.click();
171
+ f.remove();
172
+ }), f.click();
173
173
  };
174
- return (d, c) => (g(), k(e(H), {
174
+ return (c, f) => (g(), k(e(G), {
175
175
  ref_key: "formRef",
176
176
  ref: t,
177
- model: r.value,
177
+ model: o.value,
178
178
  "auto-label-width": "",
179
- size: n.size
179
+ size: a.size
180
180
  }, {
181
- default: s(() => [i(e(A), {
181
+ default: n(() => [i(e(A), {
182
182
  field: "avatar",
183
183
  label: "头像",
184
184
  rules: [{
@@ -186,8 +186,8 @@ const je = Object.assign(ee, {
186
186
  message: "请上传头像"
187
187
  }]
188
188
  }, {
189
- default: s(() => [i(e(de), {
190
- "image-url": r.value.avatarUrl,
189
+ default: n(() => [i(e(ce), {
190
+ "image-url": o.value.avatarUrl,
191
191
  size: 42,
192
192
  "object-fit": "cover",
193
193
  "trigger-icon-style": {
@@ -195,7 +195,7 @@ const je = Object.assign(ee, {
195
195
  },
196
196
  onClick: p
197
197
  }, {
198
- "trigger-icon": s(() => [i(e(je))]),
198
+ "trigger-icon": n(() => [i(e(Ke))]),
199
199
  _: 1
200
200
  }, 8, ["image-url"])]),
201
201
  _: 1
@@ -207,9 +207,9 @@ const je = Object.assign(ee, {
207
207
  message: "请输入昵称"
208
208
  }]
209
209
  }, {
210
- default: s(() => [i(e(q), {
211
- modelValue: r.value.nickname,
212
- "onUpdate:modelValue": c[0] || (c[0] = (v) => r.value.nickname = v),
210
+ default: n(() => [i(e(q), {
211
+ modelValue: o.value.nickname,
212
+ "onUpdate:modelValue": f[0] || (f[0] = (v) => o.value.nickname = v),
213
213
  placeholder: "请输入昵称"
214
214
  }, null, 8, ["modelValue"])]),
215
215
  _: 1
@@ -221,9 +221,9 @@ const je = Object.assign(ee, {
221
221
  message: "请输入描述"
222
222
  }]
223
223
  }, {
224
- default: s(() => [i(e(Ae), {
225
- modelValue: r.value.description,
226
- "onUpdate:modelValue": c[1] || (c[1] = (v) => r.value.description = v),
224
+ default: n(() => [i(e(Pe), {
225
+ modelValue: o.value.description,
226
+ "onUpdate:modelValue": f[1] || (f[1] = (v) => o.value.description = v),
227
227
  placeholder: "请输入描述",
228
228
  "allow-clear": "",
229
229
  "auto-size": {
@@ -236,12 +236,12 @@ const je = Object.assign(ee, {
236
236
  label: "",
237
237
  rules: []
238
238
  }, {
239
- default: s(() => [z("div", We, [i(e(V), {
239
+ default: n(() => [z("div", Ze, [i(e(P), {
240
240
  type: "primary",
241
241
  loading: l.value,
242
- onClick: f
242
+ onClick: m
243
243
  }, {
244
- default: s(() => [...c[2] || (c[2] = [w(" 提交 ", -1)])]),
244
+ default: n(() => [...f[2] || (f[2] = [_(" 提交 ", -1)])]),
245
245
  _: 1
246
246
  }, 8, ["loading"])])]),
247
247
  _: 1
@@ -249,29 +249,29 @@ const je = Object.assign(ee, {
249
249
  _: 1
250
250
  }, 8, ["model", "size"]));
251
251
  }
252
- }), Ze = /* @__PURE__ */ $(Ke, [["__scopeId", "data-v-c241b7f8"]]);
253
- function Je(u) {
254
- return Z({
255
- url: `${N.authPrefixUrl}/restfulApi/verify/email`,
252
+ }), Qe = /* @__PURE__ */ C(Je, [["__scopeId", "data-v-c241b7f8"]]);
253
+ function Xe(s) {
254
+ return H({
255
+ url: `${E.authPrefixUrl}/restfulApi/verify/email`,
256
256
  method: "post",
257
- data: u
257
+ data: s
258
258
  });
259
259
  }
260
- function X(u) {
261
- return Z({
262
- url: `${N.authPrefixUrl}/restfulApi/verify/email/retry`,
260
+ function X(s) {
261
+ return H({
262
+ url: `${E.authPrefixUrl}/restfulApi/verify/email/retry`,
263
263
  method: "post",
264
- data: u
264
+ data: s
265
265
  });
266
266
  }
267
- function Qe(u) {
268
- return Z({
269
- url: `${N.authPrefixUrl}/restfulApi/verify/password`,
267
+ function Ye(s) {
268
+ return H({
269
+ url: `${E.authPrefixUrl}/restfulApi/verify/password`,
270
270
  method: "post",
271
- data: u
271
+ data: s
272
272
  });
273
273
  }
274
- const Xe = /* @__PURE__ */ I({
274
+ const et = /* @__PURE__ */ I({
275
275
  __name: "AuthkitSendVerifyCode",
276
276
  props: {
277
277
  size: {
@@ -285,45 +285,45 @@ const Xe = /* @__PURE__ */ I({
285
285
  }
286
286
  },
287
287
  emits: ["send"],
288
- setup(u, {
289
- expose: o,
290
- emit: a
288
+ setup(s, {
289
+ expose: r,
290
+ emit: u
291
291
  }) {
292
- const n = a, r = u, m = _(!1);
292
+ const a = u, o = s, d = w(!1);
293
293
  let t;
294
- const l = _(0), y = G(() => l.value.toString().padStart(2, "0")), f = G(() => l.value > 0), p = () => {
295
- m.value && (l.value <= 0 ? (clearInterval(t), m.value = !1) : l.value--);
294
+ const l = w(0), y = F(() => l.value.toString().padStart(2, "0")), m = F(() => l.value > 0), p = () => {
295
+ d.value && (l.value <= 0 ? (clearInterval(t), d.value = !1) : l.value--);
296
296
  };
297
- function d() {
298
- n("send");
299
- }
300
297
  function c() {
301
- l.value = 60, m.value = !0, t && clearInterval(t), t = setInterval(p, 1e3);
298
+ a("send");
299
+ }
300
+ function f() {
301
+ l.value = 60, d.value = !0, t && clearInterval(t), t = setInterval(p, 1e3);
302
302
  }
303
- return K(() => {
304
- }), o({
305
- startCountFn: c
306
- }), oe(() => {
303
+ return Z(() => {
304
+ }), r({
305
+ startCountFn: f
306
+ }), re(() => {
307
307
  t && clearInterval(t);
308
- }), (v, b) => (g(), k(e(V), {
308
+ }), (v, b) => (g(), k(e(P), {
309
309
  class: "OAuthItem",
310
310
  type: "primary",
311
- size: r.size,
312
- disabled: f.value,
313
- loading: r.loading,
314
- onClick: d
311
+ size: o.size,
312
+ disabled: m.value,
313
+ loading: o.loading,
314
+ onClick: c
315
315
  }, {
316
- default: s(() => [b[0] || (b[0] = z("span", null, " 发送验证码", -1)), be(z("span", {
316
+ default: n(() => [b[0] || (b[0] = z("span", null, " 发送验证码", -1)), ze(z("span", {
317
317
  class: "verify-code-timer"
318
- }, R(`(${y.value})`), 513), [[ke, f.value]])]),
318
+ }, R(`(${y.value})`), 513), [[Se, m.value]])]),
319
319
  _: 1
320
320
  }, 8, ["size", "disabled", "loading"]));
321
321
  }
322
- }), se = /* @__PURE__ */ $(Xe, [["__scopeId", "data-v-2883dc6d"]]), Ye = {
322
+ }), ne = /* @__PURE__ */ C(et, [["__scopeId", "data-v-2883dc6d"]]), tt = {
323
323
  class: "sendVerifyCodeItem"
324
- }, et = {
324
+ }, it = {
325
325
  class: "handle"
326
- }, tt = /* @__PURE__ */ I({
326
+ }, lt = /* @__PURE__ */ I({
327
327
  __name: "AuthkitEmailVerify",
328
328
  props: {
329
329
  email: {
@@ -337,49 +337,49 @@ const Xe = /* @__PURE__ */ I({
337
337
  }
338
338
  },
339
339
  emits: ["next"],
340
- setup(u, {
341
- emit: o
340
+ setup(s, {
341
+ emit: r
342
342
  }) {
343
- const a = o, n = u, r = G(() => ce(n.email)), m = _(), t = _(!1), l = _(!1), y = _(), f = _({
343
+ const u = r, a = s, o = F(() => fe(a.email)), d = w(), t = w(!1), l = w(!1), y = w(), m = w({
344
344
  userToken: void 0,
345
345
  emailVerifyId: void 0
346
346
  });
347
347
  async function p() {
348
348
  t.value = !0, X({
349
- email: n.email
349
+ email: a.email
350
350
  }).then(({
351
- data: c
351
+ data: f
352
352
  }) => {
353
- f.value.emailVerifyId = c.emailVerifyId, t.value = !1, m.value.startCountFn();
353
+ m.value.emailVerifyId = f.emailVerifyId, t.value = !1, d.value.startCountFn();
354
354
  }).catch(() => {
355
355
  t.value = !1;
356
356
  });
357
357
  }
358
- async function d() {
359
- y.value.validate(["userToken"]).then((c) => {
360
- if (!c) {
358
+ async function c() {
359
+ y.value.validate(["userToken"]).then((f) => {
360
+ if (!f) {
361
361
  l.value = !0;
362
362
  const v = {
363
- email: n.email,
364
- userToken: f.value.userToken,
365
- emailVerifyId: f.value.emailVerifyId
363
+ email: a.email,
364
+ userToken: m.value.userToken,
365
+ emailVerifyId: m.value.emailVerifyId
366
366
  };
367
- Je(v).then(() => {
368
- l.value = !1, a("next");
367
+ Xe(v).then(() => {
368
+ l.value = !1, u("next");
369
369
  }).catch(() => {
370
370
  l.value = !1;
371
371
  });
372
372
  }
373
373
  });
374
374
  }
375
- return (c, v) => (g(), k(e(H), {
375
+ return (f, v) => (g(), k(e(G), {
376
376
  ref_key: "formRef",
377
377
  ref: y,
378
- model: f.value,
378
+ model: m.value,
379
379
  "auto-label-width": "",
380
- size: n.size
380
+ size: a.size
381
381
  }, {
382
- default: s(() => [i(e(A), {
382
+ default: n(() => [i(e(A), {
383
383
  field: "email",
384
384
  label: "邮箱",
385
385
  rules: [{
@@ -390,7 +390,7 @@ const Xe = /* @__PURE__ */ I({
390
390
  message: "请输入有效的邮箱"
391
391
  }]
392
392
  }, {
393
- default: s(() => [w(R(r.value), 1)]),
393
+ default: n(() => [_(R(o.value), 1)]),
394
394
  _: 1
395
395
  }), i(e(A), {
396
396
  field: "userToken",
@@ -401,14 +401,14 @@ const Xe = /* @__PURE__ */ I({
401
401
  message: "请输入验证码"
402
402
  }]
403
403
  }, {
404
- default: s(() => [z("div", Ye, [i(e(q), {
405
- modelValue: f.value.userToken,
406
- "onUpdate:modelValue": v[0] || (v[0] = (b) => f.value.userToken = b),
404
+ default: n(() => [z("div", tt, [i(e(q), {
405
+ modelValue: m.value.userToken,
406
+ "onUpdate:modelValue": v[0] || (v[0] = (b) => m.value.userToken = b),
407
407
  placeholder: "请输入验证码"
408
- }, null, 8, ["modelValue"]), i(se, {
408
+ }, null, 8, ["modelValue"]), i(ne, {
409
409
  ref_key: "SendVerifyCodeRef",
410
- ref: m,
411
- size: n.size,
410
+ ref: d,
411
+ size: a.size,
412
412
  loading: t.value,
413
413
  style: {
414
414
  "margin-left": "10px"
@@ -421,12 +421,12 @@ const Xe = /* @__PURE__ */ I({
421
421
  label: "",
422
422
  rules: []
423
423
  }, {
424
- default: s(() => [z("div", et, [i(e(V), {
424
+ default: n(() => [z("div", it, [i(e(P), {
425
425
  loading: l.value,
426
426
  type: "primary",
427
- onClick: d
427
+ onClick: c
428
428
  }, {
429
- default: s(() => [...v[1] || (v[1] = [w(" 提交 ", -1)])]),
429
+ default: n(() => [...v[1] || (v[1] = [_(" 提交 ", -1)])]),
430
430
  _: 1
431
431
  }, 8, ["loading"])])]),
432
432
  _: 1
@@ -434,9 +434,9 @@ const Xe = /* @__PURE__ */ I({
434
434
  _: 1
435
435
  }, 8, ["model", "size"]));
436
436
  }
437
- }), ne = /* @__PURE__ */ $(tt, [["__scopeId", "data-v-89ebb370"]]), it = {
437
+ }), ae = /* @__PURE__ */ C(lt, [["__scopeId", "data-v-89ebb370"]]), st = {
438
438
  class: "handle"
439
- }, lt = /* @__PURE__ */ I({
439
+ }, nt = /* @__PURE__ */ I({
440
440
  __name: "AuthkitPasswordUpdate",
441
441
  props: {
442
442
  size: {
@@ -445,36 +445,36 @@ const Xe = /* @__PURE__ */ I({
445
445
  }
446
446
  },
447
447
  emits: ["submit"],
448
- setup(u, {
449
- emit: o
448
+ setup(s, {
449
+ emit: r
450
450
  }) {
451
- const a = o, n = _(!1), r = _(), m = u, t = _({
451
+ const u = r, a = w(!1), o = w(), d = s, t = w({
452
452
  oldPassword: "",
453
453
  password: "",
454
454
  confirmPassword: ""
455
455
  });
456
456
  async function l() {
457
- r.value.validate().then((y) => {
457
+ o.value.validate().then((y) => {
458
458
  if (!y) {
459
- const f = {
459
+ const m = {
460
460
  password: t.value.password
461
461
  };
462
- xe(f).then(() => {
463
- n.value = !1, a("submit", f);
462
+ Te(m).then(() => {
463
+ a.value = !1, u("submit", m);
464
464
  }).catch(() => {
465
- n.value = !1;
465
+ a.value = !1;
466
466
  });
467
467
  }
468
468
  });
469
469
  }
470
- return (y, f) => (g(), k(e(H), {
470
+ return (y, m) => (g(), k(e(G), {
471
471
  ref_key: "formRef",
472
- ref: r,
472
+ ref: o,
473
473
  model: t.value,
474
474
  "auto-label-width": "",
475
- size: m.size
475
+ size: d.size
476
476
  }, {
477
- default: s(() => [i(e(A), {
477
+ default: n(() => [i(e(A), {
478
478
  field: "oldPassword",
479
479
  label: "当前密码",
480
480
  "hide-label": "",
@@ -483,9 +483,9 @@ const Xe = /* @__PURE__ */ I({
483
483
  message: "请输入当前密码"
484
484
  }]
485
485
  }, {
486
- default: s(() => [i(e(q), {
486
+ default: n(() => [i(e(q), {
487
487
  modelValue: t.value.oldPassword,
488
- "onUpdate:modelValue": f[0] || (f[0] = (p) => t.value.oldPassword = p),
488
+ "onUpdate:modelValue": m[0] || (m[0] = (p) => t.value.oldPassword = p),
489
489
  placeholder: "请输入当前密码",
490
490
  type: "password"
491
491
  }, null, 8, ["modelValue"])]),
@@ -502,9 +502,9 @@ const Xe = /* @__PURE__ */ I({
502
502
  message: "新密码不能少于10字符"
503
503
  }]
504
504
  }, {
505
- default: s(() => [i(e(q), {
505
+ default: n(() => [i(e(q), {
506
506
  modelValue: t.value.password,
507
- "onUpdate:modelValue": f[1] || (f[1] = (p) => t.value.password = p),
507
+ "onUpdate:modelValue": m[1] || (m[1] = (p) => t.value.password = p),
508
508
  placeholder: "请输入新密码",
509
509
  type: "password"
510
510
  }, null, 8, ["modelValue"])]),
@@ -520,14 +520,14 @@ const Xe = /* @__PURE__ */ I({
520
520
  minLength: 10,
521
521
  message: "确认密码不能少于10字符"
522
522
  }, {
523
- validator: (p, d) => {
524
- p !== t.value.password ? d("两次密码输入不一致,请重新输入") : d();
523
+ validator: (p, c) => {
524
+ p !== t.value.password ? c("两次密码输入不一致,请重新输入") : c();
525
525
  }
526
526
  }]
527
527
  }, {
528
- default: s(() => [i(e(q), {
528
+ default: n(() => [i(e(q), {
529
529
  modelValue: t.value.confirmPassword,
530
- "onUpdate:modelValue": f[2] || (f[2] = (p) => t.value.confirmPassword = p),
530
+ "onUpdate:modelValue": m[2] || (m[2] = (p) => t.value.confirmPassword = p),
531
531
  placeholder: "请输入确认密码密码",
532
532
  type: "password"
533
533
  }, null, 8, ["modelValue"])]),
@@ -537,12 +537,12 @@ const Xe = /* @__PURE__ */ I({
537
537
  label: "",
538
538
  rules: []
539
539
  }, {
540
- default: s(() => [z("div", it, [i(e(V), {
540
+ default: n(() => [z("div", st, [i(e(P), {
541
541
  type: "primary",
542
- loading: n.value,
542
+ loading: a.value,
543
543
  onClick: l
544
544
  }, {
545
- default: s(() => [...f[3] || (f[3] = [w(" 提交 ", -1)])]),
545
+ default: n(() => [...m[3] || (m[3] = [_(" 提交 ", -1)])]),
546
546
  _: 1
547
547
  }, 8, ["loading"])])]),
548
548
  _: 1
@@ -550,7 +550,7 @@ const Xe = /* @__PURE__ */ I({
550
550
  _: 1
551
551
  }, 8, ["model", "size"]));
552
552
  }
553
- }), st = /* @__PURE__ */ $(lt, [["__scopeId", "data-v-a9e25b03"]]), nt = /* @__PURE__ */ I({
553
+ }), at = /* @__PURE__ */ C(nt, [["__scopeId", "data-v-a9e25b03"]]), ot = /* @__PURE__ */ I({
554
554
  __name: "AuthkitSetPassword",
555
555
  props: {
556
556
  size: {
@@ -558,74 +558,74 @@ const Xe = /* @__PURE__ */ I({
558
558
  required: !0
559
559
  }
560
560
  },
561
- setup(u) {
561
+ setup(s) {
562
562
  const {
563
- userProfile: o,
564
- loading: a,
565
- fetchUserProfile: n,
566
- isLoggedIn: r
567
- } = J(), m = _("hidden"), t = u;
563
+ userProfile: r,
564
+ loading: u,
565
+ fetchUserProfile: a,
566
+ isLoggedIn: o
567
+ } = J(), d = w("hidden"), t = s;
568
568
  function l(p) {
569
- m.value = p;
569
+ d.value = p;
570
570
  }
571
571
  function y(p) {
572
- D.success("密码修改成功"), m.value = "hidden", n();
572
+ N.success("密码修改成功"), d.value = "hidden", a();
573
573
  }
574
- function f() {
575
- m.value = "update";
574
+ function m() {
575
+ d.value = "update";
576
576
  }
577
- return K(() => {
578
- r.value && !o.value && n();
579
- }), (p, d) => {
580
- var c, v, b, U;
581
- return g(), P(F, null, [!((c = e(o)) != null && c.email) && !((v = e(o)) != null && v.phone) ? (g(), k(e(E), {
577
+ return Z(() => {
578
+ o.value && !r.value && a();
579
+ }), (p, c) => {
580
+ var f, v, b, U;
581
+ return g(), V(M, null, [!((f = e(r)) != null && f.email) && !((v = e(r)) != null && v.phone) ? (g(), k(e(D), {
582
582
  key: 0,
583
583
  title: "去绑定邮箱"
584
584
  }, {
585
- action: s(() => [i(e(V), {
585
+ action: n(() => [i(e(P), {
586
586
  size: t.size,
587
587
  type: "primary",
588
- onClick: d[0] || (d[0] = (C) => l("update"))
588
+ onClick: c[0] || (c[0] = ($) => l("update"))
589
589
  }, {
590
- default: s(() => [...d[2] || (d[2] = [w(" 去绑定邮箱 ", -1)])]),
590
+ default: n(() => [...c[2] || (c[2] = [_(" 去绑定邮箱 ", -1)])]),
591
591
  _: 1
592
592
  }, 8, ["size"])]),
593
- default: s(() => [d[3] || (d[3] = w(" 请先去绑定邮箱或者手机号码,才能设置密码 ", -1))]),
593
+ default: n(() => [c[3] || (c[3] = _(" 请先去绑定邮箱或者手机号码,才能设置密码 ", -1))]),
594
594
  _: 1
595
- })) : S("", !0), (b = e(o)) != null && b.email && m.value === "hidden" ? (g(), k(e(E), {
595
+ })) : S("", !0), (b = e(r)) != null && b.email && d.value === "hidden" ? (g(), k(e(D), {
596
596
  key: 1,
597
597
  title: "更改密码"
598
598
  }, {
599
- action: s(() => [i(e(V), {
599
+ action: n(() => [i(e(P), {
600
600
  size: t.size,
601
601
  type: "primary",
602
- onClick: d[1] || (d[1] = (C) => l("verify"))
602
+ onClick: c[1] || (c[1] = ($) => l("verify"))
603
603
  }, {
604
- default: s(() => [...d[4] || (d[4] = [w("更改密码", -1)])]),
604
+ default: n(() => [...c[4] || (c[4] = [_("更改密码", -1)])]),
605
605
  _: 1
606
606
  }, 8, ["size"])]),
607
- default: s(() => [d[5] || (d[5] = w(" 为了账户安全修改密码前会先验证身份 ", -1))]),
607
+ default: n(() => [c[5] || (c[5] = _(" 为了账户安全修改密码前会先验证身份 ", -1))]),
608
608
  _: 1
609
- })) : S("", !0), m.value === "update" ? (g(), k(st, {
609
+ })) : S("", !0), d.value === "update" ? (g(), k(at, {
610
610
  key: 2,
611
611
  size: t.size,
612
- loading: e(a),
612
+ loading: e(u),
613
613
  onSubmit: y
614
- }, null, 8, ["size", "loading"])) : S("", !0), m.value === "verify" ? (g(), k(ne, {
614
+ }, null, 8, ["size", "loading"])) : S("", !0), d.value === "verify" ? (g(), k(ae, {
615
615
  key: 3,
616
616
  size: t.size,
617
- email: (U = e(o)) == null ? void 0 : U.email,
618
- onNext: f
617
+ email: (U = e(r)) == null ? void 0 : U.email,
618
+ onNext: m
619
619
  }, null, 8, ["size", "email"])) : S("", !0)], 64);
620
620
  };
621
621
  }
622
- }), at = {
622
+ }), rt = {
623
623
  class: "content"
624
- }, ot = {
624
+ }, ut = {
625
625
  class: "sendVerifyCodeItem"
626
- }, rt = {
626
+ }, dt = {
627
627
  class: "handle"
628
- }, ut = /* @__PURE__ */ I({
628
+ }, ct = /* @__PURE__ */ I({
629
629
  __name: "AuthkitEmailUpdate",
630
630
  props: {
631
631
  size: {
@@ -639,10 +639,10 @@ const Xe = /* @__PURE__ */ I({
639
639
  }
640
640
  },
641
641
  emits: ["submit"],
642
- setup(u, {
643
- emit: o
642
+ setup(s, {
643
+ emit: r
644
644
  }) {
645
- const a = o, n = u, r = _(), m = _(!1), t = _(), l = _({
645
+ const u = r, a = s, o = w(), d = w(!1), t = w(), l = w({
646
646
  email: void 0,
647
647
  userToken: void 0,
648
648
  emailVerifyId: void 0,
@@ -652,30 +652,30 @@ const Xe = /* @__PURE__ */ I({
652
652
  });
653
653
  async function y() {
654
654
  t.value.validateField(["email"]).then((p) => {
655
- p || (m.value = !0, X({
655
+ p || (d.value = !0, X({
656
656
  email: l.value.email
657
657
  }).then(({
658
- data: d
658
+ data: c
659
659
  }) => {
660
- l.value.emailVerifyId = d.emailVerifyId, m.value = !1, r.value.startCountFn();
660
+ l.value.emailVerifyId = c.emailVerifyId, d.value = !1, o.value.startCountFn();
661
661
  }).catch(() => {
662
- m.value = !1;
662
+ d.value = !1;
663
663
  }));
664
664
  });
665
665
  }
666
- async function f() {
666
+ async function m() {
667
667
  t.value.validate().then((p) => {
668
- p || a("submit", l.value);
668
+ p || u("submit", l.value);
669
669
  });
670
670
  }
671
- return (p, d) => (g(), P("div", at, [i(e(H), {
671
+ return (p, c) => (g(), V("div", rt, [i(e(G), {
672
672
  ref_key: "formRef",
673
673
  ref: t,
674
674
  model: l.value,
675
- size: n.size,
675
+ size: a.size,
676
676
  "auto-label-width": ""
677
677
  }, {
678
- default: s(() => [i(e(A), {
678
+ default: n(() => [i(e(A), {
679
679
  field: "email",
680
680
  label: "邮箱",
681
681
  "hide-label": "",
@@ -687,9 +687,9 @@ const Xe = /* @__PURE__ */ I({
687
687
  message: "请输入有效的邮箱"
688
688
  }]
689
689
  }, {
690
- default: s(() => [i(e(q), {
690
+ default: n(() => [i(e(q), {
691
691
  modelValue: l.value.email,
692
- "onUpdate:modelValue": d[0] || (d[0] = (c) => l.value.email = c),
692
+ "onUpdate:modelValue": c[0] || (c[0] = (f) => l.value.email = f),
693
693
  placeholder: "请输入邮箱",
694
694
  autocomplete: "email username",
695
695
  type: "email"
@@ -704,16 +704,16 @@ const Xe = /* @__PURE__ */ I({
704
704
  message: "请输入验证码"
705
705
  }]
706
706
  }, {
707
- default: s(() => [z("div", ot, [i(e(q), {
707
+ default: n(() => [z("div", ut, [i(e(q), {
708
708
  modelValue: l.value.userToken,
709
- "onUpdate:modelValue": d[1] || (d[1] = (c) => l.value.userToken = c),
709
+ "onUpdate:modelValue": c[1] || (c[1] = (f) => l.value.userToken = f),
710
710
  placeholder: "请输入验证码",
711
711
  autocomplete: "one-time-code"
712
- }, null, 8, ["modelValue"]), i(se, {
712
+ }, null, 8, ["modelValue"]), i(ne, {
713
713
  ref_key: "SendVerifyCodeRef",
714
- ref: r,
715
- size: n.size,
716
- loading: m.value,
714
+ ref: o,
715
+ size: a.size,
716
+ loading: d.value,
717
717
  style: {
718
718
  "margin-left": "10px"
719
719
  },
@@ -732,9 +732,9 @@ const Xe = /* @__PURE__ */ I({
732
732
  message: "密码不能少于10字符"
733
733
  }]
734
734
  }, {
735
- default: s(() => [i(e(q), {
735
+ default: n(() => [i(e(q), {
736
736
  modelValue: l.value.password,
737
- "onUpdate:modelValue": d[2] || (d[2] = (c) => l.value.password = c),
737
+ "onUpdate:modelValue": c[2] || (c[2] = (f) => l.value.password = f),
738
738
  placeholder: "请输入密码",
739
739
  type: "password",
740
740
  autocomplete: "new-password"
@@ -751,14 +751,14 @@ const Xe = /* @__PURE__ */ I({
751
751
  minLength: 10,
752
752
  message: "确认密码不能少于10字符"
753
753
  }, {
754
- validator: (c, v) => {
755
- c !== l.value.password ? v("两次密码输入不一致,请重新输入") : v();
754
+ validator: (f, v) => {
755
+ f !== l.value.password ? v("两次密码输入不一致,请重新输入") : v();
756
756
  }
757
757
  }]
758
758
  }, {
759
- default: s(() => [i(e(q), {
759
+ default: n(() => [i(e(q), {
760
760
  modelValue: l.value.confirmPassword,
761
- "onUpdate:modelValue": d[3] || (d[3] = (c) => l.value.confirmPassword = c),
761
+ "onUpdate:modelValue": c[3] || (c[3] = (f) => l.value.confirmPassword = f),
762
762
  placeholder: "请输入确认密码密码",
763
763
  type: "password",
764
764
  autocomplete: "new-password"
@@ -773,27 +773,27 @@ const Xe = /* @__PURE__ */ I({
773
773
  message: "请输入邀请人ID"
774
774
  }]
775
775
  }, {
776
- default: s(() => [i(e(q), {
776
+ default: n(() => [i(e(q), {
777
777
  modelValue: l.value.referrerId,
778
- "onUpdate:modelValue": d[4] || (d[4] = (c) => l.value.referrerId = c),
778
+ "onUpdate:modelValue": c[4] || (c[4] = (f) => l.value.referrerId = f),
779
779
  placeholder: "邀请人ID(可选)",
780
780
  autocomplete: "off"
781
781
  }, null, 8, ["modelValue"])]),
782
782
  _: 1
783
- }), z("div", rt, [i(e(V), {
783
+ }), z("div", dt, [i(e(P), {
784
784
  type: "primary",
785
- loading: n.loading,
785
+ loading: a.loading,
786
786
  long: "",
787
- size: n.size,
788
- onClick: f
787
+ size: a.size,
788
+ onClick: m
789
789
  }, {
790
- default: s(() => [...d[5] || (d[5] = [w(" 提交 ", -1)])]),
790
+ default: n(() => [...c[5] || (c[5] = [_(" 提交 ", -1)])]),
791
791
  _: 1
792
792
  }, 8, ["loading", "size"])])]),
793
793
  _: 1
794
794
  }, 8, ["model", "size"])]));
795
795
  }
796
- }), fe = /* @__PURE__ */ $(ut, [["__scopeId", "data-v-5b701953"]]), dt = /* @__PURE__ */ I({
796
+ }), pe = /* @__PURE__ */ C(ct, [["__scopeId", "data-v-5b701953"]]), mt = /* @__PURE__ */ I({
797
797
  __name: "AuthkitEmailBinding",
798
798
  props: {
799
799
  size: {
@@ -801,88 +801,102 @@ const Xe = /* @__PURE__ */ I({
801
801
  required: !0
802
802
  }
803
803
  },
804
- setup(u) {
804
+ setup(s) {
805
805
  const {
806
- userProfile: o,
807
- loading: a,
808
- fetchUserProfile: n
809
- } = J(), r = _("hidden"), m = u;
810
- function t(f) {
811
- r.value = f;
806
+ userProfile: r,
807
+ loading: u,
808
+ fetchUserProfile: a
809
+ } = J(), o = w("hidden"), d = s;
810
+ function t(m) {
811
+ o.value = m;
812
812
  }
813
- function l(f) {
814
- a.value = !0;
813
+ function l(m) {
814
+ u.value = !0;
815
815
  const p = {
816
- email: f.email,
817
- userToken: f.userToken,
818
- emailVerifyId: f.emailVerifyId
816
+ email: m.email,
817
+ userToken: m.userToken,
818
+ emailVerifyId: m.emailVerifyId
819
819
  };
820
- qe(p).then(() => {
821
- a.value = !1, D.success("绑定成功"), r.value = "hidden", n();
820
+ Re(p).then(() => {
821
+ u.value = !1, N.success("绑定成功"), o.value = "hidden", a();
822
822
  }).catch(() => {
823
- a.value = !1;
823
+ u.value = !1;
824
824
  });
825
825
  }
826
826
  function y() {
827
- r.value = "update";
827
+ o.value = "update";
828
828
  }
829
- return K(() => {
830
- o.value || n();
831
- }), (f, p) => {
832
- var d, c, v;
833
- return g(), P(F, null, [!((d = e(o)) != null && d.email) && r.value === "hidden" ? (g(), k(e(E), {
829
+ return Z(() => {
830
+ r.value || a();
831
+ }), (m, p) => {
832
+ var c, f, v;
833
+ return g(), V(M, null, [!((c = e(r)) != null && c.email) && o.value === "hidden" ? (g(), k(e(D), {
834
834
  key: 0,
835
835
  title: "绑定邮箱"
836
836
  }, {
837
- action: s(() => [i(e(V), {
838
- size: m.size,
837
+ action: n(() => [i(e(P), {
838
+ size: d.size,
839
839
  type: "primary",
840
840
  onClick: p[0] || (p[0] = (b) => t("update"))
841
841
  }, {
842
- default: s(() => [...p[2] || (p[2] = [w(" 绑定邮箱 ", -1)])]),
842
+ default: n(() => [...p[2] || (p[2] = [_(" 绑定邮箱 ", -1)])]),
843
843
  _: 1
844
844
  }, 8, ["size"])]),
845
- default: s(() => [p[3] || (p[3] = w(" 您还未绑定邮箱,请点击绑定邮箱 ", -1))]),
845
+ default: n(() => [p[3] || (p[3] = _(" 您还未绑定邮箱,请点击绑定邮箱 ", -1))]),
846
846
  _: 1
847
- })) : S("", !0), (c = e(o)) != null && c.email && r.value === "hidden" ? (g(), k(e(E), {
847
+ })) : S("", !0), (f = e(r)) != null && f.email && o.value === "hidden" ? (g(), k(e(D), {
848
848
  key: 1,
849
849
  title: "更改邮箱"
850
850
  }, {
851
- action: s(() => [i(e(V), {
852
- size: m.size,
851
+ action: n(() => [i(e(P), {
852
+ size: d.size,
853
853
  type: "primary",
854
854
  onClick: p[1] || (p[1] = (b) => t("verify"))
855
855
  }, {
856
- default: s(() => [...p[4] || (p[4] = [w(" 更改邮箱 ", -1)])]),
856
+ default: n(() => [...p[4] || (p[4] = [_(" 更改邮箱 ", -1)])]),
857
857
  _: 1
858
858
  }, 8, ["size"])]),
859
- default: s(() => {
859
+ default: n(() => {
860
860
  var b;
861
- return [w(R(`您绑定的邮箱为${e(ce)((b = e(o)) == null ? void 0 : b.email)}`) + " ", 1)];
861
+ return [_(R(`您绑定的邮箱为${e(fe)((b = e(r)) == null ? void 0 : b.email)}`) + " ", 1)];
862
862
  }),
863
863
  _: 1
864
- })) : S("", !0), r.value === "update" ? (g(), k(fe, {
864
+ })) : S("", !0), o.value === "update" ? (g(), k(pe, {
865
865
  key: 2,
866
- loading: e(a),
867
- size: m.size,
866
+ loading: e(u),
867
+ size: d.size,
868
868
  onSubmit: l
869
- }, null, 8, ["loading", "size"])) : S("", !0), r.value === "verify" ? (g(), k(ne, {
869
+ }, null, 8, ["loading", "size"])) : S("", !0), o.value === "verify" ? (g(), k(ae, {
870
870
  key: 3,
871
- size: m.size,
872
- email: (v = e(o)) == null ? void 0 : v.email,
871
+ size: d.size,
872
+ email: (v = e(r)) == null ? void 0 : v.email,
873
873
  onNext: y
874
874
  }, null, 8, ["size", "email"])) : S("", !0)], 64);
875
875
  };
876
876
  }
877
- }), mt = /* @__PURE__ */ $(dt, [["__scopeId", "data-v-b2663ea1"]]);
878
- function pe(u) {
879
- return Z({
880
- url: `${N.authPrefixUrl}/restfulApi/OAuth/github/login`,
877
+ }), ft = /* @__PURE__ */ C(mt, [["__scopeId", "data-v-b2663ea1"]]);
878
+ function ve(s) {
879
+ return H({
880
+ url: `${E.authPrefixUrl}/restfulApi/oauth/github/login`,
881
+ method: "get",
882
+ params: s
883
+ });
884
+ }
885
+ function pt(s) {
886
+ return H({
887
+ url: `${E.authPrefixUrl}/restfulApi/oauth/google/login`,
888
+ method: "get",
889
+ params: s
890
+ });
891
+ }
892
+ function vt(s) {
893
+ return H({
894
+ url: `${E.authPrefixUrl}/restfulApi/oauth/microsoft/login`,
881
895
  method: "get",
882
- params: u
896
+ params: s
883
897
  });
884
898
  }
885
- const ct = /* @__PURE__ */ I({
899
+ const gt = /* @__PURE__ */ I({
886
900
  __name: "AuthkitGithubBinding",
887
901
  props: {
888
902
  size: {
@@ -890,101 +904,101 @@ const ct = /* @__PURE__ */ I({
890
904
  required: !0
891
905
  }
892
906
  },
893
- setup(u) {
907
+ setup(s) {
894
908
  const {
895
- userProfile: o,
896
- fetchUserProfile: a
897
- } = J(), n = _("hidden"), r = _(!1);
898
- let m;
899
- const t = u;
900
- function l(c) {
901
- n.value = c;
909
+ userProfile: r,
910
+ fetchUserProfile: u
911
+ } = J(), a = w("hidden"), o = w(!1);
912
+ let d;
913
+ const t = s;
914
+ function l(f) {
915
+ a.value = f;
902
916
  }
903
917
  function y() {
904
- const c = N.appId;
905
- if (!c) {
918
+ const f = E.appId;
919
+ if (!f) {
906
920
  console.error("GitHub OAuth 失败: appId 未配置");
907
921
  return;
908
922
  }
909
- pe({
910
- appId: c
923
+ ve({
924
+ appId: f
911
925
  }).then(({
912
926
  data: v
913
927
  }) => {
914
928
  const {
915
929
  redirectUri: b
916
930
  } = v;
917
- r.value = !0, window.open(b, "_blank");
931
+ o.value = !0, window.open(b, "_blank");
918
932
  });
919
933
  }
920
- function f() {
921
- Te().then(() => {
922
- D.success("解绑成功"), n.value = "hidden", a();
934
+ function m() {
935
+ Le().then(() => {
936
+ N.success("解绑成功"), a.value = "hidden", u();
923
937
  });
924
938
  }
925
939
  function p() {
926
- n.value === "bind" && (n.value = "hidden", y()), n.value === "unbind" && f();
940
+ a.value === "bind" && (a.value = "hidden", y()), a.value === "unbind" && m();
927
941
  }
928
- function d() {
929
- r.value && a();
930
- }
931
- return K(() => {
932
- o.value || a(), m = setInterval(d, 1e3);
933
- }), oe(() => {
934
- m && clearInterval(m);
935
- }), (c, v) => {
936
- var b, U, C;
937
- return g(), P(F, null, [!((b = e(o)) != null && b.github) && n.value === "hidden" ? (g(), k(e(E), {
942
+ function c() {
943
+ o.value && u();
944
+ }
945
+ return Z(() => {
946
+ r.value || u(), d = setInterval(c, 1e3);
947
+ }), re(() => {
948
+ d && clearInterval(d);
949
+ }), (f, v) => {
950
+ var b, U, $;
951
+ return g(), V(M, null, [!((b = e(r)) != null && b.github) && a.value === "hidden" ? (g(), k(e(D), {
938
952
  key: 0,
939
953
  title: "绑定GitHUb"
940
954
  }, {
941
- action: s(() => [i(e(V), {
955
+ action: n(() => [i(e(P), {
942
956
  size: t.size,
943
957
  type: "primary",
944
958
  onClick: v[0] || (v[0] = (T) => l("bind"))
945
959
  }, {
946
- default: s(() => [...v[2] || (v[2] = [w(" 绑定GitHUb ", -1)])]),
960
+ default: n(() => [...v[2] || (v[2] = [_(" 绑定GitHUb ", -1)])]),
947
961
  _: 1
948
962
  }, 8, ["size"])]),
949
- default: s(() => [v[3] || (v[3] = w(" 请尚未绑定GitHub,请点击绑定GitHUb ", -1))]),
963
+ default: n(() => [v[3] || (v[3] = _(" 请尚未绑定GitHub,请点击绑定GitHUb ", -1))]),
950
964
  _: 1
951
- })) : S("", !0), (U = e(o)) != null && U.github && n.value === "hidden" ? (g(), k(e(E), {
965
+ })) : S("", !0), (U = e(r)) != null && U.github && a.value === "hidden" ? (g(), k(e(D), {
952
966
  key: 1,
953
967
  title: "解绑GitHub"
954
968
  }, {
955
- action: s(() => [i(e(V), {
969
+ action: n(() => [i(e(P), {
956
970
  size: t.size,
957
971
  type: "primary",
958
972
  onClick: v[1] || (v[1] = (T) => l("unbind"))
959
973
  }, {
960
- default: s(() => [...v[4] || (v[4] = [w(" 解绑GitHUb ", -1)])]),
974
+ default: n(() => [...v[4] || (v[4] = [_(" 解绑GitHUb ", -1)])]),
961
975
  _: 1
962
976
  }, 8, ["size"])]),
963
- default: s(() => {
977
+ default: n(() => {
964
978
  var T, B, O;
965
- return [z("span", null, R(`您绑定的账号为 ${(B = (T = e(o)) == null ? void 0 : T.github) == null ? void 0 : B.login}`), 1), i(e(de), {
966
- "image-url": (O = e(o)) == null ? void 0 : O.avatar,
979
+ return [z("span", null, R(`您绑定的账号为 ${(B = (T = e(r)) == null ? void 0 : T.github) == null ? void 0 : B.login}`), 1), i(e(ce), {
980
+ "image-url": (O = e(r)) == null ? void 0 : O.avatar,
967
981
  size: 42
968
982
  }, null, 8, ["image-url"])];
969
983
  }),
970
984
  _: 1
971
- })) : S("", !0), n.value === "bind" || n.value === "unbind" ? (g(), k(ne, {
985
+ })) : S("", !0), a.value === "bind" || a.value === "unbind" ? (g(), k(ae, {
972
986
  key: 2,
973
987
  size: t.size,
974
- email: (C = e(o)) == null ? void 0 : C.email,
988
+ email: ($ = e(r)) == null ? void 0 : $.email,
975
989
  onNext: p
976
990
  }, null, 8, ["size", "email"])) : S("", !0)], 64);
977
991
  };
978
992
  }
979
- }), ft = {
993
+ }), yt = {
980
994
  class: "dependency-list"
981
- }, pt = {
995
+ }, ht = {
982
996
  class: "label"
983
- }, vt = {
997
+ }, wt = {
984
998
  class: "count"
985
- }, gt = {
999
+ }, _t = {
986
1000
  class: "action-bar"
987
- }, yt = /* @__PURE__ */ I({
1001
+ }, bt = /* @__PURE__ */ I({
988
1002
  __name: "AuthkitAccountDelete",
989
1003
  props: {
990
1004
  size: {
@@ -993,27 +1007,27 @@ const ct = /* @__PURE__ */ I({
993
1007
  }
994
1008
  },
995
1009
  emits: ["deleted"],
996
- setup(u, {
997
- emit: o
1010
+ setup(s, {
1011
+ emit: r
998
1012
  }) {
999
- const a = u, n = o, {
1000
- userProfile: r,
1001
- clearUserProfile: m
1013
+ const u = s, a = r, {
1014
+ userProfile: o,
1015
+ clearUserProfile: d
1002
1016
  } = J(), {
1003
1017
  clearAuth: t
1004
- } = Q(), l = _("check"), y = _(!1), f = _([]), p = _(!1), d = _(""), c = _(0);
1018
+ } = Q(), l = w("check"), y = w(!1), m = w([]), p = w(!1), c = w(""), f = w(0);
1005
1019
  let v = null;
1006
- const b = G(() => {
1007
- var W;
1008
- const L = ((W = r.value) == null ? void 0 : W.email) || "";
1020
+ const b = F(() => {
1021
+ var K;
1022
+ const L = ((K = o.value) == null ? void 0 : K.email) || "";
1009
1023
  if (!L) return "";
1010
1024
  const [h, x] = L.split("@");
1011
1025
  return h.length <= 2 ? L : `${h.slice(0, 2)}***@${x}`;
1012
- }), U = _(), C = _({
1026
+ }), U = w(), $ = w({
1013
1027
  userToken: "",
1014
1028
  password: "",
1015
1029
  confirmText: ""
1016
- }), T = _(!1);
1030
+ }), T = w(!1);
1017
1031
  function B(L, h) {
1018
1032
  L !== "注销" ? h('请输入"注销"以确认操作') : h();
1019
1033
  }
@@ -1021,59 +1035,59 @@ const ct = /* @__PURE__ */ I({
1021
1035
  var L;
1022
1036
  y.value = !0;
1023
1037
  try {
1024
- const h = await Re(), {
1038
+ const h = await Be(), {
1025
1039
  hasDependencies: x,
1026
- dependencies: W
1040
+ dependencies: K
1027
1041
  } = h.data;
1028
1042
  if (x)
1029
- f.value = W, l.value = "dependencies";
1043
+ m.value = K, l.value = "dependencies";
1030
1044
  else {
1031
- if (!((L = r.value) != null && L.email)) {
1032
- D.error("账号未绑定邮箱,无法进行注销验证。请先绑定邮箱");
1045
+ if (!((L = o.value) != null && L.email)) {
1046
+ N.error("账号未绑定邮箱,无法进行注销验证。请先绑定邮箱");
1033
1047
  return;
1034
1048
  }
1035
1049
  l.value = "sendCode";
1036
1050
  }
1037
1051
  } catch (h) {
1038
- console.error("检查依赖失败:", h), D.error("检查失败,请稍后重试");
1052
+ console.error("检查依赖失败:", h), N.error("检查失败,请稍后重试");
1039
1053
  } finally {
1040
1054
  y.value = !1;
1041
1055
  }
1042
1056
  }
1043
- async function j() {
1057
+ async function W() {
1044
1058
  var L;
1045
- if (!((L = r.value) != null && L.email)) {
1046
- D.error("请先绑定邮箱");
1059
+ if (!((L = o.value) != null && L.email)) {
1060
+ N.error("请先绑定邮箱");
1047
1061
  return;
1048
1062
  }
1049
1063
  p.value = !0;
1050
1064
  try {
1051
1065
  const h = await X({
1052
- email: r.value.email
1066
+ email: o.value.email
1053
1067
  });
1054
- d.value = h.data.emailVerifyId, D.success("验证码已发送"), l.value = "confirm", ye();
1068
+ c.value = h.data.emailVerifyId, N.success("验证码已发送"), l.value = "confirm", we();
1055
1069
  } catch (h) {
1056
1070
  console.error("发送验证码失败:", h);
1057
1071
  } finally {
1058
1072
  p.value = !1;
1059
1073
  }
1060
1074
  }
1061
- function ye() {
1062
- c.value = 60, v && clearInterval(v), v = setInterval(() => {
1063
- c.value--, c.value <= 0 && v && (clearInterval(v), v = null);
1075
+ function we() {
1076
+ f.value = 60, v && clearInterval(v), v = setInterval(() => {
1077
+ f.value--, f.value <= 0 && v && (clearInterval(v), v = null);
1064
1078
  }, 1e3);
1065
1079
  }
1066
- async function he() {
1080
+ async function _e() {
1067
1081
  var h;
1068
1082
  if (!await ((h = U.value) == null ? void 0 : h.validate())) {
1069
1083
  T.value = !0;
1070
1084
  try {
1071
- await Le({
1072
- password: C.value.password,
1073
- userToken: C.value.userToken,
1074
- emailVerifyId: d.value,
1075
- confirmText: C.value.confirmText
1076
- }), l.value = "success", m(), t(), n("deleted");
1085
+ await Oe({
1086
+ password: $.value.password,
1087
+ userToken: $.value.userToken,
1088
+ emailVerifyId: c.value,
1089
+ confirmText: $.value.confirmText
1090
+ }), l.value = "success", d(), t(), a("deleted");
1077
1091
  } catch (x) {
1078
1092
  console.error("注销失败:", x);
1079
1093
  } finally {
@@ -1081,85 +1095,85 @@ const ct = /* @__PURE__ */ I({
1081
1095
  }
1082
1096
  }
1083
1097
  }
1084
- function _e() {
1098
+ function be() {
1085
1099
  window.location.href = "/";
1086
1100
  }
1087
- return (L, h) => l.value === "check" ? (g(), k(e(E), {
1101
+ return (L, h) => l.value === "check" ? (g(), k(e(D), {
1088
1102
  key: 0,
1089
1103
  type: "warning",
1090
1104
  title: "注销账号"
1091
1105
  }, {
1092
- action: s(() => [i(e(V), {
1093
- size: a.size,
1106
+ action: n(() => [i(e(P), {
1107
+ size: u.size,
1094
1108
  type: "primary",
1095
1109
  status: "danger",
1096
1110
  loading: y.value,
1097
1111
  onClick: O
1098
1112
  }, {
1099
- default: s(() => [w(R(y.value ? "检查中..." : "开始注销"), 1)]),
1113
+ default: n(() => [_(R(y.value ? "检查中..." : "开始注销"), 1)]),
1100
1114
  _: 1
1101
1115
  }, 8, ["size", "loading"])]),
1102
- default: s(() => [h[6] || (h[6] = w(" 注销账号后,您的所有数据将被永久删除,无法恢复。请确认您已备份重要数据。 ", -1))]),
1116
+ default: n(() => [h[6] || (h[6] = _(" 注销账号后,您的所有数据将被永久删除,无法恢复。请确认您已备份重要数据。 ", -1))]),
1103
1117
  _: 1
1104
- })) : l.value === "dependencies" ? (g(), P(F, {
1118
+ })) : l.value === "dependencies" ? (g(), V(M, {
1105
1119
  key: 1
1106
- }, [i(e(E), {
1120
+ }, [i(e(D), {
1107
1121
  type: "error",
1108
1122
  title: "无法注销账号"
1109
1123
  }, {
1110
- default: s(() => [...h[7] || (h[7] = [w(" 您的账号下还有以下资源,请先处理后再注销: ", -1)])]),
1124
+ default: n(() => [...h[7] || (h[7] = [_(" 您的账号下还有以下资源,请先处理后再注销: ", -1)])]),
1111
1125
  _: 1
1112
- }), z("div", ft, [(g(!0), P(F, null, ze(f.value, (x) => (g(), P("div", {
1126
+ }), z("div", yt, [(g(!0), V(M, null, Ae(m.value, (x) => (g(), V("div", {
1113
1127
  key: x.type,
1114
1128
  class: "dependency-item"
1115
- }, [z("span", pt, R(x.label), 1), z("span", vt, R(x.count) + " 个", 1)]))), 128))]), z("div", gt, [i(e(V), {
1116
- size: a.size,
1129
+ }, [z("span", ht, R(x.label), 1), z("span", wt, R(x.count) + " 个", 1)]))), 128))]), z("div", _t, [i(e(P), {
1130
+ size: u.size,
1117
1131
  onClick: h[0] || (h[0] = (x) => l.value = "check")
1118
1132
  }, {
1119
- default: s(() => [...h[8] || (h[8] = [w("返回", -1)])]),
1133
+ default: n(() => [...h[8] || (h[8] = [_("返回", -1)])]),
1120
1134
  _: 1
1121
- }, 8, ["size"])])], 64)) : l.value === "sendCode" ? (g(), k(e(E), {
1135
+ }, 8, ["size"])])], 64)) : l.value === "sendCode" ? (g(), k(e(D), {
1122
1136
  key: 2,
1123
1137
  type: "normal",
1124
1138
  title: "身份验证"
1125
1139
  }, {
1126
- action: s(() => [i(e(Y), null, {
1127
- default: s(() => [i(e(V), {
1128
- size: a.size,
1140
+ action: n(() => [i(e(ee), null, {
1141
+ default: n(() => [i(e(P), {
1142
+ size: u.size,
1129
1143
  onClick: h[1] || (h[1] = (x) => l.value = "check")
1130
1144
  }, {
1131
- default: s(() => [...h[9] || (h[9] = [w("取消", -1)])]),
1145
+ default: n(() => [...h[9] || (h[9] = [_("取消", -1)])]),
1132
1146
  _: 1
1133
- }, 8, ["size"]), i(e(V), {
1134
- size: a.size,
1147
+ }, 8, ["size"]), i(e(P), {
1148
+ size: u.size,
1135
1149
  type: "primary",
1136
1150
  loading: p.value,
1137
- onClick: j
1151
+ onClick: W
1138
1152
  }, {
1139
- default: s(() => [w(R(p.value ? "发送中..." : "发送验证码"), 1)]),
1153
+ default: n(() => [_(R(p.value ? "发送中..." : "发送验证码"), 1)]),
1140
1154
  _: 1
1141
1155
  }, 8, ["size", "loading"])]),
1142
1156
  _: 1
1143
1157
  })]),
1144
- default: s(() => [w(" 为确保账号安全,我们将向您的邮箱 " + R(b.value) + " 发送验证码 ", 1)]),
1158
+ default: n(() => [_(" 为确保账号安全,我们将向您的邮箱 " + R(b.value) + " 发送验证码 ", 1)]),
1145
1159
  _: 1
1146
- })) : l.value === "confirm" ? (g(), P(F, {
1160
+ })) : l.value === "confirm" ? (g(), V(M, {
1147
1161
  key: 3
1148
- }, [i(e(E), {
1162
+ }, [i(e(D), {
1149
1163
  type: "warning",
1150
1164
  title: "确认注销"
1151
1165
  }, {
1152
- default: s(() => [w(" 验证码已发送至 " + R(b.value) + ",此操作不可逆,请谨慎操作 ", 1)]),
1166
+ default: n(() => [_(" 验证码已发送至 " + R(b.value) + ",此操作不可逆,请谨慎操作 ", 1)]),
1153
1167
  _: 1
1154
- }), i(e(H), {
1168
+ }), i(e(G), {
1155
1169
  ref_key: "formRef",
1156
1170
  ref: U,
1157
- model: C.value,
1158
- size: a.size,
1171
+ model: $.value,
1172
+ size: u.size,
1159
1173
  class: "confirm-form",
1160
1174
  layout: "vertical"
1161
1175
  }, {
1162
- default: s(() => [i(e(A), {
1176
+ default: n(() => [i(e(A), {
1163
1177
  field: "userToken",
1164
1178
  label: "邮箱验证码",
1165
1179
  rules: [{
@@ -1167,22 +1181,22 @@ const ct = /* @__PURE__ */ I({
1167
1181
  message: "请输入验证码"
1168
1182
  }]
1169
1183
  }, {
1170
- default: s(() => [i(e(Y), null, {
1171
- default: s(() => [i(e(q), {
1172
- modelValue: C.value.userToken,
1173
- "onUpdate:modelValue": h[2] || (h[2] = (x) => C.value.userToken = x),
1184
+ default: n(() => [i(e(ee), null, {
1185
+ default: n(() => [i(e(q), {
1186
+ modelValue: $.value.userToken,
1187
+ "onUpdate:modelValue": h[2] || (h[2] = (x) => $.value.userToken = x),
1174
1188
  placeholder: "请输入6位验证码",
1175
1189
  "max-length": 6,
1176
1190
  "allow-clear": "",
1177
1191
  style: {
1178
1192
  width: "180px"
1179
1193
  }
1180
- }, null, 8, ["modelValue"]), i(e(V), {
1181
- disabled: c.value > 0,
1194
+ }, null, 8, ["modelValue"]), i(e(P), {
1195
+ disabled: f.value > 0,
1182
1196
  loading: p.value,
1183
- onClick: j
1197
+ onClick: W
1184
1198
  }, {
1185
- default: s(() => [w(R(c.value > 0 ? `${c.value}s 后重发` : "重新发送"), 1)]),
1199
+ default: n(() => [_(R(f.value > 0 ? `${f.value}s 后重发` : "重新发送"), 1)]),
1186
1200
  _: 1
1187
1201
  }, 8, ["disabled", "loading"])]),
1188
1202
  _: 1
@@ -1196,9 +1210,9 @@ const ct = /* @__PURE__ */ I({
1196
1210
  message: "请输入密码"
1197
1211
  }]
1198
1212
  }, {
1199
- default: s(() => [i(e(Ie), {
1200
- modelValue: C.value.password,
1201
- "onUpdate:modelValue": h[3] || (h[3] = (x) => C.value.password = x),
1213
+ default: n(() => [i(e(Ve), {
1214
+ modelValue: $.value.password,
1215
+ "onUpdate:modelValue": h[3] || (h[3] = (x) => $.value.password = x),
1202
1216
  placeholder: "请输入您的登录密码",
1203
1217
  "allow-clear": ""
1204
1218
  }, null, 8, ["modelValue"])]),
@@ -1213,27 +1227,27 @@ const ct = /* @__PURE__ */ I({
1213
1227
  validator: B
1214
1228
  }]
1215
1229
  }, {
1216
- default: s(() => [i(e(q), {
1217
- modelValue: C.value.confirmText,
1218
- "onUpdate:modelValue": h[4] || (h[4] = (x) => C.value.confirmText = x),
1230
+ default: n(() => [i(e(q), {
1231
+ modelValue: $.value.confirmText,
1232
+ "onUpdate:modelValue": h[4] || (h[4] = (x) => $.value.confirmText = x),
1219
1233
  placeholder: "注销",
1220
1234
  "allow-clear": ""
1221
1235
  }, null, 8, ["modelValue"])]),
1222
1236
  _: 1
1223
1237
  }, 8, ["rules"]), i(e(A), null, {
1224
- default: s(() => [i(e(Y), null, {
1225
- default: s(() => [i(e(V), {
1238
+ default: n(() => [i(e(ee), null, {
1239
+ default: n(() => [i(e(P), {
1226
1240
  onClick: h[5] || (h[5] = (x) => l.value = "check")
1227
1241
  }, {
1228
- default: s(() => [...h[10] || (h[10] = [w("取消", -1)])]),
1242
+ default: n(() => [...h[10] || (h[10] = [_("取消", -1)])]),
1229
1243
  _: 1
1230
- }), i(e(V), {
1244
+ }), i(e(P), {
1231
1245
  type: "primary",
1232
1246
  status: "danger",
1233
1247
  loading: T.value,
1234
- onClick: he
1248
+ onClick: _e
1235
1249
  }, {
1236
- default: s(() => [w(R(T.value ? "注销中..." : "确认注销"), 1)]),
1250
+ default: n(() => [_(R(T.value ? "注销中..." : "确认注销"), 1)]),
1237
1251
  _: 1
1238
1252
  }, 8, ["loading"])]),
1239
1253
  _: 1
@@ -1241,43 +1255,43 @@ const ct = /* @__PURE__ */ I({
1241
1255
  _: 1
1242
1256
  })]),
1243
1257
  _: 1
1244
- }, 8, ["model", "size"])], 64)) : l.value === "success" ? (g(), k(e(Ve), {
1258
+ }, 8, ["model", "size"])], 64)) : l.value === "success" ? (g(), k(e(Ue), {
1245
1259
  key: 4,
1246
1260
  status: "success",
1247
1261
  title: "账号已注销"
1248
1262
  }, {
1249
- subtitle: s(() => [...h[11] || (h[11] = [w(" 您的账号已成功注销,感谢您的使用 ", -1)])]),
1250
- extra: s(() => [i(e(V), {
1263
+ subtitle: n(() => [...h[11] || (h[11] = [_(" 您的账号已成功注销,感谢您的使用 ", -1)])]),
1264
+ extra: n(() => [i(e(P), {
1251
1265
  type: "primary",
1252
- onClick: _e
1266
+ onClick: be
1253
1267
  }, {
1254
- default: s(() => [...h[12] || (h[12] = [w("返回首页", -1)])]),
1268
+ default: n(() => [...h[12] || (h[12] = [_("返回首页", -1)])]),
1255
1269
  _: 1
1256
1270
  })]),
1257
1271
  _: 1
1258
1272
  })) : S("", !0);
1259
1273
  }
1260
- }), ht = /* @__PURE__ */ $(yt, [["__scopeId", "data-v-15e302c7"]]), _t = {
1274
+ }), kt = /* @__PURE__ */ C(bt, [["__scopeId", "data-v-15e302c7"]]), zt = {
1261
1275
  class: "content"
1262
- }, wt = {
1276
+ }, St = {
1263
1277
  class: "left"
1264
- }, bt = {
1278
+ }, At = {
1265
1279
  class: "right"
1266
- }, kt = /* @__PURE__ */ I({
1280
+ }, It = /* @__PURE__ */ I({
1267
1281
  __name: "AuthkitAppSetting",
1268
1282
  emits: ["confirm", "cancel"],
1269
- setup(u, {
1270
- expose: o,
1271
- emit: a
1283
+ setup(s, {
1284
+ expose: r,
1285
+ emit: u
1272
1286
  }) {
1273
- const n = a;
1274
- function r() {
1275
- n("cancel");
1287
+ const a = u;
1288
+ function o() {
1289
+ a("cancel");
1276
1290
  }
1277
- function m() {
1278
- d.value = !1, n("cancel");
1291
+ function d() {
1292
+ c.value = !1, a("cancel");
1279
1293
  }
1280
- const t = _("large"), l = _(["PersonalInformation"]), y = _([{
1294
+ const t = w("large"), l = w(["PersonalInformation"]), y = w([{
1281
1295
  name: "个人信息",
1282
1296
  path: "PersonalInformation",
1283
1297
  meta: {
@@ -1330,88 +1344,114 @@ const ct = /* @__PURE__ */ I({
1330
1344
  // },
1331
1345
  ]
1332
1346
  }]);
1333
- function f(v, b) {
1347
+ function m(v, b) {
1334
1348
  const U = v.path;
1335
1349
  console.log(U, b, "lokokoko"), l.value = [U];
1336
1350
  }
1337
1351
  const {
1338
1352
  changeType: p,
1339
- show: d
1340
- } = Ge(n);
1341
- function c(v, b) {
1342
- console.log(v), d.value = b, p.value = "编辑";
1353
+ show: c
1354
+ } = Ge(a);
1355
+ function f(v, b) {
1356
+ console.log(v), c.value = b, p.value = "编辑";
1343
1357
  }
1344
- return o({
1345
- setData: c
1358
+ return r({
1359
+ setData: f
1346
1360
  }), (v, b) => (g(), k(e(me), {
1347
- visible: e(d),
1348
- "onUpdate:visible": b[1] || (b[1] = (U) => re(d) ? d.value = U : null),
1361
+ visible: e(c),
1362
+ "onUpdate:visible": b[1] || (b[1] = (U) => ue(c) ? c.value = U : null),
1349
1363
  "unmount-on-close": "",
1350
1364
  "body-class": "AppSettingbodyClass",
1351
1365
  "mask-closable": !1,
1352
1366
  footer: !1,
1353
1367
  width: "700px",
1354
- onCancel: r
1368
+ onCancel: o
1355
1369
  }, {
1356
- title: s(() => [...b[2] || (b[2] = [w(" 系统设置 ", -1)])]),
1357
- default: s(() => [z("div", _t, [z("div", wt, [i(De, {
1370
+ title: n(() => [...b[2] || (b[2] = [_(" 系统设置 ", -1)])]),
1371
+ default: n(() => [z("div", zt, [z("div", St, [i(Fe, {
1358
1372
  "selected-keys": l.value,
1359
1373
  "onUpdate:selectedKeys": b[0] || (b[0] = (U) => l.value = U),
1360
1374
  menus: y.value,
1361
- onChange: f
1362
- }, null, 8, ["selected-keys", "menus"])]), z("div", bt, [l.value[0] === "PersonalInformation" ? (g(), k(Ze, {
1375
+ onChange: m
1376
+ }, null, 8, ["selected-keys", "menus"])]), z("div", At, [l.value[0] === "PersonalInformation" ? (g(), k(Qe, {
1363
1377
  key: 0,
1364
1378
  size: t.value
1365
- }, null, 8, ["size"])) : S("", !0), l.value[0] === "EmailBinding" ? (g(), k(mt, {
1379
+ }, null, 8, ["size"])) : S("", !0), l.value[0] === "EmailBinding" ? (g(), k(ft, {
1366
1380
  key: 1,
1367
1381
  size: t.value
1368
- }, null, 8, ["size"])) : S("", !0), l.value[0] === "SetPassword" ? (g(), k(nt, {
1382
+ }, null, 8, ["size"])) : S("", !0), l.value[0] === "SetPassword" ? (g(), k(ot, {
1369
1383
  key: 2,
1370
1384
  size: t.value
1371
- }, null, 8, ["size"])) : S("", !0), l.value[0] === "GithubBinding" ? (g(), k(ct, {
1385
+ }, null, 8, ["size"])) : S("", !0), l.value[0] === "GithubBinding" ? (g(), k(gt, {
1372
1386
  key: 3,
1373
1387
  size: t.value
1374
- }, null, 8, ["size"])) : S("", !0), l.value[0] === "AccountDelete" ? (g(), k(ht, {
1388
+ }, null, 8, ["size"])) : S("", !0), l.value[0] === "AccountDelete" ? (g(), k(kt, {
1375
1389
  key: 4,
1376
1390
  size: t.value,
1377
- onDeleted: m
1391
+ onDeleted: d
1378
1392
  }, null, 8, ["size"])) : S("", !0)])])]),
1379
1393
  _: 1
1380
1394
  }, 8, ["visible"]));
1381
1395
  }
1382
- }), Vi = /* @__PURE__ */ $(kt, [["__scopeId", "data-v-9f056370"]]);
1383
- function zt(u) {
1384
- const o = N.appId;
1385
- if (!o) {
1386
- console.error("GitHub OAuth 失败: appId 未配置");
1396
+ }), xi = /* @__PURE__ */ C(It, [["__scopeId", "data-v-9f056370"]]);
1397
+ function ge() {
1398
+ return E.oauthCallbackUrl ? E.oauthCallbackUrl : `${window.location.origin}/auth/callback`;
1399
+ }
1400
+ function Pt() {
1401
+ const s = window.location.pathname + window.location.search;
1402
+ s.includes("/auth/callback") || sessionStorage.setItem("auth_redirect", s);
1403
+ }
1404
+ async function Y(s, r) {
1405
+ const u = E.appId;
1406
+ if (!u) {
1407
+ console.error(`${s} OAuth 失败: appId 未配置`);
1387
1408
  return;
1388
1409
  }
1389
- pe({
1390
- appId: o,
1391
- referrerId: u
1392
- }).then(({
1393
- data: a
1394
- }) => {
1410
+ const a = ge(), o = {
1411
+ appId: u,
1412
+ referrerId: r == null ? void 0 : r.referrerId,
1413
+ redirectUri: a
1414
+ };
1415
+ Pt();
1416
+ const d = {
1417
+ github: ve,
1418
+ google: pt,
1419
+ microsoft: vt
1420
+ };
1421
+ try {
1395
1422
  const {
1396
- redirectUri: n
1397
- } = a;
1398
- n ? window.location.href = n : console.error("GitHub OAuth 重定向URL为空");
1399
- }).catch((a) => {
1400
- console.error("GitHub OAuth 授权失败:", a);
1423
+ data: t
1424
+ } = await d[s](o);
1425
+ t != null && t.redirectUri ? window.location.href = t.redirectUri : console.error(`${s} OAuth 重定向URL为空`);
1426
+ } catch (t) {
1427
+ console.error(`${s} OAuth 授权失败:`, t);
1428
+ }
1429
+ }
1430
+ function Vt(s) {
1431
+ Y("github", {
1432
+ referrerId: s
1401
1433
  });
1402
1434
  }
1403
- function St() {
1435
+ function Ut(s) {
1436
+ Y("google", {
1437
+ referrerId: s
1438
+ });
1404
1439
  }
1405
- function At() {
1440
+ function $t(s) {
1441
+ Y("microsoft", {
1442
+ referrerId: s
1443
+ });
1406
1444
  }
1407
- function It() {
1445
+ function Ct() {
1408
1446
  return {
1409
- githubAuth: zt,
1410
- googleAuth: St,
1411
- microsoftAuth: At
1447
+ githubAuth: Vt,
1448
+ googleAuth: Ut,
1449
+ microsoftAuth: $t,
1450
+ startOAuth: Y,
1451
+ getOAuthCallbackUrl: ge
1412
1452
  };
1413
1453
  }
1414
- const te = /* @__PURE__ */ I({
1454
+ const ie = /* @__PURE__ */ I({
1415
1455
  __name: "AuthkitOAuthItem",
1416
1456
  props: {
1417
1457
  size: {
@@ -1430,27 +1470,27 @@ const te = /* @__PURE__ */ I({
1430
1470
  }
1431
1471
  },
1432
1472
  emits: [],
1433
- setup(u, {
1434
- emit: o
1473
+ setup(s, {
1474
+ emit: r
1435
1475
  }) {
1436
- const a = u;
1437
- return (n, r) => (g(), k(e(V), {
1476
+ const u = s;
1477
+ return (a, o) => (g(), k(e(P), {
1438
1478
  class: "OAuthItem",
1439
1479
  type: "primary",
1440
- size: a.size
1480
+ size: u.size
1441
1481
  }, {
1442
- icon: s(() => [i(e(He), {
1443
- icon: a.icon
1482
+ icon: n(() => [i(e(Me), {
1483
+ icon: u.icon
1444
1484
  }, null, 8, ["icon"])]),
1445
- default: s(() => [z("span", null, R(a.label), 1)]),
1485
+ default: n(() => [z("span", null, R(u.label), 1)]),
1446
1486
  _: 1
1447
1487
  }, 8, ["size"]));
1448
1488
  }
1449
- }), Vt = {
1489
+ }), xt = {
1450
1490
  class: "OAuthList"
1451
- }, Pt = {
1491
+ }, qt = {
1452
1492
  class: "OAuthList"
1453
- }, Ut = /* @__PURE__ */ I({
1493
+ }, Tt = /* @__PURE__ */ I({
1454
1494
  __name: "AuthkitOAuthList",
1455
1495
  props: {
1456
1496
  size: {
@@ -1462,47 +1502,47 @@ const te = /* @__PURE__ */ I({
1462
1502
  default: () => ""
1463
1503
  }
1464
1504
  },
1465
- setup(u) {
1505
+ setup(s) {
1466
1506
  const {
1467
- appsData: o
1468
- } = le(), a = u, {
1469
- githubAuth: n,
1470
- googleAuth: r,
1471
- microsoftAuth: m
1472
- } = It(), t = G(() => !(!o.value.oauth.google.enabled && !o.value.oauth.microsoft.enabled && !o.value.oauth.github.enabled && !o.value.oauth.wechat.enabled));
1473
- return (l, y) => (g(), P("div", Vt, [t.value ? (g(), k(e(Pe), {
1507
+ appsData: r
1508
+ } = se(), u = s, {
1509
+ githubAuth: a,
1510
+ googleAuth: o,
1511
+ microsoftAuth: d
1512
+ } = Ct(), t = F(() => !(!r.value.oauth.google.enabled && !r.value.oauth.microsoft.enabled && !r.value.oauth.github.enabled && !r.value.oauth.wechat.enabled));
1513
+ return (l, y) => (g(), V("div", xt, [t.value ? (g(), k(e($e), {
1474
1514
  key: 0,
1475
1515
  orientation: "center"
1476
1516
  }, {
1477
- default: s(() => [...y[0] || (y[0] = [w("OAuth登陆", -1)])]),
1517
+ default: n(() => [...y[3] || (y[3] = [_("OAuth登陆", -1)])]),
1478
1518
  _: 1
1479
- })) : S("", !0), z("div", Pt, [e(o).oauth.github.enabled ? (g(), k(te, {
1519
+ })) : S("", !0), z("div", qt, [e(r).oauth.github.enabled ? (g(), k(ie, {
1480
1520
  key: 0,
1481
1521
  icon: "mdi:github",
1482
1522
  label: "Github",
1483
- size: a.size,
1484
- onClick: e(n)
1485
- }, null, 8, ["size", "onClick"])) : S("", !0), e(o).oauth.google.enabled ? (g(), k(te, {
1523
+ size: u.size,
1524
+ onClick: y[0] || (y[0] = (m) => e(a)())
1525
+ }, null, 8, ["size"])) : S("", !0), e(r).oauth.google.enabled ? (g(), k(ie, {
1486
1526
  key: 1,
1487
1527
  icon: "mdi:google",
1488
1528
  label: "Google",
1489
- size: a.size,
1490
- onClick: e(r)
1491
- }, null, 8, ["size", "onClick"])) : S("", !0), e(o).oauth.microsoft.enabled ? (g(), k(te, {
1529
+ size: u.size,
1530
+ onClick: y[1] || (y[1] = (m) => e(o)())
1531
+ }, null, 8, ["size"])) : S("", !0), e(r).oauth.microsoft.enabled ? (g(), k(ie, {
1492
1532
  key: 2,
1493
1533
  icon: "mdi:microsoft",
1494
1534
  label: "Microsoft",
1495
- size: a.size,
1496
- onClick: e(m)
1497
- }, null, 8, ["size", "onClick"])) : S("", !0)])]));
1535
+ size: u.size,
1536
+ onClick: y[2] || (y[2] = (m) => e(d)())
1537
+ }, null, 8, ["size"])) : S("", !0)])]));
1498
1538
  }
1499
- }), Ct = /* @__PURE__ */ $(Ut, [["__scopeId", "data-v-49ca3bca"]]), $t = {
1539
+ }), Rt = /* @__PURE__ */ C(Tt, [["__scopeId", "data-v-2da85b1f"]]), Lt = {
1500
1540
  class: "content"
1501
- }, xt = {
1541
+ }, Bt = {
1502
1542
  class: "sendVerifyCodeItem"
1503
- }, qt = {
1543
+ }, Ot = {
1504
1544
  class: "handle"
1505
- }, Tt = /* @__PURE__ */ I({
1545
+ }, Et = /* @__PURE__ */ I({
1506
1546
  __name: "AuthkitPasswordUpdateAndVerify",
1507
1547
  props: {
1508
1548
  size: {
@@ -1516,10 +1556,10 @@ const te = /* @__PURE__ */ I({
1516
1556
  }
1517
1557
  },
1518
1558
  emits: ["signIn", "submit"],
1519
- setup(u, {
1520
- emit: o
1559
+ setup(s, {
1560
+ emit: r
1521
1561
  }) {
1522
- const a = o, n = u, r = _(), m = _(!1), t = _(), l = _({
1562
+ const u = r, a = s, o = w(), d = w(!1), t = w(), l = w({
1523
1563
  email: void 0,
1524
1564
  userToken: void 0,
1525
1565
  emailVerifyId: void 0,
@@ -1528,30 +1568,30 @@ const te = /* @__PURE__ */ I({
1528
1568
  });
1529
1569
  async function y() {
1530
1570
  t.value.validateField(["email"]).then((p) => {
1531
- p || (m.value = !0, X({
1571
+ p || (d.value = !0, X({
1532
1572
  email: l.value.email
1533
1573
  }).then(({
1534
- data: d
1574
+ data: c
1535
1575
  }) => {
1536
- m.value = !1, l.value.emailVerifyId = d.emailVerifyId, r.value.startCountFn();
1576
+ d.value = !1, l.value.emailVerifyId = c.emailVerifyId, o.value.startCountFn();
1537
1577
  }).catch(() => {
1538
- m.value = !1;
1578
+ d.value = !1;
1539
1579
  }));
1540
1580
  });
1541
1581
  }
1542
- async function f() {
1582
+ async function m() {
1543
1583
  t.value.validate().then((p) => {
1544
- p || a("submit", l.value);
1584
+ p || u("submit", l.value);
1545
1585
  });
1546
1586
  }
1547
- return (p, d) => (g(), P("div", $t, [i(e(H), {
1587
+ return (p, c) => (g(), V("div", Lt, [i(e(G), {
1548
1588
  ref_key: "formRef",
1549
1589
  ref: t,
1550
1590
  model: l.value,
1551
- size: n.size,
1591
+ size: a.size,
1552
1592
  "auto-label-width": ""
1553
1593
  }, {
1554
- default: s(() => [i(e(A), {
1594
+ default: n(() => [i(e(A), {
1555
1595
  field: "email",
1556
1596
  label: "邮箱",
1557
1597
  "hide-label": "",
@@ -1563,9 +1603,9 @@ const te = /* @__PURE__ */ I({
1563
1603
  message: "请输入有效的邮箱"
1564
1604
  }]
1565
1605
  }, {
1566
- default: s(() => [i(e(q), {
1606
+ default: n(() => [i(e(q), {
1567
1607
  modelValue: l.value.email,
1568
- "onUpdate:modelValue": d[0] || (d[0] = (c) => l.value.email = c),
1608
+ "onUpdate:modelValue": c[0] || (c[0] = (f) => l.value.email = f),
1569
1609
  placeholder: "请输入邮箱"
1570
1610
  }, null, 8, ["modelValue"])]),
1571
1611
  _: 1
@@ -1578,15 +1618,15 @@ const te = /* @__PURE__ */ I({
1578
1618
  message: "请输入验证码"
1579
1619
  }]
1580
1620
  }, {
1581
- default: s(() => [z("div", xt, [i(e(q), {
1621
+ default: n(() => [z("div", Bt, [i(e(q), {
1582
1622
  modelValue: l.value.userToken,
1583
- "onUpdate:modelValue": d[1] || (d[1] = (c) => l.value.userToken = c),
1623
+ "onUpdate:modelValue": c[1] || (c[1] = (f) => l.value.userToken = f),
1584
1624
  placeholder: "请输入验证码"
1585
- }, null, 8, ["modelValue"]), i(se, {
1625
+ }, null, 8, ["modelValue"]), i(ne, {
1586
1626
  ref_key: "SendVerifyCodeRef",
1587
- ref: r,
1588
- size: n.size,
1589
- loading: m.value,
1627
+ ref: o,
1628
+ size: a.size,
1629
+ loading: d.value,
1590
1630
  style: {
1591
1631
  "margin-left": "10px"
1592
1632
  },
@@ -1605,9 +1645,9 @@ const te = /* @__PURE__ */ I({
1605
1645
  message: "密码不能少于10字符"
1606
1646
  }]
1607
1647
  }, {
1608
- default: s(() => [i(e(q), {
1648
+ default: n(() => [i(e(q), {
1609
1649
  modelValue: l.value.password,
1610
- "onUpdate:modelValue": d[2] || (d[2] = (c) => l.value.password = c),
1650
+ "onUpdate:modelValue": c[2] || (c[2] = (f) => l.value.password = f),
1611
1651
  placeholder: "请输入密码",
1612
1652
  type: "password",
1613
1653
  autocomplete: ""
@@ -1624,57 +1664,57 @@ const te = /* @__PURE__ */ I({
1624
1664
  minLength: 10,
1625
1665
  message: "确认密码不能少于10字符"
1626
1666
  }, {
1627
- validator: (c, v) => {
1628
- c !== l.value.password ? v("两次密码输入不一致,请重新输入") : v();
1667
+ validator: (f, v) => {
1668
+ f !== l.value.password ? v("两次密码输入不一致,请重新输入") : v();
1629
1669
  }
1630
1670
  }]
1631
1671
  }, {
1632
- default: s(() => [i(e(q), {
1672
+ default: n(() => [i(e(q), {
1633
1673
  modelValue: l.value.confirmPassword,
1634
- "onUpdate:modelValue": d[3] || (d[3] = (c) => l.value.confirmPassword = c),
1674
+ "onUpdate:modelValue": c[3] || (c[3] = (f) => l.value.confirmPassword = f),
1635
1675
  placeholder: "请输入确认密码密码",
1636
1676
  type: "password",
1637
1677
  autocomplete: ""
1638
1678
  }, null, 8, ["modelValue"])]),
1639
1679
  _: 1
1640
- }, 8, ["rules"]), z("div", qt, [i(e(V), {
1680
+ }, 8, ["rules"]), z("div", Ot, [i(e(P), {
1641
1681
  type: "primary",
1642
- loading: n.loading,
1682
+ loading: a.loading,
1643
1683
  long: "",
1644
- size: n.size,
1645
- onClick: f
1684
+ size: a.size,
1685
+ onClick: m
1646
1686
  }, {
1647
- default: s(() => [...d[4] || (d[4] = [w(" 提交 ", -1)])]),
1687
+ default: n(() => [...c[4] || (c[4] = [_(" 提交 ", -1)])]),
1648
1688
  _: 1
1649
1689
  }, 8, ["loading", "size"])])]),
1650
1690
  _: 1
1651
1691
  }, 8, ["model", "size"])]));
1652
1692
  }
1653
- }), Rt = /* @__PURE__ */ $(Tt, [["__scopeId", "data-v-1c83f44a"]]), Lt = {
1693
+ }), Dt = /* @__PURE__ */ C(Et, [["__scopeId", "data-v-1c83f44a"]]), Nt = {
1654
1694
  class: "SwitchSignIn"
1655
- }, Bt = /* @__PURE__ */ I({
1695
+ }, Ft = /* @__PURE__ */ I({
1656
1696
  __name: "AuthkitSwitchSignIn",
1657
1697
  emits: ["switchSignIn"],
1658
- setup(u, {
1659
- emit: o
1698
+ setup(s, {
1699
+ emit: r
1660
1700
  }) {
1661
- const a = o;
1662
- function n() {
1663
- a("switchSignIn");
1701
+ const u = r;
1702
+ function a() {
1703
+ u("switchSignIn");
1664
1704
  }
1665
- return (r, m) => (g(), P("div", Lt, [z("span", null, [m[1] || (m[1] = z("span", null, "已经有账号?", -1)), i(e(M), {
1705
+ return (o, d) => (g(), V("div", Nt, [z("span", null, [d[1] || (d[1] = z("span", null, "已经有账号?", -1)), i(e(j), {
1666
1706
  style: {
1667
1707
  padding: "0px"
1668
1708
  },
1669
- onClick: n
1709
+ onClick: a
1670
1710
  }, {
1671
- default: s(() => [...m[0] || (m[0] = [w("去登陆", -1)])]),
1711
+ default: n(() => [...d[0] || (d[0] = [_("去登陆", -1)])]),
1672
1712
  _: 1
1673
1713
  })])]));
1674
1714
  }
1675
- }), ve = /* @__PURE__ */ $(Bt, [["__scopeId", "data-v-fc1d3903"]]), Ot = {
1715
+ }), ye = /* @__PURE__ */ C(Ft, [["__scopeId", "data-v-fc1d3903"]]), Gt = {
1676
1716
  class: "ResetPassword"
1677
- }, Et = /* @__PURE__ */ I({
1717
+ }, Mt = /* @__PURE__ */ I({
1678
1718
  __name: "AuthkitResetPassword",
1679
1719
  props: {
1680
1720
  size: {
@@ -1689,56 +1729,56 @@ const te = /* @__PURE__ */ I({
1689
1729
  }
1690
1730
  },
1691
1731
  emits: ["switchSignIn", "submit"],
1692
- setup(u, {
1693
- emit: o
1732
+ setup(s, {
1733
+ emit: r
1694
1734
  }) {
1695
- const a = o, n = u;
1696
- function r() {
1697
- a("switchSignIn");
1698
- }
1699
- async function m(t) {
1700
- a("submit", t);
1701
- }
1702
- return (t, l) => (g(), P("div", Ot, [i(Rt, {
1703
- loading: u.loading,
1704
- size: n.size,
1705
- onSubmit: m
1706
- }, null, 8, ["loading", "size"]), i(ve, {
1707
- onSwitchSignIn: r
1735
+ const u = r, a = s;
1736
+ function o() {
1737
+ u("switchSignIn");
1738
+ }
1739
+ async function d(t) {
1740
+ u("submit", t);
1741
+ }
1742
+ return (t, l) => (g(), V("div", Gt, [i(Dt, {
1743
+ loading: s.loading,
1744
+ size: a.size,
1745
+ onSubmit: d
1746
+ }, null, 8, ["loading", "size"]), i(ye, {
1747
+ onSwitchSignIn: o
1708
1748
  })]));
1709
1749
  }
1710
- }), Dt = /* @__PURE__ */ $(Et, [["__scopeId", "data-v-0622cbe3"]]), Gt = {
1750
+ }), Ht = /* @__PURE__ */ C(Mt, [["__scopeId", "data-v-0622cbe3"]]), jt = {
1711
1751
  class: "ServiceAgreementAndPrivacyProtection"
1712
- }, Ht = /* @__PURE__ */ I({
1752
+ }, Wt = /* @__PURE__ */ I({
1713
1753
  __name: "AuthkitServiceAgreementAndPrivacyProtection",
1714
1754
  emits: ["toUserServiceAgreement", "toPrivacyPolicy"],
1715
- setup(u, {
1716
- emit: o
1755
+ setup(s, {
1756
+ emit: r
1717
1757
  }) {
1718
- const a = o;
1719
- function n() {
1720
- a("toUserServiceAgreement");
1758
+ const u = r;
1759
+ function a() {
1760
+ u("toUserServiceAgreement");
1721
1761
  }
1722
- function r() {
1723
- a("toPrivacyPolicy");
1762
+ function o() {
1763
+ u("toPrivacyPolicy");
1724
1764
  }
1725
- return (m, t) => (g(), P("div", Gt, [t[2] || (t[2] = z("span", null, " 注册登陆即表示同意", -1)), i(e(M), {
1726
- onClick: n
1765
+ return (d, t) => (g(), V("div", jt, [t[2] || (t[2] = z("span", null, " 注册登陆即表示同意", -1)), i(e(j), {
1766
+ onClick: a
1727
1767
  }, {
1728
- default: s(() => [...t[0] || (t[0] = [w("用户服务协议", -1)])]),
1768
+ default: n(() => [...t[0] || (t[0] = [_("用户服务协议", -1)])]),
1729
1769
  _: 1
1730
- }), t[3] || (t[3] = z("span", null, " 和 ", -1)), i(e(M), {
1731
- onClick: r
1770
+ }), t[3] || (t[3] = z("span", null, " 和 ", -1)), i(e(j), {
1771
+ onClick: o
1732
1772
  }, {
1733
- default: s(() => [...t[1] || (t[1] = [w("隐私协议", -1)])]),
1773
+ default: n(() => [...t[1] || (t[1] = [_("隐私协议", -1)])]),
1734
1774
  _: 1
1735
1775
  })]));
1736
1776
  }
1737
- }), Nt = /* @__PURE__ */ $(Ht, [["__scopeId", "data-v-18e831ec"]]), Ft = {
1777
+ }), Kt = /* @__PURE__ */ C(Wt, [["__scopeId", "data-v-18e831ec"]]), Zt = {
1738
1778
  class: "content"
1739
- }, Mt = {
1779
+ }, Jt = {
1740
1780
  class: "handle"
1741
- }, jt = /* @__PURE__ */ I({
1781
+ }, Qt = /* @__PURE__ */ I({
1742
1782
  __name: "AuthkitPasswordAuth",
1743
1783
  props: {
1744
1784
  size: {
@@ -1752,38 +1792,38 @@ const te = /* @__PURE__ */ I({
1752
1792
  }
1753
1793
  },
1754
1794
  emits: ["submit"],
1755
- setup(u, {
1756
- emit: o
1795
+ setup(s, {
1796
+ emit: r
1757
1797
  }) {
1758
- const a = o, n = u;
1759
- async function r(y, f) {
1760
- const p = await Qe({
1798
+ const u = r, a = s;
1799
+ async function o(y, m) {
1800
+ const p = await Ye({
1761
1801
  password: y
1762
1802
  });
1763
- p || f("密码验证请求出错!");
1803
+ p || m("密码验证请求出错!");
1764
1804
  const {
1765
- isValidate: d,
1766
- message: c
1805
+ isValidate: c,
1806
+ message: f
1767
1807
  } = p.data;
1768
- d || f(c), f();
1808
+ c || m(f), m();
1769
1809
  }
1770
- const m = _(), t = _({
1810
+ const d = w(), t = w({
1771
1811
  email: void 0,
1772
1812
  password: void 0
1773
1813
  });
1774
1814
  async function l() {
1775
- m.value.validate().then((y) => {
1776
- y || a("submit", t.value);
1815
+ d.value.validate().then((y) => {
1816
+ y || u("submit", t.value);
1777
1817
  });
1778
1818
  }
1779
- return (y, f) => (g(), P("div", Ft, [i(e(H), {
1819
+ return (y, m) => (g(), V("div", Zt, [i(e(G), {
1780
1820
  ref_key: "formRef",
1781
- ref: m,
1821
+ ref: d,
1782
1822
  model: t.value,
1783
- size: n.size,
1823
+ size: a.size,
1784
1824
  "auto-label-width": ""
1785
1825
  }, {
1786
- default: s(() => [i(e(A), {
1826
+ default: n(() => [i(e(A), {
1787
1827
  field: "email",
1788
1828
  label: "邮箱",
1789
1829
  "hide-label": "",
@@ -1795,9 +1835,9 @@ const te = /* @__PURE__ */ I({
1795
1835
  message: "请输入有效的邮箱"
1796
1836
  }]
1797
1837
  }, {
1798
- default: s(() => [i(e(q), {
1838
+ default: n(() => [i(e(q), {
1799
1839
  modelValue: t.value.email,
1800
- "onUpdate:modelValue": f[0] || (f[0] = (p) => t.value.email = p),
1840
+ "onUpdate:modelValue": m[0] || (m[0] = (p) => t.value.email = p),
1801
1841
  placeholder: "请输入邮箱",
1802
1842
  autocomplete: "email username",
1803
1843
  type: "email"
@@ -1811,66 +1851,66 @@ const te = /* @__PURE__ */ I({
1811
1851
  required: !0,
1812
1852
  message: "请输入密码"
1813
1853
  }, {
1814
- validator: r
1854
+ validator: o
1815
1855
  }]
1816
1856
  }, {
1817
- default: s(() => [i(e(q), {
1857
+ default: n(() => [i(e(q), {
1818
1858
  modelValue: t.value.password,
1819
- "onUpdate:modelValue": f[1] || (f[1] = (p) => t.value.password = p),
1859
+ "onUpdate:modelValue": m[1] || (m[1] = (p) => t.value.password = p),
1820
1860
  placeholder: "请输入密码",
1821
1861
  type: "password",
1822
1862
  autocomplete: "current-password"
1823
1863
  }, null, 8, ["modelValue"])]),
1824
1864
  _: 1
1825
- }, 8, ["rules"]), z("div", Mt, [i(e(V), {
1865
+ }, 8, ["rules"]), z("div", Jt, [i(e(P), {
1826
1866
  type: "primary",
1827
- loading: n.loading,
1867
+ loading: a.loading,
1828
1868
  long: "",
1829
- size: n.size,
1869
+ size: a.size,
1830
1870
  onClick: l
1831
1871
  }, {
1832
- default: s(() => [...f[2] || (f[2] = [w(" 登陆 ", -1)])]),
1872
+ default: n(() => [...m[2] || (m[2] = [_(" 登陆 ", -1)])]),
1833
1873
  _: 1
1834
1874
  }, 8, ["loading", "size"])])]),
1835
1875
  _: 1
1836
1876
  }, 8, ["model", "size"])]));
1837
1877
  }
1838
- }), Wt = /* @__PURE__ */ $(jt, [["__scopeId", "data-v-76d6bc26"]]), Kt = {
1878
+ }), Xt = /* @__PURE__ */ C(Qt, [["__scopeId", "data-v-76d6bc26"]]), Yt = {
1839
1879
  class: "SwitchSignUpOrResetPassword"
1840
- }, Zt = /* @__PURE__ */ I({
1880
+ }, ei = /* @__PURE__ */ I({
1841
1881
  __name: "AuthkitSwitchSignUpOrResetPassword",
1842
1882
  emits: ["switchSignUp", "switchResetPassword"],
1843
- setup(u, {
1844
- emit: o
1883
+ setup(s, {
1884
+ emit: r
1845
1885
  }) {
1846
- const a = o;
1847
- function n() {
1848
- a("switchSignUp");
1886
+ const u = r;
1887
+ function a() {
1888
+ u("switchSignUp");
1849
1889
  }
1850
- function r() {
1851
- a("switchResetPassword");
1890
+ function o() {
1891
+ u("switchResetPassword");
1852
1892
  }
1853
- return (m, t) => (g(), P("div", Kt, [z("span", null, [t[1] || (t[1] = z("span", null, " 还没有账户?", -1)), i(e(M), {
1893
+ return (d, t) => (g(), V("div", Yt, [z("span", null, [t[1] || (t[1] = z("span", null, " 还没有账户?", -1)), i(e(j), {
1854
1894
  style: {
1855
1895
  padding: "0px"
1856
1896
  },
1857
- onClick: n
1897
+ onClick: a
1858
1898
  }, {
1859
- default: s(() => [...t[0] || (t[0] = [w("去注册?", -1)])]),
1899
+ default: n(() => [...t[0] || (t[0] = [_("去注册?", -1)])]),
1860
1900
  _: 1
1861
- })]), i(e(M), {
1901
+ })]), i(e(j), {
1862
1902
  style: {
1863
1903
  padding: "0px"
1864
1904
  },
1865
- onClick: r
1905
+ onClick: o
1866
1906
  }, {
1867
- default: s(() => [...t[2] || (t[2] = [w(" 忘记密码?", -1)])]),
1907
+ default: n(() => [...t[2] || (t[2] = [_(" 忘记密码?", -1)])]),
1868
1908
  _: 1
1869
1909
  })]));
1870
1910
  }
1871
- }), Jt = /* @__PURE__ */ $(Zt, [["__scopeId", "data-v-14e3aab2"]]), Qt = {
1911
+ }), ti = /* @__PURE__ */ C(ei, [["__scopeId", "data-v-14e3aab2"]]), ii = {
1872
1912
  class: "SignIn"
1873
- }, Xt = /* @__PURE__ */ I({
1913
+ }, li = /* @__PURE__ */ I({
1874
1914
  __name: "AuthkitSignIn",
1875
1915
  props: {
1876
1916
  size: {
@@ -1884,33 +1924,33 @@ const te = /* @__PURE__ */ I({
1884
1924
  }
1885
1925
  },
1886
1926
  emits: ["submit", "switchSignUp", "switchResetPassword"],
1887
- setup(u, {
1888
- emit: o
1927
+ setup(s, {
1928
+ emit: r
1889
1929
  }) {
1890
- const a = o, n = u, r = Se(), m = G(() => !!r.OAuth);
1930
+ const u = r, a = s, o = Ie(), d = F(() => !!o.OAuth);
1891
1931
  function t() {
1892
- a("switchSignUp");
1932
+ u("switchSignUp");
1893
1933
  }
1894
1934
  function l() {
1895
- a("switchResetPassword");
1935
+ u("switchResetPassword");
1896
1936
  }
1897
- async function y(f) {
1898
- a("submit", f);
1937
+ async function y(m) {
1938
+ u("submit", m);
1899
1939
  }
1900
- return (f, p) => (g(), P("div", Qt, [S("", !0), i(Wt, {
1901
- loading: n.loading,
1902
- size: n.size,
1940
+ return (m, p) => (g(), V("div", ii, [S("", !0), i(Xt, {
1941
+ loading: a.loading,
1942
+ size: a.size,
1903
1943
  onSubmit: y
1904
- }, null, 8, ["loading", "size"]), m.value ? ue(f.$slots, "OAuth", {
1944
+ }, null, 8, ["loading", "size"]), d.value ? de(m.$slots, "OAuth", {
1905
1945
  key: 1
1906
- }, void 0, !0) : S("", !0), i(Jt, {
1946
+ }, void 0, !0) : S("", !0), i(ti, {
1907
1947
  onSwitchSignUp: t,
1908
1948
  onSwitchResetPassword: l
1909
1949
  })]));
1910
1950
  }
1911
- }), Yt = /* @__PURE__ */ $(Xt, [["__scopeId", "data-v-f52ce3b3"]]), ei = {
1951
+ }), si = /* @__PURE__ */ C(li, [["__scopeId", "data-v-f52ce3b3"]]), ni = {
1912
1952
  class: "SignUp"
1913
- }, ti = /* @__PURE__ */ I({
1953
+ }, ai = /* @__PURE__ */ I({
1914
1954
  __name: "AuthkitSignUp",
1915
1955
  props: {
1916
1956
  size: {
@@ -1924,25 +1964,25 @@ const te = /* @__PURE__ */ I({
1924
1964
  }
1925
1965
  },
1926
1966
  emits: ["switchSignIn", "submit"],
1927
- setup(u, {
1928
- emit: o
1967
+ setup(s, {
1968
+ emit: r
1929
1969
  }) {
1930
- const a = o, n = u;
1931
- function r() {
1932
- a("switchSignIn");
1933
- }
1934
- async function m(t) {
1935
- a("submit", t);
1936
- }
1937
- return (t, l) => (g(), P("div", ei, [i(fe, {
1938
- size: n.size,
1939
- loading: u.loading,
1940
- onSubmit: m
1941
- }, null, 8, ["size", "loading"]), i(ve, {
1942
- onSwitchSignIn: r
1970
+ const u = r, a = s;
1971
+ function o() {
1972
+ u("switchSignIn");
1973
+ }
1974
+ async function d(t) {
1975
+ u("submit", t);
1976
+ }
1977
+ return (t, l) => (g(), V("div", ni, [i(pe, {
1978
+ size: a.size,
1979
+ loading: s.loading,
1980
+ onSubmit: d
1981
+ }, null, 8, ["size", "loading"]), i(ye, {
1982
+ onSwitchSignIn: o
1943
1983
  })]));
1944
1984
  }
1945
- }), ii = /* @__PURE__ */ $(ti, [["__scopeId", "data-v-058bbbef"]]), li = ["src"], si = /* @__PURE__ */ I({
1985
+ }), oi = /* @__PURE__ */ C(ai, [["__scopeId", "data-v-058bbbef"]]), ri = ["src"], ui = /* @__PURE__ */ I({
1946
1986
  __name: "AuthkitAuthTitle",
1947
1987
  props: {
1948
1988
  size: {
@@ -1961,32 +2001,32 @@ const te = /* @__PURE__ */ I({
1961
2001
  default: 60
1962
2002
  }
1963
2003
  },
1964
- setup(u) {
1965
- const o = u, a = `${o.size}px`, n = `${o.fontSize}px`, r = `${o.lineHeight}px`, {
1966
- currentView: m
2004
+ setup(s) {
2005
+ const r = s, u = `${r.size}px`, a = `${r.fontSize}px`, o = `${r.lineHeight}px`, {
2006
+ currentView: d
1967
2007
  } = Q(), {
1968
2008
  appsData: t
1969
- } = le(), l = G(() => m.value === "signIn" ? `${t.value.name}登录` : m.value === "signUp" ? `${t.value.name}账号注册` : m.value === "resetPassword" ? `${t.value.name}密码重置` : "");
1970
- return (y, f) => (g(), P("div", {
2009
+ } = se(), l = F(() => d.value === "signIn" ? `${t.value.name}登录` : d.value === "signUp" ? `${t.value.name}账号注册` : d.value === "resetPassword" ? `${t.value.name}密码重置` : "");
2010
+ return (y, m) => (g(), V("div", {
1971
2011
  class: "Title",
1972
- style: ie({
1973
- fontSize: n,
1974
- lineHeight: r
2012
+ style: le({
2013
+ fontSize: a,
2014
+ lineHeight: o
1975
2015
  })
1976
- }, [e(t).applicationLogoUrl ? (g(), P("img", {
2016
+ }, [e(t).applicationLogoUrl ? (g(), V("img", {
1977
2017
  key: 0,
1978
2018
  src: e(t).applicationLogoUrl,
1979
2019
  srcset: "",
1980
- style: ie({
1981
- width: a
2020
+ style: le({
2021
+ width: u
1982
2022
  })
1983
- }, null, 12, li)) : S("", !0), z("span", null, R(l.value), 1), ue(y.$slots, "default", {}, void 0, !0)], 4));
2023
+ }, null, 12, ri)) : S("", !0), z("span", null, R(l.value), 1), de(y.$slots, "default", {}, void 0, !0)], 4));
1984
2024
  }
1985
- }), ge = /* @__PURE__ */ $(si, [["__scopeId", "data-v-5576db64"]]), ni = {
2025
+ }), he = /* @__PURE__ */ C(ui, [["__scopeId", "data-v-5576db64"]]), di = {
1986
2026
  class: "Auth"
1987
- }, ai = {
2027
+ }, ci = {
1988
2028
  class: "body"
1989
- }, oi = /* @__PURE__ */ I({
2029
+ }, mi = /* @__PURE__ */ I({
1990
2030
  __name: "AuthkitAuth",
1991
2031
  props: {
1992
2032
  size: {
@@ -1999,63 +2039,63 @@ const te = /* @__PURE__ */ I({
1999
2039
  }
2000
2040
  },
2001
2041
  emits: ["toPrivacyPolicy", "toUserServiceAgreement"],
2002
- setup(u, {
2003
- emit: o
2042
+ setup(s, {
2043
+ emit: r
2004
2044
  }) {
2005
- const a = u, n = o, {
2006
- signInSubmit: r,
2007
- signUpSubmit: m,
2045
+ const u = s, a = r, {
2046
+ signInSubmit: o,
2047
+ signUpSubmit: d,
2008
2048
  resetPasswordSubmit: t,
2009
2049
  currentView: l,
2010
2050
  authSignInLoading: y,
2011
- authSignUpLoading: f,
2051
+ authSignUpLoading: m,
2012
2052
  resetPasswordLoading: p,
2013
- switchSignUp: d,
2014
- switchResetPassword: c,
2053
+ switchSignUp: c,
2054
+ switchResetPassword: f,
2015
2055
  switchSignIn: v
2016
2056
  } = Q(), {
2017
2057
  appsAuthPageInfoApi: b
2018
- } = le();
2058
+ } = se();
2019
2059
  function U() {
2020
- n("toPrivacyPolicy");
2060
+ a("toPrivacyPolicy");
2021
2061
  }
2022
- function C() {
2023
- n("toUserServiceAgreement");
2062
+ function $() {
2063
+ a("toUserServiceAgreement");
2024
2064
  }
2025
- return b(), (T, B) => (g(), P("div", ni, [u.showTitle ? (g(), k(ge, {
2065
+ return b(), (T, B) => (g(), V("div", di, [s.showTitle ? (g(), k(he, {
2026
2066
  key: 0,
2027
2067
  size: 32,
2028
2068
  "font-size": 20
2029
- })) : S("", !0), z("div", ai, [e(l) === "signIn" ? (g(), k(Yt, {
2069
+ })) : S("", !0), z("div", ci, [e(l) === "signIn" ? (g(), k(si, {
2030
2070
  key: 0,
2031
- size: a.size,
2071
+ size: u.size,
2032
2072
  loading: e(y),
2033
- onSwitchSignUp: e(d),
2034
- onSwitchResetPassword: e(c),
2035
- onSubmit: B[0] || (B[0] = (O) => e(r)(O))
2073
+ onSwitchSignUp: e(c),
2074
+ onSwitchResetPassword: e(f),
2075
+ onSubmit: B[0] || (B[0] = (O) => e(o)(O))
2036
2076
  }, {
2037
- OAuth: s(() => [i(Ct, {
2038
- size: a.size
2077
+ OAuth: n(() => [i(Rt, {
2078
+ size: u.size
2039
2079
  }, null, 8, ["size"])]),
2040
2080
  _: 1
2041
- }, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(l) === "signUp" ? (g(), k(ii, {
2081
+ }, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(l) === "signUp" ? (g(), k(oi, {
2042
2082
  key: 1,
2043
- size: a.size,
2044
- loading: e(f),
2083
+ size: u.size,
2084
+ loading: e(m),
2045
2085
  onSwitchSignIn: e(v),
2046
- onSubmit: B[1] || (B[1] = (O) => e(m)(O))
2047
- }, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(l) === "resetPassword" ? (g(), k(Dt, {
2086
+ onSubmit: B[1] || (B[1] = (O) => e(d)(O))
2087
+ }, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(l) === "resetPassword" ? (g(), k(Ht, {
2048
2088
  key: 2,
2049
- size: a.size,
2089
+ size: u.size,
2050
2090
  loading: e(p),
2051
2091
  onSwitchSignIn: e(v),
2052
2092
  onSubmit: B[2] || (B[2] = (O) => e(t)(O))
2053
- }, null, 8, ["size", "loading", "onSwitchSignIn"])) : S("", !0), i(Nt, {
2093
+ }, null, 8, ["size", "loading", "onSwitchSignIn"])) : S("", !0), i(Kt, {
2054
2094
  onToPrivacyPolicy: U,
2055
- onToUserServiceAgreement: C
2095
+ onToUserServiceAgreement: $
2056
2096
  })])]));
2057
2097
  }
2058
- }), ri = /* @__PURE__ */ $(oi, [["__scopeId", "data-v-186d2441"]]), ui = /* @__PURE__ */ I({
2098
+ }), fi = /* @__PURE__ */ C(mi, [["__scopeId", "data-v-186d2441"]]), pi = /* @__PURE__ */ I({
2059
2099
  __name: "AuthkitAuthModal",
2060
2100
  props: {
2061
2101
  size: {
@@ -2068,25 +2108,25 @@ const te = /* @__PURE__ */ I({
2068
2108
  }
2069
2109
  },
2070
2110
  emits: ["confirm", "close", "toPrivacyPolicy", "toUserServiceAgreement"],
2071
- setup(u, {
2072
- emit: o
2111
+ setup(s, {
2112
+ emit: r
2073
2113
  }) {
2074
2114
  const {
2075
- addSignInCallback: a
2115
+ addSignInCallback: u
2076
2116
  } = Q(), {
2077
- show: n
2078
- } = Ue(), r = u, m = o;
2117
+ show: a
2118
+ } = Ce(), o = s, d = r;
2079
2119
  function t(y) {
2080
2120
  y(!0);
2081
2121
  }
2082
2122
  function l() {
2083
- n.value = !1, m("close");
2123
+ a.value = !1, d("close");
2084
2124
  }
2085
- return a(() => {
2086
- n.value = !1;
2087
- }), (y, f) => (g(), k(e(me), {
2088
- visible: e(n),
2089
- "onUpdate:visible": f[2] || (f[2] = (p) => re(n) ? n.value = p : null),
2125
+ return u(() => {
2126
+ a.value = !1;
2127
+ }), (y, m) => (g(), k(e(me), {
2128
+ visible: e(a),
2129
+ "onUpdate:visible": m[2] || (m[2] = (p) => ue(a) ? a.value = p : null),
2090
2130
  footer: !1,
2091
2131
  "mask-closable": !1,
2092
2132
  "title-align": "center",
@@ -2096,38 +2136,39 @@ const te = /* @__PURE__ */ I({
2096
2136
  onBeforeOk: t,
2097
2137
  onClose: l
2098
2138
  }, {
2099
- title: s(() => [i(ge)]),
2100
- default: s(() => [i(ri, {
2139
+ title: n(() => [i(he)]),
2140
+ default: n(() => [i(fi, {
2101
2141
  "show-title": !1,
2102
- size: r.size,
2103
- onToPrivacyPolicy: f[0] || (f[0] = (p) => m("toPrivacyPolicy")),
2104
- onToUserServiceAgreement: f[1] || (f[1] = (p) => m("toUserServiceAgreement"))
2142
+ size: o.size,
2143
+ onToPrivacyPolicy: m[0] || (m[0] = (p) => d("toPrivacyPolicy")),
2144
+ onToUserServiceAgreement: m[1] || (m[1] = (p) => d("toUserServiceAgreement"))
2105
2145
  }, null, 8, ["size"])]),
2106
2146
  _: 1
2107
2147
  }, 8, ["visible"]));
2108
2148
  }
2109
- }), Pi = /* @__PURE__ */ $(ui, [["__scopeId", "data-v-6fbefff8"]]);
2149
+ }), qi = /* @__PURE__ */ C(pi, [["__scopeId", "data-v-6fbefff8"]]);
2110
2150
  export {
2111
- Vi as A,
2112
- fe as E,
2113
- Ct as O,
2114
- Rt as P,
2115
- Dt as R,
2116
- se as S,
2117
- te as _,
2118
- ri as a,
2119
- ge as b,
2120
- Pi as c,
2121
- Yt as d,
2122
- ii as e,
2123
- Wt as f,
2124
- ve as g,
2125
- Jt as h,
2126
- Nt as i,
2127
- Ze as j,
2128
- ne as k,
2129
- ct as l,
2130
- nt as m,
2131
- mt as n,
2132
- st as o
2151
+ xi as A,
2152
+ pe as E,
2153
+ Rt as O,
2154
+ Dt as P,
2155
+ Ht as R,
2156
+ ne as S,
2157
+ ie as _,
2158
+ fi as a,
2159
+ he as b,
2160
+ qi as c,
2161
+ si as d,
2162
+ oi as e,
2163
+ Xt as f,
2164
+ ye as g,
2165
+ ti as h,
2166
+ Kt as i,
2167
+ Qe as j,
2168
+ ae as k,
2169
+ gt as l,
2170
+ ot as m,
2171
+ ft as n,
2172
+ at as o,
2173
+ Ct as u
2133
2174
  };