@springmicro/auth 0.5.0 → 0.5.1
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-BrMgwosO.js → Index-64ac63ff-Bb7oVTBw.js} +1 -1
- package/dist/{Index-6c094240-DXC18ikE.js → Index-6c094240-Cre9O000.js} +1 -1
- package/dist/{Web3Auth-DhI1eSsQ.js → Web3Auth-D-jzK5S2.js} +10 -10
- package/dist/{hashMessage-BQXVpTYE.js → hashMessage-1XTFjS64.js} +1 -1
- package/dist/{index-BXdspCS1.js → index-BCIsepdu.js} +45 -45
- package/dist/{index-DwdV0Emj.js → index-BcBHeHDh.js} +2 -2
- package/dist/{index-Be91u-op.js → index-Bi-yyFKX.js} +1 -1
- package/dist/{index-Cqd2rvl1.js → index-Bt-ptciq.js} +1 -1
- package/dist/{index-BRZ2plvc.js → index-D23L6orl.js} +4 -4
- package/dist/{index-Bpbr6WnZ.js → index-Dd6Cx4jI.js} +2 -2
- package/dist/{index-mpserFHa.js → index-m_M0OdCv.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +42 -42
- package/dist/{number-DAtvFp1_.js → number-DcOvM-ZJ.js} +1 -1
- package/package.json +2 -2
- package/src/components/forms/util/application-api.ts +3 -1
- package/src/components/forms/util/user-api.ts +1 -1
- package/src/components/util.tsx +1 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as I, Z as N, $ as M, a0 as O, am as me, a4 as _, a7 as w, a8 as G, a9 as T, aa as V, ab as C, ac as Y, ad as _e, ae as we, af as D, a1 as h, a3 as m, aA as Ce, ah as H, a2 as L, b7 as W, ai as $, a5 as g, a6 as S, ay as be, bg as ze, bh as Te, bi as je, aD as Le, aU as xe, aG as Pe, aW as Se, aj as F, aO as Z, aR as Re, bj as Ee, bk as ye, aV as Ie, az as Ne, bl as U, bm as B, aw as A, aH as he, an as Me, ao as ge, bn as Oe, ag as ke, bo as X, bp as J, al as E, bq as Q, au as R, aC as K, br as ee, bs as De, bt as te, bu as x, at as He, aX as q, bv as $e } from "./Web3Auth-
|
|
1
|
+
import { Y as I, Z as N, $ as M, a0 as O, am as me, a4 as _, a7 as w, a8 as G, a9 as T, aa as V, ab as C, ac as Y, ad as _e, ae as we, af as D, a1 as h, a3 as m, aA as Ce, ah as H, a2 as L, b7 as W, ai as $, a5 as g, a6 as S, ay as be, bg as ze, bh as Te, bi as je, aD as Le, aU as xe, aG as Pe, aW as Se, aj as F, aO as Z, aR as Re, bj as Ee, bk as ye, aV as Ie, az as Ne, bl as U, bm as B, aw as A, aH as he, an as Me, ao as ge, bn as Oe, ag as ke, bo as X, bp as J, al as E, bq as Q, au as R, aC as K, br as ee, bs as De, bt as te, bu as x, at as He, aX as q, bv as $e } from "./Web3Auth-D-jzK5S2.js";
|
|
2
2
|
function Fe(i, { from: e, to: t }, n = {}) {
|
|
3
3
|
const o = getComputedStyle(i), a = o.transform === "none" ? "" : o.transform, [f, l] = o.transformOrigin.split(" ").map(parseFloat), s = e.left + e.width * f / t.width - (t.left + f), r = e.top + e.height * l / t.height - (t.top + l), { delay: c = 0, duration: d = (u) => Math.sqrt(u) * 120, easing: v = ye } = n;
|
|
4
4
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as He, J as Ht, K as Bt, L as Dt, M as Wt, N as Nt, O as Et, P as Ft, Q as Ot, R as Zt, T as Rt, U as Gt, V as Ut, W as Xt, X as Yt, Y as pe, Z as ve, $ as me, a0 as he, a1 as h, a2 as z, a3 as p, a4 as M, a5 as c, a6 as Y, a7 as y, a8 as ae, a9 as A, aa as ie, ab as S, ac as te, ad as ye, ae as Ce, af as ee, ag as Jt, ah as F, ai as O, aj as Z, ak as Be, al as R, am as ue, an as Me, ao as qe, ap as $t, aq as De, ar as P, as as be, at as ge, au as L, av as _e, aw as ce, ax as Kt, ay as fe, az as we, aA as At, aB as Qt, aC as j, aD as Ae, aE as We, aF as Ne, aG as Ee, aH as ke, aI as Tt, aJ as xt, aK as en, aL as Ve, aM as ze, aN as Mt, aO as tn, aP as nn, aQ as rn, aR as St, aS as on, aT as de, aU as Ie, aV as $e, aW as ln, aX as je, aY as an, aZ as sn, a_ as It, a$ as Pt, b0 as cn, b1 as dn, b2 as Fe, b3 as un, b4 as Oe, b5 as fn, b6 as Ze, b7 as Pe, b8 as Re, b9 as pn, ba as Le, bb as Ge, bc as vn, bd as mn, be as Ue, bf as hn } from "./Web3Auth-
|
|
1
|
+
import { _ as He, J as Ht, K as Bt, L as Dt, M as Wt, N as Nt, O as Et, P as Ft, Q as Ot, R as Zt, T as Rt, U as Gt, V as Ut, W as Xt, X as Yt, Y as pe, Z as ve, $ as me, a0 as he, a1 as h, a2 as z, a3 as p, a4 as M, a5 as c, a6 as Y, a7 as y, a8 as ae, a9 as A, aa as ie, ab as S, ac as te, ad as ye, ae as Ce, af as ee, ag as Jt, ah as F, ai as O, aj as Z, ak as Be, al as R, am as ue, an as Me, ao as qe, ap as $t, aq as De, ar as P, as as be, at as ge, au as L, av as _e, aw as ce, ax as Kt, ay as fe, az as we, aA as At, aB as Qt, aC as j, aD as Ae, aE as We, aF as Ne, aG as Ee, aH as ke, aI as Tt, aJ as xt, aK as en, aL as Ve, aM as ze, aN as Mt, aO as tn, aP as nn, aQ as rn, aR as St, aS as on, aT as de, aU as Ie, aV as $e, aW as ln, aX as je, aY as an, aZ as sn, a_ as It, a$ as Pt, b0 as cn, b1 as dn, b2 as Fe, b3 as un, b4 as Oe, b5 as fn, b6 as Ze, b7 as Pe, b8 as Re, b9 as pn, ba as Le, bb as Ge, bc as vn, bd as mn, be as Ue, bf as hn } from "./Web3Auth-D-jzK5S2.js";
|
|
2
2
|
var gn = function(e) {
|
|
3
3
|
He(t, e);
|
|
4
4
|
function t(n, r) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as pu, g as mp, a as yp } from "./index-
|
|
1
|
+
import { s as pu, g as mp, a as yp } from "./index-BCIsepdu.js";
|
|
2
2
|
import gu from "i18next";
|
|
3
3
|
var Ze = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
4
|
function _o(e) {
|
|
@@ -21308,7 +21308,7 @@ const py = (e) => py(), KE = (e) => {
|
|
|
21308
21308
|
const t = Uu(e, "bigint");
|
|
21309
21309
|
return hy(t);
|
|
21310
21310
|
}, VI = (e) => Zf(e), zc = (e, t) => t ? typeof t == "function" ? `Please <a href="#" onclick="${() => t()}">install</a> or enable to ${e} to continue` : `Please <a href="${t}" target="_blank">install</a> or enable to ${e} to continue` : `Please switch to ${e} to continue`, JE = async (e) => {
|
|
21311
|
-
const t = await import("./index-
|
|
21311
|
+
const t = await import("./index-Dd6Cx4jI.js"), { id: r, label: n, token: i, publicRpcUrl: o, blockExplorerUrl: a, rpcUrl: s } = e;
|
|
21312
21312
|
switch (r) {
|
|
21313
21313
|
case "0x89": {
|
|
21314
21314
|
const { polygon: l } = t;
|
|
@@ -21371,7 +21371,7 @@ const py = (e) => py(), KE = (e) => {
|
|
|
21371
21371
|
return l;
|
|
21372
21372
|
}
|
|
21373
21373
|
default: {
|
|
21374
|
-
const { extractChain: l, defineChain: u } = await import("./index-
|
|
21374
|
+
const { extractChain: l, defineChain: u } = await import("./index-D23L6orl.js"), f = l({
|
|
21375
21375
|
chains: Object.values(t),
|
|
21376
21376
|
id: Uu(r, "number")
|
|
21377
21377
|
});
|
|
@@ -24450,7 +24450,7 @@ const Ya = async (e, t) => {
|
|
|
24450
24450
|
const r = t.rpcUrl;
|
|
24451
24451
|
return !t.secondaryTokens || !t.secondaryTokens.length || !r ? [] : await Promise.all(t.secondaryTokens.map(async (i) => {
|
|
24452
24452
|
try {
|
|
24453
|
-
const { createPublicClient: o, http: a } = await import("./index-
|
|
24453
|
+
const { createPublicClient: o, http: a } = await import("./index-D23L6orl.js"), s = await JE(t), l = o({
|
|
24454
24454
|
chain: s,
|
|
24455
24455
|
transport: a(t.providerConnectionInfo && t.providerConnectionInfo.url ? t.providerConnectionInfo.url : r)
|
|
24456
24456
|
}), u = {
|
|
@@ -24493,7 +24493,7 @@ async function K9(e) {
|
|
|
24493
24493
|
const t = await E7(e.id);
|
|
24494
24494
|
if (!t)
|
|
24495
24495
|
return null;
|
|
24496
|
-
const { createPublicClient: r, http: n } = await import("./index-
|
|
24496
|
+
const { createPublicClient: r, http: n } = await import("./index-D23L6orl.js"), i = r({
|
|
24497
24497
|
chain: t,
|
|
24498
24498
|
transport: n()
|
|
24499
24499
|
});
|
|
@@ -29806,7 +29806,7 @@ function OA(e, t, r) {
|
|
|
29806
29806
|
bottomLeft: `
|
|
29807
29807
|
bottom: var(--${O}-position-bottom, 0);
|
|
29808
29808
|
left: var(--${O}-position-left, 0);`
|
|
29809
|
-
}), $ = u.enabled ? import("./Index-6c094240-
|
|
29809
|
+
}), $ = u.enabled ? import("./Index-6c094240-Cre9O000.js").then((O) => O.default) : Promise.resolve(null), M = c.enabled ? import("./Index-64ac63ff-Bb7oVTBw.js").then((O) => O.default) : Promise.resolve(null), j = u.enabled && b && b.accountCenter, A = (O, I, P, S) => {
|
|
29810
29810
|
const T = O.attachShadow({ mode: "open" });
|
|
29811
29811
|
let R = document.querySelector("onboard-v2").shadowRoot.styleSheets;
|
|
29812
29812
|
const U = new CSSStyleSheet();
|
|
@@ -29952,7 +29952,7 @@ function $A(e) {
|
|
|
29952
29952
|
return Ms;
|
|
29953
29953
|
}
|
|
29954
29954
|
const kA = (e, t) => t || document.body && (getComputedStyle(document.body).getPropertyValue("--onboard-font-family-normal") || getComputedStyle(document.body).getPropertyValue("--w3o-font-family")) ? !0 : e ? !!(typeof e == "object" && e["--w3o-font-family"]) : !1, RA = async () => {
|
|
29955
|
-
const { InterVar: e } = await import("./index-
|
|
29955
|
+
const { InterVar: e } = await import("./index-m_M0OdCv.js"), t = document.createElement("style");
|
|
29956
29956
|
t.innerHTML = `
|
|
29957
29957
|
${e}
|
|
29958
29958
|
`, document.body.appendChild(t);
|
|
@@ -31962,7 +31962,7 @@ function yI() {
|
|
|
31962
31962
|
label: "Frontier",
|
|
31963
31963
|
getIcon: async () => (await import("./icon-C_O4nprO.js")).default,
|
|
31964
31964
|
getInterface: async () => {
|
|
31965
|
-
const { createEIP1193Provider: e } = await import("./index-
|
|
31965
|
+
const { createEIP1193Provider: e } = await import("./index-m_M0OdCv.js"), t = window.hasOwnProperty("ethereum");
|
|
31966
31966
|
let r;
|
|
31967
31967
|
if (t && window.ethereum.isFrontier)
|
|
31968
31968
|
r = e(window.ethereum);
|
|
@@ -32223,7 +32223,7 @@ function AI({ supportedWalletType: e = "all", darkMode: t = !1, enableMobileWall
|
|
|
32223
32223
|
getIcon: async () => (await import("./icon-DbgmZCnU.js")).default,
|
|
32224
32224
|
getInterface: async ({ chains: i, appMetadata: o }) => {
|
|
32225
32225
|
(r || n || t) && console.warn("darkMode, enableMobileWalletLink and reloadOnDisconnect init props are deprecated after version 2.2.7 of @web3-onboard/coinbase");
|
|
32226
|
-
const { name: a, icon: s } = o || {}, { default: l } = await import("./index-
|
|
32226
|
+
const { name: a, icon: s } = o || {}, { default: l } = await import("./index-Bt-ptciq.js").then(($) => $.i), u = l.default ? l.default : l, { isHex: f, toHex: c, createEIP1193Provider: h, fromHex: d } = await import("./index-m_M0OdCv.js"), g = `data:image/svg+xml;base64,${window.btoa(s || "")}`, b = i.map(({ id: $ }) => d($, "number")), m = new u({
|
|
32227
32227
|
appName: a || "",
|
|
32228
32228
|
appLogoUrl: g,
|
|
32229
32229
|
appChainIds: b
|
|
@@ -32258,7 +32258,7 @@ function CI(e) {
|
|
|
32258
32258
|
label: "Safe",
|
|
32259
32259
|
getIcon: async () => (await import("./icon-2Zqy7pqQ.js")).default,
|
|
32260
32260
|
getInterface: async () => {
|
|
32261
|
-
const { default: n } = await import("./index-
|
|
32261
|
+
const { default: n } = await import("./index-Bi-yyFKX.js"), { SafeAppProvider: i } = await import("./index-BcBHeHDh.js").then((h) => h.i), { createEIP1193Provider: o } = await import("./index-m_M0OdCv.js"), a = (
|
|
32262
32262
|
// @ts-ignore
|
|
32263
32263
|
n.default || n
|
|
32264
32264
|
), s = {
|
|
@@ -104,14 +104,14 @@ function En() {
|
|
|
104
104
|
C.unshift("Warning: " + s), Function.prototype.apply.call(console[n], console, C);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
var Y = !1, U = !1, ie = !1, pe = !1, ne = !1,
|
|
108
|
-
|
|
107
|
+
var Y = !1, U = !1, ie = !1, pe = !1, ne = !1, P;
|
|
108
|
+
P = Symbol.for("react.module.reference");
|
|
109
109
|
function ze(n) {
|
|
110
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 === P || n.getModuleId !== void 0));
|
|
115
115
|
}
|
|
116
116
|
function ge(n, s, p) {
|
|
117
117
|
var y = n.displayName;
|
|
@@ -672,7 +672,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
672
672
|
}
|
|
673
673
|
process.env.NODE_ENV === "production" ? Ze.exports = Cn() : Ze.exports = En();
|
|
674
674
|
var i = Ze.exports;
|
|
675
|
-
const d = "https://cdn.casbin.org",
|
|
675
|
+
const d = "https://cdn.casbin.org", R = {
|
|
676
676
|
casdoor: "https://casdoor",
|
|
677
677
|
springmicro: void 0
|
|
678
678
|
};
|
|
@@ -1044,7 +1044,7 @@ const Dn = {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
};
|
|
1046
1046
|
function Un(t = "") {
|
|
1047
|
-
return fetch(`${
|
|
1047
|
+
return fetch(`${R.casdoor}/api/get-account${t}`, {
|
|
1048
1048
|
method: "GET",
|
|
1049
1049
|
credentials: "include",
|
|
1050
1050
|
headers: {
|
|
@@ -1053,8 +1053,8 @@ function Un(t = "") {
|
|
|
1053
1053
|
}).then((e) => e.json());
|
|
1054
1054
|
}
|
|
1055
1055
|
function Wn(t) {
|
|
1056
|
-
let e = `${
|
|
1057
|
-
return
|
|
1056
|
+
let e = `${R.casdoor}/api/signup`;
|
|
1057
|
+
return R.springmicro && (e = `${R.springmicro}/api/accounts/users/register`), fetch(e, {
|
|
1058
1058
|
method: "POST",
|
|
1059
1059
|
credentials: "include",
|
|
1060
1060
|
body: JSON.stringify(t),
|
|
@@ -1072,7 +1072,7 @@ 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(`${R.casdoor}/api/get-app-login${e}`, {
|
|
1076
1076
|
method: "GET",
|
|
1077
1077
|
credentials: "include",
|
|
1078
1078
|
headers: {
|
|
@@ -1082,7 +1082,7 @@ function It(t) {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
function Gn(t, e) {
|
|
1084
1084
|
return fetch(
|
|
1085
|
-
`${
|
|
1085
|
+
`${R.casdoor}/api/get-saml-login?id=${t}&relayState=${e}`,
|
|
1086
1086
|
{
|
|
1087
1087
|
method: "GET",
|
|
1088
1088
|
credentials: "include",
|
|
@@ -1093,7 +1093,7 @@ function Gn(t, e) {
|
|
|
1093
1093
|
).then((o) => o.json());
|
|
1094
1094
|
}
|
|
1095
1095
|
function qn(t) {
|
|
1096
|
-
return fetch(`${
|
|
1096
|
+
return fetch(`${R.casdoor}/api/get-webhook-event?ticket=${t}`, {
|
|
1097
1097
|
method: "GET",
|
|
1098
1098
|
credentials: "include",
|
|
1099
1099
|
headers: {
|
|
@@ -1102,7 +1102,7 @@ function qn(t) {
|
|
|
1102
1102
|
}).then((e) => e.json());
|
|
1103
1103
|
}
|
|
1104
1104
|
function Yn(t) {
|
|
1105
|
-
return fetch(`${
|
|
1105
|
+
return fetch(`${R.casdoor}/api/get-qrcode?id=${t}`, {
|
|
1106
1106
|
method: "GET",
|
|
1107
1107
|
credentials: "include",
|
|
1108
1108
|
headers: {
|
|
@@ -1112,10 +1112,10 @@ function Yn(t) {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
function Xe(t, e) {
|
|
1114
1114
|
return fetch(
|
|
1115
|
-
`${
|
|
1115
|
+
`${R.casdoor}/api/get-application?id=${t}/${encodeURIComponent(e)}`,
|
|
1116
1116
|
{
|
|
1117
1117
|
method: "GET",
|
|
1118
|
-
|
|
1118
|
+
credentials: R.casdoor.startsWith("https") ? "include" : void 0,
|
|
1119
1119
|
headers: {
|
|
1120
1120
|
"Accept-Language": Z()
|
|
1121
1121
|
}
|
|
@@ -1592,7 +1592,7 @@ async function Zn(t, e, o) {
|
|
|
1592
1592
|
}
|
|
1593
1593
|
function Nt(t, e) {
|
|
1594
1594
|
return fetch(
|
|
1595
|
-
`${
|
|
1595
|
+
`${R.casdoor}/api/get-invitation-info?code=${t}&applicationId=${encodeURIComponent(
|
|
1596
1596
|
e
|
|
1597
1597
|
)}`,
|
|
1598
1598
|
{
|
|
@@ -1606,9 +1606,9 @@ function Nt(t, e) {
|
|
|
1606
1606
|
}
|
|
1607
1607
|
function Dt(t, e, o, r, a = "", l, u, g, c = "") {
|
|
1608
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(`${
|
|
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(`${R.casdoor}/api/send-verification-code`, {
|
|
1610
1610
|
method: "POST",
|
|
1611
|
-
|
|
1611
|
+
credentials: R.casdoor.startsWith("https") ? "include" : void 0,
|
|
1612
1612
|
body: f,
|
|
1613
1613
|
headers: {
|
|
1614
1614
|
"Accept-Language": Z()
|
|
@@ -1617,7 +1617,7 @@ function Dt(t, e, o, r, a = "", l, u, g, c = "") {
|
|
|
1617
1617
|
}
|
|
1618
1618
|
function Ut(t, e, o) {
|
|
1619
1619
|
return fetch(
|
|
1620
|
-
`${
|
|
1620
|
+
`${R.casdoor}/api/get-captcha?applicationId=${t}/${encodeURIComponent(
|
|
1621
1621
|
e
|
|
1622
1622
|
)}&isCurrentProvider=${o}`,
|
|
1623
1623
|
{
|
|
@@ -1713,14 +1713,14 @@ const Xn = (t) => {
|
|
|
1713
1713
|
}
|
|
1714
1714
|
}, [e, o, r, a, l, u]), /* @__PURE__ */ i.jsx("div", { id: "captcha" });
|
|
1715
1715
|
}, eo = (t) => {
|
|
1716
|
-
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,
|
|
1716
|
+
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, P] = m.useState(""), ze = m.useRef(null);
|
|
1717
1717
|
Rt(() => {
|
|
1718
1718
|
a ? H() : (he(), U(!1));
|
|
1719
1719
|
}, [a]);
|
|
1720
1720
|
const ge = () => {
|
|
1721
1721
|
l == null || l(c, ne, w);
|
|
1722
1722
|
}, he = () => {
|
|
1723
|
-
|
|
1723
|
+
P(""), u == null || u();
|
|
1724
1724
|
}, H = () => {
|
|
1725
1725
|
Ut(o, r, g).then((M) => {
|
|
1726
1726
|
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));
|
|
@@ -1744,11 +1744,11 @@ const Xn = (t) => {
|
|
|
1744
1744
|
value: ne,
|
|
1745
1745
|
placeholder: e("general.captcha"),
|
|
1746
1746
|
onKeyDown: (M) => M.key === "Enter" ? ge() : null,
|
|
1747
|
-
onChange: (M) =>
|
|
1747
|
+
onChange: (M) => P(M.target.value)
|
|
1748
1748
|
}
|
|
1749
1749
|
)
|
|
1750
1750
|
] }), re = (M) => {
|
|
1751
|
-
|
|
1751
|
+
P(M);
|
|
1752
1752
|
}, ke = () => c === "Default" ? X() : /* @__PURE__ */ i.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ i.jsx(
|
|
1753
1753
|
Xn,
|
|
1754
1754
|
{
|
|
@@ -1854,7 +1854,7 @@ const Xn = (t) => {
|
|
|
1854
1854
|
)
|
|
1855
1855
|
] });
|
|
1856
1856
|
};
|
|
1857
|
-
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,
|
|
1857
|
+
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, I = (t, e) => {
|
|
1858
1858
|
for (var o in e || (e = {}))
|
|
1859
1859
|
Wt.call(e, o) && $t(t, o, e[o]);
|
|
1860
1860
|
if (xt)
|
|
@@ -1900,16 +1900,16 @@ so(Gt, {
|
|
|
1900
1900
|
ZaloLoginButton: () => fa,
|
|
1901
1901
|
createButton: () => O
|
|
1902
1902
|
});
|
|
1903
|
-
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,
|
|
1903
|
+
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, I({}, { format: o, name: t, size: e })) : /* @__PURE__ */ kt.default.createElement(t, { size: e, color: r }), mo = "#FFFFFF", yo = (t) => {
|
|
1904
1904
|
const [e, o] = (0, oe.useState)(!1), [r, a] = (0, oe.useState)(!1), l = () => {
|
|
1905
|
-
var
|
|
1906
|
-
a(!0), (
|
|
1905
|
+
var P;
|
|
1906
|
+
a(!0), (P = t.onMouseEnter) == null || P.call(t);
|
|
1907
1907
|
}, u = () => {
|
|
1908
|
-
var
|
|
1909
|
-
a(!1), (
|
|
1908
|
+
var P;
|
|
1909
|
+
a(!1), (P = t.onMouseLeave) == null || P.call(t);
|
|
1910
1910
|
}, g = () => o(!0), c = () => o(!1), f = () => {
|
|
1911
|
-
var
|
|
1912
|
-
return (
|
|
1911
|
+
var P;
|
|
1912
|
+
return (P = t.onClick) == null ? void 0 : P.call(t);
|
|
1913
1913
|
}, {
|
|
1914
1914
|
activeStyle: h,
|
|
1915
1915
|
align: $ = "left",
|
|
@@ -1917,7 +1917,7 @@ var j = uo(Gt), Ve = A(m), oe = A(m), fo = A(m), po = ({ name: t, size: e, forma
|
|
|
1917
1917
|
children: b = w,
|
|
1918
1918
|
className: L,
|
|
1919
1919
|
icon: F,
|
|
1920
|
-
iconFormat: E = (
|
|
1920
|
+
iconFormat: E = (P) => P,
|
|
1921
1921
|
iconSize: _ = "26px",
|
|
1922
1922
|
iconColor: k = mo,
|
|
1923
1923
|
preventActiveStyles: q = !1,
|
|
@@ -1933,7 +1933,7 @@ var j = uo(Gt), Ve = A(m), oe = A(m), fo = A(m), po = ({ name: t, size: e, forma
|
|
|
1933
1933
|
});
|
|
1934
1934
|
return /* @__PURE__ */ oe.default.createElement(
|
|
1935
1935
|
"button",
|
|
1936
|
-
|
|
1936
|
+
I({
|
|
1937
1937
|
style: ne,
|
|
1938
1938
|
onClick: f,
|
|
1939
1939
|
onMouseEnter: l,
|
|
@@ -1958,7 +1958,7 @@ var j = uo(Gt), Ve = A(m), oe = A(m), fo = A(m), po = ({ name: t, size: e, forma
|
|
|
1958
1958
|
customStyle: o,
|
|
1959
1959
|
active: r,
|
|
1960
1960
|
activeStyle: a
|
|
1961
|
-
}) =>
|
|
1961
|
+
}) => I(I(Ht(I({}, t), {
|
|
1962
1962
|
height: e
|
|
1963
1963
|
}), o), r && a), Ge = {
|
|
1964
1964
|
button: {
|
|
@@ -1984,12 +1984,12 @@ var j = uo(Gt), Ve = A(m), oe = A(m), fo = A(m), po = ({ name: t, size: e, forma
|
|
|
1984
1984
|
height: "100%"
|
|
1985
1985
|
}
|
|
1986
1986
|
}, bo = A(m), O = (t) => (e) => {
|
|
1987
|
-
const o = Ht(
|
|
1988
|
-
activeStyle:
|
|
1987
|
+
const o = Ht(I(I({
|
|
1988
|
+
activeStyle: I(I({}, t == null ? void 0 : t.activeStyle), e.activeStyle)
|
|
1989
1989
|
}, t), e), {
|
|
1990
|
-
style:
|
|
1990
|
+
style: I(I({}, t == null ? void 0 : t.style), e.style)
|
|
1991
1991
|
});
|
|
1992
|
-
return /* @__PURE__ */ bo.default.createElement(yo,
|
|
1992
|
+
return /* @__PURE__ */ bo.default.createElement(yo, I({}, o));
|
|
1993
1993
|
}, vo = {
|
|
1994
1994
|
activeStyle: { background: "#293e69" },
|
|
1995
1995
|
icon: $o,
|
|
@@ -2472,13 +2472,13 @@ function ba({ size: t }) {
|
|
|
2472
2472
|
),
|
|
2473
2473
|
/* @__PURE__ */ W.default.createElement(
|
|
2474
2474
|
"path",
|
|
2475
|
-
|
|
2475
|
+
I({
|
|
2476
2476
|
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"
|
|
2477
2477
|
}, At)
|
|
2478
2478
|
),
|
|
2479
2479
|
/* @__PURE__ */ W.default.createElement(
|
|
2480
2480
|
"path",
|
|
2481
|
-
|
|
2481
|
+
I({
|
|
2482
2482
|
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"
|
|
2483
2483
|
}, At)
|
|
2484
2484
|
),
|
|
@@ -2524,7 +2524,7 @@ function ba({ size: t }) {
|
|
|
2524
2524
|
),
|
|
2525
2525
|
/* @__PURE__ */ W.default.createElement(
|
|
2526
2526
|
"path",
|
|
2527
|
-
|
|
2527
|
+
I({
|
|
2528
2528
|
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"
|
|
2529
2529
|
}, Mt)
|
|
2530
2530
|
),
|
|
@@ -2560,7 +2560,7 @@ function ba({ size: t }) {
|
|
|
2560
2560
|
),
|
|
2561
2561
|
/* @__PURE__ */ W.default.createElement(
|
|
2562
2562
|
"path",
|
|
2563
|
-
|
|
2563
|
+
I({
|
|
2564
2564
|
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"
|
|
2565
2565
|
}, Mt)
|
|
2566
2566
|
)
|
|
@@ -3003,10 +3003,10 @@ function Qe(t, e) {
|
|
|
3003
3003
|
});
|
|
3004
3004
|
}
|
|
3005
3005
|
function Bt(t, e, o) {
|
|
3006
|
-
e.type === "MetaMask" ? import("./Web3Auth-
|
|
3006
|
+
e.type === "MetaMask" ? import("./Web3Auth-D-jzK5S2.js").then((r) => r.bO).then((r) => {
|
|
3007
3007
|
const a = r.authViaMetaMask;
|
|
3008
3008
|
a(t, e, o);
|
|
3009
|
-
}) : e.type === "Web3Onboard" && import("./Web3Auth-
|
|
3009
|
+
}) : e.type === "Web3Onboard" && import("./Web3Auth-D-jzK5S2.js").then((r) => r.bO).then((r) => {
|
|
3010
3010
|
const a = r.authViaWeb3Onboard;
|
|
3011
3011
|
a(t, e, o);
|
|
3012
3012
|
});
|
|
@@ -3769,7 +3769,7 @@ function rr(t) {
|
|
|
3769
3769
|
}
|
|
3770
3770
|
function qt(t) {
|
|
3771
3771
|
const e = te(t);
|
|
3772
|
-
return (e === "email" || e === "phone") && t.rule !== "
|
|
3772
|
+
return (e === "email" || e === "phone") && t.rule !== "None";
|
|
3773
3773
|
}
|
|
3774
3774
|
function lr(t) {
|
|
3775
3775
|
var $;
|
|
@@ -3855,7 +3855,7 @@ function pr({
|
|
|
3855
3855
|
casdoorApiRoot: e,
|
|
3856
3856
|
springmicroApiRoot: o
|
|
3857
3857
|
}) {
|
|
3858
|
-
|
|
3858
|
+
R.casdoor = e, o && (R.springmicro = o);
|
|
3859
3859
|
const [r, a] = m.useState({ application: null }), l = () => {
|
|
3860
3860
|
Xe("admin", t).then(
|
|
3861
3861
|
(u) => {
|
|
@@ -3892,7 +3892,7 @@ function gr({
|
|
|
3892
3892
|
springmicroApiRoot: o,
|
|
3893
3893
|
children: r
|
|
3894
3894
|
}) {
|
|
3895
|
-
Te(),
|
|
3895
|
+
Te(), R.casdoor = e, o && (R.springmicro = o);
|
|
3896
3896
|
const [a, l] = m.useState({ application: null }), [u, g] = m.useState({}), c = () => {
|
|
3897
3897
|
Xe("admin", t).then(
|
|
3898
3898
|
(E) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { bK as V, bM as Jc, bH as Xc } from "./Web3Auth-
|
|
2
|
-
import { b as nt, c as go, i as wo, d as vo, B as _, g as rt, A as as, f as st, t as Jt, k as se, j as le, l as at, n as C, m as H, o as rr, p as q, q as Pe, I as xo, r as G, s as te, u as Ce, v as sn, w as Is, x as Po, y as Eo, z as sr, C as Io, D as Ye, E as Xt, F as Ts, G as Z, H as O, J as N, K as we, L as ae, M as oe, N as Ra, O as To, P as Ur, Q as jn, R as _o, S as Qc, T as So, U as ve, e as Te, V as Ao, W as _s, X as an, Y as xt, Z as Qt, _ as Ss, $ as As, a0 as en, a1 as Bs, a2 as ar, a3 as wt, a4 as or, a5 as Bo, a6 as os, a7 as Co, a8 as ko, a9 as Kt, aa as Mo, ab as eu, ac as tu, ad as $o, ae as nu, af as Ro, ag as Ee, ah as No, ai as An, h as ir, a as Cs, aj as ks, ak as is, al as ru, am as su, an as au, ao as ou, ap as Oo, aq as Fo, ar as Lo, as as jo, at as iu, au as cu, av as uu, aw as du, ax as lu, ay as fu, az as pu, aA as hu, aB as mu, aC as yu, aD as bu, aE as gu, aF as wu, aG as vu, aH as xu, aI as Pu, aJ as Eu, aK as Iu, aL as Bn, aM as Tu, aN as _u, aO as Su, aP as Au, aQ as Bu, aR as Cu, aS as ku, aT as Na, aU as Mu, aV as $u } from "./hashMessage-
|
|
1
|
+
import { bK as V, bM as Jc, bH as Xc } from "./Web3Auth-D-jzK5S2.js";
|
|
2
|
+
import { b as nt, c as go, i as wo, d as vo, B as _, g as rt, A as as, f as st, t as Jt, k as se, j as le, l as at, n as C, m as H, o as rr, p as q, q as Pe, I as xo, r as G, s as te, u as Ce, v as sn, w as Is, x as Po, y as Eo, z as sr, C as Io, D as Ye, E as Xt, F as Ts, G as Z, H as O, J as N, K as we, L as ae, M as oe, N as Ra, O as To, P as Ur, Q as jn, R as _o, S as Qc, T as So, U as ve, e as Te, V as Ao, W as _s, X as an, Y as xt, Z as Qt, _ as Ss, $ as As, a0 as en, a1 as Bs, a2 as ar, a3 as wt, a4 as or, a5 as Bo, a6 as os, a7 as Co, a8 as ko, a9 as Kt, aa as Mo, ab as eu, ac as tu, ad as $o, ae as nu, af as Ro, ag as Ee, ah as No, ai as An, h as ir, a as Cs, aj as ks, ak as is, al as ru, am as su, an as au, ao as ou, ap as Oo, aq as Fo, ar as Lo, as as jo, at as iu, au as cu, av as uu, aw as du, ax as lu, ay as fu, az as pu, aA as hu, aB as mu, aC as yu, aD as bu, aE as gu, aF as wu, aG as vu, aH as xu, aI as Pu, aJ as Eu, aK as Iu, aL as Bn, aM as Tu, aN as _u, aO as Su, aP as Au, aQ as Bu, aR as Cu, aS as ku, aT as Na, aU as Mu, aV as $u } from "./hashMessage-1XTFjS64.js";
|
|
3
3
|
function Ru(e, t) {
|
|
4
4
|
for (var n = 0; n < t.length; n++) {
|
|
5
5
|
const r = t[n];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as y, h as T, a as k } from "./hashMessage-
|
|
1
|
+
import { e as y, h as T, a as k } from "./hashMessage-1XTFjS64.js";
|
|
2
2
|
const I = () => "9.1.0", q = (t) => t.toString(16).padStart(2, "0"), v = (t) => {
|
|
3
3
|
const e = new Uint8Array(t / 2);
|
|
4
4
|
return window.crypto.getRandomValues(e), Array.from(e, q).join("");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bH as Xi, bI as qt, bJ as es, bK as Z, bL as de, bM as Wn, bN as Sa } from "./Web3Auth-
|
|
1
|
+
import { bH as Xi, bI as qt, bJ as es, bK as Z, bL as de, bM as Wn, bN as Sa } from "./Web3Auth-D-jzK5S2.js";
|
|
2
2
|
var ts = {}, gt = {}, Kt = {};
|
|
3
3
|
Object.defineProperty(Kt, "__esModule", { value: !0 });
|
|
4
4
|
Kt.walletLogo = void 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as O, s as Z, t as Ne, n as j, p as he, b as ys, a as gs, i as Re, c as Bt, d as Q, h as Ue, e as At, I as ms, f as ft, g as ws, j as pr, k as vs, l as lt, m as Cn, o as ye, q as qe } from "./Web3Auth-
|
|
2
|
-
import { v as lc, w as dc, x as pc, S as bc, y as hc, z as yc, r as gc, C as mc, D as wc, u as vc, E as Ec, F as xc, A as Pc, G as Bc, H as Ac } from "./Web3Auth-
|
|
3
|
-
import { k as W, c as ee, i as te, I as ve, s as xt, a as br, b as Es, d as xs, e as Ps, p as an, f as ge, E as mt, F as Ht, g as jn, N as Fn, h as qn, j as Mn, l as zn, m as Ln, n as _n, T as Dn, o as Gt, U as cn, q as Bs, r as hr, t as As, u as Ts, v as Is, w as Os, x as Ss, y as yr, P as ks, z as Ee, C as Ut, A as gr, B as mr, D as Ns, G as wr, H as Rs, J as $s, K as Cs, L as js, M as Hn, O as Fs, Q as qs, R as Ms, S as zs, W as Gn } from "./number-
|
|
4
|
-
import { X as Ic, Y as Oc, Z as Sc, _ as kc, a6 as Nc, a7 as Rc, a8 as $c, a9 as Cc, ab as jc, $ as Fc, ac as qc, a0 as Mc, a2 as zc, a3 as Lc, V as _c, a4 as Dc, ae as Hc, af as Gc, ad as Uc, ag as Vc, aa as Zc, a5 as Wc, a1 as Yc } from "./number-
|
|
1
|
+
import { B as O, s as Z, t as Ne, n as j, p as he, b as ys, a as gs, i as Re, c as Bt, d as Q, h as Ue, e as At, I as ms, f as ft, g as ws, j as pr, k as vs, l as lt, m as Cn, o as ye, q as qe } from "./Web3Auth-D-jzK5S2.js";
|
|
2
|
+
import { v as lc, w as dc, x as pc, S as bc, y as hc, z as yc, r as gc, C as mc, D as wc, u as vc, E as Ec, F as xc, A as Pc, G as Bc, H as Ac } from "./Web3Auth-D-jzK5S2.js";
|
|
3
|
+
import { k as W, c as ee, i as te, I as ve, s as xt, a as br, b as Es, d as xs, e as Ps, p as an, f as ge, E as mt, F as Ht, g as jn, N as Fn, h as qn, j as Mn, l as zn, m as Ln, n as _n, T as Dn, o as Gt, U as cn, q as Bs, r as hr, t as As, u as Ts, v as Is, w as Os, x as Ss, y as yr, P as ks, z as Ee, C as Ut, A as gr, B as mr, D as Ns, G as wr, H as Rs, J as $s, K as Cs, L as js, M as Hn, O as Fs, Q as qs, R as Ms, S as zs, W as Gn } from "./number-DcOvM-ZJ.js";
|
|
4
|
+
import { X as Ic, Y as Oc, Z as Sc, _ as kc, a6 as Nc, a7 as Rc, a8 as $c, a9 as Cc, ab as jc, $ as Fc, ac as qc, a0 as Mc, a2 as zc, a3 as Lc, V as _c, a4 as Dc, ae as Hc, af as Gc, ad as Uc, ag as Vc, aa as Zc, a5 as Wc, a1 as Yc } from "./number-DcOvM-ZJ.js";
|
|
5
5
|
function Ls(e, t) {
|
|
6
6
|
const n = e.exec(t);
|
|
7
7
|
return n == null ? void 0 : n.groups;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ac as e, $ as G, D as J, a0 as V, a2 as ee, af as X, a as q, a5 as Z, i as k, I as E, a3 as te, ae as de, ah as me, X as ae, F as ue, o as be, V as he, z as ke, ad as xe } from "./number-
|
|
2
|
-
import { h as i, q as o, e as W, B as u, f as fe, g as R, t as K, G as ye } from "./Web3Auth-
|
|
1
|
+
import { ac as e, $ as G, D as J, a0 as V, a2 as ee, af as X, a as q, a5 as Z, i as k, I as E, a3 as te, ae as de, ah as me, X as ae, F as ue, o as be, V as he, z as ke, ad as xe } from "./number-DcOvM-ZJ.js";
|
|
2
|
+
import { h as i, q as o, e as W, B as u, f as fe, g as R, t as K, G as ye } from "./Web3Auth-D-jzK5S2.js";
|
|
3
3
|
const et = /* @__PURE__ */ e({
|
|
4
4
|
id: 787,
|
|
5
5
|
name: "Acala",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bw as o, b2 as r, bs as t, bC as i, bE as n, bF as f, bG as b, bB as d, bx as c, D as l, bA as m, i as p, q as h, bD as w, by as x, bz as I } from "./Web3Auth-
|
|
1
|
+
import { bw as o, b2 as r, bs as t, bC as i, bE as n, bF as f, bG as b, bB as d, bx as c, D as l, bA as m, i as p, q as h, bD as w, by as x, bz as I } from "./Web3Auth-D-jzK5S2.js";
|
|
2
2
|
const a = `
|
|
3
3
|
@font-face {
|
|
4
4
|
font-family: 'Inter';
|
package/dist/index.js
CHANGED