@blockend/widget 1.0.50 → 1.0.51

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 (117) hide show
  1. package/dist/{AllRoutes-CULIQsat.js → AllRoutes-CV0ZvXKH.js} +9 -9
  2. package/dist/{Box-NqP6AVwQ.js → Box-Cb39MKJA.js} +9 -9
  3. package/dist/EstGas-DScDuqvp.js +14426 -0
  4. package/dist/{Grow-DimeDg31.js → Grow-CyOgpnIU.js} +2 -2
  5. package/dist/{InputComp-yY8lKNsS.js → InputComp-B5PYzgiO.js} +3 -3
  6. package/dist/{LoadRoute-C9PROsCB.js → LoadRoute-DVPHaKWi.js} +4 -4
  7. package/dist/{QuotesProgress-BqAtKdL0.js → QuotesProgress-ClcaHGJM.js} +1 -1
  8. package/dist/{SwapAsset-CZhHktg2.js → SwapAsset-Blw4SFxU.js} +1 -1
  9. package/dist/{Tooltip-BiZCYxM1.js → Tooltip-C0P7i2vF.js} +15 -15
  10. package/dist/TxnButton-CHHh05qr.js +223 -0
  11. package/dist/{add-h0-mWiyZ.js → add-B1LcVGSW.js} +1 -1
  12. package/dist/{all-wallets-B1G-BF4O.js → all-wallets-BeJrQ3-B.js} +1 -1
  13. package/dist/{app-store-C6terlTd.js → app-store-CaDVWZZh.js} +1 -1
  14. package/dist/{apple-BAMP6vUT.js → apple-CkGFfDmj.js} +1 -1
  15. package/dist/{arrow-bottom-circle-GWblbKB-.js → arrow-bottom-circle-KdHp0Ttj.js} +1 -1
  16. package/dist/{arrow-bottom-5NtikK9r.js → arrow-bottom-riUHz5wW.js} +1 -1
  17. package/dist/{arrow-left-CuwEORVr.js → arrow-left-4uZ_FCKk.js} +1 -1
  18. package/dist/{arrow-right-B7p52n9L.js → arrow-right-CQx64HKf.js} +1 -1
  19. package/dist/{arrow-top-X0Z_PT4J.js → arrow-top-DCNA0fLu.js} +1 -1
  20. package/dist/{bank-I9RgXHkl.js → bank-BnOJ4hFp.js} +1 -1
  21. package/dist/{basic-DlZzE8fW.js → basic-BwxnVi-O.js} +3 -3
  22. package/dist/{browser-y883UdyY.js → browser-B5n8jjez.js} +1 -1
  23. package/dist/{card-DFwMQe6t.js → card-CyQg9FUR.js} +1 -1
  24. package/dist/{ccip-BdqG54tP.js → ccip-BJVsdO9f.js} +14 -14
  25. package/dist/{checkmark-DwHPcz7y.js → checkmark-TXxWxJ06.js} +1 -1
  26. package/dist/{checkmark-bold-CwUU9faI.js → checkmark-bold-D0241gVT.js} +1 -1
  27. package/dist/{chevron-bottom-CM8xoehI.js → chevron-bottom-BUgj0Jms.js} +1 -1
  28. package/dist/{chevron-left-Bv_KYFge.js → chevron-left-CMc-uR1E.js} +1 -1
  29. package/dist/{chevron-right-CuU7ZCUE.js → chevron-right-DgxFd0Bj.js} +1 -1
  30. package/dist/{chevron-top-FBXj-YJj.js → chevron-top-DiIar6gP.js} +1 -1
  31. package/dist/{chrome-store-BIA_g9fd.js → chrome-store-B8MGsjNr.js} +1 -1
  32. package/dist/{clock-CgcPvmV3.js → clock-Cyg_My5N.js} +1 -1
  33. package/dist/{close-Dro7okSF.js → close-RY0sGjCf.js} +1 -1
  34. package/dist/{coinPlaceholder-Df9r_k0L.js → coinPlaceholder-DE_qwsbW.js} +1 -1
  35. package/dist/{compass-zmLyV0WT.js → compass-CEHhCP6E.js} +1 -1
  36. package/dist/{copy-CIamcXhE.js → copy-FM62Yyrj.js} +1 -1
  37. package/dist/{core-2WkYhq16.js → core-BhR-bSA_.js} +16 -17
  38. package/dist/{cursor-C2EB1DLY.js → cursor-DladmQh5.js} +1 -1
  39. package/dist/{cursor-transparent-BRACM7k5.js → cursor-transparent-D0WNWO9Y.js} +1 -1
  40. package/dist/{desktop-Nj8wnhrx.js → desktop-B6eJupyA.js} +1 -1
  41. package/dist/{disconnect-BA3_H2TE.js → disconnect-VPpMScfC.js} +1 -1
  42. package/dist/{discord-BnYi_b4O.js → discord-wBtYxM-t.js} +1 -1
  43. package/dist/{down-BiWYZhrl.js → down-Owe76_31.js} +2 -2
  44. package/dist/{etherscan-Oni_KoX7.js → etherscan-9nLZ-l75.js} +1 -1
  45. package/dist/{exclamation-triangle-DensxwAC.js → exclamation-triangle-BWl_FP8O.js} +1 -1
  46. package/dist/{extension-CJ-ksDa9.js → extension-BzBM3WFk.js} +1 -1
  47. package/dist/{external-link-D2xEf8Lc.js → external-link-Dyl12aJV.js} +1 -1
  48. package/dist/{facebook-Dc9l2BHT.js → facebook-CBkAbn5g.js} +1 -1
  49. package/dist/{farcaster-PnjVCWz_.js → farcaster-BRpuoVay.js} +1 -1
  50. package/dist/{filters-BHTpF3UH.js → filters-B7NeWYDv.js} +1 -1
  51. package/dist/{getChainIds-CfrzTUBX.js → getChainIds-3ucdX-1p.js} +2 -2
  52. package/dist/getCosmosAddress-COhqxzQU.js +8398 -0
  53. package/dist/{github-SsGUhatp.js → github-BkQ92Psg.js} +1 -1
  54. package/dist/{google-ClSrT1Rw.js → google-D-_oWzT6.js} +1 -1
  55. package/dist/{hamburger-CnBL_kWz.js → hamburger-BumvcHR4.js} +5 -5
  56. package/dist/{help-circle-6WH3b0xJ.js → help-circle-YBo375ZL.js} +1 -1
  57. package/dist/{id-BpdNL8xg.js → id-125Dr2Fp.js} +1 -1
  58. package/dist/{image-D98hwlBe.js → image-KqH_HXHv.js} +1 -1
  59. package/dist/{index-BD7sxHzc.js → index-1-e5pJ-0.js} +2 -2
  60. package/dist/{index-CbunQDKM.js → index-Bpdql1-8.js} +1 -1
  61. package/dist/{index-yf9XBWfH.js → index-CEXnASRZ.js} +573 -525
  62. package/dist/{index-Kcq8t_TI.js → index-CkwDOdMt.js} +1 -1
  63. package/dist/{index-Hx1OgUt3.js → index-DJxdLFXV.js} +51 -51
  64. package/dist/index-DRUdCBxf.js +3189 -0
  65. package/dist/{index-270jcL0T.js → index-Drhw6mFH.js} +8 -7
  66. package/dist/{index-CdSs-KXV.js → index-DvuINyOl.js} +11 -11
  67. package/dist/{index-DbBaCDf8.js → index-O7aWWjZs.js} +78 -78
  68. package/dist/index-aoGlnTj5.js +70013 -0
  69. package/dist/{index-BYEfYYbR.js → index-uIBPDdlb.js} +10 -10
  70. package/dist/{index.es-extFs-He.js → index.es-C5JaVECC.js} +3032 -3244
  71. package/dist/{index.es-DNIrxJpP.js → index.es-Dg8PGfqY.js} +1 -1
  72. package/dist/index.es.js +1 -1
  73. package/dist/{info-CX4R9q8L.js → info-D7JbYWOR.js} +1 -1
  74. package/dist/{info-circle-ByA7titS.js → info-circle-wQJP08na.js} +1 -1
  75. package/dist/{lightbulb-DpdMU1eo.js → lightbulb-DvxJHkNC.js} +1 -1
  76. package/dist/{mail-D7BloLRj.js → mail-BdTr8Qhk.js} +1 -1
  77. package/dist/{mobile-BfhAPCLe.js → mobile-BYMl9NU4.js} +1 -1
  78. package/dist/{more-2Fi4UnXg.js → more-_GkH6PVz.js} +1 -1
  79. package/dist/{network-placeholder-CQk-R-eu.js → network-placeholder-RkFane_-.js} +1 -1
  80. package/dist/{nftPlaceholder-D67aKpf-.js → nftPlaceholder-brLois7k.js} +1 -1
  81. package/dist/{off-CER3l2ZF.js → off-BvoRAKQk.js} +1 -1
  82. package/dist/{play-store-D3OG1Nf5.js → play-store-PAYBmMKL.js} +1 -1
  83. package/dist/{plus-XfyglU6D.js → plus-C7ndQrVG.js} +1 -1
  84. package/dist/{qr-code-C2QzWWzi.js → qr-code-BzVDMXG9.js} +1 -1
  85. package/dist/{recycle-horizontal-BNoCX8eV.js → recycle-horizontal-CcSjuPBD.js} +1 -1
  86. package/dist/{refresh-BtgNPYm1.js → refresh-EnEB4S0q.js} +1 -1
  87. package/dist/{reown-logo-BfwHREPj.js → reown-logo-D-m3ZlCn.js} +1 -1
  88. package/dist/{search-xILtKxp2.js → search-rK2TO8oW.js} +1 -1
  89. package/dist/{send-Cbq82Ise.js → send-ewC_Dr5a.js} +1 -1
  90. package/dist/{swapHorizontal-ieu8keoA.js → swapHorizontal-D4_CLnQ1.js} +1 -1
  91. package/dist/{swapHorizontalBold-DB9kV8I4.js → swapHorizontalBold-BxJSvW__.js} +1 -1
  92. package/dist/{swapHorizontalMedium-CFcq-Eii.js → swapHorizontalMedium-BC6YI70K.js} +1 -1
  93. package/dist/{swapHorizontalRoundedBold-J-bBHkKw.js → swapHorizontalRoundedBold-BvJ7MjAm.js} +1 -1
  94. package/dist/{swapVertical-CdsB-iHQ.js → swapVertical-uQyY1dbd.js} +1 -1
  95. package/dist/{telegram-BcA4SOe-.js → telegram-Dzfv7CZN.js} +1 -1
  96. package/dist/{three-dots-tnSr7FoX.js → three-dots-O3uLZLkz.js} +1 -1
  97. package/dist/{twitch-C0EXCOL_.js → twitch-CUtrbmL-.js} +1 -1
  98. package/dist/{twitterIcon-D8gUfoR9.js → twitterIcon-DZMQ8Bmn.js} +1 -1
  99. package/dist/{unsupportedProp-ClTIJsqE.js → unsupportedProp-Dh57ZITi.js} +1 -1
  100. package/dist/useRegisterError-Bp8xpLyh.js +8912 -0
  101. package/dist/{verify-1fQ9qDGq.js → verify-1kJPzvCP.js} +1 -1
  102. package/dist/{verify-filled-B-Bua_F7.js → verify-filled-D6xGY8A5.js} +1 -1
  103. package/dist/{w3m-modal-B4ljhCgE.js → w3m-modal-slf0WTO2.js} +2 -2
  104. package/dist/{wallet-CHuFygGk.js → wallet-CI9ZKXI5.js} +1 -1
  105. package/dist/{wallet-placeholder-BY3FPHTK.js → wallet-placeholder-DHsdhsL5.js} +1 -1
  106. package/dist/{walletconnect-1yfFjEWg.js → walletconnect-YEeO3478.js} +1 -1
  107. package/dist/{warning-circle-CtfJ6Xr4.js → warning-circle-CnXCXT-G.js} +1 -1
  108. package/dist/widget.css +1 -1
  109. package/dist/{x-j-7tNFTH.js → x-ChzZn6EY.js} +1 -1
  110. package/package.json +7 -5
  111. package/dist/EstGas-Dh9afjPx.js +0 -12661
  112. package/dist/TxnButton-BZKqys7R.js +0 -212
  113. package/dist/getCosmosAddress-CQBPedP-.js +0 -9565
  114. package/dist/index-DTish3yr.js +0 -1014
  115. package/dist/index-VwOzTBuI.js +0 -30707
  116. package/dist/index-uMBmZTqD.js +0 -3010
  117. package/dist/useRegisterError-BrX0SzkP.js +0 -8812
@@ -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-BrX0SzkP.js";
3
+ import { F as m } from "./useRegisterError-Bp8xpLyh.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
  }
@@ -1,14 +1,14 @@
1
- import { jsxs as b, jsx as n, Fragment as A } from "react/jsx-runtime";
2
- import G, { useContext as H, useState as E, useEffect as v, useRef as _ } from "react";
3
- import { a as U, T as $, H as O, b as L, c as J, E as K, d as V } from "./EstGas-Dh9afjPx.js";
4
- import { u as l, l as W } from "./index-VwOzTBuI.js";
5
- import { i as D, C as Q, A as X } from "./useRegisterError-BrX0SzkP.js";
6
- import { B as Y } from "./Box-NqP6AVwQ.js";
7
- function Z() {
8
- var d, w, i, e, u, c, m, g, x, s, h, y, p, C;
9
- const t = l((T) => T.persist), r = l((T) => T.configuration), { defaultCoin: a } = D;
10
- let f = (i = (w = (d = t == null ? void 0 : t.route) == null ? void 0 : d.providerDetails) == null ? void 0 : w.logoUrl) != null && i.length ? (u = (e = t == null ? void 0 : t.route) == null ? void 0 : e.providerDetails) == null ? void 0 : u.logoUrl : a;
11
- return W.isEmpty(t.route) ? /* @__PURE__ */ n(A, {}) : /* @__PURE__ */ b("div", { className: "bw-relative bw-mt-4 bw-flex bw-justify-center ", children: [
1
+ import { jsxs as w, jsx as n, Fragment as A } from "react/jsx-runtime";
2
+ import _, { useContext as $, useState as E, useEffect as v, useRef as O } from "react";
3
+ import { a as U, T as J, H as K, b as L, c as V, E as W, d as X } from "./EstGas-DScDuqvp.js";
4
+ import { u as l, l as Y } from "./index-aoGlnTj5.js";
5
+ import { i as M, C as Q, A as Z } from "./useRegisterError-Bp8xpLyh.js";
6
+ import { B as R } from "./Box-Cb39MKJA.js";
7
+ function ee() {
8
+ var d, b, i, e, u, c, m, g, x, s, h, y, p, C;
9
+ const t = l((T) => T.persist), r = l((T) => T.configuration), { defaultCoin: a } = M;
10
+ let f = (i = (b = (d = t == null ? void 0 : t.route) == null ? void 0 : d.providerDetails) == null ? void 0 : b.logoUrl) != null && i.length ? (u = (e = t == null ? void 0 : t.route) == null ? void 0 : e.providerDetails) == null ? void 0 : u.logoUrl : a;
11
+ return Y.isEmpty(t.route) ? /* @__PURE__ */ n(A, {}) : /* @__PURE__ */ w("div", { className: "bw-relative bw-mt-4 bw-flex bw-justify-center ", children: [
12
12
  /* @__PURE__ */ n(
13
13
  "div",
14
14
  {
@@ -18,16 +18,16 @@ function Z() {
18
18
  className: "bw-w-[200px] bw-rounded-[50%] bw-absolute bw-right-auto bw-z-0 bw-left-auto bw-h-[40px]"
19
19
  }
20
20
  ),
21
- /* @__PURE__ */ b("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: [
21
+ /* @__PURE__ */ w("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
22
  " ",
23
- /* @__PURE__ */ b("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: [
23
+ /* @__PURE__ */ w("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
24
  /* @__PURE__ */ n("span", { className: "bw-text-sm bw-font-light", children: "via" }),
25
25
  " ",
26
26
  /* @__PURE__ */ n("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
27
  ((x = (g = t == null ? void 0 : t.route) == null ? void 0 : g.providerDetails) == null ? void 0 : x.name) || "",
28
28
  ": ",
29
29
  (s = t == null ? void 0 : t.route) == null ? void 0 : s.protocolsUsed[0],
30
- ((y = (h = t == null ? void 0 : t.route) == null ? void 0 : h.protocolsUsed) == null ? void 0 : y.length) <= 1 ? "" : /* @__PURE__ */ b("span", { className: "bw-ml-1 bw-text-xs bw-font-normal bw-leading-6", children: [
30
+ ((y = (h = t == null ? void 0 : t.route) == null ? void 0 : h.protocolsUsed) == null ? void 0 : y.length) <= 1 ? "" : /* @__PURE__ */ w("span", { className: "bw-ml-1 bw-text-xs bw-font-normal bw-leading-6", children: [
31
31
  `+${((C = (p = t == null ? void 0 : t.route) == null ? void 0 : p.protocolsUsed) == null ? void 0 : C.length) - 1}`,
32
32
  " More"
33
33
  ] }),
@@ -38,13 +38,13 @@ function Z() {
38
38
  ] });
39
39
  }
40
40
  let N;
41
- function R() {
41
+ function te() {
42
42
  var u, c, m, g, x;
43
- const t = l((s) => s.configuration), r = l((s) => s.persist), a = l((s) => s.setPersist), { isErrorMessage: f } = H(U), d = Math.floor(((/* @__PURE__ */ new Date()).getTime() - r.quoteStartTime) / 1e3);
44
- let w = ((u = r == null ? void 0 : r.route) == null ? void 0 : u.deadline) || 60;
45
- const [i, e] = E(w);
43
+ const t = l((s) => s.configuration), r = l((s) => s.persist), a = l((s) => s.setPersist), { isErrorMessage: f } = $(U), d = Math.floor(((/* @__PURE__ */ new Date()).getTime() - r.quoteStartTime) / 1e3);
44
+ let b = ((u = r == null ? void 0 : r.route) == null ? void 0 : u.deadline) || 60;
45
+ const [i, e] = E(b);
46
46
  return v(() => {
47
- d && e(w - d);
47
+ d && e(b - d);
48
48
  }, []), v(() => (N = setInterval(() => {
49
49
  e((s) => {
50
50
  var h;
@@ -57,13 +57,13 @@ function R() {
57
57
  });
58
58
  }, 1e3), () => clearInterval(N)), []), v(() => {
59
59
  (f || !r.isQuoteTimer) && clearInterval(N);
60
- }, [f, r.isQuoteTimer]), !(r != null && r.hash) && r.quote === "enable" ? /* @__PURE__ */ b("div", { className: "bw-absolute bw-top-0 bw-right-0 ", children: [
61
- /* @__PURE__ */ n("svg", { className: "bw-absolute bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ b("linearGradient", { id: "linearColors", x1: "0", y1: "0", x2: "1", y2: "1", children: [
60
+ }, [f, r.isQuoteTimer]), !(r != null && r.hash) && r.quote === "enable" ? /* @__PURE__ */ w("div", { className: "bw-absolute bw-top-0 bw-right-0 ", children: [
61
+ /* @__PURE__ */ n("svg", { className: "bw-absolute bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ w("linearGradient", { id: "linearColors", x1: "0", y1: "0", x2: "1", y2: "1", children: [
62
62
  /* @__PURE__ */ n("stop", { offset: "1%", stopColor: (c = t == null ? void 0 : t.gradientStyle) != null && c.spinnerColor ? (m = t == null ? void 0 : t.gradientStyle) == null ? void 0 : m.spinnerColor : "#A45EFF" }),
63
63
  /* @__PURE__ */ n("stop", { offset: "90%", stopColor: (g = t == null ? void 0 : t.gradientStyle) != null && g.spinnerColor ? (x = t == null ? void 0 : t.gradientStyle) == null ? void 0 : x.stopColor : "#2CFFE4" })
64
64
  ] }) }),
65
- /* @__PURE__ */ b(
66
- Y,
65
+ /* @__PURE__ */ w(
66
+ R,
67
67
  {
68
68
  sx: {
69
69
  position: "relative",
@@ -88,12 +88,12 @@ function R() {
88
88
  variant: "determinate",
89
89
  size: 20,
90
90
  thickness: 5,
91
- value: i / w * 100,
91
+ value: i / b * 100,
92
92
  sx: {
93
93
  "svg circle": { stroke: "url(#linearColors)" },
94
94
  position: "absolute",
95
95
  left: 0,
96
- [`& .${X.circle}`]: {
96
+ [`& .${Z.circle}`]: {
97
97
  strokeLinecap: "round"
98
98
  }
99
99
  }
@@ -104,11 +104,11 @@ function R() {
104
104
  )
105
105
  ] }) : /* @__PURE__ */ n(A, {});
106
106
  }
107
- const ee = G.memo(function({ handleOpenExchange: t, amount: r, route: a, resetAmount: f, resetBalance: d, setExchange: w }) {
108
- var k;
109
- const i = l((o) => o.setPersist), e = l((o) => o.persist), u = l((o) => o.fromChain), c = l((o) => o.fromCoin), m = l((o) => o.toChain), g = l((o) => o.toCoin), [x, s] = E(!1), [h, y] = E(!1), [p, C] = E(!1), T = !e.stepData, { txnupdate: M } = D;
107
+ const ne = _.memo(function({ handleOpenExchange: t, amount: r, route: a, resetAmount: f, resetBalance: d, setExchange: b }) {
108
+ var k, j;
109
+ const i = l((o) => o.setPersist), e = l((o) => o.persist), u = l((o) => o.fromChain), c = l((o) => o.fromCoin), m = l((o) => o.toChain), g = l((o) => o.toCoin), [x, s] = E(!1), [h, y] = E(!1), [p, C] = E(!1), T = !e.stepData, { txnupdate: q, refunded: B } = M;
110
110
  v(() => {
111
- var o, j, z, F;
111
+ var o, z, D, F;
112
112
  a != null && a.routeId && i({
113
113
  ...(o = l.getState()) == null ? void 0 : o.persist,
114
114
  routeId: a == null ? void 0 : a.routeId,
@@ -120,7 +120,7 @@ const ee = G.memo(function({ handleOpenExchange: t, amount: r, route: a, resetAm
120
120
  amount: r,
121
121
  quote: "enable",
122
122
  openAt: (/* @__PURE__ */ new Date()).getTime(),
123
- startTime: ((F = (z = (j = l) == null ? void 0 : j.getState()) == null ? void 0 : z.persist) == null ? void 0 : F.startTime) || (/* @__PURE__ */ new Date()).getTime()
123
+ startTime: ((F = (D = (z = l) == null ? void 0 : z.getState()) == null ? void 0 : D.persist) == null ? void 0 : F.startTime) || (/* @__PURE__ */ new Date()).getTime()
124
124
  });
125
125
  }, [a]);
126
126
  function I(o) {
@@ -134,63 +134,63 @@ const ee = G.memo(function({ handleOpenExchange: t, amount: r, route: a, resetAm
134
134
  }), [e == null ? void 0 : e.openAt]), v(() => (e != null && e.openAt && window.addEventListener("load", S), () => {
135
135
  window.removeEventListener("load", S);
136
136
  }), [e == null ? void 0 : e.openAt]);
137
- function q(o) {
137
+ function G(o) {
138
138
  y(o);
139
139
  }
140
- function B(o) {
140
+ function H(o) {
141
141
  C(o);
142
142
  }
143
143
  function P() {
144
144
  t(), i({}), h && d();
145
145
  }
146
- return /* @__PURE__ */ n($.Provider, { value: { isTxnSuccessful: h, handleTxnSuccess: q }, children: /* @__PURE__ */ n(U.Provider, { value: { isErrorMessage: p, handleErrorMessage: B }, children: /* @__PURE__ */ b("div", { className: "bw-w-full bw-relative bw-min-h-[610px] ", children: [
147
- /* @__PURE__ */ n(O, { handleBack: P }),
148
- /* @__PURE__ */ n("div", { className: "bw-mt-[-20px] ", children: /* @__PURE__ */ n(Z, {}) }),
149
- e != null && e.isQuoteTimer ? /* @__PURE__ */ n(R, {}) : /* @__PURE__ */ n(A, {}),
146
+ return /* @__PURE__ */ n(J.Provider, { value: { isTxnSuccessful: h, handleTxnSuccess: G }, children: /* @__PURE__ */ n(U.Provider, { value: { isErrorMessage: p, handleErrorMessage: H }, children: /* @__PURE__ */ w("div", { className: "bw-w-full bw-relative bw-min-h-[610px] ", children: [
147
+ /* @__PURE__ */ n(K, { handleBack: P }),
148
+ /* @__PURE__ */ n("div", { className: "bw-mt-[-20px] ", children: /* @__PURE__ */ n(ee, {}) }),
149
+ e != null && e.isQuoteTimer ? /* @__PURE__ */ n(te, {}) : /* @__PURE__ */ n(A, {}),
150
150
  /* @__PURE__ */ n("div", { className: "bw-flex bw-justify-between bw-items-center" }),
151
- /* @__PURE__ */ b("div", { className: "bw-flex bw-w-full bw-mt-4 bw-justify-between bw-items-center", children: [
152
- /* @__PURE__ */ b("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
151
+ /* @__PURE__ */ w("div", { className: "bw-flex bw-w-full bw-mt-4 bw-justify-between bw-items-center", children: [
152
+ /* @__PURE__ */ w("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
153
153
  /* @__PURE__ */ n("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Send" }),
154
154
  /* @__PURE__ */ n(L, { amount: e == null ? void 0 : e.amount, coinData: e.fromCoin, chainData: e.fromChain, field: "from" })
155
155
  ] }),
156
- p ? /* @__PURE__ */ n("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__ */ n("img", { src: M, width: 33, height: 30, alt: "img" }) }) : /* @__PURE__ */ n(J, { isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x, startTimer: I, error: p }),
156
+ p ? /* @__PURE__ */ n("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__ */ n("img", { src: B, width: 33, height: 30, alt: "img" }) : /* @__PURE__ */ n("img", { src: q, width: 33, height: 30, alt: "img" }) }) : /* @__PURE__ */ n(V, { isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x, startTimer: I, error: p }),
157
157
  /* @__PURE__ */ n("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__ */ b("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
158
+ /* @__PURE__ */ w("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
159
159
  /* @__PURE__ */ n("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Receive" }),
160
- /* @__PURE__ */ n(L, { amount: Number(((k = e == null ? void 0 : e.route) == null ? void 0 : k.outputAmountDisplay) || ""), coinData: e == null ? void 0 : e.toCoin, chainData: e == null ? void 0 : e.toChain, field: "to" })
160
+ /* @__PURE__ */ n(L, { amount: Number(((j = e == null ? void 0 : e.route) == null ? void 0 : j.outputAmountDisplay) || ""), coinData: e == null ? void 0 : e.toCoin, chainData: e == null ? void 0 : e.toChain, field: "to" })
161
161
  ] })
162
162
  ] }),
163
- /* @__PURE__ */ b("div", { className: "bw-h-[320px] bw-pr-1 bw-flex bw-flex-col bw-mt-8 bw-overflow-y-auto", children: [
164
- T ? /* @__PURE__ */ n(A, {}) : /* @__PURE__ */ n(K, {}),
165
- /* @__PURE__ */ n(V, { handleOpenExchange: t, setExchange: w, amount: r, startTimer: I, handleBack: P, isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x })
163
+ /* @__PURE__ */ w("div", { className: "bw-h-[320px] bw-pr-1 bw-flex bw-flex-col bw-mt-8 bw-overflow-y-auto", children: [
164
+ T ? /* @__PURE__ */ n(A, {}) : /* @__PURE__ */ n(W, {}),
165
+ /* @__PURE__ */ n(X, { handleOpenExchange: t, setExchange: b, amount: r, startTimer: I, handleBack: P, isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x })
166
166
  ] })
167
167
  ] }) }) });
168
168
  });
169
- function le({
169
+ function we({
170
170
  handleConfirmClose: t,
171
171
  routesData: r,
172
172
  amount: a,
173
173
  resetAmount: f,
174
174
  resetBalance: d,
175
- handleStopRoute: w
175
+ handleStopRoute: b
176
176
  }) {
177
- const i = _();
177
+ const i = O();
178
178
  v(() => {
179
179
  var c, m;
180
180
  !i.current && Number(
181
181
  ((c = i == null ? void 0 : i.current) == null ? void 0 : c.minOutputAmount) || ((m = i == null ? void 0 : i.current) == null ? void 0 : m.outputAmountDisplay)
182
182
  ) !== Number((r == null ? void 0 : r.minOutputAmount) || (r == null ? void 0 : r.outputAmountDisplay)) && (i.current = r);
183
183
  }, [r]), v(() => {
184
- w(!0);
184
+ b(!0);
185
185
  }, []);
186
186
  function e() {
187
- w(!1), t(!1);
187
+ b(!1), t(!1);
188
188
  }
189
189
  function u() {
190
190
  t(!1);
191
191
  }
192
192
  return /* @__PURE__ */ n(
193
- ee,
193
+ ne,
194
194
  {
195
195
  handleOpenExchange: e,
196
196
  amount: a,
@@ -202,5 +202,5 @@ function le({
202
202
  );
203
203
  }
204
204
  export {
205
- le as default
205
+ we as default
206
206
  };