@blockend/widget 1.0.63 → 1.0.64-beta.2
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/{AllRoutes-DoKxcnoG.js → AllRoutes-DMXt2icG.js} +9 -9
- package/dist/{Box-CWjsnzo_.js → Box-OCjP8qN8.js} +13 -13
- package/dist/{EstGas-CZ7Pt1fl.js → EstGas-DowW8FJ1.js} +84 -84
- package/dist/{Grow-C4k1Q6IP.js → Grow-Bi86flJS.js} +28 -28
- package/dist/{InputComp-BUcjIkxJ.js → InputComp-DCDGhaJT.js} +3 -3
- package/dist/{LoadRoute-BGVBAxhb.js → LoadRoute-B-ucolY6.js} +4 -4
- package/dist/{QuotesProgress-CgWgbeu0.js → QuotesProgress-EZC3xwYB.js} +1 -1
- package/dist/{SwapAsset-BVoK7nAu.js → SwapAsset-CNazqxYR.js} +1 -1
- package/dist/{Tooltip-DVfEhMx1.js → Tooltip-D7QeDqgH.js} +3 -3
- package/dist/{TxnButton-BtpZDByd.js → TxnButton-9ZUQVjdz.js} +17 -17
- package/dist/{add-D8tavKpb.js → add-23Nwo5A8.js} +1 -1
- package/dist/{all-wallets-Df7gtI38.js → all-wallets-DiFOI6HS.js} +1 -1
- package/dist/{app-store-DHMmV5al.js → app-store-w1nUkgkL.js} +1 -1
- package/dist/{apple-DY6mmw2j.js → apple-Co-m8EPY.js} +1 -1
- package/dist/{arrow-bottom-ZcLjGjzC.js → arrow-bottom-BF7wja3J.js} +1 -1
- package/dist/{arrow-bottom-circle-di4oN5GV.js → arrow-bottom-circle-BBMgG_vt.js} +1 -1
- package/dist/{arrow-left-y_8ecK6O.js → arrow-left-BvHzvUG_.js} +1 -1
- package/dist/{arrow-right-aFcFt9b6.js → arrow-right-DmXyPg2s.js} +1 -1
- package/dist/{arrow-top-DjVB8avr.js → arrow-top-BlkepDgh.js} +1 -1
- package/dist/{bank-De34wPmA.js → bank-CU0Tahpo.js} +1 -1
- package/dist/{basic-BZK6hpwj.js → basic-DWGPNvta.js} +3 -3
- package/dist/{browser-B9nWt4wI.js → browser-0QXL2NJ5.js} +1 -1
- package/dist/{card-DZaQQmTr.js → card-CBuxFZes.js} +1 -1
- package/dist/{ccip-CO9Rm2h9.js → ccip-BZXPPms9.js} +36 -36
- package/dist/{checkmark-CvLbEk_j.js → checkmark-BBEAGrxW.js} +1 -1
- package/dist/{checkmark-bold-CaWodPMr.js → checkmark-bold-g-5CBFG8.js} +1 -1
- package/dist/{chevron-bottom-DK4Rw9LA.js → chevron-bottom-BP0qV5E9.js} +1 -1
- package/dist/{chevron-left-B4xHFi5Z.js → chevron-left-B489iib5.js} +1 -1
- package/dist/{chevron-right-Cq43pxjs.js → chevron-right-BD_vMkXl.js} +1 -1
- package/dist/{chevron-top-DA1gRFsR.js → chevron-top-9pD5kwQn.js} +1 -1
- package/dist/{chrome-store-D052gehU.js → chrome-store-KXbEU92e.js} +1 -1
- package/dist/{clock-tZ8nY0kJ.js → clock-BvjtV2wN.js} +1 -1
- package/dist/{close-BwbrkMPc.js → close-CVYDYZSm.js} +1 -1
- package/dist/{coinPlaceholder-Bx9L2SON.js → coinPlaceholder-DvRqllH7.js} +1 -1
- package/dist/{compass-CC6wRzT3.js → compass-C0rx0T1o.js} +1 -1
- package/dist/{copy-B8Hn2UtJ.js → copy-BCyJuJTd.js} +1 -1
- package/dist/{core-BLtltj4H.js → core-CmFLR_u6.js} +3 -3
- package/dist/{cursor-CnQuzo_b.js → cursor-DQIhoY_2.js} +1 -1
- package/dist/{cursor-transparent-CgaK5Z_A.js → cursor-transparent-CCddZ-uf.js} +1 -1
- package/dist/{desktop-DHrY3k4Z.js → desktop-WkrvV2Ke.js} +1 -1
- package/dist/{disconnect-CnNRq4hM.js → disconnect-BY01W9dx.js} +1 -1
- package/dist/{discord-b293e6US.js → discord-BiqVqdS-.js} +1 -1
- package/dist/{down-BOUpeX6t.js → down-ByUSCi0G.js} +2 -2
- package/dist/{etherscan-dMroSccn.js → etherscan-Bf07jKyE.js} +1 -1
- package/dist/{exclamation-triangle-B8MrpVYv.js → exclamation-triangle-DhBDuh7X.js} +1 -1
- package/dist/{extension-CMS5H6iC.js → extension-BuGkzn7p.js} +1 -1
- package/dist/{external-link-ltFMCISM.js → external-link-Btp_KraR.js} +1 -1
- package/dist/{facebook-DoPfeLsd.js → facebook-CoUssMs4.js} +1 -1
- package/dist/{farcaster-C3Zz9rJy.js → farcaster-Ctf08qbm.js} +1 -1
- package/dist/{filters-B9nmsaYb.js → filters-Cj-IA9DT.js} +1 -1
- package/dist/{getChainIds-BLyimn3Z.js → getChainIds-D_hM9ke4.js} +2 -2
- package/dist/{getCosmosAddress-CIl22g8q.js → getCosmosAddress-BAIoAQnF.js} +35 -34
- package/dist/{github-B1nW11yu.js → github-BPOuu2xQ.js} +1 -1
- package/dist/{google-DBkdYWG9.js → google-Bx_zaB37.js} +1 -1
- package/dist/{hamburger-B6nbTVuh.js → hamburger-Dy2seiIA.js} +5 -5
- package/dist/{help-circle-D9DpdDYS.js → help-circle-DV4QKIA3.js} +1 -1
- package/dist/{id-Bz6xS0Hu.js → id-EXVikcWp.js} +1 -1
- package/dist/{image-j1cVOKPz.js → image-nfIsLI4T.js} +1 -1
- package/dist/{index-Cqy6ASLx.js → index-BJSeeYVQ.js} +11395 -11017
- package/dist/{index-DbKtesjt.js → index-BMC5VoeA.js} +5 -5
- package/dist/{index-QKKFxYzD.js → index-BVHn0jFU.js} +1 -1
- package/dist/{index-CD8PApRB.js → index-BXe-HkXC.js} +4 -4
- package/dist/{index-B1Rtne6G.js → index-BnBM5MgH.js} +10 -10
- package/dist/{index-4iEoKicH.js → index-Bs1n4ned.js} +78 -78
- package/dist/{index-Cn8K0_ow.js → index-CjDFHmMv.js} +353 -353
- package/dist/{index-BJfSS3AI.js → index-Cx-vqro8.js} +1 -1
- package/dist/{index-6Lc-biuC.js → index-DJoRzab4.js} +2 -2
- package/dist/{index-DZk0qqwc.js → index-DXA_xg2E.js} +11 -11
- package/dist/{index-rmIsx2tg.js → index-IotKLc1_.js} +4 -4
- package/dist/{index.es-Cg_UWsHO.js → index.es-DLuz6e-D.js} +1 -1
- package/dist/{index.es-B-GRkPuP.js → index.es-Dt5FH0Ap.js} +2 -2
- package/dist/index.es.js +1 -1
- package/dist/{info-B7BMJWCi.js → info-DZYD2fvm.js} +1 -1
- package/dist/{info-circle-B5W8cTtG.js → info-circle-5HB4Q4MZ.js} +1 -1
- package/dist/{lightbulb-CE14nhS1.js → lightbulb-CshRIZY7.js} +1 -1
- package/dist/{mail-CJgub_7v.js → mail-Ch7Ebiit.js} +1 -1
- package/dist/{mobile-CUrcSUMy.js → mobile-CAeTU6tr.js} +1 -1
- package/dist/{more-DSoe0EFM.js → more-BsHPeB5n.js} +1 -1
- package/dist/{network-placeholder-D4TgWI9S.js → network-placeholder-DHclED9Q.js} +1 -1
- package/dist/{nftPlaceholder-B_aw8_Wa.js → nftPlaceholder-Wjip4MgI.js} +1 -1
- package/dist/{off-CXuNjJC_.js → off-CIbw4jfP.js} +1 -1
- package/dist/{play-store-whdM-RiO.js → play-store-BIDEAlh2.js} +1 -1
- package/dist/{plus-BCb00oWI.js → plus-C08SpYCp.js} +1 -1
- package/dist/{qr-code-CrZz31cn.js → qr-code-CfOTRof1.js} +1 -1
- package/dist/{recycle-horizontal-zVHv8VqG.js → recycle-horizontal-BYxDWEs9.js} +1 -1
- package/dist/{refresh-Dh1P9Prg.js → refresh-Bz2AGVgQ.js} +1 -1
- package/dist/{reown-logo-C1t7kKk0.js → reown-logo-DU11tKza.js} +1 -1
- package/dist/{search-DOosY3rw.js → search-wXflIMv8.js} +1 -1
- package/dist/secp256k1-D_VWk6qp.js +1303 -0
- package/dist/{send-HhG-w4ZB.js → send-Nh_tNwTt.js} +1 -1
- package/dist/{swapHorizontal-KGUWv5cL.js → swapHorizontal-DmYNJG53.js} +1 -1
- package/dist/{swapHorizontalBold-h7O8UH84.js → swapHorizontalBold-B-SagdbK.js} +1 -1
- package/dist/{swapHorizontalMedium-6rfLNFIU.js → swapHorizontalMedium-C0hqxE74.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-DtsDbrRu.js → swapHorizontalRoundedBold-sNND0Ffb.js} +1 -1
- package/dist/{swapVertical-DWQX47SW.js → swapVertical-CsML4n98.js} +1 -1
- package/dist/{telegram-s85knZXn.js → telegram-JI6LasJU.js} +1 -1
- package/dist/{three-dots-BnNggSxh.js → three-dots-Dj2KvXp3.js} +1 -1
- package/dist/{twitch-Cc4biVtc.js → twitch-C5wHdMKV.js} +1 -1
- package/dist/{twitterIcon-DjxAFgXk.js → twitterIcon-DGDl3C3X.js} +1 -1
- package/dist/{unsupportedProp-B5CECy4t.js → unsupportedProp-LjOKYKHc.js} +1 -1
- package/dist/{useRegisterError-CJtHIXKC.js → useRegisterError-sxww7XOx.js} +1 -1
- package/dist/{verify-BsgbVmZv.js → verify-CrG0hACy.js} +1 -1
- package/dist/{verify-filled-Di1kuO0I.js → verify-filled-DtQA8g5a.js} +1 -1
- package/dist/{w3m-modal-DM2lvo7c.js → w3m-modal-C8-5zdce.js} +2 -2
- package/dist/{wallet-DdVEdNX4.js → wallet-CohD7fpy.js} +1 -1
- package/dist/{wallet-placeholder-DSK1ksLi.js → wallet-placeholder-BwjXx8Uc.js} +1 -1
- package/dist/{walletconnect-DovW9Vek.js → walletconnect-CM8ctaqc.js} +1 -1
- package/dist/{warning-circle-CLU5deRK.js → warning-circle-CG2nFPj9.js} +1 -1
- package/dist/{x-D9PVdKpY.js → x-DVrAVXDZ.js} +1 -1
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as D from "react";
|
|
2
2
|
import kt from "react";
|
|
3
|
-
import { p as
|
|
3
|
+
import { p as J, P as i, aD as St, n as Bt, g as Wt, b as Lt, _ as Te, d as z, h as Nt, i as Ht, s as Vt } from "./index-BJSeeYVQ.js";
|
|
4
4
|
import { jsx as de } from "react/jsx-runtime";
|
|
5
|
-
import { o as et, P as It, b as Se, a as tt, m as Ut, r as mt, h as qt, H as Ee, T as Ft, q as _t, j as Xt, n as zt, t as rt, v as Yt, w as Gt } from "./useRegisterError-
|
|
5
|
+
import { o as et, P as It, b as Se, a as tt, m as Ut, r as mt, h as qt, H as Ee, T as Ft, q as _t, j as Xt, n as zt, t as rt, v as Yt, w as Gt } from "./useRegisterError-sxww7XOx.js";
|
|
6
6
|
let nt = 0;
|
|
7
|
-
function
|
|
7
|
+
function Jt(e) {
|
|
8
8
|
const [t, r] = D.useState(e), n = e || t;
|
|
9
9
|
return D.useEffect(() => {
|
|
10
10
|
t == null && (nt += 1, r(`mui-${nt}`));
|
|
@@ -16,7 +16,7 @@ function Rn(e) {
|
|
|
16
16
|
const t = ot();
|
|
17
17
|
return e ?? t;
|
|
18
18
|
}
|
|
19
|
-
return
|
|
19
|
+
return Jt(e);
|
|
20
20
|
}
|
|
21
21
|
function Tn({
|
|
22
22
|
controlled: e,
|
|
@@ -27,7 +27,7 @@ function Tn({
|
|
|
27
27
|
const {
|
|
28
28
|
current: o
|
|
29
29
|
} = D.useRef(e !== void 0), [f, p] = D.useState(t), s = o ? e : f;
|
|
30
|
-
if (
|
|
30
|
+
if (J.env.NODE_ENV !== "production") {
|
|
31
31
|
D.useEffect(() => {
|
|
32
32
|
}, [n, r, e]);
|
|
33
33
|
const {
|
|
@@ -42,10 +42,10 @@ function Tn({
|
|
|
42
42
|
}, []);
|
|
43
43
|
return [s, a];
|
|
44
44
|
}
|
|
45
|
-
const
|
|
46
|
-
|
|
45
|
+
const Kt = /* @__PURE__ */ D.createContext();
|
|
46
|
+
J.env.NODE_ENV !== "production" && (i.node, i.bool);
|
|
47
47
|
const jn = () => {
|
|
48
|
-
const e = D.useContext(
|
|
48
|
+
const e = D.useContext(Kt);
|
|
49
49
|
return e ?? !1;
|
|
50
50
|
};
|
|
51
51
|
var pe = {}, it;
|
|
@@ -216,7 +216,7 @@ function Y(e) {
|
|
|
216
216
|
function hr(e) {
|
|
217
217
|
return ["table", "td", "th"].indexOf(X(e)) >= 0;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function K(e) {
|
|
220
220
|
return ((te(e) ? e.ownerDocument : (
|
|
221
221
|
// $FlowFixMe[prop-missing]
|
|
222
222
|
e.document
|
|
@@ -231,7 +231,7 @@ function je(e) {
|
|
|
231
231
|
e.parentNode || // DOM Element detected
|
|
232
232
|
(He(e) ? e.host : null) || // ShadowRoot detected
|
|
233
233
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
234
|
-
|
|
234
|
+
K(e)
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
237
|
function st(e) {
|
|
@@ -338,7 +338,7 @@ function ft(e) {
|
|
|
338
338
|
var E = p.hasOwnProperty("x"), T = p.hasOwnProperty("y"), w = N, u = L, h = window;
|
|
339
339
|
if (c) {
|
|
340
340
|
var b = ge(r), x = "clientHeight", C = "clientWidth";
|
|
341
|
-
if (b === H(r) && (b =
|
|
341
|
+
if (b === H(r) && (b = K(r), Y(b).position !== "static" && s === "absolute" && (x = "scrollHeight", C = "scrollWidth")), b = b, o === L || (o === N || o === U) && f === ve) {
|
|
342
342
|
u = I;
|
|
343
343
|
var P = d && b === h && h.visualViewport ? h.visualViewport.height : (
|
|
344
344
|
// $FlowFixMe[prop-missing]
|
|
@@ -450,10 +450,10 @@ function Ue(e) {
|
|
|
450
450
|
};
|
|
451
451
|
}
|
|
452
452
|
function qe(e) {
|
|
453
|
-
return ie(
|
|
453
|
+
return ie(K(e)).left + Ue(e).scrollLeft;
|
|
454
454
|
}
|
|
455
455
|
function $r(e, t) {
|
|
456
|
-
var r = H(e), n =
|
|
456
|
+
var r = H(e), n = K(e), o = r.visualViewport, f = n.clientWidth, p = n.clientHeight, s = 0, a = 0;
|
|
457
457
|
if (o) {
|
|
458
458
|
f = o.width, p = o.height;
|
|
459
459
|
var c = yt();
|
|
@@ -467,7 +467,7 @@ function $r(e, t) {
|
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
469
|
function Mr(e) {
|
|
470
|
-
var t, r =
|
|
470
|
+
var t, r = K(e), n = Ue(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, f = ee(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), p = ee(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), s = -n.scrollLeft + qe(e), a = -n.scrollTop;
|
|
471
471
|
return Y(o || r).direction === "rtl" && (s += ee(r.clientWidth, o ? o.clientWidth : 0) - f), {
|
|
472
472
|
width: f,
|
|
473
473
|
height: p,
|
|
@@ -504,7 +504,7 @@ function kr(e, t) {
|
|
|
504
504
|
return r.top = r.top + e.clientTop, r.left = r.left + e.clientLeft, r.bottom = r.top + e.clientHeight, r.right = r.left + e.clientWidth, r.width = e.clientWidth, r.height = e.clientHeight, r.x = r.left, r.y = r.top, r;
|
|
505
505
|
}
|
|
506
506
|
function lt(e, t, r) {
|
|
507
|
-
return t === ht ? We($r(e, r)) : te(t) ? kr(t, r) : We(Mr(
|
|
507
|
+
return t === ht ? We($r(e, r)) : te(t) ? kr(t, r) : We(Mr(K(e)));
|
|
508
508
|
}
|
|
509
509
|
function Sr(e) {
|
|
510
510
|
var t = ue(je(e)), r = ["absolute", "fixed"].indexOf(Y(e).position) >= 0, n = r && V(e) ? ge(e) : e;
|
|
@@ -568,7 +568,7 @@ function Pt(e) {
|
|
|
568
568
|
}
|
|
569
569
|
function me(e, t) {
|
|
570
570
|
t === void 0 && (t = {});
|
|
571
|
-
var r = t, n = r.placement, o = n === void 0 ? e.placement : n, f = r.strategy, p = f === void 0 ? e.strategy : f, s = r.boundary, a = s === void 0 ? tr : s, c = r.rootBoundary, l = c === void 0 ? ht : c, d = r.elementContext, g = d === void 0 ? le : d, m = r.altBoundary, O = m === void 0 ? !1 : m, v = r.padding, y = v === void 0 ? 0 : v, E = xt(typeof y != "number" ? y : Ot(y, he)), T = g === le ? rr : le, w = e.rects.popper, u = e.elements[O ? T : g], h = Br(te(u) ? u : u.contextElement ||
|
|
571
|
+
var r = t, n = r.placement, o = n === void 0 ? e.placement : n, f = r.strategy, p = f === void 0 ? e.strategy : f, s = r.boundary, a = s === void 0 ? tr : s, c = r.rootBoundary, l = c === void 0 ? ht : c, d = r.elementContext, g = d === void 0 ? le : d, m = r.altBoundary, O = m === void 0 ? !1 : m, v = r.padding, y = v === void 0 ? 0 : v, E = xt(typeof y != "number" ? y : Ot(y, he)), T = g === le ? rr : le, w = e.rects.popper, u = e.elements[O ? T : g], h = Br(te(u) ? u : u.contextElement || K(e.elements.popper), a, l, p), b = ie(e.elements.reference), x = Pt({
|
|
572
572
|
reference: b,
|
|
573
573
|
element: w,
|
|
574
574
|
placement: o
|
|
@@ -780,7 +780,7 @@ function Yr(e) {
|
|
|
780
780
|
b[u] = Xe, W[u] = Xe - $;
|
|
781
781
|
}
|
|
782
782
|
if (s) {
|
|
783
|
-
var ze, $t = u === "x" ? L : N, Mt = u === "x" ? I : U, Z = b[h], we = h === "y" ? "height" : "width", Ye = Z + y[$t], Ge = Z - y[Mt], Me = [L, N].indexOf(E) !== -1,
|
|
783
|
+
var ze, $t = u === "x" ? L : N, Mt = u === "x" ? I : U, Z = b[h], we = h === "y" ? "height" : "width", Ye = Z + y[$t], Ge = Z - y[Mt], Me = [L, N].indexOf(E) !== -1, Je = (ze = M == null ? void 0 : M[h]) != null ? ze : 0, Ke = Me ? Ye : Z - x[we] - C[we] - Je + A.altAxis, Qe = Me ? Z + x[we] + C[we] - Je - A.altAxis : Ge, Ze = m && Me ? yr(Ke, Z, Qe) : ce(m ? Ke : Ye, Z, m ? Qe : Ge);
|
|
784
784
|
b[h] = Ze, W[h] = Ze - Z;
|
|
785
785
|
}
|
|
786
786
|
t.modifiersData[n] = W;
|
|
@@ -793,14 +793,14 @@ const Gr = {
|
|
|
793
793
|
fn: Yr,
|
|
794
794
|
requiresIfExists: ["offset"]
|
|
795
795
|
};
|
|
796
|
-
function
|
|
796
|
+
function Jr(e) {
|
|
797
797
|
return {
|
|
798
798
|
scrollLeft: e.scrollLeft,
|
|
799
799
|
scrollTop: e.scrollTop
|
|
800
800
|
};
|
|
801
801
|
}
|
|
802
|
-
function
|
|
803
|
-
return e === H(e) || !V(e) ? Ue(e) :
|
|
802
|
+
function Kr(e) {
|
|
803
|
+
return e === H(e) || !V(e) ? Ue(e) : Jr(e);
|
|
804
804
|
}
|
|
805
805
|
function Qr(e) {
|
|
806
806
|
var t = e.getBoundingClientRect(), r = oe(t.width) / e.offsetWidth || 1, n = oe(t.height) / e.offsetHeight || 1;
|
|
@@ -808,7 +808,7 @@ function Qr(e) {
|
|
|
808
808
|
}
|
|
809
809
|
function Zr(e, t, r) {
|
|
810
810
|
r === void 0 && (r = !1);
|
|
811
|
-
var n = V(t), o = V(t) && Qr(t), f =
|
|
811
|
+
var n = V(t), o = V(t) && Qr(t), f = K(t), p = ie(e, o, r), s = {
|
|
812
812
|
scrollLeft: 0,
|
|
813
813
|
scrollTop: 0
|
|
814
814
|
}, a = {
|
|
@@ -816,7 +816,7 @@ function Zr(e, t, r) {
|
|
|
816
816
|
y: 0
|
|
817
817
|
};
|
|
818
818
|
return (n || !n && !r) && ((X(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
819
|
-
Fe(f)) && (s =
|
|
819
|
+
Fe(f)) && (s = Kr(t)), V(t) ? (a = ie(t, !0), a.x += t.clientLeft, a.y += t.clientTop) : f && (a.x = qe(f))), {
|
|
820
820
|
x: p.left + s.scrollLeft - a.x,
|
|
821
821
|
y: p.top + s.scrollTop - a.y,
|
|
822
822
|
width: p.width,
|
|
@@ -1055,9 +1055,9 @@ const dn = (e) => {
|
|
|
1055
1055
|
const R = (S) => {
|
|
1056
1056
|
C(S.placement);
|
|
1057
1057
|
};
|
|
1058
|
-
if (
|
|
1058
|
+
if (J.env.NODE_ENV !== "production" && P && Ae(P) && P.nodeType === 1) {
|
|
1059
1059
|
const S = P.getBoundingClientRect();
|
|
1060
|
-
|
|
1060
|
+
J.env.NODE_ENV !== "test" && S.top === 0 && S.left === 0 && S.right === 0 && S.bottom;
|
|
1061
1061
|
}
|
|
1062
1062
|
let j = [{
|
|
1063
1063
|
name: "preventOverflow",
|
|
@@ -1172,7 +1172,7 @@ const dn = (e) => {
|
|
|
1172
1172
|
}))
|
|
1173
1173
|
});
|
|
1174
1174
|
});
|
|
1175
|
-
|
|
1175
|
+
J.env.NODE_ENV !== "production" && (Rt.propTypes = {
|
|
1176
1176
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1177
1177
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1178
1178
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -1188,7 +1188,7 @@ K.env.NODE_ENV !== "production" && (Rt.propTypes = {
|
|
|
1188
1188
|
const t = Re(e.anchorEl);
|
|
1189
1189
|
if (t && Ae(t) && t.nodeType === 1) {
|
|
1190
1190
|
const r = t.getBoundingClientRect();
|
|
1191
|
-
if (
|
|
1191
|
+
if (J.env.NODE_ENV !== "test" && r.top === 0 && r.left === 0 && r.right === 0 && r.bottom === 0)
|
|
1192
1192
|
return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
|
|
1193
1193
|
`));
|
|
1194
1194
|
} else if (!t || typeof t.getBoundingClientRect != "function" || un(t) && t.contextElement != null && t.contextElement.nodeType !== 1)
|
|
@@ -1341,7 +1341,7 @@ const hn = ["anchorEl", "component", "components", "componentsProps", "container
|
|
|
1341
1341
|
ref: r
|
|
1342
1342
|
}));
|
|
1343
1343
|
});
|
|
1344
|
-
|
|
1344
|
+
J.env.NODE_ENV !== "production" && (yn.propTypes = {
|
|
1345
1345
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1346
1346
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1347
1347
|
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
|
@@ -1572,7 +1572,7 @@ const wn = {
|
|
|
1572
1572
|
}, j))
|
|
1573
1573
|
}));
|
|
1574
1574
|
});
|
|
1575
|
-
|
|
1575
|
+
J.env.NODE_ENV !== "production" && (Tt.propTypes = {
|
|
1576
1576
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
1577
1577
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
1578
1578
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as b, jsx as t, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { u as n, S as W } from "./index-
|
|
2
|
+
import { u as n, S as W } from "./index-BJSeeYVQ.js";
|
|
3
3
|
import { useState as S, useRef as x } from "react";
|
|
4
|
-
import { u as j, i as I, W as D, F, f as p, c as u, z as R } from "./useRegisterError-
|
|
4
|
+
import { u as j, i as I, W as D, F, f as p, c as u, z as R } from "./useRegisterError-sxww7XOx.js";
|
|
5
5
|
import { useAccount as T, useBalance as A } from "wagmi";
|
|
6
6
|
import "@dynamic-labs/sdk-react-core";
|
|
7
|
-
import { c as B, r as G } from "./index-
|
|
7
|
+
import { c as B, r as G } from "./index-CjDFHmMv.js";
|
|
8
8
|
function H({ amount: w, setAmount: l, fetchBalance: M, getCoinBalance: h, isBalanceLoading: f }) {
|
|
9
9
|
var d, o;
|
|
10
10
|
const s = n((a) => a.configuration), e = n((a) => a.fromCoin), r = n((a) => a.fromChain), { isAnyWalletConnected: g } = j({ chainData: r }), [$, z] = S(40), { address: N } = T(), v = x(), { defaultCoin: y } = I;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t, Fragment as m } from "react/jsx-runtime";
|
|
2
2
|
import { t as te } from "./truncate-D9t92mVX.js";
|
|
3
|
-
import { u as r, S as o, l as we } from "./index-
|
|
3
|
+
import { u as r, S as o, l as we } from "./index-BJSeeYVQ.js";
|
|
4
4
|
import { useState as ie, useEffect as le } from "react";
|
|
5
5
|
import { s as a } from "./WidgetForm.module-QHJ0-m5f.js";
|
|
6
6
|
import { G as ce, C as de, S as me } from "./clockIcon-C2W5xvyt.js";
|
|
7
|
-
import { S as re } from "./down-
|
|
7
|
+
import { S as re } from "./down-ByUSCi0G.js";
|
|
8
8
|
import { e as se } from "./ethertousd-CC_ezooz.js";
|
|
9
|
-
import { O as H } from "./index-
|
|
10
|
-
import { F as J, i as ae } from "./useRegisterError-
|
|
9
|
+
import { O as H } from "./index-BVHn0jFU.js";
|
|
10
|
+
import { F as J, i as ae } from "./useRegisterError-sxww7XOx.js";
|
|
11
11
|
function oe({ fill: n }) {
|
|
12
12
|
return /* @__PURE__ */ e(
|
|
13
13
|
"svg",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as o, jsx as a, Fragment as m } from "react/jsx-runtime";
|
|
2
2
|
import { s as l } from "./WidgetForm.module-QHJ0-m5f.js";
|
|
3
|
-
import { u as g } from "./index-
|
|
3
|
+
import { u as g } from "./index-BJSeeYVQ.js";
|
|
4
4
|
function y({ routesData: x, routes: e, quoteTimer: n, amount: c }) {
|
|
5
5
|
var s, b, d, w;
|
|
6
6
|
const r = g((i) => i.configuration), t = g((i) => i.gradient);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as go, g as To, i as yo, _ as vo, p as B, d as n, e as D, s as Q, f as Ve, h as Po, j as ze, P as e } from "./index-
|
|
1
|
+
import { b as go, g as To, i as yo, _ as vo, p as B, d as n, e as D, s as Q, f as Ve, h as Po, j as ze, P as e } from "./index-BJSeeYVQ.js";
|
|
2
2
|
import * as p from "react";
|
|
3
|
-
import { G as Be, b as wo, u as Ro, a as Co, P as He } from "./Grow-
|
|
3
|
+
import { G as Be, b as wo, u as Ro, a as Co, P as He } from "./Grow-Bi86flJS.js";
|
|
4
4
|
import { jsx as j, jsxs as Se } from "react/jsx-runtime";
|
|
5
|
-
import { j as xo, q as I, l as Ue, s as Oo, b as Eo, n as Mo, D as A, E as _o, w as No } from "./useRegisterError-
|
|
5
|
+
import { j as xo, q as I, l as Ue, s as Oo, b as Eo, n as Mo, D as A, E as _o, w as No } from "./useRegisterError-sxww7XOx.js";
|
|
6
6
|
function Lo(r) {
|
|
7
7
|
return To("MuiTooltip", r);
|
|
8
8
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as G } from "react/jsx-runtime";
|
|
2
2
|
import { useState as v, useEffect as z } from "react";
|
|
3
3
|
import { useDynamicContext as xe, useSwitchNetwork as Me, useIsLoggedIn as Oe } from "@dynamic-labs/sdk-react-core";
|
|
4
|
-
import { a as _, u as h,
|
|
4
|
+
import { a as _, u as h, at as Re, au as pe } from "./index-BJSeeYVQ.js";
|
|
5
5
|
import { s as S } from "./WidgetForm.module-QHJ0-m5f.js";
|
|
6
6
|
import { useAccount as Ve, useConfig as qe, useSwitchChain as Pe, useBalance as _e } from "wagmi";
|
|
7
|
-
import { u as ge, d as Qe, c as He, C as ye } from "./useRegisterError-
|
|
7
|
+
import { u as ge, d as Qe, c as He, C as ye } from "./useRegisterError-sxww7XOx.js";
|
|
8
8
|
import { v as Je } from "./validError-CDlJpg_f.js";
|
|
9
|
-
import { u as Ke, g as Ue, p as Xe } from "./index-
|
|
9
|
+
import { u as Ke, g as Ue, p as Xe } from "./index-CjDFHmMv.js";
|
|
10
10
|
function Ye(n) {
|
|
11
|
-
const { wallet: u, address: l } = _(), [N,
|
|
11
|
+
const { wallet: u, address: l } = _(), [N, f] = v(0);
|
|
12
12
|
async function x() {
|
|
13
13
|
const F = await window.tronWeb.trx.getBalance(l);
|
|
14
|
-
|
|
14
|
+
f(F / Math.pow(10, 6));
|
|
15
15
|
}
|
|
16
16
|
return z(() => {
|
|
17
17
|
l && (n == null ? void 0 : n.networkType) === "tron" && x();
|
|
@@ -23,19 +23,19 @@ function A(n) {
|
|
|
23
23
|
}
|
|
24
24
|
function Ze() {
|
|
25
25
|
const [n, u] = v(0), l = h((x) => x.fromChain), { primaryWallet: N } = xe();
|
|
26
|
-
async function
|
|
26
|
+
async function f() {
|
|
27
27
|
let x = await N.getBalance();
|
|
28
28
|
u(Number(x) || 0);
|
|
29
29
|
}
|
|
30
30
|
return z(() => {
|
|
31
|
-
(l.networkType === "btc" || l.networkType === "sui") &&
|
|
31
|
+
(l.networkType === "btc" || l.networkType === "sui") && f();
|
|
32
32
|
}, [l.networkType, N]), n;
|
|
33
33
|
}
|
|
34
|
-
function lt({ routesData: n, routes: u, amount: l, isAmountTyped: N, handleShowWallet:
|
|
34
|
+
function lt({ routesData: n, routes: u, amount: l, isAmountTyped: N, handleShowWallet: f, setConnectWalletField: x, handleConfirmClose: F, balanceSol: L, getCoinBalance: Te, handleSuccess: Q }) {
|
|
35
35
|
var C, ee, te, se, re, ce, ne, ie, de, ae, le, oe, we;
|
|
36
36
|
const w = h((s) => s.gradient), I = h((s) => s.configuration), e = h((s) => s.fromChain), i = h((s) => s.fromCoin), r = h((s) => s.toChain), b = h((s) => s.toCoin), { isConnected: j, address: H, chain: m } = Ve(), { address: J, isConnected: We } = _(), Ie = qe(), me = Me(), { getBothWalletConnection: he, getConnectWallet: Ne } = ge({
|
|
37
37
|
chainData: e
|
|
38
|
-
}), { connected: K, address: U, disconnect: De } = _(), M = h((s) => s.toDisconnect), d = h((s) => s.customWallet), { getWallet:
|
|
38
|
+
}), { connected: K, address: U, disconnect: De } = _(), M = h((s) => s.toDisconnect), d = h((s) => s.customWallet), { getWallet: fe } = ge({ chainData: e }), Be = Ne(e, r), [O, Ge] = v("101"), { tronBal: R } = Ye(e), { cosmosBalance: X } = Ke(), Y = Ze(), V = ((C = e.chain) == null ? void 0 : C.length) && ((ee = r.chain) == null ? void 0 : ee.length), q = ((te = i.address) == null ? void 0 : te.length) && ((se = b.address) == null ? void 0 : se.length), Se = Qe(), Z = Re(), { switchChain: ke, switchChainAsync: $e, isPending: Ee } = Pe({
|
|
39
39
|
chainId: Number((e == null ? void 0 : e.chainId) || "0"),
|
|
40
40
|
config: Ie,
|
|
41
41
|
throwForSwitchChainNotSupported: !0,
|
|
@@ -66,11 +66,11 @@ function lt({ routesData: n, routes: u, amount: l, isAmountTyped: N, handleShowW
|
|
|
66
66
|
}
|
|
67
67
|
else (e == null ? void 0 : e.networkType) === "sui" ? (Z.emit(pe.TransactionStarted, {
|
|
68
68
|
...n
|
|
69
|
-
}),
|
|
69
|
+
}), B && (Q(!1), F())) : (Z.emit(pe.TransactionStarted, {
|
|
70
70
|
...n
|
|
71
|
-
}),
|
|
71
|
+
}), B && (Q(!1), F()));
|
|
72
72
|
}
|
|
73
|
-
const { primaryWallet: p } = xe(), P = Oe(),
|
|
73
|
+
const { primaryWallet: p } = xe(), P = Oe(), B = (e == null ? void 0 : e.networkType) === r.networkType ? !!((ce = (re = fe(e)) == null ? void 0 : re.address) != null && ce.length) : he(e == null ? void 0 : e.networkType, (d == null ? void 0 : d.length) > 30 ? "customWallet" : r == null ? void 0 : r.networkType), D = async () => {
|
|
74
74
|
if (p)
|
|
75
75
|
try {
|
|
76
76
|
const s = await p.getNetwork();
|
|
@@ -156,7 +156,7 @@ function lt({ routesData: n, routes: u, amount: l, isAmountTyped: N, handleShowW
|
|
|
156
156
|
text: "Select Token",
|
|
157
157
|
isGradient: !0,
|
|
158
158
|
color: w || S.gradientbutton
|
|
159
|
-
}) :
|
|
159
|
+
}) : B ? typeof l < "u" && Number(l || 0) <= 0 ? a({
|
|
160
160
|
text: "Enter Amount",
|
|
161
161
|
isGradient: !1,
|
|
162
162
|
color: "bw-bg-border-primary"
|
|
@@ -193,11 +193,11 @@ function lt({ routesData: n, routes: u, amount: l, isAmountTyped: N, handleShowW
|
|
|
193
193
|
isGradient: !0,
|
|
194
194
|
color: w || S.gradientbutton
|
|
195
195
|
});
|
|
196
|
-
}, [O, p, i, b, l, e, r, (ne = T.data) == null ? void 0 : ne.formatted, n, T.isFetching, T.isLoading, j, W,
|
|
196
|
+
}, [O, p, i, b, l, e, r, (ne = T.data) == null ? void 0 : ne.formatted, n, T.isFetching, T.isLoading, j, W, B, u.isFetching, m == null ? void 0 : m.id, N, R, L, d, Y, X, J]);
|
|
197
197
|
let ve = [`switch chain to ${(ie = e.chain) == null ? void 0 : ie.toLowerCase()}`, `select ${(de = e.chain) == null ? void 0 : de.toLowerCase()} wallet`, "connect custom wallet", "enter recipient wallet address"];
|
|
198
198
|
function ze() {
|
|
199
199
|
var s, g, y, E;
|
|
200
|
-
return
|
|
200
|
+
return B ? u.isFetching ? !0 : o.text.length ? !ve.includes((s = o.text) == null ? void 0 : s.toLowerCase()) : !((E = (y = (g = u.data) == null ? void 0 : g.data) == null ? void 0 : y.quotes) != null && E.length) : !1;
|
|
201
201
|
}
|
|
202
202
|
return /* @__PURE__ */ G(
|
|
203
203
|
"button",
|
|
@@ -211,9 +211,9 @@ function lt({ routesData: n, routes: u, amount: l, isAmountTyped: N, handleShowW
|
|
|
211
211
|
},
|
|
212
212
|
className: `bw-w-full bw-rounded-sm bw-h-[52px] ${o != null && o.isGradient ? "bw-p-[3px]" : "bw-p-[1px]"} bw-mt-3 bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-70 ${V && q && o.color} ${o.text.length > 29 ? "bw-text-xl" : "bw-text-2xl"} ${o != null && o.isGradient ? "bw-font-bold bw-text-text-primary" : "bw-font-normal bw-text-text-secondary"}`,
|
|
213
213
|
onClick: () => {
|
|
214
|
-
|
|
214
|
+
B || (f(!0), ((e == null ? void 0 : e.networkType) !== "evm" && j || (e == null ? void 0 : e.networkType) !== "sol" && P && p !== null || (e == null ? void 0 : e.networkType) !== "tron" && K && U) && !M ? x("from") : j && (r == null ? void 0 : r.networkType) !== "evm" || P && (r == null ? void 0 : r.networkType) !== "sol" || (r == null ? void 0 : r.networkType) !== "tron" && K && U || M ? x("to") : x("from")), e.chainId === "eclipse-svm" && !A(p) ? (f(!0), x("from")) : r.chainId === "eclipse-svm" && e.chainId !== "eclipse-svm" && !A(p) && d.length < 30 ? (f(!0), x("to")) : Fe();
|
|
215
215
|
},
|
|
216
|
-
children: /* @__PURE__ */ G("div", { className: "bw-rounded-sm bw-bg-background-container bw-flex bw-items-center bw-justify-center b-w-full bw-h-full", children: /* @__PURE__ */ G("p", { className: "bw-relative bw-z-20", children: V && q ? Ee ? /* @__PURE__ */ G("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ G(ye, { size: 22, thickness: 5, color: "inherit" }) }) :
|
|
216
|
+
children: /* @__PURE__ */ G("div", { className: "bw-rounded-sm bw-bg-background-container bw-flex bw-items-center bw-justify-center b-w-full bw-h-full", children: /* @__PURE__ */ G("p", { className: "bw-relative bw-z-20", children: V && q ? Ee ? /* @__PURE__ */ G("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ G(ye, { size: 22, thickness: 5, color: "inherit" }) }) : B ? o.text.length ? o.text : "Start Transaction" : `Connect ${Be} Wallet` : /* @__PURE__ */ G("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ G(ye, { size: 22, thickness: 5, color: "inherit" }) }) }) })
|
|
217
217
|
}
|
|
218
218
|
);
|
|
219
219
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as D, e as G, r as q, a as A, x as c, C as U, A as M, O as tt, b as z, E as et, R as O, c as Ut, d as K, f as N, S as pe, g as Cn, W as fe, h as Ze, j as vi, T as ti, k as Xt, M as on, l as rn, m as Dt, n as yi, o as $n } from "./core-
|
|
2
|
-
import { n as u, c as B, o as W, r as E, U as ht, e as Rn, f as En, a as In } from "./index-
|
|
3
|
-
import { n as Wn } from "./index-
|
|
1
|
+
import { i as D, e as G, r as q, a as A, x as c, C as U, A as M, O as tt, b as z, E as et, R as O, c as Ut, d as K, f as N, S as pe, g as Cn, W as fe, h as Ze, j as vi, T as ti, k as Xt, M as on, l as rn, m as Dt, n as yi, o as $n } from "./core-CmFLR_u6.js";
|
|
2
|
+
import { n as u, c as B, o as W, r as E, U as ht, e as Rn, f as En, a as In } from "./index-Bs1n4ned.js";
|
|
3
|
+
import { n as Wn } from "./index-BJSeeYVQ.js";
|
|
4
4
|
const Sn = D`
|
|
5
5
|
:host {
|
|
6
6
|
position: relative;
|