@rash2x/bridge-widget 0.6.68 → 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-D3Rdww1n.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-BwdYKUP-.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,
@@ -4245,11 +4245,41 @@ const CircleLinedIcon = (props) => {
4245
4245
  const DevStatusControls = () => {
4246
4246
  const { current, updateStatus, setSrcHash, setError } = useTransactionStore();
4247
4247
  if (!current) return null;
4248
- return null;
4248
+ const statuses = [
4249
+ "executing",
4250
+ "approving",
4251
+ "processing",
4252
+ "completed",
4253
+ "failed"
4254
+ ];
4255
+ const handleStatusChange = (status) => {
4256
+ if (status === "failed") {
4257
+ setError("UNKNOWN_ERROR", { message: "Test error message" });
4258
+ } else {
4259
+ updateStatus(status);
4260
+ }
4261
+ if ((status === "processing" || status === "completed" || status === "failed") && !current.srcTxHash) {
4262
+ setSrcHash(
4263
+ "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
4264
+ );
4265
+ }
4266
+ };
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
+ button.Button,
4269
+ {
4270
+ size: "sm",
4271
+ variant: current.status === status ? "default" : "outline",
4272
+ onClick: () => handleStatusChange(status),
4273
+ className: "text-xs h-7 px-2",
4274
+ children: status
4275
+ },
4276
+ status
4277
+ )) }) });
4249
4278
  };
4250
4279
  const ProgressStep = ({
4251
4280
  icon = /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "w-16 h-16 animate-spin" }),
4252
- isApproving = false
4281
+ isApproving = false,
4282
+ className
4253
4283
  }) => {
4254
4284
  const { t: t2 } = useBridgeTranslation();
4255
4285
  const { current } = useTransactionStore();
@@ -4257,7 +4287,13 @@ const ProgressStep = ({
4257
4287
  const srcTxHash = current?.tonTransactionHash || current?.srcTxHash;
4258
4288
  const steps = isApproving && currentStep ? [
4259
4289
  {
4260
- 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
+ ),
4261
4297
  title: t2("transaction.steps.approving"),
4262
4298
  description: t2("transaction.steps.approvingNote", {
4263
4299
  current: currentStep.index + 1,
@@ -4278,7 +4314,13 @@ const ProgressStep = ({
4278
4314
  title: t2("transaction.steps.sent")
4279
4315
  },
4280
4316
  {
4281
- 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
+ ),
4282
4324
  title: t2("transaction.steps.processing"),
4283
4325
  description: t2("transaction.steps.processingNote")
4284
4326
  },
@@ -4287,43 +4329,34 @@ const ProgressStep = ({
4287
4329
  title: t2("transaction.steps.completed")
4288
4330
  }
4289
4331
  ];
4290
- 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: [
4291
- /* @__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: [
4292
- icon,
4293
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2 pt-4 pb-2 text-center relative z-50", children: [
4294
- /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { children: t2("transaction.inProgress") }),
4295
- srcTxHash && /* @__PURE__ */ jsxRuntime.jsxs(
4296
- "a",
4297
- {
4298
- href: `https://layerzeroscan.com/tx/${srcTxHash}`,
4299
- target: "_blank",
4300
- rel: "noopener noreferrer",
4301
- className: "text-xs text-muted-foreground hover:text-foreground cursor-pointer underline hover:no-underline px-4 mt-1",
4302
- children: [
4303
- t2("transaction.hash"),
4304
- ": ",
4305
- formatHash(srcTxHash)
4306
- ]
4307
- }
4308
- )
4309
- ] }),
4310
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
4311
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute left-5 top-5 bottom-5 border-l border-dashed border-foreground opacity-50" }),
4312
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-6 relative z-10", children: steps.map((step) => /* @__PURE__ */ jsxRuntime.jsxs(
4313
- "div",
4314
- {
4315
- className: "flex items-center gap-5 text-left",
4316
- children: [
4317
- /* @__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 }),
4318
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col", children: [
4319
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-base leading-5", children: step.title }),
4320
- step.description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm text-muted-foreground leading-4", children: step.description })
4321
- ] })
4322
- ]
4323
- },
4324
- step.title
4325
- )) })
4326
- ] })
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)) })
4327
4360
  ] }),
4328
4361
  /* @__PURE__ */ jsxRuntime.jsx(DevStatusControls, {})
4329
4362
  ] });
@@ -4332,49 +4365,42 @@ const getLayerZeroScanUrl = (txHash) => {
4332
4365
  return `https://layerzeroscan.com/tx/${txHash}`;
4333
4366
  };
4334
4367
  const FailedStep = ({
4335
- 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
4336
4370
  }) => {
4337
4371
  const { current, reset } = useTransactionStore();
4338
4372
  const { t: t2 } = useBridgeTranslation();
4339
4373
  const srcTxHash = current?.tonTransactionHash || current?.srcTxHash;
4340
- return /* @__PURE__ */ jsxRuntime.jsxs(
4341
- dialog.DialogContent,
4342
- {
4343
- showCloseButton: true,
4344
- 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",
4345
- children: [
4346
- /* @__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: [
4347
- icon,
4348
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2 pt-4 pb-2 text-center", children: [
4349
- /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { children: t2("transaction.failed") }),
4350
- current?.errorCode && /* @__PURE__ */ jsxRuntime.jsx(reactDialog.DialogDescription, { children: t2(
4351
- `errors.${current.errorCode}`,
4352
- current.errorParams || {}
4353
- ) }),
4354
- srcTxHash && /* @__PURE__ */ jsxRuntime.jsxs(
4355
- "a",
4356
- {
4357
- href: getLayerZeroScanUrl(srcTxHash),
4358
- target: "_blank",
4359
- rel: "noopener noreferrer",
4360
- className: "text-xs text-muted-foreground hover:text-foreground cursor-pointer underline hover:no-underline px-4 mt-2",
4361
- children: [
4362
- t2("transaction.hash"),
4363
- ": ",
4364
- formatHash(srcTxHash)
4365
- ]
4366
- }
4367
- )
4368
- ] })
4369
- ] }),
4370
- /* @__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") }) }),
4371
- /* @__PURE__ */ jsxRuntime.jsx(DevStatusControls, {})
4372
- ]
4373
- }
4374
- );
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
+ ] });
4375
4400
  };
4376
4401
  const SuccessStep = ({
4377
- 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
4378
4404
  }) => {
4379
4405
  const { current, reset } = useTransactionStore();
4380
4406
  const { t: t2 } = useBridgeTranslation();
@@ -4437,83 +4463,74 @@ const SuccessStep = ({
4437
4463
  finalFee,
4438
4464
  t2
4439
4465
  ]);
4440
- return /* @__PURE__ */ jsxRuntime.jsxs(
4441
- dialog.DialogContent,
4442
- {
4443
- showCloseButton: true,
4444
- 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",
4445
- children: [
4446
- /* @__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: [
4447
- icon,
4448
- /* @__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") }) }),
4449
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full space-y-2 mt-3 relative z-10 pb-14", children: [
4450
- metadata?.srcAmountHuman && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
4451
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: t2("transaction.bridged") }),
4452
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "inline-flex items-center gap-1 font-medium", children: [
4453
- formatBalance(metadata.srcAmountHuman, 2),
4454
- " ",
4455
- metadata?.srcTokenSymbol,
4456
- /* @__PURE__ */ jsxRuntime.jsx(
4457
- TokenSymbol,
4458
- {
4459
- className: "w-[18px] h-[18px]",
4460
- symbol: metadata?.srcTokenSymbol
4461
- }
4462
- )
4463
- ] })
4464
- ] }),
4465
- metadata?.srcChainName && metadata?.dstChainName && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
4466
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: t2("transaction.transferTitle") }),
4467
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-medium flex gap-1 items-center", children: [
4468
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "inline-flex gap-1 items-center", children: [
4469
- metadata.srcChainName,
4470
- " ",
4471
- /* @__PURE__ */ jsxRuntime.jsx(
4472
- NetworkSymbol,
4473
- {
4474
- className: "w-[18px] h-[18px] rounded-full",
4475
- chainKey: metadata.srcChainName
4476
- }
4477
- )
4478
- ] }),
4479
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRight, { className: "text-muted-foreground/50 size-4" }),
4480
- /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "inline-flex gap-1 items-center", children: [
4481
- metadata.dstChainName,
4482
- " ",
4483
- /* @__PURE__ */ jsxRuntime.jsx(
4484
- NetworkSymbol,
4485
- {
4486
- className: "w-[18px] h-[18px] rounded-full",
4487
- chainKey: metadata.dstChainName
4488
- }
4489
- )
4490
- ] })
4491
- ] })
4492
- ] }),
4493
- srcTxHash && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
4494
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: t2("transaction.hash") }),
4495
- /* @__PURE__ */ jsxRuntime.jsx(
4496
- "a",
4497
- {
4498
- href: `https://layerzeroscan.com/tx/${srcTxHash}`,
4499
- target: "_blank",
4500
- rel: "noopener noreferrer",
4501
- className: "font-medium cursor-pointer inline-flex items-center gap-1 underline hover:no-underline",
4502
- children: formatHash(srcTxHash)
4503
- }
4504
- )
4505
- ] }),
4506
- totalFee && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex justify-between items-center", children: [
4507
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground", children: totalFee.label }),
4508
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: totalFee.display })
4509
- ] })
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
+ )
4510
4510
  ] })
4511
- ] }),
4512
- /* @__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") }) }),
4513
- /* @__PURE__ */ jsxRuntime.jsx(DevStatusControls, {})
4514
- ]
4515
- }
4516
- );
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
+ ] });
4517
4534
  };
4518
4535
  const useCountdown = (initialSeconds) => {
4519
4536
  const [time2, setTime] = react.useState(initialSeconds);
@@ -4533,19 +4550,18 @@ const useCountdown = (initialSeconds) => {
4533
4550
  };
4534
4551
  };
4535
4552
  const ConfirmStep = ({
4536
- 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
4537
4555
  }) => {
4538
4556
  const { t: t2 } = useBridgeTranslation();
4539
4557
  const { formatTime } = useCountdown(90);
4540
- 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: [
4541
- /* @__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: [
4542
- icon,
4543
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2 pt-4 pb-2 text-center", children: [
4544
- /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { children: t2("transaction.confirm") }),
4545
- /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogDescription, { children: t2("transaction.signTransaction") })
4546
- ] }),
4547
- /* @__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") })
4548
4563
  ] }),
4564
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-3xl font-black relative z-10", children: formatTime }),
4549
4565
  /* @__PURE__ */ jsxRuntime.jsx(DevStatusControls, {})
4550
4566
  ] });
4551
4567
  };
@@ -4561,20 +4577,28 @@ const StatusStepsDialog = ({
4561
4577
  };
4562
4578
  if (!status || status === "idle") return null;
4563
4579
  let step = null;
4580
+ const sharedClassName = "overflow-hidden noise text-center flex flex-col items-center !fixed";
4564
4581
  if (status === "executing") {
4565
- step = /* @__PURE__ */ jsxRuntime.jsx(ConfirmStep, { icon: icons?.confirm });
4582
+ step = /* @__PURE__ */ jsxRuntime.jsx(ConfirmStep, { icon: icons?.confirm, className: sharedClassName });
4566
4583
  }
4567
4584
  if (status === "approving") {
4568
- 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
+ );
4569
4593
  }
4570
4594
  if (status === "processing") {
4571
- step = /* @__PURE__ */ jsxRuntime.jsx(ProgressStep, { icon: icons?.progress });
4595
+ step = /* @__PURE__ */ jsxRuntime.jsx(ProgressStep, { icon: icons?.progress, className: sharedClassName });
4572
4596
  }
4573
4597
  if (status === "completed") {
4574
- step = /* @__PURE__ */ jsxRuntime.jsx(SuccessStep, { icon: icons?.success });
4598
+ step = /* @__PURE__ */ jsxRuntime.jsx(SuccessStep, { icon: icons?.success, className: sharedClassName });
4575
4599
  }
4576
4600
  if (status === "failed") {
4577
- step = /* @__PURE__ */ jsxRuntime.jsx(FailedStep, { icon: icons?.failed });
4601
+ step = /* @__PURE__ */ jsxRuntime.jsx(FailedStep, { icon: icons?.failed, className: sharedClassName });
4578
4602
  }
4579
4603
  if (!step) return null;
4580
4604
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { open: true, onOpenChange: handleClose, children: step }) });
@@ -25827,7 +25851,7 @@ class WalletConnectModal {
25827
25851
  }
25828
25852
  async initUi() {
25829
25853
  if (typeof window !== "undefined") {
25830
- await Promise.resolve().then(() => require("./index-DNsYRKu0.cjs"));
25854
+ await Promise.resolve().then(() => require("./index-D_aPs_yi.cjs"));
25831
25855
  const modal = document.createElement("wcm-modal");
25832
25856
  document.body.insertAdjacentElement("beforeend", modal);
25833
25857
  OptionsCtrl.setIsUiLoaded(true);
@@ -26594,4 +26618,4 @@ exports.useSettingsStore = useSettingsStore;
26594
26618
  exports.useSwapModel = useSwapModel;
26595
26619
  exports.useTokensStore = useTokensStore;
26596
26620
  exports.useTransactionStore = useTransactionStore;
26597
- //# sourceMappingURL=index-D3Rdww1n.cjs.map
26621
+ //# sourceMappingURL=index-CyohvJ7p.cjs.map