@rhinestone/deposit-modal 0.9.0 → 0.9.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 (29) hide show
  1. package/dist/{DepositModalReown-6KUAO5ZC.mjs → DepositModalReown-JUJI7UHE.mjs} +5 -5
  2. package/dist/{DepositModalReown-XC5RIU7Z.cjs → DepositModalReown-YQSO4SVY.cjs} +9 -9
  3. package/dist/{chunk-VN4BLZYC.cjs → chunk-6U2H3R3T.cjs} +21 -21
  4. package/dist/{chunk-4WB2FHGC.mjs → chunk-7OQO6JDC.mjs} +3 -3
  5. package/dist/{chunk-LGVJWVSS.mjs → chunk-AYWEWI47.mjs} +2 -2
  6. package/dist/{chunk-T7LGQFP3.cjs → chunk-EAUF7SGM.cjs} +3 -3
  7. package/dist/{chunk-NMIMRASD.cjs → chunk-EEEQZOTJ.cjs} +66 -66
  8. package/dist/{chunk-WYXBY2MQ.mjs → chunk-GYEUZSQP.mjs} +1 -1
  9. package/dist/{chunk-DIX7M3SP.cjs → chunk-ITFRTPGF.cjs} +57 -57
  10. package/dist/{chunk-KKHLNFSA.mjs → chunk-N3OHR3T2.mjs} +58 -99
  11. package/dist/{chunk-E4G5BOZP.mjs → chunk-QGXAAFHU.mjs} +2 -2
  12. package/dist/{chunk-OSI2CFGL.mjs → chunk-QLZ5RZTA.mjs} +1 -1
  13. package/dist/{chunk-PAGMU4RQ.cjs → chunk-SQOEHQNT.cjs} +52 -52
  14. package/dist/{chunk-22RV33LK.cjs → chunk-VQJHYWAE.cjs} +309 -350
  15. package/dist/{chunk-VOGZAZB2.mjs → chunk-WUQZYQRK.mjs} +1 -1
  16. package/dist/{chunk-NEXUCY4B.cjs → chunk-XJE5MRY4.cjs} +1 -1
  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/withdraw.cjs +5 -5
  28. package/dist/withdraw.mjs +4 -4
  29. package/package.json +1 -1
@@ -4,7 +4,7 @@ import {
4
4
  getPublicClient,
5
5
  useTokenPrices,
6
6
  warnRemovedProps
7
- } from "./chunk-WYXBY2MQ.mjs";
7
+ } from "./chunk-GYEUZSQP.mjs";
8
8
  import {
9
9
  BodyHeader,
10
10
  Button,
@@ -34,7 +34,7 @@ import {
34
34
  useLatestRef,
35
35
  useRpcUrls,
36
36
  useStableRpcUrls
37
- } from "./chunk-VOGZAZB2.mjs";
37
+ } from "./chunk-WUQZYQRK.mjs";
38
38
  import {
39
39
  NATIVE_TOKEN_ADDRESS,
40
40
  SOURCE_CHAINS,
@@ -1,5 +1,5 @@
1
1
  // src/core/version.ts
2
- var MODAL_VERSION = "0.9.0";
2
+ var MODAL_VERSION = "0.9.1";
3
3
  var SERVICE_HEADERS = {
4
4
  "Content-Type": "application/json",
5
5
  "x-deposit-modal-version": MODAL_VERSION
@@ -1,6 +1,6 @@
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 _chunkT7LGQFP3cjs = require('./chunk-T7LGQFP3.cjs');
3
+ var _chunkEAUF7SGMcjs = require('./chunk-EAUF7SGM.cjs');
4
4
 
5
5
 
6
6
 
@@ -26,10 +26,10 @@ var _chunkT7LGQFP3cjs = require('./chunk-T7LGQFP3.cjs');
26
26
 
27
27
 
28
28
 
29
- var _chunkVN4BLZYCcjs = require('./chunk-VN4BLZYC.cjs');
29
+ var _chunk6U2H3R3Tcjs = require('./chunk-6U2H3R3T.cjs');
30
30
 
31
31
 
32
- var _chunkNEXUCY4Bcjs = require('./chunk-NEXUCY4B.cjs');
32
+ var _chunkXJE5MRY4cjs = require('./chunk-XJE5MRY4.cjs');
33
33
 
34
34
 
35
35
 
@@ -67,7 +67,7 @@ var Input = _react.forwardRef.call(void 0,
67
67
  }
68
68
  ),
69
69
  error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "rs-input-error", children: [
70
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.AlertTriangleIcon, { className: "rs-input-error-icon" }),
70
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.AlertTriangleIcon, { className: "rs-input-error-icon" }),
71
71
  error
72
72
  ] })
73
73
  ] });
@@ -153,7 +153,7 @@ async function submitSignedRecovery(params) {
153
153
  try {
154
154
  signature = await signRecovery({ typedData, signer, depositId, destination });
155
155
  } catch (error) {
156
- _chunkVN4BLZYCcjs.debugError.call(void 0, debug, scope, "signRecovery:failed", error);
156
+ _chunk6U2H3R3Tcjs.debugError.call(void 0, debug, scope, "signRecovery:failed", error);
157
157
  throw new RecoveryError(
158
158
  "Signature request was declined. Approve it in your wallet to recover this deposit.",
159
159
  0,
@@ -170,7 +170,7 @@ async function submitSignedRecovery(params) {
170
170
  );
171
171
  }
172
172
  const url = `${backendUrl.replace(/\/$/, "")}/deposits/recover`;
173
- _chunkVN4BLZYCcjs.debugLog.call(void 0, debug, scope, "submitSignedRecovery:request", {
173
+ _chunk6U2H3R3Tcjs.debugLog.call(void 0, debug, scope, "submitSignedRecovery:request", {
174
174
  url,
175
175
  depositId,
176
176
  signer
@@ -182,19 +182,19 @@ async function submitSignedRecovery(params) {
182
182
  // The shared const, so recovery carries `x-deposit-modal-version` like
183
183
  // every other backend call. Without it this path would be invisible in the
184
184
  // per-client version telemetry the processor records.
185
- headers: _chunkNEXUCY4Bcjs.SERVICE_HEADERS,
185
+ headers: _chunkXJE5MRY4cjs.SERVICE_HEADERS,
186
186
  // `depositId` as a string: it is a uint256 upstream and JSON numbers lose
187
187
  // precision well before that range.
188
188
  body: JSON.stringify({ depositId, destination, signature })
189
189
  });
190
190
  } catch (error) {
191
- _chunkVN4BLZYCcjs.debugError.call(void 0, debug, scope, "submitSignedRecovery:network", error);
191
+ _chunk6U2H3R3Tcjs.debugError.call(void 0, debug, scope, "submitSignedRecovery:network", error);
192
192
  const { message, retryable } = formatRecoveryError(0);
193
193
  throw new RecoveryError(message, 0, void 0, retryable);
194
194
  }
195
195
  if (!response.ok) {
196
196
  const body = await response.json().catch(() => ({}));
197
- _chunkVN4BLZYCcjs.debugError.call(void 0, debug, scope, "submitSignedRecovery:failed", body, {
197
+ _chunk6U2H3R3Tcjs.debugError.call(void 0, debug, scope, "submitSignedRecovery:failed", body, {
198
198
  status: response.status
199
199
  });
200
200
  const { message, retryable } = formatRecoveryError(
@@ -205,7 +205,7 @@ async function submitSignedRecovery(params) {
205
205
  throw new RecoveryError(message, response.status, body.code, retryable);
206
206
  }
207
207
  const result = await response.json();
208
- _chunkVN4BLZYCcjs.debugLog.call(void 0, debug, scope, "submitSignedRecovery:success", {
208
+ _chunk6U2H3R3Tcjs.debugLog.call(void 0, debug, scope, "submitSignedRecovery:success", {
209
209
  transactionHash: result.transactionHash
210
210
  });
211
211
  return result;
@@ -227,7 +227,7 @@ function describeDeposit(row) {
227
227
  const symbol = _chunkH577RJN5cjs.getTokenSymbol.call(void 0, row.token, chainId);
228
228
  const raw = BigInt(_nullishCoalesce(_nullishCoalesce(row.sourceAmount, () => ( row.amount)), () => ( "0")));
229
229
  const human = Number(_viem.formatUnits.call(void 0, raw, decimals));
230
- const amount = _nullishCoalesce(_chunkVN4BLZYCcjs.formatTokenAmount.call(void 0, human, symbol), () => ( _viem.formatUnits.call(void 0, raw, decimals)));
230
+ const amount = _nullishCoalesce(_chunk6U2H3R3Tcjs.formatTokenAmount.call(void 0, human, symbol), () => ( _viem.formatUnits.call(void 0, raw, decimals)));
231
231
  return {
232
232
  chainId,
233
233
  symbol,
@@ -324,15 +324,15 @@ function ClaimModal({
324
324
  onError,
325
325
  debug
326
326
  }) {
327
- _chunkVN4BLZYCcjs.checkBackendUrl.call(void 0, "ClaimModal", backendUrl);
327
+ _chunk6U2H3R3Tcjs.checkBackendUrl.call(void 0, "ClaimModal", backendUrl);
328
328
  const modalRef = _react.useRef.call(void 0, null);
329
- const onReadyRef = _chunkVN4BLZYCcjs.useLatestRef.call(void 0, onReady);
330
- const onLifecycleRef = _chunkVN4BLZYCcjs.useLatestRef.call(void 0, onLifecycle);
331
- const onEventRef = _chunkVN4BLZYCcjs.useLatestRef.call(void 0, onEvent);
332
- const onErrorRef = _chunkVN4BLZYCcjs.useLatestRef.call(void 0, onError);
333
- const rpcUrls = _chunkVN4BLZYCcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
329
+ const onReadyRef = _chunk6U2H3R3Tcjs.useLatestRef.call(void 0, onReady);
330
+ const onLifecycleRef = _chunk6U2H3R3Tcjs.useLatestRef.call(void 0, onLifecycle);
331
+ const onEventRef = _chunk6U2H3R3Tcjs.useLatestRef.call(void 0, onEvent);
332
+ const onErrorRef = _chunk6U2H3R3Tcjs.useLatestRef.call(void 0, onError);
333
+ const rpcUrls = _chunk6U2H3R3Tcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
334
334
  const service = _react.useMemo.call(void 0,
335
- () => _chunkVN4BLZYCcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:claim" }),
335
+ () => _chunk6U2H3R3Tcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:claim" }),
336
336
  [backendUrl, debug]
337
337
  );
338
338
  const [state, dispatch] = _react.useReducer.call(void 0, claimReducer, INITIAL_STATE);
@@ -340,7 +340,7 @@ function ClaimModal({
340
340
  const isOpenRef = _react.useRef.call(void 0, isOpen);
341
341
  isOpenRef.current = isOpen;
342
342
  _react.useEffect.call(void 0, () => {
343
- if (isOpen && modalRef.current) _chunkVN4BLZYCcjs.applyTheme.call(void 0, modalRef.current, theme);
343
+ if (isOpen && modalRef.current) _chunk6U2H3R3Tcjs.applyTheme.call(void 0, modalRef.current, theme);
344
344
  }, [isOpen, theme]);
345
345
  _react.useEffect.call(void 0, () => {
346
346
  if (isOpen) {
@@ -362,8 +362,8 @@ function ClaimModal({
362
362
  }, [state.step, onClose]);
363
363
  const canGoBack = state.step === "select" || state.step === "review" || state.step === "failed";
364
364
  const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _7 => _7.showBackButton]), () => ( true));
365
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
366
- _chunkVN4BLZYCcjs.Modal,
365
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
366
+ _chunk6U2H3R3Tcjs.Modal,
367
367
  {
368
368
  isOpen,
369
369
  onClose: handleClose,
@@ -379,7 +379,7 @@ function ClaimModal({
379
379
  className: "rs-modal-header-back",
380
380
  "aria-label": "Go back",
381
381
  onClick: () => dispatch({ type: "back" }),
382
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.ChevronLeftIcon, {})
382
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.ChevronLeftIcon, {})
383
383
  }
384
384
  ) }),
385
385
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -390,7 +390,7 @@ function ClaimModal({
390
390
  disabled: state.step === "processing",
391
391
  className: "rs-modal-close",
392
392
  "aria-label": "Close",
393
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CloseIcon, {})
393
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.CloseIcon, {})
394
394
  }
395
395
  ) })
396
396
  ] }),
@@ -528,7 +528,7 @@ function ClaimBody({
528
528
  const refundedRaw = BigInt(
529
529
  _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(result.amount, () => ( deposit.sourceAmount)), () => ( deposit.amount)), () => ( "0"))
530
530
  );
531
- const amountDisplay = _nullishCoalesce(_chunkVN4BLZYCcjs.formatTokenAmount.call(void 0, Number(_viem.formatUnits.call(void 0, refundedRaw, decimals)), symbol), () => ( _viem.formatUnits.call(void 0, refundedRaw, decimals)));
531
+ const amountDisplay = _nullishCoalesce(_chunk6U2H3R3Tcjs.formatTokenAmount.call(void 0, Number(_viem.formatUnits.call(void 0, refundedRaw, decimals)), symbol), () => ( _viem.formatUnits.call(void 0, refundedRaw, decimals)));
532
532
  dispatch({
533
533
  type: "complete",
534
534
  txHash: result.transactionHash,
@@ -555,7 +555,7 @@ function ClaimBody({
555
555
  if (!isCurrentOperation()) return;
556
556
  const recoveryError = err instanceof RecoveryError ? err : void 0;
557
557
  const status = _optionalChain([recoveryError, 'optionalAccess', _16 => _16.status]);
558
- const message = _nullishCoalesce(_optionalChain([recoveryError, 'optionalAccess', _17 => _17.message]), () => ( _chunkVN4BLZYCcjs.formatUserError.call(void 0,
558
+ const message = _nullishCoalesce(_optionalChain([recoveryError, 'optionalAccess', _17 => _17.message]), () => ( _chunk6U2H3R3Tcjs.formatUserError.call(void 0,
559
559
  err instanceof Error ? err.message : "Recovery failed"
560
560
  )));
561
561
  dispatch({
@@ -620,7 +620,7 @@ function LookupStep({
620
620
  onResults(deposits);
621
621
  } catch (err) {
622
622
  if (!isCurrentOperation()) return;
623
- const message = _chunkVN4BLZYCcjs.formatUserError.call(void 0,
623
+ const message = _chunk6U2H3R3Tcjs.formatUserError.call(void 0,
624
624
  err instanceof Error ? err.message : "Lookup failed"
625
625
  );
626
626
  setError(message);
@@ -641,9 +641,9 @@ function LookupStep({
641
641
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
642
642
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
643
643
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
644
- _chunkVN4BLZYCcjs.BodyHeader,
644
+ _chunk6U2H3R3Tcjs.BodyHeader,
645
645
  {
646
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.HandCoinsIcon, {}),
646
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.HandCoinsIcon, {}),
647
647
  title: "Claim a deposit",
648
648
  subtitle: "Get funds from a failed deposit sent back to you on the source chain."
649
649
  }
@@ -658,9 +658,9 @@ function LookupStep({
658
658
  error: trimmed.length > 0 && !validTxHash ? "Enter a valid transaction hash" : void 0
659
659
  }
660
660
  ),
661
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Callout, { variant: "error", children: error }),
661
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.Callout, { variant: "error", children: error }),
662
662
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
663
- _chunkVN4BLZYCcjs.Button,
663
+ _chunk6U2H3R3Tcjs.Button,
664
664
  {
665
665
  onClick: handleLookup,
666
666
  loading,
@@ -671,7 +671,7 @@ function LookupStep({
671
671
  }
672
672
  )
673
673
  ] }),
674
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
674
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.PoweredBy, {})
675
675
  ] });
676
676
  }
677
677
  function SelectStep({
@@ -681,9 +681,9 @@ function SelectStep({
681
681
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
682
682
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
683
683
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
684
- _chunkVN4BLZYCcjs.BodyHeader,
684
+ _chunk6U2H3R3Tcjs.BodyHeader,
685
685
  {
686
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CoinsIcon, {}),
686
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.CoinsIcon, {}),
687
687
  title: "Select a deposit",
688
688
  subtitle: "This transaction produced multiple deposits. Choose the one to claim."
689
689
  }
@@ -692,7 +692,7 @@ function SelectStep({
692
692
  const { symbol, amount, chainName } = describeDeposit(row);
693
693
  const eligible = isEligible(row);
694
694
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
695
- _chunkT7LGQFP3cjs.ListRow,
695
+ _chunkEAUF7SGMcjs.ListRow,
696
696
  {
697
697
  leadingMedia: _chunkH577RJN5cjs.tokenIconUrl.call(void 0, symbol),
698
698
  title: `${amount} ${symbol}`,
@@ -705,7 +705,7 @@ function SelectStep({
705
705
  );
706
706
  }) })
707
707
  ] }),
708
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
708
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.PoweredBy, {})
709
709
  ] });
710
710
  }
711
711
  function ReviewStep({
@@ -720,9 +720,9 @@ function ReviewStep({
720
720
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
721
721
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
722
722
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
723
- _chunkVN4BLZYCcjs.BodyHeader,
723
+ _chunk6U2H3R3Tcjs.BodyHeader,
724
724
  {
725
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.HandCoinsIcon, {}),
725
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.HandCoinsIcon, {}),
726
726
  title: "Review refund",
727
727
  subtitle: "This returns the funds on the source chain. It does not retry the original bridge."
728
728
  }
@@ -736,14 +736,14 @@ function ReviewStep({
736
736
  " ",
737
737
  symbol
738
738
  ] }),
739
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.TokenIcon, { symbol }) })
739
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.TokenIcon, { symbol }) })
740
740
  ] })
741
741
  ] }),
742
742
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
743
743
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
744
744
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
745
745
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
746
- chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CdnIcon, { src: chainIcon }) })
746
+ chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.CdnIcon, { src: chainIcon }) })
747
747
  ] })
748
748
  ] }),
749
749
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -760,7 +760,7 @@ function ReviewStep({
760
760
  rel: "noreferrer",
761
761
  children: [
762
762
  short,
763
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.ExternalLinkIcon, {})
763
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.ExternalLinkIcon, {})
764
764
  ]
765
765
  }
766
766
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: short });
@@ -778,7 +778,7 @@ function ReviewStep({
778
778
  }
779
779
  ),
780
780
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
781
- _chunkVN4BLZYCcjs.Button,
781
+ _chunk6U2H3R3Tcjs.Button,
782
782
  {
783
783
  onClick: () => destinationValid && onSubmit(destination),
784
784
  loading: submitting,
@@ -789,7 +789,7 @@ function ReviewStep({
789
789
  }
790
790
  )
791
791
  ] }),
792
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
792
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.PoweredBy, {})
793
793
  ] });
794
794
  }
795
795
  function ResultStep({
@@ -803,9 +803,9 @@ function ResultStep({
803
803
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
804
804
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
805
805
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
806
- _chunkVN4BLZYCcjs.BodyHeader,
806
+ _chunk6U2H3R3Tcjs.BodyHeader,
807
807
  {
808
- icon: success ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.AlertTriangleIcon, {}),
808
+ icon: success ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.AlertTriangleIcon, {}),
809
809
  variant: success ? "success" : "error",
810
810
  title: success ? "Refund submitted" : "Refund failed",
811
811
  subtitle: success ? "Your funds are being returned on the source chain." : void 0
@@ -820,7 +820,7 @@ function ResultStep({
820
820
  " ",
821
821
  result.symbol
822
822
  ] }),
823
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.TokenIcon, { symbol: result.symbol }) })
823
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.TokenIcon, { symbol: result.symbol }) })
824
824
  ] })
825
825
  ] }),
826
826
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -841,22 +841,22 @@ function ResultStep({
841
841
  rel: "noreferrer",
842
842
  children: [
843
843
  short,
844
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.ExternalLinkIcon, {})
844
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.ExternalLinkIcon, {})
845
845
  ]
846
846
  }
847
847
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: short });
848
848
  })()
849
849
  ] })
850
- ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Callout, { variant: "error", children: error }),
850
+ ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.Callout, { variant: "error", children: error }),
851
851
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-screen-button-row", children: success ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
852
- onReset && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Button, { variant: "outline", onClick: onReset, fullWidth: true, children: "Claim another deposit" }),
853
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Button, { onClick: onClose, fullWidth: true, children: "Done" })
852
+ onReset && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.Button, { variant: "outline", onClick: onReset, fullWidth: true, children: "Claim another deposit" }),
853
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.Button, { onClick: onClose, fullWidth: true, children: "Done" })
854
854
  ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
855
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Button, { variant: "outline", onClick: onClose, fullWidth: true, children: "Cancel" }),
856
- onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.Button, { onClick: onRetry, fullWidth: true, children: "Try again" })
855
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.Button, { variant: "outline", onClick: onClose, fullWidth: true, children: "Cancel" }),
856
+ onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.Button, { onClick: onRetry, fullWidth: true, children: "Try again" })
857
857
  ] }) })
858
858
  ] }),
859
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVN4BLZYCcjs.PoweredBy, {})
859
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6U2H3R3Tcjs.PoweredBy, {})
860
860
  ] });
861
861
  }
862
862