@blockend/widget 1.0.61 → 1.0.62

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.
Files changed (216) hide show
  1. package/dist/{AllRoutes-BqW5S4_J.js → AllRoutes-pT_GYhLz.js} +9 -9
  2. package/dist/{Box-Dw7IJo3D.js → Box-CMXImt80.js} +1 -1
  3. package/dist/{EstGas-C_ldluj6.js → EstGas-BEwQc47B.js} +7 -7
  4. package/dist/{Grow-DjneaPQY.js → Grow-CYJk-72r.js} +2 -2
  5. package/dist/{InputComp-CWH4SAk7.js → InputComp-B0QgFbsj.js} +3 -3
  6. package/dist/{LoadRoute-Cafzlcfy.js → LoadRoute-I--KmXYZ.js} +4 -4
  7. package/dist/{QuotesProgress-Covy7wmW.js → QuotesProgress-Ct53CRUU.js} +1 -1
  8. package/dist/{SwapAsset-BqXVX_DR.js → SwapAsset-X7gAsFxL.js} +1 -1
  9. package/dist/{Tooltip-3YpYU_vO.js → Tooltip-CsxhxDbM.js} +3 -3
  10. package/dist/{TxnButton-CPMFPFA_.js → TxnButton-BZf2lfxu.js} +3 -3
  11. package/dist/{add-CRY8asYF.js → add-fqHpy_n_.js} +1 -1
  12. package/dist/{all-wallets-DOnIRIv0.js → all-wallets-BEiHad26.js} +1 -1
  13. package/dist/{app-store-C0M9hC1B.js → app-store-BUrtll4M.js} +1 -1
  14. package/dist/{apple-Bv7oA5AQ.js → apple-DeP0r4ax.js} +1 -1
  15. package/dist/{arrow-bottom-D4arnome.js → arrow-bottom-DOUsYrpS.js} +1 -1
  16. package/dist/{arrow-bottom-circle-BUny4yP8.js → arrow-bottom-circle-3zt0oM9l.js} +1 -1
  17. package/dist/{arrow-left-DImJbKZs.js → arrow-left-CZi8gizN.js} +1 -1
  18. package/dist/{arrow-right-BvRPNX9F.js → arrow-right-Bp2k-sRU.js} +1 -1
  19. package/dist/{arrow-top-1RWPJImu.js → arrow-top-Bdu-g3eb.js} +1 -1
  20. package/dist/{bank-C0t9JpLj.js → bank-UM_6-xYg.js} +1 -1
  21. package/dist/{basic-VfgwBHn1.js → basic-CfaJcj31.js} +3 -3
  22. package/dist/{browser-0d0uw45D.js → browser-DE4dHUIn.js} +1 -1
  23. package/dist/{card-BBByykfy.js → card-CpV_uFyN.js} +1 -1
  24. package/dist/{ccip-8__szz9Q.js → ccip-CA2a9SDo.js} +1 -1
  25. package/dist/{checkmark-B_osdsm_.js → checkmark-CK8NZa3x.js} +1 -1
  26. package/dist/{checkmark-bold-BEzepFY4.js → checkmark-bold-DgI_WWpK.js} +1 -1
  27. package/dist/{chevron-bottom-Bdaxlaxc.js → chevron-bottom-C_3_Lg-x.js} +1 -1
  28. package/dist/{chevron-left-2aCeqxdm.js → chevron-left-Dn-8RUKj.js} +1 -1
  29. package/dist/{chevron-right-BPgQeMPz.js → chevron-right-BrzGCKbe.js} +1 -1
  30. package/dist/{chevron-top-BskFpgMP.js → chevron-top-DH4uxqMd.js} +1 -1
  31. package/dist/{chrome-store-CxhEG2Jk.js → chrome-store-C6ftVKRM.js} +1 -1
  32. package/dist/{clock-BDgHn083.js → clock-BMAqcMX9.js} +1 -1
  33. package/dist/{close-CQTa1LZg.js → close-B99wQvJ_.js} +1 -1
  34. package/dist/{coinPlaceholder-B-NSV729.js → coinPlaceholder-DmuYNsmb.js} +1 -1
  35. package/dist/{compass-BdJmk2w2.js → compass-C4wdl146.js} +1 -1
  36. package/dist/{copy-Cg4vgr82.js → copy-DMJQyfJj.js} +1 -1
  37. package/dist/{core-BSwMFU2B.js → core-v6ho39ji.js} +3 -3
  38. package/dist/{cursor-BoD_rq0f.js → cursor-C-0knOkC.js} +1 -1
  39. package/dist/{cursor-transparent-Dqs1kXcb.js → cursor-transparent-BLuqOo6k.js} +1 -1
  40. package/dist/{desktop-BOxkTik1.js → desktop-DpJrO84H.js} +1 -1
  41. package/dist/{disconnect-CTxFyZWa.js → disconnect-k6w6zlk-.js} +1 -1
  42. package/dist/{discord-BJRxIhBt.js → discord-DLgkGibC.js} +1 -1
  43. package/dist/{down-372J_rRV.js → down-C4N-wh2D.js} +2 -2
  44. package/dist/{etherscan-CyQf5MH5.js → etherscan-DJTxjIAP.js} +1 -1
  45. package/dist/{exclamation-triangle-DFOXjtuI.js → exclamation-triangle-B1YdY5CX.js} +1 -1
  46. package/dist/{extension-XiWSr1Ku.js → extension-CnhByDAh.js} +1 -1
  47. package/dist/{external-link-CYjbHRDY.js → external-link-CZmI3Q92.js} +1 -1
  48. package/dist/{facebook-DhP37m2R.js → facebook-CRHPGcBq.js} +1 -1
  49. package/dist/{farcaster-C1J2oGt2.js → farcaster-BYs6AvgJ.js} +1 -1
  50. package/dist/{filters-C5jLy9GP.js → filters-BqJFiFCl.js} +1 -1
  51. package/dist/{getChainIds-AaKb_MmO.js → getChainIds-CPQkM2Fw.js} +2 -2
  52. package/dist/{getCosmosAddress-D-F7jz-d.js → getCosmosAddress-CrzIqoe8.js} +2 -2
  53. package/dist/{github-CJ8g1by7.js → github-WI_fsQyX.js} +1 -1
  54. package/dist/{google-DpIVCnNm.js → google-PDPeuX25.js} +1 -1
  55. package/dist/{hamburger-BylLGawu.js → hamburger-JHCSR4wq.js} +5 -5
  56. package/dist/{help-circle-BESCFGIa.js → help-circle-CC1LutMp.js} +1 -1
  57. package/dist/{id-CPX0IEMo.js → id-Dg4qm85K.js} +1 -1
  58. package/dist/{image-DrFHyQOS.js → image-DvH3pCRi.js} +1 -1
  59. package/dist/{index-DoNokw4Q.js → index-4DGqOb0b.js} +1 -1
  60. package/dist/{index-ePnYqYhf.js → index-BAjx9Sij.js} +345 -343
  61. package/dist/{index-H7ThVJwV.js → index-BII8gr4h.js} +4 -4
  62. package/dist/{index-DO14DPs3.js → index-Bl06WOfD.js} +5 -5
  63. package/dist/{index-BOd8pd8c.js → index-BrgwPS_u.js} +11 -11
  64. package/dist/{index-BDezoD7C.js → index-ByNEeX9y.js} +1 -1
  65. package/dist/{index-D0J1OD73.js → index-CBMjkxpP.js} +4 -4
  66. package/dist/{index-DhZwdjPQ.js → index-D8oYLVSL.js} +2 -2
  67. package/dist/{index-DjHDqI7m.js → index-DbOqrlxW.js} +4 -4
  68. package/dist/{index-eatshJSd.js → index-Mqg8CWuX.js} +10 -10
  69. package/dist/{index-BheqnLKf.js → index-qIeZpXcg.js} +78 -78
  70. package/dist/{index.es-gTtSa0r5.js → index.es-DV8y1ve_.js} +2 -2
  71. package/dist/{index.es-B95K0DgG.js → index.es-DkTmjrB8.js} +1 -1
  72. package/dist/index.es.js +1 -1
  73. package/dist/{info-DB9XS3BU.js → info-Cjmzqm5P.js} +1 -1
  74. package/dist/{info-circle-BVB8s9W_.js → info-circle-Dimf4UPG.js} +1 -1
  75. package/dist/{lightbulb-C0eiLvuS.js → lightbulb-BsZjMPbK.js} +1 -1
  76. package/dist/{mail-CYcc9yZZ.js → mail-KNgNgUMG.js} +1 -1
  77. package/dist/{mobile-Cvm9Skqq.js → mobile-hJMru58F.js} +1 -1
  78. package/dist/{more-B-UvO1Yo.js → more-B1Hz9ISJ.js} +1 -1
  79. package/dist/{network-placeholder-C8QNcwPf.js → network-placeholder-Ba37-PVe.js} +1 -1
  80. package/dist/{nftPlaceholder-C_LU9tT5.js → nftPlaceholder-Br6ZCUyX.js} +1 -1
  81. package/dist/{off-BEQbMYBZ.js → off-DZv0f5qk.js} +1 -1
  82. package/dist/{play-store-CEopCauM.js → play-store-PVT99oFp.js} +1 -1
  83. package/dist/{plus-CtEYHV2t.js → plus-0JhMk1yC.js} +1 -1
  84. package/dist/{qr-code-BhmZxeo_.js → qr-code-CYMnN7H6.js} +1 -1
  85. package/dist/{recycle-horizontal-CF9eqICi.js → recycle-horizontal-BODX35XL.js} +1 -1
  86. package/dist/{refresh-Bm3plkBE.js → refresh-KT2nzf4V.js} +1 -1
  87. package/dist/{reown-logo-8S9ZN_-T.js → reown-logo-x-a1ehju.js} +1 -1
  88. package/dist/{search-DNcA47oY.js → search-floOYVWE.js} +1 -1
  89. package/dist/{send-B0S9gHH6.js → send-rBEZNvkT.js} +1 -1
  90. package/dist/{swapHorizontal-BuTPPB8N.js → swapHorizontal-FpW50anF.js} +1 -1
  91. package/dist/{swapHorizontalBold-BnB-fpce.js → swapHorizontalBold-DJo2s6QM.js} +1 -1
  92. package/dist/{swapHorizontalMedium-9QnwwjJD.js → swapHorizontalMedium-AdMIxAQ-.js} +1 -1
  93. package/dist/{swapHorizontalRoundedBold-C83mxp3u.js → swapHorizontalRoundedBold-DB7VaS-l.js} +1 -1
  94. package/dist/{swapVertical-BAz7hmKO.js → swapVertical-CStjk8mq.js} +1 -1
  95. package/dist/{telegram-BMT9bLfw.js → telegram-B7o9hZwP.js} +1 -1
  96. package/dist/{three-dots-DuhUrXKI.js → three-dots-DogTUFsH.js} +1 -1
  97. package/dist/{twitch-ClsoABSi.js → twitch-B_TRhhNU.js} +1 -1
  98. package/dist/{twitterIcon-B9n98fnH.js → twitterIcon-ujuPKvRN.js} +1 -1
  99. package/dist/{unsupportedProp-BXmR-9gT.js → unsupportedProp-BC6azYXA.js} +1 -1
  100. package/dist/{useRegisterError-DVG0sgLq.js → useRegisterError-DMILz6N1.js} +1 -1
  101. package/dist/{verify-BHTa1Niv.js → verify-BRWSwLhn.js} +1 -1
  102. package/dist/{verify-filled-CqobBYuI.js → verify-filled-z7UoRJXn.js} +1 -1
  103. package/dist/{w3m-modal-B7akV0Kp.js → w3m-modal-CuXPdser.js} +2 -2
  104. package/dist/{wallet-ObJy7yZR.js → wallet-BMFvv3DF.js} +1 -1
  105. package/dist/{wallet-placeholder-BxVrKpEz.js → wallet-placeholder-DFg6CZXP.js} +1 -1
  106. package/dist/{walletconnect-CYJbrPQQ.js → walletconnect-WSdSSZfM.js} +1 -1
  107. package/dist/{warning-circle-DOwgDOgL.js → warning-circle-BDW9xnhM.js} +1 -1
  108. package/dist/{x-B03u0kWD.js → x-DUDktTjC.js} +1 -1
  109. package/package.json +1 -1
  110. package/dist/AllRoutes-CIe7ZLbW.js +0 -2209
  111. package/dist/Box-QpYIDD-V.js +0 -54
  112. package/dist/EstGas-Dpwt2-50.js +0 -1574
  113. package/dist/Grow-L7kyPhbh.js +0 -1656
  114. package/dist/InputComp-Dl4M7E5v.js +0 -105
  115. package/dist/LoadRoute-cBSl34Bs.js +0 -125
  116. package/dist/QuotesProgress-CxJUoCPy.js +0 -28
  117. package/dist/SwapAsset-CkRat7Ok.js +0 -51
  118. package/dist/Tooltip-D2kKNQ0U.js +0 -572
  119. package/dist/TxnButton-mfwy-EoQ.js +0 -222
  120. package/dist/add-Dfrw-dUV.js +0 -19
  121. package/dist/all-wallets-Dw10lWJZ.js +0 -10
  122. package/dist/app-store-DJiZFSCr.js +0 -21
  123. package/dist/apple-kMZGS4AC.js +0 -22
  124. package/dist/arrow-bottom-DgmWrLqf.js +0 -12
  125. package/dist/arrow-bottom-circle-C7iPKwzW.js +0 -15
  126. package/dist/arrow-left-Dol642VI.js +0 -12
  127. package/dist/arrow-right-CMwyPVT7.js +0 -12
  128. package/dist/arrow-top-kn9xtx92.js +0 -12
  129. package/dist/bank-DK-FvDfd.js +0 -18
  130. package/dist/basic-Sejv2JvX.js +0 -5783
  131. package/dist/browser-BzT1ACe9.js +0 -18
  132. package/dist/card-DqDM55a-.js +0 -18
  133. package/dist/ccip-BPZSey8I.js +0 -228
  134. package/dist/checkmark-DEKH6rOS.js +0 -15
  135. package/dist/checkmark-bold-Dzv2hN2Q.js +0 -12
  136. package/dist/chevron-bottom-CXdHWe0F.js +0 -12
  137. package/dist/chevron-left-CeuFz3M9.js +0 -12
  138. package/dist/chevron-right-DikqbHjp.js +0 -12
  139. package/dist/chevron-top-CjCScawp.js +0 -12
  140. package/dist/chrome-store-DaP5Y4w2.js +0 -65
  141. package/dist/clock-BzjZWK68.js +0 -12
  142. package/dist/close-Dqncm2nY.js +0 -12
  143. package/dist/coinPlaceholder-BExfa33b.js +0 -12
  144. package/dist/compass-C1H_fht-.js +0 -12
  145. package/dist/copy-DPMVX3yZ.js +0 -19
  146. package/dist/core-BYOwnw_B.js +0 -16521
  147. package/dist/cursor-transparent-IQlZspwQ.js +0 -16
  148. package/dist/cursor-ybJpiPr6.js +0 -7
  149. package/dist/desktop-WMYv3b4Q.js +0 -13
  150. package/dist/disconnect-eMeec26w.js +0 -12
  151. package/dist/discord-CpTo4KnZ.js +0 -21
  152. package/dist/down-hvB7J3FG.js +0 -622
  153. package/dist/etherscan-DQ1h54d3.js +0 -10
  154. package/dist/exclamation-triangle-DzKs0-30.js +0 -8
  155. package/dist/extension-ep1TEUSD.js +0 -12
  156. package/dist/external-link-DRzzevt_.js +0 -12
  157. package/dist/facebook-eXS31CP5.js +0 -30
  158. package/dist/farcaster-f0EPKy4w.js +0 -16
  159. package/dist/filters-RqawLZYy.js +0 -12
  160. package/dist/getChainIds-DXEtLb1g.js +0 -1888
  161. package/dist/getCosmosAddress-X_cfoAnv.js +0 -9517
  162. package/dist/github-d1vUfc1B.js +0 -22
  163. package/dist/google-Dtcfyt4F.js +0 -22
  164. package/dist/hamburger-DezZOKRv.js +0 -3915
  165. package/dist/help-circle-BTpSg7wr.js +0 -16
  166. package/dist/id-CV-pIIiZ.js +0 -16
  167. package/dist/image-n7ODnWNp.js +0 -8
  168. package/dist/index-BYmiFoJh.js +0 -29495
  169. package/dist/index-C7McnY5R.js +0 -18509
  170. package/dist/index-CI-V1HdQ.js +0 -3267
  171. package/dist/index-CSgWo9Cg.js +0 -6713
  172. package/dist/index-CViW2kjE.js +0 -13547
  173. package/dist/index-CoV9zQx1.js +0 -992
  174. package/dist/index-D_8iklL2.js +0 -1483
  175. package/dist/index-GlSAE8hE.js +0 -472
  176. package/dist/index-Pni0gIii.js +0 -206
  177. package/dist/index-TEYMoNwP.js +0 -9
  178. package/dist/index-VS3sEqmI.js +0 -330
  179. package/dist/index.es-BzyBckd_.js +0 -366
  180. package/dist/index.es-CMvE7ghR.js +0 -14904
  181. package/dist/info-DWZmKXfC.js +0 -7
  182. package/dist/info-circle-Bk9rpQzz.js +0 -16
  183. package/dist/lightbulb-CUDopurR.js +0 -7
  184. package/dist/mail-Df9wlUBz.js +0 -12
  185. package/dist/mobile-DcoUJktC.js +0 -13
  186. package/dist/more-DbsAB7Xx.js +0 -15
  187. package/dist/network-placeholder-CnHZLxGT.js +0 -18
  188. package/dist/nftPlaceholder-D7igGAAq.js +0 -12
  189. package/dist/off-Brms9nN7.js +0 -12
  190. package/dist/play-store-z4z-boXn.js +0 -36
  191. package/dist/plus-LkrIZJEQ.js +0 -17
  192. package/dist/qr-code-CZnYaNoE.js +0 -10
  193. package/dist/recycle-horizontal-CeGotUdv.js +0 -13
  194. package/dist/refresh-CKhWU1dQ.js +0 -12
  195. package/dist/reown-logo-CF2Qkyw1.js +0 -16
  196. package/dist/search-DyuAYb_-.js +0 -12
  197. package/dist/send-BbBOjlsM.js +0 -19
  198. package/dist/swapHorizontal-DA7yhPfV.js +0 -12
  199. package/dist/swapHorizontalBold-BujZxwgY.js +0 -12
  200. package/dist/swapHorizontalMedium-hEBn_MJv.js +0 -20
  201. package/dist/swapHorizontalRoundedBold-Cqg1Na-5.js +0 -12
  202. package/dist/swapVertical-D1CdGHJt.js +0 -12
  203. package/dist/telegram-dDQ2sOw5.js +0 -20
  204. package/dist/three-dots-ltDeu1Xu.js +0 -9
  205. package/dist/twitch-sBusnrAt.js +0 -22
  206. package/dist/twitterIcon-BKMgaEZ4.js +0 -10
  207. package/dist/unsupportedProp-P9y3_0om.js +0 -10
  208. package/dist/useRegisterError-DGMdKFc9.js +0 -8918
  209. package/dist/verify-DXzijLDZ.js +0 -12
  210. package/dist/verify-filled-DnKqj8X5.js +0 -12
  211. package/dist/w3m-modal-Cc1j8j_E.js +0 -1471
  212. package/dist/wallet-placeholder-DEsjd5Nv.js +0 -18
  213. package/dist/wallet-zL6TDKIa.js +0 -12
  214. package/dist/walletconnect-CZz6e0wy.js +0 -36
  215. package/dist/warning-circle-DsGlg2MF.js +0 -16
  216. package/dist/x-MwPhq03Y.js +0 -16
@@ -1,1574 +0,0 @@
1
- import { jsx as r, jsxs as h, Fragment as H } from "react/jsx-runtime";
2
- import { aE as Zt, aF as Kt, aG as Xt, aH as Yt, aI as te, aJ as ee, u as x, l as nt, S as wt, a as jt, aA as _t, aB as st } from "./index-BYmiFoJh.js";
3
- import { O as pt } from "./index-TEYMoNwP.js";
4
- import ht, { useState as rt, useContext as q, useRef as mt, useEffect as _, createContext as ne, useMemo as re } from "react";
5
- import { u as Ut, W as oe, B as se, C as ie, L as ae, i as Gt, f as le, c as Mt, d as ce, F as it } from "./useRegisterError-DGMdKFc9.js";
6
- import { useAccount as ft, useConfig as xe, useSwitchChain as de } from "wagmi";
7
- import { S as be } from "./shareicon-CG3v7iKI.js";
8
- import { T as Ht } from "./Tooltip-D2kKNQ0U.js";
9
- import { L as me } from "./index.es-BzyBckd_.js";
10
- import { useStargateSigningClient as Lt, useAccount as ue } from "graz";
11
- import { l as we, S as pe, D as he } from "./down-372J_rRV.js";
12
- import { u as ye, g as It } from "./getCosmosAddress-D-F7jz-d.js";
13
- import { useDynamicContext as Ot } from "@dynamic-labs/sdk-react-core";
14
- import { v as yt } from "./validError-CDlJpg_f.js";
15
- import { getNextTxn as fe, createTransaction as ke, checkStatus as ge, pollTransactionStatus as Se, executeTransaction as Te } from "@blockend/compass-sdk";
16
- import { useMutation as ve, useQuery as Ce } from "@tanstack/react-query";
17
- import { createClient as Ee, custom as Ne, walletActions as Ae } from "viem";
18
- import { e as Ie } from "./ethertousd-CC_ezooz.js";
19
- async function De(n, o = {}) {
20
- let t;
21
- if (o.connector) {
22
- const { connector: c } = o;
23
- if (n.state.status === "reconnecting" && !c.getAccounts && !c.getChainId)
24
- throw new Zt({ connector: c });
25
- const [p, f] = await Promise.all([
26
- c.getAccounts().catch((E) => {
27
- if (o.account === null)
28
- return [];
29
- throw E;
30
- }),
31
- c.getChainId()
32
- ]);
33
- t = {
34
- accounts: p,
35
- chainId: f,
36
- connector: c
37
- };
38
- } else
39
- t = n.state.connections.get(n.state.current);
40
- if (!t)
41
- throw new Kt();
42
- const e = o.chainId ?? t.chainId, i = await t.connector.getChainId();
43
- if (i !== t.chainId)
44
- throw new Xt({
45
- connectionChainId: t.chainId,
46
- connectorChainId: i
47
- });
48
- const m = t.connector;
49
- if (m.getClient)
50
- return m.getClient({ chainId: e });
51
- const l = Yt(o.account ?? t.accounts[0]);
52
- if (l && (l.address = te(l.address)), o.account && !t.accounts.some((c) => c.toLowerCase() === l.address.toLowerCase()))
53
- throw new ee({
54
- address: l.address,
55
- connector: m
56
- });
57
- const u = n.chains.find((c) => c.id === e), y = await t.connector.getProvider({ chainId: e });
58
- return Ee({
59
- account: l,
60
- chain: u,
61
- name: "Connector Client",
62
- transport: (c) => Ne(y)({ ...c, retryCount: 0 })
63
- });
64
- }
65
- async function Fe(n, o = {}) {
66
- return (await De(n, o)).extend(Ae);
67
- }
68
- function Be({ field: n }) {
69
- var m, l, u;
70
- const o = x((y) => y.persist), { getWallet: t } = Ut({ chainData: (o == null ? void 0 : o.fromChain) || {} }), e = ((m = t(o == null ? void 0 : o.fromChain)) == null ? void 0 : m.address) || null, i = n == "from" ? e && ((l = o == null ? void 0 : o.route) == null ? void 0 : l.userWalletAddress) || "" : ((u = o == null ? void 0 : o.route) == null ? void 0 : u.recipient) || "";
71
- return /* @__PURE__ */ r("button", { style: { fontSize: "12px" }, className: "bw-bg-background-container bw-flex bw-items-center bw-justify-center bw-gap-x-2 bw-mb-[4px] bw-w-[100px] bw-h-[25px] bw-rounded-xl bw-border bw-border-border-primary", children: i ? /* @__PURE__ */ h(H, { children: [
72
- /* @__PURE__ */ r("p", { className: "bw-text-text-primary bw-text-xs bw-font-normal", children: ((i == null ? void 0 : i.substring(0, 4)) || "") + "..." + ((i == null ? void 0 : i.substring(i.length - 4, i.length)) || "") }),
73
- /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(oe, { fill: "var(--tw-text-primary)" }) })
74
- ] }) : /* @__PURE__ */ r("div", { className: "bw-w-[10px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[10px]", children: "Connect " }) });
75
- }
76
- function on({ chainData: n, coinData: o, amount: t, field: e }) {
77
- var l, u, y, c, p;
78
- const i = x((f) => f.configuration), m = x((f) => f.persist);
79
- return /* @__PURE__ */ h(
80
- "div",
81
- {
82
- style: {
83
- boxShadow: i && i.customTheme && ((u = (l = i.customTheme) == null ? void 0 : l.shadow) == null ? void 0 : u.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
84
- },
85
- className: `bw-bg-background-container bw-relative bw-z-10 bw-min-w-[50%] bw-px-2 md:bw-min-w-[153px] bw-flex bw-flex-col bw-items-center bw-justify-start bw-pt-2 bw-rounded-lg bw-h-[75px] bw-border ${(((y = m.statusData) == null ? void 0 : y.status) == "partial-success" || ((c = m.statusData) == null ? void 0 : c.status) == "refunded") && e == "to" ? "bw-border-text-redtext" : "bw-border-border-primary"} `,
86
- children: [
87
- /* @__PURE__ */ h("div", { className: `${((p = o == null ? void 0 : o.symbol) == null ? void 0 : p.length) > 6 ? "bw-text-base" : "bw-text-lg"} bw-text-center bw-font-medium bw-text-text-primary`, children: [
88
- /* @__PURE__ */ r("span", { children: t ? /* @__PURE__ */ r(pt, { value: t == null ? void 0 : t.toString(), decimal: 8 }) : 0 }),
89
- " ",
90
- /* @__PURE__ */ r("span", { children: (o == null ? void 0 : o.symbol) || "" }),
91
- /* @__PURE__ */ r("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: `on ${n == null ? void 0 : n.name}` })
92
- ] }),
93
- /* @__PURE__ */ r("div", { className: "bw-absolute -bw-bottom-4", children: /* @__PURE__ */ r(Be, { field: e }) })
94
- ]
95
- }
96
- );
97
- }
98
- function sn({ handleBack: n }) {
99
- return /* @__PURE__ */ r("div", { className: "bw-flex bw-z-20 bw-relative bw-justify-center bw-mb-5", children: /* @__PURE__ */ r(
100
- "button",
101
- {
102
- onClick: () => {
103
- n();
104
- },
105
- className: "bw-absolute bw-left-0 bw-top-[25%]",
106
- children: /* @__PURE__ */ r(se, { fill: "var(--tw-text-secondary)" })
107
- }
108
- ) });
109
- }
110
- const $e = "_loader_1g6xv_1", Ve = {
111
- loader: $e
112
- };
113
- function Dt() {
114
- return /* @__PURE__ */ h("div", { className: Ve.loader, children: [
115
- /* @__PURE__ */ r("span", {}),
116
- /* @__PURE__ */ r("span", {}),
117
- /* @__PURE__ */ r("span", {})
118
- ] });
119
- }
120
- const at = ht.createContext(!1);
121
- function Pe({ children: n }) {
122
- return /* @__PURE__ */ r(
123
- Ht,
124
- {
125
- onClose: () => {
126
- },
127
- disableInteractive: !0,
128
- onClick: () => {
129
- },
130
- slotProps: {
131
- popper: {
132
- modifiers: [
133
- {
134
- name: "offset",
135
- options: {
136
- offset: [0, -10]
137
- }
138
- }
139
- ]
140
- }
141
- },
142
- className: "bw-text-text-button",
143
- title: "Transaction Link",
144
- children: n
145
- }
146
- );
147
- }
148
- function je({ fill: n }) {
149
- return /* @__PURE__ */ h("svg", { width: "18", height: "9", viewBox: "0 0 18 9", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
150
- /* @__PURE__ */ r("path", { d: "M6.34375 4.49902H11.4231", stroke: n, "stroke-width": "2", "stroke-linecap": "round" }),
151
- /* @__PURE__ */ r("path", { d: "M4.81007 1C-0.269325 1 -0.270722 8 4.81007 8", stroke: n, "stroke-width": "2", "stroke-linecap": "round" }),
152
- /* @__PURE__ */ r("path", { d: "M13.1899 1C18.2693 1 18.2707 8 13.1899 8", stroke: n, "stroke-width": "2", "stroke-linecap": "round" })
153
- ] });
154
- }
155
- function kt({ txnHash: n, children: o }) {
156
- const [t, e] = rt(!1);
157
- return /* @__PURE__ */ r(
158
- Ht,
159
- {
160
- onClose: () => {
161
- setTimeout(() => {
162
- e(!1);
163
- }, [1e3]);
164
- },
165
- disableInteractive: !0,
166
- onClick: () => {
167
- navigator.clipboard.writeText(n).then(() => {
168
- e(!0);
169
- });
170
- },
171
- slotProps: {
172
- popper: {
173
- modifiers: [
174
- {
175
- name: "offset",
176
- options: {
177
- offset: [0, -10]
178
- }
179
- }
180
- ]
181
- }
182
- },
183
- className: "bw-text-text-button",
184
- title: `${t ? "Copied!" : "Copy"}`,
185
- children: o
186
- }
187
- );
188
- }
189
- function gt({ fill: n }) {
190
- return /* @__PURE__ */ h("svg", { width: "11", height: "13", viewBox: "0 0 11 13", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
191
- /* @__PURE__ */ r("rect", { x: "0.5", y: "3.5", width: "7", height: "9", rx: "1.5", stroke: n }),
192
- /* @__PURE__ */ r("path", { d: "M3 1H8C9.10457 1 10 1.89543 10 3V10", stroke: n, "stroke-linecap": "round" })
193
- ] });
194
- }
195
- const _e = "4.8.0", Ue = { g: "LottieFiles AE 3.5.7", a: "", k: "", d: "", tc: "" }, Ge = 30, Me = 0, He = 54, Le = 512, Oe = 512, Re = "Comp 1", We = 0, Qe = /* @__PURE__ */ JSON.parse('[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Outer Line Effect End Sphere 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35,"s":[100]},{"t":44,"s":[18]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":35,"s":[256,256,0],"to":[4.86,0.612,0],"ti":[-4.86,-0.612,0]},{"t":44,"s":[285.162,259.669,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[6.875,6.875],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[49.625,-52.688],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":35,"op":44,"st":-5,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Outer Line Effect End Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35,"s":[100]},{"t":44,"s":[18]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":35,"s":[256,256,0],"to":[2.124,2.897,0],"ti":[-2.124,-2.897,0]},{"t":44,"s":[268.746,273.381,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[3.75,3.75],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[45.875,-50.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":35,"op":44,"st":-5,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Tick End Effect Sphere 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":13,"s":[100]},{"t":19,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":13,"s":[310.847,201.925,0],"to":[1.674,-2.382,0],"ti":[-1.674,2.382,0]},{"t":19,"s":[320.89,187.634,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[216.3,216.3,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.691,0],[0,-1.691],[-1.691,0],[0,1.691]],"o":[[-1.691,0],[0,1.691],[1.691,0],[0,-1.691]],"v":[[0,-3.062],[-3.062,0],[0,3.062],[3.062,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[44.125,-57.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 2","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.691,0],[0,-1.691],[-1.691,0],[0,1.691]],"o":[[-1.691,0],[0,1.691],[1.691,0],[0,-1.691]],"v":[[0,-3.062],[-3.062,0],[0,3.062],[3.062,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[44.125,-57.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":13,"op":19,"st":-5,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Tick End Effect Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":13,"s":[100]},{"t":19,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":13,"s":[256,256,0],"to":[-0.515,-3.058,0],"ti":[0.515,3.058,0]},{"t":19,"s":[252.91,237.653,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.691,0],[0,-1.691],[-1.691,0],[0,1.691]],"o":[[-1.691,0],[0,1.691],[1.691,0],[0,-1.691]],"v":[[0,-3.062],[-3.062,0],[0,3.062],[3.062,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[44.125,-57.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 2","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.691,0],[0,-1.691],[-1.691,0],[0,1.691]],"o":[[-1.691,0],[0,1.691],[1.691,0],[0,-1.691]],"v":[[0,-3.062],[-3.062,0],[0,3.062],[3.062,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[44.125,-57.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":13,"op":19,"st":-5,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Tick Mid Effect Sphere 3","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[100]},{"t":18,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[257.448,257.835,0],"to":[-1.577,2.543,0],"ti":[1.577,-2.543,0]},{"t":18,"s":[247.985,273.092,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.759,0],[0,-0.759],[-0.759,0],[0,0.759]],"o":[[-0.759,0],[0,0.759],[0.759,0],[0,-0.759]],"v":[[0,-1.375],[-1.375,0],[0,1.375],[1.375,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0.5,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-12.406,36.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":8,"op":18,"st":-5,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Tick Mid Effect Sphere 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[100]},{"t":18,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[256,256,0],"to":[-1.481,3.734,0],"ti":[1.481,-3.734,0]},{"t":18,"s":[247.116,278.403,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[6.375,6.375],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-7.594,40.438],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":8,"op":18,"st":-5,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Tick Mid Effect Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[100]},{"t":18,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[256,256,0],"to":[3.251,2.768,0],"ti":[-3.251,-2.768,0]},{"t":18,"s":[275.506,272.609,0]}],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[1.484,0],[0,-1.484],[-1.484,0],[0,1.484]],"o":[[-1.484,0],[0,1.484],[1.484,0],[0,-1.484]],"v":[[0,-2.688],[-2.688,0],[0,2.688],[2.688,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-2.156,37.688],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":8,"op":18,"st":-5,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"Intro Effect Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":3,"s":[100]},{"t":11,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":3,"s":[55.247,114.922,0],"to":[-0.161,-1.899,0],"ti":[1.159,2.993,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":7,"s":[54.281,103.528,0],"to":[-1.159,-2.993,0],"ti":[0.998,1.094,0]},{"t":11,"s":[48.294,96.962,0]}],"ix":2},"a":{"a":0,"k":[-54.781,-49.094,0],"ix":1},"s":{"a":0,"k":[185.4,185.4,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[4.688,4.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-54.781,-49.094],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":3,"op":11,"st":-5,"bm":0},{"ddd":0,"ind":9,"ty":4,"nm":"Intro Effect Sphere 1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":3,"s":[100]},{"t":11,"s":[0]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":3,"s":[78.035,105.266,0],"to":[0.483,-1.996,0],"ti":[-1.642,2.8,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":7,"s":[80.932,93.292,0],"to":[1.642,-2.8,0],"ti":[-1.159,0.805,0]},{"t":11,"s":[87.885,88.464,0]}],"ix":2},"a":{"a":0,"k":[-54.781,-49.094,0],"ix":1},"s":{"a":0,"k":[185.4,185.4,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[4.688,4.688],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-54.781,-49.094],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":3,"op":11,"st":-5,"bm":0},{"ddd":0,"ind":10,"ty":4,"nm":"Tick Thin Line","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[256,256,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-34.25,11],[-7,37.75],[35.5,-21]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":5,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":9,"s":[3]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[12]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":11,"s":[28]},{"t":12,"s":[57]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":5,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":8,"s":[22]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":9,"s":[43]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":10,"s":[77]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":11,"s":[100]},{"t":12,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":5,"op":12,"st":-5,"bm":0},{"ddd":0,"ind":11,"ty":4,"nm":"Ball","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[32]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":3,"s":[32]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":5,"s":[45]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":6,"s":[47]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":7,"s":[-57]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":14,"s":[-57]},{"i":{"x":[0.583],"y":[0.795]},"o":{"x":[0.167],"y":[0]},"t":20,"s":[-57]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.417],"y":[-1.147]},"t":21,"s":[-104.5]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":22,"s":[-96]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":23,"s":[-53]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":24,"s":[-19]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":25,"s":[34]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":26,"s":[111]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":27,"s":[174]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":28,"s":[201]},{"i":{"x":[0.833],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":29,"s":[214]},{"t":30,"s":[226]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[34.486,166.197,0],"to":[5.794,-6.438,0],"ti":[-18.669,-10.429,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":3,"s":[69.248,127.572,0],"to":[18.669,10.429,0],"ti":[-22.016,-28.84,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":5,"s":[146.498,228.769,0],"to":[22.016,28.84,0],"ti":[-19.57,-8.755,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":6,"s":[201.346,300.612,0],"to":[19.57,8.755,0],"ti":[-17.381,13.004,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":7,"s":[263.918,281.299,0],"to":[17.381,-13.004,0],"ti":[-12.36,17.253,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":8,"s":[305.633,222.589,0],"to":[12.36,-17.253,0],"ti":[-12.875,17.381,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":9,"s":[338.078,177.784,0],"to":[12.875,-17.381,0],"ti":[-7.468,9.914,0]},{"i":{"x":0.667,"y":0.667},"o":{"x":0.333,"y":0.333},"t":13,"s":[382.883,118.302,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":14,"s":[382.883,118.302,0],"to":[10.557,9.399,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":15,"s":[382.883,118.302,0],"to":[10.557,9.399,0],"ti":[-21.91,-41.023,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":20,"s":[434.641,186.282,0],"to":[16.555,30.997,0],"ti":[-0.386,-0.772,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":22,"s":[451.056,263.146,0],"to":[0.386,0.772,0],"ti":[0,-1.416,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":23,"s":[395.436,388.291,0],"to":[0,1.416,0],"ti":[0.386,-0.644,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":24,"s":[300.419,445.456,0],"to":[-0.386,0.644,0],"ti":[1.288,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":25,"s":[136.649,407.603,0],"to":[-1.288,0,0],"ti":[1.288,1.545,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":26,"s":[84.891,170.446,0],"to":[-1.288,-1.545,0],"ti":[-1.03,0.772,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":27,"s":[248.661,66.158,0],"to":[1.03,-0.772,0],"ti":[-1.931,0.129,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":28,"s":[335.954,87.016,0],"to":[1.931,-0.129,0],"ti":[-0.129,-0.386,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":29,"s":[369.171,107.101,0],"to":[0.129,0.386,0],"ti":[-0.193,-0.064,0]},{"t":30,"s":[380.759,115.598,0]}],"ix":2},"a":{"a":0,"k":[-59.688,-42.062,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":0,"s":[309,309,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":3,"s":[309,309,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":5,"s":[302.82,250.29,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":6,"s":[358.44,213.21,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":7,"s":[358.44,213.21,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":9,"s":[284.28,213.21,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":13,"s":[244.11,244.11,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":14,"s":[244.11,244.11,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":20,"s":[244.11,244.11,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":22,"s":[342.99,244.11,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":23,"s":[342.99,210.12,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":24,"s":[342.99,222.48,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":25,"s":[373.89,207.03,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":26,"s":[373.89,207.03,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":27,"s":[315.18,176.13,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":28,"s":[216.3,117.42,100]},{"i":{"x":[0.833,0.833,0.833],"y":[1,1,1]},"o":{"x":[0.167,0.167,0.167],"y":[0,0,0]},"t":29,"s":[163.77,86.52,100]},{"t":30,"s":[71.07,55.62,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[21.375,21.375],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-60.562,-43.562],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":30,"st":-5,"bm":0},{"ddd":0,"ind":12,"ty":4,"nm":"Tick Main","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[256.386,247.116,0],"ix":2},"a":{"a":0,"k":[0.125,-2.875,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-27.375,2.625],[-7.75,21.5],[27.625,-27.25]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":12,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":5,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":6,"s":[11]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":7,"s":[51]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":8,"s":[79]},{"t":11,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":5,"op":49,"st":-5,"bm":0},{"ddd":0,"ind":13,"ty":4,"nm":"Main Outer Line","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":40,"ix":10},"p":{"a":0,"k":[254.455,259.863,0],"ix":2},"a":{"a":0,"k":[-0.5,1.25,0],"ix":1},"s":{"a":0,"k":[309,309,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[123.5,123.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":0,"k":0,"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":16,"s":[0]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":21,"s":[11]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":23,"s":[27]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":24,"s":[35]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":25,"s":[50]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":26,"s":[73]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":27,"s":[89]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":28,"s":[96]},{"t":29,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":7,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[98.384,97.558],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":16,"op":49,"st":-5,"bm":0},{"ddd":0,"ind":14,"ty":4,"nm":"Outer Thin Stroke","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":40,"ix":10},"p":{"a":0,"k":[254.455,259.863,0],"ix":2},"a":{"a":0,"k":[-0.5,1.25,0],"ix":1},"s":{"a":0,"k":[355.35,355.35,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[123.5,123.5],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":16,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":21,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":25,"s":[6]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":26,"s":[20]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":29,"s":[23]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":30,"s":[29]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":31,"s":[45]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":32,"s":[69]},{"t":35,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":16,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":21,"s":[11]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":25,"s":[29]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":28,"s":[50]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":29,"s":[57]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":31,"s":[81]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":32,"s":[100]},{"t":35,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.290196078431,0.78431372549,0.733333333333,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[98.384,97.558],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":16,"op":35,"st":-5,"bm":0}]}]'), ze = [{ ddd: 0, ind: 1, ty: 3, nm: "Null 1", sr: 1, ks: { o: { a: 0, k: 0, ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [256, 256, 0], ix: 2 }, a: { a: 0, k: [0, 0, 0], ix: 1 }, s: { a: 0, k: [309, 309, 100], ix: 6 } }, ao: 0, ip: 0, op: 54, st: 0, bm: 0 }, { ddd: 0, ind: 2, ty: 0, nm: "Pre-comp 1", refId: "comp_0", sr: 1, ks: { o: { a: 0, k: 100, ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [256, 256, 0], ix: 2 }, a: { a: 0, k: [256, 256, 0], ix: 1 }, s: { a: 0, k: [100, 100, 100], ix: 6 } }, ao: 0, ef: [{ ty: 21, nm: "Fill", np: 9, mn: "ADBE Fill", ix: 1, en: 1, ef: [{ ty: 10, nm: "Fill Mask", mn: "ADBE Fill-0001", ix: 1, v: { a: 0, k: 0, ix: 1 } }, { ty: 7, nm: "All Masks", mn: "ADBE Fill-0007", ix: 2, v: { a: 0, k: 0, ix: 2 } }, { ty: 2, nm: "Color", mn: "ADBE Fill-0002", ix: 3, v: { a: 0, k: [0.289119571447, 0.784313738346, 0.731881439686, 1], ix: 3 } }, { ty: 7, nm: "Invert", mn: "ADBE Fill-0006", ix: 4, v: { a: 0, k: 0, ix: 4 } }, { ty: 0, nm: "Horizontal Feather", mn: "ADBE Fill-0003", ix: 5, v: { a: 0, k: 0, ix: 5 } }, { ty: 0, nm: "Vertical Feather", mn: "ADBE Fill-0004", ix: 6, v: { a: 0, k: 0, ix: 6 } }, { ty: 0, nm: "Opacity", mn: "ADBE Fill-0005", ix: 7, v: { a: 0, k: 1, ix: 7 } }] }], w: 512, h: 512, ip: 5, op: 54, st: 5, bm: 0 }], qe = [], Je = {
196
- v: _e,
197
- meta: Ue,
198
- fr: Ge,
199
- ip: Me,
200
- op: He,
201
- w: Le,
202
- h: Oe,
203
- nm: Re,
204
- ddd: We,
205
- assets: Qe,
206
- layers: ze,
207
- markers: qe
208
- }, Ze = "_gradienttext_uc65n_6", Ke = "_gradientbutton_uc65n_19", ot = {
209
- gradienttext: Ze,
210
- gradientbutton: Ke
211
- };
212
- function Xe({ handleBack: n }) {
213
- var b, S, N, g, a, C, A;
214
- const o = x((k) => k.gradient), t = x((k) => k.persist), e = x((k) => k.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] || {}, u = i === "bridge" ? (l == null ? void 0 : l.destTxnHash) || (l == null ? void 0 : l.srcTxnHash) : (l == null ? void 0 : l.srcTxnHash) || "", y = (S = t == null ? void 0 : t.historyData) == null ? void 0 : S.finalTxnHash, c = u || y || "", p = i === "bridge" ? (l == null ? void 0 : l.destTxnUrl) || (l == null ? void 0 : l.srcTxnUrl) : (l == null ? void 0 : l.srcTxnUrl) || "", f = (N = t == null ? void 0 : t.historyData) == null ? void 0 : N.finalTxnUrl, E = p || f || "", D = t.toCoin || {}, T = t.route || {}, $ = t.toChain || {};
215
- let s = ((g = t == null ? void 0 : t.statusData) == null ? void 0 : g.outputAmountDisplay) || 0, d = (Number(s) ? s : Number(s)) || (T == null ? void 0 : T.outputAmountDisplay) || 0;
216
- 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: [
217
- /* @__PURE__ */ h(
218
- "div",
219
- {
220
- style: {
221
- 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)"
222
- },
223
- className: "bw-flex bw-items-center bw-rounded-xl bw-w-full bw-justify-between bw-bg-background-container bw-border bw-border-border-primary bw-p-2",
224
- children: [
225
- /* @__PURE__ */ h("div", { children: [
226
- /* @__PURE__ */ r(
227
- "p",
228
- {
229
- style: { ...e.gradientStyle, backgroundClip: "text" },
230
- className: `bw-text-lg ${o || `${(A = e == null ? void 0 : e.gradientStyle) != null && A.background ? "" : "bw-bg-gradient-to-l bw-from-[#2CFFE4] bw-to-[#A45EFF]"}`} bw-bg-clip-text bw-font-medium bw-text-transparent`,
231
- children: "Transaction Successful"
232
- }
233
- ),
234
- /* @__PURE__ */ h("p", { className: "bw-text-2xl bw-font-medium bw-text-text-primary", children: [
235
- /* @__PURE__ */ r(pt, { value: d, decimal: 10 }),
236
- " ",
237
- D.symbol
238
- ] }),
239
- /* @__PURE__ */ r("p", { className: "bw-text-sm bw-mb-2 bw-font-normal bw-text-text-secondary", children: `Received on ${$.name || $.blockchain} chain` }),
240
- /* @__PURE__ */ h("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
241
- /* @__PURE__ */ r("p", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: `Tx id: ${c ? `${c.substring(0, 5)}...${c.substring(
242
- c.length - 5,
243
- c.length
244
- )}` : ""}` }),
245
- /* @__PURE__ */ r("div", { className: "bw-cursor-pointer", children: /* @__PURE__ */ r(kt, { txnHash: c, children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(gt, { fill: "var(--tw-text-secondary)" }) }) }) }),
246
- /* @__PURE__ */ r("a", { href: E, target: "_blank", children: /* @__PURE__ */ r("div", { className: "bw-cursor-pointer", children: /* @__PURE__ */ r(be, { fill: "var(--tw-text-secondary)" }) }) })
247
- ] })
248
- ] }),
249
- /* @__PURE__ */ r("div", { className: " bw-flex bw-justify-center bw-items-center bw-w-[105px] bw-h-[105px]", children: /* @__PURE__ */ r(me, { animationData: Je, loop: !0 }) })
250
- ]
251
- }
252
- ),
253
- /* @__PURE__ */ r(
254
- "button",
255
- {
256
- onClick: n,
257
- style: { ...e == null ? void 0 : e.gradientStyle },
258
- className: `bw-w-full ${ot.gradientbutton} bw-rounded-sm bw-h-[50px] bw-p-[3px] bw-mt-3 bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-50 bw-text-2xl bw-font-bold bw-text-text-primary`,
259
- children: /* @__PURE__ */ r(
260
- "div",
261
- {
262
- onClick: n,
263
- className: "bw-rounded-sm bw-bg-background-container bw-flex bw-items-center bw-justify-center b-w-full bw-h-full",
264
- children: "Start Again"
265
- }
266
- )
267
- }
268
- )
269
- ] });
270
- }
271
- const Rt = ht.createContext(!1);
272
- function Ye({ disableButton: n, handleStep: o, txnProcessType: t, txnTextObj: e }) {
273
- var f, E, D;
274
- const i = x((T) => T.persist), m = x((T) => T.configuration);
275
- x((T) => T.cosmosChainIds);
276
- const l = x((T) => T.fromChain);
277
- let u = n ? {} : { ...m == null ? void 0 : m.gradientStyle };
278
- const { data: y, isLoading: c } = Lt({
279
- chainId: [l.chainId],
280
- multiChain: !0
281
- });
282
- let p = ((f = i == null ? void 0 : i.fromChain) == null ? void 0 : f.networkType) == "cosmos" ? c : !1;
283
- return !nt.isEmpty(i == null ? void 0 : i.stepData) && !p ? /* @__PURE__ */ r(
284
- "button",
285
- {
286
- disabled: n || !e,
287
- className: `bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-full bw-rounded-sm ${n ? "bw-bg-border-primary bw-p-[1px]" : ot.gradientbutton + " bw-p-[3px]"}`,
288
- onClick: o,
289
- style: {
290
- ...u,
291
- boxShadow: m && m.customTheme && ((D = (E = m.customTheme) == null ? void 0 : E.shadow) == null ? void 0 : D.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
292
- },
293
- children: /* @__PURE__ */ h("div", { className: "bw-bg-background-container bw-w-full bw-h-full bw-flex bw-items-center bw-justify-center", children: [
294
- n || !e && /* @__PURE__ */ r("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ r(ie, { size: 22, thickness: 5, color: "inherit" }) }),
295
- /* @__PURE__ */ r(
296
- "p",
297
- {
298
- className: ` ${n ? "bw-text-text-secondary bw-font-normal" : "bw-text-text-primary bw-font-bold"} bw-text-2xl `,
299
- children: e == null ? void 0 : e[t == "process" ? "processingCta" : "preCta"]
300
- }
301
- )
302
- ] })
303
- }
304
- ) : /* @__PURE__ */ r(wt, { className: "bw-bg-background-secondary bw-rounded-sm bw-w-full", animation: "wave", height: 50 });
305
- }
306
- function Wt({ errorText: n, heading: o = "Transaction Failed" }) {
307
- const t = x((e) => e.persist);
308
- return /* @__PURE__ */ h(H, { children: [
309
- /* @__PURE__ */ r("p", { className: "bw-text-lg bw-font-medium bw-text-text-primary bw-mb-1 bw-text-center", children: o }),
310
- /* @__PURE__ */ h("div", { className: "bw-w-full bw-mb-2 ", children: [
311
- /* @__PURE__ */ r("p", { className: "bw-text-sm bw-font-bold bw-text-text-primary ", children: "Route Id" }),
312
- /* @__PURE__ */ h("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
313
- /* @__PURE__ */ r("p", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: t == null ? void 0 : t.routeId }),
314
- /* @__PURE__ */ r(kt, { txnHash: t == null ? void 0 : t.routeId, children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(gt, { fill: "var(--tw-text-secondary)" }) }) })
315
- ] })
316
- ] }),
317
- /* @__PURE__ */ h("div", { className: "bw-text-left bw-w-full bw-mb-2 ", children: [
318
- n != null && n.length ? /* @__PURE__ */ r("p", { className: "bw-text-sm bw-font-bold bw-text-text-primary ", children: "Error" }) : /* @__PURE__ */ r(H, {}),
319
- /* @__PURE__ */ r("div", { className: "bw-text-left bw-max-h-[60px] bw-overflow-auto ", children: /* @__PURE__ */ r("p", { style: { wordBreak: "break-all" }, className: "bw-text-xs bw-leading-5 bw-pr-2 bw-w-full md:bw-max-w-[420px] bw-font-normal bw-mb-2 bw-text-left bw-text-text-redtext", children: n }) })
320
- ] })
321
- ] });
322
- }
323
- function t0({ handleGoBack: n, errorText: o, txnTextObj: t, handleExeTxn: e, handleDisable: i }) {
324
- var u, y, c, p;
325
- const m = x((f) => f.configuration), l = x((f) => f.persist);
326
- 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: [
327
- /* @__PURE__ */ r(Wt, { errorText: o }),
328
- l.isHistory ? /* @__PURE__ */ r(H, {}) : /* @__PURE__ */ h("div", { className: "bw-w-full bw-flex bw-items-center bw-gap-x-2", children: [
329
- /* @__PURE__ */ r(
330
- "button",
331
- {
332
- style: {
333
- boxShadow: m && m.customTheme && ((y = (u = m.customTheme) == null ? void 0 : u.shadow) == null ? void 0 : y.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
334
- },
335
- className: "bw-border bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-[50%] bw-bg-background-container bw-border-border-primary",
336
- onClick: () => {
337
- n();
338
- },
339
- children: /* @__PURE__ */ r(
340
- "p",
341
- {
342
- style: {
343
- ...m.gradientStyle,
344
- backgroundClip: "text"
345
- },
346
- className: ` ${ot.gradienttext} bw-text-2xl bw-font-normal`,
347
- children: "Home"
348
- }
349
- )
350
- }
351
- ),
352
- /* @__PURE__ */ r(
353
- "button",
354
- {
355
- style: {
356
- ...m == null ? void 0 : m.gradientStyle,
357
- boxShadow: m && m.customTheme && ((p = (c = m.customTheme) == null ? void 0 : c.shadow) == null ? void 0 : p.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
358
- },
359
- className: ` bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-[50%] ${ot.gradientbutton} bw-rounded-sm bw-p-[3px] `,
360
- onClick: () => {
361
- e(), i(!0);
362
- },
363
- children: /* @__PURE__ */ r("div", { className: " bw-bg-background-container bw-w-full bw-h-full bw-flex bw-items-center bw-justify-center", children: /* @__PURE__ */ r(
364
- "p",
365
- {
366
- style: {
367
- ...m.gradientStyle,
368
- backgroundClip: "text"
369
- },
370
- className: " bw-text-text-primary bw-text-2xl bw-font-bold",
371
- children: "Try Again"
372
- }
373
- ) })
374
- }
375
- )
376
- ] })
377
- ] });
378
- }
379
- function e0({ txnTextObj: n, txnProcessType: o, errorText: t, allSteps: e }) {
380
- var m, l, u;
381
- const i = x((y) => y.persist);
382
- return /* @__PURE__ */ h(H, { children: [
383
- /* @__PURE__ */ r("p", { className: "bw-text-lg bw-font-medium bw-mb-1 bw-text-text-primary", children: i != null && i.stepStatus && (i != null && i.stepStatus[e == null ? void 0 : e.currentStep]) ? ((l = n == null ? void 0 : n.status) == null ? void 0 : l[(m = i == null ? void 0 : i.stepStatus[e == null ? void 0 : e.currentStep]) == null ? void 0 : m.status]) || (n == null ? void 0 : n[(u = i == null ? void 0 : i.stepStatus[e == null ? void 0 : e.currentStep]) == null ? void 0 : u.type]) : "" }),
384
- /* @__PURE__ */ r("p", { className: "bw-text-sm bw-text-center bw-font-medium bw-mb-4 bw-text-text-secondary", children: n == null ? void 0 : n[o == "process" ? "processingDescription" : o == "loading" ? "loadingDescription" : "preDescription"] }),
385
- /* @__PURE__ */ r("p", { className: "bw-text-xs bw-font-normal bw-text-center bw-text-text-redtext ", children: t })
386
- ] });
387
- }
388
- function n0({ i: n, item: o }) {
389
- var u, y, c, p;
390
- const t = x((f) => f.persist), e = (t == null ? void 0 : t.txnHashObj) || [], i = (y = (u = e[o.stepId]) == null ? void 0 : u.destTxnUrl) != null && y.length ? (c = e[o.stepId]) == null ? void 0 : c.destTxnUrl : (p = e[o.stepId]) == null ? void 0 : p.srcTxnUrl, m = o.destTxnUrl || o.srcTxnUrl, l = i || m;
391
- return l != null && l.length ? /* @__PURE__ */ r("a", { target: "_blank", className: "bw-relative bw-z-50 bw-mt-1", href: l, children: /* @__PURE__ */ r(Pe, { children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(je, { fill: "var(--tw-text-primary)" }) }) }) }) : /* @__PURE__ */ r(H, {});
392
- }
393
- function r0({ item: n, i: o }) {
394
- var m, l, u, y, c, p, f, E, D, T, $;
395
- const { isErrorMessage: t, handleErrorMessage: e } = q(at), i = x((s) => s.persist);
396
- return i == null || i.allSteps, /* @__PURE__ */ h("div", { children: [
397
- /* @__PURE__ */ r("h1", { className: ` ${((l = (m = n == null ? void 0 : n.texts) == null ? void 0 : m.heading) == null ? void 0 : l.length) > 34 ? "bw-text-base" : "bw-text-lg"} ${((u = i == null ? void 0 : i.allSteps) == null ? void 0 : u.currentStep) == o ? "bw-text-text-primary" : "bw-text-text-secondary"} bw-leading-none bw-mt-[-2px]`, children: (y = n == null ? void 0 : n.texts) == null ? void 0 : y.heading }),
398
- i != null && i.stepStatus && (i != null && i.stepStatus[o]) ? /* @__PURE__ */ r(H, { children: /* @__PURE__ */ r("p", { className: "bw-text-sm bw-text-text-secondary bw-ml-3 bw-mt-1", children: t && ((c = i == null ? void 0 : i.stepStatus[o]) == null ? void 0 : c.status) !== "failed" && o == ((p = i == null ? void 0 : i.allSteps) == null ? void 0 : p.currentStep) ? "Failed" : ((D = (f = n == null ? void 0 : n.texts) == null ? void 0 : f.status) == null ? void 0 : D[(E = i == null ? void 0 : i.stepStatus[o]) == null ? void 0 : E.status]) || (($ = n == null ? void 0 : n.texts) == null ? void 0 : $[(T = i == null ? void 0 : i.stepStatus[o]) == null ? void 0 : T.type]) }) }) : o == 0 ? /* @__PURE__ */ r("div", { className: "bw-h-[20px] bw-mt-[4px] bw-w-full", children: /* @__PURE__ */ r(wt, { className: "bw-bg-background-secondary bw-rounded-lg bw-w-full", animation: "wave" }) }) : /* @__PURE__ */ r(H, {})
399
- ] });
400
- }
401
- function Ft({ spinnerColor: n, stopColor: o }) {
402
- return /* @__PURE__ */ h(
403
- "svg",
404
- {
405
- width: "17",
406
- height: "18",
407
- viewBox: "0 0 17 18",
408
- fill: "none",
409
- xmlns: "http://www.w3.org/2000/svg",
410
- children: [
411
- /* @__PURE__ */ r(
412
- "path",
413
- {
414
- d: "M5.23438 8.90997L7.625 11.1346L12.0948 5.18945",
415
- stroke: "url(#paint0_linear_2764_26377)",
416
- "stroke-width": "1.5"
417
- }
418
- ),
419
- /* @__PURE__ */ r(
420
- "path",
421
- {
422
- d: "M16.0563 13.3423C14.5038 15.802 11.778 17.4336 8.67473 17.4336C5.16232 17.4336 2.1335 15.3435 0.742188 12.3281",
423
- stroke: "#8A8F8E",
424
- "stroke-width": "0.25"
425
- }
426
- ),
427
- /* @__PURE__ */ r(
428
- "path",
429
- {
430
- d: "M16.0563 13.3423C14.5038 15.802 11.778 17.4336 8.67473 17.4336C5.16232 17.4336 2.1335 15.3435 0.742188 12.3281",
431
- stroke: "#8A8F8E",
432
- "stroke-width": "0.25"
433
- }
434
- ),
435
- /* @__PURE__ */ r("circle", { cx: "8.68848", cy: "8.7041", r: "7.48535", stroke: "#8A8F8E" }),
436
- /* @__PURE__ */ r("defs", { children: /* @__PURE__ */ h(
437
- "linearGradient",
438
- {
439
- id: "paint0_linear_2764_26377",
440
- x1: "13.3956",
441
- y1: "7.30551",
442
- x2: "0.983954",
443
- y2: "7.29133",
444
- gradientUnits: "userSpaceOnUse",
445
- children: [
446
- /* @__PURE__ */ r("stop", { "stop-color": n || "#2CFFE4" }),
447
- /* @__PURE__ */ r("stop", { offset: "1", "stop-color": o || "#A45EFF" })
448
- ]
449
- }
450
- ) })
451
- ]
452
- }
453
- );
454
- }
455
- const o0 = "4.8.0", s0 = { g: "LottieFiles AE 3.5.7", a: "", k: "", d: "", tc: "" }, i0 = 25, a0 = 0, l0 = 51, c0 = 512, x0 = 512, d0 = "Comp 1", b0 = 0, m0 = [], u0 = [{ ddd: 0, ind: 1, ty: 4, nm: "Shape Layer 1", sr: 1, ks: { o: { a: 0, k: 100, ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [256, 256, 0], ix: 2 }, a: { a: 0, k: [-7, -8, 0], ix: 1 }, s: { a: 0, k: [100, 100, 100], ix: 6 } }, ao: 0, shapes: [{ ty: "gr", it: [{ d: 1, ty: "el", s: { a: 0, k: [214, 214], ix: 2 }, p: { a: 0, k: [0, 0], ix: 3 }, nm: "Ellipse Path 1", mn: "ADBE Vector Shape - Ellipse", hd: !1 }, { ty: "fl", c: { a: 0, k: [1, 1, 1, 1], ix: 4 }, o: { a: 0, k: 100, ix: 5 }, r: 1, bm: 2, nm: "Fill 1", mn: "ADBE Vector Graphic - Fill", hd: !1 }, { ty: "tr", p: { a: 0, k: [-7, -8], ix: 2 }, a: { a: 0, k: [0, 0], ix: 1 }, s: { a: 0, k: [100, 100], ix: 3 }, r: { a: 0, k: 0, ix: 6 }, o: { a: 0, k: 100, ix: 7 }, sk: { a: 0, k: 0, ix: 4 }, sa: { a: 0, k: 0, ix: 5 }, nm: "Transform" }], nm: "Ellipse 1", np: 3, cix: 2, bm: 0, ix: 1, mn: "ADBE Vector Group", hd: !1 }], ip: 0, op: 51, st: 0, bm: 0 }, { ddd: 0, ind: 2, ty: 4, nm: "Shape Layer 2", sr: 1, ks: { o: { a: 1, k: [{ i: { x: [0.667], y: [1] }, o: { x: [0.333], y: [0] }, t: 11, s: [100] }, { i: { x: [0.667], y: [1] }, o: { x: [0.333], y: [0] }, t: 25, s: [0] }, { i: { x: [0.667], y: [1] }, o: { x: [0.333], y: [0] }, t: 37, s: [100] }, { t: 51, s: [0] }], ix: 11 }, r: { a: 0, k: 0, ix: 10 }, p: { a: 0, k: [256, 256, 0], ix: 2 }, a: { a: 0, k: [-7, -8, 0], ix: 1 }, s: { a: 1, k: [{ i: { x: [0.667, 0.667, 0.667], y: [1, 1, 1] }, o: { x: [0.333, 0.333, 0.333], y: [0, 0, 0] }, t: 0, s: [59, 59, 100] }, { i: { x: [0.667, 0.667, 0.667], y: [1, 1, 1] }, o: { x: [0.333, 0.333, 0.333], y: [0, 0, 0] }, t: 25, s: [228, 228, 100] }, { i: { x: [0.667, 0.667, 0.667], y: [1, 1, 1] }, o: { x: [0.333, 0.333, 0.333], y: [0, 0, 0] }, t: 26, s: [59, 59, 100] }, { t: 51, s: [228, 228, 100] }], ix: 6 } }, ao: 0, shapes: [{ ty: "gr", it: [{ d: 1, ty: "el", s: { a: 0, k: [214, 214], ix: 2 }, p: { a: 0, k: [0, 0], ix: 3 }, nm: "Ellipse Path 1", mn: "ADBE Vector Shape - Ellipse", hd: !1 }, { ty: "fl", c: { a: 0, k: [1, 1, 1, 1], ix: 4 }, o: { a: 0, k: 100, ix: 5 }, r: 1, bm: 2, nm: "Fill 1", mn: "ADBE Vector Graphic - Fill", hd: !1 }, { ty: "tr", p: { a: 0, k: [-7, -8], ix: 2 }, a: { a: 0, k: [0, 0], ix: 1 }, s: { a: 0, k: [100, 100], ix: 3 }, r: { a: 0, k: 0, ix: 6 }, o: { a: 0, k: 100, ix: 7 }, sk: { a: 0, k: 0, ix: 4 }, sa: { a: 0, k: 0, ix: 5 }, nm: "Transform" }], nm: "Ellipse 1", np: 3, cix: 2, bm: 0, ix: 1, mn: "ADBE Vector Group", hd: !1 }], ip: 0, op: 51, st: 0, bm: 0 }], w0 = [], p0 = {
456
- v: o0,
457
- meta: s0,
458
- fr: i0,
459
- ip: a0,
460
- op: l0,
461
- w: c0,
462
- h: x0,
463
- nm: d0,
464
- ddd: b0,
465
- assets: m0,
466
- layers: u0,
467
- markers: w0
468
- };
469
- function h0() {
470
- const n = mt(null), o = x((t) => t.configuration);
471
- return _(() => {
472
- var e, i;
473
- const t = ae.loadAnimation({
474
- container: n.current,
475
- animationData: we.flatten(
476
- (e = o == null ? void 0 : o.gradientStyle) != null && e.spinnerColor ? (i = o == null ? void 0 : o.gradientStyle) == null ? void 0 : i.spinnerColor : "#2CFFE4",
477
- p0
478
- )
479
- });
480
- return () => t.destroy();
481
- }, []), /* @__PURE__ */ r("div", { style: { width: "100%", height: "100%" }, ref: n });
482
- }
483
- function y0({ allSteps: n, disableButton: o, i: t, arr: e }) {
484
- var p, f, E, D;
485
- const i = x((T) => T.configuration), { txnupdate: m } = Gt, { isErrorMessage: l } = q(at), u = x((T) => T.persist), y = u == null ? void 0 : u.historyData, c = (y == null ? void 0 : y.currentStepStatus) || "";
486
- 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: [
487
- (n == null ? void 0 : n.currentStep) < t ? /* @__PURE__ */ r("div", { className: "bw-w-[18px] bw-rounded-[50%] bw-h-[18px] bw-bg-background-container bw-border bw-border-border-primary " }) : (n == null ? void 0 : n.currentStep) == t ? o ? /* @__PURE__ */ r(H, { children: /* @__PURE__ */ r("div", { className: " bw-w-[18px] bw-h-[18px] ", children: /* @__PURE__ */ r(pe, {}) }) }) : l ? (
488
- // <CloseIcon width={18} height={18} fill={"var(--tw-text-primary)"} />
489
- /* @__PURE__ */ r("img", { src: m, width: 27, height: 27, alt: "img" })
490
- ) : c == "success" ? /* @__PURE__ */ r(
491
- Ft,
492
- {
493
- spinnerColor: (p = i == null ? void 0 : i.gradientStyle) == null ? void 0 : p.spinnerColor,
494
- stopColor: (f = i == null ? void 0 : i.gradientStyle) == null ? void 0 : f.stopColor
495
- }
496
- ) : c == "failed" ? /* @__PURE__ */ r("img", { src: m, width: 27, height: 27, alt: "img" }) : /* @__PURE__ */ r("div", { className: "bw-w-[18px] bw-h-[18px]", children: /* @__PURE__ */ r(h0, {}) }) : /* @__PURE__ */ r(
497
- Ft,
498
- {
499
- spinnerColor: (E = i == null ? void 0 : i.gradientStyle) == null ? void 0 : E.spinnerColor,
500
- stopColor: (D = i == null ? void 0 : i.gradientStyle) == null ? void 0 : D.stopColor
501
- }
502
- ),
503
- t !== e.length - 1 ? /* @__PURE__ */ r(
504
- "div",
505
- {
506
- className: "bw-h-[30px] bw-absolute bw-w-[1px] bw-bottom-[-200%] bw-bg-background-secondary"
507
- }
508
- ) : /* @__PURE__ */ r(H, {})
509
- ] });
510
- }
511
- const f0 = "_container_1e7nb_1", k0 = "_dash_1e7nb_9", g0 = "_uno_1e7nb_17", S0 = "_dos_1e7nb_23", T0 = "_tres_1e7nb_29", v0 = "_cuatro_1e7nb_35", z = {
512
- container: f0,
513
- dash: k0,
514
- uno: g0,
515
- dos: S0,
516
- tres: T0,
517
- cuatro: v0
518
- };
519
- function C0() {
520
- return /* @__PURE__ */ h("div", { className: z.container, children: [
521
- /* @__PURE__ */ r("div", { className: `${z.dash} ${z.uno}` }),
522
- /* @__PURE__ */ r("div", { className: `${z.dash} ${z.dos}` }),
523
- /* @__PURE__ */ r("div", { className: `${z.dash} ${z.tres}` }),
524
- /* @__PURE__ */ r("div", { className: `${z.dash} ${z.cuatro}` })
525
- ] });
526
- }
527
- function E0({ handleUpdate: n }) {
528
- var I, B, V, U, O, G, M, W, j, R, Q, J, Z, K, X, Y, lt, ct, xt, dt;
529
- const o = x((P) => P.configuration), t = x((P) => P.persist), { address: e } = ft(), { address: i } = jt(), { primaryWallet: m } = Ot(), { getWallet: l } = Ut({}), u = x((P) => P.setPersist), y = x((P) => P.customWallet), c = x((P) => P.customFee), p = x((P) => P.broadCastMode), f = x((P) => P.evmGas), E = x((P) => P.evmSpeed), D = x((P) => P.slippage), T = x((P) => P.option), $ = x((P) => P.gasless), { data: s } = ue(), w = ["routesTxn", e, t == null ? void 0 : t.fromChain, t == null ? void 0 : t.toChain, t == null ? void 0 : t.fromCoin, t == null ? void 0 : t.toCoin, (t == null ? void 0 : t.amount) || ((I = t == null ? void 0 : t.route) == null ? void 0 : I.inputAmountDisplay) || 0, m == null ? void 0 : m.address, i, y, s == null ? void 0 : s.bech32Address, c, f, E, D, p, T.value, "", $];
530
- let d = (p === "Priority Fee" || p === "Both") && (c != null && c.length) ? c : T.value, b = (p === "Jito Tip" || p === "Both") && (c != null && c.length) ? c : T.value, S = f != null && f.length ? f : E.value;
531
- const N = ((B = t == null ? void 0 : t.fromChain) == null ? void 0 : B.networkType) === "sol" ? p === "Priority Fee" ? `&solanaPriorityFee=${d}` : p === "Jito Tip" ? `&solanaJitoTip=${b}` : `&solanaPriorityFee=${d}&solanaJitoTip=${b}` : ((V = t == null ? void 0 : t.fromChain) == null ? void 0 : V.networkType) === "evm" ? `&evmPriorityFee=${S}` : "", { routes: g, routesData: a } = ye({
532
- enabled: !0,
533
- dependency: w,
534
- payload: [
535
- ((U = t == null ? void 0 : t.fromChain) == null ? void 0 : U.networkType) === "cosmos" ? It(s == null ? void 0 : s.bech32Address, (G = (O = t == null ? void 0 : t.fromChain) == null ? void 0 : O.chainInfo) == null ? void 0 : G.bech32Config.bech32PrefixAccAddr) : ((M = t == null ? void 0 : t.route) == null ? void 0 : M.userWalletAddress) || ((W = l(t == null ? void 0 : t.fromChain)) == null ? void 0 : W.address) || "",
536
- t == null ? void 0 : t.fromChain,
537
- t == null ? void 0 : t.toChain,
538
- t == null ? void 0 : t.fromCoin,
539
- t == null ? void 0 : t.toCoin,
540
- (t == null ? void 0 : t.amount) || ((j = t == null ? void 0 : t.route) == null ? void 0 : j.inputAmountDisplay) || 0,
541
- Number(D) * 100,
542
- (y == null ? void 0 : y.length) > 30 ? ((R = t == null ? void 0 : t.route) == null ? void 0 : R.recipient) || ((Q = l({})) == null ? void 0 : Q.address) || "" : ((J = t == null ? void 0 : t.toChain) == null ? void 0 : J.networkType) === "cosmos" ? It(s == null ? void 0 : s.bech32Address, (K = (Z = t == null ? void 0 : t.toChain) == null ? void 0 : Z.chainInfo) == null ? void 0 : K.bech32Config.bech32PrefixAccAddr) : ((X = t == null ? void 0 : t.route) == null ? void 0 : X.recipient) || ((Y = l(t == null ? void 0 : t.toChain)) == null ? void 0 : Y.address) || "",
543
- N,
544
- 1,
545
- $
546
- ]
547
- });
548
- let C = (a == null ? void 0 : a.outputAmountDisplay) || "";
549
- async function A() {
550
- if (t.isQuoteTimer === !1) {
551
- let P = await g.refetch();
552
- P.status === "success" && P.data.status === "success" && u({
553
- ...x.getState().persist,
554
- isQuoteTimer: !0
555
- });
556
- }
557
- }
558
- _(() => {
559
- A();
560
- }, [t.isQuoteTimer]);
561
- function k() {
562
- n(), u({
563
- stepData: {},
564
- quote: "enable",
565
- isTimerStarted: !1,
566
- routeId: (a == null ? void 0 : a.routeId) || "",
567
- route: a,
568
- toChain: (t == null ? void 0 : t.toChain) || {},
569
- toCoin: (t == null ? void 0 : t.toCoin) || {},
570
- fromChain: (t == null ? void 0 : t.fromChain) || {},
571
- fromCoin: (t == null ? void 0 : t.fromCoin) || {},
572
- amount: t == null ? void 0 : t.amount,
573
- openAt: (/* @__PURE__ */ new Date()).getTime(),
574
- nextTx: null,
575
- startTime: (/* @__PURE__ */ new Date()).getTime(),
576
- showAcceptQuote: !1,
577
- loading: !0
578
- });
579
- }
580
- 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: [
581
- /* @__PURE__ */ r("p", { className: "bw-text-text-primary bw-text-lg bw-font-semibold", children: "Quote Expired!" }),
582
- /* @__PURE__ */ r("p", { className: "bw-text-text-secondary bw-text-sm bw-font-medium", children: "Please accept the new quote, or go back to select manually" }),
583
- /* @__PURE__ */ 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: [
584
- /* @__PURE__ */ h("div", { children: [
585
- g.isLoading || g.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: [
586
- /* @__PURE__ */ r(pt, { value: C == null ? void 0 : C.toString(), decimal: 12 }),
587
- " ",
588
- ((lt = a == null ? void 0 : a.to) == null ? void 0 : lt.symbol) || ""
589
- ] }),
590
- g.isLoading || g.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: [
591
- "$ ",
592
- /* @__PURE__ */ r(pt, { value: le(((a == null ? void 0 : a.outputAmountDisplay) || "") * ((ct = a == null ? void 0 : a.to) == null ? void 0 : ct.lastPrice) || 0, 10), decimal: 12 })
593
- ] })
594
- ] }),
595
- /* @__PURE__ */ r(
596
- "button",
597
- {
598
- disabled: g.isFetching || g.isLoading,
599
- className: `bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-1/2 bw-rounded-sm ${ot.gradientbutton + " bw-p-[3px]"}`,
600
- onClick: k,
601
- style: {
602
- ...o == null ? void 0 : o.gradientStyle,
603
- boxShadow: o && o.customTheme && ((dt = (xt = o.customTheme) == null ? void 0 : xt.shadow) == null ? void 0 : dt.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
604
- },
605
- children: /* @__PURE__ */ r("p", { className: "bw-w-full bw-h-full bw-bg-background-container bw-text-text-primary bw-font-bold bw-flex bw-items-center bw-justify-center", children: "Accept Quote" })
606
- }
607
- )
608
- ] })
609
- ] });
610
- }
611
- function N0({ handleBack: n }) {
612
- var p, f, E, D, T, $, s, w, d, b;
613
- const { txnupdate: o } = Gt, t = x((S) => S.persist), e = x((S) => S.configuration), i = t == null ? void 0 : t.stepData.stepType, l = ((t == null ? void 0 : t.txnHashObj) || [])[(p = t == null ? void 0 : t.stepData) == null ? void 0 : p.stepId] || {}, u = i === "bridge" ? (l == null ? void 0 : l.destTxnHash) || (l == null ? void 0 : l.srcTxnHash) : (l == null ? void 0 : l.srcTxnHash) || "", y = (f = t == null ? void 0 : t.historyData) == null ? void 0 : f.finalTxnHash, c = u || y || "";
614
- return i === "bridge" ? l != null && l.destTxnUrl || (l == null || l.srcTxnUrl) : l != null && l.srcTxnUrl, (E = t == null ? void 0 : t.historyData) == null || E.finalTxnUrl, t.toCoin, t.route, t.toChain, /* @__PURE__ */ h("div", { className: "bw-absolute bw-bg-background-container bw-bottom-0", children: [
615
- /* @__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: [
616
- /* @__PURE__ */ h("div", { className: "bw-w-[60%]", children: [
617
- /* @__PURE__ */ r("p", { className: "bw-text-text-secondary bw-mb-2 bw-text-lg bw-font-medium", children: "Transaction Update" }),
618
- /* @__PURE__ */ h("p", { className: "bw-text-text-primary bw-text-2xl bw-font-bold", children: [
619
- Mt(((D = t == null ? void 0 : t.statusData) == null ? void 0 : D.outputAmountDisplay) || "", 10),
620
- " ",
621
- (($ = (T = t == null ? void 0 : t.statusData) == null ? void 0 : T.outputToken) == null ? void 0 : $.symbol) || "",
622
- " ",
623
- /* @__PURE__ */ r("br", {})
624
- ] }),
625
- /* @__PURE__ */ h("p", { className: "bw-text-text-secondary bw-mb-2 bw-text-sm bw-font-normal", children: [
626
- "Received on ",
627
- t.toChain.name,
628
- " chain",
629
- " "
630
- ] }),
631
- /* @__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: [
632
- `Txn Id:${c ? `${c.substring(0, 5)}...${c.substring(
633
- c.length - 5,
634
- c.length
635
- )}` : ""}`,
636
- /* @__PURE__ */ r("div", { className: "bw-cursor-pointer ", children: /* @__PURE__ */ r(kt, { txnHash: c, children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(gt, { fill: "var(--tw-text-secondary)" }) }) }) })
637
- ] })
638
- ] }),
639
- /* @__PURE__ */ r("div", { className: "bw-w-[40%] bw-flex bw-items-center bw-justify-center", children: /* @__PURE__ */ r("img", { src: o, width: 108, height: 100, alt: "img" }) })
640
- ] }),
641
- /* @__PURE__ */ h("p", { className: "bw-text-sm bw-text-center bw-text-text-secondary bw-font-normal bw-mt-3", children: [
642
- "Due to liquidity error on providers end your",
643
- " ",
644
- /* @__PURE__ */ h("b", { className: "bw-text-text-primary", children: [
645
- "receiving token has been changed to",
646
- " ",
647
- ((w = (s = t == null ? void 0 : t.statusData) == null ? void 0 : s.outputToken) == null ? void 0 : w.symbol) || "",
648
- " on",
649
- " ",
650
- (b = (d = t == null ? void 0 : t.statusData) == null ? void 0 : d.outputToken) == null ? void 0 : b.blockchain
651
- ] })
652
- ] }),
653
- /* @__PURE__ */ r(
654
- "button",
655
- {
656
- onClick: n,
657
- style: { ...e == null ? void 0 : e.gradientStyle },
658
- className: `bw-w-full ${ot.gradientbutton} bw-rounded-sm bw-h-[50px] bw-p-[3px] bw-mt-3 bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-50 bw-text-2xl bw-font-bold bw-text-text-primary`,
659
- children: /* @__PURE__ */ r(
660
- "div",
661
- {
662
- onClick: n,
663
- className: "bw-rounded-sm bw-bg-background-container bw-flex bw-items-center bw-justify-center b-w-full bw-h-full",
664
- children: "Start Again"
665
- }
666
- )
667
- }
668
- )
669
- ] });
670
- }
671
- function Bt({ handleBack: n, errorText: o }) {
672
- const t = x((e) => e.configuration);
673
- return /* @__PURE__ */ h(H, { children: [
674
- /* @__PURE__ */ r(Wt, { errorText: o, heading: "Transaction Expired" }),
675
- /* @__PURE__ */ r("button", { onClick: n, style: { ...t == null ? void 0 : t.gradientStyle }, className: `bw-w-full ${ot.gradientbutton} bw-rounded-sm bw-h-[50px] bw-p-[3px] bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-50 bw-text-2xl bw-font-bold bw-text-text-primary`, children: /* @__PURE__ */ r("div", { onClick: n, className: "bw-rounded-sm bw-bg-background-container bw-flex bw-items-center bw-justify-center b-w-full bw-h-full", children: "Start a New Transaction" }) })
676
- ] });
677
- }
678
- function A0({ fill: n, stroke: o }) {
679
- return /* @__PURE__ */ h(
680
- "svg",
681
- {
682
- width: "113",
683
- height: "62",
684
- viewBox: "0 0 113 62",
685
- fill: "none",
686
- xmlns: "http://www.w3.org/2000/svg",
687
- children: [
688
- /* @__PURE__ */ r(
689
- "rect",
690
- {
691
- x: "8.4375",
692
- y: "24.9023",
693
- width: "78.9692",
694
- height: "36.4567",
695
- rx: "9.5",
696
- fill: n,
697
- stroke: o
698
- }
699
- ),
700
- /* @__PURE__ */ r(
701
- "rect",
702
- {
703
- x: "15.5742",
704
- y: "32.5957",
705
- width: "42.7954",
706
- height: "14.5366",
707
- rx: "4",
708
- fill: o
709
- }
710
- ),
711
- /* @__PURE__ */ r(
712
- "rect",
713
- {
714
- x: "38.8398",
715
- y: "50.0684",
716
- width: "42.7954",
717
- height: "6.99623",
718
- rx: "3.49811",
719
- fill: o
720
- }
721
- ),
722
- /* @__PURE__ */ r(
723
- "rect",
724
- {
725
- x: "1.25",
726
- y: "19.043",
727
- width: "15.3647",
728
- height: "15.2004",
729
- rx: "4.5",
730
- fill: n,
731
- stroke: o
732
- }
733
- ),
734
- /* @__PURE__ */ h("g", { filter: "url(#filter0_d_8010_16559)", children: [
735
- /* @__PURE__ */ r(
736
- "path",
737
- {
738
- d: "M87.8168 13.1918L101.18 36.3366C102.795 39.134 100.776 42.6307 97.5456 42.6307H70.8202C67.5901 42.6307 65.5713 39.134 67.1864 36.3366L80.549 13.1918C82.1641 10.3944 86.2018 10.3944 87.8168 13.1918Z",
739
- fill: n,
740
- stroke: o
741
- }
742
- ),
743
- /* @__PURE__ */ r(
744
- "path",
745
- {
746
- d: "M85.6358 19.2969V26.2041C85.6358 26.9367 85.5995 27.6572 85.5271 28.3656C85.4546 29.066 85.362 29.8107 85.2493 30.5996H83.2206C83.1079 29.8107 83.0154 29.066 82.9429 28.3656C82.8705 27.6572 82.8342 26.9367 82.8342 26.2041V19.2969H85.6358ZM82.3633 35.1159C82.3633 34.8663 82.4076 34.6288 82.4961 34.4034C82.5927 34.178 82.7215 33.9848 82.8825 33.8238C83.0516 33.6628 83.2488 33.534 83.4742 33.4374C83.6996 33.3408 83.9412 33.2925 84.1988 33.2925C84.4483 33.2925 84.6858 33.3408 84.9112 33.4374C85.1366 33.534 85.3298 33.6628 85.4909 33.8238C85.6599 33.9848 85.7927 34.178 85.8893 34.4034C85.986 34.6288 86.0343 34.8663 86.0343 35.1159C86.0343 35.3735 85.986 35.615 85.8893 35.8404C85.7927 36.0578 85.6599 36.247 85.4909 36.408C85.3298 36.569 85.1366 36.6938 84.9112 36.7823C84.6858 36.8789 84.4483 36.9272 84.1988 36.9272C83.9412 36.9272 83.6996 36.8789 83.4742 36.7823C83.2488 36.6938 83.0516 36.569 82.8825 36.408C82.7215 36.247 82.5927 36.0578 82.4961 35.8404C82.4076 35.615 82.3633 35.3735 82.3633 35.1159Z",
747
- fill: o
748
- }
749
- )
750
- ] }),
751
- /* @__PURE__ */ r("defs", { children: /* @__PURE__ */ h(
752
- "filter",
753
- {
754
- id: "filter0_d_8010_16559",
755
- x: "56.1172",
756
- y: "0.59375",
757
- width: "56.1328",
758
- height: "52.5371",
759
- filterUnits: "userSpaceOnUse",
760
- "color-interpolation-filters": "sRGB",
761
- children: [
762
- /* @__PURE__ */ r("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
763
- /* @__PURE__ */ r(
764
- "feColorMatrix",
765
- {
766
- in: "SourceAlpha",
767
- type: "matrix",
768
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
769
- result: "hardAlpha"
770
- }
771
- ),
772
- /* @__PURE__ */ r("feOffset", {}),
773
- /* @__PURE__ */ r("feGaussianBlur", { stdDeviation: "5" }),
774
- /* @__PURE__ */ r("feComposite", { in2: "hardAlpha", operator: "out" }),
775
- /* @__PURE__ */ r(
776
- "feColorMatrix",
777
- {
778
- type: "matrix",
779
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"
780
- }
781
- ),
782
- /* @__PURE__ */ r(
783
- "feBlend",
784
- {
785
- mode: "normal",
786
- in2: "BackgroundImageFix",
787
- result: "effect1_dropShadow_8010_16559"
788
- }
789
- ),
790
- /* @__PURE__ */ r(
791
- "feBlend",
792
- {
793
- mode: "normal",
794
- in: "SourceGraphic",
795
- in2: "effect1_dropShadow_8010_16559",
796
- result: "shape"
797
- }
798
- )
799
- ]
800
- }
801
- ) })
802
- ]
803
- }
804
- );
805
- }
806
- function $t({ text: n }) {
807
- 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: [
808
- /* @__PURE__ */ r(A0, { fill: "var(--tw-background-networkcard)", stroke: "var(--tw-border-primary)" }),
809
- /* @__PURE__ */ r("p", { className: "bw-text-2xl bw-mt-3 bw-text-text-primary", children: n }),
810
- /* @__PURE__ */ r("p", { className: "bw-text-sm bw-mt-2 bw-font-normal bw-text-text-secondary", children: "Please start your transaction again" })
811
- ] });
812
- }
813
- function St(n) {
814
- var D, T, $;
815
- const o = x((s) => s.setPersist), t = x((s) => s.persist), e = _t(), { setErrorMessage: i } = q(at), m = mt(!1), l = t.isHistory, u = !nt.isEmpty((T = (D = x.getState()) == null ? void 0 : D.persist) == null ? void 0 : T.historyData);
816
- _(() => (m.current = !0, () => {
817
- m.current = !1;
818
- }), []);
819
- const y = ve({
820
- mutationKey: "nexttx",
821
- mutationFn: async ({ id: s, routeId: w }) => await fe({ stepId: s, routeId: w }),
822
- refetchOnWindowFocus: !1,
823
- refetchOnMount: !1,
824
- cacheTime: 1e3,
825
- onSuccess: (s, w) => {
826
- var d, b, S, N, g, a, C;
827
- m.current && (s.status == "error" ? i(s) : i({ error: "" }), e.emit(st.TransactionData, {
828
- ...s
829
- }), p(s), o({
830
- ...(d = x.getState()) == null ? void 0 : d.persist,
831
- loading: !1,
832
- txnEvm: (S = (b = s == null ? void 0 : s.data) == null ? void 0 : b.txnData) == null ? void 0 : S.txnEvm,
833
- nextTx: s,
834
- hash: null,
835
- txnType: ((g = (N = s == null ? void 0 : s.data) == null ? void 0 : N.txnData) == null ? void 0 : g.txnType) || null,
836
- gasless: (C = (a = s == null ? void 0 : s.data) == null ? void 0 : a.txnData) == null ? void 0 : C.gasless
837
- }));
838
- },
839
- onError: (s) => {
840
- var d;
841
- let w = s.details || s.message || "";
842
- i({ error: w }), e.emit(st.TransactionData, {
843
- error: w,
844
- routeId: (t == null ? void 0 : t.routeId) || "",
845
- stepId: ((d = t == null ? void 0 : t.stepData) == null ? void 0 : d.stepId) || ""
846
- });
847
- }
848
- });
849
- async function c(s, w, d) {
850
- o({
851
- ...x.getState().persist,
852
- loading: !0
853
- });
854
- try {
855
- await y.mutateAsync({
856
- id: s == null ? void 0 : s.stepId,
857
- routeId: w
858
- }), o({
859
- ...x.getState().persist,
860
- stepData: s
861
- });
862
- } catch {
863
- o({
864
- ...x.getState().persist,
865
- loading: !1
866
- });
867
- }
868
- }
869
- function p(s) {
870
- var w, d, b, S, N, g, a;
871
- if (((w = s == null ? void 0 : s.data) == null ? void 0 : w.skipTxn) === !0) {
872
- let C = ((S = (b = (d = E == null ? void 0 : E.data) == null ? void 0 : d.data) == null ? void 0 : b.steps) == null ? void 0 : S[t.allSteps.currentStep + 1]) || ((g = (N = t == null ? void 0 : t.allSteps) == null ? void 0 : N.steps) == null ? void 0 : g[t.allSteps.currentStep + 1]) || {};
873
- !nt.isEmpty(C) && ((a = s == null ? void 0 : s.data) != null && a.routeId) && setTimeout(() => {
874
- var A;
875
- f(), c(C, (A = s == null ? void 0 : s.data) == null ? void 0 : A.routeId);
876
- }, 0);
877
- } else
878
- return;
879
- }
880
- function f() {
881
- var s;
882
- o({
883
- ...x.getState().persist,
884
- loading: !0,
885
- allSteps: {
886
- ...x.getState().persist.allSteps,
887
- steps: ((s = t == null ? void 0 : t.allSteps) == null ? void 0 : s.steps) || [],
888
- currentStep: t.allSteps.currentStep + 1,
889
- type: "preText"
890
- }
891
- });
892
- }
893
- const E = Ce({
894
- queryKey: ["txnbody", t == null ? void 0 : t.routeId],
895
- queryFn: async () => await ke({ routeId: t == null ? void 0 : t.routeId }),
896
- refetchOnWindowFocus: !1,
897
- refetchOnMount: !1,
898
- enabled: !!(($ = t.routeId) != null && $.length && !t.nextTx && !l)
899
- });
900
- return _(() => {
901
- var s, w, d, b, S, N, g;
902
- if (E.data && !(t != null && t.nextTx) && n) {
903
- let a = E.data;
904
- a.status == "error" ? (i(a), e.emit(st.TransactionSteps, {
905
- ...a
906
- })) : (e.emit(st.TransactionSteps, {
907
- routeId: ((s = a == null ? void 0 : a.data) == null ? void 0 : s.routeId) || "",
908
- steps: ((w = a == null ? void 0 : a.data) == null ? void 0 : w.steps) || [],
909
- numOfSteps: ((b = (d = a == null ? void 0 : a.data) == null ? void 0 : d.steps) == null ? void 0 : b.length) || 0
910
- }), i({ error: "" })), typeof (a == null ? void 0 : a.data) < "u" && !u && (c((S = a == null ? void 0 : a.data) == null ? void 0 : S.steps[0], (N = a == null ? void 0 : a.data) == null ? void 0 : N.routeId), setTimeout(() => {
911
- var C, A, k;
912
- o({
913
- ...x.getState().persist,
914
- stepData: (C = a == null ? void 0 : a.data) == null ? void 0 : C.steps[0]
915
- }), o({
916
- ...x.getState().persist,
917
- allSteps: {
918
- steps: ((A = a == null ? void 0 : a.data) == null ? void 0 : A.steps) || ((k = t == null ? void 0 : t.allSteps) == null ? void 0 : k.steps) || [],
919
- currentStep: 0,
920
- type: "preText"
921
- }
922
- });
923
- }, 1200), ((g = a == null ? void 0 : a.data) == null ? void 0 : g.status) == "error" && i({ ...a.data }));
924
- }
925
- }, [E.data, t == null ? void 0 : t.nextTx, u, n]), _(() => {
926
- if (E.error) {
927
- let s = E.error, w = s.details || s.message || "";
928
- e.emit(st.TransactionSteps, {
929
- error: w,
930
- routeId: (t == null ? void 0 : t.routeId) || ""
931
- }), i({ error: w });
932
- }
933
- }, [E.error]), _(() => {
934
- var s;
935
- t.routeId && o({ ...(s = x.getState()) == null ? void 0 : s.persist, isSuccess: !0 });
936
- }, [t.routeId]), { nextTx: y, callNextTx: c, handleSkipTxn: p, setNextStep: f, txnBody: E };
937
- }
938
- function Qt() {
939
- var T, $;
940
- const n = x((s) => s.persist), o = x((s) => s.setPersist), { registerError: t } = ce(), { handleErrorMessage: e, setErrorMessage: i } = q(at), m = (n == null ? void 0 : n.showAcceptQuote) && !n.hash && ((T = n == null ? void 0 : n.allSteps) == null ? void 0 : T.currentStep) == 0 && (($ = n == null ? void 0 : n.nextTx) == null ? void 0 : $.status) === "success", { txnBody: l, callNextTx: u } = St();
941
- function y(s) {
942
- var d, b, S, N, g, a, C, A, k;
943
- let w = [...((b = (d = x.getState()) == null ? void 0 : d.persist) == null ? void 0 : b.stepStatus) || []];
944
- return w.length ? w[(S = n.allSteps) == null ? void 0 : S.currentStep] = {
945
- ...w[(N = n.allSteps) == null ? void 0 : N.currentStep],
946
- type: (g = n.allSteps) == null ? void 0 : g.type
947
- } : w[0] = {
948
- ...w[(a = n.allSteps) == null ? void 0 : a.currentStep],
949
- type: (C = n.allSteps) == null ? void 0 : C.type
950
- }, s && (w[(A = n.allSteps) == null ? void 0 : A.currentStep] = {
951
- ...w[(k = n.allSteps) == null ? void 0 : k.currentStep],
952
- ...s
953
- }), w;
954
- }
955
- function c() {
956
- o({
957
- ...x.getState().persist,
958
- stepData: {},
959
- allSteps: {
960
- steps: null,
961
- currentStep: 0
962
- }
963
- });
964
- }
965
- function p() {
966
- i({ error: "" });
967
- }
968
- function f(s, w) {
969
- var d, b;
970
- t({
971
- module: s,
972
- routeId: (n == null ? void 0 : n.routeId) || "",
973
- stepId: ((d = n == null ? void 0 : n.stepData) == null ? void 0 : d.stepId) || "",
974
- error: w.error,
975
- userWalletAddress: (b = n == null ? void 0 : n.route) == null ? void 0 : b.userWalletAddress
976
- });
977
- }
978
- function E(s) {
979
- var b, S, N, g, a, C, A, k, I, B, V, U, O, G, M, W, j, R;
980
- let d = { ...((N = (S = (b = x) == null ? void 0 : b.getState()) == null ? void 0 : S.persist) == null ? void 0 : N.txnHashObj) || {} };
981
- nt.isEmpty(d[(g = s == null ? void 0 : s.data) == null ? void 0 : g.stepId]) ? d[(V = s == null ? void 0 : s.data) == null ? void 0 : V.stepId] = {
982
- srcTxnUrl: ((U = s == null ? void 0 : s.data) == null ? void 0 : U.srcTxnUrl) || "",
983
- stepId: ((O = s == null ? void 0 : s.data) == null ? void 0 : O.stepId) || "",
984
- srcTxnHash: ((G = s == null ? void 0 : s.data) == null ? void 0 : G.srcTxnHash) || "",
985
- destTxnUrl: ((M = s == null ? void 0 : s.data) == null ? void 0 : M.destTxnUrl) || "",
986
- destTxnHash: ((W = s == null ? void 0 : s.data) == null ? void 0 : W.destTxnHash) || ""
987
- } : d[(a = s == null ? void 0 : s.data) == null ? void 0 : a.stepId] = {
988
- ...d[(C = s == null ? void 0 : s.data) == null ? void 0 : C.stepId],
989
- destTxnHash: ((A = s == null ? void 0 : s.data) == null ? void 0 : A.destTxnHash) || (s == null ? void 0 : s.destTxnHash) || "",
990
- destTxnUrl: ((k = s == null ? void 0 : s.data) == null ? void 0 : k.destTxnUrl) || (s == null ? void 0 : s.destTxnUrl) || "",
991
- srcTxnUrl: ((I = s == null ? void 0 : s.data) == null ? void 0 : I.srcTxnUrl) || (s == null ? void 0 : s.srcTxnUrl) || "",
992
- srcTxnHash: ((B = s == null ? void 0 : s.data) == null ? void 0 : B.srcTxnHash) || (s == null ? void 0 : s.srcTxnHash) || ""
993
- }, o({
994
- ...(R = (j = x) == null ? void 0 : j.getState()) == null ? void 0 : R.persist,
995
- txnHashObj: d
996
- });
997
- }
998
- function D() {
999
- var s, w, d, b;
1000
- o({
1001
- ...(s = x.getState()) == null ? void 0 : s.persist,
1002
- stepStatus: y({ status: "loadingText" }),
1003
- isTryAgain: !0,
1004
- loading: !0,
1005
- hash: null
1006
- }), e(!1), p(), u(((w = n == null ? void 0 : n.allSteps) == null ? void 0 : w.steps[n.allSteps.currentStep]) || {}, (n == null ? void 0 : n.routeId) || ((b = (d = l.data) == null ? void 0 : d.data) == null ? void 0 : b.routeId), !0);
1007
- }
1008
- return { handleStepStatus: y, handleUpdate: c, handleErrorReset: p, isShowNewQuote: m, handleTxnObj: E, callRegisterError: f, handleTryAgain: D };
1009
- }
1010
- const zt = ne(new AbortController());
1011
- function an({ children: n }) {
1012
- const o = mt(new AbortController());
1013
- return _(() => (o.current = new AbortController(), () => {
1014
- var t;
1015
- (t = o.current) == null || t.abort();
1016
- }), []), /* @__PURE__ */ r(zt.Provider, { value: o.current, children: n });
1017
- }
1018
- function qt(n) {
1019
- return typeof n != "string" || n.length === 0 ? n : n.charAt(0).toUpperCase() + n.slice(1).toLowerCase();
1020
- }
1021
- function I0({ enabled: n }) {
1022
- const [o, t] = rt(), { connector: e, chainId: i, chain: m, isConnected: l } = ft(), u = xe(), [y, c] = rt(!1);
1023
- async function p() {
1024
- try {
1025
- c(!0);
1026
- let f = await Fe(u, { connector: e, chainId: i });
1027
- t(f), c(!1);
1028
- } catch {
1029
- c(!1);
1030
- }
1031
- }
1032
- return _(() => {
1033
- n && p();
1034
- }, [u, e, i, m, n, l]), { walletClient: o, isLoading: y };
1035
- }
1036
- function D0() {
1037
- var N, g;
1038
- const n = x((a) => a.setPersist), o = x((a) => a.persist), { callRegisterError: t, handleTxnObj: e, handleStepStatus: i } = Qt(), { errorMessage: m, setErrorMessage: l } = q(at), u = q(zt), { walletClient: y, isLoading: c } = I0({ enabled: ((N = o == null ? void 0 : o.fromChain) == null ? void 0 : N.networkType) === "evm" }), { primaryWallet: p } = Ot(), { setNextStep: f, callNextTx: E } = St(), D = _t(), { wallet: T } = jt(), $ = mt(), { data: s } = Lt({
1039
- chainId: [(g = o == null ? void 0 : o.fromChain) == null ? void 0 : g.chainId],
1040
- multiChain: !0
1041
- });
1042
- _(() => {
1043
- n(c ? { ...x.getState().persist, loading: !0 } : { ...x.getState().persist, loading: !1 });
1044
- }, [c]);
1045
- function w(a) {
1046
- var A;
1047
- if (!{
1048
- sol: p,
1049
- evm: y,
1050
- cosmos: s == null ? void 0 : s[(A = o == null ? void 0 : o.fromChain) == null ? void 0 : A.chainId],
1051
- tron: T,
1052
- bitcoin: p
1053
- }[a])
1054
- throw new Error("Please connect your wallet");
1055
- }
1056
- async function d() {
1057
- var a, C, A;
1058
- try {
1059
- let k, I;
1060
- w((a = o == null ? void 0 : o.fromChain) == null ? void 0 : a.networkType), ((C = o == null ? void 0 : o.fromChain) == null ? void 0 : C.networkType) == "sol" && (I = await p.connector.getSigner()), k = await Te({
1061
- txDataResponse: o.nextTx,
1062
- quote: o.route,
1063
- step: o.stepData,
1064
- provider: y || null,
1065
- cosmosClient: (s == null ? void 0 : s[(A = o == null ? void 0 : o.fromChain) == null ? void 0 : A.chainId]) || null,
1066
- walletAdapter: I || null,
1067
- signTransaction: (I == null ? void 0 : I.signTransaction) || null,
1068
- tronAdapter: T,
1069
- bitcoinWallet: p
1070
- }), typeof k == "object" && (k = k.signature), n({
1071
- ...x.getState().persist,
1072
- hash: k
1073
- }), b(k);
1074
- } catch (k) {
1075
- const I = yt(k.message || k.details || k), B = k.message || k.details || k;
1076
- I && (B != null && B.length) && $.current && t("/wallet error", {
1077
- error: B
1078
- }), l({ error: B, type: "wallet" });
1079
- }
1080
- }
1081
- async function b(a) {
1082
- var C, A;
1083
- try {
1084
- let k = await ge({ routeId: o.routeId, stepId: (C = o == null ? void 0 : o.stepData) == null ? void 0 : C.stepId, txnHash: a }), I = await Se({
1085
- routeId: o.routeId,
1086
- stepId: (A = o == null ? void 0 : o.stepData) == null ? void 0 : A.stepId,
1087
- txnHash: a,
1088
- signal: u.signal,
1089
- pollingIntervalMs: 2e3,
1090
- onStatusUpdate: (B, V) => {
1091
- var O, G, M, W, j, R, Q;
1092
- n({
1093
- ...(G = (O = x) == null ? void 0 : O.getState()) == null ? void 0 : G.persist,
1094
- stepStatus: i({
1095
- status: "pending"
1096
- })
1097
- });
1098
- let U = ((M = o == null ? void 0 : o.allSteps) == null ? void 0 : M.currentStep) === ((j = (W = o == null ? void 0 : o.allSteps) == null ? void 0 : W.steps) == null ? void 0 : j.length) - 1;
1099
- D.emit(st.TransactionStatus, {
1100
- ...V,
1101
- status: !U && ((R = V == null ? void 0 : V.data) == null ? void 0 : R.status) === "success" ? "in-progress" : (Q = V == null ? void 0 : V.data) == null ? void 0 : Q.status,
1102
- isLastStep: U
1103
- }), V && S(V);
1104
- }
1105
- });
1106
- } catch (k) {
1107
- const I = yt(k.message || k.details || k), B = k.message || k.details || k;
1108
- I && (B != null && B.length) && $.current && t("/wallet error", {
1109
- error: B
1110
- }), l({ error: B, type: "wallet" });
1111
- }
1112
- }
1113
- function S(a) {
1114
- var C, A, k, I, B, V, U, O, G, M, W, j, R, Q, J, Z, K, X;
1115
- if ((C = a == null ? void 0 : a.data) != null && C.status && $.current && n({
1116
- ...(k = (A = x) == null ? void 0 : A.getState()) == null ? void 0 : k.persist,
1117
- statusData: a == null ? void 0 : a.data,
1118
- stepStatus: i({
1119
- status: ((I = a == null ? void 0 : a.data) == null ? void 0 : I.status) == "in-progress" ? "pending" : (B = a == null ? void 0 : a.data) == null ? void 0 : B.status
1120
- })
1121
- }), e(a), a.status == "error" && l(a), ((V = a.data) == null ? void 0 : V.status) == "success") {
1122
- let Y = o.allSteps.steps[o.allSteps.currentStep + 1];
1123
- if (l({ error: "" }), n({
1124
- ...x.getState().persist,
1125
- stepData: Y || x.getState().persist.stepData
1126
- }), o.allSteps.currentStep == ((O = (U = o.allSteps) == null ? void 0 : U.steps) == null ? void 0 : O.length) - 1)
1127
- n({
1128
- ...x.getState().persist,
1129
- allSteps: {
1130
- ...x.getState().persist.allSteps,
1131
- currentStep: o.allSteps.currentStep + 1,
1132
- type: "preText"
1133
- }
1134
- });
1135
- else if (o.allSteps.currentStep <= ((M = (G = o.allSteps) == null ? void 0 : G.steps) == null ? void 0 : M.length) - 1)
1136
- f(), E(o.allSteps.steps[o.allSteps.currentStep + 1], (o == null ? void 0 : o.routeId) || ((j = (W = txnBody.data) == null ? void 0 : W.data) == null ? void 0 : j.routeId));
1137
- else
1138
- return;
1139
- } else ((R = a.data) == null ? void 0 : R.status) == "failed" || (((Q = a.data) == null ? void 0 : Q.status) == "refunded" ? l({ error: `${qt(((J = o == null ? void 0 : o.stepData) == null ? void 0 : J.stepType) || "")} failed! Tokens have been refunded to the source chain.` }) : ((Z = a.data) == null ? void 0 : Z.status) == "in-progress" && (K = m == null ? void 0 : m.error) != null && K.length && (n({ ...(X = x.getState()) == null ? void 0 : X.persist, loading: !0 }), l({ error: "" })));
1140
- }
1141
- return _(() => (o.hash && b(o.hash), () => {
1142
- u.abort();
1143
- }), []), _(() => ($.current = !0, () => {
1144
- $.current = !1;
1145
- }), []), { handleExeTxn: d };
1146
- }
1147
- function ln({ setExchange: n, startTimer: o, handleBack: t }) {
1148
- var U, O, G, M, W, j, R, Q, J, Z, K, X, Y, lt, ct, xt, dt, P, Tt, vt, Ct, Et, Nt;
1149
- const e = x((v) => v.persist), i = x((v) => v.setPersist), [m, l] = rt(!1), { handleTxnSuccess: u } = q(Rt), { isErrorMessage: y, handleErrorMessage: c, errorMessage: p } = q(at), { chain: f } = ft(), E = e.isHistory, { handleStepStatus: D, handleUpdate: T, handleTryAgain: $, isShowNewQuote: s, callRegisterError: w } = Qt(), { handleExeTxn: d } = D0(), { nextTx: b, handleSkipTxn: S, callNextTx: N, txnBody: g } = St(!0), { switchChain: a } = de({
1150
- chainId: Number(((O = (U = e == null ? void 0 : e.stepData) == null ? void 0 : U.from) == null ? void 0 : O.chainId) || "0"),
1151
- throwForSwitchChainNotSupported: !0,
1152
- onError(v) {
1153
- yt(v.message) && w("wallet-error-switch", { data: { error: v.message } });
1154
- }
1155
- }), C = !nt.isEmpty((M = (G = x.getState()) == null ? void 0 : G.persist) == null ? void 0 : M.historyData);
1156
- let A = (J = (Q = (W = e == null ? void 0 : e.allSteps) == null ? void 0 : W.steps) == null ? void 0 : Q[((j = e.allSteps) == null ? void 0 : j.currentStep) || ((R = e == null ? void 0 : e.allSteps) == null ? void 0 : R.currentStep)]) == null ? void 0 : J.texts, k = e != null && e.loading ? e.hash ? "process" : "loading" : "pre", I = (Z = p == null ? void 0 : p.error) != null && Z.length ? p.error : null;
1157
- _(() => {
1158
- var v, F, L;
1159
- C && typeof ((v = e == null ? void 0 : e.historyData) == null ? void 0 : v.currentStepIndex) < "u" && ((F = e == null ? void 0 : e.historyData) == null ? void 0 : F.currentStepStatus) == "not-started" ? N(e == null ? void 0 : e.stepData, e == null ? void 0 : e.routeId) : ((L = e == null ? void 0 : e.historyData) == null ? void 0 : L.currentStepStatus) == "in-progress" && o(!0);
1160
- }, [C]), _(() => {
1161
- var v;
1162
- if (((v = e == null ? void 0 : e.allSteps) == null ? void 0 : v.currentStep) === 0 && b.data) {
1163
- let F = b.data;
1164
- i({
1165
- ...x.getState().persist,
1166
- isQuoteTimer: !(F.status == "error" || e != null && e.isTryAgain),
1167
- quote: F.status == "error" || e != null && e.isTryAgain ? "disable" : "enable",
1168
- quoteStartTime: (/* @__PURE__ */ new Date()).getTime()
1169
- });
1170
- } else
1171
- i({
1172
- ...x.getState().persist,
1173
- isQuoteTimer: !1,
1174
- quote: "disable"
1175
- });
1176
- }, [(K = e == null ? void 0 : e.allSteps) == null ? void 0 : K.steps, b.data]), _(() => {
1177
- var v, F;
1178
- ((v = e.statusData) == null ? void 0 : v.status) == "success" && e.allSteps.currentStep === ((F = e.allSteps.steps) == null ? void 0 : F.length) && (g.isSuccess || e.isSuccess) ? u(!0) : u(!1);
1179
- }, [e.allSteps, g.isSuccess, e.isSuccess, e == null ? void 0 : e.statusData]), _(() => {
1180
- var v, F, L, tt, et;
1181
- (v = p == null ? void 0 : p.error) != null && v.length || ((F = e.statusData) == null ? void 0 : F.status) == "failed" || ((L = e.statusData) == null ? void 0 : L.status) == "partial-success" || ((tt = e.statusData) == null ? void 0 : tt.status) == "txn-expired" || ((et = e.statusData) == null ? void 0 : et.status) == "refunded" ? c(!0) : c(!1);
1182
- }, [p, e == null ? void 0 : e.statusData]), _(() => {
1183
- var v, F;
1184
- !((v = p == null ? void 0 : p.error) != null && v.length) && (e != null && e.hash) && ((F = e == null ? void 0 : e.statusData) == null ? void 0 : F.srcTxnHash) !== (e == null ? void 0 : e.hash) && i({
1185
- ...x.getState().persist,
1186
- allSteps: {
1187
- ...x.getState().persist.allSteps,
1188
- type: "postText"
1189
- }
1190
- });
1191
- }, [p == null ? void 0 : p.error, e == null ? void 0 : e.hash]), _(() => {
1192
- var F, L;
1193
- let v = { ...(F = x.getState()) == null ? void 0 : F.persist };
1194
- ((L = e == null ? void 0 : e.allSteps) == null ? void 0 : L.steps) !== null && (v = {
1195
- ...v,
1196
- stepStatus: D()
1197
- }, i(v));
1198
- }, [e.allSteps]), _(() => {
1199
- var v;
1200
- nt.isEmpty(e == null ? void 0 : e.allSteps) || e.hash || i({
1201
- ...x.getState().persist,
1202
- allSteps: { ...x.getState().persist.allSteps, type: "preText" },
1203
- loading: !1
1204
- }), e != null && e.routeId && !E && n(), S(e == null ? void 0 : e.nextTx), ((v = e == null ? void 0 : e.nextTx) == null ? void 0 : v.status) === "error" && (i({
1205
- ...x.getState().persist,
1206
- loading: !0
1207
- }), N(e == null ? void 0 : e.stepData, e == null ? void 0 : e.routeId));
1208
- }, []), _(() => {
1209
- var v;
1210
- y && !m && i({ ...(v = x.getState()) == null ? void 0 : v.persist, loading: !1 });
1211
- }, [y, m]), _(() => {
1212
- var v, F, L;
1213
- (L = (F = (v = x.getState()) == null ? void 0 : v.persist) == null ? void 0 : F.nextTx) != null && L.data && m && (V(), l(!1));
1214
- }, [(lt = (Y = (X = x.getState()) == null ? void 0 : X.persist) == null ? void 0 : Y.nextTx) == null ? void 0 : lt.data]);
1215
- function B(v) {
1216
- l(v);
1217
- }
1218
- async function V() {
1219
- var v, F, L, tt, et, bt;
1220
- (F = e.allSteps.steps) != null && F[((v = e.allSteps) == null ? void 0 : v.currentStep) || 0] && (i({
1221
- ...(L = x.getState()) == null ? void 0 : L.persist,
1222
- loading: !0,
1223
- isTimerStarted: !0,
1224
- statusData: null,
1225
- isQuoteTimer: !1,
1226
- showAcceptQuote: !1,
1227
- quote: "disable",
1228
- startTime: ((bt = (et = (tt = x) == null ? void 0 : tt.getState()) == null ? void 0 : et.persist) == null ? void 0 : bt.startTime) || (/* @__PURE__ */ new Date()).getTime()
1229
- }), o(!0), d(), i({
1230
- ...x.getState().persist,
1231
- allSteps: {
1232
- ...x.getState().persist.allSteps,
1233
- type: "loadingText"
1234
- }
1235
- }));
1236
- }
1237
- return _(() => {
1238
- var v, F, L, tt, et, bt, At;
1239
- if ((F = (v = e == null ? void 0 : e.stepData) == null ? void 0 : v.from) != null && F.chainId)
1240
- Number((tt = (L = e == null ? void 0 : e.stepData) == null ? void 0 : L.from) == null ? void 0 : tt.chainId) !== (f == null ? void 0 : f.chainId) && ((et = e == null ? void 0 : e.fromChain) == null ? void 0 : et.networkType) === "evm" && a({
1241
- chainId: Number(((At = (bt = e == null ? void 0 : e.stepData) == null ? void 0 : bt.from) == null ? void 0 : At.chainId) || "0")
1242
- });
1243
- else return;
1244
- }, [e == null ? void 0 : e.stepData]), /* @__PURE__ */ h(H, { children: [
1245
- ((ct = e == null ? void 0 : e.statusData) == null ? void 0 : ct.status) !== "txn-expired" ? /* @__PURE__ */ r("div", { className: `bw-pt-4 bw-h-[80%] bw-mt-2 bw-relative ${s ? "bw-pointer-events-none bw-opacity-60" : ""}`, children: !g.isFetching && !nt.isEmpty(e == null ? void 0 : e.stepData) ? g.isSuccess && g.data || e != null && e.routeId ? (Tt = ((xt = e == null ? void 0 : e.allSteps) == null ? void 0 : xt.steps) || ((P = (dt = g.data) == null ? void 0 : dt.data) == null ? void 0 : P.steps)) == null ? void 0 : Tt.map((v, F, L) => /* @__PURE__ */ h(H, { children: [
1246
- " ",
1247
- /* @__PURE__ */ h("div", { className: "bw-flex bw-items-start bw-mb-4 bw-justify-between", children: [
1248
- /* @__PURE__ */ h("div", { className: "bw-flex bw-relative bw-items-start bw-w-max bw-justify-center bw-gap-x-3", children: [
1249
- /* @__PURE__ */ r(y0, { allSteps: e.allSteps, disableButton: e == null ? void 0 : e.loading, i: F, arr: L }),
1250
- /* @__PURE__ */ r(r0, { item: v, i: F })
1251
- ] }),
1252
- /* @__PURE__ */ r(n0, { i: F, item: v })
1253
- ] })
1254
- ] })) : /* @__PURE__ */ r(H, {}) : /* @__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: I ? /* @__PURE__ */ r($t, { text: "Unable to complete the request!" }) : /* @__PURE__ */ h(H, { children: [
1255
- /* @__PURE__ */ r("div", { className: "bw-relative bw-pb-4", children: /* @__PURE__ */ r(C0, {}) }),
1256
- /* @__PURE__ */ r("p", { className: "bw-text-2xl bw-text-center bw-font-medium bw-text-text-secondary", children: "Initializing Transaction..." })
1257
- ] }) }) }) : /* @__PURE__ */ r(H, {}),
1258
- !g.isFetching && !nt.isEmpty(e == null ? void 0 : e.stepData) ? s ? /* @__PURE__ */ r(E0, { handleUpdate: T }) : ((vt = e == null ? void 0 : e.statusData) == null ? void 0 : vt.status) == "success" && e.allSteps.currentStep == ((Ct = e.allSteps.steps) == null ? void 0 : Ct.length) ? /* @__PURE__ */ r(Xe, { handleBack: t }) : y ? ((Et = e.statusData) == null ? void 0 : Et.status) == "partial-success" ? /* @__PURE__ */ r(N0, { handleBack: t }) : ((Nt = e == null ? void 0 : e.statusData) == null ? void 0 : Nt.status) == "txn-expired" ? /* @__PURE__ */ h("div", { className: "bw-mt-6", children: [
1259
- /* @__PURE__ */ r($t, { text: "Transaction expired!" }),
1260
- /* @__PURE__ */ r("div", { className: "bw-absolute bw-bg-background-container bw-border-t bw-pt-3 bw-border-border-primary bw-w-full bw-flex bw-flex-col bw-items-center bw-justify-center bw-bottom-0", children: /* @__PURE__ */ r(Bt, { handleBack: t, errorText: I }) })
1261
- ] }) : /* @__PURE__ */ r(t0, { errorText: I, handleGoBack: t, txnTextObj: A, handleExeTxn: $, handleDisable: B }) : /* @__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: [
1262
- /* @__PURE__ */ r(e0, { txnProcessType: k, txnTextObj: A, errorText: I, allSteps: e == null ? void 0 : e.allSteps }),
1263
- /* @__PURE__ */ r(Ye, { txnProcessType: k, txnTextObj: A, disableButton: e.loading, handleStep: V })
1264
- ] }) : I != null && I.length ? /* @__PURE__ */ r("div", { className: "bw-absolute bw-bg-background-container bw-border-t bw-pt-3 bw-border-border-primary bw-w-full bw-flex bw-flex-col bw-items-center bw-justify-center bw-bottom-0", children: /* @__PURE__ */ r(Bt, { handleBack: t, errorText: I }) }) : /* @__PURE__ */ r(H, {})
1265
- ] });
1266
- }
1267
- var ut = { exports: {} }, F0 = ut.exports, Vt;
1268
- function B0() {
1269
- return Vt || (Vt = 1, function(n, o) {
1270
- (function(t, e) {
1271
- n.exports = e(ht);
1272
- })(typeof self < "u" ? self : F0, (t) => (() => {
1273
- var e = { 155: (w) => {
1274
- w.exports = t;
1275
- } }, i = {};
1276
- function m(w) {
1277
- var d = i[w];
1278
- if (d !== void 0) return d.exports;
1279
- var b = i[w] = { exports: {} };
1280
- return e[w](b, b.exports, m), b.exports;
1281
- }
1282
- m.d = (w, d) => {
1283
- for (var b in d) m.o(d, b) && !m.o(w, b) && Object.defineProperty(w, b, { enumerable: !0, get: d[b] });
1284
- }, m.o = (w, d) => Object.prototype.hasOwnProperty.call(w, d), m.r = (w) => {
1285
- typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(w, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(w, "__esModule", { value: !0 });
1286
- };
1287
- var l = {};
1288
- m.r(l), m.d(l, { default: () => s, useStopwatch: () => T, useTime: () => $, useTimer: () => D });
1289
- var u = m(155);
1290
- class y {
1291
- static expiryTimestamp(d) {
1292
- const b = new Date(d).getTime() > 0;
1293
- return b;
1294
- }
1295
- static onExpire(d) {
1296
- const b = d && typeof d == "function";
1297
- return b;
1298
- }
1299
- }
1300
- class c {
1301
- static getTimeFromSeconds(d) {
1302
- const b = Math.ceil(d), S = Math.floor(b / 86400), N = Math.floor(b % 86400 / 3600), g = Math.floor(b % 3600 / 60);
1303
- return { totalSeconds: b, seconds: Math.floor(b % 60), minutes: g, hours: N, days: S };
1304
- }
1305
- static getSecondsFromExpiry(d, b) {
1306
- const S = d - (/* @__PURE__ */ new Date()).getTime();
1307
- if (S > 0) {
1308
- const N = S / 1e3;
1309
- return b ? Math.round(N) : N;
1310
- }
1311
- return 0;
1312
- }
1313
- static getSecondsFromPrevTime(d, b) {
1314
- const S = (/* @__PURE__ */ new Date()).getTime() - d;
1315
- if (S > 0) {
1316
- const N = S / 1e3;
1317
- return b ? Math.round(N) : N;
1318
- }
1319
- return 0;
1320
- }
1321
- static getSecondsFromTimeNow() {
1322
- const d = /* @__PURE__ */ new Date();
1323
- return d.getTime() / 1e3 - 60 * d.getTimezoneOffset();
1324
- }
1325
- static getFormattedTimeFromSeconds(d, b) {
1326
- const { seconds: S, minutes: N, hours: g } = c.getTimeFromSeconds(d);
1327
- let a = "", C = g;
1328
- return b === "12-hour" && (a = g >= 12 ? "pm" : "am", C = g % 12), { seconds: S, minutes: N, hours: C, ampm: a };
1329
- }
1330
- }
1331
- function p(w, d) {
1332
- const b = (0, u.useRef)();
1333
- (0, u.useEffect)(() => {
1334
- b.current = w;
1335
- }), (0, u.useEffect)(() => {
1336
- if (!d) return () => {
1337
- };
1338
- const S = setInterval(() => {
1339
- b.current && b.current();
1340
- }, d);
1341
- return () => clearInterval(S);
1342
- }, [d]);
1343
- }
1344
- const f = 1e3;
1345
- function E(w) {
1346
- if (!y.expiryTimestamp(w)) return null;
1347
- const d = c.getSecondsFromExpiry(w), b = Math.floor(1e3 * (d - Math.floor(d)));
1348
- return b > 0 ? b : f;
1349
- }
1350
- function D() {
1351
- let { expiryTimestamp: w, onExpire: d, autoStart: b = !0 } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1352
- const [S, N] = (0, u.useState)(w), [g, a] = (0, u.useState)(c.getSecondsFromExpiry(S)), [C, A] = (0, u.useState)(b), [k, I] = (0, u.useState)(b), [B, V] = (0, u.useState)(E(S)), U = (0, u.useCallback)(() => {
1353
- y.onExpire(d) && d(), A(!1), V(null);
1354
- }, [d]), O = (0, u.useCallback)(() => {
1355
- A(!1);
1356
- }, []), G = (0, u.useCallback)(function(j) {
1357
- let R = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
1358
- V(E(j)), I(R), A(R), N(j), a(c.getSecondsFromExpiry(j));
1359
- }, []), M = (0, u.useCallback)(() => {
1360
- const j = /* @__PURE__ */ new Date();
1361
- j.setMilliseconds(j.getMilliseconds() + 1e3 * g), G(j);
1362
- }, [g, G]), W = (0, u.useCallback)(() => {
1363
- k ? (a(c.getSecondsFromExpiry(S)), A(!0)) : M();
1364
- }, [S, k, M]);
1365
- return p(() => {
1366
- B !== f && V(f);
1367
- const j = c.getSecondsFromExpiry(S);
1368
- a(j), j <= 0 && U();
1369
- }, C ? B : null), { ...c.getTimeFromSeconds(g), start: W, pause: O, resume: M, restart: G, isRunning: C };
1370
- }
1371
- function T() {
1372
- let { autoStart: w, offsetTimestamp: d } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1373
- const [b, S] = (0, u.useState)(c.getSecondsFromExpiry(d, !0) || 0), [N, g] = (0, u.useState)(/* @__PURE__ */ new Date()), [a, C] = (0, u.useState)(b + c.getSecondsFromPrevTime(N || 0, !0)), [A, k] = (0, u.useState)(w);
1374
- p(() => {
1375
- C(b + c.getSecondsFromPrevTime(N, !0));
1376
- }, A ? 1e3 : null);
1377
- const I = (0, u.useCallback)(() => {
1378
- const U = /* @__PURE__ */ new Date();
1379
- g(U), k(!0), C(b + c.getSecondsFromPrevTime(U, !0));
1380
- }, [b]), B = (0, u.useCallback)(() => {
1381
- S(a), k(!1);
1382
- }, [a]), V = (0, u.useCallback)(function() {
1383
- let U = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, O = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
1384
- const G = c.getSecondsFromExpiry(U, !0) || 0, M = /* @__PURE__ */ new Date();
1385
- g(M), S(G), k(O), C(G + c.getSecondsFromPrevTime(M, !0));
1386
- }, []);
1387
- return { ...c.getTimeFromSeconds(a), start: I, pause: B, reset: V, isRunning: A };
1388
- }
1389
- function $() {
1390
- let { format: w } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1391
- const [d, b] = (0, u.useState)(c.getSecondsFromTimeNow());
1392
- return p(() => {
1393
- b(c.getSecondsFromTimeNow());
1394
- }, 1e3), { ...c.getFormattedTimeFromSeconds(d, w) };
1395
- }
1396
- function s(w) {
1397
- if ((0, u.useEffect)(() => {
1398
- }, []), w.expiryTimestamp) {
1399
- const b = D(w);
1400
- return { ...b, startTimer: b.start, stopTimer: b.pause, resetTimer: () => {
1401
- } };
1402
- }
1403
- const d = T(w);
1404
- return { ...d, startTimer: d.start, stopTimer: d.pause, resetTimer: d.reset };
1405
- }
1406
- return l;
1407
- })());
1408
- }(ut)), ut.exports;
1409
- }
1410
- var $0 = B0();
1411
- function Pt(n) {
1412
- return n > 9 || n < 0 ? n : `0${n}`;
1413
- }
1414
- function V0({ handleExpiry: n }) {
1415
- var l;
1416
- const o = x((u) => u.persist), t = (o == null ? void 0 : o.route) || {};
1417
- let e = (o == null ? void 0 : o.startTime) || ((l = o == null ? void 0 : o.historyData) == null ? void 0 : l.createdAt);
1418
- const { minutes: i, seconds: m } = $0.useTimer({
1419
- expiryTimestamp: e + (t == null ? void 0 : t.estimatedTimeInSeconds) * 1e3,
1420
- onExpire: () => {
1421
- n();
1422
- }
1423
- });
1424
- return `${Pt(i)}:${Pt(m)}`;
1425
- }
1426
- const cn = ht.memo(function({ route: o, isTimerStarted: t, startTimer: e, isErrorMessage: i }) {
1427
- const [m, l] = rt(!1), { isTxnSuccessful: u } = q(Rt), c = !x((f) => f.persist).stepData;
1428
- function p() {
1429
- l(!0), e(!1);
1430
- }
1431
- 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: c ? /* @__PURE__ */ r(Dt, {}) : u ? "Done" : t && !m ? /* @__PURE__ */ r(V0, { route: o, handleExpiry: p }) : m ? /* @__PURE__ */ r(Dt, {}) : "Start Txn" }) });
1432
- });
1433
- function Jt(n, o) {
1434
- return Ie(n, o) || 0;
1435
- }
1436
- function P0() {
1437
- var o, t, e, i, m, l, u;
1438
- const n = x((y) => y.persist);
1439
- return /* @__PURE__ */ h("div", { className: "bw-w-full bw-px-3 bw-py-2 bw-border-t bw-border-border-primary", children: [
1440
- /* @__PURE__ */ r("div", { children: (t = (o = n == null ? void 0 : n.route) == null ? void 0 : o.fee) == null ? void 0 : t.filter((y, c) => y.source == "FROM_SOURCE_WALLET").map((y, c) => y.amountInUSD ? /* @__PURE__ */ h("div", { className: "bw-flex bw-mb-1 bw-items-center bw-justify-between", children: [
1441
- /* @__PURE__ */ r("p", { className: "bw-text-text-secondary bw-text-sm bw-font-semibold", children: `${qt(y.type)} Fee` }),
1442
- /* @__PURE__ */ h("span", { className: "bw-text-text-secondary bw-text-sm bw-font-bold", children: [
1443
- /* @__PURE__ */ r(it, { value: Jt(y.amountInToken, y.token.decimals).toFixed(20) || 0, options: { maxDecimals: 8 } }),
1444
- ` ${y.token.symbol} ${y.amountInUSD ? " ($" : ""}`,
1445
- y.amountInUSD ? /* @__PURE__ */ h(H, { children: [
1446
- /* @__PURE__ */ r(it, { value: y.amountInUSD || 0, options: { maxDecimals: 8 } }),
1447
- ")"
1448
- ] }) : ""
1449
- ] })
1450
- ] }, c) : /* @__PURE__ */ r(H, {})) }),
1451
- /* @__PURE__ */ r("div", { className: "bw-w-full bw-h-[1px] bw-border-b bw-my-2 bw-border-border-primary" }),
1452
- /* @__PURE__ */ h("div", { className: "bw-w-full", children: [
1453
- /* @__PURE__ */ h("div", { className: "bw-flex bw-items-center bw-mb-2 bw-justify-between", children: [
1454
- /* @__PURE__ */ r("p", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: "Max Slippage" }),
1455
- /* @__PURE__ */ h("span", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: [
1456
- (((e = n == null ? void 0 : n.route) == null ? void 0 : e.slippage) || 0) / 100,
1457
- "%"
1458
- ] })
1459
- ] }),
1460
- /* @__PURE__ */ h("div", { className: "bw-flex bw-items-center bw-justify-between", children: [
1461
- /* @__PURE__ */ r("p", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: "Minimum Received" }),
1462
- /* @__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 || (m = n == null ? void 0 : n.route) != null && m.minOutputAmount ? `${Mt(n.route.minOutputAmountDisplay || n.route.minOutputAmount, 10)} ${(u = (l = n == null ? void 0 : n.route) == null ? void 0 : l.to) == null ? void 0 : u.symbol}` : "" })
1463
- ] })
1464
- ] })
1465
- ] });
1466
- }
1467
- function j0({ isShowFull: n }) {
1468
- return /* @__PURE__ */ r("button", { className: "bw-w-[20px] bw-h-[20px] bw-flex bw-items-center bw-justify-center bw-border bw-border-border-primary bw-rounded-full bw-text-text-secondary bw-text-lg bw-font-normal", children: /* @__PURE__ */ r("div", { className: `bw-mt-[1px] ${n ? "bw-rotate-180" : ""}`, children: /* @__PURE__ */ r(he, { fill: "var(--tw-text-primary)" }) }) });
1469
- }
1470
- function _0({ gasData: n }) {
1471
- var t;
1472
- const o = x((e) => e.persist);
1473
- return /* @__PURE__ */ h("div", { className: "bw-flex bw-w-full bw-h-full bw-items-center", children: [
1474
- /* @__PURE__ */ r("span", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: "Max Slippage:" }),
1475
- /* @__PURE__ */ h("span", { className: "bw-text-xs bw-ml-[3px] bw-font-bold bw-text-text-secondary", children: [
1476
- (((t = o == null ? void 0 : o.route) == null ? void 0 : t.slippage) || 0) / 100,
1477
- "%"
1478
- ] }),
1479
- /* @__PURE__ */ r("div", { className: "bw-w-[2px] bw-h-[24px] bw-mx-3 bw-bg-text-secondary" }),
1480
- /* @__PURE__ */ r("span", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: "Fees:" }),
1481
- /* @__PURE__ */ h("span", { className: "bw-text-xs bw-ml-[3px] bw-font-bold bw-text-text-secondary", children: [
1482
- /* @__PURE__ */ r(it, { value: (n == null ? void 0 : n.payableInToken) || 0, options: { maxDecimals: 8 } }),
1483
- ` ${n == null ? void 0 : n.symbol} ${n != null && n.payableInUSD ? " ($" : ""}`,
1484
- n != null && n.payableInUSD ? /* @__PURE__ */ h(H, { children: [
1485
- /* @__PURE__ */ r(it, { value: (n == null ? void 0 : n.payableInUSD) || 0, options: { maxDecimals: 8 } }),
1486
- ")"
1487
- ] }) : ""
1488
- ] })
1489
- ] });
1490
- }
1491
- function U0({ gasData: n }) {
1492
- return /* @__PURE__ */ h("div", { className: "bw-w-full bw-flex bw-items-center bw-justify-between bw-border-border-primary", children: [
1493
- /* @__PURE__ */ r("span", { className: "bw-text-sm bw-font-bold bw-text-text-primary", children: "Fees" }),
1494
- /* @__PURE__ */ h("span", { className: "bw-text-sm bw-ml-[3px] bw-font-bold bw-text-text-primary", children: [
1495
- /* @__PURE__ */ r(it, { value: (n == null ? void 0 : n.payableInToken) || 0, options: { maxDecimals: 8 } }),
1496
- ` ${n == null ? void 0 : n.symbol} ${n != null && n.payableInUSD ? " ($" : ""}`,
1497
- n != null && n.payableInUSD ? /* @__PURE__ */ h(H, { children: [
1498
- /* @__PURE__ */ r(it, { value: (n == null ? void 0 : n.payableInUSD) || 0, options: { maxDecimals: 8 } }),
1499
- ")"
1500
- ] }) : ""
1501
- ] })
1502
- ] });
1503
- }
1504
- function G0({ gasData: n, isShowFull: o }) {
1505
- return /* @__PURE__ */ h("div", { className: "bw-flex bw-items-center bw-justify-between bw-gap-x-2 bw-h-[35px] bw-px-3", children: [
1506
- o ? /* @__PURE__ */ r(U0, { gasData: n }) : /* @__PURE__ */ r(_0, { gasData: n }),
1507
- /* @__PURE__ */ r(j0, { isShowFull: o })
1508
- ] });
1509
- }
1510
- function xn() {
1511
- var c, p;
1512
- const n = x((f) => f.persist), [o, t] = rt(!1), e = x((f) => f.configuration), i = mt(null), [m, l] = rt(0);
1513
- _(() => {
1514
- if (i.current) {
1515
- const f = setTimeout(() => {
1516
- const E = i.current.scrollHeight;
1517
- l(E);
1518
- }, 50);
1519
- return () => clearTimeout(f);
1520
- }
1521
- }, [n == null ? void 0 : n.route, o]);
1522
- function u() {
1523
- t(!o);
1524
- }
1525
- const y = re(() => {
1526
- var E, D;
1527
- let f = {
1528
- payableInUSD: 0,
1529
- payableInToken: 0,
1530
- symbol: ""
1531
- };
1532
- return (D = (E = n == null ? void 0 : n.route) == null ? void 0 : E.fee) == null || D.forEach((T) => {
1533
- T.source == "FROM_SOURCE_WALLET" && (f.payableInUSD += Number(T.amountInUSD), f.payableInToken += Jt(Number(T.amountInToken), T.token.decimals), f.symbol = T.token.symbol);
1534
- }), f;
1535
- }, [n == null ? void 0 : n.route]);
1536
- return /* @__PURE__ */ h(
1537
- "div",
1538
- {
1539
- onClick: () => {
1540
- u();
1541
- },
1542
- style: {
1543
- boxShadow: e && e.customTheme && ((p = (c = e.customTheme) == null ? void 0 : c.shadow) == null ? void 0 : p.boxShadow) || "0px 0px 5.8px 0px #00000026"
1544
- },
1545
- 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",
1546
- children: [
1547
- /* @__PURE__ */ r(G0, { gasData: y, isShowFull: o }),
1548
- /* @__PURE__ */ r(
1549
- "div",
1550
- {
1551
- ref: i,
1552
- style: {
1553
- height: o ? `${m}px` : "0",
1554
- transition: "height 0.3s ease-in-out",
1555
- overflow: "hidden",
1556
- visibility: m === 0 ? "hidden" : "visible"
1557
- },
1558
- children: /* @__PURE__ */ r("div", { className: "bw-h-auto", children: /* @__PURE__ */ r(P0, { showFull: o }) })
1559
- }
1560
- )
1561
- ]
1562
- }
1563
- );
1564
- }
1565
- export {
1566
- xn as E,
1567
- sn as H,
1568
- Rt as T,
1569
- at as a,
1570
- on as b,
1571
- cn as c,
1572
- ln as d,
1573
- an as e
1574
- };