@blockend/widget 1.0.60-beta.1 → 1.0.61

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 (221) hide show
  1. package/dist/{AllRoutes-B-tqwmhZ.js → AllRoutes-BqW5S4_J.js} +9 -9
  2. package/dist/AllRoutes-CIe7ZLbW.js +2209 -0
  3. package/dist/{Box-B9dKcT71.js → Box-Dw7IJo3D.js} +14 -14
  4. package/dist/Box-QpYIDD-V.js +54 -0
  5. package/dist/EstGas-C_ldluj6.js +1576 -0
  6. package/dist/EstGas-Dpwt2-50.js +1574 -0
  7. package/dist/{Grow-DGNIagcL.js → Grow-DjneaPQY.js} +28 -28
  8. package/dist/Grow-L7kyPhbh.js +1656 -0
  9. package/dist/{InputComp-C0BYsYO2.js → InputComp-CWH4SAk7.js} +3 -3
  10. package/dist/InputComp-Dl4M7E5v.js +105 -0
  11. package/dist/{LoadRoute-BejmZs2l.js → LoadRoute-Cafzlcfy.js} +4 -4
  12. package/dist/LoadRoute-cBSl34Bs.js +125 -0
  13. package/dist/{QuotesProgress-DUtmb0H1.js → QuotesProgress-Covy7wmW.js} +1 -1
  14. package/dist/QuotesProgress-CxJUoCPy.js +28 -0
  15. package/dist/{SwapAsset-C6q38SfB.js → SwapAsset-BqXVX_DR.js} +1 -1
  16. package/dist/SwapAsset-CkRat7Ok.js +51 -0
  17. package/dist/Tooltip-3YpYU_vO.js +572 -0
  18. package/dist/{Tooltip-B9eQU87E.js → Tooltip-D2kKNQ0U.js} +3 -3
  19. package/dist/TxnButton-CPMFPFA_.js +222 -0
  20. package/dist/{TxnButton-B7erQoe9.js → TxnButton-mfwy-EoQ.js} +5 -6
  21. package/dist/{add-BDXnG29B.js → add-CRY8asYF.js} +1 -1
  22. package/dist/add-Dfrw-dUV.js +19 -0
  23. package/dist/{all-wallets-A5aRDDSX.js → all-wallets-DOnIRIv0.js} +1 -1
  24. package/dist/all-wallets-Dw10lWJZ.js +10 -0
  25. package/dist/{app-store-CRNlWthG.js → app-store-C0M9hC1B.js} +1 -1
  26. package/dist/app-store-DJiZFSCr.js +21 -0
  27. package/dist/{apple-Bk9AlpJi.js → apple-Bv7oA5AQ.js} +1 -1
  28. package/dist/apple-kMZGS4AC.js +22 -0
  29. package/dist/{arrow-bottom-Wyw-Sjsd.js → arrow-bottom-D4arnome.js} +1 -1
  30. package/dist/arrow-bottom-DgmWrLqf.js +12 -0
  31. package/dist/{arrow-bottom-circle-F5a-Pm5A.js → arrow-bottom-circle-BUny4yP8.js} +1 -1
  32. package/dist/arrow-bottom-circle-C7iPKwzW.js +15 -0
  33. package/dist/{arrow-left-xa8Yhbw7.js → arrow-left-DImJbKZs.js} +1 -1
  34. package/dist/arrow-left-Dol642VI.js +12 -0
  35. package/dist/{arrow-right-DHehfJb9.js → arrow-right-BvRPNX9F.js} +1 -1
  36. package/dist/arrow-right-CMwyPVT7.js +12 -0
  37. package/dist/{arrow-top-Zr4NTjGQ.js → arrow-top-1RWPJImu.js} +1 -1
  38. package/dist/arrow-top-kn9xtx92.js +12 -0
  39. package/dist/{bank-hQuILOEh.js → bank-C0t9JpLj.js} +1 -1
  40. package/dist/bank-DK-FvDfd.js +18 -0
  41. package/dist/{basic-DtnxLRWd.js → basic-Sejv2JvX.js} +3 -3
  42. package/dist/basic-VfgwBHn1.js +5783 -0
  43. package/dist/{browser-DdzWWRtF.js → browser-0d0uw45D.js} +1 -1
  44. package/dist/browser-BzT1ACe9.js +18 -0
  45. package/dist/{card-CgYBeEF3.js → card-BBByykfy.js} +1 -1
  46. package/dist/card-DqDM55a-.js +18 -0
  47. package/dist/{ccip-fwzPvAXp.js → ccip-8__szz9Q.js} +1 -1
  48. package/dist/ccip-BPZSey8I.js +228 -0
  49. package/dist/{checkmark-CRSJVI7P.js → checkmark-B_osdsm_.js} +1 -1
  50. package/dist/checkmark-DEKH6rOS.js +15 -0
  51. package/dist/{checkmark-bold-Chu-2qTS.js → checkmark-bold-BEzepFY4.js} +1 -1
  52. package/dist/checkmark-bold-Dzv2hN2Q.js +12 -0
  53. package/dist/{chevron-bottom-CWuEnub2.js → chevron-bottom-Bdaxlaxc.js} +1 -1
  54. package/dist/chevron-bottom-CXdHWe0F.js +12 -0
  55. package/dist/{chevron-left-h2_syVI8.js → chevron-left-2aCeqxdm.js} +1 -1
  56. package/dist/chevron-left-CeuFz3M9.js +12 -0
  57. package/dist/{chevron-right-Ct4j2Leu.js → chevron-right-BPgQeMPz.js} +1 -1
  58. package/dist/chevron-right-DikqbHjp.js +12 -0
  59. package/dist/{chevron-top-DcBzaR2h.js → chevron-top-BskFpgMP.js} +1 -1
  60. package/dist/chevron-top-CjCScawp.js +12 -0
  61. package/dist/{chrome-store-CXn4JMj-.js → chrome-store-CxhEG2Jk.js} +1 -1
  62. package/dist/chrome-store-DaP5Y4w2.js +65 -0
  63. package/dist/{clock-JZPADmeK.js → clock-BDgHn083.js} +1 -1
  64. package/dist/clock-BzjZWK68.js +12 -0
  65. package/dist/{close-DtXi8BhO.js → close-CQTa1LZg.js} +1 -1
  66. package/dist/close-Dqncm2nY.js +12 -0
  67. package/dist/{coinPlaceholder-BK6alFNE.js → coinPlaceholder-B-NSV729.js} +1 -1
  68. package/dist/coinPlaceholder-BExfa33b.js +12 -0
  69. package/dist/{compass-DWhtsJev.js → compass-BdJmk2w2.js} +1 -1
  70. package/dist/compass-C1H_fht-.js +12 -0
  71. package/dist/{copy-D-MDSgUX.js → copy-Cg4vgr82.js} +1 -1
  72. package/dist/copy-DPMVX3yZ.js +19 -0
  73. package/dist/{core-BwKgmZsH.js → core-BSwMFU2B.js} +6124 -4570
  74. package/dist/core-BYOwnw_B.js +16521 -0
  75. package/dist/{cursor-Dh3mFu9G.js → cursor-BoD_rq0f.js} +1 -1
  76. package/dist/{cursor-transparent-NB0LxFUO.js → cursor-transparent-Dqs1kXcb.js} +1 -1
  77. package/dist/cursor-transparent-IQlZspwQ.js +16 -0
  78. package/dist/cursor-ybJpiPr6.js +7 -0
  79. package/dist/{desktop-BgF9XEMs.js → desktop-BOxkTik1.js} +1 -1
  80. package/dist/desktop-WMYv3b4Q.js +13 -0
  81. package/dist/{disconnect-Dq0GPLgW.js → disconnect-CTxFyZWa.js} +1 -1
  82. package/dist/disconnect-eMeec26w.js +12 -0
  83. package/dist/{discord-Dx0EuHuU.js → discord-BJRxIhBt.js} +1 -1
  84. package/dist/discord-CpTo4KnZ.js +21 -0
  85. package/dist/{down-D_76LJ5o.js → down-372J_rRV.js} +2 -2
  86. package/dist/down-hvB7J3FG.js +622 -0
  87. package/dist/{etherscan-CNIjXg_f.js → etherscan-CyQf5MH5.js} +1 -1
  88. package/dist/etherscan-DQ1h54d3.js +10 -0
  89. package/dist/{exclamation-triangle-Bhp8mAG7.js → exclamation-triangle-DFOXjtuI.js} +1 -1
  90. package/dist/exclamation-triangle-DzKs0-30.js +8 -0
  91. package/dist/{extension-BKqqIj7b.js → extension-XiWSr1Ku.js} +1 -1
  92. package/dist/extension-ep1TEUSD.js +12 -0
  93. package/dist/{external-link-DbGPs34E.js → external-link-CYjbHRDY.js} +1 -1
  94. package/dist/external-link-DRzzevt_.js +12 -0
  95. package/dist/{facebook-DRG1zLmw.js → facebook-DhP37m2R.js} +1 -1
  96. package/dist/facebook-eXS31CP5.js +30 -0
  97. package/dist/{farcaster-DDWwjMH9.js → farcaster-C1J2oGt2.js} +1 -1
  98. package/dist/farcaster-f0EPKy4w.js +16 -0
  99. package/dist/{filters-Bj10QvW6.js → filters-C5jLy9GP.js} +1 -1
  100. package/dist/filters-RqawLZYy.js +12 -0
  101. package/dist/{getChainIds-eeGoWwbI.js → getChainIds-AaKb_MmO.js} +2 -2
  102. package/dist/getChainIds-DXEtLb1g.js +1888 -0
  103. package/dist/{getCosmosAddress-DlgoXFw9.js → getCosmosAddress-D-F7jz-d.js} +1876 -1925
  104. package/dist/getCosmosAddress-X_cfoAnv.js +9517 -0
  105. package/dist/{github-ZPlB-Utk.js → github-CJ8g1by7.js} +1 -1
  106. package/dist/github-d1vUfc1B.js +22 -0
  107. package/dist/{google-CCKsdggZ.js → google-DpIVCnNm.js} +1 -1
  108. package/dist/google-Dtcfyt4F.js +22 -0
  109. package/dist/{hamburger-DPe9Xfjf.js → hamburger-BylLGawu.js} +5 -5
  110. package/dist/hamburger-DezZOKRv.js +3915 -0
  111. package/dist/{help-circle-IpogiYkd.js → help-circle-BESCFGIa.js} +1 -1
  112. package/dist/help-circle-BTpSg7wr.js +16 -0
  113. package/dist/{id--1TM5fr0.js → id-CPX0IEMo.js} +1 -1
  114. package/dist/id-CV-pIIiZ.js +16 -0
  115. package/dist/{image-DUfvu2wM.js → image-DrFHyQOS.js} +1 -1
  116. package/dist/image-n7ODnWNp.js +8 -0
  117. package/dist/{index-DThyqr43.js → index-BDezoD7C.js} +1 -1
  118. package/dist/{index-BEzLzd5e.js → index-BOd8pd8c.js} +11 -11
  119. package/dist/index-BYmiFoJh.js +29495 -0
  120. package/dist/{index-BqAYNgz8.js → index-BheqnLKf.js} +78 -78
  121. package/dist/{index-CIxU6QQf.js → index-C7McnY5R.js} +2604 -2625
  122. package/dist/{index-C5XuDvkl.js → index-CI-V1HdQ.js} +587 -578
  123. package/dist/index-CSgWo9Cg.js +6713 -0
  124. package/dist/index-CViW2kjE.js +13547 -0
  125. package/dist/index-CoV9zQx1.js +992 -0
  126. package/dist/{index-BAuHi89Z.js → index-D0J1OD73.js} +3104 -3031
  127. package/dist/index-DO14DPs3.js +6713 -0
  128. package/dist/{index-BThpYFL-.js → index-D_8iklL2.js} +351 -372
  129. package/dist/{index-Bb3Owdat.js → index-DhZwdjPQ.js} +2 -2
  130. package/dist/index-DjHDqI7m.js +206 -0
  131. package/dist/{index-HXseE2Nv.js → index-DoNokw4Q.js} +1 -1
  132. package/dist/index-GlSAE8hE.js +472 -0
  133. package/dist/index-H7ThVJwV.js +3267 -0
  134. package/dist/index-Pni0gIii.js +206 -0
  135. package/dist/index-TEYMoNwP.js +9 -0
  136. package/dist/index-VS3sEqmI.js +330 -0
  137. package/dist/index-ePnYqYhf.js +1483 -0
  138. package/dist/index-eatshJSd.js +18509 -0
  139. package/dist/{index.es-D28h__ZD.js → index.es-B95K0DgG.js} +1 -1
  140. package/dist/index.es-BzyBckd_.js +366 -0
  141. package/dist/index.es-CMvE7ghR.js +14904 -0
  142. package/dist/index.es-gTtSa0r5.js +14904 -0
  143. package/dist/index.es.js +1 -1
  144. package/dist/{info-CRK9yM3q.js → info-DB9XS3BU.js} +1 -1
  145. package/dist/info-DWZmKXfC.js +7 -0
  146. package/dist/{info-circle-DroAdDav.js → info-circle-BVB8s9W_.js} +1 -1
  147. package/dist/info-circle-Bk9rpQzz.js +16 -0
  148. package/dist/{lightbulb-DGwzaoxs.js → lightbulb-C0eiLvuS.js} +1 -1
  149. package/dist/lightbulb-CUDopurR.js +7 -0
  150. package/dist/{mail-BQSCf__h.js → mail-CYcc9yZZ.js} +1 -1
  151. package/dist/mail-Df9wlUBz.js +12 -0
  152. package/dist/{mobile-4chCtN_4.js → mobile-Cvm9Skqq.js} +1 -1
  153. package/dist/mobile-DcoUJktC.js +13 -0
  154. package/dist/{more-uiMKzNjJ.js → more-B-UvO1Yo.js} +1 -1
  155. package/dist/more-DbsAB7Xx.js +15 -0
  156. package/dist/{network-placeholder-CVOcWHRh.js → network-placeholder-C8QNcwPf.js} +1 -1
  157. package/dist/network-placeholder-CnHZLxGT.js +18 -0
  158. package/dist/{nftPlaceholder-CakfkypA.js → nftPlaceholder-C_LU9tT5.js} +1 -1
  159. package/dist/nftPlaceholder-D7igGAAq.js +12 -0
  160. package/dist/{off-CoYWNQqe.js → off-BEQbMYBZ.js} +1 -1
  161. package/dist/off-Brms9nN7.js +12 -0
  162. package/dist/{play-store-q5l7DaBe.js → play-store-CEopCauM.js} +1 -1
  163. package/dist/play-store-z4z-boXn.js +36 -0
  164. package/dist/{plus-CR0bo3Ss.js → plus-CtEYHV2t.js} +1 -1
  165. package/dist/plus-LkrIZJEQ.js +17 -0
  166. package/dist/{qr-code-FNoqG2yJ.js → qr-code-BhmZxeo_.js} +1 -1
  167. package/dist/qr-code-CZnYaNoE.js +10 -0
  168. package/dist/{recycle-horizontal-BsU3dW8b.js → recycle-horizontal-CF9eqICi.js} +1 -1
  169. package/dist/recycle-horizontal-CeGotUdv.js +13 -0
  170. package/dist/{refresh-DyJzaQLK.js → refresh-Bm3plkBE.js} +1 -1
  171. package/dist/refresh-CKhWU1dQ.js +12 -0
  172. package/dist/{reown-logo-BFbpXVCB.js → reown-logo-8S9ZN_-T.js} +1 -1
  173. package/dist/reown-logo-CF2Qkyw1.js +16 -0
  174. package/dist/{search-CoIHCx8n.js → search-DNcA47oY.js} +1 -1
  175. package/dist/search-DyuAYb_-.js +12 -0
  176. package/dist/{send-CT0RLtYP.js → send-B0S9gHH6.js} +1 -1
  177. package/dist/send-BbBOjlsM.js +19 -0
  178. package/dist/{swapHorizontal-2UEy_VbL.js → swapHorizontal-BuTPPB8N.js} +1 -1
  179. package/dist/swapHorizontal-DA7yhPfV.js +12 -0
  180. package/dist/{swapHorizontalBold-BwLgMdQd.js → swapHorizontalBold-BnB-fpce.js} +1 -1
  181. package/dist/swapHorizontalBold-BujZxwgY.js +12 -0
  182. package/dist/{swapHorizontalMedium-Wwd3Subk.js → swapHorizontalMedium-9QnwwjJD.js} +1 -1
  183. package/dist/swapHorizontalMedium-hEBn_MJv.js +20 -0
  184. package/dist/{swapHorizontalRoundedBold-CbSALTi8.js → swapHorizontalRoundedBold-C83mxp3u.js} +1 -1
  185. package/dist/swapHorizontalRoundedBold-Cqg1Na-5.js +12 -0
  186. package/dist/{swapVertical-B5GizA1j.js → swapVertical-BAz7hmKO.js} +1 -1
  187. package/dist/swapVertical-D1CdGHJt.js +12 -0
  188. package/dist/{telegram-BtJEmiFh.js → telegram-BMT9bLfw.js} +1 -1
  189. package/dist/telegram-dDQ2sOw5.js +20 -0
  190. package/dist/{three-dots-Bel3OYRL.js → three-dots-DuhUrXKI.js} +1 -1
  191. package/dist/three-dots-ltDeu1Xu.js +9 -0
  192. package/dist/{twitch-iJUsxLGs.js → twitch-ClsoABSi.js} +1 -1
  193. package/dist/twitch-sBusnrAt.js +22 -0
  194. package/dist/{twitterIcon-5Bw6TNyI.js → twitterIcon-B9n98fnH.js} +1 -1
  195. package/dist/twitterIcon-BKMgaEZ4.js +10 -0
  196. package/dist/{unsupportedProp-CtBHkzVs.js → unsupportedProp-BXmR-9gT.js} +1 -1
  197. package/dist/unsupportedProp-P9y3_0om.js +10 -0
  198. package/dist/{useRegisterError-UVP98oC5.js → useRegisterError-DGMdKFc9.js} +1544 -1538
  199. package/dist/useRegisterError-DVG0sgLq.js +8918 -0
  200. package/dist/{verify-9NPblyAz.js → verify-BHTa1Niv.js} +1 -1
  201. package/dist/verify-DXzijLDZ.js +12 -0
  202. package/dist/{verify-filled-BNVhfPkW.js → verify-filled-CqobBYuI.js} +1 -1
  203. package/dist/verify-filled-DnKqj8X5.js +12 -0
  204. package/dist/{w3m-modal-BoPsPieM.js → w3m-modal-B7akV0Kp.js} +2 -2
  205. package/dist/w3m-modal-Cc1j8j_E.js +1471 -0
  206. package/dist/{wallet-DTIql0UA.js → wallet-ObJy7yZR.js} +1 -1
  207. package/dist/{wallet-placeholder-DXx_YU8N.js → wallet-placeholder-BxVrKpEz.js} +1 -1
  208. package/dist/wallet-placeholder-DEsjd5Nv.js +18 -0
  209. package/dist/wallet-zL6TDKIa.js +12 -0
  210. package/dist/{walletconnect-9eJmse3N.js → walletconnect-CYJbrPQQ.js} +1 -1
  211. package/dist/walletconnect-CZz6e0wy.js +36 -0
  212. package/dist/{warning-circle-B3zxM-8-.js → warning-circle-DOwgDOgL.js} +1 -1
  213. package/dist/warning-circle-DsGlg2MF.js +16 -0
  214. package/dist/widget.css +1 -1
  215. package/dist/{x-EqjvjF0s.js → x-B03u0kWD.js} +1 -1
  216. package/dist/x-MwPhq03Y.js +16 -0
  217. package/package.json +2 -1
  218. package/dist/EstGas-ZNdT7ZNT.js +0 -20281
  219. package/dist/index-Ds5cL5Tm.js +0 -160
  220. package/dist/index-Wj3B2hZ5.js +0 -206
  221. package/dist/index.es-DhjmbcLt.js +0 -13234
@@ -0,0 +1,1576 @@
1
+ import { jsx as o, jsxs as h, Fragment as L } 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 c, l as rt, S as wt, a as jt, aA as _t, aB as it } from "./index-D0J1OD73.js";
3
+ import { O as pt } from "./index-BDezoD7C.js";
4
+ import ht, { useState as ot, useContext as J, useRef as mt, useEffect as G, 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 at } from "./useRegisterError-DVG0sgLq.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-3YpYU_vO.js";
9
+ import { L as me } from "./index.es-B95K0DgG.js";
10
+ import { useStargateSigningClient as Lt, useAccount as ue } from "graz";
11
+ import { l as we, S as pe, D as he } from "./down-hvB7J3FG.js";
12
+ import { u as ye, g as It } from "./getCosmosAddress-X_cfoAnv.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 Ee } from "@tanstack/react-query";
17
+ import { createClient as Ce, custom as Ne, walletActions as Ae } from "viem";
18
+ import { e as Ie } from "./ethertousd-CC_ezooz.js";
19
+ async function De(n, r = {}) {
20
+ let t;
21
+ if (r.connector) {
22
+ const { connector: l } = r;
23
+ if (n.state.status === "reconnecting" && !l.getAccounts && !l.getChainId)
24
+ throw new Zt({ connector: l });
25
+ const [f, k] = await Promise.all([
26
+ l.getAccounts().catch((E) => {
27
+ if (r.account === null)
28
+ return [];
29
+ throw E;
30
+ }),
31
+ l.getChainId()
32
+ ]);
33
+ t = {
34
+ accounts: f,
35
+ chainId: k,
36
+ connector: l
37
+ };
38
+ } else
39
+ t = n.state.connections.get(n.state.current);
40
+ if (!t)
41
+ throw new Kt();
42
+ const e = r.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 b = t.connector;
49
+ if (b.getClient)
50
+ return b.getClient({ chainId: e });
51
+ const a = Yt(r.account ?? t.accounts[0]);
52
+ if (a && (a.address = te(a.address)), r.account && !t.accounts.some((l) => l.toLowerCase() === a.address.toLowerCase()))
53
+ throw new ee({
54
+ address: a.address,
55
+ connector: b
56
+ });
57
+ const u = n.chains.find((l) => l.id === e), y = await t.connector.getProvider({ chainId: e });
58
+ return Ce({
59
+ account: a,
60
+ chain: u,
61
+ name: "Connector Client",
62
+ transport: (l) => Ne(y)({ ...l, retryCount: 0 })
63
+ });
64
+ }
65
+ async function Fe(n, r = {}) {
66
+ return (await De(n, r)).extend(Ae);
67
+ }
68
+ function Be({ field: n }) {
69
+ var b, a, u;
70
+ const r = c((y) => y.persist), { getWallet: t } = Ut({ chainData: (r == null ? void 0 : r.fromChain) || {} }), e = ((b = t(r == null ? void 0 : r.fromChain)) == null ? void 0 : b.address) || null, i = n == "from" ? e && ((a = r == null ? void 0 : r.route) == null ? void 0 : a.userWalletAddress) || "" : ((u = r == null ? void 0 : r.route) == null ? void 0 : u.recipient) || "";
71
+ return /* @__PURE__ */ o("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(L, { children: [
72
+ /* @__PURE__ */ o("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__ */ o("div", { children: /* @__PURE__ */ o(oe, { fill: "var(--tw-text-primary)" }) })
74
+ ] }) : /* @__PURE__ */ o("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: r, amount: t, field: e }) {
77
+ var a, u, y, l, f;
78
+ const i = c((k) => k.configuration), b = c((k) => k.persist);
79
+ return /* @__PURE__ */ h(
80
+ "div",
81
+ {
82
+ style: {
83
+ boxShadow: i && i.customTheme && ((u = (a = i.customTheme) == null ? void 0 : a.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 = b.statusData) == null ? void 0 : y.status) == "partial-success" || ((l = b.statusData) == null ? void 0 : l.status) == "refunded") && e == "to" ? "bw-border-text-redtext" : "bw-border-border-primary"} `,
86
+ children: [
87
+ /* @__PURE__ */ h("div", { className: `${((f = r == null ? void 0 : r.symbol) == null ? void 0 : f.length) > 6 ? "bw-text-base" : "bw-text-lg"} bw-text-center bw-font-medium bw-text-text-primary`, children: [
88
+ /* @__PURE__ */ o("span", { children: t ? /* @__PURE__ */ o(pt, { value: t == null ? void 0 : t.toString(), decimal: 8 }) : 0 }),
89
+ " ",
90
+ /* @__PURE__ */ o("span", { children: (r == null ? void 0 : r.symbol) || "" }),
91
+ /* @__PURE__ */ o("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: `on ${n == null ? void 0 : n.name}` })
92
+ ] }),
93
+ /* @__PURE__ */ o("div", { className: "bw-absolute -bw-bottom-4", children: /* @__PURE__ */ o(Be, { field: e }) })
94
+ ]
95
+ }
96
+ );
97
+ }
98
+ function sn({ handleBack: n }) {
99
+ return /* @__PURE__ */ o("div", { className: "bw-flex bw-z-20 bw-relative bw-justify-center bw-mb-5", children: /* @__PURE__ */ o(
100
+ "button",
101
+ {
102
+ onClick: () => {
103
+ n();
104
+ },
105
+ className: "bw-absolute bw-left-0 bw-top-[25%]",
106
+ children: /* @__PURE__ */ o(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__ */ o("span", {}),
116
+ /* @__PURE__ */ o("span", {}),
117
+ /* @__PURE__ */ o("span", {})
118
+ ] });
119
+ }
120
+ const lt = ht.createContext(!1);
121
+ function Pe({ children: n }) {
122
+ return /* @__PURE__ */ o(
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__ */ o("path", { d: "M6.34375 4.49902H11.4231", stroke: n, "stroke-width": "2", "stroke-linecap": "round" }),
151
+ /* @__PURE__ */ o("path", { d: "M4.81007 1C-0.269325 1 -0.270722 8 4.81007 8", stroke: n, "stroke-width": "2", "stroke-linecap": "round" }),
152
+ /* @__PURE__ */ o("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: r }) {
156
+ const [t, e] = ot(!1);
157
+ return /* @__PURE__ */ o(
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: r
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__ */ o("rect", { x: "0.5", y: "3.5", width: "7", height: "9", rx: "1.5", stroke: n }),
192
+ /* @__PURE__ */ o("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", st = {
209
+ gradienttext: Ze,
210
+ gradientbutton: Ke
211
+ };
212
+ function Xe({ handleBack: n }) {
213
+ var d, g, N, S, m, p, A;
214
+ const r = c((I) => I.gradient), t = c((I) => I.persist), e = c((I) => I.configuration), i = t == null ? void 0 : t.stepData.stepType, a = ((t == null ? void 0 : t.txnHashObj) || [])[(d = t == null ? void 0 : t.stepData) == null ? void 0 : d.stepId] || {}, u = i === "bridge" ? (a == null ? void 0 : a.destTxnHash) || (a == null ? void 0 : a.srcTxnHash) : (a == null ? void 0 : a.srcTxnHash) || "", y = (g = t == null ? void 0 : t.historyData) == null ? void 0 : g.finalTxnHash, l = u || y || "", f = i === "bridge" ? (a == null ? void 0 : a.destTxnUrl) || (a == null ? void 0 : a.srcTxnUrl) : (a == null ? void 0 : a.srcTxnUrl) || "", k = (N = t == null ? void 0 : t.historyData) == null ? void 0 : N.finalTxnUrl, E = f || k || "", B = t.toCoin || {}, v = t.route || {}, U = t.toChain || {};
215
+ let s = ((S = t == null ? void 0 : t.statusData) == null ? void 0 : S.outputAmountDisplay) || 0, x = (Number(s) ? s : Number(s)) || (v == null ? void 0 : v.outputAmountDisplay) || 0;
216
+ return /* @__PURE__ */ 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 && ((p = (m = e.customTheme) == null ? void 0 : m.shadow) == null ? void 0 : p.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__ */ o(
227
+ "p",
228
+ {
229
+ style: { ...e.gradientStyle, backgroundClip: "text" },
230
+ className: `bw-text-lg ${r || `${(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__ */ o(pt, { value: x, decimal: 10 }),
236
+ " ",
237
+ B.symbol
238
+ ] }),
239
+ /* @__PURE__ */ o("p", { className: "bw-text-sm bw-mb-2 bw-font-normal bw-text-text-secondary", children: `Received on ${U.name || U.blockchain} chain` }),
240
+ /* @__PURE__ */ h("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
241
+ /* @__PURE__ */ o("p", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: `Tx id: ${l ? `${l.substring(0, 5)}...${l.substring(
242
+ l.length - 5,
243
+ l.length
244
+ )}` : ""}` }),
245
+ /* @__PURE__ */ o("div", { className: "bw-cursor-pointer", children: /* @__PURE__ */ o(kt, { txnHash: l, children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(gt, { fill: "var(--tw-text-secondary)" }) }) }) }),
246
+ /* @__PURE__ */ o("a", { href: E, target: "_blank", children: /* @__PURE__ */ o("div", { className: "bw-cursor-pointer", children: /* @__PURE__ */ o(be, { fill: "var(--tw-text-secondary)" }) }) })
247
+ ] })
248
+ ] }),
249
+ /* @__PURE__ */ o("div", { className: " bw-flex bw-justify-center bw-items-center bw-w-[105px] bw-h-[105px]", children: /* @__PURE__ */ o(me, { animationData: Je, loop: !0 }) })
250
+ ]
251
+ }
252
+ ),
253
+ /* @__PURE__ */ o(
254
+ "button",
255
+ {
256
+ onClick: n,
257
+ style: { ...e == null ? void 0 : e.gradientStyle },
258
+ className: `bw-w-full ${st.gradientbutton} bw-rounded-sm bw-h-[50px] bw-p-[3px] bw-mt-3 bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-50 bw-text-2xl bw-font-bold bw-text-text-primary`,
259
+ children: /* @__PURE__ */ o(
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: r, txnProcessType: t, txnTextObj: e }) {
273
+ var k, E, B;
274
+ const i = c((v) => v.persist), b = c((v) => v.configuration);
275
+ c((v) => v.cosmosChainIds);
276
+ const a = c((v) => v.fromChain);
277
+ let u = n ? {} : { ...b == null ? void 0 : b.gradientStyle };
278
+ const { data: y, isLoading: l } = Lt({
279
+ chainId: [a.chainId],
280
+ multiChain: !0
281
+ });
282
+ let f = ((k = i == null ? void 0 : i.fromChain) == null ? void 0 : k.networkType) == "cosmos" ? l : !1;
283
+ return !rt.isEmpty(i == null ? void 0 : i.stepData) && !f ? /* @__PURE__ */ o(
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]" : st.gradientbutton + " bw-p-[3px]"}`,
288
+ onClick: r,
289
+ style: {
290
+ ...u,
291
+ boxShadow: b && b.customTheme && ((B = (E = b.customTheme) == null ? void 0 : E.shadow) == null ? void 0 : B.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__ */ o("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ o(ie, { size: 22, thickness: 5, color: "inherit" }) }),
295
+ /* @__PURE__ */ o(
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__ */ o(wt, { className: "bw-bg-background-secondary bw-rounded-sm bw-w-full", animation: "wave", height: 50 });
305
+ }
306
+ function Wt({ errorText: n, heading: r = "Transaction Failed" }) {
307
+ const t = c((e) => e.persist);
308
+ return /* @__PURE__ */ h(L, { children: [
309
+ /* @__PURE__ */ o("p", { className: "bw-text-lg bw-font-medium bw-text-text-primary bw-mb-1 bw-text-center", children: r }),
310
+ /* @__PURE__ */ h("div", { className: "bw-w-full bw-mb-2 ", children: [
311
+ /* @__PURE__ */ o("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__ */ o("p", { className: "bw-text-sm bw-font-normal bw-text-text-secondary", children: t == null ? void 0 : t.routeId }),
314
+ /* @__PURE__ */ o(kt, { txnHash: t == null ? void 0 : t.routeId, children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(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__ */ o("p", { className: "bw-text-sm bw-font-bold bw-text-text-primary ", children: "Error" }) : /* @__PURE__ */ o(L, {}),
319
+ /* @__PURE__ */ o("div", { className: "bw-text-left bw-max-h-[60px] bw-overflow-auto ", children: /* @__PURE__ */ o("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: r, txnTextObj: t, handleExeTxn: e, handleDisable: i }) {
324
+ var u, y, l, f;
325
+ const b = c((k) => k.configuration), a = c((k) => k.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__ */ o(Wt, { errorText: r }),
328
+ a.isHistory ? /* @__PURE__ */ o(L, {}) : /* @__PURE__ */ h("div", { className: "bw-w-full bw-flex bw-items-center bw-gap-x-2", children: [
329
+ /* @__PURE__ */ o(
330
+ "button",
331
+ {
332
+ style: {
333
+ boxShadow: b && b.customTheme && ((y = (u = b.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__ */ o(
340
+ "p",
341
+ {
342
+ style: {
343
+ ...b.gradientStyle,
344
+ backgroundClip: "text"
345
+ },
346
+ className: ` ${st.gradienttext} bw-text-2xl bw-font-normal`,
347
+ children: "Home"
348
+ }
349
+ )
350
+ }
351
+ ),
352
+ /* @__PURE__ */ o(
353
+ "button",
354
+ {
355
+ style: {
356
+ ...b == null ? void 0 : b.gradientStyle,
357
+ boxShadow: b && b.customTheme && ((f = (l = b.customTheme) == null ? void 0 : l.shadow) == null ? void 0 : f.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%] ${st.gradientbutton} bw-rounded-sm bw-p-[3px] `,
360
+ onClick: () => {
361
+ e(), i(!0);
362
+ },
363
+ children: /* @__PURE__ */ o("div", { className: " bw-bg-background-container bw-w-full bw-h-full bw-flex bw-items-center bw-justify-center", children: /* @__PURE__ */ o(
364
+ "p",
365
+ {
366
+ style: {
367
+ ...b.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: r, errorText: t, allSteps: e }) {
380
+ var b, a, u;
381
+ const i = c((y) => y.persist);
382
+ return /* @__PURE__ */ h(L, { children: [
383
+ /* @__PURE__ */ o("p", { className: "bw-text-lg bw-font-medium bw-mb-1 bw-text-text-primary", children: i != null && i.stepStatus && (i != null && i.stepStatus[e == null ? void 0 : e.currentStep]) ? ((a = n == null ? void 0 : n.status) == null ? void 0 : a[(b = i == null ? void 0 : i.stepStatus[e == null ? void 0 : e.currentStep]) == null ? void 0 : b.status]) || (n == null ? void 0 : n[(u = i == null ? void 0 : i.stepStatus[e == null ? void 0 : e.currentStep]) == null ? void 0 : u.type]) : "" }),
384
+ /* @__PURE__ */ o("p", { className: "bw-text-sm bw-text-center bw-font-medium bw-mb-4 bw-text-text-secondary", children: n == null ? void 0 : n[r == "process" ? "processingDescription" : r == "loading" ? "loadingDescription" : "preDescription"] }),
385
+ /* @__PURE__ */ o("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: r }) {
389
+ var u, y, l, f;
390
+ const t = c((k) => k.persist), e = (t == null ? void 0 : t.txnHashObj) || [], i = (y = (u = e[r.stepId]) == null ? void 0 : u.destTxnUrl) != null && y.length ? (l = e[r.stepId]) == null ? void 0 : l.destTxnUrl : (f = e[r.stepId]) == null ? void 0 : f.srcTxnUrl, b = r.destTxnUrl || r.srcTxnUrl, a = i || b;
391
+ return a != null && a.length ? /* @__PURE__ */ o("a", { target: "_blank", className: "bw-relative bw-z-50 bw-mt-1", href: a, children: /* @__PURE__ */ o(Pe, { children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(je, { fill: "var(--tw-text-primary)" }) }) }) }) : /* @__PURE__ */ o(L, {});
392
+ }
393
+ function r0({ item: n, i: r }) {
394
+ var b, a, u, y, l, f, k, E, B, v, U;
395
+ const { isErrorMessage: t, handleErrorMessage: e } = J(lt), i = c((s) => s.persist);
396
+ return i == null || i.allSteps, /* @__PURE__ */ h("div", { children: [
397
+ /* @__PURE__ */ o("h1", { className: ` ${((a = (b = n == null ? void 0 : n.texts) == null ? void 0 : b.heading) == null ? void 0 : a.length) > 34 ? "bw-text-base" : "bw-text-lg"} ${((u = i == null ? void 0 : i.allSteps) == null ? void 0 : u.currentStep) == r ? "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[r]) ? /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o("p", { className: "bw-text-sm bw-text-text-secondary bw-ml-3 bw-mt-1", children: t && ((l = i == null ? void 0 : i.stepStatus[r]) == null ? void 0 : l.status) !== "failed" && r == ((f = i == null ? void 0 : i.allSteps) == null ? void 0 : f.currentStep) ? "Failed" : ((B = (k = n == null ? void 0 : n.texts) == null ? void 0 : k.status) == null ? void 0 : B[(E = i == null ? void 0 : i.stepStatus[r]) == null ? void 0 : E.status]) || ((U = n == null ? void 0 : n.texts) == null ? void 0 : U[(v = i == null ? void 0 : i.stepStatus[r]) == null ? void 0 : v.type]) }) }) : r == 0 ? /* @__PURE__ */ o("div", { className: "bw-h-[20px] bw-mt-[4px] bw-w-full", children: /* @__PURE__ */ o(wt, { className: "bw-bg-background-secondary bw-rounded-lg bw-w-full", animation: "wave" }) }) : /* @__PURE__ */ o(L, {})
399
+ ] });
400
+ }
401
+ function Ft({ spinnerColor: n, stopColor: r }) {
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__ */ o(
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__ */ o(
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__ */ o(
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__ */ o("circle", { cx: "8.68848", cy: "8.7041", r: "7.48535", stroke: "#8A8F8E" }),
436
+ /* @__PURE__ */ o("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__ */ o("stop", { "stop-color": n || "#2CFFE4" }),
447
+ /* @__PURE__ */ o("stop", { offset: "1", "stop-color": r || "#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), r = c((t) => t.configuration);
471
+ return G(() => {
472
+ var e, i;
473
+ const t = ae.loadAnimation({
474
+ container: n.current,
475
+ animationData: we.flatten(
476
+ (e = r == null ? void 0 : r.gradientStyle) != null && e.spinnerColor ? (i = r == null ? void 0 : r.gradientStyle) == null ? void 0 : i.spinnerColor : "#2CFFE4",
477
+ p0
478
+ )
479
+ });
480
+ return () => t.destroy();
481
+ }, []), /* @__PURE__ */ o("div", { style: { width: "100%", height: "100%" }, ref: n });
482
+ }
483
+ function y0({ allSteps: n, disableButton: r, i: t, arr: e }) {
484
+ var f, k, E, B;
485
+ const i = c((v) => v.configuration), { txnupdate: b } = Gt, { isErrorMessage: a } = J(lt), u = c((v) => v.persist), y = u == null ? void 0 : u.historyData, l = (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__ */ o("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 ? r ? /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o("div", { className: " bw-w-[18px] bw-h-[18px] ", children: /* @__PURE__ */ o(pe, {}) }) }) : a ? (
488
+ // <CloseIcon width={18} height={18} fill={"var(--tw-text-primary)"} />
489
+ /* @__PURE__ */ o("img", { src: b, width: 27, height: 27, alt: "img" })
490
+ ) : l == "success" ? /* @__PURE__ */ o(
491
+ Ft,
492
+ {
493
+ spinnerColor: (f = i == null ? void 0 : i.gradientStyle) == null ? void 0 : f.spinnerColor,
494
+ stopColor: (k = i == null ? void 0 : i.gradientStyle) == null ? void 0 : k.stopColor
495
+ }
496
+ ) : l == "failed" ? /* @__PURE__ */ o("img", { src: b, width: 27, height: 27, alt: "img" }) : /* @__PURE__ */ o("div", { className: "bw-w-[18px] bw-h-[18px]", children: /* @__PURE__ */ o(h0, {}) }) : /* @__PURE__ */ o(
497
+ Ft,
498
+ {
499
+ spinnerColor: (E = i == null ? void 0 : i.gradientStyle) == null ? void 0 : E.spinnerColor,
500
+ stopColor: (B = i == null ? void 0 : i.gradientStyle) == null ? void 0 : B.stopColor
501
+ }
502
+ ),
503
+ t !== e.length - 1 ? /* @__PURE__ */ o(
504
+ "div",
505
+ {
506
+ className: "bw-h-[30px] bw-absolute bw-w-[1px] bw-bottom-[-200%] bw-bg-background-secondary"
507
+ }
508
+ ) : /* @__PURE__ */ o(L, {})
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", q = {
512
+ container: f0,
513
+ dash: k0,
514
+ uno: g0,
515
+ dos: S0,
516
+ tres: T0,
517
+ cuatro: v0
518
+ };
519
+ function E0() {
520
+ return /* @__PURE__ */ h("div", { className: q.container, children: [
521
+ /* @__PURE__ */ o("div", { className: `${q.dash} ${q.uno}` }),
522
+ /* @__PURE__ */ o("div", { className: `${q.dash} ${q.dos}` }),
523
+ /* @__PURE__ */ o("div", { className: `${q.dash} ${q.tres}` }),
524
+ /* @__PURE__ */ o("div", { className: `${q.dash} ${q.cuatro}` })
525
+ ] });
526
+ }
527
+ function C0({ handleUpdate: n }) {
528
+ var F, M, V, C, j, D, H, W, _, R, Q, z, Z, K, X, Y, tt, ct, xt, dt;
529
+ const r = c((P) => P.configuration), t = c((P) => P.persist), { address: e } = ft(), { address: i } = jt(), { primaryWallet: b } = Ot(), { getWallet: a } = Ut({}), u = c((P) => P.setPersist), y = c((P) => P.customWallet), l = c((P) => P.customFee), f = c((P) => P.broadCastMode), k = c((P) => P.evmGas), E = c((P) => P.evmSpeed), B = c((P) => P.slippage), v = c((P) => P.option), U = c((P) => P.gasless), { data: s } = ue(), w = ["routesTxn", e, t == null ? void 0 : t.fromChain, t == null ? void 0 : t.toChain, t == null ? void 0 : t.fromCoin, t == null ? void 0 : t.toCoin, (t == null ? void 0 : t.amount) || ((F = t == null ? void 0 : t.route) == null ? void 0 : F.inputAmountDisplay) || 0, b == null ? void 0 : b.address, i, y, s == null ? void 0 : s.bech32Address, l, k, E, B, f, v.value, "", U];
530
+ let x = (f === "Priority Fee" || f === "Both") && (l != null && l.length) ? l : v.value, d = (f === "Jito Tip" || f === "Both") && (l != null && l.length) ? l : v.value, g = k != null && k.length ? k : E.value;
531
+ const N = ((M = t == null ? void 0 : t.fromChain) == null ? void 0 : M.networkType) === "sol" ? f === "Priority Fee" ? `&solanaPriorityFee=${x}` : f === "Jito Tip" ? `&solanaJitoTip=${d}` : `&solanaPriorityFee=${x}&solanaJitoTip=${d}` : ((V = t == null ? void 0 : t.fromChain) == null ? void 0 : V.networkType) === "evm" ? `&evmPriorityFee=${g}` : "", { routes: S, routesData: m } = ye({
532
+ enabled: !0,
533
+ dependency: w,
534
+ payload: [
535
+ ((C = t == null ? void 0 : t.fromChain) == null ? void 0 : C.networkType) === "cosmos" ? It(s == null ? void 0 : s.bech32Address, (D = (j = t == null ? void 0 : t.fromChain) == null ? void 0 : j.chainInfo) == null ? void 0 : D.bech32Config.bech32PrefixAccAddr) : ((H = t == null ? void 0 : t.route) == null ? void 0 : H.userWalletAddress) || ((W = a(t == null ? void 0 : t.fromChain)) == null ? void 0 : W.address) || "",
536
+ 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) || ((_ = t == null ? void 0 : t.route) == null ? void 0 : _.inputAmountDisplay) || 0,
541
+ Number(B) * 100,
542
+ (y == null ? void 0 : y.length) > 30 ? ((R = t == null ? void 0 : t.route) == null ? void 0 : R.recipient) || ((Q = a({})) == null ? void 0 : Q.address) || "" : ((z = t == null ? void 0 : t.toChain) == null ? void 0 : z.networkType) === "cosmos" ? It(s == null ? void 0 : s.bech32Address, (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 = a(t == null ? void 0 : t.toChain)) == null ? void 0 : Y.address) || "",
543
+ N,
544
+ 1,
545
+ U
546
+ ]
547
+ });
548
+ let p = (m == null ? void 0 : m.outputAmountDisplay) || "";
549
+ async function A() {
550
+ if (t.isQuoteTimer === !1) {
551
+ let P = await S.refetch();
552
+ P.status === "success" && P.data.status === "success" && u({
553
+ ...c.getState().persist,
554
+ isQuoteTimer: !0
555
+ });
556
+ }
557
+ }
558
+ G(() => {
559
+ A();
560
+ }, [t.isQuoteTimer]);
561
+ function I() {
562
+ n(), u({
563
+ stepData: {},
564
+ quote: "enable",
565
+ isTimerStarted: !1,
566
+ routeId: (m == null ? void 0 : m.routeId) || "",
567
+ route: m,
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__ */ o("p", { className: "bw-text-text-primary bw-text-lg bw-font-semibold", children: "Quote Expired!" }),
582
+ /* @__PURE__ */ o("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
+ S.isLoading || S.isFetching ? /* @__PURE__ */ o(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__ */ o(pt, { value: p == null ? void 0 : p.toString(), decimal: 12 }),
587
+ " ",
588
+ ((tt = m == null ? void 0 : m.to) == null ? void 0 : tt.symbol) || ""
589
+ ] }),
590
+ S.isLoading || S.isFetching ? /* @__PURE__ */ o(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__ */ o(pt, { value: le(((m == null ? void 0 : m.outputAmountDisplay) || "") * ((ct = m == null ? void 0 : m.to) == null ? void 0 : ct.lastPrice) || 0, 10), decimal: 12 })
593
+ ] })
594
+ ] }),
595
+ /* @__PURE__ */ o(
596
+ "button",
597
+ {
598
+ disabled: S.isFetching || S.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 ${st.gradientbutton + " bw-p-[3px]"}`,
600
+ onClick: I,
601
+ style: {
602
+ ...r == null ? void 0 : r.gradientStyle,
603
+ boxShadow: r && r.customTheme && ((dt = (xt = r.customTheme) == null ? void 0 : xt.shadow) == null ? void 0 : dt.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
604
+ },
605
+ children: /* @__PURE__ */ o("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 f, k, E, B, v, U, s, w, x, d;
613
+ const { txnupdate: r } = Gt, t = c((g) => g.persist), e = c((g) => g.configuration), i = t == null ? void 0 : t.stepData.stepType, a = ((t == null ? void 0 : t.txnHashObj) || [])[(f = t == null ? void 0 : t.stepData) == null ? void 0 : f.stepId] || {}, u = i === "bridge" ? (a == null ? void 0 : a.destTxnHash) || (a == null ? void 0 : a.srcTxnHash) : (a == null ? void 0 : a.srcTxnHash) || "", y = (k = t == null ? void 0 : t.historyData) == null ? void 0 : k.finalTxnHash, l = u || y || "";
614
+ return i === "bridge" ? a != null && a.destTxnUrl || (a == null || a.srcTxnUrl) : a != null && a.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__ */ o("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(((B = t == null ? void 0 : t.statusData) == null ? void 0 : B.outputAmountDisplay) || "", 10),
620
+ " ",
621
+ ((U = (v = t == null ? void 0 : t.statusData) == null ? void 0 : v.outputToken) == null ? void 0 : U.symbol) || "",
622
+ " ",
623
+ /* @__PURE__ */ o("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:${l ? `${l.substring(0, 5)}...${l.substring(
633
+ l.length - 5,
634
+ l.length
635
+ )}` : ""}`,
636
+ /* @__PURE__ */ o("div", { className: "bw-cursor-pointer ", children: /* @__PURE__ */ o(kt, { txnHash: l, children: /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(gt, { fill: "var(--tw-text-secondary)" }) }) }) })
637
+ ] })
638
+ ] }),
639
+ /* @__PURE__ */ o("div", { className: "bw-w-[40%] bw-flex bw-items-center bw-justify-center", children: /* @__PURE__ */ o("img", { src: r, 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
+ (d = (x = t == null ? void 0 : t.statusData) == null ? void 0 : x.outputToken) == null ? void 0 : d.blockchain
651
+ ] })
652
+ ] }),
653
+ /* @__PURE__ */ o(
654
+ "button",
655
+ {
656
+ onClick: n,
657
+ style: { ...e == null ? void 0 : e.gradientStyle },
658
+ className: `bw-w-full ${st.gradientbutton} bw-rounded-sm bw-h-[50px] bw-p-[3px] bw-mt-3 bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-50 bw-text-2xl bw-font-bold bw-text-text-primary`,
659
+ children: /* @__PURE__ */ o(
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: r }) {
672
+ const t = c((e) => e.configuration);
673
+ return /* @__PURE__ */ h(L, { children: [
674
+ /* @__PURE__ */ o(Wt, { errorText: r, heading: "Transaction Expired" }),
675
+ /* @__PURE__ */ o("button", { onClick: n, style: { ...t == null ? void 0 : t.gradientStyle }, className: `bw-w-full ${st.gradientbutton} bw-rounded-sm bw-h-[50px] bw-p-[3px] bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-50 bw-text-2xl bw-font-bold bw-text-text-primary`, children: /* @__PURE__ */ o("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: r }) {
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__ */ o(
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: r
698
+ }
699
+ ),
700
+ /* @__PURE__ */ o(
701
+ "rect",
702
+ {
703
+ x: "15.5742",
704
+ y: "32.5957",
705
+ width: "42.7954",
706
+ height: "14.5366",
707
+ rx: "4",
708
+ fill: r
709
+ }
710
+ ),
711
+ /* @__PURE__ */ o(
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: r
720
+ }
721
+ ),
722
+ /* @__PURE__ */ o(
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: r
732
+ }
733
+ ),
734
+ /* @__PURE__ */ h("g", { filter: "url(#filter0_d_8010_16559)", children: [
735
+ /* @__PURE__ */ o(
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: r
741
+ }
742
+ ),
743
+ /* @__PURE__ */ o(
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: r
748
+ }
749
+ )
750
+ ] }),
751
+ /* @__PURE__ */ o("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__ */ o("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
763
+ /* @__PURE__ */ o(
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__ */ o("feOffset", {}),
773
+ /* @__PURE__ */ o("feGaussianBlur", { stdDeviation: "5" }),
774
+ /* @__PURE__ */ o("feComposite", { in2: "hardAlpha", operator: "out" }),
775
+ /* @__PURE__ */ o(
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__ */ o(
783
+ "feBlend",
784
+ {
785
+ mode: "normal",
786
+ in2: "BackgroundImageFix",
787
+ result: "effect1_dropShadow_8010_16559"
788
+ }
789
+ ),
790
+ /* @__PURE__ */ o(
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__ */ o(A0, { fill: "var(--tw-background-networkcard)", stroke: "var(--tw-border-primary)" }),
809
+ /* @__PURE__ */ o("p", { className: "bw-text-2xl bw-mt-3 bw-text-text-primary", children: n }),
810
+ /* @__PURE__ */ o("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 B, v, U;
815
+ const r = c((s) => s.setPersist), t = c((s) => s.persist), e = _t(), { setErrorMessage: i } = J(lt), b = mt(!1), a = t.isHistory, u = !rt.isEmpty((v = (B = c.getState()) == null ? void 0 : B.persist) == null ? void 0 : v.historyData);
816
+ G(() => (b.current = !0, () => {
817
+ b.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 x, d, g, N, S, m, p;
827
+ b.current && (s.status == "error" ? i(s) : i({ error: "" }), e.emit(it.TransactionData, {
828
+ ...s
829
+ }), f(s), r({
830
+ ...(x = c.getState()) == null ? void 0 : x.persist,
831
+ loading: !1,
832
+ txnEvm: (g = (d = s == null ? void 0 : s.data) == null ? void 0 : d.txnData) == null ? void 0 : g.txnEvm,
833
+ nextTx: s,
834
+ hash: null,
835
+ txnType: ((S = (N = s == null ? void 0 : s.data) == null ? void 0 : N.txnData) == null ? void 0 : S.txnType) || null,
836
+ gasless: (p = (m = s == null ? void 0 : s.data) == null ? void 0 : m.txnData) == null ? void 0 : p.gasless
837
+ }));
838
+ },
839
+ onError: (s) => {
840
+ var x;
841
+ let w = s.details || s.message || "";
842
+ i({ error: w }), e.emit(it.TransactionData, {
843
+ error: w,
844
+ routeId: (t == null ? void 0 : t.routeId) || "",
845
+ stepId: ((x = t == null ? void 0 : t.stepData) == null ? void 0 : x.stepId) || ""
846
+ });
847
+ }
848
+ });
849
+ async function l(s, w, x) {
850
+ r({
851
+ ...c.getState().persist,
852
+ loading: !0
853
+ });
854
+ try {
855
+ await y.mutateAsync({
856
+ id: s == null ? void 0 : s.stepId,
857
+ routeId: w
858
+ }), r({
859
+ ...c.getState().persist,
860
+ stepData: s
861
+ });
862
+ } catch {
863
+ r({
864
+ ...c.getState().persist,
865
+ loading: !1
866
+ });
867
+ }
868
+ }
869
+ function f(s) {
870
+ var w, x, d, g, N, S, m;
871
+ if (((w = s == null ? void 0 : s.data) == null ? void 0 : w.skipTxn) === !0) {
872
+ let p = ((g = (d = (x = E == null ? void 0 : E.data) == null ? void 0 : x.data) == null ? void 0 : d.steps) == null ? void 0 : g[t.allSteps.currentStep + 1]) || ((S = (N = t == null ? void 0 : t.allSteps) == null ? void 0 : N.steps) == null ? void 0 : S[t.allSteps.currentStep + 1]) || {};
873
+ !rt.isEmpty(p) && ((m = s == null ? void 0 : s.data) != null && m.routeId) && setTimeout(() => {
874
+ var A;
875
+ k(), l(p, (A = s == null ? void 0 : s.data) == null ? void 0 : A.routeId);
876
+ }, 0);
877
+ } else
878
+ return;
879
+ }
880
+ function k() {
881
+ var s;
882
+ r({
883
+ ...c.getState().persist,
884
+ loading: !0,
885
+ allSteps: {
886
+ ...c.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 = Ee({
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: !!((U = t.routeId) != null && U.length && !t.nextTx && !a)
899
+ });
900
+ return G(() => {
901
+ var s, w, x, d, g, N, S;
902
+ if (E.data && !(t != null && t.nextTx) && n) {
903
+ let m = E.data;
904
+ m.status == "error" ? (i(m), e.emit(it.TransactionSteps, {
905
+ ...m
906
+ })) : (e.emit(it.TransactionSteps, {
907
+ routeId: ((s = m == null ? void 0 : m.data) == null ? void 0 : s.routeId) || "",
908
+ steps: ((w = m == null ? void 0 : m.data) == null ? void 0 : w.steps) || [],
909
+ numOfSteps: ((d = (x = m == null ? void 0 : m.data) == null ? void 0 : x.steps) == null ? void 0 : d.length) || 0
910
+ }), i({ error: "" })), typeof (m == null ? void 0 : m.data) < "u" && !u && (l((g = m == null ? void 0 : m.data) == null ? void 0 : g.steps[0], (N = m == null ? void 0 : m.data) == null ? void 0 : N.routeId), setTimeout(() => {
911
+ var p, A, I;
912
+ r({
913
+ ...c.getState().persist,
914
+ stepData: (p = m == null ? void 0 : m.data) == null ? void 0 : p.steps[0]
915
+ }), r({
916
+ ...c.getState().persist,
917
+ allSteps: {
918
+ steps: ((A = m == null ? void 0 : m.data) == null ? void 0 : A.steps) || ((I = t == null ? void 0 : t.allSteps) == null ? void 0 : I.steps) || [],
919
+ currentStep: 0,
920
+ type: "preText"
921
+ }
922
+ });
923
+ }, 1200), ((S = m == null ? void 0 : m.data) == null ? void 0 : S.status) == "error" && i({ ...m.data }));
924
+ }
925
+ }, [E.data, t == null ? void 0 : t.nextTx, u, n]), G(() => {
926
+ if (E.error) {
927
+ let s = E.error, w = s.details || s.message || "";
928
+ e.emit(it.TransactionSteps, {
929
+ error: w,
930
+ routeId: (t == null ? void 0 : t.routeId) || ""
931
+ }), i({ error: w });
932
+ }
933
+ }, [E.error]), G(() => {
934
+ var s;
935
+ t.routeId && r({ ...(s = c.getState()) == null ? void 0 : s.persist, isSuccess: !0 });
936
+ }, [t.routeId]), { nextTx: y, callNextTx: l, handleSkipTxn: f, setNextStep: k, txnBody: E };
937
+ }
938
+ function Qt() {
939
+ var v, U;
940
+ const n = c((s) => s.persist), r = c((s) => s.setPersist), { registerError: t } = ce(), { handleErrorMessage: e, setErrorMessage: i } = J(lt), b = (n == null ? void 0 : n.showAcceptQuote) && !n.hash && ((v = n == null ? void 0 : n.allSteps) == null ? void 0 : v.currentStep) == 0 && ((U = n == null ? void 0 : n.nextTx) == null ? void 0 : U.status) === "success", { txnBody: a, callNextTx: u } = St();
941
+ function y(s) {
942
+ var x, d, g, N, S, m, p, A, I;
943
+ let w = [...((d = (x = c.getState()) == null ? void 0 : x.persist) == null ? void 0 : d.stepStatus) || []];
944
+ return w.length ? w[(g = n.allSteps) == null ? void 0 : g.currentStep] = {
945
+ ...w[(N = n.allSteps) == null ? void 0 : N.currentStep],
946
+ type: (S = n.allSteps) == null ? void 0 : S.type
947
+ } : w[0] = {
948
+ ...w[(m = n.allSteps) == null ? void 0 : m.currentStep],
949
+ type: (p = n.allSteps) == null ? void 0 : p.type
950
+ }, s && (w[(A = n.allSteps) == null ? void 0 : A.currentStep] = {
951
+ ...w[(I = n.allSteps) == null ? void 0 : I.currentStep],
952
+ ...s
953
+ }), w;
954
+ }
955
+ function l() {
956
+ r({
957
+ ...c.getState().persist,
958
+ stepData: {},
959
+ allSteps: {
960
+ steps: null,
961
+ currentStep: 0
962
+ }
963
+ });
964
+ }
965
+ function f() {
966
+ i({ error: "" });
967
+ }
968
+ function k(s, w) {
969
+ var x, d;
970
+ t({
971
+ module: s,
972
+ routeId: (n == null ? void 0 : n.routeId) || "",
973
+ stepId: ((x = n == null ? void 0 : n.stepData) == null ? void 0 : x.stepId) || "",
974
+ error: w.error,
975
+ userWalletAddress: (d = n == null ? void 0 : n.route) == null ? void 0 : d.userWalletAddress
976
+ });
977
+ }
978
+ function E(s) {
979
+ var d, g, N, S, m, p, A, I, F, M, V, C, j, D, H, W, _, R;
980
+ let x = { ...((N = (g = (d = c) == null ? void 0 : d.getState()) == null ? void 0 : g.persist) == null ? void 0 : N.txnHashObj) || {} };
981
+ rt.isEmpty(x[(S = s == null ? void 0 : s.data) == null ? void 0 : S.stepId]) ? x[(V = s == null ? void 0 : s.data) == null ? void 0 : V.stepId] = {
982
+ srcTxnUrl: ((C = s == null ? void 0 : s.data) == null ? void 0 : C.srcTxnUrl) || "",
983
+ stepId: ((j = s == null ? void 0 : s.data) == null ? void 0 : j.stepId) || "",
984
+ srcTxnHash: ((D = s == null ? void 0 : s.data) == null ? void 0 : D.srcTxnHash) || "",
985
+ destTxnUrl: ((H = s == null ? void 0 : s.data) == null ? void 0 : H.destTxnUrl) || "",
986
+ destTxnHash: ((W = s == null ? void 0 : s.data) == null ? void 0 : W.destTxnHash) || ""
987
+ } : x[(m = s == null ? void 0 : s.data) == null ? void 0 : m.stepId] = {
988
+ ...x[(p = s == null ? void 0 : s.data) == null ? void 0 : p.stepId],
989
+ destTxnHash: ((A = s == null ? void 0 : s.data) == null ? void 0 : A.destTxnHash) || (s == null ? void 0 : s.destTxnHash) || "",
990
+ destTxnUrl: ((I = s == null ? void 0 : s.data) == null ? void 0 : I.destTxnUrl) || (s == null ? void 0 : s.destTxnUrl) || "",
991
+ srcTxnUrl: ((F = s == null ? void 0 : s.data) == null ? void 0 : F.srcTxnUrl) || (s == null ? void 0 : s.srcTxnUrl) || "",
992
+ srcTxnHash: ((M = s == null ? void 0 : s.data) == null ? void 0 : M.srcTxnHash) || (s == null ? void 0 : s.srcTxnHash) || ""
993
+ }, r({
994
+ ...(R = (_ = c) == null ? void 0 : _.getState()) == null ? void 0 : R.persist,
995
+ txnHashObj: x
996
+ });
997
+ }
998
+ function B() {
999
+ var s, w, x, d;
1000
+ r({
1001
+ ...(s = c.getState()) == null ? void 0 : s.persist,
1002
+ stepStatus: y({ status: "loadingText" }),
1003
+ isTryAgain: !0,
1004
+ loading: !0,
1005
+ hash: null
1006
+ }), e(!1), f(), u(((w = n == null ? void 0 : n.allSteps) == null ? void 0 : w.steps[n.allSteps.currentStep]) || {}, (n == null ? void 0 : n.routeId) || ((d = (x = a.data) == null ? void 0 : x.data) == null ? void 0 : d.routeId), !0);
1007
+ }
1008
+ return { handleStepStatus: y, handleUpdate: l, handleErrorReset: f, isShowNewQuote: b, handleTxnObj: E, callRegisterError: k, handleTryAgain: B };
1009
+ }
1010
+ const zt = ne(new AbortController());
1011
+ function an({ children: n }) {
1012
+ const r = mt(new AbortController());
1013
+ return G(() => (r.current = new AbortController(), () => {
1014
+ var t;
1015
+ (t = r.current) == null || t.abort();
1016
+ }), []), /* @__PURE__ */ o(zt.Provider, { value: r.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 [r, t] = ot(), { connector: e, chainId: i, chain: b, isConnected: a } = ft(), u = xe(), [y, l] = ot(!1);
1023
+ async function f() {
1024
+ try {
1025
+ l(!0);
1026
+ let k = await Fe(u, { connector: e, chainId: i });
1027
+ t(k), l(!1);
1028
+ } catch {
1029
+ l(!1);
1030
+ }
1031
+ }
1032
+ return G(() => {
1033
+ n && f();
1034
+ }, [u, e, i, b, n, a]), { walletClient: r, isLoading: y, isAbs: e && e.id === "xyz.abs.privy" };
1035
+ }
1036
+ function D0() {
1037
+ var S, m;
1038
+ const n = c((p) => p.setPersist), r = c((p) => p.persist), { callRegisterError: t, handleTxnObj: e, handleStepStatus: i } = Qt(), { errorMessage: b, setErrorMessage: a } = J(lt), u = J(zt), { walletClient: y, isLoading: l, isAbs: f } = I0({ enabled: ((S = r == null ? void 0 : r.fromChain) == null ? void 0 : S.networkType) === "evm" }), { primaryWallet: k } = Ot(), { setNextStep: E, callNextTx: B } = St(), v = _t(), { wallet: U } = jt(), s = mt(), { data: w } = Lt({
1039
+ chainId: [(m = r == null ? void 0 : r.fromChain) == null ? void 0 : m.chainId],
1040
+ multiChain: !0
1041
+ });
1042
+ G(() => {
1043
+ n(l ? { ...c.getState().persist, loading: !0 } : { ...c.getState().persist, loading: !1 });
1044
+ }, [l]);
1045
+ function x(p) {
1046
+ var I;
1047
+ if (!{
1048
+ sol: k,
1049
+ evm: y,
1050
+ cosmos: w == null ? void 0 : w[(I = r == null ? void 0 : r.fromChain) == null ? void 0 : I.chainId],
1051
+ tron: U,
1052
+ bitcoin: k
1053
+ }[p])
1054
+ throw new Error("Please connect your wallet");
1055
+ }
1056
+ async function d() {
1057
+ var p, A, I, F, M, V;
1058
+ try {
1059
+ let C, j;
1060
+ x((p = r == null ? void 0 : r.fromChain) == null ? void 0 : p.networkType), ((A = r == null ? void 0 : r.fromChain) == null ? void 0 : A.networkType) == "sol" && (j = await k.connector.getSigner());
1061
+ let D = (r == null ? void 0 : r.nextTx) || {};
1062
+ f && ((M = (F = (I = D == null ? void 0 : D.data) == null ? void 0 : I.txnData) == null ? void 0 : F.txnEvm) != null && M.gasPrice) && delete D.data.txnData.txnEvm.gasPrice, C = await Te({
1063
+ txDataResponse: D,
1064
+ quote: r.route,
1065
+ step: r.stepData,
1066
+ provider: y || null,
1067
+ cosmosClient: (w == null ? void 0 : w[(V = r == null ? void 0 : r.fromChain) == null ? void 0 : V.chainId]) || null,
1068
+ walletAdapter: j || null,
1069
+ signTransaction: (j == null ? void 0 : j.signTransaction) || null,
1070
+ tronAdapter: U,
1071
+ bitcoinWallet: k
1072
+ }), typeof C == "object" && (C = C.signature), n({
1073
+ ...c.getState().persist,
1074
+ hash: C
1075
+ }), g(C);
1076
+ } catch (C) {
1077
+ const j = yt(C.message || C.details || C), D = C.message || C.details || C;
1078
+ j && (D != null && D.length) && s.current && t("/wallet error", {
1079
+ error: D
1080
+ }), a({ error: D, type: "wallet" });
1081
+ }
1082
+ }
1083
+ async function g(p) {
1084
+ var A, I;
1085
+ try {
1086
+ let F = await ge({ routeId: r.routeId, stepId: (A = r == null ? void 0 : r.stepData) == null ? void 0 : A.stepId, txnHash: p }), M = await Se({
1087
+ routeId: r.routeId,
1088
+ stepId: (I = r == null ? void 0 : r.stepData) == null ? void 0 : I.stepId,
1089
+ txnHash: p,
1090
+ signal: u.signal,
1091
+ pollingIntervalMs: 2e3,
1092
+ onStatusUpdate: (V, C) => {
1093
+ var D, H, W, _, R, Q, z;
1094
+ n({
1095
+ ...(H = (D = c) == null ? void 0 : D.getState()) == null ? void 0 : H.persist,
1096
+ stepStatus: i({
1097
+ status: "pending"
1098
+ })
1099
+ });
1100
+ let j = ((W = r == null ? void 0 : r.allSteps) == null ? void 0 : W.currentStep) === ((R = (_ = r == null ? void 0 : r.allSteps) == null ? void 0 : _.steps) == null ? void 0 : R.length) - 1;
1101
+ v.emit(it.TransactionStatus, {
1102
+ ...C,
1103
+ status: !j && ((Q = C == null ? void 0 : C.data) == null ? void 0 : Q.status) === "success" ? "in-progress" : (z = C == null ? void 0 : C.data) == null ? void 0 : z.status,
1104
+ isLastStep: j
1105
+ }), C && N(C);
1106
+ }
1107
+ });
1108
+ } catch (F) {
1109
+ const M = yt(F.message || F.details || F), V = F.message || F.details || F;
1110
+ M && (V != null && V.length) && s.current && t("/wallet error", {
1111
+ error: V
1112
+ }), a({ error: V, type: "wallet" });
1113
+ }
1114
+ }
1115
+ function N(p) {
1116
+ var A, I, F, M, V, C, j, D, H, W, _, R, Q, z, Z, K, X, Y;
1117
+ if ((A = p == null ? void 0 : p.data) != null && A.status && s.current && n({
1118
+ ...(F = (I = c) == null ? void 0 : I.getState()) == null ? void 0 : F.persist,
1119
+ statusData: p == null ? void 0 : p.data,
1120
+ stepStatus: i({
1121
+ status: ((M = p == null ? void 0 : p.data) == null ? void 0 : M.status) == "in-progress" ? "pending" : (V = p == null ? void 0 : p.data) == null ? void 0 : V.status
1122
+ })
1123
+ }), e(p), p.status == "error" && a(p), ((C = p.data) == null ? void 0 : C.status) == "success") {
1124
+ let tt = r.allSteps.steps[r.allSteps.currentStep + 1];
1125
+ if (a({ error: "" }), n({
1126
+ ...c.getState().persist,
1127
+ stepData: tt || c.getState().persist.stepData
1128
+ }), r.allSteps.currentStep == ((D = (j = r.allSteps) == null ? void 0 : j.steps) == null ? void 0 : D.length) - 1)
1129
+ n({
1130
+ ...c.getState().persist,
1131
+ allSteps: {
1132
+ ...c.getState().persist.allSteps,
1133
+ currentStep: r.allSteps.currentStep + 1,
1134
+ type: "preText"
1135
+ }
1136
+ });
1137
+ else if (r.allSteps.currentStep <= ((W = (H = r.allSteps) == null ? void 0 : H.steps) == null ? void 0 : W.length) - 1)
1138
+ E(), B(r.allSteps.steps[r.allSteps.currentStep + 1], (r == null ? void 0 : r.routeId) || ((R = (_ = txnBody.data) == null ? void 0 : _.data) == null ? void 0 : R.routeId));
1139
+ else
1140
+ return;
1141
+ } else ((Q = p.data) == null ? void 0 : Q.status) == "failed" || (((z = p.data) == null ? void 0 : z.status) == "refunded" ? a({ error: `${qt(((Z = r == null ? void 0 : r.stepData) == null ? void 0 : Z.stepType) || "")} failed! Tokens have been refunded to the source chain.` }) : ((K = p.data) == null ? void 0 : K.status) == "in-progress" && (X = b == null ? void 0 : b.error) != null && X.length && (n({ ...(Y = c.getState()) == null ? void 0 : Y.persist, loading: !0 }), a({ error: "" })));
1142
+ }
1143
+ return G(() => (r.hash && g(r.hash), () => {
1144
+ u.abort();
1145
+ }), []), G(() => (s.current = !0, () => {
1146
+ s.current = !1;
1147
+ }), []), { handleExeTxn: d };
1148
+ }
1149
+ function ln({ setExchange: n, startTimer: r, handleBack: t }) {
1150
+ var C, j, D, H, W, _, R, Q, z, Z, K, X, Y, tt, ct, xt, dt, P, Tt, vt, Et, Ct, Nt;
1151
+ const e = c((T) => T.persist), i = c((T) => T.setPersist), [b, a] = ot(!1), { handleTxnSuccess: u } = J(Rt), { isErrorMessage: y, handleErrorMessage: l, errorMessage: f } = J(lt), { chain: k } = ft(), E = e.isHistory, { handleStepStatus: B, handleUpdate: v, handleTryAgain: U, isShowNewQuote: s, callRegisterError: w } = Qt(), { handleExeTxn: x } = D0(), { nextTx: d, handleSkipTxn: g, callNextTx: N, txnBody: S } = St(!0), { switchChain: m } = de({
1152
+ chainId: Number(((j = (C = e == null ? void 0 : e.stepData) == null ? void 0 : C.from) == null ? void 0 : j.chainId) || "0"),
1153
+ throwForSwitchChainNotSupported: !0,
1154
+ onError(T) {
1155
+ yt(T.message) && w("wallet-error-switch", { data: { error: T.message } });
1156
+ }
1157
+ }), p = !rt.isEmpty((H = (D = c.getState()) == null ? void 0 : D.persist) == null ? void 0 : H.historyData);
1158
+ let A = (z = (Q = (W = e == null ? void 0 : e.allSteps) == null ? void 0 : W.steps) == null ? void 0 : Q[((_ = e.allSteps) == null ? void 0 : _.currentStep) || ((R = e == null ? void 0 : e.allSteps) == null ? void 0 : R.currentStep)]) == null ? void 0 : z.texts, I = e != null && e.loading ? e.hash ? "process" : "loading" : "pre", F = (Z = f == null ? void 0 : f.error) != null && Z.length ? f.error : null;
1159
+ G(() => {
1160
+ var T, $, O;
1161
+ p && typeof ((T = e == null ? void 0 : e.historyData) == null ? void 0 : T.currentStepIndex) < "u" && (($ = e == null ? void 0 : e.historyData) == null ? void 0 : $.currentStepStatus) == "not-started" ? N(e == null ? void 0 : e.stepData, e == null ? void 0 : e.routeId) : ((O = e == null ? void 0 : e.historyData) == null ? void 0 : O.currentStepStatus) == "in-progress" && r(!0);
1162
+ }, [p]), G(() => {
1163
+ var T;
1164
+ if (((T = e == null ? void 0 : e.allSteps) == null ? void 0 : T.currentStep) === 0 && d.data) {
1165
+ let $ = d.data;
1166
+ i({
1167
+ ...c.getState().persist,
1168
+ isQuoteTimer: !($.status == "error" || e != null && e.isTryAgain),
1169
+ quote: $.status == "error" || e != null && e.isTryAgain ? "disable" : "enable",
1170
+ quoteStartTime: (/* @__PURE__ */ new Date()).getTime()
1171
+ });
1172
+ } else
1173
+ i({
1174
+ ...c.getState().persist,
1175
+ isQuoteTimer: !1,
1176
+ quote: "disable"
1177
+ });
1178
+ }, [(K = e == null ? void 0 : e.allSteps) == null ? void 0 : K.steps, d.data]), G(() => {
1179
+ var T, $;
1180
+ ((T = e.statusData) == null ? void 0 : T.status) == "success" && e.allSteps.currentStep === (($ = e.allSteps.steps) == null ? void 0 : $.length) && (S.isSuccess || e.isSuccess) ? u(!0) : u(!1);
1181
+ }, [e.allSteps, S.isSuccess, e.isSuccess, e == null ? void 0 : e.statusData]), G(() => {
1182
+ var T, $, O, et, nt;
1183
+ (T = f == null ? void 0 : f.error) != null && T.length || (($ = e.statusData) == null ? void 0 : $.status) == "failed" || ((O = e.statusData) == null ? void 0 : O.status) == "partial-success" || ((et = e.statusData) == null ? void 0 : et.status) == "txn-expired" || ((nt = e.statusData) == null ? void 0 : nt.status) == "refunded" ? l(!0) : l(!1);
1184
+ }, [f, e == null ? void 0 : e.statusData]), G(() => {
1185
+ var T, $;
1186
+ !((T = f == null ? void 0 : f.error) != null && T.length) && (e != null && e.hash) && (($ = e == null ? void 0 : e.statusData) == null ? void 0 : $.srcTxnHash) !== (e == null ? void 0 : e.hash) && i({
1187
+ ...c.getState().persist,
1188
+ allSteps: {
1189
+ ...c.getState().persist.allSteps,
1190
+ type: "postText"
1191
+ }
1192
+ });
1193
+ }, [f == null ? void 0 : f.error, e == null ? void 0 : e.hash]), G(() => {
1194
+ var $, O;
1195
+ let T = { ...($ = c.getState()) == null ? void 0 : $.persist };
1196
+ ((O = e == null ? void 0 : e.allSteps) == null ? void 0 : O.steps) !== null && (T = {
1197
+ ...T,
1198
+ stepStatus: B()
1199
+ }, i(T));
1200
+ }, [e.allSteps]), G(() => {
1201
+ var T;
1202
+ rt.isEmpty(e == null ? void 0 : e.allSteps) || e.hash || i({
1203
+ ...c.getState().persist,
1204
+ allSteps: { ...c.getState().persist.allSteps, type: "preText" },
1205
+ loading: !1
1206
+ }), e != null && e.routeId && !E && n(), g(e == null ? void 0 : e.nextTx), ((T = e == null ? void 0 : e.nextTx) == null ? void 0 : T.status) === "error" && (i({
1207
+ ...c.getState().persist,
1208
+ loading: !0
1209
+ }), N(e == null ? void 0 : e.stepData, e == null ? void 0 : e.routeId));
1210
+ }, []), G(() => {
1211
+ var T;
1212
+ y && !b && i({ ...(T = c.getState()) == null ? void 0 : T.persist, loading: !1 });
1213
+ }, [y, b]), G(() => {
1214
+ var T, $, O;
1215
+ (O = ($ = (T = c.getState()) == null ? void 0 : T.persist) == null ? void 0 : $.nextTx) != null && O.data && b && (V(), a(!1));
1216
+ }, [(tt = (Y = (X = c.getState()) == null ? void 0 : X.persist) == null ? void 0 : Y.nextTx) == null ? void 0 : tt.data]);
1217
+ function M(T) {
1218
+ a(T);
1219
+ }
1220
+ async function V() {
1221
+ var T, $, O, et, nt, bt;
1222
+ ($ = e.allSteps.steps) != null && $[((T = e.allSteps) == null ? void 0 : T.currentStep) || 0] && (i({
1223
+ ...(O = c.getState()) == null ? void 0 : O.persist,
1224
+ loading: !0,
1225
+ isTimerStarted: !0,
1226
+ statusData: null,
1227
+ isQuoteTimer: !1,
1228
+ showAcceptQuote: !1,
1229
+ quote: "disable",
1230
+ startTime: ((bt = (nt = (et = c) == null ? void 0 : et.getState()) == null ? void 0 : nt.persist) == null ? void 0 : bt.startTime) || (/* @__PURE__ */ new Date()).getTime()
1231
+ }), r(!0), x(), i({
1232
+ ...c.getState().persist,
1233
+ allSteps: {
1234
+ ...c.getState().persist.allSteps,
1235
+ type: "loadingText"
1236
+ }
1237
+ }));
1238
+ }
1239
+ return G(() => {
1240
+ var T, $, O, et, nt, bt, At;
1241
+ if (($ = (T = e == null ? void 0 : e.stepData) == null ? void 0 : T.from) != null && $.chainId)
1242
+ Number((et = (O = e == null ? void 0 : e.stepData) == null ? void 0 : O.from) == null ? void 0 : et.chainId) !== (k == null ? void 0 : k.chainId) && ((nt = e == null ? void 0 : e.fromChain) == null ? void 0 : nt.networkType) === "evm" && m({
1243
+ chainId: Number(((At = (bt = e == null ? void 0 : e.stepData) == null ? void 0 : bt.from) == null ? void 0 : At.chainId) || "0")
1244
+ });
1245
+ else return;
1246
+ }, [e == null ? void 0 : e.stepData]), /* @__PURE__ */ h(L, { children: [
1247
+ ((ct = e == null ? void 0 : e.statusData) == null ? void 0 : ct.status) !== "txn-expired" ? /* @__PURE__ */ o("div", { className: `bw-pt-4 bw-h-[80%] bw-mt-2 bw-relative ${s ? "bw-pointer-events-none bw-opacity-60" : ""}`, children: !S.isFetching && !rt.isEmpty(e == null ? void 0 : e.stepData) ? S.isSuccess && S.data || e != null && e.routeId ? (Tt = ((xt = e == null ? void 0 : e.allSteps) == null ? void 0 : xt.steps) || ((P = (dt = S.data) == null ? void 0 : dt.data) == null ? void 0 : P.steps)) == null ? void 0 : Tt.map((T, $, O) => /* @__PURE__ */ h(L, { children: [
1248
+ " ",
1249
+ /* @__PURE__ */ h("div", { className: "bw-flex bw-items-start bw-mb-4 bw-justify-between", children: [
1250
+ /* @__PURE__ */ h("div", { className: "bw-flex bw-relative bw-items-start bw-w-max bw-justify-center bw-gap-x-3", children: [
1251
+ /* @__PURE__ */ o(y0, { allSteps: e.allSteps, disableButton: e == null ? void 0 : e.loading, i: $, arr: O }),
1252
+ /* @__PURE__ */ o(r0, { item: T, i: $ })
1253
+ ] }),
1254
+ /* @__PURE__ */ o(n0, { i: $, item: T })
1255
+ ] })
1256
+ ] })) : /* @__PURE__ */ o(L, {}) : /* @__PURE__ */ o("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: F ? /* @__PURE__ */ o($t, { text: "Unable to complete the request!" }) : /* @__PURE__ */ h(L, { children: [
1257
+ /* @__PURE__ */ o("div", { className: "bw-relative bw-pb-4", children: /* @__PURE__ */ o(E0, {}) }),
1258
+ /* @__PURE__ */ o("p", { className: "bw-text-2xl bw-text-center bw-font-medium bw-text-text-secondary", children: "Initializing Transaction..." })
1259
+ ] }) }) }) : /* @__PURE__ */ o(L, {}),
1260
+ !S.isFetching && !rt.isEmpty(e == null ? void 0 : e.stepData) ? s ? /* @__PURE__ */ o(C0, { handleUpdate: v }) : ((vt = e == null ? void 0 : e.statusData) == null ? void 0 : vt.status) == "success" && e.allSteps.currentStep == ((Et = e.allSteps.steps) == null ? void 0 : Et.length) ? /* @__PURE__ */ o(Xe, { handleBack: t }) : y ? ((Ct = e.statusData) == null ? void 0 : Ct.status) == "partial-success" ? /* @__PURE__ */ o(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: [
1261
+ /* @__PURE__ */ o($t, { text: "Transaction expired!" }),
1262
+ /* @__PURE__ */ o("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__ */ o(Bt, { handleBack: t, errorText: F }) })
1263
+ ] }) : /* @__PURE__ */ o(t0, { errorText: F, handleGoBack: t, txnTextObj: A, handleExeTxn: U, handleDisable: M }) : /* @__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: [
1264
+ /* @__PURE__ */ o(e0, { txnProcessType: I, txnTextObj: A, errorText: F, allSteps: e == null ? void 0 : e.allSteps }),
1265
+ /* @__PURE__ */ o(Ye, { txnProcessType: I, txnTextObj: A, disableButton: e.loading, handleStep: V })
1266
+ ] }) : F != null && F.length ? /* @__PURE__ */ o("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__ */ o(Bt, { handleBack: t, errorText: F }) }) : /* @__PURE__ */ o(L, {})
1267
+ ] });
1268
+ }
1269
+ var ut = { exports: {} }, F0 = ut.exports, Vt;
1270
+ function B0() {
1271
+ return Vt || (Vt = 1, function(n, r) {
1272
+ (function(t, e) {
1273
+ n.exports = e(ht);
1274
+ })(typeof self < "u" ? self : F0, (t) => (() => {
1275
+ var e = { 155: (w) => {
1276
+ w.exports = t;
1277
+ } }, i = {};
1278
+ function b(w) {
1279
+ var x = i[w];
1280
+ if (x !== void 0) return x.exports;
1281
+ var d = i[w] = { exports: {} };
1282
+ return e[w](d, d.exports, b), d.exports;
1283
+ }
1284
+ b.d = (w, x) => {
1285
+ for (var d in x) b.o(x, d) && !b.o(w, d) && Object.defineProperty(w, d, { enumerable: !0, get: x[d] });
1286
+ }, b.o = (w, x) => Object.prototype.hasOwnProperty.call(w, x), b.r = (w) => {
1287
+ typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(w, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(w, "__esModule", { value: !0 });
1288
+ };
1289
+ var a = {};
1290
+ b.r(a), b.d(a, { default: () => s, useStopwatch: () => v, useTime: () => U, useTimer: () => B });
1291
+ var u = b(155);
1292
+ class y {
1293
+ static expiryTimestamp(x) {
1294
+ const d = new Date(x).getTime() > 0;
1295
+ return d;
1296
+ }
1297
+ static onExpire(x) {
1298
+ const d = x && typeof x == "function";
1299
+ return d;
1300
+ }
1301
+ }
1302
+ class l {
1303
+ static getTimeFromSeconds(x) {
1304
+ const d = Math.ceil(x), g = Math.floor(d / 86400), N = Math.floor(d % 86400 / 3600), S = Math.floor(d % 3600 / 60);
1305
+ return { totalSeconds: d, seconds: Math.floor(d % 60), minutes: S, hours: N, days: g };
1306
+ }
1307
+ static getSecondsFromExpiry(x, d) {
1308
+ const g = x - (/* @__PURE__ */ new Date()).getTime();
1309
+ if (g > 0) {
1310
+ const N = g / 1e3;
1311
+ return d ? Math.round(N) : N;
1312
+ }
1313
+ return 0;
1314
+ }
1315
+ static getSecondsFromPrevTime(x, d) {
1316
+ const g = (/* @__PURE__ */ new Date()).getTime() - x;
1317
+ if (g > 0) {
1318
+ const N = g / 1e3;
1319
+ return d ? Math.round(N) : N;
1320
+ }
1321
+ return 0;
1322
+ }
1323
+ static getSecondsFromTimeNow() {
1324
+ const x = /* @__PURE__ */ new Date();
1325
+ return x.getTime() / 1e3 - 60 * x.getTimezoneOffset();
1326
+ }
1327
+ static getFormattedTimeFromSeconds(x, d) {
1328
+ const { seconds: g, minutes: N, hours: S } = l.getTimeFromSeconds(x);
1329
+ let m = "", p = S;
1330
+ return d === "12-hour" && (m = S >= 12 ? "pm" : "am", p = S % 12), { seconds: g, minutes: N, hours: p, ampm: m };
1331
+ }
1332
+ }
1333
+ function f(w, x) {
1334
+ const d = (0, u.useRef)();
1335
+ (0, u.useEffect)(() => {
1336
+ d.current = w;
1337
+ }), (0, u.useEffect)(() => {
1338
+ if (!x) return () => {
1339
+ };
1340
+ const g = setInterval(() => {
1341
+ d.current && d.current();
1342
+ }, x);
1343
+ return () => clearInterval(g);
1344
+ }, [x]);
1345
+ }
1346
+ const k = 1e3;
1347
+ function E(w) {
1348
+ if (!y.expiryTimestamp(w)) return null;
1349
+ const x = l.getSecondsFromExpiry(w), d = Math.floor(1e3 * (x - Math.floor(x)));
1350
+ return d > 0 ? d : k;
1351
+ }
1352
+ function B() {
1353
+ let { expiryTimestamp: w, onExpire: x, autoStart: d = !0 } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1354
+ const [g, N] = (0, u.useState)(w), [S, m] = (0, u.useState)(l.getSecondsFromExpiry(g)), [p, A] = (0, u.useState)(d), [I, F] = (0, u.useState)(d), [M, V] = (0, u.useState)(E(g)), C = (0, u.useCallback)(() => {
1355
+ y.onExpire(x) && x(), A(!1), V(null);
1356
+ }, [x]), j = (0, u.useCallback)(() => {
1357
+ A(!1);
1358
+ }, []), D = (0, u.useCallback)(function(_) {
1359
+ let R = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
1360
+ V(E(_)), F(R), A(R), N(_), m(l.getSecondsFromExpiry(_));
1361
+ }, []), H = (0, u.useCallback)(() => {
1362
+ const _ = /* @__PURE__ */ new Date();
1363
+ _.setMilliseconds(_.getMilliseconds() + 1e3 * S), D(_);
1364
+ }, [S, D]), W = (0, u.useCallback)(() => {
1365
+ I ? (m(l.getSecondsFromExpiry(g)), A(!0)) : H();
1366
+ }, [g, I, H]);
1367
+ return f(() => {
1368
+ M !== k && V(k);
1369
+ const _ = l.getSecondsFromExpiry(g);
1370
+ m(_), _ <= 0 && C();
1371
+ }, p ? M : null), { ...l.getTimeFromSeconds(S), start: W, pause: j, resume: H, restart: D, isRunning: p };
1372
+ }
1373
+ function v() {
1374
+ let { autoStart: w, offsetTimestamp: x } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1375
+ const [d, g] = (0, u.useState)(l.getSecondsFromExpiry(x, !0) || 0), [N, S] = (0, u.useState)(/* @__PURE__ */ new Date()), [m, p] = (0, u.useState)(d + l.getSecondsFromPrevTime(N || 0, !0)), [A, I] = (0, u.useState)(w);
1376
+ f(() => {
1377
+ p(d + l.getSecondsFromPrevTime(N, !0));
1378
+ }, A ? 1e3 : null);
1379
+ const F = (0, u.useCallback)(() => {
1380
+ const C = /* @__PURE__ */ new Date();
1381
+ S(C), I(!0), p(d + l.getSecondsFromPrevTime(C, !0));
1382
+ }, [d]), M = (0, u.useCallback)(() => {
1383
+ g(m), I(!1);
1384
+ }, [m]), V = (0, u.useCallback)(function() {
1385
+ let C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, j = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
1386
+ const D = l.getSecondsFromExpiry(C, !0) || 0, H = /* @__PURE__ */ new Date();
1387
+ S(H), g(D), I(j), p(D + l.getSecondsFromPrevTime(H, !0));
1388
+ }, []);
1389
+ return { ...l.getTimeFromSeconds(m), start: F, pause: M, reset: V, isRunning: A };
1390
+ }
1391
+ function U() {
1392
+ let { format: w } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1393
+ const [x, d] = (0, u.useState)(l.getSecondsFromTimeNow());
1394
+ return f(() => {
1395
+ d(l.getSecondsFromTimeNow());
1396
+ }, 1e3), { ...l.getFormattedTimeFromSeconds(x, w) };
1397
+ }
1398
+ function s(w) {
1399
+ if ((0, u.useEffect)(() => {
1400
+ }, []), w.expiryTimestamp) {
1401
+ const d = B(w);
1402
+ return { ...d, startTimer: d.start, stopTimer: d.pause, resetTimer: () => {
1403
+ } };
1404
+ }
1405
+ const x = v(w);
1406
+ return { ...x, startTimer: x.start, stopTimer: x.pause, resetTimer: x.reset };
1407
+ }
1408
+ return a;
1409
+ })());
1410
+ }(ut)), ut.exports;
1411
+ }
1412
+ var $0 = B0();
1413
+ function Pt(n) {
1414
+ return n > 9 || n < 0 ? n : `0${n}`;
1415
+ }
1416
+ function V0({ handleExpiry: n }) {
1417
+ var a;
1418
+ const r = c((u) => u.persist), t = (r == null ? void 0 : r.route) || {};
1419
+ let e = (r == null ? void 0 : r.startTime) || ((a = r == null ? void 0 : r.historyData) == null ? void 0 : a.createdAt);
1420
+ const { minutes: i, seconds: b } = $0.useTimer({
1421
+ expiryTimestamp: e + (t == null ? void 0 : t.estimatedTimeInSeconds) * 1e3,
1422
+ onExpire: () => {
1423
+ n();
1424
+ }
1425
+ });
1426
+ return `${Pt(i)}:${Pt(b)}`;
1427
+ }
1428
+ const cn = ht.memo(function({ route: r, isTimerStarted: t, startTimer: e, isErrorMessage: i }) {
1429
+ const [b, a] = ot(!1), { isTxnSuccessful: u } = J(Rt), l = !c((k) => k.persist).stepData;
1430
+ function f() {
1431
+ a(!0), e(!1);
1432
+ }
1433
+ return /* @__PURE__ */ o("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__ */ o("p", { className: " bw-text-sm bw-text-center bw-font-medium bw-text-text-primary", children: l ? /* @__PURE__ */ o(Dt, {}) : u ? "Done" : t && !b ? /* @__PURE__ */ o(V0, { route: r, handleExpiry: f }) : b ? /* @__PURE__ */ o(Dt, {}) : "Start Txn" }) });
1434
+ });
1435
+ function Jt(n, r) {
1436
+ return Ie(n, r) || 0;
1437
+ }
1438
+ function P0() {
1439
+ var r, t, e, i, b, a, u;
1440
+ const n = c((y) => y.persist);
1441
+ return /* @__PURE__ */ h("div", { className: "bw-w-full bw-px-3 bw-py-2 bw-border-t bw-border-border-primary", children: [
1442
+ /* @__PURE__ */ o("div", { children: (t = (r = n == null ? void 0 : n.route) == null ? void 0 : r.fee) == null ? void 0 : t.filter((y, l) => y.source == "FROM_SOURCE_WALLET").map((y, l) => y.amountInUSD ? /* @__PURE__ */ h("div", { className: "bw-flex bw-mb-1 bw-items-center bw-justify-between", children: [
1443
+ /* @__PURE__ */ o("p", { className: "bw-text-text-secondary bw-text-sm bw-font-semibold", children: `${qt(y.type)} Fee` }),
1444
+ /* @__PURE__ */ h("span", { className: "bw-text-text-secondary bw-text-sm bw-font-bold", children: [
1445
+ /* @__PURE__ */ o(at, { value: Jt(y.amountInToken, y.token.decimals).toFixed(20) || 0, options: { maxDecimals: 8 } }),
1446
+ ` ${y.token.symbol} ${y.amountInUSD ? " ($" : ""}`,
1447
+ y.amountInUSD ? /* @__PURE__ */ h(L, { children: [
1448
+ /* @__PURE__ */ o(at, { value: y.amountInUSD || 0, options: { maxDecimals: 8 } }),
1449
+ ")"
1450
+ ] }) : ""
1451
+ ] })
1452
+ ] }, l) : /* @__PURE__ */ o(L, {})) }),
1453
+ /* @__PURE__ */ o("div", { className: "bw-w-full bw-h-[1px] bw-border-b bw-my-2 bw-border-border-primary" }),
1454
+ /* @__PURE__ */ h("div", { className: "bw-w-full", children: [
1455
+ /* @__PURE__ */ h("div", { className: "bw-flex bw-items-center bw-mb-2 bw-justify-between", children: [
1456
+ /* @__PURE__ */ o("p", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: "Max Slippage" }),
1457
+ /* @__PURE__ */ h("span", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: [
1458
+ (((e = n == null ? void 0 : n.route) == null ? void 0 : e.slippage) || 0) / 100,
1459
+ "%"
1460
+ ] })
1461
+ ] }),
1462
+ /* @__PURE__ */ h("div", { className: "bw-flex bw-items-center bw-justify-between", children: [
1463
+ /* @__PURE__ */ o("p", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: "Minimum Received" }),
1464
+ /* @__PURE__ */ o("span", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: (i = n == null ? void 0 : n.route) != null && i.minOutputAmountDisplay || (b = n == null ? void 0 : n.route) != null && b.minOutputAmount ? `${Mt(n.route.minOutputAmountDisplay || n.route.minOutputAmount, 10)} ${(u = (a = n == null ? void 0 : n.route) == null ? void 0 : a.to) == null ? void 0 : u.symbol}` : "" })
1465
+ ] })
1466
+ ] })
1467
+ ] });
1468
+ }
1469
+ function j0({ isShowFull: n }) {
1470
+ return /* @__PURE__ */ o("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__ */ o("div", { className: `bw-mt-[1px] ${n ? "bw-rotate-180" : ""}`, children: /* @__PURE__ */ o(he, { fill: "var(--tw-text-primary)" }) }) });
1471
+ }
1472
+ function _0({ gasData: n }) {
1473
+ var t;
1474
+ const r = c((e) => e.persist);
1475
+ return /* @__PURE__ */ h("div", { className: "bw-flex bw-w-full bw-h-full bw-items-center", children: [
1476
+ /* @__PURE__ */ o("span", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: "Max Slippage:" }),
1477
+ /* @__PURE__ */ h("span", { className: "bw-text-xs bw-ml-[3px] bw-font-bold bw-text-text-secondary", children: [
1478
+ (((t = r == null ? void 0 : r.route) == null ? void 0 : t.slippage) || 0) / 100,
1479
+ "%"
1480
+ ] }),
1481
+ /* @__PURE__ */ o("div", { className: "bw-w-[2px] bw-h-[24px] bw-mx-3 bw-bg-text-secondary" }),
1482
+ /* @__PURE__ */ o("span", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: "Fees:" }),
1483
+ /* @__PURE__ */ h("span", { className: "bw-text-xs bw-ml-[3px] bw-font-bold bw-text-text-secondary", children: [
1484
+ /* @__PURE__ */ o(at, { value: (n == null ? void 0 : n.payableInToken) || 0, options: { maxDecimals: 8 } }),
1485
+ ` ${n == null ? void 0 : n.symbol} ${n != null && n.payableInUSD ? " ($" : ""}`,
1486
+ n != null && n.payableInUSD ? /* @__PURE__ */ h(L, { children: [
1487
+ /* @__PURE__ */ o(at, { value: (n == null ? void 0 : n.payableInUSD) || 0, options: { maxDecimals: 8 } }),
1488
+ ")"
1489
+ ] }) : ""
1490
+ ] })
1491
+ ] });
1492
+ }
1493
+ function U0({ gasData: n }) {
1494
+ return /* @__PURE__ */ h("div", { className: "bw-w-full bw-flex bw-items-center bw-justify-between bw-border-border-primary", children: [
1495
+ /* @__PURE__ */ o("span", { className: "bw-text-sm bw-font-bold bw-text-text-primary", children: "Fees" }),
1496
+ /* @__PURE__ */ h("span", { className: "bw-text-sm bw-ml-[3px] bw-font-bold bw-text-text-primary", children: [
1497
+ /* @__PURE__ */ o(at, { value: (n == null ? void 0 : n.payableInToken) || 0, options: { maxDecimals: 8 } }),
1498
+ ` ${n == null ? void 0 : n.symbol} ${n != null && n.payableInUSD ? " ($" : ""}`,
1499
+ n != null && n.payableInUSD ? /* @__PURE__ */ h(L, { children: [
1500
+ /* @__PURE__ */ o(at, { value: (n == null ? void 0 : n.payableInUSD) || 0, options: { maxDecimals: 8 } }),
1501
+ ")"
1502
+ ] }) : ""
1503
+ ] })
1504
+ ] });
1505
+ }
1506
+ function G0({ gasData: n, isShowFull: r }) {
1507
+ return /* @__PURE__ */ h("div", { className: "bw-flex bw-items-center bw-justify-between bw-gap-x-2 bw-h-[35px] bw-px-3", children: [
1508
+ r ? /* @__PURE__ */ o(U0, { gasData: n }) : /* @__PURE__ */ o(_0, { gasData: n }),
1509
+ /* @__PURE__ */ o(j0, { isShowFull: r })
1510
+ ] });
1511
+ }
1512
+ function xn() {
1513
+ var l, f;
1514
+ const n = c((k) => k.persist), [r, t] = ot(!1), e = c((k) => k.configuration), i = mt(null), [b, a] = ot(0);
1515
+ G(() => {
1516
+ if (i.current) {
1517
+ const k = setTimeout(() => {
1518
+ const E = i.current.scrollHeight;
1519
+ a(E);
1520
+ }, 50);
1521
+ return () => clearTimeout(k);
1522
+ }
1523
+ }, [n == null ? void 0 : n.route, r]);
1524
+ function u() {
1525
+ t(!r);
1526
+ }
1527
+ const y = re(() => {
1528
+ var E, B;
1529
+ let k = {
1530
+ payableInUSD: 0,
1531
+ payableInToken: 0,
1532
+ symbol: ""
1533
+ };
1534
+ return (B = (E = n == null ? void 0 : n.route) == null ? void 0 : E.fee) == null || B.forEach((v) => {
1535
+ v.source == "FROM_SOURCE_WALLET" && (k.payableInUSD += Number(v.amountInUSD), k.payableInToken += Jt(Number(v.amountInToken), v.token.decimals), k.symbol = v.token.symbol);
1536
+ }), k;
1537
+ }, [n == null ? void 0 : n.route]);
1538
+ return /* @__PURE__ */ h(
1539
+ "div",
1540
+ {
1541
+ onClick: () => {
1542
+ u();
1543
+ },
1544
+ style: {
1545
+ boxShadow: e && e.customTheme && ((f = (l = e.customTheme) == null ? void 0 : l.shadow) == null ? void 0 : f.boxShadow) || "0px 0px 5.8px 0px #00000026"
1546
+ },
1547
+ className: "bw-w-full bw-sticky bw-top-0 bw-z-20 bw-select-none bw-cursor-pointer bw-bg-background-container bw-rounded-lg bw-min-h-max bw-border bw-border-border-primary bw-overflow-hidden",
1548
+ children: [
1549
+ /* @__PURE__ */ o(G0, { gasData: y, isShowFull: r }),
1550
+ /* @__PURE__ */ o(
1551
+ "div",
1552
+ {
1553
+ ref: i,
1554
+ style: {
1555
+ height: r ? `${b}px` : "0",
1556
+ transition: "height 0.3s ease-in-out",
1557
+ overflow: "hidden",
1558
+ visibility: b === 0 ? "hidden" : "visible"
1559
+ },
1560
+ children: /* @__PURE__ */ o("div", { className: "bw-h-auto", children: /* @__PURE__ */ o(P0, { showFull: r }) })
1561
+ }
1562
+ )
1563
+ ]
1564
+ }
1565
+ );
1566
+ }
1567
+ export {
1568
+ xn as E,
1569
+ sn as H,
1570
+ Rt as T,
1571
+ lt as a,
1572
+ on as b,
1573
+ cn as c,
1574
+ ln as d,
1575
+ an as e
1576
+ };