@rhinestone/deposit-modal 0.1.68 → 0.1.69

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.
@@ -28,7 +28,7 @@
28
28
 
29
29
 
30
30
 
31
- var _chunkFLVSQDP4cjs = require('./chunk-FLVSQDP4.cjs');
31
+ var _chunkTCILEYM5cjs = require('./chunk-TCILEYM5.cjs');
32
32
 
33
33
 
34
34
 
@@ -68,15 +68,15 @@ var _viem = require('viem');
68
68
 
69
69
  var _jsxruntime = require('react/jsx-runtime');
70
70
  async function resolveSessionOwner(eoaAddress) {
71
- const localOwner = _chunkFLVSQDP4cjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
71
+ const localOwner = _chunkTCILEYM5cjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
72
72
  if (localOwner) {
73
73
  return {
74
- account: _chunkFLVSQDP4cjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
74
+ account: _chunkTCILEYM5cjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
75
75
  address: localOwner.address
76
76
  };
77
77
  }
78
- const created = _chunkFLVSQDP4cjs.createSessionOwnerKey.call(void 0, );
79
- _chunkFLVSQDP4cjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
78
+ const created = _chunkTCILEYM5cjs.createSessionOwnerKey.call(void 0, );
79
+ _chunkTCILEYM5cjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
80
80
  return {
81
81
  account: created.account,
82
82
  address: created.address
@@ -115,10 +115,12 @@ function SetupStep({
115
115
  const setup = await service.setupAccount({
116
116
  ownerAddress: address,
117
117
  sessionOwnerAddress: sessionOwner.address,
118
- targetChain: _chunkFLVSQDP4cjs.toEvmCaip2.call(void 0, targetChain),
118
+ targetChain: _chunkTCILEYM5cjs.toEvmCaip2.call(void 0, targetChain),
119
119
  targetToken,
120
120
  recipient,
121
121
  postBridgeActions,
122
+ outputTokenRules,
123
+ rejectUnmapped,
122
124
  signerAddress,
123
125
  sessionChainIds,
124
126
  forceRegister
@@ -147,7 +149,7 @@ function SetupStep({
147
149
  primaryType: typedData.primaryType,
148
150
  message: typedData.message
149
151
  });
150
- const sessionDetails = _chunkFLVSQDP4cjs.buildSessionDetails.call(void 0, setup.sessionDetailsUnsigned, signature);
152
+ const sessionDetails = _chunkTCILEYM5cjs.buildSessionDetails.call(void 0, setup.sessionDetailsUnsigned, signature);
151
153
  setState({ type: "registering" });
152
154
  const registerResult = await service.registerAccount({
153
155
  address: smartAccount,
@@ -159,7 +161,7 @@ function SetupStep({
159
161
  eoaAddress: address,
160
162
  sessionOwner: sessionOwner.address,
161
163
  target: {
162
- chain: _chunkFLVSQDP4cjs.toEvmCaip2.call(void 0, targetChain),
164
+ chain: _chunkTCILEYM5cjs.toEvmCaip2.call(void 0, targetChain),
163
165
  token: targetToken,
164
166
  ...recipient && { recipient },
165
167
  ..._optionalChain([postBridgeActions, 'optionalAccess', _2 => _2.length]) && { postBridgeActions },
@@ -187,6 +189,8 @@ function SetupStep({
187
189
  sessionChainIds,
188
190
  recipient,
189
191
  postBridgeActions,
192
+ outputTokenRules,
193
+ rejectUnmapped,
190
194
  forceRegister,
191
195
  enableSolana,
192
196
  service,
@@ -226,7 +230,7 @@ function SetupStep({
226
230
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
227
231
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", children: [
228
232
  isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
229
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLVSQDP4cjs.Spinner, { className: "rs-spinner--lg rs-text-accent" }),
233
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTCILEYM5cjs.Spinner, { className: "rs-spinner--lg rs-text-accent" }),
230
234
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-text", children: [
231
235
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-title", children: renderStateMessage() }),
232
236
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-subtitle", children: "This may take a moment" })
@@ -263,7 +267,7 @@ function SetupStep({
263
267
  ] })
264
268
  ] })
265
269
  ] }),
266
- isError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLVSQDP4cjs.Button, { onClick: handleRetry, variant: "default", fullWidth: true, children: "Try Again" }) })
270
+ isError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTCILEYM5cjs.Button, { onClick: handleRetry, variant: "default", fullWidth: true, children: "Try Again" }) })
267
271
  ] });
268
272
  }
269
273
 
@@ -289,7 +293,7 @@ function AssetSelectStep({
289
293
  const [error, setError] = _react.useState.call(void 0, null);
290
294
  const defaultAssetId = _react.useMemo.call(void 0, () => {
291
295
  if (!defaultSourceChain || !defaultSourceToken) return null;
292
- return _chunkFLVSQDP4cjs.getAssetId.call(void 0, {
296
+ return _chunkTCILEYM5cjs.getAssetId.call(void 0, {
293
297
  chainId: defaultSourceChain,
294
298
  token: defaultSourceToken
295
299
  });
@@ -306,7 +310,7 @@ function AssetSelectStep({
306
310
  try {
307
311
  const portfolio = await service.fetchPortfolio(address);
308
312
  if (!active) return;
309
- const portfolioAssets = _chunkFLVSQDP4cjs.portfolioToAssets.call(void 0, portfolio.tokens);
313
+ const portfolioAssets = _chunkTCILEYM5cjs.portfolioToAssets.call(void 0, portfolio.tokens);
310
314
  setAssets(portfolioAssets);
311
315
  const hasNative = portfolioAssets.some(
312
316
  (asset) => asset.token.toLowerCase() === _chunkMUWVDVY4cjs.NATIVE_TOKEN_ADDRESS
@@ -387,7 +391,7 @@ function AssetSelectStep({
387
391
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
388
392
  const numeric = Number(raw);
389
393
  if (!Number.isFinite(numeric)) return raw;
390
- return _chunkFLVSQDP4cjs.tokenFormatter.format(numeric);
394
+ return _chunkTCILEYM5cjs.tokenFormatter.format(numeric);
391
395
  } catch (e3) {
392
396
  return asset.balance;
393
397
  }
@@ -401,7 +405,7 @@ function AssetSelectStep({
401
405
  style: { paddingTop: 4, overflow: "auto", maxHeight: 340 },
402
406
  children: [
403
407
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
404
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLVSQDP4cjs.Spinner, { className: "rs-text-tertiary" }),
408
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTCILEYM5cjs.Spinner, { className: "rs-text-tertiary" }),
405
409
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
406
410
  ] }),
407
411
  error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-alert rs-alert--error", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-alert-text", children: error }) }),
@@ -500,7 +504,7 @@ function AssetSelectStep({
500
504
  ] })
501
505
  ] })
502
506
  ] }),
503
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkFLVSQDP4cjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
507
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkTCILEYM5cjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
504
508
  ]
505
509
  },
506
510
  asset.id
@@ -510,7 +514,7 @@ function AssetSelectStep({
510
514
  }
511
515
  ),
512
516
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
513
- _chunkFLVSQDP4cjs.Button,
517
+ _chunkTCILEYM5cjs.Button,
514
518
  {
515
519
  onClick: () => selectedAsset && onContinue(selectedAsset),
516
520
  disabled: !selectedAsset,
@@ -518,7 +522,7 @@ function AssetSelectStep({
518
522
  children: "Continue"
519
523
  }
520
524
  ) }),
521
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLVSQDP4cjs.PoweredBy, {})
525
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTCILEYM5cjs.PoweredBy, {})
522
526
  ] });
523
527
  }
524
528
  async function fetchNativeAssets(address, publicClient, existing) {
@@ -526,7 +530,7 @@ async function fetchNativeAssets(address, publicClient, existing) {
526
530
  const connectedChainId = _optionalChain([publicClient, 'access', _12 => _12.chain, 'optionalAccess', _13 => _13.id]);
527
531
  if (!connectedChainId) return [];
528
532
  if (!_chunkMUWVDVY4cjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
529
- const id = _chunkFLVSQDP4cjs.getAssetId.call(void 0, {
533
+ const id = _chunkTCILEYM5cjs.getAssetId.call(void 0, {
530
534
  chainId: connectedChainId,
531
535
  token: _chunkMUWVDVY4cjs.NATIVE_TOKEN_ADDRESS
532
536
  });
@@ -613,7 +617,7 @@ function AmountStep({
613
617
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
614
618
  if (!balanceTarget || !publicClient) return;
615
619
  try {
616
- const bal = _chunkFLVSQDP4cjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
620
+ const bal = _chunkTCILEYM5cjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
617
621
  address: asset.token,
618
622
  abi: _viem.erc20Abi,
619
623
  functionName: "balanceOf",
@@ -639,7 +643,7 @@ function AmountStep({
639
643
  setIsSwitching(true);
640
644
  switchChain(asset.chainId).catch((err) => {
641
645
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
642
- setError(_chunkFLVSQDP4cjs.formatUserError.call(void 0, raw));
646
+ setError(_chunkTCILEYM5cjs.formatUserError.call(void 0, raw));
643
647
  }).finally(() => {
644
648
  setIsSwitching(false);
645
649
  });
@@ -675,7 +679,7 @@ function AmountStep({
675
679
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
676
680
  const numeric = Number(raw);
677
681
  if (!Number.isFinite(numeric)) return raw;
678
- return _chunkFLVSQDP4cjs.tokenFormatter.format(numeric);
682
+ return _chunkTCILEYM5cjs.tokenFormatter.format(numeric);
679
683
  } catch (e8) {
680
684
  return "...";
681
685
  }
@@ -719,7 +723,7 @@ function AmountStep({
719
723
  const usdValue = numericAmount;
720
724
  if (_optionalChain([uiConfig, 'optionalAccess', _18 => _18.maxDepositUsd]) && usdValue > uiConfig.maxDepositUsd) {
721
725
  setError(
722
- `Maximum deposit is ${_chunkFLVSQDP4cjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
726
+ `Maximum deposit is ${_chunkTCILEYM5cjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
723
727
  );
724
728
  return;
725
729
  }
@@ -774,7 +778,7 @@ function AmountStep({
774
778
  hasPricing && balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { style: { color: "var(--rs-muted-foreground)" }, children: [
775
779
  " ",
776
780
  "(",
777
- _chunkFLVSQDP4cjs.currencyFormatter.format(balanceUsd),
781
+ _chunkTCILEYM5cjs.currencyFormatter.format(balanceUsd),
778
782
  ")"
779
783
  ] })
780
784
  ] }) })
@@ -911,7 +915,7 @@ function AmountStep({
911
915
  )
912
916
  ] }),
913
917
  _optionalChain([uiConfig, 'optionalAccess', _21 => _21.minDepositUsd]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-minimum", children: [
914
- _chunkFLVSQDP4cjs.currencyFormatter.format(uiConfig.minDepositUsd),
918
+ _chunkTCILEYM5cjs.currencyFormatter.format(uiConfig.minDepositUsd),
915
919
  " minimum deposit"
916
920
  ] }),
917
921
  error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", children: [
@@ -937,7 +941,7 @@ function AmountStep({
937
941
  ] })
938
942
  ] }),
939
943
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
940
- _chunkFLVSQDP4cjs.Button,
944
+ _chunkTCILEYM5cjs.Button,
941
945
  {
942
946
  onClick: handleContinue,
943
947
  fullWidth: true,
@@ -945,7 +949,7 @@ function AmountStep({
945
949
  children: _optionalChain([uiConfig, 'optionalAccess', _22 => _22.minDepositUsd]) && parseFloat(amount) > 0 && parseFloat(amount) < uiConfig.minDepositUsd ? "Update order" : "Continue"
946
950
  }
947
951
  ) }),
948
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLVSQDP4cjs.PoweredBy, {})
952
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTCILEYM5cjs.PoweredBy, {})
949
953
  ] });
950
954
  }
951
955
 
@@ -995,7 +999,7 @@ function ConfirmStep({
995
999
  setIsSwitching(true);
996
1000
  switchChain(asset.chainId).catch((err) => {
997
1001
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
998
- setError(_chunkFLVSQDP4cjs.formatUserError.call(void 0, raw));
1002
+ setError(_chunkTCILEYM5cjs.formatUserError.call(void 0, raw));
999
1003
  }).finally(() => {
1000
1004
  setIsSwitching(false);
1001
1005
  });
@@ -1038,7 +1042,7 @@ function ConfirmStep({
1038
1042
  throw new Error("Wallet not properly connected");
1039
1043
  }
1040
1044
  const transferTo = sameRoute ? recipient : smartAccount;
1041
- const hash = _chunkFLVSQDP4cjs.isNativeAsset.call(void 0, asset) ? await walletClient.sendTransaction({
1045
+ const hash = _chunkTCILEYM5cjs.isNativeAsset.call(void 0, asset) ? await walletClient.sendTransaction({
1042
1046
  account,
1043
1047
  chain,
1044
1048
  to: transferTo,
@@ -1055,7 +1059,7 @@ function ConfirmStep({
1055
1059
  onConfirm(hash, asset.chainId, amountUnits.toString(), asset.token);
1056
1060
  } catch (err) {
1057
1061
  const raw = err instanceof Error ? err.message : "Transfer failed";
1058
- const message = _chunkFLVSQDP4cjs.formatUserError.call(void 0, raw);
1062
+ const message = _chunkTCILEYM5cjs.formatUserError.call(void 0, raw);
1059
1063
  setError(message);
1060
1064
  _optionalChain([onError, 'optionalCall', _26 => _26(message, "TRANSFER_ERROR")]);
1061
1065
  } finally {
@@ -1184,7 +1188,7 @@ function ConfirmStep({
1184
1188
  ] })
1185
1189
  ] }),
1186
1190
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1187
- _chunkFLVSQDP4cjs.Button,
1191
+ _chunkTCILEYM5cjs.Button,
1188
1192
  {
1189
1193
  onClick: handleConfirm,
1190
1194
  loading: isSubmitting,
@@ -1193,7 +1197,7 @@ function ConfirmStep({
1193
1197
  children: "Confirm Order"
1194
1198
  }
1195
1199
  ) }),
1196
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLVSQDP4cjs.PoweredBy, {})
1200
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTCILEYM5cjs.PoweredBy, {})
1197
1201
  ] });
1198
1202
  }
1199
1203
 
@@ -1330,9 +1334,9 @@ var INITIAL_POLL_INTERVAL = 3e3;
1330
1334
  var MAX_POLL_INTERVAL = 3e4;
1331
1335
  var BACKOFF_MULTIPLIER = 1.5;
1332
1336
  function isEventForTx(event, txHash) {
1333
- const eventTxHash = _chunkFLVSQDP4cjs.getEventTxHash.call(void 0, event);
1337
+ const eventTxHash = _chunkTCILEYM5cjs.getEventTxHash.call(void 0, event);
1334
1338
  if (!eventTxHash) return false;
1335
- return _chunkFLVSQDP4cjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1339
+ return _chunkTCILEYM5cjs.txRefsMatch.call(void 0, eventTxHash, txHash);
1336
1340
  }
1337
1341
  function truncateHash(hash) {
1338
1342
  return `${hash.slice(0, 4)}\u2026${hash.slice(-4)}`;
@@ -1426,7 +1430,7 @@ function DepositNotification({
1426
1430
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
1427
1431
  const pollTimeoutRef = _react.useRef.call(void 0, null);
1428
1432
  const completedRef = _react.useRef.call(void 0, _nullishCoalesce(directTransfer, () => ( false)));
1429
- const depositContextRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, {
1433
+ const depositContextRef = _chunkTCILEYM5cjs.useLatestRef.call(void 0, {
1430
1434
  amount,
1431
1435
  sourceChain,
1432
1436
  sourceToken: token,
@@ -1435,8 +1439,8 @@ function DepositNotification({
1435
1439
  waitForFinalTx,
1436
1440
  hasPostBridgeActions
1437
1441
  });
1438
- const onCompleteRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onComplete);
1439
- const onFailedRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onFailed);
1442
+ const onCompleteRef = _chunkTCILEYM5cjs.useLatestRef.call(void 0, onComplete);
1443
+ const onFailedRef = _chunkTCILEYM5cjs.useLatestRef.call(void 0, onFailed);
1440
1444
  const handleComplete = _react.useCallback.call(void 0,
1441
1445
  (destTxHash) => {
1442
1446
  if (completedRef.current) return;
@@ -1573,7 +1577,7 @@ function DepositNotification({
1573
1577
  }
1574
1578
  )
1575
1579
  }
1576
- ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLVSQDP4cjs.Spinner, {}) });
1580
+ ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-notification-badge rs-deposit-notification-badge--processing", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTCILEYM5cjs.Spinner, {}) });
1577
1581
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
1578
1582
  "div",
1579
1583
  {
@@ -2024,10 +2028,10 @@ function DepositAddressStep({
2024
2028
  return;
2025
2029
  }
2026
2030
  const event = status.lastEvent;
2027
- const eventTxHash = _chunkFLVSQDP4cjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkFLVSQDP4cjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2031
+ const eventTxHash = _chunkTCILEYM5cjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkTCILEYM5cjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
2028
2032
  if (baselineTxHashRef.current === void 0) {
2029
2033
  baselineTxHashRef.current = eventTxHash;
2030
- } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkFLVSQDP4cjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
2034
+ } else if (eventTxHash && (!baselineTxHashRef.current || !_chunkTCILEYM5cjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHashRef.current))) {
2031
2035
  const details = getDepositEventDetails(event);
2032
2036
  const fallback = sourceSelectionRef.current;
2033
2037
  const chainId = _nullishCoalesce(details.chainId, () => ( fallback.chainId));
@@ -2418,7 +2422,7 @@ function DepositAddressStep({
2418
2422
  },
2419
2423
  deposit.id
2420
2424
  )) }),
2421
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLVSQDP4cjs.PoweredBy, {})
2425
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTCILEYM5cjs.PoweredBy, {})
2422
2426
  ] });
2423
2427
  }
2424
2428
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -2449,7 +2453,7 @@ function SolanaTokenSelectStep({
2449
2453
  setError(null);
2450
2454
  const portfolioBySymbol = {};
2451
2455
  try {
2452
- _chunkFLVSQDP4cjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
2456
+ _chunkTCILEYM5cjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
2453
2457
  solanaAddress
2454
2458
  });
2455
2459
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
@@ -2472,12 +2476,12 @@ function SolanaTokenSelectStep({
2472
2476
  };
2473
2477
  }
2474
2478
  }
2475
- _chunkFLVSQDP4cjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
2479
+ _chunkTCILEYM5cjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
2476
2480
  symbols: Object.keys(portfolioBySymbol)
2477
2481
  });
2478
2482
  } catch (err) {
2479
2483
  if (!active) return;
2480
- _chunkFLVSQDP4cjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
2484
+ _chunkTCILEYM5cjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
2481
2485
  solanaAddress
2482
2486
  });
2483
2487
  setError(
@@ -2531,7 +2535,7 @@ function SolanaTokenSelectStep({
2531
2535
  style: { paddingTop: 4, overflow: "auto", maxHeight: 340 },
2532
2536
  children: [
2533
2537
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
2534
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLVSQDP4cjs.Spinner, { className: "rs-text-tertiary" }),
2538
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTCILEYM5cjs.Spinner, { className: "rs-text-tertiary" }),
2535
2539
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
2536
2540
  ] }),
2537
2541
  !loading && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
@@ -2568,7 +2572,7 @@ function SolanaTokenSelectStep({
2568
2572
  try {
2569
2573
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
2570
2574
  const numeric = Number(raw);
2571
- formattedBalance = Number.isFinite(numeric) ? _chunkFLVSQDP4cjs.tokenFormatter.format(numeric) : raw;
2575
+ formattedBalance = Number.isFinite(numeric) ? _chunkTCILEYM5cjs.tokenFormatter.format(numeric) : raw;
2572
2576
  } catch (e15) {
2573
2577
  formattedBalance = "...";
2574
2578
  }
@@ -2612,7 +2616,7 @@ function SolanaTokenSelectStep({
2612
2616
  ] })
2613
2617
  ] })
2614
2618
  ] }),
2615
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkFLVSQDP4cjs.currencyFormatter.format(entry.balanceUsd) : `${formattedBalance} ${entry.token.symbol}` })
2619
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkTCILEYM5cjs.currencyFormatter.format(entry.balanceUsd) : `${formattedBalance} ${entry.token.symbol}` })
2616
2620
  ]
2617
2621
  },
2618
2622
  entry.token.symbol
@@ -2622,7 +2626,7 @@ function SolanaTokenSelectStep({
2622
2626
  }
2623
2627
  ),
2624
2628
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2625
- _chunkFLVSQDP4cjs.Button,
2629
+ _chunkTCILEYM5cjs.Button,
2626
2630
  {
2627
2631
  onClick: () => selectedEntry && onContinue(
2628
2632
  selectedEntry.token,
@@ -2634,7 +2638,7 @@ function SolanaTokenSelectStep({
2634
2638
  children: "Continue"
2635
2639
  }
2636
2640
  ) }),
2637
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLVSQDP4cjs.PoweredBy, {})
2641
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTCILEYM5cjs.PoweredBy, {})
2638
2642
  ] });
2639
2643
  }
2640
2644
 
@@ -2682,7 +2686,7 @@ function SolanaAmountStep({
2682
2686
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
2683
2687
  const numeric = Number(raw);
2684
2688
  if (!Number.isFinite(numeric)) return raw;
2685
- return _chunkFLVSQDP4cjs.tokenFormatter.format(numeric);
2689
+ return _chunkTCILEYM5cjs.tokenFormatter.format(numeric);
2686
2690
  } catch (e17) {
2687
2691
  return "...";
2688
2692
  }
@@ -2700,7 +2704,7 @@ function SolanaAmountStep({
2700
2704
  }, [balance, token.decimals, tokenPriceUsd, balanceUsd]);
2701
2705
  const formattedBalanceUsd = _react.useMemo.call(void 0, () => {
2702
2706
  if (computedBalanceUsd === null || computedBalanceUsd <= 0) return null;
2703
- return _chunkFLVSQDP4cjs.currencyFormatter.format(computedBalanceUsd);
2707
+ return _chunkTCILEYM5cjs.currencyFormatter.format(computedBalanceUsd);
2704
2708
  }, [computedBalanceUsd]);
2705
2709
  const spendableBalance = _react.useMemo.call(void 0, () => {
2706
2710
  if (!isNativeSol(token)) return balance;
@@ -2725,7 +2729,7 @@ function SolanaAmountStep({
2725
2729
  const factor = 10 ** maxDecimals;
2726
2730
  const truncated = Math.floor(value * factor) / factor;
2727
2731
  const formatted = truncated.toFixed(maxDecimals).replace(/\.?0+$/, "");
2728
- _chunkFLVSQDP4cjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
2732
+ _chunkTCILEYM5cjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
2729
2733
  percentage,
2730
2734
  symbol: token.symbol,
2731
2735
  formatted
@@ -2739,7 +2743,7 @@ function SolanaAmountStep({
2739
2743
  const handleContinue = () => {
2740
2744
  const numericAmount = parseFloat(amount);
2741
2745
  if (isNaN(numericAmount) || numericAmount <= 0) {
2742
- _chunkFLVSQDP4cjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2746
+ _chunkTCILEYM5cjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2743
2747
  amount,
2744
2748
  reason: "nan-or-non-positive"
2745
2749
  });
@@ -2751,7 +2755,7 @@ function SolanaAmountStep({
2751
2755
  const usdValue = numericAmount;
2752
2756
  if (_optionalChain([uiConfig, 'optionalAccess', _82 => _82.maxDepositUsd]) && usdValue > uiConfig.maxDepositUsd) {
2753
2757
  setError(
2754
- `Maximum deposit is ${_chunkFLVSQDP4cjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
2758
+ `Maximum deposit is ${_chunkTCILEYM5cjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
2755
2759
  );
2756
2760
  return;
2757
2761
  }
@@ -2766,7 +2770,7 @@ function SolanaAmountStep({
2766
2770
  try {
2767
2771
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
2768
2772
  } catch (e21) {
2769
- _chunkFLVSQDP4cjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2773
+ _chunkTCILEYM5cjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2770
2774
  amount,
2771
2775
  sourceAmount: sourceAmountStr,
2772
2776
  reason: "parse-units-failed"
@@ -2776,7 +2780,7 @@ function SolanaAmountStep({
2776
2780
  }
2777
2781
  if (amountInUnits > spendableBalance) {
2778
2782
  const isReserveIssue = isNativeSol(token) && amountInUnits <= balance;
2779
- _chunkFLVSQDP4cjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2783
+ _chunkTCILEYM5cjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2780
2784
  amount,
2781
2785
  balance: balance.toString(),
2782
2786
  spendableBalance: spendableBalance.toString(),
@@ -2788,7 +2792,7 @@ function SolanaAmountStep({
2788
2792
  );
2789
2793
  return;
2790
2794
  }
2791
- _chunkFLVSQDP4cjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
2795
+ _chunkTCILEYM5cjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
2792
2796
  symbol: token.symbol,
2793
2797
  inputAmountUsd: amount,
2794
2798
  sourceAmount: sourceAmountStr,
@@ -2857,7 +2861,7 @@ function SolanaAmountStep({
2857
2861
  )
2858
2862
  ] }),
2859
2863
  _optionalChain([uiConfig, 'optionalAccess', _84 => _84.minDepositUsd]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-minimum", children: [
2860
- _chunkFLVSQDP4cjs.currencyFormatter.format(uiConfig.minDepositUsd),
2864
+ _chunkTCILEYM5cjs.currencyFormatter.format(uiConfig.minDepositUsd),
2861
2865
  " minimum deposit"
2862
2866
  ] }),
2863
2867
  error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", children: [
@@ -2883,7 +2887,7 @@ function SolanaAmountStep({
2883
2887
  ] })
2884
2888
  ] }),
2885
2889
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2886
- _chunkFLVSQDP4cjs.Button,
2890
+ _chunkTCILEYM5cjs.Button,
2887
2891
  {
2888
2892
  onClick: handleContinue,
2889
2893
  fullWidth: true,
@@ -2891,7 +2895,7 @@ function SolanaAmountStep({
2891
2895
  children: _optionalChain([uiConfig, 'optionalAccess', _85 => _85.minDepositUsd]) && parseFloat(amount) > 0 && parseFloat(amount) < uiConfig.minDepositUsd ? "Update order" : "Continue"
2892
2896
  }
2893
2897
  ) }),
2894
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLVSQDP4cjs.PoweredBy, {})
2898
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTCILEYM5cjs.PoweredBy, {})
2895
2899
  ] });
2896
2900
  }
2897
2901
 
@@ -2935,7 +2939,7 @@ function SolanaConfirmStep({
2935
2939
  const receiveAmount = isSameToken ? formattedReceiveAmount : `~ ${formattedReceiveAmount}`;
2936
2940
  const handleConfirm = async () => {
2937
2941
  if (!solanaProvider) {
2938
- _chunkFLVSQDP4cjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2942
+ _chunkTCILEYM5cjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2939
2943
  reason: "missing-provider"
2940
2944
  });
2941
2945
  setError("Solana wallet not connected");
@@ -2943,7 +2947,7 @@ function SolanaConfirmStep({
2943
2947
  }
2944
2948
  const parsedAmount = parseFloat(sourceAmount);
2945
2949
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
2946
- _chunkFLVSQDP4cjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2950
+ _chunkTCILEYM5cjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2947
2951
  reason: "invalid-amount",
2948
2952
  sourceAmount
2949
2953
  });
@@ -2952,7 +2956,7 @@ function SolanaConfirmStep({
2952
2956
  }
2953
2957
  setError(null);
2954
2958
  setIsSubmitting(true);
2955
- _chunkFLVSQDP4cjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
2959
+ _chunkTCILEYM5cjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
2956
2960
  smartAccount,
2957
2961
  solanaAddress,
2958
2962
  solanaDepositAddress,
@@ -2962,7 +2966,7 @@ function SolanaConfirmStep({
2962
2966
  });
2963
2967
  try {
2964
2968
  const check = await service.checkAccount(smartAccount);
2965
- _chunkFLVSQDP4cjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
2969
+ _chunkTCILEYM5cjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
2966
2970
  smartAccount,
2967
2971
  isRegistered: check.isRegistered,
2968
2972
  targetChain: check.targetChain,
@@ -2975,7 +2979,7 @@ function SolanaConfirmStep({
2975
2979
  }
2976
2980
  const connection = getSolanaConnection();
2977
2981
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
2978
- _chunkFLVSQDP4cjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
2982
+ _chunkTCILEYM5cjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
2979
2983
  token: token.symbol,
2980
2984
  sourceAmount,
2981
2985
  amountUnits: amountUnits.toString()
@@ -2992,7 +2996,7 @@ function SolanaConfirmStep({
2992
2996
  token.mint,
2993
2997
  amountUnits
2994
2998
  );
2995
- _chunkFLVSQDP4cjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
2999
+ _chunkTCILEYM5cjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
2996
3000
  token: token.symbol,
2997
3001
  instructionCount: transaction.instructions.length,
2998
3002
  feePayer: _optionalChain([transaction, 'access', _86 => _86.feePayer, 'optionalAccess', _87 => _87.toBase58, 'call', _88 => _88()]),
@@ -3003,15 +3007,15 @@ function SolanaConfirmStep({
3003
3007
  connection,
3004
3008
  transaction
3005
3009
  );
3006
- _chunkFLVSQDP4cjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3010
+ _chunkTCILEYM5cjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
3007
3011
  txHash,
3008
3012
  amountUnits: amountUnits.toString()
3009
3013
  });
3010
3014
  onConfirm(txHash, amountUnits.toString());
3011
3015
  } catch (err) {
3012
3016
  const raw = err instanceof Error ? err.message : "Transfer failed";
3013
- const message = _chunkFLVSQDP4cjs.formatUserError.call(void 0, raw);
3014
- _chunkFLVSQDP4cjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3017
+ const message = _chunkTCILEYM5cjs.formatUserError.call(void 0, raw);
3018
+ _chunkTCILEYM5cjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
3015
3019
  smartAccount,
3016
3020
  token: token.symbol,
3017
3021
  sourceAmount
@@ -3144,7 +3148,7 @@ function SolanaConfirmStep({
3144
3148
  ] })
3145
3149
  ] }),
3146
3150
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3147
- _chunkFLVSQDP4cjs.Button,
3151
+ _chunkTCILEYM5cjs.Button,
3148
3152
  {
3149
3153
  onClick: handleConfirm,
3150
3154
  loading: isSubmitting,
@@ -3153,7 +3157,7 @@ function SolanaConfirmStep({
3153
3157
  children: "Confirm Order"
3154
3158
  }
3155
3159
  ) }),
3156
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLVSQDP4cjs.PoweredBy, {})
3160
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTCILEYM5cjs.PoweredBy, {})
3157
3161
  ] });
3158
3162
  }
3159
3163
 
@@ -3205,14 +3209,14 @@ function DepositFlow({
3205
3209
  onError,
3206
3210
  debug
3207
3211
  }) {
3208
- const onStepChangeRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onStepChange);
3209
- const onTotalBalanceChangeRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onTotalBalanceChange);
3210
- const onSmartAccountChangeRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onSmartAccountChange);
3211
- const onEventRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onEvent);
3212
- const onDepositSubmittedRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onDepositSubmitted);
3213
- const onDepositCompleteRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onDepositComplete);
3214
- const onDepositFailedRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onDepositFailed);
3215
- const onErrorRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onError);
3212
+ const onStepChangeRef = _chunkTCILEYM5cjs.useLatestRef.call(void 0, onStepChange);
3213
+ const onTotalBalanceChangeRef = _chunkTCILEYM5cjs.useLatestRef.call(void 0, onTotalBalanceChange);
3214
+ const onSmartAccountChangeRef = _chunkTCILEYM5cjs.useLatestRef.call(void 0, onSmartAccountChange);
3215
+ const onEventRef = _chunkTCILEYM5cjs.useLatestRef.call(void 0, onEvent);
3216
+ const onDepositSubmittedRef = _chunkTCILEYM5cjs.useLatestRef.call(void 0, onDepositSubmitted);
3217
+ const onDepositCompleteRef = _chunkTCILEYM5cjs.useLatestRef.call(void 0, onDepositComplete);
3218
+ const onDepositFailedRef = _chunkTCILEYM5cjs.useLatestRef.call(void 0, onDepositFailed);
3219
+ const onErrorRef = _chunkTCILEYM5cjs.useLatestRef.call(void 0, onError);
3216
3220
  const hasInitialReownSession = Boolean(
3217
3221
  enableSolana ? _optionalChain([reownWallet, 'optionalAccess', _90 => _90.isConnected]) || _optionalChain([reownWallet, 'optionalAccess', _91 => _91.address]) : _optionalChain([reownWallet, 'optionalAccess', _92 => _92.address])
3218
3222
  );
@@ -3232,13 +3236,13 @@ function DepositFlow({
3232
3236
  flowModeRef.current = flowMode;
3233
3237
  const logFlow = _react.useCallback.call(void 0,
3234
3238
  (message, data) => {
3235
- _chunkFLVSQDP4cjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
3239
+ _chunkTCILEYM5cjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
3236
3240
  },
3237
3241
  [debug]
3238
3242
  );
3239
3243
  const logFlowError = _react.useCallback.call(void 0,
3240
3244
  (message, error, data) => {
3241
- _chunkFLVSQDP4cjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
3245
+ _chunkTCILEYM5cjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
3242
3246
  },
3243
3247
  [debug]
3244
3248
  );
@@ -3362,7 +3366,7 @@ function DepositFlow({
3362
3366
  return {
3363
3367
  ownerAddress: dappAddress,
3364
3368
  walletClient: void 0,
3365
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkFLVSQDP4cjs.getPublicClient.call(void 0, targetChain))),
3369
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkTCILEYM5cjs.getPublicClient.call(void 0, targetChain))),
3366
3370
  switchChain: void 0
3367
3371
  };
3368
3372
  }
@@ -3371,7 +3375,7 @@ function DepositFlow({
3371
3375
  return {
3372
3376
  ownerAddress: dappWalletClient.account.address,
3373
3377
  walletClient: dappWalletClient,
3374
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkFLVSQDP4cjs.getPublicClient.call(void 0, fallbackChainId))),
3378
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkTCILEYM5cjs.getPublicClient.call(void 0, fallbackChainId))),
3375
3379
  switchChain: dappSwitchChain
3376
3380
  };
3377
3381
  }
@@ -3385,7 +3389,7 @@ function DepositFlow({
3385
3389
  return {
3386
3390
  ownerAddress: dappAddress,
3387
3391
  walletClient: void 0,
3388
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkFLVSQDP4cjs.getPublicClient.call(void 0, targetChain))),
3392
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkTCILEYM5cjs.getPublicClient.call(void 0, targetChain))),
3389
3393
  switchChain: void 0
3390
3394
  };
3391
3395
  }
@@ -3394,7 +3398,7 @@ function DepositFlow({
3394
3398
  return {
3395
3399
  ownerAddress: dappWalletClient.account.address,
3396
3400
  walletClient: dappWalletClient,
3397
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkFLVSQDP4cjs.getPublicClient.call(void 0, fallbackChainId))),
3401
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkTCILEYM5cjs.getPublicClient.call(void 0, fallbackChainId))),
3398
3402
  switchChain: dappSwitchChain
3399
3403
  };
3400
3404
  }
@@ -3402,7 +3406,7 @@ function DepositFlow({
3402
3406
  return {
3403
3407
  ownerAddress: reownWallet.address,
3404
3408
  walletClient: reownWallet.walletClient,
3405
- publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkFLVSQDP4cjs.getPublicClient.call(void 0, targetChain))),
3409
+ publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkTCILEYM5cjs.getPublicClient.call(void 0, targetChain))),
3406
3410
  switchChain: reownWallet.switchChain
3407
3411
  };
3408
3412
  }
@@ -3440,7 +3444,7 @@ function DepositFlow({
3440
3444
  return {
3441
3445
  ownerAddress: dappAddress,
3442
3446
  walletClient: void 0,
3443
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkFLVSQDP4cjs.getPublicClient.call(void 0, targetChain))),
3447
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkTCILEYM5cjs.getPublicClient.call(void 0, targetChain))),
3444
3448
  switchChain: void 0
3445
3449
  };
3446
3450
  }
@@ -3926,7 +3930,7 @@ function DepositFlow({
3926
3930
  ]);
3927
3931
  if (showConnectStep) {
3928
3932
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3929
- _chunkFLVSQDP4cjs.ConnectStep,
3933
+ _chunkTCILEYM5cjs.ConnectStep,
3930
3934
  {
3931
3935
  walletOptions,
3932
3936
  selectedWalletId: selectedWalletIdEffective,
@@ -4112,7 +4116,7 @@ function DepositFlow({
4112
4116
  ) })
4113
4117
  ] }) : null,
4114
4118
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4115
- _chunkFLVSQDP4cjs.ProcessingStep,
4119
+ _chunkTCILEYM5cjs.ProcessingStep,
4116
4120
  {
4117
4121
  smartAccount: step.smartAccount,
4118
4122
  txHash: step.txHash,
@@ -4146,7 +4150,7 @@ function DepositFlow({
4146
4150
  if (_optionalChain([signerContext, 'access', _162 => _162.publicClient, 'access', _163 => _163.chain, 'optionalAccess', _164 => _164.id]) === chainId) {
4147
4151
  return signerContext.publicClient;
4148
4152
  }
4149
- return _chunkFLVSQDP4cjs.getPublicClient.call(void 0, chainId);
4153
+ return _chunkTCILEYM5cjs.getPublicClient.call(void 0, chainId);
4150
4154
  };
4151
4155
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
4152
4156
  step.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -4234,7 +4238,7 @@ function DepositFlow({
4234
4238
  }
4235
4239
  ),
4236
4240
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4237
- _chunkFLVSQDP4cjs.ProcessingStep,
4241
+ _chunkTCILEYM5cjs.ProcessingStep,
4238
4242
  {
4239
4243
  smartAccount: step.smartAccount,
4240
4244
  txHash: step.txHash,
@@ -4291,8 +4295,8 @@ function formatTimestamp2(iso) {
4291
4295
  function resolveChainId(value) {
4292
4296
  if (value === void 0 || value === null) return null;
4293
4297
  if (typeof value === "number") return value;
4294
- if (_chunkFLVSQDP4cjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
4295
- const parsed = _chunkFLVSQDP4cjs.parseEvmChainId.call(void 0, value);
4298
+ if (_chunkTCILEYM5cjs.isSolanaCaip2.call(void 0, value) || value === "solana") return "solana";
4299
+ const parsed = _chunkTCILEYM5cjs.parseEvmChainId.call(void 0, value);
4296
4300
  if (parsed !== null) return parsed;
4297
4301
  const num = Number(value);
4298
4302
  return Number.isFinite(num) ? num : null;
@@ -4526,7 +4530,7 @@ DepositHistoryPanel.displayName = "DepositHistoryPanel";
4526
4530
  // src/DepositModal.tsx
4527
4531
 
4528
4532
  var ReownDepositInner = _react.lazy.call(void 0,
4529
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-WXFTSZSK.cjs"))).then((m) => ({ default: m.DepositModalReown }))
4533
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-3GU5B776.cjs"))).then((m) => ({ default: m.DepositModalReown }))
4530
4534
  );
4531
4535
  function DepositModal(props) {
4532
4536
  const needsReown = !!props.reownAppId;
@@ -4597,7 +4601,7 @@ function DepositModalInner({
4597
4601
  debug
4598
4602
  }) {
4599
4603
  const modalRef = _react.useRef.call(void 0, null);
4600
- const onReadyRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onReady);
4604
+ const onReadyRef = _chunkTCILEYM5cjs.useLatestRef.call(void 0, onReady);
4601
4605
  const [currentStepIndex, setCurrentStepIndex] = _react.useState.call(void 0, 0);
4602
4606
  const [totalBalanceUsd, setTotalBalanceUsd] = _react.useState.call(void 0, null);
4603
4607
  const backHandlerRef = _react.useRef.call(void 0, void 0);
@@ -4614,7 +4618,7 @@ function DepositModalInner({
4614
4618
  const targetChain = _chunkMUWVDVY4cjs.getChainId.call(void 0, targetChainProp);
4615
4619
  const sourceChain = sourceChainProp ? _chunkMUWVDVY4cjs.getChainId.call(void 0, sourceChainProp) : void 0;
4616
4620
  const service = _react.useMemo.call(void 0,
4617
- () => _chunkFLVSQDP4cjs.createDepositService.call(void 0, backendUrl, {
4621
+ () => _chunkTCILEYM5cjs.createDepositService.call(void 0, backendUrl, {
4618
4622
  debug,
4619
4623
  debugScope: "service:deposit"
4620
4624
  }),
@@ -4622,7 +4626,7 @@ function DepositModalInner({
4622
4626
  );
4623
4627
  _react.useEffect.call(void 0, () => {
4624
4628
  if (isOpen && modalRef.current) {
4625
- _chunkFLVSQDP4cjs.applyTheme.call(void 0, modalRef.current, theme);
4629
+ _chunkTCILEYM5cjs.applyTheme.call(void 0, modalRef.current, theme);
4626
4630
  }
4627
4631
  }, [isOpen, theme]);
4628
4632
  _react.useEffect.call(void 0, () => {
@@ -4718,9 +4722,9 @@ function DepositModalInner({
4718
4722
  fetchHistory();
4719
4723
  }
4720
4724
  }, [historyOpen, fetchHistory]);
4721
- const onDepositSubmittedRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onDepositSubmitted);
4722
- const onDepositCompleteRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onDepositComplete);
4723
- const onDepositFailedRef = _chunkFLVSQDP4cjs.useLatestRef.call(void 0, onDepositFailed);
4725
+ const onDepositSubmittedRef = _chunkTCILEYM5cjs.useLatestRef.call(void 0, onDepositSubmitted);
4726
+ const onDepositCompleteRef = _chunkTCILEYM5cjs.useLatestRef.call(void 0, onDepositComplete);
4727
+ const onDepositFailedRef = _chunkTCILEYM5cjs.useLatestRef.call(void 0, onDepositFailed);
4724
4728
  const handleDepositSubmitted = _react.useCallback.call(void 0,
4725
4729
  (data) => {
4726
4730
  _optionalChain([onDepositSubmittedRef, 'access', _172 => _172.current, 'optionalCall', _173 => _173(data)]);
@@ -4761,7 +4765,7 @@ function DepositModalInner({
4761
4765
  const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _183 => _183.title]), () => ( "Deposit"));
4762
4766
  const canGoBack = currentStepIndex > 0 && currentStepIndex < 4 && backHandlerRef.current !== void 0;
4763
4767
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
4764
- _chunkFLVSQDP4cjs.Modal,
4768
+ _chunkTCILEYM5cjs.Modal,
4765
4769
  {
4766
4770
  isOpen,
4767
4771
  onClose,
@@ -4854,7 +4858,7 @@ function DepositModalInner({
4854
4858
  balance.title,
4855
4859
  ":"
4856
4860
  ] }),
4857
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunkFLVSQDP4cjs.currencyFormatter.format(totalBalanceUsd) : null))) })
4861
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunkTCILEYM5cjs.currencyFormatter.format(totalBalanceUsd) : null))) })
4858
4862
  ] })
4859
4863
  ] }),
4860
4864
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-nav-right", children: [