@rhinestone/deposit-modal 0.1.39 → 0.1.41

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 (38) hide show
  1. package/dist/{DepositModalReown-UMUTS37L.cjs → DepositModalReown-GAQLILGK.cjs} +17 -8
  2. package/dist/{DepositModalReown-YTUE3XAB.mjs → DepositModalReown-WS6WNWJP.mjs} +15 -6
  3. package/dist/{WithdrawModalReown-XXCOZYVU.mjs → WithdrawModalReown-7CSCY55U.mjs} +4 -4
  4. package/dist/{WithdrawModalReown-2CWNDVJD.cjs → WithdrawModalReown-GCOVYZN2.cjs} +7 -7
  5. package/dist/{chunk-K7BHCDJQ.cjs → chunk-37CTMJMO.cjs} +181 -96
  6. package/dist/{chunk-TK7BVWX6.mjs → chunk-6PRJUXTM.mjs} +1487 -287
  7. package/dist/{chunk-CFLZYWX7.mjs → chunk-KWAFKVV6.mjs} +120 -35
  8. package/dist/{chunk-AHOFT42H.cjs → chunk-LT3QKJI2.cjs} +458 -115
  9. package/dist/{chunk-SJEIKMVO.mjs → chunk-MBOH6XW3.mjs} +26 -13
  10. package/dist/{chunk-FLXTBFMZ.cjs → chunk-NELAYNA3.cjs} +11 -0
  11. package/dist/{chunk-VTTEVMB6.cjs → chunk-PTSYSG4U.cjs} +1551 -351
  12. package/dist/{chunk-V7I5T4SW.cjs → chunk-PWPW7GFB.cjs} +25 -12
  13. package/dist/{chunk-IC2M2DZ7.mjs → chunk-QIK6ONMQ.mjs} +392 -49
  14. package/dist/{chunk-I7RYTI4G.mjs → chunk-ZJQZEIHA.mjs} +11 -0
  15. package/dist/constants.cjs +2 -2
  16. package/dist/constants.d.cts +6 -6
  17. package/dist/constants.d.ts +6 -6
  18. package/dist/constants.mjs +1 -1
  19. package/dist/deposit.cjs +4 -4
  20. package/dist/deposit.d.cts +2 -2
  21. package/dist/deposit.d.ts +2 -2
  22. package/dist/deposit.mjs +3 -3
  23. package/dist/index.cjs +5 -5
  24. package/dist/index.d.cts +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.mjs +4 -4
  27. package/dist/reown.cjs +5 -5
  28. package/dist/reown.d.cts +1 -1
  29. package/dist/reown.d.ts +1 -1
  30. package/dist/reown.mjs +4 -4
  31. package/dist/styles.css +64 -0
  32. package/dist/{types-CIaQPR6F.d.cts → types-CybmMKTE.d.cts} +9 -7
  33. package/dist/{types-Bp2n2RQ3.d.ts → types-e8CHSm2u.d.ts} +9 -7
  34. package/dist/withdraw.cjs +4 -4
  35. package/dist/withdraw.d.cts +2 -2
  36. package/dist/withdraw.d.ts +2 -2
  37. package/dist/withdraw.mjs +3 -3
  38. package/package.json +18 -1
@@ -17,10 +17,10 @@
17
17
 
18
18
 
19
19
 
20
- var _chunkAHOFT42Hcjs = require('./chunk-AHOFT42H.cjs');
21
20
 
22
21
 
23
22
 
23
+ var _chunkLT3QKJI2cjs = require('./chunk-LT3QKJI2.cjs');
24
24
 
25
25
 
26
26
 
@@ -30,7 +30,10 @@ var _chunkAHOFT42Hcjs = require('./chunk-AHOFT42H.cjs');
30
30
 
31
31
 
32
32
 
33
- var _chunkFLXTBFMZcjs = require('./chunk-FLXTBFMZ.cjs');
33
+
34
+
35
+
36
+ var _chunkNELAYNA3cjs = require('./chunk-NELAYNA3.cjs');
34
37
 
35
38
  // src/WithdrawModal.tsx
36
39
 
@@ -118,8 +121,8 @@ function WithdrawFormStep({
118
121
  const chainMismatch = Boolean(
119
122
  _optionalChain([walletClient, 'optionalAccess', _3 => _3.chain, 'optionalAccess', _4 => _4.id]) && walletClient.chain.id !== asset.chainId
120
123
  );
121
- const targetSymbol = _chunkFLXTBFMZcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
122
- const targetChainName = _chunkFLXTBFMZcjs.getChainName.call(void 0, targetChain);
124
+ const targetSymbol = _chunkNELAYNA3cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
125
+ const targetChainName = _chunkNELAYNA3cjs.getChainName.call(void 0, targetChain);
123
126
  const isBusy = submitting || isSubmitting;
124
127
  const seededRecipientRef = _react.useRef.call(void 0, seededRecipient);
125
128
  _react.useEffect.call(void 0, () => {
@@ -138,7 +141,7 @@ function WithdrawFormStep({
138
141
  setIsSwitching(true);
139
142
  switchChain(asset.chainId).catch((err) => {
140
143
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
141
- setError(_chunkAHOFT42Hcjs.formatUserError.call(void 0, raw));
144
+ setError(_chunkLT3QKJI2cjs.formatUserError.call(void 0, raw));
142
145
  }).finally(() => {
143
146
  setIsSwitching(false);
144
147
  });
@@ -158,7 +161,7 @@ function WithdrawFormStep({
158
161
  return;
159
162
  }
160
163
  try {
161
- const bal = _chunkAHOFT42Hcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
164
+ const bal = _chunkLT3QKJI2cjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
162
165
  address: asset.token,
163
166
  abi: _viem.erc20Abi,
164
167
  functionName: "balanceOf",
@@ -261,7 +264,7 @@ function WithdrawFormStep({
261
264
  await onSubmit(recipient, amount);
262
265
  } catch (err) {
263
266
  const raw = err instanceof Error ? err.message : "Withdrawal failed";
264
- setError(_chunkAHOFT42Hcjs.formatUserError.call(void 0, raw));
267
+ setError(_chunkLT3QKJI2cjs.formatUserError.call(void 0, raw));
265
268
  } finally {
266
269
  setIsSubmitting(false);
267
270
  }
@@ -269,11 +272,11 @@ function WithdrawFormStep({
269
272
  if (isBalanceLoading) {
270
273
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
271
274
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-body rs-withdraw-loading", children: [
272
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHOFT42Hcjs.Spinner, { className: "rs-spinner--lg" }),
275
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLT3QKJI2cjs.Spinner, { className: "rs-spinner--lg" }),
273
276
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
274
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkFLXTBFMZcjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
277
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkNELAYNA3cjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
275
278
  ] }),
276
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHOFT42Hcjs.PoweredBy, {})
279
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLT3QKJI2cjs.PoweredBy, {})
277
280
  ] });
278
281
  }
279
282
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
@@ -369,7 +372,7 @@ function WithdrawFormStep({
369
372
  ] })
370
373
  ] }),
371
374
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
372
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkAHOFT42Hcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
375
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkLT3QKJI2cjs.currencyFormatter.format(amountUsd) : "$0.00" }),
373
376
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
374
377
  formattedBalance,
375
378
  " ",
@@ -397,10 +400,10 @@ function WithdrawFormStep({
397
400
  },
398
401
  children: [
399
402
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
400
- _chunkFLXTBFMZcjs.getTokenIcon.call(void 0, targetSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
403
+ _chunkNELAYNA3cjs.getTokenIcon.call(void 0, targetSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
401
404
  "img",
402
405
  {
403
- src: _chunkFLXTBFMZcjs.getTokenIcon.call(void 0, targetSymbol),
406
+ src: _chunkNELAYNA3cjs.getTokenIcon.call(void 0, targetSymbol),
404
407
  alt: targetSymbol,
405
408
  className: "rs-withdraw-dropdown-icon"
406
409
  }
@@ -441,10 +444,10 @@ function WithdrawFormStep({
441
444
  setShowTokenDropdown(false);
442
445
  },
443
446
  children: [
444
- _chunkFLXTBFMZcjs.getTokenIcon.call(void 0, option.symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
447
+ _chunkNELAYNA3cjs.getTokenIcon.call(void 0, option.symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
445
448
  "img",
446
449
  {
447
- src: _chunkFLXTBFMZcjs.getTokenIcon.call(void 0, option.symbol),
450
+ src: _chunkNELAYNA3cjs.getTokenIcon.call(void 0, option.symbol),
448
451
  alt: option.symbol,
449
452
  className: "rs-withdraw-dropdown-icon"
450
453
  }
@@ -477,10 +480,10 @@ function WithdrawFormStep({
477
480
  },
478
481
  children: [
479
482
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
480
- _chunkFLXTBFMZcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
483
+ _chunkNELAYNA3cjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
481
484
  "img",
482
485
  {
483
- src: _chunkFLXTBFMZcjs.getChainIcon.call(void 0, targetChain),
486
+ src: _chunkNELAYNA3cjs.getChainIcon.call(void 0, targetChain),
484
487
  alt: targetChainName,
485
488
  className: "rs-withdraw-dropdown-icon"
486
489
  }
@@ -521,10 +524,10 @@ function WithdrawFormStep({
521
524
  setShowChainDropdown(false);
522
525
  },
523
526
  children: [
524
- _chunkFLXTBFMZcjs.getChainIcon.call(void 0, chain.id) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
527
+ _chunkNELAYNA3cjs.getChainIcon.call(void 0, chain.id) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
525
528
  "img",
526
529
  {
527
- src: _chunkFLXTBFMZcjs.getChainIcon.call(void 0, chain.id),
530
+ src: _chunkNELAYNA3cjs.getChainIcon.call(void 0, chain.id),
528
531
  alt: chain.name,
529
532
  className: "rs-withdraw-dropdown-icon"
530
533
  }
@@ -539,7 +542,7 @@ function WithdrawFormStep({
539
542
  )
540
543
  ] })
541
544
  ] }),
542
- chainMismatch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch-text", children: isSwitching ? `Switching to ${_chunkFLXTBFMZcjs.getChainName.call(void 0, asset.chainId)}...` : `Switch to ${_chunkFLXTBFMZcjs.getChainName.call(void 0, asset.chainId)} to continue.` }) }),
545
+ chainMismatch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch-text", children: isSwitching ? `Switching to ${_chunkNELAYNA3cjs.getChainName.call(void 0, asset.chainId)}...` : `Switch to ${_chunkNELAYNA3cjs.getChainName.call(void 0, asset.chainId)} to continue.` }) }),
543
546
  error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-error", children: [
544
547
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
545
548
  "svg",
@@ -562,7 +565,7 @@ function WithdrawFormStep({
562
565
  ] })
563
566
  ] }),
564
567
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
565
- _chunkAHOFT42Hcjs.Button,
568
+ _chunkLT3QKJI2cjs.Button,
566
569
  {
567
570
  onClick: handleWithdraw,
568
571
  fullWidth: true,
@@ -571,7 +574,7 @@ function WithdrawFormStep({
571
574
  children: isBusy ? "Preparing..." : "Withdraw"
572
575
  }
573
576
  ) }),
574
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHOFT42Hcjs.PoweredBy, {})
577
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLT3QKJI2cjs.PoweredBy, {})
575
578
  ] });
576
579
  }
577
580
  WithdrawFormStep.displayName = "WithdrawFormStep";
@@ -654,7 +657,7 @@ async function executeSafeEthTransfer(params) {
654
657
  throw new Error("Wallet not connected");
655
658
  }
656
659
  if (chain.id !== chainId) {
657
- throw new Error(`Switch to ${_chunkFLXTBFMZcjs.getChainName.call(void 0, chainId)} to sign`);
660
+ throw new Error(`Switch to ${_chunkNELAYNA3cjs.getChainName.call(void 0, chainId)} to sign`);
658
661
  }
659
662
  const isOwner = await publicClient.readContract({
660
663
  address: safeAddress,
@@ -737,7 +740,7 @@ async function executeSafeErc20Transfer(params) {
737
740
  throw new Error("Wallet not connected");
738
741
  }
739
742
  if (chain.id !== chainId) {
740
- throw new Error(`Switch to ${_chunkFLXTBFMZcjs.getChainName.call(void 0, chainId)} to sign`);
743
+ throw new Error(`Switch to ${_chunkNELAYNA3cjs.getChainName.call(void 0, chainId)} to sign`);
741
744
  }
742
745
  const isOwner = await publicClient.readContract({
743
746
  address: safeAddress,
@@ -876,7 +879,7 @@ function WithdrawFlow({
876
879
  recipient: defaultRecipient,
877
880
  amount: defaultAmount,
878
881
  service,
879
- signerAddress = _chunkFLXTBFMZcjs.DEFAULT_SIGNER_ADDRESS,
882
+ signerAddress = _chunkNELAYNA3cjs.DEFAULT_SIGNER_ADDRESS,
880
883
  sessionChainIds,
881
884
  forceRegister = false,
882
885
  waitForFinalTx = true,
@@ -900,6 +903,18 @@ function WithdrawFlow({
900
903
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
901
904
  const [totalBalanceUsd, setTotalBalanceUsd] = _react.useState.call(void 0, 0);
902
905
  const [isConnectSelectionConfirmed, setIsConnectSelectionConfirmed] = _react.useState.call(void 0, false);
906
+ const logFlow = _react.useCallback.call(void 0,
907
+ (message, data) => {
908
+ _chunkLT3QKJI2cjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
909
+ },
910
+ [debug]
911
+ );
912
+ const logFlowError = _react.useCallback.call(void 0,
913
+ (message, error, data) => {
914
+ _chunkLT3QKJI2cjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
915
+ },
916
+ [debug]
917
+ );
903
918
  const [targetChain, setTargetChain] = _react.useState.call(void 0, targetChainProp);
904
919
  const [targetToken, setTargetToken] = _react.useState.call(void 0, targetTokenProp);
905
920
  _react.useEffect.call(void 0, () => {
@@ -917,20 +932,26 @@ function WithdrawFlow({
917
932
  const options = [];
918
933
  const seen = /* @__PURE__ */ new Set();
919
934
  if (_optionalChain([dappWalletClient, 'optionalAccess', _9 => _9.account]) && dappAddress) {
935
+ const id = `evm:${dappWalletClient.account.address.toLowerCase()}`;
920
936
  options.push({
937
+ id,
921
938
  address: dappWalletClient.account.address,
922
939
  label: "Connected Wallet",
923
940
  kind: "connected"
924
941
  });
925
- seen.add(dappWalletClient.account.address.toLowerCase());
942
+ seen.add(id);
926
943
  }
927
944
  if (_optionalChain([reownWallet, 'optionalAccess', _10 => _10.address]) && reownWallet.isConnected && reownWallet.walletClient && reownWallet.publicClient && !seen.has(reownWallet.address.toLowerCase())) {
928
- options.push({
929
- address: reownWallet.address,
930
- label: "External Wallet",
931
- kind: "external",
932
- icon: reownWallet.icon
933
- });
945
+ const id = `evm:${reownWallet.address.toLowerCase()}`;
946
+ if (!seen.has(id)) {
947
+ options.push({
948
+ id,
949
+ address: reownWallet.address,
950
+ label: "External Wallet",
951
+ kind: "external",
952
+ icon: reownWallet.icon
953
+ });
954
+ }
934
955
  }
935
956
  return options;
936
957
  }, [
@@ -942,34 +963,36 @@ function WithdrawFlow({
942
963
  _optionalChain([reownWallet, 'optionalAccess', _14 => _14.publicClient])
943
964
  ]);
944
965
  const canAutoLock = hasCustomSigner || Boolean(_optionalChain([dappWalletClient, 'optionalAccess', _15 => _15.account]) && dappAddress) && !reownWallet;
945
- const [selectedConnectAddress, setSelectedConnectAddress] = _react.useState.call(void 0, null);
966
+ const [selectedWalletId, setSelectedWalletId] = _react.useState.call(void 0, null);
946
967
  const signerContext = _react.useMemo.call(void 0, () => {
947
968
  if (canAutoLock) {
948
969
  if (hasCustomSigner) {
949
970
  return {
950
971
  ownerAddress: dappAddress,
951
972
  walletClient: _nullishCoalesce(dappWalletClient, () => ( void 0)),
952
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkAHOFT42Hcjs.getPublicClient.call(void 0, sourceChain))),
973
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkLT3QKJI2cjs.getPublicClient.call(void 0, sourceChain))),
953
974
  switchChain: dappSwitchChain
954
975
  };
955
976
  }
956
977
  return {
957
978
  ownerAddress: dappWalletClient.account.address,
958
979
  walletClient: dappWalletClient,
959
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkAHOFT42Hcjs.getPublicClient.call(void 0, sourceChain))),
980
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkLT3QKJI2cjs.getPublicClient.call(void 0, sourceChain))),
960
981
  switchChain: dappSwitchChain
961
982
  };
962
983
  }
963
- if (!isConnectSelectionConfirmed || !selectedConnectAddress) return null;
964
- if (_optionalChain([dappWalletClient, 'optionalAccess', _16 => _16.account]) && dappWalletClient.account.address.toLowerCase() === selectedConnectAddress.toLowerCase()) {
984
+ if (!isConnectSelectionConfirmed || !selectedWalletId) return null;
985
+ const selectedOption = walletOptions.find((option) => option.id === selectedWalletId);
986
+ if (!selectedOption || !selectedOption.address) return null;
987
+ if (selectedOption.kind === "connected" && _optionalChain([dappWalletClient, 'optionalAccess', _16 => _16.account]) && dappWalletClient.account.address.toLowerCase() === selectedOption.address.toLowerCase()) {
965
988
  return {
966
989
  ownerAddress: dappWalletClient.account.address,
967
990
  walletClient: dappWalletClient,
968
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkAHOFT42Hcjs.getPublicClient.call(void 0, sourceChain))),
991
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkLT3QKJI2cjs.getPublicClient.call(void 0, sourceChain))),
969
992
  switchChain: dappSwitchChain
970
993
  };
971
994
  }
972
- if (_optionalChain([reownWallet, 'optionalAccess', _17 => _17.address, 'optionalAccess', _18 => _18.toLowerCase, 'call', _19 => _19()]) === selectedConnectAddress.toLowerCase() && reownWallet.walletClient && reownWallet.publicClient) {
995
+ if (selectedOption.kind === "external" && _optionalChain([reownWallet, 'optionalAccess', _17 => _17.address, 'optionalAccess', _18 => _18.toLowerCase, 'call', _19 => _19()]) === selectedOption.address.toLowerCase() && reownWallet.walletClient && reownWallet.publicClient) {
973
996
  return {
974
997
  ownerAddress: reownWallet.address,
975
998
  walletClient: reownWallet.walletClient,
@@ -982,7 +1005,8 @@ function WithdrawFlow({
982
1005
  canAutoLock,
983
1006
  hasCustomSigner,
984
1007
  isConnectSelectionConfirmed,
985
- selectedConnectAddress,
1008
+ selectedWalletId,
1009
+ walletOptions,
986
1010
  dappWalletClient,
987
1011
  dappPublicClient,
988
1012
  dappSwitchChain,
@@ -991,10 +1015,10 @@ function WithdrawFlow({
991
1015
  sourceChain
992
1016
  ]);
993
1017
  const asset = _react.useMemo.call(void 0, () => {
994
- const symbol = _chunkFLXTBFMZcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
995
- const decimals = _chunkFLXTBFMZcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
1018
+ const symbol = _chunkNELAYNA3cjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
1019
+ const decimals = _chunkNELAYNA3cjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
996
1020
  return {
997
- id: _chunkAHOFT42Hcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1021
+ id: _chunkLT3QKJI2cjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
998
1022
  chainId: sourceChain,
999
1023
  token: sourceToken,
1000
1024
  symbol,
@@ -1002,37 +1026,57 @@ function WithdrawFlow({
1002
1026
  decimals
1003
1027
  };
1004
1028
  }, [sourceChain, sourceToken]);
1005
- const isSourceNative = sourceToken.toLowerCase() === _chunkFLXTBFMZcjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
1029
+ const isSourceNative = sourceToken.toLowerCase() === _chunkNELAYNA3cjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
1006
1030
  const stepIndex = step.type === "form" ? 0 : 1;
1007
1031
  const currentBackHandler = void 0;
1008
1032
  _react.useEffect.call(void 0, () => {
1009
1033
  _optionalChain([onStepChange, 'optionalCall', _20 => _20(stepIndex, currentBackHandler)]);
1010
1034
  }, [stepIndex, currentBackHandler, onStepChange]);
1035
+ _react.useEffect.call(void 0, () => {
1036
+ logFlow("state:changed", {
1037
+ step: step.type,
1038
+ sourceChain,
1039
+ sourceToken,
1040
+ targetChain,
1041
+ targetToken,
1042
+ selectedWalletId
1043
+ });
1044
+ }, [
1045
+ logFlow,
1046
+ selectedWalletId,
1047
+ sourceChain,
1048
+ sourceToken,
1049
+ step.type,
1050
+ targetChain,
1051
+ targetToken
1052
+ ]);
1011
1053
  _react.useEffect.call(void 0, () => {
1012
1054
  _optionalChain([onTotalBalanceChange, 'optionalCall', _21 => _21(totalBalanceUsd)]);
1013
1055
  }, [totalBalanceUsd, onTotalBalanceChange]);
1014
1056
  const handleConnected = _react.useCallback.call(void 0,
1015
1057
  (addr, smartAccount) => {
1058
+ logFlow("setup:connected", { address: addr, smartAccount });
1016
1059
  _optionalChain([onConnected, 'optionalCall', _22 => _22({ address: addr, smartAccount })]);
1017
1060
  },
1018
- [onConnected]
1061
+ [logFlow, onConnected]
1019
1062
  );
1020
1063
  const handleError = _react.useCallback.call(void 0,
1021
1064
  (message, code) => {
1065
+ logFlowError("flow:error", message, { code });
1022
1066
  _optionalChain([onError, 'optionalCall', _23 => _23({ message, code })]);
1023
1067
  },
1024
- [onError]
1068
+ [logFlowError, onError]
1025
1069
  );
1026
1070
  const resolveSessionOwner = _react.useCallback.call(void 0, async (eoaAddress) => {
1027
- const localOwner = _chunkAHOFT42Hcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
1071
+ const localOwner = _chunkLT3QKJI2cjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
1028
1072
  if (localOwner) {
1029
1073
  return {
1030
- account: _chunkAHOFT42Hcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
1074
+ account: _chunkLT3QKJI2cjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
1031
1075
  address: localOwner.address
1032
1076
  };
1033
1077
  }
1034
- const created = _chunkAHOFT42Hcjs.createSessionOwnerKey.call(void 0, );
1035
- _chunkAHOFT42Hcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
1078
+ const created = _chunkLT3QKJI2cjs.createSessionOwnerKey.call(void 0, );
1079
+ _chunkLT3QKJI2cjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
1036
1080
  return {
1037
1081
  account: created.account,
1038
1082
  address: created.address
@@ -1049,17 +1093,30 @@ function WithdrawFlow({
1049
1093
  }
1050
1094
  setIsSubmitting(true);
1051
1095
  try {
1096
+ logFlow("submit:start", {
1097
+ ownerAddress: ownerAddress2,
1098
+ recipient,
1099
+ amount: amountValue,
1100
+ sourceChain,
1101
+ sourceToken,
1102
+ targetChain,
1103
+ targetToken
1104
+ });
1052
1105
  const sessionOwner = await resolveSessionOwner(ownerAddress2);
1053
1106
  const setup = await service.setupAccount({
1054
1107
  ownerAddress: ownerAddress2,
1055
1108
  sessionOwnerAddress: sessionOwner.address,
1056
- targetChain,
1109
+ targetChain: _chunkLT3QKJI2cjs.toEvmCaip2.call(void 0, targetChain),
1057
1110
  targetToken,
1058
1111
  signerAddress,
1059
1112
  sessionChainIds,
1060
1113
  forceRegister
1061
1114
  });
1062
1115
  const smartAccount = setup.smartAccount;
1116
+ logFlow("setup:resolved", {
1117
+ smartAccount,
1118
+ needsRegistration: setup.needsRegistration
1119
+ });
1063
1120
  if (setup.needsRegistration) {
1064
1121
  if (!setup.accountParams || !setup.sessionDetailsUnsigned) {
1065
1122
  throw new Error("Missing registration payload from setup-account");
@@ -1076,7 +1133,7 @@ function WithdrawFlow({
1076
1133
  primaryType: typedData.primaryType,
1077
1134
  message: typedData.message
1078
1135
  });
1079
- const sessionDetails = _chunkAHOFT42Hcjs.buildSessionDetails.call(void 0,
1136
+ const sessionDetails = _chunkLT3QKJI2cjs.buildSessionDetails.call(void 0,
1080
1137
  setup.sessionDetailsUnsigned,
1081
1138
  signature
1082
1139
  );
@@ -1090,15 +1147,16 @@ function WithdrawFlow({
1090
1147
  eoaAddress: ownerAddress2,
1091
1148
  sessionOwner: sessionOwner.address,
1092
1149
  target: {
1093
- chain: targetChain,
1150
+ chain: _chunkLT3QKJI2cjs.toEvmCaip2.call(void 0, targetChain),
1094
1151
  token: targetToken,
1095
1152
  recipient
1096
1153
  }
1097
1154
  });
1155
+ logFlow("register:success", { smartAccount });
1098
1156
  }
1099
1157
  handleConnected(ownerAddress2, smartAccount);
1100
1158
  const amountUnits = _viem.parseUnits.call(void 0, amountValue, asset.decimals);
1101
- const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _26 => _26.publicClient]), () => ( _chunkAHOFT42Hcjs.getPublicClient.call(void 0, sourceChain)));
1159
+ const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _26 => _26.publicClient]), () => ( _chunkLT3QKJI2cjs.getPublicClient.call(void 0, sourceChain)));
1102
1160
  let result;
1103
1161
  if (onSignTransaction) {
1104
1162
  const transferData = isSourceNative ? { to: smartAccount, value: amountUnits, data: "0x" } : {
@@ -1121,7 +1179,7 @@ function WithdrawFlow({
1121
1179
  const { signature } = await onSignTransaction(request);
1122
1180
  const relayResult = await service.relayWithdraw({
1123
1181
  smartAccount,
1124
- chainId: sourceChain,
1182
+ chainId: _chunkLT3QKJI2cjs.toEvmCaip2.call(void 0, sourceChain),
1125
1183
  safeAddress,
1126
1184
  safeTransaction: request.typedData.message,
1127
1185
  signature
@@ -1150,6 +1208,13 @@ function WithdrawFlow({
1150
1208
  chainId: sourceChain
1151
1209
  });
1152
1210
  }
1211
+ logFlow("withdraw:submitted", {
1212
+ txHash: result.txHash,
1213
+ smartAccount,
1214
+ amount: amountUnits.toString(),
1215
+ sourceChain,
1216
+ sourceToken
1217
+ });
1153
1218
  _optionalChain([onWithdrawSubmitted, 'optionalCall', _27 => _27({
1154
1219
  txHash: result.txHash,
1155
1220
  sourceChain,
@@ -1166,7 +1231,13 @@ function WithdrawFlow({
1166
1231
  });
1167
1232
  } catch (err) {
1168
1233
  const raw = err instanceof Error ? err.message : "Withdraw failed";
1169
- handleError(_chunkAHOFT42Hcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1234
+ logFlowError("submit:failed", err, {
1235
+ sourceChain,
1236
+ sourceToken,
1237
+ targetChain,
1238
+ targetToken
1239
+ });
1240
+ handleError(_chunkLT3QKJI2cjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1170
1241
  throw err;
1171
1242
  } finally {
1172
1243
  setIsSubmitting(false);
@@ -1189,28 +1260,32 @@ function WithdrawFlow({
1189
1260
  onWithdrawSubmitted,
1190
1261
  onSignTransaction,
1191
1262
  isSourceNative,
1192
- handleError
1263
+ handleError,
1264
+ logFlow,
1265
+ logFlowError
1193
1266
  ]
1194
1267
  );
1195
1268
  const handleWithdrawComplete = _react.useCallback.call(void 0,
1196
1269
  (txHash, destinationTxHash) => {
1270
+ logFlow("withdraw:complete", { txHash, destinationTxHash });
1197
1271
  _optionalChain([onWithdrawComplete, 'optionalCall', _28 => _28({ txHash, destinationTxHash })]);
1198
1272
  },
1199
- [onWithdrawComplete]
1273
+ [logFlow, onWithdrawComplete]
1200
1274
  );
1201
1275
  const handleWithdrawFailed = _react.useCallback.call(void 0,
1202
1276
  (txHash, error) => {
1277
+ logFlowError("withdraw:failed", error, { txHash });
1203
1278
  _optionalChain([onWithdrawFailed, 'optionalCall', _29 => _29({ txHash, error })]);
1204
1279
  },
1205
- [onWithdrawFailed]
1280
+ [logFlowError, onWithdrawFailed]
1206
1281
  );
1207
1282
  const targetChainOptions = _react.useMemo.call(void 0, () => {
1208
- return _chunkFLXTBFMZcjs.SOURCE_CHAINS.filter(
1209
- (chain) => _chunkFLXTBFMZcjs.getSupportedTargetTokens.call(void 0, chain.id).length > 0
1283
+ return _chunkNELAYNA3cjs.SOURCE_CHAINS.filter(
1284
+ (chain) => _chunkNELAYNA3cjs.getSupportedTargetTokens.call(void 0, chain.id).length > 0
1210
1285
  );
1211
1286
  }, []);
1212
1287
  const targetTokenOptions = _react.useMemo.call(void 0,
1213
- () => _chunkFLXTBFMZcjs.getSupportedTargetTokens.call(void 0, targetChain),
1288
+ () => _chunkNELAYNA3cjs.getSupportedTargetTokens.call(void 0, targetChain),
1214
1289
  [targetChain]
1215
1290
  );
1216
1291
  _react.useEffect.call(void 0, () => {
@@ -1225,7 +1300,7 @@ function WithdrawFlow({
1225
1300
  const handleTargetChainChange = _react.useCallback.call(void 0,
1226
1301
  (chainId) => {
1227
1302
  setTargetChain(chainId);
1228
- const options = _chunkFLXTBFMZcjs.getSupportedTargetTokens.call(void 0, chainId);
1303
+ const options = _chunkNELAYNA3cjs.getSupportedTargetTokens.call(void 0, chainId);
1229
1304
  if (options.length === 0) {
1230
1305
  return;
1231
1306
  }
@@ -1241,17 +1316,24 @@ function WithdrawFlow({
1241
1316
  const handleTargetTokenChange = _react.useCallback.call(void 0, (token) => {
1242
1317
  setTargetToken(token);
1243
1318
  }, []);
1244
- const selectedConnectAddressEffective = _react.useMemo.call(void 0, () => {
1245
- if (selectedConnectAddress) return selectedConnectAddress;
1319
+ const selectedWalletIdEffective = _react.useMemo.call(void 0, () => {
1320
+ if (selectedWalletId) return selectedWalletId;
1246
1321
  if (walletOptions.length === 1) {
1247
- return walletOptions[0].address;
1322
+ return walletOptions[0].id;
1248
1323
  }
1249
1324
  return null;
1250
- }, [selectedConnectAddress, walletOptions]);
1325
+ }, [selectedWalletId, walletOptions]);
1326
+ const walletOptionsKey = _react.useMemo.call(void 0,
1327
+ () => walletOptions.map((option) => option.id).join(","),
1328
+ [walletOptions]
1329
+ );
1251
1330
  const showConnectStep = !canAutoLock && !isConnectSelectionConfirmed;
1331
+ _react.useEffect.call(void 0, () => {
1332
+ setIsConnectSelectionConfirmed(false);
1333
+ }, [walletOptionsKey, selectedWalletIdEffective]);
1252
1334
  _react.useEffect.call(void 0, () => {
1253
1335
  if (!showConnectStep && isConnectSelectionConfirmed && !signerContext) {
1254
- setSelectedConnectAddress(null);
1336
+ setSelectedWalletId(null);
1255
1337
  setIsConnectSelectionConfirmed(false);
1256
1338
  }
1257
1339
  }, [showConnectStep, isConnectSelectionConfirmed, signerContext]);
@@ -1259,23 +1341,23 @@ function WithdrawFlow({
1259
1341
  const selectedWalletIcon = _react.useMemo.call(void 0, () => {
1260
1342
  if (!ownerAddress) return _optionalChain([reownWallet, 'optionalAccess', _31 => _31.icon]);
1261
1343
  const selected = walletOptions.find(
1262
- (o) => o.address.toLowerCase() === ownerAddress.toLowerCase()
1344
+ (o) => _optionalChain([o, 'access', _32 => _32.address, 'optionalAccess', _33 => _33.toLowerCase, 'call', _34 => _34()]) === ownerAddress.toLowerCase()
1263
1345
  );
1264
- return _nullishCoalesce(_optionalChain([selected, 'optionalAccess', _32 => _32.icon]), () => ( _optionalChain([reownWallet, 'optionalAccess', _33 => _33.icon])));
1265
- }, [walletOptions, ownerAddress, _optionalChain([reownWallet, 'optionalAccess', _34 => _34.icon])]);
1346
+ return _nullishCoalesce(_optionalChain([selected, 'optionalAccess', _35 => _35.icon]), () => ( _optionalChain([reownWallet, 'optionalAccess', _36 => _36.icon])));
1347
+ }, [walletOptions, ownerAddress, _optionalChain([reownWallet, 'optionalAccess', _37 => _37.icon])]);
1266
1348
  if (showConnectStep) {
1267
1349
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1268
- _chunkAHOFT42Hcjs.ConnectStep,
1350
+ _chunkLT3QKJI2cjs.ConnectStep,
1269
1351
  {
1270
1352
  walletOptions,
1271
- selectedAddress: selectedConnectAddressEffective,
1272
- onSelectAddress: setSelectedConnectAddress,
1353
+ selectedWalletId: selectedWalletIdEffective,
1354
+ onSelectWallet: setSelectedWalletId,
1273
1355
  onRequestConnect,
1274
1356
  onConnect,
1275
1357
  onDisconnect,
1276
1358
  onContinue: () => {
1277
- if (selectedConnectAddressEffective) {
1278
- setSelectedConnectAddress(selectedConnectAddressEffective);
1359
+ if (selectedWalletIdEffective) {
1360
+ setSelectedWalletId(selectedWalletIdEffective);
1279
1361
  }
1280
1362
  setIsConnectSelectionConfirmed(true);
1281
1363
  },
@@ -1286,9 +1368,9 @@ function WithdrawFlow({
1286
1368
  if (!signerContext) return null;
1287
1369
  if (!onSignTransaction && !signerContext.walletClient) return null;
1288
1370
  const resolvedOwnerAddress = signerContext.ownerAddress;
1289
- const resolvedConnectedAddress = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _35 => _35.walletClient, 'optionalAccess', _36 => _36.account, 'optionalAccess', _37 => _37.address]), () => ( _optionalChain([reownWallet, 'optionalAccess', _38 => _38.address]))), () => ( _optionalChain([dappWalletClient, 'optionalAccess', _39 => _39.account, 'optionalAccess', _40 => _40.address]))), () => ( resolvedOwnerAddress));
1371
+ const resolvedConnectedAddress = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _38 => _38.walletClient, 'optionalAccess', _39 => _39.account, 'optionalAccess', _40 => _40.address]), () => ( _optionalChain([reownWallet, 'optionalAccess', _41 => _41.address]))), () => ( _optionalChain([dappWalletClient, 'optionalAccess', _42 => _42.account, 'optionalAccess', _43 => _43.address]))), () => ( resolvedOwnerAddress));
1290
1372
  const resolvedDefaultRecipient = _nullishCoalesce(defaultRecipient, () => ( resolvedConnectedAddress));
1291
- const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkAHOFT42Hcjs.getPublicClient.call(void 0, sourceChain)));
1373
+ const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkLT3QKJI2cjs.getPublicClient.call(void 0, sourceChain)));
1292
1374
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
1293
1375
  step.type === "form" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1294
1376
  WithdrawFormStep,
@@ -1315,7 +1397,7 @@ function WithdrawFlow({
1315
1397
  }
1316
1398
  ),
1317
1399
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1318
- _chunkAHOFT42Hcjs.ProcessingStep,
1400
+ _chunkLT3QKJI2cjs.ProcessingStep,
1319
1401
  {
1320
1402
  smartAccount: step.smartAccount,
1321
1403
  txHash: step.txHash,
@@ -1340,7 +1422,7 @@ function WithdrawFlow({
1340
1422
  // src/WithdrawModal.tsx
1341
1423
 
1342
1424
  var ReownWithdrawInner = _react.lazy.call(void 0,
1343
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-2CWNDVJD.cjs"))).then((m) => ({
1425
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-GCOVYZN2.cjs"))).then((m) => ({
1344
1426
  default: m.WithdrawModalReown
1345
1427
  }))
1346
1428
  );
@@ -1366,8 +1448,8 @@ function WithdrawModalInner({
1366
1448
  isOpen,
1367
1449
  onClose,
1368
1450
  inline,
1369
- backendUrl = _chunkFLXTBFMZcjs.DEFAULT_BACKEND_URL,
1370
- signerAddress = _chunkFLXTBFMZcjs.DEFAULT_SIGNER_ADDRESS,
1451
+ backendUrl = _chunkNELAYNA3cjs.DEFAULT_BACKEND_URL,
1452
+ signerAddress = _chunkNELAYNA3cjs.DEFAULT_SIGNER_ADDRESS,
1371
1453
  sessionChainIds,
1372
1454
  forceRegister = false,
1373
1455
  waitForFinalTx = true,
@@ -1393,19 +1475,22 @@ function WithdrawModalInner({
1393
1475
  const [currentStepIndex, setCurrentStepIndex] = _react.useState.call(void 0, 0);
1394
1476
  const [totalBalanceUsd, setTotalBalanceUsd] = _react.useState.call(void 0, null);
1395
1477
  const backHandlerRef = _react.useRef.call(void 0, void 0);
1396
- const targetChain = _chunkFLXTBFMZcjs.getChainId.call(void 0, targetChainProp);
1397
- const sourceChain = _chunkFLXTBFMZcjs.getChainId.call(void 0, sourceChainProp);
1398
- const service = _react.useMemo.call(void 0, () => _chunkAHOFT42Hcjs.createDepositService.call(void 0, backendUrl), [backendUrl]);
1478
+ const targetChain = _chunkNELAYNA3cjs.getChainId.call(void 0, targetChainProp);
1479
+ const sourceChain = _chunkNELAYNA3cjs.getChainId.call(void 0, sourceChainProp);
1480
+ const service = _react.useMemo.call(void 0,
1481
+ () => _chunkLT3QKJI2cjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1482
+ [backendUrl, debug]
1483
+ );
1399
1484
  _react.useEffect.call(void 0, () => {
1400
1485
  if (isOpen && modalRef.current) {
1401
- _chunkAHOFT42Hcjs.applyTheme.call(void 0, modalRef.current, theme);
1486
+ _chunkLT3QKJI2cjs.applyTheme.call(void 0, modalRef.current, theme);
1402
1487
  }
1403
1488
  }, [isOpen, theme]);
1404
1489
  const hasCalledReady = _react.useRef.call(void 0, false);
1405
1490
  _react.useEffect.call(void 0, () => {
1406
1491
  if (isOpen && !hasCalledReady.current) {
1407
1492
  hasCalledReady.current = true;
1408
- _optionalChain([onReady, 'optionalCall', _41 => _41()]);
1493
+ _optionalChain([onReady, 'optionalCall', _44 => _44()]);
1409
1494
  }
1410
1495
  }, [isOpen, onReady]);
1411
1496
  _react.useEffect.call(void 0, () => {
@@ -1424,17 +1509,17 @@ function WithdrawModalInner({
1424
1509
  setTotalBalanceUsd(balance2);
1425
1510
  }, []);
1426
1511
  const handleBack = _react.useCallback.call(void 0, () => {
1427
- _optionalChain([backHandlerRef, 'access', _42 => _42.current, 'optionalCall', _43 => _43()]);
1512
+ _optionalChain([backHandlerRef, 'access', _45 => _45.current, 'optionalCall', _46 => _46()]);
1428
1513
  }, []);
1429
- const showLogo = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _44 => _44.showLogo]), () => ( false));
1430
- const showStepper = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _45 => _45.showStepper]), () => ( false));
1431
- const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _46 => _46.showBackButton]), () => ( true));
1432
- const balance = _optionalChain([uiConfig, 'optionalAccess', _47 => _47.balance]);
1433
- const logoUrl = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _48 => _48.logoUrl]), () => ( "https://github.com/rhinestonewtf.png"));
1434
- const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _49 => _49.title]), () => ( "Withdraw"));
1514
+ const showLogo = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _47 => _47.showLogo]), () => ( false));
1515
+ const showStepper = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _48 => _48.showStepper]), () => ( false));
1516
+ const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _49 => _49.showBackButton]), () => ( true));
1517
+ const balance = _optionalChain([uiConfig, 'optionalAccess', _50 => _50.balance]);
1518
+ const logoUrl = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _51 => _51.logoUrl]), () => ( "https://github.com/rhinestonewtf.png"));
1519
+ const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _52 => _52.title]), () => ( "Withdraw"));
1435
1520
  const canGoBack = currentStepIndex > 0 && currentStepIndex < 3 && backHandlerRef.current;
1436
1521
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1437
- _chunkAHOFT42Hcjs.Modal,
1522
+ _chunkLT3QKJI2cjs.Modal,
1438
1523
  {
1439
1524
  isOpen,
1440
1525
  onClose,
@@ -1492,7 +1577,7 @@ function WithdrawModalInner({
1492
1577
  ] }),
1493
1578
  balance && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-balance", children: [
1494
1579
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-label", children: balance.title }),
1495
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunkAHOFT42Hcjs.currencyFormatter.format(totalBalanceUsd) : null))) })
1580
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunkLT3QKJI2cjs.currencyFormatter.format(totalBalanceUsd) : null))) })
1496
1581
  ] })
1497
1582
  ] }),
1498
1583
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,