@rhinestone/deposit-modal 0.1.38 → 0.1.39

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.
@@ -6,7 +6,8 @@ import {
6
6
  mainnet,
7
7
  optimism,
8
8
  plasma,
9
- polygon
9
+ polygon,
10
+ soneium
10
11
  } from "viem/chains";
11
12
  var DEFAULT_BACKEND_URL = "https://v1.orchestrator.rhinestone.dev/deposit-widget";
12
13
  var DEFAULT_SIGNER_ADDRESS = "0x177bfcdd15bc01e99013dcc5d2b09cd87a18ce9c";
@@ -18,12 +19,13 @@ var ALL_CHAINS_BY_ID = {
18
19
  [arbitrum.id]: arbitrum,
19
20
  [polygon.id]: polygon,
20
21
  [bsc.id]: bsc,
21
- [plasma.id]: plasma
22
+ [plasma.id]: plasma,
23
+ [soneium.id]: soneium
22
24
  };
23
25
  var SUPPORTED_TOKEN_MATRIX = {
24
- ETH: [mainnet.id, base.id, arbitrum.id, optimism.id, polygon.id],
25
- WETH: [mainnet.id, base.id, arbitrum.id, optimism.id, polygon.id],
26
- USDC: [mainnet.id, base.id, arbitrum.id, optimism.id, polygon.id],
26
+ ETH: [mainnet.id, base.id, arbitrum.id, optimism.id, polygon.id, soneium.id],
27
+ WETH: [mainnet.id, base.id, arbitrum.id, optimism.id, polygon.id, soneium.id],
28
+ USDC: [mainnet.id, base.id, arbitrum.id, optimism.id, polygon.id, soneium.id],
27
29
  USDT: [mainnet.id, arbitrum.id, polygon.id, bsc.id, plasma.id]
28
30
  };
29
31
  var CHAIN_DISPLAY_ORDER = [
@@ -33,7 +35,8 @@ var CHAIN_DISPLAY_ORDER = [
33
35
  optimism.id,
34
36
  polygon.id,
35
37
  bsc.id,
36
- plasma.id
38
+ plasma.id,
39
+ soneium.id
37
40
  ];
38
41
  var supportedChainSet = /* @__PURE__ */ new Set();
39
42
  for (const chainIds of Object.values(SUPPORTED_TOKEN_MATRIX)) {
@@ -193,6 +196,22 @@ var chainRegistry = {
193
196
  decimals: 6
194
197
  }
195
198
  ]
199
+ },
200
+ [soneium.id]: {
201
+ name: soneium.name,
202
+ tokens: [
203
+ { symbol: "ETH", address: NATIVE_TOKEN_ADDRESS, decimals: 18 },
204
+ {
205
+ symbol: "USDC",
206
+ address: "0xbA9986D2381edf1DA03B0B9c1f8b00dc4AacC369",
207
+ decimals: 6
208
+ },
209
+ {
210
+ symbol: "WETH",
211
+ address: "0x4200000000000000000000000000000000000006",
212
+ decimals: 18
213
+ }
214
+ ]
196
215
  }
197
216
  };
198
217
  function getChainId(chain) {
@@ -364,7 +383,8 @@ var CHAIN_BADGES = {
364
383
  [arbitrum.id]: { shortLabel: "Arb", color: "#28A0F0", bg: "#E6F6FF" },
365
384
  [polygon.id]: { shortLabel: "Matic", color: "#8247E5", bg: "#EFE7FF" },
366
385
  [bsc.id]: { shortLabel: "BSC", color: "#F3BA2F", bg: "#FFF8E0" },
367
- [plasma.id]: { shortLabel: "Plasma", color: "#6C47FF", bg: "#EDE7FF" }
386
+ [plasma.id]: { shortLabel: "Plasma", color: "#6C47FF", bg: "#EDE7FF" },
387
+ [soneium.id]: { shortLabel: "Soneium", color: "#0D0D0D", bg: "#E8E8E8" }
368
388
  };
369
389
  function getChainName(chainId) {
370
390
  const chain = CHAIN_BY_ID[chainId];
@@ -400,6 +420,7 @@ var CHAIN_ICONS = {
400
420
  [arbitrum.id]: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2500 2500'%3E%3Crect width='2500' height='2500' fill='none'/%3E%3Cpath fill='%23213147' d='M226%2C760v980c0%2C63%2C33%2C120%2C88%2C152l849%2C490c54%2C31%2C121%2C31%2C175%2C0l849-490c54-31%2C88-89%2C88-152V760c0-63-33-120-88-152l-849-490c-54-31-121-31-175%2C0L314%2C608c-54%2C31-87%2C89-87%2C152H226z'/%3E%3Cpath fill='%2312AAFF' d='M1435%2C1440l-121%2C332c-3%2C9-3%2C19%2C0%2C29l208%2C571l241-139l-289-793C1467%2C1422%2C1442%2C1422%2C1435%2C1440z'/%3E%3Cpath fill='%2312AAFF' d='M1678%2C882c-7-18-32-18-39%2C0l-121%2C332c-3%2C9-3%2C19%2C0%2C29l341%2C935l241-139L1678%2C883V882z'/%3E%3Cpath fill='%239DCCED' d='M1250%2C155c6%2C0%2C12%2C2%2C17%2C5l918%2C530c11%2C6%2C17%2C18%2C17%2C30v1060c0%2C12-7%2C24-17%2C30l-918%2C530c-5%2C3-11%2C5-17%2C5s-12-2-17-5l-918-530c-11-6-17-18-17-30V719c0-12%2C7-24%2C17-30l918-530c5-3%2C11-5%2C17-5V155z M1250%2C0c-33%2C0-65%2C8-95%2C25L237%2C555c-59%2C34-95%2C96-95%2C164v1060c0%2C68%2C36%2C130%2C95%2C164l918%2C530c29%2C17%2C62%2C25%2C95%2C25s65-8%2C95-25l918-530c59-34%2C95-96%2C95-164V719c0-68-36-130-95-164L1344%2C25c-29-17-62-25-95-25H1250z'/%3E%3Cpolygon fill='%23213147' points='642%2C2179 727%2C1947 897%2C2088 738%2C2234'/%3E%3Cpath fill='%23FFFFFF' d='M1172%2C644H939c-17%2C0-33%2C11-39%2C27L401%2C2039l241%2C139l550-1507c5-14-5-28-19-28H1172z'/%3E%3Cpath fill='%23FFFFFF' d='M1580%2C644h-233c-17%2C0-33%2C11-39%2C27L738%2C2233l241%2C139l620-1701c5-14-5-28-19-28V644z'/%3E%3C/svg%3E",
401
421
  [polygon.id]: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 178 161'%3E%3Cpath fill='%236C00F6' d='M66.8%2C54.7l-16.7-9.7L0%2C74.1v58l50.1%2C29l50.1-29V41.9L128%2C25.8l27.8%2C16.1v32.2L128%2C90.2l-16.7-9.7v25.8l16.7%2C9.7l50.1-29V29L128%2C0L77.9%2C29v90.2l-27.8%2C16.1l-27.8-16.1V86.9l27.8-16.1l16.7%2C9.7V54.7z'/%3E%3C/svg%3E",
402
422
  [bsc.id]: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2496 2496'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%23F0B90B' d='M1248%2C0c689.3%2C0%2C1248%2C558.7%2C1248%2C1248s-558.7%2C1248-1248%2C1248S0%2C1937.3%2C0%2C1248S558.7%2C0%2C1248%2C0z'/%3E%3Cpath fill='%23FFFFFF' d='M685.9%2C1248l0.9%2C330l280.4%2C165v193.2l-444.5-260.7v-524L685.9%2C1248z M685.9%2C918v192.3l-163.3-96.6V821.4l163.3-96.6l164.1%2C96.6L685.9%2C918z M1084.3%2C821.4l163.3-96.6l164.1%2C96.6L1247.6%2C918L1084.3%2C821.4z'/%3E%3Cpath fill='%23FFFFFF' d='M803.9%2C1509.6v-193.2l163.3%2C96.6v192.3L803.9%2C1509.6z M1084.3%2C1812.2l163.3%2C96.6l164.1-96.6v192.3l-164.1%2C96.6l-163.3-96.6V1812.2z M1645.9%2C821.4l163.3-96.6l164.1%2C96.6v192.3l-164.1%2C96.6V918L1645.9%2C821.4z M1809.2%2C1578l0.9-330l163.3-96.6v524l-444.5%2C260.7v-193.2L1809.2%2C1578z'/%3E%3Cpolygon fill='%23FFFFFF' points='1692.1%2C1509.6 1528.8%2C1605.3 1528.8%2C1413 1692.1%2C1316.4 1692.1%2C1509.6'/%3E%3Cpath fill='%23FFFFFF' d='M1692.1%2C986.4l0.9%2C193.2l-281.2%2C165v330.8l-163.3%2C95.7l-163.3-95.7v-330.8l-281.2-165V986.4L968%2C889.8l279.5%2C165.8l281.2-165.8l164.1%2C96.6H1692.1z M803.9%2C656.5l443.7-261.6l444.5%2C261.6l-163.3%2C96.6l-281.2-165.8L967.2%2C753.1L803.9%2C656.5z'/%3E%3C/svg%3E",
423
+ [soneium.id]: "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M13.153 16.867a4.99 4.99 0 0 1-4.69-1.32 4.845 4.845 0 0 1-.784-6.031 8.4 8.4 0 0 1 1.359-1.677c1.66-1.655 4.707-4.667 4.707-4.667A9 9 0 0 0 7.177 4.4a9.013 9.013 0 0 0-3.003 12.05 9 9 0 0 0 5.22 4.175z'/%3E%3Cpath fill='%23000' d='M10.839 7.136a4.98 4.98 0 0 1 4.69 1.321c1.644 1.647 1.965 4.09.778 6.022a8.5 8.5 0 0 1-1.36 1.68c-1.66 1.652-4.707 4.666-4.707 4.666a9 9 0 0 0 6.578-1.221 9.01 9.01 0 0 0 3.005-12.062A9 9 0 0 0 14.59 3.37z'/%3E%3C/svg%3E",
403
424
  [plasma.id]: "data:image/svg+xml,%3Csvg width='166' height='166' viewBox='0 0 166 166' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='166' height='166' fill='%23162F29'/%3E%3Cpath d='M133 83.268C133 83.7749 132.993 84.2819 132.978 84.7888H108.659V83.6808H85.2523C85.2523 83.449 85.2596 83.2173 85.2596 82.9928C85.2596 82.7682 85.2596 82.5293 85.2523 82.3047H108.659V81.2039H132.957C132.986 81.8919 133 82.58 133 83.268ZM84.8395 78.2781L107.747 75.4609L107.884 76.5617L132.073 73.5852C131.841 72.3974 131.566 71.2242 131.255 70.0727L107.442 73.0058L107.58 74.1066L84.5643 76.9383C84.6657 77.3873 84.7598 77.8363 84.8395 78.2926V78.2781ZM83.6446 73.8459L105.538 68.378L105.806 69.4499L129.039 63.6489C128.561 62.5264 128.046 61.4183 127.496 60.3392L104.944 65.9736L105.212 67.0455L83.1376 72.564C83.3187 72.9913 83.4852 73.4186 83.6446 73.8531V73.8459ZM81.7036 69.6961L102.17 61.9687L102.561 63.0043L124.215 54.8279C123.513 53.7995 122.774 52.8001 121.992 51.8297L101.294 59.644L101.685 60.6796L80.9722 68.5012C81.2257 68.8922 81.4719 69.2906 81.7036 69.6961ZM79.0168 65.8578L97.0933 56.4357L97.6002 57.4206L117.589 46.9991C116.669 46.1083 115.713 45.261 114.728 44.4426L95.9418 54.2341L96.4487 55.219L78.0681 64.8004C78.3867 65.148 78.7054 65.4957 79.0096 65.8578H79.0168ZM74.657 61.7152L91.0243 51.3082L91.6182 52.2425L109.68 40.7564C108.543 40.0322 107.384 39.3586 106.189 38.7286L89.699 49.2152L90.2929 50.1495L73.4548 60.8534C73.8676 61.1286 74.2659 61.4183 74.6642 61.7152H74.657ZM70.7897 59.2963L84.5064 48.0492L85.2089 48.9038L100.656 36.23C99.3456 35.7303 97.9985 35.2813 96.637 34.8902L82.9348 46.1301L83.6373 46.9846L69.4209 58.6446C69.8844 58.8473 70.3407 59.0646 70.7897 59.2963ZM65.6695 57.3048L76.5038 46.5211L77.2787 47.3033L91.0461 33.6228C89.5542 33.3766 88.0406 33.1955 86.5052 33.0797L74.7656 44.7613L75.5406 45.5435L64.0979 56.9282C64.6266 57.0368 65.148 57.1599 65.6695 57.3048ZM59.6802 56.3995L68.3201 45.9273L69.1747 46.6298L80.4218 33C78.7126 33.0797 77.0252 33.2462 75.3667 33.4925L66.4082 44.3485L67.2627 45.051L57.9058 56.3922C58.1666 56.385 58.4345 56.3777 58.6952 56.3777C59.0284 56.3777 59.3543 56.3778 59.6802 56.3922V56.3995ZM54.502 56.7109L61.1576 46.4125L62.0846 47.0136L70.1306 34.5571C68.2911 35.0351 66.4951 35.6144 64.7425 36.2879L59.0791 45.0582L60.0061 45.6593L52.6335 57.073C53.2491 56.9282 53.872 56.805 54.502 56.7036V56.7109ZM48.7517 58.3114L53.5388 49.3384L54.5093 49.8598L60.8462 37.9899C58.8111 38.982 56.8557 40.1046 54.9873 41.3502L51.3444 48.1724L52.3221 48.6938L46.6877 59.2529C47.354 58.9125 48.042 58.6011 48.7445 58.3187L48.7517 58.3114ZM44.6237 60.4189L46.6587 54.6396L47.7016 55.009L51.6559 43.7836C49.6498 45.3769 47.7668 47.115 46.0214 48.9907L44.3195 53.8213L45.3624 54.1906L42.6973 61.7515C43.3201 61.2807 43.9574 60.8389 44.6165 60.4261L44.6237 60.4189ZM39.5469 64.5542L40.445 60.3537L41.524 60.5855L43.3346 52.1266C41.4299 54.5455 39.7425 57.1454 38.3013 59.8902L39.1052 60.064L37.4539 67.0165C38.0985 66.1547 38.801 65.3291 39.5469 64.5542ZM35.8172 69.4644V63.9024C34.4702 67.4583 33.5142 71.8833 33 76.2213C33.6301 73.8169 34.586 71.5501 35.8172 69.4644ZM33.0362 89.909C33.5649 93.6098 34.4919 97.1802 35.781 100.577V96.4704C34.5933 94.4426 33.659 92.241 33.0362 89.909ZM37.6278 99.2152L39.0689 105.936L38.2651 106.11C39.7063 108.862 41.3937 111.455 43.2984 113.873L41.4878 105.415L40.4087 105.646L39.4962 101.395C38.8372 100.7 38.2071 99.9757 37.6278 99.208V99.2152ZM42.6466 104.212L45.3262 111.817L44.2833 112.186L45.9852 117.017C47.7306 118.892 49.6136 120.63 51.6196 122.224L47.6654 110.998L46.6225 111.368L44.5802 105.559C43.9212 105.139 43.2767 104.698 42.6538 104.227L42.6466 104.212ZM46.6443 106.725L52.2932 117.313L51.3155 117.835L54.9583 124.657C56.8268 125.903 58.7822 127.025 60.8172 128.017L54.4803 116.147L53.5026 116.669L48.701 107.674C47.9985 107.392 47.3105 107.073 46.637 106.733L46.6443 106.725ZM52.5901 108.913L59.9699 120.341L59.0429 120.942L64.7063 129.712C66.4589 130.386 68.2549 130.965 70.0944 131.443L62.0484 118.986L61.1214 119.587L54.4586 109.275C53.8285 109.173 53.1984 109.05 52.5828 108.905L52.5901 108.913ZM57.8624 109.608L67.2193 120.949L66.3647 121.652L75.3233 132.508C76.9817 132.754 78.6692 132.92 80.3783 133L69.1312 119.363L68.2766 120.065L59.6367 109.593C59.3253 109.608 59.0067 109.608 58.688 109.608C58.4128 109.608 58.1304 109.608 57.8552 109.593L57.8624 109.608ZM64.0689 109.072L75.5043 120.449L74.7294 121.231L86.469 132.913C88.0043 132.797 89.518 132.616 91.0098 132.37L77.2497 118.682L76.4676 119.472L65.6405 108.695C65.1263 108.833 64.5976 108.963 64.0689 109.072ZM69.3992 107.37L83.6011 119.023L82.8986 119.877L96.6008 131.117C97.9623 130.726 99.3094 130.277 100.62 129.777L85.1654 117.103L84.4629 117.958L70.7607 106.718C70.3117 106.95 69.8554 107.167 69.3919 107.37H69.3992ZM73.4258 105.154L90.2422 115.851L89.6483 116.785L106.139 127.271C107.334 126.641 108.5 125.961 109.629 125.244L91.5675 113.758L90.9736 114.692L74.628 104.299C74.2297 104.596 73.8314 104.886 73.4186 105.161L73.4258 105.154ZM78.0608 101.214L96.4198 110.781L95.9128 111.766L114.699 121.557C115.684 120.739 116.64 119.892 117.56 119.001L97.5713 108.579L97.0643 109.564L79.0096 100.157C78.7054 100.519 78.394 100.874 78.0681 101.214H78.0608ZM80.9649 97.5061L101.649 105.32L101.258 106.356L121.956 114.17C122.731 113.2 123.469 112.2 124.179 111.172L102.525 102.996L102.134 104.031L81.6964 96.3111C81.4646 96.7167 81.2184 97.115 80.9649 97.5061ZM83.1304 93.4505L105.168 98.9545L104.9 100.026L127.452 105.661C128.01 104.582 128.524 103.474 129.002 102.351L105.769 96.5501L105.501 97.622L83.6373 92.1614C83.478 92.5959 83.3042 93.0232 83.1304 93.4505ZM84.5643 89.0762L107.544 91.9006L107.406 93.0014L131.218 95.9345C131.53 94.7758 131.805 93.6026 132.037 92.4221L107.848 89.4455L107.71 90.5463L84.8395 87.7291C84.7598 88.1854 84.6657 88.6344 84.5643 89.0834V89.0762Z' fill='white'/%3E%3C/svg%3E"
404
425
  };
405
426
  var TOKEN_ICONS = {
@@ -7,7 +7,7 @@ import {
7
7
  getTokenAddress,
8
8
  getTokenDecimalsByAddress,
9
9
  getTokenSymbol
10
- } from "./chunk-ZL4KPLWE.mjs";
10
+ } from "./chunk-I7RYTI4G.mjs";
11
11
 
12
12
  // src/components/ui/Modal.tsx
13
13
  import {
@@ -995,6 +995,30 @@ function isRecord(value) {
995
995
  function asString(value) {
996
996
  return typeof value === "string" ? value : void 0;
997
997
  }
998
+ function asNumber(value) {
999
+ if (typeof value === "number" && Number.isFinite(value)) return value;
1000
+ if (typeof value !== "string") return void 0;
1001
+ const trimmed = value.trim();
1002
+ if (!trimmed) return void 0;
1003
+ const caipMatch = trimmed.match(/^eip155:(\d+)$/);
1004
+ if (caipMatch?.[1]) {
1005
+ const parsed2 = Number(caipMatch[1]);
1006
+ return Number.isFinite(parsed2) ? parsed2 : void 0;
1007
+ }
1008
+ const parsed = Number(trimmed);
1009
+ return Number.isFinite(parsed) ? parsed : void 0;
1010
+ }
1011
+ function asAmount(value) {
1012
+ if (typeof value === "string") return value;
1013
+ if (typeof value === "number" && Number.isFinite(value)) {
1014
+ return value.toString();
1015
+ }
1016
+ return void 0;
1017
+ }
1018
+ function asAddress(value) {
1019
+ if (typeof value !== "string") return void 0;
1020
+ return /^0x[a-fA-F0-9]{40}$/.test(value) ? value : void 0;
1021
+ }
998
1022
  function getEventTxHash(event) {
999
1023
  if (!event?.type) return void 0;
1000
1024
  if (event.type === "deposit-received") {
@@ -1012,8 +1036,28 @@ function getEventTxHash(event) {
1012
1036
  }
1013
1037
  return void 0;
1014
1038
  }
1039
+ function getEventSourceDetails(event) {
1040
+ if (!event?.type || !isRecord(event.data)) return {};
1041
+ if (event.type === "deposit-received") {
1042
+ return {
1043
+ chainId: asNumber(event.data.chain),
1044
+ amount: asAmount(event.data.amount),
1045
+ token: asAddress(event.data.token)
1046
+ };
1047
+ }
1048
+ const source = isRecord(event.data.source) ? event.data.source : void 0;
1049
+ const deposit = isRecord(event.data.deposit) ? event.data.deposit : void 0;
1050
+ if (event.type === "bridge-started" || event.type === "bridge-complete" || event.type === "bridge-failed" || event.type === "error") {
1051
+ return {
1052
+ chainId: asNumber(source?.chain) ?? asNumber(deposit?.chain),
1053
+ amount: asAmount(source?.amount) ?? asAmount(deposit?.amount),
1054
+ token: asAddress(source?.asset) ?? asAddress(deposit?.asset) ?? asAddress(deposit?.token)
1055
+ };
1056
+ }
1057
+ return {};
1058
+ }
1015
1059
  function isDepositEvent(event) {
1016
- return event?.type === "deposit-received" || event?.type === "bridge-started";
1060
+ return event?.type === "deposit-received" || event?.type === "bridge-started" || event?.type === "bridge-complete" || event?.type === "bridge-failed" || event?.type === "error";
1017
1061
  }
1018
1062
 
1019
1063
  // src/components/steps/ProcessingStep.tsx
@@ -1209,7 +1253,11 @@ function ProcessingStep({
1209
1253
  const flowNoun = flowLabel === "withdraw" ? "withdrawal" : "deposit";
1210
1254
  const flowCapitalized = flowLabel === "withdraw" ? "Withdrawal" : "Deposit";
1211
1255
  const destinationTxHash = lastEvent?.data?.destination?.transactionHash || null;
1212
- const sourceExplorerUrl = getExplorerTxUrl(sourceChain, txHash);
1256
+ const sourceDetails = getEventSourceDetails(lastEvent);
1257
+ const displaySourceChain = sourceDetails.chainId ?? sourceChain;
1258
+ const displaySourceToken = sourceDetails.token ?? sourceToken;
1259
+ const displayAmount = sourceDetails.amount ?? amount;
1260
+ const sourceExplorerUrl = getExplorerTxUrl(displaySourceChain, txHash);
1213
1261
  const destExplorerUrl = destinationTxHash ? getExplorerTxUrl(targetChain, destinationTxHash) : null;
1214
1262
  const truncateHash = (hash) => `${hash.slice(0, 10)}...${hash.slice(-8)}`;
1215
1263
  const formatElapsedTime = (seconds) => {
@@ -1218,16 +1266,19 @@ function ProcessingStep({
1218
1266
  const secs = seconds % 60;
1219
1267
  return `${mins}m ${secs}s`;
1220
1268
  };
1221
- const sourceSymbol = getTokenSymbol(sourceToken, sourceChain);
1222
- const sourceDecimals = getTokenDecimalsByAddress(sourceToken, sourceChain);
1269
+ const sourceSymbol = getTokenSymbol(displaySourceToken, displaySourceChain);
1270
+ const sourceDecimals = getTokenDecimalsByAddress(
1271
+ displaySourceToken,
1272
+ displaySourceChain
1273
+ );
1223
1274
  const formattedReceivedAmount = (() => {
1224
1275
  try {
1225
- const raw = formatUnits(BigInt(amount), sourceDecimals);
1276
+ const raw = formatUnits(BigInt(displayAmount), sourceDecimals);
1226
1277
  const numeric = Number(raw);
1227
1278
  if (!Number.isFinite(numeric)) return raw;
1228
1279
  return numeric.toLocaleString("en-US", { maximumFractionDigits: 6 });
1229
1280
  } catch {
1230
- return Number(amount).toLocaleString("en-US", {
1281
+ return Number(displayAmount).toLocaleString("en-US", {
1231
1282
  maximumFractionDigits: 6
1232
1283
  });
1233
1284
  }
@@ -1290,15 +1341,15 @@ function ProcessingStep({
1290
1341
  className: "rs-card-value",
1291
1342
  style: { display: "flex", alignItems: "center", gap: 6 },
1292
1343
  children: [
1293
- getChainIcon(sourceChain) && /* @__PURE__ */ jsx7(
1344
+ getChainIcon(displaySourceChain) && /* @__PURE__ */ jsx7(
1294
1345
  "img",
1295
1346
  {
1296
- src: getChainIcon(sourceChain),
1347
+ src: getChainIcon(displaySourceChain),
1297
1348
  alt: "",
1298
1349
  style: { width: 14, height: 14, borderRadius: "50%" }
1299
1350
  }
1300
1351
  ),
1301
- getChainName(sourceChain)
1352
+ getChainName(displaySourceChain)
1302
1353
  ]
1303
1354
  }
1304
1355
  )
@@ -1497,15 +1548,15 @@ function ProcessingStep({
1497
1548
  className: "rs-card-value",
1498
1549
  style: { display: "flex", alignItems: "center", gap: 8 },
1499
1550
  children: [
1500
- getChainIcon(sourceChain) && /* @__PURE__ */ jsx7(
1551
+ getChainIcon(displaySourceChain) && /* @__PURE__ */ jsx7(
1501
1552
  "img",
1502
1553
  {
1503
- src: getChainIcon(sourceChain),
1554
+ src: getChainIcon(displaySourceChain),
1504
1555
  alt: "",
1505
1556
  style: { width: 16, height: 16, borderRadius: "50%" }
1506
1557
  }
1507
1558
  ),
1508
- getChainName(sourceChain)
1559
+ getChainName(displaySourceChain)
1509
1560
  ]
1510
1561
  }
1511
1562
  )
@@ -1608,6 +1659,7 @@ export {
1608
1659
  tokenFormatter,
1609
1660
  formatUserError,
1610
1661
  getEventTxHash,
1662
+ getEventSourceDetails,
1611
1663
  isDepositEvent,
1612
1664
  ProcessingStep,
1613
1665
  getPublicClient,
@@ -17,7 +17,7 @@
17
17
 
18
18
 
19
19
 
20
- var _chunkNULE6WIIcjs = require('./chunk-NULE6WII.cjs');
20
+ var _chunkAHOFT42Hcjs = require('./chunk-AHOFT42H.cjs');
21
21
 
22
22
 
23
23
 
@@ -30,7 +30,7 @@ var _chunkNULE6WIIcjs = require('./chunk-NULE6WII.cjs');
30
30
 
31
31
 
32
32
 
33
- var _chunkHYUITBRVcjs = require('./chunk-HYUITBRV.cjs');
33
+ var _chunkFLXTBFMZcjs = require('./chunk-FLXTBFMZ.cjs');
34
34
 
35
35
  // src/WithdrawModal.tsx
36
36
 
@@ -118,8 +118,8 @@ function WithdrawFormStep({
118
118
  const chainMismatch = Boolean(
119
119
  _optionalChain([walletClient, 'optionalAccess', _3 => _3.chain, 'optionalAccess', _4 => _4.id]) && walletClient.chain.id !== asset.chainId
120
120
  );
121
- const targetSymbol = _chunkHYUITBRVcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
122
- const targetChainName = _chunkHYUITBRVcjs.getChainName.call(void 0, targetChain);
121
+ const targetSymbol = _chunkFLXTBFMZcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
122
+ const targetChainName = _chunkFLXTBFMZcjs.getChainName.call(void 0, targetChain);
123
123
  const isBusy = submitting || isSubmitting;
124
124
  const seededRecipientRef = _react.useRef.call(void 0, seededRecipient);
125
125
  _react.useEffect.call(void 0, () => {
@@ -138,7 +138,7 @@ function WithdrawFormStep({
138
138
  setIsSwitching(true);
139
139
  switchChain(asset.chainId).catch((err) => {
140
140
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
141
- setError(_chunkNULE6WIIcjs.formatUserError.call(void 0, raw));
141
+ setError(_chunkAHOFT42Hcjs.formatUserError.call(void 0, raw));
142
142
  }).finally(() => {
143
143
  setIsSwitching(false);
144
144
  });
@@ -158,7 +158,7 @@ function WithdrawFormStep({
158
158
  return;
159
159
  }
160
160
  try {
161
- const bal = _chunkNULE6WIIcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
161
+ const bal = _chunkAHOFT42Hcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
162
162
  address: asset.token,
163
163
  abi: _viem.erc20Abi,
164
164
  functionName: "balanceOf",
@@ -261,7 +261,7 @@ function WithdrawFormStep({
261
261
  await onSubmit(recipient, amount);
262
262
  } catch (err) {
263
263
  const raw = err instanceof Error ? err.message : "Withdrawal failed";
264
- setError(_chunkNULE6WIIcjs.formatUserError.call(void 0, raw));
264
+ setError(_chunkAHOFT42Hcjs.formatUserError.call(void 0, raw));
265
265
  } finally {
266
266
  setIsSubmitting(false);
267
267
  }
@@ -269,11 +269,11 @@ function WithdrawFormStep({
269
269
  if (isBalanceLoading) {
270
270
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
271
271
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-body rs-withdraw-loading", children: [
272
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNULE6WIIcjs.Spinner, { className: "rs-spinner--lg" }),
272
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHOFT42Hcjs.Spinner, { className: "rs-spinner--lg" }),
273
273
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
274
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkHYUITBRVcjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
274
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkFLXTBFMZcjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
275
275
  ] }),
276
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNULE6WIIcjs.PoweredBy, {})
276
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHOFT42Hcjs.PoweredBy, {})
277
277
  ] });
278
278
  }
279
279
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
@@ -369,7 +369,7 @@ function WithdrawFormStep({
369
369
  ] })
370
370
  ] }),
371
371
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
372
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkNULE6WIIcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
372
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkAHOFT42Hcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
373
373
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
374
374
  formattedBalance,
375
375
  " ",
@@ -397,10 +397,10 @@ function WithdrawFormStep({
397
397
  },
398
398
  children: [
399
399
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
400
- _chunkHYUITBRVcjs.getTokenIcon.call(void 0, targetSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
400
+ _chunkFLXTBFMZcjs.getTokenIcon.call(void 0, targetSymbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
401
401
  "img",
402
402
  {
403
- src: _chunkHYUITBRVcjs.getTokenIcon.call(void 0, targetSymbol),
403
+ src: _chunkFLXTBFMZcjs.getTokenIcon.call(void 0, targetSymbol),
404
404
  alt: targetSymbol,
405
405
  className: "rs-withdraw-dropdown-icon"
406
406
  }
@@ -441,10 +441,10 @@ function WithdrawFormStep({
441
441
  setShowTokenDropdown(false);
442
442
  },
443
443
  children: [
444
- _chunkHYUITBRVcjs.getTokenIcon.call(void 0, option.symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
444
+ _chunkFLXTBFMZcjs.getTokenIcon.call(void 0, option.symbol) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
445
445
  "img",
446
446
  {
447
- src: _chunkHYUITBRVcjs.getTokenIcon.call(void 0, option.symbol),
447
+ src: _chunkFLXTBFMZcjs.getTokenIcon.call(void 0, option.symbol),
448
448
  alt: option.symbol,
449
449
  className: "rs-withdraw-dropdown-icon"
450
450
  }
@@ -477,10 +477,10 @@ function WithdrawFormStep({
477
477
  },
478
478
  children: [
479
479
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-dropdown-value", children: [
480
- _chunkHYUITBRVcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
480
+ _chunkFLXTBFMZcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
481
481
  "img",
482
482
  {
483
- src: _chunkHYUITBRVcjs.getChainIcon.call(void 0, targetChain),
483
+ src: _chunkFLXTBFMZcjs.getChainIcon.call(void 0, targetChain),
484
484
  alt: targetChainName,
485
485
  className: "rs-withdraw-dropdown-icon"
486
486
  }
@@ -521,10 +521,10 @@ function WithdrawFormStep({
521
521
  setShowChainDropdown(false);
522
522
  },
523
523
  children: [
524
- _chunkHYUITBRVcjs.getChainIcon.call(void 0, chain.id) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
524
+ _chunkFLXTBFMZcjs.getChainIcon.call(void 0, chain.id) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
525
525
  "img",
526
526
  {
527
- src: _chunkHYUITBRVcjs.getChainIcon.call(void 0, chain.id),
527
+ src: _chunkFLXTBFMZcjs.getChainIcon.call(void 0, chain.id),
528
528
  alt: chain.name,
529
529
  className: "rs-withdraw-dropdown-icon"
530
530
  }
@@ -539,7 +539,7 @@ function WithdrawFormStep({
539
539
  )
540
540
  ] })
541
541
  ] }),
542
- chainMismatch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch-text", children: isSwitching ? `Switching to ${_chunkHYUITBRVcjs.getChainName.call(void 0, asset.chainId)}...` : `Switch to ${_chunkHYUITBRVcjs.getChainName.call(void 0, asset.chainId)} to continue.` }) }),
542
+ chainMismatch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-chain-switch-text", children: isSwitching ? `Switching to ${_chunkFLXTBFMZcjs.getChainName.call(void 0, asset.chainId)}...` : `Switch to ${_chunkFLXTBFMZcjs.getChainName.call(void 0, asset.chainId)} to continue.` }) }),
543
543
  error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-error", children: [
544
544
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
545
545
  "svg",
@@ -562,7 +562,7 @@ function WithdrawFormStep({
562
562
  ] })
563
563
  ] }),
564
564
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
565
- _chunkNULE6WIIcjs.Button,
565
+ _chunkAHOFT42Hcjs.Button,
566
566
  {
567
567
  onClick: handleWithdraw,
568
568
  fullWidth: true,
@@ -571,7 +571,7 @@ function WithdrawFormStep({
571
571
  children: isBusy ? "Preparing..." : "Withdraw"
572
572
  }
573
573
  ) }),
574
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNULE6WIIcjs.PoweredBy, {})
574
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHOFT42Hcjs.PoweredBy, {})
575
575
  ] });
576
576
  }
577
577
  WithdrawFormStep.displayName = "WithdrawFormStep";
@@ -654,7 +654,7 @@ async function executeSafeEthTransfer(params) {
654
654
  throw new Error("Wallet not connected");
655
655
  }
656
656
  if (chain.id !== chainId) {
657
- throw new Error(`Switch to ${_chunkHYUITBRVcjs.getChainName.call(void 0, chainId)} to sign`);
657
+ throw new Error(`Switch to ${_chunkFLXTBFMZcjs.getChainName.call(void 0, chainId)} to sign`);
658
658
  }
659
659
  const isOwner = await publicClient.readContract({
660
660
  address: safeAddress,
@@ -737,7 +737,7 @@ async function executeSafeErc20Transfer(params) {
737
737
  throw new Error("Wallet not connected");
738
738
  }
739
739
  if (chain.id !== chainId) {
740
- throw new Error(`Switch to ${_chunkHYUITBRVcjs.getChainName.call(void 0, chainId)} to sign`);
740
+ throw new Error(`Switch to ${_chunkFLXTBFMZcjs.getChainName.call(void 0, chainId)} to sign`);
741
741
  }
742
742
  const isOwner = await publicClient.readContract({
743
743
  address: safeAddress,
@@ -876,7 +876,7 @@ function WithdrawFlow({
876
876
  recipient: defaultRecipient,
877
877
  amount: defaultAmount,
878
878
  service,
879
- signerAddress = _chunkHYUITBRVcjs.DEFAULT_SIGNER_ADDRESS,
879
+ signerAddress = _chunkFLXTBFMZcjs.DEFAULT_SIGNER_ADDRESS,
880
880
  sessionChainIds,
881
881
  forceRegister = false,
882
882
  waitForFinalTx = true,
@@ -949,14 +949,14 @@ function WithdrawFlow({
949
949
  return {
950
950
  ownerAddress: dappAddress,
951
951
  walletClient: _nullishCoalesce(dappWalletClient, () => ( void 0)),
952
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkNULE6WIIcjs.getPublicClient.call(void 0, sourceChain))),
952
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkAHOFT42Hcjs.getPublicClient.call(void 0, sourceChain))),
953
953
  switchChain: dappSwitchChain
954
954
  };
955
955
  }
956
956
  return {
957
957
  ownerAddress: dappWalletClient.account.address,
958
958
  walletClient: dappWalletClient,
959
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkNULE6WIIcjs.getPublicClient.call(void 0, sourceChain))),
959
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkAHOFT42Hcjs.getPublicClient.call(void 0, sourceChain))),
960
960
  switchChain: dappSwitchChain
961
961
  };
962
962
  }
@@ -965,7 +965,7 @@ function WithdrawFlow({
965
965
  return {
966
966
  ownerAddress: dappWalletClient.account.address,
967
967
  walletClient: dappWalletClient,
968
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkNULE6WIIcjs.getPublicClient.call(void 0, sourceChain))),
968
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkAHOFT42Hcjs.getPublicClient.call(void 0, sourceChain))),
969
969
  switchChain: dappSwitchChain
970
970
  };
971
971
  }
@@ -991,10 +991,10 @@ function WithdrawFlow({
991
991
  sourceChain
992
992
  ]);
993
993
  const asset = _react.useMemo.call(void 0, () => {
994
- const symbol = _chunkHYUITBRVcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
995
- const decimals = _chunkHYUITBRVcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
994
+ const symbol = _chunkFLXTBFMZcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
995
+ const decimals = _chunkFLXTBFMZcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
996
996
  return {
997
- id: _chunkNULE6WIIcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
997
+ id: _chunkAHOFT42Hcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
998
998
  chainId: sourceChain,
999
999
  token: sourceToken,
1000
1000
  symbol,
@@ -1002,7 +1002,7 @@ function WithdrawFlow({
1002
1002
  decimals
1003
1003
  };
1004
1004
  }, [sourceChain, sourceToken]);
1005
- const isSourceNative = sourceToken.toLowerCase() === _chunkHYUITBRVcjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
1005
+ const isSourceNative = sourceToken.toLowerCase() === _chunkFLXTBFMZcjs.NATIVE_TOKEN_ADDRESS.toLowerCase();
1006
1006
  const stepIndex = step.type === "form" ? 0 : 1;
1007
1007
  const currentBackHandler = void 0;
1008
1008
  _react.useEffect.call(void 0, () => {
@@ -1024,15 +1024,15 @@ function WithdrawFlow({
1024
1024
  [onError]
1025
1025
  );
1026
1026
  const resolveSessionOwner = _react.useCallback.call(void 0, async (eoaAddress) => {
1027
- const localOwner = _chunkNULE6WIIcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
1027
+ const localOwner = _chunkAHOFT42Hcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
1028
1028
  if (localOwner) {
1029
1029
  return {
1030
- account: _chunkNULE6WIIcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
1030
+ account: _chunkAHOFT42Hcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
1031
1031
  address: localOwner.address
1032
1032
  };
1033
1033
  }
1034
- const created = _chunkNULE6WIIcjs.createSessionOwnerKey.call(void 0, );
1035
- _chunkNULE6WIIcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
1034
+ const created = _chunkAHOFT42Hcjs.createSessionOwnerKey.call(void 0, );
1035
+ _chunkAHOFT42Hcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
1036
1036
  return {
1037
1037
  account: created.account,
1038
1038
  address: created.address
@@ -1076,7 +1076,7 @@ function WithdrawFlow({
1076
1076
  primaryType: typedData.primaryType,
1077
1077
  message: typedData.message
1078
1078
  });
1079
- const sessionDetails = _chunkNULE6WIIcjs.buildSessionDetails.call(void 0,
1079
+ const sessionDetails = _chunkAHOFT42Hcjs.buildSessionDetails.call(void 0,
1080
1080
  setup.sessionDetailsUnsigned,
1081
1081
  signature
1082
1082
  );
@@ -1098,7 +1098,7 @@ function WithdrawFlow({
1098
1098
  }
1099
1099
  handleConnected(ownerAddress2, smartAccount);
1100
1100
  const amountUnits = _viem.parseUnits.call(void 0, amountValue, asset.decimals);
1101
- const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _26 => _26.publicClient]), () => ( _chunkNULE6WIIcjs.getPublicClient.call(void 0, sourceChain)));
1101
+ const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _26 => _26.publicClient]), () => ( _chunkAHOFT42Hcjs.getPublicClient.call(void 0, sourceChain)));
1102
1102
  let result;
1103
1103
  if (onSignTransaction) {
1104
1104
  const transferData = isSourceNative ? { to: smartAccount, value: amountUnits, data: "0x" } : {
@@ -1166,7 +1166,7 @@ function WithdrawFlow({
1166
1166
  });
1167
1167
  } catch (err) {
1168
1168
  const raw = err instanceof Error ? err.message : "Withdraw failed";
1169
- handleError(_chunkNULE6WIIcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1169
+ handleError(_chunkAHOFT42Hcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1170
1170
  throw err;
1171
1171
  } finally {
1172
1172
  setIsSubmitting(false);
@@ -1205,12 +1205,12 @@ function WithdrawFlow({
1205
1205
  [onWithdrawFailed]
1206
1206
  );
1207
1207
  const targetChainOptions = _react.useMemo.call(void 0, () => {
1208
- return _chunkHYUITBRVcjs.SOURCE_CHAINS.filter(
1209
- (chain) => _chunkHYUITBRVcjs.getSupportedTargetTokens.call(void 0, chain.id).length > 0
1208
+ return _chunkFLXTBFMZcjs.SOURCE_CHAINS.filter(
1209
+ (chain) => _chunkFLXTBFMZcjs.getSupportedTargetTokens.call(void 0, chain.id).length > 0
1210
1210
  );
1211
1211
  }, []);
1212
1212
  const targetTokenOptions = _react.useMemo.call(void 0,
1213
- () => _chunkHYUITBRVcjs.getSupportedTargetTokens.call(void 0, targetChain),
1213
+ () => _chunkFLXTBFMZcjs.getSupportedTargetTokens.call(void 0, targetChain),
1214
1214
  [targetChain]
1215
1215
  );
1216
1216
  _react.useEffect.call(void 0, () => {
@@ -1225,7 +1225,7 @@ function WithdrawFlow({
1225
1225
  const handleTargetChainChange = _react.useCallback.call(void 0,
1226
1226
  (chainId) => {
1227
1227
  setTargetChain(chainId);
1228
- const options = _chunkHYUITBRVcjs.getSupportedTargetTokens.call(void 0, chainId);
1228
+ const options = _chunkFLXTBFMZcjs.getSupportedTargetTokens.call(void 0, chainId);
1229
1229
  if (options.length === 0) {
1230
1230
  return;
1231
1231
  }
@@ -1265,7 +1265,7 @@ function WithdrawFlow({
1265
1265
  }, [walletOptions, ownerAddress, _optionalChain([reownWallet, 'optionalAccess', _34 => _34.icon])]);
1266
1266
  if (showConnectStep) {
1267
1267
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1268
- _chunkNULE6WIIcjs.ConnectStep,
1268
+ _chunkAHOFT42Hcjs.ConnectStep,
1269
1269
  {
1270
1270
  walletOptions,
1271
1271
  selectedAddress: selectedConnectAddressEffective,
@@ -1288,7 +1288,7 @@ function WithdrawFlow({
1288
1288
  const resolvedOwnerAddress = signerContext.ownerAddress;
1289
1289
  const resolvedConnectedAddress = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _35 => _35.walletClient, 'optionalAccess', _36 => _36.account, 'optionalAccess', _37 => _37.address]), () => ( _optionalChain([reownWallet, 'optionalAccess', _38 => _38.address]))), () => ( _optionalChain([dappWalletClient, 'optionalAccess', _39 => _39.account, 'optionalAccess', _40 => _40.address]))), () => ( resolvedOwnerAddress));
1290
1290
  const resolvedDefaultRecipient = _nullishCoalesce(defaultRecipient, () => ( resolvedConnectedAddress));
1291
- const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkNULE6WIIcjs.getPublicClient.call(void 0, sourceChain)));
1291
+ const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkAHOFT42Hcjs.getPublicClient.call(void 0, sourceChain)));
1292
1292
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
1293
1293
  step.type === "form" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1294
1294
  WithdrawFormStep,
@@ -1315,7 +1315,7 @@ function WithdrawFlow({
1315
1315
  }
1316
1316
  ),
1317
1317
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1318
- _chunkNULE6WIIcjs.ProcessingStep,
1318
+ _chunkAHOFT42Hcjs.ProcessingStep,
1319
1319
  {
1320
1320
  smartAccount: step.smartAccount,
1321
1321
  txHash: step.txHash,
@@ -1340,7 +1340,7 @@ function WithdrawFlow({
1340
1340
  // src/WithdrawModal.tsx
1341
1341
 
1342
1342
  var ReownWithdrawInner = _react.lazy.call(void 0,
1343
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-OGPBUDZU.cjs"))).then((m) => ({
1343
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-2CWNDVJD.cjs"))).then((m) => ({
1344
1344
  default: m.WithdrawModalReown
1345
1345
  }))
1346
1346
  );
@@ -1366,8 +1366,8 @@ function WithdrawModalInner({
1366
1366
  isOpen,
1367
1367
  onClose,
1368
1368
  inline,
1369
- backendUrl = _chunkHYUITBRVcjs.DEFAULT_BACKEND_URL,
1370
- signerAddress = _chunkHYUITBRVcjs.DEFAULT_SIGNER_ADDRESS,
1369
+ backendUrl = _chunkFLXTBFMZcjs.DEFAULT_BACKEND_URL,
1370
+ signerAddress = _chunkFLXTBFMZcjs.DEFAULT_SIGNER_ADDRESS,
1371
1371
  sessionChainIds,
1372
1372
  forceRegister = false,
1373
1373
  waitForFinalTx = true,
@@ -1393,12 +1393,12 @@ function WithdrawModalInner({
1393
1393
  const [currentStepIndex, setCurrentStepIndex] = _react.useState.call(void 0, 0);
1394
1394
  const [totalBalanceUsd, setTotalBalanceUsd] = _react.useState.call(void 0, null);
1395
1395
  const backHandlerRef = _react.useRef.call(void 0, void 0);
1396
- const targetChain = _chunkHYUITBRVcjs.getChainId.call(void 0, targetChainProp);
1397
- const sourceChain = _chunkHYUITBRVcjs.getChainId.call(void 0, sourceChainProp);
1398
- const service = _react.useMemo.call(void 0, () => _chunkNULE6WIIcjs.createDepositService.call(void 0, backendUrl), [backendUrl]);
1396
+ const targetChain = _chunkFLXTBFMZcjs.getChainId.call(void 0, targetChainProp);
1397
+ const sourceChain = _chunkFLXTBFMZcjs.getChainId.call(void 0, sourceChainProp);
1398
+ const service = _react.useMemo.call(void 0, () => _chunkAHOFT42Hcjs.createDepositService.call(void 0, backendUrl), [backendUrl]);
1399
1399
  _react.useEffect.call(void 0, () => {
1400
1400
  if (isOpen && modalRef.current) {
1401
- _chunkNULE6WIIcjs.applyTheme.call(void 0, modalRef.current, theme);
1401
+ _chunkAHOFT42Hcjs.applyTheme.call(void 0, modalRef.current, theme);
1402
1402
  }
1403
1403
  }, [isOpen, theme]);
1404
1404
  const hasCalledReady = _react.useRef.call(void 0, false);
@@ -1434,7 +1434,7 @@ function WithdrawModalInner({
1434
1434
  const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _49 => _49.title]), () => ( "Withdraw"));
1435
1435
  const canGoBack = currentStepIndex > 0 && currentStepIndex < 3 && backHandlerRef.current;
1436
1436
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1437
- _chunkNULE6WIIcjs.Modal,
1437
+ _chunkAHOFT42Hcjs.Modal,
1438
1438
  {
1439
1439
  isOpen,
1440
1440
  onClose,
@@ -1492,7 +1492,7 @@ function WithdrawModalInner({
1492
1492
  ] }),
1493
1493
  balance && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-balance", children: [
1494
1494
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-label", children: balance.title }),
1495
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunkNULE6WIIcjs.currencyFormatter.format(totalBalanceUsd) : null))) })
1495
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunkAHOFT42Hcjs.currencyFormatter.format(totalBalanceUsd) : null))) })
1496
1496
  ] })
1497
1497
  ] }),
1498
1498
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,