@blockend/widget 1.0.55 → 1.0.57
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-CInC9QGQ.js → AllRoutes-B1a7Sisc.js} +9 -9
- package/dist/{Box-_vN-nB2g.js → Box-CtkUvyKi.js} +14 -14
- package/dist/EstGas-BgRchsSw.js +1574 -0
- package/dist/{Grow-CahJ50bG.js → Grow-DCuNJP12.js} +28 -28
- package/dist/{InputComp-BA0m0-BG.js → InputComp-CLCGCArk.js} +3 -3
- package/dist/{LoadRoute-myKaCOSm.js → LoadRoute-CmWoHwz8.js} +4 -4
- package/dist/{QuotesProgress-p8uGXu3L.js → QuotesProgress-BYEYjV1N.js} +1 -1
- package/dist/{SwapAsset-sqEVoQ3t.js → SwapAsset-CWcUv8cg.js} +1 -1
- package/dist/{Tooltip-BrCb3x7_.js → Tooltip-qnRjkaHu.js} +3 -3
- package/dist/TxnButton-BL3lSkDN.js +215 -0
- package/dist/{add-VsfWD7ni.js → add-C0WjduJo.js} +1 -1
- package/dist/{all-wallets-BkUqFobk.js → all-wallets-BG090vGz.js} +1 -1
- package/dist/{app-store-Dhz1I2UU.js → app-store-8QUBxl1J.js} +1 -1
- package/dist/{apple-B1A9FWmD.js → apple-CAKcoFwo.js} +1 -1
- package/dist/{arrow-bottom-CU0SNN_M.js → arrow-bottom-BrQB33BF.js} +1 -1
- package/dist/{arrow-bottom-circle-CkK0nZyv.js → arrow-bottom-circle-D2882GmP.js} +1 -1
- package/dist/{arrow-left-B3tHSyMd.js → arrow-left-B4guw_Rh.js} +1 -1
- package/dist/{arrow-right-C9GNeMpg.js → arrow-right-C3YXteZd.js} +1 -1
- package/dist/{arrow-top-CROlaURs.js → arrow-top-B9jQ17Ob.js} +1 -1
- package/dist/{bank-C9ws6grO.js → bank-BDNulypK.js} +1 -1
- package/dist/{basic-CNZusk3T.js → basic-BYr8jdy2.js} +3 -3
- package/dist/{browser-CsDSjYxB.js → browser-XDOSatp1.js} +1 -1
- package/dist/{card-DEbxL9v9.js → card-DBu0KINk.js} +1 -1
- package/dist/{ccip-BzuzcsZy.js → ccip-EUNQLhnu.js} +1 -1
- package/dist/{checkmark-DE5590E3.js → checkmark-P4kqC4N0.js} +1 -1
- package/dist/{checkmark-bold-QCiYoLBv.js → checkmark-bold-URBkS9AJ.js} +1 -1
- package/dist/{chevron-bottom-DwDL4YMH.js → chevron-bottom-CSA9bwls.js} +1 -1
- package/dist/{chevron-left-f-cfElLv.js → chevron-left-BqverHO5.js} +1 -1
- package/dist/{chevron-right-CUqumYdc.js → chevron-right-Be8e0sop.js} +1 -1
- package/dist/{chevron-top-B51EfBCn.js → chevron-top-sj4fgGQ3.js} +1 -1
- package/dist/{chrome-store-Bye9an43.js → chrome-store-B125w25l.js} +1 -1
- package/dist/{clock-B7Sev0vn.js → clock-CJ3o9i1f.js} +1 -1
- package/dist/{close-0BVUAR_a.js → close-DMPxO1PW.js} +1 -1
- package/dist/{coinPlaceholder-BV86Cpoi.js → coinPlaceholder-SycpnpvI.js} +1 -1
- package/dist/{compass-BG0JGmer.js → compass-DO1LxaD6.js} +1 -1
- package/dist/{copy-BK_ak0uV.js → copy-DjdZX9o5.js} +1 -1
- package/dist/{core-CK5YGudk.js → core-DP5Vu59e.js} +3 -3
- package/dist/{cursor-DYlGZYqP.js → cursor-Bx2-TZNd.js} +1 -1
- package/dist/{cursor-transparent-C66dlXx_.js → cursor-transparent-CGBhDi3F.js} +1 -1
- package/dist/{desktop-MPzP06em.js → desktop-CQGrDIR2.js} +1 -1
- package/dist/{disconnect-S1mgcbm2.js → disconnect-DIUOO6qT.js} +1 -1
- package/dist/{discord-C1lCIbjj.js → discord-C97ToQrE.js} +1 -1
- package/dist/{down-Bs8dpUrC.js → down-BcGY1seq.js} +2 -2
- package/dist/{etherscan-QQa80RLT.js → etherscan-ChTnGoGp.js} +1 -1
- package/dist/{exclamation-triangle-4oHle7Ol.js → exclamation-triangle-B7hqeBkR.js} +1 -1
- package/dist/{extension-B3zd6NTN.js → extension-Cc7MKu6e.js} +1 -1
- package/dist/{external-link-DaiDaJke.js → external-link-CsSN3iCU.js} +1 -1
- package/dist/{facebook-BSHOu5Eh.js → facebook-M9t70ipE.js} +1 -1
- package/dist/{farcaster-CNUiCN9L.js → farcaster-D5D419n8.js} +1 -1
- package/dist/{filters-CDlQ6RDt.js → filters-CRFk2qR7.js} +1 -1
- package/dist/{getChainIds-B0koox0j.js → getChainIds-Ca6RgFpt.js} +2 -2
- package/dist/{getCosmosAddress-CCWtYVNX.js → getCosmosAddress-CL0ZiapY.js} +1876 -1925
- package/dist/{github-B7OCLZiT.js → github-BoIt-AwH.js} +1 -1
- package/dist/{google-Cf3xXFpT.js → google-sIev9mO_.js} +1 -1
- package/dist/{hamburger-B0j3zDc0.js → hamburger-DqQwQj13.js} +5 -5
- package/dist/{help-circle-DP7zV3_w.js → help-circle-FjU_KTrS.js} +1 -1
- package/dist/{id-BQRwktVK.js → id-CmSp3QIh.js} +1 -1
- package/dist/{image-DFBrbvvT.js → image-zci9ybYh.js} +1 -1
- package/dist/{index-D1GIjZ4K.js → index--FNeS5Rj.js} +1 -1
- package/dist/index-BsS9maa9.js +6713 -0
- package/dist/{index-CTGrN6JB.js → index-ClJq4MBB.js} +2604 -2625
- package/dist/{index-BDzrNgTC.js → index-CoOpvDo4.js} +1 -1
- package/dist/{index-DrSY5n-x.js → index-D7xWUWmM.js} +11 -8
- package/dist/{index-FGz1V6AR.js → index-DCyDt3O-.js} +233 -241
- package/dist/{index-1Vs2kWG_.js → index-DJwNEB-H.js} +78 -78
- package/dist/{index-DpZHXmue.js → index-DnRJWSaV.js} +2 -2
- package/dist/{index-CMAhUTez.js → index-TsTH7Hxq.js} +11 -11
- package/dist/{index-DRwDQTB-.js → index-WJQti9-t.js} +3104 -3031
- package/dist/index-pcz2RZOT.js +206 -0
- package/dist/{index.es-D0JK47eg.js → index.es-BLFPEWKC.js} +2 -2
- package/dist/{index.es-BS6PwZoN.js → index.es-zHtXZ4dp.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{info-C1ZJCPTD.js → info-D6yjeLE7.js} +1 -1
- package/dist/{info-circle-Dhmi_tCI.js → info-circle-4TaoqFTQ.js} +1 -1
- package/dist/{lightbulb-0j0AYNED.js → lightbulb-BekPKfrQ.js} +1 -1
- package/dist/{mail-BtTEWpBH.js → mail-j6TBy5nM.js} +1 -1
- package/dist/{mobile-DvxVPngz.js → mobile-SuvaDkyJ.js} +1 -1
- package/dist/{more-B7Wl87te.js → more-RFtulbqF.js} +1 -1
- package/dist/{network-placeholder-9GbY6RXW.js → network-placeholder-CiudHFHV.js} +1 -1
- package/dist/{nftPlaceholder-omPs3Tyh.js → nftPlaceholder-BzhE1j93.js} +1 -1
- package/dist/{off-DzwEOAXj.js → off-BQW7jzrf.js} +1 -1
- package/dist/{play-store-fB4OGgDD.js → play-store-ndEusUCo.js} +1 -1
- package/dist/{plus-QdziAxSu.js → plus-B_-4L7uN.js} +1 -1
- package/dist/{qr-code-C2U72CiI.js → qr-code-fGA-L64g.js} +1 -1
- package/dist/{recycle-horizontal-Bl8nBo5T.js → recycle-horizontal-bqeONrxc.js} +1 -1
- package/dist/{refresh-CHVcAm40.js → refresh-CsiabOhS.js} +1 -1
- package/dist/{reown-logo-C5CEAzfh.js → reown-logo-DAoeMWgC.js} +1 -1
- package/dist/{search-CRYtwGKs.js → search-syBa5OfX.js} +1 -1
- package/dist/{send-DgcEtdkH.js → send-BbHKOCEY.js} +1 -1
- package/dist/{swapHorizontal-bGAC2ORL.js → swapHorizontal-CxK0nuYA.js} +1 -1
- package/dist/{swapHorizontalBold-7AVtDAdB.js → swapHorizontalBold-CtEonTbb.js} +1 -1
- package/dist/{swapHorizontalMedium-BPEj2jrH.js → swapHorizontalMedium-DZKQimBT.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-KZW7Q7m8.js → swapHorizontalRoundedBold-BXxYHgU3.js} +1 -1
- package/dist/{swapVertical-R6wYRmxl.js → swapVertical-BePgHxv9.js} +1 -1
- package/dist/{telegram-BU7tcQ98.js → telegram-BFBKVpZI.js} +1 -1
- package/dist/{three-dots-DcRrr590.js → three-dots-BXLWvhTX.js} +1 -1
- package/dist/{twitch-CiWBdFQ5.js → twitch-vPQp_UrR.js} +1 -1
- package/dist/{twitterIcon-Dx4rfeax.js → twitterIcon-BTdtSUcd.js} +1 -1
- package/dist/{unsupportedProp-I75ZFHZ3.js → unsupportedProp-B0xHFsbt.js} +1 -1
- package/dist/{useRegisterError-BGuw8xn6.js → useRegisterError-GWfXAUhh.js} +1546 -1542
- package/dist/{verify-OIjFr-Yf.js → verify-BqBaMG0N.js} +1 -1
- package/dist/{verify-filled-CuIbxxfK.js → verify-filled--sUq3p0p.js} +1 -1
- package/dist/{w3m-modal-C1jV1wrT.js → w3m-modal-Cqjqluk4.js} +2 -2
- package/dist/{wallet-Bk-xbtkS.js → wallet-DA02Bm-G.js} +1 -1
- package/dist/{wallet-placeholder-D74DpYqS.js → wallet-placeholder-CVMoX43_.js} +1 -1
- package/dist/{walletconnect-BklYaQAX.js → walletconnect-DhxzAfJ6.js} +1 -1
- package/dist/{warning-circle-DlDxhMDL.js → warning-circle-Du5EYoE3.js} +1 -1
- package/dist/{x-BNL67S5v.js → x-B-Wz86Hz.js} +1 -1
- package/package.json +3 -2
- package/dist/EstGas-BaKv_yk7.js +0 -20281
- package/dist/TxnButton-D10GjiUs.js +0 -223
- package/dist/index-BmVN9MUZ.js +0 -160
- package/dist/index-RtfOj4GQ.js +0 -206
@@ -0,0 +1,206 @@
|
|
1
|
+
import { jsxs as c, jsx as r, Fragment as A } from "react/jsx-runtime";
|
2
|
+
import O, { useContext as J, useState as y, useEffect as g, useRef as K } from "react";
|
3
|
+
import { a as Q, e as V, T as W, H as X, b as F, c as Y, E as Z, d as R } from "./EstGas-BgRchsSw.js";
|
4
|
+
import { u as s, l as ee } from "./index-WJQti9-t.js";
|
5
|
+
import { i as U, C as L, A as te } from "./useRegisterError-GWfXAUhh.js";
|
6
|
+
import { B as re } from "./Box-CtkUvyKi.js";
|
7
|
+
function ne() {
|
8
|
+
var d, w, a, e, u, b, m, p, x, l, h, C, v, S;
|
9
|
+
const t = s((T) => T.persist), n = s((T) => T.configuration), { defaultCoin: i } = U;
|
10
|
+
let f = (a = (w = (d = t == null ? void 0 : t.route) == null ? void 0 : d.providerDetails) == null ? void 0 : w.logoUrl) != null && a.length ? (u = (e = t == null ? void 0 : t.route) == null ? void 0 : e.providerDetails) == null ? void 0 : u.logoUrl : i;
|
11
|
+
return ee.isEmpty(t.route) ? /* @__PURE__ */ r(A, {}) : /* @__PURE__ */ c("div", { className: "bw-relative bw-mt-4 bw-flex bw-justify-center ", children: [
|
12
|
+
/* @__PURE__ */ r(
|
13
|
+
"div",
|
14
|
+
{
|
15
|
+
style: {
|
16
|
+
boxShadow: n && n.customTheme && ((m = (b = n.customTheme) == null ? void 0 : b.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__ */ c("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__ */ c("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__ */ r("span", { className: "bw-text-sm bw-font-light", children: "via" }),
|
25
|
+
" ",
|
26
|
+
/* @__PURE__ */ r("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 = (p = t == null ? void 0 : t.route) == null ? void 0 : p.providerDetails) == null ? void 0 : x.name) || "",
|
28
|
+
": ",
|
29
|
+
(l = t == null ? void 0 : t.route) == null ? void 0 : l.protocolsUsed[0],
|
30
|
+
((C = (h = t == null ? void 0 : t.route) == null ? void 0 : h.protocolsUsed) == null ? void 0 : C.length) <= 1 ? "" : /* @__PURE__ */ c("span", { className: "bw-ml-1 bw-text-xs bw-font-normal bw-leading-6", children: [
|
31
|
+
`+${((S = (v = t == null ? void 0 : t.route) == null ? void 0 : v.protocolsUsed) == null ? void 0 : S.length) - 1}`,
|
32
|
+
" More"
|
33
|
+
] }),
|
34
|
+
" "
|
35
|
+
] }),
|
36
|
+
" "
|
37
|
+
] })
|
38
|
+
] });
|
39
|
+
}
|
40
|
+
let E;
|
41
|
+
function oe() {
|
42
|
+
var u, b, m, p, x;
|
43
|
+
const t = s((l) => l.configuration), n = s((l) => l.persist), i = s((l) => l.setPersist), { isErrorMessage: f } = J(Q), d = Math.floor(((/* @__PURE__ */ new Date()).getTime() - n.quoteStartTime) / 1e3);
|
44
|
+
let w = ((u = n == null ? void 0 : n.route) == null ? void 0 : u.deadline) || 60;
|
45
|
+
const [a, e] = y(w);
|
46
|
+
return g(() => {
|
47
|
+
d && e(w - d);
|
48
|
+
}, []), g(() => (E = setInterval(() => {
|
49
|
+
e((l) => {
|
50
|
+
var h;
|
51
|
+
return l <= 0 ? (clearInterval(E), i({
|
52
|
+
...(h = s.getState()) == null ? void 0 : h.persist,
|
53
|
+
isQuoteTimer: !1,
|
54
|
+
showAcceptQuote: !0,
|
55
|
+
quoteStartTime: (/* @__PURE__ */ new Date()).getTime()
|
56
|
+
}), 0) : l - 1;
|
57
|
+
});
|
58
|
+
}, 1e3), () => clearInterval(E)), []), g(() => {
|
59
|
+
(f || !n.isQuoteTimer) && clearInterval(E);
|
60
|
+
}, [f, n.isQuoteTimer]), !(n != null && n.hash) && n.quote === "enable" ? /* @__PURE__ */ c("div", { className: "bw-absolute bw-top-0 bw-right-0 ", children: [
|
61
|
+
/* @__PURE__ */ r("svg", { className: "bw-absolute bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ c("linearGradient", { id: "linearColors", x1: "0", y1: "0", x2: "1", y2: "1", children: [
|
62
|
+
/* @__PURE__ */ r("stop", { offset: "1%", stopColor: (b = t == null ? void 0 : t.gradientStyle) != null && b.spinnerColor ? (m = t == null ? void 0 : t.gradientStyle) == null ? void 0 : m.spinnerColor : "#A45EFF" }),
|
63
|
+
/* @__PURE__ */ r("stop", { offset: "90%", stopColor: (p = t == null ? void 0 : t.gradientStyle) != null && p.spinnerColor ? (x = t == null ? void 0 : t.gradientStyle) == null ? void 0 : x.stopColor : "#2CFFE4" })
|
64
|
+
] }) }),
|
65
|
+
/* @__PURE__ */ c(
|
66
|
+
re,
|
67
|
+
{
|
68
|
+
sx: {
|
69
|
+
position: "relative",
|
70
|
+
display: "inline-flex"
|
71
|
+
},
|
72
|
+
children: [
|
73
|
+
/* @__PURE__ */ r(
|
74
|
+
L,
|
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__ */ r(
|
86
|
+
L,
|
87
|
+
{
|
88
|
+
variant: "determinate",
|
89
|
+
size: 20,
|
90
|
+
thickness: 5,
|
91
|
+
value: a / w * 100,
|
92
|
+
sx: {
|
93
|
+
"svg circle": { stroke: "url(#linearColors)" },
|
94
|
+
position: "absolute",
|
95
|
+
left: 0,
|
96
|
+
[`& .${te.circle}`]: {
|
97
|
+
strokeLinecap: "round"
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
)
|
102
|
+
]
|
103
|
+
}
|
104
|
+
)
|
105
|
+
] }) : /* @__PURE__ */ r(A, {});
|
106
|
+
}
|
107
|
+
const ae = O.memo(function({ handleOpenExchange: t, amount: n, route: i, resetAmount: f, resetBalance: d, setExchange: w }) {
|
108
|
+
var k, D;
|
109
|
+
const a = s((o) => o.setPersist), e = s((o) => o.persist), u = s((o) => o.fromChain), b = s((o) => o.fromCoin), m = s((o) => o.toChain), p = s((o) => o.toCoin), [x, l] = y(!1), [h, C] = y(!1), [v, S] = y(!1), [T, q] = y({}), B = !e.stepData, { txnupdate: G, refunded: H } = U;
|
110
|
+
g(() => {
|
111
|
+
var o, j, M, z;
|
112
|
+
i != null && i.routeId && a({
|
113
|
+
...(o = s.getState()) == null ? void 0 : o.persist,
|
114
|
+
routeId: i == null ? void 0 : i.routeId,
|
115
|
+
route: i,
|
116
|
+
toChain: m,
|
117
|
+
toCoin: p,
|
118
|
+
fromChain: u,
|
119
|
+
fromCoin: b,
|
120
|
+
amount: n,
|
121
|
+
quote: "enable",
|
122
|
+
openAt: (/* @__PURE__ */ new Date()).getTime(),
|
123
|
+
startTime: ((z = (M = (j = s) == null ? void 0 : j.getState()) == null ? void 0 : M.persist) == null ? void 0 : z.startTime) || (/* @__PURE__ */ new Date()).getTime()
|
124
|
+
});
|
125
|
+
}, [i]);
|
126
|
+
function I(o) {
|
127
|
+
l(o);
|
128
|
+
}
|
129
|
+
function N() {
|
130
|
+
((e == null ? void 0 : e.openAt) + 60 * 60 * 1e3 - (/* @__PURE__ */ new Date()).getTime()) / 1e3 / 60 <= 0 && document.visibilityState === "visible" && (a({ allSteps: { steps: null, currentStep: 0 }, stepData: {} }), t(), f());
|
131
|
+
}
|
132
|
+
g(() => (e != null && e.openAt && window.addEventListener("visibilitychange", N), () => {
|
133
|
+
window.removeEventListener("visibilitychange", N);
|
134
|
+
}), [e == null ? void 0 : e.openAt]), g(() => (e != null && e.openAt && window.addEventListener("load", N), () => {
|
135
|
+
window.removeEventListener("load", N);
|
136
|
+
}), [e == null ? void 0 : e.openAt]);
|
137
|
+
function _(o) {
|
138
|
+
C(o);
|
139
|
+
}
|
140
|
+
function $(o) {
|
141
|
+
S(o);
|
142
|
+
}
|
143
|
+
function P() {
|
144
|
+
t(), a({ allSteps: { steps: null, currentStep: 0 }, stepData: {} }), h && d();
|
145
|
+
}
|
146
|
+
return /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(W.Provider, { value: { isTxnSuccessful: h, handleTxnSuccess: _ }, children: /* @__PURE__ */ r(Q.Provider, { value: { isErrorMessage: v, handleErrorMessage: $, errorMessage: T, setErrorMessage: q }, children: /* @__PURE__ */ c("div", { className: "bw-w-full bw-relative bw-min-h-[610px] ", children: [
|
147
|
+
/* @__PURE__ */ r(X, { handleBack: P }),
|
148
|
+
/* @__PURE__ */ r("div", { className: "bw-mt-[-20px] ", children: /* @__PURE__ */ r(ne, {}) }),
|
149
|
+
e != null && e.isQuoteTimer ? /* @__PURE__ */ r(oe, {}) : /* @__PURE__ */ r(A, {}),
|
150
|
+
/* @__PURE__ */ r("div", { className: "bw-flex bw-justify-between bw-items-center" }),
|
151
|
+
/* @__PURE__ */ c("div", { className: "bw-flex bw-w-full bw-mt-4 bw-justify-between bw-items-center", children: [
|
152
|
+
/* @__PURE__ */ c("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
153
|
+
/* @__PURE__ */ r("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Send" }),
|
154
|
+
/* @__PURE__ */ r(F, { amount: e == null ? void 0 : e.amount, coinData: e.fromCoin, chainData: e.fromChain, field: "from" })
|
155
|
+
] }),
|
156
|
+
v ? /* @__PURE__ */ r("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__ */ r("img", { src: H, width: 33, height: 30, alt: "img" }) : /* @__PURE__ */ r("img", { src: G, width: 33, height: 30, alt: "img" }) }) : /* @__PURE__ */ r(Y, { isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x, startTimer: I, error: v }),
|
157
|
+
/* @__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 " }),
|
158
|
+
/* @__PURE__ */ c("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
159
|
+
/* @__PURE__ */ r("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Receive" }),
|
160
|
+
/* @__PURE__ */ r(F, { amount: Number(((D = e == null ? void 0 : e.route) == null ? void 0 : D.outputAmountDisplay) || ""), coinData: e == null ? void 0 : e.toCoin, chainData: e == null ? void 0 : e.toChain, field: "to" })
|
161
|
+
] })
|
162
|
+
] }),
|
163
|
+
/* @__PURE__ */ c("div", { className: "bw-h-[320px] bw-pr-1 bw-flex bw-flex-col bw-mt-8 bw-overflow-y-auto", children: [
|
164
|
+
B ? /* @__PURE__ */ r(A, {}) : /* @__PURE__ */ r(Z, {}),
|
165
|
+
/* @__PURE__ */ r(R, { handleOpenExchange: t, setExchange: w, amount: n, startTimer: I, handleBack: P, isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x })
|
166
|
+
] })
|
167
|
+
] }) }) }) });
|
168
|
+
});
|
169
|
+
function me({
|
170
|
+
handleConfirmClose: t,
|
171
|
+
routesData: n,
|
172
|
+
amount: i,
|
173
|
+
resetAmount: f,
|
174
|
+
resetBalance: d,
|
175
|
+
handleStopRoute: w
|
176
|
+
}) {
|
177
|
+
const a = K();
|
178
|
+
g(() => {
|
179
|
+
var b, m;
|
180
|
+
!a.current && Number(
|
181
|
+
((b = a == null ? void 0 : a.current) == null ? void 0 : b.minOutputAmount) || ((m = a == null ? void 0 : a.current) == null ? void 0 : m.outputAmountDisplay)
|
182
|
+
) !== Number((n == null ? void 0 : n.minOutputAmount) || (n == null ? void 0 : n.outputAmountDisplay)) && (a.current = n);
|
183
|
+
}, [n]), g(() => {
|
184
|
+
w(!0);
|
185
|
+
}, []);
|
186
|
+
function e() {
|
187
|
+
w(!1), t(!1);
|
188
|
+
}
|
189
|
+
function u() {
|
190
|
+
t(!1);
|
191
|
+
}
|
192
|
+
return /* @__PURE__ */ r(
|
193
|
+
ae,
|
194
|
+
{
|
195
|
+
handleOpenExchange: e,
|
196
|
+
amount: i,
|
197
|
+
route: n,
|
198
|
+
resetAmount: f,
|
199
|
+
resetBalance: d,
|
200
|
+
setExchange: u
|
201
|
+
}
|
202
|
+
);
|
203
|
+
}
|
204
|
+
export {
|
205
|
+
me as default
|
206
|
+
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { n as Ta, p as ve,
|
1
|
+
import { n as Ta, p as ve, a6 as Sl, m as Bt } from "./index-WJQti9-t.js";
|
2
2
|
import { B as Ce } from "./index-DTish3yr.js";
|
3
3
|
import { recoverAddress as bf } from "viem";
|
4
4
|
const K = globalThis || void 0 || self;
|
@@ -12932,7 +12932,7 @@ let L3 = class af {
|
|
12932
12932
|
}
|
12933
12933
|
};
|
12934
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 () => {
|
12935
|
-
const { createAppKit: r } = await import("./core-
|
12935
|
+
const { createAppKit: r } = await import("./core-DP5Vu59e.js").then((e) => e.G);
|
12936
12936
|
return r;
|
12937
12937
|
};
|
12938
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) => {
|
package/dist/index.es.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { m as C } from "./core-
|
1
|
+
import { m as C } from "./core-DP5Vu59e.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-DP5Vu59e.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-DP5Vu59e.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-DP5Vu59e.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"/>
|