@springmicro/auth 0.3.0 → 0.3.5
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/.eslintrc.cjs +0 -0
- package/README.md +60 -60
- package/dist/{Index-c419311f-DolmVisI.js → Index-64ac63ff-mcEPPGzJ.js} +101 -102
- package/dist/{Index-652aeb8c-Cr1mbyJJ.js → Index-6c094240-D4xpr8fA.js} +70 -71
- package/dist/{Web3Auth-C5tucK1E.js → Web3Auth-DB9s-qbl.js} +12454 -12511
- package/dist/alphawallet-B7eovdf-.js +0 -0
- package/dist/apexwallet-ysP20G9D.js +0 -0
- package/dist/atoken-BBnNTzcz.js +0 -0
- package/dist/bifrostwallet-CNNBO92h.js +0 -0
- package/dist/binance-DvPgAzCw.js +0 -0
- package/dist/bitget-DZOUrwgy.js +0 -0
- package/dist/bitpie-C_uxmEzw.js +0 -0
- package/dist/bitski-DpzkHNkv.js +0 -0
- package/dist/blockwallet-BL69cqkA.js +0 -0
- package/dist/brave-DnRzMQYW.js +0 -0
- package/dist/ccip-c78d2f16-DLcRlwod.js +0 -0
- package/dist/coin98wallet-CkFdOvXt.js +0 -0
- package/dist/coinbase-CaGNx5if.js +0 -0
- package/dist/core-9rK8tWud.js +0 -0
- package/dist/defiwallet-0AsgJBSy.js +0 -0
- package/dist/detected-CX_JZaUk.js +0 -0
- package/dist/echooo-CmaetT_Z.js +0 -0
- package/dist/enkrypt-BibtwvK7.js +0 -0
- package/dist/exodus-BxzkDWWP.js +0 -0
- package/dist/fordefi-CvKyVwhI.js +0 -0
- package/dist/foxwallet-D7c_LDTf.js +0 -0
- package/dist/frame-CDfNmjUy.js +0 -0
- package/dist/frontier-DqKNSj2z.js +0 -0
- package/dist/hashMessage-Dw0KdqMZ.js +2101 -0
- package/dist/huobiwallet-CxSwqa5L.js +0 -0
- package/dist/hyperpay-nmHE3WqM.js +0 -0
- package/dist/icon-2Zqy7pqQ.js +0 -0
- package/dist/icon-CGWI1Ies.js +0 -0
- package/dist/icon-C_O4nprO.js +0 -0
- package/dist/icon-DbgmZCnU.js +0 -0
- package/dist/icon-Dbjb6jc5.js +20 -0
- package/dist/icon-cAd7RhSC.js +0 -0
- package/dist/imtoken-yENtOTS3.js +0 -0
- package/dist/index-021f6a62-Zz543EDB.js +0 -0
- package/dist/index-40a497ea-Bn2mC0r7.js +0 -0
- package/dist/{index-YKlm7xSx.js → index-C0yeApwY.js} +750 -751
- package/dist/{index-C4uVsW-I.js → index-CDaoza_m.js} +2 -2
- package/dist/index-CiwBcaZ0.js +384 -0
- package/dist/{index-DOUI-2vv.js → index-CroNOC7e.js} +27 -29
- package/dist/{index-Boi-WcMK.js → index-Df5ie3cE.js} +2 -2
- package/dist/{index-DzOmdGpF.js → index-F-gl3DJX.js} +8 -10
- package/dist/index-wNV8PBAh.js +11412 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +327 -291
- package/dist/infinitywallet-C8J4FUYw.js +0 -0
- package/dist/kayros-AIrUK1za.js +0 -0
- package/dist/keplr-CyLTca9B.js +36 -0
- package/dist/lif3wallet-C5D6r8pg.js +0 -0
- package/dist/liquality-nbCtErVq.js +0 -0
- package/dist/mathwallet-CWkivCXo.js +0 -0
- package/dist/meetone-kKmvI8md.js +0 -0
- package/dist/metamask-BN7yiDV1.js +0 -0
- package/dist/mykey-CQZ6UcLH.js +0 -0
- package/dist/native-FDN9oNjc.js +15 -0
- package/dist/{number-UhidYs-H.js → number-ByqdQYDu.js} +1 -1
- package/dist/okxwallet-CJLVogh2.js +0 -0
- package/dist/oneInch-CciyZ4Pz.js +0 -0
- package/dist/onekey-Dal8kYjU.js +0 -0
- package/dist/opera-DnKg-TJU.js +0 -0
- package/dist/ownbit-BshJUVuW.js +0 -0
- package/dist/phantom-CJ8dIcov.js +0 -0
- package/dist/rabby-D4thTcd6.js +0 -0
- package/dist/rainbow-mXld6yWV.js +0 -0
- package/dist/roninwallet-ZyYrd-D1.js +0 -0
- package/dist/safeheron-Eg1Jb29V.js +0 -0
- package/dist/safepal-DVIKy94N.js +0 -0
- package/dist/sequence-BS2IbtDg.js +0 -0
- package/dist/stablewallet-jyB079Wb.js +0 -0
- package/dist/status-FrAvQjfn.js +0 -0
- package/dist/subwallet-DMvFqKyY.js +0 -0
- package/dist/talisman-Bp8zUXqB.js +0 -0
- package/dist/tallywallet-B4OS9nIr.js +0 -0
- package/dist/tokenary-C7jjcbQa.js +0 -0
- package/dist/tokenpocket-9ZRPmAFA.js +0 -0
- package/dist/tp-V2em5bdl.js +0 -0
- package/dist/transactionRequest-be6a8ea9-CUKWo5mx.js +0 -0
- package/dist/trust-SgHubMq7.js +20 -0
- package/dist/xdefi-COVIyGz4.js +0 -0
- package/dist/zeal-DxHbDqm0.js +0 -0
- package/dist/zerion-BfW0UElc.js +0 -0
- package/dist/zodiacpilot-CrId6F4w.js +0 -0
- package/index.html +0 -0
- package/package.json +2 -2
- package/src/auth/config.ts +91 -91
- package/src/components/SignUp.tsx +442 -442
- package/src/components/forms/AgreementModal.tsx +88 -88
- package/src/components/forms/CaptchaController.tsx +94 -94
- package/src/components/forms/CaptchaModal.jsx +171 -171
- package/src/components/forms/CaptchaWidget.jsx +146 -146
- package/src/components/forms/PasswordChecker.ts +88 -88
- package/src/components/forms/SendCodeInput.tsx +149 -149
- package/src/components/forms/SignUpFormItem.tsx +704 -704
- package/src/components/forms/util/application-api.ts +155 -155
- package/src/components/forms/util/auth-api.ts +198 -198
- package/src/components/forms/util/auth-util.tsx +346 -346
- package/src/components/forms/util/core.ts +493 -493
- package/src/components/forms/util/invitation-api.ts +132 -132
- package/src/components/forms/util/provider.tsx +603 -603
- package/src/components/forms/util/user-api.ts +303 -303
- package/src/components/provider/AdfsLoginButton.jsx +38 -38
- package/src/components/provider/AlipayLoginButton.jsx +38 -38
- package/src/components/provider/AppleLoginButton.jsx +38 -38
- package/src/components/provider/AzureADB2CLoginButton.jsx +38 -38
- package/src/components/provider/AzureADLoginButton.jsx +38 -38
- package/src/components/provider/BaiduLoginButton.jsx +38 -38
- package/src/components/provider/BilibiliLoginButton.jsx +37 -37
- package/src/components/provider/CasdoorLoginButton.jsx +38 -38
- package/src/components/provider/DingTalkLoginButton.jsx +37 -37
- package/src/components/provider/DouyinLoginButton.jsx +38 -38
- package/src/components/provider/FacebookLoginButton.jsx +37 -37
- package/src/components/provider/GitHubLoginButton.jsx +37 -37
- package/src/components/provider/GitLabLoginButton.jsx +38 -38
- package/src/components/provider/GiteeLoginButton.jsx +34 -34
- package/src/components/provider/GoogleLoginButton.jsx +68 -68
- package/src/components/provider/InfoflowLoginButton.jsx +38 -38
- package/src/components/provider/LarkLoginButton.jsx +38 -38
- package/src/components/provider/LinkedInLoginButton.jsx +37 -37
- package/src/components/provider/LoginButton.jsx +33 -33
- package/src/components/provider/OktaLoginButton.jsx +38 -38
- package/src/components/provider/Provider.jsx +3 -3
- package/src/components/provider/ProviderButton.jsx +327 -327
- package/src/components/provider/QqLoginButton.jsx +31 -31
- package/src/components/provider/SelfLoginButton.jsx +47 -47
- package/src/components/provider/SlackLoginButton.jsx +38 -38
- package/src/components/provider/SteamLoginButton.jsx +38 -38
- package/src/components/provider/WeComLoginButton.jsx +34 -34
- package/src/components/provider/Web3Auth.jsx +365 -365
- package/src/components/provider/WechatLoginButton.jsx +37 -37
- package/src/components/provider/WeiboLoginButton.jsx +34 -34
- package/src/components/util.tsx +173 -173
- package/src/i18n/en/signup.json +48 -48
- package/src/i18n/index.ts +17 -17
- package/src/index.tsx +8 -8
- package/src/vite-env.d.ts +0 -0
- package/tsconfig.json +0 -0
- package/tsconfig.node.json +0 -0
- package/vite.config.ts +33 -33
- package/dist/icon-duCa3gfT.js +0 -11
- package/dist/index-BtLU53lm.js +0 -6023
- package/dist/index-CLfsMiG4.js +0 -2021
- package/dist/index-DPq81SIn.js +0 -161
- package/dist/trust-gPypS1O7.js +0 -11
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { _ as
|
|
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";
|
|
2
2
|
var gn = function(e) {
|
|
3
|
-
|
|
3
|
+
He(t, e);
|
|
4
4
|
function t(n, r) {
|
|
5
5
|
return e.call(this) || this;
|
|
6
6
|
}
|
|
7
7
|
return t.prototype.schedule = function(n, r) {
|
|
8
8
|
return this;
|
|
9
9
|
}, t;
|
|
10
|
-
}(Ht),
|
|
10
|
+
}(Ht), Xe = {
|
|
11
11
|
setInterval: function(e, t) {
|
|
12
12
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
13
13
|
n[r - 2] = arguments[r];
|
|
14
14
|
return setInterval.apply(void 0, Bt([e, t], Dt(n)));
|
|
15
15
|
},
|
|
16
16
|
clearInterval: function(e) {
|
|
17
|
-
|
|
18
|
-
return ((t == null ? void 0 : t.clearInterval) || clearInterval)(e);
|
|
17
|
+
return clearInterval(e);
|
|
19
18
|
},
|
|
20
19
|
delegate: void 0
|
|
21
20
|
}, bn = function(e) {
|
|
22
|
-
|
|
21
|
+
He(t, e);
|
|
23
22
|
function t(n, r) {
|
|
24
23
|
var o = e.call(this, n, r) || this;
|
|
25
24
|
return o.scheduler = n, o.work = r, o.pending = !1, o;
|
|
@@ -32,11 +31,11 @@ var gn = function(e) {
|
|
|
32
31
|
var l = this.id, a = this.scheduler;
|
|
33
32
|
return l != null && (this.id = this.recycleAsyncId(a, l, r)), this.pending = !0, this.delay = r, this.id = (o = this.id) !== null && o !== void 0 ? o : this.requestAsyncId(a, this.id, r), this;
|
|
34
33
|
}, t.prototype.requestAsyncId = function(n, r, o) {
|
|
35
|
-
return o === void 0 && (o = 0),
|
|
34
|
+
return o === void 0 && (o = 0), Xe.setInterval(n.flush.bind(n, this), o);
|
|
36
35
|
}, t.prototype.recycleAsyncId = function(n, r, o) {
|
|
37
36
|
if (o === void 0 && (o = 0), o != null && this.delay === o && this.pending === !1)
|
|
38
37
|
return r;
|
|
39
|
-
r != null &&
|
|
38
|
+
r != null && Xe.clearInterval(r);
|
|
40
39
|
}, t.prototype.execute = function(n, r) {
|
|
41
40
|
if (this.closed)
|
|
42
41
|
return new Error("executing a cancelled action");
|
|
@@ -68,7 +67,7 @@ var gn = function(e) {
|
|
|
68
67
|
return n === void 0 && (n = 0), new this.schedulerActionCtor(this, t).schedule(r, n);
|
|
69
68
|
}, e.now = Nt.now, e;
|
|
70
69
|
}(), _n = function(e) {
|
|
71
|
-
|
|
70
|
+
He(t, e);
|
|
72
71
|
function t(n, r) {
|
|
73
72
|
r === void 0 && (r = Ye.now);
|
|
74
73
|
var o = e.call(this, n, r) || this;
|
|
@@ -138,11 +137,11 @@ var Lt = '<svg width="100%" height="24" viewBox="0 5 24 24" fill="none" xmlns="h
|
|
|
138
137
|
function zn(e) {
|
|
139
138
|
he(e, "svelte-1uqued6", "select.svelte-1uqued6{border:none;background-image:none;background-color:transparent;-webkit-appearance:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;appearance:none;font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));transition:width 250ms ease-in-out;background-repeat:no-repeat, repeat;background-position:right 0px top 0px, 0 0;scrollbar-width:none;-ms-overflow-style:none;padding:0 14px 0 0;white-space:nowrap;text-overflow:ellipsis}select.minimized_ac.svelte-1uqued6{min-width:80px;max-width:80px}select.maximized_ac.svelte-1uqued6{width:auto !important}select.svelte-1uqued6:focus{outline:none}span.switching-placeholder.svelte-1uqued6{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));min-width:80px;max-width:80px;padding:0 8px 0 4px}");
|
|
140
139
|
}
|
|
141
|
-
function
|
|
140
|
+
function Je(e, t, n) {
|
|
142
141
|
const r = e.slice();
|
|
143
142
|
return r[15] = t[n], r;
|
|
144
143
|
}
|
|
145
|
-
function
|
|
144
|
+
function Ke(e) {
|
|
146
145
|
let t;
|
|
147
146
|
function n(l, a) {
|
|
148
147
|
return (
|
|
@@ -167,12 +166,12 @@ function Je(e) {
|
|
|
167
166
|
};
|
|
168
167
|
}
|
|
169
168
|
function $n(e) {
|
|
170
|
-
let t, n = !
|
|
169
|
+
let t, n = !Ze(
|
|
171
170
|
/*wallet*/
|
|
172
171
|
e[6].chains[0],
|
|
173
172
|
/*chains*/
|
|
174
173
|
e[2]
|
|
175
|
-
), r, o = [], l = /* @__PURE__ */ new Map(), a, s, i, f, d, v = n &&
|
|
174
|
+
), r, o = [], l = /* @__PURE__ */ new Map(), a, s, i, f, d, v = n && Qe(e), k = (
|
|
176
175
|
/*chains*/
|
|
177
176
|
e[2]
|
|
178
177
|
);
|
|
@@ -181,7 +180,7 @@ function $n(e) {
|
|
|
181
180
|
g[15].id
|
|
182
181
|
);
|
|
183
182
|
for (let g = 0; g < k.length; g += 1) {
|
|
184
|
-
let m =
|
|
183
|
+
let m = Je(e, k, g), u = b(m);
|
|
185
184
|
l.set(u, o[g] = xe(u, m));
|
|
186
185
|
}
|
|
187
186
|
return {
|
|
@@ -202,7 +201,7 @@ function $n(e) {
|
|
|
202
201
|
M(g, t, m), v && v.m(t, null), c(t, r);
|
|
203
202
|
for (let u = 0; u < o.length; u += 1)
|
|
204
203
|
o[u] && o[u].m(t, null);
|
|
205
|
-
|
|
204
|
+
Re(
|
|
206
205
|
t,
|
|
207
206
|
/*wallet*/
|
|
208
207
|
e[6].chains[0].id
|
|
@@ -215,18 +214,18 @@ function $n(e) {
|
|
|
215
214
|
},
|
|
216
215
|
p(g, m) {
|
|
217
216
|
m & /*wallet, chains*/
|
|
218
|
-
68 && (n = !
|
|
217
|
+
68 && (n = !Ze(
|
|
219
218
|
/*wallet*/
|
|
220
219
|
g[6].chains[0],
|
|
221
220
|
/*chains*/
|
|
222
221
|
g[2]
|
|
223
|
-
)), n ? v ? v.p(g, m) : (v =
|
|
222
|
+
)), n ? v ? v.p(g, m) : (v = Qe(g), v.c(), v.m(t, r)) : v && (v.d(1), v = null), m & /*chains, chainIdToLabel*/
|
|
224
223
|
4 && (k = /*chains*/
|
|
225
|
-
g[2], o = At(o, m, b, 1, g, k, l, t, pn, xe, null,
|
|
224
|
+
g[2], o = At(o, m, b, 1, g, k, l, t, pn, xe, null, Je)), m & /*parentCSSId*/
|
|
226
225
|
16 && a !== (a = Pe(`flex justify-center items-center pointer ${/*parentCSSId*/
|
|
227
226
|
g[4]}`) + " svelte-1uqued6") && p(t, "class", a), m & /*wallet*/
|
|
228
227
|
64 && s !== (s = /*wallet*/
|
|
229
|
-
g[6].chains[0].id) &&
|
|
228
|
+
g[6].chains[0].id) && Re(
|
|
230
229
|
t,
|
|
231
230
|
/*wallet*/
|
|
232
231
|
g[6].chains[0].id
|
|
@@ -276,7 +275,7 @@ function An(e) {
|
|
|
276
275
|
}
|
|
277
276
|
};
|
|
278
277
|
}
|
|
279
|
-
function
|
|
278
|
+
function Qe(e) {
|
|
280
279
|
let t, n = (Le[
|
|
281
280
|
/*wallet*/
|
|
282
281
|
e[6].chains[0].id
|
|
@@ -341,7 +340,7 @@ function xe(e, t) {
|
|
|
341
340
|
function Tn(e) {
|
|
342
341
|
let t, n = (
|
|
343
342
|
/*wallet*/
|
|
344
|
-
e[6] &&
|
|
343
|
+
e[6] && Ke(e)
|
|
345
344
|
);
|
|
346
345
|
return {
|
|
347
346
|
c() {
|
|
@@ -352,7 +351,7 @@ function Tn(e) {
|
|
|
352
351
|
},
|
|
353
352
|
p(r, [o]) {
|
|
354
353
|
/*wallet*/
|
|
355
|
-
r[6] ? n ? n.p(r, o) : (n =
|
|
354
|
+
r[6] ? n ? n.p(r, o) : (n = Ke(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
356
355
|
},
|
|
357
356
|
i: R,
|
|
358
357
|
o: R,
|
|
@@ -848,7 +847,7 @@ function Ln(e, t, n) {
|
|
|
848
847
|
await dn(u.provider);
|
|
849
848
|
} catch (_) {
|
|
850
849
|
const { code: w } = _;
|
|
851
|
-
(w ===
|
|
850
|
+
(w === Fe.UNSUPPORTED_METHOD || w === Fe.DOES_NOT_EXIST) && un.next({
|
|
852
851
|
inProgress: !1,
|
|
853
852
|
actionRequired: u.label
|
|
854
853
|
});
|
|
@@ -862,10 +861,10 @@ function Ln(e, t, n) {
|
|
|
862
861
|
700
|
|
863
862
|
);
|
|
864
863
|
}
|
|
865
|
-
const d = (u) => n(3, s = s === u ? "" : u), v = (u) =>
|
|
864
|
+
const d = (u) => n(3, s = s === u ? "" : u), v = (u) => Oe(o, u), k = () => {
|
|
866
865
|
n(3, s = ""), i(o);
|
|
867
866
|
}, b = (u) => {
|
|
868
|
-
n(3, s = ""),
|
|
867
|
+
n(3, s = ""), Oe(o, u);
|
|
869
868
|
}, g = () => {
|
|
870
869
|
n(3, s = ""), Mt({ label: o.label });
|
|
871
870
|
}, m = (u, _, w) => {
|
|
@@ -1235,11 +1234,11 @@ function Yn(e) {
|
|
|
1235
1234
|
token: null,
|
|
1236
1235
|
hasCatch: !1,
|
|
1237
1236
|
pending: er,
|
|
1238
|
-
then:
|
|
1239
|
-
catch:
|
|
1237
|
+
then: Kn,
|
|
1238
|
+
catch: Jn,
|
|
1240
1239
|
value: 4
|
|
1241
1240
|
};
|
|
1242
|
-
return
|
|
1241
|
+
return Ge(n = /*token*/
|
|
1243
1242
|
e[1].icon, r), {
|
|
1244
1243
|
c() {
|
|
1245
1244
|
t = ue(), r.block.c();
|
|
@@ -1250,14 +1249,14 @@ function Yn(e) {
|
|
|
1250
1249
|
p(o, l) {
|
|
1251
1250
|
e = o, r.ctx = e, l & /*secondaryTokens*/
|
|
1252
1251
|
1 && n !== (n = /*token*/
|
|
1253
|
-
e[1].icon) &&
|
|
1252
|
+
e[1].icon) && Ge(n, r) || vn(r, e, l);
|
|
1254
1253
|
},
|
|
1255
1254
|
d(o) {
|
|
1256
1255
|
o && S(t), r.block.d(o), r.token = null, r = null;
|
|
1257
1256
|
}
|
|
1258
1257
|
};
|
|
1259
1258
|
}
|
|
1260
|
-
function
|
|
1259
|
+
function Jn(e) {
|
|
1261
1260
|
return {
|
|
1262
1261
|
c: R,
|
|
1263
1262
|
m: R,
|
|
@@ -1267,14 +1266,14 @@ function Qn(e) {
|
|
|
1267
1266
|
d: R
|
|
1268
1267
|
};
|
|
1269
1268
|
}
|
|
1270
|
-
function
|
|
1269
|
+
function Kn(e) {
|
|
1271
1270
|
let t, n, r;
|
|
1272
1271
|
function o(s, i) {
|
|
1273
1272
|
return i & /*secondaryTokens*/
|
|
1274
1273
|
1 && (n = null), n == null && (n = !!mn(
|
|
1275
1274
|
/*iconLoaded*/
|
|
1276
1275
|
s[4]
|
|
1277
|
-
)), n ? xn :
|
|
1276
|
+
)), n ? xn : Qn;
|
|
1278
1277
|
}
|
|
1279
1278
|
let l = o(e, -1), a = l(e);
|
|
1280
1279
|
return {
|
|
@@ -1298,11 +1297,11 @@ function Jn(e) {
|
|
|
1298
1297
|
}
|
|
1299
1298
|
};
|
|
1300
1299
|
}
|
|
1301
|
-
function
|
|
1300
|
+
function Qn(e) {
|
|
1302
1301
|
let t, n;
|
|
1303
1302
|
return {
|
|
1304
1303
|
c() {
|
|
1305
|
-
t = h("img"),
|
|
1304
|
+
t = h("img"), Ue(t.src, n = /*iconLoaded*/
|
|
1306
1305
|
e[4]) || p(t, "src", n), p(t, "alt", "logo"), p(t, "class", "svelte-b848yl");
|
|
1307
1306
|
},
|
|
1308
1307
|
m(r, o) {
|
|
@@ -1310,7 +1309,7 @@ function Kn(e) {
|
|
|
1310
1309
|
},
|
|
1311
1310
|
p(r, o) {
|
|
1312
1311
|
o & /*secondaryTokens*/
|
|
1313
|
-
1 && !
|
|
1312
|
+
1 && !Ue(t.src, n = /*iconLoaded*/
|
|
1314
1313
|
r[4]) && p(t, "src", n);
|
|
1315
1314
|
},
|
|
1316
1315
|
d(r) {
|
|
@@ -1512,7 +1511,7 @@ function ft(e) {
|
|
|
1512
1511
|
),
|
|
1513
1512
|
infoLink: (
|
|
1514
1513
|
/*$accountCenter$*/
|
|
1515
|
-
e[9].transactionProtectionInfoLink ||
|
|
1514
|
+
e[9].transactionProtectionInfoLink || De
|
|
1516
1515
|
)
|
|
1517
1516
|
}
|
|
1518
1517
|
}), {
|
|
@@ -1528,7 +1527,7 @@ function ft(e) {
|
|
|
1528
1527
|
16 && (l.onDismiss = /*func_1*/
|
|
1529
1528
|
r[23]), o[0] & /*$accountCenter$*/
|
|
1530
1529
|
512 && (l.infoLink = /*$accountCenter$*/
|
|
1531
|
-
r[9].transactionProtectionInfoLink ||
|
|
1530
|
+
r[9].transactionProtectionInfoLink || De), t.$set(l);
|
|
1532
1531
|
},
|
|
1533
1532
|
i(r) {
|
|
1534
1533
|
n || (y(t.$$.fragment, r), n = !0);
|
|
@@ -1545,7 +1544,7 @@ function pt(e) {
|
|
|
1545
1544
|
let t, n, r, o, l = [], a = /* @__PURE__ */ new Map(), s, i, f, d, v, k, b, g, m, u, _, w = (
|
|
1546
1545
|
/*$_*/
|
|
1547
1546
|
e[10]("accountCenter.currentNetwork", { default: P.accountCenter.currentNetwork }) + ""
|
|
1548
|
-
), C, $, I, B, D, H, q, W, U, X,
|
|
1547
|
+
), C, $, I, B, D, H, q, W, U, X, Q, ne, re, T, N, x = (
|
|
1549
1548
|
/*$wallets$*/
|
|
1550
1549
|
e[1]
|
|
1551
1550
|
);
|
|
@@ -1609,10 +1608,10 @@ function pt(e) {
|
|
|
1609
1608
|
e[9].hideTransactionProtectionBtn && /*primaryWalletOnMainnet*/
|
|
1610
1609
|
(e[6] || /*validAppChain*/
|
|
1611
1610
|
e[5] && /*validAppChain*/
|
|
1612
|
-
e[5].protectedRpcUrl) && ht(e),
|
|
1611
|
+
e[5].protectedRpcUrl) && ht(e), J = (
|
|
1613
1612
|
/*$appMetadata$*/
|
|
1614
1613
|
e[11] && gt(e)
|
|
1615
|
-
),
|
|
1614
|
+
), K = (
|
|
1616
1615
|
/*secondaryTokens*/
|
|
1617
1616
|
e[8] && /*secondaryTokens*/
|
|
1618
1617
|
e[8].length && kt(e)
|
|
@@ -1622,7 +1621,7 @@ function pt(e) {
|
|
|
1622
1621
|
t = h("div"), n = h("div"), r = h("div"), o = h("div");
|
|
1623
1622
|
for (let E = 0; E < l.length; E += 1)
|
|
1624
1623
|
l[E].c();
|
|
1625
|
-
s = z(), i = h("div"), se && se.c(), f = z(), d = h("div"), v = h("div"), k = h("div"), F(b.$$.fragment), g = z(), G && G.c(), m = z(), u = h("div"), _ = h("div"), C = L(w), $ = z(), I = h("div"), F(B.$$.fragment), D = z(), oe && oe.c(), H = z(), q = h("div"),
|
|
1624
|
+
s = z(), i = h("div"), se && se.c(), f = z(), d = h("div"), v = h("div"), k = h("div"), F(b.$$.fragment), g = z(), G && G.c(), m = z(), u = h("div"), _ = h("div"), C = L(w), $ = z(), I = h("div"), F(B.$$.fragment), D = z(), oe && oe.c(), H = z(), q = h("div"), J && J.c(), W = z(), K && K.c(), U = z(), X = h("div"), Q = h("a"), p(o, "class", "wallets svelte-177u10y"), p(i, "class", "actions flex flex-column items-start svelte-177u10y"), p(r, "class", "p5 svelte-177u10y"), p(k, "class", "relative flex"), p(_, "class", "network-selector-label svelte-177u10y"), p(I, "class", "flex items-center"), _e(I, "width", "100%"), p(u, "class", "network-selector-container svelte-177u10y"), p(v, "class", "network-section flex items-center svelte-177u10y"), p(d, "class", "network-container svelte-177u10y"), ce(
|
|
1626
1625
|
d,
|
|
1627
1626
|
"background-blue",
|
|
1628
1627
|
/*validAppChain*/
|
|
@@ -1636,13 +1635,13 @@ function pt(e) {
|
|
|
1636
1635
|
/*validAppChain*/
|
|
1637
1636
|
e[5] && !/*defaultChainStyles*/
|
|
1638
1637
|
e[7]
|
|
1639
|
-
), p(
|
|
1638
|
+
), p(Q, "href", "https://blocknative.com"), p(Q, "target", "_blank"), p(Q, "rel", "noopener noreferrer"), p(Q, "class", "flex justify-center items-center powered-by-container svelte-177u10y"), p(X, "class", "w100 svelte-177u10y"), p(q, "class", "app-info-container svelte-177u10y"), p(n, "class", "wallets-section svelte-177u10y"), p(t, "class", "outer-container svelte-177u10y");
|
|
1640
1639
|
},
|
|
1641
1640
|
m(E, V) {
|
|
1642
1641
|
M(E, t, V), c(t, n), c(n, r), c(r, o);
|
|
1643
1642
|
for (let le = 0; le < l.length; le += 1)
|
|
1644
1643
|
l[le] && l[le].m(o, null);
|
|
1645
|
-
c(r, s), c(r, i), se && se.m(i, null), c(n, f), c(n, d), c(d, v), c(v, k), O(b, k, null), c(k, g), G && G.m(k, null), c(v, m), c(v, u), c(u, _), c(_, C), c(u, $), c(u, I), O(B, I, null), c(d, D), oe && oe.m(d, null), c(n, H), c(n, q),
|
|
1644
|
+
c(r, s), c(r, i), se && se.m(i, null), c(n, f), c(n, d), c(d, v), c(v, k), O(b, k, null), c(k, g), G && G.m(k, null), c(v, m), c(v, u), c(u, _), c(_, C), c(u, $), c(u, I), O(B, I, null), c(d, D), oe && oe.m(d, null), c(n, H), c(n, q), J && J.m(q, null), c(q, W), K && K.m(q, null), c(q, U), c(q, X), c(X, Q), Q.innerHTML = Kt, re = !0, T || (N = [
|
|
1646
1645
|
Y(
|
|
1647
1646
|
I,
|
|
1648
1647
|
"click",
|
|
@@ -1660,7 +1659,7 @@ function pt(e) {
|
|
|
1660
1659
|
p(E, V) {
|
|
1661
1660
|
e = E, V[0] & /*$wallets$, hideWalletRowMenu*/
|
|
1662
1661
|
10 && (x = /*$wallets$*/
|
|
1663
|
-
e[1], ae(), l = At(l, V, Te, 1, e, x, a, o,
|
|
1662
|
+
e[1], ae(), l = At(l, V, Te, 1, e, x, a, o, Qt, vt, null, dt), ie()), /*device*/
|
|
1664
1663
|
e[17].type === "desktop" && se.p(e, V);
|
|
1665
1664
|
const le = {};
|
|
1666
1665
|
V[0] & /*validAppChain*/
|
|
@@ -1707,31 +1706,31 @@ function pt(e) {
|
|
|
1707
1706
|
e[5] && !/*defaultChainStyles*/
|
|
1708
1707
|
e[7]
|
|
1709
1708
|
), /*$appMetadata$*/
|
|
1710
|
-
e[11] ?
|
|
1711
|
-
2048 && y(
|
|
1712
|
-
|
|
1709
|
+
e[11] ? J ? (J.p(e, V), V[0] & /*$appMetadata$*/
|
|
1710
|
+
2048 && y(J, 1)) : (J = gt(e), J.c(), y(J, 1), J.m(q, W)) : J && (ae(), A(J, 1, 1, () => {
|
|
1711
|
+
J = null;
|
|
1713
1712
|
}), ie()), /*secondaryTokens*/
|
|
1714
1713
|
e[8] && /*secondaryTokens*/
|
|
1715
|
-
e[8].length ?
|
|
1716
|
-
256 && y(
|
|
1717
|
-
|
|
1714
|
+
e[8].length ? K ? (K.p(e, V), V[0] & /*secondaryTokens*/
|
|
1715
|
+
256 && y(K, 1)) : (K = kt(e), K.c(), y(K, 1), K.m(q, U)) : K && (ae(), A(K, 1, 1, () => {
|
|
1716
|
+
K = null;
|
|
1718
1717
|
}), ie());
|
|
1719
1718
|
},
|
|
1720
1719
|
i(E) {
|
|
1721
1720
|
if (!re) {
|
|
1722
1721
|
for (let V = 0; V < x.length; V += 1)
|
|
1723
1722
|
y(l[V]);
|
|
1724
|
-
y(b.$$.fragment, E), y(G), y(B.$$.fragment, E), y(
|
|
1725
|
-
re && (ne || (ne =
|
|
1723
|
+
y(b.$$.fragment, E), y(G), y(B.$$.fragment, E), y(J), y(K), E && Ae(() => {
|
|
1724
|
+
re && (ne || (ne = We(
|
|
1726
1725
|
t,
|
|
1727
|
-
|
|
1726
|
+
Ee,
|
|
1728
1727
|
{
|
|
1729
1728
|
duration: 600,
|
|
1730
1729
|
y: (
|
|
1731
1730
|
/*position*/
|
|
1732
1731
|
e[16].includes("bottom") ? 56 : -76
|
|
1733
1732
|
),
|
|
1734
|
-
easing:
|
|
1733
|
+
easing: Ne,
|
|
1735
1734
|
opacity: 0
|
|
1736
1735
|
},
|
|
1737
1736
|
!0
|
|
@@ -1742,16 +1741,16 @@ function pt(e) {
|
|
|
1742
1741
|
o(E) {
|
|
1743
1742
|
for (let V = 0; V < l.length; V += 1)
|
|
1744
1743
|
A(l[V]);
|
|
1745
|
-
A(b.$$.fragment, E), A(G), A(B.$$.fragment, E), A(
|
|
1744
|
+
A(b.$$.fragment, E), A(G), A(B.$$.fragment, E), A(J), A(K), E && (ne || (ne = We(
|
|
1746
1745
|
t,
|
|
1747
|
-
|
|
1746
|
+
Ee,
|
|
1748
1747
|
{
|
|
1749
1748
|
duration: 600,
|
|
1750
1749
|
y: (
|
|
1751
1750
|
/*position*/
|
|
1752
1751
|
e[16].includes("bottom") ? 56 : -76
|
|
1753
1752
|
),
|
|
1754
|
-
easing:
|
|
1753
|
+
easing: Ne,
|
|
1755
1754
|
opacity: 0
|
|
1756
1755
|
},
|
|
1757
1756
|
!1
|
|
@@ -1761,7 +1760,7 @@ function pt(e) {
|
|
|
1761
1760
|
E && S(t);
|
|
1762
1761
|
for (let V = 0; V < l.length; V += 1)
|
|
1763
1762
|
l[V].d();
|
|
1764
|
-
se && se.d(), Z(b), G && G.d(), Z(B), oe && oe.d(),
|
|
1763
|
+
se && se.d(), Z(b), G && G.d(), Z(B), oe && oe.d(), J && J.d(), K && K.d(), E && ne && ne.end(), T = !1, ke(N);
|
|
1765
1764
|
}
|
|
1766
1765
|
};
|
|
1767
1766
|
}
|
|
@@ -2176,7 +2175,7 @@ function ir(e, t, n) {
|
|
|
2176
2175
|
function X(T) {
|
|
2177
2176
|
w = T, n(3, w);
|
|
2178
2177
|
}
|
|
2179
|
-
const
|
|
2178
|
+
const Q = () => on(), ne = () => n(2, _ = !0), re = () => n(4, C = !0);
|
|
2180
2179
|
return e.$$set = (T) => {
|
|
2181
2180
|
"expanded" in T && n(0, b = T.expanded);
|
|
2182
2181
|
}, e.$$.update = () => {
|
|
@@ -2214,7 +2213,7 @@ function ir(e, t, n) {
|
|
|
2214
2213
|
W,
|
|
2215
2214
|
U,
|
|
2216
2215
|
X,
|
|
2217
|
-
|
|
2216
|
+
Q,
|
|
2218
2217
|
ne,
|
|
2219
2218
|
re
|
|
2220
2219
|
];
|
|
@@ -2303,7 +2302,7 @@ function cr(e) {
|
|
|
2303
2302
|
e[6]
|
|
2304
2303
|
)
|
|
2305
2304
|
)) + ""
|
|
2306
|
-
), u, _, w, C, $, I, B, D, H, q, W, U, X,
|
|
2305
|
+
), u, _, w, C, $, I, B, D, H, q, W, U, X, Q, ne, re;
|
|
2307
2306
|
l = new be({
|
|
2308
2307
|
props: {
|
|
2309
2308
|
size: 32,
|
|
@@ -2384,7 +2383,7 @@ function cr(e) {
|
|
|
2384
2383
|
e[4] ? "--account-center-minimized-chain-select-background, var(--primary-100)" : "--account-center-minimized-chain-select-background-warning, var(--warning-100)"})`), p(C, "class", "network"), p(n, "class", "inner-row svelte-1xsvwqj"), p(t, "class", "ac-trigger svelte-1xsvwqj");
|
|
2385
2384
|
},
|
|
2386
2385
|
m(N, x) {
|
|
2387
|
-
M(N, t, x), c(t, n), c(n, r), c(r, o), O(l, o, null), c(r, a), c(r, s), O(i, s, null), c(r, f), c(r, d), O(v, d, null), c(n, k), c(n, b), c(b, g), c(g, u), c(b, _), T && T.m(b, null), c(n, w), c(n, C), c(C, $), c($, I), c(I, B), O(D, B, null), c(I, H), O(q, I, null),
|
|
2386
|
+
M(N, t, x), c(t, n), c(n, r), c(r, o), O(l, o, null), c(r, a), c(r, s), O(i, s, null), c(r, f), c(r, d), O(v, d, null), c(n, k), c(n, b), c(b, g), c(g, u), c(b, _), T && T.m(b, null), c(n, w), c(n, C), c(C, $), c($, I), c(I, B), O(D, B, null), c(I, H), O(q, I, null), Q = !0, ne || (re = [
|
|
2388
2387
|
Y($, "click", fe(
|
|
2389
2388
|
/*click_handler*/
|
|
2390
2389
|
e[15]
|
|
@@ -2410,7 +2409,7 @@ function cr(e) {
|
|
|
2410
2409
|
e[1] ? (
|
|
2411
2410
|
/*primaryWallet*/
|
|
2412
2411
|
e[1].icon
|
|
2413
|
-
) : ""), i.$set(se), (!
|
|
2412
|
+
) : ""), i.$set(se), (!Q || x & /*ensName, unsName, shortenedFirstAddress*/
|
|
2414
2413
|
448) && m !== (m = /*ensName*/
|
|
2415
2414
|
(e[8] ? de(
|
|
2416
2415
|
/*ensName*/
|
|
@@ -2447,18 +2446,18 @@ function cr(e) {
|
|
|
2447
2446
|
e[4].icon || /*defaultChainStyles*/
|
|
2448
2447
|
e[3] && /*defaultChainStyles*/
|
|
2449
2448
|
e[3].icon || ge.icon
|
|
2450
|
-
) : Se), D.$set(G), (!
|
|
2449
|
+
) : Se), D.$set(G), (!Q || x & /*validAppChain*/
|
|
2451
2450
|
16 && W !== (W = `border-color: var(${/*validAppChain*/
|
|
2452
2451
|
e[4] ? "--onboard-primary-200, var(--primary-200)" : "--onboard-warning-500, var(--warning-500)"}); background-color: var(${/*validAppChain*/
|
|
2453
2452
|
e[4] ? "--account-center-minimized-chain-select-background, var(--primary-100)" : "--account-center-minimized-chain-select-background-warning, var(--warning-100)"})`)) && p($, "style", W);
|
|
2454
2453
|
},
|
|
2455
2454
|
i(N) {
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
}),
|
|
2455
|
+
Q || (y(l.$$.fragment, N), y(i.$$.fragment, N), y(v.$$.fragment, N), y(T), y(D.$$.fragment, N), y(q.$$.fragment, N), N && Ae(() => {
|
|
2456
|
+
Q && (X && X.end(1), U = Ie(t, $e, { duration: 250 }), U.start());
|
|
2457
|
+
}), Q = !0);
|
|
2459
2458
|
},
|
|
2460
2459
|
o(N) {
|
|
2461
|
-
A(l.$$.fragment, N), A(i.$$.fragment, N), A(v.$$.fragment, N), A(D.$$.fragment, N), A(q.$$.fragment, N), U && U.invalidate(), X = ln(t, $e, { duration: 100 }),
|
|
2460
|
+
A(l.$$.fragment, N), A(i.$$.fragment, N), A(v.$$.fragment, N), A(D.$$.fragment, N), A(q.$$.fragment, N), U && U.invalidate(), X = ln(t, $e, { duration: 100 }), Q = !1;
|
|
2462
2461
|
},
|
|
2463
2462
|
d(N) {
|
|
2464
2463
|
N && S(t), Z(l), Z(i), Z(v), T && T.d(), Z(D), Z(q), N && X && X.end(), ne = !1, ke(re);
|
|
@@ -2799,12 +2798,12 @@ function _r(e) {
|
|
|
2799
2798
|
function wr(e, t, n) {
|
|
2800
2799
|
let r, o = !1;
|
|
2801
2800
|
const l = te.select("accountCenter").pipe(ye(te.get().accountCenter), Ce(1));
|
|
2802
|
-
ee(e, l, (i) => n(1, r = i)),
|
|
2801
|
+
ee(e, l, (i) => n(1, r = i)), Jt(a);
|
|
2803
2802
|
function a() {
|
|
2804
|
-
r.expanded && (
|
|
2803
|
+
r.expanded && (Be({ expanded: !1 }), n(0, o = !1));
|
|
2805
2804
|
}
|
|
2806
2805
|
function s() {
|
|
2807
|
-
|
|
2806
|
+
Be({ expanded: !r.expanded }), n(0, o = !o);
|
|
2808
2807
|
}
|
|
2809
2808
|
return [o, r, l, a, s];
|
|
2810
2809
|
}
|