@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
@@ -1,10 +1,10 @@
|
|
1
|
-
import { z as Qo, G as en, p as S, P as e, g as de, b as ce, i as be, _ as q, d as s, s as j, e as ue, h as pe, j as ho, T as on, A as nn, f as Se, B as So, C as to, r as Ce, D as tn } from "./index-
|
1
|
+
import { z as Qo, G as en, p as S, P as e, g as de, b as ce, i as be, _ as q, d as s, s as j, e as ue, h as pe, j as ho, T as on, A as nn, f as Se, B as So, C as to, r as Ce, D as tn } from "./index-VwOzTBuI.js";
|
2
2
|
import * as a from "react";
|
3
|
-
import { d as Eo, c as rn, r as ro } from "./index-
|
4
|
-
import { G as sn, b as an, u as go, a as ln } from "./Grow-
|
3
|
+
import { d as Eo, c as rn, r as ro } from "./index-CbunQDKM.js";
|
4
|
+
import { G as sn, b as an, u as go, a as ln } from "./Grow-DimeDg31.js";
|
5
5
|
import { jsx as T, jsxs as Oe } from "react/jsx-runtime";
|
6
|
-
import { j as un, h as No, b as ke, l as dn, a as ze, k as eo, r as Ee, o as Be, m as Ue, H as oo, n as cn } from "./useRegisterError-
|
7
|
-
import { o as He, e as Mo, c as pn, M as fn } from "./getChainIds-
|
6
|
+
import { j as un, h as No, b as ke, l as dn, a as ze, k as eo, r as Ee, o as Be, m as Ue, H as oo, n as cn } from "./useRegisterError-BrX0SzkP.js";
|
7
|
+
import { o as He, e as Mo, c as pn, M as fn } from "./getChainIds-CfrzTUBX.js";
|
8
8
|
function $o({
|
9
9
|
styles: o,
|
10
10
|
themeId: n,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { m as C } from "./core-
|
1
|
+
import { m as C } from "./core-2WkYhq16.js";
|
2
2
|
const l = C`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
|
3
3
|
<path d="M4.98926 3.73932C4.2989 3.73932 3.73926 4.29896 3.73926 4.98932C3.73926 5.67968 4.2989 6.23932 4.98926 6.23932C5.67962 6.23932 6.23926 5.67968 6.23926 4.98932C6.23926 4.29896 5.67962 3.73932 4.98926 3.73932Z" fill="currentColor"/>
|
4
4
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.60497 0.500001H6.39504C5.41068 0.499977 4.59185 0.499958 3.93178 0.571471C3.24075 0.64634 2.60613 0.809093 2.04581 1.21619C1.72745 1.44749 1.44749 1.72745 1.21619 2.04581C0.809093 2.60613 0.64634 3.24075 0.571471 3.93178C0.499958 4.59185 0.499977 5.41065 0.500001 6.39501V7.57815C0.499998 8.37476 0.499995 9.05726 0.534869 9.62725C0.570123 10.2034 0.644114 10.7419 0.828442 11.2302C0.925651 11.4877 1.05235 11.7287 1.21619 11.9542C1.44749 12.2726 1.72745 12.5525 2.04581 12.7838C2.60613 13.1909 3.24075 13.3537 3.93178 13.4285C4.59185 13.5001 5.41066 13.5 6.39503 13.5H7.60496C8.58933 13.5 9.40815 13.5001 10.0682 13.4285C10.7593 13.3537 11.3939 13.1909 11.9542 12.7838C12.2726 12.5525 12.5525 12.2726 12.7838 11.9542C13.1909 11.3939 13.3537 10.7593 13.4285 10.0682C13.5 9.40816 13.5 8.58935 13.5 7.60497V6.39505C13.5 5.41068 13.5 4.59185 13.4285 3.93178C13.3537 3.24075 13.1909 2.60613 12.7838 2.04581C12.5525 1.72745 12.2726 1.44749 11.9542 1.21619C11.3939 0.809093 10.7593 0.64634 10.0682 0.571471C9.40816 0.499958 8.58933 0.499977 7.60497 0.500001ZM3.22138 2.83422C3.38394 2.71612 3.62634 2.61627 4.14721 2.55984C4.68679 2.50138 5.39655 2.5 6.45 2.5H7.55C8.60345 2.5 9.31322 2.50138 9.8528 2.55984C10.3737 2.61627 10.6161 2.71612 10.7786 2.83422C10.9272 2.94216 11.0578 3.07281 11.1658 3.22138C11.2839 3.38394 11.3837 3.62634 11.4402 4.14721C11.4986 4.68679 11.5 5.39655 11.5 6.45V6.49703C10.9674 6.11617 10.386 5.84936 9.74213 5.81948C8.40536 5.75745 7.3556 6.73051 6.40509 7.84229C6.33236 7.92737 6.27406 7.98735 6.22971 8.02911L6.1919 8.00514L6.17483 7.99427C6.09523 7.94353 5.98115 7.87083 5.85596 7.80302C5.56887 7.64752 5.18012 7.4921 4.68105 7.4921C4.66697 7.4921 4.6529 7.49239 4.63884 7.49299C3.79163 7.52878 3.09922 8.1106 2.62901 8.55472C2.58751 8.59392 2.54594 8.6339 2.50435 8.6745C2.50011 8.34653 2.5 7.97569 2.5 7.55V6.45C2.5 5.39655 2.50138 4.68679 2.55984 4.14721C2.61627 3.62634 2.71612 3.38394 2.83422 3.22138C2.94216 3.07281 3.07281 2.94216 3.22138 2.83422ZM10.3703 8.14825C10.6798 8.37526 11.043 8.71839 11.4832 9.20889C11.4744 9.44992 11.4608 9.662 11.4402 9.8528C11.3837 10.3737 11.2839 10.6161 11.1658 10.7786C11.0578 10.9272 10.9272 11.0578 10.7786 11.1658C10.6161 11.2839 10.3737 11.3837 9.8528 11.4402C9.31322 11.4986 8.60345 11.5 7.55 11.5H6.45C5.39655 11.5 4.68679 11.4986 4.14721 11.4402C3.62634 11.3837 3.38394 11.2839 3.22138 11.1658C3.15484 11.1174 3.0919 11.0645 3.03298 11.0075C3.10126 10.9356 3.16806 10.8649 3.23317 10.7959L3.29772 10.7276C3.55763 10.4525 3.78639 10.2126 4.00232 10.0087C4.22016 9.80294 4.39412 9.66364 4.53524 9.57742C4.63352 9.51738 4.69022 9.49897 4.71275 9.49345C4.76387 9.49804 4.81803 9.51537 4.90343 9.56162C4.96409 9.59447 5.02355 9.63225 5.11802 9.69238L5.12363 9.69595C5.20522 9.74789 5.32771 9.82587 5.46078 9.89278C5.76529 10.0459 6.21427 10.186 6.74977 10.0158C7.21485 9.86796 7.59367 9.52979 7.92525 9.14195C8.91377 7.98571 9.38267 7.80495 9.64941 7.81733C9.7858 7.82366 10.0101 7.884 10.3703 8.14825Z" fill="currentColor"/>
|
@@ -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-Dh9afjPx.js";
|
3
|
+
import { useState as q, useEffect as k } from "react";
|
4
|
+
import { d as we, i as be } from "./useRegisterError-BrX0SzkP.js";
|
5
|
+
import { u as c, l as ee, c as Z, F as ue } from "./index-VwOzTBuI.js";
|
6
|
+
import { useQuery as _ } from "@tanstack/react-query";
|
7
|
+
import "./down-BiWYZhrl.js";
|
8
|
+
import "wagmi";
|
9
|
+
import "@dynamic-labs/sdk-react-core";
|
10
|
+
import "./getCosmosAddress-CQBPedP-.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-VwOzTBuI.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-CfrzTUBX.js";
|
5
5
|
function Z(o) {
|
6
6
|
return U("MuiButton", o);
|
7
7
|
}
|