@blockend/widget 1.0.33 → 1.0.34

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 (112) hide show
  1. package/dist/{AllRoutes-B04uZfaa.js → AllRoutes-DW-2t6-d.js} +25 -25
  2. package/dist/{Box-BWDJCGbI.js → Box-C4X6PUtu.js} +22 -23
  3. package/dist/{EstGas-QSPrdq3Y.js → EstGas-Lj2vKAmO.js} +8 -8
  4. package/dist/{Grow-37t11tle.js → Grow-CCS_DglL.js} +78 -78
  5. package/dist/{InputComp-bKVjlcbT.js → InputComp-FIX0Q9qG.js} +13 -14
  6. package/dist/{LoadRoute-C3vokLk0.js → LoadRoute-Di4rBHfs.js} +6 -7
  7. package/dist/{QuotesProgress-DlgLQ2zo.js → QuotesProgress-CDe2mdH1.js} +1 -1
  8. package/dist/{SwapAsset-tD6wSJDD.js → SwapAsset-B0GIHqge.js} +1 -1
  9. package/dist/{Tooltip-BqYgFn1F.js → Tooltip-CsLgOKrX.js} +62 -62
  10. package/dist/{TxnButton-DefErcCE.js → TxnButton-CFquc6ws.js} +17 -17
  11. package/dist/{add-D32G_xKI.js → add-Cb5Hpxtd.js} +1 -1
  12. package/dist/{all-wallets-LjjqiTnJ.js → all-wallets-IvJFyonp.js} +1 -1
  13. package/dist/{app-store-S7C23kTz.js → app-store-DGHaTAGg.js} +1 -1
  14. package/dist/{apple-DMd4RArz.js → apple-BzfrhDcG.js} +1 -1
  15. package/dist/{arrow-bottom-C0cVMl2n.js → arrow-bottom-BTM5yMbs.js} +1 -1
  16. package/dist/{arrow-bottom-circle-veMvHYVR.js → arrow-bottom-circle-wJZrQ1UB.js} +1 -1
  17. package/dist/{arrow-left-B6VdOxSY.js → arrow-left-yb9jvZLF.js} +1 -1
  18. package/dist/{arrow-right-CyrokJyU.js → arrow-right-CNq-seAV.js} +1 -1
  19. package/dist/{arrow-top-S8qh5z92.js → arrow-top-viS3mMCD.js} +1 -1
  20. package/dist/{bank-B9ySjxm-.js → bank-BCcggibH.js} +1 -1
  21. package/dist/{basic-BXha5sM_.js → basic-DaTq2wkc.js} +3 -3
  22. package/dist/{browser-CWmyZDF1.js → browser-CmA0GPLB.js} +1 -1
  23. package/dist/{card-TzoSVbiE.js → card-BO4I6Psi.js} +1 -1
  24. package/dist/{ccip-B97isPV8.js → ccip-CkXLKCYn.js} +20 -20
  25. package/dist/{checkmark-Be4tNZY8.js → checkmark-DF8VoFaX.js} +1 -1
  26. package/dist/{checkmark-bold-sAoooMoy.js → checkmark-bold-C6OPR-mV.js} +1 -1
  27. package/dist/{chevron-bottom-Cdd52Yir.js → chevron-bottom-BTjaTIFm.js} +1 -1
  28. package/dist/{chevron-left-Dp8rM2qD.js → chevron-left-D6wphcsV.js} +1 -1
  29. package/dist/{chevron-right-kH3Pgt8h.js → chevron-right-Ba05aF4G.js} +1 -1
  30. package/dist/{chevron-top-lx-9iWm1.js → chevron-top-I_q0NhsC.js} +1 -1
  31. package/dist/{chrome-store-BGxPgdkC.js → chrome-store-DvzERGX1.js} +1 -1
  32. package/dist/{clock-B3r9UiFY.js → clock-GIv_XdGS.js} +1 -1
  33. package/dist/{close-Cc6SJ0A9.js → close-ChDp2HIX.js} +1 -1
  34. package/dist/{coinPlaceholder-DqH2n2v1.js → coinPlaceholder-D6rBGR5B.js} +1 -1
  35. package/dist/{compass-CiKYczAi.js → compass-DFCkTDdC.js} +1 -1
  36. package/dist/{copy-DR0dlbF5.js → copy-DyQCksHx.js} +1 -1
  37. package/dist/{core-D9oRINim.js → core-BnRPnZUj.js} +3 -3
  38. package/dist/{cursor-vv-pXAzC.js → cursor-BhR8wfWc.js} +1 -1
  39. package/dist/{cursor-transparent-BABlb938.js → cursor-transparent-CYfTh9TG.js} +1 -1
  40. package/dist/{desktop-aFWdAU4O.js → desktop-CdNR2WGz.js} +1 -1
  41. package/dist/{disconnect-Cz0MwjuJ.js → disconnect-Bbfhuf4x.js} +1 -1
  42. package/dist/{discord-BkNiORDh.js → discord-04uw628s.js} +1 -1
  43. package/dist/{down-BAe_uoMx.js → down-DmSxEW66.js} +2 -2
  44. package/dist/{etherscan-4wT3rhj5.js → etherscan-D7Ga60vG.js} +1 -1
  45. package/dist/{exclamation-triangle-CSv7sjYs.js → exclamation-triangle-CMEJoc37.js} +1 -1
  46. package/dist/{extension-B4acJb16.js → extension-C0IOh4C8.js} +1 -1
  47. package/dist/{external-link-zFdRyGh8.js → external-link-CEy2KY-H.js} +1 -1
  48. package/dist/{facebook-D2h4REjy.js → facebook-XHE6-OiD.js} +1 -1
  49. package/dist/{farcaster-acRwWMSn.js → farcaster-BVsAZpup.js} +1 -1
  50. package/dist/{filters-DE1yHCJy.js → filters-BjuqhDXY.js} +1 -1
  51. package/dist/{getChainIds-B4BLdhKd.js → getChainIds-cRV7v4Vu.js} +75 -75
  52. package/dist/{getCosmosAddress-BfMdDDaH.js → getCosmosAddress-Cm0YEa9v.js} +2 -2
  53. package/dist/{github-BrCBPjDS.js → github-C5YGtlqc.js} +1 -1
  54. package/dist/{google-DYC6Um96.js → google-DFDexaN0.js} +1 -1
  55. package/dist/{hamburger-sg42nvNd.js → hamburger-CZPNB-Jp.js} +20 -20
  56. package/dist/{help-circle-CKvIeM4J.js → help-circle-C2OFxIs0.js} +1 -1
  57. package/dist/{id-FXzF1V3L.js → id-CforGy9u.js} +1 -1
  58. package/dist/{image-rOZMtN9o.js → image-BLq9nQ13.js} +1 -1
  59. package/dist/{index-CIjTGwYH.js → index-BRrWKwgI.js} +1 -1
  60. package/dist/{index-B0E-rGOh.js → index-Bw4t164c.js} +45 -45
  61. package/dist/{index-PIAjHNgG.js → index-ByWf22Y4.js} +43 -43
  62. package/dist/{index-DSlXIHtr.js → index-C6pDnqRd.js} +11887 -10132
  63. package/dist/{index-Y94UWILI.js → index-Cx-XaRo6.js} +123 -123
  64. package/dist/{index-SiMIoFT9.js → index-D7-VO30b.js} +22 -23
  65. package/dist/{index-B5gV3APh.js → index-DKPTk58K.js} +78 -78
  66. package/dist/{index-baetUfmH.js → index-DrWi5MDR.js} +4 -4
  67. package/dist/{index-Cmj3dp3U.js → index-EuXqE26M.js} +53 -54
  68. package/dist/{index-DEovHqJS.js → index-HOk_h4cO.js} +14 -14
  69. package/dist/{index-DOcwHfd3.js → index-sSdagBAC.js} +93 -93
  70. package/dist/{index.es-TLoHC_Sf.js → index.es-B1r2oZcy.js} +2 -2
  71. package/dist/{index.es-D6RvS0tB.js → index.es-DP4lrxUS.js} +5 -5
  72. package/dist/index.es.js +1 -1
  73. package/dist/{info-dh7qmm_R.js → info-CJ1NTOxH.js} +1 -1
  74. package/dist/{info-circle-BYfEprqC.js → info-circle-Daj7vZoR.js} +1 -1
  75. package/dist/{lightbulb-3S8w5B31.js → lightbulb-BLkY2HTh.js} +1 -1
  76. package/dist/{mail-DgcPoOPs.js → mail-CAKz4cbl.js} +1 -1
  77. package/dist/{mobile-C8egRR0V.js → mobile-BopKRCBe.js} +1 -1
  78. package/dist/{more-CU_oPwwY.js → more-X_2v_wZ3.js} +1 -1
  79. package/dist/{network-placeholder-CqjaxlS7.js → network-placeholder-C1OcyWkc.js} +1 -1
  80. package/dist/{nftPlaceholder-D6mZlZmz.js → nftPlaceholder-B3ZKQ1U2.js} +1 -1
  81. package/dist/{off-DHeUICx6.js → off-OZ4tqosO.js} +1 -1
  82. package/dist/{play-store-DyGxjYv5.js → play-store-HsWGEr_g.js} +1 -1
  83. package/dist/{plus-k4hEdLAH.js → plus-C7yRM6wl.js} +1 -1
  84. package/dist/{qr-code-CkavLc0Z.js → qr-code-DfWVQYKi.js} +1 -1
  85. package/dist/{recycle-horizontal-YzkyX2fY.js → recycle-horizontal-C5u6LBUM.js} +1 -1
  86. package/dist/{refresh-E1vpdqCO.js → refresh-BYw1HzOO.js} +1 -1
  87. package/dist/{reown-logo-BZbc_-R6.js → reown-logo-CXMihtcp.js} +1 -1
  88. package/dist/{search-B9vQkIsQ.js → search-ByiAQZVh.js} +1 -1
  89. package/dist/{send-C9ROxhya.js → send-Bs5FwLBZ.js} +1 -1
  90. package/dist/shareicon-CG3v7iKI.js +10 -0
  91. package/dist/{swapHorizontal-BhLDDuiL.js → swapHorizontal-B7d_h2Se.js} +1 -1
  92. package/dist/{swapHorizontalBold-B1IxJLem.js → swapHorizontalBold-xBnEd6a1.js} +1 -1
  93. package/dist/{swapHorizontalMedium--fvn_6KH.js → swapHorizontalMedium-aLC75TbM.js} +1 -1
  94. package/dist/{swapHorizontalRoundedBold-fZowAp5m.js → swapHorizontalRoundedBold-D1ph5kGS.js} +1 -1
  95. package/dist/{swapVertical-CDwndQ4s.js → swapVertical-DtfbArUn.js} +1 -1
  96. package/dist/{telegram-BLbguJ3E.js → telegram-0Il36fMk.js} +1 -1
  97. package/dist/{three-dots-DyIG0Aiq.js → three-dots-wNW622nV.js} +1 -1
  98. package/dist/{twitch-054mPrps.js → twitch-Dt1-Wtif.js} +1 -1
  99. package/dist/{twitterIcon-DrlgKmas.js → twitterIcon-CpSpHPYu.js} +1 -1
  100. package/dist/{unsupportedProp-Dr6Tadlk.js → unsupportedProp-DBVCAgxp.js} +1 -1
  101. package/dist/{useRegisterError-C52MuupC.js → useRegisterError-Cs0PKbRQ.js} +3257 -4302
  102. package/dist/{verify-uz7q7EMX.js → verify-BFIm6NMn.js} +1 -1
  103. package/dist/{verify-filled-Dw1_4VEj.js → verify-filled-bGZT7egL.js} +1 -1
  104. package/dist/{w3m-modal-CJM8um8G.js → w3m-modal-C6VaThR4.js} +2 -2
  105. package/dist/{wallet-a9cCMI05.js → wallet-BeQcPBdd.js} +1 -1
  106. package/dist/{wallet-placeholder-Cqiz2_rA.js → wallet-placeholder-CCGVvv4Q.js} +1 -1
  107. package/dist/{walletconnect-96twp7MP.js → walletconnect-BnSO61ut.js} +1 -1
  108. package/dist/{warning-circle-C4mV6fIZ.js → warning-circle-D80fIuKG.js} +1 -1
  109. package/dist/widget.css +1 -1
  110. package/dist/{x-vRe7FHUS.js → x-4jy71myv.js} +1 -1
  111. package/package.json +1 -1
  112. package/dist/shareicon-CLveBf8l.js +0 -262
@@ -1,16 +1,16 @@
1
- import { g as go, _ as To, p as U, b as n, d as We, e as ze, P as e } from "./index-DSlXIHtr.js";
1
+ import { b as go, g as To, i as yo, _ as vo, p as B, d as n, e as D, s as Q, f as Ve, h as Po, j as ze, P as e } from "./index-C6pDnqRd.js";
2
2
  import * as p from "react";
3
- import { g as yo, d as vo, o as Po, z as D, q as Ue, D as wo, h as Ro, x as Co, c as I, U as j, s as Q, V as xo, a as Oo, J as Mo } from "./useRegisterError-C52MuupC.js";
4
- import { G as Be, b as Eo, u as _o, a as No, P as He } from "./Grow-37t11tle.js";
5
- import { jsx as A, jsxs as Se } from "react/jsx-runtime";
3
+ import { G as Be, b as wo, u as Ro, a as Co, P as He } from "./Grow-CCS_DglL.js";
4
+ import { jsx as j, jsxs as Se } from "react/jsx-runtime";
5
+ import { j as xo, q as I, l as Ue, s as Oo, b as Eo, n as Mo, D as A, E as _o, w as No } from "./useRegisterError-Cs0PKbRQ.js";
6
6
  function Lo(r) {
7
- return go("MuiTooltip", r);
7
+ return To("MuiTooltip", r);
8
8
  }
9
- const f = yo("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]), $o = ["arrow", "children", "classes", "components", "componentsProps", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "placement", "PopperComponent", "PopperProps", "slotProps", "slots", "title", "TransitionComponent", "TransitionProps"];
9
+ const f = go("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]), $o = ["arrow", "children", "classes", "components", "componentsProps", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "placement", "PopperComponent", "PopperProps", "slotProps", "slots", "title", "TransitionComponent", "TransitionProps"];
10
10
  function Do(r) {
11
11
  return Math.round(r * 1e5) / 1e5;
12
12
  }
13
- const Io = (r) => {
13
+ const jo = (r) => {
14
14
  const {
15
15
  classes: t,
16
16
  disableInteractive: s,
@@ -19,11 +19,11 @@ const Io = (r) => {
19
19
  placement: C
20
20
  } = r, x = {
21
21
  popper: ["popper", !s && "popperInteractive", d && "popperArrow"],
22
- tooltip: ["tooltip", d && "tooltipArrow", R && "touch", `tooltipPlacement${We(C.split("-")[0])}`],
22
+ tooltip: ["tooltip", d && "tooltipArrow", R && "touch", `tooltipPlacement${Ve(C.split("-")[0])}`],
23
23
  arrow: ["arrow"]
24
24
  };
25
- return Oo(x, Lo, t);
26
- }, jo = Q(He, {
25
+ return Po(x, Lo, t);
26
+ }, Io = Q(He, {
27
27
  name: "MuiTooltip",
28
28
  slot: "Popper",
29
29
  overridesResolver: (r, t) => {
@@ -91,7 +91,7 @@ const Io = (r) => {
91
91
  const {
92
92
  ownerState: s
93
93
  } = r;
94
- return [t.tooltip, s.touch && t.touch, s.arrow && t.tooltipArrow, t[`tooltipPlacement${We(s.placement.split("-")[0])}`]];
94
+ return [t.tooltip, s.touch && t.touch, s.arrow && t.tooltipArrow, t[`tooltipPlacement${Ve(s.placement.split("-")[0])}`]];
95
95
  }
96
96
  })(({
97
97
  theme: r,
@@ -174,7 +174,7 @@ const Io = (r) => {
174
174
  }
175
175
  }));
176
176
  let F = !1;
177
- const Ve = new xo();
177
+ const We = new _o();
178
178
  let w = {
179
179
  x: 0,
180
180
  y: 0
@@ -186,47 +186,47 @@ function k(r, t) {
186
186
  }
187
187
  const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
188
188
  var d, R, C, x, Z, ee, oe, te, re, ne, se, pe, ie, le, ae, ce, ue, de, me;
189
- const B = vo({
189
+ const S = yo({
190
190
  props: t,
191
191
  name: "MuiTooltip"
192
192
  }), {
193
193
  arrow: fe = !1,
194
- children: S,
194
+ children: U,
195
195
  components: O = {},
196
196
  componentsProps: h = {},
197
197
  describeChild: Ye = !1,
198
198
  disableFocusListener: qe = !1,
199
199
  disableHoverListener: he = !1,
200
200
  disableInteractive: Ge = !1,
201
- disableTouchListener: Je = !1,
201
+ disableTouchListener: Ke = !1,
202
202
  enterDelay: be = 100,
203
203
  enterNextDelay: ge = 0,
204
- enterTouchDelay: Ke = 700,
205
- followCursor: V = !1,
206
- id: Xe,
204
+ enterTouchDelay: Xe = 700,
205
+ followCursor: W = !1,
206
+ id: Je,
207
207
  leaveDelay: Te = 0,
208
208
  leaveTouchDelay: Qe = 1500,
209
209
  onClose: ye,
210
210
  onOpen: ve,
211
211
  open: Pe,
212
212
  placement: we = "bottom",
213
- PopperComponent: W,
213
+ PopperComponent: V,
214
214
  PopperProps: b = {},
215
215
  slotProps: g = {},
216
- slots: M = {},
216
+ slots: E = {},
217
217
  title: m,
218
218
  TransitionComponent: Ze = Be,
219
219
  TransitionProps: eo
220
- } = B, Re = To(B, $o), c = /* @__PURE__ */ p.isValidElement(S) ? S : /* @__PURE__ */ A("span", {
221
- children: S
222
- }), Ce = Po(), oo = Eo(), [l, xe] = p.useState(), [z, to] = p.useState(null), E = p.useRef(!1), H = Ge || V, Oe = D(), Y = D(), _ = D(), Me = D(), [ro, Ee] = _o({
220
+ } = S, Re = vo(S, $o), c = /* @__PURE__ */ p.isValidElement(U) ? U : /* @__PURE__ */ j("span", {
221
+ children: U
222
+ }), Ce = xo(), oo = wo(), [l, xe] = p.useState(), [z, to] = p.useState(null), M = p.useRef(!1), H = Ge || W, Oe = I(), Y = I(), _ = I(), Ee = I(), [ro, Me] = Ro({
223
223
  controlled: Pe,
224
224
  default: !1,
225
225
  name: "Tooltip",
226
226
  state: "open"
227
227
  });
228
228
  let u = ro;
229
- if (U.env.NODE_ENV !== "production") {
229
+ if (B.env.NODE_ENV !== "production") {
230
230
  const {
231
231
  current: o
232
232
  } = p.useRef(Pe !== void 0);
@@ -234,25 +234,25 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
234
234
  l && l.disabled && !o && m !== "" && l.tagName.toLowerCase();
235
235
  }, [m, l, o]);
236
236
  }
237
- const q = No(Xe), T = p.useRef(), N = Ue(() => {
238
- T.current !== void 0 && (document.body.style.WebkitUserSelect = T.current, T.current = void 0), Me.clear();
237
+ const q = Co(Je), T = p.useRef(), N = Ue(() => {
238
+ T.current !== void 0 && (document.body.style.WebkitUserSelect = T.current, T.current = void 0), Ee.clear();
239
239
  });
240
240
  p.useEffect(() => N, [N]);
241
241
  const _e = (o) => {
242
- Ve.clear(), F = !0, Ee(!0), ve && !u && ve(o);
242
+ We.clear(), F = !0, Me(!0), ve && !u && ve(o);
243
243
  }, L = Ue(
244
244
  /**
245
245
  * @param {React.SyntheticEvent | Event} event
246
246
  */
247
247
  (o) => {
248
- Ve.start(800 + Te, () => {
248
+ We.start(800 + Te, () => {
249
249
  F = !1;
250
- }), Ee(!1), ye && u && ye(o), Oe.start(Ce.transitions.duration.shortest, () => {
251
- E.current = !1;
250
+ }), Me(!1), ye && u && ye(o), Oe.start(Ce.transitions.duration.shortest, () => {
251
+ M.current = !1;
252
252
  });
253
253
  }
254
254
  ), $ = (o) => {
255
- E.current && o.type !== "touchstart" || (l && l.removeAttribute("title"), Y.clear(), _.clear(), be || F && ge ? Y.start(F ? ge : be, () => {
255
+ M.current && o.type !== "touchstart" || (l && l.removeAttribute("title"), Y.clear(), _.clear(), be || F && ge ? Y.start(F ? ge : be, () => {
256
256
  _e(o);
257
257
  }) : _e(o));
258
258
  }, G = (o) => {
@@ -264,16 +264,16 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
264
264
  onBlur: no,
265
265
  onFocus: so,
266
266
  ref: po
267
- } = wo(), [, Le] = p.useState(!1), $e = (o) => {
267
+ } = Oo(), [, Le] = p.useState(!1), $e = (o) => {
268
268
  no(o), Ne.current === !1 && (Le(!1), G(o));
269
269
  }, De = (o) => {
270
270
  l || xe(o.currentTarget), so(o), Ne.current === !0 && (Le(!0), $(o));
271
- }, Ie = (o) => {
272
- E.current = !0;
271
+ }, je = (o) => {
272
+ M.current = !0;
273
273
  const i = c.props;
274
274
  i.onTouchStart && i.onTouchStart(o);
275
275
  }, io = (o) => {
276
- Ie(o), _.clear(), Oe.clear(), N(), T.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Me.start(Ke, () => {
276
+ je(o), _.clear(), Oe.clear(), N(), T.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Ee.start(Xe, () => {
277
277
  document.body.style.WebkitUserSelect = T.current, $(o);
278
278
  });
279
279
  }, lo = (o) => {
@@ -291,28 +291,28 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
291
291
  document.removeEventListener("keydown", o);
292
292
  };
293
293
  }, [L, u]);
294
- const ao = Ro(Co(c), po, xe, s);
294
+ const ao = Eo(Mo(c), po, xe, s);
295
295
  !m && m !== 0 && (u = !1);
296
- const J = p.useRef(), co = (o) => {
296
+ const K = p.useRef(), co = (o) => {
297
297
  const i = c.props;
298
298
  i.onMouseMove && i.onMouseMove(o), w = {
299
299
  x: o.clientX,
300
300
  y: o.clientY
301
- }, J.current && J.current.update();
302
- }, y = {}, K = typeof m == "string";
303
- Ye ? (y.title = !u && K && !he ? m : null, y["aria-describedby"] = u ? q : null) : (y["aria-label"] = K ? m : null, y["aria-labelledby"] = u && !K ? q : null);
301
+ }, K.current && K.current.update();
302
+ }, y = {}, X = typeof m == "string";
303
+ Ye ? (y.title = !u && X && !he ? m : null, y["aria-describedby"] = u ? q : null) : (y["aria-label"] = X ? m : null, y["aria-labelledby"] = u && !X ? q : null);
304
304
  const a = n({}, y, Re, c.props, {
305
- className: I(Re.className, c.props.className),
306
- onTouchStart: Ie,
305
+ className: D(Re.className, c.props.className),
306
+ onTouchStart: je,
307
307
  ref: ao
308
- }, V ? {
308
+ }, W ? {
309
309
  onMouseMove: co
310
310
  } : {});
311
- U.env.NODE_ENV !== "production" && (a["data-mui-internal-clone-element"] = !0, p.useEffect(() => {
311
+ B.env.NODE_ENV !== "production" && (a["data-mui-internal-clone-element"] = !0, p.useEffect(() => {
312
312
  l && l.getAttribute("data-mui-internal-clone-element");
313
313
  }, [l]));
314
314
  const v = {};
315
- Je || (a.onTouchStart = io, a.onTouchEnd = lo), he || (a.onMouseOver = k($, a.onMouseOver), a.onMouseLeave = k(G, a.onMouseLeave), H || (v.onMouseOver = $, v.onMouseLeave = G)), qe || (a.onFocus = k(De, a.onFocus), a.onBlur = k($e, a.onBlur), H || (v.onFocus = De, v.onBlur = $e)), U.env.NODE_ENV !== "production" && c.props.title;
315
+ Ke || (a.onTouchStart = io, a.onTouchEnd = lo), he || (a.onMouseOver = k($, a.onMouseOver), a.onMouseLeave = k(G, a.onMouseLeave), H || (v.onMouseOver = $, v.onMouseLeave = G)), qe || (a.onFocus = k(De, a.onFocus), a.onBlur = k($e, a.onBlur), H || (v.onFocus = De, v.onBlur = $e)), B.env.NODE_ENV !== "production" && c.props.title;
316
316
  const uo = p.useMemo(() => {
317
317
  var o;
318
318
  let i = [{
@@ -326,25 +326,25 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
326
326
  return (o = b.popperOptions) != null && o.modifiers && (i = i.concat(b.popperOptions.modifiers)), n({}, b.popperOptions, {
327
327
  modifiers: i
328
328
  });
329
- }, [z, b]), P = n({}, B, {
329
+ }, [z, b]), P = n({}, S, {
330
330
  isRtl: oo,
331
331
  arrow: fe,
332
332
  disableInteractive: H,
333
333
  placement: we,
334
- PopperComponentProp: W,
335
- touch: E.current
336
- }), X = Io(P), je = (d = (R = M.popper) != null ? R : O.Popper) != null ? d : jo, Ae = (C = (x = (Z = M.transition) != null ? Z : O.Transition) != null ? x : Ze) != null ? C : Be, Fe = (ee = (oe = M.tooltip) != null ? oe : O.Tooltip) != null ? ee : Ao, ke = (te = (re = M.arrow) != null ? re : O.Arrow) != null ? te : Fo, mo = j(je, n({}, b, (ne = g.popper) != null ? ne : h.popper, {
337
- className: I(X.popper, b == null ? void 0 : b.className, (se = (pe = g.popper) != null ? pe : h.popper) == null ? void 0 : se.className)
338
- }), P), fo = j(Ae, n({}, eo, (ie = g.transition) != null ? ie : h.transition), P), ho = j(Fe, n({}, (le = g.tooltip) != null ? le : h.tooltip, {
339
- className: I(X.tooltip, (ae = (ce = g.tooltip) != null ? ce : h.tooltip) == null ? void 0 : ae.className)
340
- }), P), bo = j(ke, n({}, (ue = g.arrow) != null ? ue : h.arrow, {
341
- className: I(X.arrow, (de = (me = g.arrow) != null ? me : h.arrow) == null ? void 0 : de.className)
334
+ PopperComponentProp: V,
335
+ touch: M.current
336
+ }), J = jo(P), Ie = (d = (R = E.popper) != null ? R : O.Popper) != null ? d : Io, Ae = (C = (x = (Z = E.transition) != null ? Z : O.Transition) != null ? x : Ze) != null ? C : Be, Fe = (ee = (oe = E.tooltip) != null ? oe : O.Tooltip) != null ? ee : Ao, ke = (te = (re = E.arrow) != null ? re : O.Arrow) != null ? te : Fo, mo = A(Ie, n({}, b, (ne = g.popper) != null ? ne : h.popper, {
337
+ className: D(J.popper, b == null ? void 0 : b.className, (se = (pe = g.popper) != null ? pe : h.popper) == null ? void 0 : se.className)
338
+ }), P), fo = A(Ae, n({}, eo, (ie = g.transition) != null ? ie : h.transition), P), ho = A(Fe, n({}, (le = g.tooltip) != null ? le : h.tooltip, {
339
+ className: D(J.tooltip, (ae = (ce = g.tooltip) != null ? ce : h.tooltip) == null ? void 0 : ae.className)
340
+ }), P), bo = A(ke, n({}, (ue = g.arrow) != null ? ue : h.arrow, {
341
+ className: D(J.arrow, (de = (me = g.arrow) != null ? me : h.arrow) == null ? void 0 : de.className)
342
342
  }), P);
343
343
  return /* @__PURE__ */ Se(p.Fragment, {
344
- children: [/* @__PURE__ */ p.cloneElement(c, a), /* @__PURE__ */ A(je, n({
345
- as: W ?? He,
344
+ children: [/* @__PURE__ */ p.cloneElement(c, a), /* @__PURE__ */ j(Ie, n({
345
+ as: V ?? He,
346
346
  placement: we,
347
- anchorEl: V ? {
347
+ anchorEl: W ? {
348
348
  getBoundingClientRect: () => ({
349
349
  top: w.y,
350
350
  left: w.x,
@@ -354,7 +354,7 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
354
354
  height: 0
355
355
  })
356
356
  } : l,
357
- popperRef: J,
357
+ popperRef: K,
358
358
  open: l ? u : !1,
359
359
  id: q,
360
360
  transition: !0
@@ -362,11 +362,11 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
362
362
  popperOptions: uo,
363
363
  children: ({
364
364
  TransitionProps: o
365
- }) => /* @__PURE__ */ A(Ae, n({
365
+ }) => /* @__PURE__ */ j(Ae, n({
366
366
  timeout: Ce.transitions.duration.shorter
367
367
  }, o, fo, {
368
368
  children: /* @__PURE__ */ Se(Fe, n({}, ho, {
369
- children: [m, fe ? /* @__PURE__ */ A(ke, n({}, bo, {
369
+ children: [m, fe ? /* @__PURE__ */ j(ke, n({}, bo, {
370
370
  ref: to
371
371
  })) : null]
372
372
  }))
@@ -374,7 +374,7 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
374
374
  }))]
375
375
  });
376
376
  });
377
- U.env.NODE_ENV !== "production" && (ko.propTypes = {
377
+ B.env.NODE_ENV !== "production" && (ko.propTypes = {
378
378
  // ┌────────────────────────────── Warning ──────────────────────────────┐
379
379
  // │ These PropTypes are generated from the TypeScript type definitions. │
380
380
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -387,7 +387,7 @@ U.env.NODE_ENV !== "production" && (ko.propTypes = {
387
387
  /**
388
388
  * Tooltip reference element.
389
389
  */
390
- children: Mo.isRequired,
390
+ children: No.isRequired,
391
391
  /**
392
392
  * Override or extend the styles applied to the component.
393
393
  */
@@ -1,18 +1,18 @@
1
1
  import { jsx as N } from "react/jsx-runtime";
2
2
  import { useState as q, useEffect as P } from "react";
3
- import { useSwitchNetwork as Fe, useDynamicContext as je, useIsLoggedIn as ve } from "@dynamic-labs/sdk-react-core";
4
- import { a as we, u as T, aG as ze, aH as Ae } from "./index-DSlXIHtr.js";
3
+ import { useSwitchNetwork as Fe, useDynamicContext as je, useIsLoggedIn as ze } from "@dynamic-labs/sdk-react-core";
4
+ import { a as we, u as T, az as Ae, aA as ve } from "./index-C6pDnqRd.js";
5
5
  import { s as f } from "./WidgetForm.module-QHJ0-m5f.js";
6
6
  import { useAccount as Me, useSwitchChain as Oe, useBalance as Re } from "wagmi";
7
- import { u as ae, k as Ve, j as qe, C as oe } from "./useRegisterError-C52MuupC.js";
8
- import "./getCosmosAddress-BfMdDDaH.js";
7
+ import { u as ae, d as Ve, c as qe, C as oe } from "./useRegisterError-Cs0PKbRQ.js";
8
+ import "./getCosmosAddress-Cm0YEa9v.js";
9
9
  import { v as Pe } from "./validError-CDlJpg_f.js";
10
- import { u as _e, p as He } from "./index-Y94UWILI.js";
10
+ import { u as _e, p as He } from "./index-Cx-XaRo6.js";
11
11
  function Je(n) {
12
12
  const { wallet: h, address: g } = we(), [E, G] = q(0);
13
13
  async function m() {
14
- const v = await window.tronWeb.trx.getBalance(g);
15
- G(v / Math.pow(10, 6));
14
+ const z = await window.tronWeb.trx.getBalance(g);
15
+ G(z / Math.pow(10, 6));
16
16
  }
17
17
  return P(() => {
18
18
  g && (n == null ? void 0 : n.networkType) === "tron" && m();
@@ -22,11 +22,11 @@ function j(n) {
22
22
  if (n.key.toLowerCase() === "backpacksol")
23
23
  return !0;
24
24
  }
25
- function st({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowWallet: G, setConnectWalletField: m, handleConfirmClose: v, balanceSol: L, getCoinBalance: be, handleSuccess: ue }) {
25
+ function st({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowWallet: G, setConnectWalletField: m, handleConfirmClose: z, balanceSol: L, getCoinBalance: be, handleSuccess: ue }) {
26
26
  var Y, Z, W, k, D, C, ee, te, se, re, ce, ne, ie;
27
27
  const o = T((s) => s.gradient), x = T((s) => s.configuration), e = T((s) => s.fromChain), i = T((s) => s.fromCoin), r = T((s) => s.toChain), w = T((s) => s.toCoin), { isConnected: F, address: _, chain: I } = Me(), pe = Fe(), { getBothWalletConnection: ge, getConnectWallet: ye } = ae({
28
28
  chainData: e
29
- }), { connected: H, address: J, disconnect: Ke } = we(), z = T((s) => s.toDisconnect), d = T((s) => s.customWallet), { getWallet: xe } = ae({ chainData: e }), Ie = ye(e, r), [A, he] = q("101"), { tronBal: M } = Je(e), { cosmosBalance: K } = _e(), O = ((Y = e.chain) == null ? void 0 : Y.length) && ((Z = r.chain) == null ? void 0 : Z.length), R = ((W = i.address) == null ? void 0 : W.length) && ((k = w.address) == null ? void 0 : k.length), Te = Ve(), me = ze(), { switchChain: Ne, isPending: fe } = Oe({
29
+ }), { connected: H, address: J, disconnect: Ke } = we(), A = T((s) => s.toDisconnect), d = T((s) => s.customWallet), { getWallet: xe } = ae({ chainData: e }), Ie = ye(e, r), [v, he] = q("101"), { tronBal: M } = Je(e), { cosmosBalance: K } = _e(), O = ((Y = e.chain) == null ? void 0 : Y.length) && ((Z = r.chain) == null ? void 0 : Z.length), R = ((W = i.address) == null ? void 0 : W.length) && ((k = w.address) == null ? void 0 : k.length), Te = Ve(), me = Ae(), { switchChain: Ne, isPending: fe } = Oe({
30
30
  chainId: Number((e == null ? void 0 : e.chainId) || "0"),
31
31
  throwForSwitchChainNotSupported: !0,
32
32
  onError(s) {
@@ -48,18 +48,18 @@ function st({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
48
48
  Ne({ chainId: Number((e == null ? void 0 : e.chainId) || "0") });
49
49
  } catch {
50
50
  }
51
- else if ((e == null ? void 0 : e.networkType) === "sol" && A !== ((e == null ? void 0 : e.chainId) == "eclipse-svm" ? "201" : "101"))
51
+ else if ((e == null ? void 0 : e.networkType) === "sol" && v !== ((e == null ? void 0 : e.chainId) == "eclipse-svm" ? "201" : "101"))
52
52
  try {
53
53
  let s = await pe({ wallet: b, network: e.chainId == "eclipse-svm" ? "201" : "101" });
54
54
  U();
55
55
  } catch {
56
56
  }
57
57
  else
58
- me.emit(Ae.TransactionStarted, {
58
+ me.emit(ve.TransactionStarted, {
59
59
  ...n
60
- }), ue(!1), v();
60
+ }), ue(!1), z();
61
61
  }
62
- const { primaryWallet: b } = je(), V = ve(), S = (e == null ? void 0 : e.networkType) === r.networkType ? !!((C = (D = xe(e)) == null ? void 0 : D.address) != null && C.length) : ge(e == null ? void 0 : e.networkType, (d == null ? void 0 : d.length) > 30 ? "customWallet" : r == null ? void 0 : r.networkType), U = async () => {
62
+ const { primaryWallet: b } = je(), V = ze(), S = (e == null ? void 0 : e.networkType) === r.networkType ? !!((C = (D = xe(e)) == null ? void 0 : D.address) != null && C.length) : ge(e == null ? void 0 : e.networkType, (d == null ? void 0 : d.length) > 30 ? "customWallet" : r == null ? void 0 : r.networkType), U = async () => {
63
63
  if (b)
64
64
  try {
65
65
  const s = await b.getNetwork();
@@ -93,7 +93,7 @@ function st({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
93
93
  amountInToken: c.amountInToken,
94
94
  gas: X(c.amountInToken, t == null ? void 0 : t.decimals),
95
95
  token: t,
96
- nativeBal: (d == null ? void 0 : d.length) > 30 && !z && (t == null ? void 0 : t.chainId) == (r == null ? void 0 : r.chainId) && (r == null ? void 0 : r.chainId) !== (e == null ? void 0 : e.chainId) ? 0 : (t == null ? void 0 : t.networkType) == "sol" ? L : (t == null ? void 0 : t.networkType) == "tron" ? M : (t == null ? void 0 : t.networkType) == "cosmos" ? Se(t) : Ge(),
96
+ nativeBal: (d == null ? void 0 : d.length) > 30 && !A && (t == null ? void 0 : t.chainId) == (r == null ? void 0 : r.chainId) && (r == null ? void 0 : r.chainId) !== (e == null ? void 0 : e.chainId) ? 0 : (t == null ? void 0 : t.networkType) == "sol" ? L : (t == null ? void 0 : t.networkType) == "tron" ? M : (t == null ? void 0 : t.networkType) == "cosmos" ? Se(t) : Ge(),
97
97
  isFromChain: (e == null ? void 0 : e.chainId) === (t == null ? void 0 : t.chainId.toString()),
98
98
  order: (e == null ? void 0 : e.chainId) === (t == null ? void 0 : t.chainId) ? 1 : (r == null ? void 0 : r.chainId) === (t == null ? void 0 : t.chainId) ? 2 : B.length > 2 ? 3 : 2
99
99
  };
@@ -165,7 +165,7 @@ function st({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
165
165
  text: "From and To asset can not be the same!",
166
166
  isGradient: !1,
167
167
  color: "bw-bg-border-primary"
168
- }) : (p = (u = (s = h == null ? void 0 : h.data) == null ? void 0 : s.data) == null ? void 0 : u.quotes) != null && p.length ? F && Number((e == null ? void 0 : e.chainId) || "0") !== (I == null ? void 0 : I.id) && (e == null ? void 0 : e.networkType) === "evm" || V && ((e == null ? void 0 : e.chainId) === "eclipse-svm" ? "201" : "101") !== A && (e == null ? void 0 : e.networkType) === "sol" ? a({
168
+ }) : (p = (u = (s = h == null ? void 0 : h.data) == null ? void 0 : s.data) == null ? void 0 : u.quotes) != null && p.length ? F && Number((e == null ? void 0 : e.chainId) || "0") !== (I == null ? void 0 : I.id) && (e == null ? void 0 : e.networkType) === "evm" || V && ((e == null ? void 0 : e.chainId) === "eclipse-svm" ? "201" : "101") !== v && (e == null ? void 0 : e.networkType) === "sol" ? a({
169
169
  text: `Switch Chain to ${e.chain}`,
170
170
  isGradient: !0,
171
171
  color: o || f.gradientbutton
@@ -178,7 +178,7 @@ function st({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
178
178
  isGradient: !0,
179
179
  color: o || f.gradientbutton
180
180
  });
181
- }, [A, b, i, w, g, e, r, (ee = y.data) == null ? void 0 : ee.formatted, n, y.isFetching, y.isLoading, F, Q, S, h.isFetching, I == null ? void 0 : I.id, E, M, L, d, K]);
181
+ }, [v, b, i, w, g, e, r, (ee = y.data) == null ? void 0 : ee.formatted, n, y.isFetching, y.isLoading, F, Q, S, h.isFetching, I == null ? void 0 : I.id, E, M, L, d, K]);
182
182
  let Ee = [`switch chain to ${(te = e.chain) == null ? void 0 : te.toLowerCase()}`, `select ${(se = e.chain) == null ? void 0 : se.toLowerCase()} wallet`, "connect custom wallet", "enter recipient wallet address"];
183
183
  function Le() {
184
184
  var s, u, p, $;
@@ -196,7 +196,7 @@ function st({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
196
196
  },
197
197
  className: `bw-w-full bw-rounded-sm bw-h-[52px] ${l != null && l.isGradient ? "bw-p-[3px]" : "bw-p-[1px]"} bw-mt-3 bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-70 ${O && R && l.color} ${l.text.length > 29 ? "bw-text-xl" : "bw-text-2xl"} ${l != null && l.isGradient ? "bw-font-bold bw-text-text-primary" : "bw-font-normal bw-text-text-secondary"}`,
198
198
  onClick: () => {
199
- S || (G(!0), ((e == null ? void 0 : e.networkType) !== "evm" && F || (e == null ? void 0 : e.networkType) !== "sol" && V && b !== null || (e == null ? void 0 : e.networkType) !== "tron" && H && J) && !z ? m("from") : F && (r == null ? void 0 : r.networkType) !== "evm" || V && (r == null ? void 0 : r.networkType) !== "sol" || (r == null ? void 0 : r.networkType) !== "tron" && H && J || z ? m("to") : m("from")), e.chainId === "eclipse-svm" && !j(b) ? (G(!0), m("from")) : r.chainId === "eclipse-svm" && e.chainId !== "eclipse-svm" && !j(b) && d.length < 30 ? (G(!0), m("to")) : Be();
199
+ S || (G(!0), ((e == null ? void 0 : e.networkType) !== "evm" && F || (e == null ? void 0 : e.networkType) !== "sol" && V && b !== null || (e == null ? void 0 : e.networkType) !== "tron" && H && J) && !A ? m("from") : F && (r == null ? void 0 : r.networkType) !== "evm" || V && (r == null ? void 0 : r.networkType) !== "sol" || (r == null ? void 0 : r.networkType) !== "tron" && H && J || A ? m("to") : m("from")), e.chainId === "eclipse-svm" && !j(b) ? (G(!0), m("from")) : r.chainId === "eclipse-svm" && e.chainId !== "eclipse-svm" && !j(b) && d.length < 30 ? (G(!0), m("to")) : Be();
200
200
  },
201
201
  children: /* @__PURE__ */ N("div", { className: "bw-rounded-sm bw-bg-background-container bw-flex bw-items-center bw-justify-center b-w-full bw-h-full", children: /* @__PURE__ */ N("p", { className: "bw-relative bw-z-20", children: O && R ? fe ? /* @__PURE__ */ N("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ N(oe, { size: 22, thickness: 5, color: "inherit" }) }) : S ? l.text.length ? l.text : "Start Transaction" : `Connect ${Ie} Wallet` : /* @__PURE__ */ N("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ N(oe, { size: 22, thickness: 5, color: "inherit" }) }) }) })
202
202
  }
@@ -1,4 +1,4 @@
1
- import { m as l } from "./core-D9oRINim.js";
1
+ import { m as l } from "./core-BnRPnZUj.js";
2
2
  const o = l`<svg
3
3
  width="14"
4
4
  height="14"
@@ -1,4 +1,4 @@
1
- import { m as a } from "./core-D9oRINim.js";
1
+ import { m as a } from "./core-BnRPnZUj.js";
2
2
  const o = a`<svg fill="none" viewBox="0 0 24 24">
3
3
  <path
4
4
  style="fill: var(--wui-color-accent-100);"
@@ -1,4 +1,4 @@
1
- import { m as a } from "./core-D9oRINim.js";
1
+ import { m as a } from "./core-BnRPnZUj.js";
2
2
  const e = a`
3
3
  <svg width="36" height="36">
4
4
  <path
@@ -1,4 +1,4 @@
1
- import { m as l } from "./core-D9oRINim.js";
1
+ import { m as l } from "./core-BnRPnZUj.js";
2
2
  const f = l`<svg fill="none" viewBox="0 0 40 40">
3
3
  <g clip-path="url(#a)">
4
4
  <g clip-path="url(#b)">
@@ -1,4 +1,4 @@
1
- import { m as o } from "./core-D9oRINim.js";
1
+ import { m as o } from "./core-BnRPnZUj.js";
2
2
  const e = o`<svg fill="none" viewBox="0 0 14 15">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { m as C } from "./core-D9oRINim.js";
1
+ import { m as C } from "./core-BnRPnZUj.js";
2
2
  const e = C`<svg
3
3
  fill="none"
4
4
  viewBox="0 0 21 20"
@@ -1,4 +1,4 @@
1
- import { m as e } from "./core-D9oRINim.js";
1
+ import { m as e } from "./core-BnRPnZUj.js";
2
2
  const o = e`<svg fill="none" viewBox="0 0 14 15">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { m as l } from "./core-D9oRINim.js";
1
+ import { m as l } from "./core-BnRPnZUj.js";
2
2
  const e = l`<svg fill="none" viewBox="0 0 14 15">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { m as o } from "./core-D9oRINim.js";
1
+ import { m as o } from "./core-BnRPnZUj.js";
2
2
  const e = o`<svg fill="none" viewBox="0 0 14 15">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { m as e } from "./core-D9oRINim.js";
1
+ import { m as e } from "./core-BnRPnZUj.js";
2
2
  const o = e`<svg
3
3
  xmlns="http://www.w3.org/2000/svg"
4
4
  width="12"
@@ -1,6 +1,6 @@
1
- import { i as D, e as G, r as q, a as A, x as c, C as U, A as M, O as tt, b as z, E as et, R as O, c as Ut, d as K, f as N, S as pe, g as Cn, W as fe, h as Ze, j as vi, T as ti, k as Xt, M as on, l as rn, m as Dt, n as yi, o as $n } from "./core-D9oRINim.js";
2
- import { n as u, c as B, o as W, r as E, U as ht, e as Rn, f as En, a as In } from "./index-B5gV3APh.js";
3
- import { h as Wn } from "./index-DSlXIHtr.js";
1
+ import { i as D, e as G, r as q, a as A, x as c, C as U, A as M, O as tt, b as z, E as et, R as O, c as Ut, d as K, f as N, S as pe, g as Cn, W as fe, h as Ze, j as vi, T as ti, k as Xt, M as on, l as rn, m as Dt, n as yi, o as $n } from "./core-BnRPnZUj.js";
2
+ import { n as u, c as B, o as W, r as E, U as ht, e as Rn, f as En, a as In } from "./index-DKPTk58K.js";
3
+ import { m as Wn } from "./index-C6pDnqRd.js";
4
4
  const Sn = D`
5
5
  :host {
6
6
  position: relative;
@@ -1,4 +1,4 @@
1
- import { m as l } from "./core-D9oRINim.js";
1
+ import { m as l } from "./core-BnRPnZUj.js";
2
2
  const a = l`<svg fill="none" viewBox="0 0 20 20">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { m as C } from "./core-D9oRINim.js";
1
+ import { m as C } from "./core-BnRPnZUj.js";
2
2
  const l = C`<svg
3
3
  xmlns="http://www.w3.org/2000/svg"
4
4
  width="12"
@@ -1,4 +1,4 @@
1
- import { aj as L, ak as b, al as F, am as N, an as P, ao as w, ap as S, aq as E, ar as $, as as C, at as I, au as m, av as D, aw as A, ax as R, ay as y, az as O, aA as q, aB as G, aC as T, aD as v, aE as k, aF as H } from "./index-DSlXIHtr.js";
1
+ import { ac as L, ad as b, ae as F, af as N, ag as P, ah as w, ai as S, aj as E, ak as $, al as C, am as I, an as m, ao as G, ap as R, aq as k, ar as y, as as O, at as q, au as T, av as v, aw as D, ax as A, ay as H } from "./index-C6pDnqRd.js";
2
2
  const h = "/docs/contract/encodeErrorResult";
3
3
  function x(t) {
4
4
  const { abi: s, errorName: a, args: r } = t;
@@ -45,8 +45,8 @@ function j(t) {
45
45
  })();
46
46
  return w(e.outputs, c);
47
47
  }
48
- const B = "x-batch-gateway:true";
49
- async function U(t) {
48
+ const U = "x-batch-gateway:true";
49
+ async function B(t) {
50
50
  const { data: s, ccipRequest: a } = t, { args: [r] } = I({ abi: m, data: s }), e = [], c = [];
51
51
  return await Promise.all(r.map(async (n, o) => {
52
52
  try {
@@ -66,19 +66,19 @@ function _(t) {
66
66
  errorName: "HttpError",
67
67
  args: [t.status, t.shortMessage]
68
68
  }) : x({
69
- abi: [D],
69
+ abi: [G],
70
70
  errorName: "Error",
71
71
  args: ["shortMessage" in t ? t.shortMessage : t.message]
72
72
  });
73
73
  }
74
- function z(t, s) {
75
- if (!A(t, { strict: !1 }))
76
- throw new R({ address: t });
77
- if (!A(s, { strict: !1 }))
78
- throw new R({ address: s });
74
+ function J(t, s) {
75
+ if (!R(t, { strict: !1 }))
76
+ throw new k({ address: t });
77
+ if (!R(s, { strict: !1 }))
78
+ throw new k({ address: s });
79
79
  return t.toLowerCase() === s.toLowerCase();
80
80
  }
81
- class J extends y {
81
+ class W extends y {
82
82
  constructor({ callbackSelector: s, cause: a, data: r, extraData: e, sender: c, urls: n }) {
83
83
  var o;
84
84
  super(a.shortMessage || "An error occurred while fetching for an offchain result.", {
@@ -100,7 +100,7 @@ class J extends y {
100
100
  });
101
101
  }
102
102
  }
103
- class W extends y {
103
+ class z extends y {
104
104
  constructor({ result: s, url: a }) {
105
105
  super("Offchain gateway response is malformed. Response data must be a hex value.", {
106
106
  metaMessages: [
@@ -149,20 +149,20 @@ const Y = "0x556f1830", Q = {
149
149
  ]
150
150
  };
151
151
  async function Z(t, { blockNumber: s, blockTag: a, data: r, to: e }) {
152
- const { args: c } = G({
152
+ const { args: c } = T({
153
153
  data: r,
154
154
  abi: [Q]
155
155
  }), [n, o, u, f, d] = c, { ccipRead: i } = t, g = i && typeof (i == null ? void 0 : i.request) == "function" ? i.request : V;
156
156
  try {
157
- if (!z(e, n))
157
+ if (!J(e, n))
158
158
  throw new K({ sender: n, to: e });
159
- const l = o.includes(B) ? await U({
159
+ const l = o.includes(U) ? await B({
160
160
  data: u,
161
161
  ccipRequest: g
162
- }) : await g({ data: u, sender: n, urls: o }), { data: M } = await T(t, {
162
+ }) : await g({ data: u, sender: n, urls: o }), { data: M } = await v(t, {
163
163
  blockNumber: s,
164
164
  blockTag: a,
165
- data: v([
165
+ data: D([
166
166
  f,
167
167
  w([{ type: "bytes" }, { type: "bytes" }], [l, d])
168
168
  ]),
@@ -170,7 +170,7 @@ async function Z(t, { blockNumber: s, blockTag: a, data: r, to: e }) {
170
170
  });
171
171
  return M;
172
172
  } catch (l) {
173
- throw new J({
173
+ throw new W({
174
174
  callbackSelector: f,
175
175
  cause: l,
176
176
  data: r,
@@ -193,7 +193,7 @@ async function V({ data: t, sender: s, urls: a }) {
193
193
  });
194
194
  let i;
195
195
  if ((e = d.headers.get("Content-Type")) != null && e.startsWith("application/json") ? i = (await d.json()).data : i = await d.text(), !d.ok) {
196
- r = new k({
196
+ r = new A({
197
197
  body: u,
198
198
  details: i != null && i.error ? q(i.error) : d.statusText,
199
199
  headers: d.headers,
@@ -203,7 +203,7 @@ async function V({ data: t, sender: s, urls: a }) {
203
203
  continue;
204
204
  }
205
205
  if (!H(i)) {
206
- r = new W({
206
+ r = new z({
207
207
  result: i,
208
208
  url: n
209
209
  });
@@ -211,7 +211,7 @@ async function V({ data: t, sender: s, urls: a }) {
211
211
  }
212
212
  return i;
213
213
  } catch (d) {
214
- r = new k({
214
+ r = new A({
215
215
  body: u,
216
216
  details: d.message,
217
217
  url: n
@@ -1,4 +1,4 @@
1
- import { m as e } from "./core-D9oRINim.js";
1
+ import { m as e } from "./core-BnRPnZUj.js";
2
2
  const o = e`<svg
3
3
  width="28"
4
4
  height="28"
@@ -1,4 +1,4 @@
1
- import { m as e } from "./core-D9oRINim.js";
1
+ import { m as e } from "./core-BnRPnZUj.js";
2
2
  const o = e`<svg fill="none" viewBox="0 0 14 14">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { m as o } from "./core-D9oRINim.js";
1
+ import { m as o } from "./core-BnRPnZUj.js";
2
2
  const e = o`<svg fill="none" viewBox="0 0 16 16">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { m as e } from "./core-D9oRINim.js";
1
+ import { m as e } from "./core-BnRPnZUj.js";
2
2
  const o = e`<svg fill="none" viewBox="0 0 16 16">
3
3
  <path
4
4
  fill="currentColor"