@blockend/widget 1.0.33 → 1.0.35
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-B04uZfaa.js → AllRoutes-DugkOWXV.js} +25 -25
- package/dist/{Box-BWDJCGbI.js → Box-lMRW2PaS.js} +22 -23
- package/dist/{EstGas-QSPrdq3Y.js → EstGas-DApXMekb.js} +8 -8
- package/dist/{Grow-37t11tle.js → Grow-BmOmGrpF.js} +78 -78
- package/dist/{InputComp-bKVjlcbT.js → InputComp-DqG0cAPL.js} +13 -14
- package/dist/{LoadRoute-C3vokLk0.js → LoadRoute-CY28CNir.js} +6 -7
- package/dist/{QuotesProgress-DlgLQ2zo.js → QuotesProgress-DKRzn9CC.js} +1 -1
- package/dist/{SwapAsset-tD6wSJDD.js → SwapAsset-_vxoTdQp.js} +1 -1
- package/dist/{Tooltip-BqYgFn1F.js → Tooltip-Dp716hKk.js} +62 -62
- package/dist/{TxnButton-DefErcCE.js → TxnButton-D3z24dcS.js} +17 -17
- package/dist/{add-D32G_xKI.js → add-C6Dd-LAC.js} +1 -1
- package/dist/{all-wallets-LjjqiTnJ.js → all-wallets-Ue3bK59r.js} +1 -1
- package/dist/{app-store-S7C23kTz.js → app-store-Dud4QgNG.js} +1 -1
- package/dist/{apple-DMd4RArz.js → apple-BQ9MbbZP.js} +1 -1
- package/dist/{arrow-bottom-C0cVMl2n.js → arrow-bottom-CLN6rDK4.js} +1 -1
- package/dist/{arrow-bottom-circle-veMvHYVR.js → arrow-bottom-circle-CAv8sIRF.js} +1 -1
- package/dist/{arrow-left-B6VdOxSY.js → arrow-left-Cl_E0hNw.js} +1 -1
- package/dist/{arrow-right-CyrokJyU.js → arrow-right-CQfpVVH2.js} +1 -1
- package/dist/{arrow-top-S8qh5z92.js → arrow-top-D0_30fV2.js} +1 -1
- package/dist/{bank-B9ySjxm-.js → bank-Gn2clmBo.js} +1 -1
- package/dist/{basic-BXha5sM_.js → basic-l63VwNjO.js} +3 -3
- package/dist/{browser-CWmyZDF1.js → browser-BAo5lJYu.js} +1 -1
- package/dist/{card-TzoSVbiE.js → card-DQnyJ64c.js} +1 -1
- package/dist/{ccip-B97isPV8.js → ccip-fmXR9hIJ.js} +20 -20
- package/dist/{checkmark-Be4tNZY8.js → checkmark-Bgrnmjc2.js} +1 -1
- package/dist/{checkmark-bold-sAoooMoy.js → checkmark-bold-CNMA2OcU.js} +1 -1
- package/dist/{chevron-bottom-Cdd52Yir.js → chevron-bottom-BxzOHeJ4.js} +1 -1
- package/dist/{chevron-left-Dp8rM2qD.js → chevron-left-CRr_2LeK.js} +1 -1
- package/dist/{chevron-right-kH3Pgt8h.js → chevron-right-DFiUzznM.js} +1 -1
- package/dist/{chevron-top-lx-9iWm1.js → chevron-top-D3wrOEcS.js} +1 -1
- package/dist/{chrome-store-BGxPgdkC.js → chrome-store-DIUE3uCu.js} +1 -1
- package/dist/{clock-B3r9UiFY.js → clock-BAbkNjJ8.js} +1 -1
- package/dist/{close-Cc6SJ0A9.js → close-DeVKtBcs.js} +1 -1
- package/dist/{coinPlaceholder-DqH2n2v1.js → coinPlaceholder-CHSsNp63.js} +1 -1
- package/dist/{compass-CiKYczAi.js → compass-Dh52fIVy.js} +1 -1
- package/dist/{copy-DR0dlbF5.js → copy-CYY4XxHc.js} +1 -1
- package/dist/{core-D9oRINim.js → core-Da3u4kMK.js} +3 -3
- package/dist/{cursor-vv-pXAzC.js → cursor-BwcZP2cU.js} +1 -1
- package/dist/{cursor-transparent-BABlb938.js → cursor-transparent-CtXdeK4G.js} +1 -1
- package/dist/{desktop-aFWdAU4O.js → desktop-C7IcMKV9.js} +1 -1
- package/dist/{disconnect-Cz0MwjuJ.js → disconnect-BdG-TPWL.js} +1 -1
- package/dist/{discord-BkNiORDh.js → discord-BImtLuzd.js} +1 -1
- package/dist/{down-BAe_uoMx.js → down-BtVvHOzf.js} +2 -2
- package/dist/{etherscan-4wT3rhj5.js → etherscan-D-UJzW7q.js} +1 -1
- package/dist/{exclamation-triangle-CSv7sjYs.js → exclamation-triangle-CbRencsh.js} +1 -1
- package/dist/{extension-B4acJb16.js → extension-Bll0VLAA.js} +1 -1
- package/dist/{external-link-zFdRyGh8.js → external-link-D5iTJDZv.js} +1 -1
- package/dist/{facebook-D2h4REjy.js → facebook-Dja21bj4.js} +1 -1
- package/dist/{farcaster-acRwWMSn.js → farcaster-wqGtJf3Y.js} +1 -1
- package/dist/{filters-DE1yHCJy.js → filters-CLJd1l8F.js} +1 -1
- package/dist/{getChainIds-B4BLdhKd.js → getChainIds-DO6ce5TV.js} +75 -75
- package/dist/{getCosmosAddress-BfMdDDaH.js → getCosmosAddress-C5pNbsko.js} +2 -2
- package/dist/{github-BrCBPjDS.js → github-f0C3iHqc.js} +1 -1
- package/dist/{google-DYC6Um96.js → google-DxQ46arS.js} +1 -1
- package/dist/{hamburger-sg42nvNd.js → hamburger-C9Bw6yep.js} +20 -20
- package/dist/{help-circle-CKvIeM4J.js → help-circle-dS8EBAry.js} +1 -1
- package/dist/{id-FXzF1V3L.js → id-ChzRi8fN.js} +1 -1
- package/dist/{image-rOZMtN9o.js → image-C4gVrtIF.js} +1 -1
- package/dist/{index-Y94UWILI.js → index-0aVGx_Hc.js} +123 -123
- package/dist/{index-CIjTGwYH.js → index-BA8XYZpF.js} +1 -1
- package/dist/{index-DSlXIHtr.js → index-Bxxa78XW.js} +11887 -10132
- package/dist/{index-Cmj3dp3U.js → index-CVoa8Hgu.js} +53 -54
- package/dist/{index-B5gV3APh.js → index-DLzlYWHQ.js} +78 -78
- package/dist/{index-PIAjHNgG.js → index-DeccqcIO.js} +43 -43
- package/dist/{index-SiMIoFT9.js → index-Dwbg5825.js} +22 -23
- package/dist/{index-B0E-rGOh.js → index-TVbBp9wm.js} +45 -45
- package/dist/{index-baetUfmH.js → index-tAuc55ux.js} +4 -4
- package/dist/{index-DOcwHfd3.js → index-vqjyuZy1.js} +93 -93
- package/dist/{index-DEovHqJS.js → index-wScYaxes.js} +14 -14
- package/dist/{index.es-TLoHC_Sf.js → index.es-C26YWYPo.js} +2 -2
- package/dist/{index.es-D6RvS0tB.js → index.es-D7hCDC6u.js} +5 -5
- package/dist/index.es.js +5 -4
- package/dist/{info-dh7qmm_R.js → info-CPtEiYP6.js} +1 -1
- package/dist/{info-circle-BYfEprqC.js → info-circle-tJHDDMS5.js} +1 -1
- package/dist/{lightbulb-3S8w5B31.js → lightbulb-YyzViRA6.js} +1 -1
- package/dist/{mail-DgcPoOPs.js → mail-CEUmlTAH.js} +1 -1
- package/dist/{mobile-C8egRR0V.js → mobile-SPMfAP4M.js} +1 -1
- package/dist/{more-CU_oPwwY.js → more-BbFS2rE5.js} +1 -1
- package/dist/{network-placeholder-CqjaxlS7.js → network-placeholder-DtpejNXo.js} +1 -1
- package/dist/{nftPlaceholder-D6mZlZmz.js → nftPlaceholder-VelLVR2h.js} +1 -1
- package/dist/{off-DHeUICx6.js → off-B5RzO7gz.js} +1 -1
- package/dist/{play-store-DyGxjYv5.js → play-store-B6lrilds.js} +1 -1
- package/dist/{plus-k4hEdLAH.js → plus-D841ACT6.js} +1 -1
- package/dist/{qr-code-CkavLc0Z.js → qr-code-BVVyydbz.js} +1 -1
- package/dist/{recycle-horizontal-YzkyX2fY.js → recycle-horizontal-5btK8NFz.js} +1 -1
- package/dist/{refresh-E1vpdqCO.js → refresh-UDow-RHt.js} +1 -1
- package/dist/{reown-logo-BZbc_-R6.js → reown-logo-Be1Zzv4p.js} +1 -1
- package/dist/{search-B9vQkIsQ.js → search-bhqfNZLo.js} +1 -1
- package/dist/{send-C9ROxhya.js → send-DV1Umwvh.js} +1 -1
- package/dist/shareicon-CG3v7iKI.js +10 -0
- package/dist/{swapHorizontal-BhLDDuiL.js → swapHorizontal-GVVAbIQB.js} +1 -1
- package/dist/{swapHorizontalBold-B1IxJLem.js → swapHorizontalBold-DIiZDFVS.js} +1 -1
- package/dist/{swapHorizontalMedium--fvn_6KH.js → swapHorizontalMedium-B0HHYpQH.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-fZowAp5m.js → swapHorizontalRoundedBold-pOgebJFJ.js} +1 -1
- package/dist/{swapVertical-CDwndQ4s.js → swapVertical-BZGOku0X.js} +1 -1
- package/dist/{telegram-BLbguJ3E.js → telegram-cNghrenC.js} +1 -1
- package/dist/{three-dots-DyIG0Aiq.js → three-dots-D_nRwG94.js} +1 -1
- package/dist/{twitch-054mPrps.js → twitch-VU9MS9ZS.js} +1 -1
- package/dist/{twitterIcon-DrlgKmas.js → twitterIcon-C7dYZ07E.js} +1 -1
- package/dist/{unsupportedProp-Dr6Tadlk.js → unsupportedProp-CQt_qbHh.js} +1 -1
- package/dist/{useRegisterError-C52MuupC.js → useRegisterError-C7rm81XT.js} +3257 -4302
- package/dist/{verify-uz7q7EMX.js → verify-798JgG6J.js} +1 -1
- package/dist/{verify-filled-Dw1_4VEj.js → verify-filled-_efdiB9e.js} +1 -1
- package/dist/{w3m-modal-CJM8um8G.js → w3m-modal-B4sFU_o-.js} +2 -2
- package/dist/{wallet-a9cCMI05.js → wallet-CAK8ngWh.js} +1 -1
- package/dist/{wallet-placeholder-Cqiz2_rA.js → wallet-placeholder-9gEZsks_.js} +1 -1
- package/dist/{walletconnect-96twp7MP.js → walletconnect-PjqXm1Yn.js} +1 -1
- package/dist/{warning-circle-C4mV6fIZ.js → warning-circle-CPjq_lzf.js} +1 -1
- package/dist/widget.css +1 -1
- package/dist/{x-vRe7FHUS.js → x-38WJsPNk.js} +1 -1
- package/package.json +1 -1
- package/dist/shareicon-CLveBf8l.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-Bxxa78XW.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-BmOmGrpF.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-C7rm81XT.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-Bxxa78XW.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-C7rm81XT.js";
|
8
|
+
import "./getCosmosAddress-C5pNbsko.js";
|
9
9
|
import { v as Pe } from "./validError-CDlJpg_f.js";
|
10
|
-
import { u as _e, p as He } from "./index-
|
10
|
+
import { u as _e, p as He } from "./index-0aVGx_Hc.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
|
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: H, address: J, disconnect: Ke } = we(),
|
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();
|
@@ -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" && H && J) && !
|
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-Da3u4kMK.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-DLzlYWHQ.js";
|
3
|
+
import { m as Wn } from "./index-Bxxa78XW.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-Bxxa78XW.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
|