@blockend/widget 1.0.48 → 1.0.49-beta.3

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 (115) hide show
  1. package/dist/{AllRoutes-GG915rBw.js → AllRoutes-CMV2Aikv.js} +9 -9
  2. package/dist/{Box-DdtDQFy9.js → Box-BLU3JkBD.js} +7 -7
  3. package/dist/EstGas-ywgk-29s.js +1486 -0
  4. package/dist/{Grow-BUfBvEgN.js → Grow-BNGsloYF.js} +2 -2
  5. package/dist/{InputComp-90kAsSUc.js → InputComp-My-aSA0q.js} +3 -3
  6. package/dist/{LoadRoute-D9IO_K77.js → LoadRoute-DEc0qJGB.js} +4 -4
  7. package/dist/{QuotesProgress-BoWKVDeg.js → QuotesProgress-DyCbRkmW.js} +1 -1
  8. package/dist/{SwapAsset-BWDjgwJW.js → SwapAsset-VBFtcbjw.js} +1 -1
  9. package/dist/{Tooltip-SvgmfCp2.js → Tooltip-DkFdda4P.js} +3 -3
  10. package/dist/{TxnButton-DVWpwZmv.js → TxnButton-DtS9Dw0R.js} +22 -23
  11. package/dist/{add-CsVPUZji.js → add-CIcwZ7BM.js} +1 -1
  12. package/dist/{all-wallets-CFmAxEw7.js → all-wallets-Bh1_cRVE.js} +1 -1
  13. package/dist/{app-store-B4mtp1mU.js → app-store-1QxQqMCa.js} +1 -1
  14. package/dist/{apple-C-vXA_-Q.js → apple-CtdqvHaM.js} +1 -1
  15. package/dist/{arrow-bottom-6CDjU1eE.js → arrow-bottom-D-GL64pV.js} +1 -1
  16. package/dist/{arrow-bottom-circle-DN9qZO8D.js → arrow-bottom-circle-BZZ6oS3I.js} +1 -1
  17. package/dist/{arrow-left-CjJLmw6Y.js → arrow-left-CtM73IFh.js} +1 -1
  18. package/dist/{arrow-right-BpTLDTMX.js → arrow-right-C_3it8wU.js} +1 -1
  19. package/dist/{arrow-top-DU1aEYkh.js → arrow-top-B_akssLE.js} +1 -1
  20. package/dist/{bank-CtT_v4OA.js → bank-BAZaWTHP.js} +1 -1
  21. package/dist/{basic-CQ9dw-89.js → basic-BQ6VlY2V.js} +3 -3
  22. package/dist/{browser-BzC416Ga.js → browser-D-m8U4qp.js} +1 -1
  23. package/dist/{card-D9RpFcx0.js → card-CZMLg_hs.js} +1 -1
  24. package/dist/{ccip-Dzss3Y16.js → ccip-Cr2zG-xI.js} +55 -55
  25. package/dist/{checkmark-CtUAX8EG.js → checkmark-Db5ONmjX.js} +1 -1
  26. package/dist/{checkmark-bold-VZL2SuxB.js → checkmark-bold-CNdIOniu.js} +1 -1
  27. package/dist/{chevron-bottom-CV_Ifosh.js → chevron-bottom-B4LZ07P4.js} +1 -1
  28. package/dist/{chevron-left-vauViuBF.js → chevron-left-BOiLmc3e.js} +1 -1
  29. package/dist/{chevron-right-Ch0-iP-t.js → chevron-right-C8aUeQEC.js} +1 -1
  30. package/dist/{chevron-top-fvIkVky4.js → chevron-top-DQnpWjJP.js} +1 -1
  31. package/dist/{chrome-store-CgMxFYMx.js → chrome-store-B2Ctt_Iw.js} +1 -1
  32. package/dist/{clock-CD_Be9u1.js → clock-4Nkh4x1b.js} +1 -1
  33. package/dist/{close-CuvWjYvJ.js → close-CiK1EUke.js} +1 -1
  34. package/dist/{coinPlaceholder-UVXPM539.js → coinPlaceholder-CcnyeBg0.js} +1 -1
  35. package/dist/{compass-DORfxdqQ.js → compass-C8XMPb-_.js} +1 -1
  36. package/dist/{copy-BWAfHXcr.js → copy-D-ZlELIO.js} +1 -1
  37. package/dist/{core-CxJ55_hm.js → core-CE7ZvgmO.js} +16 -17
  38. package/dist/{cursor-hvQCvuY0.js → cursor-RiCqhq_2.js} +1 -1
  39. package/dist/{cursor-transparent-BdJs-4PE.js → cursor-transparent-Cpuw-bx1.js} +1 -1
  40. package/dist/{desktop-C16HW3Xx.js → desktop-BcnqlO6_.js} +1 -1
  41. package/dist/{disconnect-DRUAX0I2.js → disconnect-BXI_7OV3.js} +1 -1
  42. package/dist/{discord-I752GmaU.js → discord-DZgQjBjt.js} +1 -1
  43. package/dist/{down-ZnYZwmwQ.js → down-C8I1GmTa.js} +2 -2
  44. package/dist/{etherscan--xkrRjIS.js → etherscan-DHArh1Kg.js} +1 -1
  45. package/dist/{exclamation-triangle-DXj7lIwe.js → exclamation-triangle-Dp1k7Xyg.js} +1 -1
  46. package/dist/{extension-DBPkceL0.js → extension-Dav7fjmZ.js} +1 -1
  47. package/dist/{external-link-CbPqDFzI.js → external-link-DWQsWqey.js} +1 -1
  48. package/dist/{facebook-CFI3uzSu.js → facebook-xI7TIm3V.js} +1 -1
  49. package/dist/{farcaster-DN93zQp8.js → farcaster-ByqbNlsO.js} +1 -1
  50. package/dist/{filters-C6BY9h_R.js → filters-CPWYBjRc.js} +1 -1
  51. package/dist/{getChainIds-DP8l1FCH.js → getChainIds-DY_neilc.js} +2 -2
  52. package/dist/getCosmosAddress-_BeZxDkv.js +6075 -0
  53. package/dist/{github-DD1Wyw9Y.js → github-prZ8t34_.js} +1 -1
  54. package/dist/{google-D1E_G9Jw.js → google-CcUsHax7.js} +1 -1
  55. package/dist/{hamburger-DPRWU8rW.js → hamburger-BJOW28p-.js} +454 -461
  56. package/dist/{help-circle-MjewM8fh.js → help-circle-XwyOApi8.js} +1 -1
  57. package/dist/{id-DWrEAL0Y.js → id-Ftjt1pHJ.js} +1 -1
  58. package/dist/{image-B1OlMZ_D.js → image-D3UyCNRs.js} +1 -1
  59. package/dist/{index-CztKubZB.js → index-B518UW03.js} +78 -78
  60. package/dist/{index-BtSjpRJE.js → index-BHDpDBXv.js} +257 -259
  61. package/dist/index-BaPgYkZ_.js +42277 -0
  62. package/dist/index-BtI5pdx-.js +6711 -0
  63. package/dist/{index-D7pkN4od.js → index-BykNQI23.js} +4 -4
  64. package/dist/{index-CkvOQTTa.js → index-Cea3JIZ5.js} +1 -1
  65. package/dist/{index-B8t6PLz8.js → index-DmHzoK8Z.js} +2 -2
  66. package/dist/{index-8FeyhkrZ.js → index-ME6WmREi.js} +1 -1
  67. package/dist/{index-ByE0Pqgp.js → index-V7wGfBWj.js} +2600 -2625
  68. package/dist/index-klVp-SBb.js +206 -0
  69. package/dist/{index-B5AWUOpG.js → index-vg6UIFZD.js} +11 -11
  70. package/dist/{index.es-leDx9_0K.js → index.es-TqUYQAoH.js} +1 -1
  71. package/dist/{index.es-COEAI0x5.js → index.es-ng6OTpYR.js} +1625 -1712
  72. package/dist/index.es.js +1 -1
  73. package/dist/{info-BIglQyok.js → info-DBsGMB_O.js} +1 -1
  74. package/dist/{info-circle-ygUHgPMr.js → info-circle-Bx2PIRGJ.js} +1 -1
  75. package/dist/{lightbulb-n3p60wb2.js → lightbulb-KoBLmJby.js} +1 -1
  76. package/dist/{mail-CvJFMwVR.js → mail-CZKrqpFU.js} +1 -1
  77. package/dist/{mobile-2Q4FMkp7.js → mobile-CN4pmWVU.js} +1 -1
  78. package/dist/{more-Dl6UNVYf.js → more-1brm4Q7X.js} +1 -1
  79. package/dist/{network-placeholder-BHa-8IYu.js → network-placeholder-CAlA46Kt.js} +1 -1
  80. package/dist/{nftPlaceholder-C-kNqpt7.js → nftPlaceholder-DHzDfy6E.js} +1 -1
  81. package/dist/{off-vA0xiDBU.js → off-1usMfWM7.js} +1 -1
  82. package/dist/{play-store-BdESAvn7.js → play-store-C_t-IwRL.js} +1 -1
  83. package/dist/{plus-CI5D39lI.js → plus-B5w-_zg6.js} +1 -1
  84. package/dist/{qr-code-DLg6lOTi.js → qr-code-DQh--5Nd.js} +1 -1
  85. package/dist/{recycle-horizontal-3J42KsWq.js → recycle-horizontal-CBNgoZdm.js} +1 -1
  86. package/dist/{refresh-BEgbmmM1.js → refresh-gjkJ3fAS.js} +1 -1
  87. package/dist/{reown-logo-ATUFBzuh.js → reown-logo-BmVLHjjQ.js} +1 -1
  88. package/dist/{search-Dz34DwRb.js → search-CuK6y19Q.js} +1 -1
  89. package/dist/{send-B57ao-nU.js → send-CIaAYk7c.js} +1 -1
  90. package/dist/{swapHorizontal-po0eESEE.js → swapHorizontal-Dl8NLG_i.js} +1 -1
  91. package/dist/{swapHorizontalBold-jdwjn6I2.js → swapHorizontalBold-BnPyIFiA.js} +1 -1
  92. package/dist/{swapHorizontalMedium-DFkcNnL0.js → swapHorizontalMedium-CEivQ8L0.js} +1 -1
  93. package/dist/{swapHorizontalRoundedBold-BDIZiNDG.js → swapHorizontalRoundedBold-C9ACKZnM.js} +1 -1
  94. package/dist/{swapVertical-CCv4s5uT.js → swapVertical-ZEEyof9e.js} +1 -1
  95. package/dist/{telegram-GAjmXYBs.js → telegram-B3c-a3zh.js} +1 -1
  96. package/dist/{three-dots-DcqTLEOU.js → three-dots-DUit7LCw.js} +1 -1
  97. package/dist/{twitch-BGYB_svY.js → twitch-3MyiQW6J.js} +1 -1
  98. package/dist/{twitterIcon-BmqcVfVS.js → twitterIcon-DrkQHEH8.js} +1 -1
  99. package/dist/{unsupportedProp-AqCr28aR.js → unsupportedProp-BXXskXK0.js} +1 -1
  100. package/dist/{useRegisterError-pQkE1Atn.js → useRegisterError-D172QfL7.js} +1 -1
  101. package/dist/{verify-C6RCoVYC.js → verify-Ez0YdpbL.js} +1 -1
  102. package/dist/{verify-filled-BqhB0MZC.js → verify-filled-Cof7FJLP.js} +1 -1
  103. package/dist/{w3m-modal-DZ52Gjxh.js → w3m-modal-D9qNteo9.js} +2 -2
  104. package/dist/{wallet-XsxVSYSp.js → wallet-D8n_ZZlC.js} +1 -1
  105. package/dist/{wallet-placeholder-CTkFMX8-.js → wallet-placeholder-C7X2GW9S.js} +1 -1
  106. package/dist/{walletconnect-BwzMMj6O.js → walletconnect-CKYpGIEb.js} +1 -1
  107. package/dist/{warning-circle-Ri_DXk1y.js → warning-circle-BcBltCn2.js} +1 -1
  108. package/dist/{x-Dfc3V8pm.js → x-BppUkwM-.js} +1 -1
  109. package/package.json +4 -2
  110. package/dist/EstGas-M3tvG2C0.js +0 -12724
  111. package/dist/getCosmosAddress-B5ISgLr5.js +0 -9565
  112. package/dist/index-BGoawJS_.js +0 -206
  113. package/dist/index-DRmMe_Lj.js +0 -30453
  114. package/dist/index-DTish3yr.js +0 -1014
  115. package/dist/index-Ga_wsstH.js +0 -159
@@ -0,0 +1,206 @@
1
+ import { jsxs as c, jsx as r, Fragment as A } from "react/jsx-runtime";
2
+ import _, { useContext as $, useState as y, useEffect as p, useRef as O } from "react";
3
+ import { a as L, e as J, T as K, H as V, b as z, c as W, E as X, d as Y } from "./EstGas-ywgk-29s.js";
4
+ import { u as s, l as Z } from "./index-BaPgYkZ_.js";
5
+ import { i as Q, C as F, A as R } from "./useRegisterError-D172QfL7.js";
6
+ import { B as ee } from "./Box-BLU3JkBD.js";
7
+ function te() {
8
+ var d, b, i, e, u, w, m, v, x, l, h, C, g, S;
9
+ const t = s((T) => T.persist), n = s((T) => T.configuration), { defaultCoin: a } = Q;
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 Z.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 = (w = n.customTheme) == null ? void 0 : w.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 = (v = t == null ? void 0 : t.route) == null ? void 0 : v.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 = (g = t == null ? void 0 : t.route) == null ? void 0 : g.protocolsUsed) == null ? void 0 : S.length) - 1}`,
32
+ " More"
33
+ ] }),
34
+ " "
35
+ ] }),
36
+ " "
37
+ ] })
38
+ ] });
39
+ }
40
+ let E;
41
+ function re() {
42
+ var u, w, m, v, x;
43
+ const t = s((l) => l.configuration), n = s((l) => l.persist), a = s((l) => l.setPersist), { isErrorMessage: f } = $(L), d = Math.floor(((/* @__PURE__ */ new Date()).getTime() - n.quoteStartTime) / 1e3);
44
+ let b = ((u = n == null ? void 0 : n.route) == null ? void 0 : u.deadline) || 60;
45
+ const [i, e] = y(b);
46
+ return p(() => {
47
+ d && e(b - d);
48
+ }, []), p(() => (E = setInterval(() => {
49
+ e((l) => {
50
+ var h;
51
+ return l <= 0 ? (clearInterval(E), a({
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)), []), p(() => {
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: (w = t == null ? void 0 : t.gradientStyle) != null && w.spinnerColor ? (m = t == null ? void 0 : t.gradientStyle) == null ? void 0 : m.spinnerColor : "#A45EFF" }),
63
+ /* @__PURE__ */ r("stop", { offset: "90%", stopColor: (v = t == null ? void 0 : t.gradientStyle) != null && v.spinnerColor ? (x = t == null ? void 0 : t.gradientStyle) == null ? void 0 : x.stopColor : "#2CFFE4" })
64
+ ] }) }),
65
+ /* @__PURE__ */ c(
66
+ ee,
67
+ {
68
+ sx: {
69
+ position: "relative",
70
+ display: "inline-flex"
71
+ },
72
+ children: [
73
+ /* @__PURE__ */ r(
74
+ F,
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
+ F,
87
+ {
88
+ variant: "determinate",
89
+ size: 20,
90
+ thickness: 5,
91
+ value: i / b * 100,
92
+ sx: {
93
+ "svg circle": { stroke: "url(#linearColors)" },
94
+ position: "absolute",
95
+ left: 0,
96
+ [`& .${R.circle}`]: {
97
+ strokeLinecap: "round"
98
+ }
99
+ }
100
+ }
101
+ )
102
+ ]
103
+ }
104
+ )
105
+ ] }) : /* @__PURE__ */ r(A, {});
106
+ }
107
+ const ne = _.memo(function({ handleOpenExchange: t, amount: n, route: a, resetAmount: f, resetBalance: d, setExchange: b }) {
108
+ var k;
109
+ const i = s((o) => o.setPersist), e = s((o) => o.persist), u = s((o) => o.fromChain), w = s((o) => o.fromCoin), m = s((o) => o.toChain), v = s((o) => o.toCoin), [x, l] = y(!1), [h, C] = y(!1), [g, S] = y(!1), [T, U] = y({}), q = !e.stepData, { txnupdate: B } = Q;
110
+ p(() => {
111
+ var o, j, D, M;
112
+ a != null && a.routeId && i({
113
+ ...(o = s.getState()) == null ? void 0 : o.persist,
114
+ routeId: a == null ? void 0 : a.routeId,
115
+ route: a,
116
+ toChain: m,
117
+ toCoin: v,
118
+ fromChain: u,
119
+ fromCoin: w,
120
+ amount: n,
121
+ quote: "enable",
122
+ openAt: (/* @__PURE__ */ new Date()).getTime(),
123
+ startTime: ((M = (D = (j = s) == null ? void 0 : j.getState()) == null ? void 0 : D.persist) == null ? void 0 : M.startTime) || (/* @__PURE__ */ new Date()).getTime()
124
+ });
125
+ }, [a]);
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" && (i({ allSteps: { steps: null, currentStep: 0 }, stepData: {} }), t(), f());
131
+ }
132
+ p(() => (e != null && e.openAt && window.addEventListener("visibilitychange", N), () => {
133
+ window.removeEventListener("visibilitychange", N);
134
+ }), [e == null ? void 0 : e.openAt]), p(() => (e != null && e.openAt && window.addEventListener("load", N), () => {
135
+ window.removeEventListener("load", N);
136
+ }), [e == null ? void 0 : e.openAt]);
137
+ function G(o) {
138
+ C(o);
139
+ }
140
+ function H(o) {
141
+ S(o);
142
+ }
143
+ function P() {
144
+ t(), i({ allSteps: { steps: null, currentStep: 0 }, stepData: {} }), h && d();
145
+ }
146
+ return /* @__PURE__ */ r(J, { children: /* @__PURE__ */ r(K.Provider, { value: { isTxnSuccessful: h, handleTxnSuccess: G }, children: /* @__PURE__ */ r(L.Provider, { value: { isErrorMessage: g, handleErrorMessage: H, errorMessage: T, setErrorMessage: U }, children: /* @__PURE__ */ c("div", { className: "bw-w-full bw-relative bw-min-h-[610px] ", children: [
147
+ /* @__PURE__ */ r(V, { handleBack: P }),
148
+ /* @__PURE__ */ r("div", { className: "bw-mt-[-20px] ", children: /* @__PURE__ */ r(te, {}) }),
149
+ e != null && e.isQuoteTimer ? /* @__PURE__ */ r(re, {}) : /* @__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(z, { amount: e == null ? void 0 : e.amount, coinData: e.fromCoin, chainData: e.fromChain, field: "from" })
155
+ ] }),
156
+ g ? /* @__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: /* @__PURE__ */ r("img", { src: B, width: 33, height: 30, alt: "img" }) }) : /* @__PURE__ */ r(W, { isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x, startTimer: I, error: g }),
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(z, { 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" })
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
+ q ? /* @__PURE__ */ r(A, {}) : /* @__PURE__ */ r(X, {}),
165
+ /* @__PURE__ */ r(Y, { handleOpenExchange: t, setExchange: b, amount: n, startTimer: I, handleBack: P, isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x })
166
+ ] })
167
+ ] }) }) }) });
168
+ });
169
+ function be({
170
+ handleConfirmClose: t,
171
+ routesData: n,
172
+ amount: a,
173
+ resetAmount: f,
174
+ resetBalance: d,
175
+ handleStopRoute: b
176
+ }) {
177
+ const i = O();
178
+ p(() => {
179
+ var w, m;
180
+ !i.current && Number(
181
+ ((w = i == null ? void 0 : i.current) == null ? void 0 : w.minOutputAmount) || ((m = i == null ? void 0 : i.current) == null ? void 0 : m.outputAmountDisplay)
182
+ ) !== Number((n == null ? void 0 : n.minOutputAmount) || (n == null ? void 0 : n.outputAmountDisplay)) && (i.current = n);
183
+ }, [n]), p(() => {
184
+ b(!0);
185
+ }, []);
186
+ function e() {
187
+ b(!1), t(!1);
188
+ }
189
+ function u() {
190
+ t(!1);
191
+ }
192
+ return /* @__PURE__ */ r(
193
+ ne,
194
+ {
195
+ handleOpenExchange: e,
196
+ amount: a,
197
+ route: n,
198
+ resetAmount: f,
199
+ resetBalance: d,
200
+ setExchange: u
201
+ }
202
+ );
203
+ }
204
+ export {
205
+ be as default
206
+ };
@@ -1,22 +1,22 @@
1
1
  import { jsx as u, jsxs as B, Fragment as Ke } from "react/jsx-runtime";
2
- import { a as to, _ as yr, e as wr, T as no, g as vr, h as oo, b as ro, j as Gt, k as Sn, r as xr, B as Cr, u as ao, i as Dr, d as Sr } from "./useRegisterError-pQkE1Atn.js";
3
- import { P as Zt, i as kr, b as kn, F as so, u as We, f as Qt, L as Tt, O as Pr, c as Mr, I as Rr, S as Or, d as Tr, H as Ir } from "./hamburger-DPRWU8rW.js";
4
- import { n as Vr, o as Nr, q as Fr, p as ie, _ as te, d as f, P as t, b as Se, g as Me, i as Re, s as _, e as le, f as se, h as Oe, j as De, r as Er, t as Ar, v as ge, w as it, L as $r, u as Ce, c as Xt, S as Lr, l as Br } from "./index-DRmMe_Lj.js";
2
+ import { a as to, _ as yr, e as wr, T as no, g as vr, h as oo, b as ro, j as Gt, k as Sn, r as xr, B as Cr, u as ao, i as Dr, d as Sr } from "./useRegisterError-D172QfL7.js";
3
+ import { P as Zt, i as kr, b as kn, F as so, u as We, f as Qt, L as Tt, O as Pr, c as Mr, I as Rr, S as Or, d as Tr, H as Ir } from "./hamburger-BJOW28p-.js";
4
+ import { o as Vr, q as Nr, t as Fr, p as ie, _ as te, d as f, P as t, b as Se, g as Me, i as Re, s as _, e as le, f as se, h as Oe, j as De, r as Er, v as Ar, w as ge, x as it, L as $r, u as Ce, c as Xt, S as Lr, l as Br } from "./index-BaPgYkZ_.js";
5
5
  import * as b from "react";
6
6
  import Pn, { useState as Ye, useEffect as lt, useRef as jr } from "react";
7
7
  import { useQuery as io, useQueryClient as zr, useInfiniteQuery as Wr } from "@tanstack/react-query";
8
8
  import { useAccount as lo } from "wagmi";
9
9
  import { useDynamicContext as co } from "@dynamic-labs/sdk-react-core";
10
10
  import { useAccount as uo } from "graz";
11
- import { T as Qe, S as _r } from "./index-D7pkN4od.js";
12
- import { c as $e } from "./index-8FeyhkrZ.js";
13
- import { B as wt, F as xt, M as qr, a as Hr, e as Ur, T as po, b as Yr } from "./getChainIds-DP8l1FCH.js";
14
- import { a as fo, b as Le, G as Kr, P as Gr } from "./Grow-BUfBvEgN.js";
15
- import { B as Pt, u as Zr } from "./index-B8t6PLz8.js";
16
- import { u as Qr } from "./unsupportedProp-AqCr28aR.js";
11
+ import { T as Qe, S as _r } from "./index-BykNQI23.js";
12
+ import { c as $e } from "./index-ME6WmREi.js";
13
+ import { B as wt, F as xt, M as qr, a as Hr, e as Ur, T as po, b as Yr } from "./getChainIds-DY_neilc.js";
14
+ import { a as fo, b as Le, G as Kr, P as Gr } from "./Grow-BNGsloYF.js";
15
+ import { B as Pt, u as Zr } from "./index-DmHzoK8Z.js";
16
+ import { u as Qr } from "./unsupportedProp-BXXskXK0.js";
17
17
  import { S as Xr } from "./shareicon-CG3v7iKI.js";
18
- import { O as Mn } from "./index-CkvOQTTa.js";
19
- import { L as Jr } from "./index.es-leDx9_0K.js";
18
+ import { O as Mn } from "./index-Cea3JIZ5.js";
19
+ import { L as Jr } from "./index.es-TqUYQAoH.js";
20
20
  function ea(e) {
21
21
  return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
22
22
  }
@@ -1,4 +1,4 @@
1
- import { L as z } from "./useRegisterError-pQkE1Atn.js";
1
+ import { L as z } from "./useRegisterError-D172QfL7.js";
2
2
  import G, { useEffect as C, useState as J, useRef as j } from "react";
3
3
  function E(t, e) {
4
4
  (e == null || e > t.length) && (e = t.length);