@blockend/widget 1.0.55-beta.1 → 1.0.55
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-D6S-NFxZ.js → AllRoutes-CInC9QGQ.js} +9 -9
- package/dist/{Box-DESo1bHm.js → Box-_vN-nB2g.js} +6 -6
- package/dist/EstGas-BaKv_yk7.js +20281 -0
- package/dist/{Grow-DzEr7XrA.js → Grow-CahJ50bG.js} +2 -2
- package/dist/{InputComp-GcnDqx_s.js → InputComp-BA0m0-BG.js} +3 -3
- package/dist/{LoadRoute-BmUgvDid.js → LoadRoute-myKaCOSm.js} +4 -4
- package/dist/{QuotesProgress-E5JnUMS0.js → QuotesProgress-p8uGXu3L.js} +1 -1
- package/dist/{SwapAsset-MBXcdeBf.js → SwapAsset-sqEVoQ3t.js} +1 -1
- package/dist/{Tooltip-DSAJT2x7.js → Tooltip-BrCb3x7_.js} +3 -3
- package/dist/TxnButton-D10GjiUs.js +223 -0
- package/dist/{add-BryKCrpI.js → add-VsfWD7ni.js} +1 -1
- package/dist/{all-wallets-BMVOK2Ci.js → all-wallets-BkUqFobk.js} +1 -1
- package/dist/{app-store-3WurbJdI.js → app-store-Dhz1I2UU.js} +1 -1
- package/dist/{apple-eM872Ubz.js → apple-B1A9FWmD.js} +1 -1
- package/dist/{arrow-bottom-HMc73fJ8.js → arrow-bottom-CU0SNN_M.js} +1 -1
- package/dist/{arrow-bottom-circle-B1N_R8Ux.js → arrow-bottom-circle-CkK0nZyv.js} +1 -1
- package/dist/{arrow-left-Q7GAZkD7.js → arrow-left-B3tHSyMd.js} +1 -1
- package/dist/{arrow-right-ft3TcIM3.js → arrow-right-C9GNeMpg.js} +1 -1
- package/dist/{arrow-top-C2xmF6tK.js → arrow-top-CROlaURs.js} +1 -1
- package/dist/{bank-Bk-2ZR5E.js → bank-C9ws6grO.js} +1 -1
- package/dist/{basic-CWrKgDAB.js → basic-CNZusk3T.js} +3 -3
- package/dist/{browser-BFB3TFfv.js → browser-CsDSjYxB.js} +1 -1
- package/dist/{card-DCx59si8.js → card-DEbxL9v9.js} +1 -1
- package/dist/{ccip-CXr08uP1.js → ccip-BzuzcsZy.js} +16 -16
- package/dist/{checkmark-BGsuJuhE.js → checkmark-DE5590E3.js} +1 -1
- package/dist/{checkmark-bold-DvjIl-51.js → checkmark-bold-QCiYoLBv.js} +1 -1
- package/dist/{chevron-bottom-DAEnG7QP.js → chevron-bottom-DwDL4YMH.js} +1 -1
- package/dist/{chevron-left-D33h2ppx.js → chevron-left-f-cfElLv.js} +1 -1
- package/dist/{chevron-right-C8Z_feNK.js → chevron-right-CUqumYdc.js} +1 -1
- package/dist/{chevron-top-DwDMd3p9.js → chevron-top-B51EfBCn.js} +1 -1
- package/dist/{chrome-store-B7ZDs2Fj.js → chrome-store-Bye9an43.js} +1 -1
- package/dist/{clock-DnELUxSR.js → clock-B7Sev0vn.js} +1 -1
- package/dist/{close-Dnt29Pss.js → close-0BVUAR_a.js} +1 -1
- package/dist/{coinPlaceholder-C09pzuXv.js → coinPlaceholder-BV86Cpoi.js} +1 -1
- package/dist/{compass-D8ZY16nH.js → compass-BG0JGmer.js} +1 -1
- package/dist/{copy-DEh4RBKI.js → copy-BK_ak0uV.js} +1 -1
- package/dist/{core-CgIQaiRa.js → core-CK5YGudk.js} +17 -16
- package/dist/{cursor-BtzkAOER.js → cursor-DYlGZYqP.js} +1 -1
- package/dist/{cursor-transparent-B0nCflmb.js → cursor-transparent-C66dlXx_.js} +1 -1
- package/dist/{desktop-toTG92uH.js → desktop-MPzP06em.js} +1 -1
- package/dist/{disconnect-C97lbAtY.js → disconnect-S1mgcbm2.js} +1 -1
- package/dist/{discord-BNJ3JePY.js → discord-C1lCIbjj.js} +1 -1
- package/dist/{down-BFx-Bg5Q.js → down-Bs8dpUrC.js} +2 -2
- package/dist/{etherscan-CK87TQMS.js → etherscan-QQa80RLT.js} +1 -1
- package/dist/{exclamation-triangle-LWnOk0uz.js → exclamation-triangle-4oHle7Ol.js} +1 -1
- package/dist/{extension-5eIZU28A.js → extension-B3zd6NTN.js} +1 -1
- package/dist/{external-link-DDlCfigP.js → external-link-DaiDaJke.js} +1 -1
- package/dist/{facebook-1lTMXKeH.js → facebook-BSHOu5Eh.js} +1 -1
- package/dist/{farcaster-Di2TUKlZ.js → farcaster-CNUiCN9L.js} +1 -1
- package/dist/{filters-B_THnHaX.js → filters-CDlQ6RDt.js} +1 -1
- package/dist/{getChainIds-CeLEUxe0.js → getChainIds-B0koox0j.js} +69 -69
- package/dist/getCosmosAddress-CCWtYVNX.js +9566 -0
- package/dist/{github-D5B1FE4K.js → github-B7OCLZiT.js} +1 -1
- package/dist/{google-C8_WSUfw.js → google-Cf3xXFpT.js} +1 -1
- package/dist/{hamburger-BzMrQx9y.js → hamburger-B0j3zDc0.js} +5 -5
- package/dist/{help-circle-C-ZOzjAP.js → help-circle-DP7zV3_w.js} +1 -1
- package/dist/{id-BynpKmej.js → id-BQRwktVK.js} +1 -1
- package/dist/{image-BRYUh760.js → image-DFBrbvvT.js} +1 -1
- package/dist/{index-BFUVWgoD.js → index-1Vs2kWG_.js} +78 -78
- package/dist/{index-DHYWnqST.js → index-BDzrNgTC.js} +1 -1
- package/dist/index-BmVN9MUZ.js +160 -0
- package/dist/{index-SkYFFVLL.js → index-CMAhUTez.js} +11 -11
- package/dist/{index-BK0BZT6j.js → index-CTGrN6JB.js} +2622 -2600
- package/dist/{index-A8ClQmZo.js → index-D1GIjZ4K.js} +1 -1
- package/dist/index-DRwDQTB-.js +29422 -0
- package/dist/index-DTish3yr.js +1014 -0
- package/dist/{index-DpHhW0_2.js → index-DpZHXmue.js} +2 -2
- package/dist/{index-Dnyeih-W.js → index-DrSY5n-x.js} +8 -11
- package/dist/{index-CN6pVc2G.js → index-FGz1V6AR.js} +241 -233
- package/dist/index-RtfOj4GQ.js +206 -0
- package/dist/{index.es-DB9y_DEM.js → index.es-BS6PwZoN.js} +1 -1
- package/dist/{index.es-vIyUKt0W.js → index.es-D0JK47eg.js} +26 -24
- package/dist/index.es.js +1 -1
- package/dist/{info-DSQyHS8b.js → info-C1ZJCPTD.js} +1 -1
- package/dist/{info-circle-BfpWcI4c.js → info-circle-Dhmi_tCI.js} +1 -1
- package/dist/{lightbulb-DEMYYsZd.js → lightbulb-0j0AYNED.js} +1 -1
- package/dist/{mail-DNZ2to_6.js → mail-BtTEWpBH.js} +1 -1
- package/dist/{mobile-qsyS8oMK.js → mobile-DvxVPngz.js} +1 -1
- package/dist/{more-CnBuKwll.js → more-B7Wl87te.js} +1 -1
- package/dist/{network-placeholder-DhJITakA.js → network-placeholder-9GbY6RXW.js} +1 -1
- package/dist/{nftPlaceholder-DD3-Cc9U.js → nftPlaceholder-omPs3Tyh.js} +1 -1
- package/dist/{off-CBApAdDk.js → off-DzwEOAXj.js} +1 -1
- package/dist/{play-store-DDoeRc-b.js → play-store-fB4OGgDD.js} +1 -1
- package/dist/{plus-C3J-XWCn.js → plus-QdziAxSu.js} +1 -1
- package/dist/{qr-code-CEoOYtHk.js → qr-code-C2U72CiI.js} +1 -1
- package/dist/{recycle-horizontal-BHJ_s9Yx.js → recycle-horizontal-Bl8nBo5T.js} +1 -1
- package/dist/{refresh-CtzOoHls.js → refresh-CHVcAm40.js} +1 -1
- package/dist/{reown-logo-BOj4YDUQ.js → reown-logo-C5CEAzfh.js} +1 -1
- package/dist/{search--Miza3A_.js → search-CRYtwGKs.js} +1 -1
- package/dist/{send-Bhl1lz4j.js → send-DgcEtdkH.js} +1 -1
- package/dist/{swapHorizontal-CCvKCngz.js → swapHorizontal-bGAC2ORL.js} +1 -1
- package/dist/{swapHorizontalBold-B90V-dXL.js → swapHorizontalBold-7AVtDAdB.js} +1 -1
- package/dist/{swapHorizontalMedium-CYjeHjnI.js → swapHorizontalMedium-BPEj2jrH.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-DSMWeXdW.js → swapHorizontalRoundedBold-KZW7Q7m8.js} +1 -1
- package/dist/{swapVertical-DOJUNIvk.js → swapVertical-R6wYRmxl.js} +1 -1
- package/dist/{telegram-CufEY_4d.js → telegram-BU7tcQ98.js} +1 -1
- package/dist/{three-dots-J2ngva7G.js → three-dots-DcRrr590.js} +1 -1
- package/dist/{twitch-B4vTKVf5.js → twitch-CiWBdFQ5.js} +1 -1
- package/dist/{twitterIcon-DLrxpAGg.js → twitterIcon-Dx4rfeax.js} +1 -1
- package/dist/{unsupportedProp-BLzY2-w_.js → unsupportedProp-I75ZFHZ3.js} +1 -1
- package/dist/{useRegisterError-Cf6oylnR.js → useRegisterError-BGuw8xn6.js} +1 -1
- package/dist/{verify-CbHqPQKs.js → verify-OIjFr-Yf.js} +1 -1
- package/dist/{verify-filled-CzKx9Cph.js → verify-filled-CuIbxxfK.js} +1 -1
- package/dist/{w3m-modal-DhpjK4cG.js → w3m-modal-C1jV1wrT.js} +2 -2
- package/dist/{wallet-CvIeO6On.js → wallet-Bk-xbtkS.js} +1 -1
- package/dist/{wallet-placeholder-BqELXTBj.js → wallet-placeholder-D74DpYqS.js} +1 -1
- package/dist/{walletconnect-BN4c4XQ5.js → walletconnect-BklYaQAX.js} +1 -1
- package/dist/{warning-circle--dqxXujk.js → warning-circle-DlDxhMDL.js} +1 -1
- package/dist/{x-CkCp5gtL.js → x-BNL67S5v.js} +1 -1
- package/package.json +2 -4
- package/dist/EstGas-Dy3XfCzY.js +0 -1496
- package/dist/TxnButton-Br8R19rF.js +0 -215
- package/dist/getCosmosAddress-B8s9Ycj4.js +0 -6075
- package/dist/index-C5bv1F_u.js +0 -48843
- package/dist/index-CZwuzz6v.js +0 -6712
- package/dist/index-krrwn6Pi.js +0 -206
@@ -0,0 +1,206 @@
|
|
1
|
+
import { jsxs as w, jsx as n, Fragment as A } from "react/jsx-runtime";
|
2
|
+
import _, { useContext as $, useState as E, useEffect as v, useRef as O } from "react";
|
3
|
+
import { a as U, T as J, H as K, b as L, c as V, E as W, d as X } from "./EstGas-BaKv_yk7.js";
|
4
|
+
import { u as l, l as Y } from "./index-DRwDQTB-.js";
|
5
|
+
import { i as M, C as Q, A as Z } from "./useRegisterError-BGuw8xn6.js";
|
6
|
+
import { B as R } from "./Box-_vN-nB2g.js";
|
7
|
+
function ee() {
|
8
|
+
var d, b, i, e, u, c, m, g, x, s, h, y, p, C;
|
9
|
+
const t = l((T) => T.persist), r = l((T) => T.configuration), { defaultCoin: a } = M;
|
10
|
+
let f = (i = (b = (d = t == null ? void 0 : t.route) == null ? void 0 : d.providerDetails) == null ? void 0 : b.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 Y.isEmpty(t.route) ? /* @__PURE__ */ n(A, {}) : /* @__PURE__ */ w("div", { className: "bw-relative bw-mt-4 bw-flex bw-justify-center ", children: [
|
12
|
+
/* @__PURE__ */ n(
|
13
|
+
"div",
|
14
|
+
{
|
15
|
+
style: {
|
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
|
+
},
|
18
|
+
className: "bw-w-[200px] bw-rounded-[50%] bw-absolute bw-right-auto bw-z-0 bw-left-auto bw-h-[40px]"
|
19
|
+
}
|
20
|
+
),
|
21
|
+
/* @__PURE__ */ w("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
|
+
" ",
|
23
|
+
/* @__PURE__ */ w("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__ */ n("span", { className: "bw-text-sm bw-font-light", children: "via" }),
|
25
|
+
" ",
|
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
|
+
((x = (g = t == null ? void 0 : t.route) == null ? void 0 : g.providerDetails) == null ? void 0 : x.name) || "",
|
28
|
+
": ",
|
29
|
+
(s = t == null ? void 0 : t.route) == null ? void 0 : s.protocolsUsed[0],
|
30
|
+
((y = (h = t == null ? void 0 : t.route) == null ? void 0 : h.protocolsUsed) == null ? void 0 : y.length) <= 1 ? "" : /* @__PURE__ */ w("span", { className: "bw-ml-1 bw-text-xs bw-font-normal bw-leading-6", children: [
|
31
|
+
`+${((C = (p = t == null ? void 0 : t.route) == null ? void 0 : p.protocolsUsed) == null ? void 0 : C.length) - 1}`,
|
32
|
+
" More"
|
33
|
+
] }),
|
34
|
+
" "
|
35
|
+
] }),
|
36
|
+
" "
|
37
|
+
] })
|
38
|
+
] });
|
39
|
+
}
|
40
|
+
let N;
|
41
|
+
function te() {
|
42
|
+
var u, c, m, g, x;
|
43
|
+
const t = l((s) => s.configuration), r = l((s) => s.persist), a = l((s) => s.setPersist), { isErrorMessage: f } = $(U), d = Math.floor(((/* @__PURE__ */ new Date()).getTime() - r.quoteStartTime) / 1e3);
|
44
|
+
let b = ((u = r == null ? void 0 : r.route) == null ? void 0 : u.deadline) || 60;
|
45
|
+
const [i, e] = E(b);
|
46
|
+
return v(() => {
|
47
|
+
d && e(b - d);
|
48
|
+
}, []), v(() => (N = setInterval(() => {
|
49
|
+
e((s) => {
|
50
|
+
var h;
|
51
|
+
return s <= 0 ? (clearInterval(N), a({
|
52
|
+
...(h = l.getState()) == null ? void 0 : h.persist,
|
53
|
+
isQuoteTimer: !1,
|
54
|
+
showAcceptQuote: !0,
|
55
|
+
quoteStartTime: (/* @__PURE__ */ new Date()).getTime()
|
56
|
+
}), 0) : s - 1;
|
57
|
+
});
|
58
|
+
}, 1e3), () => clearInterval(N)), []), v(() => {
|
59
|
+
(f || !r.isQuoteTimer) && clearInterval(N);
|
60
|
+
}, [f, r.isQuoteTimer]), !(r != null && r.hash) && r.quote === "enable" ? /* @__PURE__ */ w("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__ */ w("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
|
+
] }) }),
|
65
|
+
/* @__PURE__ */ w(
|
66
|
+
R,
|
67
|
+
{
|
68
|
+
sx: {
|
69
|
+
position: "relative",
|
70
|
+
display: "inline-flex"
|
71
|
+
},
|
72
|
+
children: [
|
73
|
+
/* @__PURE__ */ n(
|
74
|
+
Q,
|
75
|
+
{
|
76
|
+
variant: "determinate",
|
77
|
+
sx: {
|
78
|
+
color: "var(--tw-border-primary)"
|
79
|
+
},
|
80
|
+
size: 20,
|
81
|
+
thickness: 2,
|
82
|
+
value: 100
|
83
|
+
}
|
84
|
+
),
|
85
|
+
/* @__PURE__ */ n(
|
86
|
+
Q,
|
87
|
+
{
|
88
|
+
variant: "determinate",
|
89
|
+
size: 20,
|
90
|
+
thickness: 5,
|
91
|
+
value: i / b * 100,
|
92
|
+
sx: {
|
93
|
+
"svg circle": { stroke: "url(#linearColors)" },
|
94
|
+
position: "absolute",
|
95
|
+
left: 0,
|
96
|
+
[`& .${Z.circle}`]: {
|
97
|
+
strokeLinecap: "round"
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
)
|
102
|
+
]
|
103
|
+
}
|
104
|
+
)
|
105
|
+
] }) : /* @__PURE__ */ n(A, {});
|
106
|
+
}
|
107
|
+
const ne = _.memo(function({ handleOpenExchange: t, amount: r, route: a, resetAmount: f, resetBalance: d, setExchange: b }) {
|
108
|
+
var k, j;
|
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: q, refunded: B } = M;
|
110
|
+
v(() => {
|
111
|
+
var o, z, D, F;
|
112
|
+
a != null && a.routeId && i({
|
113
|
+
...(o = l.getState()) == null ? void 0 : o.persist,
|
114
|
+
routeId: a == null ? void 0 : a.routeId,
|
115
|
+
route: a,
|
116
|
+
toChain: m,
|
117
|
+
toCoin: g,
|
118
|
+
fromChain: u,
|
119
|
+
fromCoin: c,
|
120
|
+
amount: r,
|
121
|
+
quote: "enable",
|
122
|
+
openAt: (/* @__PURE__ */ new Date()).getTime(),
|
123
|
+
startTime: ((F = (D = (z = l) == null ? void 0 : z.getState()) == null ? void 0 : D.persist) == null ? void 0 : F.startTime) || (/* @__PURE__ */ new Date()).getTime()
|
124
|
+
});
|
125
|
+
}, [a]);
|
126
|
+
function I(o) {
|
127
|
+
s(o);
|
128
|
+
}
|
129
|
+
function S() {
|
130
|
+
((e == null ? void 0 : e.openAt) + 60 * 60 * 1e3 - (/* @__PURE__ */ new Date()).getTime()) / 1e3 / 60 <= 0 && document.visibilityState === "visible" && (i({}), t(), f());
|
131
|
+
}
|
132
|
+
v(() => (e != null && e.openAt && window.addEventListener("visibilitychange", S), () => {
|
133
|
+
window.removeEventListener("visibilitychange", S);
|
134
|
+
}), [e == null ? void 0 : e.openAt]), v(() => (e != null && e.openAt && window.addEventListener("load", S), () => {
|
135
|
+
window.removeEventListener("load", S);
|
136
|
+
}), [e == null ? void 0 : e.openAt]);
|
137
|
+
function G(o) {
|
138
|
+
y(o);
|
139
|
+
}
|
140
|
+
function H(o) {
|
141
|
+
C(o);
|
142
|
+
}
|
143
|
+
function P() {
|
144
|
+
t(), i({}), h && d();
|
145
|
+
}
|
146
|
+
return /* @__PURE__ */ n(J.Provider, { value: { isTxnSuccessful: h, handleTxnSuccess: G }, children: /* @__PURE__ */ n(U.Provider, { value: { isErrorMessage: p, handleErrorMessage: H }, children: /* @__PURE__ */ w("div", { className: "bw-w-full bw-relative bw-min-h-[610px] ", children: [
|
147
|
+
/* @__PURE__ */ n(K, { handleBack: P }),
|
148
|
+
/* @__PURE__ */ n("div", { className: "bw-mt-[-20px] ", children: /* @__PURE__ */ n(ee, {}) }),
|
149
|
+
e != null && e.isQuoteTimer ? /* @__PURE__ */ n(te, {}) : /* @__PURE__ */ n(A, {}),
|
150
|
+
/* @__PURE__ */ n("div", { className: "bw-flex bw-justify-between bw-items-center" }),
|
151
|
+
/* @__PURE__ */ w("div", { className: "bw-flex bw-w-full bw-mt-4 bw-justify-between bw-items-center", children: [
|
152
|
+
/* @__PURE__ */ w("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
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" })
|
155
|
+
] }),
|
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: ((k = e == null ? void 0 : e.statusData) == null ? void 0 : k.status) === "refunded" ? /* @__PURE__ */ n("img", { src: B, width: 33, height: 30, alt: "img" }) : /* @__PURE__ */ n("img", { src: q, width: 33, height: 30, alt: "img" }) }) : /* @__PURE__ */ n(V, { 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 " }),
|
158
|
+
/* @__PURE__ */ w("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
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(((j = e == null ? void 0 : e.route) == null ? void 0 : j.outputAmountDisplay) || ""), coinData: e == null ? void 0 : e.toCoin, chainData: e == null ? void 0 : e.toChain, field: "to" })
|
161
|
+
] })
|
162
|
+
] }),
|
163
|
+
/* @__PURE__ */ w("div", { className: "bw-h-[320px] bw-pr-1 bw-flex bw-flex-col bw-mt-8 bw-overflow-y-auto", children: [
|
164
|
+
T ? /* @__PURE__ */ n(A, {}) : /* @__PURE__ */ n(W, {}),
|
165
|
+
/* @__PURE__ */ n(X, { handleOpenExchange: t, setExchange: b, amount: r, startTimer: I, handleBack: P, isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x })
|
166
|
+
] })
|
167
|
+
] }) }) });
|
168
|
+
});
|
169
|
+
function we({
|
170
|
+
handleConfirmClose: t,
|
171
|
+
routesData: r,
|
172
|
+
amount: a,
|
173
|
+
resetAmount: f,
|
174
|
+
resetBalance: d,
|
175
|
+
handleStopRoute: b
|
176
|
+
}) {
|
177
|
+
const i = O();
|
178
|
+
v(() => {
|
179
|
+
var c, m;
|
180
|
+
!i.current && Number(
|
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)
|
182
|
+
) !== Number((r == null ? void 0 : r.minOutputAmount) || (r == null ? void 0 : r.outputAmountDisplay)) && (i.current = r);
|
183
|
+
}, [r]), v(() => {
|
184
|
+
b(!0);
|
185
|
+
}, []);
|
186
|
+
function e() {
|
187
|
+
b(!1), t(!1);
|
188
|
+
}
|
189
|
+
function u() {
|
190
|
+
t(!1);
|
191
|
+
}
|
192
|
+
return /* @__PURE__ */ n(
|
193
|
+
ne,
|
194
|
+
{
|
195
|
+
handleOpenExchange: e,
|
196
|
+
amount: a,
|
197
|
+
route: r,
|
198
|
+
resetAmount: f,
|
199
|
+
resetBalance: d,
|
200
|
+
setExchange: u
|
201
|
+
}
|
202
|
+
);
|
203
|
+
}
|
204
|
+
export {
|
205
|
+
we as default
|
206
|
+
};
|
@@ -1,5 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { n as Ta, p as ve, a5 as Sl, m as Bt } from "./index-DRwDQTB-.js";
|
2
|
+
import { B as Ce } from "./index-DTish3yr.js";
|
2
3
|
import { recoverAddress as bf } from "viem";
|
4
|
+
const K = globalThis || void 0 || self;
|
3
5
|
var En = { exports: {} }, hc;
|
4
6
|
function vf() {
|
5
7
|
if (hc) return En.exports;
|
@@ -7500,8 +7502,7 @@ function J_(r) {
|
|
7500
7502
|
!Cr() && gn() && (window.addEventListener("online", () => r(!0)), window.addEventListener("offline", () => r(!1)));
|
7501
7503
|
}
|
7502
7504
|
function Q_(r) {
|
7503
|
-
|
7504
|
-
Cr() && typeof K < "u" && K != null && K.NetInfo && ((e = K) == null || e.NetInfo.addEventListener((t) => r(t == null ? void 0 : t.isConnected)));
|
7505
|
+
Cr() && typeof K < "u" && K != null && K.NetInfo && (K == null || K.NetInfo.addEventListener((e) => r(e == null ? void 0 : e.isConnected)));
|
7505
7506
|
}
|
7506
7507
|
function X_() {
|
7507
7508
|
var r;
|
@@ -12931,7 +12932,7 @@ let L3 = class af {
|
|
12931
12932
|
}
|
12932
12933
|
};
|
12933
12934
|
const j3 = L3, q3 = "wc", k3 = "ethereum_provider", M3 = `${q3}@2:${k3}:`, z3 = "https://rpc.walletconnect.org/v1/", ns = ["eth_sendTransaction", "personal_sign"], cf = ["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"], ss = ["chainChanged", "accountsChanged"], uf = ["chainChanged", "accountsChanged", "message", "disconnect", "connect"], H3 = async () => {
|
12934
|
-
const { createAppKit: r } = await import("./core-
|
12935
|
+
const { createAppKit: r } = await import("./core-CK5YGudk.js").then((e) => e.G);
|
12935
12936
|
return r;
|
12936
12937
|
};
|
12937
12938
|
var V3 = Object.defineProperty, K3 = Object.defineProperties, W3 = Object.getOwnPropertyDescriptors, _l = Object.getOwnPropertySymbols, G3 = Object.prototype.hasOwnProperty, Y3 = Object.prototype.propertyIsEnumerable, xa = (r, e, t) => e in r ? V3(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, pr = (r, e) => {
|
@@ -13180,7 +13181,7 @@ function lf(r) {
|
|
13180
13181
|
return hf({ formatters: void 0, fees: void 0, serializers: void 0 }, r);
|
13181
13182
|
}
|
13182
13183
|
var ax = Object.freeze({ __proto__: null, convertWCMToAppKitOptions: ox, defineChain: lf });
|
13183
|
-
const
|
13184
|
+
const eT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
13184
13185
|
__proto__: null,
|
13185
13186
|
EthereumProvider: J3,
|
13186
13187
|
OPTIONAL_EVENTS: uf,
|
@@ -13191,14 +13192,15 @@ const Xx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13191
13192
|
}, Symbol.toStringTag, { value: "Module" }));
|
13192
13193
|
export {
|
13193
13194
|
hE as A,
|
13194
|
-
|
13195
|
+
Ps as B,
|
13195
13196
|
rb as C,
|
13196
|
-
|
13197
|
+
Rt as D,
|
13197
13198
|
He as E,
|
13198
|
-
|
13199
|
-
|
13200
|
-
|
13199
|
+
pt as F,
|
13200
|
+
Ct as G,
|
13201
|
+
St as H,
|
13201
13202
|
xr as I,
|
13203
|
+
eT as J,
|
13202
13204
|
Na as N,
|
13203
13205
|
pn as O,
|
13204
13206
|
Hc as P,
|
@@ -13209,24 +13211,24 @@ export {
|
|
13209
13211
|
xf as d,
|
13210
13212
|
Ki as e,
|
13211
13213
|
Qe as f,
|
13212
|
-
|
13213
|
-
|
13214
|
-
|
13215
|
-
|
13214
|
+
K as g,
|
13215
|
+
pg as h,
|
13216
|
+
ut as i,
|
13217
|
+
f0 as j,
|
13216
13218
|
ws as k,
|
13217
|
-
|
13218
|
-
|
13219
|
-
|
13219
|
+
W0 as l,
|
13220
|
+
sr as m,
|
13221
|
+
zI as n,
|
13220
13222
|
ft as o,
|
13221
|
-
|
13222
|
-
|
13223
|
+
Xa as p,
|
13224
|
+
As as q,
|
13223
13225
|
Tr as r,
|
13224
13226
|
Mo as s,
|
13225
13227
|
ke as t,
|
13226
|
-
|
13227
|
-
|
13228
|
-
|
13229
|
-
|
13228
|
+
Os as u,
|
13229
|
+
sw as v,
|
13230
|
+
Jt as w,
|
13231
|
+
$r as x,
|
13230
13232
|
Xe as y,
|
13231
|
-
|
13233
|
+
vr as z
|
13232
13234
|
};
|
package/dist/index.es.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { m as C } from "./core-
|
1
|
+
import { m as C } from "./core-CK5YGudk.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>`;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { m as C } from "./core-
|
1
|
+
import { m as C } from "./core-CK5YGudk.js";
|
2
2
|
const e = C`<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
3
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.00177 1.78569C3.8179 1.78569 2.85819 2.74508 2.85819 3.92855C2.85819 4.52287 3.09928 5.05956 3.49077 5.4485L3.5005 5.45817C3.64381 5.60054 3.76515 5.72108 3.85631 5.81845C3.93747 5.90512 4.05255 6.03218 4.12889 6.1805C4.16999 6.26034 4.19 6.30843 4.21768 6.39385C4.22145 6.40546 4.22499 6.41703 4.22833 6.42855H5.77521C5.77854 6.41703 5.78208 6.40547 5.78585 6.39385C5.81353 6.30843 5.83354 6.26034 5.87464 6.1805C5.95098 6.03218 6.06606 5.90512 6.14722 5.81845C6.23839 5.72108 6.35973 5.60053 6.50304 5.45816L6.51276 5.4485C6.90425 5.05956 7.14534 4.52287 7.14534 3.92855C7.14534 2.74508 6.18563 1.78569 5.00177 1.78569ZM5.71629 7.85712H4.28724C4.28724 8.21403 4.28876 8.40985 4.30703 8.54571C4.30727 8.54748 4.30751 8.54921 4.30774 8.55091C4.30944 8.55115 4.31118 8.55138 4.31295 8.55162C4.44884 8.56989 4.64474 8.5714 5.00177 8.5714C5.3588 8.5714 5.55469 8.56989 5.69059 8.55162C5.69236 8.55138 5.69409 8.55115 5.69579 8.55091C5.69603 8.54921 5.69627 8.54748 5.6965 8.54571C5.71477 8.40985 5.71629 8.21403 5.71629 7.85712ZM2.85819 7.14283C2.85819 6.9948 2.85796 6.91114 2.8548 6.85032C2.85461 6.84656 2.85441 6.84309 2.85421 6.83988C2.84393 6.8282 2.83047 6.81334 2.81301 6.79469C2.74172 6.71856 2.63908 6.61643 2.48342 6.46178C1.83307 5.81566 1.42914 4.91859 1.42914 3.92855C1.42914 1.9561 3.02866 0.357117 5.00177 0.357117C6.97487 0.357117 8.57439 1.9561 8.57439 3.92855C8.57439 4.91859 8.17047 5.81566 7.52012 6.46178C7.36445 6.61643 7.26182 6.71856 7.19053 6.79469C7.17306 6.81334 7.1596 6.8282 7.14932 6.83988C7.14912 6.84309 7.14892 6.84656 7.14873 6.85032C7.14557 6.91114 7.14534 6.9948 7.14534 7.14283V7.85712C7.14534 7.87009 7.14535 7.88304 7.14535 7.89598C7.14541 8.19889 7.14547 8.49326 7.11281 8.73606C7.076 9.00978 6.98631 9.32212 6.72678 9.58156C6.46726 9.841 6.15481 9.93065 5.881 9.96745C5.63813 10.0001 5.34365 10 5.04064 9.99998C5.0277 9.99998 5.01474 9.99998 5.00177 9.99998C4.98879 9.99998 4.97583 9.99998 4.96289 9.99998C4.65988 10 4.36541 10.0001 4.12253 9.96745C3.84872 9.93065 3.53628 9.841 3.27675 9.58156C3.01722 9.32212 2.92753 9.00978 2.89072 8.73606C2.85807 8.49326 2.85812 8.19889 2.85818 7.89598C2.85819 7.88304 2.85819 7.87008 2.85819 7.85712V7.14283ZM7.1243 6.86977C7.12366 6.87069 7.1233 6.87116 7.12327 6.87119C7.12323 6.87123 7.12356 6.87076 7.1243 6.86977ZM2.88027 6.8712C2.88025 6.87119 2.87988 6.8707 2.87921 6.86975C2.87995 6.87072 2.88028 6.8712 2.88027 6.8712Z" fill="#949E9E"/>
|
4
4
|
</svg>`;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { m as C } from "./core-
|
1
|
+
import { m as C } from "./core-CK5YGudk.js";
|
2
2
|
const l = C`<svg width="60" height="16" viewBox="0 0 60 16" fill="none"">
|
3
3
|
<path d="M9.3335 4.66667C9.3335 2.08934 11.4229 0 14.0002 0H20.6669C23.2442 0 25.3335 2.08934 25.3335 4.66667V11.3333C25.3335 13.9106 23.2442 16 20.6669 16H14.0002C11.4229 16 9.3335 13.9106 9.3335 11.3333V4.66667Z" fill="#363636"/>
|
4
4
|
<path d="M15.6055 11.0003L17.9448 4.66699H18.6316L16.2923 11.0003H15.6055Z" fill="#F6F6F6"/>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { m as t } from "./core-
|
1
|
+
import { m as t } from "./core-CK5YGudk.js";
|
2
2
|
const l = t`<svg width="14" height="15" viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
|
3
3
|
<path d="M7 3.71875C6.0335 3.71875 5.25 2.93525 5.25 1.96875C5.25 1.00225 6.0335 0.21875 7 0.21875C7.9665 0.21875 8.75 1.00225 8.75 1.96875C8.75 2.93525 7.9665 3.71875 7 3.71875Z" fill="#949E9E"/>
|
4
4
|
<path d="M7 8.96875C6.0335 8.96875 5.25 8.18525 5.25 7.21875C5.25 6.25225 6.0335 5.46875 7 5.46875C7.9665 5.46875 8.75 6.25225 8.75 7.21875C8.75 8.18525 7.9665 8.96875 7 8.96875Z" fill="#949E9E"/>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { p as process$1, P as PropTypes, d as _extends, e as clsx, _ as _objectWithoutPropertiesLoose,
|
1
|
+
import { p as process$1, P as PropTypes, d as _extends, e as clsx, _ as _objectWithoutPropertiesLoose, z as useTheme$1, T as THEME_ID, A as defaultTheme, b as generateUtilityClasses, g as generateUtilityClass, i as useDefaultProps, s as styled, f as capitalize, h as composeClasses, ac as css, E as keyframes, u as useStore, l as lodashExports, a as useWallet, n as getDefaultExportFromCjs, c as controllers } from "./index-DRwDQTB-.js";
|
2
2
|
import * as React from "react";
|
3
3
|
import React__default from "react";
|
4
4
|
import * as ReactDOM from "react-dom";
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { w as ve, p as fe, s as ge, q as be, M as g, t as ne, R as l, i as v, r as P, a as f, x as o, u as K, e as ce, o as le, h as m, d as Y, j as ye, v as S, E as ie, O as I, C as q, y as oe, k as T, A as H, T as xe, z as Ce, b as ke, g as Se } from "./core-
|
2
|
-
import { c as u, n as d, r as w, o as F, U as We } from "./index-
|
1
|
+
import { w as ve, p as fe, s as ge, q as be, M as g, t as ne, R as l, i as v, r as P, a as f, x as o, u as K, e as ce, o as le, h as m, d as Y, j as ye, v as S, E as ie, O as I, C as q, y as oe, k as T, A as H, T as xe, z as Ce, b as ke, g as Se } from "./core-CK5YGudk.js";
|
2
|
+
import { c as u, n as d, r as w, o as F, U as We } from "./index-1Vs2kWG_.js";
|
3
3
|
const p = fe({
|
4
4
|
message: "",
|
5
5
|
open: !1,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@blockend/widget",
|
3
|
-
"version": "1.0.55
|
3
|
+
"version": "1.0.55",
|
4
4
|
"description": "Blockend",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/index.es.js",
|
@@ -131,7 +131,5 @@
|
|
131
131
|
"viem": "^2.22.17",
|
132
132
|
"wagmi": "^2.14.9"
|
133
133
|
},
|
134
|
-
"dependencies": {
|
135
|
-
"@blockend/compass-sdk": "^1.0.23"
|
136
|
-
}
|
134
|
+
"dependencies": {}
|
137
135
|
}
|