@blockend/widget 1.0.49-beta.3 → 1.0.49-beta.5

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-CMV2Aikv.js → AllRoutes-LD5p98zn.js} +9 -9
  2. package/dist/{Box-BLU3JkBD.js → Box-Cs3JEIFG.js} +6 -6
  3. package/dist/EstGas-H-UdwS1f.js +12659 -0
  4. package/dist/{Grow-BNGsloYF.js → Grow-BvHTdetx.js} +2 -2
  5. package/dist/{InputComp-My-aSA0q.js → InputComp-COwG8q-J.js} +3 -3
  6. package/dist/{LoadRoute-DEc0qJGB.js → LoadRoute-DsdVO6Oo.js} +4 -4
  7. package/dist/{QuotesProgress-DyCbRkmW.js → QuotesProgress-B8bDI4r6.js} +1 -1
  8. package/dist/{SwapAsset-VBFtcbjw.js → SwapAsset-Ddh66LWB.js} +1 -1
  9. package/dist/{Tooltip-DkFdda4P.js → Tooltip-hBxzXSU3.js} +3 -3
  10. package/dist/TxnButton-jGgemD8y.js +205 -0
  11. package/dist/{add-CIcwZ7BM.js → add-DGq3NqFo.js} +1 -1
  12. package/dist/{all-wallets-Bh1_cRVE.js → all-wallets-CzWn7-6X.js} +1 -1
  13. package/dist/{app-store-1QxQqMCa.js → app-store-BGFzY2oe.js} +1 -1
  14. package/dist/{apple-CtdqvHaM.js → apple-D5zFxCbx.js} +1 -1
  15. package/dist/{arrow-bottom-D-GL64pV.js → arrow-bottom-D25Ef730.js} +1 -1
  16. package/dist/{arrow-bottom-circle-BZZ6oS3I.js → arrow-bottom-circle-CskusJTk.js} +1 -1
  17. package/dist/{arrow-left-CtM73IFh.js → arrow-left-Bn-AuY99.js} +1 -1
  18. package/dist/{arrow-right-C_3it8wU.js → arrow-right-DJQCv_ak.js} +1 -1
  19. package/dist/{arrow-top-B_akssLE.js → arrow-top-Do8qEhLT.js} +1 -1
  20. package/dist/{bank-BAZaWTHP.js → bank-CBeLsi0M.js} +1 -1
  21. package/dist/{basic-BQ6VlY2V.js → basic-DLf5LiFg.js} +3 -3
  22. package/dist/{browser-D-m8U4qp.js → browser-DVamy-m2.js} +1 -1
  23. package/dist/{card-CZMLg_hs.js → card-tFF7X_nt.js} +1 -1
  24. package/dist/{ccip-Cr2zG-xI.js → ccip-C4idlAuS.js} +16 -16
  25. package/dist/{checkmark-Db5ONmjX.js → checkmark-DkVW1LY2.js} +1 -1
  26. package/dist/{checkmark-bold-CNdIOniu.js → checkmark-bold-BbQos6bO.js} +1 -1
  27. package/dist/{chevron-bottom-B4LZ07P4.js → chevron-bottom-DokKka1d.js} +1 -1
  28. package/dist/{chevron-left-BOiLmc3e.js → chevron-left-BPwuTnF_.js} +1 -1
  29. package/dist/{chevron-right-C8aUeQEC.js → chevron-right-Djdm9Vly.js} +1 -1
  30. package/dist/{chevron-top-DQnpWjJP.js → chevron-top-DviiO5xj.js} +1 -1
  31. package/dist/{chrome-store-B2Ctt_Iw.js → chrome-store-BFukaYHs.js} +1 -1
  32. package/dist/{clock-4Nkh4x1b.js → clock-gPhvJPEh.js} +1 -1
  33. package/dist/{close-CiK1EUke.js → close-CWK6JCCg.js} +1 -1
  34. package/dist/{coinPlaceholder-CcnyeBg0.js → coinPlaceholder-DuZ2QujM.js} +1 -1
  35. package/dist/{compass-C8XMPb-_.js → compass-DlrcJ8Hk.js} +1 -1
  36. package/dist/{copy-D-ZlELIO.js → copy-CNAncK5I.js} +1 -1
  37. package/dist/{core-CE7ZvgmO.js → core-BkrnmkI7.js} +17 -16
  38. package/dist/{cursor-RiCqhq_2.js → cursor-BknQSZIa.js} +1 -1
  39. package/dist/{cursor-transparent-Cpuw-bx1.js → cursor-transparent-D7K-weum.js} +1 -1
  40. package/dist/{desktop-BcnqlO6_.js → desktop-Dvki1QtU.js} +1 -1
  41. package/dist/{disconnect-BXI_7OV3.js → disconnect-QbJ6g-Q9.js} +1 -1
  42. package/dist/{discord-DZgQjBjt.js → discord-BtkOmfcK.js} +1 -1
  43. package/dist/{down-C8I1GmTa.js → down-DRC2u-nt.js} +2 -2
  44. package/dist/{etherscan-DHArh1Kg.js → etherscan-C4RKkVrP.js} +1 -1
  45. package/dist/{exclamation-triangle-Dp1k7Xyg.js → exclamation-triangle-CEoAdk7x.js} +1 -1
  46. package/dist/{extension-Dav7fjmZ.js → extension-DkOomXUg.js} +1 -1
  47. package/dist/{external-link-DWQsWqey.js → external-link-D9HfOXel.js} +1 -1
  48. package/dist/{facebook-xI7TIm3V.js → facebook-zQmBHowA.js} +1 -1
  49. package/dist/{farcaster-ByqbNlsO.js → farcaster-Cfy-sjqY.js} +1 -1
  50. package/dist/{filters-CPWYBjRc.js → filters-Cq1K6QWb.js} +1 -1
  51. package/dist/{getChainIds-DY_neilc.js → getChainIds-Btq6EjyX.js} +2 -2
  52. package/dist/getCosmosAddress-Bu-V7Ot0.js +9565 -0
  53. package/dist/{github-prZ8t34_.js → github-gNR-tm3O.js} +1 -1
  54. package/dist/{google-CcUsHax7.js → google-rmnuGsrL.js} +1 -1
  55. package/dist/{hamburger-BJOW28p-.js → hamburger-CEQO6OZs.js} +5 -5
  56. package/dist/{help-circle-XwyOApi8.js → help-circle-Cj4bjfia.js} +1 -1
  57. package/dist/{id-Ftjt1pHJ.js → id-nb5m-NKY.js} +1 -1
  58. package/dist/{image-D3UyCNRs.js → image-BlK2k80L.js} +1 -1
  59. package/dist/{index-V7wGfBWj.js → index-1OzJ9Z6-.js} +2192 -2170
  60. package/dist/{index-Cea3JIZ5.js → index-7R8NiD42.js} +1 -1
  61. package/dist/index-7iRnvPpN.js +159 -0
  62. package/dist/{index-DmHzoK8Z.js → index-CZQdiy7b.js} +2 -2
  63. package/dist/{index-B518UW03.js → index-CbycATvf.js} +78 -78
  64. package/dist/{index-vg6UIFZD.js → index-D0tb6mUR.js} +11 -11
  65. package/dist/index-D5aVEHZL.js +206 -0
  66. package/dist/index-DTish3yr.js +1014 -0
  67. package/dist/index-Fv4UV6Sc.js +30707 -0
  68. package/dist/{index-BHDpDBXv.js → index-pieshoDv.js} +542 -507
  69. package/dist/{index-ME6WmREi.js → index-salSLcoU.js} +1 -1
  70. package/dist/{index-BykNQI23.js → index-vM1noC-w.js} +1320 -1194
  71. package/dist/{index.es-ng6OTpYR.js → index.es-CJ-ZznBF.js} +1712 -1625
  72. package/dist/{index.es-TqUYQAoH.js → index.es-Ce_QYzsk.js} +1 -1
  73. package/dist/index.es.js +1 -1
  74. package/dist/{info-DBsGMB_O.js → info-6RBhKgcd.js} +1 -1
  75. package/dist/{info-circle-Bx2PIRGJ.js → info-circle-BlIbWe25.js} +1 -1
  76. package/dist/{lightbulb-KoBLmJby.js → lightbulb-CS3_wKY8.js} +1 -1
  77. package/dist/{mail-CZKrqpFU.js → mail-CRsD8jAA.js} +1 -1
  78. package/dist/{mobile-CN4pmWVU.js → mobile-DMLTKouh.js} +1 -1
  79. package/dist/{more-1brm4Q7X.js → more-uoTJ3kvy.js} +1 -1
  80. package/dist/{network-placeholder-CAlA46Kt.js → network-placeholder-D-XL3hqx.js} +1 -1
  81. package/dist/{nftPlaceholder-DHzDfy6E.js → nftPlaceholder-CiYWPSAY.js} +1 -1
  82. package/dist/{off-1usMfWM7.js → off-B79emGaW.js} +1 -1
  83. package/dist/{play-store-C_t-IwRL.js → play-store-B828L964.js} +1 -1
  84. package/dist/{plus-B5w-_zg6.js → plus-BRVCC9lV.js} +1 -1
  85. package/dist/{qr-code-DQh--5Nd.js → qr-code-qp9DeEO9.js} +1 -1
  86. package/dist/{recycle-horizontal-CBNgoZdm.js → recycle-horizontal-DoDvFScD.js} +1 -1
  87. package/dist/{refresh-gjkJ3fAS.js → refresh-BuegBzBd.js} +1 -1
  88. package/dist/{reown-logo-BmVLHjjQ.js → reown-logo-BrUAyTxC.js} +1 -1
  89. package/dist/{search-CuK6y19Q.js → search-CzpyG7ky.js} +1 -1
  90. package/dist/{send-CIaAYk7c.js → send-BHMxC1xj.js} +1 -1
  91. package/dist/{swapHorizontal-Dl8NLG_i.js → swapHorizontal-Bq8mR1QZ.js} +1 -1
  92. package/dist/{swapHorizontalBold-BnPyIFiA.js → swapHorizontalBold-2ueiC4L9.js} +1 -1
  93. package/dist/{swapHorizontalMedium-CEivQ8L0.js → swapHorizontalMedium-9jh3zunE.js} +1 -1
  94. package/dist/{swapHorizontalRoundedBold-C9ACKZnM.js → swapHorizontalRoundedBold-BIk7kp2S.js} +1 -1
  95. package/dist/{swapVertical-ZEEyof9e.js → swapVertical-DM_T3EzD.js} +1 -1
  96. package/dist/{telegram-B3c-a3zh.js → telegram-CbeDajqU.js} +1 -1
  97. package/dist/{three-dots-DUit7LCw.js → three-dots-DUntIedp.js} +1 -1
  98. package/dist/{twitch-3MyiQW6J.js → twitch-DIXNVK7h.js} +1 -1
  99. package/dist/{twitterIcon-DrkQHEH8.js → twitterIcon-nHRKKmzg.js} +1 -1
  100. package/dist/{unsupportedProp-BXXskXK0.js → unsupportedProp-BAk0ueJt.js} +1 -1
  101. package/dist/{useRegisterError-D172QfL7.js → useRegisterError-tq4Tke9I.js} +150 -150
  102. package/dist/{verify-Ez0YdpbL.js → verify-CbyVHS7l.js} +1 -1
  103. package/dist/{verify-filled-Cof7FJLP.js → verify-filled-QZDBE0oP.js} +1 -1
  104. package/dist/{w3m-modal-D9qNteo9.js → w3m-modal-Bp3nI0EC.js} +2 -2
  105. package/dist/{wallet-D8n_ZZlC.js → wallet-DVjsV39Q.js} +1 -1
  106. package/dist/{wallet-placeholder-C7X2GW9S.js → wallet-placeholder-BgrGGLNk.js} +1 -1
  107. package/dist/{walletconnect-CKYpGIEb.js → walletconnect-zriuFVFg.js} +1 -1
  108. package/dist/{warning-circle-BcBltCn2.js → warning-circle-CpWwL8_f.js} +1 -1
  109. package/dist/widget.css +1 -1
  110. package/dist/{x-BppUkwM-.js → x-DN0-dY3F.js} +1 -1
  111. package/package.json +4 -7
  112. package/dist/EstGas-ywgk-29s.js +0 -1486
  113. package/dist/TxnButton-DtS9Dw0R.js +0 -211
  114. package/dist/getCosmosAddress-_BeZxDkv.js +0 -6075
  115. package/dist/index-BaPgYkZ_.js +0 -42277
  116. package/dist/index-BtI5pdx-.js +0 -6711
  117. package/dist/index-klVp-SBb.js +0 -206
@@ -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-D172QfL7.js";
3
+ import { F as m } from "./useRegisterError-tq4Tke9I.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
  }
@@ -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-H-UdwS1f.js";
3
+ import { useState as q, useEffect as k } from "react";
4
+ import { d as we, i as be } from "./useRegisterError-tq4Tke9I.js";
5
+ import { u as c, l as ee, c as Z, F as ue } from "./index-Fv4UV6Sc.js";
6
+ import { useQuery as _ } from "@tanstack/react-query";
7
+ import "./down-DRC2u-nt.js";
8
+ import "wagmi";
9
+ import "@dynamic-labs/sdk-react-core";
10
+ import "./getCosmosAddress-Bu-V7Ot0.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-BaPgYkZ_.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-Fv4UV6Sc.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-DY_neilc.js";
4
+ import { B as Y } from "./getChainIds-Btq6EjyX.js";
5
5
  function Z(o) {
6
6
  return U("MuiButton", o);
7
7
  }
@@ -1,4 +1,4 @@
1
- import { B as N, D as V, i as b, r as $, a as S, x as m, n as q, F as I, o as H, e as Y } from "./core-CE7ZvgmO.js";
1
+ import { B as N, D as V, i as b, r as $, a as S, x as m, n as q, F as I, o as H, e as Y } from "./core-BkrnmkI7.js";
2
2
  const w = {
3
3
  getSpacingStyles(e, t) {
4
4
  if (Array.isArray(e))
@@ -379,83 +379,83 @@ var R = function(e, t, i, a) {
379
379
  return r > 3 && o && Object.defineProperty(t, i, o), o;
380
380
  };
381
381
  const E = {
382
- add: async () => (await import("./add-CIcwZ7BM.js")).addSvg,
383
- allWallets: async () => (await import("./all-wallets-Bh1_cRVE.js")).allWalletsSvg,
384
- arrowBottomCircle: async () => (await import("./arrow-bottom-circle-BZZ6oS3I.js")).arrowBottomCircleSvg,
385
- appStore: async () => (await import("./app-store-1QxQqMCa.js")).appStoreSvg,
386
- apple: async () => (await import("./apple-CtdqvHaM.js")).appleSvg,
387
- arrowBottom: async () => (await import("./arrow-bottom-D-GL64pV.js")).arrowBottomSvg,
388
- arrowLeft: async () => (await import("./arrow-left-CtM73IFh.js")).arrowLeftSvg,
389
- arrowRight: async () => (await import("./arrow-right-C_3it8wU.js")).arrowRightSvg,
390
- arrowTop: async () => (await import("./arrow-top-B_akssLE.js")).arrowTopSvg,
391
- bank: async () => (await import("./bank-BAZaWTHP.js")).bankSvg,
392
- browser: async () => (await import("./browser-D-m8U4qp.js")).browserSvg,
393
- card: async () => (await import("./card-CZMLg_hs.js")).cardSvg,
394
- checkmark: async () => (await import("./checkmark-Db5ONmjX.js")).checkmarkSvg,
395
- checkmarkBold: async () => (await import("./checkmark-bold-CNdIOniu.js")).checkmarkBoldSvg,
396
- chevronBottom: async () => (await import("./chevron-bottom-B4LZ07P4.js")).chevronBottomSvg,
397
- chevronLeft: async () => (await import("./chevron-left-BOiLmc3e.js")).chevronLeftSvg,
398
- chevronRight: async () => (await import("./chevron-right-C8aUeQEC.js")).chevronRightSvg,
399
- chevronTop: async () => (await import("./chevron-top-DQnpWjJP.js")).chevronTopSvg,
400
- chromeStore: async () => (await import("./chrome-store-B2Ctt_Iw.js")).chromeStoreSvg,
401
- clock: async () => (await import("./clock-4Nkh4x1b.js")).clockSvg,
402
- close: async () => (await import("./close-CiK1EUke.js")).closeSvg,
403
- compass: async () => (await import("./compass-C8XMPb-_.js")).compassSvg,
404
- coinPlaceholder: async () => (await import("./coinPlaceholder-CcnyeBg0.js")).coinPlaceholderSvg,
405
- copy: async () => (await import("./copy-D-ZlELIO.js")).copySvg,
406
- cursor: async () => (await import("./cursor-RiCqhq_2.js")).cursorSvg,
407
- cursorTransparent: async () => (await import("./cursor-transparent-Cpuw-bx1.js")).cursorTransparentSvg,
408
- desktop: async () => (await import("./desktop-BcnqlO6_.js")).desktopSvg,
409
- disconnect: async () => (await import("./disconnect-BXI_7OV3.js")).disconnectSvg,
410
- discord: async () => (await import("./discord-DZgQjBjt.js")).discordSvg,
411
- etherscan: async () => (await import("./etherscan-DHArh1Kg.js")).etherscanSvg,
412
- extension: async () => (await import("./extension-Dav7fjmZ.js")).extensionSvg,
413
- externalLink: async () => (await import("./external-link-DWQsWqey.js")).externalLinkSvg,
414
- facebook: async () => (await import("./facebook-xI7TIm3V.js")).facebookSvg,
415
- farcaster: async () => (await import("./farcaster-ByqbNlsO.js")).farcasterSvg,
416
- filters: async () => (await import("./filters-CPWYBjRc.js")).filtersSvg,
417
- github: async () => (await import("./github-prZ8t34_.js")).githubSvg,
418
- google: async () => (await import("./google-CcUsHax7.js")).googleSvg,
419
- helpCircle: async () => (await import("./help-circle-XwyOApi8.js")).helpCircleSvg,
420
- image: async () => (await import("./image-D3UyCNRs.js")).imageSvg,
421
- id: async () => (await import("./id-Ftjt1pHJ.js")).idSvg,
422
- infoCircle: async () => (await import("./info-circle-Bx2PIRGJ.js")).infoCircleSvg,
423
- lightbulb: async () => (await import("./lightbulb-KoBLmJby.js")).lightbulbSvg,
424
- mail: async () => (await import("./mail-CZKrqpFU.js")).mailSvg,
425
- mobile: async () => (await import("./mobile-CN4pmWVU.js")).mobileSvg,
426
- more: async () => (await import("./more-1brm4Q7X.js")).moreSvg,
427
- networkPlaceholder: async () => (await import("./network-placeholder-CAlA46Kt.js")).networkPlaceholderSvg,
428
- nftPlaceholder: async () => (await import("./nftPlaceholder-DHzDfy6E.js")).nftPlaceholderSvg,
429
- off: async () => (await import("./off-1usMfWM7.js")).offSvg,
430
- playStore: async () => (await import("./play-store-C_t-IwRL.js")).playStoreSvg,
431
- plus: async () => (await import("./plus-B5w-_zg6.js")).plusSvg,
432
- qrCode: async () => (await import("./qr-code-DQh--5Nd.js")).qrCodeIcon,
433
- recycleHorizontal: async () => (await import("./recycle-horizontal-CBNgoZdm.js")).recycleHorizontalSvg,
434
- refresh: async () => (await import("./refresh-gjkJ3fAS.js")).refreshSvg,
435
- search: async () => (await import("./search-CuK6y19Q.js")).searchSvg,
436
- send: async () => (await import("./send-CIaAYk7c.js")).sendSvg,
437
- swapHorizontal: async () => (await import("./swapHorizontal-Dl8NLG_i.js")).swapHorizontalSvg,
438
- swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-CEivQ8L0.js")).swapHorizontalMediumSvg,
439
- swapHorizontalBold: async () => (await import("./swapHorizontalBold-BnPyIFiA.js")).swapHorizontalBoldSvg,
440
- swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-C9ACKZnM.js")).swapHorizontalRoundedBoldSvg,
441
- swapVertical: async () => (await import("./swapVertical-ZEEyof9e.js")).swapVerticalSvg,
442
- telegram: async () => (await import("./telegram-B3c-a3zh.js")).telegramSvg,
443
- threeDots: async () => (await import("./three-dots-DUit7LCw.js")).threeDotsSvg,
444
- twitch: async () => (await import("./twitch-3MyiQW6J.js")).twitchSvg,
445
- twitter: async () => (await import("./x-BppUkwM-.js")).xSvg,
446
- twitterIcon: async () => (await import("./twitterIcon-DrkQHEH8.js")).twitterIconSvg,
447
- verify: async () => (await import("./verify-Ez0YdpbL.js")).verifySvg,
448
- verifyFilled: async () => (await import("./verify-filled-Cof7FJLP.js")).verifyFilledSvg,
449
- wallet: async () => (await import("./wallet-D8n_ZZlC.js")).walletSvg,
450
- walletConnect: async () => (await import("./walletconnect-CKYpGIEb.js")).walletConnectSvg,
451
- walletConnectLightBrown: async () => (await import("./walletconnect-CKYpGIEb.js")).walletConnectLightBrownSvg,
452
- walletConnectBrown: async () => (await import("./walletconnect-CKYpGIEb.js")).walletConnectBrownSvg,
453
- walletPlaceholder: async () => (await import("./wallet-placeholder-C7X2GW9S.js")).walletPlaceholderSvg,
454
- warningCircle: async () => (await import("./warning-circle-BcBltCn2.js")).warningCircleSvg,
455
- x: async () => (await import("./x-BppUkwM-.js")).xSvg,
456
- info: async () => (await import("./info-DBsGMB_O.js")).infoSvg,
457
- exclamationTriangle: async () => (await import("./exclamation-triangle-Dp1k7Xyg.js")).exclamationTriangleSvg,
458
- reown: async () => (await import("./reown-logo-BmVLHjjQ.js")).reownSvg
382
+ add: async () => (await import("./add-DGq3NqFo.js")).addSvg,
383
+ allWallets: async () => (await import("./all-wallets-CzWn7-6X.js")).allWalletsSvg,
384
+ arrowBottomCircle: async () => (await import("./arrow-bottom-circle-CskusJTk.js")).arrowBottomCircleSvg,
385
+ appStore: async () => (await import("./app-store-BGFzY2oe.js")).appStoreSvg,
386
+ apple: async () => (await import("./apple-D5zFxCbx.js")).appleSvg,
387
+ arrowBottom: async () => (await import("./arrow-bottom-D25Ef730.js")).arrowBottomSvg,
388
+ arrowLeft: async () => (await import("./arrow-left-Bn-AuY99.js")).arrowLeftSvg,
389
+ arrowRight: async () => (await import("./arrow-right-DJQCv_ak.js")).arrowRightSvg,
390
+ arrowTop: async () => (await import("./arrow-top-Do8qEhLT.js")).arrowTopSvg,
391
+ bank: async () => (await import("./bank-CBeLsi0M.js")).bankSvg,
392
+ browser: async () => (await import("./browser-DVamy-m2.js")).browserSvg,
393
+ card: async () => (await import("./card-tFF7X_nt.js")).cardSvg,
394
+ checkmark: async () => (await import("./checkmark-DkVW1LY2.js")).checkmarkSvg,
395
+ checkmarkBold: async () => (await import("./checkmark-bold-BbQos6bO.js")).checkmarkBoldSvg,
396
+ chevronBottom: async () => (await import("./chevron-bottom-DokKka1d.js")).chevronBottomSvg,
397
+ chevronLeft: async () => (await import("./chevron-left-BPwuTnF_.js")).chevronLeftSvg,
398
+ chevronRight: async () => (await import("./chevron-right-Djdm9Vly.js")).chevronRightSvg,
399
+ chevronTop: async () => (await import("./chevron-top-DviiO5xj.js")).chevronTopSvg,
400
+ chromeStore: async () => (await import("./chrome-store-BFukaYHs.js")).chromeStoreSvg,
401
+ clock: async () => (await import("./clock-gPhvJPEh.js")).clockSvg,
402
+ close: async () => (await import("./close-CWK6JCCg.js")).closeSvg,
403
+ compass: async () => (await import("./compass-DlrcJ8Hk.js")).compassSvg,
404
+ coinPlaceholder: async () => (await import("./coinPlaceholder-DuZ2QujM.js")).coinPlaceholderSvg,
405
+ copy: async () => (await import("./copy-CNAncK5I.js")).copySvg,
406
+ cursor: async () => (await import("./cursor-BknQSZIa.js")).cursorSvg,
407
+ cursorTransparent: async () => (await import("./cursor-transparent-D7K-weum.js")).cursorTransparentSvg,
408
+ desktop: async () => (await import("./desktop-Dvki1QtU.js")).desktopSvg,
409
+ disconnect: async () => (await import("./disconnect-QbJ6g-Q9.js")).disconnectSvg,
410
+ discord: async () => (await import("./discord-BtkOmfcK.js")).discordSvg,
411
+ etherscan: async () => (await import("./etherscan-C4RKkVrP.js")).etherscanSvg,
412
+ extension: async () => (await import("./extension-DkOomXUg.js")).extensionSvg,
413
+ externalLink: async () => (await import("./external-link-D9HfOXel.js")).externalLinkSvg,
414
+ facebook: async () => (await import("./facebook-zQmBHowA.js")).facebookSvg,
415
+ farcaster: async () => (await import("./farcaster-Cfy-sjqY.js")).farcasterSvg,
416
+ filters: async () => (await import("./filters-Cq1K6QWb.js")).filtersSvg,
417
+ github: async () => (await import("./github-gNR-tm3O.js")).githubSvg,
418
+ google: async () => (await import("./google-rmnuGsrL.js")).googleSvg,
419
+ helpCircle: async () => (await import("./help-circle-Cj4bjfia.js")).helpCircleSvg,
420
+ image: async () => (await import("./image-BlK2k80L.js")).imageSvg,
421
+ id: async () => (await import("./id-nb5m-NKY.js")).idSvg,
422
+ infoCircle: async () => (await import("./info-circle-BlIbWe25.js")).infoCircleSvg,
423
+ lightbulb: async () => (await import("./lightbulb-CS3_wKY8.js")).lightbulbSvg,
424
+ mail: async () => (await import("./mail-CRsD8jAA.js")).mailSvg,
425
+ mobile: async () => (await import("./mobile-DMLTKouh.js")).mobileSvg,
426
+ more: async () => (await import("./more-uoTJ3kvy.js")).moreSvg,
427
+ networkPlaceholder: async () => (await import("./network-placeholder-D-XL3hqx.js")).networkPlaceholderSvg,
428
+ nftPlaceholder: async () => (await import("./nftPlaceholder-CiYWPSAY.js")).nftPlaceholderSvg,
429
+ off: async () => (await import("./off-B79emGaW.js")).offSvg,
430
+ playStore: async () => (await import("./play-store-B828L964.js")).playStoreSvg,
431
+ plus: async () => (await import("./plus-BRVCC9lV.js")).plusSvg,
432
+ qrCode: async () => (await import("./qr-code-qp9DeEO9.js")).qrCodeIcon,
433
+ recycleHorizontal: async () => (await import("./recycle-horizontal-DoDvFScD.js")).recycleHorizontalSvg,
434
+ refresh: async () => (await import("./refresh-BuegBzBd.js")).refreshSvg,
435
+ search: async () => (await import("./search-CzpyG7ky.js")).searchSvg,
436
+ send: async () => (await import("./send-BHMxC1xj.js")).sendSvg,
437
+ swapHorizontal: async () => (await import("./swapHorizontal-Bq8mR1QZ.js")).swapHorizontalSvg,
438
+ swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-9jh3zunE.js")).swapHorizontalMediumSvg,
439
+ swapHorizontalBold: async () => (await import("./swapHorizontalBold-2ueiC4L9.js")).swapHorizontalBoldSvg,
440
+ swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-BIk7kp2S.js")).swapHorizontalRoundedBoldSvg,
441
+ swapVertical: async () => (await import("./swapVertical-DM_T3EzD.js")).swapVerticalSvg,
442
+ telegram: async () => (await import("./telegram-CbeDajqU.js")).telegramSvg,
443
+ threeDots: async () => (await import("./three-dots-DUntIedp.js")).threeDotsSvg,
444
+ twitch: async () => (await import("./twitch-DIXNVK7h.js")).twitchSvg,
445
+ twitter: async () => (await import("./x-DN0-dY3F.js")).xSvg,
446
+ twitterIcon: async () => (await import("./twitterIcon-nHRKKmzg.js")).twitterIconSvg,
447
+ verify: async () => (await import("./verify-CbyVHS7l.js")).verifySvg,
448
+ verifyFilled: async () => (await import("./verify-filled-QZDBE0oP.js")).verifyFilledSvg,
449
+ wallet: async () => (await import("./wallet-DVjsV39Q.js")).walletSvg,
450
+ walletConnect: async () => (await import("./walletconnect-zriuFVFg.js")).walletConnectSvg,
451
+ walletConnectLightBrown: async () => (await import("./walletconnect-zriuFVFg.js")).walletConnectLightBrownSvg,
452
+ walletConnectBrown: async () => (await import("./walletconnect-zriuFVFg.js")).walletConnectBrownSvg,
453
+ walletPlaceholder: async () => (await import("./wallet-placeholder-BgrGGLNk.js")).walletPlaceholderSvg,
454
+ warningCircle: async () => (await import("./warning-circle-CpWwL8_f.js")).warningCircleSvg,
455
+ x: async () => (await import("./x-DN0-dY3F.js")).xSvg,
456
+ info: async () => (await import("./info-6RBhKgcd.js")).infoSvg,
457
+ exclamationTriangle: async () => (await import("./exclamation-triangle-CEoAdk7x.js")).exclamationTriangleSvg,
458
+ reown: async () => (await import("./reown-logo-BrUAyTxC.js")).reownSvg
459
459
  };
460
460
  async function pt(e) {
461
461
  if (P.has(e))
@@ -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-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";
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-tq4Tke9I.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-CEQO6OZs.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-Fv4UV6Sc.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-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";
11
+ import { T as Qe, S as _r } from "./index-vM1noC-w.js";
12
+ import { c as $e } from "./index-salSLcoU.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-Btq6EjyX.js";
14
+ import { a as fo, b as Le, G as Kr, P as Gr } from "./Grow-BvHTdetx.js";
15
+ import { B as Pt, u as Zr } from "./index-CZQdiy7b.js";
16
+ import { u as Qr } from "./unsupportedProp-BAk0ueJt.js";
17
17
  import { S as Xr } from "./shareicon-CG3v7iKI.js";
18
- import { O as Mn } from "./index-Cea3JIZ5.js";
19
- import { L as Jr } from "./index.es-TqUYQAoH.js";
18
+ import { O as Mn } from "./index-7R8NiD42.js";
19
+ import { L as Jr } from "./index.es-Ce_QYzsk.js";
20
20
  function ea(e) {
21
21
  return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
22
22
  }
@@ -0,0 +1,206 @@
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-H-UdwS1f.js";
4
+ import { u as l, l as W } from "./index-Fv4UV6Sc.js";
5
+ import { i as D, C as Q, A as X } from "./useRegisterError-tq4Tke9I.js";
6
+ import { B as Y } from "./Box-Cs3JEIFG.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: [
12
+ /* @__PURE__ */ n(
13
+ "div",
14
+ {
15
+ style: {
16
+ boxShadow: r && r.customTheme && ((m = (c = r.customTheme) == null ? void 0 : c.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__ */ 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: [
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: [
24
+ /* @__PURE__ */ n("span", { className: "bw-text-sm bw-font-light", children: "via" }),
25
+ " ",
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
+ ((x = (g = t == null ? void 0 : t.route) == null ? void 0 : g.providerDetails) == null ? void 0 : x.name) || "",
28
+ ": ",
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: [
31
+ `+${((C = (p = t == null ? void 0 : t.route) == null ? void 0 : p.protocolsUsed) == null ? void 0 : C.length) - 1}`,
32
+ " More"
33
+ ] }),
34
+ " "
35
+ ] }),
36
+ " "
37
+ ] })
38
+ ] });
39
+ }
40
+ let N;
41
+ function R() {
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);
46
+ return v(() => {
47
+ d && e(w - d);
48
+ }, []), v(() => (N = setInterval(() => {
49
+ e((s) => {
50
+ var h;
51
+ return s <= 0 ? (clearInterval(N), a({
52
+ ...(h = l.getState()) == null ? void 0 : h.persist,
53
+ isQuoteTimer: !1,
54
+ showAcceptQuote: !0,
55
+ quoteStartTime: (/* @__PURE__ */ new Date()).getTime()
56
+ }), 0) : s - 1;
57
+ });
58
+ }, 1e3), () => clearInterval(N)), []), v(() => {
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: [
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
+ /* @__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
+ ] }) }),
65
+ /* @__PURE__ */ b(
66
+ Y,
67
+ {
68
+ sx: {
69
+ position: "relative",
70
+ display: "inline-flex"
71
+ },
72
+ children: [
73
+ /* @__PURE__ */ n(
74
+ Q,
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__ */ n(
86
+ Q,
87
+ {
88
+ variant: "determinate",
89
+ size: 20,
90
+ thickness: 5,
91
+ value: i / w * 100,
92
+ sx: {
93
+ "svg circle": { stroke: "url(#linearColors)" },
94
+ position: "absolute",
95
+ left: 0,
96
+ [`& .${X.circle}`]: {
97
+ strokeLinecap: "round"
98
+ }
99
+ }
100
+ }
101
+ )
102
+ ]
103
+ }
104
+ )
105
+ ] }) : /* @__PURE__ */ n(A, {});
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;
110
+ v(() => {
111
+ var o, j, z, F;
112
+ a != null && a.routeId && i({
113
+ ...(o = l.getState()) == null ? void 0 : o.persist,
114
+ routeId: a == null ? void 0 : a.routeId,
115
+ route: a,
116
+ toChain: m,
117
+ toCoin: g,
118
+ fromChain: u,
119
+ fromCoin: c,
120
+ amount: r,
121
+ quote: "enable",
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()
124
+ });
125
+ }, [a]);
126
+ function I(o) {
127
+ s(o);
128
+ }
129
+ function S() {
130
+ ((e == null ? void 0 : e.openAt) + 60 * 60 * 1e3 - (/* @__PURE__ */ new Date()).getTime()) / 1e3 / 60 <= 0 && document.visibilityState === "visible" && (i({}), t(), f());
131
+ }
132
+ v(() => (e != null && e.openAt && window.addEventListener("visibilitychange", S), () => {
133
+ window.removeEventListener("visibilitychange", S);
134
+ }), [e == null ? void 0 : e.openAt]), v(() => (e != null && e.openAt && window.addEventListener("load", S), () => {
135
+ window.removeEventListener("load", S);
136
+ }), [e == null ? void 0 : e.openAt]);
137
+ function q(o) {
138
+ y(o);
139
+ }
140
+ function B(o) {
141
+ C(o);
142
+ }
143
+ function P() {
144
+ t(), i({}), h && d();
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, {}),
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: [
153
+ /* @__PURE__ */ n("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Send" }),
154
+ /* @__PURE__ */ n(L, { amount: e == null ? void 0 : e.amount, coinData: e.fromCoin, chainData: e.fromChain, field: "from" })
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 }),
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: [
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" })
161
+ ] })
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 })
166
+ ] })
167
+ ] }) }) });
168
+ });
169
+ function le({
170
+ handleConfirmClose: t,
171
+ routesData: r,
172
+ amount: a,
173
+ resetAmount: f,
174
+ resetBalance: d,
175
+ handleStopRoute: w
176
+ }) {
177
+ const i = _();
178
+ v(() => {
179
+ var c, m;
180
+ !i.current && Number(
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
+ ) !== Number((r == null ? void 0 : r.minOutputAmount) || (r == null ? void 0 : r.outputAmountDisplay)) && (i.current = r);
183
+ }, [r]), v(() => {
184
+ w(!0);
185
+ }, []);
186
+ function e() {
187
+ w(!1), t(!1);
188
+ }
189
+ function u() {
190
+ t(!1);
191
+ }
192
+ return /* @__PURE__ */ n(
193
+ ee,
194
+ {
195
+ handleOpenExchange: e,
196
+ amount: a,
197
+ route: r,
198
+ resetAmount: f,
199
+ resetBalance: d,
200
+ setExchange: u
201
+ }
202
+ );
203
+ }
204
+ export {
205
+ le as default
206
+ };