@blockend/widget 1.0.49-beta.5 → 1.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AllRoutes-LD5p98zn.js → AllRoutes-CV0ZvXKH.js} +9 -9
- package/dist/{Box-Cs3JEIFG.js → Box-Cb39MKJA.js} +9 -9
- package/dist/EstGas-DScDuqvp.js +14426 -0
- package/dist/{Grow-BvHTdetx.js → Grow-CyOgpnIU.js} +2 -2
- package/dist/{InputComp-COwG8q-J.js → InputComp-B5PYzgiO.js} +3 -3
- package/dist/{LoadRoute-DsdVO6Oo.js → LoadRoute-DVPHaKWi.js} +4 -4
- package/dist/{QuotesProgress-B8bDI4r6.js → QuotesProgress-ClcaHGJM.js} +1 -1
- package/dist/{SwapAsset-Ddh66LWB.js → SwapAsset-Blw4SFxU.js} +1 -1
- package/dist/{Tooltip-hBxzXSU3.js → Tooltip-C0P7i2vF.js} +15 -15
- package/dist/TxnButton-CHHh05qr.js +223 -0
- package/dist/{add-DGq3NqFo.js → add-B1LcVGSW.js} +1 -1
- package/dist/{all-wallets-CzWn7-6X.js → all-wallets-BeJrQ3-B.js} +1 -1
- package/dist/{app-store-BGFzY2oe.js → app-store-CaDVWZZh.js} +1 -1
- package/dist/{apple-D5zFxCbx.js → apple-CkGFfDmj.js} +1 -1
- package/dist/{arrow-bottom-circle-CskusJTk.js → arrow-bottom-circle-KdHp0Ttj.js} +1 -1
- package/dist/{arrow-bottom-D25Ef730.js → arrow-bottom-riUHz5wW.js} +1 -1
- package/dist/{arrow-left-Bn-AuY99.js → arrow-left-4uZ_FCKk.js} +1 -1
- package/dist/{arrow-right-DJQCv_ak.js → arrow-right-CQx64HKf.js} +1 -1
- package/dist/{arrow-top-Do8qEhLT.js → arrow-top-DCNA0fLu.js} +1 -1
- package/dist/{bank-CBeLsi0M.js → bank-BnOJ4hFp.js} +1 -1
- package/dist/{basic-DLf5LiFg.js → basic-BwxnVi-O.js} +3 -3
- package/dist/{browser-DVamy-m2.js → browser-B5n8jjez.js} +1 -1
- package/dist/{card-tFF7X_nt.js → card-CyQg9FUR.js} +1 -1
- package/dist/{ccip-C4idlAuS.js → ccip-BJVsdO9f.js} +14 -14
- package/dist/{checkmark-DkVW1LY2.js → checkmark-TXxWxJ06.js} +1 -1
- package/dist/{checkmark-bold-BbQos6bO.js → checkmark-bold-D0241gVT.js} +1 -1
- package/dist/{chevron-bottom-DokKka1d.js → chevron-bottom-BUgj0Jms.js} +1 -1
- package/dist/{chevron-left-BPwuTnF_.js → chevron-left-CMc-uR1E.js} +1 -1
- package/dist/{chevron-right-Djdm9Vly.js → chevron-right-DgxFd0Bj.js} +1 -1
- package/dist/{chevron-top-DviiO5xj.js → chevron-top-DiIar6gP.js} +1 -1
- package/dist/{chrome-store-BFukaYHs.js → chrome-store-B8MGsjNr.js} +1 -1
- package/dist/{clock-gPhvJPEh.js → clock-Cyg_My5N.js} +1 -1
- package/dist/{close-CWK6JCCg.js → close-RY0sGjCf.js} +1 -1
- package/dist/{coinPlaceholder-DuZ2QujM.js → coinPlaceholder-DE_qwsbW.js} +1 -1
- package/dist/{compass-DlrcJ8Hk.js → compass-CEHhCP6E.js} +1 -1
- package/dist/{copy-CNAncK5I.js → copy-FM62Yyrj.js} +1 -1
- package/dist/{core-BkrnmkI7.js → core-BhR-bSA_.js} +16 -17
- package/dist/{cursor-BknQSZIa.js → cursor-DladmQh5.js} +1 -1
- package/dist/{cursor-transparent-D7K-weum.js → cursor-transparent-D0WNWO9Y.js} +1 -1
- package/dist/{desktop-Dvki1QtU.js → desktop-B6eJupyA.js} +1 -1
- package/dist/{disconnect-QbJ6g-Q9.js → disconnect-VPpMScfC.js} +1 -1
- package/dist/{discord-BtkOmfcK.js → discord-wBtYxM-t.js} +1 -1
- package/dist/{down-DRC2u-nt.js → down-Owe76_31.js} +2 -2
- package/dist/{etherscan-C4RKkVrP.js → etherscan-9nLZ-l75.js} +1 -1
- package/dist/{exclamation-triangle-CEoAdk7x.js → exclamation-triangle-BWl_FP8O.js} +1 -1
- package/dist/{extension-DkOomXUg.js → extension-BzBM3WFk.js} +1 -1
- package/dist/{external-link-D9HfOXel.js → external-link-Dyl12aJV.js} +1 -1
- package/dist/{facebook-zQmBHowA.js → facebook-CBkAbn5g.js} +1 -1
- package/dist/{farcaster-Cfy-sjqY.js → farcaster-BRpuoVay.js} +1 -1
- package/dist/{filters-Cq1K6QWb.js → filters-B7NeWYDv.js} +1 -1
- package/dist/{getChainIds-Btq6EjyX.js → getChainIds-3ucdX-1p.js} +2 -2
- package/dist/getCosmosAddress-COhqxzQU.js +8398 -0
- package/dist/{github-gNR-tm3O.js → github-BkQ92Psg.js} +1 -1
- package/dist/{google-rmnuGsrL.js → google-D-_oWzT6.js} +1 -1
- package/dist/{hamburger-CEQO6OZs.js → hamburger-BumvcHR4.js} +5 -5
- package/dist/{help-circle-Cj4bjfia.js → help-circle-YBo375ZL.js} +1 -1
- package/dist/{id-nb5m-NKY.js → id-125Dr2Fp.js} +1 -1
- package/dist/{image-BlK2k80L.js → image-KqH_HXHv.js} +1 -1
- package/dist/{index-CZQdiy7b.js → index-1-e5pJ-0.js} +2 -2
- package/dist/{index-salSLcoU.js → index-Bpdql1-8.js} +1 -1
- package/dist/{index-pieshoDv.js → index-CEXnASRZ.js} +466 -451
- package/dist/{index-7R8NiD42.js → index-CkwDOdMt.js} +1 -1
- package/dist/{index-D5aVEHZL.js → index-DJxdLFXV.js} +51 -51
- package/dist/index-DRUdCBxf.js +3189 -0
- package/dist/{index-7iRnvPpN.js → index-Drhw6mFH.js} +8 -7
- package/dist/{index-D0tb6mUR.js → index-DvuINyOl.js} +11 -11
- package/dist/{index-CbycATvf.js → index-O7aWWjZs.js} +78 -78
- package/dist/index-aoGlnTj5.js +70013 -0
- package/dist/{index-1OzJ9Z6-.js → index-uIBPDdlb.js} +10 -10
- package/dist/{index.es-CJ-ZznBF.js → index.es-C5JaVECC.js} +3032 -3244
- package/dist/{index.es-Ce_QYzsk.js → index.es-Dg8PGfqY.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{info-6RBhKgcd.js → info-D7JbYWOR.js} +1 -1
- package/dist/{info-circle-BlIbWe25.js → info-circle-wQJP08na.js} +1 -1
- package/dist/{lightbulb-CS3_wKY8.js → lightbulb-DvxJHkNC.js} +1 -1
- package/dist/{mail-CRsD8jAA.js → mail-BdTr8Qhk.js} +1 -1
- package/dist/{mobile-DMLTKouh.js → mobile-BYMl9NU4.js} +1 -1
- package/dist/{more-uoTJ3kvy.js → more-_GkH6PVz.js} +1 -1
- package/dist/{network-placeholder-D-XL3hqx.js → network-placeholder-RkFane_-.js} +1 -1
- package/dist/{nftPlaceholder-CiYWPSAY.js → nftPlaceholder-brLois7k.js} +1 -1
- package/dist/{off-B79emGaW.js → off-BvoRAKQk.js} +1 -1
- package/dist/{play-store-B828L964.js → play-store-PAYBmMKL.js} +1 -1
- package/dist/{plus-BRVCC9lV.js → plus-C7ndQrVG.js} +1 -1
- package/dist/{qr-code-qp9DeEO9.js → qr-code-BzVDMXG9.js} +1 -1
- package/dist/{recycle-horizontal-DoDvFScD.js → recycle-horizontal-CcSjuPBD.js} +1 -1
- package/dist/{refresh-BuegBzBd.js → refresh-EnEB4S0q.js} +1 -1
- package/dist/{reown-logo-BrUAyTxC.js → reown-logo-D-m3ZlCn.js} +1 -1
- package/dist/{search-CzpyG7ky.js → search-rK2TO8oW.js} +1 -1
- package/dist/{send-BHMxC1xj.js → send-ewC_Dr5a.js} +1 -1
- package/dist/{swapHorizontal-Bq8mR1QZ.js → swapHorizontal-D4_CLnQ1.js} +1 -1
- package/dist/{swapHorizontalBold-2ueiC4L9.js → swapHorizontalBold-BxJSvW__.js} +1 -1
- package/dist/{swapHorizontalMedium-9jh3zunE.js → swapHorizontalMedium-BC6YI70K.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-BIk7kp2S.js → swapHorizontalRoundedBold-BvJ7MjAm.js} +1 -1
- package/dist/{swapVertical-DM_T3EzD.js → swapVertical-uQyY1dbd.js} +1 -1
- package/dist/{telegram-CbeDajqU.js → telegram-Dzfv7CZN.js} +1 -1
- package/dist/{three-dots-DUntIedp.js → three-dots-O3uLZLkz.js} +1 -1
- package/dist/{twitch-DIXNVK7h.js → twitch-CUtrbmL-.js} +1 -1
- package/dist/{twitterIcon-nHRKKmzg.js → twitterIcon-DZMQ8Bmn.js} +1 -1
- package/dist/{unsupportedProp-BAk0ueJt.js → unsupportedProp-Dh57ZITi.js} +1 -1
- package/dist/useRegisterError-Bp8xpLyh.js +8912 -0
- package/dist/{verify-CbyVHS7l.js → verify-1kJPzvCP.js} +1 -1
- package/dist/{verify-filled-QZDBE0oP.js → verify-filled-D6xGY8A5.js} +1 -1
- package/dist/{w3m-modal-Bp3nI0EC.js → w3m-modal-slf0WTO2.js} +2 -2
- package/dist/{wallet-DVjsV39Q.js → wallet-CI9ZKXI5.js} +1 -1
- package/dist/{wallet-placeholder-BgrGGLNk.js → wallet-placeholder-DHsdhsL5.js} +1 -1
- package/dist/{walletconnect-zriuFVFg.js → walletconnect-YEeO3478.js} +1 -1
- package/dist/{warning-circle-CpWwL8_f.js → warning-circle-CnXCXT-G.js} +1 -1
- package/dist/{x-DN0-dY3F.js → x-ChzZn6EY.js} +1 -1
- package/package.json +5 -2
- package/dist/EstGas-H-UdwS1f.js +0 -12659
- package/dist/TxnButton-jGgemD8y.js +0 -205
- package/dist/getCosmosAddress-Bu-V7Ot0.js +0 -9565
- package/dist/index-DTish3yr.js +0 -1014
- package/dist/index-Fv4UV6Sc.js +0 -30707
- package/dist/index-vM1noC-w.js +0 -3136
- package/dist/useRegisterError-tq4Tke9I.js +0 -8812
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
2
2
|
import "react";
|
3
|
-
import { F as m } from "./useRegisterError-
|
3
|
+
import { F as m } from "./useRegisterError-Bp8xpLyh.js";
|
4
4
|
function n({ value: t, decimal: o }) {
|
5
5
|
return t.length ? /* @__PURE__ */ r(m, { value: t, options: { maxDecimals: o } }) : t;
|
6
6
|
}
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import
|
3
|
-
import { a as U, T as
|
4
|
-
import { u as l, l as
|
5
|
-
import { i as
|
6
|
-
import { B as
|
7
|
-
function
|
8
|
-
var d,
|
9
|
-
const t = l((T) => T.persist), r = l((T) => T.configuration), { defaultCoin: a } =
|
10
|
-
let f = (i = (
|
11
|
-
return
|
1
|
+
import { jsxs as w, jsx as n, Fragment as A } from "react/jsx-runtime";
|
2
|
+
import _, { useContext as $, useState as E, useEffect as v, useRef as O } from "react";
|
3
|
+
import { a as U, T as J, H as K, b as L, c as V, E as W, d as X } from "./EstGas-DScDuqvp.js";
|
4
|
+
import { u as l, l as Y } from "./index-aoGlnTj5.js";
|
5
|
+
import { i as M, C as Q, A as Z } from "./useRegisterError-Bp8xpLyh.js";
|
6
|
+
import { B as R } from "./Box-Cb39MKJA.js";
|
7
|
+
function ee() {
|
8
|
+
var d, b, i, e, u, c, m, g, x, s, h, y, p, C;
|
9
|
+
const t = l((T) => T.persist), r = l((T) => T.configuration), { defaultCoin: a } = M;
|
10
|
+
let f = (i = (b = (d = t == null ? void 0 : t.route) == null ? void 0 : d.providerDetails) == null ? void 0 : b.logoUrl) != null && i.length ? (u = (e = t == null ? void 0 : t.route) == null ? void 0 : e.providerDetails) == null ? void 0 : u.logoUrl : a;
|
11
|
+
return Y.isEmpty(t.route) ? /* @__PURE__ */ n(A, {}) : /* @__PURE__ */ w("div", { className: "bw-relative bw-mt-4 bw-flex bw-justify-center ", children: [
|
12
12
|
/* @__PURE__ */ n(
|
13
13
|
"div",
|
14
14
|
{
|
@@ -18,16 +18,16 @@ function Z() {
|
|
18
18
|
className: "bw-w-[200px] bw-rounded-[50%] bw-absolute bw-right-auto bw-z-0 bw-left-auto bw-h-[40px]"
|
19
19
|
}
|
20
20
|
),
|
21
|
-
/* @__PURE__ */
|
21
|
+
/* @__PURE__ */ w("div", { className: "bw-flex bw-relative bw-bg-background-container bw-z-10 bw-mx-auto bw-h-[41px] bw-w-[70%] bw-border-[0.5px] bw-border-border-primary bw-border-r-0 bw-border-l-0 bw-items-center bw-gap-x-1", children: [
|
22
22
|
" ",
|
23
|
-
/* @__PURE__ */
|
23
|
+
/* @__PURE__ */ w("p", { className: "bw-text-sm bw-w-full bw-text-center bw-flex bw-justify-center bw-items-center bw-font-normal bw-my-1 bw-text-text-primary", children: [
|
24
24
|
/* @__PURE__ */ n("span", { className: "bw-text-sm bw-font-light", children: "via" }),
|
25
25
|
" ",
|
26
26
|
/* @__PURE__ */ n("img", { src: f, className: "bw-rounded-[50%] bw-mx-[4px] bw-min-w-[18px] bw-max-h-[18px] bw-min-h-[18px]", width: 18, height: 18 }),
|
27
27
|
((x = (g = t == null ? void 0 : t.route) == null ? void 0 : g.providerDetails) == null ? void 0 : x.name) || "",
|
28
28
|
": ",
|
29
29
|
(s = t == null ? void 0 : t.route) == null ? void 0 : s.protocolsUsed[0],
|
30
|
-
((y = (h = t == null ? void 0 : t.route) == null ? void 0 : h.protocolsUsed) == null ? void 0 : y.length) <= 1 ? "" : /* @__PURE__ */
|
30
|
+
((y = (h = t == null ? void 0 : t.route) == null ? void 0 : h.protocolsUsed) == null ? void 0 : y.length) <= 1 ? "" : /* @__PURE__ */ w("span", { className: "bw-ml-1 bw-text-xs bw-font-normal bw-leading-6", children: [
|
31
31
|
`+${((C = (p = t == null ? void 0 : t.route) == null ? void 0 : p.protocolsUsed) == null ? void 0 : C.length) - 1}`,
|
32
32
|
" More"
|
33
33
|
] }),
|
@@ -38,13 +38,13 @@ function Z() {
|
|
38
38
|
] });
|
39
39
|
}
|
40
40
|
let N;
|
41
|
-
function
|
41
|
+
function te() {
|
42
42
|
var u, c, m, g, x;
|
43
|
-
const t = l((s) => s.configuration), r = l((s) => s.persist), a = l((s) => s.setPersist), { isErrorMessage: f } =
|
44
|
-
let
|
45
|
-
const [i, e] = E(
|
43
|
+
const t = l((s) => s.configuration), r = l((s) => s.persist), a = l((s) => s.setPersist), { isErrorMessage: f } = $(U), d = Math.floor(((/* @__PURE__ */ new Date()).getTime() - r.quoteStartTime) / 1e3);
|
44
|
+
let b = ((u = r == null ? void 0 : r.route) == null ? void 0 : u.deadline) || 60;
|
45
|
+
const [i, e] = E(b);
|
46
46
|
return v(() => {
|
47
|
-
d && e(
|
47
|
+
d && e(b - d);
|
48
48
|
}, []), v(() => (N = setInterval(() => {
|
49
49
|
e((s) => {
|
50
50
|
var h;
|
@@ -57,13 +57,13 @@ function R() {
|
|
57
57
|
});
|
58
58
|
}, 1e3), () => clearInterval(N)), []), v(() => {
|
59
59
|
(f || !r.isQuoteTimer) && clearInterval(N);
|
60
|
-
}, [f, r.isQuoteTimer]), !(r != null && r.hash) && r.quote === "enable" ? /* @__PURE__ */
|
61
|
-
/* @__PURE__ */ n("svg", { className: "bw-absolute bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */
|
60
|
+
}, [f, r.isQuoteTimer]), !(r != null && r.hash) && r.quote === "enable" ? /* @__PURE__ */ w("div", { className: "bw-absolute bw-top-0 bw-right-0 ", children: [
|
61
|
+
/* @__PURE__ */ n("svg", { className: "bw-absolute bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ w("linearGradient", { id: "linearColors", x1: "0", y1: "0", x2: "1", y2: "1", children: [
|
62
62
|
/* @__PURE__ */ n("stop", { offset: "1%", stopColor: (c = t == null ? void 0 : t.gradientStyle) != null && c.spinnerColor ? (m = t == null ? void 0 : t.gradientStyle) == null ? void 0 : m.spinnerColor : "#A45EFF" }),
|
63
63
|
/* @__PURE__ */ n("stop", { offset: "90%", stopColor: (g = t == null ? void 0 : t.gradientStyle) != null && g.spinnerColor ? (x = t == null ? void 0 : t.gradientStyle) == null ? void 0 : x.stopColor : "#2CFFE4" })
|
64
64
|
] }) }),
|
65
|
-
/* @__PURE__ */
|
66
|
-
|
65
|
+
/* @__PURE__ */ w(
|
66
|
+
R,
|
67
67
|
{
|
68
68
|
sx: {
|
69
69
|
position: "relative",
|
@@ -88,12 +88,12 @@ function R() {
|
|
88
88
|
variant: "determinate",
|
89
89
|
size: 20,
|
90
90
|
thickness: 5,
|
91
|
-
value: i /
|
91
|
+
value: i / b * 100,
|
92
92
|
sx: {
|
93
93
|
"svg circle": { stroke: "url(#linearColors)" },
|
94
94
|
position: "absolute",
|
95
95
|
left: 0,
|
96
|
-
[`& .${
|
96
|
+
[`& .${Z.circle}`]: {
|
97
97
|
strokeLinecap: "round"
|
98
98
|
}
|
99
99
|
}
|
@@ -104,11 +104,11 @@ function R() {
|
|
104
104
|
)
|
105
105
|
] }) : /* @__PURE__ */ n(A, {});
|
106
106
|
}
|
107
|
-
const
|
108
|
-
var k;
|
109
|
-
const i = l((o) => o.setPersist), e = l((o) => o.persist), u = l((o) => o.fromChain), c = l((o) => o.fromCoin), m = l((o) => o.toChain), g = l((o) => o.toCoin), [x, s] = E(!1), [h, y] = E(!1), [p, C] = E(!1), T = !e.stepData, { txnupdate:
|
107
|
+
const ne = _.memo(function({ handleOpenExchange: t, amount: r, route: a, resetAmount: f, resetBalance: d, setExchange: b }) {
|
108
|
+
var k, j;
|
109
|
+
const i = l((o) => o.setPersist), e = l((o) => o.persist), u = l((o) => o.fromChain), c = l((o) => o.fromCoin), m = l((o) => o.toChain), g = l((o) => o.toCoin), [x, s] = E(!1), [h, y] = E(!1), [p, C] = E(!1), T = !e.stepData, { txnupdate: q, refunded: B } = M;
|
110
110
|
v(() => {
|
111
|
-
var o,
|
111
|
+
var o, z, D, F;
|
112
112
|
a != null && a.routeId && i({
|
113
113
|
...(o = l.getState()) == null ? void 0 : o.persist,
|
114
114
|
routeId: a == null ? void 0 : a.routeId,
|
@@ -120,7 +120,7 @@ const ee = G.memo(function({ handleOpenExchange: t, amount: r, route: a, resetAm
|
|
120
120
|
amount: r,
|
121
121
|
quote: "enable",
|
122
122
|
openAt: (/* @__PURE__ */ new Date()).getTime(),
|
123
|
-
startTime: ((F = (
|
123
|
+
startTime: ((F = (D = (z = l) == null ? void 0 : z.getState()) == null ? void 0 : D.persist) == null ? void 0 : F.startTime) || (/* @__PURE__ */ new Date()).getTime()
|
124
124
|
});
|
125
125
|
}, [a]);
|
126
126
|
function I(o) {
|
@@ -134,63 +134,63 @@ const ee = G.memo(function({ handleOpenExchange: t, amount: r, route: a, resetAm
|
|
134
134
|
}), [e == null ? void 0 : e.openAt]), v(() => (e != null && e.openAt && window.addEventListener("load", S), () => {
|
135
135
|
window.removeEventListener("load", S);
|
136
136
|
}), [e == null ? void 0 : e.openAt]);
|
137
|
-
function
|
137
|
+
function G(o) {
|
138
138
|
y(o);
|
139
139
|
}
|
140
|
-
function
|
140
|
+
function H(o) {
|
141
141
|
C(o);
|
142
142
|
}
|
143
143
|
function P() {
|
144
144
|
t(), i({}), h && d();
|
145
145
|
}
|
146
|
-
return /* @__PURE__ */ n(
|
147
|
-
/* @__PURE__ */ n(
|
148
|
-
/* @__PURE__ */ n("div", { className: "bw-mt-[-20px] ", children: /* @__PURE__ */ n(
|
149
|
-
e != null && e.isQuoteTimer ? /* @__PURE__ */ n(
|
146
|
+
return /* @__PURE__ */ n(J.Provider, { value: { isTxnSuccessful: h, handleTxnSuccess: G }, children: /* @__PURE__ */ n(U.Provider, { value: { isErrorMessage: p, handleErrorMessage: H }, children: /* @__PURE__ */ w("div", { className: "bw-w-full bw-relative bw-min-h-[610px] ", children: [
|
147
|
+
/* @__PURE__ */ n(K, { handleBack: P }),
|
148
|
+
/* @__PURE__ */ n("div", { className: "bw-mt-[-20px] ", children: /* @__PURE__ */ n(ee, {}) }),
|
149
|
+
e != null && e.isQuoteTimer ? /* @__PURE__ */ n(te, {}) : /* @__PURE__ */ n(A, {}),
|
150
150
|
/* @__PURE__ */ n("div", { className: "bw-flex bw-justify-between bw-items-center" }),
|
151
|
-
/* @__PURE__ */
|
152
|
-
/* @__PURE__ */
|
151
|
+
/* @__PURE__ */ w("div", { className: "bw-flex bw-w-full bw-mt-4 bw-justify-between bw-items-center", children: [
|
152
|
+
/* @__PURE__ */ w("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
153
153
|
/* @__PURE__ */ n("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Send" }),
|
154
154
|
/* @__PURE__ */ n(L, { amount: e == null ? void 0 : e.amount, coinData: e.fromCoin, chainData: e.fromChain, field: "from" })
|
155
155
|
] }),
|
156
|
-
p ? /* @__PURE__ */ n("div", { className: "bw-border bw-mt-5 bw-w-[65px] bw-h-[65px] bw-flex bw-items-center bw-justify-center bw-rounded-[50%] bw-bg-background-container bw-relative bw-z-10 hover:bw-opacity-100 bw-border-border-primary ", children: /* @__PURE__ */ n("img", { src:
|
156
|
+
p ? /* @__PURE__ */ n("div", { className: "bw-border bw-mt-5 bw-w-[65px] bw-h-[65px] bw-flex bw-items-center bw-justify-center bw-rounded-[50%] bw-bg-background-container bw-relative bw-z-10 hover:bw-opacity-100 bw-border-border-primary ", children: ((k = e == null ? void 0 : e.statusData) == null ? void 0 : k.status) === "refunded" ? /* @__PURE__ */ n("img", { src: B, width: 33, height: 30, alt: "img" }) : /* @__PURE__ */ n("img", { src: q, width: 33, height: 30, alt: "img" }) }) : /* @__PURE__ */ n(V, { isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x, startTimer: I, error: p }),
|
157
157
|
/* @__PURE__ */ n("div", { className: "bw-w-full bw-z-0 md:bw-w-full bw-mt-5 bw-absolute bw-h-[1px] bw-bg-border-primary " }),
|
158
|
-
/* @__PURE__ */
|
158
|
+
/* @__PURE__ */ w("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
159
159
|
/* @__PURE__ */ n("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Receive" }),
|
160
|
-
/* @__PURE__ */ n(L, { amount: Number(((
|
160
|
+
/* @__PURE__ */ n(L, { amount: Number(((j = e == null ? void 0 : e.route) == null ? void 0 : j.outputAmountDisplay) || ""), coinData: e == null ? void 0 : e.toCoin, chainData: e == null ? void 0 : e.toChain, field: "to" })
|
161
161
|
] })
|
162
162
|
] }),
|
163
|
-
/* @__PURE__ */
|
164
|
-
T ? /* @__PURE__ */ n(A, {}) : /* @__PURE__ */ n(
|
165
|
-
/* @__PURE__ */ n(
|
163
|
+
/* @__PURE__ */ w("div", { className: "bw-h-[320px] bw-pr-1 bw-flex bw-flex-col bw-mt-8 bw-overflow-y-auto", children: [
|
164
|
+
T ? /* @__PURE__ */ n(A, {}) : /* @__PURE__ */ n(W, {}),
|
165
|
+
/* @__PURE__ */ n(X, { handleOpenExchange: t, setExchange: b, amount: r, startTimer: I, handleBack: P, isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x })
|
166
166
|
] })
|
167
167
|
] }) }) });
|
168
168
|
});
|
169
|
-
function
|
169
|
+
function we({
|
170
170
|
handleConfirmClose: t,
|
171
171
|
routesData: r,
|
172
172
|
amount: a,
|
173
173
|
resetAmount: f,
|
174
174
|
resetBalance: d,
|
175
|
-
handleStopRoute:
|
175
|
+
handleStopRoute: b
|
176
176
|
}) {
|
177
|
-
const i =
|
177
|
+
const i = O();
|
178
178
|
v(() => {
|
179
179
|
var c, m;
|
180
180
|
!i.current && Number(
|
181
181
|
((c = i == null ? void 0 : i.current) == null ? void 0 : c.minOutputAmount) || ((m = i == null ? void 0 : i.current) == null ? void 0 : m.outputAmountDisplay)
|
182
182
|
) !== Number((r == null ? void 0 : r.minOutputAmount) || (r == null ? void 0 : r.outputAmountDisplay)) && (i.current = r);
|
183
183
|
}, [r]), v(() => {
|
184
|
-
|
184
|
+
b(!0);
|
185
185
|
}, []);
|
186
186
|
function e() {
|
187
|
-
|
187
|
+
b(!1), t(!1);
|
188
188
|
}
|
189
189
|
function u() {
|
190
190
|
t(!1);
|
191
191
|
}
|
192
192
|
return /* @__PURE__ */ n(
|
193
|
-
|
193
|
+
ne,
|
194
194
|
{
|
195
195
|
handleOpenExchange: e,
|
196
196
|
amount: a,
|
@@ -202,5 +202,5 @@ function le({
|
|
202
202
|
);
|
203
203
|
}
|
204
204
|
export {
|
205
|
-
|
205
|
+
we as default
|
206
206
|
};
|