@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,8 +1,8 @@
|
|
1
1
|
import * as D from "react";
|
2
2
|
import kt from "react";
|
3
|
-
import { p as J, P as i,
|
3
|
+
import { p as J, P as i, aD as St, m as Bt, g as Wt, b as Lt, _ as Te, d as z, h as Nt, i as Ht, s as Vt } from "./index-Bxxa78XW.js";
|
4
4
|
import { jsx as de } from "react/jsx-runtime";
|
5
|
-
import {
|
5
|
+
import { o as et, P as It, b as Se, a as tt, m as Ut, r as mt, h as qt, H as Ee, T as Ft, q as _t, j as Xt, n as zt, t as rt, v as Yt, w as Gt } from "./useRegisterError-C7rm81XT.js";
|
6
6
|
let nt = 0;
|
7
7
|
function Jt(e) {
|
8
8
|
const [t, r] = D.useState(e), n = e || t;
|
@@ -54,7 +54,7 @@ function Qt() {
|
|
54
54
|
it = 1, Object.defineProperty(pe, "__esModule", {
|
55
55
|
value: !0
|
56
56
|
}), pe.default = void 0;
|
57
|
-
var e = n(kt), t =
|
57
|
+
var e = n(kt), t = St;
|
58
58
|
function r(p) {
|
59
59
|
if (typeof WeakMap != "function") return null;
|
60
60
|
var s = /* @__PURE__ */ new WeakMap(), a = /* @__PURE__ */ new WeakMap();
|
@@ -84,7 +84,7 @@ function Qt() {
|
|
84
84
|
return pe.default = f, pe;
|
85
85
|
}
|
86
86
|
var Zt = /* @__PURE__ */ Qt();
|
87
|
-
const er = /* @__PURE__ */
|
87
|
+
const er = /* @__PURE__ */ Bt(Zt);
|
88
88
|
var L = "top", I = "bottom", U = "right", N = "left", Ne = "auto", he = [L, I, U, N], ne = "start", ve = "end", tr = "clippingParents", ht = "viewport", le = "popper", rr = "reference", at = /* @__PURE__ */ he.reduce(function(e, t) {
|
89
89
|
return e.concat([t + "-" + ne, t + "-" + ve]);
|
90
90
|
}, []), gt = /* @__PURE__ */ [].concat(he, [Ne]).reduce(function(e, t) {
|
@@ -269,7 +269,7 @@ function yr(e, t, r) {
|
|
269
269
|
var n = ce(e, t, r);
|
270
270
|
return n > r ? r : n;
|
271
271
|
}
|
272
|
-
function
|
272
|
+
function wt() {
|
273
273
|
return {
|
274
274
|
top: 0,
|
275
275
|
right: 0,
|
@@ -277,8 +277,8 @@ function xt() {
|
|
277
277
|
left: 0
|
278
278
|
};
|
279
279
|
}
|
280
|
-
function
|
281
|
-
return Object.assign({},
|
280
|
+
function xt(e) {
|
281
|
+
return Object.assign({}, wt(), e);
|
282
282
|
}
|
283
283
|
function Ot(e, t) {
|
284
284
|
return t.reduce(function(r, n) {
|
@@ -288,16 +288,16 @@ function Ot(e, t) {
|
|
288
288
|
var br = function(t, r) {
|
289
289
|
return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
|
290
290
|
placement: r.placement
|
291
|
-
})) : t,
|
291
|
+
})) : t, xt(typeof t != "number" ? t : Ot(t, he));
|
292
292
|
};
|
293
|
-
function
|
293
|
+
function wr(e) {
|
294
294
|
var t, r = e.state, n = e.name, o = e.options, f = r.elements.arrow, p = r.modifiersData.popperOffsets, s = _(r.placement), a = Ie(s), c = [N, U].indexOf(s) >= 0, l = c ? "height" : "width";
|
295
295
|
if (!(!f || !p)) {
|
296
|
-
var d = br(o.padding, r), g = Ve(f), m = a === "y" ? L : N, O = a === "y" ? I : U, v = r.rects.reference[l] + r.rects.reference[a] - p[a] - r.rects.popper[l], y = p[a] - r.rects.reference[a], E = ge(f), T = E ? a === "y" ? E.clientHeight || 0 : E.clientWidth || 0 : 0,
|
297
|
-
r.modifiersData[n] = (t = {}, t[C] =
|
296
|
+
var d = br(o.padding, r), g = Ve(f), m = a === "y" ? L : N, O = a === "y" ? I : U, v = r.rects.reference[l] + r.rects.reference[a] - p[a] - r.rects.popper[l], y = p[a] - r.rects.reference[a], E = ge(f), T = E ? a === "y" ? E.clientHeight || 0 : E.clientWidth || 0 : 0, w = v / 2 - y / 2, u = d[m], h = T - g[l] - d[O], b = T / 2 - g[l] / 2 + w, x = ce(u, b, h), C = a;
|
297
|
+
r.modifiersData[n] = (t = {}, t[C] = x, t.centerOffset = x - b, t);
|
298
298
|
}
|
299
299
|
}
|
300
|
-
function
|
300
|
+
function xr(e) {
|
301
301
|
var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
|
302
302
|
o != null && (typeof o == "string" && (o = t.elements.popper.querySelector(o), !o) || bt(t.elements.popper, o) && (t.elements.arrow = o));
|
303
303
|
}
|
@@ -305,8 +305,8 @@ const Or = {
|
|
305
305
|
name: "arrow",
|
306
306
|
enabled: !0,
|
307
307
|
phase: "main",
|
308
|
-
fn:
|
309
|
-
effect:
|
308
|
+
fn: wr,
|
309
|
+
effect: xr,
|
310
310
|
requires: ["popperOffsets"],
|
311
311
|
requiresIfExists: ["preventOverflow"]
|
312
312
|
};
|
@@ -335,19 +335,19 @@ function ft(e) {
|
|
335
335
|
y: v
|
336
336
|
};
|
337
337
|
m = y.x, v = y.y;
|
338
|
-
var E = p.hasOwnProperty("x"), T = p.hasOwnProperty("y"),
|
338
|
+
var E = p.hasOwnProperty("x"), T = p.hasOwnProperty("y"), w = N, u = L, h = window;
|
339
339
|
if (c) {
|
340
|
-
var b = ge(r),
|
341
|
-
if (b === H(r) && (b = K(r), Y(b).position !== "static" && s === "absolute" && (
|
340
|
+
var b = ge(r), x = "clientHeight", C = "clientWidth";
|
341
|
+
if (b === H(r) && (b = K(r), Y(b).position !== "static" && s === "absolute" && (x = "scrollHeight", C = "scrollWidth")), b = b, o === L || (o === N || o === U) && f === ve) {
|
342
342
|
u = I;
|
343
343
|
var P = d && b === h && h.visualViewport ? h.visualViewport.height : (
|
344
344
|
// $FlowFixMe[prop-missing]
|
345
|
-
b[
|
345
|
+
b[x]
|
346
346
|
);
|
347
347
|
v -= P - n.height, v *= a ? 1 : -1;
|
348
348
|
}
|
349
349
|
if (o === N || (o === L || o === I) && f === ve) {
|
350
|
-
|
350
|
+
w = U;
|
351
351
|
var A = d && b === h && h.visualViewport ? h.visualViewport.width : (
|
352
352
|
// $FlowFixMe[prop-missing]
|
353
353
|
b[C]
|
@@ -366,9 +366,9 @@ function ft(e) {
|
|
366
366
|
};
|
367
367
|
if (m = W.x, v = W.y, a) {
|
368
368
|
var k;
|
369
|
-
return Object.assign({}, M, (k = {}, k[u] = T ? "0" : "", k[
|
369
|
+
return Object.assign({}, M, (k = {}, k[u] = T ? "0" : "", k[w] = E ? "0" : "", k.transform = (h.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + v + "px)" : "translate3d(" + m + "px, " + v + "px, 0)", k));
|
370
370
|
}
|
371
|
-
return Object.assign({}, M, (t = {}, t[u] = T ? v + "px" : "", t[
|
371
|
+
return Object.assign({}, M, (t = {}, t[u] = T ? v + "px" : "", t[w] = E ? m + "px" : "", t.transform = "", t));
|
372
372
|
}
|
373
373
|
function Rr(e) {
|
374
374
|
var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, f = r.adaptive, p = f === void 0 ? !0 : f, s = r.roundOffsets, a = s === void 0 ? !0 : s, c = {
|
@@ -400,17 +400,17 @@ const Tr = {
|
|
400
400
|
fn: Rr,
|
401
401
|
data: {}
|
402
402
|
};
|
403
|
-
var
|
403
|
+
var xe = {
|
404
404
|
passive: !0
|
405
405
|
};
|
406
406
|
function jr(e) {
|
407
407
|
var t = e.state, r = e.instance, n = e.options, o = n.scroll, f = o === void 0 ? !0 : o, p = n.resize, s = p === void 0 ? !0 : p, a = H(t.elements.popper), c = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
408
408
|
return f && c.forEach(function(l) {
|
409
|
-
l.addEventListener("scroll", r.update,
|
410
|
-
}), s && a.addEventListener("resize", r.update,
|
409
|
+
l.addEventListener("scroll", r.update, xe);
|
410
|
+
}), s && a.addEventListener("resize", r.update, xe), function() {
|
411
411
|
f && c.forEach(function(l) {
|
412
|
-
l.removeEventListener("scroll", r.update,
|
413
|
-
}), s && a.removeEventListener("resize", r.update,
|
412
|
+
l.removeEventListener("scroll", r.update, xe);
|
413
|
+
}), s && a.removeEventListener("resize", r.update, xe);
|
414
414
|
};
|
415
415
|
}
|
416
416
|
const Ar = {
|
@@ -568,11 +568,11 @@ function Pt(e) {
|
|
568
568
|
}
|
569
569
|
function me(e, t) {
|
570
570
|
t === void 0 && (t = {});
|
571
|
-
var r = t, n = r.placement, o = n === void 0 ? e.placement : n, f = r.strategy, p = f === void 0 ? e.strategy : f, s = r.boundary, a = s === void 0 ? tr : s, c = r.rootBoundary, l = c === void 0 ? ht : c, d = r.elementContext, g = d === void 0 ? le : d, m = r.altBoundary, O = m === void 0 ? !1 : m, v = r.padding, y = v === void 0 ? 0 : v, E =
|
571
|
+
var r = t, n = r.placement, o = n === void 0 ? e.placement : n, f = r.strategy, p = f === void 0 ? e.strategy : f, s = r.boundary, a = s === void 0 ? tr : s, c = r.rootBoundary, l = c === void 0 ? ht : c, d = r.elementContext, g = d === void 0 ? le : d, m = r.altBoundary, O = m === void 0 ? !1 : m, v = r.padding, y = v === void 0 ? 0 : v, E = xt(typeof y != "number" ? y : Ot(y, he)), T = g === le ? rr : le, w = e.rects.popper, u = e.elements[O ? T : g], h = Br(te(u) ? u : u.contextElement || K(e.elements.popper), a, l, p), b = ie(e.elements.reference), x = Pt({
|
572
572
|
reference: b,
|
573
|
-
element:
|
573
|
+
element: w,
|
574
574
|
placement: o
|
575
|
-
}), C = We(Object.assign({},
|
575
|
+
}), C = We(Object.assign({}, w, x)), P = g === le ? C : b, A = {
|
576
576
|
top: h.top - P.top + E.top,
|
577
577
|
bottom: P.bottom - h.bottom + E.bottom,
|
578
578
|
left: h.left - P.left + E.left,
|
@@ -616,7 +616,7 @@ function Lr(e) {
|
|
616
616
|
function Nr(e) {
|
617
617
|
var t = e.state, r = e.options, n = e.name;
|
618
618
|
if (!t.modifiersData[n]._skip) {
|
619
|
-
for (var o = r.mainAxis, f = o === void 0 ? !0 : o, p = r.altAxis, s = p === void 0 ? !0 : p, a = r.fallbackPlacements, c = r.padding, l = r.boundary, d = r.rootBoundary, g = r.altBoundary, m = r.flipVariations, O = m === void 0 ? !0 : m, v = r.allowedAutoPlacements, y = t.options.placement, E = _(y), T = E === y,
|
619
|
+
for (var o = r.mainAxis, f = o === void 0 ? !0 : o, p = r.altAxis, s = p === void 0 ? !0 : p, a = r.fallbackPlacements, c = r.padding, l = r.boundary, d = r.rootBoundary, g = r.altBoundary, m = r.flipVariations, O = m === void 0 ? !0 : m, v = r.allowedAutoPlacements, y = t.options.placement, E = _(y), T = E === y, w = a || (T || !O ? [Oe(y)] : Lr(y)), u = [y].concat(w).reduce(function(re, G) {
|
620
620
|
return re.concat(_(G) === Ne ? Wr(t, {
|
621
621
|
placement: G,
|
622
622
|
boundary: l,
|
@@ -625,7 +625,7 @@ function Nr(e) {
|
|
625
625
|
flipVariations: O,
|
626
626
|
allowedAutoPlacements: v
|
627
627
|
}) : G);
|
628
|
-
}, []), h = t.rects.reference, b = t.rects.popper,
|
628
|
+
}, []), h = t.rects.reference, b = t.rects.popper, x = /* @__PURE__ */ new Map(), C = !0, P = u[0], A = 0; A < u.length; A++) {
|
629
629
|
var M = u[A], W = _(M), k = ae(M) === ne, F = [L, I].indexOf(W) >= 0, R = F ? "width" : "height", j = me(t, {
|
630
630
|
placement: M,
|
631
631
|
boundary: l,
|
@@ -641,12 +641,12 @@ function Nr(e) {
|
|
641
641
|
P = M, C = !1;
|
642
642
|
break;
|
643
643
|
}
|
644
|
-
|
644
|
+
x.set(M, B);
|
645
645
|
}
|
646
646
|
if (C)
|
647
647
|
for (var q = O ? 3 : 1, De = function(G) {
|
648
648
|
var fe = u.find(function(be) {
|
649
|
-
var Q =
|
649
|
+
var Q = x.get(be);
|
650
650
|
if (Q)
|
651
651
|
return Q.slice(0, G).every(function(Ce) {
|
652
652
|
return Ce;
|
@@ -759,7 +759,7 @@ function Yr(e) {
|
|
759
759
|
rootBoundary: c,
|
760
760
|
padding: d,
|
761
761
|
altBoundary: l
|
762
|
-
}), E = _(t.placement), T = ae(t.placement),
|
762
|
+
}), E = _(t.placement), T = ae(t.placement), w = !T, u = Ie(E), h = zr(u), b = t.modifiersData.popperOffsets, x = t.rects.reference, C = t.rects.popper, P = typeof v == "function" ? v(Object.assign({}, t.rects, {
|
763
763
|
placement: t.placement
|
764
764
|
})) : v, A = typeof P == "number" ? {
|
765
765
|
mainAxis: P,
|
@@ -773,14 +773,14 @@ function Yr(e) {
|
|
773
773
|
};
|
774
774
|
if (b) {
|
775
775
|
if (f) {
|
776
|
-
var k, F = u === "y" ? L : N, R = u === "y" ? I : U, j = u === "y" ? "height" : "width", $ = b[u], S = $ + y[F], B = $ - y[R], q = m ? -C[j] / 2 : 0, De = T === ne ?
|
776
|
+
var k, F = u === "y" ? L : N, R = u === "y" ? I : U, j = u === "y" ? "height" : "width", $ = b[u], S = $ + y[F], B = $ - y[R], q = m ? -C[j] / 2 : 0, De = T === ne ? x[j] : C[j], se = T === ne ? -C[j] : -x[j], ye = t.elements.arrow, re = m && ye ? Ve(ye) : {
|
777
777
|
width: 0,
|
778
778
|
height: 0
|
779
|
-
}, G = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding :
|
779
|
+
}, G = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : wt(), fe = G[F], be = G[R], Q = ce(0, x[j], re[j]), Ce = w ? x[j] / 2 - q - Q - fe - A.mainAxis : De - Q - fe - A.mainAxis, jt = w ? -x[j] / 2 + q + Q + be + A.mainAxis : se + Q + be + A.mainAxis, $e = t.elements.arrow && ge(t.elements.arrow), At = $e ? u === "y" ? $e.clientTop || 0 : $e.clientLeft || 0 : 0, _e = (k = M == null ? void 0 : M[u]) != null ? k : 0, Dt = $ + Ce - _e - At, Ct = $ + jt - _e, Xe = ce(m ? Pe(S, Dt) : S, $, m ? ee(B, Ct) : B);
|
780
780
|
b[u] = Xe, W[u] = Xe - $;
|
781
781
|
}
|
782
782
|
if (s) {
|
783
|
-
var ze, $t = u === "x" ? L : N, Mt = u === "x" ? I : U, Z = b[h],
|
783
|
+
var ze, $t = u === "x" ? L : N, Mt = u === "x" ? I : U, Z = b[h], we = h === "y" ? "height" : "width", Ye = Z + y[$t], Ge = Z - y[Mt], Me = [L, N].indexOf(E) !== -1, Je = (ze = M == null ? void 0 : M[h]) != null ? ze : 0, Ke = Me ? Ye : Z - x[we] - C[we] - Je + A.altAxis, Qe = Me ? Z + x[we] + C[we] - Je - A.altAxis : Ge, Ze = m && Me ? yr(Ke, Z, Qe) : ce(m ? Ke : Ye, Z, m ? Qe : Ge);
|
784
784
|
b[h] = Ze, W[h] = Ze - Z;
|
785
785
|
}
|
786
786
|
t.modifiersData[n] = W;
|
@@ -908,8 +908,8 @@ function on(e) {
|
|
908
908
|
reference: te(s) ? ue(s) : s.contextElement ? ue(s.contextElement) : [],
|
909
909
|
popper: ue(a)
|
910
910
|
};
|
911
|
-
var
|
912
|
-
return l.orderedModifiers =
|
911
|
+
var w = tn(nn([].concat(n, l.options.modifiers)));
|
912
|
+
return l.orderedModifiers = w.filter(function(u) {
|
913
913
|
return u.enabled;
|
914
914
|
}), O(), m.update();
|
915
915
|
},
|
@@ -920,11 +920,11 @@ function on(e) {
|
|
920
920
|
// prefer the async Popper#update method
|
921
921
|
forceUpdate: function() {
|
922
922
|
if (!g) {
|
923
|
-
var E = l.elements, T = E.reference,
|
924
|
-
if (vt(T,
|
923
|
+
var E = l.elements, T = E.reference, w = E.popper;
|
924
|
+
if (vt(T, w)) {
|
925
925
|
l.rects = {
|
926
|
-
reference: Zr(T, ge(
|
927
|
-
popper: Ve(
|
926
|
+
reference: Zr(T, ge(w), l.options.strategy === "fixed"),
|
927
|
+
popper: Ve(w)
|
928
928
|
}, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(A) {
|
929
929
|
return l.modifiersData[A.name] = Object.assign({}, A.data);
|
930
930
|
});
|
@@ -933,7 +933,7 @@ function on(e) {
|
|
933
933
|
l.reset = !1, u = -1;
|
934
934
|
continue;
|
935
935
|
}
|
936
|
-
var h = l.orderedModifiers[u], b = h.fn,
|
936
|
+
var h = l.orderedModifiers[u], b = h.fn, x = h.options, C = x === void 0 ? {} : x, P = h.name;
|
937
937
|
typeof b == "function" && (l = b({
|
938
938
|
state: l,
|
939
939
|
options: C,
|
@@ -962,13 +962,13 @@ function on(e) {
|
|
962
962
|
});
|
963
963
|
function O() {
|
964
964
|
l.orderedModifiers.forEach(function(y) {
|
965
|
-
var E = y.name, T = y.options,
|
965
|
+
var E = y.name, T = y.options, w = T === void 0 ? {} : T, u = y.effect;
|
966
966
|
if (typeof u == "function") {
|
967
967
|
var h = u({
|
968
968
|
state: l,
|
969
969
|
name: E,
|
970
970
|
instance: m,
|
971
|
-
options:
|
971
|
+
options: w
|
972
972
|
}), b = function() {
|
973
973
|
};
|
974
974
|
d.push(h || b);
|
@@ -987,7 +987,7 @@ var an = [Ar, Xr, Tr, mr, Fr, Hr, Gr, Or, Ir], sn = /* @__PURE__ */ on({
|
|
987
987
|
defaultModifiers: an
|
988
988
|
});
|
989
989
|
function fn(e) {
|
990
|
-
return
|
990
|
+
return Wt("MuiPopper", e);
|
991
991
|
}
|
992
992
|
Lt("MuiPopper", ["root"]);
|
993
993
|
const pn = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"], ln = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
|
@@ -1020,7 +1020,7 @@ const dn = (e) => {
|
|
1020
1020
|
const {
|
1021
1021
|
classes: t
|
1022
1022
|
} = e;
|
1023
|
-
return
|
1023
|
+
return Nt({
|
1024
1024
|
root: ["root"]
|
1025
1025
|
}, fn, t);
|
1026
1026
|
}, vn = {}, mn = /* @__PURE__ */ D.forwardRef(function(t, r) {
|
@@ -1040,13 +1040,13 @@ const dn = (e) => {
|
|
1040
1040
|
TransitionProps: v
|
1041
1041
|
// @ts-ignore internal logic
|
1042
1042
|
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
1043
|
-
} = t, y = Te(t, pn), E = D.useRef(null), T = Se(E, r),
|
1043
|
+
} = t, y = Te(t, pn), E = D.useRef(null), T = Se(E, r), w = D.useRef(null), u = Se(w, g), h = D.useRef(u);
|
1044
1044
|
tt(() => {
|
1045
1045
|
h.current = u;
|
1046
|
-
}, [u]), D.useImperativeHandle(g, () =>
|
1047
|
-
const b = cn(l, p), [
|
1046
|
+
}, [u]), D.useImperativeHandle(g, () => w.current, []);
|
1047
|
+
const b = cn(l, p), [x, C] = D.useState(b), [P, A] = D.useState(Re(o));
|
1048
1048
|
D.useEffect(() => {
|
1049
|
-
|
1049
|
+
w.current && w.current.forceUpdate();
|
1050
1050
|
}), D.useEffect(() => {
|
1051
1051
|
o && A(Re(o));
|
1052
1052
|
}, [o]), tt(() => {
|
@@ -1090,10 +1090,10 @@ const dn = (e) => {
|
|
1090
1090
|
};
|
1091
1091
|
}, [P, s, a, c, d, b]);
|
1092
1092
|
const M = {
|
1093
|
-
placement:
|
1093
|
+
placement: x
|
1094
1094
|
};
|
1095
1095
|
v !== null && (M.TransitionProps = v);
|
1096
|
-
const W = dn(t), k = (n = O.root) != null ? n : "div", F =
|
1096
|
+
const W = dn(t), k = (n = O.root) != null ? n : "div", F = Ut({
|
1097
1097
|
elementType: k,
|
1098
1098
|
externalSlotProps: m.root,
|
1099
1099
|
externalForwardedProps: y,
|
@@ -1124,35 +1124,35 @@ const dn = (e) => {
|
|
1124
1124
|
transition: v = !1,
|
1125
1125
|
slotProps: y = {},
|
1126
1126
|
slots: E = {}
|
1127
|
-
} = t, T = Te(t, ln), [
|
1127
|
+
} = t, T = Te(t, ln), [w, u] = D.useState(!0), h = () => {
|
1128
1128
|
u(!1);
|
1129
1129
|
}, b = () => {
|
1130
1130
|
u(!0);
|
1131
1131
|
};
|
1132
|
-
if (!a && !l && (!v ||
|
1132
|
+
if (!a && !l && (!v || w))
|
1133
1133
|
return null;
|
1134
|
-
let
|
1134
|
+
let x;
|
1135
1135
|
if (f)
|
1136
|
-
|
1136
|
+
x = f;
|
1137
1137
|
else if (n) {
|
1138
1138
|
const A = Re(n);
|
1139
|
-
|
1139
|
+
x = A && Ae(A) ? et(A).body : et(null).body;
|
1140
1140
|
}
|
1141
|
-
const C = !l && a && (!v ||
|
1141
|
+
const C = !l && a && (!v || w) ? "none" : void 0, P = v ? {
|
1142
1142
|
in: l,
|
1143
1143
|
onEnter: h,
|
1144
1144
|
onExited: b
|
1145
1145
|
} : void 0;
|
1146
|
-
return /* @__PURE__ */ de(
|
1146
|
+
return /* @__PURE__ */ de(It, {
|
1147
1147
|
disablePortal: s,
|
1148
|
-
container:
|
1148
|
+
container: x,
|
1149
1149
|
children: /* @__PURE__ */ de(mn, z({
|
1150
1150
|
anchorEl: n,
|
1151
1151
|
direction: p,
|
1152
1152
|
disablePortal: s,
|
1153
1153
|
modifiers: c,
|
1154
1154
|
ref: r,
|
1155
|
-
open: v ? !
|
1155
|
+
open: v ? !w : l,
|
1156
1156
|
placement: d,
|
1157
1157
|
popperOptions: g,
|
1158
1158
|
popperRef: m,
|
@@ -1183,7 +1183,7 @@ J.env.NODE_ENV !== "production" && (Rt.propTypes = {
|
|
1183
1183
|
* It's used to set the position of the popper.
|
1184
1184
|
* The return value will passed as the reference object of the Popper instance.
|
1185
1185
|
*/
|
1186
|
-
anchorEl:
|
1186
|
+
anchorEl: qt(i.oneOfType([Ee, i.object, i.func]), (e) => {
|
1187
1187
|
if (e.open) {
|
1188
1188
|
const t = Re(e.anchorEl);
|
1189
1189
|
if (t && Ae(t) && t.nodeType === 1) {
|
@@ -1293,13 +1293,13 @@ J.env.NODE_ENV !== "production" && (Rt.propTypes = {
|
|
1293
1293
|
*/
|
1294
1294
|
transition: i.bool
|
1295
1295
|
});
|
1296
|
-
const hn = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"], gn =
|
1296
|
+
const hn = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"], gn = Vt(Rt, {
|
1297
1297
|
name: "MuiPopper",
|
1298
1298
|
slot: "Root",
|
1299
1299
|
overridesResolver: (e, t) => t.root
|
1300
1300
|
})({}), yn = /* @__PURE__ */ D.forwardRef(function(t, r) {
|
1301
1301
|
var n;
|
1302
|
-
const o = er(), f =
|
1302
|
+
const o = er(), f = Ht({
|
1303
1303
|
props: t,
|
1304
1304
|
name: "MuiPopper"
|
1305
1305
|
}), {
|
@@ -1316,9 +1316,9 @@ const hn = ["anchorEl", "component", "components", "componentsProps", "container
|
|
1316
1316
|
popperOptions: y,
|
1317
1317
|
popperRef: E,
|
1318
1318
|
transition: T,
|
1319
|
-
slots:
|
1319
|
+
slots: w,
|
1320
1320
|
slotProps: u
|
1321
|
-
} = f, h = Te(f, hn), b = (n =
|
1321
|
+
} = f, h = Te(f, hn), b = (n = w == null ? void 0 : w.root) != null ? n : a == null ? void 0 : a.Root, x = z({
|
1322
1322
|
anchorEl: p,
|
1323
1323
|
container: l,
|
1324
1324
|
disablePortal: d,
|
@@ -1337,7 +1337,7 @@ const hn = ["anchorEl", "component", "components", "componentsProps", "container
|
|
1337
1337
|
root: b
|
1338
1338
|
},
|
1339
1339
|
slotProps: u ?? c
|
1340
|
-
},
|
1340
|
+
}, x, {
|
1341
1341
|
ref: r
|
1342
1342
|
}));
|
1343
1343
|
});
|
@@ -1472,7 +1472,7 @@ const bn = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "
|
|
1472
1472
|
function Le(e) {
|
1473
1473
|
return `scale(${e}, ${e ** 2})`;
|
1474
1474
|
}
|
1475
|
-
const
|
1475
|
+
const wn = {
|
1476
1476
|
entering: {
|
1477
1477
|
opacity: 1,
|
1478
1478
|
transform: Le(1)
|
@@ -1498,12 +1498,12 @@ const xn = {
|
|
1498
1498
|
timeout: v = "auto",
|
1499
1499
|
// eslint-disable-next-line react/prop-types
|
1500
1500
|
TransitionComponent: y = Ft
|
1501
|
-
} = t, E = Te(t, bn), T = _t(),
|
1501
|
+
} = t, E = Te(t, bn), T = _t(), w = D.useRef(), u = Xt(), h = D.useRef(null), b = Se(h, zt(f), r), x = (R) => (j) => {
|
1502
1502
|
if (R) {
|
1503
1503
|
const $ = h.current;
|
1504
1504
|
j === void 0 ? R($) : R($, j);
|
1505
1505
|
}
|
1506
|
-
}, C =
|
1506
|
+
}, C = x(l), P = x((R, j) => {
|
1507
1507
|
Yt(R);
|
1508
1508
|
const {
|
1509
1509
|
duration: $,
|
@@ -1517,7 +1517,7 @@ const xn = {
|
|
1517
1517
|
mode: "enter"
|
1518
1518
|
});
|
1519
1519
|
let q;
|
1520
|
-
v === "auto" ? (q = u.transitions.getAutoHeightDuration(R.clientHeight),
|
1520
|
+
v === "auto" ? (q = u.transitions.getAutoHeightDuration(R.clientHeight), w.current = q) : q = $, R.style.transition = [u.transitions.create("opacity", {
|
1521
1521
|
duration: q,
|
1522
1522
|
delay: S
|
1523
1523
|
}), u.transitions.create("transform", {
|
@@ -1525,7 +1525,7 @@ const xn = {
|
|
1525
1525
|
delay: S,
|
1526
1526
|
easing: B
|
1527
1527
|
})].join(","), a && a(R, j);
|
1528
|
-
}), A =
|
1528
|
+
}), A = x(c), M = x(m), W = x((R) => {
|
1529
1529
|
const {
|
1530
1530
|
duration: j,
|
1531
1531
|
delay: $,
|
@@ -1538,7 +1538,7 @@ const xn = {
|
|
1538
1538
|
mode: "exit"
|
1539
1539
|
});
|
1540
1540
|
let B;
|
1541
|
-
v === "auto" ? (B = u.transitions.getAutoHeightDuration(R.clientHeight),
|
1541
|
+
v === "auto" ? (B = u.transitions.getAutoHeightDuration(R.clientHeight), w.current = B) : B = j, R.style.transition = [u.transitions.create("opacity", {
|
1542
1542
|
duration: B,
|
1543
1543
|
delay: $
|
1544
1544
|
}), u.transitions.create("transform", {
|
@@ -1546,7 +1546,7 @@ const xn = {
|
|
1546
1546
|
delay: ke ? $ : $ || B * 0.333,
|
1547
1547
|
easing: S
|
1548
1548
|
})].join(","), R.style.opacity = 0, R.style.transform = Le(0.75), d && d(R);
|
1549
|
-
}), k =
|
1549
|
+
}), k = x(g);
|
1550
1550
|
return /* @__PURE__ */ de(y, z({
|
1551
1551
|
appear: o,
|
1552
1552
|
in: s,
|
@@ -1558,7 +1558,7 @@ const xn = {
|
|
1558
1558
|
onExited: k,
|
1559
1559
|
onExiting: M,
|
1560
1560
|
addEndListener: (R) => {
|
1561
|
-
v === "auto" && T.start(
|
1561
|
+
v === "auto" && T.start(w.current || 0, R), n && n(h.current, R);
|
1562
1562
|
},
|
1563
1563
|
timeout: v === "auto" ? null : v
|
1564
1564
|
}, E, {
|
@@ -1567,7 +1567,7 @@ const xn = {
|
|
1567
1567
|
opacity: 0,
|
1568
1568
|
transform: Le(0.75),
|
1569
1569
|
visibility: R === "exited" && !s ? "hidden" : void 0
|
1570
|
-
},
|
1570
|
+
}, wn[R], O, f.props.style),
|
1571
1571
|
ref: b
|
1572
1572
|
}, j))
|
1573
1573
|
}));
|
@@ -1,17 +1,16 @@
|
|
1
1
|
import { jsxs as b, jsx as t, Fragment as k } from "react/jsx-runtime";
|
2
|
-
import { u as s } from "./index-
|
3
|
-
import { useState as
|
4
|
-
import { u as j, i as
|
5
|
-
import { useAccount as
|
2
|
+
import { u as s, S as W } from "./index-Bxxa78XW.js";
|
3
|
+
import { useState as S, useRef as x } from "react";
|
4
|
+
import { u as j, i as I, W as D, F, f as p, c as u, z as R } from "./useRegisterError-C7rm81XT.js";
|
5
|
+
import { useAccount as T, useBalance as A } from "wagmi";
|
6
6
|
import "@dynamic-labs/sdk-react-core";
|
7
|
-
import { c as
|
8
|
-
import { a as G } from "./shareicon-CLveBf8l.js";
|
7
|
+
import { c as B, r as G } from "./index-0aVGx_Hc.js";
|
9
8
|
function H({ amount: w, setAmount: l, fetchBalance: M, getCoinBalance: h, isBalanceLoading: f }) {
|
10
9
|
var d, o;
|
11
|
-
const n = s((a) => a.configuration), e = s((a) => a.fromCoin), r = s((a) => a.fromChain), { isAnyWalletConnected: g } = j({ chainData: r }), [$,
|
12
|
-
|
10
|
+
const n = s((a) => a.configuration), e = s((a) => a.fromCoin), r = s((a) => a.fromChain), { isAnyWalletConnected: g } = j({ chainData: r }), [$, z] = S(40), { address: N } = T(), v = x(), { defaultCoin: y } = I;
|
11
|
+
A({
|
13
12
|
address: N,
|
14
|
-
token:
|
13
|
+
token: B((e == null ? void 0 : e.address) || ""),
|
15
14
|
chainId: Number((r == null ? void 0 : r.chainId) || 0),
|
16
15
|
enabled: (r == null ? void 0 : r.networkType) == "evm"
|
17
16
|
});
|
@@ -59,7 +58,7 @@ function H({ amount: w, setAmount: l, fetchBalance: M, getCoinBalance: h, isBala
|
|
59
58
|
m.length <= 11 && l(m);
|
60
59
|
},
|
61
60
|
onKeyDown: (a) => {
|
62
|
-
|
61
|
+
G(a);
|
63
62
|
},
|
64
63
|
placeholder: "0.0",
|
65
64
|
className: "bw-text-3xl bw-border-none focus:bw-placeholder:bw-opacity-0 placeholder:bw-text-left bw-h-[36px] bw-ml-auto bw-mb-1 bw-pl-1 bw-min-w-[45px] bw-max-w-[200px] bw-font-medium placeholder:bw-text-text-placeholder bw-text-text-primary bw-bg-transparent"
|
@@ -68,10 +67,10 @@ function H({ amount: w, setAmount: l, fetchBalance: M, getCoinBalance: h, isBala
|
|
68
67
|
] })
|
69
68
|
}
|
70
69
|
),
|
71
|
-
/* @__PURE__ */ t("div", { children: e.coin.length && g ? f ? /* @__PURE__ */ t(
|
72
|
-
/* @__PURE__ */ t(
|
70
|
+
/* @__PURE__ */ t("div", { children: e.coin.length && g ? f ? /* @__PURE__ */ t(W, { className: "bw-bg-background-loaderbar bw-rounded-md bw-h-[18px] bw-w-[100px]" }) : /* @__PURE__ */ b("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
71
|
+
/* @__PURE__ */ t(D, { fill: "var(--tw-text-secondary)" }),
|
73
72
|
/* @__PURE__ */ t("p", { className: "bw-text-xs bw-font-medium bw-text-text-secondary", children: /* @__PURE__ */ t(
|
74
|
-
|
73
|
+
F,
|
75
74
|
{
|
76
75
|
value: p(c),
|
77
76
|
options: {
|
@@ -94,7 +93,7 @@ function H({ amount: w, setAmount: l, fetchBalance: M, getCoinBalance: h, isBala
|
|
94
93
|
] }),
|
95
94
|
/* @__PURE__ */ t("div", { className: "bw-flex bw-justify-between bw-items-center", children: /* @__PURE__ */ t("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: /* @__PURE__ */ b("p", { className: ` bw-font-normal bw-pl-2 ${w.length ? "bw-text-text-secondary bw-text-sm" : "bw-text-text-placeholder bw-text-[10px]"}`, children: [
|
96
95
|
"$",
|
97
|
-
u(
|
96
|
+
u(R(w * (e == null ? void 0 : e.lastPrice)), 10)
|
98
97
|
] }) }) })
|
99
98
|
]
|
100
99
|
}
|
@@ -1,14 +1,13 @@
|
|
1
1
|
import { jsx as e, jsxs as w, Fragment as m } from "react/jsx-runtime";
|
2
2
|
import { t as we } from "./truncate-D9t92mVX.js";
|
3
|
-
import { u as r, l as te } from "./index-
|
3
|
+
import { u as r, S as o, l as te } from "./index-Bxxa78XW.js";
|
4
4
|
import { useState as ie, useEffect as le } from "react";
|
5
5
|
import { s } from "./WidgetForm.module-QHJ0-m5f.js";
|
6
6
|
import { G as ce, C as de, S as me } from "./clockIcon-C2W5xvyt.js";
|
7
|
-
import { S as re } from "./down-
|
7
|
+
import { S as re } from "./down-BtVvHOzf.js";
|
8
8
|
import { e as ae } from "./ethertousd-CC_ezooz.js";
|
9
|
-
import { O as H } from "./index-
|
10
|
-
import {
|
11
|
-
import { a as o } from "./shareicon-CLveBf8l.js";
|
9
|
+
import { O as H } from "./index-BA8XYZpF.js";
|
10
|
+
import { z as se, F as J, i as oe } from "./useRegisterError-C7rm81XT.js";
|
12
11
|
function xe({ fill: n }) {
|
13
12
|
return /* @__PURE__ */ e(
|
14
13
|
"svg",
|
@@ -29,7 +28,7 @@ function xe({ fill: n }) {
|
|
29
28
|
}
|
30
29
|
);
|
31
30
|
}
|
32
|
-
function
|
31
|
+
function ke({ routes: n, handleShowAllRoutes: K, routesData: b, price: Q, amount: X, isRoutesEnabled: v }) {
|
33
32
|
var y, N, F, u, S, k, C, $, E, j, I, L, U, A, G, O, T, z, M, R, _, B, V, q, W, P;
|
34
33
|
const x = n.data, [c, Y] = ie(), l = r((i) => i.gradient), t = r((i) => i.configuration), h = r((i) => i.fromChain), g = r((i) => i.fromCoin), p = r((i) => i.toChain), d = r((i) => i.toCoin), { defaultCoin: D } = oe;
|
35
34
|
le(() => {
|
@@ -122,5 +121,5 @@ function Ce({ routes: n, handleShowAllRoutes: K, routesData: b, price: Q, amount
|
|
122
121
|
] }) : v ? /* @__PURE__ */ e("div", { className: "bw-bg-background-container bw-text-text-secondary bw-justify-center bw-items-center bw-h-[80px] bw-relative bw-flex bw-flex-col bw-border bw-border-border-primary", children: "Failed to load routes" }) : /* @__PURE__ */ e(m, {}) : /* @__PURE__ */ e(m, {}) });
|
123
122
|
}
|
124
123
|
export {
|
125
|
-
|
124
|
+
ke as default
|
126
125
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsxs as w, jsx as t, Fragment as d } from "react/jsx-runtime";
|
2
2
|
import { s as o } from "./WidgetForm.module-QHJ0-m5f.js";
|
3
|
-
import { u as l, l as c } from "./index-
|
3
|
+
import { u as l, l as c } from "./index-Bxxa78XW.js";
|
4
4
|
function f({ routesData: i, routes: a, quoteTimer: n }) {
|
5
5
|
var b;
|
6
6
|
const r = l((s) => s.configuration), e = l((s) => s.gradient);
|