@rhinestone/deposit-modal 0.0.0-dev-20261007150149 → 0.0.0-dev-20261007154308

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 (49) hide show
  1. package/README.md +3 -0
  2. package/dist/{BankOnrampStep-IHG3XBWT.cjs → BankOnrampStep-FEDX7F4E.cjs} +11 -11
  3. package/dist/{BankOnrampStep-WAEOUF5V.mjs → BankOnrampStep-IA4RCDQW.mjs} +4 -4
  4. package/dist/{DepositModalReown-CONQQSZX.cjs → DepositModalReown-JEETACOZ.cjs} +16 -16
  5. package/dist/{DepositModalReown-HKBTH6PO.mjs → DepositModalReown-UZJNBXMJ.mjs} +3 -3
  6. package/dist/WithdrawModal-CJSHIMS7.cjs +12 -0
  7. package/dist/{WithdrawModal-NBFHRDJZ.mjs → WithdrawModal-K35OOYAU.mjs} +3 -3
  8. package/dist/{chunk-L2QZLQPN.cjs → chunk-23OA2A5F.cjs} +74 -48
  9. package/dist/{chunk-2ZXNBYO5.cjs → chunk-3LYP4YZK.cjs} +361 -301
  10. package/dist/{chunk-4NLRLEU4.cjs → chunk-6LXVDYJS.cjs} +3 -3
  11. package/dist/{chunk-U4DGC7VW.mjs → chunk-755IJK6Y.mjs} +1 -1
  12. package/dist/{chunk-6IMCCXIZ.mjs → chunk-APPAGHIF.mjs} +1 -1
  13. package/dist/{chunk-BMIZWMMF.mjs → chunk-AQ2AEMQJ.mjs} +1 -1
  14. package/dist/{chunk-I2QJUYMC.mjs → chunk-BSHECMA3.mjs} +1 -1
  15. package/dist/{chunk-72O5JQZ7.mjs → chunk-DDVCQXHN.mjs} +85 -25
  16. package/dist/{chunk-IYWTMJPV.cjs → chunk-ERY6NXPU.cjs} +1 -1
  17. package/dist/{chunk-OWFD36A7.mjs → chunk-JMMBO65S.mjs} +27 -1
  18. package/dist/{chunk-3ERB6ZBS.cjs → chunk-MOFVYUJD.cjs} +58 -58
  19. package/dist/{chunk-3CKHXFLU.mjs → chunk-TSIBCQP6.mjs} +1 -1
  20. package/dist/{chunk-7MPP6MF5.cjs → chunk-UJVCOHGI.cjs} +2 -2
  21. package/dist/{chunk-TO63P6IX.cjs → chunk-ZBGSC23T.cjs} +2 -2
  22. package/dist/compliance.cjs +4 -4
  23. package/dist/compliance.mjs +3 -3
  24. package/dist/constants.cjs +2 -2
  25. package/dist/constants.d.cts +1 -1
  26. package/dist/constants.d.ts +1 -1
  27. package/dist/constants.mjs +1 -1
  28. package/dist/deposit.cjs +4 -4
  29. package/dist/deposit.d.cts +2 -2
  30. package/dist/deposit.d.ts +2 -2
  31. package/dist/deposit.mjs +3 -3
  32. package/dist/embed.cjs +14 -14
  33. package/dist/embed.d.cts +1 -1
  34. package/dist/embed.d.ts +1 -1
  35. package/dist/embed.mjs +4 -4
  36. package/dist/index.cjs +5 -5
  37. package/dist/index.d.cts +1 -1
  38. package/dist/index.d.ts +1 -1
  39. package/dist/index.mjs +4 -4
  40. package/dist/onramp.cjs +4 -4
  41. package/dist/onramp.mjs +3 -3
  42. package/dist/{types-CixUBhrM.d.cts → types-BEEMfNi2.d.cts} +4 -2
  43. package/dist/{types-BxSrazbq.d.ts → types-DQDUqzsZ.d.ts} +4 -2
  44. package/dist/withdraw.cjs +4 -4
  45. package/dist/withdraw.d.cts +2 -2
  46. package/dist/withdraw.d.ts +2 -2
  47. package/dist/withdraw.mjs +3 -3
  48. package/package.json +1 -1
  49. package/dist/WithdrawModal-FQAATEDH.cjs +0 -12
@@ -45,7 +45,7 @@ var _chunkFKJ6EJHHcjs = require('./chunk-FKJ6EJHH.cjs');
45
45
 
46
46
 
47
47
 
48
- var _chunkIYWTMJPVcjs = require('./chunk-IYWTMJPV.cjs');
48
+ var _chunkERY6NXPUcjs = require('./chunk-ERY6NXPU.cjs');
49
49
 
50
50
  // src/components/ui/Modal.tsx
51
51
 
@@ -843,7 +843,7 @@ function createDepositService(baseUrl, options) {
843
843
  method === "GET" ? assetsGetUrl(ids, fields) : apiUrl("/assets"),
844
844
  {
845
845
  method,
846
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ),
846
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
847
847
  body: method === "QUERY" ? JSON.stringify({ ids, fields }) : void 0,
848
848
  cache: "no-store",
849
849
  signal
@@ -937,7 +937,7 @@ function createDepositService(baseUrl, options) {
937
937
  try {
938
938
  const response = await fetch(apiUrl("/qr/tokens"), {
939
939
  method: "GET",
940
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, )
940
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, )
941
941
  });
942
942
  if (!response.ok) {
943
943
  debugLog(debug, scope, "getTopTokens:unavailable", {
@@ -964,7 +964,7 @@ function createDepositService(baseUrl, options) {
964
964
  try {
965
965
  const response = await fetch(apiUrl("/chains"), {
966
966
  method: "GET",
967
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, )
967
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, )
968
968
  });
969
969
  if (!response.ok) {
970
970
  debugLog(debug, scope, "getChains:unavailable", {
@@ -1010,7 +1010,7 @@ function createDepositService(baseUrl, options) {
1010
1010
  const label = kind === "fiat" ? "Swapped widget URL" : "Swapped Connect URL";
1011
1011
  const response = await fetch(apiUrl("/onramp/orders"), {
1012
1012
  method: "POST",
1013
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ),
1013
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
1014
1014
  body: JSON.stringify({
1015
1015
  provider: "swapped",
1016
1016
  kind,
@@ -1051,7 +1051,7 @@ function createDepositService(baseUrl, options) {
1051
1051
  });
1052
1052
  const response = await fetch(url, {
1053
1053
  method: "POST",
1054
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ),
1054
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
1055
1055
  body: JSON.stringify({ account: params })
1056
1056
  });
1057
1057
  if (!response.ok) {
@@ -1086,7 +1086,7 @@ function createDepositService(baseUrl, options) {
1086
1086
  debugLog(debug, scope, "fetchPortfolio:request", { url, address });
1087
1087
  const response = await fetch(url, {
1088
1088
  method: "GET",
1089
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, )
1089
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, )
1090
1090
  });
1091
1091
  if (!response.ok) {
1092
1092
  const error = await response.json().catch(() => ({ error: "Unknown error" }));
@@ -1137,7 +1137,7 @@ function createDepositService(baseUrl, options) {
1137
1137
  });
1138
1138
  const response = await fetch(url, {
1139
1139
  method: "GET",
1140
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, )
1140
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, )
1141
1141
  });
1142
1142
  if (!response.ok) {
1143
1143
  const error = await response.json().catch(() => ({ error: "Unknown error" }));
@@ -1166,7 +1166,7 @@ function createDepositService(baseUrl, options) {
1166
1166
  debugLog(debug, scope, "checkAccount:request", { url, address });
1167
1167
  const response = await fetch(url, {
1168
1168
  method: "GET",
1169
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, )
1169
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, )
1170
1170
  });
1171
1171
  if (!response.ok) {
1172
1172
  const error = await response.json().catch(() => ({ error: "Unknown error" }));
@@ -1202,7 +1202,7 @@ function createDepositService(baseUrl, options) {
1202
1202
  );
1203
1203
  const response = await fetch(url, {
1204
1204
  method: "GET",
1205
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ),
1205
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
1206
1206
  cache: "no-store"
1207
1207
  });
1208
1208
  if (!response.ok) {
@@ -1230,7 +1230,7 @@ function createDepositService(baseUrl, options) {
1230
1230
  );
1231
1231
  const response = await fetch(url, {
1232
1232
  method: "GET",
1233
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ),
1233
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
1234
1234
  cache: "no-store"
1235
1235
  });
1236
1236
  if (!response.ok) {
@@ -1254,7 +1254,7 @@ function createDepositService(baseUrl, options) {
1254
1254
  );
1255
1255
  const response = await fetch(url, {
1256
1256
  method: "GET",
1257
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ),
1257
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
1258
1258
  cache: "no-store"
1259
1259
  });
1260
1260
  if (!response.ok) {
@@ -1276,7 +1276,7 @@ function createDepositService(baseUrl, options) {
1276
1276
  async getPositions(address) {
1277
1277
  const url = apiUrl(`/positions/${address}`);
1278
1278
  debugLog(debug, scope, "getPositions:request", { url, address });
1279
- const response = await fetch(url, { headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ) });
1279
+ const response = await fetch(url, { headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ) });
1280
1280
  if (!response.ok) {
1281
1281
  const error = await response.json().catch(() => ({ error: "Unknown error" }));
1282
1282
  debugError(debug, scope, "getPositions:failed", error, {
@@ -1310,7 +1310,7 @@ function createDepositService(baseUrl, options) {
1310
1310
  });
1311
1311
  const response = await fetch(url, {
1312
1312
  method: "POST",
1313
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ),
1313
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
1314
1314
  body: JSON.stringify({ account, market, chainId, asset, amount })
1315
1315
  });
1316
1316
  if (!response.ok) {
@@ -1346,7 +1346,7 @@ function createDepositService(baseUrl, options) {
1346
1346
  });
1347
1347
  const response = await fetch(url, {
1348
1348
  method: "POST",
1349
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ),
1349
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
1350
1350
  body: JSON.stringify({
1351
1351
  depositWallet,
1352
1352
  owner,
@@ -1388,7 +1388,7 @@ function createDepositService(baseUrl, options) {
1388
1388
  });
1389
1389
  const response = await fetch(url, {
1390
1390
  method: "GET",
1391
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ),
1391
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
1392
1392
  cache: "no-store"
1393
1393
  });
1394
1394
  if (!response.ok) {
@@ -1438,7 +1438,7 @@ function createDepositService(baseUrl, options) {
1438
1438
  });
1439
1439
  const response = await fetch(url, {
1440
1440
  method: "GET",
1441
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ),
1441
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
1442
1442
  cache: "no-store"
1443
1443
  });
1444
1444
  if (!response.ok) {
@@ -1492,7 +1492,7 @@ function createDepositService(baseUrl, options) {
1492
1492
  try {
1493
1493
  const response = await fetch(url, {
1494
1494
  method: "POST",
1495
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ),
1495
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
1496
1496
  body: JSON.stringify(body),
1497
1497
  cache: "no-store",
1498
1498
  signal
@@ -1542,7 +1542,7 @@ function createDepositService(baseUrl, options) {
1542
1542
  try {
1543
1543
  const response = await fetch(url, {
1544
1544
  method: "POST",
1545
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ),
1545
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
1546
1546
  body: JSON.stringify({ ...params, kind: "auto" }),
1547
1547
  cache: "no-store",
1548
1548
  signal
@@ -1645,7 +1645,7 @@ function createDepositService(baseUrl, options) {
1645
1645
  try {
1646
1646
  response = await fetch(url, {
1647
1647
  method: "POST",
1648
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ),
1648
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
1649
1649
  body: JSON.stringify(params)
1650
1650
  });
1651
1651
  } catch (error) {
@@ -1729,7 +1729,7 @@ function createDepositService(baseUrl, options) {
1729
1729
  debugLog(debug, scope, "getSwappedConnectExchanges:request");
1730
1730
  const response = await fetch(url, {
1731
1731
  method: "GET",
1732
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ),
1732
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
1733
1733
  cache: "no-store"
1734
1734
  });
1735
1735
  if (!response.ok) {
@@ -1765,6 +1765,32 @@ function createDepositService(baseUrl, options) {
1765
1765
  }
1766
1766
  return { exchanges: exchanges.filter(isSupportedConnectExchange) };
1767
1767
  },
1768
+ async getOnrampProviders() {
1769
+ try {
1770
+ const response = await fetch(apiUrl("/onramp/providers"), {
1771
+ method: "GET",
1772
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
1773
+ cache: "no-store"
1774
+ });
1775
+ if (!response.ok) return null;
1776
+ const body = await response.json();
1777
+ if (!Array.isArray(body.providers)) return null;
1778
+ return body.providers.flatMap((raw) => {
1779
+ const p = raw;
1780
+ return (p.provider === "swapped" || p.provider === "noah") && (p.flow === "hosted" || p.flow === "funding_account") && Array.isArray(p.kinds) ? [
1781
+ {
1782
+ provider: p.provider,
1783
+ flow: p.flow,
1784
+ kinds: p.kinds.filter(
1785
+ (k) => k === "fiat" || k === "exchange"
1786
+ )
1787
+ }
1788
+ ] : [];
1789
+ });
1790
+ } catch (e5) {
1791
+ return null;
1792
+ }
1793
+ },
1768
1794
  async getSwappedPaymentMethods() {
1769
1795
  const empty = {
1770
1796
  country: null,
@@ -1776,7 +1802,7 @@ function createDepositService(baseUrl, options) {
1776
1802
  try {
1777
1803
  const response = await fetch(url, {
1778
1804
  method: "GET",
1779
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ),
1805
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
1780
1806
  cache: "no-store"
1781
1807
  });
1782
1808
  if (!response.ok) {
@@ -1864,7 +1890,7 @@ function createDepositService(baseUrl, options) {
1864
1890
  try {
1865
1891
  const response = await fetch(url, {
1866
1892
  method: "GET",
1867
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ),
1893
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
1868
1894
  cache: "no-store"
1869
1895
  });
1870
1896
  if (!response.ok) {
@@ -1889,14 +1915,14 @@ function createDepositService(baseUrl, options) {
1889
1915
  const url = apiUrl(`/onramp/orders/${encodeURIComponent(orderId)}`);
1890
1916
  const response = await fetch(url, {
1891
1917
  method: "GET",
1892
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ),
1918
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
1893
1919
  cache: "no-store"
1894
1920
  });
1895
1921
  if (!response.ok) return null;
1896
1922
  let body;
1897
1923
  try {
1898
1924
  body = await response.json();
1899
- } catch (e5) {
1925
+ } catch (e6) {
1900
1926
  return null;
1901
1927
  }
1902
1928
  return swappedOrderFromView(orderId, body);
@@ -2797,7 +2823,7 @@ function createAssetStore(service, now = Date.now) {
2797
2823
  async function lookup2(ids, fields) {
2798
2824
  try {
2799
2825
  return await service.lookupAssets(ids, fields);
2800
- } catch (e6) {
2826
+ } catch (e7) {
2801
2827
  return { ok: false, routeMissing: false };
2802
2828
  }
2803
2829
  }
@@ -3041,7 +3067,7 @@ function createIngestTransport(options) {
3041
3067
  function report(reason, status) {
3042
3068
  try {
3043
3069
  onFailure({ reason, status, droppedEvents: dropped });
3044
- } catch (e7) {
3070
+ } catch (e8) {
3045
3071
  }
3046
3072
  }
3047
3073
  function drop(batch, reason, status) {
@@ -3113,10 +3139,10 @@ function createIngestTransport(options) {
3113
3139
  try {
3114
3140
  response = await fetchImpl(mintUrl, {
3115
3141
  method: "POST",
3116
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ),
3142
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
3117
3143
  signal: _optionalChain([controller, 'optionalAccess', _172 => _172.signal])
3118
3144
  });
3119
- } catch (e8) {
3145
+ } catch (e9) {
3120
3146
  if (urgency !== DISMISSAL) {
3121
3147
  mintFailures += 1;
3122
3148
  mintBackoffUntil = now() + backoff(mintFailures);
@@ -3144,7 +3170,7 @@ function createIngestTransport(options) {
3144
3170
  token = { value, expiresAt };
3145
3171
  mintFailures = 0;
3146
3172
  mintBackoffUntil = 0;
3147
- } catch (e9) {
3173
+ } catch (e10) {
3148
3174
  mintUnavailable = true;
3149
3175
  report("token_unavailable", response.status);
3150
3176
  }
@@ -3184,7 +3210,7 @@ function createIngestTransport(options) {
3184
3210
  body: bodyOf(batch),
3185
3211
  keepalive: true
3186
3212
  });
3187
- } catch (e10) {
3213
+ } catch (e11) {
3188
3214
  if (terminal || attempt >= MAX_ATTEMPTS) {
3189
3215
  return drop(batch, "network");
3190
3216
  }
@@ -3324,7 +3350,7 @@ function resolveProxyOrigin(backendUrl) {
3324
3350
  try {
3325
3351
  const { origin } = new URL(backendUrl, _optionalChain([globalThis, 'access', _179 => _179.location, 'optionalAccess', _180 => _180.href]));
3326
3352
  return origin.startsWith("http") ? origin : null;
3327
- } catch (e11) {
3353
+ } catch (e12) {
3328
3354
  return null;
3329
3355
  }
3330
3356
  }
@@ -3374,7 +3400,7 @@ function AnalyticsSession(props) {
3374
3400
  type: "analytics_ingest_failure",
3375
3401
  session_id: sessionIdRef.current,
3376
3402
  modal,
3377
- widget_version: _chunkIYWTMJPVcjs.MODAL_VERSION,
3403
+ widget_version: _chunkERY6NXPUcjs.MODAL_VERSION,
3378
3404
  timestamp: nowRef.current().toISOString(),
3379
3405
  reason,
3380
3406
  ...status === void 0 ? {} : { status },
@@ -3402,7 +3428,7 @@ function AnalyticsSession(props) {
3402
3428
  proxyOrigin,
3403
3429
  sessionId: sessionIdRef.current,
3404
3430
  modal,
3405
- widgetVersion: _chunkIYWTMJPVcjs.MODAL_VERSION,
3431
+ widgetVersion: _chunkERY6NXPUcjs.MODAL_VERSION,
3406
3432
  sessionProperties: sessionPropertiesRef.current,
3407
3433
  onFailure: (failure) => emitFailure(failure),
3408
3434
  fetchImpl: props.fetchImpl,
@@ -3422,7 +3448,7 @@ function AnalyticsSession(props) {
3422
3448
  _optionalChain([ingestRef, 'access', _183 => _183.current, 'optionalAccess', _184 => _184.transport, 'optionalAccess', _185 => _185.enqueue, 'call', _186 => _186(
3423
3449
  event
3424
3450
  )]);
3425
- } catch (e12) {
3451
+ } catch (e13) {
3426
3452
  }
3427
3453
  },
3428
3454
  []
@@ -3458,7 +3484,7 @@ function AnalyticsSession(props) {
3458
3484
  ...payload,
3459
3485
  session_id: sessionIdRef.current,
3460
3486
  modal,
3461
- widget_version: _chunkIYWTMJPVcjs.MODAL_VERSION,
3487
+ widget_version: _chunkERY6NXPUcjs.MODAL_VERSION,
3462
3488
  timestamp: nowRef.current().toISOString(),
3463
3489
  session_properties: sessionPropertiesRef.current,
3464
3490
  funding_method: fundingMethod
@@ -3477,7 +3503,7 @@ function AnalyticsSession(props) {
3477
3503
  ...payload,
3478
3504
  session_id: sessionIdRef.current,
3479
3505
  modal,
3480
- widget_version: _chunkIYWTMJPVcjs.MODAL_VERSION,
3506
+ widget_version: _chunkERY6NXPUcjs.MODAL_VERSION,
3481
3507
  timestamp: nowRef.current().toISOString(),
3482
3508
  session_properties: sessionPropertiesRef.current
3483
3509
  };
@@ -3493,7 +3519,7 @@ function AnalyticsSession(props) {
3493
3519
  ...payload,
3494
3520
  session_id: sessionIdRef.current,
3495
3521
  modal,
3496
- widget_version: _chunkIYWTMJPVcjs.MODAL_VERSION,
3522
+ widget_version: _chunkERY6NXPUcjs.MODAL_VERSION,
3497
3523
  timestamp: nowRef.current().toISOString(),
3498
3524
  session_properties: sessionPropertiesRef.current
3499
3525
  };
@@ -4013,7 +4039,7 @@ function bankSupportHref(value) {
4013
4039
  try {
4014
4040
  const url = new URL(value);
4015
4041
  return ["https:", "mailto:"].includes(url.protocol) ? url.href : void 0;
4016
- } catch (e13) {
4042
+ } catch (e14) {
4017
4043
  return void 0;
4018
4044
  }
4019
4045
  }
@@ -4321,7 +4347,7 @@ function formatDate(iso) {
4321
4347
  month: "short",
4322
4348
  year: "numeric"
4323
4349
  });
4324
- } catch (e14) {
4350
+ } catch (e15) {
4325
4351
  return iso;
4326
4352
  }
4327
4353
  }
@@ -4336,7 +4362,7 @@ function formatAmount(rawAmount, decimals) {
4336
4362
  let frac = fracStr.slice(0, 5).replace(/0+$/, "");
4337
4363
  if (frac.length < 2) frac = frac.padEnd(2, "0");
4338
4364
  return `${whole}.${frac}`;
4339
- } catch (e15) {
4365
+ } catch (e16) {
4340
4366
  return rawAmount;
4341
4367
  }
4342
4368
  }
@@ -4914,7 +4940,7 @@ function tokenAmountToNumber(rawAmount, decimals) {
4914
4940
  try {
4915
4941
  const value = Number(_viem.formatUnits.call(void 0, BigInt(rawAmount), decimals));
4916
4942
  return Number.isFinite(value) ? value : void 0;
4917
- } catch (e16) {
4943
+ } catch (e17) {
4918
4944
  return void 0;
4919
4945
  }
4920
4946
  }
@@ -4959,7 +4985,7 @@ function formatQuotedReceive(output, fallbackSymbol) {
4959
4985
  let raw;
4960
4986
  try {
4961
4987
  raw = BigInt(output.amount);
4962
- } catch (e17) {
4988
+ } catch (e18) {
4963
4989
  return void 0;
4964
4990
  }
4965
4991
  if (raw <= 0n) return void 0;
@@ -4996,7 +5022,7 @@ function formatRecoveryAmount(amountRaw, decimals, symbol) {
4996
5022
  function toBigInt(value) {
4997
5023
  try {
4998
5024
  return BigInt(value || "0");
4999
- } catch (e18) {
5025
+ } catch (e19) {
5000
5026
  return 0n;
5001
5027
  }
5002
5028
  }
@@ -5130,7 +5156,7 @@ async function submitSignedRecovery(params) {
5130
5156
  // The shared const, so recovery carries `x-deposit-modal-version` like
5131
5157
  // every other backend call. Without it this path would be invisible in the
5132
5158
  // per-client version telemetry the processor records.
5133
- headers: _chunkIYWTMJPVcjs.serviceHeaders.call(void 0, ),
5159
+ headers: _chunkERY6NXPUcjs.serviceHeaders.call(void 0, ),
5134
5160
  // `depositId` as a string: it is a uint256 upstream and JSON numbers lose
5135
5161
  // precision well before that range.
5136
5162
  body: JSON.stringify({ depositId, destination, signature })
@@ -7370,7 +7396,7 @@ function loadPhaseTimings(txHash) {
7370
7396
  const parsed = JSON.parse(raw);
7371
7397
  if (typeof parsed.startedAt !== "number") return null;
7372
7398
  return parsed;
7373
- } catch (e19) {
7399
+ } catch (e20) {
7374
7400
  return null;
7375
7401
  }
7376
7402
  }
@@ -7381,7 +7407,7 @@ function savePhaseTimings(txHash, timings) {
7381
7407
  `${PHASE_TIMINGS_PREFIX}:${txHash}`,
7382
7408
  JSON.stringify(timings)
7383
7409
  );
7384
- } catch (e20) {
7410
+ } catch (e21) {
7385
7411
  }
7386
7412
  }
7387
7413
  function isEventForTx(event, txHash) {
@@ -7763,7 +7789,7 @@ function ProcessingStep({
7763
7789
  if (isFiatSwappedOrder && !hasFiatReceiptPricing(res)) {
7764
7790
  scheduleRetry();
7765
7791
  }
7766
- } catch (e21) {
7792
+ } catch (e22) {
7767
7793
  scheduleRetry();
7768
7794
  }
7769
7795
  }