@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,105 +0,0 @@
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,125 +0,0 @@
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,28 +0,0 @@
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,51 +0,0 @@
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
- };