@rhinestone/deposit-modal 0.1.29 → 0.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/{DepositModalReown-4PFOMSC6.cjs → DepositModalReown-N7GCYZF7.cjs} +7 -7
  2. package/dist/{DepositModalReown-BVHWFWIG.mjs → DepositModalReown-S7HER5HU.mjs} +4 -4
  3. package/dist/{WithdrawModalReown-YREQR7DV.cjs → WithdrawModalReown-DJCJ5U7E.cjs} +7 -7
  4. package/dist/{WithdrawModalReown-CJCNT7SA.mjs → WithdrawModalReown-DMDRLYTE.mjs} +4 -4
  5. package/dist/{chunk-CSQRKM4Y.mjs → chunk-3ICS43XC.mjs} +14 -9
  6. package/dist/{chunk-XTTTHW3W.mjs → chunk-AWFJFSPH.mjs} +164 -85
  7. package/dist/{chunk-LBEP3A2Z.mjs → chunk-CS6UIMCF.mjs} +3 -1
  8. package/dist/{chunk-N6T4TKXI.mjs → chunk-EVU7M7A6.mjs} +71 -42
  9. package/dist/{chunk-7ZCUANBT.cjs → chunk-G2RDCQHL.cjs} +109 -80
  10. package/dist/{chunk-5QJNOPNF.cjs → chunk-MU2BOEDN.cjs} +291 -212
  11. package/dist/{chunk-DLYVHOME.cjs → chunk-PE6OK3FH.cjs} +15 -10
  12. package/dist/{chunk-K6YG3I6O.mjs → chunk-SLI5FHTT.mjs} +9 -9
  13. package/dist/{chunk-CPIQJR47.cjs → chunk-SZ35G2DT.cjs} +59 -59
  14. package/dist/{chunk-6VJ2ZTNQ.cjs → chunk-VKQA3FO3.cjs} +2 -0
  15. package/dist/constants.cjs +4 -2
  16. package/dist/constants.d.cts +2 -1
  17. package/dist/constants.d.ts +2 -1
  18. package/dist/constants.mjs +3 -1
  19. package/dist/deposit.cjs +4 -4
  20. package/dist/deposit.d.cts +2 -2
  21. package/dist/deposit.d.ts +2 -2
  22. package/dist/deposit.mjs +3 -3
  23. package/dist/index.cjs +7 -5
  24. package/dist/index.d.cts +2 -2
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.mjs +6 -4
  27. package/dist/reown.cjs +5 -5
  28. package/dist/reown.d.cts +1 -1
  29. package/dist/reown.d.ts +1 -1
  30. package/dist/reown.mjs +4 -4
  31. package/dist/styles.css +8 -5
  32. package/dist/{types-BwaQ7jK5.d.cts → types-DELv717e.d.cts} +5 -1
  33. package/dist/{types-CgXyx46m.d.ts → types-DTBfMH0p.d.ts} +5 -1
  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 +1 -1
@@ -6,9 +6,8 @@ import {
6
6
  getExplorerTxUrl,
7
7
  getTokenAddress,
8
8
  getTokenDecimalsByAddress,
9
- getTokenSymbol,
10
- isSupportedTokenAddressForChain
11
- } from "./chunk-CSQRKM4Y.mjs";
9
+ getTokenSymbol
10
+ } from "./chunk-3ICS43XC.mjs";
12
11
 
13
12
  // src/components/ui/Modal.tsx
14
13
  import {
@@ -366,22 +365,15 @@ function normalizeOrchestratorPortfolio(data) {
366
365
  if (!resolvedTokenAddress) {
367
366
  continue;
368
367
  }
369
- if (!isSupportedTokenAddressForChain(
370
- resolvedTokenAddress,
371
- chainBalance.chainId
372
- )) {
373
- continue;
374
- }
375
- const symbol = getTokenSymbol(resolvedTokenAddress, chainBalance.chainId);
368
+ const registrySymbol = getTokenSymbol(resolvedTokenAddress, chainBalance.chainId);
369
+ const symbol = registrySymbol !== "Token" ? registrySymbol : normalizedName || "Token";
370
+ const decimals = registrySymbol !== "Token" ? getTokenDecimalsByAddress(resolvedTokenAddress, chainBalance.chainId) : tokenData.tokenDecimals ?? 18;
376
371
  tokens.push({
377
372
  chainId: chainBalance.chainId,
378
373
  address: resolvedTokenAddress,
379
374
  symbol,
380
375
  name: symbol,
381
- decimals: getTokenDecimalsByAddress(
382
- resolvedTokenAddress,
383
- chainBalance.chainId
384
- ),
376
+ decimals,
385
377
  balance: unlocked,
386
378
  balanceUsd: 0
387
379
  });
@@ -405,14 +397,17 @@ function normalizeDirectToken(token) {
405
397
  ) ?? getTokenAddress(symbol, chainId);
406
398
  if (!address) return null;
407
399
  const addressAsToken = address;
408
- if (!isSupportedTokenAddressForChain(addressAsToken, chainId)) return null;
409
400
  const balanceUsd = extractNumber(token, "balanceUsd") ?? extractNumber(token, "usdValue") ?? extractNumber(token, "valueUsd") ?? extractNumericString(token, "balanceUsd") ?? extractNumericString(token, "usdValue") ?? extractNumericString(token, "valueUsd") ?? 0;
401
+ const registrySymbol = getTokenSymbol(addressAsToken, chainId);
402
+ const resolvedSymbol = registrySymbol !== "Token" ? registrySymbol : symbol;
403
+ const backendDecimals = extractNumber(token, "decimals") ?? extractNumber(token, "tokenDecimals");
404
+ const resolvedDecimals = registrySymbol !== "Token" ? getTokenDecimalsByAddress(addressAsToken, chainId) : backendDecimals ?? 18;
410
405
  return {
411
406
  chainId,
412
407
  address: addressAsToken,
413
- symbol: getTokenSymbol(addressAsToken, chainId),
414
- name: getTokenSymbol(addressAsToken, chainId),
415
- decimals: getTokenDecimalsByAddress(addressAsToken, chainId),
408
+ symbol: resolvedSymbol,
409
+ name: resolvedSymbol,
410
+ decimals: resolvedDecimals,
416
411
  balance: balanceValue,
417
412
  balanceUsd
418
413
  };
@@ -736,7 +731,14 @@ function ConnectStep({
736
731
  "div",
737
732
  {
738
733
  className: `rs-connect-wallet-icon ${isSelected ? "rs-connect-wallet-icon--selected" : ""}`,
739
- children: rowIcon(option.kind)
734
+ children: option.icon ? /* @__PURE__ */ jsx5(
735
+ "img",
736
+ {
737
+ src: option.icon,
738
+ alt: option.label,
739
+ style: { width: 18, height: 18, borderRadius: 4 }
740
+ }
741
+ ) : rowIcon(option.kind)
740
742
  }
741
743
  ),
742
744
  /* @__PURE__ */ jsxs4("div", { className: "rs-connect-wallet-meta", children: [
@@ -805,6 +807,42 @@ function ConnectStep({
805
807
  ] });
806
808
  }
807
809
  const handleConnect = onConnect ?? onRequestConnect;
810
+ if (onSelectTransferCrypto) {
811
+ return /* @__PURE__ */ jsx5("div", { className: "rs-step", children: /* @__PURE__ */ jsx5("div", { className: "rs-connect-centered rs-connect-centered--wallets", children: /* @__PURE__ */ jsxs4("div", { className: "rs-connect-wallet-list", children: [
812
+ /* @__PURE__ */ jsxs4(
813
+ "button",
814
+ {
815
+ type: "button",
816
+ className: "rs-connect-wallet-row rs-connect-wallet-row--action",
817
+ onClick: onSelectTransferCrypto,
818
+ children: [
819
+ /* @__PURE__ */ jsx5("div", { className: "rs-connect-wallet-icon rs-connect-wallet-icon--action", children: /* @__PURE__ */ jsx5(TransferIcon, {}) }),
820
+ /* @__PURE__ */ jsxs4("div", { className: "rs-connect-wallet-meta", children: [
821
+ /* @__PURE__ */ jsx5("div", { className: "rs-connect-wallet-label", children: "Transfer Crypto" }),
822
+ /* @__PURE__ */ jsx5("div", { className: "rs-connect-wallet-address", children: "Deposit via QR code" })
823
+ ] }),
824
+ /* @__PURE__ */ jsx5("div", { className: "rs-connect-wallet-indicator", children: /* @__PURE__ */ jsx5(ChevronRightIcon, {}) })
825
+ ]
826
+ }
827
+ ),
828
+ handleConnect && /* @__PURE__ */ jsxs4(
829
+ "button",
830
+ {
831
+ type: "button",
832
+ className: "rs-connect-wallet-row rs-connect-wallet-row--action",
833
+ onClick: handleConnect,
834
+ children: [
835
+ /* @__PURE__ */ jsx5("div", { className: "rs-connect-wallet-icon rs-connect-wallet-icon--action", children: /* @__PURE__ */ jsx5(WalletIcon, {}) }),
836
+ /* @__PURE__ */ jsxs4("div", { className: "rs-connect-wallet-meta", children: [
837
+ /* @__PURE__ */ jsx5("div", { className: "rs-connect-wallet-label", children: "Connect Wallet" }),
838
+ /* @__PURE__ */ jsx5("div", { className: "rs-connect-wallet-address", children: "Connect your wallet to deposit" })
839
+ ] }),
840
+ /* @__PURE__ */ jsx5("div", { className: "rs-connect-wallet-indicator", children: /* @__PURE__ */ jsx5(ChevronRightIcon, {}) })
841
+ ]
842
+ }
843
+ )
844
+ ] }) }) });
845
+ }
808
846
  return /* @__PURE__ */ jsxs4("div", { className: "rs-step", children: [
809
847
  /* @__PURE__ */ jsx5("div", { className: "rs-connect-centered rs-connect-centered--minimal", children: /* @__PURE__ */ jsxs4("div", { className: "rs-connect-empty", children: [
810
848
  /* @__PURE__ */ jsxs4("div", { className: "rs-connect-empty-graphic", "aria-hidden": "true", children: [
@@ -844,27 +882,16 @@ function ConnectStep({
844
882
  /* @__PURE__ */ jsx5("div", { className: "rs-connect-empty-title", children: "No wallet connected" }),
845
883
  /* @__PURE__ */ jsx5("div", { className: "rs-connect-empty-subtitle", children: "Connect an external wallet to continue." })
846
884
  ] }) }),
847
- /* @__PURE__ */ jsxs4("div", { className: "rs-step-footer rs-step-footer--connect-empty", children: [
848
- /* @__PURE__ */ jsx5(
849
- Button,
850
- {
851
- onClick: handleConnect,
852
- variant: "accent",
853
- fullWidth: true,
854
- disabled: !handleConnect,
855
- children: connectButtonLabel
856
- }
857
- ),
858
- onSelectTransferCrypto && /* @__PURE__ */ jsx5(
859
- "button",
860
- {
861
- type: "button",
862
- className: "rs-connect-transfer-link",
863
- onClick: onSelectTransferCrypto,
864
- children: "Or deposit via QR code"
865
- }
866
- )
867
- ] })
885
+ /* @__PURE__ */ jsx5("div", { className: "rs-step-footer rs-step-footer--connect-empty", children: /* @__PURE__ */ jsx5(
886
+ Button,
887
+ {
888
+ onClick: handleConnect,
889
+ variant: "accent",
890
+ fullWidth: true,
891
+ disabled: !handleConnect,
892
+ children: connectButtonLabel
893
+ }
894
+ ) })
868
895
  ] });
869
896
  }
870
897
  ConnectStep.displayName = "ConnectStep";
@@ -973,11 +1000,13 @@ function getEventTxHash(event) {
973
1000
  }
974
1001
  if (event.type === "bridge-started" || event.type === "bridge-complete") {
975
1002
  const deposit = isRecord(event.data?.deposit) ? event.data.deposit : void 0;
976
- return asString(deposit?.transactionHash);
1003
+ const source = isRecord(event.data?.source) ? event.data.source : void 0;
1004
+ return asString(deposit?.transactionHash) ?? asString(source?.transactionHash);
977
1005
  }
978
1006
  if (event.type === "bridge-failed" || event.type === "error") {
979
1007
  const deposit = isRecord(event.data?.deposit) ? event.data.deposit : void 0;
980
- return asString(deposit?.transactionHash);
1008
+ const source = isRecord(event.data?.source) ? event.data.source : void 0;
1009
+ return asString(deposit?.transactionHash) ?? asString(source?.transactionHash);
981
1010
  }
982
1011
  return void 0;
983
1012
  }
@@ -7,8 +7,7 @@
7
7
 
8
8
 
9
9
 
10
-
11
- var _chunkDLYVHOMEcjs = require('./chunk-DLYVHOME.cjs');
10
+ var _chunkPE6OK3FHcjs = require('./chunk-PE6OK3FH.cjs');
12
11
 
13
12
  // src/components/ui/Modal.tsx
14
13
 
@@ -361,27 +360,20 @@ function normalizeOrchestratorPortfolio(data) {
361
360
  const unlocked = _nullishCoalesce(_optionalChain([chainBalance, 'access', _4 => _4.balance, 'optionalAccess', _5 => _5.unlocked]), () => ( "0"));
362
361
  const normalizedName = tokenData.tokenName.trim();
363
362
  const isNativeSymbol = normalizedName.toUpperCase() === "ETH" || normalizedName.toUpperCase() === "ETHER";
364
- const tokenAddress = _nullishCoalesce(_nullishCoalesce(chainBalance.tokenAddress, () => ( extractTokenAddress(tokenData, chainBalance.chainId))), () => ( _chunkDLYVHOMEcjs.getTokenAddress.call(void 0, tokenData.tokenName, chainBalance.chainId)));
365
- const resolvedTokenAddress = isNativeSymbol ? _chunkDLYVHOMEcjs.NATIVE_TOKEN_ADDRESS : tokenAddress;
363
+ const tokenAddress = _nullishCoalesce(_nullishCoalesce(chainBalance.tokenAddress, () => ( extractTokenAddress(tokenData, chainBalance.chainId))), () => ( _chunkPE6OK3FHcjs.getTokenAddress.call(void 0, tokenData.tokenName, chainBalance.chainId)));
364
+ const resolvedTokenAddress = isNativeSymbol ? _chunkPE6OK3FHcjs.NATIVE_TOKEN_ADDRESS : tokenAddress;
366
365
  if (!resolvedTokenAddress) {
367
366
  continue;
368
367
  }
369
- if (!_chunkDLYVHOMEcjs.isSupportedTokenAddressForChain.call(void 0,
370
- resolvedTokenAddress,
371
- chainBalance.chainId
372
- )) {
373
- continue;
374
- }
375
- const symbol = _chunkDLYVHOMEcjs.getTokenSymbol.call(void 0, resolvedTokenAddress, chainBalance.chainId);
368
+ const registrySymbol = _chunkPE6OK3FHcjs.getTokenSymbol.call(void 0, resolvedTokenAddress, chainBalance.chainId);
369
+ const symbol = registrySymbol !== "Token" ? registrySymbol : normalizedName || "Token";
370
+ const decimals = registrySymbol !== "Token" ? _chunkPE6OK3FHcjs.getTokenDecimalsByAddress.call(void 0, resolvedTokenAddress, chainBalance.chainId) : _nullishCoalesce(tokenData.tokenDecimals, () => ( 18));
376
371
  tokens.push({
377
372
  chainId: chainBalance.chainId,
378
373
  address: resolvedTokenAddress,
379
374
  symbol,
380
375
  name: symbol,
381
- decimals: _chunkDLYVHOMEcjs.getTokenDecimalsByAddress.call(void 0,
382
- resolvedTokenAddress,
383
- chainBalance.chainId
384
- ),
376
+ decimals,
385
377
  balance: unlocked,
386
378
  balanceUsd: 0
387
379
  });
@@ -402,17 +394,20 @@ function normalizeDirectToken(token) {
402
394
  const address = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractString(token, "address"), () => ( extractString(token, "tokenAddress"))), () => ( extractString(
403
395
  token.token,
404
396
  "address"
405
- ))), () => ( _chunkDLYVHOMEcjs.getTokenAddress.call(void 0, symbol, chainId)));
397
+ ))), () => ( _chunkPE6OK3FHcjs.getTokenAddress.call(void 0, symbol, chainId)));
406
398
  if (!address) return null;
407
399
  const addressAsToken = address;
408
- if (!_chunkDLYVHOMEcjs.isSupportedTokenAddressForChain.call(void 0, addressAsToken, chainId)) return null;
409
400
  const balanceUsd = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(extractNumber(token, "balanceUsd"), () => ( extractNumber(token, "usdValue"))), () => ( extractNumber(token, "valueUsd"))), () => ( extractNumericString(token, "balanceUsd"))), () => ( extractNumericString(token, "usdValue"))), () => ( extractNumericString(token, "valueUsd"))), () => ( 0));
401
+ const registrySymbol = _chunkPE6OK3FHcjs.getTokenSymbol.call(void 0, addressAsToken, chainId);
402
+ const resolvedSymbol = registrySymbol !== "Token" ? registrySymbol : symbol;
403
+ const backendDecimals = _nullishCoalesce(extractNumber(token, "decimals"), () => ( extractNumber(token, "tokenDecimals")));
404
+ const resolvedDecimals = registrySymbol !== "Token" ? _chunkPE6OK3FHcjs.getTokenDecimalsByAddress.call(void 0, addressAsToken, chainId) : _nullishCoalesce(backendDecimals, () => ( 18));
410
405
  return {
411
406
  chainId,
412
407
  address: addressAsToken,
413
- symbol: _chunkDLYVHOMEcjs.getTokenSymbol.call(void 0, addressAsToken, chainId),
414
- name: _chunkDLYVHOMEcjs.getTokenSymbol.call(void 0, addressAsToken, chainId),
415
- decimals: _chunkDLYVHOMEcjs.getTokenDecimalsByAddress.call(void 0, addressAsToken, chainId),
408
+ symbol: resolvedSymbol,
409
+ name: resolvedSymbol,
410
+ decimals: resolvedDecimals,
416
411
  balance: balanceValue,
417
412
  balanceUsd
418
413
  };
@@ -736,7 +731,14 @@ function ConnectStep({
736
731
  "div",
737
732
  {
738
733
  className: `rs-connect-wallet-icon ${isSelected ? "rs-connect-wallet-icon--selected" : ""}`,
739
- children: rowIcon(option.kind)
734
+ children: option.icon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
735
+ "img",
736
+ {
737
+ src: option.icon,
738
+ alt: option.label,
739
+ style: { width: 18, height: 18, borderRadius: 4 }
740
+ }
741
+ ) : rowIcon(option.kind)
740
742
  }
741
743
  ),
742
744
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-connect-wallet-meta", children: [
@@ -805,6 +807,42 @@ function ConnectStep({
805
807
  ] });
806
808
  }
807
809
  const handleConnect = _nullishCoalesce(onConnect, () => ( onRequestConnect));
810
+ if (onSelectTransferCrypto) {
811
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-connect-centered rs-connect-centered--wallets", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-connect-wallet-list", children: [
812
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
813
+ "button",
814
+ {
815
+ type: "button",
816
+ className: "rs-connect-wallet-row rs-connect-wallet-row--action",
817
+ onClick: onSelectTransferCrypto,
818
+ children: [
819
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-connect-wallet-icon rs-connect-wallet-icon--action", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TransferIcon, {}) }),
820
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-connect-wallet-meta", children: [
821
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-connect-wallet-label", children: "Transfer Crypto" }),
822
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-connect-wallet-address", children: "Deposit via QR code" })
823
+ ] }),
824
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-connect-wallet-indicator", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChevronRightIcon, {}) })
825
+ ]
826
+ }
827
+ ),
828
+ handleConnect && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
829
+ "button",
830
+ {
831
+ type: "button",
832
+ className: "rs-connect-wallet-row rs-connect-wallet-row--action",
833
+ onClick: handleConnect,
834
+ children: [
835
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-connect-wallet-icon rs-connect-wallet-icon--action", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WalletIcon, {}) }),
836
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-connect-wallet-meta", children: [
837
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-connect-wallet-label", children: "Connect Wallet" }),
838
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-connect-wallet-address", children: "Connect your wallet to deposit" })
839
+ ] }),
840
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-connect-wallet-indicator", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChevronRightIcon, {}) })
841
+ ]
842
+ }
843
+ )
844
+ ] }) }) });
845
+ }
808
846
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
809
847
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-connect-centered rs-connect-centered--minimal", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-connect-empty", children: [
810
848
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-connect-empty-graphic", "aria-hidden": "true", children: [
@@ -844,27 +882,16 @@ function ConnectStep({
844
882
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-connect-empty-title", children: "No wallet connected" }),
845
883
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-connect-empty-subtitle", children: "Connect an external wallet to continue." })
846
884
  ] }) }),
847
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-footer rs-step-footer--connect-empty", children: [
848
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
849
- Button,
850
- {
851
- onClick: handleConnect,
852
- variant: "accent",
853
- fullWidth: true,
854
- disabled: !handleConnect,
855
- children: connectButtonLabel
856
- }
857
- ),
858
- onSelectTransferCrypto && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
859
- "button",
860
- {
861
- type: "button",
862
- className: "rs-connect-transfer-link",
863
- onClick: onSelectTransferCrypto,
864
- children: "Or deposit via QR code"
865
- }
866
- )
867
- ] })
885
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer rs-step-footer--connect-empty", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
886
+ Button,
887
+ {
888
+ onClick: handleConnect,
889
+ variant: "accent",
890
+ fullWidth: true,
891
+ disabled: !handleConnect,
892
+ children: connectButtonLabel
893
+ }
894
+ ) })
868
895
  ] });
869
896
  }
870
897
  ConnectStep.displayName = "ConnectStep";
@@ -973,16 +1000,18 @@ function getEventTxHash(event) {
973
1000
  }
974
1001
  if (event.type === "bridge-started" || event.type === "bridge-complete") {
975
1002
  const deposit = isRecord(_optionalChain([event, 'access', _44 => _44.data, 'optionalAccess', _45 => _45.deposit])) ? event.data.deposit : void 0;
976
- return asString(_optionalChain([deposit, 'optionalAccess', _46 => _46.transactionHash]));
1003
+ const source = isRecord(_optionalChain([event, 'access', _46 => _46.data, 'optionalAccess', _47 => _47.source])) ? event.data.source : void 0;
1004
+ return _nullishCoalesce(asString(_optionalChain([deposit, 'optionalAccess', _48 => _48.transactionHash])), () => ( asString(_optionalChain([source, 'optionalAccess', _49 => _49.transactionHash]))));
977
1005
  }
978
1006
  if (event.type === "bridge-failed" || event.type === "error") {
979
- const deposit = isRecord(_optionalChain([event, 'access', _47 => _47.data, 'optionalAccess', _48 => _48.deposit])) ? event.data.deposit : void 0;
980
- return asString(_optionalChain([deposit, 'optionalAccess', _49 => _49.transactionHash]));
1007
+ const deposit = isRecord(_optionalChain([event, 'access', _50 => _50.data, 'optionalAccess', _51 => _51.deposit])) ? event.data.deposit : void 0;
1008
+ const source = isRecord(_optionalChain([event, 'access', _52 => _52.data, 'optionalAccess', _53 => _53.source])) ? event.data.source : void 0;
1009
+ return _nullishCoalesce(asString(_optionalChain([deposit, 'optionalAccess', _54 => _54.transactionHash])), () => ( asString(_optionalChain([source, 'optionalAccess', _55 => _55.transactionHash]))));
981
1010
  }
982
1011
  return void 0;
983
1012
  }
984
1013
  function isDepositEvent(event) {
985
- return _optionalChain([event, 'optionalAccess', _50 => _50.type]) === "deposit-received" || _optionalChain([event, 'optionalAccess', _51 => _51.type]) === "bridge-started";
1014
+ return _optionalChain([event, 'optionalAccess', _56 => _56.type]) === "deposit-received" || _optionalChain([event, 'optionalAccess', _57 => _57.type]) === "bridge-started";
986
1015
  }
987
1016
 
988
1017
  // src/components/steps/ProcessingStep.tsx
@@ -997,7 +1026,7 @@ function isEventForTx(event, txHash) {
997
1026
  return eventTxHash.toLowerCase() === txHash.toLowerCase();
998
1027
  }
999
1028
  function formatBridgeFailedMessage(event) {
1000
- const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _52 => _52.data]), () => ( {}));
1029
+ const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _58 => _58.data]), () => ( {}));
1001
1030
  const code = typeof eventData.errorCode === "string" ? eventData.errorCode : void 0;
1002
1031
  const backendMessage = typeof eventData.message === "string" ? eventData.message.trim() : "";
1003
1032
  if (backendMessage.length > 0) {
@@ -1038,7 +1067,7 @@ function ProcessingStep({
1038
1067
  const intervalRef = _react.useRef.call(void 0, null);
1039
1068
  _react.useEffect.call(void 0, () => {
1040
1069
  if (directTransfer) {
1041
- _optionalChain([onDepositComplete, 'optionalCall', _53 => _53(txHash)]);
1070
+ _optionalChain([onDepositComplete, 'optionalCall', _59 => _59(txHash)]);
1042
1071
  return;
1043
1072
  }
1044
1073
  }, [directTransfer, txHash, onDepositComplete]);
@@ -1081,40 +1110,40 @@ function ProcessingStep({
1081
1110
  console.log("[deposit-modal] status poll", {
1082
1111
  type: lastEvent2.type,
1083
1112
  matchesTx: eventMatchesTx,
1084
- intentId: _optionalChain([eventData, 'optionalAccess', _54 => _54.intentId]),
1113
+ intentId: _optionalChain([eventData, 'optionalAccess', _60 => _60.intentId]),
1085
1114
  data: eventData
1086
1115
  });
1087
1116
  }
1088
1117
  if (!isMounted) return;
1089
- if (_optionalChain([eventForCurrentTx, 'optionalAccess', _55 => _55.type]) === "bridge-complete") {
1118
+ if (_optionalChain([eventForCurrentTx, 'optionalAccess', _61 => _61.type]) === "bridge-complete") {
1090
1119
  setState({ type: "complete", lastEvent: eventForCurrentTx });
1091
- const destinationTxHash2 = _optionalChain([eventForCurrentTx, 'access', _56 => _56.data, 'optionalAccess', _57 => _57.destination, 'optionalAccess', _58 => _58.transactionHash]);
1092
- _optionalChain([onDepositComplete, 'optionalCall', _59 => _59(txHash, destinationTxHash2)]);
1120
+ const destinationTxHash2 = _optionalChain([eventForCurrentTx, 'access', _62 => _62.data, 'optionalAccess', _63 => _63.destination, 'optionalAccess', _64 => _64.transactionHash]);
1121
+ _optionalChain([onDepositComplete, 'optionalCall', _65 => _65(txHash, destinationTxHash2)]);
1093
1122
  return;
1094
1123
  }
1095
- if (!waitForFinalTx && _optionalChain([eventForCurrentTx, 'optionalAccess', _60 => _60.type]) === "bridge-started") {
1124
+ if (!waitForFinalTx && _optionalChain([eventForCurrentTx, 'optionalAccess', _66 => _66.type]) === "bridge-started") {
1096
1125
  setState({ type: "complete", lastEvent: eventForCurrentTx });
1097
- _optionalChain([onDepositComplete, 'optionalCall', _61 => _61(txHash)]);
1126
+ _optionalChain([onDepositComplete, 'optionalCall', _67 => _67(txHash)]);
1098
1127
  return;
1099
1128
  }
1100
- if (_optionalChain([eventForCurrentTx, 'optionalAccess', _62 => _62.type]) === "bridge-failed") {
1129
+ if (_optionalChain([eventForCurrentTx, 'optionalAccess', _68 => _68.type]) === "bridge-failed") {
1101
1130
  const formatted = formatBridgeFailedMessage(eventForCurrentTx);
1102
1131
  setState({
1103
1132
  type: "failed",
1104
1133
  message: formatted.message,
1105
1134
  lastEvent: eventForCurrentTx
1106
1135
  });
1107
- _optionalChain([onDepositFailed, 'optionalCall', _63 => _63(txHash, formatted.message)]);
1136
+ _optionalChain([onDepositFailed, 'optionalCall', _69 => _69(txHash, formatted.message)]);
1108
1137
  return;
1109
1138
  }
1110
- if (_optionalChain([eventForCurrentTx, 'optionalAccess', _64 => _64.type]) === "error") {
1111
- const errorMessage = _nullishCoalesce(_optionalChain([eventForCurrentTx, 'access', _65 => _65.data, 'optionalAccess', _66 => _66.message]), () => ( "Unknown error"));
1139
+ if (_optionalChain([eventForCurrentTx, 'optionalAccess', _70 => _70.type]) === "error") {
1140
+ const errorMessage = _nullishCoalesce(_optionalChain([eventForCurrentTx, 'access', _71 => _71.data, 'optionalAccess', _72 => _72.message]), () => ( "Unknown error"));
1112
1141
  setState({
1113
1142
  type: "failed",
1114
1143
  message: errorMessage,
1115
1144
  lastEvent: eventForCurrentTx
1116
1145
  });
1117
- _optionalChain([onDepositFailed, 'optionalCall', _67 => _67(txHash, errorMessage)]);
1146
+ _optionalChain([onDepositFailed, 'optionalCall', _73 => _73(txHash, errorMessage)]);
1118
1147
  return;
1119
1148
  }
1120
1149
  setState({ type: "processing", lastEvent: eventForCurrentTx });
@@ -1162,7 +1191,7 @@ function ProcessingStep({
1162
1191
  processTimeoutRef.current = setTimeout(() => {
1163
1192
  const message = "We couldn't confirm your transfer. Please contact support if funds do not arrive.";
1164
1193
  setState({ type: "error", message });
1165
- _optionalChain([onError, 'optionalCall', _68 => _68(message, "PROCESS_TIMEOUT")]);
1194
+ _optionalChain([onError, 'optionalCall', _74 => _74(message, "PROCESS_TIMEOUT")]);
1166
1195
  }, PROCESS_TIMEOUT_MS);
1167
1196
  return () => {
1168
1197
  if (processTimeoutRef.current) {
@@ -1175,12 +1204,12 @@ function ProcessingStep({
1175
1204
  const isComplete = state.type === "complete";
1176
1205
  const isProcessing = state.type === "processing";
1177
1206
  const lastEvent = state.type === "processing" || state.type === "complete" || state.type === "failed" ? state.lastEvent : void 0;
1178
- const isEarlyComplete = !waitForFinalTx && _optionalChain([lastEvent, 'optionalAccess', _69 => _69.type]) === "bridge-started";
1207
+ const isEarlyComplete = !waitForFinalTx && _optionalChain([lastEvent, 'optionalAccess', _75 => _75.type]) === "bridge-started";
1179
1208
  const flowNoun = flowLabel === "withdraw" ? "withdrawal" : "deposit";
1180
1209
  const flowCapitalized = flowLabel === "withdraw" ? "Withdrawal" : "Deposit";
1181
- const destinationTxHash = _optionalChain([lastEvent, 'optionalAccess', _70 => _70.data, 'optionalAccess', _71 => _71.destination, 'optionalAccess', _72 => _72.transactionHash]) || null;
1182
- const sourceExplorerUrl = _chunkDLYVHOMEcjs.getExplorerTxUrl.call(void 0, sourceChain, txHash);
1183
- const destExplorerUrl = destinationTxHash ? _chunkDLYVHOMEcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1210
+ const destinationTxHash = _optionalChain([lastEvent, 'optionalAccess', _76 => _76.data, 'optionalAccess', _77 => _77.destination, 'optionalAccess', _78 => _78.transactionHash]) || null;
1211
+ const sourceExplorerUrl = _chunkPE6OK3FHcjs.getExplorerTxUrl.call(void 0, sourceChain, txHash);
1212
+ const destExplorerUrl = destinationTxHash ? _chunkPE6OK3FHcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1184
1213
  const truncateHash = (hash) => `${hash.slice(0, 10)}...${hash.slice(-8)}`;
1185
1214
  const formatElapsedTime = (seconds) => {
1186
1215
  if (seconds < 60) return `${seconds} second${seconds !== 1 ? "s" : ""}`;
@@ -1188,8 +1217,8 @@ function ProcessingStep({
1188
1217
  const secs = seconds % 60;
1189
1218
  return `${mins}m ${secs}s`;
1190
1219
  };
1191
- const targetSymbol = _chunkDLYVHOMEcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
1192
- const sourceDecimals = _chunkDLYVHOMEcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
1220
+ const targetSymbol = _chunkPE6OK3FHcjs.getTokenSymbol.call(void 0, targetToken, targetChain);
1221
+ const sourceDecimals = _chunkPE6OK3FHcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
1193
1222
  const formattedReceivedAmount = (() => {
1194
1223
  try {
1195
1224
  const raw = _viem.formatUnits.call(void 0, BigInt(amount), sourceDecimals);
@@ -1260,15 +1289,15 @@ function ProcessingStep({
1260
1289
  className: "rs-card-value",
1261
1290
  style: { display: "flex", alignItems: "center", gap: 6 },
1262
1291
  children: [
1263
- _chunkDLYVHOMEcjs.getChainIcon.call(void 0, sourceChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1292
+ _chunkPE6OK3FHcjs.getChainIcon.call(void 0, sourceChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1264
1293
  "img",
1265
1294
  {
1266
- src: _chunkDLYVHOMEcjs.getChainIcon.call(void 0, sourceChain),
1295
+ src: _chunkPE6OK3FHcjs.getChainIcon.call(void 0, sourceChain),
1267
1296
  alt: "",
1268
1297
  style: { width: 14, height: 14, borderRadius: "50%" }
1269
1298
  }
1270
1299
  ),
1271
- _chunkDLYVHOMEcjs.getChainName.call(void 0, sourceChain)
1300
+ _chunkPE6OK3FHcjs.getChainName.call(void 0, sourceChain)
1272
1301
  ]
1273
1302
  }
1274
1303
  )
@@ -1281,15 +1310,15 @@ function ProcessingStep({
1281
1310
  className: "rs-card-value",
1282
1311
  style: { display: "flex", alignItems: "center", gap: 6 },
1283
1312
  children: [
1284
- _chunkDLYVHOMEcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1313
+ _chunkPE6OK3FHcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1285
1314
  "img",
1286
1315
  {
1287
- src: _chunkDLYVHOMEcjs.getChainIcon.call(void 0, targetChain),
1316
+ src: _chunkPE6OK3FHcjs.getChainIcon.call(void 0, targetChain),
1288
1317
  alt: "",
1289
1318
  style: { width: 14, height: 14, borderRadius: "50%" }
1290
1319
  }
1291
1320
  ),
1292
- _chunkDLYVHOMEcjs.getChainName.call(void 0, targetChain)
1321
+ _chunkPE6OK3FHcjs.getChainName.call(void 0, targetChain)
1293
1322
  ]
1294
1323
  }
1295
1324
  )
@@ -1411,7 +1440,7 @@ function ProcessingStep({
1411
1440
  {
1412
1441
  className: `rs-step-description ${isError ? "rs-text-error" : "rs-text-secondary"}`,
1413
1442
  children: [
1414
- state.type === "processing" && (_optionalChain([lastEvent, 'optionalAccess', _73 => _73.type]) === "deposit-received" ? "Transfer received. Preparing bridge..." : _optionalChain([lastEvent, 'optionalAccess', _74 => _74.type]) === "bridge-started" ? "Transfer confirmed. Funds arriving shortly..." : `Bridging your ${flowNoun} to ${_chunkDLYVHOMEcjs.getChainName.call(void 0, targetChain)}.`),
1443
+ state.type === "processing" && (_optionalChain([lastEvent, 'optionalAccess', _79 => _79.type]) === "deposit-received" ? "Transfer received. Preparing bridge..." : _optionalChain([lastEvent, 'optionalAccess', _80 => _80.type]) === "bridge-started" ? "Transfer confirmed. Funds arriving shortly..." : `Bridging your ${flowNoun} to ${_chunkPE6OK3FHcjs.getChainName.call(void 0, targetChain)}.`),
1415
1444
  state.type === "failed" && state.message,
1416
1445
  state.type === "error" && state.message
1417
1446
  ]
@@ -1467,15 +1496,15 @@ function ProcessingStep({
1467
1496
  className: "rs-card-value",
1468
1497
  style: { display: "flex", alignItems: "center", gap: 8 },
1469
1498
  children: [
1470
- _chunkDLYVHOMEcjs.getChainIcon.call(void 0, sourceChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1499
+ _chunkPE6OK3FHcjs.getChainIcon.call(void 0, sourceChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1471
1500
  "img",
1472
1501
  {
1473
- src: _chunkDLYVHOMEcjs.getChainIcon.call(void 0, sourceChain),
1502
+ src: _chunkPE6OK3FHcjs.getChainIcon.call(void 0, sourceChain),
1474
1503
  alt: "",
1475
1504
  style: { width: 16, height: 16, borderRadius: "50%" }
1476
1505
  }
1477
1506
  ),
1478
- _chunkDLYVHOMEcjs.getChainName.call(void 0, sourceChain)
1507
+ _chunkPE6OK3FHcjs.getChainName.call(void 0, sourceChain)
1479
1508
  ]
1480
1509
  }
1481
1510
  )
@@ -1488,15 +1517,15 @@ function ProcessingStep({
1488
1517
  className: "rs-card-value",
1489
1518
  style: { display: "flex", alignItems: "center", gap: 8 },
1490
1519
  children: [
1491
- _chunkDLYVHOMEcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1520
+ _chunkPE6OK3FHcjs.getChainIcon.call(void 0, targetChain) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1492
1521
  "img",
1493
1522
  {
1494
- src: _chunkDLYVHOMEcjs.getChainIcon.call(void 0, targetChain),
1523
+ src: _chunkPE6OK3FHcjs.getChainIcon.call(void 0, targetChain),
1495
1524
  alt: "",
1496
1525
  style: { width: 16, height: 16, borderRadius: "50%" }
1497
1526
  }
1498
1527
  ),
1499
- _chunkDLYVHOMEcjs.getChainName.call(void 0, targetChain)
1528
+ _chunkPE6OK3FHcjs.getChainName.call(void 0, targetChain)
1500
1529
  ]
1501
1530
  }
1502
1531
  )
@@ -1549,7 +1578,7 @@ var clientCache = /* @__PURE__ */ new Map();
1549
1578
  function getPublicClient(chainId) {
1550
1579
  let client = clientCache.get(chainId);
1551
1580
  if (!client) {
1552
- const chain = _chunkDLYVHOMEcjs.CHAIN_BY_ID[chainId];
1581
+ const chain = _chunkPE6OK3FHcjs.CHAIN_BY_ID[chainId];
1553
1582
  client = _viem.createPublicClient.call(void 0, {
1554
1583
  chain,
1555
1584
  transport: _viem.http.call(void 0, )