@rhinestone/deposit-modal 0.11.1 → 0.12.0
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/{DepositModalReown-MO5QDLIT.mjs → DepositModalReown-MVVRUXO4.mjs} +7 -7
- package/dist/{DepositModalReown-YGB73NMW.cjs → DepositModalReown-PZXHTPIS.cjs} +17 -17
- package/dist/{chunk-OWYPKCYD.mjs → chunk-2AMRKYJ4.mjs} +4 -4
- package/dist/{chunk-FVUXJ3RP.cjs → chunk-2PQ34KU3.cjs} +3 -3
- package/dist/{chunk-TENL4H64.cjs → chunk-4R2ZHSDQ.cjs} +4 -9
- package/dist/{chunk-4FTI3GTB.cjs → chunk-4SRVZRZF.cjs} +1 -1
- package/dist/{chunk-MZ53PDIX.mjs → chunk-53IGTENZ.mjs} +1 -1
- package/dist/{chunk-CWGUBFJL.mjs → chunk-5IP67CL5.mjs} +5 -15
- package/dist/{chunk-HUHBNYD3.cjs → chunk-6ZJTZ7DS.cjs} +81 -80
- package/dist/{chunk-LQGYPM5B.cjs → chunk-BK54FZAE.cjs} +79 -79
- package/dist/{chunk-EIWOVX53.mjs → chunk-EUIPQ3T4.mjs} +3 -3
- package/dist/{chunk-URFSTNRS.mjs → chunk-GZNMBZHY.mjs} +1 -1
- package/dist/{chunk-ZQR36NCV.cjs → chunk-LBJFACLH.cjs} +84 -94
- package/dist/{chunk-SSQ27YFB.cjs → chunk-LTPVHQXJ.cjs} +543 -540
- package/dist/{chunk-YELNYILK.mjs → chunk-Q5MFRAWD.mjs} +287 -284
- package/dist/{chunk-5746YXKC.mjs → chunk-QF5T6HXC.mjs} +5 -4
- package/dist/{chunk-V6T7LORJ.mjs → chunk-RMYUE6HJ.mjs} +1 -1
- package/dist/{chunk-ZRIRCIQM.cjs → chunk-WZJMJFP7.cjs} +62 -62
- package/dist/{chunk-JPRV36DT.cjs → chunk-XJB3VG4C.cjs} +2 -2
- package/dist/{chunk-53IFZGSF.mjs → chunk-YR43AAX5.mjs} +0 -5
- package/dist/claim.cjs +6 -6
- package/dist/claim.d.cts +2 -2
- package/dist/claim.d.ts +2 -2
- package/dist/claim.mjs +5 -5
- package/dist/constants.cjs +3 -3
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.mjs +2 -2
- package/dist/deposit.cjs +8 -8
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +7 -7
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +9 -9
- package/dist/polymarket.cjs +5 -5
- package/dist/polymarket.mjs +2 -2
- package/dist/{types-CsGa-HxD.d.cts → types-BO4iP6fG.d.cts} +0 -1
- package/dist/{types-DdS8OySJ.d.ts → types-oFblf65g.d.ts} +0 -1
- package/dist/withdraw.cjs +6 -6
- package/dist/withdraw.d.cts +2 -2
- package/dist/withdraw.d.ts +2 -2
- package/dist/withdraw.mjs +5 -5
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4SRVZRZFcjs = require('./chunk-4SRVZRZF.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -26,11 +26,7 @@ var _chunk4FTI3GTBcjs = require('./chunk-4FTI3GTB.cjs');
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
var _chunkTENL4H64cjs = require('./chunk-TENL4H64.cjs');
|
|
29
|
+
var _chunk4R2ZHSDQcjs = require('./chunk-4R2ZHSDQ.cjs');
|
|
34
30
|
|
|
35
31
|
// src/components/ui/Modal.tsx
|
|
36
32
|
|
|
@@ -336,7 +332,7 @@ function preconnectIconCdn() {
|
|
|
336
332
|
const link = document.createElement("link");
|
|
337
333
|
link.id = "rs-icon-cdn-preconnect";
|
|
338
334
|
link.rel = "preconnect";
|
|
339
|
-
link.href =
|
|
335
|
+
link.href = _chunk4R2ZHSDQcjs.ICON_CDN;
|
|
340
336
|
link.crossOrigin = "anonymous";
|
|
341
337
|
document.head.appendChild(link);
|
|
342
338
|
}
|
|
@@ -554,7 +550,7 @@ function parseChain(caip2, value) {
|
|
|
554
550
|
// `parseEvmChainId` returns null for `solana:`/`tron:`/`hypercore:` keys,
|
|
555
551
|
// which is the intended answer — those chains have no numeric id, and the
|
|
556
552
|
// modal addresses them by their CAIP-2 string or a sentinel.
|
|
557
|
-
chainId:
|
|
553
|
+
chainId: _chunk4R2ZHSDQcjs.parseEvmChainId.call(void 0, caip2),
|
|
558
554
|
name,
|
|
559
555
|
testnet,
|
|
560
556
|
deposit,
|
|
@@ -586,9 +582,9 @@ function parseChainCatalog(body) {
|
|
|
586
582
|
return { all, byCaip2, byChainId };
|
|
587
583
|
}
|
|
588
584
|
function catalogKeyForChain(chainId) {
|
|
589
|
-
if (chainId === "solana") return
|
|
590
|
-
if (chainId === "hypercore" || chainId ===
|
|
591
|
-
return
|
|
585
|
+
if (chainId === "solana") return _chunk4R2ZHSDQcjs.SOLANA_MAINNET_CAIP2;
|
|
586
|
+
if (chainId === "hypercore" || chainId === _chunk4R2ZHSDQcjs.HYPERCORE_CHAIN_ID) {
|
|
587
|
+
return _chunk4R2ZHSDQcjs.HYPERCORE_MAINNET_CAIP2;
|
|
592
588
|
}
|
|
593
589
|
return chainId;
|
|
594
590
|
}
|
|
@@ -893,7 +889,7 @@ function createDepositService(baseUrl, options) {
|
|
|
893
889
|
try {
|
|
894
890
|
const response = await fetch(apiUrl("/qr/tokens"), {
|
|
895
891
|
method: "GET",
|
|
896
|
-
headers:
|
|
892
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS
|
|
897
893
|
});
|
|
898
894
|
if (!response.ok) {
|
|
899
895
|
debugLog(debug, scope, "getTopTokens:unavailable", {
|
|
@@ -920,7 +916,7 @@ function createDepositService(baseUrl, options) {
|
|
|
920
916
|
try {
|
|
921
917
|
const response = await fetch(apiUrl("/chains"), {
|
|
922
918
|
method: "GET",
|
|
923
|
-
headers:
|
|
919
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS
|
|
924
920
|
});
|
|
925
921
|
if (!response.ok) {
|
|
926
922
|
debugLog(debug, scope, "getChains:unavailable", {
|
|
@@ -974,7 +970,7 @@ function createDepositService(baseUrl, options) {
|
|
|
974
970
|
});
|
|
975
971
|
const response = await fetch(url, {
|
|
976
972
|
method: "POST",
|
|
977
|
-
headers:
|
|
973
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
|
|
978
974
|
body: JSON.stringify({ account: params })
|
|
979
975
|
});
|
|
980
976
|
if (!response.ok) {
|
|
@@ -1007,7 +1003,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1007
1003
|
debugLog(debug, scope, "fetchPortfolio:request", { url, address });
|
|
1008
1004
|
const response = await fetch(url, {
|
|
1009
1005
|
method: "GET",
|
|
1010
|
-
headers:
|
|
1006
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS
|
|
1011
1007
|
});
|
|
1012
1008
|
if (!response.ok) {
|
|
1013
1009
|
const error = await response.json().catch(() => ({ error: "Unknown error" }));
|
|
@@ -1054,7 +1050,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1054
1050
|
debugLog(debug, scope, "fetchSolanaPortfolio:request", { url, address });
|
|
1055
1051
|
const response = await fetch(url, {
|
|
1056
1052
|
method: "GET",
|
|
1057
|
-
headers:
|
|
1053
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS
|
|
1058
1054
|
});
|
|
1059
1055
|
if (!response.ok) {
|
|
1060
1056
|
const error = await response.json().catch(() => ({ error: "Unknown error" }));
|
|
@@ -1084,7 +1080,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1084
1080
|
debugLog(debug, scope, "checkAccount:request", { url, address });
|
|
1085
1081
|
const response = await fetch(url, {
|
|
1086
1082
|
method: "GET",
|
|
1087
|
-
headers:
|
|
1083
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS
|
|
1088
1084
|
});
|
|
1089
1085
|
if (!response.ok) {
|
|
1090
1086
|
const error = await response.json().catch(() => ({ error: "Unknown error" }));
|
|
@@ -1119,7 +1115,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1119
1115
|
);
|
|
1120
1116
|
const response = await fetch(url, {
|
|
1121
1117
|
method: "GET",
|
|
1122
|
-
headers:
|
|
1118
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
|
|
1123
1119
|
cache: "no-store"
|
|
1124
1120
|
});
|
|
1125
1121
|
if (!response.ok) {
|
|
@@ -1147,7 +1143,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1147
1143
|
);
|
|
1148
1144
|
const response = await fetch(url, {
|
|
1149
1145
|
method: "GET",
|
|
1150
|
-
headers:
|
|
1146
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
|
|
1151
1147
|
cache: "no-store"
|
|
1152
1148
|
});
|
|
1153
1149
|
if (!response.ok) {
|
|
@@ -1171,7 +1167,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1171
1167
|
);
|
|
1172
1168
|
const response = await fetch(url, {
|
|
1173
1169
|
method: "GET",
|
|
1174
|
-
headers:
|
|
1170
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
|
|
1175
1171
|
cache: "no-store"
|
|
1176
1172
|
});
|
|
1177
1173
|
if (!response.ok) {
|
|
@@ -1193,7 +1189,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1193
1189
|
async getPositions(address) {
|
|
1194
1190
|
const url = apiUrl(`/positions/${address}`);
|
|
1195
1191
|
debugLog(debug, scope, "getPositions:request", { url, address });
|
|
1196
|
-
const response = await fetch(url, { headers:
|
|
1192
|
+
const response = await fetch(url, { headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS });
|
|
1197
1193
|
if (!response.ok) {
|
|
1198
1194
|
const error = await response.json().catch(() => ({ error: "Unknown error" }));
|
|
1199
1195
|
debugError(debug, scope, "getPositions:failed", error, {
|
|
@@ -1227,7 +1223,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1227
1223
|
});
|
|
1228
1224
|
const response = await fetch(url, {
|
|
1229
1225
|
method: "POST",
|
|
1230
|
-
headers:
|
|
1226
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
|
|
1231
1227
|
body: JSON.stringify({ account, market, chainId, asset, amount })
|
|
1232
1228
|
});
|
|
1233
1229
|
if (!response.ok) {
|
|
@@ -1263,7 +1259,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1263
1259
|
});
|
|
1264
1260
|
const response = await fetch(url, {
|
|
1265
1261
|
method: "POST",
|
|
1266
|
-
headers:
|
|
1262
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
|
|
1267
1263
|
body: JSON.stringify({
|
|
1268
1264
|
depositWallet,
|
|
1269
1265
|
owner,
|
|
@@ -1305,7 +1301,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1305
1301
|
});
|
|
1306
1302
|
const response = await fetch(url, {
|
|
1307
1303
|
method: "GET",
|
|
1308
|
-
headers:
|
|
1304
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
|
|
1309
1305
|
cache: "no-store"
|
|
1310
1306
|
});
|
|
1311
1307
|
if (!response.ok) {
|
|
@@ -1332,8 +1328,8 @@ function createDepositService(baseUrl, options) {
|
|
|
1332
1328
|
return { deposits, nextCursor };
|
|
1333
1329
|
},
|
|
1334
1330
|
async checkLiquidity(params) {
|
|
1335
|
-
if (
|
|
1336
|
-
const token =
|
|
1331
|
+
if (_chunk4R2ZHSDQcjs.isSolanaCaip2.call(void 0, params.destinationChainId) || params.destinationChainId === "solana") {
|
|
1332
|
+
const token = _chunk4R2ZHSDQcjs.getSolanaTokenByMint.call(void 0, params.destinationToken);
|
|
1337
1333
|
return {
|
|
1338
1334
|
hasLiquidity: true,
|
|
1339
1335
|
symbol: _nullishCoalesce(_optionalChain([token, 'optionalAccess', _40 => _40.symbol]), () => ( "Token")),
|
|
@@ -1343,7 +1339,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1343
1339
|
};
|
|
1344
1340
|
}
|
|
1345
1341
|
const searchParams = new URLSearchParams({
|
|
1346
|
-
sourceChainId:
|
|
1342
|
+
sourceChainId: _chunk4R2ZHSDQcjs.toEvmCaip2.call(void 0, params.sourceChainId),
|
|
1347
1343
|
sourceToken: params.sourceToken,
|
|
1348
1344
|
destinationChainId: params.destinationChainId,
|
|
1349
1345
|
destinationToken: params.destinationToken,
|
|
@@ -1358,7 +1354,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1358
1354
|
});
|
|
1359
1355
|
const response = await fetch(url, {
|
|
1360
1356
|
method: "GET",
|
|
1361
|
-
headers:
|
|
1357
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
|
|
1362
1358
|
cache: "no-store"
|
|
1363
1359
|
});
|
|
1364
1360
|
if (!response.ok) {
|
|
@@ -1390,7 +1386,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1390
1386
|
const body = {
|
|
1391
1387
|
account: params.account,
|
|
1392
1388
|
// HyperCore has its own CAIP-2 namespace — never the eip155 placeholder.
|
|
1393
|
-
sourceChainId: params.sourceChainId === "hypercore" ?
|
|
1389
|
+
sourceChainId: params.sourceChainId === "hypercore" ? _chunk4R2ZHSDQcjs.HYPERCORE_MAINNET_CAIP2 : `eip155:${params.sourceChainId}`,
|
|
1394
1390
|
sourceToken: params.sourceToken,
|
|
1395
1391
|
amount: params.amount
|
|
1396
1392
|
};
|
|
@@ -1403,7 +1399,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1403
1399
|
try {
|
|
1404
1400
|
const response = await fetch(url, {
|
|
1405
1401
|
method: "POST",
|
|
1406
|
-
headers:
|
|
1402
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
|
|
1407
1403
|
body: JSON.stringify(body),
|
|
1408
1404
|
cache: "no-store"
|
|
1409
1405
|
});
|
|
@@ -1440,7 +1436,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1440
1436
|
try {
|
|
1441
1437
|
const response = await fetch(url, {
|
|
1442
1438
|
method: "GET",
|
|
1443
|
-
headers:
|
|
1439
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
|
|
1444
1440
|
cache: "no-store"
|
|
1445
1441
|
});
|
|
1446
1442
|
if (!response.ok) {
|
|
@@ -1470,7 +1466,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1470
1466
|
try {
|
|
1471
1467
|
const response = await fetch(url, {
|
|
1472
1468
|
method: "GET",
|
|
1473
|
-
headers:
|
|
1469
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
|
|
1474
1470
|
cache: "no-store"
|
|
1475
1471
|
});
|
|
1476
1472
|
if (!response.ok) {
|
|
@@ -1495,7 +1491,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1495
1491
|
});
|
|
1496
1492
|
const response = await fetch(url, {
|
|
1497
1493
|
method: "POST",
|
|
1498
|
-
headers:
|
|
1494
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
|
|
1499
1495
|
body: JSON.stringify(params)
|
|
1500
1496
|
});
|
|
1501
1497
|
if (!response.ok) {
|
|
@@ -1527,7 +1523,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1527
1523
|
});
|
|
1528
1524
|
const response = await fetch(url, {
|
|
1529
1525
|
method: "POST",
|
|
1530
|
-
headers:
|
|
1526
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
|
|
1531
1527
|
body: JSON.stringify(params)
|
|
1532
1528
|
});
|
|
1533
1529
|
if (!response.ok) {
|
|
@@ -1564,7 +1560,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1564
1560
|
debugLog(debug, scope, "getSwappedConnectExchanges:request");
|
|
1565
1561
|
const response = await fetch(url, {
|
|
1566
1562
|
method: "GET",
|
|
1567
|
-
headers:
|
|
1563
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
|
|
1568
1564
|
cache: "no-store"
|
|
1569
1565
|
});
|
|
1570
1566
|
if (!response.ok) {
|
|
@@ -1617,7 +1613,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1617
1613
|
try {
|
|
1618
1614
|
const response = await fetch(url, {
|
|
1619
1615
|
method: "GET",
|
|
1620
|
-
headers:
|
|
1616
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
|
|
1621
1617
|
cache: "no-store"
|
|
1622
1618
|
});
|
|
1623
1619
|
if (!response.ok) {
|
|
@@ -1703,7 +1699,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1703
1699
|
try {
|
|
1704
1700
|
const response = await fetch(url, {
|
|
1705
1701
|
method: "GET",
|
|
1706
|
-
headers:
|
|
1702
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
|
|
1707
1703
|
cache: "no-store"
|
|
1708
1704
|
});
|
|
1709
1705
|
if (!response.ok) {
|
|
@@ -1730,7 +1726,7 @@ function createDepositService(baseUrl, options) {
|
|
|
1730
1726
|
);
|
|
1731
1727
|
const response = await fetch(url, {
|
|
1732
1728
|
method: "GET",
|
|
1733
|
-
headers:
|
|
1729
|
+
headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
|
|
1734
1730
|
cache: "no-store"
|
|
1735
1731
|
});
|
|
1736
1732
|
if (!response.ok) return null;
|
|
@@ -1794,14 +1790,14 @@ function normalizeOrchestratorPortfolio(data) {
|
|
|
1794
1790
|
const unlocked = _nullishCoalesce(_optionalChain([chainBalance, 'access', _45 => _45.balance, 'optionalAccess', _46 => _46.unlocked]), () => ( "0"));
|
|
1795
1791
|
const normalizedName = tokenData.tokenName.trim();
|
|
1796
1792
|
const isNativeSymbol = normalizedName.toUpperCase() === "ETH" || normalizedName.toUpperCase() === "ETHER";
|
|
1797
|
-
const tokenAddress = _nullishCoalesce(_nullishCoalesce(chainBalance.tokenAddress, () => ( extractTokenAddress(tokenData, chainBalance.chainId))), () => (
|
|
1798
|
-
const resolvedTokenAddress = isNativeSymbol ?
|
|
1793
|
+
const tokenAddress = _nullishCoalesce(_nullishCoalesce(chainBalance.tokenAddress, () => ( extractTokenAddress(tokenData, chainBalance.chainId))), () => ( _chunk4R2ZHSDQcjs.getTokenAddress.call(void 0, tokenData.tokenName, chainBalance.chainId)));
|
|
1794
|
+
const resolvedTokenAddress = isNativeSymbol ? _chunk4R2ZHSDQcjs.NATIVE_TOKEN_ADDRESS : tokenAddress;
|
|
1799
1795
|
if (!resolvedTokenAddress) {
|
|
1800
1796
|
continue;
|
|
1801
1797
|
}
|
|
1802
|
-
const registrySymbol =
|
|
1798
|
+
const registrySymbol = _chunk4R2ZHSDQcjs.getTokenSymbol.call(void 0, resolvedTokenAddress, chainBalance.chainId);
|
|
1803
1799
|
const symbol = registrySymbol !== "Token" ? registrySymbol : normalizedName || "Token";
|
|
1804
|
-
const decimals = registrySymbol !== "Token" ?
|
|
1800
|
+
const decimals = registrySymbol !== "Token" ? _chunk4R2ZHSDQcjs.getTokenDecimalsByAddress.call(void 0, resolvedTokenAddress, chainBalance.chainId) : _nullishCoalesce(tokenData.tokenDecimals, () => ( 18));
|
|
1805
1801
|
tokens.push({
|
|
1806
1802
|
chainId: chainBalance.chainId,
|
|
1807
1803
|
address: resolvedTokenAddress,
|
|
@@ -1821,13 +1817,13 @@ function normalizeOrchestratorPortfolio(data) {
|
|
|
1821
1817
|
function normalizeDirectToken(token) {
|
|
1822
1818
|
const rawChainId = _nullishCoalesce(extractNumber(token, "chainId"), () => ( extractNumber(token.chain, "id")));
|
|
1823
1819
|
const rawChainString = _nullishCoalesce(extractString(token, "chainId"), () => ( extractString(token.chain, "id")));
|
|
1824
|
-
const chainId = _nullishCoalesce(rawChainId, () => ( (rawChainString ?
|
|
1820
|
+
const chainId = _nullishCoalesce(rawChainId, () => ( (rawChainString ? _chunk4R2ZHSDQcjs.isSolanaCaip2.call(void 0, rawChainString) || rawChainString.toLowerCase() === "solana" ? "solana" : (
|
|
1825
1821
|
// HyperCore (`hypercore:mainnet`) is a non-EVM source; keep its USDC
|
|
1826
1822
|
// instead of dropping it as an unparseable chain string.
|
|
1827
|
-
|
|
1823
|
+
_chunk4R2ZHSDQcjs.isHyperCoreCaip2.call(void 0, rawChainString) || rawChainString.toLowerCase() === "hypercore" ? "hypercore" : _chunk4R2ZHSDQcjs.parseEvmChainId.call(void 0, rawChainString)
|
|
1828
1824
|
) : null)));
|
|
1829
1825
|
if (chainId === null) return null;
|
|
1830
|
-
const registryChainId = typeof chainId === "number" ? chainId : chainId === "hypercore" ?
|
|
1826
|
+
const registryChainId = typeof chainId === "number" ? chainId : chainId === "hypercore" ? _chunk4R2ZHSDQcjs.HYPERCORE_CHAIN_ID : void 0;
|
|
1831
1827
|
const symbol = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractString(token, "symbol"), () => ( extractString(token, "tokenSymbol"))), () => ( extractString(token, "tokenName"))), () => ( extractString(token, "name")));
|
|
1832
1828
|
if (!symbol) return null;
|
|
1833
1829
|
const balanceValue = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractString(token, "balance"), () => ( extractString(token, "amount"))), () => ( extractString(token, "value"))), () => ( extractString(token, "rawBalance"))), () => ( _optionalChain([extractNumber, 'call', _47 => _47(token, "balance"), 'optionalAccess', _48 => _48.toString, 'call', _49 => _49()]))), () => ( _optionalChain([extractNumber, 'call', _50 => _50(token, "amount"), 'optionalAccess', _51 => _51.toString, 'call', _52 => _52()]))), () => ( _optionalChain([extractNumber, 'call', _53 => _53(token, "value"), 'optionalAccess', _54 => _54.toString, 'call', _55 => _55()]))), () => ( _optionalChain([extractNumber, 'call', _56 => _56(token, "rawBalance"), 'optionalAccess', _57 => _57.toString, 'call', _58 => _58()])));
|
|
@@ -1835,14 +1831,14 @@ function normalizeDirectToken(token) {
|
|
|
1835
1831
|
const address = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractString(token, "address"), () => ( extractString(token, "tokenAddress"))), () => ( extractString(
|
|
1836
1832
|
token.token,
|
|
1837
1833
|
"address"
|
|
1838
|
-
))), () => ( (registryChainId !== void 0 ?
|
|
1834
|
+
))), () => ( (registryChainId !== void 0 ? _chunk4R2ZHSDQcjs.getTokenAddress.call(void 0, symbol, registryChainId) : void 0)));
|
|
1839
1835
|
if (!address) return null;
|
|
1840
1836
|
const balanceUsd = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractNumber(token, "balanceUsd"), () => ( extractNumber(token, "usdValue"))), () => ( extractNumber(token, "valueUsd"))), () => ( extractNumericString(token, "balanceUsd"))), () => ( extractNumericString(token, "usdValue"))), () => ( extractNumericString(token, "valueUsd"))), () => ( 0));
|
|
1841
1837
|
const isSolanaToken = chainId === "solana";
|
|
1842
|
-
const registrySymbol = isSolanaToken ? "Token" :
|
|
1838
|
+
const registrySymbol = isSolanaToken ? "Token" : _chunk4R2ZHSDQcjs.getTokenSymbol.call(void 0, address, registryChainId);
|
|
1843
1839
|
const resolvedSymbol = isSolanaToken ? symbol : registrySymbol !== "Token" ? registrySymbol : symbol;
|
|
1844
1840
|
const backendDecimals = _nullishCoalesce(extractNumber(token, "decimals"), () => ( extractNumber(token, "tokenDecimals")));
|
|
1845
|
-
const resolvedDecimals = !isSolanaToken && registrySymbol !== "Token" ?
|
|
1841
|
+
const resolvedDecimals = !isSolanaToken && registrySymbol !== "Token" ? _chunk4R2ZHSDQcjs.getTokenDecimalsByAddress.call(void 0, address, registryChainId) : _nullishCoalesce(backendDecimals, () => ( 18));
|
|
1846
1842
|
return {
|
|
1847
1843
|
chainId,
|
|
1848
1844
|
address,
|
|
@@ -1930,7 +1926,7 @@ function getPublicClient(chainId, rpcUrls) {
|
|
|
1930
1926
|
const cacheKey = `${chainId}|${_nullishCoalesce(url, () => ( ""))}`;
|
|
1931
1927
|
let client = clientCache.get(cacheKey);
|
|
1932
1928
|
if (!client) {
|
|
1933
|
-
const chain = _nullishCoalesce(
|
|
1929
|
+
const chain = _nullishCoalesce(_chunk4R2ZHSDQcjs.CHAIN_BY_ID[chainId], () => ( runtimeChainById.get(chainId)));
|
|
1934
1930
|
client = _viem.createPublicClient.call(void 0, {
|
|
1935
1931
|
chain,
|
|
1936
1932
|
transport: _viem.http.call(void 0, url)
|
|
@@ -2073,7 +2069,7 @@ function peekRuntimeChains(backendUrl, overrides) {
|
|
|
2073
2069
|
return _nullishCoalesce(resolvedChainsByKey.get(runtimeChainsKey(backendUrl, overrides)), () => ( null));
|
|
2074
2070
|
}
|
|
2075
2071
|
function publishCatalogTokens(catalog) {
|
|
2076
|
-
|
|
2072
|
+
_chunk4R2ZHSDQcjs.setRuntimeTokens.call(void 0,
|
|
2077
2073
|
catalog.all.flatMap(
|
|
2078
2074
|
(chain) => chain.chainId === null || !Array.isArray(chain.supportedTokens) ? [] : chain.supportedTokens.map((token) => ({
|
|
2079
2075
|
chainId: chain.chainId,
|
|
@@ -2085,11 +2081,11 @@ function publishCatalogTokens(catalog) {
|
|
|
2085
2081
|
);
|
|
2086
2082
|
}
|
|
2087
2083
|
function publishRuntimeChainMeta(catalog) {
|
|
2088
|
-
|
|
2084
|
+
_chunk4R2ZHSDQcjs.setRuntimeChainMeta.call(void 0,
|
|
2089
2085
|
catalog.all.flatMap((chain) => {
|
|
2090
2086
|
const ids = [];
|
|
2091
2087
|
if (chain.chainId !== null) ids.push(chain.chainId);
|
|
2092
|
-
if (chain.caip2 ===
|
|
2088
|
+
if (chain.caip2 === _chunk4R2ZHSDQcjs.HYPERCORE_MAINNET_CAIP2) ids.push(_chunk4R2ZHSDQcjs.HYPERCORE_CHAIN_ID);
|
|
2093
2089
|
return ids.map((chainId) => ({
|
|
2094
2090
|
chainId,
|
|
2095
2091
|
name: chain.name,
|
|
@@ -2135,7 +2131,7 @@ function useCatalogChain(chainId) {
|
|
|
2135
2131
|
function useDepositChainIds() {
|
|
2136
2132
|
const { catalog } = useChainCatalog();
|
|
2137
2133
|
return _react.useMemo.call(void 0, () => {
|
|
2138
|
-
if (!catalog) return
|
|
2134
|
+
if (!catalog) return [];
|
|
2139
2135
|
const ids = catalog.all.filter(
|
|
2140
2136
|
(c) => c.deposit && c.vmType === "evm" && c.chainId !== null && // `/chains` enumerates testnets; the bundled list never did, and a
|
|
2141
2137
|
// production picker offering Sepolia next to Ethereum is a way to
|
|
@@ -2144,8 +2140,8 @@ function useDepositChainIds() {
|
|
|
2144
2140
|
!c.testnet
|
|
2145
2141
|
).map((c) => c.chainId);
|
|
2146
2142
|
const rank = (id) => {
|
|
2147
|
-
const i =
|
|
2148
|
-
return i === -1 ?
|
|
2143
|
+
const i = _chunk4R2ZHSDQcjs.CHAIN_DISPLAY_ORDER.indexOf(id);
|
|
2144
|
+
return i === -1 ? _chunk4R2ZHSDQcjs.CHAIN_DISPLAY_ORDER.length : i;
|
|
2149
2145
|
};
|
|
2150
2146
|
return ids.map((id, i) => ({ id, i })).sort((a, b) => rank(a.id) - rank(b.id) || a.i - b.i).map(({ id }) => id);
|
|
2151
2147
|
}, [catalog]);
|
|
@@ -2153,14 +2149,10 @@ function useDepositChainIds() {
|
|
|
2153
2149
|
function useDestinationChains() {
|
|
2154
2150
|
const { catalog } = useChainCatalog();
|
|
2155
2151
|
return _react.useMemo.call(void 0, () => {
|
|
2156
|
-
if (!catalog)
|
|
2157
|
-
return _chunkTENL4H64cjs.SOURCE_CHAINS.filter(
|
|
2158
|
-
(chain) => _chunkTENL4H64cjs.getSupportedTargetTokens.call(void 0, chain.id).length > 0
|
|
2159
|
-
).map((chain) => ({ id: chain.id, name: chain.name }));
|
|
2160
|
-
}
|
|
2152
|
+
if (!catalog) return [];
|
|
2161
2153
|
const rank = (id) => {
|
|
2162
|
-
const i =
|
|
2163
|
-
return i === -1 ?
|
|
2154
|
+
const i = _chunk4R2ZHSDQcjs.CHAIN_DISPLAY_ORDER.indexOf(id);
|
|
2155
|
+
return i === -1 ? _chunk4R2ZHSDQcjs.CHAIN_DISPLAY_ORDER.length : i;
|
|
2164
2156
|
};
|
|
2165
2157
|
return catalog.all.filter(
|
|
2166
2158
|
(c) => c.destination && c.vmType === "evm" && c.chainId !== null && !c.testnet
|
|
@@ -2171,18 +2163,16 @@ function useTargetTokens() {
|
|
|
2171
2163
|
const { catalog, shortlist } = useChainCatalog();
|
|
2172
2164
|
return _react.useMemo.call(void 0, () => {
|
|
2173
2165
|
return (chainId) => {
|
|
2174
|
-
const bundled = _chunkTENL4H64cjs.getBundledTargetTokens.call(void 0, chainId);
|
|
2175
|
-
if (bundled.length > 0) return bundled;
|
|
2176
2166
|
const fromShortlist = _optionalChain([shortlist, 'optionalAccess', _90 => _90[String(chainId)]]);
|
|
2177
|
-
if (
|
|
2167
|
+
if (fromShortlist) {
|
|
2178
2168
|
return fromShortlist.map((token) => ({
|
|
2179
2169
|
symbol: token.symbol,
|
|
2180
2170
|
address: token.address,
|
|
2181
2171
|
decimals: token.decimals
|
|
2182
2172
|
}));
|
|
2183
2173
|
}
|
|
2184
|
-
const entry = _optionalChain([catalog, 'optionalAccess',
|
|
2185
|
-
return Array.isArray(_optionalChain([entry, 'optionalAccess',
|
|
2174
|
+
const entry = _optionalChain([catalog, 'optionalAccess', _91 => _91.byChainId, 'access', _92 => _92.get, 'call', _93 => _93(chainId)]);
|
|
2175
|
+
return Array.isArray(_optionalChain([entry, 'optionalAccess', _94 => _94.supportedTokens])) ? entry.supportedTokens.map((token) => ({
|
|
2186
2176
|
symbol: token.symbol,
|
|
2187
2177
|
address: token.address,
|
|
2188
2178
|
decimals: token.decimals
|
|
@@ -2202,10 +2192,10 @@ function useChainName() {
|
|
|
2202
2192
|
const { catalog } = useChainCatalog();
|
|
2203
2193
|
return _react.useMemo.call(void 0, () => {
|
|
2204
2194
|
return (chainId) => {
|
|
2205
|
-
if (!catalog) return
|
|
2195
|
+
if (!catalog) return _chunk4R2ZHSDQcjs.getChainName.call(void 0, chainId);
|
|
2206
2196
|
const key = catalogKeyForChain(chainId);
|
|
2207
2197
|
const entry = typeof key === "number" ? catalog.byChainId.get(key) : catalog.byCaip2.get(key);
|
|
2208
|
-
return _nullishCoalesce(_optionalChain([entry, 'optionalAccess',
|
|
2198
|
+
return _nullishCoalesce(_optionalChain([entry, 'optionalAccess', _95 => _95.name]), () => ( _chunk4R2ZHSDQcjs.getChainName.call(void 0, chainId)));
|
|
2209
2199
|
};
|
|
2210
2200
|
}, [catalog]);
|
|
2211
2201
|
}
|
|
@@ -2213,10 +2203,10 @@ function useExplorerTxUrl() {
|
|
|
2213
2203
|
const { catalog } = useChainCatalog();
|
|
2214
2204
|
return _react.useMemo.call(void 0, () => {
|
|
2215
2205
|
return (chainId, txHash) => {
|
|
2216
|
-
if (chainId === "hypercore") return
|
|
2206
|
+
if (chainId === "hypercore") return _chunk4R2ZHSDQcjs.getExplorerTxUrl.call(void 0, chainId, txHash);
|
|
2217
2207
|
const key = catalog ? catalogKeyForChain(chainId) : void 0;
|
|
2218
|
-
const entry = key === void 0 ? void 0 : typeof key === "number" ? _optionalChain([catalog, 'optionalAccess',
|
|
2219
|
-
return _nullishCoalesce(catalogExplorerTxUrl(entry, txHash), () => (
|
|
2208
|
+
const entry = key === void 0 ? void 0 : typeof key === "number" ? _optionalChain([catalog, 'optionalAccess', _96 => _96.byChainId, 'access', _97 => _97.get, 'call', _98 => _98(key)]) : _optionalChain([catalog, 'optionalAccess', _99 => _99.byCaip2, 'access', _100 => _100.get, 'call', _101 => _101(key)]);
|
|
2209
|
+
return _nullishCoalesce(catalogExplorerTxUrl(entry, txHash), () => ( _chunk4R2ZHSDQcjs.getExplorerTxUrl.call(void 0, chainId, txHash)));
|
|
2220
2210
|
};
|
|
2221
2211
|
}, [catalog]);
|
|
2222
2212
|
}
|
|
@@ -2274,7 +2264,7 @@ function ChainCatalogProvider({
|
|
|
2274
2264
|
setShortlist(null);
|
|
2275
2265
|
service.getTopTokens().then((tokens) => {
|
|
2276
2266
|
if (!active || !tokens) return;
|
|
2277
|
-
|
|
2267
|
+
_chunk4R2ZHSDQcjs.publishShortlistTokens.call(void 0, tokens);
|
|
2278
2268
|
setShortlist(tokens);
|
|
2279
2269
|
});
|
|
2280
2270
|
return () => {
|
|
@@ -2426,7 +2416,7 @@ function TokenIcon({ symbol, className, fallback }) {
|
|
|
2426
2416
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2427
2417
|
CdnIcon,
|
|
2428
2418
|
{
|
|
2429
|
-
src:
|
|
2419
|
+
src: _chunk4R2ZHSDQcjs.tokenIconUrl.call(void 0, symbol),
|
|
2430
2420
|
className: `rs-token-icon ${_nullishCoalesce(className, () => ( ""))}`.trimEnd(),
|
|
2431
2421
|
fallback
|
|
2432
2422
|
}
|
|
@@ -2559,29 +2549,29 @@ var EVM_ADDRESS_RE = /^0x[a-fA-F0-9]{40}$/;
|
|
|
2559
2549
|
function resolveTokenDisplay(token, chain, fallback) {
|
|
2560
2550
|
if (token !== void 0) {
|
|
2561
2551
|
if (chain === "solana") {
|
|
2562
|
-
const solanaToken =
|
|
2552
|
+
const solanaToken = _chunk4R2ZHSDQcjs.getSolanaTokenByMint.call(void 0, token);
|
|
2563
2553
|
if (solanaToken) {
|
|
2564
2554
|
return { symbol: solanaToken.symbol, decimals: solanaToken.decimals };
|
|
2565
2555
|
}
|
|
2566
2556
|
} else if (chain === "hypercore") {
|
|
2567
|
-
const t =
|
|
2557
|
+
const t = _chunk4R2ZHSDQcjs.HYPERCORE_SOURCE_TOKENS.find(
|
|
2568
2558
|
(x) => x.address.toLowerCase() === token.toLowerCase()
|
|
2569
2559
|
);
|
|
2570
2560
|
if (t) return { symbol: t.symbol, decimals: t.decimals };
|
|
2571
2561
|
} else if (EVM_ADDRESS_RE.test(token)) {
|
|
2572
|
-
const symbol =
|
|
2573
|
-
const decimals =
|
|
2562
|
+
const symbol = _chunk4R2ZHSDQcjs.getTokenSymbol.call(void 0, token, chain);
|
|
2563
|
+
const decimals = _chunk4R2ZHSDQcjs.findTokenDecimals.call(void 0, token, chain);
|
|
2574
2564
|
if (symbol !== "Token" || decimals !== void 0) {
|
|
2575
2565
|
return {
|
|
2576
|
-
symbol: symbol !== "Token" ? symbol : _nullishCoalesce(_optionalChain([fallback, 'optionalAccess',
|
|
2577
|
-
decimals: _nullishCoalesce(decimals, () => ( _optionalChain([fallback, 'optionalAccess',
|
|
2566
|
+
symbol: symbol !== "Token" ? symbol : _nullishCoalesce(_optionalChain([fallback, 'optionalAccess', _102 => _102.symbol]), () => ( symbol)),
|
|
2567
|
+
decimals: _nullishCoalesce(decimals, () => ( _optionalChain([fallback, 'optionalAccess', _103 => _103.decimals])))
|
|
2578
2568
|
};
|
|
2579
2569
|
}
|
|
2580
2570
|
}
|
|
2581
2571
|
}
|
|
2582
2572
|
return {
|
|
2583
|
-
symbol: _nullishCoalesce(_optionalChain([fallback, 'optionalAccess',
|
|
2584
|
-
decimals: _optionalChain([fallback, 'optionalAccess',
|
|
2573
|
+
symbol: _nullishCoalesce(_optionalChain([fallback, 'optionalAccess', _104 => _104.symbol]), () => ( "Token")),
|
|
2574
|
+
decimals: _optionalChain([fallback, 'optionalAccess', _105 => _105.decimals])
|
|
2585
2575
|
};
|
|
2586
2576
|
}
|
|
2587
2577
|
function maxFractionDigitsFor(symbol) {
|
|
@@ -2619,13 +2609,13 @@ function priceUsdFor(symbol, prices) {
|
|
|
2619
2609
|
}
|
|
2620
2610
|
function isRecognizedToken(address, chain) {
|
|
2621
2611
|
if (address === void 0 || chain === void 0) return false;
|
|
2622
|
-
if (chain === "solana") return
|
|
2612
|
+
if (chain === "solana") return _chunk4R2ZHSDQcjs.getSolanaTokenByMint.call(void 0, address) !== void 0;
|
|
2623
2613
|
if (chain === "hypercore") {
|
|
2624
|
-
return
|
|
2614
|
+
return _chunk4R2ZHSDQcjs.HYPERCORE_SOURCE_TOKENS.some(
|
|
2625
2615
|
(t) => t.address.toLowerCase() === address.toLowerCase()
|
|
2626
2616
|
);
|
|
2627
2617
|
}
|
|
2628
|
-
return EVM_ADDRESS_RE.test(address) &&
|
|
2618
|
+
return EVM_ADDRESS_RE.test(address) && _chunk4R2ZHSDQcjs.isRegistryTokenOnChain.call(void 0, address, chain);
|
|
2629
2619
|
}
|
|
2630
2620
|
function estimateReceiveAmount(params) {
|
|
2631
2621
|
const {
|
|
@@ -2778,19 +2768,19 @@ var CUSTOM_PRIMARY_VARS = [
|
|
|
2778
2768
|
function applyTheme(element, theme) {
|
|
2779
2769
|
if (!element) return;
|
|
2780
2770
|
const parent = element.parentElement;
|
|
2781
|
-
const targets = _optionalChain([parent, 'optionalAccess',
|
|
2782
|
-
if (_optionalChain([theme, 'optionalAccess',
|
|
2771
|
+
const targets = _optionalChain([parent, 'optionalAccess', _106 => _106.classList, 'access', _107 => _107.contains, 'call', _108 => _108("rs-modal-content")]) ? [element, parent] : [element];
|
|
2772
|
+
if (_optionalChain([theme, 'optionalAccess', _109 => _109.mode])) {
|
|
2783
2773
|
for (const t of targets) t.setAttribute("data-theme", theme.mode);
|
|
2784
2774
|
} else {
|
|
2785
2775
|
for (const t of targets) t.removeAttribute("data-theme");
|
|
2786
2776
|
}
|
|
2787
|
-
if (_optionalChain([theme, 'optionalAccess',
|
|
2777
|
+
if (_optionalChain([theme, 'optionalAccess', _110 => _110.fontColor])) {
|
|
2788
2778
|
setVar(targets, "--rs-foreground", theme.fontColor);
|
|
2789
2779
|
}
|
|
2790
|
-
if (_optionalChain([theme, 'optionalAccess',
|
|
2780
|
+
if (_optionalChain([theme, 'optionalAccess', _111 => _111.iconColor])) {
|
|
2791
2781
|
setVar(targets, "--rs-icon", theme.iconColor);
|
|
2792
2782
|
}
|
|
2793
|
-
if (_optionalChain([theme, 'optionalAccess',
|
|
2783
|
+
if (_optionalChain([theme, 'optionalAccess', _112 => _112.ctaColor])) {
|
|
2794
2784
|
const derived = deriveCustomPrimary(theme.ctaColor);
|
|
2795
2785
|
if (derived) {
|
|
2796
2786
|
setVar(targets, "--rs-primary", derived.base);
|
|
@@ -2815,18 +2805,18 @@ function applyTheme(element, theme) {
|
|
|
2815
2805
|
}
|
|
2816
2806
|
} else {
|
|
2817
2807
|
for (const v of CUSTOM_PRIMARY_VARS) clearVar(targets, v);
|
|
2818
|
-
if (_optionalChain([theme, 'optionalAccess',
|
|
2808
|
+
if (_optionalChain([theme, 'optionalAccess', _113 => _113.ctaHoverColor])) {
|
|
2819
2809
|
setVar(targets, "--rs-primary-hover", theme.ctaHoverColor);
|
|
2820
2810
|
}
|
|
2821
2811
|
}
|
|
2822
|
-
if (_optionalChain([theme, 'optionalAccess',
|
|
2812
|
+
if (_optionalChain([theme, 'optionalAccess', _114 => _114.borderColor])) {
|
|
2823
2813
|
setVar(targets, "--rs-border", theme.borderColor);
|
|
2824
2814
|
setVar(targets, "--rs-border-surface", theme.borderColor);
|
|
2825
2815
|
}
|
|
2826
|
-
if (_optionalChain([theme, 'optionalAccess',
|
|
2816
|
+
if (_optionalChain([theme, 'optionalAccess', _115 => _115.backgroundColor])) {
|
|
2827
2817
|
setVar(targets, "--rs-background", theme.backgroundColor);
|
|
2828
2818
|
}
|
|
2829
|
-
if (_optionalChain([theme, 'optionalAccess',
|
|
2819
|
+
if (_optionalChain([theme, 'optionalAccess', _116 => _116.radius])) {
|
|
2830
2820
|
const scale = RADIUS_SCALE[theme.radius];
|
|
2831
2821
|
setVar(targets, "--rs-radius-sm", scale.sm);
|
|
2832
2822
|
setVar(targets, "--rs-radius-md", scale.md);
|