@springmicro/auth 0.7.23 → 0.7.25
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/{Index-1e31d199-BKxhThhF.js → Index-1e31d199-DiydMG-s.js} +1 -1
- package/dist/{Index-6078f122-DZtwh1V7.js → Index-6078f122-z4J_9BlE.js} +1 -1
- package/dist/{Web3Auth-CYZ2tXRd.js → Web3Auth-CME9gR8B.js} +10 -10
- package/dist/{hashTypedData-DSWDPZpk.js → hashTypedData-CAAkeo5c.js} +1 -1
- package/dist/{index-k1B2fiIe.js → index-BYLDc8k7.js} +1 -1
- package/dist/{index-DcaYmCtZ.js → index-CWFV6iFe.js} +6 -6
- package/dist/{index-BQclNTiM.js → index-CzV6f8Bf.js} +1751 -1400
- package/dist/{index-DEONFj0_.js → index-D0h3JWmA.js} +1 -1
- package/dist/{index-C_5temok.js → index-DEtR9YbW.js} +2 -2
- package/dist/{index-nqI1BAVh.js → index-DmCe4Nu2.js} +3 -3
- package/dist/{index-D43Guca7.js → index-DqejTKnM.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +146 -138
- package/dist/{number-D7MFtzNG.js → number-BuO_I8eR.js} +1 -1
- package/dist/{parseEther-B1tMovDx.js → parseEther-DJTzVZbo.js} +1 -1
- package/package.json +4 -4
|
@@ -1,416 +1,767 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import
|
|
4
|
-
var
|
|
1
|
+
import m, { useEffect as Bt } from "react";
|
|
2
|
+
import { useTranslation as Le, initReactI18next as $n, I18nextProvider as kn } from "react-i18next";
|
|
3
|
+
import K from "i18next";
|
|
4
|
+
var Je = { exports: {} }, ye = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
|
-
* react-jsx-runtime.production.js
|
|
7
|
+
* react-jsx-runtime.production.min.js
|
|
8
8
|
*
|
|
9
|
-
* Copyright (c)
|
|
9
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10
10
|
*
|
|
11
11
|
* This source code is licensed under the MIT license found in the
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
if (
|
|
17
|
-
|
|
18
|
-
var t = Symbol.for("react.
|
|
19
|
-
function
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} else l = a;
|
|
26
|
-
return a = l.ref, {
|
|
27
|
-
$$typeof: t,
|
|
28
|
-
type: i,
|
|
29
|
-
key: r,
|
|
30
|
-
ref: a !== void 0 ? a : null,
|
|
31
|
-
props: l
|
|
32
|
-
};
|
|
14
|
+
var yt;
|
|
15
|
+
function Sn() {
|
|
16
|
+
if (yt) return ye;
|
|
17
|
+
yt = 1;
|
|
18
|
+
var t = m, e = Symbol.for("react.element"), o = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
19
|
+
function c(g, u, f) {
|
|
20
|
+
var h, k = {}, w = null, x = null;
|
|
21
|
+
f !== void 0 && (w = "" + f), u.key !== void 0 && (w = "" + u.key), u.ref !== void 0 && (x = u.ref);
|
|
22
|
+
for (h in u) r.call(u, h) && !l.hasOwnProperty(h) && (k[h] = u[h]);
|
|
23
|
+
if (g && g.defaultProps) for (h in u = g.defaultProps, u) k[h] === void 0 && (k[h] = u[h]);
|
|
24
|
+
return { $$typeof: e, type: g, key: w, ref: x, props: k, _owner: i.current };
|
|
33
25
|
}
|
|
34
|
-
return
|
|
26
|
+
return ye.Fragment = o, ye.jsx = c, ye.jsxs = c, ye;
|
|
35
27
|
}
|
|
36
|
-
var
|
|
28
|
+
var we = {};
|
|
37
29
|
/**
|
|
38
30
|
* @license React
|
|
39
31
|
* react-jsx-runtime.development.js
|
|
40
32
|
*
|
|
41
|
-
* Copyright (c)
|
|
33
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
42
34
|
*
|
|
43
35
|
* This source code is licensed under the MIT license found in the
|
|
44
36
|
* LICENSE file in the root directory of this source tree.
|
|
45
37
|
*/
|
|
46
|
-
var
|
|
47
|
-
function
|
|
48
|
-
return
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
if (typeof
|
|
52
|
-
return
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
38
|
+
var wt;
|
|
39
|
+
function _n() {
|
|
40
|
+
return wt || (wt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
41
|
+
var t = m, e = Symbol.for("react.element"), o = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), g = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), A = Symbol.iterator, U = "@@iterator";
|
|
42
|
+
function Q(n) {
|
|
43
|
+
if (n === null || typeof n != "object")
|
|
44
|
+
return null;
|
|
45
|
+
var s = A && n[A] || n[U];
|
|
46
|
+
return typeof s == "function" ? s : null;
|
|
47
|
+
}
|
|
48
|
+
var R = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
49
|
+
function b(n) {
|
|
50
|
+
{
|
|
51
|
+
for (var s = arguments.length, p = new Array(s > 1 ? s - 1 : 0), y = 1; y < s; y++)
|
|
52
|
+
p[y - 1] = arguments[y];
|
|
53
|
+
E("error", n, p);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function E(n, s, p) {
|
|
57
|
+
{
|
|
58
|
+
var y = R.ReactDebugCurrentFrame, S = y.getStackAddendum();
|
|
59
|
+
S !== "" && (s += "%s", p = p.concat([S]));
|
|
60
|
+
var _ = p.map(function($) {
|
|
61
|
+
return String($);
|
|
62
|
+
});
|
|
63
|
+
_.unshift("Warning: " + s), Function.prototype.apply.call(console[n], console, _);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
var M = !1, W = !1, ie = !1, pe = !1, ne = !1, I;
|
|
67
|
+
I = Symbol.for("react.module.reference");
|
|
68
|
+
function Me(n) {
|
|
69
|
+
return !!(typeof n == "string" || typeof n == "function" || n === r || n === l || ne || n === i || n === f || n === h || pe || n === x || M || W || ie || typeof n == "object" && n !== null && (n.$$typeof === w || n.$$typeof === k || n.$$typeof === c || n.$$typeof === g || n.$$typeof === u || // This needs to include all possible module reference object
|
|
70
|
+
// types supported by any Flight configuration anywhere since
|
|
71
|
+
// we don't know which Flight build this will end up being used
|
|
72
|
+
// with.
|
|
73
|
+
n.$$typeof === I || n.getModuleId !== void 0));
|
|
74
|
+
}
|
|
75
|
+
function ge(n, s, p) {
|
|
76
|
+
var y = n.displayName;
|
|
77
|
+
if (y)
|
|
78
|
+
return y;
|
|
79
|
+
var S = s.displayName || s.name || "";
|
|
80
|
+
return S !== "" ? p + "(" + S + ")" : p;
|
|
81
|
+
}
|
|
82
|
+
function he(n) {
|
|
83
|
+
return n.displayName || "Context";
|
|
84
|
+
}
|
|
85
|
+
function J(n) {
|
|
86
|
+
if (n == null)
|
|
87
|
+
return null;
|
|
88
|
+
if (typeof n.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
89
|
+
return n.displayName || n.name || null;
|
|
90
|
+
if (typeof n == "string")
|
|
91
|
+
return n;
|
|
92
|
+
switch (n) {
|
|
93
|
+
case r:
|
|
56
94
|
return "Fragment";
|
|
57
|
-
case
|
|
95
|
+
case o:
|
|
96
|
+
return "Portal";
|
|
97
|
+
case l:
|
|
58
98
|
return "Profiler";
|
|
59
|
-
case
|
|
99
|
+
case i:
|
|
60
100
|
return "StrictMode";
|
|
61
|
-
case
|
|
101
|
+
case f:
|
|
62
102
|
return "Suspense";
|
|
63
|
-
case
|
|
103
|
+
case h:
|
|
64
104
|
return "SuspenseList";
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return "
|
|
74
|
-
case
|
|
75
|
-
return
|
|
76
|
-
case
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
case V:
|
|
82
|
-
return h = c.displayName || null, h !== null ? h : t(c.type) || "Memo";
|
|
83
|
-
case z:
|
|
84
|
-
h = c._payload, c = c._init;
|
|
105
|
+
}
|
|
106
|
+
if (typeof n == "object")
|
|
107
|
+
switch (n.$$typeof) {
|
|
108
|
+
case g:
|
|
109
|
+
var s = n;
|
|
110
|
+
return he(s) + ".Consumer";
|
|
111
|
+
case c:
|
|
112
|
+
var p = n;
|
|
113
|
+
return he(p._context) + ".Provider";
|
|
114
|
+
case u:
|
|
115
|
+
return ge(n, n.render, "ForwardRef");
|
|
116
|
+
case k:
|
|
117
|
+
var y = n.displayName || null;
|
|
118
|
+
return y !== null ? y : J(n.type) || "Memo";
|
|
119
|
+
case w: {
|
|
120
|
+
var S = n, _ = S._payload, $ = S._init;
|
|
85
121
|
try {
|
|
86
|
-
return
|
|
122
|
+
return J($(_));
|
|
87
123
|
} catch {
|
|
124
|
+
return null;
|
|
88
125
|
}
|
|
126
|
+
}
|
|
89
127
|
}
|
|
90
128
|
return null;
|
|
91
129
|
}
|
|
92
|
-
|
|
93
|
-
|
|
130
|
+
var Z = Object.assign, re = 0, $e, ke, T, ze, Ze, Xe, et;
|
|
131
|
+
function tt() {
|
|
132
|
+
}
|
|
133
|
+
tt.__reactDisabledLog = !0;
|
|
134
|
+
function Yt() {
|
|
135
|
+
{
|
|
136
|
+
if (re === 0) {
|
|
137
|
+
$e = console.log, ke = console.info, T = console.warn, ze = console.error, Ze = console.group, Xe = console.groupCollapsed, et = console.groupEnd;
|
|
138
|
+
var n = {
|
|
139
|
+
configurable: !0,
|
|
140
|
+
enumerable: !0,
|
|
141
|
+
value: tt,
|
|
142
|
+
writable: !0
|
|
143
|
+
};
|
|
144
|
+
Object.defineProperties(console, {
|
|
145
|
+
info: n,
|
|
146
|
+
log: n,
|
|
147
|
+
warn: n,
|
|
148
|
+
error: n,
|
|
149
|
+
group: n,
|
|
150
|
+
groupCollapsed: n,
|
|
151
|
+
groupEnd: n
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
re++;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
function Kt() {
|
|
158
|
+
{
|
|
159
|
+
if (re--, re === 0) {
|
|
160
|
+
var n = {
|
|
161
|
+
configurable: !0,
|
|
162
|
+
enumerable: !0,
|
|
163
|
+
writable: !0
|
|
164
|
+
};
|
|
165
|
+
Object.defineProperties(console, {
|
|
166
|
+
log: Z({}, n, {
|
|
167
|
+
value: $e
|
|
168
|
+
}),
|
|
169
|
+
info: Z({}, n, {
|
|
170
|
+
value: ke
|
|
171
|
+
}),
|
|
172
|
+
warn: Z({}, n, {
|
|
173
|
+
value: T
|
|
174
|
+
}),
|
|
175
|
+
error: Z({}, n, {
|
|
176
|
+
value: ze
|
|
177
|
+
}),
|
|
178
|
+
group: Z({}, n, {
|
|
179
|
+
value: Ze
|
|
180
|
+
}),
|
|
181
|
+
groupCollapsed: Z({}, n, {
|
|
182
|
+
value: Xe
|
|
183
|
+
}),
|
|
184
|
+
groupEnd: Z({}, n, {
|
|
185
|
+
value: et
|
|
186
|
+
})
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
re < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
var Oe = R.ReactCurrentDispatcher, Be;
|
|
193
|
+
function Se(n, s, p) {
|
|
194
|
+
{
|
|
195
|
+
if (Be === void 0)
|
|
196
|
+
try {
|
|
197
|
+
throw Error();
|
|
198
|
+
} catch (S) {
|
|
199
|
+
var y = S.stack.trim().match(/\n( *(at )?)/);
|
|
200
|
+
Be = y && y[1] || "";
|
|
201
|
+
}
|
|
202
|
+
return `
|
|
203
|
+
` + Be + n;
|
|
204
|
+
}
|
|
94
205
|
}
|
|
95
|
-
|
|
206
|
+
var Pe = !1, _e;
|
|
207
|
+
{
|
|
208
|
+
var Jt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
209
|
+
_e = new Jt();
|
|
210
|
+
}
|
|
211
|
+
function nt(n, s) {
|
|
212
|
+
if (!n || Pe)
|
|
213
|
+
return "";
|
|
214
|
+
{
|
|
215
|
+
var p = _e.get(n);
|
|
216
|
+
if (p !== void 0)
|
|
217
|
+
return p;
|
|
218
|
+
}
|
|
219
|
+
var y;
|
|
220
|
+
Pe = !0;
|
|
221
|
+
var S = Error.prepareStackTrace;
|
|
222
|
+
Error.prepareStackTrace = void 0;
|
|
223
|
+
var _;
|
|
224
|
+
_ = Oe.current, Oe.current = null, Yt();
|
|
96
225
|
try {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
226
|
+
if (s) {
|
|
227
|
+
var $ = function() {
|
|
228
|
+
throw Error();
|
|
229
|
+
};
|
|
230
|
+
if (Object.defineProperty($.prototype, "props", {
|
|
231
|
+
set: function() {
|
|
232
|
+
throw Error();
|
|
233
|
+
}
|
|
234
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
235
|
+
try {
|
|
236
|
+
Reflect.construct($, []);
|
|
237
|
+
} catch (D) {
|
|
238
|
+
y = D;
|
|
239
|
+
}
|
|
240
|
+
Reflect.construct(n, [], $);
|
|
241
|
+
} else {
|
|
242
|
+
try {
|
|
243
|
+
$.call();
|
|
244
|
+
} catch (D) {
|
|
245
|
+
y = D;
|
|
246
|
+
}
|
|
247
|
+
n.call($.prototype);
|
|
248
|
+
}
|
|
249
|
+
} else {
|
|
250
|
+
try {
|
|
251
|
+
throw Error();
|
|
252
|
+
} catch (D) {
|
|
253
|
+
y = D;
|
|
254
|
+
}
|
|
255
|
+
n();
|
|
256
|
+
}
|
|
257
|
+
} catch (D) {
|
|
258
|
+
if (D && y && typeof D.stack == "string") {
|
|
259
|
+
for (var v = D.stack.split(`
|
|
260
|
+
`), N = y.stack.split(`
|
|
261
|
+
`), z = v.length - 1, B = N.length - 1; z >= 1 && B >= 0 && v[z] !== N[B]; )
|
|
262
|
+
B--;
|
|
263
|
+
for (; z >= 1 && B >= 0; z--, B--)
|
|
264
|
+
if (v[z] !== N[B]) {
|
|
265
|
+
if (z !== 1 || B !== 1)
|
|
266
|
+
do
|
|
267
|
+
if (z--, B--, B < 0 || v[z] !== N[B]) {
|
|
268
|
+
var V = `
|
|
269
|
+
` + v[z].replace(" at new ", " at ");
|
|
270
|
+
return n.displayName && V.includes("<anonymous>") && (V = V.replace("<anonymous>", n.displayName)), typeof n == "function" && _e.set(n, V), V;
|
|
271
|
+
}
|
|
272
|
+
while (z >= 1 && B >= 0);
|
|
273
|
+
break;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
} finally {
|
|
277
|
+
Pe = !1, Oe.current = _, Kt(), Error.prepareStackTrace = S;
|
|
278
|
+
}
|
|
279
|
+
var de = n ? n.displayName || n.name : "", le = de ? Se(de) : "";
|
|
280
|
+
return typeof n == "function" && _e.set(n, le), le;
|
|
281
|
+
}
|
|
282
|
+
function Qt(n, s, p) {
|
|
283
|
+
return nt(n, !1);
|
|
284
|
+
}
|
|
285
|
+
function Zt(n) {
|
|
286
|
+
var s = n.prototype;
|
|
287
|
+
return !!(s && s.isReactComponent);
|
|
288
|
+
}
|
|
289
|
+
function Ce(n, s, p) {
|
|
290
|
+
if (n == null)
|
|
291
|
+
return "";
|
|
292
|
+
if (typeof n == "function")
|
|
293
|
+
return nt(n, Zt(n));
|
|
294
|
+
if (typeof n == "string")
|
|
295
|
+
return Se(n);
|
|
296
|
+
switch (n) {
|
|
297
|
+
case f:
|
|
298
|
+
return Se("Suspense");
|
|
299
|
+
case h:
|
|
300
|
+
return Se("SuspenseList");
|
|
301
|
+
}
|
|
302
|
+
if (typeof n == "object")
|
|
303
|
+
switch (n.$$typeof) {
|
|
304
|
+
case u:
|
|
305
|
+
return Qt(n.render);
|
|
306
|
+
case k:
|
|
307
|
+
return Ce(n.type, s, p);
|
|
308
|
+
case w: {
|
|
309
|
+
var y = n, S = y._payload, _ = y._init;
|
|
310
|
+
try {
|
|
311
|
+
return Ce(_(S), s, p);
|
|
312
|
+
} catch {
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
return "";
|
|
317
|
+
}
|
|
318
|
+
var me = Object.prototype.hasOwnProperty, ot = {}, at = R.ReactDebugCurrentFrame;
|
|
319
|
+
function Ee(n) {
|
|
320
|
+
if (n) {
|
|
321
|
+
var s = n._owner, p = Ce(n.type, n._source, s ? s.type : null);
|
|
322
|
+
at.setExtraStackFrame(p);
|
|
323
|
+
} else
|
|
324
|
+
at.setExtraStackFrame(null);
|
|
325
|
+
}
|
|
326
|
+
function Xt(n, s, p, y, S) {
|
|
327
|
+
{
|
|
328
|
+
var _ = Function.call.bind(me);
|
|
329
|
+
for (var $ in n)
|
|
330
|
+
if (_(n, $)) {
|
|
331
|
+
var v = void 0;
|
|
332
|
+
try {
|
|
333
|
+
if (typeof n[$] != "function") {
|
|
334
|
+
var N = Error((y || "React class") + ": " + p + " type `" + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[$] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
335
|
+
throw N.name = "Invariant Violation", N;
|
|
336
|
+
}
|
|
337
|
+
v = n[$](s, $, y, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
338
|
+
} catch (z) {
|
|
339
|
+
v = z;
|
|
340
|
+
}
|
|
341
|
+
v && !(v instanceof Error) && (Ee(S), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", y || "React class", p, $, typeof v), Ee(null)), v instanceof Error && !(v.message in ot) && (ot[v.message] = !0, Ee(S), b("Failed %s type: %s", p, v.message), Ee(null));
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
var en = Array.isArray;
|
|
346
|
+
function Re(n) {
|
|
347
|
+
return en(n);
|
|
348
|
+
}
|
|
349
|
+
function tn(n) {
|
|
350
|
+
{
|
|
351
|
+
var s = typeof Symbol == "function" && Symbol.toStringTag, p = s && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
352
|
+
return p;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
function nn(n) {
|
|
116
356
|
try {
|
|
117
|
-
|
|
118
|
-
return h ? "<" + h + ">" : "<...>";
|
|
357
|
+
return it(n), !1;
|
|
119
358
|
} catch {
|
|
120
|
-
return
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
function
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
function
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
key
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
359
|
+
return !0;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
function it(n) {
|
|
363
|
+
return "" + n;
|
|
364
|
+
}
|
|
365
|
+
function rt(n) {
|
|
366
|
+
if (nn(n))
|
|
367
|
+
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", tn(n)), it(n);
|
|
368
|
+
}
|
|
369
|
+
var lt = R.ReactCurrentOwner, on = {
|
|
370
|
+
key: !0,
|
|
371
|
+
ref: !0,
|
|
372
|
+
__self: !0,
|
|
373
|
+
__source: !0
|
|
374
|
+
}, ct, st;
|
|
375
|
+
function an(n) {
|
|
376
|
+
if (me.call(n, "ref")) {
|
|
377
|
+
var s = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
378
|
+
if (s && s.isReactWarning)
|
|
379
|
+
return !1;
|
|
380
|
+
}
|
|
381
|
+
return n.ref !== void 0;
|
|
382
|
+
}
|
|
383
|
+
function rn(n) {
|
|
384
|
+
if (me.call(n, "key")) {
|
|
385
|
+
var s = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
386
|
+
if (s && s.isReactWarning)
|
|
387
|
+
return !1;
|
|
388
|
+
}
|
|
389
|
+
return n.key !== void 0;
|
|
390
|
+
}
|
|
391
|
+
function ln(n, s) {
|
|
392
|
+
typeof n.ref == "string" && lt.current;
|
|
393
|
+
}
|
|
394
|
+
function cn(n, s) {
|
|
395
|
+
{
|
|
396
|
+
var p = function() {
|
|
397
|
+
ct || (ct = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
|
|
398
|
+
};
|
|
399
|
+
p.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
400
|
+
get: p,
|
|
401
|
+
configurable: !0
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
function sn(n, s) {
|
|
406
|
+
{
|
|
407
|
+
var p = function() {
|
|
408
|
+
st || (st = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
|
|
409
|
+
};
|
|
410
|
+
p.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
411
|
+
get: p,
|
|
412
|
+
configurable: !0
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
var un = function(n, s, p, y, S, _, $) {
|
|
417
|
+
var v = {
|
|
418
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
419
|
+
$$typeof: e,
|
|
420
|
+
// Built-in properties that belong on the element
|
|
421
|
+
type: n,
|
|
422
|
+
key: s,
|
|
423
|
+
ref: p,
|
|
424
|
+
props: $,
|
|
425
|
+
// Record the component responsible for creating this element.
|
|
426
|
+
_owner: _
|
|
427
|
+
};
|
|
428
|
+
return v._store = {}, Object.defineProperty(v._store, "validated", {
|
|
172
429
|
configurable: !1,
|
|
173
430
|
enumerable: !1,
|
|
174
431
|
writable: !0,
|
|
175
|
-
value:
|
|
176
|
-
}), Object.defineProperty(
|
|
432
|
+
value: !1
|
|
433
|
+
}), Object.defineProperty(v, "_self", {
|
|
177
434
|
configurable: !1,
|
|
178
435
|
enumerable: !1,
|
|
179
|
-
writable: !
|
|
180
|
-
value:
|
|
181
|
-
}), Object.defineProperty(
|
|
436
|
+
writable: !1,
|
|
437
|
+
value: y
|
|
438
|
+
}), Object.defineProperty(v, "_source", {
|
|
182
439
|
configurable: !1,
|
|
183
440
|
enumerable: !1,
|
|
184
|
-
writable: !
|
|
185
|
-
value:
|
|
186
|
-
}), Object.freeze && (Object.freeze(
|
|
187
|
-
}
|
|
188
|
-
function
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
441
|
+
writable: !1,
|
|
442
|
+
value: S
|
|
443
|
+
}), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
|
|
444
|
+
};
|
|
445
|
+
function dn(n, s, p, y, S) {
|
|
446
|
+
{
|
|
447
|
+
var _, $ = {}, v = null, N = null;
|
|
448
|
+
p !== void 0 && (rt(p), v = "" + p), rn(s) && (rt(s.key), v = "" + s.key), an(s) && (N = s.ref, ln(s, S));
|
|
449
|
+
for (_ in s)
|
|
450
|
+
me.call(s, _) && !on.hasOwnProperty(_) && ($[_] = s[_]);
|
|
451
|
+
if (n && n.defaultProps) {
|
|
452
|
+
var z = n.defaultProps;
|
|
453
|
+
for (_ in z)
|
|
454
|
+
$[_] === void 0 && ($[_] = z[_]);
|
|
455
|
+
}
|
|
456
|
+
if (v || N) {
|
|
457
|
+
var B = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
458
|
+
v && cn($, B), N && sn($, B);
|
|
459
|
+
}
|
|
460
|
+
return un(n, v, N, S, y, lt.current, $);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
var Ie = R.ReactCurrentOwner, ut = R.ReactDebugCurrentFrame;
|
|
464
|
+
function ue(n) {
|
|
465
|
+
if (n) {
|
|
466
|
+
var s = n._owner, p = Ce(n.type, n._source, s ? s.type : null);
|
|
467
|
+
ut.setExtraStackFrame(p);
|
|
468
|
+
} else
|
|
469
|
+
ut.setExtraStackFrame(null);
|
|
470
|
+
}
|
|
471
|
+
var Fe;
|
|
472
|
+
Fe = !1;
|
|
473
|
+
function Ne(n) {
|
|
474
|
+
return typeof n == "object" && n !== null && n.$$typeof === e;
|
|
475
|
+
}
|
|
476
|
+
function dt() {
|
|
477
|
+
{
|
|
478
|
+
if (Ie.current) {
|
|
479
|
+
var n = J(Ie.current.type);
|
|
480
|
+
if (n)
|
|
481
|
+
return `
|
|
482
|
+
|
|
483
|
+
Check the render method of \`` + n + "`.";
|
|
484
|
+
}
|
|
485
|
+
return "";
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
function fn(n) {
|
|
489
|
+
return "";
|
|
490
|
+
}
|
|
491
|
+
var ft = {};
|
|
492
|
+
function pn(n) {
|
|
493
|
+
{
|
|
494
|
+
var s = dt();
|
|
495
|
+
if (!s) {
|
|
496
|
+
var p = typeof n == "string" ? n : n.displayName || n.name;
|
|
497
|
+
p && (s = `
|
|
498
|
+
|
|
499
|
+
Check the top-level render call using <` + p + ">.");
|
|
500
|
+
}
|
|
501
|
+
return s;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
function pt(n, s) {
|
|
505
|
+
{
|
|
506
|
+
if (!n._store || n._store.validated || n.key != null)
|
|
507
|
+
return;
|
|
508
|
+
n._store.validated = !0;
|
|
509
|
+
var p = pn(s);
|
|
510
|
+
if (ft[p])
|
|
511
|
+
return;
|
|
512
|
+
ft[p] = !0;
|
|
513
|
+
var y = "";
|
|
514
|
+
n && n._owner && n._owner !== Ie.current && (y = " It was passed a child from " + J(n._owner.type) + "."), ue(n), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, y), ue(null);
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
function gt(n, s) {
|
|
518
|
+
{
|
|
519
|
+
if (typeof n != "object")
|
|
520
|
+
return;
|
|
521
|
+
if (Re(n))
|
|
522
|
+
for (var p = 0; p < n.length; p++) {
|
|
523
|
+
var y = n[p];
|
|
524
|
+
Ne(y) && pt(y, s);
|
|
525
|
+
}
|
|
526
|
+
else if (Ne(n))
|
|
527
|
+
n._store && (n._store.validated = !0);
|
|
528
|
+
else if (n) {
|
|
529
|
+
var S = Q(n);
|
|
530
|
+
if (typeof S == "function" && S !== n.entries)
|
|
531
|
+
for (var _ = S.call(n), $; !($ = _.next()).done; )
|
|
532
|
+
Ne($.value) && pt($.value, s);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
function gn(n) {
|
|
537
|
+
{
|
|
538
|
+
var s = n.type;
|
|
539
|
+
if (s == null || typeof s == "string")
|
|
540
|
+
return;
|
|
541
|
+
var p;
|
|
542
|
+
if (typeof s == "function")
|
|
543
|
+
p = s.propTypes;
|
|
544
|
+
else if (typeof s == "object" && (s.$$typeof === u || // Note: Memo only checks outer props here.
|
|
545
|
+
// Inner props are checked in the reconciler.
|
|
546
|
+
s.$$typeof === k))
|
|
547
|
+
p = s.propTypes;
|
|
548
|
+
else
|
|
549
|
+
return;
|
|
550
|
+
if (p) {
|
|
551
|
+
var y = J(s);
|
|
552
|
+
Xt(p, n.props, "prop", y, n);
|
|
553
|
+
} else if (s.PropTypes !== void 0 && !Fe) {
|
|
554
|
+
Fe = !0;
|
|
555
|
+
var S = J(s);
|
|
556
|
+
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
|
|
557
|
+
}
|
|
558
|
+
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
function hn(n) {
|
|
562
|
+
{
|
|
563
|
+
for (var s = Object.keys(n.props), p = 0; p < s.length; p++) {
|
|
564
|
+
var y = s[p];
|
|
565
|
+
if (y !== "children" && y !== "key") {
|
|
566
|
+
ue(n), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), ue(null);
|
|
567
|
+
break;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
n.ref !== null && (ue(n), b("Invalid attribute `ref` supplied to `React.Fragment`."), ue(null));
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
var ht = {};
|
|
574
|
+
function mt(n, s, p, y, S, _) {
|
|
575
|
+
{
|
|
576
|
+
var $ = Me(n);
|
|
577
|
+
if (!$) {
|
|
578
|
+
var v = "";
|
|
579
|
+
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (v += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
580
|
+
var N = fn();
|
|
581
|
+
N ? v += N : v += dt();
|
|
582
|
+
var z;
|
|
583
|
+
n === null ? z = "null" : Re(n) ? z = "array" : n !== void 0 && n.$$typeof === e ? (z = "<" + (J(n.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : z = typeof n, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, v);
|
|
584
|
+
}
|
|
585
|
+
var B = dn(n, s, p, S, _);
|
|
586
|
+
if (B == null)
|
|
587
|
+
return B;
|
|
588
|
+
if ($) {
|
|
589
|
+
var V = s.children;
|
|
590
|
+
if (V !== void 0)
|
|
591
|
+
if (y)
|
|
592
|
+
if (Re(V)) {
|
|
593
|
+
for (var de = 0; de < V.length; de++)
|
|
594
|
+
gt(V[de], n);
|
|
595
|
+
Object.freeze && Object.freeze(V);
|
|
596
|
+
} else
|
|
597
|
+
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
598
|
+
else
|
|
599
|
+
gt(V, n);
|
|
600
|
+
}
|
|
601
|
+
if (me.call(s, "key")) {
|
|
602
|
+
var le = J(n), D = Object.keys(s).filter(function(xn) {
|
|
603
|
+
return xn !== "key";
|
|
604
|
+
}), De = D.length > 0 ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
605
|
+
if (!ht[le + De]) {
|
|
606
|
+
var vn = D.length > 0 ? "{" + D.join(": ..., ") + ": ...}" : "{}";
|
|
607
|
+
b(`A props object containing a "key" prop is being spread into JSX:
|
|
208
608
|
let props = %s;
|
|
209
609
|
<%s {...props} />
|
|
210
610
|
React keys must be passed directly to JSX without using spread:
|
|
211
611
|
let props = %s;
|
|
212
|
-
<%s key={someKey} {...props} />`,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
), Me[A + L] = !0);
|
|
218
|
-
}
|
|
219
|
-
if (A = null, _ !== void 0 && (n(_), A = "" + _), r(h) && (n(h.key), A = "" + h.key), "key" in h) {
|
|
220
|
-
_ = {};
|
|
221
|
-
for (var $e in h)
|
|
222
|
-
$e !== "key" && (_[$e] = h[$e]);
|
|
223
|
-
} else _ = h;
|
|
224
|
-
return A && p(
|
|
225
|
-
_,
|
|
226
|
-
typeof c == "function" ? c.displayName || c.name || "Unknown" : c
|
|
227
|
-
), d(
|
|
228
|
-
c,
|
|
229
|
-
A,
|
|
230
|
-
_,
|
|
231
|
-
a(),
|
|
232
|
-
pe,
|
|
233
|
-
xe
|
|
234
|
-
);
|
|
612
|
+
<%s key={someKey} {...props} />`, De, le, vn, le), ht[le + De] = !0;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
return n === r ? hn(B) : gn(B), B;
|
|
616
|
+
}
|
|
235
617
|
}
|
|
236
|
-
function
|
|
237
|
-
|
|
618
|
+
function mn(n, s, p) {
|
|
619
|
+
return mt(n, s, p, !0);
|
|
238
620
|
}
|
|
239
|
-
function
|
|
240
|
-
return
|
|
621
|
+
function yn(n, s, p) {
|
|
622
|
+
return mt(n, s, p, !1);
|
|
241
623
|
}
|
|
242
|
-
var
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
w = {
|
|
246
|
-
react_stack_bottom_frame: function(c) {
|
|
247
|
-
return c();
|
|
248
|
-
}
|
|
249
|
-
};
|
|
250
|
-
var ue, de = {}, S = w.react_stack_bottom_frame.bind(
|
|
251
|
-
w,
|
|
252
|
-
l
|
|
253
|
-
)(), be = oe(i(l)), Me = {};
|
|
254
|
-
ie.Fragment = F, ie.jsx = function(c, h, _) {
|
|
255
|
-
var L = 1e4 > K.recentlyCreatedOwnerStacks++;
|
|
256
|
-
return g(
|
|
257
|
-
c,
|
|
258
|
-
h,
|
|
259
|
-
_,
|
|
260
|
-
!1,
|
|
261
|
-
L ? Error("react-stack-top-frame") : S,
|
|
262
|
-
L ? oe(i(c)) : be
|
|
263
|
-
);
|
|
264
|
-
}, ie.jsxs = function(c, h, _) {
|
|
265
|
-
var L = 1e4 > K.recentlyCreatedOwnerStacks++;
|
|
266
|
-
return g(
|
|
267
|
-
c,
|
|
268
|
-
h,
|
|
269
|
-
_,
|
|
270
|
-
!0,
|
|
271
|
-
L ? Error("react-stack-top-frame") : S,
|
|
272
|
-
L ? oe(i(c)) : be
|
|
273
|
-
);
|
|
274
|
-
};
|
|
275
|
-
}()), ie;
|
|
624
|
+
var wn = yn, bn = mn;
|
|
625
|
+
we.Fragment = r, we.jsx = wn, we.jsxs = bn;
|
|
626
|
+
}()), we;
|
|
276
627
|
}
|
|
277
|
-
process.env.NODE_ENV === "production" ?
|
|
278
|
-
var
|
|
279
|
-
const
|
|
628
|
+
process.env.NODE_ENV === "production" ? Je.exports = Sn() : Je.exports = _n();
|
|
629
|
+
var a = Je.exports;
|
|
630
|
+
const d = "https://cdn.casbin.org", P = {
|
|
280
631
|
casdoor: "https://casdoor",
|
|
281
632
|
springmicro: void 0
|
|
282
633
|
};
|
|
283
|
-
function
|
|
634
|
+
function Cn() {
|
|
284
635
|
return "en";
|
|
285
636
|
}
|
|
286
|
-
function
|
|
637
|
+
function te() {
|
|
287
638
|
return "en;q=0.9,en;q=0.8";
|
|
288
639
|
}
|
|
289
|
-
function
|
|
640
|
+
function G(t, e) {
|
|
290
641
|
alert(e);
|
|
291
642
|
}
|
|
292
|
-
function
|
|
643
|
+
function En(t) {
|
|
293
644
|
t !== void 0 && (window.location.href = t);
|
|
294
645
|
}
|
|
295
|
-
function
|
|
646
|
+
function Pt(t) {
|
|
296
647
|
return !(t.provider === void 0 || t.provider === null || !["OAuth", "SAML", "Web3"].includes(t.provider.category) || t.provider.type === "WeChatMiniProgram");
|
|
297
648
|
}
|
|
298
|
-
function
|
|
299
|
-
return
|
|
649
|
+
function jn(t) {
|
|
650
|
+
return Pt(t) && t.prompted;
|
|
300
651
|
}
|
|
301
|
-
function
|
|
652
|
+
function Ln(t) {
|
|
302
653
|
return t.visible && t.prompted;
|
|
303
654
|
}
|
|
304
|
-
function
|
|
655
|
+
function Tn(t) {
|
|
305
656
|
var e;
|
|
306
657
|
return (e = t.providers) == null ? void 0 : e.filter(
|
|
307
|
-
(
|
|
658
|
+
(o) => jn(o)
|
|
308
659
|
);
|
|
309
660
|
}
|
|
310
|
-
function
|
|
661
|
+
function An(t) {
|
|
311
662
|
var e;
|
|
312
663
|
return (e = t.signupItems) == null ? void 0 : e.filter(
|
|
313
|
-
(
|
|
664
|
+
(o) => Ln(o)
|
|
314
665
|
);
|
|
315
666
|
}
|
|
316
|
-
function
|
|
317
|
-
var
|
|
318
|
-
const
|
|
319
|
-
(
|
|
667
|
+
function Mn(t, e) {
|
|
668
|
+
var r;
|
|
669
|
+
const o = (r = t.signupItems) == null ? void 0 : r.filter(
|
|
670
|
+
(i) => i.name === e
|
|
320
671
|
);
|
|
321
|
-
return (
|
|
672
|
+
return (o == null ? void 0 : o.length) ?? !1 ? o[0] : null;
|
|
322
673
|
}
|
|
323
|
-
function
|
|
324
|
-
const e =
|
|
674
|
+
function zn(t) {
|
|
675
|
+
const e = Mn(t, "Affiliation");
|
|
325
676
|
return e === null ? !1 : e.prompted;
|
|
326
677
|
}
|
|
327
|
-
function
|
|
678
|
+
function bt(t) {
|
|
328
679
|
return /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t);
|
|
329
680
|
}
|
|
330
|
-
function
|
|
331
|
-
return t && t.signinMethods ? t.signinMethods.filter((
|
|
681
|
+
function Te(t, e) {
|
|
682
|
+
return t && t.signinMethods ? t.signinMethods.filter((o) => o.name === e).length > 0 : !1;
|
|
332
683
|
}
|
|
333
|
-
function
|
|
334
|
-
return
|
|
684
|
+
function On(t) {
|
|
685
|
+
return Te(t, "Password");
|
|
335
686
|
}
|
|
336
|
-
function
|
|
337
|
-
return
|
|
687
|
+
function Bn(t) {
|
|
688
|
+
return Te(t, "Verification code");
|
|
338
689
|
}
|
|
339
|
-
function
|
|
340
|
-
return
|
|
690
|
+
function Pn(t) {
|
|
691
|
+
return Te(t, "WebAuthn");
|
|
341
692
|
}
|
|
342
|
-
function
|
|
343
|
-
return
|
|
693
|
+
function Rn(t) {
|
|
694
|
+
return Te(t, "LDAP");
|
|
344
695
|
}
|
|
345
|
-
function
|
|
346
|
-
const e =
|
|
696
|
+
function In(t) {
|
|
697
|
+
const e = Tn(t);
|
|
347
698
|
if ((e == null ? void 0 : e.length) ?? !1)
|
|
348
699
|
return !0;
|
|
349
|
-
const
|
|
350
|
-
return (
|
|
700
|
+
const o = An(t);
|
|
701
|
+
return (o == null ? void 0 : o.length) ?? !1 ? !0 : zn(t);
|
|
351
702
|
}
|
|
352
|
-
function
|
|
703
|
+
function se(t) {
|
|
353
704
|
if (t.type === "Custom" && t.customLogo)
|
|
354
705
|
return t.customLogo;
|
|
355
706
|
if (t.category === "OAuth")
|
|
356
|
-
return `${
|
|
707
|
+
return `${d}/img/social_${t.type.toLowerCase()}.png`;
|
|
357
708
|
{
|
|
358
|
-
const e =
|
|
709
|
+
const e = Fn[t.category][t.type];
|
|
359
710
|
return e ? e.logo : "";
|
|
360
711
|
}
|
|
361
712
|
}
|
|
362
|
-
const
|
|
713
|
+
const Fn = {
|
|
363
714
|
SMS: {
|
|
364
715
|
"Aliyun SMS": {
|
|
365
|
-
logo: `${
|
|
716
|
+
logo: `${d}/img/social_aliyun.png`,
|
|
366
717
|
url: "https://aliyun.com/product/sms"
|
|
367
718
|
},
|
|
368
719
|
"Amazon SNS": {
|
|
369
|
-
logo: `${
|
|
720
|
+
logo: `${d}/img/social_aws.png`,
|
|
370
721
|
url: "https://aws.amazon.com/cn/sns/"
|
|
371
722
|
},
|
|
372
723
|
"Azure ACS": {
|
|
373
|
-
logo: `${
|
|
724
|
+
logo: `${d}/img/social_azure.png`,
|
|
374
725
|
url: "https://azure.microsoft.com/en-us/products/communication-services"
|
|
375
726
|
},
|
|
376
727
|
"Infobip SMS": {
|
|
377
|
-
logo: `${
|
|
728
|
+
logo: `${d}/img/social_infobip.png`,
|
|
378
729
|
url: "https://portal.infobip.com/homepage/"
|
|
379
730
|
},
|
|
380
731
|
"Tencent Cloud SMS": {
|
|
381
|
-
logo: `${
|
|
732
|
+
logo: `${d}/img/social_tencent_cloud.jpg`,
|
|
382
733
|
url: "https://cloud.tencent.com/product/sms"
|
|
383
734
|
},
|
|
384
735
|
"Baidu Cloud SMS": {
|
|
385
|
-
logo: `${
|
|
736
|
+
logo: `${d}/img/social_baidu_cloud.png`,
|
|
386
737
|
url: "https://cloud.baidu.com/product/sms.html"
|
|
387
738
|
},
|
|
388
739
|
"Volc Engine SMS": {
|
|
389
|
-
logo: `${
|
|
740
|
+
logo: `${d}/img/social_volc_engine.jpg`,
|
|
390
741
|
url: "https://www.volcengine.com/products/cloud-sms"
|
|
391
742
|
},
|
|
392
743
|
"Huawei Cloud SMS": {
|
|
393
|
-
logo: `${
|
|
744
|
+
logo: `${d}/img/social_huawei.png`,
|
|
394
745
|
url: "https://www.huaweicloud.com/product/msgsms.html"
|
|
395
746
|
},
|
|
396
747
|
"UCloud SMS": {
|
|
397
|
-
logo: `${
|
|
748
|
+
logo: `${d}/img/social_ucloud.png`,
|
|
398
749
|
url: "https://www.ucloud.cn/site/product/usms.html"
|
|
399
750
|
},
|
|
400
751
|
"Twilio SMS": {
|
|
401
|
-
logo: `${
|
|
752
|
+
logo: `${d}/img/social_twilio.svg`,
|
|
402
753
|
url: "https://www.twilio.com/messaging"
|
|
403
754
|
},
|
|
404
755
|
"SmsBao SMS": {
|
|
405
|
-
logo: `${
|
|
756
|
+
logo: `${d}/img/social_smsbao.png`,
|
|
406
757
|
url: "https://www.smsbao.com/"
|
|
407
758
|
},
|
|
408
759
|
"SUBMAIL SMS": {
|
|
409
|
-
logo: `${
|
|
760
|
+
logo: `${d}/img/social_submail.svg`,
|
|
410
761
|
url: "https://www.mysubmail.com"
|
|
411
762
|
},
|
|
412
763
|
"Msg91 SMS": {
|
|
413
|
-
logo: `${
|
|
764
|
+
logo: `${d}/img/social_msg91.ico`,
|
|
414
765
|
url: "https://control.msg91.com/app/"
|
|
415
766
|
},
|
|
416
767
|
"OSON SMS": {
|
|
@@ -418,47 +769,47 @@ const jt = {
|
|
|
418
769
|
url: "https://osonsms.com/"
|
|
419
770
|
},
|
|
420
771
|
"Custom HTTP SMS": {
|
|
421
|
-
logo: `${
|
|
772
|
+
logo: `${d}/img/social_default.png`,
|
|
422
773
|
url: "https://casdoor.org/docs/provider/sms/overview"
|
|
423
774
|
},
|
|
424
775
|
"Mock SMS": {
|
|
425
|
-
logo: `${
|
|
776
|
+
logo: `${d}/img/social_default.png`,
|
|
426
777
|
url: ""
|
|
427
778
|
}
|
|
428
779
|
},
|
|
429
780
|
Email: {
|
|
430
781
|
Default: {
|
|
431
|
-
logo: `${
|
|
782
|
+
logo: `${d}/img/email_default.png`,
|
|
432
783
|
url: ""
|
|
433
784
|
},
|
|
434
785
|
SUBMAIL: {
|
|
435
|
-
logo: `${
|
|
786
|
+
logo: `${d}/img/social_submail.svg`,
|
|
436
787
|
url: "https://www.mysubmail.com"
|
|
437
788
|
},
|
|
438
789
|
Mailtrap: {
|
|
439
|
-
logo: `${
|
|
790
|
+
logo: `${d}/img/email_mailtrap.png`,
|
|
440
791
|
url: "https://mailtrap.io"
|
|
441
792
|
},
|
|
442
793
|
"Azure ACS": {
|
|
443
|
-
logo: `${
|
|
794
|
+
logo: `${d}/img/social_azure.png`,
|
|
444
795
|
url: "https://learn.microsoft.com/zh-cn/azure/communication-services"
|
|
445
796
|
},
|
|
446
797
|
SendGrid: {
|
|
447
|
-
logo: `${
|
|
798
|
+
logo: `${d}/img/email_sendgrid.png`,
|
|
448
799
|
url: "https://sendgrid.com/"
|
|
449
800
|
},
|
|
450
801
|
"Custom HTTP Email": {
|
|
451
|
-
logo: `${
|
|
802
|
+
logo: `${d}/img/social_default.png`,
|
|
452
803
|
url: "https://casdoor.org/docs/provider/email/overview"
|
|
453
804
|
}
|
|
454
805
|
},
|
|
455
806
|
Storage: {
|
|
456
807
|
"Local File System": {
|
|
457
|
-
logo: `${
|
|
808
|
+
logo: `${d}/img/social_file.png`,
|
|
458
809
|
url: ""
|
|
459
810
|
},
|
|
460
811
|
"AWS S3": {
|
|
461
|
-
logo: `${
|
|
812
|
+
logo: `${d}/img/social_aws.png`,
|
|
462
813
|
url: "https://aws.amazon.com/s3"
|
|
463
814
|
},
|
|
464
815
|
MinIO: {
|
|
@@ -466,267 +817,267 @@ const jt = {
|
|
|
466
817
|
url: "https://min.io/"
|
|
467
818
|
},
|
|
468
819
|
"Aliyun OSS": {
|
|
469
|
-
logo: `${
|
|
820
|
+
logo: `${d}/img/social_aliyun.png`,
|
|
470
821
|
url: "https://aliyun.com/product/oss"
|
|
471
822
|
},
|
|
472
823
|
"Tencent Cloud COS": {
|
|
473
|
-
logo: `${
|
|
824
|
+
logo: `${d}/img/social_tencent_cloud.jpg`,
|
|
474
825
|
url: "https://cloud.tencent.com/product/cos"
|
|
475
826
|
},
|
|
476
827
|
"Azure Blob": {
|
|
477
|
-
logo: `${
|
|
828
|
+
logo: `${d}/img/social_azure.png`,
|
|
478
829
|
url: "https://azure.microsoft.com/en-us/services/storage/blobs/"
|
|
479
830
|
},
|
|
480
831
|
"Qiniu Cloud Kodo": {
|
|
481
|
-
logo: `${
|
|
832
|
+
logo: `${d}/img/social_qiniu_cloud.png`,
|
|
482
833
|
url: "https://www.qiniu.com/solutions/storage"
|
|
483
834
|
},
|
|
484
835
|
"Google Cloud Storage": {
|
|
485
|
-
logo: `${
|
|
836
|
+
logo: `${d}/img/social_google_cloud.png`,
|
|
486
837
|
url: "https://cloud.google.com/storage"
|
|
487
838
|
},
|
|
488
839
|
Synology: {
|
|
489
|
-
logo: `${
|
|
840
|
+
logo: `${d}/img/social_synology.png`,
|
|
490
841
|
url: "https://www.synology.com/en-global/dsm/feature/file_sharing"
|
|
491
842
|
}
|
|
492
843
|
},
|
|
493
844
|
SAML: {
|
|
494
845
|
"Aliyun IDaaS": {
|
|
495
|
-
logo: `${
|
|
846
|
+
logo: `${d}/img/social_aliyun.png`,
|
|
496
847
|
url: "https://aliyun.com/product/idaas"
|
|
497
848
|
},
|
|
498
849
|
Keycloak: {
|
|
499
|
-
logo: `${
|
|
850
|
+
logo: `${d}/img/social_keycloak.png`,
|
|
500
851
|
url: "https://www.keycloak.org/"
|
|
501
852
|
},
|
|
502
853
|
Custom: {
|
|
503
|
-
logo: `${
|
|
854
|
+
logo: `${d}/img/social_custom.png`,
|
|
504
855
|
url: "https://door.casdoor.com/"
|
|
505
856
|
}
|
|
506
857
|
},
|
|
507
858
|
Payment: {
|
|
508
859
|
Dummy: {
|
|
509
|
-
logo: `${
|
|
860
|
+
logo: `${d}/img/payment_paypal.png`,
|
|
510
861
|
url: ""
|
|
511
862
|
},
|
|
512
863
|
Alipay: {
|
|
513
|
-
logo: `${
|
|
864
|
+
logo: `${d}/img/payment_alipay.png`,
|
|
514
865
|
url: "https://www.alipay.com/"
|
|
515
866
|
},
|
|
516
867
|
"WeChat Pay": {
|
|
517
|
-
logo: `${
|
|
868
|
+
logo: `${d}/img/payment_wechat_pay.png`,
|
|
518
869
|
url: "https://pay.weixin.qq.com/"
|
|
519
870
|
},
|
|
520
871
|
PayPal: {
|
|
521
|
-
logo: `${
|
|
872
|
+
logo: `${d}/img/payment_paypal.png`,
|
|
522
873
|
url: "https://www.paypal.com/"
|
|
523
874
|
},
|
|
524
875
|
Stripe: {
|
|
525
|
-
logo: `${
|
|
876
|
+
logo: `${d}/img/social_stripe.png`,
|
|
526
877
|
url: "https://stripe.com/"
|
|
527
878
|
},
|
|
528
879
|
GC: {
|
|
529
|
-
logo: `${
|
|
880
|
+
logo: `${d}/img/payment_gc.png`,
|
|
530
881
|
url: "https://gc.org"
|
|
531
882
|
}
|
|
532
883
|
},
|
|
533
884
|
Captcha: {
|
|
534
885
|
Default: {
|
|
535
|
-
logo: `${
|
|
886
|
+
logo: `${d}/img/captcha_default.png`,
|
|
536
887
|
url: "https://pkg.go.dev/github.com/dchest/captcha"
|
|
537
888
|
},
|
|
538
889
|
reCAPTCHA: {
|
|
539
|
-
logo: `${
|
|
890
|
+
logo: `${d}/img/social_recaptcha.png`,
|
|
540
891
|
url: "https://www.google.com/recaptcha"
|
|
541
892
|
},
|
|
542
893
|
hCaptcha: {
|
|
543
|
-
logo: `${
|
|
894
|
+
logo: `${d}/img/social_hcaptcha.png`,
|
|
544
895
|
url: "https://www.hcaptcha.com"
|
|
545
896
|
},
|
|
546
897
|
"Aliyun Captcha": {
|
|
547
|
-
logo: `${
|
|
898
|
+
logo: `${d}/img/social_aliyun.png`,
|
|
548
899
|
url: "https://help.aliyun.com/product/28308.html"
|
|
549
900
|
},
|
|
550
901
|
GEETEST: {
|
|
551
|
-
logo: `${
|
|
902
|
+
logo: `${d}/img/social_geetest.png`,
|
|
552
903
|
url: "https://www.geetest.com"
|
|
553
904
|
},
|
|
554
905
|
"Cloudflare Turnstile": {
|
|
555
|
-
logo: `${
|
|
906
|
+
logo: `${d}/img/social_cloudflare.png`,
|
|
556
907
|
url: "https://www.cloudflare.com/products/turnstile/"
|
|
557
908
|
}
|
|
558
909
|
},
|
|
559
910
|
AI: {
|
|
560
911
|
"OpenAI API - GPT": {
|
|
561
|
-
logo: `${
|
|
912
|
+
logo: `${d}/img/social_openai.svg`,
|
|
562
913
|
url: "https://platform.openai.com"
|
|
563
914
|
}
|
|
564
915
|
},
|
|
565
916
|
Web3: {
|
|
566
917
|
MetaMask: {
|
|
567
|
-
logo: `${
|
|
918
|
+
logo: `${d}/img/social_metamask.svg`,
|
|
568
919
|
url: "https://metamask.io/"
|
|
569
920
|
},
|
|
570
921
|
Web3Onboard: {
|
|
571
|
-
logo: `${
|
|
922
|
+
logo: `${d}/img/social_web3onboard.svg`,
|
|
572
923
|
url: "https://onboard.blocknative.com/"
|
|
573
924
|
}
|
|
574
925
|
},
|
|
575
926
|
Notification: {
|
|
576
927
|
Telegram: {
|
|
577
|
-
logo: `${
|
|
928
|
+
logo: `${d}/img/social_telegram.png`,
|
|
578
929
|
url: "https://telegram.org/"
|
|
579
930
|
},
|
|
580
931
|
"Custom HTTP": {
|
|
581
|
-
logo: `${
|
|
932
|
+
logo: `${d}/img/email_default.png`,
|
|
582
933
|
url: "https://casdoor.org/docs/provider/notification/overview"
|
|
583
934
|
},
|
|
584
935
|
DingTalk: {
|
|
585
|
-
logo: `${
|
|
936
|
+
logo: `${d}/img/social_dingtalk.png`,
|
|
586
937
|
url: "https://www.dingtalk.com/"
|
|
587
938
|
},
|
|
588
939
|
Lark: {
|
|
589
|
-
logo: `${
|
|
940
|
+
logo: `${d}/img/social_lark.png`,
|
|
590
941
|
url: "https://www.larksuite.com/"
|
|
591
942
|
},
|
|
592
943
|
"Microsoft Teams": {
|
|
593
|
-
logo: `${
|
|
944
|
+
logo: `${d}/img/social_teams.png`,
|
|
594
945
|
url: "https://www.microsoft.com/microsoft-teams"
|
|
595
946
|
},
|
|
596
947
|
Bark: {
|
|
597
|
-
logo: `${
|
|
948
|
+
logo: `${d}/img/social_bark.png`,
|
|
598
949
|
url: "https://apps.apple.com/us/app/bark-customed-notifications/id1403753865"
|
|
599
950
|
},
|
|
600
951
|
Pushover: {
|
|
601
|
-
logo: `${
|
|
952
|
+
logo: `${d}/img/social_pushover.png`,
|
|
602
953
|
url: "https://pushover.net/"
|
|
603
954
|
},
|
|
604
955
|
Pushbullet: {
|
|
605
|
-
logo: `${
|
|
956
|
+
logo: `${d}/img/social_pushbullet.png`,
|
|
606
957
|
url: "https://www.pushbullet.com/"
|
|
607
958
|
},
|
|
608
959
|
Slack: {
|
|
609
|
-
logo: `${
|
|
960
|
+
logo: `${d}/img/social_slack.png`,
|
|
610
961
|
url: "https://slack.com/"
|
|
611
962
|
},
|
|
612
963
|
Webpush: {
|
|
613
|
-
logo: `${
|
|
964
|
+
logo: `${d}/img/email_default.png`,
|
|
614
965
|
url: "https://developer.mozilla.org/en-US/docs/Web/API/Push_API"
|
|
615
966
|
},
|
|
616
967
|
Discord: {
|
|
617
|
-
logo: `${
|
|
968
|
+
logo: `${d}/img/social_discord.png`,
|
|
618
969
|
url: "https://discord.com/"
|
|
619
970
|
},
|
|
620
971
|
"Google Chat": {
|
|
621
|
-
logo: `${
|
|
972
|
+
logo: `${d}/img/social_google_chat.png`,
|
|
622
973
|
url: "https://workspace.google.com/intl/en/products/chat/"
|
|
623
974
|
},
|
|
624
975
|
Line: {
|
|
625
|
-
logo: `${
|
|
976
|
+
logo: `${d}/img/social_line.png`,
|
|
626
977
|
url: "https://line.me/"
|
|
627
978
|
},
|
|
628
979
|
Matrix: {
|
|
629
|
-
logo: `${
|
|
980
|
+
logo: `${d}/img/social_matrix.png`,
|
|
630
981
|
url: "https://www.matrix.org/"
|
|
631
982
|
},
|
|
632
983
|
Twitter: {
|
|
633
|
-
logo: `${
|
|
984
|
+
logo: `${d}/img/social_twitter.png`,
|
|
634
985
|
url: "https://twitter.com/"
|
|
635
986
|
},
|
|
636
987
|
Reddit: {
|
|
637
|
-
logo: `${
|
|
988
|
+
logo: `${d}/img/social_reddit.png`,
|
|
638
989
|
url: "https://www.reddit.com/"
|
|
639
990
|
},
|
|
640
991
|
"Rocket Chat": {
|
|
641
|
-
logo: `${
|
|
992
|
+
logo: `${d}/img/social_rocket_chat.png`,
|
|
642
993
|
url: "https://rocket.chat/"
|
|
643
994
|
},
|
|
644
995
|
Viber: {
|
|
645
|
-
logo: `${
|
|
996
|
+
logo: `${d}/img/social_viber.png`,
|
|
646
997
|
url: "https://www.viber.com/"
|
|
647
998
|
}
|
|
648
999
|
}
|
|
649
1000
|
};
|
|
650
|
-
function
|
|
651
|
-
return fetch(`${
|
|
1001
|
+
function Nn(t = "") {
|
|
1002
|
+
return fetch(`${P.casdoor}/api/get-account${t}`, {
|
|
652
1003
|
method: "GET",
|
|
653
1004
|
credentials: "include",
|
|
654
1005
|
headers: {
|
|
655
|
-
"Accept-Language":
|
|
1006
|
+
"Accept-Language": te()
|
|
656
1007
|
}
|
|
657
1008
|
}).then((e) => e.json());
|
|
658
1009
|
}
|
|
659
|
-
function
|
|
660
|
-
let e = `${
|
|
661
|
-
return
|
|
1010
|
+
function Dn(t) {
|
|
1011
|
+
let e = `${P.casdoor}/api/signup`;
|
|
1012
|
+
return P.springmicro && (e = `${P.springmicro}/api/accounts/users/register`), fetch(e, {
|
|
662
1013
|
method: "POST",
|
|
663
1014
|
credentials: "include",
|
|
664
1015
|
body: JSON.stringify(t),
|
|
665
1016
|
headers: {
|
|
666
|
-
"Accept-Language":
|
|
1017
|
+
"Accept-Language": te(),
|
|
667
1018
|
"Content-Type": "application/json"
|
|
668
1019
|
}
|
|
669
|
-
}).then((
|
|
1020
|
+
}).then((o) => o.json());
|
|
670
1021
|
}
|
|
671
|
-
function
|
|
1022
|
+
function Un(t) {
|
|
672
1023
|
return `?type=${t == null ? void 0 : t.type}&id=${t == null ? void 0 : t.id}&redirectUri=${t == null ? void 0 : t.service}`;
|
|
673
1024
|
}
|
|
674
|
-
function
|
|
1025
|
+
function Wn(t) {
|
|
675
1026
|
return t == null ? "" : `?clientId=${t.clientId}&responseType=${t.responseType}&redirectUri=${encodeURIComponent(t.redirectUri)}&type=${t.type}&scope=${t.scope}&state=${t.state}&nonce=${t.nonce}&code_challenge_method=${t.challengeMethod}&code_challenge=${t.codeChallenge}`;
|
|
676
1027
|
}
|
|
677
|
-
function
|
|
678
|
-
const e = (t == null ? void 0 : t.type) === "cas" ?
|
|
679
|
-
return fetch(`${
|
|
1028
|
+
function Rt(t) {
|
|
1029
|
+
const e = (t == null ? void 0 : t.type) === "cas" ? Un(t) : Wn(t);
|
|
1030
|
+
return fetch(`${P.casdoor}/api/get-app-login${e}`, {
|
|
680
1031
|
method: "GET",
|
|
681
1032
|
credentials: "include",
|
|
682
1033
|
headers: {
|
|
683
|
-
"Accept-Language":
|
|
1034
|
+
"Accept-Language": te()
|
|
684
1035
|
}
|
|
685
|
-
}).then((
|
|
1036
|
+
}).then((o) => o.json());
|
|
686
1037
|
}
|
|
687
|
-
function
|
|
1038
|
+
function Hn(t, e) {
|
|
688
1039
|
return fetch(
|
|
689
|
-
`${
|
|
1040
|
+
`${P.casdoor}/api/get-saml-login?id=${t}&relayState=${e}`,
|
|
690
1041
|
{
|
|
691
1042
|
method: "GET",
|
|
692
1043
|
credentials: "include",
|
|
693
1044
|
headers: {
|
|
694
|
-
"Accept-Language":
|
|
1045
|
+
"Accept-Language": te()
|
|
695
1046
|
}
|
|
696
1047
|
}
|
|
697
|
-
).then((
|
|
1048
|
+
).then((o) => o.json());
|
|
698
1049
|
}
|
|
699
|
-
function
|
|
700
|
-
return fetch(`${
|
|
1050
|
+
function Vn(t) {
|
|
1051
|
+
return fetch(`${P.casdoor}/api/get-webhook-event?ticket=${t}`, {
|
|
701
1052
|
method: "GET",
|
|
702
1053
|
credentials: "include",
|
|
703
1054
|
headers: {
|
|
704
|
-
"Accept-Language":
|
|
1055
|
+
"Accept-Language": te()
|
|
705
1056
|
}
|
|
706
1057
|
}).then((e) => e.json());
|
|
707
1058
|
}
|
|
708
|
-
function
|
|
709
|
-
return fetch(`${
|
|
1059
|
+
function Gn(t) {
|
|
1060
|
+
return fetch(`${P.casdoor}/api/get-qrcode?id=${t}`, {
|
|
710
1061
|
method: "GET",
|
|
711
1062
|
credentials: "include",
|
|
712
1063
|
headers: {
|
|
713
|
-
"Accept-Language":
|
|
1064
|
+
"Accept-Language": te()
|
|
714
1065
|
}
|
|
715
1066
|
}).then((e) => e.json());
|
|
716
1067
|
}
|
|
717
|
-
function
|
|
1068
|
+
function Qe(t, e) {
|
|
718
1069
|
return fetch(
|
|
719
|
-
`${
|
|
1070
|
+
`${P.casdoor}/api/get-application?id=${t}/${encodeURIComponent(e)}`,
|
|
720
1071
|
{
|
|
721
1072
|
method: "GET",
|
|
722
|
-
credentials:
|
|
1073
|
+
credentials: P.casdoor.startsWith("https") ? "include" : void 0,
|
|
723
1074
|
headers: {
|
|
724
1075
|
"Content-Type": "application/json"
|
|
725
1076
|
}
|
|
726
1077
|
}
|
|
727
|
-
).then((
|
|
1078
|
+
).then((o) => o.json());
|
|
728
1079
|
}
|
|
729
|
-
const
|
|
1080
|
+
const ce = {
|
|
730
1081
|
Google: {
|
|
731
1082
|
scope: "profile+email",
|
|
732
1083
|
endpoint: "https://accounts.google.com/signin/oauth"
|
|
@@ -1039,533 +1390,533 @@ const Q = {
|
|
|
1039
1390
|
endpoint: ""
|
|
1040
1391
|
}
|
|
1041
1392
|
};
|
|
1042
|
-
function
|
|
1393
|
+
function qn(t, e, o, r) {
|
|
1043
1394
|
if (t === null || e === null)
|
|
1044
1395
|
return "";
|
|
1045
|
-
let
|
|
1046
|
-
const
|
|
1396
|
+
let i = ce[e.type].endpoint, l = `${window.location.origin}/callback`;
|
|
1397
|
+
const c = ce[e.type].scope, g = e.type === "WeChat" && navigator.userAgent.includes("MicroMessenger") || e.type === "Twitter", u = Yn(
|
|
1047
1398
|
t.name,
|
|
1048
1399
|
e.name,
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
),
|
|
1052
|
-
if (e.type === "AzureAD" ? e.domain !== "" && (
|
|
1053
|
-
return `${
|
|
1400
|
+
o,
|
|
1401
|
+
g
|
|
1402
|
+
), f = "P3S-a7dr8bgM4bF6vOyiKkKETDl16rcAzao9F8UIL1Y";
|
|
1403
|
+
if (e.type === "AzureAD" ? e.domain !== "" && (i = i.replace("common", e.domain)) : e.type === "Apple" && (l = `${window.location.origin}/api/callback`), e.type === "Google" || e.type === "GitHub" || e.type === "QQ" || e.type === "Facebook" || e.type === "Weibo" || e.type === "Gitee" || e.type === "LinkedIn" || e.type === "GitLab" || e.type === "AzureAD" || e.type === "Slack" || e.type === "Line" || e.type === "Amazon" || e.type === "Auth0" || e.type === "BattleNet" || e.type === "Bitbucket" || e.type === "Box" || e.type === "CloudFoundry" || e.type === "Dailymotion" || e.type === "DigitalOcean" || e.type === "Discord" || e.type === "Dropbox" || e.type === "EveOnline" || e.type === "Gitea" || e.type === "Heroku" || e.type === "InfluxCloud" || e.type === "Instagram" || e.type === "Intercom" || e.type === "Kakao" || e.type === "MailRu" || e.type === "Meetup" || e.type === "MicrosoftOnline" || e.type === "Naver" || e.type === "Nextcloud" || e.type === "OneDrive" || e.type === "Oura" || e.type === "Patreon" || e.type === "PayPal" || e.type === "SalesForce" || e.type === "SoundCloud" || e.type === "Spotify" || e.type === "Strava" || e.type === "Stripe" || e.type === "Tumblr" || e.type === "Twitch" || e.type === "Typetalk" || e.type === "Uber" || e.type === "VK" || e.type === "Wepay" || e.type === "Xero" || e.type === "Yahoo" || e.type === "Yammer" || e.type === "Yandex" || e.type === "Zoom")
|
|
1404
|
+
return `${i}?client_id=${e.clientId}&redirect_uri=${l}&scope=${c}&response_type=code&state=${u}`;
|
|
1054
1405
|
if (e.type === "AzureADB2C")
|
|
1055
1406
|
return `https://${e.domain}.b2clogin.com/${e.domain}.onmicrosoft.com/${e.appId}/oauth2/v2.0/authorize?client_id=${e.clientId}&nonce=defaultNonce&redirect_uri=${encodeURIComponent(
|
|
1056
1407
|
l
|
|
1057
|
-
)}&scope=${
|
|
1408
|
+
)}&scope=${c}&response_type=code&state=${u}&prompt=login`;
|
|
1058
1409
|
if (e.type === "DingTalk")
|
|
1059
|
-
return `${
|
|
1410
|
+
return `${i}?client_id=${e.clientId}&redirect_uri=${l}&scope=${c}&response_type=code&prompt=consent&state=${u}`;
|
|
1060
1411
|
if (e.type === "WeChat")
|
|
1061
|
-
return navigator.userAgent.includes("MicroMessenger") ? `${
|
|
1412
|
+
return navigator.userAgent.includes("MicroMessenger") ? `${ce[e.type].mpEndpoint}?appid=${e.clientId2}&redirect_uri=${l}&state=${u}&scope=${ce[e.type].mpScope}&response_type=code#wechat_redirect` : e.clientId2 && (e != null && e.disableSsl) && (e == null ? void 0 : e.signName) === "media" ? `${window.location.origin}/callback?state=${u}&code=${"wechat_oa:" + r}` : `${i}?appid=${e.clientId}&redirect_uri=${l}&scope=${c}&response_type=code&state=${u}#wechat_redirect`;
|
|
1062
1413
|
if (e.type === "WeCom")
|
|
1063
|
-
return e.subType === "Internal" ? e.method === "Silent" ? (
|
|
1414
|
+
return e.subType === "Internal" ? e.method === "Silent" ? (i = ce[e.type].silentEndpoint, `${i}?appid=${e.clientId}&redirect_uri=${l}&state=${u}&scope=${c}&response_type=code#wechat_redirect`) : e.method === "Normal" ? (i = ce[e.type].internalEndpoint, `${i}?appid=${e.clientId}&agentid=${e.appId}&redirect_uri=${l}&state=${u}&usertype=member`) : `https://error:not-supported-provider-method:${e.method}` : e.subType === "Third-party" ? e.method === "Silent" ? (i = ce[e.type].silentEndpoint, `${i}?appid=${e.clientId}&redirect_uri=${l}&state=${u}&scope=${c}&response_type=code#wechat_redirect`) : e.method === "Normal" ? `${i}?appid=${e.clientId}&redirect_uri=${l}&state=${u}&usertype=member` : `https://error:not-supported-provider-method:${e.method}` : `https://error:not-supported-provider-sub-type:${e.subType}`;
|
|
1064
1415
|
if (e.type === "Lark")
|
|
1065
|
-
return `${
|
|
1416
|
+
return `${i}?app_id=${e.clientId}&redirect_uri=${l}&state=${u}`;
|
|
1066
1417
|
if (e.type === "ADFS")
|
|
1067
1418
|
return `${e.domain}/adfs/oauth2/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&nonce=casdoor&scope=openid`;
|
|
1068
1419
|
if (e.type === "Baidu")
|
|
1069
|
-
return `${
|
|
1420
|
+
return `${i}?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${c}&display=popup`;
|
|
1070
1421
|
if (e.type === "Alipay")
|
|
1071
|
-
return `${
|
|
1422
|
+
return `${i}?app_id=${e.clientId}&scope=auth_user&redirect_uri=${l}&state=${u}&response_type=code&scope=${c}&display=popup`;
|
|
1072
1423
|
if (e.type === "Casdoor")
|
|
1073
|
-
return `${e.domain}/login/oauth/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${
|
|
1424
|
+
return `${e.domain}/login/oauth/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${c}`;
|
|
1074
1425
|
if (e.type === "Infoflow")
|
|
1075
|
-
return `${
|
|
1426
|
+
return `${i}?appid=${e.clientId}&redirect_uri=${l}?state=${u}`;
|
|
1076
1427
|
if (e.type === "Apple")
|
|
1077
|
-
return `${
|
|
1428
|
+
return `${i}?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code%20id_token&scope=${c}&response_mode=form_post`;
|
|
1078
1429
|
if (e.type === "Steam")
|
|
1079
|
-
return `${
|
|
1430
|
+
return `${i}?openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select&openid.identity=http://specs.openid.net/auth/2.0/identifier_select&openid.mode=checkid_setup&openid.ns=http://specs.openid.net/auth/2.0&openid.realm=${window.location.origin}&openid.return_to=${l}?state=${u}`;
|
|
1080
1431
|
if (e.type === "Okta")
|
|
1081
|
-
return `${e.domain}/v1/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${
|
|
1432
|
+
return `${e.domain}/v1/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${c}`;
|
|
1082
1433
|
if (e.type === "Douyin" || e.type === "TikTok")
|
|
1083
|
-
return `${
|
|
1434
|
+
return `${i}?client_key=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${c}`;
|
|
1084
1435
|
if (e.type === "Custom")
|
|
1085
1436
|
return `${e.customAuthUrl}?client_id=${e.clientId}&redirect_uri=${l}&scope=${e.scopes}&response_type=code&state=${u}`;
|
|
1086
1437
|
if (e.type === "Bilibili")
|
|
1087
|
-
return `${
|
|
1438
|
+
return `${i}#/?client_id=${e.clientId}&return_url=${l}&state=${u}&response_type=code`;
|
|
1088
1439
|
if (e.type === "Deezer")
|
|
1089
|
-
return `${
|
|
1440
|
+
return `${i}?app_id=${e.clientId}&redirect_uri=${l}&perms=${c}`;
|
|
1090
1441
|
if (e.type === "Lastfm")
|
|
1091
|
-
return `${
|
|
1442
|
+
return `${i}?api_key=${e.clientId}&cb=${l}`;
|
|
1092
1443
|
if (e.type === "Shopify")
|
|
1093
|
-
return `${
|
|
1444
|
+
return `${i}?client_id=${e.clientId}&redirect_uri=${l}&scope=${c}&state=${u}&grant_options[]=per-user`;
|
|
1094
1445
|
if (e.type === "Twitter" || e.type === "Fitbit")
|
|
1095
|
-
return `${
|
|
1446
|
+
return `${i}?client_id=${e.clientId}&redirect_uri=${l}&state=${u}&response_type=code&scope=${c}&code_challenge=${f}&code_challenge_method=S256`;
|
|
1096
1447
|
if (e.type === "MetaMask")
|
|
1097
1448
|
return `${l}?state=${u}`;
|
|
1098
1449
|
if (e.type === "Web3Onboard")
|
|
1099
1450
|
return `${l}?state=${u}`;
|
|
1100
1451
|
}
|
|
1101
|
-
function
|
|
1452
|
+
function q(t) {
|
|
1102
1453
|
return t ?? "";
|
|
1103
1454
|
}
|
|
1104
|
-
function
|
|
1105
|
-
const
|
|
1106
|
-
if (!
|
|
1455
|
+
function Ue(t) {
|
|
1456
|
+
const o = window.location.href.split(`${t}=`)[1];
|
|
1457
|
+
if (!o)
|
|
1107
1458
|
return "";
|
|
1108
|
-
let
|
|
1109
|
-
return
|
|
1110
|
-
}
|
|
1111
|
-
function
|
|
1112
|
-
const e = new URLSearchParams(window.location.search),
|
|
1113
|
-
let
|
|
1114
|
-
|
|
1115
|
-
let l =
|
|
1116
|
-
|
|
1117
|
-
let
|
|
1118
|
-
|
|
1119
|
-
const
|
|
1120
|
-
return
|
|
1121
|
-
clientId:
|
|
1122
|
-
responseType:
|
|
1123
|
-
redirectUri:
|
|
1459
|
+
let r = o.split("&")[0];
|
|
1460
|
+
return r ? (r = decodeURIComponent(r), r) : "";
|
|
1461
|
+
}
|
|
1462
|
+
function It(t) {
|
|
1463
|
+
const e = new URLSearchParams(window.location.search), o = q(e.get("client_id")), r = q(e.get("response_type"));
|
|
1464
|
+
let i = Ue("redirect_uri");
|
|
1465
|
+
i === "" && (i = q(e.get("redirect_uri")));
|
|
1466
|
+
let l = q(e.get("scope"));
|
|
1467
|
+
i.includes("#") && l === "" && (l = Ue("scope"));
|
|
1468
|
+
let c = q(e.get("state"));
|
|
1469
|
+
c.startsWith("/auth/oauth2/login.php?wantsurl=") && (c = encodeURIComponent(c)), i.includes("#") && c === "" && (c = Ue("state"));
|
|
1470
|
+
const g = q(e.get("nonce")), u = q(e.get("code_challenge_method")), f = q(e.get("code_challenge")), h = q(e.get("SAMLRequest")), k = q(e.get("RelayState")), w = q(e.get("noRedirect"));
|
|
1471
|
+
return o === "" && h === "" ? null : {
|
|
1472
|
+
clientId: o,
|
|
1473
|
+
responseType: r,
|
|
1474
|
+
redirectUri: i,
|
|
1124
1475
|
scope: l,
|
|
1125
|
-
state:
|
|
1126
|
-
nonce:
|
|
1476
|
+
state: c,
|
|
1477
|
+
nonce: g,
|
|
1127
1478
|
challengeMethod: u,
|
|
1128
|
-
codeChallenge:
|
|
1129
|
-
samlRequest:
|
|
1130
|
-
relayState:
|
|
1131
|
-
noRedirect:
|
|
1479
|
+
codeChallenge: f,
|
|
1480
|
+
samlRequest: h,
|
|
1481
|
+
relayState: k,
|
|
1482
|
+
noRedirect: w,
|
|
1132
1483
|
type: "code"
|
|
1133
1484
|
};
|
|
1134
1485
|
}
|
|
1135
|
-
function
|
|
1136
|
-
let
|
|
1137
|
-
if (
|
|
1486
|
+
function Yn(t, e, o, r) {
|
|
1487
|
+
let i = window.location.search;
|
|
1488
|
+
if (i = `${i}&application=${encodeURIComponent(
|
|
1138
1489
|
t
|
|
1139
|
-
)}&provider=${encodeURIComponent(e)}&method=${
|
|
1490
|
+
)}&provider=${encodeURIComponent(e)}&method=${o}`, o === "link" && (i = `${i}&from=${window.location.pathname}`), r) {
|
|
1140
1491
|
const l = e;
|
|
1141
|
-
return sessionStorage.setItem(l,
|
|
1492
|
+
return sessionStorage.setItem(l, i), l;
|
|
1142
1493
|
} else
|
|
1143
|
-
return btoa(
|
|
1144
|
-
}
|
|
1145
|
-
function
|
|
1146
|
-
|
|
1147
|
-
if (
|
|
1148
|
-
const l =
|
|
1149
|
-
|
|
1150
|
-
|
|
1494
|
+
return btoa(i);
|
|
1495
|
+
}
|
|
1496
|
+
function Kn(t, e, o, r) {
|
|
1497
|
+
Vn(o).then((i) => {
|
|
1498
|
+
if (i.data === "SCAN" || i.data === "subscribe") {
|
|
1499
|
+
const l = i == null ? void 0 : i.data2;
|
|
1500
|
+
En(
|
|
1501
|
+
qn(t, e, r ?? "signup", l)
|
|
1151
1502
|
);
|
|
1152
1503
|
}
|
|
1153
1504
|
});
|
|
1154
1505
|
}
|
|
1155
|
-
async function
|
|
1156
|
-
document.addEventListener("click", function(
|
|
1506
|
+
async function Jn(t, e, o) {
|
|
1507
|
+
document.addEventListener("click", function(i) {
|
|
1157
1508
|
const l = document.getElementById("WechatOfficialAccountModal");
|
|
1158
|
-
l &&
|
|
1509
|
+
l && i.target === l && l.close();
|
|
1159
1510
|
});
|
|
1160
|
-
function i
|
|
1161
|
-
function
|
|
1162
|
-
const
|
|
1163
|
-
|
|
1511
|
+
function r(i, l) {
|
|
1512
|
+
function c() {
|
|
1513
|
+
const h = document.getElementById("WechatOfficialAccountModal");
|
|
1514
|
+
h && h.showModal();
|
|
1164
1515
|
}
|
|
1165
|
-
function
|
|
1516
|
+
function g() {
|
|
1166
1517
|
window.clearInterval(l);
|
|
1167
|
-
const
|
|
1168
|
-
|
|
1518
|
+
const h = document.getElementById("WechatOfficialAccountModal");
|
|
1519
|
+
h && h.close();
|
|
1169
1520
|
}
|
|
1170
|
-
window.closeDialog =
|
|
1521
|
+
window.closeDialog = g;
|
|
1171
1522
|
const u = `
|
|
1172
1523
|
<div style="margin-right: 34px;">
|
|
1173
|
-
<img src="data:image/png;base64,${
|
|
1524
|
+
<img src="data:image/png;base64,${i.data}" alt="Wechat QR code" style="width: 100%;" />
|
|
1174
1525
|
</div>
|
|
1175
1526
|
<button onclick="window.closeDialog()">Close</button>
|
|
1176
|
-
`,
|
|
1177
|
-
|
|
1527
|
+
`, f = document.createElement("dialog");
|
|
1528
|
+
f.innerHTML = u, f.id = "WechatOfficialAccountModal", document.body.appendChild(f), c();
|
|
1178
1529
|
}
|
|
1179
|
-
|
|
1180
|
-
async (
|
|
1181
|
-
if (
|
|
1182
|
-
|
|
1530
|
+
Gn(`${e.owner}/${e.name}`).then(
|
|
1531
|
+
async (i) => {
|
|
1532
|
+
if (i.status !== "ok") {
|
|
1533
|
+
G("error", i == null ? void 0 : i.msg);
|
|
1183
1534
|
return;
|
|
1184
1535
|
}
|
|
1185
1536
|
const l = setInterval(
|
|
1186
|
-
await
|
|
1537
|
+
await Kn,
|
|
1187
1538
|
1e3,
|
|
1188
1539
|
t,
|
|
1189
1540
|
e,
|
|
1190
|
-
|
|
1191
|
-
|
|
1541
|
+
i.data2,
|
|
1542
|
+
o
|
|
1192
1543
|
);
|
|
1193
|
-
i
|
|
1544
|
+
r(i, l);
|
|
1194
1545
|
}
|
|
1195
1546
|
);
|
|
1196
1547
|
}
|
|
1197
|
-
function
|
|
1548
|
+
function Ft(t, e) {
|
|
1198
1549
|
return fetch(
|
|
1199
|
-
`${
|
|
1550
|
+
`${P.casdoor}/api/get-invitation-info?code=${t}&applicationId=${encodeURIComponent(
|
|
1200
1551
|
e
|
|
1201
1552
|
)}`,
|
|
1202
1553
|
{
|
|
1203
1554
|
method: "GET",
|
|
1204
1555
|
credentials: "include",
|
|
1205
1556
|
headers: {
|
|
1206
|
-
"Accept-Language":
|
|
1557
|
+
"Accept-Language": te()
|
|
1207
1558
|
}
|
|
1208
1559
|
}
|
|
1209
|
-
).then((
|
|
1560
|
+
).then((o) => o.json());
|
|
1210
1561
|
}
|
|
1211
|
-
function
|
|
1212
|
-
const
|
|
1213
|
-
return
|
|
1562
|
+
function Nt(t, e, o, r, i = "", l, c, g, u = "") {
|
|
1563
|
+
const f = new FormData();
|
|
1564
|
+
return f.append("captchaType", t), f.append("captchaToken", e), f.append("clientSecret", o), f.append("method", r), f.append("countryCode", i), f.append("dest", l), f.append("type", c), f.append("applicationId", "admin/" + g), f.append("checkUser", u), fetch(`${P.casdoor}/api/send-verification-code`, {
|
|
1214
1565
|
method: "POST",
|
|
1215
|
-
credentials:
|
|
1216
|
-
body:
|
|
1566
|
+
credentials: P.casdoor.startsWith("https") ? "include" : void 0,
|
|
1567
|
+
body: f,
|
|
1217
1568
|
headers: {
|
|
1218
1569
|
// "Content-Type": "application/json",
|
|
1219
|
-
"Accept-Language":
|
|
1570
|
+
"Accept-Language": te()
|
|
1220
1571
|
}
|
|
1221
|
-
}).then((
|
|
1572
|
+
}).then((h) => h.json()).then((h) => h.status === "ok" ? (G("success", "Verification code sent"), !0) : (G("error", h.msg), !1));
|
|
1222
1573
|
}
|
|
1223
|
-
function
|
|
1574
|
+
function Dt(t, e, o) {
|
|
1224
1575
|
return fetch(
|
|
1225
|
-
`${
|
|
1576
|
+
`${P.casdoor}/api/get-captcha?applicationId=${t}/${encodeURIComponent(
|
|
1226
1577
|
e
|
|
1227
|
-
)}&isCurrentProvider=${
|
|
1578
|
+
)}&isCurrentProvider=${o}`,
|
|
1228
1579
|
{
|
|
1229
1580
|
method: "GET",
|
|
1230
1581
|
headers: {
|
|
1231
|
-
"Accept-Language":
|
|
1582
|
+
"Accept-Language": te()
|
|
1232
1583
|
}
|
|
1233
1584
|
}
|
|
1234
|
-
).then((
|
|
1585
|
+
).then((r) => r.json()).then((r) => r.data);
|
|
1235
1586
|
}
|
|
1236
|
-
const
|
|
1587
|
+
const Qn = (t) => {
|
|
1237
1588
|
const {
|
|
1238
1589
|
captchaType: e,
|
|
1239
|
-
subType:
|
|
1240
|
-
siteKey:
|
|
1241
|
-
clientSecret:
|
|
1590
|
+
subType: o,
|
|
1591
|
+
siteKey: r,
|
|
1592
|
+
clientSecret: i,
|
|
1242
1593
|
clientId2: l,
|
|
1243
|
-
clientSecret2:
|
|
1244
|
-
onChange:
|
|
1245
|
-
} = t, u = (
|
|
1246
|
-
const
|
|
1247
|
-
|
|
1594
|
+
clientSecret2: c,
|
|
1595
|
+
onChange: g
|
|
1596
|
+
} = t, u = (f) => {
|
|
1597
|
+
const h = document.createElement("script");
|
|
1598
|
+
h.async = !1, h.src = f, document.getElementsByTagName("body")[0].appendChild(h);
|
|
1248
1599
|
};
|
|
1249
|
-
return
|
|
1600
|
+
return Bt(() => {
|
|
1250
1601
|
switch (e) {
|
|
1251
1602
|
case "reCAPTCHA": {
|
|
1252
|
-
const
|
|
1603
|
+
const f = setInterval(() => {
|
|
1253
1604
|
window.grecaptcha || u("https://recaptcha.net/recaptcha/api.js"), window.grecaptcha && window.grecaptcha.render && (window.grecaptcha.render("captcha", {
|
|
1254
|
-
sitekey:
|
|
1255
|
-
callback:
|
|
1256
|
-
}), clearInterval(
|
|
1605
|
+
sitekey: r,
|
|
1606
|
+
callback: g
|
|
1607
|
+
}), clearInterval(f));
|
|
1257
1608
|
}, 300);
|
|
1258
1609
|
break;
|
|
1259
1610
|
}
|
|
1260
1611
|
case "hCaptcha": {
|
|
1261
|
-
const
|
|
1612
|
+
const f = setInterval(() => {
|
|
1262
1613
|
window.hcaptcha || u("https://js.hcaptcha.com/1/api.js"), window.hcaptcha && window.hcaptcha.render && (window.hcaptcha.render("captcha", {
|
|
1263
|
-
sitekey:
|
|
1264
|
-
callback:
|
|
1265
|
-
}), clearInterval(
|
|
1614
|
+
sitekey: r,
|
|
1615
|
+
callback: g
|
|
1616
|
+
}), clearInterval(f));
|
|
1266
1617
|
}, 300);
|
|
1267
1618
|
break;
|
|
1268
1619
|
}
|
|
1269
1620
|
case "Aliyun Captcha": {
|
|
1270
|
-
const
|
|
1271
|
-
window.AWSC || u("https://g.alicdn.com/AWSC/AWSC/awsc.js"), window.AWSC && (
|
|
1272
|
-
|
|
1273
|
-
appkey:
|
|
1621
|
+
const f = setInterval(() => {
|
|
1622
|
+
window.AWSC || u("https://g.alicdn.com/AWSC/AWSC/awsc.js"), window.AWSC && (c && c !== "***" && window.AWSC.use(o, function(h, k) {
|
|
1623
|
+
k.init({
|
|
1624
|
+
appkey: c,
|
|
1274
1625
|
scene: l,
|
|
1275
1626
|
renderTo: "captcha",
|
|
1276
|
-
success: function(
|
|
1277
|
-
|
|
1278
|
-
`SessionId=${
|
|
1627
|
+
success: function(w) {
|
|
1628
|
+
g(
|
|
1629
|
+
`SessionId=${w.sessionId}&AccessKeyId=${r}&Scene=${l}&AppKey=${c}&Token=${w.token}&Sig=${w.sig}&RemoteIp=192.168.0.1`
|
|
1279
1630
|
);
|
|
1280
1631
|
}
|
|
1281
1632
|
});
|
|
1282
|
-
}), clearInterval(
|
|
1633
|
+
}), clearInterval(f));
|
|
1283
1634
|
}, 300);
|
|
1284
1635
|
break;
|
|
1285
1636
|
}
|
|
1286
1637
|
case "GEETEST": {
|
|
1287
|
-
let
|
|
1288
|
-
const
|
|
1289
|
-
if (window.initGeetest4 || u("https://static.geetest.com/v4/gt4.js"), window.initGeetest4 &&
|
|
1290
|
-
const
|
|
1638
|
+
let f = !1;
|
|
1639
|
+
const h = setInterval(() => {
|
|
1640
|
+
if (window.initGeetest4 || u("https://static.geetest.com/v4/gt4.js"), window.initGeetest4 && r && !f) {
|
|
1641
|
+
const k = String(r);
|
|
1291
1642
|
window.initGeetest4(
|
|
1292
1643
|
{
|
|
1293
|
-
captchaId:
|
|
1644
|
+
captchaId: k,
|
|
1294
1645
|
product: "float"
|
|
1295
1646
|
},
|
|
1296
|
-
function(
|
|
1297
|
-
|
|
1298
|
-
const
|
|
1299
|
-
|
|
1300
|
-
`lot_number=${
|
|
1647
|
+
function(w) {
|
|
1648
|
+
f || (w.appendTo("#captcha"), f = !0), w.onSuccess(function() {
|
|
1649
|
+
const x = w.getValidate();
|
|
1650
|
+
g(
|
|
1651
|
+
`lot_number=${x.lot_number}&captcha_output=${x.captcha_output}&pass_token=${x.pass_token}&gen_time=${x.gen_time}&captcha_id=${r}`
|
|
1301
1652
|
);
|
|
1302
1653
|
});
|
|
1303
1654
|
}
|
|
1304
|
-
), clearInterval(
|
|
1655
|
+
), clearInterval(h);
|
|
1305
1656
|
}
|
|
1306
1657
|
}, 500);
|
|
1307
1658
|
break;
|
|
1308
1659
|
}
|
|
1309
1660
|
case "Cloudflare Turnstile": {
|
|
1310
|
-
const
|
|
1661
|
+
const f = setInterval(() => {
|
|
1311
1662
|
window.turnstile || u("https://challenges.cloudflare.com/turnstile/v0/api.js"), window.turnstile && window.turnstile.render && (window.turnstile.render("#captcha", {
|
|
1312
|
-
sitekey:
|
|
1313
|
-
callback:
|
|
1314
|
-
}), clearInterval(
|
|
1663
|
+
sitekey: r,
|
|
1664
|
+
callback: g
|
|
1665
|
+
}), clearInterval(f));
|
|
1315
1666
|
}, 300);
|
|
1316
1667
|
break;
|
|
1317
1668
|
}
|
|
1318
1669
|
}
|
|
1319
|
-
}, [e,
|
|
1320
|
-
},
|
|
1321
|
-
const { t: e } =
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
}, [
|
|
1325
|
-
const
|
|
1326
|
-
l == null || l(u,
|
|
1327
|
-
},
|
|
1328
|
-
|
|
1329
|
-
},
|
|
1330
|
-
|
|
1331
|
-
|
|
1670
|
+
}, [e, o, r, i, l, c]), /* @__PURE__ */ a.jsx("div", { id: "captcha" });
|
|
1671
|
+
}, Zn = (t) => {
|
|
1672
|
+
const { t: e } = Le(), { owner: o, name: r, visible: i, onOk: l, onCancel: c, isCurrentProvider: g } = t, [u, f] = m.useState("none"), [h, k] = m.useState(""), [w, x] = m.useState(""), [A, U] = m.useState(""), [Q, R] = m.useState(""), [b, E] = m.useState(""), [M, W] = m.useState(!1), [ie, pe] = m.useState(""), [ne, I] = m.useState(""), Me = m.useRef(null);
|
|
1673
|
+
Bt(() => {
|
|
1674
|
+
i ? J() : (he(), W(!1));
|
|
1675
|
+
}, [i]);
|
|
1676
|
+
const ge = () => {
|
|
1677
|
+
l == null || l(u, ne, w);
|
|
1678
|
+
}, he = () => {
|
|
1679
|
+
I(""), c == null || c();
|
|
1680
|
+
}, J = () => {
|
|
1681
|
+
Dt(o, r, g).then((T) => {
|
|
1682
|
+
T.type === "none" ? ge() : T.type === "Default" ? (W(!0), x(T.captchaId), pe(T.captchaImage), f("Default")) : (W(!0), f(T.type), k(T.clientId), x(T.clientSecret), U(T.subType), R(T.clientId2), E(T.clientSecret2));
|
|
1332
1683
|
});
|
|
1333
|
-
},
|
|
1334
|
-
/* @__PURE__ */
|
|
1684
|
+
}, Z = () => /* @__PURE__ */ a.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
1685
|
+
/* @__PURE__ */ a.jsx(
|
|
1335
1686
|
"div",
|
|
1336
1687
|
{
|
|
1337
1688
|
className: "bg-no-repeat mb-4 border border-current rounded w-[200px] h-[80px]",
|
|
1338
1689
|
style: {
|
|
1339
|
-
backgroundImage: `url('data:image/png;base64,${
|
|
1690
|
+
backgroundImage: `url('data:image/png;base64,${ie}')`
|
|
1340
1691
|
}
|
|
1341
1692
|
}
|
|
1342
1693
|
),
|
|
1343
|
-
/* @__PURE__ */
|
|
1694
|
+
/* @__PURE__ */ a.jsx(
|
|
1344
1695
|
"input",
|
|
1345
1696
|
{
|
|
1346
1697
|
className: "input input-bordered w-[200px]",
|
|
1347
1698
|
type: "text",
|
|
1348
|
-
ref:
|
|
1349
|
-
value:
|
|
1699
|
+
ref: Me,
|
|
1700
|
+
value: ne,
|
|
1350
1701
|
placeholder: e("general.captcha"),
|
|
1351
|
-
onKeyDown: (
|
|
1352
|
-
onChange: (
|
|
1702
|
+
onKeyDown: (T) => T.key === "Enter" ? ge() : null,
|
|
1703
|
+
onChange: (T) => I(T.target.value)
|
|
1353
1704
|
}
|
|
1354
1705
|
)
|
|
1355
|
-
] }),
|
|
1356
|
-
|
|
1357
|
-
},
|
|
1358
|
-
|
|
1706
|
+
] }), re = (T) => {
|
|
1707
|
+
I(T);
|
|
1708
|
+
}, $e = () => u === "Default" ? Z() : /* @__PURE__ */ a.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ a.jsx(
|
|
1709
|
+
Qn,
|
|
1359
1710
|
{
|
|
1360
1711
|
captchaType: u,
|
|
1361
|
-
subType:
|
|
1362
|
-
siteKey:
|
|
1363
|
-
clientSecret:
|
|
1364
|
-
onChange:
|
|
1365
|
-
clientId2:
|
|
1366
|
-
clientSecret2:
|
|
1367
|
-
}
|
|
1368
|
-
) }),
|
|
1369
|
-
let
|
|
1370
|
-
return u === "Default" ? /^\d{5}$/.test(
|
|
1371
|
-
/* @__PURE__ */
|
|
1372
|
-
/* @__PURE__ */
|
|
1712
|
+
subType: A,
|
|
1713
|
+
siteKey: h,
|
|
1714
|
+
clientSecret: w,
|
|
1715
|
+
onChange: re,
|
|
1716
|
+
clientId2: Q,
|
|
1717
|
+
clientSecret2: b
|
|
1718
|
+
}
|
|
1719
|
+
) }), ke = () => {
|
|
1720
|
+
let T = !1;
|
|
1721
|
+
return u === "Default" ? /^\d{5}$/.test(ne) || (T = !0) : ne === "" && (T = !0), [
|
|
1722
|
+
/* @__PURE__ */ a.jsx("button", { className: "btn", onClick: he, children: "Cancel" }, "closebtn"),
|
|
1723
|
+
/* @__PURE__ */ a.jsx(
|
|
1373
1724
|
"button",
|
|
1374
1725
|
{
|
|
1375
1726
|
className: "btn btn-primary",
|
|
1376
|
-
disabled:
|
|
1377
|
-
onClick:
|
|
1727
|
+
disabled: T,
|
|
1728
|
+
onClick: ge,
|
|
1378
1729
|
children: "OK"
|
|
1379
1730
|
},
|
|
1380
1731
|
"okbtn"
|
|
1381
1732
|
)
|
|
1382
1733
|
];
|
|
1383
1734
|
};
|
|
1384
|
-
return /* @__PURE__ */
|
|
1385
|
-
/* @__PURE__ */
|
|
1386
|
-
/* @__PURE__ */
|
|
1387
|
-
/* @__PURE__ */
|
|
1388
|
-
/* @__PURE__ */
|
|
1735
|
+
return /* @__PURE__ */ a.jsx("dialog", { id: "captcha-modal", className: "modal", children: /* @__PURE__ */ a.jsxs("div", { className: "modal-box", children: [
|
|
1736
|
+
/* @__PURE__ */ a.jsx("div", { className: "mt-4 mb-8", children: $e() }),
|
|
1737
|
+
/* @__PURE__ */ a.jsxs("div", { className: "modal-action", children: [
|
|
1738
|
+
/* @__PURE__ */ a.jsx("form", { method: "dialog", className: "modal-backdrop", children: /* @__PURE__ */ a.jsx("button", { children: "Close" }) }),
|
|
1739
|
+
/* @__PURE__ */ a.jsx("form", { method: "dialog", className: "flex gap-3", children: ke() })
|
|
1389
1740
|
] })
|
|
1390
1741
|
] }) });
|
|
1391
|
-
},
|
|
1742
|
+
}, Xn = ({
|
|
1392
1743
|
value: t,
|
|
1393
1744
|
disabled: e,
|
|
1394
|
-
textBefore:
|
|
1395
|
-
onChange:
|
|
1396
|
-
onButtonClickArgs:
|
|
1745
|
+
textBefore: o,
|
|
1746
|
+
onChange: r,
|
|
1747
|
+
onButtonClickArgs: i,
|
|
1397
1748
|
application: l,
|
|
1398
|
-
method:
|
|
1399
|
-
countryCode:
|
|
1749
|
+
method: c,
|
|
1750
|
+
countryCode: g
|
|
1400
1751
|
}) => {
|
|
1401
|
-
const { t: u } =
|
|
1402
|
-
let
|
|
1403
|
-
|
|
1404
|
-
const
|
|
1405
|
-
|
|
1752
|
+
const { t: u } = Le(), [f, h] = m.useState(!1), [k, w] = m.useState(0), [x, A] = m.useState(!1), U = m.useRef(null), Q = (E = 60) => {
|
|
1753
|
+
let M = E;
|
|
1754
|
+
w(M);
|
|
1755
|
+
const W = () => {
|
|
1756
|
+
M--, w(M), M !== 0 && setTimeout(W, 1e3);
|
|
1406
1757
|
};
|
|
1407
|
-
setTimeout(
|
|
1408
|
-
},
|
|
1409
|
-
|
|
1410
|
-
$,
|
|
1758
|
+
setTimeout(W, 1e3);
|
|
1759
|
+
}, R = (E, M, W) => {
|
|
1760
|
+
h(!1), A(!0), Nt(
|
|
1411
1761
|
E,
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1762
|
+
M,
|
|
1763
|
+
W,
|
|
1764
|
+
c,
|
|
1765
|
+
g,
|
|
1766
|
+
...i
|
|
1767
|
+
).then((ie) => {
|
|
1768
|
+
A(!1), ie && Q(60);
|
|
1418
1769
|
});
|
|
1419
|
-
},
|
|
1420
|
-
|
|
1770
|
+
}, b = () => {
|
|
1771
|
+
h(!1);
|
|
1421
1772
|
};
|
|
1422
|
-
return
|
|
1423
|
-
|
|
1424
|
-
}, []),
|
|
1425
|
-
|
|
1426
|
-
}, [
|
|
1427
|
-
/* @__PURE__ */
|
|
1428
|
-
/* @__PURE__ */
|
|
1773
|
+
return m.useEffect(() => {
|
|
1774
|
+
U.current = document.getElementById("captcha-modal");
|
|
1775
|
+
}, []), m.useEffect(() => {
|
|
1776
|
+
U.current && (f ? U.current.showModal() : U.current.close());
|
|
1777
|
+
}, [f]), /* @__PURE__ */ a.jsxs(m.Fragment, { children: [
|
|
1778
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex", children: [
|
|
1779
|
+
/* @__PURE__ */ a.jsx(
|
|
1429
1780
|
"input",
|
|
1430
1781
|
{
|
|
1431
1782
|
className: "input",
|
|
1432
1783
|
disabled: e,
|
|
1433
1784
|
value: t,
|
|
1434
1785
|
placeholder: "Enter your code",
|
|
1435
|
-
onChange: (
|
|
1786
|
+
onChange: (E) => r(E.target.value),
|
|
1436
1787
|
autoComplete: "one-time-code"
|
|
1437
1788
|
}
|
|
1438
1789
|
),
|
|
1439
|
-
/* @__PURE__ */
|
|
1790
|
+
/* @__PURE__ */ a.jsx(
|
|
1440
1791
|
"button",
|
|
1441
1792
|
{
|
|
1442
1793
|
className: "btn",
|
|
1443
|
-
disabled: e ||
|
|
1444
|
-
onClick: () =>
|
|
1445
|
-
children:
|
|
1794
|
+
disabled: e || k > 0,
|
|
1795
|
+
onClick: () => h(!0),
|
|
1796
|
+
children: k > 0 ? `${k} s` : u(x ? "code.sending" : "code.sendCode")
|
|
1446
1797
|
}
|
|
1447
1798
|
)
|
|
1448
1799
|
] }),
|
|
1449
|
-
/* @__PURE__ */
|
|
1450
|
-
|
|
1800
|
+
/* @__PURE__ */ a.jsx(
|
|
1801
|
+
Zn,
|
|
1451
1802
|
{
|
|
1452
1803
|
owner: l.owner,
|
|
1453
1804
|
name: l.name,
|
|
1454
|
-
visible:
|
|
1455
|
-
onOk:
|
|
1456
|
-
onCancel:
|
|
1805
|
+
visible: f,
|
|
1806
|
+
onOk: R,
|
|
1807
|
+
onCancel: b,
|
|
1457
1808
|
isCurrentProvider: !1
|
|
1458
1809
|
}
|
|
1459
1810
|
)
|
|
1460
1811
|
] });
|
|
1461
1812
|
};
|
|
1462
|
-
var
|
|
1463
|
-
for (var
|
|
1464
|
-
|
|
1465
|
-
if (
|
|
1466
|
-
for (var
|
|
1467
|
-
|
|
1813
|
+
var eo = Object.create, xe = Object.defineProperty, to = Object.defineProperties, no = Object.getOwnPropertyDescriptor, oo = Object.getOwnPropertyDescriptors, ao = Object.getOwnPropertyNames, vt = Object.getOwnPropertySymbols, io = Object.getPrototypeOf, Ut = Object.prototype.hasOwnProperty, ro = Object.prototype.propertyIsEnumerable, xt = (t, e, o) => e in t ? xe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, F = (t, e) => {
|
|
1814
|
+
for (var o in e || (e = {}))
|
|
1815
|
+
Ut.call(e, o) && xt(t, o, e[o]);
|
|
1816
|
+
if (vt)
|
|
1817
|
+
for (var o of vt(e))
|
|
1818
|
+
ro.call(e, o) && xt(t, o, e[o]);
|
|
1468
1819
|
return t;
|
|
1469
|
-
},
|
|
1470
|
-
for (var
|
|
1471
|
-
|
|
1472
|
-
},
|
|
1820
|
+
}, Wt = (t, e) => to(t, oo(e)), lo = (t, e) => {
|
|
1821
|
+
for (var o in e)
|
|
1822
|
+
xe(t, o, { get: e[o], enumerable: !0 });
|
|
1823
|
+
}, Ht = (t, e, o, r) => {
|
|
1473
1824
|
if (e && typeof e == "object" || typeof e == "function")
|
|
1474
|
-
for (let
|
|
1475
|
-
!
|
|
1825
|
+
for (let i of ao(e))
|
|
1826
|
+
!Ut.call(t, i) && i !== o && xe(t, i, { get: () => e[i], enumerable: !(r = no(e, i)) || r.enumerable });
|
|
1476
1827
|
return t;
|
|
1477
|
-
},
|
|
1828
|
+
}, L = (t, e, o) => (o = t != null ? eo(io(t)) : {}, Ht(
|
|
1478
1829
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
1479
1830
|
// file that has been converted to a CommonJS file using a Babel-
|
|
1480
1831
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
1481
1832
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
1482
|
-
!t || !t.__esModule ?
|
|
1833
|
+
!t || !t.__esModule ? xe(o, "default", { value: t, enumerable: !0 }) : o,
|
|
1483
1834
|
t
|
|
1484
|
-
)),
|
|
1485
|
-
|
|
1486
|
-
AmazonLoginButton: () =>
|
|
1487
|
-
AppleLoginButton: () =>
|
|
1488
|
-
BufferLoginButton: () =>
|
|
1489
|
-
DiscordLoginButton: () =>
|
|
1490
|
-
FacebookLoginButton: () =>
|
|
1491
|
-
GithubLoginButton: () =>
|
|
1492
|
-
GitlabLoginButton: () =>
|
|
1493
|
-
GoogleLoginButton: () =>
|
|
1494
|
-
InstagramLoginButton: () =>
|
|
1495
|
-
LinkedInLoginButton: () =>
|
|
1496
|
-
MetamaskLoginButton: () =>
|
|
1497
|
-
MicrosoftLoginButton: () =>
|
|
1498
|
-
OktaLoginButton: () =>
|
|
1499
|
-
SlackLoginButton: () =>
|
|
1500
|
-
TelegramLoginButton: () =>
|
|
1501
|
-
TikTokLoginButton: () =>
|
|
1502
|
-
TwitterLoginButton: () =>
|
|
1503
|
-
XLoginButton: () =>
|
|
1504
|
-
YahooLoginButton: () =>
|
|
1505
|
-
ZaloLoginButton: () =>
|
|
1506
|
-
createButton: () =>
|
|
1835
|
+
)), co = (t) => Ht(xe({}, "__esModule", { value: !0 }), t), Vt = {};
|
|
1836
|
+
lo(Vt, {
|
|
1837
|
+
AmazonLoginButton: () => Ao,
|
|
1838
|
+
AppleLoginButton: () => Ko,
|
|
1839
|
+
BufferLoginButton: () => Wo,
|
|
1840
|
+
DiscordLoginButton: () => Zo,
|
|
1841
|
+
FacebookLoginButton: () => bo,
|
|
1842
|
+
GithubLoginButton: () => _o,
|
|
1843
|
+
GitlabLoginButton: () => ba,
|
|
1844
|
+
GoogleLoginButton: () => $o,
|
|
1845
|
+
InstagramLoginButton: () => Oo,
|
|
1846
|
+
LinkedInLoginButton: () => Ro,
|
|
1847
|
+
MetamaskLoginButton: () => ma,
|
|
1848
|
+
MicrosoftLoginButton: () => No,
|
|
1849
|
+
OktaLoginButton: () => ta,
|
|
1850
|
+
SlackLoginButton: () => aa,
|
|
1851
|
+
TelegramLoginButton: () => Go,
|
|
1852
|
+
TikTokLoginButton: () => pa,
|
|
1853
|
+
TwitterLoginButton: () => jo,
|
|
1854
|
+
XLoginButton: () => $a,
|
|
1855
|
+
YahooLoginButton: () => la,
|
|
1856
|
+
ZaloLoginButton: () => ua,
|
|
1857
|
+
createButton: () => O
|
|
1507
1858
|
});
|
|
1508
|
-
var
|
|
1509
|
-
const [e,
|
|
1510
|
-
var
|
|
1511
|
-
|
|
1512
|
-
},
|
|
1513
|
-
var
|
|
1514
|
-
|
|
1515
|
-
},
|
|
1516
|
-
var
|
|
1517
|
-
return (
|
|
1859
|
+
var C = co(Vt), We = L(m), oe = L(m), so = L(m), uo = ({ name: t, size: e, format: o }) => /* @__PURE__ */ so.default.createElement("i", { className: o(t), style: { fontSize: e } }), fo = uo, $t = L(m), po = ({ type: t, size: e, format: o, color: r = "#FFFFFF" }) => typeof t == "string" ? /* @__PURE__ */ $t.default.createElement(fo, F({}, { format: o, name: t, size: e })) : /* @__PURE__ */ $t.default.createElement(t, { size: e, color: r }), go = "#FFFFFF", ho = (t) => {
|
|
1860
|
+
const [e, o] = (0, oe.useState)(!1), [r, i] = (0, oe.useState)(!1), l = () => {
|
|
1861
|
+
var I;
|
|
1862
|
+
i(!0), (I = t.onMouseEnter) == null || I.call(t);
|
|
1863
|
+
}, c = () => {
|
|
1864
|
+
var I;
|
|
1865
|
+
i(!1), (I = t.onMouseLeave) == null || I.call(t);
|
|
1866
|
+
}, g = () => o(!0), u = () => o(!1), f = () => {
|
|
1867
|
+
var I;
|
|
1868
|
+
return (I = t.onClick) == null ? void 0 : I.call(t);
|
|
1518
1869
|
}, {
|
|
1519
|
-
activeStyle:
|
|
1520
|
-
align:
|
|
1521
|
-
text:
|
|
1522
|
-
children:
|
|
1523
|
-
className:
|
|
1524
|
-
icon:
|
|
1525
|
-
iconFormat:
|
|
1526
|
-
iconSize:
|
|
1527
|
-
iconColor:
|
|
1528
|
-
preventActiveStyles:
|
|
1529
|
-
size:
|
|
1530
|
-
style:
|
|
1531
|
-
disabled:
|
|
1532
|
-
type:
|
|
1533
|
-
} = t,
|
|
1534
|
-
activeStyle:
|
|
1535
|
-
customStyle:
|
|
1536
|
-
active:
|
|
1537
|
-
size:
|
|
1870
|
+
activeStyle: h,
|
|
1871
|
+
align: k = "left",
|
|
1872
|
+
text: w,
|
|
1873
|
+
children: x = w,
|
|
1874
|
+
className: A,
|
|
1875
|
+
icon: U,
|
|
1876
|
+
iconFormat: Q = (I) => I,
|
|
1877
|
+
iconSize: R = "26px",
|
|
1878
|
+
iconColor: b = go,
|
|
1879
|
+
preventActiveStyles: E = !1,
|
|
1880
|
+
size: M = "50px",
|
|
1881
|
+
style: W,
|
|
1882
|
+
disabled: ie,
|
|
1883
|
+
type: pe = "button"
|
|
1884
|
+
} = t, ne = mo(He.button, {
|
|
1885
|
+
activeStyle: E ? W : h,
|
|
1886
|
+
customStyle: W,
|
|
1887
|
+
active: r || e,
|
|
1888
|
+
size: M
|
|
1538
1889
|
});
|
|
1539
|
-
return /* @__PURE__ */
|
|
1890
|
+
return /* @__PURE__ */ oe.default.createElement(
|
|
1540
1891
|
"button",
|
|
1541
|
-
|
|
1542
|
-
style:
|
|
1543
|
-
onClick:
|
|
1892
|
+
F({
|
|
1893
|
+
style: ne,
|
|
1894
|
+
onClick: f,
|
|
1544
1895
|
onMouseEnter: l,
|
|
1545
|
-
onMouseLeave:
|
|
1546
|
-
onFocus:
|
|
1896
|
+
onMouseLeave: c,
|
|
1897
|
+
onFocus: g,
|
|
1547
1898
|
onBlur: u
|
|
1548
|
-
}, { className:
|
|
1549
|
-
/* @__PURE__ */
|
|
1899
|
+
}, { className: A, disabled: ie, type: pe }),
|
|
1900
|
+
/* @__PURE__ */ oe.default.createElement("div", { style: He.flex }, !kt(R) && !!U && /* @__PURE__ */ oe.default.createElement(
|
|
1550
1901
|
"div",
|
|
1551
1902
|
{
|
|
1552
1903
|
style: {
|
|
1553
1904
|
display: "flex",
|
|
1554
1905
|
justifyContent: "center",
|
|
1555
|
-
minWidth:
|
|
1906
|
+
minWidth: R
|
|
1556
1907
|
}
|
|
1557
1908
|
},
|
|
1558
|
-
/* @__PURE__ */
|
|
1559
|
-
), !
|
|
1909
|
+
/* @__PURE__ */ oe.default.createElement(po, { type: U, size: R, format: Q, color: b })
|
|
1910
|
+
), !kt(R) && /* @__PURE__ */ oe.default.createElement("div", { style: He.divider }), /* @__PURE__ */ oe.default.createElement("div", { style: { textAlign: k, width: "100%" } }, x))
|
|
1560
1911
|
);
|
|
1561
|
-
},
|
|
1912
|
+
}, kt = (t) => t === "0" || t === "0px" || t === 0, mo = (t, {
|
|
1562
1913
|
size: e,
|
|
1563
|
-
customStyle:
|
|
1564
|
-
active:
|
|
1565
|
-
activeStyle:
|
|
1566
|
-
}) =>
|
|
1914
|
+
customStyle: o,
|
|
1915
|
+
active: r,
|
|
1916
|
+
activeStyle: i
|
|
1917
|
+
}) => F(F(Wt(F({}, t), {
|
|
1567
1918
|
height: e
|
|
1568
|
-
}),
|
|
1919
|
+
}), o), r && i), He = {
|
|
1569
1920
|
button: {
|
|
1570
1921
|
display: "block",
|
|
1571
1922
|
border: 0,
|
|
@@ -1588,21 +1939,21 @@ var y = Zt(ct), ve = v(f), q = v(f), Kt = v(f), Xt = ({ name: t, size: e, format
|
|
|
1588
1939
|
display: "flex",
|
|
1589
1940
|
height: "100%"
|
|
1590
1941
|
}
|
|
1591
|
-
},
|
|
1592
|
-
const
|
|
1593
|
-
activeStyle:
|
|
1942
|
+
}, yo = L(m), O = (t) => (e) => {
|
|
1943
|
+
const o = Wt(F(F({
|
|
1944
|
+
activeStyle: F(F({}, t == null ? void 0 : t.activeStyle), e.activeStyle)
|
|
1594
1945
|
}, t), e), {
|
|
1595
|
-
style:
|
|
1946
|
+
style: F(F({}, t == null ? void 0 : t.style), e.style)
|
|
1596
1947
|
});
|
|
1597
|
-
return /* @__PURE__ */
|
|
1598
|
-
},
|
|
1948
|
+
return /* @__PURE__ */ yo.default.createElement(ho, F({}, o));
|
|
1949
|
+
}, wo = {
|
|
1599
1950
|
activeStyle: { background: "#293e69" },
|
|
1600
|
-
icon:
|
|
1951
|
+
icon: vo,
|
|
1601
1952
|
style: { background: "#3b5998" },
|
|
1602
1953
|
text: "Log in with Facebook"
|
|
1603
|
-
},
|
|
1604
|
-
function
|
|
1605
|
-
return /* @__PURE__ */
|
|
1954
|
+
}, bo = O(wo);
|
|
1955
|
+
function vo({ size: t, color: e }) {
|
|
1956
|
+
return /* @__PURE__ */ We.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 90 90" }, /* @__PURE__ */ We.default.createElement("g", null, /* @__PURE__ */ We.default.createElement(
|
|
1606
1957
|
"path",
|
|
1607
1958
|
{
|
|
1608
1959
|
d: "M90,15.001C90,7.119,82.884,0,75,0H15C7.116,0,0,7.119,0,15.001v59.998 C0,82.881,7.116,90,15.001,90H45V56H34V41h11v-5.844C45,25.077,52.568,16,61.875,16H74v15H61.875C60.548,31,59,32.611,59,35.024V41 h15v15H59v34h16c7.884,0,15-7.119,15-15.001V15.001z",
|
|
@@ -1610,14 +1961,14 @@ function sn({ size: t, color: e }) {
|
|
|
1610
1961
|
}
|
|
1611
1962
|
)));
|
|
1612
1963
|
}
|
|
1613
|
-
var
|
|
1964
|
+
var j = L(m), xo = {
|
|
1614
1965
|
activeStyle: { background: "#EFF0EE" },
|
|
1615
|
-
icon:
|
|
1966
|
+
icon: ko,
|
|
1616
1967
|
style: { background: "white", color: "black" },
|
|
1617
1968
|
text: "Log in with Google"
|
|
1618
|
-
},
|
|
1619
|
-
function
|
|
1620
|
-
return /* @__PURE__ */
|
|
1969
|
+
}, $o = O(xo);
|
|
1970
|
+
function ko({ size: t }) {
|
|
1971
|
+
return /* @__PURE__ */ j.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: t, height: t }, /* @__PURE__ */ j.default.createElement(
|
|
1621
1972
|
"linearGradient",
|
|
1622
1973
|
{
|
|
1623
1974
|
id: "95yY7w43Oj6n2vH63j6HJb",
|
|
@@ -1628,18 +1979,18 @@ function pn({ size: t }) {
|
|
|
1628
1979
|
gradientTransform: "matrix(1 0 0 -1 0 66)",
|
|
1629
1980
|
gradientUnits: "userSpaceOnUse"
|
|
1630
1981
|
},
|
|
1631
|
-
/* @__PURE__ */
|
|
1632
|
-
/* @__PURE__ */
|
|
1633
|
-
/* @__PURE__ */
|
|
1634
|
-
/* @__PURE__ */
|
|
1635
|
-
), /* @__PURE__ */
|
|
1982
|
+
/* @__PURE__ */ j.default.createElement("stop", { offset: "0", stopColor: "#ff5840" }),
|
|
1983
|
+
/* @__PURE__ */ j.default.createElement("stop", { offset: ".007", stopColor: "#ff5840" }),
|
|
1984
|
+
/* @__PURE__ */ j.default.createElement("stop", { offset: ".989", stopColor: "#fa528c" }),
|
|
1985
|
+
/* @__PURE__ */ j.default.createElement("stop", { offset: "1", stopColor: "#fa528c" })
|
|
1986
|
+
), /* @__PURE__ */ j.default.createElement(
|
|
1636
1987
|
"path",
|
|
1637
1988
|
{
|
|
1638
1989
|
fill: "url(#95yY7w43Oj6n2vH63j6HJb)",
|
|
1639
1990
|
d: `M47.46,15.5l-1.37,1.48c-1.34,1.44-3.5,1.67-5.15,0.6c-2.71-1.75-6.43-3.13-11-2.37 c-4.94,0.83-9.17,3.85-11.64,
|
|
1640
1991
|
7.97l-8.03-6.08C14.99,9.82,23.2,5,32.5,5c5,0,9.94,1.56,14.27,4.46 C48.81,10.83,49.13,13.71,47.46,15.5z`
|
|
1641
1992
|
}
|
|
1642
|
-
), /* @__PURE__ */
|
|
1993
|
+
), /* @__PURE__ */ j.default.createElement(
|
|
1643
1994
|
"linearGradient",
|
|
1644
1995
|
{
|
|
1645
1996
|
id: "95yY7w43Oj6n2vH63j6HJc",
|
|
@@ -1650,17 +2001,17 @@ function pn({ size: t }) {
|
|
|
1650
2001
|
gradientTransform: "matrix(1 0 0 -1 0 66)",
|
|
1651
2002
|
gradientUnits: "userSpaceOnUse"
|
|
1652
2003
|
},
|
|
1653
|
-
/* @__PURE__ */
|
|
1654
|
-
/* @__PURE__ */
|
|
1655
|
-
/* @__PURE__ */
|
|
1656
|
-
), /* @__PURE__ */
|
|
2004
|
+
/* @__PURE__ */ j.default.createElement("stop", { offset: "0", stopColor: "#feaa53" }),
|
|
2005
|
+
/* @__PURE__ */ j.default.createElement("stop", { offset: ".612", stopColor: "#ffcd49" }),
|
|
2006
|
+
/* @__PURE__ */ j.default.createElement("stop", { offset: "1", stopColor: "#ffde44" })
|
|
2007
|
+
), /* @__PURE__ */ j.default.createElement(
|
|
1657
2008
|
"path",
|
|
1658
2009
|
{
|
|
1659
2010
|
fill: "url(#95yY7w43Oj6n2vH63j6HJc)",
|
|
1660
2011
|
d: `M16.01,30.91c-0.09,2.47,0.37,4.83,1.27,6.96l-8.21,6.05c-1.35-2.51-2.3-5.28-2.75-8.22 c-1.06-6.88,0.54-13.38,
|
|
1661
2012
|
3.95-18.6l8.03,6.08C16.93,25.47,16.1,28.11,16.01,30.91z`
|
|
1662
2013
|
}
|
|
1663
|
-
), /* @__PURE__ */
|
|
2014
|
+
), /* @__PURE__ */ j.default.createElement(
|
|
1664
2015
|
"linearGradient",
|
|
1665
2016
|
{
|
|
1666
2017
|
id: "95yY7w43Oj6n2vH63j6HJd",
|
|
@@ -1671,17 +2022,17 @@ function pn({ size: t }) {
|
|
|
1671
2022
|
gradientTransform: "matrix(1 0 0 -1 0 66)",
|
|
1672
2023
|
gradientUnits: "userSpaceOnUse"
|
|
1673
2024
|
},
|
|
1674
|
-
/* @__PURE__ */
|
|
1675
|
-
/* @__PURE__ */
|
|
1676
|
-
/* @__PURE__ */
|
|
1677
|
-
), /* @__PURE__ */
|
|
2025
|
+
/* @__PURE__ */ j.default.createElement("stop", { offset: "0", stopColor: "#42d778" }),
|
|
2026
|
+
/* @__PURE__ */ j.default.createElement("stop", { offset: ".428", stopColor: "#3dca76" }),
|
|
2027
|
+
/* @__PURE__ */ j.default.createElement("stop", { offset: "1", stopColor: "#34b171" })
|
|
2028
|
+
), /* @__PURE__ */ j.default.createElement(
|
|
1678
2029
|
"path",
|
|
1679
2030
|
{
|
|
1680
2031
|
fill: "url(#95yY7w43Oj6n2vH63j6HJd)",
|
|
1681
2032
|
d: `M50.45,51.28c-4.55,4.07-10.61,6.57-17.36,6.71C22.91,58.2,13.66,52.53,9.07,43.92l8.21-6.05 C19.78,43.81,
|
|
1682
2033
|
25.67,48,32.5,48c3.94,0,7.52-1.28,10.33-3.44L50.45,51.28z`
|
|
1683
2034
|
}
|
|
1684
|
-
), /* @__PURE__ */
|
|
2035
|
+
), /* @__PURE__ */ j.default.createElement(
|
|
1685
2036
|
"linearGradient",
|
|
1686
2037
|
{
|
|
1687
2038
|
id: "95yY7w43Oj6n2vH63j6HJe",
|
|
@@ -1692,12 +2043,12 @@ function pn({ size: t }) {
|
|
|
1692
2043
|
gradientTransform: "matrix(1 0 0 -1 0 66)",
|
|
1693
2044
|
gradientUnits: "userSpaceOnUse"
|
|
1694
2045
|
},
|
|
1695
|
-
/* @__PURE__ */
|
|
1696
|
-
/* @__PURE__ */
|
|
1697
|
-
/* @__PURE__ */
|
|
1698
|
-
/* @__PURE__ */
|
|
1699
|
-
/* @__PURE__ */
|
|
1700
|
-
), /* @__PURE__ */
|
|
2046
|
+
/* @__PURE__ */ j.default.createElement("stop", { offset: "0", stopColor: "#155cde" }),
|
|
2047
|
+
/* @__PURE__ */ j.default.createElement("stop", { offset: ".278", stopColor: "#1f7fe5" }),
|
|
2048
|
+
/* @__PURE__ */ j.default.createElement("stop", { offset: ".569", stopColor: "#279ceb" }),
|
|
2049
|
+
/* @__PURE__ */ j.default.createElement("stop", { offset: ".82", stopColor: "#2cafef" }),
|
|
2050
|
+
/* @__PURE__ */ j.default.createElement("stop", { offset: "1", stopColor: "#2eb5f0" })
|
|
2051
|
+
), /* @__PURE__ */ j.default.createElement(
|
|
1701
2052
|
"path",
|
|
1702
2053
|
{
|
|
1703
2054
|
fill: "url(#95yY7w43Oj6n2vH63j6HJe)",
|
|
@@ -1706,23 +2057,23 @@ function pn({ size: t }) {
|
|
|
1706
2057
|
}
|
|
1707
2058
|
));
|
|
1708
2059
|
}
|
|
1709
|
-
var
|
|
2060
|
+
var St = L(m), So = {
|
|
1710
2061
|
activeStyle: { background: "#555555" },
|
|
1711
|
-
icon:
|
|
2062
|
+
icon: Co,
|
|
1712
2063
|
style: { background: "#333333" },
|
|
1713
2064
|
text: "Log in with GitHub"
|
|
1714
|
-
},
|
|
1715
|
-
function
|
|
1716
|
-
return /* @__PURE__ */
|
|
2065
|
+
}, _o = O(So);
|
|
2066
|
+
function Co({ size: t, color: e }) {
|
|
2067
|
+
return /* @__PURE__ */ St.default.createElement("svg", { fill: e, role: "img", viewBox: "0 0 24 24", width: t, height: t, xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ St.default.createElement("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" }));
|
|
1717
2068
|
}
|
|
1718
|
-
var
|
|
2069
|
+
var _t = L(m), Eo = {
|
|
1719
2070
|
activeStyle: { background: "#282e36" },
|
|
1720
|
-
icon:
|
|
2071
|
+
icon: Lo,
|
|
1721
2072
|
style: { background: "#0f1419" },
|
|
1722
2073
|
text: "Log in with Twitter"
|
|
1723
|
-
},
|
|
1724
|
-
function
|
|
1725
|
-
return /* @__PURE__ */
|
|
2074
|
+
}, jo = O(Eo);
|
|
2075
|
+
function Lo({ size: t, color: e }) {
|
|
2076
|
+
return /* @__PURE__ */ _t.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ _t.default.createElement(
|
|
1726
2077
|
"path",
|
|
1727
2078
|
{
|
|
1728
2079
|
fill: e,
|
|
@@ -1730,14 +2081,14 @@ function yn({ size: t, color: e }) {
|
|
|
1730
2081
|
}
|
|
1731
2082
|
));
|
|
1732
2083
|
}
|
|
1733
|
-
var
|
|
2084
|
+
var Ct = L(m), To = {
|
|
1734
2085
|
activeStyle: { background: "#ff9f23" },
|
|
1735
|
-
icon:
|
|
2086
|
+
icon: Mo,
|
|
1736
2087
|
style: { background: "#f9ae32" },
|
|
1737
2088
|
text: "Log in with Amazon"
|
|
1738
|
-
},
|
|
1739
|
-
function
|
|
1740
|
-
return /* @__PURE__ */
|
|
2089
|
+
}, Ao = O(To);
|
|
2090
|
+
function Mo({ size: t, color: e }) {
|
|
2091
|
+
return /* @__PURE__ */ Ct.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: e, width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ Ct.default.createElement(
|
|
1741
2092
|
"path",
|
|
1742
2093
|
{
|
|
1743
2094
|
d: "M13.958 10.09c0 1.232.029 2.256-.591 3.351-.502.891-1.301 1.438-2.186 1.438-1.214 0-1.922-.924-1.922-2.292 0-2.692 2.415-3.182 4.7-3.182v.685zm3.186 7.705c-.209.189-.512.201-.745.074-1.052-.872-1.238-1.276-1.814-2.106-1.734 1.767-2.962 2.297-5.209 2.297-2.66 0-4.731-1.641-4.731-4.925 0-2.565 1.391-4.309 3.37-5.164 1.715-.754 4.11-.891 5.942-1.095v-.41c0-.753.06-1.642-.383-2.294-.385-.579-1.124-.82-1.775-.82-1.205 0-2.277.618-2.54 1.897-.054.285-.261.567-.549.582l-3.061-.333c-.259-.056-.548-.266-.472-.66.704-3.716 4.06-4.838 7.066-4.838 1.537 0 3.547.41 4.758 1.574 1.538 1.436 1.392 3.352 1.392 5.438v4.923c0 1.481.616 2.13 1.192 2.929.204.287.247.63-.01.839-.647.541-1.794 1.537-2.423 2.099l-.008-.007zm3.559 1.988c-2.748 1.472-5.735 2.181-8.453 2.181-4.027 0-7.927-1.393-11.081-3.706-.277-.202-.481.154-.251.416 2.925 3.326 6.786 5.326 11.076 5.326 3.061 0 6.614-1.214 9.066-3.494.406-.377.058-.945-.357-.723zm.67 2.216c-.091.227.104.32.31.147 1.339-1.12 1.685-3.466 1.411-3.804-.272-.336-2.612-.626-4.04.377-.22.154-.182.367.062.337.805-.096 2.595-.312 2.913.098.319.41-.355 2.094-.656 2.845z",
|
|
@@ -1746,27 +2097,27 @@ function $n({ size: t, color: e }) {
|
|
|
1746
2097
|
}
|
|
1747
2098
|
));
|
|
1748
2099
|
}
|
|
1749
|
-
var
|
|
2100
|
+
var be = L(m), zo = {
|
|
1750
2101
|
activeStyle: {
|
|
1751
2102
|
background: "linear-gradient(to right, rgb(214, 146, 60) 0%, rgb(160, 11, 143) 50%, rgb(56, 10, 115) 100%)"
|
|
1752
2103
|
},
|
|
1753
|
-
icon:
|
|
2104
|
+
icon: Bo,
|
|
1754
2105
|
style: {
|
|
1755
2106
|
background: "linear-gradient(to right, rgb(236, 146, 35) 0%, rgb(177, 42, 160) 50%, rgb(105, 14, 224) 100%)"
|
|
1756
2107
|
},
|
|
1757
2108
|
text: "Log in with Instagram"
|
|
1758
|
-
},
|
|
1759
|
-
function
|
|
1760
|
-
return /* @__PURE__ */
|
|
2109
|
+
}, Oo = O(zo);
|
|
2110
|
+
function Bo({ size: t, color: e }) {
|
|
2111
|
+
return /* @__PURE__ */ be.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 169.063 169.063" }, /* @__PURE__ */ be.default.createElement("g", { fill: e }, /* @__PURE__ */ be.default.createElement("path", { d: "M122.406,0H46.654C20.929,0,0,20.93,0,46.655v75.752c0,25.726,20.929,46.655,46.654,46.655h75.752 c25.727,0,46.656-20.93,46.656-46.655V46.655C169.063,20.93,148.133,0,122.406,0z M154.063,122.407 c0,17.455-14.201,31.655-31.656,31.655H46.654C29.2,154.063,15,139.862,15,122.407V46.655C15,29.201,29.2,15,46.654,15h75.752 c17.455,0,31.656,14.201,31.656,31.655V122.407z" }), /* @__PURE__ */ be.default.createElement("path", { d: "M84.531,40.97c-24.021,0-43.563,19.542-43.563,43.563c0,24.02,19.542,43.561,43.563,43.561s43.563-19.541,43.563-43.561 C128.094,60.512,108.552,40.97,84.531,40.97z M84.531,113.093c-15.749,0-28.563-12.812-28.563-28.561 c0-15.75,12.813-28.563,28.563-28.563s28.563,12.813,28.563,28.563C113.094,100.281,100.28,113.093,84.531,113.093z" }), /* @__PURE__ */ be.default.createElement("path", { d: "M129.921,28.251c-2.89,0-5.729,1.17-7.77,3.22c-2.051,2.04-3.23,4.88-3.23,7.78c0,2.891,1.18,5.73,3.23,7.78 c2.04,2.04,4.88,3.22,7.77,3.22c2.9,0,5.73-1.18,7.78-3.22c2.05-2.05,3.22-4.89,3.22-7.78c0-2.9-1.17-5.74-3.22-7.78 C135.661,29.421,132.821,28.251,129.921,28.251z" })));
|
|
1761
2112
|
}
|
|
1762
|
-
var
|
|
2113
|
+
var Ve = L(m), Po = {
|
|
1763
2114
|
activeStyle: { background: "rgb(7, 112, 169)" },
|
|
1764
|
-
icon:
|
|
2115
|
+
icon: Io,
|
|
1765
2116
|
style: { background: "rgb(26, 129, 185)" },
|
|
1766
2117
|
text: "Log in with LinkedIn"
|
|
1767
|
-
},
|
|
1768
|
-
function
|
|
1769
|
-
return /* @__PURE__ */
|
|
2118
|
+
}, Ro = O(Po);
|
|
2119
|
+
function Io({ size: t, color: e }) {
|
|
2120
|
+
return /* @__PURE__ */ Ve.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 430.117 430.117" }, /* @__PURE__ */ Ve.default.createElement("g", null, /* @__PURE__ */ Ve.default.createElement(
|
|
1770
2121
|
"path",
|
|
1771
2122
|
{
|
|
1772
2123
|
d: "M430.117,261.543V420.56h-92.188V272.193c0-37.271-13.334-62.707-46.703-62.707 c-25.473,0-40.632,17.142-47.301,33.724c-2.432,5.928-3.058,14.179-3.058,22.477V420.56h-92.219c0,0,1.242-251.285,0-277.32h92.21 v39.309c-0.187,0.294-0.43,0.611-0.606,0.896h0.606v-0.896c12.251-18.869,34.13-45.824,83.102-45.824 C384.633,136.724,430.117,176.361,430.117,261.543z M52.183,9.558C20.635,9.558,0,30.251,0,57.463 c0,26.619,20.038,47.94,50.959,47.94h0.616c32.159,0,52.159-21.317,52.159-47.94C103.128,30.251,83.734,9.558,52.183,9.558z M5.477,420.56h92.184v-277.32H5.477V420.56z",
|
|
@@ -1774,23 +2125,23 @@ function En({ size: t, color: e }) {
|
|
|
1774
2125
|
}
|
|
1775
2126
|
)));
|
|
1776
2127
|
}
|
|
1777
|
-
var
|
|
2128
|
+
var ve = L(m), Fo = {
|
|
1778
2129
|
activeStyle: { background: "#555555" },
|
|
1779
|
-
icon:
|
|
2130
|
+
icon: Do,
|
|
1780
2131
|
style: { background: "#333333" },
|
|
1781
2132
|
text: "Log in with Microsoft"
|
|
1782
|
-
},
|
|
1783
|
-
function
|
|
1784
|
-
return /* @__PURE__ */
|
|
2133
|
+
}, No = O(Fo);
|
|
2134
|
+
function Do({ size: t, color: e }) {
|
|
2135
|
+
return /* @__PURE__ */ ve.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, fill: e, x: "0px", y: "0px", viewBox: "0 0 48 48" }, /* @__PURE__ */ ve.default.createElement("path", { fill: "#ff5722", d: "M6 6H22V22H6z", transform: "rotate(-180 14 14)" }), /* @__PURE__ */ ve.default.createElement("path", { fill: "#4caf50", d: "M26 6H42V22H26z", transform: "rotate(-180 34 14)" }), /* @__PURE__ */ ve.default.createElement("path", { fill: "#ffc107", d: "M26 26H42V42H26z", transform: "rotate(-180 34 34)" }), /* @__PURE__ */ ve.default.createElement("path", { fill: "#03a9f4", d: "M6 26H22V42H6z", transform: "rotate(-180 14 34)" }));
|
|
1785
2136
|
}
|
|
1786
|
-
var
|
|
2137
|
+
var Et = L(m), Uo = {
|
|
1787
2138
|
activeStyle: { background: "#1171BB" },
|
|
1788
|
-
icon:
|
|
2139
|
+
icon: Ho,
|
|
1789
2140
|
style: { background: "#168EEA" },
|
|
1790
2141
|
text: "Log in with Buffer"
|
|
1791
|
-
},
|
|
1792
|
-
function
|
|
1793
|
-
return /* @__PURE__ */
|
|
2142
|
+
}, Wo = O(Uo);
|
|
2143
|
+
function Ho({ size: t, color: e }) {
|
|
2144
|
+
return /* @__PURE__ */ Et.default.createElement(
|
|
1794
2145
|
"svg",
|
|
1795
2146
|
{
|
|
1796
2147
|
"aria-labelledby": "simpleicons-buffer-icon",
|
|
@@ -1800,7 +2151,7 @@ function Tn({ size: t, color: e }) {
|
|
|
1800
2151
|
height: t,
|
|
1801
2152
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1802
2153
|
},
|
|
1803
|
-
/* @__PURE__ */
|
|
2154
|
+
/* @__PURE__ */ Et.default.createElement(
|
|
1804
2155
|
"path",
|
|
1805
2156
|
{
|
|
1806
2157
|
d: "M23.784 18.24c.287.142.287.267 0 .374l-11.357 5.223c-.287.145-.57.145-.854 0L.213 18.614c-.284-.107-.284-.232 0-.375l2.722-1.23c.284-.14.57-.14.852 0l7.787 3.573c.285.14.57.14.854 0l7.787-3.574c.283-.14.568-.14.852 0l2.717 1.23zm0-6.454c.287.143.287.285 0 .426L12.427 17.44c-.287.104-.57.104-.854 0L.213 12.21c-.284-.143-.284-.284 0-.426l2.722-1.227c.284-.144.57-.144.852 0l7.787 3.57c.285.144.57.144.854 0l7.787-3.57c.283-.144.568-.144.852 0l2.717 1.226zM.214 5.76c-.285-.143-.285-.267 0-.375L11.574.16c.283-.14.57-.14.852 0l11.358 5.23c.287.107.287.232 0 .375l-11.357 5.223c-.287.143-.57.143-.854 0L.213 5.76z",
|
|
@@ -1809,18 +2160,18 @@ function Tn({ size: t, color: e }) {
|
|
|
1809
2160
|
)
|
|
1810
2161
|
);
|
|
1811
2162
|
}
|
|
1812
|
-
var
|
|
2163
|
+
var X = L(m), Vo = {
|
|
1813
2164
|
activeStyle: {
|
|
1814
2165
|
background: "#0088cc"
|
|
1815
2166
|
},
|
|
1816
|
-
icon:
|
|
2167
|
+
icon: qo,
|
|
1817
2168
|
style: {
|
|
1818
2169
|
background: "#54a9eb"
|
|
1819
2170
|
},
|
|
1820
2171
|
text: "Log in with Telegram"
|
|
1821
|
-
},
|
|
1822
|
-
function
|
|
1823
|
-
return /* @__PURE__ */
|
|
2172
|
+
}, Go = O(Vo);
|
|
2173
|
+
function qo({ size: t }) {
|
|
2174
|
+
return /* @__PURE__ */ X.default.createElement(
|
|
1824
2175
|
"svg",
|
|
1825
2176
|
{
|
|
1826
2177
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1829,11 +2180,11 @@ function On({ size: t }) {
|
|
|
1829
2180
|
height: t,
|
|
1830
2181
|
style: { transform: "scale(1.5)" }
|
|
1831
2182
|
},
|
|
1832
|
-
/* @__PURE__ */
|
|
1833
|
-
/* @__PURE__ */
|
|
1834
|
-
/* @__PURE__ */
|
|
1835
|
-
/* @__PURE__ */
|
|
1836
|
-
/* @__PURE__ */
|
|
2183
|
+
/* @__PURE__ */ X.default.createElement("defs", null, /* @__PURE__ */ X.default.createElement("linearGradient", { id: "b", x1: ".66", x2: ".851", y1: ".437", y2: ".802" }, /* @__PURE__ */ X.default.createElement("stop", { offset: "0", stopColor: "#eff7fc" }), /* @__PURE__ */ X.default.createElement("stop", { offset: "1", stopColor: "#fff" }))),
|
|
2184
|
+
/* @__PURE__ */ X.default.createElement("circle", { cx: "120", cy: "120", r: "120", fill: "url(#a)" }),
|
|
2185
|
+
/* @__PURE__ */ X.default.createElement("path", { fill: "#c8daea", d: "M98 175c-3.888 0-3.227-1.468-4.568-5.17L82 132.207 170 80" }),
|
|
2186
|
+
/* @__PURE__ */ X.default.createElement("path", { fill: "#a9c9dd", d: "M98 175c3 0 4.325-1.372 6-3l16-15.558-19.958-12.035" }),
|
|
2187
|
+
/* @__PURE__ */ X.default.createElement(
|
|
1837
2188
|
"path",
|
|
1838
2189
|
{
|
|
1839
2190
|
fill: "url(#b)",
|
|
@@ -1842,14 +2193,14 @@ function On({ size: t }) {
|
|
|
1842
2193
|
)
|
|
1843
2194
|
);
|
|
1844
2195
|
}
|
|
1845
|
-
var
|
|
2196
|
+
var Ge = L(m), Yo = {
|
|
1846
2197
|
activeStyle: { background: "#EFF0EE" },
|
|
1847
|
-
icon:
|
|
2198
|
+
icon: Jo,
|
|
1848
2199
|
style: { background: "#FFFFFF", color: "#000000" },
|
|
1849
2200
|
text: "Log in with Apple"
|
|
1850
|
-
},
|
|
1851
|
-
function
|
|
1852
|
-
return /* @__PURE__ */
|
|
2201
|
+
}, Ko = O(Yo);
|
|
2202
|
+
function Jo({ size: t }) {
|
|
2203
|
+
return /* @__PURE__ */ Ge.default.createElement(
|
|
1853
2204
|
"svg",
|
|
1854
2205
|
{
|
|
1855
2206
|
width: t,
|
|
@@ -1859,7 +2210,7 @@ function Fn({ size: t }) {
|
|
|
1859
2210
|
version: "1.1",
|
|
1860
2211
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1861
2212
|
},
|
|
1862
|
-
/* @__PURE__ */
|
|
2213
|
+
/* @__PURE__ */ Ge.default.createElement("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ Ge.default.createElement(
|
|
1863
2214
|
"path",
|
|
1864
2215
|
{
|
|
1865
2216
|
d: "M28.2226562,20.3846154 C29.0546875,20.3846154 30.0976562,19.8048315 30.71875,19.0317864 C31.28125,18.3312142 31.6914062,17.352829 31.6914062,16.3744437 C31.6914062,16.2415766 31.6796875,16.1087095 31.65625,16 C30.7304687,16.0362365 29.6171875,16.640178 28.9492187,17.4494596 C28.421875,18.06548 27.9414062,19.0317864 27.9414062,20.0222505 C27.9414062,20.1671964 27.9648438,20.3121424 27.9765625,20.3604577 C28.0351562,20.3725366 28.1289062,20.3846154 28.2226562,20.3846154 Z M25.2929688,35 C26.4296875,35 26.9335938,34.214876 28.3515625,34.214876 C29.7929688,34.214876 30.109375,34.9758423 31.375,34.9758423 C32.6171875,34.9758423 33.4492188,33.792117 34.234375,32.6325493 C35.1132812,31.3038779 35.4765625,29.9993643 35.5,29.9389701 C35.4179688,29.9148125 33.0390625,28.9122695 33.0390625,26.0979021 C33.0390625,23.6579784 34.9140625,22.5588048 35.0195312,22.474253 C33.7773438,20.6382708 31.890625,20.5899555 31.375,20.5899555 C29.9804688,20.5899555 28.84375,21.4596313 28.1289062,21.4596313 C27.3554688,21.4596313 26.3359375,20.6382708 25.1289062,20.6382708 C22.8320312,20.6382708 20.5,22.5950413 20.5,26.2911634 C20.5,28.5861411 21.3671875,31.013986 22.4335938,32.5842339 C23.3476562,33.9129053 24.1445312,35 25.2929688,35 Z",
|
|
@@ -1869,23 +2220,23 @@ function Fn({ size: t }) {
|
|
|
1869
2220
|
))
|
|
1870
2221
|
);
|
|
1871
2222
|
}
|
|
1872
|
-
var
|
|
2223
|
+
var qe = L(m), Qo = {
|
|
1873
2224
|
activeStyle: { background: "#697ec4" },
|
|
1874
|
-
icon:
|
|
2225
|
+
icon: Xo,
|
|
1875
2226
|
style: { background: "#7289DA" },
|
|
1876
2227
|
text: "Log in with Discord"
|
|
1877
|
-
},
|
|
1878
|
-
function
|
|
1879
|
-
return /* @__PURE__ */
|
|
2228
|
+
}, Zo = O(Qo);
|
|
2229
|
+
function Xo({ size: t, color: e }) {
|
|
2230
|
+
return /* @__PURE__ */ qe.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: e, width: t, height: t }, /* @__PURE__ */ qe.default.createElement("title", null, "Discord icon"), /* @__PURE__ */ qe.default.createElement("path", { d: "M20.222 0c1.406 0 2.54 1.137 2.607 2.475V24l-2.677-2.273-1.47-1.338-1.604-1.398.67 2.205H3.71c-1.402 0-2.54-1.065-2.54-2.476V2.48C1.17 1.142 2.31.003 3.715.003h16.5L20.222 0zm-6.118 5.683h-.03l-.202.2c2.073.6 3.076 1.537 3.076 1.537-1.336-.668-2.54-1.002-3.744-1.137-.87-.135-1.74-.064-2.475 0h-.2c-.47 0-1.47.2-2.81.735-.467.203-.735.336-.735.336s1.002-1.002 3.21-1.537l-.135-.135s-1.672-.064-3.477 1.27c0 0-1.805 3.144-1.805 7.02 0 0 1 1.74 3.743 1.806 0 0 .4-.533.805-1.002-1.54-.468-2.14-1.404-2.14-1.404s.134.066.335.2h.06c.03 0 .044.015.06.03v.006c.016.016.03.03.06.03.33.136.66.27.93.4.466.202 1.065.403 1.8.536.93.135 1.996.2 3.21 0 .6-.135 1.2-.267 1.8-.535.39-.2.87-.4 1.397-.737 0 0-.6.936-2.205 1.404.33.466.795 1 .795 1 2.744-.06 3.81-1.8 3.87-1.726 0-3.87-1.815-7.02-1.815-7.02-1.635-1.214-3.165-1.26-3.435-1.26l.056-.02zm.168 4.413c.703 0 1.27.6 1.27 1.335 0 .74-.57 1.34-1.27 1.34-.7 0-1.27-.6-1.27-1.334.002-.74.573-1.338 1.27-1.338zm-4.543 0c.7 0 1.266.6 1.266 1.335 0 .74-.57 1.34-1.27 1.34-.7 0-1.27-.6-1.27-1.334 0-.74.57-1.338 1.27-1.338z" }));
|
|
1880
2231
|
}
|
|
1881
|
-
var
|
|
2232
|
+
var ae = L(m), ea = {
|
|
1882
2233
|
activeStyle: { background: "#f5f5f5" },
|
|
1883
|
-
icon:
|
|
2234
|
+
icon: na,
|
|
1884
2235
|
style: { background: "white", color: "black" },
|
|
1885
2236
|
text: "Log in with Okta"
|
|
1886
|
-
},
|
|
1887
|
-
function
|
|
1888
|
-
return /* @__PURE__ */
|
|
2237
|
+
}, ta = O(ea);
|
|
2238
|
+
function na({ size: t }) {
|
|
2239
|
+
return /* @__PURE__ */ ae.default.createElement(
|
|
1889
2240
|
"svg",
|
|
1890
2241
|
{
|
|
1891
2242
|
version: "1.1",
|
|
@@ -1896,14 +2247,14 @@ function Gn({ size: t }) {
|
|
|
1896
2247
|
width: t,
|
|
1897
2248
|
height: t
|
|
1898
2249
|
},
|
|
1899
|
-
/* @__PURE__ */
|
|
2250
|
+
/* @__PURE__ */ ae.default.createElement("g", null, /* @__PURE__ */ ae.default.createElement("g", null, /* @__PURE__ */ ae.default.createElement(
|
|
1900
2251
|
"path",
|
|
1901
2252
|
{
|
|
1902
2253
|
fill: "#007DC1",
|
|
1903
2254
|
d: `M50.3,33.8C22.5,33.8,0,56.3,0,84.1s22.5,50.3,50.3,50.3s50.3-22.5,50.3-50.3S78.1,33.8,50.3,33.8z
|
|
1904
2255
|
M50.3,109.3c-13.9,0-25.2-11.3-25.2-25.2s11.3-25.2,25.2-25.2s25.2,11.3,25.2,25.2S64.2,109.3,50.3,109.3z`
|
|
1905
2256
|
}
|
|
1906
|
-
)), /* @__PURE__ */
|
|
2257
|
+
)), /* @__PURE__ */ ae.default.createElement(
|
|
1907
2258
|
"path",
|
|
1908
2259
|
{
|
|
1909
2260
|
fill: "#007DC1",
|
|
@@ -1912,7 +2263,7 @@ function Gn({ size: t }) {
|
|
|
1912
2263
|
h-20.6c-0.8,0-1.4,0-2,0.2c-1.2,0.4-1.7,0.8-2,1.2c-0.1,0.1-16.6,17.9-26.8,28.8c-2.8,3-7.8,1-7.8-3.1l0-57.1c0-2.9-2.4-4-4.3-4
|
|
1913
2264
|
h-16.8c-2.9,0-4.3,1.9-4.3,3.6v126.6c0,2.9,2.4,3.7,4.4,3.7h16.8c2.6,0,4.3-1.9,4.3-3.8v-1.3V101z`
|
|
1914
2265
|
}
|
|
1915
|
-
), /* @__PURE__ */
|
|
2266
|
+
), /* @__PURE__ */ ae.default.createElement(
|
|
1916
2267
|
"path",
|
|
1917
2268
|
{
|
|
1918
2269
|
fill: "#007DC1",
|
|
@@ -1922,7 +2273,7 @@ function Gn({ size: t }) {
|
|
|
1922
2273
|
C274.6,133.9,276.2,131.9,275.9,129.6z`
|
|
1923
2274
|
}
|
|
1924
2275
|
)),
|
|
1925
|
-
/* @__PURE__ */
|
|
2276
|
+
/* @__PURE__ */ ae.default.createElement("g", null, /* @__PURE__ */ ae.default.createElement(
|
|
1926
2277
|
"path",
|
|
1927
2278
|
{
|
|
1928
2279
|
fill: "#007DC1",
|
|
@@ -1935,14 +2286,14 @@ function Gn({ size: t }) {
|
|
|
1935
2286
|
))
|
|
1936
2287
|
);
|
|
1937
2288
|
}
|
|
1938
|
-
var
|
|
2289
|
+
var fe = L(m), oa = {
|
|
1939
2290
|
activeStyle: { background: "#f5f5f5" },
|
|
1940
|
-
icon:
|
|
2291
|
+
icon: ia,
|
|
1941
2292
|
style: { background: "white", color: "black" },
|
|
1942
2293
|
text: "Log in with Slack"
|
|
1943
|
-
},
|
|
1944
|
-
function
|
|
1945
|
-
return /* @__PURE__ */
|
|
2294
|
+
}, aa = O(oa);
|
|
2295
|
+
function ia({ size: t, color: e }) {
|
|
2296
|
+
return /* @__PURE__ */ fe.default.createElement(
|
|
1946
2297
|
"svg",
|
|
1947
2298
|
{
|
|
1948
2299
|
enableBackground: "new 0 0 2447.6 2452.5",
|
|
@@ -1952,25 +2303,25 @@ function Yn({ size: t, color: e }) {
|
|
|
1952
2303
|
height: t,
|
|
1953
2304
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1954
2305
|
},
|
|
1955
|
-
/* @__PURE__ */
|
|
2306
|
+
/* @__PURE__ */ fe.default.createElement("g", { clipRule: "evenodd", fillRule: "evenodd" }, /* @__PURE__ */ fe.default.createElement(
|
|
1956
2307
|
"path",
|
|
1957
2308
|
{
|
|
1958
2309
|
d: "m897.4 0c-135.3.1-244.8 109.9-244.7 245.2-.1 135.3 109.5 245.1 244.8 245.2h244.8v-245.1c.1-135.3-109.5-245.1-244.9-245.3.1 0 .1 0 0 0m0 654h-652.6c-135.3.1-244.9 109.9-244.8 245.2-.2 135.3 109.4 245.1 244.7 245.3h652.7c135.3-.1 244.9-109.9 244.8-245.2.1-135.4-109.5-245.2-244.8-245.3z",
|
|
1959
2310
|
fill: "#36c5f0"
|
|
1960
2311
|
}
|
|
1961
|
-
), /* @__PURE__ */
|
|
2312
|
+
), /* @__PURE__ */ fe.default.createElement(
|
|
1962
2313
|
"path",
|
|
1963
2314
|
{
|
|
1964
2315
|
d: "m2447.6 899.2c.1-135.3-109.5-245.1-244.8-245.2-135.3.1-244.9 109.9-244.8 245.2v245.3h244.8c135.3-.1 244.9-109.9 244.8-245.3zm-652.7 0v-654c.1-135.2-109.4-245-244.7-245.2-135.3.1-244.9 109.9-244.8 245.2v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.3z",
|
|
1965
2316
|
fill: "#2eb67d"
|
|
1966
2317
|
}
|
|
1967
|
-
), /* @__PURE__ */
|
|
2318
|
+
), /* @__PURE__ */ fe.default.createElement(
|
|
1968
2319
|
"path",
|
|
1969
2320
|
{
|
|
1970
2321
|
d: "m1550.1 2452.5c135.3-.1 244.9-109.9 244.8-245.2.1-135.3-109.5-245.1-244.8-245.2h-244.8v245.2c-.1 135.2 109.5 245 244.8 245.2zm0-654.1h652.7c135.3-.1 244.9-109.9 244.8-245.2.2-135.3-109.4-245.1-244.7-245.3h-652.7c-135.3.1-244.9 109.9-244.8 245.2-.1 135.4 109.4 245.2 244.7 245.3z",
|
|
1971
2322
|
fill: "#ecb22e"
|
|
1972
2323
|
}
|
|
1973
|
-
), /* @__PURE__ */
|
|
2324
|
+
), /* @__PURE__ */ fe.default.createElement(
|
|
1974
2325
|
"path",
|
|
1975
2326
|
{
|
|
1976
2327
|
d: "m0 1553.2c-.1 135.3 109.5 245.1 244.8 245.2 135.3-.1 244.9-109.9 244.8-245.2v-245.2h-244.8c-135.3.1-244.9 109.9-244.8 245.2zm652.7 0v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.2v-653.9c.2-135.3-109.4-245.1-244.7-245.3-135.4 0-244.9 109.8-244.8 245.1 0 0 0 .1 0 0",
|
|
@@ -1979,14 +2330,14 @@ function Yn({ size: t, color: e }) {
|
|
|
1979
2330
|
))
|
|
1980
2331
|
);
|
|
1981
2332
|
}
|
|
1982
|
-
var
|
|
2333
|
+
var je = L(m), ra = {
|
|
1983
2334
|
activeStyle: { background: "#ac3ade" },
|
|
1984
|
-
icon:
|
|
2335
|
+
icon: ca,
|
|
1985
2336
|
style: { background: "#720E9E" },
|
|
1986
2337
|
text: "Log in with Yahoo"
|
|
1987
|
-
},
|
|
1988
|
-
function
|
|
1989
|
-
return /* @__PURE__ */
|
|
2338
|
+
}, la = O(ra);
|
|
2339
|
+
function ca({ size: t, color: e }) {
|
|
2340
|
+
return /* @__PURE__ */ je.default.createElement(
|
|
1990
2341
|
"svg",
|
|
1991
2342
|
{
|
|
1992
2343
|
version: "1.1",
|
|
@@ -1999,14 +2350,14 @@ function Zn({ size: t, color: e }) {
|
|
|
1999
2350
|
width: t,
|
|
2000
2351
|
height: t
|
|
2001
2352
|
},
|
|
2002
|
-
/* @__PURE__ */
|
|
2353
|
+
/* @__PURE__ */ je.default.createElement("g", null, /* @__PURE__ */ je.default.createElement(
|
|
2003
2354
|
"path",
|
|
2004
2355
|
{
|
|
2005
2356
|
fill: "transparent",
|
|
2006
2357
|
d: `M145.659,0c80.45,0,145.66,65.219,145.66,145.66c0,80.45-65.21,145.659-145.66,145.659
|
|
2007
2358
|
S0,226.109,0,145.66C0,65.219,65.21,0,145.659,0z`
|
|
2008
2359
|
}
|
|
2009
|
-
), /* @__PURE__ */
|
|
2360
|
+
), /* @__PURE__ */ je.default.createElement(
|
|
2010
2361
|
"path",
|
|
2011
2362
|
{
|
|
2012
2363
|
fill: "#FFFFFF",
|
|
@@ -2022,14 +2373,14 @@ function Zn({ size: t, color: e }) {
|
|
|
2022
2373
|
))
|
|
2023
2374
|
);
|
|
2024
2375
|
}
|
|
2025
|
-
var
|
|
2376
|
+
var jt = L(m), sa = {
|
|
2026
2377
|
activeStyle: { background: "#008FF3" },
|
|
2027
|
-
icon:
|
|
2378
|
+
icon: da,
|
|
2028
2379
|
style: { background: "#0573ff" },
|
|
2029
2380
|
text: "Log in with Zalo"
|
|
2030
|
-
},
|
|
2031
|
-
function
|
|
2032
|
-
return /* @__PURE__ */
|
|
2381
|
+
}, ua = O(sa);
|
|
2382
|
+
function da({ size: t, color: e }) {
|
|
2383
|
+
return /* @__PURE__ */ jt.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ jt.default.createElement(
|
|
2033
2384
|
"path",
|
|
2034
2385
|
{
|
|
2035
2386
|
fill: e,
|
|
@@ -2037,23 +2388,23 @@ function eo({ size: t, color: e }) {
|
|
|
2037
2388
|
}
|
|
2038
2389
|
));
|
|
2039
2390
|
}
|
|
2040
|
-
var
|
|
2391
|
+
var Lt = L(m), fa = {
|
|
2041
2392
|
activeStyle: { background: "#333333" },
|
|
2042
|
-
icon:
|
|
2393
|
+
icon: ga,
|
|
2043
2394
|
style: { background: "#000000", color: "#FFFFFF" },
|
|
2044
2395
|
text: "Log in with TikTok"
|
|
2045
|
-
},
|
|
2046
|
-
function
|
|
2047
|
-
return /* @__PURE__ */
|
|
2396
|
+
}, pa = O(fa);
|
|
2397
|
+
function ga({ size: t, color: e }) {
|
|
2398
|
+
return /* @__PURE__ */ Lt.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, fill: e, viewBox: "0 0 512 512" }, /* @__PURE__ */ Lt.default.createElement("path", { d: "M412.19 118.66a109.27 109.27 0 01-9.45-5.5 132.87 132.87 0 01-24.27-20.62c-18.1-20.71-24.86-41.72-27.35-56.43h.1C349.14 23.9 350 16 350.13 16h-82.44v318.78c0 4.28 0 8.51-.18 12.69 0 .52-.05 1-.08 1.56 0 .23 0 .47-.05.71v.18a70 70 0 01-35.22 55.56 68.8 68.8 0 01-34.11 9c-38.41 0-69.54-31.32-69.54-70s31.13-70 69.54-70a68.9 68.9 0 0121.41 3.39l.1-83.94a153.14 153.14 0 00-118 34.52 161.79 161.79 0 00-35.3 43.53c-3.48 6-16.61 30.11-18.2 69.24-1 22.21 5.67 45.22 8.85 54.73v.2c2 5.6 9.75 24.71 22.38 40.82A167.53 167.53 0 00115 470.66v-.2l.2.2c39.91 27.12 84.16 25.34 84.16 25.34 7.66-.31 33.32 0 62.46-13.81 32.32-15.31 50.72-38.12 50.72-38.12a158.46 158.46 0 0027.64-45.93c7.46-19.61 9.95-43.13 9.95-52.53V176.49c1 .6 14.32 9.41 14.32 9.41s19.19 12.3 49.13 20.31c21.48 5.7 50.42 6.9 50.42 6.9v-81.84c-10.14 1.1-30.73-2.1-51.81-12.61z" }));
|
|
2048
2399
|
}
|
|
2049
|
-
var
|
|
2400
|
+
var H = L(m), ha = {
|
|
2050
2401
|
activeStyle: { background: "#eeeeee" },
|
|
2051
|
-
icon:
|
|
2402
|
+
icon: ya,
|
|
2052
2403
|
style: { background: "#ffffff", color: "#333333" },
|
|
2053
2404
|
text: "Log in with Metamask"
|
|
2054
|
-
},
|
|
2055
|
-
function
|
|
2056
|
-
return /* @__PURE__ */
|
|
2405
|
+
}, ma = O(ha);
|
|
2406
|
+
function ya({ size: t }) {
|
|
2407
|
+
return /* @__PURE__ */ H.default.createElement(
|
|
2057
2408
|
"svg",
|
|
2058
2409
|
{
|
|
2059
2410
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2065,7 +2416,7 @@ function lo({ size: t }) {
|
|
|
2065
2416
|
viewBox: "0 0 318.6 318.6",
|
|
2066
2417
|
xmlSpace: "preserve"
|
|
2067
2418
|
},
|
|
2068
|
-
/* @__PURE__ */
|
|
2419
|
+
/* @__PURE__ */ H.default.createElement(
|
|
2069
2420
|
"path",
|
|
2070
2421
|
{
|
|
2071
2422
|
fill: "#e2761b",
|
|
@@ -2075,19 +2426,19 @@ function lo({ size: t }) {
|
|
|
2075
2426
|
d: "M274.1 35.5l-99.5 73.9L193 65.8z"
|
|
2076
2427
|
}
|
|
2077
2428
|
),
|
|
2078
|
-
/* @__PURE__ */
|
|
2429
|
+
/* @__PURE__ */ H.default.createElement(
|
|
2079
2430
|
"path",
|
|
2080
|
-
|
|
2431
|
+
F({
|
|
2081
2432
|
d: "M44.4 35.5l98.7 74.6-17.5-44.3zm193.9 171.3l-26.5 40.6 56.7 15.6 16.3-55.3zm-204.4.9L50.1 263l56.7-15.6-26.5-40.6z"
|
|
2082
|
-
},
|
|
2433
|
+
}, Tt)
|
|
2083
2434
|
),
|
|
2084
|
-
/* @__PURE__ */
|
|
2435
|
+
/* @__PURE__ */ H.default.createElement(
|
|
2085
2436
|
"path",
|
|
2086
|
-
|
|
2437
|
+
F({
|
|
2087
2438
|
d: "M103.6 138.2l-15.8 23.9 56.3 2.5-2-60.5zm111.3 0l-39-34.8-1.3 61.2 56.2-2.5zM106.8 247.4l33.8-16.5-29.2-22.8zm71.1-16.5l33.9 16.5-4.7-39.3z"
|
|
2088
|
-
},
|
|
2439
|
+
}, Tt)
|
|
2089
2440
|
),
|
|
2090
|
-
/* @__PURE__ */
|
|
2441
|
+
/* @__PURE__ */ H.default.createElement(
|
|
2091
2442
|
"path",
|
|
2092
2443
|
{
|
|
2093
2444
|
fill: "#d7c1b3",
|
|
@@ -2097,7 +2448,7 @@ function lo({ size: t }) {
|
|
|
2097
2448
|
d: "M211.8 247.4l-33.9-16.5 2.7 22.1-.3 9.3zm-105 0l31.5 14.9-.2-9.3 2.5-22.1z"
|
|
2098
2449
|
}
|
|
2099
2450
|
),
|
|
2100
|
-
/* @__PURE__ */
|
|
2451
|
+
/* @__PURE__ */ H.default.createElement(
|
|
2101
2452
|
"path",
|
|
2102
2453
|
{
|
|
2103
2454
|
fill: "#233447",
|
|
@@ -2107,7 +2458,7 @@ function lo({ size: t }) {
|
|
|
2107
2458
|
d: "M138.8 193.5l-28.2-8.3 19.9-9.1zm40.9 0l8.3-17.4 20 9.1z"
|
|
2108
2459
|
}
|
|
2109
2460
|
),
|
|
2110
|
-
/* @__PURE__ */
|
|
2461
|
+
/* @__PURE__ */ H.default.createElement(
|
|
2111
2462
|
"path",
|
|
2112
2463
|
{
|
|
2113
2464
|
fill: "#cd6116",
|
|
@@ -2117,7 +2468,7 @@ function lo({ size: t }) {
|
|
|
2117
2468
|
d: "M106.8 247.4l4.8-40.6-31.3.9zM207 206.8l4.8 40.6 26.5-39.7zm23.8-44.7l-56.2 2.5 5.2 28.9 8.3-17.4 20 9.1zm-120.2 23.1l20-9.1 8.2 17.4 5.3-28.9-56.3-2.5z"
|
|
2118
2469
|
}
|
|
2119
2470
|
),
|
|
2120
|
-
/* @__PURE__ */
|
|
2471
|
+
/* @__PURE__ */ H.default.createElement(
|
|
2121
2472
|
"path",
|
|
2122
2473
|
{
|
|
2123
2474
|
fill: "#e4751f",
|
|
@@ -2127,13 +2478,13 @@ function lo({ size: t }) {
|
|
|
2127
2478
|
d: "M87.8 162.1l23.6 46-.8-22.9zm120.3 23.1l-1 22.9 23.7-46zm-64-20.6l-5.3 28.9 6.6 34.1 1.5-44.9zm30.5 0l-2.7 18 1.2 45 6.7-34.1z"
|
|
2128
2479
|
}
|
|
2129
2480
|
),
|
|
2130
|
-
/* @__PURE__ */
|
|
2481
|
+
/* @__PURE__ */ H.default.createElement(
|
|
2131
2482
|
"path",
|
|
2132
|
-
|
|
2483
|
+
F({
|
|
2133
2484
|
d: "M179.8 193.5l-6.7 34.1 4.8 3.3 29.2-22.8 1-22.9zm-69.2-8.3l.8 22.9 29.2 22.8 4.8-3.3-6.6-34.1z"
|
|
2134
|
-
},
|
|
2485
|
+
}, At)
|
|
2135
2486
|
),
|
|
2136
|
-
/* @__PURE__ */
|
|
2487
|
+
/* @__PURE__ */ H.default.createElement(
|
|
2137
2488
|
"path",
|
|
2138
2489
|
{
|
|
2139
2490
|
fill: "#c0ad9e",
|
|
@@ -2143,7 +2494,7 @@ function lo({ size: t }) {
|
|
|
2143
2494
|
d: "M180.3 262.3l.3-9.3-2.5-2.2h-37.7l-2.3 2.2.2 9.3-31.5-14.9 11 9 22.3 15.5h38.3l22.4-15.5 11-9z"
|
|
2144
2495
|
}
|
|
2145
2496
|
),
|
|
2146
|
-
/* @__PURE__ */
|
|
2497
|
+
/* @__PURE__ */ H.default.createElement(
|
|
2147
2498
|
"path",
|
|
2148
2499
|
{
|
|
2149
2500
|
fill: "#161616",
|
|
@@ -2153,7 +2504,7 @@ function lo({ size: t }) {
|
|
|
2153
2504
|
d: "M177.9 230.9l-4.8-3.3h-27.7l-4.8 3.3-2.5 22.1 2.3-2.2h37.7l2.5 2.2z"
|
|
2154
2505
|
}
|
|
2155
2506
|
),
|
|
2156
|
-
/* @__PURE__ */
|
|
2507
|
+
/* @__PURE__ */ H.default.createElement(
|
|
2157
2508
|
"path",
|
|
2158
2509
|
{
|
|
2159
2510
|
fill: "#763d16",
|
|
@@ -2163,41 +2514,41 @@ function lo({ size: t }) {
|
|
|
2163
2514
|
d: "M278.3 114.2l8.5-40.8-12.7-37.9-96.2 71.4 37 31.3 52.3 15.3 11.6-13.5-5-3.6 8-7.3-6.2-4.8 8-6.1zM31.8 73.4l8.5 40.8-5.4 4 8 6.1-6.1 4.8 8 7.3-5 3.6 11.5 13.5 52.3-15.3 37-31.3-96.2-71.4z"
|
|
2164
2515
|
}
|
|
2165
2516
|
),
|
|
2166
|
-
/* @__PURE__ */
|
|
2517
|
+
/* @__PURE__ */ H.default.createElement(
|
|
2167
2518
|
"path",
|
|
2168
|
-
|
|
2519
|
+
F({
|
|
2169
2520
|
d: "M267.2 153.5l-52.3-15.3 15.9 23.9-23.7 46 31.2-.4h46.5zm-163.6-15.3l-52.3 15.3-17.4 54.2h46.4l31.1.4-23.6-46zm71 26.4l3.3-57.7 15.2-41.1h-67.5l15 41.1 3.5 57.7 1.2 18.2.1 44.8h27.7l.2-44.8z"
|
|
2170
|
-
},
|
|
2521
|
+
}, At)
|
|
2171
2522
|
)
|
|
2172
2523
|
);
|
|
2173
2524
|
}
|
|
2174
|
-
var
|
|
2525
|
+
var Tt = {
|
|
2175
2526
|
fill: "#e4761b",
|
|
2176
2527
|
stroke: "#e4761b",
|
|
2177
2528
|
strokeLinecap: "round",
|
|
2178
2529
|
strokeLinejoin: "round"
|
|
2179
|
-
},
|
|
2530
|
+
}, At = {
|
|
2180
2531
|
fill: "#f6851b",
|
|
2181
2532
|
stroke: "#f6851b",
|
|
2182
2533
|
strokeLinecap: "round",
|
|
2183
2534
|
strokeLinejoin: "round"
|
|
2184
|
-
},
|
|
2185
|
-
icon:
|
|
2535
|
+
}, Mt = L(m), wa = {
|
|
2536
|
+
icon: va,
|
|
2186
2537
|
style: { background: "#fc6d26" },
|
|
2187
2538
|
activeStyle: { background: "#d55a1c" },
|
|
2188
2539
|
text: "Log in with Gitlab"
|
|
2189
|
-
},
|
|
2190
|
-
function
|
|
2191
|
-
return /* @__PURE__ */
|
|
2540
|
+
}, ba = O(wa);
|
|
2541
|
+
function va({ size: t, color: e }) {
|
|
2542
|
+
return /* @__PURE__ */ Mt.default.createElement("svg", { fill: e, role: "img", viewBox: "0 0 24 24", width: t, height: t, xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ Mt.default.createElement("path", { d: "M21.94 13.11L20.89 9.89C20.89 9.86 20.88 9.83 20.87 9.8L18.76 3.32C18.65 3 18.33 2.75 17.96 2.75C17.6 2.75 17.28 3 17.17 3.33L15.17 9.5H8.84L6.83 3.33C6.72 3 6.4 2.75 6.04 2.75H6.04C5.67 2.75 5.35 3 5.24 3.33L3.13 9.82C3.13 9.82 3.13 9.83 3.13 9.83L2.06 13.11C1.9 13.61 2.07 14.15 2.5 14.45L11.72 21.16C11.89 21.28 12.11 21.28 12.28 21.15L21.5 14.45C21.93 14.15 22.1 13.61 21.94 13.11M8.15 10.45L10.72 18.36L4.55 10.45M13.28 18.37L15.75 10.78L15.85 10.45H19.46L13.87 17.61M17.97 3.94L19.78 9.5H16.16M14.86 10.45L13.07 15.96L12 19.24L9.14 10.45M6.03 3.94L7.84 9.5H4.23M3.05 13.69C2.96 13.62 2.92 13.5 2.96 13.4L3.75 10.97L9.57 18.42M20.95 13.69L14.44 18.42L14.46 18.39L20.25 10.97L21.04 13.4C21.08 13.5 21.04 13.62 20.95 13.69" }));
|
|
2192
2543
|
}
|
|
2193
|
-
var
|
|
2544
|
+
var zt = L(m), xa = {
|
|
2194
2545
|
activeStyle: { background: "#282e36" },
|
|
2195
|
-
icon:
|
|
2546
|
+
icon: ka,
|
|
2196
2547
|
style: { background: "#0f1419" },
|
|
2197
2548
|
text: "Log in with X"
|
|
2198
|
-
},
|
|
2199
|
-
function
|
|
2200
|
-
return /* @__PURE__ */
|
|
2549
|
+
}, $a = O(xa);
|
|
2550
|
+
function ka({ size: t, color: e }) {
|
|
2551
|
+
return /* @__PURE__ */ zt.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ zt.default.createElement(
|
|
2201
2552
|
"path",
|
|
2202
2553
|
{
|
|
2203
2554
|
fill: e,
|
|
@@ -2205,491 +2556,491 @@ function fo({ size: t, color: e }) {
|
|
|
2205
2556
|
}
|
|
2206
2557
|
));
|
|
2207
2558
|
}
|
|
2208
|
-
function
|
|
2209
|
-
return /* @__PURE__ */
|
|
2210
|
-
/* @__PURE__ */
|
|
2211
|
-
/* @__PURE__ */
|
|
2212
|
-
/* @__PURE__ */
|
|
2213
|
-
/* @__PURE__ */
|
|
2214
|
-
/* @__PURE__ */
|
|
2215
|
-
/* @__PURE__ */
|
|
2216
|
-
/* @__PURE__ */
|
|
2217
|
-
/* @__PURE__ */
|
|
2559
|
+
function Sa({ width: t = 24, height: e = 24, color: o }) {
|
|
2560
|
+
return /* @__PURE__ */ a.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", height: "48", width: "32", viewBox: "-18.15 -35.9725 157.3 215.835", children: [
|
|
2561
|
+
/* @__PURE__ */ a.jsx("path", { fill: "#faab07", d: "M60.503 142.237c-12.533 0-24.038-4.195-31.445-10.46-3.762 1.124-8.574 2.932-11.61 5.175-2.6 1.918-2.275 3.874-1.807 4.663 2.056 3.47 35.273 2.216 44.862 1.136zm0 0c12.535 0 24.039-4.195 31.447-10.46 3.76 1.124 8.573 2.932 11.61 5.175 2.598 1.918 2.274 3.874 1.805 4.663-2.056 3.47-35.272 2.216-44.862 1.136zm0 0" }),
|
|
2562
|
+
/* @__PURE__ */ a.jsx("path", { d: "M60.576 67.119c20.698-.14 37.286-4.147 42.907-5.683 1.34-.367 2.056-1.024 2.056-1.024.005-.189.085-3.37.085-5.01C105.624 27.768 92.58.001 60.5 0 28.42.001 15.375 27.769 15.375 55.401c0 1.642.08 4.822.086 5.01 0 0 .583.615 1.65.913 5.19 1.444 22.09 5.65 43.312 5.795zm56.245 23.02c-1.283-4.129-3.034-8.944-4.808-13.568 0 0-1.02-.126-1.537.023-15.913 4.623-35.202 7.57-49.9 7.392h-.153c-14.616.175-33.774-2.737-49.634-7.315-.606-.175-1.802-.1-1.802-.1-1.774 4.624-3.525 9.44-4.808 13.568-6.119 19.69-4.136 27.838-2.627 28.02 3.239.392 12.606-14.821 12.606-14.821 0 15.459 13.957 39.195 45.918 39.413h.848c31.96-.218 45.917-23.954 45.917-39.413 0 0 9.368 15.213 12.607 14.822 1.508-.183 3.491-8.332-2.627-28.021" }),
|
|
2563
|
+
/* @__PURE__ */ a.jsx("path", { fill: "#fff", d: "M49.085 40.824c-4.352.197-8.07-4.76-8.304-11.063-.236-6.305 3.098-11.576 7.45-11.773 4.347-.195 8.064 4.76 8.3 11.065.238 6.306-3.097 11.577-7.446 11.771m31.133-11.063c-.233 6.302-3.951 11.26-8.303 11.063-4.35-.195-7.684-5.465-7.446-11.77.236-6.305 3.952-11.26 8.3-11.066 4.352.197 7.686 5.468 7.449 11.773" }),
|
|
2564
|
+
/* @__PURE__ */ a.jsx("path", { fill: "#faab07", d: "M87.952 49.725C86.79 47.15 75.077 44.28 60.578 44.28h-.156c-14.5 0-26.212 2.87-27.375 5.446a.863.863 0 00-.085.367.88.88 0 00.16.496c.98 1.427 13.985 8.487 27.3 8.487h.156c13.314 0 26.319-7.058 27.299-8.487a.873.873 0 00.16-.498.856.856 0 00-.085-.365" }),
|
|
2565
|
+
/* @__PURE__ */ a.jsx("path", { d: "M54.434 29.854c.199 2.49-1.167 4.702-3.046 4.943-1.883.242-3.568-1.58-3.768-4.07-.197-2.492 1.167-4.704 3.043-4.944 1.886-.244 3.574 1.58 3.771 4.07m11.956.833c.385-.689 3.004-4.312 8.427-2.993 1.425.347 2.084.857 2.223 1.057.205.296.262.718.053 1.286-.412 1.126-1.263 1.095-1.734.875-.305-.142-4.082-2.66-7.562 1.097-.24.257-.668.346-1.073.04-.407-.308-.574-.93-.334-1.362" }),
|
|
2566
|
+
/* @__PURE__ */ a.jsx("path", { fill: "#fff", d: "M60.576 83.08h-.153c-9.996.12-22.116-1.204-33.854-3.518-1.004 5.818-1.61 13.132-1.09 21.853 1.316 22.043 14.407 35.9 34.614 36.1h.82c20.208-.2 33.298-14.057 34.616-36.1.52-8.723-.087-16.035-1.092-21.854-11.739 2.315-23.862 3.64-33.86 3.518" }),
|
|
2567
|
+
/* @__PURE__ */ a.jsx("path", { fill: "#eb1923", d: "M32.102 81.235v21.693s9.937 2.004 19.893.616V83.535c-6.307-.357-13.109-1.152-19.893-2.3" }),
|
|
2568
|
+
/* @__PURE__ */ a.jsx("path", { fill: "#eb1923", d: "M105.539 60.412s-19.33 6.102-44.963 6.275h-.153c-25.591-.172-44.896-6.255-44.962-6.275L8.987 76.57c16.193 4.882 36.261 8.028 51.436 7.845h.153c15.175.183 35.242-2.963 51.437-7.845zm0 0" })
|
|
2218
2569
|
] });
|
|
2219
2570
|
}
|
|
2220
|
-
const
|
|
2571
|
+
const _a = {
|
|
2221
2572
|
text: "Sign in with QQ",
|
|
2222
|
-
icon:
|
|
2573
|
+
icon: Sa,
|
|
2223
2574
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2224
2575
|
style: { background: "rgb(94,188,249)" },
|
|
2225
2576
|
activeStyle: { background: "rgb(76,143,208)" }
|
|
2226
|
-
},
|
|
2227
|
-
function
|
|
2228
|
-
return /* @__PURE__ */
|
|
2577
|
+
}, Ca = C.createButton(_a);
|
|
2578
|
+
function Ea({ width: t = 24, height: e = 24, color: o }) {
|
|
2579
|
+
return /* @__PURE__ */ a.jsx(
|
|
2229
2580
|
"img",
|
|
2230
2581
|
{
|
|
2231
|
-
src: `${
|
|
2582
|
+
src: `${d}/buttons/facebook.svg`,
|
|
2232
2583
|
alt: "Sign in with Facebook"
|
|
2233
2584
|
}
|
|
2234
2585
|
);
|
|
2235
2586
|
}
|
|
2236
|
-
const
|
|
2587
|
+
const ja = {
|
|
2237
2588
|
text: "Sign in with Facebook",
|
|
2238
|
-
icon:
|
|
2589
|
+
icon: Ea,
|
|
2239
2590
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2240
2591
|
style: { background: "#3b5998" },
|
|
2241
2592
|
activeStyle: { background: "#2b3f65" }
|
|
2242
|
-
},
|
|
2243
|
-
function
|
|
2244
|
-
return /* @__PURE__ */
|
|
2593
|
+
}, La = C.createButton(ja);
|
|
2594
|
+
function Ta({ width: t = 24, height: e = 24, color: o }) {
|
|
2595
|
+
return /* @__PURE__ */ a.jsx("img", { src: `${d}/buttons/weibo.svg`, alt: "Sign in with Weibo" });
|
|
2245
2596
|
}
|
|
2246
|
-
const
|
|
2597
|
+
const Aa = {
|
|
2247
2598
|
text: "Sign in with Weibo",
|
|
2248
|
-
icon:
|
|
2599
|
+
icon: Ta,
|
|
2249
2600
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2250
2601
|
style: { background: "#e62329" },
|
|
2251
2602
|
activeStyle: { background: "#e54329" }
|
|
2252
|
-
},
|
|
2253
|
-
function
|
|
2254
|
-
return /* @__PURE__ */
|
|
2603
|
+
}, Ma = C.createButton(Aa);
|
|
2604
|
+
function za({ width: t = 24, height: e = 24, color: o }) {
|
|
2605
|
+
return /* @__PURE__ */ a.jsx("img", { src: `${d}/buttons/gitee.svg`, alt: "Sign in with Gitee" });
|
|
2255
2606
|
}
|
|
2256
|
-
const
|
|
2607
|
+
const Oa = {
|
|
2257
2608
|
text: "Sign in with Gitee",
|
|
2258
|
-
icon:
|
|
2609
|
+
icon: za,
|
|
2259
2610
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2260
2611
|
style: { background: "rgb(199,29,35)" },
|
|
2261
2612
|
activeStyle: { background: "rgb(147,22,26)" }
|
|
2262
|
-
},
|
|
2263
|
-
function
|
|
2264
|
-
return /* @__PURE__ */
|
|
2613
|
+
}, Ba = C.createButton(Oa);
|
|
2614
|
+
function Pa({ width: t = 24, height: e = 24, color: o }) {
|
|
2615
|
+
return /* @__PURE__ */ a.jsx(
|
|
2265
2616
|
"img",
|
|
2266
2617
|
{
|
|
2267
|
-
src: `${
|
|
2618
|
+
src: `${d}/buttons/wechat.svg`,
|
|
2268
2619
|
alt: "Sign in with Wechat"
|
|
2269
2620
|
}
|
|
2270
2621
|
);
|
|
2271
2622
|
}
|
|
2272
|
-
const
|
|
2623
|
+
const Ra = {
|
|
2273
2624
|
text: "Sign in with Wechat",
|
|
2274
|
-
icon:
|
|
2625
|
+
icon: Pa,
|
|
2275
2626
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2276
2627
|
style: { background: "rgb(0,194,80)" },
|
|
2277
2628
|
activeStyle: { background: "rgb(0,158,64)" }
|
|
2278
|
-
},
|
|
2279
|
-
function
|
|
2280
|
-
return /* @__PURE__ */
|
|
2629
|
+
}, Ia = C.createButton(Ra);
|
|
2630
|
+
function Fa({ width: t = 24, height: e = 24, color: o }) {
|
|
2631
|
+
return /* @__PURE__ */ a.jsx(
|
|
2281
2632
|
"img",
|
|
2282
2633
|
{
|
|
2283
|
-
src: `${
|
|
2634
|
+
src: `${d}/buttons/dingtalk.svg`,
|
|
2284
2635
|
alt: "Sign in with DingTalk"
|
|
2285
2636
|
}
|
|
2286
2637
|
);
|
|
2287
2638
|
}
|
|
2288
|
-
const
|
|
2639
|
+
const Na = {
|
|
2289
2640
|
text: "Sign in with DingTalk",
|
|
2290
|
-
icon:
|
|
2641
|
+
icon: Fa,
|
|
2291
2642
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2292
2643
|
style: { background: "#0191e0" },
|
|
2293
2644
|
activeStyle: { background: "rgb(76,143,208)" }
|
|
2294
|
-
},
|
|
2295
|
-
function
|
|
2296
|
-
return /* @__PURE__ */
|
|
2645
|
+
}, Da = C.createButton(Na);
|
|
2646
|
+
function Ua({ width: t = 24, height: e = 24, color: o }) {
|
|
2647
|
+
return /* @__PURE__ */ a.jsx(
|
|
2297
2648
|
"img",
|
|
2298
2649
|
{
|
|
2299
|
-
src: `${
|
|
2650
|
+
src: `${d}/buttons/linkedin.svg`,
|
|
2300
2651
|
alt: "Sign in with LinkedIn"
|
|
2301
2652
|
}
|
|
2302
2653
|
);
|
|
2303
2654
|
}
|
|
2304
|
-
const
|
|
2655
|
+
const Wa = {
|
|
2305
2656
|
text: "Sign in with LinkedIn",
|
|
2306
|
-
icon:
|
|
2657
|
+
icon: Ua,
|
|
2307
2658
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2308
2659
|
style: { background: "rgb(255,255,255)", color: "#000000" },
|
|
2309
2660
|
activeStyle: { background: "rgb(240,240,250)" }
|
|
2310
|
-
},
|
|
2311
|
-
function
|
|
2312
|
-
return /* @__PURE__ */
|
|
2661
|
+
}, Ha = C.createButton(Wa);
|
|
2662
|
+
function Va({ width: t = 24, height: e = 24, color: o }) {
|
|
2663
|
+
return /* @__PURE__ */ a.jsx("img", { src: `${d}/buttons/wecom.svg`, alt: "Sign in with WeCom" });
|
|
2313
2664
|
}
|
|
2314
|
-
const
|
|
2665
|
+
const Ga = {
|
|
2315
2666
|
text: "Sign in with WeCom",
|
|
2316
|
-
icon:
|
|
2667
|
+
icon: Va,
|
|
2317
2668
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2318
2669
|
style: { background: "rgb(255,255,255)", color: "#000000" },
|
|
2319
2670
|
activeStyle: { background: "rgb(100,150,250)" }
|
|
2320
|
-
},
|
|
2321
|
-
function
|
|
2322
|
-
return /* @__PURE__ */
|
|
2671
|
+
}, qa = C.createButton(Ga);
|
|
2672
|
+
function Ya({ width: t = 24, height: e = 24, color: o }) {
|
|
2673
|
+
return /* @__PURE__ */ a.jsx(
|
|
2323
2674
|
"img",
|
|
2324
2675
|
{
|
|
2325
|
-
src: `${
|
|
2676
|
+
src: `${d}/buttons/lark.svg`,
|
|
2326
2677
|
alt: "Sign in with Lark",
|
|
2327
2678
|
style: { width: 24, height: 24 }
|
|
2328
2679
|
}
|
|
2329
2680
|
);
|
|
2330
2681
|
}
|
|
2331
|
-
const
|
|
2682
|
+
const Ka = {
|
|
2332
2683
|
text: "Sign in with Lark",
|
|
2333
|
-
icon:
|
|
2684
|
+
icon: Ya,
|
|
2334
2685
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2335
2686
|
style: { background: "#ffffff", color: "#000000" },
|
|
2336
2687
|
activeStyle: { background: "#ededee" }
|
|
2337
|
-
},
|
|
2338
|
-
function
|
|
2339
|
-
return /* @__PURE__ */
|
|
2688
|
+
}, Ja = C.createButton(Ka);
|
|
2689
|
+
function Qa({ width: t = 24, height: e = 24, color: o }) {
|
|
2690
|
+
return /* @__PURE__ */ a.jsx(
|
|
2340
2691
|
"img",
|
|
2341
2692
|
{
|
|
2342
|
-
src: `${
|
|
2693
|
+
src: `${d}/buttons/gitlab.svg`,
|
|
2343
2694
|
alt: "Sign in with GitLab",
|
|
2344
2695
|
style: { width: 24, height: 24 }
|
|
2345
2696
|
}
|
|
2346
2697
|
);
|
|
2347
2698
|
}
|
|
2348
|
-
const
|
|
2699
|
+
const Za = {
|
|
2349
2700
|
text: "Sign in with GitLab",
|
|
2350
|
-
icon:
|
|
2701
|
+
icon: Qa,
|
|
2351
2702
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2352
2703
|
style: { background: "rgb(255,255,255)", color: "#000000" },
|
|
2353
2704
|
activeStyle: { background: "rgb(100,150,250)" }
|
|
2354
|
-
},
|
|
2355
|
-
function
|
|
2356
|
-
return /* @__PURE__ */
|
|
2705
|
+
}, Xa = C.createButton(Za);
|
|
2706
|
+
function ei({ width: t = 24, height: e = 24, color: o }) {
|
|
2707
|
+
return /* @__PURE__ */ a.jsx(
|
|
2357
2708
|
"img",
|
|
2358
2709
|
{
|
|
2359
|
-
src: `${
|
|
2710
|
+
src: `${d}/buttons/adfs.svg`,
|
|
2360
2711
|
alt: "Sign in with ADFS",
|
|
2361
2712
|
style: { width: 24, height: 24 }
|
|
2362
2713
|
}
|
|
2363
2714
|
);
|
|
2364
2715
|
}
|
|
2365
|
-
const
|
|
2716
|
+
const ti = {
|
|
2366
2717
|
text: "Sign in with ADFS",
|
|
2367
|
-
icon:
|
|
2718
|
+
icon: ei,
|
|
2368
2719
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2369
2720
|
style: { background: "#ffffff", color: "#000000" },
|
|
2370
2721
|
activeStyle: { background: "#ededee" }
|
|
2371
|
-
},
|
|
2372
|
-
function
|
|
2373
|
-
return /* @__PURE__ */
|
|
2722
|
+
}, ni = C.createButton(ti);
|
|
2723
|
+
function oi({ width: t = 24, height: e = 24, color: o }) {
|
|
2724
|
+
return /* @__PURE__ */ a.jsx(
|
|
2374
2725
|
"img",
|
|
2375
2726
|
{
|
|
2376
|
-
src: `${
|
|
2727
|
+
src: `${d}/buttons/casdoor.svg`,
|
|
2377
2728
|
alt: "Sign in with Casdoor",
|
|
2378
2729
|
style: { width: 24, height: 24 }
|
|
2379
2730
|
}
|
|
2380
2731
|
);
|
|
2381
2732
|
}
|
|
2382
|
-
const
|
|
2733
|
+
const ai = {
|
|
2383
2734
|
text: "Sign in with Casdoor",
|
|
2384
|
-
icon:
|
|
2735
|
+
icon: oi,
|
|
2385
2736
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2386
2737
|
style: { background: "#ffffff", color: "#000000" },
|
|
2387
2738
|
activeStyle: { background: "#ededee" }
|
|
2388
|
-
},
|
|
2389
|
-
function
|
|
2390
|
-
return /* @__PURE__ */
|
|
2739
|
+
}, ii = C.createButton(ai);
|
|
2740
|
+
function ri({ width: t = 24, height: e = 24, color: o }) {
|
|
2741
|
+
return /* @__PURE__ */ a.jsx(
|
|
2391
2742
|
"img",
|
|
2392
2743
|
{
|
|
2393
|
-
src: `${
|
|
2744
|
+
src: `${d}/buttons/baidu.svg`,
|
|
2394
2745
|
alt: "Sign in with Baidu",
|
|
2395
2746
|
style: { width: 24, height: 24 }
|
|
2396
2747
|
}
|
|
2397
2748
|
);
|
|
2398
2749
|
}
|
|
2399
|
-
const
|
|
2750
|
+
const li = {
|
|
2400
2751
|
text: "Sign in with Baidu",
|
|
2401
|
-
icon:
|
|
2752
|
+
icon: ri,
|
|
2402
2753
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2403
2754
|
style: { background: "#ffffff", color: "#000000" },
|
|
2404
2755
|
activeStyle: { background: "#ededee" }
|
|
2405
|
-
},
|
|
2406
|
-
function
|
|
2407
|
-
return /* @__PURE__ */
|
|
2756
|
+
}, ci = C.createButton(li);
|
|
2757
|
+
function si({ width: t = 24, height: e = 24, color: o }) {
|
|
2758
|
+
return /* @__PURE__ */ a.jsx(
|
|
2408
2759
|
"img",
|
|
2409
2760
|
{
|
|
2410
|
-
src: `${
|
|
2761
|
+
src: `${d}/buttons/alipay.svg`,
|
|
2411
2762
|
alt: "Sign in with Alipay",
|
|
2412
2763
|
style: { width: 24, height: 24 }
|
|
2413
2764
|
}
|
|
2414
2765
|
);
|
|
2415
2766
|
}
|
|
2416
|
-
const
|
|
2767
|
+
const ui = {
|
|
2417
2768
|
text: "Sign in with Alipay",
|
|
2418
|
-
icon:
|
|
2769
|
+
icon: si,
|
|
2419
2770
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2420
2771
|
style: { background: "#ffffff", color: "#000000" },
|
|
2421
2772
|
activeStyle: { background: "#ededee" }
|
|
2422
|
-
},
|
|
2423
|
-
function
|
|
2424
|
-
return /* @__PURE__ */
|
|
2773
|
+
}, di = C.createButton(ui);
|
|
2774
|
+
function fi({ width: t = 24, height: e = 24, color: o }) {
|
|
2775
|
+
return /* @__PURE__ */ a.jsx(
|
|
2425
2776
|
"img",
|
|
2426
2777
|
{
|
|
2427
|
-
src: `${
|
|
2778
|
+
src: `${d}/buttons/infoflow.svg`,
|
|
2428
2779
|
alt: "Sign in with Infoflow",
|
|
2429
2780
|
style: { width: 24, height: 24 }
|
|
2430
2781
|
}
|
|
2431
2782
|
);
|
|
2432
2783
|
}
|
|
2433
|
-
const
|
|
2784
|
+
const pi = {
|
|
2434
2785
|
text: "Sign in with Infoflow",
|
|
2435
|
-
icon:
|
|
2786
|
+
icon: fi,
|
|
2436
2787
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2437
2788
|
style: { background: "#ffffff", color: "#000000" },
|
|
2438
2789
|
activeStyle: { background: "#ededee" }
|
|
2439
|
-
},
|
|
2440
|
-
function
|
|
2441
|
-
return /* @__PURE__ */
|
|
2790
|
+
}, gi = C.createButton(pi);
|
|
2791
|
+
function hi({ width: t = 24, height: e = 24, color: o }) {
|
|
2792
|
+
return /* @__PURE__ */ a.jsx(
|
|
2442
2793
|
"img",
|
|
2443
2794
|
{
|
|
2444
|
-
src: `${
|
|
2795
|
+
src: `${d}/buttons/apple.svg`,
|
|
2445
2796
|
alt: "Sign in with Apple",
|
|
2446
2797
|
style: { width: 24, height: 24 }
|
|
2447
2798
|
}
|
|
2448
2799
|
);
|
|
2449
2800
|
}
|
|
2450
|
-
const
|
|
2801
|
+
const mi = {
|
|
2451
2802
|
text: "Sign in with Apple",
|
|
2452
|
-
icon:
|
|
2803
|
+
icon: hi,
|
|
2453
2804
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2454
2805
|
style: { background: "#ffffff", color: "#000000" },
|
|
2455
2806
|
activeStyle: { background: "#ededee" }
|
|
2456
|
-
},
|
|
2457
|
-
function
|
|
2458
|
-
return /* @__PURE__ */
|
|
2807
|
+
}, yi = C.createButton(mi);
|
|
2808
|
+
function wi({ width: t = 24, height: e = 24, color: o }) {
|
|
2809
|
+
return /* @__PURE__ */ a.jsx(
|
|
2459
2810
|
"img",
|
|
2460
2811
|
{
|
|
2461
|
-
src: `${
|
|
2812
|
+
src: `${d}/buttons/azuread.svg`,
|
|
2462
2813
|
alt: "Sign in with Azure AD",
|
|
2463
2814
|
style: { width: 24, height: 24 }
|
|
2464
2815
|
}
|
|
2465
2816
|
);
|
|
2466
2817
|
}
|
|
2467
|
-
const
|
|
2818
|
+
const bi = {
|
|
2468
2819
|
text: "Sign in with Azure AD",
|
|
2469
|
-
icon:
|
|
2820
|
+
icon: wi,
|
|
2470
2821
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2471
2822
|
style: { background: "#ffffff", color: "#000000" },
|
|
2472
2823
|
activeStyle: { background: "#ededee" }
|
|
2473
|
-
},
|
|
2474
|
-
function
|
|
2475
|
-
return /* @__PURE__ */
|
|
2824
|
+
}, vi = C.createButton(bi);
|
|
2825
|
+
function xi({ width: t = 24, height: e = 24, color: o }) {
|
|
2826
|
+
return /* @__PURE__ */ a.jsx(
|
|
2476
2827
|
"img",
|
|
2477
2828
|
{
|
|
2478
|
-
src: `${
|
|
2829
|
+
src: `${d}/buttons/azuread.svg`,
|
|
2479
2830
|
alt: "Sign in with Azure AD B2C",
|
|
2480
2831
|
style: { width: 24, height: 24 }
|
|
2481
2832
|
}
|
|
2482
2833
|
);
|
|
2483
2834
|
}
|
|
2484
|
-
const
|
|
2835
|
+
const $i = {
|
|
2485
2836
|
text: "Sign in with Azure AD B2C",
|
|
2486
|
-
icon:
|
|
2837
|
+
icon: xi,
|
|
2487
2838
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2488
2839
|
style: { background: "#ffffff", color: "#000000" },
|
|
2489
2840
|
activeStyle: { background: "#ededee" }
|
|
2490
|
-
},
|
|
2491
|
-
function
|
|
2492
|
-
return /* @__PURE__ */
|
|
2841
|
+
}, ki = C.createButton($i);
|
|
2842
|
+
function Si({ width: t = 24, height: e = 24, color: o }) {
|
|
2843
|
+
return /* @__PURE__ */ a.jsx(
|
|
2493
2844
|
"img",
|
|
2494
2845
|
{
|
|
2495
|
-
src: `${
|
|
2846
|
+
src: `${d}/buttons/slack.svg`,
|
|
2496
2847
|
alt: "Sign in with Slack",
|
|
2497
2848
|
style: { width: 24, height: 24 }
|
|
2498
2849
|
}
|
|
2499
2850
|
);
|
|
2500
2851
|
}
|
|
2501
|
-
const
|
|
2852
|
+
const _i = {
|
|
2502
2853
|
text: "Sign in with Slack",
|
|
2503
|
-
icon:
|
|
2854
|
+
icon: Si,
|
|
2504
2855
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2505
2856
|
style: { background: "#ffffff", color: "#000000" },
|
|
2506
2857
|
activeStyle: { background: "#ededee" }
|
|
2507
|
-
},
|
|
2508
|
-
function
|
|
2509
|
-
return /* @__PURE__ */
|
|
2858
|
+
}, Ci = C.createButton(_i);
|
|
2859
|
+
function Ei({ width: t = 24, height: e = 24, color: o }) {
|
|
2860
|
+
return /* @__PURE__ */ a.jsx(
|
|
2510
2861
|
"img",
|
|
2511
2862
|
{
|
|
2512
|
-
src: `${
|
|
2863
|
+
src: `${d}/buttons/steam.svg`,
|
|
2513
2864
|
alt: "Sign in with Steam",
|
|
2514
2865
|
style: { width: 24, height: 24 }
|
|
2515
2866
|
}
|
|
2516
2867
|
);
|
|
2517
2868
|
}
|
|
2518
|
-
const
|
|
2869
|
+
const ji = {
|
|
2519
2870
|
text: "Sign in with Steam",
|
|
2520
|
-
icon:
|
|
2871
|
+
icon: Ei,
|
|
2521
2872
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2522
2873
|
style: { background: "#ffffff", color: "#000000" },
|
|
2523
2874
|
activeStyle: { background: "#ededee" }
|
|
2524
|
-
},
|
|
2525
|
-
function
|
|
2526
|
-
return /* @__PURE__ */
|
|
2875
|
+
}, Li = C.createButton(ji);
|
|
2876
|
+
function Ti({ width: t = 24, height: e = 24, color: o }) {
|
|
2877
|
+
return /* @__PURE__ */ a.jsx(
|
|
2527
2878
|
"img",
|
|
2528
2879
|
{
|
|
2529
|
-
src: `${
|
|
2880
|
+
src: `${d}/buttons/bilibili.svg`,
|
|
2530
2881
|
alt: "Sign in with Bilibili"
|
|
2531
2882
|
}
|
|
2532
2883
|
);
|
|
2533
2884
|
}
|
|
2534
|
-
const
|
|
2885
|
+
const Ai = {
|
|
2535
2886
|
text: "Sign in with Bilibili",
|
|
2536
|
-
icon:
|
|
2887
|
+
icon: Ti,
|
|
2537
2888
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2538
2889
|
style: { background: "#0191e0" },
|
|
2539
2890
|
activeStyle: { background: "rgb(76,143,208)" }
|
|
2540
|
-
},
|
|
2541
|
-
function
|
|
2542
|
-
return /* @__PURE__ */
|
|
2891
|
+
}, Mi = C.createButton(Ai);
|
|
2892
|
+
function zi({ width: t = 24, height: e = 24, color: o }) {
|
|
2893
|
+
return /* @__PURE__ */ a.jsx(
|
|
2543
2894
|
"img",
|
|
2544
2895
|
{
|
|
2545
|
-
src: `${
|
|
2896
|
+
src: `${d}/buttons/okta.svg`,
|
|
2546
2897
|
alt: "Sign in with Okta",
|
|
2547
2898
|
style: { width: 24, height: 24 }
|
|
2548
2899
|
}
|
|
2549
2900
|
);
|
|
2550
2901
|
}
|
|
2551
|
-
const
|
|
2902
|
+
const Oi = {
|
|
2552
2903
|
text: "Sign in with Okta",
|
|
2553
|
-
icon:
|
|
2904
|
+
icon: zi,
|
|
2554
2905
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2555
2906
|
style: { background: "#ffffff", color: "#000000" },
|
|
2556
2907
|
activeStyle: { background: "#ededee" }
|
|
2557
|
-
},
|
|
2558
|
-
function
|
|
2559
|
-
return /* @__PURE__ */
|
|
2908
|
+
}, Bi = C.createButton(Oi);
|
|
2909
|
+
function Pi({ width: t = 24, height: e = 24, color: o }) {
|
|
2910
|
+
return /* @__PURE__ */ a.jsx(
|
|
2560
2911
|
"img",
|
|
2561
2912
|
{
|
|
2562
|
-
src: `${
|
|
2913
|
+
src: `${d}/buttons/douyin.svg`,
|
|
2563
2914
|
alt: "Sign in with Douyin",
|
|
2564
2915
|
style: { width: 24, height: 24 }
|
|
2565
2916
|
}
|
|
2566
2917
|
);
|
|
2567
2918
|
}
|
|
2568
|
-
const
|
|
2919
|
+
const Ri = {
|
|
2569
2920
|
text: "Sign in with Douyin",
|
|
2570
|
-
icon:
|
|
2921
|
+
icon: Pi,
|
|
2571
2922
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2572
2923
|
style: { background: "#ffffff", color: "#000000" },
|
|
2573
2924
|
activeStyle: { background: "#ededee" }
|
|
2574
|
-
},
|
|
2575
|
-
function
|
|
2576
|
-
function l({ width:
|
|
2577
|
-
return /* @__PURE__ */
|
|
2925
|
+
}, Ii = C.createButton(Ri);
|
|
2926
|
+
function Fi({ type: t, logoUrl: e, align: o = "center", style: r = { background: "#ffffff", color: "#000000" }, activeStyle: i = { background: "#ededee" } }) {
|
|
2927
|
+
function l({ width: f = 24, height: h = 24, color: k }) {
|
|
2928
|
+
return /* @__PURE__ */ a.jsx("img", { src: e, alt: `Sign in with ${t}`, style: { width: f, height: h } });
|
|
2578
2929
|
}
|
|
2579
|
-
const
|
|
2930
|
+
const c = {
|
|
2580
2931
|
text: `Sign in with ${t}`,
|
|
2581
2932
|
icon: l,
|
|
2582
|
-
style:
|
|
2583
|
-
activeStyle:
|
|
2584
|
-
},
|
|
2585
|
-
return /* @__PURE__ */
|
|
2933
|
+
style: r,
|
|
2934
|
+
activeStyle: i
|
|
2935
|
+
}, g = C.createButton(c), u = K.t("login:Sign in with {type}").replace("{type}", t);
|
|
2936
|
+
return /* @__PURE__ */ a.jsx(g, { text: u, align: o });
|
|
2586
2937
|
}
|
|
2587
|
-
function
|
|
2588
|
-
const e =
|
|
2938
|
+
function Ye(t) {
|
|
2939
|
+
const e = K.t("login:Sign in with {type}").replace(
|
|
2589
2940
|
"{type}",
|
|
2590
2941
|
t.displayName !== "" ? t.displayName : t.type
|
|
2591
2942
|
);
|
|
2592
|
-
return t.type === "GitHub" ? /* @__PURE__ */
|
|
2593
|
-
|
|
2943
|
+
return t.type === "GitHub" ? /* @__PURE__ */ a.jsx(C.GithubLoginButton, { text: e, align: "center" }) : t.type === "Google" ? /* @__PURE__ */ a.jsx(C.GoogleLoginButton, { text: e, align: "center" }) : t.type === "QQ" ? /* @__PURE__ */ a.jsx(Ca, { text: e, align: "center" }) : t.type === "Facebook" ? /* @__PURE__ */ a.jsx(La, { text: e, align: "center" }) : t.type === "Weibo" ? /* @__PURE__ */ a.jsx(Ma, { text: e, align: "center" }) : t.type === "Gitee" ? /* @__PURE__ */ a.jsx(Ba, { text: e, align: "center" }) : t.type === "WeChat" ? /* @__PURE__ */ a.jsx(Ia, { text: e, align: "center" }) : t.type === "DingTalk" ? /* @__PURE__ */ a.jsx(Da, { text: e, align: "center" }) : t.type === "LinkedIn" ? /* @__PURE__ */ a.jsx(Ha, { text: e, align: "center" }) : t.type === "WeCom" ? /* @__PURE__ */ a.jsx(qa, { text: e, align: "center" }) : t.type === "Lark" ? /* @__PURE__ */ a.jsx(Ja, { text: e, align: "center" }) : t.type === "GitLab" ? /* @__PURE__ */ a.jsx(Xa, { text: e, align: "center" }) : t.type === "ADFS" ? /* @__PURE__ */ a.jsx(ni, { text: e, align: "center" }) : t.type === "Casdoor" ? /* @__PURE__ */ a.jsx(ii, { text: e, align: "center" }) : t.type === "Baidu" ? /* @__PURE__ */ a.jsx(ci, { text: e, align: "center" }) : t.type === "Alipay" ? /* @__PURE__ */ a.jsx(di, { text: e, align: "center" }) : t.type === "Infoflow" ? /* @__PURE__ */ a.jsx(gi, { text: e, align: "center" }) : t.type === "Apple" ? /* @__PURE__ */ a.jsx(yi, { text: e, align: "center" }) : t.type === "AzureAD" ? /* @__PURE__ */ a.jsx(vi, { text: e, align: "center" }) : t.type === "AzureADB2C" ? /* @__PURE__ */ a.jsx(ki, { text: e, align: "center" }) : t.type === "Slack" ? /* @__PURE__ */ a.jsx(Ci, { text: e, align: "center" }) : t.type === "Steam" ? /* @__PURE__ */ a.jsx(Li, { text: e, align: "center" }) : t.type === "Bilibili" ? /* @__PURE__ */ a.jsx(Mi, { text: e, align: "center" }) : t.type === "Okta" ? /* @__PURE__ */ a.jsx(Bi, { text: e, align: "center" }) : t.type === "Douyin" ? /* @__PURE__ */ a.jsx(Ii, { text: e, align: "center" }) : /* @__PURE__ */ a.jsx(
|
|
2944
|
+
Fi,
|
|
2594
2945
|
{
|
|
2595
2946
|
type: t.type,
|
|
2596
|
-
logoUrl:
|
|
2947
|
+
logoUrl: se(t)
|
|
2597
2948
|
},
|
|
2598
2949
|
t.type
|
|
2599
2950
|
);
|
|
2600
2951
|
}
|
|
2601
|
-
function
|
|
2602
|
-
const
|
|
2603
|
-
|
|
2604
|
-
`${t.owner}/${
|
|
2952
|
+
function Ke(t, e) {
|
|
2953
|
+
const o = new URLSearchParams(e.search), r = o.get("client_id") ?? "", i = o.get("state"), l = o.get("redirect_uri"), c = `${window.location.origin}/callback/saml`, g = t.name, u = `${r}&${i}&${g}&${l}&${c}`;
|
|
2954
|
+
Hn(
|
|
2955
|
+
`${t.owner}/${g}`,
|
|
2605
2956
|
btoa(u)
|
|
2606
|
-
).then((
|
|
2607
|
-
|
|
2957
|
+
).then((f) => {
|
|
2958
|
+
f.data2 === "POST" ? document.write(f.data) : window.location.href = f.data;
|
|
2608
2959
|
});
|
|
2609
2960
|
}
|
|
2610
|
-
function
|
|
2611
|
-
e.type === "MetaMask" ? import("./Web3Auth-
|
|
2612
|
-
const
|
|
2613
|
-
|
|
2614
|
-
}) : e.type === "Web3Onboard" && import("./Web3Auth-
|
|
2615
|
-
const
|
|
2616
|
-
|
|
2961
|
+
function Ot(t, e, o) {
|
|
2962
|
+
e.type === "MetaMask" ? import("./Web3Auth-CME9gR8B.js").then((r) => r.bO).then((r) => {
|
|
2963
|
+
const i = r.authViaMetaMask;
|
|
2964
|
+
i(t, e, o);
|
|
2965
|
+
}) : e.type === "Web3Onboard" && import("./Web3Auth-CME9gR8B.js").then((r) => r.bO).then((r) => {
|
|
2966
|
+
const i = r.authViaWeb3Onboard;
|
|
2967
|
+
i(t, e, o);
|
|
2617
2968
|
});
|
|
2618
2969
|
}
|
|
2619
|
-
function
|
|
2620
|
-
if (
|
|
2970
|
+
function Ni(t, e, o, r, i, l) {
|
|
2971
|
+
if (i === "small") {
|
|
2621
2972
|
if (t.category === "OAuth")
|
|
2622
|
-
return t.type === "WeChat" && t.clientId2 !== "" && t.clientSecret2 !== "" && t.disableSsl === !0 && !navigator.userAgent.includes("MicroMessenger") ? /* @__PURE__ */
|
|
2973
|
+
return t.type === "WeChat" && t.clientId2 !== "" && t.clientSecret2 !== "" && t.disableSsl === !0 && !navigator.userAgent.includes("MicroMessenger") ? /* @__PURE__ */ a.jsx("a", { children: /* @__PURE__ */ a.jsx(
|
|
2623
2974
|
"img",
|
|
2624
2975
|
{
|
|
2625
|
-
width:
|
|
2626
|
-
height:
|
|
2627
|
-
src:
|
|
2976
|
+
width: o,
|
|
2977
|
+
height: o,
|
|
2978
|
+
src: se(t),
|
|
2628
2979
|
alt: t.displayName,
|
|
2629
2980
|
className: "provider-img",
|
|
2630
|
-
style: { margin:
|
|
2981
|
+
style: { margin: r },
|
|
2631
2982
|
onClick: () => {
|
|
2632
|
-
|
|
2983
|
+
Jn(e, t, "signup");
|
|
2633
2984
|
}
|
|
2634
2985
|
}
|
|
2635
|
-
) }, t.displayName) : /* @__PURE__ */
|
|
2986
|
+
) }, t.displayName) : /* @__PURE__ */ a.jsx(
|
|
2636
2987
|
"a",
|
|
2637
2988
|
{
|
|
2638
2989
|
href: (void 0)(e, t, "signup"),
|
|
2639
|
-
children: /* @__PURE__ */
|
|
2990
|
+
children: /* @__PURE__ */ a.jsx(
|
|
2640
2991
|
"img",
|
|
2641
2992
|
{
|
|
2642
|
-
width:
|
|
2643
|
-
height:
|
|
2644
|
-
src:
|
|
2993
|
+
width: o,
|
|
2994
|
+
height: o,
|
|
2995
|
+
src: se(t),
|
|
2645
2996
|
alt: t.displayName,
|
|
2646
2997
|
className: "provider-img",
|
|
2647
|
-
style: { margin:
|
|
2998
|
+
style: { margin: r }
|
|
2648
2999
|
}
|
|
2649
3000
|
)
|
|
2650
3001
|
},
|
|
2651
3002
|
t.displayName
|
|
2652
3003
|
);
|
|
2653
3004
|
if (t.category === "SAML")
|
|
2654
|
-
return /* @__PURE__ */
|
|
3005
|
+
return /* @__PURE__ */ a.jsx(
|
|
2655
3006
|
"a",
|
|
2656
3007
|
{
|
|
2657
|
-
onClick: () =>
|
|
2658
|
-
children: /* @__PURE__ */
|
|
3008
|
+
onClick: () => Ke(t, l),
|
|
3009
|
+
children: /* @__PURE__ */ a.jsx(
|
|
2659
3010
|
"img",
|
|
2660
3011
|
{
|
|
2661
|
-
width:
|
|
2662
|
-
height:
|
|
2663
|
-
src:
|
|
3012
|
+
width: o,
|
|
3013
|
+
height: o,
|
|
3014
|
+
src: se(t),
|
|
2664
3015
|
alt: t.displayName,
|
|
2665
3016
|
className: "provider-img",
|
|
2666
|
-
style: { margin:
|
|
3017
|
+
style: { margin: r }
|
|
2667
3018
|
}
|
|
2668
3019
|
)
|
|
2669
3020
|
},
|
|
2670
3021
|
t.displayName
|
|
2671
3022
|
);
|
|
2672
3023
|
if (t.category === "Web3")
|
|
2673
|
-
return /* @__PURE__ */
|
|
3024
|
+
return /* @__PURE__ */ a.jsx(
|
|
2674
3025
|
"a",
|
|
2675
3026
|
{
|
|
2676
|
-
onClick: () =>
|
|
2677
|
-
children: /* @__PURE__ */
|
|
3027
|
+
onClick: () => Ot(e, t, "signup"),
|
|
3028
|
+
children: /* @__PURE__ */ a.jsx(
|
|
2678
3029
|
"img",
|
|
2679
3030
|
{
|
|
2680
|
-
width:
|
|
2681
|
-
height:
|
|
2682
|
-
src:
|
|
3031
|
+
width: o,
|
|
3032
|
+
height: o,
|
|
3033
|
+
src: se(t),
|
|
2683
3034
|
alt: t.displayName,
|
|
2684
3035
|
className: "provider-img",
|
|
2685
|
-
style: { margin:
|
|
3036
|
+
style: { margin: r }
|
|
2686
3037
|
}
|
|
2687
3038
|
)
|
|
2688
3039
|
},
|
|
2689
3040
|
t.displayName
|
|
2690
3041
|
);
|
|
2691
3042
|
} else if (t.type === "Custom") {
|
|
2692
|
-
const
|
|
3043
|
+
const c = K.t("login:Sign in with {type}").replace("{type}", t.displayName), g = { display: "block", height: "55px", color: "#000" }, u = {
|
|
2693
3044
|
display: "flex",
|
|
2694
3045
|
alignItems: "center",
|
|
2695
3046
|
width: "calc(100% - 10px)",
|
|
@@ -2701,123 +3052,123 @@ function Aa(t, e, n, i, a, l) {
|
|
|
2701
3052
|
border: "0px",
|
|
2702
3053
|
borderRadius: "3px",
|
|
2703
3054
|
cursor: "pointer"
|
|
2704
|
-
},
|
|
3055
|
+
}, f = { justfyContent: "space-between" }, h = {
|
|
2705
3056
|
textAlign: "center",
|
|
2706
3057
|
width: "100%",
|
|
2707
3058
|
fontSize: "19px"
|
|
2708
3059
|
};
|
|
2709
3060
|
if (t.category === "OAuth")
|
|
2710
|
-
return /* @__PURE__ */
|
|
3061
|
+
return /* @__PURE__ */ a.jsx(
|
|
2711
3062
|
"a",
|
|
2712
3063
|
{
|
|
2713
3064
|
href: (void 0)(e, t, "signup"),
|
|
2714
|
-
style:
|
|
2715
|
-
children: /* @__PURE__ */
|
|
2716
|
-
/* @__PURE__ */
|
|
3065
|
+
style: g,
|
|
3066
|
+
children: /* @__PURE__ */ a.jsxs("div", { style: u, children: [
|
|
3067
|
+
/* @__PURE__ */ a.jsx(
|
|
2717
3068
|
"img",
|
|
2718
3069
|
{
|
|
2719
3070
|
width: 26,
|
|
2720
|
-
src:
|
|
3071
|
+
src: se(t),
|
|
2721
3072
|
alt: t.displayName,
|
|
2722
3073
|
className: "provider-img",
|
|
2723
|
-
style:
|
|
3074
|
+
style: f
|
|
2724
3075
|
}
|
|
2725
3076
|
),
|
|
2726
|
-
/* @__PURE__ */
|
|
3077
|
+
/* @__PURE__ */ a.jsx("span", { style: h, children: c })
|
|
2727
3078
|
] })
|
|
2728
3079
|
},
|
|
2729
3080
|
t.displayName
|
|
2730
3081
|
);
|
|
2731
3082
|
if (t.category === "SAML")
|
|
2732
|
-
return /* @__PURE__ */
|
|
3083
|
+
return /* @__PURE__ */ a.jsx(
|
|
2733
3084
|
"a",
|
|
2734
3085
|
{
|
|
2735
|
-
onClick: () =>
|
|
2736
|
-
style:
|
|
2737
|
-
children: /* @__PURE__ */
|
|
2738
|
-
/* @__PURE__ */
|
|
3086
|
+
onClick: () => Ke(t, l),
|
|
3087
|
+
style: g,
|
|
3088
|
+
children: /* @__PURE__ */ a.jsxs("div", { style: u, children: [
|
|
3089
|
+
/* @__PURE__ */ a.jsx(
|
|
2739
3090
|
"img",
|
|
2740
3091
|
{
|
|
2741
3092
|
width: 26,
|
|
2742
|
-
src:
|
|
3093
|
+
src: se(t),
|
|
2743
3094
|
alt: t.displayName,
|
|
2744
3095
|
className: "provider-img",
|
|
2745
|
-
style:
|
|
3096
|
+
style: f
|
|
2746
3097
|
}
|
|
2747
3098
|
),
|
|
2748
|
-
/* @__PURE__ */
|
|
3099
|
+
/* @__PURE__ */ a.jsx("span", { style: h, children: c })
|
|
2749
3100
|
] })
|
|
2750
3101
|
},
|
|
2751
3102
|
t.displayName
|
|
2752
3103
|
);
|
|
2753
3104
|
} else
|
|
2754
|
-
return t.category === "SAML" ? /* @__PURE__ */
|
|
3105
|
+
return t.category === "SAML" ? /* @__PURE__ */ a.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ a.jsx("a", { onClick: () => Ke(t, l), children: Ye(t) }) }, t.displayName) : t.category === "Web3" ? /* @__PURE__ */ a.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ a.jsx("a", { onClick: () => Ot(e, t, "signup"), children: Ye(t) }) }, t.displayName) : /* @__PURE__ */ a.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ a.jsx("a", { href: (void 0)(e, t, "signup"), children: Ye(t) }) }, t.displayName);
|
|
2755
3106
|
}
|
|
2756
|
-
function
|
|
2757
|
-
return t.length < 6 ?
|
|
3107
|
+
function Di(t) {
|
|
3108
|
+
return t.length < 6 ? K.t("user:The password must have at least 6 characters") : "";
|
|
2758
3109
|
}
|
|
2759
|
-
function
|
|
2760
|
-
return t.length < 8 ?
|
|
3110
|
+
function Ui(t) {
|
|
3111
|
+
return t.length < 8 ? K.t("user:The password must have at least 8 characters") : "";
|
|
2761
3112
|
}
|
|
2762
|
-
function
|
|
2763
|
-
return /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).+$/.test(t) ? "" :
|
|
3113
|
+
function Wi(t) {
|
|
3114
|
+
return /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).+$/.test(t) ? "" : K.t(
|
|
2764
3115
|
"user:The password must contain at least one uppercase letter, one lowercase letter and one digit"
|
|
2765
3116
|
);
|
|
2766
3117
|
}
|
|
2767
|
-
function
|
|
2768
|
-
return /^(?=.*[!-/:-@[-`{-~]).+$/.test(t) ? "" :
|
|
3118
|
+
function Hi(t) {
|
|
3119
|
+
return /^(?=.*[!-/:-@[-`{-~]).+$/.test(t) ? "" : K.t(
|
|
2769
3120
|
"user:The password must contain at least one special character"
|
|
2770
3121
|
);
|
|
2771
3122
|
}
|
|
2772
|
-
function
|
|
2773
|
-
return /(.)\1+/.test(t) ?
|
|
3123
|
+
function Vi(t) {
|
|
3124
|
+
return /(.)\1+/.test(t) ? K.t(
|
|
2774
3125
|
"user:The password must not contain any repeated characters"
|
|
2775
3126
|
) : "";
|
|
2776
3127
|
}
|
|
2777
|
-
function
|
|
3128
|
+
function Gi(t, e) {
|
|
2778
3129
|
if (t.length === 0)
|
|
2779
|
-
return
|
|
3130
|
+
return K.t("login:Please input your password!");
|
|
2780
3131
|
(!e || e.length === 0) && (e = ["AtLeast6"]);
|
|
2781
|
-
const
|
|
2782
|
-
AtLeast6:
|
|
2783
|
-
AtLeast8:
|
|
2784
|
-
Aa123:
|
|
2785
|
-
SpecialChar:
|
|
2786
|
-
NoRepeat:
|
|
3132
|
+
const o = {
|
|
3133
|
+
AtLeast6: Di,
|
|
3134
|
+
AtLeast8: Ui,
|
|
3135
|
+
Aa123: Wi,
|
|
3136
|
+
SpecialChar: Hi,
|
|
3137
|
+
NoRepeat: Vi
|
|
2787
3138
|
};
|
|
2788
|
-
for (const
|
|
2789
|
-
const
|
|
2790
|
-
if (
|
|
2791
|
-
const l =
|
|
3139
|
+
for (const r of e) {
|
|
3140
|
+
const i = o[r];
|
|
3141
|
+
if (i) {
|
|
3142
|
+
const l = i(t);
|
|
2792
3143
|
if (l !== "")
|
|
2793
3144
|
return l;
|
|
2794
3145
|
}
|
|
2795
3146
|
}
|
|
2796
3147
|
return "";
|
|
2797
3148
|
}
|
|
2798
|
-
function
|
|
3149
|
+
function qi({
|
|
2799
3150
|
application: t,
|
|
2800
3151
|
state: e,
|
|
2801
|
-
setState:
|
|
3152
|
+
setState: o
|
|
2802
3153
|
}) {
|
|
2803
|
-
const [
|
|
2804
|
-
|
|
3154
|
+
const [r, i] = m.useState(!1), l = m.useRef(null);
|
|
3155
|
+
m.useEffect(() => {
|
|
2805
3156
|
l.current || (l.current = document.getElementById(
|
|
2806
3157
|
"agreementDialog"
|
|
2807
3158
|
));
|
|
2808
|
-
}, []),
|
|
2809
|
-
l.current && (
|
|
2810
|
-
}, [
|
|
2811
|
-
const
|
|
2812
|
-
|
|
2813
|
-
},
|
|
2814
|
-
|
|
3159
|
+
}, []), m.useEffect(() => {
|
|
3160
|
+
l.current && (r ? l.current.showModal() : l.current.close());
|
|
3161
|
+
}, [r]);
|
|
3162
|
+
const c = () => {
|
|
3163
|
+
o({ ...e, agreement: !1 }), i(!1);
|
|
3164
|
+
}, g = () => {
|
|
3165
|
+
o({ ...e, agreement: !0 }), i(!1);
|
|
2815
3166
|
}, u = () => {
|
|
2816
|
-
|
|
3167
|
+
i(!0);
|
|
2817
3168
|
};
|
|
2818
|
-
return /* @__PURE__ */
|
|
2819
|
-
/* @__PURE__ */
|
|
2820
|
-
/* @__PURE__ */
|
|
3169
|
+
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3170
|
+
/* @__PURE__ */ a.jsx("dialog", { id: "agreementDialog", className: "modal", children: /* @__PURE__ */ a.jsxs("div", { className: "modal-box", children: [
|
|
3171
|
+
/* @__PURE__ */ a.jsx("div", { className: "mt-4 mb-8", children: /* @__PURE__ */ a.jsx(
|
|
2821
3172
|
"iframe",
|
|
2822
3173
|
{
|
|
2823
3174
|
src: t.termsOfUse,
|
|
@@ -2826,15 +3177,15 @@ function Ia({
|
|
|
2826
3177
|
sandbox: "allow-scripts"
|
|
2827
3178
|
}
|
|
2828
3179
|
) }),
|
|
2829
|
-
/* @__PURE__ */
|
|
2830
|
-
/* @__PURE__ */
|
|
2831
|
-
/* @__PURE__ */
|
|
2832
|
-
/* @__PURE__ */
|
|
2833
|
-
/* @__PURE__ */
|
|
3180
|
+
/* @__PURE__ */ a.jsxs("div", { className: "modal-action", children: [
|
|
3181
|
+
/* @__PURE__ */ a.jsx("form", { method: "dialog", className: "modal-backdrop", children: /* @__PURE__ */ a.jsx("button", { children: "Close" }) }),
|
|
3182
|
+
/* @__PURE__ */ a.jsxs("form", { method: "dialog", className: "flex gap-3", children: [
|
|
3183
|
+
/* @__PURE__ */ a.jsx("button", { className: "btn", onClick: c, children: "Cancel" }, "closebtn"),
|
|
3184
|
+
/* @__PURE__ */ a.jsx(
|
|
2834
3185
|
"button",
|
|
2835
3186
|
{
|
|
2836
3187
|
className: "btn btn-primary",
|
|
2837
|
-
onClick:
|
|
3188
|
+
onClick: g,
|
|
2838
3189
|
children: "OK"
|
|
2839
3190
|
},
|
|
2840
3191
|
"okbtn"
|
|
@@ -2842,89 +3193,89 @@ function Ia({
|
|
|
2842
3193
|
] })
|
|
2843
3194
|
] })
|
|
2844
3195
|
] }) }),
|
|
2845
|
-
/* @__PURE__ */
|
|
2846
|
-
/* @__PURE__ */
|
|
3196
|
+
/* @__PURE__ */ a.jsx("input", { checked: !!e.agreement, type: "checkbox", readOnly: !0 }),
|
|
3197
|
+
/* @__PURE__ */ a.jsx("button", { onClick: u, children: "Open Terms" })
|
|
2847
3198
|
] });
|
|
2848
3199
|
}
|
|
2849
|
-
function
|
|
3200
|
+
function Y({
|
|
2850
3201
|
label: t,
|
|
2851
3202
|
name: e,
|
|
2852
|
-
rules:
|
|
2853
|
-
inputEl:
|
|
2854
|
-
setFieldValue:
|
|
3203
|
+
rules: o,
|
|
3204
|
+
inputEl: r,
|
|
3205
|
+
setFieldValue: i,
|
|
2855
3206
|
onChange: l,
|
|
2856
|
-
...
|
|
3207
|
+
...c
|
|
2857
3208
|
}) {
|
|
2858
|
-
return /* @__PURE__ */
|
|
2859
|
-
/* @__PURE__ */
|
|
2860
|
-
|
|
3209
|
+
return /* @__PURE__ */ a.jsxs("label", { className: "form-control w-full max-w-xs", htmlFor: e, children: [
|
|
3210
|
+
/* @__PURE__ */ a.jsx("div", { className: "label", children: /* @__PURE__ */ a.jsx("span", { className: "label-text", children: t }) }),
|
|
3211
|
+
r || /* @__PURE__ */ a.jsx(
|
|
2861
3212
|
"input",
|
|
2862
3213
|
{
|
|
2863
3214
|
type: "text",
|
|
2864
|
-
...
|
|
3215
|
+
...c,
|
|
2865
3216
|
name: e,
|
|
2866
3217
|
className: "input input-bordered w-full max-w-xs",
|
|
2867
|
-
onChange: (
|
|
2868
|
-
|
|
3218
|
+
onChange: (g) => {
|
|
3219
|
+
i(e, g.target.value), l == null || l(g);
|
|
2869
3220
|
}
|
|
2870
3221
|
}
|
|
2871
3222
|
),
|
|
2872
|
-
/* @__PURE__ */
|
|
3223
|
+
/* @__PURE__ */ a.jsx("div", { className: "label flex-col", children: o == null ? void 0 : o.map((g, u) => /* @__PURE__ */ a.jsx("span", { className: "label-text-alt", children: g.message }, e + u)) })
|
|
2873
3224
|
] });
|
|
2874
3225
|
}
|
|
2875
|
-
const
|
|
3226
|
+
const Yi = (t, e) => (delete t.applicationName, delete t.emailOrPhoneMode, delete t.isTermsOfUseVisible, {
|
|
2876
3227
|
application: e.name,
|
|
2877
3228
|
organization: e.organization,
|
|
2878
3229
|
plan: null,
|
|
2879
3230
|
pricing: null,
|
|
2880
3231
|
...t
|
|
2881
|
-
}),
|
|
3232
|
+
}), Ki = (t, e, o) => {
|
|
2882
3233
|
t.preventDefault();
|
|
2883
|
-
const
|
|
2884
|
-
console.log(
|
|
2885
|
-
|
|
2886
|
-
let
|
|
2887
|
-
l.status === "ok" ? (
|
|
2888
|
-
}) : alert("redirect")) :
|
|
3234
|
+
const r = Yi(e, o);
|
|
3235
|
+
console.log(r), Dn(r).then((i) => {
|
|
3236
|
+
i.status === "ok" ? (r.username = i.data.split("/")[1], o && In(o) ? Nn("").then((l) => {
|
|
3237
|
+
let c = null;
|
|
3238
|
+
l.status === "ok" ? (c = l.data, c.organization = l.data2, console.log("account", c), alert("redirect")) : G("error", `Failed to sign in: ${l.msg}`);
|
|
3239
|
+
}) : alert("redirect")) : G("error", i.msg);
|
|
2889
3240
|
});
|
|
2890
3241
|
};
|
|
2891
|
-
function
|
|
3242
|
+
function Ji(t, e, o, r, i) {
|
|
2892
3243
|
if (!e.visible)
|
|
2893
3244
|
return null;
|
|
2894
|
-
const l = (
|
|
2895
|
-
|
|
2896
|
-
},
|
|
3245
|
+
const l = (g, u) => {
|
|
3246
|
+
o[g] = u, r(o);
|
|
3247
|
+
}, c = e.required;
|
|
2897
3248
|
if (e.name === "Username")
|
|
2898
|
-
return /* @__PURE__ */
|
|
2899
|
-
|
|
3249
|
+
return /* @__PURE__ */ a.jsx(
|
|
3250
|
+
Y,
|
|
2900
3251
|
{
|
|
2901
3252
|
name: "username",
|
|
2902
3253
|
className: "signup-username",
|
|
2903
|
-
label: e.label ? e.label :
|
|
3254
|
+
label: e.label ? e.label : i("signup.username"),
|
|
2904
3255
|
rules: [
|
|
2905
3256
|
{
|
|
2906
|
-
required:
|
|
2907
|
-
message:
|
|
3257
|
+
required: c,
|
|
3258
|
+
message: i("forget.username"),
|
|
2908
3259
|
whitespace: !0
|
|
2909
3260
|
}
|
|
2910
3261
|
],
|
|
2911
3262
|
placeholder: e.placeholder,
|
|
2912
|
-
disabled:
|
|
3263
|
+
disabled: o.invitation !== void 0 && o.invitation.username !== "",
|
|
2913
3264
|
setFieldValue: l
|
|
2914
3265
|
}
|
|
2915
3266
|
);
|
|
2916
3267
|
if (e.name === "Display name")
|
|
2917
|
-
return e.rule === "First, last" &&
|
|
2918
|
-
/* @__PURE__ */
|
|
2919
|
-
|
|
3268
|
+
return e.rule === "First, last" && Cn() !== "zh" ? /* @__PURE__ */ a.jsxs(m.Fragment, { children: [
|
|
3269
|
+
/* @__PURE__ */ a.jsx(
|
|
3270
|
+
Y,
|
|
2920
3271
|
{
|
|
2921
3272
|
name: "firstName",
|
|
2922
3273
|
className: "signup-first-name",
|
|
2923
|
-
label: e.label ? e.label :
|
|
3274
|
+
label: e.label ? e.label : i("general.firstName"),
|
|
2924
3275
|
rules: [
|
|
2925
3276
|
{
|
|
2926
|
-
required:
|
|
2927
|
-
message:
|
|
3277
|
+
required: c,
|
|
3278
|
+
message: i("forget.firstName"),
|
|
2928
3279
|
whitespace: !0
|
|
2929
3280
|
}
|
|
2930
3281
|
],
|
|
@@ -2932,16 +3283,16 @@ function Ra(t, e, n, i, a) {
|
|
|
2932
3283
|
setFieldValue: l
|
|
2933
3284
|
}
|
|
2934
3285
|
),
|
|
2935
|
-
/* @__PURE__ */
|
|
2936
|
-
|
|
3286
|
+
/* @__PURE__ */ a.jsx(
|
|
3287
|
+
Y,
|
|
2937
3288
|
{
|
|
2938
3289
|
name: "lastName",
|
|
2939
3290
|
className: "signup-last-name",
|
|
2940
|
-
label: e.label ? e.label :
|
|
3291
|
+
label: e.label ? e.label : i("general.lastName"),
|
|
2941
3292
|
rules: [
|
|
2942
3293
|
{
|
|
2943
|
-
required:
|
|
2944
|
-
message:
|
|
3294
|
+
required: c,
|
|
3295
|
+
message: i("forget.lastName"),
|
|
2945
3296
|
whitespace: !0
|
|
2946
3297
|
}
|
|
2947
3298
|
],
|
|
@@ -2949,16 +3300,16 @@ function Ra(t, e, n, i, a) {
|
|
|
2949
3300
|
setFieldValue: l
|
|
2950
3301
|
}
|
|
2951
3302
|
)
|
|
2952
|
-
] }) : /* @__PURE__ */
|
|
2953
|
-
|
|
3303
|
+
] }) : /* @__PURE__ */ a.jsx(
|
|
3304
|
+
Y,
|
|
2954
3305
|
{
|
|
2955
3306
|
name: "name",
|
|
2956
3307
|
className: "signup-name",
|
|
2957
|
-
label: e.label ? e.label : e.rule === "Real name" || e.rule === "First, last" ?
|
|
3308
|
+
label: e.label ? e.label : e.rule === "Real name" || e.rule === "First, last" ? i("general.realName") : i("general.displayName"),
|
|
2958
3309
|
rules: [
|
|
2959
3310
|
{
|
|
2960
|
-
required:
|
|
2961
|
-
message: e.rule === "Real name" || e.rule === "First, last" ?
|
|
3311
|
+
required: c,
|
|
3312
|
+
message: e.rule === "Real name" || e.rule === "First, last" ? i("forget.realName") : i("forget.displayName"),
|
|
2962
3313
|
whitespace: !0
|
|
2963
3314
|
}
|
|
2964
3315
|
],
|
|
@@ -2967,16 +3318,16 @@ function Ra(t, e, n, i, a) {
|
|
|
2967
3318
|
}
|
|
2968
3319
|
);
|
|
2969
3320
|
if (e.name === "Affiliation")
|
|
2970
|
-
return /* @__PURE__ */
|
|
2971
|
-
|
|
3321
|
+
return /* @__PURE__ */ a.jsx(
|
|
3322
|
+
Y,
|
|
2972
3323
|
{
|
|
2973
3324
|
name: "affiliation",
|
|
2974
3325
|
className: "signup-affiliation",
|
|
2975
|
-
label: e.label ? e.label :
|
|
3326
|
+
label: e.label ? e.label : i("user.affiliation"),
|
|
2976
3327
|
rules: [
|
|
2977
3328
|
{
|
|
2978
|
-
required:
|
|
2979
|
-
message:
|
|
3329
|
+
required: c,
|
|
3330
|
+
message: i("forget.affiliation"),
|
|
2980
3331
|
whitespace: !0
|
|
2981
3332
|
}
|
|
2982
3333
|
],
|
|
@@ -2985,25 +3336,25 @@ function Ra(t, e, n, i, a) {
|
|
|
2985
3336
|
}
|
|
2986
3337
|
);
|
|
2987
3338
|
if (e.name === "ID card")
|
|
2988
|
-
return /* @__PURE__ */
|
|
2989
|
-
|
|
3339
|
+
return /* @__PURE__ */ a.jsx(
|
|
3340
|
+
Y,
|
|
2990
3341
|
{
|
|
2991
3342
|
name: "idCard",
|
|
2992
3343
|
className: "signup-idcard",
|
|
2993
|
-
label: e.label ? e.label :
|
|
3344
|
+
label: e.label ? e.label : i("user.idCard"),
|
|
2994
3345
|
rules: [
|
|
2995
3346
|
{
|
|
2996
|
-
required:
|
|
2997
|
-
message:
|
|
3347
|
+
required: c,
|
|
3348
|
+
message: i("forget.idCard"),
|
|
2998
3349
|
whitespace: !0
|
|
2999
3350
|
},
|
|
3000
3351
|
{
|
|
3001
|
-
required:
|
|
3352
|
+
required: c,
|
|
3002
3353
|
pattern: new RegExp(
|
|
3003
3354
|
/^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9X]$/,
|
|
3004
3355
|
"g"
|
|
3005
3356
|
),
|
|
3006
|
-
message:
|
|
3357
|
+
message: i("format.idCard")
|
|
3007
3358
|
}
|
|
3008
3359
|
],
|
|
3009
3360
|
placeholder: e.placeholder,
|
|
@@ -3011,84 +3362,84 @@ function Ra(t, e, n, i, a) {
|
|
|
3011
3362
|
}
|
|
3012
3363
|
);
|
|
3013
3364
|
if (e.name === "Email" || e.name === "Phone" || e.name === "Email or Phone" || e.name === "Phone or Email") {
|
|
3014
|
-
const
|
|
3015
|
-
/* @__PURE__ */
|
|
3016
|
-
|
|
3365
|
+
const g = () => /* @__PURE__ */ a.jsxs(m.Fragment, { children: [
|
|
3366
|
+
/* @__PURE__ */ a.jsx(
|
|
3367
|
+
Y,
|
|
3017
3368
|
{
|
|
3018
3369
|
name: "email",
|
|
3019
|
-
label: e.label ? e.label :
|
|
3370
|
+
label: e.label ? e.label : i("general.email"),
|
|
3020
3371
|
rules: [
|
|
3021
3372
|
{
|
|
3022
|
-
required:
|
|
3023
|
-
message:
|
|
3373
|
+
required: c,
|
|
3374
|
+
message: i("forget.email")
|
|
3024
3375
|
}
|
|
3025
3376
|
],
|
|
3026
3377
|
placeholder: e.placeholder,
|
|
3027
|
-
disabled:
|
|
3028
|
-
onChange: (
|
|
3029
|
-
const
|
|
3030
|
-
console.log("email",
|
|
3378
|
+
disabled: o.invitation !== void 0 && o.invitation.email !== "",
|
|
3379
|
+
onChange: (f) => {
|
|
3380
|
+
const h = f.target.value;
|
|
3381
|
+
console.log("email", h, bt(h)), h !== "" && !bt(h) ? r({ ...o, email: h, validEmail: !1 }) : r({ ...o, email: h, validEmail: !0 });
|
|
3031
3382
|
},
|
|
3032
3383
|
setFieldValue: l
|
|
3033
3384
|
}
|
|
3034
3385
|
),
|
|
3035
|
-
e.rule !== "No verification" && /* @__PURE__ */
|
|
3036
|
-
|
|
3386
|
+
e.rule !== "No verification" && /* @__PURE__ */ a.jsx(
|
|
3387
|
+
Y,
|
|
3037
3388
|
{
|
|
3038
3389
|
name: "emailCode",
|
|
3039
3390
|
className: "signup-email-code",
|
|
3040
|
-
label: e.label ? e.label :
|
|
3391
|
+
label: e.label ? e.label : i("code.email"),
|
|
3041
3392
|
rules: [
|
|
3042
3393
|
{
|
|
3043
|
-
required:
|
|
3044
|
-
message:
|
|
3394
|
+
required: c,
|
|
3395
|
+
message: i("forget.code")
|
|
3045
3396
|
}
|
|
3046
3397
|
],
|
|
3047
|
-
inputEl: /* @__PURE__ */
|
|
3048
|
-
|
|
3398
|
+
inputEl: /* @__PURE__ */ a.jsx(
|
|
3399
|
+
Xn,
|
|
3049
3400
|
{
|
|
3050
|
-
disabled: !
|
|
3401
|
+
disabled: !o.validEmail,
|
|
3051
3402
|
method: "signup",
|
|
3052
|
-
onButtonClickArgs: [
|
|
3403
|
+
onButtonClickArgs: [o.email, "email", t.name],
|
|
3053
3404
|
application: t,
|
|
3054
3405
|
countryCode: "US",
|
|
3055
|
-
onChange: (
|
|
3406
|
+
onChange: (f) => r({ ...o, emailCode: f })
|
|
3056
3407
|
}
|
|
3057
3408
|
),
|
|
3058
3409
|
setFieldValue: l
|
|
3059
3410
|
}
|
|
3060
3411
|
)
|
|
3061
|
-
] }), u = () => /* @__PURE__ */
|
|
3412
|
+
] }), u = () => /* @__PURE__ */ a.jsx(a.Fragment, {});
|
|
3062
3413
|
if (e.name === "Email")
|
|
3063
|
-
return
|
|
3414
|
+
return g();
|
|
3064
3415
|
if (e.name === "Phone")
|
|
3065
3416
|
return u();
|
|
3066
3417
|
if (e.name === "Email or Phone" || e.name === "Phone or Email") {
|
|
3067
|
-
let
|
|
3068
|
-
return
|
|
3069
|
-
/* @__PURE__ */
|
|
3070
|
-
|
|
3418
|
+
let f = o.emailOrPhoneMode;
|
|
3419
|
+
return f === "" && (f = e.name === "Email or Phone" ? "Email" : "Phone"), /* @__PURE__ */ a.jsxs(m.Fragment, { children: [
|
|
3420
|
+
/* @__PURE__ */ a.jsx("div", { style: { marginTop: "30px", marginBottom: "20px" } }),
|
|
3421
|
+
f === "Email" ? g() : u()
|
|
3071
3422
|
] });
|
|
3072
3423
|
} else
|
|
3073
3424
|
return null;
|
|
3074
3425
|
} else {
|
|
3075
3426
|
if (e.name === "Password")
|
|
3076
|
-
return /* @__PURE__ */
|
|
3077
|
-
|
|
3427
|
+
return /* @__PURE__ */ a.jsx(
|
|
3428
|
+
Y,
|
|
3078
3429
|
{
|
|
3079
3430
|
name: "password",
|
|
3080
3431
|
className: "signup-password",
|
|
3081
|
-
label: e.label ? e.label :
|
|
3432
|
+
label: e.label ? e.label : i("general.password"),
|
|
3082
3433
|
rules: [
|
|
3083
3434
|
{
|
|
3084
|
-
required:
|
|
3435
|
+
required: c,
|
|
3085
3436
|
validateTrigger: "onChange",
|
|
3086
|
-
validator: (
|
|
3087
|
-
const
|
|
3437
|
+
validator: (g, u) => {
|
|
3438
|
+
const f = Gi(
|
|
3088
3439
|
u,
|
|
3089
3440
|
t.organizationObj.passwordOptions
|
|
3090
3441
|
);
|
|
3091
|
-
return
|
|
3442
|
+
return f === "" ? Promise.resolve() : Promise.reject(f);
|
|
3092
3443
|
}
|
|
3093
3444
|
}
|
|
3094
3445
|
],
|
|
@@ -3098,16 +3449,16 @@ function Ra(t, e, n, i, a) {
|
|
|
3098
3449
|
}
|
|
3099
3450
|
);
|
|
3100
3451
|
if (e.name === "Confirm password")
|
|
3101
|
-
return /* @__PURE__ */
|
|
3102
|
-
|
|
3452
|
+
return /* @__PURE__ */ a.jsx(
|
|
3453
|
+
Y,
|
|
3103
3454
|
{
|
|
3104
3455
|
name: "confirm",
|
|
3105
3456
|
className: "signup-confirm",
|
|
3106
|
-
label: e.label ? e.label :
|
|
3457
|
+
label: e.label ? e.label : i("signup.confirm"),
|
|
3107
3458
|
rules: [
|
|
3108
3459
|
{
|
|
3109
|
-
required:
|
|
3110
|
-
message:
|
|
3460
|
+
required: c,
|
|
3461
|
+
message: i("forget.confirm")
|
|
3111
3462
|
}
|
|
3112
3463
|
// ({ getFieldValue }) => ({
|
|
3113
3464
|
// validator(rule, value) {
|
|
@@ -3128,55 +3479,55 @@ function Ra(t, e, n, i, a) {
|
|
|
3128
3479
|
}
|
|
3129
3480
|
);
|
|
3130
3481
|
if (e.name === "Invitation code")
|
|
3131
|
-
return /* @__PURE__ */
|
|
3132
|
-
|
|
3482
|
+
return /* @__PURE__ */ a.jsx(
|
|
3483
|
+
Y,
|
|
3133
3484
|
{
|
|
3134
3485
|
name: "invitationCode",
|
|
3135
3486
|
className: "signup-invitation-code",
|
|
3136
|
-
label: e.label ? e.label :
|
|
3487
|
+
label: e.label ? e.label : i("application.invitationCode"),
|
|
3137
3488
|
rules: [
|
|
3138
3489
|
{
|
|
3139
|
-
required:
|
|
3140
|
-
message:
|
|
3490
|
+
required: c,
|
|
3491
|
+
message: i("forget.invitationCode")
|
|
3141
3492
|
}
|
|
3142
3493
|
],
|
|
3143
3494
|
placeholder: e.placeholder,
|
|
3144
|
-
disabled:
|
|
3495
|
+
disabled: o.invitation !== void 0 && o.invitation !== "",
|
|
3145
3496
|
setFieldValue: l
|
|
3146
3497
|
}
|
|
3147
3498
|
);
|
|
3148
3499
|
if (e.name === "Agreement")
|
|
3149
|
-
return /* @__PURE__ */
|
|
3150
|
-
|
|
3500
|
+
return /* @__PURE__ */ a.jsx(
|
|
3501
|
+
qi,
|
|
3151
3502
|
{
|
|
3152
|
-
state:
|
|
3153
|
-
setState:
|
|
3503
|
+
state: o,
|
|
3504
|
+
setState: r,
|
|
3154
3505
|
application: t
|
|
3155
3506
|
}
|
|
3156
3507
|
);
|
|
3157
3508
|
if (e.name.startsWith("Text "))
|
|
3158
|
-
return /* @__PURE__ */
|
|
3509
|
+
return /* @__PURE__ */ a.jsx("div", { dangerouslySetInnerHTML: { __html: e.label } });
|
|
3159
3510
|
if (e.name === "Signup button")
|
|
3160
|
-
return /* @__PURE__ */
|
|
3161
|
-
/* @__PURE__ */
|
|
3511
|
+
return /* @__PURE__ */ a.jsxs("form", { onSubmit: (g) => Ki(g, o, t), children: [
|
|
3512
|
+
/* @__PURE__ */ a.jsx("button", { className: "btn btn-primary", type: "submit", children: i("signup.signUp") }),
|
|
3162
3513
|
" ",
|
|
3163
|
-
|
|
3514
|
+
i("signup.haveAccount"),
|
|
3164
3515
|
" ",
|
|
3165
|
-
/* @__PURE__ */
|
|
3516
|
+
/* @__PURE__ */ a.jsx(
|
|
3166
3517
|
"a",
|
|
3167
3518
|
{
|
|
3168
3519
|
className: "signup-link",
|
|
3169
3520
|
onClick: () => {
|
|
3170
|
-
const
|
|
3521
|
+
const g = sessionStorage.getItem("signinUrl");
|
|
3171
3522
|
alert("redirect");
|
|
3172
3523
|
},
|
|
3173
|
-
children:
|
|
3524
|
+
children: i("signup.signInNow")
|
|
3174
3525
|
}
|
|
3175
3526
|
)
|
|
3176
3527
|
] });
|
|
3177
3528
|
if (e.name === "Providers" && t.providers) {
|
|
3178
|
-
const
|
|
3179
|
-
return (e.rule === "None" || e.rule === "") && (e.rule =
|
|
3529
|
+
const g = On(t) || Bn(t) || Pn(t) || Rn(t);
|
|
3530
|
+
return (e.rule === "None" || e.rule === "") && (e.rule = g ? "small" : "big"), t.providers.filter((u) => Pt(u)).map((u) => Ni(
|
|
3180
3531
|
u.provider,
|
|
3181
3532
|
t,
|
|
3182
3533
|
null,
|
|
@@ -3188,7 +3539,7 @@ function Ra(t, e, n, i, a) {
|
|
|
3188
3539
|
}
|
|
3189
3540
|
return e.name;
|
|
3190
3541
|
}
|
|
3191
|
-
const
|
|
3542
|
+
const Qi = {
|
|
3192
3543
|
signup: {
|
|
3193
3544
|
username: "Username",
|
|
3194
3545
|
confirm: "Confirm password",
|
|
@@ -3233,19 +3584,19 @@ const Da = {
|
|
|
3233
3584
|
application: {
|
|
3234
3585
|
invitationCode: "Invitation code"
|
|
3235
3586
|
}
|
|
3236
|
-
},
|
|
3237
|
-
translation:
|
|
3587
|
+
}, Zi = {
|
|
3588
|
+
translation: Qi
|
|
3238
3589
|
};
|
|
3239
|
-
|
|
3590
|
+
K.use($n).init({
|
|
3240
3591
|
lng: "en",
|
|
3241
3592
|
fallbackLng: "en",
|
|
3242
3593
|
// use en if detected lng is not available
|
|
3243
3594
|
resources: {
|
|
3244
|
-
en:
|
|
3595
|
+
en: Zi
|
|
3245
3596
|
}
|
|
3246
3597
|
});
|
|
3247
|
-
function
|
|
3248
|
-
const
|
|
3598
|
+
function Xi(t, e, o) {
|
|
3599
|
+
const r = /* @__PURE__ */ a.jsxs(
|
|
3249
3600
|
"svg",
|
|
3250
3601
|
{
|
|
3251
3602
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3259,11 +3610,11 @@ function Wa(t, e, n) {
|
|
|
3259
3610
|
"stroke-linejoin": "round",
|
|
3260
3611
|
className: "lucide lucide-eye",
|
|
3261
3612
|
children: [
|
|
3262
|
-
/* @__PURE__ */
|
|
3263
|
-
/* @__PURE__ */
|
|
3613
|
+
/* @__PURE__ */ a.jsx("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
|
3614
|
+
/* @__PURE__ */ a.jsx("circle", { cx: "12", cy: "12", r: "3" })
|
|
3264
3615
|
]
|
|
3265
3616
|
}
|
|
3266
|
-
),
|
|
3617
|
+
), i = /* @__PURE__ */ a.jsxs(
|
|
3267
3618
|
"svg",
|
|
3268
3619
|
{
|
|
3269
3620
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3277,17 +3628,17 @@ function Wa(t, e, n) {
|
|
|
3277
3628
|
"stroke-linejoin": "round",
|
|
3278
3629
|
className: "lucide lucide-eye-off",
|
|
3279
3630
|
children: [
|
|
3280
|
-
/* @__PURE__ */
|
|
3281
|
-
/* @__PURE__ */
|
|
3282
|
-
/* @__PURE__ */
|
|
3283
|
-
/* @__PURE__ */
|
|
3631
|
+
/* @__PURE__ */ a.jsx("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
|
3632
|
+
/* @__PURE__ */ a.jsx("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
|
|
3633
|
+
/* @__PURE__ */ a.jsx("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
|
|
3634
|
+
/* @__PURE__ */ a.jsx("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
|
3284
3635
|
]
|
|
3285
3636
|
}
|
|
3286
|
-
), l =
|
|
3637
|
+
), l = Ae(t), c = ee(t);
|
|
3287
3638
|
if (l === "password") {
|
|
3288
|
-
const
|
|
3289
|
-
return /* @__PURE__ */
|
|
3290
|
-
|
|
3639
|
+
const g = e.password.state[c];
|
|
3640
|
+
return /* @__PURE__ */ a.jsxs(
|
|
3641
|
+
o,
|
|
3291
3642
|
{
|
|
3292
3643
|
variant: "ghost",
|
|
3293
3644
|
size: "icon",
|
|
@@ -3295,19 +3646,19 @@ function Wa(t, e, n) {
|
|
|
3295
3646
|
onClick: (u) => {
|
|
3296
3647
|
u.preventDefault(), u.stopPropagation(), e.password.setState({
|
|
3297
3648
|
...e.password.state,
|
|
3298
|
-
[
|
|
3649
|
+
[c]: !g
|
|
3299
3650
|
});
|
|
3300
3651
|
},
|
|
3301
3652
|
children: [
|
|
3302
|
-
|
|
3303
|
-
/* @__PURE__ */
|
|
3653
|
+
g ? i : r,
|
|
3654
|
+
/* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Toggle password visibility" })
|
|
3304
3655
|
]
|
|
3305
3656
|
}
|
|
3306
3657
|
);
|
|
3307
3658
|
} else
|
|
3308
3659
|
return null;
|
|
3309
3660
|
}
|
|
3310
|
-
function
|
|
3661
|
+
function ee(t) {
|
|
3311
3662
|
const e = {
|
|
3312
3663
|
ID: "id",
|
|
3313
3664
|
Username: "username",
|
|
@@ -3325,43 +3676,43 @@ function H(t) {
|
|
|
3325
3676
|
};
|
|
3326
3677
|
return Object.keys(e).includes(t.name) ? e[t.name] : t.name;
|
|
3327
3678
|
}
|
|
3328
|
-
function
|
|
3329
|
-
const
|
|
3330
|
-
return
|
|
3679
|
+
function Ae(t, e) {
|
|
3680
|
+
const o = ["password", "confirm"], r = ee(t);
|
|
3681
|
+
return o.includes(r) && !(e != null && e.hidePassword[r]) ? "password" : "text";
|
|
3331
3682
|
}
|
|
3332
|
-
function
|
|
3683
|
+
function er(t) {
|
|
3333
3684
|
return Object.fromEntries(
|
|
3334
|
-
t.filter((e) =>
|
|
3685
|
+
t.filter((e) => Ae(e) === "password").map((e) => [ee(e), !1])
|
|
3335
3686
|
);
|
|
3336
3687
|
}
|
|
3337
|
-
function
|
|
3688
|
+
function tr(t) {
|
|
3338
3689
|
return {
|
|
3339
|
-
name:
|
|
3690
|
+
name: ee(t),
|
|
3340
3691
|
label: t.label || t.name,
|
|
3341
3692
|
placeholder: t.placeholder,
|
|
3342
3693
|
required: t.required,
|
|
3343
|
-
type:
|
|
3694
|
+
type: Ae(t)
|
|
3344
3695
|
};
|
|
3345
3696
|
}
|
|
3346
|
-
function
|
|
3347
|
-
const
|
|
3348
|
-
let
|
|
3349
|
-
return
|
|
3697
|
+
function nr(t, e) {
|
|
3698
|
+
const o = ee(e);
|
|
3699
|
+
let r = t.string();
|
|
3700
|
+
return o === "email" && (r = r.email()), e.required || (r = r.optional()), r;
|
|
3350
3701
|
}
|
|
3351
|
-
function
|
|
3352
|
-
const e = t.map((
|
|
3353
|
-
return Object.fromEntries([...e, ...
|
|
3702
|
+
function or(t) {
|
|
3703
|
+
const e = t.map((r) => [ee(r), ""]), o = t.filter((r) => Gt(r)).map((r) => [ee(r) + "Code", ""]);
|
|
3704
|
+
return Object.fromEntries([...e, ...o]);
|
|
3354
3705
|
}
|
|
3355
|
-
function
|
|
3356
|
-
const e =
|
|
3706
|
+
function Gt(t) {
|
|
3707
|
+
const e = ee(t);
|
|
3357
3708
|
return (e === "email" || e === "phone") && !["None", "No verification"].includes(t.rule);
|
|
3358
3709
|
}
|
|
3359
|
-
function
|
|
3710
|
+
function ar(t) {
|
|
3360
3711
|
return t.visible === !0;
|
|
3361
3712
|
}
|
|
3362
|
-
function
|
|
3363
|
-
var
|
|
3364
|
-
const { t: e, i18n:
|
|
3713
|
+
function ir(t) {
|
|
3714
|
+
var k;
|
|
3715
|
+
const { t: e, i18n: o } = Le(), [r, i] = m.useState({
|
|
3365
3716
|
applicationName: t.applicationName ?? null,
|
|
3366
3717
|
email: "",
|
|
3367
3718
|
phone: "",
|
|
@@ -3375,223 +3726,223 @@ function Ja(t) {
|
|
|
3375
3726
|
isTermsOfUseVisible: !1,
|
|
3376
3727
|
termsOfUseContent: ""
|
|
3377
3728
|
});
|
|
3378
|
-
|
|
3379
|
-
const l = (
|
|
3380
|
-
|
|
3381
|
-
(
|
|
3382
|
-
if (
|
|
3383
|
-
|
|
3729
|
+
m.useRef();
|
|
3730
|
+
const l = (w) => {
|
|
3731
|
+
w !== void 0 && Qe("admin", w).then(
|
|
3732
|
+
(x) => {
|
|
3733
|
+
if (x.status === "error") {
|
|
3734
|
+
G("error", x.msg);
|
|
3384
3735
|
return;
|
|
3385
3736
|
}
|
|
3386
|
-
|
|
3737
|
+
f(x.data);
|
|
3387
3738
|
}
|
|
3388
3739
|
);
|
|
3389
|
-
},
|
|
3390
|
-
|
|
3391
|
-
if (
|
|
3392
|
-
const
|
|
3393
|
-
|
|
3740
|
+
}, c = (w) => {
|
|
3741
|
+
Rt(w).then((x) => {
|
|
3742
|
+
if (x.status === "ok") {
|
|
3743
|
+
const A = x.data;
|
|
3744
|
+
f(A);
|
|
3394
3745
|
} else
|
|
3395
|
-
|
|
3396
|
-
...
|
|
3397
|
-
msg:
|
|
3746
|
+
f(null), i({
|
|
3747
|
+
...r,
|
|
3748
|
+
msg: x.msg
|
|
3398
3749
|
});
|
|
3399
3750
|
});
|
|
3400
|
-
},
|
|
3401
|
-
|
|
3402
|
-
(
|
|
3403
|
-
if (
|
|
3404
|
-
|
|
3751
|
+
}, g = () => t.application, u = (w, x) => {
|
|
3752
|
+
Ft(w, x).then(
|
|
3753
|
+
(A) => {
|
|
3754
|
+
if (A.status === "error") {
|
|
3755
|
+
G("error", A.msg);
|
|
3405
3756
|
return;
|
|
3406
3757
|
}
|
|
3407
|
-
|
|
3758
|
+
i({ ...r, invitation: A.data });
|
|
3408
3759
|
}
|
|
3409
3760
|
);
|
|
3410
|
-
},
|
|
3411
|
-
t.onUpdateApplication(
|
|
3761
|
+
}, f = (w) => {
|
|
3762
|
+
t.onUpdateApplication(w);
|
|
3412
3763
|
};
|
|
3413
|
-
|
|
3414
|
-
const
|
|
3415
|
-
if (
|
|
3416
|
-
const
|
|
3764
|
+
m.useEffect(() => {
|
|
3765
|
+
const w = It();
|
|
3766
|
+
if (w !== null) {
|
|
3767
|
+
const x = window.location.pathname.replace(
|
|
3417
3768
|
"/signup/oauth/authorize",
|
|
3418
3769
|
"/login/oauth/authorize"
|
|
3419
3770
|
);
|
|
3420
|
-
sessionStorage.setItem("signinUrl",
|
|
3421
|
-
}
|
|
3422
|
-
if (
|
|
3423
|
-
if (
|
|
3424
|
-
l(
|
|
3425
|
-
const
|
|
3426
|
-
if (
|
|
3427
|
-
const
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
"admin/" +
|
|
3771
|
+
sessionStorage.setItem("signinUrl", x + window.location.search);
|
|
3772
|
+
}
|
|
3773
|
+
if (g() === void 0)
|
|
3774
|
+
if (r.applicationName !== null) {
|
|
3775
|
+
l(r.applicationName);
|
|
3776
|
+
const x = new URLSearchParams(window.location.search);
|
|
3777
|
+
if (x.has("invitationCode")) {
|
|
3778
|
+
const A = x.get("invitationCode") ?? "";
|
|
3779
|
+
i({ ...r, invitationCode: A }), A !== "" && u(
|
|
3780
|
+
A,
|
|
3781
|
+
"admin/" + r.applicationName
|
|
3431
3782
|
);
|
|
3432
3783
|
}
|
|
3433
|
-
} else
|
|
3784
|
+
} else w !== null ? c(w) : (G(
|
|
3434
3785
|
"error",
|
|
3435
|
-
`Unknown application name: ${
|
|
3436
|
-
),
|
|
3786
|
+
`Unknown application name: ${r.applicationName}`
|
|
3787
|
+
), f(null));
|
|
3437
3788
|
}, []);
|
|
3438
|
-
const
|
|
3439
|
-
return
|
|
3789
|
+
const h = g();
|
|
3790
|
+
return h == null ? null : (k = h.signupItems) == null ? void 0 : k.map((w, x) => /* @__PURE__ */ a.jsx("div", { children: Ji(h, w, r, i, e) }, x));
|
|
3440
3791
|
}
|
|
3441
|
-
function
|
|
3792
|
+
function sr({
|
|
3442
3793
|
applicationName: t,
|
|
3443
3794
|
casdoorApiRoot: e,
|
|
3444
|
-
springmicroApiRoot:
|
|
3795
|
+
springmicroApiRoot: o
|
|
3445
3796
|
}) {
|
|
3446
|
-
|
|
3447
|
-
const [
|
|
3448
|
-
|
|
3449
|
-
(
|
|
3450
|
-
if (
|
|
3451
|
-
|
|
3797
|
+
P.casdoor = e, o && (P.springmicro = o);
|
|
3798
|
+
const [r, i] = m.useState({ application: null }), l = () => {
|
|
3799
|
+
Qe("admin", t).then(
|
|
3800
|
+
(c) => {
|
|
3801
|
+
if (c.status === "error") {
|
|
3802
|
+
G("error", c.msg);
|
|
3452
3803
|
return;
|
|
3453
3804
|
}
|
|
3454
|
-
|
|
3455
|
-
application:
|
|
3805
|
+
i({
|
|
3806
|
+
application: c.data
|
|
3456
3807
|
});
|
|
3457
3808
|
}
|
|
3458
3809
|
);
|
|
3459
3810
|
};
|
|
3460
|
-
return
|
|
3811
|
+
return m.useEffect(() => {
|
|
3461
3812
|
l();
|
|
3462
|
-
}, []),
|
|
3463
|
-
|
|
3813
|
+
}, []), r.application === void 0 ? /* @__PURE__ */ a.jsx(a.Fragment, {}) : /* @__PURE__ */ a.jsx(kn, { i18n: K, children: /* @__PURE__ */ a.jsx(
|
|
3814
|
+
ir,
|
|
3464
3815
|
{
|
|
3465
|
-
application:
|
|
3466
|
-
onUpdateApplication: (
|
|
3467
|
-
|
|
3468
|
-
application:
|
|
3816
|
+
application: r.application,
|
|
3817
|
+
onUpdateApplication: (c) => {
|
|
3818
|
+
i({
|
|
3819
|
+
application: c
|
|
3469
3820
|
});
|
|
3470
3821
|
}
|
|
3471
3822
|
}
|
|
3472
3823
|
) });
|
|
3473
3824
|
}
|
|
3474
|
-
const
|
|
3825
|
+
const qt = m.createContext(
|
|
3475
3826
|
void 0
|
|
3476
3827
|
);
|
|
3477
|
-
function
|
|
3828
|
+
function ur({
|
|
3478
3829
|
applicationName: t,
|
|
3479
3830
|
casdoorApiRoot: e,
|
|
3480
|
-
springmicroApiRoot:
|
|
3481
|
-
children:
|
|
3831
|
+
springmicroApiRoot: o,
|
|
3832
|
+
children: r
|
|
3482
3833
|
}) {
|
|
3483
|
-
const { t:
|
|
3484
|
-
|
|
3485
|
-
const [
|
|
3486
|
-
|
|
3487
|
-
(
|
|
3488
|
-
if (
|
|
3489
|
-
|
|
3834
|
+
const { t: i, i18n: l } = Le();
|
|
3835
|
+
P.casdoor = e, o && (P.springmicro = o);
|
|
3836
|
+
const [c, g] = m.useState({ application: null }), [u, f] = m.useState({}), h = () => {
|
|
3837
|
+
Qe("admin", t).then(
|
|
3838
|
+
(b) => {
|
|
3839
|
+
if (b.status === "error") {
|
|
3840
|
+
G("error", b.msg);
|
|
3490
3841
|
return;
|
|
3491
3842
|
}
|
|
3492
|
-
|
|
3493
|
-
application:
|
|
3843
|
+
g({
|
|
3844
|
+
application: b.data
|
|
3494
3845
|
});
|
|
3495
3846
|
}
|
|
3496
3847
|
);
|
|
3497
|
-
},
|
|
3498
|
-
|
|
3499
|
-
application:
|
|
3848
|
+
}, k = (b) => {
|
|
3849
|
+
g({
|
|
3850
|
+
application: b
|
|
3500
3851
|
});
|
|
3501
|
-
},
|
|
3502
|
-
|
|
3503
|
-
(
|
|
3504
|
-
if (
|
|
3505
|
-
|
|
3852
|
+
}, w = (b, E) => {
|
|
3853
|
+
Ft(b, E).then(
|
|
3854
|
+
(M) => {
|
|
3855
|
+
if (M.status === "error") {
|
|
3856
|
+
G("error", M.msg);
|
|
3506
3857
|
return;
|
|
3507
3858
|
}
|
|
3508
|
-
|
|
3859
|
+
g({ ...c, invitation: M.data });
|
|
3509
3860
|
}
|
|
3510
3861
|
);
|
|
3511
|
-
},
|
|
3512
|
-
|
|
3513
|
-
if (
|
|
3514
|
-
const
|
|
3515
|
-
|
|
3862
|
+
}, x = (b) => {
|
|
3863
|
+
Rt(b).then((E) => {
|
|
3864
|
+
if (E.status === "ok") {
|
|
3865
|
+
const M = E.data;
|
|
3866
|
+
k(M);
|
|
3516
3867
|
} else
|
|
3517
|
-
|
|
3518
|
-
...
|
|
3519
|
-
msg:
|
|
3868
|
+
k(null), g({
|
|
3869
|
+
...c,
|
|
3870
|
+
msg: E.msg
|
|
3520
3871
|
});
|
|
3521
3872
|
});
|
|
3522
|
-
},
|
|
3523
|
-
|
|
3873
|
+
}, A = (b, E) => Xi(
|
|
3874
|
+
b,
|
|
3524
3875
|
{
|
|
3525
3876
|
password: {
|
|
3526
3877
|
state: u,
|
|
3527
|
-
setState:
|
|
3878
|
+
setState: f
|
|
3528
3879
|
}
|
|
3529
3880
|
},
|
|
3530
|
-
|
|
3531
|
-
),
|
|
3881
|
+
E
|
|
3882
|
+
), U = (b) => Ae(b, {
|
|
3532
3883
|
hidePassword: u
|
|
3533
|
-
}),
|
|
3534
|
-
return
|
|
3535
|
-
|
|
3536
|
-
}, []),
|
|
3537
|
-
|
|
3538
|
-
|
|
3884
|
+
}), Q = Nt, R = Dt;
|
|
3885
|
+
return m.useEffect(() => {
|
|
3886
|
+
h();
|
|
3887
|
+
}, []), m.useEffect(() => {
|
|
3888
|
+
c.application && f(
|
|
3889
|
+
er(c.application.signupItems)
|
|
3539
3890
|
);
|
|
3540
|
-
}, [
|
|
3541
|
-
const
|
|
3542
|
-
if (
|
|
3543
|
-
const
|
|
3891
|
+
}, [c.application]), m.useEffect(() => {
|
|
3892
|
+
const b = It();
|
|
3893
|
+
if (b !== null) {
|
|
3894
|
+
const E = window.location.pathname.replace(
|
|
3544
3895
|
"/signup/oauth/authorize",
|
|
3545
3896
|
"/login/oauth/authorize"
|
|
3546
3897
|
);
|
|
3547
|
-
sessionStorage.setItem("signinUrl",
|
|
3548
|
-
}
|
|
3549
|
-
if (
|
|
3550
|
-
if (
|
|
3551
|
-
|
|
3552
|
-
const
|
|
3553
|
-
if (
|
|
3554
|
-
const
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
"admin/" +
|
|
3898
|
+
sessionStorage.setItem("signinUrl", E + window.location.search);
|
|
3899
|
+
}
|
|
3900
|
+
if (c.application === void 0)
|
|
3901
|
+
if (c.applicationName !== null) {
|
|
3902
|
+
h();
|
|
3903
|
+
const E = new URLSearchParams(window.location.search);
|
|
3904
|
+
if (E.has("invitationCode")) {
|
|
3905
|
+
const M = E.get("invitationCode") ?? "";
|
|
3906
|
+
g({ ...c, invitationCode: M }), M !== "" && w(
|
|
3907
|
+
M,
|
|
3908
|
+
"admin/" + c.applicationName
|
|
3558
3909
|
);
|
|
3559
3910
|
}
|
|
3560
|
-
} else
|
|
3911
|
+
} else b !== null ? x(b) : (G(
|
|
3561
3912
|
"error",
|
|
3562
|
-
`Unknown application name: ${
|
|
3563
|
-
),
|
|
3564
|
-
}, []),
|
|
3565
|
-
|
|
3913
|
+
`Unknown application name: ${c.applicationName}`
|
|
3914
|
+
), k(null));
|
|
3915
|
+
}, []), c.application === void 0 || c.application === null ? null : /* @__PURE__ */ a.jsx(
|
|
3916
|
+
qt.Provider,
|
|
3566
3917
|
{
|
|
3567
3918
|
value: {
|
|
3568
|
-
application:
|
|
3569
|
-
getDefaultValues:
|
|
3570
|
-
getFormProps:
|
|
3571
|
-
icon:
|
|
3572
|
-
getZod:
|
|
3573
|
-
getKey:
|
|
3574
|
-
type:
|
|
3575
|
-
sendCode:
|
|
3576
|
-
requiresCode:
|
|
3577
|
-
getCaptcha:
|
|
3578
|
-
isVisible:
|
|
3919
|
+
application: c.application,
|
|
3920
|
+
getDefaultValues: or,
|
|
3921
|
+
getFormProps: tr,
|
|
3922
|
+
icon: A,
|
|
3923
|
+
getZod: nr,
|
|
3924
|
+
getKey: ee,
|
|
3925
|
+
type: U,
|
|
3926
|
+
sendCode: Q,
|
|
3927
|
+
requiresCode: Gt,
|
|
3928
|
+
getCaptcha: R,
|
|
3929
|
+
isVisible: ar
|
|
3579
3930
|
},
|
|
3580
|
-
children:
|
|
3931
|
+
children: r
|
|
3581
3932
|
}
|
|
3582
3933
|
);
|
|
3583
3934
|
}
|
|
3584
|
-
const
|
|
3585
|
-
const t =
|
|
3935
|
+
const dr = () => {
|
|
3936
|
+
const t = m.useContext(qt);
|
|
3586
3937
|
if (!t)
|
|
3587
3938
|
throw new Error("useSignUp must be used within a SignUpProvider");
|
|
3588
3939
|
return t;
|
|
3589
3940
|
};
|
|
3590
3941
|
export {
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3942
|
+
sr as S,
|
|
3943
|
+
En as a,
|
|
3944
|
+
ur as b,
|
|
3945
|
+
qn as g,
|
|
3946
|
+
G as s,
|
|
3947
|
+
dr as u
|
|
3597
3948
|
};
|