@rhinestone/deposit-modal 0.0.0-dev-20260824102421 → 0.0.0-dev-20260824103554
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.
- package/dist/ClaimModal-67RRFPT6.mjs +11 -0
- package/dist/ClaimModal-BQY6FNSR.cjs +11 -0
- package/dist/{DepositModalReown-NLX5RI5H.cjs → DepositModalReown-JJC37VCL.cjs} +13 -13
- package/dist/{DepositModalReown-H256XXZT.mjs → DepositModalReown-TNWNENGT.mjs} +5 -5
- package/dist/WithdrawModal-NZ2UIRL4.mjs +10 -0
- package/dist/WithdrawModal-X5KJ7D3B.cjs +10 -0
- package/dist/{chunk-7T7A3HXD.mjs → chunk-2EEULN4S.mjs} +1 -1
- package/dist/{chunk-SKWJXO3D.mjs → chunk-3MKUEORL.mjs} +1 -1
- package/dist/{chunk-L34PO37U.cjs → chunk-7ED22CNI.cjs} +1 -1
- package/dist/{chunk-VM2L2V3I.mjs → chunk-AWHML72E.mjs} +34 -2
- package/dist/{chunk-XQK6YFM3.cjs → chunk-DYZHRL5G.cjs} +59 -27
- package/dist/{chunk-JCPXPKQF.mjs → chunk-GB42DI7E.mjs} +4 -7
- package/dist/{chunk-TC4A43XZ.mjs → chunk-HCIREEDB.mjs} +4 -4
- package/dist/{chunk-K3G2ZE6R.mjs → chunk-HNBS5S5Y.mjs} +3 -3
- package/dist/{chunk-MJAZGEPN.mjs → chunk-IXZB2YKS.mjs} +2 -2
- package/dist/{chunk-454HYIJG.cjs → chunk-NXN7DD7N.cjs} +268 -268
- package/dist/{chunk-BGDYOQRX.cjs → chunk-OMFYDYOZ.cjs} +8 -8
- package/dist/{chunk-63UHZ7WR.cjs → chunk-RDFRXBJ5.cjs} +51 -51
- package/dist/{chunk-FWGLI5Z7.cjs → chunk-RLGIGVQV.cjs} +66 -66
- package/dist/{chunk-WRZRH2CI.mjs → chunk-RSZSFKN7.mjs} +1 -1
- package/dist/{chunk-XZVBHCCX.cjs → chunk-RUFL6U4N.cjs} +61 -64
- package/dist/{chunk-JTJGQPCC.cjs → chunk-SY2TMFSV.cjs} +3 -3
- package/dist/claim.cjs +6 -6
- package/dist/claim.mjs +5 -5
- package/dist/constants.cjs +2 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/deposit.cjs +6 -6
- package/dist/deposit.mjs +5 -5
- package/dist/embed.cjs +18 -18
- package/dist/embed.mjs +8 -8
- package/dist/index.cjs +9 -9
- package/dist/index.mjs +8 -8
- package/dist/withdraw.cjs +5 -5
- package/dist/withdraw.mjs +4 -4
- package/package.json +1 -1
- package/dist/ClaimModal-GCG6UVTW.cjs +0 -11
- package/dist/ClaimModal-I55QBNYP.mjs +0 -11
- package/dist/WithdrawModal-3CNKJNAK.cjs +0 -10
- package/dist/WithdrawModal-J2FQJWFS.mjs +0 -10
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkDYZHRL5Gcjs = require('./chunk-DYZHRL5G.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk7ED22CNIcjs = require('./chunk-7ED22CNI.cjs');
|
|
8
8
|
|
|
9
9
|
// src/core/recovery.ts
|
|
10
10
|
var RECOVER_DOMAIN = {
|
|
@@ -90,7 +90,7 @@ async function submitSignedRecovery(params) {
|
|
|
90
90
|
destination
|
|
91
91
|
});
|
|
92
92
|
} catch (error) {
|
|
93
|
-
|
|
93
|
+
_chunkDYZHRL5Gcjs.debugError.call(void 0, debug, scope, "signRecovery:failed", error);
|
|
94
94
|
throw new RecoveryError(
|
|
95
95
|
"Signature request was declined. Approve it in your wallet to recover this deposit.",
|
|
96
96
|
0,
|
|
@@ -107,7 +107,7 @@ async function submitSignedRecovery(params) {
|
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
109
|
const url = `${backendUrl.replace(/\/$/, "")}/deposits/recover`;
|
|
110
|
-
|
|
110
|
+
_chunkDYZHRL5Gcjs.debugLog.call(void 0, debug, scope, "submitSignedRecovery:request", {
|
|
111
111
|
url,
|
|
112
112
|
depositId,
|
|
113
113
|
signer
|
|
@@ -119,19 +119,19 @@ async function submitSignedRecovery(params) {
|
|
|
119
119
|
// The shared const, so recovery carries `x-deposit-modal-version` like
|
|
120
120
|
// every other backend call. Without it this path would be invisible in the
|
|
121
121
|
// per-client version telemetry the processor records.
|
|
122
|
-
headers:
|
|
122
|
+
headers: _chunk7ED22CNIcjs.serviceHeaders.call(void 0, ),
|
|
123
123
|
// `depositId` as a string: it is a uint256 upstream and JSON numbers lose
|
|
124
124
|
// precision well before that range.
|
|
125
125
|
body: JSON.stringify({ depositId, destination, signature })
|
|
126
126
|
});
|
|
127
127
|
} catch (error) {
|
|
128
|
-
|
|
128
|
+
_chunkDYZHRL5Gcjs.debugError.call(void 0, debug, scope, "submitSignedRecovery:network", error);
|
|
129
129
|
const { message, retryable } = formatRecoveryError(0);
|
|
130
130
|
throw new RecoveryError(message, 0, void 0, retryable);
|
|
131
131
|
}
|
|
132
132
|
if (!response.ok) {
|
|
133
133
|
const body = await response.json().catch(() => ({}));
|
|
134
|
-
|
|
134
|
+
_chunkDYZHRL5Gcjs.debugError.call(void 0, debug, scope, "submitSignedRecovery:failed", body, {
|
|
135
135
|
status: response.status
|
|
136
136
|
});
|
|
137
137
|
const { message, retryable } = formatRecoveryError(
|
|
@@ -142,7 +142,7 @@ async function submitSignedRecovery(params) {
|
|
|
142
142
|
throw new RecoveryError(message, response.status, body.code, retryable);
|
|
143
143
|
}
|
|
144
144
|
const result = await response.json();
|
|
145
|
-
|
|
145
|
+
_chunkDYZHRL5Gcjs.debugLog.call(void 0, debug, scope, "submitSignedRecovery:success", {
|
|
146
146
|
transactionHash: result.transactionHash
|
|
147
147
|
});
|
|
148
148
|
return result;
|
|
@@ -1,10 +1,10 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkOMFYDYOZcjs = require('./chunk-OMFYDYOZ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkSY2TMFSVcjs = require('./chunk-SY2TMFSV.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -30,7 +30,7 @@ var _chunkJTJGQPCCcjs = require('./chunk-JTJGQPCC.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkDYZHRL5Gcjs = require('./chunk-DYZHRL5G.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
@@ -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,
|
|
70
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.AlertTriangleIcon, { className: "rs-input-error-icon" }),
|
|
71
71
|
error
|
|
72
72
|
] })
|
|
73
73
|
] });
|
|
@@ -91,7 +91,7 @@ function describeDeposit(row) {
|
|
|
91
91
|
const symbol = _chunk4KCSH4T3cjs.getTokenSymbol.call(void 0, row.token, chainId);
|
|
92
92
|
const raw = BigInt(_nullishCoalesce(_nullishCoalesce(row.sourceAmount, () => ( row.amount)), () => ( "0")));
|
|
93
93
|
const human = Number(_viem.formatUnits.call(void 0, raw, decimals));
|
|
94
|
-
const amount = _nullishCoalesce(
|
|
94
|
+
const amount = _nullishCoalesce(_chunkDYZHRL5Gcjs.formatTokenAmount.call(void 0, human, symbol), () => ( _viem.formatUnits.call(void 0, raw, decimals)));
|
|
95
95
|
return {
|
|
96
96
|
chainId,
|
|
97
97
|
symbol,
|
|
@@ -189,15 +189,15 @@ function ClaimModal({
|
|
|
189
189
|
debug,
|
|
190
190
|
onUiState
|
|
191
191
|
}) {
|
|
192
|
-
|
|
192
|
+
_chunkDYZHRL5Gcjs.checkBackendUrl.call(void 0, "ClaimModal", backendUrl);
|
|
193
193
|
const modalRef = _react.useRef.call(void 0, null);
|
|
194
|
-
const onReadyRef =
|
|
195
|
-
const onLifecycleRef =
|
|
196
|
-
const onEventRef =
|
|
197
|
-
const onErrorRef =
|
|
198
|
-
const rpcUrls =
|
|
194
|
+
const onReadyRef = _chunkDYZHRL5Gcjs.useLatestRef.call(void 0, onReady);
|
|
195
|
+
const onLifecycleRef = _chunkDYZHRL5Gcjs.useLatestRef.call(void 0, onLifecycle);
|
|
196
|
+
const onEventRef = _chunkDYZHRL5Gcjs.useLatestRef.call(void 0, onEvent);
|
|
197
|
+
const onErrorRef = _chunkDYZHRL5Gcjs.useLatestRef.call(void 0, onError);
|
|
198
|
+
const rpcUrls = _chunkDYZHRL5Gcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
|
|
199
199
|
const service = _react.useMemo.call(void 0,
|
|
200
|
-
() =>
|
|
200
|
+
() => _chunkDYZHRL5Gcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:claim" }),
|
|
201
201
|
[backendUrl, debug]
|
|
202
202
|
);
|
|
203
203
|
const [state, dispatch] = _react.useReducer.call(void 0, claimReducer, INITIAL_STATE);
|
|
@@ -205,7 +205,7 @@ function ClaimModal({
|
|
|
205
205
|
const isOpenRef = _react.useRef.call(void 0, isOpen);
|
|
206
206
|
isOpenRef.current = isOpen;
|
|
207
207
|
_react.useEffect.call(void 0, () => {
|
|
208
|
-
if (isOpen && modalRef.current)
|
|
208
|
+
if (isOpen && modalRef.current) _chunkDYZHRL5Gcjs.applyTheme.call(void 0, modalRef.current, theme);
|
|
209
209
|
}, [isOpen, theme]);
|
|
210
210
|
_react.useEffect.call(void 0, () => {
|
|
211
211
|
if (isOpen) {
|
|
@@ -226,7 +226,7 @@ function ClaimModal({
|
|
|
226
226
|
}
|
|
227
227
|
}, [state.step, onClose]);
|
|
228
228
|
const canGoBack = state.step === "select" || state.step === "review" || state.step === "failed";
|
|
229
|
-
const onUiStateRef =
|
|
229
|
+
const onUiStateRef = _chunkDYZHRL5Gcjs.useLatestRef.call(void 0, onUiState);
|
|
230
230
|
_react.useEffect.call(void 0, () => {
|
|
231
231
|
_optionalChain([onUiStateRef, 'access', _7 => _7.current, 'optionalCall', _8 => _8({
|
|
232
232
|
screen: state.step,
|
|
@@ -236,8 +236,8 @@ function ClaimModal({
|
|
|
236
236
|
})]);
|
|
237
237
|
}, [state.step, canGoBack, onUiStateRef]);
|
|
238
238
|
const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _9 => _9.showBackButton]), () => ( true));
|
|
239
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
240
|
-
|
|
239
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
240
|
+
_chunkDYZHRL5Gcjs.Modal,
|
|
241
241
|
{
|
|
242
242
|
isOpen,
|
|
243
243
|
onClose: handleClose,
|
|
@@ -253,7 +253,7 @@ function ClaimModal({
|
|
|
253
253
|
className: "rs-modal-header-back",
|
|
254
254
|
"aria-label": "Go back",
|
|
255
255
|
onClick: () => dispatch({ type: "back" }),
|
|
256
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
256
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.ChevronLeftIcon, {})
|
|
257
257
|
}
|
|
258
258
|
) }),
|
|
259
259
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -264,7 +264,7 @@ function ClaimModal({
|
|
|
264
264
|
disabled: state.step === "processing",
|
|
265
265
|
className: "rs-modal-close",
|
|
266
266
|
"aria-label": "Close",
|
|
267
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
267
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CloseIcon, {})
|
|
268
268
|
}
|
|
269
269
|
) })
|
|
270
270
|
] }),
|
|
@@ -387,7 +387,7 @@ function ClaimBody({
|
|
|
387
387
|
chain: sourceChainId
|
|
388
388
|
})]);
|
|
389
389
|
try {
|
|
390
|
-
const result = await
|
|
390
|
+
const result = await _chunkOMFYDYOZcjs.submitSignedRecovery.call(void 0, {
|
|
391
391
|
backendUrl,
|
|
392
392
|
chainId: sourceChainId,
|
|
393
393
|
depositId: deposit.id,
|
|
@@ -403,7 +403,7 @@ function ClaimBody({
|
|
|
403
403
|
const refundedRaw = BigInt(
|
|
404
404
|
_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(result.amount, () => ( deposit.sourceAmount)), () => ( deposit.amount)), () => ( "0"))
|
|
405
405
|
);
|
|
406
|
-
const amountDisplay = _nullishCoalesce(
|
|
406
|
+
const amountDisplay = _nullishCoalesce(_chunkDYZHRL5Gcjs.formatTokenAmount.call(void 0, Number(_viem.formatUnits.call(void 0, refundedRaw, decimals)), symbol), () => ( _viem.formatUnits.call(void 0, refundedRaw, decimals)));
|
|
407
407
|
dispatch({
|
|
408
408
|
type: "complete",
|
|
409
409
|
txHash: result.transactionHash,
|
|
@@ -428,9 +428,9 @@ function ClaimBody({
|
|
|
428
428
|
})]);
|
|
429
429
|
} catch (err) {
|
|
430
430
|
if (!isCurrentOperation()) return;
|
|
431
|
-
const recoveryError = err instanceof
|
|
431
|
+
const recoveryError = err instanceof _chunkOMFYDYOZcjs.RecoveryError ? err : void 0;
|
|
432
432
|
const status = _optionalChain([recoveryError, 'optionalAccess', _18 => _18.status]);
|
|
433
|
-
const message = _nullishCoalesce(_optionalChain([recoveryError, 'optionalAccess', _19 => _19.message]), () => (
|
|
433
|
+
const message = _nullishCoalesce(_optionalChain([recoveryError, 'optionalAccess', _19 => _19.message]), () => ( _chunkDYZHRL5Gcjs.formatUserError.call(void 0,
|
|
434
434
|
err instanceof Error ? err.message : "Recovery failed"
|
|
435
435
|
)));
|
|
436
436
|
dispatch({
|
|
@@ -495,7 +495,7 @@ function LookupStep({
|
|
|
495
495
|
onResults(deposits);
|
|
496
496
|
} catch (err) {
|
|
497
497
|
if (!isCurrentOperation()) return;
|
|
498
|
-
const message =
|
|
498
|
+
const message = _chunkDYZHRL5Gcjs.formatUserError.call(void 0,
|
|
499
499
|
err instanceof Error ? err.message : "Lookup failed"
|
|
500
500
|
);
|
|
501
501
|
setError(message);
|
|
@@ -516,9 +516,9 @@ function LookupStep({
|
|
|
516
516
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
517
517
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
518
518
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
519
|
-
|
|
519
|
+
_chunkDYZHRL5Gcjs.BodyHeader,
|
|
520
520
|
{
|
|
521
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
521
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.HandCoinsIcon, {}),
|
|
522
522
|
title: "Claim a deposit",
|
|
523
523
|
subtitle: "Get funds from a failed deposit sent back to you on the source chain."
|
|
524
524
|
}
|
|
@@ -533,9 +533,9 @@ function LookupStep({
|
|
|
533
533
|
error: trimmed.length > 0 && !validTxHash ? "Enter a valid transaction hash" : void 0
|
|
534
534
|
}
|
|
535
535
|
),
|
|
536
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
536
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Callout, { variant: "error", children: error }),
|
|
537
537
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
538
|
-
|
|
538
|
+
_chunkDYZHRL5Gcjs.Button,
|
|
539
539
|
{
|
|
540
540
|
onClick: handleLookup,
|
|
541
541
|
loading,
|
|
@@ -546,7 +546,7 @@ function LookupStep({
|
|
|
546
546
|
}
|
|
547
547
|
)
|
|
548
548
|
] }),
|
|
549
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
549
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
550
550
|
] });
|
|
551
551
|
}
|
|
552
552
|
function SelectStep({
|
|
@@ -556,9 +556,9 @@ function SelectStep({
|
|
|
556
556
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
557
557
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
558
558
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
559
|
-
|
|
559
|
+
_chunkDYZHRL5Gcjs.BodyHeader,
|
|
560
560
|
{
|
|
561
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
561
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CoinsIcon, {}),
|
|
562
562
|
title: "Select a deposit",
|
|
563
563
|
subtitle: "This transaction produced multiple deposits. Choose the one to claim."
|
|
564
564
|
}
|
|
@@ -567,7 +567,7 @@ function SelectStep({
|
|
|
567
567
|
const { symbol, amount, chainName } = describeDeposit(row);
|
|
568
568
|
const eligible = isEligible(row);
|
|
569
569
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
570
|
-
|
|
570
|
+
_chunkSY2TMFSVcjs.ListRow,
|
|
571
571
|
{
|
|
572
572
|
leadingMedia: _chunk4KCSH4T3cjs.tokenIconUrl.call(void 0, symbol),
|
|
573
573
|
title: `${amount} ${symbol}`,
|
|
@@ -580,7 +580,7 @@ function SelectStep({
|
|
|
580
580
|
);
|
|
581
581
|
}) })
|
|
582
582
|
] }),
|
|
583
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
583
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
584
584
|
] });
|
|
585
585
|
}
|
|
586
586
|
function ReviewStep({
|
|
@@ -590,15 +590,15 @@ function ReviewStep({
|
|
|
590
590
|
onSubmit
|
|
591
591
|
}) {
|
|
592
592
|
const { chainId, symbol, amount, chainName, chainIcon } = describeDeposit(deposit);
|
|
593
|
-
const explorerTxUrl =
|
|
593
|
+
const explorerTxUrl = _chunkDYZHRL5Gcjs.useExplorerTxUrl.call(void 0, );
|
|
594
594
|
const [destination, setDestination] = _react.useState.call(void 0, _nullishCoalesce(defaultRefundDestination, () => ( "")));
|
|
595
595
|
const destinationValid = _viem.isAddress.call(void 0, destination);
|
|
596
596
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
597
597
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
598
598
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
599
|
-
|
|
599
|
+
_chunkDYZHRL5Gcjs.BodyHeader,
|
|
600
600
|
{
|
|
601
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
601
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.HandCoinsIcon, {}),
|
|
602
602
|
title: "Review refund",
|
|
603
603
|
subtitle: "This returns the funds on the source chain. It does not retry the original bridge."
|
|
604
604
|
}
|
|
@@ -612,14 +612,14 @@ function ReviewStep({
|
|
|
612
612
|
" ",
|
|
613
613
|
symbol
|
|
614
614
|
] }),
|
|
615
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
615
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.TokenIcon, { symbol }) })
|
|
616
616
|
] })
|
|
617
617
|
] }),
|
|
618
618
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
619
619
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
|
|
620
620
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
621
621
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
|
|
622
|
-
chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
622
|
+
chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CdnIcon, { src: chainIcon }) })
|
|
623
623
|
] })
|
|
624
624
|
] }),
|
|
625
625
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
@@ -636,7 +636,7 @@ function ReviewStep({
|
|
|
636
636
|
rel: "noreferrer",
|
|
637
637
|
children: [
|
|
638
638
|
short,
|
|
639
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
639
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.ExternalLinkIcon, {})
|
|
640
640
|
]
|
|
641
641
|
}
|
|
642
642
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: short });
|
|
@@ -654,7 +654,7 @@ function ReviewStep({
|
|
|
654
654
|
}
|
|
655
655
|
),
|
|
656
656
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
657
|
-
|
|
657
|
+
_chunkDYZHRL5Gcjs.Button,
|
|
658
658
|
{
|
|
659
659
|
onClick: () => destinationValid && onSubmit(destination),
|
|
660
660
|
loading: submitting,
|
|
@@ -665,7 +665,7 @@ function ReviewStep({
|
|
|
665
665
|
}
|
|
666
666
|
)
|
|
667
667
|
] }),
|
|
668
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
668
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
669
669
|
] });
|
|
670
670
|
}
|
|
671
671
|
function ResultStep({
|
|
@@ -676,13 +676,13 @@ function ResultStep({
|
|
|
676
676
|
onRetry
|
|
677
677
|
}) {
|
|
678
678
|
const success = !!result;
|
|
679
|
-
const explorerTxUrl =
|
|
679
|
+
const explorerTxUrl = _chunkDYZHRL5Gcjs.useExplorerTxUrl.call(void 0, );
|
|
680
680
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
681
681
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
682
682
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
683
|
-
|
|
683
|
+
_chunkDYZHRL5Gcjs.BodyHeader,
|
|
684
684
|
{
|
|
685
|
-
icon: success ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
685
|
+
icon: success ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.AlertTriangleIcon, {}),
|
|
686
686
|
variant: success ? "success" : "error",
|
|
687
687
|
title: success ? "Refund submitted" : "Refund failed",
|
|
688
688
|
subtitle: success ? "Your funds are being returned on the source chain." : void 0
|
|
@@ -697,7 +697,7 @@ function ResultStep({
|
|
|
697
697
|
" ",
|
|
698
698
|
result.symbol
|
|
699
699
|
] }),
|
|
700
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
700
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.TokenIcon, { symbol: result.symbol }) })
|
|
701
701
|
] })
|
|
702
702
|
] }),
|
|
703
703
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
@@ -718,22 +718,22 @@ function ResultStep({
|
|
|
718
718
|
rel: "noreferrer",
|
|
719
719
|
children: [
|
|
720
720
|
short,
|
|
721
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
721
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.ExternalLinkIcon, {})
|
|
722
722
|
]
|
|
723
723
|
}
|
|
724
724
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: short });
|
|
725
725
|
})()
|
|
726
726
|
] })
|
|
727
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
727
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Callout, { variant: "error", children: error }),
|
|
728
728
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-screen-button-row", children: success ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
729
|
-
onReset && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
730
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
729
|
+
onReset && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Button, { variant: "outline", onClick: onReset, fullWidth: true, children: "Claim another deposit" }),
|
|
730
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Button, { onClick: onClose, fullWidth: true, children: "Done" })
|
|
731
731
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
732
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
733
|
-
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
732
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Button, { variant: "outline", onClick: onClose, fullWidth: true, children: "Cancel" }),
|
|
733
|
+
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.Button, { onClick: onRetry, fullWidth: true, children: "Try again" })
|
|
734
734
|
] }) })
|
|
735
735
|
] }),
|
|
736
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
736
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDYZHRL5Gcjs.PoweredBy, {})
|
|
737
737
|
] });
|
|
738
738
|
}
|
|
739
739
|
|