@blockend/widget 1.0.55-beta.1 → 1.0.55-beta.2
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-DIde2MHr.js} +910 -929
- package/dist/{Box-DESo1bHm.js → Box-DQB1ZyEK.js} +15 -15
- package/dist/EstGas-C7sLxEX_.js +1523 -0
- package/dist/{Grow-DzEr7XrA.js → Grow-CxaAxl6-.js} +300 -303
- package/dist/InputComp-CDuJJKaD.js +105 -0
- package/dist/LoadRoute-CVas28CM.js +123 -0
- package/dist/QuotesProgress-DaL4L4Db.js +27 -0
- package/dist/{SwapAsset-MBXcdeBf.js → SwapAsset-DSV6l90O.js} +13 -14
- package/dist/{Tooltip-DSAJT2x7.js → Tooltip-PAQ9gquY.js} +35 -35
- package/dist/TxnButton-BiO4vJ-y.js +207 -0
- package/dist/ccip-B6-4PQvj.js +226 -0
- package/dist/core-SB441dD5.js +13166 -0
- package/dist/{down-BFx-Bg5Q.js → down-DJH_apvy.js} +267 -270
- package/dist/{getChainIds-CeLEUxe0.js → getChainIds-CBclVfs9.js} +221 -223
- package/dist/getCosmosAddress-CI7CTn-0.js +57 -0
- package/dist/{hamburger-BzMrQx9y.js → hamburger-Dp-PI6Yn.js} +153 -153
- package/dist/{index-DpHhW0_2.js → index-5WTwgH9q.js} +3 -3
- package/dist/index-B-FRPlBv.js +3240 -0
- package/dist/index-B158Vaz9.js +146 -0
- package/dist/{index-BK0BZT6j.js → index-B9PIELoY.js} +5118 -5241
- package/dist/{index-DHYWnqST.js → index-BGt3GtoG.js} +1 -1
- package/dist/index-BuGCRLd5.js +198 -0
- package/dist/index-CRhXLwtt.js +7445 -0
- package/dist/{index-A8ClQmZo.js → index-Dmf6i8k4.js} +3 -4
- package/dist/{index-SkYFFVLL.js → index-PxQusjX0.js} +3368 -3415
- package/dist/{index-C5bv1F_u.js → index-UFdEurQ_.js} +12086 -12350
- package/dist/{index.es-DB9y_DEM.js → index.es-AaEds8Wm.js} +81 -83
- package/dist/{index.es-vIyUKt0W.js → index.es-Df0KTgu4.js} +4523 -4628
- package/dist/index.es.js +1 -1
- package/dist/{unsupportedProp-BLzY2-w_.js → unsupportedProp-BlS305Lt.js} +1 -1
- package/dist/{useRegisterError-Cf6oylnR.js → useRegisterError-BvjIv1Yc.js} +1668 -1701
- package/dist/widget.css +1 -1
- package/package.json +4 -5
- package/dist/EstGas-Dy3XfCzY.js +0 -1496
- package/dist/InputComp-GcnDqx_s.js +0 -105
- package/dist/LoadRoute-BmUgvDid.js +0 -125
- package/dist/QuotesProgress-E5JnUMS0.js +0 -28
- package/dist/TxnButton-Br8R19rF.js +0 -215
- package/dist/add-BryKCrpI.js +0 -19
- package/dist/all-wallets-BMVOK2Ci.js +0 -10
- package/dist/app-store-3WurbJdI.js +0 -21
- package/dist/apple-eM872Ubz.js +0 -22
- package/dist/arrow-bottom-HMc73fJ8.js +0 -12
- package/dist/arrow-bottom-circle-B1N_R8Ux.js +0 -15
- package/dist/arrow-left-Q7GAZkD7.js +0 -12
- package/dist/arrow-right-ft3TcIM3.js +0 -12
- package/dist/arrow-top-C2xmF6tK.js +0 -12
- package/dist/bank-Bk-2ZR5E.js +0 -18
- package/dist/basic-CWrKgDAB.js +0 -5783
- package/dist/browser-BFB3TFfv.js +0 -18
- package/dist/card-DCx59si8.js +0 -18
- package/dist/ccip-CXr08uP1.js +0 -228
- package/dist/checkmark-BGsuJuhE.js +0 -15
- package/dist/checkmark-bold-DvjIl-51.js +0 -12
- package/dist/chevron-bottom-DAEnG7QP.js +0 -12
- package/dist/chevron-left-D33h2ppx.js +0 -12
- package/dist/chevron-right-C8Z_feNK.js +0 -12
- package/dist/chevron-top-DwDMd3p9.js +0 -12
- package/dist/chrome-store-B7ZDs2Fj.js +0 -65
- package/dist/clock-DnELUxSR.js +0 -12
- package/dist/close-Dnt29Pss.js +0 -12
- package/dist/coinPlaceholder-C09pzuXv.js +0 -12
- package/dist/compass-D8ZY16nH.js +0 -12
- package/dist/copy-DEh4RBKI.js +0 -19
- package/dist/core-CgIQaiRa.js +0 -14966
- package/dist/cursor-BtzkAOER.js +0 -7
- package/dist/cursor-transparent-B0nCflmb.js +0 -16
- package/dist/desktop-toTG92uH.js +0 -13
- package/dist/disconnect-C97lbAtY.js +0 -12
- package/dist/discord-BNJ3JePY.js +0 -21
- package/dist/etherscan-CK87TQMS.js +0 -10
- package/dist/exclamation-triangle-LWnOk0uz.js +0 -8
- package/dist/extension-5eIZU28A.js +0 -12
- package/dist/external-link-DDlCfigP.js +0 -12
- package/dist/facebook-1lTMXKeH.js +0 -30
- package/dist/farcaster-Di2TUKlZ.js +0 -16
- package/dist/filters-B_THnHaX.js +0 -12
- package/dist/getCosmosAddress-B8s9Ycj4.js +0 -6075
- package/dist/github-D5B1FE4K.js +0 -22
- package/dist/google-C8_WSUfw.js +0 -22
- package/dist/help-circle-C-ZOzjAP.js +0 -16
- package/dist/id-BynpKmej.js +0 -16
- package/dist/image-BRYUh760.js +0 -8
- package/dist/index-BFUVWgoD.js +0 -992
- package/dist/index-CN6pVc2G.js +0 -1483
- package/dist/index-CZwuzz6v.js +0 -6712
- package/dist/index-Dnyeih-W.js +0 -3261
- package/dist/index-krrwn6Pi.js +0 -206
- package/dist/info-DSQyHS8b.js +0 -7
- package/dist/info-circle-BfpWcI4c.js +0 -16
- package/dist/lightbulb-DEMYYsZd.js +0 -7
- package/dist/mail-DNZ2to_6.js +0 -12
- package/dist/mobile-qsyS8oMK.js +0 -13
- package/dist/more-CnBuKwll.js +0 -15
- package/dist/network-placeholder-DhJITakA.js +0 -18
- package/dist/nftPlaceholder-DD3-Cc9U.js +0 -12
- package/dist/off-CBApAdDk.js +0 -12
- package/dist/play-store-DDoeRc-b.js +0 -36
- package/dist/plus-C3J-XWCn.js +0 -17
- package/dist/qr-code-CEoOYtHk.js +0 -10
- package/dist/recycle-horizontal-BHJ_s9Yx.js +0 -13
- package/dist/refresh-CtzOoHls.js +0 -12
- package/dist/reown-logo-BOj4YDUQ.js +0 -16
- package/dist/search--Miza3A_.js +0 -12
- package/dist/send-Bhl1lz4j.js +0 -19
- package/dist/swapHorizontal-CCvKCngz.js +0 -12
- package/dist/swapHorizontalBold-B90V-dXL.js +0 -12
- package/dist/swapHorizontalMedium-CYjeHjnI.js +0 -20
- package/dist/swapHorizontalRoundedBold-DSMWeXdW.js +0 -12
- package/dist/swapVertical-DOJUNIvk.js +0 -12
- package/dist/telegram-CufEY_4d.js +0 -20
- package/dist/three-dots-J2ngva7G.js +0 -9
- package/dist/twitch-B4vTKVf5.js +0 -22
- package/dist/twitterIcon-DLrxpAGg.js +0 -10
- package/dist/verify-CbHqPQKs.js +0 -12
- package/dist/verify-filled-CzKx9Cph.js +0 -12
- package/dist/w3m-modal-DhpjK4cG.js +0 -1471
- package/dist/wallet-CvIeO6On.js +0 -12
- package/dist/wallet-placeholder-BqELXTBj.js +0 -18
- package/dist/walletconnect-BN4c4XQ5.js +0 -36
- package/dist/warning-circle--dqxXujk.js +0 -16
- package/dist/x-CkCp5gtL.js +0 -16
@@ -0,0 +1,105 @@
|
|
1
|
+
import { jsxs as a, jsx as e, Fragment as v } from "react/jsx-runtime";
|
2
|
+
import { u as s, S as y } from "./index-UFdEurQ_.js";
|
3
|
+
import { useState as C, useRef as m } from "react";
|
4
|
+
import { u as k, i as S, W, F as j, f as d, a as x, b as D } from "./useRegisterError-BvjIv1Yc.js";
|
5
|
+
import { useAccount as F, useBalance as I } from "wagmi";
|
6
|
+
import { c as R, r as T } from "./index-CRhXLwtt.js";
|
7
|
+
function V({ amount: b, setAmount: i, fetchBalance: A, getCoinBalance: p, isBalanceLoading: h }) {
|
8
|
+
const n = s((t) => t.configuration), r = s((t) => t.fromCoin), w = s((t) => t.fromChain), { isAnyWalletConnected: u } = k({ chainData: w });
|
9
|
+
C(40);
|
10
|
+
const { address: f } = F(), g = m(), { defaultCoin: N } = S;
|
11
|
+
I({
|
12
|
+
address: f,
|
13
|
+
token: R(r?.address || ""),
|
14
|
+
chainId: Number(w?.chainId || 0),
|
15
|
+
enabled: w?.networkType == "evm"
|
16
|
+
});
|
17
|
+
const o = m(), l = p;
|
18
|
+
return /* @__PURE__ */ a("div", { className: " bw-mb-5 bw-mt-4", children: [
|
19
|
+
/* @__PURE__ */ a("p", { className: "bw-text-sm bw-text-left bw-font-medium bw-mb-1 bw-text-text-secondary", children: [
|
20
|
+
"Give ",
|
21
|
+
r?.name || ""
|
22
|
+
] }),
|
23
|
+
/* @__PURE__ */ a(
|
24
|
+
"div",
|
25
|
+
{
|
26
|
+
style: {
|
27
|
+
boxShadow: n && n.customTheme && n.customTheme?.shadow?.boxShadow || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
28
|
+
},
|
29
|
+
className: "bw-w-full bw-h-[80px] bw-flex bw-gap-x-1 bw-items-center bw-px-2 bw-bg-background-container bw-rounded-md bw-border bw-border-border-primary",
|
30
|
+
children: [
|
31
|
+
/* @__PURE__ */ a("div", { className: "bw-w-full bw-flex bw-gap-x-2 bw-mt-5 bw-items-start bw-h-full", children: [
|
32
|
+
/* @__PURE__ */ e("div", { className: " bw-flex bw-items-center", children: r?.image ? /* @__PURE__ */ e("div", { className: "bw-rounded-[50%] bw-bg-background-secondary bw-min-w-[40px] bw-w-[40px] bw-min-h-[40px] bw-flex bw-justify-center bw-items-center bw-border bw-border-border-primary", children: /* @__PURE__ */ e("img", { src: r?.image, width: 39, height: 39, alt: "img", className: "bw-rounded-[50%] bw-max-w-[39px] bw-max-h-[39px] bw-object-contain bw-min-w-[39px] bw-min-h-[39px]" }) }) : /* @__PURE__ */ e("div", { className: "bw-min-w-[40px] bw-w-[40px] bw-border bw-border-border-primary bw-min-h-[40px] bw-rounded-[50%] ", children: /* @__PURE__ */ e("img", { src: N, width: 39, height: 39, alt: "img", className: "bw-rounded-[50%] bw-min-w-[38px] bw-min-h-[39px]" }) }) }),
|
33
|
+
/* @__PURE__ */ a("div", { className: "bw-w-full", children: [
|
34
|
+
/* @__PURE__ */ e(
|
35
|
+
"div",
|
36
|
+
{
|
37
|
+
onClick: () => {
|
38
|
+
o.current.focus();
|
39
|
+
},
|
40
|
+
className: " ",
|
41
|
+
children: /* @__PURE__ */ a("div", { className: "bw-text-left", children: [
|
42
|
+
/* @__PURE__ */ a("span", { className: "bw-invisible bw-absolute", ref: g, children: [
|
43
|
+
b,
|
44
|
+
"0"
|
45
|
+
] }),
|
46
|
+
/* @__PURE__ */ e(
|
47
|
+
"input",
|
48
|
+
{
|
49
|
+
ref: o,
|
50
|
+
pattern: "[0-9]*",
|
51
|
+
inputMode: "decimal",
|
52
|
+
autoFocus: !0,
|
53
|
+
onWheel: (t) => t.target.blur(),
|
54
|
+
type: "number",
|
55
|
+
value: b,
|
56
|
+
onChange: (t) => {
|
57
|
+
let c = t.target.value;
|
58
|
+
c.length <= 11 && i(c);
|
59
|
+
},
|
60
|
+
onKeyDown: (t) => {
|
61
|
+
T(t);
|
62
|
+
},
|
63
|
+
placeholder: "0.0",
|
64
|
+
className: "bw-text-2xl md:bw-text-3xl bw-border-none focus:bw-placeholder:bw-opacity-0 placeholder:bw-text-left bw-h-[36px] bw-ml-auto bw-mb-1 bw-pl-1 bw-min-w-[45px] bw-max-w-[200px] bw-font-medium placeholder:bw-text-text-placeholder bw-text-text-primary bw-bg-transparent"
|
65
|
+
}
|
66
|
+
)
|
67
|
+
] })
|
68
|
+
}
|
69
|
+
),
|
70
|
+
/* @__PURE__ */ e("div", { children: r.coin.length && u ? h ? /* @__PURE__ */ e(y, { className: "bw-bg-background-secondary bw-rounded-md bw-h-[18px] bw-w-[100px]" }) : /* @__PURE__ */ a("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
71
|
+
/* @__PURE__ */ e(W, { fill: "var(--tw-text-secondary)" }),
|
72
|
+
/* @__PURE__ */ e("p", { className: "bw-text-xs bw-font-medium bw-text-text-secondary", children: /* @__PURE__ */ e(
|
73
|
+
j,
|
74
|
+
{
|
75
|
+
value: d(l),
|
76
|
+
options: {
|
77
|
+
maxDecimals: 10
|
78
|
+
}
|
79
|
+
}
|
80
|
+
) }),
|
81
|
+
/* @__PURE__ */ e(
|
82
|
+
"button",
|
83
|
+
{
|
84
|
+
className: "bw-text-xs bw-font-normal bw-min-w-[37px] bw-h-[18px] bw-rounded-[4px] bw-px-1 bw-border bw-border-border-primary bw-text-text-secondary",
|
85
|
+
onClick: () => {
|
86
|
+
i(x(d(l), 10));
|
87
|
+
},
|
88
|
+
children: "MAX"
|
89
|
+
}
|
90
|
+
)
|
91
|
+
] }) : /* @__PURE__ */ e(v, {}) })
|
92
|
+
] })
|
93
|
+
] }),
|
94
|
+
/* @__PURE__ */ e("div", { className: "bw-flex bw-justify-between bw-items-center", children: /* @__PURE__ */ e("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: /* @__PURE__ */ a("p", { className: ` bw-font-normal bw-pl-2 ${b.length ? "bw-text-text-secondary bw-text-xs md:bw-text-sm" : "bw-text-text-placeholder bw-text-[10px]"}`, children: [
|
95
|
+
"$",
|
96
|
+
x(D(b * r?.lastPrice), 10)
|
97
|
+
] }) }) })
|
98
|
+
]
|
99
|
+
}
|
100
|
+
)
|
101
|
+
] });
|
102
|
+
}
|
103
|
+
export {
|
104
|
+
V as default
|
105
|
+
};
|
@@ -0,0 +1,123 @@
|
|
1
|
+
import { jsx as e, jsxs as n, Fragment as r } from "react/jsx-runtime";
|
2
|
+
import { t as I } from "./truncate-D9t92mVX.js";
|
3
|
+
import { u as s, S as d, l as L } from "./index-UFdEurQ_.js";
|
4
|
+
import { useState as U, useEffect as A } from "react";
|
5
|
+
import { s as o } from "./WidgetForm.module-QHJ0-m5f.js";
|
6
|
+
import { G, C as O, S as T } from "./clockIcon-C2W5xvyt.js";
|
7
|
+
import { S as z } from "./down-DJH_apvy.js";
|
8
|
+
import { e as M } from "./ethertousd-CC_ezooz.js";
|
9
|
+
import { O as g } from "./index-Dmf6i8k4.js";
|
10
|
+
import { F as p, i as R } from "./useRegisterError-BvjIv1Yc.js";
|
11
|
+
function _({ fill: t }) {
|
12
|
+
return /* @__PURE__ */ e(
|
13
|
+
"svg",
|
14
|
+
{
|
15
|
+
width: "14",
|
16
|
+
height: "13",
|
17
|
+
viewBox: "0 0 14 13",
|
18
|
+
fill: "none",
|
19
|
+
xmlns: "http://www.w3.org/2000/svg",
|
20
|
+
children: /* @__PURE__ */ e(
|
21
|
+
"path",
|
22
|
+
{
|
23
|
+
d: "M8.96762 0.608257C9.75204 0.81844 10.4162 1.32448 10.8223 2.02798C11.1795 2.64657 11.3164 3.35994 11.2014 4.05707C11.8556 4.29389 12.405 4.76918 12.7621 5.38777L12.7691 5.3999C13.1753 6.10339 13.2814 6.93156 13.0713 7.71597C12.8611 8.50039 12.355 9.16451 11.6515 9.57067L6.18127 12.7289C5.64759 13.0371 4.95884 12.8525 4.65071 12.3188C4.34259 11.7851 4.52714 11.0964 5.06083 10.7883L10.5311 7.63C10.9192 7.40591 11.0525 6.90848 10.8284 6.52034L10.8214 6.50821C10.5973 6.12008 10.0999 5.98679 9.71177 6.21088L4.2415 9.36915C3.70781 9.67727 3.01906 9.49272 2.71094 8.95903C2.39581 8.41322 2.58736 7.7366 3.12105 7.42847L8.59132 4.27021C8.97946 4.04612 9.11274 3.54869 8.88165 3.14842C8.65756 2.76029 8.16013 2.627 7.77199 2.85109L2.30172 6.00936C1.76804 6.31748 1.08629 6.14506 0.771161 5.59924C0.463038 5.06556 0.647589 4.37681 1.18127 4.06868L6.65155 0.910419C7.35504 0.504257 8.18321 0.398074 8.96762 0.608257Z",
|
24
|
+
fill: t,
|
25
|
+
"fill-opacity": "1"
|
26
|
+
}
|
27
|
+
)
|
28
|
+
}
|
29
|
+
);
|
30
|
+
}
|
31
|
+
function X({ routes: t, handleShowAllRoutes: f, routesData: b, price: u, amount: v, isRoutesEnabled: x }) {
|
32
|
+
const y = t.data, [m, N] = U(), i = s((a) => a.gradient), w = s((a) => a.configuration), F = s((a) => a.fromChain), C = s((a) => a.fromCoin), S = s((a) => a.toChain), c = s((a) => a.toCoin), { defaultCoin: k } = R;
|
33
|
+
A(() => {
|
34
|
+
if (b) {
|
35
|
+
let a = { amountInUSD: 0, amountInNative: 0 }, h = {};
|
36
|
+
b?.fee?.forEach((l) => {
|
37
|
+
l.source == "FROM_SOURCE_WALLET" && (a.amountInUSD += Number(l.amountInUSD), a.amountInNative += Number(M(l.amountInToken, l.token.decimals)), h = { ...l });
|
38
|
+
}), N({ tempGasObj: a, token: h });
|
39
|
+
}
|
40
|
+
}, [b]);
|
41
|
+
let $ = b?.outputAmountDisplay || "", E = u.toString(), j = b?.providerDetails?.logoUrl?.length ? b?.providerDetails?.logoUrl : k;
|
42
|
+
return /* @__PURE__ */ e("div", { className: "bw-mt-2", children: F?.chain?.length && C?.coin?.length && S?.chain?.length && c?.coin?.length && v.length && x ? t.isSuccess && !t.data?.data?.quotes?.length && !t.isFetching ? /* @__PURE__ */ e("div", { className: "bw-bg-background-container bw-text-text-secondary bw-flex bw-justify-center bw-items-center bw-h-[80px] bw-relative bw-flex-col bw-border bw-border-border-primary", children: "No Routes Available" }) : t.isSuccess || t.isLoading || t.isFetching ? /* @__PURE__ */ n("div", { children: [
|
43
|
+
/* @__PURE__ */ n("div", { className: "bw-flex bw-items-center bw-justify-between", children: [
|
44
|
+
" ",
|
45
|
+
/* @__PURE__ */ n("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: [
|
46
|
+
"Get ",
|
47
|
+
c.name
|
48
|
+
] }),
|
49
|
+
t.isFetching ? /* @__PURE__ */ e(r, {}) : /* @__PURE__ */ e("div", { onClick: f, style: { ...w.gradientStyle }, className: `bw-w-[130px] bw-cursor-pointer bw-relative bw-p-[1px] bw-text-transparent bw-text-sm bw-font-normal bw-h-[18px] bw-rounded-xl ${i || `${o.overlayshow} ${w.gradientStyle?.background ? "" : "bw-bg-gradient-to-r bw-from-[#A45EFF] bw-to-[#2CFFE4]"}`}`, children: /* @__PURE__ */ e("div", { className: " bw-w-full bw-h-full bw-text-text-secondary bw-relative bw-z-10 bw-bg-background-container bw-flex bw-justify-center bw-items-center bw-text-xs bw-font-normal bw-rounded-xl", children: "Show All Routes" }) })
|
50
|
+
] }),
|
51
|
+
/* @__PURE__ */ n("div", { className: " bw-mt-2", children: [
|
52
|
+
/* @__PURE__ */ n("div", { style: t.isFetching ? {} : { ...w.gradientStyle }, className: ` ${t.isFetching ? "bw-bg-background-secondary" : ` ${i || `${w.gradientStyle?.background ? "" : "bw-bg-gradient-to-r bw-from-[#A45EFF] bw-to-[#2CFFE4]"} ${o.overlay}`} `} bw-relative bw-flex bw-justify-center bw-rounded-[8px] bw-w-full bw-p-[1px] bw-h-[86px] `, children: [
|
53
|
+
/* @__PURE__ */ n("div", { className: "bw-w-full bw-h-full bw-flex bw-px-2 bw-pb-3 bw-items-center bw-justify-between bw-bg-background-container rbw-elative bw-z-10 bw-rounded-[8px]", children: [
|
54
|
+
/* @__PURE__ */ n("div", { className: "bw-flex bw-items-start bw-gap-x-2", children: [
|
55
|
+
c?.image && !t.isFetching ? /* @__PURE__ */ e("img", { src: c.image, width: 30, height: 30, className: "bw-mt-1 bw-max-w-[30px] bw-max-h-[30px] bw-object-contain bw-bg-background-secondary bw-rounded-[50%]" }) : /* @__PURE__ */ e(r, {}),
|
56
|
+
/* @__PURE__ */ n("div", { children: [
|
57
|
+
t.isFetching ? /* @__PURE__ */ e(d, { className: "bw-bg-background-secondary bw-mt-3 bw-rounded-sm bw-h-[36px] bw-min-h-[36px]", animation: "wave", variant: "rectangular", height: 36, width: 250 }) : /* @__PURE__ */ e("p", { className: "bw-text-2xl md:bw-text-3xl bw-mb-1 bw-font-medium bw-text-text-primary", children: /* @__PURE__ */ e(g, { value: $, decimal: 12 }) }),
|
58
|
+
t.isFetching ? /* @__PURE__ */ e(d, { className: "bw-bg-background-secondary bw-mt-2 bw-rounded-sm bw-h-[20px] bw-w-[100px] bw-min-h-[20px]", variant: "rectangular", animation: "wave", height: 20, width: 100 }) : /* @__PURE__ */ n("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
59
|
+
/* @__PURE__ */ e(G, { fill: "var(--tw-text-primary)" }),
|
60
|
+
/* @__PURE__ */ n("p", { className: "bw-text-xs md:bw-text-sm bw-font-medium bw-text-text-primary", children: [
|
61
|
+
"Total Fee:",
|
62
|
+
" $",
|
63
|
+
/* @__PURE__ */ e(p, { value: m?.tempGasObj?.amountInUSD || 0, options: { maxDecimals: 8 } }),
|
64
|
+
" (",
|
65
|
+
/* @__PURE__ */ e(p, { value: m?.tempGasObj?.amountInNative || 0, options: { maxDecimals: 8 } }),
|
66
|
+
` ${m?.token?.token?.symbol || ""})`
|
67
|
+
] })
|
68
|
+
] })
|
69
|
+
] })
|
70
|
+
] }),
|
71
|
+
/* @__PURE__ */ n("div", { className: " bw-text-sm bw-font-medium bw-mt-2 bw-text-text-loaderbar ", children: [
|
72
|
+
t.isFetching ? /* @__PURE__ */ e(d, { className: "bw-bg-background-secondary bw-w-[50px] bw-rounded-sm bw-h-[20px] bw-min-h-[20px]", variant: "rectangular", animation: "wave", height: 20, width: 50 }) : /* @__PURE__ */ n("p", { className: "bw-text-text-secondary bw-font-medium bw-text-xs md:bw-text-sm", children: [
|
73
|
+
"$",
|
74
|
+
/* @__PURE__ */ e(g, { value: E, decimal: 10 })
|
75
|
+
] }),
|
76
|
+
t.isFetching ? /* @__PURE__ */ e(d, { className: "bw-bg-background-secondary bw-w-[50px] bw-mt-2 bw-rounded-sm bw-h-[20px] bw-min-h-[20px] ", variant: "rectangular", animation: "wave", height: 20, width: 50 }) : y?.data?.quotes?.[0]?._id === b._id ? /* @__PURE__ */ e("div", { style: { ...w.gradientStyle }, className: `${i || `${w.gradientStyle?.background ? "" : "bw-bg-gradient-to-r bw-from-[#A45EFF] bw-to-[#2CFFE4]"} `} bw-mt-3 bw-text-right bw-text-transparent bw-text-[10px] bw-font-bold bw-bg-clip-text ${o.gradienttext}`, children: "BEST" }) : /* @__PURE__ */ e(r, {})
|
77
|
+
] })
|
78
|
+
] }),
|
79
|
+
t.isFetching ? /* @__PURE__ */ e("div", { className: "bw-absolute bw-w-[40px] bw-h-[40px] bw-bottom-[-35%] bw-z-20 ", children: /* @__PURE__ */ e(z, {}) }) : /* @__PURE__ */ e(r, {}),
|
80
|
+
/* @__PURE__ */ n("div", { className: "bw-h-[18px] bw-w-max bw-z-10 bw-min-w-[200px] bw-bg-background-container bw-flex bw-items-center bw-absolute bw-bottom-[-10%]", children: [
|
81
|
+
!t.isFetching && !L.isEmpty(b) ? /* @__PURE__ */ n("div", { className: "bw-flex bw-w-full bw-px-6 bw-items-center bw-gap-x-1", children: [
|
82
|
+
" ",
|
83
|
+
/* @__PURE__ */ n("p", { className: "bw-text-sm bw-w-full bw-text-center bw-flex bw-justify-center bw-items-center bw-font-normal bw-my-1 bw-text-text-secondary", children: [
|
84
|
+
/* @__PURE__ */ e("span", { className: "bw-text-sm bw-font-light", children: "via" }),
|
85
|
+
" ",
|
86
|
+
/* @__PURE__ */ e("img", { src: j, className: "bw-rounded-[50%] bw-mx-[4px] bw-min-w-[18px] bw-max-h-[18px] bw-min-h-[18px]", width: 18, height: 18 }),
|
87
|
+
b?.providerDetails?.name || "",
|
88
|
+
": ",
|
89
|
+
b?.protocolsUsed[0],
|
90
|
+
b?.protocolsUsed?.length <= 1 ? "" : /* @__PURE__ */ n("span", { className: "bw-ml-1 bw-text-xs bw-font-normal", children: [
|
91
|
+
`+${b?.protocolsUsed?.length - 1}`,
|
92
|
+
" More"
|
93
|
+
] }),
|
94
|
+
" "
|
95
|
+
] }),
|
96
|
+
" "
|
97
|
+
] }) : /* @__PURE__ */ e(r, {}),
|
98
|
+
/* @__PURE__ */ e("div", { style: t.isFetching ? {} : { ...w.gradientStyle }, className: ` ${t.isFetching ? "bw-bg-background-secondary" : ` ${i || ` ${o.overlay} ${w?.gradientStyle?.background ? "" : "bw-bg-gradient-to-r bw-from-[#A45EFF] bw-to-[#2CFFE4]"}`}`} bw-absolute bw-right-0 bw-rounded-[50%] bw-w-[4px] bw-h-[4px] ` }),
|
99
|
+
/* @__PURE__ */ e("div", { style: t.isFetching ? {} : { ...w.gradientStyle }, className: ` ${t.isFetching ? "bw-bg-background-secondary" : ` ${i || ` ${o.overlay} ${w?.gradientStyle?.background ? "" : "bw-bg-gradient-to-r bw-from-[#A45EFF] bw-to-[#2CFFE4]"}`}`} bw-absolute bw-rounded-[50%] bw-w-[4px] bw-h-[4px] ` })
|
100
|
+
] })
|
101
|
+
] }),
|
102
|
+
/* @__PURE__ */ e("div", { className: "bw-bg-background-container bw-flex bw-items-center bw-w-[85%] bw-mx-auto bw-rounded-b-md bw-justify-center bw-h-[60px]", children: t.isFetching ? /* @__PURE__ */ e("div", { className: "bw-mt-6 bw-w-full bw-h-[20px]" }) : /* @__PURE__ */ n("div", { className: "bw-flex bw-items-center bw-gap-x-4 bw-mt-2 bw-bg-background-container bw-justify-center ", children: [
|
103
|
+
/* @__PURE__ */ n("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
104
|
+
/* @__PURE__ */ e(_, { fill: "var(--tw-text-secondary)" }),
|
105
|
+
/* @__PURE__ */ e("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: "Fee" }),
|
106
|
+
/* @__PURE__ */ e("p", { className: "bw-text-sm bw-line-through bw-font-medium bw-text-text-secondary", children: "0.1%" }),
|
107
|
+
/* @__PURE__ */ e("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: "0" })
|
108
|
+
] }),
|
109
|
+
/* @__PURE__ */ n("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
110
|
+
/* @__PURE__ */ e(O, { fill: "var(--tw-text-secondary)" }),
|
111
|
+
/* @__PURE__ */ e("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: b?.estimatedTimeInSeconds >= 90 ? `${Math.round(I((b?.estimatedTimeInSeconds || 60) / 60, 2) || 0)}min` : `${b?.estimatedTimeInSeconds || 60} secs` })
|
112
|
+
] }),
|
113
|
+
/* @__PURE__ */ n("div", { className: " bw-gap-x-1 bw-flex bw-items-center bw-text-xs bw-font-normal bw-text-text-primary", children: [
|
114
|
+
/* @__PURE__ */ e(T, { fill: "var(--tw-text-secondary)" }),
|
115
|
+
/* @__PURE__ */ e("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: `${b?.steps?.length || ""} step` })
|
116
|
+
] })
|
117
|
+
] }) })
|
118
|
+
] })
|
119
|
+
] }) : x ? /* @__PURE__ */ e("div", { className: "bw-bg-background-container bw-text-text-secondary bw-justify-center bw-items-center bw-h-[80px] bw-relative bw-flex bw-flex-col bw-border bw-border-border-primary", children: "Failed to load routes" }) : /* @__PURE__ */ e(r, {}) : /* @__PURE__ */ e(r, {}) });
|
120
|
+
}
|
121
|
+
export {
|
122
|
+
X as default
|
123
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { jsxs as s, jsx as a, Fragment as l } from "react/jsx-runtime";
|
2
|
+
import { s as b } from "./WidgetForm.module-QHJ0-m5f.js";
|
3
|
+
import { u as d } from "./index-UFdEurQ_.js";
|
4
|
+
function m({ routesData: w, routes: e, quoteTimer: n, amount: o }) {
|
5
|
+
const r = d((i) => i.configuration), t = d((i) => i.gradient);
|
6
|
+
return o && !e.isFetching && typeof e.data < "u" && e.data?.data?.quotes?.length && !e.isError ? /* @__PURE__ */ s("div", { className: "bw-flex bw-items-center bw-gap-x-2 bw-justify-between", children: [
|
7
|
+
/* @__PURE__ */ a("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: "New Quote in" }),
|
8
|
+
/* @__PURE__ */ a("div", { className: " bw-w-[250px] bw-flex-1 bw-bg-border-primary bw-h-[3px] bw-overflow-x-hidden", children: /* @__PURE__ */ a(
|
9
|
+
"div",
|
10
|
+
{
|
11
|
+
style: {
|
12
|
+
height: "100%",
|
13
|
+
...r.gradientStyle,
|
14
|
+
width: `${100 - n / w.deadline * 100}%`
|
15
|
+
},
|
16
|
+
className: ` ${t || `${r.gradientStyle?.background ? "" : "bw-bg-gradient-to-r bw-from-[#A45EFF] bw-to-[#2CFFE4]"} ${b.overlay}`} bw-relative `
|
17
|
+
}
|
18
|
+
) }),
|
19
|
+
/* @__PURE__ */ s("div", { style: { ...r.gradientStyle }, className: `${t ? `${t} bw-bg-clip-text bw-text-transparent` : b.gradienttext} bw-relative bw-text-right bw-w-max bw-text-2xl bw-font-semibold bw-text-transparent `, children: [
|
20
|
+
n,
|
21
|
+
"s"
|
22
|
+
] })
|
23
|
+
] }) : /* @__PURE__ */ a(l, {});
|
24
|
+
}
|
25
|
+
export {
|
26
|
+
m as default
|
27
|
+
};
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { u as
|
3
|
-
function
|
4
|
-
return /* @__PURE__ */
|
1
|
+
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
2
|
+
import { u as e } from "./index-UFdEurQ_.js";
|
3
|
+
function c({ fill1: t, fill2: r }) {
|
4
|
+
return /* @__PURE__ */ a(
|
5
5
|
"svg",
|
6
6
|
{
|
7
7
|
width: "37",
|
@@ -10,17 +10,17 @@ function w({ fill1: o, fill2: r }) {
|
|
10
10
|
fill: "none",
|
11
11
|
xmlns: "http://www.w3.org/2000/svg",
|
12
12
|
children: [
|
13
|
-
/* @__PURE__ */
|
13
|
+
/* @__PURE__ */ o(
|
14
14
|
"circle",
|
15
15
|
{
|
16
16
|
cx: "18.5027",
|
17
17
|
cy: "18.6207",
|
18
18
|
r: "18.2551",
|
19
19
|
transform: "rotate(90 18.5027 18.6207)",
|
20
|
-
fill:
|
20
|
+
fill: t
|
21
21
|
}
|
22
22
|
),
|
23
|
-
/* @__PURE__ */
|
23
|
+
/* @__PURE__ */ o(
|
24
24
|
"path",
|
25
25
|
{
|
26
26
|
d: "M14.3655 7.6488L7.58782 16.5705L28.9581 16.5705L28.9581 12.7663L14.3655 12.7663L14.3655 7.6488Z",
|
@@ -28,7 +28,7 @@ function w({ fill1: o, fill2: r }) {
|
|
28
28
|
"fill-opacity": "1"
|
29
29
|
}
|
30
30
|
),
|
31
|
-
/* @__PURE__ */
|
31
|
+
/* @__PURE__ */ o(
|
32
32
|
"path",
|
33
33
|
{
|
34
34
|
d: "M22.2517 29.0189L29.0294 20.0972L7.65911 20.0972L7.65911 23.9014L22.2517 23.9014L22.2517 29.0189Z",
|
@@ -40,12 +40,11 @@ function w({ fill1: o, fill2: r }) {
|
|
40
40
|
}
|
41
41
|
);
|
42
42
|
}
|
43
|
-
function
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
return /* @__PURE__ */ t("div", { onClick: o, className: `${e ? "" : "bw-pointer-events-none"} bw-absolute hover:bw-scale-[0.95] bw-border bw-border-border-primary bw-rounded-[50%] bw-cursor-pointer bw-bg-background-container bw-top-[33%] bw-right-[45%] `, children: /* @__PURE__ */ t(w, { fill1: "var(--tw-background-container)", fill2: e ? "var(--tw-text-primary)" : "var(--tw-text-secondary)" }) });
|
43
|
+
function b({ handleSwap: t }) {
|
44
|
+
const r = e((n) => n.fromCoin), l = e((n) => n.toCoin);
|
45
|
+
let i = r?.coin?.length && l.coin?.length;
|
46
|
+
return /* @__PURE__ */ o("div", { onClick: t, className: `${i ? "" : "bw-pointer-events-none"} bw-absolute hover:bw-scale-[0.95] bw-border bw-border-border-primary bw-rounded-[50%] bw-cursor-pointer bw-bg-background-container bw-top-[33%] bw-right-[45%] `, children: /* @__PURE__ */ o(c, { fill1: "var(--tw-background-container)", fill2: i ? "var(--tw-text-primary)" : "var(--tw-text-secondary)" }) });
|
48
47
|
}
|
49
48
|
export {
|
50
|
-
|
49
|
+
b as default
|
51
50
|
};
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { a as go, c as To, d as yo, _ as vo, p as B, e as n, f as D, s as Q, h as Ve, i as Po, j as ze, P as e } from "./index-UFdEurQ_.js";
|
2
2
|
import * as p from "react";
|
3
|
-
import {
|
3
|
+
import { u as wo, a as Ro, b as Co, P as He, G as Be } from "./Grow-CxaAxl6-.js";
|
4
4
|
import { jsx as j, jsxs as Se } from "react/jsx-runtime";
|
5
|
-
import {
|
5
|
+
import { d as xo, e as I, g as Ue, h as Oo, j as Mo, k as Eo, l as A, T as _o, m as No } from "./useRegisterError-BvjIv1Yc.js";
|
6
6
|
function Lo(r) {
|
7
7
|
return To("MuiTooltip", r);
|
8
8
|
}
|
@@ -150,7 +150,7 @@ const jo = (r) => {
|
|
150
150
|
}, t.touch && {
|
151
151
|
marginTop: "24px"
|
152
152
|
})
|
153
|
-
})),
|
153
|
+
})), ko = Q("span", {
|
154
154
|
name: "MuiTooltip",
|
155
155
|
slot: "Arrow",
|
156
156
|
overridesResolver: (r, t) => t.arrow
|
@@ -173,18 +173,18 @@ const jo = (r) => {
|
|
173
173
|
transform: "rotate(45deg)"
|
174
174
|
}
|
175
175
|
}));
|
176
|
-
let
|
176
|
+
let k = !1;
|
177
177
|
const We = new _o();
|
178
178
|
let w = {
|
179
179
|
x: 0,
|
180
180
|
y: 0
|
181
181
|
};
|
182
|
-
function
|
182
|
+
function F(r, t) {
|
183
183
|
return (s, ...d) => {
|
184
184
|
t && t(s, ...d), r(s, ...d);
|
185
185
|
};
|
186
186
|
}
|
187
|
-
const
|
187
|
+
const Fo = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
188
188
|
var d, R, C, x, Z, ee, oe, te, re, ne, se, pe, ie, le, ae, ce, ue, de, me;
|
189
189
|
const S = yo({
|
190
190
|
props: t,
|
@@ -195,9 +195,9 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
|
195
195
|
components: O = {},
|
196
196
|
componentsProps: h = {},
|
197
197
|
describeChild: Ye = !1,
|
198
|
-
disableFocusListener:
|
198
|
+
disableFocusListener: Ge = !1,
|
199
199
|
disableHoverListener: he = !1,
|
200
|
-
disableInteractive:
|
200
|
+
disableInteractive: qe = !1,
|
201
201
|
disableTouchListener: Ke = !1,
|
202
202
|
enterDelay: be = 100,
|
203
203
|
enterNextDelay: ge = 0,
|
@@ -213,13 +213,13 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
|
213
213
|
PopperComponent: V,
|
214
214
|
PopperProps: b = {},
|
215
215
|
slotProps: g = {},
|
216
|
-
slots:
|
216
|
+
slots: M = {},
|
217
217
|
title: m,
|
218
218
|
TransitionComponent: Ze = Be,
|
219
219
|
TransitionProps: eo
|
220
220
|
} = S, Re = vo(S, $o), c = /* @__PURE__ */ p.isValidElement(U) ? U : /* @__PURE__ */ j("span", {
|
221
221
|
children: U
|
222
|
-
}), Ce = xo(), oo = wo(), [l, xe] = p.useState(), [z, to] = p.useState(null),
|
222
|
+
}), Ce = xo(), oo = wo(), [l, xe] = p.useState(), [z, to] = p.useState(null), E = p.useRef(!1), H = qe || W, Oe = I(), Y = I(), _ = I(), Me = I(), [ro, Ee] = Ro({
|
223
223
|
controlled: Pe,
|
224
224
|
default: !1,
|
225
225
|
name: "Tooltip",
|
@@ -234,28 +234,28 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
|
234
234
|
l && l.disabled && !o && m !== "" && l.tagName.toLowerCase();
|
235
235
|
}, [m, l, o]);
|
236
236
|
}
|
237
|
-
const
|
238
|
-
T.current !== void 0 && (document.body.style.WebkitUserSelect = T.current, T.current = void 0),
|
237
|
+
const G = Co(Je), T = p.useRef(), N = Ue(() => {
|
238
|
+
T.current !== void 0 && (document.body.style.WebkitUserSelect = T.current, T.current = void 0), Me.clear();
|
239
239
|
});
|
240
240
|
p.useEffect(() => N, [N]);
|
241
241
|
const _e = (o) => {
|
242
|
-
We.clear(),
|
242
|
+
We.clear(), k = !0, Ee(!0), ve && !u && ve(o);
|
243
243
|
}, L = Ue(
|
244
244
|
/**
|
245
245
|
* @param {React.SyntheticEvent | Event} event
|
246
246
|
*/
|
247
247
|
(o) => {
|
248
248
|
We.start(800 + Te, () => {
|
249
|
-
|
250
|
-
}),
|
251
|
-
|
249
|
+
k = !1;
|
250
|
+
}), Ee(!1), ye && u && ye(o), Oe.start(Ce.transitions.duration.shortest, () => {
|
251
|
+
E.current = !1;
|
252
252
|
});
|
253
253
|
}
|
254
254
|
), $ = (o) => {
|
255
|
-
|
255
|
+
E.current && o.type !== "touchstart" || (l && l.removeAttribute("title"), Y.clear(), _.clear(), be || k && ge ? Y.start(k ? ge : be, () => {
|
256
256
|
_e(o);
|
257
257
|
}) : _e(o));
|
258
|
-
},
|
258
|
+
}, q = (o) => {
|
259
259
|
Y.clear(), _.start(Te, () => {
|
260
260
|
L(o);
|
261
261
|
});
|
@@ -265,15 +265,15 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
|
265
265
|
onFocus: so,
|
266
266
|
ref: po
|
267
267
|
} = Oo(), [, Le] = p.useState(!1), $e = (o) => {
|
268
|
-
no(o), Ne.current === !1 && (Le(!1),
|
268
|
+
no(o), Ne.current === !1 && (Le(!1), q(o));
|
269
269
|
}, De = (o) => {
|
270
270
|
l || xe(o.currentTarget), so(o), Ne.current === !0 && (Le(!0), $(o));
|
271
271
|
}, je = (o) => {
|
272
|
-
|
272
|
+
E.current = !0;
|
273
273
|
const i = c.props;
|
274
274
|
i.onTouchStart && i.onTouchStart(o);
|
275
275
|
}, io = (o) => {
|
276
|
-
je(o), _.clear(), Oe.clear(), N(), T.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none",
|
276
|
+
je(o), _.clear(), Oe.clear(), N(), T.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", Me.start(Xe, () => {
|
277
277
|
document.body.style.WebkitUserSelect = T.current, $(o);
|
278
278
|
});
|
279
279
|
}, lo = (o) => {
|
@@ -291,7 +291,7 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
|
291
291
|
document.removeEventListener("keydown", o);
|
292
292
|
};
|
293
293
|
}, [L, u]);
|
294
|
-
const ao = Eo(
|
294
|
+
const ao = Mo(Eo(c), po, xe, s);
|
295
295
|
!m && m !== 0 && (u = !1);
|
296
296
|
const K = p.useRef(), co = (o) => {
|
297
297
|
const i = c.props;
|
@@ -300,7 +300,7 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
|
300
300
|
y: o.clientY
|
301
301
|
}, K.current && K.current.update();
|
302
302
|
}, y = {}, X = typeof m == "string";
|
303
|
-
Ye ? (y.title = !u && X && !he ? m : null, y["aria-describedby"] = u ?
|
303
|
+
Ye ? (y.title = !u && X && !he ? m : null, y["aria-describedby"] = u ? G : null) : (y["aria-label"] = X ? m : null, y["aria-labelledby"] = u && !X ? G : null);
|
304
304
|
const a = n({}, y, Re, c.props, {
|
305
305
|
className: D(Re.className, c.props.className),
|
306
306
|
onTouchStart: je,
|
@@ -312,7 +312,7 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
|
312
312
|
l && l.getAttribute("data-mui-internal-clone-element");
|
313
313
|
}, [l]));
|
314
314
|
const v = {};
|
315
|
-
Ke || (a.onTouchStart = io, a.onTouchEnd = lo), he || (a.onMouseOver =
|
315
|
+
Ke || (a.onTouchStart = io, a.onTouchEnd = lo), he || (a.onMouseOver = F($, a.onMouseOver), a.onMouseLeave = F(q, a.onMouseLeave), H || (v.onMouseOver = $, v.onMouseLeave = q)), Ge || (a.onFocus = F(De, a.onFocus), a.onBlur = F($e, a.onBlur), H || (v.onFocus = De, v.onBlur = $e)), B.env.NODE_ENV !== "production" && c.props.title;
|
316
316
|
const uo = p.useMemo(() => {
|
317
317
|
var o;
|
318
318
|
let i = [{
|
@@ -332,12 +332,12 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
|
332
332
|
disableInteractive: H,
|
333
333
|
placement: we,
|
334
334
|
PopperComponentProp: V,
|
335
|
-
touch:
|
336
|
-
}), J = jo(P), Ie = (d = (R =
|
337
|
-
className: D(J.popper, b
|
338
|
-
}), P), fo = A(Ae, n({}, eo, (ie = g.transition) != null ? ie : h.transition), P), ho = A(
|
335
|
+
touch: E.current
|
336
|
+
}), J = jo(P), Ie = (d = (R = M.popper) != null ? R : O.Popper) != null ? d : Io, Ae = (C = (x = (Z = M.transition) != null ? Z : O.Transition) != null ? x : Ze) != null ? C : Be, ke = (ee = (oe = M.tooltip) != null ? oe : O.Tooltip) != null ? ee : Ao, Fe = (te = (re = M.arrow) != null ? re : O.Arrow) != null ? te : ko, mo = A(Ie, n({}, b, (ne = g.popper) != null ? ne : h.popper, {
|
337
|
+
className: D(J.popper, b?.className, (se = (pe = g.popper) != null ? pe : h.popper) == null ? void 0 : se.className)
|
338
|
+
}), P), fo = A(Ae, n({}, eo, (ie = g.transition) != null ? ie : h.transition), P), ho = A(ke, n({}, (le = g.tooltip) != null ? le : h.tooltip, {
|
339
339
|
className: D(J.tooltip, (ae = (ce = g.tooltip) != null ? ce : h.tooltip) == null ? void 0 : ae.className)
|
340
|
-
}), P), bo = A(
|
340
|
+
}), P), bo = A(Fe, n({}, (ue = g.arrow) != null ? ue : h.arrow, {
|
341
341
|
className: D(J.arrow, (de = (me = g.arrow) != null ? me : h.arrow) == null ? void 0 : de.className)
|
342
342
|
}), P);
|
343
343
|
return /* @__PURE__ */ Se(p.Fragment, {
|
@@ -356,7 +356,7 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
|
356
356
|
} : l,
|
357
357
|
popperRef: K,
|
358
358
|
open: l ? u : !1,
|
359
|
-
id:
|
359
|
+
id: G,
|
360
360
|
transition: !0
|
361
361
|
}, v, mo, {
|
362
362
|
popperOptions: uo,
|
@@ -365,8 +365,8 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
|
365
365
|
}) => /* @__PURE__ */ j(Ae, n({
|
366
366
|
timeout: Ce.transitions.duration.shorter
|
367
367
|
}, o, fo, {
|
368
|
-
children: /* @__PURE__ */ Se(
|
369
|
-
children: [m, fe ? /* @__PURE__ */ j(
|
368
|
+
children: /* @__PURE__ */ Se(ke, n({}, ho, {
|
369
|
+
children: [m, fe ? /* @__PURE__ */ j(Fe, n({}, bo, {
|
370
370
|
ref: to
|
371
371
|
})) : null]
|
372
372
|
}))
|
@@ -374,7 +374,7 @@ const ko = /* @__PURE__ */ p.forwardRef(function(t, s) {
|
|
374
374
|
}))]
|
375
375
|
});
|
376
376
|
});
|
377
|
-
B.env.NODE_ENV !== "production" && (
|
377
|
+
B.env.NODE_ENV !== "production" && (Fo.propTypes = {
|
378
378
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
379
379
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
380
380
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
@@ -568,5 +568,5 @@ B.env.NODE_ENV !== "production" && (ko.propTypes = {
|
|
568
568
|
TransitionProps: e.object
|
569
569
|
});
|
570
570
|
export {
|
571
|
-
|
571
|
+
Fo as T
|
572
572
|
};
|