@blockend/widget 1.0.60-beta.1 → 1.0.61-beta.1
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/AdvancedSettings-BSHVKOx8.js +60 -0
- package/dist/{AllRoutes-B-tqwmhZ.js → AllRoutes-3rJ_6MZA.js} +9 -9
- package/dist/{Box-B9dKcT71.js → Box-k1E75YNB.js} +14 -14
- package/dist/EstGas-NmdlnuTV.js +1688 -0
- package/dist/{Grow-DGNIagcL.js → Grow-DHSmig3g.js} +28 -28
- package/dist/{InputComp-C0BYsYO2.js → InputComp-Q8pjLoPE.js} +3 -3
- package/dist/{LoadRoute-BejmZs2l.js → LoadRoute-C2z-mW9G.js} +4 -4
- package/dist/{QuotesProgress-DUtmb0H1.js → QuotesProgress-BD5CQpZ-.js} +1 -1
- package/dist/{SwapAsset-C6q38SfB.js → SwapAsset-Kx0ombNP.js} +1 -1
- package/dist/{Tooltip-B9eQU87E.js → Tooltip-Dx9YIENU.js} +3 -3
- package/dist/{TxnButton-B7erQoe9.js → TxnButton-CWOz7URH.js} +32 -33
- package/dist/{add-BDXnG29B.js → add-D_aca-vE.js} +1 -1
- package/dist/{all-wallets-A5aRDDSX.js → all-wallets-D4BSWfpK.js} +1 -1
- package/dist/{app-store-CRNlWthG.js → app-store-ST0Ravfg.js} +1 -1
- package/dist/{apple-Bk9AlpJi.js → apple-DaFtNkdI.js} +1 -1
- package/dist/{arrow-bottom-Wyw-Sjsd.js → arrow-bottom-CuRXWFcr.js} +1 -1
- package/dist/{arrow-bottom-circle-F5a-Pm5A.js → arrow-bottom-circle-xfTEwf8w.js} +1 -1
- package/dist/{arrow-left-xa8Yhbw7.js → arrow-left-Z346mTvE.js} +1 -1
- package/dist/{arrow-right-DHehfJb9.js → arrow-right-CUIO0t26.js} +1 -1
- package/dist/{arrow-top-Zr4NTjGQ.js → arrow-top-DmqPBsC5.js} +1 -1
- package/dist/{bank-hQuILOEh.js → bank-BO1ZejV3.js} +1 -1
- package/dist/{basic-DtnxLRWd.js → basic-P5IuMVWt.js} +3 -3
- package/dist/{browser-DdzWWRtF.js → browser-R_yTVBVl.js} +1 -1
- package/dist/{card-CgYBeEF3.js → card-CmQJzq49.js} +1 -1
- package/dist/{ccip-fwzPvAXp.js → ccip-Vdbs2YPx.js} +1 -1
- package/dist/{checkmark-CRSJVI7P.js → checkmark-BUj82mTz.js} +1 -1
- package/dist/{checkmark-bold-Chu-2qTS.js → checkmark-bold-4sXAvyEi.js} +1 -1
- package/dist/{chevron-bottom-CWuEnub2.js → chevron-bottom-BHRgOLsC.js} +1 -1
- package/dist/{chevron-left-h2_syVI8.js → chevron-left-eVq5zb9x.js} +1 -1
- package/dist/{chevron-right-Ct4j2Leu.js → chevron-right-BqbdhgX8.js} +1 -1
- package/dist/{chevron-top-DcBzaR2h.js → chevron-top-lFcz1Dk9.js} +1 -1
- package/dist/{chrome-store-CXn4JMj-.js → chrome-store-CJjs0q6Z.js} +1 -1
- package/dist/{clock-JZPADmeK.js → clock-LxWBSJ_V.js} +1 -1
- package/dist/{close-DtXi8BhO.js → close-CJEyeA8d.js} +1 -1
- package/dist/{coinPlaceholder-BK6alFNE.js → coinPlaceholder-A0px2L1V.js} +1 -1
- package/dist/{compass-DWhtsJev.js → compass-CKpEE3QF.js} +1 -1
- package/dist/{copy-D-MDSgUX.js → copy-BGAVbyLK.js} +1 -1
- package/dist/{core-BwKgmZsH.js → core-UMj0YuPY.js} +6124 -4570
- package/dist/{cursor-Dh3mFu9G.js → cursor-CdRK37lV.js} +1 -1
- package/dist/{cursor-transparent-NB0LxFUO.js → cursor-transparent-DCtZPn6M.js} +1 -1
- package/dist/{desktop-BgF9XEMs.js → desktop-BpmiexI7.js} +1 -1
- package/dist/{disconnect-Dq0GPLgW.js → disconnect-CmRL6rxR.js} +1 -1
- package/dist/{discord-Dx0EuHuU.js → discord-CgA8etyT.js} +1 -1
- package/dist/{down-D_76LJ5o.js → down-veMPztmj.js} +2 -2
- package/dist/{etherscan-CNIjXg_f.js → etherscan-B0Iz4J9k.js} +1 -1
- package/dist/{exclamation-triangle-Bhp8mAG7.js → exclamation-triangle-Box_8laE.js} +1 -1
- package/dist/{extension-BKqqIj7b.js → extension-CT5kynXr.js} +1 -1
- package/dist/{external-link-DbGPs34E.js → external-link-BmAqCUs9.js} +1 -1
- package/dist/{facebook-DRG1zLmw.js → facebook-CzlMPtlk.js} +1 -1
- package/dist/{farcaster-DDWwjMH9.js → farcaster-Z3KYAnFk.js} +1 -1
- package/dist/{filters-Bj10QvW6.js → filters-CVtviD0v.js} +1 -1
- package/dist/{getChainIds-eeGoWwbI.js → getChainIds-DDKgS0TA.js} +2 -2
- package/dist/{getCosmosAddress-DlgoXFw9.js → getCosmosAddress-D-BxI1sZ.js} +1589 -1574
- package/dist/{github-ZPlB-Utk.js → github-KjnPjzGN.js} +1 -1
- package/dist/{google-CCKsdggZ.js → google-CnyCazMS.js} +1 -1
- package/dist/{hamburger-DPe9Xfjf.js → hamburger-DkyOLKDt.js} +5 -5
- package/dist/{help-circle-IpogiYkd.js → help-circle-BoN3xTWx.js} +1 -1
- package/dist/{id--1TM5fr0.js → id-tq8aEw5U.js} +1 -1
- package/dist/{image-DUfvu2wM.js → image-DBC1q2_n.js} +1 -1
- package/dist/{index-Bb3Owdat.js → index-37soHOzC.js} +2 -2
- package/dist/{index-BAuHi89Z.js → index-B6Hd7MNh.js} +3111 -3034
- package/dist/{index-HXseE2Nv.js → index-BMJemt0T.js} +1 -1
- package/dist/{index-BEzLzd5e.js → index-BnfXeC9U.js} +11 -11
- package/dist/{index-C5XuDvkl.js → index-BrUFU9w4.js} +587 -578
- package/dist/{index-BqAYNgz8.js → index-C57ebjbd.js} +78 -78
- package/dist/index-CrdvyxIs.js +6713 -0
- package/dist/{index-BThpYFL-.js → index-Dq-7CifU.js} +332 -352
- package/dist/{index-DThyqr43.js → index-DwgdKTri.js} +1 -1
- package/dist/index-nbo2VFYc.js +206 -0
- package/dist/{index-CIxU6QQf.js → index-u8Ded5qw.js} +2604 -2625
- package/dist/index.es-CXA8FwxC.js +14904 -0
- package/dist/{index.es-D28h__ZD.js → index.es-CwOZPtUM.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{info-CRK9yM3q.js → info-B-ADkq2O.js} +1 -1
- package/dist/{info-circle-DroAdDav.js → info-circle-CzjFim13.js} +1 -1
- package/dist/{lightbulb-DGwzaoxs.js → lightbulb-BzGUazBJ.js} +1 -1
- package/dist/{mail-BQSCf__h.js → mail-CEB7w3xW.js} +1 -1
- package/dist/{mobile-4chCtN_4.js → mobile-D2As9Lxy.js} +1 -1
- package/dist/{more-uiMKzNjJ.js → more-B3qgSPHK.js} +1 -1
- package/dist/{network-placeholder-CVOcWHRh.js → network-placeholder-D3v1VNVd.js} +1 -1
- package/dist/{nftPlaceholder-CakfkypA.js → nftPlaceholder-7uzR-QgE.js} +1 -1
- package/dist/{off-CoYWNQqe.js → off-B5fhwDTB.js} +1 -1
- package/dist/{play-store-q5l7DaBe.js → play-store-fmnI2qeP.js} +1 -1
- package/dist/{plus-CR0bo3Ss.js → plus-BPrwB2BV.js} +1 -1
- package/dist/{qr-code-FNoqG2yJ.js → qr-code-DRh63vJj.js} +1 -1
- package/dist/{recycle-horizontal-BsU3dW8b.js → recycle-horizontal-DGw86E5g.js} +1 -1
- package/dist/{refresh-DyJzaQLK.js → refresh-Dg7iaYhB.js} +1 -1
- package/dist/{reown-logo-BFbpXVCB.js → reown-logo-tiOXXURu.js} +1 -1
- package/dist/{search-CoIHCx8n.js → search-eG23Hr6c.js} +1 -1
- package/dist/{send-CT0RLtYP.js → send-BOwE6eLM.js} +1 -1
- package/dist/{swapHorizontal-2UEy_VbL.js → swapHorizontal-ywv205Wi.js} +1 -1
- package/dist/{swapHorizontalBold-BwLgMdQd.js → swapHorizontalBold-CzmBehA5.js} +1 -1
- package/dist/{swapHorizontalMedium-Wwd3Subk.js → swapHorizontalMedium-BLbLZusS.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-CbSALTi8.js → swapHorizontalRoundedBold-N_SHWa3r.js} +1 -1
- package/dist/{swapVertical-B5GizA1j.js → swapVertical-EAZRQhGp.js} +1 -1
- package/dist/{telegram-BtJEmiFh.js → telegram-n36fCk1z.js} +1 -1
- package/dist/{three-dots-Bel3OYRL.js → three-dots-0tBgmH4A.js} +1 -1
- package/dist/{twitch-iJUsxLGs.js → twitch-BhZ8ahtd.js} +1 -1
- package/dist/{twitterIcon-5Bw6TNyI.js → twitterIcon-DfNmxt1B.js} +1 -1
- package/dist/{unsupportedProp-CtBHkzVs.js → unsupportedProp-D3sAzZYG.js} +1 -1
- package/dist/useRegisterError-Bo2lp0sa.js +8919 -0
- package/dist/{verify-9NPblyAz.js → verify-CWXFpftr.js} +1 -1
- package/dist/{verify-filled-BNVhfPkW.js → verify-filled-DP3y-Kx3.js} +1 -1
- package/dist/{w3m-modal-BoPsPieM.js → w3m-modal-CwwnoSKf.js} +2 -2
- package/dist/{wallet-DTIql0UA.js → wallet-pQYrlhSS.js} +1 -1
- package/dist/{wallet-placeholder-DXx_YU8N.js → wallet-placeholder-CFNKM5lP.js} +1 -1
- package/dist/{walletconnect-9eJmse3N.js → walletconnect-CAtjZJiV.js} +1 -1
- package/dist/{warning-circle-B3zxM-8-.js → warning-circle-BOE2EoE9.js} +1 -1
- package/dist/widget.css +1 -1
- package/dist/{x-EqjvjF0s.js → x-BqcRzM19.js} +1 -1
- package/package.json +2 -1
- package/dist/EstGas-ZNdT7ZNT.js +0 -20281
- package/dist/index-Ds5cL5Tm.js +0 -160
- package/dist/index-Wj3B2hZ5.js +0 -206
- package/dist/index.es-DhjmbcLt.js +0 -13234
- package/dist/useRegisterError-UVP98oC5.js +0 -8912
@@ -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 K, P as i, aK 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-B6Hd7MNh.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-Bo2lp0sa.js";
|
6
6
|
let nt = 0;
|
7
|
-
function
|
7
|
+
function Kt(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 Kt(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 (K.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 Jt = /* @__PURE__ */ D.createContext();
|
46
|
+
K.env.NODE_ENV !== "production" && (i.node, i.bool);
|
47
47
|
const jn = () => {
|
48
|
-
const e = D.useContext(
|
48
|
+
const e = D.useContext(Jt);
|
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 J(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
|
+
J(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 = J(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(J(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 = J(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 = J(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(J(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 || J(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, Ke = (ze = M == null ? void 0 : M[h]) != null ? ze : 0, Je = Me ? Ye : Z - x[we] - C[we] - Ke + A.altAxis, Qe = Me ? Z + x[we] + C[we] - Ke - A.altAxis : Ge, Ze = m && Me ? yr(Je, Z, Qe) : ce(m ? Je : 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 Kr(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 Jr(e) {
|
803
|
+
return e === H(e) || !V(e) ? Ue(e) : Kr(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 = J(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 = Jr(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 (K.env.NODE_ENV !== "production" && P && Ae(P) && P.nodeType === 1) {
|
1059
1059
|
const S = P.getBoundingClientRect();
|
1060
|
-
|
1060
|
+
K.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
|
+
K.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 @@ J.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 (K.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
|
+
K.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
|
+
K.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-B6Hd7MNh.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-Bo2lp0sa.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-Dq-7CifU.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-B6Hd7MNh.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-veMPztmj.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-DwgdKTri.js";
|
10
|
+
import { F as J, i as ae } from "./useRegisterError-Bo2lp0sa.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-B6Hd7MNh.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-B6Hd7MNh.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-DHSmig3g.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-Bo2lp0sa.js";
|
6
6
|
function Lo(r) {
|
7
7
|
return To("MuiTooltip", r);
|
8
8
|
}
|
@@ -1,44 +1,43 @@
|
|
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, aA as Re, aB as pe } from "./index-
|
4
|
+
import { a as _, u as h, aA as Re, aB as pe } from "./index-B6Hd7MNh.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-
|
8
|
-
import "./getCosmosAddress-DlgoXFw9.js";
|
7
|
+
import { u as ge, d as Qe, c as He, C as ye } from "./useRegisterError-Bo2lp0sa.js";
|
9
8
|
import { v as Je } from "./validError-CDlJpg_f.js";
|
10
|
-
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-Dq-7CifU.js";
|
11
10
|
function Ye(n) {
|
12
|
-
const { wallet: u, address: l } = _(), [
|
11
|
+
const { wallet: u, address: l } = _(), [N, B] = v(0);
|
13
12
|
async function x() {
|
14
13
|
const F = await window.tronWeb.trx.getBalance(l);
|
15
|
-
|
14
|
+
B(F / Math.pow(10, 6));
|
16
15
|
}
|
17
16
|
return z(() => {
|
18
17
|
l && (n == null ? void 0 : n.networkType) === "tron" && x();
|
19
|
-
}, [l, n == null ? void 0 : n.networkType]), { tronBal:
|
18
|
+
}, [l, n == null ? void 0 : n.networkType]), { tronBal: N };
|
20
19
|
}
|
21
20
|
function A(n) {
|
22
21
|
if (n.key.toLowerCase() === "backpacksol")
|
23
22
|
return !0;
|
24
23
|
}
|
25
24
|
function Ze() {
|
26
|
-
const [n, u] = v(0), l = h((x) => x.fromChain), { primaryWallet:
|
27
|
-
async function
|
28
|
-
let x = await
|
25
|
+
const [n, u] = v(0), l = h((x) => x.fromChain), { primaryWallet: N } = xe();
|
26
|
+
async function B() {
|
27
|
+
let x = await N.getBalance();
|
29
28
|
u(Number(x) || 0);
|
30
29
|
}
|
31
30
|
return z(() => {
|
32
|
-
(l.networkType === "btc" || l.networkType === "sui") &&
|
33
|
-
}, [l.networkType,
|
31
|
+
(l.networkType === "btc" || l.networkType === "sui") && B();
|
32
|
+
}, [l.networkType, N]), n;
|
34
33
|
}
|
35
|
-
function
|
34
|
+
function lt({ routesData: n, routes: u, amount: l, isAmountTyped: N, handleShowWallet: B, setConnectWalletField: x, handleConfirmClose: F, balanceSol: L, getCoinBalance: Te, handleSuccess: Q }) {
|
36
35
|
var C, ee, te, se, re, ce, ne, ie, de, ae, le, oe, we;
|
37
|
-
const w = h((s) => s.gradient),
|
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({
|
38
37
|
chainData: e
|
39
|
-
}), { 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: Be } = ge({ chainData: e }), fe = 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({
|
40
39
|
chainId: Number((e == null ? void 0 : e.chainId) || "0"),
|
41
|
-
config:
|
40
|
+
config: Ie,
|
42
41
|
throwForSwitchChainNotSupported: !0,
|
43
42
|
onError(s) {
|
44
43
|
Je(s.message) && Se({ module: "wallet-error-switch", error: s.message });
|
@@ -54,24 +53,24 @@ function ot({ routesData: n, routes: u, amount: l, isAmountTyped: f, handleShowW
|
|
54
53
|
color: "bw-bg-border-primary"
|
55
54
|
});
|
56
55
|
async function Fe() {
|
57
|
-
if ((e == null ? void 0 : e.networkType) === "evm" && Number((e == null ? void 0 : e.chainId) || "0") !== (
|
56
|
+
if ((e == null ? void 0 : e.networkType) === "evm" && Number((e == null ? void 0 : e.chainId) || "0") !== (m == null ? void 0 : m.id))
|
58
57
|
try {
|
59
58
|
await $e({ chainId: Number((e == null ? void 0 : e.chainId) || "0") });
|
60
59
|
} catch {
|
61
60
|
}
|
62
61
|
else if ((e == null ? void 0 : e.networkType) === "sol" && O !== ((e == null ? void 0 : e.chainId) == "eclipse-svm" ? "201" : "101"))
|
63
62
|
try {
|
64
|
-
let s = await
|
63
|
+
let s = await me({ wallet: p, network: e.chainId == "eclipse-svm" ? "201" : "101" });
|
65
64
|
D();
|
66
65
|
} catch {
|
67
66
|
}
|
68
67
|
else (e == null ? void 0 : e.networkType) === "sui" ? (Z.emit(pe.TransactionStarted, {
|
69
68
|
...n
|
70
|
-
}),
|
69
|
+
}), f && (Q(!1), F())) : (Z.emit(pe.TransactionStarted, {
|
71
70
|
...n
|
72
|
-
}),
|
71
|
+
}), f && (Q(!1), F()));
|
73
72
|
}
|
74
|
-
const { primaryWallet: p } = xe(), P = Oe(),
|
73
|
+
const { primaryWallet: p } = xe(), P = Oe(), f = (e == null ? void 0 : e.networkType) === r.networkType ? !!((ce = (re = Be(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 () => {
|
75
74
|
if (p)
|
76
75
|
try {
|
77
76
|
const s = await p.getNetwork();
|
@@ -157,11 +156,11 @@ function ot({ routesData: n, routes: u, amount: l, isAmountTyped: f, handleShowW
|
|
157
156
|
text: "Select Token",
|
158
157
|
isGradient: !0,
|
159
158
|
color: w || S.gradientbutton
|
160
|
-
}) :
|
159
|
+
}) : f ? typeof l < "u" && Number(l || 0) <= 0 ? a({
|
161
160
|
text: "Enter Amount",
|
162
161
|
isGradient: !1,
|
163
162
|
color: "bw-bg-border-primary"
|
164
|
-
}) : u.isFetching || !
|
163
|
+
}) : u.isFetching || !N ? a({
|
165
164
|
text: "Loading Routes...",
|
166
165
|
isGradient: !1,
|
167
166
|
color: "bw-bg-border-primary"
|
@@ -173,7 +172,7 @@ function ot({ routesData: n, routes: u, amount: l, isAmountTyped: f, handleShowW
|
|
173
172
|
text: "Enter recipient wallet address",
|
174
173
|
isGradient: !0,
|
175
174
|
color: w || S.gradientbutton
|
176
|
-
}) : (i == null ? void 0 : i.address)
|
175
|
+
}) : (i == null ? void 0 : i.address) === (b == null ? void 0 : b.address) && (e == null ? void 0 : e.chainId) === (r == null ? void 0 : r.chainId) && !(d != null && d.length) || (e == null ? void 0 : e.networkType) === "evm" && H === d && (i == null ? void 0 : i.address) === (b == null ? void 0 : b.address) && (e == null ? void 0 : e.chainId) === (r == null ? void 0 : r.chainId) || (e == null ? void 0 : e.networkType) === "sol" && (p == null ? void 0 : p.address) === d && (i == null ? void 0 : i.address) === (b == null ? void 0 : b.address) && (e == null ? void 0 : e.chainId) === (r == null ? void 0 : r.chainId) ? a({
|
177
176
|
text: "From and To asset can not be the same!",
|
178
177
|
isGradient: !1,
|
179
178
|
color: "bw-bg-border-primary"
|
@@ -181,7 +180,7 @@ function ot({ routesData: n, routes: u, amount: l, isAmountTyped: f, handleShowW
|
|
181
180
|
text: "Failed to fetch Quotes",
|
182
181
|
isGradient: !1,
|
183
182
|
color: "bw-bg-border-primary"
|
184
|
-
}) : j && Number((e == null ? void 0 : e.chainId) || "0") !== (
|
183
|
+
}) : j && Number((e == null ? void 0 : e.chainId) || "0") !== (m == null ? void 0 : m.id) && (e == null ? void 0 : e.networkType) === "evm" || P && ((e == null ? void 0 : e.chainId) === "eclipse-svm" ? "201" : "101") !== O && (e == null ? void 0 : e.networkType) === "sol" ? a({
|
185
184
|
text: `Switch Chain to ${e.chain}`,
|
186
185
|
isGradient: !0,
|
187
186
|
color: w || S.gradientbutton
|
@@ -194,30 +193,30 @@ function ot({ routesData: n, routes: u, amount: l, isAmountTyped: f, handleShowW
|
|
194
193
|
isGradient: !0,
|
195
194
|
color: w || S.gradientbutton
|
196
195
|
});
|
197
|
-
}, [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, f, u.isFetching, m == null ? void 0 : m.id, N, R, L, d, Y, X, J]);
|
198
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"];
|
199
198
|
function ze() {
|
200
199
|
var s, g, y, E;
|
201
|
-
return
|
200
|
+
return f ? 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;
|
202
201
|
}
|
203
202
|
return /* @__PURE__ */ G(
|
204
203
|
"button",
|
205
204
|
{
|
206
205
|
disabled: ze(),
|
207
206
|
style: o != null && o.isGradient && V && q ? {
|
208
|
-
...
|
209
|
-
boxShadow:
|
207
|
+
...I == null ? void 0 : I.gradientStyle,
|
208
|
+
boxShadow: I && I.customTheme && ((le = (ae = I.customTheme) == null ? void 0 : ae.shadow) == null ? void 0 : le.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
210
209
|
} : {
|
211
|
-
boxShadow:
|
210
|
+
boxShadow: I && I.customTheme && ((we = (oe = I.customTheme) == null ? void 0 : oe.shadow) == null ? void 0 : we.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
212
211
|
},
|
213
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"}`,
|
214
213
|
onClick: () => {
|
215
|
-
|
214
|
+
f || (B(!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) ? (B(!0), x("from")) : r.chainId === "eclipse-svm" && e.chainId !== "eclipse-svm" && !A(p) && d.length < 30 ? (B(!0), x("to")) : Fe();
|
216
215
|
},
|
217
|
-
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" }) }) : f ? o.text.length ? o.text : "Start Transaction" : `Connect ${fe} 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" }) }) }) })
|
218
217
|
}
|
219
218
|
);
|
220
219
|
}
|
221
220
|
export {
|
222
|
-
|
221
|
+
lt as default
|
223
222
|
};
|
@@ -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-UMj0YuPY.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-C57ebjbd.js";
|
3
|
+
import { n as Wn } from "./index-B6Hd7MNh.js";
|
4
4
|
const Sn = D`
|
5
5
|
:host {
|
6
6
|
position: relative;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ad as L, ae as b, af as F, ag as N, ah as P, ai as w, aj as S, ak as E, al as $, am as C, an as I, ao as m, ap as G, aq as R, ar as k, as as y, at as O, au as q, av as T, aw as v, ax as D, ay as A, az as H } from "./index-
|
1
|
+
import { ad as L, ae as b, af as F, ag as N, ah as P, ai as w, aj as S, ak as E, al as $, am as C, an as I, ao as m, ap as G, aq as R, ar as k, as as y, at as O, au as q, av as T, aw as v, ax as D, ay as A, az as H } from "./index-B6Hd7MNh.js";
|
2
2
|
const h = "/docs/contract/encodeErrorResult";
|
3
3
|
function x(t) {
|
4
4
|
const { abi: s, errorName: a, args: r } = t;
|