@rhinestone/deposit-modal 0.12.0 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/{DepositModalReown-MVVRUXO4.mjs → DepositModalReown-TEC3MEZ4.mjs} +7 -7
  2. package/dist/{DepositModalReown-PZXHTPIS.cjs → DepositModalReown-VG66OTIU.cjs} +17 -17
  3. package/dist/{chunk-2AMRKYJ4.mjs → chunk-2TPSF77V.mjs} +4 -4
  4. package/dist/{chunk-YR43AAX5.mjs → chunk-3STTWRAN.mjs} +0 -5
  5. package/dist/{chunk-53IGTENZ.mjs → chunk-4ZXQPFNU.mjs} +1 -1
  6. package/dist/{chunk-XJB3VG4C.cjs → chunk-75DVGSAX.cjs} +2 -2
  7. package/dist/{chunk-LBJFACLH.cjs → chunk-BRYNGLDM.cjs} +77 -72
  8. package/dist/{chunk-EUIPQ3T4.mjs → chunk-FLVLYO64.mjs} +3 -3
  9. package/dist/{chunk-5IP67CL5.mjs → chunk-FXXUIK4E.mjs} +15 -10
  10. package/dist/{chunk-2PQ34KU3.cjs → chunk-HL5NUKZW.cjs} +3 -3
  11. package/dist/{chunk-GZNMBZHY.mjs → chunk-IAGFDSNC.mjs} +1 -1
  12. package/dist/{chunk-QF5T6HXC.mjs → chunk-J46WDSRD.mjs} +3 -4
  13. package/dist/{chunk-RMYUE6HJ.mjs → chunk-JE4R5VA3.mjs} +1 -1
  14. package/dist/{chunk-4SRVZRZF.cjs → chunk-L32UI7LA.cjs} +1 -1
  15. package/dist/{chunk-4R2ZHSDQ.cjs → chunk-O7BCVQ6L.cjs} +1 -6
  16. package/dist/{chunk-LTPVHQXJ.cjs → chunk-OIN4CXCP.cjs} +378 -378
  17. package/dist/{chunk-6ZJTZ7DS.cjs → chunk-PWLEBV5V.cjs} +78 -79
  18. package/dist/{chunk-Q5MFRAWD.mjs → chunk-SDSKIJC7.mjs} +6 -6
  19. package/dist/{chunk-WZJMJFP7.cjs → chunk-TM7VGHAG.cjs} +62 -62
  20. package/dist/{chunk-BK54FZAE.cjs → chunk-UQIJU6HV.cjs} +79 -79
  21. package/dist/claim.cjs +6 -6
  22. package/dist/claim.mjs +5 -5
  23. package/dist/constants.cjs +3 -3
  24. package/dist/constants.d.cts +1 -1
  25. package/dist/constants.d.ts +1 -1
  26. package/dist/constants.mjs +2 -2
  27. package/dist/deposit.cjs +8 -8
  28. package/dist/deposit.mjs +7 -7
  29. package/dist/index.cjs +10 -10
  30. package/dist/index.mjs +9 -9
  31. package/dist/polymarket.cjs +5 -5
  32. package/dist/polymarket.mjs +2 -2
  33. package/dist/styles.css +9 -0
  34. package/dist/withdraw.cjs +6 -6
  35. package/dist/withdraw.mjs +5 -5
  36. 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 _chunk4SRVZRZFcjs = require('./chunk-4SRVZRZF.cjs');
3
+ var _chunkL32UI7LAcjs = require('./chunk-L32UI7LA.cjs');
4
4
 
5
5
 
6
6
 
@@ -26,7 +26,8 @@ var _chunk4SRVZRZFcjs = require('./chunk-4SRVZRZF.cjs');
26
26
 
27
27
 
28
28
 
29
- var _chunk4R2ZHSDQcjs = require('./chunk-4R2ZHSDQ.cjs');
29
+
30
+ var _chunkO7BCVQ6Lcjs = require('./chunk-O7BCVQ6L.cjs');
30
31
 
31
32
  // src/components/ui/Modal.tsx
32
33
 
@@ -68,12 +69,7 @@ function Modal({
68
69
  }, [isOpen]);
69
70
  _react.useEffect.call(void 0, () => {
70
71
  if (isOpen && contentRef.current) {
71
- const focusable = getFocusableElements(contentRef.current);
72
- if (focusable.length > 0) {
73
- focusable[0].focus();
74
- } else {
75
- contentRef.current.focus();
76
- }
72
+ contentRef.current.focus();
77
73
  }
78
74
  }, [isOpen]);
79
75
  _react.useEffect.call(void 0, () => {
@@ -98,7 +94,7 @@ function Modal({
98
94
  const firstElement = focusable[0];
99
95
  const lastElement = focusable[focusable.length - 1];
100
96
  if (event.shiftKey) {
101
- if (document.activeElement === firstElement) {
97
+ if (document.activeElement === firstElement || document.activeElement === contentRef.current) {
102
98
  event.preventDefault();
103
99
  lastElement.focus();
104
100
  }
@@ -332,7 +328,7 @@ function preconnectIconCdn() {
332
328
  const link = document.createElement("link");
333
329
  link.id = "rs-icon-cdn-preconnect";
334
330
  link.rel = "preconnect";
335
- link.href = _chunk4R2ZHSDQcjs.ICON_CDN;
331
+ link.href = _chunkO7BCVQ6Lcjs.ICON_CDN;
336
332
  link.crossOrigin = "anonymous";
337
333
  document.head.appendChild(link);
338
334
  }
@@ -550,7 +546,7 @@ function parseChain(caip2, value) {
550
546
  // `parseEvmChainId` returns null for `solana:`/`tron:`/`hypercore:` keys,
551
547
  // which is the intended answer — those chains have no numeric id, and the
552
548
  // modal addresses them by their CAIP-2 string or a sentinel.
553
- chainId: _chunk4R2ZHSDQcjs.parseEvmChainId.call(void 0, caip2),
549
+ chainId: _chunkO7BCVQ6Lcjs.parseEvmChainId.call(void 0, caip2),
554
550
  name,
555
551
  testnet,
556
552
  deposit,
@@ -579,12 +575,21 @@ function parseChainCatalog(body) {
579
575
  if (chain.chainId !== null) byChainId.set(chain.chainId, chain);
580
576
  }
581
577
  if (all.length === 0) return null;
578
+ aliasHyperCoreOrigin(byCaip2, all);
582
579
  return { all, byCaip2, byChainId };
583
580
  }
581
+ function aliasHyperCoreOrigin(byCaip2, all) {
582
+ const origin = _nullishCoalesce(all.find((c) => _chunkO7BCVQ6Lcjs.isHyperCoreCaip2.call(void 0, c.caip2) && c.deposit), () => ( all.find((c) => _chunkO7BCVQ6Lcjs.isHyperCoreCaip2.call(void 0, c.caip2))));
583
+ if (!origin) return;
584
+ byCaip2.set(_chunkO7BCVQ6Lcjs.HYPERCORE_MAINNET_CAIP2, origin);
585
+ if (!byCaip2.has(_chunkO7BCVQ6Lcjs.HYPERCORE_SPOT_CAIP2)) {
586
+ byCaip2.set(_chunkO7BCVQ6Lcjs.HYPERCORE_SPOT_CAIP2, origin);
587
+ }
588
+ }
584
589
  function catalogKeyForChain(chainId) {
585
- if (chainId === "solana") return _chunk4R2ZHSDQcjs.SOLANA_MAINNET_CAIP2;
586
- if (chainId === "hypercore" || chainId === _chunk4R2ZHSDQcjs.HYPERCORE_CHAIN_ID) {
587
- return _chunk4R2ZHSDQcjs.HYPERCORE_MAINNET_CAIP2;
590
+ if (chainId === "solana") return _chunkO7BCVQ6Lcjs.SOLANA_MAINNET_CAIP2;
591
+ if (chainId === "hypercore" || chainId === _chunkO7BCVQ6Lcjs.HYPERCORE_CHAIN_ID) {
592
+ return _chunkO7BCVQ6Lcjs.HYPERCORE_MAINNET_CAIP2;
588
593
  }
589
594
  return chainId;
590
595
  }
@@ -889,7 +894,7 @@ function createDepositService(baseUrl, options) {
889
894
  try {
890
895
  const response = await fetch(apiUrl("/qr/tokens"), {
891
896
  method: "GET",
892
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS
897
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS
893
898
  });
894
899
  if (!response.ok) {
895
900
  debugLog(debug, scope, "getTopTokens:unavailable", {
@@ -916,7 +921,7 @@ function createDepositService(baseUrl, options) {
916
921
  try {
917
922
  const response = await fetch(apiUrl("/chains"), {
918
923
  method: "GET",
919
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS
924
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS
920
925
  });
921
926
  if (!response.ok) {
922
927
  debugLog(debug, scope, "getChains:unavailable", {
@@ -970,7 +975,7 @@ function createDepositService(baseUrl, options) {
970
975
  });
971
976
  const response = await fetch(url, {
972
977
  method: "POST",
973
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
978
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
974
979
  body: JSON.stringify({ account: params })
975
980
  });
976
981
  if (!response.ok) {
@@ -1003,7 +1008,7 @@ function createDepositService(baseUrl, options) {
1003
1008
  debugLog(debug, scope, "fetchPortfolio:request", { url, address });
1004
1009
  const response = await fetch(url, {
1005
1010
  method: "GET",
1006
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS
1011
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS
1007
1012
  });
1008
1013
  if (!response.ok) {
1009
1014
  const error = await response.json().catch(() => ({ error: "Unknown error" }));
@@ -1050,7 +1055,7 @@ function createDepositService(baseUrl, options) {
1050
1055
  debugLog(debug, scope, "fetchSolanaPortfolio:request", { url, address });
1051
1056
  const response = await fetch(url, {
1052
1057
  method: "GET",
1053
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS
1058
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS
1054
1059
  });
1055
1060
  if (!response.ok) {
1056
1061
  const error = await response.json().catch(() => ({ error: "Unknown error" }));
@@ -1080,7 +1085,7 @@ function createDepositService(baseUrl, options) {
1080
1085
  debugLog(debug, scope, "checkAccount:request", { url, address });
1081
1086
  const response = await fetch(url, {
1082
1087
  method: "GET",
1083
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS
1088
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS
1084
1089
  });
1085
1090
  if (!response.ok) {
1086
1091
  const error = await response.json().catch(() => ({ error: "Unknown error" }));
@@ -1115,7 +1120,7 @@ function createDepositService(baseUrl, options) {
1115
1120
  );
1116
1121
  const response = await fetch(url, {
1117
1122
  method: "GET",
1118
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
1123
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
1119
1124
  cache: "no-store"
1120
1125
  });
1121
1126
  if (!response.ok) {
@@ -1143,7 +1148,7 @@ function createDepositService(baseUrl, options) {
1143
1148
  );
1144
1149
  const response = await fetch(url, {
1145
1150
  method: "GET",
1146
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
1151
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
1147
1152
  cache: "no-store"
1148
1153
  });
1149
1154
  if (!response.ok) {
@@ -1167,7 +1172,7 @@ function createDepositService(baseUrl, options) {
1167
1172
  );
1168
1173
  const response = await fetch(url, {
1169
1174
  method: "GET",
1170
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
1175
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
1171
1176
  cache: "no-store"
1172
1177
  });
1173
1178
  if (!response.ok) {
@@ -1189,7 +1194,7 @@ function createDepositService(baseUrl, options) {
1189
1194
  async getPositions(address) {
1190
1195
  const url = apiUrl(`/positions/${address}`);
1191
1196
  debugLog(debug, scope, "getPositions:request", { url, address });
1192
- const response = await fetch(url, { headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS });
1197
+ const response = await fetch(url, { headers: _chunkL32UI7LAcjs.SERVICE_HEADERS });
1193
1198
  if (!response.ok) {
1194
1199
  const error = await response.json().catch(() => ({ error: "Unknown error" }));
1195
1200
  debugError(debug, scope, "getPositions:failed", error, {
@@ -1223,7 +1228,7 @@ function createDepositService(baseUrl, options) {
1223
1228
  });
1224
1229
  const response = await fetch(url, {
1225
1230
  method: "POST",
1226
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
1231
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
1227
1232
  body: JSON.stringify({ account, market, chainId, asset, amount })
1228
1233
  });
1229
1234
  if (!response.ok) {
@@ -1259,7 +1264,7 @@ function createDepositService(baseUrl, options) {
1259
1264
  });
1260
1265
  const response = await fetch(url, {
1261
1266
  method: "POST",
1262
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
1267
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
1263
1268
  body: JSON.stringify({
1264
1269
  depositWallet,
1265
1270
  owner,
@@ -1301,7 +1306,7 @@ function createDepositService(baseUrl, options) {
1301
1306
  });
1302
1307
  const response = await fetch(url, {
1303
1308
  method: "GET",
1304
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
1309
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
1305
1310
  cache: "no-store"
1306
1311
  });
1307
1312
  if (!response.ok) {
@@ -1328,8 +1333,8 @@ function createDepositService(baseUrl, options) {
1328
1333
  return { deposits, nextCursor };
1329
1334
  },
1330
1335
  async checkLiquidity(params) {
1331
- if (_chunk4R2ZHSDQcjs.isSolanaCaip2.call(void 0, params.destinationChainId) || params.destinationChainId === "solana") {
1332
- const token = _chunk4R2ZHSDQcjs.getSolanaTokenByMint.call(void 0, params.destinationToken);
1336
+ if (_chunkO7BCVQ6Lcjs.isSolanaCaip2.call(void 0, params.destinationChainId) || params.destinationChainId === "solana") {
1337
+ const token = _chunkO7BCVQ6Lcjs.getSolanaTokenByMint.call(void 0, params.destinationToken);
1333
1338
  return {
1334
1339
  hasLiquidity: true,
1335
1340
  symbol: _nullishCoalesce(_optionalChain([token, 'optionalAccess', _40 => _40.symbol]), () => ( "Token")),
@@ -1339,7 +1344,7 @@ function createDepositService(baseUrl, options) {
1339
1344
  };
1340
1345
  }
1341
1346
  const searchParams = new URLSearchParams({
1342
- sourceChainId: _chunk4R2ZHSDQcjs.toEvmCaip2.call(void 0, params.sourceChainId),
1347
+ sourceChainId: _chunkO7BCVQ6Lcjs.toEvmCaip2.call(void 0, params.sourceChainId),
1343
1348
  sourceToken: params.sourceToken,
1344
1349
  destinationChainId: params.destinationChainId,
1345
1350
  destinationToken: params.destinationToken,
@@ -1354,7 +1359,7 @@ function createDepositService(baseUrl, options) {
1354
1359
  });
1355
1360
  const response = await fetch(url, {
1356
1361
  method: "GET",
1357
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
1362
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
1358
1363
  cache: "no-store"
1359
1364
  });
1360
1365
  if (!response.ok) {
@@ -1386,7 +1391,7 @@ function createDepositService(baseUrl, options) {
1386
1391
  const body = {
1387
1392
  account: params.account,
1388
1393
  // HyperCore has its own CAIP-2 namespace — never the eip155 placeholder.
1389
- sourceChainId: params.sourceChainId === "hypercore" ? _chunk4R2ZHSDQcjs.HYPERCORE_MAINNET_CAIP2 : `eip155:${params.sourceChainId}`,
1394
+ sourceChainId: params.sourceChainId === "hypercore" ? _chunkO7BCVQ6Lcjs.HYPERCORE_MAINNET_CAIP2 : `eip155:${params.sourceChainId}`,
1390
1395
  sourceToken: params.sourceToken,
1391
1396
  amount: params.amount
1392
1397
  };
@@ -1399,7 +1404,7 @@ function createDepositService(baseUrl, options) {
1399
1404
  try {
1400
1405
  const response = await fetch(url, {
1401
1406
  method: "POST",
1402
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
1407
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
1403
1408
  body: JSON.stringify(body),
1404
1409
  cache: "no-store"
1405
1410
  });
@@ -1436,7 +1441,7 @@ function createDepositService(baseUrl, options) {
1436
1441
  try {
1437
1442
  const response = await fetch(url, {
1438
1443
  method: "GET",
1439
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
1444
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
1440
1445
  cache: "no-store"
1441
1446
  });
1442
1447
  if (!response.ok) {
@@ -1466,7 +1471,7 @@ function createDepositService(baseUrl, options) {
1466
1471
  try {
1467
1472
  const response = await fetch(url, {
1468
1473
  method: "GET",
1469
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
1474
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
1470
1475
  cache: "no-store"
1471
1476
  });
1472
1477
  if (!response.ok) {
@@ -1491,7 +1496,7 @@ function createDepositService(baseUrl, options) {
1491
1496
  });
1492
1497
  const response = await fetch(url, {
1493
1498
  method: "POST",
1494
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
1499
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
1495
1500
  body: JSON.stringify(params)
1496
1501
  });
1497
1502
  if (!response.ok) {
@@ -1523,7 +1528,7 @@ function createDepositService(baseUrl, options) {
1523
1528
  });
1524
1529
  const response = await fetch(url, {
1525
1530
  method: "POST",
1526
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
1531
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
1527
1532
  body: JSON.stringify(params)
1528
1533
  });
1529
1534
  if (!response.ok) {
@@ -1560,7 +1565,7 @@ function createDepositService(baseUrl, options) {
1560
1565
  debugLog(debug, scope, "getSwappedConnectExchanges:request");
1561
1566
  const response = await fetch(url, {
1562
1567
  method: "GET",
1563
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
1568
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
1564
1569
  cache: "no-store"
1565
1570
  });
1566
1571
  if (!response.ok) {
@@ -1613,7 +1618,7 @@ function createDepositService(baseUrl, options) {
1613
1618
  try {
1614
1619
  const response = await fetch(url, {
1615
1620
  method: "GET",
1616
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
1621
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
1617
1622
  cache: "no-store"
1618
1623
  });
1619
1624
  if (!response.ok) {
@@ -1699,7 +1704,7 @@ function createDepositService(baseUrl, options) {
1699
1704
  try {
1700
1705
  const response = await fetch(url, {
1701
1706
  method: "GET",
1702
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
1707
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
1703
1708
  cache: "no-store"
1704
1709
  });
1705
1710
  if (!response.ok) {
@@ -1726,7 +1731,7 @@ function createDepositService(baseUrl, options) {
1726
1731
  );
1727
1732
  const response = await fetch(url, {
1728
1733
  method: "GET",
1729
- headers: _chunk4SRVZRZFcjs.SERVICE_HEADERS,
1734
+ headers: _chunkL32UI7LAcjs.SERVICE_HEADERS,
1730
1735
  cache: "no-store"
1731
1736
  });
1732
1737
  if (!response.ok) return null;
@@ -1790,14 +1795,14 @@ function normalizeOrchestratorPortfolio(data) {
1790
1795
  const unlocked = _nullishCoalesce(_optionalChain([chainBalance, 'access', _45 => _45.balance, 'optionalAccess', _46 => _46.unlocked]), () => ( "0"));
1791
1796
  const normalizedName = tokenData.tokenName.trim();
1792
1797
  const isNativeSymbol = normalizedName.toUpperCase() === "ETH" || normalizedName.toUpperCase() === "ETHER";
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;
1798
+ const tokenAddress = _nullishCoalesce(_nullishCoalesce(chainBalance.tokenAddress, () => ( extractTokenAddress(tokenData, chainBalance.chainId))), () => ( _chunkO7BCVQ6Lcjs.getTokenAddress.call(void 0, tokenData.tokenName, chainBalance.chainId)));
1799
+ const resolvedTokenAddress = isNativeSymbol ? _chunkO7BCVQ6Lcjs.NATIVE_TOKEN_ADDRESS : tokenAddress;
1795
1800
  if (!resolvedTokenAddress) {
1796
1801
  continue;
1797
1802
  }
1798
- const registrySymbol = _chunk4R2ZHSDQcjs.getTokenSymbol.call(void 0, resolvedTokenAddress, chainBalance.chainId);
1803
+ const registrySymbol = _chunkO7BCVQ6Lcjs.getTokenSymbol.call(void 0, resolvedTokenAddress, chainBalance.chainId);
1799
1804
  const symbol = registrySymbol !== "Token" ? registrySymbol : normalizedName || "Token";
1800
- const decimals = registrySymbol !== "Token" ? _chunk4R2ZHSDQcjs.getTokenDecimalsByAddress.call(void 0, resolvedTokenAddress, chainBalance.chainId) : _nullishCoalesce(tokenData.tokenDecimals, () => ( 18));
1805
+ const decimals = registrySymbol !== "Token" ? _chunkO7BCVQ6Lcjs.getTokenDecimalsByAddress.call(void 0, resolvedTokenAddress, chainBalance.chainId) : _nullishCoalesce(tokenData.tokenDecimals, () => ( 18));
1801
1806
  tokens.push({
1802
1807
  chainId: chainBalance.chainId,
1803
1808
  address: resolvedTokenAddress,
@@ -1817,13 +1822,13 @@ function normalizeOrchestratorPortfolio(data) {
1817
1822
  function normalizeDirectToken(token) {
1818
1823
  const rawChainId = _nullishCoalesce(extractNumber(token, "chainId"), () => ( extractNumber(token.chain, "id")));
1819
1824
  const rawChainString = _nullishCoalesce(extractString(token, "chainId"), () => ( extractString(token.chain, "id")));
1820
- const chainId = _nullishCoalesce(rawChainId, () => ( (rawChainString ? _chunk4R2ZHSDQcjs.isSolanaCaip2.call(void 0, rawChainString) || rawChainString.toLowerCase() === "solana" ? "solana" : (
1825
+ const chainId = _nullishCoalesce(rawChainId, () => ( (rawChainString ? _chunkO7BCVQ6Lcjs.isSolanaCaip2.call(void 0, rawChainString) || rawChainString.toLowerCase() === "solana" ? "solana" : (
1821
1826
  // HyperCore (`hypercore:mainnet`) is a non-EVM source; keep its USDC
1822
1827
  // instead of dropping it as an unparseable chain string.
1823
- _chunk4R2ZHSDQcjs.isHyperCoreCaip2.call(void 0, rawChainString) || rawChainString.toLowerCase() === "hypercore" ? "hypercore" : _chunk4R2ZHSDQcjs.parseEvmChainId.call(void 0, rawChainString)
1828
+ _chunkO7BCVQ6Lcjs.isHyperCoreCaip2.call(void 0, rawChainString) || rawChainString.toLowerCase() === "hypercore" ? "hypercore" : _chunkO7BCVQ6Lcjs.parseEvmChainId.call(void 0, rawChainString)
1824
1829
  ) : null)));
1825
1830
  if (chainId === null) return null;
1826
- const registryChainId = typeof chainId === "number" ? chainId : chainId === "hypercore" ? _chunk4R2ZHSDQcjs.HYPERCORE_CHAIN_ID : void 0;
1831
+ const registryChainId = typeof chainId === "number" ? chainId : chainId === "hypercore" ? _chunkO7BCVQ6Lcjs.HYPERCORE_CHAIN_ID : void 0;
1827
1832
  const symbol = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractString(token, "symbol"), () => ( extractString(token, "tokenSymbol"))), () => ( extractString(token, "tokenName"))), () => ( extractString(token, "name")));
1828
1833
  if (!symbol) return null;
1829
1834
  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()])));
@@ -1831,14 +1836,14 @@ function normalizeDirectToken(token) {
1831
1836
  const address = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractString(token, "address"), () => ( extractString(token, "tokenAddress"))), () => ( extractString(
1832
1837
  token.token,
1833
1838
  "address"
1834
- ))), () => ( (registryChainId !== void 0 ? _chunk4R2ZHSDQcjs.getTokenAddress.call(void 0, symbol, registryChainId) : void 0)));
1839
+ ))), () => ( (registryChainId !== void 0 ? _chunkO7BCVQ6Lcjs.getTokenAddress.call(void 0, symbol, registryChainId) : void 0)));
1835
1840
  if (!address) return null;
1836
1841
  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));
1837
1842
  const isSolanaToken = chainId === "solana";
1838
- const registrySymbol = isSolanaToken ? "Token" : _chunk4R2ZHSDQcjs.getTokenSymbol.call(void 0, address, registryChainId);
1843
+ const registrySymbol = isSolanaToken ? "Token" : _chunkO7BCVQ6Lcjs.getTokenSymbol.call(void 0, address, registryChainId);
1839
1844
  const resolvedSymbol = isSolanaToken ? symbol : registrySymbol !== "Token" ? registrySymbol : symbol;
1840
1845
  const backendDecimals = _nullishCoalesce(extractNumber(token, "decimals"), () => ( extractNumber(token, "tokenDecimals")));
1841
- const resolvedDecimals = !isSolanaToken && registrySymbol !== "Token" ? _chunk4R2ZHSDQcjs.getTokenDecimalsByAddress.call(void 0, address, registryChainId) : _nullishCoalesce(backendDecimals, () => ( 18));
1846
+ const resolvedDecimals = !isSolanaToken && registrySymbol !== "Token" ? _chunkO7BCVQ6Lcjs.getTokenDecimalsByAddress.call(void 0, address, registryChainId) : _nullishCoalesce(backendDecimals, () => ( 18));
1842
1847
  return {
1843
1848
  chainId,
1844
1849
  address,
@@ -1926,7 +1931,7 @@ function getPublicClient(chainId, rpcUrls) {
1926
1931
  const cacheKey = `${chainId}|${_nullishCoalesce(url, () => ( ""))}`;
1927
1932
  let client = clientCache.get(cacheKey);
1928
1933
  if (!client) {
1929
- const chain = _nullishCoalesce(_chunk4R2ZHSDQcjs.CHAIN_BY_ID[chainId], () => ( runtimeChainById.get(chainId)));
1934
+ const chain = _nullishCoalesce(_chunkO7BCVQ6Lcjs.CHAIN_BY_ID[chainId], () => ( runtimeChainById.get(chainId)));
1930
1935
  client = _viem.createPublicClient.call(void 0, {
1931
1936
  chain,
1932
1937
  transport: _viem.http.call(void 0, url)
@@ -2069,7 +2074,7 @@ function peekRuntimeChains(backendUrl, overrides) {
2069
2074
  return _nullishCoalesce(resolvedChainsByKey.get(runtimeChainsKey(backendUrl, overrides)), () => ( null));
2070
2075
  }
2071
2076
  function publishCatalogTokens(catalog) {
2072
- _chunk4R2ZHSDQcjs.setRuntimeTokens.call(void 0,
2077
+ _chunkO7BCVQ6Lcjs.setRuntimeTokens.call(void 0,
2073
2078
  catalog.all.flatMap(
2074
2079
  (chain) => chain.chainId === null || !Array.isArray(chain.supportedTokens) ? [] : chain.supportedTokens.map((token) => ({
2075
2080
  chainId: chain.chainId,
@@ -2081,11 +2086,11 @@ function publishCatalogTokens(catalog) {
2081
2086
  );
2082
2087
  }
2083
2088
  function publishRuntimeChainMeta(catalog) {
2084
- _chunk4R2ZHSDQcjs.setRuntimeChainMeta.call(void 0,
2089
+ _chunkO7BCVQ6Lcjs.setRuntimeChainMeta.call(void 0,
2085
2090
  catalog.all.flatMap((chain) => {
2086
2091
  const ids = [];
2087
2092
  if (chain.chainId !== null) ids.push(chain.chainId);
2088
- if (chain.caip2 === _chunk4R2ZHSDQcjs.HYPERCORE_MAINNET_CAIP2) ids.push(_chunk4R2ZHSDQcjs.HYPERCORE_CHAIN_ID);
2093
+ if (_chunkO7BCVQ6Lcjs.isHyperCoreCaip2.call(void 0, chain.caip2)) ids.push(_chunkO7BCVQ6Lcjs.HYPERCORE_CHAIN_ID);
2089
2094
  return ids.map((chainId) => ({
2090
2095
  chainId,
2091
2096
  name: chain.name,
@@ -2140,8 +2145,8 @@ function useDepositChainIds() {
2140
2145
  !c.testnet
2141
2146
  ).map((c) => c.chainId);
2142
2147
  const rank = (id) => {
2143
- const i = _chunk4R2ZHSDQcjs.CHAIN_DISPLAY_ORDER.indexOf(id);
2144
- return i === -1 ? _chunk4R2ZHSDQcjs.CHAIN_DISPLAY_ORDER.length : i;
2148
+ const i = _chunkO7BCVQ6Lcjs.CHAIN_DISPLAY_ORDER.indexOf(id);
2149
+ return i === -1 ? _chunkO7BCVQ6Lcjs.CHAIN_DISPLAY_ORDER.length : i;
2145
2150
  };
2146
2151
  return ids.map((id, i) => ({ id, i })).sort((a, b) => rank(a.id) - rank(b.id) || a.i - b.i).map(({ id }) => id);
2147
2152
  }, [catalog]);
@@ -2151,8 +2156,8 @@ function useDestinationChains() {
2151
2156
  return _react.useMemo.call(void 0, () => {
2152
2157
  if (!catalog) return [];
2153
2158
  const rank = (id) => {
2154
- const i = _chunk4R2ZHSDQcjs.CHAIN_DISPLAY_ORDER.indexOf(id);
2155
- return i === -1 ? _chunk4R2ZHSDQcjs.CHAIN_DISPLAY_ORDER.length : i;
2159
+ const i = _chunkO7BCVQ6Lcjs.CHAIN_DISPLAY_ORDER.indexOf(id);
2160
+ return i === -1 ? _chunkO7BCVQ6Lcjs.CHAIN_DISPLAY_ORDER.length : i;
2156
2161
  };
2157
2162
  return catalog.all.filter(
2158
2163
  (c) => c.destination && c.vmType === "evm" && c.chainId !== null && !c.testnet
@@ -2192,10 +2197,10 @@ function useChainName() {
2192
2197
  const { catalog } = useChainCatalog();
2193
2198
  return _react.useMemo.call(void 0, () => {
2194
2199
  return (chainId) => {
2195
- if (!catalog) return _chunk4R2ZHSDQcjs.getChainName.call(void 0, chainId);
2200
+ if (!catalog) return _chunkO7BCVQ6Lcjs.getChainName.call(void 0, chainId);
2196
2201
  const key = catalogKeyForChain(chainId);
2197
2202
  const entry = typeof key === "number" ? catalog.byChainId.get(key) : catalog.byCaip2.get(key);
2198
- return _nullishCoalesce(_optionalChain([entry, 'optionalAccess', _95 => _95.name]), () => ( _chunk4R2ZHSDQcjs.getChainName.call(void 0, chainId)));
2203
+ return _nullishCoalesce(_optionalChain([entry, 'optionalAccess', _95 => _95.name]), () => ( _chunkO7BCVQ6Lcjs.getChainName.call(void 0, chainId)));
2199
2204
  };
2200
2205
  }, [catalog]);
2201
2206
  }
@@ -2203,10 +2208,10 @@ function useExplorerTxUrl() {
2203
2208
  const { catalog } = useChainCatalog();
2204
2209
  return _react.useMemo.call(void 0, () => {
2205
2210
  return (chainId, txHash) => {
2206
- if (chainId === "hypercore") return _chunk4R2ZHSDQcjs.getExplorerTxUrl.call(void 0, chainId, txHash);
2211
+ if (chainId === "hypercore") return _chunkO7BCVQ6Lcjs.getExplorerTxUrl.call(void 0, chainId, txHash);
2207
2212
  const key = catalog ? catalogKeyForChain(chainId) : void 0;
2208
2213
  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)));
2214
+ return _nullishCoalesce(catalogExplorerTxUrl(entry, txHash), () => ( _chunkO7BCVQ6Lcjs.getExplorerTxUrl.call(void 0, chainId, txHash)));
2210
2215
  };
2211
2216
  }, [catalog]);
2212
2217
  }
@@ -2264,7 +2269,7 @@ function ChainCatalogProvider({
2264
2269
  setShortlist(null);
2265
2270
  service.getTopTokens().then((tokens) => {
2266
2271
  if (!active || !tokens) return;
2267
- _chunk4R2ZHSDQcjs.publishShortlistTokens.call(void 0, tokens);
2272
+ _chunkO7BCVQ6Lcjs.publishShortlistTokens.call(void 0, tokens);
2268
2273
  setShortlist(tokens);
2269
2274
  });
2270
2275
  return () => {
@@ -2416,7 +2421,7 @@ function TokenIcon({ symbol, className, fallback }) {
2416
2421
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2417
2422
  CdnIcon,
2418
2423
  {
2419
- src: _chunk4R2ZHSDQcjs.tokenIconUrl.call(void 0, symbol),
2424
+ src: _chunkO7BCVQ6Lcjs.tokenIconUrl.call(void 0, symbol),
2420
2425
  className: `rs-token-icon ${_nullishCoalesce(className, () => ( ""))}`.trimEnd(),
2421
2426
  fallback
2422
2427
  }
@@ -2549,18 +2554,18 @@ var EVM_ADDRESS_RE = /^0x[a-fA-F0-9]{40}$/;
2549
2554
  function resolveTokenDisplay(token, chain, fallback) {
2550
2555
  if (token !== void 0) {
2551
2556
  if (chain === "solana") {
2552
- const solanaToken = _chunk4R2ZHSDQcjs.getSolanaTokenByMint.call(void 0, token);
2557
+ const solanaToken = _chunkO7BCVQ6Lcjs.getSolanaTokenByMint.call(void 0, token);
2553
2558
  if (solanaToken) {
2554
2559
  return { symbol: solanaToken.symbol, decimals: solanaToken.decimals };
2555
2560
  }
2556
2561
  } else if (chain === "hypercore") {
2557
- const t = _chunk4R2ZHSDQcjs.HYPERCORE_SOURCE_TOKENS.find(
2562
+ const t = _chunkO7BCVQ6Lcjs.HYPERCORE_SOURCE_TOKENS.find(
2558
2563
  (x) => x.address.toLowerCase() === token.toLowerCase()
2559
2564
  );
2560
2565
  if (t) return { symbol: t.symbol, decimals: t.decimals };
2561
2566
  } else if (EVM_ADDRESS_RE.test(token)) {
2562
- const symbol = _chunk4R2ZHSDQcjs.getTokenSymbol.call(void 0, token, chain);
2563
- const decimals = _chunk4R2ZHSDQcjs.findTokenDecimals.call(void 0, token, chain);
2567
+ const symbol = _chunkO7BCVQ6Lcjs.getTokenSymbol.call(void 0, token, chain);
2568
+ const decimals = _chunkO7BCVQ6Lcjs.findTokenDecimals.call(void 0, token, chain);
2564
2569
  if (symbol !== "Token" || decimals !== void 0) {
2565
2570
  return {
2566
2571
  symbol: symbol !== "Token" ? symbol : _nullishCoalesce(_optionalChain([fallback, 'optionalAccess', _102 => _102.symbol]), () => ( symbol)),
@@ -2609,13 +2614,13 @@ function priceUsdFor(symbol, prices) {
2609
2614
  }
2610
2615
  function isRecognizedToken(address, chain) {
2611
2616
  if (address === void 0 || chain === void 0) return false;
2612
- if (chain === "solana") return _chunk4R2ZHSDQcjs.getSolanaTokenByMint.call(void 0, address) !== void 0;
2617
+ if (chain === "solana") return _chunkO7BCVQ6Lcjs.getSolanaTokenByMint.call(void 0, address) !== void 0;
2613
2618
  if (chain === "hypercore") {
2614
- return _chunk4R2ZHSDQcjs.HYPERCORE_SOURCE_TOKENS.some(
2619
+ return _chunkO7BCVQ6Lcjs.HYPERCORE_SOURCE_TOKENS.some(
2615
2620
  (t) => t.address.toLowerCase() === address.toLowerCase()
2616
2621
  );
2617
2622
  }
2618
- return EVM_ADDRESS_RE.test(address) && _chunk4R2ZHSDQcjs.isRegistryTokenOnChain.call(void 0, address, chain);
2623
+ return EVM_ADDRESS_RE.test(address) && _chunkO7BCVQ6Lcjs.isRegistryTokenOnChain.call(void 0, address, chain);
2619
2624
  }
2620
2625
  function estimateReceiveAmount(params) {
2621
2626
  const {
@@ -3,7 +3,7 @@ import {
3
3
  deriveAccountSalt,
4
4
  useTokenPrices,
5
5
  warnRemovedProps
6
- } from "./chunk-QF5T6HXC.mjs";
6
+ } from "./chunk-J46WDSRD.mjs";
7
7
  import {
8
8
  BodyHeader,
9
9
  Button,
@@ -37,7 +37,7 @@ import {
37
37
  useRpcUrls,
38
38
  useStableRpcUrls,
39
39
  useTargetTokens
40
- } from "./chunk-5IP67CL5.mjs";
40
+ } from "./chunk-FXXUIK4E.mjs";
41
41
  import {
42
42
  NATIVE_TOKEN_ADDRESS,
43
43
  getChainIcon,
@@ -46,7 +46,7 @@ import {
46
46
  getTokenDecimalsByAddress,
47
47
  getTokenSymbol,
48
48
  targetChainToCaip2
49
- } from "./chunk-YR43AAX5.mjs";
49
+ } from "./chunk-3STTWRAN.mjs";
50
50
 
51
51
  // src/WithdrawModal.tsx
52
52
  import { useCallback as useCallback3, useEffect as useEffect3, useMemo as useMemo3, useRef as useRef3, useState as useState4 } from "react";
@@ -1,12 +1,13 @@
1
1
  import {
2
2
  SERVICE_HEADERS
3
- } from "./chunk-GZNMBZHY.mjs";
3
+ } from "./chunk-IAGFDSNC.mjs";
4
4
  import {
5
5
  CHAIN_BY_ID,
6
6
  CHAIN_DISPLAY_ORDER,
7
7
  HYPERCORE_CHAIN_ID,
8
8
  HYPERCORE_MAINNET_CAIP2,
9
9
  HYPERCORE_SOURCE_TOKENS,
10
+ HYPERCORE_SPOT_CAIP2,
10
11
  ICON_CDN,
11
12
  NATIVE_TOKEN_ADDRESS,
12
13
  SOLANA_MAINNET_CAIP2,
@@ -26,7 +27,7 @@ import {
26
27
  setRuntimeTokens,
27
28
  toEvmCaip2,
28
29
  tokenIconUrl
29
- } from "./chunk-YR43AAX5.mjs";
30
+ } from "./chunk-3STTWRAN.mjs";
30
31
 
31
32
  // src/components/ui/Modal.tsx
32
33
  import {
@@ -68,12 +69,7 @@ function Modal({
68
69
  }, [isOpen]);
69
70
  useEffect(() => {
70
71
  if (isOpen && contentRef.current) {
71
- const focusable = getFocusableElements(contentRef.current);
72
- if (focusable.length > 0) {
73
- focusable[0].focus();
74
- } else {
75
- contentRef.current.focus();
76
- }
72
+ contentRef.current.focus();
77
73
  }
78
74
  }, [isOpen]);
79
75
  useEffect(() => {
@@ -98,7 +94,7 @@ function Modal({
98
94
  const firstElement = focusable[0];
99
95
  const lastElement = focusable[focusable.length - 1];
100
96
  if (event.shiftKey) {
101
- if (document.activeElement === firstElement) {
97
+ if (document.activeElement === firstElement || document.activeElement === contentRef.current) {
102
98
  event.preventDefault();
103
99
  lastElement.focus();
104
100
  }
@@ -579,8 +575,17 @@ function parseChainCatalog(body) {
579
575
  if (chain.chainId !== null) byChainId.set(chain.chainId, chain);
580
576
  }
581
577
  if (all.length === 0) return null;
578
+ aliasHyperCoreOrigin(byCaip2, all);
582
579
  return { all, byCaip2, byChainId };
583
580
  }
581
+ function aliasHyperCoreOrigin(byCaip2, all) {
582
+ const origin = all.find((c) => isHyperCoreCaip2(c.caip2) && c.deposit) ?? all.find((c) => isHyperCoreCaip2(c.caip2));
583
+ if (!origin) return;
584
+ byCaip2.set(HYPERCORE_MAINNET_CAIP2, origin);
585
+ if (!byCaip2.has(HYPERCORE_SPOT_CAIP2)) {
586
+ byCaip2.set(HYPERCORE_SPOT_CAIP2, origin);
587
+ }
588
+ }
584
589
  function catalogKeyForChain(chainId) {
585
590
  if (chainId === "solana") return SOLANA_MAINNET_CAIP2;
586
591
  if (chainId === "hypercore" || chainId === HYPERCORE_CHAIN_ID) {
@@ -2085,7 +2090,7 @@ function publishRuntimeChainMeta(catalog) {
2085
2090
  catalog.all.flatMap((chain) => {
2086
2091
  const ids = [];
2087
2092
  if (chain.chainId !== null) ids.push(chain.chainId);
2088
- if (chain.caip2 === HYPERCORE_MAINNET_CAIP2) ids.push(HYPERCORE_CHAIN_ID);
2093
+ if (isHyperCoreCaip2(chain.caip2)) ids.push(HYPERCORE_CHAIN_ID);
2089
2094
  return ids.map((chainId) => ({
2090
2095
  chainId,
2091
2096
  name: chain.name,
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
3
 
4
- var _chunkLBJFACLHcjs = require('./chunk-LBJFACLH.cjs');
4
+ var _chunkBRYNGLDMcjs = require('./chunk-BRYNGLDM.cjs');
5
5
 
6
6
  // src/components/ui/ListRow.tsx
7
7
  var _jsxruntime = require('react/jsx-runtime');
@@ -19,7 +19,7 @@ function ListRow({
19
19
  ...props
20
20
  }) {
21
21
  const inner = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
22
- leadingMedia ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-leading rs-list-row-leading--media", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.CdnIcon, { src: leadingMedia }) }) : leading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-leading", children: leading }) : null,
22
+ leadingMedia ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-leading rs-list-row-leading--media", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.CdnIcon, { src: leadingMedia }) }) : leading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-leading", children: leading }) : null,
23
23
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-list-row-body", children: [
24
24
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-list-row-text", children: [
25
25
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-title", children: title }),
@@ -39,7 +39,7 @@ function ListRow({
39
39
  }
40
40
  ) : meta && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-list-row-meta", children: meta })
41
41
  ] }),
42
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-chevron", children: _nullishCoalesce(trailing, () => ( (disabled ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLBJFACLHcjs.ChevronRightIcon, {})))) })
42
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-list-row-chevron", children: _nullishCoalesce(trailing, () => ( (disabled ? null : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBRYNGLDMcjs.ChevronRightIcon, {})))) })
43
43
  ] });
44
44
  if (action) {
45
45
  const handleKey = (e) => {
@@ -1,5 +1,5 @@
1
1
  // src/core/version.ts
2
- var MODAL_VERSION = "0.12.0";
2
+ var MODAL_VERSION = "0.12.2";
3
3
  var SERVICE_HEADERS = {
4
4
  "Content-Type": "application/json",
5
5
  "x-deposit-modal-version": MODAL_VERSION