@rhinestone/deposit-modal 0.14.0 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +6 -12
  2. package/dist/{ClaimModal-SEKNWRMA.mjs → ClaimModal-GDFENSLV.mjs} +5 -5
  3. package/dist/ClaimModal-L3FUBI5U.cjs +13 -0
  4. package/dist/{DepositModalReown-Q2JMLT47.mjs → DepositModalReown-2EVV64OA.mjs} +29 -27
  5. package/dist/{DepositModalReown-46LPVFB6.cjs → DepositModalReown-GAD45GIC.cjs} +76 -74
  6. package/dist/WithdrawModal-FAQH35NG.cjs +12 -0
  7. package/dist/{WithdrawModal-5ICGD4HJ.mjs → WithdrawModal-IKUHF5CF.mjs} +4 -4
  8. package/dist/{chunk-7ICSHJFE.cjs → chunk-4J5ADVIN.cjs} +71 -67
  9. package/dist/{chunk-KTUVSKR4.mjs → chunk-5Q5CSVKF.mjs} +74 -32
  10. package/dist/{chunk-LZFRL2AL.cjs → chunk-62UCV2LG.cjs} +3 -3
  11. package/dist/{chunk-X2IPAPXU.cjs → chunk-7AZFT2MV.cjs} +8 -8
  12. package/dist/{chunk-MTFJSE52.cjs → chunk-A6JPBMYY.cjs} +65 -65
  13. package/dist/{chunk-6KG642KH.cjs → chunk-AQVJUXSG.cjs} +1 -1
  14. package/dist/{chunk-PKML3XVS.mjs → chunk-GZ4GQ5MC.mjs} +2 -2
  15. package/dist/{chunk-V2OBGLJD.cjs → chunk-HAQOFI3D.cjs} +90 -60
  16. package/dist/{chunk-K4H6TGBE.mjs → chunk-LMG46EP2.mjs} +1 -1
  17. package/dist/{chunk-YCQZJQO6.cjs → chunk-NQMC5VKQ.cjs} +343 -301
  18. package/dist/{chunk-CFKC77SV.mjs → chunk-QACOOLOE.mjs} +3 -3
  19. package/dist/{chunk-WUJIKCFU.mjs → chunk-R5UQ3TN4.mjs} +1 -1
  20. package/dist/{chunk-IN77XSWO.mjs → chunk-UX35GYLM.mjs} +59 -29
  21. package/dist/{chunk-ZEO6ADM3.mjs → chunk-VALXN5IO.mjs} +2 -2
  22. package/dist/{chunk-7SR7ENVJ.mjs → chunk-XCTRKCNM.mjs} +6 -2
  23. package/dist/{chunk-YWMWI7PZ.cjs → chunk-YP7QVKQ6.cjs} +53 -53
  24. package/dist/claim.cjs +6 -6
  25. package/dist/claim.mjs +5 -5
  26. package/dist/constants.cjs +2 -2
  27. package/dist/constants.d.cts +1 -1
  28. package/dist/constants.d.ts +1 -1
  29. package/dist/constants.mjs +1 -1
  30. package/dist/deposit.cjs +6 -6
  31. package/dist/deposit.mjs +5 -5
  32. package/dist/embed.cjs +18 -18
  33. package/dist/embed.mjs +8 -8
  34. package/dist/index.cjs +9 -9
  35. package/dist/index.mjs +8 -8
  36. package/dist/withdraw.cjs +5 -5
  37. package/dist/withdraw.mjs +4 -4
  38. package/package.json +7 -6
  39. package/dist/ClaimModal-IKTJU43Y.cjs +0 -13
  40. package/dist/WithdrawModal-VP6PMIRO.cjs +0 -12
@@ -24,7 +24,7 @@
24
24
 
25
25
 
26
26
 
27
- var _chunkV2OBGLJDcjs = require('./chunk-V2OBGLJD.cjs');
27
+ var _chunkHAQOFI3Dcjs = require('./chunk-HAQOFI3D.cjs');
28
28
 
29
29
 
30
30
 
@@ -252,7 +252,7 @@ function FeesAccordion({ total, rows, tooltip }) {
252
252
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-fees-accordion-summary", children: [
253
253
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-fees-accordion-label", children: [
254
254
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Fees" }),
255
- 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, _chunkV2OBGLJDcjs.InfoIcon, {}) }) })
255
+ 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, _chunkHAQOFI3Dcjs.InfoIcon, {}) }) })
256
256
  ] }),
257
257
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
258
258
  "button",
@@ -270,7 +270,7 @@ function FeesAccordion({ total, rows, tooltip }) {
270
270
  {
271
271
  className: `rs-fees-accordion-chevron${open ? " rs-fees-accordion-chevron--open" : ""}`,
272
272
  "aria-hidden": "true",
273
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.ChevronDownIcon, {})
273
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.ChevronDownIcon, {})
274
274
  }
275
275
  )
276
276
  ]
@@ -292,7 +292,7 @@ function FeesAccordion({ total, rows, tooltip }) {
292
292
  {
293
293
  className: "rs-review-detail-info",
294
294
  "aria-label": `${row.label} info`,
295
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.InfoIcon, {})
295
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.InfoIcon, {})
296
296
  }
297
297
  ) })
298
298
  ] })
@@ -318,13 +318,13 @@ function SwappedReceipt({
318
318
  }) {
319
319
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
320
320
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
321
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.CheckIcon, {}), title: "Deposit successful" }),
321
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CheckIcon, {}), title: "Deposit successful" }),
322
322
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-details", children: [
323
323
  onrampMethod && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
324
324
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Onramp method" }),
325
325
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
326
326
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: onrampMethod }),
327
- 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, _chunkV2OBGLJDcjs.CdnIcon, { src: onrampMethodIcon }) })
327
+ 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, _chunkHAQOFI3Dcjs.CdnIcon, { src: onrampMethodIcon }) })
328
328
  ] })
329
329
  ] }),
330
330
  amountPaid && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -335,7 +335,7 @@ function SwappedReceipt({
335
335
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Deposited amount" }),
336
336
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
337
337
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: depositedAmount }),
338
- depositedSymbol && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.TokenIcon, { symbol: depositedSymbol }) })
338
+ depositedSymbol && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.TokenIcon, { symbol: depositedSymbol }) })
339
339
  ] })
340
340
  ] }),
341
341
  feesTotal != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -348,11 +348,11 @@ function SwappedReceipt({
348
348
  )
349
349
  ] }),
350
350
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-button-row", children: [
351
- onNewDeposit && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.Button, { variant: "outline", onClick: onNewDeposit, fullWidth: true, children: newLabel }),
352
- onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.Button, { onClick: onClose, fullWidth: true, children: "Done" })
351
+ onNewDeposit && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Button, { variant: "outline", onClick: onNewDeposit, fullWidth: true, children: newLabel }),
352
+ onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Button, { onClick: onClose, fullWidth: true, children: "Done" })
353
353
  ] })
354
354
  ] }),
355
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.PoweredBy, {})
355
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
356
356
  ] });
357
357
  }
358
358
  SwappedReceipt.displayName = "SwappedReceipt";
@@ -388,7 +388,7 @@ function getExchangeLogoSrc(name, connection) {
388
388
  }
389
389
  function getExchangeLogo(name, connection) {
390
390
  const src = getExchangeLogoSrc(name, connection);
391
- return src ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.CdnIcon, { src }) : null;
391
+ return src ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CdnIcon, { src }) : null;
392
392
  }
393
393
 
394
394
  // src/core/webhook.ts
@@ -697,14 +697,14 @@ function buildQuoteFeeRows(breakdown, sponsoredTooltip) {
697
697
  if (!breakdown) return { rows: [], chargeableUsd: 0 };
698
698
  const rows = [];
699
699
  let chargeableUsd = 0;
700
- for (const group of _chunkV2OBGLJDcjs.quoteFeeGroups.call(void 0, breakdown)) {
700
+ for (const group of _chunkHAQOFI3Dcjs.quoteFeeGroups.call(void 0, breakdown)) {
701
701
  if (group.chargedUsd > 0) {
702
702
  chargeableUsd += group.chargedUsd;
703
- rows.push({ label: group.label, value: _chunkV2OBGLJDcjs.formatFeeUsd.call(void 0, group.chargedUsd) });
703
+ rows.push({ label: group.label, value: _chunkHAQOFI3Dcjs.formatFeeUsd.call(void 0, group.chargedUsd) });
704
704
  } else if (group.sponsoredUsd > 0) {
705
705
  rows.push({
706
706
  label: group.label,
707
- value: _chunkV2OBGLJDcjs.formatFeeUsd.call(void 0, group.sponsoredUsd),
707
+ value: _chunkHAQOFI3Dcjs.formatFeeUsd.call(void 0, group.sponsoredUsd),
708
708
  strike: true,
709
709
  tooltip: sponsoredTooltip
710
710
  });
@@ -918,7 +918,7 @@ function ProcessingStep({
918
918
  const pollIntervalRef = _react.useRef.call(void 0, INITIAL_POLL_INTERVAL);
919
919
  const pollTimeoutRef = _react.useRef.call(void 0, null);
920
920
  const escalatedDelayRef = _react.useRef.call(void 0, false);
921
- const processingContextRef = _chunkV2OBGLJDcjs.useLatestRef.call(void 0, {
921
+ const processingContextRef = _chunkHAQOFI3Dcjs.useLatestRef.call(void 0, {
922
922
  amount,
923
923
  sourceChain,
924
924
  sourceToken,
@@ -927,11 +927,12 @@ function ProcessingStep({
927
927
  targetChain,
928
928
  targetToken
929
929
  });
930
- const onDepositCompleteRef = _chunkV2OBGLJDcjs.useLatestRef.call(void 0, onDepositComplete);
931
- const onDepositFailedRef = _chunkV2OBGLJDcjs.useLatestRef.call(void 0, onDepositFailed);
932
- const onErrorRef = _chunkV2OBGLJDcjs.useLatestRef.call(void 0, onError);
933
- const explorerTxUrl = _chunkV2OBGLJDcjs.useExplorerTxUrl.call(void 0, );
930
+ const onDepositCompleteRef = _chunkHAQOFI3Dcjs.useLatestRef.call(void 0, onDepositComplete);
931
+ const onDepositFailedRef = _chunkHAQOFI3Dcjs.useLatestRef.call(void 0, onDepositFailed);
932
+ const onErrorRef = _chunkHAQOFI3Dcjs.useLatestRef.call(void 0, onError);
933
+ const explorerTxUrl = _chunkHAQOFI3Dcjs.useExplorerTxUrl.call(void 0, );
934
934
  const initialTerminalEventRef = _react.useRef.call(void 0, null);
935
+ const completedDirectTransferTxHashRef = _react.useRef.call(void 0, null);
935
936
  const [state, setState] = _react.useState.call(void 0, () => {
936
937
  if (directTransfer) return { type: "complete" };
937
938
  const initial = getInitialProcessingState(
@@ -967,14 +968,17 @@ function ProcessingStep({
967
968
  [txHash]
968
969
  );
969
970
  _react.useEffect.call(void 0, () => {
970
- if (!directTransfer) return;
971
+ if (!directTransfer || completedDirectTransferTxHashRef.current === txHash) {
972
+ return;
973
+ }
974
+ completedDirectTransferTxHashRef.current = txHash;
971
975
  const completedAt = Date.now();
972
976
  updatePhaseTimings(() => ({
973
977
  startedAt: startTimeRef.current,
974
978
  completedAt,
975
979
  endedAt: completedAt
976
980
  }));
977
- _chunkV2OBGLJDcjs.debugLog.call(void 0, debug, "processing", "direct-transfer:complete", {
981
+ _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "processing", "direct-transfer:complete", {
978
982
  txHash,
979
983
  flowLabel
980
984
  });
@@ -1006,7 +1010,7 @@ function ProcessingStep({
1006
1010
  if (outcome.type === "complete") {
1007
1011
  const context = processingContextRef.current;
1008
1012
  const sourceTxHash2 = getSettledSourceTxHash(event, txHash);
1009
- _chunkV2OBGLJDcjs.debugLog.call(void 0, debug, "processing", "initial-event:complete", {
1013
+ _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "processing", "initial-event:complete", {
1010
1014
  txHash,
1011
1015
  sourceTxHash: sourceTxHash2,
1012
1016
  destinationTxHash: outcome.destinationTxHash,
@@ -1027,7 +1031,7 @@ function ProcessingStep({
1027
1031
  )]);
1028
1032
  return;
1029
1033
  }
1030
- _chunkV2OBGLJDcjs.debugLog.call(void 0, debug, "processing", "initial-event:failed", {
1034
+ _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "processing", "initial-event:failed", {
1031
1035
  txHash,
1032
1036
  message: outcome.message,
1033
1037
  event: event.type
@@ -1133,7 +1137,7 @@ function ProcessingStep({
1133
1137
  async function pollStatus() {
1134
1138
  try {
1135
1139
  const account = sourceChain === "solana" && solanaDepositAddress ? solanaDepositAddress : smartAccount;
1136
- _chunkV2OBGLJDcjs.debugLog.call(void 0, debug, "processing", "poll:request", {
1140
+ _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "processing", "poll:request", {
1137
1141
  account,
1138
1142
  txHash,
1139
1143
  intervalMs: pollIntervalRef.current
@@ -1144,7 +1148,7 @@ function ProcessingStep({
1144
1148
  const eventForCurrentTx = eventMatchesTx ? lastEvent2 : void 0;
1145
1149
  if (lastEvent2) {
1146
1150
  const eventData = lastEvent2.data;
1147
- _chunkV2OBGLJDcjs.debugLog.call(void 0, debug, "processing", "poll:event", {
1151
+ _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "processing", "poll:event", {
1148
1152
  type: lastEvent2.type,
1149
1153
  matchesTx: eventMatchesTx,
1150
1154
  intentId: _optionalChain([eventData, 'optionalAccess', _85 => _85.intentId])
@@ -1158,7 +1162,7 @@ function ProcessingStep({
1158
1162
  txHash
1159
1163
  );
1160
1164
  const destinationTxHash2 = _optionalChain([eventForCurrentTx, 'access', _87 => _87.data, 'optionalAccess', _88 => _88.destination, 'optionalAccess', _89 => _89.transactionHash]);
1161
- _chunkV2OBGLJDcjs.debugLog.call(void 0, debug, "processing", "state:complete", {
1165
+ _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "processing", "state:complete", {
1162
1166
  txHash,
1163
1167
  sourceTxHash: sourceTxHash2,
1164
1168
  destinationTxHash: destinationTxHash2,
@@ -1183,7 +1187,7 @@ function ProcessingStep({
1183
1187
  message: formatted.message,
1184
1188
  lastEvent: eventForCurrentTx
1185
1189
  });
1186
- _chunkV2OBGLJDcjs.debugLog.call(void 0, debug, "processing", "state:failed", {
1190
+ _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "processing", "state:failed", {
1187
1191
  txHash,
1188
1192
  message: formatted.message,
1189
1193
  code: formatted.code
@@ -1198,7 +1202,7 @@ function ProcessingStep({
1198
1202
  message: errorMessage,
1199
1203
  lastEvent: eventForCurrentTx
1200
1204
  });
1201
- _chunkV2OBGLJDcjs.debugLog.call(void 0, debug, "processing", "state:error-event", {
1205
+ _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "processing", "state:error-event", {
1202
1206
  txHash,
1203
1207
  message: errorMessage
1204
1208
  });
@@ -1211,7 +1215,7 @@ function ProcessingStep({
1211
1215
  }));
1212
1216
  scheduleNextPoll();
1213
1217
  } catch (error) {
1214
- _chunkV2OBGLJDcjs.debugError.call(void 0, debug, "processing", "poll:failure", error, {
1218
+ _chunkHAQOFI3Dcjs.debugError.call(void 0, debug, "processing", "poll:failure", error, {
1215
1219
  smartAccount,
1216
1220
  txHash,
1217
1221
  intervalMs: pollIntervalRef.current
@@ -1226,7 +1230,7 @@ function ProcessingStep({
1226
1230
  pollIntervalRef.current * BACKOFF_MULTIPLIER,
1227
1231
  MAX_POLL_INTERVAL
1228
1232
  );
1229
- _chunkV2OBGLJDcjs.debugLog.call(void 0, debug, "processing", "poll:scheduled", {
1233
+ _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "processing", "poll:scheduled", {
1230
1234
  nextIntervalMs: pollIntervalRef.current
1231
1235
  });
1232
1236
  pollStatus();
@@ -1259,7 +1263,7 @@ function ProcessingStep({
1259
1263
  escalatedDelayRef.current = true;
1260
1264
  setHasEscalatedDelay(true);
1261
1265
  const message = "Transfer is taking longer than expected. Your funds are safe and processing will continue automatically.";
1262
- _chunkV2OBGLJDcjs.debugLog.call(void 0, debug, "processing", "state:delay-escalated", {
1266
+ _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "processing", "state:delay-escalated", {
1263
1267
  txHash,
1264
1268
  timeoutMs: ESCALATED_DELAY_MS
1265
1269
  });
@@ -1292,7 +1296,7 @@ function ProcessingStep({
1292
1296
  const sourceExplorerUrl = sourceExplorerHash ? explorerTxUrl(displaySourceChain, sourceExplorerHash) : null;
1293
1297
  const destExplorerUrl = destinationTxHash ? explorerTxUrl(targetChainId, destinationTxHash) : null;
1294
1298
  const sourceDisplay = (() => {
1295
- const resolved = _chunkV2OBGLJDcjs.resolveTokenDisplay.call(void 0, displaySourceToken, displaySourceChain, {
1299
+ const resolved = _chunkHAQOFI3Dcjs.resolveTokenDisplay.call(void 0, displaySourceToken, displaySourceChain, {
1296
1300
  symbol: _nullishCoalesce(providedSourceSymbol, () => ( (displaySourceChain === "solana" ? "SOL" : "Token"))),
1297
1301
  decimals: providedSourceDecimals
1298
1302
  });
@@ -1302,10 +1306,10 @@ function ProcessingStep({
1302
1306
  };
1303
1307
  })();
1304
1308
  const sourceSymbol = sourceDisplay.symbol;
1305
- const formattedSentAmount = _nullishCoalesce(_nullishCoalesce(_chunkV2OBGLJDcjs.formatRawTokenAmount.call(void 0, displayAmount, sourceDisplay), () => ( // Not raw base units (e.g. a decimal string) — render the number as-is.
1306
- _chunkV2OBGLJDcjs.formatTokenAmount.call(void 0, Number(displayAmount), sourceDisplay.symbol))), () => ( displayAmount));
1309
+ const formattedSentAmount = _nullishCoalesce(_nullishCoalesce(_chunkHAQOFI3Dcjs.formatRawTokenAmount.call(void 0, displayAmount, sourceDisplay), () => ( // Not raw base units (e.g. a decimal string) — render the number as-is.
1310
+ _chunkHAQOFI3Dcjs.formatTokenAmount.call(void 0, Number(displayAmount), sourceDisplay.symbol))), () => ( displayAmount));
1307
1311
  const eventDestination = getEventDestinationDetails(lastEvent);
1308
- const targetDisplay = _chunkV2OBGLJDcjs.resolveTokenDisplay.call(void 0,
1312
+ const targetDisplay = _chunkHAQOFI3Dcjs.resolveTokenDisplay.call(void 0,
1309
1313
  _nullishCoalesce(eventDestination.token, () => ( targetToken)),
1310
1314
  _nullishCoalesce(eventDestination.chainId, () => ( targetChainId)),
1311
1315
  // Dapp deposits default to USDC targets; mirror the source symbol last so
@@ -1313,7 +1317,7 @@ function ProcessingStep({
1313
1317
  { symbol: _nullishCoalesce(providedSourceSymbol, () => ( "USDC")) }
1314
1318
  );
1315
1319
  const targetSymbol = targetDisplay.symbol;
1316
- const formattedDestinationAmount = eventDestination.amount !== void 0 ? _chunkV2OBGLJDcjs.formatRawTokenAmount.call(void 0, eventDestination.amount, targetDisplay) : void 0;
1320
+ const formattedDestinationAmount = eventDestination.amount !== void 0 ? _chunkHAQOFI3Dcjs.formatRawTokenAmount.call(void 0, eventDestination.amount, targetDisplay) : void 0;
1317
1321
  const amountUsdNumber = amountUsd !== void 0 && Number(amountUsd) > 0 ? Number(amountUsd) : void 0;
1318
1322
  const prices = useTokenPrices(service, [
1319
1323
  {
@@ -1328,17 +1332,17 @@ function ProcessingStep({
1328
1332
  }
1329
1333
  ]);
1330
1334
  const estimatedReceiveAmount = (() => {
1331
- const estimate = _chunkV2OBGLJDcjs.estimateReceiveAmount.call(void 0, {
1332
- sourceAmount: _chunkV2OBGLJDcjs.tokenAmountToNumber.call(void 0, displayAmount, sourceDisplay.decimals),
1335
+ const estimate = _chunkHAQOFI3Dcjs.estimateReceiveAmount.call(void 0, {
1336
+ sourceAmount: _chunkHAQOFI3Dcjs.tokenAmountToNumber.call(void 0, displayAmount, sourceDisplay.decimals),
1333
1337
  sourceSymbol: sourceDisplay.symbol,
1334
1338
  targetSymbol: targetDisplay.symbol,
1335
1339
  sourceAmountUsd: amountUsdNumber,
1336
- sourceTrusted: _chunkV2OBGLJDcjs.isRecognizedToken.call(void 0, displaySourceToken, displaySourceChain),
1340
+ sourceTrusted: _chunkHAQOFI3Dcjs.isRecognizedToken.call(void 0, displaySourceToken, displaySourceChain),
1337
1341
  prices
1338
1342
  });
1339
- return estimate !== void 0 ? _chunkV2OBGLJDcjs.formatTokenAmount.call(void 0, estimate, targetDisplay.symbol) : void 0;
1343
+ return estimate !== void 0 ? _chunkHAQOFI3Dcjs.formatTokenAmount.call(void 0, estimate, targetDisplay.symbol) : void 0;
1340
1344
  })();
1341
- const quotedReceive = quote ? _chunkV2OBGLJDcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol) : void 0;
1345
+ const quotedReceive = quote ? _chunkHAQOFI3Dcjs.formatQuotedReceive.call(void 0, quote.output, targetSymbol) : void 0;
1342
1346
  const receiveDisplay = formattedDestinationAmount ? (
1343
1347
  // The delivered amount, once the bridge reports it — actual, not an
1344
1348
  // estimate, so it wins over the quote and carries no "~".
@@ -1352,12 +1356,12 @@ function ProcessingStep({
1352
1356
  if (sourceSymbol.toUpperCase() !== targetSymbol.toUpperCase()) {
1353
1357
  return void 0;
1354
1358
  }
1355
- const sentValue = _chunkV2OBGLJDcjs.tokenAmountToNumber.call(void 0, displayAmount, sourceDisplay.decimals);
1356
- const receivedValue = eventDestination.amount !== void 0 ? _chunkV2OBGLJDcjs.tokenAmountToNumber.call(void 0, eventDestination.amount, targetDisplay.decimals) : void 0;
1359
+ const sentValue = _chunkHAQOFI3Dcjs.tokenAmountToNumber.call(void 0, displayAmount, sourceDisplay.decimals);
1360
+ const receivedValue = eventDestination.amount !== void 0 ? _chunkHAQOFI3Dcjs.tokenAmountToNumber.call(void 0, eventDestination.amount, targetDisplay.decimals) : void 0;
1357
1361
  if (sentValue === void 0 || receivedValue === void 0 || sentValue <= receivedValue) {
1358
1362
  return void 0;
1359
1363
  }
1360
- const formatted = _chunkV2OBGLJDcjs.formatTokenAmount.call(void 0, sentValue - receivedValue, sourceSymbol);
1364
+ const formatted = _chunkHAQOFI3Dcjs.formatTokenAmount.call(void 0, sentValue - receivedValue, sourceSymbol);
1361
1365
  if (formatted === void 0 || Number(formatted.replace(/,/g, "")) === 0) {
1362
1366
  return void 0;
1363
1367
  }
@@ -1384,7 +1388,7 @@ function ProcessingStep({
1384
1388
  ] }) : isFailed ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-body-header", children: [
1385
1389
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, FailedBadge, {}),
1386
1390
  /* @__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 }) })
1387
- ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.WalletIcon, {}), title: stateTitle });
1391
+ ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.BodyHeader, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.WalletIcon, {}), title: stateTitle });
1388
1392
  if (isComplete && isSwappedOrder) {
1389
1393
  const effectivePaymentMethod = _nullishCoalesce(_nullishCoalesce(_optionalChain([swappedContext, 'optionalAccess', _111 => _111.method]), () => ( _optionalChain([swappedFiatContext, 'optionalAccess', _112 => _112.paymentMethod]))), () => ( null));
1390
1394
  const onrampMethod = effectivePaymentMethod ? formatPaymentMethod(effectivePaymentMethod) : null;
@@ -1406,7 +1410,7 @@ function ProcessingStep({
1406
1410
  if (onrampFeeUsd != null) {
1407
1411
  feeRows.push({
1408
1412
  label: "On-ramp fee",
1409
- value: _chunkV2OBGLJDcjs.formatFeeUsd.call(void 0, onrampFeeUsd)
1413
+ value: _chunkHAQOFI3Dcjs.formatFeeUsd.call(void 0, onrampFeeUsd)
1410
1414
  });
1411
1415
  }
1412
1416
  const hasFallbackFee = quoteFeeRows.length === 0 && quotedFeeAmount !== void 0 && Number.isFinite(Number(quotedFeeAmount));
@@ -1415,13 +1419,13 @@ function ProcessingStep({
1415
1419
  } else if (hasFallbackFee) {
1416
1420
  feeRows.push({
1417
1421
  label: "Network fee",
1418
- value: _chunkV2OBGLJDcjs.formatFeeUsd.call(void 0, Number(quotedFeeAmount)),
1422
+ value: _chunkHAQOFI3Dcjs.formatFeeUsd.call(void 0, Number(quotedFeeAmount)),
1419
1423
  strike: feeSponsored,
1420
1424
  tooltip: feeSponsored ? sponsoredFeeTooltip : void 0
1421
1425
  });
1422
1426
  }
1423
1427
  const fallbackChargeableUsd = hasFallbackFee && !feeSponsored ? Number(quotedFeeAmount) : 0;
1424
- const feesTotal = feeRows.length > 0 ? _chunkV2OBGLJDcjs.formatFeeUsd.call(void 0,
1428
+ const feesTotal = feeRows.length > 0 ? _chunkHAQOFI3Dcjs.formatFeeUsd.call(void 0,
1425
1429
  (_nullishCoalesce(onrampFeeUsd, () => ( 0))) + chargeableUsd + fallbackChargeableUsd
1426
1430
  ) : null;
1427
1431
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1449,7 +1453,7 @@ function ProcessingStep({
1449
1453
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
1450
1454
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1451
1455
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: sourceChainName }),
1452
- sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.CdnIcon, { src: sourceChainIcon }) }),
1456
+ sourceChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CdnIcon, { src: sourceChainIcon }) }),
1453
1457
  sourceExplorerUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1454
1458
  "a",
1455
1459
  {
@@ -1458,7 +1462,7 @@ function ProcessingStep({
1458
1462
  rel: "noopener noreferrer",
1459
1463
  className: "rs-review-detail-link",
1460
1464
  "aria-label": "View source transaction",
1461
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.ExternalLinkIcon, {})
1465
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.ExternalLinkIcon, {})
1462
1466
  }
1463
1467
  )
1464
1468
  ] })
@@ -1467,7 +1471,7 @@ function ProcessingStep({
1467
1471
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Destination chain" }),
1468
1472
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1469
1473
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: targetChainName }),
1470
- targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.CdnIcon, { src: targetChainIcon }) }),
1474
+ targetChainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.CdnIcon, { src: targetChainIcon }) }),
1471
1475
  destExplorerUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1472
1476
  "a",
1473
1477
  {
@@ -1476,7 +1480,7 @@ function ProcessingStep({
1476
1480
  rel: "noopener noreferrer",
1477
1481
  className: "rs-review-detail-link",
1478
1482
  "aria-label": "View destination transaction",
1479
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.ExternalLinkIcon, {})
1483
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.ExternalLinkIcon, {})
1480
1484
  }
1481
1485
  )
1482
1486
  ] })
@@ -1513,7 +1517,7 @@ function ProcessingStep({
1513
1517
  " ",
1514
1518
  sourceSymbol
1515
1519
  ] }),
1516
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.TokenIcon, { symbol: sourceSymbol }) })
1520
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.TokenIcon, { symbol: sourceSymbol }) })
1517
1521
  ] })
1518
1522
  ] })
1519
1523
  ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -1524,14 +1528,14 @@ function ProcessingStep({
1524
1528
  " ",
1525
1529
  sourceSymbol
1526
1530
  ] }),
1527
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.TokenIcon, { symbol: sourceSymbol }) })
1531
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.TokenIcon, { symbol: sourceSymbol }) })
1528
1532
  ] })
1529
1533
  ] }),
1530
1534
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1531
1535
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: isProcessing ? "Receive" : "Received" }),
1532
1536
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
1533
1537
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: receiveDisplay }),
1534
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.TokenIcon, { symbol: targetSymbol }) })
1538
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.TokenIcon, { symbol: targetSymbol }) })
1535
1539
  ] })
1536
1540
  ] }),
1537
1541
  isFailed && balanceAfterUsd !== void 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -1560,12 +1564,12 @@ function ProcessingStep({
1560
1564
  {
1561
1565
  className: "rs-review-detail-info",
1562
1566
  "aria-label": "Fee info",
1563
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.InfoIcon, {})
1567
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.InfoIcon, {})
1564
1568
  }
1565
1569
  ) })
1566
1570
  ] })
1567
1571
  ] }) : (() => {
1568
- const { display, struck } = _chunkV2OBGLJDcjs.quoteFeeRow.call(void 0, _optionalChain([quote, 'optionalAccess', _121 => _121.fees]));
1572
+ const { display, struck } = _chunkHAQOFI3Dcjs.quoteFeeRow.call(void 0, _optionalChain([quote, 'optionalAccess', _121 => _121.fees]));
1569
1573
  if (display !== null) {
1570
1574
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
1571
1575
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Fees" }),
@@ -1596,9 +1600,9 @@ function ProcessingStep({
1596
1600
  ] });
1597
1601
  })()
1598
1602
  ] }),
1599
- isFailed && failureMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.Callout, { variant: "error", children: failureMessage }),
1603
+ isFailed && failureMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Callout, { variant: "error", children: failureMessage }),
1600
1604
  isProcessing && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1601
- _chunkV2OBGLJDcjs.Button,
1605
+ _chunkHAQOFI3Dcjs.Button,
1602
1606
  {
1603
1607
  fullWidth: true,
1604
1608
  disabled: true,
@@ -1608,15 +1612,15 @@ function ProcessingStep({
1608
1612
  }
1609
1613
  ),
1610
1614
  isComplete && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-button-row", children: [
1611
- onNewDeposit && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkV2OBGLJDcjs.Button, { variant: "outline", onClick: onNewDeposit, fullWidth: true, children: [
1615
+ onNewDeposit && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkHAQOFI3Dcjs.Button, { variant: "outline", onClick: onNewDeposit, fullWidth: true, children: [
1612
1616
  "New ",
1613
1617
  flowNoun
1614
1618
  ] }),
1615
- onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.Button, { onClick: () => onClose("success_done"), fullWidth: true, children: "Done" })
1619
+ onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Button, { onClick: () => onClose("success_done"), fullWidth: true, children: "Done" })
1616
1620
  ] }),
1617
1621
  isFailed && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-button-row", children: [
1618
1622
  onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1619
- _chunkV2OBGLJDcjs.Button,
1623
+ _chunkHAQOFI3Dcjs.Button,
1620
1624
  {
1621
1625
  variant: "outline",
1622
1626
  onClick: () => onClose("failure_cancel"),
@@ -1624,10 +1628,10 @@ function ProcessingStep({
1624
1628
  children: "Cancel"
1625
1629
  }
1626
1630
  ),
1627
- handleRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.Button, { onClick: handleRetry, fullWidth: true, children: "Try again" })
1631
+ handleRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.Button, { onClick: handleRetry, fullWidth: true, children: "Try again" })
1628
1632
  ] })
1629
1633
  ] }),
1630
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV2OBGLJDcjs.PoweredBy, {})
1634
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHAQOFI3Dcjs.PoweredBy, {})
1631
1635
  ] });
1632
1636
  }
1633
1637
 
@@ -1718,7 +1722,7 @@ async function runAccountSetup(input, deps) {
1718
1722
  }
1719
1723
  try {
1720
1724
  const salt = deriveAccountSalt(input);
1721
- _chunkV2OBGLJDcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
1725
+ _chunkHAQOFI3Dcjs.debugLog.call(void 0, debug, "account-setup", "setup:start", {
1722
1726
  salt,
1723
1727
  recipient: input.recipient,
1724
1728
  targetChain: input.targetChain,
@@ -1744,7 +1748,7 @@ async function runAccountSetup(input, deps) {
1744
1748
  cacheKey
1745
1749
  };
1746
1750
  } catch (error) {
1747
- _chunkV2OBGLJDcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
1751
+ _chunkHAQOFI3Dcjs.debugError.call(void 0, debug, "account-setup", "setup:failed", error, {
1748
1752
  recipient: input.recipient
1749
1753
  });
1750
1754
  if (error instanceof SetupError) throw error;
@@ -1755,7 +1759,7 @@ function runAccountSetupDeduped(input, deps, requestKey) {
1755
1759
  const now = Date.now();
1756
1760
  const existing = setupRequestDedupe.get(requestKey);
1757
1761
  if (existing && (!existing.settled || existing.expiresAt > now)) {
1758
- _chunkV2OBGLJDcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
1762
+ _chunkHAQOFI3Dcjs.debugLog.call(void 0, deps.debug, "account-setup", "setup:dedupe-hit", {
1759
1763
  recipient: input.recipient,
1760
1764
  forceRegister: _nullishCoalesce(input.forceRegister, () => ( false))
1761
1765
  });