@blockend/widget 1.0.49-beta.2 → 1.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AllRoutes-SK8ZFq_x.js → AllRoutes-CULIQsat.js} +9 -9
- package/dist/{Box-DAMq9mQT.js → Box-NqP6AVwQ.js} +6 -6
- package/dist/EstGas-Dh9afjPx.js +12661 -0
- package/dist/{Grow-Qzfjlf_b.js → Grow-DimeDg31.js} +2 -2
- package/dist/{InputComp-BUhhYfS_.js → InputComp-yY8lKNsS.js} +3 -3
- package/dist/{LoadRoute-B9EnT59x.js → LoadRoute-C9PROsCB.js} +4 -4
- package/dist/{QuotesProgress-DMyLQ_Iw.js → QuotesProgress-BqAtKdL0.js} +1 -1
- package/dist/{SwapAsset-mgONO1Wh.js → SwapAsset-CZhHktg2.js} +1 -1
- package/dist/{Tooltip-CCwWxndh.js → Tooltip-BiZCYxM1.js} +3 -3
- package/dist/{TxnButton-CqL_9AIV.js → TxnButton-BZKqys7R.js} +23 -22
- package/dist/{add-DgNWpTbE.js → add-h0-mWiyZ.js} +1 -1
- package/dist/{all-wallets-DbLggbFH.js → all-wallets-B1G-BF4O.js} +1 -1
- package/dist/{app-store-BM-3bzwt.js → app-store-C6terlTd.js} +1 -1
- package/dist/{apple-DGgkQglq.js → apple-BAMP6vUT.js} +1 -1
- package/dist/{arrow-bottom-BCcsiVDf.js → arrow-bottom-5NtikK9r.js} +1 -1
- package/dist/{arrow-bottom-circle-BxnEnxCv.js → arrow-bottom-circle-GWblbKB-.js} +1 -1
- package/dist/{arrow-left-BajNw8Bo.js → arrow-left-CuwEORVr.js} +1 -1
- package/dist/{arrow-right-Kqyf83Ue.js → arrow-right-B7p52n9L.js} +1 -1
- package/dist/{arrow-top-P0YZuCsS.js → arrow-top-X0Z_PT4J.js} +1 -1
- package/dist/{bank-BdBlTjok.js → bank-I9RgXHkl.js} +1 -1
- package/dist/{basic-B7dsMTNk.js → basic-DlZzE8fW.js} +3 -3
- package/dist/{browser-CiQFAZ4t.js → browser-y883UdyY.js} +1 -1
- package/dist/{card-D94MFuQu.js → card-DFwMQe6t.js} +1 -1
- package/dist/{ccip-vv5r0Apm.js → ccip-BdqG54tP.js} +16 -16
- package/dist/{checkmark-Cucqq4L6.js → checkmark-DwHPcz7y.js} +1 -1
- package/dist/{checkmark-bold-C5WgesjY.js → checkmark-bold-CwUU9faI.js} +1 -1
- package/dist/{chevron-bottom-CyfhotQQ.js → chevron-bottom-CM8xoehI.js} +1 -1
- package/dist/{chevron-left-CXJ7R3iS.js → chevron-left-Bv_KYFge.js} +1 -1
- package/dist/{chevron-right-4ex-g3or.js → chevron-right-CuU7ZCUE.js} +1 -1
- package/dist/{chevron-top-BDfgSTbr.js → chevron-top-FBXj-YJj.js} +1 -1
- package/dist/{chrome-store-CX9plHu3.js → chrome-store-BIA_g9fd.js} +1 -1
- package/dist/{clock-CtQPqpVc.js → clock-CgcPvmV3.js} +1 -1
- package/dist/{close-CYlyCBrT.js → close-Dro7okSF.js} +1 -1
- package/dist/{coinPlaceholder-DS0YfqOM.js → coinPlaceholder-Df9r_k0L.js} +1 -1
- package/dist/{compass-DVktgTZ-.js → compass-zmLyV0WT.js} +1 -1
- package/dist/{copy-Bk0qGavv.js → copy-CIamcXhE.js} +1 -1
- package/dist/{core-DgJB3Qno.js → core-2WkYhq16.js} +17 -16
- package/dist/{cursor-CCqfxECm.js → cursor-C2EB1DLY.js} +1 -1
- package/dist/{cursor-transparent-CPbYJ9jd.js → cursor-transparent-BRACM7k5.js} +1 -1
- package/dist/{desktop-DAykpsO7.js → desktop-Nj8wnhrx.js} +1 -1
- package/dist/{disconnect-DL8vRZg2.js → disconnect-BA3_H2TE.js} +1 -1
- package/dist/{discord-BS8TPANA.js → discord-BnYi_b4O.js} +1 -1
- package/dist/{down-D6aGpC9P.js → down-BiWYZhrl.js} +2 -2
- package/dist/{etherscan-YSjUjqH5.js → etherscan-Oni_KoX7.js} +1 -1
- package/dist/{exclamation-triangle-Cd8s_lsN.js → exclamation-triangle-DensxwAC.js} +1 -1
- package/dist/{extension-BfYpl1LK.js → extension-CJ-ksDa9.js} +1 -1
- package/dist/{external-link-uF5MV_9t.js → external-link-D2xEf8Lc.js} +1 -1
- package/dist/{facebook-DO648yaX.js → facebook-Dc9l2BHT.js} +1 -1
- package/dist/{farcaster-DZF64pQM.js → farcaster-PnjVCWz_.js} +1 -1
- package/dist/{filters-DMTGJi0Y.js → filters-BHTpF3UH.js} +1 -1
- package/dist/{getChainIds-DUKOh0Kp.js → getChainIds-CfrzTUBX.js} +2 -2
- package/dist/getCosmosAddress-CQBPedP-.js +9565 -0
- package/dist/{github-DQDrN0RZ.js → github-SsGUhatp.js} +1 -1
- package/dist/{google-DRrIdyFk.js → google-ClSrT1Rw.js} +1 -1
- package/dist/{hamburger-DFh0u4ls.js → hamburger-CnBL_kWz.js} +5 -5
- package/dist/{help-circle-n5Ls2-2F.js → help-circle-6WH3b0xJ.js} +1 -1
- package/dist/{id-DbShnIoD.js → id-BpdNL8xg.js} +1 -1
- package/dist/{image-B5YOEd-c.js → image-D98hwlBe.js} +1 -1
- package/dist/index-270jcL0T.js +159 -0
- package/dist/{index-CL2LZuVL.js → index-BD7sxHzc.js} +2 -2
- package/dist/{index-BwAuNUFT.js → index-BYEfYYbR.js} +2192 -2170
- package/dist/{index-CktG1k9u.js → index-CbunQDKM.js} +1 -1
- package/dist/{index-CDBWyjo1.js → index-CdSs-KXV.js} +11 -11
- package/dist/index-DTish3yr.js +1014 -0
- package/dist/{index-DvR1iioL.js → index-DbBaCDf8.js} +78 -78
- package/dist/index-Hx1OgUt3.js +206 -0
- package/dist/{index-BC_WzIG-.js → index-Kcq8t_TI.js} +1 -1
- package/dist/index-VwOzTBuI.js +30707 -0
- package/dist/{index-D4uRM0hD.js → index-uMBmZTqD.js} +5 -5
- package/dist/{index-DuTB7F2j.js → index-yf9XBWfH.js} +259 -257
- package/dist/{index.es-DD1q2x58.js → index.es-DNIrxJpP.js} +1 -1
- package/dist/{index.es-BRVISbr4.js → index.es-extFs-He.js} +1712 -1625
- package/dist/index.es.js +1 -1
- package/dist/{info-5rQx4FCT.js → info-CX4R9q8L.js} +1 -1
- package/dist/{info-circle-DnNqx9Fu.js → info-circle-ByA7titS.js} +1 -1
- package/dist/{lightbulb-DEa_QXWk.js → lightbulb-DpdMU1eo.js} +1 -1
- package/dist/{mail-DNWPpemE.js → mail-D7BloLRj.js} +1 -1
- package/dist/{mobile-CsmBvAG0.js → mobile-BfhAPCLe.js} +1 -1
- package/dist/{more-Bjd7dOWF.js → more-2Fi4UnXg.js} +1 -1
- package/dist/{network-placeholder-DsQ_HMHG.js → network-placeholder-CQk-R-eu.js} +1 -1
- package/dist/{nftPlaceholder-KsQSrTt2.js → nftPlaceholder-D67aKpf-.js} +1 -1
- package/dist/{off-B0hqloiu.js → off-CER3l2ZF.js} +1 -1
- package/dist/{play-store-DseAgFmo.js → play-store-D3OG1Nf5.js} +1 -1
- package/dist/{plus-BJCNDRM3.js → plus-XfyglU6D.js} +1 -1
- package/dist/{qr-code-lEBAtsO4.js → qr-code-C2QzWWzi.js} +1 -1
- package/dist/{recycle-horizontal-K4rUQslN.js → recycle-horizontal-BNoCX8eV.js} +1 -1
- package/dist/{refresh-DEZrriLV.js → refresh-BtgNPYm1.js} +1 -1
- package/dist/{reown-logo-BHbe-CUO.js → reown-logo-BfwHREPj.js} +1 -1
- package/dist/{search-CIK9XN0-.js → search-xILtKxp2.js} +1 -1
- package/dist/{send-Bxpdb3Vf.js → send-Cbq82Ise.js} +1 -1
- package/dist/{swapHorizontal-BBHEuYx1.js → swapHorizontal-ieu8keoA.js} +1 -1
- package/dist/{swapHorizontalBold-t0VsiN4I.js → swapHorizontalBold-DB9kV8I4.js} +1 -1
- package/dist/{swapHorizontalMedium-PzUH_Th4.js → swapHorizontalMedium-CFcq-Eii.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-EyDyL2Bj.js → swapHorizontalRoundedBold-J-bBHkKw.js} +1 -1
- package/dist/{swapVertical-CusOd1Kd.js → swapVertical-CdsB-iHQ.js} +1 -1
- package/dist/{telegram-DfP_Unfg.js → telegram-BcA4SOe-.js} +1 -1
- package/dist/{three-dots-BcnJZFUd.js → three-dots-tnSr7FoX.js} +1 -1
- package/dist/{twitch-CN0F2VUn.js → twitch-C0EXCOL_.js} +1 -1
- package/dist/{twitterIcon-DDA3Skm-.js → twitterIcon-D8gUfoR9.js} +1 -1
- package/dist/{unsupportedProp-CIQ48Cx8.js → unsupportedProp-ClTIJsqE.js} +1 -1
- package/dist/{useRegisterError-DuNi8RxR.js → useRegisterError-BrX0SzkP.js} +1 -1
- package/dist/{verify-BVsIUy32.js → verify-1fQ9qDGq.js} +1 -1
- package/dist/{verify-filled-bQ1f0Y-d.js → verify-filled-B-Bua_F7.js} +1 -1
- package/dist/{w3m-modal-Cg8vnNGL.js → w3m-modal-B4ljhCgE.js} +2 -2
- package/dist/{wallet-OISOAGe9.js → wallet-CHuFygGk.js} +1 -1
- package/dist/{wallet-placeholder-DZD3tMxc.js → wallet-placeholder-BY3FPHTK.js} +1 -1
- package/dist/{walletconnect-CCANKmqY.js → walletconnect-1yfFjEWg.js} +1 -1
- package/dist/{warning-circle-C_uh-wB2.js → warning-circle-CtfJ6Xr4.js} +1 -1
- package/dist/widget.css +1 -1
- package/dist/{x-BpuzG7VO.js → x-j-7tNFTH.js} +1 -1
- package/package.json +2 -4
- package/dist/EstGas-B9rFXiVW.js +0 -1486
- package/dist/getCosmosAddress-Cb98patK.js +0 -6075
- package/dist/index-BIN4LE_6.js +0 -42277
- package/dist/index-DEecyVOZ.js +0 -6711
- package/dist/index-VUJh-JIq.js +0 -206
package/dist/EstGas-B9rFXiVW.js
DELETED
@@ -1,1486 +0,0 @@
|
|
1
|
-
import { jsx as r, jsxs as h, Fragment as U } from "react/jsx-runtime";
|
2
|
-
import { u as x, l as Z, S as wt, a as Wt, aI as Pt, aJ as X, aM as Jt, aN as Zt, aO as Kt, aP as Xt, aQ as Yt } from "./index-BIN4LE_6.js";
|
3
|
-
import { O as pt } from "./index-BC_WzIG-.js";
|
4
|
-
import ht, { useState as mt, useContext as q, useRef as dt, useEffect as M, createContext as te, useMemo as ee } from "react";
|
5
|
-
import { W as ne, C as jt, B as re, L as se, i as _t, u as oe, f as ie, c as Ut, d as ae, F as Y } from "./useRegisterError-DuNi8RxR.js";
|
6
|
-
import { useAccount as Gt, useWalletClient as le, useSwitchChain as ce } from "wagmi";
|
7
|
-
import { S as xe } from "./shareicon-CG3v7iKI.js";
|
8
|
-
import { T as Mt } from "./Tooltip-CCwWxndh.js";
|
9
|
-
import { L as be } from "./index.es-DD1q2x58.js";
|
10
|
-
import { useStargateSigningClient as Ht, useAccount as me } from "graz";
|
11
|
-
import { l as de, S as ue, D as we } from "./down-D6aGpC9P.js";
|
12
|
-
import { u as pe, g as At } from "./getCosmosAddress-Cb98patK.js";
|
13
|
-
import { useDynamicContext as Lt } from "@dynamic-labs/sdk-react-core";
|
14
|
-
import { v as yt } from "./validError-CDlJpg_f.js";
|
15
|
-
import { useMutation as he, useQuery as ye } from "@tanstack/react-query";
|
16
|
-
import { e as fe } from "./ethertousd-CC_ezooz.js";
|
17
|
-
function ke({ field: n }) {
|
18
|
-
var e, i;
|
19
|
-
const s = x((u) => u.persist), t = n == "from" ? ((e = s == null ? void 0 : s.route) == null ? void 0 : e.userWalletAddress) || "" : ((i = s == null ? void 0 : s.route) == null ? void 0 : i.recipient) || "";
|
20
|
-
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: t ? /* @__PURE__ */ h(U, { children: [
|
21
|
-
/* @__PURE__ */ r("p", { className: "bw-text-text-primary bw-text-xs bw-font-normal", children: ((t == null ? void 0 : t.substring(0, 4)) || "") + "..." + ((t == null ? void 0 : t.substring(t.length - 4, t.length)) || "") }),
|
22
|
-
/* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(ne, { fill: "var(--tw-text-primary)" }) })
|
23
|
-
] }) : /* @__PURE__ */ r("div", { className: "bw-w-[10px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[10px]", children: /* @__PURE__ */ r(jt, { size: 10, thickness: 5, color: "inherit" }) }) });
|
24
|
-
}
|
25
|
-
function R0({ chainData: n, coinData: s, amount: t, field: e }) {
|
26
|
-
var l, p, f, m;
|
27
|
-
const i = x((y) => y.configuration), u = x((y) => y.persist);
|
28
|
-
return /* @__PURE__ */ h(
|
29
|
-
"div",
|
30
|
-
{
|
31
|
-
style: {
|
32
|
-
boxShadow: i && i.customTheme && ((p = (l = i.customTheme) == null ? void 0 : l.shadow) == null ? void 0 : p.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
33
|
-
},
|
34
|
-
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 ${((f = u.statusData) == null ? void 0 : f.status) == "partial-success" && e == "to" ? "bw-border-text-redtext" : "bw-border-border-primary"} `,
|
35
|
-
children: [
|
36
|
-
/* @__PURE__ */ h("div", { className: `${((m = s == null ? void 0 : s.symbol) == null ? void 0 : m.length) > 6 ? "bw-text-base" : "bw-text-lg"} bw-text-center bw-font-medium bw-text-text-primary`, children: [
|
37
|
-
/* @__PURE__ */ r("span", { children: t ? /* @__PURE__ */ r(pt, { value: t == null ? void 0 : t.toString(), decimal: 8 }) : 0 }),
|
38
|
-
" ",
|
39
|
-
/* @__PURE__ */ r("span", { children: (s == null ? void 0 : s.symbol) || "" }),
|
40
|
-
/* @__PURE__ */ r("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: `on ${n == null ? void 0 : n.name}` })
|
41
|
-
] }),
|
42
|
-
/* @__PURE__ */ r("div", { className: "bw-absolute -bw-bottom-4", children: /* @__PURE__ */ r(ke, { field: e }) })
|
43
|
-
]
|
44
|
-
}
|
45
|
-
);
|
46
|
-
}
|
47
|
-
function Q0({ handleBack: n }) {
|
48
|
-
return /* @__PURE__ */ r("div", { className: "bw-flex bw-z-20 bw-relative bw-justify-center bw-mb-5", children: /* @__PURE__ */ r(
|
49
|
-
"button",
|
50
|
-
{
|
51
|
-
onClick: () => {
|
52
|
-
n();
|
53
|
-
},
|
54
|
-
className: "bw-absolute bw-left-0 bw-top-[25%]",
|
55
|
-
children: /* @__PURE__ */ r(re, { fill: "var(--tw-text-secondary)" })
|
56
|
-
}
|
57
|
-
) });
|
58
|
-
}
|
59
|
-
const ge = "_loader_1g6xv_1", Se = {
|
60
|
-
loader: ge
|
61
|
-
};
|
62
|
-
function Dt() {
|
63
|
-
return /* @__PURE__ */ h("div", { className: Se.loader, children: [
|
64
|
-
/* @__PURE__ */ r("span", {}),
|
65
|
-
/* @__PURE__ */ r("span", {}),
|
66
|
-
/* @__PURE__ */ r("span", {})
|
67
|
-
] });
|
68
|
-
}
|
69
|
-
const tt = ht.createContext(!1);
|
70
|
-
function Te({ children: n }) {
|
71
|
-
return /* @__PURE__ */ r(
|
72
|
-
Mt,
|
73
|
-
{
|
74
|
-
onClose: () => {
|
75
|
-
},
|
76
|
-
disableInteractive: !0,
|
77
|
-
onClick: () => {
|
78
|
-
},
|
79
|
-
slotProps: {
|
80
|
-
popper: {
|
81
|
-
modifiers: [
|
82
|
-
{
|
83
|
-
name: "offset",
|
84
|
-
options: {
|
85
|
-
offset: [0, -10]
|
86
|
-
}
|
87
|
-
}
|
88
|
-
]
|
89
|
-
}
|
90
|
-
},
|
91
|
-
className: "bw-text-text-button",
|
92
|
-
title: "Transaction Link",
|
93
|
-
children: n
|
94
|
-
}
|
95
|
-
);
|
96
|
-
}
|
97
|
-
function ve({ fill: n }) {
|
98
|
-
return /* @__PURE__ */ h("svg", { width: "18", height: "9", viewBox: "0 0 18 9", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
99
|
-
/* @__PURE__ */ r("path", { d: "M6.34375 4.49902H11.4231", stroke: n, "stroke-width": "2", "stroke-linecap": "round" }),
|
100
|
-
/* @__PURE__ */ r("path", { d: "M4.81007 1C-0.269325 1 -0.270722 8 4.81007 8", stroke: n, "stroke-width": "2", "stroke-linecap": "round" }),
|
101
|
-
/* @__PURE__ */ r("path", { d: "M13.1899 1C18.2693 1 18.2707 8 13.1899 8", stroke: n, "stroke-width": "2", "stroke-linecap": "round" })
|
102
|
-
] });
|
103
|
-
}
|
104
|
-
function ft({ txnHash: n, children: s }) {
|
105
|
-
const [t, e] = mt(!1);
|
106
|
-
return /* @__PURE__ */ r(
|
107
|
-
Mt,
|
108
|
-
{
|
109
|
-
onClose: () => {
|
110
|
-
setTimeout(() => {
|
111
|
-
e(!1);
|
112
|
-
}, [1e3]);
|
113
|
-
},
|
114
|
-
disableInteractive: !0,
|
115
|
-
onClick: () => {
|
116
|
-
navigator.clipboard.writeText(n).then(() => {
|
117
|
-
e(!0);
|
118
|
-
});
|
119
|
-
},
|
120
|
-
slotProps: {
|
121
|
-
popper: {
|
122
|
-
modifiers: [
|
123
|
-
{
|
124
|
-
name: "offset",
|
125
|
-
options: {
|
126
|
-
offset: [0, -10]
|
127
|
-
}
|
128
|
-
}
|
129
|
-
]
|
130
|
-
}
|
131
|
-
},
|
132
|
-
className: "bw-text-text-button",
|
133
|
-
title: `${t ? "Copied!" : "Copy"}`,
|
134
|
-
children: s
|
135
|
-
}
|
136
|
-
);
|
137
|
-
}
|
138
|
-
function kt({ fill: n }) {
|
139
|
-
return /* @__PURE__ */ h("svg", { width: "11", height: "13", viewBox: "0 0 11 13", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
140
|
-
/* @__PURE__ */ r("rect", { x: "0.5", y: "3.5", width: "7", height: "9", rx: "1.5", stroke: n }),
|
141
|
-
/* @__PURE__ */ r("path", { d: "M3 1H8C9.10457 1 10 1.89543 10 3V10", stroke: n, "stroke-linecap": "round" })
|
142
|
-
] });
|
143
|
-
}
|
144
|
-
const Ee = "4.8.0", Ce = { g: "LottieFiles AE 3.5.7", a: "", k: "", d: "", tc: "" }, Ne = 30, Ae = 0, De = 54, Ie = 512, Fe = 512, Be = "Comp 1", $e = 0, Ve = /* @__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}]}]'), Pe = [{ 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 }], je = [], _e = {
|
145
|
-
v: Ee,
|
146
|
-
meta: Ce,
|
147
|
-
fr: Ne,
|
148
|
-
ip: Ae,
|
149
|
-
op: De,
|
150
|
-
w: Ie,
|
151
|
-
h: Fe,
|
152
|
-
nm: Be,
|
153
|
-
ddd: $e,
|
154
|
-
assets: Ve,
|
155
|
-
layers: Pe,
|
156
|
-
markers: je
|
157
|
-
}, Ue = "_gradienttext_uc65n_6", Ge = "_gradientbutton_uc65n_19", K = {
|
158
|
-
gradienttext: Ue,
|
159
|
-
gradientbutton: Ge
|
160
|
-
};
|
161
|
-
function Me({ handleBack: n }) {
|
162
|
-
var b, d, T, k, a, C, E;
|
163
|
-
const s = x((A) => A.gradient), t = x((A) => A.persist), e = x((A) => A.configuration), i = t == null ? void 0 : t.stepData.stepType, l = ((t == null ? void 0 : t.txnHashObj) || [])[(b = t == null ? void 0 : t.stepData) == null ? void 0 : b.stepId] || {}, p = i === "bridge" ? (l == null ? void 0 : l.destTxnHash) || (l == null ? void 0 : l.srcTxnHash) : (l == null ? void 0 : l.srcTxnHash) || "", f = (d = t == null ? void 0 : t.historyData) == null ? void 0 : d.finalTxnHash, m = p || f || "", y = i === "bridge" ? (l == null ? void 0 : l.destTxnUrl) || (l == null ? void 0 : l.srcTxnUrl) : (l == null ? void 0 : l.srcTxnUrl) || "", g = (T = t == null ? void 0 : t.historyData) == null ? void 0 : T.finalTxnUrl, N = y || g || "", D = t.toCoin || {}, S = t.route || {}, $ = t.toChain || {};
|
164
|
-
let o = ((k = t == null ? void 0 : t.statusData) == null ? void 0 : k.outputAmountDisplay) || 0, c = (Number(o) ? o : Number(o)) || (S == null ? void 0 : S.outputAmountDisplay) || 0;
|
165
|
-
return /* @__PURE__ */ h("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: [
|
166
|
-
/* @__PURE__ */ h(
|
167
|
-
"div",
|
168
|
-
{
|
169
|
-
style: {
|
170
|
-
boxShadow: e && e.customTheme && ((C = (a = e.customTheme) == null ? void 0 : a.shadow) == null ? void 0 : C.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
171
|
-
},
|
172
|
-
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",
|
173
|
-
children: [
|
174
|
-
/* @__PURE__ */ h("div", { children: [
|
175
|
-
/* @__PURE__ */ r(
|
176
|
-
"p",
|
177
|
-
{
|
178
|
-
style: { ...e.gradientStyle, backgroundClip: "text" },
|
179
|
-
className: `bw-text-lg ${s || `${(E = e == null ? void 0 : e.gradientStyle) != null && E.background ? "" : "bw-bg-gradient-to-l bw-from-[#2CFFE4] bw-to-[#A45EFF]"}`} bw-bg-clip-text bw-font-medium bw-text-transparent`,
|
180
|
-
children: "Transaction Successful"
|
181
|
-
}
|
182
|
-
),
|
183
|
-
/* @__PURE__ */ h("p", { className: "bw-text-2xl bw-font-medium bw-text-text-primary", children: [
|
184
|
-
/* @__PURE__ */ r(pt, { value: c, decimal: 10 }),
|
185
|
-
" ",
|
186
|
-
D.symbol
|
187
|
-
] }),
|
188
|
-
/* @__PURE__ */ r("p", { className: "bw-text-sm bw-mb-2 bw-font-normal bw-text-text-secondary", children: `Received on ${$.name || $.blockchain} chain` }),
|
189
|
-
/* @__PURE__ */ h("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
190
|
-
/* @__PURE__ */ r("p", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: `Tx id: ${m ? `${m.substring(0, 5)}...${m.substring(
|
191
|
-
m.length - 5,
|
192
|
-
m.length
|
193
|
-
)}` : ""}` }),
|
194
|
-
/* @__PURE__ */ r("div", { className: "bw-cursor-pointer", children: /* @__PURE__ */ r(ft, { txnHash: m, children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(kt, { fill: "var(--tw-text-secondary)" }) }) }) }),
|
195
|
-
/* @__PURE__ */ r("a", { href: N, target: "_blank", children: /* @__PURE__ */ r("div", { className: "bw-cursor-pointer", children: /* @__PURE__ */ r(xe, { fill: "var(--tw-text-secondary)" }) }) })
|
196
|
-
] })
|
197
|
-
] }),
|
198
|
-
/* @__PURE__ */ r("div", { className: " bw-flex bw-justify-center bw-items-center bw-w-[105px] bw-h-[105px]", children: /* @__PURE__ */ r(be, { animationData: _e, loop: !0 }) })
|
199
|
-
]
|
200
|
-
}
|
201
|
-
),
|
202
|
-
/* @__PURE__ */ r(
|
203
|
-
"button",
|
204
|
-
{
|
205
|
-
onClick: n,
|
206
|
-
style: { ...e == null ? void 0 : e.gradientStyle },
|
207
|
-
className: `bw-w-full ${K.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`,
|
208
|
-
children: /* @__PURE__ */ r(
|
209
|
-
"div",
|
210
|
-
{
|
211
|
-
onClick: n,
|
212
|
-
className: "bw-rounded-sm bw-bg-background-container bw-flex bw-items-center bw-justify-center b-w-full bw-h-full",
|
213
|
-
children: "Start Again"
|
214
|
-
}
|
215
|
-
)
|
216
|
-
}
|
217
|
-
)
|
218
|
-
] });
|
219
|
-
}
|
220
|
-
const Ot = ht.createContext(!1);
|
221
|
-
function He({ disableButton: n, handleStep: s, txnProcessType: t, txnTextObj: e }) {
|
222
|
-
var g, N, D;
|
223
|
-
const i = x((S) => S.persist), u = x((S) => S.configuration);
|
224
|
-
x((S) => S.cosmosChainIds);
|
225
|
-
const l = x((S) => S.fromChain);
|
226
|
-
let p = n ? {} : { ...u == null ? void 0 : u.gradientStyle };
|
227
|
-
const { data: f, isLoading: m } = Ht({
|
228
|
-
chainId: [l.chainId],
|
229
|
-
multiChain: !0
|
230
|
-
});
|
231
|
-
let y = ((g = i == null ? void 0 : i.fromChain) == null ? void 0 : g.networkType) == "cosmos" ? m : !1;
|
232
|
-
return !Z.isEmpty(i == null ? void 0 : i.stepData) && !y ? /* @__PURE__ */ r(
|
233
|
-
"button",
|
234
|
-
{
|
235
|
-
disabled: n || !e,
|
236
|
-
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]" : K.gradientbutton + " bw-p-[3px]"}`,
|
237
|
-
onClick: s,
|
238
|
-
style: {
|
239
|
-
...p,
|
240
|
-
boxShadow: u && u.customTheme && ((D = (N = u.customTheme) == null ? void 0 : N.shadow) == null ? void 0 : D.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
241
|
-
},
|
242
|
-
children: /* @__PURE__ */ h("div", { className: "bw-bg-background-container bw-w-full bw-h-full bw-flex bw-items-center bw-justify-center", children: [
|
243
|
-
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(jt, { size: 22, thickness: 5, color: "inherit" }) }),
|
244
|
-
/* @__PURE__ */ r(
|
245
|
-
"p",
|
246
|
-
{
|
247
|
-
className: ` ${n ? "bw-text-text-secondary bw-font-normal" : "bw-text-text-primary bw-font-bold"} bw-text-2xl `,
|
248
|
-
children: e == null ? void 0 : e[t == "process" ? "processingCta" : "preCta"]
|
249
|
-
}
|
250
|
-
)
|
251
|
-
] })
|
252
|
-
}
|
253
|
-
) : /* @__PURE__ */ r(wt, { className: "bw-bg-background-secondary bw-rounded-sm bw-w-full", animation: "wave", height: 50 });
|
254
|
-
}
|
255
|
-
function Rt({ errorText: n, heading: s = "Transaction Failed" }) {
|
256
|
-
const t = x((e) => e.persist);
|
257
|
-
return /* @__PURE__ */ h(U, { children: [
|
258
|
-
/* @__PURE__ */ r("p", { className: "bw-text-lg bw-font-medium bw-text-text-primary bw-mb-1 bw-text-center", children: s }),
|
259
|
-
/* @__PURE__ */ h("div", { className: "bw-w-full bw-mb-2 ", children: [
|
260
|
-
/* @__PURE__ */ r("p", { className: "bw-text-sm bw-font-bold bw-text-text-primary ", children: "Route Id" }),
|
261
|
-
/* @__PURE__ */ h("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
262
|
-
/* @__PURE__ */ r("p", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: t == null ? void 0 : t.routeId }),
|
263
|
-
/* @__PURE__ */ r(ft, { txnHash: t == null ? void 0 : t.routeId, children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(kt, { fill: "var(--tw-text-secondary)" }) }) })
|
264
|
-
] })
|
265
|
-
] }),
|
266
|
-
/* @__PURE__ */ h("div", { className: "bw-text-left bw-w-full bw-mb-2 ", children: [
|
267
|
-
n != null && n.length ? /* @__PURE__ */ r("p", { className: "bw-text-sm bw-font-bold bw-text-text-primary ", children: "Error" }) : /* @__PURE__ */ r(U, {}),
|
268
|
-
/* @__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 }) })
|
269
|
-
] })
|
270
|
-
] });
|
271
|
-
}
|
272
|
-
function Le({ handleGoBack: n, errorText: s, txnTextObj: t, handleExeTxn: e, handleDisable: i }) {
|
273
|
-
var p, f, m, y;
|
274
|
-
const u = x((g) => g.configuration), l = x((g) => g.persist);
|
275
|
-
return /* @__PURE__ */ h("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: [
|
276
|
-
/* @__PURE__ */ r(Rt, { errorText: s }),
|
277
|
-
l.isHistory ? /* @__PURE__ */ r(U, {}) : /* @__PURE__ */ h("div", { className: "bw-w-full bw-flex bw-items-center bw-gap-x-2", children: [
|
278
|
-
/* @__PURE__ */ r(
|
279
|
-
"button",
|
280
|
-
{
|
281
|
-
style: {
|
282
|
-
boxShadow: u && u.customTheme && ((f = (p = u.customTheme) == null ? void 0 : p.shadow) == null ? void 0 : f.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
283
|
-
},
|
284
|
-
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",
|
285
|
-
onClick: () => {
|
286
|
-
n();
|
287
|
-
},
|
288
|
-
children: /* @__PURE__ */ r(
|
289
|
-
"p",
|
290
|
-
{
|
291
|
-
style: {
|
292
|
-
...u.gradientStyle,
|
293
|
-
backgroundClip: "text"
|
294
|
-
},
|
295
|
-
className: ` ${K.gradienttext} bw-text-2xl bw-font-normal`,
|
296
|
-
children: "Home"
|
297
|
-
}
|
298
|
-
)
|
299
|
-
}
|
300
|
-
),
|
301
|
-
/* @__PURE__ */ r(
|
302
|
-
"button",
|
303
|
-
{
|
304
|
-
style: {
|
305
|
-
...u == null ? void 0 : u.gradientStyle,
|
306
|
-
boxShadow: u && u.customTheme && ((y = (m = u.customTheme) == null ? void 0 : m.shadow) == null ? void 0 : y.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
307
|
-
},
|
308
|
-
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%] ${K.gradientbutton} bw-rounded-sm bw-p-[3px] `,
|
309
|
-
onClick: () => {
|
310
|
-
e(), i(!0);
|
311
|
-
},
|
312
|
-
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(
|
313
|
-
"p",
|
314
|
-
{
|
315
|
-
style: {
|
316
|
-
...u.gradientStyle,
|
317
|
-
backgroundClip: "text"
|
318
|
-
},
|
319
|
-
className: " bw-text-text-primary bw-text-2xl bw-font-bold",
|
320
|
-
children: "Try Again"
|
321
|
-
}
|
322
|
-
) })
|
323
|
-
}
|
324
|
-
)
|
325
|
-
] })
|
326
|
-
] });
|
327
|
-
}
|
328
|
-
function Oe({ txnTextObj: n, txnProcessType: s, errorText: t, allSteps: e }) {
|
329
|
-
var u, l, p;
|
330
|
-
const i = x((f) => f.persist);
|
331
|
-
return /* @__PURE__ */ h(U, { children: [
|
332
|
-
/* @__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]) ? ((l = n == null ? void 0 : n.status) == null ? void 0 : l[(u = i == null ? void 0 : i.stepStatus[e == null ? void 0 : e.currentStep]) == null ? void 0 : u.status]) || (n == null ? void 0 : n[(p = i == null ? void 0 : i.stepStatus[e == null ? void 0 : e.currentStep]) == null ? void 0 : p.type]) : "" }),
|
333
|
-
/* @__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[s == "process" ? "processingDescription" : s == "loading" ? "loadingDescription" : "preDescription"] }),
|
334
|
-
/* @__PURE__ */ r("p", { className: "bw-text-xs bw-font-normal bw-text-center bw-text-text-redtext ", children: t })
|
335
|
-
] });
|
336
|
-
}
|
337
|
-
function Re({ i: n, item: s }) {
|
338
|
-
var p, f, m, y;
|
339
|
-
const t = x((g) => g.persist), e = (t == null ? void 0 : t.txnHashObj) || [], i = (f = (p = e[s.stepId]) == null ? void 0 : p.destTxnUrl) != null && f.length ? (m = e[s.stepId]) == null ? void 0 : m.destTxnUrl : (y = e[s.stepId]) == null ? void 0 : y.srcTxnUrl, u = s.destTxnUrl || s.srcTxnUrl, l = i || u;
|
340
|
-
return l != null && l.length ? /* @__PURE__ */ r("a", { target: "_blank", className: "bw-relative bw-z-50 bw-mt-1", href: l, children: /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(ve, { fill: "var(--tw-text-primary)" }) }) }) }) : /* @__PURE__ */ r(U, {});
|
341
|
-
}
|
342
|
-
function Qe({ item: n, i: s }) {
|
343
|
-
var u, l, p, f, m, y, g, N, D, S, $;
|
344
|
-
const { isErrorMessage: t, handleErrorMessage: e } = q(tt), i = x((o) => o.persist);
|
345
|
-
return i == null || i.allSteps, /* @__PURE__ */ h("div", { children: [
|
346
|
-
/* @__PURE__ */ r("h1", { className: ` ${((l = (u = n == null ? void 0 : n.texts) == null ? void 0 : u.heading) == null ? void 0 : l.length) > 34 ? "bw-text-base" : "bw-text-lg"} ${((p = i == null ? void 0 : i.allSteps) == null ? void 0 : p.currentStep) == s ? "bw-text-text-primary" : "bw-text-text-secondary"} bw-leading-none bw-mt-[-2px]`, children: (f = n == null ? void 0 : n.texts) == null ? void 0 : f.heading }),
|
347
|
-
i != null && i.stepStatus && (i != null && i.stepStatus[s]) ? /* @__PURE__ */ r(U, { children: /* @__PURE__ */ r("p", { className: "bw-text-sm bw-text-text-secondary bw-ml-3 bw-mt-1", children: t && ((m = i == null ? void 0 : i.stepStatus[s]) == null ? void 0 : m.status) !== "failed" && s == ((y = i == null ? void 0 : i.allSteps) == null ? void 0 : y.currentStep) ? "Failed" : ((D = (g = n == null ? void 0 : n.texts) == null ? void 0 : g.status) == null ? void 0 : D[(N = i == null ? void 0 : i.stepStatus[s]) == null ? void 0 : N.status]) || (($ = n == null ? void 0 : n.texts) == null ? void 0 : $[(S = i == null ? void 0 : i.stepStatus[s]) == null ? void 0 : S.type]) }) }) : s == 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(U, {})
|
348
|
-
] });
|
349
|
-
}
|
350
|
-
function It({ spinnerColor: n, stopColor: s }) {
|
351
|
-
return /* @__PURE__ */ h(
|
352
|
-
"svg",
|
353
|
-
{
|
354
|
-
width: "17",
|
355
|
-
height: "18",
|
356
|
-
viewBox: "0 0 17 18",
|
357
|
-
fill: "none",
|
358
|
-
xmlns: "http://www.w3.org/2000/svg",
|
359
|
-
children: [
|
360
|
-
/* @__PURE__ */ r(
|
361
|
-
"path",
|
362
|
-
{
|
363
|
-
d: "M5.23438 8.90997L7.625 11.1346L12.0948 5.18945",
|
364
|
-
stroke: "url(#paint0_linear_2764_26377)",
|
365
|
-
"stroke-width": "1.5"
|
366
|
-
}
|
367
|
-
),
|
368
|
-
/* @__PURE__ */ r(
|
369
|
-
"path",
|
370
|
-
{
|
371
|
-
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",
|
372
|
-
stroke: "#8A8F8E",
|
373
|
-
"stroke-width": "0.25"
|
374
|
-
}
|
375
|
-
),
|
376
|
-
/* @__PURE__ */ r(
|
377
|
-
"path",
|
378
|
-
{
|
379
|
-
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",
|
380
|
-
stroke: "#8A8F8E",
|
381
|
-
"stroke-width": "0.25"
|
382
|
-
}
|
383
|
-
),
|
384
|
-
/* @__PURE__ */ r("circle", { cx: "8.68848", cy: "8.7041", r: "7.48535", stroke: "#8A8F8E" }),
|
385
|
-
/* @__PURE__ */ r("defs", { children: /* @__PURE__ */ h(
|
386
|
-
"linearGradient",
|
387
|
-
{
|
388
|
-
id: "paint0_linear_2764_26377",
|
389
|
-
x1: "13.3956",
|
390
|
-
y1: "7.30551",
|
391
|
-
x2: "0.983954",
|
392
|
-
y2: "7.29133",
|
393
|
-
gradientUnits: "userSpaceOnUse",
|
394
|
-
children: [
|
395
|
-
/* @__PURE__ */ r("stop", { "stop-color": n || "#2CFFE4" }),
|
396
|
-
/* @__PURE__ */ r("stop", { offset: "1", "stop-color": s || "#A45EFF" })
|
397
|
-
]
|
398
|
-
}
|
399
|
-
) })
|
400
|
-
]
|
401
|
-
}
|
402
|
-
);
|
403
|
-
}
|
404
|
-
const ze = "4.8.0", qe = { g: "LottieFiles AE 3.5.7", a: "", k: "", d: "", tc: "" }, We = 25, Je = 0, Ze = 51, Ke = 512, Xe = 512, Ye = "Comp 1", t0 = 0, e0 = [], n0 = [{ 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 }], r0 = [], s0 = {
|
405
|
-
v: ze,
|
406
|
-
meta: qe,
|
407
|
-
fr: We,
|
408
|
-
ip: Je,
|
409
|
-
op: Ze,
|
410
|
-
w: Ke,
|
411
|
-
h: Xe,
|
412
|
-
nm: Ye,
|
413
|
-
ddd: t0,
|
414
|
-
assets: e0,
|
415
|
-
layers: n0,
|
416
|
-
markers: r0
|
417
|
-
};
|
418
|
-
function o0() {
|
419
|
-
const n = dt(null), s = x((t) => t.configuration);
|
420
|
-
return M(() => {
|
421
|
-
var e, i;
|
422
|
-
const t = se.loadAnimation({
|
423
|
-
container: n.current,
|
424
|
-
animationData: de.flatten(
|
425
|
-
(e = s == null ? void 0 : s.gradientStyle) != null && e.spinnerColor ? (i = s == null ? void 0 : s.gradientStyle) == null ? void 0 : i.spinnerColor : "#2CFFE4",
|
426
|
-
s0
|
427
|
-
)
|
428
|
-
});
|
429
|
-
return () => t.destroy();
|
430
|
-
}, []), /* @__PURE__ */ r("div", { style: { width: "100%", height: "100%" }, ref: n });
|
431
|
-
}
|
432
|
-
function i0({ allSteps: n, disableButton: s, i: t, arr: e }) {
|
433
|
-
var y, g, N, D;
|
434
|
-
const i = x((S) => S.configuration), { txnupdate: u } = _t, { isErrorMessage: l } = q(tt), p = x((S) => S.persist), f = p == null ? void 0 : p.historyData, m = (f == null ? void 0 : f.currentStepStatus) || "";
|
435
|
-
return /* @__PURE__ */ h("div", { className: "bw-w-[18px] bw-min-h-full bw-relative bw-flex bw-flex-col bw-justify-center bw-items-center ", children: [
|
436
|
-
(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 ? s ? /* @__PURE__ */ r(U, { children: /* @__PURE__ */ r("div", { className: " bw-w-[18px] bw-h-[18px] ", children: /* @__PURE__ */ r(ue, {}) }) }) : l ? (
|
437
|
-
// <CloseIcon width={18} height={18} fill={"var(--tw-text-primary)"} />
|
438
|
-
/* @__PURE__ */ r("img", { src: u, width: 27, height: 27, alt: "img" })
|
439
|
-
) : m == "success" ? /* @__PURE__ */ r(
|
440
|
-
It,
|
441
|
-
{
|
442
|
-
spinnerColor: (y = i == null ? void 0 : i.gradientStyle) == null ? void 0 : y.spinnerColor,
|
443
|
-
stopColor: (g = i == null ? void 0 : i.gradientStyle) == null ? void 0 : g.stopColor
|
444
|
-
}
|
445
|
-
) : m == "failed" ? /* @__PURE__ */ r("img", { src: u, width: 27, height: 27, alt: "img" }) : /* @__PURE__ */ r("div", { className: "bw-w-[18px] bw-h-[18px]", children: /* @__PURE__ */ r(o0, {}) }) : /* @__PURE__ */ r(
|
446
|
-
It,
|
447
|
-
{
|
448
|
-
spinnerColor: (N = i == null ? void 0 : i.gradientStyle) == null ? void 0 : N.spinnerColor,
|
449
|
-
stopColor: (D = i == null ? void 0 : i.gradientStyle) == null ? void 0 : D.stopColor
|
450
|
-
}
|
451
|
-
),
|
452
|
-
t !== e.length - 1 ? /* @__PURE__ */ r(
|
453
|
-
"div",
|
454
|
-
{
|
455
|
-
className: "bw-h-[30px] bw-absolute bw-w-[1px] bw-bottom-[-200%] bw-bg-background-secondary"
|
456
|
-
}
|
457
|
-
) : /* @__PURE__ */ r(U, {})
|
458
|
-
] });
|
459
|
-
}
|
460
|
-
const a0 = "_container_1e7nb_1", l0 = "_dash_1e7nb_9", c0 = "_uno_1e7nb_17", x0 = "_dos_1e7nb_23", b0 = "_tres_1e7nb_29", m0 = "_cuatro_1e7nb_35", z = {
|
461
|
-
container: a0,
|
462
|
-
dash: l0,
|
463
|
-
uno: c0,
|
464
|
-
dos: x0,
|
465
|
-
tres: b0,
|
466
|
-
cuatro: m0
|
467
|
-
};
|
468
|
-
function d0() {
|
469
|
-
return /* @__PURE__ */ h("div", { className: z.container, children: [
|
470
|
-
/* @__PURE__ */ r("div", { className: `${z.dash} ${z.uno}` }),
|
471
|
-
/* @__PURE__ */ r("div", { className: `${z.dash} ${z.dos}` }),
|
472
|
-
/* @__PURE__ */ r("div", { className: `${z.dash} ${z.tres}` }),
|
473
|
-
/* @__PURE__ */ r("div", { className: `${z.dash} ${z.cuatro}` })
|
474
|
-
] });
|
475
|
-
}
|
476
|
-
function u0({ handleUpdate: n }) {
|
477
|
-
var B, L, G, P, O, j, _, R, V, Q, W, et, nt, rt, st, ot, it, at, lt, ct;
|
478
|
-
const s = x((F) => F.configuration), t = x((F) => F.persist), { address: e } = Gt(), { address: i } = Wt(), { primaryWallet: u } = Lt(), { getWallet: l } = oe({}), p = x((F) => F.setPersist), f = x((F) => F.customWallet), m = x((F) => F.customFee), y = x((F) => F.broadCastMode), g = x((F) => F.evmGas), N = x((F) => F.evmSpeed), D = x((F) => F.slippage), S = x((F) => F.option), $ = x((F) => F.gasless), { data: o } = me(), 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) || ((B = t == null ? void 0 : t.route) == null ? void 0 : B.inputAmountDisplay) || 0, u == null ? void 0 : u.address, i, f, o == null ? void 0 : o.bech32Address, m, g, N, D, y, S.value, "", $];
|
479
|
-
let c = (y === "Priority Fee" || y === "Both") && (m != null && m.length) ? m : S.value, b = (y === "Jito Tip" || y === "Both") && (m != null && m.length) ? m : S.value, d = g != null && g.length ? g : N.value;
|
480
|
-
const T = ((L = t == null ? void 0 : t.fromChain) == null ? void 0 : L.networkType) === "sol" ? y === "Priority Fee" ? `&solanaPriorityFee=${c}` : y === "Jito Tip" ? `&solanaJitoTip=${b}` : `&solanaPriorityFee=${c}&solanaJitoTip=${b}` : ((G = t == null ? void 0 : t.fromChain) == null ? void 0 : G.networkType) === "evm" ? `&evmPriorityFee=${d}` : "", { routes: k, routesData: a } = pe({
|
481
|
-
enabled: !0,
|
482
|
-
dependency: w,
|
483
|
-
payload: [
|
484
|
-
((P = t == null ? void 0 : t.fromChain) == null ? void 0 : P.networkType) === "cosmos" ? At(o == null ? void 0 : o.bech32Address, (j = (O = t == null ? void 0 : t.fromChain) == null ? void 0 : O.chainInfo) == null ? void 0 : j.bech32Config.bech32PrefixAccAddr) : ((_ = t == null ? void 0 : t.route) == null ? void 0 : _.userWalletAddress) || ((R = l(t == null ? void 0 : t.fromChain)) == null ? void 0 : R.address) || "",
|
485
|
-
t == null ? void 0 : t.fromChain,
|
486
|
-
t == null ? void 0 : t.toChain,
|
487
|
-
t == null ? void 0 : t.fromCoin,
|
488
|
-
t == null ? void 0 : t.toCoin,
|
489
|
-
(t == null ? void 0 : t.amount) || ((V = t == null ? void 0 : t.route) == null ? void 0 : V.inputAmountDisplay) || 0,
|
490
|
-
Number(D) * 100,
|
491
|
-
(f == null ? void 0 : f.length) > 30 ? ((Q = t == null ? void 0 : t.route) == null ? void 0 : Q.recipient) || ((W = l({})) == null ? void 0 : W.address) || "" : ((et = t == null ? void 0 : t.toChain) == null ? void 0 : et.networkType) === "cosmos" ? At(o == null ? void 0 : o.bech32Address, (rt = (nt = t == null ? void 0 : t.toChain) == null ? void 0 : nt.chainInfo) == null ? void 0 : rt.bech32Config.bech32PrefixAccAddr) : ((st = t == null ? void 0 : t.route) == null ? void 0 : st.recipient) || ((ot = l(t == null ? void 0 : t.toChain)) == null ? void 0 : ot.address) || "",
|
492
|
-
T,
|
493
|
-
1,
|
494
|
-
$
|
495
|
-
]
|
496
|
-
});
|
497
|
-
let C = (a == null ? void 0 : a.outputAmountDisplay) || "";
|
498
|
-
async function E() {
|
499
|
-
if (t.isQuoteTimer === !1) {
|
500
|
-
let F = await k.refetch();
|
501
|
-
F.status === "success" && F.data.status === "success" && p({
|
502
|
-
...x.getState().persist,
|
503
|
-
isQuoteTimer: !0
|
504
|
-
});
|
505
|
-
}
|
506
|
-
}
|
507
|
-
M(() => {
|
508
|
-
E();
|
509
|
-
}, [t.isQuoteTimer]);
|
510
|
-
function A() {
|
511
|
-
n(), p({
|
512
|
-
stepData: {},
|
513
|
-
quote: "enable",
|
514
|
-
isTimerStarted: !1,
|
515
|
-
routeId: (a == null ? void 0 : a.routeId) || "",
|
516
|
-
route: a,
|
517
|
-
toChain: (t == null ? void 0 : t.toChain) || {},
|
518
|
-
toCoin: (t == null ? void 0 : t.toCoin) || {},
|
519
|
-
fromChain: (t == null ? void 0 : t.fromChain) || {},
|
520
|
-
fromCoin: (t == null ? void 0 : t.fromCoin) || {},
|
521
|
-
amount: t == null ? void 0 : t.amount,
|
522
|
-
openAt: (/* @__PURE__ */ new Date()).getTime(),
|
523
|
-
nextTx: null,
|
524
|
-
startTime: (/* @__PURE__ */ new Date()).getTime(),
|
525
|
-
showAcceptQuote: !1,
|
526
|
-
loading: !0
|
527
|
-
});
|
528
|
-
}
|
529
|
-
return /* @__PURE__ */ h("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: [
|
530
|
-
/* @__PURE__ */ r("p", { className: "bw-text-text-primary bw-text-lg bw-font-semibold", children: "Quote Expired!" }),
|
531
|
-
/* @__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" }),
|
532
|
-
/* @__PURE__ */ h("div", { className: "bw-w-full bw-mt-4 bw-px-2 bw-flex bw-items-center ba-gap-x-2 bw-justify-between", children: [
|
533
|
-
/* @__PURE__ */ h("div", { children: [
|
534
|
-
k.isLoading || k.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__ */ h("p", { className: "bw-text-text-lg bw-font-bold bw-text-text-primary", children: [
|
535
|
-
/* @__PURE__ */ r(pt, { value: C == null ? void 0 : C.toString(), decimal: 12 }),
|
536
|
-
" ",
|
537
|
-
((it = a == null ? void 0 : a.to) == null ? void 0 : it.symbol) || ""
|
538
|
-
] }),
|
539
|
-
k.isLoading || k.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__ */ h("p", { className: "bw-text-text-sm bw-font-normal bw-text-text-secondary", children: [
|
540
|
-
"$ ",
|
541
|
-
/* @__PURE__ */ r(pt, { value: ie(((a == null ? void 0 : a.outputAmountDisplay) || "") * ((at = a == null ? void 0 : a.to) == null ? void 0 : at.lastPrice) || 0, 10), decimal: 12 })
|
542
|
-
] })
|
543
|
-
] }),
|
544
|
-
/* @__PURE__ */ r(
|
545
|
-
"button",
|
546
|
-
{
|
547
|
-
disabled: k.isFetching || k.isLoading,
|
548
|
-
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 ${K.gradientbutton + " bw-p-[3px]"}`,
|
549
|
-
onClick: A,
|
550
|
-
style: {
|
551
|
-
...s == null ? void 0 : s.gradientStyle,
|
552
|
-
boxShadow: s && s.customTheme && ((ct = (lt = s.customTheme) == null ? void 0 : lt.shadow) == null ? void 0 : ct.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
553
|
-
},
|
554
|
-
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" })
|
555
|
-
}
|
556
|
-
)
|
557
|
-
] })
|
558
|
-
] });
|
559
|
-
}
|
560
|
-
function w0({ handleBack: n }) {
|
561
|
-
var y, g, N, D, S, $, o, w, c, b;
|
562
|
-
const { txnupdate: s } = _t, t = x((d) => d.persist), e = x((d) => d.configuration), i = t == null ? void 0 : t.stepData.stepType, l = ((t == null ? void 0 : t.txnHashObj) || [])[(y = t == null ? void 0 : t.stepData) == null ? void 0 : y.stepId] || {}, p = i === "bridge" ? (l == null ? void 0 : l.destTxnHash) || (l == null ? void 0 : l.srcTxnHash) : (l == null ? void 0 : l.srcTxnHash) || "", f = (g = t == null ? void 0 : t.historyData) == null ? void 0 : g.finalTxnHash, m = p || f || "";
|
563
|
-
return i === "bridge" ? l != null && l.destTxnUrl || (l == null || l.srcTxnUrl) : l != null && l.srcTxnUrl, (N = t == null ? void 0 : t.historyData) == null || N.finalTxnUrl, t.toCoin, t.route, t.toChain, /* @__PURE__ */ h("div", { className: "bw-absolute bw-bg-background-container bw-bottom-0", children: [
|
564
|
-
/* @__PURE__ */ h("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: [
|
565
|
-
/* @__PURE__ */ h("div", { className: "bw-w-[60%]", children: [
|
566
|
-
/* @__PURE__ */ r("p", { className: "bw-text-text-secondary bw-mb-2 bw-text-lg bw-font-medium", children: "Transaction Update" }),
|
567
|
-
/* @__PURE__ */ h("p", { className: "bw-text-text-primary bw-text-2xl bw-font-bold", children: [
|
568
|
-
Ut(((D = t == null ? void 0 : t.statusData) == null ? void 0 : D.outputAmountDisplay) || "", 10),
|
569
|
-
" ",
|
570
|
-
(($ = (S = t == null ? void 0 : t.statusData) == null ? void 0 : S.outputToken) == null ? void 0 : $.symbol) || "",
|
571
|
-
" ",
|
572
|
-
/* @__PURE__ */ r("br", {})
|
573
|
-
] }),
|
574
|
-
/* @__PURE__ */ h("p", { className: "bw-text-text-secondary bw-mb-2 bw-text-sm bw-font-normal", children: [
|
575
|
-
"Received on ",
|
576
|
-
t.toChain.name,
|
577
|
-
" chain",
|
578
|
-
" "
|
579
|
-
] }),
|
580
|
-
/* @__PURE__ */ h("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: [
|
581
|
-
`Txn Id:${m ? `${m.substring(0, 5)}...${m.substring(
|
582
|
-
m.length - 5,
|
583
|
-
m.length
|
584
|
-
)}` : ""}`,
|
585
|
-
/* @__PURE__ */ r("div", { className: "bw-cursor-pointer ", children: /* @__PURE__ */ r(ft, { txnHash: m, children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(kt, { fill: "var(--tw-text-secondary)" }) }) }) })
|
586
|
-
] })
|
587
|
-
] }),
|
588
|
-
/* @__PURE__ */ r("div", { className: "bw-w-[40%] bw-flex bw-items-center bw-justify-center", children: /* @__PURE__ */ r("img", { src: s, width: 108, height: 100, alt: "img" }) })
|
589
|
-
] }),
|
590
|
-
/* @__PURE__ */ h("p", { className: "bw-text-sm bw-text-center bw-text-text-secondary bw-font-normal bw-mt-3", children: [
|
591
|
-
"Due to liquidity error on providers end your",
|
592
|
-
" ",
|
593
|
-
/* @__PURE__ */ h("b", { className: "bw-text-text-primary", children: [
|
594
|
-
"receiving token has been changed to",
|
595
|
-
" ",
|
596
|
-
((w = (o = t == null ? void 0 : t.statusData) == null ? void 0 : o.outputToken) == null ? void 0 : w.symbol) || "",
|
597
|
-
" on",
|
598
|
-
" ",
|
599
|
-
(b = (c = t == null ? void 0 : t.statusData) == null ? void 0 : c.outputToken) == null ? void 0 : b.blockchain
|
600
|
-
] })
|
601
|
-
] }),
|
602
|
-
/* @__PURE__ */ r(
|
603
|
-
"button",
|
604
|
-
{
|
605
|
-
onClick: n,
|
606
|
-
style: { ...e == null ? void 0 : e.gradientStyle },
|
607
|
-
className: `bw-w-full ${K.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`,
|
608
|
-
children: /* @__PURE__ */ r(
|
609
|
-
"div",
|
610
|
-
{
|
611
|
-
onClick: n,
|
612
|
-
className: "bw-rounded-sm bw-bg-background-container bw-flex bw-items-center bw-justify-center b-w-full bw-h-full",
|
613
|
-
children: "Start Again"
|
614
|
-
}
|
615
|
-
)
|
616
|
-
}
|
617
|
-
)
|
618
|
-
] });
|
619
|
-
}
|
620
|
-
function Ft({ handleBack: n, errorText: s }) {
|
621
|
-
const t = x((e) => e.configuration);
|
622
|
-
return /* @__PURE__ */ h(U, { children: [
|
623
|
-
/* @__PURE__ */ r(Rt, { errorText: s, heading: "Transaction Expired" }),
|
624
|
-
/* @__PURE__ */ r("button", { onClick: n, style: { ...t == null ? void 0 : t.gradientStyle }, className: `bw-w-full ${K.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" }) })
|
625
|
-
] });
|
626
|
-
}
|
627
|
-
function p0({ fill: n, stroke: s }) {
|
628
|
-
return /* @__PURE__ */ h(
|
629
|
-
"svg",
|
630
|
-
{
|
631
|
-
width: "113",
|
632
|
-
height: "62",
|
633
|
-
viewBox: "0 0 113 62",
|
634
|
-
fill: "none",
|
635
|
-
xmlns: "http://www.w3.org/2000/svg",
|
636
|
-
children: [
|
637
|
-
/* @__PURE__ */ r(
|
638
|
-
"rect",
|
639
|
-
{
|
640
|
-
x: "8.4375",
|
641
|
-
y: "24.9023",
|
642
|
-
width: "78.9692",
|
643
|
-
height: "36.4567",
|
644
|
-
rx: "9.5",
|
645
|
-
fill: n,
|
646
|
-
stroke: s
|
647
|
-
}
|
648
|
-
),
|
649
|
-
/* @__PURE__ */ r(
|
650
|
-
"rect",
|
651
|
-
{
|
652
|
-
x: "15.5742",
|
653
|
-
y: "32.5957",
|
654
|
-
width: "42.7954",
|
655
|
-
height: "14.5366",
|
656
|
-
rx: "4",
|
657
|
-
fill: s
|
658
|
-
}
|
659
|
-
),
|
660
|
-
/* @__PURE__ */ r(
|
661
|
-
"rect",
|
662
|
-
{
|
663
|
-
x: "38.8398",
|
664
|
-
y: "50.0684",
|
665
|
-
width: "42.7954",
|
666
|
-
height: "6.99623",
|
667
|
-
rx: "3.49811",
|
668
|
-
fill: s
|
669
|
-
}
|
670
|
-
),
|
671
|
-
/* @__PURE__ */ r(
|
672
|
-
"rect",
|
673
|
-
{
|
674
|
-
x: "1.25",
|
675
|
-
y: "19.043",
|
676
|
-
width: "15.3647",
|
677
|
-
height: "15.2004",
|
678
|
-
rx: "4.5",
|
679
|
-
fill: n,
|
680
|
-
stroke: s
|
681
|
-
}
|
682
|
-
),
|
683
|
-
/* @__PURE__ */ h("g", { filter: "url(#filter0_d_8010_16559)", children: [
|
684
|
-
/* @__PURE__ */ r(
|
685
|
-
"path",
|
686
|
-
{
|
687
|
-
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",
|
688
|
-
fill: n,
|
689
|
-
stroke: s
|
690
|
-
}
|
691
|
-
),
|
692
|
-
/* @__PURE__ */ r(
|
693
|
-
"path",
|
694
|
-
{
|
695
|
-
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",
|
696
|
-
fill: s
|
697
|
-
}
|
698
|
-
)
|
699
|
-
] }),
|
700
|
-
/* @__PURE__ */ r("defs", { children: /* @__PURE__ */ h(
|
701
|
-
"filter",
|
702
|
-
{
|
703
|
-
id: "filter0_d_8010_16559",
|
704
|
-
x: "56.1172",
|
705
|
-
y: "0.59375",
|
706
|
-
width: "56.1328",
|
707
|
-
height: "52.5371",
|
708
|
-
filterUnits: "userSpaceOnUse",
|
709
|
-
"color-interpolation-filters": "sRGB",
|
710
|
-
children: [
|
711
|
-
/* @__PURE__ */ r("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
|
712
|
-
/* @__PURE__ */ r(
|
713
|
-
"feColorMatrix",
|
714
|
-
{
|
715
|
-
in: "SourceAlpha",
|
716
|
-
type: "matrix",
|
717
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
718
|
-
result: "hardAlpha"
|
719
|
-
}
|
720
|
-
),
|
721
|
-
/* @__PURE__ */ r("feOffset", {}),
|
722
|
-
/* @__PURE__ */ r("feGaussianBlur", { stdDeviation: "5" }),
|
723
|
-
/* @__PURE__ */ r("feComposite", { in2: "hardAlpha", operator: "out" }),
|
724
|
-
/* @__PURE__ */ r(
|
725
|
-
"feColorMatrix",
|
726
|
-
{
|
727
|
-
type: "matrix",
|
728
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
|
729
|
-
}
|
730
|
-
),
|
731
|
-
/* @__PURE__ */ r(
|
732
|
-
"feBlend",
|
733
|
-
{
|
734
|
-
mode: "normal",
|
735
|
-
in2: "BackgroundImageFix",
|
736
|
-
result: "effect1_dropShadow_8010_16559"
|
737
|
-
}
|
738
|
-
),
|
739
|
-
/* @__PURE__ */ r(
|
740
|
-
"feBlend",
|
741
|
-
{
|
742
|
-
mode: "normal",
|
743
|
-
in: "SourceGraphic",
|
744
|
-
in2: "effect1_dropShadow_8010_16559",
|
745
|
-
result: "shape"
|
746
|
-
}
|
747
|
-
)
|
748
|
-
]
|
749
|
-
}
|
750
|
-
) })
|
751
|
-
]
|
752
|
-
}
|
753
|
-
);
|
754
|
-
}
|
755
|
-
function Bt({ text: n }) {
|
756
|
-
return /* @__PURE__ */ h("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: [
|
757
|
-
/* @__PURE__ */ r(p0, { fill: "var(--tw-background-networkcard)", stroke: "var(--tw-border-primary)" }),
|
758
|
-
/* @__PURE__ */ r("p", { className: "bw-text-2xl bw-mt-3 bw-text-text-primary", children: n }),
|
759
|
-
/* @__PURE__ */ r("p", { className: "bw-text-sm bw-mt-2 bw-font-normal bw-text-text-secondary", children: "Please start your transaction again" })
|
760
|
-
] });
|
761
|
-
}
|
762
|
-
function gt(n) {
|
763
|
-
var D, S, $;
|
764
|
-
const s = x((o) => o.setPersist), t = x((o) => o.persist), e = Pt(), { setErrorMessage: i } = q(tt), u = dt(!1), l = t.isHistory, p = !Z.isEmpty((S = (D = x.getState()) == null ? void 0 : D.persist) == null ? void 0 : S.historyData);
|
765
|
-
M(() => (u.current = !0, () => {
|
766
|
-
u.current = !1;
|
767
|
-
}), []);
|
768
|
-
const f = he({
|
769
|
-
mutationKey: "nexttx",
|
770
|
-
mutationFn: async ({ id: o, routeId: w }) => await Jt({ stepId: o, routeId: w }),
|
771
|
-
refetchOnWindowFocus: !1,
|
772
|
-
refetchOnMount: !1,
|
773
|
-
cacheTime: 1e3,
|
774
|
-
onSuccess: (o, w) => {
|
775
|
-
var c, b, d, T, k, a, C;
|
776
|
-
u.current && (o.status == "error" ? i(o) : i({ error: "" }), e.emit(X.TransactionData, {
|
777
|
-
...o
|
778
|
-
}), y(o), s({
|
779
|
-
...(c = x.getState()) == null ? void 0 : c.persist,
|
780
|
-
loading: !1,
|
781
|
-
txnEvm: (d = (b = o == null ? void 0 : o.data) == null ? void 0 : b.txnData) == null ? void 0 : d.txnEvm,
|
782
|
-
nextTx: o,
|
783
|
-
hash: null,
|
784
|
-
txnType: ((k = (T = o == null ? void 0 : o.data) == null ? void 0 : T.txnData) == null ? void 0 : k.txnType) || null,
|
785
|
-
gasless: (C = (a = o == null ? void 0 : o.data) == null ? void 0 : a.txnData) == null ? void 0 : C.gasless
|
786
|
-
}));
|
787
|
-
},
|
788
|
-
onError: (o) => {
|
789
|
-
var c;
|
790
|
-
let w = o.details || o.message || "";
|
791
|
-
i({ error: w }), e.emit(X.TransactionData, {
|
792
|
-
error: w,
|
793
|
-
routeId: (t == null ? void 0 : t.routeId) || "",
|
794
|
-
stepId: ((c = t == null ? void 0 : t.stepData) == null ? void 0 : c.stepId) || ""
|
795
|
-
});
|
796
|
-
}
|
797
|
-
});
|
798
|
-
async function m(o, w, c) {
|
799
|
-
try {
|
800
|
-
await f.mutateAsync({
|
801
|
-
id: o == null ? void 0 : o.stepId,
|
802
|
-
routeId: w
|
803
|
-
}), s({
|
804
|
-
...x.getState().persist,
|
805
|
-
stepData: o
|
806
|
-
});
|
807
|
-
} catch {
|
808
|
-
}
|
809
|
-
}
|
810
|
-
function y(o) {
|
811
|
-
var w, c, b, d, T, k, a;
|
812
|
-
if (((w = o == null ? void 0 : o.data) == null ? void 0 : w.skipTxn) === !0) {
|
813
|
-
let C = ((d = (b = (c = N == null ? void 0 : N.data) == null ? void 0 : c.data) == null ? void 0 : b.steps) == null ? void 0 : d[t.allSteps.currentStep + 1]) || ((k = (T = t == null ? void 0 : t.allSteps) == null ? void 0 : T.steps) == null ? void 0 : k[t.allSteps.currentStep + 1]) || {};
|
814
|
-
!Z.isEmpty(C) && ((a = o == null ? void 0 : o.data) != null && a.routeId) && setTimeout(() => {
|
815
|
-
var E;
|
816
|
-
g(), m(C, (E = o == null ? void 0 : o.data) == null ? void 0 : E.routeId);
|
817
|
-
}, 0);
|
818
|
-
} else
|
819
|
-
return;
|
820
|
-
}
|
821
|
-
function g() {
|
822
|
-
var o;
|
823
|
-
s({
|
824
|
-
...x.getState().persist,
|
825
|
-
loading: !0,
|
826
|
-
allSteps: {
|
827
|
-
...x.getState().persist.allSteps,
|
828
|
-
steps: ((o = t == null ? void 0 : t.allSteps) == null ? void 0 : o.steps) || [],
|
829
|
-
currentStep: t.allSteps.currentStep + 1,
|
830
|
-
type: "preText"
|
831
|
-
}
|
832
|
-
});
|
833
|
-
}
|
834
|
-
const N = ye({
|
835
|
-
queryKey: ["txnbody", t == null ? void 0 : t.routeId],
|
836
|
-
queryFn: async () => await Zt({ routeId: t == null ? void 0 : t.routeId }),
|
837
|
-
refetchOnWindowFocus: !1,
|
838
|
-
refetchOnMount: !1,
|
839
|
-
enabled: !!(($ = t.routeId) != null && $.length && !t.nextTx && !l)
|
840
|
-
});
|
841
|
-
return M(() => {
|
842
|
-
var o, w, c, b, d, T, k;
|
843
|
-
if (N.data && !(t != null && t.nextTx) && n) {
|
844
|
-
let a = N.data;
|
845
|
-
a.status == "error" ? (i(a), e.emit(X.TransactionSteps, {
|
846
|
-
...a
|
847
|
-
})) : (e.emit(X.TransactionSteps, {
|
848
|
-
routeId: ((o = a == null ? void 0 : a.data) == null ? void 0 : o.routeId) || "",
|
849
|
-
steps: ((w = a == null ? void 0 : a.data) == null ? void 0 : w.steps) || [],
|
850
|
-
numOfSteps: ((b = (c = a == null ? void 0 : a.data) == null ? void 0 : c.steps) == null ? void 0 : b.length) || 0
|
851
|
-
}), i({ error: "" })), typeof (a == null ? void 0 : a.data) < "u" && !p && (m((d = a == null ? void 0 : a.data) == null ? void 0 : d.steps[0], (T = a == null ? void 0 : a.data) == null ? void 0 : T.routeId), setTimeout(() => {
|
852
|
-
var C, E, A;
|
853
|
-
s({
|
854
|
-
...x.getState().persist,
|
855
|
-
stepData: (C = a == null ? void 0 : a.data) == null ? void 0 : C.steps[0]
|
856
|
-
}), s({
|
857
|
-
...x.getState().persist,
|
858
|
-
allSteps: {
|
859
|
-
steps: ((E = a == null ? void 0 : a.data) == null ? void 0 : E.steps) || ((A = t == null ? void 0 : t.allSteps) == null ? void 0 : A.steps) || [],
|
860
|
-
currentStep: 0,
|
861
|
-
type: "preText"
|
862
|
-
}
|
863
|
-
});
|
864
|
-
}, 1200), ((k = a == null ? void 0 : a.data) == null ? void 0 : k.status) == "error" && i({ ...a.data }));
|
865
|
-
}
|
866
|
-
}, [N.data, t == null ? void 0 : t.nextTx, p, n]), M(() => {
|
867
|
-
if (N.error) {
|
868
|
-
let o = N.error, w = o.details || o.message || "";
|
869
|
-
e.emit(X.TransactionSteps, {
|
870
|
-
error: w,
|
871
|
-
routeId: (t == null ? void 0 : t.routeId) || ""
|
872
|
-
}), i({ error: w });
|
873
|
-
}
|
874
|
-
}, [N.error]), M(() => {
|
875
|
-
var o;
|
876
|
-
t.routeId && s({ ...(o = x.getState()) == null ? void 0 : o.persist, isSuccess: !0 });
|
877
|
-
}, [t.routeId]), { nextTx: f, callNextTx: m, handleSkipTxn: y, setNextStep: g, txnBody: N };
|
878
|
-
}
|
879
|
-
function Qt() {
|
880
|
-
var S, $;
|
881
|
-
const n = x((o) => o.persist), s = x((o) => o.setPersist), { registerError: t } = ae(), { handleErrorMessage: e, setErrorMessage: i } = q(tt), u = (n == null ? void 0 : n.showAcceptQuote) && !n.hash && ((S = n == null ? void 0 : n.allSteps) == null ? void 0 : S.currentStep) == 0 && (($ = n == null ? void 0 : n.nextTx) == null ? void 0 : $.status) === "success", { txnBody: l, callNextTx: p } = gt();
|
882
|
-
function f(o) {
|
883
|
-
var c, b, d, T, k, a, C, E, A;
|
884
|
-
let w = [...((b = (c = x.getState()) == null ? void 0 : c.persist) == null ? void 0 : b.stepStatus) || []];
|
885
|
-
return w.length ? w[(d = n.allSteps) == null ? void 0 : d.currentStep] = {
|
886
|
-
...w[(T = n.allSteps) == null ? void 0 : T.currentStep],
|
887
|
-
type: (k = n.allSteps) == null ? void 0 : k.type
|
888
|
-
} : w[0] = {
|
889
|
-
...w[(a = n.allSteps) == null ? void 0 : a.currentStep],
|
890
|
-
type: (C = n.allSteps) == null ? void 0 : C.type
|
891
|
-
}, o && (w[(E = n.allSteps) == null ? void 0 : E.currentStep] = {
|
892
|
-
...w[(A = n.allSteps) == null ? void 0 : A.currentStep],
|
893
|
-
...o
|
894
|
-
}), w;
|
895
|
-
}
|
896
|
-
function m() {
|
897
|
-
s({
|
898
|
-
...x.getState().persist,
|
899
|
-
stepData: {},
|
900
|
-
allSteps: {
|
901
|
-
steps: null,
|
902
|
-
currentStep: 0
|
903
|
-
}
|
904
|
-
});
|
905
|
-
}
|
906
|
-
function y() {
|
907
|
-
i({ error: "" });
|
908
|
-
}
|
909
|
-
function g(o, w) {
|
910
|
-
var c, b;
|
911
|
-
t({
|
912
|
-
module: o,
|
913
|
-
routeId: (n == null ? void 0 : n.routeId) || "",
|
914
|
-
stepId: ((c = n == null ? void 0 : n.stepData) == null ? void 0 : c.stepId) || "",
|
915
|
-
error: w.error,
|
916
|
-
userWalletAddress: (b = n == null ? void 0 : n.route) == null ? void 0 : b.userWalletAddress
|
917
|
-
});
|
918
|
-
}
|
919
|
-
function N(o) {
|
920
|
-
var b, d, T, k, a, C, E, A, B, L, G, P, O, j, _, R, V, Q;
|
921
|
-
let c = { ...((T = (d = (b = x) == null ? void 0 : b.getState()) == null ? void 0 : d.persist) == null ? void 0 : T.txnHashObj) || {} };
|
922
|
-
Z.isEmpty(c[(k = o == null ? void 0 : o.data) == null ? void 0 : k.stepId]) ? c[(G = o == null ? void 0 : o.data) == null ? void 0 : G.stepId] = {
|
923
|
-
srcTxnUrl: ((P = o == null ? void 0 : o.data) == null ? void 0 : P.srcTxnUrl) || "",
|
924
|
-
stepId: ((O = o == null ? void 0 : o.data) == null ? void 0 : O.stepId) || "",
|
925
|
-
srcTxnHash: ((j = o == null ? void 0 : o.data) == null ? void 0 : j.srcTxnHash) || "",
|
926
|
-
destTxnUrl: ((_ = o == null ? void 0 : o.data) == null ? void 0 : _.destTxnUrl) || "",
|
927
|
-
destTxnHash: ((R = o == null ? void 0 : o.data) == null ? void 0 : R.destTxnHash) || ""
|
928
|
-
} : c[(a = o == null ? void 0 : o.data) == null ? void 0 : a.stepId] = {
|
929
|
-
...c[(C = o == null ? void 0 : o.data) == null ? void 0 : C.stepId],
|
930
|
-
destTxnHash: ((E = o == null ? void 0 : o.data) == null ? void 0 : E.destTxnHash) || (o == null ? void 0 : o.destTxnHash) || "",
|
931
|
-
destTxnUrl: ((A = o == null ? void 0 : o.data) == null ? void 0 : A.destTxnUrl) || (o == null ? void 0 : o.destTxnUrl) || "",
|
932
|
-
srcTxnUrl: ((B = o == null ? void 0 : o.data) == null ? void 0 : B.srcTxnUrl) || (o == null ? void 0 : o.srcTxnUrl) || "",
|
933
|
-
srcTxnHash: ((L = o == null ? void 0 : o.data) == null ? void 0 : L.srcTxnHash) || (o == null ? void 0 : o.srcTxnHash) || ""
|
934
|
-
}, s({
|
935
|
-
...(Q = (V = x) == null ? void 0 : V.getState()) == null ? void 0 : Q.persist,
|
936
|
-
txnHashObj: c
|
937
|
-
});
|
938
|
-
}
|
939
|
-
function D() {
|
940
|
-
var o, w, c, b;
|
941
|
-
s({
|
942
|
-
...(o = x.getState()) == null ? void 0 : o.persist,
|
943
|
-
stepStatus: f({ status: "loadingText" }),
|
944
|
-
isTryAgain: !0,
|
945
|
-
loading: !0,
|
946
|
-
hash: null
|
947
|
-
}), e(!1), y(), p(((w = n == null ? void 0 : n.allSteps) == null ? void 0 : w.steps[n.allSteps.currentStep]) || {}, (n == null ? void 0 : n.routeId) || ((b = (c = l.data) == null ? void 0 : c.data) == null ? void 0 : b.routeId), !0);
|
948
|
-
}
|
949
|
-
return { handleStepStatus: f, handleUpdate: m, handleErrorReset: y, isShowNewQuote: u, handleTxnObj: N, callRegisterError: g, handleTryAgain: D };
|
950
|
-
}
|
951
|
-
const zt = te(new AbortController());
|
952
|
-
function z0({ children: n }) {
|
953
|
-
const s = dt(new AbortController());
|
954
|
-
return M(() => (s.current = new AbortController(), () => {
|
955
|
-
var t;
|
956
|
-
(t = s.current) == null || t.abort();
|
957
|
-
}), []), /* @__PURE__ */ r(zt.Provider, { value: s.current, children: n });
|
958
|
-
}
|
959
|
-
function h0() {
|
960
|
-
var b;
|
961
|
-
const n = x((d) => d.setPersist), s = x((d) => d.persist), { callRegisterError: t, handleTxnObj: e, handleStepStatus: i } = Qt(), { errorMessage: u, setErrorMessage: l } = q(tt), p = q(zt), { data: f } = le(), { primaryWallet: m } = Lt(), { setNextStep: y, callNextTx: g } = gt(), N = Pt(), D = dt(), { data: S, isLoading: $ } = Ht({
|
962
|
-
chainId: [(b = s == null ? void 0 : s.fromChain) == null ? void 0 : b.chainId],
|
963
|
-
multiChain: !0
|
964
|
-
});
|
965
|
-
async function o() {
|
966
|
-
var T, k;
|
967
|
-
let d;
|
968
|
-
((T = s == null ? void 0 : s.fromChain) == null ? void 0 : T.networkType) == "sol" && (d = await m.connector.getSigner());
|
969
|
-
try {
|
970
|
-
let a;
|
971
|
-
a = await Yt({
|
972
|
-
txDataResponse: s.nextTx,
|
973
|
-
quote: s.route,
|
974
|
-
step: s.stepData,
|
975
|
-
provider: f || null,
|
976
|
-
cosmosClient: (S == null ? void 0 : S[(k = s == null ? void 0 : s.fromChain) == null ? void 0 : k.chainId]) || null,
|
977
|
-
walletAdapter: d || null,
|
978
|
-
signTransaction: (d == null ? void 0 : d.signTransaction) || null
|
979
|
-
}), typeof a == "object" && (a = a.signature), n({
|
980
|
-
...x.getState().persist,
|
981
|
-
hash: a
|
982
|
-
}), w(a);
|
983
|
-
} catch (a) {
|
984
|
-
const C = yt(a.message || a.details || a), E = a.message || a.details || a;
|
985
|
-
C && (E != null && E.length) && D.current && t("/wallet error", {
|
986
|
-
error: E
|
987
|
-
}), l({ error: E, type: "wallet" });
|
988
|
-
}
|
989
|
-
}
|
990
|
-
async function w(d) {
|
991
|
-
var T, k;
|
992
|
-
try {
|
993
|
-
let a = await Kt({ routeId: s.routeId, stepId: (T = s == null ? void 0 : s.stepData) == null ? void 0 : T.stepId, txnHash: d }), C = await Xt({
|
994
|
-
routeId: s.routeId,
|
995
|
-
stepId: (k = s == null ? void 0 : s.stepData) == null ? void 0 : k.stepId,
|
996
|
-
txnHash: d,
|
997
|
-
signal: p.signal,
|
998
|
-
pollingIntervalMs: 2e3,
|
999
|
-
onStatusUpdate: (E, A) => {
|
1000
|
-
var L, G, P, O, j, _, R;
|
1001
|
-
n({
|
1002
|
-
...(G = (L = x) == null ? void 0 : L.getState()) == null ? void 0 : G.persist,
|
1003
|
-
stepStatus: i({
|
1004
|
-
status: "pending"
|
1005
|
-
})
|
1006
|
-
});
|
1007
|
-
let B = ((P = s == null ? void 0 : s.allSteps) == null ? void 0 : P.currentStep) === ((j = (O = s == null ? void 0 : s.allSteps) == null ? void 0 : O.steps) == null ? void 0 : j.length) - 1;
|
1008
|
-
N.emit(X.TransactionStatus, {
|
1009
|
-
...A,
|
1010
|
-
status: !B && ((_ = A == null ? void 0 : A.data) == null ? void 0 : _.status) === "success" ? "in-progress" : (R = A == null ? void 0 : A.data) == null ? void 0 : R.status,
|
1011
|
-
isLastStep: B
|
1012
|
-
}), A && c(A);
|
1013
|
-
}
|
1014
|
-
});
|
1015
|
-
} catch (a) {
|
1016
|
-
const C = yt(a.message || a.details || a), E = a.message || a.details || a;
|
1017
|
-
C && (E != null && E.length) && D.current && t("/wallet error", {
|
1018
|
-
error: E
|
1019
|
-
}), l({ error: E, type: "wallet" });
|
1020
|
-
}
|
1021
|
-
}
|
1022
|
-
function c(d) {
|
1023
|
-
var T, k, a, C, E, A, B, L, G, P, O, j, _, R, V, Q;
|
1024
|
-
if ((T = d == null ? void 0 : d.data) != null && T.status && D.current && n({
|
1025
|
-
...(a = (k = x) == null ? void 0 : k.getState()) == null ? void 0 : a.persist,
|
1026
|
-
statusData: d == null ? void 0 : d.data,
|
1027
|
-
stepStatus: i({
|
1028
|
-
status: ((C = d == null ? void 0 : d.data) == null ? void 0 : C.status) == "in-progress" ? "pending" : (E = d == null ? void 0 : d.data) == null ? void 0 : E.status
|
1029
|
-
})
|
1030
|
-
}), e(d), d.status == "error" && l(d), ((A = d.data) == null ? void 0 : A.status) == "success") {
|
1031
|
-
let W = s.allSteps.steps[s.allSteps.currentStep + 1];
|
1032
|
-
if (l({ error: "" }), n({
|
1033
|
-
...x.getState().persist,
|
1034
|
-
stepData: W || x.getState().persist.stepData
|
1035
|
-
}), s.allSteps.currentStep == ((L = (B = s.allSteps) == null ? void 0 : B.steps) == null ? void 0 : L.length) - 1)
|
1036
|
-
n({
|
1037
|
-
...x.getState().persist,
|
1038
|
-
allSteps: {
|
1039
|
-
...x.getState().persist.allSteps,
|
1040
|
-
currentStep: s.allSteps.currentStep + 1,
|
1041
|
-
type: "preText"
|
1042
|
-
}
|
1043
|
-
});
|
1044
|
-
else if (s.allSteps.currentStep <= ((P = (G = s.allSteps) == null ? void 0 : G.steps) == null ? void 0 : P.length) - 1)
|
1045
|
-
y(), g(s.allSteps.steps[s.allSteps.currentStep + 1], (s == null ? void 0 : s.routeId) || ((j = (O = txnBody.data) == null ? void 0 : O.data) == null ? void 0 : j.routeId));
|
1046
|
-
else
|
1047
|
-
return;
|
1048
|
-
} else ((_ = d.data) == null ? void 0 : _.status) == "failed" || ((R = d.data) == null ? void 0 : R.status) == "in-progress" && (V = u == null ? void 0 : u.error) != null && V.length && (n({ ...(Q = x.getState()) == null ? void 0 : Q.persist, loading: !0 }), l({ error: "" }));
|
1049
|
-
}
|
1050
|
-
return M(() => (s.hash && w(s.hash), () => {
|
1051
|
-
p.abort();
|
1052
|
-
}), []), M(() => (D.current = !0, () => {
|
1053
|
-
D.current = !1;
|
1054
|
-
}), []), { handleExeTxn: o };
|
1055
|
-
}
|
1056
|
-
function q0({ setExchange: n, startTimer: s, handleBack: t }) {
|
1057
|
-
var P, O, j, _, R, V, Q, W, et, nt, rt, st, ot, it, at, lt, ct, F, St, Tt, vt, Et, Ct;
|
1058
|
-
const e = x((v) => v.persist), i = x((v) => v.setPersist), [u, l] = mt(!1), { handleTxnSuccess: p } = q(Ot), { isErrorMessage: f, handleErrorMessage: m, errorMessage: y } = q(tt), { chain: g } = Gt(), N = e.isHistory, { handleStepStatus: D, handleUpdate: S, handleTryAgain: $, isShowNewQuote: o, callRegisterError: w } = Qt(), { handleExeTxn: c } = h0(), { nextTx: b, handleSkipTxn: d, callNextTx: T, txnBody: k } = gt(!0), { switchChain: a } = ce({
|
1059
|
-
chainId: Number(((O = (P = e == null ? void 0 : e.stepData) == null ? void 0 : P.from) == null ? void 0 : O.chainId) || "0"),
|
1060
|
-
throwForSwitchChainNotSupported: !0,
|
1061
|
-
onError(v) {
|
1062
|
-
yt(v.message) && w("wallet-error-switch", { data: { error: v.message } });
|
1063
|
-
}
|
1064
|
-
}), C = !Z.isEmpty((_ = (j = x.getState()) == null ? void 0 : j.persist) == null ? void 0 : _.historyData);
|
1065
|
-
let E = (et = (W = (R = e == null ? void 0 : e.allSteps) == null ? void 0 : R.steps) == null ? void 0 : W[((V = e.allSteps) == null ? void 0 : V.currentStep) || ((Q = e == null ? void 0 : e.allSteps) == null ? void 0 : Q.currentStep)]) == null ? void 0 : et.texts, A = e != null && e.loading ? e.hash ? "process" : "loading" : "pre", B = (nt = y == null ? void 0 : y.error) != null && nt.length ? y.error : null;
|
1066
|
-
M(() => {
|
1067
|
-
var v, I, H;
|
1068
|
-
C && typeof ((v = e == null ? void 0 : e.historyData) == null ? void 0 : v.currentStepIndex) < "u" && ((I = e == null ? void 0 : e.historyData) == null ? void 0 : I.currentStepStatus) == "not-started" ? T(e == null ? void 0 : e.stepData, e == null ? void 0 : e.routeId) : ((H = e == null ? void 0 : e.historyData) == null ? void 0 : H.currentStepStatus) == "in-progress" && s(!0);
|
1069
|
-
}, [C]), M(() => {
|
1070
|
-
var v;
|
1071
|
-
if (((v = e == null ? void 0 : e.allSteps) == null ? void 0 : v.currentStep) === 0 && b.data) {
|
1072
|
-
let I = b.data;
|
1073
|
-
i({
|
1074
|
-
...x.getState().persist,
|
1075
|
-
isQuoteTimer: !(I.status == "error" || e != null && e.isTryAgain),
|
1076
|
-
quote: I.status == "error" || e != null && e.isTryAgain ? "disable" : "enable",
|
1077
|
-
quoteStartTime: (/* @__PURE__ */ new Date()).getTime()
|
1078
|
-
});
|
1079
|
-
} else
|
1080
|
-
i({
|
1081
|
-
...x.getState().persist,
|
1082
|
-
isQuoteTimer: !1,
|
1083
|
-
quote: "disable"
|
1084
|
-
});
|
1085
|
-
}, [(rt = e == null ? void 0 : e.allSteps) == null ? void 0 : rt.steps, b.data]), M(() => {
|
1086
|
-
var v, I;
|
1087
|
-
((v = e.statusData) == null ? void 0 : v.status) == "success" && e.allSteps.currentStep === ((I = e.allSteps.steps) == null ? void 0 : I.length) && (k.isSuccess || e.isSuccess) ? p(!0) : p(!1);
|
1088
|
-
}, [e.allSteps, k.isSuccess, e.isSuccess, e == null ? void 0 : e.statusData]), M(() => {
|
1089
|
-
var v, I, H, J;
|
1090
|
-
(v = y == null ? void 0 : y.error) != null && v.length || ((I = e.statusData) == null ? void 0 : I.status) == "failed" || ((H = e.statusData) == null ? void 0 : H.status) == "partial-success" || ((J = e.statusData) == null ? void 0 : J.status) == "txn-expired" ? m(!0) : m(!1);
|
1091
|
-
}, [y, e == null ? void 0 : e.statusData]), M(() => {
|
1092
|
-
var v, I;
|
1093
|
-
!((v = y == null ? void 0 : y.error) != null && v.length) && (e != null && e.hash) && ((I = e == null ? void 0 : e.statusData) == null ? void 0 : I.srcTxnHash) !== (e == null ? void 0 : e.hash) && i({
|
1094
|
-
...x.getState().persist,
|
1095
|
-
allSteps: {
|
1096
|
-
...x.getState().persist.allSteps,
|
1097
|
-
type: "postText"
|
1098
|
-
}
|
1099
|
-
});
|
1100
|
-
}, [y == null ? void 0 : y.error, e == null ? void 0 : e.hash]), M(() => {
|
1101
|
-
var I, H;
|
1102
|
-
let v = { ...(I = x.getState()) == null ? void 0 : I.persist };
|
1103
|
-
((H = e == null ? void 0 : e.allSteps) == null ? void 0 : H.steps) !== null && (v = {
|
1104
|
-
...v,
|
1105
|
-
stepStatus: D()
|
1106
|
-
}, i(v));
|
1107
|
-
}, [e.allSteps]), M(() => {
|
1108
|
-
var v;
|
1109
|
-
Z.isEmpty(e == null ? void 0 : e.allSteps) || e.hash || i({
|
1110
|
-
...x.getState().persist,
|
1111
|
-
allSteps: { ...x.getState().persist.allSteps, type: "preText" },
|
1112
|
-
loading: !1
|
1113
|
-
}), e != null && e.routeId && !N && n(), d(e == null ? void 0 : e.nextTx), ((v = e == null ? void 0 : e.nextTx) == null ? void 0 : v.status) === "error" && (i({
|
1114
|
-
...x.getState().persist,
|
1115
|
-
loading: !0
|
1116
|
-
}), T(e == null ? void 0 : e.stepData, e == null ? void 0 : e.routeId));
|
1117
|
-
}, []), M(() => {
|
1118
|
-
var v, I;
|
1119
|
-
i(f && !u ? { ...(v = x.getState()) == null ? void 0 : v.persist, loading: !1 } : { ...(I = x.getState()) == null ? void 0 : I.persist, loading: !0 });
|
1120
|
-
}, [f, u]);
|
1121
|
-
function L(v) {
|
1122
|
-
l(v);
|
1123
|
-
}
|
1124
|
-
async function G() {
|
1125
|
-
var v, I, H, J, xt, bt;
|
1126
|
-
(I = e.allSteps.steps) != null && I[((v = e.allSteps) == null ? void 0 : v.currentStep) || 0] && (i({
|
1127
|
-
...(H = x.getState()) == null ? void 0 : H.persist,
|
1128
|
-
loading: !0,
|
1129
|
-
isTimerStarted: !0,
|
1130
|
-
statusData: null,
|
1131
|
-
isQuoteTimer: !1,
|
1132
|
-
showAcceptQuote: !1,
|
1133
|
-
quote: "disable",
|
1134
|
-
startTime: ((bt = (xt = (J = x) == null ? void 0 : J.getState()) == null ? void 0 : xt.persist) == null ? void 0 : bt.startTime) || (/* @__PURE__ */ new Date()).getTime()
|
1135
|
-
}), s(!0), c(), i({
|
1136
|
-
...x.getState().persist,
|
1137
|
-
allSteps: {
|
1138
|
-
...x.getState().persist.allSteps,
|
1139
|
-
type: "loadingText"
|
1140
|
-
}
|
1141
|
-
}));
|
1142
|
-
}
|
1143
|
-
return M(() => {
|
1144
|
-
var v, I, H;
|
1145
|
-
(H = (I = (v = x.getState()) == null ? void 0 : v.persist) == null ? void 0 : I.nextTx) != null && H.data && u && (G(), l(!1));
|
1146
|
-
}, [(it = (ot = (st = x.getState()) == null ? void 0 : st.persist) == null ? void 0 : ot.nextTx) == null ? void 0 : it.data]), M(() => {
|
1147
|
-
var v, I, H, J, xt, bt, Nt;
|
1148
|
-
if ((I = (v = e == null ? void 0 : e.stepData) == null ? void 0 : v.from) != null && I.chainId)
|
1149
|
-
Number((J = (H = e == null ? void 0 : e.stepData) == null ? void 0 : H.from) == null ? void 0 : J.chainId) !== (g == null ? void 0 : g.chainId) && ((xt = e == null ? void 0 : e.fromChain) == null ? void 0 : xt.networkType) === "evm" && a({
|
1150
|
-
chainId: Number(((Nt = (bt = e == null ? void 0 : e.stepData) == null ? void 0 : bt.from) == null ? void 0 : Nt.chainId) || "0")
|
1151
|
-
});
|
1152
|
-
else return;
|
1153
|
-
}, [e == null ? void 0 : e.stepData]), /* @__PURE__ */ h(U, { children: [
|
1154
|
-
((at = e == null ? void 0 : e.statusData) == null ? void 0 : at.status) !== "txn-expired" ? /* @__PURE__ */ r("div", { className: `bw-pt-4 bw-h-[80%] bw-mt-2 bw-relative ${o ? "bw-pointer-events-none bw-opacity-60" : ""}`, children: !k.isFetching && !Z.isEmpty(e == null ? void 0 : e.stepData) ? k.isSuccess && k.data || e != null && e.routeId ? (St = ((lt = e == null ? void 0 : e.allSteps) == null ? void 0 : lt.steps) || ((F = (ct = k.data) == null ? void 0 : ct.data) == null ? void 0 : F.steps)) == null ? void 0 : St.map((v, I, H) => /* @__PURE__ */ h(U, { children: [
|
1155
|
-
" ",
|
1156
|
-
/* @__PURE__ */ h("div", { className: "bw-flex bw-items-start bw-mb-4 bw-justify-between", children: [
|
1157
|
-
/* @__PURE__ */ h("div", { className: "bw-flex bw-relative bw-items-start bw-w-max bw-justify-center bw-gap-x-3", children: [
|
1158
|
-
/* @__PURE__ */ r(i0, { allSteps: e.allSteps, disableButton: e == null ? void 0 : e.loading, i: I, arr: H }),
|
1159
|
-
/* @__PURE__ */ r(Qe, { item: v, i: I })
|
1160
|
-
] }),
|
1161
|
-
/* @__PURE__ */ r(Re, { i: I, item: v })
|
1162
|
-
] })
|
1163
|
-
] })) : /* @__PURE__ */ r(U, {}) : /* @__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: B ? /* @__PURE__ */ r(Bt, { text: "Unable to complete the request!" }) : /* @__PURE__ */ h(U, { children: [
|
1164
|
-
/* @__PURE__ */ r("div", { className: "bw-relative bw-pb-4", children: /* @__PURE__ */ r(d0, {}) }),
|
1165
|
-
/* @__PURE__ */ r("p", { className: "bw-text-2xl bw-text-center bw-font-medium bw-text-text-secondary", children: "Initializing Transaction..." })
|
1166
|
-
] }) }) }) : /* @__PURE__ */ r(U, {}),
|
1167
|
-
!k.isFetching && !Z.isEmpty(e == null ? void 0 : e.stepData) ? o ? /* @__PURE__ */ r(u0, { handleUpdate: S }) : ((Tt = e == null ? void 0 : e.statusData) == null ? void 0 : Tt.status) == "success" && e.allSteps.currentStep == ((vt = e.allSteps.steps) == null ? void 0 : vt.length) ? /* @__PURE__ */ r(Me, { handleBack: t }) : f ? ((Et = e.statusData) == null ? void 0 : Et.status) == "partial-success" ? /* @__PURE__ */ r(w0, { handleBack: t }) : ((Ct = e == null ? void 0 : e.statusData) == null ? void 0 : Ct.status) == "txn-expired" ? /* @__PURE__ */ h("div", { className: "bw-mt-6", children: [
|
1168
|
-
/* @__PURE__ */ r(Bt, { text: "Transaction expired!" }),
|
1169
|
-
/* @__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(Ft, { handleBack: t, errorText: B }) })
|
1170
|
-
] }) : /* @__PURE__ */ r(Le, { errorText: B, handleGoBack: t, txnTextObj: E, handleExeTxn: $, handleDisable: L }) : /* @__PURE__ */ h("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: [
|
1171
|
-
/* @__PURE__ */ r(Oe, { txnProcessType: A, txnTextObj: E, errorText: B, allSteps: e == null ? void 0 : e.allSteps }),
|
1172
|
-
/* @__PURE__ */ r(He, { txnProcessType: A, txnTextObj: E, disableButton: e.loading, handleStep: G })
|
1173
|
-
] }) : B != null && B.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(Ft, { handleBack: t, errorText: B }) }) : /* @__PURE__ */ r(U, {})
|
1174
|
-
] });
|
1175
|
-
}
|
1176
|
-
var ut = { exports: {} }, y0 = ut.exports, $t;
|
1177
|
-
function f0() {
|
1178
|
-
return $t || ($t = 1, function(n, s) {
|
1179
|
-
(function(t, e) {
|
1180
|
-
n.exports = e(ht);
|
1181
|
-
})(typeof self < "u" ? self : y0, (t) => (() => {
|
1182
|
-
var e = { 155: (w) => {
|
1183
|
-
w.exports = t;
|
1184
|
-
} }, i = {};
|
1185
|
-
function u(w) {
|
1186
|
-
var c = i[w];
|
1187
|
-
if (c !== void 0) return c.exports;
|
1188
|
-
var b = i[w] = { exports: {} };
|
1189
|
-
return e[w](b, b.exports, u), b.exports;
|
1190
|
-
}
|
1191
|
-
u.d = (w, c) => {
|
1192
|
-
for (var b in c) u.o(c, b) && !u.o(w, b) && Object.defineProperty(w, b, { enumerable: !0, get: c[b] });
|
1193
|
-
}, u.o = (w, c) => Object.prototype.hasOwnProperty.call(w, c), u.r = (w) => {
|
1194
|
-
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(w, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(w, "__esModule", { value: !0 });
|
1195
|
-
};
|
1196
|
-
var l = {};
|
1197
|
-
u.r(l), u.d(l, { default: () => o, useStopwatch: () => S, useTime: () => $, useTimer: () => D });
|
1198
|
-
var p = u(155);
|
1199
|
-
class f {
|
1200
|
-
static expiryTimestamp(c) {
|
1201
|
-
const b = new Date(c).getTime() > 0;
|
1202
|
-
return b;
|
1203
|
-
}
|
1204
|
-
static onExpire(c) {
|
1205
|
-
const b = c && typeof c == "function";
|
1206
|
-
return b;
|
1207
|
-
}
|
1208
|
-
}
|
1209
|
-
class m {
|
1210
|
-
static getTimeFromSeconds(c) {
|
1211
|
-
const b = Math.ceil(c), d = Math.floor(b / 86400), T = Math.floor(b % 86400 / 3600), k = Math.floor(b % 3600 / 60);
|
1212
|
-
return { totalSeconds: b, seconds: Math.floor(b % 60), minutes: k, hours: T, days: d };
|
1213
|
-
}
|
1214
|
-
static getSecondsFromExpiry(c, b) {
|
1215
|
-
const d = c - (/* @__PURE__ */ new Date()).getTime();
|
1216
|
-
if (d > 0) {
|
1217
|
-
const T = d / 1e3;
|
1218
|
-
return b ? Math.round(T) : T;
|
1219
|
-
}
|
1220
|
-
return 0;
|
1221
|
-
}
|
1222
|
-
static getSecondsFromPrevTime(c, b) {
|
1223
|
-
const d = (/* @__PURE__ */ new Date()).getTime() - c;
|
1224
|
-
if (d > 0) {
|
1225
|
-
const T = d / 1e3;
|
1226
|
-
return b ? Math.round(T) : T;
|
1227
|
-
}
|
1228
|
-
return 0;
|
1229
|
-
}
|
1230
|
-
static getSecondsFromTimeNow() {
|
1231
|
-
const c = /* @__PURE__ */ new Date();
|
1232
|
-
return c.getTime() / 1e3 - 60 * c.getTimezoneOffset();
|
1233
|
-
}
|
1234
|
-
static getFormattedTimeFromSeconds(c, b) {
|
1235
|
-
const { seconds: d, minutes: T, hours: k } = m.getTimeFromSeconds(c);
|
1236
|
-
let a = "", C = k;
|
1237
|
-
return b === "12-hour" && (a = k >= 12 ? "pm" : "am", C = k % 12), { seconds: d, minutes: T, hours: C, ampm: a };
|
1238
|
-
}
|
1239
|
-
}
|
1240
|
-
function y(w, c) {
|
1241
|
-
const b = (0, p.useRef)();
|
1242
|
-
(0, p.useEffect)(() => {
|
1243
|
-
b.current = w;
|
1244
|
-
}), (0, p.useEffect)(() => {
|
1245
|
-
if (!c) return () => {
|
1246
|
-
};
|
1247
|
-
const d = setInterval(() => {
|
1248
|
-
b.current && b.current();
|
1249
|
-
}, c);
|
1250
|
-
return () => clearInterval(d);
|
1251
|
-
}, [c]);
|
1252
|
-
}
|
1253
|
-
const g = 1e3;
|
1254
|
-
function N(w) {
|
1255
|
-
if (!f.expiryTimestamp(w)) return null;
|
1256
|
-
const c = m.getSecondsFromExpiry(w), b = Math.floor(1e3 * (c - Math.floor(c)));
|
1257
|
-
return b > 0 ? b : g;
|
1258
|
-
}
|
1259
|
-
function D() {
|
1260
|
-
let { expiryTimestamp: w, onExpire: c, autoStart: b = !0 } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
1261
|
-
const [d, T] = (0, p.useState)(w), [k, a] = (0, p.useState)(m.getSecondsFromExpiry(d)), [C, E] = (0, p.useState)(b), [A, B] = (0, p.useState)(b), [L, G] = (0, p.useState)(N(d)), P = (0, p.useCallback)(() => {
|
1262
|
-
f.onExpire(c) && c(), E(!1), G(null);
|
1263
|
-
}, [c]), O = (0, p.useCallback)(() => {
|
1264
|
-
E(!1);
|
1265
|
-
}, []), j = (0, p.useCallback)(function(V) {
|
1266
|
-
let Q = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
|
1267
|
-
G(N(V)), B(Q), E(Q), T(V), a(m.getSecondsFromExpiry(V));
|
1268
|
-
}, []), _ = (0, p.useCallback)(() => {
|
1269
|
-
const V = /* @__PURE__ */ new Date();
|
1270
|
-
V.setMilliseconds(V.getMilliseconds() + 1e3 * k), j(V);
|
1271
|
-
}, [k, j]), R = (0, p.useCallback)(() => {
|
1272
|
-
A ? (a(m.getSecondsFromExpiry(d)), E(!0)) : _();
|
1273
|
-
}, [d, A, _]);
|
1274
|
-
return y(() => {
|
1275
|
-
L !== g && G(g);
|
1276
|
-
const V = m.getSecondsFromExpiry(d);
|
1277
|
-
a(V), V <= 0 && P();
|
1278
|
-
}, C ? L : null), { ...m.getTimeFromSeconds(k), start: R, pause: O, resume: _, restart: j, isRunning: C };
|
1279
|
-
}
|
1280
|
-
function S() {
|
1281
|
-
let { autoStart: w, offsetTimestamp: c } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
1282
|
-
const [b, d] = (0, p.useState)(m.getSecondsFromExpiry(c, !0) || 0), [T, k] = (0, p.useState)(/* @__PURE__ */ new Date()), [a, C] = (0, p.useState)(b + m.getSecondsFromPrevTime(T || 0, !0)), [E, A] = (0, p.useState)(w);
|
1283
|
-
y(() => {
|
1284
|
-
C(b + m.getSecondsFromPrevTime(T, !0));
|
1285
|
-
}, E ? 1e3 : null);
|
1286
|
-
const B = (0, p.useCallback)(() => {
|
1287
|
-
const P = /* @__PURE__ */ new Date();
|
1288
|
-
k(P), A(!0), C(b + m.getSecondsFromPrevTime(P, !0));
|
1289
|
-
}, [b]), L = (0, p.useCallback)(() => {
|
1290
|
-
d(a), A(!1);
|
1291
|
-
}, [a]), G = (0, p.useCallback)(function() {
|
1292
|
-
let P = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, O = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
|
1293
|
-
const j = m.getSecondsFromExpiry(P, !0) || 0, _ = /* @__PURE__ */ new Date();
|
1294
|
-
k(_), d(j), A(O), C(j + m.getSecondsFromPrevTime(_, !0));
|
1295
|
-
}, []);
|
1296
|
-
return { ...m.getTimeFromSeconds(a), start: B, pause: L, reset: G, isRunning: E };
|
1297
|
-
}
|
1298
|
-
function $() {
|
1299
|
-
let { format: w } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
1300
|
-
const [c, b] = (0, p.useState)(m.getSecondsFromTimeNow());
|
1301
|
-
return y(() => {
|
1302
|
-
b(m.getSecondsFromTimeNow());
|
1303
|
-
}, 1e3), { ...m.getFormattedTimeFromSeconds(c, w) };
|
1304
|
-
}
|
1305
|
-
function o(w) {
|
1306
|
-
if ((0, p.useEffect)(() => {
|
1307
|
-
}, []), w.expiryTimestamp) {
|
1308
|
-
const b = D(w);
|
1309
|
-
return { ...b, startTimer: b.start, stopTimer: b.pause, resetTimer: () => {
|
1310
|
-
} };
|
1311
|
-
}
|
1312
|
-
const c = S(w);
|
1313
|
-
return { ...c, startTimer: c.start, stopTimer: c.pause, resetTimer: c.reset };
|
1314
|
-
}
|
1315
|
-
return l;
|
1316
|
-
})());
|
1317
|
-
}(ut)), ut.exports;
|
1318
|
-
}
|
1319
|
-
var k0 = f0();
|
1320
|
-
function Vt(n) {
|
1321
|
-
return n > 9 || n < 0 ? n : `0${n}`;
|
1322
|
-
}
|
1323
|
-
function g0({ handleExpiry: n }) {
|
1324
|
-
var l;
|
1325
|
-
const s = x((p) => p.persist), t = (s == null ? void 0 : s.route) || {};
|
1326
|
-
let e = (s == null ? void 0 : s.startTime) || ((l = s == null ? void 0 : s.historyData) == null ? void 0 : l.createdAt);
|
1327
|
-
const { minutes: i, seconds: u } = k0.useTimer({
|
1328
|
-
expiryTimestamp: e + (t == null ? void 0 : t.estimatedTimeInSeconds) * 1e3,
|
1329
|
-
onExpire: () => {
|
1330
|
-
n();
|
1331
|
-
}
|
1332
|
-
});
|
1333
|
-
return `${Vt(i)}:${Vt(u)}`;
|
1334
|
-
}
|
1335
|
-
const W0 = ht.memo(function({ route: s, isTimerStarted: t, startTimer: e, isErrorMessage: i }) {
|
1336
|
-
const [u, l] = mt(!1), { isTxnSuccessful: p } = q(Ot), m = !x((g) => g.persist).stepData;
|
1337
|
-
function y() {
|
1338
|
-
l(!0), e(!1);
|
1339
|
-
}
|
1340
|
-
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: m ? /* @__PURE__ */ r(Dt, {}) : p ? "Done" : t && !u ? /* @__PURE__ */ r(g0, { route: s, handleExpiry: y }) : u ? /* @__PURE__ */ r(Dt, {}) : "Start Txn" }) });
|
1341
|
-
});
|
1342
|
-
function S0(n) {
|
1343
|
-
return typeof n != "string" || n.length === 0 ? n : n.charAt(0).toUpperCase() + n.slice(1).toLowerCase();
|
1344
|
-
}
|
1345
|
-
function qt(n, s) {
|
1346
|
-
return fe(n, s) || 0;
|
1347
|
-
}
|
1348
|
-
function T0() {
|
1349
|
-
var s, t, e, i, u, l, p;
|
1350
|
-
const n = x((f) => f.persist);
|
1351
|
-
return /* @__PURE__ */ h("div", { className: "bw-w-full bw-px-3 bw-py-2 bw-border-t bw-border-border-primary", children: [
|
1352
|
-
/* @__PURE__ */ r("div", { children: (t = (s = n == null ? void 0 : n.route) == null ? void 0 : s.fee) == null ? void 0 : t.filter((f, m) => f.source == "FROM_SOURCE_WALLET").map((f, m) => f.amountInUSD ? /* @__PURE__ */ h("div", { className: "bw-flex bw-mb-1 bw-items-center bw-justify-between", children: [
|
1353
|
-
/* @__PURE__ */ r("p", { className: "bw-text-text-secondary bw-text-sm bw-font-semibold", children: `${S0(f.type)} Fee` }),
|
1354
|
-
/* @__PURE__ */ h("span", { className: "bw-text-text-secondary bw-text-sm bw-font-bold", children: [
|
1355
|
-
/* @__PURE__ */ r(Y, { value: qt(f.amountInToken, f.token.decimals).toFixed(20) || 0, options: { maxDecimals: 8 } }),
|
1356
|
-
` ${f.token.symbol} ${f.amountInUSD ? " ($" : ""}`,
|
1357
|
-
f.amountInUSD ? /* @__PURE__ */ h(U, { children: [
|
1358
|
-
/* @__PURE__ */ r(Y, { value: f.amountInUSD || 0, options: { maxDecimals: 8 } }),
|
1359
|
-
")"
|
1360
|
-
] }) : ""
|
1361
|
-
] })
|
1362
|
-
] }, m) : /* @__PURE__ */ r(U, {})) }),
|
1363
|
-
/* @__PURE__ */ r("div", { className: "bw-w-full bw-h-[1px] bw-border-b bw-my-2 bw-border-border-primary" }),
|
1364
|
-
/* @__PURE__ */ h("div", { className: "bw-w-full", children: [
|
1365
|
-
/* @__PURE__ */ h("div", { className: "bw-flex bw-items-center bw-mb-2 bw-justify-between", children: [
|
1366
|
-
/* @__PURE__ */ r("p", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: "Max Slippage" }),
|
1367
|
-
/* @__PURE__ */ h("span", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: [
|
1368
|
-
(((e = n == null ? void 0 : n.route) == null ? void 0 : e.slippage) || 0) / 100,
|
1369
|
-
"%"
|
1370
|
-
] })
|
1371
|
-
] }),
|
1372
|
-
/* @__PURE__ */ h("div", { className: "bw-flex bw-items-center bw-justify-between", children: [
|
1373
|
-
/* @__PURE__ */ r("p", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: "Minimum Received" }),
|
1374
|
-
/* @__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 || (u = n == null ? void 0 : n.route) != null && u.minOutputAmount ? `${Ut(n.route.minOutputAmountDisplay || n.route.minOutputAmount, 10)} ${(p = (l = n == null ? void 0 : n.route) == null ? void 0 : l.to) == null ? void 0 : p.symbol}` : "" })
|
1375
|
-
] })
|
1376
|
-
] })
|
1377
|
-
] });
|
1378
|
-
}
|
1379
|
-
function v0({ isShowFull: n }) {
|
1380
|
-
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(we, { fill: "var(--tw-text-primary)" }) }) });
|
1381
|
-
}
|
1382
|
-
function E0({ gasData: n }) {
|
1383
|
-
var t;
|
1384
|
-
const s = x((e) => e.persist);
|
1385
|
-
return /* @__PURE__ */ h("div", { className: "bw-flex bw-w-full bw-h-full bw-items-center", children: [
|
1386
|
-
/* @__PURE__ */ r("span", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: "Max Slippage:" }),
|
1387
|
-
/* @__PURE__ */ h("span", { className: "bw-text-xs bw-ml-[3px] bw-font-bold bw-text-text-secondary", children: [
|
1388
|
-
(((t = s == null ? void 0 : s.route) == null ? void 0 : t.slippage) || 0) / 100,
|
1389
|
-
"%"
|
1390
|
-
] }),
|
1391
|
-
/* @__PURE__ */ r("div", { className: "bw-w-[2px] bw-h-[24px] bw-mx-3 bw-bg-text-secondary" }),
|
1392
|
-
/* @__PURE__ */ r("span", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: "Fees:" }),
|
1393
|
-
/* @__PURE__ */ h("span", { className: "bw-text-xs bw-ml-[3px] bw-font-bold bw-text-text-secondary", children: [
|
1394
|
-
/* @__PURE__ */ r(Y, { value: (n == null ? void 0 : n.payableInToken) || 0, options: { maxDecimals: 8 } }),
|
1395
|
-
` ${n == null ? void 0 : n.symbol} ${n != null && n.payableInUSD ? " ($" : ""}`,
|
1396
|
-
n != null && n.payableInUSD ? /* @__PURE__ */ h(U, { children: [
|
1397
|
-
/* @__PURE__ */ r(Y, { value: (n == null ? void 0 : n.payableInUSD) || 0, options: { maxDecimals: 8 } }),
|
1398
|
-
")"
|
1399
|
-
] }) : ""
|
1400
|
-
] })
|
1401
|
-
] });
|
1402
|
-
}
|
1403
|
-
function C0({ gasData: n }) {
|
1404
|
-
return /* @__PURE__ */ h("div", { className: "bw-w-full bw-flex bw-items-center bw-justify-between bw-border-border-primary", children: [
|
1405
|
-
/* @__PURE__ */ r("span", { className: "bw-text-sm bw-font-bold bw-text-text-primary", children: "Fees" }),
|
1406
|
-
/* @__PURE__ */ h("span", { className: "bw-text-sm bw-ml-[3px] bw-font-bold bw-text-text-primary", children: [
|
1407
|
-
/* @__PURE__ */ r(Y, { value: (n == null ? void 0 : n.payableInToken) || 0, options: { maxDecimals: 8 } }),
|
1408
|
-
` ${n == null ? void 0 : n.symbol} ${n != null && n.payableInUSD ? " ($" : ""}`,
|
1409
|
-
n != null && n.payableInUSD ? /* @__PURE__ */ h(U, { children: [
|
1410
|
-
/* @__PURE__ */ r(Y, { value: (n == null ? void 0 : n.payableInUSD) || 0, options: { maxDecimals: 8 } }),
|
1411
|
-
")"
|
1412
|
-
] }) : ""
|
1413
|
-
] })
|
1414
|
-
] });
|
1415
|
-
}
|
1416
|
-
function N0({ gasData: n, isShowFull: s }) {
|
1417
|
-
return /* @__PURE__ */ h("div", { className: "bw-flex bw-items-center bw-justify-between bw-gap-x-2 bw-h-[35px] bw-px-3", children: [
|
1418
|
-
s ? /* @__PURE__ */ r(C0, { gasData: n }) : /* @__PURE__ */ r(E0, { gasData: n }),
|
1419
|
-
/* @__PURE__ */ r(v0, { isShowFull: s })
|
1420
|
-
] });
|
1421
|
-
}
|
1422
|
-
function J0() {
|
1423
|
-
var m, y;
|
1424
|
-
const n = x((g) => g.persist), [s, t] = mt(!1), e = x((g) => g.configuration), i = dt(null), [u, l] = mt(0);
|
1425
|
-
M(() => {
|
1426
|
-
if (i.current) {
|
1427
|
-
const g = setTimeout(() => {
|
1428
|
-
const N = i.current.scrollHeight;
|
1429
|
-
l(N);
|
1430
|
-
}, 50);
|
1431
|
-
return () => clearTimeout(g);
|
1432
|
-
}
|
1433
|
-
}, [n == null ? void 0 : n.route, s]);
|
1434
|
-
function p() {
|
1435
|
-
t(!s);
|
1436
|
-
}
|
1437
|
-
const f = ee(() => {
|
1438
|
-
var N, D;
|
1439
|
-
let g = {
|
1440
|
-
payableInUSD: 0,
|
1441
|
-
payableInToken: 0,
|
1442
|
-
symbol: ""
|
1443
|
-
};
|
1444
|
-
return (D = (N = n == null ? void 0 : n.route) == null ? void 0 : N.fee) == null || D.forEach((S) => {
|
1445
|
-
S.source == "FROM_SOURCE_WALLET" && (g.payableInUSD += Number(S.amountInUSD), g.payableInToken += qt(Number(S.amountInToken), S.token.decimals), g.symbol = S.token.symbol);
|
1446
|
-
}), g;
|
1447
|
-
}, [n == null ? void 0 : n.route]);
|
1448
|
-
return /* @__PURE__ */ h(
|
1449
|
-
"div",
|
1450
|
-
{
|
1451
|
-
onClick: () => {
|
1452
|
-
p();
|
1453
|
-
},
|
1454
|
-
style: {
|
1455
|
-
boxShadow: e && e.customTheme && ((y = (m = e.customTheme) == null ? void 0 : m.shadow) == null ? void 0 : y.boxShadow) || "0px 0px 5.8px 0px #00000026"
|
1456
|
-
},
|
1457
|
-
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",
|
1458
|
-
children: [
|
1459
|
-
/* @__PURE__ */ r(N0, { gasData: f, isShowFull: s }),
|
1460
|
-
/* @__PURE__ */ r(
|
1461
|
-
"div",
|
1462
|
-
{
|
1463
|
-
ref: i,
|
1464
|
-
style: {
|
1465
|
-
height: s ? `${u}px` : "0",
|
1466
|
-
transition: "height 0.3s ease-in-out",
|
1467
|
-
overflow: "hidden",
|
1468
|
-
visibility: u === 0 ? "hidden" : "visible"
|
1469
|
-
},
|
1470
|
-
children: /* @__PURE__ */ r("div", { className: "bw-h-auto", children: /* @__PURE__ */ r(T0, { showFull: s }) })
|
1471
|
-
}
|
1472
|
-
)
|
1473
|
-
]
|
1474
|
-
}
|
1475
|
-
);
|
1476
|
-
}
|
1477
|
-
export {
|
1478
|
-
J0 as E,
|
1479
|
-
Q0 as H,
|
1480
|
-
Ot as T,
|
1481
|
-
tt as a,
|
1482
|
-
R0 as b,
|
1483
|
-
W0 as c,
|
1484
|
-
q0 as d,
|
1485
|
-
z0 as e
|
1486
|
-
};
|