@rhinestone/deposit-modal 0.5.0 → 0.5.1

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.
@@ -1,7 +1,7 @@
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
3
 
4
- var _chunkPPFG3VBDcjs = require('./chunk-PPFG3VBD.cjs');
4
+ var _chunkPDFLALUTcjs = require('./chunk-PDFLALUT.cjs');
5
5
 
6
6
 
7
7
 
@@ -76,14 +76,14 @@ function buildTransports(rpcUrls) {
76
76
  const transports = {};
77
77
  for (const network of EVM_NETWORKS) {
78
78
  const id = Number(network.id);
79
- transports[id] = _viem.http.call(void 0, _chunkPPFG3VBDcjs.rpcUrlFor.call(void 0, rpcUrls, id));
79
+ transports[id] = _viem.http.call(void 0, _chunkPDFLALUTcjs.rpcUrlFor.call(void 0, rpcUrls, id));
80
80
  }
81
81
  return transports;
82
82
  }
83
83
  function getEvmRpcFingerprint(rpcUrls) {
84
84
  return EVM_NETWORKS.map((network) => {
85
85
  const id = Number(network.id);
86
- return `${id}=${_nullishCoalesce(_chunkPPFG3VBDcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
86
+ return `${id}=${_nullishCoalesce(_chunkPDFLALUTcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
87
87
  }).join("|");
88
88
  }
89
89
  var cachedAdapter = null;
@@ -177,7 +177,7 @@ function useReownWallet() {
177
177
  await switchChainAsync({ chainId });
178
178
  }
179
179
  } catch (err) {
180
- if (_chunkPPFG3VBDcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
180
+ if (_chunkPDFLALUTcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
181
181
  throw new Error(
182
182
  `Switch to ${_chunkABVRVW3Pcjs.getChainName.call(void 0, chainId)} in your wallet to continue`
183
183
  );
@@ -31,8 +31,9 @@ import {
31
31
  saveSessionOwnerToStorage,
32
32
  useLatestRef,
33
33
  useRpcUrls,
34
+ useStableRpcUrls,
34
35
  useTokenPrices
35
- } from "./chunk-PS7HJ62M.mjs";
36
+ } from "./chunk-4YLVKTSU.mjs";
36
37
  import {
37
38
  buildSafeTransaction,
38
39
  executeSafeErc20Transfer,
@@ -1593,7 +1594,7 @@ function deriveStepView(step, _registration) {
1593
1594
  // src/WithdrawModal.tsx
1594
1595
  import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
1595
1596
  var ReownWithdrawInner = lazy(
1596
- () => import("./WithdrawModalReown-FRMD2ACH.mjs").then((m) => ({
1597
+ () => import("./WithdrawModalReown-AQTB4OZN.mjs").then((m) => ({
1597
1598
  default: m.WithdrawModalReown
1598
1599
  }))
1599
1600
  );
@@ -1622,7 +1623,7 @@ function WithdrawModalInner({
1622
1623
  closeOnOverlayClick,
1623
1624
  allowedRoutes,
1624
1625
  backendUrl = DEFAULT_BACKEND_URL,
1625
- rpcUrls,
1626
+ rpcUrls: rpcUrlsProp,
1626
1627
  signerAddress = DEFAULT_SIGNER_ADDRESS,
1627
1628
  sessionChainIds,
1628
1629
  forceRegister = false,
@@ -1647,6 +1648,7 @@ function WithdrawModalInner({
1647
1648
  );
1648
1649
  const targetChain = getChainId(targetChainProp);
1649
1650
  const sourceChain = getChainId(sourceChainProp);
1651
+ const rpcUrls = useStableRpcUrls(rpcUrlsProp);
1650
1652
  const service = useMemo3(
1651
1653
  () => createDepositService(backendUrl, { debug, debugScope: "service:withdraw" }),
1652
1654
  [backendUrl, debug]
@@ -1406,6 +1406,14 @@ var RpcUrlsProvider = RpcUrlsContext.Provider;
1406
1406
  function useRpcUrls() {
1407
1407
  return _react.useContext.call(void 0, RpcUrlsContext);
1408
1408
  }
1409
+ function rpcUrlsKey(rpcUrls) {
1410
+ if (!rpcUrls) return "";
1411
+ return Object.entries(rpcUrls).map(([chain, url]) => [chain, _nullishCoalesce(_optionalChain([url, 'optionalAccess', _53 => _53.trim, 'call', _54 => _54()]), () => ( ""))]).filter(([, url]) => url !== "").map(([chain, url]) => `${chain}=${url}`).sort().join("|");
1412
+ }
1413
+ function useStableRpcUrls(rpcUrls) {
1414
+ const key = rpcUrlsKey(rpcUrls);
1415
+ return _react.useMemo.call(void 0, () => rpcUrls, [key]);
1416
+ }
1409
1417
 
1410
1418
  // src/core/public-client.ts
1411
1419
  var _viem = require('viem');
@@ -1542,19 +1550,19 @@ var CUSTOM_PRIMARY_VARS = [
1542
1550
  function applyTheme(element, theme) {
1543
1551
  if (!element) return;
1544
1552
  const parent = element.parentElement;
1545
- const targets = _optionalChain([parent, 'optionalAccess', _53 => _53.classList, 'access', _54 => _54.contains, 'call', _55 => _55("rs-modal-content")]) ? [element, parent] : [element];
1546
- if (_optionalChain([theme, 'optionalAccess', _56 => _56.mode])) {
1553
+ const targets = _optionalChain([parent, 'optionalAccess', _55 => _55.classList, 'access', _56 => _56.contains, 'call', _57 => _57("rs-modal-content")]) ? [element, parent] : [element];
1554
+ if (_optionalChain([theme, 'optionalAccess', _58 => _58.mode])) {
1547
1555
  for (const t of targets) t.setAttribute("data-theme", theme.mode);
1548
1556
  } else {
1549
1557
  for (const t of targets) t.removeAttribute("data-theme");
1550
1558
  }
1551
- if (_optionalChain([theme, 'optionalAccess', _57 => _57.fontColor])) {
1559
+ if (_optionalChain([theme, 'optionalAccess', _59 => _59.fontColor])) {
1552
1560
  setVar(targets, "--rs-foreground", theme.fontColor);
1553
1561
  }
1554
- if (_optionalChain([theme, 'optionalAccess', _58 => _58.iconColor])) {
1562
+ if (_optionalChain([theme, 'optionalAccess', _60 => _60.iconColor])) {
1555
1563
  setVar(targets, "--rs-icon", theme.iconColor);
1556
1564
  }
1557
- if (_optionalChain([theme, 'optionalAccess', _59 => _59.ctaColor])) {
1565
+ if (_optionalChain([theme, 'optionalAccess', _61 => _61.ctaColor])) {
1558
1566
  const derived = deriveCustomPrimary(theme.ctaColor);
1559
1567
  if (derived) {
1560
1568
  setVar(targets, "--rs-primary", derived.base);
@@ -1579,18 +1587,18 @@ function applyTheme(element, theme) {
1579
1587
  }
1580
1588
  } else {
1581
1589
  for (const v of CUSTOM_PRIMARY_VARS) clearVar(targets, v);
1582
- if (_optionalChain([theme, 'optionalAccess', _60 => _60.ctaHoverColor])) {
1590
+ if (_optionalChain([theme, 'optionalAccess', _62 => _62.ctaHoverColor])) {
1583
1591
  setVar(targets, "--rs-primary-hover", theme.ctaHoverColor);
1584
1592
  }
1585
1593
  }
1586
- if (_optionalChain([theme, 'optionalAccess', _61 => _61.borderColor])) {
1594
+ if (_optionalChain([theme, 'optionalAccess', _63 => _63.borderColor])) {
1587
1595
  setVar(targets, "--rs-border", theme.borderColor);
1588
1596
  setVar(targets, "--rs-border-surface", theme.borderColor);
1589
1597
  }
1590
- if (_optionalChain([theme, 'optionalAccess', _62 => _62.backgroundColor])) {
1598
+ if (_optionalChain([theme, 'optionalAccess', _64 => _64.backgroundColor])) {
1591
1599
  setVar(targets, "--rs-background", theme.backgroundColor);
1592
1600
  }
1593
- if (_optionalChain([theme, 'optionalAccess', _63 => _63.radius])) {
1601
+ if (_optionalChain([theme, 'optionalAccess', _65 => _65.radius])) {
1594
1602
  const scale = RADIUS_SCALE[theme.radius];
1595
1603
  setVar(targets, "--rs-radius-sm", scale.sm);
1596
1604
  setVar(targets, "--rs-radius-md", scale.md);
@@ -1773,7 +1781,7 @@ function ListRow({
1773
1781
  if (disabled) return;
1774
1782
  if (e.key === "Enter" || e.key === " ") {
1775
1783
  e.preventDefault();
1776
- _optionalChain([onClick, 'optionalCall', _64 => _64(e)]);
1784
+ _optionalChain([onClick, 'optionalCall', _66 => _66(e)]);
1777
1785
  }
1778
1786
  };
1779
1787
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1783,7 +1791,7 @@ function ListRow({
1783
1791
  role: "button",
1784
1792
  tabIndex: disabled ? -1 : 0,
1785
1793
  "aria-disabled": disabled || void 0,
1786
- onClick: disabled ? void 0 : (e) => _optionalChain([onClick, 'optionalCall', _65 => _65(e)]),
1794
+ onClick: disabled ? void 0 : (e) => _optionalChain([onClick, 'optionalCall', _67 => _67(e)]),
1787
1795
  onKeyDown: handleKey,
1788
1796
  children: inner
1789
1797
  }
@@ -2404,7 +2412,7 @@ function ConnectStep({
2404
2412
  const hasReownWallet = rows.some(
2405
2413
  (row) => row.kind === "external" || row.kind === "solana"
2406
2414
  );
2407
- const showDappImports = (_nullishCoalesce(_optionalChain([dappImports, 'optionalAccess', _66 => _66.length]), () => ( 0))) > 0;
2415
+ const showDappImports = (_nullishCoalesce(_optionalChain([dappImports, 'optionalAccess', _68 => _68.length]), () => ( 0))) > 0;
2408
2416
  const defaultSubtitle = onSelectTransferCrypto ? "Add money to your balance" : "Choose a wallet to continue";
2409
2417
  const cryptoRows = [];
2410
2418
  if (onSelectTransferCrypto) {
@@ -2432,7 +2440,7 @@ function ConnectStep({
2432
2440
  leading: renderWalletLeading(row),
2433
2441
  title: collapseToExternal ? "External wallet" : row.label,
2434
2442
  subtitle: subtitleText,
2435
- onClick: () => _optionalChain([onConfirmWallet, 'optionalCall', _67 => _67(row.id)]),
2443
+ onClick: () => _optionalChain([onConfirmWallet, 'optionalCall', _69 => _69(row.id)]),
2436
2444
  disabled: row.state === "loading",
2437
2445
  trailing: renderRowTrailing(row.state)
2438
2446
  },
@@ -2512,7 +2520,7 @@ function ConnectStep({
2512
2520
  leading: row.icon,
2513
2521
  title: row.label,
2514
2522
  subtitle: formatBalanceUsd(row.status.balanceUsd),
2515
- onClick: () => _optionalChain([onSelectDappImport, 'optionalCall', _68 => _68(row.id)])
2523
+ onClick: () => _optionalChain([onSelectDappImport, 'optionalCall', _70 => _70(row.id)])
2516
2524
  },
2517
2525
  row.id
2518
2526
  )
@@ -2527,7 +2535,7 @@ function ConnectStep({
2527
2535
  leading: row.icon,
2528
2536
  title: row.label,
2529
2537
  subtitle: row.status.reason,
2530
- onClick: () => _optionalChain([onSelectDappImport, 'optionalCall', _69 => _69(row.id)])
2538
+ onClick: () => _optionalChain([onSelectDappImport, 'optionalCall', _71 => _71(row.id)])
2531
2539
  },
2532
2540
  row.id
2533
2541
  )
@@ -2696,8 +2704,8 @@ function Tooltip({ content, children, className }) {
2696
2704
  function handleOutside(event) {
2697
2705
  const target = event.target;
2698
2706
  if (!target) return;
2699
- if (_optionalChain([triggerRef, 'access', _70 => _70.current, 'optionalAccess', _71 => _71.contains, 'call', _72 => _72(target)])) return;
2700
- if (_optionalChain([bubbleRef, 'access', _73 => _73.current, 'optionalAccess', _74 => _74.contains, 'call', _75 => _75(target)])) return;
2707
+ if (_optionalChain([triggerRef, 'access', _72 => _72.current, 'optionalAccess', _73 => _73.contains, 'call', _74 => _74(target)])) return;
2708
+ if (_optionalChain([bubbleRef, 'access', _75 => _75.current, 'optionalAccess', _76 => _76.contains, 'call', _77 => _77(target)])) return;
2701
2709
  setOpen(false);
2702
2710
  }
2703
2711
  function handleKey(event) {
@@ -2864,7 +2872,7 @@ function asNumber(value) {
2864
2872
  const trimmed = value.trim();
2865
2873
  if (!trimmed) return void 0;
2866
2874
  const caipMatch = trimmed.match(/^eip155:(\d+)$/);
2867
- if (_optionalChain([caipMatch, 'optionalAccess', _76 => _76[1]])) {
2875
+ if (_optionalChain([caipMatch, 'optionalAccess', _78 => _78[1]])) {
2868
2876
  const parsed2 = Number(caipMatch[1]);
2869
2877
  return Number.isFinite(parsed2) ? parsed2 : void 0;
2870
2878
  }
@@ -2883,28 +2891,28 @@ function asAddress(value) {
2883
2891
  return /^0x[a-fA-F0-9]{40}$/.test(value) ? value : void 0;
2884
2892
  }
2885
2893
  function getEventTxHash(event) {
2886
- if (!_optionalChain([event, 'optionalAccess', _77 => _77.type])) return void 0;
2894
+ if (!_optionalChain([event, 'optionalAccess', _79 => _79.type])) return void 0;
2887
2895
  if (event.type === "deposit-received") {
2888
- return asString(_optionalChain([event, 'access', _78 => _78.data, 'optionalAccess', _79 => _79.transactionHash]));
2896
+ return asString(_optionalChain([event, 'access', _80 => _80.data, 'optionalAccess', _81 => _81.transactionHash]));
2889
2897
  }
2890
2898
  if (event.type === "bridge-started" || event.type === "bridge-complete") {
2891
- const deposit = isRecord(_optionalChain([event, 'access', _80 => _80.data, 'optionalAccess', _81 => _81.deposit])) ? event.data.deposit : void 0;
2892
- const source = isRecord(_optionalChain([event, 'access', _82 => _82.data, 'optionalAccess', _83 => _83.source])) ? event.data.source : void 0;
2893
- return _nullishCoalesce(asString(_optionalChain([deposit, 'optionalAccess', _84 => _84.transactionHash])), () => ( asString(_optionalChain([source, 'optionalAccess', _85 => _85.transactionHash]))));
2899
+ const deposit = isRecord(_optionalChain([event, 'access', _82 => _82.data, 'optionalAccess', _83 => _83.deposit])) ? event.data.deposit : void 0;
2900
+ const source = isRecord(_optionalChain([event, 'access', _84 => _84.data, 'optionalAccess', _85 => _85.source])) ? event.data.source : void 0;
2901
+ return _nullishCoalesce(asString(_optionalChain([deposit, 'optionalAccess', _86 => _86.transactionHash])), () => ( asString(_optionalChain([source, 'optionalAccess', _87 => _87.transactionHash]))));
2894
2902
  }
2895
2903
  if (event.type === "bridge-failed" || event.type === "error") {
2896
- const deposit = isRecord(_optionalChain([event, 'access', _86 => _86.data, 'optionalAccess', _87 => _87.deposit])) ? event.data.deposit : void 0;
2897
- const source = isRecord(_optionalChain([event, 'access', _88 => _88.data, 'optionalAccess', _89 => _89.source])) ? event.data.source : void 0;
2898
- return _nullishCoalesce(asString(_optionalChain([deposit, 'optionalAccess', _90 => _90.transactionHash])), () => ( asString(_optionalChain([source, 'optionalAccess', _91 => _91.transactionHash]))));
2904
+ const deposit = isRecord(_optionalChain([event, 'access', _88 => _88.data, 'optionalAccess', _89 => _89.deposit])) ? event.data.deposit : void 0;
2905
+ const source = isRecord(_optionalChain([event, 'access', _90 => _90.data, 'optionalAccess', _91 => _91.source])) ? event.data.source : void 0;
2906
+ return _nullishCoalesce(asString(_optionalChain([deposit, 'optionalAccess', _92 => _92.transactionHash])), () => ( asString(_optionalChain([source, 'optionalAccess', _93 => _93.transactionHash]))));
2899
2907
  }
2900
2908
  if (event.type === "post-bridge-swap-complete" || event.type === "post-bridge-swap-failed") {
2901
- const deposit = isRecord(_optionalChain([event, 'access', _92 => _92.data, 'optionalAccess', _93 => _93.deposit])) ? event.data.deposit : void 0;
2902
- return asString(_optionalChain([deposit, 'optionalAccess', _94 => _94.transactionHash]));
2909
+ const deposit = isRecord(_optionalChain([event, 'access', _94 => _94.data, 'optionalAccess', _95 => _95.deposit])) ? event.data.deposit : void 0;
2910
+ return asString(_optionalChain([deposit, 'optionalAccess', _96 => _96.transactionHash]));
2903
2911
  }
2904
2912
  return void 0;
2905
2913
  }
2906
2914
  function getEventSourceDetails(event) {
2907
- if (!_optionalChain([event, 'optionalAccess', _95 => _95.type]) || !isRecord(event.data)) return {};
2915
+ if (!_optionalChain([event, 'optionalAccess', _97 => _97.type]) || !isRecord(event.data)) return {};
2908
2916
  if (event.type === "deposit-received") {
2909
2917
  return {
2910
2918
  chainId: asNumber(event.data.chain),
@@ -2916,9 +2924,9 @@ function getEventSourceDetails(event) {
2916
2924
  const deposit = isRecord(event.data.deposit) ? event.data.deposit : void 0;
2917
2925
  if (event.type === "bridge-started" || event.type === "bridge-complete" || event.type === "bridge-failed" || event.type === "error" || event.type === "post-bridge-swap-complete" || event.type === "post-bridge-swap-failed") {
2918
2926
  return {
2919
- chainId: _nullishCoalesce(asNumber(_optionalChain([source, 'optionalAccess', _96 => _96.chain])), () => ( asNumber(_optionalChain([deposit, 'optionalAccess', _97 => _97.chain])))),
2920
- amount: _nullishCoalesce(asAmount(_optionalChain([source, 'optionalAccess', _98 => _98.amount])), () => ( asAmount(_optionalChain([deposit, 'optionalAccess', _99 => _99.amount])))),
2921
- token: _nullishCoalesce(_nullishCoalesce(asAddress(_optionalChain([source, 'optionalAccess', _100 => _100.asset])), () => ( asAddress(_optionalChain([deposit, 'optionalAccess', _101 => _101.asset])))), () => ( asAddress(_optionalChain([deposit, 'optionalAccess', _102 => _102.token]))))
2927
+ chainId: _nullishCoalesce(asNumber(_optionalChain([source, 'optionalAccess', _98 => _98.chain])), () => ( asNumber(_optionalChain([deposit, 'optionalAccess', _99 => _99.chain])))),
2928
+ amount: _nullishCoalesce(asAmount(_optionalChain([source, 'optionalAccess', _100 => _100.amount])), () => ( asAmount(_optionalChain([deposit, 'optionalAccess', _101 => _101.amount])))),
2929
+ token: _nullishCoalesce(_nullishCoalesce(asAddress(_optionalChain([source, 'optionalAccess', _102 => _102.asset])), () => ( asAddress(_optionalChain([deposit, 'optionalAccess', _103 => _103.asset])))), () => ( asAddress(_optionalChain([deposit, 'optionalAccess', _104 => _104.token]))))
2922
2930
  };
2923
2931
  }
2924
2932
  return {};
@@ -2930,7 +2938,7 @@ function asChain(value) {
2930
2938
  return asNumber(value);
2931
2939
  }
2932
2940
  function getEventDestinationDetails(event) {
2933
- if (!_optionalChain([event, 'optionalAccess', _103 => _103.type]) || !isRecord(event.data)) return {};
2941
+ if (!_optionalChain([event, 'optionalAccess', _105 => _105.type]) || !isRecord(event.data)) return {};
2934
2942
  if (event.type !== "bridge-started" && event.type !== "bridge-complete" && event.type !== "post-bridge-swap-complete") {
2935
2943
  return {};
2936
2944
  }
@@ -2940,14 +2948,14 @@ function getEventDestinationDetails(event) {
2940
2948
  return {
2941
2949
  chainId: asChain(destination.chain),
2942
2950
  amount: asAmount(destination.amount),
2943
- token: _optionalChain([token, 'optionalAccess', _104 => _104.trim, 'call', _105 => _105()]) || void 0
2951
+ token: _optionalChain([token, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107()]) || void 0
2944
2952
  };
2945
2953
  }
2946
2954
  function isDepositEvent(event) {
2947
- return _optionalChain([event, 'optionalAccess', _106 => _106.type]) === "deposit-received" || _optionalChain([event, 'optionalAccess', _107 => _107.type]) === "bridge-started" || _optionalChain([event, 'optionalAccess', _108 => _108.type]) === "bridge-complete" || _optionalChain([event, 'optionalAccess', _109 => _109.type]) === "bridge-failed" || _optionalChain([event, 'optionalAccess', _110 => _110.type]) === "post-bridge-swap-complete" || _optionalChain([event, 'optionalAccess', _111 => _111.type]) === "post-bridge-swap-failed" || _optionalChain([event, 'optionalAccess', _112 => _112.type]) === "error";
2955
+ return _optionalChain([event, 'optionalAccess', _108 => _108.type]) === "deposit-received" || _optionalChain([event, 'optionalAccess', _109 => _109.type]) === "bridge-started" || _optionalChain([event, 'optionalAccess', _110 => _110.type]) === "bridge-complete" || _optionalChain([event, 'optionalAccess', _111 => _111.type]) === "bridge-failed" || _optionalChain([event, 'optionalAccess', _112 => _112.type]) === "post-bridge-swap-complete" || _optionalChain([event, 'optionalAccess', _113 => _113.type]) === "post-bridge-swap-failed" || _optionalChain([event, 'optionalAccess', _114 => _114.type]) === "error";
2948
2956
  }
2949
2957
  function isFailedEvent(event) {
2950
- return _optionalChain([event, 'optionalAccess', _113 => _113.type]) === "bridge-failed" || _optionalChain([event, 'optionalAccess', _114 => _114.type]) === "post-bridge-swap-failed" || _optionalChain([event, 'optionalAccess', _115 => _115.type]) === "error";
2958
+ return _optionalChain([event, 'optionalAccess', _115 => _115.type]) === "bridge-failed" || _optionalChain([event, 'optionalAccess', _116 => _116.type]) === "post-bridge-swap-failed" || _optionalChain([event, 'optionalAccess', _117 => _117.type]) === "error";
2951
2959
  }
2952
2960
  function isHexString(value) {
2953
2961
  return value.startsWith("0x") || value.startsWith("0X");
@@ -2959,7 +2967,7 @@ function txRefsMatch(a, b) {
2959
2967
  return a === b;
2960
2968
  }
2961
2969
  function formatBridgeFailedMessage(event) {
2962
- const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _116 => _116.data]), () => ( {}));
2970
+ const eventData = _nullishCoalesce(_optionalChain([event, 'optionalAccess', _118 => _118.data]), () => ( {}));
2963
2971
  const code = typeof eventData.errorCode === "string" ? eventData.errorCode : void 0;
2964
2972
  const backendMessage = typeof eventData.message === "string" ? eventData.message.trim() : "";
2965
2973
  function toUserFacingFailure(raw) {
@@ -2987,7 +2995,7 @@ function formatBridgeFailedMessage(event) {
2987
2995
  return { message: "Bridge failed" };
2988
2996
  }
2989
2997
  function failureMessageForEvent(event) {
2990
- if (_optionalChain([event, 'optionalAccess', _117 => _117.type]) === "error") {
2998
+ if (_optionalChain([event, 'optionalAccess', _119 => _119.type]) === "error") {
2991
2999
  const message = isRecord(event.data) ? asString(event.data.message) : void 0;
2992
3000
  return _nullishCoalesce(message, () => ( "Unknown error"));
2993
3001
  }
@@ -3024,15 +3032,15 @@ function resolveTokenDisplay(token, chain, fallback) {
3024
3032
  const decimals = _chunkABVRVW3Pcjs.findTokenDecimals.call(void 0, token, chain);
3025
3033
  if (symbol !== "Token" || decimals !== void 0) {
3026
3034
  return {
3027
- symbol: symbol !== "Token" ? symbol : _nullishCoalesce(_optionalChain([fallback, 'optionalAccess', _118 => _118.symbol]), () => ( symbol)),
3028
- decimals: _nullishCoalesce(decimals, () => ( _optionalChain([fallback, 'optionalAccess', _119 => _119.decimals])))
3035
+ symbol: symbol !== "Token" ? symbol : _nullishCoalesce(_optionalChain([fallback, 'optionalAccess', _120 => _120.symbol]), () => ( symbol)),
3036
+ decimals: _nullishCoalesce(decimals, () => ( _optionalChain([fallback, 'optionalAccess', _121 => _121.decimals])))
3029
3037
  };
3030
3038
  }
3031
3039
  }
3032
3040
  }
3033
3041
  return {
3034
- symbol: _nullishCoalesce(_optionalChain([fallback, 'optionalAccess', _120 => _120.symbol]), () => ( "Token")),
3035
- decimals: _optionalChain([fallback, 'optionalAccess', _121 => _121.decimals])
3042
+ symbol: _nullishCoalesce(_optionalChain([fallback, 'optionalAccess', _122 => _122.symbol]), () => ( "Token")),
3043
+ decimals: _optionalChain([fallback, 'optionalAccess', _123 => _123.decimals])
3036
3044
  };
3037
3045
  }
3038
3046
  function maxFractionDigitsFor(symbol) {
@@ -3255,12 +3263,12 @@ function isEventForTx(event, txHash) {
3255
3263
  return txRefsMatch(eventTxHash, txHash);
3256
3264
  }
3257
3265
  function parseWebhookTimestamp(event) {
3258
- if (typeof _optionalChain([event, 'optionalAccess', _122 => _122.time]) !== "string") return void 0;
3266
+ if (typeof _optionalChain([event, 'optionalAccess', _124 => _124.time]) !== "string") return void 0;
3259
3267
  const timestamp = Date.parse(event.time);
3260
3268
  return Number.isFinite(timestamp) ? timestamp : void 0;
3261
3269
  }
3262
3270
  function syncPhaseTimings(previous, event) {
3263
- if (!_optionalChain([event, 'optionalAccess', _123 => _123.type])) return previous;
3271
+ if (!_optionalChain([event, 'optionalAccess', _125 => _125.type])) return previous;
3264
3272
  const timestamp = _nullishCoalesce(parseWebhookTimestamp(event), () => ( Date.now()));
3265
3273
  const setReceived = (event.type === "deposit-received" || event.type === "bridge-started" || event.type === "bridge-complete" || event.type === "bridge-failed" || event.type === "post-bridge-swap-complete" || event.type === "post-bridge-swap-failed" || event.type === "error") && previous.receivedAt === void 0;
3266
3274
  const setBridging = (event.type === "bridge-started" || event.type === "bridge-complete" || event.type === "post-bridge-swap-complete") && previous.bridgingAt === void 0;
@@ -3322,9 +3330,9 @@ function getCurrentPhaseId(state, phaseTimings) {
3322
3330
  if (state.type === "complete") {
3323
3331
  return void 0;
3324
3332
  }
3325
- if (_optionalChain([state, 'access', _124 => _124.lastEvent, 'optionalAccess', _125 => _125.type]) === "bridge-started" || _optionalChain([state, 'access', _126 => _126.lastEvent, 'optionalAccess', _127 => _127.type]) === "bridge-complete")
3333
+ if (_optionalChain([state, 'access', _126 => _126.lastEvent, 'optionalAccess', _127 => _127.type]) === "bridge-started" || _optionalChain([state, 'access', _128 => _128.lastEvent, 'optionalAccess', _129 => _129.type]) === "bridge-complete")
3326
3334
  return "bridging";
3327
- if (_optionalChain([state, 'access', _128 => _128.lastEvent, 'optionalAccess', _129 => _129.type]) === "deposit-received") return "received";
3335
+ if (_optionalChain([state, 'access', _130 => _130.lastEvent, 'optionalAccess', _131 => _131.type]) === "deposit-received") return "received";
3328
3336
  return "confirming";
3329
3337
  }
3330
3338
  function ProcessingStep({
@@ -3410,7 +3418,7 @@ function ProcessingStep({
3410
3418
  flowLabel
3411
3419
  });
3412
3420
  const context = processingContextRef.current;
3413
- _optionalChain([onDepositCompleteRef, 'access', _130 => _130.current, 'optionalCall', _131 => _131(txHash, void 0, {
3421
+ _optionalChain([onDepositCompleteRef, 'access', _132 => _132.current, 'optionalCall', _133 => _133(txHash, void 0, {
3414
3422
  amount: context.amount,
3415
3423
  sourceChain: context.sourceChain,
3416
3424
  sourceToken: context.sourceToken,
@@ -3452,7 +3460,7 @@ function ProcessingStep({
3452
3460
  updatePhaseTimings(
3453
3461
  (previous) => syncPhaseTimings(previous, state.lastEvent)
3454
3462
  );
3455
- }, [_optionalChain([state, 'access', _132 => _132.lastEvent, 'optionalAccess', _133 => _133.time]), _optionalChain([state, 'access', _134 => _134.lastEvent, 'optionalAccess', _135 => _135.type]), updatePhaseTimings]);
3463
+ }, [_optionalChain([state, 'access', _134 => _134.lastEvent, 'optionalAccess', _135 => _135.time]), _optionalChain([state, 'access', _136 => _136.lastEvent, 'optionalAccess', _137 => _137.type]), updatePhaseTimings]);
3456
3464
  const [swappedFiatContext, setSwappedFiatContext] = _react.useState.call(void 0, null);
3457
3465
  _react.useEffect.call(void 0, () => {
3458
3466
  let cancelled = false;
@@ -3460,7 +3468,7 @@ function ProcessingStep({
3460
3468
  if (cancelled || !res) return;
3461
3469
  if (res.transactionId != null) {
3462
3470
  if (res.transactionId.toLowerCase() !== txHash.toLowerCase()) return;
3463
- } else if (!isSwappedOrder || _optionalChain([swappedContext, 'optionalAccess', _136 => _136.variant]) === "connect") {
3471
+ } else if (!isSwappedOrder || _optionalChain([swappedContext, 'optionalAccess', _138 => _138.variant]) === "connect") {
3464
3472
  return;
3465
3473
  }
3466
3474
  setSwappedFiatContext({
@@ -3476,7 +3484,7 @@ function ProcessingStep({
3476
3484
  return () => {
3477
3485
  cancelled = true;
3478
3486
  };
3479
- }, [service, smartAccount, txHash, isSwappedOrder, _optionalChain([swappedContext, 'optionalAccess', _137 => _137.variant])]);
3487
+ }, [service, smartAccount, txHash, isSwappedOrder, _optionalChain([swappedContext, 'optionalAccess', _139 => _139.variant])]);
3480
3488
  _react.useEffect.call(void 0, () => {
3481
3489
  if (directTransfer) return;
3482
3490
  if (state.type !== "processing") {
@@ -3501,21 +3509,21 @@ function ProcessingStep({
3501
3509
  debugLog(debug, "processing", "poll:event", {
3502
3510
  type: lastEvent2.type,
3503
3511
  matchesTx: eventMatchesTx,
3504
- intentId: _optionalChain([eventData, 'optionalAccess', _138 => _138.intentId])
3512
+ intentId: _optionalChain([eventData, 'optionalAccess', _140 => _140.intentId])
3505
3513
  });
3506
3514
  }
3507
3515
  if (!isMounted) return;
3508
3516
  const awaitingPostBridgeSwap = processingContextRef.current.hasPostBridgeActions;
3509
- if (_optionalChain([eventForCurrentTx, 'optionalAccess', _139 => _139.type]) === "post-bridge-swap-complete") {
3517
+ if (_optionalChain([eventForCurrentTx, 'optionalAccess', _141 => _141.type]) === "post-bridge-swap-complete") {
3510
3518
  setState({ type: "complete", lastEvent: eventForCurrentTx });
3511
- const swapTxHash = _optionalChain([eventForCurrentTx, 'access', _140 => _140.data, 'optionalAccess', _141 => _141.swap, 'optionalAccess', _142 => _142.transactionHash]);
3519
+ const swapTxHash = _optionalChain([eventForCurrentTx, 'access', _142 => _142.data, 'optionalAccess', _143 => _143.swap, 'optionalAccess', _144 => _144.transactionHash]);
3512
3520
  debugLog(debug, "processing", "state:complete", {
3513
3521
  txHash,
3514
3522
  destinationTxHash: swapTxHash,
3515
3523
  event: eventForCurrentTx.type
3516
3524
  });
3517
3525
  const context = processingContextRef.current;
3518
- _optionalChain([onDepositCompleteRef, 'access', _143 => _143.current, 'optionalCall', _144 => _144(txHash, swapTxHash, {
3526
+ _optionalChain([onDepositCompleteRef, 'access', _145 => _145.current, 'optionalCall', _146 => _146(txHash, swapTxHash, {
3519
3527
  amount: context.amount,
3520
3528
  sourceChain: context.sourceChain,
3521
3529
  sourceToken: context.sourceToken,
@@ -3526,7 +3534,7 @@ function ProcessingStep({
3526
3534
  })]);
3527
3535
  return;
3528
3536
  }
3529
- if (_optionalChain([eventForCurrentTx, 'optionalAccess', _145 => _145.type]) === "post-bridge-swap-failed") {
3537
+ if (_optionalChain([eventForCurrentTx, 'optionalAccess', _147 => _147.type]) === "post-bridge-swap-failed") {
3530
3538
  const formatted = formatBridgeFailedMessage(eventForCurrentTx);
3531
3539
  setState({
3532
3540
  type: "failed",
@@ -3538,19 +3546,19 @@ function ProcessingStep({
3538
3546
  message: formatted.message,
3539
3547
  code: formatted.code
3540
3548
  });
3541
- _optionalChain([onDepositFailedRef, 'access', _146 => _146.current, 'optionalCall', _147 => _147(txHash, formatted.message)]);
3549
+ _optionalChain([onDepositFailedRef, 'access', _148 => _148.current, 'optionalCall', _149 => _149(txHash, formatted.message)]);
3542
3550
  return;
3543
3551
  }
3544
- if (_optionalChain([eventForCurrentTx, 'optionalAccess', _148 => _148.type]) === "bridge-complete" && !awaitingPostBridgeSwap) {
3552
+ if (_optionalChain([eventForCurrentTx, 'optionalAccess', _150 => _150.type]) === "bridge-complete" && !awaitingPostBridgeSwap) {
3545
3553
  setState({ type: "complete", lastEvent: eventForCurrentTx });
3546
- const destinationTxHash2 = _optionalChain([eventForCurrentTx, 'access', _149 => _149.data, 'optionalAccess', _150 => _150.destination, 'optionalAccess', _151 => _151.transactionHash]);
3554
+ const destinationTxHash2 = _optionalChain([eventForCurrentTx, 'access', _151 => _151.data, 'optionalAccess', _152 => _152.destination, 'optionalAccess', _153 => _153.transactionHash]);
3547
3555
  debugLog(debug, "processing", "state:complete", {
3548
3556
  txHash,
3549
3557
  destinationTxHash: destinationTxHash2,
3550
3558
  event: eventForCurrentTx.type
3551
3559
  });
3552
3560
  const context = processingContextRef.current;
3553
- _optionalChain([onDepositCompleteRef, 'access', _152 => _152.current, 'optionalCall', _153 => _153(txHash, destinationTxHash2, {
3561
+ _optionalChain([onDepositCompleteRef, 'access', _154 => _154.current, 'optionalCall', _155 => _155(txHash, destinationTxHash2, {
3554
3562
  amount: context.amount,
3555
3563
  sourceChain: context.sourceChain,
3556
3564
  sourceToken: context.sourceToken,
@@ -3561,7 +3569,7 @@ function ProcessingStep({
3561
3569
  })]);
3562
3570
  return;
3563
3571
  }
3564
- if (_optionalChain([eventForCurrentTx, 'optionalAccess', _154 => _154.type]) === "bridge-failed") {
3572
+ if (_optionalChain([eventForCurrentTx, 'optionalAccess', _156 => _156.type]) === "bridge-failed") {
3565
3573
  const formatted = formatBridgeFailedMessage(eventForCurrentTx);
3566
3574
  setState({
3567
3575
  type: "failed",
@@ -3573,11 +3581,11 @@ function ProcessingStep({
3573
3581
  message: formatted.message,
3574
3582
  code: formatted.code
3575
3583
  });
3576
- _optionalChain([onDepositFailedRef, 'access', _155 => _155.current, 'optionalCall', _156 => _156(txHash, formatted.message)]);
3584
+ _optionalChain([onDepositFailedRef, 'access', _157 => _157.current, 'optionalCall', _158 => _158(txHash, formatted.message)]);
3577
3585
  return;
3578
3586
  }
3579
- if (_optionalChain([eventForCurrentTx, 'optionalAccess', _157 => _157.type]) === "error") {
3580
- const errorMessage = _nullishCoalesce(_optionalChain([eventForCurrentTx, 'access', _158 => _158.data, 'optionalAccess', _159 => _159.message]), () => ( "Unknown error"));
3587
+ if (_optionalChain([eventForCurrentTx, 'optionalAccess', _159 => _159.type]) === "error") {
3588
+ const errorMessage = _nullishCoalesce(_optionalChain([eventForCurrentTx, 'access', _160 => _160.data, 'optionalAccess', _161 => _161.message]), () => ( "Unknown error"));
3581
3589
  setState({
3582
3590
  type: "failed",
3583
3591
  message: errorMessage,
@@ -3587,7 +3595,7 @@ function ProcessingStep({
3587
3595
  txHash,
3588
3596
  message: errorMessage
3589
3597
  });
3590
- _optionalChain([onDepositFailedRef, 'access', _160 => _160.current, 'optionalCall', _161 => _161(txHash, errorMessage)]);
3598
+ _optionalChain([onDepositFailedRef, 'access', _162 => _162.current, 'optionalCall', _163 => _163(txHash, errorMessage)]);
3591
3599
  return;
3592
3600
  }
3593
3601
  setState((previous) => ({
@@ -3648,7 +3656,7 @@ function ProcessingStep({
3648
3656
  txHash,
3649
3657
  timeoutMs: ESCALATED_DELAY_MS
3650
3658
  });
3651
- _optionalChain([onErrorRef, 'access', _162 => _162.current, 'optionalCall', _163 => _163(message, "PROCESS_TIMEOUT")]);
3659
+ _optionalChain([onErrorRef, 'access', _164 => _164.current, 'optionalCall', _165 => _165(message, "PROCESS_TIMEOUT")]);
3652
3660
  }, ESCALATED_DELAY_MS);
3653
3661
  return () => clearTimeout(timeoutId);
3654
3662
  }, [debug, directTransfer, onErrorRef, state.type, txHash]);
@@ -3660,8 +3668,8 @@ function ProcessingStep({
3660
3668
  const timelineNowMs = _nullishCoalesce(phaseTimings.endedAt, () => ( Date.now()));
3661
3669
  const flowNoun = flowLabel === "withdraw" ? "withdrawal" : "deposit";
3662
3670
  const flowCapitalized = flowLabel === "withdraw" ? "Withdrawal" : "Deposit";
3663
- const isPostBridgeSwapEvent = _optionalChain([lastEvent, 'optionalAccess', _164 => _164.type]) === "post-bridge-swap-complete" || _optionalChain([lastEvent, 'optionalAccess', _165 => _165.type]) === "post-bridge-swap-failed";
3664
- const destinationTxHash = isPostBridgeSwapEvent ? _optionalChain([lastEvent, 'optionalAccess', _166 => _166.data, 'optionalAccess', _167 => _167.swap, 'optionalAccess', _168 => _168.transactionHash]) || null : _optionalChain([lastEvent, 'optionalAccess', _169 => _169.data, 'optionalAccess', _170 => _170.destination, 'optionalAccess', _171 => _171.transactionHash]) || null;
3671
+ const isPostBridgeSwapEvent = _optionalChain([lastEvent, 'optionalAccess', _166 => _166.type]) === "post-bridge-swap-complete" || _optionalChain([lastEvent, 'optionalAccess', _167 => _167.type]) === "post-bridge-swap-failed";
3672
+ const destinationTxHash = isPostBridgeSwapEvent ? _optionalChain([lastEvent, 'optionalAccess', _168 => _168.data, 'optionalAccess', _169 => _169.swap, 'optionalAccess', _170 => _170.transactionHash]) || null : _optionalChain([lastEvent, 'optionalAccess', _171 => _171.data, 'optionalAccess', _172 => _172.destination, 'optionalAccess', _173 => _173.transactionHash]) || null;
3665
3673
  const sourceDetails = getEventSourceDetails(lastEvent);
3666
3674
  const displaySourceChain = _nullishCoalesce(sourceDetails.chainId, () => ( sourceChain));
3667
3675
  const displaySourceToken = _nullishCoalesce(sourceDetails.token, () => ( sourceToken));
@@ -3681,7 +3689,7 @@ function ProcessingStep({
3681
3689
  const sourceSymbol = sourceDisplay.symbol;
3682
3690
  const formattedSentAmount = _nullishCoalesce(_nullishCoalesce(formatRawTokenAmount(displayAmount, sourceDisplay), () => ( // Not raw base units (e.g. a decimal string) — render the number as-is.
3683
3691
  formatTokenAmount(Number(displayAmount), sourceDisplay.symbol))), () => ( displayAmount));
3684
- const isBridgeHopDestination = hasPostBridgeActions && (_optionalChain([lastEvent, 'optionalAccess', _172 => _172.type]) === "bridge-started" || _optionalChain([lastEvent, 'optionalAccess', _173 => _173.type]) === "bridge-complete");
3692
+ const isBridgeHopDestination = hasPostBridgeActions && (_optionalChain([lastEvent, 'optionalAccess', _174 => _174.type]) === "bridge-started" || _optionalChain([lastEvent, 'optionalAccess', _175 => _175.type]) === "bridge-complete");
3685
3693
  const eventDestination = isBridgeHopDestination ? {} : getEventDestinationDetails(lastEvent);
3686
3694
  const targetDisplay = resolveTokenDisplay(
3687
3695
  _nullishCoalesce(eventDestination.token, () => ( targetToken)),
@@ -3740,8 +3748,8 @@ function ProcessingStep({
3740
3748
  const sourceChainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, displaySourceChain);
3741
3749
  const targetChainName = _chunkABVRVW3Pcjs.getChainName.call(void 0, targetChain);
3742
3750
  const timerText = formatTimer(elapsedSeconds);
3743
- const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _174 => _174.feeSponsored]), () => ( false));
3744
- const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _175 => _175.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
3751
+ const feeSponsored = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _176 => _176.feeSponsored]), () => ( false));
3752
+ const feeTooltip = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _177 => _177.feeTooltip]), () => ( (feeSponsored ? "Network fees are sponsored for this deposit." : "Network fees apply.")));
3745
3753
  const stateTitle = isComplete ? `${flowCapitalized} successful` : isFailed ? `${flowCapitalized} failed` : "Processing...";
3746
3754
  const handleRetry = _nullishCoalesce(onRetry, () => ( onNewDeposit));
3747
3755
  const headerContent = isComplete ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-body-header", children: [
@@ -3752,16 +3760,16 @@ function ProcessingStep({
3752
3760
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-body-header-text", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "rs-body-header-title", children: stateTitle }) })
3753
3761
  ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, WalletIcon, {}), title: stateTitle });
3754
3762
  if (isComplete && isSwappedOrder) {
3755
- const effectivePaymentMethod = _nullishCoalesce(_nullishCoalesce(_optionalChain([swappedContext, 'optionalAccess', _176 => _176.method]), () => ( _optionalChain([swappedFiatContext, 'optionalAccess', _177 => _177.paymentMethod]))), () => ( null));
3763
+ const effectivePaymentMethod = _nullishCoalesce(_nullishCoalesce(_optionalChain([swappedContext, 'optionalAccess', _178 => _178.method]), () => ( _optionalChain([swappedFiatContext, 'optionalAccess', _179 => _179.paymentMethod]))), () => ( null));
3756
3764
  const onrampMethod = effectivePaymentMethod ? formatPaymentMethod(effectivePaymentMethod) : null;
3757
- const onrampMethodIcon = _optionalChain([swappedContext, 'optionalAccess', _178 => _178.variant]) === "connect" && effectivePaymentMethod ? getExchangeLogoSrc(
3765
+ const onrampMethodIcon = _optionalChain([swappedContext, 'optionalAccess', _180 => _180.variant]) === "connect" && effectivePaymentMethod ? getExchangeLogoSrc(
3758
3766
  _nullishCoalesce(onrampMethod, () => ( effectivePaymentMethod)),
3759
3767
  effectivePaymentMethod
3760
3768
  ) : null;
3761
- const connectPaidAmount = _optionalChain([swappedContext, 'optionalAccess', _179 => _179.variant]) === "connect" ? `${formattedSentAmount} ${sourceSymbol}` : null;
3762
- const amountPaid = _nullishCoalesce(connectPaidAmount, () => ( (_optionalChain([swappedFiatContext, 'optionalAccess', _180 => _180.paidAmountUsd]) != null ? `$${swappedFiatContext.paidAmountUsd.toFixed(2)}` : null)));
3769
+ const connectPaidAmount = _optionalChain([swappedContext, 'optionalAccess', _181 => _181.variant]) === "connect" ? `${formattedSentAmount} ${sourceSymbol}` : null;
3770
+ const amountPaid = _nullishCoalesce(connectPaidAmount, () => ( (_optionalChain([swappedFiatContext, 'optionalAccess', _182 => _182.paidAmountUsd]) != null ? `$${swappedFiatContext.paidAmountUsd.toFixed(2)}` : null)));
3763
3771
  const depositedAmount = receiveDisplay;
3764
- const onrampFeeUsd = _nullishCoalesce(_optionalChain([swappedFiatContext, 'optionalAccess', _181 => _181.onrampFeeUsd]), () => ( null));
3772
+ const onrampFeeUsd = _nullishCoalesce(_optionalChain([swappedFiatContext, 'optionalAccess', _183 => _183.onrampFeeUsd]), () => ( null));
3765
3773
  const networkFeeUsd = quotedFeeAmount !== void 0 && Number.isFinite(Number(quotedFeeAmount)) ? Number(quotedFeeAmount) : null;
3766
3774
  const feeRows = [];
3767
3775
  if (onrampFeeUsd != null) {
@@ -3838,7 +3846,7 @@ function ProcessingStep({
3838
3846
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Ticker, { value: timerText }) })
3839
3847
  ] }),
3840
3848
  isSwappedOrder ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
3841
- _optionalChain([swappedFiatContext, 'optionalAccess', _182 => _182.paidAmountUsd]) != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3849
+ _optionalChain([swappedFiatContext, 'optionalAccess', _184 => _184.paidAmountUsd]) != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3842
3850
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "You pay" }),
3843
3851
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
3844
3852
  "$",
@@ -3850,7 +3858,7 @@ function ProcessingStep({
3850
3858
  ] })
3851
3859
  ] })
3852
3860
  ] }),
3853
- _optionalChain([swappedFiatContext, 'optionalAccess', _183 => _183.onrampFeeUsd]) != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3861
+ _optionalChain([swappedFiatContext, 'optionalAccess', _185 => _185.onrampFeeUsd]) != null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
3854
3862
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "On-ramp fee" }),
3855
3863
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
3856
3864
  "$",
@@ -4083,4 +4091,5 @@ function accountFromPrivateKey(privateKey) {
4083
4091
 
4084
4092
 
4085
4093
 
4086
- exports.Modal = Modal; exports.WalletIcon = WalletIcon; exports.ExternalLinkIcon = ExternalLinkIcon; exports.CheckIcon = CheckIcon; exports.TransferCryptoIcon = TransferCryptoIcon; exports.ChevronLeftIcon = ChevronLeftIcon; exports.ChevronDownIcon = ChevronDownIcon; exports.CloseIcon = CloseIcon; exports.HandCoinsIcon = HandCoinsIcon; exports.HistoryIcon = HistoryIcon; exports.InfoIcon = InfoIcon; exports.CopyIcon = CopyIcon; exports.ArrowUpRightIcon = ArrowUpRightIcon; exports.AlertTriangleIcon = AlertTriangleIcon; exports.PercentIcon = PercentIcon; exports.ClockIcon = ClockIcon; exports.PlusCircleIcon = PlusCircleIcon; exports.CircleArrowOutUpLeftIcon = CircleArrowOutUpLeftIcon; exports.BankIcon = BankIcon; exports.UnplugIcon = UnplugIcon; exports.Callout = Callout; exports.BodyHeader = BodyHeader; exports.PoweredBy = PoweredBy; exports.Spinner = Spinner; exports.getExchangeLogo = getExchangeLogo; exports.ConnectStep = ConnectStep; exports.useLatestRef = useLatestRef; exports.Button = Button; exports.debugLog = debugLog; exports.debugError = debugError; exports.getAssetId = getAssetId; exports.portfolioToAssets = portfolioToAssets; exports.isNativeAsset = isNativeAsset; exports.buildSessionDetails = buildSessionDetails; exports.createDepositService = createDepositService; exports.currencyFormatter = currencyFormatter; exports.tokenFormatter = tokenFormatter; exports.isUnsupportedChainSwitchError = isUnsupportedChainSwitchError; exports.formatUserError = formatUserError; exports.Tooltip = Tooltip; exports.formatTokenAmount = formatTokenAmount; exports.formatQuotedReceive = formatQuotedReceive; exports.formatReceiveEstimate = formatReceiveEstimate; exports.getEventTxHash = getEventTxHash; exports.getEventSourceDetails = getEventSourceDetails; exports.isDepositEvent = isDepositEvent; exports.isFailedEvent = isFailedEvent; exports.txRefsMatch = txRefsMatch; exports.failureMessageForEvent = failureMessageForEvent; exports.useTokenPrices = useTokenPrices; exports.ProcessingStep = ProcessingStep; exports.rpcUrlFor = rpcUrlFor; exports.RpcUrlsProvider = RpcUrlsProvider; exports.useRpcUrls = useRpcUrls; exports.getPublicClient = getPublicClient; exports.getHyperEvmReadClient = getHyperEvmReadClient; exports.loadSessionOwnerFromStorage = loadSessionOwnerFromStorage; exports.saveSessionOwnerToStorage = saveSessionOwnerToStorage; exports.createSessionOwnerKey = createSessionOwnerKey; exports.accountFromPrivateKey = accountFromPrivateKey; exports.applyTheme = applyTheme;
4094
+
4095
+ exports.Modal = Modal; exports.WalletIcon = WalletIcon; exports.ExternalLinkIcon = ExternalLinkIcon; exports.CheckIcon = CheckIcon; exports.TransferCryptoIcon = TransferCryptoIcon; exports.ChevronLeftIcon = ChevronLeftIcon; exports.ChevronDownIcon = ChevronDownIcon; exports.CloseIcon = CloseIcon; exports.HandCoinsIcon = HandCoinsIcon; exports.HistoryIcon = HistoryIcon; exports.InfoIcon = InfoIcon; exports.CopyIcon = CopyIcon; exports.ArrowUpRightIcon = ArrowUpRightIcon; exports.AlertTriangleIcon = AlertTriangleIcon; exports.PercentIcon = PercentIcon; exports.ClockIcon = ClockIcon; exports.PlusCircleIcon = PlusCircleIcon; exports.CircleArrowOutUpLeftIcon = CircleArrowOutUpLeftIcon; exports.BankIcon = BankIcon; exports.UnplugIcon = UnplugIcon; exports.Callout = Callout; exports.BodyHeader = BodyHeader; exports.PoweredBy = PoweredBy; exports.Spinner = Spinner; exports.getExchangeLogo = getExchangeLogo; exports.ConnectStep = ConnectStep; exports.useLatestRef = useLatestRef; exports.Button = Button; exports.debugLog = debugLog; exports.debugError = debugError; exports.getAssetId = getAssetId; exports.portfolioToAssets = portfolioToAssets; exports.isNativeAsset = isNativeAsset; exports.buildSessionDetails = buildSessionDetails; exports.createDepositService = createDepositService; exports.currencyFormatter = currencyFormatter; exports.tokenFormatter = tokenFormatter; exports.isUnsupportedChainSwitchError = isUnsupportedChainSwitchError; exports.formatUserError = formatUserError; exports.Tooltip = Tooltip; exports.formatTokenAmount = formatTokenAmount; exports.formatQuotedReceive = formatQuotedReceive; exports.formatReceiveEstimate = formatReceiveEstimate; exports.getEventTxHash = getEventTxHash; exports.getEventSourceDetails = getEventSourceDetails; exports.isDepositEvent = isDepositEvent; exports.isFailedEvent = isFailedEvent; exports.txRefsMatch = txRefsMatch; exports.failureMessageForEvent = failureMessageForEvent; exports.useTokenPrices = useTokenPrices; exports.ProcessingStep = ProcessingStep; exports.rpcUrlFor = rpcUrlFor; exports.RpcUrlsProvider = RpcUrlsProvider; exports.useRpcUrls = useRpcUrls; exports.useStableRpcUrls = useStableRpcUrls; exports.getPublicClient = getPublicClient; exports.getHyperEvmReadClient = getHyperEvmReadClient; exports.loadSessionOwnerFromStorage = loadSessionOwnerFromStorage; exports.saveSessionOwnerToStorage = saveSessionOwnerToStorage; exports.createSessionOwnerKey = createSessionOwnerKey; exports.accountFromPrivateKey = accountFromPrivateKey; exports.applyTheme = applyTheme;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  isUnsupportedChainSwitchError,
3
3
  rpcUrlFor
4
- } from "./chunk-PS7HJ62M.mjs";
4
+ } from "./chunk-4YLVKTSU.mjs";
5
5
  import {
6
6
  SUPPORTED_CHAINS,
7
7
  getChainName