@blockend/widget 1.0.38 → 1.0.39-beta.1

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 (110) hide show
  1. package/dist/{AllRoutes-B7pX20Zo.js → AllRoutes-pVn5r2AF.js} +17 -17
  2. package/dist/{Box-D4SF6IgE.js → Box-2EhEu03K.js} +1 -1
  3. package/dist/{EstGas-XPPmSPyE.js → EstGas-WwkfFHpv.js} +54 -224
  4. package/dist/{Grow-CIKLOO0_.js → Grow-D4EVow-M.js} +2 -2
  5. package/dist/{InputComp-CmIAuBF5.js → InputComp-DQBDoD71.js} +6 -6
  6. package/dist/{LoadRoute-DKqaBFPc.js → LoadRoute-42ZgErfe.js} +39 -39
  7. package/dist/{QuotesProgress-Cd8OXy_N.js → QuotesProgress-CTlZ7elT.js} +1 -1
  8. package/dist/{SwapAsset-D4Ordn3g.js → SwapAsset-CU5YEZ75.js} +4 -17
  9. package/dist/{Tooltip-D9AmvxjY.js → Tooltip-DSOAqpED.js} +3 -3
  10. package/dist/{TxnButton-B-83_5zc.js → TxnButton-CfruxaOs.js} +19 -19
  11. package/dist/{add-BZzjgxfy.js → add-DayuYwbp.js} +1 -1
  12. package/dist/{all-wallets-DLW4V3zq.js → all-wallets-B7lOWwQ-.js} +1 -1
  13. package/dist/{app-store-D9zl-1il.js → app-store-CWVen5K_.js} +1 -1
  14. package/dist/{apple-nhTBOubh.js → apple-Xce5ePDw.js} +1 -1
  15. package/dist/{arrow-bottom-CA41golp.js → arrow-bottom-CJ5QodIU.js} +1 -1
  16. package/dist/{arrow-bottom-circle-C7bcVyL5.js → arrow-bottom-circle-m6M-yL2m.js} +1 -1
  17. package/dist/{arrow-left-Dr3e_iWm.js → arrow-left-gbgYje3p.js} +1 -1
  18. package/dist/{arrow-right-BWPh_8om.js → arrow-right-BWBYQ-3w.js} +1 -1
  19. package/dist/{arrow-top-B-3i_liJ.js → arrow-top-TV0fK_PC.js} +1 -1
  20. package/dist/{bank-Dx797_uv.js → bank-D5WUpbbn.js} +1 -1
  21. package/dist/{basic-D0oXwPg9.js → basic-yKyoIw_n.js} +3 -3
  22. package/dist/{browser-BSKhz_Rl.js → browser-C1Gw-601.js} +1 -1
  23. package/dist/{card-JvH_eZER.js → card-BGu7Ytfr.js} +1 -1
  24. package/dist/{ccip-Q2_jbZ9I.js → ccip-8pKaCE7W.js} +1 -1
  25. package/dist/{checkmark-BWJC9xZR.js → checkmark-DXjp9482.js} +1 -1
  26. package/dist/{checkmark-bold-Cl8Q-86u.js → checkmark-bold-C-Za8drF.js} +1 -1
  27. package/dist/{chevron-bottom-B5LD72dB.js → chevron-bottom-pyAIkjST.js} +1 -1
  28. package/dist/{chevron-left-zcD_S5Mh.js → chevron-left-Fo0wnlZX.js} +1 -1
  29. package/dist/{chevron-right-Dshpb1tn.js → chevron-right-DkmxB-lW.js} +1 -1
  30. package/dist/{chevron-top-CyAvSkbB.js → chevron-top-r9CVQcQg.js} +1 -1
  31. package/dist/{chrome-store-IqQZe3Dt.js → chrome-store-CRlb0bJh.js} +1 -1
  32. package/dist/{clock-C3R8kpDJ.js → clock-TqJS2h0Z.js} +1 -1
  33. package/dist/{close-CFffZcXA.js → close-C2cPb_3q.js} +1 -1
  34. package/dist/{coinPlaceholder-D5ue3gut.js → coinPlaceholder-D-_tUshz.js} +1 -1
  35. package/dist/{compass-5P5ETuT-.js → compass-D-JOMMbC.js} +1 -1
  36. package/dist/{copy-sOWq_xZr.js → copy-CS7IA_r_.js} +1 -1
  37. package/dist/{core-CkGb3HnF.js → core-DbjedOio.js} +3 -3
  38. package/dist/{cursor-C9PsMzYL.js → cursor-3K2-QZLT.js} +1 -1
  39. package/dist/{cursor-transparent-DhdvRXRL.js → cursor-transparent-DKdHMJra.js} +1 -1
  40. package/dist/{desktop-nlXeRhMP.js → desktop-CAxsE6Ga.js} +1 -1
  41. package/dist/{disconnect-r6cq0rms.js → disconnect-Dc-LNqNb.js} +1 -1
  42. package/dist/{discord-wtaS7sRl.js → discord-VfiQtaLg.js} +1 -1
  43. package/dist/{down-BWT0-5W2.js → down-C69EIwo1.js} +4 -4
  44. package/dist/{etherscan-C6JzEuD5.js → etherscan-nfJcVg9R.js} +1 -1
  45. package/dist/{exclamation-triangle-SYK5z7t0.js → exclamation-triangle-DaMU5L_4.js} +1 -1
  46. package/dist/{extension-BtKfbDhd.js → extension-BaO8FLXh.js} +1 -1
  47. package/dist/{external-link-DiJAb_Zx.js → external-link-B9oCkuPJ.js} +1 -1
  48. package/dist/{facebook-C6waWMFR.js → facebook-nSdQubUH.js} +1 -1
  49. package/dist/{farcaster-B2h5iNcC.js → farcaster-BtInSUqS.js} +1 -1
  50. package/dist/{filters-D5fv3EPd.js → filters-C9LrueAm.js} +1 -1
  51. package/dist/{getChainIds-Dz6aap_K.js → getChainIds-CQg6djVc.js} +2 -2
  52. package/dist/{getCosmosAddress-8jLHKIcL.js → getCosmosAddress-Qwk5Y2WB.js} +2 -2
  53. package/dist/{github-BFPJm3cS.js → github-BVzfRJXr.js} +1 -1
  54. package/dist/{google-BKrDcc4H.js → google-C_Zkq44M.js} +1 -1
  55. package/dist/{hamburger-DIZlVaaS.js → hamburger-Bss9ENTU.js} +5 -5
  56. package/dist/{help-circle-B9E4KaaL.js → help-circle-D9KC2TTg.js} +1 -1
  57. package/dist/{id-DSWELVdP.js → id-D5ODDUPi.js} +1 -1
  58. package/dist/{image-D_XLTDNA.js → image-D9BguVkX.js} +1 -1
  59. package/dist/{index-Dbievn97.js → index-B-LMuVus.js} +6 -6
  60. package/dist/{index-C-nZzi_h.js → index-B-Y6H6ZT.js} +2 -2
  61. package/dist/{index-wgpAJ4oi.js → index-B8BzdUYX.js} +396 -396
  62. package/dist/{index-BAfaemUH.js → index-Bknn7U1s.js} +41 -87
  63. package/dist/{index-CuTh2WgK.js → index-C3Yx39QI.js} +43 -109
  64. package/dist/{index-BvLXd2ez.js → index-CCJxyv13.js} +1724 -1724
  65. package/dist/{index-8-b4bggg.js → index-Csnr5wYZ.js} +116 -142
  66. package/dist/{index-OqRsFFkj.js → index-D1suJrBe.js} +78 -78
  67. package/dist/{index-DDX8hCfq.js → index-D7cNHH01.js} +1 -1
  68. package/dist/{index-C8qMFb8J.js → index-DTTNs7X2.js} +1 -1
  69. package/dist/{index-tz85S4oi.js → index-mLOjEWq5.js} +20 -46
  70. package/dist/{index.es-DmoKG6PQ.js → index.es-BvpkVeYn.js} +1 -1
  71. package/dist/{index.es-C8S1tVGA.js → index.es-J7Adt0qn.js} +2 -2
  72. package/dist/index.es.js +1 -1
  73. package/dist/{info-Jp3wzaJD.js → info-BbZu8EmP.js} +1 -1
  74. package/dist/{info-circle-D8qzYGLl.js → info-circle-DC4d8t58.js} +1 -1
  75. package/dist/{lightbulb-BPif1XX7.js → lightbulb-B_XHWcwO.js} +1 -1
  76. package/dist/{mail-CXvOvka2.js → mail-DUBlSWnW.js} +1 -1
  77. package/dist/{mobile-6jozwZ_W.js → mobile-DW7n1RaC.js} +1 -1
  78. package/dist/{more-4GK73HVb.js → more-CHiJ0jdA.js} +1 -1
  79. package/dist/{network-placeholder-BXMI9mvM.js → network-placeholder-fkXdFnU3.js} +1 -1
  80. package/dist/{nftPlaceholder-eFMtbevb.js → nftPlaceholder-CzdJZ_xc.js} +1 -1
  81. package/dist/{off-BVgsCCY7.js → off-liaZCdZH.js} +1 -1
  82. package/dist/{play-store-CSnP_bJN.js → play-store-Dlmh4PlW.js} +1 -1
  83. package/dist/{plus-DJwRlvDh.js → plus-QBGWemZZ.js} +1 -1
  84. package/dist/{qr-code-BlSwmYrr.js → qr-code-2rARSIxP.js} +1 -1
  85. package/dist/{recycle-horizontal-BHvmgtxJ.js → recycle-horizontal-DByCihYW.js} +1 -1
  86. package/dist/{refresh-BRF6qJWJ.js → refresh-BFM457iN.js} +1 -1
  87. package/dist/{reown-logo-BoS3xniW.js → reown-logo-C9dbpsPZ.js} +1 -1
  88. package/dist/{search-Ce5NGUl8.js → search-_GMCgtU4.js} +1 -1
  89. package/dist/{send-BQypsZV1.js → send-CBnSvpXY.js} +1 -1
  90. package/dist/{swapHorizontal-D6nLcUbS.js → swapHorizontal-BiN3nSBx.js} +1 -1
  91. package/dist/{swapHorizontalBold-BjyFhrDl.js → swapHorizontalBold-CAWIrlnq.js} +1 -1
  92. package/dist/{swapHorizontalMedium-yfsH3ZiT.js → swapHorizontalMedium-DrfkO94z.js} +1 -1
  93. package/dist/{swapHorizontalRoundedBold--7neTazp.js → swapHorizontalRoundedBold-DbJnc4Gs.js} +1 -1
  94. package/dist/{swapVertical-DebXq8vP.js → swapVertical-nx3G0q67.js} +1 -1
  95. package/dist/{telegram-DdA-uHK5.js → telegram-BBmONWiX.js} +1 -1
  96. package/dist/{three-dots-n4hxld75.js → three-dots-CxLcYR_u.js} +1 -1
  97. package/dist/{twitch-CebVfqsE.js → twitch-BCER0FU2.js} +1 -1
  98. package/dist/{twitterIcon-cB7s4iFj.js → twitterIcon-D7lNSGDl.js} +1 -1
  99. package/dist/{unsupportedProp-CM13Y09e.js → unsupportedProp-Cgx_R3Ro.js} +1 -1
  100. package/dist/{useRegisterError-BX8_6VKB.js → useRegisterError-CIj7yT4N.js} +1 -1
  101. package/dist/{verify-B8Nf81Xk.js → verify-BtPqlMYv.js} +1 -1
  102. package/dist/{verify-filled-XrLUzouC.js → verify-filled-D69dNjXa.js} +1 -1
  103. package/dist/{w3m-modal-Cw2A---U.js → w3m-modal-BRaqvs1m.js} +2 -2
  104. package/dist/{wallet-DIi8pXyb.js → wallet-B0uYbj_y.js} +1 -1
  105. package/dist/{wallet-placeholder-B1dz-pLA.js → wallet-placeholder-C64Kayjj.js} +1 -1
  106. package/dist/{walletconnect-CnK4KBEj.js → walletconnect-Bl6U4E40.js} +1 -1
  107. package/dist/{warning-circle-Cm2vNTGA.js → warning-circle-DdcOPYkT.js} +1 -1
  108. package/dist/widget.css +1 -1
  109. package/dist/{x-xCvkwrYO.js → x-PEBthjJm.js} +1 -1
  110. package/package.json +1 -1
@@ -1,19 +1,19 @@
1
- import { jsxs as b, jsx as r, Fragment as A } from "react/jsx-runtime";
1
+ import { jsxs as b, jsx as n, Fragment as A } from "react/jsx-runtime";
2
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-XPPmSPyE.js";
4
- import { u as l, l as W } from "./index-BvLXd2ez.js";
5
- import { i as D, C as Q, A as X } from "./useRegisterError-BX8_6VKB.js";
6
- import { B as Y } from "./Box-D4SF6IgE.js";
3
+ import { a as U, T as $, H as O, b as L, c as J, E as K, d as V } from "./EstGas-WwkfFHpv.js";
4
+ import { u as l, l as W } from "./index-CCJxyv13.js";
5
+ import { i as D, C as Q, A as X } from "./useRegisterError-CIj7yT4N.js";
6
+ import { B as Y } from "./Box-2EhEu03K.js";
7
7
  function Z() {
8
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;
9
+ const t = l((T) => T.persist), r = l((T) => T.configuration), { defaultCoin: a } = D;
10
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(
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
13
  "div",
14
14
  {
15
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)"
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
17
  },
18
18
  className: "bw-w-[200px] bw-rounded-[50%] bw-absolute bw-right-auto bw-z-0 bw-left-auto bw-h-[40px]"
19
19
  }
@@ -21,9 +21,9 @@ function Z() {
21
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
22
  " ",
23
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" }),
24
+ /* @__PURE__ */ n("span", { className: "bw-text-sm bw-font-light", children: "via" }),
25
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 }),
26
+ /* @__PURE__ */ n("img", { src: f, className: "bw-rounded-[50%] bw-mx-[4px] bw-min-w-[18px] bw-max-h-[18px] bw-min-h-[18px]", width: 18, height: 18 }),
27
27
  ((x = (g = t == null ? void 0 : t.route) == null ? void 0 : g.providerDetails) == null ? void 0 : x.name) || "",
28
28
  ": ",
29
29
  (s = t == null ? void 0 : t.route) == null ? void 0 : s.protocolsUsed[0],
@@ -40,8 +40,8 @@ function Z() {
40
40
  let N;
41
41
  function R() {
42
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;
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
45
  const [i, e] = E(w);
46
46
  return v(() => {
47
47
  d && e(w - d);
@@ -56,11 +56,11 @@ function R() {
56
56
  }), 0) : s - 1;
57
57
  });
58
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" })
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
64
  ] }) }),
65
65
  /* @__PURE__ */ b(
66
66
  Y,
@@ -70,7 +70,7 @@ function R() {
70
70
  display: "inline-flex"
71
71
  },
72
72
  children: [
73
- /* @__PURE__ */ r(
73
+ /* @__PURE__ */ n(
74
74
  Q,
75
75
  {
76
76
  variant: "determinate",
@@ -82,7 +82,7 @@ function R() {
82
82
  value: 100
83
83
  }
84
84
  ),
85
- /* @__PURE__ */ r(
85
+ /* @__PURE__ */ n(
86
86
  Q,
87
87
  {
88
88
  variant: "determinate",
@@ -102,16 +102,9 @@ function R() {
102
102
  ]
103
103
  }
104
104
  )
105
- ] }) : /* @__PURE__ */ r(A, {});
105
+ ] }) : /* @__PURE__ */ n(A, {});
106
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
- }) {
107
+ const ee = G.memo(function({ handleOpenExchange: t, amount: r, route: a, resetAmount: f, resetBalance: d, setExchange: w }) {
115
108
  var k;
116
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;
117
110
  v(() => {
@@ -124,7 +117,7 @@ const ee = G.memo(function({
124
117
  toCoin: g,
125
118
  fromChain: u,
126
119
  fromCoin: c,
127
- amount: n,
120
+ amount: r,
128
121
  quote: "enable",
129
122
  openAt: (/* @__PURE__ */ new Date()).getTime(),
130
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()
@@ -150,71 +143,32 @@ const ee = G.memo(function({
150
143
  function P() {
151
144
  t(), i({}), h && d();
152
145
  }
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" }),
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" }),
158
151
  /* @__PURE__ */ b("div", { className: "bw-flex bw-w-full bw-mt-4 bw-justify-between bw-items-center", children: [
159
152
  /* @__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
- )
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" })
170
155
  ] }),
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 " }),
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 " }),
186
158
  /* @__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
- )
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" })
197
161
  ] })
198
162
  ] }),
199
163
  /* @__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
- )
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 })
212
166
  ] })
213
167
  ] }) }) });
214
168
  });
215
169
  function le({
216
170
  handleConfirmClose: t,
217
- routesData: n,
171
+ routesData: r,
218
172
  amount: a,
219
173
  resetAmount: f,
220
174
  resetBalance: d,
@@ -225,8 +179,8 @@ function le({
225
179
  var c, m;
226
180
  !i.current && Number(
227
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)
228
- ) !== Number((n == null ? void 0 : n.minOutputAmount) || (n == null ? void 0 : n.outputAmountDisplay)) && (i.current = n);
229
- }, [n]), v(() => {
182
+ ) !== Number((r == null ? void 0 : r.minOutputAmount) || (r == null ? void 0 : r.outputAmountDisplay)) && (i.current = r);
183
+ }, [r]), v(() => {
230
184
  w(!0);
231
185
  }, []);
232
186
  function e() {
@@ -235,12 +189,12 @@ function le({
235
189
  function u() {
236
190
  t(!1);
237
191
  }
238
- return /* @__PURE__ */ r(
192
+ return /* @__PURE__ */ n(
239
193
  ee,
240
194
  {
241
195
  handleOpenExchange: e,
242
196
  amount: a,
243
- route: n,
197
+ route: r,
244
198
  resetAmount: f,
245
199
  resetBalance: d,
246
200
  setExchange: u
@@ -1,23 +1,23 @@
1
1
  import { jsxs as G, jsx as M, Fragment as Ne } from "react/jsx-runtime";
2
- import { T as Lb } from "./Tooltip-D9AmvxjY.js";
2
+ import { T as Lb } from "./Tooltip-DSOAqpED.js";
3
3
  import { R as Bb } from "./index-CDq3vNnP.js";
4
- import { u as V1, L as Wd, H as X1, M as Y1, a as Z1, P as J1, S as Q1 } from "./hamburger-DIZlVaaS.js";
5
- import { r as Fb, a as ex, b as tx, B as rx, i as jf, u as Ub, C as nx, c as vo, f as ax, d as ix } from "./useRegisterError-BX8_6VKB.js";
6
- import { g as jt, b as tt, _ as It, d as oe, s as mt, e as Z, f as ot, h as $t, r as If, p as ge, P as A, i as Wt, j as it, u as Pr, a as Oi, c as _i, k as fa, m as de, l as $f } from "./index-BvLXd2ez.js";
4
+ import { u as V1, L as Wd, H as X1, M as Y1, a as Z1, P as J1, S as Q1 } from "./hamburger-Bss9ENTU.js";
5
+ import { r as Fb, a as ex, b as tx, B as rx, i as jf, u as Ub, C as nx, c as vo, f as ax, d as ix } from "./useRegisterError-CIj7yT4N.js";
6
+ import { g as jt, b as tt, _ as It, d as oe, s as mt, e as Z, f as ot, h as $t, r as If, p as ge, P as A, i as Wt, j as it, u as Pr, a as Oi, c as _i, k as fa, m as de, l as $f } from "./index-CCJxyv13.js";
7
7
  import * as Oe from "react";
8
8
  import E, { useState as ke, useEffect as ze, isValidElement as ut, Children as ir, PureComponent as Rt, forwardRef as Wb, useRef as Ca, useImperativeHandle as ox, useCallback as ux, useMemo as Bt, cloneElement as Ae, createElement as Hb, useContext as Si, createContext as pr, Component as sx } from "react";
9
- import { S as cx } from "./index-wgpAJ4oi.js";
9
+ import { S as cx } from "./index-B8BzdUYX.js";
10
10
  import { useAccount as Cr } from "wagmi";
11
11
  import { useDynamicContext as Ai, useIsLoggedIn as Pi } from "@dynamic-labs/sdk-react-core";
12
12
  import { useQuery as Ti } from "@tanstack/react-query";
13
- import { D as zb, S as lx } from "./down-BWT0-5W2.js";
13
+ import { D as zb, S as lx } from "./down-C69EIwo1.js";
14
14
  import { useAccount as Rf } from "graz";
15
- import { B as Gb } from "./getChainIds-Dz6aap_K.js";
15
+ import { B as Gb } from "./getChainIds-CQg6djVc.js";
16
16
  import { t as fr } from "./truncate-D9t92mVX.js";
17
17
  import { S as Hd, a as zd } from "./sortDown-CjBaDQTU.js";
18
- import { O as Gd } from "./index-C8qMFb8J.js";
19
- import { u as fx } from "./Grow-CIKLOO0_.js";
20
- import { c as Nf } from "./index-DDX8hCfq.js";
18
+ import { O as Gd } from "./index-DTTNs7X2.js";
19
+ import { u as fx } from "./Grow-D4EVow-M.js";
20
+ import { c as Nf } from "./index-D7cNHH01.js";
21
21
  function dx(e) {
22
22
  return jt("PrivateSwitchBase", e);
23
23
  }
@@ -1386,55 +1386,27 @@ function hl() {
1386
1386
  TronLink: c
1387
1387
  };
1388
1388
  }
1389
- function dO({
1390
- walletDetails: e,
1391
- walletName: t,
1392
- i: r
1393
- }) {
1389
+ function dO({ walletDetails: e, walletName: t, i: r }) {
1394
1390
  var h;
1395
1391
  const [n, a] = ke(null), { address: i, chain: o, data: u, disconnect: s, ...c } = e, f = !!n, { connector: l } = Cr();
1396
- return /* @__PURE__ */ M(Ne, { children: /* @__PURE__ */ G(
1397
- "button",
1398
- {
1399
- "aria-controls": f ? "basic-menu" : void 0,
1400
- "aria-haspopup": "true",
1401
- "aria-expanded": f ? "true" : void 0,
1402
- onClick: (y) => {
1403
- a(y.currentTarget);
1404
- },
1405
- id: "basic-button",
1406
- style: { fontSize: "12px" },
1407
- className: `bw-bg-background-container ${r ? "bw-border-0 " : " bw-border-0 bw-border-b-[0.5px] bw-border-border-primary"} bw-flex bw-items-center bw-justify-between bw-py-2 bw-gap-x-1 bw-w-full `,
1408
- children: [
1409
- (h = hl()) != null && h[t] || l.icon ? /* @__PURE__ */ M(
1410
- "img",
1411
- {
1412
- src: hl()[t] || l.icon,
1413
- width: 26,
1414
- height: 26,
1415
- className: "bw-border bw-max-w-[26px] bw-max-h-[26px] bw-min-w-[26px] bw-min-h-[26px] bw-border-border-primary bw-rounded-[50%] bw-bg-background-coin"
1416
- }
1417
- ) : /* @__PURE__ */ M(Ne, {}),
1418
- /* @__PURE__ */ M("p", { className: "bw-text-text-primary bw-text-xs bw-font-normal", children: (i == null ? void 0 : i.substring(0, 4)) + "..." + (i == null ? void 0 : i.substring(i.length - 4, i.length)) }),
1419
- /* @__PURE__ */ M(
1420
- "div",
1421
- {
1422
- onClick: () => {
1423
- s();
1424
- },
1425
- children: /* @__PURE__ */ M(oO, { fill: "var(--tw-text-secondary)" })
1426
- }
1427
- )
1428
- ]
1429
- }
1430
- ) });
1392
+ return /* @__PURE__ */ M(Ne, { children: /* @__PURE__ */ G("button", { "aria-controls": f ? "basic-menu" : void 0, "aria-haspopup": "true", "aria-expanded": f ? "true" : void 0, onClick: (y) => {
1393
+ a(y.currentTarget);
1394
+ }, id: "basic-button", style: { fontSize: "12px" }, className: `bw-bg-background-container ${r ? "bw-border-0 " : " bw-border-0 bw-border-b-[0.5px] bw-border-border-primary"} bw-flex bw-items-center bw-justify-between bw-py-2 bw-gap-x-1 bw-w-full `, children: [
1395
+ (h = hl()) != null && h[t] || l.icon ? /* @__PURE__ */ M("img", { src: hl()[t] || l.icon, width: 26, height: 26, className: "bw-border bw-max-w-[26px] bw-max-h-[26px] bw-min-w-[26px] bw-min-h-[26px] bw-border-border-primary bw-rounded-[50%] bw-bg-background-secondary" }) : /* @__PURE__ */ M(Ne, {}),
1396
+ /* @__PURE__ */ M("p", { className: "bw-text-text-primary bw-text-xs bw-font-normal", children: (i == null ? void 0 : i.substring(0, 4)) + "..." + (i == null ? void 0 : i.substring(i.length - 4, i.length)) }),
1397
+ /* @__PURE__ */ M(
1398
+ "div",
1399
+ {
1400
+ onClick: () => {
1401
+ s();
1402
+ },
1403
+ children: /* @__PURE__ */ M(oO, { fill: "var(--tw-text-secondary)" })
1404
+ }
1405
+ )
1406
+ ] }) });
1431
1407
  }
1432
1408
  function pO() {
1433
- const [e, t] = E.useState(null), [r, n] = E.useState([]), a = !!e, { primaryWallet: i, handleLogOut: o } = Ai(), u = Pi(), { connector: s } = Cr(), {
1434
- address: c,
1435
- connected: f,
1436
- disconnect: l
1437
- } = Oi(), { isConnected: d } = Cr(), { isConnected: h } = Rf(), { getWallet: y } = Ub({}), v = (w) => {
1409
+ const [e, t] = E.useState(null), [r, n] = E.useState([]), a = !!e, { primaryWallet: i, handleLogOut: o } = Ai(), u = Pi(), { connector: s } = Cr(), { address: c, connected: f, disconnect: l } = Oi(), { isConnected: d } = Cr(), { isConnected: h } = Rf(), { getWallet: y } = Ub({}), v = (w) => {
1438
1410
  t(w.currentTarget);
1439
1411
  }, p = () => {
1440
1412
  t(null);
@@ -1458,42 +1430,19 @@ function pO() {
1458
1430
  const g = !d && !f && !u && !h;
1459
1431
  return /* @__PURE__ */ G(Ne, { children: [
1460
1432
  /* @__PURE__ */ G("div", { className: "bw-flex bw-items-center bw-gap-x-1 bw-justify-center bw-w-max ", children: [
1461
- /* @__PURE__ */ G(
1462
- "button",
1463
- {
1464
- id: "connect-wallet",
1465
- onClick: v,
1466
- className: " bw-flex bw-relative bw-items-center bw-justify-center bw-w-[135px] bw-h-[35px] bw-text-sm bw-font-medium bw-px-2 bw-rounded-2xl bw-border-[1.5px] bw-border-border-primary bw-bg-background-container bw-text-text-primary",
1467
- children: [
1468
- /* @__PURE__ */ G("div", { className: "bw-flex bw-items-center bw-justify-center", children: [
1469
- r.length === 0 ? /* @__PURE__ */ M("p", { className: "bw-w-full ", children: "Connect Wallets" }) : r.map((w) => {
1470
- var x;
1471
- return /* @__PURE__ */ M(
1472
- "img",
1473
- {
1474
- src: ((x = hl()) == null ? void 0 : x[w.name]) || (s == null ? void 0 : s.icon),
1475
- width: 26,
1476
- height: 26,
1477
- alt: "img",
1478
- className: "bw-border bw-max-w-[26px] bw-max-h-[26px] bw-min-w-[26px] bw-min-h-[26px] bw-ml-[-10px] bw-border-border-primary bw-rounded-[50%] bw-bg-background-coin"
1479
- }
1480
- );
1481
- }),
1482
- r.length > 3 ? /* @__PURE__ */ G("div", { className: "bw-w-[26px] bw-h-[26px] bw-border bw-border-border-primary bw-ml-[-10px] bw-text-sm bw-font-medium bw-flex bw-items-center bw-justify-center bw-rounded-[50%] bw-bg-background-coin", children: [
1483
- "+",
1484
- r.length - 3
1485
- ] }) : /* @__PURE__ */ M(Ne, {})
1486
- ] }),
1487
- g ? /* @__PURE__ */ M(Ne, {}) : /* @__PURE__ */ M(
1488
- "div",
1489
- {
1490
- className: `${a ? "bw-rotate-180" : ""} bw-absolute bw-right-2 bw-ml-auto`,
1491
- children: /* @__PURE__ */ M(zb, { fill: "var(--tw-text-primary)" })
1492
- }
1493
- )
1494
- ]
1495
- }
1496
- ),
1433
+ /* @__PURE__ */ G("button", { id: "connect-wallet", onClick: v, className: " bw-flex bw-relative bw-items-center bw-justify-center bw-w-[135px] bw-h-[35px] bw-text-sm bw-font-medium bw-px-2 bw-rounded-2xl bw-border-[1.5px] bw-border-border-primary bw-bg-background-container bw-text-text-primary", children: [
1434
+ /* @__PURE__ */ G("div", { className: "bw-flex bw-items-center bw-justify-center", children: [
1435
+ r.length === 0 ? /* @__PURE__ */ M("p", { className: "bw-w-full ", children: "Connect Wallets" }) : r.map((w) => {
1436
+ var x;
1437
+ return /* @__PURE__ */ M("img", { src: ((x = hl()) == null ? void 0 : x[w.name]) || (s == null ? void 0 : s.icon), width: 26, height: 26, alt: "img", className: "bw-border bw-max-w-[26px] bw-max-h-[26px] bw-min-w-[26px] bw-min-h-[26px] bw-ml-[-10px] bw-border-border-primary bw-rounded-[50%] bw-bg-background-secondary" });
1438
+ }),
1439
+ r.length > 3 ? /* @__PURE__ */ G("div", { className: "bw-w-[26px] bw-h-[26px] bw-border bw-border-border-primary bw-ml-[-10px] bw-text-sm bw-font-medium bw-flex bw-items-center bw-justify-center bw-rounded-[50%] bw-bg-background-secondary", children: [
1440
+ "+",
1441
+ r.length - 3
1442
+ ] }) : /* @__PURE__ */ M(Ne, {})
1443
+ ] }),
1444
+ g ? /* @__PURE__ */ M(Ne, {}) : /* @__PURE__ */ M("div", { className: `${a ? "bw-rotate-180" : ""} bw-absolute bw-right-2 bw-ml-auto`, children: /* @__PURE__ */ M(zb, { fill: "var(--tw-text-primary)" }) })
1445
+ ] }),
1497
1446
  /* @__PURE__ */ M(Qb, { wallet: "connected", isNoWallet: g })
1498
1447
  ] }),
1499
1448
  /* @__PURE__ */ M(
@@ -1513,22 +1462,7 @@ function pO() {
1513
1462
  }
1514
1463
  },
1515
1464
  elevation: 0,
1516
- children: /* @__PURE__ */ M(Z1, { className: "bw-bg-background-container bw-py-0 bw-border bw-w-[135px] bw-rounded-md bw-border-border-primary ", children: r.map((w, x, _) => /* @__PURE__ */ M(
1517
- kf,
1518
- {
1519
- className: "bw-py-0 bw-px-1 bw-justify-center hover:bw-bg-transparent ",
1520
- onClick: p,
1521
- children: /* @__PURE__ */ M(
1522
- dO,
1523
- {
1524
- walletName: w.name,
1525
- walletDetails: y(w),
1526
- i: x == _.length - 1
1527
- }
1528
- )
1529
- },
1530
- x
1531
- )) })
1465
+ children: /* @__PURE__ */ M(Z1, { className: "bw-bg-background-container bw-py-0 bw-border bw-w-[135px] bw-rounded-md bw-border-border-primary ", children: r.map((w, x, _) => /* @__PURE__ */ M(kf, { className: "bw-py-0 bw-px-1 bw-justify-center hover:bw-bg-transparent ", onClick: p, children: /* @__PURE__ */ M(dO, { walletName: w.name, walletDetails: y(w), i: x == _.length - 1 }) }, x)) })
1532
1466
  }
1533
1467
  )
1534
1468
  ] });
@@ -18288,9 +18222,9 @@ function SD({ row: e, chainData: t }) {
18288
18222
  },
18289
18223
  children: [
18290
18224
  /* @__PURE__ */ M(or, { className: "bw-border-b bw-pl-1 bw-bg-background-container bw-border-border-primary bw-text-xs bw-font-bold bw-text-text-primary", component: "th", scope: "row", children: /* @__PURE__ */ G("div", { className: "bw-flex bw-items-center bw-gap-x-2", children: [
18291
- /* @__PURE__ */ G("div", { className: `bw-rounded-[50%] bw-relative bw-border bw-border-border-primary bw-w-max bw-h-max ${(o = e == null ? void 0 : e.asset) != null && o.image ? "bw-bg-background-coin" : ""}`, children: [
18225
+ /* @__PURE__ */ G("div", { className: `bw-rounded-[50%] bw-relative bw-border bw-border-border-primary bw-w-max bw-h-max ${(o = e == null ? void 0 : e.asset) != null && o.image ? "bw-bg-background-secondary" : ""}`, children: [
18292
18226
  (u = e == null ? void 0 : e.asset) != null && u.image ? /* @__PURE__ */ M("img", { src: e.asset.image, className: "bw-rounded-[50%] bw-max-w-[25px] bw-object-contain bw-min-w-[25px] bw-max-h-[25px] bw-min-h-[25px]", width: 25, height: 25 }) : /* @__PURE__ */ M("img", { src: r, className: "bw-rounded-[50%] bw-min-w-[25px] bw-max-h-[25px] bw-min-h-[25px]", width: 25, height: 25 }),
18293
- /* @__PURE__ */ M("div", { className: `bw-absolute bw-border bw-border-border-primary bw-rounded-[50%] bw-right-[-5px] bw-bg-background-coin bw-top-[60%] ${(c = t[(s = e == null ? void 0 : e.asset) == null ? void 0 : s.chainId]) != null && c.image ? "bw-bg-background-coin" : ""}`, children: (l = t[(f = e == null ? void 0 : e.asset) == null ? void 0 : f.chainId]) != null && l.image ? /* @__PURE__ */ M("img", { src: t[e.asset.chainId].image, className: "bw-rounded-[50%] bw-min-w-[16px] bw-max-h-[16px] bw-min-h-[12px]", width: 16, height: 16 }) : /* @__PURE__ */ M("img", { src: r, className: "bw-rounded-[50%] bw-min-w-[12px] bw-max-h-[12px] bw-min-h-[12px]", width: 16, height: 16 }) })
18227
+ /* @__PURE__ */ M("div", { className: `bw-absolute bw-border bw-border-border-primary bw-rounded-[50%] bw-right-[-5px] bw-bg-background-secondary bw-top-[60%] ${(c = t[(s = e == null ? void 0 : e.asset) == null ? void 0 : s.chainId]) != null && c.image ? "bw-bg-background-secondary" : ""}`, children: (l = t[(f = e == null ? void 0 : e.asset) == null ? void 0 : f.chainId]) != null && l.image ? /* @__PURE__ */ M("img", { src: t[e.asset.chainId].image, className: "bw-rounded-[50%] bw-min-w-[16px] bw-max-h-[16px] bw-min-h-[12px]", width: 16, height: 16 }) : /* @__PURE__ */ M("img", { src: r, className: "bw-rounded-[50%] bw-min-w-[12px] bw-max-h-[12px] bw-min-h-[12px]", width: 16, height: 16 }) })
18294
18228
  ] }),
18295
18229
  /* @__PURE__ */ G("div", { children: [
18296
18230
  /* @__PURE__ */ M("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: ((h = (d = e == null ? void 0 : e.asset) == null ? void 0 : d.name) == null ? void 0 : h.length) > 15 ? /* @__PURE__ */ M(_D, { name: (y = e == null ? void 0 : e.asset) == null ? void 0 : y.name, children: /* @__PURE__ */ M("p", { className: "bw-text-text-primary bw-text-xs bw-font-bold", children: ((v = e == null ? void 0 : e.asset) == null ? void 0 : v.name.substring(0, 15)) + "..." }) }) : /* @__PURE__ */ M("p", { className: "bw-text-text-primary bw-text-xs bw-font-bold", children: (p = e == null ? void 0 : e.asset) == null ? void 0 : p.name }) }),