@blockend/widget 1.0.49-beta.2 → 1.0.50

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 (116) hide show
  1. package/dist/{AllRoutes-SK8ZFq_x.js → AllRoutes-CULIQsat.js} +9 -9
  2. package/dist/{Box-DAMq9mQT.js → Box-NqP6AVwQ.js} +6 -6
  3. package/dist/EstGas-Dh9afjPx.js +12661 -0
  4. package/dist/{Grow-Qzfjlf_b.js → Grow-DimeDg31.js} +2 -2
  5. package/dist/{InputComp-BUhhYfS_.js → InputComp-yY8lKNsS.js} +3 -3
  6. package/dist/{LoadRoute-B9EnT59x.js → LoadRoute-C9PROsCB.js} +4 -4
  7. package/dist/{QuotesProgress-DMyLQ_Iw.js → QuotesProgress-BqAtKdL0.js} +1 -1
  8. package/dist/{SwapAsset-mgONO1Wh.js → SwapAsset-CZhHktg2.js} +1 -1
  9. package/dist/{Tooltip-CCwWxndh.js → Tooltip-BiZCYxM1.js} +3 -3
  10. package/dist/{TxnButton-CqL_9AIV.js → TxnButton-BZKqys7R.js} +23 -22
  11. package/dist/{add-DgNWpTbE.js → add-h0-mWiyZ.js} +1 -1
  12. package/dist/{all-wallets-DbLggbFH.js → all-wallets-B1G-BF4O.js} +1 -1
  13. package/dist/{app-store-BM-3bzwt.js → app-store-C6terlTd.js} +1 -1
  14. package/dist/{apple-DGgkQglq.js → apple-BAMP6vUT.js} +1 -1
  15. package/dist/{arrow-bottom-BCcsiVDf.js → arrow-bottom-5NtikK9r.js} +1 -1
  16. package/dist/{arrow-bottom-circle-BxnEnxCv.js → arrow-bottom-circle-GWblbKB-.js} +1 -1
  17. package/dist/{arrow-left-BajNw8Bo.js → arrow-left-CuwEORVr.js} +1 -1
  18. package/dist/{arrow-right-Kqyf83Ue.js → arrow-right-B7p52n9L.js} +1 -1
  19. package/dist/{arrow-top-P0YZuCsS.js → arrow-top-X0Z_PT4J.js} +1 -1
  20. package/dist/{bank-BdBlTjok.js → bank-I9RgXHkl.js} +1 -1
  21. package/dist/{basic-B7dsMTNk.js → basic-DlZzE8fW.js} +3 -3
  22. package/dist/{browser-CiQFAZ4t.js → browser-y883UdyY.js} +1 -1
  23. package/dist/{card-D94MFuQu.js → card-DFwMQe6t.js} +1 -1
  24. package/dist/{ccip-vv5r0Apm.js → ccip-BdqG54tP.js} +16 -16
  25. package/dist/{checkmark-Cucqq4L6.js → checkmark-DwHPcz7y.js} +1 -1
  26. package/dist/{checkmark-bold-C5WgesjY.js → checkmark-bold-CwUU9faI.js} +1 -1
  27. package/dist/{chevron-bottom-CyfhotQQ.js → chevron-bottom-CM8xoehI.js} +1 -1
  28. package/dist/{chevron-left-CXJ7R3iS.js → chevron-left-Bv_KYFge.js} +1 -1
  29. package/dist/{chevron-right-4ex-g3or.js → chevron-right-CuU7ZCUE.js} +1 -1
  30. package/dist/{chevron-top-BDfgSTbr.js → chevron-top-FBXj-YJj.js} +1 -1
  31. package/dist/{chrome-store-CX9plHu3.js → chrome-store-BIA_g9fd.js} +1 -1
  32. package/dist/{clock-CtQPqpVc.js → clock-CgcPvmV3.js} +1 -1
  33. package/dist/{close-CYlyCBrT.js → close-Dro7okSF.js} +1 -1
  34. package/dist/{coinPlaceholder-DS0YfqOM.js → coinPlaceholder-Df9r_k0L.js} +1 -1
  35. package/dist/{compass-DVktgTZ-.js → compass-zmLyV0WT.js} +1 -1
  36. package/dist/{copy-Bk0qGavv.js → copy-CIamcXhE.js} +1 -1
  37. package/dist/{core-DgJB3Qno.js → core-2WkYhq16.js} +17 -16
  38. package/dist/{cursor-CCqfxECm.js → cursor-C2EB1DLY.js} +1 -1
  39. package/dist/{cursor-transparent-CPbYJ9jd.js → cursor-transparent-BRACM7k5.js} +1 -1
  40. package/dist/{desktop-DAykpsO7.js → desktop-Nj8wnhrx.js} +1 -1
  41. package/dist/{disconnect-DL8vRZg2.js → disconnect-BA3_H2TE.js} +1 -1
  42. package/dist/{discord-BS8TPANA.js → discord-BnYi_b4O.js} +1 -1
  43. package/dist/{down-D6aGpC9P.js → down-BiWYZhrl.js} +2 -2
  44. package/dist/{etherscan-YSjUjqH5.js → etherscan-Oni_KoX7.js} +1 -1
  45. package/dist/{exclamation-triangle-Cd8s_lsN.js → exclamation-triangle-DensxwAC.js} +1 -1
  46. package/dist/{extension-BfYpl1LK.js → extension-CJ-ksDa9.js} +1 -1
  47. package/dist/{external-link-uF5MV_9t.js → external-link-D2xEf8Lc.js} +1 -1
  48. package/dist/{facebook-DO648yaX.js → facebook-Dc9l2BHT.js} +1 -1
  49. package/dist/{farcaster-DZF64pQM.js → farcaster-PnjVCWz_.js} +1 -1
  50. package/dist/{filters-DMTGJi0Y.js → filters-BHTpF3UH.js} +1 -1
  51. package/dist/{getChainIds-DUKOh0Kp.js → getChainIds-CfrzTUBX.js} +2 -2
  52. package/dist/getCosmosAddress-CQBPedP-.js +9565 -0
  53. package/dist/{github-DQDrN0RZ.js → github-SsGUhatp.js} +1 -1
  54. package/dist/{google-DRrIdyFk.js → google-ClSrT1Rw.js} +1 -1
  55. package/dist/{hamburger-DFh0u4ls.js → hamburger-CnBL_kWz.js} +5 -5
  56. package/dist/{help-circle-n5Ls2-2F.js → help-circle-6WH3b0xJ.js} +1 -1
  57. package/dist/{id-DbShnIoD.js → id-BpdNL8xg.js} +1 -1
  58. package/dist/{image-B5YOEd-c.js → image-D98hwlBe.js} +1 -1
  59. package/dist/index-270jcL0T.js +159 -0
  60. package/dist/{index-CL2LZuVL.js → index-BD7sxHzc.js} +2 -2
  61. package/dist/{index-BwAuNUFT.js → index-BYEfYYbR.js} +2192 -2170
  62. package/dist/{index-CktG1k9u.js → index-CbunQDKM.js} +1 -1
  63. package/dist/{index-CDBWyjo1.js → index-CdSs-KXV.js} +11 -11
  64. package/dist/index-DTish3yr.js +1014 -0
  65. package/dist/{index-DvR1iioL.js → index-DbBaCDf8.js} +78 -78
  66. package/dist/index-Hx1OgUt3.js +206 -0
  67. package/dist/{index-BC_WzIG-.js → index-Kcq8t_TI.js} +1 -1
  68. package/dist/index-VwOzTBuI.js +30707 -0
  69. package/dist/{index-D4uRM0hD.js → index-uMBmZTqD.js} +5 -5
  70. package/dist/{index-DuTB7F2j.js → index-yf9XBWfH.js} +259 -257
  71. package/dist/{index.es-DD1q2x58.js → index.es-DNIrxJpP.js} +1 -1
  72. package/dist/{index.es-BRVISbr4.js → index.es-extFs-He.js} +1712 -1625
  73. package/dist/index.es.js +1 -1
  74. package/dist/{info-5rQx4FCT.js → info-CX4R9q8L.js} +1 -1
  75. package/dist/{info-circle-DnNqx9Fu.js → info-circle-ByA7titS.js} +1 -1
  76. package/dist/{lightbulb-DEa_QXWk.js → lightbulb-DpdMU1eo.js} +1 -1
  77. package/dist/{mail-DNWPpemE.js → mail-D7BloLRj.js} +1 -1
  78. package/dist/{mobile-CsmBvAG0.js → mobile-BfhAPCLe.js} +1 -1
  79. package/dist/{more-Bjd7dOWF.js → more-2Fi4UnXg.js} +1 -1
  80. package/dist/{network-placeholder-DsQ_HMHG.js → network-placeholder-CQk-R-eu.js} +1 -1
  81. package/dist/{nftPlaceholder-KsQSrTt2.js → nftPlaceholder-D67aKpf-.js} +1 -1
  82. package/dist/{off-B0hqloiu.js → off-CER3l2ZF.js} +1 -1
  83. package/dist/{play-store-DseAgFmo.js → play-store-D3OG1Nf5.js} +1 -1
  84. package/dist/{plus-BJCNDRM3.js → plus-XfyglU6D.js} +1 -1
  85. package/dist/{qr-code-lEBAtsO4.js → qr-code-C2QzWWzi.js} +1 -1
  86. package/dist/{recycle-horizontal-K4rUQslN.js → recycle-horizontal-BNoCX8eV.js} +1 -1
  87. package/dist/{refresh-DEZrriLV.js → refresh-BtgNPYm1.js} +1 -1
  88. package/dist/{reown-logo-BHbe-CUO.js → reown-logo-BfwHREPj.js} +1 -1
  89. package/dist/{search-CIK9XN0-.js → search-xILtKxp2.js} +1 -1
  90. package/dist/{send-Bxpdb3Vf.js → send-Cbq82Ise.js} +1 -1
  91. package/dist/{swapHorizontal-BBHEuYx1.js → swapHorizontal-ieu8keoA.js} +1 -1
  92. package/dist/{swapHorizontalBold-t0VsiN4I.js → swapHorizontalBold-DB9kV8I4.js} +1 -1
  93. package/dist/{swapHorizontalMedium-PzUH_Th4.js → swapHorizontalMedium-CFcq-Eii.js} +1 -1
  94. package/dist/{swapHorizontalRoundedBold-EyDyL2Bj.js → swapHorizontalRoundedBold-J-bBHkKw.js} +1 -1
  95. package/dist/{swapVertical-CusOd1Kd.js → swapVertical-CdsB-iHQ.js} +1 -1
  96. package/dist/{telegram-DfP_Unfg.js → telegram-BcA4SOe-.js} +1 -1
  97. package/dist/{three-dots-BcnJZFUd.js → three-dots-tnSr7FoX.js} +1 -1
  98. package/dist/{twitch-CN0F2VUn.js → twitch-C0EXCOL_.js} +1 -1
  99. package/dist/{twitterIcon-DDA3Skm-.js → twitterIcon-D8gUfoR9.js} +1 -1
  100. package/dist/{unsupportedProp-CIQ48Cx8.js → unsupportedProp-ClTIJsqE.js} +1 -1
  101. package/dist/{useRegisterError-DuNi8RxR.js → useRegisterError-BrX0SzkP.js} +1 -1
  102. package/dist/{verify-BVsIUy32.js → verify-1fQ9qDGq.js} +1 -1
  103. package/dist/{verify-filled-bQ1f0Y-d.js → verify-filled-B-Bua_F7.js} +1 -1
  104. package/dist/{w3m-modal-Cg8vnNGL.js → w3m-modal-B4ljhCgE.js} +2 -2
  105. package/dist/{wallet-OISOAGe9.js → wallet-CHuFygGk.js} +1 -1
  106. package/dist/{wallet-placeholder-DZD3tMxc.js → wallet-placeholder-BY3FPHTK.js} +1 -1
  107. package/dist/{walletconnect-CCANKmqY.js → walletconnect-1yfFjEWg.js} +1 -1
  108. package/dist/{warning-circle-C_uh-wB2.js → warning-circle-CtfJ6Xr4.js} +1 -1
  109. package/dist/widget.css +1 -1
  110. package/dist/{x-BpuzG7VO.js → x-j-7tNFTH.js} +1 -1
  111. package/package.json +2 -4
  112. package/dist/EstGas-B9rFXiVW.js +0 -1486
  113. package/dist/getCosmosAddress-Cb98patK.js +0 -6075
  114. package/dist/index-BIN4LE_6.js +0 -42277
  115. package/dist/index-DEecyVOZ.js +0 -6711
  116. package/dist/index-VUJh-JIq.js +0 -206
@@ -1,4 +1,4 @@
1
- import { m as l } from "./core-DgJB3Qno.js";
1
+ import { m as l } from "./core-2WkYhq16.js";
2
2
  const c = l`<svg fill="none" viewBox="0 0 40 40">
3
3
  <g clip-path="url(#a)">
4
4
  <g clip-path="url(#b)">
@@ -1,4 +1,4 @@
1
- import { m as l } from "./core-DgJB3Qno.js";
1
+ import { m as l } from "./core-2WkYhq16.js";
2
2
  const o = l`<svg fill="none" viewBox="0 0 40 40">
3
3
  <path
4
4
  fill="#4285F4"
@@ -1,10 +1,10 @@
1
- import { z as Qo, G as en, p as S, P as e, g as de, b as ce, i as be, _ as q, d as s, s as j, e as ue, h as pe, j as ho, T as on, A as nn, f as Se, B as So, C as to, r as Ce, D as tn } from "./index-BIN4LE_6.js";
1
+ import { z as Qo, G as en, p as S, P as e, g as de, b as ce, i as be, _ as q, d as s, s as j, e as ue, h as pe, j as ho, T as on, A as nn, f as Se, B as So, C as to, r as Ce, D as tn } from "./index-VwOzTBuI.js";
2
2
  import * as a from "react";
3
- import { d as Eo, c as rn, r as ro } from "./index-CktG1k9u.js";
4
- import { G as sn, b as an, u as go, a as ln } from "./Grow-Qzfjlf_b.js";
3
+ import { d as Eo, c as rn, r as ro } from "./index-CbunQDKM.js";
4
+ import { G as sn, b as an, u as go, a as ln } from "./Grow-DimeDg31.js";
5
5
  import { jsx as T, jsxs as Oe } from "react/jsx-runtime";
6
- import { j as un, h as No, b as ke, l as dn, a as ze, k as eo, r as Ee, o as Be, m as Ue, H as oo, n as cn } from "./useRegisterError-DuNi8RxR.js";
7
- import { o as He, e as Mo, c as pn, M as fn } from "./getChainIds-DUKOh0Kp.js";
6
+ import { j as un, h as No, b as ke, l as dn, a as ze, k as eo, r as Ee, o as Be, m as Ue, H as oo, n as cn } from "./useRegisterError-BrX0SzkP.js";
7
+ import { o as He, e as Mo, c as pn, M as fn } from "./getChainIds-CfrzTUBX.js";
8
8
  function $o({
9
9
  styles: o,
10
10
  themeId: n,
@@ -1,4 +1,4 @@
1
- import { m as l } from "./core-DgJB3Qno.js";
1
+ import { m as l } from "./core-2WkYhq16.js";
2
2
  const o = l`<svg fill="none" viewBox="0 0 16 16">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { m as c } from "./core-DgJB3Qno.js";
1
+ import { m as c } from "./core-2WkYhq16.js";
2
2
  const v = c`<svg
3
3
  xmlns="http://www.w3.org/2000/svg"
4
4
  width="28"
@@ -1,4 +1,4 @@
1
- import { m as C } from "./core-DgJB3Qno.js";
1
+ import { m as C } from "./core-2WkYhq16.js";
2
2
  const l = C`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
3
3
  <path d="M4.98926 3.73932C4.2989 3.73932 3.73926 4.29896 3.73926 4.98932C3.73926 5.67968 4.2989 6.23932 4.98926 6.23932C5.67962 6.23932 6.23926 5.67968 6.23926 4.98932C6.23926 4.29896 5.67962 3.73932 4.98926 3.73932Z" fill="currentColor"/>
4
4
  <path fill-rule="evenodd" clip-rule="evenodd" d="M7.60497 0.500001H6.39504C5.41068 0.499977 4.59185 0.499958 3.93178 0.571471C3.24075 0.64634 2.60613 0.809093 2.04581 1.21619C1.72745 1.44749 1.44749 1.72745 1.21619 2.04581C0.809093 2.60613 0.64634 3.24075 0.571471 3.93178C0.499958 4.59185 0.499977 5.41065 0.500001 6.39501V7.57815C0.499998 8.37476 0.499995 9.05726 0.534869 9.62725C0.570123 10.2034 0.644114 10.7419 0.828442 11.2302C0.925651 11.4877 1.05235 11.7287 1.21619 11.9542C1.44749 12.2726 1.72745 12.5525 2.04581 12.7838C2.60613 13.1909 3.24075 13.3537 3.93178 13.4285C4.59185 13.5001 5.41066 13.5 6.39503 13.5H7.60496C8.58933 13.5 9.40815 13.5001 10.0682 13.4285C10.7593 13.3537 11.3939 13.1909 11.9542 12.7838C12.2726 12.5525 12.5525 12.2726 12.7838 11.9542C13.1909 11.3939 13.3537 10.7593 13.4285 10.0682C13.5 9.40816 13.5 8.58935 13.5 7.60497V6.39505C13.5 5.41068 13.5 4.59185 13.4285 3.93178C13.3537 3.24075 13.1909 2.60613 12.7838 2.04581C12.5525 1.72745 12.2726 1.44749 11.9542 1.21619C11.3939 0.809093 10.7593 0.64634 10.0682 0.571471C9.40816 0.499958 8.58933 0.499977 7.60497 0.500001ZM3.22138 2.83422C3.38394 2.71612 3.62634 2.61627 4.14721 2.55984C4.68679 2.50138 5.39655 2.5 6.45 2.5H7.55C8.60345 2.5 9.31322 2.50138 9.8528 2.55984C10.3737 2.61627 10.6161 2.71612 10.7786 2.83422C10.9272 2.94216 11.0578 3.07281 11.1658 3.22138C11.2839 3.38394 11.3837 3.62634 11.4402 4.14721C11.4986 4.68679 11.5 5.39655 11.5 6.45V6.49703C10.9674 6.11617 10.386 5.84936 9.74213 5.81948C8.40536 5.75745 7.3556 6.73051 6.40509 7.84229C6.33236 7.92737 6.27406 7.98735 6.22971 8.02911L6.1919 8.00514L6.17483 7.99427C6.09523 7.94353 5.98115 7.87083 5.85596 7.80302C5.56887 7.64752 5.18012 7.4921 4.68105 7.4921C4.66697 7.4921 4.6529 7.49239 4.63884 7.49299C3.79163 7.52878 3.09922 8.1106 2.62901 8.55472C2.58751 8.59392 2.54594 8.6339 2.50435 8.6745C2.50011 8.34653 2.5 7.97569 2.5 7.55V6.45C2.5 5.39655 2.50138 4.68679 2.55984 4.14721C2.61627 3.62634 2.71612 3.38394 2.83422 3.22138C2.94216 3.07281 3.07281 2.94216 3.22138 2.83422ZM10.3703 8.14825C10.6798 8.37526 11.043 8.71839 11.4832 9.20889C11.4744 9.44992 11.4608 9.662 11.4402 9.8528C11.3837 10.3737 11.2839 10.6161 11.1658 10.7786C11.0578 10.9272 10.9272 11.0578 10.7786 11.1658C10.6161 11.2839 10.3737 11.3837 9.8528 11.4402C9.31322 11.4986 8.60345 11.5 7.55 11.5H6.45C5.39655 11.5 4.68679 11.4986 4.14721 11.4402C3.62634 11.3837 3.38394 11.2839 3.22138 11.1658C3.15484 11.1174 3.0919 11.0645 3.03298 11.0075C3.10126 10.9356 3.16806 10.8649 3.23317 10.7959L3.29772 10.7276C3.55763 10.4525 3.78639 10.2126 4.00232 10.0087C4.22016 9.80294 4.39412 9.66364 4.53524 9.57742C4.63352 9.51738 4.69022 9.49897 4.71275 9.49345C4.76387 9.49804 4.81803 9.51537 4.90343 9.56162C4.96409 9.59447 5.02355 9.63225 5.11802 9.69238L5.12363 9.69595C5.20522 9.74789 5.32771 9.82587 5.46078 9.89278C5.76529 10.0459 6.21427 10.186 6.74977 10.0158C7.21485 9.86796 7.59367 9.52979 7.92525 9.14195C8.91377 7.98571 9.38267 7.80495 9.64941 7.81733C9.7858 7.82366 10.0101 7.884 10.3703 8.14825Z" fill="currentColor"/>
@@ -0,0 +1,159 @@
1
+ import { jsxs as n, jsx as s, Fragment as X } from "react/jsx-runtime";
2
+ import { T as se, a as ae, H as oe, b as Y, c as ne, E as ie, d as ce } from "./EstGas-Dh9afjPx.js";
3
+ import { useState as q, useEffect as k } from "react";
4
+ import { d as we, i as be } from "./useRegisterError-BrX0SzkP.js";
5
+ import { u as c, l as ee, c as Z, F as ue } from "./index-VwOzTBuI.js";
6
+ import { useQuery as _ } from "@tanstack/react-query";
7
+ import "./down-BiWYZhrl.js";
8
+ import "wagmi";
9
+ import "@dynamic-labs/sdk-react-core";
10
+ import "./getCosmosAddress-CQBPedP-.js";
11
+ function le({ details: F }) {
12
+ var T, N, I, w, d, p, D, b, u, E, t;
13
+ const a = {
14
+ route: {
15
+ ...F
16
+ }
17
+ }, m = c((f) => f.configuration);
18
+ return ee.isEmpty(a.route) ? /* @__PURE__ */ s("div", { className: "bw-relative bw-w-full bw-h-[41px] bw-mt-4 bw-flex bw-justify-center" }) : /* @__PURE__ */ n("div", { className: "bw-relative bw-mt-4 bw-flex bw-justify-center ", children: [
19
+ /* @__PURE__ */ s(
20
+ "div",
21
+ {
22
+ style: {
23
+ boxShadow: m && m.customTheme && ((N = (T = m.customTheme) == null ? void 0 : T.shadow) == null ? void 0 : N.boxShadow) || "1px 1px 10px 3px rgba(0, 0, 0, 0.15)"
24
+ },
25
+ className: "bw-w-[200px] bw-rounded-[50%] bw-absolute bw-right-auto bw-z-0 bw-left-auto bw-h-[40px]"
26
+ }
27
+ ),
28
+ /* @__PURE__ */ n("div", { className: "bw-flex bw-relative bw-bg-background-container bw-z-10 bw-mx-auto bw-h-[41px] bw-w-[70%] bw-border-[0.5px] bw-border-border-primary bw-border-r-0 bw-border-l-0 bw-items-center bw-gap-x-1", children: [
29
+ " ",
30
+ /* @__PURE__ */ n("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-primary", children: [
31
+ /* @__PURE__ */ s("span", { className: "bw-text-sm bw-font-light", children: "via" }),
32
+ " ",
33
+ /* @__PURE__ */ s(
34
+ "img",
35
+ {
36
+ src: (w = (I = a == null ? void 0 : a.route) == null ? void 0 : I.providerDetails) == null ? void 0 : w.logoUrl,
37
+ className: "bw-rounded-[50%] bw-mx-[4px] bw-min-w-[18px] bw-max-h-[18px] bw-min-h-[18px]",
38
+ width: 18,
39
+ height: 18
40
+ }
41
+ ),
42
+ ((p = (d = a == null ? void 0 : a.route) == null ? void 0 : d.providerDetails) == null ? void 0 : p.name) || "",
43
+ ":",
44
+ " ",
45
+ (D = a == null ? void 0 : a.route) == null ? void 0 : D.protocolsUsed[0],
46
+ ((u = (b = a == null ? void 0 : a.route) == null ? void 0 : b.protocolsUsed) == null ? void 0 : u.length) <= 1 ? "" : /* @__PURE__ */ n("span", { className: "bw-ml-1 bw-text-xs bw-font-normal bw-leading-6", children: [
47
+ `+${((t = (E = a == null ? void 0 : a.route) == null ? void 0 : E.protocolsUsed) == null ? void 0 : t.length) - 1}`,
48
+ " More"
49
+ ] }),
50
+ " "
51
+ ] }),
52
+ " "
53
+ ] })
54
+ ] });
55
+ }
56
+ const me = () => {
57
+ var z, A, R;
58
+ const F = c((r) => r.setRoute), a = c((r) => r.txnDetails), [m, T] = q(!1), [N, I] = q(!1), [w, d] = q(!1), [p, D] = q({}), b = c((r) => r.setPersist), u = c((r) => r.persist);
59
+ we();
60
+ const { txnupdate: E } = be, t = _({
61
+ queryKey: ["txnDetails", a == null ? void 0 : a.routeId],
62
+ queryFn: async () => await (await Z.fetchTxnDetails(a == null ? void 0 : a.routeId)).json(),
63
+ refetchOnWindowFocus: !1
64
+ });
65
+ k(() => {
66
+ var r, h, x, y, S, g, v, j, l, U, B, M, O, K, W, $, G, L, Q, J, V;
67
+ if (t.data) {
68
+ let e = t.data;
69
+ e.status == "error";
70
+ let C = [];
71
+ ((r = e == null ? void 0 : e.data) == null ? void 0 : r.currentStepStatus) === "success" ? (x = (h = e == null ? void 0 : e.data) == null ? void 0 : h.steps) == null || x.forEach((i) => {
72
+ C.push({ type: "preText" });
73
+ }) : ((y = e == null ? void 0 : e.data) == null ? void 0 : y.currentStepStatus) === "failed" && (d(!0), (g = (S = e == null ? void 0 : e.data) == null ? void 0 : S.steps) == null || g.forEach((i) => {
74
+ (i == null ? void 0 : i.status) === "success" ? C.push({ type: "preText" }) : (i == null ? void 0 : i.status) === "failed" && C.push({ type: "failed" });
75
+ })), b({
76
+ ...(v = c.getState()) == null ? void 0 : v.persist,
77
+ stepData: (l = e == null ? void 0 : e.data) == null ? void 0 : l.steps[(j = e == null ? void 0 : e.data) == null ? void 0 : j.currentStepIndex],
78
+ routeId: (U = e == null ? void 0 : e.data) == null ? void 0 : U.routeId,
79
+ allSteps: {
80
+ steps: (B = e == null ? void 0 : e.data) == null ? void 0 : B.steps,
81
+ currentStep: ((M = e == null ? void 0 : e.data) == null ? void 0 : M.currentStepStatus) === "success" ? ((O = e == null ? void 0 : e.data) == null ? void 0 : O.currentStepIndex) + 1 : (K = e == null ? void 0 : e.data) == null ? void 0 : K.currentStepIndex,
82
+ type: "preText"
83
+ },
84
+ stepStatus: C,
85
+ statusData: {
86
+ status: (W = e == null ? void 0 : e.data) == null ? void 0 : W.currentStepStatus
87
+ },
88
+ historyData: e == null ? void 0 : e.data,
89
+ fromCoin: ($ = e == null ? void 0 : e.data) == null ? void 0 : $.from,
90
+ toCoin: (G = e == null ? void 0 : e.data) == null ? void 0 : G.to,
91
+ route: e == null ? void 0 : e.data,
92
+ isHistory: !0,
93
+ hash: ((L = e == null ? void 0 : e.data) == null ? void 0 : L.currentStepStatus) == "in-progress" ? (V = (J = e == null ? void 0 : e.data) == null ? void 0 : J.steps[(Q = e == null ? void 0 : e.data) == null ? void 0 : Q.currentStepIndex]) == null ? void 0 : V.srcTxnHash : null
94
+ });
95
+ }
96
+ }, [t.data]), k(() => {
97
+ if (t.error) {
98
+ let r = t.error;
99
+ r.details || r.message;
100
+ }
101
+ }, [t.error]);
102
+ const f = _({
103
+ queryKey: ["chains"],
104
+ queryFn: async () => await (await Z.fetchChain()).json(),
105
+ refetchOnWindowFocus: !1,
106
+ enabled: t.isSuccess
107
+ });
108
+ k(() => {
109
+ var r, h, x, y, S, g, v;
110
+ if (f.data) {
111
+ let j = f.data, l = { ...ee.keyBy(j.data, "chainId") };
112
+ D(l), b({
113
+ ...(r = c.getState()) == null ? void 0 : r.persist,
114
+ fromChain: l[(y = (x = (h = t == null ? void 0 : t.data) == null ? void 0 : h.data) == null ? void 0 : x.from) == null ? void 0 : y.chainId],
115
+ toChain: l[(v = (g = (S = t == null ? void 0 : t.data) == null ? void 0 : S.data) == null ? void 0 : g.to) == null ? void 0 : v.chainId]
116
+ });
117
+ }
118
+ }, [f.data, t.data]);
119
+ function H() {
120
+ F("history"), b({});
121
+ }
122
+ let o = ((z = t == null ? void 0 : t.data) == null ? void 0 : z.data) || {};
123
+ function te(r) {
124
+ T(r);
125
+ }
126
+ function re(r) {
127
+ d(r);
128
+ }
129
+ function P(r) {
130
+ I(r);
131
+ }
132
+ return /* @__PURE__ */ s(se.Provider, { value: { isTxnSuccessful: m, handleTxnSuccess: te }, children: /* @__PURE__ */ s(ae.Provider, { value: { isErrorMessage: w, handleErrorMessage: re }, children: /* @__PURE__ */ s("div", { className: "bw-w-full bw-relative bw-min-h-[610px] ", children: t.isSuccess ? /* @__PURE__ */ n(X, { children: [
133
+ /* @__PURE__ */ s(oe, { handleBack: H }),
134
+ /* @__PURE__ */ s("div", { className: "bw-mt-[-20px]", children: /* @__PURE__ */ s(le, { details: o }) }),
135
+ /* @__PURE__ */ s("div", { className: "bw-flex bw-justify-between bw-items-center" }),
136
+ /* @__PURE__ */ n("div", { className: "bw-flex bw-mt-4 bw-w-full bw-justify-between bw-items-center", children: [
137
+ /* @__PURE__ */ n("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
138
+ /* @__PURE__ */ s("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Send" }),
139
+ /* @__PURE__ */ s(Y, { amount: o.inputAmountDisplay, coinData: o.from, chainData: p[(A = o == null ? void 0 : o.from) == null ? void 0 : A.chainId] || {}, field: "from" })
140
+ ] }),
141
+ w ? /* @__PURE__ */ s("div", { className: "bw-border bw-mt-5 bw-w-[65px] bw-h-[65px] bw-flex bw-items-center bw-justify-center bw-rounded-[50%] bw-bg-background-container bw-relative bw-z-10 hover:bw-opacity-100 bw-border-border-primary ", children: /* @__PURE__ */ s("img", { src: E, width: 33, height: 30, alt: "img" }) }) : /* @__PURE__ */ s(ne, { isTimerStarted: (u == null ? void 0 : u.isTimerStarted) || N, startTimer: P, error: w }),
142
+ /* @__PURE__ */ s("div", { className: "bw-w-full bw-z-0 md:bw-w-full bw-mt-5 bw-absolute bw-h-[1px] bw-bg-border-primary " }),
143
+ /* @__PURE__ */ n("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
144
+ /* @__PURE__ */ s("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Receive" }),
145
+ /* @__PURE__ */ s(Y, { amount: o.outputAmountDisplay, coinData: o.to, chainData: p[(R = o == null ? void 0 : o.to) == null ? void 0 : R.chainId] || {}, field: "to" })
146
+ ] })
147
+ ] }),
148
+ /* @__PURE__ */ n("div", { className: "bw-h-[320px] bw-pr-1 bw-flex bw-flex-col bw-mt-8 bw-overflow-y-auto", children: [
149
+ t.isLoading ? /* @__PURE__ */ s(X, {}) : /* @__PURE__ */ s(ie, {}),
150
+ /* @__PURE__ */ s(ce, { amount: t == null ? void 0 : t.inputAmountDisplay, startTimer: P, handleBack: H, isHistory: !0 })
151
+ ] })
152
+ ] }) : /* @__PURE__ */ s(ue, {}) }) }) });
153
+ };
154
+ function Ne() {
155
+ return /* @__PURE__ */ s(me, {});
156
+ }
157
+ export {
158
+ Ne as default
159
+ };
@@ -1,7 +1,7 @@
1
- import { b as G, g as U, p as P, y as H, i as q, _ as J, d as u, s as W, e as M, f as d, h as K, r as Q, j as m, P as i } from "./index-BIN4LE_6.js";
1
+ import { b as G, g as U, p as P, y as H, i as q, _ as J, d as u, s as W, e as M, f as d, h as K, r as Q, j as m, P as i } from "./index-VwOzTBuI.js";
2
2
  import * as v from "react";
3
3
  import { jsx as V, jsxs as X } from "react/jsx-runtime";
4
- import { B as Y } from "./getChainIds-DUKOh0Kp.js";
4
+ import { B as Y } from "./getChainIds-CfrzTUBX.js";
5
5
  function Z(o) {
6
6
  return U("MuiButton", o);
7
7
  }