@huyooo/ui 0.4.27 → 0.4.29

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 (35) hide show
  1. package/dist/{AuthkitAppSetting-BFCdC1j2.js → AuthkitAppSetting-CipV7oA1.js} +634 -646
  2. package/dist/{AuthkitAuthorize-p0mbjzzG.js → AuthkitAuthorize-f_yAVn7e.js} +1 -1
  3. package/dist/{FeedbackItem-CFVbxhcl.js → FeedbackItem-ooh4blcU.js} +97 -127
  4. package/dist/{FeedbackModal-DHWHALct.js → FeedbackModal-CYHs8PS1.js} +257 -277
  5. package/dist/{ReferrerReferees-CFaLm7zO.js → ReferrerReferees-D2NqWvol.js} +19 -21
  6. package/dist/Upload.vue_vue_type_script_setup_true_lang-DGZiaQGY.js +70 -0
  7. package/dist/UserPanel-D3rp3ILE.js +544 -0
  8. package/dist/api/Buckets/Files.d.ts +7 -7
  9. package/dist/authkit.d.ts +0 -1
  10. package/dist/authkit.js +13 -14
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +19 -20
  13. package/dist/components/Feedback/FeedbackScreenshots.vue.d.ts +0 -48
  14. package/dist/components/Upload/Upload.vue.d.ts +0 -40
  15. package/dist/composables/Upload/useUploadCos.d.ts +1 -8
  16. package/dist/composables/{useUserPanelProps.d.ts → useGlobalConfig.d.ts} +2 -11
  17. package/dist/composables.d.ts +1 -2
  18. package/dist/composables.js +15 -17
  19. package/dist/feedback.js +2 -2
  20. package/dist/index.js +117 -119
  21. package/dist/referrer.js +1 -1
  22. package/dist/style.css +1 -1
  23. package/dist/upload.js +2 -2
  24. package/dist/{useAuthkitProps-CW3Jem_o.js → useAuthkitAuthModal-OkUKCIWR.js} +18 -65
  25. package/dist/{useUploadCos-B8D9lYIk.js → useUploadCos-ByBVD4yB.js} +2529 -2373
  26. package/dist/user.d.ts +1 -1
  27. package/dist/user.js +5 -5
  28. package/dist/utils/mimeTypeHelper.d.ts +13 -0
  29. package/package.json +7 -6
  30. package/README.md +0 -5
  31. package/dist/Upload.vue_vue_type_script_setup_true_lang-uy8hhi_o.js +0 -96
  32. package/dist/UserPanel-xTXMSKGJ.js +0 -545
  33. package/dist/composables/Authkit/useAuthkitProps.d.ts +0 -12
  34. package/dist/useUserPanelProps-C5W72fZJ.js +0 -54
  35. package/dist/utils/configHelper.d.ts +0 -17
@@ -1,51 +1,51 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { defineComponent as S, createBlock as y, openBlock as g, unref as e, withCtx as d, createElementVNode as w, toDisplayString as L, createVNode as l, computed as R, createElementBlock as U, createCommentVNode as k, createTextVNode as z, ref as h, onMounted as N, onUnmounted as se, withDirectives as ve, vShow as ge, useSlots as _e, renderSlot as ne, normalizeStyle as j, isRef as ae, normalizeClass as he, Fragment as W } from "vue";
5
- import { Button as $, Divider as ye, Form as B, FormItem as A, Input as C, Link as O, Modal as le, Avatar as oe, Textarea as be, Message as E, Alert as T } from "@arco-design/web-vue";
6
- import { u as K, b as we, c as ie, d as ze, a as Z, e as ke, f as Se } from "./useAuthkitUsersProfile-Diituvy1.js";
7
- import { U as J, u as Ie, a as Ae } from "./useAuthkitProps-CW3Jem_o.js";
4
+ import { defineComponent as k, createBlock as y, openBlock as g, unref as e, withCtx as m, createElementVNode as w, toDisplayString as T, createVNode as l, computed as q, createElementBlock as P, createCommentVNode as S, createTextVNode as z, ref as h, onMounted as F, onUnmounted as ee, withDirectives as me, vShow as ce, useSlots as fe, renderSlot as te, normalizeStyle as D, isRef as ie, normalizeClass as pe, Fragment as j } from "vue";
5
+ import { Button as U, Divider as ve, Form as L, FormItem as A, Input as V, Link as B, Modal as se, Avatar as ne, Textarea as ge, Message as O, Alert as R } from "@arco-design/web-vue";
6
+ import { u as W, b as _e, c as Y, d as he, a as K, e as ye, f as we } from "./useAuthkitUsersProfile-Diituvy1.js";
7
+ import { U as Z, u as be } from "./useAuthkitAuthModal-OkUKCIWR.js";
8
8
  /* empty css */
9
- import { Icon as Pe } from "@iconify/vue";
10
- import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
+ import { Icon as ze } from "@iconify/vue";
10
+ import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  /* empty css */
12
12
  /* empty css */
13
13
  /* empty css */
14
- import { u as Ve } from "./useUploadCos-B8D9lYIk.js";
15
- import { _ as Ue, g as Ce, i as $e } from "./plugin-vue_export-helper-LjDO2Zua.js";
16
- import { api as F } from "@huyooo/api";
17
- import { M as xe } from "./Menu-Cxo8Rpu3.js";
18
- import { u as qe } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
19
- function re() {
20
- return F({
14
+ import { a as Se } from "./useUploadCos-ByBVD4yB.js";
15
+ import { _ as ke, g as Ae, i as Ie } from "./plugin-vue_export-helper-LjDO2Zua.js";
16
+ import { api as G } from "@huyooo/api";
17
+ import { M as Pe } from "./Menu-Cxo8Rpu3.js";
18
+ import { u as Ve } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
19
+ function le() {
20
+ return G({
21
21
  url: "/restfulApi/OAuth/github/login",
22
22
  method: "get"
23
23
  });
24
24
  }
25
- function Re() {
26
- re().then(({
25
+ function Ue() {
26
+ le().then(({
27
27
  data: i
28
28
  }) => {
29
29
  const {
30
- redirectUri: a
30
+ redirectUri: n
31
31
  } = i;
32
- a ? window.location.href = a : console.error("GitHub OAuth 重定向URL为空");
32
+ n ? window.location.href = n : console.error("GitHub OAuth 重定向URL为空");
33
33
  }).catch((i) => {
34
34
  console.error("GitHub OAuth 授权失败:", i);
35
35
  });
36
36
  }
37
- function Te() {
37
+ function Ce() {
38
38
  }
39
- function Le() {
39
+ function $e() {
40
40
  }
41
- function Be() {
41
+ function xe() {
42
42
  return {
43
- githubAuth: Re,
44
- googleAuth: Te,
45
- microsoftAuth: Le
43
+ githubAuth: Ue,
44
+ googleAuth: Ce,
45
+ microsoftAuth: $e
46
46
  };
47
47
  }
48
- const M = /* @__PURE__ */ S({
48
+ const H = /* @__PURE__ */ k({
49
49
  __name: "AuthkitOAuthItem",
50
50
  props: {
51
51
  size: {
@@ -65,26 +65,26 @@ const M = /* @__PURE__ */ S({
65
65
  },
66
66
  emits: [],
67
67
  setup(i, {
68
- emit: a
68
+ emit: n
69
69
  }) {
70
- const o = i;
71
- return (s, f) => (g(), y(e($), {
70
+ const u = i;
71
+ return (s, a) => (g(), y(e(U), {
72
72
  class: "OAuthItem",
73
73
  type: "primary",
74
- size: o.size
74
+ size: u.size
75
75
  }, {
76
- icon: d(() => [l(e(Pe), {
77
- icon: o.icon
76
+ icon: m(() => [l(e(ze), {
77
+ icon: u.icon
78
78
  }, null, 8, ["icon"])]),
79
- default: d(() => [w("span", null, L(o.label), 1)]),
79
+ default: m(() => [w("span", null, T(u.label), 1)]),
80
80
  _: 1
81
81
  }, 8, ["size"]));
82
82
  }
83
- }), Oe = {
83
+ }), qe = {
84
84
  class: "OAuthList"
85
- }, Ee = {
85
+ }, Re = {
86
86
  class: "OAuthList"
87
- }, Ne = /* @__PURE__ */ S({
87
+ }, Te = /* @__PURE__ */ k({
88
88
  __name: "AuthkitOAuthList",
89
89
  props: {
90
90
  size: {
@@ -98,62 +98,62 @@ const M = /* @__PURE__ */ S({
98
98
  },
99
99
  setup(i) {
100
100
  const {
101
- appsData: a
102
- } = J(), o = i, {
101
+ appsData: n
102
+ } = Z(), u = i, {
103
103
  githubAuth: s,
104
- googleAuth: f,
105
- microsoftAuth: r
106
- } = Be(), t = R(() => !(!a.value.oauth.google.enabled && !a.value.oauth.microsoft.enabled && !a.value.oauth.github.enabled && !a.value.oauth.wechat.enabled));
107
- return (u, _) => (g(), U("div", Oe, [t.value ? (g(), y(e(ye), {
104
+ googleAuth: a,
105
+ microsoftAuth: o
106
+ } = xe(), t = q(() => !(!n.value.oauth.google.enabled && !n.value.oauth.microsoft.enabled && !n.value.oauth.github.enabled && !n.value.oauth.wechat.enabled));
107
+ return (r, _) => (g(), P("div", qe, [t.value ? (g(), y(e(ve), {
108
108
  key: 0,
109
109
  orientation: "center"
110
110
  }, {
111
- default: d(() => _[0] || (_[0] = [z("OAuth登陆")])),
111
+ default: m(() => _[0] || (_[0] = [z("OAuth登陆")])),
112
112
  _: 1,
113
113
  __: [0]
114
- })) : k("", !0), w("div", Ee, [e(a).oauth.github.enabled ? (g(), y(M, {
114
+ })) : S("", !0), w("div", Re, [e(n).oauth.github.enabled ? (g(), y(H, {
115
115
  key: 0,
116
116
  icon: "mdi:github",
117
117
  label: "Github",
118
- size: o.size,
118
+ size: u.size,
119
119
  onClick: e(s)
120
- }, null, 8, ["size", "onClick"])) : k("", !0), e(a).oauth.google.enabled ? (g(), y(M, {
120
+ }, null, 8, ["size", "onClick"])) : S("", !0), e(n).oauth.google.enabled ? (g(), y(H, {
121
121
  key: 1,
122
122
  icon: "mdi:google",
123
123
  label: "Google",
124
- size: o.size,
125
- onClick: e(f)
126
- }, null, 8, ["size", "onClick"])) : k("", !0), e(a).oauth.microsoft.enabled ? (g(), y(M, {
124
+ size: u.size,
125
+ onClick: e(a)
126
+ }, null, 8, ["size", "onClick"])) : S("", !0), e(n).oauth.microsoft.enabled ? (g(), y(H, {
127
127
  key: 2,
128
128
  icon: "mdi:microsoft",
129
129
  label: "Microsoft",
130
- size: o.size,
131
- onClick: e(r)
132
- }, null, 8, ["size", "onClick"])) : k("", !0)])]));
130
+ size: u.size,
131
+ onClick: e(o)
132
+ }, null, 8, ["size", "onClick"])) : S("", !0)])]));
133
133
  }
134
- }), Fe = /* @__PURE__ */ P(Ne, [["__scopeId", "data-v-7c6620c0"]]);
135
- function Ge(i) {
136
- return F({
134
+ }), Le = /* @__PURE__ */ I(Te, [["__scopeId", "data-v-7c6620c0"]]);
135
+ function Be(i) {
136
+ return G({
137
137
  url: "/restfulApi/verify/email",
138
138
  method: "post",
139
139
  data: i
140
140
  });
141
141
  }
142
- function Q(i) {
143
- return F({
142
+ function J(i) {
143
+ return G({
144
144
  url: "/restfulApi/verify/email/retry",
145
145
  method: "post",
146
146
  data: i
147
147
  });
148
148
  }
149
- function He(i) {
150
- return F({
149
+ function Oe(i) {
150
+ return G({
151
151
  url: "/restfulApi/verify/password",
152
152
  method: "post",
153
153
  data: i
154
154
  });
155
155
  }
156
- const Me = /* @__PURE__ */ S({
156
+ const Ee = /* @__PURE__ */ k({
157
157
  __name: "AuthkitSendVerifyCode",
158
158
  props: {
159
159
  size: {
@@ -168,47 +168,47 @@ const Me = /* @__PURE__ */ S({
168
168
  },
169
169
  emits: ["send"],
170
170
  setup(i, {
171
- expose: a,
172
- emit: o
171
+ expose: n,
172
+ emit: u
173
173
  }) {
174
- const s = o, f = i, r = h(!1);
174
+ const s = u, a = i, o = h(!1);
175
175
  let t;
176
- const u = h(0), _ = R(() => u.value.toString().padStart(2, "0")), n = R(() => u.value > 0), m = () => {
177
- r.value && (u.value <= 0 ? (clearInterval(t), r.value = !1) : u.value--);
176
+ const r = h(0), _ = q(() => r.value.toString().padStart(2, "0")), f = q(() => r.value > 0), p = () => {
177
+ o.value && (r.value <= 0 ? (clearInterval(t), o.value = !1) : r.value--);
178
178
  };
179
- function c() {
179
+ function d() {
180
180
  s("send");
181
181
  }
182
- function p() {
183
- u.value = 60, r.value = !0, t && clearInterval(t), t = setInterval(m, 1e3);
182
+ function c() {
183
+ r.value = 60, o.value = !0, t && clearInterval(t), t = setInterval(p, 1e3);
184
184
  }
185
- return N(() => {
186
- }), a({
187
- startCountFn: p
188
- }), se(() => {
185
+ return F(() => {
186
+ }), n({
187
+ startCountFn: c
188
+ }), ee(() => {
189
189
  t && clearInterval(t);
190
- }), (v, b) => (g(), y(e($), {
190
+ }), (v, b) => (g(), y(e(U), {
191
191
  class: "OAuthItem",
192
192
  type: "primary",
193
- size: f.size,
194
- disabled: n.value,
195
- loading: f.loading,
196
- onClick: c
193
+ size: a.size,
194
+ disabled: f.value,
195
+ loading: a.loading,
196
+ onClick: d
197
197
  }, {
198
- default: d(() => [b[0] || (b[0] = w("span", null, " 发送验证码", -1)), ve(w("span", {
198
+ default: m(() => [b[0] || (b[0] = w("span", null, " 发送验证码", -1)), me(w("span", {
199
199
  class: "verify-code-timer"
200
- }, L(`(${_.value})`), 513), [[ge, n.value]])]),
200
+ }, T(`(${_.value})`), 513), [[ce, f.value]])]),
201
201
  _: 1,
202
202
  __: [0]
203
203
  }, 8, ["size", "disabled", "loading"]));
204
204
  }
205
- }), X = /* @__PURE__ */ P(Me, [["__scopeId", "data-v-2883dc6d"]]), De = {
205
+ }), Q = /* @__PURE__ */ I(Ee, [["__scopeId", "data-v-2883dc6d"]]), Ne = {
206
206
  class: "content"
207
- }, je = {
207
+ }, Fe = {
208
208
  class: "sendVerifyCodeItem"
209
- }, We = {
209
+ }, Ge = {
210
210
  class: "handle"
211
- }, Ke = /* @__PURE__ */ S({
211
+ }, He = /* @__PURE__ */ k({
212
212
  __name: "AuthkitPasswordUpdateAndVerify",
213
213
  props: {
214
214
  size: {
@@ -223,9 +223,9 @@ const Me = /* @__PURE__ */ S({
223
223
  },
224
224
  emits: ["signIn", "submit"],
225
225
  setup(i, {
226
- emit: a
226
+ emit: n
227
227
  }) {
228
- const o = a, s = i, f = h(), r = h(!1), t = h(), u = h({
228
+ const u = n, s = i, a = h(), o = h(!1), t = h(), r = h({
229
229
  email: void 0,
230
230
  userToken: void 0,
231
231
  emailVerifyId: void 0,
@@ -233,31 +233,31 @@ const Me = /* @__PURE__ */ S({
233
233
  confirmPassword: void 0
234
234
  });
235
235
  async function _() {
236
- t.value.validateField(["email"]).then((m) => {
237
- m || (r.value = !0, Q({
238
- email: u.value.email
236
+ t.value.validateField(["email"]).then((p) => {
237
+ p || (o.value = !0, J({
238
+ email: r.value.email
239
239
  }).then(({
240
- data: c
240
+ data: d
241
241
  }) => {
242
- r.value = !1, u.value.emailVerifyId = c.emailVerifyId, f.value.startCountFn();
242
+ o.value = !1, r.value.emailVerifyId = d.emailVerifyId, a.value.startCountFn();
243
243
  }).catch(() => {
244
- r.value = !1;
244
+ o.value = !1;
245
245
  }));
246
246
  });
247
247
  }
248
- async function n() {
249
- t.value.validate().then((m) => {
250
- m || o("submit", u.value);
248
+ async function f() {
249
+ t.value.validate().then((p) => {
250
+ p || u("submit", r.value);
251
251
  });
252
252
  }
253
- return (m, c) => (g(), U("div", De, [l(e(B), {
253
+ return (p, d) => (g(), P("div", Ne, [l(e(L), {
254
254
  ref_key: "formRef",
255
255
  ref: t,
256
- model: u.value,
256
+ model: r.value,
257
257
  size: s.size,
258
258
  "auto-label-width": ""
259
259
  }, {
260
- default: d(() => [l(e(A), {
260
+ default: m(() => [l(e(A), {
261
261
  field: "email",
262
262
  label: "邮箱",
263
263
  "hide-label": "",
@@ -269,9 +269,9 @@ const Me = /* @__PURE__ */ S({
269
269
  message: "请输入有效的邮箱"
270
270
  }]
271
271
  }, {
272
- default: d(() => [l(e(C), {
273
- modelValue: u.value.email,
274
- "onUpdate:modelValue": c[0] || (c[0] = (p) => u.value.email = p),
272
+ default: m(() => [l(e(V), {
273
+ modelValue: r.value.email,
274
+ "onUpdate:modelValue": d[0] || (d[0] = (c) => r.value.email = c),
275
275
  placeholder: "请输入邮箱"
276
276
  }, null, 8, ["modelValue"])]),
277
277
  _: 1
@@ -284,15 +284,15 @@ const Me = /* @__PURE__ */ S({
284
284
  message: "请输入验证码"
285
285
  }]
286
286
  }, {
287
- default: d(() => [w("div", je, [l(e(C), {
288
- modelValue: u.value.userToken,
289
- "onUpdate:modelValue": c[1] || (c[1] = (p) => u.value.userToken = p),
287
+ default: m(() => [w("div", Fe, [l(e(V), {
288
+ modelValue: r.value.userToken,
289
+ "onUpdate:modelValue": d[1] || (d[1] = (c) => r.value.userToken = c),
290
290
  placeholder: "请输入验证码"
291
- }, null, 8, ["modelValue"]), l(X, {
291
+ }, null, 8, ["modelValue"]), l(Q, {
292
292
  ref_key: "SendVerifyCodeRef",
293
- ref: f,
293
+ ref: a,
294
294
  size: s.size,
295
- loading: r.value,
295
+ loading: o.value,
296
296
  style: {
297
297
  "margin-left": "10px"
298
298
  },
@@ -311,9 +311,9 @@ const Me = /* @__PURE__ */ S({
311
311
  message: "密码不能少于10字符"
312
312
  }]
313
313
  }, {
314
- default: d(() => [l(e(C), {
315
- modelValue: u.value.password,
316
- "onUpdate:modelValue": c[2] || (c[2] = (p) => u.value.password = p),
314
+ default: m(() => [l(e(V), {
315
+ modelValue: r.value.password,
316
+ "onUpdate:modelValue": d[2] || (d[2] = (c) => r.value.password = c),
317
317
  placeholder: "请输入密码",
318
318
  type: "password",
319
319
  autocomplete: ""
@@ -330,59 +330,59 @@ const Me = /* @__PURE__ */ S({
330
330
  minLength: 10,
331
331
  message: "确认密码不能少于10字符"
332
332
  }, {
333
- validator: (p, v) => {
334
- p !== u.value.password ? v("两次密码输入不一致,请重新输入") : v();
333
+ validator: (c, v) => {
334
+ c !== r.value.password ? v("两次密码输入不一致,请重新输入") : v();
335
335
  }
336
336
  }]
337
337
  }, {
338
- default: d(() => [l(e(C), {
339
- modelValue: u.value.confirmPassword,
340
- "onUpdate:modelValue": c[3] || (c[3] = (p) => u.value.confirmPassword = p),
338
+ default: m(() => [l(e(V), {
339
+ modelValue: r.value.confirmPassword,
340
+ "onUpdate:modelValue": d[3] || (d[3] = (c) => r.value.confirmPassword = c),
341
341
  placeholder: "请输入确认密码密码",
342
342
  type: "password",
343
343
  autocomplete: ""
344
344
  }, null, 8, ["modelValue"])]),
345
345
  _: 1
346
- }, 8, ["rules"]), w("div", We, [l(e($), {
346
+ }, 8, ["rules"]), w("div", Ge, [l(e(U), {
347
347
  type: "primary",
348
348
  loading: s.loading,
349
349
  long: "",
350
350
  size: s.size,
351
- onClick: n
351
+ onClick: f
352
352
  }, {
353
- default: d(() => c[4] || (c[4] = [z(" 提交 ")])),
353
+ default: m(() => d[4] || (d[4] = [z(" 提交 ")])),
354
354
  _: 1,
355
355
  __: [4]
356
356
  }, 8, ["loading", "size"])])]),
357
357
  _: 1
358
358
  }, 8, ["model", "size"])]));
359
359
  }
360
- }), Ze = /* @__PURE__ */ P(Ke, [["__scopeId", "data-v-1c83f44a"]]), Je = {
360
+ }), Me = /* @__PURE__ */ I(He, [["__scopeId", "data-v-1c83f44a"]]), De = {
361
361
  class: "SwitchSignIn"
362
- }, Qe = /* @__PURE__ */ S({
362
+ }, je = /* @__PURE__ */ k({
363
363
  __name: "AuthkitSwitchSignIn",
364
364
  emits: ["switchSignIn"],
365
365
  setup(i, {
366
- emit: a
366
+ emit: n
367
367
  }) {
368
- const o = a;
368
+ const u = n;
369
369
  function s() {
370
- o("switchSignIn");
370
+ u("switchSignIn");
371
371
  }
372
- return (f, r) => (g(), U("div", Je, [w("span", null, [r[1] || (r[1] = w("span", null, "已经有账号?", -1)), l(e(O), {
372
+ return (a, o) => (g(), P("div", De, [w("span", null, [o[1] || (o[1] = w("span", null, "已经有账号?", -1)), l(e(B), {
373
373
  style: {
374
374
  padding: "0px"
375
375
  },
376
376
  onClick: s
377
377
  }, {
378
- default: d(() => r[0] || (r[0] = [z("去登陆")])),
378
+ default: m(() => o[0] || (o[0] = [z("去登陆")])),
379
379
  _: 1,
380
380
  __: [0]
381
381
  })])]));
382
382
  }
383
- }), ue = /* @__PURE__ */ P(Qe, [["__scopeId", "data-v-fc1d3903"]]), Xe = {
383
+ }), ae = /* @__PURE__ */ I(je, [["__scopeId", "data-v-fc1d3903"]]), We = {
384
384
  class: "ResetPassword"
385
- }, Ye = /* @__PURE__ */ S({
385
+ }, Ke = /* @__PURE__ */ k({
386
386
  __name: "AuthkitResetPassword",
387
387
  props: {
388
388
  size: {
@@ -398,57 +398,57 @@ const Me = /* @__PURE__ */ S({
398
398
  },
399
399
  emits: ["switchSignIn", "submit"],
400
400
  setup(i, {
401
- emit: a
401
+ emit: n
402
402
  }) {
403
- const o = a, s = i;
404
- function f() {
405
- o("switchSignIn");
403
+ const u = n, s = i;
404
+ function a() {
405
+ u("switchSignIn");
406
406
  }
407
- async function r() {
408
- o("submit");
407
+ async function o() {
408
+ u("submit");
409
409
  }
410
- return (t, u) => (g(), U("div", Xe, [l(Ze, {
410
+ return (t, r) => (g(), P("div", We, [l(Me, {
411
411
  loading: i.loading,
412
412
  size: s.size,
413
- onSubmit: r
414
- }, null, 8, ["loading", "size"]), l(ue, {
415
- onSwitchSignIn: f
413
+ onSubmit: o
414
+ }, null, 8, ["loading", "size"]), l(ae, {
415
+ onSwitchSignIn: a
416
416
  })]));
417
417
  }
418
- }), et = /* @__PURE__ */ P(Ye, [["__scopeId", "data-v-d9f5cafa"]]), tt = {
418
+ }), Ze = /* @__PURE__ */ I(Ke, [["__scopeId", "data-v-d9f5cafa"]]), Je = {
419
419
  class: "ServiceAgreementAndPrivacyProtection"
420
- }, it = /* @__PURE__ */ S({
420
+ }, Qe = /* @__PURE__ */ k({
421
421
  __name: "AuthkitServiceAgreementAndPrivacyProtection",
422
422
  emits: ["toUserServiceAgreement", "toPrivacyPolicy"],
423
423
  setup(i, {
424
- emit: a
424
+ emit: n
425
425
  }) {
426
- const o = a;
426
+ const u = n;
427
427
  function s() {
428
- o("toUserServiceAgreement");
428
+ u("toUserServiceAgreement");
429
429
  }
430
- function f() {
431
- o("toPrivacyPolicy");
430
+ function a() {
431
+ u("toPrivacyPolicy");
432
432
  }
433
- return (r, t) => (g(), U("div", tt, [t[2] || (t[2] = w("span", null, " 注册登陆即表示同意", -1)), l(e(O), {
433
+ return (o, t) => (g(), P("div", Je, [t[2] || (t[2] = w("span", null, " 注册登陆即表示同意", -1)), l(e(B), {
434
434
  onClick: s
435
435
  }, {
436
- default: d(() => t[0] || (t[0] = [z("用户服务协议")])),
436
+ default: m(() => t[0] || (t[0] = [z("用户服务协议")])),
437
437
  _: 1,
438
438
  __: [0]
439
- }), t[3] || (t[3] = w("span", null, " 和 ", -1)), l(e(O), {
440
- onClick: f
439
+ }), t[3] || (t[3] = w("span", null, " 和 ", -1)), l(e(B), {
440
+ onClick: a
441
441
  }, {
442
- default: d(() => t[1] || (t[1] = [z("隐私协议")])),
442
+ default: m(() => t[1] || (t[1] = [z("隐私协议")])),
443
443
  _: 1,
444
444
  __: [1]
445
445
  })]));
446
446
  }
447
- }), st = /* @__PURE__ */ P(it, [["__scopeId", "data-v-18e831ec"]]), nt = {
447
+ }), Xe = /* @__PURE__ */ I(Qe, [["__scopeId", "data-v-18e831ec"]]), Ye = {
448
448
  class: "content"
449
- }, at = {
449
+ }, et = {
450
450
  class: "handle"
451
- }, lt = /* @__PURE__ */ S({
451
+ }, tt = /* @__PURE__ */ k({
452
452
  __name: "AuthkitPasswordAuth",
453
453
  props: {
454
454
  size: {
@@ -463,37 +463,37 @@ const Me = /* @__PURE__ */ S({
463
463
  },
464
464
  emits: ["submit"],
465
465
  setup(i, {
466
- emit: a
466
+ emit: n
467
467
  }) {
468
- const o = a, s = i;
469
- async function f(_, n) {
470
- const m = await He({
468
+ const u = n, s = i;
469
+ async function a(_, f) {
470
+ const p = await Oe({
471
471
  password: _
472
472
  });
473
- m || n("密码验证请求出错!");
473
+ p || f("密码验证请求出错!");
474
474
  const {
475
- isValidate: c,
476
- message: p
477
- } = m.data;
478
- c || n(p), n();
475
+ isValidate: d,
476
+ message: c
477
+ } = p.data;
478
+ d || f(c), f();
479
479
  }
480
- const r = h(), t = h({
480
+ const o = h(), t = h({
481
481
  email: void 0,
482
482
  password: void 0
483
483
  });
484
- async function u() {
485
- r.value.validate().then((_) => {
486
- _ || o("submit", t.value);
484
+ async function r() {
485
+ o.value.validate().then((_) => {
486
+ _ || u("submit", t.value);
487
487
  });
488
488
  }
489
- return (_, n) => (g(), U("div", nt, [l(e(B), {
489
+ return (_, f) => (g(), P("div", Ye, [l(e(L), {
490
490
  ref_key: "formRef",
491
- ref: r,
491
+ ref: o,
492
492
  model: t.value,
493
493
  size: s.size,
494
494
  "auto-label-width": ""
495
495
  }, {
496
- default: d(() => [l(e(A), {
496
+ default: m(() => [l(e(A), {
497
497
  field: "email",
498
498
  label: "邮箱",
499
499
  "hide-label": "",
@@ -505,9 +505,9 @@ const Me = /* @__PURE__ */ S({
505
505
  message: "请输入有效的邮箱"
506
506
  }]
507
507
  }, {
508
- default: d(() => [l(e(C), {
508
+ default: m(() => [l(e(V), {
509
509
  modelValue: t.value.email,
510
- "onUpdate:modelValue": n[0] || (n[0] = (m) => t.value.email = m),
510
+ "onUpdate:modelValue": f[0] || (f[0] = (p) => t.value.email = p),
511
511
  placeholder: "请输入邮箱",
512
512
  autocomplete: "email username",
513
513
  type: "email"
@@ -521,69 +521,69 @@ const Me = /* @__PURE__ */ S({
521
521
  required: !0,
522
522
  message: "请输入密码"
523
523
  }, {
524
- validator: f
524
+ validator: a
525
525
  }]
526
526
  }, {
527
- default: d(() => [l(e(C), {
527
+ default: m(() => [l(e(V), {
528
528
  modelValue: t.value.password,
529
- "onUpdate:modelValue": n[1] || (n[1] = (m) => t.value.password = m),
529
+ "onUpdate:modelValue": f[1] || (f[1] = (p) => t.value.password = p),
530
530
  placeholder: "请输入密码",
531
531
  type: "password",
532
532
  autocomplete: "current-password"
533
533
  }, null, 8, ["modelValue"])]),
534
534
  _: 1
535
- }, 8, ["rules"]), w("div", at, [l(e($), {
535
+ }, 8, ["rules"]), w("div", et, [l(e(U), {
536
536
  type: "primary",
537
537
  loading: s.loading,
538
538
  long: "",
539
539
  size: s.size,
540
- onClick: u
540
+ onClick: r
541
541
  }, {
542
- default: d(() => n[2] || (n[2] = [z(" 登陆 ")])),
542
+ default: m(() => f[2] || (f[2] = [z(" 登陆 ")])),
543
543
  _: 1,
544
544
  __: [2]
545
545
  }, 8, ["loading", "size"])])]),
546
546
  _: 1
547
547
  }, 8, ["model", "size"])]));
548
548
  }
549
- }), ot = /* @__PURE__ */ P(lt, [["__scopeId", "data-v-57de2ef6"]]), rt = {
549
+ }), it = /* @__PURE__ */ I(tt, [["__scopeId", "data-v-57de2ef6"]]), st = {
550
550
  class: "SwitchSignUpOrResetPassword"
551
- }, ut = /* @__PURE__ */ S({
551
+ }, nt = /* @__PURE__ */ k({
552
552
  __name: "AuthkitSwitchSignUpOrResetPassword",
553
553
  emits: ["switchSignUp", "switchResetPassword"],
554
554
  setup(i, {
555
- emit: a
555
+ emit: n
556
556
  }) {
557
- const o = a;
557
+ const u = n;
558
558
  function s() {
559
- o("switchSignUp");
559
+ u("switchSignUp");
560
560
  }
561
- function f() {
562
- o("switchResetPassword");
561
+ function a() {
562
+ u("switchResetPassword");
563
563
  }
564
- return (r, t) => (g(), U("div", rt, [w("span", null, [t[1] || (t[1] = w("span", null, " 还没有账户?", -1)), l(e(O), {
564
+ return (o, t) => (g(), P("div", st, [w("span", null, [t[1] || (t[1] = w("span", null, " 还没有账户?", -1)), l(e(B), {
565
565
  style: {
566
566
  padding: "0px"
567
567
  },
568
568
  onClick: s
569
569
  }, {
570
- default: d(() => t[0] || (t[0] = [z("去注册?")])),
570
+ default: m(() => t[0] || (t[0] = [z("去注册?")])),
571
571
  _: 1,
572
572
  __: [0]
573
- })]), l(e(O), {
573
+ })]), l(e(B), {
574
574
  style: {
575
575
  padding: "0px"
576
576
  },
577
- onClick: f
577
+ onClick: a
578
578
  }, {
579
- default: d(() => t[2] || (t[2] = [z(" 忘记密码?")])),
579
+ default: m(() => t[2] || (t[2] = [z(" 忘记密码?")])),
580
580
  _: 1,
581
581
  __: [2]
582
582
  })]));
583
583
  }
584
- }), dt = /* @__PURE__ */ P(ut, [["__scopeId", "data-v-14e3aab2"]]), mt = {
584
+ }), lt = /* @__PURE__ */ I(nt, [["__scopeId", "data-v-14e3aab2"]]), at = {
585
585
  class: "SignIn"
586
- }, ct = /* @__PURE__ */ S({
586
+ }, ot = /* @__PURE__ */ k({
587
587
  __name: "AuthkitSignIn",
588
588
  props: {
589
589
  size: {
@@ -598,36 +598,36 @@ const Me = /* @__PURE__ */ S({
598
598
  },
599
599
  emits: ["submit", "switchSignUp", "switchResetPassword"],
600
600
  setup(i, {
601
- emit: a
601
+ emit: n
602
602
  }) {
603
- const o = a, s = i, f = _e(), r = R(() => !!f.OAuth);
603
+ const u = n, s = i, a = fe(), o = q(() => !!a.OAuth);
604
604
  function t() {
605
- o("switchSignUp");
605
+ u("switchSignUp");
606
606
  }
607
- function u() {
608
- o("switchResetPassword");
607
+ function r() {
608
+ u("switchResetPassword");
609
609
  }
610
- async function _(n) {
611
- o("submit", n);
610
+ async function _(f) {
611
+ u("submit", f);
612
612
  }
613
- return (n, m) => (g(), U("div", mt, [k("", !0), l(ot, {
613
+ return (f, p) => (g(), P("div", at, [S("", !0), l(it, {
614
614
  loading: s.loading,
615
615
  size: s.size,
616
616
  onSubmit: _
617
- }, null, 8, ["loading", "size"]), r.value ? ne(n.$slots, "OAuth", {
617
+ }, null, 8, ["loading", "size"]), o.value ? te(f.$slots, "OAuth", {
618
618
  key: 1
619
- }, void 0, !0) : k("", !0), l(dt, {
619
+ }, void 0, !0) : S("", !0), l(lt, {
620
620
  onSwitchSignUp: t,
621
- onSwitchResetPassword: u
621
+ onSwitchResetPassword: r
622
622
  })]));
623
623
  }
624
- }), ft = /* @__PURE__ */ P(ct, [["__scopeId", "data-v-07112823"]]), pt = {
624
+ }), rt = /* @__PURE__ */ I(ot, [["__scopeId", "data-v-07112823"]]), ut = {
625
625
  class: "content"
626
- }, vt = {
626
+ }, dt = {
627
627
  class: "sendVerifyCodeItem"
628
- }, gt = {
628
+ }, mt = {
629
629
  class: "handle"
630
- }, _t = /* @__PURE__ */ S({
630
+ }, ct = /* @__PURE__ */ k({
631
631
  __name: "AuthkitEmailUpdate",
632
632
  props: {
633
633
  size: {
@@ -642,9 +642,9 @@ const Me = /* @__PURE__ */ S({
642
642
  },
643
643
  emits: ["submit"],
644
644
  setup(i, {
645
- emit: a
645
+ emit: n
646
646
  }) {
647
- const o = a, s = i, f = h(), r = h(!1), t = h(), u = h({
647
+ const u = n, s = i, a = h(), o = h(!1), t = h(), r = h({
648
648
  email: void 0,
649
649
  userToken: void 0,
650
650
  emailVerifyId: void 0,
@@ -653,31 +653,31 @@ const Me = /* @__PURE__ */ S({
653
653
  referrerId: void 0
654
654
  });
655
655
  async function _() {
656
- t.value.validateField(["email"]).then((m) => {
657
- m || (r.value = !0, Q({
658
- email: u.value.email
656
+ t.value.validateField(["email"]).then((p) => {
657
+ p || (o.value = !0, J({
658
+ email: r.value.email
659
659
  }).then(({
660
- data: c
660
+ data: d
661
661
  }) => {
662
- u.value.emailVerifyId = c.emailVerifyId, r.value = !1, f.value.startCountFn();
662
+ r.value.emailVerifyId = d.emailVerifyId, o.value = !1, a.value.startCountFn();
663
663
  }).catch(() => {
664
- r.value = !1;
664
+ o.value = !1;
665
665
  }));
666
666
  });
667
667
  }
668
- async function n() {
669
- t.value.validate().then((m) => {
670
- m || o("submit", u.value);
668
+ async function f() {
669
+ t.value.validate().then((p) => {
670
+ p || u("submit", r.value);
671
671
  });
672
672
  }
673
- return (m, c) => (g(), U("div", pt, [l(e(B), {
673
+ return (p, d) => (g(), P("div", ut, [l(e(L), {
674
674
  ref_key: "formRef",
675
675
  ref: t,
676
- model: u.value,
676
+ model: r.value,
677
677
  size: s.size,
678
678
  "auto-label-width": ""
679
679
  }, {
680
- default: d(() => [l(e(A), {
680
+ default: m(() => [l(e(A), {
681
681
  field: "email",
682
682
  label: "邮箱",
683
683
  "hide-label": "",
@@ -689,9 +689,9 @@ const Me = /* @__PURE__ */ S({
689
689
  message: "请输入有效的邮箱"
690
690
  }]
691
691
  }, {
692
- default: d(() => [l(e(C), {
693
- modelValue: u.value.email,
694
- "onUpdate:modelValue": c[0] || (c[0] = (p) => u.value.email = p),
692
+ default: m(() => [l(e(V), {
693
+ modelValue: r.value.email,
694
+ "onUpdate:modelValue": d[0] || (d[0] = (c) => r.value.email = c),
695
695
  placeholder: "请输入邮箱",
696
696
  autocomplete: "email username",
697
697
  type: "email"
@@ -706,16 +706,16 @@ const Me = /* @__PURE__ */ S({
706
706
  message: "请输入验证码"
707
707
  }]
708
708
  }, {
709
- default: d(() => [w("div", vt, [l(e(C), {
710
- modelValue: u.value.userToken,
711
- "onUpdate:modelValue": c[1] || (c[1] = (p) => u.value.userToken = p),
709
+ default: m(() => [w("div", dt, [l(e(V), {
710
+ modelValue: r.value.userToken,
711
+ "onUpdate:modelValue": d[1] || (d[1] = (c) => r.value.userToken = c),
712
712
  placeholder: "请输入验证码",
713
713
  autocomplete: "one-time-code"
714
- }, null, 8, ["modelValue"]), l(X, {
714
+ }, null, 8, ["modelValue"]), l(Q, {
715
715
  ref_key: "SendVerifyCodeRef",
716
- ref: f,
716
+ ref: a,
717
717
  size: s.size,
718
- loading: r.value,
718
+ loading: o.value,
719
719
  style: {
720
720
  "margin-left": "10px"
721
721
  },
@@ -734,9 +734,9 @@ const Me = /* @__PURE__ */ S({
734
734
  message: "密码不能少于10字符"
735
735
  }]
736
736
  }, {
737
- default: d(() => [l(e(C), {
738
- modelValue: u.value.password,
739
- "onUpdate:modelValue": c[2] || (c[2] = (p) => u.value.password = p),
737
+ default: m(() => [l(e(V), {
738
+ modelValue: r.value.password,
739
+ "onUpdate:modelValue": d[2] || (d[2] = (c) => r.value.password = c),
740
740
  placeholder: "请输入密码",
741
741
  type: "password",
742
742
  autocomplete: "new-password"
@@ -753,14 +753,14 @@ const Me = /* @__PURE__ */ S({
753
753
  minLength: 10,
754
754
  message: "确认密码不能少于10字符"
755
755
  }, {
756
- validator: (p, v) => {
757
- p !== u.value.password ? v("两次密码输入不一致,请重新输入") : v();
756
+ validator: (c, v) => {
757
+ c !== r.value.password ? v("两次密码输入不一致,请重新输入") : v();
758
758
  }
759
759
  }]
760
760
  }, {
761
- default: d(() => [l(e(C), {
762
- modelValue: u.value.confirmPassword,
763
- "onUpdate:modelValue": c[3] || (c[3] = (p) => u.value.confirmPassword = p),
761
+ default: m(() => [l(e(V), {
762
+ modelValue: r.value.confirmPassword,
763
+ "onUpdate:modelValue": d[3] || (d[3] = (c) => r.value.confirmPassword = c),
764
764
  placeholder: "请输入确认密码密码",
765
765
  type: "password",
766
766
  autocomplete: "new-password"
@@ -775,30 +775,30 @@ const Me = /* @__PURE__ */ S({
775
775
  message: "请输入邀请人ID"
776
776
  }]
777
777
  }, {
778
- default: d(() => [l(e(C), {
779
- modelValue: u.value.referrerId,
780
- "onUpdate:modelValue": c[4] || (c[4] = (p) => u.value.referrerId = p),
778
+ default: m(() => [l(e(V), {
779
+ modelValue: r.value.referrerId,
780
+ "onUpdate:modelValue": d[4] || (d[4] = (c) => r.value.referrerId = c),
781
781
  placeholder: "邀请人ID(可选)",
782
782
  autocomplete: "off"
783
783
  }, null, 8, ["modelValue"])]),
784
784
  _: 1
785
- }), w("div", gt, [l(e($), {
785
+ }), w("div", mt, [l(e(U), {
786
786
  type: "primary",
787
787
  loading: s.loading,
788
788
  long: "",
789
789
  size: s.size,
790
- onClick: n
790
+ onClick: f
791
791
  }, {
792
- default: d(() => c[5] || (c[5] = [z(" 提交 ")])),
792
+ default: m(() => d[5] || (d[5] = [z(" 提交 ")])),
793
793
  _: 1,
794
794
  __: [5]
795
795
  }, 8, ["loading", "size"])])]),
796
796
  _: 1
797
797
  }, 8, ["model", "size"])]));
798
798
  }
799
- }), de = /* @__PURE__ */ P(_t, [["__scopeId", "data-v-5b701953"]]), ht = {
799
+ }), oe = /* @__PURE__ */ I(ct, [["__scopeId", "data-v-5b701953"]]), ft = {
800
800
  class: "SignUp"
801
- }, yt = /* @__PURE__ */ S({
801
+ }, pt = /* @__PURE__ */ k({
802
802
  __name: "AuthkitSignUp",
803
803
  props: {
804
804
  size: {
@@ -813,24 +813,24 @@ const Me = /* @__PURE__ */ S({
813
813
  },
814
814
  emits: ["switchSignIn", "submit"],
815
815
  setup(i, {
816
- emit: a
816
+ emit: n
817
817
  }) {
818
- const o = a, s = i;
819
- function f() {
820
- o("switchSignIn");
818
+ const u = n, s = i;
819
+ function a() {
820
+ u("switchSignIn");
821
821
  }
822
- async function r(t) {
823
- o("submit", t);
822
+ async function o(t) {
823
+ u("submit", t);
824
824
  }
825
- return (t, u) => (g(), U("div", ht, [l(de, {
825
+ return (t, r) => (g(), P("div", ft, [l(oe, {
826
826
  size: s.size,
827
827
  loading: i.loading,
828
- onSubmit: r
829
- }, null, 8, ["size", "loading"]), l(ue, {
830
- onSwitchSignIn: f
828
+ onSubmit: o
829
+ }, null, 8, ["size", "loading"]), l(ae, {
830
+ onSwitchSignIn: a
831
831
  })]));
832
832
  }
833
- }), bt = /* @__PURE__ */ P(yt, [["__scopeId", "data-v-bb136d90"]]), wt = ["src"], zt = /* @__PURE__ */ S({
833
+ }), vt = /* @__PURE__ */ I(pt, [["__scopeId", "data-v-bb136d90"]]), gt = ["src"], _t = /* @__PURE__ */ k({
834
834
  __name: "AuthkitAuthTitle",
835
835
  props: {
836
836
  size: {
@@ -850,31 +850,31 @@ const Me = /* @__PURE__ */ S({
850
850
  }
851
851
  },
852
852
  setup(i) {
853
- const a = i, o = `${a.size}px`, s = `${a.fontSize}px`, f = `${a.lineHeight}px`, {
854
- currentView: r
855
- } = K(), {
853
+ const n = i, u = `${n.size}px`, s = `${n.fontSize}px`, a = `${n.lineHeight}px`, {
854
+ currentView: o
855
+ } = W(), {
856
856
  appsData: t
857
- } = J(), u = R(() => r.value === "signIn" ? `${t.value.name}登录` : r.value === "signUp" ? `${t.value.name}账号注册` : r.value === "resetPassword" ? `${t.value.name}密码重置` : "");
858
- return (_, n) => (g(), U("div", {
857
+ } = Z(), r = q(() => o.value === "signIn" ? `${t.value.name}登录` : o.value === "signUp" ? `${t.value.name}账号注册` : o.value === "resetPassword" ? `${t.value.name}密码重置` : "");
858
+ return (_, f) => (g(), P("div", {
859
859
  class: "Title",
860
- style: j({
860
+ style: D({
861
861
  fontSize: s,
862
- lineHeight: f
862
+ lineHeight: a
863
863
  })
864
- }, [e(t).applicationLogoUrl ? (g(), U("img", {
864
+ }, [e(t).applicationLogoUrl ? (g(), P("img", {
865
865
  key: 0,
866
866
  src: e(t).applicationLogoUrl,
867
867
  srcset: "",
868
- style: j({
869
- width: o
868
+ style: D({
869
+ width: u
870
870
  })
871
- }, null, 12, wt)) : k("", !0), w("span", null, L(u.value), 1), ne(_.$slots, "default", {}, void 0, !0)], 4));
871
+ }, null, 12, gt)) : S("", !0), w("span", null, T(r.value), 1), te(_.$slots, "default", {}, void 0, !0)], 4));
872
872
  }
873
- }), me = /* @__PURE__ */ P(zt, [["__scopeId", "data-v-8255764a"]]), kt = {
873
+ }), re = /* @__PURE__ */ I(_t, [["__scopeId", "data-v-8255764a"]]), ht = {
874
874
  class: "Auth"
875
- }, St = {
875
+ }, yt = {
876
876
  class: "body"
877
- }, It = /* @__PURE__ */ S({
877
+ }, wt = /* @__PURE__ */ k({
878
878
  __name: "AuthkitAuth",
879
879
  props: {
880
880
  size: {
@@ -888,62 +888,62 @@ const Me = /* @__PURE__ */ S({
888
888
  },
889
889
  emits: ["toPrivacyPolicy", "toUserServiceAgreement"],
890
890
  setup(i, {
891
- emit: a
891
+ emit: n
892
892
  }) {
893
- const o = i, s = a, {
894
- signInSubmit: f,
895
- signUpSubmit: r,
893
+ const u = i, s = n, {
894
+ signInSubmit: a,
895
+ signUpSubmit: o,
896
896
  resetPasswordSubmit: t,
897
- currentView: u,
897
+ currentView: r,
898
898
  authSignInLoading: _,
899
- authSignUpLoading: n,
900
- resetPasswordLoading: m,
901
- switchSignUp: c,
902
- switchResetPassword: p,
899
+ authSignUpLoading: f,
900
+ resetPasswordLoading: p,
901
+ switchSignUp: d,
902
+ switchResetPassword: c,
903
903
  switchSignIn: v
904
- } = K(), {
904
+ } = W(), {
905
905
  appsAuthPageInfoApi: b
906
- } = J();
907
- function q() {
906
+ } = Z();
907
+ function C() {
908
908
  s("toPrivacyPolicy");
909
909
  }
910
- function V() {
910
+ function $() {
911
911
  s("toUserServiceAgreement");
912
912
  }
913
- return b(), (I, x) => (g(), U("div", kt, [i.showTitle ? (g(), y(me, {
913
+ return b(), (x, E) => (g(), P("div", ht, [i.showTitle ? (g(), y(re, {
914
914
  key: 0,
915
915
  size: 32,
916
916
  "font-size": 20
917
- })) : k("", !0), w("div", St, [e(u) === "signIn" ? (g(), y(ft, {
917
+ })) : S("", !0), w("div", yt, [e(r) === "signIn" ? (g(), y(rt, {
918
918
  key: 0,
919
- size: o.size,
919
+ size: u.size,
920
920
  loading: e(_),
921
- onSwitchSignUp: e(c),
922
- onSwitchResetPassword: e(p),
923
- onSubmit: e(f)
921
+ onSwitchSignUp: e(d),
922
+ onSwitchResetPassword: e(c),
923
+ onSubmit: e(a)
924
924
  }, {
925
- OAuth: d(() => [l(Fe, {
926
- size: o.size
925
+ OAuth: m(() => [l(Le, {
926
+ size: u.size
927
927
  }, null, 8, ["size"])]),
928
928
  _: 1
929
- }, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword", "onSubmit"])) : e(u) === "signUp" ? (g(), y(bt, {
929
+ }, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword", "onSubmit"])) : e(r) === "signUp" ? (g(), y(vt, {
930
930
  key: 1,
931
- size: o.size,
932
- loading: e(n),
931
+ size: u.size,
932
+ loading: e(f),
933
933
  onSwitchSignIn: e(v),
934
- onSubmit: e(r)
935
- }, null, 8, ["size", "loading", "onSwitchSignIn", "onSubmit"])) : e(u) === "resetPassword" ? (g(), y(et, {
934
+ onSubmit: e(o)
935
+ }, null, 8, ["size", "loading", "onSwitchSignIn", "onSubmit"])) : e(r) === "resetPassword" ? (g(), y(Ze, {
936
936
  key: 2,
937
- size: o.size,
938
- loading: e(m),
937
+ size: u.size,
938
+ loading: e(p),
939
939
  onSwitchSignIn: e(v),
940
940
  onSubmit: e(t)
941
- }, null, 8, ["size", "loading", "onSwitchSignIn", "onSubmit"])) : k("", !0), l(st, {
942
- onToPrivacyPolicy: q,
943
- onToUserServiceAgreement: V
941
+ }, null, 8, ["size", "loading", "onSwitchSignIn", "onSubmit"])) : S("", !0), l(Xe, {
942
+ onToPrivacyPolicy: C,
943
+ onToUserServiceAgreement: $
944
944
  })])]));
945
945
  }
946
- }), At = /* @__PURE__ */ P(It, [["__scopeId", "data-v-865d3320"]]), Pt = /* @__PURE__ */ S({
946
+ }), bt = /* @__PURE__ */ I(wt, [["__scopeId", "data-v-865d3320"]]), zt = /* @__PURE__ */ k({
947
947
  __name: "AuthkitAuthModal",
948
948
  props: {
949
949
  size: {
@@ -957,24 +957,24 @@ const Me = /* @__PURE__ */ S({
957
957
  },
958
958
  emits: ["confirm", "close", "toPrivacyPolicy", "toUserServiceAgreement"],
959
959
  setup(i, {
960
- emit: a
960
+ emit: n
961
961
  }) {
962
962
  const {
963
- addSignInCallback: o
964
- } = K(), {
963
+ addSignInCallback: u
964
+ } = W(), {
965
965
  show: s
966
- } = Ie(), f = i, r = a;
966
+ } = be(), a = i, o = n;
967
967
  function t(_) {
968
968
  _(!0);
969
969
  }
970
- function u() {
971
- s.value = !1, r("close");
970
+ function r() {
971
+ s.value = !1, o("close");
972
972
  }
973
- return o(() => {
973
+ return u(() => {
974
974
  s.value = !1;
975
- }), (_, n) => (g(), y(e(le), {
975
+ }), (_, f) => (g(), y(e(se), {
976
976
  visible: e(s),
977
- "onUpdate:visible": n[0] || (n[0] = (m) => ae(s) ? s.value = m : null),
977
+ "onUpdate:visible": f[0] || (f[0] = (p) => ie(s) ? s.value = p : null),
978
978
  footer: !1,
979
979
  "mask-closable": !1,
980
980
  "title-align": "center",
@@ -982,17 +982,17 @@ const Me = /* @__PURE__ */ S({
982
982
  width: "auto",
983
983
  "modal-class": "SignInModalClass",
984
984
  onBeforeOk: t,
985
- onClose: u
985
+ onClose: r
986
986
  }, {
987
- title: d(() => [l(me)]),
988
- default: d(() => [l(At, {
987
+ title: m(() => [l(re)]),
988
+ default: m(() => [l(bt, {
989
989
  "show-title": !1,
990
- size: f.size
990
+ size: a.size
991
991
  }, null, 8, ["size"])]),
992
992
  _: 1
993
993
  }, 8, ["visible"]));
994
994
  }
995
- }), pi = /* @__PURE__ */ P(Pt, [["__scopeId", "data-v-a22ae615"]]), Vt = S({
995
+ }), ri = /* @__PURE__ */ I(zt, [["__scopeId", "data-v-a22ae615"]]), St = k({
996
996
  name: "IconCamera",
997
997
  props: {
998
998
  size: {
@@ -1019,49 +1019,49 @@ const Me = /* @__PURE__ */ S({
1019
1019
  click: (i) => !0
1020
1020
  },
1021
1021
  setup(i, {
1022
- emit: a
1022
+ emit: n
1023
1023
  }) {
1024
- const o = Ce("icon"), s = R(() => [o, `${o}-camera`, {
1025
- [`${o}-spin`]: i.spin
1026
- }]), f = R(() => {
1024
+ const u = Ae("icon"), s = q(() => [u, `${u}-camera`, {
1025
+ [`${u}-spin`]: i.spin
1026
+ }]), a = q(() => {
1027
1027
  const t = {};
1028
- return i.size && (t.fontSize = $e(i.size) ? `${i.size}px` : i.size), i.rotate && (t.transform = `rotate(${i.rotate}deg)`), t;
1028
+ return i.size && (t.fontSize = Ie(i.size) ? `${i.size}px` : i.size), i.rotate && (t.transform = `rotate(${i.rotate}deg)`), t;
1029
1029
  });
1030
1030
  return {
1031
1031
  cls: s,
1032
- innerStyle: f,
1032
+ innerStyle: a,
1033
1033
  onClick: (t) => {
1034
- a("click", t);
1034
+ n("click", t);
1035
1035
  }
1036
1036
  };
1037
1037
  }
1038
- }), Ut = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1039
- function Ct(i, a, o, s, f, r) {
1040
- return g(), U("svg", {
1038
+ }), kt = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
1039
+ function At(i, n, u, s, a, o) {
1040
+ return g(), P("svg", {
1041
1041
  viewBox: "0 0 48 48",
1042
1042
  fill: "none",
1043
1043
  xmlns: "http://www.w3.org/2000/svg",
1044
1044
  stroke: "currentColor",
1045
- class: he(i.cls),
1046
- style: j(i.innerStyle),
1045
+ class: pe(i.cls),
1046
+ style: D(i.innerStyle),
1047
1047
  "stroke-width": i.strokeWidth,
1048
1048
  "stroke-linecap": i.strokeLinecap,
1049
1049
  "stroke-linejoin": i.strokeLinejoin,
1050
- onClick: a[0] || (a[0] = (...t) => i.onClick && i.onClick(...t))
1051
- }, a[1] || (a[1] = [w("path", {
1050
+ onClick: n[0] || (n[0] = (...t) => i.onClick && i.onClick(...t))
1051
+ }, n[1] || (n[1] = [w("path", {
1052
1052
  d: "m33 12-1.862-3.724A.5.5 0 0 0 30.691 8H17.309a.5.5 0 0 0-.447.276L15 12m16 14a7 7 0 1 1-14 0 7 7 0 0 1 14 0ZM7 40h34a1 1 0 0 0 1-1V13a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1Z"
1053
- }, null, -1)]), 14, Ut);
1053
+ }, null, -1)]), 14, kt);
1054
1054
  }
1055
- var D = /* @__PURE__ */ Ue(Vt, [["render", Ct]]);
1056
- const $t = Object.assign(D, {
1057
- install: (i, a) => {
1058
- var o;
1059
- const s = (o = a == null ? void 0 : a.iconPrefix) != null ? o : "";
1060
- i.component(s + D.name, D);
1055
+ var M = /* @__PURE__ */ ke(St, [["render", At]]);
1056
+ const It = Object.assign(M, {
1057
+ install: (i, n) => {
1058
+ var u;
1059
+ const s = (u = n == null ? void 0 : n.iconPrefix) != null ? u : "";
1060
+ i.component(s + M.name, M);
1061
1061
  }
1062
- }), xt = {
1062
+ }), Pt = {
1063
1063
  class: "handle"
1064
- }, qt = /* @__PURE__ */ S({
1064
+ }, Vt = /* @__PURE__ */ k({
1065
1065
  __name: "AuthkitPersonalInformation",
1066
1066
  props: {
1067
1067
  size: {
@@ -1071,102 +1071,90 @@ const $t = Object.assign(D, {
1071
1071
  },
1072
1072
  emits: ["submit"],
1073
1073
  setup(i, {
1074
- emit: a
1074
+ emit: n
1075
1075
  }) {
1076
- const {
1077
- appId: o,
1078
- bucketId: s,
1079
- prefixUrl: f,
1080
- bucket: r,
1081
- region: t
1082
- } = Ae(), u = a, _ = i, n = h({
1076
+ const u = n, s = i, a = h({
1083
1077
  id: void 0,
1084
1078
  nickname: "",
1085
1079
  description: "",
1086
1080
  avatar: "",
1087
1081
  avatarUrl: ""
1088
- }), m = h(!1), c = h(), p = h(!1);
1089
- function v() {
1090
- p.value = !0, we().then(({
1091
- data: V
1082
+ }), o = h(!1), t = h(), r = h(!1);
1083
+ function _() {
1084
+ r.value = !0, _e().then(({
1085
+ data: d
1092
1086
  }) => {
1093
- p.value = !1, n.value.id = V.id, n.value.nickname = V.nickname, n.value.description = V.description, n.value.avatar = V.avatar, n.value.avatarUrl = V.avatarUrl;
1087
+ r.value = !1, a.value.id = d.id, a.value.nickname = d.nickname, a.value.description = d.description, a.value.avatar = d.avatar, a.value.avatarUrl = d.avatarUrl;
1094
1088
  }).catch(() => {
1095
- p.value = !1;
1089
+ r.value = !1;
1096
1090
  });
1097
1091
  }
1098
- function b() {
1099
- c.value.validate().then((V) => {
1100
- if (!V) {
1101
- p.value = !0;
1102
- const I = {
1103
- id: n.value.id,
1104
- nickname: n.value.nickname,
1105
- description: n.value.description,
1106
- avatar: n.value.avatar
1092
+ function f() {
1093
+ t.value.validate().then((d) => {
1094
+ if (!d) {
1095
+ r.value = !0;
1096
+ const c = {
1097
+ id: a.value.id,
1098
+ nickname: a.value.nickname,
1099
+ description: a.value.description,
1100
+ avatar: a.value.avatar
1107
1101
  };
1108
- ie(I).then(({
1109
- data: x
1102
+ Y(c).then(({
1103
+ data: v
1110
1104
  }) => {
1111
- p.value = !1, E.success("更新成功"), n.value.avatarUrl = x.avatarUrl, u("submit");
1105
+ r.value = !1, O.success("更新成功"), a.value.avatarUrl = v.avatarUrl, u("submit");
1112
1106
  }).catch(() => {
1113
- p.value = !1;
1107
+ r.value = !1;
1114
1108
  });
1115
1109
  }
1116
1110
  });
1117
1111
  }
1118
- v();
1119
- const q = () => {
1112
+ _();
1113
+ const p = () => {
1120
1114
  const {
1121
- uploadFile: V
1122
- } = Ve({
1123
- appId: o.value,
1124
- bucketId: s.value,
1125
- baseURL: f.value,
1126
- bucket: r.value,
1127
- region: t.value
1128
- }), I = document.createElement("input");
1129
- I.type = "file", I.accept = "image/*", I.style.display = "none", document.body.append(I), I.addEventListener("change", async (x) => {
1130
- var te;
1131
- const ee = (te = x.target.files) == null ? void 0 : te[0];
1132
- if (ee) {
1133
- m.value = !0;
1115
+ uploadFile: d
1116
+ } = Se(), c = document.createElement("input");
1117
+ c.type = "file", c.accept = "image/*", c.style.display = "none", document.body.append(c), c.addEventListener("change", async (v) => {
1118
+ var $;
1119
+ const C = ($ = v.target.files) == null ? void 0 : $[0];
1120
+ if (C) {
1121
+ o.value = !0;
1134
1122
  try {
1135
- V({
1136
- file: ee,
1137
- onFileFinish(H, Zt, fe) {
1138
- m.value = !0;
1139
- const pe = {
1140
- id: n.value.id,
1141
- nickname: n.value.nickname,
1142
- description: n.value.description,
1143
- avatar: fe.Key
1123
+ d({
1124
+ file: C,
1125
+ onFileFinish(x, E, N) {
1126
+ o.value = !0;
1127
+ const de = {
1128
+ id: a.value.id,
1129
+ nickname: a.value.nickname,
1130
+ description: a.value.description,
1131
+ avatar: N.Key
1144
1132
  };
1145
- ie(pe).then(() => {
1146
- m.value = !1, E.success("更新成功"), v(), u("submit");
1133
+ Y(de).then(() => {
1134
+ o.value = !1, O.success("更新成功"), _(), u("submit");
1147
1135
  }).catch(() => {
1148
- m.value = !1;
1136
+ o.value = !1;
1149
1137
  });
1150
1138
  },
1151
- onError(H) {
1152
- console.error("上传图片失败"), m.value = !1;
1139
+ onError(x) {
1140
+ console.error("上传图片失败"), o.value = !1;
1153
1141
  }
1154
1142
  });
1155
- } catch (H) {
1156
- console.error("上传图片失败", H), m.value = !1;
1143
+ } catch (x) {
1144
+ console.error("上传图片失败", x), o.value = !1;
1157
1145
  }
1158
1146
  }
1159
- I.remove();
1160
- }), I.click();
1147
+ c.remove();
1148
+ }), c.click();
1161
1149
  };
1162
- return (V, I) => (g(), y(e(B), {
1150
+ return (d, c) => (g(), y(e(L), {
1163
1151
  ref_key: "formRef",
1164
- ref: c,
1165
- model: n.value,
1152
+ ref: t,
1153
+ model: a.value,
1166
1154
  "auto-label-width": "",
1167
- size: _.size
1155
+ size: s.size
1168
1156
  }, {
1169
- default: d(() => [l(e(A), {
1157
+ default: m(() => [l(e(A), {
1170
1158
  field: "avatar",
1171
1159
  label: "头像",
1172
1160
  rules: [{
@@ -1174,15 +1162,15 @@ const $t = Object.assign(D, {
1174
1162
  message: "请上传头像"
1175
1163
  }]
1176
1164
  }, {
1177
- default: d(() => [l(e(oe), {
1178
- "image-url": n.value.avatarUrl,
1165
+ default: m(() => [l(e(ne), {
1166
+ "image-url": a.value.avatarUrl,
1179
1167
  size: 42,
1180
1168
  "trigger-icon-style": {
1181
1169
  color: "#3491FA"
1182
1170
  },
1183
- onClick: q
1171
+ onClick: p
1184
1172
  }, {
1185
- "trigger-icon": d(() => [l(e($t))]),
1173
+ "trigger-icon": m(() => [l(e(It))]),
1186
1174
  _: 1
1187
1175
  }, 8, ["image-url"])]),
1188
1176
  _: 1
@@ -1194,9 +1182,9 @@ const $t = Object.assign(D, {
1194
1182
  message: "请输入昵称"
1195
1183
  }]
1196
1184
  }, {
1197
- default: d(() => [l(e(C), {
1198
- modelValue: n.value.nickname,
1199
- "onUpdate:modelValue": I[0] || (I[0] = (x) => n.value.nickname = x),
1185
+ default: m(() => [l(e(V), {
1186
+ modelValue: a.value.nickname,
1187
+ "onUpdate:modelValue": c[0] || (c[0] = (v) => a.value.nickname = v),
1200
1188
  placeholder: "请输入昵称"
1201
1189
  }, null, 8, ["modelValue"])]),
1202
1190
  _: 1
@@ -1208,9 +1196,9 @@ const $t = Object.assign(D, {
1208
1196
  message: "请输入描述"
1209
1197
  }]
1210
1198
  }, {
1211
- default: d(() => [l(e(be), {
1212
- modelValue: n.value.description,
1213
- "onUpdate:modelValue": I[1] || (I[1] = (x) => n.value.description = x),
1199
+ default: m(() => [l(e(ge), {
1200
+ modelValue: a.value.description,
1201
+ "onUpdate:modelValue": c[1] || (c[1] = (v) => a.value.description = v),
1214
1202
  placeholder: "请输入描述",
1215
1203
  "allow-clear": "",
1216
1204
  "auto-size": {
@@ -1223,12 +1211,12 @@ const $t = Object.assign(D, {
1223
1211
  label: "",
1224
1212
  rules: []
1225
1213
  }, {
1226
- default: d(() => [w("div", xt, [l(e($), {
1214
+ default: m(() => [w("div", Pt, [l(e(U), {
1227
1215
  type: "primary",
1228
- loading: p.value,
1229
- onClick: b
1216
+ loading: r.value,
1217
+ onClick: f
1230
1218
  }, {
1231
- default: d(() => I[2] || (I[2] = [z(" 提交 ")])),
1219
+ default: m(() => c[2] || (c[2] = [z(" 提交 ")])),
1232
1220
  _: 1,
1233
1221
  __: [2]
1234
1222
  }, 8, ["loading"])])]),
@@ -1237,20 +1225,20 @@ const $t = Object.assign(D, {
1237
1225
  _: 1
1238
1226
  }, 8, ["model", "size"]));
1239
1227
  }
1240
- }), Rt = /* @__PURE__ */ P(qt, [["__scopeId", "data-v-5a1cf51b"]]);
1241
- function ce(i, a = 3) {
1242
- const o = i.indexOf("@");
1243
- if (o > 1) {
1244
- const s = i.slice(0, a), f = i.slice(o);
1245
- return s + "***" + f;
1228
+ }), Ut = /* @__PURE__ */ I(Vt, [["__scopeId", "data-v-a4dec37f"]]);
1229
+ function ue(i, n = 3) {
1230
+ const u = i.indexOf("@");
1231
+ if (u > 1) {
1232
+ const s = i.slice(0, n), a = i.slice(u);
1233
+ return s + "***" + a;
1246
1234
  }
1247
1235
  return i;
1248
1236
  }
1249
- const Tt = {
1237
+ const Ct = {
1250
1238
  class: "sendVerifyCodeItem"
1251
- }, Lt = {
1239
+ }, $t = {
1252
1240
  class: "handle"
1253
- }, Bt = /* @__PURE__ */ S({
1241
+ }, xt = /* @__PURE__ */ k({
1254
1242
  __name: "AuthkitEmailVerify",
1255
1243
  props: {
1256
1244
  email: {
@@ -1265,48 +1253,48 @@ const Tt = {
1265
1253
  },
1266
1254
  emits: ["next"],
1267
1255
  setup(i, {
1268
- emit: a
1256
+ emit: n
1269
1257
  }) {
1270
- const o = a, s = i, f = R(() => ce(s.email)), r = h(), t = h(!1), u = h(!1), _ = h(), n = h({
1258
+ const u = n, s = i, a = q(() => ue(s.email)), o = h(), t = h(!1), r = h(!1), _ = h(), f = h({
1271
1259
  userToken: void 0,
1272
1260
  emailVerifyId: void 0
1273
1261
  });
1274
- async function m() {
1275
- t.value = !0, Q({
1262
+ async function p() {
1263
+ t.value = !0, J({
1276
1264
  email: s.email
1277
1265
  }).then(({
1278
- data: p
1266
+ data: c
1279
1267
  }) => {
1280
- n.value.emailVerifyId = p.emailVerifyId, t.value = !1, r.value.startCountFn();
1268
+ f.value.emailVerifyId = c.emailVerifyId, t.value = !1, o.value.startCountFn();
1281
1269
  }).catch(() => {
1282
1270
  t.value = !1;
1283
1271
  });
1284
1272
  }
1285
- async function c() {
1286
- _.value.validate(["userToken"]).then((p) => {
1287
- if (!p) {
1288
- u.value = !0;
1273
+ async function d() {
1274
+ _.value.validate(["userToken"]).then((c) => {
1275
+ if (!c) {
1276
+ r.value = !0;
1289
1277
  const v = {
1290
1278
  email: s.email,
1291
- userToken: n.value.userToken,
1292
- emailVerifyId: n.value.emailVerifyId
1279
+ userToken: f.value.userToken,
1280
+ emailVerifyId: f.value.emailVerifyId
1293
1281
  };
1294
- Ge(v).then(() => {
1295
- u.value = !1, o("next");
1282
+ Be(v).then(() => {
1283
+ r.value = !1, u("next");
1296
1284
  }).catch(() => {
1297
- u.value = !1;
1285
+ r.value = !1;
1298
1286
  });
1299
1287
  }
1300
1288
  });
1301
1289
  }
1302
- return (p, v) => (g(), y(e(B), {
1290
+ return (c, v) => (g(), y(e(L), {
1303
1291
  ref_key: "formRef",
1304
1292
  ref: _,
1305
- model: n.value,
1293
+ model: f.value,
1306
1294
  "auto-label-width": "",
1307
1295
  size: s.size
1308
1296
  }, {
1309
- default: d(() => [l(e(A), {
1297
+ default: m(() => [l(e(A), {
1310
1298
  field: "email",
1311
1299
  label: "邮箱",
1312
1300
  rules: [{
@@ -1317,7 +1305,7 @@ const Tt = {
1317
1305
  message: "请输入有效的邮箱"
1318
1306
  }]
1319
1307
  }, {
1320
- default: d(() => [z(L(f.value), 1)]),
1308
+ default: m(() => [z(T(a.value), 1)]),
1321
1309
  _: 1
1322
1310
  }), l(e(A), {
1323
1311
  field: "userToken",
@@ -1328,19 +1316,19 @@ const Tt = {
1328
1316
  message: "请输入验证码"
1329
1317
  }]
1330
1318
  }, {
1331
- default: d(() => [w("div", Tt, [l(e(C), {
1332
- modelValue: n.value.userToken,
1333
- "onUpdate:modelValue": v[0] || (v[0] = (b) => n.value.userToken = b),
1319
+ default: m(() => [w("div", Ct, [l(e(V), {
1320
+ modelValue: f.value.userToken,
1321
+ "onUpdate:modelValue": v[0] || (v[0] = (b) => f.value.userToken = b),
1334
1322
  placeholder: "请输入验证码"
1335
- }, null, 8, ["modelValue"]), l(X, {
1323
+ }, null, 8, ["modelValue"]), l(Q, {
1336
1324
  ref_key: "SendVerifyCodeRef",
1337
- ref: r,
1325
+ ref: o,
1338
1326
  size: s.size,
1339
1327
  loading: t.value,
1340
1328
  style: {
1341
1329
  "margin-left": "10px"
1342
1330
  },
1343
- onSend: m
1331
+ onSend: p
1344
1332
  }, null, 8, ["size", "loading"])])]),
1345
1333
  _: 1
1346
1334
  }), l(e(A), {
@@ -1348,12 +1336,12 @@ const Tt = {
1348
1336
  label: "",
1349
1337
  rules: []
1350
1338
  }, {
1351
- default: d(() => [w("div", Lt, [l(e($), {
1352
- loading: u.value,
1339
+ default: m(() => [w("div", $t, [l(e(U), {
1340
+ loading: r.value,
1353
1341
  type: "primary",
1354
- onClick: c
1342
+ onClick: d
1355
1343
  }, {
1356
- default: d(() => v[1] || (v[1] = [z(" 提交 ")])),
1344
+ default: m(() => v[1] || (v[1] = [z(" 提交 ")])),
1357
1345
  _: 1,
1358
1346
  __: [1]
1359
1347
  }, 8, ["loading"])])]),
@@ -1362,9 +1350,9 @@ const Tt = {
1362
1350
  _: 1
1363
1351
  }, 8, ["model", "size"]));
1364
1352
  }
1365
- }), Y = /* @__PURE__ */ P(Bt, [["__scopeId", "data-v-89ebb370"]]), Ot = {
1353
+ }), X = /* @__PURE__ */ I(xt, [["__scopeId", "data-v-89ebb370"]]), qt = {
1366
1354
  class: "handle"
1367
- }, Et = /* @__PURE__ */ S({
1355
+ }, Rt = /* @__PURE__ */ k({
1368
1356
  __name: "AuthkitPasswordUpdate",
1369
1357
  props: {
1370
1358
  size: {
@@ -1374,35 +1362,35 @@ const Tt = {
1374
1362
  },
1375
1363
  emits: ["submit"],
1376
1364
  setup(i, {
1377
- emit: a
1365
+ emit: n
1378
1366
  }) {
1379
- const o = a, s = h(!1), f = h(), r = i, t = h({
1367
+ const u = n, s = h(!1), a = h(), o = i, t = h({
1380
1368
  oldPassword: "",
1381
1369
  password: "",
1382
1370
  confirmPassword: ""
1383
1371
  });
1384
- async function u() {
1385
- f.value.validate().then((_) => {
1372
+ async function r() {
1373
+ a.value.validate().then((_) => {
1386
1374
  if (!_) {
1387
- const n = {
1375
+ const f = {
1388
1376
  password: t.value.password
1389
1377
  };
1390
- ze(n).then(() => {
1391
- s.value = !1, o("submit");
1378
+ he(f).then(() => {
1379
+ s.value = !1, u("submit");
1392
1380
  }).catch(() => {
1393
1381
  s.value = !1;
1394
1382
  });
1395
1383
  }
1396
1384
  });
1397
1385
  }
1398
- return (_, n) => (g(), y(e(B), {
1386
+ return (_, f) => (g(), y(e(L), {
1399
1387
  ref_key: "formRef",
1400
- ref: f,
1388
+ ref: a,
1401
1389
  model: t.value,
1402
1390
  "auto-label-width": "",
1403
- size: r.size
1391
+ size: o.size
1404
1392
  }, {
1405
- default: d(() => [l(e(A), {
1393
+ default: m(() => [l(e(A), {
1406
1394
  field: "oldPassword",
1407
1395
  label: "当前密码",
1408
1396
  "hide-label": "",
@@ -1411,9 +1399,9 @@ const Tt = {
1411
1399
  message: "请输入当前密码"
1412
1400
  }]
1413
1401
  }, {
1414
- default: d(() => [l(e(C), {
1402
+ default: m(() => [l(e(V), {
1415
1403
  modelValue: t.value.oldPassword,
1416
- "onUpdate:modelValue": n[0] || (n[0] = (m) => t.value.oldPassword = m),
1404
+ "onUpdate:modelValue": f[0] || (f[0] = (p) => t.value.oldPassword = p),
1417
1405
  placeholder: "请输入当前密码",
1418
1406
  type: "password"
1419
1407
  }, null, 8, ["modelValue"])]),
@@ -1430,9 +1418,9 @@ const Tt = {
1430
1418
  message: "新密码不能少于10字符"
1431
1419
  }]
1432
1420
  }, {
1433
- default: d(() => [l(e(C), {
1421
+ default: m(() => [l(e(V), {
1434
1422
  modelValue: t.value.password,
1435
- "onUpdate:modelValue": n[1] || (n[1] = (m) => t.value.password = m),
1423
+ "onUpdate:modelValue": f[1] || (f[1] = (p) => t.value.password = p),
1436
1424
  placeholder: "请输入新密码",
1437
1425
  type: "password"
1438
1426
  }, null, 8, ["modelValue"])]),
@@ -1448,14 +1436,14 @@ const Tt = {
1448
1436
  minLength: 10,
1449
1437
  message: "确认密码不能少于10字符"
1450
1438
  }, {
1451
- validator: (m, c) => {
1452
- m !== t.value.password ? c("两次密码输入不一致,请重新输入") : c();
1439
+ validator: (p, d) => {
1440
+ p !== t.value.password ? d("两次密码输入不一致,请重新输入") : d();
1453
1441
  }
1454
1442
  }]
1455
1443
  }, {
1456
- default: d(() => [l(e(C), {
1444
+ default: m(() => [l(e(V), {
1457
1445
  modelValue: t.value.confirmPassword,
1458
- "onUpdate:modelValue": n[2] || (n[2] = (m) => t.value.confirmPassword = m),
1446
+ "onUpdate:modelValue": f[2] || (f[2] = (p) => t.value.confirmPassword = p),
1459
1447
  placeholder: "请输入确认密码密码",
1460
1448
  type: "password"
1461
1449
  }, null, 8, ["modelValue"])]),
@@ -1465,12 +1453,12 @@ const Tt = {
1465
1453
  label: "",
1466
1454
  rules: []
1467
1455
  }, {
1468
- default: d(() => [w("div", Ot, [l(e($), {
1456
+ default: m(() => [w("div", qt, [l(e(U), {
1469
1457
  type: "primary",
1470
1458
  loading: s.value,
1471
- onClick: u
1459
+ onClick: r
1472
1460
  }, {
1473
- default: d(() => n[3] || (n[3] = [z(" 提交 ")])),
1461
+ default: m(() => f[3] || (f[3] = [z(" 提交 ")])),
1474
1462
  _: 1,
1475
1463
  __: [3]
1476
1464
  }, 8, ["loading"])])]),
@@ -1479,7 +1467,7 @@ const Tt = {
1479
1467
  _: 1
1480
1468
  }, 8, ["model", "size"]));
1481
1469
  }
1482
- }), Nt = /* @__PURE__ */ P(Et, [["__scopeId", "data-v-a7ff41e3"]]), Ft = /* @__PURE__ */ S({
1470
+ }), Tt = /* @__PURE__ */ I(Rt, [["__scopeId", "data-v-a7ff41e3"]]), Lt = /* @__PURE__ */ k({
1483
1471
  __name: "AuthkitSetPassword",
1484
1472
  props: {
1485
1473
  size: {
@@ -1489,70 +1477,70 @@ const Tt = {
1489
1477
  },
1490
1478
  setup(i) {
1491
1479
  const {
1492
- userProfile: a,
1493
- loading: o,
1480
+ userProfile: n,
1481
+ loading: u,
1494
1482
  fetchUserProfile: s,
1495
- isLoggedIn: f
1496
- } = Z(), r = h("hidden"), t = i;
1497
- function u(m) {
1498
- r.value = m;
1483
+ isLoggedIn: a
1484
+ } = K(), o = h("hidden"), t = i;
1485
+ function r(p) {
1486
+ o.value = p;
1499
1487
  }
1500
1488
  function _() {
1501
- E.success("密码修改成功"), r.value = "hidden", s();
1489
+ O.success("密码修改成功"), o.value = "hidden", s();
1502
1490
  }
1503
- function n() {
1504
- r.value = "update";
1491
+ function f() {
1492
+ o.value = "update";
1505
1493
  }
1506
- return N(() => {
1507
- f.value && !a.value && s();
1508
- }), (m, c) => {
1509
- var p, v, b, q;
1510
- return g(), U(W, null, [!((p = e(a)) != null && p.email) && !((v = e(a)) != null && v.phone) ? (g(), y(e(T), {
1494
+ return F(() => {
1495
+ a.value && !n.value && s();
1496
+ }), (p, d) => {
1497
+ var c, v, b, C;
1498
+ return g(), P(j, null, [!((c = e(n)) != null && c.email) && !((v = e(n)) != null && v.phone) ? (g(), y(e(R), {
1511
1499
  key: 0,
1512
1500
  title: "去绑定邮箱"
1513
1501
  }, {
1514
- action: d(() => [l(e($), {
1502
+ action: m(() => [l(e(U), {
1515
1503
  size: t.size,
1516
1504
  type: "primary",
1517
- onClick: c[0] || (c[0] = (V) => u("update"))
1505
+ onClick: d[0] || (d[0] = ($) => r("update"))
1518
1506
  }, {
1519
- default: d(() => c[2] || (c[2] = [z(" 去绑定邮箱 ")])),
1507
+ default: m(() => d[2] || (d[2] = [z(" 去绑定邮箱 ")])),
1520
1508
  _: 1,
1521
1509
  __: [2]
1522
1510
  }, 8, ["size"])]),
1523
- default: d(() => [c[3] || (c[3] = z(" 请先去绑定邮箱或者手机号码,才能设置密码 "))]),
1511
+ default: m(() => [d[3] || (d[3] = z(" 请先去绑定邮箱或者手机号码,才能设置密码 "))]),
1524
1512
  _: 1,
1525
1513
  __: [3]
1526
- })) : k("", !0), (b = e(a)) != null && b.email && r.value === "hidden" ? (g(), y(e(T), {
1514
+ })) : S("", !0), (b = e(n)) != null && b.email && o.value === "hidden" ? (g(), y(e(R), {
1527
1515
  key: 1,
1528
1516
  title: "更改密码"
1529
1517
  }, {
1530
- action: d(() => [l(e($), {
1518
+ action: m(() => [l(e(U), {
1531
1519
  size: t.size,
1532
1520
  type: "primary",
1533
- onClick: c[1] || (c[1] = (V) => u("verify"))
1521
+ onClick: d[1] || (d[1] = ($) => r("verify"))
1534
1522
  }, {
1535
- default: d(() => c[4] || (c[4] = [z("更改密码")])),
1523
+ default: m(() => d[4] || (d[4] = [z("更改密码")])),
1536
1524
  _: 1,
1537
1525
  __: [4]
1538
1526
  }, 8, ["size"])]),
1539
- default: d(() => [c[5] || (c[5] = z(" 为了账户安全修改密码前会先验证身份 "))]),
1527
+ default: m(() => [d[5] || (d[5] = z(" 为了账户安全修改密码前会先验证身份 "))]),
1540
1528
  _: 1,
1541
1529
  __: [5]
1542
- })) : k("", !0), r.value === "update" ? (g(), y(Nt, {
1530
+ })) : S("", !0), o.value === "update" ? (g(), y(Tt, {
1543
1531
  key: 2,
1544
1532
  size: t.size,
1545
- loading: e(o),
1533
+ loading: e(u),
1546
1534
  onSubmit: _
1547
- }, null, 8, ["size", "loading"])) : k("", !0), r.value === "verify" ? (g(), y(Y, {
1535
+ }, null, 8, ["size", "loading"])) : S("", !0), o.value === "verify" ? (g(), y(X, {
1548
1536
  key: 3,
1549
1537
  size: t.size,
1550
- email: (q = e(a)) == null ? void 0 : q.email,
1551
- onNext: n
1552
- }, null, 8, ["size", "email"])) : k("", !0)], 64);
1538
+ email: (C = e(n)) == null ? void 0 : C.email,
1539
+ onNext: f
1540
+ }, null, 8, ["size", "email"])) : S("", !0)], 64);
1553
1541
  };
1554
1542
  }
1555
- }), Gt = /* @__PURE__ */ S({
1543
+ }), Bt = /* @__PURE__ */ k({
1556
1544
  __name: "AuthkitEmailBinding",
1557
1545
  props: {
1558
1546
  size: {
@@ -1562,82 +1550,82 @@ const Tt = {
1562
1550
  },
1563
1551
  setup(i) {
1564
1552
  const {
1565
- userProfile: a,
1566
- loading: o,
1553
+ userProfile: n,
1554
+ loading: u,
1567
1555
  fetchUserProfile: s
1568
- } = Z(), f = h("hidden"), r = i;
1569
- function t(n) {
1570
- f.value = n;
1556
+ } = K(), a = h("hidden"), o = i;
1557
+ function t(f) {
1558
+ a.value = f;
1571
1559
  }
1572
- function u(n) {
1573
- o.value = !0;
1574
- const m = {
1575
- email: n.email,
1576
- userToken: n.userToken,
1577
- emailVerifyId: n.emailVerifyId,
1578
- password: n.password
1560
+ function r(f) {
1561
+ u.value = !0;
1562
+ const p = {
1563
+ email: f.email,
1564
+ userToken: f.userToken,
1565
+ emailVerifyId: f.emailVerifyId,
1566
+ password: f.password
1579
1567
  };
1580
- ke(m).then(() => {
1581
- o.value = !1, E.success("绑定成功"), f.value = "hidden", s();
1568
+ ye(p).then(() => {
1569
+ u.value = !1, O.success("绑定成功"), a.value = "hidden", s();
1582
1570
  }).catch(() => {
1583
- o.value = !1;
1571
+ u.value = !1;
1584
1572
  });
1585
1573
  }
1586
1574
  function _() {
1587
- f.value = "update";
1575
+ a.value = "update";
1588
1576
  }
1589
- return N(() => {
1590
- a.value || s();
1591
- }), (n, m) => {
1592
- var c, p, v;
1593
- return g(), U(W, null, [!((c = e(a)) != null && c.email) && f.value === "hidden" ? (g(), y(e(T), {
1577
+ return F(() => {
1578
+ n.value || s();
1579
+ }), (f, p) => {
1580
+ var d, c, v;
1581
+ return g(), P(j, null, [!((d = e(n)) != null && d.email) && a.value === "hidden" ? (g(), y(e(R), {
1594
1582
  key: 0,
1595
1583
  title: "绑定邮箱"
1596
1584
  }, {
1597
- action: d(() => [l(e($), {
1598
- size: r.size,
1585
+ action: m(() => [l(e(U), {
1586
+ size: o.size,
1599
1587
  type: "primary",
1600
- onClick: m[0] || (m[0] = (b) => t("update"))
1588
+ onClick: p[0] || (p[0] = (b) => t("update"))
1601
1589
  }, {
1602
- default: d(() => m[2] || (m[2] = [z(" 绑定邮箱 ")])),
1590
+ default: m(() => p[2] || (p[2] = [z(" 绑定邮箱 ")])),
1603
1591
  _: 1,
1604
1592
  __: [2]
1605
1593
  }, 8, ["size"])]),
1606
- default: d(() => [m[3] || (m[3] = z(" 您还未绑定邮箱,请点击绑定邮箱 "))]),
1594
+ default: m(() => [p[3] || (p[3] = z(" 您还未绑定邮箱,请点击绑定邮箱 "))]),
1607
1595
  _: 1,
1608
1596
  __: [3]
1609
- })) : k("", !0), (p = e(a)) != null && p.email && f.value === "hidden" ? (g(), y(e(T), {
1597
+ })) : S("", !0), (c = e(n)) != null && c.email && a.value === "hidden" ? (g(), y(e(R), {
1610
1598
  key: 1,
1611
1599
  title: "更改邮箱"
1612
1600
  }, {
1613
- action: d(() => [l(e($), {
1614
- size: r.size,
1601
+ action: m(() => [l(e(U), {
1602
+ size: o.size,
1615
1603
  type: "primary",
1616
- onClick: m[1] || (m[1] = (b) => t("verify"))
1604
+ onClick: p[1] || (p[1] = (b) => t("verify"))
1617
1605
  }, {
1618
- default: d(() => m[4] || (m[4] = [z(" 更改邮箱 ")])),
1606
+ default: m(() => p[4] || (p[4] = [z(" 更改邮箱 ")])),
1619
1607
  _: 1,
1620
1608
  __: [4]
1621
1609
  }, 8, ["size"])]),
1622
- default: d(() => {
1610
+ default: m(() => {
1623
1611
  var b;
1624
- return [z(L(`您绑定的邮箱为${e(ce)((b = e(a)) == null ? void 0 : b.email)}`) + " ", 1)];
1612
+ return [z(T(`您绑定的邮箱为${e(ue)((b = e(n)) == null ? void 0 : b.email)}`) + " ", 1)];
1625
1613
  }),
1626
1614
  _: 1
1627
- })) : k("", !0), f.value === "update" ? (g(), y(de, {
1615
+ })) : S("", !0), a.value === "update" ? (g(), y(oe, {
1628
1616
  key: 2,
1629
- loading: e(o),
1630
- size: r.size,
1631
- onSubmit: u
1632
- }, null, 8, ["loading", "size"])) : k("", !0), f.value === "verify" ? (g(), y(Y, {
1617
+ loading: e(u),
1618
+ size: o.size,
1619
+ onSubmit: r
1620
+ }, null, 8, ["loading", "size"])) : S("", !0), a.value === "verify" ? (g(), y(X, {
1633
1621
  key: 3,
1634
- size: r.size,
1635
- email: (v = e(a)) == null ? void 0 : v.email,
1622
+ size: o.size,
1623
+ email: (v = e(n)) == null ? void 0 : v.email,
1636
1624
  onNext: _
1637
- }, null, 8, ["size", "email"])) : k("", !0)], 64);
1625
+ }, null, 8, ["size", "email"])) : S("", !0)], 64);
1638
1626
  };
1639
1627
  }
1640
- }), Ht = /* @__PURE__ */ P(Gt, [["__scopeId", "data-v-3e555ec8"]]), Mt = /* @__PURE__ */ S({
1628
+ }), Ot = /* @__PURE__ */ I(Bt, [["__scopeId", "data-v-3e555ec8"]]), Et = /* @__PURE__ */ k({
1641
1629
  __name: "AuthkitGithubBinding",
1642
1630
  props: {
1643
1631
  size: {
@@ -1647,104 +1635,104 @@ const Tt = {
1647
1635
  },
1648
1636
  setup(i) {
1649
1637
  const {
1650
- userProfile: a,
1651
- fetchUserProfile: o
1652
- } = Z(), s = h("hidden"), f = h(!1);
1653
- let r;
1638
+ userProfile: n,
1639
+ fetchUserProfile: u
1640
+ } = K(), s = h("hidden"), a = h(!1);
1641
+ let o;
1654
1642
  const t = i;
1655
- function u(p) {
1656
- s.value = p;
1643
+ function r(c) {
1644
+ s.value = c;
1657
1645
  }
1658
1646
  function _() {
1659
- re().then(({
1660
- data: p
1647
+ le().then(({
1648
+ data: c
1661
1649
  }) => {
1662
1650
  const {
1663
1651
  redirectUri: v
1664
- } = p;
1665
- f.value = !0, window.open(v, "_blank");
1652
+ } = c;
1653
+ a.value = !0, window.open(v, "_blank");
1666
1654
  });
1667
1655
  }
1668
- function n() {
1669
- Se().then(() => {
1670
- E.success("解绑成功"), s.value = "hidden", o();
1656
+ function f() {
1657
+ we().then(() => {
1658
+ O.success("解绑成功"), s.value = "hidden", u();
1671
1659
  });
1672
1660
  }
1673
- function m() {
1674
- s.value === "bind" && (s.value = "hidden", _()), s.value === "unbind" && n();
1661
+ function p() {
1662
+ s.value === "bind" && (s.value = "hidden", _()), s.value === "unbind" && f();
1675
1663
  }
1676
- function c() {
1677
- f.value && o();
1664
+ function d() {
1665
+ a.value && u();
1678
1666
  }
1679
- return N(() => {
1680
- a.value || o(), r = setInterval(c, 1e3);
1681
- }), se(() => {
1682
- r && clearInterval(r);
1683
- }), (p, v) => {
1684
- var b, q, V;
1685
- return g(), U(W, null, [!((b = e(a)) != null && b.github) && s.value === "hidden" ? (g(), y(e(T), {
1667
+ return F(() => {
1668
+ n.value || u(), o = setInterval(d, 1e3);
1669
+ }), ee(() => {
1670
+ o && clearInterval(o);
1671
+ }), (c, v) => {
1672
+ var b, C, $;
1673
+ return g(), P(j, null, [!((b = e(n)) != null && b.github) && s.value === "hidden" ? (g(), y(e(R), {
1686
1674
  key: 0,
1687
1675
  title: "绑定GitHUb"
1688
1676
  }, {
1689
- action: d(() => [l(e($), {
1677
+ action: m(() => [l(e(U), {
1690
1678
  size: t.size,
1691
1679
  type: "primary",
1692
- onClick: v[0] || (v[0] = (I) => u("bind"))
1680
+ onClick: v[0] || (v[0] = (x) => r("bind"))
1693
1681
  }, {
1694
- default: d(() => v[2] || (v[2] = [z(" 绑定GitHUb ")])),
1682
+ default: m(() => v[2] || (v[2] = [z(" 绑定GitHUb ")])),
1695
1683
  _: 1,
1696
1684
  __: [2]
1697
1685
  }, 8, ["size"])]),
1698
- default: d(() => [v[3] || (v[3] = z(" 请尚未绑定GitHub,请点击绑定GitHUb "))]),
1686
+ default: m(() => [v[3] || (v[3] = z(" 请尚未绑定GitHub,请点击绑定GitHUb "))]),
1699
1687
  _: 1,
1700
1688
  __: [3]
1701
- })) : k("", !0), (q = e(a)) != null && q.github && s.value === "hidden" ? (g(), y(e(T), {
1689
+ })) : S("", !0), (C = e(n)) != null && C.github && s.value === "hidden" ? (g(), y(e(R), {
1702
1690
  key: 1,
1703
1691
  title: "解绑GitHub"
1704
1692
  }, {
1705
- action: d(() => [l(e($), {
1693
+ action: m(() => [l(e(U), {
1706
1694
  size: t.size,
1707
1695
  type: "primary",
1708
- onClick: v[1] || (v[1] = (I) => u("unbind"))
1696
+ onClick: v[1] || (v[1] = (x) => r("unbind"))
1709
1697
  }, {
1710
- default: d(() => v[4] || (v[4] = [z(" 解绑GitHUb ")])),
1698
+ default: m(() => v[4] || (v[4] = [z(" 解绑GitHUb ")])),
1711
1699
  _: 1,
1712
1700
  __: [4]
1713
1701
  }, 8, ["size"])]),
1714
- default: d(() => {
1715
- var I, x, G;
1716
- return [w("span", null, L(`您绑定的账号为 ${(x = (I = e(a)) == null ? void 0 : I.github) == null ? void 0 : x.login}`), 1), l(e(oe), {
1717
- "image-url": (G = e(a)) == null ? void 0 : G.avatar,
1702
+ default: m(() => {
1703
+ var x, E, N;
1704
+ return [w("span", null, T(`您绑定的账号为 ${(E = (x = e(n)) == null ? void 0 : x.github) == null ? void 0 : E.login}`), 1), l(e(ne), {
1705
+ "image-url": (N = e(n)) == null ? void 0 : N.avatar,
1718
1706
  size: 42
1719
1707
  }, null, 8, ["image-url"])];
1720
1708
  }),
1721
1709
  _: 1
1722
- })) : k("", !0), s.value === "bind" || s.value === "unbind" ? (g(), y(Y, {
1710
+ })) : S("", !0), s.value === "bind" || s.value === "unbind" ? (g(), y(X, {
1723
1711
  key: 2,
1724
1712
  size: t.size,
1725
- email: (V = e(a)) == null ? void 0 : V.email,
1726
- onNext: m
1727
- }, null, 8, ["size", "email"])) : k("", !0)], 64);
1713
+ email: ($ = e(n)) == null ? void 0 : $.email,
1714
+ onNext: p
1715
+ }, null, 8, ["size", "email"])) : S("", !0)], 64);
1728
1716
  };
1729
1717
  }
1730
- }), Dt = {
1718
+ }), Nt = {
1731
1719
  class: "content"
1732
- }, jt = {
1720
+ }, Ft = {
1733
1721
  class: "left"
1734
- }, Wt = {
1722
+ }, Gt = {
1735
1723
  class: "right"
1736
- }, Kt = /* @__PURE__ */ S({
1724
+ }, Ht = /* @__PURE__ */ k({
1737
1725
  __name: "AuthkitAppSetting",
1738
1726
  emits: ["confirm", "cancel"],
1739
1727
  setup(i, {
1740
- expose: a,
1741
- emit: o
1728
+ expose: n,
1729
+ emit: u
1742
1730
  }) {
1743
- const s = o;
1744
- function f() {
1731
+ const s = u;
1732
+ function a() {
1745
1733
  s("cancel");
1746
1734
  }
1747
- const r = h("large"), t = h(["PersonalInformation"]), u = h([{
1735
+ const o = h("large"), t = h(["PersonalInformation"]), r = h([{
1748
1736
  name: "个人信息",
1749
1737
  path: "PersonalInformation",
1750
1738
  meta: {
@@ -1789,73 +1777,73 @@ const Tt = {
1789
1777
  // },
1790
1778
  ]
1791
1779
  }]);
1792
- function _(p, v) {
1793
- const b = p.path;
1780
+ function _(c, v) {
1781
+ const b = c.path;
1794
1782
  console.log(b, v, "lokokoko"), t.value = [b];
1795
1783
  }
1796
1784
  const {
1797
- changeType: n,
1798
- show: m
1799
- } = qe(s);
1800
- function c(p, v) {
1801
- console.log(p), m.value = v, n.value = "编辑";
1785
+ changeType: f,
1786
+ show: p
1787
+ } = Ve(s);
1788
+ function d(c, v) {
1789
+ console.log(c), p.value = v, f.value = "编辑";
1802
1790
  }
1803
- return a({
1804
- setData: c
1805
- }), (p, v) => (g(), y(e(le), {
1806
- visible: e(m),
1807
- "onUpdate:visible": v[1] || (v[1] = (b) => ae(m) ? m.value = b : null),
1791
+ return n({
1792
+ setData: d
1793
+ }), (c, v) => (g(), y(e(se), {
1794
+ visible: e(p),
1795
+ "onUpdate:visible": v[1] || (v[1] = (b) => ie(p) ? p.value = b : null),
1808
1796
  "unmount-on-close": "",
1809
1797
  "body-class": "AppSettingbodyClass",
1810
1798
  "mask-closable": !1,
1811
1799
  footer: !1,
1812
1800
  width: "700px",
1813
- onCancel: f
1801
+ onCancel: a
1814
1802
  }, {
1815
- title: d(() => v[2] || (v[2] = [z(" 系统设置 ")])),
1816
- default: d(() => [w("div", Dt, [w("div", jt, [l(xe, {
1803
+ title: m(() => v[2] || (v[2] = [z(" 系统设置 ")])),
1804
+ default: m(() => [w("div", Nt, [w("div", Ft, [l(Pe, {
1817
1805
  "selected-keys": t.value,
1818
1806
  "onUpdate:selectedKeys": v[0] || (v[0] = (b) => t.value = b),
1819
- menus: u.value,
1807
+ menus: r.value,
1820
1808
  onChange: _
1821
- }, null, 8, ["selected-keys", "menus"])]), w("div", Wt, [t.value[0] === "PersonalInformation" ? (g(), y(Rt, {
1809
+ }, null, 8, ["selected-keys", "menus"])]), w("div", Gt, [t.value[0] === "PersonalInformation" ? (g(), y(Ut, {
1822
1810
  key: 0,
1823
- size: r.value
1824
- }, null, 8, ["size"])) : k("", !0), t.value[0] === "EmailBinding" ? (g(), y(Ht, {
1811
+ size: o.value
1812
+ }, null, 8, ["size"])) : S("", !0), t.value[0] === "EmailBinding" ? (g(), y(Ot, {
1825
1813
  key: 1,
1826
- size: r.value
1827
- }, null, 8, ["size"])) : k("", !0), t.value[0] === "SetPassword" ? (g(), y(Ft, {
1814
+ size: o.value
1815
+ }, null, 8, ["size"])) : S("", !0), t.value[0] === "SetPassword" ? (g(), y(Lt, {
1828
1816
  key: 2,
1829
- size: r.value
1830
- }, null, 8, ["size"])) : k("", !0), t.value[0] === "GithubBinding" ? (g(), y(Mt, {
1817
+ size: o.value
1818
+ }, null, 8, ["size"])) : S("", !0), t.value[0] === "GithubBinding" ? (g(), y(Et, {
1831
1819
  key: 3,
1832
- size: r.value
1833
- }, null, 8, ["size"])) : k("", !0)])])]),
1820
+ size: o.value
1821
+ }, null, 8, ["size"])) : S("", !0)])])]),
1834
1822
  _: 1
1835
1823
  }, 8, ["visible"]));
1836
1824
  }
1837
- }), vi = /* @__PURE__ */ P(Kt, [["__scopeId", "data-v-e9f9426e"]]);
1825
+ }), ui = /* @__PURE__ */ I(Ht, [["__scopeId", "data-v-e9f9426e"]]);
1838
1826
  export {
1839
- At as A,
1840
- de as E,
1841
- Fe as O,
1842
- Ze as P,
1843
- et as R,
1844
- X as S,
1845
- M as _,
1846
- pi as a,
1847
- vi as b,
1848
- me as c,
1849
- ft as d,
1850
- bt as e,
1851
- ot as f,
1852
- ue as g,
1853
- dt as h,
1854
- st as i,
1855
- Rt as j,
1856
- Y as k,
1857
- Mt as l,
1858
- Ft as m,
1859
- Ht as n,
1860
- Nt as o
1827
+ bt as A,
1828
+ oe as E,
1829
+ Le as O,
1830
+ Me as P,
1831
+ Ze as R,
1832
+ Q as S,
1833
+ H as _,
1834
+ ri as a,
1835
+ ui as b,
1836
+ re as c,
1837
+ rt as d,
1838
+ vt as e,
1839
+ it as f,
1840
+ ae as g,
1841
+ lt as h,
1842
+ Xe as i,
1843
+ Ut as j,
1844
+ X as k,
1845
+ Et as l,
1846
+ Lt as m,
1847
+ Ot as n,
1848
+ Tt as o
1861
1849
  };