@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
@@ -1,10 +1,10 @@
1
1
  import { jsxs as b, jsx as t, Fragment as k } from "react/jsx-runtime";
2
- import { u as n, S as W } from "./index-BAuHi89Z.js";
2
+ import { u as n, S as W } from "./index-BYmiFoJh.js";
3
3
  import { useState as S, useRef as x } from "react";
4
- import { u as j, i as I, W as D, F, f as p, c as u, z as R } from "./useRegisterError-UVP98oC5.js";
4
+ import { u as j, i as I, W as D, F, f as p, c as u, z as R } from "./useRegisterError-DGMdKFc9.js";
5
5
  import { useAccount as T, useBalance as A } from "wagmi";
6
6
  import "@dynamic-labs/sdk-react-core";
7
- import { c as B, r as G } from "./index-BThpYFL-.js";
7
+ import { c as B, r as G } from "./index-ePnYqYhf.js";
8
8
  function H({ amount: w, setAmount: l, fetchBalance: M, getCoinBalance: h, isBalanceLoading: f }) {
9
9
  var d, o;
10
10
  const s = n((a) => a.configuration), e = n((a) => a.fromCoin), r = n((a) => a.fromChain), { isAnyWalletConnected: g } = j({ chainData: r }), [$, z] = S(40), { address: N } = T(), v = x(), { defaultCoin: y } = I;
@@ -0,0 +1,105 @@
1
+ import { jsxs as b, jsx as t, Fragment as k } from "react/jsx-runtime";
2
+ import { u as n, S as W } from "./index-D0J1OD73.js";
3
+ import { useState as S, useRef as x } from "react";
4
+ import { u as j, i as I, W as D, F, f as p, c as u, z as R } from "./useRegisterError-DVG0sgLq.js";
5
+ import { useAccount as T, useBalance as A } from "wagmi";
6
+ import "@dynamic-labs/sdk-react-core";
7
+ import { c as B, r as G } from "./index-D_8iklL2.js";
8
+ function H({ amount: w, setAmount: l, fetchBalance: M, getCoinBalance: h, isBalanceLoading: f }) {
9
+ var d, o;
10
+ const s = n((a) => a.configuration), e = n((a) => a.fromCoin), r = n((a) => a.fromChain), { isAnyWalletConnected: g } = j({ chainData: r }), [$, z] = S(40), { address: N } = T(), v = x(), { defaultCoin: y } = I;
11
+ A({
12
+ address: N,
13
+ token: B((e == null ? void 0 : e.address) || ""),
14
+ chainId: Number((r == null ? void 0 : r.chainId) || 0),
15
+ enabled: (r == null ? void 0 : r.networkType) == "evm"
16
+ });
17
+ const c = x(), i = h;
18
+ return /* @__PURE__ */ b("div", { className: " bw-mb-5 bw-mt-4", children: [
19
+ /* @__PURE__ */ b("p", { className: "bw-text-sm bw-text-left bw-font-medium bw-mb-1 bw-text-text-secondary", children: [
20
+ "Give ",
21
+ (e == null ? void 0 : e.name) || ""
22
+ ] }),
23
+ /* @__PURE__ */ b(
24
+ "div",
25
+ {
26
+ style: {
27
+ boxShadow: s && s.customTheme && ((o = (d = s.customTheme) == null ? void 0 : d.shadow) == null ? void 0 : o.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
28
+ },
29
+ className: "bw-w-full bw-h-[80px] bw-flex bw-gap-x-1 bw-items-center bw-px-2 bw-bg-background-container bw-rounded-md bw-border bw-border-border-primary",
30
+ children: [
31
+ /* @__PURE__ */ b("div", { className: "bw-w-full bw-flex bw-gap-x-2 bw-mt-5 bw-items-start bw-h-full", children: [
32
+ /* @__PURE__ */ t("div", { className: " bw-flex bw-items-center", children: e != null && e.image ? /* @__PURE__ */ t("div", { className: "bw-rounded-[50%] bw-bg-background-secondary bw-min-w-[40px] bw-w-[40px] bw-min-h-[40px] bw-flex bw-justify-center bw-items-center bw-border bw-border-border-primary", children: /* @__PURE__ */ t("img", { src: e == null ? void 0 : e.image, width: 39, height: 39, alt: "img", className: "bw-rounded-[50%] bw-max-w-[39px] bw-max-h-[39px] bw-object-contain bw-min-w-[39px] bw-min-h-[39px]" }) }) : /* @__PURE__ */ t("div", { className: "bw-min-w-[40px] bw-w-[40px] bw-border bw-border-border-primary bw-min-h-[40px] bw-rounded-[50%] ", children: /* @__PURE__ */ t("img", { src: y, width: 39, height: 39, alt: "img", className: "bw-rounded-[50%] bw-min-w-[38px] bw-min-h-[39px]" }) }) }),
33
+ /* @__PURE__ */ b("div", { className: "bw-w-full", children: [
34
+ /* @__PURE__ */ t(
35
+ "div",
36
+ {
37
+ onClick: () => {
38
+ c.current.focus();
39
+ },
40
+ className: " ",
41
+ children: /* @__PURE__ */ b("div", { className: "bw-text-left", children: [
42
+ /* @__PURE__ */ b("span", { className: "bw-invisible bw-absolute", ref: v, children: [
43
+ w,
44
+ "0"
45
+ ] }),
46
+ /* @__PURE__ */ t(
47
+ "input",
48
+ {
49
+ ref: c,
50
+ pattern: "[0-9]*",
51
+ inputMode: "decimal",
52
+ autoFocus: !0,
53
+ onWheel: (a) => a.target.blur(),
54
+ type: "number",
55
+ value: w,
56
+ onChange: (a) => {
57
+ let m = a.target.value;
58
+ m.length <= 11 && l(m);
59
+ },
60
+ onKeyDown: (a) => {
61
+ G(a);
62
+ },
63
+ placeholder: "0.0",
64
+ className: "bw-text-2xl md:bw-text-3xl bw-border-none focus:bw-placeholder:bw-opacity-0 placeholder:bw-text-left bw-h-[36px] bw-ml-auto bw-mb-1 bw-pl-1 bw-min-w-[45px] bw-max-w-[200px] bw-font-medium placeholder:bw-text-text-placeholder bw-text-text-primary bw-bg-transparent"
65
+ }
66
+ )
67
+ ] })
68
+ }
69
+ ),
70
+ /* @__PURE__ */ t("div", { children: e.coin.length && g ? f ? /* @__PURE__ */ t(W, { className: "bw-bg-background-secondary bw-rounded-md bw-h-[18px] bw-w-[100px]" }) : /* @__PURE__ */ b("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
71
+ /* @__PURE__ */ t(D, { fill: "var(--tw-text-secondary)" }),
72
+ /* @__PURE__ */ t("p", { className: "bw-text-xs bw-font-medium bw-text-text-secondary", children: /* @__PURE__ */ t(
73
+ F,
74
+ {
75
+ value: p(i),
76
+ options: {
77
+ maxDecimals: 10
78
+ }
79
+ }
80
+ ) }),
81
+ /* @__PURE__ */ t(
82
+ "button",
83
+ {
84
+ className: "bw-text-xs bw-font-normal bw-min-w-[37px] bw-h-[18px] bw-rounded-[4px] bw-px-1 bw-border bw-border-border-primary bw-text-text-secondary",
85
+ onClick: () => {
86
+ l(u(p(i), 10));
87
+ },
88
+ children: "MAX"
89
+ }
90
+ )
91
+ ] }) : /* @__PURE__ */ t(k, {}) })
92
+ ] })
93
+ ] }),
94
+ /* @__PURE__ */ t("div", { className: "bw-flex bw-justify-between bw-items-center", children: /* @__PURE__ */ t("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: /* @__PURE__ */ b("p", { className: ` bw-font-normal bw-pl-2 ${w.length ? "bw-text-text-secondary bw-text-xs md:bw-text-sm" : "bw-text-text-placeholder bw-text-[10px]"}`, children: [
95
+ "$",
96
+ u(R(w * (e == null ? void 0 : e.lastPrice)), 10)
97
+ ] }) }) })
98
+ ]
99
+ }
100
+ )
101
+ ] });
102
+ }
103
+ export {
104
+ H as default
105
+ };
@@ -1,13 +1,13 @@
1
1
  import { jsx as e, jsxs as t, Fragment as m } from "react/jsx-runtime";
2
2
  import { t as te } from "./truncate-D9t92mVX.js";
3
- import { u as r, S as o, l as we } from "./index-BAuHi89Z.js";
3
+ import { u as r, S as o, l as we } from "./index-BYmiFoJh.js";
4
4
  import { useState as ie, useEffect as le } from "react";
5
5
  import { s as a } from "./WidgetForm.module-QHJ0-m5f.js";
6
6
  import { G as ce, C as de, S as me } from "./clockIcon-C2W5xvyt.js";
7
- import { S as re } from "./down-D_76LJ5o.js";
7
+ import { S as re } from "./down-372J_rRV.js";
8
8
  import { e as se } from "./ethertousd-CC_ezooz.js";
9
- import { O as H } from "./index-DThyqr43.js";
10
- import { F as J, i as ae } from "./useRegisterError-UVP98oC5.js";
9
+ import { O as H } from "./index-TEYMoNwP.js";
10
+ import { F as J, i as ae } from "./useRegisterError-DGMdKFc9.js";
11
11
  function oe({ fill: n }) {
12
12
  return /* @__PURE__ */ e(
13
13
  "svg",
@@ -0,0 +1,125 @@
1
+ import { jsx as e, jsxs as t, Fragment as m } from "react/jsx-runtime";
2
+ import { t as te } from "./truncate-D9t92mVX.js";
3
+ import { u as r, S as o, l as we } from "./index-D0J1OD73.js";
4
+ import { useState as ie, useEffect as le } from "react";
5
+ import { s as a } from "./WidgetForm.module-QHJ0-m5f.js";
6
+ import { G as ce, C as de, S as me } from "./clockIcon-C2W5xvyt.js";
7
+ import { S as re } from "./down-hvB7J3FG.js";
8
+ import { e as se } from "./ethertousd-CC_ezooz.js";
9
+ import { O as H } from "./index-BDezoD7C.js";
10
+ import { F as J, i as ae } from "./useRegisterError-DVG0sgLq.js";
11
+ function oe({ fill: n }) {
12
+ return /* @__PURE__ */ e(
13
+ "svg",
14
+ {
15
+ width: "14",
16
+ height: "13",
17
+ viewBox: "0 0 14 13",
18
+ fill: "none",
19
+ xmlns: "http://www.w3.org/2000/svg",
20
+ children: /* @__PURE__ */ e(
21
+ "path",
22
+ {
23
+ d: "M8.96762 0.608257C9.75204 0.81844 10.4162 1.32448 10.8223 2.02798C11.1795 2.64657 11.3164 3.35994 11.2014 4.05707C11.8556 4.29389 12.405 4.76918 12.7621 5.38777L12.7691 5.3999C13.1753 6.10339 13.2814 6.93156 13.0713 7.71597C12.8611 8.50039 12.355 9.16451 11.6515 9.57067L6.18127 12.7289C5.64759 13.0371 4.95884 12.8525 4.65071 12.3188C4.34259 11.7851 4.52714 11.0964 5.06083 10.7883L10.5311 7.63C10.9192 7.40591 11.0525 6.90848 10.8284 6.52034L10.8214 6.50821C10.5973 6.12008 10.0999 5.98679 9.71177 6.21088L4.2415 9.36915C3.70781 9.67727 3.01906 9.49272 2.71094 8.95903C2.39581 8.41322 2.58736 7.7366 3.12105 7.42847L8.59132 4.27021C8.97946 4.04612 9.11274 3.54869 8.88165 3.14842C8.65756 2.76029 8.16013 2.627 7.77199 2.85109L2.30172 6.00936C1.76804 6.31748 1.08629 6.14506 0.771161 5.59924C0.463038 5.06556 0.647589 4.37681 1.18127 4.06868L6.65155 0.910419C7.35504 0.504257 8.18321 0.398074 8.96762 0.608257Z",
24
+ fill: n,
25
+ "fill-opacity": "1"
26
+ }
27
+ )
28
+ }
29
+ );
30
+ }
31
+ function ue({ routes: n, handleShowAllRoutes: K, routesData: b, price: Q, amount: X, isRoutesEnabled: v }) {
32
+ var y, N, F, S, u, k, C, $, E, j, I, L, U, A, G, O, T, z, M, R, _, B, V, q, P, W;
33
+ const x = n.data, [c, Y] = ie(), l = r((i) => i.gradient), w = r((i) => i.configuration), h = r((i) => i.fromChain), g = r((i) => i.fromCoin), p = r((i) => i.toChain), d = r((i) => i.toCoin), { defaultCoin: D } = ae;
34
+ le(() => {
35
+ var i;
36
+ if (b) {
37
+ let f = { amountInUSD: 0, amountInNative: 0 }, Z = {};
38
+ (i = b == null ? void 0 : b.fee) == null || i.forEach((s) => {
39
+ s.source == "FROM_SOURCE_WALLET" && (f.amountInUSD += Number(s.amountInUSD), f.amountInNative += Number(se(s.amountInToken, s.token.decimals)), Z = { ...s });
40
+ }), Y({ tempGasObj: f, token: Z });
41
+ }
42
+ }, [b]);
43
+ let ee = (b == null ? void 0 : b.outputAmountDisplay) || "", be = Q.toString(), ne = (N = (y = b == null ? void 0 : b.providerDetails) == null ? void 0 : y.logoUrl) != null && N.length ? (F = b == null ? void 0 : b.providerDetails) == null ? void 0 : F.logoUrl : D;
44
+ return /* @__PURE__ */ e("div", { className: "bw-mt-2", children: (S = h == null ? void 0 : h.chain) != null && S.length && ((u = g == null ? void 0 : g.coin) != null && u.length) && ((k = p == null ? void 0 : p.chain) != null && k.length) && ((C = d == null ? void 0 : d.coin) != null && C.length) && X.length && v ? n.isSuccess && !((j = (E = ($ = n.data) == null ? void 0 : $.data) == null ? void 0 : E.quotes) != null && j.length) && !n.isFetching ? /* @__PURE__ */ e("div", { className: "bw-bg-background-container bw-text-text-secondary bw-flex bw-justify-center bw-items-center bw-h-[80px] bw-relative bw-flex-col bw-border bw-border-border-primary", children: "No Routes Available" }) : n.isSuccess || n.isLoading || n.isFetching ? /* @__PURE__ */ t("div", { children: [
45
+ /* @__PURE__ */ t("div", { className: "bw-flex bw-items-center bw-justify-between", children: [
46
+ " ",
47
+ /* @__PURE__ */ t("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: [
48
+ "Get ",
49
+ d.name
50
+ ] }),
51
+ n.isFetching ? /* @__PURE__ */ e(m, {}) : /* @__PURE__ */ e("div", { onClick: K, style: { ...w.gradientStyle }, className: `bw-w-[130px] bw-cursor-pointer bw-relative bw-p-[1px] bw-text-transparent bw-text-sm bw-font-normal bw-h-[18px] bw-rounded-xl ${l || `${a.overlayshow} ${(I = w.gradientStyle) != null && I.background ? "" : "bw-bg-gradient-to-r bw-from-[#A45EFF] bw-to-[#2CFFE4]"}`}`, children: /* @__PURE__ */ e("div", { className: " bw-w-full bw-h-full bw-text-text-secondary bw-relative bw-z-10 bw-bg-background-container bw-flex bw-justify-center bw-items-center bw-text-xs bw-font-normal bw-rounded-xl", children: "Show All Routes" }) })
52
+ ] }),
53
+ /* @__PURE__ */ t("div", { className: " bw-mt-2", children: [
54
+ /* @__PURE__ */ t("div", { style: n.isFetching ? {} : { ...w.gradientStyle }, className: ` ${n.isFetching ? "bw-bg-background-secondary" : ` ${l || `${(L = w.gradientStyle) != null && L.background ? "" : "bw-bg-gradient-to-r bw-from-[#A45EFF] bw-to-[#2CFFE4]"} ${a.overlay}`} `} bw-relative bw-flex bw-justify-center bw-rounded-[8px] bw-w-full bw-p-[1px] bw-h-[86px] `, children: [
55
+ /* @__PURE__ */ t("div", { className: "bw-w-full bw-h-full bw-flex bw-px-2 bw-pb-3 bw-items-center bw-justify-between bw-bg-background-container rbw-elative bw-z-10 bw-rounded-[8px]", children: [
56
+ /* @__PURE__ */ t("div", { className: "bw-flex bw-items-start bw-gap-x-2", children: [
57
+ d != null && d.image && !n.isFetching ? /* @__PURE__ */ e("img", { src: d.image, width: 30, height: 30, className: "bw-mt-1 bw-max-w-[30px] bw-max-h-[30px] bw-object-contain bw-bg-background-secondary bw-rounded-[50%]" }) : /* @__PURE__ */ e(m, {}),
58
+ /* @__PURE__ */ t("div", { children: [
59
+ n.isFetching ? /* @__PURE__ */ e(o, { className: "bw-bg-background-secondary bw-mt-3 bw-rounded-sm bw-h-[36px] bw-min-h-[36px]", animation: "wave", variant: "rectangular", height: 36, width: 250 }) : /* @__PURE__ */ e("p", { className: "bw-text-2xl md:bw-text-3xl bw-mb-1 bw-font-medium bw-text-text-primary", children: /* @__PURE__ */ e(H, { value: ee, decimal: 12 }) }),
60
+ n.isFetching ? /* @__PURE__ */ e(o, { className: "bw-bg-background-secondary bw-mt-2 bw-rounded-sm bw-h-[20px] bw-w-[100px] bw-min-h-[20px]", variant: "rectangular", animation: "wave", height: 20, width: 100 }) : /* @__PURE__ */ t("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
61
+ /* @__PURE__ */ e(ce, { fill: "var(--tw-text-primary)" }),
62
+ /* @__PURE__ */ t("p", { className: "bw-text-xs md:bw-text-sm bw-font-medium bw-text-text-primary", children: [
63
+ "Total Fee:",
64
+ " $",
65
+ /* @__PURE__ */ e(J, { value: ((U = c == null ? void 0 : c.tempGasObj) == null ? void 0 : U.amountInUSD) || 0, options: { maxDecimals: 8 } }),
66
+ " (",
67
+ /* @__PURE__ */ e(J, { value: ((A = c == null ? void 0 : c.tempGasObj) == null ? void 0 : A.amountInNative) || 0, options: { maxDecimals: 8 } }),
68
+ ` ${((O = (G = c == null ? void 0 : c.token) == null ? void 0 : G.token) == null ? void 0 : O.symbol) || ""})`
69
+ ] })
70
+ ] })
71
+ ] })
72
+ ] }),
73
+ /* @__PURE__ */ t("div", { className: " bw-text-sm bw-font-medium bw-mt-2 bw-text-text-loaderbar ", children: [
74
+ n.isFetching ? /* @__PURE__ */ e(o, { className: "bw-bg-background-secondary bw-w-[50px] bw-rounded-sm bw-h-[20px] bw-min-h-[20px]", variant: "rectangular", animation: "wave", height: 20, width: 50 }) : /* @__PURE__ */ t("p", { className: "bw-text-text-secondary bw-font-medium bw-text-xs md:bw-text-sm", children: [
75
+ "$",
76
+ /* @__PURE__ */ e(H, { value: be, decimal: 10 })
77
+ ] }),
78
+ n.isFetching ? /* @__PURE__ */ e(o, { className: "bw-bg-background-secondary bw-w-[50px] bw-mt-2 bw-rounded-sm bw-h-[20px] bw-min-h-[20px] ", variant: "rectangular", animation: "wave", height: 20, width: 50 }) : ((M = (z = (T = x == null ? void 0 : x.data) == null ? void 0 : T.quotes) == null ? void 0 : z[0]) == null ? void 0 : M._id) === b._id ? /* @__PURE__ */ e("div", { style: { ...w.gradientStyle }, className: `${l || `${(R = w.gradientStyle) != null && R.background ? "" : "bw-bg-gradient-to-r bw-from-[#A45EFF] bw-to-[#2CFFE4]"} `} bw-mt-3 bw-text-right bw-text-transparent bw-text-[10px] bw-font-bold bw-bg-clip-text ${a.gradienttext}`, children: "BEST" }) : /* @__PURE__ */ e(m, {})
79
+ ] })
80
+ ] }),
81
+ n.isFetching ? /* @__PURE__ */ e("div", { className: "bw-absolute bw-w-[40px] bw-h-[40px] bw-bottom-[-35%] bw-z-20 ", children: /* @__PURE__ */ e(re, {}) }) : /* @__PURE__ */ e(m, {}),
82
+ /* @__PURE__ */ t("div", { className: "bw-h-[18px] bw-w-max bw-z-10 bw-min-w-[200px] bw-bg-background-container bw-flex bw-items-center bw-absolute bw-bottom-[-10%]", children: [
83
+ !n.isFetching && !we.isEmpty(b) ? /* @__PURE__ */ t("div", { className: "bw-flex bw-w-full bw-px-6 bw-items-center bw-gap-x-1", children: [
84
+ " ",
85
+ /* @__PURE__ */ t("p", { className: "bw-text-sm bw-w-full bw-text-center bw-flex bw-justify-center bw-items-center bw-font-normal bw-my-1 bw-text-text-secondary", children: [
86
+ /* @__PURE__ */ e("span", { className: "bw-text-sm bw-font-light", children: "via" }),
87
+ " ",
88
+ /* @__PURE__ */ e("img", { src: ne, className: "bw-rounded-[50%] bw-mx-[4px] bw-min-w-[18px] bw-max-h-[18px] bw-min-h-[18px]", width: 18, height: 18 }),
89
+ ((_ = b == null ? void 0 : b.providerDetails) == null ? void 0 : _.name) || "",
90
+ ": ",
91
+ b == null ? void 0 : b.protocolsUsed[0],
92
+ ((B = b == null ? void 0 : b.protocolsUsed) == null ? void 0 : B.length) <= 1 ? "" : /* @__PURE__ */ t("span", { className: "bw-ml-1 bw-text-xs bw-font-normal", children: [
93
+ `+${((V = b == null ? void 0 : b.protocolsUsed) == null ? void 0 : V.length) - 1}`,
94
+ " More"
95
+ ] }),
96
+ " "
97
+ ] }),
98
+ " "
99
+ ] }) : /* @__PURE__ */ e(m, {}),
100
+ /* @__PURE__ */ e("div", { style: n.isFetching ? {} : { ...w.gradientStyle }, className: ` ${n.isFetching ? "bw-bg-background-secondary" : ` ${l || ` ${a.overlay} ${(q = w == null ? void 0 : w.gradientStyle) != null && q.background ? "" : "bw-bg-gradient-to-r bw-from-[#A45EFF] bw-to-[#2CFFE4]"}`}`} bw-absolute bw-right-0 bw-rounded-[50%] bw-w-[4px] bw-h-[4px] ` }),
101
+ /* @__PURE__ */ e("div", { style: n.isFetching ? {} : { ...w.gradientStyle }, className: ` ${n.isFetching ? "bw-bg-background-secondary" : ` ${l || ` ${a.overlay} ${(P = w == null ? void 0 : w.gradientStyle) != null && P.background ? "" : "bw-bg-gradient-to-r bw-from-[#A45EFF] bw-to-[#2CFFE4]"}`}`} bw-absolute bw-rounded-[50%] bw-w-[4px] bw-h-[4px] ` })
102
+ ] })
103
+ ] }),
104
+ /* @__PURE__ */ e("div", { className: "bw-bg-background-container bw-flex bw-items-center bw-w-[85%] bw-mx-auto bw-rounded-b-md bw-justify-center bw-h-[60px]", children: n.isFetching ? /* @__PURE__ */ e("div", { className: "bw-mt-6 bw-w-full bw-h-[20px]" }) : /* @__PURE__ */ t("div", { className: "bw-flex bw-items-center bw-gap-x-4 bw-mt-2 bw-bg-background-container bw-justify-center ", children: [
105
+ /* @__PURE__ */ t("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
106
+ /* @__PURE__ */ e(oe, { fill: "var(--tw-text-secondary)" }),
107
+ /* @__PURE__ */ e("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: "Fee" }),
108
+ /* @__PURE__ */ e("p", { className: "bw-text-sm bw-line-through bw-font-medium bw-text-text-secondary", children: "0.1%" }),
109
+ /* @__PURE__ */ e("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: "0" })
110
+ ] }),
111
+ /* @__PURE__ */ t("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
112
+ /* @__PURE__ */ e(de, { fill: "var(--tw-text-secondary)" }),
113
+ /* @__PURE__ */ e("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: (b == null ? void 0 : b.estimatedTimeInSeconds) >= 90 ? `${Math.round(te(((b == null ? void 0 : b.estimatedTimeInSeconds) || 60) / 60, 2) || 0)}min` : `${(b == null ? void 0 : b.estimatedTimeInSeconds) || 60} secs` })
114
+ ] }),
115
+ /* @__PURE__ */ t("div", { className: " bw-gap-x-1 bw-flex bw-items-center bw-text-xs bw-font-normal bw-text-text-primary", children: [
116
+ /* @__PURE__ */ e(me, { fill: "var(--tw-text-secondary)" }),
117
+ /* @__PURE__ */ e("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: `${((W = b == null ? void 0 : b.steps) == null ? void 0 : W.length) || ""} step` })
118
+ ] })
119
+ ] }) })
120
+ ] })
121
+ ] }) : v ? /* @__PURE__ */ e("div", { className: "bw-bg-background-container bw-text-text-secondary bw-justify-center bw-items-center bw-h-[80px] bw-relative bw-flex bw-flex-col bw-border bw-border-border-primary", children: "Failed to load routes" }) : /* @__PURE__ */ e(m, {}) : /* @__PURE__ */ e(m, {}) });
122
+ }
123
+ export {
124
+ ue as default
125
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as a, Fragment as m } from "react/jsx-runtime";
2
2
  import { s as l } from "./WidgetForm.module-QHJ0-m5f.js";
3
- import { u as g } from "./index-BAuHi89Z.js";
3
+ import { u as g } from "./index-D0J1OD73.js";
4
4
  function y({ routesData: x, routes: e, quoteTimer: n, amount: c }) {
5
5
  var s, b, d, w;
6
6
  const r = g((i) => i.configuration), t = g((i) => i.gradient);
@@ -0,0 +1,28 @@
1
+ import { jsxs as o, jsx as a, Fragment as m } from "react/jsx-runtime";
2
+ import { s as l } from "./WidgetForm.module-QHJ0-m5f.js";
3
+ import { u as g } from "./index-BYmiFoJh.js";
4
+ function y({ routesData: x, routes: e, quoteTimer: n, amount: c }) {
5
+ var s, b, d, w;
6
+ const r = g((i) => i.configuration), t = g((i) => i.gradient);
7
+ return c && !e.isFetching && typeof e.data < "u" && ((d = (b = (s = e.data) == null ? void 0 : s.data) == null ? void 0 : b.quotes) != null && d.length) && !e.isError ? /* @__PURE__ */ o("div", { className: "bw-flex bw-items-center bw-gap-x-2 bw-justify-between", children: [
8
+ /* @__PURE__ */ a("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: "New Quote in" }),
9
+ /* @__PURE__ */ a("div", { className: " bw-w-[250px] bw-flex-1 bw-bg-border-primary bw-h-[3px] bw-overflow-x-hidden", children: /* @__PURE__ */ a(
10
+ "div",
11
+ {
12
+ style: {
13
+ height: "100%",
14
+ ...r.gradientStyle,
15
+ width: `${100 - n / x.deadline * 100}%`
16
+ },
17
+ className: ` ${t || `${(w = r.gradientStyle) != null && w.background ? "" : "bw-bg-gradient-to-r bw-from-[#A45EFF] bw-to-[#2CFFE4]"} ${l.overlay}`} bw-relative `
18
+ }
19
+ ) }),
20
+ /* @__PURE__ */ o("div", { style: { ...r.gradientStyle }, className: `${t ? `${t} bw-bg-clip-text bw-text-transparent` : l.gradienttext} bw-relative bw-text-right bw-w-max bw-text-2xl bw-font-semibold bw-text-transparent `, children: [
21
+ n,
22
+ "s"
23
+ ] })
24
+ ] }) : /* @__PURE__ */ a(m, {});
25
+ }
26
+ export {
27
+ y as default
28
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
- import { u as a } from "./index-BAuHi89Z.js";
2
+ import { u as a } from "./index-BYmiFoJh.js";
3
3
  function w({ fill1: o, fill2: r }) {
4
4
  return /* @__PURE__ */ s(
5
5
  "svg",
@@ -0,0 +1,51 @@
1
+ import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
+ import { u as a } from "./index-D0J1OD73.js";
3
+ function w({ fill1: o, fill2: r }) {
4
+ return /* @__PURE__ */ s(
5
+ "svg",
6
+ {
7
+ width: "37",
8
+ height: "37",
9
+ viewBox: "0 0 37 37",
10
+ fill: "none",
11
+ xmlns: "http://www.w3.org/2000/svg",
12
+ children: [
13
+ /* @__PURE__ */ t(
14
+ "circle",
15
+ {
16
+ cx: "18.5027",
17
+ cy: "18.6207",
18
+ r: "18.2551",
19
+ transform: "rotate(90 18.5027 18.6207)",
20
+ fill: o
21
+ }
22
+ ),
23
+ /* @__PURE__ */ t(
24
+ "path",
25
+ {
26
+ d: "M14.3655 7.6488L7.58782 16.5705L28.9581 16.5705L28.9581 12.7663L14.3655 12.7663L14.3655 7.6488Z",
27
+ fill: r,
28
+ "fill-opacity": "1"
29
+ }
30
+ ),
31
+ /* @__PURE__ */ t(
32
+ "path",
33
+ {
34
+ d: "M22.2517 29.0189L29.0294 20.0972L7.65911 20.0972L7.65911 23.9014L22.2517 23.9014L22.2517 29.0189Z",
35
+ fill: r,
36
+ "fill-opacity": "1"
37
+ }
38
+ )
39
+ ]
40
+ }
41
+ );
42
+ }
43
+ function p({ handleSwap: o }) {
44
+ var i, l;
45
+ const r = a((n) => n.fromCoin), c = a((n) => n.toCoin);
46
+ let e = ((i = r == null ? void 0 : r.coin) == null ? void 0 : i.length) && ((l = c.coin) == null ? void 0 : l.length);
47
+ return /* @__PURE__ */ t("div", { onClick: o, className: `${e ? "" : "bw-pointer-events-none"} bw-absolute hover:bw-scale-[0.95] bw-border bw-border-border-primary bw-rounded-[50%] bw-cursor-pointer bw-bg-background-container bw-top-[33%] bw-right-[45%] `, children: /* @__PURE__ */ t(w, { fill1: "var(--tw-background-container)", fill2: e ? "var(--tw-text-primary)" : "var(--tw-text-secondary)" }) });
48
+ }
49
+ export {
50
+ p as default
51
+ };