@rhinestone/deposit-modal 0.3.0-alpha.1 → 0.3.0-alpha.10

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 (40) hide show
  1. package/dist/{DepositModalReown-EESTTLN4.mjs → DepositModalReown-2S76TEXU.mjs} +9 -6
  2. package/dist/{DepositModalReown-VV3H2WWC.cjs → DepositModalReown-4NV6JM2U.cjs} +12 -9
  3. package/dist/{QRCode-SMMYPUQC.cjs → QRCode-KG47KTGX.cjs} +1 -1
  4. package/dist/{QRCode-YMQTKSSK.mjs → QRCode-YJ3EGWQS.mjs} +1 -1
  5. package/dist/{WithdrawModalReown-SQQQV6KQ.mjs → WithdrawModalReown-QEQPCSWT.mjs} +4 -4
  6. package/dist/{WithdrawModalReown-IP4MOGER.cjs → WithdrawModalReown-Z5JVENP6.cjs} +7 -7
  7. package/dist/{chunk-DCAANLEP.cjs → chunk-2TWQGPPB.cjs} +1323 -590
  8. package/dist/chunk-7JIDIX27.cjs +554 -0
  9. package/dist/{chunk-D5YCALVX.mjs → chunk-7MZNQ4C2.mjs} +74 -349
  10. package/dist/{chunk-YQFH2WSW.cjs → chunk-FGVSNARE.cjs} +55 -25
  11. package/dist/{chunk-C6JK3IO6.cjs → chunk-HUPEN2T5.cjs} +2820 -1509
  12. package/dist/{chunk-SLLI7SB6.mjs → chunk-N5NOJ4ZV.mjs} +2746 -1435
  13. package/dist/{chunk-5YXAQB6A.mjs → chunk-QXIJLRKC.mjs} +56 -26
  14. package/dist/chunk-SZIYS42B.mjs +554 -0
  15. package/dist/{chunk-FY76DWPD.mjs → chunk-WVE3JN3C.mjs} +1308 -575
  16. package/dist/{chunk-K7MNFNR7.cjs → chunk-YI63OMXN.cjs} +155 -430
  17. package/dist/constants-DqVn968d.d.cts +52 -0
  18. package/dist/constants-DqVn968d.d.ts +52 -0
  19. package/dist/constants.cjs +8 -2
  20. package/dist/constants.d.cts +17 -48
  21. package/dist/constants.d.ts +17 -48
  22. package/dist/constants.mjs +7 -1
  23. package/dist/deposit.cjs +4 -4
  24. package/dist/deposit.d.cts +2 -2
  25. package/dist/deposit.d.ts +2 -2
  26. package/dist/deposit.mjs +3 -3
  27. package/dist/index.cjs +16 -7
  28. package/dist/index.d.cts +2 -2
  29. package/dist/index.d.ts +2 -2
  30. package/dist/index.mjs +16 -7
  31. package/dist/styles.css +656 -207
  32. package/dist/{types-DRou84ZM.d.cts → types-D6wrO4Ow.d.cts} +33 -8
  33. package/dist/{types-DRou84ZM.d.ts → types-D6wrO4Ow.d.ts} +33 -8
  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 +5 -5
  39. package/dist/chunk-IVTXEYB2.cjs +0 -507
  40. package/dist/chunk-VA3ANS7D.mjs +0 -507
@@ -28,10 +28,10 @@
28
28
 
29
29
 
30
30
 
31
- var _chunkDCAANLEPcjs = require('./chunk-DCAANLEP.cjs');
32
31
 
33
32
 
34
33
 
34
+ var _chunk2TWQGPPBcjs = require('./chunk-2TWQGPPB.cjs');
35
35
 
36
36
 
37
37
 
@@ -41,7 +41,10 @@ var _chunkDCAANLEPcjs = require('./chunk-DCAANLEP.cjs');
41
41
 
42
42
 
43
43
 
44
- var _chunkIVTXEYB2cjs = require('./chunk-IVTXEYB2.cjs');
44
+
45
+
46
+
47
+ var _chunk7JIDIX27cjs = require('./chunk-7JIDIX27.cjs');
45
48
 
46
49
  // src/WithdrawModal.tsx
47
50
 
@@ -57,7 +60,7 @@ var _react = require('react');
57
60
  // src/WithdrawFlow.tsx
58
61
 
59
62
 
60
- // src/store/withdraw.tsx
63
+ // src/store/withdraw.ts
61
64
 
62
65
  var _zustand = require('zustand');
63
66
  var _vanilla = require('zustand/vanilla');
@@ -232,8 +235,8 @@ function WithdrawFormStep({
232
235
  const chainMismatch = Boolean(
233
236
  _optionalChain([walletClient, 'optionalAccess', _3 => _3.chain, 'optionalAccess', _4 => _4.id]) && walletClient.chain.id !== asset.chainId
234
237
  );
235
- const targetSymbol = _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
236
- const targetChainName = _chunkIVTXEYB2cjs.getChainName.call(void 0, targetChain);
238
+ const targetSymbol = _chunk7JIDIX27cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
239
+ const targetChainName = _chunk7JIDIX27cjs.getChainName.call(void 0, targetChain);
237
240
  const isBusy = submitting || isSubmitting;
238
241
  const seededRecipientRef = _react.useRef.call(void 0, _nullishCoalesce(defaultRecipient, () => ( "")));
239
242
  _react.useEffect.call(void 0, () => {
@@ -252,7 +255,7 @@ function WithdrawFormStep({
252
255
  setIsSwitching(true);
253
256
  switchChain(asset.chainId).catch((err) => {
254
257
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
255
- setError(_chunkDCAANLEPcjs.formatUserError.call(void 0, raw));
258
+ setError(_chunk2TWQGPPBcjs.formatUserError.call(void 0, raw));
256
259
  }).finally(() => {
257
260
  setIsSwitching(false);
258
261
  });
@@ -272,7 +275,7 @@ function WithdrawFormStep({
272
275
  return;
273
276
  }
274
277
  try {
275
- const bal = _chunkDCAANLEPcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
278
+ const bal = _chunk2TWQGPPBcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
276
279
  address: asset.token,
277
280
  abi: _viem.erc20Abi,
278
281
  functionName: "balanceOf",
@@ -376,30 +379,38 @@ function WithdrawFormStep({
376
379
  await onSubmit(recipient, amount);
377
380
  } catch (err) {
378
381
  const raw = err instanceof Error ? err.message : "Withdrawal failed";
379
- setError(_chunkDCAANLEPcjs.formatUserError.call(void 0, raw));
382
+ setError(_chunk2TWQGPPBcjs.formatUserError.call(void 0, raw));
380
383
  } finally {
381
384
  setIsSubmitting(false);
382
385
  }
383
386
  }, [recipient, amount, balance, asset.decimals, onSubmit]);
384
387
  if (isBalanceLoading) {
385
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
386
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-body rs-withdraw-loading", children: [
387
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDCAANLEPcjs.Spinner, { className: "rs-spinner--lg" }),
388
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
389
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-withdraw-loading", children: [
390
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TWQGPPBcjs.Spinner, { className: "rs-spinner--lg" }),
388
391
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
389
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkIVTXEYB2cjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
392
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunk7JIDIX27cjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
390
393
  ] }),
391
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDCAANLEPcjs.PoweredBy, {})
394
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TWQGPPBcjs.PoweredBy, {})
392
395
  ] });
393
396
  }
394
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
395
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-body rs-withdraw-form", children: [
396
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDCAANLEPcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDCAANLEPcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
397
+ return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
398
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
399
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TWQGPPBcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TWQGPPBcjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
397
400
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-section", children: [
398
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: "rs-withdraw-label", children: "Recipient address" }),
401
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
402
+ "label",
403
+ {
404
+ className: "rs-withdraw-label",
405
+ htmlFor: "rs-withdraw-recipient",
406
+ children: "Recipient address"
407
+ }
408
+ ),
399
409
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-input-row", children: [
400
410
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
401
411
  "input",
402
412
  {
413
+ id: "rs-withdraw-recipient",
403
414
  type: "text",
404
415
  className: "rs-withdraw-input rs-withdraw-input--address",
405
416
  placeholder: "0x...",
@@ -431,7 +442,7 @@ function WithdrawFormStep({
431
442
  ),
432
443
  isRecipientConnected ? null : "Use connected"
433
444
  ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
434
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDCAANLEPcjs.WalletIcon, { className: "rs-withdraw-use-connected-icon" }),
445
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TWQGPPBcjs.WalletIcon, { className: "rs-withdraw-use-connected-icon" }),
435
446
  isRecipientConnected ? null : "Use connected"
436
447
  ] })
437
448
  }
@@ -439,11 +450,12 @@ function WithdrawFormStep({
439
450
  ] })
440
451
  ] }),
441
452
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-section", children: [
442
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: "rs-withdraw-label", children: "Amount" }),
453
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: "rs-withdraw-label", htmlFor: "rs-withdraw-amount", children: "Amount" }),
443
454
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-input-row", children: [
444
455
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
445
456
  "input",
446
457
  {
458
+ id: "rs-withdraw-amount",
447
459
  type: "text",
448
460
  inputMode: "decimal",
449
461
  className: "rs-withdraw-input rs-withdraw-input--amount",
@@ -470,7 +482,7 @@ function WithdrawFormStep({
470
482
  ) })
471
483
  ] }),
472
484
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
473
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkDCAANLEPcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
485
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunk2TWQGPPBcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
474
486
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
475
487
  "Balance: ",
476
488
  formattedBalance,
@@ -481,7 +493,7 @@ function WithdrawFormStep({
481
493
  ] }),
482
494
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-receive-row", children: [
483
495
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-receive-col", children: [
484
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: "rs-withdraw-label rs-withdraw-label--sm", children: "Receive chain" }),
496
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-label rs-withdraw-label--sm", children: "Receive chain" }),
485
497
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
486
498
  "div",
487
499
  {
@@ -492,6 +504,7 @@ function WithdrawFormStep({
492
504
  "button",
493
505
  {
494
506
  type: "button",
507
+ "aria-label": "Receive chain",
495
508
  className: "rs-withdraw-dropdown",
496
509
  onClick: () => {
497
510
  setShowChainDropdown(!showChainDropdown);
@@ -499,10 +512,10 @@ function WithdrawFormStep({
499
512
  },
500
513
  children: [
501
514
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
502
- _chunkIVTXEYB2cjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
515
+ _chunk7JIDIX27cjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
503
516
  "img",
504
517
  {
505
- src: _chunkIVTXEYB2cjs.getChainIcon.call(void 0, targetChain),
518
+ src: _chunk7JIDIX27cjs.getChainIcon.call(void 0, targetChain),
506
519
  alt: targetChainName,
507
520
  className: "rs-withdraw-dropdown-icon"
508
521
  }
@@ -510,7 +523,7 @@ function WithdrawFormStep({
510
523
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName })
511
524
  ] }),
512
525
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
513
- _chunkDCAANLEPcjs.ChevronDownIcon,
526
+ _chunk2TWQGPPBcjs.ChevronDownIcon,
514
527
  {
515
528
  className: "rs-withdraw-dropdown-arrow",
516
529
  style: {
@@ -531,10 +544,10 @@ function WithdrawFormStep({
531
544
  setShowChainDropdown(false);
532
545
  },
533
546
  children: [
534
- _chunkIVTXEYB2cjs.getChainIcon.call(void 0, chain.id) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
547
+ _chunk7JIDIX27cjs.getChainIcon.call(void 0, chain.id) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
535
548
  "img",
536
549
  {
537
- src: _chunkIVTXEYB2cjs.getChainIcon.call(void 0, chain.id),
550
+ src: _chunk7JIDIX27cjs.getChainIcon.call(void 0, chain.id),
538
551
  alt: chain.name,
539
552
  className: "rs-withdraw-dropdown-icon"
540
553
  }
@@ -549,7 +562,7 @@ function WithdrawFormStep({
549
562
  )
550
563
  ] }),
551
564
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-receive-col", children: [
552
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { className: "rs-withdraw-label rs-withdraw-label--sm", children: "Receive token" }),
565
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-label rs-withdraw-label--sm", children: "Receive token" }),
553
566
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
554
567
  "div",
555
568
  {
@@ -560,6 +573,7 @@ function WithdrawFormStep({
560
573
  "button",
561
574
  {
562
575
  type: "button",
576
+ "aria-label": "Receive token",
563
577
  className: "rs-withdraw-dropdown",
564
578
  onClick: () => {
565
579
  setShowTokenDropdown(!showTokenDropdown);
@@ -567,10 +581,10 @@ function WithdrawFormStep({
567
581
  },
568
582
  children: [
569
583
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
570
- _chunkIVTXEYB2cjs.getTokenIcon.call(void 0, targetSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
584
+ _chunk7JIDIX27cjs.getTokenIcon.call(void 0, targetSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
571
585
  "img",
572
586
  {
573
- src: _chunkIVTXEYB2cjs.getTokenIcon.call(void 0, targetSymbol),
587
+ src: _chunk7JIDIX27cjs.getTokenIcon.call(void 0, targetSymbol),
574
588
  alt: targetSymbol,
575
589
  className: "rs-withdraw-dropdown-icon"
576
590
  }
@@ -578,7 +592,7 @@ function WithdrawFormStep({
578
592
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetSymbol })
579
593
  ] }),
580
594
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
581
- _chunkDCAANLEPcjs.ChevronDownIcon,
595
+ _chunk2TWQGPPBcjs.ChevronDownIcon,
582
596
  {
583
597
  className: "rs-withdraw-dropdown-arrow",
584
598
  style: {
@@ -599,10 +613,10 @@ function WithdrawFormStep({
599
613
  setShowTokenDropdown(false);
600
614
  },
601
615
  children: [
602
- _chunkIVTXEYB2cjs.getTokenIcon.call(void 0, option.symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
616
+ _chunk7JIDIX27cjs.getTokenIcon.call(void 0, option.symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
603
617
  "img",
604
618
  {
605
- src: _chunkIVTXEYB2cjs.getTokenIcon.call(void 0, option.symbol),
619
+ src: _chunk7JIDIX27cjs.getTokenIcon.call(void 0, option.symbol),
606
620
  alt: option.symbol,
607
621
  className: "rs-withdraw-dropdown-icon"
608
622
  }
@@ -617,27 +631,21 @@ function WithdrawFormStep({
617
631
  )
618
632
  ] })
619
633
  ] }),
620
- 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 ${_chunkIVTXEYB2cjs.getChainName.call(void 0, asset.chainId)}...` : `Switch to ${_chunkIVTXEYB2cjs.getChainName.call(void 0, asset.chainId)} to continue.` }) }),
621
- error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-error", children: [
622
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDCAANLEPcjs.AlertTriangleIcon, {}),
623
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: error })
624
- ] }),
625
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-error", children: [
626
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDCAANLEPcjs.AlertTriangleIcon, {}),
627
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: registrationError })
628
- ] })
634
+ 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 ${_chunk7JIDIX27cjs.getChainName.call(void 0, asset.chainId)}...` : `Switch to ${_chunk7JIDIX27cjs.getChainName.call(void 0, asset.chainId)} to continue.` }) }),
635
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TWQGPPBcjs.Callout, { variant: "error", children: error }),
636
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TWQGPPBcjs.Callout, { variant: "error", children: registrationError }),
637
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
638
+ _chunk2TWQGPPBcjs.Button,
639
+ {
640
+ onClick: handleWithdraw,
641
+ fullWidth: true,
642
+ loading: isBusy,
643
+ disabled: !recipient || !amount || chainMismatch || isBusy || Boolean(registrationError),
644
+ children: isBusy ? "Preparing..." : registrationPending ? "Preparing session..." : !recipient ? "Enter Recipient Address" : !amount ? "Enter Withdraw Amount" : "Withdraw"
645
+ }
646
+ )
629
647
  ] }),
630
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
631
- _chunkDCAANLEPcjs.Button,
632
- {
633
- onClick: handleWithdraw,
634
- fullWidth: true,
635
- loading: isBusy,
636
- disabled: !recipient || !amount || chainMismatch || isBusy || Boolean(registrationError),
637
- children: isBusy ? "Preparing..." : registrationPending ? "Preparing session..." : !recipient ? "Enter Recipient Address" : !amount ? "Enter Withdraw Amount" : "Withdraw"
638
- }
639
- ) }),
640
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDCAANLEPcjs.PoweredBy, {})
648
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TWQGPPBcjs.PoweredBy, {})
641
649
  ] });
642
650
  }
643
651
  WithdrawFormStep.displayName = "WithdrawFormStep";
@@ -663,13 +671,13 @@ function WithdrawReviewStep({
663
671
  }) {
664
672
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
665
673
  const [error, setError] = _react.useState.call(void 0, null);
666
- const sourceChainName = _chunkIVTXEYB2cjs.getChainName.call(void 0, sourceChain);
667
- const sourceChainIcon = _chunkIVTXEYB2cjs.getChainIcon.call(void 0, sourceChain);
668
- const targetSymbol = _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
669
- const targetChainName = _chunkIVTXEYB2cjs.getChainName.call(void 0, targetChain);
670
- const targetChainIcon = _chunkIVTXEYB2cjs.getChainIcon.call(void 0, targetChain);
671
- const sourceTokenIcon = _chunkIVTXEYB2cjs.getTokenIcon.call(void 0, sourceSymbol);
672
- const targetTokenIcon = _chunkIVTXEYB2cjs.getTokenIcon.call(void 0, targetSymbol);
674
+ const sourceChainName = _chunk7JIDIX27cjs.getChainName.call(void 0, sourceChain);
675
+ const sourceChainIcon = _chunk7JIDIX27cjs.getChainIcon.call(void 0, sourceChain);
676
+ const targetSymbol = _chunk7JIDIX27cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
677
+ const targetChainName = _chunk7JIDIX27cjs.getChainName.call(void 0, targetChain);
678
+ const targetChainIcon = _chunk7JIDIX27cjs.getChainIcon.call(void 0, targetChain);
679
+ const sourceTokenIcon = _chunk7JIDIX27cjs.getTokenIcon.call(void 0, sourceSymbol);
680
+ const targetTokenIcon = _chunk7JIDIX27cjs.getTokenIcon.call(void 0, targetSymbol);
673
681
  const handleConfirm = async () => {
674
682
  setError(null);
675
683
  setIsSubmitting(true);
@@ -677,7 +685,7 @@ function WithdrawReviewStep({
677
685
  await onConfirm();
678
686
  } catch (err) {
679
687
  const raw = err instanceof Error ? err.message : "Withdraw failed";
680
- const message = _chunkDCAANLEPcjs.formatUserError.call(void 0, raw);
688
+ const message = _chunk2TWQGPPBcjs.formatUserError.call(void 0, raw);
681
689
  setError(message);
682
690
  _optionalChain([onError, 'optionalCall', _8 => _8(message, "WITHDRAW_REVIEW_ERROR")]);
683
691
  } finally {
@@ -688,68 +696,62 @@ function WithdrawReviewStep({
688
696
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
689
697
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
690
698
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
691
- _chunkDCAANLEPcjs.BodyHeader,
699
+ _chunk2TWQGPPBcjs.BodyHeader,
692
700
  {
693
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDCAANLEPcjs.CircleArrowOutUpLeftIcon, {}),
701
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TWQGPPBcjs.CircleArrowOutUpLeftIcon, {}),
694
702
  title: "Review withdrawal"
695
703
  }
696
704
  ),
697
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-details", children: [
698
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
705
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
706
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
699
707
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "You send" }),
700
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
708
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
701
709
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
702
710
  amount,
703
711
  " ",
704
712
  sourceSymbol
705
713
  ] }),
706
- sourceTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceTokenIcon, alt: "" }) })
714
+ sourceTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceTokenIcon, alt: "" }) })
707
715
  ] })
708
716
  ] }),
709
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
717
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
710
718
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
711
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
719
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
712
720
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
713
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceChainIcon, alt: "" }) })
721
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceChainIcon, alt: "" }) })
714
722
  ] })
715
723
  ] }),
716
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
724
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
717
725
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Recipient" }),
718
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenAddress(recipient) }) })
726
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: shortenAddress(recipient) }) })
719
727
  ] }),
720
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
728
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
721
729
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
722
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
730
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
723
731
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
724
732
  amount,
725
733
  " ",
726
734
  targetSymbol
727
735
  ] }),
728
- targetTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetTokenIcon, alt: "" }) })
736
+ targetTokenIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetTokenIcon, alt: "" }) })
729
737
  ] })
730
738
  ] }),
731
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
739
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
732
740
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
733
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-amount-detail-value", children: [
741
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
734
742
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
735
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetChainIcon, alt: "" }) })
743
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetChainIcon, alt: "" }) })
736
744
  ] })
737
745
  ] }),
738
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-detail-row", children: [
746
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
739
747
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Estimated time" }),
740
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-amount-detail-value", children: estimatedTime })
748
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
741
749
  ] })
742
750
  ] }),
743
- error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", role: "alert", children: [
744
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDCAANLEPcjs.AlertTriangleIcon, { style: { width: 16, height: 16, flexShrink: 0 } }),
745
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: error })
746
- ] }),
747
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", role: "alert", children: [
748
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDCAANLEPcjs.AlertTriangleIcon, { style: { width: 16, height: 16, flexShrink: 0 } }),
749
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: registrationError })
750
- ] }),
751
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TWQGPPBcjs.Callout, { variant: "error", children: error }),
752
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TWQGPPBcjs.Callout, { variant: "error", children: registrationError }),
751
753
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
752
- _chunkDCAANLEPcjs.Button,
754
+ _chunk2TWQGPPBcjs.Button,
753
755
  {
754
756
  onClick: handleConfirm,
755
757
  loading: isSubmitting,
@@ -760,311 +762,26 @@ function WithdrawReviewStep({
760
762
  }
761
763
  )
762
764
  ] }),
763
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDCAANLEPcjs.PoweredBy, {})
765
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TWQGPPBcjs.PoweredBy, {})
764
766
  ] });
765
767
  }
766
768
  WithdrawReviewStep.displayName = "WithdrawReviewStep";
767
769
 
768
- // src/core/safe.ts
769
-
770
-
771
-
772
-
773
-
774
-
775
-
776
-
777
-
778
-
779
- var SAFE_ABI = [
780
- {
781
- type: "function",
782
- name: "isOwner",
783
- stateMutability: "view",
784
- inputs: [{ name: "owner", type: "address" }],
785
- outputs: [{ name: "", type: "bool" }]
786
- },
787
- {
788
- type: "function",
789
- name: "nonce",
790
- stateMutability: "view",
791
- inputs: [],
792
- outputs: [{ type: "uint256" }]
793
- },
794
- {
795
- type: "function",
796
- name: "execTransaction",
797
- stateMutability: "payable",
798
- inputs: [
799
- { name: "to", type: "address" },
800
- { name: "value", type: "uint256" },
801
- { name: "data", type: "bytes" },
802
- { name: "operation", type: "uint8" },
803
- { name: "safeTxGas", type: "uint256" },
804
- { name: "baseGas", type: "uint256" },
805
- { name: "gasPrice", type: "uint256" },
806
- { name: "gasToken", type: "address" },
807
- { name: "refundReceiver", type: "address" },
808
- { name: "signatures", type: "bytes" }
809
- ],
810
- outputs: [{ name: "success", type: "bool" }]
811
- },
812
- {
813
- type: "event",
814
- name: "ExecutionSuccess",
815
- inputs: [
816
- { name: "txHash", type: "bytes32", indexed: true },
817
- { name: "payment", type: "uint256", indexed: false }
818
- ],
819
- anonymous: false
820
- },
821
- {
822
- type: "event",
823
- name: "ExecutionFailure",
824
- inputs: [
825
- { name: "txHash", type: "bytes32", indexed: true },
826
- { name: "payment", type: "uint256", indexed: false }
827
- ],
828
- anonymous: false
829
- }
830
- ];
831
- async function executeSafeEthTransfer(params) {
832
- const {
833
- walletClient,
834
- publicClient,
835
- safeAddress,
836
- recipient,
837
- amount,
838
- chainId
839
- } = params;
840
- const account = walletClient.account;
841
- const chain = walletClient.chain;
842
- if (!account || !chain) {
843
- throw new Error("Wallet not connected");
844
- }
845
- if (chain.id !== chainId) {
846
- throw new Error(`Switch to ${_chunkIVTXEYB2cjs.getChainName.call(void 0, chainId)} to sign`);
847
- }
848
- const isOwner = await publicClient.readContract({
849
- address: safeAddress,
850
- abi: SAFE_ABI,
851
- functionName: "isOwner",
852
- args: [account.address]
853
- });
854
- if (!isOwner) {
855
- throw new Error("Connected wallet is not a Safe owner");
856
- }
857
- const safeTx = {
858
- to: recipient,
859
- value: amount,
860
- data: "0x",
861
- operation: 0,
862
- safeTxGas: 0n,
863
- baseGas: 0n,
864
- gasPrice: 0n,
865
- gasToken: _viem.zeroAddress,
866
- refundReceiver: _viem.zeroAddress
867
- };
868
- const signature = _viem.concat.call(void 0, [
869
- _viem.pad.call(void 0, account.address, { size: 32 }),
870
- _viem.pad.call(void 0, _viem.toHex.call(void 0, 0), { size: 32 }),
871
- _viem.toHex.call(void 0, 1, { size: 1 })
872
- ]);
873
- const txHash = await walletClient.writeContract({
874
- account,
875
- chain,
876
- address: safeAddress,
877
- abi: SAFE_ABI,
878
- functionName: "execTransaction",
879
- args: [
880
- safeTx.to,
881
- safeTx.value,
882
- safeTx.data,
883
- safeTx.operation,
884
- safeTx.safeTxGas,
885
- safeTx.baseGas,
886
- safeTx.gasPrice,
887
- safeTx.gasToken,
888
- safeTx.refundReceiver,
889
- signature
890
- ]
891
- });
892
- const receipt = await publicClient.waitForTransactionReceipt({
893
- hash: txHash
894
- });
895
- const safeLogs = receipt.logs.filter(
896
- (log) => log.address.toLowerCase() === safeAddress.toLowerCase()
897
- );
898
- const parsed = _viem.parseEventLogs.call(void 0, {
899
- abi: SAFE_ABI,
900
- logs: safeLogs,
901
- strict: false
902
- });
903
- const failed = parsed.find((log) => log.eventName === "ExecutionFailure");
904
- if (failed) {
905
- throw new Error("Safe transaction failed");
906
- }
907
- const succeeded = parsed.find((log) => log.eventName === "ExecutionSuccess");
908
- if (!succeeded) {
909
- throw new Error("Safe transaction status unavailable");
910
- }
911
- return { txHash };
912
- }
913
- async function executeSafeErc20Transfer(params) {
914
- const {
915
- walletClient,
916
- publicClient,
917
- safeAddress,
918
- tokenAddress,
919
- recipient,
920
- amount,
921
- chainId
922
- } = params;
923
- const account = walletClient.account;
924
- const chain = walletClient.chain;
925
- if (!account || !chain) {
926
- throw new Error("Wallet not connected");
927
- }
928
- if (chain.id !== chainId) {
929
- throw new Error(`Switch to ${_chunkIVTXEYB2cjs.getChainName.call(void 0, chainId)} to sign`);
930
- }
931
- const isOwner = await publicClient.readContract({
932
- address: safeAddress,
933
- abi: SAFE_ABI,
934
- functionName: "isOwner",
935
- args: [account.address]
936
- });
937
- if (!isOwner) {
938
- throw new Error("Connected wallet is not a Safe owner");
939
- }
940
- const data = _viem.encodeFunctionData.call(void 0, {
941
- abi: _viem.erc20Abi,
942
- functionName: "transfer",
943
- args: [recipient, amount]
944
- });
945
- const safeTx = {
946
- to: tokenAddress,
947
- value: 0n,
948
- data,
949
- operation: 0,
950
- safeTxGas: 0n,
951
- baseGas: 0n,
952
- gasPrice: 0n,
953
- gasToken: _viem.zeroAddress,
954
- refundReceiver: _viem.zeroAddress
955
- };
956
- const signature = _viem.concat.call(void 0, [
957
- _viem.pad.call(void 0, account.address, { size: 32 }),
958
- _viem.pad.call(void 0, _viem.toHex.call(void 0, 0), { size: 32 }),
959
- _viem.toHex.call(void 0, 1, { size: 1 })
960
- ]);
961
- const txHash = await walletClient.writeContract({
962
- account,
963
- chain,
964
- address: safeAddress,
965
- abi: SAFE_ABI,
966
- functionName: "execTransaction",
967
- args: [
968
- safeTx.to,
969
- safeTx.value,
970
- safeTx.data,
971
- safeTx.operation,
972
- safeTx.safeTxGas,
973
- safeTx.baseGas,
974
- safeTx.gasPrice,
975
- safeTx.gasToken,
976
- safeTx.refundReceiver,
977
- signature
978
- ]
979
- });
980
- const receipt = await publicClient.waitForTransactionReceipt({
981
- hash: txHash
982
- });
983
- const safeLogs = receipt.logs.filter(
984
- (log) => log.address.toLowerCase() === safeAddress.toLowerCase()
985
- );
986
- const parsed = _viem.parseEventLogs.call(void 0, {
987
- abi: SAFE_ABI,
988
- logs: safeLogs,
989
- strict: false
990
- });
991
- const failed = parsed.find((log) => log.eventName === "ExecutionFailure");
992
- if (failed) {
993
- throw new Error("Safe transaction failed");
994
- }
995
- const succeeded = parsed.find((log) => log.eventName === "ExecutionSuccess");
996
- if (!succeeded) {
997
- throw new Error("Safe transaction status unavailable");
998
- }
999
- return { txHash };
1000
- }
1001
- var SAFE_TX_TYPES = {
1002
- SafeTx: [
1003
- { name: "to", type: "address" },
1004
- { name: "value", type: "uint256" },
1005
- { name: "data", type: "bytes" },
1006
- { name: "operation", type: "uint8" },
1007
- { name: "safeTxGas", type: "uint256" },
1008
- { name: "baseGas", type: "uint256" },
1009
- { name: "gasPrice", type: "uint256" },
1010
- { name: "gasToken", type: "address" },
1011
- { name: "refundReceiver", type: "address" },
1012
- { name: "nonce", type: "uint256" }
1013
- ]
1014
- };
1015
- async function buildSafeTransaction(params) {
1016
- const { publicClient, safeAddress, to, value, data, chainId } = params;
1017
- const nonce = await publicClient.readContract({
1018
- address: safeAddress,
1019
- abi: SAFE_ABI,
1020
- functionName: "nonce"
1021
- });
1022
- const message = {
1023
- to,
1024
- value,
1025
- data,
1026
- operation: 0,
1027
- safeTxGas: 0n,
1028
- baseGas: 0n,
1029
- gasPrice: 0n,
1030
- gasToken: _viem.zeroAddress,
1031
- refundReceiver: _viem.zeroAddress,
1032
- nonce
1033
- };
1034
- const safeTxHash = _viem.hashTypedData.call(void 0, {
1035
- domain: { chainId, verifyingContract: safeAddress },
1036
- types: SAFE_TX_TYPES,
1037
- primaryType: "SafeTx",
1038
- message
1039
- });
1040
- return {
1041
- chainId,
1042
- safeAddress,
1043
- safeTxHash,
1044
- typedData: {
1045
- domain: { chainId, verifyingContract: safeAddress },
1046
- types: SAFE_TX_TYPES,
1047
- primaryType: "SafeTx",
1048
- message
1049
- }
1050
- };
1051
- }
1052
-
1053
770
  // src/WithdrawFlow.tsx
1054
771
 
1055
772
 
1056
773
  var ADDR_REGEX = /^0x[a-fA-F0-9]{40}$/;
1057
774
  var REGISTRATION_DEBOUNCE_MS = 600;
1058
775
  function resolveSessionOwner(eoaAddress) {
1059
- const localOwner = _chunkDCAANLEPcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
776
+ const localOwner = _chunk2TWQGPPBcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
1060
777
  if (localOwner) {
1061
778
  return {
1062
- account: _chunkDCAANLEPcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
779
+ account: _chunk2TWQGPPBcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
1063
780
  address: localOwner.address
1064
781
  };
1065
782
  }
1066
- const created = _chunkDCAANLEPcjs.createSessionOwnerKey.call(void 0, );
1067
- _chunkDCAANLEPcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
783
+ const created = _chunk2TWQGPPBcjs.createSessionOwnerKey.call(void 0, );
784
+ _chunk2TWQGPPBcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
1068
785
  return { account: created.account, address: created.address };
1069
786
  }
1070
787
  function targetsEqual(a, b) {
@@ -1084,10 +801,9 @@ function WithdrawFlow({
1084
801
  amount: defaultAmount,
1085
802
  service,
1086
803
  allowedRoutes,
1087
- signerAddress = _chunkIVTXEYB2cjs.DEFAULT_SIGNER_ADDRESS,
804
+ signerAddress = _chunk7JIDIX27cjs.DEFAULT_SIGNER_ADDRESS,
1088
805
  sessionChainIds,
1089
806
  forceRegister = false,
1090
- waitForFinalTx = true,
1091
807
  reownWallet,
1092
808
  onConnect,
1093
809
  onDisconnect,
@@ -1100,19 +816,19 @@ function WithdrawFlow({
1100
816
  onError,
1101
817
  debug
1102
818
  }) {
1103
- const onStepChangeRef = _chunkDCAANLEPcjs.useLatestRef.call(void 0, onStepChange);
1104
- const onEventRef = _chunkDCAANLEPcjs.useLatestRef.call(void 0, onEvent);
1105
- const onLifecycleRef = _chunkDCAANLEPcjs.useLatestRef.call(void 0, onLifecycle);
1106
- const onErrorRef = _chunkDCAANLEPcjs.useLatestRef.call(void 0, onError);
819
+ const onStepChangeRef = _chunk2TWQGPPBcjs.useLatestRef.call(void 0, onStepChange);
820
+ const onEventRef = _chunk2TWQGPPBcjs.useLatestRef.call(void 0, onEvent);
821
+ const onLifecycleRef = _chunk2TWQGPPBcjs.useLatestRef.call(void 0, onLifecycle);
822
+ const onErrorRef = _chunk2TWQGPPBcjs.useLatestRef.call(void 0, onError);
1107
823
  const logFlow = _react.useCallback.call(void 0,
1108
824
  (message, data) => {
1109
- _chunkDCAANLEPcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
825
+ _chunk2TWQGPPBcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
1110
826
  },
1111
827
  [debug]
1112
828
  );
1113
829
  const logFlowError = _react.useCallback.call(void 0,
1114
830
  (message, error, data) => {
1115
- _chunkDCAANLEPcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
831
+ _chunk2TWQGPPBcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
1116
832
  },
1117
833
  [debug]
1118
834
  );
@@ -1187,14 +903,14 @@ function WithdrawFlow({
1187
903
  return {
1188
904
  ownerAddress: dappAddress,
1189
905
  walletClient: _nullishCoalesce(dappWalletClient, () => ( void 0)),
1190
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDCAANLEPcjs.getPublicClient.call(void 0, sourceChain))),
906
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk2TWQGPPBcjs.getPublicClient.call(void 0, sourceChain))),
1191
907
  switchChain: dappSwitchChain
1192
908
  };
1193
909
  }
1194
910
  return {
1195
911
  ownerAddress: dappWalletClient.account.address,
1196
912
  walletClient: dappWalletClient,
1197
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDCAANLEPcjs.getPublicClient.call(void 0, sourceChain))),
913
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk2TWQGPPBcjs.getPublicClient.call(void 0, sourceChain))),
1198
914
  switchChain: dappSwitchChain
1199
915
  };
1200
916
  }
@@ -1205,7 +921,7 @@ function WithdrawFlow({
1205
921
  return {
1206
922
  ownerAddress: dappWalletClient.account.address,
1207
923
  walletClient: dappWalletClient,
1208
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkDCAANLEPcjs.getPublicClient.call(void 0, sourceChain))),
924
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk2TWQGPPBcjs.getPublicClient.call(void 0, sourceChain))),
1209
925
  switchChain: dappSwitchChain
1210
926
  };
1211
927
  }
@@ -1262,7 +978,7 @@ function WithdrawFlow({
1262
978
  const setup = await service.setupAccount({
1263
979
  ownerAddress,
1264
980
  sessionOwnerAddress: sessionOwner.address,
1265
- targetChain: _chunkDCAANLEPcjs.toEvmCaip2.call(void 0, targetChain),
981
+ targetChain: _chunk2TWQGPPBcjs.toEvmCaip2.call(void 0, targetChain),
1266
982
  targetToken,
1267
983
  recipient: recipientForRegistration,
1268
984
  signerAddress,
@@ -1287,7 +1003,7 @@ function WithdrawFlow({
1287
1003
  message: typedData.message
1288
1004
  });
1289
1005
  if (cancelled) return;
1290
- const sessionDetails = _chunkDCAANLEPcjs.buildSessionDetails.call(void 0,
1006
+ const sessionDetails = _chunk2TWQGPPBcjs.buildSessionDetails.call(void 0,
1291
1007
  setup.sessionDetailsUnsigned,
1292
1008
  signature
1293
1009
  );
@@ -1301,7 +1017,7 @@ function WithdrawFlow({
1301
1017
  eoaAddress: ownerAddress,
1302
1018
  sessionOwner: sessionOwner.address,
1303
1019
  target: {
1304
- chain: _chunkDCAANLEPcjs.toEvmCaip2.call(void 0, targetChain),
1020
+ chain: _chunk2TWQGPPBcjs.toEvmCaip2.call(void 0, targetChain),
1305
1021
  token: targetToken,
1306
1022
  recipient: recipientForRegistration
1307
1023
  }
@@ -1324,7 +1040,7 @@ function WithdrawFlow({
1324
1040
  } catch (err) {
1325
1041
  if (cancelled) return;
1326
1042
  const raw = err instanceof Error ? err.message : "Registration failed";
1327
- const message = _chunkDCAANLEPcjs.formatUserError.call(void 0, raw);
1043
+ const message = _chunk2TWQGPPBcjs.formatUserError.call(void 0, raw);
1328
1044
  logFlowError("auto-register:failed", err, {
1329
1045
  ownerAddress,
1330
1046
  targetChain,
@@ -1357,10 +1073,10 @@ function WithdrawFlow({
1357
1073
  onErrorRef
1358
1074
  ]);
1359
1075
  const asset = _react.useMemo.call(void 0, () => {
1360
- const symbol = _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
1361
- const decimals = _chunkIVTXEYB2cjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
1076
+ const symbol = _chunk7JIDIX27cjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
1077
+ const decimals = _chunk7JIDIX27cjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
1362
1078
  return {
1363
- id: _chunkDCAANLEPcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1079
+ id: _chunk2TWQGPPBcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1364
1080
  chainId: sourceChain,
1365
1081
  token: sourceToken,
1366
1082
  symbol,
@@ -1368,7 +1084,7 @@ function WithdrawFlow({
1368
1084
  decimals
1369
1085
  };
1370
1086
  }, [sourceChain, sourceToken]);
1371
- const isSourceNative = sourceToken.toLowerCase() === _chunkIVTXEYB2cjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
1087
+ const isSourceNative = sourceToken.toLowerCase() === _chunk7JIDIX27cjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
1372
1088
  const isSameRoute = targetChain === sourceChain && targetToken.toLowerCase() === sourceToken.toLowerCase();
1373
1089
  const reviewBackHandler = _react.useCallback.call(void 0, () => {
1374
1090
  storeApi.dispatch({ type: "review/back" });
@@ -1386,8 +1102,8 @@ function WithdrawFlow({
1386
1102
  }
1387
1103
  if (lastStepOpenEventKeyRef.current === "form") return;
1388
1104
  lastStepOpenEventKeyRef.current = "form";
1389
- const tokenSymbol = _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
1390
- const chainName = _chunkIVTXEYB2cjs.getChainName.call(void 0, targetChain);
1105
+ const tokenSymbol = _chunk7JIDIX27cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
1106
+ const chainName = _chunk7JIDIX27cjs.getChainName.call(void 0, targetChain);
1391
1107
  _optionalChain([onEventRef, 'access', _37 => _37.current, 'optionalCall', _38 => _38({
1392
1108
  type: "withdraw_modal_select_amount_open",
1393
1109
  pred_balance: totalBalanceUsd,
@@ -1424,8 +1140,8 @@ function WithdrawFlow({
1424
1140
  );
1425
1141
  const handleFormContinue = _react.useCallback.call(void 0,
1426
1142
  (recipient, amountValue) => {
1427
- const tokenSymbol = _chunkIVTXEYB2cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
1428
- const chainName = _chunkIVTXEYB2cjs.getChainName.call(void 0, targetChain);
1143
+ const tokenSymbol = _chunk7JIDIX27cjs.getTokenSymbol.call(void 0, targetToken, targetChain);
1144
+ const chainName = _chunk7JIDIX27cjs.getChainName.call(void 0, targetChain);
1429
1145
  _optionalChain([onEventRef, 'access', _41 => _41.current, 'optionalCall', _42 => _42({
1430
1146
  type: "withdraw_modal_select_amount_cta_click",
1431
1147
  pred_balance: totalBalanceUsd,
@@ -1468,7 +1184,7 @@ function WithdrawFlow({
1468
1184
  targetToken
1469
1185
  });
1470
1186
  const amountUnits = _viem.parseUnits.call(void 0, amountValue, asset.decimals);
1471
- const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _44 => _44.publicClient]), () => ( _chunkDCAANLEPcjs.getPublicClient.call(void 0, sourceChain)));
1187
+ const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _44 => _44.publicClient]), () => ( _chunk2TWQGPPBcjs.getPublicClient.call(void 0, sourceChain)));
1472
1188
  let result;
1473
1189
  if (onSignTransaction) {
1474
1190
  const transferTarget = isSameRoute ? recipient : smartAccount;
@@ -1481,7 +1197,7 @@ function WithdrawFlow({
1481
1197
  args: [transferTarget, amountUnits]
1482
1198
  })
1483
1199
  };
1484
- const request = await buildSafeTransaction({
1200
+ const request = await _chunk2TWQGPPBcjs.buildSafeTransaction.call(void 0, {
1485
1201
  publicClient: pc,
1486
1202
  safeAddress,
1487
1203
  to: transferData.to,
@@ -1492,7 +1208,7 @@ function WithdrawFlow({
1492
1208
  const { signature } = await onSignTransaction(request);
1493
1209
  const relayResult = await service.relayWithdraw({
1494
1210
  smartAccount,
1495
- chainId: _chunkDCAANLEPcjs.toEvmCaip2.call(void 0, sourceChain),
1211
+ chainId: _chunk2TWQGPPBcjs.toEvmCaip2.call(void 0, sourceChain),
1496
1212
  safeAddress,
1497
1213
  safeTransaction: request.typedData.message,
1498
1214
  signature
@@ -1502,7 +1218,7 @@ function WithdrawFlow({
1502
1218
  }
1503
1219
  result = { txHash: relayResult.txHash };
1504
1220
  } else if (isSourceNative) {
1505
- result = await executeSafeEthTransfer({
1221
+ result = await _chunk2TWQGPPBcjs.executeSafeEthTransfer.call(void 0, {
1506
1222
  walletClient: signerContext.walletClient,
1507
1223
  publicClient: pc,
1508
1224
  safeAddress,
@@ -1511,7 +1227,7 @@ function WithdrawFlow({
1511
1227
  chainId: sourceChain
1512
1228
  });
1513
1229
  } else {
1514
- result = await executeSafeErc20Transfer({
1230
+ result = await _chunk2TWQGPPBcjs.executeSafeErc20Transfer.call(void 0, {
1515
1231
  walletClient: signerContext.walletClient,
1516
1232
  publicClient: pc,
1517
1233
  safeAddress,
@@ -1544,7 +1260,7 @@ function WithdrawFlow({
1544
1260
  targetChain,
1545
1261
  targetToken
1546
1262
  });
1547
- handleError(_chunkDCAANLEPcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1263
+ handleError(_chunk2TWQGPPBcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1548
1264
  throw err;
1549
1265
  }
1550
1266
  },
@@ -1575,6 +1291,10 @@ function WithdrawFlow({
1575
1291
  txHash,
1576
1292
  destinationTxHash,
1577
1293
  amount: context.amount,
1294
+ // Withdraw targets are always EVM — WithdrawModalProps.targetChain is
1295
+ // Chain | number (never "solana"). The context union is wide only
1296
+ // because ProcessingStep is shared with the deposit flow, so narrow
1297
+ // back here.
1578
1298
  sourceChain: context.sourceChain,
1579
1299
  sourceToken: context.sourceToken,
1580
1300
  targetChain: context.targetChain,
@@ -1605,9 +1325,9 @@ function WithdrawFlow({
1605
1325
  [_optionalChain([allowedRoutes, 'optionalAccess', _54 => _54.sourceTokens])]
1606
1326
  );
1607
1327
  const targetChainOptions = _react.useMemo.call(void 0, () => {
1608
- return _chunkIVTXEYB2cjs.SOURCE_CHAINS.filter((chain) => {
1328
+ return _chunk7JIDIX27cjs.SOURCE_CHAINS.filter((chain) => {
1609
1329
  if (allowedChainSet && !allowedChainSet.has(chain.id)) return false;
1610
- const tokens = _chunkIVTXEYB2cjs.getSupportedTargetTokens.call(void 0, chain.id);
1330
+ const tokens = _chunk7JIDIX27cjs.getSupportedTargetTokens.call(void 0, chain.id);
1611
1331
  if (allowedTokenSet) {
1612
1332
  return tokens.some((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
1613
1333
  }
@@ -1615,7 +1335,7 @@ function WithdrawFlow({
1615
1335
  });
1616
1336
  }, [allowedChainSet, allowedTokenSet]);
1617
1337
  const targetTokenOptions = _react.useMemo.call(void 0, () => {
1618
- const tokens = _chunkIVTXEYB2cjs.getSupportedTargetTokens.call(void 0, targetChain);
1338
+ const tokens = _chunk7JIDIX27cjs.getSupportedTargetTokens.call(void 0, targetChain);
1619
1339
  if (!allowedTokenSet) return tokens;
1620
1340
  return tokens.filter((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
1621
1341
  }, [targetChain, allowedTokenSet]);
@@ -1629,7 +1349,7 @@ function WithdrawFlow({
1629
1349
  const handleTargetChainChange = _react.useCallback.call(void 0,
1630
1350
  (chainId) => {
1631
1351
  setTargetChain(chainId);
1632
- let options = _chunkIVTXEYB2cjs.getSupportedTargetTokens.call(void 0, chainId);
1352
+ let options = _chunk7JIDIX27cjs.getSupportedTargetTokens.call(void 0, chainId);
1633
1353
  if (allowedTokenSet) {
1634
1354
  options = options.filter(
1635
1355
  (t) => allowedTokenSet.has(t.symbol.toUpperCase())
@@ -1670,10 +1390,18 @@ function WithdrawFlow({
1670
1390
  return _optionalChain([selected, 'optionalAccess', _58 => _58.kind]) === "external" ? _nullishCoalesce(selected.icon, () => ( _optionalChain([reownWallet, 'optionalAccess', _59 => _59.icon]))) : void 0;
1671
1391
  }, [walletOptions, ownerAddress, _optionalChain([reownWallet, 'optionalAccess', _60 => _60.icon])]);
1672
1392
  if (showConnectStep) {
1393
+ const withdrawRows = walletOptions.map((option) => ({
1394
+ id: option.id,
1395
+ kind: option.kind,
1396
+ label: option.label,
1397
+ icon: option.icon,
1398
+ address: _nullishCoalesce(_nullishCoalesce(option.address, () => ( option.solanaAddress)), () => ( option.id)),
1399
+ state: "ready"
1400
+ }));
1673
1401
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1674
- _chunkDCAANLEPcjs.ConnectStep,
1402
+ _chunk2TWQGPPBcjs.ConnectStep,
1675
1403
  {
1676
- walletOptions,
1404
+ walletRows: withdrawRows,
1677
1405
  onConfirmWallet: (walletId) => {
1678
1406
  setSelectedWalletId(walletId);
1679
1407
  setIsConnectSelectionConfirmed(true);
@@ -1689,7 +1417,7 @@ function WithdrawFlow({
1689
1417
  if (!signerContext) return null;
1690
1418
  if (!onSignTransaction && !signerContext.walletClient) return null;
1691
1419
  const resolvedConnectedRecipient = _optionalChain([selectedWalletOption, 'optionalAccess', _61 => _61.kind]) === "external" ? selectedWalletOption.address : void 0;
1692
- const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkDCAANLEPcjs.getPublicClient.call(void 0, sourceChain)));
1420
+ const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunk2TWQGPPBcjs.getPublicClient.call(void 0, sourceChain)));
1693
1421
  const stepView = deriveStepView(flowStep, registration);
1694
1422
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
1695
1423
  stepView === "form" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1733,7 +1461,7 @@ function WithdrawFlow({
1733
1461
  }
1734
1462
  ),
1735
1463
  stepView === "processing" && registration.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1736
- _chunkDCAANLEPcjs.ProcessingStep,
1464
+ _chunk2TWQGPPBcjs.ProcessingStep,
1737
1465
  {
1738
1466
  smartAccount: registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : "0x0",
1739
1467
  txHash: _nullishCoalesce(storeApi.getState().txHash, () => ( "0x0")),
@@ -1743,7 +1471,6 @@ function WithdrawFlow({
1743
1471
  targetToken,
1744
1472
  amount: _nullishCoalesce(storeApi.getState().amount, () => ( "0")),
1745
1473
  directTransfer: isSameRoute,
1746
- waitForFinalTx,
1747
1474
  service,
1748
1475
  flowLabel: "withdraw",
1749
1476
  onClose,
@@ -1767,7 +1494,7 @@ function deriveStepView(step, _registration) {
1767
1494
  // src/WithdrawModal.tsx
1768
1495
 
1769
1496
  var ReownWithdrawInner = _react.lazy.call(void 0,
1770
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-IP4MOGER.cjs"))).then((m) => ({
1497
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-Z5JVENP6.cjs"))).then((m) => ({
1771
1498
  default: m.WithdrawModalReown
1772
1499
  }))
1773
1500
  );
@@ -1795,11 +1522,10 @@ function WithdrawModalInner({
1795
1522
  inline,
1796
1523
  closeOnOverlayClick,
1797
1524
  allowedRoutes,
1798
- backendUrl = _chunkIVTXEYB2cjs.DEFAULT_BACKEND_URL,
1799
- signerAddress = _chunkIVTXEYB2cjs.DEFAULT_SIGNER_ADDRESS,
1525
+ backendUrl = _chunk7JIDIX27cjs.DEFAULT_BACKEND_URL,
1526
+ signerAddress = _chunk7JIDIX27cjs.DEFAULT_SIGNER_ADDRESS,
1800
1527
  sessionChainIds,
1801
1528
  forceRegister = false,
1802
- waitForFinalTx = true,
1803
1529
  reownWallet,
1804
1530
  onConnect,
1805
1531
  onDisconnect,
@@ -1815,18 +1541,18 @@ function WithdrawModalInner({
1815
1541
  debug
1816
1542
  }) {
1817
1543
  const modalRef = _react.useRef.call(void 0, null);
1818
- const onReadyRef = _chunkDCAANLEPcjs.useLatestRef.call(void 0, onReady);
1544
+ const onReadyRef = _chunk2TWQGPPBcjs.useLatestRef.call(void 0, onReady);
1819
1545
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
1820
1546
  void 0
1821
1547
  );
1822
- const targetChain = _chunkIVTXEYB2cjs.getChainId.call(void 0, targetChainProp);
1823
- const sourceChain = _chunkIVTXEYB2cjs.getChainId.call(void 0, sourceChainProp);
1548
+ const targetChain = _chunk7JIDIX27cjs.getChainId.call(void 0, targetChainProp);
1549
+ const sourceChain = _chunk7JIDIX27cjs.getChainId.call(void 0, sourceChainProp);
1824
1550
  const service = _react.useMemo.call(void 0,
1825
- () => _chunkDCAANLEPcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1551
+ () => _chunk2TWQGPPBcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1826
1552
  [backendUrl, debug]
1827
1553
  );
1828
1554
  const store = _react.useMemo.call(void 0, () => createWithdrawStore(), []);
1829
- const onErrorRef = _chunkDCAANLEPcjs.useLatestRef.call(void 0, onError);
1555
+ const onErrorRef = _chunk2TWQGPPBcjs.useLatestRef.call(void 0, onError);
1830
1556
  _react.useEffect.call(void 0, () => {
1831
1557
  if (isOpen && onSignTransaction && !dappAddress) {
1832
1558
  _optionalChain([onErrorRef, 'access', _62 => _62.current, 'optionalCall', _63 => _63({
@@ -1837,7 +1563,7 @@ function WithdrawModalInner({
1837
1563
  }, [isOpen, onSignTransaction, dappAddress, onErrorRef]);
1838
1564
  _react.useEffect.call(void 0, () => {
1839
1565
  if (isOpen && modalRef.current) {
1840
- _chunkDCAANLEPcjs.applyTheme.call(void 0, modalRef.current, theme);
1566
+ _chunk2TWQGPPBcjs.applyTheme.call(void 0, modalRef.current, theme);
1841
1567
  }
1842
1568
  }, [isOpen, theme]);
1843
1569
  _react.useEffect.call(void 0, () => {
@@ -1856,7 +1582,7 @@ function WithdrawModalInner({
1856
1582
  const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _66 => _66.showBackButton]), () => ( true));
1857
1583
  const canGoBack = backHandler !== void 0;
1858
1584
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1859
- _chunkDCAANLEPcjs.Modal,
1585
+ _chunk2TWQGPPBcjs.Modal,
1860
1586
  {
1861
1587
  isOpen,
1862
1588
  onClose,
@@ -1872,7 +1598,7 @@ function WithdrawModalInner({
1872
1598
  className: "rs-modal-header-back",
1873
1599
  "aria-label": "Go back",
1874
1600
  onClick: backHandler,
1875
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDCAANLEPcjs.ChevronLeftIcon, {})
1601
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TWQGPPBcjs.ChevronLeftIcon, {})
1876
1602
  }
1877
1603
  ) }),
1878
1604
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1882,7 +1608,7 @@ function WithdrawModalInner({
1882
1608
  onClick: onClose,
1883
1609
  className: "rs-modal-close",
1884
1610
  "aria-label": "Close",
1885
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDCAANLEPcjs.CloseIcon, {})
1611
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TWQGPPBcjs.CloseIcon, {})
1886
1612
  }
1887
1613
  ) })
1888
1614
  ] }),
@@ -1904,7 +1630,6 @@ function WithdrawModalInner({
1904
1630
  signerAddress,
1905
1631
  sessionChainIds,
1906
1632
  forceRegister,
1907
- waitForFinalTx,
1908
1633
  reownWallet,
1909
1634
  onConnect,
1910
1635
  onDisconnect,