@rhinestone/deposit-modal 0.0.0-dev-20260901120231 → 0.0.0-dev-20260901125921
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/bridge-transcript.json +14 -0
- package/dist/{ClaimModal-53ZQN7B7.mjs → ClaimModal-GECPNVYW.mjs} +5 -5
- package/dist/ClaimModal-TUIJ2FXZ.cjs +13 -0
- package/dist/{DepositModalReown-HVP2ZZNL.cjs → DepositModalReown-7X2P4Q3U.cjs} +18 -18
- package/dist/{DepositModalReown-6FZ53KIP.mjs → DepositModalReown-J5677AO3.mjs} +5 -5
- package/dist/{WithdrawModal-L77PPBMZ.mjs → WithdrawModal-EGUXJGKC.mjs} +4 -4
- package/dist/WithdrawModal-ZRO4GPL5.cjs +12 -0
- package/dist/{chunk-U6SK2GOY.mjs → chunk-5VTLHOWL.mjs} +1 -1
- package/dist/{chunk-WBUK27DO.cjs → chunk-6NMICTMH.cjs} +8 -8
- package/dist/{chunk-AXSKK5QR.cjs → chunk-76SNGRJ4.cjs} +272 -272
- package/dist/{chunk-BZPPG7KU.cjs → chunk-BBHL7Y6Q.cjs} +65 -65
- package/dist/{chunk-AAWLOBUU.cjs → chunk-E26VPCQS.cjs} +3 -3
- package/dist/{chunk-SXT4VLDP.cjs → chunk-GGEX3J6J.cjs} +67 -67
- package/dist/{chunk-LQIIVFFP.cjs → chunk-H4GKLXX7.cjs} +53 -53
- package/dist/{chunk-QFH6E337.mjs → chunk-HEBZWISE.mjs} +3 -3
- package/dist/{chunk-32YGCXVS.cjs → chunk-LHVHW2FC.cjs} +1 -1
- package/dist/{chunk-NWVX44AG.mjs → chunk-QO63RXOH.mjs} +1 -1
- package/dist/{chunk-26ORY7ZP.mjs → chunk-SSODFKQC.mjs} +1 -1
- package/dist/{chunk-HZ3NJXFI.mjs → chunk-UIMR4O7B.mjs} +2 -2
- package/dist/{chunk-KRAFCZ76.mjs → chunk-ULDG2NFL.mjs} +1 -1
- package/dist/{chunk-NOBMQXTO.cjs → chunk-UMHZX3KX.cjs} +32 -32
- package/dist/{chunk-RQ5TXRRW.mjs → chunk-URYV6A2L.mjs} +2 -2
- package/dist/{chunk-SP5DGA4X.mjs → chunk-V35JXQDL.mjs} +4 -4
- 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 +113 -32
- package/dist/embed.mjs +94 -13
- 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 +2 -2
- package/dist/ClaimModal-C5E4JXDW.cjs +0 -13
- package/dist/WithdrawModal-2XGGPXWZ.cjs +0 -12
|
@@ -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 _chunk6NMICTMHcjs = require('./chunk-6NMICTMH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkE26VPCQScjs = require('./chunk-E26VPCQS.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -32,7 +32,7 @@ var _chunkAAWLOBUUcjs = require('./chunk-AAWLOBUU.cjs');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkUMHZX3KXcjs = require('./chunk-UMHZX3KX.cjs');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -69,7 +69,7 @@ var Input = _react.forwardRef.call(void 0,
|
|
|
69
69
|
}
|
|
70
70
|
),
|
|
71
71
|
error && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "rs-input-error", children: [
|
|
72
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
72
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.AlertTriangleIcon, { className: "rs-input-error-icon" }),
|
|
73
73
|
error
|
|
74
74
|
] })
|
|
75
75
|
] });
|
|
@@ -85,7 +85,7 @@ Input.displayName = "Input";
|
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
function claimFailureReasonForError(error) {
|
|
88
|
-
if (!(error instanceof
|
|
88
|
+
if (!(error instanceof _chunk6NMICTMHcjs.RecoveryError)) return "refund_failed";
|
|
89
89
|
switch (error.code) {
|
|
90
90
|
case "SIGNATURE_INVALID":
|
|
91
91
|
return "signature_invalid";
|
|
@@ -253,7 +253,7 @@ function ClaimAnalyticsControllerProvider({
|
|
|
253
253
|
children,
|
|
254
254
|
controllerRef
|
|
255
255
|
}) {
|
|
256
|
-
const emit =
|
|
256
|
+
const emit = _chunkUMHZX3KXcjs.useClaimAnalyticsEmitter.call(void 0, );
|
|
257
257
|
const controller = _react.useMemo.call(void 0, () => createClaimAnalyticsController(emit), [emit]);
|
|
258
258
|
if (controllerRef) controllerRef.current = controller;
|
|
259
259
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ClaimAnalyticsControllerContext.Provider, { value: controller, children });
|
|
@@ -278,7 +278,7 @@ function describeDeposit(row) {
|
|
|
278
278
|
const symbol = _chunk4KCSH4T3cjs.getTokenSymbol.call(void 0, row.token, chainId);
|
|
279
279
|
const raw = BigInt(_nullishCoalesce(_nullishCoalesce(row.sourceAmount, () => ( row.amount)), () => ( "0")));
|
|
280
280
|
const human = Number(_viem.formatUnits.call(void 0, raw, decimals));
|
|
281
|
-
const amount = _nullishCoalesce(
|
|
281
|
+
const amount = _nullishCoalesce(_chunkUMHZX3KXcjs.formatTokenAmount.call(void 0, human, symbol), () => ( _viem.formatUnits.call(void 0, raw, decimals)));
|
|
282
282
|
return {
|
|
283
283
|
chainId,
|
|
284
284
|
symbol,
|
|
@@ -399,17 +399,17 @@ function ClaimModal({
|
|
|
399
399
|
debug,
|
|
400
400
|
onUiState
|
|
401
401
|
}) {
|
|
402
|
-
|
|
402
|
+
_chunkUMHZX3KXcjs.checkBackendUrl.call(void 0, "ClaimModal", backendUrl);
|
|
403
403
|
const modalRef = _react.useRef.call(void 0, null);
|
|
404
|
-
const onReadyRef =
|
|
405
|
-
const onLifecycleRef =
|
|
406
|
-
const onErrorRef =
|
|
404
|
+
const onReadyRef = _chunkUMHZX3KXcjs.useLatestRef.call(void 0, onReady);
|
|
405
|
+
const onLifecycleRef = _chunkUMHZX3KXcjs.useLatestRef.call(void 0, onLifecycle);
|
|
406
|
+
const onErrorRef = _chunkUMHZX3KXcjs.useLatestRef.call(void 0, onError);
|
|
407
407
|
const analyticsControllerRef = _react.useRef.call(void 0, null);
|
|
408
408
|
const lastSubmitFailureRef = _react.useRef.call(void 0, null);
|
|
409
409
|
const previousOpenRef = _react.useRef.call(void 0, isOpen);
|
|
410
|
-
const rpcUrls =
|
|
410
|
+
const rpcUrls = _chunkUMHZX3KXcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
|
|
411
411
|
const service = _react.useMemo.call(void 0,
|
|
412
|
-
() =>
|
|
412
|
+
() => _chunkUMHZX3KXcjs.createDepositService.call(void 0, backendUrl, { debug, debugScope: "service:claim" }),
|
|
413
413
|
[backendUrl, debug]
|
|
414
414
|
);
|
|
415
415
|
const [state, dispatch] = _react.useReducer.call(void 0, claimReducer, INITIAL_STATE);
|
|
@@ -418,7 +418,7 @@ function ClaimModal({
|
|
|
418
418
|
isOpenRef.current = isOpen;
|
|
419
419
|
_react.useEffect.call(void 0, () => {
|
|
420
420
|
if (!isOpen || !modalRef.current) return;
|
|
421
|
-
return
|
|
421
|
+
return _chunkUMHZX3KXcjs.applyTheme.call(void 0, modalRef.current, theme);
|
|
422
422
|
}, [isOpen, theme]);
|
|
423
423
|
_react.useEffect.call(void 0, () => {
|
|
424
424
|
if (isOpen) {
|
|
@@ -477,7 +477,7 @@ function ClaimModal({
|
|
|
477
477
|
dispatch({ type: "back" });
|
|
478
478
|
}, [state.step]);
|
|
479
479
|
const canGoBack = state.step === "select" || state.step === "review" || state.step === "failed";
|
|
480
|
-
const onUiStateRef =
|
|
480
|
+
const onUiStateRef = _chunkUMHZX3KXcjs.useLatestRef.call(void 0, onUiState);
|
|
481
481
|
_react.useEffect.call(void 0, () => {
|
|
482
482
|
_optionalChain([onUiStateRef, 'access', _22 => _22.current, 'optionalCall', _23 => _23({
|
|
483
483
|
screen: state.step,
|
|
@@ -486,8 +486,8 @@ function ClaimModal({
|
|
|
486
486
|
})]);
|
|
487
487
|
}, [state.step, canGoBack, goBack, onUiStateRef]);
|
|
488
488
|
const showBackButton = _nullishCoalesce(_optionalChain([uiConfig, 'optionalAccess', _24 => _24.showBackButton]), () => ( true));
|
|
489
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
490
|
-
|
|
489
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.RpcUrlsProvider, { value: rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.ChainCatalogProvider, { service, rpcUrls, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
490
|
+
_chunkUMHZX3KXcjs.Modal,
|
|
491
491
|
{
|
|
492
492
|
isOpen,
|
|
493
493
|
onClose: handleModalDismiss,
|
|
@@ -496,7 +496,7 @@ function ClaimModal({
|
|
|
496
496
|
closeOnOverlayClick,
|
|
497
497
|
ariaLabel: "Claim your deposit",
|
|
498
498
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
499
|
-
|
|
499
|
+
_chunkUMHZX3KXcjs.AnalyticsSession,
|
|
500
500
|
{
|
|
501
501
|
modal: "claim",
|
|
502
502
|
sessionProperties: buildClaimAnalyticsSessionProperties({
|
|
@@ -518,7 +518,7 @@ function ClaimModal({
|
|
|
518
518
|
className: "rs-modal-header-back",
|
|
519
519
|
"aria-label": "Go back",
|
|
520
520
|
onClick: goBack,
|
|
521
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
521
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.ChevronLeftIcon, {})
|
|
522
522
|
}
|
|
523
523
|
) }),
|
|
524
524
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-modal-header-nav-right", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -529,7 +529,7 @@ function ClaimModal({
|
|
|
529
529
|
disabled: state.step === "processing",
|
|
530
530
|
className: "rs-modal-close",
|
|
531
531
|
"aria-label": "Close",
|
|
532
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
532
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CloseIcon, {})
|
|
533
533
|
}
|
|
534
534
|
) })
|
|
535
535
|
] }),
|
|
@@ -688,7 +688,7 @@ function ClaimBody({
|
|
|
688
688
|
chain: sourceChainId
|
|
689
689
|
})]);
|
|
690
690
|
try {
|
|
691
|
-
const result = await
|
|
691
|
+
const result = await _chunk6NMICTMHcjs.submitSignedRecovery.call(void 0, {
|
|
692
692
|
backendUrl,
|
|
693
693
|
chainId: sourceChainId,
|
|
694
694
|
depositId: deposit.id,
|
|
@@ -704,7 +704,7 @@ function ClaimBody({
|
|
|
704
704
|
const refundedRaw = BigInt(
|
|
705
705
|
_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(result.amount, () => ( deposit.sourceAmount)), () => ( deposit.amount)), () => ( "0"))
|
|
706
706
|
);
|
|
707
|
-
const amountDisplay = _nullishCoalesce(
|
|
707
|
+
const amountDisplay = _nullishCoalesce(_chunkUMHZX3KXcjs.formatTokenAmount.call(void 0, Number(_viem.formatUnits.call(void 0, refundedRaw, decimals)), symbol), () => ( _viem.formatUnits.call(void 0, refundedRaw, decimals)));
|
|
708
708
|
dispatch({
|
|
709
709
|
type: "complete",
|
|
710
710
|
txHash: result.transactionHash,
|
|
@@ -735,9 +735,9 @@ function ClaimBody({
|
|
|
735
735
|
})]);
|
|
736
736
|
} catch (err) {
|
|
737
737
|
if (!isCurrentOperation()) return;
|
|
738
|
-
const recoveryError = err instanceof
|
|
738
|
+
const recoveryError = err instanceof _chunk6NMICTMHcjs.RecoveryError ? err : void 0;
|
|
739
739
|
const status = _optionalChain([recoveryError, 'optionalAccess', _29 => _29.status]);
|
|
740
|
-
const message = _nullishCoalesce(_optionalChain([recoveryError, 'optionalAccess', _30 => _30.message]), () => (
|
|
740
|
+
const message = _nullishCoalesce(_optionalChain([recoveryError, 'optionalAccess', _30 => _30.message]), () => ( _chunkUMHZX3KXcjs.formatUserError.call(void 0,
|
|
741
741
|
err instanceof Error ? err.message : "Recovery failed"
|
|
742
742
|
)));
|
|
743
743
|
const retryable = _nullishCoalesce(_optionalChain([recoveryError, 'optionalAccess', _31 => _31.retryable]), () => ( true));
|
|
@@ -808,7 +808,7 @@ function LookupStep({
|
|
|
808
808
|
onResults(deposits);
|
|
809
809
|
} catch (err) {
|
|
810
810
|
if (!isCurrentOperation()) return;
|
|
811
|
-
const message =
|
|
811
|
+
const message = _chunkUMHZX3KXcjs.formatUserError.call(void 0,
|
|
812
812
|
err instanceof Error ? err.message : "Lookup failed"
|
|
813
813
|
);
|
|
814
814
|
analytics.failure("lookup_failed", true, "lookup");
|
|
@@ -830,9 +830,9 @@ function LookupStep({
|
|
|
830
830
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
831
831
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
832
832
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
833
|
-
|
|
833
|
+
_chunkUMHZX3KXcjs.BodyHeader,
|
|
834
834
|
{
|
|
835
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
835
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.HandCoinsIcon, {}),
|
|
836
836
|
title: "Claim a deposit",
|
|
837
837
|
subtitle: "Get funds from a failed deposit sent back to you on the source chain."
|
|
838
838
|
}
|
|
@@ -847,9 +847,9 @@ function LookupStep({
|
|
|
847
847
|
error: trimmed.length > 0 && !validTxHash ? "Enter a valid transaction hash" : void 0
|
|
848
848
|
}
|
|
849
849
|
),
|
|
850
|
-
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
850
|
+
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Callout, { variant: "error", children: error }),
|
|
851
851
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
852
|
-
|
|
852
|
+
_chunkUMHZX3KXcjs.Button,
|
|
853
853
|
{
|
|
854
854
|
onClick: handleLookup,
|
|
855
855
|
loading,
|
|
@@ -860,7 +860,7 @@ function LookupStep({
|
|
|
860
860
|
}
|
|
861
861
|
)
|
|
862
862
|
] }),
|
|
863
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
863
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
864
864
|
] });
|
|
865
865
|
}
|
|
866
866
|
function SelectStep({
|
|
@@ -870,9 +870,9 @@ function SelectStep({
|
|
|
870
870
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
871
871
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
872
872
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
873
|
-
|
|
873
|
+
_chunkUMHZX3KXcjs.BodyHeader,
|
|
874
874
|
{
|
|
875
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
875
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CoinsIcon, {}),
|
|
876
876
|
title: "Select a deposit",
|
|
877
877
|
subtitle: "This transaction produced multiple deposits. Choose the one to claim."
|
|
878
878
|
}
|
|
@@ -881,7 +881,7 @@ function SelectStep({
|
|
|
881
881
|
const { symbol, amount, chainName } = describeDeposit(row);
|
|
882
882
|
const eligible = isEligible(row);
|
|
883
883
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
884
|
-
|
|
884
|
+
_chunkE26VPCQScjs.ListRow,
|
|
885
885
|
{
|
|
886
886
|
leadingMedia: _chunk4KCSH4T3cjs.tokenIconUrl.call(void 0, symbol),
|
|
887
887
|
title: `${amount} ${symbol}`,
|
|
@@ -894,7 +894,7 @@ function SelectStep({
|
|
|
894
894
|
);
|
|
895
895
|
}) })
|
|
896
896
|
] }),
|
|
897
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
897
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
898
898
|
] });
|
|
899
899
|
}
|
|
900
900
|
function ReviewStep({
|
|
@@ -905,7 +905,7 @@ function ReviewStep({
|
|
|
905
905
|
}) {
|
|
906
906
|
const analytics = useClaimAnalyticsController();
|
|
907
907
|
const { chainId, symbol, amount, chainName, chainIcon } = describeDeposit(deposit);
|
|
908
|
-
const explorerTxUrl =
|
|
908
|
+
const explorerTxUrl = _chunkUMHZX3KXcjs.useExplorerTxUrl.call(void 0, );
|
|
909
909
|
const [destination, setDestination] = _react.useState.call(void 0, _nullishCoalesce(defaultRefundDestination, () => ( "")));
|
|
910
910
|
const destinationValid = _viem.isAddress.call(void 0, destination);
|
|
911
911
|
_react.useEffect.call(void 0, () => {
|
|
@@ -916,9 +916,9 @@ function ReviewStep({
|
|
|
916
916
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
917
917
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
918
918
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
919
|
-
|
|
919
|
+
_chunkUMHZX3KXcjs.BodyHeader,
|
|
920
920
|
{
|
|
921
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
921
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.HandCoinsIcon, {}),
|
|
922
922
|
title: "Review refund",
|
|
923
923
|
subtitle: "This returns the funds on the source chain. It does not retry the original bridge."
|
|
924
924
|
}
|
|
@@ -932,14 +932,14 @@ function ReviewStep({
|
|
|
932
932
|
" ",
|
|
933
933
|
symbol
|
|
934
934
|
] }),
|
|
935
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
935
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.TokenIcon, { symbol }) })
|
|
936
936
|
] })
|
|
937
937
|
] }),
|
|
938
938
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
939
939
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "Source chain" }),
|
|
940
940
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "rs-review-detail-value", children: [
|
|
941
941
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: chainName }),
|
|
942
|
-
chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
942
|
+
chainIcon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CdnIcon, { src: chainIcon }) })
|
|
943
943
|
] })
|
|
944
944
|
] }),
|
|
945
945
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
@@ -956,7 +956,7 @@ function ReviewStep({
|
|
|
956
956
|
rel: "noreferrer",
|
|
957
957
|
children: [
|
|
958
958
|
short,
|
|
959
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
959
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.ExternalLinkIcon, {})
|
|
960
960
|
]
|
|
961
961
|
}
|
|
962
962
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: short });
|
|
@@ -974,7 +974,7 @@ function ReviewStep({
|
|
|
974
974
|
}
|
|
975
975
|
),
|
|
976
976
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
977
|
-
|
|
977
|
+
_chunkUMHZX3KXcjs.Button,
|
|
978
978
|
{
|
|
979
979
|
onClick: () => destinationValid && onSubmit(destination),
|
|
980
980
|
loading: submitting,
|
|
@@ -985,7 +985,7 @@ function ReviewStep({
|
|
|
985
985
|
}
|
|
986
986
|
)
|
|
987
987
|
] }),
|
|
988
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
988
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
989
989
|
] });
|
|
990
990
|
}
|
|
991
991
|
function ResultStep({
|
|
@@ -996,13 +996,13 @@ function ResultStep({
|
|
|
996
996
|
onRetry
|
|
997
997
|
}) {
|
|
998
998
|
const success = !!result;
|
|
999
|
-
const explorerTxUrl =
|
|
999
|
+
const explorerTxUrl = _chunkUMHZX3KXcjs.useExplorerTxUrl.call(void 0, );
|
|
1000
1000
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen", children: [
|
|
1001
1001
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
|
|
1002
1002
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1003
|
-
|
|
1003
|
+
_chunkUMHZX3KXcjs.BodyHeader,
|
|
1004
1004
|
{
|
|
1005
|
-
icon: success ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1005
|
+
icon: success ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.CheckIcon, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.AlertTriangleIcon, {}),
|
|
1006
1006
|
variant: success ? "success" : "error",
|
|
1007
1007
|
title: success ? "Refund submitted" : "Refund failed",
|
|
1008
1008
|
subtitle: success ? "Your funds are being returned on the source chain." : void 0
|
|
@@ -1017,7 +1017,7 @@ function ResultStep({
|
|
|
1017
1017
|
" ",
|
|
1018
1018
|
result.symbol
|
|
1019
1019
|
] }),
|
|
1020
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1020
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-icon", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.TokenIcon, { symbol: result.symbol }) })
|
|
1021
1021
|
] })
|
|
1022
1022
|
] }),
|
|
1023
1023
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "rs-review-detail-row", children: [
|
|
@@ -1038,22 +1038,22 @@ function ResultStep({
|
|
|
1038
1038
|
rel: "noreferrer",
|
|
1039
1039
|
children: [
|
|
1040
1040
|
short,
|
|
1041
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1041
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.ExternalLinkIcon, {})
|
|
1042
1042
|
]
|
|
1043
1043
|
}
|
|
1044
1044
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "rs-review-detail-value", children: short });
|
|
1045
1045
|
})()
|
|
1046
1046
|
] })
|
|
1047
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1047
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Callout, { variant: "error", children: error }),
|
|
1048
1048
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "rs-screen-button-row", children: success ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1049
|
-
onReset && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1050
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1049
|
+
onReset && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Button, { variant: "outline", onClick: onReset, fullWidth: true, children: "Claim another deposit" }),
|
|
1050
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Button, { onClick: onClose, fullWidth: true, children: "Done" })
|
|
1051
1051
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1052
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1053
|
-
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1052
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Button, { variant: "outline", onClick: onClose, fullWidth: true, children: "Cancel" }),
|
|
1053
|
+
onRetry && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.Button, { onClick: onRetry, fullWidth: true, children: "Try again" })
|
|
1054
1054
|
] }) })
|
|
1055
1055
|
] }),
|
|
1056
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1056
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUMHZX3KXcjs.PoweredBy, {})
|
|
1057
1057
|
] });
|
|
1058
1058
|
}
|
|
1059
1059
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RecoveryError,
|
|
3
3
|
submitSignedRecovery
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UIMR4O7B.mjs";
|
|
5
5
|
import {
|
|
6
6
|
ListRow
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5VTLHOWL.mjs";
|
|
8
8
|
import {
|
|
9
9
|
AlertTriangleIcon,
|
|
10
10
|
AnalyticsSession,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
useExplorerTxUrl,
|
|
33
33
|
useLatestRef,
|
|
34
34
|
useStableRpcUrls
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ULDG2NFL.mjs";
|
|
36
36
|
import {
|
|
37
37
|
getChainIcon,
|
|
38
38
|
getChainName,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/core/version.ts
|
|
2
|
-
var MODAL_VERSION = "0.0.0-dev-
|
|
2
|
+
var MODAL_VERSION = "0.0.0-dev-20260901125921";
|
|
3
3
|
var SERVICE_HEADERS = {
|
|
4
4
|
"Content-Type": "application/json",
|
|
5
5
|
"x-deposit-modal-version": MODAL_VERSION
|