@matchain/matchid-sdk-react 0.1.56-alpha.3 → 0.1.56-alpha.4
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/api.js +56 -47
- package/dist/api.js.map +1 -1
- package/dist/api.mjs +3 -3
- package/dist/{chunk-KDVKIXOS.mjs → chunk-2HVTQUPR.mjs} +276 -267
- package/dist/chunk-2HVTQUPR.mjs.map +1 -0
- package/dist/{chunk-M5LCJX2T.mjs → chunk-NGNJ44SH.mjs} +2 -2
- package/dist/{chunk-FKXS2XRG.mjs → chunk-OSY7MTZY.mjs} +34 -1
- package/dist/chunk-OSY7MTZY.mjs.map +1 -0
- package/dist/components.js +368 -359
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +2 -2
- package/dist/hooks.js +186 -177
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.mjs +2 -2
- package/dist/icon.d.mts +1 -1
- package/dist/icon.d.ts +1 -1
- package/dist/icon.js +33 -0
- package/dist/icon.js.map +1 -1
- package/dist/icon.mjs +5 -1
- package/dist/{index-C82WIWvx.d.ts → index-AtpUyTIk.d.ts} +9 -2
- package/dist/{index-D7E317WV.d.mts → index-CRLiCVf9.d.mts} +9 -2
- package/dist/{index-DK7l3lsH.d.ts → index-nwqg5fYH.d.ts} +8 -2
- package/dist/{index-YPRyEYt6.d.mts → index-zmJl2a0q.d.mts} +8 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +448 -411
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/ui.d.mts +1 -1
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +144 -104
- package/dist/ui.js.map +1 -1
- package/dist/ui.mjs +4 -2
- package/example/src/pages/UI/components/Checkbox.tsx +10 -0
- package/example/src/pages/UI/index.tsx +2 -0
- package/package.json +1 -1
- package/dist/chunk-FKXS2XRG.mjs.map +0 -1
- package/dist/chunk-KDVKIXOS.mjs.map +0 -1
- /package/dist/{chunk-M5LCJX2T.mjs.map → chunk-NGNJ44SH.mjs.map} +0 -0
|
@@ -26,6 +26,8 @@ import {
|
|
|
26
26
|
BitgetIcon,
|
|
27
27
|
CheckIcon,
|
|
28
28
|
CheckRoundIcon,
|
|
29
|
+
CheckboxCheckedIcon,
|
|
30
|
+
CheckboxIcon,
|
|
29
31
|
CloseEyeIcon,
|
|
30
32
|
CloseRoundIcon,
|
|
31
33
|
CopyIcon,
|
|
@@ -63,7 +65,7 @@ import {
|
|
|
63
65
|
XIcon,
|
|
64
66
|
XverseIcon,
|
|
65
67
|
YoutubeIcon
|
|
66
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-OSY7MTZY.mjs";
|
|
67
69
|
import {
|
|
68
70
|
confirm_default,
|
|
69
71
|
connecting_default,
|
|
@@ -948,7 +950,7 @@ import { useEffect as useEffect8, useMemo as useMemo3 } from "react";
|
|
|
948
950
|
import { encodeDeployData } from "viem";
|
|
949
951
|
|
|
950
952
|
// src/context/ModalContext.tsx
|
|
951
|
-
import { useState as useState7, useCallback, createContext, useContext,
|
|
953
|
+
import { useState as useState7, useCallback, createContext, useContext, useRef } from "react";
|
|
952
954
|
import { createPortal } from "react-dom";
|
|
953
955
|
|
|
954
956
|
// src/ui/index.ts
|
|
@@ -956,6 +958,7 @@ var ui_exports = {};
|
|
|
956
958
|
__export(ui_exports, {
|
|
957
959
|
AlphaAvatar: () => AlphaAvatar,
|
|
958
960
|
Button: () => Button,
|
|
961
|
+
Checkbox: () => Checkbox,
|
|
959
962
|
ConfirmModal: () => ConfirmModal,
|
|
960
963
|
Drawer: () => Drawer,
|
|
961
964
|
Field: () => Field,
|
|
@@ -1308,8 +1311,17 @@ var LazyLottie = (props) => {
|
|
|
1308
1311
|
};
|
|
1309
1312
|
var Lottie_default = LazyLottie;
|
|
1310
1313
|
|
|
1314
|
+
// src/ui/Checkbox/index.tsx
|
|
1315
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1316
|
+
function Checkbox({
|
|
1317
|
+
checked = false,
|
|
1318
|
+
onChange
|
|
1319
|
+
}) {
|
|
1320
|
+
return checked ? /* @__PURE__ */ jsx16(CheckboxCheckedIcon, { onClick: () => onChange?.(false) }) : /* @__PURE__ */ jsx16(CheckboxIcon, { onClick: () => onChange?.(true) });
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1311
1323
|
// src/context/ModalContext.tsx
|
|
1312
|
-
import { jsx as
|
|
1324
|
+
import { jsx as jsx17, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1313
1325
|
var ModalContext = createContext(null);
|
|
1314
1326
|
function ModalProvider({ children }) {
|
|
1315
1327
|
const [modalState, setModalState] = useState7({
|
|
@@ -1322,15 +1334,11 @@ function ModalProvider({ children }) {
|
|
|
1322
1334
|
return highestIndexRef.current;
|
|
1323
1335
|
}, []);
|
|
1324
1336
|
const closeModal = useCallback((index) => {
|
|
1325
|
-
console.log("closeModal", index);
|
|
1326
1337
|
setModalState((prevState) => ({
|
|
1327
1338
|
modals: prevState.modals.filter((modal) => modal.index !== index),
|
|
1328
1339
|
highestZIndex: prevState.highestZIndex
|
|
1329
1340
|
}));
|
|
1330
1341
|
}, []);
|
|
1331
|
-
useEffect7(() => {
|
|
1332
|
-
console.log("modalState", modalState);
|
|
1333
|
-
}, [modalState]);
|
|
1334
1342
|
const show = useCallback((content, index) => {
|
|
1335
1343
|
setModalState((prevState) => {
|
|
1336
1344
|
const modalIndex = index ?? getNextIndex();
|
|
@@ -1357,7 +1365,7 @@ function ModalProvider({ children }) {
|
|
|
1357
1365
|
index: modalIndex,
|
|
1358
1366
|
zIndex: newZIndex,
|
|
1359
1367
|
close: () => closeModal(modalIndex),
|
|
1360
|
-
content: ({ close, zIndex }) => /* @__PURE__ */
|
|
1368
|
+
content: ({ close, zIndex }) => /* @__PURE__ */ jsx17(ModalDrawer, { showClose: true, isOpen: true, onClose: close, title: props.title, zIndex, onBack: props.onBack, children: /* @__PURE__ */ jsx17(props.content, { close, zIndex }) })
|
|
1361
1369
|
}],
|
|
1362
1370
|
highestZIndex: newZIndex
|
|
1363
1371
|
};
|
|
@@ -1365,7 +1373,7 @@ function ModalProvider({ children }) {
|
|
|
1365
1373
|
}, [getNextIndex, closeModal]);
|
|
1366
1374
|
const modalElements = modalState.modals.map(
|
|
1367
1375
|
(modal) => modal.visible ? createPortal(
|
|
1368
|
-
/* @__PURE__ */
|
|
1376
|
+
/* @__PURE__ */ jsx17(modal.content, { zIndex: modal.zIndex, close: modal.close }, modal.index),
|
|
1369
1377
|
document.body
|
|
1370
1378
|
) : null
|
|
1371
1379
|
);
|
|
@@ -1413,7 +1421,7 @@ var useTransactionStore = create3(devtools2(persistedState2));
|
|
|
1413
1421
|
var useTransactionStore_default = useTransactionStore;
|
|
1414
1422
|
|
|
1415
1423
|
// src/hooks/useWallet.tsx
|
|
1416
|
-
import { jsx as
|
|
1424
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1417
1425
|
var AppClientId = "react-sdk-" + getVersion();
|
|
1418
1426
|
function useWallet() {
|
|
1419
1427
|
const { address, wallet: walletConfig } = useLocalStore_default();
|
|
@@ -1587,12 +1595,12 @@ function useWallet() {
|
|
|
1587
1595
|
address: evmAccount.address
|
|
1588
1596
|
});
|
|
1589
1597
|
modal.show((props) => {
|
|
1590
|
-
return /* @__PURE__ */
|
|
1598
|
+
return /* @__PURE__ */ jsx18(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, hash: txHash, chain: _chain });
|
|
1591
1599
|
});
|
|
1592
1600
|
return txHash;
|
|
1593
1601
|
} catch (error) {
|
|
1594
1602
|
modal.show((props) => {
|
|
1595
|
-
return /* @__PURE__ */
|
|
1603
|
+
return /* @__PURE__ */ jsx18(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, error: typeof error == "string" ? error : error.details || error.message, chain: _chain });
|
|
1596
1604
|
});
|
|
1597
1605
|
throw error;
|
|
1598
1606
|
}
|
|
@@ -1670,7 +1678,7 @@ function useCopyClipboard(timeout = 500) {
|
|
|
1670
1678
|
// src/context/ToastContext.tsx
|
|
1671
1679
|
import { useState as useState10, useCallback as useCallback3, createContext as createContext2, useContext as useContext2 } from "react";
|
|
1672
1680
|
import { createPortal as createPortal2 } from "react-dom";
|
|
1673
|
-
import { jsx as
|
|
1681
|
+
import { jsx as jsx19, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1674
1682
|
var ToastContext = createContext2(null);
|
|
1675
1683
|
function ToastProvider({ children, zIndex = 299 }) {
|
|
1676
1684
|
const [toasts, setToasts] = useState10([]);
|
|
@@ -1683,21 +1691,21 @@ function ToastProvider({ children, zIndex = 299 }) {
|
|
|
1683
1691
|
setTimeout(() => removeToast(id), timeout);
|
|
1684
1692
|
}, [removeToast]);
|
|
1685
1693
|
const success = useCallback3((text, timeout) => {
|
|
1686
|
-
show({ icon: /* @__PURE__ */
|
|
1694
|
+
show({ icon: /* @__PURE__ */ jsx19(CheckRoundIcon, { color: "#2FCC00", size: 24 }), text, timeout });
|
|
1687
1695
|
}, [show]);
|
|
1688
1696
|
const error = useCallback3((text, timeout) => {
|
|
1689
|
-
show({ icon: /* @__PURE__ */
|
|
1697
|
+
show({ icon: /* @__PURE__ */ jsx19(ErrorRoundIcon, { size: 24 }), text, timeout });
|
|
1690
1698
|
}, [show]);
|
|
1691
1699
|
const ToastComponent = createPortal2(
|
|
1692
|
-
/* @__PURE__ */
|
|
1700
|
+
/* @__PURE__ */ jsx19("div", { className: "matchid-toast-box", style: {
|
|
1693
1701
|
zIndex
|
|
1694
1702
|
}, children: toasts.reverse().map(({ id, icon, text }) => /* @__PURE__ */ jsxs9(
|
|
1695
1703
|
"div",
|
|
1696
1704
|
{
|
|
1697
1705
|
className: "matchid-toast",
|
|
1698
1706
|
children: [
|
|
1699
|
-
icon && /* @__PURE__ */
|
|
1700
|
-
/* @__PURE__ */
|
|
1707
|
+
icon && /* @__PURE__ */ jsx19("span", { children: icon }),
|
|
1708
|
+
/* @__PURE__ */ jsx19("span", { children: text })
|
|
1701
1709
|
]
|
|
1702
1710
|
},
|
|
1703
1711
|
id
|
|
@@ -1849,7 +1857,7 @@ function useWalletAssetListQuery({
|
|
|
1849
1857
|
import { useMemo as useMemo4, useState as useState11 } from "react";
|
|
1850
1858
|
import { createPublicClient as createPublicClient3, formatUnits, http as http3, parseUnits } from "viem";
|
|
1851
1859
|
import { FormattedMessage as FormattedMessage2, useIntl as useIntl3 } from "react-intl";
|
|
1852
|
-
import { jsx as
|
|
1860
|
+
import { jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1853
1861
|
function useMatchChain() {
|
|
1854
1862
|
const chainListQuery = useChainListQuery();
|
|
1855
1863
|
const modal = useModal();
|
|
@@ -1881,7 +1889,7 @@ function useMatchChain() {
|
|
|
1881
1889
|
const [selectedChainId, setSelectedChainId] = useState11(storeChainId2);
|
|
1882
1890
|
const isDownMd = useDownMd();
|
|
1883
1891
|
return /* @__PURE__ */ jsxs10("div", { className: `matchid-change-network-box`, children: [
|
|
1884
|
-
/* @__PURE__ */
|
|
1892
|
+
/* @__PURE__ */ jsx20("div", { className: `matchid-change-network-list`, children: chainListQuery.data?.map((item, index) => {
|
|
1885
1893
|
return /* @__PURE__ */ jsxs10(
|
|
1886
1894
|
"div",
|
|
1887
1895
|
{
|
|
@@ -1889,19 +1897,19 @@ function useMatchChain() {
|
|
|
1889
1897
|
className: `matchid-change-network-item ${selectedChainId == item.id ? "matchid-change-network-selected" : ""}`,
|
|
1890
1898
|
children: [
|
|
1891
1899
|
/* @__PURE__ */ jsxs10("div", { className: `matchid-change-network-item-content`, children: [
|
|
1892
|
-
/* @__PURE__ */
|
|
1893
|
-
/* @__PURE__ */
|
|
1900
|
+
/* @__PURE__ */ jsx20("img", { src: item.iconUrl, className: `matchid-change-network-item-icon` }),
|
|
1901
|
+
/* @__PURE__ */ jsx20("span", { className: "matchid-change-network-item-name", children: item.name })
|
|
1894
1902
|
] }),
|
|
1895
|
-
/* @__PURE__ */
|
|
1903
|
+
/* @__PURE__ */ jsx20(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
|
|
1896
1904
|
]
|
|
1897
1905
|
},
|
|
1898
1906
|
index
|
|
1899
1907
|
);
|
|
1900
1908
|
}) }),
|
|
1901
|
-
/* @__PURE__ */
|
|
1909
|
+
/* @__PURE__ */ jsx20(Button, { size: "lg", highlight: true, onClick: () => {
|
|
1902
1910
|
setChainId2(selectedChainId || 0);
|
|
1903
1911
|
close();
|
|
1904
|
-
}, block: true, children: /* @__PURE__ */
|
|
1912
|
+
}, block: true, children: /* @__PURE__ */ jsx20(FormattedMessage2, { id: "confirm" }) })
|
|
1905
1913
|
] });
|
|
1906
1914
|
}
|
|
1907
1915
|
const showChangeNetwork = () => {
|
|
@@ -2039,7 +2047,7 @@ function useIsContract({
|
|
|
2039
2047
|
}
|
|
2040
2048
|
|
|
2041
2049
|
// src/components/ImportToken/index.tsx
|
|
2042
|
-
import { jsx as
|
|
2050
|
+
import { jsx as jsx21, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2043
2051
|
function ImportToken({ close }) {
|
|
2044
2052
|
const [status, setStatus] = useState12("");
|
|
2045
2053
|
const { token } = useUserInfo();
|
|
@@ -2152,20 +2160,20 @@ function ImportToken({ close }) {
|
|
|
2152
2160
|
if (status == "success" || status == "fail") {
|
|
2153
2161
|
return /* @__PURE__ */ jsxs11("div", { className: `matchid-import-token-result matchid-flex`, children: [
|
|
2154
2162
|
/* @__PURE__ */ jsxs11("div", { className: `matchid-import-token-result-box matchid-flex`, children: [
|
|
2155
|
-
/* @__PURE__ */
|
|
2163
|
+
/* @__PURE__ */ jsx21("div", { className: `matchid-import-token-result-img`, children: /* @__PURE__ */ jsx21(Lottie_default, { animationData: status == "success" ? success_default : fail_default, style: {
|
|
2156
2164
|
width: "96px",
|
|
2157
2165
|
height: "96px"
|
|
2158
2166
|
} }) }),
|
|
2159
|
-
/* @__PURE__ */
|
|
2167
|
+
/* @__PURE__ */ jsx21("div", { className: `matchid-import-token-result-text matchid-import-token-result-text-${status}`, children: status == "success" ? /* @__PURE__ */ jsx21(FormattedMessage3, { id: "importSuccess" }) : /* @__PURE__ */ jsx21(FormattedMessage3, { id: "importFail" }) })
|
|
2160
2168
|
] }),
|
|
2161
|
-
status == "success" ? /* @__PURE__ */
|
|
2169
|
+
status == "success" ? /* @__PURE__ */ jsx21(Button, { size: "lg", onClick: close, block: true, highlight: true, children: /* @__PURE__ */ jsx21(FormattedMessage3, { id: "close" }) }) : /* @__PURE__ */ jsx21(Button, { size: "lg", onClick: () => setStatus(""), block: true, highlight: true, children: /* @__PURE__ */ jsx21(FormattedMessage3, { id: "back" }) })
|
|
2162
2170
|
] });
|
|
2163
2171
|
}
|
|
2164
2172
|
return /* @__PURE__ */ jsxs11("div", { className: `matchid-import-token`, children: [
|
|
2165
2173
|
/* @__PURE__ */ jsxs11("div", { className: "matchid-import-token-form", children: [
|
|
2166
|
-
/* @__PURE__ */
|
|
2174
|
+
/* @__PURE__ */ jsx21(Field, { label: intl.formatMessage({
|
|
2167
2175
|
id: "tokenSmartContract"
|
|
2168
|
-
}), error: error.address ? error.address : isContractQuery.isFetched && !isContractQuery.isLoading && !isContractQuery.data && canImport ? "Address isn't a contract address" : "", children: /* @__PURE__ */
|
|
2176
|
+
}), error: error.address ? error.address : isContractQuery.isFetched && !isContractQuery.isLoading && !isContractQuery.data && canImport ? "Address isn't a contract address" : "", children: /* @__PURE__ */ jsx21(
|
|
2169
2177
|
Input,
|
|
2170
2178
|
{
|
|
2171
2179
|
placeholder: intl.formatMessage({
|
|
@@ -2176,9 +2184,9 @@ function ImportToken({ close }) {
|
|
|
2176
2184
|
maxLength: 42
|
|
2177
2185
|
}
|
|
2178
2186
|
) }),
|
|
2179
|
-
/* @__PURE__ */
|
|
2187
|
+
/* @__PURE__ */ jsx21(Field, { label: intl.formatMessage({
|
|
2180
2188
|
id: "tokenSymbol"
|
|
2181
|
-
}), error: error.symbol, children: /* @__PURE__ */
|
|
2189
|
+
}), error: error.symbol, children: /* @__PURE__ */ jsx21(
|
|
2182
2190
|
Input,
|
|
2183
2191
|
{
|
|
2184
2192
|
placeholder: intl.formatMessage({
|
|
@@ -2189,9 +2197,9 @@ function ImportToken({ close }) {
|
|
|
2189
2197
|
maxLength: 16
|
|
2190
2198
|
}
|
|
2191
2199
|
) }),
|
|
2192
|
-
/* @__PURE__ */
|
|
2200
|
+
/* @__PURE__ */ jsx21(Field, { label: intl.formatMessage({
|
|
2193
2201
|
id: "tokenDecimals"
|
|
2194
|
-
}), error: error.decimals, children: /* @__PURE__ */
|
|
2202
|
+
}), error: error.decimals, children: /* @__PURE__ */ jsx21(
|
|
2195
2203
|
Input,
|
|
2196
2204
|
{
|
|
2197
2205
|
placeholder: intl.formatMessage({
|
|
@@ -2203,7 +2211,7 @@ function ImportToken({ close }) {
|
|
|
2203
2211
|
}
|
|
2204
2212
|
) })
|
|
2205
2213
|
] }),
|
|
2206
|
-
/* @__PURE__ */
|
|
2214
|
+
/* @__PURE__ */ jsx21(
|
|
2207
2215
|
Button,
|
|
2208
2216
|
{
|
|
2209
2217
|
size: "lg",
|
|
@@ -2212,14 +2220,14 @@ function ImportToken({ close }) {
|
|
|
2212
2220
|
loading: loading || isContractQuery.isLoading,
|
|
2213
2221
|
disabled: !canImport || !isContractQuery.data,
|
|
2214
2222
|
highlight: true,
|
|
2215
|
-
children: /* @__PURE__ */
|
|
2223
|
+
children: /* @__PURE__ */ jsx21(FormattedMessage3, { id: "import" })
|
|
2216
2224
|
}
|
|
2217
2225
|
)
|
|
2218
2226
|
] });
|
|
2219
2227
|
}
|
|
2220
2228
|
|
|
2221
2229
|
// src/hooks/useMatchWallet.tsx
|
|
2222
|
-
import { jsx as
|
|
2230
|
+
import { jsx as jsx22, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2223
2231
|
var ReceiveModal = () => {
|
|
2224
2232
|
const chain = useMatchChain();
|
|
2225
2233
|
const { address } = useWallet();
|
|
@@ -2235,8 +2243,8 @@ var ReceiveModal = () => {
|
|
|
2235
2243
|
const chainLink = chain.explorerLink("address/" + address);
|
|
2236
2244
|
return /* @__PURE__ */ jsxs12("div", { className: `matchid-receive-modal`, children: [
|
|
2237
2245
|
/* @__PURE__ */ jsxs12("div", { className: "matchid-receive-container", children: [
|
|
2238
|
-
/* @__PURE__ */
|
|
2239
|
-
/* @__PURE__ */
|
|
2246
|
+
/* @__PURE__ */ jsx22("div", { className: `matchid-receive-text`, children: /* @__PURE__ */ jsx22(FormattedMessage4, { id: "receiveQrcode" }) }),
|
|
2247
|
+
/* @__PURE__ */ jsx22("div", { className: `matchid-qr-container`, children: /* @__PURE__ */ jsx22(
|
|
2240
2248
|
QRCode,
|
|
2241
2249
|
{
|
|
2242
2250
|
margin: "0",
|
|
@@ -2244,7 +2252,7 @@ var ReceiveModal = () => {
|
|
|
2244
2252
|
value: address
|
|
2245
2253
|
}
|
|
2246
2254
|
) }),
|
|
2247
|
-
/* @__PURE__ */
|
|
2255
|
+
/* @__PURE__ */ jsx22(
|
|
2248
2256
|
"a",
|
|
2249
2257
|
{
|
|
2250
2258
|
href: chainLink,
|
|
@@ -2254,7 +2262,7 @@ var ReceiveModal = () => {
|
|
|
2254
2262
|
}
|
|
2255
2263
|
)
|
|
2256
2264
|
] }),
|
|
2257
|
-
/* @__PURE__ */
|
|
2265
|
+
/* @__PURE__ */ jsx22(Button, { size: "lg", onClick: onCopy, block: true, highlight: true, disabled: copied, children: /* @__PURE__ */ jsx22(
|
|
2258
2266
|
FormattedMessage4,
|
|
2259
2267
|
{
|
|
2260
2268
|
id: "copyAddress"
|
|
@@ -2879,39 +2887,39 @@ function useTransaction({
|
|
|
2879
2887
|
import { create as create5 } from "zustand";
|
|
2880
2888
|
|
|
2881
2889
|
// src/hooks/useConfig.tsx
|
|
2882
|
-
import { jsx as
|
|
2890
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
2883
2891
|
var DEFAULT_WALLET_METHODS = ["evm", "sol", "btc", "tron", "ton"];
|
|
2884
2892
|
var WALLET_METHODS = ["evm", "sol", "btc", "tron", "ton"];
|
|
2885
2893
|
function useWalletConfig() {
|
|
2886
2894
|
const isDownMd = useDownMd();
|
|
2887
2895
|
const walletMap = {
|
|
2888
2896
|
evm: {
|
|
2889
|
-
icon: /* @__PURE__ */
|
|
2890
|
-
activeIcon: /* @__PURE__ */
|
|
2897
|
+
icon: /* @__PURE__ */ jsx23(EVMDarkIcon, { size: isDownMd ? 36 : 40 }),
|
|
2898
|
+
activeIcon: /* @__PURE__ */ jsx23(EVMLightIcon, { size: isDownMd ? 36 : 40 }),
|
|
2891
2899
|
name: "EVM",
|
|
2892
2900
|
method: "evm"
|
|
2893
2901
|
},
|
|
2894
2902
|
sol: {
|
|
2895
|
-
icon: /* @__PURE__ */
|
|
2896
|
-
activeIcon: /* @__PURE__ */
|
|
2903
|
+
icon: /* @__PURE__ */ jsx23(SOLDarkIcon, { size: isDownMd ? 36 : 40 }),
|
|
2904
|
+
activeIcon: /* @__PURE__ */ jsx23(SOLLightIcon, { size: isDownMd ? 36 : 40 }),
|
|
2897
2905
|
name: "SOL",
|
|
2898
2906
|
method: "sol"
|
|
2899
2907
|
},
|
|
2900
2908
|
btc: {
|
|
2901
|
-
icon: /* @__PURE__ */
|
|
2902
|
-
activeIcon: /* @__PURE__ */
|
|
2909
|
+
icon: /* @__PURE__ */ jsx23(BTCDarkIcon, { size: isDownMd ? 36 : 40 }),
|
|
2910
|
+
activeIcon: /* @__PURE__ */ jsx23(BTCLightIcon, { size: isDownMd ? 36 : 40 }),
|
|
2903
2911
|
name: "BTC",
|
|
2904
2912
|
method: "btc"
|
|
2905
2913
|
},
|
|
2906
2914
|
tron: {
|
|
2907
|
-
icon: /* @__PURE__ */
|
|
2908
|
-
activeIcon: /* @__PURE__ */
|
|
2915
|
+
icon: /* @__PURE__ */ jsx23(TRXDarkIcon, { size: isDownMd ? 36 : 40 }),
|
|
2916
|
+
activeIcon: /* @__PURE__ */ jsx23(TRXLightIcon, { size: isDownMd ? 36 : 40 }),
|
|
2909
2917
|
name: "TRON",
|
|
2910
2918
|
method: "tron"
|
|
2911
2919
|
},
|
|
2912
2920
|
ton: {
|
|
2913
|
-
icon: /* @__PURE__ */
|
|
2914
|
-
activeIcon: /* @__PURE__ */
|
|
2921
|
+
icon: /* @__PURE__ */ jsx23(TonLightIcon, { size: isDownMd ? 36 : 40 }),
|
|
2922
|
+
activeIcon: /* @__PURE__ */ jsx23(TonLightIcon2, { size: isDownMd ? 36 : 40 }),
|
|
2915
2923
|
name: "TON",
|
|
2916
2924
|
method: "ton"
|
|
2917
2925
|
}
|
|
@@ -2963,7 +2971,7 @@ var useWalletModalStore = create5((set) => ({
|
|
|
2963
2971
|
// src/components/CEXBindModal/index.tsx
|
|
2964
2972
|
import { useEffect as useEffect15, useMemo as useMemo7, useState as useState16 } from "react";
|
|
2965
2973
|
import { FormattedMessage as FormattedMessage5, useIntl as useIntl6 } from "react-intl";
|
|
2966
|
-
import { jsx as
|
|
2974
|
+
import { jsx as jsx24, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2967
2975
|
function CEXBindModal({
|
|
2968
2976
|
onClose,
|
|
2969
2977
|
type,
|
|
@@ -3018,20 +3026,20 @@ function CEXBindModal({
|
|
|
3018
3026
|
setLoading(false);
|
|
3019
3027
|
}
|
|
3020
3028
|
};
|
|
3021
|
-
return /* @__PURE__ */
|
|
3029
|
+
return /* @__PURE__ */ jsx24(ModalWithHeader, { showClose: true, isOpen, onClose, title: intl.formatMessage({
|
|
3022
3030
|
id: "CEXBindTitle"
|
|
3023
3031
|
}, {
|
|
3024
3032
|
type
|
|
3025
3033
|
}), ...props, children: /* @__PURE__ */ jsxs13("div", { className: "matchid-cex-modal", children: [
|
|
3026
3034
|
/* @__PURE__ */ jsxs13("div", { children: [
|
|
3027
|
-
/* @__PURE__ */
|
|
3028
|
-
/* @__PURE__ */
|
|
3029
|
-
/* @__PURE__ */
|
|
3030
|
-
/* @__PURE__ */
|
|
3035
|
+
/* @__PURE__ */ jsx24("p", { children: /* @__PURE__ */ jsx24(FormattedMessage5, { id: "CEXBindAttention" }) }),
|
|
3036
|
+
/* @__PURE__ */ jsx24("p", { children: /* @__PURE__ */ jsx24(FormattedMessage5, { id: "CEXBindTips1" }) }),
|
|
3037
|
+
/* @__PURE__ */ jsx24("p", { children: /* @__PURE__ */ jsx24(FormattedMessage5, { id: "CEXBindTips2" }) }),
|
|
3038
|
+
/* @__PURE__ */ jsx24("p", { children: /* @__PURE__ */ jsx24(FormattedMessage5, { id: "CEXBindTips3" }) })
|
|
3031
3039
|
] }),
|
|
3032
|
-
/* @__PURE__ */
|
|
3040
|
+
/* @__PURE__ */ jsx24(Field, { label: intl.formatMessage({
|
|
3033
3041
|
id: "CEXBindApiKey"
|
|
3034
|
-
}), children: /* @__PURE__ */
|
|
3042
|
+
}), children: /* @__PURE__ */ jsx24(
|
|
3035
3043
|
Input,
|
|
3036
3044
|
{
|
|
3037
3045
|
value: key,
|
|
@@ -3039,9 +3047,9 @@ function CEXBindModal({
|
|
|
3039
3047
|
placeholder: "**** **** ****"
|
|
3040
3048
|
}
|
|
3041
3049
|
) }),
|
|
3042
|
-
/* @__PURE__ */
|
|
3050
|
+
/* @__PURE__ */ jsx24(Field, { label: intl.formatMessage({
|
|
3043
3051
|
id: "CEXBindApiSecretKey"
|
|
3044
|
-
}), error: !needPassphrase && error, children: /* @__PURE__ */
|
|
3052
|
+
}), error: !needPassphrase && error, children: /* @__PURE__ */ jsx24(
|
|
3045
3053
|
Input,
|
|
3046
3054
|
{
|
|
3047
3055
|
value: secret,
|
|
@@ -3049,9 +3057,9 @@ function CEXBindModal({
|
|
|
3049
3057
|
placeholder: "**** **** ****"
|
|
3050
3058
|
}
|
|
3051
3059
|
) }),
|
|
3052
|
-
needPassphrase && /* @__PURE__ */
|
|
3060
|
+
needPassphrase && /* @__PURE__ */ jsx24(Field, { error, label: intl.formatMessage({
|
|
3053
3061
|
id: "CEXBindApiPassphrase"
|
|
3054
|
-
}), children: /* @__PURE__ */
|
|
3062
|
+
}), children: /* @__PURE__ */ jsx24(
|
|
3055
3063
|
Input,
|
|
3056
3064
|
{
|
|
3057
3065
|
value: APIPassphrase,
|
|
@@ -3059,7 +3067,7 @@ function CEXBindModal({
|
|
|
3059
3067
|
placeholder: "**** **** ****"
|
|
3060
3068
|
}
|
|
3061
3069
|
) }),
|
|
3062
|
-
/* @__PURE__ */
|
|
3070
|
+
/* @__PURE__ */ jsx24(
|
|
3063
3071
|
Button,
|
|
3064
3072
|
{
|
|
3065
3073
|
onClick: SubmitApi,
|
|
@@ -3067,7 +3075,7 @@ function CEXBindModal({
|
|
|
3067
3075
|
block: true,
|
|
3068
3076
|
loading,
|
|
3069
3077
|
disabled: !key || !secret,
|
|
3070
|
-
children: /* @__PURE__ */
|
|
3078
|
+
children: /* @__PURE__ */ jsx24(FormattedMessage5, { id: "continue" })
|
|
3071
3079
|
}
|
|
3072
3080
|
)
|
|
3073
3081
|
] }) });
|
|
@@ -3075,7 +3083,7 @@ function CEXBindModal({
|
|
|
3075
3083
|
|
|
3076
3084
|
// src/context/BusinessProvider.tsx
|
|
3077
3085
|
import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
3078
|
-
import { Fragment as Fragment4, jsx as
|
|
3086
|
+
import { Fragment as Fragment4, jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3079
3087
|
function BusinessProvider({ children }) {
|
|
3080
3088
|
const { overview, token } = useUserInfo();
|
|
3081
3089
|
const { type: EVMType, isOpen: EVMIsOpen, close: EVMClose } = useEVMModalStore();
|
|
@@ -3110,7 +3118,7 @@ function BusinessProvider({ children }) {
|
|
|
3110
3118
|
refetchInterval: 1e3 * 5
|
|
3111
3119
|
});
|
|
3112
3120
|
return /* @__PURE__ */ jsxs14(Fragment4, { children: [
|
|
3113
|
-
/* @__PURE__ */
|
|
3121
|
+
/* @__PURE__ */ jsx25(
|
|
3114
3122
|
EVMModal,
|
|
3115
3123
|
{
|
|
3116
3124
|
isOpen: EVMIsOpen && (EVMType == "login" && !overview && !token || EVMType == "bind" && !!token && !!overview),
|
|
@@ -3120,7 +3128,7 @@ function BusinessProvider({ children }) {
|
|
|
3120
3128
|
zIndex: 199
|
|
3121
3129
|
}
|
|
3122
3130
|
),
|
|
3123
|
-
/* @__PURE__ */
|
|
3131
|
+
/* @__PURE__ */ jsx25(
|
|
3124
3132
|
TRONModal,
|
|
3125
3133
|
{
|
|
3126
3134
|
isOpen: TRONIsOpen && (TRONType == "login" && !overview && !token || TRONType == "bind" && !!token && !!overview),
|
|
@@ -3130,7 +3138,7 @@ function BusinessProvider({ children }) {
|
|
|
3130
3138
|
zIndex: 199
|
|
3131
3139
|
}
|
|
3132
3140
|
),
|
|
3133
|
-
/* @__PURE__ */
|
|
3141
|
+
/* @__PURE__ */ jsx25(
|
|
3134
3142
|
TONModal,
|
|
3135
3143
|
{
|
|
3136
3144
|
isOpen: TONIsOpen && (TONType == "login" && !overview && !token || TONType == "bind" && !!token && !!overview),
|
|
@@ -3140,7 +3148,7 @@ function BusinessProvider({ children }) {
|
|
|
3140
3148
|
zIndex: 199
|
|
3141
3149
|
}
|
|
3142
3150
|
),
|
|
3143
|
-
/* @__PURE__ */
|
|
3151
|
+
/* @__PURE__ */ jsx25(
|
|
3144
3152
|
BTCModal,
|
|
3145
3153
|
{
|
|
3146
3154
|
isOpen: BTCIsOpen && (BTCType == "login" && !overview && !token || BTCType == "bind" && !!token && !!overview),
|
|
@@ -3150,7 +3158,7 @@ function BusinessProvider({ children }) {
|
|
|
3150
3158
|
zIndex: 199
|
|
3151
3159
|
}
|
|
3152
3160
|
),
|
|
3153
|
-
/* @__PURE__ */
|
|
3161
|
+
/* @__PURE__ */ jsx25(
|
|
3154
3162
|
CEXBindModal,
|
|
3155
3163
|
{
|
|
3156
3164
|
isOpen: CEXIsOpen && (!!token && !!overview),
|
|
@@ -3159,7 +3167,7 @@ function BusinessProvider({ children }) {
|
|
|
3159
3167
|
zIndex: 199
|
|
3160
3168
|
}
|
|
3161
3169
|
),
|
|
3162
|
-
/* @__PURE__ */
|
|
3170
|
+
/* @__PURE__ */ jsx25(
|
|
3163
3171
|
WalletModal,
|
|
3164
3172
|
{
|
|
3165
3173
|
isOpen: WalletModalStore.isOpen && (WalletModalStore.type == "login" && !overview && !token || WalletModalStore.type == "bind" && !!token && !!overview),
|
|
@@ -3174,9 +3182,9 @@ function BusinessProvider({ children }) {
|
|
|
3174
3182
|
}
|
|
3175
3183
|
|
|
3176
3184
|
// src/context/index.tsx
|
|
3177
|
-
import { jsx as
|
|
3185
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
3178
3186
|
var Providers = ({ children }) => {
|
|
3179
|
-
return /* @__PURE__ */
|
|
3187
|
+
return /* @__PURE__ */ jsx26(ToastProvider, { children: /* @__PURE__ */ jsx26(ModalProvider, { children: /* @__PURE__ */ jsx26(BusinessProvider, { children }) }) });
|
|
3180
3188
|
};
|
|
3181
3189
|
var context_default = Providers;
|
|
3182
3190
|
|
|
@@ -4380,7 +4388,7 @@ import {
|
|
|
4380
4388
|
} from "@rainbow-me/rainbowkit/wallets";
|
|
4381
4389
|
import { arbitrum, base, bsc, mainnet, optimism, polygon } from "wagmi/chains";
|
|
4382
4390
|
import { WagmiProvider } from "wagmi";
|
|
4383
|
-
import { jsx as
|
|
4391
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
4384
4392
|
var queryClient = new QueryClient();
|
|
4385
4393
|
var wagmiConfig = getDefaultConfig({
|
|
4386
4394
|
appName: "MatchID",
|
|
@@ -4419,7 +4427,7 @@ var MatchProvider = ({
|
|
|
4419
4427
|
useWalletInit({
|
|
4420
4428
|
config: wallet
|
|
4421
4429
|
});
|
|
4422
|
-
return /* @__PURE__ */
|
|
4430
|
+
return /* @__PURE__ */ jsx27(IntlProvider, { locale: realLocale, messages: messages[realLocale], children: /* @__PURE__ */ jsx27(WagmiProvider, { config: wagmiConfig, children: /* @__PURE__ */ jsx27(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx27(
|
|
4423
4431
|
MatchContext.Provider,
|
|
4424
4432
|
{
|
|
4425
4433
|
value: {
|
|
@@ -4430,7 +4438,7 @@ var MatchProvider = ({
|
|
|
4430
4438
|
theme,
|
|
4431
4439
|
locale: realLocale
|
|
4432
4440
|
},
|
|
4433
|
-
children: /* @__PURE__ */
|
|
4441
|
+
children: /* @__PURE__ */ jsx27(context_default, { children })
|
|
4434
4442
|
}
|
|
4435
4443
|
) }) }) });
|
|
4436
4444
|
};
|
|
@@ -4742,7 +4750,7 @@ function useUserInfo() {
|
|
|
4742
4750
|
// src/components/EmailModal/StepVerify.tsx
|
|
4743
4751
|
import { useEffect as useEffect19, useMemo as useMemo9, useRef as useRef5, useState as useState18 } from "react";
|
|
4744
4752
|
import { FormattedMessage as FormattedMessage6, useIntl as useIntl7 } from "react-intl";
|
|
4745
|
-
import { jsx as
|
|
4753
|
+
import { jsx as jsx28, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
4746
4754
|
function StepVerify(props) {
|
|
4747
4755
|
const intl = useIntl7();
|
|
4748
4756
|
const { getLoginEmailCode, loginByEmail } = useUserInfo();
|
|
@@ -4821,15 +4829,15 @@ function StepVerify(props) {
|
|
|
4821
4829
|
};
|
|
4822
4830
|
return /* @__PURE__ */ jsxs15("div", { className: "matchid-email-verify-box", children: [
|
|
4823
4831
|
/* @__PURE__ */ jsxs15("div", { className: "matchid-email-verify-header", children: [
|
|
4824
|
-
/* @__PURE__ */
|
|
4832
|
+
/* @__PURE__ */ jsx28("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ jsx28(EmailLineIcon, { size: isDownMd ? 19 : 24 }) }),
|
|
4825
4833
|
/* @__PURE__ */ jsxs15("div", { className: "matchid-email-verify-header-content", children: [
|
|
4826
|
-
/* @__PURE__ */
|
|
4827
|
-
/* @__PURE__ */
|
|
4834
|
+
/* @__PURE__ */ jsx28("div", { className: "matchid-email-verify-header-value", children: props.email }),
|
|
4835
|
+
/* @__PURE__ */ jsx28("div", { className: "matchid-email-verify-header-tips", children: /* @__PURE__ */ jsx28(FormattedMessage6, { id: "sendEmailTips" }) })
|
|
4828
4836
|
] })
|
|
4829
4837
|
] }),
|
|
4830
|
-
/* @__PURE__ */
|
|
4838
|
+
/* @__PURE__ */ jsx28(Field, { label: intl.formatMessage({
|
|
4831
4839
|
id: "verificationCode"
|
|
4832
|
-
}), error, children: /* @__PURE__ */
|
|
4840
|
+
}), error, children: /* @__PURE__ */ jsx28(
|
|
4833
4841
|
Input,
|
|
4834
4842
|
{
|
|
4835
4843
|
placeholder: intl.formatMessage({
|
|
@@ -4839,7 +4847,7 @@ function StepVerify(props) {
|
|
|
4839
4847
|
maxLength: codeLength,
|
|
4840
4848
|
onChange: (e) => setCode(e.target.value),
|
|
4841
4849
|
value: code,
|
|
4842
|
-
after: /* @__PURE__ */
|
|
4850
|
+
after: /* @__PURE__ */ jsx28(
|
|
4843
4851
|
Button,
|
|
4844
4852
|
{
|
|
4845
4853
|
highlight: true,
|
|
@@ -4858,13 +4866,13 @@ function StepVerify(props) {
|
|
|
4858
4866
|
)
|
|
4859
4867
|
}
|
|
4860
4868
|
) }),
|
|
4861
|
-
/* @__PURE__ */
|
|
4869
|
+
/* @__PURE__ */ jsx28(Button, { disabled: !canContinue, loading: submitting, highlight: true, block: true, size: "lg", onClick: onContinue, children: /* @__PURE__ */ jsx28(FormattedMessage6, { id: "continue" }) })
|
|
4862
4870
|
] });
|
|
4863
4871
|
}
|
|
4864
4872
|
|
|
4865
4873
|
// src/components/EmailModal/index.tsx
|
|
4866
4874
|
import { useIntl as useIntl8 } from "react-intl";
|
|
4867
|
-
import { jsx as
|
|
4875
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
4868
4876
|
function EmailModal({
|
|
4869
4877
|
isOpen = false,
|
|
4870
4878
|
width = 480,
|
|
@@ -4881,7 +4889,7 @@ function EmailModal({
|
|
|
4881
4889
|
setEmailVal("");
|
|
4882
4890
|
}
|
|
4883
4891
|
}, [isOpen]);
|
|
4884
|
-
return /* @__PURE__ */
|
|
4892
|
+
return /* @__PURE__ */ jsx29(
|
|
4885
4893
|
ModalWithHeader,
|
|
4886
4894
|
{
|
|
4887
4895
|
isOpen,
|
|
@@ -4891,10 +4899,10 @@ function EmailModal({
|
|
|
4891
4899
|
id: "email"
|
|
4892
4900
|
}),
|
|
4893
4901
|
onBack: step == "verify" ? () => setStep("input") : onBack,
|
|
4894
|
-
children: step === "input" ? /* @__PURE__ */
|
|
4902
|
+
children: step === "input" ? /* @__PURE__ */ jsx29(StepEmail, { email: emailVal, onContinue: (email) => {
|
|
4895
4903
|
setEmailVal(email);
|
|
4896
4904
|
setStep("verify");
|
|
4897
|
-
} }) : /* @__PURE__ */
|
|
4905
|
+
} }) : /* @__PURE__ */ jsx29(StepVerify, { email: emailVal, onSuccess: onLogin })
|
|
4898
4906
|
}
|
|
4899
4907
|
);
|
|
4900
4908
|
}
|
|
@@ -4924,7 +4932,7 @@ function useAppConfig() {
|
|
|
4924
4932
|
}
|
|
4925
4933
|
|
|
4926
4934
|
// src/components/LoginBox/index.tsx
|
|
4927
|
-
import { Fragment as Fragment5, jsx as
|
|
4935
|
+
import { Fragment as Fragment5, jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
4928
4936
|
var RecommendItem = ({
|
|
4929
4937
|
icon,
|
|
4930
4938
|
name,
|
|
@@ -4936,17 +4944,17 @@ var RecommendItem = ({
|
|
|
4936
4944
|
return /* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-method", children: [
|
|
4937
4945
|
/* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-method-item", onClick, children: [
|
|
4938
4946
|
/* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-method-content", children: [
|
|
4939
|
-
/* @__PURE__ */
|
|
4940
|
-
/* @__PURE__ */
|
|
4947
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-method-icon", children: icon }),
|
|
4948
|
+
/* @__PURE__ */ jsx30("span", { className: "matchid-login-recommend-method-name", children: name })
|
|
4941
4949
|
] }),
|
|
4942
|
-
footer ? footer : children ? /* @__PURE__ */
|
|
4950
|
+
footer ? footer : children ? /* @__PURE__ */ jsx30(
|
|
4943
4951
|
ArrowDownIcon,
|
|
4944
4952
|
{
|
|
4945
4953
|
className: `matchid-login-recommend-method-arrow ${showChildren ? "matchid-login-recommend-method-arrow-active" : ""}`,
|
|
4946
4954
|
size: 20,
|
|
4947
4955
|
color: "var(--matchid-arrow-color)"
|
|
4948
4956
|
}
|
|
4949
|
-
) : /* @__PURE__ */
|
|
4957
|
+
) : /* @__PURE__ */ jsx30(
|
|
4950
4958
|
ArrowRightIcon,
|
|
4951
4959
|
{
|
|
4952
4960
|
className: "matchid-login-recommend-method-arrow",
|
|
@@ -4955,7 +4963,7 @@ var RecommendItem = ({
|
|
|
4955
4963
|
}
|
|
4956
4964
|
)
|
|
4957
4965
|
] }),
|
|
4958
|
-
children && /* @__PURE__ */
|
|
4966
|
+
children && /* @__PURE__ */ jsx30(
|
|
4959
4967
|
"div",
|
|
4960
4968
|
{
|
|
4961
4969
|
className: `matchid-login-recommend-method-popover ${showChildren ? "matchid-login-recommend-method-popover-active" : ""}`,
|
|
@@ -5020,55 +5028,55 @@ function LoginBox({
|
|
|
5020
5028
|
const isDownMd = useDownMd();
|
|
5021
5029
|
const methodMap = {
|
|
5022
5030
|
wallet: {
|
|
5023
|
-
icon: /* @__PURE__ */
|
|
5031
|
+
icon: /* @__PURE__ */ jsx30(WalletIcon, { size: isDownMd ? 36 : 40 }),
|
|
5024
5032
|
name: intl.formatMessage({ id: "wallet" }),
|
|
5025
5033
|
onClick: () => setShowWallet(!showWallet),
|
|
5026
5034
|
type: "wallet"
|
|
5027
5035
|
},
|
|
5028
5036
|
email: {
|
|
5029
|
-
icon: /* @__PURE__ */
|
|
5037
|
+
icon: /* @__PURE__ */ jsx30(EmailIcon, { size: isDownMd ? 36 : 40 }),
|
|
5030
5038
|
name: intl.formatMessage({ id: "email" }),
|
|
5031
5039
|
onClick: () => {
|
|
5032
5040
|
setEmailOpen(true);
|
|
5033
5041
|
}
|
|
5034
5042
|
},
|
|
5035
5043
|
google: {
|
|
5036
|
-
icon: /* @__PURE__ */
|
|
5044
|
+
icon: /* @__PURE__ */ jsx30(GoogleIcon, { size: isDownMd ? 36 : 40 }),
|
|
5037
5045
|
name: "Google",
|
|
5038
5046
|
onClick: () => login("google")
|
|
5039
5047
|
},
|
|
5040
5048
|
twitter: {
|
|
5041
|
-
icon: /* @__PURE__ */
|
|
5049
|
+
icon: /* @__PURE__ */ jsx30(XIcon, { size: isDownMd ? 36 : 40 }),
|
|
5042
5050
|
name: "X",
|
|
5043
5051
|
onClick: () => login("twitter")
|
|
5044
5052
|
},
|
|
5045
5053
|
telegram: {
|
|
5046
|
-
icon: /* @__PURE__ */
|
|
5054
|
+
icon: /* @__PURE__ */ jsx30(TelegramIcon, { size: isDownMd ? 36 : 40 }),
|
|
5047
5055
|
name: "Telegram",
|
|
5048
5056
|
onClick: () => login("telegram")
|
|
5049
5057
|
},
|
|
5050
5058
|
github: {
|
|
5051
|
-
icon: /* @__PURE__ */
|
|
5059
|
+
icon: /* @__PURE__ */ jsx30(GithubIcon, { size: isDownMd ? 36 : 40 }),
|
|
5052
5060
|
name: "Github",
|
|
5053
5061
|
onClick: () => login("github")
|
|
5054
5062
|
},
|
|
5055
5063
|
discord: {
|
|
5056
|
-
icon: /* @__PURE__ */
|
|
5064
|
+
icon: /* @__PURE__ */ jsx30(DiscordIcon, { size: isDownMd ? 36 : 40 }),
|
|
5057
5065
|
name: "Discord",
|
|
5058
5066
|
onClick: () => login("discord")
|
|
5059
5067
|
},
|
|
5060
5068
|
linkedin: {
|
|
5061
|
-
icon: /* @__PURE__ */
|
|
5069
|
+
icon: /* @__PURE__ */ jsx30(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
|
|
5062
5070
|
name: "LinkedIn",
|
|
5063
5071
|
onClick: () => login("linkedin")
|
|
5064
5072
|
},
|
|
5065
5073
|
facebook: {
|
|
5066
|
-
icon: /* @__PURE__ */
|
|
5074
|
+
icon: /* @__PURE__ */ jsx30(FacebookIcon, { size: isDownMd ? 36 : 40 }),
|
|
5067
5075
|
name: "Facebook",
|
|
5068
5076
|
onClick: () => login("facebook")
|
|
5069
5077
|
},
|
|
5070
5078
|
youtube: {
|
|
5071
|
-
icon: /* @__PURE__ */
|
|
5079
|
+
icon: /* @__PURE__ */ jsx30(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
|
|
5072
5080
|
name: "Youtube",
|
|
5073
5081
|
onClick: () => login("youtube")
|
|
5074
5082
|
}
|
|
@@ -5076,8 +5084,8 @@ function LoginBox({
|
|
|
5076
5084
|
const { walletMap } = useWalletConfig();
|
|
5077
5085
|
return /* @__PURE__ */ jsxs16(Fragment5, { children: [
|
|
5078
5086
|
(!inModal || !emailOpen) && /* @__PURE__ */ jsxs16("div", { className: "matchid-login-box", children: [
|
|
5079
|
-
/* @__PURE__ */
|
|
5080
|
-
return /* @__PURE__ */
|
|
5087
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
|
|
5088
|
+
return /* @__PURE__ */ jsx30(
|
|
5081
5089
|
RecommendItem,
|
|
5082
5090
|
{
|
|
5083
5091
|
icon: methodMap[m]?.icon,
|
|
@@ -5085,8 +5093,8 @@ function LoginBox({
|
|
|
5085
5093
|
onClick: methodMap[m]?.onClick,
|
|
5086
5094
|
showChildren: m == "wallet" && showWallet,
|
|
5087
5095
|
children: m == "wallet" && /* @__PURE__ */ jsxs16(Fragment5, { children: [
|
|
5088
|
-
/* @__PURE__ */
|
|
5089
|
-
/* @__PURE__ */
|
|
5096
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-divider" }),
|
|
5097
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-list", children: methodConfig.walletMethods.map((n) => {
|
|
5090
5098
|
const m2 = walletMap[n];
|
|
5091
5099
|
return /* @__PURE__ */ jsxs16(
|
|
5092
5100
|
"div",
|
|
@@ -5097,15 +5105,15 @@ function LoginBox({
|
|
|
5097
5105
|
},
|
|
5098
5106
|
children: [
|
|
5099
5107
|
/* @__PURE__ */ jsxs16("div", { className: "matchid-login-recommend-wallet-item-content", children: [
|
|
5100
|
-
/* @__PURE__ */
|
|
5101
|
-
/* @__PURE__ */
|
|
5108
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
|
|
5109
|
+
/* @__PURE__ */ jsx30(
|
|
5102
5110
|
"div",
|
|
5103
5111
|
{
|
|
5104
5112
|
className: "matchid-login-recommend-wallet-item-hover-icon",
|
|
5105
5113
|
children: m2.activeIcon
|
|
5106
5114
|
}
|
|
5107
5115
|
),
|
|
5108
|
-
/* @__PURE__ */
|
|
5116
|
+
/* @__PURE__ */ jsx30(
|
|
5109
5117
|
"span",
|
|
5110
5118
|
{
|
|
5111
5119
|
className: "matchid-login-recommend-wallet-item-name",
|
|
@@ -5113,7 +5121,7 @@ function LoginBox({
|
|
|
5113
5121
|
}
|
|
5114
5122
|
)
|
|
5115
5123
|
] }),
|
|
5116
|
-
/* @__PURE__ */
|
|
5124
|
+
/* @__PURE__ */ jsx30(
|
|
5117
5125
|
ArrowRightIcon,
|
|
5118
5126
|
{
|
|
5119
5127
|
className: "matchid-login-recommend-wallet-item-arrow",
|
|
@@ -5132,9 +5140,9 @@ function LoginBox({
|
|
|
5132
5140
|
);
|
|
5133
5141
|
}) }),
|
|
5134
5142
|
methodConfig.methods.length > 0 && /* @__PURE__ */ jsxs16("div", { className: "matchid-login-other", children: [
|
|
5135
|
-
/* @__PURE__ */
|
|
5136
|
-
/* @__PURE__ */
|
|
5137
|
-
return /* @__PURE__ */
|
|
5143
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ jsx30(FormattedMessage7, { id: "otherLoginMethods" }) }),
|
|
5144
|
+
/* @__PURE__ */ jsx30("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
|
|
5145
|
+
return /* @__PURE__ */ jsx30(
|
|
5138
5146
|
"div",
|
|
5139
5147
|
{
|
|
5140
5148
|
className: "matchid-login-method-item",
|
|
@@ -5147,7 +5155,7 @@ function LoginBox({
|
|
|
5147
5155
|
}) })
|
|
5148
5156
|
] })
|
|
5149
5157
|
] }),
|
|
5150
|
-
/* @__PURE__ */
|
|
5158
|
+
/* @__PURE__ */ jsx30(
|
|
5151
5159
|
EmailModal,
|
|
5152
5160
|
{
|
|
5153
5161
|
isOpen: emailOpen,
|
|
@@ -5167,7 +5175,7 @@ import { useState as useState22 } from "react";
|
|
|
5167
5175
|
|
|
5168
5176
|
// src/components/LoginPanel/index.tsx
|
|
5169
5177
|
import { FormattedMessage as FormattedMessage8 } from "react-intl";
|
|
5170
|
-
import { jsx as
|
|
5178
|
+
import { jsx as jsx31, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
5171
5179
|
function LoginPanel({
|
|
5172
5180
|
header,
|
|
5173
5181
|
onClose,
|
|
@@ -5177,30 +5185,30 @@ function LoginPanel({
|
|
|
5177
5185
|
return /* @__PURE__ */ jsxs17("div", { className: "matchid-login-panel", children: [
|
|
5178
5186
|
header ? header : /* @__PURE__ */ jsxs17("div", { className: "matchid-login-panel-header", children: [
|
|
5179
5187
|
/* @__PURE__ */ jsxs17("div", { className: "matchid-login-panel-header-content", children: [
|
|
5180
|
-
/* @__PURE__ */
|
|
5181
|
-
/* @__PURE__ */
|
|
5188
|
+
/* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ jsx31(FormattedMessage8, { id: "loginTitle" }) }),
|
|
5189
|
+
/* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-header-subtilte", children: /* @__PURE__ */ jsx31(FormattedMessage8, { id: "loginTips" }) })
|
|
5182
5190
|
] }),
|
|
5183
|
-
onClose && /* @__PURE__ */
|
|
5191
|
+
onClose && /* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ jsx31(CloseRoundIcon, { size: isDownMd ? 24 : 30 }) })
|
|
5184
5192
|
] }),
|
|
5185
|
-
/* @__PURE__ */
|
|
5186
|
-
/* @__PURE__ */
|
|
5193
|
+
/* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-divide" }),
|
|
5194
|
+
/* @__PURE__ */ jsx31("div", { className: "matchid-login-panel-box", children: /* @__PURE__ */ jsx31(LoginBox, { ...props }) })
|
|
5187
5195
|
] });
|
|
5188
5196
|
}
|
|
5189
5197
|
|
|
5190
5198
|
// src/components/LoginModal/index.tsx
|
|
5191
|
-
import { jsx as
|
|
5199
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
5192
5200
|
function LoginModal({
|
|
5193
5201
|
isOpen = false,
|
|
5194
5202
|
width = 480,
|
|
5195
5203
|
...props
|
|
5196
5204
|
}) {
|
|
5197
5205
|
const { isLogin } = useUserInfo();
|
|
5198
|
-
return /* @__PURE__ */
|
|
5206
|
+
return /* @__PURE__ */ jsx32(
|
|
5199
5207
|
Modal,
|
|
5200
5208
|
{
|
|
5201
5209
|
isOpen: isOpen && !isLogin,
|
|
5202
5210
|
width,
|
|
5203
|
-
children: /* @__PURE__ */
|
|
5211
|
+
children: /* @__PURE__ */ jsx32(LoginPanel, { ...props, inModal: true })
|
|
5204
5212
|
}
|
|
5205
5213
|
);
|
|
5206
5214
|
}
|
|
@@ -5209,10 +5217,10 @@ function LoginModal({
|
|
|
5209
5217
|
import { useState as useState21 } from "react";
|
|
5210
5218
|
|
|
5211
5219
|
// src/assets/icon/ProfileIcon.tsx
|
|
5212
|
-
import { jsx as
|
|
5220
|
+
import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
5213
5221
|
function ProfileIcon({ size = 24, color = "black", ...props }) {
|
|
5214
5222
|
return /* @__PURE__ */ jsxs18("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
5215
|
-
/* @__PURE__ */
|
|
5223
|
+
/* @__PURE__ */ jsx33(
|
|
5216
5224
|
"path",
|
|
5217
5225
|
{
|
|
5218
5226
|
fillRule: "evenodd",
|
|
@@ -5221,7 +5229,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
|
|
|
5221
5229
|
fill: color
|
|
5222
5230
|
}
|
|
5223
5231
|
),
|
|
5224
|
-
/* @__PURE__ */
|
|
5232
|
+
/* @__PURE__ */ jsx33(
|
|
5225
5233
|
"path",
|
|
5226
5234
|
{
|
|
5227
5235
|
fillRule: "evenodd",
|
|
@@ -5235,7 +5243,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
|
|
|
5235
5243
|
|
|
5236
5244
|
// src/components/UserPopover/index.tsx
|
|
5237
5245
|
import { FormattedMessage as FormattedMessage9, useIntl as useIntl10 } from "react-intl";
|
|
5238
|
-
import { jsx as
|
|
5246
|
+
import { jsx as jsx34, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
5239
5247
|
function UserContent() {
|
|
5240
5248
|
const { logout, address, username } = useUserInfo();
|
|
5241
5249
|
const [logouting, setLogouting] = useState21(false);
|
|
@@ -5259,31 +5267,31 @@ function UserContent() {
|
|
|
5259
5267
|
return /* @__PURE__ */ jsxs19("div", { className: "matchid-user-popover-item", onClick, children: [
|
|
5260
5268
|
/* @__PURE__ */ jsxs19("div", { className: `matchid-user-popover-item-content`, children: [
|
|
5261
5269
|
icon,
|
|
5262
|
-
/* @__PURE__ */
|
|
5270
|
+
/* @__PURE__ */ jsx34("div", { className: "matchid-user-popover-item-text", children })
|
|
5263
5271
|
] }),
|
|
5264
5272
|
rightIcon
|
|
5265
5273
|
] });
|
|
5266
5274
|
};
|
|
5267
5275
|
const UserDivider = () => {
|
|
5268
|
-
return /* @__PURE__ */
|
|
5276
|
+
return /* @__PURE__ */ jsx34("div", { className: `matchid-user-popover-divider` });
|
|
5269
5277
|
};
|
|
5270
5278
|
const [usernameOpen, setUsernameOpen] = useState21(false);
|
|
5271
5279
|
const [copied, setCopied] = useCopyClipboard();
|
|
5272
5280
|
const intl = useIntl10();
|
|
5273
5281
|
return /* @__PURE__ */ jsxs19("div", { className: "matchid-user-popover-content", children: [
|
|
5274
5282
|
/* @__PURE__ */ jsxs19("div", { className: "matchid-user-popover-list", children: [
|
|
5275
|
-
/* @__PURE__ */
|
|
5283
|
+
/* @__PURE__ */ jsx34(UserItem, { onClick: () => {
|
|
5276
5284
|
setCopied(address);
|
|
5277
|
-
}, icon: copied ? /* @__PURE__ */
|
|
5278
|
-
/* @__PURE__ */
|
|
5279
|
-
/* @__PURE__ */
|
|
5285
|
+
}, icon: copied ? /* @__PURE__ */ jsx34(CheckIcon, { size: 20, color: "#0ecb81" }) : /* @__PURE__ */ jsx34(CopyIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ jsx34(CheckIcon, { size: 20, color: "var(--icon-color)" }), children: truncateAddress(address) }),
|
|
5286
|
+
/* @__PURE__ */ jsx34(UserDivider, {}),
|
|
5287
|
+
/* @__PURE__ */ jsx34(UserItem, { onClick: () => {
|
|
5280
5288
|
setUsernameOpen(true);
|
|
5281
|
-
}, icon: /* @__PURE__ */
|
|
5289
|
+
}, icon: /* @__PURE__ */ jsx34(ProfileIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ jsx34(ArrowRightIcon, { size: 20, color: "var(--icon-color)" }), children: username || intl.formatMessage({
|
|
5282
5290
|
id: "setUsername"
|
|
5283
5291
|
}) })
|
|
5284
5292
|
] }),
|
|
5285
|
-
/* @__PURE__ */
|
|
5286
|
-
/* @__PURE__ */
|
|
5293
|
+
/* @__PURE__ */ jsx34(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ jsx34(FormattedMessage9, { id: "disconnect" }) }),
|
|
5294
|
+
/* @__PURE__ */ jsx34(UsernameModal, { isOpen: usernameOpen, onClose: () => {
|
|
5287
5295
|
setUsernameOpen(false);
|
|
5288
5296
|
}, onSuccess: () => {
|
|
5289
5297
|
setUsernameOpen(false);
|
|
@@ -5294,12 +5302,12 @@ function UserPopover({
|
|
|
5294
5302
|
children,
|
|
5295
5303
|
...props
|
|
5296
5304
|
}) {
|
|
5297
|
-
return /* @__PURE__ */
|
|
5305
|
+
return /* @__PURE__ */ jsx34(Popover, { ...props, content: /* @__PURE__ */ jsx34(UserContent, {}), children });
|
|
5298
5306
|
}
|
|
5299
5307
|
|
|
5300
5308
|
// src/components/LoginButton/index.tsx
|
|
5301
5309
|
import { FormattedMessage as FormattedMessage10, useIntl as useIntl11 } from "react-intl";
|
|
5302
|
-
import { Fragment as Fragment6, jsx as
|
|
5310
|
+
import { Fragment as Fragment6, jsx as jsx35, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
5303
5311
|
function LoginButton({
|
|
5304
5312
|
loginRender,
|
|
5305
5313
|
methods,
|
|
@@ -5316,7 +5324,7 @@ function LoginButton({
|
|
|
5316
5324
|
const [loginOpen, setLoginOpen] = useState22(false);
|
|
5317
5325
|
if (!isLogin) {
|
|
5318
5326
|
return /* @__PURE__ */ jsxs20(Fragment6, { children: [
|
|
5319
|
-
/* @__PURE__ */
|
|
5327
|
+
/* @__PURE__ */ jsx35(
|
|
5320
5328
|
LoginModal,
|
|
5321
5329
|
{
|
|
5322
5330
|
methods,
|
|
@@ -5327,14 +5335,14 @@ function LoginButton({
|
|
|
5327
5335
|
}
|
|
5328
5336
|
),
|
|
5329
5337
|
/* @__PURE__ */ jsxs20(Button, { className: "matchid-unlogin-btn", ...props, highlight: true, onClick: () => setLoginOpen(true), children: [
|
|
5330
|
-
/* @__PURE__ */
|
|
5331
|
-
/* @__PURE__ */
|
|
5338
|
+
/* @__PURE__ */ jsx35(UnLoginIcon_default, {}),
|
|
5339
|
+
/* @__PURE__ */ jsx35("span", { children: /* @__PURE__ */ jsx35(FormattedMessage10, { id: "login" }) })
|
|
5332
5340
|
] })
|
|
5333
5341
|
] });
|
|
5334
5342
|
}
|
|
5335
|
-
return loginRender ? /* @__PURE__ */
|
|
5336
|
-
/* @__PURE__ */
|
|
5337
|
-
/* @__PURE__ */
|
|
5343
|
+
return loginRender ? /* @__PURE__ */ jsx35(Fragment6, { children: loginRender }) : /* @__PURE__ */ jsx35(UserPopover, { position: popoverPosition, type: popoverType, gap: popoverGap, children: /* @__PURE__ */ jsxs20(Button, { onClick: onLoginClick, className: "matchid-login-btn", ...props, children: [
|
|
5344
|
+
/* @__PURE__ */ jsx35(LoginIcon_default, {}),
|
|
5345
|
+
/* @__PURE__ */ jsx35("span", { children: username ? truncateAddress(username) : "MatchID " + intl.formatMessage({
|
|
5338
5346
|
id: "user"
|
|
5339
5347
|
}) })
|
|
5340
5348
|
] }) });
|
|
@@ -5343,15 +5351,15 @@ function LoginButton({
|
|
|
5343
5351
|
// src/components/UsernameModal/index.tsx
|
|
5344
5352
|
import { useEffect as useEffect21, useMemo as useMemo11, useState as useState23 } from "react";
|
|
5345
5353
|
import { FormattedMessage as FormattedMessage11, useIntl as useIntl12 } from "react-intl";
|
|
5346
|
-
import { jsx as
|
|
5354
|
+
import { jsx as jsx36, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
5347
5355
|
var ValidItem = ({
|
|
5348
5356
|
success = false,
|
|
5349
5357
|
text
|
|
5350
5358
|
}) => {
|
|
5351
5359
|
const isDownMd = useDownMd();
|
|
5352
5360
|
return /* @__PURE__ */ jsxs21("div", { className: `matchid-valid-status-item matchid-valid-status-${success ? "success" : "error"}`, children: [
|
|
5353
|
-
success ? /* @__PURE__ */
|
|
5354
|
-
/* @__PURE__ */
|
|
5361
|
+
success ? /* @__PURE__ */ jsx36(CheckRoundIcon, { size: isDownMd ? 12 : 16 }) : /* @__PURE__ */ jsx36(InfoLineIcon, { size: isDownMd ? 12 : 16 }),
|
|
5362
|
+
/* @__PURE__ */ jsx36("span", { children: text })
|
|
5355
5363
|
] });
|
|
5356
5364
|
};
|
|
5357
5365
|
function UsernameModal({
|
|
@@ -5399,12 +5407,12 @@ function UsernameModal({
|
|
|
5399
5407
|
}
|
|
5400
5408
|
};
|
|
5401
5409
|
const intl = useIntl12();
|
|
5402
|
-
return /* @__PURE__ */
|
|
5410
|
+
return /* @__PURE__ */ jsx36(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || intl.formatMessage({
|
|
5403
5411
|
id: username ? "editUsernameTitle" : "setUsernameTitle"
|
|
5404
5412
|
}), children: /* @__PURE__ */ jsxs21("div", { className: "matchid-username-box", children: [
|
|
5405
|
-
/* @__PURE__ */
|
|
5413
|
+
/* @__PURE__ */ jsx36(Field, { label: intl.formatMessage({
|
|
5406
5414
|
id: "username"
|
|
5407
|
-
}), error, children: /* @__PURE__ */
|
|
5415
|
+
}), error, children: /* @__PURE__ */ jsx36(
|
|
5408
5416
|
Input,
|
|
5409
5417
|
{
|
|
5410
5418
|
placeholder: intl.formatMessage({
|
|
@@ -5418,7 +5426,7 @@ function UsernameModal({
|
|
|
5418
5426
|
}
|
|
5419
5427
|
) }),
|
|
5420
5428
|
/* @__PURE__ */ jsxs21("div", { className: "matchid-valid", children: [
|
|
5421
|
-
/* @__PURE__ */
|
|
5429
|
+
/* @__PURE__ */ jsx36(
|
|
5422
5430
|
ValidItem,
|
|
5423
5431
|
{
|
|
5424
5432
|
success: isValid,
|
|
@@ -5427,16 +5435,16 @@ function UsernameModal({
|
|
|
5427
5435
|
})
|
|
5428
5436
|
}
|
|
5429
5437
|
),
|
|
5430
|
-
/* @__PURE__ */
|
|
5438
|
+
/* @__PURE__ */ jsx36(ValidItem, { success: isLength, text: intl.formatMessage({
|
|
5431
5439
|
id: "usernameLengthError"
|
|
5432
5440
|
}) })
|
|
5433
5441
|
] }),
|
|
5434
|
-
/* @__PURE__ */
|
|
5442
|
+
/* @__PURE__ */ jsx36(Button, { disabled: !isSafe, loading: isSubmitting, style: {
|
|
5435
5443
|
marginTop: isDownMd ? "36px" : "64px"
|
|
5436
|
-
}, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */
|
|
5437
|
-
/* @__PURE__ */
|
|
5444
|
+
}, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ jsx36(FormattedMessage11, { id: "confirm" }) }),
|
|
5445
|
+
/* @__PURE__ */ jsx36(Button, { style: {
|
|
5438
5446
|
marginTop: isDownMd ? "12px" : "24px"
|
|
5439
|
-
}, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */
|
|
5447
|
+
}, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ jsx36(FormattedMessage11, { id: "cancel" }) })
|
|
5440
5448
|
] }) });
|
|
5441
5449
|
}
|
|
5442
5450
|
|
|
@@ -5455,7 +5463,7 @@ var walletConnectImage = wallet_default;
|
|
|
5455
5463
|
var walletSigningImage = signing_default;
|
|
5456
5464
|
|
|
5457
5465
|
// src/components/WalletModalContent/index.tsx
|
|
5458
|
-
import { jsx as
|
|
5466
|
+
import { jsx as jsx37, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
5459
5467
|
function WalletModalContent({
|
|
5460
5468
|
status,
|
|
5461
5469
|
error,
|
|
@@ -5525,15 +5533,15 @@ function WalletModalContent({
|
|
|
5525
5533
|
statusImage: walletConnectImage
|
|
5526
5534
|
};
|
|
5527
5535
|
}, [visible, connected, status, error, address]);
|
|
5528
|
-
return /* @__PURE__ */
|
|
5536
|
+
return /* @__PURE__ */ jsx37("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-box`, children: [
|
|
5529
5537
|
/* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-content`, children: [
|
|
5530
|
-
/* @__PURE__ */
|
|
5538
|
+
/* @__PURE__ */ jsx37(Lottie_default, { animationData: pageData.statusImage, style: {
|
|
5531
5539
|
width: 128,
|
|
5532
5540
|
height: 128
|
|
5533
5541
|
} }),
|
|
5534
|
-
/* @__PURE__ */
|
|
5542
|
+
/* @__PURE__ */ jsx37("div", { className: pageData.isError ? "matchid-error" : "", children: pageData.text })
|
|
5535
5543
|
] }),
|
|
5536
|
-
/* @__PURE__ */
|
|
5544
|
+
/* @__PURE__ */ jsx37(
|
|
5537
5545
|
Button,
|
|
5538
5546
|
{
|
|
5539
5547
|
block: true,
|
|
@@ -5609,15 +5617,15 @@ function WalletModalContentV2(props) {
|
|
|
5609
5617
|
statusImage: walletConnectImage
|
|
5610
5618
|
};
|
|
5611
5619
|
}, [props, submitting]);
|
|
5612
|
-
return /* @__PURE__ */
|
|
5620
|
+
return /* @__PURE__ */ jsx37("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-box`, children: [
|
|
5613
5621
|
/* @__PURE__ */ jsxs22("div", { className: `matchid-wallet-content`, children: [
|
|
5614
|
-
/* @__PURE__ */
|
|
5622
|
+
/* @__PURE__ */ jsx37(Lottie_default, { animationData: pageData.statusImage, style: {
|
|
5615
5623
|
width: 128,
|
|
5616
5624
|
height: 128
|
|
5617
5625
|
} }),
|
|
5618
|
-
/* @__PURE__ */
|
|
5626
|
+
/* @__PURE__ */ jsx37("div", { className: props.status == "error" ? "matchid-error" : "", children: pageData.text })
|
|
5619
5627
|
] }),
|
|
5620
|
-
/* @__PURE__ */
|
|
5628
|
+
/* @__PURE__ */ jsx37(
|
|
5621
5629
|
Button,
|
|
5622
5630
|
{
|
|
5623
5631
|
block: true,
|
|
@@ -5899,7 +5907,7 @@ async function getEthersSigner(config, { chainId } = {}) {
|
|
|
5899
5907
|
// src/components/EVMModal/index.tsx
|
|
5900
5908
|
import { SiweMessage } from "siwe";
|
|
5901
5909
|
import "@rainbow-me/rainbowkit/styles.css";
|
|
5902
|
-
import { jsx as
|
|
5910
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
5903
5911
|
function WalletContent({
|
|
5904
5912
|
onSuccess,
|
|
5905
5913
|
type
|
|
@@ -6057,7 +6065,7 @@ function WalletContent({
|
|
|
6057
6065
|
setNonce(void 0);
|
|
6058
6066
|
setStatus("start");
|
|
6059
6067
|
};
|
|
6060
|
-
return /* @__PURE__ */
|
|
6068
|
+
return /* @__PURE__ */ jsx38(
|
|
6061
6069
|
WalletModalContentV2,
|
|
6062
6070
|
{
|
|
6063
6071
|
status,
|
|
@@ -6075,14 +6083,14 @@ function EVMConnectModal({
|
|
|
6075
6083
|
...props
|
|
6076
6084
|
}) {
|
|
6077
6085
|
const intl = useIntl13();
|
|
6078
|
-
return /* @__PURE__ */
|
|
6086
|
+
return /* @__PURE__ */ jsx38(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
6079
6087
|
id: type == "bind" ? "bindWith" : "loginWith"
|
|
6080
6088
|
}, {
|
|
6081
6089
|
name: "EVM"
|
|
6082
|
-
}), children: /* @__PURE__ */
|
|
6090
|
+
}), children: /* @__PURE__ */ jsx38(WalletContent, { onSuccess, type }) });
|
|
6083
6091
|
}
|
|
6084
6092
|
function EVMModal(props) {
|
|
6085
|
-
return props.isOpen && /* @__PURE__ */
|
|
6093
|
+
return props.isOpen && /* @__PURE__ */ jsx38(RainbowKitProvider2, { children: /* @__PURE__ */ jsx38(EVMConnectModal, { ...props }) });
|
|
6086
6094
|
}
|
|
6087
6095
|
|
|
6088
6096
|
// src/components/TRONModal/index.tsx
|
|
@@ -6197,7 +6205,7 @@ var useTRONWallet = () => {
|
|
|
6197
6205
|
};
|
|
6198
6206
|
|
|
6199
6207
|
// src/components/TRONModal/index.tsx
|
|
6200
|
-
import { jsx as
|
|
6208
|
+
import { jsx as jsx39, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
6201
6209
|
function TRONConnectModal({
|
|
6202
6210
|
type = "login",
|
|
6203
6211
|
onSuccess,
|
|
@@ -6207,9 +6215,9 @@ function TRONConnectModal({
|
|
|
6207
6215
|
const intl = useIntl14();
|
|
6208
6216
|
const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useTRONWallet();
|
|
6209
6217
|
const iconMaps = {
|
|
6210
|
-
tronlink: /* @__PURE__ */
|
|
6211
|
-
bitget: /* @__PURE__ */
|
|
6212
|
-
okx: /* @__PURE__ */
|
|
6218
|
+
tronlink: /* @__PURE__ */ jsx39(TronLinkIcon, { size: isDownMd ? 36 : 40 }),
|
|
6219
|
+
bitget: /* @__PURE__ */ jsx39(BitgetIcon, { size: isDownMd ? 36 : 40 }),
|
|
6220
|
+
okx: /* @__PURE__ */ jsx39(OKXIcon, { size: isDownMd ? 36 : 40 })
|
|
6213
6221
|
};
|
|
6214
6222
|
const { events, login } = useMatch();
|
|
6215
6223
|
const [status, setStatus] = useState28("");
|
|
@@ -6301,11 +6309,11 @@ function TRONConnectModal({
|
|
|
6301
6309
|
disconnect();
|
|
6302
6310
|
}
|
|
6303
6311
|
}, [props.isOpen]);
|
|
6304
|
-
return /* @__PURE__ */
|
|
6312
|
+
return /* @__PURE__ */ jsx39(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
6305
6313
|
id: type == "bind" ? "bindWith" : "loginWith"
|
|
6306
6314
|
}, {
|
|
6307
6315
|
name: "TRON"
|
|
6308
|
-
}), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */
|
|
6316
|
+
}), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ jsx39(
|
|
6309
6317
|
WalletModalContent,
|
|
6310
6318
|
{
|
|
6311
6319
|
error,
|
|
@@ -6318,9 +6326,9 @@ function TRONConnectModal({
|
|
|
6318
6326
|
setVisible: () => {
|
|
6319
6327
|
}
|
|
6320
6328
|
}
|
|
6321
|
-
) : /* @__PURE__ */
|
|
6329
|
+
) : /* @__PURE__ */ jsx39("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsxs23("div", { className: "matchid-login-recommend-list", children: [
|
|
6322
6330
|
installedWallets.map((wallet2) => {
|
|
6323
|
-
return /* @__PURE__ */
|
|
6331
|
+
return /* @__PURE__ */ jsx39(
|
|
6324
6332
|
RecommendItem,
|
|
6325
6333
|
{
|
|
6326
6334
|
icon: iconMaps[wallet2.walletKey],
|
|
@@ -6333,14 +6341,14 @@ function TRONConnectModal({
|
|
|
6333
6341
|
);
|
|
6334
6342
|
}),
|
|
6335
6343
|
wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
|
|
6336
|
-
return /* @__PURE__ */
|
|
6344
|
+
return /* @__PURE__ */ jsx39(
|
|
6337
6345
|
RecommendItem,
|
|
6338
6346
|
{
|
|
6339
6347
|
icon: iconMaps[wallet2.walletKey],
|
|
6340
6348
|
name: wallet2.name,
|
|
6341
6349
|
onClick: () => {
|
|
6342
6350
|
},
|
|
6343
|
-
footer: /* @__PURE__ */
|
|
6351
|
+
footer: /* @__PURE__ */ jsx39(Button, { size: "sm", onClick: () => {
|
|
6344
6352
|
window.open(wallet2.website);
|
|
6345
6353
|
}, children: "Install" })
|
|
6346
6354
|
},
|
|
@@ -6350,7 +6358,7 @@ function TRONConnectModal({
|
|
|
6350
6358
|
] }) }) });
|
|
6351
6359
|
}
|
|
6352
6360
|
function TRONModal(props) {
|
|
6353
|
-
return props.isOpen && /* @__PURE__ */
|
|
6361
|
+
return props.isOpen && /* @__PURE__ */ jsx39(TRONConnectModal, { ...props, type: props.type });
|
|
6354
6362
|
}
|
|
6355
6363
|
|
|
6356
6364
|
// src/components/TONModal/index.tsx
|
|
@@ -6363,7 +6371,7 @@ import {
|
|
|
6363
6371
|
useTonConnectUI,
|
|
6364
6372
|
useTonWallet
|
|
6365
6373
|
} from "@tonconnect/ui-react";
|
|
6366
|
-
import { jsx as
|
|
6374
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
6367
6375
|
function WalletContent2({
|
|
6368
6376
|
onSuccess,
|
|
6369
6377
|
type
|
|
@@ -6490,7 +6498,7 @@ function WalletContent2({
|
|
|
6490
6498
|
}
|
|
6491
6499
|
}
|
|
6492
6500
|
}, [state]);
|
|
6493
|
-
return /* @__PURE__ */
|
|
6501
|
+
return /* @__PURE__ */ jsx40(
|
|
6494
6502
|
WalletModalContent,
|
|
6495
6503
|
{
|
|
6496
6504
|
connected,
|
|
@@ -6524,20 +6532,20 @@ function TONConnectModal({
|
|
|
6524
6532
|
const intl = useIntl15();
|
|
6525
6533
|
const { endpoints, appid } = useLocalStore_default();
|
|
6526
6534
|
const manifestUrl = `${endpoints.back}api/v1/wallet/ton?appid=${appid}&url=` + encodeURIComponent(window.location.origin);
|
|
6527
|
-
return /* @__PURE__ */
|
|
6535
|
+
return /* @__PURE__ */ jsx40(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
6528
6536
|
id: type == "bind" ? "bindWith" : "loginWith"
|
|
6529
6537
|
}, {
|
|
6530
6538
|
name: "TON"
|
|
6531
|
-
}), children: /* @__PURE__ */
|
|
6539
|
+
}), children: /* @__PURE__ */ jsx40(
|
|
6532
6540
|
TonConnectUIProvider,
|
|
6533
6541
|
{
|
|
6534
6542
|
manifestUrl,
|
|
6535
|
-
children: /* @__PURE__ */
|
|
6543
|
+
children: /* @__PURE__ */ jsx40(WalletContent2, { onSuccess, type })
|
|
6536
6544
|
}
|
|
6537
6545
|
) });
|
|
6538
6546
|
}
|
|
6539
6547
|
function TONModal(props) {
|
|
6540
|
-
return props.isOpen && /* @__PURE__ */
|
|
6548
|
+
return props.isOpen && /* @__PURE__ */ jsx40(TONConnectModal, { ...props });
|
|
6541
6549
|
}
|
|
6542
6550
|
|
|
6543
6551
|
// src/components/BTCModal/index.tsx
|
|
@@ -6766,7 +6774,7 @@ var useBTCWallet = () => {
|
|
|
6766
6774
|
};
|
|
6767
6775
|
|
|
6768
6776
|
// src/components/BTCModal/index.tsx
|
|
6769
|
-
import { jsx as
|
|
6777
|
+
import { jsx as jsx41, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
6770
6778
|
function BTCConnectModal({
|
|
6771
6779
|
type = "login",
|
|
6772
6780
|
onSuccess,
|
|
@@ -6776,10 +6784,10 @@ function BTCConnectModal({
|
|
|
6776
6784
|
const intl = useIntl16();
|
|
6777
6785
|
const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useBTCWallet();
|
|
6778
6786
|
const iconMaps = {
|
|
6779
|
-
leather: /* @__PURE__ */
|
|
6780
|
-
unisat: /* @__PURE__ */
|
|
6781
|
-
xverse: /* @__PURE__ */
|
|
6782
|
-
phantom: /* @__PURE__ */
|
|
6787
|
+
leather: /* @__PURE__ */ jsx41(LeatherIcon, { size: isDownMd ? 36 : 40 }),
|
|
6788
|
+
unisat: /* @__PURE__ */ jsx41(UnisatIcon, { size: isDownMd ? 36 : 40 }),
|
|
6789
|
+
xverse: /* @__PURE__ */ jsx41(XverseIcon, { size: isDownMd ? 36 : 40 }),
|
|
6790
|
+
phantom: /* @__PURE__ */ jsx41(PhantomIcon, { size: isDownMd ? 36 : 40 })
|
|
6783
6791
|
};
|
|
6784
6792
|
const { events, login } = useMatch();
|
|
6785
6793
|
const [status, setStatus] = useState31("");
|
|
@@ -6879,11 +6887,11 @@ function BTCConnectModal({
|
|
|
6879
6887
|
statusRef.current = "";
|
|
6880
6888
|
setError("");
|
|
6881
6889
|
};
|
|
6882
|
-
return /* @__PURE__ */
|
|
6890
|
+
return /* @__PURE__ */ jsx41(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
6883
6891
|
id: type == "bind" ? "bindWith" : "loginWith"
|
|
6884
6892
|
}, {
|
|
6885
6893
|
name: "BTC"
|
|
6886
|
-
}), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */
|
|
6894
|
+
}), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ jsx41(
|
|
6887
6895
|
WalletModalContent,
|
|
6888
6896
|
{
|
|
6889
6897
|
error,
|
|
@@ -6896,9 +6904,9 @@ function BTCConnectModal({
|
|
|
6896
6904
|
setVisible: () => {
|
|
6897
6905
|
}
|
|
6898
6906
|
}
|
|
6899
|
-
) : /* @__PURE__ */
|
|
6907
|
+
) : /* @__PURE__ */ jsx41("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsxs24("div", { className: "matchid-login-recommend-list", children: [
|
|
6900
6908
|
installedWallets.map((wallet2) => {
|
|
6901
|
-
return /* @__PURE__ */
|
|
6909
|
+
return /* @__PURE__ */ jsx41(
|
|
6902
6910
|
RecommendItem,
|
|
6903
6911
|
{
|
|
6904
6912
|
icon: iconMaps[wallet2.walletKey],
|
|
@@ -6911,14 +6919,14 @@ function BTCConnectModal({
|
|
|
6911
6919
|
);
|
|
6912
6920
|
}),
|
|
6913
6921
|
wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
|
|
6914
|
-
return /* @__PURE__ */
|
|
6922
|
+
return /* @__PURE__ */ jsx41(
|
|
6915
6923
|
RecommendItem,
|
|
6916
6924
|
{
|
|
6917
6925
|
icon: iconMaps[wallet2.walletKey],
|
|
6918
6926
|
name: wallet2.name,
|
|
6919
6927
|
onClick: () => {
|
|
6920
6928
|
},
|
|
6921
|
-
footer: /* @__PURE__ */
|
|
6929
|
+
footer: /* @__PURE__ */ jsx41(Button, { size: "sm", onClick: () => {
|
|
6922
6930
|
window.open(wallet2.website);
|
|
6923
6931
|
}, children: "Install" })
|
|
6924
6932
|
},
|
|
@@ -6928,13 +6936,13 @@ function BTCConnectModal({
|
|
|
6928
6936
|
] }) }) });
|
|
6929
6937
|
}
|
|
6930
6938
|
function BTCModal(props) {
|
|
6931
|
-
return props.isOpen && /* @__PURE__ */
|
|
6939
|
+
return props.isOpen && /* @__PURE__ */ jsx41(BTCConnectModal, { ...props });
|
|
6932
6940
|
}
|
|
6933
6941
|
|
|
6934
6942
|
// src/components/WalletModal/index.tsx
|
|
6935
6943
|
import { useMemo as useMemo16 } from "react";
|
|
6936
6944
|
import { useIntl as useIntl17 } from "react-intl";
|
|
6937
|
-
import { jsx as
|
|
6945
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
6938
6946
|
function WalletConnectModal({
|
|
6939
6947
|
type,
|
|
6940
6948
|
methods: _methods,
|
|
@@ -6952,13 +6960,13 @@ function WalletConnectModal({
|
|
|
6952
6960
|
const platform = config.platform.map((p) => p.toLowerCase());
|
|
6953
6961
|
return WALLET_METHODS.filter((m) => platform.includes(m));
|
|
6954
6962
|
}, [config.platform, _methods]);
|
|
6955
|
-
return /* @__PURE__ */
|
|
6963
|
+
return /* @__PURE__ */ jsx42(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
6956
6964
|
id: type == "bind" ? "bindWith" : "loginWith"
|
|
6957
6965
|
}, {
|
|
6958
6966
|
name: ""
|
|
6959
|
-
}), children: /* @__PURE__ */
|
|
6967
|
+
}), children: /* @__PURE__ */ jsx42("div", { className: "matchid-login-box", children: /* @__PURE__ */ jsx42("div", { className: "matchid-login-recommend-list", children: methods.map((method, index) => {
|
|
6960
6968
|
const m = walletMap[method];
|
|
6961
|
-
return /* @__PURE__ */
|
|
6969
|
+
return /* @__PURE__ */ jsx42(
|
|
6962
6970
|
RecommendItem,
|
|
6963
6971
|
{
|
|
6964
6972
|
icon: m?.icon,
|
|
@@ -6972,12 +6980,12 @@ function WalletConnectModal({
|
|
|
6972
6980
|
}) }) }) });
|
|
6973
6981
|
}
|
|
6974
6982
|
function WalletModal(props) {
|
|
6975
|
-
return props.isOpen && /* @__PURE__ */
|
|
6983
|
+
return props.isOpen && /* @__PURE__ */ jsx42(WalletConnectModal, { ...props });
|
|
6976
6984
|
}
|
|
6977
6985
|
|
|
6978
6986
|
// src/components/AlphaAvatar/index.tsx
|
|
6979
6987
|
import { useEffect as useEffect29, useState as useState32 } from "react";
|
|
6980
|
-
import { jsx as
|
|
6988
|
+
import { jsx as jsx43 } from "react/jsx-runtime";
|
|
6981
6989
|
function AlphaAvatar2({ name, size = 40, className = "" }) {
|
|
6982
6990
|
const [avatar, setAvatar] = useState32(void 0);
|
|
6983
6991
|
useEffect29(() => {
|
|
@@ -6986,7 +6994,7 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
|
|
|
6986
6994
|
setAvatar(char);
|
|
6987
6995
|
}
|
|
6988
6996
|
}, [name]);
|
|
6989
|
-
return /* @__PURE__ */
|
|
6997
|
+
return /* @__PURE__ */ jsx43("div", { className: `matchid-alpha-avatar ${className}`, style: {
|
|
6990
6998
|
width: size,
|
|
6991
6999
|
height: size,
|
|
6992
7000
|
fontSize: Math.ceil(size / 2)
|
|
@@ -6994,7 +7002,7 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
|
|
|
6994
7002
|
}
|
|
6995
7003
|
|
|
6996
7004
|
// src/components/WalletAsset/index.tsx
|
|
6997
|
-
import { jsx as
|
|
7005
|
+
import { jsx as jsx44, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
6998
7006
|
function WalletAsset({
|
|
6999
7007
|
onAssetClick,
|
|
7000
7008
|
matchWalletAssetsOptions
|
|
@@ -7004,7 +7012,7 @@ function WalletAsset({
|
|
|
7004
7012
|
list: walletAssets.mergedAssets
|
|
7005
7013
|
});
|
|
7006
7014
|
const { list } = useMatchChain();
|
|
7007
|
-
return /* @__PURE__ */
|
|
7015
|
+
return /* @__PURE__ */ jsx44("div", { className: "matchid-wallet-asset-list", children: matchWalletAssetList.list.map((n, index) => {
|
|
7008
7016
|
const clickFunc = onAssetClick && onAssetClick(n);
|
|
7009
7017
|
const chain = list?.find((m) => m.id.toString() === n.chain_id);
|
|
7010
7018
|
const getFooterColor = () => {
|
|
@@ -7023,7 +7031,7 @@ function WalletAsset({
|
|
|
7023
7031
|
cursor: clickFunc ? "pointer" : "default"
|
|
7024
7032
|
}, children: [
|
|
7025
7033
|
/* @__PURE__ */ jsxs25("div", { className: "matchid-wallet-asset-logo", title: n.symbol || n.name || "", children: [
|
|
7026
|
-
n.icon ? /* @__PURE__ */
|
|
7034
|
+
n.icon ? /* @__PURE__ */ jsx44("img", { src: n.icon, alt: n.symbol, className: `matchid-wallet-asset-icon` }) : /* @__PURE__ */ jsx44(
|
|
7027
7035
|
AlphaAvatar2,
|
|
7028
7036
|
{
|
|
7029
7037
|
className: `matchid-wallet-asset-icon`,
|
|
@@ -7031,12 +7039,12 @@ function WalletAsset({
|
|
|
7031
7039
|
name: n.symbol || n.name || ""
|
|
7032
7040
|
}
|
|
7033
7041
|
),
|
|
7034
|
-
chain?.iconUrl && /* @__PURE__ */
|
|
7042
|
+
chain?.iconUrl && /* @__PURE__ */ jsx44("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-wallet-asset-chain` })
|
|
7035
7043
|
] }),
|
|
7036
7044
|
/* @__PURE__ */ jsxs25("div", { className: `matchid-wallet-asset-info`, children: [
|
|
7037
|
-
/* @__PURE__ */
|
|
7045
|
+
/* @__PURE__ */ jsx44("div", { className: `matchid-wallet-asset-name`, children: n.symbol }),
|
|
7038
7046
|
"price" in n && /* @__PURE__ */ jsxs25("div", { className: `matchid-wallet-asset-content`, children: [
|
|
7039
|
-
/* @__PURE__ */
|
|
7047
|
+
/* @__PURE__ */ jsx44("div", { className: "matchid-wallet-asset-price", children: /* @__PURE__ */ jsx44(
|
|
7040
7048
|
NumberFormatter,
|
|
7041
7049
|
{
|
|
7042
7050
|
value: n.price,
|
|
@@ -7044,7 +7052,7 @@ function WalletAsset({
|
|
|
7044
7052
|
tFixNum: 2
|
|
7045
7053
|
}
|
|
7046
7054
|
) }),
|
|
7047
|
-
/* @__PURE__ */
|
|
7055
|
+
/* @__PURE__ */ jsx44("div", { className: "matchid-wallet-asset-value", children: /* @__PURE__ */ jsx44(
|
|
7048
7056
|
NumberFormatter,
|
|
7049
7057
|
{
|
|
7050
7058
|
value: n.value,
|
|
@@ -7054,14 +7062,14 @@ function WalletAsset({
|
|
|
7054
7062
|
) })
|
|
7055
7063
|
] }),
|
|
7056
7064
|
/* @__PURE__ */ jsxs25("div", { className: `matchid-wallet-asset-footer`, children: [
|
|
7057
|
-
/* @__PURE__ */
|
|
7065
|
+
/* @__PURE__ */ jsx44("div", { className: `matchid-wallet-asset-balance`, children: /* @__PURE__ */ jsx44(
|
|
7058
7066
|
NumberFormatter,
|
|
7059
7067
|
{
|
|
7060
7068
|
value: n.balance,
|
|
7061
7069
|
tFixNum: 3
|
|
7062
7070
|
}
|
|
7063
7071
|
) }),
|
|
7064
|
-
"price_change_24h" in n && /* @__PURE__ */
|
|
7072
|
+
"price_change_24h" in n && /* @__PURE__ */ jsx44("div", { className: `matchid-wallet-asset-change ${getFooterColor()}`, children: /* @__PURE__ */ jsx44(
|
|
7065
7073
|
NumberFormatter,
|
|
7066
7074
|
{
|
|
7067
7075
|
prefix: `${(n?.price_change_24h || 0) < 0 ? "-" : "+"} `,
|
|
@@ -7080,7 +7088,7 @@ function WalletAsset({
|
|
|
7080
7088
|
import { useEffect as useEffect30, useMemo as useMemo17, useState as useState33 } from "react";
|
|
7081
7089
|
import { defineChain as defineChain4, encodeFunctionData as encodeFunctionData2, erc20Abi as erc20Abi3, http as http8, parseUnits as parseUnits2 } from "viem";
|
|
7082
7090
|
import { FormattedMessage as FormattedMessage12, useIntl as useIntl18 } from "react-intl";
|
|
7083
|
-
import { jsx as
|
|
7091
|
+
import { jsx as jsx45, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
7084
7092
|
function Input2({
|
|
7085
7093
|
onChange,
|
|
7086
7094
|
placeholder,
|
|
@@ -7091,7 +7099,7 @@ function Input2({
|
|
|
7091
7099
|
size = "df"
|
|
7092
7100
|
}) {
|
|
7093
7101
|
return /* @__PURE__ */ jsxs26("div", { className: `matchid-token-input-box ${"matchid-token-input-" + size}`, children: [
|
|
7094
|
-
/* @__PURE__ */
|
|
7102
|
+
/* @__PURE__ */ jsx45(
|
|
7095
7103
|
"input",
|
|
7096
7104
|
{
|
|
7097
7105
|
placeholder,
|
|
@@ -7102,7 +7110,7 @@ function Input2({
|
|
|
7102
7110
|
className: `matchid-token-input ${error ? "matchid-token-input-error" : ""}`
|
|
7103
7111
|
}
|
|
7104
7112
|
),
|
|
7105
|
-
error && /* @__PURE__ */
|
|
7113
|
+
error && /* @__PURE__ */ jsx45("div", { className: "matchid-token-input-error-text", children: error })
|
|
7106
7114
|
] });
|
|
7107
7115
|
}
|
|
7108
7116
|
function TokenSend({
|
|
@@ -7230,24 +7238,24 @@ function TokenSend({
|
|
|
7230
7238
|
window.removeEventListener("message", receiveMessage);
|
|
7231
7239
|
};
|
|
7232
7240
|
}, []);
|
|
7233
|
-
return /* @__PURE__ */
|
|
7241
|
+
return /* @__PURE__ */ jsx45(ModalDrawer, { isOpen: true, onClose, zIndex, title: /* @__PURE__ */ jsx45(FormattedMessage12, { id: "send" }), onBack, children: /* @__PURE__ */ jsxs26("div", { className: `matchid-token-send-box`, children: [
|
|
7234
7242
|
/* @__PURE__ */ jsxs26("div", { className: "matchid-token-send-content", children: [
|
|
7235
7243
|
/* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-content`, children: [
|
|
7236
7244
|
/* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-header`, children: [
|
|
7237
|
-
/* @__PURE__ */
|
|
7245
|
+
/* @__PURE__ */ jsx45("div", { className: `matchid-token-amount-title`, children: /* @__PURE__ */ jsx45(FormattedMessage12, { id: "amount" }) }),
|
|
7238
7246
|
/* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-chain`, children: [
|
|
7239
|
-
token.icon ? /* @__PURE__ */
|
|
7247
|
+
token.icon ? /* @__PURE__ */ jsx45(
|
|
7240
7248
|
"img",
|
|
7241
7249
|
{
|
|
7242
7250
|
src: token?.icon,
|
|
7243
7251
|
alt: token?.symbol,
|
|
7244
7252
|
className: `matchid-token-amount-chain-icon`
|
|
7245
7253
|
}
|
|
7246
|
-
) : /* @__PURE__ */
|
|
7247
|
-
/* @__PURE__ */
|
|
7254
|
+
) : /* @__PURE__ */ jsx45(AlphaAvatar, { name: token.symbol || token.name || "", size: 16 }),
|
|
7255
|
+
/* @__PURE__ */ jsx45("span", { children: token?.symbol })
|
|
7248
7256
|
] })
|
|
7249
7257
|
] }),
|
|
7250
|
-
/* @__PURE__ */
|
|
7258
|
+
/* @__PURE__ */ jsx45(
|
|
7251
7259
|
Input2,
|
|
7252
7260
|
{
|
|
7253
7261
|
type: "text",
|
|
@@ -7262,16 +7270,16 @@ function TokenSend({
|
|
|
7262
7270
|
),
|
|
7263
7271
|
/* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-footer`, children: [
|
|
7264
7272
|
/* @__PURE__ */ jsxs26("div", { className: `matchid-token-amount-title`, children: [
|
|
7265
|
-
/* @__PURE__ */
|
|
7273
|
+
/* @__PURE__ */ jsx45(FormattedMessage12, { id: "balance" }),
|
|
7266
7274
|
":"
|
|
7267
7275
|
] }),
|
|
7268
|
-
/* @__PURE__ */
|
|
7276
|
+
/* @__PURE__ */ jsx45("div", { className: `matchid-token-amount-value`, children: /* @__PURE__ */ jsx45(NumberFormatter, { value: token.balance, tFixNum: 10, suffix: " " + token.symbol }) })
|
|
7269
7277
|
] }),
|
|
7270
|
-
/* @__PURE__ */
|
|
7278
|
+
/* @__PURE__ */ jsx45(TransferIcon, { className: "matchid-token-amount-transfer" })
|
|
7271
7279
|
] }),
|
|
7272
7280
|
/* @__PURE__ */ jsxs26("div", { className: `matchid-token-address-content`, children: [
|
|
7273
|
-
/* @__PURE__ */
|
|
7274
|
-
/* @__PURE__ */
|
|
7281
|
+
/* @__PURE__ */ jsx45("div", { className: `matchid-token-address-header`, children: /* @__PURE__ */ jsx45("div", { className: `matchid-token-address-title`, children: /* @__PURE__ */ jsx45(FormattedMessage12, { id: "receiveTitle" }) }) }),
|
|
7282
|
+
/* @__PURE__ */ jsx45(
|
|
7275
7283
|
Input2,
|
|
7276
7284
|
{
|
|
7277
7285
|
type: "text",
|
|
@@ -7287,7 +7295,7 @@ function TokenSend({
|
|
|
7287
7295
|
)
|
|
7288
7296
|
] })
|
|
7289
7297
|
] }),
|
|
7290
|
-
/* @__PURE__ */
|
|
7298
|
+
/* @__PURE__ */ jsx45(
|
|
7291
7299
|
Button,
|
|
7292
7300
|
{
|
|
7293
7301
|
size: "lg",
|
|
@@ -7296,7 +7304,7 @@ function TokenSend({
|
|
|
7296
7304
|
disabled: !canSend || !!txError,
|
|
7297
7305
|
onClick: onNext,
|
|
7298
7306
|
loading: loading || sending,
|
|
7299
|
-
children: /* @__PURE__ */
|
|
7307
|
+
children: /* @__PURE__ */ jsx45(FormattedMessage12, { id: "next" })
|
|
7300
7308
|
}
|
|
7301
7309
|
)
|
|
7302
7310
|
] }) });
|
|
@@ -7304,7 +7312,7 @@ function TokenSend({
|
|
|
7304
7312
|
|
|
7305
7313
|
// src/components/TokenDetail/index.tsx
|
|
7306
7314
|
import { FormattedMessage as FormattedMessage13, useIntl as useIntl19 } from "react-intl";
|
|
7307
|
-
import { jsx as
|
|
7315
|
+
import { jsx as jsx46, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
7308
7316
|
function TokenDetail({
|
|
7309
7317
|
onClose,
|
|
7310
7318
|
token
|
|
@@ -7314,41 +7322,41 @@ function TokenDetail({
|
|
|
7314
7322
|
const chain = chainList?.find((m) => m.id.toString() === token.chain_id);
|
|
7315
7323
|
const onSend = () => {
|
|
7316
7324
|
modal.show((props) => {
|
|
7317
|
-
return /* @__PURE__ */
|
|
7325
|
+
return /* @__PURE__ */ jsx46(TokenSend, { onClose: () => {
|
|
7318
7326
|
props.close();
|
|
7319
7327
|
onClose();
|
|
7320
7328
|
}, onBack: props.close, zIndex: props.zIndex, token });
|
|
7321
7329
|
});
|
|
7322
7330
|
};
|
|
7323
7331
|
const intl = useIntl19();
|
|
7324
|
-
return /* @__PURE__ */
|
|
7332
|
+
return /* @__PURE__ */ jsx46(ModalDrawer, { isOpen: true, title: intl.formatMessage({
|
|
7325
7333
|
id: "tokenDetails"
|
|
7326
7334
|
}), onClose, children: /* @__PURE__ */ jsxs27("div", { className: `matchid-token-detail`, children: [
|
|
7327
7335
|
/* @__PURE__ */ jsxs27("div", { className: `matchid-token-main`, children: [
|
|
7328
7336
|
/* @__PURE__ */ jsxs27("div", { className: `matchid-token-info`, children: [
|
|
7329
7337
|
/* @__PURE__ */ jsxs27("div", { className: `matchid-token-logo`, children: [
|
|
7330
|
-
token.icon ? /* @__PURE__ */
|
|
7331
|
-
chain?.iconUrl && /* @__PURE__ */
|
|
7338
|
+
token.icon ? /* @__PURE__ */ jsx46("img", { src: token.icon, alt: token.symbol, className: `matchid-token-icon` }) : /* @__PURE__ */ jsx46(AlphaAvatar, { className: `matchid-token-icon`, size: 48, name: token.symbol || token.name || "" }),
|
|
7339
|
+
chain?.iconUrl && /* @__PURE__ */ jsx46("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-token-chain` })
|
|
7332
7340
|
] }),
|
|
7333
7341
|
/* @__PURE__ */ jsxs27("div", { className: `matchid-token-name`, children: [
|
|
7334
|
-
/* @__PURE__ */
|
|
7342
|
+
/* @__PURE__ */ jsx46(NumberFormatter, { value: token.balance, tFixNum: 10 }),
|
|
7335
7343
|
" ",
|
|
7336
7344
|
token.symbol
|
|
7337
7345
|
] })
|
|
7338
7346
|
] }),
|
|
7339
7347
|
token.address.toLowerCase() != NATIVE_TOKEN_ADDRESS && /* @__PURE__ */ jsxs27("div", { className: `matchid-token-contract`, children: [
|
|
7340
|
-
/* @__PURE__ */
|
|
7341
|
-
/* @__PURE__ */
|
|
7348
|
+
/* @__PURE__ */ jsx46("div", { className: "matchid-token-contract-title", children: "Contract address" }),
|
|
7349
|
+
/* @__PURE__ */ jsx46("div", { className: "matchid-token-contract-address", children: token.address })
|
|
7342
7350
|
] })
|
|
7343
7351
|
] }),
|
|
7344
|
-
/* @__PURE__ */
|
|
7352
|
+
/* @__PURE__ */ jsx46(Button, { size: "lg", block: true, highlight: true, onClick: onSend, children: /* @__PURE__ */ jsx46(FormattedMessage13, { id: "send" }) })
|
|
7345
7353
|
] }) });
|
|
7346
7354
|
}
|
|
7347
7355
|
|
|
7348
7356
|
// src/components/TokenSendList/index.tsx
|
|
7349
7357
|
import { useState as useState34 } from "react";
|
|
7350
7358
|
import { FormattedMessage as FormattedMessage14 } from "react-intl";
|
|
7351
|
-
import { jsx as
|
|
7359
|
+
import { jsx as jsx47, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
7352
7360
|
function TokenSendList({ close }) {
|
|
7353
7361
|
const isDownMd = useDownMd();
|
|
7354
7362
|
const walletAssets = useMatchWalletAssets();
|
|
@@ -7360,14 +7368,14 @@ function TokenSendList({ close }) {
|
|
|
7360
7368
|
const modal = useModal();
|
|
7361
7369
|
const onNext = () => {
|
|
7362
7370
|
checked && modal.show((props) => {
|
|
7363
|
-
return /* @__PURE__ */
|
|
7371
|
+
return /* @__PURE__ */ jsx47(TokenSend, { onClose: () => {
|
|
7364
7372
|
props.close();
|
|
7365
7373
|
close();
|
|
7366
7374
|
}, onBack: props.close, zIndex: props.zIndex, token: checked });
|
|
7367
7375
|
});
|
|
7368
7376
|
};
|
|
7369
7377
|
return /* @__PURE__ */ jsxs28("div", { className: "matchid-token-send-list-box", children: [
|
|
7370
|
-
/* @__PURE__ */
|
|
7378
|
+
/* @__PURE__ */ jsx47("div", { className: "matchid-token-send-list", children: matchWalletAssetList.list.map((n, index) => {
|
|
7371
7379
|
const chain = list?.find((m) => m.id.toString() === n.chain_id);
|
|
7372
7380
|
return /* @__PURE__ */ jsxs28(
|
|
7373
7381
|
"div",
|
|
@@ -7377,10 +7385,10 @@ function TokenSendList({ close }) {
|
|
|
7377
7385
|
setChecked(n);
|
|
7378
7386
|
},
|
|
7379
7387
|
children: [
|
|
7380
|
-
/* @__PURE__ */
|
|
7388
|
+
/* @__PURE__ */ jsx47(Radio, { checked: checked?.address == n.address, size: isDownMd ? 18 : 24 }),
|
|
7381
7389
|
/* @__PURE__ */ jsxs28("div", { className: "matchid-token-send-content", children: [
|
|
7382
7390
|
/* @__PURE__ */ jsxs28("div", { className: "matchid-token-send-logo", children: [
|
|
7383
|
-
n.icon ? /* @__PURE__ */
|
|
7391
|
+
n.icon ? /* @__PURE__ */ jsx47("img", { src: n.icon, alt: n.symbol, className: `matchid-token-send-icon` }) : /* @__PURE__ */ jsx47(
|
|
7384
7392
|
AlphaAvatar2,
|
|
7385
7393
|
{
|
|
7386
7394
|
className: `matchid-token-send-icon`,
|
|
@@ -7388,7 +7396,7 @@ function TokenSendList({ close }) {
|
|
|
7388
7396
|
name: n.symbol || n.name || ""
|
|
7389
7397
|
}
|
|
7390
7398
|
),
|
|
7391
|
-
chain?.iconUrl && /* @__PURE__ */
|
|
7399
|
+
chain?.iconUrl && /* @__PURE__ */ jsx47(
|
|
7392
7400
|
"img",
|
|
7393
7401
|
{
|
|
7394
7402
|
src: chain.iconUrl,
|
|
@@ -7398,8 +7406,8 @@ function TokenSendList({ close }) {
|
|
|
7398
7406
|
)
|
|
7399
7407
|
] }),
|
|
7400
7408
|
/* @__PURE__ */ jsxs28("div", { className: `matchid-token-send-info`, children: [
|
|
7401
|
-
/* @__PURE__ */
|
|
7402
|
-
/* @__PURE__ */
|
|
7409
|
+
/* @__PURE__ */ jsx47("div", { className: `matchid-token-send-name`, children: n.symbol }),
|
|
7410
|
+
/* @__PURE__ */ jsx47("div", { className: `matchid-token-send-balance`, children: /* @__PURE__ */ jsx47(NumberFormatter, { value: n.balance, tFixNum: 3 }) })
|
|
7403
7411
|
] })
|
|
7404
7412
|
] })
|
|
7405
7413
|
]
|
|
@@ -7407,7 +7415,7 @@ function TokenSendList({ close }) {
|
|
|
7407
7415
|
index
|
|
7408
7416
|
);
|
|
7409
7417
|
}) }),
|
|
7410
|
-
/* @__PURE__ */
|
|
7418
|
+
/* @__PURE__ */ jsx47(Button, { size: "lg", highlight: true, block: true, disabled: !checked, onClick: onNext, children: /* @__PURE__ */ jsx47(FormattedMessage14, { id: "next" }) })
|
|
7411
7419
|
] });
|
|
7412
7420
|
}
|
|
7413
7421
|
|
|
@@ -7417,7 +7425,7 @@ import { useEffect as useEffect31, useMemo as useMemo18, useState as useState35
|
|
|
7417
7425
|
import { decodeFunctionData, defineChain as defineChain5, formatUnits as formatUnits3 } from "viem";
|
|
7418
7426
|
import { erc20Abi as erc20Abi4 } from "viem";
|
|
7419
7427
|
import { FormattedMessage as FormattedMessage15 } from "react-intl";
|
|
7420
|
-
import { jsx as
|
|
7428
|
+
import { jsx as jsx48, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
7421
7429
|
var Item = ({ data }) => {
|
|
7422
7430
|
const { address } = useWallet();
|
|
7423
7431
|
const isOut = data.from.toLowerCase() == address.toLowerCase();
|
|
@@ -7512,10 +7520,10 @@ var Item = ({ data }) => {
|
|
|
7512
7520
|
className: `matchid-transaction-item`,
|
|
7513
7521
|
children: [
|
|
7514
7522
|
/* @__PURE__ */ jsxs29("div", { className: `matchid-transacton-item-container`, children: [
|
|
7515
|
-
/* @__PURE__ */
|
|
7523
|
+
/* @__PURE__ */ jsx48("div", { className: "matchid-transaction-item-icon", children: /* @__PURE__ */ jsx48(ArrowSendIcon, { className: !isOut ? "rotate-180" : "" }) }),
|
|
7516
7524
|
/* @__PURE__ */ jsxs29("div", { className: `matchid-transaction-item-details`, children: [
|
|
7517
|
-
/* @__PURE__ */
|
|
7518
|
-
/* @__PURE__ */
|
|
7525
|
+
/* @__PURE__ */ jsx48("div", { className: `matchid-transaction-item-address`, children: formatAddress(to, 6, 4) }),
|
|
7526
|
+
/* @__PURE__ */ jsx48(
|
|
7519
7527
|
"div",
|
|
7520
7528
|
{
|
|
7521
7529
|
className: `matchid-transaction-item-timestamp`,
|
|
@@ -7525,10 +7533,10 @@ var Item = ({ data }) => {
|
|
|
7525
7533
|
] })
|
|
7526
7534
|
] }),
|
|
7527
7535
|
/* @__PURE__ */ jsxs29("div", { className: `matchid-transaction-item-amount ${"matchid-transaction-item-" + status}`, children: [
|
|
7528
|
-
/* @__PURE__ */
|
|
7529
|
-
status == "loading" && /* @__PURE__ */
|
|
7530
|
-
status == "success" && /* @__PURE__ */
|
|
7531
|
-
status == "error" && /* @__PURE__ */
|
|
7536
|
+
/* @__PURE__ */ jsx48(NumberFormatter, { value: amount, tFixNum: 6, prefix: isOut ? "-" : "+", suffix: " " + symbol }),
|
|
7537
|
+
status == "loading" && /* @__PURE__ */ jsx48(LoadingIcon_default, { color: "#000000", size: 16, rotate: true }),
|
|
7538
|
+
status == "success" && /* @__PURE__ */ jsx48(CheckRoundIcon, { size: 16 }),
|
|
7539
|
+
status == "error" && /* @__PURE__ */ jsx48(InfoRoundIcon, { size: 16 })
|
|
7532
7540
|
] })
|
|
7533
7541
|
]
|
|
7534
7542
|
}
|
|
@@ -7538,7 +7546,7 @@ function TransactionList({
|
|
|
7538
7546
|
scrollableTarget
|
|
7539
7547
|
}) {
|
|
7540
7548
|
const { fetchMoreData, hasMore, items } = useMatchWalletRecords();
|
|
7541
|
-
return /* @__PURE__ */
|
|
7549
|
+
return /* @__PURE__ */ jsx48(
|
|
7542
7550
|
InfiniteScroll,
|
|
7543
7551
|
{
|
|
7544
7552
|
scrollableTarget,
|
|
@@ -7546,11 +7554,11 @@ function TransactionList({
|
|
|
7546
7554
|
next: fetchMoreData,
|
|
7547
7555
|
hasMore,
|
|
7548
7556
|
loader: /* @__PURE__ */ jsxs29("div", { className: "matchid-list-nomore", children: [
|
|
7549
|
-
/* @__PURE__ */
|
|
7557
|
+
/* @__PURE__ */ jsx48(LoadingIcon_default, { rotate: true, size: 16, color: "black" }),
|
|
7550
7558
|
"Loading..."
|
|
7551
7559
|
] }),
|
|
7552
|
-
endMessage: items.length > 0 ? /* @__PURE__ */
|
|
7553
|
-
children: items.length == 0 && !hasMore ? /* @__PURE__ */
|
|
7560
|
+
endMessage: items.length > 0 ? /* @__PURE__ */ jsx48("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ jsx48(FormattedMessage15, { id: "noMoreRecords" }) }) : /* @__PURE__ */ jsx48("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ jsx48(FormattedMessage15, { id: "noRecords" }) }),
|
|
7561
|
+
children: items.length == 0 && !hasMore ? /* @__PURE__ */ jsx48("div", { className: "mt-[150px]" }) : /* @__PURE__ */ jsx48("div", { className: `matchid-transaction-list`, children: items.map((item, index) => /* @__PURE__ */ jsx48(Item, { data: item }, index)) })
|
|
7554
7562
|
}
|
|
7555
7563
|
);
|
|
7556
7564
|
}
|
|
@@ -7604,6 +7612,7 @@ export {
|
|
|
7604
7612
|
Skeleton_default,
|
|
7605
7613
|
Tabs,
|
|
7606
7614
|
Lottie_default,
|
|
7615
|
+
Checkbox,
|
|
7607
7616
|
ui_exports,
|
|
7608
7617
|
ModalProvider,
|
|
7609
7618
|
useModal,
|
|
@@ -7624,4 +7633,4 @@ export {
|
|
|
7624
7633
|
MatchProvider,
|
|
7625
7634
|
useMatch
|
|
7626
7635
|
};
|
|
7627
|
-
//# sourceMappingURL=chunk-
|
|
7636
|
+
//# sourceMappingURL=chunk-2HVTQUPR.mjs.map
|