@rash2x/bridge-widget 0.6.69 → 0.6.70
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/evaa-bridge.cjs +1 -1
- package/dist/evaa-bridge.mjs +1 -1
- package/dist/{index-BdIFtxSM.cjs → index-CyohvJ7p.cjs} +165 -170
- package/dist/index-CyohvJ7p.cjs.map +1 -0
- package/dist/{index-Qp6MEGwg.cjs → index-D_aPs_yi.cjs} +2 -2
- package/dist/{index-Qp6MEGwg.cjs.map → index-D_aPs_yi.cjs.map} +1 -1
- package/dist/{index-CkDt6lc8.js → index-L-wapa5t.js} +2 -2
- package/dist/{index-CkDt6lc8.js.map → index-L-wapa5t.js.map} +1 -1
- package/dist/{index-DV105AWa.js → index-naQPb65y.js} +165 -170
- package/dist/index-naQPb65y.js.map +1 -0
- package/dist/noise.png +0 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/index-BdIFtxSM.cjs.map +0 -1
- package/dist/index-DV105AWa.js.map +0 -1
|
@@ -4263,7 +4263,7 @@ const DevStatusControls = () => {
|
|
|
4263
4263
|
);
|
|
4264
4264
|
}
|
|
4265
4265
|
};
|
|
4266
|
-
return /* @__PURE__ */ jsx("div", { className: "
|
|
4266
|
+
return /* @__PURE__ */ jsx("div", { className: "mt-5", children: /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-1", children: statuses.map((status) => /* @__PURE__ */ jsx(
|
|
4267
4267
|
Button,
|
|
4268
4268
|
{
|
|
4269
4269
|
size: "sm",
|
|
@@ -4277,7 +4277,8 @@ const DevStatusControls = () => {
|
|
|
4277
4277
|
};
|
|
4278
4278
|
const ProgressStep = ({
|
|
4279
4279
|
icon = /* @__PURE__ */ jsx(Loader2, { className: "w-16 h-16 animate-spin" }),
|
|
4280
|
-
isApproving = false
|
|
4280
|
+
isApproving = false,
|
|
4281
|
+
className
|
|
4281
4282
|
}) => {
|
|
4282
4283
|
const { t: t2 } = useBridgeTranslation();
|
|
4283
4284
|
const { current } = useTransactionStore();
|
|
@@ -4285,7 +4286,13 @@ const ProgressStep = ({
|
|
|
4285
4286
|
const srcTxHash = current?.tonTransactionHash || current?.srcTxHash;
|
|
4286
4287
|
const steps = isApproving && currentStep ? [
|
|
4287
4288
|
{
|
|
4288
|
-
icon: /* @__PURE__ */ jsx(
|
|
4289
|
+
icon: /* @__PURE__ */ jsx(
|
|
4290
|
+
Loader2,
|
|
4291
|
+
{
|
|
4292
|
+
className: "w-5 h-5 text-primary animate-spin",
|
|
4293
|
+
strokeWidth: 3
|
|
4294
|
+
}
|
|
4295
|
+
),
|
|
4289
4296
|
title: t2("transaction.steps.approving"),
|
|
4290
4297
|
description: t2("transaction.steps.approvingNote", {
|
|
4291
4298
|
current: currentStep.index + 1,
|
|
@@ -4306,7 +4313,13 @@ const ProgressStep = ({
|
|
|
4306
4313
|
title: t2("transaction.steps.sent")
|
|
4307
4314
|
},
|
|
4308
4315
|
{
|
|
4309
|
-
icon: /* @__PURE__ */ jsx(
|
|
4316
|
+
icon: /* @__PURE__ */ jsx(
|
|
4317
|
+
Loader2,
|
|
4318
|
+
{
|
|
4319
|
+
className: "w-5 h-5 text-primary animate-spin",
|
|
4320
|
+
strokeWidth: 3
|
|
4321
|
+
}
|
|
4322
|
+
),
|
|
4310
4323
|
title: t2("transaction.steps.processing"),
|
|
4311
4324
|
description: t2("transaction.steps.processingNote")
|
|
4312
4325
|
},
|
|
@@ -4315,43 +4328,34 @@ const ProgressStep = ({
|
|
|
4315
4328
|
title: t2("transaction.steps.completed")
|
|
4316
4329
|
}
|
|
4317
4330
|
];
|
|
4318
|
-
return /* @__PURE__ */ jsxs(DialogContent, { showCloseButton: false, className
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
/* @__PURE__ */
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
{
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
/* @__PURE__ */
|
|
4339
|
-
|
|
4340
|
-
/* @__PURE__ */ jsx("div", { className: "flex
|
|
4341
|
-
|
|
4342
|
-
{
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
4347
|
-
/* @__PURE__ */ jsx("span", { className: "text-base leading-5", children: step.title }),
|
|
4348
|
-
step.description && /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground leading-4", children: step.description })
|
|
4349
|
-
] })
|
|
4350
|
-
]
|
|
4351
|
-
},
|
|
4352
|
-
step.title
|
|
4353
|
-
)) })
|
|
4354
|
-
] })
|
|
4331
|
+
return /* @__PURE__ */ jsxs(DialogContent, { showCloseButton: false, className, children: [
|
|
4332
|
+
icon,
|
|
4333
|
+
/* @__PURE__ */ jsxs(DialogHeader, { className: "relative z-10 p-0", children: [
|
|
4334
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: t2("transaction.inProgress") }),
|
|
4335
|
+
srcTxHash && /* @__PURE__ */ jsxs(
|
|
4336
|
+
"a",
|
|
4337
|
+
{
|
|
4338
|
+
href: `https://layerzeroscan.com/tx/${srcTxHash}`,
|
|
4339
|
+
target: "_blank",
|
|
4340
|
+
rel: "noopener noreferrer",
|
|
4341
|
+
className: "text-xs text-muted-foreground hover:text-foreground cursor-pointer underline hover:no-underline px-4 mt-1",
|
|
4342
|
+
children: [
|
|
4343
|
+
t2("transaction.hash"),
|
|
4344
|
+
": ",
|
|
4345
|
+
formatHash(srcTxHash)
|
|
4346
|
+
]
|
|
4347
|
+
}
|
|
4348
|
+
)
|
|
4349
|
+
] }),
|
|
4350
|
+
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
4351
|
+
/* @__PURE__ */ jsx("div", { className: "absolute left-5 top-5 bottom-5 border-l border-dashed border-foreground opacity-50" }),
|
|
4352
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-6 relative z-10", children: steps.map((step) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-5 text-left", children: [
|
|
4353
|
+
/* @__PURE__ */ jsx("div", { className: "w-10 h-10 rounded-full bg-muted flex items-center justify-center text-foreground shadow-inner", children: step.icon }),
|
|
4354
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
4355
|
+
/* @__PURE__ */ jsx("span", { className: "text-base leading-5", children: step.title }),
|
|
4356
|
+
step.description && /* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground leading-4", children: step.description })
|
|
4357
|
+
] })
|
|
4358
|
+
] }, step.title)) })
|
|
4355
4359
|
] }),
|
|
4356
4360
|
/* @__PURE__ */ jsx(DevStatusControls, {})
|
|
4357
4361
|
] });
|
|
@@ -4360,49 +4364,42 @@ const getLayerZeroScanUrl = (txHash) => {
|
|
|
4360
4364
|
return `https://layerzeroscan.com/tx/${txHash}`;
|
|
4361
4365
|
};
|
|
4362
4366
|
const FailedStep = ({
|
|
4363
|
-
icon = /* @__PURE__ */ jsx(AlertCircleIcon, { className: "w-16 h-16" })
|
|
4367
|
+
icon = /* @__PURE__ */ jsx(AlertCircleIcon, { className: "w-16 h-16" }),
|
|
4368
|
+
className
|
|
4364
4369
|
}) => {
|
|
4365
4370
|
const { current, reset } = useTransactionStore();
|
|
4366
4371
|
const { t: t2 } = useBridgeTranslation();
|
|
4367
4372
|
const srcTxHash = current?.tonTransactionHash || current?.srcTxHash;
|
|
4368
|
-
return /* @__PURE__ */ jsxs(
|
|
4369
|
-
|
|
4370
|
-
{
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
}
|
|
4395
|
-
)
|
|
4396
|
-
] })
|
|
4397
|
-
] }),
|
|
4398
|
-
/* @__PURE__ */ jsx(DialogFooter, { className: "px-10 pb-10 ", children: /* @__PURE__ */ jsx(Button, { variant: "outline", className: "w-full min-w-40", onClick: reset, children: t2("common.close") }) }),
|
|
4399
|
-
/* @__PURE__ */ jsx(DevStatusControls, {})
|
|
4400
|
-
]
|
|
4401
|
-
}
|
|
4402
|
-
);
|
|
4373
|
+
return /* @__PURE__ */ jsxs(DialogContent, { closeButtonClassName: "!absolute", showCloseButton: true, className, children: [
|
|
4374
|
+
icon,
|
|
4375
|
+
/* @__PURE__ */ jsxs(DialogHeader, { className: "relative z-10 p-0", children: [
|
|
4376
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: t2("transaction.failed") }),
|
|
4377
|
+
current?.errorCode && /* @__PURE__ */ jsx(DialogDescription$1, { children: t2(
|
|
4378
|
+
`errors.${current.errorCode}`,
|
|
4379
|
+
current.errorParams || {}
|
|
4380
|
+
) }),
|
|
4381
|
+
srcTxHash && /* @__PURE__ */ jsxs(
|
|
4382
|
+
"a",
|
|
4383
|
+
{
|
|
4384
|
+
href: getLayerZeroScanUrl(srcTxHash),
|
|
4385
|
+
target: "_blank",
|
|
4386
|
+
rel: "noopener noreferrer",
|
|
4387
|
+
className: "text-xs text-muted-foreground hover:text-foreground cursor-pointer underline hover:no-underline px-4 mt-2",
|
|
4388
|
+
children: [
|
|
4389
|
+
t2("transaction.hash"),
|
|
4390
|
+
": ",
|
|
4391
|
+
formatHash(srcTxHash)
|
|
4392
|
+
]
|
|
4393
|
+
}
|
|
4394
|
+
)
|
|
4395
|
+
] }),
|
|
4396
|
+
/* @__PURE__ */ jsx(DialogFooter, { className: "w-full", children: /* @__PURE__ */ jsx(Button, { variant: "outline", className: "w-full min-w-40", onClick: reset, children: t2("common.close") }) }),
|
|
4397
|
+
/* @__PURE__ */ jsx(DevStatusControls, {})
|
|
4398
|
+
] });
|
|
4403
4399
|
};
|
|
4404
4400
|
const SuccessStep = ({
|
|
4405
|
-
icon = /* @__PURE__ */ jsx(CheckCircle2, { className: "w-16 h-16" })
|
|
4401
|
+
icon = /* @__PURE__ */ jsx(CheckCircle2, { className: "w-16 h-16" }),
|
|
4402
|
+
className
|
|
4406
4403
|
}) => {
|
|
4407
4404
|
const { current, reset } = useTransactionStore();
|
|
4408
4405
|
const { t: t2 } = useBridgeTranslation();
|
|
@@ -4465,83 +4462,74 @@ const SuccessStep = ({
|
|
|
4465
4462
|
finalFee,
|
|
4466
4463
|
t2
|
|
4467
4464
|
]);
|
|
4468
|
-
return /* @__PURE__ */ jsxs(
|
|
4469
|
-
|
|
4470
|
-
{
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
/* @__PURE__ */ jsxs("
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
NetworkSymbol,
|
|
4513
|
-
{
|
|
4514
|
-
className: "w-[18px] h-[18px] rounded-full",
|
|
4515
|
-
chainKey: metadata.dstChainName
|
|
4516
|
-
}
|
|
4517
|
-
)
|
|
4518
|
-
] })
|
|
4519
|
-
] })
|
|
4520
|
-
] }),
|
|
4521
|
-
srcTxHash && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
|
|
4522
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t2("transaction.hash") }),
|
|
4523
|
-
/* @__PURE__ */ jsx(
|
|
4524
|
-
"a",
|
|
4525
|
-
{
|
|
4526
|
-
href: `https://layerzeroscan.com/tx/${srcTxHash}`,
|
|
4527
|
-
target: "_blank",
|
|
4528
|
-
rel: "noopener noreferrer",
|
|
4529
|
-
className: "font-medium cursor-pointer inline-flex items-center gap-1 underline hover:no-underline",
|
|
4530
|
-
children: formatHash(srcTxHash)
|
|
4531
|
-
}
|
|
4532
|
-
)
|
|
4533
|
-
] }),
|
|
4534
|
-
totalFee && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
|
|
4535
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: totalFee.label }),
|
|
4536
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium", children: totalFee.display })
|
|
4537
|
-
] })
|
|
4465
|
+
return /* @__PURE__ */ jsxs(DialogContent, { closeButtonClassName: "!absolute", showCloseButton: true, className, children: [
|
|
4466
|
+
icon,
|
|
4467
|
+
/* @__PURE__ */ jsx(DialogHeader, { className: "z-10 relative p-0", children: /* @__PURE__ */ jsx(DialogTitle, { className: "text-[28px]", children: t2("transaction.success") }) }),
|
|
4468
|
+
/* @__PURE__ */ jsxs("div", { className: "w-full space-y-2 mt-5 relative z-10 pb-14", children: [
|
|
4469
|
+
metadata?.srcAmountHuman && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
|
|
4470
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t2("transaction.bridged") }),
|
|
4471
|
+
/* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1 font-medium", children: [
|
|
4472
|
+
formatBalance(metadata.srcAmountHuman, 2),
|
|
4473
|
+
" ",
|
|
4474
|
+
metadata?.srcTokenSymbol,
|
|
4475
|
+
/* @__PURE__ */ jsx(
|
|
4476
|
+
TokenSymbol,
|
|
4477
|
+
{
|
|
4478
|
+
className: "w-[18px] h-[18px]",
|
|
4479
|
+
symbol: metadata?.srcTokenSymbol
|
|
4480
|
+
}
|
|
4481
|
+
)
|
|
4482
|
+
] })
|
|
4483
|
+
] }),
|
|
4484
|
+
metadata?.srcChainName && metadata?.dstChainName && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
|
|
4485
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t2("transaction.transferTitle") }),
|
|
4486
|
+
/* @__PURE__ */ jsxs("span", { className: "font-medium flex gap-1 items-center", children: [
|
|
4487
|
+
/* @__PURE__ */ jsxs("span", { className: "inline-flex gap-1 items-center", children: [
|
|
4488
|
+
metadata.srcChainName,
|
|
4489
|
+
" ",
|
|
4490
|
+
/* @__PURE__ */ jsx(
|
|
4491
|
+
NetworkSymbol,
|
|
4492
|
+
{
|
|
4493
|
+
className: "w-[18px] h-[18px] rounded-full",
|
|
4494
|
+
chainKey: metadata.srcChainName
|
|
4495
|
+
}
|
|
4496
|
+
)
|
|
4497
|
+
] }),
|
|
4498
|
+
/* @__PURE__ */ jsx(ArrowRight, { className: "text-muted-foreground/50 size-4" }),
|
|
4499
|
+
/* @__PURE__ */ jsxs("span", { className: "inline-flex gap-1 items-center", children: [
|
|
4500
|
+
metadata.dstChainName,
|
|
4501
|
+
" ",
|
|
4502
|
+
/* @__PURE__ */ jsx(
|
|
4503
|
+
NetworkSymbol,
|
|
4504
|
+
{
|
|
4505
|
+
className: "w-[18px] h-[18px] rounded-full",
|
|
4506
|
+
chainKey: metadata.dstChainName
|
|
4507
|
+
}
|
|
4508
|
+
)
|
|
4538
4509
|
] })
|
|
4539
|
-
] })
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4510
|
+
] })
|
|
4511
|
+
] }),
|
|
4512
|
+
srcTxHash && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
|
|
4513
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: t2("transaction.hash") }),
|
|
4514
|
+
/* @__PURE__ */ jsx(
|
|
4515
|
+
"a",
|
|
4516
|
+
{
|
|
4517
|
+
href: `https://layerzeroscan.com/tx/${srcTxHash}`,
|
|
4518
|
+
target: "_blank",
|
|
4519
|
+
rel: "noopener noreferrer",
|
|
4520
|
+
className: "font-medium cursor-pointer inline-flex items-center gap-1 underline hover:no-underline",
|
|
4521
|
+
children: formatHash(srcTxHash)
|
|
4522
|
+
}
|
|
4523
|
+
)
|
|
4524
|
+
] }),
|
|
4525
|
+
totalFee && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
|
|
4526
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: totalFee.label }),
|
|
4527
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium", children: totalFee.display })
|
|
4528
|
+
] })
|
|
4529
|
+
] }),
|
|
4530
|
+
/* @__PURE__ */ jsx(DialogFooter, { className: "w-full", children: /* @__PURE__ */ jsx(Button, { onClick: reset, className: "w-full", children: t2("transaction.done") }) }),
|
|
4531
|
+
/* @__PURE__ */ jsx(DevStatusControls, {})
|
|
4532
|
+
] });
|
|
4545
4533
|
};
|
|
4546
4534
|
const useCountdown = (initialSeconds) => {
|
|
4547
4535
|
const [time2, setTime] = useState(initialSeconds);
|
|
@@ -4561,19 +4549,18 @@ const useCountdown = (initialSeconds) => {
|
|
|
4561
4549
|
};
|
|
4562
4550
|
};
|
|
4563
4551
|
const ConfirmStep = ({
|
|
4564
|
-
icon = /* @__PURE__ */ jsx(Clock, { className: "w-16 h-16" })
|
|
4552
|
+
icon = /* @__PURE__ */ jsx(Clock, { className: "w-16 h-16" }),
|
|
4553
|
+
className
|
|
4565
4554
|
}) => {
|
|
4566
4555
|
const { t: t2 } = useBridgeTranslation();
|
|
4567
4556
|
const { formatTime } = useCountdown(90);
|
|
4568
|
-
return /* @__PURE__ */ jsxs(DialogContent, { className
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
/* @__PURE__ */
|
|
4572
|
-
|
|
4573
|
-
/* @__PURE__ */ jsx(DialogDescription, { children: t2("transaction.signTransaction") })
|
|
4574
|
-
] }),
|
|
4575
|
-
/* @__PURE__ */ jsx("div", { className: "text-3xl font-black relative z-10", children: formatTime })
|
|
4557
|
+
return /* @__PURE__ */ jsxs(DialogContent, { className, children: [
|
|
4558
|
+
icon,
|
|
4559
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 pt-4 pb-2 text-center relative z-10", children: [
|
|
4560
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: t2("transaction.confirm") }),
|
|
4561
|
+
/* @__PURE__ */ jsx(DialogDescription, { children: t2("transaction.signTransaction") })
|
|
4576
4562
|
] }),
|
|
4563
|
+
/* @__PURE__ */ jsx("div", { className: "text-3xl font-black relative z-10", children: formatTime }),
|
|
4577
4564
|
/* @__PURE__ */ jsx(DevStatusControls, {})
|
|
4578
4565
|
] });
|
|
4579
4566
|
};
|
|
@@ -4589,20 +4576,28 @@ const StatusStepsDialog = ({
|
|
|
4589
4576
|
};
|
|
4590
4577
|
if (!status || status === "idle") return null;
|
|
4591
4578
|
let step = null;
|
|
4579
|
+
const sharedClassName = "overflow-hidden noise text-center flex flex-col items-center !fixed";
|
|
4592
4580
|
if (status === "executing") {
|
|
4593
|
-
step = /* @__PURE__ */ jsx(ConfirmStep, { icon: icons?.confirm });
|
|
4581
|
+
step = /* @__PURE__ */ jsx(ConfirmStep, { icon: icons?.confirm, className: sharedClassName });
|
|
4594
4582
|
}
|
|
4595
4583
|
if (status === "approving") {
|
|
4596
|
-
step = /* @__PURE__ */ jsx(
|
|
4584
|
+
step = /* @__PURE__ */ jsx(
|
|
4585
|
+
ProgressStep,
|
|
4586
|
+
{
|
|
4587
|
+
icon: icons?.progress,
|
|
4588
|
+
isApproving: true,
|
|
4589
|
+
className: sharedClassName
|
|
4590
|
+
}
|
|
4591
|
+
);
|
|
4597
4592
|
}
|
|
4598
4593
|
if (status === "processing") {
|
|
4599
|
-
step = /* @__PURE__ */ jsx(ProgressStep, { icon: icons?.progress });
|
|
4594
|
+
step = /* @__PURE__ */ jsx(ProgressStep, { icon: icons?.progress, className: sharedClassName });
|
|
4600
4595
|
}
|
|
4601
4596
|
if (status === "completed") {
|
|
4602
|
-
step = /* @__PURE__ */ jsx(SuccessStep, { icon: icons?.success });
|
|
4597
|
+
step = /* @__PURE__ */ jsx(SuccessStep, { icon: icons?.success, className: sharedClassName });
|
|
4603
4598
|
}
|
|
4604
4599
|
if (status === "failed") {
|
|
4605
|
-
step = /* @__PURE__ */ jsx(FailedStep, { icon: icons?.failed });
|
|
4600
|
+
step = /* @__PURE__ */ jsx(FailedStep, { icon: icons?.failed, className: sharedClassName });
|
|
4606
4601
|
}
|
|
4607
4602
|
if (!step) return null;
|
|
4608
4603
|
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Dialog, { open: true, onOpenChange: handleClose, children: step }) });
|
|
@@ -25855,7 +25850,7 @@ class WalletConnectModal {
|
|
|
25855
25850
|
}
|
|
25856
25851
|
async initUi() {
|
|
25857
25852
|
if (typeof window !== "undefined") {
|
|
25858
|
-
await import("./index-
|
|
25853
|
+
await import("./index-L-wapa5t.js");
|
|
25859
25854
|
const modal = document.createElement("wcm-modal");
|
|
25860
25855
|
document.body.insertAdjacentElement("beforeend", modal);
|
|
25861
25856
|
OptionsCtrl.setIsUiLoaded(true);
|
|
@@ -26624,4 +26619,4 @@ export {
|
|
|
26624
26619
|
getQuoteFees as y,
|
|
26625
26620
|
calculateMinReceived as z
|
|
26626
26621
|
};
|
|
26627
|
-
//# sourceMappingURL=index-
|
|
26622
|
+
//# sourceMappingURL=index-naQPb65y.js.map
|