@blockend/widget 1.0.31 → 1.0.32
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-CPwuTwqd.js +2209 -0
- package/dist/Box-CIChapvH.js +55 -0
- package/dist/EstGas-CEFILtyf.js +12867 -0
- package/dist/Grow-DJZj9zjv.js +1656 -0
- package/dist/InputComp-DqF1JGIu.js +106 -0
- package/dist/LoadRoute-r3sHTYXM.js +126 -0
- package/dist/QuotesProgress-BXVLxZ8U.js +28 -0
- package/dist/SwapAsset-07WvVwl-.js +64 -0
- package/dist/Tooltip-CNAsCF8n.js +572 -0
- package/dist/TxnButton-D2TTkFYA.js +207 -0
- package/dist/WidgetForm.module-QHJ0-m5f.js +9 -0
- package/dist/{add-B8AfyNIx.js → add-t2GqC9VA.js} +3 -3
- package/dist/{all-wallets-BaLLU39i.js → all-wallets-DFyf0q31.js} +3 -3
- package/dist/{app-store-DNpoABj1.js → app-store-aAahwmBP.js} +3 -3
- package/dist/{apple-DzzHtaL4.js → apple-DeRgpwlc.js} +3 -3
- package/dist/{arrow-bottom-D2c13c51.js → arrow-bottom-DdEOkaAj.js} +3 -3
- package/dist/{arrow-bottom-circle-ls9OCLx1.js → arrow-bottom-circle-BWwREWcv.js} +3 -3
- package/dist/{arrow-left-BI3rQkNI.js → arrow-left-CulyLmoH.js} +3 -3
- package/dist/{arrow-right-rnMzhVod.js → arrow-right-Dwr7TISn.js} +3 -3
- package/dist/{arrow-top-CfA6PVMz.js → arrow-top-pL4rM_y8.js} +3 -3
- package/dist/{bank-CmpAmHgg.js → bank-CPuyK_08.js} +3 -3
- package/dist/basic-CVc9xEvb.js +5783 -0
- package/dist/{browser-mEcjgS1H.js → browser-Cbq2Zbp4.js} +3 -3
- package/dist/{card-DkgIWcMc.js → card-B_hUtPWK.js} +3 -3
- package/dist/ccip-BLVGcR4A.js +228 -0
- package/dist/{checkmark-B_A013n2.js → checkmark-WEqTsFAc.js} +3 -3
- package/dist/{checkmark-bold-DestuG2T.js → checkmark-bold-Du_ZvhqM.js} +3 -3
- package/dist/{chevron-bottom-Di3S86dj.js → chevron-bottom-C-s-lv4L.js} +3 -3
- package/dist/{chevron-left-A9Wj-3tj.js → chevron-left-C7NcRElx.js} +3 -3
- package/dist/{chevron-right-UFxJogOZ.js → chevron-right-CSzmAmdn.js} +3 -3
- package/dist/{chevron-top-BbZs3eaC.js → chevron-top-Dd99Wfel.js} +3 -3
- package/dist/{chrome-store-B4F6hJmy.js → chrome-store-C4p77Of0.js} +3 -3
- package/dist/{clock-BbAQ09uV.js → clock-Cib24qjH.js} +3 -3
- package/dist/clockIcon-C2W5xvyt.js +76 -0
- package/dist/{close-CY3oZP_D.js → close-BXjEkTvS.js} +3 -3
- package/dist/{coinPlaceholder-DpfsobZT.js → coinPlaceholder-BFNC7cQN.js} +3 -3
- package/dist/{compass-CHS7RZFk.js → compass-CXPX5Ycp.js} +3 -3
- package/dist/{copy-CEd4nGhs.js → copy-BEawMbmF.js} +3 -3
- package/dist/core-Bez9Ow7F.js +14967 -0
- package/dist/cursor-Cxq4Q9jk.js +7 -0
- package/dist/{cursor-transparent-Tm6k6Ws4.js → cursor-transparent-ZjJ0P2vr.js} +3 -3
- package/dist/{desktop-CrSyXZkL.js → desktop-BhZVovAp.js} +3 -3
- package/dist/{disconnect-BooT10E1.js → disconnect-AC-bffZO.js} +3 -3
- package/dist/{discord-B982Qaml.js → discord-dT97h-CC.js} +3 -3
- package/dist/down-DP56YSKp.js +606 -0
- package/dist/{etherscan-CFL0IcNl.js → etherscan-rYFRhRTM.js} +3 -3
- package/dist/ethertousd-CC_ezooz.js +6 -0
- package/dist/{exclamation-triangle-BBeGXYgt.js → exclamation-triangle-C-pCuC08.js} +3 -3
- package/dist/{extension-C5WqJw73.js → extension-BnqauLSn.js} +3 -3
- package/dist/{external-link-CcSxVDcd.js → external-link-M9D6e_F3.js} +3 -3
- package/dist/{facebook-DF0v9ED8.js → facebook-DHezcoD-.js} +3 -3
- package/dist/{farcaster-Boq7M4VK.js → farcaster-D0Ky-Imv.js} +3 -3
- package/dist/{filters-DfeymbPx.js → filters-B02NYLWq.js} +3 -3
- package/dist/getChainIds-CJd2TZYT.js +1888 -0
- package/dist/getCosmosAddress-DTZfw04G.js +9565 -0
- package/dist/{github-DQ8FV4bD.js → github-BzQkIMuE.js} +3 -3
- package/dist/{google-Dm8FDDZR.js → google-BpwCJ4Fs.js} +3 -3
- package/dist/hamburger-BzqwkUjE.js +3915 -0
- package/dist/{help-circle-CbgiAebR.js → help-circle-C0nOySHC.js} +3 -3
- package/dist/{id-CzqxUksI.js → id-DFP_kFd4.js} +3 -3
- package/dist/{image-CsCGTIN-.js → image-QiYOAGjM.js} +3 -3
- package/dist/index-CDq3vNnP.js +22 -0
- package/dist/index-CLzkn733.js +28223 -0
- package/dist/index-CjtwASJt.js +252 -0
- package/dist/index-CrC4B7xn.js +331 -0
- package/dist/index-D5hLIe-N.js +9 -0
- package/dist/index-DDk00SOL.js +159 -0
- package/dist/index-DTish3yr.js +1014 -0
- package/dist/index-DW3W7zaF.js +473 -0
- package/dist/index-DXdD3L9f.js +1460 -0
- package/dist/index-DaJ1272l.js +18613 -0
- package/dist/index-DxPp2gBS.js +992 -0
- package/dist/index-Dy_n2MPD.js +3010 -0
- package/dist/index-oc8HPfOF.js +13583 -0
- package/dist/index.es-Bsr7zP98.js +366 -0
- package/dist/index.es-C-j-Ghef.js +11678 -0
- package/dist/index.es.js +4 -4
- package/dist/{info-fKCfLW0k.js → info-BTLQJ-wd.js} +3 -3
- package/dist/{info-circle-Bt350Yzj.js → info-circle-Dla9169_.js} +3 -3
- package/dist/{lightbulb-BL9YBxiA.js → lightbulb-PN8DA_Wh.js} +3 -3
- package/dist/{mail-_g6CHQeQ.js → mail-BGYZut_4.js} +3 -3
- package/dist/{mobile-B-EQ4IcH.js → mobile-BM760ZzX.js} +3 -3
- package/dist/{more-C3rpOdUy.js → more-rHGnl2ck.js} +3 -3
- package/dist/{network-placeholder-D9Ak7Xj_.js → network-placeholder-CyQl-3_2.js} +3 -3
- package/dist/{nftPlaceholder-CIIm2V_o.js → nftPlaceholder-nuUJ8nKY.js} +3 -3
- package/dist/{off-DZjgI0eE.js → off-GYlwYDrT.js} +3 -3
- package/dist/{play-store-DvRnagoF.js → play-store-Ck01Ez1F.js} +3 -3
- package/dist/{plus-C2jN2huZ.js → plus-CQfXWgLw.js} +3 -3
- package/dist/{qr-code-B64HnZgi.js → qr-code-CyLVwLY7.js} +3 -3
- package/dist/{recycle-horizontal-CovcJGa_.js → recycle-horizontal-DvnWPcEQ.js} +3 -3
- package/dist/{refresh-J1Vw6QMA.js → refresh-BOxj8b2n.js} +3 -3
- package/dist/{reown-logo-BsXoZ3KT.js → reown-logo-D1iprOTg.js} +3 -3
- package/dist/{search-BC86wYXR.js → search-DrPaZPnc.js} +3 -3
- package/dist/secp256k1-DgmH1qVg.js +1251 -0
- package/dist/{send-BPA1bK5G.js → send-ybBREe4b.js} +3 -3
- package/dist/shareicon-D3Qj5j1T.js +262 -0
- package/dist/{sortDown-cDA6MpOw.js → sortDown-CjBaDQTU.js} +13 -13
- package/dist/{swapHorizontal-47_8ePle.js → swapHorizontal-BddjZdXK.js} +3 -3
- package/dist/{swapHorizontalBold-CJ7TzeQP.js → swapHorizontalBold-B6AWjPZ9.js} +3 -3
- package/dist/{swapHorizontalMedium-CTACgUR9.js → swapHorizontalMedium-CNacWoBn.js} +3 -3
- package/dist/{swapHorizontalRoundedBold-Ht3_LABp.js → swapHorizontalRoundedBold-B8VcPnqt.js} +3 -3
- package/dist/{swapVertical-DlS0V6DD.js → swapVertical-zY2BbSyQ.js} +3 -3
- package/dist/{telegram-UZ00kvIE.js → telegram-DS4l-8Oc.js} +3 -3
- package/dist/{three-dots-D9zVXr1j.js → three-dots-RctNqamK.js} +3 -3
- package/dist/truncate-D9t92mVX.js +7 -0
- package/dist/{twitch-CP6rpz4m.js → twitch-CJ0llIIH.js} +3 -3
- package/dist/{twitterIcon-Cm3I3FRU.js → twitterIcon-pgvN9-bP.js} +3 -3
- package/dist/unsupportedProp-BJVuEW_b.js +10 -0
- package/dist/useRegisterError-C_YLA1dw.js +9857 -0
- package/dist/validError-CDlJpg_f.js +6 -0
- package/dist/{verify-DuUE85WT.js → verify-BeZLo1Fq.js} +3 -3
- package/dist/{verify-filled-CfgydKPa.js → verify-filled-meyb7E16.js} +3 -3
- package/dist/w3m-modal-C-Jp9NVv.js +1471 -0
- package/dist/{wallet-BC2LSDlF.js → wallet-CFcOgSsz.js} +3 -3
- package/dist/{wallet-placeholder-DugEJ7xM.js → wallet-placeholder-CeUMILZq.js} +3 -3
- package/dist/{walletconnect-wayCaYfk.js → walletconnect-D6LB1PyC.js} +7 -9
- package/dist/{warning-circle-Cy9YuvwU.js → warning-circle-BRtzofvT.js} +3 -3
- package/dist/{x-jggPFiy-.js → x-DKQAOOh3.js} +3 -3
- package/package.json +1 -1
- package/dist/AllRoutes-Bdi5ZW8W.js +0 -2604
- package/dist/Box-e4gA-y_H.js +0 -60
- package/dist/EstGas-C5ihS0Mw.js +0 -17108
- package/dist/Grow-B4K-I-E-.js +0 -2212
- package/dist/InputComp-C_UUZxNU.js +0 -114
- package/dist/LoadRoute-CnDhVKdh.js +0 -142
- package/dist/QuotesProgress-DxgPgPJE.js +0 -29
- package/dist/SwapAsset-CmmuxeQF.js +0 -65
- package/dist/Tooltip-D8YjOOKU.js +0 -718
- package/dist/TxnButton-CF-TLZrD.js +0 -302
- package/dist/WidgetForm.module-DhUUlwZP.js +0 -13
- package/dist/basic-Cx2xxgd9.js +0 -7109
- package/dist/ccip-BKpquA5i.js +0 -250
- package/dist/clockIcon-jSNFFrLy.js +0 -76
- package/dist/core-C-gr9X18.js +0 -17217
- package/dist/cursor-BTtIlTHP.js +0 -7
- package/dist/down-DDk8OoJG.js +0 -809
- package/dist/ethertousd-BOknTgU4.js +0 -7
- package/dist/getChainIds-6iugk2h0.js +0 -2431
- package/dist/getCosmosAddress-BgD5iV6f.js +0 -13998
- package/dist/hamburger-BYe_G11E.js +0 -4562
- package/dist/index-BAmjBHYR.js +0 -1087
- package/dist/index-BxHeZ9IF.js +0 -543
- package/dist/index-C7cb2O7r.js +0 -16078
- package/dist/index-CF9p4S_X.js +0 -11
- package/dist/index-C_vo1L7p.js +0 -24384
- package/dist/index-Ch7w83dW.js +0 -4217
- package/dist/index-Crhenmgw.js +0 -188
- package/dist/index-Cz5Dosd2.js +0 -412
- package/dist/index-D5OnT-__.js +0 -35858
- package/dist/index-DArR1lwi.js +0 -1759
- package/dist/index-hEJSpZe-.js +0 -308
- package/dist/index-m2O0cbD8.js +0 -1883
- package/dist/index-sLx4Edw4.js +0 -22
- package/dist/index.es-DIbGJsfa.js +0 -475
- package/dist/index.es-t6sHlseh.js +0 -12916
- package/dist/secp256k1-BkBK0mD5.js +0 -1681
- package/dist/shareicon-C88Wx-AM.js +0 -314
- package/dist/truncate-DSxFWEga.js +0 -7
- package/dist/unsupportedProp-DkeDzLfM.js +0 -14
- package/dist/useRegisterError-W_UfecIN.js +0 -19288
- package/dist/validError-rariWQ7G.js +0 -14
- package/dist/w3m-modal-Bl-DPlah.js +0 -1721
package/dist/index-Crhenmgw.js
DELETED
@@ -1,188 +0,0 @@
|
|
1
|
-
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
2
|
-
import { T as TxnSuccessContext, a as TxnErrorContext, H as Header, b as TokenBox, c as TxnTimer, E as EstGas, d as TransactionComp } from "./EstGas-C5ihS0Mw.js";
|
3
|
-
import { useState, useEffect } from "react";
|
4
|
-
import { k as useRegisterError, i as images } from "./useRegisterError-W_UfecIN.js";
|
5
|
-
import { u as useStore, l as lodashExports, c as controllers } from "./index-D5OnT-__.js";
|
6
|
-
import { useQuery } from "@tanstack/react-query";
|
7
|
-
import "./down-DDk8OoJG.js";
|
8
|
-
import "wagmi";
|
9
|
-
import "@dynamic-labs/sdk-react-core";
|
10
|
-
import "./getCosmosAddress-BgD5iV6f.js";
|
11
|
-
function ProviderCompDetails({ details }) {
|
12
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
13
|
-
const persist = {
|
14
|
-
route: {
|
15
|
-
...details
|
16
|
-
}
|
17
|
-
};
|
18
|
-
const configuration = useStore((state) => state.configuration);
|
19
|
-
return !lodashExports.isEmpty(persist.route) ? /* @__PURE__ */ jsxs("div", { className: "bw-relative bw-mt-4 bw-flex bw-justify-center ", children: [
|
20
|
-
/* @__PURE__ */ jsx(
|
21
|
-
"div",
|
22
|
-
{
|
23
|
-
style: {
|
24
|
-
boxShadow: configuration && configuration.customTheme && ((_b = (_a = configuration.customTheme) == null ? void 0 : _a.shadow) == null ? void 0 : _b.boxShadow) || "1px 1px 10px 3px rgba(0, 0, 0, 0.15)"
|
25
|
-
},
|
26
|
-
className: "bw-w-[200px] bw-rounded-[50%] bw-absolute bw-right-auto bw-z-0 bw-left-auto bw-h-[40px]"
|
27
|
-
}
|
28
|
-
),
|
29
|
-
/* @__PURE__ */ jsxs("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: [
|
30
|
-
" ",
|
31
|
-
/* @__PURE__ */ jsxs("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: [
|
32
|
-
/* @__PURE__ */ jsx("span", { className: "bw-text-sm bw-font-light", children: "via" }),
|
33
|
-
" ",
|
34
|
-
/* @__PURE__ */ jsx(
|
35
|
-
"img",
|
36
|
-
{
|
37
|
-
src: (_d = (_c = persist == null ? void 0 : persist.route) == null ? void 0 : _c.providerDetails) == null ? void 0 : _d.logoUrl,
|
38
|
-
className: "bw-rounded-[50%] bw-mx-[4px] bw-min-w-[18px] bw-max-h-[18px] bw-min-h-[18px]",
|
39
|
-
width: 18,
|
40
|
-
height: 18
|
41
|
-
}
|
42
|
-
),
|
43
|
-
((_f = (_e = persist == null ? void 0 : persist.route) == null ? void 0 : _e.providerDetails) == null ? void 0 : _f.name) || "",
|
44
|
-
":",
|
45
|
-
" ",
|
46
|
-
(_g = persist == null ? void 0 : persist.route) == null ? void 0 : _g.protocolsUsed[0],
|
47
|
-
((_i = (_h = persist == null ? void 0 : persist.route) == null ? void 0 : _h.protocolsUsed) == null ? void 0 : _i.length) <= 1 ? "" : /* @__PURE__ */ jsxs("span", { className: "bw-ml-1 bw-text-xs bw-font-normal bw-leading-6", children: [
|
48
|
-
`+${((_k = (_j = persist == null ? void 0 : persist.route) == null ? void 0 : _j.protocolsUsed) == null ? void 0 : _k.length) - 1}`,
|
49
|
-
" More"
|
50
|
-
] }),
|
51
|
-
" "
|
52
|
-
] }),
|
53
|
-
" "
|
54
|
-
] })
|
55
|
-
] }) : /* @__PURE__ */ jsx("div", { className: "bw-relative bw-w-full bw-h-[41px] bw-mt-4 bw-flex bw-justify-center" });
|
56
|
-
}
|
57
|
-
const TransactionDetailsComp = () => {
|
58
|
-
var _a, _b, _c;
|
59
|
-
const setRoute = useStore((state) => state.setRoute);
|
60
|
-
const txnDetails = useStore((state) => state.txnDetails);
|
61
|
-
const [isTxnSuccessful, setIsTxnSuccessful] = useState(false);
|
62
|
-
const [isTimerStarted, setIsTimerStarted] = useState(false);
|
63
|
-
const [isErrorMessage, setIsErrormessage] = useState(false);
|
64
|
-
const [chainData, setChainData] = useState({});
|
65
|
-
const setPersist = useStore((state) => state.setPersist);
|
66
|
-
const persist = useStore((state) => state.persist);
|
67
|
-
useRegisterError();
|
68
|
-
const { txnupdate } = images;
|
69
|
-
const details = useQuery({
|
70
|
-
queryKey: ["txnDetails", txnDetails == null ? void 0 : txnDetails.routeId],
|
71
|
-
queryFn: async () => {
|
72
|
-
let req = await controllers.fetchTxnDetails(txnDetails == null ? void 0 : txnDetails.routeId);
|
73
|
-
return await req.json();
|
74
|
-
},
|
75
|
-
refetchOnWindowFocus: false
|
76
|
-
});
|
77
|
-
useEffect(() => {
|
78
|
-
var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
|
79
|
-
if (details.data) {
|
80
|
-
let data = details.data;
|
81
|
-
if (data.status == "error") ;
|
82
|
-
let stepStatusArray = [];
|
83
|
-
if (((_a2 = data == null ? void 0 : data.data) == null ? void 0 : _a2.currentStepStatus) === "success") {
|
84
|
-
(_c2 = (_b2 = data == null ? void 0 : data.data) == null ? void 0 : _b2.steps) == null ? void 0 : _c2.forEach((item) => {
|
85
|
-
stepStatusArray.push({ type: "preText" });
|
86
|
-
});
|
87
|
-
} else if (((_d = data == null ? void 0 : data.data) == null ? void 0 : _d.currentStepStatus) === "failed") {
|
88
|
-
setIsErrormessage(true);
|
89
|
-
(_f = (_e = data == null ? void 0 : data.data) == null ? void 0 : _e.steps) == null ? void 0 : _f.forEach((item) => {
|
90
|
-
if ((item == null ? void 0 : item.status) === "success") {
|
91
|
-
stepStatusArray.push({ type: "preText" });
|
92
|
-
} else if ((item == null ? void 0 : item.status) === "failed") {
|
93
|
-
stepStatusArray.push({ type: "failed" });
|
94
|
-
}
|
95
|
-
});
|
96
|
-
}
|
97
|
-
setPersist({
|
98
|
-
...(_g = useStore.getState()) == null ? void 0 : _g.persist,
|
99
|
-
stepData: (_i = data == null ? void 0 : data.data) == null ? void 0 : _i.steps[(_h = data == null ? void 0 : data.data) == null ? void 0 : _h.currentStepIndex],
|
100
|
-
routeId: (_j = data == null ? void 0 : data.data) == null ? void 0 : _j.routeId,
|
101
|
-
allSteps: {
|
102
|
-
steps: (_k = data == null ? void 0 : data.data) == null ? void 0 : _k.steps,
|
103
|
-
currentStep: ((_l = data == null ? void 0 : data.data) == null ? void 0 : _l.currentStepStatus) === "success" ? ((_m = data == null ? void 0 : data.data) == null ? void 0 : _m.currentStepIndex) + 1 : (_n = data == null ? void 0 : data.data) == null ? void 0 : _n.currentStepIndex,
|
104
|
-
type: "preText"
|
105
|
-
},
|
106
|
-
stepStatus: stepStatusArray,
|
107
|
-
statusData: {
|
108
|
-
status: (_o = data == null ? void 0 : data.data) == null ? void 0 : _o.currentStepStatus
|
109
|
-
},
|
110
|
-
historyData: data == null ? void 0 : data.data,
|
111
|
-
fromCoin: (_p = data == null ? void 0 : data.data) == null ? void 0 : _p.from,
|
112
|
-
toCoin: (_q = data == null ? void 0 : data.data) == null ? void 0 : _q.to,
|
113
|
-
route: data == null ? void 0 : data.data,
|
114
|
-
isHistory: true,
|
115
|
-
hash: ((_r = data == null ? void 0 : data.data) == null ? void 0 : _r.currentStepStatus) == "in-progress" ? (_u = (_t = data == null ? void 0 : data.data) == null ? void 0 : _t.steps[(_s = data == null ? void 0 : data.data) == null ? void 0 : _s.currentStepIndex]) == null ? void 0 : _u.srcTxnHash : null
|
116
|
-
});
|
117
|
-
}
|
118
|
-
}, [details.data]);
|
119
|
-
useEffect(() => {
|
120
|
-
if (details.error) {
|
121
|
-
let err = details.error;
|
122
|
-
err.details || err.message || "";
|
123
|
-
}
|
124
|
-
}, [details.error]);
|
125
|
-
const chains = useQuery({
|
126
|
-
queryKey: ["chains"],
|
127
|
-
queryFn: async () => {
|
128
|
-
let req = await controllers.fetchChain();
|
129
|
-
return await req.json();
|
130
|
-
},
|
131
|
-
refetchOnWindowFocus: false,
|
132
|
-
enabled: details.isSuccess
|
133
|
-
});
|
134
|
-
useEffect(() => {
|
135
|
-
var _a2, _b2, _c2, _d, _e, _f, _g;
|
136
|
-
if (chains.data) {
|
137
|
-
let data = chains.data;
|
138
|
-
let chainObj = { ...lodashExports.keyBy(data.data, "chainId") };
|
139
|
-
setChainData(chainObj);
|
140
|
-
setPersist({
|
141
|
-
...(_a2 = useStore.getState()) == null ? void 0 : _a2.persist,
|
142
|
-
fromChain: chainObj[(_d = (_c2 = (_b2 = details == null ? void 0 : details.data) == null ? void 0 : _b2.data) == null ? void 0 : _c2.from) == null ? void 0 : _d.chainId],
|
143
|
-
toChain: chainObj[(_g = (_f = (_e = details == null ? void 0 : details.data) == null ? void 0 : _e.data) == null ? void 0 : _f.to) == null ? void 0 : _g.chainId]
|
144
|
-
});
|
145
|
-
}
|
146
|
-
}, [chains.data, details.data]);
|
147
|
-
function handleBack() {
|
148
|
-
setRoute("history");
|
149
|
-
setPersist({});
|
150
|
-
}
|
151
|
-
let txnDetailsData = ((_a = details == null ? void 0 : details.data) == null ? void 0 : _a.data) || {};
|
152
|
-
function handleTxnSuccess(val) {
|
153
|
-
setIsTxnSuccessful(val);
|
154
|
-
}
|
155
|
-
function handleErrorMessage(val) {
|
156
|
-
setIsErrormessage(val);
|
157
|
-
}
|
158
|
-
function startTimer(val) {
|
159
|
-
setIsTimerStarted(val);
|
160
|
-
}
|
161
|
-
return /* @__PURE__ */ jsx(TxnSuccessContext.Provider, { value: { isTxnSuccessful, handleTxnSuccess }, children: /* @__PURE__ */ jsx(TxnErrorContext.Provider, { value: { isErrorMessage, handleErrorMessage }, children: /* @__PURE__ */ jsx("div", { className: "bw-w-full bw-relative bw-min-h-[610px] ", children: details.isSuccess ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
162
|
-
/* @__PURE__ */ jsx(Header, { handleBack }),
|
163
|
-
/* @__PURE__ */ jsx("div", { className: "bw-mt-[-20px]", children: /* @__PURE__ */ jsx(ProviderCompDetails, { details: txnDetailsData }) }),
|
164
|
-
/* @__PURE__ */ jsx("div", { className: "bw-flex bw-justify-between bw-items-center" }),
|
165
|
-
/* @__PURE__ */ jsxs("div", { className: "bw-flex bw-mt-4 bw-w-full bw-justify-between bw-items-center", children: [
|
166
|
-
/* @__PURE__ */ jsxs("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
167
|
-
/* @__PURE__ */ jsx("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Send" }),
|
168
|
-
/* @__PURE__ */ jsx(TokenBox, { amount: txnDetailsData.inputAmountDisplay, coinData: txnDetailsData.from, chainData: chainData[(_b = txnDetailsData == null ? void 0 : txnDetailsData.from) == null ? void 0 : _b.chainId] || {}, field: "from" })
|
169
|
-
] }),
|
170
|
-
isErrorMessage ? /* @__PURE__ */ jsx("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-card bw-relative bw-z-10 hover:bw-opacity-100 bw-border-border-primary `, children: /* @__PURE__ */ jsx("img", { src: txnupdate, width: 33, height: 30, alt: "img" }) }) : /* @__PURE__ */ jsx(TxnTimer, { isTimerStarted: (persist == null ? void 0 : persist.isTimerStarted) || isTimerStarted, startTimer, error: isErrorMessage }),
|
171
|
-
/* @__PURE__ */ jsx("div", { className: "bw-w-full bw-z-0 md:bw-w-full bw-mt-5 bw-absolute bw-h-[1px] bw-bg-border-primary " }),
|
172
|
-
/* @__PURE__ */ jsxs("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
173
|
-
/* @__PURE__ */ jsx("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Receive" }),
|
174
|
-
/* @__PURE__ */ jsx(TokenBox, { amount: txnDetailsData.outputAmountDisplay, coinData: txnDetailsData.to, chainData: chainData[(_c = txnDetailsData == null ? void 0 : txnDetailsData.to) == null ? void 0 : _c.chainId] || {}, field: "to" })
|
175
|
-
] })
|
176
|
-
] }),
|
177
|
-
/* @__PURE__ */ jsxs("div", { className: "bw-h-[320px] bw-pr-1 bw-flex bw-flex-col bw-mt-8 bw-overflow-y-auto", children: [
|
178
|
-
details.isLoading ? /* @__PURE__ */ jsx(Fragment, {}) : /* @__PURE__ */ jsx(EstGas, {}),
|
179
|
-
/* @__PURE__ */ jsx(TransactionComp, { amount: details == null ? void 0 : details.inputAmountDisplay, startTimer, handleBack, isHistory: true })
|
180
|
-
] })
|
181
|
-
] }) : /* @__PURE__ */ jsx(Fragment, {}) }) }) });
|
182
|
-
};
|
183
|
-
function TransactionDetails() {
|
184
|
-
return /* @__PURE__ */ jsx(TransactionDetailsComp, {});
|
185
|
-
}
|
186
|
-
export {
|
187
|
-
TransactionDetails as default
|
188
|
-
};
|
package/dist/index-Cz5Dosd2.js
DELETED
@@ -1,412 +0,0 @@
|
|
1
|
-
import { g as generateUtilityClass, _ as _objectWithoutPropertiesLoose, b as _extends, d as capitalize, p as process$1, P as PropTypes } from "./index-D5OnT-__.js";
|
2
|
-
import * as React from "react";
|
3
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
4
|
-
import { g as generateUtilityClasses, d as useDefaultProps, s as styled, c as clsx, a as composeClasses } from "./useRegisterError-W_UfecIN.js";
|
5
|
-
function debounce(func, wait = 166) {
|
6
|
-
let timeout;
|
7
|
-
function debounced(...args) {
|
8
|
-
const later = () => {
|
9
|
-
func.apply(this, args);
|
10
|
-
};
|
11
|
-
clearTimeout(timeout);
|
12
|
-
timeout = setTimeout(later, wait);
|
13
|
-
}
|
14
|
-
debounced.clear = () => {
|
15
|
-
clearTimeout(timeout);
|
16
|
-
};
|
17
|
-
return debounced;
|
18
|
-
}
|
19
|
-
function getSvgIconUtilityClass(slot) {
|
20
|
-
return generateUtilityClass("MuiSvgIcon", slot);
|
21
|
-
}
|
22
|
-
generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
23
|
-
const _excluded = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
|
24
|
-
const useUtilityClasses = (ownerState) => {
|
25
|
-
const {
|
26
|
-
color,
|
27
|
-
fontSize,
|
28
|
-
classes
|
29
|
-
} = ownerState;
|
30
|
-
const slots = {
|
31
|
-
root: ["root", color !== "inherit" && `color${capitalize(color)}`, `fontSize${capitalize(fontSize)}`]
|
32
|
-
};
|
33
|
-
return composeClasses(slots, getSvgIconUtilityClass, classes);
|
34
|
-
};
|
35
|
-
const SvgIconRoot = styled("svg", {
|
36
|
-
name: "MuiSvgIcon",
|
37
|
-
slot: "Root",
|
38
|
-
overridesResolver: (props, styles) => {
|
39
|
-
const {
|
40
|
-
ownerState
|
41
|
-
} = props;
|
42
|
-
return [styles.root, ownerState.color !== "inherit" && styles[`color${capitalize(ownerState.color)}`], styles[`fontSize${capitalize(ownerState.fontSize)}`]];
|
43
|
-
}
|
44
|
-
})(({
|
45
|
-
theme,
|
46
|
-
ownerState
|
47
|
-
}) => {
|
48
|
-
var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette2, _palette3;
|
49
|
-
return {
|
50
|
-
userSelect: "none",
|
51
|
-
width: "1em",
|
52
|
-
height: "1em",
|
53
|
-
display: "inline-block",
|
54
|
-
// the <svg> will define the property that has `currentColor`
|
55
|
-
// for example heroicons uses fill="none" and stroke="currentColor"
|
56
|
-
fill: ownerState.hasSvgAsChild ? void 0 : "currentColor",
|
57
|
-
flexShrink: 0,
|
58
|
-
transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, "fill", {
|
59
|
-
duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2.shorter
|
60
|
-
}),
|
61
|
-
fontSize: {
|
62
|
-
inherit: "inherit",
|
63
|
-
small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || "1.25rem",
|
64
|
-
medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || "1.5rem",
|
65
|
-
large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || "2.1875rem"
|
66
|
-
}[ownerState.fontSize],
|
67
|
-
// TODO v5 deprecate, v6 remove for sx
|
68
|
-
color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? void 0 : _palette.main) != null ? _palette$ownerState$c : {
|
69
|
-
action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active,
|
70
|
-
disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled,
|
71
|
-
inherit: void 0
|
72
|
-
}[ownerState.color]
|
73
|
-
};
|
74
|
-
});
|
75
|
-
const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref) {
|
76
|
-
const props = useDefaultProps({
|
77
|
-
props: inProps,
|
78
|
-
name: "MuiSvgIcon"
|
79
|
-
});
|
80
|
-
const {
|
81
|
-
children,
|
82
|
-
className,
|
83
|
-
color = "inherit",
|
84
|
-
component = "svg",
|
85
|
-
fontSize = "medium",
|
86
|
-
htmlColor,
|
87
|
-
inheritViewBox = false,
|
88
|
-
titleAccess,
|
89
|
-
viewBox = "0 0 24 24"
|
90
|
-
} = props, other = _objectWithoutPropertiesLoose(props, _excluded);
|
91
|
-
const hasSvgAsChild = /* @__PURE__ */ React.isValidElement(children) && children.type === "svg";
|
92
|
-
const ownerState = _extends({}, props, {
|
93
|
-
color,
|
94
|
-
component,
|
95
|
-
fontSize,
|
96
|
-
instanceFontSize: inProps.fontSize,
|
97
|
-
inheritViewBox,
|
98
|
-
viewBox,
|
99
|
-
hasSvgAsChild
|
100
|
-
});
|
101
|
-
const more = {};
|
102
|
-
if (!inheritViewBox) {
|
103
|
-
more.viewBox = viewBox;
|
104
|
-
}
|
105
|
-
const classes = useUtilityClasses(ownerState);
|
106
|
-
return /* @__PURE__ */ jsxs(SvgIconRoot, _extends({
|
107
|
-
as: component,
|
108
|
-
className: clsx(classes.root, className),
|
109
|
-
focusable: "false",
|
110
|
-
color: htmlColor,
|
111
|
-
"aria-hidden": titleAccess ? void 0 : true,
|
112
|
-
role: titleAccess ? "img" : void 0,
|
113
|
-
ref
|
114
|
-
}, more, other, hasSvgAsChild && children.props, {
|
115
|
-
ownerState,
|
116
|
-
children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /* @__PURE__ */ jsx("title", {
|
117
|
-
children: titleAccess
|
118
|
-
}) : null]
|
119
|
-
}));
|
120
|
-
});
|
121
|
-
process$1.env.NODE_ENV !== "production" ? SvgIcon.propTypes = {
|
122
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
123
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
124
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
125
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
126
|
-
/**
|
127
|
-
* Node passed into the SVG element.
|
128
|
-
*/
|
129
|
-
children: PropTypes.node,
|
130
|
-
/**
|
131
|
-
* Override or extend the styles applied to the component.
|
132
|
-
*/
|
133
|
-
classes: PropTypes.object,
|
134
|
-
/**
|
135
|
-
* @ignore
|
136
|
-
*/
|
137
|
-
className: PropTypes.string,
|
138
|
-
/**
|
139
|
-
* The color of the component.
|
140
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
141
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
142
|
-
* You can use the `htmlColor` prop to apply a color attribute to the SVG element.
|
143
|
-
* @default 'inherit'
|
144
|
-
*/
|
145
|
-
color: PropTypes.oneOfType([PropTypes.oneOf(["inherit", "action", "disabled", "primary", "secondary", "error", "info", "success", "warning"]), PropTypes.string]),
|
146
|
-
/**
|
147
|
-
* The component used for the root node.
|
148
|
-
* Either a string to use a HTML element or a component.
|
149
|
-
*/
|
150
|
-
component: PropTypes.elementType,
|
151
|
-
/**
|
152
|
-
* The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.
|
153
|
-
* @default 'medium'
|
154
|
-
*/
|
155
|
-
fontSize: PropTypes.oneOfType([PropTypes.oneOf(["inherit", "large", "medium", "small"]), PropTypes.string]),
|
156
|
-
/**
|
157
|
-
* Applies a color attribute to the SVG element.
|
158
|
-
*/
|
159
|
-
htmlColor: PropTypes.string,
|
160
|
-
/**
|
161
|
-
* If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`
|
162
|
-
* prop will be ignored.
|
163
|
-
* Useful when you want to reference a custom `component` and have `SvgIcon` pass that
|
164
|
-
* `component`'s viewBox to the root node.
|
165
|
-
* @default false
|
166
|
-
*/
|
167
|
-
inheritViewBox: PropTypes.bool,
|
168
|
-
/**
|
169
|
-
* The shape-rendering attribute. The behavior of the different options is described on the
|
170
|
-
* [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).
|
171
|
-
* If you are having issues with blurry icons you should investigate this prop.
|
172
|
-
*/
|
173
|
-
shapeRendering: PropTypes.string,
|
174
|
-
/**
|
175
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
176
|
-
*/
|
177
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
178
|
-
/**
|
179
|
-
* Provides a human-readable title for the element that contains it.
|
180
|
-
* https://www.w3.org/TR/SVG-access/#Equivalent
|
181
|
-
*/
|
182
|
-
titleAccess: PropTypes.string,
|
183
|
-
/**
|
184
|
-
* Allows you to redefine what the coordinates without units mean inside an SVG element.
|
185
|
-
* For example, if the SVG element is 500 (width) by 200 (height),
|
186
|
-
* and you pass viewBox="0 0 50 20",
|
187
|
-
* this means that the coordinates inside the SVG will go from the top left corner (0,0)
|
188
|
-
* to bottom right (50,20) and each unit will be worth 10px.
|
189
|
-
* @default '0 0 24 24'
|
190
|
-
*/
|
191
|
-
viewBox: PropTypes.string
|
192
|
-
} : void 0;
|
193
|
-
SvgIcon.muiName = "SvgIcon";
|
194
|
-
function createSvgIcon(path, displayName) {
|
195
|
-
function Component(props, ref) {
|
196
|
-
return /* @__PURE__ */ jsx(SvgIcon, _extends({
|
197
|
-
"data-testid": `${displayName}Icon`,
|
198
|
-
ref
|
199
|
-
}, props, {
|
200
|
-
children: path
|
201
|
-
}));
|
202
|
-
}
|
203
|
-
if (process$1.env.NODE_ENV !== "production") {
|
204
|
-
Component.displayName = `${displayName}Icon`;
|
205
|
-
}
|
206
|
-
Component.muiName = SvgIcon.muiName;
|
207
|
-
return /* @__PURE__ */ React.memo(/* @__PURE__ */ React.forwardRef(Component));
|
208
|
-
}
|
209
|
-
var reactIs = { exports: {} };
|
210
|
-
var reactIs_production = {};
|
211
|
-
var hasRequiredReactIs_production;
|
212
|
-
function requireReactIs_production() {
|
213
|
-
if (hasRequiredReactIs_production) return reactIs_production;
|
214
|
-
hasRequiredReactIs_production = 1;
|
215
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
216
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
217
|
-
function typeOf(object) {
|
218
|
-
if ("object" === typeof object && null !== object) {
|
219
|
-
var $$typeof = object.$$typeof;
|
220
|
-
switch ($$typeof) {
|
221
|
-
case REACT_ELEMENT_TYPE:
|
222
|
-
switch (object = object.type, object) {
|
223
|
-
case REACT_FRAGMENT_TYPE:
|
224
|
-
case REACT_PROFILER_TYPE:
|
225
|
-
case REACT_STRICT_MODE_TYPE:
|
226
|
-
case REACT_SUSPENSE_TYPE:
|
227
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
228
|
-
case REACT_VIEW_TRANSITION_TYPE:
|
229
|
-
return object;
|
230
|
-
default:
|
231
|
-
switch (object = object && object.$$typeof, object) {
|
232
|
-
case REACT_CONTEXT_TYPE:
|
233
|
-
case REACT_FORWARD_REF_TYPE:
|
234
|
-
case REACT_LAZY_TYPE:
|
235
|
-
case REACT_MEMO_TYPE:
|
236
|
-
return object;
|
237
|
-
case REACT_CONSUMER_TYPE:
|
238
|
-
return object;
|
239
|
-
default:
|
240
|
-
return $$typeof;
|
241
|
-
}
|
242
|
-
}
|
243
|
-
case REACT_PORTAL_TYPE:
|
244
|
-
return $$typeof;
|
245
|
-
}
|
246
|
-
}
|
247
|
-
}
|
248
|
-
reactIs_production.ContextConsumer = REACT_CONSUMER_TYPE;
|
249
|
-
reactIs_production.ContextProvider = REACT_CONTEXT_TYPE;
|
250
|
-
reactIs_production.Element = REACT_ELEMENT_TYPE;
|
251
|
-
reactIs_production.ForwardRef = REACT_FORWARD_REF_TYPE;
|
252
|
-
reactIs_production.Fragment = REACT_FRAGMENT_TYPE;
|
253
|
-
reactIs_production.Lazy = REACT_LAZY_TYPE;
|
254
|
-
reactIs_production.Memo = REACT_MEMO_TYPE;
|
255
|
-
reactIs_production.Portal = REACT_PORTAL_TYPE;
|
256
|
-
reactIs_production.Profiler = REACT_PROFILER_TYPE;
|
257
|
-
reactIs_production.StrictMode = REACT_STRICT_MODE_TYPE;
|
258
|
-
reactIs_production.Suspense = REACT_SUSPENSE_TYPE;
|
259
|
-
reactIs_production.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
260
|
-
reactIs_production.isContextConsumer = function(object) {
|
261
|
-
return typeOf(object) === REACT_CONSUMER_TYPE;
|
262
|
-
};
|
263
|
-
reactIs_production.isContextProvider = function(object) {
|
264
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
265
|
-
};
|
266
|
-
reactIs_production.isElement = function(object) {
|
267
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
268
|
-
};
|
269
|
-
reactIs_production.isForwardRef = function(object) {
|
270
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
271
|
-
};
|
272
|
-
reactIs_production.isFragment = function(object) {
|
273
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
274
|
-
};
|
275
|
-
reactIs_production.isLazy = function(object) {
|
276
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
277
|
-
};
|
278
|
-
reactIs_production.isMemo = function(object) {
|
279
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
280
|
-
};
|
281
|
-
reactIs_production.isPortal = function(object) {
|
282
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
283
|
-
};
|
284
|
-
reactIs_production.isProfiler = function(object) {
|
285
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
286
|
-
};
|
287
|
-
reactIs_production.isStrictMode = function(object) {
|
288
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
289
|
-
};
|
290
|
-
reactIs_production.isSuspense = function(object) {
|
291
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
292
|
-
};
|
293
|
-
reactIs_production.isSuspenseList = function(object) {
|
294
|
-
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
295
|
-
};
|
296
|
-
reactIs_production.isValidElementType = function(type) {
|
297
|
-
return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
|
298
|
-
};
|
299
|
-
reactIs_production.typeOf = typeOf;
|
300
|
-
return reactIs_production;
|
301
|
-
}
|
302
|
-
var reactIs_development = {};
|
303
|
-
var hasRequiredReactIs_development;
|
304
|
-
function requireReactIs_development() {
|
305
|
-
if (hasRequiredReactIs_development) return reactIs_development;
|
306
|
-
hasRequiredReactIs_development = 1;
|
307
|
-
"production" !== process$1.env.NODE_ENV && function() {
|
308
|
-
function typeOf(object) {
|
309
|
-
if ("object" === typeof object && null !== object) {
|
310
|
-
var $$typeof = object.$$typeof;
|
311
|
-
switch ($$typeof) {
|
312
|
-
case REACT_ELEMENT_TYPE:
|
313
|
-
switch (object = object.type, object) {
|
314
|
-
case REACT_FRAGMENT_TYPE:
|
315
|
-
case REACT_PROFILER_TYPE:
|
316
|
-
case REACT_STRICT_MODE_TYPE:
|
317
|
-
case REACT_SUSPENSE_TYPE:
|
318
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
319
|
-
case REACT_VIEW_TRANSITION_TYPE:
|
320
|
-
return object;
|
321
|
-
default:
|
322
|
-
switch (object = object && object.$$typeof, object) {
|
323
|
-
case REACT_CONTEXT_TYPE:
|
324
|
-
case REACT_FORWARD_REF_TYPE:
|
325
|
-
case REACT_LAZY_TYPE:
|
326
|
-
case REACT_MEMO_TYPE:
|
327
|
-
return object;
|
328
|
-
case REACT_CONSUMER_TYPE:
|
329
|
-
return object;
|
330
|
-
default:
|
331
|
-
return $$typeof;
|
332
|
-
}
|
333
|
-
}
|
334
|
-
case REACT_PORTAL_TYPE:
|
335
|
-
return $$typeof;
|
336
|
-
}
|
337
|
-
}
|
338
|
-
}
|
339
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
340
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
341
|
-
reactIs_development.ContextConsumer = REACT_CONSUMER_TYPE;
|
342
|
-
reactIs_development.ContextProvider = REACT_CONTEXT_TYPE;
|
343
|
-
reactIs_development.Element = REACT_ELEMENT_TYPE;
|
344
|
-
reactIs_development.ForwardRef = REACT_FORWARD_REF_TYPE;
|
345
|
-
reactIs_development.Fragment = REACT_FRAGMENT_TYPE;
|
346
|
-
reactIs_development.Lazy = REACT_LAZY_TYPE;
|
347
|
-
reactIs_development.Memo = REACT_MEMO_TYPE;
|
348
|
-
reactIs_development.Portal = REACT_PORTAL_TYPE;
|
349
|
-
reactIs_development.Profiler = REACT_PROFILER_TYPE;
|
350
|
-
reactIs_development.StrictMode = REACT_STRICT_MODE_TYPE;
|
351
|
-
reactIs_development.Suspense = REACT_SUSPENSE_TYPE;
|
352
|
-
reactIs_development.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
353
|
-
reactIs_development.isContextConsumer = function(object) {
|
354
|
-
return typeOf(object) === REACT_CONSUMER_TYPE;
|
355
|
-
};
|
356
|
-
reactIs_development.isContextProvider = function(object) {
|
357
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
358
|
-
};
|
359
|
-
reactIs_development.isElement = function(object) {
|
360
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
361
|
-
};
|
362
|
-
reactIs_development.isForwardRef = function(object) {
|
363
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
364
|
-
};
|
365
|
-
reactIs_development.isFragment = function(object) {
|
366
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
367
|
-
};
|
368
|
-
reactIs_development.isLazy = function(object) {
|
369
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
370
|
-
};
|
371
|
-
reactIs_development.isMemo = function(object) {
|
372
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
373
|
-
};
|
374
|
-
reactIs_development.isPortal = function(object) {
|
375
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
376
|
-
};
|
377
|
-
reactIs_development.isProfiler = function(object) {
|
378
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
379
|
-
};
|
380
|
-
reactIs_development.isStrictMode = function(object) {
|
381
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
382
|
-
};
|
383
|
-
reactIs_development.isSuspense = function(object) {
|
384
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
385
|
-
};
|
386
|
-
reactIs_development.isSuspenseList = function(object) {
|
387
|
-
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
388
|
-
};
|
389
|
-
reactIs_development.isValidElementType = function(type) {
|
390
|
-
return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE || void 0 !== type.getModuleId) ? true : false;
|
391
|
-
};
|
392
|
-
reactIs_development.typeOf = typeOf;
|
393
|
-
}();
|
394
|
-
return reactIs_development;
|
395
|
-
}
|
396
|
-
var hasRequiredReactIs;
|
397
|
-
function requireReactIs() {
|
398
|
-
if (hasRequiredReactIs) return reactIs.exports;
|
399
|
-
hasRequiredReactIs = 1;
|
400
|
-
if (process$1.env.NODE_ENV === "production") {
|
401
|
-
reactIs.exports = /* @__PURE__ */ requireReactIs_production();
|
402
|
-
} else {
|
403
|
-
reactIs.exports = /* @__PURE__ */ requireReactIs_development();
|
404
|
-
}
|
405
|
-
return reactIs.exports;
|
406
|
-
}
|
407
|
-
var reactIsExports = /* @__PURE__ */ requireReactIs();
|
408
|
-
export {
|
409
|
-
createSvgIcon as c,
|
410
|
-
debounce as d,
|
411
|
-
reactIsExports as r
|
412
|
-
};
|