@blockend/widget 1.0.49-beta.3 → 1.0.50
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-CMV2Aikv.js → AllRoutes-CULIQsat.js} +9 -9
- package/dist/{Box-BLU3JkBD.js → Box-NqP6AVwQ.js} +6 -6
- package/dist/EstGas-Dh9afjPx.js +12661 -0
- package/dist/{Grow-BNGsloYF.js → Grow-DimeDg31.js} +2 -2
- package/dist/{InputComp-My-aSA0q.js → InputComp-yY8lKNsS.js} +3 -3
- package/dist/{LoadRoute-DEc0qJGB.js → LoadRoute-C9PROsCB.js} +4 -4
- package/dist/{QuotesProgress-DyCbRkmW.js → QuotesProgress-BqAtKdL0.js} +1 -1
- package/dist/{SwapAsset-VBFtcbjw.js → SwapAsset-CZhHktg2.js} +1 -1
- package/dist/{Tooltip-DkFdda4P.js → Tooltip-BiZCYxM1.js} +3 -3
- package/dist/{TxnButton-DtS9Dw0R.js → TxnButton-BZKqys7R.js} +23 -22
- package/dist/{add-CIcwZ7BM.js → add-h0-mWiyZ.js} +1 -1
- package/dist/{all-wallets-Bh1_cRVE.js → all-wallets-B1G-BF4O.js} +1 -1
- package/dist/{app-store-1QxQqMCa.js → app-store-C6terlTd.js} +1 -1
- package/dist/{apple-CtdqvHaM.js → apple-BAMP6vUT.js} +1 -1
- package/dist/{arrow-bottom-D-GL64pV.js → arrow-bottom-5NtikK9r.js} +1 -1
- package/dist/{arrow-bottom-circle-BZZ6oS3I.js → arrow-bottom-circle-GWblbKB-.js} +1 -1
- package/dist/{arrow-left-CtM73IFh.js → arrow-left-CuwEORVr.js} +1 -1
- package/dist/{arrow-right-C_3it8wU.js → arrow-right-B7p52n9L.js} +1 -1
- package/dist/{arrow-top-B_akssLE.js → arrow-top-X0Z_PT4J.js} +1 -1
- package/dist/{bank-BAZaWTHP.js → bank-I9RgXHkl.js} +1 -1
- package/dist/{basic-BQ6VlY2V.js → basic-DlZzE8fW.js} +3 -3
- package/dist/{browser-D-m8U4qp.js → browser-y883UdyY.js} +1 -1
- package/dist/{card-CZMLg_hs.js → card-DFwMQe6t.js} +1 -1
- package/dist/{ccip-Cr2zG-xI.js → ccip-BdqG54tP.js} +16 -16
- package/dist/{checkmark-Db5ONmjX.js → checkmark-DwHPcz7y.js} +1 -1
- package/dist/{checkmark-bold-CNdIOniu.js → checkmark-bold-CwUU9faI.js} +1 -1
- package/dist/{chevron-bottom-B4LZ07P4.js → chevron-bottom-CM8xoehI.js} +1 -1
- package/dist/{chevron-left-BOiLmc3e.js → chevron-left-Bv_KYFge.js} +1 -1
- package/dist/{chevron-right-C8aUeQEC.js → chevron-right-CuU7ZCUE.js} +1 -1
- package/dist/{chevron-top-DQnpWjJP.js → chevron-top-FBXj-YJj.js} +1 -1
- package/dist/{chrome-store-B2Ctt_Iw.js → chrome-store-BIA_g9fd.js} +1 -1
- package/dist/{clock-4Nkh4x1b.js → clock-CgcPvmV3.js} +1 -1
- package/dist/{close-CiK1EUke.js → close-Dro7okSF.js} +1 -1
- package/dist/{coinPlaceholder-CcnyeBg0.js → coinPlaceholder-Df9r_k0L.js} +1 -1
- package/dist/{compass-C8XMPb-_.js → compass-zmLyV0WT.js} +1 -1
- package/dist/{copy-D-ZlELIO.js → copy-CIamcXhE.js} +1 -1
- package/dist/{core-CE7ZvgmO.js → core-2WkYhq16.js} +17 -16
- package/dist/{cursor-RiCqhq_2.js → cursor-C2EB1DLY.js} +1 -1
- package/dist/{cursor-transparent-Cpuw-bx1.js → cursor-transparent-BRACM7k5.js} +1 -1
- package/dist/{desktop-BcnqlO6_.js → desktop-Nj8wnhrx.js} +1 -1
- package/dist/{disconnect-BXI_7OV3.js → disconnect-BA3_H2TE.js} +1 -1
- package/dist/{discord-DZgQjBjt.js → discord-BnYi_b4O.js} +1 -1
- package/dist/{down-C8I1GmTa.js → down-BiWYZhrl.js} +2 -2
- package/dist/{etherscan-DHArh1Kg.js → etherscan-Oni_KoX7.js} +1 -1
- package/dist/{exclamation-triangle-Dp1k7Xyg.js → exclamation-triangle-DensxwAC.js} +1 -1
- package/dist/{extension-Dav7fjmZ.js → extension-CJ-ksDa9.js} +1 -1
- package/dist/{external-link-DWQsWqey.js → external-link-D2xEf8Lc.js} +1 -1
- package/dist/{facebook-xI7TIm3V.js → facebook-Dc9l2BHT.js} +1 -1
- package/dist/{farcaster-ByqbNlsO.js → farcaster-PnjVCWz_.js} +1 -1
- package/dist/{filters-CPWYBjRc.js → filters-BHTpF3UH.js} +1 -1
- package/dist/{getChainIds-DY_neilc.js → getChainIds-CfrzTUBX.js} +2 -2
- package/dist/getCosmosAddress-CQBPedP-.js +9565 -0
- package/dist/{github-prZ8t34_.js → github-SsGUhatp.js} +1 -1
- package/dist/{google-CcUsHax7.js → google-ClSrT1Rw.js} +1 -1
- package/dist/{hamburger-BJOW28p-.js → hamburger-CnBL_kWz.js} +5 -5
- package/dist/{help-circle-XwyOApi8.js → help-circle-6WH3b0xJ.js} +1 -1
- package/dist/{id-Ftjt1pHJ.js → id-BpdNL8xg.js} +1 -1
- package/dist/{image-D3UyCNRs.js → image-D98hwlBe.js} +1 -1
- package/dist/index-270jcL0T.js +159 -0
- package/dist/{index-DmHzoK8Z.js → index-BD7sxHzc.js} +2 -2
- package/dist/{index-V7wGfBWj.js → index-BYEfYYbR.js} +2192 -2170
- package/dist/{index-ME6WmREi.js → index-CbunQDKM.js} +1 -1
- package/dist/{index-vg6UIFZD.js → index-CdSs-KXV.js} +11 -11
- package/dist/index-DTish3yr.js +1014 -0
- package/dist/{index-B518UW03.js → index-DbBaCDf8.js} +78 -78
- package/dist/index-Hx1OgUt3.js +206 -0
- package/dist/{index-Cea3JIZ5.js → index-Kcq8t_TI.js} +1 -1
- package/dist/index-VwOzTBuI.js +30707 -0
- package/dist/{index-BykNQI23.js → index-uMBmZTqD.js} +5 -5
- package/dist/{index-BHDpDBXv.js → index-yf9XBWfH.js} +259 -257
- package/dist/{index.es-TqUYQAoH.js → index.es-DNIrxJpP.js} +1 -1
- package/dist/{index.es-ng6OTpYR.js → index.es-extFs-He.js} +1712 -1625
- package/dist/index.es.js +1 -1
- package/dist/{info-DBsGMB_O.js → info-CX4R9q8L.js} +1 -1
- package/dist/{info-circle-Bx2PIRGJ.js → info-circle-ByA7titS.js} +1 -1
- package/dist/{lightbulb-KoBLmJby.js → lightbulb-DpdMU1eo.js} +1 -1
- package/dist/{mail-CZKrqpFU.js → mail-D7BloLRj.js} +1 -1
- package/dist/{mobile-CN4pmWVU.js → mobile-BfhAPCLe.js} +1 -1
- package/dist/{more-1brm4Q7X.js → more-2Fi4UnXg.js} +1 -1
- package/dist/{network-placeholder-CAlA46Kt.js → network-placeholder-CQk-R-eu.js} +1 -1
- package/dist/{nftPlaceholder-DHzDfy6E.js → nftPlaceholder-D67aKpf-.js} +1 -1
- package/dist/{off-1usMfWM7.js → off-CER3l2ZF.js} +1 -1
- package/dist/{play-store-C_t-IwRL.js → play-store-D3OG1Nf5.js} +1 -1
- package/dist/{plus-B5w-_zg6.js → plus-XfyglU6D.js} +1 -1
- package/dist/{qr-code-DQh--5Nd.js → qr-code-C2QzWWzi.js} +1 -1
- package/dist/{recycle-horizontal-CBNgoZdm.js → recycle-horizontal-BNoCX8eV.js} +1 -1
- package/dist/{refresh-gjkJ3fAS.js → refresh-BtgNPYm1.js} +1 -1
- package/dist/{reown-logo-BmVLHjjQ.js → reown-logo-BfwHREPj.js} +1 -1
- package/dist/{search-CuK6y19Q.js → search-xILtKxp2.js} +1 -1
- package/dist/{send-CIaAYk7c.js → send-Cbq82Ise.js} +1 -1
- package/dist/{swapHorizontal-Dl8NLG_i.js → swapHorizontal-ieu8keoA.js} +1 -1
- package/dist/{swapHorizontalBold-BnPyIFiA.js → swapHorizontalBold-DB9kV8I4.js} +1 -1
- package/dist/{swapHorizontalMedium-CEivQ8L0.js → swapHorizontalMedium-CFcq-Eii.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-C9ACKZnM.js → swapHorizontalRoundedBold-J-bBHkKw.js} +1 -1
- package/dist/{swapVertical-ZEEyof9e.js → swapVertical-CdsB-iHQ.js} +1 -1
- package/dist/{telegram-B3c-a3zh.js → telegram-BcA4SOe-.js} +1 -1
- package/dist/{three-dots-DUit7LCw.js → three-dots-tnSr7FoX.js} +1 -1
- package/dist/{twitch-3MyiQW6J.js → twitch-C0EXCOL_.js} +1 -1
- package/dist/{twitterIcon-DrkQHEH8.js → twitterIcon-D8gUfoR9.js} +1 -1
- package/dist/{unsupportedProp-BXXskXK0.js → unsupportedProp-ClTIJsqE.js} +1 -1
- package/dist/{useRegisterError-D172QfL7.js → useRegisterError-BrX0SzkP.js} +1 -1
- package/dist/{verify-Ez0YdpbL.js → verify-1fQ9qDGq.js} +1 -1
- package/dist/{verify-filled-Cof7FJLP.js → verify-filled-B-Bua_F7.js} +1 -1
- package/dist/{w3m-modal-D9qNteo9.js → w3m-modal-B4ljhCgE.js} +2 -2
- package/dist/{wallet-D8n_ZZlC.js → wallet-CHuFygGk.js} +1 -1
- package/dist/{wallet-placeholder-C7X2GW9S.js → wallet-placeholder-BY3FPHTK.js} +1 -1
- package/dist/{walletconnect-CKYpGIEb.js → walletconnect-1yfFjEWg.js} +1 -1
- package/dist/{warning-circle-BcBltCn2.js → warning-circle-CtfJ6Xr4.js} +1 -1
- package/dist/widget.css +1 -1
- package/dist/{x-BppUkwM-.js → x-j-7tNFTH.js} +1 -1
- package/package.json +2 -4
- package/dist/EstGas-ywgk-29s.js +0 -1486
- package/dist/getCosmosAddress-_BeZxDkv.js +0 -6075
- package/dist/index-BaPgYkZ_.js +0 -42277
- package/dist/index-BtI5pdx-.js +0 -6711
- package/dist/index-klVp-SBb.js +0 -206
package/dist/index-klVp-SBb.js
DELETED
@@ -1,206 +0,0 @@
|
|
1
|
-
import { jsxs as c, jsx as r, Fragment as A } from "react/jsx-runtime";
|
2
|
-
import _, { useContext as $, useState as y, useEffect as p, useRef as O } from "react";
|
3
|
-
import { a as L, e as J, T as K, H as V, b as z, c as W, E as X, d as Y } from "./EstGas-ywgk-29s.js";
|
4
|
-
import { u as s, l as Z } from "./index-BaPgYkZ_.js";
|
5
|
-
import { i as Q, C as F, A as R } from "./useRegisterError-D172QfL7.js";
|
6
|
-
import { B as ee } from "./Box-BLU3JkBD.js";
|
7
|
-
function te() {
|
8
|
-
var d, b, i, e, u, w, m, v, x, l, h, C, g, S;
|
9
|
-
const t = s((T) => T.persist), n = s((T) => T.configuration), { defaultCoin: a } = Q;
|
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 Z.isEmpty(t.route) ? /* @__PURE__ */ r(A, {}) : /* @__PURE__ */ c("div", { className: "bw-relative bw-mt-4 bw-flex bw-justify-center ", children: [
|
12
|
-
/* @__PURE__ */ r(
|
13
|
-
"div",
|
14
|
-
{
|
15
|
-
style: {
|
16
|
-
boxShadow: n && n.customTheme && ((m = (w = n.customTheme) == null ? void 0 : w.shadow) == null ? void 0 : m.boxShadow) || "1px 1px 10px 3px rgba(0, 0, 0, 0.15)"
|
17
|
-
},
|
18
|
-
className: "bw-w-[200px] bw-rounded-[50%] bw-absolute bw-right-auto bw-z-0 bw-left-auto bw-h-[40px]"
|
19
|
-
}
|
20
|
-
),
|
21
|
-
/* @__PURE__ */ c("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
|
-
" ",
|
23
|
-
/* @__PURE__ */ c("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
|
-
/* @__PURE__ */ r("span", { className: "bw-text-sm bw-font-light", children: "via" }),
|
25
|
-
" ",
|
26
|
-
/* @__PURE__ */ r("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
|
-
((x = (v = t == null ? void 0 : t.route) == null ? void 0 : v.providerDetails) == null ? void 0 : x.name) || "",
|
28
|
-
": ",
|
29
|
-
(l = t == null ? void 0 : t.route) == null ? void 0 : l.protocolsUsed[0],
|
30
|
-
((C = (h = t == null ? void 0 : t.route) == null ? void 0 : h.protocolsUsed) == null ? void 0 : C.length) <= 1 ? "" : /* @__PURE__ */ c("span", { className: "bw-ml-1 bw-text-xs bw-font-normal bw-leading-6", children: [
|
31
|
-
`+${((S = (g = t == null ? void 0 : t.route) == null ? void 0 : g.protocolsUsed) == null ? void 0 : S.length) - 1}`,
|
32
|
-
" More"
|
33
|
-
] }),
|
34
|
-
" "
|
35
|
-
] }),
|
36
|
-
" "
|
37
|
-
] })
|
38
|
-
] });
|
39
|
-
}
|
40
|
-
let E;
|
41
|
-
function re() {
|
42
|
-
var u, w, m, v, x;
|
43
|
-
const t = s((l) => l.configuration), n = s((l) => l.persist), a = s((l) => l.setPersist), { isErrorMessage: f } = $(L), d = Math.floor(((/* @__PURE__ */ new Date()).getTime() - n.quoteStartTime) / 1e3);
|
44
|
-
let b = ((u = n == null ? void 0 : n.route) == null ? void 0 : u.deadline) || 60;
|
45
|
-
const [i, e] = y(b);
|
46
|
-
return p(() => {
|
47
|
-
d && e(b - d);
|
48
|
-
}, []), p(() => (E = setInterval(() => {
|
49
|
-
e((l) => {
|
50
|
-
var h;
|
51
|
-
return l <= 0 ? (clearInterval(E), a({
|
52
|
-
...(h = s.getState()) == null ? void 0 : h.persist,
|
53
|
-
isQuoteTimer: !1,
|
54
|
-
showAcceptQuote: !0,
|
55
|
-
quoteStartTime: (/* @__PURE__ */ new Date()).getTime()
|
56
|
-
}), 0) : l - 1;
|
57
|
-
});
|
58
|
-
}, 1e3), () => clearInterval(E)), []), p(() => {
|
59
|
-
(f || !n.isQuoteTimer) && clearInterval(E);
|
60
|
-
}, [f, n.isQuoteTimer]), !(n != null && n.hash) && n.quote === "enable" ? /* @__PURE__ */ c("div", { className: "bw-absolute bw-top-0 bw-right-0 ", children: [
|
61
|
-
/* @__PURE__ */ r("svg", { className: "bw-absolute bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ c("linearGradient", { id: "linearColors", x1: "0", y1: "0", x2: "1", y2: "1", children: [
|
62
|
-
/* @__PURE__ */ r("stop", { offset: "1%", stopColor: (w = t == null ? void 0 : t.gradientStyle) != null && w.spinnerColor ? (m = t == null ? void 0 : t.gradientStyle) == null ? void 0 : m.spinnerColor : "#A45EFF" }),
|
63
|
-
/* @__PURE__ */ r("stop", { offset: "90%", stopColor: (v = t == null ? void 0 : t.gradientStyle) != null && v.spinnerColor ? (x = t == null ? void 0 : t.gradientStyle) == null ? void 0 : x.stopColor : "#2CFFE4" })
|
64
|
-
] }) }),
|
65
|
-
/* @__PURE__ */ c(
|
66
|
-
ee,
|
67
|
-
{
|
68
|
-
sx: {
|
69
|
-
position: "relative",
|
70
|
-
display: "inline-flex"
|
71
|
-
},
|
72
|
-
children: [
|
73
|
-
/* @__PURE__ */ r(
|
74
|
-
F,
|
75
|
-
{
|
76
|
-
variant: "determinate",
|
77
|
-
sx: {
|
78
|
-
color: "var(--tw-border-primary)"
|
79
|
-
},
|
80
|
-
size: 20,
|
81
|
-
thickness: 2,
|
82
|
-
value: 100
|
83
|
-
}
|
84
|
-
),
|
85
|
-
/* @__PURE__ */ r(
|
86
|
-
F,
|
87
|
-
{
|
88
|
-
variant: "determinate",
|
89
|
-
size: 20,
|
90
|
-
thickness: 5,
|
91
|
-
value: i / b * 100,
|
92
|
-
sx: {
|
93
|
-
"svg circle": { stroke: "url(#linearColors)" },
|
94
|
-
position: "absolute",
|
95
|
-
left: 0,
|
96
|
-
[`& .${R.circle}`]: {
|
97
|
-
strokeLinecap: "round"
|
98
|
-
}
|
99
|
-
}
|
100
|
-
}
|
101
|
-
)
|
102
|
-
]
|
103
|
-
}
|
104
|
-
)
|
105
|
-
] }) : /* @__PURE__ */ r(A, {});
|
106
|
-
}
|
107
|
-
const ne = _.memo(function({ handleOpenExchange: t, amount: n, route: a, resetAmount: f, resetBalance: d, setExchange: b }) {
|
108
|
-
var k;
|
109
|
-
const i = s((o) => o.setPersist), e = s((o) => o.persist), u = s((o) => o.fromChain), w = s((o) => o.fromCoin), m = s((o) => o.toChain), v = s((o) => o.toCoin), [x, l] = y(!1), [h, C] = y(!1), [g, S] = y(!1), [T, U] = y({}), q = !e.stepData, { txnupdate: B } = Q;
|
110
|
-
p(() => {
|
111
|
-
var o, j, D, M;
|
112
|
-
a != null && a.routeId && i({
|
113
|
-
...(o = s.getState()) == null ? void 0 : o.persist,
|
114
|
-
routeId: a == null ? void 0 : a.routeId,
|
115
|
-
route: a,
|
116
|
-
toChain: m,
|
117
|
-
toCoin: v,
|
118
|
-
fromChain: u,
|
119
|
-
fromCoin: w,
|
120
|
-
amount: n,
|
121
|
-
quote: "enable",
|
122
|
-
openAt: (/* @__PURE__ */ new Date()).getTime(),
|
123
|
-
startTime: ((M = (D = (j = s) == null ? void 0 : j.getState()) == null ? void 0 : D.persist) == null ? void 0 : M.startTime) || (/* @__PURE__ */ new Date()).getTime()
|
124
|
-
});
|
125
|
-
}, [a]);
|
126
|
-
function I(o) {
|
127
|
-
l(o);
|
128
|
-
}
|
129
|
-
function N() {
|
130
|
-
((e == null ? void 0 : e.openAt) + 60 * 60 * 1e3 - (/* @__PURE__ */ new Date()).getTime()) / 1e3 / 60 <= 0 && document.visibilityState === "visible" && (i({ allSteps: { steps: null, currentStep: 0 }, stepData: {} }), t(), f());
|
131
|
-
}
|
132
|
-
p(() => (e != null && e.openAt && window.addEventListener("visibilitychange", N), () => {
|
133
|
-
window.removeEventListener("visibilitychange", N);
|
134
|
-
}), [e == null ? void 0 : e.openAt]), p(() => (e != null && e.openAt && window.addEventListener("load", N), () => {
|
135
|
-
window.removeEventListener("load", N);
|
136
|
-
}), [e == null ? void 0 : e.openAt]);
|
137
|
-
function G(o) {
|
138
|
-
C(o);
|
139
|
-
}
|
140
|
-
function H(o) {
|
141
|
-
S(o);
|
142
|
-
}
|
143
|
-
function P() {
|
144
|
-
t(), i({ allSteps: { steps: null, currentStep: 0 }, stepData: {} }), h && d();
|
145
|
-
}
|
146
|
-
return /* @__PURE__ */ r(J, { children: /* @__PURE__ */ r(K.Provider, { value: { isTxnSuccessful: h, handleTxnSuccess: G }, children: /* @__PURE__ */ r(L.Provider, { value: { isErrorMessage: g, handleErrorMessage: H, errorMessage: T, setErrorMessage: U }, children: /* @__PURE__ */ c("div", { className: "bw-w-full bw-relative bw-min-h-[610px] ", children: [
|
147
|
-
/* @__PURE__ */ r(V, { handleBack: P }),
|
148
|
-
/* @__PURE__ */ r("div", { className: "bw-mt-[-20px] ", children: /* @__PURE__ */ r(te, {}) }),
|
149
|
-
e != null && e.isQuoteTimer ? /* @__PURE__ */ r(re, {}) : /* @__PURE__ */ r(A, {}),
|
150
|
-
/* @__PURE__ */ r("div", { className: "bw-flex bw-justify-between bw-items-center" }),
|
151
|
-
/* @__PURE__ */ c("div", { className: "bw-flex bw-w-full bw-mt-4 bw-justify-between bw-items-center", children: [
|
152
|
-
/* @__PURE__ */ c("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
153
|
-
/* @__PURE__ */ r("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Send" }),
|
154
|
-
/* @__PURE__ */ r(z, { amount: e == null ? void 0 : e.amount, coinData: e.fromCoin, chainData: e.fromChain, field: "from" })
|
155
|
-
] }),
|
156
|
-
g ? /* @__PURE__ */ r("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__ */ r("img", { src: B, width: 33, height: 30, alt: "img" }) }) : /* @__PURE__ */ r(W, { isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x, startTimer: I, error: g }),
|
157
|
-
/* @__PURE__ */ r("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__ */ c("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
159
|
-
/* @__PURE__ */ r("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Receive" }),
|
160
|
-
/* @__PURE__ */ r(z, { amount: Number(((k = e == null ? void 0 : e.route) == null ? void 0 : k.outputAmountDisplay) || ""), coinData: e == null ? void 0 : e.toCoin, chainData: e == null ? void 0 : e.toChain, field: "to" })
|
161
|
-
] })
|
162
|
-
] }),
|
163
|
-
/* @__PURE__ */ c("div", { className: "bw-h-[320px] bw-pr-1 bw-flex bw-flex-col bw-mt-8 bw-overflow-y-auto", children: [
|
164
|
-
q ? /* @__PURE__ */ r(A, {}) : /* @__PURE__ */ r(X, {}),
|
165
|
-
/* @__PURE__ */ r(Y, { handleOpenExchange: t, setExchange: b, amount: n, startTimer: I, handleBack: P, isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x })
|
166
|
-
] })
|
167
|
-
] }) }) }) });
|
168
|
-
});
|
169
|
-
function be({
|
170
|
-
handleConfirmClose: t,
|
171
|
-
routesData: n,
|
172
|
-
amount: a,
|
173
|
-
resetAmount: f,
|
174
|
-
resetBalance: d,
|
175
|
-
handleStopRoute: b
|
176
|
-
}) {
|
177
|
-
const i = O();
|
178
|
-
p(() => {
|
179
|
-
var w, m;
|
180
|
-
!i.current && Number(
|
181
|
-
((w = i == null ? void 0 : i.current) == null ? void 0 : w.minOutputAmount) || ((m = i == null ? void 0 : i.current) == null ? void 0 : m.outputAmountDisplay)
|
182
|
-
) !== Number((n == null ? void 0 : n.minOutputAmount) || (n == null ? void 0 : n.outputAmountDisplay)) && (i.current = n);
|
183
|
-
}, [n]), p(() => {
|
184
|
-
b(!0);
|
185
|
-
}, []);
|
186
|
-
function e() {
|
187
|
-
b(!1), t(!1);
|
188
|
-
}
|
189
|
-
function u() {
|
190
|
-
t(!1);
|
191
|
-
}
|
192
|
-
return /* @__PURE__ */ r(
|
193
|
-
ne,
|
194
|
-
{
|
195
|
-
handleOpenExchange: e,
|
196
|
-
amount: a,
|
197
|
-
route: n,
|
198
|
-
resetAmount: f,
|
199
|
-
resetBalance: d,
|
200
|
-
setExchange: u
|
201
|
-
}
|
202
|
-
);
|
203
|
-
}
|
204
|
-
export {
|
205
|
-
be as default
|
206
|
-
};
|