@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,19 +1,19 @@
|
|
1
|
-
import { jsxs as b, jsx as
|
1
|
+
import { jsxs as b, jsx as n, Fragment as A } from "react/jsx-runtime";
|
2
2
|
import G, { useContext as H, useState as E, useEffect as v, useRef as _ } from "react";
|
3
|
-
import { a as U, T as $, H as O, b as L, c as J, E as K, d as V } from "./EstGas-
|
4
|
-
import { u as l, l as W } from "./index-
|
5
|
-
import { i as D, C as Q, A as X } from "./useRegisterError-
|
6
|
-
import { B as Y } from "./Box-
|
3
|
+
import { a as U, T as $, H as O, b as L, c as J, E as K, d as V } from "./EstGas-Cfyys8c-.js";
|
4
|
+
import { u as l, l as W } from "./index-B9Yj3lNG.js";
|
5
|
+
import { i as D, C as Q, A as X } from "./useRegisterError-BIERR-27.js";
|
6
|
+
import { B as Y } from "./Box-DSFgexHP.js";
|
7
7
|
function Z() {
|
8
8
|
var d, w, i, e, u, c, m, g, x, s, h, y, p, C;
|
9
|
-
const t = l((T) => T.persist),
|
9
|
+
const t = l((T) => T.persist), r = l((T) => T.configuration), { defaultCoin: a } = D;
|
10
10
|
let f = (i = (w = (d = t == null ? void 0 : t.route) == null ? void 0 : d.providerDetails) == null ? void 0 : w.logoUrl) != null && i.length ? (u = (e = t == null ? void 0 : t.route) == null ? void 0 : e.providerDetails) == null ? void 0 : u.logoUrl : a;
|
11
|
-
return W.isEmpty(t.route) ? /* @__PURE__ */
|
12
|
-
/* @__PURE__ */
|
11
|
+
return W.isEmpty(t.route) ? /* @__PURE__ */ n(A, {}) : /* @__PURE__ */ b("div", { className: "bw-relative bw-mt-4 bw-flex bw-justify-center ", children: [
|
12
|
+
/* @__PURE__ */ n(
|
13
13
|
"div",
|
14
14
|
{
|
15
15
|
style: {
|
16
|
-
boxShadow:
|
16
|
+
boxShadow: r && r.customTheme && ((m = (c = r.customTheme) == null ? void 0 : c.shadow) == null ? void 0 : m.boxShadow) || "1px 1px 10px 3px rgba(0, 0, 0, 0.15)"
|
17
17
|
},
|
18
18
|
className: "bw-w-[200px] bw-rounded-[50%] bw-absolute bw-right-auto bw-z-0 bw-left-auto bw-h-[40px]"
|
19
19
|
}
|
@@ -21,9 +21,9 @@ function Z() {
|
|
21
21
|
/* @__PURE__ */ b("div", { className: "bw-flex bw-relative bw-bg-background-container bw-z-10 bw-mx-auto bw-h-[41px] bw-w-[70%] bw-border-[0.5px] bw-border-border-primary bw-border-r-0 bw-border-l-0 bw-items-center bw-gap-x-1", children: [
|
22
22
|
" ",
|
23
23
|
/* @__PURE__ */ b("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-primary", children: [
|
24
|
-
/* @__PURE__ */
|
24
|
+
/* @__PURE__ */ n("span", { className: "bw-text-sm bw-font-light", children: "via" }),
|
25
25
|
" ",
|
26
|
-
/* @__PURE__ */
|
26
|
+
/* @__PURE__ */ n("img", { src: f, className: "bw-rounded-[50%] bw-mx-[4px] bw-min-w-[18px] bw-max-h-[18px] bw-min-h-[18px]", width: 18, height: 18 }),
|
27
27
|
((x = (g = t == null ? void 0 : t.route) == null ? void 0 : g.providerDetails) == null ? void 0 : x.name) || "",
|
28
28
|
": ",
|
29
29
|
(s = t == null ? void 0 : t.route) == null ? void 0 : s.protocolsUsed[0],
|
@@ -40,8 +40,8 @@ function Z() {
|
|
40
40
|
let N;
|
41
41
|
function R() {
|
42
42
|
var u, c, m, g, x;
|
43
|
-
const t = l((s) => s.configuration),
|
44
|
-
let w = ((u =
|
43
|
+
const t = l((s) => s.configuration), r = l((s) => s.persist), a = l((s) => s.setPersist), { isErrorMessage: f } = H(U), d = Math.floor(((/* @__PURE__ */ new Date()).getTime() - r.quoteStartTime) / 1e3);
|
44
|
+
let w = ((u = r == null ? void 0 : r.route) == null ? void 0 : u.deadline) || 60;
|
45
45
|
const [i, e] = E(w);
|
46
46
|
return v(() => {
|
47
47
|
d && e(w - d);
|
@@ -56,11 +56,11 @@ function R() {
|
|
56
56
|
}), 0) : s - 1;
|
57
57
|
});
|
58
58
|
}, 1e3), () => clearInterval(N)), []), v(() => {
|
59
|
-
(f || !
|
60
|
-
}, [f,
|
61
|
-
/* @__PURE__ */
|
62
|
-
/* @__PURE__ */
|
63
|
-
/* @__PURE__ */
|
59
|
+
(f || !r.isQuoteTimer) && clearInterval(N);
|
60
|
+
}, [f, r.isQuoteTimer]), !(r != null && r.hash) && r.quote === "enable" ? /* @__PURE__ */ b("div", { className: "bw-absolute bw-top-0 bw-right-0 ", children: [
|
61
|
+
/* @__PURE__ */ n("svg", { className: "bw-absolute bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ b("linearGradient", { id: "linearColors", x1: "0", y1: "0", x2: "1", y2: "1", children: [
|
62
|
+
/* @__PURE__ */ n("stop", { offset: "1%", stopColor: (c = t == null ? void 0 : t.gradientStyle) != null && c.spinnerColor ? (m = t == null ? void 0 : t.gradientStyle) == null ? void 0 : m.spinnerColor : "#A45EFF" }),
|
63
|
+
/* @__PURE__ */ n("stop", { offset: "90%", stopColor: (g = t == null ? void 0 : t.gradientStyle) != null && g.spinnerColor ? (x = t == null ? void 0 : t.gradientStyle) == null ? void 0 : x.stopColor : "#2CFFE4" })
|
64
64
|
] }) }),
|
65
65
|
/* @__PURE__ */ b(
|
66
66
|
Y,
|
@@ -70,7 +70,7 @@ function R() {
|
|
70
70
|
display: "inline-flex"
|
71
71
|
},
|
72
72
|
children: [
|
73
|
-
/* @__PURE__ */
|
73
|
+
/* @__PURE__ */ n(
|
74
74
|
Q,
|
75
75
|
{
|
76
76
|
variant: "determinate",
|
@@ -82,7 +82,7 @@ function R() {
|
|
82
82
|
value: 100
|
83
83
|
}
|
84
84
|
),
|
85
|
-
/* @__PURE__ */
|
85
|
+
/* @__PURE__ */ n(
|
86
86
|
Q,
|
87
87
|
{
|
88
88
|
variant: "determinate",
|
@@ -102,16 +102,9 @@ function R() {
|
|
102
102
|
]
|
103
103
|
}
|
104
104
|
)
|
105
|
-
] }) : /* @__PURE__ */
|
105
|
+
] }) : /* @__PURE__ */ n(A, {});
|
106
106
|
}
|
107
|
-
const ee = G.memo(function({
|
108
|
-
handleOpenExchange: t,
|
109
|
-
amount: n,
|
110
|
-
route: a,
|
111
|
-
resetAmount: f,
|
112
|
-
resetBalance: d,
|
113
|
-
setExchange: w
|
114
|
-
}) {
|
107
|
+
const ee = G.memo(function({ handleOpenExchange: t, amount: r, route: a, resetAmount: f, resetBalance: d, setExchange: w }) {
|
115
108
|
var k;
|
116
109
|
const i = l((o) => o.setPersist), e = l((o) => o.persist), u = l((o) => o.fromChain), c = l((o) => o.fromCoin), m = l((o) => o.toChain), g = l((o) => o.toCoin), [x, s] = E(!1), [h, y] = E(!1), [p, C] = E(!1), T = !e.stepData, { txnupdate: M } = D;
|
117
110
|
v(() => {
|
@@ -124,7 +117,7 @@ const ee = G.memo(function({
|
|
124
117
|
toCoin: g,
|
125
118
|
fromChain: u,
|
126
119
|
fromCoin: c,
|
127
|
-
amount:
|
120
|
+
amount: r,
|
128
121
|
quote: "enable",
|
129
122
|
openAt: (/* @__PURE__ */ new Date()).getTime(),
|
130
123
|
startTime: ((F = (z = (j = l) == null ? void 0 : j.getState()) == null ? void 0 : z.persist) == null ? void 0 : F.startTime) || (/* @__PURE__ */ new Date()).getTime()
|
@@ -150,71 +143,32 @@ const ee = G.memo(function({
|
|
150
143
|
function P() {
|
151
144
|
t(), i({}), h && d();
|
152
145
|
}
|
153
|
-
return /* @__PURE__ */
|
154
|
-
/* @__PURE__ */
|
155
|
-
/* @__PURE__ */
|
156
|
-
e != null && e.isQuoteTimer ? /* @__PURE__ */
|
157
|
-
/* @__PURE__ */
|
146
|
+
return /* @__PURE__ */ n($.Provider, { value: { isTxnSuccessful: h, handleTxnSuccess: q }, children: /* @__PURE__ */ n(U.Provider, { value: { isErrorMessage: p, handleErrorMessage: B }, children: /* @__PURE__ */ b("div", { className: "bw-w-full bw-relative bw-min-h-[610px] ", children: [
|
147
|
+
/* @__PURE__ */ n(O, { handleBack: P }),
|
148
|
+
/* @__PURE__ */ n("div", { className: "bw-mt-[-20px] ", children: /* @__PURE__ */ n(Z, {}) }),
|
149
|
+
e != null && e.isQuoteTimer ? /* @__PURE__ */ n(R, {}) : /* @__PURE__ */ n(A, {}),
|
150
|
+
/* @__PURE__ */ n("div", { className: "bw-flex bw-justify-between bw-items-center" }),
|
158
151
|
/* @__PURE__ */ b("div", { className: "bw-flex bw-w-full bw-mt-4 bw-justify-between bw-items-center", children: [
|
159
152
|
/* @__PURE__ */ b("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
160
|
-
/* @__PURE__ */
|
161
|
-
/* @__PURE__ */
|
162
|
-
L,
|
163
|
-
{
|
164
|
-
amount: e == null ? void 0 : e.amount,
|
165
|
-
coinData: e.fromCoin,
|
166
|
-
chainData: e.fromChain,
|
167
|
-
field: "from"
|
168
|
-
}
|
169
|
-
)
|
153
|
+
/* @__PURE__ */ n("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Send" }),
|
154
|
+
/* @__PURE__ */ n(L, { amount: e == null ? void 0 : e.amount, coinData: e.fromCoin, chainData: e.fromChain, field: "from" })
|
170
155
|
] }),
|
171
|
-
p ? /* @__PURE__ */
|
172
|
-
|
173
|
-
{
|
174
|
-
className: "bw-border bw-mt-5 bw-w-[65px] bw-h-[65px] bw-flex bw-items-center bw-justify-center bw-rounded-[50%] bw-bg-background-card bw-relative bw-z-10 hover:bw-opacity-100 bw-border-border-primary ",
|
175
|
-
children: /* @__PURE__ */ r("img", { src: M, width: 33, height: 30, alt: "img" })
|
176
|
-
}
|
177
|
-
) : /* @__PURE__ */ r(
|
178
|
-
J,
|
179
|
-
{
|
180
|
-
isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x,
|
181
|
-
startTimer: I,
|
182
|
-
error: p
|
183
|
-
}
|
184
|
-
),
|
185
|
-
/* @__PURE__ */ r("div", { className: "bw-w-full bw-z-0 md:bw-w-full bw-mt-5 bw-absolute bw-h-[1px] bw-bg-border-primary " }),
|
156
|
+
p ? /* @__PURE__ */ n("div", { className: "bw-border bw-mt-5 bw-w-[65px] bw-h-[65px] bw-flex bw-items-center bw-justify-center bw-rounded-[50%] bw-bg-background-container bw-relative bw-z-10 hover:bw-opacity-100 bw-border-border-primary ", children: /* @__PURE__ */ n("img", { src: M, width: 33, height: 30, alt: "img" }) }) : /* @__PURE__ */ n(J, { isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x, startTimer: I, error: p }),
|
157
|
+
/* @__PURE__ */ n("div", { className: "bw-w-full bw-z-0 md:bw-w-full bw-mt-5 bw-absolute bw-h-[1px] bw-bg-border-primary " }),
|
186
158
|
/* @__PURE__ */ b("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
187
|
-
/* @__PURE__ */
|
188
|
-
/* @__PURE__ */
|
189
|
-
L,
|
190
|
-
{
|
191
|
-
amount: Number(((k = e == null ? void 0 : e.route) == null ? void 0 : k.outputAmountDisplay) || ""),
|
192
|
-
coinData: e == null ? void 0 : e.toCoin,
|
193
|
-
chainData: e == null ? void 0 : e.toChain,
|
194
|
-
field: "to"
|
195
|
-
}
|
196
|
-
)
|
159
|
+
/* @__PURE__ */ n("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Receive" }),
|
160
|
+
/* @__PURE__ */ n(L, { amount: Number(((k = e == null ? void 0 : e.route) == null ? void 0 : k.outputAmountDisplay) || ""), coinData: e == null ? void 0 : e.toCoin, chainData: e == null ? void 0 : e.toChain, field: "to" })
|
197
161
|
] })
|
198
162
|
] }),
|
199
163
|
/* @__PURE__ */ b("div", { className: "bw-h-[320px] bw-pr-1 bw-flex bw-flex-col bw-mt-8 bw-overflow-y-auto", children: [
|
200
|
-
T ? /* @__PURE__ */
|
201
|
-
/* @__PURE__ */ r(
|
202
|
-
V,
|
203
|
-
{
|
204
|
-
handleOpenExchange: t,
|
205
|
-
setExchange: w,
|
206
|
-
amount: n,
|
207
|
-
startTimer: I,
|
208
|
-
handleBack: P,
|
209
|
-
isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x
|
210
|
-
}
|
211
|
-
)
|
164
|
+
T ? /* @__PURE__ */ n(A, {}) : /* @__PURE__ */ n(K, {}),
|
165
|
+
/* @__PURE__ */ n(V, { handleOpenExchange: t, setExchange: w, amount: r, startTimer: I, handleBack: P, isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x })
|
212
166
|
] })
|
213
167
|
] }) }) });
|
214
168
|
});
|
215
169
|
function le({
|
216
170
|
handleConfirmClose: t,
|
217
|
-
routesData:
|
171
|
+
routesData: r,
|
218
172
|
amount: a,
|
219
173
|
resetAmount: f,
|
220
174
|
resetBalance: d,
|
@@ -225,8 +179,8 @@ function le({
|
|
225
179
|
var c, m;
|
226
180
|
!i.current && Number(
|
227
181
|
((c = i == null ? void 0 : i.current) == null ? void 0 : c.minOutputAmount) || ((m = i == null ? void 0 : i.current) == null ? void 0 : m.outputAmountDisplay)
|
228
|
-
) !== Number((
|
229
|
-
}, [
|
182
|
+
) !== Number((r == null ? void 0 : r.minOutputAmount) || (r == null ? void 0 : r.outputAmountDisplay)) && (i.current = r);
|
183
|
+
}, [r]), v(() => {
|
230
184
|
w(!0);
|
231
185
|
}, []);
|
232
186
|
function e() {
|
@@ -235,12 +189,12 @@ function le({
|
|
235
189
|
function u() {
|
236
190
|
t(!1);
|
237
191
|
}
|
238
|
-
return /* @__PURE__ */
|
192
|
+
return /* @__PURE__ */ n(
|
239
193
|
ee,
|
240
194
|
{
|
241
195
|
handleOpenExchange: e,
|
242
196
|
amount: a,
|
243
|
-
route:
|
197
|
+
route: r,
|
244
198
|
resetAmount: f,
|
245
199
|
resetBalance: d,
|
246
200
|
setExchange: u
|
@@ -1,23 +1,23 @@
|
|
1
1
|
import { jsxs as G, jsx as M, Fragment as Ne } from "react/jsx-runtime";
|
2
|
-
import { T as Lb } from "./Tooltip-
|
2
|
+
import { T as Lb } from "./Tooltip-DX--M-2s.js";
|
3
3
|
import { R as Bb } from "./index-CDq3vNnP.js";
|
4
|
-
import { u as V1, L as Wd, H as X1, M as Y1, a as Z1, P as J1, S as Q1 } from "./hamburger-
|
5
|
-
import { r as Fb, a as ex, b as tx, B as rx, i as jf, u as Ub, C as nx, c as vo, f as ax, d as ix } from "./useRegisterError-
|
6
|
-
import { g as jt, b as tt, _ as It, d as oe, s as mt, e as Z, f as ot, h as $t, r as If, p as ge, P as A, i as Wt, j as it, u as Pr, a as Oi, c as _i, k as fa, m as de, l as $f } from "./index-
|
4
|
+
import { u as V1, L as Wd, H as X1, M as Y1, a as Z1, P as J1, S as Q1 } from "./hamburger-adHT75Tv.js";
|
5
|
+
import { r as Fb, a as ex, b as tx, B as rx, i as jf, u as Ub, C as nx, c as vo, f as ax, d as ix } from "./useRegisterError-BIERR-27.js";
|
6
|
+
import { g as jt, b as tt, _ as It, d as oe, s as mt, e as Z, f as ot, h as $t, r as If, p as ge, P as A, i as Wt, j as it, u as Pr, a as Oi, c as _i, k as fa, m as de, l as $f } from "./index-B9Yj3lNG.js";
|
7
7
|
import * as Oe from "react";
|
8
8
|
import E, { useState as ke, useEffect as ze, isValidElement as ut, Children as ir, PureComponent as Rt, forwardRef as Wb, useRef as Ca, useImperativeHandle as ox, useCallback as ux, useMemo as Bt, cloneElement as Ae, createElement as Hb, useContext as Si, createContext as pr, Component as sx } from "react";
|
9
|
-
import { S as cx } from "./index-
|
9
|
+
import { S as cx } from "./index-Dtl4ODqT.js";
|
10
10
|
import { useAccount as Cr } from "wagmi";
|
11
11
|
import { useDynamicContext as Ai, useIsLoggedIn as Pi } from "@dynamic-labs/sdk-react-core";
|
12
12
|
import { useQuery as Ti } from "@tanstack/react-query";
|
13
|
-
import { D as zb, S as lx } from "./down-
|
13
|
+
import { D as zb, S as lx } from "./down-CSXSe02P.js";
|
14
14
|
import { useAccount as Rf } from "graz";
|
15
|
-
import { B as Gb } from "./getChainIds-
|
15
|
+
import { B as Gb } from "./getChainIds-dbxa6OPC.js";
|
16
16
|
import { t as fr } from "./truncate-D9t92mVX.js";
|
17
17
|
import { S as Hd, a as zd } from "./sortDown-CjBaDQTU.js";
|
18
|
-
import { O as Gd } from "./index-
|
19
|
-
import { u as fx } from "./Grow-
|
20
|
-
import { c as Nf } from "./index-
|
18
|
+
import { O as Gd } from "./index-DZx5rYk6.js";
|
19
|
+
import { u as fx } from "./Grow-5d7ST43Z.js";
|
20
|
+
import { c as Nf } from "./index-D35_epCA.js";
|
21
21
|
function dx(e) {
|
22
22
|
return jt("PrivateSwitchBase", e);
|
23
23
|
}
|
@@ -1386,55 +1386,27 @@ function hl() {
|
|
1386
1386
|
TronLink: c
|
1387
1387
|
};
|
1388
1388
|
}
|
1389
|
-
function dO({
|
1390
|
-
walletDetails: e,
|
1391
|
-
walletName: t,
|
1392
|
-
i: r
|
1393
|
-
}) {
|
1389
|
+
function dO({ walletDetails: e, walletName: t, i: r }) {
|
1394
1390
|
var h;
|
1395
1391
|
const [n, a] = ke(null), { address: i, chain: o, data: u, disconnect: s, ...c } = e, f = !!n, { connector: l } = Cr();
|
1396
|
-
return /* @__PURE__ */ M(Ne, { children: /* @__PURE__ */ G(
|
1397
|
-
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1411
|
-
{
|
1412
|
-
src: hl()[t] || l.icon,
|
1413
|
-
width: 26,
|
1414
|
-
height: 26,
|
1415
|
-
className: "bw-border bw-max-w-[26px] bw-max-h-[26px] bw-min-w-[26px] bw-min-h-[26px] bw-border-border-primary bw-rounded-[50%] bw-bg-background-coin"
|
1416
|
-
}
|
1417
|
-
) : /* @__PURE__ */ M(Ne, {}),
|
1418
|
-
/* @__PURE__ */ M("p", { className: "bw-text-text-primary bw-text-xs bw-font-normal", children: (i == null ? void 0 : i.substring(0, 4)) + "..." + (i == null ? void 0 : i.substring(i.length - 4, i.length)) }),
|
1419
|
-
/* @__PURE__ */ M(
|
1420
|
-
"div",
|
1421
|
-
{
|
1422
|
-
onClick: () => {
|
1423
|
-
s();
|
1424
|
-
},
|
1425
|
-
children: /* @__PURE__ */ M(oO, { fill: "var(--tw-text-secondary)" })
|
1426
|
-
}
|
1427
|
-
)
|
1428
|
-
]
|
1429
|
-
}
|
1430
|
-
) });
|
1392
|
+
return /* @__PURE__ */ M(Ne, { children: /* @__PURE__ */ G("button", { "aria-controls": f ? "basic-menu" : void 0, "aria-haspopup": "true", "aria-expanded": f ? "true" : void 0, onClick: (y) => {
|
1393
|
+
a(y.currentTarget);
|
1394
|
+
}, id: "basic-button", style: { fontSize: "12px" }, className: `bw-bg-background-container ${r ? "bw-border-0 " : " bw-border-0 bw-border-b-[0.5px] bw-border-border-primary"} bw-flex bw-items-center bw-justify-between bw-py-2 bw-gap-x-1 bw-w-full `, children: [
|
1395
|
+
(h = hl()) != null && h[t] || l.icon ? /* @__PURE__ */ M("img", { src: hl()[t] || l.icon, width: 26, height: 26, className: "bw-border bw-max-w-[26px] bw-max-h-[26px] bw-min-w-[26px] bw-min-h-[26px] bw-border-border-primary bw-rounded-[50%] bw-bg-background-secondary" }) : /* @__PURE__ */ M(Ne, {}),
|
1396
|
+
/* @__PURE__ */ M("p", { className: "bw-text-text-primary bw-text-xs bw-font-normal", children: (i == null ? void 0 : i.substring(0, 4)) + "..." + (i == null ? void 0 : i.substring(i.length - 4, i.length)) }),
|
1397
|
+
/* @__PURE__ */ M(
|
1398
|
+
"div",
|
1399
|
+
{
|
1400
|
+
onClick: () => {
|
1401
|
+
s();
|
1402
|
+
},
|
1403
|
+
children: /* @__PURE__ */ M(oO, { fill: "var(--tw-text-secondary)" })
|
1404
|
+
}
|
1405
|
+
)
|
1406
|
+
] }) });
|
1431
1407
|
}
|
1432
1408
|
function pO() {
|
1433
|
-
const [e, t] = E.useState(null), [r, n] = E.useState([]), a = !!e, { primaryWallet: i, handleLogOut: o } = Ai(), u = Pi(), { connector: s } = Cr(), {
|
1434
|
-
address: c,
|
1435
|
-
connected: f,
|
1436
|
-
disconnect: l
|
1437
|
-
} = Oi(), { isConnected: d } = Cr(), { isConnected: h } = Rf(), { getWallet: y } = Ub({}), v = (w) => {
|
1409
|
+
const [e, t] = E.useState(null), [r, n] = E.useState([]), a = !!e, { primaryWallet: i, handleLogOut: o } = Ai(), u = Pi(), { connector: s } = Cr(), { address: c, connected: f, disconnect: l } = Oi(), { isConnected: d } = Cr(), { isConnected: h } = Rf(), { getWallet: y } = Ub({}), v = (w) => {
|
1438
1410
|
t(w.currentTarget);
|
1439
1411
|
}, p = () => {
|
1440
1412
|
t(null);
|
@@ -1458,42 +1430,19 @@ function pO() {
|
|
1458
1430
|
const g = !d && !f && !u && !h;
|
1459
1431
|
return /* @__PURE__ */ G(Ne, { children: [
|
1460
1432
|
/* @__PURE__ */ G("div", { className: "bw-flex bw-items-center bw-gap-x-1 bw-justify-center bw-w-max ", children: [
|
1461
|
-
/* @__PURE__ */ G(
|
1462
|
-
"
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
children: [
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
|
1473
|
-
|
1474
|
-
src: ((x = hl()) == null ? void 0 : x[w.name]) || (s == null ? void 0 : s.icon),
|
1475
|
-
width: 26,
|
1476
|
-
height: 26,
|
1477
|
-
alt: "img",
|
1478
|
-
className: "bw-border bw-max-w-[26px] bw-max-h-[26px] bw-min-w-[26px] bw-min-h-[26px] bw-ml-[-10px] bw-border-border-primary bw-rounded-[50%] bw-bg-background-coin"
|
1479
|
-
}
|
1480
|
-
);
|
1481
|
-
}),
|
1482
|
-
r.length > 3 ? /* @__PURE__ */ G("div", { className: "bw-w-[26px] bw-h-[26px] bw-border bw-border-border-primary bw-ml-[-10px] bw-text-sm bw-font-medium bw-flex bw-items-center bw-justify-center bw-rounded-[50%] bw-bg-background-coin", children: [
|
1483
|
-
"+",
|
1484
|
-
r.length - 3
|
1485
|
-
] }) : /* @__PURE__ */ M(Ne, {})
|
1486
|
-
] }),
|
1487
|
-
g ? /* @__PURE__ */ M(Ne, {}) : /* @__PURE__ */ M(
|
1488
|
-
"div",
|
1489
|
-
{
|
1490
|
-
className: `${a ? "bw-rotate-180" : ""} bw-absolute bw-right-2 bw-ml-auto`,
|
1491
|
-
children: /* @__PURE__ */ M(zb, { fill: "var(--tw-text-primary)" })
|
1492
|
-
}
|
1493
|
-
)
|
1494
|
-
]
|
1495
|
-
}
|
1496
|
-
),
|
1433
|
+
/* @__PURE__ */ G("button", { id: "connect-wallet", onClick: v, className: " bw-flex bw-relative bw-items-center bw-justify-center bw-w-[135px] bw-h-[35px] bw-text-sm bw-font-medium bw-px-2 bw-rounded-2xl bw-border-[1.5px] bw-border-border-primary bw-bg-background-container bw-text-text-primary", children: [
|
1434
|
+
/* @__PURE__ */ G("div", { className: "bw-flex bw-items-center bw-justify-center", children: [
|
1435
|
+
r.length === 0 ? /* @__PURE__ */ M("p", { className: "bw-w-full ", children: "Connect Wallets" }) : r.map((w) => {
|
1436
|
+
var x;
|
1437
|
+
return /* @__PURE__ */ M("img", { src: ((x = hl()) == null ? void 0 : x[w.name]) || (s == null ? void 0 : s.icon), width: 26, height: 26, alt: "img", className: "bw-border bw-max-w-[26px] bw-max-h-[26px] bw-min-w-[26px] bw-min-h-[26px] bw-ml-[-10px] bw-border-border-primary bw-rounded-[50%] bw-bg-background-secondary" });
|
1438
|
+
}),
|
1439
|
+
r.length > 3 ? /* @__PURE__ */ G("div", { className: "bw-w-[26px] bw-h-[26px] bw-border bw-border-border-primary bw-ml-[-10px] bw-text-sm bw-font-medium bw-flex bw-items-center bw-justify-center bw-rounded-[50%] bw-bg-background-secondary", children: [
|
1440
|
+
"+",
|
1441
|
+
r.length - 3
|
1442
|
+
] }) : /* @__PURE__ */ M(Ne, {})
|
1443
|
+
] }),
|
1444
|
+
g ? /* @__PURE__ */ M(Ne, {}) : /* @__PURE__ */ M("div", { className: `${a ? "bw-rotate-180" : ""} bw-absolute bw-right-2 bw-ml-auto`, children: /* @__PURE__ */ M(zb, { fill: "var(--tw-text-primary)" }) })
|
1445
|
+
] }),
|
1497
1446
|
/* @__PURE__ */ M(Qb, { wallet: "connected", isNoWallet: g })
|
1498
1447
|
] }),
|
1499
1448
|
/* @__PURE__ */ M(
|
@@ -1513,22 +1462,7 @@ function pO() {
|
|
1513
1462
|
}
|
1514
1463
|
},
|
1515
1464
|
elevation: 0,
|
1516
|
-
children: /* @__PURE__ */ M(Z1, { className: "bw-bg-background-container bw-py-0 bw-border bw-w-[135px] bw-rounded-md bw-border-border-primary ", children: r.map((w, x, _) => /* @__PURE__ */ M(
|
1517
|
-
kf,
|
1518
|
-
{
|
1519
|
-
className: "bw-py-0 bw-px-1 bw-justify-center hover:bw-bg-transparent ",
|
1520
|
-
onClick: p,
|
1521
|
-
children: /* @__PURE__ */ M(
|
1522
|
-
dO,
|
1523
|
-
{
|
1524
|
-
walletName: w.name,
|
1525
|
-
walletDetails: y(w),
|
1526
|
-
i: x == _.length - 1
|
1527
|
-
}
|
1528
|
-
)
|
1529
|
-
},
|
1530
|
-
x
|
1531
|
-
)) })
|
1465
|
+
children: /* @__PURE__ */ M(Z1, { className: "bw-bg-background-container bw-py-0 bw-border bw-w-[135px] bw-rounded-md bw-border-border-primary ", children: r.map((w, x, _) => /* @__PURE__ */ M(kf, { className: "bw-py-0 bw-px-1 bw-justify-center hover:bw-bg-transparent ", onClick: p, children: /* @__PURE__ */ M(dO, { walletName: w.name, walletDetails: y(w), i: x == _.length - 1 }) }, x)) })
|
1532
1466
|
}
|
1533
1467
|
)
|
1534
1468
|
] });
|
@@ -18288,9 +18222,9 @@ function SD({ row: e, chainData: t }) {
|
|
18288
18222
|
},
|
18289
18223
|
children: [
|
18290
18224
|
/* @__PURE__ */ M(or, { className: "bw-border-b bw-pl-1 bw-bg-background-container bw-border-border-primary bw-text-xs bw-font-bold bw-text-text-primary", component: "th", scope: "row", children: /* @__PURE__ */ G("div", { className: "bw-flex bw-items-center bw-gap-x-2", children: [
|
18291
|
-
/* @__PURE__ */ G("div", { className: `bw-rounded-[50%] bw-relative bw-border bw-border-border-primary bw-w-max bw-h-max ${(o = e == null ? void 0 : e.asset) != null && o.image ? "bw-bg-background-
|
18225
|
+
/* @__PURE__ */ G("div", { className: `bw-rounded-[50%] bw-relative bw-border bw-border-border-primary bw-w-max bw-h-max ${(o = e == null ? void 0 : e.asset) != null && o.image ? "bw-bg-background-secondary" : ""}`, children: [
|
18292
18226
|
(u = e == null ? void 0 : e.asset) != null && u.image ? /* @__PURE__ */ M("img", { src: e.asset.image, className: "bw-rounded-[50%] bw-max-w-[25px] bw-object-contain bw-min-w-[25px] bw-max-h-[25px] bw-min-h-[25px]", width: 25, height: 25 }) : /* @__PURE__ */ M("img", { src: r, className: "bw-rounded-[50%] bw-min-w-[25px] bw-max-h-[25px] bw-min-h-[25px]", width: 25, height: 25 }),
|
18293
|
-
/* @__PURE__ */ M("div", { className: `bw-absolute bw-border bw-border-border-primary bw-rounded-[50%] bw-right-[-5px] bw-bg-background-
|
18227
|
+
/* @__PURE__ */ M("div", { className: `bw-absolute bw-border bw-border-border-primary bw-rounded-[50%] bw-right-[-5px] bw-bg-background-secondary bw-top-[60%] ${(c = t[(s = e == null ? void 0 : e.asset) == null ? void 0 : s.chainId]) != null && c.image ? "bw-bg-background-secondary" : ""}`, children: (l = t[(f = e == null ? void 0 : e.asset) == null ? void 0 : f.chainId]) != null && l.image ? /* @__PURE__ */ M("img", { src: t[e.asset.chainId].image, className: "bw-rounded-[50%] bw-min-w-[16px] bw-max-h-[16px] bw-min-h-[12px]", width: 16, height: 16 }) : /* @__PURE__ */ M("img", { src: r, className: "bw-rounded-[50%] bw-min-w-[12px] bw-max-h-[12px] bw-min-h-[12px]", width: 16, height: 16 }) })
|
18294
18228
|
] }),
|
18295
18229
|
/* @__PURE__ */ G("div", { children: [
|
18296
18230
|
/* @__PURE__ */ M("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: ((h = (d = e == null ? void 0 : e.asset) == null ? void 0 : d.name) == null ? void 0 : h.length) > 15 ? /* @__PURE__ */ M(_D, { name: (y = e == null ? void 0 : e.asset) == null ? void 0 : y.name, children: /* @__PURE__ */ M("p", { className: "bw-text-text-primary bw-text-xs bw-font-bold", children: ((v = e == null ? void 0 : e.asset) == null ? void 0 : v.name.substring(0, 15)) + "..." }) }) : /* @__PURE__ */ M("p", { className: "bw-text-text-primary bw-text-xs bw-font-bold", children: (p = e == null ? void 0 : e.asset) == null ? void 0 : p.name }) }),
|
@@ -1,22 +1,22 @@
|
|
1
1
|
import { jsx as u, jsxs as B, Fragment as Ke } from "react/jsx-runtime";
|
2
|
-
import { a as to, _ as yr, e as wr, T as no, g as vr, h as oo, b as ro, j as Gt, k as Sn, r as xr, B as Cr, u as ao, i as Dr, d as Sr } from "./useRegisterError-
|
3
|
-
import { P as Zt, i as kr, b as kn, F as so, u as We, f as Qt, L as Tt, O as Pr, c as Mr, I as Rr, S as Or, d as Tr, H as Ir } from "./hamburger-
|
4
|
-
import { n as Vr, o as Nr, q as Fr, p as ie, _ as te, d as f, P as t, b as Se, g as Me, i as Re, s as _, e as le, f as se, h as Oe, j as De, r as Er, t as Ar, v as ge, w as it, L as $r, u as Ce, c as Xt, S as Lr, l as Br } from "./index-
|
2
|
+
import { a as to, _ as yr, e as wr, T as no, g as vr, h as oo, b as ro, j as Gt, k as Sn, r as xr, B as Cr, u as ao, i as Dr, d as Sr } from "./useRegisterError-BIERR-27.js";
|
3
|
+
import { P as Zt, i as kr, b as kn, F as so, u as We, f as Qt, L as Tt, O as Pr, c as Mr, I as Rr, S as Or, d as Tr, H as Ir } from "./hamburger-adHT75Tv.js";
|
4
|
+
import { n as Vr, o as Nr, q as Fr, p as ie, _ as te, d as f, P as t, b as Se, g as Me, i as Re, s as _, e as le, f as se, h as Oe, j as De, r as Er, t as Ar, v as ge, w as it, L as $r, u as Ce, c as Xt, S as Lr, l as Br } from "./index-B9Yj3lNG.js";
|
5
5
|
import * as b from "react";
|
6
6
|
import Pn, { useState as Ye, useEffect as lt, useRef as jr } from "react";
|
7
7
|
import { useQuery as io, useQueryClient as zr, useInfiniteQuery as Wr } from "@tanstack/react-query";
|
8
8
|
import { useAccount as lo } from "wagmi";
|
9
9
|
import { useDynamicContext as co } from "@dynamic-labs/sdk-react-core";
|
10
10
|
import { useAccount as uo } from "graz";
|
11
|
-
import { T as Qe, S as _r } from "./index-
|
12
|
-
import { c as $e } from "./index-
|
13
|
-
import { B as wt, F as xt, M as qr, a as Hr, e as Ur, T as po, b as Yr } from "./getChainIds-
|
14
|
-
import { a as fo, b as Le, G as Kr, P as Gr } from "./Grow-
|
15
|
-
import { B as Pt, u as Zr } from "./index-
|
16
|
-
import { u as Qr } from "./unsupportedProp-
|
11
|
+
import { T as Qe, S as _r } from "./index-Dtl4ODqT.js";
|
12
|
+
import { c as $e } from "./index-D35_epCA.js";
|
13
|
+
import { B as wt, F as xt, M as qr, a as Hr, e as Ur, T as po, b as Yr } from "./getChainIds-dbxa6OPC.js";
|
14
|
+
import { a as fo, b as Le, G as Kr, P as Gr } from "./Grow-5d7ST43Z.js";
|
15
|
+
import { B as Pt, u as Zr } from "./index-DFOB2nyL.js";
|
16
|
+
import { u as Qr } from "./unsupportedProp-DFyakPn7.js";
|
17
17
|
import { S as Xr } from "./shareicon-CG3v7iKI.js";
|
18
|
-
import { O as Mn } from "./index-
|
19
|
-
import { L as Jr } from "./index.es-
|
18
|
+
import { O as Mn } from "./index-DZx5rYk6.js";
|
19
|
+
import { L as Jr } from "./index.es-ufjHqxj5.js";
|
20
20
|
function ea(e) {
|
21
21
|
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
22
22
|
}
|
@@ -12376,13 +12376,7 @@ function cu() {
|
|
12376
12376
|
/* @__PURE__ */ u("p", { className: "bw-text-text-secondary bw-text-center bw-text-xs bw-font-normal bw-tracking-[0.3em]", children: "REWARDS EARNED" }),
|
12377
12377
|
/* @__PURE__ */ B("div", { className: "bw-flex bw-justify-center bw-gap-x-2 bw-items-center", children: [
|
12378
12378
|
/* @__PURE__ */ u("div", { className: "bw-w-[19px] bw-h-[19px]", children: /* @__PURE__ */ u(cr, {}) }),
|
12379
|
-
c.isLoading ? /* @__PURE__ */ u(
|
12380
|
-
Lr,
|
12381
|
-
{
|
12382
|
-
className: "bw-h-[32px] bw-rounded-xl bw-bg-background-loaderbar bw-w-[70px]",
|
12383
|
-
variant: "rectangular"
|
12384
|
-
}
|
12385
|
-
) : /* @__PURE__ */ B("p", { className: "bw-text-2xl bw-text-center bw-font-bold bw-text-text-primary", children: [
|
12379
|
+
c.isLoading ? /* @__PURE__ */ u(Lr, { className: "bw-h-[32px] bw-rounded-xl bw-bg-background-secondary bw-w-[70px]", variant: "rectangular" }) : /* @__PURE__ */ B("p", { className: "bw-text-2xl bw-text-center bw-font-bold bw-text-text-primary", children: [
|
12386
12380
|
Yt(((d = (l = c == null ? void 0 : c.data) == null ? void 0 : l.data) == null ? void 0 : d.points) || 0, 8),
|
12387
12381
|
" pts"
|
12388
12382
|
] })
|
@@ -12414,30 +12408,10 @@ function cu() {
|
|
12414
12408
|
}
|
12415
12409
|
function du() {
|
12416
12410
|
return Ce((e) => e.configuration), /* @__PURE__ */ B("div", { className: "bw-w-[calc(100%+20px)] bw-flex bw-py-2 bw-ml-[-10px] bw-relative bw-h-max bw-mt-2 bw-justify-center bw-items-center ", children: [
|
12417
|
-
/* @__PURE__ */ B(
|
12418
|
-
"div",
|
12419
|
-
{
|
12420
|
-
|
12421
|
-
children: [
|
12422
|
-
/* @__PURE__ */ u(
|
12423
|
-
"div",
|
12424
|
-
{
|
12425
|
-
style: { mixBlendMode: "multiply" },
|
12426
|
-
className: "bw-mr-auto bw-absolute bw-left-0 bw-top-0",
|
12427
|
-
children: /* @__PURE__ */ u(iu, {})
|
12428
|
-
}
|
12429
|
-
),
|
12430
|
-
/* @__PURE__ */ u(
|
12431
|
-
"div",
|
12432
|
-
{
|
12433
|
-
style: { mixBlendMode: "multiply" },
|
12434
|
-
className: "bw-ml-auto bw-absolute bw-right-0 bw-top-0",
|
12435
|
-
children: /* @__PURE__ */ u(lu, {})
|
12436
|
-
}
|
12437
|
-
)
|
12438
|
-
]
|
12439
|
-
}
|
12440
|
-
),
|
12411
|
+
/* @__PURE__ */ B("div", { className: "bw-w-full bw-overflow-y-hidden bw-absolute bw-left-0 bw-h-full bw-bg-background-networkcard", children: [
|
12412
|
+
/* @__PURE__ */ u("div", { style: { mixBlendMode: "multiply" }, className: "bw-mr-auto bw-absolute bw-left-0 bw-top-0", children: /* @__PURE__ */ u(iu, {}) }),
|
12413
|
+
/* @__PURE__ */ u("div", { style: { mixBlendMode: "multiply" }, className: "bw-ml-auto bw-absolute bw-right-0 bw-top-0", children: /* @__PURE__ */ u(lu, {}) })
|
12414
|
+
] }),
|
12441
12415
|
/* @__PURE__ */ u(cu, {})
|
12442
12416
|
] });
|
12443
12417
|
}
|
@@ -13097,7 +13071,7 @@ function Pu({ array: e, i: n, item: o, chainData: r, historyData: a }) {
|
|
13097
13071
|
] }),
|
13098
13072
|
/* @__PURE__ */ B("div", { className: "bw-flex bw-mt-1 bw-items-center bw-gap-x-1", children: [
|
13099
13073
|
/* @__PURE__ */ u("p", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: ((k = r == null ? void 0 : r[o.from.chainId]) == null ? void 0 : k.name) || "" }),
|
13100
|
-
(S = r == null ? void 0 : r[o.from.chainId]) != null && S.image ? /* @__PURE__ */ u("img", { src: r[o.from.chainId].image, width: 16, height: 16, className: "bw-rounded-[50%] bw-border bw-bg-background-
|
13074
|
+
(S = r == null ? void 0 : r[o.from.chainId]) != null && S.image ? /* @__PURE__ */ u("img", { src: r[o.from.chainId].image, width: 16, height: 16, className: "bw-rounded-[50%] bw-border bw-bg-background-secondary bw-border-border-primary" }) : /* @__PURE__ */ u("img", { src: p, width: 16, height: 16, className: "bw-rounded-[50%] bw-border bw-border-border-primary" })
|
13101
13075
|
] })
|
13102
13076
|
] }),
|
13103
13077
|
/* @__PURE__ */ B("div", { className: "bw-flex bw-items-center bw-justify-center bw-flex-[0.8] bw-gap-x-4", children: [
|
@@ -13106,9 +13080,9 @@ function Pu({ array: e, i: n, item: o, chainData: r, historyData: a }) {
|
|
13106
13080
|
/* @__PURE__ */ u(Ot, {})
|
13107
13081
|
] }),
|
13108
13082
|
/* @__PURE__ */ B("div", { className: "bw-w-[48px] bw-h-[48px] bw-flex bw-justify-center bw-items-center bw-relative bw-rounded-[50%] bw-border-[0.5px] bw-border-border-primary", children: [
|
13109
|
-
o.from.image ? /* @__PURE__ */ u("img", { src: o.from.image, width: 25, height: 25, alt: "img", className: "bw-rounded-[50%] bw-max-w-[25px] bw-max-h-[25px] bw-object-contain bw-mt-1 bw-bg-background-
|
13083
|
+
o.from.image ? /* @__PURE__ */ u("img", { src: o.from.image, width: 25, height: 25, alt: "img", className: "bw-rounded-[50%] bw-max-w-[25px] bw-max-h-[25px] bw-object-contain bw-mt-1 bw-bg-background-secondary bw-absolute bw-left-[-25%] bw-border bw-border-border-primary" }) : /* @__PURE__ */ u("img", { src: p, width: 25, height: 25, className: "bw-rounded-[50%] bw-mt-1 bw-absolute bw-left-[-25%] bw-border bw-border-border-primary" }),
|
13110
13084
|
/* @__PURE__ */ u(ku, { status: o.status }),
|
13111
|
-
o.to.image ? /* @__PURE__ */ u("img", { src: o.to.image, width: 25, height: 25, alt: "img", className: "bw-rounded-[50%] bw-max-w-[25px] bw-max-h-[25px] bw-object-contain bw-mt-1 bw-bg-background-
|
13085
|
+
o.to.image ? /* @__PURE__ */ u("img", { src: o.to.image, width: 25, height: 25, alt: "img", className: "bw-rounded-[50%] bw-max-w-[25px] bw-max-h-[25px] bw-object-contain bw-mt-1 bw-bg-background-secondary bw-absolute bw-right-[-25%] bw-border bw-border-border-primary" }) : /* @__PURE__ */ u("img", { src: p, width: 25, height: 25, className: "bw-rounded-[50%] bw-mt-1 bw-absolute bw-right-[-25%] bw-border bw-border-border-primary" })
|
13112
13086
|
] }),
|
13113
13087
|
/* @__PURE__ */ B("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
13114
13088
|
/* @__PURE__ */ u(Ot, {}),
|
@@ -13121,7 +13095,7 @@ function Pu({ array: e, i: n, item: o, chainData: r, historyData: a }) {
|
|
13121
13095
|
/* @__PURE__ */ u("span", { className: "bw-text-sm bw-font-normal ", children: o.to.symbol })
|
13122
13096
|
] }),
|
13123
13097
|
/* @__PURE__ */ B("div", { className: "bw-flex bw-mt-1 bw-items-center bw-gap-x-1", children: [
|
13124
|
-
(V = r == null ? void 0 : r[o.to.chainId]) != null && V.image ? /* @__PURE__ */ u("img", { src: r[o.to.chainId].image, width: 16, height: 16, className: "bw-rounded-[50%] bw-bg-background-
|
13098
|
+
(V = r == null ? void 0 : r[o.to.chainId]) != null && V.image ? /* @__PURE__ */ u("img", { src: r[o.to.chainId].image, width: 16, height: 16, className: "bw-rounded-[50%] bw-bg-background-secondary bw-border bw-border-border-primary" }) : /* @__PURE__ */ u("img", { src: p, width: 16, height: 16, className: "bw-rounded-[50%] bw-border bw-border-border-primary" }),
|
13125
13099
|
/* @__PURE__ */ u("p", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: ((T = r == null ? void 0 : r[o.to.chainId]) == null ? void 0 : T.name) || "" })
|
13126
13100
|
] })
|
13127
13101
|
] })
|
@@ -13493,18 +13467,8 @@ function Eu({ historyData: e, value: n, addresses: o }) {
|
|
13493
13467
|
}, [i.data]), lt(() => {
|
13494
13468
|
s.current && s.current.scrollTo(0, 0);
|
13495
13469
|
}, [n]), /* @__PURE__ */ u("div", { ref: s, className: "bw-w-full bw-h-[400px] bw-overflow-y-auto", children: o.length ? e.isLoading ? /* @__PURE__ */ u("div", { className: "bw-w-[36px] bw-h-[36px] bw-w-full bw-mt-6 bw-flex bw-justify-center", children: /* @__PURE__ */ u(Jr, { animationData: au, loop: !0 }) }) : (l = (c = e.data) == null ? void 0 : c.pages) == null ? void 0 : l.map((d, p, m) => {
|
13496
|
-
var h;
|
13497
|
-
return d.data.length ? (
|
13498
|
-
Pu,
|
13499
|
-
{
|
13500
|
-
item: C,
|
13501
|
-
chainData: r,
|
13502
|
-
historyData: e,
|
13503
|
-
array: v,
|
13504
|
-
i: g
|
13505
|
-
},
|
13506
|
-
g
|
13507
|
-
)) : /* @__PURE__ */ u(Vu, { value: n });
|
13470
|
+
var h, C;
|
13471
|
+
return (h = d.data) != null && h.length ? (C = d == null ? void 0 : d.data) == null ? void 0 : C.map((g, v, y) => /* @__PURE__ */ u(Pu, { item: g, chainData: r, historyData: e, array: y, i: v }, v)) : /* @__PURE__ */ u(Vu, { value: n });
|
13508
13472
|
}) : /* @__PURE__ */ u(Fu, {}) });
|
13509
13473
|
}
|
13510
13474
|
function Au() {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { m as po, p as ke, a4 as Bh, k as It } from "./index-
|
1
|
+
import { m as po, p as ke, a4 as Bh, k as It } from "./index-B9Yj3lNG.js";
|
2
2
|
import { B as _e } from "./index-DTish3yr.js";
|
3
3
|
import { recoverAddress as id } from "viem";
|
4
4
|
const H = globalThis || void 0 || self;
|
@@ -11376,7 +11376,7 @@ let AS = class Vu {
|
|
11376
11376
|
}
|
11377
11377
|
};
|
11378
11378
|
const xS = AS, CS = "wc", TS = "ethereum_provider", RS = `${CS}@2:${TS}:`, NS = "https://rpc.walletconnect.org/v1/", gs = ["eth_sendTransaction", "personal_sign"], Ku = ["eth_accounts", "eth_requestAccounts", "eth_sendRawTransaction", "eth_sign", "eth_signTransaction", "eth_signTypedData", "eth_signTypedData_v3", "eth_signTypedData_v4", "eth_sendTransaction", "personal_sign", "wallet_switchEthereumChain", "wallet_addEthereumChain", "wallet_getPermissions", "wallet_requestPermissions", "wallet_registerOnboarding", "wallet_watchAsset", "wallet_scanQRCode", "wallet_sendCalls", "wallet_getCapabilities", "wallet_getCallsStatus", "wallet_showCallsStatus"], ys = ["chainChanged", "accountsChanged"], Wu = ["chainChanged", "accountsChanged", "message", "disconnect", "connect"], FS = async () => {
|
11379
|
-
const { createAppKit: r } = await import("./core-
|
11379
|
+
const { createAppKit: r } = await import("./core-D4HnN6eG.js").then((e) => e.G);
|
11380
11380
|
return r;
|
11381
11381
|
};
|
11382
11382
|
var jS = Object.defineProperty, DS = Object.defineProperties, BS = Object.getOwnPropertyDescriptors, Fh = Object.getOwnPropertySymbols, LS = Object.prototype.hasOwnProperty, US = Object.prototype.propertyIsEnumerable, uo = (r, e, t) => e in r ? jS(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, tr = (r, e) => {
|
package/dist/index.es.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { m as C } from "./core-
|
1
|
+
import { m as C } from "./core-D4HnN6eG.js";
|
2
2
|
const t = C`<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
3
3
|
<path d="M9.125 6.875C9.125 6.57833 9.21298 6.28832 9.3778 6.04165C9.54262 5.79497 9.77689 5.60271 10.051 5.48918C10.3251 5.37565 10.6267 5.34594 10.9176 5.40382C11.2086 5.4617 11.4759 5.60456 11.6857 5.81434C11.8954 6.02412 12.0383 6.29139 12.0962 6.58236C12.1541 6.87334 12.1244 7.17494 12.0108 7.44903C11.8973 7.72311 11.705 7.95738 11.4584 8.1222C11.2117 8.28703 10.9217 8.375 10.625 8.375C10.2272 8.375 9.84565 8.21696 9.56434 7.93566C9.28304 7.65436 9.125 7.27282 9.125 6.875ZM21.125 11C21.125 13.0025 20.5312 14.9601 19.4186 16.6251C18.3061 18.2902 16.7248 19.5879 14.8747 20.3543C13.0246 21.1206 10.9888 21.3211 9.02471 20.9305C7.06066 20.5398 5.25656 19.5755 3.84055 18.1595C2.42454 16.7435 1.46023 14.9393 1.06955 12.9753C0.678878 11.0112 0.879387 8.97543 1.64572 7.12533C2.41206 5.27523 3.70981 3.69392 5.37486 2.58137C7.0399 1.46882 8.99747 0.875 11 0.875C13.6844 0.877978 16.258 1.94567 18.1562 3.84383C20.0543 5.74199 21.122 8.3156 21.125 11ZM18.875 11C18.875 9.44247 18.4131 7.91992 17.5478 6.62488C16.6825 5.32985 15.4526 4.32049 14.0136 3.72445C12.5747 3.12841 10.9913 2.97246 9.46367 3.27632C7.93607 3.58017 6.53288 4.3302 5.43154 5.43153C4.3302 6.53287 3.58018 7.93606 3.27632 9.46366C2.97246 10.9913 3.12841 12.5747 3.72445 14.0136C4.32049 15.4526 5.32985 16.6825 6.62489 17.5478C7.91993 18.4131 9.44248 18.875 11 18.875C13.0879 18.8728 15.0896 18.0424 16.566 16.566C18.0424 15.0896 18.8728 13.0879 18.875 11ZM12.125 14.4387V11.375C12.125 10.8777 11.9275 10.4008 11.5758 10.0492C11.2242 9.69754 10.7473 9.5 10.25 9.5C9.98433 9.4996 9.72708 9.59325 9.52383 9.76435C9.32058 9.93544 9.18444 10.173 9.13952 10.4348C9.09461 10.6967 9.14381 10.966 9.27843 11.195C9.41304 11.4241 9.62438 11.5981 9.875 11.6863V14.75C9.875 15.2473 10.0725 15.7242 10.4242 16.0758C10.7758 16.4275 11.2527 16.625 11.75 16.625C12.0157 16.6254 12.2729 16.5318 12.4762 16.3607C12.6794 16.1896 12.8156 15.952 12.8605 15.6902C12.9054 15.4283 12.8562 15.159 12.7216 14.93C12.587 14.7009 12.3756 14.5269 12.125 14.4387Z" fill="currentColor"/>
|
4
4
|
</svg>`;
|