@springmicro/auth 0.7.19 → 0.7.21
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-1e31d199-uzuBdtPJ.js → Index-1e31d199-BXGGyb0l.js} +48 -48
- package/dist/{Index-6078f122-DLKGZ31_.js → Index-6078f122-DGZJdnAZ.js} +67 -67
- package/dist/{Web3Auth-Zi4vzALJ.js → Web3Auth-DG8Yz_cD.js} +5884 -5161
- package/dist/{ccip-c78d2f16-DUJGUJJo.js → ccip-c78d2f16-BfTJLflq.js} +2 -2
- package/dist/{hmac-CGR-aDxj.js → hmac-CW2mnXa8.js} +1 -1
- package/dist/{index-021f6a62-DBObZnNM.js → index-021f6a62-CxfpndDE.js} +32 -32
- package/dist/{index-40a497ea-BEwImqwN.js → index-40a497ea-BRLn4BDo.js} +3 -3
- package/dist/index-B51q7F_W.js +9742 -0
- package/dist/{index-BrtZvnd0.js → index-BXvsDp0W.js} +582 -584
- package/dist/{index-B4ilnhZS.js → index-BYJic99M.js} +33 -33
- package/dist/{index-Bu--mwXK.js → index-Bfb6JoQf.js} +9082 -8717
- package/dist/{index-XgTFhms9.js → index-C8R4klyg.js} +27 -27
- package/dist/{index-C8ynRf9-.js → index-CBbDq4vF.js} +3310 -3294
- package/dist/{index-1_Q3geSC.js → index-DbQi7wFl.js} +26 -26
- package/dist/index-hDobpv7u.js +32 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +293 -286
- package/dist/native-FDN9oNjc.js +15 -0
- package/dist/{number-BfxMSPkm.js → number-DvQcSzeP.js} +556 -335
- package/dist/parseEther-C7cmMVOE.js +24 -0
- package/dist/{sha256-JJGtJ2gn.js → sha256-C90UGNQg.js} +8 -7
- package/dist/{transactionRequest-be6a8ea9-_q5BIZxq.js → transactionRequest-be6a8ea9-CCwC71wa.js} +9 -9
- package/package.json +2 -2
- package/dist/index-Cn-_BAwo.js +0 -6151
- package/dist/index-Cw8vH8KI.js +0 -29
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as R, a0 as M, a1 as N, a2 as O, a3 as _, a4 as T, a5 as w, a6 as A, a7 as G, a8 as C, ao as me, ap as U, ae as Z, af as _e, ag as we, ah as $, aK as Ce, ad as m, ab as h, aS as ze, aj as D, ay as Te, az as je, aA as xe, aJ as Le, bi as Pe, bj as Se, b7 as B, ak as F, a9 as g, aa as S, au as be, al as H, ac as x, am as I, bk as Y, bl as W, ax as ye, aM as V, bm as Ee, ai as he, bn as J, bo as Q, bp as X, aw as Ie, aB as K, aC as E, bq as ee, br as te, bs as Re, bt as L, aE as q, bu as Me, bv as ge, aU as Ne, bw as Oe, bh as ke, bx as $e, aZ as De, aO as Fe } from "./Web3Auth-DG8Yz_cD.js";
|
|
2
2
|
function He(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 = ge } = n;
|
|
4
4
|
return {
|
|
@@ -62,8 +62,8 @@ function Ge(i) {
|
|
|
62
62
|
justify-content: center;
|
|
63
63
|
`) && m(e, "style", t);
|
|
64
64
|
},
|
|
65
|
-
i:
|
|
66
|
-
o:
|
|
65
|
+
i: I,
|
|
66
|
+
o: I,
|
|
67
67
|
d(n) {
|
|
68
68
|
n && _(e);
|
|
69
69
|
}
|
|
@@ -75,14 +75,14 @@ function Ve(i, e, t) {
|
|
|
75
75
|
"icon" in s && t(0, n = s.icon), "borderColorVar" in s && t(1, o = s.borderColorVar), "size" in s && t(2, a = s.size), "padding" in s && t(3, f = s.padding), "background" in s && t(4, l = s.background);
|
|
76
76
|
}, [n, o, a, f, l];
|
|
77
77
|
}
|
|
78
|
-
class Be extends
|
|
78
|
+
class Be extends R {
|
|
79
79
|
constructor(e) {
|
|
80
|
-
super(),
|
|
80
|
+
super(), M(
|
|
81
81
|
this,
|
|
82
82
|
e,
|
|
83
83
|
Ve,
|
|
84
84
|
Ge,
|
|
85
|
-
|
|
85
|
+
N,
|
|
86
86
|
{
|
|
87
87
|
icon: 0,
|
|
88
88
|
borderColorVar: 1,
|
|
@@ -98,7 +98,7 @@ function We(i) {
|
|
|
98
98
|
O(i, "svelte-jvic9v", "div.notification-icons-wrapper.svelte-jvic9v{height:32px;width:32px}.border.svelte-jvic9v{border-radius:8px}div.notification-icon.svelte-jvic9v{padding:6px}div.pending-icon.svelte-jvic9v{animation:svelte-jvic9v-blink 2s ease-in infinite;height:100%;width:100%;padding:7px}@keyframes svelte-jvic9v-blink{from,to{opacity:1}50%{opacity:0.2}}div.border-action.svelte-jvic9v{height:32px;min-width:32px;border-radius:8px;overflow:hidden;will-change:transform}div.border-action.svelte-jvic9v:before{content:'';background-image:conic-gradient(#b1b7f2 20deg, #6370e5 120deg);height:140%;width:140%;position:absolute;left:-25%;top:-25%;animation:svelte-jvic9v-rotate 2s infinite linear}div.chain-icon-container.svelte-jvic9v{left:18px;top:18px}@keyframes svelte-jvic9v-rotate{100%{transform:rotate(-360deg)}}");
|
|
99
99
|
}
|
|
100
100
|
function ne(i) {
|
|
101
|
-
let e, t, n, o, a =
|
|
101
|
+
let e, t, n, o, a = L[
|
|
102
102
|
/*notification*/
|
|
103
103
|
i[1].type
|
|
104
104
|
].eventIcon + "", f, l, s, r = !/*notification*/
|
|
@@ -109,15 +109,15 @@ function ne(i) {
|
|
|
109
109
|
), v = r && oe(i);
|
|
110
110
|
return {
|
|
111
111
|
c() {
|
|
112
|
-
e = h("div"), d && d.c(), t =
|
|
113
|
-
i[1].type === "pending" ? "pending-icon" : ""}`) + " svelte-jvic9v"), m(n, "class", "flex items-center justify-center border relative notification-icons-wrapper svelte-jvic9v"), m(n, "style", l = `background:${
|
|
112
|
+
e = h("div"), d && d.c(), t = x(), n = h("div"), o = h("div"), s = x(), v && v.c(), m(o, "class", f = B(`notification-icon flex items-center justify-center ${/*notification*/
|
|
113
|
+
i[1].type === "pending" ? "pending-icon" : ""}`) + " svelte-jvic9v"), m(n, "class", "flex items-center justify-center border relative notification-icons-wrapper svelte-jvic9v"), m(n, "style", l = `background:${L[
|
|
114
114
|
/*notification*/
|
|
115
115
|
i[1].type
|
|
116
|
-
].backgroundColor}; color: ${
|
|
116
|
+
].backgroundColor}; color: ${L[
|
|
117
117
|
/*notification*/
|
|
118
118
|
i[1].type
|
|
119
119
|
].iconColor || ""}; ${/*notification*/
|
|
120
|
-
i[1].type === "pending" ? "height: 28px; width: 28px; margin: 2px;" : `border: 2px solid ${
|
|
120
|
+
i[1].type === "pending" ? "height: 28px; width: 28px; margin: 2px;" : `border: 2px solid ${L[
|
|
121
121
|
/*notification*/
|
|
122
122
|
i[1].type
|
|
123
123
|
].borderColor}`}; `), m(e, "class", "relative");
|
|
@@ -128,20 +128,20 @@ function ne(i) {
|
|
|
128
128
|
p(u, y) {
|
|
129
129
|
/*notification*/
|
|
130
130
|
u[1].type === "pending" ? d || (d = ie(), d.c(), d.m(e, t)) : d && (d.d(1), d = null), (!c || y & /*notification*/
|
|
131
|
-
2) && a !== (a =
|
|
131
|
+
2) && a !== (a = L[
|
|
132
132
|
/*notification*/
|
|
133
133
|
u[1].type
|
|
134
134
|
].eventIcon + "") && (o.innerHTML = a), (!c || y & /*notification*/
|
|
135
135
|
2 && f !== (f = B(`notification-icon flex items-center justify-center ${/*notification*/
|
|
136
136
|
u[1].type === "pending" ? "pending-icon" : ""}`) + " svelte-jvic9v")) && m(o, "class", f), (!c || y & /*notification*/
|
|
137
|
-
2 && l !== (l = `background:${
|
|
137
|
+
2 && l !== (l = `background:${L[
|
|
138
138
|
/*notification*/
|
|
139
139
|
u[1].type
|
|
140
|
-
].backgroundColor}; color: ${
|
|
140
|
+
].backgroundColor}; color: ${L[
|
|
141
141
|
/*notification*/
|
|
142
142
|
u[1].type
|
|
143
143
|
].iconColor || ""}; ${/*notification*/
|
|
144
|
-
u[1].type === "pending" ? "height: 28px; width: 28px; margin: 2px;" : `border: 2px solid ${
|
|
144
|
+
u[1].type === "pending" ? "height: 28px; width: 28px; margin: 2px;" : `border: 2px solid ${L[
|
|
145
145
|
/*notification*/
|
|
146
146
|
u[1].type
|
|
147
147
|
].borderColor}`}; `)) && m(n, "style", l), y & /*notification*/
|
|
@@ -215,7 +215,7 @@ function oe(i) {
|
|
|
215
215
|
T(t.$$.fragment, o), n = !1;
|
|
216
216
|
},
|
|
217
217
|
d(o) {
|
|
218
|
-
o && _(e),
|
|
218
|
+
o && _(e), D(t);
|
|
219
219
|
}
|
|
220
220
|
};
|
|
221
221
|
}
|
|
@@ -250,17 +250,17 @@ function qe(i) {
|
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
252
|
function Ke(i, e, t) {
|
|
253
|
-
let { chainStyles: n =
|
|
253
|
+
let { chainStyles: n = Ie } = e, { notification: o } = e;
|
|
254
254
|
return i.$$set = (a) => {
|
|
255
255
|
"chainStyles" in a && t(0, n = a.chainStyles), "notification" in a && t(1, o = a.notification);
|
|
256
256
|
}, [n, o];
|
|
257
257
|
}
|
|
258
|
-
class
|
|
258
|
+
class Ze extends R {
|
|
259
259
|
constructor(e) {
|
|
260
|
-
super(),
|
|
260
|
+
super(), M(this, e, Ke, qe, N, { chainStyles: 0, notification: 1 }, We);
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function Ue(i) {
|
|
264
264
|
O(i, "svelte-pm7idu", `div.svelte-pm7idu{display:flex;justify-content:center;font-size:inherit;font-family:inherit;margin:0 1.5rem 0 0.75rem}span.svelte-pm7idu{font-family:inherit;display:flex;align-items:center;margin:0 2px}.time.svelte-pm7idu{color:var(
|
|
265
265
|
--notify-onboard-timer-color,
|
|
266
266
|
var(--onboard-gray-300, var(--gray-300))
|
|
@@ -277,8 +277,8 @@ function ae(i) {
|
|
|
277
277
|
), o, a;
|
|
278
278
|
return {
|
|
279
279
|
c() {
|
|
280
|
-
e =
|
|
281
|
-
`), t = h("span"), o =
|
|
280
|
+
e = E(`-
|
|
281
|
+
`), t = h("span"), o = E(n), a = E(`
|
|
282
282
|
ago`), m(t, "class", "svelte-pm7idu");
|
|
283
283
|
},
|
|
284
284
|
m(f, l) {
|
|
@@ -298,7 +298,7 @@ function ae(i) {
|
|
|
298
298
|
}
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function Ye(i) {
|
|
302
302
|
let e, t = (
|
|
303
303
|
/*startTime*/
|
|
304
304
|
i[0] && ae(i)
|
|
@@ -314,16 +314,16 @@ function Je(i) {
|
|
|
314
314
|
/*startTime*/
|
|
315
315
|
n[0] ? t ? t.p(n, o) : (t = ae(n), t.c(), t.m(e, null)) : t && (t.d(1), t = null);
|
|
316
316
|
},
|
|
317
|
-
i:
|
|
318
|
-
o:
|
|
317
|
+
i: I,
|
|
318
|
+
o: I,
|
|
319
319
|
d(n) {
|
|
320
320
|
n && _(e), t && t.d();
|
|
321
321
|
}
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function Je(i, e, t) {
|
|
325
325
|
let n, o;
|
|
326
|
-
|
|
326
|
+
$(i, ke, (r) => t(3, n = r)), $(i, $e, (r) => t(4, o = r));
|
|
327
327
|
let { startTime: a } = e;
|
|
328
328
|
function f(r) {
|
|
329
329
|
const c = Math.floor(r / 1e3), d = c < 0 ? 0 : c;
|
|
@@ -342,12 +342,12 @@ function Ue(i, e, t) {
|
|
|
342
342
|
"startTime" in r && t(0, a = r.startTime);
|
|
343
343
|
}, [a, l, f];
|
|
344
344
|
}
|
|
345
|
-
class
|
|
345
|
+
class Qe extends R {
|
|
346
346
|
constructor(e) {
|
|
347
|
-
super(),
|
|
347
|
+
super(), M(this, e, Je, Ye, N, { startTime: 0 }, Ue);
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function Xe(i) {
|
|
351
351
|
O(i, "svelte-1otz6tt", `div.notify-transaction-data.svelte-1otz6tt{font-size:var(
|
|
352
352
|
--notify-onboard-transaction-font-size,
|
|
353
353
|
var(--onboard-font-size-6, var(--font-size-6))
|
|
@@ -377,7 +377,7 @@ function re(i) {
|
|
|
377
377
|
);
|
|
378
378
|
}
|
|
379
379
|
let f = a(i), l = f(i);
|
|
380
|
-
return n = new
|
|
380
|
+
return n = new Qe({
|
|
381
381
|
props: {
|
|
382
382
|
startTime: (
|
|
383
383
|
/*notification*/
|
|
@@ -386,7 +386,7 @@ function re(i) {
|
|
|
386
386
|
}
|
|
387
387
|
}), {
|
|
388
388
|
c() {
|
|
389
|
-
e = h("span"), l.c(), t =
|
|
389
|
+
e = h("span"), l.c(), t = x(), H(n.$$.fragment), m(e, "class", "hash-time svelte-1otz6tt");
|
|
390
390
|
},
|
|
391
391
|
m(s, r) {
|
|
392
392
|
C(s, e, r), l.m(e, null), g(e, t), F(n, e, null), o = !0;
|
|
@@ -405,7 +405,7 @@ function re(i) {
|
|
|
405
405
|
T(n.$$.fragment, s), o = !1;
|
|
406
406
|
},
|
|
407
407
|
d(s) {
|
|
408
|
-
s && _(e), l.d(),
|
|
408
|
+
s && _(e), l.d(), D(n);
|
|
409
409
|
}
|
|
410
410
|
};
|
|
411
411
|
}
|
|
@@ -416,7 +416,7 @@ function et(i) {
|
|
|
416
416
|
) + "", n;
|
|
417
417
|
return {
|
|
418
418
|
c() {
|
|
419
|
-
e = h("div"), n =
|
|
419
|
+
e = h("div"), n = E(t), m(e, "class", "address-hash svelte-1otz6tt");
|
|
420
420
|
},
|
|
421
421
|
m(o, a) {
|
|
422
422
|
C(o, e, a), g(e, n);
|
|
@@ -440,7 +440,7 @@ function tt(i) {
|
|
|
440
440
|
) + "", n, o;
|
|
441
441
|
return {
|
|
442
442
|
c() {
|
|
443
|
-
e = h("a"), n =
|
|
443
|
+
e = h("a"), n = E(t), m(e, "class", "address-hash svelte-1otz6tt"), m(e, "href", o = /*notification*/
|
|
444
444
|
i[0].link), m(e, "target", "_blank"), m(e, "rel", "noreferrer noopener");
|
|
445
445
|
},
|
|
446
446
|
m(a, f) {
|
|
@@ -472,7 +472,7 @@ function nt(i) {
|
|
|
472
472
|
), l, s = f && re(i);
|
|
473
473
|
return {
|
|
474
474
|
c() {
|
|
475
|
-
e = h("div"), t = h("span"), o =
|
|
475
|
+
e = h("div"), t = h("span"), o = E(n), a = x(), s && s.c(), m(t, "class", "transaction-status svelte-1otz6tt"), m(e, "class", "flex flex-column notify-transaction-data svelte-1otz6tt");
|
|
476
476
|
},
|
|
477
477
|
m(r, c) {
|
|
478
478
|
C(r, e, c), g(e, t), g(t, o), g(e, a), s && s.m(e, null), l = !0;
|
|
@@ -506,9 +506,9 @@ function it(i, e, t) {
|
|
|
506
506
|
"notification" in o && t(0, n = o.notification);
|
|
507
507
|
}, [n];
|
|
508
508
|
}
|
|
509
|
-
class ot extends
|
|
509
|
+
class ot extends R {
|
|
510
510
|
constructor(e) {
|
|
511
|
-
super(),
|
|
511
|
+
super(), M(this, e, it, nt, N, { notification: 0 }, Xe);
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
514
|
var at = `
|
|
@@ -524,7 +524,7 @@ const rt = ["txPool"], lt = ["main", "matic-main"], st = [
|
|
|
524
524
|
"D'CENT"
|
|
525
525
|
], le = (i) => rt.includes(i), se = (i) => lt.includes(i), ce = (i) => i && st.includes(i.label);
|
|
526
526
|
async function fe({ type: i, wallet: e, transaction: t }) {
|
|
527
|
-
const { from: n, input: o, value: a, to: f, nonce: l, gas: s, network: r } = t, c = W[r], { gasPriceProbability: d } =
|
|
527
|
+
const { from: n, input: o, value: a, to: f, nonce: l, gas: s, network: r } = t, c = W[r], { gasPriceProbability: d } = Z.get().notify.replacement, { gas: v } = U;
|
|
528
528
|
if (!v)
|
|
529
529
|
return;
|
|
530
530
|
const [u] = await v.get({
|
|
@@ -537,7 +537,7 @@ async function fe({ type: i, wallet: e, transaction: t }) {
|
|
|
537
537
|
return e.provider.request({
|
|
538
538
|
method: "eth_sendTransaction",
|
|
539
539
|
params: [
|
|
540
|
-
Object.assign({ type: "0x2", from: n, to: i === "cancel" ? n : f, chainId: parseInt(c), value:
|
|
540
|
+
Object.assign({ type: "0x2", from: n, to: i === "cancel" ? n : f, chainId: parseInt(c), value: Re(BigInt(a)), nonce: te(l), gasLimit: te(s), maxFeePerGas: b, maxPriorityFeePerGas: z }, j)
|
|
541
541
|
]
|
|
542
542
|
});
|
|
543
543
|
}
|
|
@@ -569,7 +569,7 @@ function de(i) {
|
|
|
569
569
|
let e, t, n, o, a, f;
|
|
570
570
|
return {
|
|
571
571
|
c() {
|
|
572
|
-
e = h("div"), t = h("button"), t.textContent = "Cancel", n =
|
|
572
|
+
e = h("div"), t = h("button"), t.textContent = "Cancel", n = x(), o = h("button"), o.textContent = "Speed-up", m(t, "class", "dropdown-button svelte-ftkynd"), m(o, "class", "dropdown-button svelte-ftkynd"), m(e, "class", "dropdown-buttons flex items-center justify-end svelte-ftkynd");
|
|
573
573
|
},
|
|
574
574
|
m(l, s) {
|
|
575
575
|
C(l, e, s), g(e, t), g(e, n), g(e, o), a || (f = [
|
|
@@ -587,7 +587,7 @@ function de(i) {
|
|
|
587
587
|
)
|
|
588
588
|
], a = !0);
|
|
589
589
|
},
|
|
590
|
-
p:
|
|
590
|
+
p: I,
|
|
591
591
|
d(l) {
|
|
592
592
|
l && _(e), a = !1, ye(f);
|
|
593
593
|
}
|
|
@@ -595,13 +595,13 @@ function de(i) {
|
|
|
595
595
|
}
|
|
596
596
|
function ft(i) {
|
|
597
597
|
let e, t, n, o, a, f, l, s, r, c, d, v, u, y;
|
|
598
|
-
n = new
|
|
598
|
+
n = new Ze({
|
|
599
599
|
props: {
|
|
600
600
|
notification: (
|
|
601
601
|
/*notification*/
|
|
602
602
|
i[0]
|
|
603
603
|
),
|
|
604
|
-
chainStyles:
|
|
604
|
+
chainStyles: Y[W[
|
|
605
605
|
/*notification*/
|
|
606
606
|
i[0].network
|
|
607
607
|
]]
|
|
@@ -618,7 +618,7 @@ function ft(i) {
|
|
|
618
618
|
);
|
|
619
619
|
return {
|
|
620
620
|
c() {
|
|
621
|
-
e = h("div"), t = h("div"), H(n.$$.fragment), o =
|
|
621
|
+
e = h("div"), t = h("div"), H(n.$$.fragment), o = x(), H(a.$$.fragment), f = x(), l = h("div"), s = h("div"), r = x(), c = h("div"), p && p.c(), m(s, "class", "flex items-center close-icon svelte-ftkynd"), m(l, "class", "notify-close-btn notify-close-btn-" + /*device*/
|
|
622
622
|
i[4].type + " pointer flex svelte-ftkynd"), m(t, "class", "flex bn-notify-notification-inner svelte-ftkynd"), m(c, "class", "dropdown svelte-ftkynd"), V(
|
|
623
623
|
c,
|
|
624
624
|
"dropdown-visible",
|
|
@@ -673,7 +673,7 @@ function ft(i) {
|
|
|
673
673
|
z & /*notification*/
|
|
674
674
|
1 && (j.notification = /*notification*/
|
|
675
675
|
b[0]), z & /*notification*/
|
|
676
|
-
1 && (j.chainStyles =
|
|
676
|
+
1 && (j.chainStyles = Y[W[
|
|
677
677
|
/*notification*/
|
|
678
678
|
b[0].network
|
|
679
679
|
]]), n.$set(j);
|
|
@@ -714,16 +714,16 @@ function ft(i) {
|
|
|
714
714
|
T(n.$$.fragment, b), T(a.$$.fragment, b), v = !1;
|
|
715
715
|
},
|
|
716
716
|
d(b) {
|
|
717
|
-
b && _(e),
|
|
717
|
+
b && _(e), D(n), D(a), p && p.d(), u = !1, ye(y);
|
|
718
718
|
}
|
|
719
719
|
};
|
|
720
720
|
}
|
|
721
721
|
function dt(i, e, t) {
|
|
722
722
|
let n, o;
|
|
723
|
-
|
|
724
|
-
const { device: a, gas: f } =
|
|
723
|
+
$(i, De, (k) => t(15, n = k)), $(i, ke, (k) => t(3, o = k));
|
|
724
|
+
const { device: a, gas: f } = U;
|
|
725
725
|
let { notification: l } = e, { updateParentOnRemove: s } = e, r, c = !1;
|
|
726
|
-
const d =
|
|
726
|
+
const d = Ee.getValue().find(({ hash: k }) => k === l.id), v = d && n.find(({ accounts: k }) => !!k.find(({ address: P }) => P.toLowerCase() === d.from.toLowerCase()));
|
|
727
727
|
function u(k) {
|
|
728
728
|
l != null && l.onClick && l.onClick(k);
|
|
729
729
|
}
|
|
@@ -731,13 +731,13 @@ function dt(i, e, t) {
|
|
|
731
731
|
clearTimeout(r);
|
|
732
732
|
});
|
|
733
733
|
const y = () => {
|
|
734
|
-
|
|
734
|
+
J(l.id), Q(l.id), s();
|
|
735
735
|
}, p = async () => {
|
|
736
736
|
try {
|
|
737
737
|
await fe({ type: "cancel", wallet: v, transaction: d });
|
|
738
738
|
} catch {
|
|
739
739
|
const P = `${d.hash.slice(0, 9)}:txReplaceError${d.hash.slice(-5)}`;
|
|
740
|
-
|
|
740
|
+
X({
|
|
741
741
|
id: P,
|
|
742
742
|
type: "hint",
|
|
743
743
|
eventCode: "txError",
|
|
@@ -751,7 +751,7 @@ function dt(i, e, t) {
|
|
|
751
751
|
await fe({ type: "speedup", wallet: v, transaction: d });
|
|
752
752
|
} catch {
|
|
753
753
|
const P = `${d.hash.slice(0, 9)}:txReplaceError${d.hash.slice(-5)}`;
|
|
754
|
-
|
|
754
|
+
X({
|
|
755
755
|
id: P,
|
|
756
756
|
type: "hint",
|
|
757
757
|
eventCode: "txError",
|
|
@@ -767,7 +767,7 @@ function dt(i, e, t) {
|
|
|
767
767
|
i.$$.dirty & /*notification*/
|
|
768
768
|
1 && l.autoDismiss && (r = setTimeout(
|
|
769
769
|
() => {
|
|
770
|
-
|
|
770
|
+
J(l.id), Q(l.id);
|
|
771
771
|
},
|
|
772
772
|
l.autoDismiss
|
|
773
773
|
));
|
|
@@ -788,9 +788,9 @@ function dt(i, e, t) {
|
|
|
788
788
|
j
|
|
789
789
|
];
|
|
790
790
|
}
|
|
791
|
-
class ut extends
|
|
791
|
+
class ut extends R {
|
|
792
792
|
constructor(e) {
|
|
793
|
-
super(),
|
|
793
|
+
super(), M(this, e, dt, ft, N, { notification: 0, updateParentOnRemove: 1 }, ct);
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
function vt(i) {
|
|
@@ -848,7 +848,7 @@ function ve(i) {
|
|
|
848
848
|
l = /*notifications*/
|
|
849
849
|
r[2], A();
|
|
850
850
|
for (let d = 0; d < t.length; d += 1) t[d].r();
|
|
851
|
-
t = Ce(t, c, s, 1, r, l, n, e,
|
|
851
|
+
t = Ce(t, c, s, 1, r, l, n, e, Me, pe, null, ue);
|
|
852
852
|
for (let d = 0; d < t.length; d += 1) t[d].a();
|
|
853
853
|
G();
|
|
854
854
|
}
|
|
@@ -886,7 +886,7 @@ function ve(i) {
|
|
|
886
886
|
};
|
|
887
887
|
}
|
|
888
888
|
function pe(i, e) {
|
|
889
|
-
let t, n, o, a, f, l, s, r =
|
|
889
|
+
let t, n, o, a, f, l, s, r = I, c, d, v;
|
|
890
890
|
return n = new ut({
|
|
891
891
|
props: {
|
|
892
892
|
notification: (
|
|
@@ -902,7 +902,7 @@ function pe(i, e) {
|
|
|
902
902
|
key: i,
|
|
903
903
|
first: null,
|
|
904
904
|
c() {
|
|
905
|
-
t = h("li"), H(n.$$.fragment), o =
|
|
905
|
+
t = h("li"), H(n.$$.fragment), o = x(), m(t, "class", a = B(`bn-notify-li-${/*position*/
|
|
906
906
|
e[0]} ${/*position*/
|
|
907
907
|
e[0].includes("top") ? "notification-list-top" : "notification-list-bottom"}`) + " svelte-1h8mmo3"), this.first = t;
|
|
908
908
|
},
|
|
@@ -933,7 +933,7 @@ function pe(i, e) {
|
|
|
933
933
|
},
|
|
934
934
|
i(u) {
|
|
935
935
|
c || (w(n.$$.fragment, u), u && je(() => {
|
|
936
|
-
c && (l && l.end(1), f =
|
|
936
|
+
c && (l && l.end(1), f = xe(t, Le, {
|
|
937
937
|
duration: 1200,
|
|
938
938
|
delay: 300,
|
|
939
939
|
x: (
|
|
@@ -949,10 +949,10 @@ function pe(i, e) {
|
|
|
949
949
|
}), c = !0);
|
|
950
950
|
},
|
|
951
951
|
o(u) {
|
|
952
|
-
T(n.$$.fragment, u), f && f.invalidate(), l = Te(t,
|
|
952
|
+
T(n.$$.fragment, u), f && f.invalidate(), l = Te(t, Ne, { duration: 300, easing: ge }), c = !1;
|
|
953
953
|
},
|
|
954
954
|
d(u) {
|
|
955
|
-
u && _(t),
|
|
955
|
+
u && _(t), D(n), u && l && l.end(), d = !1, v();
|
|
956
956
|
}
|
|
957
957
|
};
|
|
958
958
|
}
|
|
@@ -991,8 +991,8 @@ function mt(i) {
|
|
|
991
991
|
}
|
|
992
992
|
function bt(i, e, t) {
|
|
993
993
|
let n;
|
|
994
|
-
const { device: o } =
|
|
995
|
-
|
|
994
|
+
const { device: o } = U, a = Z.select("accountCenter").pipe(_e(Z.get().accountCenter), we(1));
|
|
995
|
+
$(i, a, (p) => t(6, n = p));
|
|
996
996
|
let { position: f } = e, { sharedContainer: l } = e, { notifications: s } = e, r, c;
|
|
997
997
|
r = 0, c = 0;
|
|
998
998
|
let d = "y-scroll";
|
|
@@ -1031,14 +1031,14 @@ function bt(i, e, t) {
|
|
|
1031
1031
|
y
|
|
1032
1032
|
];
|
|
1033
1033
|
}
|
|
1034
|
-
class ht extends
|
|
1034
|
+
class ht extends R {
|
|
1035
1035
|
constructor(e) {
|
|
1036
|
-
super(),
|
|
1036
|
+
super(), M(
|
|
1037
1037
|
this,
|
|
1038
1038
|
e,
|
|
1039
1039
|
bt,
|
|
1040
1040
|
pt,
|
|
1041
|
-
|
|
1041
|
+
N,
|
|
1042
1042
|
{
|
|
1043
1043
|
position: 0,
|
|
1044
1044
|
sharedContainer: 1,
|