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