@springmicro/auth 0.5.3 → 0.5.4
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-64ac63ff-CSMaEBDA.js → Index-64ac63ff-BCXnQfVb.js} +1 -1
- package/dist/{Index-6c094240-mSgidTC1.js → Index-6c094240-DYAqbl99.js} +1 -1
- package/dist/{Web3Auth-R27O2eCc.js → Web3Auth--YGIRlpi.js} +10 -10
- package/dist/{hashMessage-B7KFzddV.js → hashMessage-DVaouzH3.js} +1 -1
- package/dist/{index-D_yyUC2r.js → index-BqD_7DAd.js} +1032 -1062
- package/dist/{index-ChYsa81u.js → index-CYwANJTC.js} +2 -2
- package/dist/{index-Cp0Pai1C.js → index-C_JIrc2I.js} +1 -1
- package/dist/{index-C8xLRoDS.js → index-Dki94ql9.js} +1 -1
- package/dist/{index-ayOaYQgv.js → index-DpnM6mYu.js} +4 -4
- package/dist/{index-TsElTuix.js → index-OihqBtMt.js} +1 -1
- package/dist/{index-1HLXgKdW.js → index-UN50UbLN.js} +2 -2
- package/dist/index.d.ts +3 -5
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +37 -37
- package/dist/{number-D9Q-3_Cz.js → number-FGOy03eH.js} +1 -1
- package/package.json +2 -2
- package/src/components/SignUp.tsx +34 -61
- package/src/components/forms/SendCodeInput.tsx +1 -7
- package/src/components/forms/SignUpFormItem.tsx +1 -5
- package/src/components/forms/util/application-api.ts +2 -8
- package/src/components/forms/util/user-api.ts +2 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineConfig as kn } from "auth-astro";
|
|
2
|
-
import m, { useEffect as
|
|
2
|
+
import m, { useEffect as Rt } from "react";
|
|
3
3
|
import { useTranslation as Te, initReactI18next as Sn, I18nextProvider as _n } from "react-i18next";
|
|
4
4
|
import Q from "i18next";
|
|
5
5
|
const pr = ({
|
|
@@ -34,11 +34,11 @@ const pr = ({
|
|
|
34
34
|
signIn: "/sign-in"
|
|
35
35
|
},
|
|
36
36
|
callbacks: {
|
|
37
|
-
async jwt({ token: r, account:
|
|
38
|
-
return
|
|
37
|
+
async jwt({ token: r, account: a, user: l }) {
|
|
38
|
+
return a && (r.accessToken = a.access_token ?? "", r.username = l.username, r.id = l.id), r;
|
|
39
39
|
},
|
|
40
|
-
async session({ session: r, token:
|
|
41
|
-
return r.accessToken =
|
|
40
|
+
async session({ session: r, token: a, user: l }) {
|
|
41
|
+
return r.accessToken = a.accessToken, r.user.id = a.id, r.user.username = a.username, r;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
});
|
|
@@ -56,15 +56,15 @@ var wt;
|
|
|
56
56
|
function Cn() {
|
|
57
57
|
if (wt) return we;
|
|
58
58
|
wt = 1;
|
|
59
|
-
var t = m, e = Symbol.for("react.element"), o = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty,
|
|
60
|
-
function
|
|
61
|
-
var h,
|
|
62
|
-
|
|
63
|
-
for (h in c) r.call(c, h) && !l.hasOwnProperty(h) && (
|
|
64
|
-
if (
|
|
65
|
-
return { $$typeof: e, type:
|
|
59
|
+
var t = m, e = Symbol.for("react.element"), o = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
60
|
+
function u(g, c, f) {
|
|
61
|
+
var h, $ = {}, w = null, b = null;
|
|
62
|
+
f !== void 0 && (w = "" + f), c.key !== void 0 && (w = "" + c.key), c.ref !== void 0 && (b = c.ref);
|
|
63
|
+
for (h in c) r.call(c, h) && !l.hasOwnProperty(h) && ($[h] = c[h]);
|
|
64
|
+
if (g && g.defaultProps) for (h in c = g.defaultProps, c) $[h] === void 0 && ($[h] = c[h]);
|
|
65
|
+
return { $$typeof: e, type: g, key: w, ref: b, props: $, _owner: a.current };
|
|
66
66
|
}
|
|
67
|
-
return we.Fragment = o, we.jsx =
|
|
67
|
+
return we.Fragment = o, we.jsx = u, we.jsxs = u, we;
|
|
68
68
|
}
|
|
69
69
|
var be = {};
|
|
70
70
|
/**
|
|
@@ -79,54 +79,54 @@ var be = {};
|
|
|
79
79
|
var bt;
|
|
80
80
|
function En() {
|
|
81
81
|
return bt || (bt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
82
|
-
var t = m, e = Symbol.for("react.element"), o = Symbol.for("react.portal"), r = Symbol.for("react.fragment"),
|
|
83
|
-
function
|
|
82
|
+
var t = m, e = Symbol.for("react.element"), o = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), g = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), $ = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), L = Symbol.iterator, F = "@@iterator";
|
|
83
|
+
function E(n) {
|
|
84
84
|
if (n === null || typeof n != "object")
|
|
85
85
|
return null;
|
|
86
|
-
var s =
|
|
86
|
+
var s = L && n[L] || n[F];
|
|
87
87
|
return typeof s == "function" ? s : null;
|
|
88
88
|
}
|
|
89
|
-
var
|
|
90
|
-
function
|
|
89
|
+
var _ = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
90
|
+
function k(n) {
|
|
91
91
|
{
|
|
92
|
-
for (var s = arguments.length,
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
for (var s = arguments.length, p = new Array(s > 1 ? s - 1 : 0), y = 1; y < s; y++)
|
|
93
|
+
p[y - 1] = arguments[y];
|
|
94
|
+
q("error", n, p);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function q(n, s, p) {
|
|
98
98
|
{
|
|
99
|
-
var
|
|
100
|
-
S !== "" && (s += "%s",
|
|
101
|
-
var
|
|
102
|
-
return String(
|
|
99
|
+
var y = _.ReactDebugCurrentFrame, S = y.getStackAddendum();
|
|
100
|
+
S !== "" && (s += "%s", p = p.concat([S]));
|
|
101
|
+
var C = p.map(function(x) {
|
|
102
|
+
return String(x);
|
|
103
103
|
});
|
|
104
|
-
|
|
104
|
+
C.unshift("Warning: " + s), Function.prototype.apply.call(console[n], console, C);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
var
|
|
108
|
-
|
|
107
|
+
var Y = !1, U = !1, ie = !1, pe = !1, ne = !1, R;
|
|
108
|
+
R = Symbol.for("react.module.reference");
|
|
109
109
|
function ze(n) {
|
|
110
|
-
return !!(typeof n == "string" || typeof n == "function" || n === r || n === l ||
|
|
110
|
+
return !!(typeof n == "string" || typeof n == "function" || n === r || n === l || ne || n === a || n === f || n === h || pe || n === b || Y || U || ie || typeof n == "object" && n !== null && (n.$$typeof === w || n.$$typeof === $ || n.$$typeof === u || n.$$typeof === g || n.$$typeof === c || // This needs to include all possible module reference object
|
|
111
111
|
// types supported by any Flight configuration anywhere since
|
|
112
112
|
// we don't know which Flight build this will end up being used
|
|
113
113
|
// with.
|
|
114
|
-
n.$$typeof ===
|
|
114
|
+
n.$$typeof === R || n.getModuleId !== void 0));
|
|
115
115
|
}
|
|
116
|
-
function ge(n, s,
|
|
117
|
-
var
|
|
118
|
-
if (
|
|
119
|
-
return
|
|
116
|
+
function ge(n, s, p) {
|
|
117
|
+
var y = n.displayName;
|
|
118
|
+
if (y)
|
|
119
|
+
return y;
|
|
120
120
|
var S = s.displayName || s.name || "";
|
|
121
|
-
return S !== "" ?
|
|
121
|
+
return S !== "" ? p + "(" + S + ")" : p;
|
|
122
122
|
}
|
|
123
123
|
function he(n) {
|
|
124
124
|
return n.displayName || "Context";
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function H(n) {
|
|
127
127
|
if (n == null)
|
|
128
128
|
return null;
|
|
129
|
-
if (typeof n.tag == "number" &&
|
|
129
|
+
if (typeof n.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
130
130
|
return n.displayName || n.name || null;
|
|
131
131
|
if (typeof n == "string")
|
|
132
132
|
return n;
|
|
@@ -137,30 +137,30 @@ function En() {
|
|
|
137
137
|
return "Portal";
|
|
138
138
|
case l:
|
|
139
139
|
return "Profiler";
|
|
140
|
-
case
|
|
140
|
+
case a:
|
|
141
141
|
return "StrictMode";
|
|
142
|
-
case
|
|
142
|
+
case f:
|
|
143
143
|
return "Suspense";
|
|
144
144
|
case h:
|
|
145
145
|
return "SuspenseList";
|
|
146
146
|
}
|
|
147
147
|
if (typeof n == "object")
|
|
148
148
|
switch (n.$$typeof) {
|
|
149
|
-
case
|
|
149
|
+
case g:
|
|
150
150
|
var s = n;
|
|
151
151
|
return he(s) + ".Consumer";
|
|
152
|
-
case
|
|
153
|
-
var
|
|
154
|
-
return he(
|
|
152
|
+
case u:
|
|
153
|
+
var p = n;
|
|
154
|
+
return he(p._context) + ".Provider";
|
|
155
155
|
case c:
|
|
156
156
|
return ge(n, n.render, "ForwardRef");
|
|
157
|
-
case
|
|
158
|
-
var
|
|
159
|
-
return
|
|
157
|
+
case $:
|
|
158
|
+
var y = n.displayName || null;
|
|
159
|
+
return y !== null ? y : H(n.type) || "Memo";
|
|
160
160
|
case w: {
|
|
161
|
-
var S = n,
|
|
161
|
+
var S = n, C = S._payload, x = S._init;
|
|
162
162
|
try {
|
|
163
|
-
return
|
|
163
|
+
return H(x(C));
|
|
164
164
|
} catch {
|
|
165
165
|
return null;
|
|
166
166
|
}
|
|
@@ -168,14 +168,14 @@ function En() {
|
|
|
168
168
|
}
|
|
169
169
|
return null;
|
|
170
170
|
}
|
|
171
|
-
var
|
|
171
|
+
var Z = Object.assign, re = 0, ke, Se, M, Oe, et, tt, nt;
|
|
172
172
|
function ot() {
|
|
173
173
|
}
|
|
174
174
|
ot.__reactDisabledLog = !0;
|
|
175
175
|
function Kt() {
|
|
176
176
|
{
|
|
177
|
-
if (
|
|
178
|
-
ke = console.log, Se = console.info,
|
|
177
|
+
if (re === 0) {
|
|
178
|
+
ke = console.log, Se = console.info, M = console.warn, Oe = console.error, et = console.group, tt = console.groupCollapsed, nt = console.groupEnd;
|
|
179
179
|
var n = {
|
|
180
180
|
configurable: !0,
|
|
181
181
|
enumerable: !0,
|
|
@@ -192,142 +192,142 @@ function En() {
|
|
|
192
192
|
groupEnd: n
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
re++;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
function Jt() {
|
|
199
199
|
{
|
|
200
|
-
if (
|
|
200
|
+
if (re--, re === 0) {
|
|
201
201
|
var n = {
|
|
202
202
|
configurable: !0,
|
|
203
203
|
enumerable: !0,
|
|
204
204
|
writable: !0
|
|
205
205
|
};
|
|
206
206
|
Object.defineProperties(console, {
|
|
207
|
-
log:
|
|
207
|
+
log: Z({}, n, {
|
|
208
208
|
value: ke
|
|
209
209
|
}),
|
|
210
|
-
info:
|
|
210
|
+
info: Z({}, n, {
|
|
211
211
|
value: Se
|
|
212
212
|
}),
|
|
213
|
-
warn:
|
|
214
|
-
value:
|
|
213
|
+
warn: Z({}, n, {
|
|
214
|
+
value: M
|
|
215
215
|
}),
|
|
216
|
-
error:
|
|
216
|
+
error: Z({}, n, {
|
|
217
217
|
value: Oe
|
|
218
218
|
}),
|
|
219
|
-
group:
|
|
219
|
+
group: Z({}, n, {
|
|
220
220
|
value: et
|
|
221
221
|
}),
|
|
222
|
-
groupCollapsed:
|
|
222
|
+
groupCollapsed: Z({}, n, {
|
|
223
223
|
value: tt
|
|
224
224
|
}),
|
|
225
|
-
groupEnd:
|
|
225
|
+
groupEnd: Z({}, n, {
|
|
226
226
|
value: nt
|
|
227
227
|
})
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
|
-
|
|
230
|
+
re < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
var Be =
|
|
234
|
-
function _e(n, s,
|
|
233
|
+
var Be = _.ReactCurrentDispatcher, Re;
|
|
234
|
+
function _e(n, s, p) {
|
|
235
235
|
{
|
|
236
|
-
if (
|
|
236
|
+
if (Re === void 0)
|
|
237
237
|
try {
|
|
238
238
|
throw Error();
|
|
239
239
|
} catch (S) {
|
|
240
|
-
var
|
|
241
|
-
|
|
240
|
+
var y = S.stack.trim().match(/\n( *(at )?)/);
|
|
241
|
+
Re = y && y[1] || "";
|
|
242
242
|
}
|
|
243
243
|
return `
|
|
244
|
-
` +
|
|
244
|
+
` + Re + n;
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
|
-
var
|
|
247
|
+
var Pe = !1, Ce;
|
|
248
248
|
{
|
|
249
249
|
var Qt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
250
250
|
Ce = new Qt();
|
|
251
251
|
}
|
|
252
252
|
function at(n, s) {
|
|
253
|
-
if (!n ||
|
|
253
|
+
if (!n || Pe)
|
|
254
254
|
return "";
|
|
255
255
|
{
|
|
256
|
-
var
|
|
257
|
-
if (
|
|
258
|
-
return
|
|
256
|
+
var p = Ce.get(n);
|
|
257
|
+
if (p !== void 0)
|
|
258
|
+
return p;
|
|
259
259
|
}
|
|
260
|
-
var
|
|
261
|
-
|
|
260
|
+
var y;
|
|
261
|
+
Pe = !0;
|
|
262
262
|
var S = Error.prepareStackTrace;
|
|
263
263
|
Error.prepareStackTrace = void 0;
|
|
264
|
-
var
|
|
265
|
-
|
|
264
|
+
var C;
|
|
265
|
+
C = Be.current, Be.current = null, Kt();
|
|
266
266
|
try {
|
|
267
267
|
if (s) {
|
|
268
|
-
var
|
|
268
|
+
var x = function() {
|
|
269
269
|
throw Error();
|
|
270
270
|
};
|
|
271
|
-
if (Object.defineProperty(
|
|
271
|
+
if (Object.defineProperty(x.prototype, "props", {
|
|
272
272
|
set: function() {
|
|
273
273
|
throw Error();
|
|
274
274
|
}
|
|
275
275
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
276
276
|
try {
|
|
277
|
-
Reflect.construct(
|
|
278
|
-
} catch (
|
|
279
|
-
|
|
277
|
+
Reflect.construct(x, []);
|
|
278
|
+
} catch (D) {
|
|
279
|
+
y = D;
|
|
280
280
|
}
|
|
281
|
-
Reflect.construct(n, [],
|
|
281
|
+
Reflect.construct(n, [], x);
|
|
282
282
|
} else {
|
|
283
283
|
try {
|
|
284
|
-
|
|
285
|
-
} catch (
|
|
286
|
-
|
|
284
|
+
x.call();
|
|
285
|
+
} catch (D) {
|
|
286
|
+
y = D;
|
|
287
287
|
}
|
|
288
|
-
n.call(
|
|
288
|
+
n.call(x.prototype);
|
|
289
289
|
}
|
|
290
290
|
} else {
|
|
291
291
|
try {
|
|
292
292
|
throw Error();
|
|
293
|
-
} catch (
|
|
294
|
-
|
|
293
|
+
} catch (D) {
|
|
294
|
+
y = D;
|
|
295
295
|
}
|
|
296
296
|
n();
|
|
297
297
|
}
|
|
298
|
-
} catch (
|
|
299
|
-
if (
|
|
300
|
-
for (var
|
|
301
|
-
`),
|
|
302
|
-
`),
|
|
298
|
+
} catch (D) {
|
|
299
|
+
if (D && y && typeof D.stack == "string") {
|
|
300
|
+
for (var v = D.stack.split(`
|
|
301
|
+
`), N = y.stack.split(`
|
|
302
|
+
`), z = v.length - 1, B = N.length - 1; z >= 1 && B >= 0 && v[z] !== N[B]; )
|
|
303
303
|
B--;
|
|
304
|
-
for (;
|
|
305
|
-
if (
|
|
306
|
-
if (
|
|
304
|
+
for (; z >= 1 && B >= 0; z--, B--)
|
|
305
|
+
if (v[z] !== N[B]) {
|
|
306
|
+
if (z !== 1 || B !== 1)
|
|
307
307
|
do
|
|
308
|
-
if (
|
|
309
|
-
var
|
|
310
|
-
` +
|
|
311
|
-
return n.displayName &&
|
|
308
|
+
if (z--, B--, B < 0 || v[z] !== N[B]) {
|
|
309
|
+
var V = `
|
|
310
|
+
` + v[z].replace(" at new ", " at ");
|
|
311
|
+
return n.displayName && V.includes("<anonymous>") && (V = V.replace("<anonymous>", n.displayName)), typeof n == "function" && Ce.set(n, V), V;
|
|
312
312
|
}
|
|
313
|
-
while (
|
|
313
|
+
while (z >= 1 && B >= 0);
|
|
314
314
|
break;
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
} finally {
|
|
318
|
-
|
|
318
|
+
Pe = !1, Be.current = C, Jt(), Error.prepareStackTrace = S;
|
|
319
319
|
}
|
|
320
|
-
var
|
|
321
|
-
return typeof n == "function" && Ce.set(n,
|
|
320
|
+
var de = n ? n.displayName || n.name : "", le = de ? _e(de) : "";
|
|
321
|
+
return typeof n == "function" && Ce.set(n, le), le;
|
|
322
322
|
}
|
|
323
|
-
function Zt(n, s,
|
|
323
|
+
function Zt(n, s, p) {
|
|
324
324
|
return at(n, !1);
|
|
325
325
|
}
|
|
326
326
|
function Xt(n) {
|
|
327
327
|
var s = n.prototype;
|
|
328
328
|
return !!(s && s.isReactComponent);
|
|
329
329
|
}
|
|
330
|
-
function Ee(n, s,
|
|
330
|
+
function Ee(n, s, p) {
|
|
331
331
|
if (n == null)
|
|
332
332
|
return "";
|
|
333
333
|
if (typeof n == "function")
|
|
@@ -335,7 +335,7 @@ function En() {
|
|
|
335
335
|
if (typeof n == "string")
|
|
336
336
|
return _e(n);
|
|
337
337
|
switch (n) {
|
|
338
|
-
case
|
|
338
|
+
case f:
|
|
339
339
|
return _e("Suspense");
|
|
340
340
|
case h:
|
|
341
341
|
return _e("SuspenseList");
|
|
@@ -344,42 +344,42 @@ function En() {
|
|
|
344
344
|
switch (n.$$typeof) {
|
|
345
345
|
case c:
|
|
346
346
|
return Zt(n.render);
|
|
347
|
-
case
|
|
348
|
-
return Ee(n.type, s,
|
|
347
|
+
case $:
|
|
348
|
+
return Ee(n.type, s, p);
|
|
349
349
|
case w: {
|
|
350
|
-
var
|
|
350
|
+
var y = n, S = y._payload, C = y._init;
|
|
351
351
|
try {
|
|
352
|
-
return Ee(
|
|
352
|
+
return Ee(C(S), s, p);
|
|
353
353
|
} catch {
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
return "";
|
|
358
358
|
}
|
|
359
|
-
var me = Object.prototype.hasOwnProperty, it = {}, rt =
|
|
359
|
+
var me = Object.prototype.hasOwnProperty, it = {}, rt = _.ReactDebugCurrentFrame;
|
|
360
360
|
function je(n) {
|
|
361
361
|
if (n) {
|
|
362
|
-
var s = n._owner,
|
|
363
|
-
rt.setExtraStackFrame(
|
|
362
|
+
var s = n._owner, p = Ee(n.type, n._source, s ? s.type : null);
|
|
363
|
+
rt.setExtraStackFrame(p);
|
|
364
364
|
} else
|
|
365
365
|
rt.setExtraStackFrame(null);
|
|
366
366
|
}
|
|
367
|
-
function en(n, s,
|
|
367
|
+
function en(n, s, p, y, S) {
|
|
368
368
|
{
|
|
369
|
-
var
|
|
370
|
-
for (var
|
|
371
|
-
if (
|
|
372
|
-
var
|
|
369
|
+
var C = Function.call.bind(me);
|
|
370
|
+
for (var x in n)
|
|
371
|
+
if (C(n, x)) {
|
|
372
|
+
var v = void 0;
|
|
373
373
|
try {
|
|
374
|
-
if (typeof n[
|
|
375
|
-
var
|
|
376
|
-
throw
|
|
374
|
+
if (typeof n[x] != "function") {
|
|
375
|
+
var N = Error((y || "React class") + ": " + p + " type `" + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[x] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
376
|
+
throw N.name = "Invariant Violation", N;
|
|
377
377
|
}
|
|
378
|
-
|
|
379
|
-
} catch (
|
|
380
|
-
|
|
378
|
+
v = n[x](s, x, y, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
379
|
+
} catch (z) {
|
|
380
|
+
v = z;
|
|
381
381
|
}
|
|
382
|
-
|
|
382
|
+
v && !(v instanceof Error) && (je(S), k("%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, x, typeof v), je(null)), v instanceof Error && !(v.message in it) && (it[v.message] = !0, je(S), k("Failed %s type: %s", p, v.message), je(null));
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
}
|
|
@@ -389,8 +389,8 @@ function En() {
|
|
|
389
389
|
}
|
|
390
390
|
function nn(n) {
|
|
391
391
|
{
|
|
392
|
-
var s = typeof Symbol == "function" && Symbol.toStringTag,
|
|
393
|
-
return
|
|
392
|
+
var s = typeof Symbol == "function" && Symbol.toStringTag, p = s && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
393
|
+
return p;
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
function on(n) {
|
|
@@ -405,15 +405,15 @@ function En() {
|
|
|
405
405
|
}
|
|
406
406
|
function ct(n) {
|
|
407
407
|
if (on(n))
|
|
408
|
-
return
|
|
408
|
+
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", nn(n)), lt(n);
|
|
409
409
|
}
|
|
410
|
-
var ye =
|
|
410
|
+
var ye = _.ReactCurrentOwner, an = {
|
|
411
411
|
key: !0,
|
|
412
412
|
ref: !0,
|
|
413
413
|
__self: !0,
|
|
414
414
|
__source: !0
|
|
415
|
-
}, st, ut,
|
|
416
|
-
|
|
415
|
+
}, st, ut, Fe;
|
|
416
|
+
Fe = {};
|
|
417
417
|
function rn(n) {
|
|
418
418
|
if (me.call(n, "ref")) {
|
|
419
419
|
var s = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
@@ -432,84 +432,84 @@ function En() {
|
|
|
432
432
|
}
|
|
433
433
|
function cn(n, s) {
|
|
434
434
|
if (typeof n.ref == "string" && ye.current && s && ye.current.stateNode !== s) {
|
|
435
|
-
var
|
|
436
|
-
|
|
435
|
+
var p = H(ye.current.type);
|
|
436
|
+
Fe[p] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', H(ye.current.type), n.ref), Fe[p] = !0);
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
function sn(n, s) {
|
|
440
440
|
{
|
|
441
|
-
var
|
|
442
|
-
st || (st = !0,
|
|
441
|
+
var p = function() {
|
|
442
|
+
st || (st = !0, k("%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));
|
|
443
443
|
};
|
|
444
|
-
|
|
445
|
-
get:
|
|
444
|
+
p.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
445
|
+
get: p,
|
|
446
446
|
configurable: !0
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
function un(n, s) {
|
|
451
451
|
{
|
|
452
|
-
var
|
|
453
|
-
ut || (ut = !0,
|
|
452
|
+
var p = function() {
|
|
453
|
+
ut || (ut = !0, k("%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));
|
|
454
454
|
};
|
|
455
|
-
|
|
456
|
-
get:
|
|
455
|
+
p.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
456
|
+
get: p,
|
|
457
457
|
configurable: !0
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var dn = function(n, s,
|
|
462
|
-
var
|
|
461
|
+
var dn = function(n, s, p, y, S, C, x) {
|
|
462
|
+
var v = {
|
|
463
463
|
// This tag allows us to uniquely identify this as a React Element
|
|
464
464
|
$$typeof: e,
|
|
465
465
|
// Built-in properties that belong on the element
|
|
466
466
|
type: n,
|
|
467
467
|
key: s,
|
|
468
|
-
ref:
|
|
469
|
-
props:
|
|
468
|
+
ref: p,
|
|
469
|
+
props: x,
|
|
470
470
|
// Record the component responsible for creating this element.
|
|
471
|
-
_owner:
|
|
471
|
+
_owner: C
|
|
472
472
|
};
|
|
473
|
-
return
|
|
473
|
+
return v._store = {}, Object.defineProperty(v._store, "validated", {
|
|
474
474
|
configurable: !1,
|
|
475
475
|
enumerable: !1,
|
|
476
476
|
writable: !0,
|
|
477
477
|
value: !1
|
|
478
|
-
}), Object.defineProperty(
|
|
478
|
+
}), Object.defineProperty(v, "_self", {
|
|
479
479
|
configurable: !1,
|
|
480
480
|
enumerable: !1,
|
|
481
481
|
writable: !1,
|
|
482
|
-
value:
|
|
483
|
-
}), Object.defineProperty(
|
|
482
|
+
value: y
|
|
483
|
+
}), Object.defineProperty(v, "_source", {
|
|
484
484
|
configurable: !1,
|
|
485
485
|
enumerable: !1,
|
|
486
486
|
writable: !1,
|
|
487
487
|
value: S
|
|
488
|
-
}), Object.freeze && (Object.freeze(
|
|
488
|
+
}), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
|
|
489
489
|
};
|
|
490
|
-
function fn(n, s,
|
|
490
|
+
function fn(n, s, p, y, S) {
|
|
491
491
|
{
|
|
492
|
-
var
|
|
493
|
-
|
|
494
|
-
for (
|
|
495
|
-
me.call(s,
|
|
492
|
+
var C, x = {}, v = null, N = null;
|
|
493
|
+
p !== void 0 && (ct(p), v = "" + p), ln(s) && (ct(s.key), v = "" + s.key), rn(s) && (N = s.ref, cn(s, S));
|
|
494
|
+
for (C in s)
|
|
495
|
+
me.call(s, C) && !an.hasOwnProperty(C) && (x[C] = s[C]);
|
|
496
496
|
if (n && n.defaultProps) {
|
|
497
|
-
var
|
|
498
|
-
for (
|
|
499
|
-
|
|
497
|
+
var z = n.defaultProps;
|
|
498
|
+
for (C in z)
|
|
499
|
+
x[C] === void 0 && (x[C] = z[C]);
|
|
500
500
|
}
|
|
501
|
-
if (
|
|
501
|
+
if (v || N) {
|
|
502
502
|
var B = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
503
|
-
|
|
503
|
+
v && sn(x, B), N && un(x, B);
|
|
504
504
|
}
|
|
505
|
-
return dn(n,
|
|
505
|
+
return dn(n, v, N, S, y, ye.current, x);
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
var
|
|
509
|
-
function
|
|
508
|
+
var Ne = _.ReactCurrentOwner, dt = _.ReactDebugCurrentFrame;
|
|
509
|
+
function ue(n) {
|
|
510
510
|
if (n) {
|
|
511
|
-
var s = n._owner,
|
|
512
|
-
dt.setExtraStackFrame(
|
|
511
|
+
var s = n._owner, p = Ee(n.type, n._source, s ? s.type : null);
|
|
512
|
+
dt.setExtraStackFrame(p);
|
|
513
513
|
} else
|
|
514
514
|
dt.setExtraStackFrame(null);
|
|
515
515
|
}
|
|
@@ -520,8 +520,8 @@ function En() {
|
|
|
520
520
|
}
|
|
521
521
|
function ft() {
|
|
522
522
|
{
|
|
523
|
-
if (
|
|
524
|
-
var n =
|
|
523
|
+
if (Ne.current) {
|
|
524
|
+
var n = H(Ne.current.type);
|
|
525
525
|
if (n)
|
|
526
526
|
return `
|
|
527
527
|
|
|
@@ -538,10 +538,10 @@ Check the render method of \`` + n + "`.";
|
|
|
538
538
|
{
|
|
539
539
|
var s = ft();
|
|
540
540
|
if (!s) {
|
|
541
|
-
var
|
|
542
|
-
|
|
541
|
+
var p = typeof n == "string" ? n : n.displayName || n.name;
|
|
542
|
+
p && (s = `
|
|
543
543
|
|
|
544
|
-
Check the top-level render call using <` +
|
|
544
|
+
Check the top-level render call using <` + p + ">.");
|
|
545
545
|
}
|
|
546
546
|
return s;
|
|
547
547
|
}
|
|
@@ -551,12 +551,12 @@ Check the top-level render call using <` + f + ">.");
|
|
|
551
551
|
if (!n._store || n._store.validated || n.key != null)
|
|
552
552
|
return;
|
|
553
553
|
n._store.validated = !0;
|
|
554
|
-
var
|
|
555
|
-
if (pt[
|
|
554
|
+
var p = gn(s);
|
|
555
|
+
if (pt[p])
|
|
556
556
|
return;
|
|
557
|
-
pt[
|
|
558
|
-
var
|
|
559
|
-
n && n._owner && n._owner !==
|
|
557
|
+
pt[p] = !0;
|
|
558
|
+
var y = "";
|
|
559
|
+
n && n._owner && n._owner !== Ne.current && (y = " It was passed a child from " + H(n._owner.type) + "."), ue(n), k('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);
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
562
|
function ht(n, s) {
|
|
@@ -564,17 +564,17 @@ Check the top-level render call using <` + f + ">.");
|
|
|
564
564
|
if (typeof n != "object")
|
|
565
565
|
return;
|
|
566
566
|
if (Ie(n))
|
|
567
|
-
for (var
|
|
568
|
-
var
|
|
569
|
-
Ue(
|
|
567
|
+
for (var p = 0; p < n.length; p++) {
|
|
568
|
+
var y = n[p];
|
|
569
|
+
Ue(y) && gt(y, s);
|
|
570
570
|
}
|
|
571
571
|
else if (Ue(n))
|
|
572
572
|
n._store && (n._store.validated = !0);
|
|
573
573
|
else if (n) {
|
|
574
|
-
var S =
|
|
574
|
+
var S = E(n);
|
|
575
575
|
if (typeof S == "function" && S !== n.entries)
|
|
576
|
-
for (var
|
|
577
|
-
Ue(
|
|
576
|
+
for (var C = S.call(n), x; !(x = C.next()).done; )
|
|
577
|
+
Ue(x.value) && gt(x.value, s);
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
}
|
|
@@ -583,116 +583,116 @@ Check the top-level render call using <` + f + ">.");
|
|
|
583
583
|
var s = n.type;
|
|
584
584
|
if (s == null || typeof s == "string")
|
|
585
585
|
return;
|
|
586
|
-
var
|
|
586
|
+
var p;
|
|
587
587
|
if (typeof s == "function")
|
|
588
|
-
|
|
588
|
+
p = s.propTypes;
|
|
589
589
|
else if (typeof s == "object" && (s.$$typeof === c || // Note: Memo only checks outer props here.
|
|
590
590
|
// Inner props are checked in the reconciler.
|
|
591
|
-
s.$$typeof ===
|
|
592
|
-
|
|
591
|
+
s.$$typeof === $))
|
|
592
|
+
p = s.propTypes;
|
|
593
593
|
else
|
|
594
594
|
return;
|
|
595
|
-
if (
|
|
596
|
-
var
|
|
597
|
-
en(
|
|
595
|
+
if (p) {
|
|
596
|
+
var y = H(s);
|
|
597
|
+
en(p, n.props, "prop", y, n);
|
|
598
598
|
} else if (s.PropTypes !== void 0 && !De) {
|
|
599
599
|
De = !0;
|
|
600
|
-
var S =
|
|
601
|
-
|
|
600
|
+
var S = H(s);
|
|
601
|
+
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
|
|
602
602
|
}
|
|
603
|
-
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved &&
|
|
603
|
+
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
606
|
function mn(n) {
|
|
607
607
|
{
|
|
608
|
-
for (var s = Object.keys(n.props),
|
|
609
|
-
var
|
|
610
|
-
if (
|
|
611
|
-
|
|
608
|
+
for (var s = Object.keys(n.props), p = 0; p < s.length; p++) {
|
|
609
|
+
var y = s[p];
|
|
610
|
+
if (y !== "children" && y !== "key") {
|
|
611
|
+
ue(n), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), ue(null);
|
|
612
612
|
break;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
n.ref !== null && (
|
|
615
|
+
n.ref !== null && (ue(n), k("Invalid attribute `ref` supplied to `React.Fragment`."), ue(null));
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
var mt = {};
|
|
619
|
-
function yt(n, s,
|
|
619
|
+
function yt(n, s, p, y, S, C) {
|
|
620
620
|
{
|
|
621
|
-
var
|
|
622
|
-
if (!
|
|
623
|
-
var
|
|
624
|
-
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (
|
|
625
|
-
var
|
|
626
|
-
|
|
627
|
-
var
|
|
628
|
-
n === null ?
|
|
621
|
+
var x = ze(n);
|
|
622
|
+
if (!x) {
|
|
623
|
+
var v = "";
|
|
624
|
+
(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.");
|
|
625
|
+
var N = pn();
|
|
626
|
+
N ? v += N : v += ft();
|
|
627
|
+
var z;
|
|
628
|
+
n === null ? z = "null" : Ie(n) ? z = "array" : n !== void 0 && n.$$typeof === e ? (z = "<" + (H(n.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : z = typeof n, k("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);
|
|
629
629
|
}
|
|
630
|
-
var B = fn(n, s,
|
|
630
|
+
var B = fn(n, s, p, S, C);
|
|
631
631
|
if (B == null)
|
|
632
632
|
return B;
|
|
633
|
-
if (
|
|
634
|
-
var
|
|
635
|
-
if (
|
|
636
|
-
if (
|
|
637
|
-
if (Ie(
|
|
638
|
-
for (var
|
|
639
|
-
ht(
|
|
640
|
-
Object.freeze && Object.freeze(
|
|
633
|
+
if (x) {
|
|
634
|
+
var V = s.children;
|
|
635
|
+
if (V !== void 0)
|
|
636
|
+
if (y)
|
|
637
|
+
if (Ie(V)) {
|
|
638
|
+
for (var de = 0; de < V.length; de++)
|
|
639
|
+
ht(V[de], n);
|
|
640
|
+
Object.freeze && Object.freeze(V);
|
|
641
641
|
} else
|
|
642
|
-
|
|
642
|
+
k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
643
643
|
else
|
|
644
|
-
ht(
|
|
644
|
+
ht(V, n);
|
|
645
645
|
}
|
|
646
646
|
if (me.call(s, "key")) {
|
|
647
|
-
var
|
|
647
|
+
var le = H(n), D = Object.keys(s).filter(function($n) {
|
|
648
648
|
return $n !== "key";
|
|
649
|
-
}), We =
|
|
650
|
-
if (!mt[
|
|
651
|
-
var xn =
|
|
652
|
-
|
|
649
|
+
}), We = D.length > 0 ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
650
|
+
if (!mt[le + We]) {
|
|
651
|
+
var xn = D.length > 0 ? "{" + D.join(": ..., ") + ": ...}" : "{}";
|
|
652
|
+
k(`A props object containing a "key" prop is being spread into JSX:
|
|
653
653
|
let props = %s;
|
|
654
654
|
<%s {...props} />
|
|
655
655
|
React keys must be passed directly to JSX without using spread:
|
|
656
656
|
let props = %s;
|
|
657
|
-
<%s key={someKey} {...props} />`, We,
|
|
657
|
+
<%s key={someKey} {...props} />`, We, le, xn, le), mt[le + We] = !0;
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
return n === r ? mn(B) : hn(B), B;
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
|
-
function yn(n, s,
|
|
664
|
-
return yt(n, s,
|
|
663
|
+
function yn(n, s, p) {
|
|
664
|
+
return yt(n, s, p, !0);
|
|
665
665
|
}
|
|
666
|
-
function wn(n, s,
|
|
667
|
-
return yt(n, s,
|
|
666
|
+
function wn(n, s, p) {
|
|
667
|
+
return yt(n, s, p, !1);
|
|
668
668
|
}
|
|
669
669
|
var bn = wn, vn = yn;
|
|
670
670
|
be.Fragment = r, be.jsx = bn, be.jsxs = vn;
|
|
671
671
|
}()), be;
|
|
672
672
|
}
|
|
673
673
|
process.env.NODE_ENV === "production" ? Ze.exports = Cn() : Ze.exports = En();
|
|
674
|
-
var
|
|
675
|
-
const
|
|
674
|
+
var i = Ze.exports;
|
|
675
|
+
const d = "https://cdn.casbin.org", I = {
|
|
676
676
|
casdoor: "https://casdoor",
|
|
677
677
|
springmicro: void 0
|
|
678
678
|
};
|
|
679
679
|
function jn() {
|
|
680
680
|
return "en";
|
|
681
681
|
}
|
|
682
|
-
function
|
|
682
|
+
function te() {
|
|
683
683
|
return "en;q=0.9,en;q=0.8";
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function G(t, e) {
|
|
686
686
|
alert(e);
|
|
687
687
|
}
|
|
688
688
|
function Ln(t) {
|
|
689
689
|
t !== void 0 && (window.location.href = t);
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function Pt(t) {
|
|
692
692
|
return !(t.provider === void 0 || t.provider === null || !["OAuth", "SAML", "Web3"].includes(t.provider.category) || t.provider.type === "WeChatMiniProgram");
|
|
693
693
|
}
|
|
694
694
|
function Tn(t) {
|
|
695
|
-
return
|
|
695
|
+
return Pt(t) && t.prompted;
|
|
696
696
|
}
|
|
697
697
|
function An(t) {
|
|
698
698
|
return t.visible && t.prompted;
|
|
@@ -712,7 +712,7 @@ function zn(t) {
|
|
|
712
712
|
function On(t, e) {
|
|
713
713
|
var r;
|
|
714
714
|
const o = (r = t.signupItems) == null ? void 0 : r.filter(
|
|
715
|
-
(
|
|
715
|
+
(a) => a.name === e
|
|
716
716
|
);
|
|
717
717
|
return (o == null ? void 0 : o.length) ?? !1 ? o[0] : null;
|
|
718
718
|
}
|
|
@@ -726,30 +726,30 @@ function vt(t) {
|
|
|
726
726
|
function Ae(t, e) {
|
|
727
727
|
return t && t.signinMethods ? t.signinMethods.filter((o) => o.name === e).length > 0 : !1;
|
|
728
728
|
}
|
|
729
|
-
function
|
|
729
|
+
function Rn(t) {
|
|
730
730
|
return Ae(t, "Password");
|
|
731
731
|
}
|
|
732
|
-
function
|
|
732
|
+
function Pn(t) {
|
|
733
733
|
return Ae(t, "Verification code");
|
|
734
734
|
}
|
|
735
735
|
function In(t) {
|
|
736
736
|
return Ae(t, "WebAuthn");
|
|
737
737
|
}
|
|
738
|
-
function
|
|
738
|
+
function Fn(t) {
|
|
739
739
|
return Ae(t, "LDAP");
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function Nn(t) {
|
|
742
742
|
const e = Mn(t);
|
|
743
743
|
if ((e == null ? void 0 : e.length) ?? !1)
|
|
744
744
|
return !0;
|
|
745
745
|
const o = zn(t);
|
|
746
746
|
return (o == null ? void 0 : o.length) ?? !1 ? !0 : Bn(t);
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function se(t) {
|
|
749
749
|
if (t.type === "Custom" && t.customLogo)
|
|
750
750
|
return t.customLogo;
|
|
751
751
|
if (t.category === "OAuth")
|
|
752
|
-
return `${
|
|
752
|
+
return `${d}/img/social_${t.type.toLowerCase()}.png`;
|
|
753
753
|
{
|
|
754
754
|
const e = Dn[t.category][t.type];
|
|
755
755
|
return e ? e.logo : "";
|
|
@@ -758,55 +758,55 @@ function ue(t) {
|
|
|
758
758
|
const Dn = {
|
|
759
759
|
SMS: {
|
|
760
760
|
"Aliyun SMS": {
|
|
761
|
-
logo: `${
|
|
761
|
+
logo: `${d}/img/social_aliyun.png`,
|
|
762
762
|
url: "https://aliyun.com/product/sms"
|
|
763
763
|
},
|
|
764
764
|
"Amazon SNS": {
|
|
765
|
-
logo: `${
|
|
765
|
+
logo: `${d}/img/social_aws.png`,
|
|
766
766
|
url: "https://aws.amazon.com/cn/sns/"
|
|
767
767
|
},
|
|
768
768
|
"Azure ACS": {
|
|
769
|
-
logo: `${
|
|
769
|
+
logo: `${d}/img/social_azure.png`,
|
|
770
770
|
url: "https://azure.microsoft.com/en-us/products/communication-services"
|
|
771
771
|
},
|
|
772
772
|
"Infobip SMS": {
|
|
773
|
-
logo: `${
|
|
773
|
+
logo: `${d}/img/social_infobip.png`,
|
|
774
774
|
url: "https://portal.infobip.com/homepage/"
|
|
775
775
|
},
|
|
776
776
|
"Tencent Cloud SMS": {
|
|
777
|
-
logo: `${
|
|
777
|
+
logo: `${d}/img/social_tencent_cloud.jpg`,
|
|
778
778
|
url: "https://cloud.tencent.com/product/sms"
|
|
779
779
|
},
|
|
780
780
|
"Baidu Cloud SMS": {
|
|
781
|
-
logo: `${
|
|
781
|
+
logo: `${d}/img/social_baidu_cloud.png`,
|
|
782
782
|
url: "https://cloud.baidu.com/product/sms.html"
|
|
783
783
|
},
|
|
784
784
|
"Volc Engine SMS": {
|
|
785
|
-
logo: `${
|
|
785
|
+
logo: `${d}/img/social_volc_engine.jpg`,
|
|
786
786
|
url: "https://www.volcengine.com/products/cloud-sms"
|
|
787
787
|
},
|
|
788
788
|
"Huawei Cloud SMS": {
|
|
789
|
-
logo: `${
|
|
789
|
+
logo: `${d}/img/social_huawei.png`,
|
|
790
790
|
url: "https://www.huaweicloud.com/product/msgsms.html"
|
|
791
791
|
},
|
|
792
792
|
"UCloud SMS": {
|
|
793
|
-
logo: `${
|
|
793
|
+
logo: `${d}/img/social_ucloud.png`,
|
|
794
794
|
url: "https://www.ucloud.cn/site/product/usms.html"
|
|
795
795
|
},
|
|
796
796
|
"Twilio SMS": {
|
|
797
|
-
logo: `${
|
|
797
|
+
logo: `${d}/img/social_twilio.svg`,
|
|
798
798
|
url: "https://www.twilio.com/messaging"
|
|
799
799
|
},
|
|
800
800
|
"SmsBao SMS": {
|
|
801
|
-
logo: `${
|
|
801
|
+
logo: `${d}/img/social_smsbao.png`,
|
|
802
802
|
url: "https://www.smsbao.com/"
|
|
803
803
|
},
|
|
804
804
|
"SUBMAIL SMS": {
|
|
805
|
-
logo: `${
|
|
805
|
+
logo: `${d}/img/social_submail.svg`,
|
|
806
806
|
url: "https://www.mysubmail.com"
|
|
807
807
|
},
|
|
808
808
|
"Msg91 SMS": {
|
|
809
|
-
logo: `${
|
|
809
|
+
logo: `${d}/img/social_msg91.ico`,
|
|
810
810
|
url: "https://control.msg91.com/app/"
|
|
811
811
|
},
|
|
812
812
|
"OSON SMS": {
|
|
@@ -814,47 +814,47 @@ const Dn = {
|
|
|
814
814
|
url: "https://osonsms.com/"
|
|
815
815
|
},
|
|
816
816
|
"Custom HTTP SMS": {
|
|
817
|
-
logo: `${
|
|
817
|
+
logo: `${d}/img/social_default.png`,
|
|
818
818
|
url: "https://casdoor.org/docs/provider/sms/overview"
|
|
819
819
|
},
|
|
820
820
|
"Mock SMS": {
|
|
821
|
-
logo: `${
|
|
821
|
+
logo: `${d}/img/social_default.png`,
|
|
822
822
|
url: ""
|
|
823
823
|
}
|
|
824
824
|
},
|
|
825
825
|
Email: {
|
|
826
826
|
Default: {
|
|
827
|
-
logo: `${
|
|
827
|
+
logo: `${d}/img/email_default.png`,
|
|
828
828
|
url: ""
|
|
829
829
|
},
|
|
830
830
|
SUBMAIL: {
|
|
831
|
-
logo: `${
|
|
831
|
+
logo: `${d}/img/social_submail.svg`,
|
|
832
832
|
url: "https://www.mysubmail.com"
|
|
833
833
|
},
|
|
834
834
|
Mailtrap: {
|
|
835
|
-
logo: `${
|
|
835
|
+
logo: `${d}/img/email_mailtrap.png`,
|
|
836
836
|
url: "https://mailtrap.io"
|
|
837
837
|
},
|
|
838
838
|
"Azure ACS": {
|
|
839
|
-
logo: `${
|
|
839
|
+
logo: `${d}/img/social_azure.png`,
|
|
840
840
|
url: "https://learn.microsoft.com/zh-cn/azure/communication-services"
|
|
841
841
|
},
|
|
842
842
|
SendGrid: {
|
|
843
|
-
logo: `${
|
|
843
|
+
logo: `${d}/img/email_sendgrid.png`,
|
|
844
844
|
url: "https://sendgrid.com/"
|
|
845
845
|
},
|
|
846
846
|
"Custom HTTP Email": {
|
|
847
|
-
logo: `${
|
|
847
|
+
logo: `${d}/img/social_default.png`,
|
|
848
848
|
url: "https://casdoor.org/docs/provider/email/overview"
|
|
849
849
|
}
|
|
850
850
|
},
|
|
851
851
|
Storage: {
|
|
852
852
|
"Local File System": {
|
|
853
|
-
logo: `${
|
|
853
|
+
logo: `${d}/img/social_file.png`,
|
|
854
854
|
url: ""
|
|
855
855
|
},
|
|
856
856
|
"AWS S3": {
|
|
857
|
-
logo: `${
|
|
857
|
+
logo: `${d}/img/social_aws.png`,
|
|
858
858
|
url: "https://aws.amazon.com/s3"
|
|
859
859
|
},
|
|
860
860
|
MinIO: {
|
|
@@ -862,204 +862,204 @@ const Dn = {
|
|
|
862
862
|
url: "https://min.io/"
|
|
863
863
|
},
|
|
864
864
|
"Aliyun OSS": {
|
|
865
|
-
logo: `${
|
|
865
|
+
logo: `${d}/img/social_aliyun.png`,
|
|
866
866
|
url: "https://aliyun.com/product/oss"
|
|
867
867
|
},
|
|
868
868
|
"Tencent Cloud COS": {
|
|
869
|
-
logo: `${
|
|
869
|
+
logo: `${d}/img/social_tencent_cloud.jpg`,
|
|
870
870
|
url: "https://cloud.tencent.com/product/cos"
|
|
871
871
|
},
|
|
872
872
|
"Azure Blob": {
|
|
873
|
-
logo: `${
|
|
873
|
+
logo: `${d}/img/social_azure.png`,
|
|
874
874
|
url: "https://azure.microsoft.com/en-us/services/storage/blobs/"
|
|
875
875
|
},
|
|
876
876
|
"Qiniu Cloud Kodo": {
|
|
877
|
-
logo: `${
|
|
877
|
+
logo: `${d}/img/social_qiniu_cloud.png`,
|
|
878
878
|
url: "https://www.qiniu.com/solutions/storage"
|
|
879
879
|
},
|
|
880
880
|
"Google Cloud Storage": {
|
|
881
|
-
logo: `${
|
|
881
|
+
logo: `${d}/img/social_google_cloud.png`,
|
|
882
882
|
url: "https://cloud.google.com/storage"
|
|
883
883
|
},
|
|
884
884
|
Synology: {
|
|
885
|
-
logo: `${
|
|
885
|
+
logo: `${d}/img/social_synology.png`,
|
|
886
886
|
url: "https://www.synology.com/en-global/dsm/feature/file_sharing"
|
|
887
887
|
}
|
|
888
888
|
},
|
|
889
889
|
SAML: {
|
|
890
890
|
"Aliyun IDaaS": {
|
|
891
|
-
logo: `${
|
|
891
|
+
logo: `${d}/img/social_aliyun.png`,
|
|
892
892
|
url: "https://aliyun.com/product/idaas"
|
|
893
893
|
},
|
|
894
894
|
Keycloak: {
|
|
895
|
-
logo: `${
|
|
895
|
+
logo: `${d}/img/social_keycloak.png`,
|
|
896
896
|
url: "https://www.keycloak.org/"
|
|
897
897
|
},
|
|
898
898
|
Custom: {
|
|
899
|
-
logo: `${
|
|
899
|
+
logo: `${d}/img/social_custom.png`,
|
|
900
900
|
url: "https://door.casdoor.com/"
|
|
901
901
|
}
|
|
902
902
|
},
|
|
903
903
|
Payment: {
|
|
904
904
|
Dummy: {
|
|
905
|
-
logo: `${
|
|
905
|
+
logo: `${d}/img/payment_paypal.png`,
|
|
906
906
|
url: ""
|
|
907
907
|
},
|
|
908
908
|
Alipay: {
|
|
909
|
-
logo: `${
|
|
909
|
+
logo: `${d}/img/payment_alipay.png`,
|
|
910
910
|
url: "https://www.alipay.com/"
|
|
911
911
|
},
|
|
912
912
|
"WeChat Pay": {
|
|
913
|
-
logo: `${
|
|
913
|
+
logo: `${d}/img/payment_wechat_pay.png`,
|
|
914
914
|
url: "https://pay.weixin.qq.com/"
|
|
915
915
|
},
|
|
916
916
|
PayPal: {
|
|
917
|
-
logo: `${
|
|
917
|
+
logo: `${d}/img/payment_paypal.png`,
|
|
918
918
|
url: "https://www.paypal.com/"
|
|
919
919
|
},
|
|
920
920
|
Stripe: {
|
|
921
|
-
logo: `${
|
|
921
|
+
logo: `${d}/img/social_stripe.png`,
|
|
922
922
|
url: "https://stripe.com/"
|
|
923
923
|
},
|
|
924
924
|
GC: {
|
|
925
|
-
logo: `${
|
|
925
|
+
logo: `${d}/img/payment_gc.png`,
|
|
926
926
|
url: "https://gc.org"
|
|
927
927
|
}
|
|
928
928
|
},
|
|
929
929
|
Captcha: {
|
|
930
930
|
Default: {
|
|
931
|
-
logo: `${
|
|
931
|
+
logo: `${d}/img/captcha_default.png`,
|
|
932
932
|
url: "https://pkg.go.dev/github.com/dchest/captcha"
|
|
933
933
|
},
|
|
934
934
|
reCAPTCHA: {
|
|
935
|
-
logo: `${
|
|
935
|
+
logo: `${d}/img/social_recaptcha.png`,
|
|
936
936
|
url: "https://www.google.com/recaptcha"
|
|
937
937
|
},
|
|
938
938
|
hCaptcha: {
|
|
939
|
-
logo: `${
|
|
939
|
+
logo: `${d}/img/social_hcaptcha.png`,
|
|
940
940
|
url: "https://www.hcaptcha.com"
|
|
941
941
|
},
|
|
942
942
|
"Aliyun Captcha": {
|
|
943
|
-
logo: `${
|
|
943
|
+
logo: `${d}/img/social_aliyun.png`,
|
|
944
944
|
url: "https://help.aliyun.com/product/28308.html"
|
|
945
945
|
},
|
|
946
946
|
GEETEST: {
|
|
947
|
-
logo: `${
|
|
947
|
+
logo: `${d}/img/social_geetest.png`,
|
|
948
948
|
url: "https://www.geetest.com"
|
|
949
949
|
},
|
|
950
950
|
"Cloudflare Turnstile": {
|
|
951
|
-
logo: `${
|
|
951
|
+
logo: `${d}/img/social_cloudflare.png`,
|
|
952
952
|
url: "https://www.cloudflare.com/products/turnstile/"
|
|
953
953
|
}
|
|
954
954
|
},
|
|
955
955
|
AI: {
|
|
956
956
|
"OpenAI API - GPT": {
|
|
957
|
-
logo: `${
|
|
957
|
+
logo: `${d}/img/social_openai.svg`,
|
|
958
958
|
url: "https://platform.openai.com"
|
|
959
959
|
}
|
|
960
960
|
},
|
|
961
961
|
Web3: {
|
|
962
962
|
MetaMask: {
|
|
963
|
-
logo: `${
|
|
963
|
+
logo: `${d}/img/social_metamask.svg`,
|
|
964
964
|
url: "https://metamask.io/"
|
|
965
965
|
},
|
|
966
966
|
Web3Onboard: {
|
|
967
|
-
logo: `${
|
|
967
|
+
logo: `${d}/img/social_web3onboard.svg`,
|
|
968
968
|
url: "https://onboard.blocknative.com/"
|
|
969
969
|
}
|
|
970
970
|
},
|
|
971
971
|
Notification: {
|
|
972
972
|
Telegram: {
|
|
973
|
-
logo: `${
|
|
973
|
+
logo: `${d}/img/social_telegram.png`,
|
|
974
974
|
url: "https://telegram.org/"
|
|
975
975
|
},
|
|
976
976
|
"Custom HTTP": {
|
|
977
|
-
logo: `${
|
|
977
|
+
logo: `${d}/img/email_default.png`,
|
|
978
978
|
url: "https://casdoor.org/docs/provider/notification/overview"
|
|
979
979
|
},
|
|
980
980
|
DingTalk: {
|
|
981
|
-
logo: `${
|
|
981
|
+
logo: `${d}/img/social_dingtalk.png`,
|
|
982
982
|
url: "https://www.dingtalk.com/"
|
|
983
983
|
},
|
|
984
984
|
Lark: {
|
|
985
|
-
logo: `${
|
|
985
|
+
logo: `${d}/img/social_lark.png`,
|
|
986
986
|
url: "https://www.larksuite.com/"
|
|
987
987
|
},
|
|
988
988
|
"Microsoft Teams": {
|
|
989
|
-
logo: `${
|
|
989
|
+
logo: `${d}/img/social_teams.png`,
|
|
990
990
|
url: "https://www.microsoft.com/microsoft-teams"
|
|
991
991
|
},
|
|
992
992
|
Bark: {
|
|
993
|
-
logo: `${
|
|
993
|
+
logo: `${d}/img/social_bark.png`,
|
|
994
994
|
url: "https://apps.apple.com/us/app/bark-customed-notifications/id1403753865"
|
|
995
995
|
},
|
|
996
996
|
Pushover: {
|
|
997
|
-
logo: `${
|
|
997
|
+
logo: `${d}/img/social_pushover.png`,
|
|
998
998
|
url: "https://pushover.net/"
|
|
999
999
|
},
|
|
1000
1000
|
Pushbullet: {
|
|
1001
|
-
logo: `${
|
|
1001
|
+
logo: `${d}/img/social_pushbullet.png`,
|
|
1002
1002
|
url: "https://www.pushbullet.com/"
|
|
1003
1003
|
},
|
|
1004
1004
|
Slack: {
|
|
1005
|
-
logo: `${
|
|
1005
|
+
logo: `${d}/img/social_slack.png`,
|
|
1006
1006
|
url: "https://slack.com/"
|
|
1007
1007
|
},
|
|
1008
1008
|
Webpush: {
|
|
1009
|
-
logo: `${
|
|
1009
|
+
logo: `${d}/img/email_default.png`,
|
|
1010
1010
|
url: "https://developer.mozilla.org/en-US/docs/Web/API/Push_API"
|
|
1011
1011
|
},
|
|
1012
1012
|
Discord: {
|
|
1013
|
-
logo: `${
|
|
1013
|
+
logo: `${d}/img/social_discord.png`,
|
|
1014
1014
|
url: "https://discord.com/"
|
|
1015
1015
|
},
|
|
1016
1016
|
"Google Chat": {
|
|
1017
|
-
logo: `${
|
|
1017
|
+
logo: `${d}/img/social_google_chat.png`,
|
|
1018
1018
|
url: "https://workspace.google.com/intl/en/products/chat/"
|
|
1019
1019
|
},
|
|
1020
1020
|
Line: {
|
|
1021
|
-
logo: `${
|
|
1021
|
+
logo: `${d}/img/social_line.png`,
|
|
1022
1022
|
url: "https://line.me/"
|
|
1023
1023
|
},
|
|
1024
1024
|
Matrix: {
|
|
1025
|
-
logo: `${
|
|
1025
|
+
logo: `${d}/img/social_matrix.png`,
|
|
1026
1026
|
url: "https://www.matrix.org/"
|
|
1027
1027
|
},
|
|
1028
1028
|
Twitter: {
|
|
1029
|
-
logo: `${
|
|
1029
|
+
logo: `${d}/img/social_twitter.png`,
|
|
1030
1030
|
url: "https://twitter.com/"
|
|
1031
1031
|
},
|
|
1032
1032
|
Reddit: {
|
|
1033
|
-
logo: `${
|
|
1033
|
+
logo: `${d}/img/social_reddit.png`,
|
|
1034
1034
|
url: "https://www.reddit.com/"
|
|
1035
1035
|
},
|
|
1036
1036
|
"Rocket Chat": {
|
|
1037
|
-
logo: `${
|
|
1037
|
+
logo: `${d}/img/social_rocket_chat.png`,
|
|
1038
1038
|
url: "https://rocket.chat/"
|
|
1039
1039
|
},
|
|
1040
1040
|
Viber: {
|
|
1041
|
-
logo: `${
|
|
1041
|
+
logo: `${d}/img/social_viber.png`,
|
|
1042
1042
|
url: "https://www.viber.com/"
|
|
1043
1043
|
}
|
|
1044
1044
|
}
|
|
1045
1045
|
};
|
|
1046
1046
|
function Un(t = "") {
|
|
1047
|
-
return fetch(`${
|
|
1047
|
+
return fetch(`${I.casdoor}/api/get-account${t}`, {
|
|
1048
1048
|
method: "GET",
|
|
1049
1049
|
credentials: "include",
|
|
1050
1050
|
headers: {
|
|
1051
|
-
"Accept-Language":
|
|
1051
|
+
"Accept-Language": te()
|
|
1052
1052
|
}
|
|
1053
1053
|
}).then((e) => e.json());
|
|
1054
1054
|
}
|
|
1055
1055
|
function Wn(t) {
|
|
1056
|
-
let e = `${
|
|
1057
|
-
return
|
|
1056
|
+
let e = `${I.casdoor}/api/signup`;
|
|
1057
|
+
return I.springmicro && (e = `${I.springmicro}/api/accounts/users/register`), fetch(e, {
|
|
1058
1058
|
method: "POST",
|
|
1059
1059
|
credentials: "include",
|
|
1060
1060
|
body: JSON.stringify(t),
|
|
1061
1061
|
headers: {
|
|
1062
|
-
"Accept-Language":
|
|
1062
|
+
"Accept-Language": te(),
|
|
1063
1063
|
"Content-Type": "application/json"
|
|
1064
1064
|
}
|
|
1065
1065
|
}).then((o) => o.json());
|
|
@@ -1072,57 +1072,57 @@ function Vn(t) {
|
|
|
1072
1072
|
}
|
|
1073
1073
|
function It(t) {
|
|
1074
1074
|
const e = (t == null ? void 0 : t.type) === "cas" ? Hn(t) : Vn(t);
|
|
1075
|
-
return fetch(`${
|
|
1075
|
+
return fetch(`${I.casdoor}/api/get-app-login${e}`, {
|
|
1076
1076
|
method: "GET",
|
|
1077
1077
|
credentials: "include",
|
|
1078
1078
|
headers: {
|
|
1079
|
-
"Accept-Language":
|
|
1079
|
+
"Accept-Language": te()
|
|
1080
1080
|
}
|
|
1081
1081
|
}).then((o) => o.json());
|
|
1082
1082
|
}
|
|
1083
1083
|
function Gn(t, e) {
|
|
1084
1084
|
return fetch(
|
|
1085
|
-
`${
|
|
1085
|
+
`${I.casdoor}/api/get-saml-login?id=${t}&relayState=${e}`,
|
|
1086
1086
|
{
|
|
1087
1087
|
method: "GET",
|
|
1088
1088
|
credentials: "include",
|
|
1089
1089
|
headers: {
|
|
1090
|
-
"Accept-Language":
|
|
1090
|
+
"Accept-Language": te()
|
|
1091
1091
|
}
|
|
1092
1092
|
}
|
|
1093
1093
|
).then((o) => o.json());
|
|
1094
1094
|
}
|
|
1095
1095
|
function qn(t) {
|
|
1096
|
-
return fetch(`${
|
|
1096
|
+
return fetch(`${I.casdoor}/api/get-webhook-event?ticket=${t}`, {
|
|
1097
1097
|
method: "GET",
|
|
1098
1098
|
credentials: "include",
|
|
1099
1099
|
headers: {
|
|
1100
|
-
"Accept-Language":
|
|
1100
|
+
"Accept-Language": te()
|
|
1101
1101
|
}
|
|
1102
1102
|
}).then((e) => e.json());
|
|
1103
1103
|
}
|
|
1104
1104
|
function Yn(t) {
|
|
1105
|
-
return fetch(`${
|
|
1105
|
+
return fetch(`${I.casdoor}/api/get-qrcode?id=${t}`, {
|
|
1106
1106
|
method: "GET",
|
|
1107
1107
|
credentials: "include",
|
|
1108
1108
|
headers: {
|
|
1109
|
-
"Accept-Language":
|
|
1109
|
+
"Accept-Language": te()
|
|
1110
1110
|
}
|
|
1111
1111
|
}).then((e) => e.json());
|
|
1112
1112
|
}
|
|
1113
|
-
function Xe(t, e
|
|
1114
|
-
return
|
|
1115
|
-
`${
|
|
1113
|
+
function Xe(t, e) {
|
|
1114
|
+
return fetch(
|
|
1115
|
+
`${I.casdoor}/api/get-application?id=${t}/${encodeURIComponent(e)}`,
|
|
1116
1116
|
{
|
|
1117
1117
|
method: "GET",
|
|
1118
|
+
credentials: "include",
|
|
1118
1119
|
headers: {
|
|
1119
|
-
Authorization: "Basic " + btoa(`${o}:${r}`),
|
|
1120
1120
|
"Content-Type": "application/json"
|
|
1121
1121
|
}
|
|
1122
1122
|
}
|
|
1123
|
-
).then((
|
|
1123
|
+
).then((o) => o.json());
|
|
1124
1124
|
}
|
|
1125
|
-
const
|
|
1125
|
+
const ce = {
|
|
1126
1126
|
Google: {
|
|
1127
1127
|
scope: "profile+email",
|
|
1128
1128
|
endpoint: "https://accounts.google.com/signin/oauth"
|
|
@@ -1438,57 +1438,57 @@ const se = {
|
|
|
1438
1438
|
function Kn(t, e, o, r) {
|
|
1439
1439
|
if (t === null || e === null)
|
|
1440
1440
|
return "";
|
|
1441
|
-
let
|
|
1442
|
-
const
|
|
1441
|
+
let a = ce[e.type].endpoint, l = `${window.location.origin}/callback`;
|
|
1442
|
+
const u = ce[e.type].scope, g = e.type === "WeChat" && navigator.userAgent.includes("MicroMessenger") || e.type === "Twitter", c = Jn(
|
|
1443
1443
|
t.name,
|
|
1444
1444
|
e.name,
|
|
1445
1445
|
o,
|
|
1446
|
-
|
|
1447
|
-
),
|
|
1448
|
-
if (e.type === "AzureAD" ? e.domain !== "" && (
|
|
1449
|
-
return `${
|
|
1446
|
+
g
|
|
1447
|
+
), f = "P3S-a7dr8bgM4bF6vOyiKkKETDl16rcAzao9F8UIL1Y";
|
|
1448
|
+
if (e.type === "AzureAD" ? e.domain !== "" && (a = a.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")
|
|
1449
|
+
return `${a}?client_id=${e.clientId}&redirect_uri=${l}&scope=${u}&response_type=code&state=${c}`;
|
|
1450
1450
|
if (e.type === "AzureADB2C")
|
|
1451
1451
|
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(
|
|
1452
1452
|
l
|
|
1453
|
-
)}&scope=${
|
|
1453
|
+
)}&scope=${u}&response_type=code&state=${c}&prompt=login`;
|
|
1454
1454
|
if (e.type === "DingTalk")
|
|
1455
|
-
return `${
|
|
1455
|
+
return `${a}?client_id=${e.clientId}&redirect_uri=${l}&scope=${u}&response_type=code&prompt=consent&state=${c}`;
|
|
1456
1456
|
if (e.type === "WeChat")
|
|
1457
|
-
return navigator.userAgent.includes("MicroMessenger") ? `${
|
|
1457
|
+
return navigator.userAgent.includes("MicroMessenger") ? `${ce[e.type].mpEndpoint}?appid=${e.clientId2}&redirect_uri=${l}&state=${c}&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=${c}&code=${"wechat_oa:" + r}` : `${a}?appid=${e.clientId}&redirect_uri=${l}&scope=${u}&response_type=code&state=${c}#wechat_redirect`;
|
|
1458
1458
|
if (e.type === "WeCom")
|
|
1459
|
-
return e.subType === "Internal" ? e.method === "Silent" ? (
|
|
1459
|
+
return e.subType === "Internal" ? e.method === "Silent" ? (a = ce[e.type].silentEndpoint, `${a}?appid=${e.clientId}&redirect_uri=${l}&state=${c}&scope=${u}&response_type=code#wechat_redirect`) : e.method === "Normal" ? (a = ce[e.type].internalEndpoint, `${a}?appid=${e.clientId}&agentid=${e.appId}&redirect_uri=${l}&state=${c}&usertype=member`) : `https://error:not-supported-provider-method:${e.method}` : e.subType === "Third-party" ? e.method === "Silent" ? (a = ce[e.type].silentEndpoint, `${a}?appid=${e.clientId}&redirect_uri=${l}&state=${c}&scope=${u}&response_type=code#wechat_redirect`) : e.method === "Normal" ? `${a}?appid=${e.clientId}&redirect_uri=${l}&state=${c}&usertype=member` : `https://error:not-supported-provider-method:${e.method}` : `https://error:not-supported-provider-sub-type:${e.subType}`;
|
|
1460
1460
|
if (e.type === "Lark")
|
|
1461
|
-
return `${
|
|
1461
|
+
return `${a}?app_id=${e.clientId}&redirect_uri=${l}&state=${c}`;
|
|
1462
1462
|
if (e.type === "ADFS")
|
|
1463
1463
|
return `${e.domain}/adfs/oauth2/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&nonce=casdoor&scope=openid`;
|
|
1464
1464
|
if (e.type === "Baidu")
|
|
1465
|
-
return `${
|
|
1465
|
+
return `${a}?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${u}&display=popup`;
|
|
1466
1466
|
if (e.type === "Alipay")
|
|
1467
|
-
return `${
|
|
1467
|
+
return `${a}?app_id=${e.clientId}&scope=auth_user&redirect_uri=${l}&state=${c}&response_type=code&scope=${u}&display=popup`;
|
|
1468
1468
|
if (e.type === "Casdoor")
|
|
1469
|
-
return `${e.domain}/login/oauth/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${
|
|
1469
|
+
return `${e.domain}/login/oauth/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${u}`;
|
|
1470
1470
|
if (e.type === "Infoflow")
|
|
1471
|
-
return `${
|
|
1471
|
+
return `${a}?appid=${e.clientId}&redirect_uri=${l}?state=${c}`;
|
|
1472
1472
|
if (e.type === "Apple")
|
|
1473
|
-
return `${
|
|
1473
|
+
return `${a}?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code%20id_token&scope=${u}&response_mode=form_post`;
|
|
1474
1474
|
if (e.type === "Steam")
|
|
1475
|
-
return `${
|
|
1475
|
+
return `${a}?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=${c}`;
|
|
1476
1476
|
if (e.type === "Okta")
|
|
1477
|
-
return `${e.domain}/v1/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${
|
|
1477
|
+
return `${e.domain}/v1/authorize?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${u}`;
|
|
1478
1478
|
if (e.type === "Douyin" || e.type === "TikTok")
|
|
1479
|
-
return `${
|
|
1479
|
+
return `${a}?client_key=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${u}`;
|
|
1480
1480
|
if (e.type === "Custom")
|
|
1481
1481
|
return `${e.customAuthUrl}?client_id=${e.clientId}&redirect_uri=${l}&scope=${e.scopes}&response_type=code&state=${c}`;
|
|
1482
1482
|
if (e.type === "Bilibili")
|
|
1483
|
-
return `${
|
|
1483
|
+
return `${a}#/?client_id=${e.clientId}&return_url=${l}&state=${c}&response_type=code`;
|
|
1484
1484
|
if (e.type === "Deezer")
|
|
1485
|
-
return `${
|
|
1485
|
+
return `${a}?app_id=${e.clientId}&redirect_uri=${l}&perms=${u}`;
|
|
1486
1486
|
if (e.type === "Lastfm")
|
|
1487
|
-
return `${
|
|
1487
|
+
return `${a}?api_key=${e.clientId}&cb=${l}`;
|
|
1488
1488
|
if (e.type === "Shopify")
|
|
1489
|
-
return `${
|
|
1489
|
+
return `${a}?client_id=${e.clientId}&redirect_uri=${l}&scope=${u}&state=${c}&grant_options[]=per-user`;
|
|
1490
1490
|
if (e.type === "Twitter" || e.type === "Fitbit")
|
|
1491
|
-
return `${
|
|
1491
|
+
return `${a}?client_id=${e.clientId}&redirect_uri=${l}&state=${c}&response_type=code&scope=${u}&code_challenge=${f}&code_challenge_method=S256`;
|
|
1492
1492
|
if (e.type === "MetaMask")
|
|
1493
1493
|
return `${l}?state=${c}`;
|
|
1494
1494
|
if (e.type === "Web3Onboard")
|
|
@@ -1504,44 +1504,44 @@ function He(t) {
|
|
|
1504
1504
|
let r = o.split("&")[0];
|
|
1505
1505
|
return r ? (r = decodeURIComponent(r), r) : "";
|
|
1506
1506
|
}
|
|
1507
|
-
function
|
|
1507
|
+
function Ft(t) {
|
|
1508
1508
|
const e = new URLSearchParams(window.location.search), o = K(e.get("client_id")), r = K(e.get("response_type"));
|
|
1509
|
-
let
|
|
1510
|
-
|
|
1509
|
+
let a = He("redirect_uri");
|
|
1510
|
+
a === "" && (a = K(e.get("redirect_uri")));
|
|
1511
1511
|
let l = K(e.get("scope"));
|
|
1512
|
-
|
|
1513
|
-
let
|
|
1514
|
-
|
|
1515
|
-
const
|
|
1512
|
+
a.includes("#") && l === "" && (l = He("scope"));
|
|
1513
|
+
let u = K(e.get("state"));
|
|
1514
|
+
u.startsWith("/auth/oauth2/login.php?wantsurl=") && (u = encodeURIComponent(u)), a.includes("#") && u === "" && (u = He("state"));
|
|
1515
|
+
const g = K(e.get("nonce")), c = K(e.get("code_challenge_method")), f = K(e.get("code_challenge")), h = K(e.get("SAMLRequest")), $ = K(e.get("RelayState")), w = K(e.get("noRedirect"));
|
|
1516
1516
|
return o === "" && h === "" ? null : {
|
|
1517
1517
|
clientId: o,
|
|
1518
1518
|
responseType: r,
|
|
1519
|
-
redirectUri:
|
|
1519
|
+
redirectUri: a,
|
|
1520
1520
|
scope: l,
|
|
1521
|
-
state:
|
|
1522
|
-
nonce:
|
|
1521
|
+
state: u,
|
|
1522
|
+
nonce: g,
|
|
1523
1523
|
challengeMethod: c,
|
|
1524
|
-
codeChallenge:
|
|
1524
|
+
codeChallenge: f,
|
|
1525
1525
|
samlRequest: h,
|
|
1526
|
-
relayState:
|
|
1526
|
+
relayState: $,
|
|
1527
1527
|
noRedirect: w,
|
|
1528
1528
|
type: "code"
|
|
1529
1529
|
};
|
|
1530
1530
|
}
|
|
1531
1531
|
function Jn(t, e, o, r) {
|
|
1532
|
-
let
|
|
1533
|
-
if (
|
|
1532
|
+
let a = window.location.search;
|
|
1533
|
+
if (a = `${a}&application=${encodeURIComponent(
|
|
1534
1534
|
t
|
|
1535
|
-
)}&provider=${encodeURIComponent(e)}&method=${o}`, o === "link" && (
|
|
1535
|
+
)}&provider=${encodeURIComponent(e)}&method=${o}`, o === "link" && (a = `${a}&from=${window.location.pathname}`), r) {
|
|
1536
1536
|
const l = e;
|
|
1537
|
-
return sessionStorage.setItem(l,
|
|
1537
|
+
return sessionStorage.setItem(l, a), l;
|
|
1538
1538
|
} else
|
|
1539
|
-
return btoa(
|
|
1539
|
+
return btoa(a);
|
|
1540
1540
|
}
|
|
1541
1541
|
function Qn(t, e, o, r) {
|
|
1542
|
-
qn(o).then((
|
|
1543
|
-
if (
|
|
1544
|
-
const l =
|
|
1542
|
+
qn(o).then((a) => {
|
|
1543
|
+
if (a.data === "SCAN" || a.data === "subscribe") {
|
|
1544
|
+
const l = a == null ? void 0 : a.data2;
|
|
1545
1545
|
Ln(
|
|
1546
1546
|
Kn(t, e, r ?? "signup", l)
|
|
1547
1547
|
);
|
|
@@ -1549,33 +1549,33 @@ function Qn(t, e, o, r) {
|
|
|
1549
1549
|
});
|
|
1550
1550
|
}
|
|
1551
1551
|
async function Zn(t, e, o) {
|
|
1552
|
-
document.addEventListener("click", function(
|
|
1552
|
+
document.addEventListener("click", function(a) {
|
|
1553
1553
|
const l = document.getElementById("WechatOfficialAccountModal");
|
|
1554
|
-
l &&
|
|
1554
|
+
l && a.target === l && l.close();
|
|
1555
1555
|
});
|
|
1556
|
-
function r(
|
|
1557
|
-
function
|
|
1556
|
+
function r(a, l) {
|
|
1557
|
+
function u() {
|
|
1558
1558
|
const h = document.getElementById("WechatOfficialAccountModal");
|
|
1559
1559
|
h && h.showModal();
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1561
|
+
function g() {
|
|
1562
1562
|
window.clearInterval(l);
|
|
1563
1563
|
const h = document.getElementById("WechatOfficialAccountModal");
|
|
1564
1564
|
h && h.close();
|
|
1565
1565
|
}
|
|
1566
|
-
window.closeDialog =
|
|
1566
|
+
window.closeDialog = g;
|
|
1567
1567
|
const c = `
|
|
1568
1568
|
<div style="margin-right: 34px;">
|
|
1569
|
-
<img src="data:image/png;base64,${
|
|
1569
|
+
<img src="data:image/png;base64,${a.data}" alt="Wechat QR code" style="width: 100%;" />
|
|
1570
1570
|
</div>
|
|
1571
1571
|
<button onclick="window.closeDialog()">Close</button>
|
|
1572
|
-
`,
|
|
1573
|
-
|
|
1572
|
+
`, f = document.createElement("dialog");
|
|
1573
|
+
f.innerHTML = c, f.id = "WechatOfficialAccountModal", document.body.appendChild(f), u();
|
|
1574
1574
|
}
|
|
1575
1575
|
Yn(`${e.owner}/${e.name}`).then(
|
|
1576
|
-
async (
|
|
1577
|
-
if (
|
|
1578
|
-
|
|
1576
|
+
async (a) => {
|
|
1577
|
+
if (a.status !== "ok") {
|
|
1578
|
+
G("error", a == null ? void 0 : a.msg);
|
|
1579
1579
|
return;
|
|
1580
1580
|
}
|
|
1581
1581
|
const l = setInterval(
|
|
@@ -1583,49 +1583,48 @@ async function Zn(t, e, o) {
|
|
|
1583
1583
|
1e3,
|
|
1584
1584
|
t,
|
|
1585
1585
|
e,
|
|
1586
|
-
|
|
1586
|
+
a.data2,
|
|
1587
1587
|
o
|
|
1588
1588
|
);
|
|
1589
|
-
r(
|
|
1589
|
+
r(a, l);
|
|
1590
1590
|
}
|
|
1591
1591
|
);
|
|
1592
1592
|
}
|
|
1593
|
-
function
|
|
1593
|
+
function Nt(t, e) {
|
|
1594
1594
|
return fetch(
|
|
1595
|
-
`${
|
|
1595
|
+
`${I.casdoor}/api/get-invitation-info?code=${t}&applicationId=${encodeURIComponent(
|
|
1596
1596
|
e
|
|
1597
1597
|
)}`,
|
|
1598
1598
|
{
|
|
1599
1599
|
method: "GET",
|
|
1600
1600
|
credentials: "include",
|
|
1601
1601
|
headers: {
|
|
1602
|
-
"Accept-Language":
|
|
1602
|
+
"Accept-Language": te()
|
|
1603
1603
|
}
|
|
1604
1604
|
}
|
|
1605
1605
|
).then((o) => o.json());
|
|
1606
1606
|
}
|
|
1607
|
-
function Dt(t, e, o, r,
|
|
1608
|
-
const
|
|
1609
|
-
return
|
|
1607
|
+
function Dt(t, e, o, r, a = "", l, u, g, c = "") {
|
|
1608
|
+
const f = new FormData();
|
|
1609
|
+
return f.append("captchaType", t), f.append("captchaToken", e), f.append("clientSecret", o), f.append("method", r), f.append("countryCode", a), f.append("dest", l), f.append("type", u), f.append("applicationId", "admin/" + g), f.append("checkUser", c), console.log(Object.fromEntries(f.entries())), fetch(`${I.casdoor}/api/send-verification-code`, {
|
|
1610
1610
|
method: "POST",
|
|
1611
|
-
|
|
1612
|
-
body:
|
|
1611
|
+
credentials: "include",
|
|
1612
|
+
body: f,
|
|
1613
1613
|
headers: {
|
|
1614
|
-
Authorization: "Basic " + btoa(`${g}:${h}`),
|
|
1615
1614
|
"Content-Type": "application/json",
|
|
1616
|
-
"Accept-Language":
|
|
1615
|
+
"Accept-Language": te()
|
|
1617
1616
|
}
|
|
1618
|
-
}).then((
|
|
1617
|
+
}).then((h) => h.json()).then((h) => h.status === "ok" ? (G("success", "Verification code sent"), !0) : (G("error", h.msg), !1));
|
|
1619
1618
|
}
|
|
1620
1619
|
function Ut(t, e, o) {
|
|
1621
1620
|
return fetch(
|
|
1622
|
-
`${
|
|
1621
|
+
`${I.casdoor}/api/get-captcha?applicationId=${t}/${encodeURIComponent(
|
|
1623
1622
|
e
|
|
1624
1623
|
)}&isCurrentProvider=${o}`,
|
|
1625
1624
|
{
|
|
1626
1625
|
method: "GET",
|
|
1627
1626
|
headers: {
|
|
1628
|
-
"Accept-Language":
|
|
1627
|
+
"Accept-Language": te()
|
|
1629
1628
|
}
|
|
1630
1629
|
}
|
|
1631
1630
|
).then((r) => r.json()).then((r) => r.data);
|
|
@@ -1635,66 +1634,66 @@ const Xn = (t) => {
|
|
|
1635
1634
|
captchaType: e,
|
|
1636
1635
|
subType: o,
|
|
1637
1636
|
siteKey: r,
|
|
1638
|
-
clientSecret:
|
|
1637
|
+
clientSecret: a,
|
|
1639
1638
|
clientId2: l,
|
|
1640
|
-
clientSecret2:
|
|
1641
|
-
onChange:
|
|
1642
|
-
} = t, c = (
|
|
1639
|
+
clientSecret2: u,
|
|
1640
|
+
onChange: g
|
|
1641
|
+
} = t, c = (f) => {
|
|
1643
1642
|
const h = document.createElement("script");
|
|
1644
|
-
h.async = !1, h.src =
|
|
1643
|
+
h.async = !1, h.src = f, document.getElementsByTagName("body")[0].appendChild(h);
|
|
1645
1644
|
};
|
|
1646
|
-
return
|
|
1645
|
+
return Rt(() => {
|
|
1647
1646
|
switch (e) {
|
|
1648
1647
|
case "reCAPTCHA": {
|
|
1649
|
-
const
|
|
1648
|
+
const f = setInterval(() => {
|
|
1650
1649
|
window.grecaptcha || c("https://recaptcha.net/recaptcha/api.js"), window.grecaptcha && window.grecaptcha.render && (window.grecaptcha.render("captcha", {
|
|
1651
1650
|
sitekey: r,
|
|
1652
|
-
callback:
|
|
1653
|
-
}), clearInterval(
|
|
1651
|
+
callback: g
|
|
1652
|
+
}), clearInterval(f));
|
|
1654
1653
|
}, 300);
|
|
1655
1654
|
break;
|
|
1656
1655
|
}
|
|
1657
1656
|
case "hCaptcha": {
|
|
1658
|
-
const
|
|
1657
|
+
const f = setInterval(() => {
|
|
1659
1658
|
window.hcaptcha || c("https://js.hcaptcha.com/1/api.js"), window.hcaptcha && window.hcaptcha.render && (window.hcaptcha.render("captcha", {
|
|
1660
1659
|
sitekey: r,
|
|
1661
|
-
callback:
|
|
1662
|
-
}), clearInterval(
|
|
1660
|
+
callback: g
|
|
1661
|
+
}), clearInterval(f));
|
|
1663
1662
|
}, 300);
|
|
1664
1663
|
break;
|
|
1665
1664
|
}
|
|
1666
1665
|
case "Aliyun Captcha": {
|
|
1667
|
-
const
|
|
1668
|
-
window.AWSC || c("https://g.alicdn.com/AWSC/AWSC/awsc.js"), window.AWSC && (
|
|
1669
|
-
|
|
1670
|
-
appkey:
|
|
1666
|
+
const f = setInterval(() => {
|
|
1667
|
+
window.AWSC || c("https://g.alicdn.com/AWSC/AWSC/awsc.js"), window.AWSC && (u && u !== "***" && window.AWSC.use(o, function(h, $) {
|
|
1668
|
+
$.init({
|
|
1669
|
+
appkey: u,
|
|
1671
1670
|
scene: l,
|
|
1672
1671
|
renderTo: "captcha",
|
|
1673
1672
|
success: function(w) {
|
|
1674
|
-
|
|
1675
|
-
`SessionId=${w.sessionId}&AccessKeyId=${r}&Scene=${l}&AppKey=${
|
|
1673
|
+
g(
|
|
1674
|
+
`SessionId=${w.sessionId}&AccessKeyId=${r}&Scene=${l}&AppKey=${u}&Token=${w.token}&Sig=${w.sig}&RemoteIp=192.168.0.1`
|
|
1676
1675
|
);
|
|
1677
1676
|
}
|
|
1678
1677
|
});
|
|
1679
|
-
}), clearInterval(
|
|
1678
|
+
}), clearInterval(f));
|
|
1680
1679
|
}, 300);
|
|
1681
1680
|
break;
|
|
1682
1681
|
}
|
|
1683
1682
|
case "GEETEST": {
|
|
1684
|
-
let
|
|
1683
|
+
let f = !1;
|
|
1685
1684
|
const h = setInterval(() => {
|
|
1686
|
-
if (window.initGeetest4 || c("https://static.geetest.com/v4/gt4.js"), window.initGeetest4 && r && !
|
|
1687
|
-
const
|
|
1685
|
+
if (window.initGeetest4 || c("https://static.geetest.com/v4/gt4.js"), window.initGeetest4 && r && !f) {
|
|
1686
|
+
const $ = String(r);
|
|
1688
1687
|
window.initGeetest4(
|
|
1689
1688
|
{
|
|
1690
|
-
captchaId:
|
|
1689
|
+
captchaId: $,
|
|
1691
1690
|
product: "float"
|
|
1692
1691
|
},
|
|
1693
1692
|
function(w) {
|
|
1694
|
-
|
|
1695
|
-
const
|
|
1696
|
-
|
|
1697
|
-
`lot_number=${
|
|
1693
|
+
f || (w.appendTo("#captcha"), f = !0), w.onSuccess(function() {
|
|
1694
|
+
const b = w.getValidate();
|
|
1695
|
+
g(
|
|
1696
|
+
`lot_number=${b.lot_number}&captcha_output=${b.captcha_output}&pass_token=${b.pass_token}&gen_time=${b.gen_time}&captcha_id=${r}`
|
|
1698
1697
|
);
|
|
1699
1698
|
});
|
|
1700
1699
|
}
|
|
@@ -1704,73 +1703,73 @@ const Xn = (t) => {
|
|
|
1704
1703
|
break;
|
|
1705
1704
|
}
|
|
1706
1705
|
case "Cloudflare Turnstile": {
|
|
1707
|
-
const
|
|
1706
|
+
const f = setInterval(() => {
|
|
1708
1707
|
window.turnstile || c("https://challenges.cloudflare.com/turnstile/v0/api.js"), window.turnstile && window.turnstile.render && (window.turnstile.render("#captcha", {
|
|
1709
1708
|
sitekey: r,
|
|
1710
|
-
callback:
|
|
1711
|
-
}), clearInterval(
|
|
1709
|
+
callback: g
|
|
1710
|
+
}), clearInterval(f));
|
|
1712
1711
|
}, 300);
|
|
1713
1712
|
break;
|
|
1714
1713
|
}
|
|
1715
1714
|
}
|
|
1716
|
-
}, [e, o, r,
|
|
1715
|
+
}, [e, o, r, a, l, u]), /* @__PURE__ */ i.jsx("div", { id: "captcha" });
|
|
1717
1716
|
}, eo = (t) => {
|
|
1718
|
-
const { t: e } = Te(), { owner: o, name: r, visible:
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
}, [
|
|
1717
|
+
const { t: e } = Te(), { owner: o, name: r, visible: a, onOk: l, onCancel: u, isCurrentProvider: g } = t, [c, f] = m.useState("none"), [h, $] = m.useState(""), [w, b] = m.useState(""), [L, F] = m.useState(""), [E, _] = m.useState(""), [k, q] = m.useState(""), [Y, U] = m.useState(!1), [ie, pe] = m.useState(""), [ne, R] = m.useState(""), ze = m.useRef(null);
|
|
1718
|
+
Rt(() => {
|
|
1719
|
+
a ? H() : (he(), U(!1));
|
|
1720
|
+
}, [a]);
|
|
1722
1721
|
const ge = () => {
|
|
1723
|
-
l == null || l(c,
|
|
1722
|
+
l == null || l(c, ne, w);
|
|
1724
1723
|
}, he = () => {
|
|
1725
|
-
|
|
1726
|
-
},
|
|
1727
|
-
Ut(o, r,
|
|
1728
|
-
|
|
1724
|
+
R(""), u == null || u();
|
|
1725
|
+
}, H = () => {
|
|
1726
|
+
Ut(o, r, g).then((M) => {
|
|
1727
|
+
M.type === "none" ? ge() : M.type === "Default" ? (U(!0), b(M.captchaId), pe(M.captchaImage), f("Default")) : (U(!0), f(M.type), $(M.clientId), b(M.clientSecret), F(M.subType), _(M.clientId2), q(M.clientSecret2));
|
|
1729
1728
|
});
|
|
1730
|
-
},
|
|
1731
|
-
/* @__PURE__ */
|
|
1729
|
+
}, Z = () => /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
1730
|
+
/* @__PURE__ */ i.jsx(
|
|
1732
1731
|
"div",
|
|
1733
1732
|
{
|
|
1734
1733
|
className: "bg-no-repeat mb-4 border border-current rounded w-[200px] h-[80px]",
|
|
1735
1734
|
style: {
|
|
1736
|
-
backgroundImage: `url('data:image/png;base64,${
|
|
1735
|
+
backgroundImage: `url('data:image/png;base64,${ie}')`
|
|
1737
1736
|
}
|
|
1738
1737
|
}
|
|
1739
1738
|
),
|
|
1740
|
-
/* @__PURE__ */
|
|
1739
|
+
/* @__PURE__ */ i.jsx(
|
|
1741
1740
|
"input",
|
|
1742
1741
|
{
|
|
1743
1742
|
className: "input input-bordered w-[200px]",
|
|
1744
1743
|
type: "text",
|
|
1745
1744
|
ref: ze,
|
|
1746
|
-
value:
|
|
1745
|
+
value: ne,
|
|
1747
1746
|
placeholder: e("general.captcha"),
|
|
1748
|
-
onKeyDown: (
|
|
1749
|
-
onChange: (
|
|
1747
|
+
onKeyDown: (M) => M.key === "Enter" ? ge() : null,
|
|
1748
|
+
onChange: (M) => R(M.target.value)
|
|
1750
1749
|
}
|
|
1751
1750
|
)
|
|
1752
|
-
] }),
|
|
1753
|
-
|
|
1754
|
-
}, ke = () => c === "Default" ?
|
|
1751
|
+
] }), re = (M) => {
|
|
1752
|
+
R(M);
|
|
1753
|
+
}, ke = () => c === "Default" ? Z() : /* @__PURE__ */ i.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ i.jsx(
|
|
1755
1754
|
Xn,
|
|
1756
1755
|
{
|
|
1757
1756
|
captchaType: c,
|
|
1758
|
-
subType:
|
|
1757
|
+
subType: L,
|
|
1759
1758
|
siteKey: h,
|
|
1760
1759
|
clientSecret: w,
|
|
1761
|
-
onChange:
|
|
1762
|
-
clientId2:
|
|
1763
|
-
clientSecret2:
|
|
1760
|
+
onChange: re,
|
|
1761
|
+
clientId2: E,
|
|
1762
|
+
clientSecret2: k
|
|
1764
1763
|
}
|
|
1765
1764
|
) }), Se = () => {
|
|
1766
|
-
let
|
|
1767
|
-
return c === "Default" ? /^\d{5}$/.test(
|
|
1768
|
-
/* @__PURE__ */
|
|
1769
|
-
/* @__PURE__ */
|
|
1765
|
+
let M = !1;
|
|
1766
|
+
return c === "Default" ? /^\d{5}$/.test(ne) || (M = !0) : ne === "" && (M = !0), [
|
|
1767
|
+
/* @__PURE__ */ i.jsx("button", { className: "btn", onClick: he, children: "Cancel" }, "closebtn"),
|
|
1768
|
+
/* @__PURE__ */ i.jsx(
|
|
1770
1769
|
"button",
|
|
1771
1770
|
{
|
|
1772
1771
|
className: "btn btn-primary",
|
|
1773
|
-
disabled:
|
|
1772
|
+
disabled: M,
|
|
1774
1773
|
onClick: ge,
|
|
1775
1774
|
children: "OK"
|
|
1776
1775
|
},
|
|
@@ -1778,11 +1777,11 @@ const Xn = (t) => {
|
|
|
1778
1777
|
)
|
|
1779
1778
|
];
|
|
1780
1779
|
};
|
|
1781
|
-
return /* @__PURE__ */
|
|
1782
|
-
/* @__PURE__ */
|
|
1783
|
-
/* @__PURE__ */
|
|
1784
|
-
/* @__PURE__ */
|
|
1785
|
-
/* @__PURE__ */
|
|
1780
|
+
return /* @__PURE__ */ i.jsx("dialog", { id: "captcha-modal", className: "modal", children: /* @__PURE__ */ i.jsxs("div", { className: "modal-box", children: [
|
|
1781
|
+
/* @__PURE__ */ i.jsx("div", { className: "mt-4 mb-8", children: ke() }),
|
|
1782
|
+
/* @__PURE__ */ i.jsxs("div", { className: "modal-action", children: [
|
|
1783
|
+
/* @__PURE__ */ i.jsx("form", { method: "dialog", className: "modal-backdrop", children: /* @__PURE__ */ i.jsx("button", { children: "Close" }) }),
|
|
1784
|
+
/* @__PURE__ */ i.jsx("form", { method: "dialog", className: "flex gap-3", children: Se() })
|
|
1786
1785
|
] })
|
|
1787
1786
|
] }) });
|
|
1788
1787
|
}, to = ({
|
|
@@ -1790,77 +1789,73 @@ const Xn = (t) => {
|
|
|
1790
1789
|
disabled: e,
|
|
1791
1790
|
textBefore: o,
|
|
1792
1791
|
onChange: r,
|
|
1793
|
-
onButtonClickArgs:
|
|
1792
|
+
onButtonClickArgs: a,
|
|
1794
1793
|
application: l,
|
|
1795
|
-
method:
|
|
1796
|
-
countryCode:
|
|
1797
|
-
CLIENT_ID: c,
|
|
1798
|
-
CLIENT_SECRET: g
|
|
1794
|
+
method: u,
|
|
1795
|
+
countryCode: g
|
|
1799
1796
|
}) => {
|
|
1800
|
-
const { t:
|
|
1801
|
-
let
|
|
1802
|
-
|
|
1803
|
-
const
|
|
1804
|
-
|
|
1797
|
+
const { t: c } = Te(), [f, h] = m.useState(!1), [$, w] = m.useState(0), [b, L] = m.useState(!1), F = m.useRef(null), E = (q = 60) => {
|
|
1798
|
+
let Y = q;
|
|
1799
|
+
w(Y);
|
|
1800
|
+
const U = () => {
|
|
1801
|
+
Y--, w(Y), Y !== 0 && setTimeout(U, 1e3);
|
|
1805
1802
|
};
|
|
1806
|
-
setTimeout(
|
|
1807
|
-
},
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
...
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
).then((ee) => {
|
|
1818
|
-
Z(!1), ee && v(60);
|
|
1803
|
+
setTimeout(U, 1e3);
|
|
1804
|
+
}, _ = (q, Y, U) => {
|
|
1805
|
+
h(!1), L(!0), Dt(
|
|
1806
|
+
q,
|
|
1807
|
+
Y,
|
|
1808
|
+
U,
|
|
1809
|
+
u,
|
|
1810
|
+
g,
|
|
1811
|
+
...a
|
|
1812
|
+
).then((ie) => {
|
|
1813
|
+
L(!1), ie && E(60);
|
|
1819
1814
|
});
|
|
1820
|
-
},
|
|
1821
|
-
|
|
1815
|
+
}, k = () => {
|
|
1816
|
+
h(!1);
|
|
1822
1817
|
};
|
|
1823
1818
|
return m.useEffect(() => {
|
|
1824
|
-
|
|
1819
|
+
F.current = document.getElementById("captcha-modal");
|
|
1825
1820
|
}, []), m.useEffect(() => {
|
|
1826
|
-
|
|
1827
|
-
}, [
|
|
1828
|
-
/* @__PURE__ */
|
|
1829
|
-
/* @__PURE__ */
|
|
1821
|
+
F.current && (f ? F.current.showModal() : F.current.close());
|
|
1822
|
+
}, [f]), /* @__PURE__ */ i.jsxs(m.Fragment, { children: [
|
|
1823
|
+
/* @__PURE__ */ i.jsxs("div", { className: "flex", children: [
|
|
1824
|
+
/* @__PURE__ */ i.jsx(
|
|
1830
1825
|
"input",
|
|
1831
1826
|
{
|
|
1832
1827
|
className: "input",
|
|
1833
1828
|
disabled: e,
|
|
1834
1829
|
value: t,
|
|
1835
1830
|
placeholder: "Enter your code",
|
|
1836
|
-
onChange: (
|
|
1831
|
+
onChange: (q) => r(q.target.value),
|
|
1837
1832
|
autoComplete: "one-time-code"
|
|
1838
1833
|
}
|
|
1839
1834
|
),
|
|
1840
|
-
/* @__PURE__ */
|
|
1835
|
+
/* @__PURE__ */ i.jsx(
|
|
1841
1836
|
"button",
|
|
1842
1837
|
{
|
|
1843
1838
|
className: "btn",
|
|
1844
|
-
disabled: e ||
|
|
1845
|
-
onClick: () =>
|
|
1846
|
-
children:
|
|
1839
|
+
disabled: e || $ > 0,
|
|
1840
|
+
onClick: () => h(!0),
|
|
1841
|
+
children: $ > 0 ? `${$} s` : c(b ? "code.sending" : "code.sendCode")
|
|
1847
1842
|
}
|
|
1848
1843
|
)
|
|
1849
1844
|
] }),
|
|
1850
|
-
/* @__PURE__ */
|
|
1845
|
+
/* @__PURE__ */ i.jsx(
|
|
1851
1846
|
eo,
|
|
1852
1847
|
{
|
|
1853
1848
|
owner: l.owner,
|
|
1854
1849
|
name: l.name,
|
|
1855
|
-
visible:
|
|
1856
|
-
onOk:
|
|
1857
|
-
onCancel:
|
|
1850
|
+
visible: f,
|
|
1851
|
+
onOk: _,
|
|
1852
|
+
onCancel: k,
|
|
1858
1853
|
isCurrentProvider: !1
|
|
1859
1854
|
}
|
|
1860
1855
|
)
|
|
1861
1856
|
] });
|
|
1862
1857
|
};
|
|
1863
|
-
var no = Object.create, $e = Object.defineProperty, oo = Object.defineProperties, ao = Object.getOwnPropertyDescriptor, io = Object.getOwnPropertyDescriptors, ro = Object.getOwnPropertyNames, xt = Object.getOwnPropertySymbols, lo = Object.getPrototypeOf, Wt = Object.prototype.hasOwnProperty, co = Object.prototype.propertyIsEnumerable, $t = (t, e, o) => e in t ? $e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o,
|
|
1858
|
+
var no = Object.create, $e = Object.defineProperty, oo = Object.defineProperties, ao = Object.getOwnPropertyDescriptor, io = Object.getOwnPropertyDescriptors, ro = Object.getOwnPropertyNames, xt = Object.getOwnPropertySymbols, lo = Object.getPrototypeOf, Wt = Object.prototype.hasOwnProperty, co = Object.prototype.propertyIsEnumerable, $t = (t, e, o) => e in t ? $e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, P = (t, e) => {
|
|
1864
1859
|
for (var o in e || (e = {}))
|
|
1865
1860
|
Wt.call(e, o) && $t(t, o, e[o]);
|
|
1866
1861
|
if (xt)
|
|
@@ -1872,10 +1867,10 @@ var no = Object.create, $e = Object.defineProperty, oo = Object.defineProperties
|
|
|
1872
1867
|
$e(t, o, { get: e[o], enumerable: !0 });
|
|
1873
1868
|
}, Vt = (t, e, o, r) => {
|
|
1874
1869
|
if (e && typeof e == "object" || typeof e == "function")
|
|
1875
|
-
for (let
|
|
1876
|
-
!Wt.call(t,
|
|
1870
|
+
for (let a of ro(e))
|
|
1871
|
+
!Wt.call(t, a) && a !== o && $e(t, a, { get: () => e[a], enumerable: !(r = ao(e, a)) || r.enumerable });
|
|
1877
1872
|
return t;
|
|
1878
|
-
},
|
|
1873
|
+
}, A = (t, e, o) => (o = t != null ? no(lo(t)) : {}, Vt(
|
|
1879
1874
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
1880
1875
|
// file that has been converted to a CommonJS file using a Babel-
|
|
1881
1876
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
@@ -1892,8 +1887,8 @@ so(Gt, {
|
|
|
1892
1887
|
GithubLoginButton: () => Eo,
|
|
1893
1888
|
GitlabLoginButton: () => xa,
|
|
1894
1889
|
GoogleLoginButton: () => So,
|
|
1895
|
-
InstagramLoginButton: () =>
|
|
1896
|
-
LinkedInLoginButton: () =>
|
|
1890
|
+
InstagramLoginButton: () => Ro,
|
|
1891
|
+
LinkedInLoginButton: () => Fo,
|
|
1897
1892
|
MetamaskLoginButton: () => wa,
|
|
1898
1893
|
MicrosoftLoginButton: () => Uo,
|
|
1899
1894
|
OktaLoginButton: () => oa,
|
|
@@ -1904,69 +1899,69 @@ so(Gt, {
|
|
|
1904
1899
|
XLoginButton: () => Sa,
|
|
1905
1900
|
YahooLoginButton: () => sa,
|
|
1906
1901
|
ZaloLoginButton: () => fa,
|
|
1907
|
-
createButton: () =>
|
|
1902
|
+
createButton: () => O
|
|
1908
1903
|
});
|
|
1909
|
-
var
|
|
1910
|
-
const [e, o] = (0,
|
|
1911
|
-
var
|
|
1912
|
-
|
|
1913
|
-
},
|
|
1914
|
-
var
|
|
1915
|
-
|
|
1916
|
-
},
|
|
1917
|
-
var
|
|
1918
|
-
return (
|
|
1904
|
+
var j = uo(Gt), Ve = A(m), oe = A(m), fo = A(m), po = ({ name: t, size: e, format: o }) => /* @__PURE__ */ fo.default.createElement("i", { className: o(t), style: { fontSize: e } }), go = po, kt = A(m), ho = ({ type: t, size: e, format: o, color: r = "#FFFFFF" }) => typeof t == "string" ? /* @__PURE__ */ kt.default.createElement(go, P({}, { format: o, name: t, size: e })) : /* @__PURE__ */ kt.default.createElement(t, { size: e, color: r }), mo = "#FFFFFF", yo = (t) => {
|
|
1905
|
+
const [e, o] = (0, oe.useState)(!1), [r, a] = (0, oe.useState)(!1), l = () => {
|
|
1906
|
+
var R;
|
|
1907
|
+
a(!0), (R = t.onMouseEnter) == null || R.call(t);
|
|
1908
|
+
}, u = () => {
|
|
1909
|
+
var R;
|
|
1910
|
+
a(!1), (R = t.onMouseLeave) == null || R.call(t);
|
|
1911
|
+
}, g = () => o(!0), c = () => o(!1), f = () => {
|
|
1912
|
+
var R;
|
|
1913
|
+
return (R = t.onClick) == null ? void 0 : R.call(t);
|
|
1919
1914
|
}, {
|
|
1920
1915
|
activeStyle: h,
|
|
1921
|
-
align:
|
|
1916
|
+
align: $ = "left",
|
|
1922
1917
|
text: w,
|
|
1923
|
-
children:
|
|
1924
|
-
className:
|
|
1925
|
-
icon:
|
|
1926
|
-
iconFormat:
|
|
1927
|
-
iconSize:
|
|
1928
|
-
iconColor:
|
|
1929
|
-
preventActiveStyles:
|
|
1930
|
-
size:
|
|
1931
|
-
style:
|
|
1932
|
-
disabled:
|
|
1933
|
-
type:
|
|
1934
|
-
} = t,
|
|
1935
|
-
activeStyle:
|
|
1936
|
-
customStyle:
|
|
1918
|
+
children: b = w,
|
|
1919
|
+
className: L,
|
|
1920
|
+
icon: F,
|
|
1921
|
+
iconFormat: E = (R) => R,
|
|
1922
|
+
iconSize: _ = "26px",
|
|
1923
|
+
iconColor: k = mo,
|
|
1924
|
+
preventActiveStyles: q = !1,
|
|
1925
|
+
size: Y = "50px",
|
|
1926
|
+
style: U,
|
|
1927
|
+
disabled: ie,
|
|
1928
|
+
type: pe = "button"
|
|
1929
|
+
} = t, ne = wo(Ge.button, {
|
|
1930
|
+
activeStyle: q ? U : h,
|
|
1931
|
+
customStyle: U,
|
|
1937
1932
|
active: r || e,
|
|
1938
|
-
size:
|
|
1933
|
+
size: Y
|
|
1939
1934
|
});
|
|
1940
|
-
return /* @__PURE__ */
|
|
1935
|
+
return /* @__PURE__ */ oe.default.createElement(
|
|
1941
1936
|
"button",
|
|
1942
|
-
|
|
1943
|
-
style:
|
|
1944
|
-
onClick:
|
|
1937
|
+
P({
|
|
1938
|
+
style: ne,
|
|
1939
|
+
onClick: f,
|
|
1945
1940
|
onMouseEnter: l,
|
|
1946
|
-
onMouseLeave:
|
|
1947
|
-
onFocus:
|
|
1941
|
+
onMouseLeave: u,
|
|
1942
|
+
onFocus: g,
|
|
1948
1943
|
onBlur: c
|
|
1949
|
-
}, { className:
|
|
1950
|
-
/* @__PURE__ */
|
|
1944
|
+
}, { className: L, disabled: ie, type: pe }),
|
|
1945
|
+
/* @__PURE__ */ oe.default.createElement("div", { style: Ge.flex }, !St(_) && !!F && /* @__PURE__ */ oe.default.createElement(
|
|
1951
1946
|
"div",
|
|
1952
1947
|
{
|
|
1953
1948
|
style: {
|
|
1954
1949
|
display: "flex",
|
|
1955
1950
|
justifyContent: "center",
|
|
1956
|
-
minWidth:
|
|
1951
|
+
minWidth: _
|
|
1957
1952
|
}
|
|
1958
1953
|
},
|
|
1959
|
-
/* @__PURE__ */
|
|
1960
|
-
), !St(
|
|
1954
|
+
/* @__PURE__ */ oe.default.createElement(ho, { type: F, size: _, format: E, color: k })
|
|
1955
|
+
), !St(_) && /* @__PURE__ */ oe.default.createElement("div", { style: Ge.divider }), /* @__PURE__ */ oe.default.createElement("div", { style: { textAlign: $, width: "100%" } }, b))
|
|
1961
1956
|
);
|
|
1962
1957
|
}, St = (t) => t === "0" || t === "0px" || t === 0, wo = (t, {
|
|
1963
1958
|
size: e,
|
|
1964
1959
|
customStyle: o,
|
|
1965
1960
|
active: r,
|
|
1966
|
-
activeStyle:
|
|
1967
|
-
}) =>
|
|
1961
|
+
activeStyle: a
|
|
1962
|
+
}) => P(P(Ht(P({}, t), {
|
|
1968
1963
|
height: e
|
|
1969
|
-
}), o), r &&
|
|
1964
|
+
}), o), r && a), Ge = {
|
|
1970
1965
|
button: {
|
|
1971
1966
|
display: "block",
|
|
1972
1967
|
border: 0,
|
|
@@ -1989,19 +1984,19 @@ var C = uo(Gt), Ve = L(m), ie = L(m), fo = L(m), po = ({ name: t, size: e, forma
|
|
|
1989
1984
|
display: "flex",
|
|
1990
1985
|
height: "100%"
|
|
1991
1986
|
}
|
|
1992
|
-
}, bo =
|
|
1993
|
-
const o = Ht(
|
|
1994
|
-
activeStyle:
|
|
1987
|
+
}, bo = A(m), O = (t) => (e) => {
|
|
1988
|
+
const o = Ht(P(P({
|
|
1989
|
+
activeStyle: P(P({}, t == null ? void 0 : t.activeStyle), e.activeStyle)
|
|
1995
1990
|
}, t), e), {
|
|
1996
|
-
style:
|
|
1991
|
+
style: P(P({}, t == null ? void 0 : t.style), e.style)
|
|
1997
1992
|
});
|
|
1998
|
-
return /* @__PURE__ */ bo.default.createElement(yo,
|
|
1993
|
+
return /* @__PURE__ */ bo.default.createElement(yo, P({}, o));
|
|
1999
1994
|
}, vo = {
|
|
2000
1995
|
activeStyle: { background: "#293e69" },
|
|
2001
1996
|
icon: $o,
|
|
2002
1997
|
style: { background: "#3b5998" },
|
|
2003
1998
|
text: "Log in with Facebook"
|
|
2004
|
-
}, xo =
|
|
1999
|
+
}, xo = O(vo);
|
|
2005
2000
|
function $o({ size: t, color: e }) {
|
|
2006
2001
|
return /* @__PURE__ */ Ve.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 90 90" }, /* @__PURE__ */ Ve.default.createElement("g", null, /* @__PURE__ */ Ve.default.createElement(
|
|
2007
2002
|
"path",
|
|
@@ -2011,14 +2006,14 @@ function $o({ size: t, color: e }) {
|
|
|
2011
2006
|
}
|
|
2012
2007
|
)));
|
|
2013
2008
|
}
|
|
2014
|
-
var
|
|
2009
|
+
var T = A(m), ko = {
|
|
2015
2010
|
activeStyle: { background: "#EFF0EE" },
|
|
2016
2011
|
icon: _o,
|
|
2017
2012
|
style: { background: "white", color: "black" },
|
|
2018
2013
|
text: "Log in with Google"
|
|
2019
|
-
}, So =
|
|
2014
|
+
}, So = O(ko);
|
|
2020
2015
|
function _o({ size: t }) {
|
|
2021
|
-
return /* @__PURE__ */
|
|
2016
|
+
return /* @__PURE__ */ T.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: t, height: t }, /* @__PURE__ */ T.default.createElement(
|
|
2022
2017
|
"linearGradient",
|
|
2023
2018
|
{
|
|
2024
2019
|
id: "95yY7w43Oj6n2vH63j6HJb",
|
|
@@ -2029,18 +2024,18 @@ function _o({ size: t }) {
|
|
|
2029
2024
|
gradientTransform: "matrix(1 0 0 -1 0 66)",
|
|
2030
2025
|
gradientUnits: "userSpaceOnUse"
|
|
2031
2026
|
},
|
|
2032
|
-
/* @__PURE__ */
|
|
2033
|
-
/* @__PURE__ */
|
|
2034
|
-
/* @__PURE__ */
|
|
2035
|
-
/* @__PURE__ */
|
|
2036
|
-
), /* @__PURE__ */
|
|
2027
|
+
/* @__PURE__ */ T.default.createElement("stop", { offset: "0", stopColor: "#ff5840" }),
|
|
2028
|
+
/* @__PURE__ */ T.default.createElement("stop", { offset: ".007", stopColor: "#ff5840" }),
|
|
2029
|
+
/* @__PURE__ */ T.default.createElement("stop", { offset: ".989", stopColor: "#fa528c" }),
|
|
2030
|
+
/* @__PURE__ */ T.default.createElement("stop", { offset: "1", stopColor: "#fa528c" })
|
|
2031
|
+
), /* @__PURE__ */ T.default.createElement(
|
|
2037
2032
|
"path",
|
|
2038
2033
|
{
|
|
2039
2034
|
fill: "url(#95yY7w43Oj6n2vH63j6HJb)",
|
|
2040
2035
|
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,
|
|
2041
2036
|
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`
|
|
2042
2037
|
}
|
|
2043
|
-
), /* @__PURE__ */
|
|
2038
|
+
), /* @__PURE__ */ T.default.createElement(
|
|
2044
2039
|
"linearGradient",
|
|
2045
2040
|
{
|
|
2046
2041
|
id: "95yY7w43Oj6n2vH63j6HJc",
|
|
@@ -2051,17 +2046,17 @@ function _o({ size: t }) {
|
|
|
2051
2046
|
gradientTransform: "matrix(1 0 0 -1 0 66)",
|
|
2052
2047
|
gradientUnits: "userSpaceOnUse"
|
|
2053
2048
|
},
|
|
2054
|
-
/* @__PURE__ */
|
|
2055
|
-
/* @__PURE__ */
|
|
2056
|
-
/* @__PURE__ */
|
|
2057
|
-
), /* @__PURE__ */
|
|
2049
|
+
/* @__PURE__ */ T.default.createElement("stop", { offset: "0", stopColor: "#feaa53" }),
|
|
2050
|
+
/* @__PURE__ */ T.default.createElement("stop", { offset: ".612", stopColor: "#ffcd49" }),
|
|
2051
|
+
/* @__PURE__ */ T.default.createElement("stop", { offset: "1", stopColor: "#ffde44" })
|
|
2052
|
+
), /* @__PURE__ */ T.default.createElement(
|
|
2058
2053
|
"path",
|
|
2059
2054
|
{
|
|
2060
2055
|
fill: "url(#95yY7w43Oj6n2vH63j6HJc)",
|
|
2061
2056
|
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,
|
|
2062
2057
|
3.95-18.6l8.03,6.08C16.93,25.47,16.1,28.11,16.01,30.91z`
|
|
2063
2058
|
}
|
|
2064
|
-
), /* @__PURE__ */
|
|
2059
|
+
), /* @__PURE__ */ T.default.createElement(
|
|
2065
2060
|
"linearGradient",
|
|
2066
2061
|
{
|
|
2067
2062
|
id: "95yY7w43Oj6n2vH63j6HJd",
|
|
@@ -2072,17 +2067,17 @@ function _o({ size: t }) {
|
|
|
2072
2067
|
gradientTransform: "matrix(1 0 0 -1 0 66)",
|
|
2073
2068
|
gradientUnits: "userSpaceOnUse"
|
|
2074
2069
|
},
|
|
2075
|
-
/* @__PURE__ */
|
|
2076
|
-
/* @__PURE__ */
|
|
2077
|
-
/* @__PURE__ */
|
|
2078
|
-
), /* @__PURE__ */
|
|
2070
|
+
/* @__PURE__ */ T.default.createElement("stop", { offset: "0", stopColor: "#42d778" }),
|
|
2071
|
+
/* @__PURE__ */ T.default.createElement("stop", { offset: ".428", stopColor: "#3dca76" }),
|
|
2072
|
+
/* @__PURE__ */ T.default.createElement("stop", { offset: "1", stopColor: "#34b171" })
|
|
2073
|
+
), /* @__PURE__ */ T.default.createElement(
|
|
2079
2074
|
"path",
|
|
2080
2075
|
{
|
|
2081
2076
|
fill: "url(#95yY7w43Oj6n2vH63j6HJd)",
|
|
2082
2077
|
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,
|
|
2083
2078
|
25.67,48,32.5,48c3.94,0,7.52-1.28,10.33-3.44L50.45,51.28z`
|
|
2084
2079
|
}
|
|
2085
|
-
), /* @__PURE__ */
|
|
2080
|
+
), /* @__PURE__ */ T.default.createElement(
|
|
2086
2081
|
"linearGradient",
|
|
2087
2082
|
{
|
|
2088
2083
|
id: "95yY7w43Oj6n2vH63j6HJe",
|
|
@@ -2093,12 +2088,12 @@ function _o({ size: t }) {
|
|
|
2093
2088
|
gradientTransform: "matrix(1 0 0 -1 0 66)",
|
|
2094
2089
|
gradientUnits: "userSpaceOnUse"
|
|
2095
2090
|
},
|
|
2096
|
-
/* @__PURE__ */
|
|
2097
|
-
/* @__PURE__ */
|
|
2098
|
-
/* @__PURE__ */
|
|
2099
|
-
/* @__PURE__ */
|
|
2100
|
-
/* @__PURE__ */
|
|
2101
|
-
), /* @__PURE__ */
|
|
2091
|
+
/* @__PURE__ */ T.default.createElement("stop", { offset: "0", stopColor: "#155cde" }),
|
|
2092
|
+
/* @__PURE__ */ T.default.createElement("stop", { offset: ".278", stopColor: "#1f7fe5" }),
|
|
2093
|
+
/* @__PURE__ */ T.default.createElement("stop", { offset: ".569", stopColor: "#279ceb" }),
|
|
2094
|
+
/* @__PURE__ */ T.default.createElement("stop", { offset: ".82", stopColor: "#2cafef" }),
|
|
2095
|
+
/* @__PURE__ */ T.default.createElement("stop", { offset: "1", stopColor: "#2eb5f0" })
|
|
2096
|
+
), /* @__PURE__ */ T.default.createElement(
|
|
2102
2097
|
"path",
|
|
2103
2098
|
{
|
|
2104
2099
|
fill: "url(#95yY7w43Oj6n2vH63j6HJe)",
|
|
@@ -2107,21 +2102,21 @@ function _o({ size: t }) {
|
|
|
2107
2102
|
}
|
|
2108
2103
|
));
|
|
2109
2104
|
}
|
|
2110
|
-
var _t =
|
|
2105
|
+
var _t = A(m), Co = {
|
|
2111
2106
|
activeStyle: { background: "#555555" },
|
|
2112
2107
|
icon: jo,
|
|
2113
2108
|
style: { background: "#333333" },
|
|
2114
2109
|
text: "Log in with GitHub"
|
|
2115
|
-
}, Eo =
|
|
2110
|
+
}, Eo = O(Co);
|
|
2116
2111
|
function jo({ size: t, color: e }) {
|
|
2117
2112
|
return /* @__PURE__ */ _t.default.createElement("svg", { fill: e, role: "img", viewBox: "0 0 24 24", width: t, height: t, xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ _t.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" }));
|
|
2118
2113
|
}
|
|
2119
|
-
var Ct =
|
|
2114
|
+
var Ct = A(m), Lo = {
|
|
2120
2115
|
activeStyle: { background: "#282e36" },
|
|
2121
2116
|
icon: Ao,
|
|
2122
2117
|
style: { background: "#0f1419" },
|
|
2123
2118
|
text: "Log in with Twitter"
|
|
2124
|
-
}, To =
|
|
2119
|
+
}, To = O(Lo);
|
|
2125
2120
|
function Ao({ size: t, color: e }) {
|
|
2126
2121
|
return /* @__PURE__ */ Ct.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ Ct.default.createElement(
|
|
2127
2122
|
"path",
|
|
@@ -2131,12 +2126,12 @@ function Ao({ size: t, color: e }) {
|
|
|
2131
2126
|
}
|
|
2132
2127
|
));
|
|
2133
2128
|
}
|
|
2134
|
-
var Et =
|
|
2129
|
+
var Et = A(m), Mo = {
|
|
2135
2130
|
activeStyle: { background: "#ff9f23" },
|
|
2136
2131
|
icon: Oo,
|
|
2137
2132
|
style: { background: "#f9ae32" },
|
|
2138
2133
|
text: "Log in with Amazon"
|
|
2139
|
-
}, zo =
|
|
2134
|
+
}, zo = O(Mo);
|
|
2140
2135
|
function Oo({ size: t, color: e }) {
|
|
2141
2136
|
return /* @__PURE__ */ Et.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: e, width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ Et.default.createElement(
|
|
2142
2137
|
"path",
|
|
@@ -2147,26 +2142,26 @@ function Oo({ size: t, color: e }) {
|
|
|
2147
2142
|
}
|
|
2148
2143
|
));
|
|
2149
2144
|
}
|
|
2150
|
-
var ve =
|
|
2145
|
+
var ve = A(m), Bo = {
|
|
2151
2146
|
activeStyle: {
|
|
2152
2147
|
background: "linear-gradient(to right, rgb(214, 146, 60) 0%, rgb(160, 11, 143) 50%, rgb(56, 10, 115) 100%)"
|
|
2153
2148
|
},
|
|
2154
|
-
icon:
|
|
2149
|
+
icon: Po,
|
|
2155
2150
|
style: {
|
|
2156
2151
|
background: "linear-gradient(to right, rgb(236, 146, 35) 0%, rgb(177, 42, 160) 50%, rgb(105, 14, 224) 100%)"
|
|
2157
2152
|
},
|
|
2158
2153
|
text: "Log in with Instagram"
|
|
2159
|
-
},
|
|
2160
|
-
function
|
|
2154
|
+
}, Ro = O(Bo);
|
|
2155
|
+
function Po({ size: t, color: e }) {
|
|
2161
2156
|
return /* @__PURE__ */ ve.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 169.063 169.063" }, /* @__PURE__ */ ve.default.createElement("g", { fill: e }, /* @__PURE__ */ ve.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__ */ ve.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__ */ ve.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" })));
|
|
2162
2157
|
}
|
|
2163
|
-
var qe =
|
|
2158
|
+
var qe = A(m), Io = {
|
|
2164
2159
|
activeStyle: { background: "rgb(7, 112, 169)" },
|
|
2165
|
-
icon:
|
|
2160
|
+
icon: No,
|
|
2166
2161
|
style: { background: "rgb(26, 129, 185)" },
|
|
2167
2162
|
text: "Log in with LinkedIn"
|
|
2168
|
-
},
|
|
2169
|
-
function
|
|
2163
|
+
}, Fo = O(Io);
|
|
2164
|
+
function No({ size: t, color: e }) {
|
|
2170
2165
|
return /* @__PURE__ */ qe.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 430.117 430.117" }, /* @__PURE__ */ qe.default.createElement("g", null, /* @__PURE__ */ qe.default.createElement(
|
|
2171
2166
|
"path",
|
|
2172
2167
|
{
|
|
@@ -2175,21 +2170,21 @@ function Fo({ size: t, color: e }) {
|
|
|
2175
2170
|
}
|
|
2176
2171
|
)));
|
|
2177
2172
|
}
|
|
2178
|
-
var xe =
|
|
2173
|
+
var xe = A(m), Do = {
|
|
2179
2174
|
activeStyle: { background: "#555555" },
|
|
2180
2175
|
icon: Wo,
|
|
2181
2176
|
style: { background: "#333333" },
|
|
2182
2177
|
text: "Log in with Microsoft"
|
|
2183
|
-
}, Uo =
|
|
2178
|
+
}, Uo = O(Do);
|
|
2184
2179
|
function Wo({ size: t, color: e }) {
|
|
2185
2180
|
return /* @__PURE__ */ xe.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__ */ xe.default.createElement("path", { fill: "#ff5722", d: "M6 6H22V22H6z", transform: "rotate(-180 14 14)" }), /* @__PURE__ */ xe.default.createElement("path", { fill: "#4caf50", d: "M26 6H42V22H26z", transform: "rotate(-180 34 14)" }), /* @__PURE__ */ xe.default.createElement("path", { fill: "#ffc107", d: "M26 26H42V42H26z", transform: "rotate(-180 34 34)" }), /* @__PURE__ */ xe.default.createElement("path", { fill: "#03a9f4", d: "M6 26H22V42H6z", transform: "rotate(-180 14 34)" }));
|
|
2186
2181
|
}
|
|
2187
|
-
var jt =
|
|
2182
|
+
var jt = A(m), Ho = {
|
|
2188
2183
|
activeStyle: { background: "#1171BB" },
|
|
2189
2184
|
icon: Go,
|
|
2190
2185
|
style: { background: "#168EEA" },
|
|
2191
2186
|
text: "Log in with Buffer"
|
|
2192
|
-
}, Vo =
|
|
2187
|
+
}, Vo = O(Ho);
|
|
2193
2188
|
function Go({ size: t, color: e }) {
|
|
2194
2189
|
return /* @__PURE__ */ jt.default.createElement(
|
|
2195
2190
|
"svg",
|
|
@@ -2210,7 +2205,7 @@ function Go({ size: t, color: e }) {
|
|
|
2210
2205
|
)
|
|
2211
2206
|
);
|
|
2212
2207
|
}
|
|
2213
|
-
var
|
|
2208
|
+
var X = A(m), qo = {
|
|
2214
2209
|
activeStyle: {
|
|
2215
2210
|
background: "#0088cc"
|
|
2216
2211
|
},
|
|
@@ -2219,9 +2214,9 @@ var ne = L(m), qo = {
|
|
|
2219
2214
|
background: "#54a9eb"
|
|
2220
2215
|
},
|
|
2221
2216
|
text: "Log in with Telegram"
|
|
2222
|
-
}, Yo =
|
|
2217
|
+
}, Yo = O(qo);
|
|
2223
2218
|
function Ko({ size: t }) {
|
|
2224
|
-
return /* @__PURE__ */
|
|
2219
|
+
return /* @__PURE__ */ X.default.createElement(
|
|
2225
2220
|
"svg",
|
|
2226
2221
|
{
|
|
2227
2222
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2230,11 +2225,11 @@ function Ko({ size: t }) {
|
|
|
2230
2225
|
height: t,
|
|
2231
2226
|
style: { transform: "scale(1.5)" }
|
|
2232
2227
|
},
|
|
2233
|
-
/* @__PURE__ */
|
|
2234
|
-
/* @__PURE__ */
|
|
2235
|
-
/* @__PURE__ */
|
|
2236
|
-
/* @__PURE__ */
|
|
2237
|
-
/* @__PURE__ */
|
|
2228
|
+
/* @__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" }))),
|
|
2229
|
+
/* @__PURE__ */ X.default.createElement("circle", { cx: "120", cy: "120", r: "120", fill: "url(#a)" }),
|
|
2230
|
+
/* @__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" }),
|
|
2231
|
+
/* @__PURE__ */ X.default.createElement("path", { fill: "#a9c9dd", d: "M98 175c3 0 4.325-1.372 6-3l16-15.558-19.958-12.035" }),
|
|
2232
|
+
/* @__PURE__ */ X.default.createElement(
|
|
2238
2233
|
"path",
|
|
2239
2234
|
{
|
|
2240
2235
|
fill: "url(#b)",
|
|
@@ -2243,12 +2238,12 @@ function Ko({ size: t }) {
|
|
|
2243
2238
|
)
|
|
2244
2239
|
);
|
|
2245
2240
|
}
|
|
2246
|
-
var Ye =
|
|
2241
|
+
var Ye = A(m), Jo = {
|
|
2247
2242
|
activeStyle: { background: "#EFF0EE" },
|
|
2248
2243
|
icon: Zo,
|
|
2249
2244
|
style: { background: "#FFFFFF", color: "#000000" },
|
|
2250
2245
|
text: "Log in with Apple"
|
|
2251
|
-
}, Qo =
|
|
2246
|
+
}, Qo = O(Jo);
|
|
2252
2247
|
function Zo({ size: t }) {
|
|
2253
2248
|
return /* @__PURE__ */ Ye.default.createElement(
|
|
2254
2249
|
"svg",
|
|
@@ -2270,23 +2265,23 @@ function Zo({ size: t }) {
|
|
|
2270
2265
|
))
|
|
2271
2266
|
);
|
|
2272
2267
|
}
|
|
2273
|
-
var Ke =
|
|
2268
|
+
var Ke = A(m), Xo = {
|
|
2274
2269
|
activeStyle: { background: "#697ec4" },
|
|
2275
2270
|
icon: ta,
|
|
2276
2271
|
style: { background: "#7289DA" },
|
|
2277
2272
|
text: "Log in with Discord"
|
|
2278
|
-
}, ea =
|
|
2273
|
+
}, ea = O(Xo);
|
|
2279
2274
|
function ta({ size: t, color: e }) {
|
|
2280
2275
|
return /* @__PURE__ */ Ke.default.createElement("svg", { role: "img", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fill: e, width: t, height: t }, /* @__PURE__ */ Ke.default.createElement("title", null, "Discord icon"), /* @__PURE__ */ Ke.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" }));
|
|
2281
2276
|
}
|
|
2282
|
-
var
|
|
2277
|
+
var ae = A(m), na = {
|
|
2283
2278
|
activeStyle: { background: "#f5f5f5" },
|
|
2284
2279
|
icon: aa,
|
|
2285
2280
|
style: { background: "white", color: "black" },
|
|
2286
2281
|
text: "Log in with Okta"
|
|
2287
|
-
}, oa =
|
|
2282
|
+
}, oa = O(na);
|
|
2288
2283
|
function aa({ size: t }) {
|
|
2289
|
-
return /* @__PURE__ */
|
|
2284
|
+
return /* @__PURE__ */ ae.default.createElement(
|
|
2290
2285
|
"svg",
|
|
2291
2286
|
{
|
|
2292
2287
|
version: "1.1",
|
|
@@ -2297,14 +2292,14 @@ function aa({ size: t }) {
|
|
|
2297
2292
|
width: t,
|
|
2298
2293
|
height: t
|
|
2299
2294
|
},
|
|
2300
|
-
/* @__PURE__ */
|
|
2295
|
+
/* @__PURE__ */ ae.default.createElement("g", null, /* @__PURE__ */ ae.default.createElement("g", null, /* @__PURE__ */ ae.default.createElement(
|
|
2301
2296
|
"path",
|
|
2302
2297
|
{
|
|
2303
2298
|
fill: "#007DC1",
|
|
2304
2299
|
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
|
|
2305
2300
|
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`
|
|
2306
2301
|
}
|
|
2307
|
-
)), /* @__PURE__ */
|
|
2302
|
+
)), /* @__PURE__ */ ae.default.createElement(
|
|
2308
2303
|
"path",
|
|
2309
2304
|
{
|
|
2310
2305
|
fill: "#007DC1",
|
|
@@ -2313,7 +2308,7 @@ function aa({ size: t }) {
|
|
|
2313
2308
|
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
|
|
2314
2309
|
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`
|
|
2315
2310
|
}
|
|
2316
|
-
), /* @__PURE__ */
|
|
2311
|
+
), /* @__PURE__ */ ae.default.createElement(
|
|
2317
2312
|
"path",
|
|
2318
2313
|
{
|
|
2319
2314
|
fill: "#007DC1",
|
|
@@ -2323,7 +2318,7 @@ function aa({ size: t }) {
|
|
|
2323
2318
|
C274.6,133.9,276.2,131.9,275.9,129.6z`
|
|
2324
2319
|
}
|
|
2325
2320
|
)),
|
|
2326
|
-
/* @__PURE__ */
|
|
2321
|
+
/* @__PURE__ */ ae.default.createElement("g", null, /* @__PURE__ */ ae.default.createElement(
|
|
2327
2322
|
"path",
|
|
2328
2323
|
{
|
|
2329
2324
|
fill: "#007DC1",
|
|
@@ -2336,14 +2331,14 @@ function aa({ size: t }) {
|
|
|
2336
2331
|
))
|
|
2337
2332
|
);
|
|
2338
2333
|
}
|
|
2339
|
-
var
|
|
2334
|
+
var fe = A(m), ia = {
|
|
2340
2335
|
activeStyle: { background: "#f5f5f5" },
|
|
2341
2336
|
icon: la,
|
|
2342
2337
|
style: { background: "white", color: "black" },
|
|
2343
2338
|
text: "Log in with Slack"
|
|
2344
|
-
}, ra =
|
|
2339
|
+
}, ra = O(ia);
|
|
2345
2340
|
function la({ size: t, color: e }) {
|
|
2346
|
-
return /* @__PURE__ */
|
|
2341
|
+
return /* @__PURE__ */ fe.default.createElement(
|
|
2347
2342
|
"svg",
|
|
2348
2343
|
{
|
|
2349
2344
|
enableBackground: "new 0 0 2447.6 2452.5",
|
|
@@ -2353,25 +2348,25 @@ function la({ size: t, color: e }) {
|
|
|
2353
2348
|
height: t,
|
|
2354
2349
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2355
2350
|
},
|
|
2356
|
-
/* @__PURE__ */
|
|
2351
|
+
/* @__PURE__ */ fe.default.createElement("g", { clipRule: "evenodd", fillRule: "evenodd" }, /* @__PURE__ */ fe.default.createElement(
|
|
2357
2352
|
"path",
|
|
2358
2353
|
{
|
|
2359
2354
|
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",
|
|
2360
2355
|
fill: "#36c5f0"
|
|
2361
2356
|
}
|
|
2362
|
-
), /* @__PURE__ */
|
|
2357
|
+
), /* @__PURE__ */ fe.default.createElement(
|
|
2363
2358
|
"path",
|
|
2364
2359
|
{
|
|
2365
2360
|
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",
|
|
2366
2361
|
fill: "#2eb67d"
|
|
2367
2362
|
}
|
|
2368
|
-
), /* @__PURE__ */
|
|
2363
|
+
), /* @__PURE__ */ fe.default.createElement(
|
|
2369
2364
|
"path",
|
|
2370
2365
|
{
|
|
2371
2366
|
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",
|
|
2372
2367
|
fill: "#ecb22e"
|
|
2373
2368
|
}
|
|
2374
|
-
), /* @__PURE__ */
|
|
2369
|
+
), /* @__PURE__ */ fe.default.createElement(
|
|
2375
2370
|
"path",
|
|
2376
2371
|
{
|
|
2377
2372
|
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",
|
|
@@ -2380,12 +2375,12 @@ function la({ size: t, color: e }) {
|
|
|
2380
2375
|
))
|
|
2381
2376
|
);
|
|
2382
2377
|
}
|
|
2383
|
-
var Le =
|
|
2378
|
+
var Le = A(m), ca = {
|
|
2384
2379
|
activeStyle: { background: "#ac3ade" },
|
|
2385
2380
|
icon: ua,
|
|
2386
2381
|
style: { background: "#720E9E" },
|
|
2387
2382
|
text: "Log in with Yahoo"
|
|
2388
|
-
}, sa =
|
|
2383
|
+
}, sa = O(ca);
|
|
2389
2384
|
function ua({ size: t, color: e }) {
|
|
2390
2385
|
return /* @__PURE__ */ Le.default.createElement(
|
|
2391
2386
|
"svg",
|
|
@@ -2423,12 +2418,12 @@ function ua({ size: t, color: e }) {
|
|
|
2423
2418
|
))
|
|
2424
2419
|
);
|
|
2425
2420
|
}
|
|
2426
|
-
var Lt =
|
|
2421
|
+
var Lt = A(m), da = {
|
|
2427
2422
|
activeStyle: { background: "#008FF3" },
|
|
2428
2423
|
icon: pa,
|
|
2429
2424
|
style: { background: "#0573ff" },
|
|
2430
2425
|
text: "Log in with Zalo"
|
|
2431
|
-
}, fa =
|
|
2426
|
+
}, fa = O(da);
|
|
2432
2427
|
function pa({ size: t, color: e }) {
|
|
2433
2428
|
return /* @__PURE__ */ Lt.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ Lt.default.createElement(
|
|
2434
2429
|
"path",
|
|
@@ -2438,21 +2433,21 @@ function pa({ size: t, color: e }) {
|
|
|
2438
2433
|
}
|
|
2439
2434
|
));
|
|
2440
2435
|
}
|
|
2441
|
-
var Tt =
|
|
2436
|
+
var Tt = A(m), ga = {
|
|
2442
2437
|
activeStyle: { background: "#333333" },
|
|
2443
2438
|
icon: ma,
|
|
2444
2439
|
style: { background: "#000000", color: "#FFFFFF" },
|
|
2445
2440
|
text: "Log in with TikTok"
|
|
2446
|
-
}, ha =
|
|
2441
|
+
}, ha = O(ga);
|
|
2447
2442
|
function ma({ size: t, color: e }) {
|
|
2448
2443
|
return /* @__PURE__ */ Tt.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, fill: e, viewBox: "0 0 512 512" }, /* @__PURE__ */ Tt.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" }));
|
|
2449
2444
|
}
|
|
2450
|
-
var W =
|
|
2445
|
+
var W = A(m), ya = {
|
|
2451
2446
|
activeStyle: { background: "#eeeeee" },
|
|
2452
2447
|
icon: ba,
|
|
2453
2448
|
style: { background: "#ffffff", color: "#333333" },
|
|
2454
2449
|
text: "Log in with Metamask"
|
|
2455
|
-
}, wa =
|
|
2450
|
+
}, wa = O(ya);
|
|
2456
2451
|
function ba({ size: t }) {
|
|
2457
2452
|
return /* @__PURE__ */ W.default.createElement(
|
|
2458
2453
|
"svg",
|
|
@@ -2478,13 +2473,13 @@ function ba({ size: t }) {
|
|
|
2478
2473
|
),
|
|
2479
2474
|
/* @__PURE__ */ W.default.createElement(
|
|
2480
2475
|
"path",
|
|
2481
|
-
|
|
2476
|
+
P({
|
|
2482
2477
|
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"
|
|
2483
2478
|
}, At)
|
|
2484
2479
|
),
|
|
2485
2480
|
/* @__PURE__ */ W.default.createElement(
|
|
2486
2481
|
"path",
|
|
2487
|
-
|
|
2482
|
+
P({
|
|
2488
2483
|
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"
|
|
2489
2484
|
}, At)
|
|
2490
2485
|
),
|
|
@@ -2530,7 +2525,7 @@ function ba({ size: t }) {
|
|
|
2530
2525
|
),
|
|
2531
2526
|
/* @__PURE__ */ W.default.createElement(
|
|
2532
2527
|
"path",
|
|
2533
|
-
|
|
2528
|
+
P({
|
|
2534
2529
|
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"
|
|
2535
2530
|
}, Mt)
|
|
2536
2531
|
),
|
|
@@ -2566,7 +2561,7 @@ function ba({ size: t }) {
|
|
|
2566
2561
|
),
|
|
2567
2562
|
/* @__PURE__ */ W.default.createElement(
|
|
2568
2563
|
"path",
|
|
2569
|
-
|
|
2564
|
+
P({
|
|
2570
2565
|
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"
|
|
2571
2566
|
}, Mt)
|
|
2572
2567
|
)
|
|
@@ -2582,21 +2577,21 @@ var At = {
|
|
|
2582
2577
|
stroke: "#f6851b",
|
|
2583
2578
|
strokeLinecap: "round",
|
|
2584
2579
|
strokeLinejoin: "round"
|
|
2585
|
-
}, zt =
|
|
2580
|
+
}, zt = A(m), va = {
|
|
2586
2581
|
icon: $a,
|
|
2587
2582
|
style: { background: "#fc6d26" },
|
|
2588
2583
|
activeStyle: { background: "#d55a1c" },
|
|
2589
2584
|
text: "Log in with Gitlab"
|
|
2590
|
-
}, xa =
|
|
2585
|
+
}, xa = O(va);
|
|
2591
2586
|
function $a({ size: t, color: e }) {
|
|
2592
2587
|
return /* @__PURE__ */ zt.default.createElement("svg", { fill: e, role: "img", viewBox: "0 0 24 24", width: t, height: t, xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ zt.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" }));
|
|
2593
2588
|
}
|
|
2594
|
-
var Ot =
|
|
2589
|
+
var Ot = A(m), ka = {
|
|
2595
2590
|
activeStyle: { background: "#282e36" },
|
|
2596
2591
|
icon: _a,
|
|
2597
2592
|
style: { background: "#0f1419" },
|
|
2598
2593
|
text: "Log in with X"
|
|
2599
|
-
}, Sa =
|
|
2594
|
+
}, Sa = O(ka);
|
|
2600
2595
|
function _a({ size: t, color: e }) {
|
|
2601
2596
|
return /* @__PURE__ */ Ot.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: t, height: t, viewBox: "0 0 24 24" }, /* @__PURE__ */ Ot.default.createElement(
|
|
2602
2597
|
"path",
|
|
@@ -2607,15 +2602,15 @@ function _a({ size: t, color: e }) {
|
|
|
2607
2602
|
));
|
|
2608
2603
|
}
|
|
2609
2604
|
function Ca({ width: t = 24, height: e = 24, color: o }) {
|
|
2610
|
-
return /* @__PURE__ */
|
|
2611
|
-
/* @__PURE__ */
|
|
2612
|
-
/* @__PURE__ */
|
|
2613
|
-
/* @__PURE__ */
|
|
2614
|
-
/* @__PURE__ */
|
|
2615
|
-
/* @__PURE__ */
|
|
2616
|
-
/* @__PURE__ */
|
|
2617
|
-
/* @__PURE__ */
|
|
2618
|
-
/* @__PURE__ */
|
|
2605
|
+
return /* @__PURE__ */ i.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", height: "48", width: "32", viewBox: "-18.15 -35.9725 157.3 215.835", children: [
|
|
2606
|
+
/* @__PURE__ */ i.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" }),
|
|
2607
|
+
/* @__PURE__ */ i.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" }),
|
|
2608
|
+
/* @__PURE__ */ i.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" }),
|
|
2609
|
+
/* @__PURE__ */ i.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" }),
|
|
2610
|
+
/* @__PURE__ */ i.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" }),
|
|
2611
|
+
/* @__PURE__ */ i.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" }),
|
|
2612
|
+
/* @__PURE__ */ i.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" }),
|
|
2613
|
+
/* @__PURE__ */ i.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" })
|
|
2619
2614
|
] });
|
|
2620
2615
|
}
|
|
2621
2616
|
const Ea = {
|
|
@@ -2624,12 +2619,12 @@ const Ea = {
|
|
|
2624
2619
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2625
2620
|
style: { background: "rgb(94,188,249)" },
|
|
2626
2621
|
activeStyle: { background: "rgb(76,143,208)" }
|
|
2627
|
-
}, ja =
|
|
2622
|
+
}, ja = j.createButton(Ea);
|
|
2628
2623
|
function La({ width: t = 24, height: e = 24, color: o }) {
|
|
2629
|
-
return /* @__PURE__ */
|
|
2624
|
+
return /* @__PURE__ */ i.jsx(
|
|
2630
2625
|
"img",
|
|
2631
2626
|
{
|
|
2632
|
-
src: `${
|
|
2627
|
+
src: `${d}/buttons/facebook.svg`,
|
|
2633
2628
|
alt: "Sign in with Facebook"
|
|
2634
2629
|
}
|
|
2635
2630
|
);
|
|
@@ -2640,9 +2635,9 @@ const Ta = {
|
|
|
2640
2635
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2641
2636
|
style: { background: "#3b5998" },
|
|
2642
2637
|
activeStyle: { background: "#2b3f65" }
|
|
2643
|
-
}, Aa =
|
|
2638
|
+
}, Aa = j.createButton(Ta);
|
|
2644
2639
|
function Ma({ width: t = 24, height: e = 24, color: o }) {
|
|
2645
|
-
return /* @__PURE__ */
|
|
2640
|
+
return /* @__PURE__ */ i.jsx("img", { src: `${d}/buttons/weibo.svg`, alt: "Sign in with Weibo" });
|
|
2646
2641
|
}
|
|
2647
2642
|
const za = {
|
|
2648
2643
|
text: "Sign in with Weibo",
|
|
@@ -2650,38 +2645,38 @@ const za = {
|
|
|
2650
2645
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2651
2646
|
style: { background: "#e62329" },
|
|
2652
2647
|
activeStyle: { background: "#e54329" }
|
|
2653
|
-
}, Oa =
|
|
2648
|
+
}, Oa = j.createButton(za);
|
|
2654
2649
|
function Ba({ width: t = 24, height: e = 24, color: o }) {
|
|
2655
|
-
return /* @__PURE__ */
|
|
2650
|
+
return /* @__PURE__ */ i.jsx("img", { src: `${d}/buttons/gitee.svg`, alt: "Sign in with Gitee" });
|
|
2656
2651
|
}
|
|
2657
|
-
const
|
|
2652
|
+
const Ra = {
|
|
2658
2653
|
text: "Sign in with Gitee",
|
|
2659
2654
|
icon: Ba,
|
|
2660
2655
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2661
2656
|
style: { background: "rgb(199,29,35)" },
|
|
2662
2657
|
activeStyle: { background: "rgb(147,22,26)" }
|
|
2663
|
-
},
|
|
2658
|
+
}, Pa = j.createButton(Ra);
|
|
2664
2659
|
function Ia({ width: t = 24, height: e = 24, color: o }) {
|
|
2665
|
-
return /* @__PURE__ */
|
|
2660
|
+
return /* @__PURE__ */ i.jsx(
|
|
2666
2661
|
"img",
|
|
2667
2662
|
{
|
|
2668
|
-
src: `${
|
|
2663
|
+
src: `${d}/buttons/wechat.svg`,
|
|
2669
2664
|
alt: "Sign in with Wechat"
|
|
2670
2665
|
}
|
|
2671
2666
|
);
|
|
2672
2667
|
}
|
|
2673
|
-
const
|
|
2668
|
+
const Fa = {
|
|
2674
2669
|
text: "Sign in with Wechat",
|
|
2675
2670
|
icon: Ia,
|
|
2676
2671
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2677
2672
|
style: { background: "rgb(0,194,80)" },
|
|
2678
2673
|
activeStyle: { background: "rgb(0,158,64)" }
|
|
2679
|
-
},
|
|
2674
|
+
}, Na = j.createButton(Fa);
|
|
2680
2675
|
function Da({ width: t = 24, height: e = 24, color: o }) {
|
|
2681
|
-
return /* @__PURE__ */
|
|
2676
|
+
return /* @__PURE__ */ i.jsx(
|
|
2682
2677
|
"img",
|
|
2683
2678
|
{
|
|
2684
|
-
src: `${
|
|
2679
|
+
src: `${d}/buttons/dingtalk.svg`,
|
|
2685
2680
|
alt: "Sign in with DingTalk"
|
|
2686
2681
|
}
|
|
2687
2682
|
);
|
|
@@ -2692,12 +2687,12 @@ const Ua = {
|
|
|
2692
2687
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2693
2688
|
style: { background: "#0191e0" },
|
|
2694
2689
|
activeStyle: { background: "rgb(76,143,208)" }
|
|
2695
|
-
}, Wa =
|
|
2690
|
+
}, Wa = j.createButton(Ua);
|
|
2696
2691
|
function Ha({ width: t = 24, height: e = 24, color: o }) {
|
|
2697
|
-
return /* @__PURE__ */
|
|
2692
|
+
return /* @__PURE__ */ i.jsx(
|
|
2698
2693
|
"img",
|
|
2699
2694
|
{
|
|
2700
|
-
src: `${
|
|
2695
|
+
src: `${d}/buttons/linkedin.svg`,
|
|
2701
2696
|
alt: "Sign in with LinkedIn"
|
|
2702
2697
|
}
|
|
2703
2698
|
);
|
|
@@ -2708,9 +2703,9 @@ const Va = {
|
|
|
2708
2703
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2709
2704
|
style: { background: "rgb(255,255,255)", color: "#000000" },
|
|
2710
2705
|
activeStyle: { background: "rgb(240,240,250)" }
|
|
2711
|
-
}, Ga =
|
|
2706
|
+
}, Ga = j.createButton(Va);
|
|
2712
2707
|
function qa({ width: t = 24, height: e = 24, color: o }) {
|
|
2713
|
-
return /* @__PURE__ */
|
|
2708
|
+
return /* @__PURE__ */ i.jsx("img", { src: `${d}/buttons/wecom.svg`, alt: "Sign in with WeCom" });
|
|
2714
2709
|
}
|
|
2715
2710
|
const Ya = {
|
|
2716
2711
|
text: "Sign in with WeCom",
|
|
@@ -2718,12 +2713,12 @@ const Ya = {
|
|
|
2718
2713
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2719
2714
|
style: { background: "rgb(255,255,255)", color: "#000000" },
|
|
2720
2715
|
activeStyle: { background: "rgb(100,150,250)" }
|
|
2721
|
-
}, Ka =
|
|
2716
|
+
}, Ka = j.createButton(Ya);
|
|
2722
2717
|
function Ja({ width: t = 24, height: e = 24, color: o }) {
|
|
2723
|
-
return /* @__PURE__ */
|
|
2718
|
+
return /* @__PURE__ */ i.jsx(
|
|
2724
2719
|
"img",
|
|
2725
2720
|
{
|
|
2726
|
-
src: `${
|
|
2721
|
+
src: `${d}/buttons/lark.svg`,
|
|
2727
2722
|
alt: "Sign in with Lark",
|
|
2728
2723
|
style: { width: 24, height: 24 }
|
|
2729
2724
|
}
|
|
@@ -2735,12 +2730,12 @@ const Qa = {
|
|
|
2735
2730
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2736
2731
|
style: { background: "#ffffff", color: "#000000" },
|
|
2737
2732
|
activeStyle: { background: "#ededee" }
|
|
2738
|
-
}, Za =
|
|
2733
|
+
}, Za = j.createButton(Qa);
|
|
2739
2734
|
function Xa({ width: t = 24, height: e = 24, color: o }) {
|
|
2740
|
-
return /* @__PURE__ */
|
|
2735
|
+
return /* @__PURE__ */ i.jsx(
|
|
2741
2736
|
"img",
|
|
2742
2737
|
{
|
|
2743
|
-
src: `${
|
|
2738
|
+
src: `${d}/buttons/gitlab.svg`,
|
|
2744
2739
|
alt: "Sign in with GitLab",
|
|
2745
2740
|
style: { width: 24, height: 24 }
|
|
2746
2741
|
}
|
|
@@ -2752,12 +2747,12 @@ const ei = {
|
|
|
2752
2747
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2753
2748
|
style: { background: "rgb(255,255,255)", color: "#000000" },
|
|
2754
2749
|
activeStyle: { background: "rgb(100,150,250)" }
|
|
2755
|
-
}, ti =
|
|
2750
|
+
}, ti = j.createButton(ei);
|
|
2756
2751
|
function ni({ width: t = 24, height: e = 24, color: o }) {
|
|
2757
|
-
return /* @__PURE__ */
|
|
2752
|
+
return /* @__PURE__ */ i.jsx(
|
|
2758
2753
|
"img",
|
|
2759
2754
|
{
|
|
2760
|
-
src: `${
|
|
2755
|
+
src: `${d}/buttons/adfs.svg`,
|
|
2761
2756
|
alt: "Sign in with ADFS",
|
|
2762
2757
|
style: { width: 24, height: 24 }
|
|
2763
2758
|
}
|
|
@@ -2769,12 +2764,12 @@ const oi = {
|
|
|
2769
2764
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2770
2765
|
style: { background: "#ffffff", color: "#000000" },
|
|
2771
2766
|
activeStyle: { background: "#ededee" }
|
|
2772
|
-
}, ai =
|
|
2767
|
+
}, ai = j.createButton(oi);
|
|
2773
2768
|
function ii({ width: t = 24, height: e = 24, color: o }) {
|
|
2774
|
-
return /* @__PURE__ */
|
|
2769
|
+
return /* @__PURE__ */ i.jsx(
|
|
2775
2770
|
"img",
|
|
2776
2771
|
{
|
|
2777
|
-
src: `${
|
|
2772
|
+
src: `${d}/buttons/casdoor.svg`,
|
|
2778
2773
|
alt: "Sign in with Casdoor",
|
|
2779
2774
|
style: { width: 24, height: 24 }
|
|
2780
2775
|
}
|
|
@@ -2786,12 +2781,12 @@ const ri = {
|
|
|
2786
2781
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2787
2782
|
style: { background: "#ffffff", color: "#000000" },
|
|
2788
2783
|
activeStyle: { background: "#ededee" }
|
|
2789
|
-
}, li =
|
|
2784
|
+
}, li = j.createButton(ri);
|
|
2790
2785
|
function ci({ width: t = 24, height: e = 24, color: o }) {
|
|
2791
|
-
return /* @__PURE__ */
|
|
2786
|
+
return /* @__PURE__ */ i.jsx(
|
|
2792
2787
|
"img",
|
|
2793
2788
|
{
|
|
2794
|
-
src: `${
|
|
2789
|
+
src: `${d}/buttons/baidu.svg`,
|
|
2795
2790
|
alt: "Sign in with Baidu",
|
|
2796
2791
|
style: { width: 24, height: 24 }
|
|
2797
2792
|
}
|
|
@@ -2803,12 +2798,12 @@ const si = {
|
|
|
2803
2798
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2804
2799
|
style: { background: "#ffffff", color: "#000000" },
|
|
2805
2800
|
activeStyle: { background: "#ededee" }
|
|
2806
|
-
}, ui =
|
|
2801
|
+
}, ui = j.createButton(si);
|
|
2807
2802
|
function di({ width: t = 24, height: e = 24, color: o }) {
|
|
2808
|
-
return /* @__PURE__ */
|
|
2803
|
+
return /* @__PURE__ */ i.jsx(
|
|
2809
2804
|
"img",
|
|
2810
2805
|
{
|
|
2811
|
-
src: `${
|
|
2806
|
+
src: `${d}/buttons/alipay.svg`,
|
|
2812
2807
|
alt: "Sign in with Alipay",
|
|
2813
2808
|
style: { width: 24, height: 24 }
|
|
2814
2809
|
}
|
|
@@ -2820,12 +2815,12 @@ const fi = {
|
|
|
2820
2815
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2821
2816
|
style: { background: "#ffffff", color: "#000000" },
|
|
2822
2817
|
activeStyle: { background: "#ededee" }
|
|
2823
|
-
}, pi =
|
|
2818
|
+
}, pi = j.createButton(fi);
|
|
2824
2819
|
function gi({ width: t = 24, height: e = 24, color: o }) {
|
|
2825
|
-
return /* @__PURE__ */
|
|
2820
|
+
return /* @__PURE__ */ i.jsx(
|
|
2826
2821
|
"img",
|
|
2827
2822
|
{
|
|
2828
|
-
src: `${
|
|
2823
|
+
src: `${d}/buttons/infoflow.svg`,
|
|
2829
2824
|
alt: "Sign in with Infoflow",
|
|
2830
2825
|
style: { width: 24, height: 24 }
|
|
2831
2826
|
}
|
|
@@ -2837,12 +2832,12 @@ const hi = {
|
|
|
2837
2832
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2838
2833
|
style: { background: "#ffffff", color: "#000000" },
|
|
2839
2834
|
activeStyle: { background: "#ededee" }
|
|
2840
|
-
}, mi =
|
|
2835
|
+
}, mi = j.createButton(hi);
|
|
2841
2836
|
function yi({ width: t = 24, height: e = 24, color: o }) {
|
|
2842
|
-
return /* @__PURE__ */
|
|
2837
|
+
return /* @__PURE__ */ i.jsx(
|
|
2843
2838
|
"img",
|
|
2844
2839
|
{
|
|
2845
|
-
src: `${
|
|
2840
|
+
src: `${d}/buttons/apple.svg`,
|
|
2846
2841
|
alt: "Sign in with Apple",
|
|
2847
2842
|
style: { width: 24, height: 24 }
|
|
2848
2843
|
}
|
|
@@ -2854,12 +2849,12 @@ const wi = {
|
|
|
2854
2849
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2855
2850
|
style: { background: "#ffffff", color: "#000000" },
|
|
2856
2851
|
activeStyle: { background: "#ededee" }
|
|
2857
|
-
}, bi =
|
|
2852
|
+
}, bi = j.createButton(wi);
|
|
2858
2853
|
function vi({ width: t = 24, height: e = 24, color: o }) {
|
|
2859
|
-
return /* @__PURE__ */
|
|
2854
|
+
return /* @__PURE__ */ i.jsx(
|
|
2860
2855
|
"img",
|
|
2861
2856
|
{
|
|
2862
|
-
src: `${
|
|
2857
|
+
src: `${d}/buttons/azuread.svg`,
|
|
2863
2858
|
alt: "Sign in with Azure AD",
|
|
2864
2859
|
style: { width: 24, height: 24 }
|
|
2865
2860
|
}
|
|
@@ -2871,12 +2866,12 @@ const xi = {
|
|
|
2871
2866
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2872
2867
|
style: { background: "#ffffff", color: "#000000" },
|
|
2873
2868
|
activeStyle: { background: "#ededee" }
|
|
2874
|
-
}, $i =
|
|
2869
|
+
}, $i = j.createButton(xi);
|
|
2875
2870
|
function ki({ width: t = 24, height: e = 24, color: o }) {
|
|
2876
|
-
return /* @__PURE__ */
|
|
2871
|
+
return /* @__PURE__ */ i.jsx(
|
|
2877
2872
|
"img",
|
|
2878
2873
|
{
|
|
2879
|
-
src: `${
|
|
2874
|
+
src: `${d}/buttons/azuread.svg`,
|
|
2880
2875
|
alt: "Sign in with Azure AD B2C",
|
|
2881
2876
|
style: { width: 24, height: 24 }
|
|
2882
2877
|
}
|
|
@@ -2888,12 +2883,12 @@ const Si = {
|
|
|
2888
2883
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2889
2884
|
style: { background: "#ffffff", color: "#000000" },
|
|
2890
2885
|
activeStyle: { background: "#ededee" }
|
|
2891
|
-
}, _i =
|
|
2886
|
+
}, _i = j.createButton(Si);
|
|
2892
2887
|
function Ci({ width: t = 24, height: e = 24, color: o }) {
|
|
2893
|
-
return /* @__PURE__ */
|
|
2888
|
+
return /* @__PURE__ */ i.jsx(
|
|
2894
2889
|
"img",
|
|
2895
2890
|
{
|
|
2896
|
-
src: `${
|
|
2891
|
+
src: `${d}/buttons/slack.svg`,
|
|
2897
2892
|
alt: "Sign in with Slack",
|
|
2898
2893
|
style: { width: 24, height: 24 }
|
|
2899
2894
|
}
|
|
@@ -2905,12 +2900,12 @@ const Ei = {
|
|
|
2905
2900
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2906
2901
|
style: { background: "#ffffff", color: "#000000" },
|
|
2907
2902
|
activeStyle: { background: "#ededee" }
|
|
2908
|
-
}, ji =
|
|
2903
|
+
}, ji = j.createButton(Ei);
|
|
2909
2904
|
function Li({ width: t = 24, height: e = 24, color: o }) {
|
|
2910
|
-
return /* @__PURE__ */
|
|
2905
|
+
return /* @__PURE__ */ i.jsx(
|
|
2911
2906
|
"img",
|
|
2912
2907
|
{
|
|
2913
|
-
src: `${
|
|
2908
|
+
src: `${d}/buttons/steam.svg`,
|
|
2914
2909
|
alt: "Sign in with Steam",
|
|
2915
2910
|
style: { width: 24, height: 24 }
|
|
2916
2911
|
}
|
|
@@ -2922,12 +2917,12 @@ const Ti = {
|
|
|
2922
2917
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2923
2918
|
style: { background: "#ffffff", color: "#000000" },
|
|
2924
2919
|
activeStyle: { background: "#ededee" }
|
|
2925
|
-
}, Ai =
|
|
2920
|
+
}, Ai = j.createButton(Ti);
|
|
2926
2921
|
function Mi({ width: t = 24, height: e = 24, color: o }) {
|
|
2927
|
-
return /* @__PURE__ */
|
|
2922
|
+
return /* @__PURE__ */ i.jsx(
|
|
2928
2923
|
"img",
|
|
2929
2924
|
{
|
|
2930
|
-
src: `${
|
|
2925
|
+
src: `${d}/buttons/bilibili.svg`,
|
|
2931
2926
|
alt: "Sign in with Bilibili"
|
|
2932
2927
|
}
|
|
2933
2928
|
);
|
|
@@ -2938,94 +2933,94 @@ const zi = {
|
|
|
2938
2933
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2939
2934
|
style: { background: "#0191e0" },
|
|
2940
2935
|
activeStyle: { background: "rgb(76,143,208)" }
|
|
2941
|
-
}, Oi =
|
|
2936
|
+
}, Oi = j.createButton(zi);
|
|
2942
2937
|
function Bi({ width: t = 24, height: e = 24, color: o }) {
|
|
2943
|
-
return /* @__PURE__ */
|
|
2938
|
+
return /* @__PURE__ */ i.jsx(
|
|
2944
2939
|
"img",
|
|
2945
2940
|
{
|
|
2946
|
-
src: `${
|
|
2941
|
+
src: `${d}/buttons/okta.svg`,
|
|
2947
2942
|
alt: "Sign in with Okta",
|
|
2948
2943
|
style: { width: 24, height: 24 }
|
|
2949
2944
|
}
|
|
2950
2945
|
);
|
|
2951
2946
|
}
|
|
2952
|
-
const
|
|
2947
|
+
const Ri = {
|
|
2953
2948
|
text: "Sign in with Okta",
|
|
2954
2949
|
icon: Bi,
|
|
2955
2950
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2956
2951
|
style: { background: "#ffffff", color: "#000000" },
|
|
2957
2952
|
activeStyle: { background: "#ededee" }
|
|
2958
|
-
},
|
|
2953
|
+
}, Pi = j.createButton(Ri);
|
|
2959
2954
|
function Ii({ width: t = 24, height: e = 24, color: o }) {
|
|
2960
|
-
return /* @__PURE__ */
|
|
2955
|
+
return /* @__PURE__ */ i.jsx(
|
|
2961
2956
|
"img",
|
|
2962
2957
|
{
|
|
2963
|
-
src: `${
|
|
2958
|
+
src: `${d}/buttons/douyin.svg`,
|
|
2964
2959
|
alt: "Sign in with Douyin",
|
|
2965
2960
|
style: { width: 24, height: 24 }
|
|
2966
2961
|
}
|
|
2967
2962
|
);
|
|
2968
2963
|
}
|
|
2969
|
-
const
|
|
2964
|
+
const Fi = {
|
|
2970
2965
|
text: "Sign in with Douyin",
|
|
2971
2966
|
icon: Ii,
|
|
2972
2967
|
iconFormat: (t) => `fa fa-${t}`,
|
|
2973
2968
|
style: { background: "#ffffff", color: "#000000" },
|
|
2974
2969
|
activeStyle: { background: "#ededee" }
|
|
2975
|
-
},
|
|
2976
|
-
function Di({ type: t, logoUrl: e, align: o = "center", style: r = { background: "#ffffff", color: "#000000" }, activeStyle:
|
|
2977
|
-
function l({ width:
|
|
2978
|
-
return /* @__PURE__ */
|
|
2970
|
+
}, Ni = j.createButton(Fi);
|
|
2971
|
+
function Di({ type: t, logoUrl: e, align: o = "center", style: r = { background: "#ffffff", color: "#000000" }, activeStyle: a = { background: "#ededee" } }) {
|
|
2972
|
+
function l({ width: f = 24, height: h = 24, color: $ }) {
|
|
2973
|
+
return /* @__PURE__ */ i.jsx("img", { src: e, alt: `Sign in with ${t}`, style: { width: f, height: h } });
|
|
2979
2974
|
}
|
|
2980
|
-
const
|
|
2975
|
+
const u = {
|
|
2981
2976
|
text: `Sign in with ${t}`,
|
|
2982
2977
|
icon: l,
|
|
2983
2978
|
style: r,
|
|
2984
|
-
activeStyle:
|
|
2985
|
-
},
|
|
2986
|
-
return /* @__PURE__ */
|
|
2979
|
+
activeStyle: a
|
|
2980
|
+
}, g = j.createButton(u), c = Q.t("login:Sign in with {type}").replace("{type}", t);
|
|
2981
|
+
return /* @__PURE__ */ i.jsx(g, { text: c, align: o });
|
|
2987
2982
|
}
|
|
2988
2983
|
function Je(t) {
|
|
2989
2984
|
const e = Q.t("login:Sign in with {type}").replace(
|
|
2990
2985
|
"{type}",
|
|
2991
2986
|
t.displayName !== "" ? t.displayName : t.type
|
|
2992
2987
|
);
|
|
2993
|
-
return t.type === "GitHub" ? /* @__PURE__ */
|
|
2988
|
+
return t.type === "GitHub" ? /* @__PURE__ */ i.jsx(j.GithubLoginButton, { text: e, align: "center" }) : t.type === "Google" ? /* @__PURE__ */ i.jsx(j.GoogleLoginButton, { text: e, align: "center" }) : t.type === "QQ" ? /* @__PURE__ */ i.jsx(ja, { text: e, align: "center" }) : t.type === "Facebook" ? /* @__PURE__ */ i.jsx(Aa, { text: e, align: "center" }) : t.type === "Weibo" ? /* @__PURE__ */ i.jsx(Oa, { text: e, align: "center" }) : t.type === "Gitee" ? /* @__PURE__ */ i.jsx(Pa, { text: e, align: "center" }) : t.type === "WeChat" ? /* @__PURE__ */ i.jsx(Na, { text: e, align: "center" }) : t.type === "DingTalk" ? /* @__PURE__ */ i.jsx(Wa, { text: e, align: "center" }) : t.type === "LinkedIn" ? /* @__PURE__ */ i.jsx(Ga, { text: e, align: "center" }) : t.type === "WeCom" ? /* @__PURE__ */ i.jsx(Ka, { text: e, align: "center" }) : t.type === "Lark" ? /* @__PURE__ */ i.jsx(Za, { text: e, align: "center" }) : t.type === "GitLab" ? /* @__PURE__ */ i.jsx(ti, { text: e, align: "center" }) : t.type === "ADFS" ? /* @__PURE__ */ i.jsx(ai, { text: e, align: "center" }) : t.type === "Casdoor" ? /* @__PURE__ */ i.jsx(li, { text: e, align: "center" }) : t.type === "Baidu" ? /* @__PURE__ */ i.jsx(ui, { text: e, align: "center" }) : t.type === "Alipay" ? /* @__PURE__ */ i.jsx(pi, { text: e, align: "center" }) : t.type === "Infoflow" ? /* @__PURE__ */ i.jsx(mi, { text: e, align: "center" }) : t.type === "Apple" ? /* @__PURE__ */ i.jsx(bi, { text: e, align: "center" }) : t.type === "AzureAD" ? /* @__PURE__ */ i.jsx($i, { text: e, align: "center" }) : t.type === "AzureADB2C" ? /* @__PURE__ */ i.jsx(_i, { text: e, align: "center" }) : t.type === "Slack" ? /* @__PURE__ */ i.jsx(ji, { text: e, align: "center" }) : t.type === "Steam" ? /* @__PURE__ */ i.jsx(Ai, { text: e, align: "center" }) : t.type === "Bilibili" ? /* @__PURE__ */ i.jsx(Oi, { text: e, align: "center" }) : t.type === "Okta" ? /* @__PURE__ */ i.jsx(Pi, { text: e, align: "center" }) : t.type === "Douyin" ? /* @__PURE__ */ i.jsx(Ni, { text: e, align: "center" }) : /* @__PURE__ */ i.jsx(
|
|
2994
2989
|
Di,
|
|
2995
2990
|
{
|
|
2996
2991
|
type: t.type,
|
|
2997
|
-
logoUrl:
|
|
2992
|
+
logoUrl: se(t)
|
|
2998
2993
|
},
|
|
2999
2994
|
t.type
|
|
3000
2995
|
);
|
|
3001
2996
|
}
|
|
3002
2997
|
function Qe(t, e) {
|
|
3003
|
-
const o = new URLSearchParams(e.search), r = o.get("client_id") ?? "",
|
|
2998
|
+
const o = new URLSearchParams(e.search), r = o.get("client_id") ?? "", a = o.get("state"), l = o.get("redirect_uri"), u = `${window.location.origin}/callback/saml`, g = t.name, c = `${r}&${a}&${g}&${l}&${u}`;
|
|
3004
2999
|
Gn(
|
|
3005
|
-
`${t.owner}/${
|
|
3000
|
+
`${t.owner}/${g}`,
|
|
3006
3001
|
btoa(c)
|
|
3007
|
-
).then((
|
|
3008
|
-
|
|
3002
|
+
).then((f) => {
|
|
3003
|
+
f.data2 === "POST" ? document.write(f.data) : window.location.href = f.data;
|
|
3009
3004
|
});
|
|
3010
3005
|
}
|
|
3011
3006
|
function Bt(t, e, o) {
|
|
3012
|
-
e.type === "MetaMask" ? import("./Web3Auth
|
|
3013
|
-
const
|
|
3014
|
-
|
|
3015
|
-
}) : e.type === "Web3Onboard" && import("./Web3Auth
|
|
3016
|
-
const
|
|
3017
|
-
|
|
3007
|
+
e.type === "MetaMask" ? import("./Web3Auth--YGIRlpi.js").then((r) => r.bO).then((r) => {
|
|
3008
|
+
const a = r.authViaMetaMask;
|
|
3009
|
+
a(t, e, o);
|
|
3010
|
+
}) : e.type === "Web3Onboard" && import("./Web3Auth--YGIRlpi.js").then((r) => r.bO).then((r) => {
|
|
3011
|
+
const a = r.authViaWeb3Onboard;
|
|
3012
|
+
a(t, e, o);
|
|
3018
3013
|
});
|
|
3019
3014
|
}
|
|
3020
|
-
function Ui(t, e, o, r,
|
|
3021
|
-
if (
|
|
3015
|
+
function Ui(t, e, o, r, a, l) {
|
|
3016
|
+
if (a === "small") {
|
|
3022
3017
|
if (t.category === "OAuth")
|
|
3023
|
-
return t.type === "WeChat" && t.clientId2 !== "" && t.clientSecret2 !== "" && t.disableSsl === !0 && !navigator.userAgent.includes("MicroMessenger") ? /* @__PURE__ */
|
|
3018
|
+
return t.type === "WeChat" && t.clientId2 !== "" && t.clientSecret2 !== "" && t.disableSsl === !0 && !navigator.userAgent.includes("MicroMessenger") ? /* @__PURE__ */ i.jsx("a", { children: /* @__PURE__ */ i.jsx(
|
|
3024
3019
|
"img",
|
|
3025
3020
|
{
|
|
3026
3021
|
width: o,
|
|
3027
3022
|
height: o,
|
|
3028
|
-
src:
|
|
3023
|
+
src: se(t),
|
|
3029
3024
|
alt: t.displayName,
|
|
3030
3025
|
className: "provider-img",
|
|
3031
3026
|
style: { margin: r },
|
|
@@ -3033,16 +3028,16 @@ function Ui(t, e, o, r, i, l) {
|
|
|
3033
3028
|
Zn(e, t, "signup");
|
|
3034
3029
|
}
|
|
3035
3030
|
}
|
|
3036
|
-
) }, t.displayName) : /* @__PURE__ */
|
|
3031
|
+
) }, t.displayName) : /* @__PURE__ */ i.jsx(
|
|
3037
3032
|
"a",
|
|
3038
3033
|
{
|
|
3039
3034
|
href: (void 0)(e, t, "signup"),
|
|
3040
|
-
children: /* @__PURE__ */
|
|
3035
|
+
children: /* @__PURE__ */ i.jsx(
|
|
3041
3036
|
"img",
|
|
3042
3037
|
{
|
|
3043
3038
|
width: o,
|
|
3044
3039
|
height: o,
|
|
3045
|
-
src:
|
|
3040
|
+
src: se(t),
|
|
3046
3041
|
alt: t.displayName,
|
|
3047
3042
|
className: "provider-img",
|
|
3048
3043
|
style: { margin: r }
|
|
@@ -3052,16 +3047,16 @@ function Ui(t, e, o, r, i, l) {
|
|
|
3052
3047
|
t.displayName
|
|
3053
3048
|
);
|
|
3054
3049
|
if (t.category === "SAML")
|
|
3055
|
-
return /* @__PURE__ */
|
|
3050
|
+
return /* @__PURE__ */ i.jsx(
|
|
3056
3051
|
"a",
|
|
3057
3052
|
{
|
|
3058
3053
|
onClick: () => Qe(t, l),
|
|
3059
|
-
children: /* @__PURE__ */
|
|
3054
|
+
children: /* @__PURE__ */ i.jsx(
|
|
3060
3055
|
"img",
|
|
3061
3056
|
{
|
|
3062
3057
|
width: o,
|
|
3063
3058
|
height: o,
|
|
3064
|
-
src:
|
|
3059
|
+
src: se(t),
|
|
3065
3060
|
alt: t.displayName,
|
|
3066
3061
|
className: "provider-img",
|
|
3067
3062
|
style: { margin: r }
|
|
@@ -3071,16 +3066,16 @@ function Ui(t, e, o, r, i, l) {
|
|
|
3071
3066
|
t.displayName
|
|
3072
3067
|
);
|
|
3073
3068
|
if (t.category === "Web3")
|
|
3074
|
-
return /* @__PURE__ */
|
|
3069
|
+
return /* @__PURE__ */ i.jsx(
|
|
3075
3070
|
"a",
|
|
3076
3071
|
{
|
|
3077
3072
|
onClick: () => Bt(e, t, "signup"),
|
|
3078
|
-
children: /* @__PURE__ */
|
|
3073
|
+
children: /* @__PURE__ */ i.jsx(
|
|
3079
3074
|
"img",
|
|
3080
3075
|
{
|
|
3081
3076
|
width: o,
|
|
3082
3077
|
height: o,
|
|
3083
|
-
src:
|
|
3078
|
+
src: se(t),
|
|
3084
3079
|
alt: t.displayName,
|
|
3085
3080
|
className: "provider-img",
|
|
3086
3081
|
style: { margin: r }
|
|
@@ -3090,7 +3085,7 @@ function Ui(t, e, o, r, i, l) {
|
|
|
3090
3085
|
t.displayName
|
|
3091
3086
|
);
|
|
3092
3087
|
} else if (t.type === "Custom") {
|
|
3093
|
-
const
|
|
3088
|
+
const u = Q.t("login:Sign in with {type}").replace("{type}", t.displayName), g = { display: "block", height: "55px", color: "#000" }, c = {
|
|
3094
3089
|
display: "flex",
|
|
3095
3090
|
alignItems: "center",
|
|
3096
3091
|
width: "calc(100% - 10px)",
|
|
@@ -3102,57 +3097,57 @@ function Ui(t, e, o, r, i, l) {
|
|
|
3102
3097
|
border: "0px",
|
|
3103
3098
|
borderRadius: "3px",
|
|
3104
3099
|
cursor: "pointer"
|
|
3105
|
-
},
|
|
3100
|
+
}, f = { justfyContent: "space-between" }, h = {
|
|
3106
3101
|
textAlign: "center",
|
|
3107
3102
|
width: "100%",
|
|
3108
3103
|
fontSize: "19px"
|
|
3109
3104
|
};
|
|
3110
3105
|
if (t.category === "OAuth")
|
|
3111
|
-
return /* @__PURE__ */
|
|
3106
|
+
return /* @__PURE__ */ i.jsx(
|
|
3112
3107
|
"a",
|
|
3113
3108
|
{
|
|
3114
3109
|
href: (void 0)(e, t, "signup"),
|
|
3115
|
-
style:
|
|
3116
|
-
children: /* @__PURE__ */
|
|
3117
|
-
/* @__PURE__ */
|
|
3110
|
+
style: g,
|
|
3111
|
+
children: /* @__PURE__ */ i.jsxs("div", { style: c, children: [
|
|
3112
|
+
/* @__PURE__ */ i.jsx(
|
|
3118
3113
|
"img",
|
|
3119
3114
|
{
|
|
3120
3115
|
width: 26,
|
|
3121
|
-
src:
|
|
3116
|
+
src: se(t),
|
|
3122
3117
|
alt: t.displayName,
|
|
3123
3118
|
className: "provider-img",
|
|
3124
|
-
style:
|
|
3119
|
+
style: f
|
|
3125
3120
|
}
|
|
3126
3121
|
),
|
|
3127
|
-
/* @__PURE__ */
|
|
3122
|
+
/* @__PURE__ */ i.jsx("span", { style: h, children: u })
|
|
3128
3123
|
] })
|
|
3129
3124
|
},
|
|
3130
3125
|
t.displayName
|
|
3131
3126
|
);
|
|
3132
3127
|
if (t.category === "SAML")
|
|
3133
|
-
return /* @__PURE__ */
|
|
3128
|
+
return /* @__PURE__ */ i.jsx(
|
|
3134
3129
|
"a",
|
|
3135
3130
|
{
|
|
3136
3131
|
onClick: () => Qe(t, l),
|
|
3137
|
-
style:
|
|
3138
|
-
children: /* @__PURE__ */
|
|
3139
|
-
/* @__PURE__ */
|
|
3132
|
+
style: g,
|
|
3133
|
+
children: /* @__PURE__ */ i.jsxs("div", { style: c, children: [
|
|
3134
|
+
/* @__PURE__ */ i.jsx(
|
|
3140
3135
|
"img",
|
|
3141
3136
|
{
|
|
3142
3137
|
width: 26,
|
|
3143
|
-
src:
|
|
3138
|
+
src: se(t),
|
|
3144
3139
|
alt: t.displayName,
|
|
3145
3140
|
className: "provider-img",
|
|
3146
|
-
style:
|
|
3141
|
+
style: f
|
|
3147
3142
|
}
|
|
3148
3143
|
),
|
|
3149
|
-
/* @__PURE__ */
|
|
3144
|
+
/* @__PURE__ */ i.jsx("span", { style: h, children: u })
|
|
3150
3145
|
] })
|
|
3151
3146
|
},
|
|
3152
3147
|
t.displayName
|
|
3153
3148
|
);
|
|
3154
3149
|
} else
|
|
3155
|
-
return t.category === "SAML" ? /* @__PURE__ */
|
|
3150
|
+
return t.category === "SAML" ? /* @__PURE__ */ i.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ i.jsx("a", { onClick: () => Qe(t, l), children: Je(t) }) }, t.displayName) : t.category === "Web3" ? /* @__PURE__ */ i.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ i.jsx("a", { onClick: () => Bt(e, t, "signup"), children: Je(t) }) }, t.displayName) : /* @__PURE__ */ i.jsx("div", { className: "provider-big-img", children: /* @__PURE__ */ i.jsx("a", { href: (void 0)(e, t, "signup"), children: Je(t) }) }, t.displayName);
|
|
3156
3151
|
}
|
|
3157
3152
|
function Wi(t) {
|
|
3158
3153
|
return t.length < 6 ? Q.t("user:The password must have at least 6 characters") : "";
|
|
@@ -3187,9 +3182,9 @@ function Yi(t, e) {
|
|
|
3187
3182
|
NoRepeat: qi
|
|
3188
3183
|
};
|
|
3189
3184
|
for (const r of e) {
|
|
3190
|
-
const
|
|
3191
|
-
if (
|
|
3192
|
-
const l =
|
|
3185
|
+
const a = o[r];
|
|
3186
|
+
if (a) {
|
|
3187
|
+
const l = a(t);
|
|
3193
3188
|
if (l !== "")
|
|
3194
3189
|
return l;
|
|
3195
3190
|
}
|
|
@@ -3201,7 +3196,7 @@ function Ki({
|
|
|
3201
3196
|
state: e,
|
|
3202
3197
|
setState: o
|
|
3203
3198
|
}) {
|
|
3204
|
-
const [r,
|
|
3199
|
+
const [r, a] = m.useState(!1), l = m.useRef(null);
|
|
3205
3200
|
m.useEffect(() => {
|
|
3206
3201
|
l.current || (l.current = document.getElementById(
|
|
3207
3202
|
"agreementDialog"
|
|
@@ -3209,16 +3204,16 @@ function Ki({
|
|
|
3209
3204
|
}, []), m.useEffect(() => {
|
|
3210
3205
|
l.current && (r ? l.current.showModal() : l.current.close());
|
|
3211
3206
|
}, [r]);
|
|
3212
|
-
const
|
|
3213
|
-
o({ ...e, agreement: !1 }),
|
|
3214
|
-
},
|
|
3215
|
-
o({ ...e, agreement: !0 }),
|
|
3207
|
+
const u = () => {
|
|
3208
|
+
o({ ...e, agreement: !1 }), a(!1);
|
|
3209
|
+
}, g = () => {
|
|
3210
|
+
o({ ...e, agreement: !0 }), a(!1);
|
|
3216
3211
|
}, c = () => {
|
|
3217
|
-
|
|
3212
|
+
a(!0);
|
|
3218
3213
|
};
|
|
3219
|
-
return /* @__PURE__ */
|
|
3220
|
-
/* @__PURE__ */
|
|
3221
|
-
/* @__PURE__ */
|
|
3214
|
+
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
3215
|
+
/* @__PURE__ */ i.jsx("dialog", { id: "agreementDialog", className: "modal", children: /* @__PURE__ */ i.jsxs("div", { className: "modal-box", children: [
|
|
3216
|
+
/* @__PURE__ */ i.jsx("div", { className: "mt-4 mb-8", children: /* @__PURE__ */ i.jsx(
|
|
3222
3217
|
"iframe",
|
|
3223
3218
|
{
|
|
3224
3219
|
src: t.termsOfUse,
|
|
@@ -3227,15 +3222,15 @@ function Ki({
|
|
|
3227
3222
|
sandbox: "allow-scripts"
|
|
3228
3223
|
}
|
|
3229
3224
|
) }),
|
|
3230
|
-
/* @__PURE__ */
|
|
3231
|
-
/* @__PURE__ */
|
|
3232
|
-
/* @__PURE__ */
|
|
3233
|
-
/* @__PURE__ */
|
|
3234
|
-
/* @__PURE__ */
|
|
3225
|
+
/* @__PURE__ */ i.jsxs("div", { className: "modal-action", children: [
|
|
3226
|
+
/* @__PURE__ */ i.jsx("form", { method: "dialog", className: "modal-backdrop", children: /* @__PURE__ */ i.jsx("button", { children: "Close" }) }),
|
|
3227
|
+
/* @__PURE__ */ i.jsxs("form", { method: "dialog", className: "flex gap-3", children: [
|
|
3228
|
+
/* @__PURE__ */ i.jsx("button", { className: "btn", onClick: u, children: "Cancel" }, "closebtn"),
|
|
3229
|
+
/* @__PURE__ */ i.jsx(
|
|
3235
3230
|
"button",
|
|
3236
3231
|
{
|
|
3237
3232
|
className: "btn btn-primary",
|
|
3238
|
-
onClick:
|
|
3233
|
+
onClick: g,
|
|
3239
3234
|
children: "OK"
|
|
3240
3235
|
},
|
|
3241
3236
|
"okbtn"
|
|
@@ -3243,12 +3238,12 @@ function Ki({
|
|
|
3243
3238
|
] })
|
|
3244
3239
|
] })
|
|
3245
3240
|
] }) }),
|
|
3246
|
-
/* @__PURE__ */
|
|
3247
|
-
/* @__PURE__ */
|
|
3241
|
+
/* @__PURE__ */ i.jsx("input", { checked: !!e.agreement, type: "checkbox", readOnly: !0 }),
|
|
3242
|
+
/* @__PURE__ */ i.jsx("button", { onClick: c, children: "Open Terms" })
|
|
3248
3243
|
] });
|
|
3249
3244
|
}
|
|
3250
3245
|
async function Ji(t, e, o) {
|
|
3251
|
-
const { callbackUrl: r = window.location.href, redirect:
|
|
3246
|
+
const { callbackUrl: r = window.location.href, redirect: a = !0 } = {}, { prefix: l = "/api/auth", ...u } = {}, c = t === "email", h = `${`${l}/signin/${t}`}?${new URLSearchParams(o)}`, $ = await fetch(`${l}/csrf`), { csrfToken: w } = await $.json(), b = await fetch(h, {
|
|
3252
3247
|
method: "post",
|
|
3253
3248
|
headers: {
|
|
3254
3249
|
"Content-Type": "application/x-www-form-urlencoded",
|
|
@@ -3256,41 +3251,41 @@ async function Ji(t, e, o) {
|
|
|
3256
3251
|
},
|
|
3257
3252
|
// @ts-expect-error -- ignore
|
|
3258
3253
|
body: new URLSearchParams({
|
|
3259
|
-
...
|
|
3254
|
+
...u,
|
|
3260
3255
|
csrfToken: w,
|
|
3261
3256
|
callbackUrl: r
|
|
3262
3257
|
})
|
|
3263
|
-
}),
|
|
3264
|
-
if (
|
|
3265
|
-
window.location.href =
|
|
3258
|
+
}), L = await b.clone().json(), F = new URL(L.url).searchParams.get("error");
|
|
3259
|
+
if (a || !c || !F) {
|
|
3260
|
+
window.location.href = L.url ?? r, L.url.includes("#") && window.location.reload();
|
|
3266
3261
|
return;
|
|
3267
3262
|
}
|
|
3268
|
-
return
|
|
3263
|
+
return b;
|
|
3269
3264
|
}
|
|
3270
3265
|
function J({
|
|
3271
3266
|
label: t,
|
|
3272
3267
|
name: e,
|
|
3273
3268
|
rules: o,
|
|
3274
3269
|
inputEl: r,
|
|
3275
|
-
setFieldValue:
|
|
3270
|
+
setFieldValue: a,
|
|
3276
3271
|
onChange: l,
|
|
3277
|
-
...
|
|
3272
|
+
...u
|
|
3278
3273
|
}) {
|
|
3279
|
-
return /* @__PURE__ */
|
|
3280
|
-
/* @__PURE__ */
|
|
3281
|
-
r || /* @__PURE__ */
|
|
3274
|
+
return /* @__PURE__ */ i.jsxs("label", { className: "form-control w-full max-w-xs", htmlFor: e, children: [
|
|
3275
|
+
/* @__PURE__ */ i.jsx("div", { className: "label", children: /* @__PURE__ */ i.jsx("span", { className: "label-text", children: t }) }),
|
|
3276
|
+
r || /* @__PURE__ */ i.jsx(
|
|
3282
3277
|
"input",
|
|
3283
3278
|
{
|
|
3284
3279
|
type: "text",
|
|
3285
|
-
...
|
|
3280
|
+
...u,
|
|
3286
3281
|
name: e,
|
|
3287
3282
|
className: "input input-bordered w-full max-w-xs",
|
|
3288
|
-
onChange: (
|
|
3289
|
-
|
|
3283
|
+
onChange: (g) => {
|
|
3284
|
+
a(e, g.target.value), l == null || l(g);
|
|
3290
3285
|
}
|
|
3291
3286
|
}
|
|
3292
3287
|
),
|
|
3293
|
-
/* @__PURE__ */
|
|
3288
|
+
/* @__PURE__ */ i.jsx("div", { className: "label flex-col", children: o == null ? void 0 : o.map((g, c) => /* @__PURE__ */ i.jsx("span", { className: "label-text-alt", children: g.message }, e + c)) })
|
|
3294
3289
|
] });
|
|
3295
3290
|
}
|
|
3296
3291
|
const Qi = (t, e) => (delete t.applicationName, delete t.emailOrPhoneMode, delete t.isTermsOfUseVisible, {
|
|
@@ -3302,170 +3297,170 @@ const Qi = (t, e) => (delete t.applicationName, delete t.emailOrPhoneMode, delet
|
|
|
3302
3297
|
}), Zi = (t, e, o) => {
|
|
3303
3298
|
t.preventDefault();
|
|
3304
3299
|
const r = Qi(e, o);
|
|
3305
|
-
console.log(r), Wn(r).then((
|
|
3306
|
-
|
|
3307
|
-
let
|
|
3308
|
-
l.status === "ok" ? (
|
|
3309
|
-
}) : (alert("redirect"), Ji())) :
|
|
3300
|
+
console.log(r), Wn(r).then((a) => {
|
|
3301
|
+
a.status === "ok" ? (r.username = a.data.split("/")[1], o && Nn(o) ? Un("").then((l) => {
|
|
3302
|
+
let u = null;
|
|
3303
|
+
l.status === "ok" ? (u = l.data, u.organization = l.data2, console.log("account", u), alert("redirect")) : G("error", `Failed to sign in: ${l.msg}`);
|
|
3304
|
+
}) : (alert("redirect"), Ji())) : G("error", a.msg);
|
|
3310
3305
|
});
|
|
3311
3306
|
};
|
|
3312
|
-
function Xi(t, e, o, r,
|
|
3307
|
+
function Xi(t, e, o, r, a) {
|
|
3313
3308
|
if (!e.visible)
|
|
3314
3309
|
return null;
|
|
3315
|
-
const
|
|
3316
|
-
o[g] =
|
|
3317
|
-
},
|
|
3310
|
+
const l = (g, c) => {
|
|
3311
|
+
o[g] = c, r(o);
|
|
3312
|
+
}, u = e.required;
|
|
3318
3313
|
if (e.name === "Username")
|
|
3319
|
-
return /* @__PURE__ */
|
|
3314
|
+
return /* @__PURE__ */ i.jsx(
|
|
3320
3315
|
J,
|
|
3321
3316
|
{
|
|
3322
3317
|
name: "username",
|
|
3323
3318
|
className: "signup-username",
|
|
3324
|
-
label: e.label ? e.label :
|
|
3319
|
+
label: e.label ? e.label : a("signup.username"),
|
|
3325
3320
|
rules: [
|
|
3326
3321
|
{
|
|
3327
|
-
required:
|
|
3328
|
-
message:
|
|
3322
|
+
required: u,
|
|
3323
|
+
message: a("forget.username"),
|
|
3329
3324
|
whitespace: !0
|
|
3330
3325
|
}
|
|
3331
3326
|
],
|
|
3332
3327
|
placeholder: e.placeholder,
|
|
3333
3328
|
disabled: o.invitation !== void 0 && o.invitation.username !== "",
|
|
3334
|
-
setFieldValue:
|
|
3329
|
+
setFieldValue: l
|
|
3335
3330
|
}
|
|
3336
3331
|
);
|
|
3337
3332
|
if (e.name === "Display name")
|
|
3338
|
-
return e.rule === "First, last" && jn() !== "zh" ? /* @__PURE__ */
|
|
3339
|
-
/* @__PURE__ */
|
|
3333
|
+
return e.rule === "First, last" && jn() !== "zh" ? /* @__PURE__ */ i.jsxs(m.Fragment, { children: [
|
|
3334
|
+
/* @__PURE__ */ i.jsx(
|
|
3340
3335
|
J,
|
|
3341
3336
|
{
|
|
3342
3337
|
name: "firstName",
|
|
3343
3338
|
className: "signup-first-name",
|
|
3344
|
-
label: e.label ? e.label :
|
|
3339
|
+
label: e.label ? e.label : a("general.firstName"),
|
|
3345
3340
|
rules: [
|
|
3346
3341
|
{
|
|
3347
|
-
required:
|
|
3348
|
-
message:
|
|
3342
|
+
required: u,
|
|
3343
|
+
message: a("forget.firstName"),
|
|
3349
3344
|
whitespace: !0
|
|
3350
3345
|
}
|
|
3351
3346
|
],
|
|
3352
3347
|
placeholder: e.placeholder,
|
|
3353
|
-
setFieldValue:
|
|
3348
|
+
setFieldValue: l
|
|
3354
3349
|
}
|
|
3355
3350
|
),
|
|
3356
|
-
/* @__PURE__ */
|
|
3351
|
+
/* @__PURE__ */ i.jsx(
|
|
3357
3352
|
J,
|
|
3358
3353
|
{
|
|
3359
3354
|
name: "lastName",
|
|
3360
3355
|
className: "signup-last-name",
|
|
3361
|
-
label: e.label ? e.label :
|
|
3356
|
+
label: e.label ? e.label : a("general.lastName"),
|
|
3362
3357
|
rules: [
|
|
3363
3358
|
{
|
|
3364
|
-
required:
|
|
3365
|
-
message:
|
|
3359
|
+
required: u,
|
|
3360
|
+
message: a("forget.lastName"),
|
|
3366
3361
|
whitespace: !0
|
|
3367
3362
|
}
|
|
3368
3363
|
],
|
|
3369
3364
|
placeholder: e.placeholder,
|
|
3370
|
-
setFieldValue:
|
|
3365
|
+
setFieldValue: l
|
|
3371
3366
|
}
|
|
3372
3367
|
)
|
|
3373
|
-
] }) : /* @__PURE__ */
|
|
3368
|
+
] }) : /* @__PURE__ */ i.jsx(
|
|
3374
3369
|
J,
|
|
3375
3370
|
{
|
|
3376
3371
|
name: "name",
|
|
3377
3372
|
className: "signup-name",
|
|
3378
|
-
label: e.label ? e.label : e.rule === "Real name" || e.rule === "First, last" ?
|
|
3373
|
+
label: e.label ? e.label : e.rule === "Real name" || e.rule === "First, last" ? a("general.realName") : a("general.displayName"),
|
|
3379
3374
|
rules: [
|
|
3380
3375
|
{
|
|
3381
|
-
required:
|
|
3382
|
-
message: e.rule === "Real name" || e.rule === "First, last" ?
|
|
3376
|
+
required: u,
|
|
3377
|
+
message: e.rule === "Real name" || e.rule === "First, last" ? a("forget.realName") : a("forget.displayName"),
|
|
3383
3378
|
whitespace: !0
|
|
3384
3379
|
}
|
|
3385
3380
|
],
|
|
3386
3381
|
placeholder: e.placeholder,
|
|
3387
|
-
setFieldValue:
|
|
3382
|
+
setFieldValue: l
|
|
3388
3383
|
}
|
|
3389
3384
|
);
|
|
3390
3385
|
if (e.name === "Affiliation")
|
|
3391
|
-
return /* @__PURE__ */
|
|
3386
|
+
return /* @__PURE__ */ i.jsx(
|
|
3392
3387
|
J,
|
|
3393
3388
|
{
|
|
3394
3389
|
name: "affiliation",
|
|
3395
3390
|
className: "signup-affiliation",
|
|
3396
|
-
label: e.label ? e.label :
|
|
3391
|
+
label: e.label ? e.label : a("user.affiliation"),
|
|
3397
3392
|
rules: [
|
|
3398
3393
|
{
|
|
3399
|
-
required:
|
|
3400
|
-
message:
|
|
3394
|
+
required: u,
|
|
3395
|
+
message: a("forget.affiliation"),
|
|
3401
3396
|
whitespace: !0
|
|
3402
3397
|
}
|
|
3403
3398
|
],
|
|
3404
3399
|
placeholder: e.placeholder,
|
|
3405
|
-
setFieldValue:
|
|
3400
|
+
setFieldValue: l
|
|
3406
3401
|
}
|
|
3407
3402
|
);
|
|
3408
3403
|
if (e.name === "ID card")
|
|
3409
|
-
return /* @__PURE__ */
|
|
3404
|
+
return /* @__PURE__ */ i.jsx(
|
|
3410
3405
|
J,
|
|
3411
3406
|
{
|
|
3412
3407
|
name: "idCard",
|
|
3413
3408
|
className: "signup-idcard",
|
|
3414
|
-
label: e.label ? e.label :
|
|
3409
|
+
label: e.label ? e.label : a("user.idCard"),
|
|
3415
3410
|
rules: [
|
|
3416
3411
|
{
|
|
3417
|
-
required:
|
|
3418
|
-
message:
|
|
3412
|
+
required: u,
|
|
3413
|
+
message: a("forget.idCard"),
|
|
3419
3414
|
whitespace: !0
|
|
3420
3415
|
},
|
|
3421
3416
|
{
|
|
3422
|
-
required:
|
|
3417
|
+
required: u,
|
|
3423
3418
|
pattern: new RegExp(
|
|
3424
3419
|
/^[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]$/,
|
|
3425
3420
|
"g"
|
|
3426
3421
|
),
|
|
3427
|
-
message:
|
|
3422
|
+
message: a("format.idCard")
|
|
3428
3423
|
}
|
|
3429
3424
|
],
|
|
3430
3425
|
placeholder: e.placeholder,
|
|
3431
|
-
setFieldValue:
|
|
3426
|
+
setFieldValue: l
|
|
3432
3427
|
}
|
|
3433
3428
|
);
|
|
3434
3429
|
if (e.name === "Email" || e.name === "Phone" || e.name === "Email or Phone" || e.name === "Phone or Email") {
|
|
3435
|
-
const g = () => /* @__PURE__ */
|
|
3436
|
-
/* @__PURE__ */
|
|
3430
|
+
const g = () => /* @__PURE__ */ i.jsxs(m.Fragment, { children: [
|
|
3431
|
+
/* @__PURE__ */ i.jsx(
|
|
3437
3432
|
J,
|
|
3438
3433
|
{
|
|
3439
3434
|
name: "email",
|
|
3440
|
-
label: e.label ? e.label :
|
|
3435
|
+
label: e.label ? e.label : a("general.email"),
|
|
3441
3436
|
rules: [
|
|
3442
3437
|
{
|
|
3443
|
-
required:
|
|
3444
|
-
message:
|
|
3438
|
+
required: u,
|
|
3439
|
+
message: a("forget.email")
|
|
3445
3440
|
}
|
|
3446
3441
|
],
|
|
3447
3442
|
placeholder: e.placeholder,
|
|
3448
3443
|
disabled: o.invitation !== void 0 && o.invitation.email !== "",
|
|
3449
|
-
onChange: (
|
|
3450
|
-
const
|
|
3451
|
-
console.log("email",
|
|
3444
|
+
onChange: (f) => {
|
|
3445
|
+
const h = f.target.value;
|
|
3446
|
+
console.log("email", h, vt(h)), h !== "" && !vt(h) ? r({ ...o, email: h, validEmail: !1 }) : r({ ...o, email: h, validEmail: !0 });
|
|
3452
3447
|
},
|
|
3453
|
-
setFieldValue:
|
|
3448
|
+
setFieldValue: l
|
|
3454
3449
|
}
|
|
3455
3450
|
),
|
|
3456
|
-
e.rule !== "No verification" && /* @__PURE__ */
|
|
3451
|
+
e.rule !== "No verification" && /* @__PURE__ */ i.jsx(
|
|
3457
3452
|
J,
|
|
3458
3453
|
{
|
|
3459
3454
|
name: "emailCode",
|
|
3460
3455
|
className: "signup-email-code",
|
|
3461
|
-
label: e.label ? e.label :
|
|
3456
|
+
label: e.label ? e.label : a("code.email"),
|
|
3462
3457
|
rules: [
|
|
3463
3458
|
{
|
|
3464
|
-
required:
|
|
3465
|
-
message:
|
|
3459
|
+
required: u,
|
|
3460
|
+
message: a("forget.code")
|
|
3466
3461
|
}
|
|
3467
3462
|
],
|
|
3468
|
-
inputEl: /* @__PURE__ */
|
|
3463
|
+
inputEl: /* @__PURE__ */ i.jsx(
|
|
3469
3464
|
to,
|
|
3470
3465
|
{
|
|
3471
3466
|
disabled: !o.validEmail,
|
|
@@ -3473,64 +3468,62 @@ function Xi(t, e, o, r, i, l, d) {
|
|
|
3473
3468
|
onButtonClickArgs: [o.email, "email", t.name],
|
|
3474
3469
|
application: t,
|
|
3475
3470
|
countryCode: "US",
|
|
3476
|
-
onChange: (
|
|
3477
|
-
CLIENT_ID: l,
|
|
3478
|
-
CLIENT_SECRET: d
|
|
3471
|
+
onChange: (f) => r({ ...o, emailCode: f })
|
|
3479
3472
|
}
|
|
3480
3473
|
),
|
|
3481
|
-
setFieldValue:
|
|
3474
|
+
setFieldValue: l
|
|
3482
3475
|
}
|
|
3483
3476
|
)
|
|
3484
|
-
] }),
|
|
3477
|
+
] }), c = () => /* @__PURE__ */ i.jsx(i.Fragment, {});
|
|
3485
3478
|
if (e.name === "Email")
|
|
3486
3479
|
return g();
|
|
3487
3480
|
if (e.name === "Phone")
|
|
3488
|
-
return
|
|
3481
|
+
return c();
|
|
3489
3482
|
if (e.name === "Email or Phone" || e.name === "Phone or Email") {
|
|
3490
|
-
let
|
|
3491
|
-
return
|
|
3492
|
-
/* @__PURE__ */
|
|
3493
|
-
|
|
3483
|
+
let f = o.emailOrPhoneMode;
|
|
3484
|
+
return f === "" && (f = e.name === "Email or Phone" ? "Email" : "Phone"), /* @__PURE__ */ i.jsxs(m.Fragment, { children: [
|
|
3485
|
+
/* @__PURE__ */ i.jsx("div", { style: { marginTop: "30px", marginBottom: "20px" } }),
|
|
3486
|
+
f === "Email" ? g() : c()
|
|
3494
3487
|
] });
|
|
3495
3488
|
} else
|
|
3496
3489
|
return null;
|
|
3497
3490
|
} else {
|
|
3498
3491
|
if (e.name === "Password")
|
|
3499
|
-
return /* @__PURE__ */
|
|
3492
|
+
return /* @__PURE__ */ i.jsx(
|
|
3500
3493
|
J,
|
|
3501
3494
|
{
|
|
3502
3495
|
name: "password",
|
|
3503
3496
|
className: "signup-password",
|
|
3504
|
-
label: e.label ? e.label :
|
|
3497
|
+
label: e.label ? e.label : a("general.password"),
|
|
3505
3498
|
rules: [
|
|
3506
3499
|
{
|
|
3507
|
-
required:
|
|
3500
|
+
required: u,
|
|
3508
3501
|
validateTrigger: "onChange",
|
|
3509
|
-
validator: (g,
|
|
3510
|
-
const
|
|
3511
|
-
|
|
3502
|
+
validator: (g, c) => {
|
|
3503
|
+
const f = Yi(
|
|
3504
|
+
c,
|
|
3512
3505
|
t.organizationObj.passwordOptions
|
|
3513
3506
|
);
|
|
3514
|
-
return
|
|
3507
|
+
return f === "" ? Promise.resolve() : Promise.reject(f);
|
|
3515
3508
|
}
|
|
3516
3509
|
}
|
|
3517
3510
|
],
|
|
3518
|
-
setFieldValue:
|
|
3511
|
+
setFieldValue: l,
|
|
3519
3512
|
type: "password",
|
|
3520
3513
|
placeholder: e.placeholder
|
|
3521
3514
|
}
|
|
3522
3515
|
);
|
|
3523
3516
|
if (e.name === "Confirm password")
|
|
3524
|
-
return /* @__PURE__ */
|
|
3517
|
+
return /* @__PURE__ */ i.jsx(
|
|
3525
3518
|
J,
|
|
3526
3519
|
{
|
|
3527
3520
|
name: "confirm",
|
|
3528
3521
|
className: "signup-confirm",
|
|
3529
|
-
label: e.label ? e.label :
|
|
3522
|
+
label: e.label ? e.label : a("signup.confirm"),
|
|
3530
3523
|
rules: [
|
|
3531
3524
|
{
|
|
3532
|
-
required:
|
|
3533
|
-
message:
|
|
3525
|
+
required: u,
|
|
3526
|
+
message: a("forget.confirm")
|
|
3534
3527
|
}
|
|
3535
3528
|
// ({ getFieldValue }) => ({
|
|
3536
3529
|
// validator(rule, value) {
|
|
@@ -3547,29 +3540,29 @@ function Xi(t, e, o, r, i, l, d) {
|
|
|
3547
3540
|
],
|
|
3548
3541
|
type: "password",
|
|
3549
3542
|
placeholder: e.placeholder,
|
|
3550
|
-
setFieldValue:
|
|
3543
|
+
setFieldValue: l
|
|
3551
3544
|
}
|
|
3552
3545
|
);
|
|
3553
3546
|
if (e.name === "Invitation code")
|
|
3554
|
-
return /* @__PURE__ */
|
|
3547
|
+
return /* @__PURE__ */ i.jsx(
|
|
3555
3548
|
J,
|
|
3556
3549
|
{
|
|
3557
3550
|
name: "invitationCode",
|
|
3558
3551
|
className: "signup-invitation-code",
|
|
3559
|
-
label: e.label ? e.label :
|
|
3552
|
+
label: e.label ? e.label : a("application.invitationCode"),
|
|
3560
3553
|
rules: [
|
|
3561
3554
|
{
|
|
3562
|
-
required:
|
|
3563
|
-
message:
|
|
3555
|
+
required: u,
|
|
3556
|
+
message: a("forget.invitationCode")
|
|
3564
3557
|
}
|
|
3565
3558
|
],
|
|
3566
3559
|
placeholder: e.placeholder,
|
|
3567
3560
|
disabled: o.invitation !== void 0 && o.invitation !== "",
|
|
3568
|
-
setFieldValue:
|
|
3561
|
+
setFieldValue: l
|
|
3569
3562
|
}
|
|
3570
3563
|
);
|
|
3571
3564
|
if (e.name === "Agreement")
|
|
3572
|
-
return /* @__PURE__ */
|
|
3565
|
+
return /* @__PURE__ */ i.jsx(
|
|
3573
3566
|
Ki,
|
|
3574
3567
|
{
|
|
3575
3568
|
state: o,
|
|
@@ -3578,14 +3571,14 @@ function Xi(t, e, o, r, i, l, d) {
|
|
|
3578
3571
|
}
|
|
3579
3572
|
);
|
|
3580
3573
|
if (e.name.startsWith("Text "))
|
|
3581
|
-
return /* @__PURE__ */
|
|
3574
|
+
return /* @__PURE__ */ i.jsx("div", { dangerouslySetInnerHTML: { __html: e.label } });
|
|
3582
3575
|
if (e.name === "Signup button")
|
|
3583
|
-
return /* @__PURE__ */
|
|
3584
|
-
/* @__PURE__ */
|
|
3576
|
+
return /* @__PURE__ */ i.jsxs("form", { onSubmit: (g) => Zi(g, o, t), children: [
|
|
3577
|
+
/* @__PURE__ */ i.jsx("button", { className: "btn btn-primary", type: "submit", children: a("signup.signUp") }),
|
|
3585
3578
|
" ",
|
|
3586
|
-
|
|
3579
|
+
a("signup.haveAccount"),
|
|
3587
3580
|
" ",
|
|
3588
|
-
/* @__PURE__ */
|
|
3581
|
+
/* @__PURE__ */ i.jsx(
|
|
3589
3582
|
"a",
|
|
3590
3583
|
{
|
|
3591
3584
|
className: "signup-link",
|
|
@@ -3593,14 +3586,14 @@ function Xi(t, e, o, r, i, l, d) {
|
|
|
3593
3586
|
const g = sessionStorage.getItem("signinUrl");
|
|
3594
3587
|
alert("redirect");
|
|
3595
3588
|
},
|
|
3596
|
-
children:
|
|
3589
|
+
children: a("signup.signInNow")
|
|
3597
3590
|
}
|
|
3598
3591
|
)
|
|
3599
3592
|
] });
|
|
3600
3593
|
if (e.name === "Providers" && t.providers) {
|
|
3601
|
-
const g =
|
|
3602
|
-
return (e.rule === "None" || e.rule === "") && (e.rule = g ? "small" : "big"), t.providers.filter((
|
|
3603
|
-
|
|
3594
|
+
const g = Rn(t) || Pn(t) || In(t) || Fn(t);
|
|
3595
|
+
return (e.rule === "None" || e.rule === "") && (e.rule = g ? "small" : "big"), t.providers.filter((c) => Pt(c)).map((c) => Ui(
|
|
3596
|
+
c.provider,
|
|
3604
3597
|
t,
|
|
3605
3598
|
null,
|
|
3606
3599
|
null,
|
|
@@ -3668,7 +3661,7 @@ Q.use(Sn).init({
|
|
|
3668
3661
|
}
|
|
3669
3662
|
});
|
|
3670
3663
|
function nr(t, e, o) {
|
|
3671
|
-
const r = /* @__PURE__ */
|
|
3664
|
+
const r = /* @__PURE__ */ i.jsxs(
|
|
3672
3665
|
"svg",
|
|
3673
3666
|
{
|
|
3674
3667
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3682,11 +3675,11 @@ function nr(t, e, o) {
|
|
|
3682
3675
|
"stroke-linejoin": "round",
|
|
3683
3676
|
className: "lucide lucide-eye",
|
|
3684
3677
|
children: [
|
|
3685
|
-
/* @__PURE__ */
|
|
3686
|
-
/* @__PURE__ */
|
|
3678
|
+
/* @__PURE__ */ i.jsx("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
|
3679
|
+
/* @__PURE__ */ i.jsx("circle", { cx: "12", cy: "12", r: "3" })
|
|
3687
3680
|
]
|
|
3688
3681
|
}
|
|
3689
|
-
),
|
|
3682
|
+
), a = /* @__PURE__ */ i.jsxs(
|
|
3690
3683
|
"svg",
|
|
3691
3684
|
{
|
|
3692
3685
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3700,16 +3693,16 @@ function nr(t, e, o) {
|
|
|
3700
3693
|
"stroke-linejoin": "round",
|
|
3701
3694
|
className: "lucide lucide-eye-off",
|
|
3702
3695
|
children: [
|
|
3703
|
-
/* @__PURE__ */
|
|
3704
|
-
/* @__PURE__ */
|
|
3705
|
-
/* @__PURE__ */
|
|
3706
|
-
/* @__PURE__ */
|
|
3696
|
+
/* @__PURE__ */ i.jsx("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
|
3697
|
+
/* @__PURE__ */ i.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" }),
|
|
3698
|
+
/* @__PURE__ */ i.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" }),
|
|
3699
|
+
/* @__PURE__ */ i.jsx("line", { x1: "2", x2: "22", y1: "2", y2: "22" })
|
|
3707
3700
|
]
|
|
3708
3701
|
}
|
|
3709
|
-
), l = Me(t),
|
|
3702
|
+
), l = Me(t), u = ee(t);
|
|
3710
3703
|
if (l === "password") {
|
|
3711
|
-
const
|
|
3712
|
-
return /* @__PURE__ */
|
|
3704
|
+
const g = e.password.state[u];
|
|
3705
|
+
return /* @__PURE__ */ i.jsxs(
|
|
3713
3706
|
o,
|
|
3714
3707
|
{
|
|
3715
3708
|
variant: "ghost",
|
|
@@ -3718,19 +3711,19 @@ function nr(t, e, o) {
|
|
|
3718
3711
|
onClick: (c) => {
|
|
3719
3712
|
c.preventDefault(), c.stopPropagation(), e.password.setState({
|
|
3720
3713
|
...e.password.state,
|
|
3721
|
-
[
|
|
3714
|
+
[u]: !g
|
|
3722
3715
|
});
|
|
3723
3716
|
},
|
|
3724
3717
|
children: [
|
|
3725
|
-
|
|
3726
|
-
/* @__PURE__ */
|
|
3718
|
+
g ? a : r,
|
|
3719
|
+
/* @__PURE__ */ i.jsx("span", { className: "sr-only", children: "Toggle password visibility" })
|
|
3727
3720
|
]
|
|
3728
3721
|
}
|
|
3729
3722
|
);
|
|
3730
3723
|
} else
|
|
3731
3724
|
return null;
|
|
3732
3725
|
}
|
|
3733
|
-
function
|
|
3726
|
+
function ee(t) {
|
|
3734
3727
|
const e = {
|
|
3735
3728
|
ID: "id",
|
|
3736
3729
|
Username: "username",
|
|
@@ -3749,17 +3742,17 @@ function oe(t) {
|
|
|
3749
3742
|
return Object.keys(e).includes(t.name) ? e[t.name] : t.name;
|
|
3750
3743
|
}
|
|
3751
3744
|
function Me(t, e) {
|
|
3752
|
-
const o = ["password", "confirm"], r =
|
|
3745
|
+
const o = ["password", "confirm"], r = ee(t);
|
|
3753
3746
|
return o.includes(r) && !(e != null && e.hidePassword[r]) ? "password" : "text";
|
|
3754
3747
|
}
|
|
3755
3748
|
function or(t) {
|
|
3756
3749
|
return Object.fromEntries(
|
|
3757
|
-
t.filter((e) => Me(e) === "password").map((e) => [
|
|
3750
|
+
t.filter((e) => Me(e) === "password").map((e) => [ee(e), !1])
|
|
3758
3751
|
);
|
|
3759
3752
|
}
|
|
3760
3753
|
function ar(t) {
|
|
3761
3754
|
return {
|
|
3762
|
-
name:
|
|
3755
|
+
name: ee(t),
|
|
3763
3756
|
label: t.label || t.name,
|
|
3764
3757
|
placeholder: t.placeholder,
|
|
3765
3758
|
required: t.required,
|
|
@@ -3767,24 +3760,24 @@ function ar(t) {
|
|
|
3767
3760
|
};
|
|
3768
3761
|
}
|
|
3769
3762
|
function ir(t, e) {
|
|
3770
|
-
const o =
|
|
3763
|
+
const o = ee(e);
|
|
3771
3764
|
let r = t.string();
|
|
3772
3765
|
return o === "email" && (r = r.email()), e.required || (r = r.optional()), r;
|
|
3773
3766
|
}
|
|
3774
3767
|
function rr(t) {
|
|
3775
|
-
const e = t.map((r) => [
|
|
3768
|
+
const e = t.map((r) => [ee(r), ""]), o = t.filter((r) => qt(r)).map((r) => [ee(r) + "Code", ""]);
|
|
3776
3769
|
return Object.fromEntries([...e, ...o]);
|
|
3777
3770
|
}
|
|
3778
3771
|
function qt(t) {
|
|
3779
|
-
const e =
|
|
3772
|
+
const e = ee(t);
|
|
3780
3773
|
return (e === "email" || e === "phone") && t.rule !== "None";
|
|
3781
3774
|
}
|
|
3782
3775
|
function lr(t) {
|
|
3783
3776
|
return t.visible === !0;
|
|
3784
3777
|
}
|
|
3785
3778
|
function cr(t) {
|
|
3786
|
-
var
|
|
3787
|
-
const { t: e, i18n: o } = Te(), [r,
|
|
3779
|
+
var $;
|
|
3780
|
+
const { t: e, i18n: o } = Te(), [r, a] = m.useState({
|
|
3788
3781
|
applicationName: t.applicationName ?? null,
|
|
3789
3782
|
email: "",
|
|
3790
3783
|
phone: "",
|
|
@@ -3800,115 +3793,97 @@ function cr(t) {
|
|
|
3800
3793
|
});
|
|
3801
3794
|
m.useRef();
|
|
3802
3795
|
const l = (w) => {
|
|
3803
|
-
w !== void 0 && Xe(
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
Y("error", x.msg);
|
|
3811
|
-
return;
|
|
3796
|
+
w !== void 0 && Xe("admin", w).then(
|
|
3797
|
+
(b) => {
|
|
3798
|
+
if (b.status === "error") {
|
|
3799
|
+
G("error", b.msg);
|
|
3800
|
+
return;
|
|
3801
|
+
}
|
|
3802
|
+
f(b.data);
|
|
3812
3803
|
}
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
g(E);
|
|
3804
|
+
);
|
|
3805
|
+
}, u = (w) => {
|
|
3806
|
+
It(w).then((b) => {
|
|
3807
|
+
if (b.status === "ok") {
|
|
3808
|
+
const L = b.data;
|
|
3809
|
+
f(L);
|
|
3820
3810
|
} else
|
|
3821
|
-
|
|
3811
|
+
f(null), a({
|
|
3822
3812
|
...r,
|
|
3823
|
-
msg:
|
|
3813
|
+
msg: b.msg
|
|
3824
3814
|
});
|
|
3825
3815
|
});
|
|
3826
|
-
},
|
|
3827
|
-
|
|
3828
|
-
(
|
|
3829
|
-
if (
|
|
3830
|
-
|
|
3816
|
+
}, g = () => t.application, c = (w, b) => {
|
|
3817
|
+
Nt(w, b).then(
|
|
3818
|
+
(L) => {
|
|
3819
|
+
if (L.status === "error") {
|
|
3820
|
+
G("error", L.msg);
|
|
3831
3821
|
return;
|
|
3832
3822
|
}
|
|
3833
|
-
|
|
3823
|
+
a({ ...r, invitation: L.data });
|
|
3834
3824
|
}
|
|
3835
3825
|
);
|
|
3836
|
-
},
|
|
3826
|
+
}, f = (w) => {
|
|
3837
3827
|
t.onUpdateApplication(w);
|
|
3838
3828
|
};
|
|
3839
3829
|
m.useEffect(() => {
|
|
3840
|
-
const w =
|
|
3830
|
+
const w = Ft();
|
|
3841
3831
|
if (w !== null) {
|
|
3842
|
-
const
|
|
3832
|
+
const b = window.location.pathname.replace(
|
|
3843
3833
|
"/signup/oauth/authorize",
|
|
3844
3834
|
"/login/oauth/authorize"
|
|
3845
3835
|
);
|
|
3846
|
-
sessionStorage.setItem("signinUrl",
|
|
3836
|
+
sessionStorage.setItem("signinUrl", b + window.location.search);
|
|
3847
3837
|
}
|
|
3848
|
-
if (
|
|
3838
|
+
if (g() === void 0)
|
|
3849
3839
|
if (r.applicationName !== null) {
|
|
3850
3840
|
l(r.applicationName);
|
|
3851
|
-
const
|
|
3852
|
-
if (
|
|
3853
|
-
const
|
|
3854
|
-
|
|
3855
|
-
|
|
3841
|
+
const b = new URLSearchParams(window.location.search);
|
|
3842
|
+
if (b.has("invitationCode")) {
|
|
3843
|
+
const L = b.get("invitationCode") ?? "";
|
|
3844
|
+
a({ ...r, invitationCode: L }), L !== "" && c(
|
|
3845
|
+
L,
|
|
3856
3846
|
"admin/" + r.applicationName
|
|
3857
3847
|
);
|
|
3858
3848
|
}
|
|
3859
|
-
} else w !== null ?
|
|
3849
|
+
} else w !== null ? u(w) : (G(
|
|
3860
3850
|
"error",
|
|
3861
3851
|
`Unknown application name: ${r.applicationName}`
|
|
3862
|
-
),
|
|
3852
|
+
), f(null));
|
|
3863
3853
|
}, []);
|
|
3864
|
-
const h =
|
|
3865
|
-
return h == null ? null : (
|
|
3866
|
-
h,
|
|
3867
|
-
w,
|
|
3868
|
-
r,
|
|
3869
|
-
i,
|
|
3870
|
-
e,
|
|
3871
|
-
t.CLIENT_ID,
|
|
3872
|
-
t.CLIENT_SECRET
|
|
3873
|
-
) }, x));
|
|
3854
|
+
const h = g();
|
|
3855
|
+
return h == null ? null : ($ = h.signupItems) == null ? void 0 : $.map((w, b) => /* @__PURE__ */ i.jsx("div", { children: Xi(h, w, r, a, e) }, b));
|
|
3874
3856
|
}
|
|
3875
3857
|
function gr({
|
|
3876
3858
|
applicationName: t,
|
|
3877
3859
|
casdoorApiRoot: e,
|
|
3878
|
-
springmicroApiRoot: o
|
|
3879
|
-
CLIENT_ID: r,
|
|
3880
|
-
CLIENT_SECRET: i
|
|
3860
|
+
springmicroApiRoot: o
|
|
3881
3861
|
}) {
|
|
3882
|
-
|
|
3883
|
-
const [
|
|
3884
|
-
Xe(
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3862
|
+
I.casdoor = e, o && (I.springmicro = o);
|
|
3863
|
+
const [r, a] = m.useState({ application: null }), l = () => {
|
|
3864
|
+
Xe("admin", t).then(
|
|
3865
|
+
(u) => {
|
|
3866
|
+
if (console.log(u), u.status === "error") {
|
|
3867
|
+
G("error", u.msg);
|
|
3868
|
+
return;
|
|
3869
|
+
}
|
|
3870
|
+
a({
|
|
3871
|
+
application: u.data
|
|
3872
|
+
});
|
|
3893
3873
|
}
|
|
3894
|
-
|
|
3895
|
-
application: c.data
|
|
3896
|
-
});
|
|
3897
|
-
});
|
|
3874
|
+
);
|
|
3898
3875
|
};
|
|
3899
3876
|
return m.useEffect(() => {
|
|
3900
|
-
|
|
3901
|
-
}, []),
|
|
3877
|
+
l();
|
|
3878
|
+
}, []), r.application === void 0 ? /* @__PURE__ */ i.jsx(i.Fragment, {}) : /* @__PURE__ */ i.jsx(_n, { i18n: Q, children: /* @__PURE__ */ i.jsx(
|
|
3902
3879
|
cr,
|
|
3903
3880
|
{
|
|
3904
|
-
application:
|
|
3905
|
-
onUpdateApplication: (
|
|
3906
|
-
|
|
3907
|
-
application:
|
|
3881
|
+
application: r.application,
|
|
3882
|
+
onUpdateApplication: (u) => {
|
|
3883
|
+
a({
|
|
3884
|
+
application: u
|
|
3908
3885
|
});
|
|
3909
|
-
}
|
|
3910
|
-
CLIENT_ID: r,
|
|
3911
|
-
CLIENT_SECRET: i
|
|
3886
|
+
}
|
|
3912
3887
|
}
|
|
3913
3888
|
) });
|
|
3914
3889
|
}
|
|
@@ -3919,110 +3894,105 @@ function hr({
|
|
|
3919
3894
|
applicationName: t,
|
|
3920
3895
|
casdoorApiRoot: e,
|
|
3921
3896
|
springmicroApiRoot: o,
|
|
3922
|
-
|
|
3923
|
-
CLIENT_SECRET: i,
|
|
3924
|
-
children: l
|
|
3897
|
+
children: r
|
|
3925
3898
|
}) {
|
|
3926
|
-
Te(),
|
|
3927
|
-
const [
|
|
3928
|
-
Xe(
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3899
|
+
Te(), I.casdoor = e, o && (I.springmicro = o);
|
|
3900
|
+
const [a, l] = m.useState({ application: null }), [u, g] = m.useState({}), c = () => {
|
|
3901
|
+
Xe("admin", t).then(
|
|
3902
|
+
(E) => {
|
|
3903
|
+
if (console.log(E), E.status === "error") {
|
|
3904
|
+
G("error", E.msg);
|
|
3905
|
+
return;
|
|
3906
|
+
}
|
|
3907
|
+
l({
|
|
3908
|
+
application: E.data
|
|
3909
|
+
});
|
|
3937
3910
|
}
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
}, y = (v) => {
|
|
3943
|
-
p({
|
|
3944
|
-
application: v
|
|
3911
|
+
);
|
|
3912
|
+
}, f = (E) => {
|
|
3913
|
+
l({
|
|
3914
|
+
application: E
|
|
3945
3915
|
});
|
|
3946
|
-
},
|
|
3947
|
-
|
|
3948
|
-
(
|
|
3949
|
-
if (
|
|
3950
|
-
|
|
3916
|
+
}, h = (E, _) => {
|
|
3917
|
+
Nt(E, _).then(
|
|
3918
|
+
(k) => {
|
|
3919
|
+
if (k.status === "error") {
|
|
3920
|
+
G("error", k.msg);
|
|
3951
3921
|
return;
|
|
3952
3922
|
}
|
|
3953
|
-
|
|
3923
|
+
l({ ...a, invitation: k.data });
|
|
3954
3924
|
}
|
|
3955
3925
|
);
|
|
3956
|
-
},
|
|
3957
|
-
It(
|
|
3958
|
-
if (
|
|
3959
|
-
const
|
|
3960
|
-
|
|
3926
|
+
}, $ = (E) => {
|
|
3927
|
+
It(E).then((_) => {
|
|
3928
|
+
if (_.status === "ok") {
|
|
3929
|
+
const k = _.data;
|
|
3930
|
+
f(k);
|
|
3961
3931
|
} else
|
|
3962
|
-
|
|
3963
|
-
...
|
|
3964
|
-
msg:
|
|
3932
|
+
f(null), l({
|
|
3933
|
+
...a,
|
|
3934
|
+
msg: _.msg
|
|
3965
3935
|
});
|
|
3966
3936
|
});
|
|
3967
|
-
},
|
|
3968
|
-
|
|
3937
|
+
}, w = (E, _) => nr(
|
|
3938
|
+
E,
|
|
3969
3939
|
{
|
|
3970
3940
|
password: {
|
|
3971
|
-
state:
|
|
3941
|
+
state: u,
|
|
3972
3942
|
setState: g
|
|
3973
3943
|
}
|
|
3974
3944
|
},
|
|
3975
|
-
|
|
3976
|
-
),
|
|
3977
|
-
hidePassword:
|
|
3978
|
-
}),
|
|
3945
|
+
_
|
|
3946
|
+
), b = (E) => Me(E, {
|
|
3947
|
+
hidePassword: u
|
|
3948
|
+
}), L = Dt, F = Ut;
|
|
3979
3949
|
return m.useEffect(() => {
|
|
3980
|
-
|
|
3950
|
+
c();
|
|
3981
3951
|
}, []), m.useEffect(() => {
|
|
3982
|
-
|
|
3983
|
-
or(
|
|
3952
|
+
a.application && g(
|
|
3953
|
+
or(a.application.signupItems)
|
|
3984
3954
|
);
|
|
3985
|
-
}, [
|
|
3986
|
-
const
|
|
3987
|
-
if (
|
|
3988
|
-
const
|
|
3955
|
+
}, [a.application]), m.useEffect(() => {
|
|
3956
|
+
const E = Ft();
|
|
3957
|
+
if (E !== null) {
|
|
3958
|
+
const _ = window.location.pathname.replace(
|
|
3989
3959
|
"/signup/oauth/authorize",
|
|
3990
3960
|
"/login/oauth/authorize"
|
|
3991
3961
|
);
|
|
3992
|
-
sessionStorage.setItem("signinUrl",
|
|
3993
|
-
}
|
|
3994
|
-
if (
|
|
3995
|
-
if (
|
|
3996
|
-
|
|
3997
|
-
const
|
|
3998
|
-
if (
|
|
3999
|
-
const
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
"admin/" +
|
|
3962
|
+
sessionStorage.setItem("signinUrl", _ + window.location.search);
|
|
3963
|
+
}
|
|
3964
|
+
if (a.application === void 0)
|
|
3965
|
+
if (a.applicationName !== null) {
|
|
3966
|
+
c();
|
|
3967
|
+
const _ = new URLSearchParams(window.location.search);
|
|
3968
|
+
if (_.has("invitationCode")) {
|
|
3969
|
+
const k = _.get("invitationCode") ?? "";
|
|
3970
|
+
l({ ...a, invitationCode: k }), k !== "" && h(
|
|
3971
|
+
k,
|
|
3972
|
+
"admin/" + a.applicationName
|
|
4003
3973
|
);
|
|
4004
3974
|
}
|
|
4005
|
-
} else
|
|
3975
|
+
} else E !== null ? $(E) : (G(
|
|
4006
3976
|
"error",
|
|
4007
|
-
`Unknown application name: ${
|
|
4008
|
-
),
|
|
4009
|
-
}, []),
|
|
3977
|
+
`Unknown application name: ${a.applicationName}`
|
|
3978
|
+
), f(null));
|
|
3979
|
+
}, []), a.application === void 0 || a.application === null ? null : /* @__PURE__ */ i.jsx(
|
|
4010
3980
|
Yt.Provider,
|
|
4011
3981
|
{
|
|
4012
3982
|
value: {
|
|
4013
|
-
application:
|
|
3983
|
+
application: a.application,
|
|
4014
3984
|
getDefaultValues: rr,
|
|
4015
3985
|
getFormProps: ar,
|
|
4016
|
-
icon:
|
|
3986
|
+
icon: w,
|
|
4017
3987
|
getZod: ir,
|
|
4018
|
-
getKey:
|
|
4019
|
-
type:
|
|
4020
|
-
sendCode:
|
|
3988
|
+
getKey: ee,
|
|
3989
|
+
type: b,
|
|
3990
|
+
sendCode: L,
|
|
4021
3991
|
requiresCode: qt,
|
|
4022
|
-
getCaptcha:
|
|
3992
|
+
getCaptcha: F,
|
|
4023
3993
|
isVisible: lr
|
|
4024
3994
|
},
|
|
4025
|
-
children:
|
|
3995
|
+
children: r
|
|
4026
3996
|
}
|
|
4027
3997
|
);
|
|
4028
3998
|
}
|
|
@@ -4038,6 +4008,6 @@ export {
|
|
|
4038
4008
|
pr as b,
|
|
4039
4009
|
hr as c,
|
|
4040
4010
|
Kn as g,
|
|
4041
|
-
|
|
4011
|
+
G as s,
|
|
4042
4012
|
mr as u
|
|
4043
4013
|
};
|