@blockend/widget 1.0.61 → 1.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/dist/{AllRoutes-BqW5S4_J.js → AllRoutes-pT_GYhLz.js} +9 -9
  2. package/dist/{Box-Dw7IJo3D.js → Box-CMXImt80.js} +1 -1
  3. package/dist/{EstGas-C_ldluj6.js → EstGas-BEwQc47B.js} +7 -7
  4. package/dist/{Grow-DjneaPQY.js → Grow-CYJk-72r.js} +2 -2
  5. package/dist/{InputComp-CWH4SAk7.js → InputComp-B0QgFbsj.js} +3 -3
  6. package/dist/{LoadRoute-Cafzlcfy.js → LoadRoute-I--KmXYZ.js} +4 -4
  7. package/dist/{QuotesProgress-Covy7wmW.js → QuotesProgress-Ct53CRUU.js} +1 -1
  8. package/dist/{SwapAsset-BqXVX_DR.js → SwapAsset-X7gAsFxL.js} +1 -1
  9. package/dist/{Tooltip-3YpYU_vO.js → Tooltip-CsxhxDbM.js} +3 -3
  10. package/dist/{TxnButton-CPMFPFA_.js → TxnButton-BZf2lfxu.js} +3 -3
  11. package/dist/{add-CRY8asYF.js → add-fqHpy_n_.js} +1 -1
  12. package/dist/{all-wallets-DOnIRIv0.js → all-wallets-BEiHad26.js} +1 -1
  13. package/dist/{app-store-C0M9hC1B.js → app-store-BUrtll4M.js} +1 -1
  14. package/dist/{apple-Bv7oA5AQ.js → apple-DeP0r4ax.js} +1 -1
  15. package/dist/{arrow-bottom-D4arnome.js → arrow-bottom-DOUsYrpS.js} +1 -1
  16. package/dist/{arrow-bottom-circle-BUny4yP8.js → arrow-bottom-circle-3zt0oM9l.js} +1 -1
  17. package/dist/{arrow-left-DImJbKZs.js → arrow-left-CZi8gizN.js} +1 -1
  18. package/dist/{arrow-right-BvRPNX9F.js → arrow-right-Bp2k-sRU.js} +1 -1
  19. package/dist/{arrow-top-1RWPJImu.js → arrow-top-Bdu-g3eb.js} +1 -1
  20. package/dist/{bank-C0t9JpLj.js → bank-UM_6-xYg.js} +1 -1
  21. package/dist/{basic-VfgwBHn1.js → basic-CfaJcj31.js} +3 -3
  22. package/dist/{browser-0d0uw45D.js → browser-DE4dHUIn.js} +1 -1
  23. package/dist/{card-BBByykfy.js → card-CpV_uFyN.js} +1 -1
  24. package/dist/{ccip-8__szz9Q.js → ccip-CA2a9SDo.js} +1 -1
  25. package/dist/{checkmark-B_osdsm_.js → checkmark-CK8NZa3x.js} +1 -1
  26. package/dist/{checkmark-bold-BEzepFY4.js → checkmark-bold-DgI_WWpK.js} +1 -1
  27. package/dist/{chevron-bottom-Bdaxlaxc.js → chevron-bottom-C_3_Lg-x.js} +1 -1
  28. package/dist/{chevron-left-2aCeqxdm.js → chevron-left-Dn-8RUKj.js} +1 -1
  29. package/dist/{chevron-right-BPgQeMPz.js → chevron-right-BrzGCKbe.js} +1 -1
  30. package/dist/{chevron-top-BskFpgMP.js → chevron-top-DH4uxqMd.js} +1 -1
  31. package/dist/{chrome-store-CxhEG2Jk.js → chrome-store-C6ftVKRM.js} +1 -1
  32. package/dist/{clock-BDgHn083.js → clock-BMAqcMX9.js} +1 -1
  33. package/dist/{close-CQTa1LZg.js → close-B99wQvJ_.js} +1 -1
  34. package/dist/{coinPlaceholder-B-NSV729.js → coinPlaceholder-DmuYNsmb.js} +1 -1
  35. package/dist/{compass-BdJmk2w2.js → compass-C4wdl146.js} +1 -1
  36. package/dist/{copy-Cg4vgr82.js → copy-DMJQyfJj.js} +1 -1
  37. package/dist/{core-BSwMFU2B.js → core-v6ho39ji.js} +3 -3
  38. package/dist/{cursor-BoD_rq0f.js → cursor-C-0knOkC.js} +1 -1
  39. package/dist/{cursor-transparent-Dqs1kXcb.js → cursor-transparent-BLuqOo6k.js} +1 -1
  40. package/dist/{desktop-BOxkTik1.js → desktop-DpJrO84H.js} +1 -1
  41. package/dist/{disconnect-CTxFyZWa.js → disconnect-k6w6zlk-.js} +1 -1
  42. package/dist/{discord-BJRxIhBt.js → discord-DLgkGibC.js} +1 -1
  43. package/dist/{down-372J_rRV.js → down-C4N-wh2D.js} +2 -2
  44. package/dist/{etherscan-CyQf5MH5.js → etherscan-DJTxjIAP.js} +1 -1
  45. package/dist/{exclamation-triangle-DFOXjtuI.js → exclamation-triangle-B1YdY5CX.js} +1 -1
  46. package/dist/{extension-XiWSr1Ku.js → extension-CnhByDAh.js} +1 -1
  47. package/dist/{external-link-CYjbHRDY.js → external-link-CZmI3Q92.js} +1 -1
  48. package/dist/{facebook-DhP37m2R.js → facebook-CRHPGcBq.js} +1 -1
  49. package/dist/{farcaster-C1J2oGt2.js → farcaster-BYs6AvgJ.js} +1 -1
  50. package/dist/{filters-C5jLy9GP.js → filters-BqJFiFCl.js} +1 -1
  51. package/dist/{getChainIds-AaKb_MmO.js → getChainIds-CPQkM2Fw.js} +2 -2
  52. package/dist/{getCosmosAddress-D-F7jz-d.js → getCosmosAddress-CrzIqoe8.js} +2 -2
  53. package/dist/{github-CJ8g1by7.js → github-WI_fsQyX.js} +1 -1
  54. package/dist/{google-DpIVCnNm.js → google-PDPeuX25.js} +1 -1
  55. package/dist/{hamburger-BylLGawu.js → hamburger-JHCSR4wq.js} +5 -5
  56. package/dist/{help-circle-BESCFGIa.js → help-circle-CC1LutMp.js} +1 -1
  57. package/dist/{id-CPX0IEMo.js → id-Dg4qm85K.js} +1 -1
  58. package/dist/{image-DrFHyQOS.js → image-DvH3pCRi.js} +1 -1
  59. package/dist/{index-DoNokw4Q.js → index-4DGqOb0b.js} +1 -1
  60. package/dist/{index-ePnYqYhf.js → index-BAjx9Sij.js} +345 -343
  61. package/dist/{index-H7ThVJwV.js → index-BII8gr4h.js} +4 -4
  62. package/dist/{index-DO14DPs3.js → index-Bl06WOfD.js} +5 -5
  63. package/dist/{index-BOd8pd8c.js → index-BrgwPS_u.js} +11 -11
  64. package/dist/{index-BDezoD7C.js → index-ByNEeX9y.js} +1 -1
  65. package/dist/{index-D0J1OD73.js → index-CBMjkxpP.js} +4 -4
  66. package/dist/{index-DhZwdjPQ.js → index-D8oYLVSL.js} +2 -2
  67. package/dist/{index-DjHDqI7m.js → index-DbOqrlxW.js} +4 -4
  68. package/dist/{index-eatshJSd.js → index-Mqg8CWuX.js} +10 -10
  69. package/dist/{index-BheqnLKf.js → index-qIeZpXcg.js} +78 -78
  70. package/dist/{index.es-gTtSa0r5.js → index.es-DV8y1ve_.js} +2 -2
  71. package/dist/{index.es-B95K0DgG.js → index.es-DkTmjrB8.js} +1 -1
  72. package/dist/index.es.js +1 -1
  73. package/dist/{info-DB9XS3BU.js → info-Cjmzqm5P.js} +1 -1
  74. package/dist/{info-circle-BVB8s9W_.js → info-circle-Dimf4UPG.js} +1 -1
  75. package/dist/{lightbulb-C0eiLvuS.js → lightbulb-BsZjMPbK.js} +1 -1
  76. package/dist/{mail-CYcc9yZZ.js → mail-KNgNgUMG.js} +1 -1
  77. package/dist/{mobile-Cvm9Skqq.js → mobile-hJMru58F.js} +1 -1
  78. package/dist/{more-B-UvO1Yo.js → more-B1Hz9ISJ.js} +1 -1
  79. package/dist/{network-placeholder-C8QNcwPf.js → network-placeholder-Ba37-PVe.js} +1 -1
  80. package/dist/{nftPlaceholder-C_LU9tT5.js → nftPlaceholder-Br6ZCUyX.js} +1 -1
  81. package/dist/{off-BEQbMYBZ.js → off-DZv0f5qk.js} +1 -1
  82. package/dist/{play-store-CEopCauM.js → play-store-PVT99oFp.js} +1 -1
  83. package/dist/{plus-CtEYHV2t.js → plus-0JhMk1yC.js} +1 -1
  84. package/dist/{qr-code-BhmZxeo_.js → qr-code-CYMnN7H6.js} +1 -1
  85. package/dist/{recycle-horizontal-CF9eqICi.js → recycle-horizontal-BODX35XL.js} +1 -1
  86. package/dist/{refresh-Bm3plkBE.js → refresh-KT2nzf4V.js} +1 -1
  87. package/dist/{reown-logo-8S9ZN_-T.js → reown-logo-x-a1ehju.js} +1 -1
  88. package/dist/{search-DNcA47oY.js → search-floOYVWE.js} +1 -1
  89. package/dist/{send-B0S9gHH6.js → send-rBEZNvkT.js} +1 -1
  90. package/dist/{swapHorizontal-BuTPPB8N.js → swapHorizontal-FpW50anF.js} +1 -1
  91. package/dist/{swapHorizontalBold-BnB-fpce.js → swapHorizontalBold-DJo2s6QM.js} +1 -1
  92. package/dist/{swapHorizontalMedium-9QnwwjJD.js → swapHorizontalMedium-AdMIxAQ-.js} +1 -1
  93. package/dist/{swapHorizontalRoundedBold-C83mxp3u.js → swapHorizontalRoundedBold-DB7VaS-l.js} +1 -1
  94. package/dist/{swapVertical-BAz7hmKO.js → swapVertical-CStjk8mq.js} +1 -1
  95. package/dist/{telegram-BMT9bLfw.js → telegram-B7o9hZwP.js} +1 -1
  96. package/dist/{three-dots-DuhUrXKI.js → three-dots-DogTUFsH.js} +1 -1
  97. package/dist/{twitch-ClsoABSi.js → twitch-B_TRhhNU.js} +1 -1
  98. package/dist/{twitterIcon-B9n98fnH.js → twitterIcon-ujuPKvRN.js} +1 -1
  99. package/dist/{unsupportedProp-BXmR-9gT.js → unsupportedProp-BC6azYXA.js} +1 -1
  100. package/dist/{useRegisterError-DVG0sgLq.js → useRegisterError-DMILz6N1.js} +1 -1
  101. package/dist/{verify-BHTa1Niv.js → verify-BRWSwLhn.js} +1 -1
  102. package/dist/{verify-filled-CqobBYuI.js → verify-filled-z7UoRJXn.js} +1 -1
  103. package/dist/{w3m-modal-B7akV0Kp.js → w3m-modal-CuXPdser.js} +2 -2
  104. package/dist/{wallet-ObJy7yZR.js → wallet-BMFvv3DF.js} +1 -1
  105. package/dist/{wallet-placeholder-BxVrKpEz.js → wallet-placeholder-DFg6CZXP.js} +1 -1
  106. package/dist/{walletconnect-CYJbrPQQ.js → walletconnect-WSdSSZfM.js} +1 -1
  107. package/dist/{warning-circle-DOwgDOgL.js → warning-circle-BDW9xnhM.js} +1 -1
  108. package/dist/{x-B03u0kWD.js → x-DUDktTjC.js} +1 -1
  109. package/package.json +1 -1
  110. package/dist/AllRoutes-CIe7ZLbW.js +0 -2209
  111. package/dist/Box-QpYIDD-V.js +0 -54
  112. package/dist/EstGas-Dpwt2-50.js +0 -1574
  113. package/dist/Grow-L7kyPhbh.js +0 -1656
  114. package/dist/InputComp-Dl4M7E5v.js +0 -105
  115. package/dist/LoadRoute-cBSl34Bs.js +0 -125
  116. package/dist/QuotesProgress-CxJUoCPy.js +0 -28
  117. package/dist/SwapAsset-CkRat7Ok.js +0 -51
  118. package/dist/Tooltip-D2kKNQ0U.js +0 -572
  119. package/dist/TxnButton-mfwy-EoQ.js +0 -222
  120. package/dist/add-Dfrw-dUV.js +0 -19
  121. package/dist/all-wallets-Dw10lWJZ.js +0 -10
  122. package/dist/app-store-DJiZFSCr.js +0 -21
  123. package/dist/apple-kMZGS4AC.js +0 -22
  124. package/dist/arrow-bottom-DgmWrLqf.js +0 -12
  125. package/dist/arrow-bottom-circle-C7iPKwzW.js +0 -15
  126. package/dist/arrow-left-Dol642VI.js +0 -12
  127. package/dist/arrow-right-CMwyPVT7.js +0 -12
  128. package/dist/arrow-top-kn9xtx92.js +0 -12
  129. package/dist/bank-DK-FvDfd.js +0 -18
  130. package/dist/basic-Sejv2JvX.js +0 -5783
  131. package/dist/browser-BzT1ACe9.js +0 -18
  132. package/dist/card-DqDM55a-.js +0 -18
  133. package/dist/ccip-BPZSey8I.js +0 -228
  134. package/dist/checkmark-DEKH6rOS.js +0 -15
  135. package/dist/checkmark-bold-Dzv2hN2Q.js +0 -12
  136. package/dist/chevron-bottom-CXdHWe0F.js +0 -12
  137. package/dist/chevron-left-CeuFz3M9.js +0 -12
  138. package/dist/chevron-right-DikqbHjp.js +0 -12
  139. package/dist/chevron-top-CjCScawp.js +0 -12
  140. package/dist/chrome-store-DaP5Y4w2.js +0 -65
  141. package/dist/clock-BzjZWK68.js +0 -12
  142. package/dist/close-Dqncm2nY.js +0 -12
  143. package/dist/coinPlaceholder-BExfa33b.js +0 -12
  144. package/dist/compass-C1H_fht-.js +0 -12
  145. package/dist/copy-DPMVX3yZ.js +0 -19
  146. package/dist/core-BYOwnw_B.js +0 -16521
  147. package/dist/cursor-transparent-IQlZspwQ.js +0 -16
  148. package/dist/cursor-ybJpiPr6.js +0 -7
  149. package/dist/desktop-WMYv3b4Q.js +0 -13
  150. package/dist/disconnect-eMeec26w.js +0 -12
  151. package/dist/discord-CpTo4KnZ.js +0 -21
  152. package/dist/down-hvB7J3FG.js +0 -622
  153. package/dist/etherscan-DQ1h54d3.js +0 -10
  154. package/dist/exclamation-triangle-DzKs0-30.js +0 -8
  155. package/dist/extension-ep1TEUSD.js +0 -12
  156. package/dist/external-link-DRzzevt_.js +0 -12
  157. package/dist/facebook-eXS31CP5.js +0 -30
  158. package/dist/farcaster-f0EPKy4w.js +0 -16
  159. package/dist/filters-RqawLZYy.js +0 -12
  160. package/dist/getChainIds-DXEtLb1g.js +0 -1888
  161. package/dist/getCosmosAddress-X_cfoAnv.js +0 -9517
  162. package/dist/github-d1vUfc1B.js +0 -22
  163. package/dist/google-Dtcfyt4F.js +0 -22
  164. package/dist/hamburger-DezZOKRv.js +0 -3915
  165. package/dist/help-circle-BTpSg7wr.js +0 -16
  166. package/dist/id-CV-pIIiZ.js +0 -16
  167. package/dist/image-n7ODnWNp.js +0 -8
  168. package/dist/index-BYmiFoJh.js +0 -29495
  169. package/dist/index-C7McnY5R.js +0 -18509
  170. package/dist/index-CI-V1HdQ.js +0 -3267
  171. package/dist/index-CSgWo9Cg.js +0 -6713
  172. package/dist/index-CViW2kjE.js +0 -13547
  173. package/dist/index-CoV9zQx1.js +0 -992
  174. package/dist/index-D_8iklL2.js +0 -1483
  175. package/dist/index-GlSAE8hE.js +0 -472
  176. package/dist/index-Pni0gIii.js +0 -206
  177. package/dist/index-TEYMoNwP.js +0 -9
  178. package/dist/index-VS3sEqmI.js +0 -330
  179. package/dist/index.es-BzyBckd_.js +0 -366
  180. package/dist/index.es-CMvE7ghR.js +0 -14904
  181. package/dist/info-DWZmKXfC.js +0 -7
  182. package/dist/info-circle-Bk9rpQzz.js +0 -16
  183. package/dist/lightbulb-CUDopurR.js +0 -7
  184. package/dist/mail-Df9wlUBz.js +0 -12
  185. package/dist/mobile-DcoUJktC.js +0 -13
  186. package/dist/more-DbsAB7Xx.js +0 -15
  187. package/dist/network-placeholder-CnHZLxGT.js +0 -18
  188. package/dist/nftPlaceholder-D7igGAAq.js +0 -12
  189. package/dist/off-Brms9nN7.js +0 -12
  190. package/dist/play-store-z4z-boXn.js +0 -36
  191. package/dist/plus-LkrIZJEQ.js +0 -17
  192. package/dist/qr-code-CZnYaNoE.js +0 -10
  193. package/dist/recycle-horizontal-CeGotUdv.js +0 -13
  194. package/dist/refresh-CKhWU1dQ.js +0 -12
  195. package/dist/reown-logo-CF2Qkyw1.js +0 -16
  196. package/dist/search-DyuAYb_-.js +0 -12
  197. package/dist/send-BbBOjlsM.js +0 -19
  198. package/dist/swapHorizontal-DA7yhPfV.js +0 -12
  199. package/dist/swapHorizontalBold-BujZxwgY.js +0 -12
  200. package/dist/swapHorizontalMedium-hEBn_MJv.js +0 -20
  201. package/dist/swapHorizontalRoundedBold-Cqg1Na-5.js +0 -12
  202. package/dist/swapVertical-D1CdGHJt.js +0 -12
  203. package/dist/telegram-dDQ2sOw5.js +0 -20
  204. package/dist/three-dots-ltDeu1Xu.js +0 -9
  205. package/dist/twitch-sBusnrAt.js +0 -22
  206. package/dist/twitterIcon-BKMgaEZ4.js +0 -10
  207. package/dist/unsupportedProp-P9y3_0om.js +0 -10
  208. package/dist/useRegisterError-DGMdKFc9.js +0 -8918
  209. package/dist/verify-DXzijLDZ.js +0 -12
  210. package/dist/verify-filled-DnKqj8X5.js +0 -12
  211. package/dist/w3m-modal-Cc1j8j_E.js +0 -1471
  212. package/dist/wallet-placeholder-DEsjd5Nv.js +0 -18
  213. package/dist/wallet-zL6TDKIa.js +0 -12
  214. package/dist/walletconnect-CZz6e0wy.js +0 -36
  215. package/dist/warning-circle-DsGlg2MF.js +0 -16
  216. package/dist/x-MwPhq03Y.js +0 -16
@@ -1,222 +0,0 @@
1
- import { jsx as G } from "react/jsx-runtime";
2
- import { useState as v, useEffect as z } from "react";
3
- import { useDynamicContext as xe, useSwitchNetwork as Me, useIsLoggedIn as Oe } from "@dynamic-labs/sdk-react-core";
4
- import { a as _, u as h, aA as Re, aB as pe } from "./index-BYmiFoJh.js";
5
- import { s as S } from "./WidgetForm.module-QHJ0-m5f.js";
6
- import { useAccount as Ve, useConfig as qe, useSwitchChain as Pe, useBalance as _e } from "wagmi";
7
- import { u as ge, d as Qe, c as He, C as ye } from "./useRegisterError-DGMdKFc9.js";
8
- import { v as Je } from "./validError-CDlJpg_f.js";
9
- import { u as Ke, g as Ue, p as Xe } from "./index-ePnYqYhf.js";
10
- function Ye(n) {
11
- const { wallet: u, address: l } = _(), [f, N] = v(0);
12
- async function x() {
13
- const F = await window.tronWeb.trx.getBalance(l);
14
- N(F / Math.pow(10, 6));
15
- }
16
- return z(() => {
17
- l && (n == null ? void 0 : n.networkType) === "tron" && x();
18
- }, [l, n == null ? void 0 : n.networkType]), { tronBal: f };
19
- }
20
- function A(n) {
21
- if (n.key.toLowerCase() === "backpacksol")
22
- return !0;
23
- }
24
- function Ze() {
25
- const [n, u] = v(0), l = h((x) => x.fromChain), { primaryWallet: f } = xe();
26
- async function N() {
27
- let x = await f.getBalance();
28
- u(Number(x) || 0);
29
- }
30
- return z(() => {
31
- (l.networkType === "btc" || l.networkType === "sui") && N();
32
- }, [l.networkType, f]), n;
33
- }
34
- function lt({ routesData: n, routes: u, amount: l, isAmountTyped: f, handleShowWallet: N, setConnectWalletField: x, handleConfirmClose: F, balanceSol: L, getCoinBalance: Te, handleSuccess: Q }) {
35
- var C, ee, te, se, re, ce, ne, ie, de, ae, le, oe, we;
36
- const w = h((s) => s.gradient), m = h((s) => s.configuration), e = h((s) => s.fromChain), i = h((s) => s.fromCoin), r = h((s) => s.toChain), b = h((s) => s.toCoin), { isConnected: j, address: H, chain: I } = Ve(), { address: J, isConnected: We } = _(), me = qe(), Ie = Me(), { getBothWalletConnection: he, getConnectWallet: fe } = ge({
37
- chainData: e
38
- }), { connected: K, address: U, disconnect: De } = _(), M = h((s) => s.toDisconnect), d = h((s) => s.customWallet), { getWallet: Ne } = ge({ chainData: e }), Be = fe(e, r), [O, Ge] = v("101"), { tronBal: R } = Ye(e), { cosmosBalance: X } = Ke(), Y = Ze(), V = ((C = e.chain) == null ? void 0 : C.length) && ((ee = r.chain) == null ? void 0 : ee.length), q = ((te = i.address) == null ? void 0 : te.length) && ((se = b.address) == null ? void 0 : se.length), Se = Qe(), Z = Re(), { switchChain: ke, switchChainAsync: $e, isPending: Ee } = Pe({
39
- chainId: Number((e == null ? void 0 : e.chainId) || "0"),
40
- config: me,
41
- throwForSwitchChainNotSupported: !0,
42
- onError(s) {
43
- Je(s.message) && Se({ module: "wallet-error-switch", error: s.message });
44
- }
45
- }), T = _e({
46
- address: H,
47
- token: "",
48
- chainId: Number((e == null ? void 0 : e.chainId) || 0),
49
- enabled: (e == null ? void 0 : e.networkType) == "evm"
50
- }), W = He(Te || 0, 11), [o, a] = v({
51
- text: "",
52
- isGradient: !1,
53
- color: "bw-bg-border-primary"
54
- });
55
- async function Fe() {
56
- if ((e == null ? void 0 : e.networkType) === "evm" && Number((e == null ? void 0 : e.chainId) || "0") !== (I == null ? void 0 : I.id))
57
- try {
58
- await $e({ chainId: Number((e == null ? void 0 : e.chainId) || "0") });
59
- } catch {
60
- }
61
- else if ((e == null ? void 0 : e.networkType) === "sol" && O !== ((e == null ? void 0 : e.chainId) == "eclipse-svm" ? "201" : "101"))
62
- try {
63
- let s = await Ie({ wallet: p, network: e.chainId == "eclipse-svm" ? "201" : "101" });
64
- D();
65
- } catch {
66
- }
67
- else (e == null ? void 0 : e.networkType) === "sui" ? (Z.emit(pe.TransactionStarted, {
68
- ...n
69
- }), B && (Q(!1), F())) : (Z.emit(pe.TransactionStarted, {
70
- ...n
71
- }), B && (Q(!1), F()));
72
- }
73
- const { primaryWallet: p } = xe(), P = Oe(), B = (e == null ? void 0 : e.networkType) === r.networkType ? !!((ce = (re = Ne(e)) == null ? void 0 : re.address) != null && ce.length) : he(e == null ? void 0 : e.networkType, (d == null ? void 0 : d.length) > 30 ? "customWallet" : r == null ? void 0 : r.networkType), D = async () => {
74
- if (p)
75
- try {
76
- const s = await p.getNetwork();
77
- Ge(s);
78
- } catch {
79
- }
80
- else
81
- return;
82
- };
83
- z(() => {
84
- D();
85
- }, [p]);
86
- function k(s, g) {
87
- let y = s / Math.pow(10, g);
88
- return y < 1e-6 ? y.toFixed(20) : y;
89
- }
90
- function Le() {
91
- var s;
92
- return Number(((s = T == null ? void 0 : T.data) == null ? void 0 : s.formatted) || 0);
93
- }
94
- function je(s) {
95
- var g;
96
- return Number(((g = X[Xe(s.address)]) == null ? void 0 : g.amount) || 0) / Math.pow(10, s.decimals);
97
- }
98
- function Ae() {
99
- var E;
100
- let s = {};
101
- async function g(t, c) {
102
- let $ = Object.keys(s);
103
- s[t == null ? void 0 : t.chainId] ? (s[t == null ? void 0 : t.chainId].amountInToken += c.amountInToken, s[t == null ? void 0 : t.chainId].gas += k(c.amountInToken, t == null ? void 0 : t.decimals)) : s[t == null ? void 0 : t.chainId] = {
104
- amountInToken: c.amountInToken,
105
- gas: k(c.amountInToken, t == null ? void 0 : t.decimals),
106
- token: t,
107
- nativeBal: (d == null ? void 0 : d.length) > 30 && !M && (t == null ? void 0 : t.chainId) == (r == null ? void 0 : r.chainId) && (r == null ? void 0 : r.chainId) !== (e == null ? void 0 : e.chainId) ? 0 : (t == null ? void 0 : t.networkType) == "sol" ? L : (t == null ? void 0 : t.networkType) == "tron" ? R : (t == null ? void 0 : t.networkType) == "btc" || (t == null ? void 0 : t.networkType) == "sui" ? Y : (t == null ? void 0 : t.networkType) == "cosmos" ? je(t) : (t == null ? void 0 : t.networkType) == "tron" ? Ue(J) : Le(),
108
- isFromChain: (e == null ? void 0 : e.chainId) === (t == null ? void 0 : t.chainId.toString()),
109
- order: (e == null ? void 0 : e.chainId) === (t == null ? void 0 : t.chainId) ? 1 : (r == null ? void 0 : r.chainId) === (t == null ? void 0 : t.chainId) ? 2 : $.length > 2 ? 3 : 2
110
- };
111
- }
112
- (E = n == null ? void 0 : n.fee) == null || E.forEach((t) => {
113
- const { token: c } = t;
114
- t.source.toLowerCase() == "from_source_wallet" && g(c, t);
115
- });
116
- let y = W;
117
- if (Number(l) > Number(y))
118
- a({
119
- text: `Insufficient Balance ${i.coin || ""}`,
120
- isGradient: !1,
121
- color: "bw-bg-border-primary"
122
- });
123
- else if ((T != null && T.isLoading || T.isFetching) && (e == null ? void 0 : e.networkType) === "evm" || (typeof L > "u" || L === null) && (e == null ? void 0 : e.networkType) === "sol" || !R && (e == null ? void 0 : e.networkType) === "tron")
124
- a({
125
- text: "Fetching Balance..",
126
- isGradient: !1,
127
- color: "bw-bg-border-primary"
128
- });
129
- else {
130
- let t = Object.values(s).sort((c, $) => c.order - $.order);
131
- t.some((c) => {
132
- var $, be, ue;
133
- return c != null && c.isFromChain && Number(l) <= Number(y) && Number(c.nativeBal) - Number(l) < c.gas && (i != null && i.isNative) || Number(l) <= Number(y) && Number(c.nativeBal) < c.gas && !(i != null && i.isNative) && (c != null && c.isFromChain) ? (a({
134
- text: `Insufficient ${(($ = c == null ? void 0 : c.token) == null ? void 0 : $.symbol) || ""} for gas on ${c.token.blockchain}`,
135
- isGradient: !1,
136
- color: "bw-bg-border-primary"
137
- }), !0) : c.nativeBal < c.gas && !((d == null ? void 0 : d.length) > 30 && ((be = c == null ? void 0 : c.token) == null ? void 0 : be.chainId) == (r == null ? void 0 : r.chainId)) ? (a({
138
- text: `Insufficient ${((ue = c == null ? void 0 : c.token) == null ? void 0 : ue.symbol) || ""} for gas on ${c.token.blockchain}`,
139
- isGradient: !1,
140
- color: "bw-bg-border-primary"
141
- }), !0) : (a({
142
- text: "",
143
- isGradient: !0,
144
- color: w || S.gradientbutton
145
- }), !0);
146
- }), t.length == 0 && (n != null && n.gasless || (n == null ? void 0 : n.provider) == "meson") && a({
147
- text: "",
148
- isGradient: !0,
149
- color: w || S.gradientbutton
150
- });
151
- }
152
- }
153
- z(() => {
154
- var s, g, y;
155
- !i.coin.length || !(b != null && b.coin.length) ? a({
156
- text: "Select Token",
157
- isGradient: !0,
158
- color: w || S.gradientbutton
159
- }) : B ? typeof l < "u" && Number(l || 0) <= 0 ? a({
160
- text: "Enter Amount",
161
- isGradient: !1,
162
- color: "bw-bg-border-primary"
163
- }) : u.isFetching || !f ? a({
164
- text: "Loading Routes...",
165
- isGradient: !1,
166
- color: "bw-bg-border-primary"
167
- }) : e.chainId === "eclipse-svm" && !A(p) ? a({
168
- text: `Select ${e.name} wallet`,
169
- isGradient: !0,
170
- color: w || S.gradientbutton
171
- }) : r.chainId === "eclipse-svm" && e.chainId !== "eclipse-svm" && !A(p) && d.length < 30 ? a({
172
- text: "Enter recipient wallet address",
173
- isGradient: !0,
174
- color: w || S.gradientbutton
175
- }) : (i == null ? void 0 : i.address) == (b == null ? void 0 : b.address) && (e == null ? void 0 : e.chainId) == (r == null ? void 0 : r.chainId) && !(d != null && d.length) || (e == null ? void 0 : e.networkType) == "evm" && H === d && (i == null ? void 0 : i.address) == (b == null ? void 0 : b.address) || (e == null ? void 0 : e.networkType) == "sol" && (p == null ? void 0 : p.address) === d && (i == null ? void 0 : i.address) == (b == null ? void 0 : b.address) ? a({
176
- text: "From and To asset can not be the same!",
177
- isGradient: !1,
178
- color: "bw-bg-border-primary"
179
- }) : (y = (g = (s = u == null ? void 0 : u.data) == null ? void 0 : s.data) == null ? void 0 : g.quotes) != null && y.length ? u != null && u.error ? a({
180
- text: "Failed to fetch Quotes",
181
- isGradient: !1,
182
- color: "bw-bg-border-primary"
183
- }) : j && Number((e == null ? void 0 : e.chainId) || "0") !== (I == null ? void 0 : I.id) && (e == null ? void 0 : e.networkType) === "evm" || P && ((e == null ? void 0 : e.chainId) === "eclipse-svm" ? "201" : "101") !== O && (e == null ? void 0 : e.networkType) === "sol" ? a({
184
- text: `Switch Chain to ${e.chain}`,
185
- isGradient: !0,
186
- color: w || S.gradientbutton
187
- }) : Ae() : a({
188
- text: "No Routes Found",
189
- isGradient: !1,
190
- color: "bw-bg-border-primary"
191
- }) : a({
192
- text: "",
193
- isGradient: !0,
194
- color: w || S.gradientbutton
195
- });
196
- }, [O, p, i, b, l, e, r, (ne = T.data) == null ? void 0 : ne.formatted, n, T.isFetching, T.isLoading, j, W, B, u.isFetching, I == null ? void 0 : I.id, f, R, L, d, Y, X, J]);
197
- let ve = [`switch chain to ${(ie = e.chain) == null ? void 0 : ie.toLowerCase()}`, `select ${(de = e.chain) == null ? void 0 : de.toLowerCase()} wallet`, "connect custom wallet", "enter recipient wallet address"];
198
- function ze() {
199
- var s, g, y, E;
200
- return B ? u.isFetching ? !0 : o.text.length ? !ve.includes((s = o.text) == null ? void 0 : s.toLowerCase()) : !((E = (y = (g = u.data) == null ? void 0 : g.data) == null ? void 0 : y.quotes) != null && E.length) : !1;
201
- }
202
- return /* @__PURE__ */ G(
203
- "button",
204
- {
205
- disabled: ze(),
206
- style: o != null && o.isGradient && V && q ? {
207
- ...m == null ? void 0 : m.gradientStyle,
208
- boxShadow: m && m.customTheme && ((le = (ae = m.customTheme) == null ? void 0 : ae.shadow) == null ? void 0 : le.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
209
- } : {
210
- boxShadow: m && m.customTheme && ((we = (oe = m.customTheme) == null ? void 0 : oe.shadow) == null ? void 0 : we.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
211
- },
212
- className: `bw-w-full bw-rounded-sm bw-h-[52px] ${o != null && o.isGradient ? "bw-p-[3px]" : "bw-p-[1px]"} bw-mt-3 bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-70 ${V && q && o.color} ${o.text.length > 29 ? "bw-text-xl" : "bw-text-2xl"} ${o != null && o.isGradient ? "bw-font-bold bw-text-text-primary" : "bw-font-normal bw-text-text-secondary"}`,
213
- onClick: () => {
214
- B || (N(!0), ((e == null ? void 0 : e.networkType) !== "evm" && j || (e == null ? void 0 : e.networkType) !== "sol" && P && p !== null || (e == null ? void 0 : e.networkType) !== "tron" && K && U) && !M ? x("from") : j && (r == null ? void 0 : r.networkType) !== "evm" || P && (r == null ? void 0 : r.networkType) !== "sol" || (r == null ? void 0 : r.networkType) !== "tron" && K && U || M ? x("to") : x("from")), e.chainId === "eclipse-svm" && !A(p) ? (N(!0), x("from")) : r.chainId === "eclipse-svm" && e.chainId !== "eclipse-svm" && !A(p) && d.length < 30 ? (N(!0), x("to")) : Fe();
215
- },
216
- children: /* @__PURE__ */ G("div", { className: "bw-rounded-sm bw-bg-background-container bw-flex bw-items-center bw-justify-center b-w-full bw-h-full", children: /* @__PURE__ */ G("p", { className: "bw-relative bw-z-20", children: V && q ? Ee ? /* @__PURE__ */ G("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ G(ye, { size: 22, thickness: 5, color: "inherit" }) }) : B ? o.text.length ? o.text : "Start Transaction" : `Connect ${Be} Wallet` : /* @__PURE__ */ G("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ G(ye, { size: 22, thickness: 5, color: "inherit" }) }) }) })
217
- }
218
- );
219
- }
220
- export {
221
- lt as default
222
- };
@@ -1,19 +0,0 @@
1
- import { m as l } from "./core-BYOwnw_B.js";
2
- const o = l`<svg
3
- width="14"
4
- height="14"
5
- viewBox="0 0 14 14"
6
- fill="none"
7
- xmlns="http://www.w3.org/2000/svg"
8
- >
9
- <path
10
- fill="currentColor"
11
- fill-rule="evenodd"
12
- clip-rule="evenodd"
13
- d="M7.0023 0.875C7.48571 0.875 7.8776 1.26675 7.8776 1.75V6.125H12.2541C12.7375 6.125 13.1294 6.51675 13.1294 7C13.1294 7.48325 12.7375 7.875 12.2541 7.875H7.8776V12.25C7.8776 12.7332 7.48571 13.125 7.0023 13.125C6.51889 13.125 6.12701 12.7332 6.12701 12.25V7.875H1.75054C1.26713 7.875 0.875244 7.48325 0.875244 7C0.875244 6.51675 1.26713 6.125 1.75054 6.125H6.12701V1.75C6.12701 1.26675 6.51889 0.875 7.0023 0.875Z"
14
- fill="#667dff"
15
- /></svg
16
- >`;
17
- export {
18
- o as addSvg
19
- };
@@ -1,10 +0,0 @@
1
- import { m as a } from "./core-BSwMFU2B.js";
2
- const o = a`<svg fill="none" viewBox="0 0 24 24">
3
- <path
4
- style="fill: var(--wui-color-accent-100);"
5
- d="M10.2 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM10.2 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0Z"
6
- />
7
- </svg>`;
8
- export {
9
- o as allWalletsSvg
10
- };
@@ -1,21 +0,0 @@
1
- import { m as a } from "./core-BYOwnw_B.js";
2
- const e = a`
3
- <svg width="36" height="36">
4
- <path
5
- d="M28.724 0H7.271A7.269 7.269 0 0 0 0 7.272v21.46A7.268 7.268 0 0 0 7.271 36H28.73A7.272 7.272 0 0 0 36 28.728V7.272A7.275 7.275 0 0 0 28.724 0Z"
6
- fill="url(#a)"
7
- />
8
- <path
9
- d="m17.845 8.271.729-1.26a1.64 1.64 0 1 1 2.843 1.638l-7.023 12.159h5.08c1.646 0 2.569 1.935 1.853 3.276H6.434a1.632 1.632 0 0 1-1.638-1.638c0-.909.73-1.638 1.638-1.638h4.176l5.345-9.265-1.67-2.898a1.642 1.642 0 0 1 2.844-1.638l.716 1.264Zm-6.317 17.5-1.575 2.732a1.64 1.64 0 1 1-2.844-1.638l1.17-2.025c1.323-.41 2.398-.095 3.249.931Zm13.56-4.954h4.262c.909 0 1.638.729 1.638 1.638 0 .909-.73 1.638-1.638 1.638h-2.367l1.597 2.772c.45.788.185 1.782-.602 2.241a1.642 1.642 0 0 1-2.241-.603c-2.69-4.666-4.711-8.159-6.052-10.485-1.372-2.367-.391-4.743.576-5.549 1.075 1.846 2.682 4.631 4.828 8.348Z"
10
- fill="#fff"
11
- />
12
- <defs>
13
- <linearGradient id="a" x1="18" y1="0" x2="18" y2="36" gradientUnits="userSpaceOnUse">
14
- <stop stop-color="#18BFFB" />
15
- <stop offset="1" stop-color="#2072F3" />
16
- </linearGradient>
17
- </defs>
18
- </svg>`;
19
- export {
20
- e as appStoreSvg
21
- };
@@ -1,22 +0,0 @@
1
- import { m as l } from "./core-BYOwnw_B.js";
2
- const f = l`<svg fill="none" viewBox="0 0 40 40">
3
- <g clip-path="url(#a)">
4
- <g clip-path="url(#b)">
5
- <circle cx="20" cy="19.89" r="20" fill="#000" />
6
- <g clip-path="url(#c)">
7
- <path
8
- fill="#fff"
9
- d="M28.77 23.3c-.69 1.99-2.75 5.52-4.87 5.56-1.4.03-1.86-.84-3.46-.84-1.61 0-2.12.81-3.45.86-2.25.1-5.72-5.1-5.72-9.62 0-4.15 2.9-6.2 5.42-6.25 1.36-.02 2.64.92 3.47.92.83 0 2.38-1.13 4.02-.97.68.03 2.6.28 3.84 2.08-3.27 2.14-2.76 6.61.75 8.25ZM24.2 7.88c-2.47.1-4.49 2.69-4.2 4.84 2.28.17 4.47-2.39 4.2-4.84Z"
10
- />
11
- </g>
12
- </g>
13
- </g>
14
- <defs>
15
- <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
16
- <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
17
- <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath>
18
- </defs>
19
- </svg>`;
20
- export {
21
- f as appleSvg
22
- };
@@ -1,12 +0,0 @@
1
- import { m as o } from "./core-BSwMFU2B.js";
2
- const e = o`<svg fill="none" viewBox="0 0 14 15">
3
- <path
4
- fill="currentColor"
5
- fill-rule="evenodd"
6
- d="M7 1.99a1 1 0 0 1 1 1v7.58l2.46-2.46a1 1 0 0 1 1.41 1.42L7.7 13.69a1 1 0 0 1-1.41 0L2.12 9.53A1 1 0 0 1 3.54 8.1L6 10.57V3a1 1 0 0 1 1-1Z"
7
- clip-rule="evenodd"
8
- />
9
- </svg>`;
10
- export {
11
- e as arrowBottomSvg
12
- };
@@ -1,15 +0,0 @@
1
- import { m as C } from "./core-BSwMFU2B.js";
2
- const e = C`<svg
3
- fill="none"
4
- viewBox="0 0 21 20"
5
- >
6
- <path
7
- fill="currentColor"
8
- fill-rule="evenodd"
9
- d="M10.5 2.42908C6.31875 2.42908 2.92859 5.81989 2.92859 10.0034C2.92859 14.1869 6.31875 17.5777 10.5 17.5777C14.6813 17.5777 18.0714 14.1869 18.0714 10.0034C18.0714 5.81989 14.6813 2.42908 10.5 2.42908ZM0.928589 10.0034C0.928589 4.71596 5.21355 0.429077 10.5 0.429077C15.7865 0.429077 20.0714 4.71596 20.0714 10.0034C20.0714 15.2908 15.7865 19.5777 10.5 19.5777C5.21355 19.5777 0.928589 15.2908 0.928589 10.0034ZM10.5 5.75003C11.0523 5.75003 11.5 6.19774 11.5 6.75003L11.5 10.8343L12.7929 9.54137C13.1834 9.15085 13.8166 9.15085 14.2071 9.54137C14.5976 9.9319 14.5976 10.5651 14.2071 10.9556L11.2071 13.9556C10.8166 14.3461 10.1834 14.3461 9.79291 13.9556L6.79291 10.9556C6.40239 10.5651 6.40239 9.9319 6.79291 9.54137C7.18343 9.15085 7.8166 9.15085 8.20712 9.54137L9.50002 10.8343L9.50002 6.75003C9.50002 6.19774 9.94773 5.75003 10.5 5.75003Z"
10
- clip-rule="evenodd"
11
- /></svg
12
- >`;
13
- export {
14
- e as arrowBottomCircleSvg
15
- };
@@ -1,12 +0,0 @@
1
- import { m as e } from "./core-BSwMFU2B.js";
2
- const o = e`<svg fill="none" viewBox="0 0 14 15">
3
- <path
4
- fill="currentColor"
5
- fill-rule="evenodd"
6
- d="M13 7.99a1 1 0 0 1-1 1H4.4l2.46 2.46a1 1 0 1 1-1.41 1.41L1.29 8.7a1 1 0 0 1 0-1.41L5.46 3.1a1 1 0 0 1 1.41 1.42L4.41 6.99H12a1 1 0 0 1 1 1Z"
7
- clip-rule="evenodd"
8
- />
9
- </svg>`;
10
- export {
11
- o as arrowLeftSvg
12
- };
@@ -1,12 +0,0 @@
1
- import { m as l } from "./core-BYOwnw_B.js";
2
- const e = l`<svg fill="none" viewBox="0 0 14 15">
3
- <path
4
- fill="currentColor"
5
- fill-rule="evenodd"
6
- d="M1 7.99a1 1 0 0 1 1-1h7.58L7.12 4.53A1 1 0 1 1 8.54 3.1l4.16 4.17a1 1 0 0 1 0 1.41l-4.16 4.17a1 1 0 1 1-1.42-1.41l2.46-2.46H2a1 1 0 0 1-1-1Z"
7
- clip-rule="evenodd"
8
- />
9
- </svg>`;
10
- export {
11
- e as arrowRightSvg
12
- };
@@ -1,12 +0,0 @@
1
- import { m as o } from "./core-BYOwnw_B.js";
2
- const e = o`<svg fill="none" viewBox="0 0 14 15">
3
- <path
4
- fill="currentColor"
5
- fill-rule="evenodd"
6
- d="M7 13.99a1 1 0 0 1-1-1V5.4L3.54 7.86a1 1 0 0 1-1.42-1.41L6.3 2.28a1 1 0 0 1 1.41 0l4.17 4.17a1 1 0 1 1-1.41 1.41L8 5.4v7.59a1 1 0 0 1-1 1Z"
7
- clip-rule="evenodd"
8
- />
9
- </svg>`;
10
- export {
11
- e as arrowTopSvg
12
- };
@@ -1,18 +0,0 @@
1
- import { m as e } from "./core-BYOwnw_B.js";
2
- const o = e`<svg
3
- xmlns="http://www.w3.org/2000/svg"
4
- width="12"
5
- height="13"
6
- viewBox="0 0 12 13"
7
- fill="none"
8
- >
9
- <path
10
- fill-rule="evenodd"
11
- clip-rule="evenodd"
12
- d="M5.61391 1.57124C5.85142 1.42873 6.14813 1.42873 6.38564 1.57124L11.0793 4.38749C11.9179 4.89067 11.5612 6.17864 10.5832 6.17864H9.96398V10.0358H10.2854C10.6996 10.0358 11.0354 10.3716 11.0354 10.7858C11.0354 11.2 10.6996 11.5358 10.2854 11.5358H1.71416C1.29995 11.5358 0.964172 11.2 0.964172 10.7858C0.964172 10.3716 1.29995 10.0358 1.71416 10.0358H2.03558L2.03558 6.17864H1.41637C0.438389 6.17864 0.0816547 4.89066 0.920263 4.38749L5.61391 1.57124ZM3.53554 6.17864V10.0358H5.24979V6.17864H3.53554ZM6.74976 6.17864V10.0358H8.46401V6.17864H6.74976ZM8.64913 4.67864H3.35043L5.99978 3.089L8.64913 4.67864Z"
13
- fill="currentColor"
14
- /></svg
15
- >`;
16
- export {
17
- o as bankSvg
18
- };