@skip-go/widget 3.7.1 → 3.7.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as m, Fragment as
|
|
1
|
+
import { jsx as m, Fragment as ge, jsxs as q } from "react/jsx-runtime";
|
|
2
2
|
import ln, { useState as se, useMemo as O, useEffect as ae, useContext as bs, useRef as fi, useDebugValue as ka, createElement as Km, useCallback as ve, Fragment as Xm } from "react";
|
|
3
3
|
import { Scope as Ym } from "react-shadow-scope";
|
|
4
4
|
import { atom as Q, useAtomValue as L, useAtom as pe, useSetAtom as Y, createStore as Zm, Provider as Jm } from "jotai";
|
|
@@ -1435,7 +1435,7 @@ const Lc = Q(!1), $s = ({
|
|
|
1435
1435
|
const [n, i] = se(!1);
|
|
1436
1436
|
return ae(() => {
|
|
1437
1437
|
i(!0);
|
|
1438
|
-
}, []), /* @__PURE__ */ m(
|
|
1438
|
+
}, []), /* @__PURE__ */ m(ge, { children: n ? e : null });
|
|
1439
1439
|
}, mu = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 };
|
|
1440
1440
|
let pu = 0;
|
|
1441
1441
|
function ac(e, n) {
|
|
@@ -1616,7 +1616,7 @@ const tl = ({
|
|
|
1616
1616
|
fill: "none",
|
|
1617
1617
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1618
1618
|
transform: i === "down" ? "rotate(90)" : i === "left" ? "rotate(180)" : i === "up" ? "rotate(-90)" : "",
|
|
1619
|
-
children: t ? /* @__PURE__ */ q(
|
|
1619
|
+
children: t ? /* @__PURE__ */ q(ge, { children: [
|
|
1620
1620
|
/* @__PURE__ */ m("defs", { children: /* @__PURE__ */ q("mask", { id: "arrowMask", children: [
|
|
1621
1621
|
/* @__PURE__ */ m("rect", { width: "40", height: "40", fill: "white" }),
|
|
1622
1622
|
/* @__PURE__ */ m(
|
|
@@ -1628,7 +1628,7 @@ const tl = ({
|
|
|
1628
1628
|
)
|
|
1629
1629
|
] }) }),
|
|
1630
1630
|
/* @__PURE__ */ m("rect", { width: "40", height: "40", rx: "10", fill: e, mask: "url(#arrowMask)" })
|
|
1631
|
-
] }) : /* @__PURE__ */ q(
|
|
1631
|
+
] }) : /* @__PURE__ */ q(ge, { children: [
|
|
1632
1632
|
/* @__PURE__ */ m("rect", { width: "40", height: "40", rx: "10", fill: n }),
|
|
1633
1633
|
/* @__PURE__ */ m(
|
|
1634
1634
|
"path",
|
|
@@ -1972,7 +1972,7 @@ const io = {
|
|
|
1972
1972
|
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
1973
1973
|
}, tt = (e = ["all"], n = "medium", i = "easeInOut") => `
|
|
1974
1974
|
transition: ${e.join(", ")} ${sl[n]} ${ll[i]};
|
|
1975
|
-
`,
|
|
1975
|
+
`, xe = ({
|
|
1976
1976
|
label: e,
|
|
1977
1977
|
icon: n = J.none,
|
|
1978
1978
|
leftIcon: i = J.none,
|
|
@@ -5311,7 +5311,7 @@ function _c(e) {
|
|
|
5311
5311
|
const x = D.chains.map((v) => v.id);
|
|
5312
5312
|
if (!x.length)
|
|
5313
5313
|
return;
|
|
5314
|
-
const { EthereumProvider: b } = await import("./index.es-
|
|
5314
|
+
const { EthereumProvider: b } = await import("./index.es-CdQb9EOm.js");
|
|
5315
5315
|
return await b.init({
|
|
5316
5316
|
...e,
|
|
5317
5317
|
disableProviderPing: !0,
|
|
@@ -6457,7 +6457,7 @@ const ci = N(X).attrs({
|
|
|
6457
6457
|
chainId: D,
|
|
6458
6458
|
tokenAmount: c
|
|
6459
6459
|
});
|
|
6460
|
-
return /* @__PURE__ */ q(
|
|
6460
|
+
return /* @__PURE__ */ q(ge, { children: [
|
|
6461
6461
|
/* @__PURE__ */ m(
|
|
6462
6462
|
Ze,
|
|
6463
6463
|
{
|
|
@@ -6474,7 +6474,7 @@ const ci = N(X).attrs({
|
|
|
6474
6474
|
gn,
|
|
6475
6475
|
{
|
|
6476
6476
|
title: `Warning: Bad trade (-${d})`,
|
|
6477
|
-
description: /* @__PURE__ */ q(
|
|
6477
|
+
description: /* @__PURE__ */ q(ge, { children: [
|
|
6478
6478
|
/* @__PURE__ */ q(X, { color: o.error.text, textAlign: "center", textWrap: "balance", children: [
|
|
6479
6479
|
"You will lose ",
|
|
6480
6480
|
d,
|
|
@@ -6513,7 +6513,7 @@ const ci = N(X).attrs({
|
|
|
6513
6513
|
}
|
|
6514
6514
|
),
|
|
6515
6515
|
/* @__PURE__ */ m(
|
|
6516
|
-
|
|
6516
|
+
xe,
|
|
6517
6517
|
{
|
|
6518
6518
|
label: "Back",
|
|
6519
6519
|
icon: J.leftArrow,
|
|
@@ -6528,7 +6528,7 @@ const ci = N(X).attrs({
|
|
|
6528
6528
|
const n = Y(je), i = de(), o = () => {
|
|
6529
6529
|
V("error page: user rejected request - back button clicked"), n(void 0), e == null || e();
|
|
6530
6530
|
};
|
|
6531
|
-
return /* @__PURE__ */ q(
|
|
6531
|
+
return /* @__PURE__ */ q(ge, { children: [
|
|
6532
6532
|
/* @__PURE__ */ m(
|
|
6533
6533
|
Ze,
|
|
6534
6534
|
{
|
|
@@ -6550,7 +6550,7 @@ const ci = N(X).attrs({
|
|
|
6550
6550
|
}
|
|
6551
6551
|
),
|
|
6552
6552
|
/* @__PURE__ */ m(
|
|
6553
|
-
|
|
6553
|
+
xe,
|
|
6554
6554
|
{
|
|
6555
6555
|
label: "Back",
|
|
6556
6556
|
icon: J.leftArrow,
|
|
@@ -7185,7 +7185,7 @@ const MD = ({
|
|
|
7185
7185
|
Ho("TransactionFailed");
|
|
7186
7186
|
}, []);
|
|
7187
7187
|
const t = de(), c = Y(je), a = Y(an);
|
|
7188
|
-
return /* @__PURE__ */ q(
|
|
7188
|
+
return /* @__PURE__ */ q(ge, { children: [
|
|
7189
7189
|
/* @__PURE__ */ m(
|
|
7190
7190
|
Ze,
|
|
7191
7191
|
{
|
|
@@ -7202,7 +7202,7 @@ const MD = ({
|
|
|
7202
7202
|
gn,
|
|
7203
7203
|
{
|
|
7204
7204
|
title: "Transaction failed",
|
|
7205
|
-
description: /* @__PURE__ */ q(
|
|
7205
|
+
description: /* @__PURE__ */ q(ge, { children: [
|
|
7206
7206
|
/* @__PURE__ */ m(X, { color: t.error.text, textAlign: "center", textWrap: "balance", children: "Please contact our support team below." }),
|
|
7207
7207
|
/* @__PURE__ */ q(
|
|
7208
7208
|
W,
|
|
@@ -7227,7 +7227,7 @@ const MD = ({
|
|
|
7227
7227
|
}
|
|
7228
7228
|
),
|
|
7229
7229
|
/* @__PURE__ */ m(
|
|
7230
|
-
|
|
7230
|
+
xe,
|
|
7231
7231
|
{
|
|
7232
7232
|
label: "Contact support",
|
|
7233
7233
|
icon: J.rightArrow,
|
|
@@ -7246,7 +7246,7 @@ const MD = ({
|
|
|
7246
7246
|
const c = () => {
|
|
7247
7247
|
o(void 0), t(ze.SwapPage);
|
|
7248
7248
|
};
|
|
7249
|
-
return /* @__PURE__ */ q(
|
|
7249
|
+
return /* @__PURE__ */ q(ge, { children: [
|
|
7250
7250
|
/* @__PURE__ */ m(
|
|
7251
7251
|
Ze,
|
|
7252
7252
|
{
|
|
@@ -7270,7 +7270,7 @@ const MD = ({
|
|
|
7270
7270
|
}
|
|
7271
7271
|
),
|
|
7272
7272
|
/* @__PURE__ */ m(
|
|
7273
|
-
|
|
7273
|
+
xe,
|
|
7274
7274
|
{
|
|
7275
7275
|
label: "Retry",
|
|
7276
7276
|
icon: J.rightArrow,
|
|
@@ -7506,7 +7506,7 @@ const Ni = Q(), {
|
|
|
7506
7506
|
valueInitialized: VD,
|
|
7507
7507
|
clearTimeoutAtom: LD
|
|
7508
7508
|
} = sm(), RD = Qo((e) => {
|
|
7509
|
-
const n = e(
|
|
7509
|
+
const n = e(be), i = e(Ue), { data: o } = e(Gn), t = e(Ni);
|
|
7510
7510
|
t != null && t.onRouteUpdated && (t == null || t.onRouteUpdated({
|
|
7511
7511
|
srcChainId: n == null ? void 0 : n.chainID,
|
|
7512
7512
|
srcAssetDenom: n == null ? void 0 : n.denom,
|
|
@@ -7517,23 +7517,23 @@ const Ni = Q(), {
|
|
|
7517
7517
|
requiredChainAddresses: o == null ? void 0 : o.requiredChainAddresses
|
|
7518
7518
|
}));
|
|
7519
7519
|
}), OD = Qo((e) => {
|
|
7520
|
-
const n = e(
|
|
7520
|
+
const n = e(be), i = e(bn), o = e(st);
|
|
7521
7521
|
n != null && n.chainID && o.cosmos && i.getSigningStargateClient({
|
|
7522
7522
|
chainId: n == null ? void 0 : n.chainID
|
|
7523
7523
|
});
|
|
7524
|
-
}),
|
|
7524
|
+
}), be = li(
|
|
7525
7525
|
"sourceAsset",
|
|
7526
7526
|
void 0
|
|
7527
7527
|
), bb = ({ onlyClearInputValues: e } = {}) => {
|
|
7528
7528
|
const { set: n } = Gm;
|
|
7529
|
-
e ? n(aa) : (n(
|
|
7529
|
+
e ? n(aa) : (n(be, void 0), n(Un, "", void 0, !0), n(Ue, void 0), n(hi, "", void 0, !0)), n(pm), n(an, ze.SwapPage), n(je, void 0);
|
|
7530
7530
|
}, go = Q(
|
|
7531
7531
|
(e) => {
|
|
7532
7532
|
var n;
|
|
7533
|
-
return ((n = e(
|
|
7533
|
+
return ((n = e(be)) == null ? void 0 : n.amount) ?? "";
|
|
7534
7534
|
},
|
|
7535
7535
|
(e, n, i) => {
|
|
7536
|
-
n(
|
|
7536
|
+
n(be, (o) => ({ ...o, amount: i })), n(Un, i), n(On, "swap-in"), i === "" && (n(Ue, (o) => ({ ...o, amount: i })), n(hi, i, void 0, !0));
|
|
7537
7537
|
}
|
|
7538
7538
|
), Ue = li(
|
|
7539
7539
|
"destinationAsset",
|
|
@@ -7544,10 +7544,10 @@ const Ni = Q(), {
|
|
|
7544
7544
|
return ((n = e(Ue)) == null ? void 0 : n.amount) ?? "";
|
|
7545
7545
|
},
|
|
7546
7546
|
(e, n, i, o) => {
|
|
7547
|
-
n(Ue, (t) => ({ ...t, amount: i })), n(hi, i, o), n(On, "swap-out"), i === "" && (n(
|
|
7547
|
+
n(Ue, (t) => ({ ...t, amount: i })), n(hi, i, o), n(On, "swap-out"), i === "" && (n(be, (t) => ({ ...t, amount: i })), n(Un, i, void 0, !0));
|
|
7548
7548
|
}
|
|
7549
7549
|
), aa = Q(null, (e, n) => {
|
|
7550
|
-
n(
|
|
7550
|
+
n(be, (i) => ({ ...i, amount: "" })), n(Un, "", void 0, !0), n(Ue, (i) => ({ ...i, amount: "" })), n(hi, "", void 0, !0);
|
|
7551
7551
|
}), lm = Q((e) => {
|
|
7552
7552
|
const n = e(go), i = e(Dt), o = e(Un), t = e(hi), { isLoading: c } = e(Gn), a = e(On), r = !isNaN(parseFloat(n)), l = !isNaN(parseFloat(i)), s = n !== o, h = i !== t;
|
|
7553
7553
|
if (a === "swap-in")
|
|
@@ -7558,8 +7558,8 @@ const Ni = Q(), {
|
|
|
7558
7558
|
"swapDirection",
|
|
7559
7559
|
"swap-in"
|
|
7560
7560
|
), ro = Q(!1), WD = Q(null, (e, n) => {
|
|
7561
|
-
const i = e(
|
|
7562
|
-
n(ro, !0), n(
|
|
7561
|
+
const i = e(be), o = e(Ue), t = e(On);
|
|
7562
|
+
n(ro, !0), n(be, { ...o }), n(go, (o == null ? void 0 : o.amount) ?? ""), n(Ue, { ...i }), n(Dt, (i == null ? void 0 : i.amount) ?? "", () => {
|
|
7563
7563
|
n(On, t === "swap-in" ? "swap-out" : "swap-in"), n(ro, !1);
|
|
7564
7564
|
});
|
|
7565
7565
|
}), ra = Q(), sa = Q(), eo = {
|
|
@@ -7585,13 +7585,13 @@ const Ni = Q(), {
|
|
|
7585
7585
|
}
|
|
7586
7586
|
), la = li("showGoFastWarning", !0), UD = Qo(
|
|
7587
7587
|
(e, n) => {
|
|
7588
|
-
const i = e(
|
|
7588
|
+
const i = e(be), o = e(Ue), t = e(bt), c = e(TD), a = e(
|
|
7589
7589
|
VD
|
|
7590
7590
|
);
|
|
7591
|
-
!c && (i != null && i.amount) && (n(Un, i.amount, void 0, !0), n(
|
|
7591
|
+
!c && (i != null && i.amount) && (n(Un, i.amount, void 0, !0), n(be, (r) => ({ ...r, locked: t == null ? void 0 : t.srcLocked }))), !a && (o != null && o.amount) && (n(hi, o.amount, void 0, !0), n(Ue, (r) => ({ ...r, locked: t == null ? void 0 : t.destLocked })));
|
|
7592
7592
|
}
|
|
7593
7593
|
), GD = Q((e) => {
|
|
7594
|
-
const n = e(
|
|
7594
|
+
const n = e(be), i = e(Ue), o = e(On), t = e(Un), c = e(hi);
|
|
7595
7595
|
return e(UD), !(n != null && n.chainID) || !n.denom || !(i != null && i.chainID) || !i.denom ? void 0 : {
|
|
7596
7596
|
...o === "swap-in" ? {
|
|
7597
7597
|
amountIn: Tn(
|
|
@@ -7686,7 +7686,7 @@ const Ni = Q(), {
|
|
|
7686
7686
|
...g,
|
|
7687
7687
|
locked: o == null ? void 0 : o.destLocked,
|
|
7688
7688
|
amount: D == null ? void 0 : D.toString()
|
|
7689
|
-
}), n(
|
|
7689
|
+
}), n(be, {
|
|
7690
7690
|
...d,
|
|
7691
7691
|
locked: o == null ? void 0 : o.srcLocked,
|
|
7692
7692
|
amount: h == null ? void 0 : h.toString()
|
|
@@ -40665,7 +40665,7 @@ const JD = [
|
|
|
40665
40665
|
};
|
|
40666
40666
|
}), Dm = Q(), xm = $m((e) => {
|
|
40667
40667
|
var A;
|
|
40668
|
-
const n = e(bn), { route: i, userAddresses: o, transactionDetailsArray: t } = e(Le), c = e(dm), a = e(r2), r = e(Dm), l = e(ai), { timeoutSeconds: s } = e(gt), { data: h } = e(Ee), D = e(
|
|
40668
|
+
const n = e(bn), { route: i, userAddresses: o, transactionDetailsArray: t } = e(Le), c = e(dm), a = e(r2), r = e(Dm), l = e(ai), { timeoutSeconds: s } = e(gt), { data: h } = e(Ee), D = e(be), d = e(hl), g = (A = h == null ? void 0 : h.find((x) => x.chainID === (D == null ? void 0 : D.chainID))) == null ? void 0 : A.chainType;
|
|
40669
40669
|
if (g) {
|
|
40670
40670
|
const { deeplink: x, recentWalletData: b } = d[g];
|
|
40671
40671
|
g === R.Cosmos ? (window.localStorage.removeItem(lc), window.localStorage.removeItem(mc)) : (window.localStorage.setItem(lc, x), window.localStorage.setItem(mc, b));
|
|
@@ -40710,7 +40710,7 @@ const JD = [
|
|
|
40710
40710
|
});
|
|
40711
40711
|
return ae(() => {
|
|
40712
40712
|
t && (h != null && h.isSettled) && (V("error page: transaction timeover - transaction settled"), c(void 0));
|
|
40713
|
-
}, [h == null ? void 0 : h.isSettled, t, c]), /* @__PURE__ */ q(
|
|
40713
|
+
}, [h == null ? void 0 : h.isSettled, t, c]), /* @__PURE__ */ q(ge, { children: [
|
|
40714
40714
|
/* @__PURE__ */ m(
|
|
40715
40715
|
Ze,
|
|
40716
40716
|
{
|
|
@@ -40727,7 +40727,7 @@ const JD = [
|
|
|
40727
40727
|
gn,
|
|
40728
40728
|
{
|
|
40729
40729
|
title: "Sorry, your transaction is taking longer than usual.",
|
|
40730
|
-
description: /* @__PURE__ */ q(
|
|
40730
|
+
description: /* @__PURE__ */ q(ge, { children: [
|
|
40731
40731
|
/* @__PURE__ */ q(X, { color: o.warning.text, textAlign: "center", textWrap: "balance", children: [
|
|
40732
40732
|
"Your funds are secure.",
|
|
40733
40733
|
/* @__PURE__ */ m("br", {}),
|
|
@@ -40757,7 +40757,7 @@ const JD = [
|
|
|
40757
40757
|
textColor: o.warning.text
|
|
40758
40758
|
}
|
|
40759
40759
|
),
|
|
40760
|
-
/* @__PURE__ */ m(
|
|
40760
|
+
/* @__PURE__ */ m(xe, { isGoFast: s, label: "Processing", loading: !0 })
|
|
40761
40761
|
] });
|
|
40762
40762
|
}, m2 = ({
|
|
40763
40763
|
onClickContinue: e,
|
|
@@ -40769,7 +40769,7 @@ const JD = [
|
|
|
40769
40769
|
}, a = () => {
|
|
40770
40770
|
t(void 0), e();
|
|
40771
40771
|
};
|
|
40772
|
-
return /* @__PURE__ */ q(
|
|
40772
|
+
return /* @__PURE__ */ q(ge, { children: [
|
|
40773
40773
|
/* @__PURE__ */ m(
|
|
40774
40774
|
Ze,
|
|
40775
40775
|
{
|
|
@@ -40800,7 +40800,7 @@ const JD = [
|
|
|
40800
40800
|
}
|
|
40801
40801
|
),
|
|
40802
40802
|
/* @__PURE__ */ m(
|
|
40803
|
-
|
|
40803
|
+
xe,
|
|
40804
40804
|
{
|
|
40805
40805
|
label: "Continue",
|
|
40806
40806
|
icon: J.rightArrow,
|
|
@@ -40825,7 +40825,7 @@ const JD = [
|
|
|
40825
40825
|
tokenAmount: n == null ? void 0 : n.amount,
|
|
40826
40826
|
chainId: n == null ? void 0 : n.chainID
|
|
40827
40827
|
});
|
|
40828
|
-
return /* @__PURE__ */ q(
|
|
40828
|
+
return /* @__PURE__ */ q(ge, { children: [
|
|
40829
40829
|
/* @__PURE__ */ m(
|
|
40830
40830
|
Ze,
|
|
40831
40831
|
{
|
|
@@ -40842,7 +40842,7 @@ const JD = [
|
|
|
40842
40842
|
gn,
|
|
40843
40843
|
{
|
|
40844
40844
|
title: "Action Required",
|
|
40845
|
-
description: /* @__PURE__ */ q(
|
|
40845
|
+
description: /* @__PURE__ */ q(ge, { children: [
|
|
40846
40846
|
/* @__PURE__ */ q(X, { color: a.warning.text, textAlign: "center", textWrap: "balance", children: [
|
|
40847
40847
|
"This transaction reverted while trying to execute.",
|
|
40848
40848
|
/* @__PURE__ */ m("br", {}),
|
|
@@ -40880,7 +40880,7 @@ const JD = [
|
|
|
40880
40880
|
}
|
|
40881
40881
|
),
|
|
40882
40882
|
/* @__PURE__ */ m(
|
|
40883
|
-
|
|
40883
|
+
xe,
|
|
40884
40884
|
{
|
|
40885
40885
|
label: "Continue transaction",
|
|
40886
40886
|
backgroundColor: a.warning.text,
|
|
@@ -40893,7 +40893,7 @@ const JD = [
|
|
|
40893
40893
|
] });
|
|
40894
40894
|
}, h2 = ({ onClickBack: e }) => {
|
|
40895
40895
|
const n = de();
|
|
40896
|
-
return /* @__PURE__ */ q(
|
|
40896
|
+
return /* @__PURE__ */ q(ge, { children: [
|
|
40897
40897
|
/* @__PURE__ */ m(
|
|
40898
40898
|
Ze,
|
|
40899
40899
|
{
|
|
@@ -40910,14 +40910,14 @@ const JD = [
|
|
|
40910
40910
|
gn,
|
|
40911
40911
|
{
|
|
40912
40912
|
title: "Warning: Ledger not supported",
|
|
40913
|
-
description: /* @__PURE__ */ m(
|
|
40913
|
+
description: /* @__PURE__ */ m(ge, { children: /* @__PURE__ */ m(X, { color: n.error.text, textAlign: "center", textWrap: "balance", children: "Ledger isn't currently supported on Ethermint chains (such as Injective, Dymension, EVMOS, and similar networks)." }) }),
|
|
40914
40914
|
icon: J.triangleWarning,
|
|
40915
40915
|
backgroundColor: n.error.background,
|
|
40916
40916
|
textColor: n.error.text
|
|
40917
40917
|
}
|
|
40918
40918
|
),
|
|
40919
40919
|
/* @__PURE__ */ m(
|
|
40920
|
-
|
|
40920
|
+
xe,
|
|
40921
40921
|
{
|
|
40922
40922
|
label: "Back",
|
|
40923
40923
|
icon: J.leftArrow,
|
|
@@ -41618,7 +41618,7 @@ const JD = [
|
|
|
41618
41618
|
}), x = ve(
|
|
41619
41619
|
(B) => {
|
|
41620
41620
|
var z;
|
|
41621
|
-
const I = Eo(B) ? B.walletPrettyName ?? B.walletName : B.walletName, T = Eo(B) ? (z = B == null ? void 0 : B.walletInfo) == null ? void 0 : z.logo : void 0, p = Qr(B) ? B == null ? void 0 : B.rightContent : void 0, u = Eo(B) ? B == null ? void 0 : B.isAvailable : void 0, C = (p == null ? void 0 : p()) ?? /* @__PURE__ */ m(
|
|
41621
|
+
const I = Eo(B) ? B.walletPrettyName ?? B.walletName : B.walletName, T = Eo(B) ? (z = B == null ? void 0 : B.walletInfo) == null ? void 0 : z.logo : void 0, p = Qr(B) ? B == null ? void 0 : B.rightContent : void 0, u = Eo(B) ? B == null ? void 0 : B.isAvailable : void 0, C = (p == null ? void 0 : p()) ?? /* @__PURE__ */ m(ge, {}), F = T ? /* @__PURE__ */ m(
|
|
41622
41622
|
"img",
|
|
41623
41623
|
{
|
|
41624
41624
|
height: 35,
|
|
@@ -41939,7 +41939,7 @@ const JD = [
|
|
|
41939
41939
|
imgSrc: "https://raw.githubusercontent.com/graz-sh/graz/dev/example/starter/public/assets/wallet-icon-compass.png"
|
|
41940
41940
|
}
|
|
41941
41941
|
}, Xo = (e) => J2[e], da = () => {
|
|
41942
|
-
const { data: e } = L(Ee), { data: n } = L(fn), i = Y(
|
|
41942
|
+
const { data: e } = L(Ee), { data: n } = L(fn), i = Y(be);
|
|
41943
41943
|
return (o) => {
|
|
41944
41944
|
switch (o) {
|
|
41945
41945
|
case R.Cosmos: {
|
|
@@ -41973,7 +41973,7 @@ const JD = [
|
|
|
41973
41973
|
}
|
|
41974
41974
|
};
|
|
41975
41975
|
}, Cm = () => {
|
|
41976
|
-
const { data: e } = L(Ee), [n, i] = pe(at), o = L(
|
|
41976
|
+
const { data: e } = L(Ee), [n, i] = pe(at), o = L(be), t = L(Ni), { walletType: c } = ep(), a = da(), { disconnectAsync: r } = np();
|
|
41977
41977
|
return { createCosmosWallets: ve(
|
|
41978
41978
|
(s) => {
|
|
41979
41979
|
const h = Fi(), D = $2();
|
|
@@ -42216,7 +42216,7 @@ const JD = [
|
|
|
42216
42216
|
type: "function"
|
|
42217
42217
|
}
|
|
42218
42218
|
], km = () => {
|
|
42219
|
-
const e = L(
|
|
42219
|
+
const e = L(be), [n, i] = pe(ct), o = L(Ni), t = Y(ul), c = da(), { connector: a, isConnected: r, chainId: l } = lo(), { connectAsync: s } = up(), h = Cs();
|
|
42220
42220
|
return { createEvmWallets: ve(
|
|
42221
42221
|
(d) => {
|
|
42222
42222
|
const g = d === "pacific-1";
|
|
@@ -42352,7 +42352,7 @@ const JD = [
|
|
|
42352
42352
|
]
|
|
42353
42353
|
) };
|
|
42354
42354
|
}, wm = () => {
|
|
42355
|
-
const { data: e } = L(Ee), n = L(
|
|
42355
|
+
const { data: e } = L(Ee), n = L(be), [i, o] = pe(rt), t = L(Ni), c = Y(ul), a = da();
|
|
42356
42356
|
return { createSolanaWallets: ve(() => {
|
|
42357
42357
|
const l = [];
|
|
42358
42358
|
for (const s of ut) {
|
|
@@ -42640,7 +42640,7 @@ const JD = [
|
|
|
42640
42640
|
var B, I;
|
|
42641
42641
|
const { copyAddress: o, isShowingCopyAddressFeedback: t } = ha(), { data: c } = Sc({
|
|
42642
42642
|
multiChain: !0
|
|
42643
|
-
}), a = de(), r = ui(), l = Je(), s = L(
|
|
42643
|
+
}), a = de(), r = ui(), l = Je(), s = L(be), { data: h } = L(Ee), d = ym()[e], g = O(() => {
|
|
42644
42644
|
if (e !== R.Cosmos)
|
|
42645
42645
|
return d;
|
|
42646
42646
|
if (s != null && s.chainID && (c != null && c[s.chainID]))
|
|
@@ -42734,7 +42734,7 @@ const JD = [
|
|
|
42734
42734
|
)
|
|
42735
42735
|
}
|
|
42736
42736
|
),
|
|
42737
|
-
|
|
42737
|
+
/* @__PURE__ */ m(m1, { chainId: g })
|
|
42738
42738
|
] })
|
|
42739
42739
|
] }) : /* @__PURE__ */ q(Fu, { children: [
|
|
42740
42740
|
"Connect to",
|
|
@@ -42760,7 +42760,7 @@ const JD = [
|
|
|
42760
42760
|
connectedWalletModal: i
|
|
42761
42761
|
}) => {
|
|
42762
42762
|
const o = O(() => h1.filter((t) => t !== e), [e]);
|
|
42763
|
-
return /* @__PURE__ */ m(
|
|
42763
|
+
return /* @__PURE__ */ m(ge, { children: o.map((t) => /* @__PURE__ */ m(
|
|
42764
42764
|
l1,
|
|
42765
42765
|
{
|
|
42766
42766
|
chainType: t,
|
|
@@ -42770,7 +42770,7 @@ const JD = [
|
|
|
42770
42770
|
t
|
|
42771
42771
|
)) });
|
|
42772
42772
|
}, u1 = bo((e) => {
|
|
42773
|
-
const { chainId: n, chainType: i, fromConnectedWalletModal: o } = e, { data: t } = L(Ee), c = Da({ chainID: n, chainType: i }), a = L(
|
|
42773
|
+
const { chainId: n, chainType: i, fromConnectedWalletModal: o } = e, { data: t } = L(Ee), c = Da({ chainID: n, chainType: i }), a = L(be), l = ui()(a == null ? void 0 : a.chainID), s = t == null ? void 0 : t.find((f) => f.chainID === (a == null ? void 0 : a.chainID)), [h, D] = se(
|
|
42774
42774
|
i ?? (s == null ? void 0 : s.chainType)
|
|
42775
42775
|
), d = ym(), g = t == null ? void 0 : t.find((f) => {
|
|
42776
42776
|
if (h)
|
|
@@ -42810,40 +42810,41 @@ const JD = [
|
|
|
42810
42810
|
src: (g == null ? void 0 : g.logoURI) ?? (s == null ? void 0 : s.logoURI)
|
|
42811
42811
|
}
|
|
42812
42812
|
) }),
|
|
42813
|
-
bottomContent: A && /* @__PURE__ */ q(
|
|
42814
|
-
|
|
42815
|
-
|
|
42816
|
-
|
|
42813
|
+
bottomContent: A && /* @__PURE__ */ q(
|
|
42814
|
+
he,
|
|
42815
|
+
{
|
|
42816
|
+
style: {
|
|
42817
|
+
marginTop: "-5px"
|
|
42818
|
+
},
|
|
42819
|
+
children: [
|
|
42820
|
+
/* @__PURE__ */ m(d1, {}),
|
|
42821
|
+
/* @__PURE__ */ m(Em, { excludeChainType: x, onClick: D })
|
|
42822
|
+
]
|
|
42823
|
+
}
|
|
42824
|
+
)
|
|
42817
42825
|
}
|
|
42818
42826
|
);
|
|
42819
42827
|
}), d1 = N.div`
|
|
42820
42828
|
height: 1px;
|
|
42821
|
-
background-color: ${({ theme: e }) => e.
|
|
42829
|
+
background-color: ${({ theme: e }) => e.secondary.background.transparent};
|
|
42822
42830
|
margin: 10px;
|
|
42823
42831
|
`, D1 = N(W)`
|
|
42824
42832
|
width: 40px;
|
|
42825
42833
|
height: 40px;
|
|
42826
42834
|
border-radius: 10px;
|
|
42827
42835
|
background: ${({ theme: e }) => e.secondary.background.normal};
|
|
42828
|
-
`, x1 = 60, g1 = 5, b1 = bo(() => {
|
|
42829
|
-
|
|
42830
|
-
|
|
42831
|
-
|
|
42832
|
-
|
|
42833
|
-
|
|
42834
|
-
|
|
42835
|
-
ua,
|
|
42836
|
-
{
|
|
42837
|
-
title: "Wallets",
|
|
42838
|
-
onClickBackButton: () => {
|
|
42839
|
-
V("connect eco modal: header back button - clicked"), ie.remove(me.ConnectedWalletModal);
|
|
42840
|
-
},
|
|
42841
|
-
rightContent: e != null && e.chainID ? /* @__PURE__ */ m("img", { src: n, height: 36, width: 36, title: i }) : null
|
|
42836
|
+
`, x1 = 60, g1 = 5, b1 = bo(() => /* @__PURE__ */ q(Ct, { gap: 15, children: [
|
|
42837
|
+
/* @__PURE__ */ m(
|
|
42838
|
+
ua,
|
|
42839
|
+
{
|
|
42840
|
+
title: "Wallets",
|
|
42841
|
+
onClickBackButton: () => {
|
|
42842
|
+
V("connect eco modal: header back button - clicked"), ie.remove(me.ConnectedWalletModal);
|
|
42842
42843
|
}
|
|
42843
|
-
|
|
42844
|
-
|
|
42845
|
-
|
|
42846
|
-
}), f1 = ({ color: e = "currentColor" }) => /* @__PURE__ */ m("svg", { width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ m(
|
|
42844
|
+
}
|
|
42845
|
+
),
|
|
42846
|
+
/* @__PURE__ */ m(fm, { height: (x1 + g1) * 3, children: /* @__PURE__ */ m(Em, { connectedWalletModal: !0 }) })
|
|
42847
|
+
] })), f1 = ({ color: e = "currentColor" }) => /* @__PURE__ */ m("svg", { width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ m(
|
|
42847
42848
|
"path",
|
|
42848
42849
|
{
|
|
42849
42850
|
d: "M2.8108 1.87099L4.62035 3.73224C5.01216 4.13524 4.73524 4.82459 4.17993 4.82459L0.876057 4.82459L0.876056 6.43207L4.18067 6.43282C4.7345 6.43282 5.01289 7.12217 4.62108 7.52518L2.80933 9.3887L3.91406 10.525L8.67323 5.62984L3.91553 0.736215L2.8108 1.87251L2.8108 1.87099Z",
|
|
@@ -42937,11 +42938,11 @@ const JD = [
|
|
|
42937
42938
|
}
|
|
42938
42939
|
}, [r]), A = O(() => {
|
|
42939
42940
|
const b = () => s ? g : Fc;
|
|
42940
|
-
return /* @__PURE__ */ q(
|
|
42941
|
+
return /* @__PURE__ */ q(ge, { children: [
|
|
42941
42942
|
(() => {
|
|
42942
42943
|
if (e) return e;
|
|
42943
42944
|
if (!c && n && t)
|
|
42944
|
-
return /* @__PURE__ */ m(W, { align: "flex-end", gap: 8, children: i && h && /* @__PURE__ */ q(
|
|
42945
|
+
return /* @__PURE__ */ m(W, { align: "flex-end", gap: 8, children: i && h && /* @__PURE__ */ q(ge, { children: [
|
|
42945
42946
|
/* @__PURE__ */ q(
|
|
42946
42947
|
ns,
|
|
42947
42948
|
{
|
|
@@ -42973,12 +42974,12 @@ const JD = [
|
|
|
42973
42974
|
a,
|
|
42974
42975
|
i,
|
|
42975
42976
|
n
|
|
42976
|
-
]), x = O(() => /* @__PURE__ */ q(
|
|
42977
|
+
]), x = O(() => /* @__PURE__ */ q(ge, { children: [
|
|
42977
42978
|
(() => {
|
|
42978
42979
|
if (e) return e;
|
|
42979
42980
|
if (!c && n && t)
|
|
42980
42981
|
return /* @__PURE__ */ q(W, { align: "flex-end", gap: 10, height: 13, children: [
|
|
42981
|
-
i && h && /* @__PURE__ */ q(
|
|
42982
|
+
i && h && /* @__PURE__ */ q(ge, { children: [
|
|
42982
42983
|
/* @__PURE__ */ q(
|
|
42983
42984
|
ns,
|
|
42984
42985
|
{
|
|
@@ -43144,7 +43145,7 @@ const w1 = new Intl.NumberFormat("en-US", {
|
|
|
43144
43145
|
},
|
|
43145
43146
|
r
|
|
43146
43147
|
)),
|
|
43147
|
-
/* @__PURE__ */ m(M1, { children: a || e ? /* @__PURE__ */ q(
|
|
43148
|
+
/* @__PURE__ */ m(M1, { children: a || e ? /* @__PURE__ */ q(ge, { children: [
|
|
43148
43149
|
/* @__PURE__ */ m(
|
|
43149
43150
|
z1,
|
|
43150
43151
|
{
|
|
@@ -44054,7 +44055,7 @@ const w1 = new Intl.NumberFormat("en-US", {
|
|
|
44054
44055
|
(d = h.current) == null || d.focus();
|
|
44055
44056
|
}, 0);
|
|
44056
44057
|
}, [r, l, s]), /* @__PURE__ */ q(tx, { align: "center", gap: 5, children: [
|
|
44057
|
-
r ? /* @__PURE__ */ q(
|
|
44058
|
+
r ? /* @__PURE__ */ q(ge, { children: [
|
|
44058
44059
|
/* @__PURE__ */ m(cn, { onClick: i, children: /* @__PURE__ */ m(nx, { color: a.primary.text.normal, maskedVersion: !1 }) }),
|
|
44059
44060
|
/* @__PURE__ */ q(ix, { gap: 5, align: "center", justify: "center", children: [
|
|
44060
44061
|
/* @__PURE__ */ m(fa, { groupedAsset: e, width: 20, height: 20 }),
|
|
@@ -44073,7 +44074,7 @@ const w1 = new Intl.NumberFormat("en-US", {
|
|
|
44073
44074
|
onKeyDown: c
|
|
44074
44075
|
}
|
|
44075
44076
|
),
|
|
44076
|
-
/* @__PURE__ */ m(W, { align: "center", gap: 5, "data-logo": "skip-go", children: !l && /* @__PURE__ */ q(
|
|
44077
|
+
/* @__PURE__ */ m(W, { align: "center", gap: 5, "data-logo": "skip-go", children: !l && /* @__PURE__ */ q(ge, { children: [
|
|
44077
44078
|
/* @__PURE__ */ m(X, { textWrap: "nowrap", children: " Powered by " }),
|
|
44078
44079
|
/* @__PURE__ */ m(Fm, { color: a.primary.text.lowContrast })
|
|
44079
44080
|
] }) })
|
|
@@ -44346,7 +44347,7 @@ const mx = bo((e) => {
|
|
|
44346
44347
|
};
|
|
44347
44348
|
});
|
|
44348
44349
|
};
|
|
44349
|
-
return /* @__PURE__ */ m(
|
|
44350
|
+
return /* @__PURE__ */ m(ge, { children: D ? /* @__PURE__ */ q(Ct, { children: [
|
|
44350
44351
|
/* @__PURE__ */ m(
|
|
44351
44352
|
ua,
|
|
44352
44353
|
{
|
|
@@ -44521,7 +44522,7 @@ const Tm = Q(void 0), Nm = () => {
|
|
|
44521
44522
|
}
|
|
44522
44523
|
),
|
|
44523
44524
|
/* @__PURE__ */ m(
|
|
44524
|
-
|
|
44525
|
+
xe,
|
|
44525
44526
|
{
|
|
44526
44527
|
label: "Continue",
|
|
44527
44528
|
icon: J.rightArrow,
|
|
@@ -44557,7 +44558,7 @@ const Tm = Q(void 0), Nm = () => {
|
|
|
44557
44558
|
chainId: s,
|
|
44558
44559
|
tokenAmount: c
|
|
44559
44560
|
});
|
|
44560
|
-
return /* @__PURE__ */ q(
|
|
44561
|
+
return /* @__PURE__ */ q(ge, { children: [
|
|
44561
44562
|
/* @__PURE__ */ m(
|
|
44562
44563
|
Ze,
|
|
44563
44564
|
{
|
|
@@ -44574,7 +44575,7 @@ const Tm = Q(void 0), Nm = () => {
|
|
|
44574
44575
|
gn,
|
|
44575
44576
|
{
|
|
44576
44577
|
title: "Warning: Incomplete Price Data",
|
|
44577
|
-
description: /* @__PURE__ */ q(
|
|
44578
|
+
description: /* @__PURE__ */ q(ge, { children: [
|
|
44578
44579
|
/* @__PURE__ */ q(X, { color: o.warning.text, textAlign: "center", textWrap: "balance", children: [
|
|
44579
44580
|
"USD price data is missing for one of the assets, please double check the input and output amounts are acceptable before continuing.",
|
|
44580
44581
|
/* @__PURE__ */ m("br", {}),
|
|
@@ -44603,7 +44604,7 @@ const Tm = Q(void 0), Nm = () => {
|
|
|
44603
44604
|
}
|
|
44604
44605
|
),
|
|
44605
44606
|
/* @__PURE__ */ m(
|
|
44606
|
-
|
|
44607
|
+
xe,
|
|
44607
44608
|
{
|
|
44608
44609
|
label: "Back",
|
|
44609
44610
|
icon: J.leftArrow,
|
|
@@ -45377,7 +45378,7 @@ const Gx = ({
|
|
|
45377
45378
|
switch (e) {
|
|
45378
45379
|
case Ae.recoveryAddressUnset:
|
|
45379
45380
|
return /* @__PURE__ */ m(
|
|
45380
|
-
|
|
45381
|
+
xe,
|
|
45381
45382
|
{
|
|
45382
45383
|
label: "Set intermediary address",
|
|
45383
45384
|
icon: J.rightArrow,
|
|
@@ -45388,7 +45389,7 @@ const Gx = ({
|
|
|
45388
45389
|
);
|
|
45389
45390
|
case Ae.destinationAddressUnset:
|
|
45390
45391
|
return /* @__PURE__ */ m(
|
|
45391
|
-
|
|
45392
|
+
xe,
|
|
45392
45393
|
{
|
|
45393
45394
|
label: d(),
|
|
45394
45395
|
icon: J.rightArrow,
|
|
@@ -45416,17 +45417,17 @@ const Gx = ({
|
|
|
45416
45417
|
}
|
|
45417
45418
|
c();
|
|
45418
45419
|
};
|
|
45419
|
-
return /* @__PURE__ */ m(
|
|
45420
|
+
return /* @__PURE__ */ m(xe, { label: "Confirm", icon: J.rightArrow, onClick: g });
|
|
45420
45421
|
}
|
|
45421
45422
|
case Ae.validatingGasBalance:
|
|
45422
|
-
return /* @__PURE__ */ m(
|
|
45423
|
+
return /* @__PURE__ */ m(xe, { label: "Validating", icon: J.rightArrow, loading: !0 });
|
|
45423
45424
|
case Ae.waitingForSigning:
|
|
45424
|
-
return /* @__PURE__ */ m(
|
|
45425
|
+
return /* @__PURE__ */ m(xe, { label: "Confirming", icon: J.rightArrow, loading: !0 });
|
|
45425
45426
|
case Ae.approving:
|
|
45426
|
-
return /* @__PURE__ */ m(
|
|
45427
|
+
return /* @__PURE__ */ m(xe, { label: "Approving allowance", icon: J.rightArrow, loading: !0 });
|
|
45427
45428
|
case Ae.pending:
|
|
45428
45429
|
return /* @__PURE__ */ m(
|
|
45429
|
-
|
|
45430
|
+
xe,
|
|
45430
45431
|
{
|
|
45431
45432
|
label: "Processing",
|
|
45432
45433
|
loading: !0,
|
|
@@ -45437,7 +45438,7 @@ const Gx = ({
|
|
|
45437
45438
|
);
|
|
45438
45439
|
case Ae.signaturesRemaining:
|
|
45439
45440
|
return /* @__PURE__ */ m(
|
|
45440
|
-
|
|
45441
|
+
xe,
|
|
45441
45442
|
{
|
|
45442
45443
|
label: `${i} ${Qi(
|
|
45443
45444
|
"signature",
|
|
@@ -45449,7 +45450,7 @@ const Gx = ({
|
|
|
45449
45450
|
);
|
|
45450
45451
|
case Ae.confirmed:
|
|
45451
45452
|
return /* @__PURE__ */ m(
|
|
45452
|
-
|
|
45453
|
+
xe,
|
|
45453
45454
|
{
|
|
45454
45455
|
label: "Go again",
|
|
45455
45456
|
icon: J.checkmark,
|
|
@@ -45460,13 +45461,13 @@ const Gx = ({
|
|
|
45460
45461
|
}
|
|
45461
45462
|
);
|
|
45462
45463
|
case Ae.pendingGettingAddresses:
|
|
45463
|
-
return /* @__PURE__ */ m(
|
|
45464
|
+
return /* @__PURE__ */ m(xe, { label: "Getting addresses", loading: !0 });
|
|
45464
45465
|
default:
|
|
45465
45466
|
return null;
|
|
45466
45467
|
}
|
|
45467
45468
|
}, Xx = (e) => {
|
|
45468
45469
|
var h, D;
|
|
45469
|
-
const n = Y(je), i = Y(an), o = Y(
|
|
45470
|
+
const n = Y(je), i = Y(an), o = Y(be), t = Y(Un), [{ data: c }] = pe(fn), { transactionDetailsArray: a } = L(Le), r = a[a.length - 1], s = ve(
|
|
45470
45471
|
(d, g) => {
|
|
45471
45472
|
if (!(!d || !g) && c)
|
|
45472
45473
|
return c.find(
|
|
@@ -45742,7 +45743,7 @@ async function eg(e, n, i) {
|
|
|
45742
45743
|
};
|
|
45743
45744
|
}
|
|
45744
45745
|
const Rm = () => {
|
|
45745
|
-
const [e] = pe(
|
|
45746
|
+
const [e] = pe(be), i = ui()(e == null ? void 0 : e.chainID), {
|
|
45746
45747
|
data: o,
|
|
45747
45748
|
isFetched: t,
|
|
45748
45749
|
isPending: c,
|
|
@@ -45801,7 +45802,7 @@ const Rm = () => {
|
|
|
45801
45802
|
}).filter((r) => r);
|
|
45802
45803
|
}, [e, i, n, o]);
|
|
45803
45804
|
}, ng = () => {
|
|
45804
|
-
const e = L(
|
|
45805
|
+
const e = L(be), { data: n } = L(fn), i = Om(e == null ? void 0 : e.chainID), o = yt(), t = i == null ? void 0 : i.find((l) => l == null ? void 0 : l.isSufficient);
|
|
45805
45806
|
if ((t == null ? void 0 : t.denom) !== (e == null ? void 0 : e.denom))
|
|
45806
45807
|
return !(!(e != null && e.amount) || Be(o).isGreaterThanOrEqualTo(Be(e == null ? void 0 : e.amount)));
|
|
45807
45808
|
const c = n == null ? void 0 : n.find((l) => l.denom === (t == null ? void 0 : t.denom));
|
|
@@ -45813,7 +45814,7 @@ const Rm = () => {
|
|
|
45813
45814
|
return !(e != null && e.amount ? Be(a).isGreaterThanOrEqualTo(Be(e == null ? void 0 : e.amount)) : !1);
|
|
45814
45815
|
}, ig = () => {
|
|
45815
45816
|
var c, a, r, l, s, h, D;
|
|
45816
|
-
const [e] = pe(
|
|
45817
|
+
const [e] = pe(be), n = Ye({
|
|
45817
45818
|
assetDenom: e == null ? void 0 : e.denom,
|
|
45818
45819
|
amount: e == null ? void 0 : e.amount,
|
|
45819
45820
|
chainId: e == null ? void 0 : e.chainID
|
|
@@ -45867,7 +45868,7 @@ const Rm = () => {
|
|
|
45867
45868
|
e && n(e);
|
|
45868
45869
|
};
|
|
45869
45870
|
}, tg = () => {
|
|
45870
|
-
const e = yt(), [n] = pe(
|
|
45871
|
+
const e = yt(), [n] = pe(be), [{ data: i }] = pe(Ee), o = ng();
|
|
45871
45872
|
if (!(n != null && n.amount)) return !1;
|
|
45872
45873
|
if (!e) return !0;
|
|
45873
45874
|
const t = i == null ? void 0 : i.find((c) => c.chainID === (n == null ? void 0 : n.chainID));
|
|
@@ -45883,7 +45884,7 @@ const Rm = () => {
|
|
|
45883
45884
|
}
|
|
45884
45885
|
)
|
|
45885
45886
|
] }), ag = () => {
|
|
45886
|
-
const e = L(
|
|
45887
|
+
const e = L(be), i = ui()(e == null ? void 0 : e.chainID), o = Ye({
|
|
45887
45888
|
assetDenom: e == null ? void 0 : e.denom,
|
|
45888
45889
|
amount: e == null ? void 0 : e.amount,
|
|
45889
45890
|
chainId: e == null ? void 0 : e.chainID
|
|
@@ -45988,7 +45989,7 @@ const Rm = () => {
|
|
|
45988
45989
|
e(void 0), n(void 0);
|
|
45989
45990
|
}, [n, e]);
|
|
45990
45991
|
}, lg = () => {
|
|
45991
|
-
const [e] = pe(Gn), [n] = pe(On), [i, o] = pe(
|
|
45992
|
+
const [e] = pe(Gn), [n] = pe(On), [i, o] = pe(be), [t, c] = pe(Ue);
|
|
45992
45993
|
ae(() => {
|
|
45993
45994
|
if (!e.data || !i || !t || (i == null ? void 0 : i.amount) === "" && n === "swap-in" || (t == null ? void 0 : t.amount) === "" && n === "swap-out") return;
|
|
45994
45995
|
const a = tn(
|
|
@@ -46016,7 +46017,7 @@ const Rm = () => {
|
|
|
46016
46017
|
}, [e.data, i, t, n, o, c]);
|
|
46017
46018
|
}, mg = () => {
|
|
46018
46019
|
var t;
|
|
46019
|
-
const { data: e } = L(Ee), n = L(
|
|
46020
|
+
const { data: e } = L(Ee), n = L(be), i = (t = e == null ? void 0 : e.find((c) => c.chainID === (n == null ? void 0 : n.chainID))) == null ? void 0 : t.chainType, o = ui();
|
|
46020
46021
|
return O(() => {
|
|
46021
46022
|
if (i !== R.Cosmos) return !1;
|
|
46022
46023
|
const c = o(n == null ? void 0 : n.chainID);
|
|
@@ -46026,7 +46027,7 @@ const Rm = () => {
|
|
|
46026
46027
|
var re;
|
|
46027
46028
|
const { SettingsFooter: e, drawerOpen: n } = Nm();
|
|
46028
46029
|
pe(RD), pe(OD);
|
|
46029
|
-
const [i, o] = pe(
|
|
46030
|
+
const [i, o] = pe(be), t = Y(go), c = Y(Dt), [a] = pe(lm), [r, l] = pe(Ue), [s] = pe(On), [{ data: h }] = pe(fn), D = Y(an), d = L(ro), g = tg(), A = Y(t2), x = Y(je), { isFetching: b, isPending: v } = L(ga), f = b && v, { data: y, isError: j, error: B } = L(Gn), I = mg(), T = L(la), p = ft(y), u = L(xt), C = L(mm), F = Y(Kn);
|
|
46030
46031
|
rg(), sg(), lg();
|
|
46031
46032
|
const w = Lm(), z = ui()(i == null ? void 0 : i.chainID), k = L(Bn), P = s2(y), E = ve(
|
|
46032
46033
|
(K, _) => {
|
|
@@ -46085,10 +46086,10 @@ const Rm = () => {
|
|
|
46085
46086
|
return nm(y.usdAmountIn, y.usdAmountOut);
|
|
46086
46087
|
}, [a, y == null ? void 0 : y.usdAmountIn, y == null ? void 0 : y.usdAmountOut]), te = O(() => {
|
|
46087
46088
|
if (!(i != null && i.chainID))
|
|
46088
|
-
return /* @__PURE__ */ m(
|
|
46089
|
+
return /* @__PURE__ */ m(xe, { label: "Please select a source asset", icon: J.swap, disabled: !0 });
|
|
46089
46090
|
if (!(z != null && z.address) && !d)
|
|
46090
46091
|
return /* @__PURE__ */ m(
|
|
46091
|
-
|
|
46092
|
+
xe,
|
|
46092
46093
|
{
|
|
46093
46094
|
label: "Connect Wallet",
|
|
46094
46095
|
icon: J.plus,
|
|
@@ -46100,20 +46101,20 @@ const Rm = () => {
|
|
|
46100
46101
|
}
|
|
46101
46102
|
);
|
|
46102
46103
|
if (!(r != null && r.chainID))
|
|
46103
|
-
return /* @__PURE__ */ m(
|
|
46104
|
+
return /* @__PURE__ */ m(xe, { label: "Please select a destination asset", icon: J.swap, disabled: !0 });
|
|
46104
46105
|
const K = !(i != null && i.amount) && !(r != null && r.amount), _ = (i == null ? void 0 : i.amount) === "0" || (r == null ? void 0 : r.amount) === "0";
|
|
46105
46106
|
if (K || _)
|
|
46106
|
-
return /* @__PURE__ */ m(
|
|
46107
|
+
return /* @__PURE__ */ m(xe, { label: "Please enter a valid amount", icon: J.swap, disabled: !0 });
|
|
46107
46108
|
if (a)
|
|
46108
|
-
return /* @__PURE__ */ m(
|
|
46109
|
+
return /* @__PURE__ */ m(xe, { label: "Finding best route", loading: !0 });
|
|
46109
46110
|
if (j) {
|
|
46110
46111
|
const Ne = (B == null ? void 0 : B.message) ?? "", Ve = Ne.startsWith("no single-tx routes found") ? "Multiple signature routes are currently only supported on the Skip:Go desktop app" : Ne, An = Ve.length > 36 ? 18 : 24;
|
|
46111
|
-
return /* @__PURE__ */ m(
|
|
46112
|
+
return /* @__PURE__ */ m(xe, { label: Ve || "No routes found", disabled: !0, fontSize: An });
|
|
46112
46113
|
}
|
|
46113
46114
|
if (f)
|
|
46114
|
-
return /* @__PURE__ */ m(
|
|
46115
|
+
return /* @__PURE__ */ m(xe, { label: "Fetching balances", loading: !0, icon: J.swap });
|
|
46115
46116
|
if (g)
|
|
46116
|
-
return /* @__PURE__ */ m(
|
|
46117
|
+
return /* @__PURE__ */ m(xe, { label: "Insufficient balance", disabled: !0, icon: J.swap });
|
|
46117
46118
|
const ke = () => {
|
|
46118
46119
|
var Ne, Ve;
|
|
46119
46120
|
if (V("swap page: continue button - clicked", {
|
|
@@ -46171,7 +46172,7 @@ const Rm = () => {
|
|
|
46171
46172
|
F({}), D(ze.SwapExecutionPage), ws({ username: z == null ? void 0 : z.address }), A();
|
|
46172
46173
|
};
|
|
46173
46174
|
return /* @__PURE__ */ m(
|
|
46174
|
-
|
|
46175
|
+
xe,
|
|
46175
46176
|
{
|
|
46176
46177
|
label: P ? "Swap" : "Send",
|
|
46177
46178
|
icon: J.swap,
|
|
@@ -47019,7 +47020,7 @@ const e3 = (e) => {
|
|
|
47019
47020
|
assetImage: i
|
|
47020
47021
|
}) => {
|
|
47021
47022
|
const o = Je();
|
|
47022
|
-
return /* @__PURE__ */ q(
|
|
47023
|
+
return /* @__PURE__ */ q(ge, { children: [
|
|
47023
47024
|
/* @__PURE__ */ m("img", { height: 20, width: 20, src: i }),
|
|
47024
47025
|
/* @__PURE__ */ m(X, { normalTextColor: !0, title: e, children: Bi(e) }),
|
|
47025
47026
|
!o && /* @__PURE__ */ m(X, { normalTextColor: !0, children: (n == null ? void 0 : n.recommendedSymbol) ?? (n == null ? void 0 : n.symbol) })
|
|
@@ -47260,7 +47261,7 @@ const x3 = () => {
|
|
|
47260
47261
|
replaysSessionSampleRate: 1,
|
|
47261
47262
|
replaysOnErrorSampleRate: 0
|
|
47262
47263
|
}), xs = !0);
|
|
47263
|
-
}, g3 = "@skip-go/widget", b3 = "Swap widget", Ca = "3.7.
|
|
47264
|
+
}, g3 = "@skip-go/widget", b3 = "Swap widget", Ca = "3.7.2", f3 = {
|
|
47264
47265
|
url: "https://github.com/skip-mev/skip-go",
|
|
47265
47266
|
directory: "packages/widget"
|
|
47266
47267
|
}, A3 = "module", C3 = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getAugmentedNamespace, c as commonjsGlobal, a as getDefaultExportFromCjs, p as process$1 } from "./index-
|
|
1
|
+
import { g as getAugmentedNamespace, c as commonjsGlobal, a as getDefaultExportFromCjs, p as process$1 } from "./index-DDa99K_H.js";
|
|
2
2
|
import qg, { PROPOSAL_EXPIRY_MESSAGE } from "@walletconnect/sign-client";
|
|
3
3
|
const global = globalThis || void 0 || self;
|
|
4
4
|
var buffer$1 = {}, base64Js = {};
|
package/build/index.js
CHANGED