@huyooo/ui 0.10.2 → 0.10.3

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 (30) hide show
  1. package/dist/{AuthkitAuthModal-CIqo_ytT.js → AuthkitAuthModal-De0eEWOC.js} +443 -443
  2. package/dist/{AuthkitSignInPhone-GEP_InIp.js → AuthkitSignInPhone-DEUVn3Rq.js} +4 -4
  3. package/dist/{Clipboard-BsST2Mjo.js → Clipboard-CMm8I4Rb.js} +1 -1
  4. package/dist/{CollapseItem-DN-GUAQA.js → CollapseItem-BAuejDBZ.js} +10 -10
  5. package/dist/{Contact-D1RLCHL7.js → Contact-Dgn8_it4.js} +1 -1
  6. package/dist/{FeedbackItem-BhBJPtoI.js → FeedbackItem-CRiLkWMh.js} +6 -6
  7. package/dist/{FeedbackModal-Ci0sZsOa.js → FeedbackModal-B8WLPCy_.js} +365 -366
  8. package/dist/{LandingPageSectionHeader-1h01zdKJ.js → LandingPageSectionHeader-Cs1x8i3q.js} +1 -1
  9. package/dist/{LandingPageSectionTabs-BRTZaLEe.js → LandingPageSectionTabs-Dv_xOLqR.js} +11 -11
  10. package/dist/{Menu-v8cCDSzi.js → Menu-Cy2ZPeaz.js} +18 -18
  11. package/dist/{MessageHandle-Dkpc4axC.js → MessageHandle-DpIUeQ7U.js} +6 -6
  12. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DqXjEfo9.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BbtfWRUD.js} +47 -47
  13. package/dist/{PaySubscriptions-ygmbIpWM.js → PaySubscriptions-W6GJ28uE.js} +15 -15
  14. package/dist/{ReferrerReferees-BlHsWD6F.js → ReferrerReferees-C5Sjn7aD.js} +7 -7
  15. package/dist/{UserAccountMenu-C6MK8Ulm.js → UserAccountMenu-OdwonGFa.js} +6 -6
  16. package/dist/{WidthContainer-IvPa1ayt.js → WidthContainer-Cpdc67hQ.js} +125 -128
  17. package/dist/authkit.js +2 -2
  18. package/dist/common.js +3 -3
  19. package/dist/components/Authkit/AuthkitAppSetting.vue.d.ts +1 -1
  20. package/dist/components/User/UserPanel.vue.d.ts +2 -2
  21. package/dist/feedback.js +3 -3
  22. package/dist/landingPage.js +2 -2
  23. package/dist/main.js +50 -50
  24. package/dist/message.js +2 -2
  25. package/dist/pay.js +1 -1
  26. package/dist/privateCom.js +1 -1
  27. package/dist/referrer.js +1 -1
  28. package/dist/style.css +1 -1
  29. package/dist/user.js +1 -1
  30. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { defineComponent as V, computed as N, openBlock as g, createElementBlock as U, normalizeStyle as ie, normalizeClass as _e, createElementVNode as z, ref as w, createBlock as k, unref as e, withCtx as a, createVNode as i, createTextVNode as _, onMounted as K, onUnmounted as oe, withDirectives as be, toDisplayString as B, vShow as ke, Fragment as M, createCommentVNode as S, renderList as ze, isRef as re, useSlots as Se, renderSlot as ue } from "vue";
5
- import { Form as H, FormItem as I, Avatar as de, Input as x, Textarea as Ie, Button as A, Message as F, Alert as D, Space as Y, InputPassword as Ve, Result as Ae, Modal as me, Divider as Pe, Link as G } from "@arco-design/web-vue";
4
+ import { defineComponent as V, computed as N, openBlock as g, createElementBlock as U, normalizeStyle as se, normalizeClass as _e, createElementVNode as z, ref as h, createBlock as k, unref as e, withCtx as a, createVNode as i, createTextVNode as _, onMounted as K, onUnmounted as re, withDirectives as be, toDisplayString as B, vShow as ke, Fragment as M, createCommentVNode as S, renderList as ze, isRef as ue, useSlots as Se, renderSlot as de } from "vue";
5
+ import { Form as H, FormItem as I, Avatar as me, Input as x, Textarea as Ie, Button as A, Message as F, Alert as D, Space as ee, InputPassword as Ve, Result as Ae, Modal as ce, Divider as Pe, Link as G } from "@arco-design/web-vue";
6
6
  /* empty css */
7
- import { e as R, g as j, i as ce, u as Ue } from "./apiClients-DJchWBAG.js";
7
+ import { e as R, g as j, i as fe, u as Ue } from "./apiClients-DJchWBAG.js";
8
8
  /* empty css */
9
9
  import { u as $e } from "./useUploadCos-BO3W_uqs.js";
10
10
  import { _ as Ce, g as xe, i as qe } from "./plugin-vue_export-helper-LjDO2Zua.js";
11
11
  import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
12
  import { a as Z, u as J } from "./useAuthkitUsersProfile-BqW74gfs.js";
13
- import { M as Te } from "./Menu-v8cCDSzi.js";
13
+ import { M as Te } from "./Menu-Cy2ZPeaz.js";
14
14
  import { u as Re } from "./useAuthkitCreateAndUpdate-CPkogY7K.js";
15
- import { u as se } from "./useAuthkitAppsAuthPageInfo-C3EHOtlk.js";
15
+ import { u as ae } from "./useAuthkitAppsAuthPageInfo-C3EHOtlk.js";
16
16
  import { Icon as Le } from "@iconify/vue";
17
17
  const Be = V({
18
18
  name: "IconCamera",
@@ -41,10 +41,10 @@ const Be = V({
41
41
  click: (o) => !0
42
42
  },
43
43
  setup(o, {
44
- emit: u
44
+ emit: r
45
45
  }) {
46
- const d = xe("icon"), l = N(() => [d, `${d}-camera`, {
47
- [`${d}-spin`]: o.spin
46
+ const u = xe("icon"), l = N(() => [u, `${u}-camera`, {
47
+ [`${u}-spin`]: o.spin
48
48
  }]), n = N(() => {
49
49
  const t = {};
50
50
  return o.size && (t.fontSize = qe(o.size) ? `${o.size}px` : o.size), o.rotate && (t.transform = `rotate(${o.rotate}deg)`), t;
@@ -53,33 +53,33 @@ const Be = V({
53
53
  cls: l,
54
54
  innerStyle: n,
55
55
  onClick: (t) => {
56
- u("click", t);
56
+ r("click", t);
57
57
  }
58
58
  };
59
59
  }
60
60
  }), Oe = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
61
- function Ee(o, u, d, l, n, c) {
61
+ function Ee(o, r, u, l, n, d) {
62
62
  return g(), U("svg", {
63
63
  viewBox: "0 0 48 48",
64
64
  fill: "none",
65
65
  xmlns: "http://www.w3.org/2000/svg",
66
66
  stroke: "currentColor",
67
67
  class: _e(o.cls),
68
- style: ie(o.innerStyle),
68
+ style: se(o.innerStyle),
69
69
  "stroke-width": o.strokeWidth,
70
70
  "stroke-linecap": o.strokeLinecap,
71
71
  "stroke-linejoin": o.strokeLinejoin,
72
- onClick: u[0] || (u[0] = (...t) => o.onClick && o.onClick(...t))
73
- }, u[1] || (u[1] = [z("path", {
72
+ onClick: r[0] || (r[0] = (...t) => o.onClick && o.onClick(...t))
73
+ }, r[1] || (r[1] = [z("path", {
74
74
  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"
75
75
  }, null, -1)]), 14, Oe);
76
76
  }
77
- var ee = /* @__PURE__ */ Ce(Be, [["render", Ee]]);
78
- const De = Object.assign(ee, {
79
- install: (o, u) => {
80
- var d;
81
- const l = (d = u == null ? void 0 : u.iconPrefix) != null ? d : "";
82
- o.component(l + ee.name, ee);
77
+ var te = /* @__PURE__ */ Ce(Be, [["render", Ee]]);
78
+ const De = Object.assign(te, {
79
+ install: (o, r) => {
80
+ var u;
81
+ const l = (u = r == null ? void 0 : r.iconPrefix) != null ? u : "";
82
+ o.component(l + te.name, te);
83
83
  }
84
84
  }), Ne = {
85
85
  class: "handle"
@@ -93,78 +93,80 @@ const De = Object.assign(ee, {
93
93
  },
94
94
  emits: ["submit"],
95
95
  setup(o, {
96
- emit: u
96
+ emit: r
97
97
  }) {
98
- const d = u, l = o, n = w({
98
+ const u = r, l = o, n = h({
99
99
  id: void 0,
100
100
  nickname: "",
101
101
  description: "",
102
102
  avatar: "",
103
103
  avatarUrl: ""
104
- }), c = w(!1), t = w(), s = w(!1);
105
- async function y() {
104
+ }), d = h(!1), t = h(), s = h(!1), y = {
105
+ color: "var(--huyooo-accent-primary)"
106
+ };
107
+ async function m() {
106
108
  s.value = !0;
107
109
  const {
108
- data: r
110
+ data: p
109
111
  } = await R.users.profile.post({});
110
- s.value = !1, r && (n.value.id = r.id, n.value.nickname = r.nickname, n.value.description = r.description, n.value.avatar = r.avatar, n.value.avatarUrl = r.avatarUrl);
112
+ s.value = !1, p && (n.value.id = p.id, n.value.nickname = p.nickname, n.value.description = p.description, n.value.avatar = p.avatar, n.value.avatarUrl = p.avatarUrl);
111
113
  }
112
- async function f() {
114
+ async function v() {
113
115
  if (!await t.value.validate()) {
114
116
  s.value = !0;
115
- const m = {
117
+ const f = {
116
118
  id: n.value.id,
117
119
  nickname: n.value.nickname,
118
120
  description: n.value.description,
119
121
  avatar: n.value.avatar
120
122
  }, {
121
- data: p,
122
- error: h
123
- } = await R.users.update.baseInfo.post(m);
124
- s.value = !1, !h && p && (F.success("更新成功"), n.value.avatarUrl = p.avatarUrl, d("submit"));
123
+ data: w,
124
+ error: C
125
+ } = await R.users.update.baseInfo.post(f);
126
+ s.value = !1, !C && w && (F.success("更新成功"), n.value.avatarUrl = w.avatarUrl, u("submit"));
125
127
  }
126
128
  }
127
- y();
128
- const v = () => {
129
+ m();
130
+ const c = () => {
129
131
  const {
130
- uploadFile: r
131
- } = $e(), m = document.createElement("input");
132
- m.type = "file", m.accept = "image/*", m.style.display = "none", document.body.append(m), m.addEventListener("change", async (p) => {
133
- var P;
134
- const C = (P = p.target.files) == null ? void 0 : P[0];
135
- if (C) {
136
- c.value = !0;
132
+ uploadFile: p
133
+ } = $e(), f = document.createElement("input");
134
+ f.type = "file", f.accept = "image/*", f.style.display = "none", document.body.append(f), f.addEventListener("change", async (w) => {
135
+ var L;
136
+ const P = (L = w.target.files) == null ? void 0 : L[0];
137
+ if (P) {
138
+ d.value = !0;
137
139
  try {
138
- r({
140
+ p({
139
141
  bucketId: j.avatarBucketId,
140
- file: C,
141
- onFileFinish(q, L, E) {
142
- c.value = !0;
143
- const W = {
142
+ file: P,
143
+ onFileFinish(q, E, W) {
144
+ d.value = !0;
145
+ const X = {
144
146
  id: n.value.id,
145
147
  nickname: n.value.nickname,
146
148
  description: n.value.description,
147
- avatar: E.Key
149
+ avatar: W.Key
148
150
  };
149
151
  (async () => {
150
152
  const {
151
- error: X
152
- } = await R.users.update.baseInfo.post(W);
153
- c.value = !1, X || (F.success("更新成功"), y(), d("submit"));
153
+ error: Y
154
+ } = await R.users.update.baseInfo.post(X);
155
+ d.value = !1, Y || (F.success("更新成功"), m(), u("submit"));
154
156
  })();
155
157
  },
156
158
  onError(q) {
157
- console.error("上传图片失败"), c.value = !1;
159
+ console.error("上传图片失败"), d.value = !1;
158
160
  }
159
161
  });
160
162
  } catch (q) {
161
- console.error("上传图片失败", q), c.value = !1;
163
+ console.error("上传图片失败", q), d.value = !1;
162
164
  }
163
165
  }
164
- m.remove();
165
- }), m.click();
166
+ f.remove();
167
+ }), f.click();
166
168
  };
167
- return (r, m) => (g(), k(e(H), {
169
+ return (p, f) => (g(), k(e(H), {
168
170
  ref_key: "formRef",
169
171
  ref: t,
170
172
  model: n.value,
@@ -179,14 +181,12 @@ const De = Object.assign(ee, {
179
181
  message: "请上传头像"
180
182
  }]
181
183
  }, {
182
- default: a(() => [i(e(de), {
184
+ default: a(() => [i(e(me), {
183
185
  "image-url": n.value.avatarUrl,
184
186
  size: 42,
185
187
  "object-fit": "cover",
186
- "trigger-icon-style": {
187
- color: "#3491FA"
188
- },
189
- onClick: v
188
+ "trigger-icon-style": y,
189
+ onClick: c
190
190
  }, {
191
191
  "trigger-icon": a(() => [i(e(De))]),
192
192
  _: 1
@@ -202,7 +202,7 @@ const De = Object.assign(ee, {
202
202
  }, {
203
203
  default: a(() => [i(e(x), {
204
204
  modelValue: n.value.nickname,
205
- "onUpdate:modelValue": m[0] || (m[0] = (p) => n.value.nickname = p),
205
+ "onUpdate:modelValue": f[0] || (f[0] = (w) => n.value.nickname = w),
206
206
  placeholder: "请输入昵称"
207
207
  }, null, 8, ["modelValue"])]),
208
208
  _: 1
@@ -216,7 +216,7 @@ const De = Object.assign(ee, {
216
216
  }, {
217
217
  default: a(() => [i(e(Ie), {
218
218
  modelValue: n.value.description,
219
- "onUpdate:modelValue": m[1] || (m[1] = (p) => n.value.description = p),
219
+ "onUpdate:modelValue": f[1] || (f[1] = (w) => n.value.description = w),
220
220
  placeholder: "请输入描述",
221
221
  "allow-clear": "",
222
222
  "auto-size": {
@@ -232,9 +232,9 @@ const De = Object.assign(ee, {
232
232
  default: a(() => [z("div", Ne, [i(e(A), {
233
233
  type: "primary",
234
234
  loading: s.value,
235
- onClick: f
235
+ onClick: v
236
236
  }, {
237
- default: a(() => [...m[2] || (m[2] = [_(" 提交 ", -1)])]),
237
+ default: a(() => [...f[2] || (f[2] = [_(" 提交 ", -1)])]),
238
238
  _: 1
239
239
  }, 8, ["loading"])])]),
240
240
  _: 1
@@ -242,7 +242,7 @@ const De = Object.assign(ee, {
242
242
  _: 1
243
243
  }, 8, ["model", "size"]));
244
244
  }
245
- }), He = /* @__PURE__ */ $(Fe, [["__scopeId", "data-v-7815fc15"]]), Me = /* @__PURE__ */ V({
245
+ }), He = /* @__PURE__ */ $(Fe, [["__scopeId", "data-v-1d138326"]]), Me = /* @__PURE__ */ V({
246
246
  __name: "AuthkitSendVerifyCode",
247
247
  props: {
248
248
  size: {
@@ -257,40 +257,40 @@ const De = Object.assign(ee, {
257
257
  },
258
258
  emits: ["send"],
259
259
  setup(o, {
260
- expose: u,
261
- emit: d
260
+ expose: r,
261
+ emit: u
262
262
  }) {
263
- const l = d, n = o, c = w(!1);
263
+ const l = u, n = o, d = h(!1);
264
264
  let t;
265
- const s = w(0), y = N(() => s.value.toString().padStart(2, "0")), f = N(() => s.value > 0), v = () => {
266
- c.value && (s.value <= 0 ? (clearInterval(t), c.value = !1) : s.value--);
265
+ const s = h(0), y = N(() => s.value.toString().padStart(2, "0")), m = N(() => s.value > 0), v = () => {
266
+ d.value && (s.value <= 0 ? (clearInterval(t), d.value = !1) : s.value--);
267
267
  };
268
- function r() {
268
+ function c() {
269
269
  l("send");
270
270
  }
271
- function m() {
272
- s.value = 60, c.value = !0, t && clearInterval(t), t = setInterval(v, 1e3);
271
+ function p() {
272
+ s.value = 60, d.value = !0, t && clearInterval(t), t = setInterval(v, 1e3);
273
273
  }
274
274
  return K(() => {
275
- }), u({
276
- startCountFn: m
277
- }), oe(() => {
275
+ }), r({
276
+ startCountFn: p
277
+ }), re(() => {
278
278
  t && clearInterval(t);
279
- }), (p, h) => (g(), k(e(A), {
279
+ }), (f, w) => (g(), k(e(A), {
280
280
  class: "OAuthItem",
281
281
  type: "primary",
282
282
  size: n.size,
283
- disabled: f.value,
283
+ disabled: m.value,
284
284
  loading: n.loading,
285
- onClick: r
285
+ onClick: c
286
286
  }, {
287
- default: a(() => [h[0] || (h[0] = z("span", null, " 发送验证码", -1)), be(z("span", {
287
+ default: a(() => [w[0] || (w[0] = z("span", null, " 发送验证码", -1)), be(z("span", {
288
288
  class: "verify-code-timer"
289
- }, B(`(${y.value})`), 513), [[ke, f.value]])]),
289
+ }, B(`(${y.value})`), 513), [[ke, m.value]])]),
290
290
  _: 1
291
291
  }, 8, ["size", "disabled", "loading"]));
292
292
  }
293
- }), ae = /* @__PURE__ */ $(Me, [["__scopeId", "data-v-2883dc6d"]]), Ge = {
293
+ }), le = /* @__PURE__ */ $(Me, [["__scopeId", "data-v-2883dc6d"]]), Ge = {
294
294
  class: "sendVerifyCodeItem"
295
295
  }, je = {
296
296
  class: "handle"
@@ -309,38 +309,38 @@ const De = Object.assign(ee, {
309
309
  },
310
310
  emits: ["next"],
311
311
  setup(o, {
312
- emit: u
312
+ emit: r
313
313
  }) {
314
- const d = u, l = o, n = N(() => ce(l.email)), c = w(), t = w(!1), s = w(!1), y = w(), f = w({
314
+ const u = r, l = o, n = N(() => fe(l.email)), d = h(), t = h(!1), s = h(!1), y = h(), m = h({
315
315
  userToken: void 0,
316
316
  emailVerifyId: void 0
317
317
  });
318
318
  async function v() {
319
319
  t.value = !0;
320
320
  const {
321
- data: m
321
+ data: p
322
322
  } = await R.verify.email.retry.post({
323
323
  email: l.email
324
324
  });
325
- t.value = !1, m && (f.value.emailVerifyId = m.emailVerifyId, c.value.startCountFn());
325
+ t.value = !1, p && (m.value.emailVerifyId = p.emailVerifyId, d.value.startCountFn());
326
326
  }
327
- async function r() {
327
+ async function c() {
328
328
  if (!await y.value.validate(["userToken"])) {
329
329
  s.value = !0;
330
- const p = {
330
+ const f = {
331
331
  email: l.email,
332
- userToken: f.value.userToken,
333
- emailVerifyId: f.value.emailVerifyId
332
+ userToken: m.value.userToken,
333
+ emailVerifyId: m.value.emailVerifyId
334
334
  }, {
335
- error: h
336
- } = await R.verify.email.post(p);
337
- s.value = !1, h || d("next");
335
+ error: w
336
+ } = await R.verify.email.post(f);
337
+ s.value = !1, w || u("next");
338
338
  }
339
339
  }
340
- return (m, p) => (g(), k(e(H), {
340
+ return (p, f) => (g(), k(e(H), {
341
341
  ref_key: "formRef",
342
342
  ref: y,
343
- model: f.value,
343
+ model: m.value,
344
344
  "auto-label-width": "",
345
345
  size: l.size
346
346
  }, {
@@ -367,12 +367,12 @@ const De = Object.assign(ee, {
367
367
  }]
368
368
  }, {
369
369
  default: a(() => [z("div", Ge, [i(e(x), {
370
- modelValue: f.value.userToken,
371
- "onUpdate:modelValue": p[0] || (p[0] = (h) => f.value.userToken = h),
370
+ modelValue: m.value.userToken,
371
+ "onUpdate:modelValue": f[0] || (f[0] = (w) => m.value.userToken = w),
372
372
  placeholder: "请输入验证码"
373
- }, null, 8, ["modelValue"]), i(ae, {
373
+ }, null, 8, ["modelValue"]), i(le, {
374
374
  ref_key: "SendVerifyCodeRef",
375
- ref: c,
375
+ ref: d,
376
376
  size: l.size,
377
377
  loading: t.value,
378
378
  style: {
@@ -389,9 +389,9 @@ const De = Object.assign(ee, {
389
389
  default: a(() => [z("div", je, [i(e(A), {
390
390
  loading: s.value,
391
391
  type: "primary",
392
- onClick: r
392
+ onClick: c
393
393
  }, {
394
- default: a(() => [...p[1] || (p[1] = [_(" 提交 ", -1)])]),
394
+ default: a(() => [...f[1] || (f[1] = [_(" 提交 ", -1)])]),
395
395
  _: 1
396
396
  }, 8, ["loading"])])]),
397
397
  _: 1
@@ -399,7 +399,7 @@ const De = Object.assign(ee, {
399
399
  _: 1
400
400
  }, 8, ["model", "size"]));
401
401
  }
402
- }), le = /* @__PURE__ */ $(We, [["__scopeId", "data-v-73ed2006"]]), Ke = {
402
+ }), ne = /* @__PURE__ */ $(We, [["__scopeId", "data-v-73ed2006"]]), Ke = {
403
403
  class: "handle"
404
404
  }, Ze = /* @__PURE__ */ V({
405
405
  __name: "AuthkitPasswordUpdate",
@@ -411,9 +411,9 @@ const De = Object.assign(ee, {
411
411
  },
412
412
  emits: ["submit"],
413
413
  setup(o, {
414
- emit: u
414
+ emit: r
415
415
  }) {
416
- const d = u, l = w(!1), n = w(), c = o, t = w({
416
+ const u = r, l = h(!1), n = h(), d = o, t = h({
417
417
  oldPassword: "",
418
418
  password: "",
419
419
  confirmPassword: ""
@@ -421,20 +421,20 @@ const De = Object.assign(ee, {
421
421
  async function s() {
422
422
  if (!await n.value.validate()) {
423
423
  l.value = !0;
424
- const f = {
424
+ const m = {
425
425
  password: t.value.password
426
426
  }, {
427
427
  error: v
428
- } = await R.users.update.password.post(f);
429
- l.value = !1, v || d("submit", f);
428
+ } = await R.users.update.password.post(m);
429
+ l.value = !1, v || u("submit", m);
430
430
  }
431
431
  }
432
- return (y, f) => (g(), k(e(H), {
432
+ return (y, m) => (g(), k(e(H), {
433
433
  ref_key: "formRef",
434
434
  ref: n,
435
435
  model: t.value,
436
436
  "auto-label-width": "",
437
- size: c.size
437
+ size: d.size
438
438
  }, {
439
439
  default: a(() => [i(e(I), {
440
440
  field: "oldPassword",
@@ -447,7 +447,7 @@ const De = Object.assign(ee, {
447
447
  }, {
448
448
  default: a(() => [i(e(x), {
449
449
  modelValue: t.value.oldPassword,
450
- "onUpdate:modelValue": f[0] || (f[0] = (v) => t.value.oldPassword = v),
450
+ "onUpdate:modelValue": m[0] || (m[0] = (v) => t.value.oldPassword = v),
451
451
  placeholder: "请输入当前密码",
452
452
  type: "password"
453
453
  }, null, 8, ["modelValue"])]),
@@ -466,7 +466,7 @@ const De = Object.assign(ee, {
466
466
  }, {
467
467
  default: a(() => [i(e(x), {
468
468
  modelValue: t.value.password,
469
- "onUpdate:modelValue": f[1] || (f[1] = (v) => t.value.password = v),
469
+ "onUpdate:modelValue": m[1] || (m[1] = (v) => t.value.password = v),
470
470
  placeholder: "请输入新密码",
471
471
  type: "password"
472
472
  }, null, 8, ["modelValue"])]),
@@ -482,14 +482,14 @@ const De = Object.assign(ee, {
482
482
  minLength: 10,
483
483
  message: "确认密码不能少于10字符"
484
484
  }, {
485
- validator: (v, r) => {
486
- v !== t.value.password ? r("两次密码输入不一致,请重新输入") : r();
485
+ validator: (v, c) => {
486
+ v !== t.value.password ? c("两次密码输入不一致,请重新输入") : c();
487
487
  }
488
488
  }]
489
489
  }, {
490
490
  default: a(() => [i(e(x), {
491
491
  modelValue: t.value.confirmPassword,
492
- "onUpdate:modelValue": f[2] || (f[2] = (v) => t.value.confirmPassword = v),
492
+ "onUpdate:modelValue": m[2] || (m[2] = (v) => t.value.confirmPassword = v),
493
493
  placeholder: "请输入确认密码密码",
494
494
  type: "password"
495
495
  }, null, 8, ["modelValue"])]),
@@ -504,7 +504,7 @@ const De = Object.assign(ee, {
504
504
  loading: l.value,
505
505
  onClick: s
506
506
  }, {
507
- default: a(() => [...f[3] || (f[3] = [_(" 提交 ", -1)])]),
507
+ default: a(() => [...m[3] || (m[3] = [_(" 提交 ", -1)])]),
508
508
  _: 1
509
509
  }, 8, ["loading"])])]),
510
510
  _: 1
@@ -522,62 +522,62 @@ const De = Object.assign(ee, {
522
522
  },
523
523
  setup(o) {
524
524
  const {
525
- userProfile: u,
526
- loading: d,
525
+ userProfile: r,
526
+ loading: u,
527
527
  fetchUserProfile: l,
528
528
  isLoggedIn: n
529
- } = Z(), c = w("hidden"), t = o;
529
+ } = Z(), d = h("hidden"), t = o;
530
530
  function s(v) {
531
- c.value = v;
531
+ d.value = v;
532
532
  }
533
533
  function y(v) {
534
- F.success("密码修改成功"), c.value = "hidden", l();
534
+ F.success("密码修改成功"), d.value = "hidden", l();
535
535
  }
536
- function f() {
537
- c.value = "update";
536
+ function m() {
537
+ d.value = "update";
538
538
  }
539
539
  return K(() => {
540
- n.value && !u.value && l();
541
- }), (v, r) => {
542
- var m, p, h, C;
543
- return g(), U(M, null, [!((m = e(u)) != null && m.email) && !((p = e(u)) != null && p.phone) ? (g(), k(e(D), {
540
+ n.value && !r.value && l();
541
+ }), (v, c) => {
542
+ var p, f, w, C;
543
+ return g(), U(M, null, [!((p = e(r)) != null && p.email) && !((f = e(r)) != null && f.phone) ? (g(), k(e(D), {
544
544
  key: 0,
545
545
  title: "去绑定邮箱"
546
546
  }, {
547
547
  action: a(() => [i(e(A), {
548
548
  size: t.size,
549
549
  type: "primary",
550
- onClick: r[0] || (r[0] = (P) => s("update"))
550
+ onClick: c[0] || (c[0] = (P) => s("update"))
551
551
  }, {
552
- default: a(() => [...r[2] || (r[2] = [_(" 去绑定邮箱 ", -1)])]),
552
+ default: a(() => [...c[2] || (c[2] = [_(" 去绑定邮箱 ", -1)])]),
553
553
  _: 1
554
554
  }, 8, ["size"])]),
555
- default: a(() => [r[3] || (r[3] = _(" 请先去绑定邮箱或者手机号码,才能设置密码 ", -1))]),
555
+ default: a(() => [c[3] || (c[3] = _(" 请先去绑定邮箱或者手机号码,才能设置密码 ", -1))]),
556
556
  _: 1
557
- })) : S("", !0), (h = e(u)) != null && h.email && c.value === "hidden" ? (g(), k(e(D), {
557
+ })) : S("", !0), (w = e(r)) != null && w.email && d.value === "hidden" ? (g(), k(e(D), {
558
558
  key: 1,
559
559
  title: "更改密码"
560
560
  }, {
561
561
  action: a(() => [i(e(A), {
562
562
  size: t.size,
563
563
  type: "primary",
564
- onClick: r[1] || (r[1] = (P) => s("verify"))
564
+ onClick: c[1] || (c[1] = (P) => s("verify"))
565
565
  }, {
566
- default: a(() => [...r[4] || (r[4] = [_("更改密码", -1)])]),
566
+ default: a(() => [...c[4] || (c[4] = [_("更改密码", -1)])]),
567
567
  _: 1
568
568
  }, 8, ["size"])]),
569
- default: a(() => [r[5] || (r[5] = _(" 为了账户安全修改密码前会先验证身份 ", -1))]),
569
+ default: a(() => [c[5] || (c[5] = _(" 为了账户安全修改密码前会先验证身份 ", -1))]),
570
570
  _: 1
571
- })) : S("", !0), c.value === "update" ? (g(), k(Je, {
571
+ })) : S("", !0), d.value === "update" ? (g(), k(Je, {
572
572
  key: 2,
573
573
  size: t.size,
574
- loading: e(d),
574
+ loading: e(u),
575
575
  onSubmit: y
576
- }, null, 8, ["size", "loading"])) : S("", !0), c.value === "verify" ? (g(), k(le, {
576
+ }, null, 8, ["size", "loading"])) : S("", !0), d.value === "verify" ? (g(), k(ne, {
577
577
  key: 3,
578
578
  size: t.size,
579
- email: (C = e(u)) == null ? void 0 : C.email,
580
- onNext: f
579
+ email: (C = e(r)) == null ? void 0 : C.email,
580
+ onNext: m
581
581
  }, null, 8, ["size", "email"])) : S("", !0)], 64);
582
582
  };
583
583
  }
@@ -602,9 +602,9 @@ const De = Object.assign(ee, {
602
602
  },
603
603
  emits: ["submit"],
604
604
  setup(o, {
605
- emit: u
605
+ emit: r
606
606
  }) {
607
- const d = u, l = o, n = w(), c = w(!1), t = w(), s = w({
607
+ const u = r, l = o, n = h(), d = h(!1), t = h(), s = h({
608
608
  email: void 0,
609
609
  userToken: void 0,
610
610
  emailVerifyId: void 0,
@@ -614,21 +614,21 @@ const De = Object.assign(ee, {
614
614
  });
615
615
  async function y() {
616
616
  if (!await t.value.validateField(["email"])) {
617
- c.value = !0;
617
+ d.value = !0;
618
618
  const {
619
- data: r
619
+ data: c
620
620
  } = await R.verify.email.retry.post({
621
621
  email: s.value.email
622
622
  });
623
- c.value = !1, r && (s.value.emailVerifyId = r.emailVerifyId, n.value.startCountFn());
623
+ d.value = !1, c && (s.value.emailVerifyId = c.emailVerifyId, n.value.startCountFn());
624
624
  }
625
625
  }
626
- async function f() {
626
+ async function m() {
627
627
  t.value.validate().then((v) => {
628
- v || d("submit", s.value);
628
+ v || u("submit", s.value);
629
629
  });
630
630
  }
631
- return (v, r) => (g(), U("div", Xe, [i(e(H), {
631
+ return (v, c) => (g(), U("div", Xe, [i(e(H), {
632
632
  ref_key: "formRef",
633
633
  ref: t,
634
634
  model: s.value,
@@ -649,7 +649,7 @@ const De = Object.assign(ee, {
649
649
  }, {
650
650
  default: a(() => [i(e(x), {
651
651
  modelValue: s.value.email,
652
- "onUpdate:modelValue": r[0] || (r[0] = (m) => s.value.email = m),
652
+ "onUpdate:modelValue": c[0] || (c[0] = (p) => s.value.email = p),
653
653
  placeholder: "请输入邮箱",
654
654
  autocomplete: "email username",
655
655
  type: "email"
@@ -666,14 +666,14 @@ const De = Object.assign(ee, {
666
666
  }, {
667
667
  default: a(() => [z("div", Ye, [i(e(x), {
668
668
  modelValue: s.value.userToken,
669
- "onUpdate:modelValue": r[1] || (r[1] = (m) => s.value.userToken = m),
669
+ "onUpdate:modelValue": c[1] || (c[1] = (p) => s.value.userToken = p),
670
670
  placeholder: "请输入验证码",
671
671
  autocomplete: "one-time-code"
672
- }, null, 8, ["modelValue"]), i(ae, {
672
+ }, null, 8, ["modelValue"]), i(le, {
673
673
  ref_key: "SendVerifyCodeRef",
674
674
  ref: n,
675
675
  size: l.size,
676
- loading: c.value,
676
+ loading: d.value,
677
677
  style: {
678
678
  "margin-left": "10px"
679
679
  },
@@ -694,7 +694,7 @@ const De = Object.assign(ee, {
694
694
  }, {
695
695
  default: a(() => [i(e(x), {
696
696
  modelValue: s.value.password,
697
- "onUpdate:modelValue": r[2] || (r[2] = (m) => s.value.password = m),
697
+ "onUpdate:modelValue": c[2] || (c[2] = (p) => s.value.password = p),
698
698
  placeholder: "请输入密码",
699
699
  type: "password",
700
700
  autocomplete: "new-password"
@@ -711,14 +711,14 @@ const De = Object.assign(ee, {
711
711
  minLength: 10,
712
712
  message: "确认密码不能少于10字符"
713
713
  }, {
714
- validator: (m, p) => {
715
- m !== s.value.password ? p("两次密码输入不一致,请重新输入") : p();
714
+ validator: (p, f) => {
715
+ p !== s.value.password ? f("两次密码输入不一致,请重新输入") : f();
716
716
  }
717
717
  }]
718
718
  }, {
719
719
  default: a(() => [i(e(x), {
720
720
  modelValue: s.value.confirmPassword,
721
- "onUpdate:modelValue": r[3] || (r[3] = (m) => s.value.confirmPassword = m),
721
+ "onUpdate:modelValue": c[3] || (c[3] = (p) => s.value.confirmPassword = p),
722
722
  placeholder: "请输入确认密码密码",
723
723
  type: "password",
724
724
  autocomplete: "new-password"
@@ -735,7 +735,7 @@ const De = Object.assign(ee, {
735
735
  }, {
736
736
  default: a(() => [i(e(x), {
737
737
  modelValue: s.value.referrerId,
738
- "onUpdate:modelValue": r[4] || (r[4] = (m) => s.value.referrerId = m),
738
+ "onUpdate:modelValue": c[4] || (c[4] = (p) => s.value.referrerId = p),
739
739
  placeholder: "邀请人ID(可选)",
740
740
  autocomplete: "off"
741
741
  }, null, 8, ["modelValue"])]),
@@ -745,15 +745,15 @@ const De = Object.assign(ee, {
745
745
  loading: l.loading,
746
746
  long: "",
747
747
  size: l.size,
748
- onClick: f
748
+ onClick: m
749
749
  }, {
750
- default: a(() => [...r[5] || (r[5] = [_(" 提交 ", -1)])]),
750
+ default: a(() => [...c[5] || (c[5] = [_(" 提交 ", -1)])]),
751
751
  _: 1
752
752
  }, 8, ["loading", "size"])])]),
753
753
  _: 1
754
754
  }, 8, ["model", "size"])]));
755
755
  }
756
- }), fe = /* @__PURE__ */ $(tt, [["__scopeId", "data-v-51a26095"]]), it = /* @__PURE__ */ V({
756
+ }), pe = /* @__PURE__ */ $(tt, [["__scopeId", "data-v-51a26095"]]), it = /* @__PURE__ */ V({
757
757
  __name: "AuthkitEmailBinding",
758
758
  props: {
759
759
  size: {
@@ -763,73 +763,73 @@ const De = Object.assign(ee, {
763
763
  },
764
764
  setup(o) {
765
765
  const {
766
- userProfile: u,
767
- loading: d,
766
+ userProfile: r,
767
+ loading: u,
768
768
  fetchUserProfile: l
769
- } = Z(), n = w("hidden"), c = o;
770
- function t(f) {
771
- n.value = f;
769
+ } = Z(), n = h("hidden"), d = o;
770
+ function t(m) {
771
+ n.value = m;
772
772
  }
773
- async function s(f) {
774
- d.value = !0;
773
+ async function s(m) {
774
+ u.value = !0;
775
775
  const v = {
776
- email: f.email,
777
- userToken: f.userToken,
778
- emailVerifyId: f.emailVerifyId,
779
- password: f.password || ""
776
+ email: m.email,
777
+ userToken: m.userToken,
778
+ emailVerifyId: m.emailVerifyId,
779
+ password: m.password || ""
780
780
  // API 要求 password,但绑定邮箱时可能不需要,传空字符串
781
781
  }, {
782
- error: r
782
+ error: c
783
783
  } = await R.users.update.email.post(v);
784
- d.value = !1, r || (F.success("绑定成功"), n.value = "hidden", l());
784
+ u.value = !1, c || (F.success("绑定成功"), n.value = "hidden", l());
785
785
  }
786
786
  function y() {
787
787
  n.value = "update";
788
788
  }
789
789
  return K(() => {
790
- u.value || l();
791
- }), (f, v) => {
792
- var r, m, p;
793
- return g(), U(M, null, [!((r = e(u)) != null && r.email) && n.value === "hidden" ? (g(), k(e(D), {
790
+ r.value || l();
791
+ }), (m, v) => {
792
+ var c, p, f;
793
+ return g(), U(M, null, [!((c = e(r)) != null && c.email) && n.value === "hidden" ? (g(), k(e(D), {
794
794
  key: 0,
795
795
  title: "绑定邮箱"
796
796
  }, {
797
797
  action: a(() => [i(e(A), {
798
- size: c.size,
798
+ size: d.size,
799
799
  type: "primary",
800
- onClick: v[0] || (v[0] = (h) => t("update"))
800
+ onClick: v[0] || (v[0] = (w) => t("update"))
801
801
  }, {
802
802
  default: a(() => [...v[2] || (v[2] = [_(" 绑定邮箱 ", -1)])]),
803
803
  _: 1
804
804
  }, 8, ["size"])]),
805
805
  default: a(() => [v[3] || (v[3] = _(" 您还未绑定邮箱,请点击绑定邮箱 ", -1))]),
806
806
  _: 1
807
- })) : S("", !0), (m = e(u)) != null && m.email && n.value === "hidden" ? (g(), k(e(D), {
807
+ })) : S("", !0), (p = e(r)) != null && p.email && n.value === "hidden" ? (g(), k(e(D), {
808
808
  key: 1,
809
809
  title: "更改邮箱"
810
810
  }, {
811
811
  action: a(() => [i(e(A), {
812
- size: c.size,
812
+ size: d.size,
813
813
  type: "primary",
814
- onClick: v[1] || (v[1] = (h) => t("verify"))
814
+ onClick: v[1] || (v[1] = (w) => t("verify"))
815
815
  }, {
816
816
  default: a(() => [...v[4] || (v[4] = [_(" 更改邮箱 ", -1)])]),
817
817
  _: 1
818
818
  }, 8, ["size"])]),
819
819
  default: a(() => {
820
- var h;
821
- return [_(B(`您绑定的邮箱为${e(ce)((h = e(u)) == null ? void 0 : h.email)}`) + " ", 1)];
820
+ var w;
821
+ return [_(B(`您绑定的邮箱为${e(fe)((w = e(r)) == null ? void 0 : w.email)}`) + " ", 1)];
822
822
  }),
823
823
  _: 1
824
- })) : S("", !0), n.value === "update" ? (g(), k(fe, {
824
+ })) : S("", !0), n.value === "update" ? (g(), k(pe, {
825
825
  key: 2,
826
- loading: e(d),
827
- size: c.size,
826
+ loading: e(u),
827
+ size: d.size,
828
828
  onSubmit: s
829
- }, null, 8, ["loading", "size"])) : S("", !0), n.value === "verify" ? (g(), k(le, {
829
+ }, null, 8, ["loading", "size"])) : S("", !0), n.value === "verify" ? (g(), k(ne, {
830
830
  key: 3,
831
- size: c.size,
832
- email: (p = e(u)) == null ? void 0 : p.email,
831
+ size: d.size,
832
+ email: (f = e(r)) == null ? void 0 : f.email,
833
833
  onNext: y
834
834
  }, null, 8, ["size", "email"])) : S("", !0)], 64);
835
835
  };
@@ -844,88 +844,88 @@ const De = Object.assign(ee, {
844
844
  },
845
845
  setup(o) {
846
846
  const {
847
- userProfile: u,
848
- fetchUserProfile: d
849
- } = Z(), l = w("hidden"), n = w(!1);
850
- let c;
847
+ userProfile: r,
848
+ fetchUserProfile: u
849
+ } = Z(), l = h("hidden"), n = h(!1);
850
+ let d;
851
851
  const t = o;
852
- function s(m) {
853
- l.value = m;
852
+ function s(p) {
853
+ l.value = p;
854
854
  }
855
855
  async function y() {
856
- const m = j.appId;
857
- if (!m) {
856
+ const p = j.appId;
857
+ if (!p) {
858
858
  console.error("GitHub OAuth 失败: appId 未配置");
859
859
  return;
860
860
  }
861
861
  const {
862
- data: p
862
+ data: f
863
863
  } = await R.oauth.github.login.get({
864
- appId: m
864
+ appId: p
865
865
  });
866
- if (p) {
866
+ if (f) {
867
867
  const {
868
- redirectUri: h
869
- } = p;
870
- n.value = !0, window.open(h, "_blank");
868
+ redirectUri: w
869
+ } = f;
870
+ n.value = !0, window.open(w, "_blank");
871
871
  }
872
872
  }
873
- async function f() {
873
+ async function m() {
874
874
  const {
875
- error: m
875
+ error: p
876
876
  } = await R.users.unbind.email.post({});
877
- m || (F.success("解绑成功"), l.value = "hidden", d());
877
+ p || (F.success("解绑成功"), l.value = "hidden", u());
878
878
  }
879
879
  function v() {
880
- l.value === "bind" && (l.value = "hidden", y()), l.value === "unbind" && f();
880
+ l.value === "bind" && (l.value = "hidden", y()), l.value === "unbind" && m();
881
881
  }
882
- function r() {
883
- n.value && d();
882
+ function c() {
883
+ n.value && u();
884
884
  }
885
885
  return K(() => {
886
- u.value || d(), c = setInterval(r, 1e3);
887
- }), oe(() => {
888
- c && clearInterval(c);
889
- }), (m, p) => {
890
- var h, C, P;
891
- return g(), U(M, null, [!((h = e(u)) != null && h.github) && l.value === "hidden" ? (g(), k(e(D), {
886
+ r.value || u(), d = setInterval(c, 1e3);
887
+ }), re(() => {
888
+ d && clearInterval(d);
889
+ }), (p, f) => {
890
+ var w, C, P;
891
+ return g(), U(M, null, [!((w = e(r)) != null && w.github) && l.value === "hidden" ? (g(), k(e(D), {
892
892
  key: 0,
893
893
  title: "绑定GitHUb"
894
894
  }, {
895
895
  action: a(() => [i(e(A), {
896
896
  size: t.size,
897
897
  type: "primary",
898
- onClick: p[0] || (p[0] = (q) => s("bind"))
898
+ onClick: f[0] || (f[0] = (L) => s("bind"))
899
899
  }, {
900
- default: a(() => [...p[2] || (p[2] = [_(" 绑定GitHUb ", -1)])]),
900
+ default: a(() => [...f[2] || (f[2] = [_(" 绑定GitHUb ", -1)])]),
901
901
  _: 1
902
902
  }, 8, ["size"])]),
903
- default: a(() => [p[3] || (p[3] = _(" 请尚未绑定GitHub,请点击绑定GitHUb ", -1))]),
903
+ default: a(() => [f[3] || (f[3] = _(" 请尚未绑定GitHub,请点击绑定GitHUb ", -1))]),
904
904
  _: 1
905
- })) : S("", !0), (C = e(u)) != null && C.github && l.value === "hidden" ? (g(), k(e(D), {
905
+ })) : S("", !0), (C = e(r)) != null && C.github && l.value === "hidden" ? (g(), k(e(D), {
906
906
  key: 1,
907
907
  title: "解绑GitHub"
908
908
  }, {
909
909
  action: a(() => [i(e(A), {
910
910
  size: t.size,
911
911
  type: "primary",
912
- onClick: p[1] || (p[1] = (q) => s("unbind"))
912
+ onClick: f[1] || (f[1] = (L) => s("unbind"))
913
913
  }, {
914
- default: a(() => [...p[4] || (p[4] = [_(" 解绑GitHUb ", -1)])]),
914
+ default: a(() => [...f[4] || (f[4] = [_(" 解绑GitHUb ", -1)])]),
915
915
  _: 1
916
916
  }, 8, ["size"])]),
917
917
  default: a(() => {
918
- var q, L, E;
919
- return [z("span", null, B(`您绑定的账号为 ${(L = (q = e(u)) == null ? void 0 : q.github) == null ? void 0 : L.login}`), 1), i(e(de), {
920
- "image-url": (E = e(u)) == null ? void 0 : E.avatar,
918
+ var L, q, E;
919
+ return [z("span", null, B(`您绑定的账号为 ${(q = (L = e(r)) == null ? void 0 : L.github) == null ? void 0 : q.login}`), 1), i(e(me), {
920
+ "image-url": (E = e(r)) == null ? void 0 : E.avatar,
921
921
  size: 42
922
922
  }, null, 8, ["image-url"])];
923
923
  }),
924
924
  _: 1
925
- })) : S("", !0), l.value === "bind" || l.value === "unbind" ? (g(), k(le, {
925
+ })) : S("", !0), l.value === "bind" || l.value === "unbind" ? (g(), k(ne, {
926
926
  key: 2,
927
927
  size: t.size,
928
- email: (P = e(u)) == null ? void 0 : P.email,
928
+ email: (P = e(r)) == null ? void 0 : P.email,
929
929
  onNext: v
930
930
  }, null, 8, ["size", "email"])) : S("", !0)], 64);
931
931
  };
@@ -948,27 +948,27 @@ const De = Object.assign(ee, {
948
948
  },
949
949
  emits: ["deleted"],
950
950
  setup(o, {
951
- emit: u
951
+ emit: r
952
952
  }) {
953
- const d = o, l = u, {
953
+ const u = o, l = r, {
954
954
  userProfile: n,
955
- clearUserProfile: c
955
+ clearUserProfile: d
956
956
  } = Z(), {
957
957
  clearAuth: t
958
- } = J(), s = w("check"), y = w(!1), f = w([]), v = w(!1), r = w(""), m = w(0);
959
- let p = null;
960
- const h = N(() => {
961
- var ne;
962
- const O = ((ne = n.value) == null ? void 0 : ne.email) || "";
958
+ } = J(), s = h("check"), y = h(!1), m = h([]), v = h(!1), c = h(""), p = h(0);
959
+ let f = null;
960
+ const w = N(() => {
961
+ var oe;
962
+ const O = ((oe = n.value) == null ? void 0 : oe.email) || "";
963
963
  if (!O) return "";
964
964
  const [b, T] = O.split("@");
965
965
  return b.length <= 2 ? O : `${b.slice(0, 2)}***@${T}`;
966
- }), C = w(), P = w({
966
+ }), C = h(), P = h({
967
967
  userToken: "",
968
968
  password: "",
969
969
  confirmText: ""
970
- }), q = w(!1);
971
- function L(O, b) {
970
+ }), L = h(!1);
971
+ function q(O, b) {
972
972
  O !== "注销" ? b('请输入"注销"以确认操作') : b();
973
973
  }
974
974
  async function E() {
@@ -991,26 +991,26 @@ const De = Object.assign(ee, {
991
991
  } = await R.verify.email.retry.post({
992
992
  email: n.value.email
993
993
  });
994
- v.value = !1, O && (r.value = O.emailVerifyId, F.success("验证码已发送"), s.value = "confirm", X());
994
+ v.value = !1, O && (c.value = O.emailVerifyId, F.success("验证码已发送"), s.value = "confirm", X());
995
995
  }
996
996
  function X() {
997
- m.value = 60, p && clearInterval(p), p = setInterval(() => {
998
- m.value--, m.value <= 0 && p && (clearInterval(p), p = null);
997
+ p.value = 60, f && clearInterval(f), f = setInterval(() => {
998
+ p.value--, p.value <= 0 && f && (clearInterval(f), f = null);
999
999
  }, 1e3);
1000
1000
  }
1001
- async function we() {
1001
+ async function Y() {
1002
1002
  var T;
1003
1003
  if (await ((T = C.value) == null ? void 0 : T.validate())) return;
1004
- q.value = !0;
1004
+ L.value = !0;
1005
1005
  const {
1006
1006
  error: b
1007
1007
  } = await R.users.deleteAccount.post({
1008
1008
  password: P.value.password,
1009
1009
  userToken: P.value.userToken,
1010
- emailVerifyId: r.value,
1010
+ emailVerifyId: c.value,
1011
1011
  confirmText: P.value.confirmText
1012
1012
  });
1013
- q.value = !1, b || (s.value = "success", c(), t(), l("deleted"));
1013
+ L.value = !1, b || (s.value = "success", d(), t(), l("deleted"));
1014
1014
  }
1015
1015
  function he() {
1016
1016
  window.location.href = "/";
@@ -1021,7 +1021,7 @@ const De = Object.assign(ee, {
1021
1021
  title: "注销账号"
1022
1022
  }, {
1023
1023
  action: a(() => [i(e(A), {
1024
- size: d.size,
1024
+ size: u.size,
1025
1025
  type: "primary",
1026
1026
  status: "danger",
1027
1027
  loading: y.value,
@@ -1040,11 +1040,11 @@ const De = Object.assign(ee, {
1040
1040
  }, {
1041
1041
  default: a(() => [...b[7] || (b[7] = [_(" 您的账号下还有以下资源,请先处理后再注销: ", -1)])]),
1042
1042
  _: 1
1043
- }), z("div", lt, [(g(!0), U(M, null, ze(f.value, (T) => (g(), U("div", {
1043
+ }), z("div", lt, [(g(!0), U(M, null, ze(m.value, (T) => (g(), U("div", {
1044
1044
  key: T.type,
1045
1045
  class: "dependency-item"
1046
1046
  }, [z("span", nt, B(T.label), 1), z("span", ot, B(T.count) + " 个", 1)]))), 128))]), z("div", rt, [i(e(A), {
1047
- size: d.size,
1047
+ size: u.size,
1048
1048
  onClick: b[0] || (b[0] = (T) => s.value = "check")
1049
1049
  }, {
1050
1050
  default: a(() => [...b[8] || (b[8] = [_("返回", -1)])]),
@@ -1054,15 +1054,15 @@ const De = Object.assign(ee, {
1054
1054
  type: "normal",
1055
1055
  title: "身份验证"
1056
1056
  }, {
1057
- action: a(() => [i(e(Y), null, {
1057
+ action: a(() => [i(e(ee), null, {
1058
1058
  default: a(() => [i(e(A), {
1059
- size: d.size,
1059
+ size: u.size,
1060
1060
  onClick: b[1] || (b[1] = (T) => s.value = "check")
1061
1061
  }, {
1062
1062
  default: a(() => [...b[9] || (b[9] = [_("取消", -1)])]),
1063
1063
  _: 1
1064
1064
  }, 8, ["size"]), i(e(A), {
1065
- size: d.size,
1065
+ size: u.size,
1066
1066
  type: "primary",
1067
1067
  loading: v.value,
1068
1068
  onClick: W
@@ -1072,7 +1072,7 @@ const De = Object.assign(ee, {
1072
1072
  }, 8, ["size", "loading"])]),
1073
1073
  _: 1
1074
1074
  })]),
1075
- default: a(() => [_(" 为确保账号安全,我们将向您的邮箱 " + B(h.value) + " 发送验证码 ", 1)]),
1075
+ default: a(() => [_(" 为确保账号安全,我们将向您的邮箱 " + B(w.value) + " 发送验证码 ", 1)]),
1076
1076
  _: 1
1077
1077
  })) : s.value === "confirm" ? (g(), U(M, {
1078
1078
  key: 3
@@ -1080,13 +1080,13 @@ const De = Object.assign(ee, {
1080
1080
  type: "warning",
1081
1081
  title: "确认注销"
1082
1082
  }, {
1083
- default: a(() => [_(" 验证码已发送至 " + B(h.value) + ",此操作不可逆,请谨慎操作 ", 1)]),
1083
+ default: a(() => [_(" 验证码已发送至 " + B(w.value) + ",此操作不可逆,请谨慎操作 ", 1)]),
1084
1084
  _: 1
1085
1085
  }), i(e(H), {
1086
1086
  ref_key: "formRef",
1087
1087
  ref: C,
1088
1088
  model: P.value,
1089
- size: d.size,
1089
+ size: u.size,
1090
1090
  class: "confirm-form",
1091
1091
  layout: "vertical"
1092
1092
  }, {
@@ -1098,7 +1098,7 @@ const De = Object.assign(ee, {
1098
1098
  message: "请输入验证码"
1099
1099
  }]
1100
1100
  }, {
1101
- default: a(() => [i(e(Y), null, {
1101
+ default: a(() => [i(e(ee), null, {
1102
1102
  default: a(() => [i(e(x), {
1103
1103
  modelValue: P.value.userToken,
1104
1104
  "onUpdate:modelValue": b[2] || (b[2] = (T) => P.value.userToken = T),
@@ -1109,11 +1109,11 @@ const De = Object.assign(ee, {
1109
1109
  width: "180px"
1110
1110
  }
1111
1111
  }, null, 8, ["modelValue"]), i(e(A), {
1112
- disabled: m.value > 0,
1112
+ disabled: p.value > 0,
1113
1113
  loading: v.value,
1114
1114
  onClick: W
1115
1115
  }, {
1116
- default: a(() => [_(B(m.value > 0 ? `${m.value}s 后重发` : "重新发送"), 1)]),
1116
+ default: a(() => [_(B(p.value > 0 ? `${p.value}s 后重发` : "重新发送"), 1)]),
1117
1117
  _: 1
1118
1118
  }, 8, ["disabled", "loading"])]),
1119
1119
  _: 1
@@ -1141,7 +1141,7 @@ const De = Object.assign(ee, {
1141
1141
  required: !0,
1142
1142
  message: "请输入确认文字"
1143
1143
  }, {
1144
- validator: L
1144
+ validator: q
1145
1145
  }]
1146
1146
  }, {
1147
1147
  default: a(() => [i(e(x), {
@@ -1152,7 +1152,7 @@ const De = Object.assign(ee, {
1152
1152
  }, null, 8, ["modelValue"])]),
1153
1153
  _: 1
1154
1154
  }, 8, ["rules"]), i(e(I), null, {
1155
- default: a(() => [i(e(Y), null, {
1155
+ default: a(() => [i(e(ee), null, {
1156
1156
  default: a(() => [i(e(A), {
1157
1157
  onClick: b[5] || (b[5] = (T) => s.value = "check")
1158
1158
  }, {
@@ -1161,10 +1161,10 @@ const De = Object.assign(ee, {
1161
1161
  }), i(e(A), {
1162
1162
  type: "primary",
1163
1163
  status: "danger",
1164
- loading: q.value,
1165
- onClick: we
1164
+ loading: L.value,
1165
+ onClick: Y
1166
1166
  }, {
1167
- default: a(() => [_(B(q.value ? "注销中..." : "确认注销"), 1)]),
1167
+ default: a(() => [_(B(L.value ? "注销中..." : "确认注销"), 1)]),
1168
1168
  _: 1
1169
1169
  }, 8, ["loading"])]),
1170
1170
  _: 1
@@ -1198,17 +1198,17 @@ const De = Object.assign(ee, {
1198
1198
  __name: "AuthkitAppSetting",
1199
1199
  emits: ["confirm", "cancel"],
1200
1200
  setup(o, {
1201
- expose: u,
1202
- emit: d
1201
+ expose: r,
1202
+ emit: u
1203
1203
  }) {
1204
- const l = d;
1204
+ const l = u;
1205
1205
  function n() {
1206
1206
  l("cancel");
1207
1207
  }
1208
- function c() {
1209
- r.value = !1, l("cancel");
1208
+ function d() {
1209
+ c.value = !1, l("cancel");
1210
1210
  }
1211
- const t = w("large"), s = w(["PersonalInformation"]), y = w([{
1211
+ const t = h("large"), s = h(["PersonalInformation"]), y = h([{
1212
1212
  name: "个人信息",
1213
1213
  path: "PersonalInformation",
1214
1214
  meta: {
@@ -1261,22 +1261,22 @@ const De = Object.assign(ee, {
1261
1261
  // },
1262
1262
  ]
1263
1263
  }]);
1264
- function f(p) {
1265
- const h = p.path;
1266
- s.value = [h];
1264
+ function m(f) {
1265
+ const w = f.path;
1266
+ s.value = [w];
1267
1267
  }
1268
1268
  const {
1269
1269
  changeType: v,
1270
- show: r
1270
+ show: c
1271
1271
  } = Re(l);
1272
- function m(p, h) {
1273
- console.log(p), r.value = h, v.value = "编辑";
1274
- }
1275
- return u({
1276
- setData: m
1277
- }), (p, h) => (g(), k(e(me), {
1278
- visible: e(r),
1279
- "onUpdate:visible": h[1] || (h[1] = (C) => re(r) ? r.value = C : null),
1272
+ function p(f, w) {
1273
+ c.value = w, v.value = "编辑";
1274
+ }
1275
+ return r({
1276
+ setData: p
1277
+ }), (f, w) => (g(), k(e(ce), {
1278
+ visible: e(c),
1279
+ "onUpdate:visible": w[1] || (w[1] = (C) => ue(c) ? c.value = C : null),
1280
1280
  "unmount-on-close": "",
1281
1281
  "body-class": "AppSettingbodyClass",
1282
1282
  "mask-closable": !1,
@@ -1284,12 +1284,12 @@ const De = Object.assign(ee, {
1284
1284
  width: "700px",
1285
1285
  onCancel: n
1286
1286
  }, {
1287
- title: a(() => [...h[2] || (h[2] = [_(" 系统设置 ", -1)])]),
1287
+ title: a(() => [...w[2] || (w[2] = [_(" 系统设置 ", -1)])]),
1288
1288
  default: a(() => [z("div", mt, [z("div", ct, [i(Te, {
1289
1289
  "selected-keys": s.value,
1290
- "onUpdate:selectedKeys": h[0] || (h[0] = (C) => s.value = C),
1290
+ "onUpdate:selectedKeys": w[0] || (w[0] = (C) => s.value = C),
1291
1291
  menus: y.value,
1292
- onChange: f
1292
+ onChange: m
1293
1293
  }, null, 8, ["selected-keys", "menus"])]), z("div", ft, [s.value[0] === "PersonalInformation" ? (g(), k(He, {
1294
1294
  key: 0,
1295
1295
  size: t.value
@@ -1305,32 +1305,32 @@ const De = Object.assign(ee, {
1305
1305
  }, null, 8, ["size"])) : S("", !0), s.value[0] === "AccountDelete" ? (g(), k(dt, {
1306
1306
  key: 4,
1307
1307
  size: t.value,
1308
- onDeleted: c
1308
+ onDeleted: d
1309
1309
  }, null, 8, ["size"])) : S("", !0)])])]),
1310
1310
  _: 1
1311
1311
  }, 8, ["visible"]));
1312
1312
  }
1313
- }), wi = /* @__PURE__ */ $(pt, [["__scopeId", "data-v-55a8599d"]]);
1314
- function pe() {
1313
+ }), wi = /* @__PURE__ */ $(pt, [["__scopeId", "data-v-1ff986a5"]]);
1314
+ function ve() {
1315
1315
  return j.oauthCallbackUrl ? j.oauthCallbackUrl : `${window.location.origin}/auth/callback`;
1316
1316
  }
1317
1317
  function vt() {
1318
1318
  const o = window.location.pathname + window.location.search;
1319
1319
  o.includes("/auth/callback") || sessionStorage.setItem("auth_redirect", o);
1320
1320
  }
1321
- async function Q(o, u) {
1322
- const d = j.appId;
1323
- if (!d) {
1321
+ async function Q(o, r) {
1322
+ const u = j.appId;
1323
+ if (!u) {
1324
1324
  console.error(`${o} OAuth 失败: appId 未配置`);
1325
1325
  return;
1326
1326
  }
1327
- const l = pe(), n = {
1328
- appId: d,
1329
- referrerId: u == null ? void 0 : u.referrerId,
1327
+ const l = ve(), n = {
1328
+ appId: u,
1329
+ referrerId: r == null ? void 0 : r.referrerId,
1330
1330
  redirectUri: l
1331
1331
  };
1332
1332
  vt();
1333
- const c = {
1333
+ const d = {
1334
1334
  github: () => R.oauth.github.login.get(n),
1335
1335
  google: () => R.oauth.google.login.get(n),
1336
1336
  microsoft: () => R.oauth.microsoft.login.get(n)
@@ -1338,7 +1338,7 @@ async function Q(o, u) {
1338
1338
  try {
1339
1339
  const {
1340
1340
  data: t
1341
- } = await c[o]();
1341
+ } = await d[o]();
1342
1342
  t != null && t.redirectUri ? window.location.href = t.redirectUri : console.error(`${o} OAuth 重定向URL为空`);
1343
1343
  } catch (t) {
1344
1344
  console.error(`${o} OAuth 授权失败:`, t);
@@ -1359,16 +1359,16 @@ function wt(o) {
1359
1359
  referrerId: o
1360
1360
  });
1361
1361
  }
1362
- function ve() {
1362
+ function ge() {
1363
1363
  return {
1364
1364
  githubAuth: gt,
1365
1365
  googleAuth: yt,
1366
1366
  microsoftAuth: wt,
1367
1367
  startOauth: Q,
1368
- getOauthCallbackUrl: pe
1368
+ getOauthCallbackUrl: ve
1369
1369
  };
1370
1370
  }
1371
- const hi = ve, te = /* @__PURE__ */ V({
1371
+ const hi = ge, ie = /* @__PURE__ */ V({
1372
1372
  __name: "AuthkitOauthItem",
1373
1373
  props: {
1374
1374
  size: {
@@ -1388,18 +1388,18 @@ const hi = ve, te = /* @__PURE__ */ V({
1388
1388
  },
1389
1389
  emits: [],
1390
1390
  setup(o, {
1391
- emit: u
1391
+ emit: r
1392
1392
  }) {
1393
- const d = o;
1393
+ const u = o;
1394
1394
  return (l, n) => (g(), k(e(A), {
1395
1395
  class: "OAuthItem",
1396
1396
  type: "primary",
1397
- size: d.size
1397
+ size: u.size
1398
1398
  }, {
1399
1399
  icon: a(() => [i(e(Le), {
1400
- icon: d.icon
1400
+ icon: u.icon
1401
1401
  }, null, 8, ["icon"])]),
1402
- default: a(() => [z("span", null, B(d.label), 1)]),
1402
+ default: a(() => [z("span", null, B(u.label), 1)]),
1403
1403
  _: 1
1404
1404
  }, 8, ["size"]));
1405
1405
  }
@@ -1421,36 +1421,36 @@ const hi = ve, te = /* @__PURE__ */ V({
1421
1421
  },
1422
1422
  setup(o) {
1423
1423
  const {
1424
- appsData: u
1425
- } = se(), d = o, {
1424
+ appsData: r
1425
+ } = ae(), u = o, {
1426
1426
  githubAuth: l,
1427
1427
  googleAuth: n,
1428
- microsoftAuth: c
1429
- } = ve(), t = N(() => !(!u.value.oauth.google.enabled && !u.value.oauth.microsoft.enabled && !u.value.oauth.github.enabled && !u.value.oauth.wechat.enabled));
1428
+ microsoftAuth: d
1429
+ } = ge(), t = N(() => !(!r.value.oauth.google.enabled && !r.value.oauth.microsoft.enabled && !r.value.oauth.github.enabled && !r.value.oauth.wechat.enabled));
1430
1430
  return (s, y) => (g(), U("div", ht, [t.value ? (g(), k(e(Pe), {
1431
1431
  key: 0,
1432
1432
  orientation: "center"
1433
1433
  }, {
1434
1434
  default: a(() => [...y[3] || (y[3] = [_("OAuth登陆", -1)])]),
1435
1435
  _: 1
1436
- })) : S("", !0), z("div", _t, [e(u).oauth.github.enabled ? (g(), k(te, {
1436
+ })) : S("", !0), z("div", _t, [e(r).oauth.github.enabled ? (g(), k(ie, {
1437
1437
  key: 0,
1438
1438
  icon: "mdi:github",
1439
1439
  label: "Github",
1440
- size: d.size,
1441
- onClick: y[0] || (y[0] = (f) => e(l)())
1442
- }, null, 8, ["size"])) : S("", !0), e(u).oauth.google.enabled ? (g(), k(te, {
1440
+ size: u.size,
1441
+ onClick: y[0] || (y[0] = (m) => e(l)())
1442
+ }, null, 8, ["size"])) : S("", !0), e(r).oauth.google.enabled ? (g(), k(ie, {
1443
1443
  key: 1,
1444
1444
  icon: "mdi:google",
1445
1445
  label: "Google",
1446
- size: d.size,
1447
- onClick: y[1] || (y[1] = (f) => e(n)())
1448
- }, null, 8, ["size"])) : S("", !0), e(u).oauth.microsoft.enabled ? (g(), k(te, {
1446
+ size: u.size,
1447
+ onClick: y[1] || (y[1] = (m) => e(n)())
1448
+ }, null, 8, ["size"])) : S("", !0), e(r).oauth.microsoft.enabled ? (g(), k(ie, {
1449
1449
  key: 2,
1450
1450
  icon: "mdi:microsoft",
1451
1451
  label: "Microsoft",
1452
- size: d.size,
1453
- onClick: y[2] || (y[2] = (f) => e(c)())
1452
+ size: u.size,
1453
+ onClick: y[2] || (y[2] = (m) => e(d)())
1454
1454
  }, null, 8, ["size"])) : S("", !0)])]));
1455
1455
  }
1456
1456
  }), kt = /* @__PURE__ */ $(bt, [["__scopeId", "data-v-886fd902"]]), zt = {
@@ -1474,9 +1474,9 @@ const hi = ve, te = /* @__PURE__ */ V({
1474
1474
  },
1475
1475
  emits: ["signIn", "submit"],
1476
1476
  setup(o, {
1477
- emit: u
1477
+ emit: r
1478
1478
  }) {
1479
- const d = u, l = o, n = w(), c = w(!1), t = w(), s = w({
1479
+ const u = r, l = o, n = h(), d = h(!1), t = h(), s = h({
1480
1480
  email: void 0,
1481
1481
  userToken: void 0,
1482
1482
  emailVerifyId: void 0,
@@ -1485,21 +1485,21 @@ const hi = ve, te = /* @__PURE__ */ V({
1485
1485
  });
1486
1486
  async function y() {
1487
1487
  if (!await t.value.validateField(["email"])) {
1488
- c.value = !0;
1488
+ d.value = !0;
1489
1489
  const {
1490
- data: r
1490
+ data: c
1491
1491
  } = await R.verify.email.retry.post({
1492
1492
  email: s.value.email
1493
1493
  });
1494
- c.value = !1, r && (s.value.emailVerifyId = r.emailVerifyId, n.value.startCountFn());
1494
+ d.value = !1, c && (s.value.emailVerifyId = c.emailVerifyId, n.value.startCountFn());
1495
1495
  }
1496
1496
  }
1497
- async function f() {
1497
+ async function m() {
1498
1498
  t.value.validate().then((v) => {
1499
- v || d("submit", s.value);
1499
+ v || u("submit", s.value);
1500
1500
  });
1501
1501
  }
1502
- return (v, r) => (g(), U("div", zt, [i(e(H), {
1502
+ return (v, c) => (g(), U("div", zt, [i(e(H), {
1503
1503
  ref_key: "formRef",
1504
1504
  ref: t,
1505
1505
  model: s.value,
@@ -1520,7 +1520,7 @@ const hi = ve, te = /* @__PURE__ */ V({
1520
1520
  }, {
1521
1521
  default: a(() => [i(e(x), {
1522
1522
  modelValue: s.value.email,
1523
- "onUpdate:modelValue": r[0] || (r[0] = (m) => s.value.email = m),
1523
+ "onUpdate:modelValue": c[0] || (c[0] = (p) => s.value.email = p),
1524
1524
  placeholder: "请输入邮箱"
1525
1525
  }, null, 8, ["modelValue"])]),
1526
1526
  _: 1
@@ -1535,13 +1535,13 @@ const hi = ve, te = /* @__PURE__ */ V({
1535
1535
  }, {
1536
1536
  default: a(() => [z("div", St, [i(e(x), {
1537
1537
  modelValue: s.value.userToken,
1538
- "onUpdate:modelValue": r[1] || (r[1] = (m) => s.value.userToken = m),
1538
+ "onUpdate:modelValue": c[1] || (c[1] = (p) => s.value.userToken = p),
1539
1539
  placeholder: "请输入验证码"
1540
- }, null, 8, ["modelValue"]), i(ae, {
1540
+ }, null, 8, ["modelValue"]), i(le, {
1541
1541
  ref_key: "SendVerifyCodeRef",
1542
1542
  ref: n,
1543
1543
  size: l.size,
1544
- loading: c.value,
1544
+ loading: d.value,
1545
1545
  style: {
1546
1546
  "margin-left": "10px"
1547
1547
  },
@@ -1562,7 +1562,7 @@ const hi = ve, te = /* @__PURE__ */ V({
1562
1562
  }, {
1563
1563
  default: a(() => [i(e(x), {
1564
1564
  modelValue: s.value.password,
1565
- "onUpdate:modelValue": r[2] || (r[2] = (m) => s.value.password = m),
1565
+ "onUpdate:modelValue": c[2] || (c[2] = (p) => s.value.password = p),
1566
1566
  placeholder: "请输入密码",
1567
1567
  type: "password",
1568
1568
  autocomplete: ""
@@ -1579,14 +1579,14 @@ const hi = ve, te = /* @__PURE__ */ V({
1579
1579
  minLength: 10,
1580
1580
  message: "确认密码不能少于10字符"
1581
1581
  }, {
1582
- validator: (m, p) => {
1583
- m !== s.value.password ? p("两次密码输入不一致,请重新输入") : p();
1582
+ validator: (p, f) => {
1583
+ p !== s.value.password ? f("两次密码输入不一致,请重新输入") : f();
1584
1584
  }
1585
1585
  }]
1586
1586
  }, {
1587
1587
  default: a(() => [i(e(x), {
1588
1588
  modelValue: s.value.confirmPassword,
1589
- "onUpdate:modelValue": r[3] || (r[3] = (m) => s.value.confirmPassword = m),
1589
+ "onUpdate:modelValue": c[3] || (c[3] = (p) => s.value.confirmPassword = p),
1590
1590
  placeholder: "请输入确认密码密码",
1591
1591
  type: "password",
1592
1592
  autocomplete: ""
@@ -1597,9 +1597,9 @@ const hi = ve, te = /* @__PURE__ */ V({
1597
1597
  loading: l.loading,
1598
1598
  long: "",
1599
1599
  size: l.size,
1600
- onClick: f
1600
+ onClick: m
1601
1601
  }, {
1602
- default: a(() => [...r[4] || (r[4] = [_(" 提交 ", -1)])]),
1602
+ default: a(() => [...c[4] || (c[4] = [_(" 提交 ", -1)])]),
1603
1603
  _: 1
1604
1604
  }, 8, ["loading", "size"])])]),
1605
1605
  _: 1
@@ -1611,23 +1611,23 @@ const hi = ve, te = /* @__PURE__ */ V({
1611
1611
  __name: "AuthkitSwitchSignIn",
1612
1612
  emits: ["switchSignIn"],
1613
1613
  setup(o, {
1614
- emit: u
1614
+ emit: r
1615
1615
  }) {
1616
- const d = u;
1616
+ const u = r;
1617
1617
  function l() {
1618
- d("switchSignIn");
1618
+ u("switchSignIn");
1619
1619
  }
1620
- return (n, c) => (g(), U("div", Pt, [z("span", null, [c[1] || (c[1] = z("span", null, "已经有账号?", -1)), i(e(G), {
1620
+ return (n, d) => (g(), U("div", Pt, [z("span", null, [d[1] || (d[1] = z("span", null, "已经有账号?", -1)), i(e(G), {
1621
1621
  style: {
1622
1622
  padding: "0px"
1623
1623
  },
1624
1624
  onClick: l
1625
1625
  }, {
1626
- default: a(() => [...c[0] || (c[0] = [_("去登陆", -1)])]),
1626
+ default: a(() => [...d[0] || (d[0] = [_("去登陆", -1)])]),
1627
1627
  _: 1
1628
1628
  })])]));
1629
1629
  }
1630
- }), ge = /* @__PURE__ */ $(Ut, [["__scopeId", "data-v-fc1d3903"]]), $t = {
1630
+ }), ye = /* @__PURE__ */ $(Ut, [["__scopeId", "data-v-fc1d3903"]]), $t = {
1631
1631
  class: "ResetPassword"
1632
1632
  }, Ct = /* @__PURE__ */ V({
1633
1633
  __name: "AuthkitResetPassword",
@@ -1645,20 +1645,20 @@ const hi = ve, te = /* @__PURE__ */ V({
1645
1645
  },
1646
1646
  emits: ["switchSignIn", "submit"],
1647
1647
  setup(o, {
1648
- emit: u
1648
+ emit: r
1649
1649
  }) {
1650
- const d = u, l = o;
1650
+ const u = r, l = o;
1651
1651
  function n() {
1652
- d("switchSignIn");
1652
+ u("switchSignIn");
1653
1653
  }
1654
- async function c(t) {
1655
- d("submit", t);
1654
+ async function d(t) {
1655
+ u("submit", t);
1656
1656
  }
1657
1657
  return (t, s) => (g(), U("div", $t, [i(At, {
1658
1658
  loading: o.loading,
1659
1659
  size: l.size,
1660
- onSubmit: c
1661
- }, null, 8, ["loading", "size"]), i(ge, {
1660
+ onSubmit: d
1661
+ }, null, 8, ["loading", "size"]), i(ye, {
1662
1662
  onSwitchSignIn: n
1663
1663
  })]));
1664
1664
  }
@@ -1668,16 +1668,16 @@ const hi = ve, te = /* @__PURE__ */ V({
1668
1668
  __name: "AuthkitServiceAgreementAndPrivacyProtection",
1669
1669
  emits: ["toUserServiceAgreement", "toPrivacyPolicy"],
1670
1670
  setup(o, {
1671
- emit: u
1671
+ emit: r
1672
1672
  }) {
1673
- const d = u;
1673
+ const u = r;
1674
1674
  function l() {
1675
- d("toUserServiceAgreement");
1675
+ u("toUserServiceAgreement");
1676
1676
  }
1677
1677
  function n() {
1678
- d("toPrivacyPolicy");
1678
+ u("toPrivacyPolicy");
1679
1679
  }
1680
- return (c, t) => (g(), U("div", qt, [t[2] || (t[2] = z("span", null, " 注册登陆即表示同意", -1)), i(e(G), {
1680
+ return (d, t) => (g(), U("div", qt, [t[2] || (t[2] = z("span", null, " 注册登陆即表示同意", -1)), i(e(G), {
1681
1681
  onClick: l
1682
1682
  }, {
1683
1683
  default: a(() => [...t[0] || (t[0] = [_("用户服务协议", -1)])]),
@@ -1708,54 +1708,54 @@ const hi = ve, te = /* @__PURE__ */ V({
1708
1708
  },
1709
1709
  emits: ["submit"],
1710
1710
  setup(o, {
1711
- emit: u
1711
+ emit: r
1712
1712
  }) {
1713
- const d = u, l = o;
1714
- async function n(y, f) {
1715
- var q;
1713
+ const u = r, l = o;
1714
+ async function n(y, m) {
1715
+ var L;
1716
1716
  if (!y) {
1717
- f("请输入密码");
1717
+ m("请输入密码");
1718
1718
  return;
1719
1719
  }
1720
1720
  const {
1721
1721
  data: v,
1722
- error: r
1722
+ error: c
1723
1723
  } = await R.verify.password.post({
1724
1724
  password: y
1725
1725
  });
1726
- if (r) {
1727
- f(r.message || "密码验证请求出错!");
1726
+ if (c) {
1727
+ m(c.message || "密码验证请求出错!");
1728
1728
  return;
1729
1729
  }
1730
1730
  if (!v) {
1731
- f("密码验证请求出错!");
1731
+ m("密码验证请求出错!");
1732
1732
  return;
1733
1733
  }
1734
1734
  const {
1735
- isPass: m,
1736
- feedback: p,
1737
- score: h,
1735
+ isPass: p,
1736
+ feedback: f,
1737
+ score: w,
1738
1738
  minPasswordComplexity: C
1739
1739
  } = v;
1740
- if (!(m === !0 || m === "true" || typeof m == "boolean" && m)) {
1741
- const L = (p == null ? void 0 : p.warning) || ((q = p == null ? void 0 : p.suggestions) != null && q.length ? p.suggestions.join(", ") : "") || "密码强度不足";
1742
- f(L);
1740
+ if (!(p === !0 || p === "true" || typeof p == "boolean" && p)) {
1741
+ const q = (f == null ? void 0 : f.warning) || ((L = f == null ? void 0 : f.suggestions) != null && L.length ? f.suggestions.join(", ") : "") || "密码强度不足";
1742
+ m(q);
1743
1743
  return;
1744
1744
  }
1745
- f();
1745
+ m();
1746
1746
  }
1747
- const c = w(), t = w({
1747
+ const d = h(), t = h({
1748
1748
  email: void 0,
1749
1749
  password: void 0
1750
1750
  });
1751
1751
  async function s() {
1752
- c.value.validate().then((y) => {
1753
- y || d("submit", t.value);
1752
+ d.value.validate().then((y) => {
1753
+ y || u("submit", t.value);
1754
1754
  });
1755
1755
  }
1756
- return (y, f) => (g(), U("div", Lt, [i(e(H), {
1756
+ return (y, m) => (g(), U("div", Lt, [i(e(H), {
1757
1757
  ref_key: "formRef",
1758
- ref: c,
1758
+ ref: d,
1759
1759
  model: t.value,
1760
1760
  size: l.size,
1761
1761
  "auto-label-width": ""
@@ -1774,7 +1774,7 @@ const hi = ve, te = /* @__PURE__ */ V({
1774
1774
  }, {
1775
1775
  default: a(() => [i(e(x), {
1776
1776
  modelValue: t.value.email,
1777
- "onUpdate:modelValue": f[0] || (f[0] = (v) => t.value.email = v),
1777
+ "onUpdate:modelValue": m[0] || (m[0] = (v) => t.value.email = v),
1778
1778
  placeholder: "请输入邮箱",
1779
1779
  autocomplete: "email username",
1780
1780
  type: "email"
@@ -1793,7 +1793,7 @@ const hi = ve, te = /* @__PURE__ */ V({
1793
1793
  }, {
1794
1794
  default: a(() => [i(e(x), {
1795
1795
  modelValue: t.value.password,
1796
- "onUpdate:modelValue": f[1] || (f[1] = (v) => t.value.password = v),
1796
+ "onUpdate:modelValue": m[1] || (m[1] = (v) => t.value.password = v),
1797
1797
  placeholder: "请输入密码",
1798
1798
  type: "password",
1799
1799
  autocomplete: "current-password"
@@ -1806,7 +1806,7 @@ const hi = ve, te = /* @__PURE__ */ V({
1806
1806
  size: l.size,
1807
1807
  onClick: s
1808
1808
  }, {
1809
- default: a(() => [...f[2] || (f[2] = [_(" 登陆 ", -1)])]),
1809
+ default: a(() => [...m[2] || (m[2] = [_(" 登陆 ", -1)])]),
1810
1810
  _: 1
1811
1811
  }, 8, ["loading", "size"])])]),
1812
1812
  _: 1
@@ -1818,16 +1818,16 @@ const hi = ve, te = /* @__PURE__ */ V({
1818
1818
  __name: "AuthkitSwitchSignUpOrResetPassword",
1819
1819
  emits: ["switchSignUp", "switchResetPassword"],
1820
1820
  setup(o, {
1821
- emit: u
1821
+ emit: r
1822
1822
  }) {
1823
- const d = u;
1823
+ const u = r;
1824
1824
  function l() {
1825
- d("switchSignUp");
1825
+ u("switchSignUp");
1826
1826
  }
1827
1827
  function n() {
1828
- d("switchResetPassword");
1828
+ u("switchResetPassword");
1829
1829
  }
1830
- return (c, t) => (g(), U("div", Dt, [z("span", null, [t[1] || (t[1] = z("span", null, " 还没有账户?", -1)), i(e(G), {
1830
+ return (d, t) => (g(), U("div", Dt, [z("span", null, [t[1] || (t[1] = z("span", null, " 还没有账户?", -1)), i(e(G), {
1831
1831
  style: {
1832
1832
  padding: "0px"
1833
1833
  },
@@ -1862,23 +1862,23 @@ const hi = ve, te = /* @__PURE__ */ V({
1862
1862
  },
1863
1863
  emits: ["submit", "switchSignUp", "switchResetPassword"],
1864
1864
  setup(o, {
1865
- emit: u
1865
+ emit: r
1866
1866
  }) {
1867
- const d = u, l = o, n = Se(), c = N(() => !!n.OAuth);
1867
+ const u = r, l = o, n = Se(), d = N(() => !!n.OAuth);
1868
1868
  function t() {
1869
- d("switchSignUp");
1869
+ u("switchSignUp");
1870
1870
  }
1871
1871
  function s() {
1872
- d("switchResetPassword");
1872
+ u("switchResetPassword");
1873
1873
  }
1874
- async function y(f) {
1875
- d("submit", f);
1874
+ async function y(m) {
1875
+ u("submit", m);
1876
1876
  }
1877
- return (f, v) => (g(), U("div", Ht, [S("", !0), i(Et, {
1877
+ return (m, v) => (g(), U("div", Ht, [S("", !0), i(Et, {
1878
1878
  loading: l.loading,
1879
1879
  size: l.size,
1880
1880
  onSubmit: y
1881
- }, null, 8, ["loading", "size"]), c.value ? ue(f.$slots, "OAuth", {
1881
+ }, null, 8, ["loading", "size"]), d.value ? de(m.$slots, "OAuth", {
1882
1882
  key: 1
1883
1883
  }, void 0, !0) : S("", !0), i(Ft, {
1884
1884
  onSwitchSignUp: t,
@@ -1902,20 +1902,20 @@ const hi = ve, te = /* @__PURE__ */ V({
1902
1902
  },
1903
1903
  emits: ["switchSignIn", "submit"],
1904
1904
  setup(o, {
1905
- emit: u
1905
+ emit: r
1906
1906
  }) {
1907
- const d = u, l = o;
1907
+ const u = r, l = o;
1908
1908
  function n() {
1909
- d("switchSignIn");
1909
+ u("switchSignIn");
1910
1910
  }
1911
- async function c(t) {
1912
- d("submit", t);
1911
+ async function d(t) {
1912
+ u("submit", t);
1913
1913
  }
1914
- return (t, s) => (g(), U("div", jt, [i(fe, {
1914
+ return (t, s) => (g(), U("div", jt, [i(pe, {
1915
1915
  size: l.size,
1916
1916
  loading: o.loading,
1917
- onSubmit: c
1918
- }, null, 8, ["size", "loading"]), i(ge, {
1917
+ onSubmit: d
1918
+ }, null, 8, ["size", "loading"]), i(ye, {
1919
1919
  onSwitchSignIn: n
1920
1920
  })]));
1921
1921
  }
@@ -1939,14 +1939,14 @@ const hi = ve, te = /* @__PURE__ */ V({
1939
1939
  }
1940
1940
  },
1941
1941
  setup(o) {
1942
- const u = o, d = `${u.size}px`, l = `${u.fontSize}px`, n = `${u.lineHeight}px`, {
1943
- currentView: c
1942
+ const r = o, u = `${r.size}px`, l = `${r.fontSize}px`, n = `${r.lineHeight}px`, {
1943
+ currentView: d
1944
1944
  } = J(), {
1945
1945
  appsData: t
1946
- } = se(), s = N(() => c.value === "signIn" ? `${t.value.name}登录` : c.value === "signUp" ? `${t.value.name}账号注册` : c.value === "resetPassword" ? `${t.value.name}密码重置` : "");
1947
- return (y, f) => (g(), U("div", {
1946
+ } = ae(), s = N(() => d.value === "signIn" ? `${t.value.name}登录` : d.value === "signUp" ? `${t.value.name}账号注册` : d.value === "resetPassword" ? `${t.value.name}密码重置` : "");
1947
+ return (y, m) => (g(), U("div", {
1948
1948
  class: "Title",
1949
- style: ie({
1949
+ style: se({
1950
1950
  fontSize: l,
1951
1951
  lineHeight: n
1952
1952
  })
@@ -1954,12 +1954,12 @@ const hi = ve, te = /* @__PURE__ */ V({
1954
1954
  key: 0,
1955
1955
  src: e(t).applicationLogoUrl,
1956
1956
  srcset: "",
1957
- style: ie({
1958
- width: d
1957
+ style: se({
1958
+ width: u
1959
1959
  })
1960
- }, null, 12, Zt)) : S("", !0), z("span", null, B(s.value), 1), ue(y.$slots, "default", {}, void 0, !0)], 4));
1960
+ }, null, 12, Zt)) : S("", !0), z("span", null, B(s.value), 1), de(y.$slots, "default", {}, void 0, !0)], 4));
1961
1961
  }
1962
- }), ye = /* @__PURE__ */ $(Jt, [["__scopeId", "data-v-5576db64"]]), Qt = {
1962
+ }), we = /* @__PURE__ */ $(Jt, [["__scopeId", "data-v-8ebe7939"]]), Qt = {
1963
1963
  class: "Auth"
1964
1964
  }, Xt = {
1965
1965
  class: "body"
@@ -1977,62 +1977,62 @@ const hi = ve, te = /* @__PURE__ */ V({
1977
1977
  },
1978
1978
  emits: ["toPrivacyPolicy", "toUserServiceAgreement"],
1979
1979
  setup(o, {
1980
- emit: u
1980
+ emit: r
1981
1981
  }) {
1982
- const d = o, l = u, {
1982
+ const u = o, l = r, {
1983
1983
  signInSubmit: n,
1984
- signUpSubmit: c,
1984
+ signUpSubmit: d,
1985
1985
  resetPasswordSubmit: t,
1986
1986
  currentView: s,
1987
1987
  authSignInLoading: y,
1988
- authSignUpLoading: f,
1988
+ authSignUpLoading: m,
1989
1989
  resetPasswordLoading: v,
1990
- switchSignUp: r,
1991
- switchResetPassword: m,
1992
- switchSignIn: p
1990
+ switchSignUp: c,
1991
+ switchResetPassword: p,
1992
+ switchSignIn: f
1993
1993
  } = J(), {
1994
- appsAuthPageInfoApi: h
1995
- } = se();
1994
+ appsAuthPageInfoApi: w
1995
+ } = ae();
1996
1996
  function C() {
1997
1997
  l("toPrivacyPolicy");
1998
1998
  }
1999
1999
  function P() {
2000
2000
  l("toUserServiceAgreement");
2001
2001
  }
2002
- return h(), (q, L) => (g(), U("div", Qt, [o.showTitle ? (g(), k(ye, {
2002
+ return w(), (L, q) => (g(), U("div", Qt, [o.showTitle ? (g(), k(we, {
2003
2003
  key: 0,
2004
2004
  size: 32,
2005
2005
  "font-size": 20
2006
2006
  })) : S("", !0), z("div", Xt, [e(s) === "signIn" ? (g(), k(Gt, {
2007
2007
  key: 0,
2008
- size: d.size,
2008
+ size: u.size,
2009
2009
  loading: e(y),
2010
- onSwitchSignUp: e(r),
2011
- onSwitchResetPassword: e(m),
2012
- onSubmit: L[0] || (L[0] = (E) => e(n)(E))
2010
+ onSwitchSignUp: e(c),
2011
+ onSwitchResetPassword: e(p),
2012
+ onSubmit: q[0] || (q[0] = (E) => e(n)(E))
2013
2013
  }, {
2014
2014
  OAuth: a(() => [i(kt, {
2015
- size: d.size
2015
+ size: u.size
2016
2016
  }, null, 8, ["size"])]),
2017
2017
  _: 1
2018
2018
  }, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(s) === "signUp" ? (g(), k(Kt, {
2019
2019
  key: 1,
2020
- size: d.size,
2021
- loading: e(f),
2022
- onSwitchSignIn: e(p),
2023
- onSubmit: L[1] || (L[1] = (E) => e(c)(E))
2020
+ size: u.size,
2021
+ loading: e(m),
2022
+ onSwitchSignIn: e(f),
2023
+ onSubmit: q[1] || (q[1] = (E) => e(d)(E))
2024
2024
  }, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(s) === "resetPassword" ? (g(), k(xt, {
2025
2025
  key: 2,
2026
- size: d.size,
2026
+ size: u.size,
2027
2027
  loading: e(v),
2028
- onSwitchSignIn: e(p),
2029
- onSubmit: L[2] || (L[2] = (E) => e(t)(E))
2028
+ onSwitchSignIn: e(f),
2029
+ onSubmit: q[2] || (q[2] = (E) => e(t)(E))
2030
2030
  }, null, 8, ["size", "loading", "onSwitchSignIn"])) : S("", !0), i(Rt, {
2031
2031
  onToPrivacyPolicy: C,
2032
2032
  onToUserServiceAgreement: P
2033
2033
  })])]));
2034
2034
  }
2035
- }), ei = /* @__PURE__ */ $(Yt, [["__scopeId", "data-v-24781b69"]]), ti = /* @__PURE__ */ V({
2035
+ }), ei = /* @__PURE__ */ $(Yt, [["__scopeId", "data-v-de36d1d1"]]), ti = /* @__PURE__ */ V({
2036
2036
  __name: "AuthkitAuthModal",
2037
2037
  props: {
2038
2038
  size: {
@@ -2046,24 +2046,24 @@ const hi = ve, te = /* @__PURE__ */ V({
2046
2046
  },
2047
2047
  emits: ["confirm", "close", "toPrivacyPolicy", "toUserServiceAgreement"],
2048
2048
  setup(o, {
2049
- emit: u
2049
+ emit: r
2050
2050
  }) {
2051
2051
  const {
2052
- addSignInCallback: d
2052
+ addSignInCallback: u
2053
2053
  } = J(), {
2054
2054
  show: l
2055
- } = Ue(), n = o, c = u;
2055
+ } = Ue(), n = o, d = r;
2056
2056
  function t(y) {
2057
2057
  y(!0);
2058
2058
  }
2059
2059
  function s() {
2060
- l.value = !1, c("close");
2060
+ l.value = !1, d("close");
2061
2061
  }
2062
- return d(() => {
2062
+ return u(() => {
2063
2063
  l.value = !1;
2064
- }), (y, f) => (g(), k(e(me), {
2064
+ }), (y, m) => (g(), k(e(ce), {
2065
2065
  visible: e(l),
2066
- "onUpdate:visible": f[2] || (f[2] = (v) => re(l) ? l.value = v : null),
2066
+ "onUpdate:visible": m[2] || (m[2] = (v) => ue(l) ? l.value = v : null),
2067
2067
  footer: !1,
2068
2068
  "mask-closable": !1,
2069
2069
  "title-align": "center",
@@ -2073,31 +2073,31 @@ const hi = ve, te = /* @__PURE__ */ V({
2073
2073
  onBeforeOk: t,
2074
2074
  onClose: s
2075
2075
  }, {
2076
- title: a(() => [i(ye)]),
2076
+ title: a(() => [i(we)]),
2077
2077
  default: a(() => [i(ei, {
2078
2078
  "show-title": !1,
2079
2079
  size: n.size,
2080
- onToPrivacyPolicy: f[0] || (f[0] = (v) => c("toPrivacyPolicy")),
2081
- onToUserServiceAgreement: f[1] || (f[1] = (v) => c("toUserServiceAgreement"))
2080
+ onToPrivacyPolicy: m[0] || (m[0] = (v) => d("toPrivacyPolicy")),
2081
+ onToUserServiceAgreement: m[1] || (m[1] = (v) => d("toUserServiceAgreement"))
2082
2082
  }, null, 8, ["size"])]),
2083
2083
  _: 1
2084
2084
  }, 8, ["visible"]));
2085
2085
  }
2086
- }), _i = /* @__PURE__ */ $(ti, [["__scopeId", "data-v-6fbefff8"]]);
2086
+ }), _i = /* @__PURE__ */ $(ti, [["__scopeId", "data-v-4c7d205e"]]);
2087
2087
  export {
2088
2088
  wi as A,
2089
2089
  st as E,
2090
2090
  kt as O,
2091
2091
  Et as P,
2092
2092
  xt as R,
2093
- ae as S,
2093
+ le as S,
2094
2094
  at as _,
2095
2095
  ei as a,
2096
2096
  _i as b,
2097
- ye as c,
2098
- fe as d,
2099
- le as e,
2100
- te as f,
2097
+ we as c,
2098
+ pe as d,
2099
+ ne as e,
2100
+ ie as f,
2101
2101
  Je as g,
2102
2102
  At as h,
2103
2103
  He as i,
@@ -2105,8 +2105,8 @@ export {
2105
2105
  Qe as k,
2106
2106
  Gt as l,
2107
2107
  Kt as m,
2108
- ge as n,
2108
+ ye as n,
2109
2109
  Ft as o,
2110
- ve as p,
2110
+ ge as p,
2111
2111
  hi as u
2112
2112
  };