@blockend/widget 1.0.49-beta.2 → 1.0.49-beta.5
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-SK8ZFq_x.js → AllRoutes-LD5p98zn.js} +9 -9
- package/dist/{Box-DAMq9mQT.js → Box-Cs3JEIFG.js} +6 -6
- package/dist/EstGas-H-UdwS1f.js +12659 -0
- package/dist/{Grow-Qzfjlf_b.js → Grow-BvHTdetx.js} +2 -2
- package/dist/{InputComp-BUhhYfS_.js → InputComp-COwG8q-J.js} +3 -3
- package/dist/{LoadRoute-B9EnT59x.js → LoadRoute-DsdVO6Oo.js} +4 -4
- package/dist/{QuotesProgress-DMyLQ_Iw.js → QuotesProgress-B8bDI4r6.js} +1 -1
- package/dist/{SwapAsset-mgONO1Wh.js → SwapAsset-Ddh66LWB.js} +1 -1
- package/dist/{Tooltip-CCwWxndh.js → Tooltip-hBxzXSU3.js} +3 -3
- package/dist/TxnButton-jGgemD8y.js +205 -0
- package/dist/{add-DgNWpTbE.js → add-DGq3NqFo.js} +1 -1
- package/dist/{all-wallets-DbLggbFH.js → all-wallets-CzWn7-6X.js} +1 -1
- package/dist/{app-store-BM-3bzwt.js → app-store-BGFzY2oe.js} +1 -1
- package/dist/{apple-DGgkQglq.js → apple-D5zFxCbx.js} +1 -1
- package/dist/{arrow-bottom-BCcsiVDf.js → arrow-bottom-D25Ef730.js} +1 -1
- package/dist/{arrow-bottom-circle-BxnEnxCv.js → arrow-bottom-circle-CskusJTk.js} +1 -1
- package/dist/{arrow-left-BajNw8Bo.js → arrow-left-Bn-AuY99.js} +1 -1
- package/dist/{arrow-right-Kqyf83Ue.js → arrow-right-DJQCv_ak.js} +1 -1
- package/dist/{arrow-top-P0YZuCsS.js → arrow-top-Do8qEhLT.js} +1 -1
- package/dist/{bank-BdBlTjok.js → bank-CBeLsi0M.js} +1 -1
- package/dist/{basic-B7dsMTNk.js → basic-DLf5LiFg.js} +3 -3
- package/dist/{browser-CiQFAZ4t.js → browser-DVamy-m2.js} +1 -1
- package/dist/{card-D94MFuQu.js → card-tFF7X_nt.js} +1 -1
- package/dist/{ccip-vv5r0Apm.js → ccip-C4idlAuS.js} +16 -16
- package/dist/{checkmark-Cucqq4L6.js → checkmark-DkVW1LY2.js} +1 -1
- package/dist/{checkmark-bold-C5WgesjY.js → checkmark-bold-BbQos6bO.js} +1 -1
- package/dist/{chevron-bottom-CyfhotQQ.js → chevron-bottom-DokKka1d.js} +1 -1
- package/dist/{chevron-left-CXJ7R3iS.js → chevron-left-BPwuTnF_.js} +1 -1
- package/dist/{chevron-right-4ex-g3or.js → chevron-right-Djdm9Vly.js} +1 -1
- package/dist/{chevron-top-BDfgSTbr.js → chevron-top-DviiO5xj.js} +1 -1
- package/dist/{chrome-store-CX9plHu3.js → chrome-store-BFukaYHs.js} +1 -1
- package/dist/{clock-CtQPqpVc.js → clock-gPhvJPEh.js} +1 -1
- package/dist/{close-CYlyCBrT.js → close-CWK6JCCg.js} +1 -1
- package/dist/{coinPlaceholder-DS0YfqOM.js → coinPlaceholder-DuZ2QujM.js} +1 -1
- package/dist/{compass-DVktgTZ-.js → compass-DlrcJ8Hk.js} +1 -1
- package/dist/{copy-Bk0qGavv.js → copy-CNAncK5I.js} +1 -1
- package/dist/{core-DgJB3Qno.js → core-BkrnmkI7.js} +17 -16
- package/dist/{cursor-CCqfxECm.js → cursor-BknQSZIa.js} +1 -1
- package/dist/{cursor-transparent-CPbYJ9jd.js → cursor-transparent-D7K-weum.js} +1 -1
- package/dist/{desktop-DAykpsO7.js → desktop-Dvki1QtU.js} +1 -1
- package/dist/{disconnect-DL8vRZg2.js → disconnect-QbJ6g-Q9.js} +1 -1
- package/dist/{discord-BS8TPANA.js → discord-BtkOmfcK.js} +1 -1
- package/dist/{down-D6aGpC9P.js → down-DRC2u-nt.js} +2 -2
- package/dist/{etherscan-YSjUjqH5.js → etherscan-C4RKkVrP.js} +1 -1
- package/dist/{exclamation-triangle-Cd8s_lsN.js → exclamation-triangle-CEoAdk7x.js} +1 -1
- package/dist/{extension-BfYpl1LK.js → extension-DkOomXUg.js} +1 -1
- package/dist/{external-link-uF5MV_9t.js → external-link-D9HfOXel.js} +1 -1
- package/dist/{facebook-DO648yaX.js → facebook-zQmBHowA.js} +1 -1
- package/dist/{farcaster-DZF64pQM.js → farcaster-Cfy-sjqY.js} +1 -1
- package/dist/{filters-DMTGJi0Y.js → filters-Cq1K6QWb.js} +1 -1
- package/dist/{getChainIds-DUKOh0Kp.js → getChainIds-Btq6EjyX.js} +2 -2
- package/dist/getCosmosAddress-Bu-V7Ot0.js +9565 -0
- package/dist/{github-DQDrN0RZ.js → github-gNR-tm3O.js} +1 -1
- package/dist/{google-DRrIdyFk.js → google-rmnuGsrL.js} +1 -1
- package/dist/{hamburger-DFh0u4ls.js → hamburger-CEQO6OZs.js} +5 -5
- package/dist/{help-circle-n5Ls2-2F.js → help-circle-Cj4bjfia.js} +1 -1
- package/dist/{id-DbShnIoD.js → id-nb5m-NKY.js} +1 -1
- package/dist/{image-B5YOEd-c.js → image-BlK2k80L.js} +1 -1
- package/dist/{index-BwAuNUFT.js → index-1OzJ9Z6-.js} +2192 -2170
- package/dist/{index-BC_WzIG-.js → index-7R8NiD42.js} +1 -1
- package/dist/index-7iRnvPpN.js +159 -0
- package/dist/{index-CL2LZuVL.js → index-CZQdiy7b.js} +2 -2
- package/dist/{index-DvR1iioL.js → index-CbycATvf.js} +78 -78
- package/dist/{index-CDBWyjo1.js → index-D0tb6mUR.js} +11 -11
- package/dist/index-D5aVEHZL.js +206 -0
- package/dist/index-DTish3yr.js +1014 -0
- package/dist/index-Fv4UV6Sc.js +30707 -0
- package/dist/{index-DuTB7F2j.js → index-pieshoDv.js} +542 -507
- package/dist/{index-CktG1k9u.js → index-salSLcoU.js} +1 -1
- package/dist/{index-D4uRM0hD.js → index-vM1noC-w.js} +1320 -1194
- package/dist/{index.es-BRVISbr4.js → index.es-CJ-ZznBF.js} +1712 -1625
- package/dist/{index.es-DD1q2x58.js → index.es-Ce_QYzsk.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{info-5rQx4FCT.js → info-6RBhKgcd.js} +1 -1
- package/dist/{info-circle-DnNqx9Fu.js → info-circle-BlIbWe25.js} +1 -1
- package/dist/{lightbulb-DEa_QXWk.js → lightbulb-CS3_wKY8.js} +1 -1
- package/dist/{mail-DNWPpemE.js → mail-CRsD8jAA.js} +1 -1
- package/dist/{mobile-CsmBvAG0.js → mobile-DMLTKouh.js} +1 -1
- package/dist/{more-Bjd7dOWF.js → more-uoTJ3kvy.js} +1 -1
- package/dist/{network-placeholder-DsQ_HMHG.js → network-placeholder-D-XL3hqx.js} +1 -1
- package/dist/{nftPlaceholder-KsQSrTt2.js → nftPlaceholder-CiYWPSAY.js} +1 -1
- package/dist/{off-B0hqloiu.js → off-B79emGaW.js} +1 -1
- package/dist/{play-store-DseAgFmo.js → play-store-B828L964.js} +1 -1
- package/dist/{plus-BJCNDRM3.js → plus-BRVCC9lV.js} +1 -1
- package/dist/{qr-code-lEBAtsO4.js → qr-code-qp9DeEO9.js} +1 -1
- package/dist/{recycle-horizontal-K4rUQslN.js → recycle-horizontal-DoDvFScD.js} +1 -1
- package/dist/{refresh-DEZrriLV.js → refresh-BuegBzBd.js} +1 -1
- package/dist/{reown-logo-BHbe-CUO.js → reown-logo-BrUAyTxC.js} +1 -1
- package/dist/{search-CIK9XN0-.js → search-CzpyG7ky.js} +1 -1
- package/dist/{send-Bxpdb3Vf.js → send-BHMxC1xj.js} +1 -1
- package/dist/{swapHorizontal-BBHEuYx1.js → swapHorizontal-Bq8mR1QZ.js} +1 -1
- package/dist/{swapHorizontalBold-t0VsiN4I.js → swapHorizontalBold-2ueiC4L9.js} +1 -1
- package/dist/{swapHorizontalMedium-PzUH_Th4.js → swapHorizontalMedium-9jh3zunE.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-EyDyL2Bj.js → swapHorizontalRoundedBold-BIk7kp2S.js} +1 -1
- package/dist/{swapVertical-CusOd1Kd.js → swapVertical-DM_T3EzD.js} +1 -1
- package/dist/{telegram-DfP_Unfg.js → telegram-CbeDajqU.js} +1 -1
- package/dist/{three-dots-BcnJZFUd.js → three-dots-DUntIedp.js} +1 -1
- package/dist/{twitch-CN0F2VUn.js → twitch-DIXNVK7h.js} +1 -1
- package/dist/{twitterIcon-DDA3Skm-.js → twitterIcon-nHRKKmzg.js} +1 -1
- package/dist/{unsupportedProp-CIQ48Cx8.js → unsupportedProp-BAk0ueJt.js} +1 -1
- package/dist/{useRegisterError-DuNi8RxR.js → useRegisterError-tq4Tke9I.js} +150 -150
- package/dist/{verify-BVsIUy32.js → verify-CbyVHS7l.js} +1 -1
- package/dist/{verify-filled-bQ1f0Y-d.js → verify-filled-QZDBE0oP.js} +1 -1
- package/dist/{w3m-modal-Cg8vnNGL.js → w3m-modal-Bp3nI0EC.js} +2 -2
- package/dist/{wallet-OISOAGe9.js → wallet-DVjsV39Q.js} +1 -1
- package/dist/{wallet-placeholder-DZD3tMxc.js → wallet-placeholder-BgrGGLNk.js} +1 -1
- package/dist/{walletconnect-CCANKmqY.js → walletconnect-zriuFVFg.js} +1 -1
- package/dist/{warning-circle-C_uh-wB2.js → warning-circle-CpWwL8_f.js} +1 -1
- package/dist/widget.css +1 -1
- package/dist/{x-BpuzG7VO.js → x-DN0-dY3F.js} +1 -1
- package/package.json +4 -7
- package/dist/EstGas-B9rFXiVW.js +0 -1486
- package/dist/TxnButton-CqL_9AIV.js +0 -211
- package/dist/getCosmosAddress-Cb98patK.js +0 -6075
- package/dist/index-BIN4LE_6.js +0 -42277
- package/dist/index-DEecyVOZ.js +0 -6711
- package/dist/index-VUJh-JIq.js +0 -206
@@ -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-tq4Tke9I.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
|
}
|
@@ -0,0 +1,159 @@
|
|
1
|
+
import { jsxs as n, jsx as s, Fragment as X } from "react/jsx-runtime";
|
2
|
+
import { T as se, a as ae, H as oe, b as Y, c as ne, E as ie, d as ce } from "./EstGas-H-UdwS1f.js";
|
3
|
+
import { useState as q, useEffect as k } from "react";
|
4
|
+
import { d as we, i as be } from "./useRegisterError-tq4Tke9I.js";
|
5
|
+
import { u as c, l as ee, c as Z, F as ue } from "./index-Fv4UV6Sc.js";
|
6
|
+
import { useQuery as _ } from "@tanstack/react-query";
|
7
|
+
import "./down-DRC2u-nt.js";
|
8
|
+
import "wagmi";
|
9
|
+
import "@dynamic-labs/sdk-react-core";
|
10
|
+
import "./getCosmosAddress-Bu-V7Ot0.js";
|
11
|
+
function le({ details: F }) {
|
12
|
+
var T, N, I, w, d, p, D, b, u, E, t;
|
13
|
+
const a = {
|
14
|
+
route: {
|
15
|
+
...F
|
16
|
+
}
|
17
|
+
}, m = c((f) => f.configuration);
|
18
|
+
return ee.isEmpty(a.route) ? /* @__PURE__ */ s("div", { className: "bw-relative bw-w-full bw-h-[41px] bw-mt-4 bw-flex bw-justify-center" }) : /* @__PURE__ */ n("div", { className: "bw-relative bw-mt-4 bw-flex bw-justify-center ", children: [
|
19
|
+
/* @__PURE__ */ s(
|
20
|
+
"div",
|
21
|
+
{
|
22
|
+
style: {
|
23
|
+
boxShadow: m && m.customTheme && ((N = (T = m.customTheme) == null ? void 0 : T.shadow) == null ? void 0 : N.boxShadow) || "1px 1px 10px 3px rgba(0, 0, 0, 0.15)"
|
24
|
+
},
|
25
|
+
className: "bw-w-[200px] bw-rounded-[50%] bw-absolute bw-right-auto bw-z-0 bw-left-auto bw-h-[40px]"
|
26
|
+
}
|
27
|
+
),
|
28
|
+
/* @__PURE__ */ n("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: [
|
29
|
+
" ",
|
30
|
+
/* @__PURE__ */ n("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: [
|
31
|
+
/* @__PURE__ */ s("span", { className: "bw-text-sm bw-font-light", children: "via" }),
|
32
|
+
" ",
|
33
|
+
/* @__PURE__ */ s(
|
34
|
+
"img",
|
35
|
+
{
|
36
|
+
src: (w = (I = a == null ? void 0 : a.route) == null ? void 0 : I.providerDetails) == null ? void 0 : w.logoUrl,
|
37
|
+
className: "bw-rounded-[50%] bw-mx-[4px] bw-min-w-[18px] bw-max-h-[18px] bw-min-h-[18px]",
|
38
|
+
width: 18,
|
39
|
+
height: 18
|
40
|
+
}
|
41
|
+
),
|
42
|
+
((p = (d = a == null ? void 0 : a.route) == null ? void 0 : d.providerDetails) == null ? void 0 : p.name) || "",
|
43
|
+
":",
|
44
|
+
" ",
|
45
|
+
(D = a == null ? void 0 : a.route) == null ? void 0 : D.protocolsUsed[0],
|
46
|
+
((u = (b = a == null ? void 0 : a.route) == null ? void 0 : b.protocolsUsed) == null ? void 0 : u.length) <= 1 ? "" : /* @__PURE__ */ n("span", { className: "bw-ml-1 bw-text-xs bw-font-normal bw-leading-6", children: [
|
47
|
+
`+${((t = (E = a == null ? void 0 : a.route) == null ? void 0 : E.protocolsUsed) == null ? void 0 : t.length) - 1}`,
|
48
|
+
" More"
|
49
|
+
] }),
|
50
|
+
" "
|
51
|
+
] }),
|
52
|
+
" "
|
53
|
+
] })
|
54
|
+
] });
|
55
|
+
}
|
56
|
+
const me = () => {
|
57
|
+
var z, A, R;
|
58
|
+
const F = c((r) => r.setRoute), a = c((r) => r.txnDetails), [m, T] = q(!1), [N, I] = q(!1), [w, d] = q(!1), [p, D] = q({}), b = c((r) => r.setPersist), u = c((r) => r.persist);
|
59
|
+
we();
|
60
|
+
const { txnupdate: E } = be, t = _({
|
61
|
+
queryKey: ["txnDetails", a == null ? void 0 : a.routeId],
|
62
|
+
queryFn: async () => await (await Z.fetchTxnDetails(a == null ? void 0 : a.routeId)).json(),
|
63
|
+
refetchOnWindowFocus: !1
|
64
|
+
});
|
65
|
+
k(() => {
|
66
|
+
var r, h, x, y, S, g, v, j, l, U, B, M, O, K, W, $, G, L, Q, J, V;
|
67
|
+
if (t.data) {
|
68
|
+
let e = t.data;
|
69
|
+
e.status == "error";
|
70
|
+
let C = [];
|
71
|
+
((r = e == null ? void 0 : e.data) == null ? void 0 : r.currentStepStatus) === "success" ? (x = (h = e == null ? void 0 : e.data) == null ? void 0 : h.steps) == null || x.forEach((i) => {
|
72
|
+
C.push({ type: "preText" });
|
73
|
+
}) : ((y = e == null ? void 0 : e.data) == null ? void 0 : y.currentStepStatus) === "failed" && (d(!0), (g = (S = e == null ? void 0 : e.data) == null ? void 0 : S.steps) == null || g.forEach((i) => {
|
74
|
+
(i == null ? void 0 : i.status) === "success" ? C.push({ type: "preText" }) : (i == null ? void 0 : i.status) === "failed" && C.push({ type: "failed" });
|
75
|
+
})), b({
|
76
|
+
...(v = c.getState()) == null ? void 0 : v.persist,
|
77
|
+
stepData: (l = e == null ? void 0 : e.data) == null ? void 0 : l.steps[(j = e == null ? void 0 : e.data) == null ? void 0 : j.currentStepIndex],
|
78
|
+
routeId: (U = e == null ? void 0 : e.data) == null ? void 0 : U.routeId,
|
79
|
+
allSteps: {
|
80
|
+
steps: (B = e == null ? void 0 : e.data) == null ? void 0 : B.steps,
|
81
|
+
currentStep: ((M = e == null ? void 0 : e.data) == null ? void 0 : M.currentStepStatus) === "success" ? ((O = e == null ? void 0 : e.data) == null ? void 0 : O.currentStepIndex) + 1 : (K = e == null ? void 0 : e.data) == null ? void 0 : K.currentStepIndex,
|
82
|
+
type: "preText"
|
83
|
+
},
|
84
|
+
stepStatus: C,
|
85
|
+
statusData: {
|
86
|
+
status: (W = e == null ? void 0 : e.data) == null ? void 0 : W.currentStepStatus
|
87
|
+
},
|
88
|
+
historyData: e == null ? void 0 : e.data,
|
89
|
+
fromCoin: ($ = e == null ? void 0 : e.data) == null ? void 0 : $.from,
|
90
|
+
toCoin: (G = e == null ? void 0 : e.data) == null ? void 0 : G.to,
|
91
|
+
route: e == null ? void 0 : e.data,
|
92
|
+
isHistory: !0,
|
93
|
+
hash: ((L = e == null ? void 0 : e.data) == null ? void 0 : L.currentStepStatus) == "in-progress" ? (V = (J = e == null ? void 0 : e.data) == null ? void 0 : J.steps[(Q = e == null ? void 0 : e.data) == null ? void 0 : Q.currentStepIndex]) == null ? void 0 : V.srcTxnHash : null
|
94
|
+
});
|
95
|
+
}
|
96
|
+
}, [t.data]), k(() => {
|
97
|
+
if (t.error) {
|
98
|
+
let r = t.error;
|
99
|
+
r.details || r.message;
|
100
|
+
}
|
101
|
+
}, [t.error]);
|
102
|
+
const f = _({
|
103
|
+
queryKey: ["chains"],
|
104
|
+
queryFn: async () => await (await Z.fetchChain()).json(),
|
105
|
+
refetchOnWindowFocus: !1,
|
106
|
+
enabled: t.isSuccess
|
107
|
+
});
|
108
|
+
k(() => {
|
109
|
+
var r, h, x, y, S, g, v;
|
110
|
+
if (f.data) {
|
111
|
+
let j = f.data, l = { ...ee.keyBy(j.data, "chainId") };
|
112
|
+
D(l), b({
|
113
|
+
...(r = c.getState()) == null ? void 0 : r.persist,
|
114
|
+
fromChain: l[(y = (x = (h = t == null ? void 0 : t.data) == null ? void 0 : h.data) == null ? void 0 : x.from) == null ? void 0 : y.chainId],
|
115
|
+
toChain: l[(v = (g = (S = t == null ? void 0 : t.data) == null ? void 0 : S.data) == null ? void 0 : g.to) == null ? void 0 : v.chainId]
|
116
|
+
});
|
117
|
+
}
|
118
|
+
}, [f.data, t.data]);
|
119
|
+
function H() {
|
120
|
+
F("history"), b({});
|
121
|
+
}
|
122
|
+
let o = ((z = t == null ? void 0 : t.data) == null ? void 0 : z.data) || {};
|
123
|
+
function te(r) {
|
124
|
+
T(r);
|
125
|
+
}
|
126
|
+
function re(r) {
|
127
|
+
d(r);
|
128
|
+
}
|
129
|
+
function P(r) {
|
130
|
+
I(r);
|
131
|
+
}
|
132
|
+
return /* @__PURE__ */ s(se.Provider, { value: { isTxnSuccessful: m, handleTxnSuccess: te }, children: /* @__PURE__ */ s(ae.Provider, { value: { isErrorMessage: w, handleErrorMessage: re }, children: /* @__PURE__ */ s("div", { className: "bw-w-full bw-relative bw-min-h-[610px] ", children: t.isSuccess ? /* @__PURE__ */ n(X, { children: [
|
133
|
+
/* @__PURE__ */ s(oe, { handleBack: H }),
|
134
|
+
/* @__PURE__ */ s("div", { className: "bw-mt-[-20px]", children: /* @__PURE__ */ s(le, { details: o }) }),
|
135
|
+
/* @__PURE__ */ s("div", { className: "bw-flex bw-justify-between bw-items-center" }),
|
136
|
+
/* @__PURE__ */ n("div", { className: "bw-flex bw-mt-4 bw-w-full bw-justify-between bw-items-center", children: [
|
137
|
+
/* @__PURE__ */ n("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
138
|
+
/* @__PURE__ */ s("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Send" }),
|
139
|
+
/* @__PURE__ */ s(Y, { amount: o.inputAmountDisplay, coinData: o.from, chainData: p[(A = o == null ? void 0 : o.from) == null ? void 0 : A.chainId] || {}, field: "from" })
|
140
|
+
] }),
|
141
|
+
w ? /* @__PURE__ */ s("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__ */ s("img", { src: E, width: 33, height: 30, alt: "img" }) }) : /* @__PURE__ */ s(ne, { isTimerStarted: (u == null ? void 0 : u.isTimerStarted) || N, startTimer: P, error: w }),
|
142
|
+
/* @__PURE__ */ s("div", { className: "bw-w-full bw-z-0 md:bw-w-full bw-mt-5 bw-absolute bw-h-[1px] bw-bg-border-primary " }),
|
143
|
+
/* @__PURE__ */ n("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
144
|
+
/* @__PURE__ */ s("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Receive" }),
|
145
|
+
/* @__PURE__ */ s(Y, { amount: o.outputAmountDisplay, coinData: o.to, chainData: p[(R = o == null ? void 0 : o.to) == null ? void 0 : R.chainId] || {}, field: "to" })
|
146
|
+
] })
|
147
|
+
] }),
|
148
|
+
/* @__PURE__ */ n("div", { className: "bw-h-[320px] bw-pr-1 bw-flex bw-flex-col bw-mt-8 bw-overflow-y-auto", children: [
|
149
|
+
t.isLoading ? /* @__PURE__ */ s(X, {}) : /* @__PURE__ */ s(ie, {}),
|
150
|
+
/* @__PURE__ */ s(ce, { amount: t == null ? void 0 : t.inputAmountDisplay, startTimer: P, handleBack: H, isHistory: !0 })
|
151
|
+
] })
|
152
|
+
] }) : /* @__PURE__ */ s(ue, {}) }) }) });
|
153
|
+
};
|
154
|
+
function Ne() {
|
155
|
+
return /* @__PURE__ */ s(me, {});
|
156
|
+
}
|
157
|
+
export {
|
158
|
+
Ne as default
|
159
|
+
};
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { b as G, g as U, p as P, y as H, i as q, _ as J, d as u, s as W, e as M, f as d, h as K, r as Q, j as m, P as i } from "./index-
|
1
|
+
import { b as G, g as U, p as P, y as H, i as q, _ as J, d as u, s as W, e as M, f as d, h as K, r as Q, j as m, P as i } from "./index-Fv4UV6Sc.js";
|
2
2
|
import * as v from "react";
|
3
3
|
import { jsx as V, jsxs as X } from "react/jsx-runtime";
|
4
|
-
import { B as Y } from "./getChainIds-
|
4
|
+
import { B as Y } from "./getChainIds-Btq6EjyX.js";
|
5
5
|
function Z(o) {
|
6
6
|
return U("MuiButton", o);
|
7
7
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { B as N, D as V, i as b, r as $, a as S, x as m, n as q, F as I, o as H, e as Y } from "./core-
|
1
|
+
import { B as N, D as V, i as b, r as $, a as S, x as m, n as q, F as I, o as H, e as Y } from "./core-BkrnmkI7.js";
|
2
2
|
const w = {
|
3
3
|
getSpacingStyles(e, t) {
|
4
4
|
if (Array.isArray(e))
|
@@ -379,83 +379,83 @@ var R = function(e, t, i, a) {
|
|
379
379
|
return r > 3 && o && Object.defineProperty(t, i, o), o;
|
380
380
|
};
|
381
381
|
const E = {
|
382
|
-
add: async () => (await import("./add-
|
383
|
-
allWallets: async () => (await import("./all-wallets-
|
384
|
-
arrowBottomCircle: async () => (await import("./arrow-bottom-circle-
|
385
|
-
appStore: async () => (await import("./app-store-
|
386
|
-
apple: async () => (await import("./apple-
|
387
|
-
arrowBottom: async () => (await import("./arrow-bottom-
|
388
|
-
arrowLeft: async () => (await import("./arrow-left-
|
389
|
-
arrowRight: async () => (await import("./arrow-right-
|
390
|
-
arrowTop: async () => (await import("./arrow-top-
|
391
|
-
bank: async () => (await import("./bank-
|
392
|
-
browser: async () => (await import("./browser-
|
393
|
-
card: async () => (await import("./card-
|
394
|
-
checkmark: async () => (await import("./checkmark-
|
395
|
-
checkmarkBold: async () => (await import("./checkmark-bold-
|
396
|
-
chevronBottom: async () => (await import("./chevron-bottom-
|
397
|
-
chevronLeft: async () => (await import("./chevron-left-
|
398
|
-
chevronRight: async () => (await import("./chevron-right-
|
399
|
-
chevronTop: async () => (await import("./chevron-top-
|
400
|
-
chromeStore: async () => (await import("./chrome-store-
|
401
|
-
clock: async () => (await import("./clock-
|
402
|
-
close: async () => (await import("./close-
|
403
|
-
compass: async () => (await import("./compass-
|
404
|
-
coinPlaceholder: async () => (await import("./coinPlaceholder-
|
405
|
-
copy: async () => (await import("./copy-
|
406
|
-
cursor: async () => (await import("./cursor-
|
407
|
-
cursorTransparent: async () => (await import("./cursor-transparent-
|
408
|
-
desktop: async () => (await import("./desktop-
|
409
|
-
disconnect: async () => (await import("./disconnect-
|
410
|
-
discord: async () => (await import("./discord-
|
411
|
-
etherscan: async () => (await import("./etherscan-
|
412
|
-
extension: async () => (await import("./extension-
|
413
|
-
externalLink: async () => (await import("./external-link-
|
414
|
-
facebook: async () => (await import("./facebook-
|
415
|
-
farcaster: async () => (await import("./farcaster-
|
416
|
-
filters: async () => (await import("./filters-
|
417
|
-
github: async () => (await import("./github-
|
418
|
-
google: async () => (await import("./google-
|
419
|
-
helpCircle: async () => (await import("./help-circle-
|
420
|
-
image: async () => (await import("./image-
|
421
|
-
id: async () => (await import("./id-
|
422
|
-
infoCircle: async () => (await import("./info-circle-
|
423
|
-
lightbulb: async () => (await import("./lightbulb-
|
424
|
-
mail: async () => (await import("./mail-
|
425
|
-
mobile: async () => (await import("./mobile-
|
426
|
-
more: async () => (await import("./more-
|
427
|
-
networkPlaceholder: async () => (await import("./network-placeholder-
|
428
|
-
nftPlaceholder: async () => (await import("./nftPlaceholder-
|
429
|
-
off: async () => (await import("./off-
|
430
|
-
playStore: async () => (await import("./play-store-
|
431
|
-
plus: async () => (await import("./plus-
|
432
|
-
qrCode: async () => (await import("./qr-code-
|
433
|
-
recycleHorizontal: async () => (await import("./recycle-horizontal-
|
434
|
-
refresh: async () => (await import("./refresh-
|
435
|
-
search: async () => (await import("./search-
|
436
|
-
send: async () => (await import("./send-
|
437
|
-
swapHorizontal: async () => (await import("./swapHorizontal-
|
438
|
-
swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-
|
439
|
-
swapHorizontalBold: async () => (await import("./swapHorizontalBold-
|
440
|
-
swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-
|
441
|
-
swapVertical: async () => (await import("./swapVertical-
|
442
|
-
telegram: async () => (await import("./telegram-
|
443
|
-
threeDots: async () => (await import("./three-dots-
|
444
|
-
twitch: async () => (await import("./twitch-
|
445
|
-
twitter: async () => (await import("./x-
|
446
|
-
twitterIcon: async () => (await import("./twitterIcon-
|
447
|
-
verify: async () => (await import("./verify-
|
448
|
-
verifyFilled: async () => (await import("./verify-filled-
|
449
|
-
wallet: async () => (await import("./wallet-
|
450
|
-
walletConnect: async () => (await import("./walletconnect-
|
451
|
-
walletConnectLightBrown: async () => (await import("./walletconnect-
|
452
|
-
walletConnectBrown: async () => (await import("./walletconnect-
|
453
|
-
walletPlaceholder: async () => (await import("./wallet-placeholder-
|
454
|
-
warningCircle: async () => (await import("./warning-circle-
|
455
|
-
x: async () => (await import("./x-
|
456
|
-
info: async () => (await import("./info-
|
457
|
-
exclamationTriangle: async () => (await import("./exclamation-triangle-
|
458
|
-
reown: async () => (await import("./reown-logo-
|
382
|
+
add: async () => (await import("./add-DGq3NqFo.js")).addSvg,
|
383
|
+
allWallets: async () => (await import("./all-wallets-CzWn7-6X.js")).allWalletsSvg,
|
384
|
+
arrowBottomCircle: async () => (await import("./arrow-bottom-circle-CskusJTk.js")).arrowBottomCircleSvg,
|
385
|
+
appStore: async () => (await import("./app-store-BGFzY2oe.js")).appStoreSvg,
|
386
|
+
apple: async () => (await import("./apple-D5zFxCbx.js")).appleSvg,
|
387
|
+
arrowBottom: async () => (await import("./arrow-bottom-D25Ef730.js")).arrowBottomSvg,
|
388
|
+
arrowLeft: async () => (await import("./arrow-left-Bn-AuY99.js")).arrowLeftSvg,
|
389
|
+
arrowRight: async () => (await import("./arrow-right-DJQCv_ak.js")).arrowRightSvg,
|
390
|
+
arrowTop: async () => (await import("./arrow-top-Do8qEhLT.js")).arrowTopSvg,
|
391
|
+
bank: async () => (await import("./bank-CBeLsi0M.js")).bankSvg,
|
392
|
+
browser: async () => (await import("./browser-DVamy-m2.js")).browserSvg,
|
393
|
+
card: async () => (await import("./card-tFF7X_nt.js")).cardSvg,
|
394
|
+
checkmark: async () => (await import("./checkmark-DkVW1LY2.js")).checkmarkSvg,
|
395
|
+
checkmarkBold: async () => (await import("./checkmark-bold-BbQos6bO.js")).checkmarkBoldSvg,
|
396
|
+
chevronBottom: async () => (await import("./chevron-bottom-DokKka1d.js")).chevronBottomSvg,
|
397
|
+
chevronLeft: async () => (await import("./chevron-left-BPwuTnF_.js")).chevronLeftSvg,
|
398
|
+
chevronRight: async () => (await import("./chevron-right-Djdm9Vly.js")).chevronRightSvg,
|
399
|
+
chevronTop: async () => (await import("./chevron-top-DviiO5xj.js")).chevronTopSvg,
|
400
|
+
chromeStore: async () => (await import("./chrome-store-BFukaYHs.js")).chromeStoreSvg,
|
401
|
+
clock: async () => (await import("./clock-gPhvJPEh.js")).clockSvg,
|
402
|
+
close: async () => (await import("./close-CWK6JCCg.js")).closeSvg,
|
403
|
+
compass: async () => (await import("./compass-DlrcJ8Hk.js")).compassSvg,
|
404
|
+
coinPlaceholder: async () => (await import("./coinPlaceholder-DuZ2QujM.js")).coinPlaceholderSvg,
|
405
|
+
copy: async () => (await import("./copy-CNAncK5I.js")).copySvg,
|
406
|
+
cursor: async () => (await import("./cursor-BknQSZIa.js")).cursorSvg,
|
407
|
+
cursorTransparent: async () => (await import("./cursor-transparent-D7K-weum.js")).cursorTransparentSvg,
|
408
|
+
desktop: async () => (await import("./desktop-Dvki1QtU.js")).desktopSvg,
|
409
|
+
disconnect: async () => (await import("./disconnect-QbJ6g-Q9.js")).disconnectSvg,
|
410
|
+
discord: async () => (await import("./discord-BtkOmfcK.js")).discordSvg,
|
411
|
+
etherscan: async () => (await import("./etherscan-C4RKkVrP.js")).etherscanSvg,
|
412
|
+
extension: async () => (await import("./extension-DkOomXUg.js")).extensionSvg,
|
413
|
+
externalLink: async () => (await import("./external-link-D9HfOXel.js")).externalLinkSvg,
|
414
|
+
facebook: async () => (await import("./facebook-zQmBHowA.js")).facebookSvg,
|
415
|
+
farcaster: async () => (await import("./farcaster-Cfy-sjqY.js")).farcasterSvg,
|
416
|
+
filters: async () => (await import("./filters-Cq1K6QWb.js")).filtersSvg,
|
417
|
+
github: async () => (await import("./github-gNR-tm3O.js")).githubSvg,
|
418
|
+
google: async () => (await import("./google-rmnuGsrL.js")).googleSvg,
|
419
|
+
helpCircle: async () => (await import("./help-circle-Cj4bjfia.js")).helpCircleSvg,
|
420
|
+
image: async () => (await import("./image-BlK2k80L.js")).imageSvg,
|
421
|
+
id: async () => (await import("./id-nb5m-NKY.js")).idSvg,
|
422
|
+
infoCircle: async () => (await import("./info-circle-BlIbWe25.js")).infoCircleSvg,
|
423
|
+
lightbulb: async () => (await import("./lightbulb-CS3_wKY8.js")).lightbulbSvg,
|
424
|
+
mail: async () => (await import("./mail-CRsD8jAA.js")).mailSvg,
|
425
|
+
mobile: async () => (await import("./mobile-DMLTKouh.js")).mobileSvg,
|
426
|
+
more: async () => (await import("./more-uoTJ3kvy.js")).moreSvg,
|
427
|
+
networkPlaceholder: async () => (await import("./network-placeholder-D-XL3hqx.js")).networkPlaceholderSvg,
|
428
|
+
nftPlaceholder: async () => (await import("./nftPlaceholder-CiYWPSAY.js")).nftPlaceholderSvg,
|
429
|
+
off: async () => (await import("./off-B79emGaW.js")).offSvg,
|
430
|
+
playStore: async () => (await import("./play-store-B828L964.js")).playStoreSvg,
|
431
|
+
plus: async () => (await import("./plus-BRVCC9lV.js")).plusSvg,
|
432
|
+
qrCode: async () => (await import("./qr-code-qp9DeEO9.js")).qrCodeIcon,
|
433
|
+
recycleHorizontal: async () => (await import("./recycle-horizontal-DoDvFScD.js")).recycleHorizontalSvg,
|
434
|
+
refresh: async () => (await import("./refresh-BuegBzBd.js")).refreshSvg,
|
435
|
+
search: async () => (await import("./search-CzpyG7ky.js")).searchSvg,
|
436
|
+
send: async () => (await import("./send-BHMxC1xj.js")).sendSvg,
|
437
|
+
swapHorizontal: async () => (await import("./swapHorizontal-Bq8mR1QZ.js")).swapHorizontalSvg,
|
438
|
+
swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-9jh3zunE.js")).swapHorizontalMediumSvg,
|
439
|
+
swapHorizontalBold: async () => (await import("./swapHorizontalBold-2ueiC4L9.js")).swapHorizontalBoldSvg,
|
440
|
+
swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-BIk7kp2S.js")).swapHorizontalRoundedBoldSvg,
|
441
|
+
swapVertical: async () => (await import("./swapVertical-DM_T3EzD.js")).swapVerticalSvg,
|
442
|
+
telegram: async () => (await import("./telegram-CbeDajqU.js")).telegramSvg,
|
443
|
+
threeDots: async () => (await import("./three-dots-DUntIedp.js")).threeDotsSvg,
|
444
|
+
twitch: async () => (await import("./twitch-DIXNVK7h.js")).twitchSvg,
|
445
|
+
twitter: async () => (await import("./x-DN0-dY3F.js")).xSvg,
|
446
|
+
twitterIcon: async () => (await import("./twitterIcon-nHRKKmzg.js")).twitterIconSvg,
|
447
|
+
verify: async () => (await import("./verify-CbyVHS7l.js")).verifySvg,
|
448
|
+
verifyFilled: async () => (await import("./verify-filled-QZDBE0oP.js")).verifyFilledSvg,
|
449
|
+
wallet: async () => (await import("./wallet-DVjsV39Q.js")).walletSvg,
|
450
|
+
walletConnect: async () => (await import("./walletconnect-zriuFVFg.js")).walletConnectSvg,
|
451
|
+
walletConnectLightBrown: async () => (await import("./walletconnect-zriuFVFg.js")).walletConnectLightBrownSvg,
|
452
|
+
walletConnectBrown: async () => (await import("./walletconnect-zriuFVFg.js")).walletConnectBrownSvg,
|
453
|
+
walletPlaceholder: async () => (await import("./wallet-placeholder-BgrGGLNk.js")).walletPlaceholderSvg,
|
454
|
+
warningCircle: async () => (await import("./warning-circle-CpWwL8_f.js")).warningCircleSvg,
|
455
|
+
x: async () => (await import("./x-DN0-dY3F.js")).xSvg,
|
456
|
+
info: async () => (await import("./info-6RBhKgcd.js")).infoSvg,
|
457
|
+
exclamationTriangle: async () => (await import("./exclamation-triangle-CEoAdk7x.js")).exclamationTriangleSvg,
|
458
|
+
reown: async () => (await import("./reown-logo-BrUAyTxC.js")).reownSvg
|
459
459
|
};
|
460
460
|
async function pt(e) {
|
461
461
|
if (P.has(e))
|
@@ -1,22 +1,22 @@
|
|
1
1
|
import { jsx as u, jsxs as B, Fragment as Ke } from "react/jsx-runtime";
|
2
|
-
import { a as to, _ as yr, e as wr, T as no, g as vr, h as oo, b as ro, j as Gt, k as Sn, r as xr, B as Cr, u as ao, i as Dr, d as Sr } from "./useRegisterError-
|
3
|
-
import { P as Zt, i as kr, b as kn, F as so, u as We, f as Qt, L as Tt, O as Pr, c as Mr, I as Rr, S as Or, d as Tr, H as Ir } from "./hamburger-
|
4
|
-
import { o as Vr, q as Nr, t as Fr, p as ie, _ as te, d as f, P as t, b as Se, g as Me, i as Re, s as _, e as le, f as se, h as Oe, j as De, r as Er, v as Ar, w as ge, x as it, L as $r, u as Ce, c as Xt, S as Lr, l as Br } from "./index-
|
2
|
+
import { a as to, _ as yr, e as wr, T as no, g as vr, h as oo, b as ro, j as Gt, k as Sn, r as xr, B as Cr, u as ao, i as Dr, d as Sr } from "./useRegisterError-tq4Tke9I.js";
|
3
|
+
import { P as Zt, i as kr, b as kn, F as so, u as We, f as Qt, L as Tt, O as Pr, c as Mr, I as Rr, S as Or, d as Tr, H as Ir } from "./hamburger-CEQO6OZs.js";
|
4
|
+
import { o as Vr, q as Nr, t as Fr, p as ie, _ as te, d as f, P as t, b as Se, g as Me, i as Re, s as _, e as le, f as se, h as Oe, j as De, r as Er, v as Ar, w as ge, x as it, L as $r, u as Ce, c as Xt, S as Lr, l as Br } from "./index-Fv4UV6Sc.js";
|
5
5
|
import * as b from "react";
|
6
6
|
import Pn, { useState as Ye, useEffect as lt, useRef as jr } from "react";
|
7
7
|
import { useQuery as io, useQueryClient as zr, useInfiniteQuery as Wr } from "@tanstack/react-query";
|
8
8
|
import { useAccount as lo } from "wagmi";
|
9
9
|
import { useDynamicContext as co } from "@dynamic-labs/sdk-react-core";
|
10
10
|
import { useAccount as uo } from "graz";
|
11
|
-
import { T as Qe, S as _r } from "./index-
|
12
|
-
import { c as $e } from "./index-
|
13
|
-
import { B as wt, F as xt, M as qr, a as Hr, e as Ur, T as po, b as Yr } from "./getChainIds-
|
14
|
-
import { a as fo, b as Le, G as Kr, P as Gr } from "./Grow-
|
15
|
-
import { B as Pt, u as Zr } from "./index-
|
16
|
-
import { u as Qr } from "./unsupportedProp-
|
11
|
+
import { T as Qe, S as _r } from "./index-vM1noC-w.js";
|
12
|
+
import { c as $e } from "./index-salSLcoU.js";
|
13
|
+
import { B as wt, F as xt, M as qr, a as Hr, e as Ur, T as po, b as Yr } from "./getChainIds-Btq6EjyX.js";
|
14
|
+
import { a as fo, b as Le, G as Kr, P as Gr } from "./Grow-BvHTdetx.js";
|
15
|
+
import { B as Pt, u as Zr } from "./index-CZQdiy7b.js";
|
16
|
+
import { u as Qr } from "./unsupportedProp-BAk0ueJt.js";
|
17
17
|
import { S as Xr } from "./shareicon-CG3v7iKI.js";
|
18
|
-
import { O as Mn } from "./index-
|
19
|
-
import { L as Jr } from "./index.es-
|
18
|
+
import { O as Mn } from "./index-7R8NiD42.js";
|
19
|
+
import { L as Jr } from "./index.es-Ce_QYzsk.js";
|
20
20
|
function ea(e) {
|
21
21
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
22
22
|
}
|
@@ -0,0 +1,206 @@
|
|
1
|
+
import { jsxs as b, jsx as n, Fragment as A } from "react/jsx-runtime";
|
2
|
+
import G, { useContext as H, useState as E, useEffect as v, useRef as _ } from "react";
|
3
|
+
import { a as U, T as $, H as O, b as L, c as J, E as K, d as V } from "./EstGas-H-UdwS1f.js";
|
4
|
+
import { u as l, l as W } from "./index-Fv4UV6Sc.js";
|
5
|
+
import { i as D, C as Q, A as X } from "./useRegisterError-tq4Tke9I.js";
|
6
|
+
import { B as Y } from "./Box-Cs3JEIFG.js";
|
7
|
+
function Z() {
|
8
|
+
var d, w, 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 } = D;
|
10
|
+
let f = (i = (w = (d = t == null ? void 0 : t.route) == null ? void 0 : d.providerDetails) == null ? void 0 : w.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 W.isEmpty(t.route) ? /* @__PURE__ */ n(A, {}) : /* @__PURE__ */ b("div", { className: "bw-relative bw-mt-4 bw-flex bw-justify-center ", children: [
|
12
|
+
/* @__PURE__ */ n(
|
13
|
+
"div",
|
14
|
+
{
|
15
|
+
style: {
|
16
|
+
boxShadow: r && r.customTheme && ((m = (c = r.customTheme) == null ? void 0 : c.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__ */ b("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__ */ b("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__ */ n("span", { className: "bw-text-sm bw-font-light", children: "via" }),
|
25
|
+
" ",
|
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
|
+
((x = (g = t == null ? void 0 : t.route) == null ? void 0 : g.providerDetails) == null ? void 0 : x.name) || "",
|
28
|
+
": ",
|
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__ */ b("span", { className: "bw-ml-1 bw-text-xs bw-font-normal bw-leading-6", children: [
|
31
|
+
`+${((C = (p = t == null ? void 0 : t.route) == null ? void 0 : p.protocolsUsed) == null ? void 0 : C.length) - 1}`,
|
32
|
+
" More"
|
33
|
+
] }),
|
34
|
+
" "
|
35
|
+
] }),
|
36
|
+
" "
|
37
|
+
] })
|
38
|
+
] });
|
39
|
+
}
|
40
|
+
let N;
|
41
|
+
function R() {
|
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 } = H(U), d = Math.floor(((/* @__PURE__ */ new Date()).getTime() - r.quoteStartTime) / 1e3);
|
44
|
+
let w = ((u = r == null ? void 0 : r.route) == null ? void 0 : u.deadline) || 60;
|
45
|
+
const [i, e] = E(w);
|
46
|
+
return v(() => {
|
47
|
+
d && e(w - d);
|
48
|
+
}, []), v(() => (N = setInterval(() => {
|
49
|
+
e((s) => {
|
50
|
+
var h;
|
51
|
+
return s <= 0 ? (clearInterval(N), a({
|
52
|
+
...(h = l.getState()) == null ? void 0 : h.persist,
|
53
|
+
isQuoteTimer: !1,
|
54
|
+
showAcceptQuote: !0,
|
55
|
+
quoteStartTime: (/* @__PURE__ */ new Date()).getTime()
|
56
|
+
}), 0) : s - 1;
|
57
|
+
});
|
58
|
+
}, 1e3), () => clearInterval(N)), []), v(() => {
|
59
|
+
(f || !r.isQuoteTimer) && clearInterval(N);
|
60
|
+
}, [f, r.isQuoteTimer]), !(r != null && r.hash) && r.quote === "enable" ? /* @__PURE__ */ b("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__ */ b("linearGradient", { id: "linearColors", x1: "0", y1: "0", x2: "1", y2: "1", children: [
|
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
|
+
/* @__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
|
+
] }) }),
|
65
|
+
/* @__PURE__ */ b(
|
66
|
+
Y,
|
67
|
+
{
|
68
|
+
sx: {
|
69
|
+
position: "relative",
|
70
|
+
display: "inline-flex"
|
71
|
+
},
|
72
|
+
children: [
|
73
|
+
/* @__PURE__ */ n(
|
74
|
+
Q,
|
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__ */ n(
|
86
|
+
Q,
|
87
|
+
{
|
88
|
+
variant: "determinate",
|
89
|
+
size: 20,
|
90
|
+
thickness: 5,
|
91
|
+
value: i / w * 100,
|
92
|
+
sx: {
|
93
|
+
"svg circle": { stroke: "url(#linearColors)" },
|
94
|
+
position: "absolute",
|
95
|
+
left: 0,
|
96
|
+
[`& .${X.circle}`]: {
|
97
|
+
strokeLinecap: "round"
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
)
|
102
|
+
]
|
103
|
+
}
|
104
|
+
)
|
105
|
+
] }) : /* @__PURE__ */ n(A, {});
|
106
|
+
}
|
107
|
+
const ee = G.memo(function({ handleOpenExchange: t, amount: r, route: a, resetAmount: f, resetBalance: d, setExchange: w }) {
|
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: M } = D;
|
110
|
+
v(() => {
|
111
|
+
var o, j, z, F;
|
112
|
+
a != null && a.routeId && i({
|
113
|
+
...(o = l.getState()) == null ? void 0 : o.persist,
|
114
|
+
routeId: a == null ? void 0 : a.routeId,
|
115
|
+
route: a,
|
116
|
+
toChain: m,
|
117
|
+
toCoin: g,
|
118
|
+
fromChain: u,
|
119
|
+
fromCoin: c,
|
120
|
+
amount: r,
|
121
|
+
quote: "enable",
|
122
|
+
openAt: (/* @__PURE__ */ new Date()).getTime(),
|
123
|
+
startTime: ((F = (z = (j = l) == null ? void 0 : j.getState()) == null ? void 0 : z.persist) == null ? void 0 : F.startTime) || (/* @__PURE__ */ new Date()).getTime()
|
124
|
+
});
|
125
|
+
}, [a]);
|
126
|
+
function I(o) {
|
127
|
+
s(o);
|
128
|
+
}
|
129
|
+
function S() {
|
130
|
+
((e == null ? void 0 : e.openAt) + 60 * 60 * 1e3 - (/* @__PURE__ */ new Date()).getTime()) / 1e3 / 60 <= 0 && document.visibilityState === "visible" && (i({}), t(), f());
|
131
|
+
}
|
132
|
+
v(() => (e != null && e.openAt && window.addEventListener("visibilitychange", S), () => {
|
133
|
+
window.removeEventListener("visibilitychange", S);
|
134
|
+
}), [e == null ? void 0 : e.openAt]), v(() => (e != null && e.openAt && window.addEventListener("load", S), () => {
|
135
|
+
window.removeEventListener("load", S);
|
136
|
+
}), [e == null ? void 0 : e.openAt]);
|
137
|
+
function q(o) {
|
138
|
+
y(o);
|
139
|
+
}
|
140
|
+
function B(o) {
|
141
|
+
C(o);
|
142
|
+
}
|
143
|
+
function P() {
|
144
|
+
t(), i({}), h && d();
|
145
|
+
}
|
146
|
+
return /* @__PURE__ */ n($.Provider, { value: { isTxnSuccessful: h, handleTxnSuccess: q }, children: /* @__PURE__ */ n(U.Provider, { value: { isErrorMessage: p, handleErrorMessage: B }, children: /* @__PURE__ */ b("div", { className: "bw-w-full bw-relative bw-min-h-[610px] ", children: [
|
147
|
+
/* @__PURE__ */ n(O, { handleBack: P }),
|
148
|
+
/* @__PURE__ */ n("div", { className: "bw-mt-[-20px] ", children: /* @__PURE__ */ n(Z, {}) }),
|
149
|
+
e != null && e.isQuoteTimer ? /* @__PURE__ */ n(R, {}) : /* @__PURE__ */ n(A, {}),
|
150
|
+
/* @__PURE__ */ n("div", { className: "bw-flex bw-justify-between bw-items-center" }),
|
151
|
+
/* @__PURE__ */ b("div", { className: "bw-flex bw-w-full bw-mt-4 bw-justify-between bw-items-center", children: [
|
152
|
+
/* @__PURE__ */ b("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
153
|
+
/* @__PURE__ */ n("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Send" }),
|
154
|
+
/* @__PURE__ */ n(L, { amount: e == null ? void 0 : e.amount, coinData: e.fromCoin, chainData: e.fromChain, field: "from" })
|
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: M, width: 33, height: 30, alt: "img" }) }) : /* @__PURE__ */ n(J, { isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x, startTimer: I, error: p }),
|
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__ */ b("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
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(((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__ */ b("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(K, {}),
|
165
|
+
/* @__PURE__ */ n(V, { handleOpenExchange: t, setExchange: w, amount: r, startTimer: I, handleBack: P, isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x })
|
166
|
+
] })
|
167
|
+
] }) }) });
|
168
|
+
});
|
169
|
+
function le({
|
170
|
+
handleConfirmClose: t,
|
171
|
+
routesData: r,
|
172
|
+
amount: a,
|
173
|
+
resetAmount: f,
|
174
|
+
resetBalance: d,
|
175
|
+
handleStopRoute: w
|
176
|
+
}) {
|
177
|
+
const i = _();
|
178
|
+
v(() => {
|
179
|
+
var c, m;
|
180
|
+
!i.current && Number(
|
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
|
+
) !== Number((r == null ? void 0 : r.minOutputAmount) || (r == null ? void 0 : r.outputAmountDisplay)) && (i.current = r);
|
183
|
+
}, [r]), v(() => {
|
184
|
+
w(!0);
|
185
|
+
}, []);
|
186
|
+
function e() {
|
187
|
+
w(!1), t(!1);
|
188
|
+
}
|
189
|
+
function u() {
|
190
|
+
t(!1);
|
191
|
+
}
|
192
|
+
return /* @__PURE__ */ n(
|
193
|
+
ee,
|
194
|
+
{
|
195
|
+
handleOpenExchange: e,
|
196
|
+
amount: a,
|
197
|
+
route: r,
|
198
|
+
resetAmount: f,
|
199
|
+
resetBalance: d,
|
200
|
+
setExchange: u
|
201
|
+
}
|
202
|
+
);
|
203
|
+
}
|
204
|
+
export {
|
205
|
+
le as default
|
206
|
+
};
|