@blockend/widget 1.0.31 → 1.0.32

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 (162) hide show
  1. package/dist/AllRoutes-CPwuTwqd.js +2209 -0
  2. package/dist/Box-CIChapvH.js +55 -0
  3. package/dist/EstGas-CEFILtyf.js +12867 -0
  4. package/dist/Grow-DJZj9zjv.js +1656 -0
  5. package/dist/InputComp-DqF1JGIu.js +106 -0
  6. package/dist/LoadRoute-r3sHTYXM.js +126 -0
  7. package/dist/QuotesProgress-BXVLxZ8U.js +28 -0
  8. package/dist/SwapAsset-07WvVwl-.js +64 -0
  9. package/dist/Tooltip-CNAsCF8n.js +572 -0
  10. package/dist/TxnButton-D2TTkFYA.js +207 -0
  11. package/dist/WidgetForm.module-QHJ0-m5f.js +9 -0
  12. package/dist/{add-B8AfyNIx.js → add-t2GqC9VA.js} +3 -3
  13. package/dist/{all-wallets-BaLLU39i.js → all-wallets-DFyf0q31.js} +3 -3
  14. package/dist/{app-store-DNpoABj1.js → app-store-aAahwmBP.js} +3 -3
  15. package/dist/{apple-DzzHtaL4.js → apple-DeRgpwlc.js} +3 -3
  16. package/dist/{arrow-bottom-D2c13c51.js → arrow-bottom-DdEOkaAj.js} +3 -3
  17. package/dist/{arrow-bottom-circle-ls9OCLx1.js → arrow-bottom-circle-BWwREWcv.js} +3 -3
  18. package/dist/{arrow-left-BI3rQkNI.js → arrow-left-CulyLmoH.js} +3 -3
  19. package/dist/{arrow-right-rnMzhVod.js → arrow-right-Dwr7TISn.js} +3 -3
  20. package/dist/{arrow-top-CfA6PVMz.js → arrow-top-pL4rM_y8.js} +3 -3
  21. package/dist/{bank-CmpAmHgg.js → bank-CPuyK_08.js} +3 -3
  22. package/dist/basic-CVc9xEvb.js +5783 -0
  23. package/dist/{browser-mEcjgS1H.js → browser-Cbq2Zbp4.js} +3 -3
  24. package/dist/{card-DkgIWcMc.js → card-B_hUtPWK.js} +3 -3
  25. package/dist/ccip-BLVGcR4A.js +228 -0
  26. package/dist/{checkmark-B_A013n2.js → checkmark-WEqTsFAc.js} +3 -3
  27. package/dist/{checkmark-bold-DestuG2T.js → checkmark-bold-Du_ZvhqM.js} +3 -3
  28. package/dist/{chevron-bottom-Di3S86dj.js → chevron-bottom-C-s-lv4L.js} +3 -3
  29. package/dist/{chevron-left-A9Wj-3tj.js → chevron-left-C7NcRElx.js} +3 -3
  30. package/dist/{chevron-right-UFxJogOZ.js → chevron-right-CSzmAmdn.js} +3 -3
  31. package/dist/{chevron-top-BbZs3eaC.js → chevron-top-Dd99Wfel.js} +3 -3
  32. package/dist/{chrome-store-B4F6hJmy.js → chrome-store-C4p77Of0.js} +3 -3
  33. package/dist/{clock-BbAQ09uV.js → clock-Cib24qjH.js} +3 -3
  34. package/dist/clockIcon-C2W5xvyt.js +76 -0
  35. package/dist/{close-CY3oZP_D.js → close-BXjEkTvS.js} +3 -3
  36. package/dist/{coinPlaceholder-DpfsobZT.js → coinPlaceholder-BFNC7cQN.js} +3 -3
  37. package/dist/{compass-CHS7RZFk.js → compass-CXPX5Ycp.js} +3 -3
  38. package/dist/{copy-CEd4nGhs.js → copy-BEawMbmF.js} +3 -3
  39. package/dist/core-Bez9Ow7F.js +14967 -0
  40. package/dist/cursor-Cxq4Q9jk.js +7 -0
  41. package/dist/{cursor-transparent-Tm6k6Ws4.js → cursor-transparent-ZjJ0P2vr.js} +3 -3
  42. package/dist/{desktop-CrSyXZkL.js → desktop-BhZVovAp.js} +3 -3
  43. package/dist/{disconnect-BooT10E1.js → disconnect-AC-bffZO.js} +3 -3
  44. package/dist/{discord-B982Qaml.js → discord-dT97h-CC.js} +3 -3
  45. package/dist/down-DP56YSKp.js +606 -0
  46. package/dist/{etherscan-CFL0IcNl.js → etherscan-rYFRhRTM.js} +3 -3
  47. package/dist/ethertousd-CC_ezooz.js +6 -0
  48. package/dist/{exclamation-triangle-BBeGXYgt.js → exclamation-triangle-C-pCuC08.js} +3 -3
  49. package/dist/{extension-C5WqJw73.js → extension-BnqauLSn.js} +3 -3
  50. package/dist/{external-link-CcSxVDcd.js → external-link-M9D6e_F3.js} +3 -3
  51. package/dist/{facebook-DF0v9ED8.js → facebook-DHezcoD-.js} +3 -3
  52. package/dist/{farcaster-Boq7M4VK.js → farcaster-D0Ky-Imv.js} +3 -3
  53. package/dist/{filters-DfeymbPx.js → filters-B02NYLWq.js} +3 -3
  54. package/dist/getChainIds-CJd2TZYT.js +1888 -0
  55. package/dist/getCosmosAddress-DTZfw04G.js +9565 -0
  56. package/dist/{github-DQ8FV4bD.js → github-BzQkIMuE.js} +3 -3
  57. package/dist/{google-Dm8FDDZR.js → google-BpwCJ4Fs.js} +3 -3
  58. package/dist/hamburger-BzqwkUjE.js +3915 -0
  59. package/dist/{help-circle-CbgiAebR.js → help-circle-C0nOySHC.js} +3 -3
  60. package/dist/{id-CzqxUksI.js → id-DFP_kFd4.js} +3 -3
  61. package/dist/{image-CsCGTIN-.js → image-QiYOAGjM.js} +3 -3
  62. package/dist/index-CDq3vNnP.js +22 -0
  63. package/dist/index-CLzkn733.js +28223 -0
  64. package/dist/index-CjtwASJt.js +252 -0
  65. package/dist/index-CrC4B7xn.js +331 -0
  66. package/dist/index-D5hLIe-N.js +9 -0
  67. package/dist/index-DDk00SOL.js +159 -0
  68. package/dist/index-DTish3yr.js +1014 -0
  69. package/dist/index-DW3W7zaF.js +473 -0
  70. package/dist/index-DXdD3L9f.js +1460 -0
  71. package/dist/index-DaJ1272l.js +18613 -0
  72. package/dist/index-DxPp2gBS.js +992 -0
  73. package/dist/index-Dy_n2MPD.js +3010 -0
  74. package/dist/index-oc8HPfOF.js +13583 -0
  75. package/dist/index.es-Bsr7zP98.js +366 -0
  76. package/dist/index.es-C-j-Ghef.js +11678 -0
  77. package/dist/index.es.js +4 -4
  78. package/dist/{info-fKCfLW0k.js → info-BTLQJ-wd.js} +3 -3
  79. package/dist/{info-circle-Bt350Yzj.js → info-circle-Dla9169_.js} +3 -3
  80. package/dist/{lightbulb-BL9YBxiA.js → lightbulb-PN8DA_Wh.js} +3 -3
  81. package/dist/{mail-_g6CHQeQ.js → mail-BGYZut_4.js} +3 -3
  82. package/dist/{mobile-B-EQ4IcH.js → mobile-BM760ZzX.js} +3 -3
  83. package/dist/{more-C3rpOdUy.js → more-rHGnl2ck.js} +3 -3
  84. package/dist/{network-placeholder-D9Ak7Xj_.js → network-placeholder-CyQl-3_2.js} +3 -3
  85. package/dist/{nftPlaceholder-CIIm2V_o.js → nftPlaceholder-nuUJ8nKY.js} +3 -3
  86. package/dist/{off-DZjgI0eE.js → off-GYlwYDrT.js} +3 -3
  87. package/dist/{play-store-DvRnagoF.js → play-store-Ck01Ez1F.js} +3 -3
  88. package/dist/{plus-C2jN2huZ.js → plus-CQfXWgLw.js} +3 -3
  89. package/dist/{qr-code-B64HnZgi.js → qr-code-CyLVwLY7.js} +3 -3
  90. package/dist/{recycle-horizontal-CovcJGa_.js → recycle-horizontal-DvnWPcEQ.js} +3 -3
  91. package/dist/{refresh-J1Vw6QMA.js → refresh-BOxj8b2n.js} +3 -3
  92. package/dist/{reown-logo-BsXoZ3KT.js → reown-logo-D1iprOTg.js} +3 -3
  93. package/dist/{search-BC86wYXR.js → search-DrPaZPnc.js} +3 -3
  94. package/dist/secp256k1-DgmH1qVg.js +1251 -0
  95. package/dist/{send-BPA1bK5G.js → send-ybBREe4b.js} +3 -3
  96. package/dist/shareicon-D3Qj5j1T.js +262 -0
  97. package/dist/{sortDown-cDA6MpOw.js → sortDown-CjBaDQTU.js} +13 -13
  98. package/dist/{swapHorizontal-47_8ePle.js → swapHorizontal-BddjZdXK.js} +3 -3
  99. package/dist/{swapHorizontalBold-CJ7TzeQP.js → swapHorizontalBold-B6AWjPZ9.js} +3 -3
  100. package/dist/{swapHorizontalMedium-CTACgUR9.js → swapHorizontalMedium-CNacWoBn.js} +3 -3
  101. package/dist/{swapHorizontalRoundedBold-Ht3_LABp.js → swapHorizontalRoundedBold-B8VcPnqt.js} +3 -3
  102. package/dist/{swapVertical-DlS0V6DD.js → swapVertical-zY2BbSyQ.js} +3 -3
  103. package/dist/{telegram-UZ00kvIE.js → telegram-DS4l-8Oc.js} +3 -3
  104. package/dist/{three-dots-D9zVXr1j.js → three-dots-RctNqamK.js} +3 -3
  105. package/dist/truncate-D9t92mVX.js +7 -0
  106. package/dist/{twitch-CP6rpz4m.js → twitch-CJ0llIIH.js} +3 -3
  107. package/dist/{twitterIcon-Cm3I3FRU.js → twitterIcon-pgvN9-bP.js} +3 -3
  108. package/dist/unsupportedProp-BJVuEW_b.js +10 -0
  109. package/dist/useRegisterError-C_YLA1dw.js +9857 -0
  110. package/dist/validError-CDlJpg_f.js +6 -0
  111. package/dist/{verify-DuUE85WT.js → verify-BeZLo1Fq.js} +3 -3
  112. package/dist/{verify-filled-CfgydKPa.js → verify-filled-meyb7E16.js} +3 -3
  113. package/dist/w3m-modal-C-Jp9NVv.js +1471 -0
  114. package/dist/{wallet-BC2LSDlF.js → wallet-CFcOgSsz.js} +3 -3
  115. package/dist/{wallet-placeholder-DugEJ7xM.js → wallet-placeholder-CeUMILZq.js} +3 -3
  116. package/dist/{walletconnect-wayCaYfk.js → walletconnect-D6LB1PyC.js} +7 -9
  117. package/dist/{warning-circle-Cy9YuvwU.js → warning-circle-BRtzofvT.js} +3 -3
  118. package/dist/{x-jggPFiy-.js → x-DKQAOOh3.js} +3 -3
  119. package/package.json +1 -1
  120. package/dist/AllRoutes-Bdi5ZW8W.js +0 -2604
  121. package/dist/Box-e4gA-y_H.js +0 -60
  122. package/dist/EstGas-C5ihS0Mw.js +0 -17108
  123. package/dist/Grow-B4K-I-E-.js +0 -2212
  124. package/dist/InputComp-C_UUZxNU.js +0 -114
  125. package/dist/LoadRoute-CnDhVKdh.js +0 -142
  126. package/dist/QuotesProgress-DxgPgPJE.js +0 -29
  127. package/dist/SwapAsset-CmmuxeQF.js +0 -65
  128. package/dist/Tooltip-D8YjOOKU.js +0 -718
  129. package/dist/TxnButton-CF-TLZrD.js +0 -302
  130. package/dist/WidgetForm.module-DhUUlwZP.js +0 -13
  131. package/dist/basic-Cx2xxgd9.js +0 -7109
  132. package/dist/ccip-BKpquA5i.js +0 -250
  133. package/dist/clockIcon-jSNFFrLy.js +0 -76
  134. package/dist/core-C-gr9X18.js +0 -17217
  135. package/dist/cursor-BTtIlTHP.js +0 -7
  136. package/dist/down-DDk8OoJG.js +0 -809
  137. package/dist/ethertousd-BOknTgU4.js +0 -7
  138. package/dist/getChainIds-6iugk2h0.js +0 -2431
  139. package/dist/getCosmosAddress-BgD5iV6f.js +0 -13998
  140. package/dist/hamburger-BYe_G11E.js +0 -4562
  141. package/dist/index-BAmjBHYR.js +0 -1087
  142. package/dist/index-BxHeZ9IF.js +0 -543
  143. package/dist/index-C7cb2O7r.js +0 -16078
  144. package/dist/index-CF9p4S_X.js +0 -11
  145. package/dist/index-C_vo1L7p.js +0 -24384
  146. package/dist/index-Ch7w83dW.js +0 -4217
  147. package/dist/index-Crhenmgw.js +0 -188
  148. package/dist/index-Cz5Dosd2.js +0 -412
  149. package/dist/index-D5OnT-__.js +0 -35858
  150. package/dist/index-DArR1lwi.js +0 -1759
  151. package/dist/index-hEJSpZe-.js +0 -308
  152. package/dist/index-m2O0cbD8.js +0 -1883
  153. package/dist/index-sLx4Edw4.js +0 -22
  154. package/dist/index.es-DIbGJsfa.js +0 -475
  155. package/dist/index.es-t6sHlseh.js +0 -12916
  156. package/dist/secp256k1-BkBK0mD5.js +0 -1681
  157. package/dist/shareicon-C88Wx-AM.js +0 -314
  158. package/dist/truncate-DSxFWEga.js +0 -7
  159. package/dist/unsupportedProp-DkeDzLfM.js +0 -14
  160. package/dist/useRegisterError-W_UfecIN.js +0 -19288
  161. package/dist/validError-rariWQ7G.js +0 -14
  162. package/dist/w3m-modal-Bl-DPlah.js +0 -1721
@@ -0,0 +1,252 @@
1
+ import { jsxs as b, jsx as r, 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-CEFILtyf.js";
4
+ import { u as l, l as W } from "./index-CLzkn733.js";
5
+ import { i as D, C as Q, S as X } from "./useRegisterError-C_YLA1dw.js";
6
+ import { B as Y } from "./Box-CIChapvH.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), n = 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__ */ r(A, {}) : /* @__PURE__ */ b("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 = (c = n.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__ */ 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 = (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), n = l((s) => s.persist), a = l((s) => s.setPersist), { isErrorMessage: f } = H(U), 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 [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 || !n.isQuoteTimer) && clearInterval(N);
60
+ }, [f, n.isQuoteTimer]), !(n != null && n.hash) && n.quote === "enable" ? /* @__PURE__ */ b("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__ */ b("linearGradient", { id: "linearColors", x1: "0", y1: "0", x2: "1", y2: "1", children: [
62
+ /* @__PURE__ */ r("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__ */ r("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__ */ r(
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__ */ r(
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__ */ r(A, {});
106
+ }
107
+ const ee = G.memo(function({
108
+ handleOpenExchange: t,
109
+ amount: n,
110
+ route: a,
111
+ resetAmount: f,
112
+ resetBalance: d,
113
+ setExchange: w
114
+ }) {
115
+ var k;
116
+ 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;
117
+ v(() => {
118
+ var o, j, z, F;
119
+ a != null && a.routeId && i({
120
+ ...(o = l.getState()) == null ? void 0 : o.persist,
121
+ routeId: a == null ? void 0 : a.routeId,
122
+ route: a,
123
+ toChain: m,
124
+ toCoin: g,
125
+ fromChain: u,
126
+ fromCoin: c,
127
+ amount: n,
128
+ quote: "enable",
129
+ openAt: (/* @__PURE__ */ new Date()).getTime(),
130
+ startTime: ((F = (z = (j = l) == null ? void 0 : j.getState()) == null ? void 0 : z.persist) == null ? void 0 : F.startTime) || (/* @__PURE__ */ new Date()).getTime()
131
+ });
132
+ }, [a]);
133
+ function I(o) {
134
+ s(o);
135
+ }
136
+ function S() {
137
+ ((e == null ? void 0 : e.openAt) + 60 * 60 * 1e3 - (/* @__PURE__ */ new Date()).getTime()) / 1e3 / 60 <= 0 && document.visibilityState === "visible" && (i({}), t(), f());
138
+ }
139
+ v(() => (e != null && e.openAt && window.addEventListener("visibilitychange", S), () => {
140
+ window.removeEventListener("visibilitychange", S);
141
+ }), [e == null ? void 0 : e.openAt]), v(() => (e != null && e.openAt && window.addEventListener("load", S), () => {
142
+ window.removeEventListener("load", S);
143
+ }), [e == null ? void 0 : e.openAt]);
144
+ function q(o) {
145
+ y(o);
146
+ }
147
+ function B(o) {
148
+ C(o);
149
+ }
150
+ function P() {
151
+ t(), i({}), h && d();
152
+ }
153
+ return /* @__PURE__ */ r($.Provider, { value: { isTxnSuccessful: h, handleTxnSuccess: q }, children: /* @__PURE__ */ r(U.Provider, { value: { isErrorMessage: p, handleErrorMessage: B }, children: /* @__PURE__ */ b("div", { className: "bw-w-full bw-relative bw-min-h-[610px] ", children: [
154
+ /* @__PURE__ */ r(O, { handleBack: P }),
155
+ /* @__PURE__ */ r("div", { className: "bw-mt-[-20px] ", children: /* @__PURE__ */ r(Z, {}) }),
156
+ e != null && e.isQuoteTimer ? /* @__PURE__ */ r(R, {}) : /* @__PURE__ */ r(A, {}),
157
+ /* @__PURE__ */ r("div", { className: "bw-flex bw-justify-between bw-items-center" }),
158
+ /* @__PURE__ */ b("div", { className: "bw-flex bw-w-full bw-mt-4 bw-justify-between bw-items-center", children: [
159
+ /* @__PURE__ */ b("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
160
+ /* @__PURE__ */ r("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Send" }),
161
+ /* @__PURE__ */ r(
162
+ L,
163
+ {
164
+ amount: e == null ? void 0 : e.amount,
165
+ coinData: e.fromCoin,
166
+ chainData: e.fromChain,
167
+ field: "from"
168
+ }
169
+ )
170
+ ] }),
171
+ p ? /* @__PURE__ */ r(
172
+ "div",
173
+ {
174
+ 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-card bw-relative bw-z-10 hover:bw-opacity-100 bw-border-border-primary ",
175
+ children: /* @__PURE__ */ r("img", { src: M, width: 33, height: 30, alt: "img" })
176
+ }
177
+ ) : /* @__PURE__ */ r(
178
+ J,
179
+ {
180
+ isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x,
181
+ startTimer: I,
182
+ error: p
183
+ }
184
+ ),
185
+ /* @__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 " }),
186
+ /* @__PURE__ */ b("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
187
+ /* @__PURE__ */ r("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Receive" }),
188
+ /* @__PURE__ */ r(
189
+ L,
190
+ {
191
+ amount: Number(((k = e == null ? void 0 : e.route) == null ? void 0 : k.outputAmountDisplay) || ""),
192
+ coinData: e == null ? void 0 : e.toCoin,
193
+ chainData: e == null ? void 0 : e.toChain,
194
+ field: "to"
195
+ }
196
+ )
197
+ ] })
198
+ ] }),
199
+ /* @__PURE__ */ b("div", { className: "bw-h-[320px] bw-pr-1 bw-flex bw-flex-col bw-mt-8 bw-overflow-y-auto", children: [
200
+ T ? /* @__PURE__ */ r(A, {}) : /* @__PURE__ */ r(K, {}),
201
+ /* @__PURE__ */ r(
202
+ V,
203
+ {
204
+ handleOpenExchange: t,
205
+ setExchange: w,
206
+ amount: n,
207
+ startTimer: I,
208
+ handleBack: P,
209
+ isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x
210
+ }
211
+ )
212
+ ] })
213
+ ] }) }) });
214
+ });
215
+ function le({
216
+ handleConfirmClose: t,
217
+ routesData: n,
218
+ amount: a,
219
+ resetAmount: f,
220
+ resetBalance: d,
221
+ handleStopRoute: w
222
+ }) {
223
+ const i = _();
224
+ v(() => {
225
+ var c, m;
226
+ !i.current && Number(
227
+ ((c = i == null ? void 0 : i.current) == null ? void 0 : c.minOutputAmount) || ((m = i == null ? void 0 : i.current) == null ? void 0 : m.outputAmountDisplay)
228
+ ) !== Number((n == null ? void 0 : n.minOutputAmount) || (n == null ? void 0 : n.outputAmountDisplay)) && (i.current = n);
229
+ }, [n]), v(() => {
230
+ w(!0);
231
+ }, []);
232
+ function e() {
233
+ w(!1), t(!1);
234
+ }
235
+ function u() {
236
+ t(!1);
237
+ }
238
+ return /* @__PURE__ */ r(
239
+ ee,
240
+ {
241
+ handleOpenExchange: e,
242
+ amount: a,
243
+ route: n,
244
+ resetAmount: f,
245
+ resetBalance: d,
246
+ setExchange: u
247
+ }
248
+ );
249
+ }
250
+ export {
251
+ le as default
252
+ };
@@ -0,0 +1,331 @@
1
+ import { g as O, _ as Y, b as P, d as v, p as h, P as c } from "./index-CLzkn733.js";
2
+ import * as C from "react";
3
+ import { jsxs as M, jsx as x } from "react/jsx-runtime";
4
+ import { g as w, d as z, s as L, c as b, a as F } from "./useRegisterError-C_YLA1dw.js";
5
+ function H(r, i = 166) {
6
+ let o;
7
+ function a(...s) {
8
+ const u = () => {
9
+ r.apply(this, s);
10
+ };
11
+ clearTimeout(o), o = setTimeout(u, i);
12
+ }
13
+ return a.clear = () => {
14
+ clearTimeout(o);
15
+ }, a;
16
+ }
17
+ function V(r) {
18
+ return O("MuiSvgIcon", r);
19
+ }
20
+ w("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
21
+ const D = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], U = (r) => {
22
+ const {
23
+ color: i,
24
+ fontSize: o,
25
+ classes: a
26
+ } = r, s = {
27
+ root: ["root", i !== "inherit" && `color${v(i)}`, `fontSize${v(o)}`]
28
+ };
29
+ return F(s, V, a);
30
+ }, B = L("svg", {
31
+ name: "MuiSvgIcon",
32
+ slot: "Root",
33
+ overridesResolver: (r, i) => {
34
+ const {
35
+ ownerState: o
36
+ } = r;
37
+ return [i.root, o.color !== "inherit" && i[`color${v(o.color)}`], i[`fontSize${v(o.fontSize)}`]];
38
+ }
39
+ })(({
40
+ theme: r,
41
+ ownerState: i
42
+ }) => {
43
+ var o, a, s, u, p, m, _, E, d, f, S, T, l;
44
+ return {
45
+ userSelect: "none",
46
+ width: "1em",
47
+ height: "1em",
48
+ display: "inline-block",
49
+ // the <svg> will define the property that has `currentColor`
50
+ // for example heroicons uses fill="none" and stroke="currentColor"
51
+ fill: i.hasSvgAsChild ? void 0 : "currentColor",
52
+ flexShrink: 0,
53
+ transition: (o = r.transitions) == null || (a = o.create) == null ? void 0 : a.call(o, "fill", {
54
+ duration: (s = r.transitions) == null || (s = s.duration) == null ? void 0 : s.shorter
55
+ }),
56
+ fontSize: {
57
+ inherit: "inherit",
58
+ small: ((u = r.typography) == null || (p = u.pxToRem) == null ? void 0 : p.call(u, 20)) || "1.25rem",
59
+ medium: ((m = r.typography) == null || (_ = m.pxToRem) == null ? void 0 : _.call(m, 24)) || "1.5rem",
60
+ large: ((E = r.typography) == null || (d = E.pxToRem) == null ? void 0 : d.call(E, 35)) || "2.1875rem"
61
+ }[i.fontSize],
62
+ // TODO v5 deprecate, v6 remove for sx
63
+ color: (f = (S = (r.vars || r).palette) == null || (S = S[i.color]) == null ? void 0 : S.main) != null ? f : {
64
+ action: (T = (r.vars || r).palette) == null || (T = T.action) == null ? void 0 : T.active,
65
+ disabled: (l = (r.vars || r).palette) == null || (l = l.action) == null ? void 0 : l.disabled,
66
+ inherit: void 0
67
+ }[i.color]
68
+ };
69
+ }), g = /* @__PURE__ */ C.forwardRef(function(i, o) {
70
+ const a = z({
71
+ props: i,
72
+ name: "MuiSvgIcon"
73
+ }), {
74
+ children: s,
75
+ className: u,
76
+ color: p = "inherit",
77
+ component: m = "svg",
78
+ fontSize: _ = "medium",
79
+ htmlColor: E,
80
+ inheritViewBox: d = !1,
81
+ titleAccess: f,
82
+ viewBox: S = "0 0 24 24"
83
+ } = a, T = Y(a, D), l = /* @__PURE__ */ C.isValidElement(s) && s.type === "svg", e = P({}, a, {
84
+ color: p,
85
+ component: m,
86
+ fontSize: _,
87
+ instanceFontSize: i.fontSize,
88
+ inheritViewBox: d,
89
+ viewBox: S,
90
+ hasSvgAsChild: l
91
+ }), R = {};
92
+ d || (R.viewBox = S);
93
+ const N = U(e);
94
+ return /* @__PURE__ */ M(B, P({
95
+ as: m,
96
+ className: b(N.root, u),
97
+ focusable: "false",
98
+ color: E,
99
+ "aria-hidden": f ? void 0 : !0,
100
+ role: f ? "img" : void 0,
101
+ ref: o
102
+ }, R, T, l && s.props, {
103
+ ownerState: e,
104
+ children: [l ? s.props.children : s, f ? /* @__PURE__ */ x("title", {
105
+ children: f
106
+ }) : null]
107
+ }));
108
+ });
109
+ h.env.NODE_ENV !== "production" && (g.propTypes = {
110
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
111
+ // │ These PropTypes are generated from the TypeScript type definitions. │
112
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
113
+ // └─────────────────────────────────────────────────────────────────────┘
114
+ /**
115
+ * Node passed into the SVG element.
116
+ */
117
+ children: c.node,
118
+ /**
119
+ * Override or extend the styles applied to the component.
120
+ */
121
+ classes: c.object,
122
+ /**
123
+ * @ignore
124
+ */
125
+ className: c.string,
126
+ /**
127
+ * The color of the component.
128
+ * It supports both default and custom theme colors, which can be added as shown in the
129
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
130
+ * You can use the `htmlColor` prop to apply a color attribute to the SVG element.
131
+ * @default 'inherit'
132
+ */
133
+ color: c.oneOfType([c.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), c.string]),
134
+ /**
135
+ * The component used for the root node.
136
+ * Either a string to use a HTML element or a component.
137
+ */
138
+ component: c.elementType,
139
+ /**
140
+ * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
141
+ * @default 'medium'
142
+ */
143
+ fontSize: c.oneOfType([c.oneOf(["inherit", "large", "medium", "small"]), c.string]),
144
+ /**
145
+ * Applies a color attribute to the SVG element.
146
+ */
147
+ htmlColor: c.string,
148
+ /**
149
+ * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
150
+ * prop will be ignored.
151
+ * Useful when you want to reference a custom `component` and have `SvgIcon` pass that
152
+ * `component`'s viewBox to the root node.
153
+ * @default false
154
+ */
155
+ inheritViewBox: c.bool,
156
+ /**
157
+ * The shape-rendering attribute. The behavior of the different options is described on the
158
+ * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
159
+ * If you are having issues with blurry icons you should investigate this prop.
160
+ */
161
+ shapeRendering: c.string,
162
+ /**
163
+ * The system prop that allows defining system overrides as well as additional CSS styles.
164
+ */
165
+ sx: c.oneOfType([c.arrayOf(c.oneOfType([c.func, c.object, c.bool])), c.func, c.object]),
166
+ /**
167
+ * Provides a human-readable title for the element that contains it.
168
+ * https://www.w3.org/TR/SVG-access/#Equivalent
169
+ */
170
+ titleAccess: c.string,
171
+ /**
172
+ * Allows you to redefine what the coordinates without units mean inside an SVG element.
173
+ * For example, if the SVG element is 500 (width) by 200 (height),
174
+ * and you pass viewBox="0 0 50 20",
175
+ * this means that the coordinates inside the SVG will go from the top left corner (0,0)
176
+ * to bottom right (50,20) and each unit will be worth 10px.
177
+ * @default '0 0 24 24'
178
+ */
179
+ viewBox: c.string
180
+ });
181
+ g.muiName = "SvgIcon";
182
+ function J(r, i) {
183
+ function o(a, s) {
184
+ return /* @__PURE__ */ x(g, P({
185
+ "data-testid": `${i}Icon`,
186
+ ref: s
187
+ }, a, {
188
+ children: r
189
+ }));
190
+ }
191
+ return h.env.NODE_ENV !== "production" && (o.displayName = `${i}Icon`), o.muiName = g.muiName, /* @__PURE__ */ C.memo(/* @__PURE__ */ C.forwardRef(o));
192
+ }
193
+ var y = { exports: {} }, t = {};
194
+ var $;
195
+ function q() {
196
+ if ($) return t;
197
+ $ = 1;
198
+ var r = Symbol.for("react.transitional.element"), i = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), u = Symbol.for("react.consumer"), p = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), E = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), S = Symbol.for("react.view_transition"), T = Symbol.for("react.client.reference");
199
+ function l(e) {
200
+ if (typeof e == "object" && e !== null) {
201
+ var R = e.$$typeof;
202
+ switch (R) {
203
+ case r:
204
+ switch (e = e.type, e) {
205
+ case o:
206
+ case s:
207
+ case a:
208
+ case _:
209
+ case E:
210
+ case S:
211
+ return e;
212
+ default:
213
+ switch (e = e && e.$$typeof, e) {
214
+ case p:
215
+ case m:
216
+ case f:
217
+ case d:
218
+ return e;
219
+ case u:
220
+ return e;
221
+ default:
222
+ return R;
223
+ }
224
+ }
225
+ case i:
226
+ return R;
227
+ }
228
+ }
229
+ }
230
+ return t.ContextConsumer = u, t.ContextProvider = p, t.Element = r, t.ForwardRef = m, t.Fragment = o, t.Lazy = f, t.Memo = d, t.Portal = i, t.Profiler = s, t.StrictMode = a, t.Suspense = _, t.SuspenseList = E, t.isContextConsumer = function(e) {
231
+ return l(e) === u;
232
+ }, t.isContextProvider = function(e) {
233
+ return l(e) === p;
234
+ }, t.isElement = function(e) {
235
+ return typeof e == "object" && e !== null && e.$$typeof === r;
236
+ }, t.isForwardRef = function(e) {
237
+ return l(e) === m;
238
+ }, t.isFragment = function(e) {
239
+ return l(e) === o;
240
+ }, t.isLazy = function(e) {
241
+ return l(e) === f;
242
+ }, t.isMemo = function(e) {
243
+ return l(e) === d;
244
+ }, t.isPortal = function(e) {
245
+ return l(e) === i;
246
+ }, t.isProfiler = function(e) {
247
+ return l(e) === s;
248
+ }, t.isStrictMode = function(e) {
249
+ return l(e) === a;
250
+ }, t.isSuspense = function(e) {
251
+ return l(e) === _;
252
+ }, t.isSuspenseList = function(e) {
253
+ return l(e) === E;
254
+ }, t.isValidElementType = function(e) {
255
+ return typeof e == "string" || typeof e == "function" || e === o || e === s || e === a || e === _ || e === E || typeof e == "object" && e !== null && (e.$$typeof === f || e.$$typeof === d || e.$$typeof === p || e.$$typeof === u || e.$$typeof === m || e.$$typeof === T || e.getModuleId !== void 0);
256
+ }, t.typeOf = l, t;
257
+ }
258
+ var n = {}, A;
259
+ function W() {
260
+ return A || (A = 1, h.env.NODE_ENV !== "production" && function() {
261
+ function r(e) {
262
+ if (typeof e == "object" && e !== null) {
263
+ var R = e.$$typeof;
264
+ switch (R) {
265
+ case i:
266
+ switch (e = e.type, e) {
267
+ case a:
268
+ case u:
269
+ case s:
270
+ case E:
271
+ case d:
272
+ case T:
273
+ return e;
274
+ default:
275
+ switch (e = e && e.$$typeof, e) {
276
+ case m:
277
+ case _:
278
+ case S:
279
+ case f:
280
+ return e;
281
+ case p:
282
+ return e;
283
+ default:
284
+ return R;
285
+ }
286
+ }
287
+ case o:
288
+ return R;
289
+ }
290
+ }
291
+ }
292
+ var i = Symbol.for("react.transitional.element"), o = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), p = Symbol.for("react.consumer"), m = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), T = Symbol.for("react.view_transition"), l = Symbol.for("react.client.reference");
293
+ n.ContextConsumer = p, n.ContextProvider = m, n.Element = i, n.ForwardRef = _, n.Fragment = a, n.Lazy = S, n.Memo = f, n.Portal = o, n.Profiler = u, n.StrictMode = s, n.Suspense = E, n.SuspenseList = d, n.isContextConsumer = function(e) {
294
+ return r(e) === p;
295
+ }, n.isContextProvider = function(e) {
296
+ return r(e) === m;
297
+ }, n.isElement = function(e) {
298
+ return typeof e == "object" && e !== null && e.$$typeof === i;
299
+ }, n.isForwardRef = function(e) {
300
+ return r(e) === _;
301
+ }, n.isFragment = function(e) {
302
+ return r(e) === a;
303
+ }, n.isLazy = function(e) {
304
+ return r(e) === S;
305
+ }, n.isMemo = function(e) {
306
+ return r(e) === f;
307
+ }, n.isPortal = function(e) {
308
+ return r(e) === o;
309
+ }, n.isProfiler = function(e) {
310
+ return r(e) === u;
311
+ }, n.isStrictMode = function(e) {
312
+ return r(e) === s;
313
+ }, n.isSuspense = function(e) {
314
+ return r(e) === E;
315
+ }, n.isSuspenseList = function(e) {
316
+ return r(e) === d;
317
+ }, n.isValidElementType = function(e) {
318
+ return typeof e == "string" || typeof e == "function" || e === a || e === u || e === s || e === E || e === d || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === f || e.$$typeof === m || e.$$typeof === p || e.$$typeof === _ || e.$$typeof === l || e.getModuleId !== void 0);
319
+ }, n.typeOf = r;
320
+ }()), n;
321
+ }
322
+ var I;
323
+ function k() {
324
+ return I || (I = 1, h.env.NODE_ENV === "production" ? y.exports = /* @__PURE__ */ q() : y.exports = /* @__PURE__ */ W()), y.exports;
325
+ }
326
+ var K = /* @__PURE__ */ k();
327
+ export {
328
+ J as c,
329
+ H as d,
330
+ K as r
331
+ };
@@ -0,0 +1,9 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import "react";
3
+ import { F as m } from "./useRegisterError-C_YLA1dw.js";
4
+ function n({ value: t, decimal: o }) {
5
+ return t.length ? /* @__PURE__ */ r(m, { value: t, options: { maxDecimals: o } }) : t;
6
+ }
7
+ export {
8
+ n as O
9
+ };