@blockend/widget 1.0.39 → 1.0.41
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-qDXVEBq_.js → AllRoutes-QrZ7pQLj.js} +17 -17
- package/dist/{Box-DkvAdVmJ.js → Box-DSFgexHP.js} +1 -1
- package/dist/{EstGas-CwWMUtsV.js → EstGas-Cfyys8c-.js} +54 -224
- package/dist/{Grow-w3xFin50.js → Grow-5d7ST43Z.js} +2 -2
- package/dist/{InputComp-DRGHX0JB.js → InputComp-CnUyfHBk.js} +6 -6
- package/dist/{LoadRoute-Dgxq32oV.js → LoadRoute-BcCbw9It.js} +39 -39
- package/dist/{QuotesProgress-mMpawJHx.js → QuotesProgress-DzZhqliF.js} +1 -1
- package/dist/{SwapAsset-Cm3PfEdc.js → SwapAsset-D5NIoW3H.js} +4 -17
- package/dist/{Tooltip-BQd46Vx1.js → Tooltip-DX--M-2s.js} +3 -3
- package/dist/{TxnButton-C7D4coqw.js → TxnButton-oruKvtpk.js} +19 -19
- package/dist/{add-DJRptrWn.js → add-BBfsffzS.js} +1 -1
- package/dist/{all-wallets-BEwoK0hI.js → all-wallets-GSM-S2EY.js} +1 -1
- package/dist/{app-store-BO2d_fOI.js → app-store-DeN1wZ28.js} +1 -1
- package/dist/{apple-D4_HcFag.js → apple-f0rhDBWf.js} +1 -1
- package/dist/{arrow-bottom-zyNIGfu0.js → arrow-bottom-ClXTWJiE.js} +1 -1
- package/dist/{arrow-bottom-circle-Czbe973X.js → arrow-bottom-circle-B2bkO_jM.js} +1 -1
- package/dist/{arrow-left-2Hi0GW--.js → arrow-left-D5fs189Z.js} +1 -1
- package/dist/{arrow-right-DsstxcUl.js → arrow-right-CZH_01OV.js} +1 -1
- package/dist/{arrow-top-Dne06L8p.js → arrow-top-DOKGpBV5.js} +1 -1
- package/dist/{bank-BmHmaR1d.js → bank-Ci1bIrxU.js} +1 -1
- package/dist/{basic-Bhds2Wiy.js → basic-CBd897q3.js} +3 -3
- package/dist/{browser-CjYfBUW5.js → browser-DPEFcFPn.js} +1 -1
- package/dist/{card-Bi7Hbsfs.js → card-BrTdcKSB.js} +1 -1
- package/dist/{ccip-B-yKJCDq.js → ccip-DvQaBUxu.js} +1 -1
- package/dist/{checkmark-zC82vmPx.js → checkmark-B_2wOwp3.js} +1 -1
- package/dist/{checkmark-bold-CcJ3JQev.js → checkmark-bold-UKTXTe3X.js} +1 -1
- package/dist/{chevron-bottom-mKbX_tpu.js → chevron-bottom-C4i9UknS.js} +1 -1
- package/dist/{chevron-left-CfsLd6Kh.js → chevron-left-CEQSGR4I.js} +1 -1
- package/dist/{chevron-right-Cis0mx_w.js → chevron-right-DPaIl5bS.js} +1 -1
- package/dist/{chevron-top-BZ7z4zOm.js → chevron-top-EO3i_g8u.js} +1 -1
- package/dist/{chrome-store-xJbsiNft.js → chrome-store-WaI848dE.js} +1 -1
- package/dist/{clock-BST36xyV.js → clock-D6S6VuYv.js} +1 -1
- package/dist/{close-CUnRl6rj.js → close-Dyuh-pfe.js} +1 -1
- package/dist/{coinPlaceholder-eRYldXBb.js → coinPlaceholder-DPiN3u1C.js} +1 -1
- package/dist/{compass-B53Amzmz.js → compass-Caeab2lN.js} +1 -1
- package/dist/{copy-CeMF3vNH.js → copy-CXjVowLP.js} +1 -1
- package/dist/{core-Ba7AWU2F.js → core-D4HnN6eG.js} +3 -3
- package/dist/{cursor-BXkX3Iej.js → cursor-BiavFYeB.js} +1 -1
- package/dist/{cursor-transparent-vN3U0Y44.js → cursor-transparent-C-o5nPnW.js} +1 -1
- package/dist/{desktop-CQcrUlG2.js → desktop-cftg6BMC.js} +1 -1
- package/dist/{disconnect-DqjgPdZy.js → disconnect-CBVHZmy5.js} +1 -1
- package/dist/{discord-CAeZvfjm.js → discord-DL5vSQIe.js} +1 -1
- package/dist/{down-C7Cxaule.js → down-CSXSe02P.js} +4 -4
- package/dist/{etherscan-BepqbIgx.js → etherscan-B0ZqMrl5.js} +1 -1
- package/dist/{exclamation-triangle-BQlxBTQb.js → exclamation-triangle-DMJwxev5.js} +1 -1
- package/dist/{extension-DNJRGdDb.js → extension-Cw3kEP0F.js} +1 -1
- package/dist/{external-link-CvRsvpXe.js → external-link-D2k06cXi.js} +1 -1
- package/dist/{facebook-C_xJkTY_.js → facebook-BFQhh4JT.js} +1 -1
- package/dist/{farcaster-BmW5dRUe.js → farcaster-CTkrWMPV.js} +1 -1
- package/dist/{filters-BC3dndy5.js → filters-BNRidIfb.js} +1 -1
- package/dist/{getChainIds-rz0R4QLM.js → getChainIds-dbxa6OPC.js} +2 -2
- package/dist/{getCosmosAddress-DwtEOPre.js → getCosmosAddress-VGyJ48hD.js} +2 -2
- package/dist/{github-SFKWAQKv.js → github-BSvlr7uB.js} +1 -1
- package/dist/{google-CTJCrgwS.js → google-b7Ou74GO.js} +1 -1
- package/dist/{hamburger-Bz6xyfny.js → hamburger-adHT75Tv.js} +5 -5
- package/dist/{help-circle-tDDI6xDF.js → help-circle-DVVgUa0A.js} +1 -1
- package/dist/{id-HUj92mdR.js → id-C1VTodFX.js} +1 -1
- package/dist/{image-kh61TiAZ.js → image-oiGiQrkv.js} +1 -1
- package/dist/{index-MSX0Gdx1.js → index-B9Yj3lNG.js} +1724 -1725
- package/dist/{index-u7LhDe5x.js → index-BDSA6Vmh.js} +78 -78
- package/dist/{index-BIrmH9KU.js → index-Cce3Jr06.js} +6 -6
- package/dist/{index-COJO0042.js → index-CxnNzJCI.js} +116 -142
- package/dist/{index-CzOzce-R.js → index-D35_epCA.js} +1 -1
- package/dist/{index-C59cU9Oj.js → index-DFOB2nyL.js} +2 -2
- package/dist/{index-Bp8YmQ0W.js → index-DZx5rYk6.js} +1 -1
- package/dist/{index-CbrDck1Q.js → index-Dtl4ODqT.js} +396 -396
- package/dist/{index-DRvmXt-Y.js → index-Qvs-AUhn.js} +41 -87
- package/dist/{index-DgfOGyG9.js → index-uv8Q24to.js} +43 -109
- package/dist/{index-51ZOYWe6.js → index-vsTy-v7A.js} +22 -58
- package/dist/{index.es-BVl6m7Pn.js → index.es-oVEjdXD9.js} +2 -2
- package/dist/{index.es-CVMqdfN3.js → index.es-ufjHqxj5.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{info-CqS3XBRw.js → info-CVKjuEYq.js} +1 -1
- package/dist/{info-circle-rygiOkU3.js → info-circle-D_MX3SA4.js} +1 -1
- package/dist/{lightbulb-CKEjyRaf.js → lightbulb-xAPRcMv4.js} +1 -1
- package/dist/{mail-BWMwauvE.js → mail-D4ovKCpV.js} +1 -1
- package/dist/{mobile-68osTp4b.js → mobile-BW9ciV-w.js} +1 -1
- package/dist/{more-BC8GE3IW.js → more-DVJG6d4w.js} +1 -1
- package/dist/{network-placeholder--GIoATy6.js → network-placeholder-BRna6-nm.js} +1 -1
- package/dist/{nftPlaceholder-Dp8gBk3E.js → nftPlaceholder-uwZhnmIc.js} +1 -1
- package/dist/{off-DBKQ2uD0.js → off-DFC1yPv3.js} +1 -1
- package/dist/{play-store-DLXuifjq.js → play-store-Byn_mMq_.js} +1 -1
- package/dist/{plus-B2UVpZoZ.js → plus-zUlg00_a.js} +1 -1
- package/dist/{qr-code-B70pCkf_.js → qr-code-DDbZcl7e.js} +1 -1
- package/dist/{recycle-horizontal-f1-LcR5k.js → recycle-horizontal-ML8sklv5.js} +1 -1
- package/dist/{refresh-DqxcTS2O.js → refresh-iUqYawLt.js} +1 -1
- package/dist/{reown-logo-DPYJPO0J.js → reown-logo-BMLlwYGo.js} +1 -1
- package/dist/{search-C2ANVg9Q.js → search-htBtAh5x.js} +1 -1
- package/dist/{send-jEzvJdO5.js → send-5NnEyeqk.js} +1 -1
- package/dist/{swapHorizontal-DsfyOh5t.js → swapHorizontal-C0RjVePv.js} +1 -1
- package/dist/{swapHorizontalBold-BklgdCvD.js → swapHorizontalBold-oabGP6AT.js} +1 -1
- package/dist/{swapHorizontalMedium-xuE1OPS7.js → swapHorizontalMedium-BPycpUZj.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-DXR4a277.js → swapHorizontalRoundedBold-BrWMh09O.js} +1 -1
- package/dist/{swapVertical-BaTPHjiX.js → swapVertical-Dab90B-o.js} +1 -1
- package/dist/{telegram-nFLInMdI.js → telegram-BTgVizd-.js} +1 -1
- package/dist/{three-dots-CkFcJxrL.js → three-dots-BWl-R2fX.js} +1 -1
- package/dist/{twitch-DRXpD9lS.js → twitch-BBSyKIRq.js} +1 -1
- package/dist/{twitterIcon-DILOWGoL.js → twitterIcon-DJa7a5mH.js} +1 -1
- package/dist/{unsupportedProp-wLSeuqFw.js → unsupportedProp-DFyakPn7.js} +1 -1
- package/dist/{useRegisterError-Bcj3H5Px.js → useRegisterError-BIERR-27.js} +1 -1
- package/dist/{verify-dxcsdtk9.js → verify-CzlzFBIk.js} +1 -1
- package/dist/{verify-filled-BHXk8ei0.js → verify-filled-DhPXgKCQ.js} +1 -1
- package/dist/{w3m-modal-CLvDtp4W.js → w3m-modal-Chxai-K2.js} +2 -2
- package/dist/{wallet-j7M44X01.js → wallet-DSL4tZXp.js} +1 -1
- package/dist/{wallet-placeholder-8MIkVS8L.js → wallet-placeholder-gRdwNEYW.js} +1 -1
- package/dist/{walletconnect-DP64PiDx.js → walletconnect-DorsPqE9.js} +1 -1
- package/dist/{warning-circle-BLBqorXY.js → warning-circle-Cm3eg6Rl.js} +1 -1
- package/dist/widget.css +1 -1
- package/dist/{x-jWwE-bx-.js → x-D9vS5YT4.js} +1 -1
- package/package.json +1 -1
@@ -1,13 +1,13 @@
|
|
1
|
-
import { jsx as e, jsxs as
|
2
|
-
import { t as
|
3
|
-
import { u as r, S as o, l as
|
1
|
+
import { jsx as e, jsxs as t, Fragment as m } from "react/jsx-runtime";
|
2
|
+
import { t as te } from "./truncate-D9t92mVX.js";
|
3
|
+
import { u as r, S as o, l as we } from "./index-B9Yj3lNG.js";
|
4
4
|
import { useState as ie, useEffect as le } from "react";
|
5
|
-
import { s } from "./WidgetForm.module-QHJ0-m5f.js";
|
5
|
+
import { s as a } 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-
|
8
|
-
import { e as
|
9
|
-
import { O as H } from "./index-
|
10
|
-
import { z as
|
7
|
+
import { S as re } from "./down-CSXSe02P.js";
|
8
|
+
import { e as se } from "./ethertousd-CC_ezooz.js";
|
9
|
+
import { O as H } from "./index-DZx5rYk6.js";
|
10
|
+
import { z as ae, F as J, i as oe } from "./useRegisterError-BIERR-27.js";
|
11
11
|
function xe({ fill: n }) {
|
12
12
|
return /* @__PURE__ */ e(
|
13
13
|
"svg",
|
@@ -30,36 +30,36 @@ function xe({ fill: n }) {
|
|
30
30
|
}
|
31
31
|
function ke({ routes: n, handleShowAllRoutes: K, routesData: b, price: Q, amount: X, isRoutesEnabled: v }) {
|
32
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;
|
33
|
-
const x = n.data, [c, Y] = ie(), l = r((i) => i.gradient),
|
33
|
+
const x = n.data, [c, Y] = ie(), l = r((i) => i.gradient), w = 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;
|
34
34
|
le(() => {
|
35
35
|
var i;
|
36
36
|
if (b) {
|
37
37
|
let f = { amountInUSD: 0, amountInNative: 0 }, Z = {};
|
38
|
-
(i = b == null ? void 0 : b.fee) == null || i.forEach((
|
39
|
-
|
38
|
+
(i = b == null ? void 0 : b.fee) == null || i.forEach((s) => {
|
39
|
+
s.source == "FROM_SOURCE_WALLET" && (f.amountInUSD += Number(s.amountInUSD), f.amountInNative += Number(se(s.amountInToken, s.token.decimals)), Z = { ...s });
|
40
40
|
}), Y({ tempGasObj: f, token: Z });
|
41
41
|
}
|
42
42
|
}, [b]);
|
43
|
-
let ee = (b == null ? void 0 : b.outputAmountDisplay) || "", be =
|
44
|
-
return /* @__PURE__ */ e("div", { className: "bw-mt-2", children: (u = h == null ? void 0 : h.chain) != null && u.length && ((S = g == null ? void 0 : g.coin) != null && S.length) && ((k = p == null ? void 0 : p.chain) != null && k.length) && ((C = d == null ? void 0 : d.coin) != null && C.length) && X.length && v ? n.isSuccess && !((j = (E = ($ = n.data) == null ? void 0 : $.data) == null ? void 0 : E.quotes) != null && j.length) ? /* @__PURE__ */ e("div", { className: "bw-bg-background-container bw-text-text-secondary bw-flex bw-justify-center bw-items-center bw-h-[80px] bw-relative bw-flex-col bw-border bw-border-border-primary", children: "No Routes Available" }) : n.isSuccess || n.isLoading || n.isFetching ? /* @__PURE__ */
|
45
|
-
/* @__PURE__ */
|
43
|
+
let ee = (b == null ? void 0 : b.outputAmountDisplay) || "", be = ae(Q), ne = (N = (y = b == null ? void 0 : b.providerDetails) == null ? void 0 : y.logoUrl) != null && N.length ? (F = b == null ? void 0 : b.providerDetails) == null ? void 0 : F.logoUrl : D;
|
44
|
+
return /* @__PURE__ */ e("div", { className: "bw-mt-2", children: (u = h == null ? void 0 : h.chain) != null && u.length && ((S = g == null ? void 0 : g.coin) != null && S.length) && ((k = p == null ? void 0 : p.chain) != null && k.length) && ((C = d == null ? void 0 : d.coin) != null && C.length) && X.length && v ? n.isSuccess && !((j = (E = ($ = n.data) == null ? void 0 : $.data) == null ? void 0 : E.quotes) != null && j.length) ? /* @__PURE__ */ e("div", { className: "bw-bg-background-container bw-text-text-secondary bw-flex bw-justify-center bw-items-center bw-h-[80px] bw-relative bw-flex-col bw-border bw-border-border-primary", children: "No Routes Available" }) : n.isSuccess || n.isLoading || n.isFetching ? /* @__PURE__ */ t("div", { children: [
|
45
|
+
/* @__PURE__ */ t("div", { className: "bw-flex bw-items-center bw-justify-between", children: [
|
46
46
|
" ",
|
47
|
-
/* @__PURE__ */
|
47
|
+
/* @__PURE__ */ t("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: [
|
48
48
|
"Get ",
|
49
49
|
d.name
|
50
50
|
] }),
|
51
|
-
n.isFetching ? /* @__PURE__ */ e(m, {}) : /* @__PURE__ */ e("div", { onClick: K, style: { ...
|
51
|
+
n.isFetching ? /* @__PURE__ */ e(m, {}) : /* @__PURE__ */ e("div", { onClick: K, style: { ...w.gradientStyle }, className: `bw-w-[130px] bw-cursor-pointer bw-relative bw-p-[1px] bw-text-transparent bw-text-sm bw-font-normal bw-h-[18px] bw-rounded-xl ${l || `${a.overlayshow} ${(I = w.gradientStyle) != null && I.background ? "" : "bw-bg-gradient-to-r bw-from-[#A45EFF] bw-to-[#2CFFE4]"}`}`, children: /* @__PURE__ */ e("div", { className: " bw-w-full bw-h-full bw-text-text-secondary bw-relative bw-z-10 bw-bg-background-container bw-flex bw-justify-center bw-items-center bw-text-xs bw-font-normal bw-rounded-xl", children: "Show All Routes" }) })
|
52
52
|
] }),
|
53
|
-
/* @__PURE__ */
|
54
|
-
/* @__PURE__ */
|
55
|
-
/* @__PURE__ */
|
56
|
-
/* @__PURE__ */
|
57
|
-
d != null && d.image && !n.isFetching ? /* @__PURE__ */ e("img", { src: d.image, width: 30, height: 30, className: "bw-mt-1 bw-max-w-[30px] bw-max-h-[30px] bw-object-contain bw-bg-background-
|
58
|
-
/* @__PURE__ */
|
59
|
-
n.isFetching ? /* @__PURE__ */ e(o, { className: "bw-bg-background-
|
60
|
-
n.isFetching ? /* @__PURE__ */ e(o, { className: "bw-bg-background-
|
53
|
+
/* @__PURE__ */ t("div", { className: " bw-mt-2", children: [
|
54
|
+
/* @__PURE__ */ t("div", { style: n.isFetching ? {} : { ...w.gradientStyle }, className: ` ${n.isFetching ? "bw-bg-background-secondary" : ` ${l || `${(L = w.gradientStyle) != null && L.background ? "" : "bw-bg-gradient-to-r bw-from-[#A45EFF] bw-to-[#2CFFE4]"} ${a.overlay}`} `} bw-relative bw-flex bw-justify-center bw-rounded-[8px] bw-w-full bw-p-[1px] bw-h-[86px] `, children: [
|
55
|
+
/* @__PURE__ */ t("div", { className: "bw-w-full bw-h-full bw-flex bw-px-2 bw-pb-3 bw-items-center bw-justify-between bw-bg-background-container rbw-elative bw-z-10 bw-rounded-[8px]", children: [
|
56
|
+
/* @__PURE__ */ t("div", { className: "bw-flex bw-items-start bw-gap-x-2", children: [
|
57
|
+
d != null && d.image && !n.isFetching ? /* @__PURE__ */ e("img", { src: d.image, width: 30, height: 30, className: "bw-mt-1 bw-max-w-[30px] bw-max-h-[30px] bw-object-contain bw-bg-background-secondary bw-rounded-[50%]" }) : /* @__PURE__ */ e(m, {}),
|
58
|
+
/* @__PURE__ */ t("div", { children: [
|
59
|
+
n.isFetching ? /* @__PURE__ */ e(o, { className: "bw-bg-background-secondary bw-mt-3 bw-rounded-sm bw-h-[36px] bw-min-h-[36px]", animation: "wave", variant: "rectangular", height: 36, width: 250 }) : /* @__PURE__ */ e("p", { className: "bw-text-3xl bw-mb-1 bw-font-medium bw-text-text-primary", children: /* @__PURE__ */ e(H, { value: ee, decimal: 12 }) }),
|
60
|
+
n.isFetching ? /* @__PURE__ */ e(o, { className: "bw-bg-background-secondary bw-mt-2 bw-rounded-sm bw-h-[20px] bw-w-[100px] bw-min-h-[20px]", variant: "rectangular", animation: "wave", height: 20, width: 100 }) : /* @__PURE__ */ t("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
61
61
|
/* @__PURE__ */ e(ce, { fill: "var(--tw-text-primary)" }),
|
62
|
-
/* @__PURE__ */
|
62
|
+
/* @__PURE__ */ t("p", { className: "bw-text-sm bw-font-medium bw-text-text-primary", children: [
|
63
63
|
"Total Fee:",
|
64
64
|
" $",
|
65
65
|
/* @__PURE__ */ e(J, { value: ((U = c == null ? void 0 : c.tempGasObj) == null ? void 0 : U.amountInUSD) || 0, options: { maxDecimals: 8 } }),
|
@@ -70,26 +70,26 @@ function ke({ routes: n, handleShowAllRoutes: K, routesData: b, price: Q, amount
|
|
70
70
|
] })
|
71
71
|
] })
|
72
72
|
] }),
|
73
|
-
/* @__PURE__ */
|
74
|
-
n.isFetching ? /* @__PURE__ */ e(o, { className: "bw-bg-background-
|
73
|
+
/* @__PURE__ */ t("div", { className: " bw-text-sm bw-font-medium bw-mt-2 bw-text-text-loaderbar ", children: [
|
74
|
+
n.isFetching ? /* @__PURE__ */ e(o, { className: "bw-bg-background-secondary bw-w-[50px] bw-rounded-sm bw-h-[20px] bw-min-h-[20px]", variant: "rectangular", animation: "wave", height: 20, width: 50 }) : /* @__PURE__ */ t("p", { className: "bw-text-text-secondary bw-font-medium bw-text-sm", children: [
|
75
75
|
"$",
|
76
76
|
/* @__PURE__ */ e(H, { value: be, decimal: 8 })
|
77
77
|
] }),
|
78
|
-
n.isFetching ? /* @__PURE__ */ e(o, { className: "bw-bg-background-
|
78
|
+
n.isFetching ? /* @__PURE__ */ e(o, { className: "bw-bg-background-secondary bw-w-[50px] bw-mt-2 bw-rounded-sm bw-h-[20px] bw-min-h-[20px] ", variant: "rectangular", animation: "wave", height: 20, width: 50 }) : ((M = (z = (T = x == null ? void 0 : x.data) == null ? void 0 : T.quotes) == null ? void 0 : z[0]) == null ? void 0 : M._id) === b._id ? /* @__PURE__ */ e("div", { style: { ...w.gradientStyle }, className: `${l || `${(R = w.gradientStyle) != null && R.background ? "" : "bw-bg-gradient-to-r bw-from-[#A45EFF] bw-to-[#2CFFE4]"} `} bw-mt-3 bw-text-right bw-text-transparent bw-text-[10px] bw-font-bold bw-bg-clip-text ${a.gradienttext}`, children: "BEST" }) : /* @__PURE__ */ e(m, {})
|
79
79
|
] })
|
80
80
|
] }),
|
81
81
|
n.isFetching ? /* @__PURE__ */ e("div", { className: "bw-absolute bw-w-[40px] bw-h-[40px] bw-bottom-[-35%] bw-z-20 ", children: /* @__PURE__ */ e(re, {}) }) : /* @__PURE__ */ e(m, {}),
|
82
|
-
/* @__PURE__ */
|
83
|
-
!n.isFetching && !
|
82
|
+
/* @__PURE__ */ t("div", { className: "bw-h-[18px] bw-w-max bw-z-10 bw-min-w-[200px] bw-bg-background-container bw-flex bw-items-center bw-absolute bw-bottom-[-10%]", children: [
|
83
|
+
!n.isFetching && !we.isEmpty(b) ? /* @__PURE__ */ t("div", { className: "bw-flex bw-w-full bw-px-6 bw-items-center bw-gap-x-1", children: [
|
84
84
|
" ",
|
85
|
-
/* @__PURE__ */
|
85
|
+
/* @__PURE__ */ t("p", { className: "bw-text-sm bw-w-full bw-text-center bw-flex bw-justify-center bw-items-center bw-font-normal bw-my-1 bw-text-text-secondary", children: [
|
86
86
|
/* @__PURE__ */ e("span", { className: "bw-text-sm bw-font-light", children: "via" }),
|
87
87
|
" ",
|
88
88
|
/* @__PURE__ */ e("img", { src: ne, className: "bw-rounded-[50%] bw-mx-[4px] bw-min-w-[18px] bw-max-h-[18px] bw-min-h-[18px]", width: 18, height: 18 }),
|
89
89
|
((_ = b == null ? void 0 : b.providerDetails) == null ? void 0 : _.name) || "",
|
90
90
|
": ",
|
91
91
|
b == null ? void 0 : b.protocolsUsed[0],
|
92
|
-
((B = b == null ? void 0 : b.protocolsUsed) == null ? void 0 : B.length) <= 1 ? "" : /* @__PURE__ */
|
92
|
+
((B = b == null ? void 0 : b.protocolsUsed) == null ? void 0 : B.length) <= 1 ? "" : /* @__PURE__ */ t("span", { className: "bw-ml-1 bw-text-xs bw-font-normal", children: [
|
93
93
|
`+${((V = b == null ? void 0 : b.protocolsUsed) == null ? void 0 : V.length) - 1}`,
|
94
94
|
" More"
|
95
95
|
] }),
|
@@ -97,22 +97,22 @@ function ke({ routes: n, handleShowAllRoutes: K, routesData: b, price: Q, amount
|
|
97
97
|
] }),
|
98
98
|
" "
|
99
99
|
] }) : /* @__PURE__ */ e(m, {}),
|
100
|
-
/* @__PURE__ */ e("div", { style: n.isFetching ? {} : { ...
|
101
|
-
/* @__PURE__ */ e("div", { style: n.isFetching ? {} : { ...
|
100
|
+
/* @__PURE__ */ e("div", { style: n.isFetching ? {} : { ...w.gradientStyle }, className: ` ${n.isFetching ? "bw-bg-background-secondary" : ` ${l || ` ${a.overlay} ${(q = w == null ? void 0 : w.gradientStyle) != null && q.background ? "" : "bw-bg-gradient-to-r bw-from-[#A45EFF] bw-to-[#2CFFE4]"}`}`} bw-absolute bw-right-0 bw-rounded-[50%] bw-w-[4px] bw-h-[4px] ` }),
|
101
|
+
/* @__PURE__ */ e("div", { style: n.isFetching ? {} : { ...w.gradientStyle }, className: ` ${n.isFetching ? "bw-bg-background-secondary" : ` ${l || ` ${a.overlay} ${(W = w == null ? void 0 : w.gradientStyle) != null && W.background ? "" : "bw-bg-gradient-to-r bw-from-[#A45EFF] bw-to-[#2CFFE4]"}`}`} bw-absolute bw-rounded-[50%] bw-w-[4px] bw-h-[4px] ` })
|
102
102
|
] })
|
103
103
|
] }),
|
104
|
-
/* @__PURE__ */ e("div", { className: "bw-bg-background-
|
105
|
-
/* @__PURE__ */
|
104
|
+
/* @__PURE__ */ e("div", { className: "bw-bg-background-container bw-flex bw-items-center bw-w-[85%] bw-mx-auto bw-rounded-b-md bw-justify-center bw-h-[60px]", children: n.isFetching ? /* @__PURE__ */ e("div", { className: "bw-mt-6 bw-w-full bw-h-[20px]" }) : /* @__PURE__ */ t("div", { className: "bw-flex bw-items-center bw-gap-x-4 bw-mt-2 bw-bg-background-container bw-justify-center ", children: [
|
105
|
+
/* @__PURE__ */ t("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
106
106
|
/* @__PURE__ */ e(xe, { fill: "var(--tw-text-secondary)" }),
|
107
107
|
/* @__PURE__ */ e("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: "Fee" }),
|
108
108
|
/* @__PURE__ */ e("p", { className: "bw-text-sm bw-line-through bw-font-medium bw-text-text-secondary", children: "0.1%" }),
|
109
109
|
/* @__PURE__ */ e("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: "0" })
|
110
110
|
] }),
|
111
|
-
/* @__PURE__ */
|
111
|
+
/* @__PURE__ */ t("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
112
112
|
/* @__PURE__ */ e(de, { fill: "var(--tw-text-secondary)" }),
|
113
|
-
/* @__PURE__ */ e("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: (b == null ? void 0 : b.estimatedTimeInSeconds) >= 90 ? `${Math.round(
|
113
|
+
/* @__PURE__ */ e("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: (b == null ? void 0 : b.estimatedTimeInSeconds) >= 90 ? `${Math.round(te(((b == null ? void 0 : b.estimatedTimeInSeconds) || 60) / 60, 2) || 0)}min` : `${(b == null ? void 0 : b.estimatedTimeInSeconds) || 60} secs` })
|
114
114
|
] }),
|
115
|
-
/* @__PURE__ */
|
115
|
+
/* @__PURE__ */ t("div", { className: " bw-gap-x-1 bw-flex bw-items-center bw-text-xs bw-font-normal bw-text-text-primary", children: [
|
116
116
|
/* @__PURE__ */ e(me, { fill: "var(--tw-text-secondary)" }),
|
117
117
|
/* @__PURE__ */ e("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: `${((P = b == null ? void 0 : b.steps) == null ? void 0 : P.length) || ""} step` })
|
118
118
|
] })
|
@@ -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-B9Yj3lNG.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);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
2
|
-
import { u as a } from "./index-
|
2
|
+
import { u as a } from "./index-B9Yj3lNG.js";
|
3
3
|
function w({ fill1: o, fill2: r }) {
|
4
4
|
return /* @__PURE__ */ s(
|
5
5
|
"svg",
|
@@ -42,22 +42,9 @@ function w({ fill1: o, fill2: r }) {
|
|
42
42
|
}
|
43
43
|
function p({ handleSwap: o }) {
|
44
44
|
var i, l;
|
45
|
-
const r = a((
|
46
|
-
let
|
47
|
-
return /* @__PURE__ */ t(
|
48
|
-
"div",
|
49
|
-
{
|
50
|
-
onClick: o,
|
51
|
-
className: `${n ? "" : "bw-pointer-events-none"} bw-absolute hover:bw-scale-[0.95] bw-border bw-border-border-primary bw-rounded-[50%] bw-cursor-pointer bw-bg-background-container bw-top-[33%] bw-right-[45%] `,
|
52
|
-
children: /* @__PURE__ */ t(
|
53
|
-
w,
|
54
|
-
{
|
55
|
-
fill1: "var(--tw-background-card)",
|
56
|
-
fill2: n ? "var(--tw-text-primary)" : "var(--tw-text-secondary)"
|
57
|
-
}
|
58
|
-
)
|
59
|
-
}
|
60
|
-
);
|
45
|
+
const r = a((n) => n.fromCoin), c = a((n) => n.toCoin);
|
46
|
+
let e = ((i = r == null ? void 0 : r.coin) == null ? void 0 : i.length) && ((l = c.coin) == null ? void 0 : l.length);
|
47
|
+
return /* @__PURE__ */ t("div", { onClick: o, className: `${e ? "" : "bw-pointer-events-none"} bw-absolute hover:bw-scale-[0.95] bw-border bw-border-border-primary bw-rounded-[50%] bw-cursor-pointer bw-bg-background-container bw-top-[33%] bw-right-[45%] `, children: /* @__PURE__ */ t(w, { fill1: "var(--tw-background-container)", fill2: e ? "var(--tw-text-primary)" : "var(--tw-text-secondary)" }) });
|
61
48
|
}
|
62
49
|
export {
|
63
50
|
p as default
|
@@ -1,8 +1,8 @@
|
|
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-
|
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-B9Yj3lNG.js";
|
2
2
|
import * as p from "react";
|
3
|
-
import { G as Be, b as wo, u as Ro, a as Co, P as He } from "./Grow-
|
3
|
+
import { G as Be, b as wo, u as Ro, a as Co, P as He } from "./Grow-5d7ST43Z.js";
|
4
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-
|
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-BIERR-27.js";
|
6
6
|
function Lo(r) {
|
7
7
|
return To("MuiTooltip", r);
|
8
8
|
}
|
@@ -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
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-
|
4
|
+
import { a as we, u as T, az as Ae, aA as ve } from "./index-B9Yj3lNG.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, d as Ve, c as qe, C as oe } from "./useRegisterError-
|
8
|
-
import "./getCosmosAddress-
|
7
|
+
import { u as ae, d as Ve, c as qe, C as oe } from "./useRegisterError-BIERR-27.js";
|
8
|
+
import "./getCosmosAddress-VGyJ48hD.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-CxnNzJCI.js";
|
11
11
|
function Je(n) {
|
12
|
-
const { wallet: h, address: g } = we(), [E,
|
12
|
+
const { wallet: h, address: g } = we(), [E, S] = q(0);
|
13
13
|
async function m() {
|
14
14
|
const z = await window.tronWeb.trx.getBalance(g);
|
15
|
-
|
15
|
+
S(z / Math.pow(10, 6));
|
16
16
|
}
|
17
17
|
return P(() => {
|
18
18
|
g && (n == null ? void 0 : n.networkType) === "tron" && m();
|
@@ -22,7 +22,7 @@ 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:
|
25
|
+
function st({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowWallet: S, 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
|
@@ -57,9 +57,9 @@ function st({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
|
|
57
57
|
else
|
58
58
|
me.emit(ve.TransactionStarted, {
|
59
59
|
...n
|
60
|
-
}), ue(!1), z();
|
60
|
+
}), B && (ue(!1), z());
|
61
61
|
}
|
62
|
-
const { primaryWallet: b } = je(), V = ze(),
|
62
|
+
const { primaryWallet: b } = je(), V = ze(), B = (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();
|
@@ -88,14 +88,14 @@ function st({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
|
|
88
88
|
var $;
|
89
89
|
let s = {};
|
90
90
|
function u(t, c) {
|
91
|
-
let
|
91
|
+
let G = Object.keys(s);
|
92
92
|
s[t == null ? void 0 : t.chainId] ? (s[t == null ? void 0 : t.chainId].amountInToken += c.amountInToken, s[t == null ? void 0 : t.chainId].gas += X(c.amountInToken, t == null ? void 0 : t.decimals)) : s[t == null ? void 0 : t.chainId] = {
|
93
93
|
amountInToken: c.amountInToken,
|
94
94
|
gas: X(c.amountInToken, t == null ? void 0 : t.decimals),
|
95
95
|
token: t,
|
96
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
|
-
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 :
|
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 : G.length > 2 ? 3 : 2
|
99
99
|
};
|
100
100
|
}
|
101
101
|
($ = n == null ? void 0 : n.fee) == null || $.forEach((t) => {
|
@@ -116,11 +116,11 @@ function st({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
|
|
116
116
|
color: "bw-bg-border-primary"
|
117
117
|
});
|
118
118
|
else {
|
119
|
-
let t = Object.values(s).sort((c,
|
119
|
+
let t = Object.values(s).sort((c, G) => c.order - G.order);
|
120
120
|
t.some((c) => {
|
121
|
-
var
|
121
|
+
var G, de, le;
|
122
122
|
return c != null && c.isFromChain && Number(g) <= Number(p) && Number(c.nativeBal) - Number(g) < c.gas && (i != null && i.isNative) || Number(g) <= Number(p) && Number(c.nativeBal) < c.gas && !(i != null && i.isNative) && (c != null && c.isFromChain) ? (a({
|
123
|
-
text: `Insufficient ${((
|
123
|
+
text: `Insufficient ${((G = c == null ? void 0 : c.token) == null ? void 0 : G.symbol) || ""} for gas on ${c.token.blockchain}`,
|
124
124
|
isGradient: !1,
|
125
125
|
color: "bw-bg-border-primary"
|
126
126
|
}), !0) : c.nativeBal < c.gas && !((d == null ? void 0 : d.length) > 30 && ((de = c == null ? void 0 : c.token) == null ? void 0 : de.chainId) == (r == null ? void 0 : r.chainId)) ? (a({
|
@@ -145,7 +145,7 @@ function st({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
|
|
145
145
|
text: "Select Token",
|
146
146
|
isGradient: !0,
|
147
147
|
color: o || f.gradientbutton
|
148
|
-
}) :
|
148
|
+
}) : B ? typeof g < "u" && Number(g || 0) <= 0 ? a({
|
149
149
|
text: "Enter Amount",
|
150
150
|
isGradient: !1,
|
151
151
|
color: "bw-bg-border-primary"
|
@@ -178,11 +178,11 @@ function st({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
|
|
178
178
|
isGradient: !0,
|
179
179
|
color: o || f.gradientbutton
|
180
180
|
});
|
181
|
-
}, [v, b, i, w, g, e, r, (ee = y.data) == null ? void 0 : ee.formatted, n, y.isFetching, y.isLoading, F, Q,
|
181
|
+
}, [v, b, i, w, g, e, r, (ee = y.data) == null ? void 0 : ee.formatted, n, y.isFetching, y.isLoading, F, Q, B, 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, $;
|
185
|
-
return
|
185
|
+
return B ? h.isFetching ? !0 : l.text.length ? !Ee.includes((s = l.text) == null ? void 0 : s.toLowerCase()) : !(($ = (p = (u = h.data) == null ? void 0 : u.data) == null ? void 0 : p.quotes) != null && $.length) : !1;
|
186
186
|
}
|
187
187
|
return /* @__PURE__ */ N(
|
188
188
|
"button",
|
@@ -196,9 +196,9 @@ 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
|
-
|
199
|
+
B || (S(!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) ? (S(!0), m("from")) : r.chainId === "eclipse-svm" && e.chainId !== "eclipse-svm" && !j(b) && d.length < 30 ? (S(!0), m("to")) : Be();
|
200
200
|
},
|
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" }) }) :
|
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" }) }) : B ? 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
|
}
|
203
203
|
);
|
204
204
|
}
|
@@ -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 { m as Wn } from "./index-
|
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-D4HnN6eG.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-BDSA6Vmh.js";
|
3
|
+
import { m as Wn } from "./index-B9Yj3lNG.js";
|
4
4
|
const Sn = D`
|
5
5
|
:host {
|
6
6
|
position: relative;
|
@@ -1,4 +1,4 @@
|
|
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-
|
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-B9Yj3lNG.js";
|
2
2
|
const h = "/docs/contract/encodeErrorResult";
|
3
3
|
function x(t) {
|
4
4
|
const { abi: s, errorName: a, args: r } = t;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { B as et } from "./index-DTish3yr.js";
|
2
|
-
import { I as Wr, c as Zu, f as Tt, t as pt, a as U, g as re, b as us, C as Xu, d as Qu, e as ui, s as co, h as fl, i as er, k as Ti, A as ml, E as nt, j as eh, l as th, y as Ct, m as Ws, r as zr, O as Wo, o as kt, n as sh, p as zo, q as Ho, u as vn, N as Vo, P as ca, Q as rh, v as ih, w as nh, x as la, z as _r, B as wl, D as is, F as Vt, G as hs, H as Bt } from "./index.es-
|
3
|
-
import { p as Se } from "./index-
|
2
|
+
import { I as Wr, c as Zu, f as Tt, t as pt, a as U, g as re, b as us, C as Xu, d as Qu, e as ui, s as co, h as fl, i as er, k as Ti, A as ml, E as nt, j as eh, l as th, y as Ct, m as Ws, r as zr, O as Wo, o as kt, n as sh, p as zo, q as Ho, u as vn, N as Vo, P as ca, Q as rh, v as ih, w as nh, x as la, z as _r, B as wl, D as is, F as Vt, G as hs, H as Bt } from "./index.es-oVEjdXD9.js";
|
3
|
+
import { p as Se } from "./index-B9Yj3lNG.js";
|
4
4
|
import { formatUnits as oh, recoverAddress as ah, fallback as ua, http as Wi, toHex as ha } from "viem";
|
5
5
|
const z = {
|
6
6
|
WC_NAME_SUFFIX: ".reown.id",
|
@@ -14903,7 +14903,7 @@ class Yu extends NE {
|
|
14903
14903
|
}
|
14904
14904
|
async injectModalUi() {
|
14905
14905
|
if (!pl && Z.isClient()) {
|
14906
|
-
if (await import("./basic-
|
14906
|
+
if (await import("./basic-CBd897q3.js"), await import("./w3m-modal-Chxai-K2.js"), !document.querySelector("w3m-modal")) {
|
14907
14907
|
const s = document.createElement("w3m-modal");
|
14908
14908
|
!O.state.disableAppend && !O.state.enableEmbedded && document.body.insertAdjacentElement("beforeend", s);
|
14909
14909
|
}
|