@skip-go/widget 3.0.4 → 3.0.6
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/build/index.d.ts +7 -16
- package/build/index.js +416 -406
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -35901,7 +35901,20 @@ const {
|
|
|
35901
35901
|
splitRoutes: !0,
|
|
35902
35902
|
evmSwaps: !0
|
|
35903
35903
|
}
|
|
35904
|
-
}), px =
|
|
35904
|
+
}), px = (e) => {
|
|
35905
|
+
var n;
|
|
35906
|
+
return {
|
|
35907
|
+
...e,
|
|
35908
|
+
swapVenues: (n = e.swapVenues) == null ? void 0 : n.map((i) => ({
|
|
35909
|
+
...i,
|
|
35910
|
+
chainID: i.chainId
|
|
35911
|
+
})),
|
|
35912
|
+
swapVenue: e.swapVenue && {
|
|
35913
|
+
...e.swapVenue,
|
|
35914
|
+
chainID: e.swapVenue.chainId
|
|
35915
|
+
}
|
|
35916
|
+
};
|
|
35917
|
+
}, ux = pi((e) => {
|
|
35905
35918
|
const n = e(Sn), i = e(mx), o = e(Tn), t = e(ct), c = e(_e), a = e(Ml), s = i !== void 0 && (Number(i.amountIn) > 0 || Number(i.amountOut) > 0) && !t && o === Ue.SwapPage && c === void 0;
|
|
35906
35919
|
return {
|
|
35907
35920
|
queryKey: ["skipRoute", i],
|
|
@@ -35909,10 +35922,11 @@ const {
|
|
|
35909
35922
|
if (!i)
|
|
35910
35923
|
throw new Error("No route request provided");
|
|
35911
35924
|
try {
|
|
35925
|
+
const l = px(a);
|
|
35912
35926
|
return await n.route({
|
|
35913
35927
|
...i,
|
|
35914
35928
|
smartRelay: !0,
|
|
35915
|
-
...
|
|
35929
|
+
...l
|
|
35916
35930
|
});
|
|
35917
35931
|
} catch (l) {
|
|
35918
35932
|
return {
|
|
@@ -35926,7 +35940,7 @@ const {
|
|
|
35926
35940
|
refetchInterval: 1e3 * 30
|
|
35927
35941
|
};
|
|
35928
35942
|
}), Ji = ee((e) => {
|
|
35929
|
-
const { data: n, isError: i, error: o, isLoading: t } = e(
|
|
35943
|
+
const { data: n, isError: i, error: o, isLoading: t } = e(ux), c = n, a = n;
|
|
35930
35944
|
return c != null && c.isError ? {
|
|
35931
35945
|
data: void 0,
|
|
35932
35946
|
isError: !0,
|
|
@@ -35938,7 +35952,7 @@ const {
|
|
|
35938
35952
|
error: o,
|
|
35939
35953
|
isLoading: t
|
|
35940
35954
|
};
|
|
35941
|
-
}),
|
|
35955
|
+
}), hx = ({ color: e = "currentColor", ...n }) => /* @__PURE__ */ r.jsx(
|
|
35942
35956
|
"svg",
|
|
35943
35957
|
{
|
|
35944
35958
|
width: "10",
|
|
@@ -35986,9 +36000,9 @@ const {
|
|
|
35986
36000
|
i && s && /* @__PURE__ */ r.jsxs(U, { gap: 6, align: "center", children: [
|
|
35987
36001
|
/* @__PURE__ */ r.jsx(nx, {}),
|
|
35988
36002
|
s,
|
|
35989
|
-
/* @__PURE__ */ r.jsxs(
|
|
35990
|
-
/* @__PURE__ */ r.jsx(
|
|
35991
|
-
a && /* @__PURE__ */ r.jsx(
|
|
36003
|
+
/* @__PURE__ */ r.jsxs(dx, { children: [
|
|
36004
|
+
/* @__PURE__ */ r.jsx(hx, { height: 13, width: 13 }),
|
|
36005
|
+
a && /* @__PURE__ */ r.jsx(xx, {})
|
|
35992
36006
|
] })
|
|
35993
36007
|
] })
|
|
35994
36008
|
] });
|
|
@@ -36032,10 +36046,10 @@ const {
|
|
|
36032
36046
|
}
|
|
36033
36047
|
), zl = V(U)`
|
|
36034
36048
|
${({ theme: e }) => `color: ${e.warning.text}`};
|
|
36035
|
-
`,
|
|
36049
|
+
`, dx = V.div`
|
|
36036
36050
|
position: relative;
|
|
36037
36051
|
display: inline-block;
|
|
36038
|
-
`,
|
|
36052
|
+
`, xx = V.div`
|
|
36039
36053
|
position: absolute;
|
|
36040
36054
|
top: -2px;
|
|
36041
36055
|
right: -2px;
|
|
@@ -36049,7 +36063,7 @@ const {
|
|
|
36049
36063
|
onClick: i,
|
|
36050
36064
|
style: o
|
|
36051
36065
|
}) => /* @__PURE__ */ r.jsxs(
|
|
36052
|
-
|
|
36066
|
+
Dx,
|
|
36053
36067
|
{
|
|
36054
36068
|
as: "button",
|
|
36055
36069
|
align: "center",
|
|
@@ -36062,7 +36076,7 @@ const {
|
|
|
36062
36076
|
typeof n == "string" ? /* @__PURE__ */ r.jsx(Pe, { fontSize: 20, children: n }) : n
|
|
36063
36077
|
]
|
|
36064
36078
|
}
|
|
36065
|
-
),
|
|
36079
|
+
), Dx = V(U)`
|
|
36066
36080
|
${Co};
|
|
36067
36081
|
width: 100%;
|
|
36068
36082
|
height: 60px;
|
|
@@ -36107,10 +36121,10 @@ const {
|
|
|
36107
36121
|
var u;
|
|
36108
36122
|
(u = h.current) == null || u.scrollTo(0);
|
|
36109
36123
|
}, 0);
|
|
36110
|
-
}, [e.length]), e.length === 0 ? /* @__PURE__ */ r.jsx(
|
|
36124
|
+
}, [e.length]), e.length === 0 ? /* @__PURE__ */ r.jsx(gx, { align: "center", justify: "center", children: /* @__PURE__ */ r.jsxs(fx, { gap: 10, children: [
|
|
36111
36125
|
a == null ? void 0 : a.icon,
|
|
36112
36126
|
/* @__PURE__ */ r.jsx(G, { fontSize: 22, children: a == null ? void 0 : a.header }),
|
|
36113
|
-
/* @__PURE__ */ r.jsx(
|
|
36127
|
+
/* @__PURE__ */ r.jsx(bx, { children: a == null ? void 0 : a.details })
|
|
36114
36128
|
] }) }) : /* @__PURE__ */ r.jsx(
|
|
36115
36129
|
dp,
|
|
36116
36130
|
{
|
|
@@ -36133,15 +36147,15 @@ const {
|
|
|
36133
36147
|
children: (u, D) => o(u, D)
|
|
36134
36148
|
}
|
|
36135
36149
|
);
|
|
36136
|
-
},
|
|
36150
|
+
}, gx = V(re)`
|
|
36137
36151
|
height: 100%;
|
|
36138
36152
|
width: 100%;
|
|
36139
|
-
`,
|
|
36153
|
+
`, fx = V(re)`
|
|
36140
36154
|
width: 50%;
|
|
36141
36155
|
text-align: center;
|
|
36142
36156
|
align-items: center;
|
|
36143
36157
|
justify-content: center;
|
|
36144
|
-
`,
|
|
36158
|
+
`, bx = V(G)`
|
|
36145
36159
|
white-space: pre-line;
|
|
36146
36160
|
`, Xn = Dl(
|
|
36147
36161
|
"transactionHistory",
|
|
@@ -36152,7 +36166,7 @@ const {
|
|
|
36152
36166
|
const t = e(Xn), c = (t == null ? void 0 : t[i]) ?? {}, a = t;
|
|
36153
36167
|
a[i] = { ...c, ...o }, n(Xn, a);
|
|
36154
36168
|
}
|
|
36155
|
-
),
|
|
36169
|
+
), Ax = ee(
|
|
36156
36170
|
null,
|
|
36157
36171
|
(e, n, i) => {
|
|
36158
36172
|
const o = e(Xn);
|
|
@@ -36182,13 +36196,13 @@ pi((e) => {
|
|
|
36182
36196
|
keepPreviousData: !0
|
|
36183
36197
|
};
|
|
36184
36198
|
});
|
|
36185
|
-
function
|
|
36199
|
+
function Cx(e) {
|
|
36186
36200
|
return !!(e instanceof Error && // keplr | metamask
|
|
36187
36201
|
(e.message.toLowerCase().includes("rejected") || // leap
|
|
36188
36202
|
e.message.toLowerCase().includes("declined") || e.message.toLowerCase().includes("denied") || // @ts-expect-error common user rejected request error code
|
|
36189
36203
|
e.code === 4001));
|
|
36190
36204
|
}
|
|
36191
|
-
const
|
|
36205
|
+
const kx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
36192
36206
|
var o, t, c, a;
|
|
36193
36207
|
if (i)
|
|
36194
36208
|
switch (i) {
|
|
@@ -36217,7 +36231,7 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36217
36231
|
}
|
|
36218
36232
|
), so = ee(null, (e, n, i) => {
|
|
36219
36233
|
n(pn, (o) => ({ ...o, overallStatus: i }));
|
|
36220
|
-
}),
|
|
36234
|
+
}), vx = ee(null, (e, n) => {
|
|
36221
36235
|
const { data: i } = e(Ji), { data: o } = e(Te), c = e(Xn).length;
|
|
36222
36236
|
i && (n(pn, {
|
|
36223
36237
|
userAddresses: [],
|
|
@@ -36231,12 +36245,12 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36231
36245
|
a.isTxCompleted || n(Ir, a, c);
|
|
36232
36246
|
},
|
|
36233
36247
|
onTransactionSigned: async (a) => {
|
|
36234
|
-
const s = o == null ? void 0 : o.find((m) => m.chainID === a.chainID), l =
|
|
36248
|
+
const s = o == null ? void 0 : o.find((m) => m.chainID === a.chainID), l = kx({ chainID: a.chainID, chainType: s == null ? void 0 : s.chainType, txHash: a.txHash });
|
|
36235
36249
|
n(Ir, { ...a, explorerLink: l, status: void 0 }, c);
|
|
36236
36250
|
},
|
|
36237
36251
|
onError: (a, s) => {
|
|
36238
36252
|
const l = s == null ? void 0 : s[(s == null ? void 0 : s.length) - 1];
|
|
36239
|
-
|
|
36253
|
+
Cx(a) ? n(_e, {
|
|
36240
36254
|
errorType: Le.AuthFailed,
|
|
36241
36255
|
onClickBack: () => {
|
|
36242
36256
|
n(so, "unconfirmed");
|
|
@@ -36260,10 +36274,10 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36260
36274
|
});
|
|
36261
36275
|
},
|
|
36262
36276
|
onValidateGasBalance: async (a) => {
|
|
36263
|
-
n(
|
|
36277
|
+
n(wx, a);
|
|
36264
36278
|
}
|
|
36265
36279
|
}));
|
|
36266
|
-
}),
|
|
36280
|
+
}), wx = ee(null, (e, n, i) => {
|
|
36267
36281
|
n(pn, (o) => ({ ...o, isValidatingGasBalance: i }));
|
|
36268
36282
|
}), Ir = ee(
|
|
36269
36283
|
null,
|
|
@@ -36284,7 +36298,7 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36284
36298
|
status: "unconfirmed"
|
|
36285
36299
|
});
|
|
36286
36300
|
}
|
|
36287
|
-
),
|
|
36301
|
+
), yx = es((e, n) => {
|
|
36288
36302
|
const i = e(En);
|
|
36289
36303
|
if (!Object.values(i).every(
|
|
36290
36304
|
(t) => !!t.address
|
|
@@ -36350,7 +36364,7 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36350
36364
|
console.error(s), (l = c == null ? void 0 : c.onError) == null || l.call(c, s, t);
|
|
36351
36365
|
}
|
|
36352
36366
|
};
|
|
36353
|
-
}),
|
|
36367
|
+
}), Ex = [
|
|
36354
36368
|
"90u-4",
|
|
36355
36369
|
"FUND-MainNet-2",
|
|
36356
36370
|
"HICKORY",
|
|
@@ -36529,7 +36543,7 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36529
36543
|
"xion-testnet-1",
|
|
36530
36544
|
"yulei-2.1",
|
|
36531
36545
|
"zetachain_7000-1"
|
|
36532
|
-
],
|
|
36546
|
+
], Px = [
|
|
36533
36547
|
"cosmoshub-4",
|
|
36534
36548
|
"injective-1",
|
|
36535
36549
|
"pacific-1",
|
|
@@ -36539,7 +36553,7 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36539
36553
|
"pryzm-1",
|
|
36540
36554
|
"axelar-dojo-1",
|
|
36541
36555
|
"chihuahua-1"
|
|
36542
|
-
],
|
|
36556
|
+
], Fx = {
|
|
36543
36557
|
[we.KEPLR]: {
|
|
36544
36558
|
name: "Keplr",
|
|
36545
36559
|
imgSrc: "https://raw.githubusercontent.com/graz-sh/graz/dev/example/starter/public/assets/wallet-icon-keplr.png"
|
|
@@ -36603,7 +36617,7 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36603
36617
|
name: "Compass",
|
|
36604
36618
|
imgSrc: "https://raw.githubusercontent.com/graz-sh/graz/dev/example/starter/public/assets/wallet-icon-compass.png"
|
|
36605
36619
|
}
|
|
36606
|
-
}, Hl = (e) =>
|
|
36620
|
+
}, Hl = (e) => Fx[e], hi = () => {
|
|
36607
36621
|
const e = X(Nc), [n, i] = ue(Sc), [o, t] = ue(Hc), [c, a] = ue(Tc), { data: s } = X(Te), { data: l, walletType: m } = Yr({
|
|
36608
36622
|
multiChain: !0
|
|
36609
36623
|
}), h = Gc.find(
|
|
@@ -36760,7 +36774,7 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36760
36774
|
const x = l === "destination" && t, g = x ? ({ children: M }) => /* @__PURE__ */ r.jsx(U, { gap: 5, children: M }) : $e.Fragment;
|
|
36761
36775
|
if (k.address)
|
|
36762
36776
|
return /* @__PURE__ */ r.jsxs(g, { children: [
|
|
36763
|
-
/* @__PURE__ */ r.jsxs(
|
|
36777
|
+
/* @__PURE__ */ r.jsxs(Mx, { onClick: () => vt(k.address), children: [
|
|
36764
36778
|
k.image && /* @__PURE__ */ r.jsx(
|
|
36765
36779
|
"img",
|
|
36766
36780
|
{
|
|
@@ -36770,7 +36784,7 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36770
36784
|
}
|
|
36771
36785
|
}
|
|
36772
36786
|
),
|
|
36773
|
-
/* @__PURE__ */ r.jsx(
|
|
36787
|
+
/* @__PURE__ */ r.jsx(Bx, { title: k.address, monospace: !0, children: zi(k.address) })
|
|
36774
36788
|
] }),
|
|
36775
36789
|
x && /* @__PURE__ */ r.jsx(xn, { align: "center", onClick: t, children: /* @__PURE__ */ r.jsx(_c, { color: h.primary.text.lowContrast }) })
|
|
36776
36790
|
] });
|
|
@@ -36790,7 +36804,7 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36790
36804
|
backgroundColor: h.success.text,
|
|
36791
36805
|
status: o,
|
|
36792
36806
|
children: /* @__PURE__ */ r.jsx(
|
|
36793
|
-
|
|
36807
|
+
zx,
|
|
36794
36808
|
{
|
|
36795
36809
|
height: 30,
|
|
36796
36810
|
width: 30,
|
|
@@ -36810,9 +36824,9 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36810
36824
|
children: /* @__PURE__ */ r.jsxs(U, { align: "center", justify: "space-between", children: [
|
|
36811
36825
|
/* @__PURE__ */ r.jsxs(re, { children: [
|
|
36812
36826
|
/* @__PURE__ */ r.jsxs(U, { gap: 5, children: [
|
|
36813
|
-
/* @__PURE__ */ r.jsx(
|
|
36814
|
-
/* @__PURE__ */ r.jsx(
|
|
36815
|
-
/* @__PURE__ */ r.jsxs(
|
|
36827
|
+
/* @__PURE__ */ r.jsx(Sx, { normalTextColor: !0, title: u == null ? void 0 : u.amount, children: u == null ? void 0 : u.amount }),
|
|
36828
|
+
/* @__PURE__ */ r.jsx(jx, { normalTextColor: !0, children: u == null ? void 0 : u.symbol }),
|
|
36829
|
+
/* @__PURE__ */ r.jsxs(Hx, { title: u == null ? void 0 : u.chainName, children: [
|
|
36816
36830
|
" ",
|
|
36817
36831
|
"on ",
|
|
36818
36832
|
u == null ? void 0 : u.chainName
|
|
@@ -36827,9 +36841,9 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36827
36841
|
}
|
|
36828
36842
|
)
|
|
36829
36843
|
] });
|
|
36830
|
-
},
|
|
36844
|
+
}, Bx = V(G)`
|
|
36831
36845
|
text-transform: lowercase;
|
|
36832
|
-
`,
|
|
36846
|
+
`, Mx = V(xn)`
|
|
36833
36847
|
padding: 5px 8px;
|
|
36834
36848
|
height: 28px;
|
|
36835
36849
|
border-radius: 30px;
|
|
@@ -36837,11 +36851,11 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36837
36851
|
background-color: ${({ theme: e }) => e.secondary.background.normal};
|
|
36838
36852
|
gap: 4px;
|
|
36839
36853
|
align-items: center;
|
|
36840
|
-
`,
|
|
36854
|
+
`, jx = V(G)`
|
|
36841
36855
|
max-width: 90px;
|
|
36842
36856
|
overflow: hidden;
|
|
36843
36857
|
text-overflow: ellipsis;
|
|
36844
|
-
`,
|
|
36858
|
+
`, zx = V.img`
|
|
36845
36859
|
border-radius: 50%;
|
|
36846
36860
|
box-sizing: content-box;
|
|
36847
36861
|
`, yt = ({
|
|
@@ -36852,7 +36866,7 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36852
36866
|
borderSize: t = 2,
|
|
36853
36867
|
status: c
|
|
36854
36868
|
}) => /* @__PURE__ */ r.jsx(
|
|
36855
|
-
|
|
36869
|
+
qx,
|
|
36856
36870
|
{
|
|
36857
36871
|
align: "center",
|
|
36858
36872
|
justify: "center",
|
|
@@ -36862,7 +36876,7 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36862
36876
|
status: c,
|
|
36863
36877
|
backgroundColor: e,
|
|
36864
36878
|
children: /* @__PURE__ */ r.jsx(
|
|
36865
|
-
|
|
36879
|
+
Ix,
|
|
36866
36880
|
{
|
|
36867
36881
|
className: "overlay",
|
|
36868
36882
|
justify: "space-between",
|
|
@@ -36873,7 +36887,7 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36873
36887
|
}
|
|
36874
36888
|
)
|
|
36875
36889
|
}
|
|
36876
|
-
),
|
|
36890
|
+
), qx = V(U)`
|
|
36877
36891
|
position: relative;
|
|
36878
36892
|
overflow: hidden;
|
|
36879
36893
|
height: ${({ height: e, borderSize: n }) => e + n * 2}px;
|
|
@@ -36913,17 +36927,17 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36913
36927
|
transform: rotate(360deg);
|
|
36914
36928
|
}
|
|
36915
36929
|
}
|
|
36916
|
-
`,
|
|
36930
|
+
`, Ix = V(U)`
|
|
36917
36931
|
width: ${({ width: e }) => e}px;
|
|
36918
36932
|
height: ${({ height: e }) => e}px;
|
|
36919
36933
|
position: absolute;
|
|
36920
36934
|
border-radius: 50%;
|
|
36921
36935
|
background-color: ${({ theme: e }) => e.primary.background.normal};
|
|
36922
|
-
`,
|
|
36936
|
+
`, Sx = V(G)`
|
|
36923
36937
|
max-width: 90px;
|
|
36924
36938
|
text-overflow: ellipsis;
|
|
36925
36939
|
overflow: hidden;
|
|
36926
|
-
`,
|
|
36940
|
+
`, Hx = V(G)`
|
|
36927
36941
|
max-width: 95px;
|
|
36928
36942
|
text-overflow: ellipsis;
|
|
36929
36943
|
overflow: hidden;
|
|
@@ -36934,15 +36948,15 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36934
36948
|
rightContent: i
|
|
36935
36949
|
}) => {
|
|
36936
36950
|
const o = ke();
|
|
36937
|
-
return /* @__PURE__ */ r.jsxs(
|
|
36951
|
+
return /* @__PURE__ */ r.jsxs(Tx, { align: "center", justify: "space-between", children: [
|
|
36938
36952
|
/* @__PURE__ */ r.jsx(xn, { onClick: () => n(), children: /* @__PURE__ */ r.jsx(
|
|
36939
|
-
|
|
36953
|
+
Nx,
|
|
36940
36954
|
{
|
|
36941
36955
|
color: o == null ? void 0 : o.primary.background.normal,
|
|
36942
36956
|
backgroundColor: o == null ? void 0 : o.primary.text.normal
|
|
36943
36957
|
}
|
|
36944
36958
|
) }),
|
|
36945
|
-
/* @__PURE__ */ r.jsx(
|
|
36959
|
+
/* @__PURE__ */ r.jsx(Vx, { textAlign: "center", children: e }),
|
|
36946
36960
|
i == null ? void 0 : i()
|
|
36947
36961
|
] });
|
|
36948
36962
|
}, Tl = V(re)`
|
|
@@ -36958,18 +36972,18 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
36958
36972
|
width: 100%;
|
|
36959
36973
|
align-items: center;
|
|
36960
36974
|
justify-content: center;
|
|
36961
|
-
`,
|
|
36975
|
+
`, Tx = V(U)`
|
|
36962
36976
|
height: 40px;
|
|
36963
36977
|
margin-top: 10px;
|
|
36964
36978
|
padding: 0 12px;
|
|
36965
|
-
`,
|
|
36979
|
+
`, Nx = V(Yc)`
|
|
36966
36980
|
opacity: 0.2;
|
|
36967
|
-
`,
|
|
36981
|
+
`, Vx = V(Pe)`
|
|
36968
36982
|
position: absolute;
|
|
36969
36983
|
left: 50%;
|
|
36970
36984
|
transform: translateX(-50%);
|
|
36971
36985
|
margin: 0;
|
|
36972
|
-
`,
|
|
36986
|
+
`, Rx = (e) => e.onSelect !== void 0, Ho = (e) => e.connect !== void 0, Hr = 60, To = 5, Vl = ({
|
|
36973
36987
|
title: e,
|
|
36974
36988
|
walletList: n,
|
|
36975
36989
|
onClickBackButton: i,
|
|
@@ -37013,7 +37027,7 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
37013
37027
|
}
|
|
37014
37028
|
}), b = ze(
|
|
37015
37029
|
(x) => {
|
|
37016
|
-
const g = Ho(x) ? x.walletPrettyName ?? x.walletName : x.walletName, M = Ho(x) ? x.walletInfo.logo : void 0, H =
|
|
37030
|
+
const g = Ho(x) ? x.walletPrettyName ?? x.walletName : x.walletName, M = Ho(x) ? x.walletInfo.logo : void 0, H = Rx(x) ? x.rightContent : void 0, P = Ho(x) ? x.isAvailable : void 0, S = () => {
|
|
37017
37031
|
Ho(x) ? D.mutate(x) : x.onSelect();
|
|
37018
37032
|
};
|
|
37019
37033
|
return x.walletName === "prax" ? /* @__PURE__ */ r.jsx(
|
|
@@ -37068,7 +37082,7 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
37068
37082
|
var x, g, M;
|
|
37069
37083
|
if (D.isError || D.isPending) {
|
|
37070
37084
|
const H = D.isError ? "Failed to connect" : "Connecting to";
|
|
37071
|
-
return /* @__PURE__ */ r.jsx(Nl, { height: C, children: /* @__PURE__ */ r.jsxs(
|
|
37085
|
+
return /* @__PURE__ */ r.jsx(Nl, { height: C, children: /* @__PURE__ */ r.jsxs(Lx, { children: [
|
|
37072
37086
|
/* @__PURE__ */ r.jsx(
|
|
37073
37087
|
yt,
|
|
37074
37088
|
{
|
|
@@ -37138,7 +37152,7 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
37138
37152
|
),
|
|
37139
37153
|
k
|
|
37140
37154
|
] });
|
|
37141
|
-
},
|
|
37155
|
+
}, Lx = V(re)`
|
|
37142
37156
|
align-items: center;
|
|
37143
37157
|
justify-content: center;
|
|
37144
37158
|
gap: 10px;
|
|
@@ -37147,7 +37161,7 @@ const Cx = ({ chainID: e, txHash: n, chainType: i }) => {
|
|
|
37147
37161
|
var Rl = {}, Ii = {};
|
|
37148
37162
|
Object.defineProperty(Ii, "__esModule", { value: !0 });
|
|
37149
37163
|
Ii.fromAscii = Ii.toAscii = void 0;
|
|
37150
|
-
function
|
|
37164
|
+
function Ox(e) {
|
|
37151
37165
|
const n = (i) => i.split("").map((o) => {
|
|
37152
37166
|
const t = o.charCodeAt(0);
|
|
37153
37167
|
if (t < 32 || t > 126)
|
|
@@ -37156,21 +37170,21 @@ function Lx(e) {
|
|
|
37156
37170
|
});
|
|
37157
37171
|
return Uint8Array.from(n(e));
|
|
37158
37172
|
}
|
|
37159
|
-
Ii.toAscii =
|
|
37160
|
-
function
|
|
37173
|
+
Ii.toAscii = Ox;
|
|
37174
|
+
function Ux(e) {
|
|
37161
37175
|
return ((i) => i.map((o) => {
|
|
37162
37176
|
if (o < 32 || o > 126)
|
|
37163
37177
|
throw new Error("Cannot decode character that is out of printable ASCII range: " + o);
|
|
37164
37178
|
return String.fromCharCode(o);
|
|
37165
37179
|
}))(Array.from(e)).join("");
|
|
37166
37180
|
}
|
|
37167
|
-
Ii.fromAscii =
|
|
37181
|
+
Ii.fromAscii = Ux;
|
|
37168
37182
|
var Si = {}, Et = {};
|
|
37169
|
-
Et.byteLength =
|
|
37170
|
-
Et.toByteArray =
|
|
37171
|
-
Et.fromByteArray =
|
|
37172
|
-
var kn = [], an = [],
|
|
37173
|
-
for (var fi = 0,
|
|
37183
|
+
Et.byteLength = Jx;
|
|
37184
|
+
Et.toByteArray = Xx;
|
|
37185
|
+
Et.fromByteArray = Qx;
|
|
37186
|
+
var kn = [], an = [], Wx = typeof Uint8Array < "u" ? Uint8Array : Array, Zt = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
37187
|
+
for (var fi = 0, Gx = Zt.length; fi < Gx; ++fi)
|
|
37174
37188
|
kn[fi] = Zt[fi], an[Zt.charCodeAt(fi)] = fi;
|
|
37175
37189
|
an[45] = 62;
|
|
37176
37190
|
an[95] = 63;
|
|
@@ -37183,37 +37197,37 @@ function Ll(e) {
|
|
|
37183
37197
|
var o = i === n ? 0 : 4 - i % 4;
|
|
37184
37198
|
return [i, o];
|
|
37185
37199
|
}
|
|
37186
|
-
function
|
|
37200
|
+
function Jx(e) {
|
|
37187
37201
|
var n = Ll(e), i = n[0], o = n[1];
|
|
37188
37202
|
return (i + o) * 3 / 4 - o;
|
|
37189
37203
|
}
|
|
37190
|
-
function
|
|
37204
|
+
function Kx(e, n, i) {
|
|
37191
37205
|
return (n + i) * 3 / 4 - i;
|
|
37192
37206
|
}
|
|
37193
|
-
function
|
|
37194
|
-
var n, i = Ll(e), o = i[0], t = i[1], c = new
|
|
37207
|
+
function Xx(e) {
|
|
37208
|
+
var n, i = Ll(e), o = i[0], t = i[1], c = new Wx(Kx(e, o, t)), a = 0, s = t > 0 ? o - 4 : o, l;
|
|
37195
37209
|
for (l = 0; l < s; l += 4)
|
|
37196
37210
|
n = an[e.charCodeAt(l)] << 18 | an[e.charCodeAt(l + 1)] << 12 | an[e.charCodeAt(l + 2)] << 6 | an[e.charCodeAt(l + 3)], c[a++] = n >> 16 & 255, c[a++] = n >> 8 & 255, c[a++] = n & 255;
|
|
37197
37211
|
return t === 2 && (n = an[e.charCodeAt(l)] << 2 | an[e.charCodeAt(l + 1)] >> 4, c[a++] = n & 255), t === 1 && (n = an[e.charCodeAt(l)] << 10 | an[e.charCodeAt(l + 1)] << 4 | an[e.charCodeAt(l + 2)] >> 2, c[a++] = n >> 8 & 255, c[a++] = n & 255), c;
|
|
37198
37212
|
}
|
|
37199
|
-
function
|
|
37213
|
+
function Zx(e) {
|
|
37200
37214
|
return kn[e >> 18 & 63] + kn[e >> 12 & 63] + kn[e >> 6 & 63] + kn[e & 63];
|
|
37201
37215
|
}
|
|
37202
|
-
function
|
|
37216
|
+
function Yx(e, n, i) {
|
|
37203
37217
|
for (var o, t = [], c = n; c < i; c += 3)
|
|
37204
|
-
o = (e[c] << 16 & 16711680) + (e[c + 1] << 8 & 65280) + (e[c + 2] & 255), t.push(
|
|
37218
|
+
o = (e[c] << 16 & 16711680) + (e[c + 1] << 8 & 65280) + (e[c + 2] & 255), t.push(Zx(o));
|
|
37205
37219
|
return t.join("");
|
|
37206
37220
|
}
|
|
37207
|
-
function
|
|
37221
|
+
function Qx(e) {
|
|
37208
37222
|
for (var n, i = e.length, o = i % 3, t = [], c = 16383, a = 0, s = i - o; a < s; a += c)
|
|
37209
|
-
t.push(
|
|
37223
|
+
t.push(Yx(e, a, a + c > s ? s : a + c));
|
|
37210
37224
|
return o === 1 ? (n = e[i - 1], t.push(
|
|
37211
37225
|
kn[n >> 2] + kn[n << 4 & 63] + "=="
|
|
37212
37226
|
)) : o === 2 && (n = (e[i - 2] << 8) + e[i - 1], t.push(
|
|
37213
37227
|
kn[n >> 10] + kn[n >> 4 & 63] + kn[n << 2 & 63] + "="
|
|
37214
37228
|
)), t.join("");
|
|
37215
37229
|
}
|
|
37216
|
-
var
|
|
37230
|
+
var _x = ln && ln.__createBinding || (Object.create ? function(e, n, i, o) {
|
|
37217
37231
|
o === void 0 && (o = i);
|
|
37218
37232
|
var t = Object.getOwnPropertyDescriptor(n, i);
|
|
37219
37233
|
(!t || ("get" in t ? !n.__esModule : t.writable || t.configurable)) && (t = { enumerable: !0, get: function() {
|
|
@@ -37221,29 +37235,29 @@ var Qx = ln && ln.__createBinding || (Object.create ? function(e, n, i, o) {
|
|
|
37221
37235
|
} }), Object.defineProperty(e, o, t);
|
|
37222
37236
|
} : function(e, n, i, o) {
|
|
37223
37237
|
o === void 0 && (o = i), e[o] = n[i];
|
|
37224
|
-
}),
|
|
37238
|
+
}), $x = ln && ln.__setModuleDefault || (Object.create ? function(e, n) {
|
|
37225
37239
|
Object.defineProperty(e, "default", { enumerable: !0, value: n });
|
|
37226
37240
|
} : function(e, n) {
|
|
37227
37241
|
e.default = n;
|
|
37228
|
-
}),
|
|
37242
|
+
}), eD = ln && ln.__importStar || function(e) {
|
|
37229
37243
|
if (e && e.__esModule) return e;
|
|
37230
37244
|
var n = {};
|
|
37231
|
-
if (e != null) for (var i in e) i !== "default" && Object.prototype.hasOwnProperty.call(e, i) &&
|
|
37232
|
-
return
|
|
37245
|
+
if (e != null) for (var i in e) i !== "default" && Object.prototype.hasOwnProperty.call(e, i) && _x(n, e, i);
|
|
37246
|
+
return $x(n, e), n;
|
|
37233
37247
|
};
|
|
37234
37248
|
Object.defineProperty(Si, "__esModule", { value: !0 });
|
|
37235
37249
|
Si.fromBase64 = Si.toBase64 = void 0;
|
|
37236
|
-
const Ol =
|
|
37237
|
-
function
|
|
37250
|
+
const Ol = eD(Et);
|
|
37251
|
+
function nD(e) {
|
|
37238
37252
|
return Ol.fromByteArray(e);
|
|
37239
37253
|
}
|
|
37240
|
-
Si.toBase64 =
|
|
37241
|
-
function
|
|
37254
|
+
Si.toBase64 = nD;
|
|
37255
|
+
function iD(e) {
|
|
37242
37256
|
if (!e.match(/^[a-zA-Z0-9+/]*={0,2}$/))
|
|
37243
37257
|
throw new Error("Invalid base64 string format");
|
|
37244
37258
|
return Ol.toByteArray(e);
|
|
37245
37259
|
}
|
|
37246
|
-
Si.fromBase64 =
|
|
37260
|
+
Si.fromBase64 = iD;
|
|
37247
37261
|
var Wn = {}, rt = "qpzry9x8gf2tvdw0s3jn54khce6mua7l", Ac = {};
|
|
37248
37262
|
for (var No = 0; No < rt.length; No++) {
|
|
37249
37263
|
var Yt = rt.charAt(No);
|
|
@@ -37266,7 +37280,7 @@ function Ul(e) {
|
|
|
37266
37280
|
}
|
|
37267
37281
|
return n;
|
|
37268
37282
|
}
|
|
37269
|
-
function
|
|
37283
|
+
function oD(e, n, i) {
|
|
37270
37284
|
if (i = i || 90, e.length + 7 + n.length > i) throw new TypeError("Exceeds length limit");
|
|
37271
37285
|
e = e.toLowerCase();
|
|
37272
37286
|
var o = Ul(e);
|
|
@@ -37304,11 +37318,11 @@ function Wl(e, n) {
|
|
|
37304
37318
|
}
|
|
37305
37319
|
return s !== 1 ? "Invalid checksum for " + e : { prefix: c, words: l };
|
|
37306
37320
|
}
|
|
37307
|
-
function
|
|
37321
|
+
function tD() {
|
|
37308
37322
|
var e = Wl.apply(null, arguments);
|
|
37309
37323
|
if (typeof e == "object") return e;
|
|
37310
37324
|
}
|
|
37311
|
-
function
|
|
37325
|
+
function cD(e) {
|
|
37312
37326
|
var n = Wl.apply(null, arguments);
|
|
37313
37327
|
if (typeof n == "object") return n;
|
|
37314
37328
|
throw new Error(n);
|
|
@@ -37325,33 +37339,33 @@ function Pt(e, n, i, o) {
|
|
|
37325
37339
|
}
|
|
37326
37340
|
return s;
|
|
37327
37341
|
}
|
|
37328
|
-
function
|
|
37342
|
+
function aD(e) {
|
|
37329
37343
|
var n = Pt(e, 8, 5, !0);
|
|
37330
37344
|
if (Array.isArray(n)) return n;
|
|
37331
37345
|
}
|
|
37332
|
-
function
|
|
37346
|
+
function rD(e) {
|
|
37333
37347
|
var n = Pt(e, 8, 5, !0);
|
|
37334
37348
|
if (Array.isArray(n)) return n;
|
|
37335
37349
|
throw new Error(n);
|
|
37336
37350
|
}
|
|
37337
|
-
function
|
|
37351
|
+
function sD(e) {
|
|
37338
37352
|
var n = Pt(e, 5, 8, !1);
|
|
37339
37353
|
if (Array.isArray(n)) return n;
|
|
37340
37354
|
}
|
|
37341
|
-
function
|
|
37355
|
+
function lD(e) {
|
|
37342
37356
|
var n = Pt(e, 5, 8, !1);
|
|
37343
37357
|
if (Array.isArray(n)) return n;
|
|
37344
37358
|
throw new Error(n);
|
|
37345
37359
|
}
|
|
37346
|
-
var
|
|
37347
|
-
decodeUnsafe:
|
|
37348
|
-
decode:
|
|
37349
|
-
encode:
|
|
37350
|
-
toWordsUnsafe:
|
|
37351
|
-
toWords:
|
|
37352
|
-
fromWordsUnsafe:
|
|
37353
|
-
fromWords:
|
|
37354
|
-
},
|
|
37360
|
+
var mD = {
|
|
37361
|
+
decodeUnsafe: tD,
|
|
37362
|
+
decode: cD,
|
|
37363
|
+
encode: oD,
|
|
37364
|
+
toWordsUnsafe: aD,
|
|
37365
|
+
toWords: rD,
|
|
37366
|
+
fromWordsUnsafe: sD,
|
|
37367
|
+
fromWords: lD
|
|
37368
|
+
}, pD = ln && ln.__createBinding || (Object.create ? function(e, n, i, o) {
|
|
37355
37369
|
o === void 0 && (o = i);
|
|
37356
37370
|
var t = Object.getOwnPropertyDescriptor(n, i);
|
|
37357
37371
|
(!t || ("get" in t ? !n.__esModule : t.writable || t.configurable)) && (t = { enumerable: !0, get: function() {
|
|
@@ -37359,19 +37373,19 @@ var lD = {
|
|
|
37359
37373
|
} }), Object.defineProperty(e, o, t);
|
|
37360
37374
|
} : function(e, n, i, o) {
|
|
37361
37375
|
o === void 0 && (o = i), e[o] = n[i];
|
|
37362
|
-
}),
|
|
37376
|
+
}), uD = ln && ln.__setModuleDefault || (Object.create ? function(e, n) {
|
|
37363
37377
|
Object.defineProperty(e, "default", { enumerable: !0, value: n });
|
|
37364
37378
|
} : function(e, n) {
|
|
37365
37379
|
e.default = n;
|
|
37366
|
-
}),
|
|
37380
|
+
}), hD = ln && ln.__importStar || function(e) {
|
|
37367
37381
|
if (e && e.__esModule) return e;
|
|
37368
37382
|
var n = {};
|
|
37369
|
-
if (e != null) for (var i in e) i !== "default" && Object.prototype.hasOwnProperty.call(e, i) &&
|
|
37370
|
-
return
|
|
37383
|
+
if (e != null) for (var i in e) i !== "default" && Object.prototype.hasOwnProperty.call(e, i) && pD(n, e, i);
|
|
37384
|
+
return uD(n, e), n;
|
|
37371
37385
|
};
|
|
37372
37386
|
Object.defineProperty(Wn, "__esModule", { value: !0 });
|
|
37373
37387
|
Wn.normalizeBech32 = Wn.fromBech32 = Wn.toBech32 = void 0;
|
|
37374
|
-
const st =
|
|
37388
|
+
const st = hD(mD);
|
|
37375
37389
|
function Gl(e, n, i) {
|
|
37376
37390
|
return st.encode(e, st.toWords(n), i);
|
|
37377
37391
|
}
|
|
@@ -37384,22 +37398,22 @@ function Jl(e, n = 1 / 0) {
|
|
|
37384
37398
|
};
|
|
37385
37399
|
}
|
|
37386
37400
|
Wn.fromBech32 = Jl;
|
|
37387
|
-
function
|
|
37401
|
+
function dD(e) {
|
|
37388
37402
|
const { prefix: n, data: i } = Jl(e);
|
|
37389
37403
|
return Gl(n, i);
|
|
37390
37404
|
}
|
|
37391
|
-
Wn.normalizeBech32 =
|
|
37405
|
+
Wn.normalizeBech32 = dD;
|
|
37392
37406
|
var Hi = {};
|
|
37393
37407
|
Object.defineProperty(Hi, "__esModule", { value: !0 });
|
|
37394
37408
|
Hi.fromHex = Hi.toHex = void 0;
|
|
37395
|
-
function
|
|
37409
|
+
function xD(e) {
|
|
37396
37410
|
let n = "";
|
|
37397
37411
|
for (const i of e)
|
|
37398
37412
|
n += ("0" + i.toString(16)).slice(-2);
|
|
37399
37413
|
return n;
|
|
37400
37414
|
}
|
|
37401
|
-
Hi.toHex =
|
|
37402
|
-
function
|
|
37415
|
+
Hi.toHex = xD;
|
|
37416
|
+
function DD(e) {
|
|
37403
37417
|
if (e.length % 2 !== 0)
|
|
37404
37418
|
throw new Error("hex string length must be a multiple of 2");
|
|
37405
37419
|
const n = new Uint8Array(e.length / 2);
|
|
@@ -37411,16 +37425,16 @@ function xD(e) {
|
|
|
37411
37425
|
}
|
|
37412
37426
|
return n;
|
|
37413
37427
|
}
|
|
37414
|
-
Hi.fromHex =
|
|
37428
|
+
Hi.fromHex = DD;
|
|
37415
37429
|
var Ti = {};
|
|
37416
37430
|
Object.defineProperty(Ti, "__esModule", { value: !0 });
|
|
37417
37431
|
Ti.toRfc3339 = Ti.fromRfc3339 = void 0;
|
|
37418
|
-
const
|
|
37432
|
+
const gD = /^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/;
|
|
37419
37433
|
function bi(e, n = 2) {
|
|
37420
37434
|
return e.toString().padStart(n, "0");
|
|
37421
37435
|
}
|
|
37422
|
-
function
|
|
37423
|
-
const n =
|
|
37436
|
+
function fD(e) {
|
|
37437
|
+
const n = gD.exec(e);
|
|
37424
37438
|
if (!n)
|
|
37425
37439
|
throw new Error("Date string is not in RFC3339 format");
|
|
37426
37440
|
const i = +n[1], o = +n[2], t = +n[3], c = +n[4], a = +n[5], s = +n[6], l = n[7] ? Math.floor(+n[7] * 1e3) : 0;
|
|
@@ -37429,24 +37443,24 @@ function gD(e) {
|
|
|
37429
37443
|
const D = m * (h * 60 + u) * 60, b = Date.UTC(i, o - 1, t, c, a, s, l) - D * 1e3;
|
|
37430
37444
|
return new Date(b);
|
|
37431
37445
|
}
|
|
37432
|
-
Ti.fromRfc3339 =
|
|
37433
|
-
function
|
|
37446
|
+
Ti.fromRfc3339 = fD;
|
|
37447
|
+
function bD(e) {
|
|
37434
37448
|
const n = e.getUTCFullYear(), i = bi(e.getUTCMonth() + 1), o = bi(e.getUTCDate()), t = bi(e.getUTCHours()), c = bi(e.getUTCMinutes()), a = bi(e.getUTCSeconds()), s = bi(e.getUTCMilliseconds(), 3);
|
|
37435
37449
|
return `${n}-${i}-${o}T${t}:${c}:${a}.${s}Z`;
|
|
37436
37450
|
}
|
|
37437
|
-
Ti.toRfc3339 =
|
|
37451
|
+
Ti.toRfc3339 = bD;
|
|
37438
37452
|
var Ni = {};
|
|
37439
37453
|
Object.defineProperty(Ni, "__esModule", { value: !0 });
|
|
37440
37454
|
Ni.fromUtf8 = Ni.toUtf8 = void 0;
|
|
37441
|
-
function
|
|
37455
|
+
function AD(e) {
|
|
37442
37456
|
return new TextEncoder().encode(e);
|
|
37443
37457
|
}
|
|
37444
|
-
Ni.toUtf8 =
|
|
37445
|
-
function
|
|
37458
|
+
Ni.toUtf8 = AD;
|
|
37459
|
+
function CD(e, n = !1) {
|
|
37446
37460
|
const i = !n;
|
|
37447
37461
|
return new TextDecoder("utf-8", { fatal: i }).decode(e);
|
|
37448
37462
|
}
|
|
37449
|
-
Ni.fromUtf8 =
|
|
37463
|
+
Ni.fromUtf8 = CD;
|
|
37450
37464
|
(function(e) {
|
|
37451
37465
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.toUtf8 = e.fromUtf8 = e.toRfc3339 = e.fromRfc3339 = e.toHex = e.fromHex = e.toBech32 = e.normalizeBech32 = e.fromBech32 = e.toBase64 = e.fromBase64 = e.toAscii = e.fromAscii = void 0;
|
|
37452
37466
|
var n = Ii;
|
|
@@ -37488,7 +37502,7 @@ Ni.fromUtf8 = AD;
|
|
|
37488
37502
|
return a.toUtf8;
|
|
37489
37503
|
} });
|
|
37490
37504
|
})(Rl);
|
|
37491
|
-
const
|
|
37505
|
+
const kD = ({
|
|
37492
37506
|
address: e,
|
|
37493
37507
|
chainType: n,
|
|
37494
37508
|
bech32Prefix: i
|
|
@@ -37561,15 +37575,15 @@ function oa(e, n, i, o) {
|
|
|
37561
37575
|
}
|
|
37562
37576
|
return s;
|
|
37563
37577
|
}
|
|
37564
|
-
function
|
|
37578
|
+
function vD(e) {
|
|
37565
37579
|
return oa(e, 8, 5, !0);
|
|
37566
37580
|
}
|
|
37567
|
-
function
|
|
37581
|
+
function wD(e) {
|
|
37568
37582
|
const n = oa(e, 5, 8, !1);
|
|
37569
37583
|
if (Array.isArray(n))
|
|
37570
37584
|
return n;
|
|
37571
37585
|
}
|
|
37572
|
-
function
|
|
37586
|
+
function yD(e) {
|
|
37573
37587
|
const n = oa(e, 5, 8, !1);
|
|
37574
37588
|
if (Array.isArray(n))
|
|
37575
37589
|
return n;
|
|
@@ -37645,9 +37659,9 @@ function Zl(e) {
|
|
|
37645
37659
|
decodeUnsafe: t,
|
|
37646
37660
|
decode: c,
|
|
37647
37661
|
encode: i,
|
|
37648
|
-
toWords:
|
|
37649
|
-
fromWordsUnsafe:
|
|
37650
|
-
fromWords:
|
|
37662
|
+
toWords: vD,
|
|
37663
|
+
fromWordsUnsafe: wD,
|
|
37664
|
+
fromWords: yD
|
|
37651
37665
|
};
|
|
37652
37666
|
}
|
|
37653
37667
|
var Yl = ho.bech32 = Zl("bech32");
|
|
@@ -37674,13 +37688,13 @@ const Ql = {
|
|
|
37674
37688
|
penumbravalid: 32,
|
|
37675
37689
|
penumbrawalletid: 32,
|
|
37676
37690
|
plpid: 32
|
|
37677
|
-
},
|
|
37691
|
+
}, ED = (e, n) => $l({
|
|
37678
37692
|
bechLib: Kl,
|
|
37679
37693
|
bData: e,
|
|
37680
37694
|
prefix: n,
|
|
37681
37695
|
expectLength: Ql[n],
|
|
37682
37696
|
expectBytes: _l[n]
|
|
37683
|
-
}),
|
|
37697
|
+
}), PD = (e, n) => $l({
|
|
37684
37698
|
bechLib: Yl,
|
|
37685
37699
|
bData: e,
|
|
37686
37700
|
prefix: n,
|
|
@@ -37715,7 +37729,7 @@ const Ql = {
|
|
|
37715
37729
|
penumbravalid: "penumbravalid",
|
|
37716
37730
|
penumbrawalletid: "penumbrawalletid",
|
|
37717
37731
|
plpid: "plpid"
|
|
37718
|
-
},
|
|
37732
|
+
}, FD = em.penumbra, BD = nm.penumbra, Nr = ({ [FD]: e }) => ED(e, BD), MD = em.penumbracompat1, jD = nm.penumbracompat1, zD = ({ [MD]: e }) => PD(e, jD), im = () => {
|
|
37719
37733
|
const { data: e } = X(Te), { data: n } = X(Hn), i = Z(Hc), o = Z(qe), { walletType: t } = _m(), { data: c, isConnected: a } = Yr({
|
|
37720
37734
|
multiChain: !0
|
|
37721
37735
|
}), { disconnectAsync: s } = $m();
|
|
@@ -37746,7 +37760,7 @@ const Ql = {
|
|
|
37746
37760
|
}
|
|
37747
37761
|
});
|
|
37748
37762
|
if (!H.address) throw new Error("No address found");
|
|
37749
|
-
return
|
|
37763
|
+
return ID({
|
|
37750
37764
|
address: H.address,
|
|
37751
37765
|
chainID: q
|
|
37752
37766
|
});
|
|
@@ -37761,7 +37775,7 @@ const Ql = {
|
|
|
37761
37775
|
}];
|
|
37762
37776
|
const D = [];
|
|
37763
37777
|
for (const b of h) {
|
|
37764
|
-
const C = Hl(b), k = (b === we.KEPLR ?
|
|
37778
|
+
const C = Hl(b), k = (b === we.KEPLR ? Ex : Px).filter(
|
|
37765
37779
|
(g) => (e == null ? void 0 : e.filter((M) => M.chainType === "cosmos").map((M) => M.chainID).includes(g)) && Ic.map((M) => M.chainId).includes(g)
|
|
37766
37780
|
), q = async () => {
|
|
37767
37781
|
const g = k.map(
|
|
@@ -37842,10 +37856,10 @@ const Ql = {
|
|
|
37842
37856
|
},
|
|
37843
37857
|
[c, n, e, t, s, a, i, o]
|
|
37844
37858
|
) };
|
|
37845
|
-
},
|
|
37859
|
+
}, qD = ["noble-1", "grand-1"], ID = ({
|
|
37846
37860
|
chainID: e,
|
|
37847
37861
|
address: n
|
|
37848
|
-
}) => e &&
|
|
37862
|
+
}) => e && qD.includes(e) ? zD(n) : Nr(n), SD = [
|
|
37849
37863
|
{
|
|
37850
37864
|
inputs: [
|
|
37851
37865
|
{ internalType: "string", name: "v", type: "string" },
|
|
@@ -37974,7 +37988,7 @@ const Ql = {
|
|
|
37974
37988
|
return await S.readContract({
|
|
37975
37989
|
args: [P],
|
|
37976
37990
|
address: "0x0000000000000000000000000000000000001004",
|
|
37977
|
-
abi:
|
|
37991
|
+
abi: SD,
|
|
37978
37992
|
functionName: "getSeiAddr"
|
|
37979
37993
|
});
|
|
37980
37994
|
} catch (p) {
|
|
@@ -38098,7 +38112,7 @@ const Ql = {
|
|
|
38098
38112
|
), x = K(() => {
|
|
38099
38113
|
if (!s || D.length === 0) return;
|
|
38100
38114
|
const { chainType: P, bech32Prefix: S } = s;
|
|
38101
|
-
return
|
|
38115
|
+
return kD({
|
|
38102
38116
|
address: D,
|
|
38103
38117
|
bech32Prefix: S,
|
|
38104
38118
|
chainType: P
|
|
@@ -38131,18 +38145,18 @@ const Ql = {
|
|
|
38131
38145
|
};
|
|
38132
38146
|
}), c.remove());
|
|
38133
38147
|
};
|
|
38134
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: h ? /* @__PURE__ */ r.jsxs(
|
|
38148
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: h ? /* @__PURE__ */ r.jsxs(HD, { gap: 15, children: [
|
|
38135
38149
|
/* @__PURE__ */ r.jsx(
|
|
38136
38150
|
ia,
|
|
38137
38151
|
{
|
|
38138
38152
|
title: `Enter a ${l} address`,
|
|
38139
38153
|
onClickBackButton: () => u(!1),
|
|
38140
|
-
rightContent: () => /* @__PURE__ */ r.jsx(
|
|
38154
|
+
rightContent: () => /* @__PURE__ */ r.jsx(ND, { align: "center", justify: "center", children: /* @__PURE__ */ r.jsx("img", { width: "25px", height: "25px", src: m }) })
|
|
38141
38155
|
}
|
|
38142
38156
|
),
|
|
38143
|
-
/* @__PURE__ */ r.jsxs(
|
|
38157
|
+
/* @__PURE__ */ r.jsxs(TD, { children: [
|
|
38144
38158
|
/* @__PURE__ */ r.jsx(
|
|
38145
|
-
|
|
38159
|
+
RD,
|
|
38146
38160
|
{
|
|
38147
38161
|
placeholder: g,
|
|
38148
38162
|
value: D,
|
|
@@ -38150,14 +38164,14 @@ const Ql = {
|
|
|
38150
38164
|
validAddress: x
|
|
38151
38165
|
}
|
|
38152
38166
|
),
|
|
38153
|
-
/* @__PURE__ */ r.jsx(
|
|
38167
|
+
/* @__PURE__ */ r.jsx(VD, { validAddress: x })
|
|
38154
38168
|
] }),
|
|
38155
38169
|
x === !1 && /* @__PURE__ */ r.jsxs(G, { color: (H = n == null ? void 0 : n.error) == null ? void 0 : H.text, textAlign: "center", children: [
|
|
38156
38170
|
"Please enter a valid wallet address for ",
|
|
38157
38171
|
l
|
|
38158
38172
|
] }),
|
|
38159
38173
|
/* @__PURE__ */ r.jsx(
|
|
38160
|
-
|
|
38174
|
+
LD,
|
|
38161
38175
|
{
|
|
38162
38176
|
align: "center",
|
|
38163
38177
|
justify: "center",
|
|
@@ -38186,7 +38200,7 @@ const Ql = {
|
|
|
38186
38200
|
chainAddressIndex: t
|
|
38187
38201
|
}
|
|
38188
38202
|
) });
|
|
38189
|
-
}),
|
|
38203
|
+
}), HD = V(re)`
|
|
38190
38204
|
position: relative;
|
|
38191
38205
|
padding: 10px;
|
|
38192
38206
|
gap: 15px;
|
|
@@ -38194,14 +38208,14 @@ const Ql = {
|
|
|
38194
38208
|
border-radius: 20px;
|
|
38195
38209
|
background-color: ${({ theme: e }) => e.primary.background.normal};
|
|
38196
38210
|
overflow: hidden;
|
|
38197
|
-
`,
|
|
38211
|
+
`, TD = V.div`
|
|
38198
38212
|
position: relative;
|
|
38199
|
-
`,
|
|
38213
|
+
`, ND = V(U)`
|
|
38200
38214
|
width: 40px;
|
|
38201
38215
|
height: 40px;
|
|
38202
38216
|
border-radius: 10px;
|
|
38203
38217
|
background-color: ${({ theme: e }) => e.secondary.background.normal};
|
|
38204
|
-
`,
|
|
38218
|
+
`, VD = V.div`
|
|
38205
38219
|
position: absolute;
|
|
38206
38220
|
height: 11px;
|
|
38207
38221
|
width: 11px;
|
|
@@ -38212,7 +38226,7 @@ const Ql = {
|
|
|
38212
38226
|
|
|
38213
38227
|
top: calc(50% - 11px / 2);
|
|
38214
38228
|
right: 20px;
|
|
38215
|
-
`,
|
|
38229
|
+
`, RD = V.input`
|
|
38216
38230
|
height: 60px;
|
|
38217
38231
|
width: 100%;
|
|
38218
38232
|
box-sizing: border-box;
|
|
@@ -38227,7 +38241,7 @@ const Ql = {
|
|
|
38227
38241
|
border-color: ${n.error.text};
|
|
38228
38242
|
background-color: ${n.error.background};
|
|
38229
38243
|
`}
|
|
38230
|
-
`,
|
|
38244
|
+
`, LD = V(xn)`
|
|
38231
38245
|
background-color: ${({ theme: e }) => e.brandColor};
|
|
38232
38246
|
height: 60px;
|
|
38233
38247
|
border-radius: 12px;
|
|
@@ -38235,9 +38249,9 @@ const Ql = {
|
|
|
38235
38249
|
`;
|
|
38236
38250
|
function Zn(e) {
|
|
38237
38251
|
const n = typeof e == "string" ? parseFloat(e) : e;
|
|
38238
|
-
return
|
|
38252
|
+
return OD.format(n);
|
|
38239
38253
|
}
|
|
38240
|
-
const
|
|
38254
|
+
const OD = new Intl.NumberFormat("en-US", {
|
|
38241
38255
|
style: "currency",
|
|
38242
38256
|
currency: "USD",
|
|
38243
38257
|
maximumFractionDigits: 2
|
|
@@ -38297,7 +38311,7 @@ const LD = new Intl.NumberFormat("en-US", {
|
|
|
38297
38311
|
}
|
|
38298
38312
|
),
|
|
38299
38313
|
/* @__PURE__ */ r.jsxs(re, { gap: 5, children: [
|
|
38300
|
-
/* @__PURE__ */ r.jsxs(
|
|
38314
|
+
/* @__PURE__ */ r.jsxs(UD, { children: [
|
|
38301
38315
|
C,
|
|
38302
38316
|
" ",
|
|
38303
38317
|
m == null ? void 0 : m.symbol
|
|
@@ -38329,7 +38343,7 @@ const LD = new Intl.NumberFormat("en-US", {
|
|
|
38329
38343
|
] })
|
|
38330
38344
|
] })
|
|
38331
38345
|
] });
|
|
38332
|
-
},
|
|
38346
|
+
}, UD = V(Pe)`
|
|
38333
38347
|
font-size: 24px;
|
|
38334
38348
|
max-width: 325px;
|
|
38335
38349
|
overflow: hidden;
|
|
@@ -38354,7 +38368,7 @@ const LD = new Intl.NumberFormat("en-US", {
|
|
|
38354
38368
|
}
|
|
38355
38369
|
)
|
|
38356
38370
|
}
|
|
38357
|
-
),
|
|
38371
|
+
), WD = ({
|
|
38358
38372
|
operations: e,
|
|
38359
38373
|
statusData: n,
|
|
38360
38374
|
onClickEditDestinationWallet: i,
|
|
@@ -38378,7 +38392,7 @@ const LD = new Intl.NumberFormat("en-US", {
|
|
|
38378
38392
|
if (!(!((f = a == null ? void 0 : a[p]) != null && f.address) || o === Ge.pending || o === Ge.waitingForSigning || o === Ge.validatingGasBalance || o === Ge.confirmed))
|
|
38379
38393
|
return i;
|
|
38380
38394
|
}, [q, a, o, i]);
|
|
38381
|
-
return /* @__PURE__ */ r.jsxs(
|
|
38395
|
+
return /* @__PURE__ */ r.jsxs(JD, { justify: "space-between", children: [
|
|
38382
38396
|
/* @__PURE__ */ r.jsx(
|
|
38383
38397
|
Vr,
|
|
38384
38398
|
{
|
|
@@ -38388,7 +38402,7 @@ const LD = new Intl.NumberFormat("en-US", {
|
|
|
38388
38402
|
explorerLink: E
|
|
38389
38403
|
}
|
|
38390
38404
|
),
|
|
38391
|
-
/* @__PURE__ */ r.jsx(
|
|
38405
|
+
/* @__PURE__ */ r.jsx(GD, { color: t.primary.text.normal }),
|
|
38392
38406
|
/* @__PURE__ */ r.jsx(
|
|
38393
38407
|
Vr,
|
|
38394
38408
|
{
|
|
@@ -38401,10 +38415,10 @@ const LD = new Intl.NumberFormat("en-US", {
|
|
|
38401
38415
|
}
|
|
38402
38416
|
)
|
|
38403
38417
|
] });
|
|
38404
|
-
},
|
|
38418
|
+
}, GD = V(am)`
|
|
38405
38419
|
height: 18px;
|
|
38406
38420
|
width: 54px;
|
|
38407
|
-
`,
|
|
38421
|
+
`, JD = V(re)`
|
|
38408
38422
|
padding: 35px;
|
|
38409
38423
|
background-color: ${({ theme: e }) => e.primary.background.normal};
|
|
38410
38424
|
border-radius: 25px;
|
|
@@ -38429,7 +38443,7 @@ const LD = new Intl.NumberFormat("en-US", {
|
|
|
38429
38443
|
}
|
|
38430
38444
|
)
|
|
38431
38445
|
}
|
|
38432
|
-
),
|
|
38446
|
+
), KD = ({
|
|
38433
38447
|
color: e = "currentColor",
|
|
38434
38448
|
...n
|
|
38435
38449
|
}) => /* @__PURE__ */ r.jsxs(
|
|
@@ -38482,7 +38496,7 @@ const LD = new Intl.NumberFormat("en-US", {
|
|
|
38482
38496
|
}
|
|
38483
38497
|
);
|
|
38484
38498
|
var rn = /* @__PURE__ */ ((e) => (e.swap = "swap", e.evmSwap = "evmSwap", e.transfer = "transfer", e.axelarTransfer = "axelarTransfer", e.cctpTransfer = "cctpTransfer", e.hyperlaneTransfer = "hyperlaneTransfer", e.opInitTransfer = "opInitTransfer", e.bankSend = "bankSend", e))(rn || {});
|
|
38485
|
-
function
|
|
38499
|
+
function XD(e) {
|
|
38486
38500
|
const n = e;
|
|
38487
38501
|
let i = {
|
|
38488
38502
|
details: {},
|
|
@@ -38507,8 +38521,8 @@ function KD(e) {
|
|
|
38507
38521
|
}
|
|
38508
38522
|
}), i;
|
|
38509
38523
|
}
|
|
38510
|
-
function
|
|
38511
|
-
const { details: n, type: i } =
|
|
38524
|
+
function ZD(e) {
|
|
38525
|
+
const { details: n, type: i } = XD(e);
|
|
38512
38526
|
return {
|
|
38513
38527
|
type: i,
|
|
38514
38528
|
...n,
|
|
@@ -38525,7 +38539,7 @@ function XD(e) {
|
|
|
38525
38539
|
function Ft(e) {
|
|
38526
38540
|
let n = 0;
|
|
38527
38541
|
return e.map((i, o, t) => {
|
|
38528
|
-
const c = t[o - 1], a = o === 0 ? !1 : i.txIndex > c.txIndex, s =
|
|
38542
|
+
const c = t[o - 1], a = o === 0 ? !1 : i.txIndex > c.txIndex, s = ZD(i), l = s.type === "swap" || s.type === "evmSwap", m = {
|
|
38529
38543
|
...s,
|
|
38530
38544
|
transferIndex: n,
|
|
38531
38545
|
signRequired: a,
|
|
@@ -38534,7 +38548,7 @@ function Ft(e) {
|
|
|
38534
38548
|
return l || n++, m;
|
|
38535
38549
|
});
|
|
38536
38550
|
}
|
|
38537
|
-
function
|
|
38551
|
+
function YD(e) {
|
|
38538
38552
|
const n = e, i = n == null ? void 0 : n.axelarTransfer, o = n == null ? void 0 : n.ibcTransfer, t = n == null ? void 0 : n.cctpTransfer, c = n == null ? void 0 : n.hyperlaneTransfer, a = n == null ? void 0 : n.opInitTransfer;
|
|
38539
38553
|
let s = "";
|
|
38540
38554
|
i ? s = "axelarTransfer" : o ? s = "ibcTransfer" : t ? s = "cctpTransfer" : c ? s = "hyperlaneTransfer" : a && (s = "opInitTransfer");
|
|
@@ -38556,16 +38570,16 @@ function ZD(e) {
|
|
|
38556
38570
|
...a,
|
|
38557
38571
|
fromExplorerLink: l("send"),
|
|
38558
38572
|
toExplorerLink: l("receive")
|
|
38559
|
-
}, h =
|
|
38573
|
+
}, h = $D(m.state);
|
|
38560
38574
|
return {
|
|
38561
38575
|
...m,
|
|
38562
38576
|
status: h
|
|
38563
38577
|
};
|
|
38564
38578
|
}
|
|
38565
|
-
function YD(e) {
|
|
38566
|
-
return e ? e == null ? void 0 : e.flatMap((n) => n.transferSequence.map((i) => ZD(i))) : [];
|
|
38567
|
-
}
|
|
38568
38579
|
function QD(e) {
|
|
38580
|
+
return e ? e == null ? void 0 : e.flatMap((n) => n.transferSequence.map((i) => YD(i))) : [];
|
|
38581
|
+
}
|
|
38582
|
+
function _D(e) {
|
|
38569
38583
|
switch (e) {
|
|
38570
38584
|
case "STATE_SUBMITTED":
|
|
38571
38585
|
case "STATE_PENDING":
|
|
@@ -38578,7 +38592,7 @@ function QD(e) {
|
|
|
38578
38592
|
return "failed";
|
|
38579
38593
|
}
|
|
38580
38594
|
}
|
|
38581
|
-
function
|
|
38595
|
+
function $D(e) {
|
|
38582
38596
|
switch (e) {
|
|
38583
38597
|
case "TRANSFER_PENDING":
|
|
38584
38598
|
case "TRANSFER_RECEIVED":
|
|
@@ -38600,7 +38614,7 @@ function _D(e) {
|
|
|
38600
38614
|
return "failed";
|
|
38601
38615
|
}
|
|
38602
38616
|
}
|
|
38603
|
-
const
|
|
38617
|
+
const e2 = {
|
|
38604
38618
|
// swap icon
|
|
38605
38619
|
[rn.swap]: /* @__PURE__ */ r.jsx(Rr, { width: 34 }),
|
|
38606
38620
|
[rn.evmSwap]: /* @__PURE__ */ r.jsx(Rr, { width: 34 }),
|
|
@@ -38611,8 +38625,8 @@ const $D = {
|
|
|
38611
38625
|
[rn.hyperlaneTransfer]: /* @__PURE__ */ r.jsx(no, { width: 34 }),
|
|
38612
38626
|
[rn.opInitTransfer]: /* @__PURE__ */ r.jsx(no, { width: 34 }),
|
|
38613
38627
|
// send icon
|
|
38614
|
-
[rn.bankSend]: /* @__PURE__ */ r.jsx(
|
|
38615
|
-
},
|
|
38628
|
+
[rn.bankSend]: /* @__PURE__ */ r.jsx(KD, { width: 34 })
|
|
38629
|
+
}, n2 = {
|
|
38616
38630
|
swap: "Swapped",
|
|
38617
38631
|
evmSwap: "Swapped",
|
|
38618
38632
|
transfer: "Bridged",
|
|
@@ -38621,7 +38635,7 @@ const $D = {
|
|
|
38621
38635
|
hyperlaneTransfer: "Bridged",
|
|
38622
38636
|
opInitTransfer: "Bridged",
|
|
38623
38637
|
bankSend: "Sent"
|
|
38624
|
-
},
|
|
38638
|
+
}, i2 = ({
|
|
38625
38639
|
operations: e,
|
|
38626
38640
|
statusData: n,
|
|
38627
38641
|
onClickEditDestinationWallet: i,
|
|
@@ -38645,7 +38659,7 @@ const $D = {
|
|
|
38645
38659
|
if (!(!((H = a == null ? void 0 : a[g]) != null && H.address) || o === Ge.pending || o === Ge.waitingForSigning || o === Ge.validatingGasBalance || o === Ge.confirmed))
|
|
38646
38660
|
return i;
|
|
38647
38661
|
}, [b, a, o, i]);
|
|
38648
|
-
return /* @__PURE__ */ r.jsx(
|
|
38662
|
+
return /* @__PURE__ */ r.jsx(c2, { children: /* @__PURE__ */ r.jsxs(re, { children: [
|
|
38649
38663
|
/* @__PURE__ */ r.jsx(
|
|
38650
38664
|
Sr,
|
|
38651
38665
|
{
|
|
@@ -38660,7 +38674,7 @@ const $D = {
|
|
|
38660
38674
|
),
|
|
38661
38675
|
e.map((g, M) => {
|
|
38662
38676
|
var y, F, I;
|
|
38663
|
-
const H =
|
|
38677
|
+
const H = n2[g.type], S = (() => {
|
|
38664
38678
|
var L, W;
|
|
38665
38679
|
const v = (W = (L = g.swapVenues) == null ? void 0 : L[0]) == null ? void 0 : W.chainID, B = g.bridgeID, z = c == null ? void 0 : c.find((J) => J.id === B), j = t == null ? void 0 : t.find((J) => J.chainID === v);
|
|
38666
38680
|
return {
|
|
@@ -38673,21 +38687,21 @@ const $D = {
|
|
|
38673
38687
|
chainId: g.toChainID ?? g.chainID
|
|
38674
38688
|
}, f = g.isSwap ? (y = C == null ? void 0 : C[g.transferIndex]) == null ? void 0 : y.fromExplorerLink : (F = C == null ? void 0 : C[g.transferIndex]) == null ? void 0 : F.toExplorerLink, w = o === Ge.confirmed ? "completed" : (I = C == null ? void 0 : C[g.transferIndex]) == null ? void 0 : I.status;
|
|
38675
38689
|
return /* @__PURE__ */ r.jsxs($e.Fragment, { children: [
|
|
38676
|
-
/* @__PURE__ */ r.jsxs(
|
|
38690
|
+
/* @__PURE__ */ r.jsxs(r2, { style: { height: "25px", position: "relative" }, align: "center", children: [
|
|
38677
38691
|
/* @__PURE__ */ r.jsx(
|
|
38678
|
-
|
|
38692
|
+
t2,
|
|
38679
38693
|
{
|
|
38680
38694
|
onMouseEnter: () => m(M),
|
|
38681
38695
|
onMouseLeave: () => h(M),
|
|
38682
38696
|
justify: "center",
|
|
38683
|
-
children:
|
|
38697
|
+
children: e2[g.type]
|
|
38684
38698
|
}
|
|
38685
38699
|
),
|
|
38686
|
-
(s == null ? void 0 : s[M]) && /* @__PURE__ */ r.jsxs(
|
|
38700
|
+
(s == null ? void 0 : s[M]) && /* @__PURE__ */ r.jsxs(o2, { children: [
|
|
38687
38701
|
H,
|
|
38688
38702
|
" with ",
|
|
38689
38703
|
S.name,
|
|
38690
|
-
/* @__PURE__ */ r.jsx(
|
|
38704
|
+
/* @__PURE__ */ r.jsx(a2, { width: "10", height: "10", src: S.image })
|
|
38691
38705
|
] })
|
|
38692
38706
|
] }),
|
|
38693
38707
|
/* @__PURE__ */ r.jsx(
|
|
@@ -38705,7 +38719,7 @@ const $D = {
|
|
|
38705
38719
|
] }, `row-${g.fromChain}-${g.toChainID}-${M}`);
|
|
38706
38720
|
})
|
|
38707
38721
|
] }) });
|
|
38708
|
-
},
|
|
38722
|
+
}, o2 = V(G).attrs({
|
|
38709
38723
|
normalTextColor: !0
|
|
38710
38724
|
})`
|
|
38711
38725
|
position: absolute;
|
|
@@ -38716,30 +38730,30 @@ const $D = {
|
|
|
38716
38730
|
background-color: ${({ theme: e }) => e.secondary.background.normal};
|
|
38717
38731
|
box-sizing: border-box;
|
|
38718
38732
|
z-index: 1;
|
|
38719
|
-
`,
|
|
38733
|
+
`, t2 = V(re).attrs({
|
|
38720
38734
|
as: re
|
|
38721
38735
|
})`
|
|
38722
38736
|
color: ${({ theme: e }) => e.primary.text.lowContrast};
|
|
38723
38737
|
&:hover {
|
|
38724
38738
|
color: ${({ theme: e }) => e.primary.text.normal};
|
|
38725
38739
|
}
|
|
38726
|
-
`,
|
|
38740
|
+
`, c2 = V(re)`
|
|
38727
38741
|
padding: 25px;
|
|
38728
38742
|
gap: 20px;
|
|
38729
38743
|
background-color: ${({ theme: e }) => e.primary.background.normal};
|
|
38730
38744
|
border-radius: 25px;
|
|
38731
38745
|
min-height: 225px;
|
|
38732
|
-
`,
|
|
38746
|
+
`, a2 = V.img`
|
|
38733
38747
|
margin-left: 5px;
|
|
38734
38748
|
object-fit: contain;
|
|
38735
38749
|
width: 10px;
|
|
38736
38750
|
height: 10px;
|
|
38737
|
-
`,
|
|
38751
|
+
`, r2 = V(U)`
|
|
38738
38752
|
position: relative;
|
|
38739
38753
|
height: 25px;
|
|
38740
|
-
`,
|
|
38754
|
+
`, s2 = () => {
|
|
38741
38755
|
const [e, n] = ue(En), { route: i } = X(pn), o = i == null ? void 0 : i.requiredChainAddresses, { data: t } = X(Te), c = X(Nc);
|
|
38742
|
-
ue(
|
|
38756
|
+
ue(yx);
|
|
38743
38757
|
const { createCosmosWallets: a } = im(), { createEvmWallets: s } = om(), { createSolanaWallets: l } = tm(), m = Je(cm), h = K(() => i != null && i.operations ? Ft(i.operations).filter((C) => C.signRequired).map((C) => C.fromChainID) : void 0, [i == null ? void 0 : i.operations]);
|
|
38744
38758
|
Xe(() => {
|
|
38745
38759
|
var b;
|
|
@@ -38907,9 +38921,9 @@ const $D = {
|
|
|
38907
38921
|
chainID: x.chainID,
|
|
38908
38922
|
txHash: x.txHash
|
|
38909
38923
|
}))
|
|
38910
|
-
), D =
|
|
38924
|
+
), D = QD(u), b = u.every((x) => x.state === "STATE_COMPLETED_SUCCESS" || x.state === "STATE_COMPLETED_ERROR" || x.state === "STATE_ABANDONED"), C = D.every((x) => x.status === "completed"), k = m === u.length && b;
|
|
38911
38925
|
k && c(!0);
|
|
38912
|
-
const q = u.length > 0 ?
|
|
38926
|
+
const q = u.length > 0 ? _D(u[u.length - 1].state) : void 0, E = {
|
|
38913
38927
|
isSuccess: q === "success" && k || C && k,
|
|
38914
38928
|
lastTxStatus: q,
|
|
38915
38929
|
isSettled: k,
|
|
@@ -38922,7 +38936,7 @@ const $D = {
|
|
|
38922
38936
|
// to make the data persist when query key changed
|
|
38923
38937
|
initialData: a
|
|
38924
38938
|
});
|
|
38925
|
-
},
|
|
38939
|
+
}, l2 = (e) => {
|
|
38926
38940
|
const { route: n, transactionDetailsArray: i } = X(
|
|
38927
38941
|
pn
|
|
38928
38942
|
), o = Z(_e), t = Z(so), [c, a] = be();
|
|
@@ -38991,13 +39005,13 @@ const $D = {
|
|
|
38991
39005
|
}, [h, a, u, o, c.length, l, s, n]);
|
|
38992
39006
|
};
|
|
38993
39007
|
var Ge = /* @__PURE__ */ ((e) => (e[e.recoveryAddressUnset = 0] = "recoveryAddressUnset", e[e.destinationAddressUnset = 1] = "destinationAddressUnset", e[e.ready = 2] = "ready", e[e.pending = 3] = "pending", e[e.waitingForSigning = 4] = "waitingForSigning", e[e.confirmed = 5] = "confirmed", e[e.validatingGasBalance = 6] = "validatingGasBalance", e))(Ge || {});
|
|
38994
|
-
const
|
|
39008
|
+
const m2 = () => {
|
|
38995
39009
|
const e = ke(), n = Z(Tn), {
|
|
38996
39010
|
route: i,
|
|
38997
39011
|
overallStatus: o,
|
|
38998
39012
|
transactionDetailsArray: t,
|
|
38999
39013
|
isValidatingGasBalance: c
|
|
39000
|
-
} = X(pn), a = X(En), { connectRequiredChains: s } =
|
|
39014
|
+
} = X(pn), a = X(En), { connectRequiredChains: s } = s2(), [l, m] = be(!0), h = Je(cm), u = Z(Bl), { mutate: D } = X(Sl), { data: b } = rm({
|
|
39001
39015
|
txsRequired: i == null ? void 0 : i.txsRequired,
|
|
39002
39016
|
txs: t
|
|
39003
39017
|
});
|
|
@@ -39022,7 +39036,7 @@ const l2 = () => {
|
|
|
39022
39036
|
o,
|
|
39023
39037
|
i == null ? void 0 : i.requiredChainAddresses
|
|
39024
39038
|
]);
|
|
39025
|
-
|
|
39039
|
+
l2(q);
|
|
39026
39040
|
const E = K(() => {
|
|
39027
39041
|
const M = ((i == null ? void 0 : i.txsRequired) ?? 0) - (t == null ? void 0 : t.length);
|
|
39028
39042
|
if (M > 1)
|
|
@@ -39117,7 +39131,7 @@ const l2 = () => {
|
|
|
39117
39131
|
h,
|
|
39118
39132
|
q,
|
|
39119
39133
|
e.success.text
|
|
39120
|
-
]), g = l ?
|
|
39134
|
+
]), g = l ? WD : i2;
|
|
39121
39135
|
return /* @__PURE__ */ r.jsxs(re, { gap: 5, children: [
|
|
39122
39136
|
/* @__PURE__ */ r.jsx(
|
|
39123
39137
|
yn,
|
|
@@ -39161,10 +39175,10 @@ const l2 = () => {
|
|
|
39161
39175
|
height: ${n}px;
|
|
39162
39176
|
background-color: ${qc(i.primary.text.normal ?? "") + sn(10)};
|
|
39163
39177
|
`};
|
|
39164
|
-
`,
|
|
39178
|
+
`, p2 = V(Cc)`
|
|
39165
39179
|
border-radius: 50%;
|
|
39166
39180
|
`;
|
|
39167
|
-
function
|
|
39181
|
+
function u2(e, n = 500, i = !1) {
|
|
39168
39182
|
const o = ee(
|
|
39169
39183
|
void 0
|
|
39170
39184
|
), t = ee(e), c = ee(!1), a = ee(
|
|
@@ -39195,7 +39209,7 @@ function p2(e, n = 500, i = !1) {
|
|
|
39195
39209
|
debouncedValueAtom: a
|
|
39196
39210
|
};
|
|
39197
39211
|
}
|
|
39198
|
-
const lm =
|
|
39212
|
+
const lm = u2(void 0), ca = pi((e) => {
|
|
39199
39213
|
const n = e(Sn), i = e(lm.debouncedValueAtom), o = e(ct), t = Object.values(i ?? {}).length > 0 && !o;
|
|
39200
39214
|
return {
|
|
39201
39215
|
queryKey: ["skipBalances", i],
|
|
@@ -39242,7 +39256,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39242
39256
|
return m.asset.originChainID === m.chainID ? 1 : D ? -1 : 0;
|
|
39243
39257
|
});
|
|
39244
39258
|
}, [t, o, i, c, n, e]);
|
|
39245
|
-
}, kc = (e) => e.chains !== void 0,
|
|
39259
|
+
}, kc = (e) => e.chains !== void 0, h2 = ({
|
|
39246
39260
|
item: e,
|
|
39247
39261
|
index: n,
|
|
39248
39262
|
skeleton: i,
|
|
@@ -39257,7 +39271,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39257
39271
|
{
|
|
39258
39272
|
onClick: () => o(e),
|
|
39259
39273
|
style: { margin: "5px 0" },
|
|
39260
|
-
leftContent: /* @__PURE__ */ r.jsx(
|
|
39274
|
+
leftContent: /* @__PURE__ */ r.jsx(d2, { item: e, context: t }),
|
|
39261
39275
|
rightContent: Number(e.totalAmount) > 0 && /* @__PURE__ */ r.jsxs(re, { align: "flex-end", children: [
|
|
39262
39276
|
/* @__PURE__ */ r.jsx(G, { normalTextColor: !0, children: parseFloat(e.totalAmount.toFixed(8)) }),
|
|
39263
39277
|
Number(e.totalUsd) > 0 && /* @__PURE__ */ r.jsx(G, { children: Zn(e.totalUsd) })
|
|
@@ -39296,7 +39310,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39296
39310
|
},
|
|
39297
39311
|
e.chainID
|
|
39298
39312
|
);
|
|
39299
|
-
},
|
|
39313
|
+
}, d2 = ({
|
|
39300
39314
|
item: e,
|
|
39301
39315
|
context: n
|
|
39302
39316
|
}) => {
|
|
@@ -39328,15 +39342,15 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39328
39342
|
qi,
|
|
39329
39343
|
{
|
|
39330
39344
|
style: { margin: "5px 0" },
|
|
39331
|
-
leftContent: /* @__PURE__ */ r.jsxs(
|
|
39332
|
-
/* @__PURE__ */ r.jsx(
|
|
39345
|
+
leftContent: /* @__PURE__ */ r.jsxs(x2, { align: "center", gap: 10, children: [
|
|
39346
|
+
/* @__PURE__ */ r.jsx(p2, { width: 35, height: 35 }),
|
|
39333
39347
|
/* @__PURE__ */ r.jsx(Cc, { width: 80, height: 20 }),
|
|
39334
39348
|
/* @__PURE__ */ r.jsx(Cc, { width: 60, height: 16 })
|
|
39335
39349
|
] })
|
|
39336
39350
|
}
|
|
39337
|
-
),
|
|
39351
|
+
), x2 = V(U)`
|
|
39338
39352
|
filter: blur(4px);
|
|
39339
|
-
`,
|
|
39353
|
+
`, D2 = ({
|
|
39340
39354
|
color: e = "currentColor",
|
|
39341
39355
|
className: n
|
|
39342
39356
|
}) => /* @__PURE__ */ r.jsx(
|
|
@@ -39356,7 +39370,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39356
39370
|
}
|
|
39357
39371
|
)
|
|
39358
39372
|
}
|
|
39359
|
-
),
|
|
39373
|
+
), g2 = ({
|
|
39360
39374
|
color: e = "currentColor",
|
|
39361
39375
|
backgroundColor: n = "transparent"
|
|
39362
39376
|
}) => /* @__PURE__ */ r.jsxs(
|
|
@@ -39378,7 +39392,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39378
39392
|
)
|
|
39379
39393
|
]
|
|
39380
39394
|
}
|
|
39381
|
-
),
|
|
39395
|
+
), f2 = ({
|
|
39382
39396
|
color: e = "currentColor",
|
|
39383
39397
|
direction: n,
|
|
39384
39398
|
...i
|
|
@@ -39425,10 +39439,10 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39425
39439
|
m.primary.text.normal,
|
|
39426
39440
|
m.success.text
|
|
39427
39441
|
]), E = W0(e || "");
|
|
39428
|
-
return /* @__PURE__ */ r.jsxs(
|
|
39442
|
+
return /* @__PURE__ */ r.jsxs(b2, { justify: "space-between", padding: 20, borderRadius: 25, children: [
|
|
39429
39443
|
/* @__PURE__ */ r.jsxs(U, { justify: "space-between", children: [
|
|
39430
39444
|
/* @__PURE__ */ r.jsx(
|
|
39431
|
-
|
|
39445
|
+
A2,
|
|
39432
39446
|
{
|
|
39433
39447
|
type: "text",
|
|
39434
39448
|
value: E,
|
|
@@ -39442,11 +39456,11 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39442
39456
|
),
|
|
39443
39457
|
/* @__PURE__ */ r.jsxs(xn, { onClick: t, gap: 5, children: [
|
|
39444
39458
|
b != null && b.assetImage && b.symbol ? /* @__PURE__ */ r.jsxs(ra, { align: "center", justify: "center", gap: 7, children: [
|
|
39445
|
-
/* @__PURE__ */ r.jsx(
|
|
39459
|
+
/* @__PURE__ */ r.jsx(k2, { src: b.assetImage }),
|
|
39446
39460
|
/* @__PURE__ */ r.jsx(Pe, { children: b.symbol })
|
|
39447
|
-
] }) : /* @__PURE__ */ r.jsx(
|
|
39461
|
+
] }) : /* @__PURE__ */ r.jsx(C2, { children: /* @__PURE__ */ r.jsx(Pe, { mainButtonColor: m.brandColor, children: "Select asset" }) }),
|
|
39448
39462
|
/* @__PURE__ */ r.jsx(
|
|
39449
|
-
|
|
39463
|
+
g2,
|
|
39450
39464
|
{
|
|
39451
39465
|
color: m.primary.background.normal,
|
|
39452
39466
|
backgroundColor: m.primary.text.normal
|
|
@@ -39466,7 +39480,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39466
39480
|
}
|
|
39467
39481
|
),
|
|
39468
39482
|
/* @__PURE__ */ r.jsx(
|
|
39469
|
-
|
|
39483
|
+
f2,
|
|
39470
39484
|
{
|
|
39471
39485
|
color: q,
|
|
39472
39486
|
direction: (a ?? 0) > 0 ? "up" : "down",
|
|
@@ -39484,11 +39498,11 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39484
39498
|
] }) }) : /* @__PURE__ */ r.jsx(fl, {})
|
|
39485
39499
|
] })
|
|
39486
39500
|
] });
|
|
39487
|
-
},
|
|
39501
|
+
}, b2 = V(re)`
|
|
39488
39502
|
height: 110px;
|
|
39489
39503
|
width: 480px;
|
|
39490
39504
|
background-color: ${(e) => e.theme.primary.background.normal};
|
|
39491
|
-
`,
|
|
39505
|
+
`, A2 = V.input`
|
|
39492
39506
|
all: unset;
|
|
39493
39507
|
font-size: ${({ valueLength: e }) => `${e > 15 ? 28 : e > 10 ? 32 : 38}px`};
|
|
39494
39508
|
font-weight: 300;
|
|
@@ -39517,14 +39531,14 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39517
39531
|
white-space: nowrap;
|
|
39518
39532
|
color: ${(e) => e.theme.primary.text.normal};
|
|
39519
39533
|
background-color: ${(e) => e.theme.secondary.background.normal};
|
|
39520
|
-
`,
|
|
39534
|
+
`, C2 = V(ra)`
|
|
39521
39535
|
background-color: ${(e) => e.theme.brandColor};
|
|
39522
|
-
`,
|
|
39536
|
+
`, k2 = V.img`
|
|
39523
39537
|
border-radius: 50%;
|
|
39524
39538
|
width: 23px;
|
|
39525
39539
|
height: 23px;
|
|
39526
39540
|
object-fit: cover;
|
|
39527
|
-
`,
|
|
39541
|
+
`, v2 = ({
|
|
39528
39542
|
asset: e,
|
|
39529
39543
|
onSearch: n,
|
|
39530
39544
|
onClickBack: i,
|
|
@@ -39544,16 +39558,16 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39544
39558
|
var m;
|
|
39545
39559
|
(m = s.current) == null || m.focus();
|
|
39546
39560
|
}, 0);
|
|
39547
|
-
}, [e]), /* @__PURE__ */ r.jsxs(
|
|
39561
|
+
}, [e]), /* @__PURE__ */ r.jsxs(P2, { align: "center", gap: 5, children: [
|
|
39548
39562
|
e ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
39549
|
-
/* @__PURE__ */ r.jsx(xn, { onClick: i, children: /* @__PURE__ */ r.jsx(
|
|
39550
|
-
/* @__PURE__ */ r.jsxs(
|
|
39563
|
+
/* @__PURE__ */ r.jsx(xn, { onClick: i, children: /* @__PURE__ */ r.jsx(w2, { color: a.primary.text.normal }) }),
|
|
39564
|
+
/* @__PURE__ */ r.jsxs(y2, { gap: 5, align: "center", justify: "center", children: [
|
|
39551
39565
|
/* @__PURE__ */ r.jsx("img", { src: e.logoURI, width: 20, height: 20 }),
|
|
39552
39566
|
/* @__PURE__ */ r.jsx(Pe, { children: e == null ? void 0 : e.symbol })
|
|
39553
39567
|
] })
|
|
39554
|
-
] }) : /* @__PURE__ */ r.jsx(
|
|
39568
|
+
] }) : /* @__PURE__ */ r.jsx(E2, { color: a.primary.text.normal }),
|
|
39555
39569
|
/* @__PURE__ */ r.jsx(
|
|
39556
|
-
|
|
39570
|
+
F2,
|
|
39557
39571
|
{
|
|
39558
39572
|
ref: s,
|
|
39559
39573
|
style: { paddingLeft: e ? void 0 : 30 },
|
|
@@ -39569,20 +39583,20 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39569
39583
|
/* @__PURE__ */ r.jsx(Pl, { color: a.primary.text.lowContrast })
|
|
39570
39584
|
] })
|
|
39571
39585
|
] });
|
|
39572
|
-
},
|
|
39586
|
+
}, w2 = V(Yc)`
|
|
39573
39587
|
width: 25px;
|
|
39574
39588
|
opacity: 0.5;
|
|
39575
|
-
`,
|
|
39589
|
+
`, y2 = V(ra)`
|
|
39576
39590
|
height: auto;
|
|
39577
|
-
`,
|
|
39591
|
+
`, E2 = V(D2)`
|
|
39578
39592
|
position: absolute;
|
|
39579
39593
|
width: 20px;
|
|
39580
39594
|
height: 20px;
|
|
39581
|
-
`,
|
|
39595
|
+
`, P2 = V(U)`
|
|
39582
39596
|
padding: 6px 10px;
|
|
39583
39597
|
height: 50px;
|
|
39584
39598
|
position: relative;
|
|
39585
|
-
`,
|
|
39599
|
+
`, F2 = V.input`
|
|
39586
39600
|
height: 40px;
|
|
39587
39601
|
box-sizing: border-box;
|
|
39588
39602
|
width: 100%;
|
|
@@ -39590,7 +39604,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39590
39604
|
outline: none;
|
|
39591
39605
|
color: ${({ theme: e }) => e.primary.text.normal};
|
|
39592
39606
|
background-color: ${({ theme: e }) => e.primary.background.normal};
|
|
39593
|
-
`, Ur = ["ATOM", "USDC", "USDT", "ETH", "TIA", "OSMO", "NTRN", "INJ"],
|
|
39607
|
+
`, Ur = ["ATOM", "USDC", "USDT", "ETH", "TIA", "OSMO", "NTRN", "INJ"], B2 = ({
|
|
39594
39608
|
groupedAssetsByRecommendedSymbol: e,
|
|
39595
39609
|
searchQuery: n
|
|
39596
39610
|
}) => K(() => {
|
|
@@ -39607,7 +39621,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39607
39621
|
}
|
|
39608
39622
|
return t.totalUsd - o.totalUsd;
|
|
39609
39623
|
});
|
|
39610
|
-
}, [e, n]),
|
|
39624
|
+
}, [e, n]), M2 = ({ context: e }) => {
|
|
39611
39625
|
const { data: n } = X(Hn), i = aa(), o = X($c), t = K(() => {
|
|
39612
39626
|
if (!o || !o[e]) return n;
|
|
39613
39627
|
const a = Object.entries(o[e]);
|
|
@@ -39659,7 +39673,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39659
39673
|
l.totalAmount = m.totalAmount, l.totalUsd = m.totalUsd;
|
|
39660
39674
|
}), a;
|
|
39661
39675
|
}, [t, i]);
|
|
39662
|
-
},
|
|
39676
|
+
}, j2 = Ui(
|
|
39663
39677
|
(e) => {
|
|
39664
39678
|
const n = Je(), { onSelect: i, selectedAsset: o, selectChain: t, context: c } = e, { data: a, isLoading: s } = X(Hn), { isLoading: l } = X(Te), m = s || l, [h, u] = be(!0), [D, b] = be(""), [C, k] = be(null), q = () => {
|
|
39665
39679
|
b("");
|
|
@@ -39674,7 +39688,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39674
39688
|
}
|
|
39675
39689
|
},
|
|
39676
39690
|
[i]
|
|
39677
|
-
), x =
|
|
39691
|
+
), x = M2({ context: c }), g = K(() => {
|
|
39678
39692
|
const w = (C == null ? void 0 : C.assets[0]) || o;
|
|
39679
39693
|
if (w)
|
|
39680
39694
|
return x == null ? void 0 : x.find(
|
|
@@ -39684,7 +39698,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39684
39698
|
C == null ? void 0 : C.assets,
|
|
39685
39699
|
o,
|
|
39686
39700
|
x
|
|
39687
|
-
]), M =
|
|
39701
|
+
]), M = B2({ groupedAssetsByRecommendedSymbol: x, searchQuery: D }), H = mm({ selectedGroup: g, searchQuery: D, context: c });
|
|
39688
39702
|
Xe(() => {
|
|
39689
39703
|
if (!m && a) {
|
|
39690
39704
|
const w = setTimeout(() => {
|
|
@@ -39699,7 +39713,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39699
39713
|
b(w);
|
|
39700
39714
|
}, S = ze(
|
|
39701
39715
|
(w, y) => /* @__PURE__ */ r.jsx(
|
|
39702
|
-
|
|
39716
|
+
h2,
|
|
39703
39717
|
{
|
|
39704
39718
|
item: w,
|
|
39705
39719
|
index: y,
|
|
@@ -39714,9 +39728,9 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39714
39728
|
}, f = (w) => {
|
|
39715
39729
|
w.key === "Backspace" && C !== null && D === "" && k(null);
|
|
39716
39730
|
};
|
|
39717
|
-
return /* @__PURE__ */ r.jsxs(
|
|
39731
|
+
return /* @__PURE__ */ r.jsxs(z2, { children: [
|
|
39718
39732
|
/* @__PURE__ */ r.jsx(
|
|
39719
|
-
|
|
39733
|
+
v2,
|
|
39720
39734
|
{
|
|
39721
39735
|
onSearch: P,
|
|
39722
39736
|
onClickBack: d,
|
|
@@ -39744,7 +39758,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39744
39758
|
)
|
|
39745
39759
|
] });
|
|
39746
39760
|
}
|
|
39747
|
-
),
|
|
39761
|
+
), z2 = V(re)`
|
|
39748
39762
|
padding: 10px;
|
|
39749
39763
|
gap: 10px;
|
|
39750
39764
|
width: 580px;
|
|
@@ -39752,7 +39766,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39752
39766
|
border-radius: 20px;
|
|
39753
39767
|
background-color: ${({ theme: e }) => e.primary.background.normal};
|
|
39754
39768
|
overflow: hidden;
|
|
39755
|
-
`,
|
|
39769
|
+
`, q2 = ({ color: e = "currentColor" }) => /* @__PURE__ */ r.jsx(
|
|
39756
39770
|
"svg",
|
|
39757
39771
|
{
|
|
39758
39772
|
width: "9",
|
|
@@ -39768,12 +39782,12 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39768
39782
|
}
|
|
39769
39783
|
)
|
|
39770
39784
|
}
|
|
39771
|
-
),
|
|
39785
|
+
), I2 = (e) => {
|
|
39772
39786
|
var n;
|
|
39773
39787
|
return !!((n = e == null ? void 0 : e.estimatedFees) != null && n.some(
|
|
39774
39788
|
(i) => i.feeType === "SMART_RELAY"
|
|
39775
39789
|
));
|
|
39776
|
-
},
|
|
39790
|
+
}, S2 = (e, n) => {
|
|
39777
39791
|
if (!e || !n) return;
|
|
39778
39792
|
const i = n.filter(
|
|
39779
39793
|
(l) => l.feeType === "SMART_RELAY"
|
|
@@ -39796,7 +39810,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39796
39810
|
formattedAssetAmount: `${s} ${i[0].originAsset.symbol}`,
|
|
39797
39811
|
formattedUsdAmount: `${Zn(c)}`
|
|
39798
39812
|
};
|
|
39799
|
-
},
|
|
39813
|
+
}, H2 = ({ color: e = "currentColor", ...n }) => /* @__PURE__ */ r.jsx(
|
|
39800
39814
|
"svg",
|
|
39801
39815
|
{
|
|
39802
39816
|
width: "15",
|
|
@@ -39815,22 +39829,22 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39815
39829
|
}
|
|
39816
39830
|
)
|
|
39817
39831
|
}
|
|
39818
|
-
),
|
|
39832
|
+
), T2 = () => {
|
|
39819
39833
|
const [e, n] = be(!1), [i, o] = be(!1), [t, c] = be(""), [a, s] = ue(sx), l = !!(a && !jr.includes(a));
|
|
39820
39834
|
return Xe(() => {
|
|
39821
39835
|
l && c(a == null ? void 0 : a.toString());
|
|
39822
|
-
}, [a, l]), /* @__PURE__ */ r.jsxs(
|
|
39823
|
-
/* @__PURE__ */ r.jsxs(
|
|
39836
|
+
}, [a, l]), /* @__PURE__ */ r.jsxs(N2, { children: [
|
|
39837
|
+
/* @__PURE__ */ r.jsxs(R2, { children: [
|
|
39824
39838
|
"Max Slippage",
|
|
39825
39839
|
/* @__PURE__ */ r.jsx(fl, { width: 5 }),
|
|
39826
39840
|
/* @__PURE__ */ r.jsx(
|
|
39827
|
-
|
|
39841
|
+
H2,
|
|
39828
39842
|
{
|
|
39829
39843
|
onMouseEnter: () => n(!0),
|
|
39830
39844
|
onMouseLeave: () => n(!1)
|
|
39831
39845
|
}
|
|
39832
39846
|
),
|
|
39833
|
-
e && /* @__PURE__ */ r.jsx(
|
|
39847
|
+
e && /* @__PURE__ */ r.jsx(L2, { children: "If price changes unfavorably during the transaction by more than this amount, the transaction will revert." })
|
|
39834
39848
|
] }),
|
|
39835
39849
|
/* @__PURE__ */ r.jsxs(U, { gap: 4, children: [
|
|
39836
39850
|
jr.map((m) => /* @__PURE__ */ r.jsxs(
|
|
@@ -39846,9 +39860,9 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39846
39860
|
},
|
|
39847
39861
|
m
|
|
39848
39862
|
)),
|
|
39849
|
-
/* @__PURE__ */ r.jsx(
|
|
39863
|
+
/* @__PURE__ */ r.jsx(V2, { children: l || i ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
39850
39864
|
/* @__PURE__ */ r.jsx(
|
|
39851
|
-
|
|
39865
|
+
O2,
|
|
39852
39866
|
{
|
|
39853
39867
|
type: "number",
|
|
39854
39868
|
value: t,
|
|
@@ -39862,7 +39876,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39862
39876
|
autoFocus: !0
|
|
39863
39877
|
}
|
|
39864
39878
|
),
|
|
39865
|
-
/* @__PURE__ */ r.jsx(
|
|
39879
|
+
/* @__PURE__ */ r.jsx(U2, { selected: !i, children: "%" })
|
|
39866
39880
|
] }) : /* @__PURE__ */ r.jsx(
|
|
39867
39881
|
Wr,
|
|
39868
39882
|
{
|
|
@@ -39874,19 +39888,19 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39874
39888
|
) })
|
|
39875
39889
|
] })
|
|
39876
39890
|
] });
|
|
39877
|
-
},
|
|
39891
|
+
}, N2 = V(U)`
|
|
39878
39892
|
max-height: 25px;
|
|
39879
39893
|
justify-content: space-between;
|
|
39880
|
-
`,
|
|
39894
|
+
`, V2 = V.div`
|
|
39881
39895
|
position: relative;
|
|
39882
39896
|
width: 60px;
|
|
39883
|
-
`,
|
|
39897
|
+
`, R2 = V(U).attrs({
|
|
39884
39898
|
as: G,
|
|
39885
39899
|
normalTextColor: !0
|
|
39886
39900
|
})`
|
|
39887
39901
|
position: relative;
|
|
39888
39902
|
letter-spacing: 0.26px;
|
|
39889
|
-
`,
|
|
39903
|
+
`, L2 = V(G).attrs({
|
|
39890
39904
|
normalTextColor: !0
|
|
39891
39905
|
})`
|
|
39892
39906
|
position: absolute;
|
|
@@ -39912,7 +39926,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39912
39926
|
background-color: ${n.brandColor};
|
|
39913
39927
|
opacity: 1;
|
|
39914
39928
|
`}
|
|
39915
|
-
`,
|
|
39929
|
+
`, O2 = V(G).attrs({
|
|
39916
39930
|
as: "input"
|
|
39917
39931
|
})`
|
|
39918
39932
|
outline: none;
|
|
@@ -39940,7 +39954,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39940
39954
|
color: ${xo(n.brandColor)};
|
|
39941
39955
|
background-color: ${n.brandColor};
|
|
39942
39956
|
`}
|
|
39943
|
-
`,
|
|
39957
|
+
`, U2 = V(G)`
|
|
39944
39958
|
position: absolute;
|
|
39945
39959
|
top: 50%;
|
|
39946
39960
|
right: 8px;
|
|
@@ -39948,7 +39962,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39948
39962
|
${({ selected: e, theme: n }) => e && He`
|
|
39949
39963
|
color: ${xo(n.brandColor)};
|
|
39950
39964
|
`}
|
|
39951
|
-
`,
|
|
39965
|
+
`, W2 = Ui((e) => {
|
|
39952
39966
|
const { data: n } = X(Ji), { data: i } = X(Te), o = K(() => n == null ? void 0 : n.chainIDs.map(
|
|
39953
39967
|
(u) => i == null ? void 0 : i.find((D) => D.chainID === u)
|
|
39954
39968
|
), [n, i]), t = n && Ft(n.operations), c = K(() => {
|
|
@@ -39989,8 +40003,8 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
39989
40003
|
formattedUsdAmount: b ? `${Zn(b)}` : void 0
|
|
39990
40004
|
};
|
|
39991
40005
|
}
|
|
39992
|
-
}, [a]), m =
|
|
39993
|
-
return /* @__PURE__ */ r.jsxs(
|
|
40006
|
+
}, [a]), m = I2(n), h = K(() => S2(m, n == null ? void 0 : n.estimatedFees), [m, n == null ? void 0 : n.estimatedFees]);
|
|
40007
|
+
return /* @__PURE__ */ r.jsxs(G2, { gap: 20, children: [
|
|
39994
40008
|
/* @__PURE__ */ r.jsxs(re, { gap: 10, children: [
|
|
39995
40009
|
/* @__PURE__ */ r.jsxs(U, { justify: "space-between", children: [
|
|
39996
40010
|
/* @__PURE__ */ r.jsx(fn, { children: "Route" }),
|
|
@@ -40007,7 +40021,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40007
40021
|
title: u == null ? void 0 : u.prettyName
|
|
40008
40022
|
}
|
|
40009
40023
|
),
|
|
40010
|
-
D !== o.length - 1 && /* @__PURE__ */ r.jsx(
|
|
40024
|
+
D !== o.length - 1 && /* @__PURE__ */ r.jsx(q2, { color: (C = (b = e.theme) == null ? void 0 : b.primary) == null ? void 0 : C.text.normal })
|
|
40011
40025
|
] }, D);
|
|
40012
40026
|
}) })
|
|
40013
40027
|
] }),
|
|
@@ -40019,7 +40033,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40019
40033
|
] }) })
|
|
40020
40034
|
] }),
|
|
40021
40035
|
/* @__PURE__ */ r.jsx(
|
|
40022
|
-
|
|
40036
|
+
T2,
|
|
40023
40037
|
{}
|
|
40024
40038
|
)
|
|
40025
40039
|
] }),
|
|
@@ -40054,7 +40068,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40054
40068
|
] }),
|
|
40055
40069
|
/* @__PURE__ */ r.jsx(fn, { justify: "space-between", children: /* @__PURE__ */ r.jsx(jl, { showRouteInfo: !0 }) })
|
|
40056
40070
|
] });
|
|
40057
|
-
}),
|
|
40071
|
+
}), G2 = V(re)`
|
|
40058
40072
|
width: 480px;
|
|
40059
40073
|
padding: 20px;
|
|
40060
40074
|
border-radius: 20px;
|
|
@@ -40065,7 +40079,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40065
40079
|
})`
|
|
40066
40080
|
position: relative;
|
|
40067
40081
|
letter-spacing: 0.26px;
|
|
40068
|
-
`,
|
|
40082
|
+
`, J2 = ({ color: e = "currentColor" }) => /* @__PURE__ */ r.jsx(
|
|
40069
40083
|
"svg",
|
|
40070
40084
|
{
|
|
40071
40085
|
width: "47",
|
|
@@ -40084,7 +40098,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40084
40098
|
}
|
|
40085
40099
|
)
|
|
40086
40100
|
}
|
|
40087
|
-
),
|
|
40101
|
+
), K2 = () => {
|
|
40088
40102
|
const e = ke(), [n, i] = be(!1), o = Z(rx), t = () => {
|
|
40089
40103
|
o();
|
|
40090
40104
|
let c;
|
|
@@ -40098,12 +40112,12 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40098
40112
|
onClick: t,
|
|
40099
40113
|
disabled: n,
|
|
40100
40114
|
children: [
|
|
40101
|
-
/* @__PURE__ */ r.jsx(
|
|
40102
|
-
/* @__PURE__ */ r.jsx(
|
|
40115
|
+
/* @__PURE__ */ r.jsx(J2, { color: e.primary.background.normal }),
|
|
40116
|
+
/* @__PURE__ */ r.jsx(X2, { spin: n, color: e.primary.text.normal })
|
|
40103
40117
|
]
|
|
40104
40118
|
}
|
|
40105
40119
|
);
|
|
40106
|
-
},
|
|
40120
|
+
}, X2 = V(am)`
|
|
40107
40121
|
position: absolute;
|
|
40108
40122
|
left: 50%;
|
|
40109
40123
|
top: 50%;
|
|
@@ -40151,7 +40165,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40151
40165
|
isLoading: t,
|
|
40152
40166
|
refetch: c
|
|
40153
40167
|
};
|
|
40154
|
-
},
|
|
40168
|
+
}, Z2 = 2e6, Y2 = () => {
|
|
40155
40169
|
var c, a, s, l, m, h, u, D, b, C;
|
|
40156
40170
|
const [e] = ue(qe), [{ data: n }] = ue(Te), i = en({
|
|
40157
40171
|
assetDenom: e == null ? void 0 : e.denom,
|
|
@@ -40176,27 +40190,27 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40176
40190
|
return 0;
|
|
40177
40191
|
}
|
|
40178
40192
|
case "cosmos":
|
|
40179
|
-
return !((C = o == null ? void 0 : o.gasPrice) != null && C.average) || o.denom !== (e == null ? void 0 : e.denom) ? 0 : Number(o.gasPrice.average) *
|
|
40193
|
+
return !((C = o == null ? void 0 : o.gasPrice) != null && C.average) || o.denom !== (e == null ? void 0 : e.denom) ? 0 : Number(o.gasPrice.average) * Z2;
|
|
40180
40194
|
case "svm":
|
|
40181
40195
|
default:
|
|
40182
40196
|
return 0;
|
|
40183
40197
|
}
|
|
40184
40198
|
}, sa = () => {
|
|
40185
|
-
const { data: e } = hm(), n =
|
|
40199
|
+
const { data: e } = hm(), n = Y2(), i = e == null ? void 0 : e.amount;
|
|
40186
40200
|
if (n && i) {
|
|
40187
40201
|
const o = Ke(i).minus(n).toString(), t = wn(o, e == null ? void 0 : e.decimals);
|
|
40188
40202
|
return Number(t) > 0 ? t : "0";
|
|
40189
40203
|
}
|
|
40190
40204
|
return i && wn(String(i), e == null ? void 0 : e.decimals);
|
|
40191
|
-
},
|
|
40205
|
+
}, Q2 = () => {
|
|
40192
40206
|
const e = sa(), n = Z(vo);
|
|
40193
40207
|
return () => {
|
|
40194
40208
|
e && n(e);
|
|
40195
40209
|
};
|
|
40196
|
-
},
|
|
40210
|
+
}, _2 = () => {
|
|
40197
40211
|
const e = sa(), [n] = ue(qe);
|
|
40198
40212
|
return n != null && n.amount ? e ? !Ke(e).isGreaterThanOrEqualTo(Ke(n == null ? void 0 : n.amount)) : !0 : !1;
|
|
40199
|
-
},
|
|
40213
|
+
}, $2 = 60, dm = 5, xm = Ui((e) => {
|
|
40200
40214
|
const n = Je(), i = X(qe), { chainImage: o, chainName: t } = en({
|
|
40201
40215
|
assetDenom: i == null ? void 0 : i.denom,
|
|
40202
40216
|
chainId: i == null ? void 0 : i.chainID
|
|
@@ -40210,7 +40224,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40210
40224
|
rightContent: () => i != null && i.chainID ? /* @__PURE__ */ r.jsx("img", { src: o, height: 36, width: 36, title: t }) : null
|
|
40211
40225
|
}
|
|
40212
40226
|
),
|
|
40213
|
-
/* @__PURE__ */ r.jsxs(Nl, { height: (
|
|
40227
|
+
/* @__PURE__ */ r.jsxs(Nl, { height: ($2 + dm) * 3, children: [
|
|
40214
40228
|
/* @__PURE__ */ r.jsx(Qt, { chainID: "cosmoshub-4", chainType: "cosmos" }, "cosmos"),
|
|
40215
40229
|
/* @__PURE__ */ r.jsx(Qt, { chainID: "1", chainType: "evm" }, "evm"),
|
|
40216
40230
|
/* @__PURE__ */ r.jsx(Qt, { chainID: "solana", chainType: "svm" }, "svm")
|
|
@@ -40263,7 +40277,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40263
40277
|
children: s
|
|
40264
40278
|
}
|
|
40265
40279
|
),
|
|
40266
|
-
e === "evm" && /* @__PURE__ */ r.jsx(
|
|
40280
|
+
e === "evm" && /* @__PURE__ */ r.jsx(e1, { chainId: a == null ? void 0 : a.currentConnectedEVMChainId })
|
|
40267
40281
|
] })
|
|
40268
40282
|
] }) : /* @__PURE__ */ r.jsxs(Mr, { children: [
|
|
40269
40283
|
"Connect to",
|
|
@@ -40287,10 +40301,10 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40287
40301
|
)
|
|
40288
40302
|
}
|
|
40289
40303
|
);
|
|
40290
|
-
},
|
|
40304
|
+
}, e1 = ({ chainId: e }) => {
|
|
40291
40305
|
const n = ke(), { data: i } = X(Te), o = i == null ? void 0 : i.find((t) => t.chainID === e);
|
|
40292
40306
|
return /* @__PURE__ */ r.jsx(Pe, { fontSize: 12, color: n.primary.text.lowContrast, children: o == null ? void 0 : o.prettyName });
|
|
40293
|
-
},
|
|
40307
|
+
}, n1 = (e) => /* @__PURE__ */ r.jsxs(
|
|
40294
40308
|
"svg",
|
|
40295
40309
|
{
|
|
40296
40310
|
fill: "none",
|
|
@@ -40319,12 +40333,12 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40319
40333
|
)
|
|
40320
40334
|
]
|
|
40321
40335
|
}
|
|
40322
|
-
),
|
|
40336
|
+
), i1 = () => {
|
|
40323
40337
|
const e = X(qe), i = hi()(e == null ? void 0 : e.chainID), o = en({
|
|
40324
40338
|
assetDenom: e == null ? void 0 : e.denom,
|
|
40325
40339
|
amount: e == null ? void 0 : e.amount,
|
|
40326
40340
|
chainId: e == null ? void 0 : e.chainID
|
|
40327
|
-
}), { data: t, isLoading: c } = hm(), a =
|
|
40341
|
+
}), { data: t, isLoading: c } = hm(), a = Q2(), s = sa(), l = Je(xm), m = K(() => {
|
|
40328
40342
|
var b;
|
|
40329
40343
|
const h = o != null && o.symbol ? ` ${o == null ? void 0 : o.symbol}` : "";
|
|
40330
40344
|
if ((b = t == null ? void 0 : t.error) != null && b.message) return "--";
|
|
@@ -40368,7 +40382,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40368
40382
|
position: "relative"
|
|
40369
40383
|
},
|
|
40370
40384
|
children: /* @__PURE__ */ r.jsx(
|
|
40371
|
-
|
|
40385
|
+
n1,
|
|
40372
40386
|
{
|
|
40373
40387
|
style: {
|
|
40374
40388
|
animation: "spin 1s linear infinite",
|
|
@@ -40395,7 +40409,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40395
40409
|
]
|
|
40396
40410
|
}
|
|
40397
40411
|
) : null;
|
|
40398
|
-
},
|
|
40412
|
+
}, o1 = () => {
|
|
40399
40413
|
const e = hi(), { data: n } = X(Hn), i = Z(lm.debouncedValueAtom), { data: o } = X(Te), { chainId: t } = pt(), c = K(() => n == null ? void 0 : n.reduce((a, s) => {
|
|
40400
40414
|
var D, b;
|
|
40401
40415
|
const l = (D = e(s.chainID)) == null ? void 0 : D.address, m = o == null ? void 0 : o.find((C) => C.chainID === s.chainID), h = (m == null ? void 0 : m.chainType) === "evm", u = h && t ? (b = e(String(t))) == null ? void 0 : b.address : void 0;
|
|
@@ -40411,7 +40425,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40411
40425
|
chains: c || {}
|
|
40412
40426
|
}), null)
|
|
40413
40427
|
});
|
|
40414
|
-
},
|
|
40428
|
+
}, t1 = () => {
|
|
40415
40429
|
const e = Z(
|
|
40416
40430
|
ox
|
|
40417
40431
|
), n = Z(
|
|
@@ -40423,7 +40437,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40423
40437
|
n,
|
|
40424
40438
|
e
|
|
40425
40439
|
]);
|
|
40426
|
-
},
|
|
40440
|
+
}, c1 = () => {
|
|
40427
40441
|
const [e] = ue(Ji), [n] = ue(Kn), [i, o] = ue(qe), [t, c] = ue(Dn);
|
|
40428
40442
|
Xe(() => {
|
|
40429
40443
|
if (!e.data || !i || !t || (i == null ? void 0 : i.amount) === "" && n === "swap-in" || (t == null ? void 0 : t.amount) === "" && n === "swap-out") return;
|
|
@@ -40457,14 +40471,14 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40457
40471
|
o,
|
|
40458
40472
|
c
|
|
40459
40473
|
]);
|
|
40460
|
-
},
|
|
40474
|
+
}, a1 = () => {
|
|
40461
40475
|
var pe, _;
|
|
40462
|
-
const [e, n] = be(), [i, o] = be(!1), { data: t } = X(Te), [c, a] = ue(qe), s = Z(vo), l = Z(wt), [m] = ue(ax), [h, u] = ue(Dn), [D] = ue(Kn), [{ data: b }] = ue(Hn), C = Z(Tn), k =
|
|
40476
|
+
const [e, n] = be(), [i, o] = be(!1), { data: t } = X(Te), [c, a] = ue(qe), s = Z(vo), l = Z(wt), [m] = ue(ax), [h, u] = ue(Dn), [D] = ue(Kn), [{ data: b }] = ue(Hn), C = Z(Tn), k = _2(), q = Z(vx), E = Z(_e), { isLoading: x } = X(ca), {
|
|
40463
40477
|
data: g,
|
|
40464
40478
|
isError: M,
|
|
40465
40479
|
error: H
|
|
40466
|
-
} = X(Ji), P = Je(
|
|
40467
|
-
|
|
40480
|
+
} = X(Ji), P = Je(W2), S = Je(j2), p = Je(um), d = Je(xm), f = Z(En);
|
|
40481
|
+
o1(), t1(), c1();
|
|
40468
40482
|
const w = hi(), y = w(c == null ? void 0 : c.chainID), F = X(Xn), { chainId: I, connector: v } = pt(), B = I ? (pe = w(String(I))) == null ? void 0 : pe.address : void 0, z = ze(
|
|
40469
40483
|
(O, ce) => {
|
|
40470
40484
|
if (!(!O || !ce) && b)
|
|
@@ -40644,7 +40658,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40644
40658
|
icon: Q.history,
|
|
40645
40659
|
onClick: () => C(Ue.TransactionHistoryPage)
|
|
40646
40660
|
},
|
|
40647
|
-
rightContent: /* @__PURE__ */ r.jsx(
|
|
40661
|
+
rightContent: /* @__PURE__ */ r.jsx(i1, {})
|
|
40648
40662
|
}
|
|
40649
40663
|
),
|
|
40650
40664
|
/* @__PURE__ */ r.jsxs(re, { align: "center", children: [
|
|
@@ -40660,7 +40674,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40660
40674
|
onChangeValue: s
|
|
40661
40675
|
}
|
|
40662
40676
|
),
|
|
40663
|
-
/* @__PURE__ */ r.jsx(
|
|
40677
|
+
/* @__PURE__ */ r.jsx(K2, {}),
|
|
40664
40678
|
/* @__PURE__ */ r.jsx(
|
|
40665
40679
|
Or,
|
|
40666
40680
|
{
|
|
@@ -40703,7 +40717,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40703
40717
|
}
|
|
40704
40718
|
)
|
|
40705
40719
|
] });
|
|
40706
|
-
},
|
|
40720
|
+
}, r1 = ({ color: e = "currentColor" }) => /* @__PURE__ */ r.jsx(
|
|
40707
40721
|
"svg",
|
|
40708
40722
|
{
|
|
40709
40723
|
width: "10",
|
|
@@ -40719,7 +40733,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40719
40733
|
}
|
|
40720
40734
|
)
|
|
40721
40735
|
}
|
|
40722
|
-
),
|
|
40736
|
+
), s1 = ({ color: e = "currentColor" }) => /* @__PURE__ */ r.jsx(
|
|
40723
40737
|
"svg",
|
|
40724
40738
|
{
|
|
40725
40739
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -40752,14 +40766,14 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40752
40766
|
}
|
|
40753
40767
|
)
|
|
40754
40768
|
}
|
|
40755
|
-
),
|
|
40769
|
+
), l1 = {
|
|
40756
40770
|
unconfirmed: "Unconfirmed",
|
|
40757
40771
|
signing: "In Progress",
|
|
40758
40772
|
broadcasted: "In Progress",
|
|
40759
40773
|
pending: "In Progress",
|
|
40760
40774
|
completed: "Completed",
|
|
40761
40775
|
failed: "Failed"
|
|
40762
|
-
},
|
|
40776
|
+
}, m1 = ({
|
|
40763
40777
|
status: e,
|
|
40764
40778
|
sourceChainName: n,
|
|
40765
40779
|
destinationChainName: i,
|
|
@@ -40780,7 +40794,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40780
40794
|
/* @__PURE__ */ r.jsxs(U, { align: "center", gap: 10, children: [
|
|
40781
40795
|
/* @__PURE__ */ r.jsx(Vo, { children: "Status" }),
|
|
40782
40796
|
/* @__PURE__ */ r.jsxs(U, { gap: 5, align: "center", children: [
|
|
40783
|
-
/* @__PURE__ */ r.jsx(G, { normalTextColor: !0, color: s, children:
|
|
40797
|
+
/* @__PURE__ */ r.jsx(G, { normalTextColor: !0, color: s, children: l1[e] }),
|
|
40784
40798
|
/* @__PURE__ */ r.jsxs(G, { children: [
|
|
40785
40799
|
"at ",
|
|
40786
40800
|
o
|
|
@@ -40845,7 +40859,7 @@ const lm = p2(void 0), ca = pi((e) => {
|
|
|
40845
40859
|
}),
|
|
40846
40860
|
/* @__PURE__ */ r.jsx(U, { align: "center", style: { marginTop: 10 }, children: /* @__PURE__ */ r.jsxs(xn, { onClick: c, gap: 5, align: "center", children: [
|
|
40847
40861
|
/* @__PURE__ */ r.jsx(G, { color: a.error.text, children: "Delete" }),
|
|
40848
|
-
/* @__PURE__ */ r.jsx(
|
|
40862
|
+
/* @__PURE__ */ r.jsx(s1, { color: a.error.text })
|
|
40849
40863
|
] }) })
|
|
40850
40864
|
] });
|
|
40851
40865
|
}, Vo = V(G)`
|
|
@@ -40868,20 +40882,20 @@ function Ci(e) {
|
|
|
40868
40882
|
var n = Object.prototype.toString.call(e);
|
|
40869
40883
|
return e instanceof Date || vc(e) === "object" && n === "[object Date]" ? new Date(e.getTime()) : typeof e == "number" || n === "[object Number]" ? new Date(e) : ((typeof e == "string" || n === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
|
|
40870
40884
|
}
|
|
40871
|
-
var
|
|
40872
|
-
function
|
|
40873
|
-
return
|
|
40885
|
+
var p1 = {};
|
|
40886
|
+
function u1() {
|
|
40887
|
+
return p1;
|
|
40874
40888
|
}
|
|
40875
40889
|
function Gr(e) {
|
|
40876
40890
|
var n = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
|
|
40877
40891
|
return n.setUTCFullYear(e.getFullYear()), e.getTime() - n.getTime();
|
|
40878
40892
|
}
|
|
40879
|
-
function
|
|
40893
|
+
function h1(e, n) {
|
|
40880
40894
|
la(2, arguments);
|
|
40881
40895
|
var i = Ci(e), o = Ci(n), t = i.getTime() - o.getTime();
|
|
40882
40896
|
return t < 0 ? -1 : t > 0 ? 1 : t;
|
|
40883
40897
|
}
|
|
40884
|
-
var
|
|
40898
|
+
var d1 = {
|
|
40885
40899
|
lessThanXSeconds: {
|
|
40886
40900
|
one: "less than a second",
|
|
40887
40901
|
other: "less than {{count}} seconds"
|
|
@@ -40943,8 +40957,8 @@ var h1 = {
|
|
|
40943
40957
|
one: "almost 1 year",
|
|
40944
40958
|
other: "almost {{count}} years"
|
|
40945
40959
|
}
|
|
40946
|
-
},
|
|
40947
|
-
var t, c =
|
|
40960
|
+
}, x1 = function(n, i, o) {
|
|
40961
|
+
var t, c = d1[n];
|
|
40948
40962
|
return typeof c == "string" ? t = c : i === 1 ? t = c.one : t = c.other.replace("{{count}}", i.toString()), o != null && o.addSuffix ? o.comparison && o.comparison > 0 ? "in " + t : t + " ago" : t;
|
|
40949
40963
|
};
|
|
40950
40964
|
function _t(e) {
|
|
@@ -40953,43 +40967,43 @@ function _t(e) {
|
|
|
40953
40967
|
return o;
|
|
40954
40968
|
};
|
|
40955
40969
|
}
|
|
40956
|
-
var
|
|
40970
|
+
var D1 = {
|
|
40957
40971
|
full: "EEEE, MMMM do, y",
|
|
40958
40972
|
long: "MMMM do, y",
|
|
40959
40973
|
medium: "MMM d, y",
|
|
40960
40974
|
short: "MM/dd/yyyy"
|
|
40961
|
-
},
|
|
40975
|
+
}, g1 = {
|
|
40962
40976
|
full: "h:mm:ss a zzzz",
|
|
40963
40977
|
long: "h:mm:ss a z",
|
|
40964
40978
|
medium: "h:mm:ss a",
|
|
40965
40979
|
short: "h:mm a"
|
|
40966
|
-
},
|
|
40980
|
+
}, f1 = {
|
|
40967
40981
|
full: "{{date}} 'at' {{time}}",
|
|
40968
40982
|
long: "{{date}} 'at' {{time}}",
|
|
40969
40983
|
medium: "{{date}}, {{time}}",
|
|
40970
40984
|
short: "{{date}}, {{time}}"
|
|
40971
|
-
},
|
|
40985
|
+
}, b1 = {
|
|
40972
40986
|
date: _t({
|
|
40973
|
-
formats:
|
|
40987
|
+
formats: D1,
|
|
40974
40988
|
defaultWidth: "full"
|
|
40975
40989
|
}),
|
|
40976
40990
|
time: _t({
|
|
40977
|
-
formats:
|
|
40991
|
+
formats: g1,
|
|
40978
40992
|
defaultWidth: "full"
|
|
40979
40993
|
}),
|
|
40980
40994
|
dateTime: _t({
|
|
40981
|
-
formats:
|
|
40995
|
+
formats: f1,
|
|
40982
40996
|
defaultWidth: "full"
|
|
40983
40997
|
})
|
|
40984
|
-
},
|
|
40998
|
+
}, A1 = {
|
|
40985
40999
|
lastWeek: "'last' eeee 'at' p",
|
|
40986
41000
|
yesterday: "'yesterday at' p",
|
|
40987
41001
|
today: "'today at' p",
|
|
40988
41002
|
tomorrow: "'tomorrow at' p",
|
|
40989
41003
|
nextWeek: "eeee 'at' p",
|
|
40990
41004
|
other: "P"
|
|
40991
|
-
},
|
|
40992
|
-
return
|
|
41005
|
+
}, C1 = function(n, i, o, t) {
|
|
41006
|
+
return A1[n];
|
|
40993
41007
|
};
|
|
40994
41008
|
function io(e) {
|
|
40995
41009
|
return function(n, i) {
|
|
@@ -41005,24 +41019,24 @@ function io(e) {
|
|
|
41005
41019
|
return t[m];
|
|
41006
41020
|
};
|
|
41007
41021
|
}
|
|
41008
|
-
var
|
|
41022
|
+
var k1 = {
|
|
41009
41023
|
narrow: ["B", "A"],
|
|
41010
41024
|
abbreviated: ["BC", "AD"],
|
|
41011
41025
|
wide: ["Before Christ", "Anno Domini"]
|
|
41012
|
-
},
|
|
41026
|
+
}, v1 = {
|
|
41013
41027
|
narrow: ["1", "2", "3", "4"],
|
|
41014
41028
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
41015
41029
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
41016
|
-
},
|
|
41030
|
+
}, w1 = {
|
|
41017
41031
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
41018
41032
|
abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
41019
41033
|
wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
|
|
41020
|
-
},
|
|
41034
|
+
}, y1 = {
|
|
41021
41035
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
41022
41036
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
41023
41037
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
41024
41038
|
wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
|
|
41025
|
-
},
|
|
41039
|
+
}, E1 = {
|
|
41026
41040
|
narrow: {
|
|
41027
41041
|
am: "a",
|
|
41028
41042
|
pm: "p",
|
|
@@ -41053,7 +41067,7 @@ var C1 = {
|
|
|
41053
41067
|
evening: "evening",
|
|
41054
41068
|
night: "night"
|
|
41055
41069
|
}
|
|
41056
|
-
},
|
|
41070
|
+
}, P1 = {
|
|
41057
41071
|
narrow: {
|
|
41058
41072
|
am: "a",
|
|
41059
41073
|
pm: "p",
|
|
@@ -41084,7 +41098,7 @@ var C1 = {
|
|
|
41084
41098
|
evening: "in the evening",
|
|
41085
41099
|
night: "at night"
|
|
41086
41100
|
}
|
|
41087
|
-
},
|
|
41101
|
+
}, F1 = function(n, i) {
|
|
41088
41102
|
var o = Number(n), t = o % 100;
|
|
41089
41103
|
if (t > 20 || t < 10)
|
|
41090
41104
|
switch (t % 10) {
|
|
@@ -41096,31 +41110,31 @@ var C1 = {
|
|
|
41096
41110
|
return o + "rd";
|
|
41097
41111
|
}
|
|
41098
41112
|
return o + "th";
|
|
41099
|
-
},
|
|
41100
|
-
ordinalNumber:
|
|
41113
|
+
}, B1 = {
|
|
41114
|
+
ordinalNumber: F1,
|
|
41101
41115
|
era: io({
|
|
41102
|
-
values:
|
|
41116
|
+
values: k1,
|
|
41103
41117
|
defaultWidth: "wide"
|
|
41104
41118
|
}),
|
|
41105
41119
|
quarter: io({
|
|
41106
|
-
values:
|
|
41120
|
+
values: v1,
|
|
41107
41121
|
defaultWidth: "wide",
|
|
41108
41122
|
argumentCallback: function(n) {
|
|
41109
41123
|
return n - 1;
|
|
41110
41124
|
}
|
|
41111
41125
|
}),
|
|
41112
41126
|
month: io({
|
|
41113
|
-
values:
|
|
41127
|
+
values: w1,
|
|
41114
41128
|
defaultWidth: "wide"
|
|
41115
41129
|
}),
|
|
41116
41130
|
day: io({
|
|
41117
|
-
values:
|
|
41131
|
+
values: y1,
|
|
41118
41132
|
defaultWidth: "wide"
|
|
41119
41133
|
}),
|
|
41120
41134
|
dayPeriod: io({
|
|
41121
|
-
values:
|
|
41135
|
+
values: E1,
|
|
41122
41136
|
defaultWidth: "wide",
|
|
41123
|
-
formattingValues:
|
|
41137
|
+
formattingValues: P1,
|
|
41124
41138
|
defaultFormattingWidth: "wide"
|
|
41125
41139
|
})
|
|
41126
41140
|
};
|
|
@@ -41129,9 +41143,9 @@ function oo(e) {
|
|
|
41129
41143
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = i.width, t = o && e.matchPatterns[o] || e.matchPatterns[e.defaultMatchWidth], c = n.match(t);
|
|
41130
41144
|
if (!c)
|
|
41131
41145
|
return null;
|
|
41132
|
-
var a = c[0], s = o && e.parsePatterns[o] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(s) ?
|
|
41146
|
+
var a = c[0], s = o && e.parsePatterns[o] || e.parsePatterns[e.defaultParseWidth], l = Array.isArray(s) ? j1(s, function(u) {
|
|
41133
41147
|
return u.test(a);
|
|
41134
|
-
}) :
|
|
41148
|
+
}) : M1(s, function(u) {
|
|
41135
41149
|
return u.test(a);
|
|
41136
41150
|
}), m;
|
|
41137
41151
|
m = e.valueCallback ? e.valueCallback(l) : l, m = i.valueCallback ? i.valueCallback(m) : m;
|
|
@@ -41142,17 +41156,17 @@ function oo(e) {
|
|
|
41142
41156
|
};
|
|
41143
41157
|
};
|
|
41144
41158
|
}
|
|
41145
|
-
function
|
|
41159
|
+
function M1(e, n) {
|
|
41146
41160
|
for (var i in e)
|
|
41147
41161
|
if (e.hasOwnProperty(i) && n(e[i]))
|
|
41148
41162
|
return i;
|
|
41149
41163
|
}
|
|
41150
|
-
function
|
|
41164
|
+
function j1(e, n) {
|
|
41151
41165
|
for (var i = 0; i < e.length; i++)
|
|
41152
41166
|
if (n(e[i]))
|
|
41153
41167
|
return i;
|
|
41154
41168
|
}
|
|
41155
|
-
function
|
|
41169
|
+
function z1(e) {
|
|
41156
41170
|
return function(n) {
|
|
41157
41171
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = n.match(e.matchPattern);
|
|
41158
41172
|
if (!o) return null;
|
|
@@ -41167,37 +41181,37 @@ function j1(e) {
|
|
|
41167
41181
|
};
|
|
41168
41182
|
};
|
|
41169
41183
|
}
|
|
41170
|
-
var
|
|
41184
|
+
var q1 = /^(\d+)(th|st|nd|rd)?/i, I1 = /\d+/i, S1 = {
|
|
41171
41185
|
narrow: /^(b|a)/i,
|
|
41172
41186
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
41173
41187
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
41174
|
-
}, S1 = {
|
|
41175
|
-
any: [/^b/i, /^(a|c)/i]
|
|
41176
41188
|
}, H1 = {
|
|
41189
|
+
any: [/^b/i, /^(a|c)/i]
|
|
41190
|
+
}, T1 = {
|
|
41177
41191
|
narrow: /^[1234]/i,
|
|
41178
41192
|
abbreviated: /^q[1234]/i,
|
|
41179
41193
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
41180
|
-
}, T1 = {
|
|
41181
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
41182
41194
|
}, N1 = {
|
|
41195
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
41196
|
+
}, V1 = {
|
|
41183
41197
|
narrow: /^[jfmasond]/i,
|
|
41184
41198
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
41185
41199
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
41186
|
-
},
|
|
41200
|
+
}, R1 = {
|
|
41187
41201
|
narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
|
|
41188
41202
|
any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
|
|
41189
|
-
},
|
|
41203
|
+
}, L1 = {
|
|
41190
41204
|
narrow: /^[smtwf]/i,
|
|
41191
41205
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
41192
41206
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
41193
41207
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
41194
|
-
},
|
|
41208
|
+
}, O1 = {
|
|
41195
41209
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
41196
41210
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
41197
|
-
},
|
|
41211
|
+
}, U1 = {
|
|
41198
41212
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
41199
41213
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
41200
|
-
},
|
|
41214
|
+
}, W1 = {
|
|
41201
41215
|
any: {
|
|
41202
41216
|
am: /^a/i,
|
|
41203
41217
|
pm: /^p/i,
|
|
@@ -41208,54 +41222,54 @@ var z1 = /^(\d+)(th|st|nd|rd)?/i, q1 = /\d+/i, I1 = {
|
|
|
41208
41222
|
evening: /evening/i,
|
|
41209
41223
|
night: /night/i
|
|
41210
41224
|
}
|
|
41211
|
-
},
|
|
41212
|
-
ordinalNumber:
|
|
41213
|
-
matchPattern:
|
|
41214
|
-
parsePattern:
|
|
41225
|
+
}, G1 = {
|
|
41226
|
+
ordinalNumber: z1({
|
|
41227
|
+
matchPattern: q1,
|
|
41228
|
+
parsePattern: I1,
|
|
41215
41229
|
valueCallback: function(n) {
|
|
41216
41230
|
return parseInt(n, 10);
|
|
41217
41231
|
}
|
|
41218
41232
|
}),
|
|
41219
41233
|
era: oo({
|
|
41220
|
-
matchPatterns:
|
|
41234
|
+
matchPatterns: S1,
|
|
41221
41235
|
defaultMatchWidth: "wide",
|
|
41222
|
-
parsePatterns:
|
|
41236
|
+
parsePatterns: H1,
|
|
41223
41237
|
defaultParseWidth: "any"
|
|
41224
41238
|
}),
|
|
41225
41239
|
quarter: oo({
|
|
41226
|
-
matchPatterns:
|
|
41240
|
+
matchPatterns: T1,
|
|
41227
41241
|
defaultMatchWidth: "wide",
|
|
41228
|
-
parsePatterns:
|
|
41242
|
+
parsePatterns: N1,
|
|
41229
41243
|
defaultParseWidth: "any",
|
|
41230
41244
|
valueCallback: function(n) {
|
|
41231
41245
|
return n + 1;
|
|
41232
41246
|
}
|
|
41233
41247
|
}),
|
|
41234
41248
|
month: oo({
|
|
41235
|
-
matchPatterns:
|
|
41249
|
+
matchPatterns: V1,
|
|
41236
41250
|
defaultMatchWidth: "wide",
|
|
41237
|
-
parsePatterns:
|
|
41251
|
+
parsePatterns: R1,
|
|
41238
41252
|
defaultParseWidth: "any"
|
|
41239
41253
|
}),
|
|
41240
41254
|
day: oo({
|
|
41241
|
-
matchPatterns:
|
|
41255
|
+
matchPatterns: L1,
|
|
41242
41256
|
defaultMatchWidth: "wide",
|
|
41243
|
-
parsePatterns:
|
|
41257
|
+
parsePatterns: O1,
|
|
41244
41258
|
defaultParseWidth: "any"
|
|
41245
41259
|
}),
|
|
41246
41260
|
dayPeriod: oo({
|
|
41247
|
-
matchPatterns:
|
|
41261
|
+
matchPatterns: U1,
|
|
41248
41262
|
defaultMatchWidth: "any",
|
|
41249
|
-
parsePatterns:
|
|
41263
|
+
parsePatterns: W1,
|
|
41250
41264
|
defaultParseWidth: "any"
|
|
41251
41265
|
})
|
|
41252
|
-
},
|
|
41266
|
+
}, J1 = {
|
|
41253
41267
|
code: "en-US",
|
|
41254
|
-
formatDistance:
|
|
41255
|
-
formatLong:
|
|
41256
|
-
formatRelative:
|
|
41257
|
-
localize:
|
|
41258
|
-
match:
|
|
41268
|
+
formatDistance: x1,
|
|
41269
|
+
formatLong: b1,
|
|
41270
|
+
formatRelative: C1,
|
|
41271
|
+
localize: B1,
|
|
41272
|
+
match: G1,
|
|
41259
41273
|
options: {
|
|
41260
41274
|
weekStartsOn: 0,
|
|
41261
41275
|
firstWeekContainsDate: 1
|
|
@@ -41268,20 +41282,20 @@ function gm(e, n) {
|
|
|
41268
41282
|
Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
|
|
41269
41283
|
return e;
|
|
41270
41284
|
}
|
|
41271
|
-
function
|
|
41285
|
+
function K1(e) {
|
|
41272
41286
|
return gm({}, e);
|
|
41273
41287
|
}
|
|
41274
41288
|
var Jr = 1e3 * 60, mt = 60 * 24, Kr = mt * 30, Xr = mt * 365;
|
|
41275
|
-
function
|
|
41289
|
+
function X1(e, n, i) {
|
|
41276
41290
|
var o, t, c;
|
|
41277
41291
|
la(2, arguments);
|
|
41278
|
-
var a =
|
|
41292
|
+
var a = u1(), s = (o = (t = i == null ? void 0 : i.locale) !== null && t !== void 0 ? t : a.locale) !== null && o !== void 0 ? o : J1;
|
|
41279
41293
|
if (!s.formatDistance)
|
|
41280
41294
|
throw new RangeError("locale must contain localize.formatDistance property");
|
|
41281
|
-
var l =
|
|
41295
|
+
var l = h1(e, n);
|
|
41282
41296
|
if (isNaN(l))
|
|
41283
41297
|
throw new RangeError("Invalid time value");
|
|
41284
|
-
var m = gm(
|
|
41298
|
+
var m = gm(K1(i), {
|
|
41285
41299
|
addSuffix: !!(i != null && i.addSuffix),
|
|
41286
41300
|
comparison: l
|
|
41287
41301
|
}), h, u;
|
|
@@ -41317,7 +41331,7 @@ function K1(e, n, i) {
|
|
|
41317
41331
|
}
|
|
41318
41332
|
throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'");
|
|
41319
41333
|
}
|
|
41320
|
-
const
|
|
41334
|
+
const Z1 = ({
|
|
41321
41335
|
index: e,
|
|
41322
41336
|
txHistoryItem: n,
|
|
41323
41337
|
showDetails: i,
|
|
@@ -41334,7 +41348,7 @@ const X1 = ({
|
|
|
41334
41348
|
statusData: c,
|
|
41335
41349
|
historyIndex: e
|
|
41336
41350
|
});
|
|
41337
|
-
const a = Z(
|
|
41351
|
+
const a = Z(Ax), {
|
|
41338
41352
|
route: {
|
|
41339
41353
|
amountIn: s,
|
|
41340
41354
|
amountOut: l,
|
|
@@ -41376,14 +41390,14 @@ const X1 = ({
|
|
|
41376
41390
|
}
|
|
41377
41391
|
);
|
|
41378
41392
|
case "completed":
|
|
41379
|
-
return /* @__PURE__ */ r.jsx(
|
|
41393
|
+
return /* @__PURE__ */ r.jsx(_1, {});
|
|
41380
41394
|
case "failed":
|
|
41381
|
-
return /* @__PURE__ */ r.jsx(
|
|
41395
|
+
return /* @__PURE__ */ r.jsx(r1, { color: t.error.text });
|
|
41382
41396
|
}
|
|
41383
|
-
}, [C, t.error.text, t.primary.text.normal]), H = K(() => new Date(b).toLocaleString(), [b]), P = K(() => C === "pending" ? "In Progress" :
|
|
41384
|
-
return /* @__PURE__ */ r.jsxs(
|
|
41397
|
+
}, [C, t.error.text, t.primary.text.normal]), H = K(() => new Date(b).toLocaleString(), [b]), P = K(() => C === "pending" ? "In Progress" : X1(new Date(b), /* @__PURE__ */ new Date(), { addSuffix: !0 }).replace("minutes", "mins").replace("minute", "min").replace("hours", "hrs").replace("hour", "hr").replace("seconds", "secs").replace("second", "sec"), [C, b]);
|
|
41398
|
+
return /* @__PURE__ */ r.jsxs(Y1, { showDetails: i, children: [
|
|
41385
41399
|
/* @__PURE__ */ r.jsxs(
|
|
41386
|
-
|
|
41400
|
+
Q1,
|
|
41387
41401
|
{
|
|
41388
41402
|
align: "center",
|
|
41389
41403
|
justify: "space-between",
|
|
@@ -41393,7 +41407,7 @@ const X1 = ({
|
|
|
41393
41407
|
/* @__PURE__ */ r.jsx(Zr, { ...x }),
|
|
41394
41408
|
/* @__PURE__ */ r.jsx(Dm, { color: t.primary.text.lowContrast }),
|
|
41395
41409
|
/* @__PURE__ */ r.jsx(Zr, { ...g }),
|
|
41396
|
-
/* @__PURE__ */ r.jsxs(
|
|
41410
|
+
/* @__PURE__ */ r.jsxs(ng, { normalTextColor: !0, title: E.chainName, children: [
|
|
41397
41411
|
"on ",
|
|
41398
41412
|
E.chainName
|
|
41399
41413
|
] })
|
|
@@ -41406,7 +41420,7 @@ const X1 = ({
|
|
|
41406
41420
|
}
|
|
41407
41421
|
),
|
|
41408
41422
|
i && /* @__PURE__ */ r.jsx(
|
|
41409
|
-
|
|
41423
|
+
m1,
|
|
41410
41424
|
{
|
|
41411
41425
|
status: C,
|
|
41412
41426
|
sourceChainName: q.chainName ?? "--",
|
|
@@ -41423,39 +41437,39 @@ const X1 = ({
|
|
|
41423
41437
|
assetImage: i
|
|
41424
41438
|
}) => /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
41425
41439
|
/* @__PURE__ */ r.jsx("img", { height: 20, width: 20, src: i }),
|
|
41426
|
-
/* @__PURE__ */ r.jsx(
|
|
41427
|
-
/* @__PURE__ */ r.jsx(
|
|
41428
|
-
] }),
|
|
41440
|
+
/* @__PURE__ */ r.jsx($1, { normalTextColor: !0, title: e, children: e }),
|
|
41441
|
+
/* @__PURE__ */ r.jsx(eg, { normalTextColor: !0, children: (n == null ? void 0 : n.recommendedSymbol) ?? (n == null ? void 0 : n.symbol) })
|
|
41442
|
+
] }), Y1 = V(re)`
|
|
41429
41443
|
background-color: ${({ theme: e, showDetails: n }) => n && e.secondary.background.normal};
|
|
41430
41444
|
&:hover {
|
|
41431
41445
|
background-color: ${({ theme: e }) => e.secondary.background.normal};
|
|
41432
41446
|
}
|
|
41433
41447
|
border-radius: 6px;
|
|
41434
|
-
`,
|
|
41448
|
+
`, Q1 = V(U)`
|
|
41435
41449
|
padding: 0 10px;
|
|
41436
41450
|
height: 40px;
|
|
41437
41451
|
&:hover {
|
|
41438
41452
|
cursor: pointer;
|
|
41439
41453
|
}
|
|
41440
|
-
`,
|
|
41454
|
+
`, _1 = V.div`
|
|
41441
41455
|
width: 10px;
|
|
41442
41456
|
height: 10px;
|
|
41443
41457
|
background-color: ${({ theme: e }) => e.success.text};
|
|
41444
41458
|
border-radius: 50%;
|
|
41445
|
-
`,
|
|
41459
|
+
`, $1 = V(G)`
|
|
41446
41460
|
max-width: 60px;
|
|
41447
41461
|
text-overflow: ellipsis;
|
|
41448
41462
|
overflow: hidden;
|
|
41449
|
-
`,
|
|
41463
|
+
`, eg = V(G)`
|
|
41450
41464
|
max-width: 40px;
|
|
41451
41465
|
text-overflow: ellipsis;
|
|
41452
41466
|
overflow: hidden;
|
|
41453
|
-
`,
|
|
41467
|
+
`, ng = V(G)`
|
|
41454
41468
|
text-overflow: ellipsis;
|
|
41455
41469
|
overflow: hidden;
|
|
41456
41470
|
max-width: 40px;
|
|
41457
41471
|
white-space: nowrap;
|
|
41458
|
-
`,
|
|
41472
|
+
`, ig = () => {
|
|
41459
41473
|
var a;
|
|
41460
41474
|
const e = ke(), n = Z(Tn), [i, o] = be(void 0), t = X(Xn), c = K(
|
|
41461
41475
|
() => t.sort((s, l) => l.timestamp - s.timestamp),
|
|
@@ -41472,7 +41486,7 @@ const X1 = ({
|
|
|
41472
41486
|
}
|
|
41473
41487
|
}
|
|
41474
41488
|
),
|
|
41475
|
-
/* @__PURE__ */ r.jsx(
|
|
41489
|
+
/* @__PURE__ */ r.jsx(og, { gap: 5, justify: "center", children: /* @__PURE__ */ r.jsx(
|
|
41476
41490
|
na,
|
|
41477
41491
|
{
|
|
41478
41492
|
listItems: c,
|
|
@@ -41490,7 +41504,7 @@ const X1 = ({
|
|
|
41490
41504
|
},
|
|
41491
41505
|
itemHeight: 1,
|
|
41492
41506
|
renderItem: (s, l) => /* @__PURE__ */ r.jsx(
|
|
41493
|
-
|
|
41507
|
+
Z1,
|
|
41494
41508
|
{
|
|
41495
41509
|
index: l,
|
|
41496
41510
|
txHistoryItem: s,
|
|
@@ -41506,14 +41520,14 @@ const X1 = ({
|
|
|
41506
41520
|
) }),
|
|
41507
41521
|
/* @__PURE__ */ r.jsx(ea, {})
|
|
41508
41522
|
] });
|
|
41509
|
-
},
|
|
41523
|
+
}, og = V(re)`
|
|
41510
41524
|
position: relative;
|
|
41511
41525
|
padding: 20px;
|
|
41512
41526
|
width: 480px;
|
|
41513
41527
|
min-height: 302px;
|
|
41514
41528
|
border-radius: 25px;
|
|
41515
41529
|
background-color: ${({ theme: e }) => e.primary.background.normal};
|
|
41516
|
-
`,
|
|
41530
|
+
`, tg = () => {
|
|
41517
41531
|
const [e] = ue(Tn), [n, i] = ue(_e);
|
|
41518
41532
|
if (n)
|
|
41519
41533
|
return /* @__PURE__ */ r.jsx(ex, {});
|
|
@@ -41524,7 +41538,7 @@ const X1 = ({
|
|
|
41524
41538
|
{
|
|
41525
41539
|
fallback: null,
|
|
41526
41540
|
onError: (o) => i({ errorType: Le.Unexpected, error: o }),
|
|
41527
|
-
children: /* @__PURE__ */ r.jsx(
|
|
41541
|
+
children: /* @__PURE__ */ r.jsx(a1, {})
|
|
41528
41542
|
}
|
|
41529
41543
|
);
|
|
41530
41544
|
case Ue.SwapExecutionPage:
|
|
@@ -41533,7 +41547,7 @@ const X1 = ({
|
|
|
41533
41547
|
{
|
|
41534
41548
|
fallback: null,
|
|
41535
41549
|
onError: (o) => i({ errorType: Le.Unexpected, error: o }),
|
|
41536
|
-
children: /* @__PURE__ */ r.jsx(
|
|
41550
|
+
children: /* @__PURE__ */ r.jsx(m2, {})
|
|
41537
41551
|
}
|
|
41538
41552
|
);
|
|
41539
41553
|
case Ue.TransactionHistoryPage:
|
|
@@ -41542,11 +41556,11 @@ const X1 = ({
|
|
|
41542
41556
|
{
|
|
41543
41557
|
fallback: null,
|
|
41544
41558
|
onError: (o) => i({ errorType: Le.Unexpected, error: o }),
|
|
41545
|
-
children: /* @__PURE__ */ r.jsx(
|
|
41559
|
+
children: /* @__PURE__ */ r.jsx(ig, {})
|
|
41546
41560
|
}
|
|
41547
41561
|
);
|
|
41548
41562
|
}
|
|
41549
|
-
},
|
|
41563
|
+
}, cg = (e) => {
|
|
41550
41564
|
const n = Z(qe), i = Z(Dn), o = Z(vo), t = Z(wt), [{ data: c }] = ue(Hn), a = ze(
|
|
41551
41565
|
(s, l) => {
|
|
41552
41566
|
if (!(!s || !l) && c)
|
|
@@ -41573,9 +41587,9 @@ const X1 = ({
|
|
|
41573
41587
|
}), u ? o(u == null ? void 0 : u.toString()) : D && t(D == null ? void 0 : D.toString());
|
|
41574
41588
|
}
|
|
41575
41589
|
}, [c, e, a, i, t, n, o]);
|
|
41576
|
-
},
|
|
41590
|
+
}, jg = (e) => /* @__PURE__ */ r.jsx($r.Provider, { children: /* @__PURE__ */ r.jsx(fm, { ...e }) }), fm = (e) => {
|
|
41577
41591
|
var m;
|
|
41578
|
-
|
|
41592
|
+
cg(e.defaultRoute);
|
|
41579
41593
|
const n = Z(ml), i = Z(pl), o = Z(vi), t = Z(Ml), c = Z($c), a = Z(bo), s = K(() => {
|
|
41580
41594
|
const { theme: h, apiUrl: u, chainIdsToAffiliates: D, ...b } = e;
|
|
41581
41595
|
return {
|
|
@@ -41591,17 +41605,13 @@ const X1 = ({
|
|
|
41591
41605
|
return $t(() => {
|
|
41592
41606
|
n(s), i(l);
|
|
41593
41607
|
}, [n, s, i, l]), $t(() => {
|
|
41594
|
-
|
|
41608
|
+
e.settings && o({
|
|
41595
41609
|
...at,
|
|
41596
41610
|
...e.settings
|
|
41597
|
-
}), e.routeConfig) {
|
|
41598
|
-
|
|
41599
|
-
|
|
41600
|
-
|
|
41601
|
-
chainID: u.chainId
|
|
41602
|
-
}))), t(h);
|
|
41603
|
-
}
|
|
41604
|
-
e.filter && c(e.filter), e.onlyTestnet && a(e.onlyTestnet);
|
|
41611
|
+
}), e.routeConfig && t((h) => ({
|
|
41612
|
+
...h,
|
|
41613
|
+
...e.routeConfig
|
|
41614
|
+
})), e.filter && c(e.filter), e.onlyTestnet && a(e.onlyTestnet);
|
|
41605
41615
|
}, [
|
|
41606
41616
|
e.filter,
|
|
41607
41617
|
e.onlyTestnet,
|
|
@@ -41612,8 +41622,8 @@ const X1 = ({
|
|
|
41612
41622
|
a,
|
|
41613
41623
|
t,
|
|
41614
41624
|
o
|
|
41615
|
-
]), /* @__PURE__ */ r.jsx(ul, { theme: l, children: /* @__PURE__ */ r.jsx(
|
|
41616
|
-
},
|
|
41625
|
+
]), /* @__PURE__ */ r.jsx(ul, { theme: l, children: /* @__PURE__ */ r.jsx(ag, { children: /* @__PURE__ */ r.jsx(tg, {}) }) });
|
|
41626
|
+
}, zg = ({
|
|
41617
41627
|
button: e = /* @__PURE__ */ r.jsx("button", { children: "show widget" }),
|
|
41618
41628
|
...n
|
|
41619
41629
|
}) => {
|
|
@@ -41625,13 +41635,13 @@ const X1 = ({
|
|
|
41625
41635
|
});
|
|
41626
41636
|
} });
|
|
41627
41637
|
return /* @__PURE__ */ r.jsx(r.Fragment, { children: c });
|
|
41628
|
-
},
|
|
41638
|
+
}, ag = V.div`
|
|
41629
41639
|
width: 480px;
|
|
41630
41640
|
position: relative;
|
|
41631
41641
|
`;
|
|
41632
41642
|
export {
|
|
41633
|
-
|
|
41634
|
-
|
|
41643
|
+
zg as ShowWidget,
|
|
41644
|
+
jg as Widget,
|
|
41635
41645
|
Qo as defaultTheme,
|
|
41636
41646
|
zu as lightTheme
|
|
41637
41647
|
};
|