@meshsdk/react 1.1.1 → 1.1.3
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/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/CardanoWallet/CardanoWallet.d.ts +4 -1
- package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/CardanoWallet/CardanoWallet.jsx +12 -7
- package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/CardanoWallet/CardanoWallet.jsx.map +1 -1
- package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/CardanoWallet/WalletBalance.d.ts +2 -1
- package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/CardanoWallet/WalletBalance.jsx +4 -4
- package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/CardanoWallet/WalletBalance.jsx.map +1 -1
- package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MenuItem/MenuItem.jsx +1 -1
- package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/dist/components/MenuItem/MenuItem.jsx.map +1 -1
- package/.rollup.cache/Users/Abdelkrim/Documents/Repositories/Work/mesh/packages/react/tsconfig.tsbuildinfo +1 -1
- package/README.md +0 -18
- package/dist/components/CardanoWallet/CardanoWallet.d.ts +4 -1
- package/dist/components/CardanoWallet/WalletBalance.d.ts +2 -1
- package/dist/react.cjs +12 -12
- package/dist/react.js +216 -206
- package/package.json +2 -2
- package/src/components/CardanoWallet/CardanoWallet.tsx +32 -15
- package/src/components/CardanoWallet/WalletBalance.tsx +4 -4
- package/src/components/MenuItem/MenuItem.tsx +1 -1
package/dist/react.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Ye, { useRef as Sr, useDebugValue as Ot, useContext as ye, createElement as Cr, createContext as Er, useState as ee, useCallback as ct, useEffect as
|
|
1
|
+
import Ye, { useRef as Sr, useDebugValue as Ot, useContext as ye, createElement as Cr, createContext as Er, useState as ee, useCallback as ct, useEffect as Oe } from "react";
|
|
2
2
|
import { BrowserWallet as qt, Transaction as _r } from "@meshsdk/core";
|
|
3
3
|
var qe = { exports: {} }, B = {};
|
|
4
4
|
/** @license React v16.13.1
|
|
@@ -14,7 +14,7 @@ function xr() {
|
|
|
14
14
|
if (It)
|
|
15
15
|
return B;
|
|
16
16
|
It = 1;
|
|
17
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111,
|
|
17
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, D = e ? Symbol.for("react.suspense_list") : 60120, F = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, O = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, I = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
|
|
18
18
|
function T(d) {
|
|
19
19
|
if (typeof d == "object" && d !== null) {
|
|
20
20
|
var ae = d.$$typeof;
|
|
@@ -31,7 +31,7 @@ function xr() {
|
|
|
31
31
|
default:
|
|
32
32
|
switch (d = d && d.$$typeof, d) {
|
|
33
33
|
case f:
|
|
34
|
-
case
|
|
34
|
+
case g:
|
|
35
35
|
case E:
|
|
36
36
|
case F:
|
|
37
37
|
case s:
|
|
@@ -48,7 +48,7 @@ function xr() {
|
|
|
48
48
|
function _(d) {
|
|
49
49
|
return T(d) === v;
|
|
50
50
|
}
|
|
51
|
-
return B.AsyncMode = h, B.ConcurrentMode = v, B.ContextConsumer = f, B.ContextProvider = s, B.Element = n, B.ForwardRef =
|
|
51
|
+
return B.AsyncMode = h, B.ConcurrentMode = v, B.ContextConsumer = f, B.ContextProvider = s, B.Element = n, B.ForwardRef = g, B.Fragment = o, B.Lazy = E, B.Memo = F, B.Portal = t, B.Profiler = c, B.StrictMode = a, B.Suspense = C, B.isAsyncMode = function(d) {
|
|
52
52
|
return _(d) || T(d) === h;
|
|
53
53
|
}, B.isConcurrentMode = _, B.isContextConsumer = function(d) {
|
|
54
54
|
return T(d) === f;
|
|
@@ -57,7 +57,7 @@ function xr() {
|
|
|
57
57
|
}, B.isElement = function(d) {
|
|
58
58
|
return typeof d == "object" && d !== null && d.$$typeof === n;
|
|
59
59
|
}, B.isForwardRef = function(d) {
|
|
60
|
-
return T(d) ===
|
|
60
|
+
return T(d) === g;
|
|
61
61
|
}, B.isFragment = function(d) {
|
|
62
62
|
return T(d) === o;
|
|
63
63
|
}, B.isLazy = function(d) {
|
|
@@ -73,7 +73,7 @@ function xr() {
|
|
|
73
73
|
}, B.isSuspense = function(d) {
|
|
74
74
|
return T(d) === C;
|
|
75
75
|
}, B.isValidElementType = function(d) {
|
|
76
|
-
return typeof d == "string" || typeof d == "function" || d === o || d === v || d === c || d === a || d === C || d === D || typeof d == "object" && d !== null && (d.$$typeof === E || d.$$typeof === F || d.$$typeof === s || d.$$typeof === f || d.$$typeof ===
|
|
76
|
+
return typeof d == "string" || typeof d == "function" || d === o || d === v || d === c || d === a || d === C || d === D || typeof d == "object" && d !== null && (d.$$typeof === E || d.$$typeof === F || d.$$typeof === s || d.$$typeof === f || d.$$typeof === g || d.$$typeof === x || d.$$typeof === I || d.$$typeof === y || d.$$typeof === O);
|
|
77
77
|
}, B.typeOf = T, B;
|
|
78
78
|
}
|
|
79
79
|
var V = {};
|
|
@@ -88,9 +88,9 @@ var V = {};
|
|
|
88
88
|
var Nt;
|
|
89
89
|
function Rr() {
|
|
90
90
|
return Nt || (Nt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
91
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111,
|
|
91
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, c = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, C = e ? Symbol.for("react.suspense") : 60113, D = e ? Symbol.for("react.suspense_list") : 60120, F = e ? Symbol.for("react.memo") : 60115, E = e ? Symbol.for("react.lazy") : 60116, O = e ? Symbol.for("react.block") : 60121, x = e ? Symbol.for("react.fundamental") : 60117, I = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
|
|
92
92
|
function T(l) {
|
|
93
|
-
return typeof l == "string" || typeof l == "function" || l === o || l === v || l === c || l === a || l === C || l === D || typeof l == "object" && l !== null && (l.$$typeof === E || l.$$typeof === F || l.$$typeof === s || l.$$typeof === f || l.$$typeof ===
|
|
93
|
+
return typeof l == "string" || typeof l == "function" || l === o || l === v || l === c || l === a || l === C || l === D || typeof l == "object" && l !== null && (l.$$typeof === E || l.$$typeof === F || l.$$typeof === s || l.$$typeof === f || l.$$typeof === g || l.$$typeof === x || l.$$typeof === I || l.$$typeof === y || l.$$typeof === O);
|
|
94
94
|
}
|
|
95
95
|
function _(l) {
|
|
96
96
|
if (typeof l == "object" && l !== null) {
|
|
@@ -110,7 +110,7 @@ function Rr() {
|
|
|
110
110
|
var P = Z && Z.$$typeof;
|
|
111
111
|
switch (P) {
|
|
112
112
|
case f:
|
|
113
|
-
case
|
|
113
|
+
case g:
|
|
114
114
|
case E:
|
|
115
115
|
case F:
|
|
116
116
|
case s:
|
|
@@ -124,7 +124,7 @@ function Rr() {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
var d = h, ae = v, he = f, ce = s, ue = n, me =
|
|
127
|
+
var d = h, ae = v, he = f, ce = s, ue = n, me = g, we = o, ie = E, G = F, te = t, K = c, be = a, le = C, se = !1;
|
|
128
128
|
function Se(l) {
|
|
129
129
|
return se || (se = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), ve(l) || _(l) === h;
|
|
130
130
|
}
|
|
@@ -137,11 +137,11 @@ function Rr() {
|
|
|
137
137
|
function S(l) {
|
|
138
138
|
return _(l) === s;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function w(l) {
|
|
141
141
|
return typeof l == "object" && l !== null && l.$$typeof === n;
|
|
142
142
|
}
|
|
143
143
|
function b(l) {
|
|
144
|
-
return _(l) ===
|
|
144
|
+
return _(l) === g;
|
|
145
145
|
}
|
|
146
146
|
function A(l) {
|
|
147
147
|
return _(l) === o;
|
|
@@ -164,14 +164,14 @@ function Rr() {
|
|
|
164
164
|
function $(l) {
|
|
165
165
|
return _(l) === C;
|
|
166
166
|
}
|
|
167
|
-
V.AsyncMode = d, V.ConcurrentMode = ae, V.ContextConsumer = he, V.ContextProvider = ce, V.Element = ue, V.ForwardRef = me, V.Fragment = we, V.Lazy = ie, V.Memo = G, V.Portal = te, V.Profiler = K, V.StrictMode = be, V.Suspense = le, V.isAsyncMode = Se, V.isConcurrentMode = ve, V.isContextConsumer = Ce, V.isContextProvider = S, V.isElement =
|
|
167
|
+
V.AsyncMode = d, V.ConcurrentMode = ae, V.ContextConsumer = he, V.ContextProvider = ce, V.Element = ue, V.ForwardRef = me, V.Fragment = we, V.Lazy = ie, V.Memo = G, V.Portal = te, V.Profiler = K, V.StrictMode = be, V.Suspense = le, V.isAsyncMode = Se, V.isConcurrentMode = ve, V.isContextConsumer = Ce, V.isContextProvider = S, V.isElement = w, V.isForwardRef = b, V.isFragment = A, V.isLazy = i, V.isMemo = j, V.isPortal = p, V.isProfiler = U, V.isStrictMode = M, V.isSuspense = $, V.isValidElementType = T, V.typeOf = _;
|
|
168
168
|
}()), V;
|
|
169
169
|
}
|
|
170
170
|
(function(e) {
|
|
171
171
|
process.env.NODE_ENV === "production" ? e.exports = xr() : e.exports = Rr();
|
|
172
172
|
})(qe);
|
|
173
173
|
function kr(e) {
|
|
174
|
-
function n(S,
|
|
174
|
+
function n(S, w, b, A, i) {
|
|
175
175
|
for (var j = 0, p = 0, U = 0, M = 0, $, l, X = 0, Z = 0, P, J = P = $ = 0, z = 0, re = 0, Ee = 0, oe = 0, je = b.length, xe = je - 1, pe, R = "", q = "", We = "", Re = "", _e; z < je; ) {
|
|
176
176
|
if (l = b.charCodeAt(z), z === xe && p + M + U + j !== 0 && (p !== 0 && (l = p === 47 ? 10 : 47), M = U = j = 0, je++, xe++), p + M + U + j === 0) {
|
|
177
177
|
if (z === xe && (0 < re && (R = R.replace(D, "")), 0 < R.trim().length)) {
|
|
@@ -240,12 +240,12 @@ function kr(e) {
|
|
|
240
240
|
case 109:
|
|
241
241
|
case 115:
|
|
242
242
|
case 45:
|
|
243
|
-
re =
|
|
243
|
+
re = w;
|
|
244
244
|
break;
|
|
245
245
|
default:
|
|
246
246
|
re = be;
|
|
247
247
|
}
|
|
248
|
-
if (P = n(
|
|
248
|
+
if (P = n(w, re, P, l, i + 1), oe = P.length, 0 < se && (re = t(be, R, Ee), _e = f(3, P, re, w, G, ie, oe, l, i, A), R = re.join(""), _e !== void 0 && (oe = (P = _e.trim()).length) === 0 && (l = 0, P = "")), 0 < oe)
|
|
249
249
|
switch (l) {
|
|
250
250
|
case 115:
|
|
251
251
|
R = R.replace(ae, s);
|
|
@@ -255,7 +255,7 @@ function kr(e) {
|
|
|
255
255
|
P = R + "{" + P + "}";
|
|
256
256
|
break;
|
|
257
257
|
case 107:
|
|
258
|
-
R = R.replace(
|
|
258
|
+
R = R.replace(y, "$1 $2"), P = R + "{" + P + "}", P = K === 1 || K === 2 && c("@" + P, 3) ? "@-webkit-" + P + "@" + P : "@" + P;
|
|
259
259
|
break;
|
|
260
260
|
default:
|
|
261
261
|
P = R + P, A === 112 && (P = (q += P, ""));
|
|
@@ -264,14 +264,14 @@ function kr(e) {
|
|
|
264
264
|
P = "";
|
|
265
265
|
break;
|
|
266
266
|
default:
|
|
267
|
-
P = n(
|
|
267
|
+
P = n(w, t(w, R, Ee), P, A, i + 1);
|
|
268
268
|
}
|
|
269
269
|
We += P, P = Ee = re = J = $ = 0, R = "", l = b.charCodeAt(++z);
|
|
270
270
|
break;
|
|
271
271
|
case 125:
|
|
272
272
|
case 59:
|
|
273
273
|
if (R = (0 < re ? R.replace(D, "") : R).trim(), 1 < (oe = R.length))
|
|
274
|
-
switch (J === 0 && ($ = R.charCodeAt(0), $ === 45 || 96 < $ && 123 > $) && (oe = (R = R.replace(" ", ":")).length), 0 < se && (_e = f(1, R,
|
|
274
|
+
switch (J === 0 && ($ = R.charCodeAt(0), $ === 45 || 96 < $ && 123 > $) && (oe = (R = R.replace(" ", ":")).length), 0 < se && (_e = f(1, R, w, S, G, ie, q.length, A, i, A)) !== void 0 && (oe = (R = _e.trim()).length) === 0 && (R = "\0\0"), $ = R.charCodeAt(0), l = R.charCodeAt(1), $) {
|
|
275
275
|
case 0:
|
|
276
276
|
break;
|
|
277
277
|
case 64:
|
|
@@ -288,7 +288,7 @@ function kr(e) {
|
|
|
288
288
|
switch (l) {
|
|
289
289
|
case 13:
|
|
290
290
|
case 10:
|
|
291
|
-
p === 47 ? p = 0 : 1 + $ === 0 && A !== 107 && 0 < R.length && (re = 1, R += "\0"), 0 < se * ve && f(0, R,
|
|
291
|
+
p === 47 ? p = 0 : 1 + $ === 0 && A !== 107 && 0 < R.length && (re = 1, R += "\0"), 0 < se * ve && f(0, R, w, S, G, ie, q.length, A, i, A), ie = 1, G++;
|
|
292
292
|
break;
|
|
293
293
|
case 59:
|
|
294
294
|
case 125:
|
|
@@ -389,7 +389,7 @@ function kr(e) {
|
|
|
389
389
|
Z = X, X = l, z++;
|
|
390
390
|
}
|
|
391
391
|
if (oe = q.length, 0 < oe) {
|
|
392
|
-
if (re =
|
|
392
|
+
if (re = w, 0 < se && (_e = f(2, q, re, S, G, ie, oe, A, i, A), _e !== void 0 && (q = _e).length === 0))
|
|
393
393
|
return Re + q + We;
|
|
394
394
|
if (q = re.join(",") + "{" + q + "}", K * te !== 0) {
|
|
395
395
|
switch (K !== 2 || c(q, 2) || (te = 0), te) {
|
|
@@ -404,40 +404,40 @@ function kr(e) {
|
|
|
404
404
|
}
|
|
405
405
|
return Re + q + We;
|
|
406
406
|
}
|
|
407
|
-
function t(S,
|
|
408
|
-
var A =
|
|
409
|
-
|
|
407
|
+
function t(S, w, b) {
|
|
408
|
+
var A = w.trim().split(x);
|
|
409
|
+
w = A;
|
|
410
410
|
var i = A.length, j = S.length;
|
|
411
411
|
switch (j) {
|
|
412
412
|
case 0:
|
|
413
413
|
case 1:
|
|
414
414
|
var p = 0;
|
|
415
415
|
for (S = j === 0 ? "" : S[0] + " "; p < i; ++p)
|
|
416
|
-
|
|
416
|
+
w[p] = o(S, w[p], b).trim();
|
|
417
417
|
break;
|
|
418
418
|
default:
|
|
419
419
|
var U = p = 0;
|
|
420
|
-
for (
|
|
420
|
+
for (w = []; p < i; ++p)
|
|
421
421
|
for (var M = 0; M < j; ++M)
|
|
422
|
-
|
|
422
|
+
w[U++] = o(S[M] + " ", A[p], b).trim();
|
|
423
423
|
}
|
|
424
|
-
return
|
|
424
|
+
return w;
|
|
425
425
|
}
|
|
426
|
-
function o(S,
|
|
427
|
-
var A =
|
|
428
|
-
switch (33 > A && (A = (
|
|
426
|
+
function o(S, w, b) {
|
|
427
|
+
var A = w.charCodeAt(0);
|
|
428
|
+
switch (33 > A && (A = (w = w.trim()).charCodeAt(0)), A) {
|
|
429
429
|
case 38:
|
|
430
|
-
return
|
|
430
|
+
return w.replace(I, "$1" + S.trim());
|
|
431
431
|
case 58:
|
|
432
|
-
return S.trim() +
|
|
432
|
+
return S.trim() + w.replace(I, "$1" + S.trim());
|
|
433
433
|
default:
|
|
434
|
-
if (0 < 1 * b && 0 <
|
|
435
|
-
return
|
|
434
|
+
if (0 < 1 * b && 0 < w.indexOf("\f"))
|
|
435
|
+
return w.replace(I, (S.charCodeAt(0) === 58 ? "" : "$1") + S.trim());
|
|
436
436
|
}
|
|
437
|
-
return S +
|
|
437
|
+
return S + w;
|
|
438
438
|
}
|
|
439
|
-
function a(S,
|
|
440
|
-
var i = S + ";", j = 2 *
|
|
439
|
+
function a(S, w, b, A) {
|
|
440
|
+
var i = S + ";", j = 2 * w + 3 * b + 4 * A;
|
|
441
441
|
if (j === 944) {
|
|
442
442
|
S = i.indexOf(":", 9) + 1;
|
|
443
443
|
var p = i.substring(S, i.length - 1).trim();
|
|
@@ -489,7 +489,7 @@ function kr(e) {
|
|
|
489
489
|
case 1005:
|
|
490
490
|
return E.test(i) ? i.replace(F, ":-webkit-") + i.replace(F, ":-moz-") + i : i;
|
|
491
491
|
case 1e3:
|
|
492
|
-
switch (p = i.substring(13).trim(),
|
|
492
|
+
switch (p = i.substring(13).trim(), w = p.indexOf("-") + 1, p.charCodeAt(0) + p.charCodeAt(w)) {
|
|
493
493
|
case 226:
|
|
494
494
|
p = i.replace(d, "tb");
|
|
495
495
|
break;
|
|
@@ -507,7 +507,7 @@ function kr(e) {
|
|
|
507
507
|
if (i.indexOf("sticky", 9) === -1)
|
|
508
508
|
break;
|
|
509
509
|
case 975:
|
|
510
|
-
switch (
|
|
510
|
+
switch (w = (i = S).length - 10, p = (i.charCodeAt(w) === 33 ? i.substring(0, w) : i).substring(S.indexOf(":", 7) + 1).trim(), j = p.charCodeAt(0) + (p.charCodeAt(7) | 0)) {
|
|
511
511
|
case 203:
|
|
512
512
|
if (111 > p.charCodeAt(8))
|
|
513
513
|
break;
|
|
@@ -537,7 +537,7 @@ function kr(e) {
|
|
|
537
537
|
case 931:
|
|
538
538
|
case 953:
|
|
539
539
|
if (me.test(S) === !0)
|
|
540
|
-
return (p = S.substring(S.indexOf(":") + 1)).charCodeAt(0) === 115 ? a(S.replace("stretch", "fill-available"),
|
|
540
|
+
return (p = S.substring(S.indexOf(":") + 1)).charCodeAt(0) === 115 ? a(S.replace("stretch", "fill-available"), w, b, A).replace(":fill-available", ":stretch") : i.replace(p, "-webkit-" + p) + i.replace(p, "-moz-" + p.replace("fill-", "")) + i;
|
|
541
541
|
break;
|
|
542
542
|
case 962:
|
|
543
543
|
if (i = "-webkit-" + i + (i.charCodeAt(5) === 102 ? "-ms-" + i : "") + i, b + A === 211 && i.charCodeAt(13) === 105 && 0 < i.indexOf("transform", 10))
|
|
@@ -545,17 +545,17 @@ function kr(e) {
|
|
|
545
545
|
}
|
|
546
546
|
return i;
|
|
547
547
|
}
|
|
548
|
-
function c(S,
|
|
549
|
-
var b = S.indexOf(
|
|
550
|
-
return b = S.substring(b + 1, S.length - 1), Se(
|
|
548
|
+
function c(S, w) {
|
|
549
|
+
var b = S.indexOf(w === 1 ? ":" : "{"), A = S.substring(0, w !== 3 ? b : 10);
|
|
550
|
+
return b = S.substring(b + 1, S.length - 1), Se(w !== 2 ? A : A.replace(ue, "$1"), b, w);
|
|
551
551
|
}
|
|
552
|
-
function s(S,
|
|
553
|
-
var b = a(
|
|
554
|
-
return b !==
|
|
552
|
+
function s(S, w) {
|
|
553
|
+
var b = a(w, w.charCodeAt(0), w.charCodeAt(1), w.charCodeAt(2));
|
|
554
|
+
return b !== w + ";" ? b.replace(he, " or ($1)").substring(4) : "(" + w + ")";
|
|
555
555
|
}
|
|
556
|
-
function f(S,
|
|
557
|
-
for (var l = 0, X =
|
|
558
|
-
switch (Z = le[l].call(
|
|
556
|
+
function f(S, w, b, A, i, j, p, U, M, $) {
|
|
557
|
+
for (var l = 0, X = w, Z; l < se; ++l)
|
|
558
|
+
switch (Z = le[l].call(g, S, X, b, A, i, j, p, U, M, $)) {
|
|
559
559
|
case void 0:
|
|
560
560
|
case !1:
|
|
561
561
|
case !0:
|
|
@@ -564,7 +564,7 @@ function kr(e) {
|
|
|
564
564
|
default:
|
|
565
565
|
X = Z;
|
|
566
566
|
}
|
|
567
|
-
if (X !==
|
|
567
|
+
if (X !== w)
|
|
568
568
|
return X;
|
|
569
569
|
}
|
|
570
570
|
function h(S) {
|
|
@@ -577,8 +577,8 @@ function kr(e) {
|
|
|
577
577
|
if (typeof S == "function")
|
|
578
578
|
le[se++] = S;
|
|
579
579
|
else if (typeof S == "object")
|
|
580
|
-
for (var
|
|
581
|
-
h(S[
|
|
580
|
+
for (var w = 0, b = S.length; w < b; ++w)
|
|
581
|
+
h(S[w]);
|
|
582
582
|
else
|
|
583
583
|
ve = !!S | 0;
|
|
584
584
|
}
|
|
@@ -587,17 +587,17 @@ function kr(e) {
|
|
|
587
587
|
function v(S) {
|
|
588
588
|
return S = S.prefix, S !== void 0 && (Se = null, S ? typeof S != "function" ? K = 1 : (K = 2, Se = S) : K = 0), v;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function g(S, w) {
|
|
591
591
|
var b = S;
|
|
592
592
|
if (33 > b.charCodeAt(0) && (b = b.trim()), Ce = b, b = [Ce], 0 < se) {
|
|
593
|
-
var A = f(-1,
|
|
594
|
-
A !== void 0 && typeof A == "string" && (
|
|
593
|
+
var A = f(-1, w, b, b, G, ie, 0, 0, 0, 0);
|
|
594
|
+
A !== void 0 && typeof A == "string" && (w = A);
|
|
595
595
|
}
|
|
596
|
-
var i = n(be, b,
|
|
596
|
+
var i = n(be, b, w, 0, 0);
|
|
597
597
|
return 0 < se && (A = f(-2, i, b, b, G, ie, i.length, 0, 0, 0), A !== void 0 && (i = A)), Ce = "", te = 0, ie = G = 1, i;
|
|
598
598
|
}
|
|
599
|
-
var C = /^\0+/g, D = /[\0\r\f]/g, F = /: */g, E = /zoo|gra/, O = /([,: ])(transform)/g, x = /,\r+?/g, I = /([\t\r\n ])*\f?&/g,
|
|
600
|
-
return
|
|
599
|
+
var C = /^\0+/g, D = /[\0\r\f]/g, F = /: */g, E = /zoo|gra/, O = /([,: ])(transform)/g, x = /,\r+?/g, I = /([\t\r\n ])*\f?&/g, y = /@(k\w+)\s*(\S*)\s*/, T = /::(place)/g, _ = /:(read-only)/g, d = /[svh]\w+-[tblr]{2}/, ae = /\(\s*(.*)\s*\)/g, he = /([\s\S]*?);/g, ce = /-self|flex-/g, ue = /[^]*?(:[rp][el]a[\w-]+)[^]*/, me = /stretch|:\s*\w+\-(?:conte|avail)/, we = /([^-])(image-set\()/, ie = 1, G = 1, te = 0, K = 1, be = [], le = [], se = 0, Se = null, ve = 0, Ce = "";
|
|
600
|
+
return g.use = h, g.set = v, e !== void 0 && v(e), g;
|
|
601
601
|
}
|
|
602
602
|
var Ar = {
|
|
603
603
|
animationIterationCount: 1,
|
|
@@ -815,7 +815,7 @@ var Yr = function() {
|
|
|
815
815
|
for (var f = c; f < s; f++)
|
|
816
816
|
this.groupSizes[f] = 0;
|
|
817
817
|
}
|
|
818
|
-
for (var h = this.indexOfGroup(t + 1), v = 0,
|
|
818
|
+
for (var h = this.indexOfGroup(t + 1), v = 0, g = o.length; v < g; v++)
|
|
819
819
|
this.tag.insertRule(h, o[v]) && (this.groupSizes[t]++, h++);
|
|
820
820
|
}, n.clearGroup = function(t) {
|
|
821
821
|
if (t < this.length) {
|
|
@@ -865,9 +865,9 @@ var Yr = function() {
|
|
|
865
865
|
}, Zt = function(e) {
|
|
866
866
|
var n = document.head, t = e || n, o = document.createElement("style"), a = function(f) {
|
|
867
867
|
for (var h = f.childNodes, v = h.length; v >= 0; v--) {
|
|
868
|
-
var
|
|
869
|
-
if (
|
|
870
|
-
return
|
|
868
|
+
var g = h[v];
|
|
869
|
+
if (g && g.nodeType === 1 && g.hasAttribute(Fe))
|
|
870
|
+
return g;
|
|
871
871
|
}
|
|
872
872
|
}(t), c = a !== void 0 ? a.nextSibling : null;
|
|
873
873
|
o.setAttribute(Fe, "active"), o.setAttribute("data-styled-version", "5.3.6");
|
|
@@ -973,10 +973,10 @@ var Yr = function() {
|
|
|
973
973
|
if (f !== void 0) {
|
|
974
974
|
var h = t.names.get(f), v = o.getGroup(s);
|
|
975
975
|
if (h && v && h.size) {
|
|
976
|
-
var
|
|
976
|
+
var g = Fe + ".g" + s + '[id="' + f + '"]', C = "";
|
|
977
977
|
h !== void 0 && h.forEach(function(D) {
|
|
978
978
|
D.length > 0 && (C += D + ",");
|
|
979
|
-
}), c += "" + v +
|
|
979
|
+
}), c += "" + v + g + '{content:"' + C + `"}/*!sc*/
|
|
980
980
|
`;
|
|
981
981
|
}
|
|
982
982
|
}
|
|
@@ -993,12 +993,12 @@ function dt(e) {
|
|
|
993
993
|
t = Ft(n % 52) + t;
|
|
994
994
|
return (Ft(n % 52) + t).replace(en, "$1-$2");
|
|
995
995
|
}
|
|
996
|
-
var
|
|
996
|
+
var Ie = function(e, n) {
|
|
997
997
|
for (var t = n.length; t; )
|
|
998
998
|
e = 33 * e ^ n.charCodeAt(--t);
|
|
999
999
|
return e;
|
|
1000
1000
|
}, Qt = function(e) {
|
|
1001
|
-
return
|
|
1001
|
+
return Ie(5381, e);
|
|
1002
1002
|
};
|
|
1003
1003
|
function tn(e) {
|
|
1004
1004
|
for (var n = 0; n < e.length; n += 1) {
|
|
@@ -1010,7 +1010,7 @@ function tn(e) {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
var rn = Qt("5.3.6"), nn = function() {
|
|
1012
1012
|
function e(n, t, o) {
|
|
1013
|
-
this.rules = n, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (o === void 0 || o.isStatic) && tn(n), this.componentId = t, this.baseHash =
|
|
1013
|
+
this.rules = n, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (o === void 0 || o.isStatic) && tn(n), this.componentId = t, this.baseHash = Ie(rn, t), this.baseStyle = o, Jt.registerId(t);
|
|
1014
1014
|
}
|
|
1015
1015
|
return e.prototype.generateAndInjectStyles = function(n, t, o) {
|
|
1016
1016
|
var a = this.componentId, c = [];
|
|
@@ -1018,7 +1018,7 @@ var rn = Qt("5.3.6"), nn = function() {
|
|
|
1018
1018
|
if (this.staticRulesId && t.hasNameForId(a, this.staticRulesId))
|
|
1019
1019
|
c.push(this.staticRulesId);
|
|
1020
1020
|
else {
|
|
1021
|
-
var s = ze(this.rules, n, t, o).join(""), f = dt(
|
|
1021
|
+
var s = ze(this.rules, n, t, o).join(""), f = dt(Ie(this.baseHash, s) >>> 0);
|
|
1022
1022
|
if (!t.hasNameForId(a, f)) {
|
|
1023
1023
|
var h = o(s, "." + f, void 0, a);
|
|
1024
1024
|
t.insertRules(a, f, h);
|
|
@@ -1026,17 +1026,17 @@ var rn = Qt("5.3.6"), nn = function() {
|
|
|
1026
1026
|
c.push(f), this.staticRulesId = f;
|
|
1027
1027
|
}
|
|
1028
1028
|
else {
|
|
1029
|
-
for (var v = this.rules.length,
|
|
1029
|
+
for (var v = this.rules.length, g = Ie(this.baseHash, o.hash), C = "", D = 0; D < v; D++) {
|
|
1030
1030
|
var F = this.rules[D];
|
|
1031
1031
|
if (typeof F == "string")
|
|
1032
|
-
C += F, process.env.NODE_ENV !== "production" && (
|
|
1032
|
+
C += F, process.env.NODE_ENV !== "production" && (g = Ie(g, F + D));
|
|
1033
1033
|
else if (F) {
|
|
1034
1034
|
var E = ze(F, n, t, o), O = Array.isArray(E) ? E.join("") : E;
|
|
1035
|
-
|
|
1035
|
+
g = Ie(g, O + D), C += O;
|
|
1036
1036
|
}
|
|
1037
1037
|
}
|
|
1038
1038
|
if (C) {
|
|
1039
|
-
var x = dt(
|
|
1039
|
+
var x = dt(g >>> 0);
|
|
1040
1040
|
if (!t.hasNameForId(a, x)) {
|
|
1041
1041
|
var I = o(C, "." + x, void 0, a);
|
|
1042
1042
|
t.insertRules(a, x, I);
|
|
@@ -1048,7 +1048,7 @@ var rn = Qt("5.3.6"), nn = function() {
|
|
|
1048
1048
|
}, e;
|
|
1049
1049
|
}(), on = /^\s*\/\/.*$/gm, an = [":", "[", ".", "#"];
|
|
1050
1050
|
function sn(e) {
|
|
1051
|
-
var n, t, o, a, c = e === void 0 ? Pe : e, s = c.options, f = s === void 0 ? Pe : s, h = c.plugins, v = h === void 0 ? Qe : h,
|
|
1051
|
+
var n, t, o, a, c = e === void 0 ? Pe : e, s = c.options, f = s === void 0 ? Pe : s, h = c.plugins, v = h === void 0 ? Qe : h, g = new kr(f), C = [], D = function(O) {
|
|
1052
1052
|
function x(I) {
|
|
1053
1053
|
if (I)
|
|
1054
1054
|
try {
|
|
@@ -1056,26 +1056,26 @@ function sn(e) {
|
|
|
1056
1056
|
} catch {
|
|
1057
1057
|
}
|
|
1058
1058
|
}
|
|
1059
|
-
return function(I,
|
|
1059
|
+
return function(I, y, T, _, d, ae, he, ce, ue, me) {
|
|
1060
1060
|
switch (I) {
|
|
1061
1061
|
case 1:
|
|
1062
|
-
if (ue === 0 &&
|
|
1063
|
-
return O(
|
|
1062
|
+
if (ue === 0 && y.charCodeAt(0) === 64)
|
|
1063
|
+
return O(y + ";"), "";
|
|
1064
1064
|
break;
|
|
1065
1065
|
case 2:
|
|
1066
1066
|
if (ce === 0)
|
|
1067
|
-
return
|
|
1067
|
+
return y + "/*|*/";
|
|
1068
1068
|
break;
|
|
1069
1069
|
case 3:
|
|
1070
1070
|
switch (ce) {
|
|
1071
1071
|
case 102:
|
|
1072
1072
|
case 112:
|
|
1073
|
-
return O(T[0] +
|
|
1073
|
+
return O(T[0] + y), "";
|
|
1074
1074
|
default:
|
|
1075
|
-
return
|
|
1075
|
+
return y + (me === 0 ? "/*|*/" : "");
|
|
1076
1076
|
}
|
|
1077
1077
|
case -2:
|
|
1078
|
-
|
|
1078
|
+
y.split("/*|*/}").forEach(x);
|
|
1079
1079
|
}
|
|
1080
1080
|
};
|
|
1081
1081
|
}(function(O) {
|
|
@@ -1083,12 +1083,12 @@ function sn(e) {
|
|
|
1083
1083
|
}), F = function(O, x, I) {
|
|
1084
1084
|
return x === 0 && an.indexOf(I[t.length]) !== -1 || I.match(a) ? O : "." + n;
|
|
1085
1085
|
};
|
|
1086
|
-
function E(O, x, I,
|
|
1087
|
-
|
|
1086
|
+
function E(O, x, I, y) {
|
|
1087
|
+
y === void 0 && (y = "&");
|
|
1088
1088
|
var T = O.replace(on, ""), _ = x && I ? I + " " + x + " { " + T + " }" : T;
|
|
1089
|
-
return n =
|
|
1089
|
+
return n = y, t = x, o = new RegExp("\\" + t + "\\b", "g"), a = new RegExp("(\\" + t + "\\b){2,}"), g(I || !x ? "" : x, _);
|
|
1090
1090
|
}
|
|
1091
|
-
return
|
|
1091
|
+
return g.use([].concat(v, [function(O, x, I) {
|
|
1092
1092
|
O === 2 && I.length && I[0].lastIndexOf(t) > 0 && (I[0] = I[0].replace(o, F));
|
|
1093
1093
|
}, D, function(O) {
|
|
1094
1094
|
if (O === -2) {
|
|
@@ -1096,7 +1096,7 @@ function sn(e) {
|
|
|
1096
1096
|
return C = [], x;
|
|
1097
1097
|
}
|
|
1098
1098
|
}])), E.hash = v.length ? v.reduce(function(O, x) {
|
|
1099
|
-
return x.name || Be(15),
|
|
1099
|
+
return x.name || Be(15), Ie(O, x.name);
|
|
1100
1100
|
}, 5381).toString() : "", E;
|
|
1101
1101
|
}
|
|
1102
1102
|
var er = Ye.createContext();
|
|
@@ -1148,10 +1148,10 @@ function ze(e, n, t, o) {
|
|
|
1148
1148
|
return process.env.NODE_ENV !== "production" && qe.exports.isElement(h) && console.warn(ut(e) + " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."), ze(h, n, t, o);
|
|
1149
1149
|
}
|
|
1150
1150
|
var v;
|
|
1151
|
-
return e instanceof dn ? t ? (e.inject(t, o), e.getName(o)) : e : lt(e) ? function
|
|
1151
|
+
return e instanceof dn ? t ? (e.inject(t, o), e.getName(o)) : e : lt(e) ? function g(C, D) {
|
|
1152
1152
|
var F, E, O = [];
|
|
1153
1153
|
for (var x in C)
|
|
1154
|
-
C.hasOwnProperty(x) && !Yt(C[x]) && (Array.isArray(C[x]) && C[x].isCss || Ge(C[x]) ? O.push(zt(x) + ":", C[x], ";") : lt(C[x]) ? O.push.apply(O,
|
|
1154
|
+
C.hasOwnProperty(x) && !Yt(C[x]) && (Array.isArray(C[x]) && C[x].isCss || Ge(C[x]) ? O.push(zt(x) + ":", C[x], ";") : lt(C[x]) ? O.push.apply(O, g(C[x], x)) : O.push(zt(x) + ": " + (F = x, (E = C[x]) == null || typeof E == "boolean" || E === "" ? "" : typeof E != "number" || E === 0 || F in Ar ? String(E).trim() : E + "px") + ";"));
|
|
1155
1155
|
return D ? [D + " {"].concat(O, ["}"]) : O;
|
|
1156
1156
|
}(e) : e.toString();
|
|
1157
1157
|
}
|
|
@@ -1221,18 +1221,18 @@ var nr = Ye.createContext();
|
|
|
1221
1221
|
nr.Consumer;
|
|
1222
1222
|
var st = {};
|
|
1223
1223
|
function or(e, n, t) {
|
|
1224
|
-
var o = yt(e), a = !Ze(e), c = n.attrs, s = c === void 0 ? Qe : c, f = n.componentId, h = f === void 0 ? function(
|
|
1225
|
-
var _ = typeof
|
|
1224
|
+
var o = yt(e), a = !Ze(e), c = n.attrs, s = c === void 0 ? Qe : c, f = n.componentId, h = f === void 0 ? function(y, T) {
|
|
1225
|
+
var _ = typeof y != "string" ? "sc" : it(y);
|
|
1226
1226
|
st[_] = (st[_] || 0) + 1;
|
|
1227
1227
|
var d = _ + "-" + Sn("5.3.6" + _ + st[_]);
|
|
1228
1228
|
return T ? T + "-" + d : d;
|
|
1229
|
-
}(n.displayName, n.parentComponentId) : f, v = n.displayName,
|
|
1230
|
-
return Ze(
|
|
1229
|
+
}(n.displayName, n.parentComponentId) : f, v = n.displayName, g = v === void 0 ? function(y) {
|
|
1230
|
+
return Ze(y) ? "styled." + y : "Styled(" + ut(y) + ")";
|
|
1231
1231
|
}(e) : v, C = n.displayName && n.componentId ? it(n.displayName) + "-" + n.componentId : n.componentId || h, D = o && e.attrs ? Array.prototype.concat(e.attrs, s).filter(Boolean) : s, F = n.shouldForwardProp;
|
|
1232
|
-
o && e.shouldForwardProp && (F = n.shouldForwardProp ? function(
|
|
1233
|
-
return e.shouldForwardProp(
|
|
1232
|
+
o && e.shouldForwardProp && (F = n.shouldForwardProp ? function(y, T, _) {
|
|
1233
|
+
return e.shouldForwardProp(y, T, _) && n.shouldForwardProp(y, T, _);
|
|
1234
1234
|
} : e.shouldForwardProp);
|
|
1235
|
-
var E, O = new nn(t, C, o ? e.componentStyle : void 0), x = O.isStatic && s.length === 0, I = function(
|
|
1235
|
+
var E, O = new nn(t, C, o ? e.componentStyle : void 0), x = O.isStatic && s.length === 0, I = function(y, T) {
|
|
1236
1236
|
return function(_, d, ae, he) {
|
|
1237
1237
|
var ce = _.attrs, ue = _.componentStyle, me = _.defaultProps, we = _.foldedComponentIds, ie = _.shouldForwardProp, G = _.styledComponentId, te = _.target;
|
|
1238
1238
|
process.env.NODE_ENV !== "production" && Ot(G);
|
|
@@ -1247,13 +1247,13 @@ function or(e, n, t) {
|
|
|
1247
1247
|
}(yn(d, ye(nr), me) || Pe, d, ce), be = K[0], le = K[1], se = function(A, i, j, p) {
|
|
1248
1248
|
var U = ln(), M = un(), $ = i ? A.generateAndInjectStyles(Pe, U, M) : A.generateAndInjectStyles(j, U, M);
|
|
1249
1249
|
return process.env.NODE_ENV !== "production" && Ot($), process.env.NODE_ENV !== "production" && !i && p && p($), $;
|
|
1250
|
-
}(ue, he, be, process.env.NODE_ENV !== "production" ? _.warnTooManyClasses : void 0), Se = ae, ve = le.$as || d.$as || le.as || d.as || te, Ce = Ze(ve), S = le !== d ? Ae({}, d, {}, le) : d,
|
|
1250
|
+
}(ue, he, be, process.env.NODE_ENV !== "production" ? _.warnTooManyClasses : void 0), Se = ae, ve = le.$as || d.$as || le.as || d.as || te, Ce = Ze(ve), S = le !== d ? Ae({}, d, {}, le) : d, w = {};
|
|
1251
1251
|
for (var b in S)
|
|
1252
|
-
b[0] !== "$" && b !== "as" && (b === "forwardedAs" ?
|
|
1253
|
-
return d.style && le.style !== d.style && (
|
|
1254
|
-
}(E,
|
|
1252
|
+
b[0] !== "$" && b !== "as" && (b === "forwardedAs" ? w.as = S[b] : (ie ? ie(b, Dt, ve) : !Ce || Dt(b)) && (w[b] = S[b]));
|
|
1253
|
+
return d.style && le.style !== d.style && (w.style = Ae({}, d.style, {}, le.style)), w.className = Array.prototype.concat(we, G, se !== G ? se : null, d.className, le.className).filter(Boolean).join(" "), w.ref = Se, Cr(ve, w);
|
|
1254
|
+
}(E, y, T, x);
|
|
1255
1255
|
};
|
|
1256
|
-
return I.displayName =
|
|
1256
|
+
return I.displayName = g, (E = Ye.forwardRef(I)).attrs = D, E.componentStyle = O, E.displayName = g, E.shouldForwardProp = F, E.foldedComponentIds = o ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : Qe, E.styledComponentId = C, E.target = o ? e.target : e, E.withComponent = function(y) {
|
|
1257
1257
|
var T = n.componentId, _ = function(ae, he) {
|
|
1258
1258
|
if (ae == null)
|
|
1259
1259
|
return {};
|
|
@@ -1261,18 +1261,18 @@ function or(e, n, t) {
|
|
|
1261
1261
|
for (ue = 0; ue < we.length; ue++)
|
|
1262
1262
|
ce = we[ue], he.indexOf(ce) >= 0 || (me[ce] = ae[ce]);
|
|
1263
1263
|
return me;
|
|
1264
|
-
}(n, ["componentId"]), d = T && T + "-" + (Ze(
|
|
1265
|
-
return or(
|
|
1264
|
+
}(n, ["componentId"]), d = T && T + "-" + (Ze(y) ? y : it(ut(y)));
|
|
1265
|
+
return or(y, Ae({}, _, { attrs: D, componentId: d }), t);
|
|
1266
1266
|
}, Object.defineProperty(E, "defaultProps", { get: function() {
|
|
1267
1267
|
return this._foldedDefaultProps;
|
|
1268
|
-
}, set: function(
|
|
1269
|
-
this._foldedDefaultProps = o ? rr({}, e.defaultProps,
|
|
1270
|
-
} }), process.env.NODE_ENV !== "production" && (gn(
|
|
1268
|
+
}, set: function(y) {
|
|
1269
|
+
this._foldedDefaultProps = o ? rr({}, e.defaultProps, y) : y;
|
|
1270
|
+
} }), process.env.NODE_ENV !== "production" && (gn(g, C), E.warnTooManyClasses = function(y, T) {
|
|
1271
1271
|
var _ = {}, d = !1;
|
|
1272
1272
|
return function(ae) {
|
|
1273
1273
|
if (!d && (_[ae] = !0, Object.keys(_).length >= 200)) {
|
|
1274
1274
|
var he = T ? ' with the id of "' + T + '"' : "";
|
|
1275
|
-
console.warn("Over 200 classes were generated for component " +
|
|
1275
|
+
console.warn("Over 200 classes were generated for component " + y + he + `.
|
|
1276
1276
|
Consider using the attrs method, together with a style object for frequently changed styles.
|
|
1277
1277
|
Example:
|
|
1278
1278
|
const Component = styled.div.attrs(props => ({
|
|
@@ -1284,7 +1284,7 @@ Example:
|
|
|
1284
1284
|
<Component />`), d = !0, _ = {};
|
|
1285
1285
|
}
|
|
1286
1286
|
};
|
|
1287
|
-
}(
|
|
1287
|
+
}(g, C)), E.toString = function() {
|
|
1288
1288
|
return "." + E.styledComponentId;
|
|
1289
1289
|
}, a && $r(E, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0, withComponent: !0 }), E;
|
|
1290
1290
|
}
|
|
@@ -1310,24 +1310,24 @@ Perhaps you're looking to import 'styled-components/native'?
|
|
|
1310
1310
|
Read more about this at https://www.styled-components.com/docs/basics#react-native`), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window["__styled-components-init__"] = window["__styled-components-init__"] || 0, window["__styled-components-init__"] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
1311
1311
|
|
|
1312
1312
|
See https://s-c.sh/2BAXzed for more info.`), window["__styled-components-init__"] += 1);
|
|
1313
|
-
const fe = ht,
|
|
1313
|
+
const fe = ht, Ne = {
|
|
1314
1314
|
walletName: "",
|
|
1315
1315
|
walletInstance: {}
|
|
1316
1316
|
}, _n = () => {
|
|
1317
|
-
const [e, n] = ee(void 0), [t, o] = ee(!1), [a, c] = ee(
|
|
1317
|
+
const [e, n] = ee(void 0), [t, o] = ee(!1), [a, c] = ee(Ne.walletInstance), [s, f] = ee(Ne.walletName), h = ct(async (g) => {
|
|
1318
1318
|
o(!0);
|
|
1319
1319
|
try {
|
|
1320
|
-
const C = await qt.enable(
|
|
1321
|
-
c(C), f(
|
|
1320
|
+
const C = await qt.enable(g);
|
|
1321
|
+
c(C), f(g), n(void 0);
|
|
1322
1322
|
} catch (C) {
|
|
1323
1323
|
n(C), console.error(C);
|
|
1324
1324
|
}
|
|
1325
1325
|
o(!1);
|
|
1326
1326
|
}, []), v = ct(() => {
|
|
1327
|
-
f(
|
|
1327
|
+
f(Ne.walletName), c(Ne.walletInstance);
|
|
1328
1328
|
}, []);
|
|
1329
1329
|
return {
|
|
1330
|
-
hasConnectedWallet:
|
|
1330
|
+
hasConnectedWallet: Ne.walletName !== s,
|
|
1331
1331
|
connectedWalletInstance: a,
|
|
1332
1332
|
connectedWalletName: s,
|
|
1333
1333
|
connectingWallet: t,
|
|
@@ -1337,8 +1337,8 @@ const fe = ht, Ie = {
|
|
|
1337
1337
|
};
|
|
1338
1338
|
}, Te = Er({
|
|
1339
1339
|
hasConnectedWallet: !1,
|
|
1340
|
-
connectedWalletInstance:
|
|
1341
|
-
connectedWalletName:
|
|
1340
|
+
connectedWalletInstance: Ne.walletInstance,
|
|
1341
|
+
connectedWalletName: Ne.walletName,
|
|
1342
1342
|
connectingWallet: !1
|
|
1343
1343
|
});
|
|
1344
1344
|
var tt = { exports: {} }, Ve = {};
|
|
@@ -1358,13 +1358,13 @@ function xn() {
|
|
|
1358
1358
|
Ut = 1;
|
|
1359
1359
|
var e = Ye, n = Symbol.for("react.element"), t = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1360
1360
|
function s(f, h, v) {
|
|
1361
|
-
var
|
|
1361
|
+
var g, C = {}, D = null, F = null;
|
|
1362
1362
|
v !== void 0 && (D = "" + v), h.key !== void 0 && (D = "" + h.key), h.ref !== void 0 && (F = h.ref);
|
|
1363
|
-
for (
|
|
1364
|
-
o.call(h,
|
|
1363
|
+
for (g in h)
|
|
1364
|
+
o.call(h, g) && !c.hasOwnProperty(g) && (C[g] = h[g]);
|
|
1365
1365
|
if (f && f.defaultProps)
|
|
1366
|
-
for (
|
|
1367
|
-
C[
|
|
1366
|
+
for (g in h = f.defaultProps, h)
|
|
1367
|
+
C[g] === void 0 && (C[g] = h[g]);
|
|
1368
1368
|
return { $$typeof: n, type: f, key: D, ref: F, props: C, _owner: a.current };
|
|
1369
1369
|
}
|
|
1370
1370
|
return Ve.Fragment = t, Ve.jsx = s, Ve.jsxs = s, Ve;
|
|
@@ -1382,7 +1382,7 @@ var Ue = {};
|
|
|
1382
1382
|
var Ht;
|
|
1383
1383
|
function Rn() {
|
|
1384
1384
|
return Ht || (Ht = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1385
|
-
var e = Ye, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), f = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"),
|
|
1385
|
+
var e = Ye, n = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), f = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), E = Symbol.iterator, O = "@@iterator";
|
|
1386
1386
|
function x(r) {
|
|
1387
1387
|
if (r === null || typeof r != "object")
|
|
1388
1388
|
return null;
|
|
@@ -1390,7 +1390,7 @@ function Rn() {
|
|
|
1390
1390
|
return typeof u == "function" ? u : null;
|
|
1391
1391
|
}
|
|
1392
1392
|
var I = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1393
|
-
function
|
|
1393
|
+
function y(r) {
|
|
1394
1394
|
{
|
|
1395
1395
|
for (var u = arguments.length, m = new Array(u > 1 ? u - 1 : 0), k = 1; k < u; k++)
|
|
1396
1396
|
m[k - 1] = arguments[k];
|
|
@@ -1410,7 +1410,7 @@ function Rn() {
|
|
|
1410
1410
|
var _ = !1, d = !1, ae = !1, he = !1, ce = !1, ue;
|
|
1411
1411
|
ue = Symbol.for("react.module.reference");
|
|
1412
1412
|
function me(r) {
|
|
1413
|
-
return !!(typeof r == "string" || typeof r == "function" || r === o || r === c || ce || r === a || r === v || r ===
|
|
1413
|
+
return !!(typeof r == "string" || typeof r == "function" || r === o || r === c || ce || r === a || r === v || r === g || he || r === F || _ || d || ae || typeof r == "object" && r !== null && (r.$$typeof === D || r.$$typeof === C || r.$$typeof === s || r.$$typeof === f || r.$$typeof === h || r.$$typeof === ue || r.getModuleId !== void 0));
|
|
1414
1414
|
}
|
|
1415
1415
|
function we(r, u, m) {
|
|
1416
1416
|
var k = r.displayName;
|
|
@@ -1425,7 +1425,7 @@ function Rn() {
|
|
|
1425
1425
|
function G(r) {
|
|
1426
1426
|
if (r == null)
|
|
1427
1427
|
return null;
|
|
1428
|
-
if (typeof r.tag == "number" &&
|
|
1428
|
+
if (typeof r.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
1429
1429
|
return r.displayName || r.name || null;
|
|
1430
1430
|
if (typeof r == "string")
|
|
1431
1431
|
return r;
|
|
@@ -1440,7 +1440,7 @@ function Rn() {
|
|
|
1440
1440
|
return "StrictMode";
|
|
1441
1441
|
case v:
|
|
1442
1442
|
return "Suspense";
|
|
1443
|
-
case
|
|
1443
|
+
case g:
|
|
1444
1444
|
return "SuspenseList";
|
|
1445
1445
|
}
|
|
1446
1446
|
if (typeof r == "object")
|
|
@@ -1468,9 +1468,9 @@ function Rn() {
|
|
|
1468
1468
|
return null;
|
|
1469
1469
|
}
|
|
1470
1470
|
var te = Object.assign, K = 0, be, le, se, Se, ve, Ce, S;
|
|
1471
|
-
function
|
|
1471
|
+
function w() {
|
|
1472
1472
|
}
|
|
1473
|
-
|
|
1473
|
+
w.__reactDisabledLog = !0;
|
|
1474
1474
|
function b() {
|
|
1475
1475
|
{
|
|
1476
1476
|
if (K === 0) {
|
|
@@ -1478,7 +1478,7 @@ function Rn() {
|
|
|
1478
1478
|
var r = {
|
|
1479
1479
|
configurable: !0,
|
|
1480
1480
|
enumerable: !0,
|
|
1481
|
-
value:
|
|
1481
|
+
value: w,
|
|
1482
1482
|
writable: !0
|
|
1483
1483
|
};
|
|
1484
1484
|
Object.defineProperties(console, {
|
|
@@ -1526,7 +1526,7 @@ function Rn() {
|
|
|
1526
1526
|
})
|
|
1527
1527
|
});
|
|
1528
1528
|
}
|
|
1529
|
-
K < 0 &&
|
|
1529
|
+
K < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1530
1530
|
}
|
|
1531
1531
|
}
|
|
1532
1532
|
var i = I.ReactCurrentDispatcher, j;
|
|
@@ -1636,7 +1636,7 @@ function Rn() {
|
|
|
1636
1636
|
switch (r) {
|
|
1637
1637
|
case v:
|
|
1638
1638
|
return p("Suspense");
|
|
1639
|
-
case
|
|
1639
|
+
case g:
|
|
1640
1640
|
return p("SuspenseList");
|
|
1641
1641
|
}
|
|
1642
1642
|
if (typeof r == "object")
|
|
@@ -1678,7 +1678,7 @@ function Rn() {
|
|
|
1678
1678
|
} catch (Q) {
|
|
1679
1679
|
W = Q;
|
|
1680
1680
|
}
|
|
1681
|
-
W && !(W instanceof Error) && (Ee(Y),
|
|
1681
|
+
W && !(W instanceof Error) && (Ee(Y), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", k || "React class", m, L, typeof W), Ee(null)), W instanceof Error && !(W.message in z) && (z[W.message] = !0, Ee(Y), y("Failed %s type: %s", m, W.message), Ee(null));
|
|
1682
1682
|
}
|
|
1683
1683
|
}
|
|
1684
1684
|
}
|
|
@@ -1704,7 +1704,7 @@ function Rn() {
|
|
|
1704
1704
|
}
|
|
1705
1705
|
function We(r) {
|
|
1706
1706
|
if (R(r))
|
|
1707
|
-
return
|
|
1707
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pe(r)), q(r);
|
|
1708
1708
|
}
|
|
1709
1709
|
var Re = I.ReactCurrentOwner, _e = {
|
|
1710
1710
|
key: !0,
|
|
@@ -1732,13 +1732,13 @@ function Rn() {
|
|
|
1732
1732
|
function cr(r, u) {
|
|
1733
1733
|
if (typeof r.ref == "string" && Re.current && u && Re.current.stateNode !== u) {
|
|
1734
1734
|
var m = G(Re.current.type);
|
|
1735
|
-
rt[m] || (
|
|
1735
|
+
rt[m] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', G(Re.current.type), r.ref), rt[m] = !0);
|
|
1736
1736
|
}
|
|
1737
1737
|
}
|
|
1738
1738
|
function lr(r, u) {
|
|
1739
1739
|
{
|
|
1740
1740
|
var m = function() {
|
|
1741
|
-
Ct || (Ct = !0,
|
|
1741
|
+
Ct || (Ct = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
|
|
1742
1742
|
};
|
|
1743
1743
|
m.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
1744
1744
|
get: m,
|
|
@@ -1749,7 +1749,7 @@ function Rn() {
|
|
|
1749
1749
|
function ur(r, u) {
|
|
1750
1750
|
{
|
|
1751
1751
|
var m = function() {
|
|
1752
|
-
Et || (Et = !0,
|
|
1752
|
+
Et || (Et = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
|
|
1753
1753
|
};
|
|
1754
1754
|
m.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
1755
1755
|
get: m,
|
|
@@ -1860,7 +1860,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
1860
1860
|
return;
|
|
1861
1861
|
Rt[m] = !0;
|
|
1862
1862
|
var k = "";
|
|
1863
|
-
r && r._owner && r._owner !== nt.current && (k = " It was passed a child from " + G(r._owner.type) + "."), $e(r),
|
|
1863
|
+
r && r._owner && r._owner !== nt.current && (k = " It was passed a child from " + G(r._owner.type) + "."), $e(r), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, k), $e(null);
|
|
1864
1864
|
}
|
|
1865
1865
|
}
|
|
1866
1866
|
function At(r, u) {
|
|
@@ -1900,9 +1900,9 @@ Check the top-level render call using <` + m + ">.");
|
|
|
1900
1900
|
} else if (u.PropTypes !== void 0 && !ot) {
|
|
1901
1901
|
ot = !0;
|
|
1902
1902
|
var Y = G(u);
|
|
1903
|
-
|
|
1903
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Y || "Unknown");
|
|
1904
1904
|
}
|
|
1905
|
-
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved &&
|
|
1905
|
+
typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
1908
1908
|
function vr(r) {
|
|
@@ -1910,11 +1910,11 @@ Check the top-level render call using <` + m + ">.");
|
|
|
1910
1910
|
for (var u = Object.keys(r.props), m = 0; m < u.length; m++) {
|
|
1911
1911
|
var k = u[m];
|
|
1912
1912
|
if (k !== "children" && k !== "key") {
|
|
1913
|
-
$e(r),
|
|
1913
|
+
$e(r), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", k), $e(null);
|
|
1914
1914
|
break;
|
|
1915
1915
|
}
|
|
1916
1916
|
}
|
|
1917
|
-
r.ref !== null && ($e(r),
|
|
1917
|
+
r.ref !== null && ($e(r), y("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
|
|
1918
1918
|
}
|
|
1919
1919
|
}
|
|
1920
1920
|
function Tt(r, u, m, k, Y, H) {
|
|
@@ -1926,7 +1926,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
1926
1926
|
var de = pr(Y);
|
|
1927
1927
|
de ? W += de : W += xt();
|
|
1928
1928
|
var Q;
|
|
1929
|
-
r === null ? Q = "null" : xe(r) ? Q = "array" : r !== void 0 && r.$$typeof === n ? (Q = "<" + (G(r.type) || "Unknown") + " />", W = " Did you accidentally export a JSX literal instead of a component?") : Q = typeof r,
|
|
1929
|
+
r === null ? Q = "null" : xe(r) ? Q = "array" : r !== void 0 && r.$$typeof === n ? (Q = "<" + (G(r.type) || "Unknown") + " />", W = " Did you accidentally export a JSX literal instead of a component?") : Q = typeof r, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Q, W);
|
|
1930
1930
|
}
|
|
1931
1931
|
var ne = fr(r, u, m, Y, H);
|
|
1932
1932
|
if (ne == null)
|
|
@@ -1940,7 +1940,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
1940
1940
|
At(ge[Le], r);
|
|
1941
1941
|
Object.freeze && Object.freeze(ge);
|
|
1942
1942
|
} else
|
|
1943
|
-
|
|
1943
|
+
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
1944
1944
|
else
|
|
1945
1945
|
At(ge, r);
|
|
1946
1946
|
}
|
|
@@ -1960,7 +1960,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
1960
1960
|
(function(e) {
|
|
1961
1961
|
process.env.NODE_ENV === "production" ? e.exports = xn() : e.exports = Rn();
|
|
1962
1962
|
})(tt);
|
|
1963
|
-
const
|
|
1963
|
+
const De = tt.exports.Fragment, N = tt.exports.jsx, Me = tt.exports.jsxs, Xn = ({
|
|
1964
1964
|
children: e
|
|
1965
1965
|
}) => {
|
|
1966
1966
|
const n = _n();
|
|
@@ -1974,7 +1974,7 @@ const Ne = tt.exports.Fragment, N = tt.exports.jsx, De = tt.exports.jsxs, Xn = (
|
|
|
1974
1974
|
connectedWalletName: a,
|
|
1975
1975
|
connectedWalletInstance: c
|
|
1976
1976
|
} = ye(Te);
|
|
1977
|
-
return
|
|
1977
|
+
return Oe(() => {
|
|
1978
1978
|
o && c.getUsedAddresses().then((s) => {
|
|
1979
1979
|
s[e] && t(s[e]);
|
|
1980
1980
|
});
|
|
@@ -1985,12 +1985,12 @@ const Ne = tt.exports.Fragment, N = tt.exports.jsx, De = tt.exports.jsxs, Xn = (
|
|
|
1985
1985
|
connectedWalletName: o,
|
|
1986
1986
|
connectedWalletInstance: a
|
|
1987
1987
|
} = ye(Te);
|
|
1988
|
-
return
|
|
1988
|
+
return Oe(() => {
|
|
1989
1989
|
t && a.getAssets().then(n);
|
|
1990
1990
|
}, [o]), e;
|
|
1991
1991
|
}, bt = () => {
|
|
1992
1992
|
const [e, n] = ee([]);
|
|
1993
|
-
return
|
|
1993
|
+
return Oe(() => {
|
|
1994
1994
|
n(qt.getInstalledWallets());
|
|
1995
1995
|
}, []), e;
|
|
1996
1996
|
}, kn = () => {
|
|
@@ -1999,7 +1999,7 @@ const Ne = tt.exports.Fragment, N = tt.exports.jsx, De = tt.exports.jsxs, Xn = (
|
|
|
1999
1999
|
connectedWalletName: o,
|
|
2000
2000
|
connectedWalletInstance: a
|
|
2001
2001
|
} = ye(Te);
|
|
2002
|
-
return
|
|
2002
|
+
return Oe(() => {
|
|
2003
2003
|
t && a.getLovelace().then(n);
|
|
2004
2004
|
}, [o]), e;
|
|
2005
2005
|
}, Jn = () => {
|
|
@@ -2008,7 +2008,7 @@ const Ne = tt.exports.Fragment, N = tt.exports.jsx, De = tt.exports.jsxs, Xn = (
|
|
|
2008
2008
|
connectedWalletName: o,
|
|
2009
2009
|
connectedWalletInstance: a
|
|
2010
2010
|
} = ye(Te);
|
|
2011
|
-
return
|
|
2011
|
+
return Oe(() => {
|
|
2012
2012
|
t && a.getNetworkId().then(n);
|
|
2013
2013
|
}, [o]), e;
|
|
2014
2014
|
}, An = (e = 0) => {
|
|
@@ -2017,7 +2017,7 @@ const Ne = tt.exports.Fragment, N = tt.exports.jsx, De = tt.exports.jsxs, Xn = (
|
|
|
2017
2017
|
connectedWalletName: a,
|
|
2018
2018
|
connectedWalletInstance: c
|
|
2019
2019
|
} = ye(Te);
|
|
2020
|
-
return
|
|
2020
|
+
return Oe(() => {
|
|
2021
2021
|
o && c.getRewardAddresses().then((s) => {
|
|
2022
2022
|
s[e] && t(s[e]);
|
|
2023
2023
|
});
|
|
@@ -2051,12 +2051,12 @@ const Ne = tt.exports.Fragment, N = tt.exports.jsx, De = tt.exports.jsxs, Xn = (
|
|
|
2051
2051
|
c(!0);
|
|
2052
2052
|
try {
|
|
2053
2053
|
if (s) {
|
|
2054
|
-
const
|
|
2055
|
-
n(void 0), o(
|
|
2054
|
+
const g = await f.submitTx(v);
|
|
2055
|
+
n(void 0), o(g);
|
|
2056
2056
|
}
|
|
2057
2057
|
throw new Error("Please make sure to connect a wallet before calling useWalletSubmit");
|
|
2058
|
-
} catch (
|
|
2059
|
-
n(
|
|
2058
|
+
} catch (g) {
|
|
2059
|
+
n(g), console.error(g);
|
|
2060
2060
|
}
|
|
2061
2061
|
c(!1);
|
|
2062
2062
|
}, []);
|
|
@@ -2135,11 +2135,12 @@ const Ne = tt.exports.Fragment, N = tt.exports.jsx, De = tt.exports.jsxs, Xn = (
|
|
|
2135
2135
|
label: n,
|
|
2136
2136
|
action: t,
|
|
2137
2137
|
active: o
|
|
2138
|
-
}) => /* @__PURE__ */
|
|
2138
|
+
}) => /* @__PURE__ */ Me(In, {
|
|
2139
2139
|
onClick: t,
|
|
2140
2140
|
children: [e && /* @__PURE__ */ N(Nn, {
|
|
2141
2141
|
src: e
|
|
2142
2142
|
}), /* @__PURE__ */ N(Dn, {
|
|
2143
|
+
className: "mr-menu-item",
|
|
2143
2144
|
children: n.split(" ").map((a) => a.charAt(0).toUpperCase() + a.slice(1).toLowerCase()).join(" ")
|
|
2144
2145
|
}), o && /* @__PURE__ */ N(Mn, {
|
|
2145
2146
|
children: /* @__PURE__ */ N(On, {})
|
|
@@ -2177,23 +2178,24 @@ const Ne = tt.exports.Fragment, N = tt.exports.jsx, De = tt.exports.jsxs, Xn = (
|
|
|
2177
2178
|
}), $n = ({
|
|
2178
2179
|
connected: e,
|
|
2179
2180
|
name: n,
|
|
2180
|
-
connecting: t
|
|
2181
|
+
connecting: t,
|
|
2182
|
+
label: o
|
|
2181
2183
|
}) => {
|
|
2182
|
-
const
|
|
2183
|
-
return e &&
|
|
2184
|
+
const a = bt().find((s) => s.name === n), c = kn();
|
|
2185
|
+
return e && c && a?.icon ? /* @__PURE__ */ Me(De, {
|
|
2184
2186
|
children: [/* @__PURE__ */ N(Gt, {
|
|
2185
|
-
src:
|
|
2186
|
-
}), "\u20B3 ", parseInt((parseInt(
|
|
2187
|
-
children:
|
|
2187
|
+
src: a.icon
|
|
2188
|
+
}), "\u20B3", " ", parseInt((parseInt(c, 10) / 1e6).toString(), 10), ".", /* @__PURE__ */ N(Wn, {
|
|
2189
|
+
children: c.substr(c.length - 6)
|
|
2188
2190
|
})]
|
|
2189
|
-
}) : e &&
|
|
2191
|
+
}) : e && a?.icon ? /* @__PURE__ */ N(De, {
|
|
2190
2192
|
children: /* @__PURE__ */ N(Gt, {
|
|
2191
|
-
src:
|
|
2193
|
+
src: a.icon
|
|
2192
2194
|
})
|
|
2193
|
-
}) : t ? /* @__PURE__ */ N(
|
|
2195
|
+
}) : t ? /* @__PURE__ */ N(De, {
|
|
2194
2196
|
children: "Connecting..."
|
|
2195
|
-
}) : /* @__PURE__ */ De
|
|
2196
|
-
children: ["
|
|
2197
|
+
}) : /* @__PURE__ */ Me(De, {
|
|
2198
|
+
children: [o, " ", /* @__PURE__ */ N(ar, {})]
|
|
2197
2199
|
});
|
|
2198
2200
|
}, Ln = fe.button.withConfig({
|
|
2199
2201
|
displayName: "CardanoWallet__StyledMenuButton",
|
|
@@ -2235,44 +2237,52 @@ const Ne = tt.exports.Fragment, N = tt.exports.jsx, De = tt.exports.jsxs, Xn = (
|
|
|
2235
2237
|
backdropFilter: "var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)"
|
|
2236
2238
|
}, e && {
|
|
2237
2239
|
display: "none"
|
|
2238
|
-
}]), eo = (
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2240
|
+
}]), eo = ({
|
|
2241
|
+
label: e = "Connect Wallet",
|
|
2242
|
+
onConnected: n = void 0
|
|
2243
|
+
}) => {
|
|
2244
|
+
const t = bt(), [o, a] = ee(!0), {
|
|
2245
|
+
connect: c,
|
|
2246
|
+
connecting: s,
|
|
2247
|
+
connected: f,
|
|
2248
|
+
disconnect: h,
|
|
2249
|
+
name: v
|
|
2245
2250
|
} = St();
|
|
2246
|
-
return
|
|
2251
|
+
return Oe(() => {
|
|
2252
|
+
f && n && n();
|
|
2253
|
+
}, [f]), /* @__PURE__ */ Me("div", {
|
|
2247
2254
|
style: {
|
|
2248
2255
|
width: "fit-content"
|
|
2249
2256
|
},
|
|
2250
|
-
onMouseEnter: () =>
|
|
2251
|
-
onMouseLeave: () =>
|
|
2257
|
+
onMouseEnter: () => a(!1),
|
|
2258
|
+
onMouseLeave: () => a(!0),
|
|
2252
2259
|
children: [/* @__PURE__ */ N(Ln, {
|
|
2253
2260
|
type: "button",
|
|
2254
|
-
|
|
2261
|
+
className: "mr-wallet-button",
|
|
2262
|
+
onClick: () => a(!o),
|
|
2255
2263
|
children: /* @__PURE__ */ N($n, {
|
|
2256
|
-
name:
|
|
2257
|
-
connected:
|
|
2258
|
-
connecting:
|
|
2264
|
+
name: v,
|
|
2265
|
+
connected: f,
|
|
2266
|
+
connecting: s,
|
|
2267
|
+
label: e
|
|
2259
2268
|
})
|
|
2260
2269
|
}), /* @__PURE__ */ N(Fn, {
|
|
2261
|
-
hidden:
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2270
|
+
hidden: o,
|
|
2271
|
+
className: "mr-menu-list",
|
|
2272
|
+
children: !f && t.length > 0 ? t.map((g, C) => /* @__PURE__ */ N(mt, {
|
|
2273
|
+
icon: g.icon,
|
|
2274
|
+
label: g.name,
|
|
2265
2275
|
action: () => {
|
|
2266
|
-
|
|
2276
|
+
c(g.name), a(!o);
|
|
2267
2277
|
},
|
|
2268
|
-
active:
|
|
2269
|
-
},
|
|
2278
|
+
active: v === g.name
|
|
2279
|
+
}, C)) : t.length === 0 ? /* @__PURE__ */ N("span", {
|
|
2270
2280
|
children: "No Wallet Found"
|
|
2271
|
-
}) : /* @__PURE__ */ N(
|
|
2281
|
+
}) : /* @__PURE__ */ N(De, {
|
|
2272
2282
|
children: /* @__PURE__ */ N(mt, {
|
|
2273
2283
|
active: !1,
|
|
2274
2284
|
label: "disconnect",
|
|
2275
|
-
action:
|
|
2285
|
+
action: h,
|
|
2276
2286
|
icon: void 0
|
|
2277
2287
|
})
|
|
2278
2288
|
})
|
|
@@ -2312,7 +2322,7 @@ const Ne = tt.exports.Fragment, N = tt.exports.jsx, De = tt.exports.jsxs, Xn = (
|
|
|
2312
2322
|
textDecorationLine: "none"
|
|
2313
2323
|
}), to = ({
|
|
2314
2324
|
dark: e = !1
|
|
2315
|
-
}) => /* @__PURE__ */
|
|
2325
|
+
}) => /* @__PURE__ */ Me(Bn, {
|
|
2316
2326
|
style: {
|
|
2317
2327
|
color: e ? "#EEEEEE" : "#111111",
|
|
2318
2328
|
backgroundColor: e ? "#111111" : "#EEEEEE"
|
|
@@ -2371,7 +2381,7 @@ const Ne = tt.exports.Fragment, N = tt.exports.jsx, De = tt.exports.jsxs, Xn = (
|
|
|
2371
2381
|
connected: f,
|
|
2372
2382
|
name: h
|
|
2373
2383
|
} = St();
|
|
2374
|
-
return /* @__PURE__ */
|
|
2384
|
+
return /* @__PURE__ */ Me("div", {
|
|
2375
2385
|
style: {
|
|
2376
2386
|
width: "fit-content"
|
|
2377
2387
|
},
|
|
@@ -2383,21 +2393,21 @@ const Ne = tt.exports.Fragment, N = tt.exports.jsx, De = tt.exports.jsxs, Xn = (
|
|
|
2383
2393
|
children: f ? /* @__PURE__ */ N(Hn, {
|
|
2384
2394
|
poolId: e,
|
|
2385
2395
|
onCheck: n
|
|
2386
|
-
}) : s ? /* @__PURE__ */ N(
|
|
2396
|
+
}) : s ? /* @__PURE__ */ N(De, {
|
|
2387
2397
|
children: "Connecting..."
|
|
2388
|
-
}) : /* @__PURE__ */ De
|
|
2398
|
+
}) : /* @__PURE__ */ Me(De, {
|
|
2389
2399
|
children: ["Connect Wallet ", /* @__PURE__ */ N(ar, {})]
|
|
2390
2400
|
})
|
|
2391
2401
|
}), /* @__PURE__ */ N(Un, {
|
|
2392
2402
|
hidden: o || f,
|
|
2393
|
-
children: t.length > 0 ? t.map((v,
|
|
2403
|
+
children: t.length > 0 ? t.map((v, g) => /* @__PURE__ */ N(mt, {
|
|
2394
2404
|
icon: v.icon,
|
|
2395
2405
|
label: v.name,
|
|
2396
2406
|
action: () => {
|
|
2397
2407
|
c(v.name), a(!o);
|
|
2398
2408
|
},
|
|
2399
2409
|
active: h === v.name
|
|
2400
|
-
},
|
|
2410
|
+
}, g)) : /* @__PURE__ */ N("span", {
|
|
2401
2411
|
children: "No Wallet Found"
|
|
2402
2412
|
})
|
|
2403
2413
|
})]
|
|
@@ -2408,40 +2418,40 @@ const Ne = tt.exports.Fragment, N = tt.exports.jsx, De = tt.exports.jsxs, Xn = (
|
|
|
2408
2418
|
}) => {
|
|
2409
2419
|
const t = Tn(), {
|
|
2410
2420
|
wallet: o
|
|
2411
|
-
} = St(), a = An(), [c, s] = ee(), [f, h] = ee(!1), [v,
|
|
2421
|
+
} = St(), a = An(), [c, s] = ee(), [f, h] = ee(!1), [v, g] = ee(), [C, D] = ee(!1), [F, E] = ee(!1), O = async () => {
|
|
2412
2422
|
try {
|
|
2413
2423
|
if (h(!0), a) {
|
|
2414
|
-
const
|
|
2415
|
-
|
|
2424
|
+
const y = await n(a);
|
|
2425
|
+
g(y);
|
|
2416
2426
|
}
|
|
2417
2427
|
h(!1);
|
|
2418
|
-
} catch (
|
|
2419
|
-
s(
|
|
2428
|
+
} catch (y) {
|
|
2429
|
+
s(y);
|
|
2420
2430
|
}
|
|
2421
2431
|
}, x = async () => {
|
|
2422
2432
|
D(!0), E(!1);
|
|
2423
2433
|
try {
|
|
2424
2434
|
if (a) {
|
|
2425
|
-
const
|
|
2435
|
+
const y = await t.registerStake(a).delegateStake(a, e).build(), T = await o.signTx(y), _ = await o.submitTx(T);
|
|
2426
2436
|
console.log("txHash", _), E(!0);
|
|
2427
2437
|
}
|
|
2428
|
-
} catch (
|
|
2429
|
-
console.error("error",
|
|
2438
|
+
} catch (y) {
|
|
2439
|
+
console.error("error", y), s(y);
|
|
2430
2440
|
}
|
|
2431
2441
|
D(!1);
|
|
2432
2442
|
}, I = async () => {
|
|
2433
2443
|
D(!0), E(!1);
|
|
2434
2444
|
try {
|
|
2435
2445
|
if (a) {
|
|
2436
|
-
const
|
|
2446
|
+
const y = await t.delegateStake(a, e).build(), T = await o.signTx(y), _ = await o.submitTx(T);
|
|
2437
2447
|
E(!0);
|
|
2438
2448
|
}
|
|
2439
|
-
} catch (
|
|
2440
|
-
console.error("error",
|
|
2449
|
+
} catch (y) {
|
|
2450
|
+
console.error("error", y), s(y);
|
|
2441
2451
|
}
|
|
2442
2452
|
D(!1);
|
|
2443
2453
|
};
|
|
2444
|
-
return
|
|
2454
|
+
return Oe(() => {
|
|
2445
2455
|
O();
|
|
2446
2456
|
}, [a]), f ? /* @__PURE__ */ N("span", {
|
|
2447
2457
|
children: "Checking..."
|