@rhinestone/deposit-modal 0.0.0-dev-20260727165236 → 0.0.0-dev-20260727175848

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +20 -3
  2. package/dist/{DepositModalReown-EI63MROO.cjs → DepositModalReown-33D36CMP.cjs} +13 -12
  3. package/dist/{DepositModalReown-ZU3CPDTC.mjs → DepositModalReown-U3YSVVNC.mjs} +7 -6
  4. package/dist/{chunk-UOO6V5WZ.cjs → chunk-44HXNZSA.cjs} +83 -82
  5. package/dist/chunk-CLR3HPCT.mjs +6 -0
  6. package/dist/chunk-EGB3NWML.cjs +809 -0
  7. package/dist/{chunk-YVI7Q7P7.mjs → chunk-GDYWSTQK.mjs} +921 -1181
  8. package/dist/{chunk-VXYJ432Q.mjs → chunk-IWAI6VZ2.mjs} +123 -54
  9. package/dist/chunk-KZGITCZT.mjs +809 -0
  10. package/dist/chunk-LMBTPDLB.cjs +6 -0
  11. package/dist/{chunk-YNRJ643P.mjs → chunk-N5226HLL.mjs} +22 -17
  12. package/dist/{chunk-CU65HAN5.cjs → chunk-O4CZI63F.cjs} +63 -165
  13. package/dist/{chunk-O35FIERS.cjs → chunk-QRRL4SL5.cjs} +120 -51
  14. package/dist/{chunk-L4EOEP42.mjs → chunk-R3XTKCJD.mjs} +10 -9
  15. package/dist/{chunk-GQXT6UL7.mjs → chunk-UD6JF6ME.mjs} +3 -2
  16. package/dist/{chunk-VULYPMCV.cjs → chunk-UWRBNFZX.cjs} +88 -83
  17. package/dist/{chunk-QYYGX36T.cjs → chunk-VDKPQKAE.cjs} +828 -1088
  18. package/dist/{chunk-WRSITJQ2.mjs → chunk-VHKTHX3U.mjs} +5 -107
  19. package/dist/{chunk-XBNXKZHQ.cjs → chunk-W3WWC4LD.cjs} +6 -2
  20. package/dist/{chunk-OMREKQB2.mjs → chunk-YJP274QC.mjs} +5 -1
  21. package/dist/{chunk-UKN74GQZ.cjs → chunk-YMV3HHPR.cjs} +4 -3
  22. package/dist/claim.cjs +6 -5
  23. package/dist/claim.d.cts +3 -3
  24. package/dist/claim.d.ts +3 -3
  25. package/dist/claim.mjs +5 -4
  26. package/dist/constants.cjs +4 -2
  27. package/dist/constants.d.cts +1 -1
  28. package/dist/constants.d.ts +1 -1
  29. package/dist/constants.mjs +4 -2
  30. package/dist/deposit.cjs +8 -7
  31. package/dist/deposit.d.cts +2 -2
  32. package/dist/deposit.d.ts +2 -2
  33. package/dist/deposit.mjs +7 -6
  34. package/dist/index.cjs +10 -9
  35. package/dist/index.d.cts +1 -1
  36. package/dist/index.d.ts +1 -1
  37. package/dist/index.mjs +9 -8
  38. package/dist/polymarket.cjs +5 -4
  39. package/dist/polymarket.mjs +2 -1
  40. package/dist/styles.css +16 -2
  41. package/dist/{types-Cuyhz25e.d.cts → types-vpysc9yQ.d.cts} +1 -4
  42. package/dist/{types-Cuyhz25e.d.ts → types-vpysc9yQ.d.ts} +1 -4
  43. package/dist/withdraw.cjs +6 -5
  44. package/dist/withdraw.d.cts +2 -2
  45. package/dist/withdraw.d.ts +2 -2
  46. package/dist/withdraw.mjs +5 -4
  47. package/package.json +2 -1
  48. package/dist/chunk-G5JWMTDR.mjs +0 -802
  49. package/dist/chunk-YGBHFYTW.cjs +0 -802
package/README.md CHANGED
@@ -8,6 +8,24 @@ React modal for cross-chain deposits and withdrawals via Rhinestone smart accoun
8
8
  npm install @rhinestone/deposit-modal viem
9
9
  ```
10
10
 
11
+ ### Content Security Policy
12
+
13
+ Every logo the modal renders — chain, token, exchange, card-network, wallet and
14
+ dapp marks — is served from Rhinestone's public asset CDN. **A host with an
15
+ explicit `img-src` policy must allow it:**
16
+
17
+ ```
18
+ img-src 'self' data: https://s3.rhinestone.dev;
19
+ ```
20
+
21
+ Omit this and icons render blank — image loads fail silently, so there is no
22
+ console error pointing at the CSP. Hosts without an explicit `img-src` (or with
23
+ `img-src *`) need no change.
24
+
25
+ > Before v0.9 these marks were inlined as `data:` URIs, so `data:` alone was
26
+ > sufficient. They now come from the CDN, which drops ~20 kB (brotli) from the
27
+ > bundle and gives every Rhinestone surface one source of truth.
28
+
11
29
  ## Example
12
30
 
13
31
  ```tsx
@@ -80,7 +98,7 @@ The user picks the destination chain, token, recipient, and amount in the modal;
80
98
 
81
99
  ## Claim a failed deposit
82
100
 
83
- `ClaimModal` lets a user get a failed or rejected EVM deposit sent back to them on its source chain. They paste the deposit's transaction hash and name a destination — **no wallet connection is involved at any point**.
101
+ `ClaimModal` lets a user get a failed or rejected EVM deposit sent back to them on its source chain. They paste the deposit's transaction hash and name a destination — **no wallet connection is involved at any point**, and there is no chain to pick: the hash is looked up across every chain, including ones the deposit flow itself doesn't list.
84
102
 
85
103
  ```tsx
86
104
  import { ClaimModal } from "@rhinestone/deposit-modal/claim";
@@ -89,8 +107,7 @@ import { ClaimModal } from "@rhinestone/deposit-modal/claim";
89
107
  isOpen={claimOpen}
90
108
  onClose={() => setClaimOpen(false)}
91
109
  refundEndpoint="/api/refund"
92
- // Optional lookup/destination prefills:
93
- defaultSourceChain={42161}
110
+ // Optional prefills:
94
111
  defaultTxHash={depositTxHash}
95
112
  onLifecycle={(event) => console.log(event)}
96
113
  />
@@ -1,17 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkQYYGX36Tcjs = require('./chunk-QYYGX36T.cjs');
4
- require('./chunk-VULYPMCV.cjs');
5
- require('./chunk-UKN74GQZ.cjs');
3
+ var _chunkVDKPQKAEcjs = require('./chunk-VDKPQKAE.cjs');
4
+ require('./chunk-UWRBNFZX.cjs');
5
+ require('./chunk-YMV3HHPR.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkO35FIERScjs = require('./chunk-O35FIERS.cjs');
9
+ var _chunkQRRL4SL5cjs = require('./chunk-QRRL4SL5.cjs');
10
+ require('./chunk-LMBTPDLB.cjs');
11
+ require('./chunk-W3WWC4LD.cjs');
10
12
 
11
13
 
12
14
 
13
- var _chunkYGBHFYTWcjs = require('./chunk-YGBHFYTW.cjs');
14
- require('./chunk-XBNXKZHQ.cjs');
15
+ var _chunkEGB3NWMLcjs = require('./chunk-EGB3NWML.cjs');
15
16
 
16
17
  // src/DepositModalReown.tsx
17
18
  var _react = require('react');
@@ -68,7 +69,7 @@ var APPKIT_NETWORK_BY_ID = {
68
69
  [_networks.katana.id]: _networks.katana,
69
70
  [_networks.hyperEvm.id]: _networks.hyperEvm
70
71
  };
71
- var EVM_NETWORKS = _chunkYGBHFYTWcjs.SUPPORTED_CHAINS.map((chain) => {
72
+ var EVM_NETWORKS = _chunkEGB3NWMLcjs.SUPPORTED_CHAINS.map((chain) => {
72
73
  const network = APPKIT_NETWORK_BY_ID[chain.id];
73
74
  if (!network) {
74
75
  throw new Error(
@@ -87,14 +88,14 @@ function buildTransports(rpcUrls) {
87
88
  const transports = {};
88
89
  for (const network of EVM_NETWORKS) {
89
90
  const id = Number(network.id);
90
- transports[id] = _viem.http.call(void 0, _chunkO35FIERScjs.rpcUrlFor.call(void 0, rpcUrls, id));
91
+ transports[id] = _viem.http.call(void 0, _chunkQRRL4SL5cjs.rpcUrlFor.call(void 0, rpcUrls, id));
91
92
  }
92
93
  return transports;
93
94
  }
94
95
  function getEvmRpcFingerprint(rpcUrls) {
95
96
  return EVM_NETWORKS.map((network) => {
96
97
  const id = Number(network.id);
97
- return `${id}=${_nullishCoalesce(_chunkO35FIERScjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
98
+ return `${id}=${_nullishCoalesce(_chunkQRRL4SL5cjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
98
99
  }).join("|");
99
100
  }
100
101
  var cachedAdapter = null;
@@ -188,9 +189,9 @@ function useReownWallet() {
188
189
  await switchChainAsync({ chainId });
189
190
  }
190
191
  } catch (err) {
191
- if (_chunkO35FIERScjs.isUnsupportedChainSwitchError.call(void 0, err)) {
192
+ if (_chunkQRRL4SL5cjs.isUnsupportedChainSwitchError.call(void 0, err)) {
192
193
  throw new Error(
193
- `Switch to ${_chunkYGBHFYTWcjs.getChainName.call(void 0, chainId)} in your wallet to continue`
194
+ `Switch to ${_chunkEGB3NWMLcjs.getChainName.call(void 0, chainId)} in your wallet to continue`
194
195
  );
195
196
  }
196
197
  throw err;
@@ -225,7 +226,7 @@ function DepositModalWithReown(props) {
225
226
  reown.disconnect();
226
227
  }, [reown.disconnect]);
227
228
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
228
- _chunkQYYGX36Tcjs.DepositModalInner,
229
+ _chunkVDKPQKAEcjs.DepositModalInner,
229
230
  {
230
231
  ...props,
231
232
  reownWallet: reownWithSolana,
@@ -1,17 +1,18 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-YVI7Q7P7.mjs";
4
- import "./chunk-YNRJ643P.mjs";
5
- import "./chunk-GQXT6UL7.mjs";
3
+ } from "./chunk-GDYWSTQK.mjs";
4
+ import "./chunk-N5226HLL.mjs";
5
+ import "./chunk-UD6JF6ME.mjs";
6
6
  import {
7
7
  isUnsupportedChainSwitchError,
8
8
  rpcUrlFor
9
- } from "./chunk-VXYJ432Q.mjs";
9
+ } from "./chunk-IWAI6VZ2.mjs";
10
+ import "./chunk-CLR3HPCT.mjs";
11
+ import "./chunk-YJP274QC.mjs";
10
12
  import {
11
13
  SUPPORTED_CHAINS,
12
14
  getChainName
13
- } from "./chunk-G5JWMTDR.mjs";
14
- import "./chunk-OMREKQB2.mjs";
15
+ } from "./chunk-KZGITCZT.mjs";
15
16
 
16
17
  // src/DepositModalReown.tsx
17
18
  import { useCallback, useMemo } from "react";
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkVULYPMCVcjs = require('./chunk-VULYPMCV.cjs');
6
+ var _chunkUWRBNFZXcjs = require('./chunk-UWRBNFZX.cjs');
7
7
 
8
8
 
9
9
 
@@ -31,8 +31,8 @@ var _chunkVULYPMCVcjs = require('./chunk-VULYPMCV.cjs');
31
31
 
32
32
 
33
33
 
34
- var _chunkO35FIERScjs = require('./chunk-O35FIERS.cjs');
35
34
 
35
+ var _chunkQRRL4SL5cjs = require('./chunk-QRRL4SL5.cjs');
36
36
 
37
37
 
38
38
 
@@ -43,7 +43,8 @@ var _chunkO35FIERScjs = require('./chunk-O35FIERS.cjs');
43
43
 
44
44
 
45
45
 
46
- var _chunkYGBHFYTWcjs = require('./chunk-YGBHFYTW.cjs');
46
+
47
+ var _chunkEGB3NWMLcjs = require('./chunk-EGB3NWML.cjs');
47
48
 
48
49
  // src/WithdrawModal.tsx
49
50
  var _react = require('react');
@@ -230,8 +231,8 @@ function WithdrawFormStep({
230
231
  const publicClientChainId = _optionalChain([publicClient, 'access', _ => _.chain, 'optionalAccess', _2 => _2.id]);
231
232
  useClickOutside(chainDropdownRef, () => setShowChainDropdown(false));
232
233
  useClickOutside(tokenDropdownRef, () => setShowTokenDropdown(false));
233
- const targetSymbol = _chunkYGBHFYTWcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
234
- const targetChainName = _chunkYGBHFYTWcjs.getChainName.call(void 0, targetChain);
234
+ const targetSymbol = _chunkEGB3NWMLcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
235
+ const targetChainName = _chunkEGB3NWMLcjs.getChainName.call(void 0, targetChain);
235
236
  const isBusy = submitting || isSubmitting;
236
237
  const seededRecipientRef = _react.useRef.call(void 0, _nullishCoalesce(defaultRecipient, () => ( "")));
237
238
  _react.useEffect.call(void 0, () => {
@@ -255,7 +256,7 @@ function WithdrawFormStep({
255
256
  return;
256
257
  }
257
258
  try {
258
- const bal = _chunkO35FIERScjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: accountAddress }) : await publicClient.readContract({
259
+ const bal = _chunkQRRL4SL5cjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: accountAddress }) : await publicClient.readContract({
259
260
  address: asset.token,
260
261
  abi: _viem.erc20Abi,
261
262
  functionName: "balanceOf",
@@ -360,7 +361,7 @@ function WithdrawFormStep({
360
361
  await onSubmit(recipient, amount);
361
362
  } catch (err) {
362
363
  const raw = err instanceof Error ? err.message : "Withdrawal failed";
363
- setError(_chunkO35FIERScjs.formatUserError.call(void 0, raw));
364
+ setError(_chunkQRRL4SL5cjs.formatUserError.call(void 0, raw));
364
365
  } finally {
365
366
  setIsSubmitting(false);
366
367
  }
@@ -376,16 +377,16 @@ function WithdrawFormStep({
376
377
  if (isBalanceLoading) {
377
378
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
378
379
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-withdraw-loading", children: [
379
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO35FIERScjs.Spinner, { className: "rs-spinner--lg" }),
380
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.Spinner, { className: "rs-spinner--lg" }),
380
381
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
381
382
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: "Please wait before withdrawing." })
382
383
  ] }),
383
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO35FIERScjs.PoweredBy, {})
384
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.PoweredBy, {})
384
385
  ] });
385
386
  }
386
387
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
387
388
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body", children: [
388
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO35FIERScjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO35FIERScjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
389
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.CircleArrowOutUpLeftIcon, {}), title: "Withdraw" }),
389
390
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-section", children: [
390
391
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
391
392
  "label",
@@ -445,7 +446,7 @@ function WithdrawFormStep({
445
446
  ) })
446
447
  ] }),
447
448
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
448
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? `~${_chunkO35FIERScjs.currencyFormatter.format(amountUsd)}` : "$0.00" }),
449
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? `~${_chunkQRRL4SL5cjs.currencyFormatter.format(amountUsd)}` : "$0.00" }),
449
450
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
450
451
  "Balance: ",
451
452
  formattedBalance,
@@ -475,10 +476,10 @@ function WithdrawFormStep({
475
476
  },
476
477
  children: [
477
478
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
478
- _chunkYGBHFYTWcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
479
- "img",
479
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
480
+ _chunkQRRL4SL5cjs.CdnIcon,
480
481
  {
481
- src: _chunkYGBHFYTWcjs.getChainIcon.call(void 0, targetChain),
482
+ src: _chunkEGB3NWMLcjs.getChainIcon.call(void 0, targetChain),
482
483
  alt: targetChainName,
483
484
  className: "rs-withdraw-dropdown-icon"
484
485
  }
@@ -486,7 +487,7 @@ function WithdrawFormStep({
486
487
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName })
487
488
  ] }),
488
489
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
489
- _chunkO35FIERScjs.ChevronDownIcon,
490
+ _chunkQRRL4SL5cjs.ChevronDownIcon,
490
491
  {
491
492
  className: "rs-withdraw-dropdown-arrow",
492
493
  style: {
@@ -507,10 +508,10 @@ function WithdrawFormStep({
507
508
  setShowChainDropdown(false);
508
509
  },
509
510
  children: [
510
- _chunkYGBHFYTWcjs.getChainIcon.call(void 0, chain.id) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
511
- "img",
511
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
512
+ _chunkQRRL4SL5cjs.CdnIcon,
512
513
  {
513
- src: _chunkYGBHFYTWcjs.getChainIcon.call(void 0, chain.id),
514
+ src: _chunkEGB3NWMLcjs.getChainIcon.call(void 0, chain.id),
514
515
  alt: chain.name,
515
516
  className: "rs-withdraw-dropdown-icon"
516
517
  }
@@ -545,7 +546,7 @@ function WithdrawFormStep({
545
546
  children: [
546
547
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
547
548
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
548
- _chunkO35FIERScjs.TokenIcon,
549
+ _chunkQRRL4SL5cjs.TokenIcon,
549
550
  {
550
551
  symbol: targetSymbol,
551
552
  className: "rs-withdraw-dropdown-icon"
@@ -554,7 +555,7 @@ function WithdrawFormStep({
554
555
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetSymbol })
555
556
  ] }),
556
557
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
557
- _chunkO35FIERScjs.ChevronDownIcon,
558
+ _chunkQRRL4SL5cjs.ChevronDownIcon,
558
559
  {
559
560
  className: "rs-withdraw-dropdown-arrow",
560
561
  style: {
@@ -576,7 +577,7 @@ function WithdrawFormStep({
576
577
  },
577
578
  children: [
578
579
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
579
- _chunkO35FIERScjs.TokenIcon,
580
+ _chunkQRRL4SL5cjs.TokenIcon,
580
581
  {
581
582
  symbol: option.symbol,
582
583
  className: "rs-withdraw-dropdown-icon"
@@ -592,10 +593,10 @@ function WithdrawFormStep({
592
593
  )
593
594
  ] })
594
595
  ] }),
595
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO35FIERScjs.Callout, { variant: "error", children: error }),
596
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO35FIERScjs.Callout, { variant: "error", children: registrationError }),
596
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.Callout, { variant: "error", children: error }),
597
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.Callout, { variant: "error", children: registrationError }),
597
598
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
598
- _chunkO35FIERScjs.Button,
599
+ _chunkQRRL4SL5cjs.Button,
599
600
  {
600
601
  onClick: handleWithdraw,
601
602
  fullWidth: true,
@@ -605,7 +606,7 @@ function WithdrawFormStep({
605
606
  }
606
607
  )
607
608
  ] }),
608
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO35FIERScjs.PoweredBy, {})
609
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.PoweredBy, {})
609
610
  ] });
610
611
  }
611
612
  WithdrawFormStep.displayName = "WithdrawFormStep";
@@ -633,22 +634,22 @@ function WithdrawReviewStep({
633
634
  }) {
634
635
  const [isSubmitting, setIsSubmitting] = _react.useState.call(void 0, false);
635
636
  const [error, setError] = _react.useState.call(void 0, null);
636
- const sourceChainName = _chunkYGBHFYTWcjs.getChainName.call(void 0, sourceChain);
637
- const sourceChainIcon = _chunkYGBHFYTWcjs.getChainIcon.call(void 0, sourceChain);
638
- const targetSymbol = _chunkYGBHFYTWcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
639
- const targetChainName = _chunkYGBHFYTWcjs.getChainName.call(void 0, targetChain);
640
- const targetChainIcon = _chunkYGBHFYTWcjs.getChainIcon.call(void 0, targetChain);
637
+ const sourceChainName = _chunkEGB3NWMLcjs.getChainName.call(void 0, sourceChain);
638
+ const sourceChainIcon = _chunkEGB3NWMLcjs.getChainIcon.call(void 0, sourceChain);
639
+ const targetSymbol = _chunkEGB3NWMLcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
640
+ const targetChainName = _chunkEGB3NWMLcjs.getChainName.call(void 0, targetChain);
641
+ const targetChainIcon = _chunkEGB3NWMLcjs.getChainIcon.call(void 0, targetChain);
641
642
  const amountNumber = Number(amount);
642
- const formattedSendAmount = _nullishCoalesce(_chunkO35FIERScjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
643
- const prices = _chunkVULYPMCVcjs.useTokenPrices.call(void 0, service, [
643
+ const formattedSendAmount = _nullishCoalesce(_chunkQRRL4SL5cjs.formatTokenAmount.call(void 0, amountNumber, sourceSymbol), () => ( amount));
644
+ const prices = _chunkUWRBNFZXcjs.useTokenPrices.call(void 0, service, [
644
645
  { chainId: sourceChain, address: sourceToken, symbol: sourceSymbol },
645
646
  { chainId: targetChain, address: targetToken, symbol: targetSymbol }
646
647
  ]);
647
- const receiveDisplay = _nullishCoalesce(_chunkO35FIERScjs.formatReceiveEstimate.call(void 0, {
648
+ const receiveDisplay = _nullishCoalesce(_chunkQRRL4SL5cjs.formatReceiveEstimate.call(void 0, {
648
649
  sourceAmount: Number.isFinite(amountNumber) ? amountNumber : void 0,
649
650
  sourceSymbol,
650
651
  targetSymbol,
651
- sourceTrusted: _chunkO35FIERScjs.isRecognizedToken.call(void 0, sourceToken, sourceChain),
652
+ sourceTrusted: _chunkQRRL4SL5cjs.isRecognizedToken.call(void 0, sourceToken, sourceChain),
652
653
  prices
653
654
  }), () => ( // No price for the target token — an honest dash beats a wrong number.
654
655
  "\u2014"));
@@ -659,7 +660,7 @@ function WithdrawReviewStep({
659
660
  await onConfirm();
660
661
  } catch (err) {
661
662
  const raw = err instanceof Error ? err.message : "Withdraw failed";
662
- const message = _chunkO35FIERScjs.formatUserError.call(void 0, raw);
663
+ const message = _chunkQRRL4SL5cjs.formatUserError.call(void 0, raw);
663
664
  setError(message);
664
665
  _optionalChain([onError, 'optionalCall', _7 => _7(message, "WITHDRAW_REVIEW_ERROR")]);
665
666
  } finally {
@@ -670,9 +671,9 @@ function WithdrawReviewStep({
670
671
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
671
672
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
672
673
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
673
- _chunkO35FIERScjs.BodyHeader,
674
+ _chunkQRRL4SL5cjs.BodyHeader,
674
675
  {
675
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO35FIERScjs.CircleArrowOutUpLeftIcon, {}),
676
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.CircleArrowOutUpLeftIcon, {}),
676
677
  title: "Review withdrawal"
677
678
  }
678
679
  ),
@@ -685,14 +686,14 @@ function WithdrawReviewStep({
685
686
  " ",
686
687
  sourceSymbol
687
688
  ] }),
688
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO35FIERScjs.TokenIcon, { symbol: sourceSymbol }) })
689
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.TokenIcon, { symbol: sourceSymbol }) })
689
690
  ] })
690
691
  ] }),
691
692
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
692
693
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
693
694
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
694
695
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
695
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: sourceChainIcon, alt: "" }) })
696
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.CdnIcon, { src: sourceChainIcon }) })
696
697
  ] })
697
698
  ] }),
698
699
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -703,14 +704,14 @@ function WithdrawReviewStep({
703
704
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Receive" }),
704
705
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
705
706
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
706
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO35FIERScjs.TokenIcon, { symbol: targetSymbol }) })
707
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.TokenIcon, { symbol: targetSymbol }) })
707
708
  ] })
708
709
  ] }),
709
710
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
710
711
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
711
712
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
712
713
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
713
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: targetChainIcon, alt: "" }) })
714
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.CdnIcon, { src: targetChainIcon }) })
714
715
  ] })
715
716
  ] }),
716
717
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -718,10 +719,10 @@ function WithdrawReviewStep({
718
719
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: estimatedTime })
719
720
  ] })
720
721
  ] }),
721
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO35FIERScjs.Callout, { variant: "error", children: error }),
722
- !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO35FIERScjs.Callout, { variant: "error", children: registrationError }),
722
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.Callout, { variant: "error", children: error }),
723
+ !error && registrationError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.Callout, { variant: "error", children: registrationError }),
723
724
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
724
- _chunkO35FIERScjs.Button,
725
+ _chunkQRRL4SL5cjs.Button,
725
726
  {
726
727
  onClick: handleConfirm,
727
728
  loading: isSubmitting,
@@ -732,7 +733,7 @@ function WithdrawReviewStep({
732
733
  }
733
734
  )
734
735
  ] }),
735
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO35FIERScjs.PoweredBy, {})
736
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.PoweredBy, {})
736
737
  ] });
737
738
  }
738
739
  WithdrawReviewStep.displayName = "WithdrawReviewStep";
@@ -766,11 +767,11 @@ function WithdrawFlow({
766
767
  onError,
767
768
  debug
768
769
  }) {
769
- const rpcUrls = _chunkO35FIERScjs.useRpcUrls.call(void 0, );
770
- const onStepChangeRef = _chunkO35FIERScjs.useLatestRef.call(void 0, onStepChange);
771
- const onEventRef = _chunkO35FIERScjs.useLatestRef.call(void 0, onEvent);
772
- const onLifecycleRef = _chunkO35FIERScjs.useLatestRef.call(void 0, onLifecycle);
773
- const onErrorRef = _chunkO35FIERScjs.useLatestRef.call(void 0, onError);
770
+ const rpcUrls = _chunkQRRL4SL5cjs.useRpcUrls.call(void 0, );
771
+ const onStepChangeRef = _chunkQRRL4SL5cjs.useLatestRef.call(void 0, onStepChange);
772
+ const onEventRef = _chunkQRRL4SL5cjs.useLatestRef.call(void 0, onEvent);
773
+ const onLifecycleRef = _chunkQRRL4SL5cjs.useLatestRef.call(void 0, onLifecycle);
774
+ const onErrorRef = _chunkQRRL4SL5cjs.useLatestRef.call(void 0, onError);
774
775
  const isFlowActiveRef = _react.useRef.call(void 0, true);
775
776
  const submitGenerationRef = _react.useRef.call(void 0, 0);
776
777
  _react.useEffect.call(void 0, () => {
@@ -781,13 +782,13 @@ function WithdrawFlow({
781
782
  }, []);
782
783
  const logFlow = _react.useCallback.call(void 0,
783
784
  (message, data) => {
784
- _chunkO35FIERScjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
785
+ _chunkQRRL4SL5cjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
785
786
  },
786
787
  [debug]
787
788
  );
788
789
  const logFlowError = _react.useCallback.call(void 0,
789
790
  (message, error, data) => {
790
- _chunkO35FIERScjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
791
+ _chunkQRRL4SL5cjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
791
792
  },
792
793
  [debug]
793
794
  );
@@ -809,7 +810,7 @@ function WithdrawFlow({
809
810
  const flowStep = useWithdrawStore((s) => s.step);
810
811
  const reviewedRecipient = useWithdrawStore((s) => s.recipient);
811
812
  const publicClient = _react.useMemo.call(void 0,
812
- () => _chunkVULYPMCVcjs.getPublicClient.call(void 0, sourceChain, rpcUrls),
813
+ () => _chunkUWRBNFZXcjs.getPublicClient.call(void 0, sourceChain, rpcUrls),
813
814
  [sourceChain, rpcUrls]
814
815
  );
815
816
  const recipientForRegistration = _react.useMemo.call(void 0, () => {
@@ -837,7 +838,7 @@ function WithdrawFlow({
837
838
  targetToken,
838
839
  recipient: recipientForRegistration
839
840
  });
840
- const salt = _chunkVULYPMCVcjs.deriveAccountSalt.call(void 0, {
841
+ const salt = _chunkUWRBNFZXcjs.deriveAccountSalt.call(void 0, {
841
842
  recipient: recipientForRegistration,
842
843
  targetChain,
843
844
  targetToken
@@ -845,7 +846,7 @@ function WithdrawFlow({
845
846
  const { evmDepositAddress } = await service.registerManagedAccount({
846
847
  salt,
847
848
  target: {
848
- chain: _chunkYGBHFYTWcjs.targetChainToCaip2.call(void 0, targetChain),
849
+ chain: _chunkEGB3NWMLcjs.targetChainToCaip2.call(void 0, targetChain),
849
850
  token: targetToken,
850
851
  recipient: recipientForRegistration
851
852
  }
@@ -867,7 +868,7 @@ function WithdrawFlow({
867
868
  } catch (err) {
868
869
  if (cancelled) return;
869
870
  const raw = err instanceof Error ? err.message : "Registration failed";
870
- const message = _chunkO35FIERScjs.formatUserError.call(void 0, raw);
871
+ const message = _chunkQRRL4SL5cjs.formatUserError.call(void 0, raw);
871
872
  logFlowError("auto-register:failed", err, {
872
873
  accountAddress,
873
874
  targetChain,
@@ -898,10 +899,10 @@ function WithdrawFlow({
898
899
  onErrorRef
899
900
  ]);
900
901
  const asset = _react.useMemo.call(void 0, () => {
901
- const symbol = _chunkYGBHFYTWcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
902
- const decimals = _chunkYGBHFYTWcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
902
+ const symbol = _chunkEGB3NWMLcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
903
+ const decimals = _chunkEGB3NWMLcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
903
904
  return {
904
- id: _chunkO35FIERScjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
905
+ id: _chunkQRRL4SL5cjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
905
906
  chainId: sourceChain,
906
907
  token: sourceToken,
907
908
  symbol,
@@ -909,7 +910,7 @@ function WithdrawFlow({
909
910
  decimals
910
911
  };
911
912
  }, [sourceChain, sourceToken]);
912
- const isSourceNative = sourceToken.toLowerCase() === _chunkYGBHFYTWcjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
913
+ const isSourceNative = sourceToken.toLowerCase() === _chunkEGB3NWMLcjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
913
914
  const isSameRoute = targetChain === sourceChain && targetToken.toLowerCase() === sourceToken.toLowerCase();
914
915
  const reviewedTarget = reviewedRecipient ? {
915
916
  chain: targetChain,
@@ -934,8 +935,8 @@ function WithdrawFlow({
934
935
  }
935
936
  if (lastStepOpenEventKeyRef.current === "form") return;
936
937
  lastStepOpenEventKeyRef.current = "form";
937
- const tokenSymbol = _chunkYGBHFYTWcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
938
- const chainName = _chunkYGBHFYTWcjs.getChainName.call(void 0, targetChain);
938
+ const tokenSymbol = _chunkEGB3NWMLcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
939
+ const chainName = _chunkEGB3NWMLcjs.getChainName.call(void 0, targetChain);
939
940
  _optionalChain([onEventRef, 'access', _20 => _20.current, 'optionalCall', _21 => _21({
940
941
  type: "withdraw_modal_select_amount_open",
941
942
  pred_balance: totalBalanceUsd,
@@ -970,8 +971,8 @@ function WithdrawFlow({
970
971
  );
971
972
  const handleFormContinue = _react.useCallback.call(void 0,
972
973
  (recipient, amountValue) => {
973
- const tokenSymbol = _chunkYGBHFYTWcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
974
- const chainName = _chunkYGBHFYTWcjs.getChainName.call(void 0, targetChain);
974
+ const tokenSymbol = _chunkEGB3NWMLcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
975
+ const chainName = _chunkEGB3NWMLcjs.getChainName.call(void 0, targetChain);
975
976
  _optionalChain([onEventRef, 'access', _24 => _24.current, 'optionalCall', _25 => _25({
976
977
  type: "withdraw_modal_select_amount_cta_click",
977
978
  pred_balance: totalBalanceUsd,
@@ -1081,7 +1082,7 @@ function WithdrawFlow({
1081
1082
  targetChain,
1082
1083
  targetToken
1083
1084
  });
1084
- handleError(_chunkO35FIERScjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1085
+ handleError(_chunkQRRL4SL5cjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1085
1086
  throw err;
1086
1087
  }
1087
1088
  },
@@ -1143,9 +1144,9 @@ function WithdrawFlow({
1143
1144
  [_optionalChain([allowedRoutes, 'optionalAccess', _36 => _36.sourceTokens])]
1144
1145
  );
1145
1146
  const targetChainOptions = _react.useMemo.call(void 0, () => {
1146
- return _chunkYGBHFYTWcjs.SOURCE_CHAINS.filter((chain) => {
1147
+ return _chunkEGB3NWMLcjs.SOURCE_CHAINS.filter((chain) => {
1147
1148
  if (allowedChainSet && !allowedChainSet.has(chain.id)) return false;
1148
- const tokens = _chunkYGBHFYTWcjs.getSupportedTargetTokens.call(void 0, chain.id);
1149
+ const tokens = _chunkEGB3NWMLcjs.getSupportedTargetTokens.call(void 0, chain.id);
1149
1150
  if (allowedTokenSet) {
1150
1151
  return tokens.some((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
1151
1152
  }
@@ -1153,7 +1154,7 @@ function WithdrawFlow({
1153
1154
  });
1154
1155
  }, [allowedChainSet, allowedTokenSet]);
1155
1156
  const targetTokenOptions = _react.useMemo.call(void 0, () => {
1156
- const tokens = _chunkYGBHFYTWcjs.getSupportedTargetTokens.call(void 0, targetChain);
1157
+ const tokens = _chunkEGB3NWMLcjs.getSupportedTargetTokens.call(void 0, targetChain);
1157
1158
  if (!allowedTokenSet) return tokens;
1158
1159
  return tokens.filter((t) => allowedTokenSet.has(t.symbol.toUpperCase()));
1159
1160
  }, [targetChain, allowedTokenSet]);
@@ -1167,7 +1168,7 @@ function WithdrawFlow({
1167
1168
  const handleTargetChainChange = _react.useCallback.call(void 0,
1168
1169
  (chainId) => {
1169
1170
  setTargetChain(chainId);
1170
- let options = _chunkYGBHFYTWcjs.getSupportedTargetTokens.call(void 0, chainId);
1171
+ let options = _chunkEGB3NWMLcjs.getSupportedTargetTokens.call(void 0, chainId);
1171
1172
  if (allowedTokenSet) {
1172
1173
  options = options.filter(
1173
1174
  (t) => allowedTokenSet.has(t.symbol.toUpperCase())
@@ -1229,7 +1230,7 @@ function WithdrawFlow({
1229
1230
  }
1230
1231
  ),
1231
1232
  stepView === "processing" && registration.kind !== "idle" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1232
- _chunkVULYPMCVcjs.ProcessingStep,
1233
+ _chunkUWRBNFZXcjs.ProcessingStep,
1233
1234
  {
1234
1235
  smartAccount: _nullishCoalesce(storeApi.getState().processingSmartAccount, () => ( (registration.kind === "ready" || registration.kind === "stale" ? registration.smartAccount : "0x0"))),
1235
1236
  txHash: _nullishCoalesce(storeApi.getState().txHash, () => ( "0x0")),
@@ -1283,7 +1284,7 @@ function WithdrawModal({
1283
1284
  inline,
1284
1285
  closeOnOverlayClick,
1285
1286
  allowedRoutes,
1286
- backendUrl = _chunkYGBHFYTWcjs.DEFAULT_BACKEND_URL,
1287
+ backendUrl = _chunkEGB3NWMLcjs.DEFAULT_BACKEND_URL,
1287
1288
  rpcUrls: rpcUrlsProp,
1288
1289
  forceRegister = false,
1289
1290
  onSendTransaction,
@@ -1297,19 +1298,19 @@ function WithdrawModal({
1297
1298
  debug
1298
1299
  }) {
1299
1300
  const modalRef = _react.useRef.call(void 0, null);
1300
- const onReadyRef = _chunkO35FIERScjs.useLatestRef.call(void 0, onReady);
1301
+ const onReadyRef = _chunkQRRL4SL5cjs.useLatestRef.call(void 0, onReady);
1301
1302
  const [backHandler, setBackHandler] = _react.useState.call(void 0,
1302
1303
  void 0
1303
1304
  );
1304
- const targetChain = _chunkYGBHFYTWcjs.getChainId.call(void 0, targetChainProp);
1305
- const sourceChain = _chunkYGBHFYTWcjs.getChainId.call(void 0, sourceChainProp);
1306
- const rpcUrls = _chunkO35FIERScjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
1305
+ const targetChain = _chunkEGB3NWMLcjs.getChainId.call(void 0, targetChainProp);
1306
+ const sourceChain = _chunkEGB3NWMLcjs.getChainId.call(void 0, sourceChainProp);
1307
+ const rpcUrls = _chunkQRRL4SL5cjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
1307
1308
  const service = _react.useMemo.call(void 0,
1308
- () => _chunkO35FIERScjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1309
+ () => _chunkQRRL4SL5cjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1309
1310
  [backendUrl, debug]
1310
1311
  );
1311
1312
  const store = _react.useMemo.call(void 0, () => createWithdrawStore(), []);
1312
- const onErrorRef = _chunkO35FIERScjs.useLatestRef.call(void 0, onError);
1313
+ const onErrorRef = _chunkQRRL4SL5cjs.useLatestRef.call(void 0, onError);
1313
1314
  _react.useEffect.call(void 0, () => {
1314
1315
  if (isOpen && typeof onSendTransaction !== "function") {
1315
1316
  _optionalChain([onErrorRef, 'access', _37 => _37.current, 'optionalCall', _38 => _38({
@@ -1320,7 +1321,7 @@ function WithdrawModal({
1320
1321
  }, [isOpen, onSendTransaction, onErrorRef]);
1321
1322
  _react.useEffect.call(void 0, () => {
1322
1323
  if (isOpen && modalRef.current) {
1323
- _chunkO35FIERScjs.applyTheme.call(void 0, modalRef.current, theme);
1324
+ _chunkQRRL4SL5cjs.applyTheme.call(void 0, modalRef.current, theme);
1324
1325
  }
1325
1326
  }, [isOpen, theme]);
1326
1327
  _react.useEffect.call(void 0, () => {
@@ -1338,8 +1339,8 @@ function WithdrawModal({
1338
1339
  }, []);
1339
1340
  const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _41 => _41.showBackButton]), () => ( true));
1340
1341
  const canGoBack = backHandler !== void 0;
1341
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO35FIERScjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1342
- _chunkO35FIERScjs.Modal,
1342
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WithdrawStoreProvider, { store, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1343
+ _chunkQRRL4SL5cjs.Modal,
1343
1344
  {
1344
1345
  isOpen,
1345
1346
  onClose,
@@ -1355,7 +1356,7 @@ function WithdrawModal({
1355
1356
  className: "rs-modal-header-back",
1356
1357
  "aria-label": "Go back",
1357
1358
  onClick: backHandler,
1358
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO35FIERScjs.ChevronLeftIcon, {})
1359
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.ChevronLeftIcon, {})
1359
1360
  }
1360
1361
  ) }),
1361
1362
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1365,7 +1366,7 @@ function WithdrawModal({
1365
1366
  onClick: onClose,
1366
1367
  className: "rs-modal-close",
1367
1368
  "aria-label": "Close",
1368
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO35FIERScjs.CloseIcon, {})
1369
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.CloseIcon, {})
1369
1370
  }
1370
1371
  ) })
1371
1372
  ] }),