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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/{DepositModalReown-33D36CMP.cjs → DepositModalReown-HIILH3DK.cjs} +9 -9
  2. package/dist/{DepositModalReown-U3YSVVNC.mjs → DepositModalReown-TQXGVA7H.mjs} +5 -5
  3. package/dist/{chunk-LMBTPDLB.cjs → chunk-3RUJRZSF.cjs} +1 -1
  4. package/dist/{chunk-N5226HLL.mjs → chunk-7DGQ5BUP.mjs} +1 -1
  5. package/dist/{chunk-UWRBNFZX.cjs → chunk-AALNMWJY.cjs} +60 -60
  6. package/dist/{chunk-CLR3HPCT.mjs → chunk-AQQ64XRR.mjs} +1 -1
  7. package/dist/{chunk-O4CZI63F.cjs → chunk-GAQ7H35N.cjs} +49 -49
  8. package/dist/{chunk-YMV3HHPR.cjs → chunk-HD7GC4GC.cjs} +3 -3
  9. package/dist/{chunk-GDYWSTQK.mjs → chunk-I7EURT3L.mjs} +126 -10
  10. package/dist/{chunk-QRRL4SL5.cjs → chunk-J2PDDECW.cjs} +74 -50
  11. package/dist/{chunk-VDKPQKAE.cjs → chunk-LMPJFLJF.cjs} +474 -358
  12. package/dist/{chunk-UD6JF6ME.mjs → chunk-MOSAWAHZ.mjs} +1 -1
  13. package/dist/{chunk-IWAI6VZ2.mjs → chunk-SR43WXGR.mjs} +28 -4
  14. package/dist/{chunk-VHKTHX3U.mjs → chunk-STVAA4QY.mjs} +2 -2
  15. package/dist/{chunk-44HXNZSA.cjs → chunk-UVZHN5LU.cjs} +55 -55
  16. package/dist/{chunk-R3XTKCJD.mjs → chunk-Y4SUF43W.mjs} +2 -2
  17. package/dist/claim.cjs +5 -5
  18. package/dist/claim.mjs +4 -4
  19. package/dist/constants.cjs +2 -2
  20. package/dist/constants.d.cts +1 -1
  21. package/dist/constants.d.ts +1 -1
  22. package/dist/constants.mjs +1 -1
  23. package/dist/deposit.cjs +6 -6
  24. package/dist/deposit.mjs +5 -5
  25. package/dist/index.cjs +8 -8
  26. package/dist/index.mjs +7 -7
  27. package/dist/styles.css +10 -0
  28. package/dist/withdraw.cjs +5 -5
  29. package/dist/withdraw.mjs +4 -4
  30. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkVDKPQKAEcjs = require('./chunk-VDKPQKAE.cjs');
4
- require('./chunk-UWRBNFZX.cjs');
5
- require('./chunk-YMV3HHPR.cjs');
3
+ var _chunkLMPJFLJFcjs = require('./chunk-LMPJFLJF.cjs');
4
+ require('./chunk-AALNMWJY.cjs');
5
+ require('./chunk-HD7GC4GC.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkQRRL4SL5cjs = require('./chunk-QRRL4SL5.cjs');
10
- require('./chunk-LMBTPDLB.cjs');
9
+ var _chunkJ2PDDECWcjs = require('./chunk-J2PDDECW.cjs');
10
+ require('./chunk-3RUJRZSF.cjs');
11
11
  require('./chunk-W3WWC4LD.cjs');
12
12
 
13
13
 
@@ -88,14 +88,14 @@ function buildTransports(rpcUrls) {
88
88
  const transports = {};
89
89
  for (const network of EVM_NETWORKS) {
90
90
  const id = Number(network.id);
91
- transports[id] = _viem.http.call(void 0, _chunkQRRL4SL5cjs.rpcUrlFor.call(void 0, rpcUrls, id));
91
+ transports[id] = _viem.http.call(void 0, _chunkJ2PDDECWcjs.rpcUrlFor.call(void 0, rpcUrls, id));
92
92
  }
93
93
  return transports;
94
94
  }
95
95
  function getEvmRpcFingerprint(rpcUrls) {
96
96
  return EVM_NETWORKS.map((network) => {
97
97
  const id = Number(network.id);
98
- return `${id}=${_nullishCoalesce(_chunkQRRL4SL5cjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
98
+ return `${id}=${_nullishCoalesce(_chunkJ2PDDECWcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
99
99
  }).join("|");
100
100
  }
101
101
  var cachedAdapter = null;
@@ -189,7 +189,7 @@ function useReownWallet() {
189
189
  await switchChainAsync({ chainId });
190
190
  }
191
191
  } catch (err) {
192
- if (_chunkQRRL4SL5cjs.isUnsupportedChainSwitchError.call(void 0, err)) {
192
+ if (_chunkJ2PDDECWcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
193
193
  throw new Error(
194
194
  `Switch to ${_chunkEGB3NWMLcjs.getChainName.call(void 0, chainId)} in your wallet to continue`
195
195
  );
@@ -226,7 +226,7 @@ function DepositModalWithReown(props) {
226
226
  reown.disconnect();
227
227
  }, [reown.disconnect]);
228
228
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
229
- _chunkVDKPQKAEcjs.DepositModalInner,
229
+ _chunkLMPJFLJFcjs.DepositModalInner,
230
230
  {
231
231
  ...props,
232
232
  reownWallet: reownWithSolana,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-GDYWSTQK.mjs";
4
- import "./chunk-N5226HLL.mjs";
5
- import "./chunk-UD6JF6ME.mjs";
3
+ } from "./chunk-I7EURT3L.mjs";
4
+ import "./chunk-7DGQ5BUP.mjs";
5
+ import "./chunk-MOSAWAHZ.mjs";
6
6
  import {
7
7
  isUnsupportedChainSwitchError,
8
8
  rpcUrlFor
9
- } from "./chunk-IWAI6VZ2.mjs";
10
- import "./chunk-CLR3HPCT.mjs";
9
+ } from "./chunk-SR43WXGR.mjs";
10
+ import "./chunk-AQQ64XRR.mjs";
11
11
  import "./chunk-YJP274QC.mjs";
12
12
  import {
13
13
  SUPPORTED_CHAINS,
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/core/version.ts
2
- var MODAL_VERSION = "0.0.0-dev-20260727175848";
2
+ var MODAL_VERSION = "0.0.0-dev-20260728140228";
3
3
 
4
4
 
5
5
 
@@ -20,7 +20,7 @@ import {
20
20
  rpcUrlFor,
21
21
  tokenAmountToNumber,
22
22
  useLatestRef
23
- } from "./chunk-IWAI6VZ2.mjs";
23
+ } from "./chunk-SR43WXGR.mjs";
24
24
  import {
25
25
  CHAIN_BY_ID,
26
26
  NATIVE_TOKEN_ADDRESS,
@@ -20,7 +20,7 @@
20
20
 
21
21
 
22
22
 
23
- var _chunkQRRL4SL5cjs = require('./chunk-QRRL4SL5.cjs');
23
+ var _chunkJ2PDDECWcjs = require('./chunk-J2PDDECW.cjs');
24
24
 
25
25
 
26
26
 
@@ -37,7 +37,7 @@ var _viem = require('viem');
37
37
  var _chains = require('viem/chains');
38
38
  var clientCache = /* @__PURE__ */ new Map();
39
39
  function getPublicClient(chainId, rpcUrls) {
40
- const url = _chunkQRRL4SL5cjs.rpcUrlFor.call(void 0, rpcUrls, chainId);
40
+ const url = _chunkJ2PDDECWcjs.rpcUrlFor.call(void 0, rpcUrls, chainId);
41
41
  const cacheKey = `${chainId}|${_nullishCoalesce(url, () => ( ""))}`;
42
42
  let client = clientCache.get(cacheKey);
43
43
  if (!client) {
@@ -52,7 +52,7 @@ function getPublicClient(chainId, rpcUrls) {
52
52
  }
53
53
  var hyperEvmClientCache = /* @__PURE__ */ new Map();
54
54
  function getHyperEvmReadClient(rpcUrls) {
55
- const url = _chunkQRRL4SL5cjs.rpcUrlFor.call(void 0, rpcUrls, _chains.hyperliquid.id);
55
+ const url = _chunkJ2PDDECWcjs.rpcUrlFor.call(void 0, rpcUrls, _chains.hyperliquid.id);
56
56
  const cacheKey = _nullishCoalesce(url, () => ( ""));
57
57
  let client = hyperEvmClientCache.get(cacheKey);
58
58
  if (!client) {
@@ -244,7 +244,7 @@ function FeesAccordion({ total, rows, tooltip }) {
244
244
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-fees-accordion-summary", children: [
245
245
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-fees-accordion-label", children: [
246
246
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Fees" }),
247
- tooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tooltip, { content: tooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fees info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.InfoIcon, {}) }) })
247
+ tooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Tooltip, { content: tooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-info", "aria-label": "Fees info", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.InfoIcon, {}) }) })
248
248
  ] }),
249
249
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
250
250
  "button",
@@ -262,7 +262,7 @@ function FeesAccordion({ total, rows, tooltip }) {
262
262
  {
263
263
  className: `rs-fees-accordion-chevron${open ? " rs-fees-accordion-chevron--open" : ""}`,
264
264
  "aria-hidden": "true",
265
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.ChevronDownIcon, {})
265
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.ChevronDownIcon, {})
266
266
  }
267
267
  )
268
268
  ]
@@ -284,7 +284,7 @@ function FeesAccordion({ total, rows, tooltip }) {
284
284
  {
285
285
  className: "rs-review-detail-info",
286
286
  "aria-label": `${row.label} info`,
287
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.InfoIcon, {})
287
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.InfoIcon, {})
288
288
  }
289
289
  ) })
290
290
  ] })
@@ -310,13 +310,13 @@ function SwappedReceipt({
310
310
  }) {
311
311
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
312
312
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
313
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.CheckIcon, {}), title: "Deposit successful" }),
313
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.CheckIcon, {}), title: "Deposit successful" }),
314
314
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
315
315
  onrampMethod && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
316
316
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Onramp method" }),
317
317
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
318
318
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: onrampMethod }),
319
- onrampMethodIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon rs-review-detail-icon--square", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.CdnIcon, { src: onrampMethodIcon }) })
319
+ onrampMethodIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon rs-review-detail-icon--square", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.CdnIcon, { src: onrampMethodIcon }) })
320
320
  ] })
321
321
  ] }),
322
322
  amountPaid && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -327,7 +327,7 @@ function SwappedReceipt({
327
327
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Deposited amount" }),
328
328
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
329
329
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: depositedAmount }),
330
- depositedSymbol && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.TokenIcon, { symbol: depositedSymbol }) })
330
+ depositedSymbol && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.TokenIcon, { symbol: depositedSymbol }) })
331
331
  ] })
332
332
  ] }),
333
333
  feesTotal != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -340,11 +340,11 @@ function SwappedReceipt({
340
340
  )
341
341
  ] }),
342
342
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-button-row", children: [
343
- onNewDeposit && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.Button, { variant: "outline", onClick: onNewDeposit, fullWidth: true, children: newLabel }),
344
- onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.Button, { onClick: onClose, fullWidth: true, children: "Done" })
343
+ onNewDeposit && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.Button, { variant: "outline", onClick: onNewDeposit, fullWidth: true, children: newLabel }),
344
+ onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.Button, { onClick: onClose, fullWidth: true, children: "Done" })
345
345
  ] })
346
346
  ] }),
347
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.PoweredBy, {})
347
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.PoweredBy, {})
348
348
  ] });
349
349
  }
350
350
  SwappedReceipt.displayName = "SwappedReceipt";
@@ -380,7 +380,7 @@ function getExchangeLogoSrc(name, connection) {
380
380
  }
381
381
  function getExchangeLogo(name, connection) {
382
382
  const src = getExchangeLogoSrc(name, connection);
383
- return src ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.CdnIcon, { src }) : null;
383
+ return src ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.CdnIcon, { src }) : null;
384
384
  }
385
385
 
386
386
  // src/core/webhook.ts
@@ -839,7 +839,7 @@ function ProcessingStep({
839
839
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
840
840
  const pollTimeoutRef = _react.useRef.call(void 0, null);
841
841
  const escalatedDelayRef = _react.useRef.call(void 0, false);
842
- const processingContextRef = _chunkQRRL4SL5cjs.useLatestRef.call(void 0, {
842
+ const processingContextRef = _chunkJ2PDDECWcjs.useLatestRef.call(void 0, {
843
843
  amount,
844
844
  sourceChain,
845
845
  sourceToken,
@@ -848,9 +848,9 @@ function ProcessingStep({
848
848
  targetChain,
849
849
  targetToken
850
850
  });
851
- const onDepositCompleteRef = _chunkQRRL4SL5cjs.useLatestRef.call(void 0, onDepositComplete);
852
- const onDepositFailedRef = _chunkQRRL4SL5cjs.useLatestRef.call(void 0, onDepositFailed);
853
- const onErrorRef = _chunkQRRL4SL5cjs.useLatestRef.call(void 0, onError);
851
+ const onDepositCompleteRef = _chunkJ2PDDECWcjs.useLatestRef.call(void 0, onDepositComplete);
852
+ const onDepositFailedRef = _chunkJ2PDDECWcjs.useLatestRef.call(void 0, onDepositFailed);
853
+ const onErrorRef = _chunkJ2PDDECWcjs.useLatestRef.call(void 0, onError);
854
854
  const initialTerminalEventRef = _react.useRef.call(void 0, null);
855
855
  const [state, setState] = _react.useState.call(void 0, () => {
856
856
  if (directTransfer) return { type: "complete" };
@@ -894,7 +894,7 @@ function ProcessingStep({
894
894
  completedAt,
895
895
  endedAt: completedAt
896
896
  }));
897
- _chunkQRRL4SL5cjs.debugLog.call(void 0, debug, "processing", "direct-transfer:complete", {
897
+ _chunkJ2PDDECWcjs.debugLog.call(void 0, debug, "processing", "direct-transfer:complete", {
898
898
  txHash,
899
899
  flowLabel
900
900
  });
@@ -925,7 +925,7 @@ function ProcessingStep({
925
925
  if (!outcome) return;
926
926
  if (outcome.type === "complete") {
927
927
  const context = processingContextRef.current;
928
- _chunkQRRL4SL5cjs.debugLog.call(void 0, debug, "processing", "initial-event:complete", {
928
+ _chunkJ2PDDECWcjs.debugLog.call(void 0, debug, "processing", "initial-event:complete", {
929
929
  txHash,
930
930
  destinationTxHash: outcome.destinationTxHash,
931
931
  event: event.type
@@ -941,7 +941,7 @@ function ProcessingStep({
941
941
  })]);
942
942
  return;
943
943
  }
944
- _chunkQRRL4SL5cjs.debugLog.call(void 0, debug, "processing", "initial-event:failed", {
944
+ _chunkJ2PDDECWcjs.debugLog.call(void 0, debug, "processing", "initial-event:failed", {
945
945
  txHash,
946
946
  message: outcome.message,
947
947
  event: event.type
@@ -1047,7 +1047,7 @@ function ProcessingStep({
1047
1047
  async function pollStatus() {
1048
1048
  try {
1049
1049
  const account = sourceChain === "solana" && solanaDepositAddress ? solanaDepositAddress : smartAccount;
1050
- _chunkQRRL4SL5cjs.debugLog.call(void 0, debug, "processing", "poll:request", {
1050
+ _chunkJ2PDDECWcjs.debugLog.call(void 0, debug, "processing", "poll:request", {
1051
1051
  account,
1052
1052
  txHash,
1053
1053
  intervalMs: pollIntervalRef.current
@@ -1058,7 +1058,7 @@ function ProcessingStep({
1058
1058
  const eventForCurrentTx = eventMatchesTx ? lastEvent2 : void 0;
1059
1059
  if (lastEvent2) {
1060
1060
  const eventData = lastEvent2.data;
1061
- _chunkQRRL4SL5cjs.debugLog.call(void 0, debug, "processing", "poll:event", {
1061
+ _chunkJ2PDDECWcjs.debugLog.call(void 0, debug, "processing", "poll:event", {
1062
1062
  type: lastEvent2.type,
1063
1063
  matchesTx: eventMatchesTx,
1064
1064
  intentId: _optionalChain([eventData, 'optionalAccess', _83 => _83.intentId])
@@ -1068,7 +1068,7 @@ function ProcessingStep({
1068
1068
  if (_optionalChain([eventForCurrentTx, 'optionalAccess', _84 => _84.type]) === "bridge-complete") {
1069
1069
  setState({ type: "complete", lastEvent: eventForCurrentTx });
1070
1070
  const destinationTxHash2 = _optionalChain([eventForCurrentTx, 'access', _85 => _85.data, 'optionalAccess', _86 => _86.destination, 'optionalAccess', _87 => _87.transactionHash]);
1071
- _chunkQRRL4SL5cjs.debugLog.call(void 0, debug, "processing", "state:complete", {
1071
+ _chunkJ2PDDECWcjs.debugLog.call(void 0, debug, "processing", "state:complete", {
1072
1072
  txHash,
1073
1073
  destinationTxHash: destinationTxHash2,
1074
1074
  event: eventForCurrentTx.type
@@ -1092,7 +1092,7 @@ function ProcessingStep({
1092
1092
  message: formatted.message,
1093
1093
  lastEvent: eventForCurrentTx
1094
1094
  });
1095
- _chunkQRRL4SL5cjs.debugLog.call(void 0, debug, "processing", "state:failed", {
1095
+ _chunkJ2PDDECWcjs.debugLog.call(void 0, debug, "processing", "state:failed", {
1096
1096
  txHash,
1097
1097
  message: formatted.message,
1098
1098
  code: formatted.code
@@ -1107,7 +1107,7 @@ function ProcessingStep({
1107
1107
  message: errorMessage,
1108
1108
  lastEvent: eventForCurrentTx
1109
1109
  });
1110
- _chunkQRRL4SL5cjs.debugLog.call(void 0, debug, "processing", "state:error-event", {
1110
+ _chunkJ2PDDECWcjs.debugLog.call(void 0, debug, "processing", "state:error-event", {
1111
1111
  txHash,
1112
1112
  message: errorMessage
1113
1113
  });
@@ -1120,7 +1120,7 @@ function ProcessingStep({
1120
1120
  }));
1121
1121
  scheduleNextPoll();
1122
1122
  } catch (error) {
1123
- _chunkQRRL4SL5cjs.debugError.call(void 0, debug, "processing", "poll:failure", error, {
1123
+ _chunkJ2PDDECWcjs.debugError.call(void 0, debug, "processing", "poll:failure", error, {
1124
1124
  smartAccount,
1125
1125
  txHash,
1126
1126
  intervalMs: pollIntervalRef.current
@@ -1135,7 +1135,7 @@ function ProcessingStep({
1135
1135
  pollIntervalRef.current * BACKOFF_MULTIPLIER,
1136
1136
  MAX_POLL_INTERVAL
1137
1137
  );
1138
- _chunkQRRL4SL5cjs.debugLog.call(void 0, debug, "processing", "poll:scheduled", {
1138
+ _chunkJ2PDDECWcjs.debugLog.call(void 0, debug, "processing", "poll:scheduled", {
1139
1139
  nextIntervalMs: pollIntervalRef.current
1140
1140
  });
1141
1141
  pollStatus();
@@ -1168,7 +1168,7 @@ function ProcessingStep({
1168
1168
  escalatedDelayRef.current = true;
1169
1169
  setHasEscalatedDelay(true);
1170
1170
  const message = "Transfer is taking longer than expected. Your funds are safe and processing will continue automatically.";
1171
- _chunkQRRL4SL5cjs.debugLog.call(void 0, debug, "processing", "state:delay-escalated", {
1171
+ _chunkJ2PDDECWcjs.debugLog.call(void 0, debug, "processing", "state:delay-escalated", {
1172
1172
  txHash,
1173
1173
  timeoutMs: ESCALATED_DELAY_MS
1174
1174
  });
@@ -1192,7 +1192,7 @@ function ProcessingStep({
1192
1192
  const sourceExplorerUrl = _chunkEGB3NWMLcjs.getExplorerTxUrl.call(void 0, displaySourceChain, txHash);
1193
1193
  const destExplorerUrl = destinationTxHash ? _chunkEGB3NWMLcjs.getExplorerTxUrl.call(void 0, targetChain, destinationTxHash) : null;
1194
1194
  const sourceDisplay = (() => {
1195
- const resolved = _chunkQRRL4SL5cjs.resolveTokenDisplay.call(void 0, displaySourceToken, displaySourceChain, {
1195
+ const resolved = _chunkJ2PDDECWcjs.resolveTokenDisplay.call(void 0, displaySourceToken, displaySourceChain, {
1196
1196
  symbol: _nullishCoalesce(providedSourceSymbol, () => ( (displaySourceChain === "solana" ? "SOL" : "Token"))),
1197
1197
  decimals: providedSourceDecimals
1198
1198
  });
@@ -1202,10 +1202,10 @@ function ProcessingStep({
1202
1202
  };
1203
1203
  })();
1204
1204
  const sourceSymbol = sourceDisplay.symbol;
1205
- const formattedSentAmount = _nullishCoalesce(_nullishCoalesce(_chunkQRRL4SL5cjs.formatRawTokenAmount.call(void 0, displayAmount, sourceDisplay), () => ( // Not raw base units (e.g. a decimal string) — render the number as-is.
1206
- _chunkQRRL4SL5cjs.formatTokenAmount.call(void 0, Number(displayAmount), sourceDisplay.symbol))), () => ( displayAmount));
1205
+ const formattedSentAmount = _nullishCoalesce(_nullishCoalesce(_chunkJ2PDDECWcjs.formatRawTokenAmount.call(void 0, displayAmount, sourceDisplay), () => ( // Not raw base units (e.g. a decimal string) — render the number as-is.
1206
+ _chunkJ2PDDECWcjs.formatTokenAmount.call(void 0, Number(displayAmount), sourceDisplay.symbol))), () => ( displayAmount));
1207
1207
  const eventDestination = getEventDestinationDetails(lastEvent);
1208
- const targetDisplay = _chunkQRRL4SL5cjs.resolveTokenDisplay.call(void 0,
1208
+ const targetDisplay = _chunkJ2PDDECWcjs.resolveTokenDisplay.call(void 0,
1209
1209
  _nullishCoalesce(eventDestination.token, () => ( targetToken)),
1210
1210
  _nullishCoalesce(eventDestination.chainId, () => ( targetChain)),
1211
1211
  // Dapp deposits default to USDC targets; mirror the source symbol last so
@@ -1213,7 +1213,7 @@ function ProcessingStep({
1213
1213
  { symbol: _nullishCoalesce(providedSourceSymbol, () => ( "USDC")) }
1214
1214
  );
1215
1215
  const targetSymbol = targetDisplay.symbol;
1216
- const formattedDestinationAmount = eventDestination.amount !== void 0 ? _chunkQRRL4SL5cjs.formatRawTokenAmount.call(void 0, eventDestination.amount, targetDisplay) : void 0;
1216
+ const formattedDestinationAmount = eventDestination.amount !== void 0 ? _chunkJ2PDDECWcjs.formatRawTokenAmount.call(void 0, eventDestination.amount, targetDisplay) : void 0;
1217
1217
  const amountUsdNumber = amountUsd !== void 0 && Number(amountUsd) > 0 ? Number(amountUsd) : void 0;
1218
1218
  const prices = useTokenPrices(service, [
1219
1219
  {
@@ -1228,15 +1228,15 @@ function ProcessingStep({
1228
1228
  }
1229
1229
  ]);
1230
1230
  const estimatedReceiveAmount = (() => {
1231
- const estimate = _chunkQRRL4SL5cjs.estimateReceiveAmount.call(void 0, {
1232
- sourceAmount: _chunkQRRL4SL5cjs.tokenAmountToNumber.call(void 0, displayAmount, sourceDisplay.decimals),
1231
+ const estimate = _chunkJ2PDDECWcjs.estimateReceiveAmount.call(void 0, {
1232
+ sourceAmount: _chunkJ2PDDECWcjs.tokenAmountToNumber.call(void 0, displayAmount, sourceDisplay.decimals),
1233
1233
  sourceSymbol: sourceDisplay.symbol,
1234
1234
  targetSymbol: targetDisplay.symbol,
1235
1235
  sourceAmountUsd: amountUsdNumber,
1236
- sourceTrusted: _chunkQRRL4SL5cjs.isRecognizedToken.call(void 0, displaySourceToken, displaySourceChain),
1236
+ sourceTrusted: _chunkJ2PDDECWcjs.isRecognizedToken.call(void 0, displaySourceToken, displaySourceChain),
1237
1237
  prices
1238
1238
  });
1239
- return estimate !== void 0 ? _chunkQRRL4SL5cjs.formatTokenAmount.call(void 0, estimate, targetDisplay.symbol) : void 0;
1239
+ return estimate !== void 0 ? _chunkJ2PDDECWcjs.formatTokenAmount.call(void 0, estimate, targetDisplay.symbol) : void 0;
1240
1240
  })();
1241
1241
  const receiveDisplay = formattedDestinationAmount ? `${formattedDestinationAmount} ${targetSymbol}` : estimatedReceiveAmount !== void 0 ? `~${estimatedReceiveAmount} ${targetSymbol}` : amountUsdNumber !== void 0 ? `~$${amountUsdNumber.toFixed(2)}` : (
1242
1242
  // Cross-token with no price and no USD context (rare QR case):
@@ -1247,12 +1247,12 @@ function ProcessingStep({
1247
1247
  if (sourceSymbol.toUpperCase() !== targetSymbol.toUpperCase()) {
1248
1248
  return void 0;
1249
1249
  }
1250
- const sentValue = _chunkQRRL4SL5cjs.tokenAmountToNumber.call(void 0, displayAmount, sourceDisplay.decimals);
1251
- const receivedValue = eventDestination.amount !== void 0 ? _chunkQRRL4SL5cjs.tokenAmountToNumber.call(void 0, eventDestination.amount, targetDisplay.decimals) : void 0;
1250
+ const sentValue = _chunkJ2PDDECWcjs.tokenAmountToNumber.call(void 0, displayAmount, sourceDisplay.decimals);
1251
+ const receivedValue = eventDestination.amount !== void 0 ? _chunkJ2PDDECWcjs.tokenAmountToNumber.call(void 0, eventDestination.amount, targetDisplay.decimals) : void 0;
1252
1252
  if (sentValue === void 0 || receivedValue === void 0 || sentValue <= receivedValue) {
1253
1253
  return void 0;
1254
1254
  }
1255
- const formatted = _chunkQRRL4SL5cjs.formatTokenAmount.call(void 0, sentValue - receivedValue, sourceSymbol);
1255
+ const formatted = _chunkJ2PDDECWcjs.formatTokenAmount.call(void 0, sentValue - receivedValue, sourceSymbol);
1256
1256
  if (formatted === void 0 || Number(formatted.replace(/,/g, "")) === 0) {
1257
1257
  return void 0;
1258
1258
  }
@@ -1279,7 +1279,7 @@ function ProcessingStep({
1279
1279
  ] }) : isFailed ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-body-header", children: [
1280
1280
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FailedBadge, {}),
1281
1281
  /* @__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 }) })
1282
- ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.WalletIcon, {}), title: stateTitle });
1282
+ ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.WalletIcon, {}), title: stateTitle });
1283
1283
  if (isComplete && isSwappedOrder) {
1284
1284
  const effectivePaymentMethod = _nullishCoalesce(_nullishCoalesce(_optionalChain([swappedContext, 'optionalAccess', _105 => _105.method]), () => ( _optionalChain([swappedFiatContext, 'optionalAccess', _106 => _106.paymentMethod]))), () => ( null));
1285
1285
  const onrampMethod = effectivePaymentMethod ? formatPaymentMethod(effectivePaymentMethod) : null;
@@ -1347,7 +1347,7 @@ function ProcessingStep({
1347
1347
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
1348
1348
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1349
1349
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
1350
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.CdnIcon, { src: sourceChainIcon }) }),
1350
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.CdnIcon, { src: sourceChainIcon }) }),
1351
1351
  sourceExplorerUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1352
1352
  "a",
1353
1353
  {
@@ -1356,7 +1356,7 @@ function ProcessingStep({
1356
1356
  rel: "noopener noreferrer",
1357
1357
  className: "rs-review-detail-link",
1358
1358
  "aria-label": "View source transaction",
1359
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.ExternalLinkIcon, {})
1359
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.ExternalLinkIcon, {})
1360
1360
  }
1361
1361
  )
1362
1362
  ] })
@@ -1365,7 +1365,7 @@ function ProcessingStep({
1365
1365
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
1366
1366
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1367
1367
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
1368
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.CdnIcon, { src: targetChainIcon }) }),
1368
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.CdnIcon, { src: targetChainIcon }) }),
1369
1369
  destExplorerUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1370
1370
  "a",
1371
1371
  {
@@ -1374,7 +1374,7 @@ function ProcessingStep({
1374
1374
  rel: "noopener noreferrer",
1375
1375
  className: "rs-review-detail-link",
1376
1376
  "aria-label": "View destination transaction",
1377
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.ExternalLinkIcon, {})
1377
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.ExternalLinkIcon, {})
1378
1378
  }
1379
1379
  )
1380
1380
  ] })
@@ -1411,7 +1411,7 @@ function ProcessingStep({
1411
1411
  " ",
1412
1412
  sourceSymbol
1413
1413
  ] }),
1414
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.TokenIcon, { symbol: sourceSymbol }) })
1414
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.TokenIcon, { symbol: sourceSymbol }) })
1415
1415
  ] })
1416
1416
  ] })
1417
1417
  ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -1422,14 +1422,14 @@ function ProcessingStep({
1422
1422
  " ",
1423
1423
  sourceSymbol
1424
1424
  ] }),
1425
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.TokenIcon, { symbol: sourceSymbol }) })
1425
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.TokenIcon, { symbol: sourceSymbol }) })
1426
1426
  ] })
1427
1427
  ] }),
1428
1428
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1429
1429
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: isProcessing ? "Receive" : "Received" }),
1430
1430
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1431
1431
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
1432
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.TokenIcon, { symbol: targetSymbol }) })
1432
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.TokenIcon, { symbol: targetSymbol }) })
1433
1433
  ] })
1434
1434
  ] }),
1435
1435
  isFailed && balanceAfterUsd !== void 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -1458,7 +1458,7 @@ function ProcessingStep({
1458
1458
  {
1459
1459
  className: "rs-review-detail-info",
1460
1460
  "aria-label": "Fee info",
1461
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.InfoIcon, {})
1461
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.InfoIcon, {})
1462
1462
  }
1463
1463
  ) })
1464
1464
  ] })
@@ -1484,16 +1484,16 @@ function ProcessingStep({
1484
1484
  {
1485
1485
  className: "rs-review-detail-info",
1486
1486
  "aria-label": "Fee info",
1487
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.InfoIcon, {})
1487
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.InfoIcon, {})
1488
1488
  }
1489
1489
  ) })
1490
1490
  ] })
1491
1491
  ] });
1492
1492
  })()
1493
1493
  ] }),
1494
- isFailed && failureMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.Callout, { variant: "error", children: failureMessage }),
1494
+ isFailed && failureMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.Callout, { variant: "error", children: failureMessage }),
1495
1495
  isProcessing && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1496
- _chunkQRRL4SL5cjs.Button,
1496
+ _chunkJ2PDDECWcjs.Button,
1497
1497
  {
1498
1498
  fullWidth: true,
1499
1499
  disabled: true,
@@ -1503,18 +1503,18 @@ function ProcessingStep({
1503
1503
  }
1504
1504
  ),
1505
1505
  isComplete && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-button-row", children: [
1506
- onNewDeposit && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkQRRL4SL5cjs.Button, { variant: "outline", onClick: onNewDeposit, fullWidth: true, children: [
1506
+ onNewDeposit && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkJ2PDDECWcjs.Button, { variant: "outline", onClick: onNewDeposit, fullWidth: true, children: [
1507
1507
  "New ",
1508
1508
  flowNoun
1509
1509
  ] }),
1510
- onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.Button, { onClick: onClose, fullWidth: true, children: "Done" })
1510
+ onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.Button, { onClick: onClose, fullWidth: true, children: "Done" })
1511
1511
  ] }),
1512
1512
  isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-button-row", children: [
1513
- onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.Button, { variant: "outline", onClick: onClose, fullWidth: true, children: "Cancel" }),
1514
- handleRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.Button, { onClick: handleRetry, fullWidth: true, children: "Try again" })
1513
+ onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.Button, { variant: "outline", onClick: onClose, fullWidth: true, children: "Cancel" }),
1514
+ handleRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.Button, { onClick: handleRetry, fullWidth: true, children: "Try again" })
1515
1515
  ] })
1516
1516
  ] }),
1517
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQRRL4SL5cjs.PoweredBy, {})
1517
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.PoweredBy, {})
1518
1518
  ] });
1519
1519
  }
1520
1520
 
@@ -1598,7 +1598,7 @@ async function runAccountSetup(input, deps) {
1598
1598
  }
1599
1599
  try {
1600
1600
  const salt = deriveAccountSalt(input);
1601
- _chunkQRRL4SL5cjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
1601
+ _chunkJ2PDDECWcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
1602
1602
  salt,
1603
1603
  recipient: input.recipient,
1604
1604
  targetChain: input.targetChain,
@@ -1624,7 +1624,7 @@ async function runAccountSetup(input, deps) {
1624
1624
  cacheKey
1625
1625
  };
1626
1626
  } catch (error) {
1627
- _chunkQRRL4SL5cjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
1627
+ _chunkJ2PDDECWcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
1628
1628
  recipient: input.recipient
1629
1629
  });
1630
1630
  if (error instanceof SetupError) throw error;
@@ -1635,7 +1635,7 @@ function runAccountSetupDeduped(input, deps, requestKey) {
1635
1635
  const now = Date.now();
1636
1636
  const existing = setupRequestDedupe.get(requestKey);
1637
1637
  if (existing && (!existing.settled || existing.expiresAt > now)) {
1638
- _chunkQRRL4SL5cjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
1638
+ _chunkJ2PDDECWcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
1639
1639
  recipient: input.recipient,
1640
1640
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
1641
1641
  });
@@ -1,5 +1,5 @@
1
1
  // src/core/version.ts
2
- var MODAL_VERSION = "0.0.0-dev-20260727175848";
2
+ var MODAL_VERSION = "0.0.0-dev-20260728140228";
3
3
 
4
4
  export {
5
5
  MODAL_VERSION