@huyooo/ui 2.2.1 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AuthkitAppSetting-CHVSyEY1.js → AuthkitAppSetting-BuaqfKEv.js} +8 -8
- package/dist/{Contact-BTQf8tEx.js → Contact-D-NTKkWc.js} +3 -3
- package/dist/{CustomTable-BY0oHLXc.js → CustomTable-D9j5dgOH.js} +1 -1
- package/dist/{FeedbackModal.vue_vue_type_script_setup_true_lang-FIZdBxIZ.js → FeedbackModal.vue_vue_type_script_setup_true_lang-CsgTdQQG.js} +5 -5
- package/dist/{LegalDocViewer-DiNoy_oj.js → LegalDocViewer-DLpvpTeA.js} +202 -200
- package/dist/{MessageHandle-DDGFSJMg.js → MessageHandle-BVqmtDDc.js} +3 -3
- package/dist/{MessageList-CE5E_5Uv.js → MessageList-CCUlHX_0.js} +1 -1
- package/dist/{PaySubscriptions-Du9QWvlH.js → PaySubscriptions-CwjgkL21.js} +7 -7
- package/dist/{PricingPlans-BEhWsV2D.js → PricingPlans-CjLXF7is.js} +4 -4
- package/dist/{ReferrerReferees-t5s4LzbY.js → ReferrerReferees-RKmCkAIi.js} +4 -4
- package/dist/{Upload.vue_vue_type_script_setup_true_lang-DsrqOACa.js → Upload.vue_vue_type_script_setup_true_lang-DX_PVh8A.js} +1 -1
- package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BrauYUc_.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-RMTlKkD-.js} +10 -10
- package/dist/{WidthContainer-CiabzONI.js → WidthContainer-iRk3r61v.js} +10 -10
- package/dist/apiClients-cJElwYYN.js +275 -0
- package/dist/authkit.js +10 -10
- package/dist/common/globalConfig.d.ts +15 -0
- package/dist/common.js +2 -2
- package/dist/composables.js +13 -13
- package/dist/feedback.js +2 -2
- package/dist/fetchAuthPageAboutUs-D-JEoE8N.js +34 -0
- package/dist/{index-BYH7DaQf.js → index-CHWVBunT.js} +1 -1
- package/dist/main.js +31 -31
- package/dist/message.js +5 -5
- package/dist/pay.js +5 -5
- package/dist/privateCom.js +1 -1
- package/dist/referrer.js +1 -1
- package/dist/{runtime-DDJRAtkv.js → runtime-7yUdSOYv.js} +119 -116
- package/dist/style.css +1 -1
- package/dist/upload.js +2 -2
- package/dist/{useAuthkitAppsAuthPageInfo-2izIyMfu.js → useAuthkitAppsAuthPageInfo-2qQf2lJP.js} +17 -15
- package/dist/{useAuthkitAuth-CWHJs8zY.js → useAuthkitAuth-C6RUN1mU.js} +2 -2
- package/dist/{useAuthkitCreateAndUpdate-COI5KVPJ.js → useAuthkitCreateAndUpdate-piFGtY-A.js} +1 -1
- package/dist/{useAuthkitUsersProfile-D4H_Gxgd.js → useAuthkitUsersProfile-D_9ttX6H.js} +3 -3
- package/dist/{useBillingStatusOptions-C6edto7H.js → useBillingStatusOptions-Bo1wYzgB.js} +1 -1
- package/dist/{useBillingSubscriptionSummary-BC3G0N4t.js → useBillingSubscriptionSummary-BabqnJ7S.js} +1 -1
- package/dist/{useEnsureAuthenticated-RZ1DflLz.js → useEnsureAuthenticated-NADE0UVJ.js} +2 -2
- package/dist/{useLegalDocs-xXYvYpPC.js → useLegalDocs-CfIjSyik.js} +2 -2
- package/dist/{useMessageNotifications-pxa5LHjV.js → useMessageNotifications-SMRRA3Kl.js} +1 -1
- package/dist/{usePageSEO-B3stKP3n.js → usePageSEO-qRI2bful.js} +2 -2
- package/dist/{useRoutePermission-CGq_LIZM.js → useRoutePermission-CkCE6-C3.js} +3 -3
- package/dist/{useSubscriptionCheckout-CZZLk_1d.js → useSubscriptionCheckout-B1CyTY9V.js} +3 -3
- package/dist/user.js +1 -1
- package/package.json +1 -1
- package/dist/apiClients-CWSwNzGk.js +0 -272
- package/dist/fetchAuthPageAboutUs-CLQlGhQy.js +0 -25
|
@@ -4,27 +4,27 @@ import { useRouter as we, useRoute as qe } from "vue-router";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
import "./userMenuModal-D-nDaYqM.js";
|
|
6
6
|
import { Message as ae, Form as E, FormItem as P, Input as C, Button as L, Link as Y, Tabs as ce, TabPane as pe, Checkbox as Oe, Modal as xe, List as Le, ListItem as oe, ListItemMeta as le, Avatar as te, Alert as ve, Spin as Be, Empty as Me } from "@arco-design/web-vue";
|
|
7
|
-
import { a as F, u as N } from "./useAuthkitAuth-
|
|
8
|
-
import { g as B, u as _e } from "./apiClients-
|
|
9
|
-
import { u as j } from "./useAuthkitAppsAuthPageInfo-
|
|
10
|
-
import { o as ge, j as Fe, k as he, l as ke, u as De, m as He, n as X, p as Ee, i as Se, S as
|
|
7
|
+
import { a as F, u as N } from "./useAuthkitAuth-C6RUN1mU.js";
|
|
8
|
+
import { g as B, u as _e } from "./apiClients-cJElwYYN.js";
|
|
9
|
+
import { u as j } from "./useAuthkitAppsAuthPageInfo-2qQf2lJP.js";
|
|
10
|
+
import { o as ge, j as Fe, k as he, l as ke, u as De, m as He, n as X, p as Ee, i as Se, S as K, q as W, r as ze, s as Ie, t as ne, v as Ge, w as Ne, b as je } from "./AuthkitAppSetting-BuaqfKEv.js";
|
|
11
11
|
import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
import "./index-
|
|
13
|
+
import "./index-CHWVBunT.js";
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { u as Ae, L as
|
|
16
|
-
import { u as me } from "./runtime-
|
|
17
|
-
import { u as Pe } from "./useAuthkitUsersProfile-
|
|
15
|
+
import { u as Ae, L as Ke, i as We } from "./useLegalDocs-CfIjSyik.js";
|
|
16
|
+
import { u as me, g as Je } from "./runtime-7yUdSOYv.js";
|
|
17
|
+
import { u as Pe } from "./useAuthkitUsersProfile-D_9ttX6H.js";
|
|
18
18
|
/* empty css */
|
|
19
19
|
/* empty css */
|
|
20
|
-
import "./CustomTable-
|
|
20
|
+
import "./CustomTable-D9j5dgOH.js";
|
|
21
21
|
/* empty css */
|
|
22
|
-
import { TiptapEditor as
|
|
23
|
-
import { f as
|
|
24
|
-
const
|
|
22
|
+
import { TiptapEditor as Qe, TiptapTitle as Xe } from "@huyooo/vue-tiptap";
|
|
23
|
+
import { f as Ye } from "./fetchAuthPageAboutUs-D-JEoE8N.js";
|
|
24
|
+
const Ze = ["title", "aria-label", "disabled"], et = {
|
|
25
25
|
key: 0,
|
|
26
26
|
class: "OAuthItem__spinner"
|
|
27
|
-
},
|
|
27
|
+
}, tt = /* @__PURE__ */ V({
|
|
28
28
|
__name: "AuthkitOauthItem",
|
|
29
29
|
props: {
|
|
30
30
|
size: {
|
|
@@ -64,20 +64,20 @@ const Ye = ["title", "aria-label", "disabled"], Ze = {
|
|
|
64
64
|
"aria-label": u.label,
|
|
65
65
|
disabled: u.disabled || u.loading,
|
|
66
66
|
style: G(n.value)
|
|
67
|
-
}, [u.loading ? (o(), S("span",
|
|
67
|
+
}, [u.loading ? (o(), S("span", et)) : Z(r.$slots, "icon", {
|
|
68
68
|
key: 1
|
|
69
69
|
}, () => [u.icon ? (o(), z(ke, {
|
|
70
70
|
key: 0,
|
|
71
71
|
icon: u.icon,
|
|
72
72
|
size: e(ge)
|
|
73
|
-
}, null, 8, ["icon", "size"])) : I("", !0)], !0)], 14,
|
|
73
|
+
}, null, 8, ["icon", "size"])) : I("", !0)], !0)], 14, Ze));
|
|
74
74
|
}
|
|
75
|
-
}), Q = /* @__PURE__ */ U(
|
|
75
|
+
}), Q = /* @__PURE__ */ U(tt, [["__scopeId", "data-v-e00c1d80"]]), st = {
|
|
76
76
|
class: "OAuthList"
|
|
77
|
-
},
|
|
77
|
+
}, it = {
|
|
78
78
|
key: 0,
|
|
79
79
|
class: "OAuthDivider"
|
|
80
|
-
},
|
|
80
|
+
}, at = /* @__PURE__ */ V({
|
|
81
81
|
__name: "AuthkitOauthList",
|
|
82
82
|
props: {
|
|
83
83
|
size: {
|
|
@@ -124,7 +124,7 @@ const Ye = ["title", "aria-label", "disabled"], Ze = {
|
|
|
124
124
|
const R = n.value.oauth;
|
|
125
125
|
return R.google.enabled || R.microsoft.enabled || R.github.enabled || R.wechat.enabled || n.value.authMethods.login.passkey;
|
|
126
126
|
}), x = $(() => d ? "Passkey" : p() || "Passkey 不可用");
|
|
127
|
-
return (R, O) => (o(), S("div",
|
|
127
|
+
return (R, O) => (o(), S("div", st, [T.value ? (o(), S("div", it, [...O[4] || (O[4] = [_("span", null, "其他登录方式", -1)])])) : I("", !0), _("div", {
|
|
128
128
|
class: "OAuthIcons",
|
|
129
129
|
style: G({
|
|
130
130
|
gap: `${e(He)}px`
|
|
@@ -163,13 +163,13 @@ const Ye = ["title", "aria-label", "disabled"], Ze = {
|
|
|
163
163
|
onClick: y
|
|
164
164
|
}, null, 8, ["icon", "label", "size", "loading", "disabled"])) : I("", !0)], 4)]));
|
|
165
165
|
}
|
|
166
|
-
}),
|
|
166
|
+
}), ot = /* @__PURE__ */ U(at, [["__scopeId", "data-v-0473306e"]]), lt = {
|
|
167
167
|
class: "content"
|
|
168
|
-
}, lt = {
|
|
169
|
-
class: "sendVerifyCodeItem"
|
|
170
168
|
}, nt = {
|
|
169
|
+
class: "sendVerifyCodeItem"
|
|
170
|
+
}, rt = {
|
|
171
171
|
class: "handle"
|
|
172
|
-
},
|
|
172
|
+
}, ut = /* @__PURE__ */ V({
|
|
173
173
|
__name: "AuthkitPasswordUpdateAndVerify",
|
|
174
174
|
props: {
|
|
175
175
|
size: {
|
|
@@ -200,7 +200,7 @@ const Ye = ["title", "aria-label", "disabled"], Ze = {
|
|
|
200
200
|
email: s.value.email,
|
|
201
201
|
purpose: "resetPassword"
|
|
202
202
|
});
|
|
203
|
-
g.value = !1, p.data && (s.value.emailVerifyId = p.data.emailVerifyId),
|
|
203
|
+
g.value = !1, p.data && (s.value.emailVerifyId = p.data.emailVerifyId), W(h.value, p);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
async function v() {
|
|
@@ -208,7 +208,7 @@ const Ye = ["title", "aria-label", "disabled"], Ze = {
|
|
|
208
208
|
t || n("submit", s.value);
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
-
return (t, p) => (o(), S("div",
|
|
211
|
+
return (t, p) => (o(), S("div", lt, [i(e(E), {
|
|
212
212
|
ref_key: "formRef",
|
|
213
213
|
ref: a,
|
|
214
214
|
model: s.value,
|
|
@@ -242,11 +242,11 @@ const Ye = ["title", "aria-label", "disabled"], Ze = {
|
|
|
242
242
|
message: "请输入验证码"
|
|
243
243
|
}]
|
|
244
244
|
}, {
|
|
245
|
-
default: c(() => [_("div",
|
|
245
|
+
default: c(() => [_("div", nt, [i(e(C), {
|
|
246
246
|
modelValue: s.value.userToken,
|
|
247
247
|
"onUpdate:modelValue": p[1] || (p[1] = (l) => s.value.userToken = l),
|
|
248
248
|
placeholder: "请输入验证码"
|
|
249
|
-
}, null, 8, ["modelValue"]), i(
|
|
249
|
+
}, null, 8, ["modelValue"]), i(K, {
|
|
250
250
|
ref_key: "SendVerifyCodeRef",
|
|
251
251
|
ref: h,
|
|
252
252
|
size: r.size,
|
|
@@ -301,7 +301,7 @@ const Ye = ["title", "aria-label", "disabled"], Ze = {
|
|
|
301
301
|
autocomplete: ""
|
|
302
302
|
}, null, 8, ["modelValue"])]),
|
|
303
303
|
_: 1
|
|
304
|
-
}, 8, ["rules"]), _("div",
|
|
304
|
+
}, 8, ["rules"]), _("div", rt, [i(e(L), {
|
|
305
305
|
type: "primary",
|
|
306
306
|
loading: r.loading,
|
|
307
307
|
long: "",
|
|
@@ -314,11 +314,11 @@ const Ye = ["title", "aria-label", "disabled"], Ze = {
|
|
|
314
314
|
_: 1
|
|
315
315
|
}, 8, ["model", "size"])]));
|
|
316
316
|
}
|
|
317
|
-
}),
|
|
317
|
+
}), dt = /* @__PURE__ */ U(ut, [["__scopeId", "data-v-4091e418"]]), ct = {
|
|
318
318
|
class: "content"
|
|
319
|
-
},
|
|
319
|
+
}, pt = {
|
|
320
320
|
class: "sendVerifyCodeItem"
|
|
321
|
-
},
|
|
321
|
+
}, mt = /* @__PURE__ */ V({
|
|
322
322
|
__name: "AuthkitPhonePasswordUpdateAndVerify",
|
|
323
323
|
props: {
|
|
324
324
|
size: {
|
|
@@ -362,7 +362,7 @@ const Ye = ["title", "aria-label", "disabled"], Ze = {
|
|
|
362
362
|
phone: s.value.phone,
|
|
363
363
|
purpose: "resetPassword"
|
|
364
364
|
});
|
|
365
|
-
g.value = !1,
|
|
365
|
+
g.value = !1, W(h.value, l);
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
async function t() {
|
|
@@ -375,7 +375,7 @@ const Ye = ["title", "aria-label", "disabled"], Ze = {
|
|
|
375
375
|
});
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
|
-
return (p, l) => (o(), S("div",
|
|
378
|
+
return (p, l) => (o(), S("div", ct, [i(e(E), {
|
|
379
379
|
ref_key: "formRef",
|
|
380
380
|
ref: a,
|
|
381
381
|
model: s.value,
|
|
@@ -411,12 +411,12 @@ const Ye = ["title", "aria-label", "disabled"], Ze = {
|
|
|
411
411
|
message: "请输入验证码"
|
|
412
412
|
}]
|
|
413
413
|
}, {
|
|
414
|
-
default: c(() => [_("div",
|
|
414
|
+
default: c(() => [_("div", pt, [i(e(C), {
|
|
415
415
|
modelValue: s.value.code,
|
|
416
416
|
"onUpdate:modelValue": l[1] || (l[1] = (w) => s.value.code = w),
|
|
417
417
|
placeholder: "请输入验证码",
|
|
418
418
|
autocomplete: "one-time-code"
|
|
419
|
-
}, null, 8, ["modelValue"]), i(
|
|
419
|
+
}, null, 8, ["modelValue"]), i(K, {
|
|
420
420
|
ref_key: "SendVerifyCodeRef",
|
|
421
421
|
ref: h,
|
|
422
422
|
size: r.size,
|
|
@@ -474,9 +474,9 @@ const Ye = ["title", "aria-label", "disabled"], Ze = {
|
|
|
474
474
|
_: 1
|
|
475
475
|
}, 8, ["model", "size"])]));
|
|
476
476
|
}
|
|
477
|
-
}),
|
|
477
|
+
}), ft = /* @__PURE__ */ U(mt, [["__scopeId", "data-v-a01a994e"]]), vt = {
|
|
478
478
|
class: "SwitchSignIn"
|
|
479
|
-
},
|
|
479
|
+
}, gt = /* @__PURE__ */ V({
|
|
480
480
|
__name: "AuthkitSwitchSignIn",
|
|
481
481
|
emits: ["switchSignIn"],
|
|
482
482
|
setup(b, {
|
|
@@ -486,7 +486,7 @@ const Ye = ["title", "aria-label", "disabled"], Ze = {
|
|
|
486
486
|
function r() {
|
|
487
487
|
n("switchSignIn");
|
|
488
488
|
}
|
|
489
|
-
return (h, g) => (o(), S("div",
|
|
489
|
+
return (h, g) => (o(), S("div", vt, [_("span", null, [g[1] || (g[1] = _("span", null, "已经有账号?", -1)), i(e(Y), {
|
|
490
490
|
style: {
|
|
491
491
|
padding: "0px"
|
|
492
492
|
},
|
|
@@ -496,15 +496,15 @@ const Ye = ["title", "aria-label", "disabled"], Ze = {
|
|
|
496
496
|
_: 1
|
|
497
497
|
})])]));
|
|
498
498
|
}
|
|
499
|
-
}), fe = /* @__PURE__ */ U(
|
|
499
|
+
}), fe = /* @__PURE__ */ U(gt, [["__scopeId", "data-v-c09d6c18"]]), ht = {
|
|
500
500
|
class: "ResetPassword"
|
|
501
|
-
},
|
|
501
|
+
}, yt = {
|
|
502
502
|
key: 0,
|
|
503
503
|
class: "tabsContainer"
|
|
504
|
-
},
|
|
504
|
+
}, bt = {
|
|
505
505
|
key: 3,
|
|
506
506
|
class: "empty"
|
|
507
|
-
},
|
|
507
|
+
}, wt = /* @__PURE__ */ V({
|
|
508
508
|
__name: "AuthkitResetPassword",
|
|
509
509
|
props: {
|
|
510
510
|
size: {
|
|
@@ -547,7 +547,7 @@ const Ye = ["title", "aria-label", "disabled"], Ze = {
|
|
|
547
547
|
...t
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
|
-
return (t, p) => (o(), S("div",
|
|
550
|
+
return (t, p) => (o(), S("div", ht, [a.value.length > 1 ? (o(), S("div", yt, [i(e(ce), {
|
|
551
551
|
"active-key": s.value,
|
|
552
552
|
"onUpdate:activeKey": p[0] || (p[0] = (l) => s.value = l)
|
|
553
553
|
}, {
|
|
@@ -556,34 +556,34 @@ const Ye = ["title", "aria-label", "disabled"], Ze = {
|
|
|
556
556
|
title: l.title
|
|
557
557
|
}, null, 8, ["title"]))), 128))]),
|
|
558
558
|
_: 1
|
|
559
|
-
}, 8, ["active-key"])])) : I("", !0), s.value === "email" && g.value.login.emailPassword ? (o(), z(
|
|
559
|
+
}, 8, ["active-key"])])) : I("", !0), s.value === "email" && g.value.login.emailPassword ? (o(), z(dt, {
|
|
560
560
|
key: 1,
|
|
561
561
|
loading: b.loading,
|
|
562
562
|
size: r.size,
|
|
563
563
|
onSubmit: v
|
|
564
|
-
}, null, 8, ["loading", "size"])) : s.value === "phone" && g.value.login.phonePassword ? (o(), z(
|
|
564
|
+
}, null, 8, ["loading", "size"])) : s.value === "phone" && g.value.login.phonePassword ? (o(), z(ft, {
|
|
565
565
|
key: 2,
|
|
566
566
|
loading: b.loading,
|
|
567
567
|
size: r.size,
|
|
568
568
|
onSubmit: v
|
|
569
|
-
}, null, 8, ["loading", "size"])) : (o(), S("div",
|
|
569
|
+
}, null, 8, ["loading", "size"])) : (o(), S("div", bt, "当前应用未开放找回密码")), i(fe, {
|
|
570
570
|
onSwitchSignIn: d
|
|
571
571
|
})]));
|
|
572
572
|
}
|
|
573
|
-
}),
|
|
573
|
+
}), _t = /* @__PURE__ */ U(wt, [["__scopeId", "data-v-90d789bb"]]);
|
|
574
574
|
let se = null, ie = null;
|
|
575
|
-
function
|
|
575
|
+
function kt(b) {
|
|
576
576
|
se = b.onPrivacyPolicy ?? null, ie = b.onUserServiceAgreement ?? null;
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function St() {
|
|
579
579
|
se == null || se();
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function zt() {
|
|
582
582
|
ie == null || ie();
|
|
583
583
|
}
|
|
584
|
-
const
|
|
584
|
+
const It = {
|
|
585
585
|
key: 2
|
|
586
|
-
},
|
|
586
|
+
}, At = /* @__PURE__ */ V({
|
|
587
587
|
__name: "AuthkitServiceAgreementAndPrivacyProtection",
|
|
588
588
|
props: /* @__PURE__ */ $e({
|
|
589
589
|
currentView: {}
|
|
@@ -622,14 +622,14 @@ const zt = {
|
|
|
622
622
|
g("userServiceAgreement");
|
|
623
623
|
return;
|
|
624
624
|
}
|
|
625
|
-
|
|
625
|
+
zt();
|
|
626
626
|
}
|
|
627
627
|
function y() {
|
|
628
628
|
if (u.legalDocsMode === "builtin") {
|
|
629
629
|
g("privacyPolicy");
|
|
630
630
|
return;
|
|
631
631
|
}
|
|
632
|
-
|
|
632
|
+
St();
|
|
633
633
|
}
|
|
634
634
|
return (k, T) => m.value ? (o(), S("div", {
|
|
635
635
|
key: 0,
|
|
@@ -654,7 +654,7 @@ const zt = {
|
|
|
654
654
|
}, {
|
|
655
655
|
default: c(() => [q(M(t.value.label), 1)]),
|
|
656
656
|
_: 1
|
|
657
|
-
})) : I("", !0), t.value && p.value ? (o(), S("span",
|
|
657
|
+
})) : I("", !0), t.value && p.value ? (o(), S("span", It, "和")) : I("", !0), p.value ? (o(), z(e(Y), {
|
|
658
658
|
key: 3,
|
|
659
659
|
onClick: y
|
|
660
660
|
}, {
|
|
@@ -662,11 +662,11 @@ const zt = {
|
|
|
662
662
|
_: 1
|
|
663
663
|
})) : I("", !0)], 64)) : I("", !0)], 2)) : I("", !0);
|
|
664
664
|
}
|
|
665
|
-
}), ee = /* @__PURE__ */ U(
|
|
665
|
+
}), ee = /* @__PURE__ */ U(At, [["__scopeId", "data-v-a0c2f361"]]), Pt = {
|
|
666
666
|
class: "content"
|
|
667
|
-
},
|
|
667
|
+
}, Vt = {
|
|
668
668
|
class: "handle"
|
|
669
|
-
},
|
|
669
|
+
}, Ct = /* @__PURE__ */ V({
|
|
670
670
|
__name: "AuthkitPasswordAuth",
|
|
671
671
|
props: {
|
|
672
672
|
size: {
|
|
@@ -702,7 +702,7 @@ const zt = {
|
|
|
702
702
|
t || n("submit", d.value);
|
|
703
703
|
});
|
|
704
704
|
}
|
|
705
|
-
return (t, p) => (o(), S("div",
|
|
705
|
+
return (t, p) => (o(), S("div", Pt, [i(e(E), {
|
|
706
706
|
ref_key: "formRef",
|
|
707
707
|
ref: s,
|
|
708
708
|
model: d.value,
|
|
@@ -742,7 +742,7 @@ const zt = {
|
|
|
742
742
|
autocomplete: "current-password"
|
|
743
743
|
}, null, 8, ["modelValue"])]),
|
|
744
744
|
_: 1
|
|
745
|
-
}), _("div",
|
|
745
|
+
}), _("div", Vt, [i(e(L), {
|
|
746
746
|
type: "primary",
|
|
747
747
|
loading: a.loading,
|
|
748
748
|
long: "",
|
|
@@ -767,15 +767,15 @@ const zt = {
|
|
|
767
767
|
_: 1
|
|
768
768
|
}, 8, ["model", "size"])]));
|
|
769
769
|
}
|
|
770
|
-
}),
|
|
770
|
+
}), Ut = /* @__PURE__ */ U(Ct, [["__scopeId", "data-v-bed304e1"]]), $t = {
|
|
771
771
|
class: "SignInPhone"
|
|
772
|
-
}, $t = {
|
|
773
|
-
class: "content"
|
|
774
772
|
}, Rt = {
|
|
775
|
-
class: "
|
|
773
|
+
class: "content"
|
|
776
774
|
}, Tt = {
|
|
775
|
+
class: "sendVerifyCodeItem"
|
|
776
|
+
}, qt = {
|
|
777
777
|
class: "handle"
|
|
778
|
-
},
|
|
778
|
+
}, Ot = /* @__PURE__ */ V({
|
|
779
779
|
__name: "AuthkitSignInPhone",
|
|
780
780
|
props: {
|
|
781
781
|
size: {
|
|
@@ -809,7 +809,7 @@ const zt = {
|
|
|
809
809
|
phone: t.value.phone,
|
|
810
810
|
purpose: "signIn"
|
|
811
811
|
});
|
|
812
|
-
d.value = !1,
|
|
812
|
+
d.value = !1, W(s.value, m);
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
815
|
async function l() {
|
|
@@ -821,7 +821,7 @@ const zt = {
|
|
|
821
821
|
});
|
|
822
822
|
});
|
|
823
823
|
}
|
|
824
|
-
return (w, m) => (o(), S("div",
|
|
824
|
+
return (w, m) => (o(), S("div", $t, [_("div", Rt, [i(e(E), {
|
|
825
825
|
ref_key: "formRef",
|
|
826
826
|
ref: v,
|
|
827
827
|
model: t.value,
|
|
@@ -857,12 +857,12 @@ const zt = {
|
|
|
857
857
|
message: "请输入验证码"
|
|
858
858
|
}]
|
|
859
859
|
}, {
|
|
860
|
-
default: c(() => [_("div",
|
|
860
|
+
default: c(() => [_("div", Tt, [i(e(C), {
|
|
861
861
|
modelValue: t.value.code,
|
|
862
862
|
"onUpdate:modelValue": m[1] || (m[1] = (f) => t.value.code = f),
|
|
863
863
|
placeholder: "请输入验证码",
|
|
864
864
|
autocomplete: "one-time-code"
|
|
865
|
-
}, null, 8, ["modelValue"]), i(
|
|
865
|
+
}, null, 8, ["modelValue"]), i(K, {
|
|
866
866
|
ref_key: "SendVerifyCodeRef",
|
|
867
867
|
ref: s,
|
|
868
868
|
size: a.size,
|
|
@@ -873,7 +873,7 @@ const zt = {
|
|
|
873
873
|
onSend: p
|
|
874
874
|
}, null, 8, ["size", "loading"])])]),
|
|
875
875
|
_: 1
|
|
876
|
-
}), _("div",
|
|
876
|
+
}), _("div", qt, [i(e(L), {
|
|
877
877
|
type: "primary",
|
|
878
878
|
loading: a.loading,
|
|
879
879
|
long: "",
|
|
@@ -898,13 +898,13 @@ const zt = {
|
|
|
898
898
|
_: 1
|
|
899
899
|
}, 8, ["model", "size"])])]));
|
|
900
900
|
}
|
|
901
|
-
}),
|
|
901
|
+
}), xt = /* @__PURE__ */ U(Ot, [["__scopeId", "data-v-e2a3fef3"]]), Lt = {
|
|
902
902
|
class: "SignInEmailCode"
|
|
903
|
-
}, Lt = {
|
|
904
|
-
class: "sendVerifyCodeItem"
|
|
905
903
|
}, Bt = {
|
|
904
|
+
class: "sendVerifyCodeItem"
|
|
905
|
+
}, Mt = {
|
|
906
906
|
class: "handle"
|
|
907
|
-
},
|
|
907
|
+
}, Ft = /* @__PURE__ */ V({
|
|
908
908
|
__name: "AuthkitSignInEmailCode",
|
|
909
909
|
props: {
|
|
910
910
|
size: {
|
|
@@ -940,7 +940,7 @@ const zt = {
|
|
|
940
940
|
email: t.value.email,
|
|
941
941
|
purpose: "signIn"
|
|
942
942
|
});
|
|
943
|
-
d.value = !1, (m = f.data) != null && m.emailVerifyId && (t.value.emailVerifyId = f.data.emailVerifyId),
|
|
943
|
+
d.value = !1, (m = f.data) != null && m.emailVerifyId && (t.value.emailVerifyId = f.data.emailVerifyId), W(s.value, f);
|
|
944
944
|
}
|
|
945
945
|
}
|
|
946
946
|
async function l() {
|
|
@@ -953,7 +953,7 @@ const zt = {
|
|
|
953
953
|
});
|
|
954
954
|
});
|
|
955
955
|
}
|
|
956
|
-
return (w, m) => (o(), S("div",
|
|
956
|
+
return (w, m) => (o(), S("div", Lt, [i(e(E), {
|
|
957
957
|
ref_key: "formRef",
|
|
958
958
|
ref: v,
|
|
959
959
|
model: t.value,
|
|
@@ -986,12 +986,12 @@ const zt = {
|
|
|
986
986
|
message: "请输入验证码"
|
|
987
987
|
}]
|
|
988
988
|
}, {
|
|
989
|
-
default: c(() => [_("div",
|
|
989
|
+
default: c(() => [_("div", Bt, [i(e(C), {
|
|
990
990
|
modelValue: t.value.code,
|
|
991
991
|
"onUpdate:modelValue": m[1] || (m[1] = (f) => t.value.code = f),
|
|
992
992
|
placeholder: "请输入验证码",
|
|
993
993
|
autocomplete: "one-time-code"
|
|
994
|
-
}, null, 8, ["modelValue"]), i(
|
|
994
|
+
}, null, 8, ["modelValue"]), i(K, {
|
|
995
995
|
ref_key: "SendVerifyCodeRef",
|
|
996
996
|
ref: s,
|
|
997
997
|
size: a.size,
|
|
@@ -1002,7 +1002,7 @@ const zt = {
|
|
|
1002
1002
|
onSend: p
|
|
1003
1003
|
}, null, 8, ["size", "loading"])])]),
|
|
1004
1004
|
_: 1
|
|
1005
|
-
}), _("div",
|
|
1005
|
+
}), _("div", Mt, [i(e(L), {
|
|
1006
1006
|
type: "primary",
|
|
1007
1007
|
loading: a.loading,
|
|
1008
1008
|
long: "",
|
|
@@ -1027,11 +1027,11 @@ const zt = {
|
|
|
1027
1027
|
_: 1
|
|
1028
1028
|
}, 8, ["model", "size"])]));
|
|
1029
1029
|
}
|
|
1030
|
-
}),
|
|
1030
|
+
}), Dt = /* @__PURE__ */ U(Ft, [["__scopeId", "data-v-00a65922"]]), Ht = {
|
|
1031
1031
|
class: "SwitchSignUpOrResetPassword"
|
|
1032
|
-
},
|
|
1032
|
+
}, Et = {
|
|
1033
1033
|
key: 0
|
|
1034
|
-
},
|
|
1034
|
+
}, Gt = /* @__PURE__ */ V({
|
|
1035
1035
|
__name: "AuthkitSwitchSignUpOrResetPassword",
|
|
1036
1036
|
props: {
|
|
1037
1037
|
showSignUp: {
|
|
@@ -1054,7 +1054,7 @@ const zt = {
|
|
|
1054
1054
|
function g() {
|
|
1055
1055
|
r("switchResetPassword");
|
|
1056
1056
|
}
|
|
1057
|
-
return (a, s) => (o(), S("div",
|
|
1057
|
+
return (a, s) => (o(), S("div", Ht, [n.showSignUp ? (o(), S("span", Et, [s[1] || (s[1] = _("span", null, " 还没有账户?", -1)), i(e(Y), {
|
|
1058
1058
|
style: {
|
|
1059
1059
|
padding: "0px"
|
|
1060
1060
|
},
|
|
@@ -1073,9 +1073,9 @@ const zt = {
|
|
|
1073
1073
|
_: 1
|
|
1074
1074
|
})) : I("", !0)]));
|
|
1075
1075
|
}
|
|
1076
|
-
}),
|
|
1076
|
+
}), Nt = /* @__PURE__ */ U(Gt, [["__scopeId", "data-v-6ca7b1f2"]]), jt = {
|
|
1077
1077
|
class: "SignIn"
|
|
1078
|
-
},
|
|
1078
|
+
}, Kt = {
|
|
1079
1079
|
key: 0,
|
|
1080
1080
|
class: "tabsContainer"
|
|
1081
1081
|
}, Wt = /* @__PURE__ */ V({
|
|
@@ -1128,7 +1128,7 @@ const zt = {
|
|
|
1128
1128
|
...y
|
|
1129
1129
|
});
|
|
1130
1130
|
}
|
|
1131
|
-
return (y, k) => (o(), S("div",
|
|
1131
|
+
return (y, k) => (o(), S("div", jt, [p.value.length > 1 ? (o(), S("div", Kt, [i(e(ce), {
|
|
1132
1132
|
"active-key": l.value,
|
|
1133
1133
|
"onUpdate:activeKey": k[0] || (k[0] = (T) => l.value = T)
|
|
1134
1134
|
}, {
|
|
@@ -1137,38 +1137,38 @@ const zt = {
|
|
|
1137
1137
|
title: T.title
|
|
1138
1138
|
}, null, 8, ["title"]))), 128))]),
|
|
1139
1139
|
_: 1
|
|
1140
|
-
}, 8, ["active-key"])])) : I("", !0), l.value === "password" && (d.value.login.emailPassword || d.value.login.phonePassword) ? (o(), z(
|
|
1140
|
+
}, 8, ["active-key"])])) : I("", !0), l.value === "password" && (d.value.login.emailPassword || d.value.login.phonePassword) ? (o(), z(Ut, {
|
|
1141
1141
|
key: 1,
|
|
1142
1142
|
loading: r.loading,
|
|
1143
1143
|
size: r.size,
|
|
1144
1144
|
"allow-phone": d.value.login.phonePassword,
|
|
1145
1145
|
onSubmit: f
|
|
1146
|
-
}, null, 8, ["loading", "size", "allow-phone"])) : l.value === "phoneCode" ? (o(), z(
|
|
1146
|
+
}, null, 8, ["loading", "size", "allow-phone"])) : l.value === "phoneCode" ? (o(), z(xt, {
|
|
1147
1147
|
key: 2,
|
|
1148
1148
|
loading: r.loading,
|
|
1149
1149
|
size: r.size,
|
|
1150
1150
|
onSubmit: f
|
|
1151
|
-
}, null, 8, ["loading", "size"])) : l.value === "emailCode" ? (o(), z(
|
|
1151
|
+
}, null, 8, ["loading", "size"])) : l.value === "emailCode" ? (o(), z(Dt, {
|
|
1152
1152
|
key: 3,
|
|
1153
1153
|
loading: r.loading,
|
|
1154
1154
|
size: r.size,
|
|
1155
1155
|
onSubmit: f
|
|
1156
1156
|
}, null, 8, ["loading", "size"])) : I("", !0), g.value ? Z(y.$slots, "OAuth", {
|
|
1157
1157
|
key: 4
|
|
1158
|
-
}, void 0, !0) : I("", !0), i(
|
|
1158
|
+
}, void 0, !0) : I("", !0), i(Nt, {
|
|
1159
1159
|
"show-sign-up": v.value,
|
|
1160
1160
|
"show-reset-password": t.value,
|
|
1161
1161
|
onSwitchSignUp: w,
|
|
1162
1162
|
onSwitchResetPassword: m
|
|
1163
1163
|
}, null, 8, ["show-sign-up", "show-reset-password"])]));
|
|
1164
1164
|
}
|
|
1165
|
-
}),
|
|
1165
|
+
}), Jt = /* @__PURE__ */ U(Wt, [["__scopeId", "data-v-fc20af9d"]]), Qt = {
|
|
1166
1166
|
class: "content"
|
|
1167
|
-
}, Qt = {
|
|
1168
|
-
class: "sendVerifyCodeItem"
|
|
1169
1167
|
}, Xt = {
|
|
1168
|
+
class: "sendVerifyCodeItem"
|
|
1169
|
+
}, Yt = {
|
|
1170
1170
|
class: "handle"
|
|
1171
|
-
},
|
|
1171
|
+
}, Zt = /* @__PURE__ */ V({
|
|
1172
1172
|
__name: "AuthkitEmailUpdate",
|
|
1173
1173
|
props: {
|
|
1174
1174
|
size: {
|
|
@@ -1214,7 +1214,7 @@ const zt = {
|
|
|
1214
1214
|
email: t.value.email,
|
|
1215
1215
|
purpose: a.purpose
|
|
1216
1216
|
});
|
|
1217
|
-
d.value = !1, m.data && (t.value.emailVerifyId = m.data.emailVerifyId),
|
|
1217
|
+
d.value = !1, m.data && (t.value.emailVerifyId = m.data.emailVerifyId), W(s.value, m);
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
1220
1220
|
async function l() {
|
|
@@ -1222,7 +1222,7 @@ const zt = {
|
|
|
1222
1222
|
w || n("submit", t.value);
|
|
1223
1223
|
});
|
|
1224
1224
|
}
|
|
1225
|
-
return (w, m) => (o(), S("div",
|
|
1225
|
+
return (w, m) => (o(), S("div", Qt, [i(e(E), {
|
|
1226
1226
|
ref_key: "formRef",
|
|
1227
1227
|
ref: v,
|
|
1228
1228
|
model: t.value,
|
|
@@ -1258,12 +1258,12 @@ const zt = {
|
|
|
1258
1258
|
message: "请输入验证码"
|
|
1259
1259
|
}]
|
|
1260
1260
|
}, {
|
|
1261
|
-
default: c(() => [_("div",
|
|
1261
|
+
default: c(() => [_("div", Xt, [i(e(C), {
|
|
1262
1262
|
modelValue: t.value.userToken,
|
|
1263
1263
|
"onUpdate:modelValue": m[1] || (m[1] = (f) => t.value.userToken = f),
|
|
1264
1264
|
placeholder: "请输入验证码",
|
|
1265
1265
|
autocomplete: "one-time-code"
|
|
1266
|
-
}, null, 8, ["modelValue"]), i(
|
|
1266
|
+
}, null, 8, ["modelValue"]), i(K, {
|
|
1267
1267
|
ref_key: "SendVerifyCodeRef",
|
|
1268
1268
|
ref: s,
|
|
1269
1269
|
size: a.size,
|
|
@@ -1333,7 +1333,7 @@ const zt = {
|
|
|
1333
1333
|
autocomplete: "off"
|
|
1334
1334
|
}, null, 8, ["modelValue"])]),
|
|
1335
1335
|
_: 1
|
|
1336
|
-
}), _("div",
|
|
1336
|
+
}), _("div", Yt, [i(e(L), {
|
|
1337
1337
|
type: "primary",
|
|
1338
1338
|
loading: a.loading,
|
|
1339
1339
|
long: "",
|
|
@@ -1358,15 +1358,15 @@ const zt = {
|
|
|
1358
1358
|
_: 1
|
|
1359
1359
|
}, 8, ["model", "size"])]));
|
|
1360
1360
|
}
|
|
1361
|
-
}),
|
|
1361
|
+
}), es = /* @__PURE__ */ U(Zt, [["__scopeId", "data-v-07ef9d49"]]), ts = {
|
|
1362
1362
|
class: "SignUpPhone"
|
|
1363
|
-
}, ts = {
|
|
1364
|
-
class: "content"
|
|
1365
1363
|
}, ss = {
|
|
1366
|
-
class: "
|
|
1364
|
+
class: "content"
|
|
1367
1365
|
}, is = {
|
|
1366
|
+
class: "sendVerifyCodeItem"
|
|
1367
|
+
}, as = {
|
|
1368
1368
|
class: "handle"
|
|
1369
|
-
},
|
|
1369
|
+
}, os = /* @__PURE__ */ V({
|
|
1370
1370
|
__name: "AuthkitSignUpPhone",
|
|
1371
1371
|
props: {
|
|
1372
1372
|
size: {
|
|
@@ -1423,7 +1423,7 @@ const zt = {
|
|
|
1423
1423
|
phone: t.value.phone,
|
|
1424
1424
|
purpose: "signUp"
|
|
1425
1425
|
});
|
|
1426
|
-
d.value = !1,
|
|
1426
|
+
d.value = !1, W(s.value, y);
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
1429
|
async function m() {
|
|
@@ -1437,7 +1437,7 @@ const zt = {
|
|
|
1437
1437
|
});
|
|
1438
1438
|
});
|
|
1439
1439
|
}
|
|
1440
|
-
return (f, y) => (o(), S("div",
|
|
1440
|
+
return (f, y) => (o(), S("div", ts, [_("div", ss, [i(e(E), {
|
|
1441
1441
|
ref_key: "formRef",
|
|
1442
1442
|
ref: v,
|
|
1443
1443
|
model: t.value,
|
|
@@ -1473,12 +1473,12 @@ const zt = {
|
|
|
1473
1473
|
message: "请输入验证码"
|
|
1474
1474
|
}]
|
|
1475
1475
|
}, {
|
|
1476
|
-
default: c(() => [_("div",
|
|
1476
|
+
default: c(() => [_("div", is, [i(e(C), {
|
|
1477
1477
|
modelValue: t.value.code,
|
|
1478
1478
|
"onUpdate:modelValue": y[1] || (y[1] = (k) => t.value.code = k),
|
|
1479
1479
|
placeholder: "请输入验证码",
|
|
1480
1480
|
autocomplete: "one-time-code"
|
|
1481
|
-
}, null, 8, ["modelValue"]), i(
|
|
1481
|
+
}, null, 8, ["modelValue"]), i(K, {
|
|
1482
1482
|
ref_key: "SendVerifyCodeRef",
|
|
1483
1483
|
ref: s,
|
|
1484
1484
|
size: a.size,
|
|
@@ -1540,7 +1540,7 @@ const zt = {
|
|
|
1540
1540
|
autocomplete: "off"
|
|
1541
1541
|
}, null, 8, ["modelValue"])]),
|
|
1542
1542
|
_: 1
|
|
1543
|
-
}), _("div",
|
|
1543
|
+
}), _("div", as, [i(e(L), {
|
|
1544
1544
|
type: "primary",
|
|
1545
1545
|
loading: a.loading,
|
|
1546
1546
|
long: "",
|
|
@@ -1567,21 +1567,21 @@ const zt = {
|
|
|
1567
1567
|
onSwitchSignIn: l
|
|
1568
1568
|
})]));
|
|
1569
1569
|
}
|
|
1570
|
-
}),
|
|
1570
|
+
}), ls = /* @__PURE__ */ U(os, [["__scopeId", "data-v-d0af58fd"]]), ns = {
|
|
1571
1571
|
class: "SignUp"
|
|
1572
|
-
},
|
|
1572
|
+
}, rs = {
|
|
1573
1573
|
key: 0,
|
|
1574
1574
|
class: "tabsContainer"
|
|
1575
|
-
},
|
|
1575
|
+
}, us = {
|
|
1576
1576
|
key: 1,
|
|
1577
1577
|
class: "empty"
|
|
1578
|
-
},
|
|
1578
|
+
}, ds = {
|
|
1579
1579
|
key: 2,
|
|
1580
1580
|
class: "empty"
|
|
1581
|
-
},
|
|
1581
|
+
}, cs = {
|
|
1582
1582
|
key: 2,
|
|
1583
1583
|
class: "empty"
|
|
1584
|
-
},
|
|
1584
|
+
}, ps = /* @__PURE__ */ V({
|
|
1585
1585
|
__name: "AuthkitSignUp",
|
|
1586
1586
|
props: {
|
|
1587
1587
|
size: {
|
|
@@ -1626,7 +1626,7 @@ const zt = {
|
|
|
1626
1626
|
...l
|
|
1627
1627
|
});
|
|
1628
1628
|
}
|
|
1629
|
-
return (l, w) => (o(), S("div",
|
|
1629
|
+
return (l, w) => (o(), S("div", ns, [d.value.length > 1 ? (o(), S("div", rs, [i(e(ce), {
|
|
1630
1630
|
"active-key": v.value,
|
|
1631
1631
|
"onUpdate:activeKey": w[0] || (w[0] = (m) => v.value = m)
|
|
1632
1632
|
}, {
|
|
@@ -1635,25 +1635,25 @@ const zt = {
|
|
|
1635
1635
|
title: m.title
|
|
1636
1636
|
}, null, 8, ["title"]))), 128))]),
|
|
1637
1637
|
_: 1
|
|
1638
|
-
}, 8, ["active-key"])])) : I("", !0), e(a) ? e(g) ? (o(), S("div",
|
|
1638
|
+
}, 8, ["active-key"])])) : I("", !0), e(a) ? e(g) ? (o(), S("div", ds, " 管理员尚未配置用户协议或隐私政策,暂无法注册。 ")) : (o(), S(D, {
|
|
1639
1639
|
key: 3
|
|
1640
|
-
}, [v.value === "email" && s.value.signUp.email ? (o(), z(
|
|
1640
|
+
}, [v.value === "email" && s.value.signUp.email ? (o(), z(es, {
|
|
1641
1641
|
key: 0,
|
|
1642
1642
|
size: r.size,
|
|
1643
1643
|
loading: b.loading,
|
|
1644
1644
|
onSubmit: p
|
|
1645
|
-
}, null, 8, ["size", "loading"])) : v.value === "phone" && s.value.signUp.phone ? (o(), z(
|
|
1645
|
+
}, null, 8, ["size", "loading"])) : v.value === "phone" && s.value.signUp.phone ? (o(), z(ls, {
|
|
1646
1646
|
key: 1,
|
|
1647
1647
|
size: r.size,
|
|
1648
1648
|
loading: b.loading,
|
|
1649
1649
|
onSubmit: p,
|
|
1650
1650
|
onSwitchSignIn: t
|
|
1651
|
-
}, null, 8, ["size", "loading"])) : (o(), S("div",
|
|
1651
|
+
}, null, 8, ["size", "loading"])) : (o(), S("div", cs, " 当前应用未开放用户注册 ")), v.value === "email" ? (o(), z(fe, {
|
|
1652
1652
|
key: 3,
|
|
1653
1653
|
onSwitchSignIn: t
|
|
1654
|
-
})) : I("", !0)], 64)) : (o(), S("div",
|
|
1654
|
+
})) : I("", !0)], 64)) : (o(), S("div", us, " 系统已停止用户注册 "))]));
|
|
1655
1655
|
}
|
|
1656
|
-
}),
|
|
1656
|
+
}), ms = /* @__PURE__ */ U(ps, [["__scopeId", "data-v-b211d5ef"]]), fs = ["src"], vs = /* @__PURE__ */ V({
|
|
1657
1657
|
__name: "AuthkitAuthTitle",
|
|
1658
1658
|
props: {
|
|
1659
1659
|
size: {
|
|
@@ -1691,13 +1691,13 @@ const zt = {
|
|
|
1691
1691
|
style: G({
|
|
1692
1692
|
width: n
|
|
1693
1693
|
})
|
|
1694
|
-
}, null, 12,
|
|
1694
|
+
}, null, 12, fs)) : I("", !0), _("span", null, M(s.value), 1), Z(d.$slots, "default", {}, void 0, !0)], 4));
|
|
1695
1695
|
}
|
|
1696
|
-
}), Ve = /* @__PURE__ */ U(
|
|
1696
|
+
}), Ve = /* @__PURE__ */ U(vs, [["__scopeId", "data-v-8ebe7939"]]), gs = {
|
|
1697
1697
|
class: "Auth"
|
|
1698
|
-
},
|
|
1698
|
+
}, hs = {
|
|
1699
1699
|
class: "body"
|
|
1700
|
-
},
|
|
1700
|
+
}, ys = /* @__PURE__ */ V({
|
|
1701
1701
|
__name: "AuthkitAuth",
|
|
1702
1702
|
props: {
|
|
1703
1703
|
size: {
|
|
@@ -1723,11 +1723,11 @@ const zt = {
|
|
|
1723
1723
|
switchResetPassword: p,
|
|
1724
1724
|
switchSignIn: l
|
|
1725
1725
|
} = N();
|
|
1726
|
-
return (w, m) => (o(), S("div",
|
|
1726
|
+
return (w, m) => (o(), S("div", gs, [b.showTitle ? (o(), z(Ve, {
|
|
1727
1727
|
key: 0,
|
|
1728
1728
|
size: 32,
|
|
1729
1729
|
"font-size": 20
|
|
1730
|
-
})) : I("", !0), _("div",
|
|
1730
|
+
})) : I("", !0), _("div", hs, [e(a) === "signIn" ? (o(), z(Jt, {
|
|
1731
1731
|
key: 0,
|
|
1732
1732
|
size: u.size,
|
|
1733
1733
|
loading: e(s),
|
|
@@ -1735,18 +1735,18 @@ const zt = {
|
|
|
1735
1735
|
onSwitchResetPassword: e(p),
|
|
1736
1736
|
onSubmit: m[0] || (m[0] = (f) => e(n)(f))
|
|
1737
1737
|
}, {
|
|
1738
|
-
OAuth: c(() => [i(
|
|
1738
|
+
OAuth: c(() => [i(ot, {
|
|
1739
1739
|
size: u.size,
|
|
1740
1740
|
onPasskeySubmit: e(r)
|
|
1741
1741
|
}, null, 8, ["size", "onPasskeySubmit"])]),
|
|
1742
1742
|
_: 1
|
|
1743
|
-
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(a) === "signUp" ? (o(), z(
|
|
1743
|
+
}, 8, ["size", "loading", "onSwitchSignUp", "onSwitchResetPassword"])) : e(a) === "signUp" ? (o(), z(ms, {
|
|
1744
1744
|
key: 1,
|
|
1745
1745
|
size: u.size,
|
|
1746
1746
|
loading: e(d),
|
|
1747
1747
|
onSwitchSignIn: e(l),
|
|
1748
1748
|
onSubmit: m[1] || (m[1] = (f) => e(h)(f))
|
|
1749
|
-
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(a) === "resetPassword" ? (o(), z(
|
|
1749
|
+
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : e(a) === "resetPassword" ? (o(), z(_t, {
|
|
1750
1750
|
key: 2,
|
|
1751
1751
|
size: u.size,
|
|
1752
1752
|
loading: e(v),
|
|
@@ -1754,7 +1754,7 @@ const zt = {
|
|
|
1754
1754
|
onSubmit: m[2] || (m[2] = (f) => e(g)(f))
|
|
1755
1755
|
}, null, 8, ["size", "loading", "onSwitchSignIn"])) : I("", !0)])]));
|
|
1756
1756
|
}
|
|
1757
|
-
}),
|
|
1757
|
+
}), bs = /* @__PURE__ */ U(ys, [["__scopeId", "data-v-41b6adcc"]]), ws = /* @__PURE__ */ V({
|
|
1758
1758
|
__name: "AuthkitAuthModal",
|
|
1759
1759
|
props: {
|
|
1760
1760
|
size: {
|
|
@@ -1794,14 +1794,14 @@ const zt = {
|
|
|
1794
1794
|
onClose: d
|
|
1795
1795
|
}, {
|
|
1796
1796
|
title: c(() => [i(Ve)]),
|
|
1797
|
-
default: c(() => [i(
|
|
1797
|
+
default: c(() => [i(bs, {
|
|
1798
1798
|
"show-title": !1,
|
|
1799
1799
|
size: b.size
|
|
1800
1800
|
}, null, 8, ["size"])]),
|
|
1801
1801
|
_: 1
|
|
1802
1802
|
}));
|
|
1803
1803
|
}
|
|
1804
|
-
}),
|
|
1804
|
+
}), _s = /* @__PURE__ */ U(ws, [["__scopeId", "data-v-19a4d5d0"]]);
|
|
1805
1805
|
function Ce(b, u = {}) {
|
|
1806
1806
|
const {
|
|
1807
1807
|
bindIdentityRedirect: n = "",
|
|
@@ -1848,12 +1848,12 @@ function Ce(b, u = {}) {
|
|
|
1848
1848
|
handleOAuthCallback: d
|
|
1849
1849
|
};
|
|
1850
1850
|
}
|
|
1851
|
-
const
|
|
1851
|
+
const ks = {
|
|
1852
1852
|
key: 0,
|
|
1853
1853
|
class: "AuthkitOAuthCallbackOverlay",
|
|
1854
1854
|
"aria-live": "polite",
|
|
1855
1855
|
"aria-busy": "true"
|
|
1856
|
-
},
|
|
1856
|
+
}, Ss = /* @__PURE__ */ V({
|
|
1857
1857
|
__name: "AuthkitOAuthCallbackProvider",
|
|
1858
1858
|
props: {
|
|
1859
1859
|
bindIdentityRedirect: {
|
|
@@ -1881,7 +1881,7 @@ const _s = {
|
|
|
1881
1881
|
h();
|
|
1882
1882
|
}), (g, a) => (o(), z(Te, {
|
|
1883
1883
|
to: "body"
|
|
1884
|
-
}, [e(r) ? (o(), S("div",
|
|
1884
|
+
}, [e(r) ? (o(), S("div", ks, [...a[0] || (a[0] = [_("div", {
|
|
1885
1885
|
class: "AuthkitOAuthCallbackOverlay__panel"
|
|
1886
1886
|
}, [_("div", {
|
|
1887
1887
|
class: "AuthkitOAuthCallbackOverlay__spinner"
|
|
@@ -1889,7 +1889,7 @@ const _s = {
|
|
|
1889
1889
|
class: "AuthkitOAuthCallbackOverlay__text"
|
|
1890
1890
|
}, "正在登录...")], -1)])])) : I("", !0)]));
|
|
1891
1891
|
}
|
|
1892
|
-
}),
|
|
1892
|
+
}), zs = /* @__PURE__ */ U(Ss, [["__scopeId", "data-v-7162b776"]]), gi = /* @__PURE__ */ V({
|
|
1893
1893
|
__name: "AuthkitProvider",
|
|
1894
1894
|
props: {
|
|
1895
1895
|
handleOAuthCallback: {
|
|
@@ -1980,27 +1980,27 @@ const _s = {
|
|
|
1980
1980
|
return x || (x = R()), x;
|
|
1981
1981
|
}
|
|
1982
1982
|
return typeof window < "u" && O(), H(() => {
|
|
1983
|
-
|
|
1983
|
+
kt({
|
|
1984
1984
|
onPrivacyPolicy: k,
|
|
1985
1985
|
onUserServiceAgreement: T
|
|
1986
1986
|
});
|
|
1987
1987
|
}), de(() => {
|
|
1988
1988
|
f(), y();
|
|
1989
|
-
}), (J,
|
|
1989
|
+
}), (J, js) => (o(), S(D, null, [Z(J.$slots, "default"), r.handleOAuthCallback ? (o(), z(zs, {
|
|
1990
1990
|
key: 0,
|
|
1991
1991
|
"bind-identity-redirect": r.bindIdentityRedirect,
|
|
1992
1992
|
"close-popup-on-bind-success": r.closePopupOnBindSuccess,
|
|
1993
1993
|
"restore-redirect-after-sign-in": r.restoreRedirectAfterSignIn
|
|
1994
|
-
}, null, 8, ["bind-identity-redirect", "close-popup-on-bind-success", "restore-redirect-after-sign-in"])) : I("", !0), r.showAuthModal && e(s) ? (o(), z(
|
|
1994
|
+
}, null, 8, ["bind-identity-redirect", "close-popup-on-bind-success", "restore-redirect-after-sign-in"])) : I("", !0), r.showAuthModal && e(s) ? (o(), z(_s, {
|
|
1995
1995
|
key: 1,
|
|
1996
1996
|
size: r.authModalSize
|
|
1997
1997
|
}, null, 8, ["size"])) : I("", !0)], 64));
|
|
1998
1998
|
}
|
|
1999
|
-
}),
|
|
1999
|
+
}), Is = {
|
|
2000
2000
|
class: "header"
|
|
2001
|
-
},
|
|
2001
|
+
}, As = ["href"], Ps = {
|
|
2002
2002
|
class: "container"
|
|
2003
|
-
},
|
|
2003
|
+
}, Vs = /* @__PURE__ */ V({
|
|
2004
2004
|
__name: "AuthkitAuthContainer",
|
|
2005
2005
|
props: {
|
|
2006
2006
|
applicationLogoUrl: {
|
|
@@ -2051,7 +2051,7 @@ const _s = {
|
|
|
2051
2051
|
return (r, h) => (o(), S("div", {
|
|
2052
2052
|
class: "auth",
|
|
2053
2053
|
style: G(n.value)
|
|
2054
|
-
}, [_("div",
|
|
2054
|
+
}, [_("div", Is, [u.name ? (o(), S("a", {
|
|
2055
2055
|
key: 0,
|
|
2056
2056
|
href: u.appHomePage,
|
|
2057
2057
|
target: "_self",
|
|
@@ -2059,22 +2059,22 @@ const _s = {
|
|
|
2059
2059
|
style: G({
|
|
2060
2060
|
color: u.linkColor
|
|
2061
2061
|
})
|
|
2062
|
-
}, " 返回主页 ", 12,
|
|
2062
|
+
}, " 返回主页 ", 12, As)) : I("", !0)]), _("div", Ps, [Z(r.$slots, "default", {}, void 0, !0)])], 4));
|
|
2063
2063
|
}
|
|
2064
|
-
}),
|
|
2064
|
+
}), hi = /* @__PURE__ */ U(Vs, [["__scopeId", "data-v-0e13d3ff"]]), Cs = {
|
|
2065
2065
|
class: "box"
|
|
2066
|
-
}, Cs = {
|
|
2067
|
-
class: "title"
|
|
2068
2066
|
}, Us = {
|
|
2069
|
-
class: "
|
|
2067
|
+
class: "title"
|
|
2070
2068
|
}, $s = {
|
|
2071
|
-
class: "
|
|
2069
|
+
class: "content"
|
|
2072
2070
|
}, Rs = {
|
|
2071
|
+
class: "redirect"
|
|
2072
|
+
}, Ts = {
|
|
2073
2073
|
style: {
|
|
2074
2074
|
"font-weight": "bold",
|
|
2075
2075
|
"font-size": "12px"
|
|
2076
2076
|
}
|
|
2077
|
-
},
|
|
2077
|
+
}, qs = /* @__PURE__ */ V({
|
|
2078
2078
|
__name: "AuthkitAuthorize",
|
|
2079
2079
|
props: {
|
|
2080
2080
|
size: {
|
|
@@ -2133,7 +2133,9 @@ const _s = {
|
|
|
2133
2133
|
const {
|
|
2134
2134
|
data: a,
|
|
2135
2135
|
error: s
|
|
2136
|
-
} = await B().auth.apps.authPageInfo.post({
|
|
2136
|
+
} = await B().auth.apps.authPageInfo.post({
|
|
2137
|
+
clientKey: Je().config.clientKey
|
|
2138
|
+
});
|
|
2137
2139
|
s || !a || (r.value = {
|
|
2138
2140
|
name: a.name,
|
|
2139
2141
|
homePageUrl: a.homePageUrl || "",
|
|
@@ -2159,7 +2161,7 @@ const _s = {
|
|
|
2159
2161
|
const d = a;
|
|
2160
2162
|
window.location.href = d.authorizeUrl;
|
|
2161
2163
|
}
|
|
2162
|
-
return (a, s) => (o(), S("div",
|
|
2164
|
+
return (a, s) => (o(), S("div", Cs, [_("div", Us, M(`授权 ${r.value.name}`), 1), _("div", $s, [i(e(Le), null, {
|
|
2163
2165
|
default: c(() => [i(e(oe), null, {
|
|
2164
2166
|
default: c(() => {
|
|
2165
2167
|
var d;
|
|
@@ -2222,22 +2224,22 @@ const _s = {
|
|
|
2222
2224
|
}, {
|
|
2223
2225
|
default: c(() => [...s[2] || (s[2] = [q(" 授权 ", -1)])]),
|
|
2224
2226
|
_: 1
|
|
2225
|
-
}, 8, ["size", "loading"]), _("div",
|
|
2227
|
+
}, 8, ["size", "loading"]), _("div", Rs, [s[3] || (s[3] = _("div", {
|
|
2226
2228
|
class: "redirect-hint"
|
|
2227
|
-
}, "授权后将跳转至", -1)), _("div",
|
|
2229
|
+
}, "授权后将跳转至", -1)), _("div", Ts, M(r.value.authorizationCallback), 1)])])]));
|
|
2228
2230
|
}
|
|
2229
|
-
}),
|
|
2231
|
+
}), yi = /* @__PURE__ */ U(qs, [["__scopeId", "data-v-11c1752e"]]), Os = {
|
|
2230
2232
|
class: "oauth-callback"
|
|
2231
|
-
},
|
|
2233
|
+
}, xs = {
|
|
2232
2234
|
key: 0,
|
|
2233
2235
|
class: "callback-loading"
|
|
2234
|
-
},
|
|
2236
|
+
}, Ls = {
|
|
2235
2237
|
key: 1,
|
|
2236
2238
|
class: "callback-error"
|
|
2237
|
-
},
|
|
2239
|
+
}, Bs = {
|
|
2238
2240
|
key: 2,
|
|
2239
2241
|
class: "callback-success"
|
|
2240
|
-
},
|
|
2242
|
+
}, Ms = /* @__PURE__ */ V({
|
|
2241
2243
|
__name: "AuthkitOauthCallback",
|
|
2242
2244
|
props: {
|
|
2243
2245
|
defaultRedirect: {},
|
|
@@ -2279,28 +2281,28 @@ const _s = {
|
|
|
2279
2281
|
}
|
|
2280
2282
|
return H(() => {
|
|
2281
2283
|
t();
|
|
2282
|
-
}), (l, w) => (o(), S("div",
|
|
2284
|
+
}), (l, w) => (o(), S("div", Os, [e(d) ? (o(), S("div", xs, [w[0] || (w[0] = _("div", {
|
|
2283
2285
|
class: "spinner"
|
|
2284
|
-
}, null, -1)), _("p", null, M(n.loadingText ?? "正在登录..."), 1)])) : g.value ? (o(), S("div",
|
|
2286
|
+
}, null, -1)), _("p", null, M(n.loadingText ?? "正在登录..."), 1)])) : g.value ? (o(), S("div", Ls, [w[1] || (w[1] = _("div", {
|
|
2285
2287
|
class: "error-icon"
|
|
2286
2288
|
}, "✕", -1)), w[2] || (w[2] = _("h2", null, "登录失败", -1)), _("p", null, M(g.value), 1), _("button", {
|
|
2287
2289
|
class: "retry-btn",
|
|
2288
2290
|
type: "button",
|
|
2289
2291
|
onClick: p
|
|
2290
|
-
}, "返回重试")])) : (o(), S("div",
|
|
2292
|
+
}, "返回重试")])) : (o(), S("div", Bs, [w[3] || (w[3] = _("div", {
|
|
2291
2293
|
class: "success-icon"
|
|
2292
2294
|
}, "✓", -1)), _("p", null, M(h.value), 1)]))]));
|
|
2293
2295
|
}
|
|
2294
|
-
}),
|
|
2296
|
+
}), bi = /* @__PURE__ */ U(Ms, [["__scopeId", "data-v-98babf68"]]), Fs = {
|
|
2295
2297
|
class: "oauth-binding-account"
|
|
2296
|
-
},
|
|
2298
|
+
}, Ds = {
|
|
2297
2299
|
key: 1,
|
|
2298
2300
|
class: "oauth-binding-account__icon"
|
|
2299
|
-
}, Ds = {
|
|
2300
|
-
class: "oauth-binding-account__info"
|
|
2301
2301
|
}, Hs = {
|
|
2302
|
+
class: "oauth-binding-account__info"
|
|
2303
|
+
}, Es = {
|
|
2302
2304
|
class: "oauth-binding-account__name"
|
|
2303
|
-
},
|
|
2305
|
+
}, Gs = /* @__PURE__ */ V({
|
|
2304
2306
|
__name: "AuthkitGithubBinding",
|
|
2305
2307
|
props: {
|
|
2306
2308
|
size: {
|
|
@@ -2389,18 +2391,18 @@ const _s = {
|
|
|
2389
2391
|
}, 8, ["size"])]),
|
|
2390
2392
|
default: c(() => {
|
|
2391
2393
|
var R, O;
|
|
2392
|
-
return [_("div",
|
|
2394
|
+
return [_("div", Fs, [d.value ? (o(), z(e(te), {
|
|
2393
2395
|
key: 0,
|
|
2394
2396
|
class: "oauth-binding-account__avatar",
|
|
2395
2397
|
"image-url": d.value,
|
|
2396
2398
|
size: 42
|
|
2397
|
-
}, null, 8, ["image-url"])) : (o(), S("div",
|
|
2399
|
+
}, null, 8, ["image-url"])) : (o(), S("div", Ds, [i(ke, {
|
|
2398
2400
|
icon: e(X).github,
|
|
2399
2401
|
size: e(Ne),
|
|
2400
2402
|
alt: "GitHub"
|
|
2401
|
-
}, null, 8, ["icon", "size"])])), _("div",
|
|
2403
|
+
}, null, 8, ["icon", "size"])])), _("div", Hs, [y[4] || (y[4] = _("div", {
|
|
2402
2404
|
class: "oauth-binding-account__provider"
|
|
2403
|
-
}, "GitHub", -1)), _("div",
|
|
2405
|
+
}, "GitHub", -1)), _("div", Es, M(((O = (R = e(n)) == null ? void 0 : R.github) == null ? void 0 : O.login) || "GitHub"), 1)])])];
|
|
2404
2406
|
}),
|
|
2405
2407
|
_: 1
|
|
2406
2408
|
})) : I("", !0), h.value === "bind" || h.value === "unbind" ? (o(), z(je, {
|
|
@@ -2411,27 +2413,27 @@ const _s = {
|
|
|
2411
2413
|
}, null, 8, ["size", "email"])) : I("", !0)], 64);
|
|
2412
2414
|
};
|
|
2413
2415
|
}
|
|
2414
|
-
}),
|
|
2416
|
+
}), wi = /* @__PURE__ */ U(Gs, [["__scopeId", "data-v-1cfa8892"]]), Ns = /* @__PURE__ */ V({
|
|
2415
2417
|
__name: "LegalDocViewer",
|
|
2416
2418
|
props: {
|
|
2417
2419
|
type: {},
|
|
2418
2420
|
appId: {}
|
|
2419
2421
|
},
|
|
2420
2422
|
setup(b) {
|
|
2421
|
-
const u = b, n = $(() =>
|
|
2423
|
+
const u = b, n = $(() => Ke[u.type] ?? ""), r = A(!1), h = A(null);
|
|
2422
2424
|
async function g() {
|
|
2423
2425
|
if (!u.type || !u.appId) {
|
|
2424
2426
|
h.value = null;
|
|
2425
2427
|
return;
|
|
2426
2428
|
}
|
|
2427
2429
|
r.value = !0;
|
|
2428
|
-
const a = await
|
|
2430
|
+
const a = await Ye(u.appId);
|
|
2429
2431
|
if (r.value = !1, !a) {
|
|
2430
2432
|
h.value = null;
|
|
2431
2433
|
return;
|
|
2432
2434
|
}
|
|
2433
2435
|
const s = a[u.type];
|
|
2434
|
-
h.value =
|
|
2436
|
+
h.value = We(s) ? s : null;
|
|
2435
2437
|
}
|
|
2436
2438
|
return be(() => [u.type, u.appId], () => {
|
|
2437
2439
|
g();
|
|
@@ -2441,13 +2443,13 @@ const _s = {
|
|
|
2441
2443
|
key: 0,
|
|
2442
2444
|
loading: r.value,
|
|
2443
2445
|
class: "legal-doc-viewer-loading"
|
|
2444
|
-
}, null, 8, ["loading"])) : h.value ? (o(), z(e(
|
|
2446
|
+
}, null, 8, ["loading"])) : h.value ? (o(), z(e(Qe), {
|
|
2445
2447
|
key: 2,
|
|
2446
2448
|
modelValue: h.value,
|
|
2447
2449
|
"onUpdate:modelValue": s[1] || (s[1] = (d) => h.value = d),
|
|
2448
2450
|
editable: !1
|
|
2449
2451
|
}, {
|
|
2450
|
-
title: c(() => [i(e(
|
|
2452
|
+
title: c(() => [i(e(Xe), {
|
|
2451
2453
|
modelValue: n.value,
|
|
2452
2454
|
"onUpdate:modelValue": s[0] || (s[0] = (d) => n.value = d),
|
|
2453
2455
|
editable: !1,
|
|
@@ -2459,30 +2461,30 @@ const _s = {
|
|
|
2459
2461
|
description: "暂无内容"
|
|
2460
2462
|
}));
|
|
2461
2463
|
}
|
|
2462
|
-
}),
|
|
2464
|
+
}), _i = /* @__PURE__ */ U(Ns, [["__scopeId", "data-v-fe9a3621"]]);
|
|
2463
2465
|
export {
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2466
|
+
bs as A,
|
|
2467
|
+
es as E,
|
|
2468
|
+
_i as L,
|
|
2467
2469
|
Q as O,
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
+
Ut as P,
|
|
2471
|
+
_t as R,
|
|
2470
2472
|
ee as S,
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2473
|
+
gi as _,
|
|
2474
|
+
hi as a,
|
|
2475
|
+
_s as b,
|
|
2474
2476
|
Ve as c,
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2477
|
+
yi as d,
|
|
2478
|
+
wi as e,
|
|
2479
|
+
zs as f,
|
|
2480
|
+
bi as g,
|
|
2481
|
+
ot as h,
|
|
2482
|
+
dt as i,
|
|
2483
|
+
ft as j,
|
|
2484
|
+
Jt as k,
|
|
2485
|
+
xt as l,
|
|
2486
|
+
ms as m,
|
|
2487
|
+
ls as n,
|
|
2486
2488
|
fe as o,
|
|
2487
|
-
|
|
2489
|
+
Nt as p
|
|
2488
2490
|
};
|