@blockend/widget 1.0.63-beta.1 → 1.0.63-beta.11
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-8vhlfGf-.js → AllRoutes-mBMX-bp_.js} +210 -207
- package/dist/{Box-BTaHIEfq.js → Box-Cr6tremn.js} +8 -8
- package/dist/{EstGas-CR6YmgrV.js → EstGas-ziYEbWgu.js} +547 -542
- package/dist/{Grow-BmLMXGpF.js → Grow-Uh43i8On.js} +218 -214
- package/dist/{InputComp-BcRHFujR.js → InputComp-DIz_bhSV.js} +3 -3
- package/dist/LoadRoute-BGqC0Xbo.js +104 -0
- package/dist/{QuotesProgress-dZK5t6Af.js → QuotesProgress-DK8bSV7f.js} +1 -1
- package/dist/{SwapAsset-Cb1HU2IW.js → SwapAsset-Bx_hxHw_.js} +1 -1
- package/dist/{Tooltip-CCJQNWKV.js → Tooltip-DB7x5JO7.js} +9 -6
- package/dist/{TxnButton-Ddhzivbr.js → TxnButton-CDmjKNZg.js} +65 -62
- package/dist/{add-CXxCm9LT.js → add-5z4JukLX.js} +1 -1
- package/dist/{all-wallets-B2k777Go.js → all-wallets-De3YAlW5.js} +1 -1
- package/dist/{app-store-BefvqWIr.js → app-store-YB3L3A0D.js} +1 -1
- package/dist/{apple-xv2wilZw.js → apple-kfJszt4b.js} +1 -1
- package/dist/{arrow-bottom-eJR2wz4Q.js → arrow-bottom-Cq_VhiDl.js} +1 -1
- package/dist/{arrow-bottom-circle-DiCGVTmN.js → arrow-bottom-circle-DvzO-Vqy.js} +1 -1
- package/dist/{arrow-left-eW5rkpGR.js → arrow-left-BCztmLY3.js} +1 -1
- package/dist/{arrow-right-D_PahEvj.js → arrow-right-sVlvqvsf.js} +1 -1
- package/dist/{arrow-top-Cd45U-OK.js → arrow-top-Cwc_K8xV.js} +1 -1
- package/dist/{bank-Du_PBJEL.js → bank-DANyn1rV.js} +1 -1
- package/dist/{basic-Og2t8wfR.js → basic-DZjAzDnu.js} +4 -4
- package/dist/{browser-HO6X74Jh.js → browser-B1RJm60J.js} +1 -1
- package/dist/{card-CjWBCXYA.js → card-DglUN2Dw.js} +1 -1
- package/dist/{ccip-DHqvWSgS.js → ccip-DyYKyf2y.js} +7 -7
- package/dist/{checkmark-CMLNKLjH.js → checkmark-QhiUr5Em.js} +1 -1
- package/dist/{checkmark-bold-CM9EIYV0.js → checkmark-bold-DwUSqNus.js} +1 -1
- package/dist/{chevron-bottom-BDaOxnxp.js → chevron-bottom-B8G1KuSc.js} +1 -1
- package/dist/{chevron-left-BuK5WmH2.js → chevron-left-C73Lc8jb.js} +1 -1
- package/dist/{chevron-right-BMRPUQ7d.js → chevron-right-Ci4LZG1w.js} +1 -1
- package/dist/{chevron-top-DndcjTpF.js → chevron-top-BlYO8Hto.js} +1 -1
- package/dist/{chrome-store-BMaWFKtJ.js → chrome-store-CSNoMmva.js} +1 -1
- package/dist/{clock-B5OmOXN6.js → clock-B4XVIA65.js} +1 -1
- package/dist/{close-Bkt0qqtO.js → close-B97SZOIl.js} +1 -1
- package/dist/{coinPlaceholder-B9E-pdBA.js → coinPlaceholder-QiZwz0LU.js} +1 -1
- package/dist/{compass-70YC7hlj.js → compass-D_qqx-55.js} +1 -1
- package/dist/{copy-6xIbuiPA.js → copy-BIUx3Q4I.js} +1 -1
- package/dist/{core-CIqAJqfO.js → core-d7L-Vu90.js} +390 -324
- package/dist/createSvgIcon-B3VTAeTx.js +195 -0
- package/dist/{cursor-transparent-umSbGkB7.js → cursor-transparent-RsKqf-mA.js} +1 -1
- package/dist/{cursor-XVsA3bFU.js → cursor-xqG0UDxP.js} +1 -1
- package/dist/{desktop-CXv5OVB9.js → desktop-BsA5eXYT.js} +1 -1
- package/dist/{disconnect-Dvhyoj4V.js → disconnect-Cv1V757w.js} +1 -1
- package/dist/{discord-BVK5s4WI.js → discord-Cr6DjrX0.js} +1 -1
- package/dist/{down-FxTTd1zc.js → down-CBwp2T3r.js} +4 -3
- package/dist/{etherscan-DxlyP6n6.js → etherscan-cVdy9Xv_.js} +1 -1
- package/dist/{exclamation-triangle-iHVFOZzs.js → exclamation-triangle-DB_vFVh2.js} +1 -1
- package/dist/{extension-DiDqWBcW.js → extension-Dx_lggvf.js} +1 -1
- package/dist/{external-link-BHW_akeT.js → external-link-DjGJMqQX.js} +1 -1
- package/dist/{facebook-BdfpC6Ls.js → facebook-ByNlHgEv.js} +1 -1
- package/dist/{farcaster-CsPD4_Ee.js → farcaster-AFncrE0q.js} +1 -1
- package/dist/{filters-CqRduOsu.js → filters-BJ7jwu2Q.js} +1 -1
- package/dist/{getChainIds-CJguHdTG.js → getChainIds-DgE0msCJ.js} +6 -4
- package/dist/{getCosmosAddress-Jm1ni4XU.js → getCosmosAddress-SgJhNeUL.js} +1542 -1537
- package/dist/{github-BOePu0Wa.js → github-BhBjXAs5.js} +1 -1
- package/dist/{google-BbTzqlxg.js → google-CnJ7nycT.js} +1 -1
- package/dist/{hamburger-Co59plQs.js → hamburger-l96tqs1h.js} +445 -436
- package/dist/{help-circle-f8w-O5uS.js → help-circle-DS8SqIHZ.js} +1 -1
- package/dist/{id-FJz-6DWQ.js → id-C59Wrku-.js} +1 -1
- package/dist/{image-BGcjHz_W.js → image-IR2_4E_d.js} +1 -1
- package/dist/{index-B7BjZ7QD.js → index-ABEW9neF.js} +4 -4
- package/dist/{index-BGtpuYz8.js → index-B6m7TmsK.js} +1 -1
- package/dist/{index-Qlxj5hfD.js → index-BFZtIV9K.js} +78 -78
- package/dist/{index-uGXbvlKh.js → index-BVUqg2le.js} +2 -2
- package/dist/{index-DN3VaeWb.js → index-BfLdGiQm.js} +32 -21
- package/dist/{index-CsUXwhXc.js → index-BiNu6NEt.js} +393 -388
- package/dist/{index-DTish3yr.js → index-Bl2UpALc.js} +3 -1
- package/dist/{index-BmpkN5Ku.js → index-Cbk_Sa95.js} +1151 -1134
- package/dist/index-Cyy7b5hp.js +113 -0
- package/dist/{index-Yg5537Ua.js → index-DxIrenBx.js} +1477 -1580
- package/dist/index-JX8acpSp.js +17555 -0
- package/dist/{index-B1aDjOsb.js → index-aVpPjW18.js} +5113 -5042
- package/dist/{index.es-DksqakUY.js → index.es-BN06Lzg3.js} +978 -958
- package/dist/{index.es-DI1TVLSl.js → index.es-DrRzHjO0.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{info-D7az05BN.js → info-BT2xuCwg.js} +1 -1
- package/dist/{info-circle-BJVzgICV.js → info-circle-DZehzZtq.js} +1 -1
- package/dist/{lightbulb-BwTw8953.js → lightbulb-DthuZVnA.js} +1 -1
- package/dist/{mail-yo0Q-pKc.js → mail-CkXT-iZ5.js} +1 -1
- package/dist/{mobile-Cq9QgJo1.js → mobile-DgdclEn8.js} +1 -1
- package/dist/{more-CA9mN5hg.js → more-Cejj_uHx.js} +1 -1
- package/dist/{network-placeholder-DJgEL8xU.js → network-placeholder-BpQc3aWv.js} +1 -1
- package/dist/{nftPlaceholder-BtmwsJfE.js → nftPlaceholder-cCa6Bwxp.js} +1 -1
- package/dist/{off-DOBUEPIz.js → off-CLDqc8wX.js} +1 -1
- package/dist/{play-store-CTeI1TUT.js → play-store-BO1-bjg7.js} +1 -1
- package/dist/{plus-BIMbqFAs.js → plus-DiEUEjd6.js} +1 -1
- package/dist/{qr-code-BNLm2nbm.js → qr-code-C7lqAnYE.js} +1 -1
- package/dist/{recycle-horizontal-CD20fzzc.js → recycle-horizontal-CFsdwGO2.js} +1 -1
- package/dist/{refresh-vAF43DQ5.js → refresh-DU5E3fUF.js} +1 -1
- package/dist/{reown-logo-QC8cVkw7.js → reown-logo-DQHwmwSu.js} +1 -1
- package/dist/{search-BEV7hWzk.js → search-DPTQ2PY-.js} +1 -1
- package/dist/{send-DQuKJTh-.js → send-qEnLDoA5.js} +1 -1
- package/dist/{swapHorizontal-QlUI5TkM.js → swapHorizontal-Z_ilQ4q_.js} +1 -1
- package/dist/{swapHorizontalBold-CxRB7lBz.js → swapHorizontalBold-CAfW1IWh.js} +1 -1
- package/dist/{swapHorizontalMedium-DR23H9E6.js → swapHorizontalMedium-CsxO8OiO.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-CvCYhrA3.js → swapHorizontalRoundedBold-CNKb9td4.js} +1 -1
- package/dist/{swapVertical-NpfviMzk.js → swapVertical-CSHfhA6V.js} +1 -1
- package/dist/{telegram-B2E4bkq4.js → telegram-CcazSHGC.js} +1 -1
- package/dist/{three-dots-zOUHoCrw.js → three-dots-B1bx4iJg.js} +1 -1
- package/dist/{twitch-DvXB4cDF.js → twitch-Db4kgU2y.js} +1 -1
- package/dist/{twitterIcon-CkAU-gkN.js → twitterIcon-DFK4zKw_.js} +1 -1
- package/dist/{unsupportedProp-CR0Bm2eS.js → unsupportedProp-DKp2x8RO.js} +1 -1
- package/dist/{useRegisterError-B1UKihdk.js → useRegisterError-CoZkPgOD.js} +126 -122
- package/dist/{verify-filled-DQ3ygXuA.js → verify-filled-DOzDdvDY.js} +1 -1
- package/dist/{verify-DcGLVQiP.js → verify-xpMnGOFP.js} +1 -1
- package/dist/{w3m-modal-BJNv805u.js → w3m-modal-BiNAmx5t.js} +2 -2
- package/dist/{wallet-Dyl015cJ.js → wallet-0J5FldrO.js} +1 -1
- package/dist/{wallet-placeholder-DwdGMd_q.js → wallet-placeholder-DNMFsvfL.js} +1 -1
- package/dist/{walletconnect-Cm10vkxV.js → walletconnect-BNUJ3LS5.js} +1 -1
- package/dist/{warning-circle-B_JpskvF.js → warning-circle-BHQ_LgKt.js} +1 -1
- package/dist/widget.css +1 -1
- package/dist/{x-BBTlR8TT.js → x-C1_RFZRq.js} +1 -1
- package/package.json +2 -2
- package/dist/LoadRoute-D-6AXSyf.js +0 -125
- package/dist/index-By0HLmvg.js +0 -18509
- package/dist/index-C9NKLe0T.js +0 -330
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import { O as pt } from "./index-
|
|
4
|
-
import ht, { useState as
|
|
5
|
-
import { u as Ut, W as
|
|
1
|
+
import { jsx as r, jsxs as f, Fragment as L } from "react/jsx-runtime";
|
|
2
|
+
import { aF as Kt, aG as Zt, aH as Xt, aI as Yt, aJ as te, aK as ee, u as c, l as ot, S as wt, a as jt, aB as _t, aC as it } from "./index-aVpPjW18.js";
|
|
3
|
+
import { O as pt } from "./index-B6m7TmsK.js";
|
|
4
|
+
import ht, { useState as rt, useContext as K, useRef as mt, useEffect as G, createContext as ne, useMemo as oe } from "react";
|
|
5
|
+
import { u as Ut, W as re, B as se, C as ie, L as ae, i as Gt, f as le, c as Mt, d as ce, F as at } from "./useRegisterError-CoZkPgOD.js";
|
|
6
6
|
import { useAccount as ft, useConfig as xe, useSwitchChain as de } from "wagmi";
|
|
7
7
|
import { S as be } from "./shareicon-CG3v7iKI.js";
|
|
8
|
-
import { T as Ht } from "./Tooltip-
|
|
9
|
-
import { L as me } from "./index.es-
|
|
8
|
+
import { T as Ht } from "./Tooltip-DB7x5JO7.js";
|
|
9
|
+
import { L as me } from "./index.es-DrRzHjO0.js";
|
|
10
10
|
import { useStargateSigningClient as Lt, useAccount as ue } from "graz";
|
|
11
|
-
import { l as we, S as pe, D as he } from "./down-
|
|
12
|
-
import { u as ye, g as It } from "./getCosmosAddress-
|
|
11
|
+
import { l as we, S as pe, D as he } from "./down-CBwp2T3r.js";
|
|
12
|
+
import { u as ye, g as It } from "./getCosmosAddress-SgJhNeUL.js";
|
|
13
13
|
import { useDynamicContext as Ot } from "@dynamic-labs/sdk-react-core";
|
|
14
14
|
import { v as yt } from "./validError-CDlJpg_f.js";
|
|
15
15
|
import { getNextTxn as fe, createTransaction as ke, checkStatus as ge, pollTransactionStatus as Se, executeTransaction as Te } from "@blockend/compass-sdk";
|
|
16
|
-
import { useMutation as ve, useQuery as
|
|
17
|
-
import { createClient as
|
|
16
|
+
import { useMutation as ve, useQuery as Ce } from "@tanstack/react-query";
|
|
17
|
+
import { createClient as Ee, custom as Ne, walletActions as Ae } from "viem";
|
|
18
18
|
import { e as Ie } from "./ethertousd-CC_ezooz.js";
|
|
19
|
-
async function De(n,
|
|
19
|
+
async function De(n, o = {}) {
|
|
20
20
|
let t;
|
|
21
|
-
if (
|
|
22
|
-
const { connector: l } =
|
|
21
|
+
if (o.connector) {
|
|
22
|
+
const { connector: l } = o;
|
|
23
23
|
if (n.state.status === "reconnecting" && !l.getAccounts && !l.getChainId)
|
|
24
|
-
throw new
|
|
25
|
-
const [
|
|
26
|
-
l.getAccounts().catch((
|
|
27
|
-
if (
|
|
24
|
+
throw new Kt({ connector: l });
|
|
25
|
+
const [k, h] = await Promise.all([
|
|
26
|
+
l.getAccounts().catch((C) => {
|
|
27
|
+
if (o.account === null)
|
|
28
28
|
return [];
|
|
29
|
-
throw
|
|
29
|
+
throw C;
|
|
30
30
|
}),
|
|
31
31
|
l.getChainId()
|
|
32
32
|
]);
|
|
33
33
|
t = {
|
|
34
|
-
accounts:
|
|
35
|
-
chainId:
|
|
34
|
+
accounts: k,
|
|
35
|
+
chainId: h,
|
|
36
36
|
connector: l
|
|
37
37
|
};
|
|
38
38
|
} else
|
|
39
39
|
t = n.state.connections.get(n.state.current);
|
|
40
40
|
if (!t)
|
|
41
|
-
throw new
|
|
42
|
-
const e =
|
|
41
|
+
throw new Zt();
|
|
42
|
+
const e = o.chainId ?? t.chainId, i = await t.connector.getChainId();
|
|
43
43
|
if (i !== t.chainId)
|
|
44
44
|
throw new Xt({
|
|
45
45
|
connectionChainId: t.chainId,
|
|
@@ -48,62 +48,62 @@ async function De(n, r = {}) {
|
|
|
48
48
|
const b = t.connector;
|
|
49
49
|
if (b.getClient)
|
|
50
50
|
return b.getClient({ chainId: e });
|
|
51
|
-
const a = Yt(
|
|
52
|
-
if (a && (a.address = te(a.address)),
|
|
51
|
+
const a = Yt(o.account ?? t.accounts[0]);
|
|
52
|
+
if (a && (a.address = te(a.address)), o.account && !t.accounts.some((l) => l.toLowerCase() === a.address.toLowerCase()))
|
|
53
53
|
throw new ee({
|
|
54
54
|
address: a.address,
|
|
55
55
|
connector: b
|
|
56
56
|
});
|
|
57
|
-
const
|
|
58
|
-
return
|
|
57
|
+
const m = n.chains.find((l) => l.id === e), p = await t.connector.getProvider({ chainId: e });
|
|
58
|
+
return Ee({
|
|
59
59
|
account: a,
|
|
60
|
-
chain:
|
|
60
|
+
chain: m,
|
|
61
61
|
name: "Connector Client",
|
|
62
|
-
transport: (l) => Ne(
|
|
62
|
+
transport: (l) => Ne(p)({ ...l, retryCount: 0 })
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
async function Fe(n,
|
|
66
|
-
return (await De(n,
|
|
65
|
+
async function Fe(n, o = {}) {
|
|
66
|
+
return (await De(n, o)).extend(Ae);
|
|
67
67
|
}
|
|
68
68
|
function Be({ field: n }) {
|
|
69
|
-
var b, a,
|
|
70
|
-
const
|
|
71
|
-
return /* @__PURE__ */
|
|
72
|
-
/* @__PURE__ */
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
] }) : /* @__PURE__ */
|
|
69
|
+
var b, a, m;
|
|
70
|
+
const o = c((p) => p.persist), { getWallet: t } = Ut({ chainData: (o == null ? void 0 : o.fromChain) || {} }), e = ((b = t(o == null ? void 0 : o.fromChain)) == null ? void 0 : b.address) || null, i = n == "from" ? e && ((a = o == null ? void 0 : o.route) == null ? void 0 : a.userWalletAddress) || "" : ((m = o == null ? void 0 : o.route) == null ? void 0 : m.recipient) || "";
|
|
71
|
+
return /* @__PURE__ */ r("button", { style: { fontSize: "12px" }, className: "bw-bg-background-container bw-flex bw-items-center bw-justify-center bw-gap-x-2 bw-mb-[4px] bw-w-[100px] bw-h-[25px] bw-rounded-xl bw-border bw-border-border-primary", children: i ? /* @__PURE__ */ f(L, { children: [
|
|
72
|
+
/* @__PURE__ */ r("p", { className: "bw-text-text-primary bw-text-xs bw-font-normal", children: ((i == null ? void 0 : i.substring(0, 4)) || "") + "..." + ((i == null ? void 0 : i.substring(i.length - 4, i.length)) || "") }),
|
|
73
|
+
/* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(re, { fill: "var(--tw-text-primary)" }) })
|
|
74
|
+
] }) : /* @__PURE__ */ r("div", { className: "bw-w-[10px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[10px]", children: "Connect " }) });
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
var a,
|
|
78
|
-
const i = c((
|
|
79
|
-
return /* @__PURE__ */
|
|
76
|
+
function rn({ chainData: n, coinData: o, amount: t, field: e }) {
|
|
77
|
+
var a, m, p, l, k;
|
|
78
|
+
const i = c((h) => h.configuration), b = c((h) => h.persist);
|
|
79
|
+
return /* @__PURE__ */ f(
|
|
80
80
|
"div",
|
|
81
81
|
{
|
|
82
82
|
style: {
|
|
83
|
-
boxShadow: i && i.customTheme && ((
|
|
83
|
+
boxShadow: i && i.customTheme && ((m = (a = i.customTheme) == null ? void 0 : a.shadow) == null ? void 0 : m.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
|
84
84
|
},
|
|
85
|
-
className: `bw-bg-background-container bw-relative bw-z-10 bw-min-w-[50%] bw-px-2 md:bw-min-w-[153px] bw-flex bw-flex-col bw-items-center bw-justify-start bw-pt-2 bw-rounded-lg bw-h-[75px] bw-border ${(((
|
|
85
|
+
className: `bw-bg-background-container bw-relative bw-z-10 bw-min-w-[50%] bw-px-2 md:bw-min-w-[153px] bw-flex bw-flex-col bw-items-center bw-justify-start bw-pt-2 bw-rounded-lg bw-h-[75px] bw-border ${(((p = b.statusData) == null ? void 0 : p.status) == "partial-success" || ((l = b.statusData) == null ? void 0 : l.status) == "refunded") && e == "to" ? "bw-border-text-redtext" : "bw-border-border-primary"} `,
|
|
86
86
|
children: [
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ f("div", { className: `${((k = o == null ? void 0 : o.symbol) == null ? void 0 : k.length) > 6 ? "bw-text-base" : "bw-text-lg"} bw-text-center bw-font-medium bw-text-text-primary`, children: [
|
|
88
|
+
/* @__PURE__ */ r("span", { children: t ? /* @__PURE__ */ r(pt, { value: t == null ? void 0 : t.toString(), decimal: 8 }) : 0 }),
|
|
89
89
|
" ",
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ r("span", { children: (o == null ? void 0 : o.symbol) || "" }),
|
|
91
|
+
/* @__PURE__ */ r("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: `on ${n == null ? void 0 : n.name}` })
|
|
92
92
|
] }),
|
|
93
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ r("div", { className: "bw-absolute -bw-bottom-4", children: /* @__PURE__ */ r(Be, { field: e }) })
|
|
94
94
|
]
|
|
95
95
|
}
|
|
96
96
|
);
|
|
97
97
|
}
|
|
98
98
|
function sn({ handleBack: n }) {
|
|
99
|
-
return /* @__PURE__ */
|
|
99
|
+
return /* @__PURE__ */ r("div", { className: "bw-flex bw-z-20 bw-relative bw-justify-center bw-mb-5", children: /* @__PURE__ */ r(
|
|
100
100
|
"button",
|
|
101
101
|
{
|
|
102
102
|
onClick: () => {
|
|
103
103
|
n();
|
|
104
104
|
},
|
|
105
105
|
className: "bw-absolute bw-left-0 bw-top-[25%]",
|
|
106
|
-
children: /* @__PURE__ */
|
|
106
|
+
children: /* @__PURE__ */ r(se, { fill: "var(--tw-text-secondary)" })
|
|
107
107
|
}
|
|
108
108
|
) });
|
|
109
109
|
}
|
|
@@ -111,15 +111,15 @@ const $e = "_loader_1g6xv_1", Ve = {
|
|
|
111
111
|
loader: $e
|
|
112
112
|
};
|
|
113
113
|
function Dt() {
|
|
114
|
-
return /* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
/* @__PURE__ */
|
|
114
|
+
return /* @__PURE__ */ f("div", { className: Ve.loader, children: [
|
|
115
|
+
/* @__PURE__ */ r("span", {}),
|
|
116
|
+
/* @__PURE__ */ r("span", {}),
|
|
117
|
+
/* @__PURE__ */ r("span", {})
|
|
118
118
|
] });
|
|
119
119
|
}
|
|
120
120
|
const lt = ht.createContext(!1);
|
|
121
121
|
function Pe({ children: n }) {
|
|
122
|
-
return /* @__PURE__ */
|
|
122
|
+
return /* @__PURE__ */ r(
|
|
123
123
|
Ht,
|
|
124
124
|
{
|
|
125
125
|
onClose: () => {
|
|
@@ -146,15 +146,15 @@ function Pe({ children: n }) {
|
|
|
146
146
|
);
|
|
147
147
|
}
|
|
148
148
|
function je({ fill: n }) {
|
|
149
|
-
return /* @__PURE__ */
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
/* @__PURE__ */
|
|
149
|
+
return /* @__PURE__ */ f("svg", { width: "18", height: "9", viewBox: "0 0 18 9", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
150
|
+
/* @__PURE__ */ r("path", { d: "M6.34375 4.49902H11.4231", stroke: n, "stroke-width": "2", "stroke-linecap": "round" }),
|
|
151
|
+
/* @__PURE__ */ r("path", { d: "M4.81007 1C-0.269325 1 -0.270722 8 4.81007 8", stroke: n, "stroke-width": "2", "stroke-linecap": "round" }),
|
|
152
|
+
/* @__PURE__ */ r("path", { d: "M13.1899 1C18.2693 1 18.2707 8 13.1899 8", stroke: n, "stroke-width": "2", "stroke-linecap": "round" })
|
|
153
153
|
] });
|
|
154
154
|
}
|
|
155
|
-
function kt({ txnHash: n, children:
|
|
156
|
-
const [t, e] =
|
|
157
|
-
return /* @__PURE__ */
|
|
155
|
+
function kt({ txnHash: n, children: o }) {
|
|
156
|
+
const [t, e] = rt(!1);
|
|
157
|
+
return /* @__PURE__ */ r(
|
|
158
158
|
Ht,
|
|
159
159
|
{
|
|
160
160
|
onClose: () => {
|
|
@@ -182,14 +182,14 @@ function kt({ txnHash: n, children: r }) {
|
|
|
182
182
|
},
|
|
183
183
|
className: "bw-text-text-button",
|
|
184
184
|
title: `${t ? "Copied!" : "Copy"}`,
|
|
185
|
-
children:
|
|
185
|
+
children: o
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
}
|
|
189
189
|
function gt({ fill: n }) {
|
|
190
|
-
return /* @__PURE__ */
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
-
/* @__PURE__ */
|
|
190
|
+
return /* @__PURE__ */ f("svg", { width: "11", height: "13", viewBox: "0 0 11 13", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
191
|
+
/* @__PURE__ */ r("rect", { x: "0.5", y: "3.5", width: "7", height: "9", rx: "1.5", stroke: n }),
|
|
192
|
+
/* @__PURE__ */ r("path", { d: "M3 1H8C9.10457 1 10 1.89543 10 3V10", stroke: n, "stroke-linecap": "round" })
|
|
193
193
|
] });
|
|
194
194
|
}
|
|
195
195
|
const _e = "4.8.0", Ue = { g: "LottieFiles AE 3.5.7", a: "", k: "", d: "", tc: "" }, Ge = 30, Me = 0, He = 54, Le = 512, Oe = 512, Re = "Comp 1", We = 0, Qe = /* @__PURE__ */ JSON.parse('[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Outer Line Effect End Sphere 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35,"s":[100]},{"t":44,"s":[18]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":35,"s":[256,256,0],"to":[4.86,0.612,0],"ti":[-4.86,-0.612,0]},{"t":44,"s":[285.162,259.669,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[6.875,6.875],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[49.625,-52.688],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":35,"op":44,"st":-5,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Outer Line Effect End Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35,"s":[100]},{"t":44,"s":[18]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":35,"s":[256,256,0],"to":[2.124,2.897,0],"ti":[-2.124,-2.897,0]},{"t":44,"s":[268.746,273.381,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[3.75,3.75],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[45.875,-50.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":35,"op":44,"st":-5,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Tick End Effect Sphere 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":13,"s":[100]},{"t":19,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":13,"s":[310.847,201.925,0],"to":[1.674,-2.382,0],"ti":[-1.674,2.382,0]},{"t":19,"s":[320.89,187.634,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[216.3,216.3,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.691,0],[0,-1.691],[-1.691,0],[0,1.691]],"o":[[-1.691,0],[0,1.691],[1.691,0],[0,-1.691]],"v":[[0,-3.062],[-3.062,0],[0,3.062],[3.062,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[44.125,-57.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 2","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.691,0],[0,-1.691],[-1.691,0],[0,1.691]],"o":[[-1.691,0],[0,1.691],[1.691,0],[0,-1.691]],"v":[[0,-3.062],[-3.062,0],[0,3.062],[3.062,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[44.125,-57.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":13,"op":19,"st":-5,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Tick End Effect Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":13,"s":[100]},{"t":19,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":13,"s":[256,256,0],"to":[-0.515,-3.058,0],"ti":[0.515,3.058,0]},{"t":19,"s":[252.91,237.653,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.691,0],[0,-1.691],[-1.691,0],[0,1.691]],"o":[[-1.691,0],[0,1.691],[1.691,0],[0,-1.691]],"v":[[0,-3.062],[-3.062,0],[0,3.062],[3.062,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[44.125,-57.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 2","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.691,0],[0,-1.691],[-1.691,0],[0,1.691]],"o":[[-1.691,0],[0,1.691],[1.691,0],[0,-1.691]],"v":[[0,-3.062],[-3.062,0],[0,3.062],[3.062,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[44.125,-57.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":13,"op":19,"st":-5,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Tick Mid Effect Sphere 3","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[100]},{"t":18,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[257.448,257.835,0],"to":[-1.577,2.543,0],"ti":[1.577,-2.543,0]},{"t":18,"s":[247.985,273.092,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.759,0],[0,-0.759],[-0.759,0],[0,0.759]],"o":[[-0.759,0],[0,0.759],[0.759,0],[0,-0.759]],"v":[[0,-1.375],[-1.375,0],[0,1.375],[1.375,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-12.406,36.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":8,"op":18,"st":-5,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Tick Mid Effect Sphere 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[100]},{"t":18,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[256,256,0],"to":[-1.481,3.734,0],"ti":[1.481,-3.734,0]},{"t":18,"s":[247.116,278.403,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[6.375,6.375],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-7.594,40.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":8,"op":18,"st":-5,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Tick Mid Effect Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[100]},{"t":18,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[256,256,0],"to":[3.251,2.768,0],"ti":[-3.251,-2.768,0]},{"t":18,"s":[275.506,272.609,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.484,0],[0,-1.484],[-1.484,0],[0,1.484]],"o":[[-1.484,0],[0,1.484],[1.484,0],[0,-1.484]],"v":[[0,-2.688],[-2.688,0],[0,2.688],[2.688,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-2.156,37.688],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":8,"op":18,"st":-5,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"Intro Effect Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":3,"s":[100]},{"t":11,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":3,"s":[55.247,114.922,0],"to":[-0.161,-1.899,0],"ti":[1.159,2.993,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":7,"s":[54.281,103.528,0],"to":[-1.159,-2.993,0],"ti":[0.998,1.094,0]},{"t":11,"s":[48.294,96.962,0]}],"ix":2},"a":{"a":0,"k":[-54.781,-49.094,0],"ix":1},"s":{"a":0,"k":[185.4,185.4,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[4.688,4.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-54.781,-49.094],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":3,"op":11,"st":-5,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"Intro Effect Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":3,"s":[100]},{"t":11,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":3,"s":[78.035,105.266,0],"to":[0.483,-1.996,0],"ti":[-1.642,2.8,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":7,"s":[80.932,93.292,0],"to":[1.642,-2.8,0],"ti":[-1.159,0.805,0]},{"t":11,"s":[87.885,88.464,0]}],"ix":2},"a":{"a":0,"k":[-54.781,-49.094,0],"ix":1},"s":{"a":0,"k":[185.4,185.4,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[4.688,4.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-54.781,-49.094],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":3,"op":11,"st":-5,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"Tick Thin Line","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[256,256,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-34.25,11],[-7,37.75],[35.5,-21]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":5,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":9,"s":[3]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[12]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":11,"s":[28]},{"t":12,"s":[57]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":5,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[22]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":9,"s":[43]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[77]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":11,"s":[100]},{"t":12,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":5,"op":12,"st":-5,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"Ball","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[32]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":3,"s":[32]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":5,"s":[45]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":6,"s":[47]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":7,"s":[-57]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":14,"s":[-57]},{"i":{"x":[0.583],"y":[0.795]},"o":{"x":[0.167],"y":[0]},"t":20,"s":[-57]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.417],"y":[-1.147]},"t":21,"s":[-104.5]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":22,"s":[-96]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":23,"s":[-53]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":24,"s":[-19]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":25,"s":[34]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":26,"s":[111]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":27,"s":[174]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":28,"s":[201]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":29,"s":[214]},{"t":30,"s":[226]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[34.486,166.197,0],"to":[5.794,-6.438,0],"ti":[-18.669,-10.429,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":3,"s":[69.248,127.572,0],"to":[18.669,10.429,0],"ti":[-22.016,-28.84,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":5,"s":[146.498,228.769,0],"to":[22.016,28.84,0],"ti":[-19.57,-8.755,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":6,"s":[201.346,300.612,0],"to":[19.57,8.755,0],"ti":[-17.381,13.004,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":7,"s":[263.918,281.299,0],"to":[17.381,-13.004,0],"ti":[-12.36,17.253,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[305.633,222.589,0],"to":[12.36,-17.253,0],"ti":[-12.875,17.381,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":9,"s":[338.078,177.784,0],"to":[12.875,-17.381,0],"ti":[-7.468,9.914,0]},{"i":{"x":0.667,"y":0.667},"o":{"x":0.333,"y":0.333},"t":13,"s":[382.883,118.302,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":14,"s":[382.883,118.302,0],"to":[10.557,9.399,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":15,"s":[382.883,118.302,0],"to":[10.557,9.399,0],"ti":[-21.91,-41.023,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":20,"s":[434.641,186.282,0],"to":[16.555,30.997,0],"ti":[-0.386,-0.772,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":22,"s":[451.056,263.146,0],"to":[0.386,0.772,0],"ti":[0,-1.416,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":23,"s":[395.436,388.291,0],"to":[0,1.416,0],"ti":[0.386,-0.644,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":24,"s":[300.419,445.456,0],"to":[-0.386,0.644,0],"ti":[1.288,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":25,"s":[136.649,407.603,0],"to":[-1.288,0,0],"ti":[1.288,1.545,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":26,"s":[84.891,170.446,0],"to":[-1.288,-1.545,0],"ti":[-1.03,0.772,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":27,"s":[248.661,66.158,0],"to":[1.03,-0.772,0],"ti":[-1.931,0.129,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":28,"s":[335.954,87.016,0],"to":[1.931,-0.129,0],"ti":[-0.129,-0.386,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":29,"s":[369.171,107.101,0],"to":[0.129,0.386,0],"ti":[-0.193,-0.064,0]},{"t":30,"s":[380.759,115.598,0]}],"ix":2},"a":{"a":0,"k":[-59.688,-42.062,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[309,309,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":3,"s":[309,309,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":5,"s":[302.82,250.29,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":6,"s":[358.44,213.21,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":7,"s":[358.44,213.21,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":9,"s":[284.28,213.21,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":13,"s":[244.11,244.11,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":14,"s":[244.11,244.11,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":20,"s":[244.11,244.11,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":22,"s":[342.99,244.11,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":23,"s":[342.99,210.12,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":24,"s":[342.99,222.48,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":25,"s":[373.89,207.03,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":26,"s":[373.89,207.03,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":27,"s":[315.18,176.13,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":28,"s":[216.3,117.42,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":29,"s":[163.77,86.52,100]},{"t":30,"s":[71.07,55.62,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[21.375,21.375],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-60.562,-43.562],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":30,"st":-5,"bm":0},{"ddd":0,"ind":12,"ty":4,"nm":"Tick Main","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[256.386,247.116,0],"ix":2},"a":{"a":0,"k":[0.125,-2.875,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-27.375,2.625],[-7.75,21.5],[27.625,-27.25]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":12,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":5,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":6,"s":[11]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":7,"s":[51]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":8,"s":[79]},{"t":11,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":5,"op":49,"st":-5,"bm":0},{"ddd":0,"ind":13,"ty":4,"nm":"Main Outer Line","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":40,"ix":10},"p":{"a":0,"k":[254.455,259.863,0],"ix":2},"a":{"a":0,"k":[-0.5,1.25,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[123.5,123.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":16,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":21,"s":[11]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":23,"s":[27]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":24,"s":[35]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":25,"s":[50]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":26,"s":[73]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":27,"s":[89]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":28,"s":[96]},{"t":29,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":7,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[98.384,97.558],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":16,"op":49,"st":-5,"bm":0},{"ddd":0,"ind":14,"ty":4,"nm":"Outer Thin Stroke","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":40,"ix":10},"p":{"a":0,"k":[254.455,259.863,0],"ix":2},"a":{"a":0,"k":[-0.5,1.25,0],"ix":1},"s":{"a":0,"k":[355.35,355.35,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[123.5,123.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":16,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":21,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":25,"s":[6]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":26,"s":[20]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":29,"s":[23]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":30,"s":[29]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":31,"s":[45]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":32,"s":[69]},{"t":35,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":16,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":21,"s":[11]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":25,"s":[29]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":28,"s":[50]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":29,"s":[57]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":31,"s":[81]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":32,"s":[100]},{"t":35,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[98.384,97.558],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":16,"op":35,"st":-5,"bm":0}]}]'), ze = [{ ddd: 0, ind: 1, ty: 3, nm: "Null 1", sr: 1, ks: { o: { a: 0, k: 0, ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [256, 256, 0], ix: 2 }, a: { a: 0, k: [0, 0, 0], ix: 1 }, s: { a: 0, k: [309, 309, 100], ix: 6 } }, ao: 0, ip: 0, op: 54, st: 0, bm: 0 }, { ddd: 0, ind: 2, ty: 0, nm: "Pre-comp 1", refId: "comp_0", sr: 1, ks: { o: { a: 0, k: 100, ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [256, 256, 0], ix: 2 }, a: { a: 0, k: [256, 256, 0], ix: 1 }, s: { a: 0, k: [100, 100, 100], ix: 6 } }, ao: 0, ef: [{ ty: 21, nm: "Fill", np: 9, mn: "ADBE Fill", ix: 1, en: 1, ef: [{ ty: 10, nm: "Fill Mask", mn: "ADBE Fill-0001", ix: 1, v: { a: 0, k: 0, ix: 1 } }, { ty: 7, nm: "All Masks", mn: "ADBE Fill-0007", ix: 2, v: { a: 0, k: 0, ix: 2 } }, { ty: 2, nm: "Color", mn: "ADBE Fill-0002", ix: 3, v: { a: 0, k: [0.289119571447, 0.784313738346, 0.731881439686, 1], ix: 3 } }, { ty: 7, nm: "Invert", mn: "ADBE Fill-0006", ix: 4, v: { a: 0, k: 0, ix: 4 } }, { ty: 0, nm: "Horizontal Feather", mn: "ADBE Fill-0003", ix: 5, v: { a: 0, k: 0, ix: 5 } }, { ty: 0, nm: "Vertical Feather", mn: "ADBE Fill-0004", ix: 6, v: { a: 0, k: 0, ix: 6 } }, { ty: 0, nm: "Opacity", mn: "ADBE Fill-0005", ix: 7, v: { a: 0, k: 1, ix: 7 } }] }], w: 512, h: 512, ip: 5, op: 54, st: 5, bm: 0 }], qe = [], Je = {
|
|
@@ -205,58 +205,58 @@ const _e = "4.8.0", Ue = { g: "LottieFiles AE 3.5.7", a: "", k: "", d: "", tc: "
|
|
|
205
205
|
assets: Qe,
|
|
206
206
|
layers: ze,
|
|
207
207
|
markers: qe
|
|
208
|
-
},
|
|
209
|
-
gradienttext:
|
|
210
|
-
gradientbutton:
|
|
208
|
+
}, Ke = "_gradienttext_uc65n_6", Ze = "_gradientbutton_uc65n_19", st = {
|
|
209
|
+
gradienttext: Ke,
|
|
210
|
+
gradientbutton: Ze
|
|
211
211
|
};
|
|
212
212
|
function Xe({ handleBack: n }) {
|
|
213
|
-
var d, g, N, S,
|
|
214
|
-
const
|
|
213
|
+
var d, g, N, S, u, y, A;
|
|
214
|
+
const o = c((I) => I.gradient), t = c((I) => I.persist), e = c((I) => I.configuration), i = t == null ? void 0 : t.stepData.stepType, a = ((t == null ? void 0 : t.txnHashObj) || [])[(d = t == null ? void 0 : t.stepData) == null ? void 0 : d.stepId] || {}, m = i === "bridge" ? (a == null ? void 0 : a.destTxnHash) || (a == null ? void 0 : a.srcTxnHash) : (a == null ? void 0 : a.srcTxnHash) || "", p = (g = t == null ? void 0 : t.historyData) == null ? void 0 : g.finalTxnHash, l = m || p || "", k = i === "bridge" ? (a == null ? void 0 : a.destTxnUrl) || (a == null ? void 0 : a.srcTxnUrl) : (a == null ? void 0 : a.srcTxnUrl) || "", h = (N = t == null ? void 0 : t.historyData) == null ? void 0 : N.finalTxnUrl, C = k || h || "", B = t.toCoin || {}, v = t.route || {}, U = t.toChain || {};
|
|
215
215
|
let s = ((S = t == null ? void 0 : t.statusData) == null ? void 0 : S.outputAmountDisplay) || 0, x = (Number(s) ? s : Number(s)) || (v == null ? void 0 : v.outputAmountDisplay) || 0;
|
|
216
|
-
return /* @__PURE__ */
|
|
217
|
-
/* @__PURE__ */
|
|
216
|
+
return /* @__PURE__ */ f("div", { className: "bw-absolute bw-bg-background-container bw-border-t bw-pt-3 bw-border-border-primary bw-w-full bw-flex bw-flex-col bw-z-50 bw-items-center bw-justify-center bw-bottom-0", children: [
|
|
217
|
+
/* @__PURE__ */ f(
|
|
218
218
|
"div",
|
|
219
219
|
{
|
|
220
220
|
style: {
|
|
221
|
-
boxShadow: e && e.customTheme && ((
|
|
221
|
+
boxShadow: e && e.customTheme && ((y = (u = e.customTheme) == null ? void 0 : u.shadow) == null ? void 0 : y.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
|
222
222
|
},
|
|
223
223
|
className: "bw-flex bw-items-center bw-rounded-xl bw-w-full bw-justify-between bw-bg-background-container bw-border bw-border-border-primary bw-p-2",
|
|
224
224
|
children: [
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ f("div", { children: [
|
|
226
|
+
/* @__PURE__ */ r(
|
|
227
227
|
"p",
|
|
228
228
|
{
|
|
229
229
|
style: { ...e.gradientStyle, backgroundClip: "text" },
|
|
230
|
-
className: `bw-text-lg ${
|
|
230
|
+
className: `bw-text-lg ${o || `${(A = e == null ? void 0 : e.gradientStyle) != null && A.background ? "" : "bw-bg-gradient-to-l bw-from-[#2CFFE4] bw-to-[#A45EFF]"}`} bw-bg-clip-text bw-font-medium bw-text-transparent`,
|
|
231
231
|
children: "Transaction Successful"
|
|
232
232
|
}
|
|
233
233
|
),
|
|
234
|
-
/* @__PURE__ */
|
|
235
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ f("p", { className: "bw-text-2xl bw-font-medium bw-text-text-primary", children: [
|
|
235
|
+
/* @__PURE__ */ r(pt, { value: x, decimal: 10 }),
|
|
236
236
|
" ",
|
|
237
237
|
B.symbol
|
|
238
238
|
] }),
|
|
239
|
-
/* @__PURE__ */
|
|
240
|
-
/* @__PURE__ */
|
|
241
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ r("p", { className: "bw-text-sm bw-mb-2 bw-font-normal bw-text-text-secondary", children: `Received on ${U.name || U.blockchain} chain` }),
|
|
240
|
+
/* @__PURE__ */ f("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
|
241
|
+
/* @__PURE__ */ r("p", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: `Tx id: ${l ? `${l.substring(0, 5)}...${l.substring(
|
|
242
242
|
l.length - 5,
|
|
243
243
|
l.length
|
|
244
244
|
)}` : ""}` }),
|
|
245
|
-
/* @__PURE__ */
|
|
246
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ r("div", { className: "bw-cursor-pointer", children: /* @__PURE__ */ r(kt, { txnHash: l, children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(gt, { fill: "var(--tw-text-secondary)" }) }) }) }),
|
|
246
|
+
/* @__PURE__ */ r("a", { href: C, target: "_blank", children: /* @__PURE__ */ r("div", { className: "bw-cursor-pointer", children: /* @__PURE__ */ r(be, { fill: "var(--tw-text-secondary)" }) }) })
|
|
247
247
|
] })
|
|
248
248
|
] }),
|
|
249
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ r("div", { className: " bw-flex bw-justify-center bw-items-center bw-w-[105px] bw-h-[105px]", children: /* @__PURE__ */ r(me, { animationData: Je, loop: !0 }) })
|
|
250
250
|
]
|
|
251
251
|
}
|
|
252
252
|
),
|
|
253
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ r(
|
|
254
254
|
"button",
|
|
255
255
|
{
|
|
256
256
|
onClick: n,
|
|
257
257
|
style: { ...e == null ? void 0 : e.gradientStyle },
|
|
258
258
|
className: `bw-w-full ${st.gradientbutton} bw-rounded-sm bw-h-[50px] bw-p-[3px] bw-mt-3 bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-50 bw-text-2xl bw-font-bold bw-text-text-primary`,
|
|
259
|
-
children: /* @__PURE__ */
|
|
259
|
+
children: /* @__PURE__ */ r(
|
|
260
260
|
"div",
|
|
261
261
|
{
|
|
262
262
|
onClick: n,
|
|
@@ -269,30 +269,30 @@ function Xe({ handleBack: n }) {
|
|
|
269
269
|
] });
|
|
270
270
|
}
|
|
271
271
|
const Rt = ht.createContext(!1);
|
|
272
|
-
function Ye({ disableButton: n, handleStep:
|
|
273
|
-
var
|
|
272
|
+
function Ye({ disableButton: n, handleStep: o, txnProcessType: t, txnTextObj: e }) {
|
|
273
|
+
var h, C, B;
|
|
274
274
|
const i = c((v) => v.persist), b = c((v) => v.configuration);
|
|
275
275
|
c((v) => v.cosmosChainIds);
|
|
276
276
|
const a = c((v) => v.fromChain);
|
|
277
|
-
let
|
|
278
|
-
const { data:
|
|
277
|
+
let m = n ? {} : { ...b == null ? void 0 : b.gradientStyle };
|
|
278
|
+
const { data: p, isLoading: l } = Lt({
|
|
279
279
|
chainId: [a.chainId],
|
|
280
280
|
multiChain: !0
|
|
281
281
|
});
|
|
282
|
-
let
|
|
283
|
-
return !
|
|
282
|
+
let k = ((h = i == null ? void 0 : i.fromChain) == null ? void 0 : h.networkType) == "cosmos" ? l : !1;
|
|
283
|
+
return !ot.isEmpty(i == null ? void 0 : i.stepData) && !k ? /* @__PURE__ */ r(
|
|
284
284
|
"button",
|
|
285
285
|
{
|
|
286
286
|
disabled: n || !e,
|
|
287
287
|
className: `bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-full bw-rounded-sm ${n ? "bw-bg-border-primary bw-p-[1px]" : st.gradientbutton + " bw-p-[3px]"}`,
|
|
288
|
-
onClick:
|
|
288
|
+
onClick: o,
|
|
289
289
|
style: {
|
|
290
|
-
...
|
|
291
|
-
boxShadow: b && b.customTheme && ((B = (
|
|
290
|
+
...m,
|
|
291
|
+
boxShadow: b && b.customTheme && ((B = (C = b.customTheme) == null ? void 0 : C.shadow) == null ? void 0 : B.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
|
292
292
|
},
|
|
293
|
-
children: /* @__PURE__ */
|
|
294
|
-
n || !e && /* @__PURE__ */
|
|
295
|
-
/* @__PURE__ */
|
|
293
|
+
children: /* @__PURE__ */ f("div", { className: "bw-bg-background-container bw-w-full bw-h-full bw-flex bw-items-center bw-justify-center", children: [
|
|
294
|
+
n || !e && /* @__PURE__ */ r("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ r(ie, { size: 22, thickness: 5, color: "inherit" }) }),
|
|
295
|
+
/* @__PURE__ */ r(
|
|
296
296
|
"p",
|
|
297
297
|
{
|
|
298
298
|
className: ` ${n ? "bw-text-text-secondary bw-font-normal" : "bw-text-text-primary bw-font-bold"} bw-text-2xl `,
|
|
@@ -301,42 +301,42 @@ function Ye({ disableButton: n, handleStep: r, txnProcessType: t, txnTextObj: e
|
|
|
301
301
|
)
|
|
302
302
|
] })
|
|
303
303
|
}
|
|
304
|
-
) : /* @__PURE__ */
|
|
304
|
+
) : /* @__PURE__ */ r(wt, { className: "bw-bg-background-secondary bw-rounded-sm bw-w-full", animation: "wave", height: 50 });
|
|
305
305
|
}
|
|
306
|
-
function Wt({ errorText: n, heading:
|
|
306
|
+
function Wt({ errorText: n, heading: o = "Transaction Failed" }) {
|
|
307
307
|
const t = c((e) => e.persist);
|
|
308
|
-
return /* @__PURE__ */
|
|
309
|
-
/* @__PURE__ */
|
|
310
|
-
/* @__PURE__ */
|
|
311
|
-
/* @__PURE__ */
|
|
312
|
-
/* @__PURE__ */
|
|
313
|
-
/* @__PURE__ */
|
|
314
|
-
/* @__PURE__ */
|
|
308
|
+
return /* @__PURE__ */ f(L, { children: [
|
|
309
|
+
/* @__PURE__ */ r("p", { className: "bw-text-lg bw-font-medium bw-text-text-primary bw-mb-1 bw-text-center", children: o }),
|
|
310
|
+
/* @__PURE__ */ f("div", { className: "bw-w-full bw-mb-2 ", children: [
|
|
311
|
+
/* @__PURE__ */ r("p", { className: "bw-text-sm bw-font-bold bw-text-text-primary ", children: "Route Id" }),
|
|
312
|
+
/* @__PURE__ */ f("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
|
313
|
+
/* @__PURE__ */ r("p", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: t == null ? void 0 : t.routeId }),
|
|
314
|
+
/* @__PURE__ */ r(kt, { txnHash: t == null ? void 0 : t.routeId, children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(gt, { fill: "var(--tw-text-secondary)" }) }) })
|
|
315
315
|
] })
|
|
316
316
|
] }),
|
|
317
|
-
/* @__PURE__ */
|
|
318
|
-
n != null && n.length ? /* @__PURE__ */
|
|
319
|
-
/* @__PURE__ */
|
|
317
|
+
/* @__PURE__ */ f("div", { className: "bw-text-left bw-w-full bw-mb-2 ", children: [
|
|
318
|
+
n != null && n.length ? /* @__PURE__ */ r("p", { className: "bw-text-sm bw-font-bold bw-text-text-primary ", children: "Error" }) : /* @__PURE__ */ r(L, {}),
|
|
319
|
+
/* @__PURE__ */ r("div", { className: "bw-text-left bw-max-h-[60px] bw-overflow-auto ", children: /* @__PURE__ */ r("p", { style: { wordBreak: "break-all" }, className: "bw-text-xs bw-leading-5 bw-pr-2 bw-w-full md:bw-max-w-[420px] bw-font-normal bw-mb-2 bw-text-left bw-text-text-redtext", children: n }) })
|
|
320
320
|
] })
|
|
321
321
|
] });
|
|
322
322
|
}
|
|
323
|
-
function t0({ handleGoBack: n, errorText:
|
|
324
|
-
var
|
|
325
|
-
const b = c((
|
|
326
|
-
return /* @__PURE__ */
|
|
327
|
-
/* @__PURE__ */
|
|
328
|
-
a.isHistory ? /* @__PURE__ */
|
|
329
|
-
/* @__PURE__ */
|
|
323
|
+
function t0({ handleGoBack: n, errorText: o, txnTextObj: t, handleExeTxn: e, handleDisable: i }) {
|
|
324
|
+
var m, p, l, k;
|
|
325
|
+
const b = c((h) => h.configuration), a = c((h) => h.persist);
|
|
326
|
+
return /* @__PURE__ */ f("div", { className: "bw-absolute bw-bg-background-container bw-border-t bw-border-border-primary bw-pt-3 bw-w-full bw-bottom-0 bw-flex bw-flex-col bw-justify-center bw-items-center", children: [
|
|
327
|
+
/* @__PURE__ */ r(Wt, { errorText: o }),
|
|
328
|
+
a.isHistory ? /* @__PURE__ */ r(L, {}) : /* @__PURE__ */ f("div", { className: "bw-w-full bw-flex bw-items-center bw-gap-x-2", children: [
|
|
329
|
+
/* @__PURE__ */ r(
|
|
330
330
|
"button",
|
|
331
331
|
{
|
|
332
332
|
style: {
|
|
333
|
-
boxShadow: b && b.customTheme && ((
|
|
333
|
+
boxShadow: b && b.customTheme && ((p = (m = b.customTheme) == null ? void 0 : m.shadow) == null ? void 0 : p.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
|
334
334
|
},
|
|
335
335
|
className: "bw-border bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-[50%] bw-bg-background-container bw-border-border-primary",
|
|
336
336
|
onClick: () => {
|
|
337
337
|
n();
|
|
338
338
|
},
|
|
339
|
-
children: /* @__PURE__ */
|
|
339
|
+
children: /* @__PURE__ */ r(
|
|
340
340
|
"p",
|
|
341
341
|
{
|
|
342
342
|
style: {
|
|
@@ -349,18 +349,18 @@ function t0({ handleGoBack: n, errorText: r, txnTextObj: t, handleExeTxn: e, han
|
|
|
349
349
|
)
|
|
350
350
|
}
|
|
351
351
|
),
|
|
352
|
-
/* @__PURE__ */
|
|
352
|
+
/* @__PURE__ */ r(
|
|
353
353
|
"button",
|
|
354
354
|
{
|
|
355
355
|
style: {
|
|
356
356
|
...b == null ? void 0 : b.gradientStyle,
|
|
357
|
-
boxShadow: b && b.customTheme && ((
|
|
357
|
+
boxShadow: b && b.customTheme && ((k = (l = b.customTheme) == null ? void 0 : l.shadow) == null ? void 0 : k.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
|
358
358
|
},
|
|
359
359
|
className: ` bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-[50%] ${st.gradientbutton} bw-rounded-sm bw-p-[3px] `,
|
|
360
360
|
onClick: () => {
|
|
361
361
|
e(), i(!0);
|
|
362
362
|
},
|
|
363
|
-
children: /* @__PURE__ */
|
|
363
|
+
children: /* @__PURE__ */ r("div", { className: " bw-bg-background-container bw-w-full bw-h-full bw-flex bw-items-center bw-justify-center", children: /* @__PURE__ */ r(
|
|
364
364
|
"p",
|
|
365
365
|
{
|
|
366
366
|
style: {
|
|
@@ -376,30 +376,30 @@ function t0({ handleGoBack: n, errorText: r, txnTextObj: t, handleExeTxn: e, han
|
|
|
376
376
|
] })
|
|
377
377
|
] });
|
|
378
378
|
}
|
|
379
|
-
function e0({ txnTextObj: n, txnProcessType:
|
|
380
|
-
var b, a,
|
|
381
|
-
const i = c((
|
|
382
|
-
return /* @__PURE__ */
|
|
383
|
-
/* @__PURE__ */
|
|
384
|
-
/* @__PURE__ */
|
|
385
|
-
/* @__PURE__ */
|
|
379
|
+
function e0({ txnTextObj: n, txnProcessType: o, errorText: t, allSteps: e }) {
|
|
380
|
+
var b, a, m;
|
|
381
|
+
const i = c((p) => p.persist);
|
|
382
|
+
return /* @__PURE__ */ f(L, { children: [
|
|
383
|
+
/* @__PURE__ */ r("p", { className: "bw-text-lg bw-font-medium bw-mb-1 bw-text-text-primary", children: i != null && i.stepStatus && (i != null && i.stepStatus[e == null ? void 0 : e.currentStep]) ? ((a = n == null ? void 0 : n.status) == null ? void 0 : a[(b = i == null ? void 0 : i.stepStatus[e == null ? void 0 : e.currentStep]) == null ? void 0 : b.status]) || (n == null ? void 0 : n[(m = i == null ? void 0 : i.stepStatus[e == null ? void 0 : e.currentStep]) == null ? void 0 : m.type]) : "" }),
|
|
384
|
+
/* @__PURE__ */ r("p", { className: "bw-text-sm bw-text-center bw-font-medium bw-mb-4 bw-text-text-secondary", children: n == null ? void 0 : n[o == "process" ? "processingDescription" : o == "loading" ? "loadingDescription" : "preDescription"] }),
|
|
385
|
+
/* @__PURE__ */ r("p", { className: "bw-text-xs bw-font-normal bw-text-center bw-text-text-redtext ", children: t })
|
|
386
386
|
] });
|
|
387
387
|
}
|
|
388
|
-
function n0({ i: n, item:
|
|
389
|
-
var
|
|
390
|
-
const t = c((
|
|
391
|
-
return a != null && a.length ? /* @__PURE__ */
|
|
388
|
+
function n0({ i: n, item: o }) {
|
|
389
|
+
var m, p, l, k;
|
|
390
|
+
const t = c((h) => h.persist), e = (t == null ? void 0 : t.txnHashObj) || [], i = (p = (m = e[o.stepId]) == null ? void 0 : m.destTxnUrl) != null && p.length ? (l = e[o.stepId]) == null ? void 0 : l.destTxnUrl : (k = e[o.stepId]) == null ? void 0 : k.srcTxnUrl, b = o.destTxnUrl || o.srcTxnUrl, a = i || b;
|
|
391
|
+
return a != null && a.length ? /* @__PURE__ */ r("a", { target: "_blank", className: "bw-relative bw-z-50 bw-mt-1", href: a, children: /* @__PURE__ */ r(Pe, { children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(je, { fill: "var(--tw-text-primary)" }) }) }) }) : /* @__PURE__ */ r(L, {});
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
var b, a,
|
|
395
|
-
const { isErrorMessage: t, handleErrorMessage: e } =
|
|
396
|
-
return i == null || i.allSteps, /* @__PURE__ */
|
|
397
|
-
/* @__PURE__ */
|
|
398
|
-
i != null && i.stepStatus && (i != null && i.stepStatus[
|
|
393
|
+
function o0({ item: n, i: o }) {
|
|
394
|
+
var b, a, m, p, l, k, h, C, B, v, U;
|
|
395
|
+
const { isErrorMessage: t, handleErrorMessage: e } = K(lt), i = c((s) => s.persist);
|
|
396
|
+
return i == null || i.allSteps, /* @__PURE__ */ f("div", { children: [
|
|
397
|
+
/* @__PURE__ */ r("h1", { className: ` ${((a = (b = n == null ? void 0 : n.texts) == null ? void 0 : b.heading) == null ? void 0 : a.length) > 34 ? "bw-text-base" : "bw-text-lg"} ${((m = i == null ? void 0 : i.allSteps) == null ? void 0 : m.currentStep) == o ? "bw-text-text-primary" : "bw-text-text-secondary"} bw-leading-none bw-mt-[-2px]`, children: (p = n == null ? void 0 : n.texts) == null ? void 0 : p.heading }),
|
|
398
|
+
i != null && i.stepStatus && (i != null && i.stepStatus[o]) ? /* @__PURE__ */ r(L, { children: /* @__PURE__ */ r("p", { className: "bw-text-sm bw-text-text-secondary bw-ml-3 bw-mt-1", children: t && ((l = i == null ? void 0 : i.stepStatus[o]) == null ? void 0 : l.status) !== "failed" && o == ((k = i == null ? void 0 : i.allSteps) == null ? void 0 : k.currentStep) ? "Failed" : ((B = (h = n == null ? void 0 : n.texts) == null ? void 0 : h.status) == null ? void 0 : B[(C = i == null ? void 0 : i.stepStatus[o]) == null ? void 0 : C.status]) || ((U = n == null ? void 0 : n.texts) == null ? void 0 : U[(v = i == null ? void 0 : i.stepStatus[o]) == null ? void 0 : v.type]) }) }) : o == 0 ? /* @__PURE__ */ r("div", { className: "bw-h-[20px] bw-mt-[4px] bw-w-full", children: /* @__PURE__ */ r(wt, { className: "bw-bg-background-secondary bw-rounded-lg bw-w-full", animation: "wave" }) }) : /* @__PURE__ */ r(L, {})
|
|
399
399
|
] });
|
|
400
400
|
}
|
|
401
|
-
function Ft({ spinnerColor: n, stopColor:
|
|
402
|
-
return /* @__PURE__ */
|
|
401
|
+
function Ft({ spinnerColor: n, stopColor: o }) {
|
|
402
|
+
return /* @__PURE__ */ f(
|
|
403
403
|
"svg",
|
|
404
404
|
{
|
|
405
405
|
width: "17",
|
|
@@ -408,7 +408,7 @@ function Ft({ spinnerColor: n, stopColor: r }) {
|
|
|
408
408
|
fill: "none",
|
|
409
409
|
xmlns: "http://www.w3.org/2000/svg",
|
|
410
410
|
children: [
|
|
411
|
-
/* @__PURE__ */
|
|
411
|
+
/* @__PURE__ */ r(
|
|
412
412
|
"path",
|
|
413
413
|
{
|
|
414
414
|
d: "M5.23438 8.90997L7.625 11.1346L12.0948 5.18945",
|
|
@@ -416,7 +416,7 @@ function Ft({ spinnerColor: n, stopColor: r }) {
|
|
|
416
416
|
"stroke-width": "1.5"
|
|
417
417
|
}
|
|
418
418
|
),
|
|
419
|
-
/* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ r(
|
|
420
420
|
"path",
|
|
421
421
|
{
|
|
422
422
|
d: "M16.0563 13.3423C14.5038 15.802 11.778 17.4336 8.67473 17.4336C5.16232 17.4336 2.1335 15.3435 0.742188 12.3281",
|
|
@@ -424,7 +424,7 @@ function Ft({ spinnerColor: n, stopColor: r }) {
|
|
|
424
424
|
"stroke-width": "0.25"
|
|
425
425
|
}
|
|
426
426
|
),
|
|
427
|
-
/* @__PURE__ */
|
|
427
|
+
/* @__PURE__ */ r(
|
|
428
428
|
"path",
|
|
429
429
|
{
|
|
430
430
|
d: "M16.0563 13.3423C14.5038 15.802 11.778 17.4336 8.67473 17.4336C5.16232 17.4336 2.1335 15.3435 0.742188 12.3281",
|
|
@@ -432,8 +432,8 @@ function Ft({ spinnerColor: n, stopColor: r }) {
|
|
|
432
432
|
"stroke-width": "0.25"
|
|
433
433
|
}
|
|
434
434
|
),
|
|
435
|
-
/* @__PURE__ */
|
|
436
|
-
/* @__PURE__ */
|
|
435
|
+
/* @__PURE__ */ r("circle", { cx: "8.68848", cy: "8.7041", r: "7.48535", stroke: "#8A8F8E" }),
|
|
436
|
+
/* @__PURE__ */ r("defs", { children: /* @__PURE__ */ f(
|
|
437
437
|
"linearGradient",
|
|
438
438
|
{
|
|
439
439
|
id: "paint0_linear_2764_26377",
|
|
@@ -443,8 +443,8 @@ function Ft({ spinnerColor: n, stopColor: r }) {
|
|
|
443
443
|
y2: "7.29133",
|
|
444
444
|
gradientUnits: "userSpaceOnUse",
|
|
445
445
|
children: [
|
|
446
|
-
/* @__PURE__ */
|
|
447
|
-
/* @__PURE__ */
|
|
446
|
+
/* @__PURE__ */ r("stop", { "stop-color": n || "#2CFFE4" }),
|
|
447
|
+
/* @__PURE__ */ r("stop", { offset: "1", "stop-color": o || "#A45EFF" })
|
|
448
448
|
]
|
|
449
449
|
}
|
|
450
450
|
) })
|
|
@@ -452,8 +452,8 @@ function Ft({ spinnerColor: n, stopColor: r }) {
|
|
|
452
452
|
}
|
|
453
453
|
);
|
|
454
454
|
}
|
|
455
|
-
const
|
|
456
|
-
v:
|
|
455
|
+
const r0 = "4.8.0", s0 = { g: "LottieFiles AE 3.5.7", a: "", k: "", d: "", tc: "" }, i0 = 25, a0 = 0, l0 = 51, c0 = 512, x0 = 512, d0 = "Comp 1", b0 = 0, m0 = [], u0 = [{ ddd: 0, ind: 1, ty: 4, nm: "Shape Layer 1", sr: 1, ks: { o: { a: 0, k: 100, ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [256, 256, 0], ix: 2 }, a: { a: 0, k: [-7, -8, 0], ix: 1 }, s: { a: 0, k: [100, 100, 100], ix: 6 } }, ao: 0, shapes: [{ ty: "gr", it: [{ d: 1, ty: "el", s: { a: 0, k: [214, 214], ix: 2 }, p: { a: 0, k: [0, 0], ix: 3 }, nm: "Ellipse Path 1", mn: "ADBE Vector Shape - Ellipse", hd: !1 }, { ty: "fl", c: { a: 0, k: [1, 1, 1, 1], ix: 4 }, o: { a: 0, k: 100, ix: 5 }, r: 1, bm: 2, nm: "Fill 1", mn: "ADBE Vector Graphic - Fill", hd: !1 }, { ty: "tr", p: { a: 0, k: [-7, -8], ix: 2 }, a: { a: 0, k: [0, 0], ix: 1 }, s: { a: 0, k: [100, 100], ix: 3 }, r: { a: 0, k: 0, ix: 6 }, o: { a: 0, k: 100, ix: 7 }, sk: { a: 0, k: 0, ix: 4 }, sa: { a: 0, k: 0, ix: 5 }, nm: "Transform" }], nm: "Ellipse 1", np: 3, cix: 2, bm: 0, ix: 1, mn: "ADBE Vector Group", hd: !1 }], ip: 0, op: 51, st: 0, bm: 0 }, { ddd: 0, ind: 2, ty: 4, nm: "Shape Layer 2", sr: 1, ks: { o: { a: 1, k: [{ i: { x: [0.667], y: [1] }, o: { x: [0.333], y: [0] }, t: 11, s: [100] }, { i: { x: [0.667], y: [1] }, o: { x: [0.333], y: [0] }, t: 25, s: [0] }, { i: { x: [0.667], y: [1] }, o: { x: [0.333], y: [0] }, t: 37, s: [100] }, { t: 51, s: [0] }], ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [256, 256, 0], ix: 2 }, a: { a: 0, k: [-7, -8, 0], ix: 1 }, s: { a: 1, k: [{ i: { x: [0.667, 0.667, 0.667], y: [1, 1, 1] }, o: { x: [0.333, 0.333, 0.333], y: [0, 0, 0] }, t: 0, s: [59, 59, 100] }, { i: { x: [0.667, 0.667, 0.667], y: [1, 1, 1] }, o: { x: [0.333, 0.333, 0.333], y: [0, 0, 0] }, t: 25, s: [228, 228, 100] }, { i: { x: [0.667, 0.667, 0.667], y: [1, 1, 1] }, o: { x: [0.333, 0.333, 0.333], y: [0, 0, 0] }, t: 26, s: [59, 59, 100] }, { t: 51, s: [228, 228, 100] }], ix: 6 } }, ao: 0, shapes: [{ ty: "gr", it: [{ d: 1, ty: "el", s: { a: 0, k: [214, 214], ix: 2 }, p: { a: 0, k: [0, 0], ix: 3 }, nm: "Ellipse Path 1", mn: "ADBE Vector Shape - Ellipse", hd: !1 }, { ty: "fl", c: { a: 0, k: [1, 1, 1, 1], ix: 4 }, o: { a: 0, k: 100, ix: 5 }, r: 1, bm: 2, nm: "Fill 1", mn: "ADBE Vector Graphic - Fill", hd: !1 }, { ty: "tr", p: { a: 0, k: [-7, -8], ix: 2 }, a: { a: 0, k: [0, 0], ix: 1 }, s: { a: 0, k: [100, 100], ix: 3 }, r: { a: 0, k: 0, ix: 6 }, o: { a: 0, k: 100, ix: 7 }, sk: { a: 0, k: 0, ix: 4 }, sa: { a: 0, k: 0, ix: 5 }, nm: "Transform" }], nm: "Ellipse 1", np: 3, cix: 2, bm: 0, ix: 1, mn: "ADBE Vector Group", hd: !1 }], ip: 0, op: 51, st: 0, bm: 0 }], w0 = [], p0 = {
|
|
456
|
+
v: r0,
|
|
457
457
|
meta: s0,
|
|
458
458
|
fr: i0,
|
|
459
459
|
ip: a0,
|
|
@@ -467,48 +467,48 @@ const o0 = "4.8.0", s0 = { g: "LottieFiles AE 3.5.7", a: "", k: "", d: "", tc: "
|
|
|
467
467
|
markers: w0
|
|
468
468
|
};
|
|
469
469
|
function h0() {
|
|
470
|
-
const n = mt(null),
|
|
470
|
+
const n = mt(null), o = c((t) => t.configuration);
|
|
471
471
|
return G(() => {
|
|
472
472
|
var e, i;
|
|
473
473
|
const t = ae.loadAnimation({
|
|
474
474
|
container: n.current,
|
|
475
475
|
animationData: we.flatten(
|
|
476
|
-
(e =
|
|
476
|
+
(e = o == null ? void 0 : o.gradientStyle) != null && e.spinnerColor ? (i = o == null ? void 0 : o.gradientStyle) == null ? void 0 : i.spinnerColor : "#2CFFE4",
|
|
477
477
|
p0
|
|
478
478
|
)
|
|
479
479
|
});
|
|
480
480
|
return () => t.destroy();
|
|
481
|
-
}, []), /* @__PURE__ */
|
|
481
|
+
}, []), /* @__PURE__ */ r("div", { style: { width: "100%", height: "100%" }, ref: n });
|
|
482
482
|
}
|
|
483
|
-
function y0({ allSteps: n, disableButton:
|
|
484
|
-
var
|
|
485
|
-
const i = c((v) => v.configuration), { txnupdate: b } = Gt, { isErrorMessage: a } =
|
|
486
|
-
return /* @__PURE__ */
|
|
487
|
-
(n == null ? void 0 : n.currentStep) < t ? /* @__PURE__ */
|
|
483
|
+
function y0({ allSteps: n, disableButton: o, i: t, arr: e }) {
|
|
484
|
+
var k, h, C, B;
|
|
485
|
+
const i = c((v) => v.configuration), { txnupdate: b } = Gt, { isErrorMessage: a } = K(lt), m = c((v) => v.persist), p = m == null ? void 0 : m.historyData, l = (p == null ? void 0 : p.currentStepStatus) || "";
|
|
486
|
+
return /* @__PURE__ */ f("div", { className: "bw-w-[18px] bw-min-h-full bw-relative bw-flex bw-flex-col bw-justify-center bw-items-center ", children: [
|
|
487
|
+
(n == null ? void 0 : n.currentStep) < t ? /* @__PURE__ */ r("div", { className: "bw-w-[18px] bw-rounded-[50%] bw-h-[18px] bw-bg-background-container bw-border bw-border-border-primary " }) : (n == null ? void 0 : n.currentStep) == t ? o ? /* @__PURE__ */ r(L, { children: /* @__PURE__ */ r("div", { className: " bw-w-[18px] bw-h-[18px] ", children: /* @__PURE__ */ r(pe, {}) }) }) : a ? (
|
|
488
488
|
// <CloseIcon width={18} height={18} fill={"var(--tw-text-primary)"} />
|
|
489
|
-
/* @__PURE__ */
|
|
490
|
-
) : l == "success" ? /* @__PURE__ */
|
|
489
|
+
/* @__PURE__ */ r("img", { src: b, width: 27, height: 27, alt: "img" })
|
|
490
|
+
) : l == "success" ? /* @__PURE__ */ r(
|
|
491
491
|
Ft,
|
|
492
492
|
{
|
|
493
|
-
spinnerColor: (
|
|
494
|
-
stopColor: (
|
|
493
|
+
spinnerColor: (k = i == null ? void 0 : i.gradientStyle) == null ? void 0 : k.spinnerColor,
|
|
494
|
+
stopColor: (h = i == null ? void 0 : i.gradientStyle) == null ? void 0 : h.stopColor
|
|
495
495
|
}
|
|
496
|
-
) : l == "failed" ? /* @__PURE__ */
|
|
496
|
+
) : l == "failed" ? /* @__PURE__ */ r("img", { src: b, width: 27, height: 27, alt: "img" }) : /* @__PURE__ */ r("div", { className: "bw-w-[18px] bw-h-[18px]", children: /* @__PURE__ */ r(h0, {}) }) : /* @__PURE__ */ r(
|
|
497
497
|
Ft,
|
|
498
498
|
{
|
|
499
|
-
spinnerColor: (
|
|
499
|
+
spinnerColor: (C = i == null ? void 0 : i.gradientStyle) == null ? void 0 : C.spinnerColor,
|
|
500
500
|
stopColor: (B = i == null ? void 0 : i.gradientStyle) == null ? void 0 : B.stopColor
|
|
501
501
|
}
|
|
502
502
|
),
|
|
503
|
-
t !== e.length - 1 ? /* @__PURE__ */
|
|
503
|
+
t !== e.length - 1 ? /* @__PURE__ */ r(
|
|
504
504
|
"div",
|
|
505
505
|
{
|
|
506
506
|
className: "bw-h-[30px] bw-absolute bw-w-[1px] bw-bottom-[-200%] bw-bg-background-secondary"
|
|
507
507
|
}
|
|
508
|
-
) : /* @__PURE__ */
|
|
508
|
+
) : /* @__PURE__ */ r(L, {})
|
|
509
509
|
] });
|
|
510
510
|
}
|
|
511
|
-
const f0 = "_container_1e7nb_1", k0 = "_dash_1e7nb_9", g0 = "_uno_1e7nb_17", S0 = "_dos_1e7nb_23", T0 = "_tres_1e7nb_29", v0 = "_cuatro_1e7nb_35",
|
|
511
|
+
const f0 = "_container_1e7nb_1", k0 = "_dash_1e7nb_9", g0 = "_uno_1e7nb_17", S0 = "_dos_1e7nb_23", T0 = "_tres_1e7nb_29", v0 = "_cuatro_1e7nb_35", J = {
|
|
512
512
|
container: f0,
|
|
513
513
|
dash: k0,
|
|
514
514
|
uno: g0,
|
|
@@ -516,40 +516,40 @@ const f0 = "_container_1e7nb_1", k0 = "_dash_1e7nb_9", g0 = "_uno_1e7nb_17", S0
|
|
|
516
516
|
tres: T0,
|
|
517
517
|
cuatro: v0
|
|
518
518
|
};
|
|
519
|
-
function
|
|
520
|
-
return /* @__PURE__ */
|
|
521
|
-
/* @__PURE__ */
|
|
522
|
-
/* @__PURE__ */
|
|
523
|
-
/* @__PURE__ */
|
|
524
|
-
/* @__PURE__ */
|
|
519
|
+
function C0() {
|
|
520
|
+
return /* @__PURE__ */ f("div", { className: J.container, children: [
|
|
521
|
+
/* @__PURE__ */ r("div", { className: `${J.dash} ${J.uno}` }),
|
|
522
|
+
/* @__PURE__ */ r("div", { className: `${J.dash} ${J.dos}` }),
|
|
523
|
+
/* @__PURE__ */ r("div", { className: `${J.dash} ${J.tres}` }),
|
|
524
|
+
/* @__PURE__ */ r("div", { className: `${J.dash} ${J.cuatro}` })
|
|
525
525
|
] });
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
var
|
|
529
|
-
const
|
|
530
|
-
let x = (
|
|
531
|
-
const N = ((M = t == null ? void 0 : t.fromChain) == null ? void 0 : M.networkType) === "sol" ?
|
|
527
|
+
function E0({ handleUpdate: n }) {
|
|
528
|
+
var D, M, V, E, j, F, H, W, _, R, Q, z, Z, X, Y, tt, et, ct, xt, dt;
|
|
529
|
+
const o = c((P) => P.configuration), t = c((P) => P.persist), { address: e } = ft(), { address: i } = jt(), { primaryWallet: b } = Ot(), { getWallet: a } = Ut({}), m = c((P) => P.setPersist), p = c((P) => P.customWallet), l = c((P) => P.customFee), k = c((P) => P.broadCastMode), h = c((P) => P.evmGas), C = c((P) => P.evmSpeed), B = c((P) => P.slippage), v = c((P) => P.option), U = c((P) => P.gasless), { data: s } = ue(), w = ["routesTxn", e, t == null ? void 0 : t.fromChain, t == null ? void 0 : t.toChain, t == null ? void 0 : t.fromCoin, t == null ? void 0 : t.toCoin, (t == null ? void 0 : t.amount) || ((D = t == null ? void 0 : t.route) == null ? void 0 : D.inputAmountDisplay) || 0, b == null ? void 0 : b.address, i, p, s == null ? void 0 : s.bech32Address, l, h, C, B, k, v.value, "", U];
|
|
530
|
+
let x = (k === "Priority Fee" || k === "Both") && (l != null && l.length) ? l : v.value, d = (k === "Jito Tip" || k === "Both") && (l != null && l.length) ? l : v.value, g = h != null && h.length ? h : C.value;
|
|
531
|
+
const N = ((M = t == null ? void 0 : t.fromChain) == null ? void 0 : M.networkType) === "sol" ? k === "Priority Fee" ? `&solanaPriorityFee=${x}` : k === "Jito Tip" ? `&solanaJitoTip=${d}` : `&solanaPriorityFee=${x}&solanaJitoTip=${d}` : ((V = t == null ? void 0 : t.fromChain) == null ? void 0 : V.networkType) === "evm" ? `&evmPriorityFee=${g}` : "", { routes: S, routesData: u } = ye({
|
|
532
532
|
enabled: !0,
|
|
533
533
|
dependency: w,
|
|
534
534
|
payload: [
|
|
535
|
-
((
|
|
535
|
+
((E = t == null ? void 0 : t.fromChain) == null ? void 0 : E.networkType) === "cosmos" ? It(s == null ? void 0 : s.bech32Address, (F = (j = t == null ? void 0 : t.fromChain) == null ? void 0 : j.chainInfo) == null ? void 0 : F.bech32Config.bech32PrefixAccAddr) : ((H = t == null ? void 0 : t.route) == null ? void 0 : H.userWalletAddress) || ((W = a(t == null ? void 0 : t.fromChain)) == null ? void 0 : W.address) || "",
|
|
536
536
|
t == null ? void 0 : t.fromChain,
|
|
537
537
|
t == null ? void 0 : t.toChain,
|
|
538
538
|
t == null ? void 0 : t.fromCoin,
|
|
539
539
|
t == null ? void 0 : t.toCoin,
|
|
540
540
|
(t == null ? void 0 : t.amount) || ((_ = t == null ? void 0 : t.route) == null ? void 0 : _.inputAmountDisplay) || 0,
|
|
541
541
|
Number(B) * 100,
|
|
542
|
-
(
|
|
542
|
+
(p == null ? void 0 : p.length) > 30 ? ((R = t == null ? void 0 : t.route) == null ? void 0 : R.recipient) || ((Q = a({})) == null ? void 0 : Q.address) || "" : ((z = t == null ? void 0 : t.toChain) == null ? void 0 : z.networkType) === "cosmos" ? It(s == null ? void 0 : s.bech32Address, (X = (Z = t == null ? void 0 : t.toChain) == null ? void 0 : Z.chainInfo) == null ? void 0 : X.bech32Config.bech32PrefixAccAddr) : ((Y = t == null ? void 0 : t.route) == null ? void 0 : Y.recipient) || ((tt = a(t == null ? void 0 : t.toChain)) == null ? void 0 : tt.address) || "",
|
|
543
543
|
N,
|
|
544
544
|
1,
|
|
545
545
|
U
|
|
546
546
|
]
|
|
547
547
|
});
|
|
548
|
-
let
|
|
548
|
+
let y = (u == null ? void 0 : u.outputAmountDisplay) || "";
|
|
549
549
|
async function A() {
|
|
550
550
|
if (t.isQuoteTimer === !1) {
|
|
551
551
|
let P = await S.refetch();
|
|
552
|
-
P.status === "success" && P.data.status === "success" &&
|
|
552
|
+
P.status === "success" && P.data.status === "success" && m({
|
|
553
553
|
...c.getState().persist,
|
|
554
554
|
isQuoteTimer: !0
|
|
555
555
|
});
|
|
@@ -559,12 +559,12 @@ function C0({ handleUpdate: n }) {
|
|
|
559
559
|
A();
|
|
560
560
|
}, [t.isQuoteTimer]);
|
|
561
561
|
function I() {
|
|
562
|
-
n(),
|
|
562
|
+
n(), m({
|
|
563
563
|
stepData: {},
|
|
564
564
|
quote: "enable",
|
|
565
565
|
isTimerStarted: !1,
|
|
566
|
-
routeId: (
|
|
567
|
-
route:
|
|
566
|
+
routeId: (u == null ? void 0 : u.routeId) || "",
|
|
567
|
+
route: u,
|
|
568
568
|
toChain: (t == null ? void 0 : t.toChain) || {},
|
|
569
569
|
toCoin: (t == null ? void 0 : t.toCoin) || {},
|
|
570
570
|
fromChain: (t == null ? void 0 : t.fromChain) || {},
|
|
@@ -577,71 +577,71 @@ function C0({ handleUpdate: n }) {
|
|
|
577
577
|
loading: !0
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
|
-
return /* @__PURE__ */
|
|
581
|
-
/* @__PURE__ */
|
|
582
|
-
/* @__PURE__ */
|
|
583
|
-
/* @__PURE__ */
|
|
584
|
-
/* @__PURE__ */
|
|
585
|
-
S.isLoading || S.isFetching ? /* @__PURE__ */
|
|
586
|
-
/* @__PURE__ */
|
|
580
|
+
return /* @__PURE__ */ f("div", { className: "bw-w-full bw-absolute bw-border-t bw-border-border-primary bw-pt-3 bw-bottom-0 bw-flex bw-flex-col bw-justify-center bw-items-center", children: [
|
|
581
|
+
/* @__PURE__ */ r("p", { className: "bw-text-text-primary bw-text-lg bw-font-semibold", children: "Quote Expired!" }),
|
|
582
|
+
/* @__PURE__ */ r("p", { className: "bw-text-text-secondary bw-text-sm bw-font-medium", children: "Please accept the new quote, or go back to select manually" }),
|
|
583
|
+
/* @__PURE__ */ f("div", { className: "bw-w-full bw-mt-4 bw-px-2 bw-flex bw-items-center ba-gap-x-2 bw-justify-between", children: [
|
|
584
|
+
/* @__PURE__ */ f("div", { children: [
|
|
585
|
+
S.isLoading || S.isFetching ? /* @__PURE__ */ r(wt, { className: "bw-bg-background-secondary bw-mb-1 bw-rounded-lg bw-h-[20px] bw-w-[150px] bw-min-h-[20px]", variant: "rectangular", animation: "wave", height: 20, width: 100 }) : /* @__PURE__ */ f("p", { className: "bw-text-text-lg bw-font-bold bw-text-text-primary", children: [
|
|
586
|
+
/* @__PURE__ */ r(pt, { value: y == null ? void 0 : y.toString(), decimal: 12 }),
|
|
587
587
|
" ",
|
|
588
|
-
((
|
|
588
|
+
((et = u == null ? void 0 : u.to) == null ? void 0 : et.symbol) || ""
|
|
589
589
|
] }),
|
|
590
|
-
S.isLoading || S.isFetching ? /* @__PURE__ */
|
|
590
|
+
S.isLoading || S.isFetching ? /* @__PURE__ */ r(wt, { className: "bw-bg-background-secondary bw-rounded-lg bw-h-[20px] bw-w-[70px] bw-min-h-[20px]", variant: "rectangular", animation: "wave", height: 20, width: 70 }) : /* @__PURE__ */ f("p", { className: "bw-text-text-sm bw-font-normal bw-text-text-secondary", children: [
|
|
591
591
|
"$ ",
|
|
592
|
-
/* @__PURE__ */
|
|
592
|
+
/* @__PURE__ */ r(pt, { value: le(((u == null ? void 0 : u.outputAmountDisplay) || "") * ((ct = u == null ? void 0 : u.to) == null ? void 0 : ct.lastPrice) || 0, 10), decimal: 12 })
|
|
593
593
|
] })
|
|
594
594
|
] }),
|
|
595
|
-
/* @__PURE__ */
|
|
595
|
+
/* @__PURE__ */ r(
|
|
596
596
|
"button",
|
|
597
597
|
{
|
|
598
598
|
disabled: S.isFetching || S.isLoading,
|
|
599
599
|
className: `bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-1/2 bw-rounded-sm ${st.gradientbutton + " bw-p-[3px]"}`,
|
|
600
600
|
onClick: I,
|
|
601
601
|
style: {
|
|
602
|
-
...
|
|
603
|
-
boxShadow:
|
|
602
|
+
...o == null ? void 0 : o.gradientStyle,
|
|
603
|
+
boxShadow: o && o.customTheme && ((dt = (xt = o.customTheme) == null ? void 0 : xt.shadow) == null ? void 0 : dt.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
|
604
604
|
},
|
|
605
|
-
children: /* @__PURE__ */
|
|
605
|
+
children: /* @__PURE__ */ r("p", { className: "bw-w-full bw-h-full bw-bg-background-container bw-text-text-primary bw-font-bold bw-flex bw-items-center bw-justify-center", children: "Accept Quote" })
|
|
606
606
|
}
|
|
607
607
|
)
|
|
608
608
|
] })
|
|
609
609
|
] });
|
|
610
610
|
}
|
|
611
611
|
function N0({ handleBack: n }) {
|
|
612
|
-
var
|
|
613
|
-
const { txnupdate:
|
|
614
|
-
return i === "bridge" ? a != null && a.destTxnUrl || (a == null || a.srcTxnUrl) : a != null && a.srcTxnUrl, (
|
|
615
|
-
/* @__PURE__ */
|
|
616
|
-
/* @__PURE__ */
|
|
617
|
-
/* @__PURE__ */
|
|
618
|
-
/* @__PURE__ */
|
|
612
|
+
var k, h, C, B, v, U, s, w, x, d;
|
|
613
|
+
const { txnupdate: o } = Gt, t = c((g) => g.persist), e = c((g) => g.configuration), i = t == null ? void 0 : t.stepData.stepType, a = ((t == null ? void 0 : t.txnHashObj) || [])[(k = t == null ? void 0 : t.stepData) == null ? void 0 : k.stepId] || {}, m = i === "bridge" ? (a == null ? void 0 : a.destTxnHash) || (a == null ? void 0 : a.srcTxnHash) : (a == null ? void 0 : a.srcTxnHash) || "", p = (h = t == null ? void 0 : t.historyData) == null ? void 0 : h.finalTxnHash, l = m || p || "";
|
|
614
|
+
return i === "bridge" ? a != null && a.destTxnUrl || (a == null || a.srcTxnUrl) : a != null && a.srcTxnUrl, (C = t == null ? void 0 : t.historyData) == null || C.finalTxnUrl, t.toCoin, t.route, t.toChain, /* @__PURE__ */ f("div", { className: "bw-absolute bw-bg-background-container bw-bottom-0", children: [
|
|
615
|
+
/* @__PURE__ */ f("div", { className: "bw-w-full bw-flex bw-items-center bw-p-3 bw-h-[141px] bw-rounded-xl bw-border bw-border-border-primary", children: [
|
|
616
|
+
/* @__PURE__ */ f("div", { className: "bw-w-[60%]", children: [
|
|
617
|
+
/* @__PURE__ */ r("p", { className: "bw-text-text-secondary bw-mb-2 bw-text-lg bw-font-medium", children: "Transaction Update" }),
|
|
618
|
+
/* @__PURE__ */ f("p", { className: "bw-text-text-primary bw-text-2xl bw-font-bold", children: [
|
|
619
619
|
Mt(((B = t == null ? void 0 : t.statusData) == null ? void 0 : B.outputAmountDisplay) || "", 10),
|
|
620
620
|
" ",
|
|
621
621
|
((U = (v = t == null ? void 0 : t.statusData) == null ? void 0 : v.outputToken) == null ? void 0 : U.symbol) || "",
|
|
622
622
|
" ",
|
|
623
|
-
/* @__PURE__ */
|
|
623
|
+
/* @__PURE__ */ r("br", {})
|
|
624
624
|
] }),
|
|
625
|
-
/* @__PURE__ */
|
|
625
|
+
/* @__PURE__ */ f("p", { className: "bw-text-text-secondary bw-mb-2 bw-text-sm bw-font-normal", children: [
|
|
626
626
|
"Received on ",
|
|
627
627
|
t.toChain.name,
|
|
628
628
|
" chain",
|
|
629
629
|
" "
|
|
630
630
|
] }),
|
|
631
|
-
/* @__PURE__ */
|
|
631
|
+
/* @__PURE__ */ f("div", { className: "bw-text-text-secondary bw-flex bw-items-center bw-gap-x-1 bw-mb-2 bw-text-sm bw-font-medium", children: [
|
|
632
632
|
`Txn Id:${l ? `${l.substring(0, 5)}...${l.substring(
|
|
633
633
|
l.length - 5,
|
|
634
634
|
l.length
|
|
635
635
|
)}` : ""}`,
|
|
636
|
-
/* @__PURE__ */
|
|
636
|
+
/* @__PURE__ */ r("div", { className: "bw-cursor-pointer ", children: /* @__PURE__ */ r(kt, { txnHash: l, children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(gt, { fill: "var(--tw-text-secondary)" }) }) }) })
|
|
637
637
|
] })
|
|
638
638
|
] }),
|
|
639
|
-
/* @__PURE__ */
|
|
639
|
+
/* @__PURE__ */ r("div", { className: "bw-w-[40%] bw-flex bw-items-center bw-justify-center", children: /* @__PURE__ */ r("img", { src: o, width: 108, height: 100, alt: "img" }) })
|
|
640
640
|
] }),
|
|
641
|
-
/* @__PURE__ */
|
|
641
|
+
/* @__PURE__ */ f("p", { className: "bw-text-sm bw-text-center bw-text-text-secondary bw-font-normal bw-mt-3", children: [
|
|
642
642
|
"Due to liquidity error on providers end your",
|
|
643
643
|
" ",
|
|
644
|
-
/* @__PURE__ */
|
|
644
|
+
/* @__PURE__ */ f("b", { className: "bw-text-text-primary", children: [
|
|
645
645
|
"receiving token has been changed to",
|
|
646
646
|
" ",
|
|
647
647
|
((w = (s = t == null ? void 0 : t.statusData) == null ? void 0 : s.outputToken) == null ? void 0 : w.symbol) || "",
|
|
@@ -650,13 +650,13 @@ function N0({ handleBack: n }) {
|
|
|
650
650
|
(d = (x = t == null ? void 0 : t.statusData) == null ? void 0 : x.outputToken) == null ? void 0 : d.blockchain
|
|
651
651
|
] })
|
|
652
652
|
] }),
|
|
653
|
-
/* @__PURE__ */
|
|
653
|
+
/* @__PURE__ */ r(
|
|
654
654
|
"button",
|
|
655
655
|
{
|
|
656
656
|
onClick: n,
|
|
657
657
|
style: { ...e == null ? void 0 : e.gradientStyle },
|
|
658
658
|
className: `bw-w-full ${st.gradientbutton} bw-rounded-sm bw-h-[50px] bw-p-[3px] bw-mt-3 bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-50 bw-text-2xl bw-font-bold bw-text-text-primary`,
|
|
659
|
-
children: /* @__PURE__ */
|
|
659
|
+
children: /* @__PURE__ */ r(
|
|
660
660
|
"div",
|
|
661
661
|
{
|
|
662
662
|
onClick: n,
|
|
@@ -668,15 +668,15 @@ function N0({ handleBack: n }) {
|
|
|
668
668
|
)
|
|
669
669
|
] });
|
|
670
670
|
}
|
|
671
|
-
function Bt({ handleBack: n, errorText:
|
|
671
|
+
function Bt({ handleBack: n, errorText: o }) {
|
|
672
672
|
const t = c((e) => e.configuration);
|
|
673
|
-
return /* @__PURE__ */
|
|
674
|
-
/* @__PURE__ */
|
|
675
|
-
/* @__PURE__ */
|
|
673
|
+
return /* @__PURE__ */ f(L, { children: [
|
|
674
|
+
/* @__PURE__ */ r(Wt, { errorText: o, heading: "Transaction Expired" }),
|
|
675
|
+
/* @__PURE__ */ r("button", { onClick: n, style: { ...t == null ? void 0 : t.gradientStyle }, className: `bw-w-full ${st.gradientbutton} bw-rounded-sm bw-h-[50px] bw-p-[3px] bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-50 bw-text-2xl bw-font-bold bw-text-text-primary`, children: /* @__PURE__ */ r("div", { onClick: n, className: "bw-rounded-sm bw-bg-background-container bw-flex bw-items-center bw-justify-center b-w-full bw-h-full", children: "Start a New Transaction" }) })
|
|
676
676
|
] });
|
|
677
677
|
}
|
|
678
|
-
function A0({ fill: n, stroke:
|
|
679
|
-
return /* @__PURE__ */
|
|
678
|
+
function A0({ fill: n, stroke: o }) {
|
|
679
|
+
return /* @__PURE__ */ f(
|
|
680
680
|
"svg",
|
|
681
681
|
{
|
|
682
682
|
width: "113",
|
|
@@ -685,7 +685,7 @@ function A0({ fill: n, stroke: r }) {
|
|
|
685
685
|
fill: "none",
|
|
686
686
|
xmlns: "http://www.w3.org/2000/svg",
|
|
687
687
|
children: [
|
|
688
|
-
/* @__PURE__ */
|
|
688
|
+
/* @__PURE__ */ r(
|
|
689
689
|
"rect",
|
|
690
690
|
{
|
|
691
691
|
x: "8.4375",
|
|
@@ -694,10 +694,10 @@ function A0({ fill: n, stroke: r }) {
|
|
|
694
694
|
height: "36.4567",
|
|
695
695
|
rx: "9.5",
|
|
696
696
|
fill: n,
|
|
697
|
-
stroke:
|
|
697
|
+
stroke: o
|
|
698
698
|
}
|
|
699
699
|
),
|
|
700
|
-
/* @__PURE__ */
|
|
700
|
+
/* @__PURE__ */ r(
|
|
701
701
|
"rect",
|
|
702
702
|
{
|
|
703
703
|
x: "15.5742",
|
|
@@ -705,10 +705,10 @@ function A0({ fill: n, stroke: r }) {
|
|
|
705
705
|
width: "42.7954",
|
|
706
706
|
height: "14.5366",
|
|
707
707
|
rx: "4",
|
|
708
|
-
fill:
|
|
708
|
+
fill: o
|
|
709
709
|
}
|
|
710
710
|
),
|
|
711
|
-
/* @__PURE__ */
|
|
711
|
+
/* @__PURE__ */ r(
|
|
712
712
|
"rect",
|
|
713
713
|
{
|
|
714
714
|
x: "38.8398",
|
|
@@ -716,10 +716,10 @@ function A0({ fill: n, stroke: r }) {
|
|
|
716
716
|
width: "42.7954",
|
|
717
717
|
height: "6.99623",
|
|
718
718
|
rx: "3.49811",
|
|
719
|
-
fill:
|
|
719
|
+
fill: o
|
|
720
720
|
}
|
|
721
721
|
),
|
|
722
|
-
/* @__PURE__ */
|
|
722
|
+
/* @__PURE__ */ r(
|
|
723
723
|
"rect",
|
|
724
724
|
{
|
|
725
725
|
x: "1.25",
|
|
@@ -728,27 +728,27 @@ function A0({ fill: n, stroke: r }) {
|
|
|
728
728
|
height: "15.2004",
|
|
729
729
|
rx: "4.5",
|
|
730
730
|
fill: n,
|
|
731
|
-
stroke:
|
|
731
|
+
stroke: o
|
|
732
732
|
}
|
|
733
733
|
),
|
|
734
|
-
/* @__PURE__ */
|
|
735
|
-
/* @__PURE__ */
|
|
734
|
+
/* @__PURE__ */ f("g", { filter: "url(#filter0_d_8010_16559)", children: [
|
|
735
|
+
/* @__PURE__ */ r(
|
|
736
736
|
"path",
|
|
737
737
|
{
|
|
738
738
|
d: "M87.8168 13.1918L101.18 36.3366C102.795 39.134 100.776 42.6307 97.5456 42.6307H70.8202C67.5901 42.6307 65.5713 39.134 67.1864 36.3366L80.549 13.1918C82.1641 10.3944 86.2018 10.3944 87.8168 13.1918Z",
|
|
739
739
|
fill: n,
|
|
740
|
-
stroke:
|
|
740
|
+
stroke: o
|
|
741
741
|
}
|
|
742
742
|
),
|
|
743
|
-
/* @__PURE__ */
|
|
743
|
+
/* @__PURE__ */ r(
|
|
744
744
|
"path",
|
|
745
745
|
{
|
|
746
746
|
d: "M85.6358 19.2969V26.2041C85.6358 26.9367 85.5995 27.6572 85.5271 28.3656C85.4546 29.066 85.362 29.8107 85.2493 30.5996H83.2206C83.1079 29.8107 83.0154 29.066 82.9429 28.3656C82.8705 27.6572 82.8342 26.9367 82.8342 26.2041V19.2969H85.6358ZM82.3633 35.1159C82.3633 34.8663 82.4076 34.6288 82.4961 34.4034C82.5927 34.178 82.7215 33.9848 82.8825 33.8238C83.0516 33.6628 83.2488 33.534 83.4742 33.4374C83.6996 33.3408 83.9412 33.2925 84.1988 33.2925C84.4483 33.2925 84.6858 33.3408 84.9112 33.4374C85.1366 33.534 85.3298 33.6628 85.4909 33.8238C85.6599 33.9848 85.7927 34.178 85.8893 34.4034C85.986 34.6288 86.0343 34.8663 86.0343 35.1159C86.0343 35.3735 85.986 35.615 85.8893 35.8404C85.7927 36.0578 85.6599 36.247 85.4909 36.408C85.3298 36.569 85.1366 36.6938 84.9112 36.7823C84.6858 36.8789 84.4483 36.9272 84.1988 36.9272C83.9412 36.9272 83.6996 36.8789 83.4742 36.7823C83.2488 36.6938 83.0516 36.569 82.8825 36.408C82.7215 36.247 82.5927 36.0578 82.4961 35.8404C82.4076 35.615 82.3633 35.3735 82.3633 35.1159Z",
|
|
747
|
-
fill:
|
|
747
|
+
fill: o
|
|
748
748
|
}
|
|
749
749
|
)
|
|
750
750
|
] }),
|
|
751
|
-
/* @__PURE__ */
|
|
751
|
+
/* @__PURE__ */ r("defs", { children: /* @__PURE__ */ f(
|
|
752
752
|
"filter",
|
|
753
753
|
{
|
|
754
754
|
id: "filter0_d_8010_16559",
|
|
@@ -759,8 +759,8 @@ function A0({ fill: n, stroke: r }) {
|
|
|
759
759
|
filterUnits: "userSpaceOnUse",
|
|
760
760
|
"color-interpolation-filters": "sRGB",
|
|
761
761
|
children: [
|
|
762
|
-
/* @__PURE__ */
|
|
763
|
-
/* @__PURE__ */
|
|
762
|
+
/* @__PURE__ */ r("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
|
|
763
|
+
/* @__PURE__ */ r(
|
|
764
764
|
"feColorMatrix",
|
|
765
765
|
{
|
|
766
766
|
in: "SourceAlpha",
|
|
@@ -769,17 +769,17 @@ function A0({ fill: n, stroke: r }) {
|
|
|
769
769
|
result: "hardAlpha"
|
|
770
770
|
}
|
|
771
771
|
),
|
|
772
|
-
/* @__PURE__ */
|
|
773
|
-
/* @__PURE__ */
|
|
774
|
-
/* @__PURE__ */
|
|
775
|
-
/* @__PURE__ */
|
|
772
|
+
/* @__PURE__ */ r("feOffset", {}),
|
|
773
|
+
/* @__PURE__ */ r("feGaussianBlur", { stdDeviation: "5" }),
|
|
774
|
+
/* @__PURE__ */ r("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
775
|
+
/* @__PURE__ */ r(
|
|
776
776
|
"feColorMatrix",
|
|
777
777
|
{
|
|
778
778
|
type: "matrix",
|
|
779
779
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
|
780
780
|
}
|
|
781
781
|
),
|
|
782
|
-
/* @__PURE__ */
|
|
782
|
+
/* @__PURE__ */ r(
|
|
783
783
|
"feBlend",
|
|
784
784
|
{
|
|
785
785
|
mode: "normal",
|
|
@@ -787,7 +787,7 @@ function A0({ fill: n, stroke: r }) {
|
|
|
787
787
|
result: "effect1_dropShadow_8010_16559"
|
|
788
788
|
}
|
|
789
789
|
),
|
|
790
|
-
/* @__PURE__ */
|
|
790
|
+
/* @__PURE__ */ r(
|
|
791
791
|
"feBlend",
|
|
792
792
|
{
|
|
793
793
|
mode: "normal",
|
|
@@ -804,36 +804,36 @@ function A0({ fill: n, stroke: r }) {
|
|
|
804
804
|
);
|
|
805
805
|
}
|
|
806
806
|
function $t({ text: n }) {
|
|
807
|
-
return /* @__PURE__ */
|
|
808
|
-
/* @__PURE__ */
|
|
809
|
-
/* @__PURE__ */
|
|
810
|
-
/* @__PURE__ */
|
|
807
|
+
return /* @__PURE__ */ f("div", { style: { wordBreak: "break-all" }, className: "bw-text-text-error bw-mb-12 bw-w-full bw-text-sm bw-flex bw-flex-col bw-justify-center bw-items-center bw-text-center bw-text-text-redtext", children: [
|
|
808
|
+
/* @__PURE__ */ r(A0, { fill: "var(--tw-background-networkcard)", stroke: "var(--tw-border-primary)" }),
|
|
809
|
+
/* @__PURE__ */ r("p", { className: "bw-text-2xl bw-mt-3 bw-text-text-primary", children: n }),
|
|
810
|
+
/* @__PURE__ */ r("p", { className: "bw-text-sm bw-mt-2 bw-font-normal bw-text-text-secondary", children: "Please start your transaction again" })
|
|
811
811
|
] });
|
|
812
812
|
}
|
|
813
813
|
function St(n) {
|
|
814
814
|
var B, v, U;
|
|
815
|
-
const
|
|
815
|
+
const o = c((s) => s.setPersist), t = c((s) => s.persist), e = _t(), { setErrorMessage: i } = K(lt), b = mt(!1), a = t.isHistory, m = !ot.isEmpty((v = (B = c.getState()) == null ? void 0 : B.persist) == null ? void 0 : v.historyData);
|
|
816
816
|
G(() => (b.current = !0, () => {
|
|
817
817
|
b.current = !1;
|
|
818
818
|
}), []);
|
|
819
|
-
const
|
|
819
|
+
const p = ve({
|
|
820
820
|
mutationKey: "nexttx",
|
|
821
821
|
mutationFn: async ({ id: s, routeId: w }) => await fe({ stepId: s, routeId: w }),
|
|
822
822
|
refetchOnWindowFocus: !1,
|
|
823
823
|
refetchOnMount: !1,
|
|
824
824
|
cacheTime: 1e3,
|
|
825
825
|
onSuccess: (s, w) => {
|
|
826
|
-
var x, d, g, N, S,
|
|
826
|
+
var x, d, g, N, S, u, y;
|
|
827
827
|
b.current && (s.status == "error" ? i(s) : i({ error: "" }), e.emit(it.TransactionData, {
|
|
828
828
|
...s
|
|
829
|
-
}),
|
|
829
|
+
}), k(s), o({
|
|
830
830
|
...(x = c.getState()) == null ? void 0 : x.persist,
|
|
831
831
|
loading: !1,
|
|
832
832
|
txnEvm: (g = (d = s == null ? void 0 : s.data) == null ? void 0 : d.txnData) == null ? void 0 : g.txnEvm,
|
|
833
833
|
nextTx: s,
|
|
834
834
|
hash: null,
|
|
835
835
|
txnType: ((S = (N = s == null ? void 0 : s.data) == null ? void 0 : N.txnData) == null ? void 0 : S.txnType) || null,
|
|
836
|
-
gasless: (
|
|
836
|
+
gasless: (y = (u = s == null ? void 0 : s.data) == null ? void 0 : u.txnData) == null ? void 0 : y.gasless
|
|
837
837
|
}));
|
|
838
838
|
},
|
|
839
839
|
onError: (s) => {
|
|
@@ -847,39 +847,39 @@ function St(n) {
|
|
|
847
847
|
}
|
|
848
848
|
});
|
|
849
849
|
async function l(s, w, x) {
|
|
850
|
-
|
|
850
|
+
o({
|
|
851
851
|
...c.getState().persist,
|
|
852
852
|
loading: !0
|
|
853
853
|
});
|
|
854
854
|
try {
|
|
855
|
-
await
|
|
855
|
+
await p.mutateAsync({
|
|
856
856
|
id: s == null ? void 0 : s.stepId,
|
|
857
857
|
routeId: w
|
|
858
|
-
}),
|
|
858
|
+
}), o({
|
|
859
859
|
...c.getState().persist,
|
|
860
860
|
stepData: s
|
|
861
861
|
});
|
|
862
|
-
} catch {
|
|
863
|
-
|
|
862
|
+
} catch (d) {
|
|
863
|
+
o({
|
|
864
864
|
...c.getState().persist,
|
|
865
865
|
loading: !1
|
|
866
|
-
});
|
|
866
|
+
}), console.log(d);
|
|
867
867
|
}
|
|
868
868
|
}
|
|
869
|
-
function
|
|
870
|
-
var w, x, d, g, N, S,
|
|
869
|
+
function k(s) {
|
|
870
|
+
var w, x, d, g, N, S, u;
|
|
871
871
|
if (((w = s == null ? void 0 : s.data) == null ? void 0 : w.skipTxn) === !0) {
|
|
872
|
-
let
|
|
873
|
-
!
|
|
872
|
+
let y = ((g = (d = (x = C == null ? void 0 : C.data) == null ? void 0 : x.data) == null ? void 0 : d.steps) == null ? void 0 : g[t.allSteps.currentStep + 1]) || ((S = (N = t == null ? void 0 : t.allSteps) == null ? void 0 : N.steps) == null ? void 0 : S[t.allSteps.currentStep + 1]) || {};
|
|
873
|
+
!ot.isEmpty(y) && ((u = s == null ? void 0 : s.data) != null && u.routeId) && setTimeout(() => {
|
|
874
874
|
var A;
|
|
875
|
-
|
|
875
|
+
h(), l(y, (A = s == null ? void 0 : s.data) == null ? void 0 : A.routeId);
|
|
876
876
|
}, 0);
|
|
877
877
|
} else
|
|
878
878
|
return;
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function h() {
|
|
881
881
|
var s;
|
|
882
|
-
|
|
882
|
+
o({
|
|
883
883
|
...c.getState().persist,
|
|
884
884
|
loading: !0,
|
|
885
885
|
allSteps: {
|
|
@@ -890,7 +890,7 @@ function St(n) {
|
|
|
890
890
|
}
|
|
891
891
|
});
|
|
892
892
|
}
|
|
893
|
-
const
|
|
893
|
+
const C = Ce({
|
|
894
894
|
queryKey: ["txnbody", t == null ? void 0 : t.routeId],
|
|
895
895
|
queryFn: async () => await ke({ routeId: t == null ? void 0 : t.routeId }),
|
|
896
896
|
refetchOnWindowFocus: !1,
|
|
@@ -899,61 +899,62 @@ function St(n) {
|
|
|
899
899
|
});
|
|
900
900
|
return G(() => {
|
|
901
901
|
var s, w, x, d, g, N, S;
|
|
902
|
-
if (
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
902
|
+
if (C.data && !(t != null && t.nextTx) && n) {
|
|
903
|
+
console.log(p, "nextTx");
|
|
904
|
+
let u = C.data;
|
|
905
|
+
u.status == "error" ? (i(u), e.emit(it.TransactionSteps, {
|
|
906
|
+
...u
|
|
906
907
|
})) : (e.emit(it.TransactionSteps, {
|
|
907
|
-
routeId: ((s =
|
|
908
|
-
steps: ((w =
|
|
909
|
-
numOfSteps: ((d = (x =
|
|
910
|
-
}), i({ error: "" })), typeof (
|
|
911
|
-
var
|
|
912
|
-
|
|
908
|
+
routeId: ((s = u == null ? void 0 : u.data) == null ? void 0 : s.routeId) || "",
|
|
909
|
+
steps: ((w = u == null ? void 0 : u.data) == null ? void 0 : w.steps) || [],
|
|
910
|
+
numOfSteps: ((d = (x = u == null ? void 0 : u.data) == null ? void 0 : x.steps) == null ? void 0 : d.length) || 0
|
|
911
|
+
}), i({ error: "" })), typeof (u == null ? void 0 : u.data) < "u" && !m && (l((g = u == null ? void 0 : u.data) == null ? void 0 : g.steps[0], (N = u == null ? void 0 : u.data) == null ? void 0 : N.routeId), setTimeout(() => {
|
|
912
|
+
var y, A, I;
|
|
913
|
+
o({
|
|
913
914
|
...c.getState().persist,
|
|
914
|
-
stepData: (
|
|
915
|
-
}),
|
|
915
|
+
stepData: (y = u == null ? void 0 : u.data) == null ? void 0 : y.steps[0]
|
|
916
|
+
}), o({
|
|
916
917
|
...c.getState().persist,
|
|
917
918
|
allSteps: {
|
|
918
|
-
steps: ((A =
|
|
919
|
+
steps: ((A = u == null ? void 0 : u.data) == null ? void 0 : A.steps) || ((I = t == null ? void 0 : t.allSteps) == null ? void 0 : I.steps) || [],
|
|
919
920
|
currentStep: 0,
|
|
920
921
|
type: "preText"
|
|
921
922
|
}
|
|
922
923
|
});
|
|
923
|
-
}, 1200), ((S =
|
|
924
|
+
}, 1200), ((S = u == null ? void 0 : u.data) == null ? void 0 : S.status) == "error" && i({ ...u.data }));
|
|
924
925
|
}
|
|
925
|
-
}, [
|
|
926
|
-
if (
|
|
927
|
-
let s =
|
|
926
|
+
}, [C.data, t == null ? void 0 : t.nextTx, m, n]), G(() => {
|
|
927
|
+
if (C.error) {
|
|
928
|
+
let s = C.error, w = s.details || s.message || "";
|
|
928
929
|
e.emit(it.TransactionSteps, {
|
|
929
930
|
error: w,
|
|
930
931
|
routeId: (t == null ? void 0 : t.routeId) || ""
|
|
931
932
|
}), i({ error: w });
|
|
932
933
|
}
|
|
933
|
-
}, [
|
|
934
|
+
}, [C.error]), G(() => {
|
|
934
935
|
var s;
|
|
935
|
-
t.routeId &&
|
|
936
|
-
}, [t.routeId]), { nextTx:
|
|
936
|
+
t.routeId && o({ ...(s = c.getState()) == null ? void 0 : s.persist, isSuccess: !0 });
|
|
937
|
+
}, [t.routeId]), { nextTx: p, callNextTx: l, handleSkipTxn: k, setNextStep: h, txnBody: C };
|
|
937
938
|
}
|
|
938
939
|
function Qt() {
|
|
939
940
|
var v, U;
|
|
940
|
-
const n = c((s) => s.persist),
|
|
941
|
-
function
|
|
942
|
-
var x, d, g, N, S,
|
|
941
|
+
const n = c((s) => s.persist), o = c((s) => s.setPersist), { registerError: t } = ce(), { handleErrorMessage: e, setErrorMessage: i } = K(lt), b = (n == null ? void 0 : n.showAcceptQuote) && !n.hash && ((v = n == null ? void 0 : n.allSteps) == null ? void 0 : v.currentStep) == 0 && ((U = n == null ? void 0 : n.nextTx) == null ? void 0 : U.status) === "success", { txnBody: a, callNextTx: m } = St();
|
|
942
|
+
function p(s) {
|
|
943
|
+
var x, d, g, N, S, u, y, A, I;
|
|
943
944
|
let w = [...((d = (x = c.getState()) == null ? void 0 : x.persist) == null ? void 0 : d.stepStatus) || []];
|
|
944
945
|
return w.length ? w[(g = n.allSteps) == null ? void 0 : g.currentStep] = {
|
|
945
946
|
...w[(N = n.allSteps) == null ? void 0 : N.currentStep],
|
|
946
947
|
type: (S = n.allSteps) == null ? void 0 : S.type
|
|
947
948
|
} : w[0] = {
|
|
948
|
-
...w[(
|
|
949
|
-
type: (
|
|
949
|
+
...w[(u = n.allSteps) == null ? void 0 : u.currentStep],
|
|
950
|
+
type: (y = n.allSteps) == null ? void 0 : y.type
|
|
950
951
|
}, s && (w[(A = n.allSteps) == null ? void 0 : A.currentStep] = {
|
|
951
952
|
...w[(I = n.allSteps) == null ? void 0 : I.currentStep],
|
|
952
953
|
...s
|
|
953
954
|
}), w;
|
|
954
955
|
}
|
|
955
956
|
function l() {
|
|
956
|
-
|
|
957
|
+
o({
|
|
957
958
|
...c.getState().persist,
|
|
958
959
|
stepData: {},
|
|
959
960
|
allSteps: {
|
|
@@ -962,10 +963,10 @@ function Qt() {
|
|
|
962
963
|
}
|
|
963
964
|
});
|
|
964
965
|
}
|
|
965
|
-
function
|
|
966
|
+
function k() {
|
|
966
967
|
i({ error: "" });
|
|
967
968
|
}
|
|
968
|
-
function
|
|
969
|
+
function h(s, w) {
|
|
969
970
|
var x, d;
|
|
970
971
|
t({
|
|
971
972
|
module: s,
|
|
@@ -975,191 +976,194 @@ function Qt() {
|
|
|
975
976
|
userWalletAddress: (d = n == null ? void 0 : n.route) == null ? void 0 : d.userWalletAddress
|
|
976
977
|
});
|
|
977
978
|
}
|
|
978
|
-
function
|
|
979
|
-
var d, g, N, S,
|
|
979
|
+
function C(s) {
|
|
980
|
+
var d, g, N, S, u, y, A, I, D, M, V, E, j, F, H, W, _, R;
|
|
980
981
|
let x = { ...((N = (g = (d = c) == null ? void 0 : d.getState()) == null ? void 0 : g.persist) == null ? void 0 : N.txnHashObj) || {} };
|
|
981
|
-
|
|
982
|
-
srcTxnUrl: ((
|
|
982
|
+
ot.isEmpty(x[(S = s == null ? void 0 : s.data) == null ? void 0 : S.stepId]) ? x[(V = s == null ? void 0 : s.data) == null ? void 0 : V.stepId] = {
|
|
983
|
+
srcTxnUrl: ((E = s == null ? void 0 : s.data) == null ? void 0 : E.srcTxnUrl) || "",
|
|
983
984
|
stepId: ((j = s == null ? void 0 : s.data) == null ? void 0 : j.stepId) || "",
|
|
984
|
-
srcTxnHash: ((
|
|
985
|
+
srcTxnHash: ((F = s == null ? void 0 : s.data) == null ? void 0 : F.srcTxnHash) || "",
|
|
985
986
|
destTxnUrl: ((H = s == null ? void 0 : s.data) == null ? void 0 : H.destTxnUrl) || "",
|
|
986
987
|
destTxnHash: ((W = s == null ? void 0 : s.data) == null ? void 0 : W.destTxnHash) || ""
|
|
987
|
-
} : x[(
|
|
988
|
-
...x[(
|
|
988
|
+
} : x[(u = s == null ? void 0 : s.data) == null ? void 0 : u.stepId] = {
|
|
989
|
+
...x[(y = s == null ? void 0 : s.data) == null ? void 0 : y.stepId],
|
|
989
990
|
destTxnHash: ((A = s == null ? void 0 : s.data) == null ? void 0 : A.destTxnHash) || (s == null ? void 0 : s.destTxnHash) || "",
|
|
990
991
|
destTxnUrl: ((I = s == null ? void 0 : s.data) == null ? void 0 : I.destTxnUrl) || (s == null ? void 0 : s.destTxnUrl) || "",
|
|
991
|
-
srcTxnUrl: ((
|
|
992
|
+
srcTxnUrl: ((D = s == null ? void 0 : s.data) == null ? void 0 : D.srcTxnUrl) || (s == null ? void 0 : s.srcTxnUrl) || "",
|
|
992
993
|
srcTxnHash: ((M = s == null ? void 0 : s.data) == null ? void 0 : M.srcTxnHash) || (s == null ? void 0 : s.srcTxnHash) || ""
|
|
993
|
-
},
|
|
994
|
+
}, o({
|
|
994
995
|
...(R = (_ = c) == null ? void 0 : _.getState()) == null ? void 0 : R.persist,
|
|
995
996
|
txnHashObj: x
|
|
996
997
|
});
|
|
997
998
|
}
|
|
998
999
|
function B() {
|
|
999
1000
|
var s, w, x, d;
|
|
1000
|
-
|
|
1001
|
+
o({
|
|
1001
1002
|
...(s = c.getState()) == null ? void 0 : s.persist,
|
|
1002
|
-
stepStatus:
|
|
1003
|
+
stepStatus: p({ status: "loadingText" }),
|
|
1003
1004
|
isTryAgain: !0,
|
|
1004
1005
|
loading: !0,
|
|
1005
1006
|
hash: null
|
|
1006
|
-
}), e(!1),
|
|
1007
|
+
}), e(!1), k(), m(((w = n == null ? void 0 : n.allSteps) == null ? void 0 : w.steps[n.allSteps.currentStep]) || {}, (n == null ? void 0 : n.routeId) || ((d = (x = a.data) == null ? void 0 : x.data) == null ? void 0 : d.routeId), !0);
|
|
1007
1008
|
}
|
|
1008
|
-
return { handleStepStatus:
|
|
1009
|
+
return { handleStepStatus: p, handleUpdate: l, handleErrorReset: k, isShowNewQuote: b, handleTxnObj: C, callRegisterError: h, handleTryAgain: B };
|
|
1009
1010
|
}
|
|
1010
1011
|
const zt = ne(new AbortController());
|
|
1011
1012
|
function an({ children: n }) {
|
|
1012
|
-
const
|
|
1013
|
-
return G(() => (
|
|
1013
|
+
const o = mt(new AbortController());
|
|
1014
|
+
return G(() => (o.current = new AbortController(), () => {
|
|
1014
1015
|
var t;
|
|
1015
|
-
(t =
|
|
1016
|
-
}), []), /* @__PURE__ */
|
|
1016
|
+
(t = o.current) == null || t.abort();
|
|
1017
|
+
}), []), /* @__PURE__ */ r(zt.Provider, { value: o.current, children: n });
|
|
1017
1018
|
}
|
|
1018
1019
|
function qt(n) {
|
|
1019
1020
|
return typeof n != "string" || n.length === 0 ? n : n.charAt(0).toUpperCase() + n.slice(1).toLowerCase();
|
|
1020
1021
|
}
|
|
1021
1022
|
function I0({ enabled: n }) {
|
|
1022
|
-
const [
|
|
1023
|
-
async function
|
|
1023
|
+
const [o, t] = rt(), { connector: e, chainId: i, chain: b, isConnected: a } = ft(), m = xe(), [p, l] = rt(!1);
|
|
1024
|
+
async function k() {
|
|
1024
1025
|
try {
|
|
1025
1026
|
l(!0);
|
|
1026
|
-
let
|
|
1027
|
-
t(
|
|
1028
|
-
} catch {
|
|
1029
|
-
l(!1);
|
|
1027
|
+
let h = await Fe(m, { connector: e, chainId: i });
|
|
1028
|
+
t(h), l(!1);
|
|
1029
|
+
} catch (h) {
|
|
1030
|
+
console.log(h, "ERR CLIENT"), l(!1);
|
|
1030
1031
|
}
|
|
1031
1032
|
}
|
|
1032
1033
|
return G(() => {
|
|
1033
|
-
n &&
|
|
1034
|
-
}, [
|
|
1034
|
+
n && (console.log("called custom"), k());
|
|
1035
|
+
}, [m, e, i, b, n, a]), { walletClient: o, isLoading: p, isAbs: e && e.id === "xyz.abs.privy" };
|
|
1035
1036
|
}
|
|
1036
1037
|
function D0() {
|
|
1037
|
-
var S,
|
|
1038
|
-
const n = c((
|
|
1039
|
-
chainId: [(
|
|
1038
|
+
var S, u;
|
|
1039
|
+
const n = c((y) => y.setPersist), o = c((y) => y.persist), { callRegisterError: t, handleTxnObj: e, handleStepStatus: i } = Qt(), { errorMessage: b, setErrorMessage: a } = K(lt), m = K(zt), { walletClient: p, isLoading: l, isAbs: k } = I0({ enabled: ((S = o == null ? void 0 : o.fromChain) == null ? void 0 : S.networkType) === "evm" }), { primaryWallet: h } = Ot(), { setNextStep: C, callNextTx: B } = St(), v = _t(), { wallet: U } = jt(), s = mt(), { data: w } = Lt({
|
|
1040
|
+
chainId: [(u = o == null ? void 0 : o.fromChain) == null ? void 0 : u.chainId],
|
|
1040
1041
|
multiChain: !0
|
|
1041
1042
|
});
|
|
1042
1043
|
G(() => {
|
|
1043
1044
|
n(l ? { ...c.getState().persist, loading: !0 } : { ...c.getState().persist, loading: !1 });
|
|
1044
1045
|
}, [l]);
|
|
1045
|
-
function x(
|
|
1046
|
+
function x(y) {
|
|
1046
1047
|
var I;
|
|
1047
1048
|
if (!{
|
|
1048
|
-
sol:
|
|
1049
|
-
evm:
|
|
1050
|
-
cosmos: w == null ? void 0 : w[(I =
|
|
1049
|
+
sol: h,
|
|
1050
|
+
evm: p,
|
|
1051
|
+
cosmos: w == null ? void 0 : w[(I = o == null ? void 0 : o.fromChain) == null ? void 0 : I.chainId],
|
|
1051
1052
|
tron: U,
|
|
1052
|
-
bitcoin:
|
|
1053
|
-
}[
|
|
1053
|
+
bitcoin: h
|
|
1054
|
+
}[y])
|
|
1054
1055
|
throw new Error("Please connect your wallet");
|
|
1055
1056
|
}
|
|
1056
1057
|
async function d() {
|
|
1057
|
-
var
|
|
1058
|
+
var y, A, I, D, M, V;
|
|
1058
1059
|
try {
|
|
1059
|
-
let
|
|
1060
|
-
x((
|
|
1061
|
-
let
|
|
1062
|
-
|
|
1063
|
-
txDataResponse:
|
|
1064
|
-
quote:
|
|
1065
|
-
step:
|
|
1066
|
-
provider:
|
|
1067
|
-
cosmosClient: (w == null ? void 0 : w[(V =
|
|
1060
|
+
let E, j;
|
|
1061
|
+
x((y = o == null ? void 0 : o.fromChain) == null ? void 0 : y.networkType), ((A = o == null ? void 0 : o.fromChain) == null ? void 0 : A.networkType) == "sol" && (j = await h.connector.getSigner());
|
|
1062
|
+
let F = (o == null ? void 0 : o.nextTx) || {};
|
|
1063
|
+
k && ((M = (D = (I = F == null ? void 0 : F.data) == null ? void 0 : I.txnData) == null ? void 0 : D.txnEvm) != null && M.gasPrice) && delete F.data.txnData.txnEvm.gasPrice, E = await Te({
|
|
1064
|
+
txDataResponse: F,
|
|
1065
|
+
quote: o.route,
|
|
1066
|
+
step: o.stepData,
|
|
1067
|
+
provider: p || null,
|
|
1068
|
+
cosmosClient: (w == null ? void 0 : w[(V = o == null ? void 0 : o.fromChain) == null ? void 0 : V.chainId]) || null,
|
|
1068
1069
|
walletAdapter: j || null,
|
|
1069
1070
|
signTransaction: (j == null ? void 0 : j.signTransaction) || null,
|
|
1070
1071
|
tronAdapter: U,
|
|
1071
|
-
bitcoinWallet:
|
|
1072
|
-
}), typeof
|
|
1072
|
+
bitcoinWallet: h
|
|
1073
|
+
}), typeof E == "object" && (E = E.signature), n({
|
|
1073
1074
|
...c.getState().persist,
|
|
1074
|
-
hash:
|
|
1075
|
-
}), g(
|
|
1076
|
-
} catch (
|
|
1077
|
-
|
|
1078
|
-
j
|
|
1079
|
-
|
|
1080
|
-
|
|
1075
|
+
hash: E
|
|
1076
|
+
}), g(E);
|
|
1077
|
+
} catch (E) {
|
|
1078
|
+
console.log(E, "err123");
|
|
1079
|
+
const j = yt(E.message || E.details || E), F = E.message || E.details || E;
|
|
1080
|
+
j && (F != null && F.length) && s.current && t("/wallet error", {
|
|
1081
|
+
error: F
|
|
1082
|
+
}), a({ error: F, type: "wallet" });
|
|
1081
1083
|
}
|
|
1082
1084
|
}
|
|
1083
|
-
async function g(
|
|
1085
|
+
async function g(y) {
|
|
1084
1086
|
var A, I;
|
|
1085
1087
|
try {
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1088
|
+
console.log(m, "abortref");
|
|
1089
|
+
let D = await ge({ routeId: o.routeId, stepId: (A = o == null ? void 0 : o.stepData) == null ? void 0 : A.stepId, txnHash: y }), M = await Se({
|
|
1090
|
+
routeId: o.routeId,
|
|
1091
|
+
stepId: (I = o == null ? void 0 : o.stepData) == null ? void 0 : I.stepId,
|
|
1092
|
+
txnHash: y,
|
|
1093
|
+
signal: m.signal,
|
|
1091
1094
|
pollingIntervalMs: 2e3,
|
|
1092
|
-
onStatusUpdate: (V,
|
|
1093
|
-
var
|
|
1095
|
+
onStatusUpdate: (V, E) => {
|
|
1096
|
+
var F, H, W, _, R, Q, z;
|
|
1094
1097
|
n({
|
|
1095
|
-
...(H = (
|
|
1098
|
+
...(H = (F = c) == null ? void 0 : F.getState()) == null ? void 0 : H.persist,
|
|
1096
1099
|
stepStatus: i({
|
|
1097
1100
|
status: "pending"
|
|
1098
1101
|
})
|
|
1099
1102
|
});
|
|
1100
|
-
let j = ((W =
|
|
1103
|
+
let j = ((W = o == null ? void 0 : o.allSteps) == null ? void 0 : W.currentStep) === ((R = (_ = o == null ? void 0 : o.allSteps) == null ? void 0 : _.steps) == null ? void 0 : R.length) - 1;
|
|
1101
1104
|
v.emit(it.TransactionStatus, {
|
|
1102
|
-
...
|
|
1103
|
-
status: !j && ((Q =
|
|
1105
|
+
...E,
|
|
1106
|
+
status: !j && ((Q = E == null ? void 0 : E.data) == null ? void 0 : Q.status) === "success" ? "in-progress" : (z = E == null ? void 0 : E.data) == null ? void 0 : z.status,
|
|
1104
1107
|
isLastStep: j
|
|
1105
|
-
}),
|
|
1108
|
+
}), E && N(E);
|
|
1106
1109
|
}
|
|
1107
1110
|
});
|
|
1108
|
-
} catch (
|
|
1109
|
-
|
|
1111
|
+
} catch (D) {
|
|
1112
|
+
console.log(D, "err123");
|
|
1113
|
+
const M = yt(D.message || D.details || D), V = D.message || D.details || D;
|
|
1110
1114
|
M && (V != null && V.length) && s.current && t("/wallet error", {
|
|
1111
1115
|
error: V
|
|
1112
1116
|
}), a({ error: V, type: "wallet" });
|
|
1113
1117
|
}
|
|
1114
1118
|
}
|
|
1115
|
-
function N(
|
|
1116
|
-
var A, I,
|
|
1117
|
-
if ((A =
|
|
1118
|
-
...(
|
|
1119
|
-
statusData:
|
|
1119
|
+
function N(y) {
|
|
1120
|
+
var A, I, D, M, V, E, j, F, H, W, _, R, Q, z, Z, X, Y, tt;
|
|
1121
|
+
if ((A = y == null ? void 0 : y.data) != null && A.status && s.current && n({
|
|
1122
|
+
...(D = (I = c) == null ? void 0 : I.getState()) == null ? void 0 : D.persist,
|
|
1123
|
+
statusData: y == null ? void 0 : y.data,
|
|
1120
1124
|
stepStatus: i({
|
|
1121
|
-
status: ((M =
|
|
1125
|
+
status: ((M = y == null ? void 0 : y.data) == null ? void 0 : M.status) == "in-progress" ? "pending" : (V = y == null ? void 0 : y.data) == null ? void 0 : V.status
|
|
1122
1126
|
})
|
|
1123
|
-
}), e(
|
|
1124
|
-
let
|
|
1127
|
+
}), e(y), y.status == "error" && a(y), ((E = y.data) == null ? void 0 : E.status) == "success") {
|
|
1128
|
+
let et = o.allSteps.steps[o.allSteps.currentStep + 1];
|
|
1125
1129
|
if (a({ error: "" }), n({
|
|
1126
1130
|
...c.getState().persist,
|
|
1127
|
-
stepData:
|
|
1128
|
-
}),
|
|
1131
|
+
stepData: et || c.getState().persist.stepData
|
|
1132
|
+
}), o.allSteps.currentStep == ((F = (j = o.allSteps) == null ? void 0 : j.steps) == null ? void 0 : F.length) - 1)
|
|
1129
1133
|
n({
|
|
1130
1134
|
...c.getState().persist,
|
|
1131
1135
|
allSteps: {
|
|
1132
1136
|
...c.getState().persist.allSteps,
|
|
1133
|
-
currentStep:
|
|
1137
|
+
currentStep: o.allSteps.currentStep + 1,
|
|
1134
1138
|
type: "preText"
|
|
1135
1139
|
}
|
|
1136
1140
|
});
|
|
1137
|
-
else if (
|
|
1138
|
-
|
|
1141
|
+
else if (o.allSteps.currentStep <= ((W = (H = o.allSteps) == null ? void 0 : H.steps) == null ? void 0 : W.length) - 1)
|
|
1142
|
+
C(), B(o.allSteps.steps[o.allSteps.currentStep + 1], (o == null ? void 0 : o.routeId) || ((R = (_ = txnBody.data) == null ? void 0 : _.data) == null ? void 0 : R.routeId));
|
|
1139
1143
|
else
|
|
1140
1144
|
return;
|
|
1141
|
-
} else ((Q =
|
|
1145
|
+
} else ((Q = y.data) == null ? void 0 : Q.status) == "failed" || (((z = y.data) == null ? void 0 : z.status) == "refunded" ? a({ error: `${qt(((Z = o == null ? void 0 : o.stepData) == null ? void 0 : Z.stepType) || "")} failed! Tokens have been refunded to the source chain.` }) : ((X = y.data) == null ? void 0 : X.status) == "in-progress" && (Y = b == null ? void 0 : b.error) != null && Y.length && (n({ ...(tt = c.getState()) == null ? void 0 : tt.persist, loading: !0 }), a({ error: "" })));
|
|
1142
1146
|
}
|
|
1143
|
-
return G(() => (
|
|
1144
|
-
|
|
1147
|
+
return G(() => (o.hash && g(o.hash), () => {
|
|
1148
|
+
m.abort();
|
|
1145
1149
|
}), []), G(() => (s.current = !0, () => {
|
|
1146
1150
|
s.current = !1;
|
|
1147
1151
|
}), []), { handleExeTxn: d };
|
|
1148
1152
|
}
|
|
1149
|
-
function ln({ setExchange: n, startTimer:
|
|
1150
|
-
var
|
|
1151
|
-
const e = c((T) => T.persist), i = c((T) => T.setPersist), [b, a] =
|
|
1152
|
-
chainId: Number(((j = (
|
|
1153
|
+
function ln({ setExchange: n, startTimer: o, handleBack: t }) {
|
|
1154
|
+
var E, j, F, H, W, _, R, Q, z, Z, X, Y, tt, et, ct, xt, dt, P, Tt, vt, Ct, Et, Nt;
|
|
1155
|
+
const e = c((T) => T.persist), i = c((T) => T.setPersist), [b, a] = rt(!1), { handleTxnSuccess: m } = K(Rt), { isErrorMessage: p, handleErrorMessage: l, errorMessage: k } = K(lt), { chain: h } = ft(), C = e.isHistory, { handleStepStatus: B, handleUpdate: v, handleTryAgain: U, isShowNewQuote: s, callRegisterError: w } = Qt(), { handleExeTxn: x } = D0(), { nextTx: d, handleSkipTxn: g, callNextTx: N, txnBody: S } = St(!0), { switchChain: u } = de({
|
|
1156
|
+
chainId: Number(((j = (E = e == null ? void 0 : e.stepData) == null ? void 0 : E.from) == null ? void 0 : j.chainId) || "0"),
|
|
1153
1157
|
throwForSwitchChainNotSupported: !0,
|
|
1154
1158
|
onError(T) {
|
|
1155
|
-
yt(T.message) && w("wallet-error-switch", { data: { error: T.message } });
|
|
1159
|
+
console.log("Error", T), yt(T.message) && w("wallet-error-switch", { data: { error: T.message } });
|
|
1156
1160
|
}
|
|
1157
|
-
}),
|
|
1158
|
-
let A = (z = (Q = (W = e == null ? void 0 : e.allSteps) == null ? void 0 : W.steps) == null ? void 0 : Q[((_ = e.allSteps) == null ? void 0 : _.currentStep) || ((R = e == null ? void 0 : e.allSteps) == null ? void 0 : R.currentStep)]) == null ? void 0 : z.texts, I = e != null && e.loading ? e.hash ? "process" : "loading" : "pre",
|
|
1161
|
+
}), y = !ot.isEmpty((H = (F = c.getState()) == null ? void 0 : F.persist) == null ? void 0 : H.historyData);
|
|
1162
|
+
let A = (z = (Q = (W = e == null ? void 0 : e.allSteps) == null ? void 0 : W.steps) == null ? void 0 : Q[((_ = e.allSteps) == null ? void 0 : _.currentStep) || ((R = e == null ? void 0 : e.allSteps) == null ? void 0 : R.currentStep)]) == null ? void 0 : z.texts, I = e != null && e.loading ? e.hash ? "process" : "loading" : "pre", D = (Z = k == null ? void 0 : k.error) != null && Z.length ? k.error : null;
|
|
1159
1163
|
G(() => {
|
|
1160
1164
|
var T, $, O;
|
|
1161
|
-
|
|
1162
|
-
}, [
|
|
1165
|
+
y && typeof ((T = e == null ? void 0 : e.historyData) == null ? void 0 : T.currentStepIndex) < "u" && (($ = e == null ? void 0 : e.historyData) == null ? void 0 : $.currentStepStatus) == "not-started" ? N(e == null ? void 0 : e.stepData, e == null ? void 0 : e.routeId) : ((O = e == null ? void 0 : e.historyData) == null ? void 0 : O.currentStepStatus) == "in-progress" && o(!0);
|
|
1166
|
+
}, [y]), G(() => {
|
|
1163
1167
|
var T;
|
|
1164
1168
|
if (((T = e == null ? void 0 : e.allSteps) == null ? void 0 : T.currentStep) === 0 && d.data) {
|
|
1165
1169
|
let $ = d.data;
|
|
@@ -1175,50 +1179,50 @@ function ln({ setExchange: n, startTimer: r, handleBack: t }) {
|
|
|
1175
1179
|
isQuoteTimer: !1,
|
|
1176
1180
|
quote: "disable"
|
|
1177
1181
|
});
|
|
1178
|
-
}, [(
|
|
1182
|
+
}, [(X = e == null ? void 0 : e.allSteps) == null ? void 0 : X.steps, d.data]), G(() => {
|
|
1179
1183
|
var T, $;
|
|
1180
|
-
((T = e.statusData) == null ? void 0 : T.status) == "success" && e.allSteps.currentStep === (($ = e.allSteps.steps) == null ? void 0 : $.length) && (S.isSuccess || e.isSuccess) ?
|
|
1184
|
+
((T = e.statusData) == null ? void 0 : T.status) == "success" && e.allSteps.currentStep === (($ = e.allSteps.steps) == null ? void 0 : $.length) && (S.isSuccess || e.isSuccess) ? m(!0) : m(!1);
|
|
1181
1185
|
}, [e.allSteps, S.isSuccess, e.isSuccess, e == null ? void 0 : e.statusData]), G(() => {
|
|
1182
|
-
var T, $, O,
|
|
1183
|
-
(T =
|
|
1184
|
-
}, [
|
|
1186
|
+
var T, $, O, q, nt;
|
|
1187
|
+
(T = k == null ? void 0 : k.error) != null && T.length || (($ = e.statusData) == null ? void 0 : $.status) == "failed" || ((O = e.statusData) == null ? void 0 : O.status) == "partial-success" || ((q = e.statusData) == null ? void 0 : q.status) == "txn-expired" || ((nt = e.statusData) == null ? void 0 : nt.status) == "refunded" ? l(!0) : l(!1);
|
|
1188
|
+
}, [k, e == null ? void 0 : e.statusData]), G(() => {
|
|
1185
1189
|
var T, $;
|
|
1186
|
-
!((T =
|
|
1190
|
+
!((T = k == null ? void 0 : k.error) != null && T.length) && (e != null && e.hash) && (($ = e == null ? void 0 : e.statusData) == null ? void 0 : $.srcTxnHash) !== (e == null ? void 0 : e.hash) && i({
|
|
1187
1191
|
...c.getState().persist,
|
|
1188
1192
|
allSteps: {
|
|
1189
1193
|
...c.getState().persist.allSteps,
|
|
1190
1194
|
type: "postText"
|
|
1191
1195
|
}
|
|
1192
1196
|
});
|
|
1193
|
-
}, [
|
|
1194
|
-
var $, O;
|
|
1197
|
+
}, [k == null ? void 0 : k.error, e == null ? void 0 : e.hash]), G(() => {
|
|
1198
|
+
var $, O, q;
|
|
1195
1199
|
let T = { ...($ = c.getState()) == null ? void 0 : $.persist };
|
|
1196
|
-
((O = e == null ? void 0 : e.allSteps) == null ? void 0 : O.steps) !== null && (T = {
|
|
1200
|
+
((O = e == null ? void 0 : e.allSteps) == null ? void 0 : O.steps) !== null && (console.log((q = e == null ? void 0 : e.allSteps) == null ? void 0 : q.steps, "Called"), T = {
|
|
1197
1201
|
...T,
|
|
1198
1202
|
stepStatus: B()
|
|
1199
1203
|
}, i(T));
|
|
1200
1204
|
}, [e.allSteps]), G(() => {
|
|
1201
1205
|
var T;
|
|
1202
|
-
|
|
1206
|
+
ot.isEmpty(e == null ? void 0 : e.allSteps) || e.hash || i({
|
|
1203
1207
|
...c.getState().persist,
|
|
1204
1208
|
allSteps: { ...c.getState().persist.allSteps, type: "preText" },
|
|
1205
1209
|
loading: !1
|
|
1206
|
-
}), e != null && e.routeId && !
|
|
1210
|
+
}), e != null && e.routeId && !C && n(), g(e == null ? void 0 : e.nextTx), ((T = e == null ? void 0 : e.nextTx) == null ? void 0 : T.status) === "error" && (i({
|
|
1207
1211
|
...c.getState().persist,
|
|
1208
1212
|
loading: !0
|
|
1209
1213
|
}), N(e == null ? void 0 : e.stepData, e == null ? void 0 : e.routeId));
|
|
1210
1214
|
}, []), G(() => {
|
|
1211
1215
|
var T;
|
|
1212
|
-
|
|
1213
|
-
}, [
|
|
1216
|
+
p && !b && i({ ...(T = c.getState()) == null ? void 0 : T.persist, loading: !1 });
|
|
1217
|
+
}, [p, b]), G(() => {
|
|
1214
1218
|
var T, $, O;
|
|
1215
1219
|
(O = ($ = (T = c.getState()) == null ? void 0 : T.persist) == null ? void 0 : $.nextTx) != null && O.data && b && (V(), a(!1));
|
|
1216
|
-
}, [(
|
|
1220
|
+
}, [(et = (tt = (Y = c.getState()) == null ? void 0 : Y.persist) == null ? void 0 : tt.nextTx) == null ? void 0 : et.data]);
|
|
1217
1221
|
function M(T) {
|
|
1218
1222
|
a(T);
|
|
1219
1223
|
}
|
|
1220
1224
|
async function V() {
|
|
1221
|
-
var T, $, O,
|
|
1225
|
+
var T, $, O, q, nt, bt;
|
|
1222
1226
|
($ = e.allSteps.steps) != null && $[((T = e.allSteps) == null ? void 0 : T.currentStep) || 0] && (i({
|
|
1223
1227
|
...(O = c.getState()) == null ? void 0 : O.persist,
|
|
1224
1228
|
loading: !0,
|
|
@@ -1227,8 +1231,8 @@ function ln({ setExchange: n, startTimer: r, handleBack: t }) {
|
|
|
1227
1231
|
isQuoteTimer: !1,
|
|
1228
1232
|
showAcceptQuote: !1,
|
|
1229
1233
|
quote: "disable",
|
|
1230
|
-
startTime: ((bt = (nt = (
|
|
1231
|
-
}),
|
|
1234
|
+
startTime: ((bt = (nt = (q = c) == null ? void 0 : q.getState()) == null ? void 0 : nt.persist) == null ? void 0 : bt.startTime) || (/* @__PURE__ */ new Date()).getTime()
|
|
1235
|
+
}), o(!0), x(), i({
|
|
1232
1236
|
...c.getState().persist,
|
|
1233
1237
|
allSteps: {
|
|
1234
1238
|
...c.getState().persist.allSteps,
|
|
@@ -1237,38 +1241,38 @@ function ln({ setExchange: n, startTimer: r, handleBack: t }) {
|
|
|
1237
1241
|
}));
|
|
1238
1242
|
}
|
|
1239
1243
|
return G(() => {
|
|
1240
|
-
var T, $, O,
|
|
1244
|
+
var T, $, O, q, nt, bt, At;
|
|
1241
1245
|
if (($ = (T = e == null ? void 0 : e.stepData) == null ? void 0 : T.from) != null && $.chainId)
|
|
1242
|
-
Number((
|
|
1246
|
+
Number((q = (O = e == null ? void 0 : e.stepData) == null ? void 0 : O.from) == null ? void 0 : q.chainId) !== (h == null ? void 0 : h.chainId) && ((nt = e == null ? void 0 : e.fromChain) == null ? void 0 : nt.networkType) === "evm" && u({
|
|
1243
1247
|
chainId: Number(((At = (bt = e == null ? void 0 : e.stepData) == null ? void 0 : bt.from) == null ? void 0 : At.chainId) || "0")
|
|
1244
1248
|
});
|
|
1245
1249
|
else return;
|
|
1246
|
-
}, [e == null ? void 0 : e.stepData]), /* @__PURE__ */
|
|
1247
|
-
((ct = e == null ? void 0 : e.statusData) == null ? void 0 : ct.status) !== "txn-expired" ? /* @__PURE__ */
|
|
1250
|
+
}, [e == null ? void 0 : e.stepData]), /* @__PURE__ */ f(L, { children: [
|
|
1251
|
+
((ct = e == null ? void 0 : e.statusData) == null ? void 0 : ct.status) !== "txn-expired" ? /* @__PURE__ */ r("div", { className: `bw-pt-4 bw-h-[80%] bw-mt-2 bw-relative ${s ? "bw-pointer-events-none bw-opacity-60" : ""}`, children: !S.isFetching && !ot.isEmpty(e == null ? void 0 : e.stepData) ? S.isSuccess && S.data || e != null && e.routeId ? (Tt = ((xt = e == null ? void 0 : e.allSteps) == null ? void 0 : xt.steps) || ((P = (dt = S.data) == null ? void 0 : dt.data) == null ? void 0 : P.steps)) == null ? void 0 : Tt.map((T, $, O) => /* @__PURE__ */ f(L, { children: [
|
|
1248
1252
|
" ",
|
|
1249
|
-
/* @__PURE__ */
|
|
1250
|
-
/* @__PURE__ */
|
|
1251
|
-
/* @__PURE__ */
|
|
1252
|
-
/* @__PURE__ */
|
|
1253
|
+
/* @__PURE__ */ f("div", { className: "bw-flex bw-items-start bw-mb-4 bw-justify-between", children: [
|
|
1254
|
+
/* @__PURE__ */ f("div", { className: "bw-flex bw-relative bw-items-start bw-w-max bw-justify-center bw-gap-x-3", children: [
|
|
1255
|
+
/* @__PURE__ */ r(y0, { allSteps: e.allSteps, disableButton: e == null ? void 0 : e.loading, i: $, arr: O }),
|
|
1256
|
+
/* @__PURE__ */ r(o0, { item: T, i: $ })
|
|
1253
1257
|
] }),
|
|
1254
|
-
/* @__PURE__ */
|
|
1258
|
+
/* @__PURE__ */ r(n0, { i: $, item: T })
|
|
1255
1259
|
] })
|
|
1256
|
-
] })) : /* @__PURE__ */
|
|
1257
|
-
/* @__PURE__ */
|
|
1258
|
-
/* @__PURE__ */
|
|
1259
|
-
] }) }) }) : /* @__PURE__ */
|
|
1260
|
-
!S.isFetching && !
|
|
1261
|
-
/* @__PURE__ */
|
|
1262
|
-
/* @__PURE__ */
|
|
1263
|
-
] }) : /* @__PURE__ */
|
|
1264
|
-
/* @__PURE__ */
|
|
1265
|
-
/* @__PURE__ */
|
|
1266
|
-
] }) :
|
|
1260
|
+
] })) : /* @__PURE__ */ r(L, {}) : /* @__PURE__ */ r("div", { className: "bw-w-full bw-flex-1 bw-h-full bw-mt-[-5%] bw-flex bw-flex-col bw-justify-center bw-items-center ", children: D ? /* @__PURE__ */ r($t, { text: "Unable to complete the request!" }) : /* @__PURE__ */ f(L, { children: [
|
|
1261
|
+
/* @__PURE__ */ r("div", { className: "bw-relative bw-pb-4", children: /* @__PURE__ */ r(C0, {}) }),
|
|
1262
|
+
/* @__PURE__ */ r("p", { className: "bw-text-2xl bw-text-center bw-font-medium bw-text-text-secondary", children: "Initializing Transaction..." })
|
|
1263
|
+
] }) }) }) : /* @__PURE__ */ r(L, {}),
|
|
1264
|
+
!S.isFetching && !ot.isEmpty(e == null ? void 0 : e.stepData) ? s ? /* @__PURE__ */ r(E0, { handleUpdate: v }) : ((vt = e == null ? void 0 : e.statusData) == null ? void 0 : vt.status) == "success" && e.allSteps.currentStep == ((Ct = e.allSteps.steps) == null ? void 0 : Ct.length) ? /* @__PURE__ */ r(Xe, { handleBack: t }) : p ? ((Et = e.statusData) == null ? void 0 : Et.status) == "partial-success" ? /* @__PURE__ */ r(N0, { handleBack: t }) : ((Nt = e == null ? void 0 : e.statusData) == null ? void 0 : Nt.status) == "txn-expired" ? /* @__PURE__ */ f("div", { className: "bw-mt-6", children: [
|
|
1265
|
+
/* @__PURE__ */ r($t, { text: "Transaction expired!" }),
|
|
1266
|
+
/* @__PURE__ */ r("div", { className: "bw-absolute bw-bg-background-container bw-border-t bw-pt-3 bw-border-border-primary bw-w-full bw-flex bw-flex-col bw-items-center bw-justify-center bw-bottom-0", children: /* @__PURE__ */ r(Bt, { handleBack: t, errorText: D }) })
|
|
1267
|
+
] }) : /* @__PURE__ */ r(t0, { errorText: D, handleGoBack: t, txnTextObj: A, handleExeTxn: U, handleDisable: M }) : /* @__PURE__ */ f("div", { className: "bw-absolute bw-bg-background-container bw-border-t bw-pt-3 bw-border-border-primary bw-w-full bw-flex bw-flex-col bw-items-center bw-justify-center bw-bottom-0", children: [
|
|
1268
|
+
/* @__PURE__ */ r(e0, { txnProcessType: I, txnTextObj: A, errorText: D, allSteps: e == null ? void 0 : e.allSteps }),
|
|
1269
|
+
/* @__PURE__ */ r(Ye, { txnProcessType: I, txnTextObj: A, disableButton: e.loading, handleStep: V })
|
|
1270
|
+
] }) : D != null && D.length ? /* @__PURE__ */ r("div", { className: "bw-absolute bw-bg-background-container bw-border-t bw-pt-3 bw-border-border-primary bw-w-full bw-flex bw-flex-col bw-items-center bw-justify-center bw-bottom-0", children: /* @__PURE__ */ r(Bt, { handleBack: t, errorText: D }) }) : /* @__PURE__ */ r(L, {})
|
|
1267
1271
|
] });
|
|
1268
1272
|
}
|
|
1269
1273
|
var ut = { exports: {} }, F0 = ut.exports, Vt;
|
|
1270
1274
|
function B0() {
|
|
1271
|
-
return Vt || (Vt = 1, function(n,
|
|
1275
|
+
return Vt || (Vt = 1, function(n, o) {
|
|
1272
1276
|
(function(t, e) {
|
|
1273
1277
|
n.exports = e(ht);
|
|
1274
1278
|
})(typeof self < "u" ? self : F0, (t) => (() => {
|
|
@@ -1288,15 +1292,15 @@ function B0() {
|
|
|
1288
1292
|
};
|
|
1289
1293
|
var a = {};
|
|
1290
1294
|
b.r(a), b.d(a, { default: () => s, useStopwatch: () => v, useTime: () => U, useTimer: () => B });
|
|
1291
|
-
var
|
|
1292
|
-
class
|
|
1295
|
+
var m = b(155);
|
|
1296
|
+
class p {
|
|
1293
1297
|
static expiryTimestamp(x) {
|
|
1294
1298
|
const d = new Date(x).getTime() > 0;
|
|
1295
|
-
return d;
|
|
1299
|
+
return d || console.warn("react-timer-hook: { useTimer } Invalid expiryTimestamp settings", x), d;
|
|
1296
1300
|
}
|
|
1297
1301
|
static onExpire(x) {
|
|
1298
1302
|
const d = x && typeof x == "function";
|
|
1299
|
-
return d;
|
|
1303
|
+
return x && !d && console.warn("react-timer-hook: { useTimer } Invalid onExpire settings function", x), d;
|
|
1300
1304
|
}
|
|
1301
1305
|
}
|
|
1302
1306
|
class l {
|
|
@@ -1326,15 +1330,15 @@ function B0() {
|
|
|
1326
1330
|
}
|
|
1327
1331
|
static getFormattedTimeFromSeconds(x, d) {
|
|
1328
1332
|
const { seconds: g, minutes: N, hours: S } = l.getTimeFromSeconds(x);
|
|
1329
|
-
let
|
|
1330
|
-
return d === "12-hour" && (
|
|
1333
|
+
let u = "", y = S;
|
|
1334
|
+
return d === "12-hour" && (u = S >= 12 ? "pm" : "am", y = S % 12), { seconds: g, minutes: N, hours: y, ampm: u };
|
|
1331
1335
|
}
|
|
1332
1336
|
}
|
|
1333
|
-
function
|
|
1334
|
-
const d = (0,
|
|
1335
|
-
(0,
|
|
1337
|
+
function k(w, x) {
|
|
1338
|
+
const d = (0, m.useRef)();
|
|
1339
|
+
(0, m.useEffect)(() => {
|
|
1336
1340
|
d.current = w;
|
|
1337
|
-
}), (0,
|
|
1341
|
+
}), (0, m.useEffect)(() => {
|
|
1338
1342
|
if (!x) return () => {
|
|
1339
1343
|
};
|
|
1340
1344
|
const g = setInterval(() => {
|
|
@@ -1343,60 +1347,61 @@ function B0() {
|
|
|
1343
1347
|
return () => clearInterval(g);
|
|
1344
1348
|
}, [x]);
|
|
1345
1349
|
}
|
|
1346
|
-
const
|
|
1347
|
-
function
|
|
1348
|
-
if (!
|
|
1350
|
+
const h = 1e3;
|
|
1351
|
+
function C(w) {
|
|
1352
|
+
if (!p.expiryTimestamp(w)) return null;
|
|
1349
1353
|
const x = l.getSecondsFromExpiry(w), d = Math.floor(1e3 * (x - Math.floor(x)));
|
|
1350
|
-
return d > 0 ? d :
|
|
1354
|
+
return d > 0 ? d : h;
|
|
1351
1355
|
}
|
|
1352
1356
|
function B() {
|
|
1353
1357
|
let { expiryTimestamp: w, onExpire: x, autoStart: d = !0 } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1354
|
-
const [g, N] = (0,
|
|
1355
|
-
|
|
1356
|
-
}, [x]), j = (0,
|
|
1358
|
+
const [g, N] = (0, m.useState)(w), [S, u] = (0, m.useState)(l.getSecondsFromExpiry(g)), [y, A] = (0, m.useState)(d), [I, D] = (0, m.useState)(d), [M, V] = (0, m.useState)(C(g)), E = (0, m.useCallback)(() => {
|
|
1359
|
+
p.onExpire(x) && x(), A(!1), V(null);
|
|
1360
|
+
}, [x]), j = (0, m.useCallback)(() => {
|
|
1357
1361
|
A(!1);
|
|
1358
|
-
}, []),
|
|
1362
|
+
}, []), F = (0, m.useCallback)(function(_) {
|
|
1359
1363
|
let R = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
|
|
1360
|
-
V(
|
|
1361
|
-
}, []), H = (0,
|
|
1364
|
+
V(C(_)), D(R), A(R), N(_), u(l.getSecondsFromExpiry(_));
|
|
1365
|
+
}, []), H = (0, m.useCallback)(() => {
|
|
1362
1366
|
const _ = /* @__PURE__ */ new Date();
|
|
1363
|
-
_.setMilliseconds(_.getMilliseconds() + 1e3 * S),
|
|
1364
|
-
}, [S,
|
|
1365
|
-
I ? (
|
|
1367
|
+
_.setMilliseconds(_.getMilliseconds() + 1e3 * S), F(_);
|
|
1368
|
+
}, [S, F]), W = (0, m.useCallback)(() => {
|
|
1369
|
+
I ? (u(l.getSecondsFromExpiry(g)), A(!0)) : H();
|
|
1366
1370
|
}, [g, I, H]);
|
|
1367
|
-
return
|
|
1368
|
-
M !==
|
|
1371
|
+
return k(() => {
|
|
1372
|
+
M !== h && V(h);
|
|
1369
1373
|
const _ = l.getSecondsFromExpiry(g);
|
|
1370
|
-
|
|
1371
|
-
},
|
|
1374
|
+
u(_), _ <= 0 && E();
|
|
1375
|
+
}, y ? M : null), { ...l.getTimeFromSeconds(S), start: W, pause: j, resume: H, restart: F, isRunning: y };
|
|
1372
1376
|
}
|
|
1373
1377
|
function v() {
|
|
1374
1378
|
let { autoStart: w, offsetTimestamp: x } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1375
|
-
const [d, g] = (0,
|
|
1376
|
-
|
|
1377
|
-
|
|
1379
|
+
const [d, g] = (0, m.useState)(l.getSecondsFromExpiry(x, !0) || 0), [N, S] = (0, m.useState)(/* @__PURE__ */ new Date()), [u, y] = (0, m.useState)(d + l.getSecondsFromPrevTime(N || 0, !0)), [A, I] = (0, m.useState)(w);
|
|
1380
|
+
k(() => {
|
|
1381
|
+
y(d + l.getSecondsFromPrevTime(N, !0));
|
|
1378
1382
|
}, A ? 1e3 : null);
|
|
1379
|
-
const
|
|
1380
|
-
const
|
|
1381
|
-
S(
|
|
1382
|
-
}, [d]), M = (0,
|
|
1383
|
-
g(
|
|
1384
|
-
}, [
|
|
1385
|
-
let
|
|
1386
|
-
const
|
|
1387
|
-
S(H), g(
|
|
1383
|
+
const D = (0, m.useCallback)(() => {
|
|
1384
|
+
const E = /* @__PURE__ */ new Date();
|
|
1385
|
+
S(E), I(!0), y(d + l.getSecondsFromPrevTime(E, !0));
|
|
1386
|
+
}, [d]), M = (0, m.useCallback)(() => {
|
|
1387
|
+
g(u), I(!1);
|
|
1388
|
+
}, [u]), V = (0, m.useCallback)(function() {
|
|
1389
|
+
let E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, j = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
|
|
1390
|
+
const F = l.getSecondsFromExpiry(E, !0) || 0, H = /* @__PURE__ */ new Date();
|
|
1391
|
+
S(H), g(F), I(j), y(F + l.getSecondsFromPrevTime(H, !0));
|
|
1388
1392
|
}, []);
|
|
1389
|
-
return { ...l.getTimeFromSeconds(
|
|
1393
|
+
return { ...l.getTimeFromSeconds(u), start: D, pause: M, reset: V, isRunning: A };
|
|
1390
1394
|
}
|
|
1391
1395
|
function U() {
|
|
1392
1396
|
let { format: w } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1393
|
-
const [x, d] = (0,
|
|
1394
|
-
return
|
|
1397
|
+
const [x, d] = (0, m.useState)(l.getSecondsFromTimeNow());
|
|
1398
|
+
return k(() => {
|
|
1395
1399
|
d(l.getSecondsFromTimeNow());
|
|
1396
1400
|
}, 1e3), { ...l.getFormattedTimeFromSeconds(x, w) };
|
|
1397
1401
|
}
|
|
1398
1402
|
function s(w) {
|
|
1399
|
-
if ((0,
|
|
1403
|
+
if ((0, m.useEffect)(() => {
|
|
1404
|
+
console.warn("react-timer-hook: default export useTimer is deprecated, use named exports { useTimer, useStopwatch, useTime } instead");
|
|
1400
1405
|
}, []), w.expiryTimestamp) {
|
|
1401
1406
|
const d = B(w);
|
|
1402
1407
|
return { ...d, startTimer: d.start, stopTimer: d.pause, resetTimer: () => {
|
|
@@ -1415,8 +1420,8 @@ function Pt(n) {
|
|
|
1415
1420
|
}
|
|
1416
1421
|
function V0({ handleExpiry: n }) {
|
|
1417
1422
|
var a;
|
|
1418
|
-
const
|
|
1419
|
-
let e = (
|
|
1423
|
+
const o = c((m) => m.persist), t = (o == null ? void 0 : o.route) || {};
|
|
1424
|
+
let e = (o == null ? void 0 : o.startTime) || ((a = o == null ? void 0 : o.historyData) == null ? void 0 : a.createdAt);
|
|
1420
1425
|
const { minutes: i, seconds: b } = $0.useTimer({
|
|
1421
1426
|
expiryTimestamp: e + (t == null ? void 0 : t.estimatedTimeInSeconds) * 1e3,
|
|
1422
1427
|
onExpire: () => {
|
|
@@ -1425,139 +1430,139 @@ function V0({ handleExpiry: n }) {
|
|
|
1425
1430
|
});
|
|
1426
1431
|
return `${Pt(i)}:${Pt(b)}`;
|
|
1427
1432
|
}
|
|
1428
|
-
const cn = ht.memo(function({ route:
|
|
1429
|
-
const [b, a] =
|
|
1430
|
-
function
|
|
1433
|
+
const cn = ht.memo(function({ route: o, isTimerStarted: t, startTimer: e, isErrorMessage: i }) {
|
|
1434
|
+
const [b, a] = rt(!1), { isTxnSuccessful: m } = K(Rt), l = !c((h) => h.persist).stepData;
|
|
1435
|
+
function k() {
|
|
1431
1436
|
a(!0), e(!1);
|
|
1432
1437
|
}
|
|
1433
|
-
return /* @__PURE__ */
|
|
1438
|
+
return /* @__PURE__ */ r("div", { className: "bw-border bw-w-[65px] bw-mt-5 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("p", { className: " bw-text-sm bw-text-center bw-font-medium bw-text-text-primary", children: l ? /* @__PURE__ */ r(Dt, {}) : m ? "Done" : t && !b ? /* @__PURE__ */ r(V0, { route: o, handleExpiry: k }) : b ? /* @__PURE__ */ r(Dt, {}) : "Start Txn" }) });
|
|
1434
1439
|
});
|
|
1435
|
-
function Jt(n,
|
|
1436
|
-
return Ie(n,
|
|
1440
|
+
function Jt(n, o) {
|
|
1441
|
+
return Ie(n, o) || 0;
|
|
1437
1442
|
}
|
|
1438
1443
|
function P0() {
|
|
1439
|
-
var
|
|
1440
|
-
const n = c((
|
|
1441
|
-
return /* @__PURE__ */
|
|
1442
|
-
/* @__PURE__ */
|
|
1443
|
-
/* @__PURE__ */
|
|
1444
|
-
/* @__PURE__ */
|
|
1445
|
-
/* @__PURE__ */
|
|
1446
|
-
` ${
|
|
1447
|
-
|
|
1448
|
-
/* @__PURE__ */
|
|
1444
|
+
var o, t, e, i, b, a, m;
|
|
1445
|
+
const n = c((p) => p.persist);
|
|
1446
|
+
return /* @__PURE__ */ f("div", { className: "bw-w-full bw-px-3 bw-py-2 bw-border-t bw-border-border-primary", children: [
|
|
1447
|
+
/* @__PURE__ */ r("div", { children: (t = (o = n == null ? void 0 : n.route) == null ? void 0 : o.fee) == null ? void 0 : t.filter((p, l) => p.source == "FROM_SOURCE_WALLET").map((p, l) => (console.log(p, "item"), p.amountInUSD ? /* @__PURE__ */ f("div", { className: "bw-flex bw-mb-1 bw-items-center bw-justify-between", children: [
|
|
1448
|
+
/* @__PURE__ */ r("p", { className: "bw-text-text-secondary bw-text-sm bw-font-semibold", children: `${qt(p.type)} Fee` }),
|
|
1449
|
+
/* @__PURE__ */ f("span", { className: "bw-text-text-secondary bw-text-sm bw-font-bold", children: [
|
|
1450
|
+
/* @__PURE__ */ r(at, { value: Jt(p.amountInToken, p.token.decimals).toFixed(20) || 0, options: { maxDecimals: 8 } }),
|
|
1451
|
+
` ${p.token.symbol} ${p.amountInUSD ? " ($" : ""}`,
|
|
1452
|
+
p.amountInUSD ? /* @__PURE__ */ f(L, { children: [
|
|
1453
|
+
/* @__PURE__ */ r(at, { value: p.amountInUSD || 0, options: { maxDecimals: 8 } }),
|
|
1449
1454
|
")"
|
|
1450
1455
|
] }) : ""
|
|
1451
1456
|
] })
|
|
1452
|
-
] }, l) : /* @__PURE__ */
|
|
1453
|
-
/* @__PURE__ */
|
|
1454
|
-
/* @__PURE__ */
|
|
1455
|
-
/* @__PURE__ */
|
|
1456
|
-
/* @__PURE__ */
|
|
1457
|
-
/* @__PURE__ */
|
|
1457
|
+
] }, l) : /* @__PURE__ */ r(L, {}))) }),
|
|
1458
|
+
/* @__PURE__ */ r("div", { className: "bw-w-full bw-h-[1px] bw-border-b bw-my-2 bw-border-border-primary" }),
|
|
1459
|
+
/* @__PURE__ */ f("div", { className: "bw-w-full", children: [
|
|
1460
|
+
/* @__PURE__ */ f("div", { className: "bw-flex bw-items-center bw-mb-2 bw-justify-between", children: [
|
|
1461
|
+
/* @__PURE__ */ r("p", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: "Max Slippage" }),
|
|
1462
|
+
/* @__PURE__ */ f("span", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: [
|
|
1458
1463
|
(((e = n == null ? void 0 : n.route) == null ? void 0 : e.slippage) || 0) / 100,
|
|
1459
1464
|
"%"
|
|
1460
1465
|
] })
|
|
1461
1466
|
] }),
|
|
1462
|
-
/* @__PURE__ */
|
|
1463
|
-
/* @__PURE__ */
|
|
1464
|
-
/* @__PURE__ */
|
|
1467
|
+
/* @__PURE__ */ f("div", { className: "bw-flex bw-items-center bw-justify-between", children: [
|
|
1468
|
+
/* @__PURE__ */ r("p", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: "Minimum Received" }),
|
|
1469
|
+
/* @__PURE__ */ r("span", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: (i = n == null ? void 0 : n.route) != null && i.minOutputAmountDisplay || (b = n == null ? void 0 : n.route) != null && b.minOutputAmount ? `${Mt(n.route.minOutputAmountDisplay || n.route.minOutputAmount, 10)} ${(m = (a = n == null ? void 0 : n.route) == null ? void 0 : a.to) == null ? void 0 : m.symbol}` : "" })
|
|
1465
1470
|
] })
|
|
1466
1471
|
] })
|
|
1467
1472
|
] });
|
|
1468
1473
|
}
|
|
1469
1474
|
function j0({ isShowFull: n }) {
|
|
1470
|
-
return /* @__PURE__ */
|
|
1475
|
+
return /* @__PURE__ */ r("button", { className: "bw-w-[20px] bw-h-[20px] bw-flex bw-items-center bw-justify-center bw-border bw-border-border-primary bw-rounded-full bw-text-text-secondary bw-text-lg bw-font-normal", children: /* @__PURE__ */ r("div", { className: `bw-mt-[1px] ${n ? "bw-rotate-180" : ""}`, children: /* @__PURE__ */ r(he, { fill: "var(--tw-text-primary)" }) }) });
|
|
1471
1476
|
}
|
|
1472
1477
|
function _0({ gasData: n }) {
|
|
1473
1478
|
var t;
|
|
1474
|
-
const
|
|
1475
|
-
return /* @__PURE__ */
|
|
1476
|
-
/* @__PURE__ */
|
|
1477
|
-
/* @__PURE__ */
|
|
1478
|
-
(((t =
|
|
1479
|
+
const o = c((e) => e.persist);
|
|
1480
|
+
return /* @__PURE__ */ f("div", { className: "bw-flex bw-w-full bw-h-full bw-items-center", children: [
|
|
1481
|
+
/* @__PURE__ */ r("span", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: "Max Slippage:" }),
|
|
1482
|
+
/* @__PURE__ */ f("span", { className: "bw-text-xs bw-ml-[3px] bw-font-bold bw-text-text-secondary", children: [
|
|
1483
|
+
(((t = o == null ? void 0 : o.route) == null ? void 0 : t.slippage) || 0) / 100,
|
|
1479
1484
|
"%"
|
|
1480
1485
|
] }),
|
|
1481
|
-
/* @__PURE__ */
|
|
1482
|
-
/* @__PURE__ */
|
|
1483
|
-
/* @__PURE__ */
|
|
1484
|
-
/* @__PURE__ */
|
|
1486
|
+
/* @__PURE__ */ r("div", { className: "bw-w-[2px] bw-h-[24px] bw-mx-3 bw-bg-text-secondary" }),
|
|
1487
|
+
/* @__PURE__ */ r("span", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: "Fees:" }),
|
|
1488
|
+
/* @__PURE__ */ f("span", { className: "bw-text-xs bw-ml-[3px] bw-font-bold bw-text-text-secondary", children: [
|
|
1489
|
+
/* @__PURE__ */ r(at, { value: (n == null ? void 0 : n.payableInToken) || 0, options: { maxDecimals: 8 } }),
|
|
1485
1490
|
` ${n == null ? void 0 : n.symbol} ${n != null && n.payableInUSD ? " ($" : ""}`,
|
|
1486
|
-
n != null && n.payableInUSD ? /* @__PURE__ */
|
|
1487
|
-
/* @__PURE__ */
|
|
1491
|
+
n != null && n.payableInUSD ? /* @__PURE__ */ f(L, { children: [
|
|
1492
|
+
/* @__PURE__ */ r(at, { value: (n == null ? void 0 : n.payableInUSD) || 0, options: { maxDecimals: 8 } }),
|
|
1488
1493
|
")"
|
|
1489
1494
|
] }) : ""
|
|
1490
1495
|
] })
|
|
1491
1496
|
] });
|
|
1492
1497
|
}
|
|
1493
1498
|
function U0({ gasData: n }) {
|
|
1494
|
-
return /* @__PURE__ */
|
|
1495
|
-
/* @__PURE__ */
|
|
1496
|
-
/* @__PURE__ */
|
|
1497
|
-
/* @__PURE__ */
|
|
1499
|
+
return /* @__PURE__ */ f("div", { className: "bw-w-full bw-flex bw-items-center bw-justify-between bw-border-border-primary", children: [
|
|
1500
|
+
/* @__PURE__ */ r("span", { className: "bw-text-sm bw-font-bold bw-text-text-primary", children: "Fees" }),
|
|
1501
|
+
/* @__PURE__ */ f("span", { className: "bw-text-sm bw-ml-[3px] bw-font-bold bw-text-text-primary", children: [
|
|
1502
|
+
/* @__PURE__ */ r(at, { value: (n == null ? void 0 : n.payableInToken) || 0, options: { maxDecimals: 8 } }),
|
|
1498
1503
|
` ${n == null ? void 0 : n.symbol} ${n != null && n.payableInUSD ? " ($" : ""}`,
|
|
1499
|
-
n != null && n.payableInUSD ? /* @__PURE__ */
|
|
1500
|
-
/* @__PURE__ */
|
|
1504
|
+
n != null && n.payableInUSD ? /* @__PURE__ */ f(L, { children: [
|
|
1505
|
+
/* @__PURE__ */ r(at, { value: (n == null ? void 0 : n.payableInUSD) || 0, options: { maxDecimals: 8 } }),
|
|
1501
1506
|
")"
|
|
1502
1507
|
] }) : ""
|
|
1503
1508
|
] })
|
|
1504
1509
|
] });
|
|
1505
1510
|
}
|
|
1506
|
-
function G0({ gasData: n, isShowFull:
|
|
1507
|
-
return /* @__PURE__ */
|
|
1508
|
-
|
|
1509
|
-
/* @__PURE__ */
|
|
1511
|
+
function G0({ gasData: n, isShowFull: o }) {
|
|
1512
|
+
return /* @__PURE__ */ f("div", { className: "bw-flex bw-items-center bw-justify-between bw-gap-x-2 bw-h-[35px] bw-px-3", children: [
|
|
1513
|
+
o ? /* @__PURE__ */ r(U0, { gasData: n }) : /* @__PURE__ */ r(_0, { gasData: n }),
|
|
1514
|
+
/* @__PURE__ */ r(j0, { isShowFull: o })
|
|
1510
1515
|
] });
|
|
1511
1516
|
}
|
|
1512
1517
|
function xn() {
|
|
1513
|
-
var l,
|
|
1514
|
-
const n = c((
|
|
1515
|
-
G(() => {
|
|
1518
|
+
var l, k;
|
|
1519
|
+
const n = c((h) => h.persist), [o, t] = rt(!1), e = c((h) => h.configuration), i = mt(null), [b, a] = rt(0);
|
|
1520
|
+
console.log(b, "content"), G(() => {
|
|
1516
1521
|
if (i.current) {
|
|
1517
|
-
const
|
|
1518
|
-
const
|
|
1519
|
-
a(
|
|
1522
|
+
const h = setTimeout(() => {
|
|
1523
|
+
const C = i.current.scrollHeight;
|
|
1524
|
+
a(C);
|
|
1520
1525
|
}, 50);
|
|
1521
|
-
return () => clearTimeout(
|
|
1526
|
+
return () => clearTimeout(h);
|
|
1522
1527
|
}
|
|
1523
|
-
}, [n == null ? void 0 : n.route,
|
|
1524
|
-
function
|
|
1525
|
-
t(!
|
|
1528
|
+
}, [n == null ? void 0 : n.route, o]);
|
|
1529
|
+
function m() {
|
|
1530
|
+
t(!o);
|
|
1526
1531
|
}
|
|
1527
|
-
const
|
|
1528
|
-
var
|
|
1529
|
-
let
|
|
1532
|
+
const p = oe(() => {
|
|
1533
|
+
var C, B;
|
|
1534
|
+
let h = {
|
|
1530
1535
|
payableInUSD: 0,
|
|
1531
1536
|
payableInToken: 0,
|
|
1532
1537
|
symbol: ""
|
|
1533
1538
|
};
|
|
1534
|
-
return (B = (
|
|
1535
|
-
v.source == "FROM_SOURCE_WALLET" && (
|
|
1536
|
-
}),
|
|
1539
|
+
return (B = (C = n == null ? void 0 : n.route) == null ? void 0 : C.fee) == null || B.forEach((v) => {
|
|
1540
|
+
v.source == "FROM_SOURCE_WALLET" && (h.payableInUSD += Number(v.amountInUSD), h.payableInToken += Jt(Number(v.amountInToken), v.token.decimals), h.symbol = v.token.symbol);
|
|
1541
|
+
}), h;
|
|
1537
1542
|
}, [n == null ? void 0 : n.route]);
|
|
1538
|
-
return /* @__PURE__ */
|
|
1543
|
+
return /* @__PURE__ */ f(
|
|
1539
1544
|
"div",
|
|
1540
1545
|
{
|
|
1541
1546
|
onClick: () => {
|
|
1542
|
-
|
|
1547
|
+
m();
|
|
1543
1548
|
},
|
|
1544
1549
|
style: {
|
|
1545
|
-
boxShadow: e && e.customTheme && ((
|
|
1550
|
+
boxShadow: e && e.customTheme && ((k = (l = e.customTheme) == null ? void 0 : l.shadow) == null ? void 0 : k.boxShadow) || "0px 0px 5.8px 0px #00000026"
|
|
1546
1551
|
},
|
|
1547
1552
|
className: "bw-w-full bw-sticky bw-top-0 bw-z-20 bw-select-none bw-cursor-pointer bw-bg-background-container bw-rounded-lg bw-min-h-max bw-border bw-border-border-primary bw-overflow-hidden",
|
|
1548
1553
|
children: [
|
|
1549
|
-
/* @__PURE__ */
|
|
1550
|
-
/* @__PURE__ */
|
|
1554
|
+
/* @__PURE__ */ r(G0, { gasData: p, isShowFull: o }),
|
|
1555
|
+
/* @__PURE__ */ r(
|
|
1551
1556
|
"div",
|
|
1552
1557
|
{
|
|
1553
1558
|
ref: i,
|
|
1554
1559
|
style: {
|
|
1555
|
-
height:
|
|
1560
|
+
height: o ? `${b}px` : "0",
|
|
1556
1561
|
transition: "height 0.3s ease-in-out",
|
|
1557
1562
|
overflow: "hidden",
|
|
1558
1563
|
visibility: b === 0 ? "hidden" : "visible"
|
|
1559
1564
|
},
|
|
1560
|
-
children: /* @__PURE__ */
|
|
1565
|
+
children: /* @__PURE__ */ r("div", { className: "bw-h-auto", children: /* @__PURE__ */ r(P0, { showFull: o }) })
|
|
1561
1566
|
}
|
|
1562
1567
|
)
|
|
1563
1568
|
]
|
|
@@ -1569,7 +1574,7 @@ export {
|
|
|
1569
1574
|
sn as H,
|
|
1570
1575
|
Rt as T,
|
|
1571
1576
|
lt as a,
|
|
1572
|
-
|
|
1577
|
+
rn as b,
|
|
1573
1578
|
cn as c,
|
|
1574
1579
|
ln as d,
|
|
1575
1580
|
an as e
|