@springmicro/auth 0.4.1 → 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.
@@ -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-DB9s-qbl.js";
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-DB9s-qbl.js";
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-Df5ie3cE.js";
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-CDaoza_m.js"), { id: r, label: n, token: i, publicRpcUrl: o, blockExplorerUrl: a, rpcUrl: s } = e;
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-CroNOC7e.js"), f = l({
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-CroNOC7e.js"), s = await JE(t), l = o({
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-CroNOC7e.js"), i = r({
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-D4xpr8fA.js").then((O) => O.default) : Promise.resolve(null), M = c.enabled ? import("./Index-64ac63ff-mcEPPGzJ.js").then((O) => O.default) : Promise.resolve(null), j = u.enabled && b && b.accountCenter, A = (O, I, P, S) => {
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-F-gl3DJX.js"), t = document.createElement("style");
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-F-gl3DJX.js"), t = window.hasOwnProperty("ethereum");
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-C0yeApwY.js").then(($) => $.i), u = l.default ? l.default : l, { isHex: f, toHex: c, createEIP1193Provider: h, fromHex: d } = await import("./index-F-gl3DJX.js"), g = `data:image/svg+xml;base64,${window.btoa(s || "")}`, b = i.map(({ id: $ }) => d($, "number")), m = new u({
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-CiwBcaZ0.js"), { SafeAppProvider: i } = await import("./index-wNV8PBAh.js").then((h) => h.i), { createEIP1193Provider: o } = await import("./index-F-gl3DJX.js"), a = (
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 = {
@@ -1,4 +1,4 @@
1
- import { bK as L } from "./Web3Auth-DB9s-qbl.js";
1
+ import { bK as L } from "./Web3Auth-D-jzK5S2.js";
2
2
  var xt = {}, I = {}, T = {}, ne = L && L.__awaiter || function(e, t, n, i) {
3
3
  function r(s) {
4
4
  return s instanceof n ? s : new n(function(o) {
@@ -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, R;
108
- R = Symbol.for("react.module.reference");
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 === R || n.getModuleId !== void 0));
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", I = {
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(`${I.casdoor}/api/get-account${t}`, {
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 = `${I.casdoor}/api/signup`;
1057
- return I.springmicro && (e = `${I.springmicro}/api/accounts/users/register`), fetch(e, {
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(`${I.casdoor}/api/get-app-login${e}`, {
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
- `${I.casdoor}/api/get-saml-login?id=${t}&relayState=${e}`,
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(`${I.casdoor}/api/get-webhook-event?ticket=${t}`, {
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(`${I.casdoor}/api/get-qrcode?id=${t}`, {
1105
+ return fetch(`${R.casdoor}/api/get-qrcode?id=${t}`, {
1106
1106
  method: "GET",
1107
1107
  credentials: "include",
1108
1108
  headers: {
@@ -1112,12 +1112,10 @@ function Yn(t) {
1112
1112
  }
1113
1113
  function Xe(t, e) {
1114
1114
  return fetch(
1115
- `${I.casdoor}/api/get-application?id=${t}/${encodeURIComponent(
1116
- e
1117
- )}`,
1115
+ `${R.casdoor}/api/get-application?id=${t}/${encodeURIComponent(e)}`,
1118
1116
  {
1119
1117
  method: "GET",
1120
- credentials: "include",
1118
+ credentials: R.casdoor.startsWith("https") ? "include" : void 0,
1121
1119
  headers: {
1122
1120
  "Accept-Language": Z()
1123
1121
  }
@@ -1594,7 +1592,7 @@ async function Zn(t, e, o) {
1594
1592
  }
1595
1593
  function Nt(t, e) {
1596
1594
  return fetch(
1597
- `${I.casdoor}/api/get-invitation-info?code=${t}&applicationId=${encodeURIComponent(
1595
+ `${R.casdoor}/api/get-invitation-info?code=${t}&applicationId=${encodeURIComponent(
1598
1596
  e
1599
1597
  )}`,
1600
1598
  {
@@ -1608,9 +1606,9 @@ function Nt(t, e) {
1608
1606
  }
1609
1607
  function Dt(t, e, o, r, a = "", l, u, g, c = "") {
1610
1608
  const f = new FormData();
1611
- 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`, {
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`, {
1612
1610
  method: "POST",
1613
- credentials: "include",
1611
+ credentials: R.casdoor.startsWith("https") ? "include" : void 0,
1614
1612
  body: f,
1615
1613
  headers: {
1616
1614
  "Accept-Language": Z()
@@ -1619,7 +1617,7 @@ function Dt(t, e, o, r, a = "", l, u, g, c = "") {
1619
1617
  }
1620
1618
  function Ut(t, e, o) {
1621
1619
  return fetch(
1622
- `${I.casdoor}/api/get-captcha?applicationId=${t}/${encodeURIComponent(
1620
+ `${R.casdoor}/api/get-captcha?applicationId=${t}/${encodeURIComponent(
1623
1621
  e
1624
1622
  )}&isCurrentProvider=${o}`,
1625
1623
  {
@@ -1715,14 +1713,14 @@ const Xn = (t) => {
1715
1713
  }
1716
1714
  }, [e, o, r, a, l, u]), /* @__PURE__ */ i.jsx("div", { id: "captcha" });
1717
1715
  }, eo = (t) => {
1718
- 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);
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);
1719
1717
  Rt(() => {
1720
1718
  a ? H() : (he(), U(!1));
1721
1719
  }, [a]);
1722
1720
  const ge = () => {
1723
1721
  l == null || l(c, ne, w);
1724
1722
  }, he = () => {
1725
- R(""), u == null || u();
1723
+ P(""), u == null || u();
1726
1724
  }, H = () => {
1727
1725
  Ut(o, r, g).then((M) => {
1728
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));
@@ -1746,11 +1744,11 @@ const Xn = (t) => {
1746
1744
  value: ne,
1747
1745
  placeholder: e("general.captcha"),
1748
1746
  onKeyDown: (M) => M.key === "Enter" ? ge() : null,
1749
- onChange: (M) => R(M.target.value)
1747
+ onChange: (M) => P(M.target.value)
1750
1748
  }
1751
1749
  )
1752
1750
  ] }), re = (M) => {
1753
- R(M);
1751
+ P(M);
1754
1752
  }, ke = () => c === "Default" ? X() : /* @__PURE__ */ i.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ i.jsx(
1755
1753
  Xn,
1756
1754
  {
@@ -1856,7 +1854,7 @@ const Xn = (t) => {
1856
1854
  )
1857
1855
  ] });
1858
1856
  };
1859
- 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) => {
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) => {
1860
1858
  for (var o in e || (e = {}))
1861
1859
  Wt.call(e, o) && $t(t, o, e[o]);
1862
1860
  if (xt)
@@ -1902,16 +1900,16 @@ so(Gt, {
1902
1900
  ZaloLoginButton: () => fa,
1903
1901
  createButton: () => O
1904
1902
  });
1905
- 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) => {
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) => {
1906
1904
  const [e, o] = (0, oe.useState)(!1), [r, a] = (0, oe.useState)(!1), l = () => {
1907
- var R;
1908
- a(!0), (R = t.onMouseEnter) == null || R.call(t);
1905
+ var P;
1906
+ a(!0), (P = t.onMouseEnter) == null || P.call(t);
1909
1907
  }, u = () => {
1910
- var R;
1911
- a(!1), (R = t.onMouseLeave) == null || R.call(t);
1908
+ var P;
1909
+ a(!1), (P = t.onMouseLeave) == null || P.call(t);
1912
1910
  }, g = () => o(!0), c = () => o(!1), f = () => {
1913
- var R;
1914
- return (R = t.onClick) == null ? void 0 : R.call(t);
1911
+ var P;
1912
+ return (P = t.onClick) == null ? void 0 : P.call(t);
1915
1913
  }, {
1916
1914
  activeStyle: h,
1917
1915
  align: $ = "left",
@@ -1919,7 +1917,7 @@ var j = uo(Gt), Ve = A(m), oe = A(m), fo = A(m), po = ({ name: t, size: e, forma
1919
1917
  children: b = w,
1920
1918
  className: L,
1921
1919
  icon: F,
1922
- iconFormat: E = (R) => R,
1920
+ iconFormat: E = (P) => P,
1923
1921
  iconSize: _ = "26px",
1924
1922
  iconColor: k = mo,
1925
1923
  preventActiveStyles: q = !1,
@@ -1935,7 +1933,7 @@ var j = uo(Gt), Ve = A(m), oe = A(m), fo = A(m), po = ({ name: t, size: e, forma
1935
1933
  });
1936
1934
  return /* @__PURE__ */ oe.default.createElement(
1937
1935
  "button",
1938
- P({
1936
+ I({
1939
1937
  style: ne,
1940
1938
  onClick: f,
1941
1939
  onMouseEnter: l,
@@ -1960,7 +1958,7 @@ var j = uo(Gt), Ve = A(m), oe = A(m), fo = A(m), po = ({ name: t, size: e, forma
1960
1958
  customStyle: o,
1961
1959
  active: r,
1962
1960
  activeStyle: a
1963
- }) => P(P(Ht(P({}, t), {
1961
+ }) => I(I(Ht(I({}, t), {
1964
1962
  height: e
1965
1963
  }), o), r && a), Ge = {
1966
1964
  button: {
@@ -1986,12 +1984,12 @@ var j = uo(Gt), Ve = A(m), oe = A(m), fo = A(m), po = ({ name: t, size: e, forma
1986
1984
  height: "100%"
1987
1985
  }
1988
1986
  }, bo = A(m), O = (t) => (e) => {
1989
- const o = Ht(P(P({
1990
- activeStyle: P(P({}, t == null ? void 0 : t.activeStyle), e.activeStyle)
1987
+ const o = Ht(I(I({
1988
+ activeStyle: I(I({}, t == null ? void 0 : t.activeStyle), e.activeStyle)
1991
1989
  }, t), e), {
1992
- style: P(P({}, t == null ? void 0 : t.style), e.style)
1990
+ style: I(I({}, t == null ? void 0 : t.style), e.style)
1993
1991
  });
1994
- return /* @__PURE__ */ bo.default.createElement(yo, P({}, o));
1992
+ return /* @__PURE__ */ bo.default.createElement(yo, I({}, o));
1995
1993
  }, vo = {
1996
1994
  activeStyle: { background: "#293e69" },
1997
1995
  icon: $o,
@@ -2474,13 +2472,13 @@ function ba({ size: t }) {
2474
2472
  ),
2475
2473
  /* @__PURE__ */ W.default.createElement(
2476
2474
  "path",
2477
- P({
2475
+ I({
2478
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"
2479
2477
  }, At)
2480
2478
  ),
2481
2479
  /* @__PURE__ */ W.default.createElement(
2482
2480
  "path",
2483
- P({
2481
+ I({
2484
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"
2485
2483
  }, At)
2486
2484
  ),
@@ -2526,7 +2524,7 @@ function ba({ size: t }) {
2526
2524
  ),
2527
2525
  /* @__PURE__ */ W.default.createElement(
2528
2526
  "path",
2529
- P({
2527
+ I({
2530
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"
2531
2529
  }, Mt)
2532
2530
  ),
@@ -2562,7 +2560,7 @@ function ba({ size: t }) {
2562
2560
  ),
2563
2561
  /* @__PURE__ */ W.default.createElement(
2564
2562
  "path",
2565
- P({
2563
+ I({
2566
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"
2567
2565
  }, Mt)
2568
2566
  )
@@ -3005,10 +3003,10 @@ function Qe(t, e) {
3005
3003
  });
3006
3004
  }
3007
3005
  function Bt(t, e, o) {
3008
- e.type === "MetaMask" ? import("./Web3Auth-DB9s-qbl.js").then((r) => r.bO).then((r) => {
3006
+ e.type === "MetaMask" ? import("./Web3Auth-D-jzK5S2.js").then((r) => r.bO).then((r) => {
3009
3007
  const a = r.authViaMetaMask;
3010
3008
  a(t, e, o);
3011
- }) : e.type === "Web3Onboard" && import("./Web3Auth-DB9s-qbl.js").then((r) => r.bO).then((r) => {
3009
+ }) : e.type === "Web3Onboard" && import("./Web3Auth-D-jzK5S2.js").then((r) => r.bO).then((r) => {
3012
3010
  const a = r.authViaWeb3Onboard;
3013
3011
  a(t, e, o);
3014
3012
  });
@@ -3771,7 +3769,7 @@ function rr(t) {
3771
3769
  }
3772
3770
  function qt(t) {
3773
3771
  const e = te(t);
3774
- return (e === "email" || e === "phone") && t.rule !== "No verification";
3772
+ return (e === "email" || e === "phone") && t.rule !== "None";
3775
3773
  }
3776
3774
  function lr(t) {
3777
3775
  var $;
@@ -3857,7 +3855,7 @@ function pr({
3857
3855
  casdoorApiRoot: e,
3858
3856
  springmicroApiRoot: o
3859
3857
  }) {
3860
- I.casdoor = e, o && (I.springmicro = o);
3858
+ R.casdoor = e, o && (R.springmicro = o);
3861
3859
  const [r, a] = m.useState({ application: null }), l = () => {
3862
3860
  Xe("admin", t).then(
3863
3861
  (u) => {
@@ -3894,7 +3892,7 @@ function gr({
3894
3892
  springmicroApiRoot: o,
3895
3893
  children: r
3896
3894
  }) {
3897
- Te(), I.casdoor = e, o && (I.springmicro = o);
3895
+ Te(), R.casdoor = e, o && (R.springmicro = o);
3898
3896
  const [a, l] = m.useState({ application: null }), [u, g] = m.useState({}), c = () => {
3899
3897
  Xe("admin", t).then(
3900
3898
  (E) => {
@@ -1,5 +1,5 @@
1
- import { bK as V, bM as Jc, bH as Xc } from "./Web3Auth-DB9s-qbl.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-Dw0KdqMZ.js";
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-Dw0KdqMZ.js";
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-DB9s-qbl.js";
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-DB9s-qbl.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-DB9s-qbl.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-ByqdQYDu.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-ByqdQYDu.js";
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-ByqdQYDu.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-DB9s-qbl.js";
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-DB9s-qbl.js";
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
@@ -1,4 +1,4 @@
1
- import { S as s, c as a, b as e, u as n } from "./index-Df5ie3cE.js";
1
+ import { S as s, c as a, b as e, u as n } from "./index-BCIsepdu.js";
2
2
  export {
3
3
  s as SignUp,
4
4
  a as SignUpProvider,