@blockend/widget 1.0.32 → 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.
- package/dist/{AllRoutes-CPwuTwqd.js → AllRoutes-DW-2t6-d.js} +25 -25
- package/dist/{Box-CIChapvH.js → Box-C4X6PUtu.js} +21 -22
- package/dist/{EstGas-CEFILtyf.js → EstGas-Lj2vKAmO.js} +26 -30
- package/dist/{Grow-DJZj9zjv.js → Grow-CCS_DglL.js} +78 -78
- package/dist/{InputComp-DqF1JGIu.js → InputComp-FIX0Q9qG.js} +13 -14
- package/dist/{LoadRoute-r3sHTYXM.js → LoadRoute-Di4rBHfs.js} +6 -7
- package/dist/{QuotesProgress-BXVLxZ8U.js → QuotesProgress-CDe2mdH1.js} +1 -1
- package/dist/{SwapAsset-07WvVwl-.js → SwapAsset-B0GIHqge.js} +1 -1
- package/dist/{Tooltip-CNAsCF8n.js → Tooltip-CsLgOKrX.js} +62 -62
- package/dist/{TxnButton-D2TTkFYA.js → TxnButton-CFquc6ws.js} +19 -19
- package/dist/{add-t2GqC9VA.js → add-Cb5Hpxtd.js} +1 -1
- package/dist/{all-wallets-DFyf0q31.js → all-wallets-IvJFyonp.js} +1 -1
- package/dist/{app-store-aAahwmBP.js → app-store-DGHaTAGg.js} +1 -1
- package/dist/{apple-DeRgpwlc.js → apple-BzfrhDcG.js} +1 -1
- package/dist/{arrow-bottom-DdEOkaAj.js → arrow-bottom-BTM5yMbs.js} +1 -1
- package/dist/{arrow-bottom-circle-BWwREWcv.js → arrow-bottom-circle-wJZrQ1UB.js} +1 -1
- package/dist/{arrow-left-CulyLmoH.js → arrow-left-yb9jvZLF.js} +1 -1
- package/dist/{arrow-right-Dwr7TISn.js → arrow-right-CNq-seAV.js} +1 -1
- package/dist/{arrow-top-pL4rM_y8.js → arrow-top-viS3mMCD.js} +1 -1
- package/dist/{bank-CPuyK_08.js → bank-BCcggibH.js} +1 -1
- package/dist/{basic-CVc9xEvb.js → basic-DaTq2wkc.js} +3 -3
- package/dist/{browser-Cbq2Zbp4.js → browser-CmA0GPLB.js} +1 -1
- package/dist/{card-B_hUtPWK.js → card-BO4I6Psi.js} +1 -1
- package/dist/{ccip-BLVGcR4A.js → ccip-CkXLKCYn.js} +20 -20
- package/dist/{checkmark-WEqTsFAc.js → checkmark-DF8VoFaX.js} +1 -1
- package/dist/{checkmark-bold-Du_ZvhqM.js → checkmark-bold-C6OPR-mV.js} +1 -1
- package/dist/{chevron-bottom-C-s-lv4L.js → chevron-bottom-BTjaTIFm.js} +1 -1
- package/dist/{chevron-left-C7NcRElx.js → chevron-left-D6wphcsV.js} +1 -1
- package/dist/{chevron-right-CSzmAmdn.js → chevron-right-Ba05aF4G.js} +1 -1
- package/dist/{chevron-top-Dd99Wfel.js → chevron-top-I_q0NhsC.js} +1 -1
- package/dist/{chrome-store-C4p77Of0.js → chrome-store-DvzERGX1.js} +1 -1
- package/dist/{clock-Cib24qjH.js → clock-GIv_XdGS.js} +1 -1
- package/dist/{close-BXjEkTvS.js → close-ChDp2HIX.js} +1 -1
- package/dist/{coinPlaceholder-BFNC7cQN.js → coinPlaceholder-D6rBGR5B.js} +1 -1
- package/dist/{compass-CXPX5Ycp.js → compass-DFCkTDdC.js} +1 -1
- package/dist/{copy-BEawMbmF.js → copy-DyQCksHx.js} +1 -1
- package/dist/{core-Bez9Ow7F.js → core-BnRPnZUj.js} +3 -3
- package/dist/{cursor-Cxq4Q9jk.js → cursor-BhR8wfWc.js} +1 -1
- package/dist/{cursor-transparent-ZjJ0P2vr.js → cursor-transparent-CYfTh9TG.js} +1 -1
- package/dist/{desktop-BhZVovAp.js → desktop-CdNR2WGz.js} +1 -1
- package/dist/{disconnect-AC-bffZO.js → disconnect-Bbfhuf4x.js} +1 -1
- package/dist/{discord-dT97h-CC.js → discord-04uw628s.js} +1 -1
- package/dist/{down-DP56YSKp.js → down-DmSxEW66.js} +2 -2
- package/dist/{etherscan-rYFRhRTM.js → etherscan-D7Ga60vG.js} +1 -1
- package/dist/{exclamation-triangle-C-pCuC08.js → exclamation-triangle-CMEJoc37.js} +1 -1
- package/dist/{extension-BnqauLSn.js → extension-C0IOh4C8.js} +1 -1
- package/dist/{external-link-M9D6e_F3.js → external-link-CEy2KY-H.js} +1 -1
- package/dist/{facebook-DHezcoD-.js → facebook-XHE6-OiD.js} +1 -1
- package/dist/{farcaster-D0Ky-Imv.js → farcaster-BVsAZpup.js} +1 -1
- package/dist/{filters-B02NYLWq.js → filters-BjuqhDXY.js} +1 -1
- package/dist/{getChainIds-CJd2TZYT.js → getChainIds-cRV7v4Vu.js} +75 -75
- package/dist/{getCosmosAddress-DTZfw04G.js → getCosmosAddress-Cm0YEa9v.js} +2 -2
- package/dist/{github-BzQkIMuE.js → github-C5YGtlqc.js} +1 -1
- package/dist/{google-BpwCJ4Fs.js → google-DFDexaN0.js} +1 -1
- package/dist/{hamburger-BzqwkUjE.js → hamburger-CZPNB-Jp.js} +20 -20
- package/dist/{help-circle-C0nOySHC.js → help-circle-C2OFxIs0.js} +1 -1
- package/dist/{id-DFP_kFd4.js → id-CforGy9u.js} +1 -1
- package/dist/{image-QiYOAGjM.js → image-BLq9nQ13.js} +1 -1
- package/dist/{index-D5hLIe-N.js → index-BRrWKwgI.js} +1 -1
- package/dist/{index-DDk00SOL.js → index-Bw4t164c.js} +45 -45
- package/dist/{index-DaJ1272l.js → index-ByWf22Y4.js} +43 -43
- package/dist/index-C6pDnqRd.js +30456 -0
- package/dist/{index-DXdD3L9f.js → index-Cx-XaRo6.js} +243 -243
- package/dist/{index-CrC4B7xn.js → index-D7-VO30b.js} +22 -23
- package/dist/{index-DxPp2gBS.js → index-DKPTk58K.js} +78 -78
- package/dist/{index-CjtwASJt.js → index-DrWi5MDR.js} +4 -4
- package/dist/{index-DW3W7zaF.js → index-EuXqE26M.js} +53 -54
- package/dist/{index-Dy_n2MPD.js → index-HOk_h4cO.js} +14 -14
- package/dist/{index-oc8HPfOF.js → index-sSdagBAC.js} +93 -93
- package/dist/{index.es-C-j-Ghef.js → index.es-B1r2oZcy.js} +2 -2
- package/dist/{index.es-Bsr7zP98.js → index.es-DP4lrxUS.js} +5 -5
- package/dist/index.es.js +1 -1
- package/dist/{info-BTLQJ-wd.js → info-CJ1NTOxH.js} +1 -1
- package/dist/{info-circle-Dla9169_.js → info-circle-Daj7vZoR.js} +1 -1
- package/dist/{lightbulb-PN8DA_Wh.js → lightbulb-BLkY2HTh.js} +1 -1
- package/dist/{mail-BGYZut_4.js → mail-CAKz4cbl.js} +1 -1
- package/dist/{mobile-BM760ZzX.js → mobile-BopKRCBe.js} +1 -1
- package/dist/{more-rHGnl2ck.js → more-X_2v_wZ3.js} +1 -1
- package/dist/{network-placeholder-CyQl-3_2.js → network-placeholder-C1OcyWkc.js} +1 -1
- package/dist/{nftPlaceholder-nuUJ8nKY.js → nftPlaceholder-B3ZKQ1U2.js} +1 -1
- package/dist/{off-GYlwYDrT.js → off-OZ4tqosO.js} +1 -1
- package/dist/{play-store-Ck01Ez1F.js → play-store-HsWGEr_g.js} +1 -1
- package/dist/{plus-CQfXWgLw.js → plus-C7yRM6wl.js} +1 -1
- package/dist/{qr-code-CyLVwLY7.js → qr-code-DfWVQYKi.js} +1 -1
- package/dist/{recycle-horizontal-DvnWPcEQ.js → recycle-horizontal-C5u6LBUM.js} +1 -1
- package/dist/{refresh-BOxj8b2n.js → refresh-BYw1HzOO.js} +1 -1
- package/dist/{reown-logo-D1iprOTg.js → reown-logo-CXMihtcp.js} +1 -1
- package/dist/{search-DrPaZPnc.js → search-ByiAQZVh.js} +1 -1
- package/dist/{send-ybBREe4b.js → send-Bs5FwLBZ.js} +1 -1
- package/dist/shareicon-CG3v7iKI.js +10 -0
- package/dist/{swapHorizontal-BddjZdXK.js → swapHorizontal-B7d_h2Se.js} +1 -1
- package/dist/{swapHorizontalBold-B6AWjPZ9.js → swapHorizontalBold-xBnEd6a1.js} +1 -1
- package/dist/{swapHorizontalMedium-CNacWoBn.js → swapHorizontalMedium-aLC75TbM.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-B8VcPnqt.js → swapHorizontalRoundedBold-D1ph5kGS.js} +1 -1
- package/dist/{swapVertical-zY2BbSyQ.js → swapVertical-DtfbArUn.js} +1 -1
- package/dist/{telegram-DS4l-8Oc.js → telegram-0Il36fMk.js} +1 -1
- package/dist/{three-dots-RctNqamK.js → three-dots-wNW622nV.js} +1 -1
- package/dist/{twitch-CJ0llIIH.js → twitch-Dt1-Wtif.js} +1 -1
- package/dist/{twitterIcon-pgvN9-bP.js → twitterIcon-CpSpHPYu.js} +1 -1
- package/dist/{unsupportedProp-BJVuEW_b.js → unsupportedProp-DBVCAgxp.js} +1 -1
- package/dist/{useRegisterError-C_YLA1dw.js → useRegisterError-Cs0PKbRQ.js} +3257 -4302
- package/dist/{verify-BeZLo1Fq.js → verify-BFIm6NMn.js} +1 -1
- package/dist/{verify-filled-meyb7E16.js → verify-filled-bGZT7egL.js} +1 -1
- package/dist/{w3m-modal-C-Jp9NVv.js → w3m-modal-C6VaThR4.js} +2 -2
- package/dist/{wallet-CFcOgSsz.js → wallet-BeQcPBdd.js} +1 -1
- package/dist/{wallet-placeholder-CeUMILZq.js → wallet-placeholder-CCGVvv4Q.js} +1 -1
- package/dist/{walletconnect-D6LB1PyC.js → walletconnect-BnSO61ut.js} +1 -1
- package/dist/{warning-circle-BRtzofvT.js → warning-circle-D80fIuKG.js} +1 -1
- package/dist/widget.css +1 -1
- package/dist/{x-DKQAOOh3.js → x-4jy71myv.js} +1 -1
- package/package.json +7 -19
- package/dist/index-CLzkn733.js +0 -28223
- package/dist/secp256k1-DgmH1qVg.js +0 -1251
- package/dist/shareicon-D3Qj5j1T.js +0 -262
@@ -1,16 +1,16 @@
|
|
1
|
-
import {
|
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 {
|
4
|
-
import {
|
5
|
-
import {
|
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
|
7
|
+
return To("MuiTooltip", r);
|
8
8
|
}
|
9
|
-
const f =
|
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
|
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${
|
22
|
+
tooltip: ["tooltip", d && "tooltipArrow", R && "touch", `tooltipPlacement${Ve(C.split("-")[0])}`],
|
23
23
|
arrow: ["arrow"]
|
24
24
|
};
|
25
|
-
return
|
26
|
-
},
|
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${
|
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
|
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
|
189
|
+
const S = yo({
|
190
190
|
props: t,
|
191
191
|
name: "MuiTooltip"
|
192
192
|
}), {
|
193
193
|
arrow: fe = !1,
|
194
|
-
children:
|
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:
|
201
|
+
disableTouchListener: Ke = !1,
|
202
202
|
enterDelay: be = 100,
|
203
203
|
enterNextDelay: ge = 0,
|
204
|
-
enterTouchDelay:
|
205
|
-
followCursor:
|
206
|
-
id:
|
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:
|
213
|
+
PopperComponent: V,
|
214
214
|
PopperProps: b = {},
|
215
215
|
slotProps: g = {},
|
216
|
-
slots:
|
216
|
+
slots: E = {},
|
217
217
|
title: m,
|
218
218
|
TransitionComponent: Ze = Be,
|
219
219
|
TransitionProps: eo
|
220
|
-
} =
|
221
|
-
children:
|
222
|
-
}), Ce =
|
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 (
|
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 =
|
238
|
-
T.current !== void 0 && (document.body.style.WebkitUserSelect = T.current, T.current = void 0),
|
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
|
-
|
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
|
-
|
248
|
+
We.start(800 + Te, () => {
|
249
249
|
F = !1;
|
250
|
-
}),
|
251
|
-
|
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
|
-
|
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
|
-
} =
|
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
|
-
},
|
272
|
-
|
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
|
-
|
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 =
|
294
|
+
const ao = Eo(Mo(c), po, xe, s);
|
295
295
|
!m && m !== 0 && (u = !1);
|
296
|
-
const
|
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
|
-
},
|
302
|
-
}, y = {},
|
303
|
-
Ye ? (y.title = !u &&
|
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:
|
306
|
-
onTouchStart:
|
305
|
+
className: D(Re.className, c.props.className),
|
306
|
+
onTouchStart: je,
|
307
307
|
ref: ao
|
308
|
-
},
|
308
|
+
}, W ? {
|
309
309
|
onMouseMove: co
|
310
310
|
} : {});
|
311
|
-
|
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
|
-
|
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({},
|
329
|
+
}, [z, b]), P = n({}, S, {
|
330
330
|
isRtl: oo,
|
331
331
|
arrow: fe,
|
332
332
|
disableInteractive: H,
|
333
333
|
placement: we,
|
334
|
-
PopperComponentProp:
|
335
|
-
touch:
|
336
|
-
}),
|
337
|
-
className:
|
338
|
-
}), P), fo =
|
339
|
-
className:
|
340
|
-
}), P), bo =
|
341
|
-
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__ */
|
345
|
-
as:
|
344
|
+
children: [/* @__PURE__ */ p.cloneElement(c, a), /* @__PURE__ */ j(Ie, n({
|
345
|
+
as: V ?? He,
|
346
346
|
placement: we,
|
347
|
-
anchorEl:
|
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:
|
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__ */
|
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__ */
|
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
|
-
|
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:
|
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
|
4
|
-
import { a as we, u as T,
|
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,
|
8
|
-
import "./getCosmosAddress-
|
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
|
11
|
-
function
|
10
|
+
import { u as _e, p as He } from "./index-Cx-XaRo6.js";
|
11
|
+
function Je(n) {
|
12
12
|
const { wallet: h, address: g } = we(), [E, G] = q(0);
|
13
13
|
async function m() {
|
14
|
-
const
|
15
|
-
G(
|
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:
|
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:
|
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" &&
|
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(
|
58
|
+
me.emit(ve.TransactionStarted, {
|
59
59
|
...n
|
60
|
-
}), ue(!1),
|
60
|
+
}), ue(!1), z();
|
61
61
|
}
|
62
|
-
const { primaryWallet: b } = je(), V =
|
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();
|
@@ -82,7 +82,7 @@ function st({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
|
|
82
82
|
}
|
83
83
|
function Se(s) {
|
84
84
|
var u;
|
85
|
-
return Number(((u =
|
85
|
+
return Number(((u = K[He(s.address)]) == null ? void 0 : u.amount) || 0) / Math.pow(10, s.decimals);
|
86
86
|
}
|
87
87
|
function $e() {
|
88
88
|
var $;
|
@@ -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 && !
|
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") !==
|
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
|
-
}, [
|
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" &&
|
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,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-
|
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-
|
3
|
-
import {
|
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 {
|
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
|
49
|
-
async function
|
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: [
|
69
|
+
abi: [G],
|
70
70
|
errorName: "Error",
|
71
71
|
args: ["shortMessage" in t ? t.shortMessage : t.message]
|
72
72
|
});
|
73
73
|
}
|
74
|
-
function
|
75
|
-
if (!
|
76
|
-
throw new
|
77
|
-
if (!
|
78
|
-
throw new
|
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
|
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
|
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 } =
|
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 (!
|
157
|
+
if (!J(e, n))
|
158
158
|
throw new K({ sender: n, to: e });
|
159
|
-
const l = o.includes(
|
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
|
162
|
+
}) : await g({ data: u, sender: n, urls: o }), { data: M } = await v(t, {
|
163
163
|
blockNumber: s,
|
164
164
|
blockTag: a,
|
165
|
-
data:
|
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
|
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
|
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
|
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
|
214
|
+
r = new A({
|
215
215
|
body: u,
|
216
216
|
details: d.message,
|
217
217
|
url: n
|