@rhinestone/deposit-modal 0.1.55 → 0.1.56

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,11 +1,11 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-AJUR6FAP.mjs";
3
+ } from "./chunk-6KDGB2W2.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
7
  } from "./chunk-MBURQ26S.mjs";
8
- import "./chunk-JQTV5JTB.mjs";
8
+ import "./chunk-LY3AZLPH.mjs";
9
9
  import "./chunk-CIXHTOO3.mjs";
10
10
 
11
11
  // src/DepositModalReown.tsx
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkQJVXCBUIcjs = require('./chunk-QJVXCBUI.cjs');
3
+ var _chunk6BYN2IMRcjs = require('./chunk-6BYN2IMR.cjs');
4
4
 
5
5
 
6
6
 
7
7
  var _chunkN2Y34LQOcjs = require('./chunk-N2Y34LQO.cjs');
8
- require('./chunk-EAEDK474.cjs');
8
+ require('./chunk-3UQQU6BE.cjs');
9
9
  require('./chunk-R6U6BHCV.cjs');
10
10
 
11
11
  // src/DepositModalReown.tsx
@@ -32,7 +32,7 @@ function DepositModalWithReown(props) {
32
32
  reown.disconnect();
33
33
  }, [reown.disconnect]);
34
34
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
35
- _chunkQJVXCBUIcjs.DepositModalInner,
35
+ _chunk6BYN2IMRcjs.DepositModalInner,
36
36
  {
37
37
  ...props,
38
38
  reownWallet: reownWithSolana,
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkXMNGYDDBcjs = require('./chunk-XMNGYDDB.cjs');
3
+ var _chunkTVGZCNBWcjs = require('./chunk-TVGZCNBW.cjs');
4
4
 
5
5
 
6
6
 
7
7
  var _chunkN2Y34LQOcjs = require('./chunk-N2Y34LQO.cjs');
8
- require('./chunk-EAEDK474.cjs');
8
+ require('./chunk-3UQQU6BE.cjs');
9
9
  require('./chunk-R6U6BHCV.cjs');
10
10
 
11
11
  // src/WithdrawModalReown.tsx
@@ -20,7 +20,7 @@ function WithdrawModalWithReown(props) {
20
20
  reown.disconnect();
21
21
  }, [reown.disconnect]);
22
22
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
23
- _chunkXMNGYDDBcjs.WithdrawModalInner,
23
+ _chunkTVGZCNBWcjs.WithdrawModalInner,
24
24
  {
25
25
  ...props,
26
26
  reownWallet: reown,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  WithdrawModalInner
3
- } from "./chunk-QOEACKBH.mjs";
3
+ } from "./chunk-IUKSOPEY.mjs";
4
4
  import {
5
5
  ReownWalletProvider,
6
6
  useReownWallet
7
7
  } from "./chunk-MBURQ26S.mjs";
8
- import "./chunk-JQTV5JTB.mjs";
8
+ import "./chunk-LY3AZLPH.mjs";
9
9
  import "./chunk-CIXHTOO3.mjs";
10
10
 
11
11
  // src/WithdrawModalReown.tsx
@@ -810,12 +810,12 @@ function formatUserError(raw) {
810
810
  }
811
811
 
812
812
  // src/core/theme.ts
813
- var RADIUS_VALUES = {
814
- none: "0",
815
- sm: "8px",
816
- md: "10px",
817
- lg: "14px",
818
- full: "9999px"
813
+ var RADIUS_SCALE = {
814
+ none: { sm: "0", md: "0", lg: "0" },
815
+ sm: { sm: "4px", md: "6px", lg: "8px" },
816
+ md: { sm: "8px", md: "10px", lg: "14px" },
817
+ lg: { sm: "10px", md: "14px", lg: "18px" },
818
+ full: { sm: "9999px", md: "9999px", lg: "9999px" }
819
819
  };
820
820
  function applyTheme(element, theme) {
821
821
  if (!element) return;
@@ -848,7 +848,11 @@ function applyTheme(element, theme) {
848
848
  element.style.setProperty("--rs-background", theme.backgroundColor);
849
849
  }
850
850
  if (_optionalChain([theme, 'optionalAccess', _45 => _45.radius])) {
851
- element.style.setProperty("--rs-radius", RADIUS_VALUES[theme.radius]);
851
+ const scale = RADIUS_SCALE[theme.radius];
852
+ element.style.setProperty("--rs-radius-sm", scale.sm);
853
+ element.style.setProperty("--rs-radius-md", scale.md);
854
+ element.style.setProperty("--rs-radius-lg", scale.lg);
855
+ element.style.setProperty("--rs-radius", scale.md);
852
856
  }
853
857
  }
854
858
 
@@ -25,7 +25,7 @@
25
25
 
26
26
 
27
27
 
28
- var _chunkEAEDK474cjs = require('./chunk-EAEDK474.cjs');
28
+ var _chunk3UQQU6BEcjs = require('./chunk-3UQQU6BE.cjs');
29
29
 
30
30
 
31
31
 
@@ -61,15 +61,15 @@ var _react = require('react');
61
61
 
62
62
  var _jsxruntime = require('react/jsx-runtime');
63
63
  async function resolveSessionOwner(eoaAddress) {
64
- const localOwner = _chunkEAEDK474cjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
64
+ const localOwner = _chunk3UQQU6BEcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
65
65
  if (localOwner) {
66
66
  return {
67
- account: _chunkEAEDK474cjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
67
+ account: _chunk3UQQU6BEcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
68
68
  address: localOwner.address
69
69
  };
70
70
  }
71
- const created = _chunkEAEDK474cjs.createSessionOwnerKey.call(void 0, );
72
- _chunkEAEDK474cjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
71
+ const created = _chunk3UQQU6BEcjs.createSessionOwnerKey.call(void 0, );
72
+ _chunk3UQQU6BEcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
73
73
  return {
74
74
  account: created.account,
75
75
  address: created.address
@@ -105,7 +105,7 @@ function SetupStep({
105
105
  const setup = await service.setupAccount({
106
106
  ownerAddress: address,
107
107
  sessionOwnerAddress: sessionOwner.address,
108
- targetChain: _chunkEAEDK474cjs.toEvmCaip2.call(void 0, targetChain),
108
+ targetChain: _chunk3UQQU6BEcjs.toEvmCaip2.call(void 0, targetChain),
109
109
  targetToken,
110
110
  signerAddress,
111
111
  sessionChainIds,
@@ -135,7 +135,7 @@ function SetupStep({
135
135
  primaryType: typedData.primaryType,
136
136
  message: typedData.message
137
137
  });
138
- const sessionDetails = _chunkEAEDK474cjs.buildSessionDetails.call(void 0, setup.sessionDetailsUnsigned, signature);
138
+ const sessionDetails = _chunk3UQQU6BEcjs.buildSessionDetails.call(void 0, setup.sessionDetailsUnsigned, signature);
139
139
  setState({ type: "registering" });
140
140
  const registerResult = await service.registerAccount({
141
141
  address: smartAccount,
@@ -147,7 +147,7 @@ function SetupStep({
147
147
  eoaAddress: address,
148
148
  sessionOwner: sessionOwner.address,
149
149
  target: {
150
- chain: _chunkEAEDK474cjs.toEvmCaip2.call(void 0, targetChain),
150
+ chain: _chunk3UQQU6BEcjs.toEvmCaip2.call(void 0, targetChain),
151
151
  token: targetToken,
152
152
  ...recipient && { recipient }
153
153
  }
@@ -210,7 +210,7 @@ function SetupStep({
210
210
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
211
211
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", children: [
212
212
  isLoading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
213
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.Spinner, { className: "rs-spinner--lg rs-text-accent" }),
213
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UQQU6BEcjs.Spinner, { className: "rs-spinner--lg rs-text-accent" }),
214
214
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-text", children: [
215
215
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-title", children: renderStateMessage() }),
216
216
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-loading-subtitle", children: "This may take a moment" })
@@ -247,7 +247,7 @@ function SetupStep({
247
247
  ] })
248
248
  ] })
249
249
  ] }),
250
- isError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.Button, { onClick: handleRetry, variant: "default", fullWidth: true, children: "Try Again" }) })
250
+ isError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UQQU6BEcjs.Button, { onClick: handleRetry, variant: "default", fullWidth: true, children: "Try Again" }) })
251
251
  ] });
252
252
  }
253
253
 
@@ -272,7 +272,7 @@ function AssetSelectStep({
272
272
  const [error, setError] = _react.useState.call(void 0, null);
273
273
  const defaultAssetId = _react.useMemo.call(void 0, () => {
274
274
  if (!defaultSourceChain || !defaultSourceToken) return null;
275
- return _chunkEAEDK474cjs.getAssetId.call(void 0, {
275
+ return _chunk3UQQU6BEcjs.getAssetId.call(void 0, {
276
276
  chainId: defaultSourceChain,
277
277
  token: defaultSourceToken
278
278
  });
@@ -289,7 +289,7 @@ function AssetSelectStep({
289
289
  try {
290
290
  const portfolio = await service.fetchPortfolio(address);
291
291
  if (!active) return;
292
- const portfolioAssets = _chunkEAEDK474cjs.portfolioToAssets.call(void 0, portfolio.tokens);
292
+ const portfolioAssets = _chunk3UQQU6BEcjs.portfolioToAssets.call(void 0, portfolio.tokens);
293
293
  setAssets(portfolioAssets);
294
294
  const hasNative = portfolioAssets.some(
295
295
  (asset) => asset.token.toLowerCase() === _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS
@@ -370,7 +370,7 @@ function AssetSelectStep({
370
370
  const raw = _viem.formatUnits.call(void 0, BigInt(asset.balance), asset.decimals);
371
371
  const numeric = Number(raw);
372
372
  if (!Number.isFinite(numeric)) return raw;
373
- return _chunkEAEDK474cjs.tokenFormatter.format(numeric);
373
+ return _chunk3UQQU6BEcjs.tokenFormatter.format(numeric);
374
374
  } catch (e3) {
375
375
  return asset.balance;
376
376
  }
@@ -384,7 +384,7 @@ function AssetSelectStep({
384
384
  style: { paddingTop: 4, overflow: "auto", maxHeight: 340 },
385
385
  children: [
386
386
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
387
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.Spinner, { className: "rs-text-tertiary" }),
387
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UQQU6BEcjs.Spinner, { className: "rs-text-tertiary" }),
388
388
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
389
389
  ] }),
390
390
  error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-alert rs-alert--error", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-alert-text", children: error }) }),
@@ -474,7 +474,7 @@ function AssetSelectStep({
474
474
  ] })
475
475
  ] })
476
476
  ] }),
477
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunkEAEDK474cjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
477
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: asset.balanceUsd !== void 0 && asset.balanceUsd > 0 ? _chunk3UQQU6BEcjs.currencyFormatter.format(asset.balanceUsd) : tokenAmount !== "--" ? `${tokenAmount} ${asset.symbol}` : "--" })
478
478
  ]
479
479
  },
480
480
  asset.id
@@ -484,7 +484,7 @@ function AssetSelectStep({
484
484
  }
485
485
  ),
486
486
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
487
- _chunkEAEDK474cjs.Button,
487
+ _chunk3UQQU6BEcjs.Button,
488
488
  {
489
489
  onClick: () => selectedAsset && onContinue(selectedAsset),
490
490
  disabled: !selectedAsset,
@@ -492,7 +492,7 @@ function AssetSelectStep({
492
492
  children: "Continue"
493
493
  }
494
494
  ) }),
495
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
495
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UQQU6BEcjs.PoweredBy, {})
496
496
  ] });
497
497
  }
498
498
  async function fetchNativeAssets(address, publicClient, existing) {
@@ -500,7 +500,7 @@ async function fetchNativeAssets(address, publicClient, existing) {
500
500
  const connectedChainId = _optionalChain([publicClient, 'access', _10 => _10.chain, 'optionalAccess', _11 => _11.id]);
501
501
  if (!connectedChainId) return [];
502
502
  if (!_chunkR6U6BHCVcjs.SOURCE_CHAINS.some((chain) => chain.id === connectedChainId)) return [];
503
- const id = _chunkEAEDK474cjs.getAssetId.call(void 0, {
503
+ const id = _chunk3UQQU6BEcjs.getAssetId.call(void 0, {
504
504
  chainId: connectedChainId,
505
505
  token: _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS
506
506
  });
@@ -586,7 +586,7 @@ function AmountStep({
586
586
  const balanceTarget = _nullishCoalesce(balanceAddress, () => ( address));
587
587
  if (!balanceTarget || !publicClient) return;
588
588
  try {
589
- const bal = _chunkEAEDK474cjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
589
+ const bal = _chunk3UQQU6BEcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: balanceTarget }) : await publicClient.readContract({
590
590
  address: asset.token,
591
591
  abi: _viem.erc20Abi,
592
592
  functionName: "balanceOf",
@@ -612,7 +612,7 @@ function AmountStep({
612
612
  setIsSwitching(true);
613
613
  switchChain(asset.chainId).catch((err) => {
614
614
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
615
- setError(_chunkEAEDK474cjs.formatUserError.call(void 0, raw));
615
+ setError(_chunk3UQQU6BEcjs.formatUserError.call(void 0, raw));
616
616
  }).finally(() => {
617
617
  setIsSwitching(false);
618
618
  });
@@ -648,7 +648,7 @@ function AmountStep({
648
648
  const raw = _viem.formatUnits.call(void 0, balance, asset.decimals);
649
649
  const numeric = Number(raw);
650
650
  if (!Number.isFinite(numeric)) return raw;
651
- return _chunkEAEDK474cjs.tokenFormatter.format(numeric);
651
+ return _chunk3UQQU6BEcjs.tokenFormatter.format(numeric);
652
652
  } catch (e8) {
653
653
  return "...";
654
654
  }
@@ -690,7 +690,7 @@ function AmountStep({
690
690
  const usdValue = numericAmount;
691
691
  if (_optionalChain([uiConfig, 'optionalAccess', _15 => _15.maxDepositUsd]) && usdValue > uiConfig.maxDepositUsd) {
692
692
  setError(
693
- `Maximum deposit is ${_chunkEAEDK474cjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
693
+ `Maximum deposit is ${_chunk3UQQU6BEcjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
694
694
  );
695
695
  return;
696
696
  }
@@ -744,7 +744,7 @@ function AmountStep({
744
744
  hasPricing && balanceUsd !== null && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { style: { color: "var(--rs-muted-foreground)" }, children: [
745
745
  " ",
746
746
  "(",
747
- _chunkEAEDK474cjs.currencyFormatter.format(balanceUsd),
747
+ _chunk3UQQU6BEcjs.currencyFormatter.format(balanceUsd),
748
748
  ")"
749
749
  ] })
750
750
  ] }) })
@@ -881,7 +881,7 @@ function AmountStep({
881
881
  )
882
882
  ] }),
883
883
  _optionalChain([uiConfig, 'optionalAccess', _17 => _17.minDepositUsd]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-minimum", children: [
884
- _chunkEAEDK474cjs.currencyFormatter.format(uiConfig.minDepositUsd),
884
+ _chunk3UQQU6BEcjs.currencyFormatter.format(uiConfig.minDepositUsd),
885
885
  " minimum deposit"
886
886
  ] }),
887
887
  error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", children: [
@@ -907,7 +907,7 @@ function AmountStep({
907
907
  ] })
908
908
  ] }),
909
909
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
910
- _chunkEAEDK474cjs.Button,
910
+ _chunk3UQQU6BEcjs.Button,
911
911
  {
912
912
  onClick: handleContinue,
913
913
  fullWidth: true,
@@ -915,7 +915,7 @@ function AmountStep({
915
915
  children: _optionalChain([uiConfig, 'optionalAccess', _18 => _18.minDepositUsd]) && parseFloat(amount) > 0 && parseFloat(amount) < uiConfig.minDepositUsd ? "Update order" : "Continue"
916
916
  }
917
917
  ) }),
918
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
918
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UQQU6BEcjs.PoweredBy, {})
919
919
  ] });
920
920
  }
921
921
 
@@ -965,7 +965,7 @@ function ConfirmStep({
965
965
  setIsSwitching(true);
966
966
  switchChain(asset.chainId).catch((err) => {
967
967
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
968
- setError(_chunkEAEDK474cjs.formatUserError.call(void 0, raw));
968
+ setError(_chunk3UQQU6BEcjs.formatUserError.call(void 0, raw));
969
969
  }).finally(() => {
970
970
  setIsSwitching(false);
971
971
  });
@@ -1008,7 +1008,7 @@ function ConfirmStep({
1008
1008
  throw new Error("Wallet not properly connected");
1009
1009
  }
1010
1010
  const transferTo = sameRoute ? recipient : smartAccount;
1011
- const hash = _chunkEAEDK474cjs.isNativeAsset.call(void 0, asset) ? await walletClient.sendTransaction({
1011
+ const hash = _chunk3UQQU6BEcjs.isNativeAsset.call(void 0, asset) ? await walletClient.sendTransaction({
1012
1012
  account,
1013
1013
  chain,
1014
1014
  to: transferTo,
@@ -1025,7 +1025,7 @@ function ConfirmStep({
1025
1025
  onConfirm(hash, asset.chainId, amountUnits.toString(), asset.token);
1026
1026
  } catch (err) {
1027
1027
  const raw = err instanceof Error ? err.message : "Transfer failed";
1028
- const message = _chunkEAEDK474cjs.formatUserError.call(void 0, raw);
1028
+ const message = _chunk3UQQU6BEcjs.formatUserError.call(void 0, raw);
1029
1029
  setError(message);
1030
1030
  _optionalChain([onError, 'optionalCall', _22 => _22(message, "TRANSFER_ERROR")]);
1031
1031
  } finally {
@@ -1154,7 +1154,7 @@ function ConfirmStep({
1154
1154
  ] })
1155
1155
  ] }),
1156
1156
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1157
- _chunkEAEDK474cjs.Button,
1157
+ _chunk3UQQU6BEcjs.Button,
1158
1158
  {
1159
1159
  onClick: handleConfirm,
1160
1160
  loading: isSubmitting,
@@ -1163,7 +1163,7 @@ function ConfirmStep({
1163
1163
  children: "Confirm Order"
1164
1164
  }
1165
1165
  ) }),
1166
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
1166
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UQQU6BEcjs.PoweredBy, {})
1167
1167
  ] });
1168
1168
  }
1169
1169
 
@@ -1573,10 +1573,10 @@ function DepositAddressStep({
1573
1573
  const status = await service.fetchLatestStatus(smartAccount);
1574
1574
  if (cancelled || depositHandledRef.current) return;
1575
1575
  const event = status.lastEvent;
1576
- const eventTxHash = _chunkEAEDK474cjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunkEAEDK474cjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1576
+ const eventTxHash = _chunk3UQQU6BEcjs.isDepositEvent.call(void 0, event) ? _nullishCoalesce(_chunk3UQQU6BEcjs.getEventTxHash.call(void 0, event), () => ( null)) : null;
1577
1577
  if (baselineTxHash === void 0) {
1578
1578
  baselineTxHash = eventTxHash;
1579
- } else if (eventTxHash && (!baselineTxHash || !_chunkEAEDK474cjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHash))) {
1579
+ } else if (eventTxHash && (!baselineTxHash || !_chunk3UQQU6BEcjs.txRefsMatch.call(void 0, eventTxHash, baselineTxHash))) {
1580
1580
  const details = getDepositEventDetails(event);
1581
1581
  const fallback = sourceSelectionRef.current;
1582
1582
  const chainId = _nullishCoalesce(details.chainId, () => ( fallback.chainId));
@@ -1799,7 +1799,7 @@ function DepositAddressStep({
1799
1799
  ] }),
1800
1800
  pollingError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-deposit-address-error", children: pollingError })
1801
1801
  ] }) }),
1802
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
1802
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UQQU6BEcjs.PoweredBy, {})
1803
1803
  ] });
1804
1804
  }
1805
1805
  DepositAddressStep.displayName = "DepositAddressStep";
@@ -1830,7 +1830,7 @@ function SolanaTokenSelectStep({
1830
1830
  setError(null);
1831
1831
  const portfolioBySymbol = {};
1832
1832
  try {
1833
- _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
1833
+ _chunk3UQQU6BEcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:request", {
1834
1834
  solanaAddress
1835
1835
  });
1836
1836
  const portfolio = await service.fetchSolanaPortfolio(solanaAddress);
@@ -1853,12 +1853,12 @@ function SolanaTokenSelectStep({
1853
1853
  };
1854
1854
  }
1855
1855
  }
1856
- _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
1856
+ _chunk3UQQU6BEcjs.debugLog.call(void 0, debug, "solana-token-select", "portfolio:success", {
1857
1857
  symbols: Object.keys(portfolioBySymbol)
1858
1858
  });
1859
1859
  } catch (err) {
1860
1860
  if (!active) return;
1861
- _chunkEAEDK474cjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
1861
+ _chunk3UQQU6BEcjs.debugError.call(void 0, debug, "solana-token-select", "portfolio:failure", err, {
1862
1862
  solanaAddress
1863
1863
  });
1864
1864
  setError(
@@ -1912,7 +1912,7 @@ function SolanaTokenSelectStep({
1912
1912
  style: { paddingTop: 4, overflow: "auto", maxHeight: 340 },
1913
1913
  children: [
1914
1914
  loading && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-loading-state", style: { padding: "40px 12px" }, children: [
1915
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.Spinner, { className: "rs-text-tertiary" }),
1915
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UQQU6BEcjs.Spinner, { className: "rs-text-tertiary" }),
1916
1916
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-text-sm rs-text-tertiary", children: "Loading balances" })
1917
1917
  ] }),
1918
1918
  !loading && rows.length === 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-empty-state", children: [
@@ -1949,7 +1949,7 @@ function SolanaTokenSelectStep({
1949
1949
  try {
1950
1950
  const raw = _viem.formatUnits.call(void 0, entry.balance, entry.token.decimals);
1951
1951
  const numeric = Number(raw);
1952
- formattedBalance = Number.isFinite(numeric) ? _chunkEAEDK474cjs.tokenFormatter.format(numeric) : raw;
1952
+ formattedBalance = Number.isFinite(numeric) ? _chunk3UQQU6BEcjs.tokenFormatter.format(numeric) : raw;
1953
1953
  } catch (e14) {
1954
1954
  formattedBalance = "...";
1955
1955
  }
@@ -1993,7 +1993,7 @@ function SolanaTokenSelectStep({
1993
1993
  ] })
1994
1994
  ] })
1995
1995
  ] }),
1996
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunkEAEDK474cjs.currencyFormatter.format(entry.balanceUsd) : `${formattedBalance} ${entry.token.symbol}` })
1996
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-asset-balance", children: entry.balanceUsd > 0 ? _chunk3UQQU6BEcjs.currencyFormatter.format(entry.balanceUsd) : `${formattedBalance} ${entry.token.symbol}` })
1997
1997
  ]
1998
1998
  },
1999
1999
  entry.token.symbol
@@ -2003,7 +2003,7 @@ function SolanaTokenSelectStep({
2003
2003
  }
2004
2004
  ),
2005
2005
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2006
- _chunkEAEDK474cjs.Button,
2006
+ _chunk3UQQU6BEcjs.Button,
2007
2007
  {
2008
2008
  onClick: () => selectedEntry && onContinue(
2009
2009
  selectedEntry.token,
@@ -2015,7 +2015,7 @@ function SolanaTokenSelectStep({
2015
2015
  children: "Continue"
2016
2016
  }
2017
2017
  ) }),
2018
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
2018
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UQQU6BEcjs.PoweredBy, {})
2019
2019
  ] });
2020
2020
  }
2021
2021
 
@@ -2063,7 +2063,7 @@ function SolanaAmountStep({
2063
2063
  const raw = _viem.formatUnits.call(void 0, balance, token.decimals);
2064
2064
  const numeric = Number(raw);
2065
2065
  if (!Number.isFinite(numeric)) return raw;
2066
- return _chunkEAEDK474cjs.tokenFormatter.format(numeric);
2066
+ return _chunk3UQQU6BEcjs.tokenFormatter.format(numeric);
2067
2067
  } catch (e16) {
2068
2068
  return "...";
2069
2069
  }
@@ -2081,7 +2081,7 @@ function SolanaAmountStep({
2081
2081
  }, [balance, token.decimals, tokenPriceUsd, balanceUsd]);
2082
2082
  const formattedBalanceUsd = _react.useMemo.call(void 0, () => {
2083
2083
  if (computedBalanceUsd === null || computedBalanceUsd <= 0) return null;
2084
- return _chunkEAEDK474cjs.currencyFormatter.format(computedBalanceUsd);
2084
+ return _chunk3UQQU6BEcjs.currencyFormatter.format(computedBalanceUsd);
2085
2085
  }, [computedBalanceUsd]);
2086
2086
  const spendableBalance = _react.useMemo.call(void 0, () => {
2087
2087
  if (!isNativeSol(token)) return balance;
@@ -2106,7 +2106,7 @@ function SolanaAmountStep({
2106
2106
  const factor = 10 ** maxDecimals;
2107
2107
  const truncated = Math.floor(value * factor) / factor;
2108
2108
  const formatted = truncated.toFixed(maxDecimals).replace(/\.?0+$/, "");
2109
- _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
2109
+ _chunk3UQQU6BEcjs.debugLog.call(void 0, debug, "solana-amount", "amount:preset", {
2110
2110
  percentage,
2111
2111
  symbol: token.symbol,
2112
2112
  formatted
@@ -2120,7 +2120,7 @@ function SolanaAmountStep({
2120
2120
  const handleContinue = () => {
2121
2121
  const numericAmount = parseFloat(amount);
2122
2122
  if (isNaN(numericAmount) || numericAmount <= 0) {
2123
- _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2123
+ _chunk3UQQU6BEcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2124
2124
  amount,
2125
2125
  reason: "nan-or-non-positive"
2126
2126
  });
@@ -2132,7 +2132,7 @@ function SolanaAmountStep({
2132
2132
  const usdValue = numericAmount;
2133
2133
  if (_optionalChain([uiConfig, 'optionalAccess', _44 => _44.maxDepositUsd]) && usdValue > uiConfig.maxDepositUsd) {
2134
2134
  setError(
2135
- `Maximum deposit is ${_chunkEAEDK474cjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
2135
+ `Maximum deposit is ${_chunk3UQQU6BEcjs.currencyFormatter.format(uiConfig.maxDepositUsd)}`
2136
2136
  );
2137
2137
  return;
2138
2138
  }
@@ -2147,7 +2147,7 @@ function SolanaAmountStep({
2147
2147
  try {
2148
2148
  amountInUnits = _viem.parseUnits.call(void 0, sourceAmountStr, token.decimals);
2149
2149
  } catch (e20) {
2150
- _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2150
+ _chunk3UQQU6BEcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2151
2151
  amount,
2152
2152
  sourceAmount: sourceAmountStr,
2153
2153
  reason: "parse-units-failed"
@@ -2157,7 +2157,7 @@ function SolanaAmountStep({
2157
2157
  }
2158
2158
  if (amountInUnits > spendableBalance) {
2159
2159
  const isReserveIssue = isNativeSol(token) && amountInUnits <= balance;
2160
- _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2160
+ _chunk3UQQU6BEcjs.debugLog.call(void 0, debug, "solana-amount", "amount:invalid", {
2161
2161
  amount,
2162
2162
  balance: balance.toString(),
2163
2163
  spendableBalance: spendableBalance.toString(),
@@ -2169,7 +2169,7 @@ function SolanaAmountStep({
2169
2169
  );
2170
2170
  return;
2171
2171
  }
2172
- _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
2172
+ _chunk3UQQU6BEcjs.debugLog.call(void 0, debug, "solana-amount", "amount:continue", {
2173
2173
  symbol: token.symbol,
2174
2174
  inputAmountUsd: amount,
2175
2175
  sourceAmount: sourceAmountStr,
@@ -2238,7 +2238,7 @@ function SolanaAmountStep({
2238
2238
  )
2239
2239
  ] }),
2240
2240
  _optionalChain([uiConfig, 'optionalAccess', _46 => _46.minDepositUsd]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-minimum", children: [
2241
- _chunkEAEDK474cjs.currencyFormatter.format(uiConfig.minDepositUsd),
2241
+ _chunk3UQQU6BEcjs.currencyFormatter.format(uiConfig.minDepositUsd),
2242
2242
  " minimum deposit"
2243
2243
  ] }),
2244
2244
  error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-amount-error", children: [
@@ -2264,7 +2264,7 @@ function SolanaAmountStep({
2264
2264
  ] })
2265
2265
  ] }),
2266
2266
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2267
- _chunkEAEDK474cjs.Button,
2267
+ _chunk3UQQU6BEcjs.Button,
2268
2268
  {
2269
2269
  onClick: handleContinue,
2270
2270
  fullWidth: true,
@@ -2272,7 +2272,7 @@ function SolanaAmountStep({
2272
2272
  children: _optionalChain([uiConfig, 'optionalAccess', _47 => _47.minDepositUsd]) && parseFloat(amount) > 0 && parseFloat(amount) < uiConfig.minDepositUsd ? "Update order" : "Continue"
2273
2273
  }
2274
2274
  ) }),
2275
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
2275
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UQQU6BEcjs.PoweredBy, {})
2276
2276
  ] });
2277
2277
  }
2278
2278
 
@@ -2316,7 +2316,7 @@ function SolanaConfirmStep({
2316
2316
  const receiveAmount = isSameToken ? formattedReceiveAmount : `~ ${formattedReceiveAmount}`;
2317
2317
  const handleConfirm = async () => {
2318
2318
  if (!solanaProvider) {
2319
- _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2319
+ _chunk3UQQU6BEcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2320
2320
  reason: "missing-provider"
2321
2321
  });
2322
2322
  setError("Solana wallet not connected");
@@ -2324,7 +2324,7 @@ function SolanaConfirmStep({
2324
2324
  }
2325
2325
  const parsedAmount = parseFloat(sourceAmount);
2326
2326
  if (isNaN(parsedAmount) || parsedAmount <= 0) {
2327
- _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2327
+ _chunk3UQQU6BEcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:blocked", {
2328
2328
  reason: "invalid-amount",
2329
2329
  sourceAmount
2330
2330
  });
@@ -2333,7 +2333,7 @@ function SolanaConfirmStep({
2333
2333
  }
2334
2334
  setError(null);
2335
2335
  setIsSubmitting(true);
2336
- _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
2336
+ _chunk3UQQU6BEcjs.debugLog.call(void 0, debug, "solana-confirm", "submit:start", {
2337
2337
  smartAccount,
2338
2338
  solanaAddress,
2339
2339
  solanaDepositAddress,
@@ -2343,7 +2343,7 @@ function SolanaConfirmStep({
2343
2343
  });
2344
2344
  try {
2345
2345
  const check = await service.checkAccount(smartAccount);
2346
- _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
2346
+ _chunk3UQQU6BEcjs.debugLog.call(void 0, debug, "solana-confirm", "check:success", {
2347
2347
  smartAccount,
2348
2348
  isRegistered: check.isRegistered,
2349
2349
  targetChain: check.targetChain,
@@ -2356,7 +2356,7 @@ function SolanaConfirmStep({
2356
2356
  }
2357
2357
  const connection = getSolanaConnection();
2358
2358
  const amountUnits = _viem.parseUnits.call(void 0, sourceAmount, token.decimals);
2359
- _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
2359
+ _chunk3UQQU6BEcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:start", {
2360
2360
  token: token.symbol,
2361
2361
  sourceAmount,
2362
2362
  amountUnits: amountUnits.toString()
@@ -2373,7 +2373,7 @@ function SolanaConfirmStep({
2373
2373
  token.mint,
2374
2374
  amountUnits
2375
2375
  );
2376
- _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
2376
+ _chunk3UQQU6BEcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:build:success", {
2377
2377
  token: token.symbol,
2378
2378
  instructionCount: transaction.instructions.length,
2379
2379
  feePayer: _optionalChain([transaction, 'access', _48 => _48.feePayer, 'optionalAccess', _49 => _49.toBase58, 'call', _50 => _50()]),
@@ -2384,15 +2384,15 @@ function SolanaConfirmStep({
2384
2384
  connection,
2385
2385
  transaction
2386
2386
  );
2387
- _chunkEAEDK474cjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
2387
+ _chunk3UQQU6BEcjs.debugLog.call(void 0, debug, "solana-confirm", "tx:sent", {
2388
2388
  txHash,
2389
2389
  amountUnits: amountUnits.toString()
2390
2390
  });
2391
2391
  onConfirm(txHash, amountUnits.toString());
2392
2392
  } catch (err) {
2393
2393
  const raw = err instanceof Error ? err.message : "Transfer failed";
2394
- const message = _chunkEAEDK474cjs.formatUserError.call(void 0, raw);
2395
- _chunkEAEDK474cjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
2394
+ const message = _chunk3UQQU6BEcjs.formatUserError.call(void 0, raw);
2395
+ _chunk3UQQU6BEcjs.debugError.call(void 0, debug, "solana-confirm", "submit:failure", err, {
2396
2396
  smartAccount,
2397
2397
  token: token.symbol,
2398
2398
  sourceAmount
@@ -2525,7 +2525,7 @@ function SolanaConfirmStep({
2525
2525
  ] })
2526
2526
  ] }),
2527
2527
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
2528
- _chunkEAEDK474cjs.Button,
2528
+ _chunk3UQQU6BEcjs.Button,
2529
2529
  {
2530
2530
  onClick: handleConfirm,
2531
2531
  loading: isSubmitting,
@@ -2534,7 +2534,7 @@ function SolanaConfirmStep({
2534
2534
  children: "Confirm Order"
2535
2535
  }
2536
2536
  ) }),
2537
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
2537
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UQQU6BEcjs.PoweredBy, {})
2538
2538
  ] });
2539
2539
  }
2540
2540
 
@@ -2600,13 +2600,13 @@ function DepositFlow({
2600
2600
  flowModeRef.current = flowMode;
2601
2601
  const logFlow = _react.useCallback.call(void 0,
2602
2602
  (message, data) => {
2603
- _chunkEAEDK474cjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
2603
+ _chunk3UQQU6BEcjs.debugLog.call(void 0, debug, "deposit-flow", message, data);
2604
2604
  },
2605
2605
  [debug]
2606
2606
  );
2607
2607
  const logFlowError = _react.useCallback.call(void 0,
2608
2608
  (message, error, data) => {
2609
- _chunkEAEDK474cjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
2609
+ _chunk3UQQU6BEcjs.debugError.call(void 0, debug, "deposit-flow", message, error, data);
2610
2610
  },
2611
2611
  [debug]
2612
2612
  );
@@ -2728,7 +2728,7 @@ function DepositFlow({
2728
2728
  return {
2729
2729
  ownerAddress: dappAddress,
2730
2730
  walletClient: void 0,
2731
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, targetChain))),
2731
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk3UQQU6BEcjs.getPublicClient.call(void 0, targetChain))),
2732
2732
  switchChain: void 0
2733
2733
  };
2734
2734
  }
@@ -2737,7 +2737,7 @@ function DepositFlow({
2737
2737
  return {
2738
2738
  ownerAddress: dappWalletClient.account.address,
2739
2739
  walletClient: dappWalletClient,
2740
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, fallbackChainId))),
2740
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk3UQQU6BEcjs.getPublicClient.call(void 0, fallbackChainId))),
2741
2741
  switchChain: dappSwitchChain
2742
2742
  };
2743
2743
  }
@@ -2751,7 +2751,7 @@ function DepositFlow({
2751
2751
  return {
2752
2752
  ownerAddress: dappAddress,
2753
2753
  walletClient: void 0,
2754
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, targetChain))),
2754
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk3UQQU6BEcjs.getPublicClient.call(void 0, targetChain))),
2755
2755
  switchChain: void 0
2756
2756
  };
2757
2757
  }
@@ -2760,7 +2760,7 @@ function DepositFlow({
2760
2760
  return {
2761
2761
  ownerAddress: dappWalletClient.account.address,
2762
2762
  walletClient: dappWalletClient,
2763
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, fallbackChainId))),
2763
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk3UQQU6BEcjs.getPublicClient.call(void 0, fallbackChainId))),
2764
2764
  switchChain: dappSwitchChain
2765
2765
  };
2766
2766
  }
@@ -2768,7 +2768,7 @@ function DepositFlow({
2768
2768
  return {
2769
2769
  ownerAddress: reownWallet.address,
2770
2770
  walletClient: reownWallet.walletClient,
2771
- publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, targetChain))),
2771
+ publicClient: _nullishCoalesce(reownWallet.publicClient, () => ( _chunk3UQQU6BEcjs.getPublicClient.call(void 0, targetChain))),
2772
2772
  switchChain: reownWallet.switchChain
2773
2773
  };
2774
2774
  }
@@ -2806,7 +2806,7 @@ function DepositFlow({
2806
2806
  return {
2807
2807
  ownerAddress: dappAddress,
2808
2808
  walletClient: void 0,
2809
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, targetChain))),
2809
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk3UQQU6BEcjs.getPublicClient.call(void 0, targetChain))),
2810
2810
  switchChain: void 0
2811
2811
  };
2812
2812
  }
@@ -3254,7 +3254,7 @@ function DepositFlow({
3254
3254
  ]);
3255
3255
  if (showConnectStep) {
3256
3256
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3257
- _chunkEAEDK474cjs.ConnectStep,
3257
+ _chunk3UQQU6BEcjs.ConnectStep,
3258
3258
  {
3259
3259
  walletOptions,
3260
3260
  selectedWalletId: selectedWalletIdEffective,
@@ -3316,7 +3316,7 @@ function DepositFlow({
3316
3316
  }
3317
3317
  ),
3318
3318
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3319
- _chunkEAEDK474cjs.ProcessingStep,
3319
+ _chunk3UQQU6BEcjs.ProcessingStep,
3320
3320
  {
3321
3321
  smartAccount: step.smartAccount,
3322
3322
  txHash: step.txHash,
@@ -3438,7 +3438,7 @@ function DepositFlow({
3438
3438
  ) })
3439
3439
  ] }) : null,
3440
3440
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3441
- _chunkEAEDK474cjs.ProcessingStep,
3441
+ _chunk3UQQU6BEcjs.ProcessingStep,
3442
3442
  {
3443
3443
  smartAccount: step.smartAccount,
3444
3444
  txHash: step.txHash,
@@ -3471,7 +3471,7 @@ function DepositFlow({
3471
3471
  if (_optionalChain([signerContext, 'access', _103 => _103.publicClient, 'access', _104 => _104.chain, 'optionalAccess', _105 => _105.id]) === chainId) {
3472
3472
  return signerContext.publicClient;
3473
3473
  }
3474
- return _chunkEAEDK474cjs.getPublicClient.call(void 0, chainId);
3474
+ return _chunk3UQQU6BEcjs.getPublicClient.call(void 0, chainId);
3475
3475
  };
3476
3476
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
3477
3477
  step.type === "setup" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -3542,7 +3542,7 @@ function DepositFlow({
3542
3542
  }
3543
3543
  ),
3544
3544
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3545
- _chunkEAEDK474cjs.ProcessingStep,
3545
+ _chunk3UQQU6BEcjs.ProcessingStep,
3546
3546
  {
3547
3547
  smartAccount: step.smartAccount,
3548
3548
  txHash: step.txHash,
@@ -3570,7 +3570,7 @@ function DepositFlow({
3570
3570
  // src/DepositModal.tsx
3571
3571
 
3572
3572
  var ReownDepositInner = _react.lazy.call(void 0,
3573
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-XKP2Z55X.cjs"))).then((m) => ({ default: m.DepositModalReown }))
3573
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./DepositModalReown-ZBBLHE6Z.cjs"))).then((m) => ({ default: m.DepositModalReown }))
3574
3574
  );
3575
3575
  function DepositModal(props) {
3576
3576
  const needsReown = !!props.reownAppId;
@@ -3643,7 +3643,7 @@ function DepositModalInner({
3643
3643
  const targetChain = _chunkR6U6BHCVcjs.getChainId.call(void 0, targetChainProp);
3644
3644
  const sourceChain = sourceChainProp ? _chunkR6U6BHCVcjs.getChainId.call(void 0, sourceChainProp) : void 0;
3645
3645
  const service = _react.useMemo.call(void 0,
3646
- () => _chunkEAEDK474cjs.createDepositService.call(void 0, backendUrl, {
3646
+ () => _chunk3UQQU6BEcjs.createDepositService.call(void 0, backendUrl, {
3647
3647
  debug,
3648
3648
  debugScope: "service:deposit"
3649
3649
  }),
@@ -3651,7 +3651,7 @@ function DepositModalInner({
3651
3651
  );
3652
3652
  _react.useEffect.call(void 0, () => {
3653
3653
  if (isOpen && modalRef.current) {
3654
- _chunkEAEDK474cjs.applyTheme.call(void 0, modalRef.current, theme);
3654
+ _chunk3UQQU6BEcjs.applyTheme.call(void 0, modalRef.current, theme);
3655
3655
  }
3656
3656
  }, [isOpen, theme]);
3657
3657
  _react.useEffect.call(void 0, () => {
@@ -3690,7 +3690,7 @@ function DepositModalInner({
3690
3690
  const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _114 => _114.title]), () => ( "Deposit"));
3691
3691
  const canGoBack = currentStepIndex > 0 && currentStepIndex < 4 && backHandlerRef.current !== void 0;
3692
3692
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
3693
- _chunkEAEDK474cjs.Modal,
3693
+ _chunk3UQQU6BEcjs.Modal,
3694
3694
  {
3695
3695
  isOpen,
3696
3696
  onClose,
@@ -3783,7 +3783,7 @@ function DepositModalInner({
3783
3783
  balance.title,
3784
3784
  ":"
3785
3785
  ] }),
3786
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunkEAEDK474cjs.currencyFormatter.format(totalBalanceUsd) : null))) })
3786
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunk3UQQU6BEcjs.currencyFormatter.format(totalBalanceUsd) : null))) })
3787
3787
  ] })
3788
3788
  ] }),
3789
3789
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -25,7 +25,7 @@ import {
25
25
  toEvmCaip2,
26
26
  tokenFormatter,
27
27
  txRefsMatch
28
- } from "./chunk-JQTV5JTB.mjs";
28
+ } from "./chunk-LY3AZLPH.mjs";
29
29
  import {
30
30
  DEFAULT_BACKEND_URL,
31
31
  DEFAULT_SIGNER_ADDRESS,
@@ -3570,7 +3570,7 @@ function DepositFlow({
3570
3570
  // src/DepositModal.tsx
3571
3571
  import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
3572
3572
  var ReownDepositInner = lazy(
3573
- () => import("./DepositModalReown-5QKEE7R3.mjs").then((m) => ({ default: m.DepositModalReown }))
3573
+ () => import("./DepositModalReown-A5YFTV2E.mjs").then((m) => ({ default: m.DepositModalReown }))
3574
3574
  );
3575
3575
  function DepositModal(props) {
3576
3576
  const needsReown = !!props.reownAppId;
@@ -20,7 +20,7 @@ import {
20
20
  loadSessionOwnerFromStorage,
21
21
  saveSessionOwnerToStorage,
22
22
  toEvmCaip2
23
- } from "./chunk-JQTV5JTB.mjs";
23
+ } from "./chunk-LY3AZLPH.mjs";
24
24
  import {
25
25
  DEFAULT_BACKEND_URL,
26
26
  DEFAULT_SIGNER_ADDRESS,
@@ -1453,7 +1453,7 @@ function WithdrawFlow({
1453
1453
  // src/WithdrawModal.tsx
1454
1454
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
1455
1455
  var ReownWithdrawInner = lazy(
1456
- () => import("./WithdrawModalReown-K57JK52O.mjs").then((m) => ({
1456
+ () => import("./WithdrawModalReown-GS2QN3GA.mjs").then((m) => ({
1457
1457
  default: m.WithdrawModalReown
1458
1458
  }))
1459
1459
  );
@@ -810,12 +810,12 @@ function formatUserError(raw) {
810
810
  }
811
811
 
812
812
  // src/core/theme.ts
813
- var RADIUS_VALUES = {
814
- none: "0",
815
- sm: "8px",
816
- md: "10px",
817
- lg: "14px",
818
- full: "9999px"
813
+ var RADIUS_SCALE = {
814
+ none: { sm: "0", md: "0", lg: "0" },
815
+ sm: { sm: "4px", md: "6px", lg: "8px" },
816
+ md: { sm: "8px", md: "10px", lg: "14px" },
817
+ lg: { sm: "10px", md: "14px", lg: "18px" },
818
+ full: { sm: "9999px", md: "9999px", lg: "9999px" }
819
819
  };
820
820
  function applyTheme(element, theme) {
821
821
  if (!element) return;
@@ -848,7 +848,11 @@ function applyTheme(element, theme) {
848
848
  element.style.setProperty("--rs-background", theme.backgroundColor);
849
849
  }
850
850
  if (theme?.radius) {
851
- element.style.setProperty("--rs-radius", RADIUS_VALUES[theme.radius]);
851
+ const scale = RADIUS_SCALE[theme.radius];
852
+ element.style.setProperty("--rs-radius-sm", scale.sm);
853
+ element.style.setProperty("--rs-radius-md", scale.md);
854
+ element.style.setProperty("--rs-radius-lg", scale.lg);
855
+ element.style.setProperty("--rs-radius", scale.md);
852
856
  }
853
857
  }
854
858
 
@@ -20,7 +20,7 @@
20
20
 
21
21
 
22
22
 
23
- var _chunkEAEDK474cjs = require('./chunk-EAEDK474.cjs');
23
+ var _chunk3UQQU6BEcjs = require('./chunk-3UQQU6BE.cjs');
24
24
 
25
25
 
26
26
 
@@ -141,7 +141,7 @@ function WithdrawFormStep({
141
141
  setIsSwitching(true);
142
142
  switchChain(asset.chainId).catch((err) => {
143
143
  const raw = err instanceof Error ? err.message : "Failed to switch chain";
144
- setError(_chunkEAEDK474cjs.formatUserError.call(void 0, raw));
144
+ setError(_chunk3UQQU6BEcjs.formatUserError.call(void 0, raw));
145
145
  }).finally(() => {
146
146
  setIsSwitching(false);
147
147
  });
@@ -161,7 +161,7 @@ function WithdrawFormStep({
161
161
  return;
162
162
  }
163
163
  try {
164
- const bal = _chunkEAEDK474cjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
164
+ const bal = _chunk3UQQU6BEcjs.isNativeAsset.call(void 0, asset) ? await publicClient.getBalance({ address: safeAddress }) : await publicClient.readContract({
165
165
  address: asset.token,
166
166
  abi: _viem.erc20Abi,
167
167
  functionName: "balanceOf",
@@ -264,7 +264,7 @@ function WithdrawFormStep({
264
264
  await onSubmit(recipient, amount);
265
265
  } catch (err) {
266
266
  const raw = err instanceof Error ? err.message : "Withdrawal failed";
267
- setError(_chunkEAEDK474cjs.formatUserError.call(void 0, raw));
267
+ setError(_chunk3UQQU6BEcjs.formatUserError.call(void 0, raw));
268
268
  } finally {
269
269
  setIsSubmitting(false);
270
270
  }
@@ -272,11 +272,11 @@ function WithdrawFormStep({
272
272
  if (isBalanceLoading) {
273
273
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
274
274
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step-body rs-withdraw-loading", children: [
275
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.Spinner, { className: "rs-spinner--lg" }),
275
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UQQU6BEcjs.Spinner, { className: "rs-spinner--lg" }),
276
276
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-title", children: "Loading on-chain balance" }),
277
277
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-withdraw-loading-subtitle", children: chainMismatch ? `Switch to ${_chunkR6U6BHCVcjs.getChainName.call(void 0, asset.chainId)} to continue.` : "Please wait before withdrawing." })
278
278
  ] }),
279
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
279
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UQQU6BEcjs.PoweredBy, {})
280
280
  ] });
281
281
  }
282
282
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-step", children: [
@@ -375,7 +375,7 @@ function WithdrawFormStep({
375
375
  ] })
376
376
  ] }),
377
377
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-withdraw-amount-info", children: [
378
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunkEAEDK474cjs.currencyFormatter.format(amountUsd) : "$0.00" }),
378
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-withdraw-usd", children: amountUsd !== null ? _chunk3UQQU6BEcjs.currencyFormatter.format(amountUsd) : "$0.00" }),
379
379
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-withdraw-balance", children: [
380
380
  "Balance: ",
381
381
  formattedBalance,
@@ -569,7 +569,7 @@ function WithdrawFormStep({
569
569
  ] })
570
570
  ] }),
571
571
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-step-footer", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
572
- _chunkEAEDK474cjs.Button,
572
+ _chunk3UQQU6BEcjs.Button,
573
573
  {
574
574
  onClick: handleWithdraw,
575
575
  fullWidth: true,
@@ -578,7 +578,7 @@ function WithdrawFormStep({
578
578
  children: isBusy ? "Preparing..." : !recipient ? "Enter Recipient Address" : !amount ? "Enter Withdraw Amount" : "Withdraw"
579
579
  }
580
580
  ) }),
581
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAEDK474cjs.PoweredBy, {})
581
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3UQQU6BEcjs.PoweredBy, {})
582
582
  ] });
583
583
  }
584
584
  WithdrawFormStep.displayName = "WithdrawFormStep";
@@ -910,13 +910,13 @@ function WithdrawFlow({
910
910
  const [isConnectSelectionConfirmed, setIsConnectSelectionConfirmed] = _react.useState.call(void 0, false);
911
911
  const logFlow = _react.useCallback.call(void 0,
912
912
  (message, data) => {
913
- _chunkEAEDK474cjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
913
+ _chunk3UQQU6BEcjs.debugLog.call(void 0, debug, "withdraw-flow", message, data);
914
914
  },
915
915
  [debug]
916
916
  );
917
917
  const logFlowError = _react.useCallback.call(void 0,
918
918
  (message, error, data) => {
919
- _chunkEAEDK474cjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
919
+ _chunk3UQQU6BEcjs.debugError.call(void 0, debug, "withdraw-flow", message, error, data);
920
920
  },
921
921
  [debug]
922
922
  );
@@ -975,14 +975,14 @@ function WithdrawFlow({
975
975
  return {
976
976
  ownerAddress: dappAddress,
977
977
  walletClient: _nullishCoalesce(dappWalletClient, () => ( void 0)),
978
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, sourceChain))),
978
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk3UQQU6BEcjs.getPublicClient.call(void 0, sourceChain))),
979
979
  switchChain: dappSwitchChain
980
980
  };
981
981
  }
982
982
  return {
983
983
  ownerAddress: dappWalletClient.account.address,
984
984
  walletClient: dappWalletClient,
985
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, sourceChain))),
985
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk3UQQU6BEcjs.getPublicClient.call(void 0, sourceChain))),
986
986
  switchChain: dappSwitchChain
987
987
  };
988
988
  }
@@ -993,7 +993,7 @@ function WithdrawFlow({
993
993
  return {
994
994
  ownerAddress: dappWalletClient.account.address,
995
995
  walletClient: dappWalletClient,
996
- publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, sourceChain))),
996
+ publicClient: _nullishCoalesce(dappPublicClient, () => ( _chunk3UQQU6BEcjs.getPublicClient.call(void 0, sourceChain))),
997
997
  switchChain: dappSwitchChain
998
998
  };
999
999
  }
@@ -1023,7 +1023,7 @@ function WithdrawFlow({
1023
1023
  const symbol = _chunkR6U6BHCVcjs.getTokenSymbol.call(void 0, sourceToken, sourceChain);
1024
1024
  const decimals = _chunkR6U6BHCVcjs.getTokenDecimalsByAddress.call(void 0, sourceToken, sourceChain);
1025
1025
  return {
1026
- id: _chunkEAEDK474cjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1026
+ id: _chunk3UQQU6BEcjs.getAssetId.call(void 0, { chainId: sourceChain, token: sourceToken }),
1027
1027
  chainId: sourceChain,
1028
1028
  token: sourceToken,
1029
1029
  symbol,
@@ -1073,15 +1073,15 @@ function WithdrawFlow({
1073
1073
  [logFlowError, onError]
1074
1074
  );
1075
1075
  const resolveSessionOwner = _react.useCallback.call(void 0, async (eoaAddress) => {
1076
- const localOwner = _chunkEAEDK474cjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
1076
+ const localOwner = _chunk3UQQU6BEcjs.loadSessionOwnerFromStorage.call(void 0, eoaAddress);
1077
1077
  if (localOwner) {
1078
1078
  return {
1079
- account: _chunkEAEDK474cjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
1079
+ account: _chunk3UQQU6BEcjs.accountFromPrivateKey.call(void 0, localOwner.privateKey),
1080
1080
  address: localOwner.address
1081
1081
  };
1082
1082
  }
1083
- const created = _chunkEAEDK474cjs.createSessionOwnerKey.call(void 0, );
1084
- _chunkEAEDK474cjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
1083
+ const created = _chunk3UQQU6BEcjs.createSessionOwnerKey.call(void 0, );
1084
+ _chunk3UQQU6BEcjs.saveSessionOwnerToStorage.call(void 0, eoaAddress, created.privateKey, created.address);
1085
1085
  return {
1086
1086
  account: created.account,
1087
1087
  address: created.address
@@ -1111,7 +1111,7 @@ function WithdrawFlow({
1111
1111
  const setup = await service.setupAccount({
1112
1112
  ownerAddress: ownerAddress2,
1113
1113
  sessionOwnerAddress: sessionOwner.address,
1114
- targetChain: _chunkEAEDK474cjs.toEvmCaip2.call(void 0, targetChain),
1114
+ targetChain: _chunk3UQQU6BEcjs.toEvmCaip2.call(void 0, targetChain),
1115
1115
  targetToken,
1116
1116
  signerAddress,
1117
1117
  sessionChainIds,
@@ -1138,7 +1138,7 @@ function WithdrawFlow({
1138
1138
  primaryType: typedData.primaryType,
1139
1139
  message: typedData.message
1140
1140
  });
1141
- const sessionDetails = _chunkEAEDK474cjs.buildSessionDetails.call(void 0,
1141
+ const sessionDetails = _chunk3UQQU6BEcjs.buildSessionDetails.call(void 0,
1142
1142
  setup.sessionDetailsUnsigned,
1143
1143
  signature
1144
1144
  );
@@ -1152,7 +1152,7 @@ function WithdrawFlow({
1152
1152
  eoaAddress: ownerAddress2,
1153
1153
  sessionOwner: sessionOwner.address,
1154
1154
  target: {
1155
- chain: _chunkEAEDK474cjs.toEvmCaip2.call(void 0, targetChain),
1155
+ chain: _chunk3UQQU6BEcjs.toEvmCaip2.call(void 0, targetChain),
1156
1156
  token: targetToken,
1157
1157
  recipient
1158
1158
  }
@@ -1161,7 +1161,7 @@ function WithdrawFlow({
1161
1161
  }
1162
1162
  handleConnected(ownerAddress2, smartAccount);
1163
1163
  const amountUnits = _viem.parseUnits.call(void 0, amountValue, asset.decimals);
1164
- const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _26 => _26.publicClient]), () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, sourceChain)));
1164
+ const pc = _nullishCoalesce(_optionalChain([signerContext, 'optionalAccess', _26 => _26.publicClient]), () => ( _chunk3UQQU6BEcjs.getPublicClient.call(void 0, sourceChain)));
1165
1165
  let result;
1166
1166
  if (onSignTransaction) {
1167
1167
  const transferData = isSourceNative ? { to: smartAccount, value: amountUnits, data: "0x" } : {
@@ -1184,7 +1184,7 @@ function WithdrawFlow({
1184
1184
  const { signature } = await onSignTransaction(request);
1185
1185
  const relayResult = await service.relayWithdraw({
1186
1186
  smartAccount,
1187
- chainId: _chunkEAEDK474cjs.toEvmCaip2.call(void 0, sourceChain),
1187
+ chainId: _chunk3UQQU6BEcjs.toEvmCaip2.call(void 0, sourceChain),
1188
1188
  safeAddress,
1189
1189
  safeTransaction: request.typedData.message,
1190
1190
  signature
@@ -1242,7 +1242,7 @@ function WithdrawFlow({
1242
1242
  targetChain,
1243
1243
  targetToken
1244
1244
  });
1245
- handleError(_chunkEAEDK474cjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1245
+ handleError(_chunk3UQQU6BEcjs.formatUserError.call(void 0, raw), "WITHDRAW_FLOW_ERROR");
1246
1246
  throw err;
1247
1247
  } finally {
1248
1248
  setIsSubmitting(false);
@@ -1377,7 +1377,7 @@ function WithdrawFlow({
1377
1377
  }, [walletOptions, ownerAddress, _optionalChain([reownWallet, 'optionalAccess', _41 => _41.icon])]);
1378
1378
  if (showConnectStep) {
1379
1379
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-body", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1380
- _chunkEAEDK474cjs.ConnectStep,
1380
+ _chunk3UQQU6BEcjs.ConnectStep,
1381
1381
  {
1382
1382
  walletOptions,
1383
1383
  selectedWalletId: selectedWalletIdEffective,
@@ -1400,7 +1400,7 @@ function WithdrawFlow({
1400
1400
  const resolvedOwnerAddress = signerContext.ownerAddress;
1401
1401
  const resolvedConnectedAddress = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([signerContext, 'access', _42 => _42.walletClient, 'optionalAccess', _43 => _43.account, 'optionalAccess', _44 => _44.address]), () => ( _optionalChain([reownWallet, 'optionalAccess', _45 => _45.address]))), () => ( _optionalChain([dappWalletClient, 'optionalAccess', _46 => _46.account, 'optionalAccess', _47 => _47.address]))), () => ( resolvedOwnerAddress));
1402
1402
  const resolvedDefaultRecipient = _nullishCoalesce(defaultRecipient, () => ( resolvedConnectedAddress));
1403
- const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunkEAEDK474cjs.getPublicClient.call(void 0, sourceChain)));
1403
+ const formPublicClient = _nullishCoalesce(signerContext.publicClient, () => ( _chunk3UQQU6BEcjs.getPublicClient.call(void 0, sourceChain)));
1404
1404
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-body", children: [
1405
1405
  step.type === "form" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1406
1406
  WithdrawFormStep,
@@ -1427,7 +1427,7 @@ function WithdrawFlow({
1427
1427
  }
1428
1428
  ),
1429
1429
  step.type === "processing" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1430
- _chunkEAEDK474cjs.ProcessingStep,
1430
+ _chunk3UQQU6BEcjs.ProcessingStep,
1431
1431
  {
1432
1432
  smartAccount: step.smartAccount,
1433
1433
  txHash: step.txHash,
@@ -1453,7 +1453,7 @@ function WithdrawFlow({
1453
1453
  // src/WithdrawModal.tsx
1454
1454
 
1455
1455
  var ReownWithdrawInner = _react.lazy.call(void 0,
1456
- () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-CN2NJUYL.cjs"))).then((m) => ({
1456
+ () => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModalReown-45SPXE5O.cjs"))).then((m) => ({
1457
1457
  default: m.WithdrawModalReown
1458
1458
  }))
1459
1459
  );
@@ -1511,12 +1511,12 @@ function WithdrawModalInner({
1511
1511
  const targetChain = _chunkR6U6BHCVcjs.getChainId.call(void 0, targetChainProp);
1512
1512
  const sourceChain = _chunkR6U6BHCVcjs.getChainId.call(void 0, sourceChainProp);
1513
1513
  const service = _react.useMemo.call(void 0,
1514
- () => _chunkEAEDK474cjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1514
+ () => _chunk3UQQU6BEcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:withdraw" }),
1515
1515
  [backendUrl, debug]
1516
1516
  );
1517
1517
  _react.useEffect.call(void 0, () => {
1518
1518
  if (isOpen && modalRef.current) {
1519
- _chunkEAEDK474cjs.applyTheme.call(void 0, modalRef.current, theme);
1519
+ _chunk3UQQU6BEcjs.applyTheme.call(void 0, modalRef.current, theme);
1520
1520
  }
1521
1521
  }, [isOpen, theme]);
1522
1522
  const hasCalledReady = _react.useRef.call(void 0, false);
@@ -1552,7 +1552,7 @@ function WithdrawModalInner({
1552
1552
  const title = _nullishCoalesce(_optionalChain([branding, 'optionalAccess', _56 => _56.title]), () => ( "Withdraw"));
1553
1553
  const canGoBack = currentStepIndex > 0 && currentStepIndex < 3 && backHandlerRef.current;
1554
1554
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1555
- _chunkEAEDK474cjs.Modal,
1555
+ _chunk3UQQU6BEcjs.Modal,
1556
1556
  {
1557
1557
  isOpen,
1558
1558
  onClose,
@@ -1611,7 +1611,7 @@ function WithdrawModalInner({
1611
1611
  ] }),
1612
1612
  balance && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-modal-header-balance", children: [
1613
1613
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-label", children: balance.title }),
1614
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunkEAEDK474cjs.currencyFormatter.format(totalBalanceUsd) : null))) })
1614
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-modal-header-balance-value", children: _nullishCoalesce(balance.amount, () => ( (totalBalanceUsd !== null ? _chunk3UQQU6BEcjs.currencyFormatter.format(totalBalanceUsd) : null))) })
1615
1615
  ] })
1616
1616
  ] }),
1617
1617
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
package/dist/deposit.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQJVXCBUIcjs = require('./chunk-QJVXCBUI.cjs');
4
- require('./chunk-EAEDK474.cjs');
3
+ var _chunk6BYN2IMRcjs = require('./chunk-6BYN2IMR.cjs');
4
+ require('./chunk-3UQQU6BE.cjs');
5
5
  require('./chunk-R6U6BHCV.cjs');
6
6
 
7
7
 
8
- exports.DepositModal = _chunkQJVXCBUIcjs.DepositModal;
8
+ exports.DepositModal = _chunk6BYN2IMRcjs.DepositModal;
package/dist/deposit.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-AJUR6FAP.mjs";
4
- import "./chunk-JQTV5JTB.mjs";
3
+ } from "./chunk-6KDGB2W2.mjs";
4
+ import "./chunk-LY3AZLPH.mjs";
5
5
  import "./chunk-CIXHTOO3.mjs";
6
6
  export {
7
7
  DepositModal
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQJVXCBUIcjs = require('./chunk-QJVXCBUI.cjs');
3
+ var _chunk6BYN2IMRcjs = require('./chunk-6BYN2IMR.cjs');
4
4
 
5
5
 
6
- var _chunkXMNGYDDBcjs = require('./chunk-XMNGYDDB.cjs');
7
- require('./chunk-EAEDK474.cjs');
6
+ var _chunkTVGZCNBWcjs = require('./chunk-TVGZCNBW.cjs');
7
+ require('./chunk-3UQQU6BE.cjs');
8
8
 
9
9
 
10
10
 
@@ -66,4 +66,4 @@ var _chunkR6U6BHCVcjs = require('./chunk-R6U6BHCV.cjs');
66
66
 
67
67
 
68
68
 
69
- exports.CHAIN_BY_ID = _chunkR6U6BHCVcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkR6U6BHCVcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkR6U6BHCVcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunkQJVXCBUIcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkR6U6BHCVcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkR6U6BHCVcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkXMNGYDDBcjs.WithdrawModal; exports.chainRegistry = _chunkR6U6BHCVcjs.chainRegistry; exports.findChainIdForToken = _chunkR6U6BHCVcjs.findChainIdForToken; exports.getChainBadge = _chunkR6U6BHCVcjs.getChainBadge; exports.getChainIcon = _chunkR6U6BHCVcjs.getChainIcon; exports.getChainId = _chunkR6U6BHCVcjs.getChainId; exports.getChainName = _chunkR6U6BHCVcjs.getChainName; exports.getChainObject = _chunkR6U6BHCVcjs.getChainObject; exports.getExplorerName = _chunkR6U6BHCVcjs.getExplorerName; exports.getExplorerTxUrl = _chunkR6U6BHCVcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkR6U6BHCVcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkR6U6BHCVcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkR6U6BHCVcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkR6U6BHCVcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkR6U6BHCVcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkR6U6BHCVcjs.getTokenAddress; exports.getTokenDecimals = _chunkR6U6BHCVcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkR6U6BHCVcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkR6U6BHCVcjs.getTokenIcon; exports.getTokenSymbol = _chunkR6U6BHCVcjs.getTokenSymbol; exports.getUsdcAddress = _chunkR6U6BHCVcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkR6U6BHCVcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkR6U6BHCVcjs.isSupportedTokenAddressForChain;
69
+ exports.CHAIN_BY_ID = _chunkR6U6BHCVcjs.CHAIN_BY_ID; exports.DEFAULT_BACKEND_URL = _chunkR6U6BHCVcjs.DEFAULT_BACKEND_URL; exports.DEFAULT_SIGNER_ADDRESS = _chunkR6U6BHCVcjs.DEFAULT_SIGNER_ADDRESS; exports.DepositModal = _chunk6BYN2IMRcjs.DepositModal; exports.NATIVE_TOKEN_ADDRESS = _chunkR6U6BHCVcjs.NATIVE_TOKEN_ADDRESS; exports.SOURCE_CHAINS = _chunkR6U6BHCVcjs.SOURCE_CHAINS; exports.SUPPORTED_CHAINS = _chunkR6U6BHCVcjs.SUPPORTED_CHAINS; exports.WithdrawModal = _chunkTVGZCNBWcjs.WithdrawModal; exports.chainRegistry = _chunkR6U6BHCVcjs.chainRegistry; exports.findChainIdForToken = _chunkR6U6BHCVcjs.findChainIdForToken; exports.getChainBadge = _chunkR6U6BHCVcjs.getChainBadge; exports.getChainIcon = _chunkR6U6BHCVcjs.getChainIcon; exports.getChainId = _chunkR6U6BHCVcjs.getChainId; exports.getChainName = _chunkR6U6BHCVcjs.getChainName; exports.getChainObject = _chunkR6U6BHCVcjs.getChainObject; exports.getExplorerName = _chunkR6U6BHCVcjs.getExplorerName; exports.getExplorerTxUrl = _chunkR6U6BHCVcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkR6U6BHCVcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkR6U6BHCVcjs.getSupportedChainIds; exports.getSupportedTargetTokens = _chunkR6U6BHCVcjs.getSupportedTargetTokens; exports.getSupportedTokenSymbolsForChain = _chunkR6U6BHCVcjs.getSupportedTokenSymbolsForChain; exports.getTargetTokenSymbolsForChain = _chunkR6U6BHCVcjs.getTargetTokenSymbolsForChain; exports.getTokenAddress = _chunkR6U6BHCVcjs.getTokenAddress; exports.getTokenDecimals = _chunkR6U6BHCVcjs.getTokenDecimals; exports.getTokenDecimalsByAddress = _chunkR6U6BHCVcjs.getTokenDecimalsByAddress; exports.getTokenIcon = _chunkR6U6BHCVcjs.getTokenIcon; exports.getTokenSymbol = _chunkR6U6BHCVcjs.getTokenSymbol; exports.getUsdcAddress = _chunkR6U6BHCVcjs.getUsdcAddress; exports.getUsdcDecimals = _chunkR6U6BHCVcjs.getUsdcDecimals; exports.isSupportedTokenAddressForChain = _chunkR6U6BHCVcjs.isSupportedTokenAddressForChain;
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-AJUR6FAP.mjs";
3
+ } from "./chunk-6KDGB2W2.mjs";
4
4
  import {
5
5
  WithdrawModal
6
- } from "./chunk-QOEACKBH.mjs";
7
- import "./chunk-JQTV5JTB.mjs";
6
+ } from "./chunk-IUKSOPEY.mjs";
7
+ import "./chunk-LY3AZLPH.mjs";
8
8
  import {
9
9
  CHAIN_BY_ID,
10
10
  DEFAULT_BACKEND_URL,
package/dist/reown.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkQJVXCBUIcjs = require('./chunk-QJVXCBUI.cjs');
3
+ var _chunk6BYN2IMRcjs = require('./chunk-6BYN2IMR.cjs');
4
4
 
5
5
 
6
- var _chunkXMNGYDDBcjs = require('./chunk-XMNGYDDB.cjs');
7
- require('./chunk-EAEDK474.cjs');
6
+ var _chunkTVGZCNBWcjs = require('./chunk-TVGZCNBW.cjs');
7
+ require('./chunk-3UQQU6BE.cjs');
8
8
  require('./chunk-R6U6BHCV.cjs');
9
9
 
10
10
 
11
11
 
12
- exports.DepositModal = _chunkQJVXCBUIcjs.DepositModal; exports.WithdrawModal = _chunkXMNGYDDBcjs.WithdrawModal;
12
+ exports.DepositModal = _chunk6BYN2IMRcjs.DepositModal; exports.WithdrawModal = _chunkTVGZCNBWcjs.WithdrawModal;
package/dist/reown.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DepositModal
3
- } from "./chunk-AJUR6FAP.mjs";
3
+ } from "./chunk-6KDGB2W2.mjs";
4
4
  import {
5
5
  WithdrawModal
6
- } from "./chunk-QOEACKBH.mjs";
7
- import "./chunk-JQTV5JTB.mjs";
6
+ } from "./chunk-IUKSOPEY.mjs";
7
+ import "./chunk-LY3AZLPH.mjs";
8
8
  import "./chunk-CIXHTOO3.mjs";
9
9
  export {
10
10
  DepositModal,
package/dist/withdraw.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkXMNGYDDBcjs = require('./chunk-XMNGYDDB.cjs');
4
- require('./chunk-EAEDK474.cjs');
3
+ var _chunkTVGZCNBWcjs = require('./chunk-TVGZCNBW.cjs');
4
+ require('./chunk-3UQQU6BE.cjs');
5
5
  require('./chunk-R6U6BHCV.cjs');
6
6
 
7
7
 
8
- exports.WithdrawModal = _chunkXMNGYDDBcjs.WithdrawModal;
8
+ exports.WithdrawModal = _chunkTVGZCNBWcjs.WithdrawModal;
package/dist/withdraw.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  WithdrawModal
3
- } from "./chunk-QOEACKBH.mjs";
4
- import "./chunk-JQTV5JTB.mjs";
3
+ } from "./chunk-IUKSOPEY.mjs";
4
+ import "./chunk-LY3AZLPH.mjs";
5
5
  import "./chunk-CIXHTOO3.mjs";
6
6
  export {
7
7
  WithdrawModal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhinestone/deposit-modal",
3
- "version": "0.1.55",
3
+ "version": "0.1.56",
4
4
  "description": "React modal component for Rhinestone cross-chain deposits",
5
5
  "author": "Rhinestone <dev@rhinestone.wtf>",
6
6
  "bugs": {