@blockend/widget 1.0.55 → 1.0.56

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-CInC9QGQ.js → AllRoutes-CyD25qOP.js} +9 -9
  2. package/dist/{Box-_vN-nB2g.js → Box-BqKR6yh2.js} +10 -10
  3. package/dist/EstGas-BIwMpIdu.js +1573 -0
  4. package/dist/{Grow-CahJ50bG.js → Grow-BVXa982_.js} +2 -2
  5. package/dist/{InputComp-BA0m0-BG.js → InputComp-mfg9qUQM.js} +3 -3
  6. package/dist/{LoadRoute-myKaCOSm.js → LoadRoute-psJpcC1g.js} +4 -4
  7. package/dist/{QuotesProgress-p8uGXu3L.js → QuotesProgress-DdH9coV4.js} +1 -1
  8. package/dist/{SwapAsset-sqEVoQ3t.js → SwapAsset-DZm2uxy-.js} +1 -1
  9. package/dist/{Tooltip-BrCb3x7_.js → Tooltip-BasOLFMf.js} +3 -3
  10. package/dist/TxnButton-7H0ziW6y.js +215 -0
  11. package/dist/{add-VsfWD7ni.js → add-hMkDpQJx.js} +1 -1
  12. package/dist/{all-wallets-BkUqFobk.js → all-wallets-TzzPsASL.js} +1 -1
  13. package/dist/{app-store-Dhz1I2UU.js → app-store-Bvi3lO0E.js} +1 -1
  14. package/dist/{apple-B1A9FWmD.js → apple-DovGBZVC.js} +1 -1
  15. package/dist/{arrow-bottom-CU0SNN_M.js → arrow-bottom-Bt0z0B0d.js} +1 -1
  16. package/dist/{arrow-bottom-circle-CkK0nZyv.js → arrow-bottom-circle-B6pKx0dw.js} +1 -1
  17. package/dist/{arrow-left-B3tHSyMd.js → arrow-left-I0NpmB6b.js} +1 -1
  18. package/dist/{arrow-right-C9GNeMpg.js → arrow-right-CmtwLDja.js} +1 -1
  19. package/dist/{arrow-top-CROlaURs.js → arrow-top-DokEs3HC.js} +1 -1
  20. package/dist/{bank-C9ws6grO.js → bank-yu5LTCzK.js} +1 -1
  21. package/dist/{basic-CNZusk3T.js → basic-Cuqqlzwv.js} +3 -3
  22. package/dist/{browser-CsDSjYxB.js → browser-D-klzbTJ.js} +1 -1
  23. package/dist/{card-DEbxL9v9.js → card-C7_UmEhR.js} +1 -1
  24. package/dist/{ccip-BzuzcsZy.js → ccip-BqcIWBNQ.js} +16 -16
  25. package/dist/{checkmark-DE5590E3.js → checkmark-DGmFkx4x.js} +1 -1
  26. package/dist/{checkmark-bold-QCiYoLBv.js → checkmark-bold-K5aQHF2s.js} +1 -1
  27. package/dist/{chevron-bottom-DwDL4YMH.js → chevron-bottom-D1sa5ntV.js} +1 -1
  28. package/dist/{chevron-left-f-cfElLv.js → chevron-left-CrTavssV.js} +1 -1
  29. package/dist/{chevron-right-CUqumYdc.js → chevron-right-4tHjmIzI.js} +1 -1
  30. package/dist/{chevron-top-B51EfBCn.js → chevron-top-BGhhItI1.js} +1 -1
  31. package/dist/{chrome-store-Bye9an43.js → chrome-store-BSS7R8tR.js} +1 -1
  32. package/dist/{clock-B7Sev0vn.js → clock-C0LASIAZ.js} +1 -1
  33. package/dist/{close-0BVUAR_a.js → close-u-Xm2I00.js} +1 -1
  34. package/dist/{coinPlaceholder-BV86Cpoi.js → coinPlaceholder-C-f0Hi8-.js} +1 -1
  35. package/dist/{compass-BG0JGmer.js → compass-BePsWGiq.js} +1 -1
  36. package/dist/{copy-BK_ak0uV.js → copy-CcmBGGYL.js} +1 -1
  37. package/dist/{core-CK5YGudk.js → core-DTXll9hG.js} +16 -17
  38. package/dist/{cursor-DYlGZYqP.js → cursor-CtyBKKIZ.js} +1 -1
  39. package/dist/{cursor-transparent-C66dlXx_.js → cursor-transparent-DV-nTgKw.js} +1 -1
  40. package/dist/{desktop-MPzP06em.js → desktop-BQk6XvDk.js} +1 -1
  41. package/dist/{disconnect-S1mgcbm2.js → disconnect-Bnip6tM-.js} +1 -1
  42. package/dist/{discord-C1lCIbjj.js → discord-CixZYk_L.js} +1 -1
  43. package/dist/{down-Bs8dpUrC.js → down-DveeNmNl.js} +2 -2
  44. package/dist/{etherscan-QQa80RLT.js → etherscan-Ca4qbKIV.js} +1 -1
  45. package/dist/{exclamation-triangle-4oHle7Ol.js → exclamation-triangle-DEJeWCAG.js} +1 -1
  46. package/dist/{extension-B3zd6NTN.js → extension-Dwkk2Z0q.js} +1 -1
  47. package/dist/{external-link-DaiDaJke.js → external-link-BVJzQ3gM.js} +1 -1
  48. package/dist/{facebook-BSHOu5Eh.js → facebook-H39HpD1e.js} +1 -1
  49. package/dist/{farcaster-CNUiCN9L.js → farcaster-B0C8pA-P.js} +1 -1
  50. package/dist/{filters-CDlQ6RDt.js → filters-BfgKjq1s.js} +1 -1
  51. package/dist/{getChainIds-B0koox0j.js → getChainIds-DJyYvC8w.js} +69 -69
  52. package/dist/getCosmosAddress-wvdpMO7J.js +6075 -0
  53. package/dist/{github-B7OCLZiT.js → github-CZxxY0sj.js} +1 -1
  54. package/dist/{google-Cf3xXFpT.js → google-DbGRWYI0.js} +1 -1
  55. package/dist/{hamburger-B0j3zDc0.js → hamburger-C-fmenLo.js} +5 -5
  56. package/dist/{help-circle-DP7zV3_w.js → help-circle-BZqpCbkX.js} +1 -1
  57. package/dist/{id-BQRwktVK.js → id-BohjVAp4.js} +1 -1
  58. package/dist/{image-DFBrbvvT.js → image-DYGqq78I.js} +1 -1
  59. package/dist/index-9oZmbNJz.js +206 -0
  60. package/dist/{index-DpZHXmue.js → index-BE1KHDcY.js} +2 -2
  61. package/dist/{index-BDzrNgTC.js → index-BuTM3T5V.js} +1 -1
  62. package/dist/{index-D1GIjZ4K.js → index-C2K4V7-H.js} +1 -1
  63. package/dist/index-CJJQ2LCX.js +6712 -0
  64. package/dist/{index-CMAhUTez.js → index-Cb-vA8WO.js} +11 -11
  65. package/dist/{index-FGz1V6AR.js → index-Cb6Z5QF3.js} +233 -241
  66. package/dist/{index-CTGrN6JB.js → index-CgCWrCyY.js} +2600 -2622
  67. package/dist/{index-DrSY5n-x.js → index-OBUgs_7T.js} +11 -8
  68. package/dist/{index-1Vs2kWG_.js → index-hXKqfCGv.js} +78 -78
  69. package/dist/index-qJms-6-V.js +48905 -0
  70. package/dist/{index.es-D0JK47eg.js → index.es-BNrhKlYX.js} +24 -26
  71. package/dist/{index.es-BS6PwZoN.js → index.es-Dodf_4Pq.js} +1 -1
  72. package/dist/index.es.js +1 -1
  73. package/dist/{info-C1ZJCPTD.js → info-DpJutiAx.js} +1 -1
  74. package/dist/{info-circle-Dhmi_tCI.js → info-circle-BwhhpI3z.js} +1 -1
  75. package/dist/{lightbulb-0j0AYNED.js → lightbulb-DWYKdsBz.js} +1 -1
  76. package/dist/{mail-BtTEWpBH.js → mail-CEBxLp-q.js} +1 -1
  77. package/dist/{mobile-DvxVPngz.js → mobile-jGiJK-tS.js} +1 -1
  78. package/dist/{more-B7Wl87te.js → more-Ceddtafo.js} +1 -1
  79. package/dist/{network-placeholder-9GbY6RXW.js → network-placeholder-BiDTGsDC.js} +1 -1
  80. package/dist/{nftPlaceholder-omPs3Tyh.js → nftPlaceholder-Bdt3xlsh.js} +1 -1
  81. package/dist/{off-DzwEOAXj.js → off-CjQUQbIf.js} +1 -1
  82. package/dist/{play-store-fB4OGgDD.js → play-store-CHlzBg61.js} +1 -1
  83. package/dist/{plus-QdziAxSu.js → plus-BpDW56X5.js} +1 -1
  84. package/dist/{qr-code-C2U72CiI.js → qr-code-Cn4ixB1y.js} +1 -1
  85. package/dist/{recycle-horizontal-Bl8nBo5T.js → recycle-horizontal-DBU-2t6D.js} +1 -1
  86. package/dist/{refresh-CHVcAm40.js → refresh-DF6FHw_b.js} +1 -1
  87. package/dist/{reown-logo-C5CEAzfh.js → reown-logo-DZuLV_8T.js} +1 -1
  88. package/dist/{search-CRYtwGKs.js → search-CtvrGHTU.js} +1 -1
  89. package/dist/{send-DgcEtdkH.js → send-q0rRlrWy.js} +1 -1
  90. package/dist/{swapHorizontal-bGAC2ORL.js → swapHorizontal-y4XZEygv.js} +1 -1
  91. package/dist/{swapHorizontalBold-7AVtDAdB.js → swapHorizontalBold-DbOTapbL.js} +1 -1
  92. package/dist/{swapHorizontalMedium-BPEj2jrH.js → swapHorizontalMedium-DjJ6sIy9.js} +1 -1
  93. package/dist/{swapHorizontalRoundedBold-KZW7Q7m8.js → swapHorizontalRoundedBold-DseOC2QK.js} +1 -1
  94. package/dist/{swapVertical-R6wYRmxl.js → swapVertical-CtSwX7c_.js} +1 -1
  95. package/dist/{telegram-BU7tcQ98.js → telegram-mDVVPT-5.js} +1 -1
  96. package/dist/{three-dots-DcRrr590.js → three-dots-BC4W7vAE.js} +1 -1
  97. package/dist/{twitch-CiWBdFQ5.js → twitch-BtdlLgtD.js} +1 -1
  98. package/dist/{twitterIcon-Dx4rfeax.js → twitterIcon-FYpWmhWb.js} +1 -1
  99. package/dist/{unsupportedProp-I75ZFHZ3.js → unsupportedProp-Bk4k1APH.js} +1 -1
  100. package/dist/{useRegisterError-BGuw8xn6.js → useRegisterError-Dvrv5eoV.js} +1546 -1542
  101. package/dist/{verify-OIjFr-Yf.js → verify-Dherv62_.js} +1 -1
  102. package/dist/{verify-filled-CuIbxxfK.js → verify-filled-D86UrptW.js} +1 -1
  103. package/dist/{w3m-modal-C1jV1wrT.js → w3m-modal-DGiYzg-1.js} +2 -2
  104. package/dist/{wallet-Bk-xbtkS.js → wallet-BlgfCBaN.js} +1 -1
  105. package/dist/{wallet-placeholder-D74DpYqS.js → wallet-placeholder-BjrNOIyN.js} +1 -1
  106. package/dist/{walletconnect-BklYaQAX.js → walletconnect-__d1VRdN.js} +1 -1
  107. package/dist/{warning-circle-DlDxhMDL.js → warning-circle-CR3NTneR.js} +1 -1
  108. package/dist/{x-BNL67S5v.js → x-BVa5oeDy.js} +1 -1
  109. package/package.json +4 -2
  110. package/dist/EstGas-BaKv_yk7.js +0 -20281
  111. package/dist/TxnButton-D10GjiUs.js +0 -223
  112. package/dist/getCosmosAddress-CCWtYVNX.js +0 -9566
  113. package/dist/index-BmVN9MUZ.js +0 -160
  114. package/dist/index-DRwDQTB-.js +0 -29422
  115. package/dist/index-DTish3yr.js +0 -1014
  116. package/dist/index-RtfOj4GQ.js +0 -206
@@ -1,4 +1,4 @@
1
- import { m as l } from "./core-CK5YGudk.js";
1
+ import { m as l } from "./core-DTXll9hG.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-CK5YGudk.js";
1
+ import { m as l } from "./core-DTXll9hG.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-DRwDQTB-.js";
1
+ import { A 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, B as nn, f as Se, C as So, D as to, r as Ce, E as tn } from "./index-qJms-6-V.js";
2
2
  import * as a from "react";
3
- import { d as Eo, c as rn, r as ro } from "./index-BDzrNgTC.js";
4
- import { G as sn, b as an, u as go, a as ln } from "./Grow-CahJ50bG.js";
3
+ import { d as Eo, c as rn, r as ro } from "./index-BuTM3T5V.js";
4
+ import { G as sn, b as an, u as go, a as ln } from "./Grow-BVXa982_.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-BGuw8xn6.js";
7
- import { o as He, e as Mo, c as pn, M as fn } from "./getChainIds-B0koox0j.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-Dvrv5eoV.js";
7
+ import { o as He, e as Mo, c as pn, M as fn } from "./getChainIds-DJyYvC8w.js";
8
8
  function $o({
9
9
  styles: o,
10
10
  themeId: n,
@@ -1,4 +1,4 @@
1
- import { m as l } from "./core-CK5YGudk.js";
1
+ import { m as l } from "./core-DTXll9hG.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-CK5YGudk.js";
1
+ import { m as c } from "./core-DTXll9hG.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-CK5YGudk.js";
1
+ import { m as C } from "./core-DTXll9hG.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,206 @@
1
+ import { jsxs as c, jsx as r, Fragment as A } from "react/jsx-runtime";
2
+ import O, { useContext as J, useState as y, useEffect as g, useRef as K } from "react";
3
+ import { a as Q, e as V, T as W, H as X, b as F, c as Y, E as Z, d as R } from "./EstGas-BIwMpIdu.js";
4
+ import { u as s, l as ee } from "./index-qJms-6-V.js";
5
+ import { i as U, C as L, A as te } from "./useRegisterError-Dvrv5eoV.js";
6
+ import { B as re } from "./Box-BqKR6yh2.js";
7
+ function ne() {
8
+ var d, w, a, e, u, b, m, p, x, l, h, C, v, S;
9
+ const t = s((T) => T.persist), n = s((T) => T.configuration), { defaultCoin: i } = U;
10
+ let f = (a = (w = (d = t == null ? void 0 : t.route) == null ? void 0 : d.providerDetails) == null ? void 0 : w.logoUrl) != null && a.length ? (u = (e = t == null ? void 0 : t.route) == null ? void 0 : e.providerDetails) == null ? void 0 : u.logoUrl : i;
11
+ return ee.isEmpty(t.route) ? /* @__PURE__ */ r(A, {}) : /* @__PURE__ */ c("div", { className: "bw-relative bw-mt-4 bw-flex bw-justify-center ", children: [
12
+ /* @__PURE__ */ r(
13
+ "div",
14
+ {
15
+ style: {
16
+ boxShadow: n && n.customTheme && ((m = (b = n.customTheme) == null ? void 0 : b.shadow) == null ? void 0 : m.boxShadow) || "1px 1px 10px 3px rgba(0, 0, 0, 0.15)"
17
+ },
18
+ className: "bw-w-[200px] bw-rounded-[50%] bw-absolute bw-right-auto bw-z-0 bw-left-auto bw-h-[40px]"
19
+ }
20
+ ),
21
+ /* @__PURE__ */ c("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: [
22
+ " ",
23
+ /* @__PURE__ */ c("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: [
24
+ /* @__PURE__ */ r("span", { className: "bw-text-sm bw-font-light", children: "via" }),
25
+ " ",
26
+ /* @__PURE__ */ r("img", { src: f, className: "bw-rounded-[50%] bw-mx-[4px] bw-min-w-[18px] bw-max-h-[18px] bw-min-h-[18px]", width: 18, height: 18 }),
27
+ ((x = (p = t == null ? void 0 : t.route) == null ? void 0 : p.providerDetails) == null ? void 0 : x.name) || "",
28
+ ": ",
29
+ (l = t == null ? void 0 : t.route) == null ? void 0 : l.protocolsUsed[0],
30
+ ((C = (h = t == null ? void 0 : t.route) == null ? void 0 : h.protocolsUsed) == null ? void 0 : C.length) <= 1 ? "" : /* @__PURE__ */ c("span", { className: "bw-ml-1 bw-text-xs bw-font-normal bw-leading-6", children: [
31
+ `+${((S = (v = t == null ? void 0 : t.route) == null ? void 0 : v.protocolsUsed) == null ? void 0 : S.length) - 1}`,
32
+ " More"
33
+ ] }),
34
+ " "
35
+ ] }),
36
+ " "
37
+ ] })
38
+ ] });
39
+ }
40
+ let E;
41
+ function oe() {
42
+ var u, b, m, p, x;
43
+ const t = s((l) => l.configuration), n = s((l) => l.persist), i = s((l) => l.setPersist), { isErrorMessage: f } = J(Q), d = Math.floor(((/* @__PURE__ */ new Date()).getTime() - n.quoteStartTime) / 1e3);
44
+ let w = ((u = n == null ? void 0 : n.route) == null ? void 0 : u.deadline) || 60;
45
+ const [a, e] = y(w);
46
+ return g(() => {
47
+ d && e(w - d);
48
+ }, []), g(() => (E = setInterval(() => {
49
+ e((l) => {
50
+ var h;
51
+ return l <= 0 ? (clearInterval(E), i({
52
+ ...(h = s.getState()) == null ? void 0 : h.persist,
53
+ isQuoteTimer: !1,
54
+ showAcceptQuote: !0,
55
+ quoteStartTime: (/* @__PURE__ */ new Date()).getTime()
56
+ }), 0) : l - 1;
57
+ });
58
+ }, 1e3), () => clearInterval(E)), []), g(() => {
59
+ (f || !n.isQuoteTimer) && clearInterval(E);
60
+ }, [f, n.isQuoteTimer]), !(n != null && n.hash) && n.quote === "enable" ? /* @__PURE__ */ c("div", { className: "bw-absolute bw-top-0 bw-right-0 ", children: [
61
+ /* @__PURE__ */ r("svg", { className: "bw-absolute bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ c("linearGradient", { id: "linearColors", x1: "0", y1: "0", x2: "1", y2: "1", children: [
62
+ /* @__PURE__ */ r("stop", { offset: "1%", stopColor: (b = t == null ? void 0 : t.gradientStyle) != null && b.spinnerColor ? (m = t == null ? void 0 : t.gradientStyle) == null ? void 0 : m.spinnerColor : "#A45EFF" }),
63
+ /* @__PURE__ */ r("stop", { offset: "90%", stopColor: (p = t == null ? void 0 : t.gradientStyle) != null && p.spinnerColor ? (x = t == null ? void 0 : t.gradientStyle) == null ? void 0 : x.stopColor : "#2CFFE4" })
64
+ ] }) }),
65
+ /* @__PURE__ */ c(
66
+ re,
67
+ {
68
+ sx: {
69
+ position: "relative",
70
+ display: "inline-flex"
71
+ },
72
+ children: [
73
+ /* @__PURE__ */ r(
74
+ L,
75
+ {
76
+ variant: "determinate",
77
+ sx: {
78
+ color: "var(--tw-border-primary)"
79
+ },
80
+ size: 20,
81
+ thickness: 2,
82
+ value: 100
83
+ }
84
+ ),
85
+ /* @__PURE__ */ r(
86
+ L,
87
+ {
88
+ variant: "determinate",
89
+ size: 20,
90
+ thickness: 5,
91
+ value: a / w * 100,
92
+ sx: {
93
+ "svg circle": { stroke: "url(#linearColors)" },
94
+ position: "absolute",
95
+ left: 0,
96
+ [`& .${te.circle}`]: {
97
+ strokeLinecap: "round"
98
+ }
99
+ }
100
+ }
101
+ )
102
+ ]
103
+ }
104
+ )
105
+ ] }) : /* @__PURE__ */ r(A, {});
106
+ }
107
+ const ae = O.memo(function({ handleOpenExchange: t, amount: n, route: i, resetAmount: f, resetBalance: d, setExchange: w }) {
108
+ var k, D;
109
+ const a = s((o) => o.setPersist), e = s((o) => o.persist), u = s((o) => o.fromChain), b = s((o) => o.fromCoin), m = s((o) => o.toChain), p = s((o) => o.toCoin), [x, l] = y(!1), [h, C] = y(!1), [v, S] = y(!1), [T, q] = y({}), B = !e.stepData, { txnupdate: G, refunded: H } = U;
110
+ g(() => {
111
+ var o, j, M, z;
112
+ i != null && i.routeId && a({
113
+ ...(o = s.getState()) == null ? void 0 : o.persist,
114
+ routeId: i == null ? void 0 : i.routeId,
115
+ route: i,
116
+ toChain: m,
117
+ toCoin: p,
118
+ fromChain: u,
119
+ fromCoin: b,
120
+ amount: n,
121
+ quote: "enable",
122
+ openAt: (/* @__PURE__ */ new Date()).getTime(),
123
+ startTime: ((z = (M = (j = s) == null ? void 0 : j.getState()) == null ? void 0 : M.persist) == null ? void 0 : z.startTime) || (/* @__PURE__ */ new Date()).getTime()
124
+ });
125
+ }, [i]);
126
+ function I(o) {
127
+ l(o);
128
+ }
129
+ function N() {
130
+ ((e == null ? void 0 : e.openAt) + 60 * 60 * 1e3 - (/* @__PURE__ */ new Date()).getTime()) / 1e3 / 60 <= 0 && document.visibilityState === "visible" && (a({ allSteps: { steps: null, currentStep: 0 }, stepData: {} }), t(), f());
131
+ }
132
+ g(() => (e != null && e.openAt && window.addEventListener("visibilitychange", N), () => {
133
+ window.removeEventListener("visibilitychange", N);
134
+ }), [e == null ? void 0 : e.openAt]), g(() => (e != null && e.openAt && window.addEventListener("load", N), () => {
135
+ window.removeEventListener("load", N);
136
+ }), [e == null ? void 0 : e.openAt]);
137
+ function _(o) {
138
+ C(o);
139
+ }
140
+ function $(o) {
141
+ S(o);
142
+ }
143
+ function P() {
144
+ t(), a({ allSteps: { steps: null, currentStep: 0 }, stepData: {} }), h && d();
145
+ }
146
+ return /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(W.Provider, { value: { isTxnSuccessful: h, handleTxnSuccess: _ }, children: /* @__PURE__ */ r(Q.Provider, { value: { isErrorMessage: v, handleErrorMessage: $, errorMessage: T, setErrorMessage: q }, children: /* @__PURE__ */ c("div", { className: "bw-w-full bw-relative bw-min-h-[610px] ", children: [
147
+ /* @__PURE__ */ r(X, { handleBack: P }),
148
+ /* @__PURE__ */ r("div", { className: "bw-mt-[-20px] ", children: /* @__PURE__ */ r(ne, {}) }),
149
+ e != null && e.isQuoteTimer ? /* @__PURE__ */ r(oe, {}) : /* @__PURE__ */ r(A, {}),
150
+ /* @__PURE__ */ r("div", { className: "bw-flex bw-justify-between bw-items-center" }),
151
+ /* @__PURE__ */ c("div", { className: "bw-flex bw-w-full bw-mt-4 bw-justify-between bw-items-center", children: [
152
+ /* @__PURE__ */ c("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
153
+ /* @__PURE__ */ r("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Send" }),
154
+ /* @__PURE__ */ r(F, { amount: e == null ? void 0 : e.amount, coinData: e.fromCoin, chainData: e.fromChain, field: "from" })
155
+ ] }),
156
+ v ? /* @__PURE__ */ r("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: ((k = e == null ? void 0 : e.statusData) == null ? void 0 : k.status) === "refunded" ? /* @__PURE__ */ r("img", { src: H, width: 33, height: 30, alt: "img" }) : /* @__PURE__ */ r("img", { src: G, width: 33, height: 30, alt: "img" }) }) : /* @__PURE__ */ r(Y, { isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x, startTimer: I, error: v }),
157
+ /* @__PURE__ */ r("div", { className: "bw-w-full bw-z-0 md:bw-w-full bw-mt-5 bw-absolute bw-h-[1px] bw-bg-border-primary " }),
158
+ /* @__PURE__ */ c("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
159
+ /* @__PURE__ */ r("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Receive" }),
160
+ /* @__PURE__ */ r(F, { amount: Number(((D = e == null ? void 0 : e.route) == null ? void 0 : D.outputAmountDisplay) || ""), coinData: e == null ? void 0 : e.toCoin, chainData: e == null ? void 0 : e.toChain, field: "to" })
161
+ ] })
162
+ ] }),
163
+ /* @__PURE__ */ c("div", { className: "bw-h-[320px] bw-pr-1 bw-flex bw-flex-col bw-mt-8 bw-overflow-y-auto", children: [
164
+ B ? /* @__PURE__ */ r(A, {}) : /* @__PURE__ */ r(Z, {}),
165
+ /* @__PURE__ */ r(R, { handleOpenExchange: t, setExchange: w, amount: n, startTimer: I, handleBack: P, isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x })
166
+ ] })
167
+ ] }) }) }) });
168
+ });
169
+ function me({
170
+ handleConfirmClose: t,
171
+ routesData: n,
172
+ amount: i,
173
+ resetAmount: f,
174
+ resetBalance: d,
175
+ handleStopRoute: w
176
+ }) {
177
+ const a = K();
178
+ g(() => {
179
+ var b, m;
180
+ !a.current && Number(
181
+ ((b = a == null ? void 0 : a.current) == null ? void 0 : b.minOutputAmount) || ((m = a == null ? void 0 : a.current) == null ? void 0 : m.outputAmountDisplay)
182
+ ) !== Number((n == null ? void 0 : n.minOutputAmount) || (n == null ? void 0 : n.outputAmountDisplay)) && (a.current = n);
183
+ }, [n]), g(() => {
184
+ w(!0);
185
+ }, []);
186
+ function e() {
187
+ w(!1), t(!1);
188
+ }
189
+ function u() {
190
+ t(!1);
191
+ }
192
+ return /* @__PURE__ */ r(
193
+ ae,
194
+ {
195
+ handleOpenExchange: e,
196
+ amount: i,
197
+ route: n,
198
+ resetAmount: f,
199
+ resetBalance: d,
200
+ setExchange: u
201
+ }
202
+ );
203
+ }
204
+ export {
205
+ me as default
206
+ };
@@ -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-DRwDQTB-.js";
1
+ import { b as G, g as U, p as P, z 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-qJms-6-V.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-B0koox0j.js";
4
+ import { B as Y } from "./getChainIds-DJyYvC8w.js";
5
5
  function Z(o) {
6
6
  return U("MuiButton", o);
7
7
  }
@@ -1,4 +1,4 @@
1
- import { g as O, b as Y, i as M, _ as w, d as P, s as z, e as L, f as v, h as b, p as g, P as c } from "./index-DRwDQTB-.js";
1
+ import { g as O, b as Y, i as M, _ as w, d as P, s as z, e as L, f as v, h as b, p as g, P as c } from "./index-qJms-6-V.js";
2
2
  import * as C from "react";
3
3
  import { jsxs as F, jsx as x } from "react/jsx-runtime";
4
4
  function Z(r, i = 166) {
@@ -1,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import "react";
3
- import { F as m } from "./useRegisterError-BGuw8xn6.js";
3
+ import { F as m } from "./useRegisterError-Dvrv5eoV.js";
4
4
  function n({ value: t, decimal: o }) {
5
5
  return t.length ? /* @__PURE__ */ r(m, { value: t, options: { maxDecimals: o } }) : t;
6
6
  }