@matchain/matchid-sdk-react 0.1.53-alpha.2 → 0.1.53-alpha.3
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/assets/icon/index.d.mts +4 -2
- package/dist/assets/icon/index.d.ts +4 -2
- package/dist/assets/icon/index.js +19 -0
- package/dist/assets/icon/index.js.map +1 -1
- package/dist/assets/icon/index.mjs +3 -1
- package/dist/{chunk-LHNKZISB.mjs → chunk-3USZ4ZZY.mjs} +20 -2
- package/dist/chunk-3USZ4ZZY.mjs.map +1 -0
- package/dist/{chunk-W5A6WY7Y.mjs → chunk-3YF3P77J.mjs} +46 -8
- package/dist/chunk-3YF3P77J.mjs.map +1 -0
- package/dist/{chunk-4A2YPGO3.mjs → chunk-4EVF2PXX.mjs} +2 -2
- package/dist/{chunk-MX7N57AH.mjs → chunk-OCQ2AIM3.mjs} +7 -2
- package/dist/{chunk-MX7N57AH.mjs.map → chunk-OCQ2AIM3.mjs.map} +1 -1
- package/dist/{chunk-FB5MHLWX.mjs → chunk-V2S54LGG.mjs} +2 -2
- package/dist/components/index.d.mts +3 -3
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +403 -346
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +5 -5
- package/dist/hooks/api/index.d.mts +2 -2
- package/dist/hooks/api/index.d.ts +2 -2
- package/dist/hooks/api/index.js +47 -44
- package/dist/hooks/api/index.js.map +1 -1
- package/dist/hooks/api/index.mjs +5 -5
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +175 -172
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +5 -5
- package/dist/{index-K5vXmiRX.d.ts → index-BKHtf1Tu.d.ts} +1 -1
- package/dist/{index-DNJuiNdz.d.mts → index-BSUoL5Jo.d.mts} +2 -2
- package/dist/{index-Df-WlkXq.d.ts → index-BVO4Bt59.d.ts} +2 -2
- package/dist/{index-IwwXQ_QV.d.ts → index-CcN5ls1U.d.ts} +1 -1
- package/dist/{index-BsL6zo6a.d.ts → index-Cul4qlZl.d.ts} +1 -1
- package/dist/{index-yy3VTdFU.d.mts → index-CvVl_Xw1.d.mts} +2 -2
- package/dist/{index-BCGJczpk.d.mts → index-DXRsJY9h.d.mts} +1 -1
- package/dist/{index-Bil_db2f.d.mts → index-DgwlV4ve.d.ts} +1 -1
- package/dist/{index-iWHaT8HV.d.mts → index-DrEKzXYX.d.mts} +1 -1
- package/dist/{index-BS-NO8Y2.d.ts → index-EPwrSSOz.d.mts} +1 -1
- package/dist/{index-CZqdmQu1.d.mts → index-ba3VTkaV.d.mts} +1 -1
- package/dist/{index-B8cUP7cH.d.ts → index-lKJjj0w4.d.ts} +2 -2
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +442 -385
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -12
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{types-CZbR7ERa.d.mts → types-Bgd3Ac92.d.mts} +1 -1
- package/dist/{types-CZbR7ERa.d.ts → types-Bgd3Ac92.d.ts} +1 -1
- package/dist/ui/index.d.mts +3 -3
- package/dist/ui/index.d.ts +3 -3
- package/dist/ui/index.js +62 -59
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +2 -2
- package/dist/utils/index.d.mts +2 -1
- package/dist/utils/index.d.ts +2 -1
- package/dist/utils/index.js +6 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +3 -1
- package/example/dist/assets/ccip-nxE3Zma4.js +1 -0
- package/example/dist/assets/index-BFAv3rdU.css +1 -0
- package/example/dist/assets/index-DMWWRDPI.js +1658 -0
- package/example/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/chunk-LHNKZISB.mjs.map +0 -1
- package/dist/chunk-W5A6WY7Y.mjs.map +0 -1
- package/example/dist/assets/TransportWebHID-BEu7tC0r.js +0 -1
- package/example/dist/assets/bignumber-iG7K-qxw.js +0 -10
- package/example/dist/assets/ccip-a6wQ1Vcb.js +0 -1
- package/example/dist/assets/draggabilly-CRYR_S0q.js +0 -14
- package/example/dist/assets/index--dp9m9Ep.js +0 -1
- package/example/dist/assets/index-BDTHolFv.js +0 -569
- package/example/dist/assets/index-BZl59qLb.js +0 -179
- package/example/dist/assets/index-BmMbYNHO.js +0 -303
- package/example/dist/assets/index-C7cxVRDF.js +0 -1677
- package/example/dist/assets/index-CJk171Yb.js +0 -1
- package/example/dist/assets/index-CQiBesAa.js +0 -3
- package/example/dist/assets/index-D62loNA9.js +0 -3
- package/example/dist/assets/index-DqyX3FG6.js +0 -1
- package/example/dist/assets/index-Gy3FXGhr.css +0 -1
- package/example/dist/assets/inherits_browser-BlmhoU4v.js +0 -1
- package/example/dist/assets/solanaEmbed.esm-Djn-u4Vn.js +0 -38
- /package/dist/{chunk-4A2YPGO3.mjs.map → chunk-4EVF2PXX.mjs.map} +0 -0
- /package/dist/{chunk-FB5MHLWX.mjs.map → chunk-V2S54LGG.mjs.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -675,6 +675,10 @@ var formatDate = (value, formatString = "YYYY-MM-DD HH:mm:ss") => {
|
|
|
675
675
|
var isInTgApp = () => {
|
|
676
676
|
return !!window.TelegramWebviewProxy;
|
|
677
677
|
};
|
|
678
|
+
function bytesToBase64(bytes) {
|
|
679
|
+
const binString = String.fromCodePoint(...bytes);
|
|
680
|
+
return btoa(binString);
|
|
681
|
+
}
|
|
678
682
|
|
|
679
683
|
// src/store/useModalStore.ts
|
|
680
684
|
var import_zustand2 = require("zustand");
|
|
@@ -1826,6 +1830,23 @@ function ArrowSendIcon({
|
|
|
1826
1830
|
) });
|
|
1827
1831
|
}
|
|
1828
1832
|
|
|
1833
|
+
// src/assets/icon/PhantomIcon.tsx
|
|
1834
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
1835
|
+
function PhantomIcon({
|
|
1836
|
+
size = 128,
|
|
1837
|
+
...props
|
|
1838
|
+
}) {
|
|
1839
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("svg", { width: size, height: size, ...props, viewBox: "0 0 128 128", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
1840
|
+
"path",
|
|
1841
|
+
{
|
|
1842
|
+
fill: "#ab9ff2",
|
|
1843
|
+
d: "m53.520552,86.603299c-5.9423,9.106 -15.8999,20.63 -29.1497,20.63c-6.2636,0 -12.2864,-2.578 -12.2866,-13.779c-0.0005,-28.5271 38.946,-72.687 75.0825,-72.6876c20.557,-0.0004 28.749,14.2625 28.749,30.4597c0,20.7903 -13.491,44.5629 -26.901,44.5629c-4.256,0 -6.344,-2.337 -6.344,-6.043c0,-0.967 0.16,-2.015 0.482,-3.143c-4.578,7.816 -13.411,15.07 -21.6822,15.07c-6.0227,0 -9.074,-3.788 -9.0741,-9.107c0,-1.934 0.4015,-3.948 1.1241,-5.963zm26.8222,-43.9027c-3.271,0.0058 -5.501,2.7849 -5.494,6.7495c0.007,3.9646 2.247,6.8152 5.518,6.8095c3.192,-0.0057 5.421,-2.8641 5.414,-6.8288c-0.007,-3.9646 -2.246,-6.7358 -5.438,-6.7302zm17.351,-0.0189c-3.271,0.0058 -5.501,2.7849 -5.494,6.7495c0.007,3.9646 2.246,6.8152 5.518,6.8095c3.192,-0.0056 5.421,-2.8641 5.414,-6.8288c-0.007,-3.9646 -2.246,-6.7358 -5.438,-6.7302z",
|
|
1844
|
+
clipRule: "evenodd",
|
|
1845
|
+
fillRule: "evenodd"
|
|
1846
|
+
}
|
|
1847
|
+
) });
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1829
1850
|
// src/hooks/useLayout.tsx
|
|
1830
1851
|
var useLayout_exports = {};
|
|
1831
1852
|
__export(useLayout_exports, {
|
|
@@ -1847,39 +1868,39 @@ function useDownMd() {
|
|
|
1847
1868
|
}
|
|
1848
1869
|
|
|
1849
1870
|
// src/hooks/useConfig.tsx
|
|
1850
|
-
var
|
|
1871
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
1851
1872
|
var DEFAULT_WALLET_METHODS = ["evm", "sol", "btc", "tron", "ton"];
|
|
1852
1873
|
var WALLET_METHODS = ["evm", "sol", "btc", "tron", "ton"];
|
|
1853
1874
|
function useWalletConfig() {
|
|
1854
1875
|
const isDownMd = useDownMd();
|
|
1855
1876
|
const walletMap = {
|
|
1856
1877
|
evm: {
|
|
1857
|
-
icon: /* @__PURE__ */ (0,
|
|
1858
|
-
activeIcon: /* @__PURE__ */ (0,
|
|
1878
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(EVMDarkIcon, { size: isDownMd ? 36 : 40 }),
|
|
1879
|
+
activeIcon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(EVMLightIcon, { size: isDownMd ? 36 : 40 }),
|
|
1859
1880
|
name: "EVM",
|
|
1860
1881
|
method: "evm"
|
|
1861
1882
|
},
|
|
1862
1883
|
sol: {
|
|
1863
|
-
icon: /* @__PURE__ */ (0,
|
|
1864
|
-
activeIcon: /* @__PURE__ */ (0,
|
|
1884
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SOLDarkIcon, { size: isDownMd ? 36 : 40 }),
|
|
1885
|
+
activeIcon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(SOLLightIcon, { size: isDownMd ? 36 : 40 }),
|
|
1865
1886
|
name: "SOL",
|
|
1866
1887
|
method: "sol"
|
|
1867
1888
|
},
|
|
1868
1889
|
btc: {
|
|
1869
|
-
icon: /* @__PURE__ */ (0,
|
|
1870
|
-
activeIcon: /* @__PURE__ */ (0,
|
|
1890
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(BTCDarkIcon, { size: isDownMd ? 36 : 40 }),
|
|
1891
|
+
activeIcon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(BTCLightIcon, { size: isDownMd ? 36 : 40 }),
|
|
1871
1892
|
name: "BTC",
|
|
1872
1893
|
method: "btc"
|
|
1873
1894
|
},
|
|
1874
1895
|
tron: {
|
|
1875
|
-
icon: /* @__PURE__ */ (0,
|
|
1876
|
-
activeIcon: /* @__PURE__ */ (0,
|
|
1896
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TRXDarkIcon, { size: isDownMd ? 36 : 40 }),
|
|
1897
|
+
activeIcon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TRXLightIcon, { size: isDownMd ? 36 : 40 }),
|
|
1877
1898
|
name: "TRON",
|
|
1878
1899
|
method: "tron"
|
|
1879
1900
|
},
|
|
1880
1901
|
ton: {
|
|
1881
|
-
icon: /* @__PURE__ */ (0,
|
|
1882
|
-
activeIcon: /* @__PURE__ */ (0,
|
|
1902
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TonLightIcon, { size: isDownMd ? 36 : 40 }),
|
|
1903
|
+
activeIcon: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(TonLightIcon2, { size: isDownMd ? 36 : 40 }),
|
|
1883
1904
|
name: "TON",
|
|
1884
1905
|
method: "ton"
|
|
1885
1906
|
}
|
|
@@ -2285,7 +2306,7 @@ __export(ui_exports, {
|
|
|
2285
2306
|
});
|
|
2286
2307
|
|
|
2287
2308
|
// src/ui/Button/index.tsx
|
|
2288
|
-
var
|
|
2309
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
2289
2310
|
function Button({
|
|
2290
2311
|
size = "df",
|
|
2291
2312
|
disabled = false,
|
|
@@ -2304,7 +2325,7 @@ function Button({
|
|
|
2304
2325
|
onClick && onClick();
|
|
2305
2326
|
}
|
|
2306
2327
|
};
|
|
2307
|
-
return /* @__PURE__ */ (0,
|
|
2328
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
2308
2329
|
"button",
|
|
2309
2330
|
{
|
|
2310
2331
|
type,
|
|
@@ -2314,14 +2335,14 @@ function Button({
|
|
|
2314
2335
|
...style
|
|
2315
2336
|
},
|
|
2316
2337
|
onClick: onAction,
|
|
2317
|
-
children: loading ? /* @__PURE__ */ (0,
|
|
2338
|
+
children: loading ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(LoadingIcon_default, { className: "matchid-btn-loading-icon", color: "var(--matchid-btn-loading-color)" }) : children
|
|
2318
2339
|
}
|
|
2319
2340
|
);
|
|
2320
2341
|
}
|
|
2321
2342
|
|
|
2322
2343
|
// src/ui/Overlay/index.tsx
|
|
2323
2344
|
var import_react4 = require("react");
|
|
2324
|
-
var
|
|
2345
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
2325
2346
|
function Overlay({
|
|
2326
2347
|
isOpen = false,
|
|
2327
2348
|
children,
|
|
@@ -2337,7 +2358,7 @@ function Overlay({
|
|
|
2337
2358
|
document.body.style.overflow = "";
|
|
2338
2359
|
};
|
|
2339
2360
|
}, [isOpen]);
|
|
2340
|
-
return isOpen ? /* @__PURE__ */ (0,
|
|
2361
|
+
return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
2341
2362
|
"div",
|
|
2342
2363
|
{
|
|
2343
2364
|
className: "matchid-overlay",
|
|
@@ -2346,11 +2367,11 @@ function Overlay({
|
|
|
2346
2367
|
},
|
|
2347
2368
|
children
|
|
2348
2369
|
}
|
|
2349
|
-
) : /* @__PURE__ */ (0,
|
|
2370
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_jsx_runtime53.Fragment, {});
|
|
2350
2371
|
}
|
|
2351
2372
|
|
|
2352
2373
|
// src/ui/Drawer/index.tsx
|
|
2353
|
-
var
|
|
2374
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
2354
2375
|
function Drawer({
|
|
2355
2376
|
children,
|
|
2356
2377
|
showClose = true,
|
|
@@ -2361,22 +2382,22 @@ function Drawer({
|
|
|
2361
2382
|
onBack
|
|
2362
2383
|
}) {
|
|
2363
2384
|
if (!isOpen) {
|
|
2364
|
-
return /* @__PURE__ */ (0,
|
|
2385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_jsx_runtime54.Fragment, {});
|
|
2365
2386
|
}
|
|
2366
|
-
return /* @__PURE__ */ (0,
|
|
2367
|
-
/* @__PURE__ */ (0,
|
|
2368
|
-
/* @__PURE__ */ (0,
|
|
2369
|
-
onBack && /* @__PURE__ */ (0,
|
|
2387
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "matchid-drawer", children: [
|
|
2388
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: `matchid-drawer-header matchid-flex`, children: [
|
|
2389
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: `matchid-drawer-header-content matchid-flex`, children: [
|
|
2390
|
+
onBack && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(ArrowLeftIcon, { height: 25, width: 24, className: "matchid-drawer-header-back", onClick: onBack }),
|
|
2370
2391
|
title
|
|
2371
2392
|
] }),
|
|
2372
|
-
showClose && /* @__PURE__ */ (0,
|
|
2393
|
+
showClose && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(CloseRoundIcon, { className: "matchid-drawer-header-close", onClick: onClose })
|
|
2373
2394
|
] }),
|
|
2374
2395
|
children
|
|
2375
2396
|
] }) });
|
|
2376
2397
|
}
|
|
2377
2398
|
|
|
2378
2399
|
// src/ui/Field/index.tsx
|
|
2379
|
-
var
|
|
2400
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
2380
2401
|
function Field({
|
|
2381
2402
|
label,
|
|
2382
2403
|
children,
|
|
@@ -2384,13 +2405,13 @@ function Field({
|
|
|
2384
2405
|
required,
|
|
2385
2406
|
className = ""
|
|
2386
2407
|
}) {
|
|
2387
|
-
return /* @__PURE__ */ (0,
|
|
2388
|
-
/* @__PURE__ */ (0,
|
|
2389
|
-
required && /* @__PURE__ */ (0,
|
|
2408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: `matchid-field-box ${className}`, children: [
|
|
2409
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "matchid-field-label", children: [
|
|
2410
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "matchid-field-required", children: "*" }),
|
|
2390
2411
|
label
|
|
2391
2412
|
] }),
|
|
2392
2413
|
children,
|
|
2393
|
-
error && /* @__PURE__ */ (0,
|
|
2414
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "matchid-field-error", children: error })
|
|
2394
2415
|
] });
|
|
2395
2416
|
}
|
|
2396
2417
|
|
|
@@ -2398,7 +2419,7 @@ function Field({
|
|
|
2398
2419
|
var import_react5 = require("react");
|
|
2399
2420
|
|
|
2400
2421
|
// src/ui/Modal/index.tsx
|
|
2401
|
-
var
|
|
2422
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
2402
2423
|
function Modal({
|
|
2403
2424
|
children,
|
|
2404
2425
|
isOpen,
|
|
@@ -2406,10 +2427,10 @@ function Modal({
|
|
|
2406
2427
|
zIndex = 100,
|
|
2407
2428
|
className = ""
|
|
2408
2429
|
}) {
|
|
2409
|
-
return /* @__PURE__ */ (0,
|
|
2430
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Overlay, { isOpen, zIndex, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: `matchid-modal ${className}`, style: {
|
|
2410
2431
|
width
|
|
2411
2432
|
}, children: [
|
|
2412
|
-
/* @__PURE__ */ (0,
|
|
2433
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "matchid-modal-mobile-header" }),
|
|
2413
2434
|
children
|
|
2414
2435
|
] }) });
|
|
2415
2436
|
}
|
|
@@ -2423,20 +2444,20 @@ function ModalWithHeader({
|
|
|
2423
2444
|
...props
|
|
2424
2445
|
}) {
|
|
2425
2446
|
const isDownMd = useDownMd();
|
|
2426
|
-
return /* @__PURE__ */ (0,
|
|
2427
|
-
/* @__PURE__ */ (0,
|
|
2428
|
-
/* @__PURE__ */ (0,
|
|
2429
|
-
onBack && /* @__PURE__ */ (0,
|
|
2430
|
-
/* @__PURE__ */ (0,
|
|
2447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Modal, { ...props, children: [
|
|
2448
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: `matchid-modal-header ${showBorder ? "matchid-modal-header-border" : ""}`, children: [
|
|
2449
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "matchid-modal-header-content", children: [
|
|
2450
|
+
onBack && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ArrowLeftIcon, { height: isDownMd ? 20 : 25, width: isDownMd ? 20 : 24, className: "matchid-modal-header-back", onClick: onBack }),
|
|
2451
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "matchid-modal-header-title", children: title })
|
|
2431
2452
|
] }),
|
|
2432
|
-
onClose && /* @__PURE__ */ (0,
|
|
2453
|
+
onClose && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30, className: "matchid-modal-header-close", onClick: onClose })
|
|
2433
2454
|
] }),
|
|
2434
2455
|
children
|
|
2435
2456
|
] });
|
|
2436
2457
|
}
|
|
2437
2458
|
|
|
2438
2459
|
// src/ui/ModalDrawer/index.tsx
|
|
2439
|
-
var
|
|
2460
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
2440
2461
|
function ModalDrawer({
|
|
2441
2462
|
title,
|
|
2442
2463
|
drawerTitleVisible = true,
|
|
@@ -2444,9 +2465,9 @@ function ModalDrawer({
|
|
|
2444
2465
|
}) {
|
|
2445
2466
|
const isDownMd = useDownMd();
|
|
2446
2467
|
if (isDownMd) {
|
|
2447
|
-
return /* @__PURE__ */ (0,
|
|
2468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ModalWithHeader, { ...props, title });
|
|
2448
2469
|
}
|
|
2449
|
-
return /* @__PURE__ */ (0,
|
|
2470
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Drawer, { ...props, title: drawerTitleVisible ? title : null });
|
|
2450
2471
|
}
|
|
2451
2472
|
|
|
2452
2473
|
// src/assets/img/confirm.gif
|
|
@@ -2502,7 +2523,7 @@ function useHash({
|
|
|
2502
2523
|
}
|
|
2503
2524
|
|
|
2504
2525
|
// src/ui/HashPanel/index.tsx
|
|
2505
|
-
var
|
|
2526
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
2506
2527
|
function HashPanel({
|
|
2507
2528
|
hash,
|
|
2508
2529
|
chain,
|
|
@@ -2561,14 +2582,14 @@ function HashPanel({
|
|
|
2561
2582
|
}
|
|
2562
2583
|
}, [hashQuery.data]);
|
|
2563
2584
|
const link = chain ? `${chain?.blockExplorers?.default.url}/tx/${hash}` : "";
|
|
2564
|
-
return /* @__PURE__ */ (0,
|
|
2585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
2565
2586
|
ModalDrawer,
|
|
2566
2587
|
{
|
|
2567
2588
|
isOpen,
|
|
2568
2589
|
showClose: true,
|
|
2569
2590
|
onClose,
|
|
2570
2591
|
zIndex,
|
|
2571
|
-
title: /* @__PURE__ */ (0,
|
|
2592
|
+
title: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
2572
2593
|
"div",
|
|
2573
2594
|
{
|
|
2574
2595
|
className: "matchid-hashpanel-header",
|
|
@@ -2578,29 +2599,29 @@ function HashPanel({
|
|
|
2578
2599
|
children: statusValue.text
|
|
2579
2600
|
}
|
|
2580
2601
|
),
|
|
2581
|
-
children: /* @__PURE__ */ (0,
|
|
2582
|
-
/* @__PURE__ */ (0,
|
|
2583
|
-
/* @__PURE__ */ (0,
|
|
2602
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "matchid-hashpanel-box", children: [
|
|
2603
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "matchid-hashpanel-content", children: [
|
|
2604
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: `matchid-hashpanel-status`, style: {
|
|
2584
2605
|
color: statusValue.color
|
|
2585
2606
|
}, children: statusValue.text }),
|
|
2586
|
-
/* @__PURE__ */ (0,
|
|
2587
|
-
hash && /* @__PURE__ */ (0,
|
|
2607
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("img", { src: statusValue.icon, alt: statusValue.text, className: `matchid-hashpanel-img` }),
|
|
2608
|
+
hash && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "matchid-hashpanel-hash", children: [
|
|
2588
2609
|
"Hash:",
|
|
2589
|
-
/* @__PURE__ */ (0,
|
|
2610
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("a", { href: link, target: "_blank", children: hash })
|
|
2590
2611
|
] })
|
|
2591
2612
|
] }),
|
|
2592
|
-
/* @__PURE__ */ (0,
|
|
2613
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Button, { onClick: onClose, size: "lg", block: true, children: "Back" })
|
|
2593
2614
|
] })
|
|
2594
2615
|
}
|
|
2595
2616
|
);
|
|
2596
2617
|
}
|
|
2597
2618
|
function HashPanel_default(props) {
|
|
2598
|
-
return props.isOpen && /* @__PURE__ */ (0,
|
|
2619
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(HashPanel, { ...props });
|
|
2599
2620
|
}
|
|
2600
2621
|
|
|
2601
2622
|
// src/ui/Input/index.tsx
|
|
2602
2623
|
var import_react6 = require("react");
|
|
2603
|
-
var
|
|
2624
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
2604
2625
|
function Input({
|
|
2605
2626
|
onChange,
|
|
2606
2627
|
type,
|
|
@@ -2610,17 +2631,17 @@ function Input({
|
|
|
2610
2631
|
}) {
|
|
2611
2632
|
const [inputType, setInputType] = (0, import_react6.useState)(type);
|
|
2612
2633
|
const isDownMd = useDownMd();
|
|
2613
|
-
return /* @__PURE__ */ (0,
|
|
2634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
2614
2635
|
"div",
|
|
2615
2636
|
{
|
|
2616
2637
|
className: `matchid-input-box ${props.value && props.value.length > 0 ? "matchid-input-has-content" : ""} ${className}`,
|
|
2617
2638
|
children: [
|
|
2618
|
-
/* @__PURE__ */ (0,
|
|
2619
|
-
props.value && props.value.length > 0 && /* @__PURE__ */ (0,
|
|
2639
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("input", { type: inputType, onChange, ...props, className: "matchid-input-field" }),
|
|
2640
|
+
props.value && props.value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "matchid-input-delete-icon", onClick: (e) => {
|
|
2620
2641
|
if (onChange) {
|
|
2621
2642
|
onChange({ target: { value: "" } });
|
|
2622
2643
|
}
|
|
2623
|
-
}, children: /* @__PURE__ */ (0,
|
|
2644
|
+
}, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
2624
2645
|
DeleteRoundIcon,
|
|
2625
2646
|
{
|
|
2626
2647
|
height: isDownMd ? 16 : 21,
|
|
@@ -2628,9 +2649,9 @@ function Input({
|
|
|
2628
2649
|
color: "var(--matchid-input-delete-icon-color)"
|
|
2629
2650
|
}
|
|
2630
2651
|
) }),
|
|
2631
|
-
type === "password" && /* @__PURE__ */ (0,
|
|
2652
|
+
type === "password" && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "matchid-input-eye-icon", onClick: () => {
|
|
2632
2653
|
setInputType(inputType === "password" ? "text" : "password");
|
|
2633
|
-
}, children: inputType === "password" ? /* @__PURE__ */ (0,
|
|
2654
|
+
}, children: inputType === "password" ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(CloseEyeIcon, { size: isDownMd ? 16 : 20 }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(OpenEyeIcon, { size: isDownMd ? 16 : 20 }) }),
|
|
2634
2655
|
after
|
|
2635
2656
|
]
|
|
2636
2657
|
}
|
|
@@ -2639,7 +2660,7 @@ function Input({
|
|
|
2639
2660
|
|
|
2640
2661
|
// src/ui/Popover/index.tsx
|
|
2641
2662
|
var import_react7 = require("react");
|
|
2642
|
-
var
|
|
2663
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
2643
2664
|
function Popover({
|
|
2644
2665
|
children,
|
|
2645
2666
|
content,
|
|
@@ -2649,7 +2670,7 @@ function Popover({
|
|
|
2649
2670
|
gap = "20px"
|
|
2650
2671
|
}) {
|
|
2651
2672
|
const [active, setActive] = (0, import_react7.useState)(false);
|
|
2652
|
-
return children && /* @__PURE__ */ (0,
|
|
2673
|
+
return children && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
|
|
2653
2674
|
"div",
|
|
2654
2675
|
{
|
|
2655
2676
|
onClick: () => {
|
|
@@ -2660,16 +2681,16 @@ function Popover({
|
|
|
2660
2681
|
className: `matchid-popover-box matchid-popover-${position} matchid-popover-${type} ${className} ${type == "click" && active ? "matchid-popover-click-active" : ""}`,
|
|
2661
2682
|
children: [
|
|
2662
2683
|
children,
|
|
2663
|
-
/* @__PURE__ */ (0,
|
|
2684
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { style: {
|
|
2664
2685
|
paddingTop: gap
|
|
2665
|
-
}, className: `matchid-popover-area`, children: /* @__PURE__ */ (0,
|
|
2686
|
+
}, className: `matchid-popover-area`, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: `matchid-popover-content`, children: content }) })
|
|
2666
2687
|
]
|
|
2667
2688
|
}
|
|
2668
2689
|
);
|
|
2669
2690
|
}
|
|
2670
2691
|
|
|
2671
2692
|
// src/ui/Switch/index.tsx
|
|
2672
|
-
var
|
|
2693
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
2673
2694
|
function Switch({
|
|
2674
2695
|
size = "default",
|
|
2675
2696
|
checked = false,
|
|
@@ -2684,12 +2705,12 @@ function Switch({
|
|
|
2684
2705
|
onChange && onChange(!checked);
|
|
2685
2706
|
}
|
|
2686
2707
|
};
|
|
2687
|
-
return /* @__PURE__ */ (0,
|
|
2708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { onClick, className: `matchid-switch matchid-switch-${size} ${checked ? "matchid-switch-checked" : ""} ${disabled ? "matchid-switch-disabled" : ""} ${loading ? "matchid-switch-loading" : ""}`, ...props, children: loading ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(LoadingIcon_default, { className: "matchid-switch-loading-icon", size: size == "default" ? 24 : 18, color: "var(--matchid-swicth-loading-color)" }) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "matchid-switch-ball" }) });
|
|
2688
2709
|
}
|
|
2689
2710
|
|
|
2690
2711
|
// src/ui/AlphaAvatar/index.tsx
|
|
2691
2712
|
var import_react8 = require("react");
|
|
2692
|
-
var
|
|
2713
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
2693
2714
|
function AlphaAvatar({
|
|
2694
2715
|
name,
|
|
2695
2716
|
size = "default",
|
|
@@ -2706,7 +2727,7 @@ function AlphaAvatar({
|
|
|
2706
2727
|
return "";
|
|
2707
2728
|
}, [name]);
|
|
2708
2729
|
const numberSize = typeof size === "number" ? size : size === "sm" ? 24 : size === "default" ? 40 : 64;
|
|
2709
|
-
return /* @__PURE__ */ (0,
|
|
2730
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
|
|
2710
2731
|
width: numberSize,
|
|
2711
2732
|
height: numberSize,
|
|
2712
2733
|
fontSize: Math.ceil(numberSize / 2),
|
|
@@ -2715,7 +2736,7 @@ function AlphaAvatar({
|
|
|
2715
2736
|
}
|
|
2716
2737
|
|
|
2717
2738
|
// src/ui/Radio/index.tsx
|
|
2718
|
-
var
|
|
2739
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
2719
2740
|
function Radio({
|
|
2720
2741
|
checked = false,
|
|
2721
2742
|
onChange,
|
|
@@ -2724,20 +2745,20 @@ function Radio({
|
|
|
2724
2745
|
className = "",
|
|
2725
2746
|
style = {}
|
|
2726
2747
|
}) {
|
|
2727
|
-
return /* @__PURE__ */ (0,
|
|
2748
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { onClick: onChange, className: `matchid-radio ${className} ${checked ? "matchid-radio-checked" : ""}`, style: {
|
|
2728
2749
|
width: size,
|
|
2729
2750
|
height: size,
|
|
2730
2751
|
...style,
|
|
2731
2752
|
// @ts-ignore
|
|
2732
2753
|
"--matchid-radio-checked": color
|
|
2733
|
-
}, children: checked && /* @__PURE__ */ (0,
|
|
2754
|
+
}, children: checked && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: `matchid-radio-content`, style: {
|
|
2734
2755
|
width: Math.floor(size * 0.7),
|
|
2735
2756
|
height: Math.floor(size * 0.7)
|
|
2736
2757
|
} }) });
|
|
2737
2758
|
}
|
|
2738
2759
|
|
|
2739
2760
|
// src/context/ModalContext.tsx
|
|
2740
|
-
var
|
|
2761
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
2741
2762
|
var ModalContext = (0, import_react9.createContext)(null);
|
|
2742
2763
|
function ModalProvider({ children }) {
|
|
2743
2764
|
const [modalState, setModalState] = (0, import_react9.useState)({
|
|
@@ -2777,7 +2798,7 @@ function ModalProvider({ children }) {
|
|
|
2777
2798
|
visible: true,
|
|
2778
2799
|
index: modalIndex,
|
|
2779
2800
|
zIndex: newZIndex,
|
|
2780
|
-
content: /* @__PURE__ */ (0,
|
|
2801
|
+
content: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ModalDrawer, { showClose: true, isOpen: true, onClose: () => closeModal(modalIndex), title: props.title, zIndex: newZIndex, onBack: props.onBack, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(props.content, { close: () => closeModal(modalIndex), zIndex: newZIndex }) })
|
|
2781
2802
|
}],
|
|
2782
2803
|
highestZIndex: newZIndex
|
|
2783
2804
|
};
|
|
@@ -2789,7 +2810,7 @@ function ModalProvider({ children }) {
|
|
|
2789
2810
|
document.body
|
|
2790
2811
|
) : null
|
|
2791
2812
|
);
|
|
2792
|
-
return /* @__PURE__ */ (0,
|
|
2813
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(ModalContext.Provider, { value: { show, open }, children: [
|
|
2793
2814
|
children,
|
|
2794
2815
|
modalElements
|
|
2795
2816
|
] });
|
|
@@ -2833,7 +2854,7 @@ var useTransactionStore = (0, import_zustand4.create)((0, import_middleware2.dev
|
|
|
2833
2854
|
var useTransactionStore_default = useTransactionStore;
|
|
2834
2855
|
|
|
2835
2856
|
// src/hooks/useWallet.tsx
|
|
2836
|
-
var
|
|
2857
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
2837
2858
|
var AppClientId = "react-sdk-" + getVersion();
|
|
2838
2859
|
function useWallet() {
|
|
2839
2860
|
const { address, wallet: walletConfig } = useLocalStore_default();
|
|
@@ -3006,7 +3027,7 @@ function useWallet() {
|
|
|
3006
3027
|
address: evmAccount.address
|
|
3007
3028
|
});
|
|
3008
3029
|
modal.show((props) => {
|
|
3009
|
-
return /* @__PURE__ */ (0,
|
|
3030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(HashPanel_default, { isOpen: true, onClose: props.close, zIndex: props.zIndex, hash: txHash, chain: _chain });
|
|
3010
3031
|
});
|
|
3011
3032
|
clearInterval(window.matchProvider.transactionMessageIntervalMap[transactionId].interval);
|
|
3012
3033
|
delete window.matchProvider.transactionMessageIntervalMap[transactionId];
|
|
@@ -3083,7 +3104,7 @@ function useCopyClipboard(timeout = 500) {
|
|
|
3083
3104
|
// src/context/ToastContext.tsx
|
|
3084
3105
|
var import_react12 = require("react");
|
|
3085
3106
|
var import_react_dom2 = require("react-dom");
|
|
3086
|
-
var
|
|
3107
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
3087
3108
|
var ToastContext = (0, import_react12.createContext)(null);
|
|
3088
3109
|
function ToastProvider({ children, zIndex = 299 }) {
|
|
3089
3110
|
const [toasts, setToasts] = (0, import_react12.useState)([]);
|
|
@@ -3096,28 +3117,28 @@ function ToastProvider({ children, zIndex = 299 }) {
|
|
|
3096
3117
|
setTimeout(() => removeToast(id), timeout);
|
|
3097
3118
|
}, [removeToast]);
|
|
3098
3119
|
const success = (0, import_react12.useCallback)((text, timeout) => {
|
|
3099
|
-
show({ icon: /* @__PURE__ */ (0,
|
|
3120
|
+
show({ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(CheckRoundIcon, { color: "#2FCC00", size: 24 }), text, timeout });
|
|
3100
3121
|
}, [show]);
|
|
3101
3122
|
const error = (0, import_react12.useCallback)((text, timeout) => {
|
|
3102
|
-
show({ icon: /* @__PURE__ */ (0,
|
|
3123
|
+
show({ icon: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(ErrorRoundIcon, { size: 24 }), text, timeout });
|
|
3103
3124
|
}, [show]);
|
|
3104
3125
|
const ToastComponent = (0, import_react_dom2.createPortal)(
|
|
3105
|
-
/* @__PURE__ */ (0,
|
|
3126
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "matchid-toast-box", style: {
|
|
3106
3127
|
zIndex
|
|
3107
|
-
}, children: toasts.reverse().map(({ id, icon, text }) => /* @__PURE__ */ (0,
|
|
3128
|
+
}, children: toasts.reverse().map(({ id, icon, text }) => /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
3108
3129
|
"div",
|
|
3109
3130
|
{
|
|
3110
3131
|
className: "matchid-toast",
|
|
3111
3132
|
children: [
|
|
3112
|
-
icon && /* @__PURE__ */ (0,
|
|
3113
|
-
/* @__PURE__ */ (0,
|
|
3133
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { children: icon }),
|
|
3134
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("span", { children: text })
|
|
3114
3135
|
]
|
|
3115
3136
|
},
|
|
3116
3137
|
id
|
|
3117
3138
|
)) }),
|
|
3118
3139
|
document.body
|
|
3119
3140
|
);
|
|
3120
|
-
return /* @__PURE__ */ (0,
|
|
3141
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(ToastContext.Provider, { value: { show, success, error }, children: [
|
|
3121
3142
|
children,
|
|
3122
3143
|
ToastComponent
|
|
3123
3144
|
] });
|
|
@@ -3262,7 +3283,7 @@ function useWalletAssetListQuery({
|
|
|
3262
3283
|
var import_react13 = require("react");
|
|
3263
3284
|
var import_viem5 = require("viem");
|
|
3264
3285
|
var import_react_intl = require("react-intl");
|
|
3265
|
-
var
|
|
3286
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
3266
3287
|
function useMatchChain() {
|
|
3267
3288
|
const chainListQuery = useChainListQuery();
|
|
3268
3289
|
const modal = useModal();
|
|
@@ -3293,28 +3314,28 @@ function useMatchChain() {
|
|
|
3293
3314
|
const { chainId: storeChainId2, setChainId: setChainId2 } = useLocalStore_default();
|
|
3294
3315
|
const [selectedChainId, setSelectedChainId] = (0, import_react13.useState)(storeChainId2);
|
|
3295
3316
|
const isDownMd = useDownMd();
|
|
3296
|
-
return /* @__PURE__ */ (0,
|
|
3297
|
-
/* @__PURE__ */ (0,
|
|
3298
|
-
return /* @__PURE__ */ (0,
|
|
3317
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: `matchid-change-network-box`, children: [
|
|
3318
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: `matchid-change-network-list`, children: chainListQuery.data?.map((item, index) => {
|
|
3319
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
3299
3320
|
"div",
|
|
3300
3321
|
{
|
|
3301
3322
|
onClick: () => setSelectedChainId(item.id),
|
|
3302
3323
|
className: `matchid-change-network-item ${selectedChainId == item.id ? "matchid-change-network-selected" : ""}`,
|
|
3303
3324
|
children: [
|
|
3304
|
-
/* @__PURE__ */ (0,
|
|
3305
|
-
/* @__PURE__ */ (0,
|
|
3306
|
-
/* @__PURE__ */ (0,
|
|
3325
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: `matchid-change-network-item-content`, children: [
|
|
3326
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("img", { src: item.iconUrl, className: `matchid-change-network-item-icon` }),
|
|
3327
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "matchid-change-network-item-name", children: item.name })
|
|
3307
3328
|
] }),
|
|
3308
|
-
/* @__PURE__ */ (0,
|
|
3329
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Radio, { checked: selectedChainId === item.id, size: isDownMd ? 18 : 24 })
|
|
3309
3330
|
]
|
|
3310
3331
|
},
|
|
3311
3332
|
index
|
|
3312
3333
|
);
|
|
3313
3334
|
}) }),
|
|
3314
|
-
/* @__PURE__ */ (0,
|
|
3335
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Button, { size: "lg", highlight: true, onClick: () => {
|
|
3315
3336
|
setChainId2(selectedChainId || 0);
|
|
3316
3337
|
close();
|
|
3317
|
-
}, block: true, children: /* @__PURE__ */ (0,
|
|
3338
|
+
}, block: true, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_intl.FormattedMessage, { id: "confirm" }) })
|
|
3318
3339
|
] });
|
|
3319
3340
|
}
|
|
3320
3341
|
const showChangeNetwork = () => {
|
|
@@ -3382,7 +3403,7 @@ var import_react16 = require("react");
|
|
|
3382
3403
|
// src/components/EmailModal/StepEmail.tsx
|
|
3383
3404
|
var import_react14 = require("react");
|
|
3384
3405
|
var import_react_intl2 = require("react-intl");
|
|
3385
|
-
var
|
|
3406
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
3386
3407
|
function StepEmail(props) {
|
|
3387
3408
|
const intl = (0, import_react_intl2.useIntl)();
|
|
3388
3409
|
const [emailVal, setEmailVal] = (0, import_react14.useState)("");
|
|
@@ -3397,10 +3418,10 @@ function StepEmail(props) {
|
|
|
3397
3418
|
const onContinue = async () => {
|
|
3398
3419
|
props.onContinue(emailVal);
|
|
3399
3420
|
};
|
|
3400
|
-
return /* @__PURE__ */ (0,
|
|
3401
|
-
/* @__PURE__ */ (0,
|
|
3421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "matchid-email-email-box", children: [
|
|
3422
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Field, { label: intl.formatMessage({
|
|
3402
3423
|
id: "emailAddress"
|
|
3403
|
-
}), children: /* @__PURE__ */ (0,
|
|
3424
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
3404
3425
|
Input,
|
|
3405
3426
|
{
|
|
3406
3427
|
placeholder: intl.formatMessage({
|
|
@@ -3410,9 +3431,9 @@ function StepEmail(props) {
|
|
|
3410
3431
|
value: emailVal
|
|
3411
3432
|
}
|
|
3412
3433
|
) }),
|
|
3413
|
-
/* @__PURE__ */ (0,
|
|
3434
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Button, { disabled: !canContinue, style: {
|
|
3414
3435
|
marginTop: "64px"
|
|
3415
|
-
}, onClick: onContinue, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0,
|
|
3436
|
+
}, onClick: onContinue, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_intl2.FormattedMessage, { id: "continue" }) })
|
|
3416
3437
|
] });
|
|
3417
3438
|
}
|
|
3418
3439
|
|
|
@@ -3426,7 +3447,7 @@ var NATIVE_TOKEN_ADDRESS = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
|
|
|
3426
3447
|
|
|
3427
3448
|
// src/components/EmailModal/StepVerify.tsx
|
|
3428
3449
|
var import_react_intl3 = require("react-intl");
|
|
3429
|
-
var
|
|
3450
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
3430
3451
|
function StepVerify(props) {
|
|
3431
3452
|
const intl = (0, import_react_intl3.useIntl)();
|
|
3432
3453
|
const { getLoginEmailCode, loginByEmail } = useUserInfo();
|
|
@@ -3503,17 +3524,17 @@ function StepVerify(props) {
|
|
|
3503
3524
|
setSubmitting(false);
|
|
3504
3525
|
}
|
|
3505
3526
|
};
|
|
3506
|
-
return /* @__PURE__ */ (0,
|
|
3507
|
-
/* @__PURE__ */ (0,
|
|
3508
|
-
/* @__PURE__ */ (0,
|
|
3509
|
-
/* @__PURE__ */ (0,
|
|
3510
|
-
/* @__PURE__ */ (0,
|
|
3511
|
-
/* @__PURE__ */ (0,
|
|
3527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "matchid-email-verify-box", children: [
|
|
3528
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "matchid-email-verify-header", children: [
|
|
3529
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "matchid-email-verify-header-icon", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(EmailLineIcon, { size: isDownMd ? 19 : 24 }) }),
|
|
3530
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "matchid-email-verify-header-content", children: [
|
|
3531
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "matchid-email-verify-header-value", children: props.email }),
|
|
3532
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "matchid-email-verify-header-tips", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react_intl3.FormattedMessage, { id: "sendEmailTips" }) })
|
|
3512
3533
|
] })
|
|
3513
3534
|
] }),
|
|
3514
|
-
/* @__PURE__ */ (0,
|
|
3535
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Field, { label: intl.formatMessage({
|
|
3515
3536
|
id: "verificationCode"
|
|
3516
|
-
}), error, children: /* @__PURE__ */ (0,
|
|
3537
|
+
}), error, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3517
3538
|
Input,
|
|
3518
3539
|
{
|
|
3519
3540
|
placeholder: intl.formatMessage({
|
|
@@ -3523,7 +3544,7 @@ function StepVerify(props) {
|
|
|
3523
3544
|
maxLength: codeLength,
|
|
3524
3545
|
onChange: (e) => setCode(e.target.value),
|
|
3525
3546
|
value: code,
|
|
3526
|
-
after: /* @__PURE__ */ (0,
|
|
3547
|
+
after: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
3527
3548
|
Button,
|
|
3528
3549
|
{
|
|
3529
3550
|
highlight: true,
|
|
@@ -3542,13 +3563,13 @@ function StepVerify(props) {
|
|
|
3542
3563
|
)
|
|
3543
3564
|
}
|
|
3544
3565
|
) }),
|
|
3545
|
-
/* @__PURE__ */ (0,
|
|
3566
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Button, { disabled: !canContinue, highlight: true, block: true, size: "lg", onClick: onContinue, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_react_intl3.FormattedMessage, { id: "continue" }) })
|
|
3546
3567
|
] });
|
|
3547
3568
|
}
|
|
3548
3569
|
|
|
3549
3570
|
// src/components/EmailModal/index.tsx
|
|
3550
3571
|
var import_react_intl4 = require("react-intl");
|
|
3551
|
-
var
|
|
3572
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
3552
3573
|
function EmailModal({
|
|
3553
3574
|
isOpen = false,
|
|
3554
3575
|
width = 480,
|
|
@@ -3565,7 +3586,7 @@ function EmailModal({
|
|
|
3565
3586
|
setEmailVal("");
|
|
3566
3587
|
}
|
|
3567
3588
|
}, [isOpen]);
|
|
3568
|
-
return /* @__PURE__ */ (0,
|
|
3589
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
3569
3590
|
ModalWithHeader,
|
|
3570
3591
|
{
|
|
3571
3592
|
isOpen,
|
|
@@ -3575,10 +3596,10 @@ function EmailModal({
|
|
|
3575
3596
|
id: "email"
|
|
3576
3597
|
}),
|
|
3577
3598
|
onBack: step == "verify" ? () => setStep("input") : onBack,
|
|
3578
|
-
children: step === "input" ? /* @__PURE__ */ (0,
|
|
3599
|
+
children: step === "input" ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(StepEmail, { email: emailVal, onContinue: (email) => {
|
|
3579
3600
|
setEmailVal(email);
|
|
3580
3601
|
setStep("verify");
|
|
3581
|
-
} }) : /* @__PURE__ */ (0,
|
|
3602
|
+
} }) : /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(StepVerify, { email: emailVal, onSuccess: onLogin })
|
|
3582
3603
|
}
|
|
3583
3604
|
);
|
|
3584
3605
|
}
|
|
@@ -3608,7 +3629,7 @@ function useAppConfig() {
|
|
|
3608
3629
|
}
|
|
3609
3630
|
|
|
3610
3631
|
// src/components/LoginBox/index.tsx
|
|
3611
|
-
var
|
|
3632
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
3612
3633
|
var RecommendItem = ({
|
|
3613
3634
|
icon,
|
|
3614
3635
|
name,
|
|
@@ -3617,20 +3638,20 @@ var RecommendItem = ({
|
|
|
3617
3638
|
children,
|
|
3618
3639
|
footer
|
|
3619
3640
|
}) => {
|
|
3620
|
-
return /* @__PURE__ */ (0,
|
|
3621
|
-
/* @__PURE__ */ (0,
|
|
3622
|
-
/* @__PURE__ */ (0,
|
|
3623
|
-
/* @__PURE__ */ (0,
|
|
3624
|
-
/* @__PURE__ */ (0,
|
|
3641
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "matchid-login-recommend-method", children: [
|
|
3642
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "matchid-login-recommend-method-item", onClick, children: [
|
|
3643
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "matchid-login-recommend-method-content", children: [
|
|
3644
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-login-recommend-method-icon", children: icon }),
|
|
3645
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "matchid-login-recommend-method-name", children: name })
|
|
3625
3646
|
] }),
|
|
3626
|
-
footer ? footer : children ? /* @__PURE__ */ (0,
|
|
3647
|
+
footer ? footer : children ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3627
3648
|
ArrowDownIcon,
|
|
3628
3649
|
{
|
|
3629
3650
|
className: `matchid-login-recommend-method-arrow ${showChildren ? "matchid-login-recommend-method-arrow-active" : ""}`,
|
|
3630
3651
|
size: 20,
|
|
3631
3652
|
color: "var(--matchid-arrow-color)"
|
|
3632
3653
|
}
|
|
3633
|
-
) : /* @__PURE__ */ (0,
|
|
3654
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3634
3655
|
ArrowRightIcon,
|
|
3635
3656
|
{
|
|
3636
3657
|
className: "matchid-login-recommend-method-arrow",
|
|
@@ -3639,7 +3660,7 @@ var RecommendItem = ({
|
|
|
3639
3660
|
}
|
|
3640
3661
|
)
|
|
3641
3662
|
] }),
|
|
3642
|
-
children && /* @__PURE__ */ (0,
|
|
3663
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3643
3664
|
"div",
|
|
3644
3665
|
{
|
|
3645
3666
|
className: `matchid-login-recommend-method-popover ${showChildren ? "matchid-login-recommend-method-popover-active" : ""}`,
|
|
@@ -3704,75 +3725,75 @@ function LoginBox({
|
|
|
3704
3725
|
const isDownMd = useDownMd();
|
|
3705
3726
|
const methodMap = {
|
|
3706
3727
|
wallet: {
|
|
3707
|
-
icon: /* @__PURE__ */ (0,
|
|
3728
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(WalletIcon, { size: isDownMd ? 36 : 40 }),
|
|
3708
3729
|
name: intl.formatMessage({ id: "wallet" }),
|
|
3709
3730
|
onClick: () => setShowWallet(!showWallet),
|
|
3710
3731
|
type: "wallet"
|
|
3711
3732
|
},
|
|
3712
3733
|
email: {
|
|
3713
|
-
icon: /* @__PURE__ */ (0,
|
|
3734
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(EmailIcon, { size: isDownMd ? 36 : 40 }),
|
|
3714
3735
|
name: intl.formatMessage({ id: "email" }),
|
|
3715
3736
|
onClick: () => {
|
|
3716
3737
|
setEmailOpen(true);
|
|
3717
3738
|
}
|
|
3718
3739
|
},
|
|
3719
3740
|
google: {
|
|
3720
|
-
icon: /* @__PURE__ */ (0,
|
|
3741
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(GoogleIcon, { size: isDownMd ? 36 : 40 }),
|
|
3721
3742
|
name: "Google",
|
|
3722
3743
|
onClick: () => login("google")
|
|
3723
3744
|
},
|
|
3724
3745
|
twitter: {
|
|
3725
|
-
icon: /* @__PURE__ */ (0,
|
|
3746
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(XIcon, { size: isDownMd ? 36 : 40 }),
|
|
3726
3747
|
name: "X",
|
|
3727
3748
|
onClick: () => login("twitter")
|
|
3728
3749
|
},
|
|
3729
3750
|
telegram: {
|
|
3730
|
-
icon: /* @__PURE__ */ (0,
|
|
3751
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(TelegramIcon, { size: isDownMd ? 36 : 40 }),
|
|
3731
3752
|
name: "Telegram",
|
|
3732
3753
|
onClick: () => login("telegram")
|
|
3733
3754
|
},
|
|
3734
3755
|
github: {
|
|
3735
|
-
icon: /* @__PURE__ */ (0,
|
|
3756
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(GithubIcon, { size: isDownMd ? 36 : 40 }),
|
|
3736
3757
|
name: "Github",
|
|
3737
3758
|
onClick: () => login("github")
|
|
3738
3759
|
},
|
|
3739
3760
|
discord: {
|
|
3740
|
-
icon: /* @__PURE__ */ (0,
|
|
3761
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(DiscordIcon, { size: isDownMd ? 36 : 40 }),
|
|
3741
3762
|
name: "Discord",
|
|
3742
3763
|
onClick: () => login("discord")
|
|
3743
3764
|
},
|
|
3744
3765
|
linkedin: {
|
|
3745
|
-
icon: /* @__PURE__ */ (0,
|
|
3766
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(LinkedinIcon, { size: isDownMd ? 36 : 40 }),
|
|
3746
3767
|
name: "LinkedIn",
|
|
3747
3768
|
onClick: () => login("linkedin")
|
|
3748
3769
|
},
|
|
3749
3770
|
facebook: {
|
|
3750
|
-
icon: /* @__PURE__ */ (0,
|
|
3771
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(FacebookIcon, { size: isDownMd ? 36 : 40 }),
|
|
3751
3772
|
name: "Facebook",
|
|
3752
3773
|
onClick: () => login("facebook")
|
|
3753
3774
|
},
|
|
3754
3775
|
youtube: {
|
|
3755
|
-
icon: /* @__PURE__ */ (0,
|
|
3776
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(YoutubeIcon, { size: isDownMd ? 36 : 40 }),
|
|
3756
3777
|
name: "Youtube",
|
|
3757
3778
|
onClick: () => login("youtube")
|
|
3758
3779
|
}
|
|
3759
3780
|
};
|
|
3760
3781
|
const { walletMap } = useWalletConfig();
|
|
3761
|
-
return /* @__PURE__ */ (0,
|
|
3762
|
-
(!inModal || !emailOpen) && /* @__PURE__ */ (0,
|
|
3763
|
-
/* @__PURE__ */ (0,
|
|
3764
|
-
return /* @__PURE__ */ (0,
|
|
3782
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
|
|
3783
|
+
(!inModal || !emailOpen) && /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "matchid-login-box", children: [
|
|
3784
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-login-recommend-list", children: methodConfig.recommendMethods.map((m) => {
|
|
3785
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3765
3786
|
RecommendItem,
|
|
3766
3787
|
{
|
|
3767
3788
|
icon: methodMap[m]?.icon,
|
|
3768
3789
|
name: methodMap[m]?.name,
|
|
3769
3790
|
onClick: methodMap[m]?.onClick,
|
|
3770
3791
|
showChildren: m == "wallet" && showWallet,
|
|
3771
|
-
children: m == "wallet" && /* @__PURE__ */ (0,
|
|
3772
|
-
/* @__PURE__ */ (0,
|
|
3773
|
-
/* @__PURE__ */ (0,
|
|
3792
|
+
children: m == "wallet" && /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
|
|
3793
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-login-recommend-wallet-divider" }),
|
|
3794
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-login-recommend-wallet-list", children: methodConfig.walletMethods.map((n) => {
|
|
3774
3795
|
const m2 = walletMap[n];
|
|
3775
|
-
return /* @__PURE__ */ (0,
|
|
3796
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
3776
3797
|
"div",
|
|
3777
3798
|
{
|
|
3778
3799
|
className: "matchid-login-recommend-wallet-item",
|
|
@@ -3780,16 +3801,16 @@ function LoginBox({
|
|
|
3780
3801
|
login(m2.method);
|
|
3781
3802
|
},
|
|
3782
3803
|
children: [
|
|
3783
|
-
/* @__PURE__ */ (0,
|
|
3784
|
-
/* @__PURE__ */ (0,
|
|
3785
|
-
/* @__PURE__ */ (0,
|
|
3804
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "matchid-login-recommend-wallet-item-content", children: [
|
|
3805
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-login-recommend-wallet-item-icon", children: m2.icon }),
|
|
3806
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3786
3807
|
"div",
|
|
3787
3808
|
{
|
|
3788
3809
|
className: "matchid-login-recommend-wallet-item-hover-icon",
|
|
3789
3810
|
children: m2.activeIcon
|
|
3790
3811
|
}
|
|
3791
3812
|
),
|
|
3792
|
-
/* @__PURE__ */ (0,
|
|
3813
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3793
3814
|
"span",
|
|
3794
3815
|
{
|
|
3795
3816
|
className: "matchid-login-recommend-wallet-item-name",
|
|
@@ -3797,7 +3818,7 @@ function LoginBox({
|
|
|
3797
3818
|
}
|
|
3798
3819
|
)
|
|
3799
3820
|
] }),
|
|
3800
|
-
/* @__PURE__ */ (0,
|
|
3821
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3801
3822
|
ArrowRightIcon,
|
|
3802
3823
|
{
|
|
3803
3824
|
className: "matchid-login-recommend-wallet-item-arrow",
|
|
@@ -3815,10 +3836,10 @@ function LoginBox({
|
|
|
3815
3836
|
m
|
|
3816
3837
|
);
|
|
3817
3838
|
}) }),
|
|
3818
|
-
methodConfig.methods.length > 0 && /* @__PURE__ */ (0,
|
|
3819
|
-
/* @__PURE__ */ (0,
|
|
3820
|
-
/* @__PURE__ */ (0,
|
|
3821
|
-
return /* @__PURE__ */ (0,
|
|
3839
|
+
methodConfig.methods.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "matchid-login-other", children: [
|
|
3840
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-login-other-text", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_react_intl5.FormattedMessage, { id: "otherLoginMethods" }) }),
|
|
3841
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: "matchid-login-method-box", children: methodConfig.methods.map((m) => {
|
|
3842
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3822
3843
|
"div",
|
|
3823
3844
|
{
|
|
3824
3845
|
className: "matchid-login-method-item",
|
|
@@ -3831,7 +3852,7 @@ function LoginBox({
|
|
|
3831
3852
|
}) })
|
|
3832
3853
|
] })
|
|
3833
3854
|
] }),
|
|
3834
|
-
/* @__PURE__ */ (0,
|
|
3855
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
3835
3856
|
EmailModal,
|
|
3836
3857
|
{
|
|
3837
3858
|
isOpen: emailOpen,
|
|
@@ -3851,40 +3872,40 @@ var import_react19 = require("react");
|
|
|
3851
3872
|
|
|
3852
3873
|
// src/components/LoginPanel/index.tsx
|
|
3853
3874
|
var import_react_intl6 = require("react-intl");
|
|
3854
|
-
var
|
|
3875
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
3855
3876
|
function LoginPanel({
|
|
3856
3877
|
header,
|
|
3857
3878
|
onClose,
|
|
3858
3879
|
...props
|
|
3859
3880
|
}) {
|
|
3860
3881
|
const isDownMd = useDownMd();
|
|
3861
|
-
return /* @__PURE__ */ (0,
|
|
3862
|
-
header ? header : /* @__PURE__ */ (0,
|
|
3863
|
-
/* @__PURE__ */ (0,
|
|
3864
|
-
/* @__PURE__ */ (0,
|
|
3865
|
-
/* @__PURE__ */ (0,
|
|
3882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "matchid-login-panel", children: [
|
|
3883
|
+
header ? header : /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "matchid-login-panel-header", children: [
|
|
3884
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "matchid-login-panel-header-content", children: [
|
|
3885
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "matchid-login-panel-header-title", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react_intl6.FormattedMessage, { id: "loginTitle" }) }),
|
|
3886
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "matchid-login-panel-header-subtilte", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(import_react_intl6.FormattedMessage, { id: "loginTips" }) })
|
|
3866
3887
|
] }),
|
|
3867
|
-
onClose && /* @__PURE__ */ (0,
|
|
3888
|
+
onClose && /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "matchid-login-panel-header-close", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(CloseRoundIcon, { size: isDownMd ? 24 : 30 }) })
|
|
3868
3889
|
] }),
|
|
3869
|
-
/* @__PURE__ */ (0,
|
|
3870
|
-
/* @__PURE__ */ (0,
|
|
3890
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "matchid-login-panel-divide" }),
|
|
3891
|
+
/* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: "matchid-login-panel-box", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(LoginBox, { ...props }) })
|
|
3871
3892
|
] });
|
|
3872
3893
|
}
|
|
3873
3894
|
|
|
3874
3895
|
// src/components/LoginModal/index.tsx
|
|
3875
|
-
var
|
|
3896
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
3876
3897
|
function LoginModal({
|
|
3877
3898
|
isOpen = false,
|
|
3878
3899
|
width = 480,
|
|
3879
3900
|
...props
|
|
3880
3901
|
}) {
|
|
3881
3902
|
const { isLogin } = useUserInfo();
|
|
3882
|
-
return /* @__PURE__ */ (0,
|
|
3903
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
3883
3904
|
Modal,
|
|
3884
3905
|
{
|
|
3885
3906
|
isOpen: isOpen && !isLogin,
|
|
3886
3907
|
width,
|
|
3887
|
-
children: /* @__PURE__ */ (0,
|
|
3908
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(LoginPanel, { ...props, inModal: true })
|
|
3888
3909
|
}
|
|
3889
3910
|
);
|
|
3890
3911
|
}
|
|
@@ -3893,10 +3914,10 @@ function LoginModal({
|
|
|
3893
3914
|
var import_react18 = require("react");
|
|
3894
3915
|
|
|
3895
3916
|
// src/assets/icon/ProfileIcon.tsx
|
|
3896
|
-
var
|
|
3917
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
3897
3918
|
function ProfileIcon({ size = 24, color = "black", ...props }) {
|
|
3898
|
-
return /* @__PURE__ */ (0,
|
|
3899
|
-
/* @__PURE__ */ (0,
|
|
3919
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3920
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3900
3921
|
"path",
|
|
3901
3922
|
{
|
|
3902
3923
|
fillRule: "evenodd",
|
|
@@ -3905,7 +3926,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
|
|
|
3905
3926
|
fill: color
|
|
3906
3927
|
}
|
|
3907
3928
|
),
|
|
3908
|
-
/* @__PURE__ */ (0,
|
|
3929
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
3909
3930
|
"path",
|
|
3910
3931
|
{
|
|
3911
3932
|
fillRule: "evenodd",
|
|
@@ -3919,7 +3940,7 @@ function ProfileIcon({ size = 24, color = "black", ...props }) {
|
|
|
3919
3940
|
|
|
3920
3941
|
// src/components/UserPopover/index.tsx
|
|
3921
3942
|
var import_react_intl7 = require("react-intl");
|
|
3922
|
-
var
|
|
3943
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
3923
3944
|
function UserContent() {
|
|
3924
3945
|
const { logout, address, username } = useUserInfo();
|
|
3925
3946
|
const [logouting, setLogouting] = (0, import_react18.useState)(false);
|
|
@@ -3940,34 +3961,34 @@ function UserContent() {
|
|
|
3940
3961
|
rightIcon,
|
|
3941
3962
|
onClick
|
|
3942
3963
|
}) => {
|
|
3943
|
-
return /* @__PURE__ */ (0,
|
|
3944
|
-
/* @__PURE__ */ (0,
|
|
3964
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "matchid-user-popover-item", onClick, children: [
|
|
3965
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: `matchid-user-popover-item-content`, children: [
|
|
3945
3966
|
icon,
|
|
3946
|
-
/* @__PURE__ */ (0,
|
|
3967
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "matchid-user-popover-item-text", children })
|
|
3947
3968
|
] }),
|
|
3948
3969
|
rightIcon
|
|
3949
3970
|
] });
|
|
3950
3971
|
};
|
|
3951
3972
|
const UserDivider = () => {
|
|
3952
|
-
return /* @__PURE__ */ (0,
|
|
3973
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: `matchid-user-popover-divider` });
|
|
3953
3974
|
};
|
|
3954
3975
|
const [usernameOpen, setUsernameOpen] = (0, import_react18.useState)(false);
|
|
3955
3976
|
const [copied, setCopied] = useCopyClipboard();
|
|
3956
3977
|
const intl = (0, import_react_intl7.useIntl)();
|
|
3957
|
-
return /* @__PURE__ */ (0,
|
|
3958
|
-
/* @__PURE__ */ (0,
|
|
3959
|
-
/* @__PURE__ */ (0,
|
|
3978
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "matchid-user-popover-content", children: [
|
|
3979
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "matchid-user-popover-list", children: [
|
|
3980
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(UserItem, { onClick: () => {
|
|
3960
3981
|
setCopied(address);
|
|
3961
|
-
}, icon: copied ? /* @__PURE__ */ (0,
|
|
3962
|
-
/* @__PURE__ */ (0,
|
|
3963
|
-
/* @__PURE__ */ (0,
|
|
3982
|
+
}, icon: copied ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(CheckIcon, { size: 20, color: "#0ecb81" }) : /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(CopyIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(CheckIcon, { size: 20, color: "var(--icon-color)" }), children: truncateAddress(address) }),
|
|
3983
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(UserDivider, {}),
|
|
3984
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(UserItem, { onClick: () => {
|
|
3964
3985
|
setUsernameOpen(true);
|
|
3965
|
-
}, icon: /* @__PURE__ */ (0,
|
|
3986
|
+
}, icon: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ProfileIcon, { size: 20, color: "var(--icon-color)" }), rightIcon: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(ArrowRightIcon, { size: 20, color: "var(--icon-color)" }), children: username || intl.formatMessage({
|
|
3966
3987
|
id: "setUsername"
|
|
3967
3988
|
}) })
|
|
3968
3989
|
] }),
|
|
3969
|
-
/* @__PURE__ */ (0,
|
|
3970
|
-
/* @__PURE__ */ (0,
|
|
3990
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Button, { onClick: onLogout, loading: logouting, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react_intl7.FormattedMessage, { id: "disconnect" }) }),
|
|
3991
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(UsernameModal, { isOpen: usernameOpen, onClose: () => {
|
|
3971
3992
|
setUsernameOpen(false);
|
|
3972
3993
|
}, onSuccess: () => {
|
|
3973
3994
|
setUsernameOpen(false);
|
|
@@ -3978,12 +3999,12 @@ function UserPopover({
|
|
|
3978
3999
|
children,
|
|
3979
4000
|
...props
|
|
3980
4001
|
}) {
|
|
3981
|
-
return /* @__PURE__ */ (0,
|
|
4002
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Popover, { ...props, content: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(UserContent, {}), children });
|
|
3982
4003
|
}
|
|
3983
4004
|
|
|
3984
4005
|
// src/components/LoginButton/index.tsx
|
|
3985
4006
|
var import_react_intl8 = require("react-intl");
|
|
3986
|
-
var
|
|
4007
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
3987
4008
|
function LoginButton({
|
|
3988
4009
|
loginRender,
|
|
3989
4010
|
methods,
|
|
@@ -3999,8 +4020,8 @@ function LoginButton({
|
|
|
3999
4020
|
const { isLogin, username } = useUserInfo();
|
|
4000
4021
|
const [loginOpen, setLoginOpen] = (0, import_react19.useState)(false);
|
|
4001
4022
|
if (!isLogin) {
|
|
4002
|
-
return /* @__PURE__ */ (0,
|
|
4003
|
-
/* @__PURE__ */ (0,
|
|
4023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
|
|
4024
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4004
4025
|
LoginModal,
|
|
4005
4026
|
{
|
|
4006
4027
|
methods,
|
|
@@ -4010,15 +4031,15 @@ function LoginButton({
|
|
|
4010
4031
|
onClose: () => setLoginOpen(false)
|
|
4011
4032
|
}
|
|
4012
4033
|
),
|
|
4013
|
-
/* @__PURE__ */ (0,
|
|
4014
|
-
/* @__PURE__ */ (0,
|
|
4015
|
-
/* @__PURE__ */ (0,
|
|
4034
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(Button, { className: "matchid-unlogin-btn", ...props, highlight: true, onClick: () => setLoginOpen(true), children: [
|
|
4035
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(UnLoginIcon_default, {}),
|
|
4036
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react_intl8.FormattedMessage, { id: "login" }) })
|
|
4016
4037
|
] })
|
|
4017
4038
|
] });
|
|
4018
4039
|
}
|
|
4019
|
-
return loginRender ? /* @__PURE__ */ (0,
|
|
4020
|
-
/* @__PURE__ */ (0,
|
|
4021
|
-
/* @__PURE__ */ (0,
|
|
4040
|
+
return loginRender ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_jsx_runtime76.Fragment, { children: loginRender }) : /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(UserPopover, { position: popoverPosition, type: popoverType, gap: popoverGap, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(Button, { onClick: onLoginClick, className: "matchid-login-btn", ...props, children: [
|
|
4041
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(LoginIcon_default, {}),
|
|
4042
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { children: username ? truncateAddress(username) : "MatchID " + intl.formatMessage({
|
|
4022
4043
|
id: "user"
|
|
4023
4044
|
}) })
|
|
4024
4045
|
] }) });
|
|
@@ -4027,15 +4048,15 @@ function LoginButton({
|
|
|
4027
4048
|
// src/components/UsernameModal/index.tsx
|
|
4028
4049
|
var import_react20 = require("react");
|
|
4029
4050
|
var import_react_intl9 = require("react-intl");
|
|
4030
|
-
var
|
|
4051
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
4031
4052
|
var ValidItem = ({
|
|
4032
4053
|
success = false,
|
|
4033
4054
|
text
|
|
4034
4055
|
}) => {
|
|
4035
4056
|
const isDownMd = useDownMd();
|
|
4036
|
-
return /* @__PURE__ */ (0,
|
|
4037
|
-
success ? /* @__PURE__ */ (0,
|
|
4038
|
-
/* @__PURE__ */ (0,
|
|
4057
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: `matchid-valid-status-item matchid-valid-status-${success ? "success" : "error"}`, children: [
|
|
4058
|
+
success ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(CheckRoundIcon, { size: isDownMd ? 12 : 16 }) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(InfoLineIcon, { size: isDownMd ? 12 : 16 }),
|
|
4059
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { children: text })
|
|
4039
4060
|
] });
|
|
4040
4061
|
};
|
|
4041
4062
|
function UsernameModal({
|
|
@@ -4083,12 +4104,12 @@ function UsernameModal({
|
|
|
4083
4104
|
}
|
|
4084
4105
|
};
|
|
4085
4106
|
const intl = (0, import_react_intl9.useIntl)();
|
|
4086
|
-
return /* @__PURE__ */ (0,
|
|
4107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ModalWithHeader, { isOpen: isOpen && isLogin, ...props, title: title || intl.formatMessage({
|
|
4087
4108
|
id: username ? "editUsernameTitle" : "setUsernameTitle"
|
|
4088
|
-
}), children: /* @__PURE__ */ (0,
|
|
4089
|
-
/* @__PURE__ */ (0,
|
|
4109
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "matchid-username-box", children: [
|
|
4110
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Field, { label: intl.formatMessage({
|
|
4090
4111
|
id: "username"
|
|
4091
|
-
}), error, children: /* @__PURE__ */ (0,
|
|
4112
|
+
}), error, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
4092
4113
|
Input,
|
|
4093
4114
|
{
|
|
4094
4115
|
placeholder: intl.formatMessage({
|
|
@@ -4101,8 +4122,8 @@ function UsernameModal({
|
|
|
4101
4122
|
value: val
|
|
4102
4123
|
}
|
|
4103
4124
|
) }),
|
|
4104
|
-
/* @__PURE__ */ (0,
|
|
4105
|
-
/* @__PURE__ */ (0,
|
|
4125
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "matchid-valid", children: [
|
|
4126
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
4106
4127
|
ValidItem,
|
|
4107
4128
|
{
|
|
4108
4129
|
success: isValid,
|
|
@@ -4111,16 +4132,16 @@ function UsernameModal({
|
|
|
4111
4132
|
})
|
|
4112
4133
|
}
|
|
4113
4134
|
),
|
|
4114
|
-
/* @__PURE__ */ (0,
|
|
4135
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ValidItem, { success: isLength, text: intl.formatMessage({
|
|
4115
4136
|
id: "usernameLengthError"
|
|
4116
4137
|
}) })
|
|
4117
4138
|
] }),
|
|
4118
|
-
/* @__PURE__ */ (0,
|
|
4139
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Button, { disabled: !isSafe, loading: isSubmitting, style: {
|
|
4119
4140
|
marginTop: isDownMd ? "36px" : "64px"
|
|
4120
|
-
}, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0,
|
|
4121
|
-
/* @__PURE__ */ (0,
|
|
4141
|
+
}, onClick: onSubmit, size: "lg", block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react_intl9.FormattedMessage, { id: "confirm" }) }),
|
|
4142
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Button, { style: {
|
|
4122
4143
|
marginTop: isDownMd ? "12px" : "24px"
|
|
4123
|
-
}, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ (0,
|
|
4144
|
+
}, onClick: props.onClose, size: "lg", block: true, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react_intl9.FormattedMessage, { id: "cancel" }) })
|
|
4124
4145
|
] }) });
|
|
4125
4146
|
}
|
|
4126
4147
|
|
|
@@ -4139,7 +4160,7 @@ var walletConnectImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEA
|
|
|
4139
4160
|
var walletSigningImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAABAsUlEQVR4Xu19CXQUx7X2vCUveS/vJdgx+yaJHQwI8G4wzWIbG2LLNrbxPgnY7CC0SyNpJBAIECAZAbLB8gAyKGGxiFnkGJwmz47xsU0mvyEWoGW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1FRF/egjxfgcMboYzp8/H/zll1+qvz9/Xj3/1VfqVwYWFRWhu0e9cOGCto20sLBQo3gz8P4ust/Bk3kwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYDN/x/wHjsXZ4EUApzgAAAABJRU5ErkJggg==";
|
|
4140
4161
|
|
|
4141
4162
|
// src/components/WalletModalContent/index.tsx
|
|
4142
|
-
var
|
|
4163
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
4143
4164
|
function WalletModalContent({
|
|
4144
4165
|
status,
|
|
4145
4166
|
error,
|
|
@@ -4209,12 +4230,12 @@ function WalletModalContent({
|
|
|
4209
4230
|
statusImage: walletConnectImage
|
|
4210
4231
|
};
|
|
4211
4232
|
}, [visible, connected, status, error, address]);
|
|
4212
|
-
return /* @__PURE__ */ (0,
|
|
4213
|
-
/* @__PURE__ */ (0,
|
|
4214
|
-
/* @__PURE__ */ (0,
|
|
4215
|
-
/* @__PURE__ */ (0,
|
|
4233
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "matchid-wallet-container", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: `matchid-wallet-box`, children: [
|
|
4234
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: `matchid-wallet-content`, children: [
|
|
4235
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("img", { src: pageData.statusImage }),
|
|
4236
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: pageData.isError ? "text-[#F7585E]" : "", children: pageData.text })
|
|
4216
4237
|
] }),
|
|
4217
|
-
/* @__PURE__ */ (0,
|
|
4238
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
|
|
4218
4239
|
Button,
|
|
4219
4240
|
{
|
|
4220
4241
|
block: true,
|
|
@@ -4336,7 +4357,7 @@ var useTRONWallet = () => {
|
|
|
4336
4357
|
};
|
|
4337
4358
|
|
|
4338
4359
|
// src/components/TRONModal/index.tsx
|
|
4339
|
-
var
|
|
4360
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
4340
4361
|
function TRONConnectModal({
|
|
4341
4362
|
type = "login",
|
|
4342
4363
|
onSuccess,
|
|
@@ -4346,9 +4367,9 @@ function TRONConnectModal({
|
|
|
4346
4367
|
const intl = (0, import_react_intl10.useIntl)();
|
|
4347
4368
|
const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useTRONWallet();
|
|
4348
4369
|
const iconMaps = {
|
|
4349
|
-
tronlink: /* @__PURE__ */ (0,
|
|
4350
|
-
bitget: /* @__PURE__ */ (0,
|
|
4351
|
-
okx: /* @__PURE__ */ (0,
|
|
4370
|
+
tronlink: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(TronLinkIcon, { size: isDownMd ? 36 : 40 }),
|
|
4371
|
+
bitget: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(BitgetIcon, { size: isDownMd ? 36 : 40 }),
|
|
4372
|
+
okx: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(OKXIcon, { size: isDownMd ? 36 : 40 })
|
|
4352
4373
|
};
|
|
4353
4374
|
const { events, login } = useMatch();
|
|
4354
4375
|
const [status, setStatus] = (0, import_react23.useState)("");
|
|
@@ -4440,11 +4461,11 @@ function TRONConnectModal({
|
|
|
4440
4461
|
disconnect();
|
|
4441
4462
|
}
|
|
4442
4463
|
}, [props.isOpen]);
|
|
4443
|
-
return /* @__PURE__ */ (0,
|
|
4464
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
4444
4465
|
id: type == "bind" ? "bindWith" : "loginWith"
|
|
4445
4466
|
}, {
|
|
4446
4467
|
name: "TRON"
|
|
4447
|
-
}), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0,
|
|
4468
|
+
}), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
4448
4469
|
WalletModalContent,
|
|
4449
4470
|
{
|
|
4450
4471
|
error,
|
|
@@ -4457,9 +4478,9 @@ function TRONConnectModal({
|
|
|
4457
4478
|
setVisible: () => {
|
|
4458
4479
|
}
|
|
4459
4480
|
}
|
|
4460
|
-
) : /* @__PURE__ */ (0,
|
|
4481
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "matchid-login-recommend-list", children: [
|
|
4461
4482
|
installedWallets.map((wallet2) => {
|
|
4462
|
-
return /* @__PURE__ */ (0,
|
|
4483
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
4463
4484
|
RecommendItem,
|
|
4464
4485
|
{
|
|
4465
4486
|
icon: iconMaps[wallet2.walletKey],
|
|
@@ -4472,14 +4493,14 @@ function TRONConnectModal({
|
|
|
4472
4493
|
);
|
|
4473
4494
|
}),
|
|
4474
4495
|
wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
|
|
4475
|
-
return /* @__PURE__ */ (0,
|
|
4496
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
4476
4497
|
RecommendItem,
|
|
4477
4498
|
{
|
|
4478
4499
|
icon: iconMaps[wallet2.walletKey],
|
|
4479
4500
|
name: wallet2.name,
|
|
4480
4501
|
onClick: () => {
|
|
4481
4502
|
},
|
|
4482
|
-
footer: /* @__PURE__ */ (0,
|
|
4503
|
+
footer: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Button, { size: "sm", onClick: () => {
|
|
4483
4504
|
window.open(wallet2.website);
|
|
4484
4505
|
}, children: "Install" })
|
|
4485
4506
|
},
|
|
@@ -4489,14 +4510,14 @@ function TRONConnectModal({
|
|
|
4489
4510
|
] }) }) });
|
|
4490
4511
|
}
|
|
4491
4512
|
function TRONModal(props) {
|
|
4492
|
-
return props.isOpen && /* @__PURE__ */ (0,
|
|
4513
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(TRONConnectModal, { ...props, type: props.type });
|
|
4493
4514
|
}
|
|
4494
4515
|
|
|
4495
4516
|
// src/components/TONModal/index.tsx
|
|
4496
4517
|
var import_react24 = __toESM(require("react"));
|
|
4497
4518
|
var import_react_intl11 = require("react-intl");
|
|
4498
4519
|
var import_ui_react = require("@tonconnect/ui-react");
|
|
4499
|
-
var
|
|
4520
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
4500
4521
|
function WalletContent({
|
|
4501
4522
|
onSuccess,
|
|
4502
4523
|
type
|
|
@@ -4623,7 +4644,7 @@ function WalletContent({
|
|
|
4623
4644
|
}
|
|
4624
4645
|
}
|
|
4625
4646
|
}, [state]);
|
|
4626
|
-
return /* @__PURE__ */ (0,
|
|
4647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
4627
4648
|
WalletModalContent,
|
|
4628
4649
|
{
|
|
4629
4650
|
connected,
|
|
@@ -4657,20 +4678,20 @@ function TONConnectModal({
|
|
|
4657
4678
|
const intl = (0, import_react_intl11.useIntl)();
|
|
4658
4679
|
const { endpoints, appid } = useLocalStore_default();
|
|
4659
4680
|
const manifestUrl = `${endpoints.back}api/v1/wallet/ton?appid=${appid}&url=` + encodeURIComponent(window.location.origin);
|
|
4660
|
-
return /* @__PURE__ */ (0,
|
|
4681
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
4661
4682
|
id: type == "bind" ? "bindWith" : "loginWith"
|
|
4662
4683
|
}, {
|
|
4663
4684
|
name: "TON"
|
|
4664
|
-
}), children: /* @__PURE__ */ (0,
|
|
4685
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
4665
4686
|
import_ui_react.TonConnectUIProvider,
|
|
4666
4687
|
{
|
|
4667
4688
|
manifestUrl,
|
|
4668
|
-
children: /* @__PURE__ */ (0,
|
|
4689
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(WalletContent, { onSuccess, type })
|
|
4669
4690
|
}
|
|
4670
4691
|
) });
|
|
4671
4692
|
}
|
|
4672
4693
|
function TONModal(props) {
|
|
4673
|
-
return props.isOpen && /* @__PURE__ */ (0,
|
|
4694
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(TONConnectModal, { ...props });
|
|
4674
4695
|
}
|
|
4675
4696
|
|
|
4676
4697
|
// src/components/BTCModal/index.tsx
|
|
@@ -4815,7 +4836,7 @@ var LeatherAdapter = class {
|
|
|
4815
4836
|
return response.result.addresses[0].address;
|
|
4816
4837
|
}
|
|
4817
4838
|
async signMessage(message) {
|
|
4818
|
-
if (!await this.isInstalled()) throw new Error("
|
|
4839
|
+
if (!await this.isInstalled()) throw new Error("Leather Wallet is not installed");
|
|
4819
4840
|
const response = await window.LeatherProvider?.request("signMessage", { message });
|
|
4820
4841
|
matchlog_default.log("response", response);
|
|
4821
4842
|
return response.result.signature;
|
|
@@ -4824,8 +4845,43 @@ var LeatherAdapter = class {
|
|
|
4824
4845
|
|
|
4825
4846
|
// src/hooks/useBTCWallet.ts
|
|
4826
4847
|
var import_react25 = require("react");
|
|
4848
|
+
|
|
4849
|
+
// src/lib/btc/PhantomAdapter.ts
|
|
4850
|
+
var PhantomAdapter = class {
|
|
4851
|
+
constructor() {
|
|
4852
|
+
this.name = "Phantom Wallet";
|
|
4853
|
+
this.website = "https://www.phantom.com/";
|
|
4854
|
+
this.walletKey = "phantom";
|
|
4855
|
+
}
|
|
4856
|
+
async isInstalled() {
|
|
4857
|
+
return typeof window.phantom !== "undefined" && typeof window.phantom.bitcoin !== "undefined";
|
|
4858
|
+
}
|
|
4859
|
+
async connect() {
|
|
4860
|
+
if (!await this.isInstalled()) throw new Error("Phantom Wallet is not installed");
|
|
4861
|
+
const response = await window.phantom.bitcoin.requestAccounts();
|
|
4862
|
+
const ordinalAddress = response.find((n) => n.purpose == "ordinals");
|
|
4863
|
+
matchlog_default.log("Addresses:", ordinalAddress);
|
|
4864
|
+
if (!ordinalAddress) {
|
|
4865
|
+
throw new Error("No addresses found in Phantom Wallet");
|
|
4866
|
+
}
|
|
4867
|
+
return ordinalAddress.address;
|
|
4868
|
+
}
|
|
4869
|
+
async signMessage(message) {
|
|
4870
|
+
if (!await this.isInstalled()) throw new Error("Phantom Wallet is not installed");
|
|
4871
|
+
const address = await this.connect();
|
|
4872
|
+
try {
|
|
4873
|
+
const { signature } = await window.phantom.bitcoin.signMessage(address, new TextEncoder().encode(message));
|
|
4874
|
+
return bytesToBase64(signature);
|
|
4875
|
+
} catch (error) {
|
|
4876
|
+
console.error(error);
|
|
4877
|
+
throw error;
|
|
4878
|
+
}
|
|
4879
|
+
}
|
|
4880
|
+
};
|
|
4881
|
+
|
|
4882
|
+
// src/hooks/useBTCWallet.ts
|
|
4827
4883
|
var useBTCWallet = () => {
|
|
4828
|
-
const wallets = [new UnisatAdapter(), new XverseAdapter(), new LeatherAdapter()];
|
|
4884
|
+
const wallets = [new UnisatAdapter(), new XverseAdapter(), new LeatherAdapter(), new PhantomAdapter()];
|
|
4829
4885
|
const [installedWallets, setInstalledWallets] = (0, import_react25.useState)([]);
|
|
4830
4886
|
const [address, setAddress] = (0, import_react25.useState)(null);
|
|
4831
4887
|
(0, import_react25.useEffect)(() => {
|
|
@@ -4858,7 +4914,7 @@ var useBTCWallet = () => {
|
|
|
4858
4914
|
};
|
|
4859
4915
|
|
|
4860
4916
|
// src/components/BTCModal/index.tsx
|
|
4861
|
-
var
|
|
4917
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
4862
4918
|
function BTCConnectModal({
|
|
4863
4919
|
type = "login",
|
|
4864
4920
|
onSuccess,
|
|
@@ -4868,9 +4924,10 @@ function BTCConnectModal({
|
|
|
4868
4924
|
const intl = (0, import_react_intl12.useIntl)();
|
|
4869
4925
|
const { wallets, installedWallets, chooseWallet, wallet, address, onConnect } = useBTCWallet();
|
|
4870
4926
|
const iconMaps = {
|
|
4871
|
-
leather: /* @__PURE__ */ (0,
|
|
4872
|
-
unisat: /* @__PURE__ */ (0,
|
|
4873
|
-
xverse: /* @__PURE__ */ (0,
|
|
4927
|
+
leather: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(LeatherIcon, { size: isDownMd ? 36 : 40 }),
|
|
4928
|
+
unisat: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(UnisatIcon, { size: isDownMd ? 36 : 40 }),
|
|
4929
|
+
xverse: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(XverseIcon, { size: isDownMd ? 36 : 40 }),
|
|
4930
|
+
phantom: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(PhantomIcon, { size: isDownMd ? 36 : 40 })
|
|
4874
4931
|
};
|
|
4875
4932
|
const { events, login } = useMatch();
|
|
4876
4933
|
const [status, setStatus] = (0, import_react26.useState)("");
|
|
@@ -4970,11 +5027,11 @@ function BTCConnectModal({
|
|
|
4970
5027
|
statusRef.current = "";
|
|
4971
5028
|
setError("");
|
|
4972
5029
|
};
|
|
4973
|
-
return /* @__PURE__ */ (0,
|
|
5030
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
4974
5031
|
id: type == "bind" ? "bindWith" : "loginWith"
|
|
4975
5032
|
}, {
|
|
4976
5033
|
name: "BTC"
|
|
4977
|
-
}), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0,
|
|
5034
|
+
}), onBack: wallet ? onBack : void 0, children: wallet ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
4978
5035
|
WalletModalContent,
|
|
4979
5036
|
{
|
|
4980
5037
|
error,
|
|
@@ -4987,9 +5044,9 @@ function BTCConnectModal({
|
|
|
4987
5044
|
setVisible: () => {
|
|
4988
5045
|
}
|
|
4989
5046
|
}
|
|
4990
|
-
) : /* @__PURE__ */ (0,
|
|
5047
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "matchid-login-recommend-list", children: [
|
|
4991
5048
|
installedWallets.map((wallet2) => {
|
|
4992
|
-
return /* @__PURE__ */ (0,
|
|
5049
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
4993
5050
|
RecommendItem,
|
|
4994
5051
|
{
|
|
4995
5052
|
icon: iconMaps[wallet2.walletKey],
|
|
@@ -5002,14 +5059,14 @@ function BTCConnectModal({
|
|
|
5002
5059
|
);
|
|
5003
5060
|
}),
|
|
5004
5061
|
wallets.filter((wallet2) => !installedWallets.find((installedWallet) => installedWallet.walletKey == wallet2.walletKey)).map((wallet2) => {
|
|
5005
|
-
return /* @__PURE__ */ (0,
|
|
5062
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
5006
5063
|
RecommendItem,
|
|
5007
5064
|
{
|
|
5008
5065
|
icon: iconMaps[wallet2.walletKey],
|
|
5009
5066
|
name: wallet2.name,
|
|
5010
5067
|
onClick: () => {
|
|
5011
5068
|
},
|
|
5012
|
-
footer: /* @__PURE__ */ (0,
|
|
5069
|
+
footer: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Button, { size: "sm", onClick: () => {
|
|
5013
5070
|
window.open(wallet2.website);
|
|
5014
5071
|
}, children: "Install" })
|
|
5015
5072
|
},
|
|
@@ -5019,13 +5076,13 @@ function BTCConnectModal({
|
|
|
5019
5076
|
] }) }) });
|
|
5020
5077
|
}
|
|
5021
5078
|
function BTCModal(props) {
|
|
5022
|
-
return props.isOpen && /* @__PURE__ */ (0,
|
|
5079
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(BTCConnectModal, { ...props });
|
|
5023
5080
|
}
|
|
5024
5081
|
|
|
5025
5082
|
// src/components/WalletModal/index.tsx
|
|
5026
5083
|
var import_react27 = require("react");
|
|
5027
5084
|
var import_react_intl13 = require("react-intl");
|
|
5028
|
-
var
|
|
5085
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
5029
5086
|
function WalletConnectModal({
|
|
5030
5087
|
type,
|
|
5031
5088
|
methods: _methods,
|
|
@@ -5043,13 +5100,13 @@ function WalletConnectModal({
|
|
|
5043
5100
|
const platform = config.platform.map((p) => p.toLowerCase());
|
|
5044
5101
|
return WALLET_METHODS.filter((m) => platform.includes(m));
|
|
5045
5102
|
}, [config.platform, _methods]);
|
|
5046
|
-
return /* @__PURE__ */ (0,
|
|
5103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ModalWithHeader, { ...props, title: props.title || intl.formatMessage({
|
|
5047
5104
|
id: type == "bind" ? "bindWith" : "loginWith"
|
|
5048
5105
|
}, {
|
|
5049
5106
|
name: ""
|
|
5050
|
-
}), children: /* @__PURE__ */ (0,
|
|
5107
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "matchid-login-box", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "matchid-login-recommend-list", children: methods.map((method, index) => {
|
|
5051
5108
|
const m = walletMap[method];
|
|
5052
|
-
return /* @__PURE__ */ (0,
|
|
5109
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
5053
5110
|
RecommendItem,
|
|
5054
5111
|
{
|
|
5055
5112
|
icon: m?.icon,
|
|
@@ -5063,12 +5120,12 @@ function WalletConnectModal({
|
|
|
5063
5120
|
}) }) }) });
|
|
5064
5121
|
}
|
|
5065
5122
|
function WalletModal(props) {
|
|
5066
|
-
return props.isOpen && /* @__PURE__ */ (0,
|
|
5123
|
+
return props.isOpen && /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(WalletConnectModal, { ...props });
|
|
5067
5124
|
}
|
|
5068
5125
|
|
|
5069
5126
|
// src/components/AlphaAvatar/index.tsx
|
|
5070
5127
|
var import_react28 = require("react");
|
|
5071
|
-
var
|
|
5128
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
5072
5129
|
function AlphaAvatar2({ name, size = 40, className = "" }) {
|
|
5073
5130
|
const [avatar, setAvatar] = (0, import_react28.useState)(void 0);
|
|
5074
5131
|
(0, import_react28.useEffect)(() => {
|
|
@@ -5077,7 +5134,7 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
|
|
|
5077
5134
|
setAvatar(char);
|
|
5078
5135
|
}
|
|
5079
5136
|
}, [name]);
|
|
5080
|
-
return /* @__PURE__ */ (0,
|
|
5137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: `matchid-alpha-avatar ${className}`, style: {
|
|
5081
5138
|
width: size,
|
|
5082
5139
|
height: size,
|
|
5083
5140
|
fontSize: Math.ceil(size / 2)
|
|
@@ -5085,7 +5142,7 @@ function AlphaAvatar2({ name, size = 40, className = "" }) {
|
|
|
5085
5142
|
}
|
|
5086
5143
|
|
|
5087
5144
|
// src/components/WalletAsset/index.tsx
|
|
5088
|
-
var
|
|
5145
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
5089
5146
|
function WalletAsset({
|
|
5090
5147
|
onAssetClick,
|
|
5091
5148
|
matchWalletAssetsOptions
|
|
@@ -5095,7 +5152,7 @@ function WalletAsset({
|
|
|
5095
5152
|
list: walletAssets.mergedAssets
|
|
5096
5153
|
});
|
|
5097
5154
|
const { list } = useMatchChain();
|
|
5098
|
-
return /* @__PURE__ */ (0,
|
|
5155
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-wallet-asset-list", children: matchWalletAssetList.list.map((n, index) => {
|
|
5099
5156
|
const clickFunc = onAssetClick && onAssetClick(n);
|
|
5100
5157
|
const chain = list?.find((m) => m.id.toString() === n.chain_id);
|
|
5101
5158
|
const getFooterColor = () => {
|
|
@@ -5110,11 +5167,11 @@ function WalletAsset({
|
|
|
5110
5167
|
}
|
|
5111
5168
|
return "";
|
|
5112
5169
|
};
|
|
5113
|
-
return /* @__PURE__ */ (0,
|
|
5170
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: `matchid-wallet-asset-item`, onClick: clickFunc, style: {
|
|
5114
5171
|
cursor: clickFunc ? "pointer" : "default"
|
|
5115
5172
|
}, children: [
|
|
5116
|
-
/* @__PURE__ */ (0,
|
|
5117
|
-
n.icon ? /* @__PURE__ */ (0,
|
|
5173
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "matchid-wallet-asset-logo", title: n.symbol || n.name || "", children: [
|
|
5174
|
+
n.icon ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("img", { src: n.icon, alt: n.symbol, className: `matchid-wallet-asset-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5118
5175
|
AlphaAvatar2,
|
|
5119
5176
|
{
|
|
5120
5177
|
className: `matchid-wallet-asset-icon`,
|
|
@@ -5122,12 +5179,12 @@ function WalletAsset({
|
|
|
5122
5179
|
name: n.symbol || n.name || ""
|
|
5123
5180
|
}
|
|
5124
5181
|
),
|
|
5125
|
-
chain?.iconUrl && /* @__PURE__ */ (0,
|
|
5182
|
+
chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-wallet-asset-chain` })
|
|
5126
5183
|
] }),
|
|
5127
|
-
/* @__PURE__ */ (0,
|
|
5128
|
-
/* @__PURE__ */ (0,
|
|
5129
|
-
"price" in n && /* @__PURE__ */ (0,
|
|
5130
|
-
/* @__PURE__ */ (0,
|
|
5184
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: `matchid-wallet-asset-info`, children: [
|
|
5185
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: `matchid-wallet-asset-name`, children: n.symbol }),
|
|
5186
|
+
"price" in n && /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: `matchid-wallet-asset-content`, children: [
|
|
5187
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-wallet-asset-price", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5131
5188
|
NumberFormatter,
|
|
5132
5189
|
{
|
|
5133
5190
|
value: n.price,
|
|
@@ -5135,7 +5192,7 @@ function WalletAsset({
|
|
|
5135
5192
|
tFixNum: 2
|
|
5136
5193
|
}
|
|
5137
5194
|
) }),
|
|
5138
|
-
/* @__PURE__ */ (0,
|
|
5195
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "matchid-wallet-asset-value", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5139
5196
|
NumberFormatter,
|
|
5140
5197
|
{
|
|
5141
5198
|
value: n.value,
|
|
@@ -5144,15 +5201,15 @@ function WalletAsset({
|
|
|
5144
5201
|
}
|
|
5145
5202
|
) })
|
|
5146
5203
|
] }),
|
|
5147
|
-
/* @__PURE__ */ (0,
|
|
5148
|
-
/* @__PURE__ */ (0,
|
|
5204
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: `matchid-wallet-asset-footer`, children: [
|
|
5205
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: `matchid-wallet-asset-balance`, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5149
5206
|
NumberFormatter,
|
|
5150
5207
|
{
|
|
5151
5208
|
value: n.balance,
|
|
5152
5209
|
tFixNum: 3
|
|
5153
5210
|
}
|
|
5154
5211
|
) }),
|
|
5155
|
-
"price_change_24h" in n && /* @__PURE__ */ (0,
|
|
5212
|
+
"price_change_24h" in n && /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: `matchid-wallet-asset-change ${getFooterColor()}`, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5156
5213
|
NumberFormatter,
|
|
5157
5214
|
{
|
|
5158
5215
|
prefix: `${(n?.price_change_24h || 0) < 0 ? "-" : "+"} `,
|
|
@@ -5171,7 +5228,7 @@ function WalletAsset({
|
|
|
5171
5228
|
var import_react29 = require("react");
|
|
5172
5229
|
var import_viem6 = require("viem");
|
|
5173
5230
|
var import_react_intl14 = require("react-intl");
|
|
5174
|
-
var
|
|
5231
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
5175
5232
|
function Input2({
|
|
5176
5233
|
onChange,
|
|
5177
5234
|
placeholder,
|
|
@@ -5181,8 +5238,8 @@ function Input2({
|
|
|
5181
5238
|
error,
|
|
5182
5239
|
size = "df"
|
|
5183
5240
|
}) {
|
|
5184
|
-
return /* @__PURE__ */ (0,
|
|
5185
|
-
/* @__PURE__ */ (0,
|
|
5241
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: `matchid-token-input-box ${"matchid-token-input-" + size}`, children: [
|
|
5242
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5186
5243
|
"input",
|
|
5187
5244
|
{
|
|
5188
5245
|
placeholder,
|
|
@@ -5193,7 +5250,7 @@ function Input2({
|
|
|
5193
5250
|
className: `matchid-token-input ${error ? "matchid-token-input-error" : ""}`
|
|
5194
5251
|
}
|
|
5195
5252
|
),
|
|
5196
|
-
error && /* @__PURE__ */ (0,
|
|
5253
|
+
error && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "matchid-token-input-error-text", children: error })
|
|
5197
5254
|
] });
|
|
5198
5255
|
}
|
|
5199
5256
|
function TokenSend({
|
|
@@ -5321,24 +5378,24 @@ function TokenSend({
|
|
|
5321
5378
|
window.removeEventListener("message", receiveMessage);
|
|
5322
5379
|
};
|
|
5323
5380
|
}, []);
|
|
5324
|
-
return /* @__PURE__ */ (0,
|
|
5325
|
-
/* @__PURE__ */ (0,
|
|
5326
|
-
/* @__PURE__ */ (0,
|
|
5327
|
-
/* @__PURE__ */ (0,
|
|
5328
|
-
/* @__PURE__ */ (0,
|
|
5329
|
-
/* @__PURE__ */ (0,
|
|
5330
|
-
token.icon ? /* @__PURE__ */ (0,
|
|
5381
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ModalDrawer, { isOpen: true, onClose, zIndex, title: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_intl14.FormattedMessage, { id: "send" }), onBack, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: `matchid-token-send-box`, children: [
|
|
5382
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "matchid-token-send-content", children: [
|
|
5383
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: `matchid-token-amount-content`, children: [
|
|
5384
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: `matchid-token-amount-header`, children: [
|
|
5385
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: `matchid-token-amount-title`, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_intl14.FormattedMessage, { id: "amount" }) }),
|
|
5386
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: `matchid-token-amount-chain`, children: [
|
|
5387
|
+
token.icon ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5331
5388
|
"img",
|
|
5332
5389
|
{
|
|
5333
5390
|
src: token?.icon,
|
|
5334
5391
|
alt: token?.symbol,
|
|
5335
5392
|
className: `matchid-token-amount-chain-icon`
|
|
5336
5393
|
}
|
|
5337
|
-
) : /* @__PURE__ */ (0,
|
|
5338
|
-
/* @__PURE__ */ (0,
|
|
5394
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(AlphaAvatar, { name: token.symbol || token.name || "", size: 16 }),
|
|
5395
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { children: token?.symbol })
|
|
5339
5396
|
] })
|
|
5340
5397
|
] }),
|
|
5341
|
-
/* @__PURE__ */ (0,
|
|
5398
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5342
5399
|
Input2,
|
|
5343
5400
|
{
|
|
5344
5401
|
type: "text",
|
|
@@ -5351,18 +5408,18 @@ function TokenSend({
|
|
|
5351
5408
|
error: error.amount || txError
|
|
5352
5409
|
}
|
|
5353
5410
|
),
|
|
5354
|
-
/* @__PURE__ */ (0,
|
|
5355
|
-
/* @__PURE__ */ (0,
|
|
5356
|
-
/* @__PURE__ */ (0,
|
|
5411
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: `matchid-token-amount-footer`, children: [
|
|
5412
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: `matchid-token-amount-title`, children: [
|
|
5413
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_intl14.FormattedMessage, { id: "balance" }),
|
|
5357
5414
|
":"
|
|
5358
5415
|
] }),
|
|
5359
|
-
/* @__PURE__ */ (0,
|
|
5416
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: `matchid-token-amount-value`, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(NumberFormatter, { value: token.balance, tFixNum: 10, suffix: " " + token.symbol }) })
|
|
5360
5417
|
] }),
|
|
5361
|
-
/* @__PURE__ */ (0,
|
|
5418
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(TransferIcon, { className: "matchid-token-amount-transfer" })
|
|
5362
5419
|
] }),
|
|
5363
|
-
/* @__PURE__ */ (0,
|
|
5364
|
-
/* @__PURE__ */ (0,
|
|
5365
|
-
/* @__PURE__ */ (0,
|
|
5420
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: `matchid-token-address-content`, children: [
|
|
5421
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: `matchid-token-address-header`, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: `matchid-token-address-title`, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_intl14.FormattedMessage, { id: "receiveTitle" }) }) }),
|
|
5422
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5366
5423
|
Input2,
|
|
5367
5424
|
{
|
|
5368
5425
|
type: "text",
|
|
@@ -5378,7 +5435,7 @@ function TokenSend({
|
|
|
5378
5435
|
)
|
|
5379
5436
|
] })
|
|
5380
5437
|
] }),
|
|
5381
|
-
/* @__PURE__ */ (0,
|
|
5438
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
5382
5439
|
Button,
|
|
5383
5440
|
{
|
|
5384
5441
|
size: "lg",
|
|
@@ -5387,7 +5444,7 @@ function TokenSend({
|
|
|
5387
5444
|
disabled: !canSend || !!txError,
|
|
5388
5445
|
onClick: onNext,
|
|
5389
5446
|
loading: loading || sending,
|
|
5390
|
-
children: /* @__PURE__ */ (0,
|
|
5447
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_intl14.FormattedMessage, { id: "next" })
|
|
5391
5448
|
}
|
|
5392
5449
|
)
|
|
5393
5450
|
] }) });
|
|
@@ -5395,7 +5452,7 @@ function TokenSend({
|
|
|
5395
5452
|
|
|
5396
5453
|
// src/components/TokenDetail/index.tsx
|
|
5397
5454
|
var import_react_intl15 = require("react-intl");
|
|
5398
|
-
var
|
|
5455
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
5399
5456
|
function TokenDetail({
|
|
5400
5457
|
onClose,
|
|
5401
5458
|
token
|
|
@@ -5405,41 +5462,41 @@ function TokenDetail({
|
|
|
5405
5462
|
const chain = chainList?.find((m) => m.id.toString() === token.chain_id);
|
|
5406
5463
|
const onSend = () => {
|
|
5407
5464
|
modal.show((props) => {
|
|
5408
|
-
return /* @__PURE__ */ (0,
|
|
5465
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(TokenSend, { onClose: () => {
|
|
5409
5466
|
props.close();
|
|
5410
5467
|
onClose();
|
|
5411
5468
|
}, onBack: props.close, zIndex: props.zIndex, token });
|
|
5412
5469
|
});
|
|
5413
5470
|
};
|
|
5414
5471
|
const intl = (0, import_react_intl15.useIntl)();
|
|
5415
|
-
return /* @__PURE__ */ (0,
|
|
5472
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ModalDrawer, { isOpen: true, title: intl.formatMessage({
|
|
5416
5473
|
id: "tokenDetails"
|
|
5417
|
-
}), onClose, children: /* @__PURE__ */ (0,
|
|
5418
|
-
/* @__PURE__ */ (0,
|
|
5419
|
-
/* @__PURE__ */ (0,
|
|
5420
|
-
/* @__PURE__ */ (0,
|
|
5421
|
-
token.icon ? /* @__PURE__ */ (0,
|
|
5422
|
-
chain?.iconUrl && /* @__PURE__ */ (0,
|
|
5474
|
+
}), onClose, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: `matchid-token-detail`, children: [
|
|
5475
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: `matchid-token-main`, children: [
|
|
5476
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: `matchid-token-info`, children: [
|
|
5477
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: `matchid-token-logo`, children: [
|
|
5478
|
+
token.icon ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("img", { src: token.icon, alt: token.symbol, className: `matchid-token-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(AlphaAvatar, { className: `matchid-token-icon`, size: 48, name: token.symbol || token.name || "" }),
|
|
5479
|
+
chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("img", { src: chain.iconUrl, alt: chain.name, className: `matchid-token-chain` })
|
|
5423
5480
|
] }),
|
|
5424
|
-
/* @__PURE__ */ (0,
|
|
5425
|
-
/* @__PURE__ */ (0,
|
|
5481
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: `matchid-token-name`, children: [
|
|
5482
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(NumberFormatter, { value: token.balance, tFixNum: 10 }),
|
|
5426
5483
|
" ",
|
|
5427
5484
|
token.symbol
|
|
5428
5485
|
] })
|
|
5429
5486
|
] }),
|
|
5430
|
-
token.address.toLowerCase() != NATIVE_TOKEN_ADDRESS && /* @__PURE__ */ (0,
|
|
5431
|
-
/* @__PURE__ */ (0,
|
|
5432
|
-
/* @__PURE__ */ (0,
|
|
5487
|
+
token.address.toLowerCase() != NATIVE_TOKEN_ADDRESS && /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: `matchid-token-contract`, children: [
|
|
5488
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "matchid-token-contract-title", children: "Contract address" }),
|
|
5489
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "matchid-token-contract-address", children: token.address })
|
|
5433
5490
|
] })
|
|
5434
5491
|
] }),
|
|
5435
|
-
/* @__PURE__ */ (0,
|
|
5492
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Button, { size: "lg", block: true, highlight: true, onClick: onSend, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_intl15.FormattedMessage, { id: "send" }) })
|
|
5436
5493
|
] }) });
|
|
5437
5494
|
}
|
|
5438
5495
|
|
|
5439
5496
|
// src/components/TokenSendList/index.tsx
|
|
5440
5497
|
var import_react30 = require("react");
|
|
5441
5498
|
var import_react_intl16 = require("react-intl");
|
|
5442
|
-
var
|
|
5499
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
5443
5500
|
function TokenSendList({ close }) {
|
|
5444
5501
|
const isDownMd = useDownMd();
|
|
5445
5502
|
const walletAssets = useMatchWalletAssets();
|
|
@@ -5451,16 +5508,16 @@ function TokenSendList({ close }) {
|
|
|
5451
5508
|
const modal = useModal();
|
|
5452
5509
|
const onNext = () => {
|
|
5453
5510
|
checked && modal.show((props) => {
|
|
5454
|
-
return /* @__PURE__ */ (0,
|
|
5511
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(TokenSend, { onClose: () => {
|
|
5455
5512
|
props.close();
|
|
5456
5513
|
close();
|
|
5457
5514
|
}, onBack: props.close, zIndex: props.zIndex, token: checked });
|
|
5458
5515
|
});
|
|
5459
5516
|
};
|
|
5460
|
-
return /* @__PURE__ */ (0,
|
|
5461
|
-
/* @__PURE__ */ (0,
|
|
5517
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "matchid-token-send-list-box", children: [
|
|
5518
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "matchid-token-send-list", children: matchWalletAssetList.list.map((n, index) => {
|
|
5462
5519
|
const chain = list?.find((m) => m.id.toString() === n.chain_id);
|
|
5463
|
-
return /* @__PURE__ */ (0,
|
|
5520
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
5464
5521
|
"div",
|
|
5465
5522
|
{
|
|
5466
5523
|
className: `matchid-token-send-item ${checked?.address == n.address ? "matchid-token-send-chekced" : ""}`,
|
|
@@ -5468,10 +5525,10 @@ function TokenSendList({ close }) {
|
|
|
5468
5525
|
setChecked(n);
|
|
5469
5526
|
},
|
|
5470
5527
|
children: [
|
|
5471
|
-
/* @__PURE__ */ (0,
|
|
5472
|
-
/* @__PURE__ */ (0,
|
|
5473
|
-
/* @__PURE__ */ (0,
|
|
5474
|
-
n.icon ? /* @__PURE__ */ (0,
|
|
5528
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Radio, { checked: checked?.address == n.address, size: isDownMd ? 18 : 24 }),
|
|
5529
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "matchid-token-send-content", children: [
|
|
5530
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "matchid-token-send-logo", children: [
|
|
5531
|
+
n.icon ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("img", { src: n.icon, alt: n.symbol, className: `matchid-token-send-icon` }) : /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
5475
5532
|
AlphaAvatar2,
|
|
5476
5533
|
{
|
|
5477
5534
|
className: `matchid-token-send-icon`,
|
|
@@ -5479,7 +5536,7 @@ function TokenSendList({ close }) {
|
|
|
5479
5536
|
name: n.symbol || n.name || ""
|
|
5480
5537
|
}
|
|
5481
5538
|
),
|
|
5482
|
-
chain?.iconUrl && /* @__PURE__ */ (0,
|
|
5539
|
+
chain?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
5483
5540
|
"img",
|
|
5484
5541
|
{
|
|
5485
5542
|
src: chain.iconUrl,
|
|
@@ -5488,9 +5545,9 @@ function TokenSendList({ close }) {
|
|
|
5488
5545
|
}
|
|
5489
5546
|
)
|
|
5490
5547
|
] }),
|
|
5491
|
-
/* @__PURE__ */ (0,
|
|
5492
|
-
/* @__PURE__ */ (0,
|
|
5493
|
-
/* @__PURE__ */ (0,
|
|
5548
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: `matchid-token-send-info`, children: [
|
|
5549
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: `matchid-token-send-name`, children: n.symbol }),
|
|
5550
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: `matchid-token-send-balance`, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(NumberFormatter, { value: n.balance, tFixNum: 3 }) })
|
|
5494
5551
|
] })
|
|
5495
5552
|
] })
|
|
5496
5553
|
]
|
|
@@ -5498,7 +5555,7 @@ function TokenSendList({ close }) {
|
|
|
5498
5555
|
index
|
|
5499
5556
|
);
|
|
5500
5557
|
}) }),
|
|
5501
|
-
/* @__PURE__ */ (0,
|
|
5558
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Button, { size: "lg", highlight: true, block: true, disabled: !checked, onClick: onNext, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_react_intl16.FormattedMessage, { id: "next" }) })
|
|
5502
5559
|
] });
|
|
5503
5560
|
}
|
|
5504
5561
|
|
|
@@ -5566,7 +5623,7 @@ var useContractStore_default = useContractStore;
|
|
|
5566
5623
|
|
|
5567
5624
|
// src/components/TransactionList/index.tsx
|
|
5568
5625
|
var import_react_intl17 = require("react-intl");
|
|
5569
|
-
var
|
|
5626
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
5570
5627
|
var Item = ({ data }) => {
|
|
5571
5628
|
const { address } = useWallet();
|
|
5572
5629
|
const isOut = data.from.toLowerCase() == address.toLowerCase();
|
|
@@ -5653,18 +5710,18 @@ var Item = ({ data }) => {
|
|
|
5653
5710
|
}
|
|
5654
5711
|
return chain?.nativeCurrency.symbol || chain?.nativeCurrency.name;
|
|
5655
5712
|
}, [transferType, chain, contracts, chainId, data.to]);
|
|
5656
|
-
return /* @__PURE__ */ (0,
|
|
5713
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
|
|
5657
5714
|
"a",
|
|
5658
5715
|
{
|
|
5659
5716
|
href: explorerLink(`tx/${data.hash}`),
|
|
5660
5717
|
target: "_blank",
|
|
5661
5718
|
className: `matchid-transaction-item`,
|
|
5662
5719
|
children: [
|
|
5663
|
-
/* @__PURE__ */ (0,
|
|
5664
|
-
/* @__PURE__ */ (0,
|
|
5665
|
-
/* @__PURE__ */ (0,
|
|
5666
|
-
/* @__PURE__ */ (0,
|
|
5667
|
-
/* @__PURE__ */ (0,
|
|
5720
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-transacton-item-container`, children: [
|
|
5721
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "matchid-transaction-item-icon", children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ArrowSendIcon, { className: !isOut ? "rotate-180" : "" }) }),
|
|
5722
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-transaction-item-details`, children: [
|
|
5723
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: `matchid-transaction-item-address`, children: formatAddress(to, 6, 4) }),
|
|
5724
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
5668
5725
|
"div",
|
|
5669
5726
|
{
|
|
5670
5727
|
className: `matchid-transaction-item-timestamp`,
|
|
@@ -5673,11 +5730,11 @@ var Item = ({ data }) => {
|
|
|
5673
5730
|
)
|
|
5674
5731
|
] })
|
|
5675
5732
|
] }),
|
|
5676
|
-
/* @__PURE__ */ (0,
|
|
5677
|
-
/* @__PURE__ */ (0,
|
|
5678
|
-
status == "loading" && /* @__PURE__ */ (0,
|
|
5679
|
-
status == "success" && /* @__PURE__ */ (0,
|
|
5680
|
-
status == "error" && /* @__PURE__ */ (0,
|
|
5733
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: `matchid-transaction-item-amount ${"matchid-transaction-item-" + status}`, children: [
|
|
5734
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(NumberFormatter, { value: amount, tFixNum: 6, prefix: isOut ? "-" : "+", suffix: " " + symbol }),
|
|
5735
|
+
status == "loading" && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(LoadingIcon_default, { color: "#000000", size: 16, rotate: true }),
|
|
5736
|
+
status == "success" && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(CheckRoundIcon, { size: 16 }),
|
|
5737
|
+
status == "error" && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(InfoRoundIcon, { size: 16 })
|
|
5681
5738
|
] })
|
|
5682
5739
|
]
|
|
5683
5740
|
}
|
|
@@ -5687,19 +5744,19 @@ function TransactionList({
|
|
|
5687
5744
|
scrollableTarget
|
|
5688
5745
|
}) {
|
|
5689
5746
|
const { fetchMoreData, hasMore, items } = useMatchWalletRecords();
|
|
5690
|
-
return /* @__PURE__ */ (0,
|
|
5747
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
5691
5748
|
import_react_infinite_scroll_component.default,
|
|
5692
5749
|
{
|
|
5693
5750
|
scrollableTarget,
|
|
5694
5751
|
dataLength: items.length,
|
|
5695
5752
|
next: fetchMoreData,
|
|
5696
5753
|
hasMore,
|
|
5697
|
-
loader: /* @__PURE__ */ (0,
|
|
5698
|
-
/* @__PURE__ */ (0,
|
|
5754
|
+
loader: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "matchid-list-nomore", children: [
|
|
5755
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(LoadingIcon_default, { rotate: true, size: 16, color: "black" }),
|
|
5699
5756
|
"Loading..."
|
|
5700
5757
|
] }),
|
|
5701
|
-
endMessage: items.length > 0 ? /* @__PURE__ */ (0,
|
|
5702
|
-
children: items.length == 0 && !hasMore ? /* @__PURE__ */ (0,
|
|
5758
|
+
endMessage: items.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_intl17.FormattedMessage, { id: "noMoreRecords" }) }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: `matchid-list-nomore`, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_react_intl17.FormattedMessage, { id: "noRecords" }) }),
|
|
5759
|
+
children: items.length == 0 && !hasMore ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "mt-[150px]" }) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: `matchid-transaction-list`, children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Item, { data: item }, index)) })
|
|
5703
5760
|
}
|
|
5704
5761
|
);
|
|
5705
5762
|
}
|
|
@@ -5742,7 +5799,7 @@ function useIsContract({
|
|
|
5742
5799
|
}
|
|
5743
5800
|
|
|
5744
5801
|
// src/components/ImportToken/index.tsx
|
|
5745
|
-
var
|
|
5802
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
5746
5803
|
function ImportToken({ close }) {
|
|
5747
5804
|
const [status, setStatus] = (0, import_react32.useState)("");
|
|
5748
5805
|
const { token } = useUserInfo();
|
|
@@ -5853,19 +5910,19 @@ function ImportToken({ close }) {
|
|
|
5853
5910
|
enabled: canImport
|
|
5854
5911
|
});
|
|
5855
5912
|
if (status == "success" || status == "fail") {
|
|
5856
|
-
return /* @__PURE__ */ (0,
|
|
5857
|
-
/* @__PURE__ */ (0,
|
|
5858
|
-
/* @__PURE__ */ (0,
|
|
5859
|
-
/* @__PURE__ */ (0,
|
|
5913
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-import-token-result matchid-flex`, children: [
|
|
5914
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-import-token-result-box matchid-flex`, children: [
|
|
5915
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("img", { src: status == "success" ? success_default : fail_default, alt: status == "success" ? "success" : "fail", className: `matchid-import-token-result-img` }),
|
|
5916
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: `matchid-import-token-result-text matchid-import-token-result-text-${status}`, children: status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl18.FormattedMessage, { id: "importSuccess" }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl18.FormattedMessage, { id: "importFail" }) })
|
|
5860
5917
|
] }),
|
|
5861
|
-
status == "success" ? /* @__PURE__ */ (0,
|
|
5918
|
+
status == "success" ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Button, { size: "lg", onClick: close, block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl18.FormattedMessage, { id: "close" }) }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Button, { size: "lg", onClick: () => setStatus(""), block: true, highlight: true, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl18.FormattedMessage, { id: "back" }) })
|
|
5862
5919
|
] });
|
|
5863
5920
|
}
|
|
5864
|
-
return /* @__PURE__ */ (0,
|
|
5865
|
-
/* @__PURE__ */ (0,
|
|
5866
|
-
/* @__PURE__ */ (0,
|
|
5921
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: `matchid-import-token`, children: [
|
|
5922
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "matchid-import-token-form", children: [
|
|
5923
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Field, { label: intl.formatMessage({
|
|
5867
5924
|
id: "tokenSmartContract"
|
|
5868
|
-
}), error: error.address ? error.address : isContractQuery.isFetched && !isContractQuery.isLoading && !isContractQuery.data && canImport ? "Address isn't a contract address" : "", children: /* @__PURE__ */ (0,
|
|
5925
|
+
}), error: error.address ? error.address : isContractQuery.isFetched && !isContractQuery.isLoading && !isContractQuery.data && canImport ? "Address isn't a contract address" : "", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5869
5926
|
Input,
|
|
5870
5927
|
{
|
|
5871
5928
|
placeholder: intl.formatMessage({
|
|
@@ -5876,9 +5933,9 @@ function ImportToken({ close }) {
|
|
|
5876
5933
|
maxLength: 42
|
|
5877
5934
|
}
|
|
5878
5935
|
) }),
|
|
5879
|
-
/* @__PURE__ */ (0,
|
|
5936
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Field, { label: intl.formatMessage({
|
|
5880
5937
|
id: "tokenSymbol"
|
|
5881
|
-
}), error: error.symbol, children: /* @__PURE__ */ (0,
|
|
5938
|
+
}), error: error.symbol, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5882
5939
|
Input,
|
|
5883
5940
|
{
|
|
5884
5941
|
placeholder: intl.formatMessage({
|
|
@@ -5889,9 +5946,9 @@ function ImportToken({ close }) {
|
|
|
5889
5946
|
maxLength: 16
|
|
5890
5947
|
}
|
|
5891
5948
|
) }),
|
|
5892
|
-
/* @__PURE__ */ (0,
|
|
5949
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Field, { label: intl.formatMessage({
|
|
5893
5950
|
id: "tokenDecimals"
|
|
5894
|
-
}), error: error.decimals, children: /* @__PURE__ */ (0,
|
|
5951
|
+
}), error: error.decimals, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5895
5952
|
Input,
|
|
5896
5953
|
{
|
|
5897
5954
|
placeholder: intl.formatMessage({
|
|
@@ -5903,7 +5960,7 @@ function ImportToken({ close }) {
|
|
|
5903
5960
|
}
|
|
5904
5961
|
) })
|
|
5905
5962
|
] }),
|
|
5906
|
-
/* @__PURE__ */ (0,
|
|
5963
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
5907
5964
|
Button,
|
|
5908
5965
|
{
|
|
5909
5966
|
size: "lg",
|
|
@@ -5912,14 +5969,14 @@ function ImportToken({ close }) {
|
|
|
5912
5969
|
loading: loading || isContractQuery.isLoading,
|
|
5913
5970
|
disabled: !canImport || !isContractQuery.data,
|
|
5914
5971
|
highlight: true,
|
|
5915
|
-
children: /* @__PURE__ */ (0,
|
|
5972
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_react_intl18.FormattedMessage, { id: "import" })
|
|
5916
5973
|
}
|
|
5917
5974
|
)
|
|
5918
5975
|
] });
|
|
5919
5976
|
}
|
|
5920
5977
|
|
|
5921
5978
|
// src/hooks/useMatchWallet.tsx
|
|
5922
|
-
var
|
|
5979
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
5923
5980
|
var ReceiveModal = () => {
|
|
5924
5981
|
const chain = useMatchChain();
|
|
5925
5982
|
const { address } = useWallet();
|
|
@@ -5933,10 +5990,10 @@ var ReceiveModal = () => {
|
|
|
5933
5990
|
}));
|
|
5934
5991
|
};
|
|
5935
5992
|
const chainLink = chain.explorerLink("address/" + address);
|
|
5936
|
-
return /* @__PURE__ */ (0,
|
|
5937
|
-
/* @__PURE__ */ (0,
|
|
5938
|
-
/* @__PURE__ */ (0,
|
|
5939
|
-
/* @__PURE__ */ (0,
|
|
5993
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: `matchid-receive-modal`, children: [
|
|
5994
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "matchid-receive-container", children: [
|
|
5995
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: `matchid-receive-text`, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_react_intl19.FormattedMessage, { id: "receiveQrcode" }) }),
|
|
5996
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: `matchid-qr-container`, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
5940
5997
|
import_react_qrcode.QRCode,
|
|
5941
5998
|
{
|
|
5942
5999
|
margin: "0",
|
|
@@ -5944,7 +6001,7 @@ var ReceiveModal = () => {
|
|
|
5944
6001
|
value: address
|
|
5945
6002
|
}
|
|
5946
6003
|
) }),
|
|
5947
|
-
/* @__PURE__ */ (0,
|
|
6004
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
5948
6005
|
"a",
|
|
5949
6006
|
{
|
|
5950
6007
|
href: chainLink,
|
|
@@ -5954,7 +6011,7 @@ var ReceiveModal = () => {
|
|
|
5954
6011
|
}
|
|
5955
6012
|
)
|
|
5956
6013
|
] }),
|
|
5957
|
-
/* @__PURE__ */ (0,
|
|
6014
|
+
/* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Button, { size: "lg", onClick: onCopy, block: true, highlight: true, disabled: copied, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
5958
6015
|
import_react_intl19.FormattedMessage,
|
|
5959
6016
|
{
|
|
5960
6017
|
id: "copyAddress"
|
|
@@ -6578,7 +6635,7 @@ function useTransaction({
|
|
|
6578
6635
|
// src/components/CEXBindModal/index.tsx
|
|
6579
6636
|
var import_react36 = require("react");
|
|
6580
6637
|
var import_react_intl20 = require("react-intl");
|
|
6581
|
-
var
|
|
6638
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
6582
6639
|
function CEXBindModal({
|
|
6583
6640
|
onClose,
|
|
6584
6641
|
type,
|
|
@@ -6633,20 +6690,20 @@ function CEXBindModal({
|
|
|
6633
6690
|
setLoading(false);
|
|
6634
6691
|
}
|
|
6635
6692
|
};
|
|
6636
|
-
return /* @__PURE__ */ (0,
|
|
6693
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(ModalWithHeader, { showClose: true, isOpen, onClose, title: intl.formatMessage({
|
|
6637
6694
|
id: "CEXBindTitle"
|
|
6638
6695
|
}, {
|
|
6639
6696
|
type
|
|
6640
|
-
}), ...props, children: /* @__PURE__ */ (0,
|
|
6641
|
-
/* @__PURE__ */ (0,
|
|
6642
|
-
/* @__PURE__ */ (0,
|
|
6643
|
-
/* @__PURE__ */ (0,
|
|
6644
|
-
/* @__PURE__ */ (0,
|
|
6645
|
-
/* @__PURE__ */ (0,
|
|
6697
|
+
}), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "matchid-cex-modal", children: [
|
|
6698
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { children: [
|
|
6699
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_intl20.FormattedMessage, { id: "CEXBindAttention" }) }),
|
|
6700
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_intl20.FormattedMessage, { id: "CEXBindTips1" }) }),
|
|
6701
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_intl20.FormattedMessage, { id: "CEXBindTips2" }) }),
|
|
6702
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_intl20.FormattedMessage, { id: "CEXBindTips3" }) })
|
|
6646
6703
|
] }),
|
|
6647
|
-
/* @__PURE__ */ (0,
|
|
6704
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Field, { label: intl.formatMessage({
|
|
6648
6705
|
id: "CEXBindApiKey"
|
|
6649
|
-
}), children: /* @__PURE__ */ (0,
|
|
6706
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
6650
6707
|
Input,
|
|
6651
6708
|
{
|
|
6652
6709
|
value: key,
|
|
@@ -6654,9 +6711,9 @@ function CEXBindModal({
|
|
|
6654
6711
|
placeholder: "**** **** ****"
|
|
6655
6712
|
}
|
|
6656
6713
|
) }),
|
|
6657
|
-
/* @__PURE__ */ (0,
|
|
6714
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Field, { label: intl.formatMessage({
|
|
6658
6715
|
id: "CEXBindApiSecretKey"
|
|
6659
|
-
}), error: !needPassphrase && error, children: /* @__PURE__ */ (0,
|
|
6716
|
+
}), error: !needPassphrase && error, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
6660
6717
|
Input,
|
|
6661
6718
|
{
|
|
6662
6719
|
value: secret,
|
|
@@ -6664,9 +6721,9 @@ function CEXBindModal({
|
|
|
6664
6721
|
placeholder: "**** **** ****"
|
|
6665
6722
|
}
|
|
6666
6723
|
) }),
|
|
6667
|
-
needPassphrase && /* @__PURE__ */ (0,
|
|
6724
|
+
needPassphrase && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Field, { error, label: intl.formatMessage({
|
|
6668
6725
|
id: "CEXBindApiPassphrase"
|
|
6669
|
-
}), children: /* @__PURE__ */ (0,
|
|
6726
|
+
}), children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
6670
6727
|
Input,
|
|
6671
6728
|
{
|
|
6672
6729
|
value: APIPassphrase,
|
|
@@ -6674,7 +6731,7 @@ function CEXBindModal({
|
|
|
6674
6731
|
placeholder: "**** **** ****"
|
|
6675
6732
|
}
|
|
6676
6733
|
) }),
|
|
6677
|
-
/* @__PURE__ */ (0,
|
|
6734
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
6678
6735
|
Button,
|
|
6679
6736
|
{
|
|
6680
6737
|
onClick: SubmitApi,
|
|
@@ -6682,7 +6739,7 @@ function CEXBindModal({
|
|
|
6682
6739
|
block: true,
|
|
6683
6740
|
loading,
|
|
6684
6741
|
disabled: !key || !secret,
|
|
6685
|
-
children: /* @__PURE__ */ (0,
|
|
6742
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_react_intl20.FormattedMessage, { id: "continue" })
|
|
6686
6743
|
}
|
|
6687
6744
|
)
|
|
6688
6745
|
] }) });
|
|
@@ -6690,7 +6747,7 @@ function CEXBindModal({
|
|
|
6690
6747
|
|
|
6691
6748
|
// src/context/BusinessProvider.tsx
|
|
6692
6749
|
var import_react_query9 = require("@tanstack/react-query");
|
|
6693
|
-
var
|
|
6750
|
+
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
6694
6751
|
function BusinessProvider({ children }) {
|
|
6695
6752
|
const { overview, token } = useUserInfo();
|
|
6696
6753
|
const { type: TONType, isOpen: TONIsOpen, close: TONClose } = useTONModalStore();
|
|
@@ -6723,8 +6780,8 @@ function BusinessProvider({ children }) {
|
|
|
6723
6780
|
enabled: !!tgAppAuthCode,
|
|
6724
6781
|
refetchInterval: 1e3 * 5
|
|
6725
6782
|
});
|
|
6726
|
-
return /* @__PURE__ */ (0,
|
|
6727
|
-
/* @__PURE__ */ (0,
|
|
6783
|
+
return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
|
|
6784
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6728
6785
|
TRONModal,
|
|
6729
6786
|
{
|
|
6730
6787
|
isOpen: TRONIsOpen && (TRONType == "login" && !overview && !token || TRONType == "bind" && !!token && !!overview),
|
|
@@ -6734,7 +6791,7 @@ function BusinessProvider({ children }) {
|
|
|
6734
6791
|
zIndex: 199
|
|
6735
6792
|
}
|
|
6736
6793
|
),
|
|
6737
|
-
/* @__PURE__ */ (0,
|
|
6794
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6738
6795
|
TONModal,
|
|
6739
6796
|
{
|
|
6740
6797
|
isOpen: TONIsOpen && (TONType == "login" && !overview && !token || TONType == "bind" && !!token && !!overview),
|
|
@@ -6744,7 +6801,7 @@ function BusinessProvider({ children }) {
|
|
|
6744
6801
|
zIndex: 199
|
|
6745
6802
|
}
|
|
6746
6803
|
),
|
|
6747
|
-
/* @__PURE__ */ (0,
|
|
6804
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6748
6805
|
BTCModal,
|
|
6749
6806
|
{
|
|
6750
6807
|
isOpen: BTCIsOpen && (BTCType == "login" && !overview && !token || BTCType == "bind" && !!token && !!overview),
|
|
@@ -6754,7 +6811,7 @@ function BusinessProvider({ children }) {
|
|
|
6754
6811
|
zIndex: 199
|
|
6755
6812
|
}
|
|
6756
6813
|
),
|
|
6757
|
-
/* @__PURE__ */ (0,
|
|
6814
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6758
6815
|
CEXBindModal,
|
|
6759
6816
|
{
|
|
6760
6817
|
isOpen: CEXIsOpen && (!!token && !!overview),
|
|
@@ -6763,7 +6820,7 @@ function BusinessProvider({ children }) {
|
|
|
6763
6820
|
zIndex: 199
|
|
6764
6821
|
}
|
|
6765
6822
|
),
|
|
6766
|
-
/* @__PURE__ */ (0,
|
|
6823
|
+
/* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
6767
6824
|
WalletModal,
|
|
6768
6825
|
{
|
|
6769
6826
|
isOpen: WalletModalStore.isOpen && (WalletModalStore.type == "login" && !overview && !token || WalletModalStore.type == "bind" && !!token && !!overview),
|
|
@@ -6778,9 +6835,9 @@ function BusinessProvider({ children }) {
|
|
|
6778
6835
|
}
|
|
6779
6836
|
|
|
6780
6837
|
// src/context/index.tsx
|
|
6781
|
-
var
|
|
6838
|
+
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
6782
6839
|
var Providers = ({ children }) => {
|
|
6783
|
-
return /* @__PURE__ */ (0,
|
|
6840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ToastProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ModalProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(BusinessProvider, { children }) }) });
|
|
6784
6841
|
};
|
|
6785
6842
|
var context_default = Providers;
|
|
6786
6843
|
|
|
@@ -7226,7 +7283,7 @@ var en_default = {
|
|
|
7226
7283
|
amountPlaceholder: "Enter the Amount.",
|
|
7227
7284
|
balance: "Balance",
|
|
7228
7285
|
receiveTitle: "Received wallet address",
|
|
7229
|
-
receivePlaceholder: "Enter the
|
|
7286
|
+
receivePlaceholder: "Enter the Receiving wallet address.",
|
|
7230
7287
|
next: "Next",
|
|
7231
7288
|
copied: "Copied",
|
|
7232
7289
|
receiveQrcode: "Receive by scanning the QR code",
|
|
@@ -7911,7 +7968,7 @@ var messages = {
|
|
|
7911
7968
|
};
|
|
7912
7969
|
|
|
7913
7970
|
// src/MatchContext.tsx
|
|
7914
|
-
var
|
|
7971
|
+
var import_jsx_runtime94 = require("react/jsx-runtime");
|
|
7915
7972
|
var queryClient = new import_react_query10.QueryClient();
|
|
7916
7973
|
var MatchContext = (0, import_react39.createContext)(void 0);
|
|
7917
7974
|
var MatchProvider = ({
|
|
@@ -7933,7 +7990,7 @@ var MatchProvider = ({
|
|
|
7933
7990
|
useWalletInit({
|
|
7934
7991
|
config: wallet
|
|
7935
7992
|
});
|
|
7936
|
-
return /* @__PURE__ */ (0,
|
|
7993
|
+
return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_intl21.IntlProvider, { locale: realLocale, messages: messages[realLocale], children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(import_react_query10.QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
|
|
7937
7994
|
MatchContext.Provider,
|
|
7938
7995
|
{
|
|
7939
7996
|
value: {
|
|
@@ -7944,7 +8001,7 @@ var MatchProvider = ({
|
|
|
7944
8001
|
theme,
|
|
7945
8002
|
locale: realLocale
|
|
7946
8003
|
},
|
|
7947
|
-
children: /* @__PURE__ */ (0,
|
|
8004
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(context_default, { children })
|
|
7948
8005
|
}
|
|
7949
8006
|
) }) });
|
|
7950
8007
|
};
|