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

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 (39) hide show
  1. package/dist/{DepositModalReown-TQXGVA7H.mjs → DepositModalReown-QISHOPBZ.mjs} +9 -13
  2. package/dist/{DepositModalReown-HIILH3DK.cjs → DepositModalReown-ZZ7TSKJU.cjs} +13 -17
  3. package/dist/{chunk-GAQ7H35N.cjs → chunk-2ZEWWJNW.cjs} +49 -49
  4. package/dist/{chunk-STVAA4QY.mjs → chunk-3YW7LB6V.mjs} +2 -2
  5. package/dist/{chunk-AALNMWJY.cjs → chunk-6UDMG6QC.cjs} +72 -65
  6. package/dist/{chunk-3RUJRZSF.cjs → chunk-A6SXAQWV.cjs} +1 -1
  7. package/dist/{chunk-UVZHN5LU.cjs → chunk-F25IGLXY.cjs} +73 -92
  8. package/dist/{chunk-HD7GC4GC.cjs → chunk-HRQAQ6GG.cjs} +3 -3
  9. package/dist/{chunk-Y4SUF43W.mjs → chunk-K6IYTJ7K.mjs} +17 -36
  10. package/dist/{chunk-I7EURT3L.mjs → chunk-KY5SOFFK.mjs} +153 -260
  11. package/dist/{chunk-J2PDDECW.cjs → chunk-QMSHSRCV.cjs} +2 -2
  12. package/dist/{chunk-LMPJFLJF.cjs → chunk-SQZI47X2.cjs} +574 -681
  13. package/dist/{chunk-7DGQ5BUP.mjs → chunk-V3JVC44N.mjs} +14 -7
  14. package/dist/{chunk-MOSAWAHZ.mjs → chunk-V6UFU6OM.mjs} +1 -1
  15. package/dist/{chunk-AQQ64XRR.mjs → chunk-XEBPBDON.mjs} +1 -1
  16. package/dist/{chunk-SR43WXGR.mjs → chunk-XLKPGHUE.mjs} +1 -1
  17. package/dist/claim.cjs +5 -5
  18. package/dist/claim.d.cts +2 -2
  19. package/dist/claim.d.ts +2 -2
  20. package/dist/claim.mjs +4 -4
  21. package/dist/constants.cjs +2 -2
  22. package/dist/constants.d.cts +1 -1
  23. package/dist/constants.d.ts +1 -1
  24. package/dist/constants.mjs +1 -1
  25. package/dist/deposit.cjs +6 -6
  26. package/dist/deposit.d.cts +2 -2
  27. package/dist/deposit.d.ts +2 -2
  28. package/dist/deposit.mjs +5 -5
  29. package/dist/index.cjs +20 -12
  30. package/dist/index.d.cts +13 -1
  31. package/dist/index.d.ts +13 -1
  32. package/dist/index.mjs +16 -8
  33. package/dist/{types-vpysc9yQ.d.cts → types-Cdt4VYUk.d.cts} +51 -39
  34. package/dist/{types-vpysc9yQ.d.ts → types-Cdt4VYUk.d.ts} +51 -39
  35. package/dist/withdraw.cjs +5 -5
  36. package/dist/withdraw.d.cts +3 -3
  37. package/dist/withdraw.d.ts +3 -3
  38. package/dist/withdraw.mjs +4 -4
  39. package/package.json +7 -1
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DepositModalInner
3
- } from "./chunk-I7EURT3L.mjs";
4
- import "./chunk-7DGQ5BUP.mjs";
5
- import "./chunk-MOSAWAHZ.mjs";
3
+ } from "./chunk-KY5SOFFK.mjs";
4
+ import "./chunk-V3JVC44N.mjs";
5
+ import "./chunk-V6UFU6OM.mjs";
6
6
  import {
7
7
  isUnsupportedChainSwitchError,
8
8
  rpcUrlFor
9
- } from "./chunk-SR43WXGR.mjs";
10
- import "./chunk-AQQ64XRR.mjs";
9
+ } from "./chunk-XLKPGHUE.mjs";
10
+ import "./chunk-XEBPBDON.mjs";
11
11
  import "./chunk-YJP274QC.mjs";
12
12
  import {
13
13
  SUPPORTED_CHAINS,
@@ -206,18 +206,15 @@ import { useAppKitConnection } from "@reown/appkit-adapter-solana/react";
206
206
  import { jsx as jsx2 } from "react/jsx-runtime";
207
207
  function DepositModalWithReown(props) {
208
208
  const reown = useReownWallet();
209
- const enableSolana = props.enableSolana ?? true;
210
- const { walletProvider: solanaWalletProvider } = useAppKitProvider(
211
- enableSolana ? "solana" : "eip155"
212
- );
209
+ const { walletProvider: solanaWalletProvider } = useAppKitProvider("solana");
213
210
  const { connection: solanaConnection } = useAppKitConnection();
214
211
  const reownWithSolana = useMemo(
215
212
  () => ({
216
213
  ...reown,
217
- solanaProvider: enableSolana && reown.isSolana ? solanaWalletProvider : void 0,
218
- solanaConnection: enableSolana && reown.isSolana ? solanaConnection : void 0
214
+ solanaProvider: reown.isSolana ? solanaWalletProvider : void 0,
215
+ solanaConnection: reown.isSolana ? solanaConnection : void 0
219
216
  }),
220
- [enableSolana, reown, solanaWalletProvider, solanaConnection]
217
+ [reown, solanaWalletProvider, solanaConnection]
221
218
  );
222
219
  const handleConnect = useCallback(() => {
223
220
  reown.openConnect();
@@ -241,7 +238,6 @@ function DepositModalReown(props) {
241
238
  {
242
239
  projectId: props.reownAppId,
243
240
  theme: props.theme,
244
- enableSolana: props.enableSolana,
245
241
  rpcUrls: props.rpcUrls,
246
242
  children: /* @__PURE__ */ jsx2(DepositModalWithReown, { ...props })
247
243
  }
@@ -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 _chunkLMPJFLJFcjs = require('./chunk-LMPJFLJF.cjs');
4
- require('./chunk-AALNMWJY.cjs');
5
- require('./chunk-HD7GC4GC.cjs');
3
+ var _chunkSQZI47X2cjs = require('./chunk-SQZI47X2.cjs');
4
+ require('./chunk-6UDMG6QC.cjs');
5
+ require('./chunk-HRQAQ6GG.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkJ2PDDECWcjs = require('./chunk-J2PDDECW.cjs');
10
- require('./chunk-3RUJRZSF.cjs');
9
+ var _chunkQMSHSRCVcjs = require('./chunk-QMSHSRCV.cjs');
10
+ require('./chunk-A6SXAQWV.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, _chunkJ2PDDECWcjs.rpcUrlFor.call(void 0, rpcUrls, id));
91
+ transports[id] = _viem.http.call(void 0, _chunkQMSHSRCVcjs.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(_chunkJ2PDDECWcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
98
+ return `${id}=${_nullishCoalesce(_chunkQMSHSRCVcjs.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 (_chunkJ2PDDECWcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
192
+ if (_chunkQMSHSRCVcjs.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
  );
@@ -206,18 +206,15 @@ var _react5 = require('@reown/appkit-adapter-solana/react');
206
206
 
207
207
  function DepositModalWithReown(props) {
208
208
  const reown = useReownWallet();
209
- const enableSolana = _nullishCoalesce(props.enableSolana, () => ( true));
210
- const { walletProvider: solanaWalletProvider } = _react3.useAppKitProvider.call(void 0,
211
- enableSolana ? "solana" : "eip155"
212
- );
209
+ const { walletProvider: solanaWalletProvider } = _react3.useAppKitProvider.call(void 0, "solana");
213
210
  const { connection: solanaConnection } = _react5.useAppKitConnection.call(void 0, );
214
211
  const reownWithSolana = _react.useMemo.call(void 0,
215
212
  () => ({
216
213
  ...reown,
217
- solanaProvider: enableSolana && reown.isSolana ? solanaWalletProvider : void 0,
218
- solanaConnection: enableSolana && reown.isSolana ? solanaConnection : void 0
214
+ solanaProvider: reown.isSolana ? solanaWalletProvider : void 0,
215
+ solanaConnection: reown.isSolana ? solanaConnection : void 0
219
216
  }),
220
- [enableSolana, reown, solanaWalletProvider, solanaConnection]
217
+ [reown, solanaWalletProvider, solanaConnection]
221
218
  );
222
219
  const handleConnect = _react.useCallback.call(void 0, () => {
223
220
  reown.openConnect();
@@ -226,7 +223,7 @@ function DepositModalWithReown(props) {
226
223
  reown.disconnect();
227
224
  }, [reown.disconnect]);
228
225
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
229
- _chunkLMPJFLJFcjs.DepositModalInner,
226
+ _chunkSQZI47X2cjs.DepositModalInner,
230
227
  {
231
228
  ...props,
232
229
  reownWallet: reownWithSolana,
@@ -241,7 +238,6 @@ function DepositModalReown(props) {
241
238
  {
242
239
  projectId: props.reownAppId,
243
240
  theme: props.theme,
244
- enableSolana: props.enableSolana,
245
241
  rpcUrls: props.rpcUrls,
246
242
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DepositModalWithReown, { ...props })
247
243
  }
@@ -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 _chunkHD7GC4GCcjs = require('./chunk-HD7GC4GC.cjs');
3
+ var _chunkHRQAQ6GGcjs = require('./chunk-HRQAQ6GG.cjs');
4
4
 
5
5
 
6
6
 
@@ -25,7 +25,7 @@ var _chunkHD7GC4GCcjs = require('./chunk-HD7GC4GC.cjs');
25
25
 
26
26
 
27
27
 
28
- var _chunkJ2PDDECWcjs = require('./chunk-J2PDDECW.cjs');
28
+ var _chunkQMSHSRCVcjs = require('./chunk-QMSHSRCV.cjs');
29
29
 
30
30
 
31
31
 
@@ -64,7 +64,7 @@ var Input = _react.forwardRef.call(void 0,
64
64
  }
65
65
  ),
66
66
  error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "rs-input-error", children: [
67
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.AlertTriangleIcon, { className: "rs-input-error-icon" }),
67
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.AlertTriangleIcon, { className: "rs-input-error-icon" }),
68
68
  error
69
69
  ] })
70
70
  ] });
@@ -105,7 +105,7 @@ async function submitRefund(params) {
105
105
  try {
106
106
  userToken = await getUserToken(request);
107
107
  } catch (error) {
108
- _chunkJ2PDDECWcjs.debugError.call(void 0, debug, scope, "getUserToken:failed", error);
108
+ _chunkQMSHSRCVcjs.debugError.call(void 0, debug, scope, "getUserToken:failed", error);
109
109
  throw new RefundError(formatRefundError(401), 401);
110
110
  }
111
111
  if (!userToken) {
@@ -113,7 +113,7 @@ async function submitRefund(params) {
113
113
  }
114
114
  headers["x-user-token"] = userToken;
115
115
  }
116
- _chunkJ2PDDECWcjs.debugLog.call(void 0, debug, scope, "submitRefund:request", {
116
+ _chunkQMSHSRCVcjs.debugLog.call(void 0, debug, scope, "submitRefund:request", {
117
117
  endpoint,
118
118
  chain: request.chain,
119
119
  authorized: getUserToken ? "token" : "cookie"
@@ -126,12 +126,12 @@ async function submitRefund(params) {
126
126
  body: JSON.stringify(request)
127
127
  });
128
128
  } catch (error) {
129
- _chunkJ2PDDECWcjs.debugError.call(void 0, debug, scope, "submitRefund:network", error);
129
+ _chunkQMSHSRCVcjs.debugError.call(void 0, debug, scope, "submitRefund:network", error);
130
130
  throw new RefundError(formatRefundError(0), 0);
131
131
  }
132
132
  if (!response.ok) {
133
133
  const body = await response.json().catch(() => ({}));
134
- _chunkJ2PDDECWcjs.debugError.call(void 0, debug, scope, "submitRefund:failed", body, {
134
+ _chunkQMSHSRCVcjs.debugError.call(void 0, debug, scope, "submitRefund:failed", body, {
135
135
  status: response.status
136
136
  });
137
137
  throw new RefundError(
@@ -140,7 +140,7 @@ async function submitRefund(params) {
140
140
  );
141
141
  }
142
142
  const result = await response.json();
143
- _chunkJ2PDDECWcjs.debugLog.call(void 0, debug, scope, "submitRefund:success", {
143
+ _chunkQMSHSRCVcjs.debugLog.call(void 0, debug, scope, "submitRefund:success", {
144
144
  transactionHash: result.transactionHash
145
145
  });
146
146
  return result;
@@ -162,7 +162,7 @@ function describeDeposit(row) {
162
162
  const symbol = _chunkEGB3NWMLcjs.getTokenSymbol.call(void 0, row.token, chainId);
163
163
  const raw = BigInt(_nullishCoalesce(_nullishCoalesce(row.sourceAmount, () => ( row.amount)), () => ( "0")));
164
164
  const human = Number(_viem.formatUnits.call(void 0, raw, decimals));
165
- const amount = _nullishCoalesce(_chunkJ2PDDECWcjs.formatTokenAmount.call(void 0, human, symbol), () => ( _viem.formatUnits.call(void 0, raw, decimals)));
165
+ const amount = _nullishCoalesce(_chunkQMSHSRCVcjs.formatTokenAmount.call(void 0, human, symbol), () => ( _viem.formatUnits.call(void 0, raw, decimals)));
166
166
  return {
167
167
  chainId,
168
168
  symbol,
@@ -261,13 +261,13 @@ function ClaimModal({
261
261
  debug
262
262
  }) {
263
263
  const modalRef = _react.useRef.call(void 0, null);
264
- const onReadyRef = _chunkJ2PDDECWcjs.useLatestRef.call(void 0, onReady);
265
- const onLifecycleRef = _chunkJ2PDDECWcjs.useLatestRef.call(void 0, onLifecycle);
266
- const onEventRef = _chunkJ2PDDECWcjs.useLatestRef.call(void 0, onEvent);
267
- const onErrorRef = _chunkJ2PDDECWcjs.useLatestRef.call(void 0, onError);
268
- const rpcUrls = _chunkJ2PDDECWcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
264
+ const onReadyRef = _chunkQMSHSRCVcjs.useLatestRef.call(void 0, onReady);
265
+ const onLifecycleRef = _chunkQMSHSRCVcjs.useLatestRef.call(void 0, onLifecycle);
266
+ const onEventRef = _chunkQMSHSRCVcjs.useLatestRef.call(void 0, onEvent);
267
+ const onErrorRef = _chunkQMSHSRCVcjs.useLatestRef.call(void 0, onError);
268
+ const rpcUrls = _chunkQMSHSRCVcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
269
269
  const service = _react.useMemo.call(void 0,
270
- () => _chunkJ2PDDECWcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:claim" }),
270
+ () => _chunkQMSHSRCVcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:claim" }),
271
271
  [backendUrl, debug]
272
272
  );
273
273
  const [state, dispatch] = _react.useReducer.call(void 0, claimReducer, INITIAL_STATE);
@@ -275,7 +275,7 @@ function ClaimModal({
275
275
  const isOpenRef = _react.useRef.call(void 0, isOpen);
276
276
  isOpenRef.current = isOpen;
277
277
  _react.useEffect.call(void 0, () => {
278
- if (isOpen && modalRef.current) _chunkJ2PDDECWcjs.applyTheme.call(void 0, modalRef.current, theme);
278
+ if (isOpen && modalRef.current) _chunkQMSHSRCVcjs.applyTheme.call(void 0, modalRef.current, theme);
279
279
  }, [isOpen, theme]);
280
280
  _react.useEffect.call(void 0, () => {
281
281
  if (isOpen) {
@@ -297,8 +297,8 @@ function ClaimModal({
297
297
  }, [state.step, onClose]);
298
298
  const canGoBack = state.step === "select" || state.step === "review" || state.step === "failed";
299
299
  const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _7 => _7.showBackButton]), () => ( true));
300
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
301
- _chunkJ2PDDECWcjs.Modal,
300
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
301
+ _chunkQMSHSRCVcjs.Modal,
302
302
  {
303
303
  isOpen,
304
304
  onClose: handleClose,
@@ -314,7 +314,7 @@ function ClaimModal({
314
314
  className: "rs-modal-header-back",
315
315
  "aria-label": "Go back",
316
316
  onClick: () => dispatch({ type: "back" }),
317
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.ChevronLeftIcon, {})
317
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.ChevronLeftIcon, {})
318
318
  }
319
319
  ) }),
320
320
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -325,7 +325,7 @@ function ClaimModal({
325
325
  disabled: state.step === "processing",
326
326
  className: "rs-modal-close",
327
327
  "aria-label": "Close",
328
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.CloseIcon, {})
328
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.CloseIcon, {})
329
329
  }
330
330
  ) })
331
331
  ] }),
@@ -466,7 +466,7 @@ function ClaimBody({
466
466
  const refundedRaw = BigInt(
467
467
  _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(result.amount, () => ( deposit.sourceAmount)), () => ( deposit.amount)), () => ( "0"))
468
468
  );
469
- const amountDisplay = _nullishCoalesce(_chunkJ2PDDECWcjs.formatTokenAmount.call(void 0, Number(_viem.formatUnits.call(void 0, refundedRaw, decimals)), symbol), () => ( _viem.formatUnits.call(void 0, refundedRaw, decimals)));
469
+ const amountDisplay = _nullishCoalesce(_chunkQMSHSRCVcjs.formatTokenAmount.call(void 0, Number(_viem.formatUnits.call(void 0, refundedRaw, decimals)), symbol), () => ( _viem.formatUnits.call(void 0, refundedRaw, decimals)));
470
470
  dispatch({
471
471
  type: "complete",
472
472
  txHash: result.transactionHash,
@@ -492,7 +492,7 @@ function ClaimBody({
492
492
  } catch (err) {
493
493
  if (!isCurrentOperation()) return;
494
494
  const status = err instanceof RefundError ? err.status : void 0;
495
- const message = err instanceof RefundError ? err.message : _chunkJ2PDDECWcjs.formatUserError.call(void 0,
495
+ const message = err instanceof RefundError ? err.message : _chunkQMSHSRCVcjs.formatUserError.call(void 0,
496
496
  err instanceof Error ? err.message : "Refund failed"
497
497
  );
498
498
  dispatch({
@@ -557,7 +557,7 @@ function LookupStep({
557
557
  onResults(deposits);
558
558
  } catch (err) {
559
559
  if (!isCurrentOperation()) return;
560
- const message = _chunkJ2PDDECWcjs.formatUserError.call(void 0,
560
+ const message = _chunkQMSHSRCVcjs.formatUserError.call(void 0,
561
561
  err instanceof Error ? err.message : "Lookup failed"
562
562
  );
563
563
  setError(message);
@@ -578,9 +578,9 @@ function LookupStep({
578
578
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
579
579
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
580
580
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
581
- _chunkJ2PDDECWcjs.BodyHeader,
581
+ _chunkQMSHSRCVcjs.BodyHeader,
582
582
  {
583
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.HandCoinsIcon, {}),
583
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.HandCoinsIcon, {}),
584
584
  title: "Claim a deposit",
585
585
  subtitle: "Get funds from a failed deposit sent back to you on the source chain."
586
586
  }
@@ -595,9 +595,9 @@ function LookupStep({
595
595
  error: trimmed.length > 0 && !validTxHash ? "Enter a valid transaction hash" : void 0
596
596
  }
597
597
  ),
598
- error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.Callout, { variant: "error", children: error }),
598
+ error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.Callout, { variant: "error", children: error }),
599
599
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
600
- _chunkJ2PDDECWcjs.Button,
600
+ _chunkQMSHSRCVcjs.Button,
601
601
  {
602
602
  onClick: handleLookup,
603
603
  loading,
@@ -608,7 +608,7 @@ function LookupStep({
608
608
  }
609
609
  )
610
610
  ] }),
611
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.PoweredBy, {})
611
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.PoweredBy, {})
612
612
  ] });
613
613
  }
614
614
  function SelectStep({
@@ -618,9 +618,9 @@ function SelectStep({
618
618
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
619
619
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
620
620
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
621
- _chunkJ2PDDECWcjs.BodyHeader,
621
+ _chunkQMSHSRCVcjs.BodyHeader,
622
622
  {
623
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.CoinsIcon, {}),
623
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.CoinsIcon, {}),
624
624
  title: "Select a deposit",
625
625
  subtitle: "This transaction produced multiple deposits. Choose the one to claim."
626
626
  }
@@ -629,7 +629,7 @@ function SelectStep({
629
629
  const { symbol, amount, chainName } = describeDeposit(row);
630
630
  const eligible = isEligible(row);
631
631
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
632
- _chunkHD7GC4GCcjs.ListRow,
632
+ _chunkHRQAQ6GGcjs.ListRow,
633
633
  {
634
634
  leadingMedia: _chunkEGB3NWMLcjs.tokenIconUrl.call(void 0, symbol),
635
635
  title: `${amount} ${symbol}`,
@@ -642,7 +642,7 @@ function SelectStep({
642
642
  );
643
643
  }) })
644
644
  ] }),
645
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.PoweredBy, {})
645
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.PoweredBy, {})
646
646
  ] });
647
647
  }
648
648
  function ReviewStep({
@@ -657,9 +657,9 @@ function ReviewStep({
657
657
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
658
658
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
659
659
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
660
- _chunkJ2PDDECWcjs.BodyHeader,
660
+ _chunkQMSHSRCVcjs.BodyHeader,
661
661
  {
662
- icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.HandCoinsIcon, {}),
662
+ icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.HandCoinsIcon, {}),
663
663
  title: "Review refund",
664
664
  subtitle: "This returns the funds on the source chain. It does not retry the original bridge."
665
665
  }
@@ -673,14 +673,14 @@ function ReviewStep({
673
673
  " ",
674
674
  symbol
675
675
  ] }),
676
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.TokenIcon, { symbol }) })
676
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.TokenIcon, { symbol }) })
677
677
  ] })
678
678
  ] }),
679
679
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
680
680
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
681
681
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
682
682
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
683
- chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.CdnIcon, { src: chainIcon }) })
683
+ chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.CdnIcon, { src: chainIcon }) })
684
684
  ] })
685
685
  ] }),
686
686
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -697,7 +697,7 @@ function ReviewStep({
697
697
  rel: "noreferrer",
698
698
  children: [
699
699
  short,
700
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.ExternalLinkIcon, {})
700
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.ExternalLinkIcon, {})
701
701
  ]
702
702
  }
703
703
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: short });
@@ -715,7 +715,7 @@ function ReviewStep({
715
715
  }
716
716
  ),
717
717
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
718
- _chunkJ2PDDECWcjs.Button,
718
+ _chunkQMSHSRCVcjs.Button,
719
719
  {
720
720
  onClick: () => destinationValid && onSubmit(destination),
721
721
  loading: submitting,
@@ -726,7 +726,7 @@ function ReviewStep({
726
726
  }
727
727
  )
728
728
  ] }),
729
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.PoweredBy, {})
729
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.PoweredBy, {})
730
730
  ] });
731
731
  }
732
732
  function ResultStep({
@@ -740,9 +740,9 @@ function ResultStep({
740
740
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
741
741
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
742
742
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
743
- _chunkJ2PDDECWcjs.BodyHeader,
743
+ _chunkQMSHSRCVcjs.BodyHeader,
744
744
  {
745
- icon: success ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.AlertTriangleIcon, {}),
745
+ icon: success ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.AlertTriangleIcon, {}),
746
746
  variant: success ? "success" : "error",
747
747
  title: success ? "Refund submitted" : "Refund failed",
748
748
  subtitle: success ? "Your funds are being returned on the source chain." : void 0
@@ -757,7 +757,7 @@ function ResultStep({
757
757
  " ",
758
758
  result.symbol
759
759
  ] }),
760
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.TokenIcon, { symbol: result.symbol }) })
760
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.TokenIcon, { symbol: result.symbol }) })
761
761
  ] })
762
762
  ] }),
763
763
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
@@ -778,22 +778,22 @@ function ResultStep({
778
778
  rel: "noreferrer",
779
779
  children: [
780
780
  short,
781
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.ExternalLinkIcon, {})
781
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.ExternalLinkIcon, {})
782
782
  ]
783
783
  }
784
784
  ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: short });
785
785
  })()
786
786
  ] })
787
- ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.Callout, { variant: "error", children: error }),
787
+ ] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.Callout, { variant: "error", children: error }),
788
788
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-screen-button-row", children: success ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
789
- onReset && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.Button, { variant: "outline", onClick: onReset, fullWidth: true, children: "Claim another deposit" }),
790
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.Button, { onClick: onClose, fullWidth: true, children: "Done" })
789
+ onReset && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.Button, { variant: "outline", onClick: onReset, fullWidth: true, children: "Claim another deposit" }),
790
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.Button, { onClick: onClose, fullWidth: true, children: "Done" })
791
791
  ] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
792
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.Button, { variant: "outline", onClick: onClose, fullWidth: true, children: "Cancel" }),
793
- onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.Button, { onClick: onRetry, fullWidth: true, children: "Try again" })
792
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.Button, { variant: "outline", onClick: onClose, fullWidth: true, children: "Cancel" }),
793
+ onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.Button, { onClick: onRetry, fullWidth: true, children: "Try again" })
794
794
  ] }) })
795
795
  ] }),
796
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJ2PDDECWcjs.PoweredBy, {})
796
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQMSHSRCVcjs.PoweredBy, {})
797
797
  ] });
798
798
  }
799
799
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ListRow
3
- } from "./chunk-MOSAWAHZ.mjs";
3
+ } from "./chunk-V6UFU6OM.mjs";
4
4
  import {
5
5
  AlertTriangleIcon,
6
6
  BodyHeader,
@@ -25,7 +25,7 @@ import {
25
25
  formatUserError,
26
26
  useLatestRef,
27
27
  useStableRpcUrls
28
- } from "./chunk-SR43WXGR.mjs";
28
+ } from "./chunk-XLKPGHUE.mjs";
29
29
  import {
30
30
  DEFAULT_BACKEND_URL,
31
31
  getChainIcon,