@springmicro/auth 0.5.14 → 0.5.16

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.
Files changed (143) hide show
  1. package/.eslintrc.cjs +18 -18
  2. package/README.md +60 -60
  3. package/dist/{Index-64ac63ff-CDvYyNvy.js → Index-64ac63ff-vb_yo1iM.js} +1 -1
  4. package/dist/{Index-6c094240-BiBrljFo.js → Index-6c094240-BoxR5zsn.js} +1 -1
  5. package/dist/{Web3Auth-CHWXCVPH.js → Web3Auth-DtI3oRQ3.js} +10 -10
  6. package/dist/alphawallet-B7eovdf-.js +0 -0
  7. package/dist/apexwallet-ysP20G9D.js +0 -0
  8. package/dist/atoken-BBnNTzcz.js +0 -0
  9. package/dist/bifrostwallet-CNNBO92h.js +0 -0
  10. package/dist/binance-DvPgAzCw.js +0 -0
  11. package/dist/bitget-DZOUrwgy.js +0 -0
  12. package/dist/bitpie-C_uxmEzw.js +0 -0
  13. package/dist/bitski-DpzkHNkv.js +0 -0
  14. package/dist/blockwallet-BL69cqkA.js +0 -0
  15. package/dist/brave-DnRzMQYW.js +0 -0
  16. package/dist/ccip-c78d2f16-DLcRlwod.js +0 -0
  17. package/dist/coin98wallet-CkFdOvXt.js +0 -0
  18. package/dist/coinbase-CaGNx5if.js +0 -0
  19. package/dist/core-9rK8tWud.js +0 -0
  20. package/dist/defiwallet-0AsgJBSy.js +0 -0
  21. package/dist/detected-CX_JZaUk.js +0 -0
  22. package/dist/echooo-CmaetT_Z.js +0 -0
  23. package/dist/enkrypt-BibtwvK7.js +0 -0
  24. package/dist/exodus-BxzkDWWP.js +0 -0
  25. package/dist/fordefi-CvKyVwhI.js +0 -0
  26. package/dist/foxwallet-D7c_LDTf.js +0 -0
  27. package/dist/frame-CDfNmjUy.js +0 -0
  28. package/dist/frontier-DqKNSj2z.js +0 -0
  29. package/dist/{hashMessage-COHdRaOr.js → hashMessage-DCmgnd-x.js} +553 -519
  30. package/dist/huobiwallet-CxSwqa5L.js +0 -0
  31. package/dist/hyperpay-nmHE3WqM.js +0 -0
  32. package/dist/icon-2Zqy7pqQ.js +0 -0
  33. package/dist/icon-CGWI1Ies.js +0 -0
  34. package/dist/icon-C_O4nprO.js +0 -0
  35. package/dist/icon-DbgmZCnU.js +0 -0
  36. package/dist/icon-Dbjb6jc5.js +0 -0
  37. package/dist/icon-cAd7RhSC.js +0 -0
  38. package/dist/imtoken-yENtOTS3.js +0 -0
  39. package/dist/index-021f6a62-Zz543EDB.js +0 -0
  40. package/dist/index-40a497ea-Bn2mC0r7.js +0 -0
  41. package/dist/{index-CcJuauVP.js → index-C621Bj_G.js} +2 -2
  42. package/dist/{index-CR1JK6W7.js → index-CRVK3Pq6.js} +1 -1
  43. package/dist/{index-DK8KfPUN.js → index-Cjw60RFG.js} +1 -1
  44. package/dist/{index-CHUlH-AY.js → index-CxmovbaE.js} +1 -1
  45. package/dist/{index-DRGK_WT6.js → index-DEZkLpuR.js} +44 -44
  46. package/dist/{index-CF2CNb4_.js → index-DaoGTpZx.js} +4 -4
  47. package/dist/{index-BU4Qu1YW.js → index-opG_F1g6.js} +5089 -3734
  48. package/dist/index.d.ts +0 -0
  49. package/dist/index.js +1 -1
  50. package/dist/index.umd.cjs +257 -255
  51. package/dist/infinitywallet-C8J4FUYw.js +0 -0
  52. package/dist/kayros-AIrUK1za.js +0 -0
  53. package/dist/keplr-CyLTca9B.js +0 -0
  54. package/dist/lif3wallet-C5D6r8pg.js +0 -0
  55. package/dist/liquality-nbCtErVq.js +0 -0
  56. package/dist/mathwallet-CWkivCXo.js +0 -0
  57. package/dist/meetone-kKmvI8md.js +0 -0
  58. package/dist/metamask-BN7yiDV1.js +0 -0
  59. package/dist/mykey-CQZ6UcLH.js +0 -0
  60. package/dist/native-FDN9oNjc.js +0 -0
  61. package/dist/{number-C9sgwRRs.js → number-BE79AmF4.js} +1 -1
  62. package/dist/okxwallet-CJLVogh2.js +0 -0
  63. package/dist/oneInch-CciyZ4Pz.js +0 -0
  64. package/dist/onekey-Dal8kYjU.js +0 -0
  65. package/dist/opera-DnKg-TJU.js +0 -0
  66. package/dist/ownbit-BshJUVuW.js +0 -0
  67. package/dist/phantom-CJ8dIcov.js +0 -0
  68. package/dist/rabby-D4thTcd6.js +0 -0
  69. package/dist/rainbow-mXld6yWV.js +0 -0
  70. package/dist/roninwallet-ZyYrd-D1.js +0 -0
  71. package/dist/safeheron-Eg1Jb29V.js +0 -0
  72. package/dist/safepal-DVIKy94N.js +0 -0
  73. package/dist/sequence-BS2IbtDg.js +0 -0
  74. package/dist/stablewallet-jyB079Wb.js +0 -0
  75. package/dist/status-FrAvQjfn.js +0 -0
  76. package/dist/subwallet-DMvFqKyY.js +0 -0
  77. package/dist/talisman-Bp8zUXqB.js +0 -0
  78. package/dist/tallywallet-B4OS9nIr.js +0 -0
  79. package/dist/tokenary-C7jjcbQa.js +0 -0
  80. package/dist/tokenpocket-9ZRPmAFA.js +0 -0
  81. package/dist/tp-V2em5bdl.js +0 -0
  82. package/dist/transactionRequest-be6a8ea9-CUKWo5mx.js +0 -0
  83. package/dist/trust-SgHubMq7.js +0 -0
  84. package/dist/xdefi-COVIyGz4.js +0 -0
  85. package/dist/zeal-DxHbDqm0.js +0 -0
  86. package/dist/zerion-BfW0UElc.js +0 -0
  87. package/dist/zodiacpilot-CrId6F4w.js +0 -0
  88. package/index.html +13 -13
  89. package/package.json +3 -2
  90. package/src/auth/config.ts +0 -0
  91. package/src/components/SignUp.tsx +0 -0
  92. package/src/components/forms/AgreementModal.tsx +88 -88
  93. package/src/components/forms/CaptchaController.tsx +94 -94
  94. package/src/components/forms/CaptchaModal.jsx +171 -171
  95. package/src/components/forms/CaptchaWidget.jsx +146 -146
  96. package/src/components/forms/PasswordChecker.ts +88 -88
  97. package/src/components/forms/SendCodeInput.tsx +149 -149
  98. package/src/components/forms/SignUpFormItem.tsx +704 -704
  99. package/src/components/forms/util/application-api.ts +157 -155
  100. package/src/components/forms/util/auth-api.ts +198 -198
  101. package/src/components/forms/util/auth-util.tsx +346 -346
  102. package/src/components/forms/util/core.ts +493 -493
  103. package/src/components/forms/util/invitation-api.ts +132 -132
  104. package/src/components/forms/util/provider.tsx +603 -603
  105. package/src/components/forms/util/user-api.ts +308 -308
  106. package/src/components/provider/AdfsLoginButton.jsx +38 -38
  107. package/src/components/provider/AlipayLoginButton.jsx +38 -38
  108. package/src/components/provider/AppleLoginButton.jsx +38 -38
  109. package/src/components/provider/AzureADB2CLoginButton.jsx +38 -38
  110. package/src/components/provider/AzureADLoginButton.jsx +38 -38
  111. package/src/components/provider/BaiduLoginButton.jsx +38 -38
  112. package/src/components/provider/BilibiliLoginButton.jsx +37 -37
  113. package/src/components/provider/CasdoorLoginButton.jsx +38 -38
  114. package/src/components/provider/DingTalkLoginButton.jsx +37 -37
  115. package/src/components/provider/DouyinLoginButton.jsx +38 -38
  116. package/src/components/provider/FacebookLoginButton.jsx +37 -37
  117. package/src/components/provider/GitHubLoginButton.jsx +37 -37
  118. package/src/components/provider/GitLabLoginButton.jsx +38 -38
  119. package/src/components/provider/GiteeLoginButton.jsx +34 -34
  120. package/src/components/provider/GoogleLoginButton.jsx +68 -68
  121. package/src/components/provider/InfoflowLoginButton.jsx +38 -38
  122. package/src/components/provider/LarkLoginButton.jsx +38 -38
  123. package/src/components/provider/LinkedInLoginButton.jsx +37 -37
  124. package/src/components/provider/LoginButton.jsx +33 -33
  125. package/src/components/provider/OktaLoginButton.jsx +38 -38
  126. package/src/components/provider/Provider.jsx +3 -3
  127. package/src/components/provider/ProviderButton.jsx +327 -327
  128. package/src/components/provider/QqLoginButton.jsx +31 -31
  129. package/src/components/provider/SelfLoginButton.jsx +47 -47
  130. package/src/components/provider/SlackLoginButton.jsx +38 -38
  131. package/src/components/provider/SteamLoginButton.jsx +38 -38
  132. package/src/components/provider/WeComLoginButton.jsx +34 -34
  133. package/src/components/provider/Web3Auth.jsx +365 -365
  134. package/src/components/provider/WechatLoginButton.jsx +37 -37
  135. package/src/components/provider/WeiboLoginButton.jsx +34 -34
  136. package/src/components/util.tsx +0 -0
  137. package/src/i18n/en/signup.json +48 -48
  138. package/src/i18n/index.ts +17 -17
  139. package/src/index.tsx +0 -0
  140. package/src/vite-env.d.ts +1 -1
  141. package/tsconfig.json +23 -23
  142. package/tsconfig.node.json +10 -10
  143. package/vite.config.ts +33 -33
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -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-C9sgwRRs.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-CHWXCVPH.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-BE79AmF4.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-DtI3oRQ3.js";
3
3
  const et = /* @__PURE__ */ e({
4
4
  id: 787,
5
5
  name: "Acala",
@@ -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-CHWXCVPH.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-DtI3oRQ3.js";
2
2
  var ts = {}, gt = {}, Kt = {};
3
3
  Object.defineProperty(Kt, "__esModule", { value: !0 });
4
4
  Kt.walletLogo = void 0;
@@ -1,4 +1,4 @@
1
- import { e as y, h as T, a as k } from "./hashMessage-COHdRaOr.js";
1
+ import { e as y, h as T, a as k } from "./hashMessage-DCmgnd-x.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 { 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-CHWXCVPH.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-DtI3oRQ3.js";
2
2
  const a = `
3
3
  @font-face {
4
4
  font-family: 'Inter';
@@ -63,14 +63,14 @@ function Cn() {
63
63
  C.unshift("Warning: " + c), Function.prototype.apply.call(console[n], console, C);
64
64
  }
65
65
  }
66
- var Y = !1, U = !1, ie = !1, pe = !1, ne = !1, P;
67
- P = Symbol.for("react.module.reference");
66
+ var Y = !1, U = !1, ie = !1, pe = !1, ne = !1, R;
67
+ R = Symbol.for("react.module.reference");
68
68
  function ze(n) {
69
69
  return !!(typeof n == "string" || typeof n == "function" || n === r || n === l || ne || n === i || n === f || n === m || pe || n === v || Y || U || ie || typeof n == "object" && n !== null && (n.$$typeof === w || n.$$typeof === k || n.$$typeof === u || n.$$typeof === g || n.$$typeof === s || // This needs to include all possible module reference object
70
70
  // types supported by any Flight configuration anywhere since
71
71
  // we don't know which Flight build this will end up being used
72
72
  // with.
73
- n.$$typeof === P || n.getModuleId !== void 0));
73
+ n.$$typeof === R || n.getModuleId !== void 0));
74
74
  }
75
75
  function ge(n, c, p) {
76
76
  var y = n.displayName;
@@ -631,7 +631,7 @@ React keys must be passed directly to JSX without using spread:
631
631
  }
632
632
  process.env.NODE_ENV === "production" ? Ze.exports = _n() : Ze.exports = Cn();
633
633
  var a = Ze.exports;
634
- const d = "https://cdn.casbin.org", I = {
634
+ const d = "https://cdn.casbin.org", P = {
635
635
  casdoor: "https://casdoor",
636
636
  springmicro: void 0
637
637
  };
@@ -1003,7 +1003,7 @@ const Nn = {
1003
1003
  }
1004
1004
  };
1005
1005
  function Dn(t = "") {
1006
- return fetch(`${I.casdoor}/api/get-account${t}`, {
1006
+ return fetch(`${P.casdoor}/api/get-account${t}`, {
1007
1007
  method: "GET",
1008
1008
  credentials: "include",
1009
1009
  headers: {
@@ -1012,8 +1012,8 @@ function Dn(t = "") {
1012
1012
  }).then((e) => e.json());
1013
1013
  }
1014
1014
  function Un(t) {
1015
- let e = `${I.casdoor}/api/signup`;
1016
- return I.springmicro && (e = `${I.springmicro}/api/accounts/users/register`), fetch(e, {
1015
+ let e = `${P.casdoor}/api/signup`;
1016
+ return P.springmicro && (e = `${P.springmicro}/api/accounts/users/register`), fetch(e, {
1017
1017
  method: "POST",
1018
1018
  credentials: "include",
1019
1019
  body: JSON.stringify(t),
@@ -1031,7 +1031,7 @@ function Hn(t) {
1031
1031
  }
1032
1032
  function It(t) {
1033
1033
  const e = (t == null ? void 0 : t.type) === "cas" ? Wn(t) : Hn(t);
1034
- return fetch(`${I.casdoor}/api/get-app-login${e}`, {
1034
+ return fetch(`${P.casdoor}/api/get-app-login${e}`, {
1035
1035
  method: "GET",
1036
1036
  credentials: "include",
1037
1037
  headers: {
@@ -1041,7 +1041,7 @@ function It(t) {
1041
1041
  }
1042
1042
  function Vn(t, e) {
1043
1043
  return fetch(
1044
- `${I.casdoor}/api/get-saml-login?id=${t}&relayState=${e}`,
1044
+ `${P.casdoor}/api/get-saml-login?id=${t}&relayState=${e}`,
1045
1045
  {
1046
1046
  method: "GET",
1047
1047
  credentials: "include",
@@ -1052,7 +1052,7 @@ function Vn(t, e) {
1052
1052
  ).then((o) => o.json());
1053
1053
  }
1054
1054
  function Gn(t) {
1055
- return fetch(`${I.casdoor}/api/get-webhook-event?ticket=${t}`, {
1055
+ return fetch(`${P.casdoor}/api/get-webhook-event?ticket=${t}`, {
1056
1056
  method: "GET",
1057
1057
  credentials: "include",
1058
1058
  headers: {
@@ -1061,7 +1061,7 @@ function Gn(t) {
1061
1061
  }).then((e) => e.json());
1062
1062
  }
1063
1063
  function qn(t) {
1064
- return fetch(`${I.casdoor}/api/get-qrcode?id=${t}`, {
1064
+ return fetch(`${P.casdoor}/api/get-qrcode?id=${t}`, {
1065
1065
  method: "GET",
1066
1066
  credentials: "include",
1067
1067
  headers: {
@@ -1071,10 +1071,10 @@ function qn(t) {
1071
1071
  }
1072
1072
  function Xe(t, e) {
1073
1073
  return fetch(
1074
- `${I.casdoor}/api/get-application?id=${t}/${encodeURIComponent(e)}`,
1074
+ `${P.casdoor}/api/get-application?id=${t}/${encodeURIComponent(e)}`,
1075
1075
  {
1076
1076
  method: "GET",
1077
- credentials: "include",
1077
+ credentials: P.casdoor.startsWith("https") ? "include" : void 0,
1078
1078
  headers: {
1079
1079
  "Content-Type": "application/json"
1080
1080
  }
@@ -1551,7 +1551,7 @@ async function Qn(t, e, o) {
1551
1551
  }
1552
1552
  function Nt(t, e) {
1553
1553
  return fetch(
1554
- `${I.casdoor}/api/get-invitation-info?code=${t}&applicationId=${encodeURIComponent(
1554
+ `${P.casdoor}/api/get-invitation-info?code=${t}&applicationId=${encodeURIComponent(
1555
1555
  e
1556
1556
  )}`,
1557
1557
  {
@@ -1565,9 +1565,9 @@ function Nt(t, e) {
1565
1565
  }
1566
1566
  function Dt(t, e, o, r, i = "", l, u, g, s = "") {
1567
1567
  const f = new FormData();
1568
- return f.append("captchaType", t), f.append("captchaToken", e), f.append("clientSecret", o), f.append("method", r), f.append("countryCode", i), f.append("dest", l), f.append("type", u), f.append("applicationId", "admin/" + g), f.append("checkUser", s), fetch(`${I.casdoor}/api/send-verification-code`, {
1568
+ return f.append("captchaType", t), f.append("captchaToken", e), f.append("clientSecret", o), f.append("method", r), f.append("countryCode", i), f.append("dest", l), f.append("type", u), f.append("applicationId", "admin/" + g), f.append("checkUser", s), fetch(`${P.casdoor}/api/send-verification-code`, {
1569
1569
  method: "POST",
1570
- credentials: "include",
1570
+ credentials: P.casdoor.startsWith("https") ? "include" : void 0,
1571
1571
  body: f,
1572
1572
  headers: {
1573
1573
  // "Content-Type": "application/json",
@@ -1577,7 +1577,7 @@ function Dt(t, e, o, r, i = "", l, u, g, s = "") {
1577
1577
  }
1578
1578
  function Ut(t, e, o) {
1579
1579
  return fetch(
1580
- `${I.casdoor}/api/get-captcha?applicationId=${t}/${encodeURIComponent(
1580
+ `${P.casdoor}/api/get-captcha?applicationId=${t}/${encodeURIComponent(
1581
1581
  e
1582
1582
  )}&isCurrentProvider=${o}`,
1583
1583
  {
@@ -1673,14 +1673,14 @@ const Zn = (t) => {
1673
1673
  }
1674
1674
  }, [e, o, r, i, l, u]), /* @__PURE__ */ a.jsx("div", { id: "captcha" });
1675
1675
  }, Xn = (t) => {
1676
- const { t: e } = Te(), { owner: o, name: r, visible: i, onOk: l, onCancel: u, isCurrentProvider: g } = t, [s, f] = h.useState("none"), [m, k] = h.useState(""), [w, v] = h.useState(""), [M, D] = h.useState(""), [E, _] = h.useState(""), [$, q] = h.useState(""), [Y, U] = h.useState(!1), [ie, pe] = h.useState(""), [ne, P] = h.useState(""), ze = h.useRef(null);
1676
+ const { t: e } = Te(), { owner: o, name: r, visible: i, onOk: l, onCancel: u, isCurrentProvider: g } = t, [s, f] = h.useState("none"), [m, k] = h.useState(""), [w, v] = h.useState(""), [M, D] = h.useState(""), [E, _] = h.useState(""), [$, q] = h.useState(""), [Y, U] = h.useState(!1), [ie, pe] = h.useState(""), [ne, R] = h.useState(""), ze = h.useRef(null);
1677
1677
  Pt(() => {
1678
1678
  i ? H() : (he(), U(!1));
1679
1679
  }, [i]);
1680
1680
  const ge = () => {
1681
1681
  l == null || l(s, ne, w);
1682
1682
  }, he = () => {
1683
- P(""), u == null || u();
1683
+ R(""), u == null || u();
1684
1684
  }, H = () => {
1685
1685
  Ut(o, r, g).then((A) => {
1686
1686
  A.type === "none" ? ge() : A.type === "Default" ? (U(!0), v(A.captchaId), pe(A.captchaImage), f("Default")) : (U(!0), f(A.type), k(A.clientId), v(A.clientSecret), D(A.subType), _(A.clientId2), q(A.clientSecret2));
@@ -1704,11 +1704,11 @@ const Zn = (t) => {
1704
1704
  value: ne,
1705
1705
  placeholder: e("general.captcha"),
1706
1706
  onKeyDown: (A) => A.key === "Enter" ? ge() : null,
1707
- onChange: (A) => P(A.target.value)
1707
+ onChange: (A) => R(A.target.value)
1708
1708
  }
1709
1709
  )
1710
1710
  ] }), re = (A) => {
1711
- P(A);
1711
+ R(A);
1712
1712
  }, ke = () => s === "Default" ? Z() : /* @__PURE__ */ a.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ a.jsx(
1713
1713
  Zn,
1714
1714
  {
@@ -1814,7 +1814,7 @@ const Zn = (t) => {
1814
1814
  )
1815
1815
  ] });
1816
1816
  };
1817
- var to = Object.create, $e = Object.defineProperty, no = Object.defineProperties, oo = Object.getOwnPropertyDescriptor, ao = Object.getOwnPropertyDescriptors, io = Object.getOwnPropertyNames, xt = Object.getOwnPropertySymbols, ro = Object.getPrototypeOf, Wt = Object.prototype.hasOwnProperty, lo = Object.prototype.propertyIsEnumerable, $t = (t, e, o) => e in t ? $e(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o, R = (t, e) => {
1817
+ var to = Object.create, $e = Object.defineProperty, no = Object.defineProperties, oo = Object.getOwnPropertyDescriptor, ao = Object.getOwnPropertyDescriptors, io = Object.getOwnPropertyNames, xt = Object.getOwnPropertySymbols, ro = Object.getPrototypeOf, Wt = Object.prototype.hasOwnProperty, lo = 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) => {
1818
1818
  for (var o in e || (e = {}))
1819
1819
  Wt.call(e, o) && $t(t, o, e[o]);
1820
1820
  if (xt)
@@ -1860,16 +1860,16 @@ co(Gt, {
1860
1860
  ZaloLoginButton: () => da,
1861
1861
  createButton: () => O
1862
1862
  });
1863
- var j = so(Gt), Ve = T(h), oe = T(h), uo = T(h), fo = ({ name: t, size: e, format: o }) => /* @__PURE__ */ uo.default.createElement("i", { className: o(t), style: { fontSize: e } }), po = fo, kt = T(h), go = ({ type: t, size: e, format: o, color: r = "#FFFFFF" }) => typeof t == "string" ? /* @__PURE__ */ kt.default.createElement(po, R({}, { format: o, name: t, size: e })) : /* @__PURE__ */ kt.default.createElement(t, { size: e, color: r }), ho = "#FFFFFF", mo = (t) => {
1863
+ var j = so(Gt), Ve = T(h), oe = T(h), uo = T(h), fo = ({ name: t, size: e, format: o }) => /* @__PURE__ */ uo.default.createElement("i", { className: o(t), style: { fontSize: e } }), po = fo, kt = T(h), go = ({ type: t, size: e, format: o, color: r = "#FFFFFF" }) => typeof t == "string" ? /* @__PURE__ */ kt.default.createElement(po, I({}, { format: o, name: t, size: e })) : /* @__PURE__ */ kt.default.createElement(t, { size: e, color: r }), ho = "#FFFFFF", mo = (t) => {
1864
1864
  const [e, o] = (0, oe.useState)(!1), [r, i] = (0, oe.useState)(!1), l = () => {
1865
- var P;
1866
- i(!0), (P = t.onMouseEnter) == null || P.call(t);
1865
+ var R;
1866
+ i(!0), (R = t.onMouseEnter) == null || R.call(t);
1867
1867
  }, u = () => {
1868
- var P;
1869
- i(!1), (P = t.onMouseLeave) == null || P.call(t);
1868
+ var R;
1869
+ i(!1), (R = t.onMouseLeave) == null || R.call(t);
1870
1870
  }, g = () => o(!0), s = () => o(!1), f = () => {
1871
- var P;
1872
- return (P = t.onClick) == null ? void 0 : P.call(t);
1871
+ var R;
1872
+ return (R = t.onClick) == null ? void 0 : R.call(t);
1873
1873
  }, {
1874
1874
  activeStyle: m,
1875
1875
  align: k = "left",
@@ -1877,7 +1877,7 @@ var j = so(Gt), Ve = T(h), oe = T(h), uo = T(h), fo = ({ name: t, size: e, forma
1877
1877
  children: v = w,
1878
1878
  className: M,
1879
1879
  icon: D,
1880
- iconFormat: E = (P) => P,
1880
+ iconFormat: E = (R) => R,
1881
1881
  iconSize: _ = "26px",
1882
1882
  iconColor: $ = ho,
1883
1883
  preventActiveStyles: q = !1,
@@ -1893,7 +1893,7 @@ var j = so(Gt), Ve = T(h), oe = T(h), uo = T(h), fo = ({ name: t, size: e, forma
1893
1893
  });
1894
1894
  return /* @__PURE__ */ oe.default.createElement(
1895
1895
  "button",
1896
- R({
1896
+ I({
1897
1897
  style: ne,
1898
1898
  onClick: f,
1899
1899
  onMouseEnter: l,
@@ -1918,7 +1918,7 @@ var j = so(Gt), Ve = T(h), oe = T(h), uo = T(h), fo = ({ name: t, size: e, forma
1918
1918
  customStyle: o,
1919
1919
  active: r,
1920
1920
  activeStyle: i
1921
- }) => R(R(Ht(R({}, t), {
1921
+ }) => I(I(Ht(I({}, t), {
1922
1922
  height: e
1923
1923
  }), o), r && i), Ge = {
1924
1924
  button: {
@@ -1944,12 +1944,12 @@ var j = so(Gt), Ve = T(h), oe = T(h), uo = T(h), fo = ({ name: t, size: e, forma
1944
1944
  height: "100%"
1945
1945
  }
1946
1946
  }, wo = T(h), O = (t) => (e) => {
1947
- const o = Ht(R(R({
1948
- activeStyle: R(R({}, t == null ? void 0 : t.activeStyle), e.activeStyle)
1947
+ const o = Ht(I(I({
1948
+ activeStyle: I(I({}, t == null ? void 0 : t.activeStyle), e.activeStyle)
1949
1949
  }, t), e), {
1950
- style: R(R({}, t == null ? void 0 : t.style), e.style)
1950
+ style: I(I({}, t == null ? void 0 : t.style), e.style)
1951
1951
  });
1952
- return /* @__PURE__ */ wo.default.createElement(mo, R({}, o));
1952
+ return /* @__PURE__ */ wo.default.createElement(mo, I({}, o));
1953
1953
  }, bo = {
1954
1954
  activeStyle: { background: "#293e69" },
1955
1955
  icon: xo,
@@ -2432,13 +2432,13 @@ function wa({ size: t }) {
2432
2432
  ),
2433
2433
  /* @__PURE__ */ W.default.createElement(
2434
2434
  "path",
2435
- R({
2435
+ I({
2436
2436
  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"
2437
2437
  }, At)
2438
2438
  ),
2439
2439
  /* @__PURE__ */ W.default.createElement(
2440
2440
  "path",
2441
- R({
2441
+ I({
2442
2442
  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"
2443
2443
  }, At)
2444
2444
  ),
@@ -2484,7 +2484,7 @@ function wa({ size: t }) {
2484
2484
  ),
2485
2485
  /* @__PURE__ */ W.default.createElement(
2486
2486
  "path",
2487
- R({
2487
+ I({
2488
2488
  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"
2489
2489
  }, Mt)
2490
2490
  ),
@@ -2520,7 +2520,7 @@ function wa({ size: t }) {
2520
2520
  ),
2521
2521
  /* @__PURE__ */ W.default.createElement(
2522
2522
  "path",
2523
- R({
2523
+ I({
2524
2524
  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"
2525
2525
  }, Mt)
2526
2526
  )
@@ -2963,10 +2963,10 @@ function Qe(t, e) {
2963
2963
  });
2964
2964
  }
2965
2965
  function Bt(t, e, o) {
2966
- e.type === "MetaMask" ? import("./Web3Auth-CHWXCVPH.js").then((r) => r.bO).then((r) => {
2966
+ e.type === "MetaMask" ? import("./Web3Auth-DtI3oRQ3.js").then((r) => r.bO).then((r) => {
2967
2967
  const i = r.authViaMetaMask;
2968
2968
  i(t, e, o);
2969
- }) : e.type === "Web3Onboard" && import("./Web3Auth-CHWXCVPH.js").then((r) => r.bO).then((r) => {
2969
+ }) : e.type === "Web3Onboard" && import("./Web3Auth-DtI3oRQ3.js").then((r) => r.bO).then((r) => {
2970
2970
  const i = r.authViaWeb3Onboard;
2971
2971
  i(t, e, o);
2972
2972
  });
@@ -3798,7 +3798,7 @@ function ur({
3798
3798
  casdoorApiRoot: e,
3799
3799
  springmicroApiRoot: o
3800
3800
  }) {
3801
- I.casdoor = e, o && (I.springmicro = o);
3801
+ P.casdoor = e, o && (P.springmicro = o);
3802
3802
  const [r, i] = h.useState({ application: null }), l = () => {
3803
3803
  Xe("admin", t).then(
3804
3804
  (u) => {
@@ -3835,7 +3835,7 @@ function dr({
3835
3835
  springmicroApiRoot: o,
3836
3836
  children: r
3837
3837
  }) {
3838
- Te(), I.casdoor = e, o && (I.springmicro = o);
3838
+ Te(), P.casdoor = e, o && (P.springmicro = o);
3839
3839
  const [i, l] = h.useState({ application: null }), [u, g] = h.useState({}), s = () => {
3840
3840
  Xe("admin", t).then(
3841
3841
  (E) => {
@@ -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-CHWXCVPH.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-CHWXCVPH.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-C9sgwRRs.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-C9sgwRRs.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-DtI3oRQ3.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-DtI3oRQ3.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-BE79AmF4.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-BE79AmF4.js";
5
5
  function Ls(e, t) {
6
6
  const n = e.exec(t);
7
7
  return n == null ? void 0 : n.groups;