@unifold/connect-react 0.1.7 → 0.1.8

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/index.mjs CHANGED
@@ -1265,12 +1265,25 @@ var createLucideIcon = (iconName, iconNode) => {
1265
1265
  return Component;
1266
1266
  };
1267
1267
 
1268
+ // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/arrow-down-circle.js
1269
+ var ArrowDownCircle = createLucideIcon("ArrowDownCircle", [
1270
+ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
1271
+ ["path", { d: "M12 8v8", key: "napkw2" }],
1272
+ ["path", { d: "m8 12 4 4 4-4", key: "k98ssh" }]
1273
+ ]);
1274
+
1268
1275
  // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/arrow-left.js
1269
1276
  var ArrowLeft = createLucideIcon("ArrowLeft", [
1270
1277
  ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
1271
1278
  ["path", { d: "M19 12H5", key: "x3x0zl" }]
1272
1279
  ]);
1273
1280
 
1281
+ // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/check-circle.js
1282
+ var CheckCircle = createLucideIcon("CheckCircle", [
1283
+ ["path", { d: "M22 11.08V12a10 10 0 1 1-5.93-9.14", key: "g774vq" }],
1284
+ ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
1285
+ ]);
1286
+
1274
1287
  // ../../node_modules/.pnpm/lucide-react@0.294.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/check.js
1275
1288
  var Check = createLucideIcon("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
1276
1289
 
@@ -5951,8 +5964,9 @@ import { jsx as jsx32 } from "react/jsx-runtime";
5951
5964
  import { useEffect as useEffect22, useState as useState16 } from "react";
5952
5965
  import { jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
5953
5966
  import { jsx as jsx52, jsxs as jsxs32 } from "react/jsx-runtime";
5954
- import { Fragment as Fragment8, jsx as jsx62, jsxs as jsxs42 } from "react/jsx-runtime";
5955
- import { jsx as jsx72 } from "react/jsx-runtime";
5967
+ import { jsx as jsx62, jsxs as jsxs42 } from "react/jsx-runtime";
5968
+ import { Fragment as Fragment8, jsx as jsx72, jsxs as jsxs5 } from "react/jsx-runtime";
5969
+ import { jsx as jsx82, jsxs as jsxs6 } from "react/jsx-runtime";
5956
5970
  import * as React38 from "react";
5957
5971
 
5958
5972
  // ../../node_modules/.pnpm/@radix-ui+react-select@2.2.6_@types+react-dom@18.3.7_@types+react@18.3.27__@types+react@18.3._paqmzknjxz7bmndehagaq3tw4m/node_modules/@radix-ui/react-select/dist/index.mjs
@@ -9444,7 +9458,7 @@ var ScrollDownButton = SelectScrollDownButton;
9444
9458
  var Separator = SelectSeparator;
9445
9459
 
9446
9460
  // ../ui-react/dist/index.mjs
9447
- import { jsx as jsx82, jsxs as jsxs5 } from "react/jsx-runtime";
9461
+ import { jsx as jsx92, jsxs as jsxs7 } from "react/jsx-runtime";
9448
9462
  import * as React42 from "react";
9449
9463
 
9450
9464
  // ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.4_@types+react@18.3.27_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs
@@ -9591,7 +9605,7 @@ var cva = (base, config) => (props) => {
9591
9605
  };
9592
9606
 
9593
9607
  // ../ui-react/dist/index.mjs
9594
- import { jsx as jsx92 } from "react/jsx-runtime";
9608
+ import { jsx as jsx102 } from "react/jsx-runtime";
9595
9609
  import * as React52 from "react";
9596
9610
 
9597
9611
  // ../../node_modules/.pnpm/@radix-ui+react-tooltip@1.2.8_@types+react-dom@18.3.7_@types+react@18.3.27__@types+react@18.3_hd4qp76o7ebwsrfrhqb6isuuvy/node_modules/@radix-ui/react-tooltip/dist/index.mjs
@@ -10072,21 +10086,21 @@ var Portal4 = TooltipPortal;
10072
10086
  var Content23 = TooltipContent;
10073
10087
 
10074
10088
  // ../ui-react/dist/index.mjs
10075
- import { jsx as jsx102 } from "react/jsx-runtime";
10076
- import { Fragment as Fragment23, jsx as jsx112, jsxs as jsxs6 } from "react/jsx-runtime";
10077
- import { jsx as jsx122 } from "react/jsx-runtime";
10089
+ import { jsx as jsx112 } from "react/jsx-runtime";
10090
+ import { Fragment as Fragment23, jsx as jsx122, jsxs as jsxs8 } from "react/jsx-runtime";
10091
+ import { jsx as jsx132 } from "react/jsx-runtime";
10078
10092
  import { useState as useState42, useEffect as useEffect42 } from "react";
10079
10093
  import { useState as useState32 } from "react";
10080
- import { jsx as jsx132, jsxs as jsxs7 } from "react/jsx-runtime";
10081
- import { Fragment as Fragment32, jsx as jsx142, jsxs as jsxs8 } from "react/jsx-runtime";
10082
- import { jsx as jsx152, jsxs as jsxs9 } from "react/jsx-runtime";
10094
+ import { jsx as jsx142, jsxs as jsxs9 } from "react/jsx-runtime";
10095
+ import { Fragment as Fragment32, jsx as jsx152, jsxs as jsxs10 } from "react/jsx-runtime";
10096
+ import { jsx as jsx162, jsxs as jsxs11 } from "react/jsx-runtime";
10083
10097
  import { useQuery } from "@tanstack/react-query";
10084
- import { jsx as jsx162, jsxs as jsxs10 } from "react/jsx-runtime";
10085
- import { jsx as jsx172, jsxs as jsxs11 } from "react/jsx-runtime";
10086
- import { jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
10087
- import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
10088
- import { Fragment as Fragment42, jsx as jsx20, jsxs as jsxs14 } from "react/jsx-runtime";
10089
- import { jsx as jsx21 } from "react/jsx-runtime";
10098
+ import { jsx as jsx172, jsxs as jsxs12 } from "react/jsx-runtime";
10099
+ import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
10100
+ import { jsx as jsx19, jsxs as jsxs14 } from "react/jsx-runtime";
10101
+ import { jsx as jsx20, jsxs as jsxs15 } from "react/jsx-runtime";
10102
+ import { Fragment as Fragment42, jsx as jsx21, jsxs as jsxs16 } from "react/jsx-runtime";
10103
+ import { jsx as jsx222 } from "react/jsx-runtime";
10090
10104
  function cn(...inputs) {
10091
10105
  return twMerge(clsx(inputs));
10092
10106
  }
@@ -10332,6 +10346,14 @@ function getIconUrl(iconPath) {
10332
10346
  const normalizedPath = iconPath.startsWith("/") ? iconPath : `/${iconPath}`;
10333
10347
  return `${API_BASE_URL}/api/public${normalizedPath}`;
10334
10348
  }
10349
+ function getIconUrlWithCdn(iconPath, assetCdnUrl) {
10350
+ if (!assetCdnUrl) {
10351
+ return getIconUrl(iconPath);
10352
+ }
10353
+ const normalizedPath = iconPath.startsWith("/") ? iconPath : `/${iconPath}`;
10354
+ const baseUrl = assetCdnUrl.endsWith("/") ? assetCdnUrl.slice(0, -1) : assetCdnUrl;
10355
+ return `${baseUrl}/api/public${normalizedPath}`;
10356
+ }
10335
10357
  async function createEOA(overrides, publishableKey) {
10336
10358
  if (!overrides?.user_id) {
10337
10359
  throw new Error("user_id is required");
@@ -10440,6 +10462,16 @@ async function createMeldSession(request, publishableKey) {
10440
10462
  }
10441
10463
  return response.json();
10442
10464
  }
10465
+ function getPreferredIconUrl(iconUrls, preferredFormat = "svg") {
10466
+ if (!iconUrls || iconUrls.length === 0) {
10467
+ return void 0;
10468
+ }
10469
+ const preferred = iconUrls.find((icon) => icon.format === preferredFormat);
10470
+ if (preferred) {
10471
+ return preferred.url;
10472
+ }
10473
+ return iconUrls[0]?.url;
10474
+ }
10443
10475
  async function getFiatCurrencies(publishableKey) {
10444
10476
  const pk = publishableKey || DEFAULT_PUBLISHABLE_KEY;
10445
10477
  const response = await fetch(
@@ -10473,49 +10505,65 @@ async function getProjectConfig(publishableKey) {
10473
10505
  }
10474
10506
  function DepositExecutionItem({
10475
10507
  execution,
10476
- showCloseButton = false,
10477
- onClose
10508
+ onClick
10478
10509
  }) {
10479
10510
  const isPending = execution.status === "pending" || execution.status === "waiting" || execution.status === "delayed";
10480
- const formatTxHash = (hash) => {
10481
- if (hash.length <= 12) return hash;
10482
- return `${hash.slice(0, 10)}...${hash.slice(-8)}`;
10483
- };
10484
10511
  const formatDateTime = (timestamp) => {
10485
10512
  try {
10486
10513
  const date = new Date(timestamp);
10487
- return date.toLocaleDateString("en-US", { month: "short", day: "numeric" }) + " \xB7 " + date.toLocaleTimeString("en-US", {
10514
+ const monthDay = date.toLocaleDateString("en-US", {
10515
+ month: "short",
10516
+ day: "numeric",
10517
+ year: "numeric"
10518
+ });
10519
+ const time = date.toLocaleTimeString("en-US", {
10488
10520
  hour: "numeric",
10489
10521
  minute: "2-digit",
10490
- second: "2-digit",
10491
- hour12: false
10492
- });
10522
+ hour12: true
10523
+ }).toLowerCase();
10524
+ return `${monthDay} at ${time}`;
10493
10525
  } catch {
10494
10526
  return timestamp;
10495
10527
  }
10496
10528
  };
10497
- return /* @__PURE__ */ jsxs32("div", { className: "uf-bg-card uf-border uf-border-border uf-rounded-xl uf-overflow-hidden uf-p-3", children: [
10498
- /* @__PURE__ */ jsxs32("div", { className: "uf-flex uf-items-start uf-justify-between", children: [
10499
- /* @__PURE__ */ jsxs32("div", { className: "uf-flex uf-items-center uf-gap-2.5 uf-flex-1", children: [
10500
- /* @__PURE__ */ jsxs32("div", { className: "uf-relative uf-flex-shrink-0", children: [
10529
+ const formatUsdAmount = (baseUnitAmount) => {
10530
+ try {
10531
+ const amount = Number(baseUnitAmount) / 1e6;
10532
+ return new Intl.NumberFormat("en-US", {
10533
+ style: "currency",
10534
+ currency: "USD",
10535
+ minimumFractionDigits: 2,
10536
+ maximumFractionDigits: 2
10537
+ }).format(amount);
10538
+ } catch {
10539
+ return "$0.00";
10540
+ }
10541
+ };
10542
+ return /* @__PURE__ */ jsxs32(
10543
+ "button",
10544
+ {
10545
+ onClick,
10546
+ className: "uf-w-full uf-bg-secondary uf-rounded-xl uf-p-3 uf-flex uf-items-center uf-gap-3 hover:uf-bg-secondary/80 uf-transition-colors uf-text-left",
10547
+ children: [
10548
+ /* @__PURE__ */ jsxs32("div", { className: "uf-relative uf-flex-shrink-0 uf-w-9 uf-h-9", children: [
10501
10549
  /* @__PURE__ */ jsx52(
10502
10550
  "img",
10503
10551
  {
10504
10552
  src: execution.source_token_metadata?.icon_url || getIconUrl("/icons/tokens/usdc.svg"),
10505
10553
  alt: "Token",
10506
- width: 32,
10507
- height: 32,
10508
- className: "uf-rounded-full"
10554
+ width: 36,
10555
+ height: 36,
10556
+ className: "uf-rounded-full uf-w-9 uf-h-9"
10509
10557
  }
10510
10558
  ),
10511
- isPending ? /* @__PURE__ */ jsx52("div", { className: "uf-absolute uf--bottom-0.5 uf--right-0.5 uf-bg-yellow-500 uf-rounded-full uf-p-0.5", children: /* @__PURE__ */ jsx52(
10559
+ isPending ? /* @__PURE__ */ jsx52("div", { className: "uf-absolute -uf-bottom-0.5 -uf-right-0.5 uf-bg-yellow-500 uf-rounded-full uf-p-0.5", children: /* @__PURE__ */ jsx52(
10512
10560
  "svg",
10513
10561
  {
10514
10562
  width: "10",
10515
10563
  height: "10",
10516
10564
  viewBox: "0 0 12 12",
10517
10565
  fill: "none",
10518
- className: "uf-animate-spin",
10566
+ className: "uf-animate-spin uf-block",
10519
10567
  children: /* @__PURE__ */ jsx52(
10520
10568
  "path",
10521
10569
  {
@@ -10526,7 +10574,7 @@ function DepositExecutionItem({
10526
10574
  }
10527
10575
  )
10528
10576
  }
10529
- ) }) : /* @__PURE__ */ jsx52("div", { className: "uf-absolute uf--bottom-0.5 uf--right-0.5 uf-bg-green-500 uf-rounded-full uf-p-0.5", children: /* @__PURE__ */ jsx52("svg", { width: "10", height: "10", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ jsx52(
10577
+ ) }) : /* @__PURE__ */ jsx52("div", { className: "uf-absolute -uf-bottom-0.5 -uf-right-0.5 uf-bg-blue-500 uf-rounded-full uf-p-0.5", children: /* @__PURE__ */ jsx52("svg", { width: "10", height: "10", viewBox: "0 0 12 12", fill: "none", className: "uf-block", children: /* @__PURE__ */ jsx52(
10530
10578
  "path",
10531
10579
  {
10532
10580
  d: "M10 3L4.5 8.5L2 6",
@@ -10538,55 +10586,241 @@ function DepositExecutionItem({
10538
10586
  ) }) })
10539
10587
  ] }),
10540
10588
  /* @__PURE__ */ jsxs32("div", { className: "uf-flex-1 uf-min-w-0", children: [
10541
- /* @__PURE__ */ jsxs32("div", { className: "uf-flex uf-items-center uf-justify-between uf-mb-0.5", children: [
10542
- /* @__PURE__ */ jsx52("h3", { className: "uf-text-foreground uf-font-medium uf-text-sm", children: isPending ? "Deposit received" : "Deposit completed" }),
10543
- /* @__PURE__ */ jsx52("span", { className: "uf-text-muted-foreground uf-text-xs uf-whitespace-nowrap uf-ml-2", children: formatDateTime(execution.created_at || (/* @__PURE__ */ new Date()).toISOString()) })
10589
+ /* @__PURE__ */ jsx52("h3", { className: "uf-text-foreground uf-font-medium uf-text-sm uf-leading-tight", children: isPending ? "Deposit received" : "Deposit completed" }),
10590
+ /* @__PURE__ */ jsx52("p", { className: "uf-text-muted-foreground uf-text-xs uf-leading-tight", children: formatDateTime(execution.created_at || (/* @__PURE__ */ new Date()).toISOString()) })
10591
+ ] }),
10592
+ /* @__PURE__ */ jsx52("span", { className: "uf-text-foreground uf-font-medium uf-text-sm uf-flex-shrink-0", children: formatUsdAmount(execution.source_amount_base_unit) }),
10593
+ /* @__PURE__ */ jsx52(ChevronRight, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground uf-flex-shrink-0" })
10594
+ ]
10595
+ }
10596
+ );
10597
+ }
10598
+ var CHAIN_NAMES = {
10599
+ solana: "Solana",
10600
+ ethereum: "Ethereum",
10601
+ "1": "Ethereum",
10602
+ "137": "Polygon",
10603
+ "42161": "Arbitrum",
10604
+ "10": "Optimism",
10605
+ "8453": "Base",
10606
+ "43114": "Avalanche",
10607
+ "56": "BSC",
10608
+ bitcoin: "Bitcoin",
10609
+ mainnet: "Mainnet"
10610
+ };
10611
+ function DepositDetailModal({
10612
+ open,
10613
+ onOpenChange,
10614
+ execution,
10615
+ themeClass = ""
10616
+ }) {
10617
+ if (!execution) return null;
10618
+ const isPending = execution.status === "pending" || execution.status === "waiting" || execution.status === "delayed";
10619
+ const formatDateTime = (timestamp) => {
10620
+ try {
10621
+ const date = new Date(timestamp);
10622
+ const monthDay = date.toLocaleDateString("en-US", {
10623
+ month: "short",
10624
+ day: "numeric",
10625
+ year: "numeric"
10626
+ });
10627
+ const time = date.toLocaleTimeString("en-US", {
10628
+ hour: "numeric",
10629
+ minute: "2-digit",
10630
+ hour12: true
10631
+ });
10632
+ return `${monthDay} at ${time}`;
10633
+ } catch {
10634
+ return timestamp;
10635
+ }
10636
+ };
10637
+ const formatAmount = (baseUnitAmount, decimals = 6) => {
10638
+ try {
10639
+ const amount = Number(baseUnitAmount) / Math.pow(10, decimals);
10640
+ return amount.toFixed(2);
10641
+ } catch {
10642
+ return "0.00";
10643
+ }
10644
+ };
10645
+ const formatUsdAmount = (usdAmount, baseUnitAmount) => {
10646
+ if (usdAmount) {
10647
+ try {
10648
+ const amount = Number(usdAmount);
10649
+ return new Intl.NumberFormat("en-US", {
10650
+ style: "currency",
10651
+ currency: "USD",
10652
+ minimumFractionDigits: 2,
10653
+ maximumFractionDigits: 2
10654
+ }).format(amount);
10655
+ } catch {
10656
+ }
10657
+ }
10658
+ if (baseUnitAmount) {
10659
+ try {
10660
+ const amount = Number(baseUnitAmount) / 1e6;
10661
+ return new Intl.NumberFormat("en-US", {
10662
+ style: "currency",
10663
+ currency: "USD",
10664
+ minimumFractionDigits: 2,
10665
+ maximumFractionDigits: 2
10666
+ }).format(amount);
10667
+ } catch {
10668
+ }
10669
+ }
10670
+ return "$0.00";
10671
+ };
10672
+ const getNetworkName = (chainType, chainId) => {
10673
+ return CHAIN_NAMES[chainId] || CHAIN_NAMES[chainType] || chainType;
10674
+ };
10675
+ const getSourceTokenSymbol = () => {
10676
+ return "USDC";
10677
+ };
10678
+ const getDestinationTokenSymbol = () => {
10679
+ return "USDC";
10680
+ };
10681
+ const handleClose = () => {
10682
+ onOpenChange(false);
10683
+ };
10684
+ return /* @__PURE__ */ jsx62(Dialog2, { open, onOpenChange, children: /* @__PURE__ */ jsxs42(
10685
+ DialogContent2,
10686
+ {
10687
+ className: `sm:uf-max-w-[400px] !uf-bg-card uf-border-secondary uf-text-foreground uf-p-0 uf-gap-0 [&>button]:uf-hidden ${themeClass}`,
10688
+ children: [
10689
+ /* @__PURE__ */ jsx62(DepositHeader, { title: "Deposit Details", onClose: handleClose }),
10690
+ /* @__PURE__ */ jsxs42("div", { className: "uf-px-4 uf-pb-4", children: [
10691
+ /* @__PURE__ */ jsxs42("div", { className: "uf-flex uf-flex-col uf-items-center uf-py-6", children: [
10692
+ /* @__PURE__ */ jsxs42("div", { className: "uf-relative uf-mb-3", children: [
10693
+ /* @__PURE__ */ jsx62(
10694
+ "img",
10695
+ {
10696
+ src: execution.source_token_metadata?.icon_url || getIconUrl("/icons/tokens/usdc.svg"),
10697
+ alt: "Token",
10698
+ width: 64,
10699
+ height: 64,
10700
+ className: "uf-rounded-full"
10701
+ }
10702
+ ),
10703
+ isPending ? /* @__PURE__ */ jsx62("div", { className: "uf-absolute -uf-bottom-1 -uf-right-1 uf-bg-yellow-500 uf-rounded-full uf-p-1", children: /* @__PURE__ */ jsx62(
10704
+ "svg",
10705
+ {
10706
+ width: "16",
10707
+ height: "16",
10708
+ viewBox: "0 0 12 12",
10709
+ fill: "none",
10710
+ className: "uf-animate-spin uf-block",
10711
+ children: /* @__PURE__ */ jsx62(
10712
+ "path",
10713
+ {
10714
+ d: "M6 1V3M6 9V11M1 6H3M9 6H11M2.5 2.5L4 4M8 8L9.5 9.5M2.5 9.5L4 8M8 4L9.5 2.5",
10715
+ stroke: "white",
10716
+ strokeWidth: "2",
10717
+ strokeLinecap: "round"
10718
+ }
10719
+ )
10720
+ }
10721
+ ) }) : /* @__PURE__ */ jsx62("div", { className: "uf-absolute -uf-bottom-1 -uf-right-1 uf-bg-blue-500 uf-rounded-full uf-p-1", children: /* @__PURE__ */ jsx62(
10722
+ "svg",
10723
+ {
10724
+ width: "16",
10725
+ height: "16",
10726
+ viewBox: "0 0 12 12",
10727
+ fill: "none",
10728
+ className: "uf-block",
10729
+ children: /* @__PURE__ */ jsx62(
10730
+ "path",
10731
+ {
10732
+ d: "M10 3L4.5 8.5L2 6",
10733
+ stroke: "white",
10734
+ strokeWidth: "2",
10735
+ strokeLinecap: "round",
10736
+ strokeLinejoin: "round"
10737
+ }
10738
+ )
10739
+ }
10740
+ ) })
10741
+ ] }),
10742
+ /* @__PURE__ */ jsxs42("div", { className: "uf-flex uf-items-center uf-gap-1.5 uf-mb-1", children: [
10743
+ /* @__PURE__ */ jsx62(
10744
+ "div",
10745
+ {
10746
+ className: `uf-w-2 uf-h-2 uf-rounded-full ${isPending ? "uf-bg-yellow-500" : "uf-bg-green-500"}`
10747
+ }
10748
+ ),
10749
+ /* @__PURE__ */ jsx62("span", { className: "uf-text-foreground uf-font-medium", children: isPending ? "Pending" : "Completed" })
10750
+ ] }),
10751
+ /* @__PURE__ */ jsx62("span", { className: "uf-text-muted-foreground uf-text-sm", children: formatDateTime(execution.created_at || (/* @__PURE__ */ new Date()).toISOString()) })
10752
+ ] }),
10753
+ /* @__PURE__ */ jsxs42("div", { className: "uf-bg-secondary uf-rounded-xl uf-overflow-hidden uf-mb-3", children: [
10754
+ /* @__PURE__ */ jsxs42("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3 uf-border-b uf-border-border/50", children: [
10755
+ /* @__PURE__ */ jsx62("span", { className: "uf-text-muted-foreground uf-text-sm", children: "Amount Sent" }),
10756
+ /* @__PURE__ */ jsxs42("span", { className: "uf-text-foreground uf-font-medium", children: [
10757
+ formatAmount(execution.source_amount_base_unit),
10758
+ " ",
10759
+ getSourceTokenSymbol()
10760
+ ] })
10761
+ ] }),
10762
+ /* @__PURE__ */ jsxs42("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3 uf-border-b uf-border-border/50", children: [
10763
+ /* @__PURE__ */ jsx62("span", { className: "uf-text-muted-foreground uf-text-sm", children: "Amount Received" }),
10764
+ /* @__PURE__ */ jsxs42("span", { className: "uf-text-foreground uf-font-medium", children: [
10765
+ formatAmount(execution.destination_amount_base_unit),
10766
+ " ",
10767
+ getDestinationTokenSymbol()
10768
+ ] })
10769
+ ] }),
10770
+ /* @__PURE__ */ jsxs42("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
10771
+ /* @__PURE__ */ jsx62("span", { className: "uf-text-muted-foreground uf-text-sm", children: "USD Value" }),
10772
+ /* @__PURE__ */ jsx62("span", { className: "uf-text-foreground uf-font-medium", children: formatUsdAmount(execution.source_amount_usd, execution.source_amount_base_unit) })
10773
+ ] })
10774
+ ] }),
10775
+ /* @__PURE__ */ jsxs42("div", { className: "uf-bg-secondary uf-rounded-xl uf-overflow-hidden uf-mb-4", children: [
10776
+ /* @__PURE__ */ jsxs42("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3 uf-border-b uf-border-border/50", children: [
10777
+ /* @__PURE__ */ jsx62("span", { className: "uf-text-muted-foreground uf-text-sm", children: "Source Network" }),
10778
+ /* @__PURE__ */ jsx62("span", { className: "uf-text-foreground uf-font-medium", children: getNetworkName(execution.source_chain_type, execution.source_chain_id) })
10779
+ ] }),
10780
+ /* @__PURE__ */ jsxs42("div", { className: "uf-flex uf-justify-between uf-items-center uf-px-4 uf-py-3", children: [
10781
+ /* @__PURE__ */ jsx62("span", { className: "uf-text-muted-foreground uf-text-sm", children: "Destination Network" }),
10782
+ /* @__PURE__ */ jsx62("span", { className: "uf-text-foreground uf-font-medium", children: getNetworkName(execution.destination_chain_type, execution.destination_chain_id) })
10783
+ ] })
10544
10784
  ] }),
10545
- /* @__PURE__ */ jsx52("p", { className: "uf-text-muted-foreground uf-text-xs", children: isPending ? "Your account will be credited shortly." : "Your account has been credited successfully." })
10785
+ /* @__PURE__ */ jsxs42("div", { className: "uf-space-y-2", children: [
10786
+ execution.explorer_url && /* @__PURE__ */ jsxs42(
10787
+ "a",
10788
+ {
10789
+ href: execution.explorer_url,
10790
+ target: "_blank",
10791
+ rel: "noopener noreferrer",
10792
+ className: "uf-flex uf-items-center uf-justify-between uf-w-full uf-bg-blue-400 hover:uf-bg-blue-500 uf-text-white uf-rounded-xl uf-px-4 uf-py-3 uf-transition-colors",
10793
+ children: [
10794
+ /* @__PURE__ */ jsxs42("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
10795
+ /* @__PURE__ */ jsx62(ArrowDownCircle, { className: "uf-w-5 uf-h-5" }),
10796
+ /* @__PURE__ */ jsx62("span", { className: "uf-font-medium", children: "View Deposit Transaction" })
10797
+ ] }),
10798
+ /* @__PURE__ */ jsx62(ExternalLink, { className: "uf-w-4 uf-h-4" })
10799
+ ]
10800
+ }
10801
+ ),
10802
+ !isPending && execution.destination_transaction_hashes?.length > 0 && execution.destination_explorer_url && /* @__PURE__ */ jsxs42(
10803
+ "a",
10804
+ {
10805
+ href: execution.destination_explorer_url,
10806
+ target: "_blank",
10807
+ rel: "noopener noreferrer",
10808
+ className: "uf-flex uf-items-center uf-justify-between uf-w-full uf-bg-blue-600 hover:uf-bg-blue-700 uf-text-white uf-rounded-xl uf-px-4 uf-py-3 uf-transition-colors",
10809
+ children: [
10810
+ /* @__PURE__ */ jsxs42("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
10811
+ /* @__PURE__ */ jsx62(CheckCircle, { className: "uf-w-5 uf-h-5" }),
10812
+ /* @__PURE__ */ jsx62("span", { className: "uf-font-medium", children: "View Completion Transaction" })
10813
+ ] }),
10814
+ /* @__PURE__ */ jsx62(ExternalLink, { className: "uf-w-4 uf-h-4" })
10815
+ ]
10816
+ }
10817
+ )
10818
+ ] }),
10819
+ /* @__PURE__ */ jsx62("p", { className: "uf-text-center uf-text-muted-foreground uf-text-xs uf-mt-4", children: "Links open in external browser" })
10546
10820
  ] })
10547
- ] }),
10548
- showCloseButton && onClose && /* @__PURE__ */ jsx52(
10549
- "button",
10550
- {
10551
- onClick: onClose,
10552
- className: "uf-text-muted-foreground hover:uf-text-foreground uf-transition-colors uf-p-0.5 uf-flex-shrink-0 uf-ml-2",
10553
- children: /* @__PURE__ */ jsx52(X, { className: "uf-w-4 uf-h-4" })
10554
- }
10555
- )
10556
- ] }),
10557
- !isPending && execution.explorer_url && /* @__PURE__ */ jsxs32("div", { className: "uf-flex uf-justify-between uf-items-center uf-gap-1.5 uf-mt-2 uf-pt-2 uf-border-t uf-border-secondary uf-text-xs uf-ml-[42px]", children: [
10558
- /* @__PURE__ */ jsx52("span", { className: "uf-text-muted-foreground", children: "Deposit tx:" }),
10559
- /* @__PURE__ */ jsxs32(
10560
- "a",
10561
- {
10562
- href: execution.explorer_url,
10563
- target: "_blank",
10564
- rel: "noopener noreferrer",
10565
- className: "uf-flex uf-items-center uf-gap-1 uf-text-blue-400 hover:uf-text-blue-300 uf-transition-colors uf-font-mono",
10566
- children: [
10567
- formatTxHash(execution.transaction_hash),
10568
- /* @__PURE__ */ jsx52(ExternalLink, { className: "uf-w-3 uf-h-3" })
10569
- ]
10570
- }
10571
- )
10572
- ] }),
10573
- !isPending && execution.destination_transaction_hashes?.length > 0 && execution.destination_explorer_url && /* @__PURE__ */ jsxs32("div", { className: "uf-flex uf-justify-between uf-items-center uf-gap-1.5 uf-mt-1 uf-text-xs uf-ml-[42px]", children: [
10574
- /* @__PURE__ */ jsx52("span", { className: "uf-text-muted-foreground", children: "Completion tx:" }),
10575
- /* @__PURE__ */ jsxs32(
10576
- "a",
10577
- {
10578
- href: execution.destination_explorer_url,
10579
- target: "_blank",
10580
- rel: "noopener noreferrer",
10581
- className: "uf-flex uf-items-center uf-gap-1 uf-text-blue-400 hover:uf-text-blue-300 uf-transition-colors uf-font-mono",
10582
- children: [
10583
- formatTxHash(execution.destination_transaction_hashes[execution.destination_transaction_hashes.length - 1]),
10584
- /* @__PURE__ */ jsx52(ExternalLink, { className: "uf-w-3 uf-h-3" })
10585
- ]
10586
- }
10587
- )
10588
- ] })
10589
- ] });
10821
+ ]
10822
+ }
10823
+ ) });
10590
10824
  }
10591
10825
  function DepositsModal({
10592
10826
  open,
@@ -10597,6 +10831,8 @@ function DepositsModal({
10597
10831
  themeClass = ""
10598
10832
  }) {
10599
10833
  const [allExecutions, setAllExecutions] = useState16(sessionExecutions);
10834
+ const [selectedExecution, setSelectedExecution] = useState16(null);
10835
+ const [detailModalOpen, setDetailModalOpen] = useState16(false);
10600
10836
  useEffect22(() => {
10601
10837
  if (!open || !userId) return;
10602
10838
  const fetchExecutions = async () => {
@@ -10622,44 +10858,132 @@ function DepositsModal({
10622
10858
  const handleClose = () => {
10623
10859
  onOpenChange(false);
10624
10860
  };
10625
- return /* @__PURE__ */ jsx62(Dialog2, { open, onOpenChange, children: /* @__PURE__ */ jsxs42(DialogContent2, { className: `sm:uf-max-w-[400px] !uf-bg-card uf-border-secondary uf-text-foreground uf-p-0 uf-gap-0 [&>button]:uf-hidden ${themeClass}`, children: [
10626
- /* @__PURE__ */ jsx62(DepositHeader, { title: "Deposit Tracker", onClose: handleClose }),
10627
- /* @__PURE__ */ jsx62("div", { className: "uf-max-h-[500px] uf-overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden", children: /* @__PURE__ */ jsx62("div", { className: "uf-space-y-3", children: allExecutions.length === 0 ? /* @__PURE__ */ jsx62("div", { className: "uf-py-8 uf-px-4 uf-text-center", children: /* @__PURE__ */ jsx62("div", { className: "uf-text-muted-foreground uf-text-sm", children: "No deposits yet" }) }) : /* @__PURE__ */ jsx62(Fragment8, { children: allExecutions.map((execution) => /* @__PURE__ */ jsx62(DepositExecutionItem, { execution }, execution.id)) }) }) })
10628
- ] }) });
10861
+ const handleExecutionClick = (execution) => {
10862
+ setSelectedExecution(execution);
10863
+ setDetailModalOpen(true);
10864
+ };
10865
+ return /* @__PURE__ */ jsxs5(Fragment8, { children: [
10866
+ /* @__PURE__ */ jsx72(Dialog2, { open, onOpenChange, children: /* @__PURE__ */ jsxs5(DialogContent2, { className: `sm:uf-max-w-[400px] !uf-bg-card uf-border-secondary uf-text-foreground uf-p-0 uf-gap-0 [&>button]:uf-hidden ${themeClass}`, children: [
10867
+ /* @__PURE__ */ jsx72(DepositHeader, { title: "Deposit Tracker", onClose: handleClose }),
10868
+ /* @__PURE__ */ jsx72("div", { className: "uf-max-h-[500px] uf-overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden uf-pb-4", children: /* @__PURE__ */ jsx72("div", { className: "uf-space-y-2", children: allExecutions.length === 0 ? /* @__PURE__ */ jsx72("div", { className: "uf-py-8 uf-px-4 uf-text-center", children: /* @__PURE__ */ jsx72("div", { className: "uf-text-muted-foreground uf-text-sm", children: "No deposits yet" }) }) : /* @__PURE__ */ jsx72(Fragment8, { children: allExecutions.map((execution) => /* @__PURE__ */ jsx72(
10869
+ DepositExecutionItem,
10870
+ {
10871
+ execution,
10872
+ onClick: () => handleExecutionClick(execution)
10873
+ },
10874
+ execution.id
10875
+ )) }) }) })
10876
+ ] }) }),
10877
+ /* @__PURE__ */ jsx72(
10878
+ DepositDetailModal,
10879
+ {
10880
+ open: detailModalOpen,
10881
+ onOpenChange: setDetailModalOpen,
10882
+ execution: selectedExecution,
10883
+ themeClass
10884
+ }
10885
+ )
10886
+ ] });
10629
10887
  }
10630
10888
  function DepositSuccessToast({
10631
10889
  depositTx,
10632
- completionTx,
10633
10890
  orderSubmittedAt,
10634
- orderFilledAt,
10635
- explorerUrl,
10636
- completionExplorerUrl,
10637
10891
  status,
10638
10892
  tokenIconUrl,
10893
+ sourceAmountBaseUnit = "0",
10639
10894
  onClose
10640
10895
  }) {
10641
- const execution = {
10642
- id: depositTx,
10643
- transaction_hash: depositTx,
10644
- explorer_url: explorerUrl,
10645
- destination_transaction_hashes: completionTx ? [completionTx] : void 0,
10646
- status,
10647
- created_at: orderSubmittedAt,
10648
- updated_at: orderFilledAt,
10649
- source_token_metadata: tokenIconUrl ? { icon_url: tokenIconUrl } : void 0
10896
+ const isPending = status === "pending" || status === "waiting" || status === "delayed";
10897
+ const formatDateTime = (timestamp) => {
10898
+ try {
10899
+ const date = new Date(timestamp);
10900
+ const monthDay = date.toLocaleDateString("en-US", {
10901
+ month: "short",
10902
+ day: "numeric",
10903
+ year: "numeric"
10904
+ });
10905
+ const time = date.toLocaleTimeString("en-US", {
10906
+ hour: "numeric",
10907
+ minute: "2-digit",
10908
+ hour12: true
10909
+ }).toLowerCase();
10910
+ return `${monthDay} at ${time}`;
10911
+ } catch {
10912
+ return timestamp;
10913
+ }
10650
10914
  };
10651
- return /* @__PURE__ */ jsx72("div", { className: "uf-w-full uf-animate-in uf-slide-in-from-bottom-2 uf-duration-300", children: /* @__PURE__ */ jsx72(
10652
- DepositExecutionItem,
10653
- {
10654
- execution,
10655
- showCloseButton: true,
10656
- onClose
10915
+ const formatUsdAmount = (baseUnitAmount) => {
10916
+ try {
10917
+ const amount = Number(baseUnitAmount) / 1e6;
10918
+ return new Intl.NumberFormat("en-US", {
10919
+ style: "currency",
10920
+ currency: "USD",
10921
+ minimumFractionDigits: 2,
10922
+ maximumFractionDigits: 2
10923
+ }).format(amount);
10924
+ } catch {
10925
+ return "$0.00";
10657
10926
  }
10658
- ) });
10927
+ };
10928
+ return /* @__PURE__ */ jsx82("div", { className: "uf-w-full uf-animate-in uf-slide-in-from-bottom-2 uf-duration-300", children: /* @__PURE__ */ jsxs6("div", { className: "uf-bg-card uf-border uf-border-border uf-rounded-xl uf-p-3 uf-flex uf-items-center uf-gap-3", children: [
10929
+ /* @__PURE__ */ jsxs6("div", { className: "uf-relative uf-flex-shrink-0", children: [
10930
+ /* @__PURE__ */ jsx82(
10931
+ "img",
10932
+ {
10933
+ src: tokenIconUrl || getIconUrl("/icons/tokens/usdc.svg"),
10934
+ alt: "Token",
10935
+ width: 36,
10936
+ height: 36,
10937
+ className: "uf-rounded-full"
10938
+ }
10939
+ ),
10940
+ isPending ? /* @__PURE__ */ jsx82("div", { className: "uf-absolute uf--bottom-0.5 uf--right-0.5 uf-bg-yellow-500 uf-rounded-full uf-p-0.5", children: /* @__PURE__ */ jsx82(
10941
+ "svg",
10942
+ {
10943
+ width: "10",
10944
+ height: "10",
10945
+ viewBox: "0 0 12 12",
10946
+ fill: "none",
10947
+ className: "uf-animate-spin",
10948
+ children: /* @__PURE__ */ jsx82(
10949
+ "path",
10950
+ {
10951
+ d: "M6 1V3M6 9V11M1 6H3M9 6H11M2.5 2.5L4 4M8 8L9.5 9.5M2.5 9.5L4 8M8 4L9.5 2.5",
10952
+ stroke: "white",
10953
+ strokeWidth: "2",
10954
+ strokeLinecap: "round"
10955
+ }
10956
+ )
10957
+ }
10958
+ ) }) : /* @__PURE__ */ jsx82("div", { className: "uf-absolute uf--bottom-0.5 uf--right-0.5 uf-bg-green-500 uf-rounded-full uf-p-0.5", children: /* @__PURE__ */ jsx82("svg", { width: "10", height: "10", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ jsx82(
10959
+ "path",
10960
+ {
10961
+ d: "M10 3L4.5 8.5L2 6",
10962
+ stroke: "white",
10963
+ strokeWidth: "2",
10964
+ strokeLinecap: "round",
10965
+ strokeLinejoin: "round"
10966
+ }
10967
+ ) }) })
10968
+ ] }),
10969
+ /* @__PURE__ */ jsxs6("div", { className: "uf-flex-1 uf-min-w-0", children: [
10970
+ /* @__PURE__ */ jsx82("h3", { className: "uf-text-foreground uf-font-medium uf-text-sm", children: isPending ? "Deposit received" : "Deposit completed" }),
10971
+ /* @__PURE__ */ jsx82("p", { className: "uf-text-muted-foreground uf-text-xs", children: formatDateTime(orderSubmittedAt) })
10972
+ ] }),
10973
+ /* @__PURE__ */ jsx82("div", { className: "uf-text-foreground uf-font-medium uf-text-sm uf-flex-shrink-0", children: formatUsdAmount(sourceAmountBaseUnit) }),
10974
+ /* @__PURE__ */ jsx82(
10975
+ "button",
10976
+ {
10977
+ onClick: onClose,
10978
+ className: "uf-text-muted-foreground hover:uf-text-foreground uf-transition-colors uf-p-0.5 uf-flex-shrink-0",
10979
+ children: /* @__PURE__ */ jsx82(X, { className: "uf-w-4 uf-h-4" })
10980
+ }
10981
+ )
10982
+ ] }) });
10659
10983
  }
10660
10984
  var Select2 = Root23;
10661
10985
  var SelectValue2 = Value;
10662
- var SelectTrigger2 = React38.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs5(
10986
+ var SelectTrigger2 = React38.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs7(
10663
10987
  Trigger,
10664
10988
  {
10665
10989
  ref,
@@ -10670,12 +10994,12 @@ var SelectTrigger2 = React38.forwardRef(({ className, children, ...props }, ref)
10670
10994
  ...props,
10671
10995
  children: [
10672
10996
  children,
10673
- /* @__PURE__ */ jsx82(Icon, { asChild: true, children: /* @__PURE__ */ jsx82(ChevronDown, { className: "uf-h-4 uf-w-4 uf-opacity-50" }) })
10997
+ /* @__PURE__ */ jsx92(Icon, { asChild: true, children: /* @__PURE__ */ jsx92(ChevronDown, { className: "uf-h-4 uf-w-4 uf-opacity-50" }) })
10674
10998
  ]
10675
10999
  }
10676
11000
  ));
10677
11001
  SelectTrigger2.displayName = Trigger.displayName;
10678
- var SelectScrollUpButton2 = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx82(
11002
+ var SelectScrollUpButton2 = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx92(
10679
11003
  ScrollUpButton,
10680
11004
  {
10681
11005
  ref,
@@ -10684,11 +11008,11 @@ var SelectScrollUpButton2 = React38.forwardRef(({ className, ...props }, ref) =>
10684
11008
  className
10685
11009
  ),
10686
11010
  ...props,
10687
- children: /* @__PURE__ */ jsx82(ChevronUp, { className: "uf-h-4 uf-w-4" })
11011
+ children: /* @__PURE__ */ jsx92(ChevronUp, { className: "uf-h-4 uf-w-4" })
10688
11012
  }
10689
11013
  ));
10690
11014
  SelectScrollUpButton2.displayName = ScrollUpButton.displayName;
10691
- var SelectScrollDownButton2 = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx82(
11015
+ var SelectScrollDownButton2 = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx92(
10692
11016
  ScrollDownButton,
10693
11017
  {
10694
11018
  ref,
@@ -10697,13 +11021,13 @@ var SelectScrollDownButton2 = React38.forwardRef(({ className, ...props }, ref)
10697
11021
  className
10698
11022
  ),
10699
11023
  ...props,
10700
- children: /* @__PURE__ */ jsx82(ChevronDown, { className: "uf-h-4 uf-w-4" })
11024
+ children: /* @__PURE__ */ jsx92(ChevronDown, { className: "uf-h-4 uf-w-4" })
10701
11025
  }
10702
11026
  ));
10703
11027
  SelectScrollDownButton2.displayName = ScrollDownButton.displayName;
10704
11028
  var SelectContent2 = React38.forwardRef(({ className, children, position = "popper", ...props }, ref) => {
10705
11029
  const { themeClass } = useTheme();
10706
- return /* @__PURE__ */ jsx82(Portal3, { children: /* @__PURE__ */ jsxs5(
11030
+ return /* @__PURE__ */ jsx92(Portal3, { children: /* @__PURE__ */ jsxs7(
10707
11031
  Content22,
10708
11032
  {
10709
11033
  ref,
@@ -10716,8 +11040,8 @@ var SelectContent2 = React38.forwardRef(({ className, children, position = "popp
10716
11040
  position,
10717
11041
  ...props,
10718
11042
  children: [
10719
- /* @__PURE__ */ jsx82(SelectScrollUpButton2, {}),
10720
- /* @__PURE__ */ jsx82(
11043
+ /* @__PURE__ */ jsx92(SelectScrollUpButton2, {}),
11044
+ /* @__PURE__ */ jsx92(
10721
11045
  Viewport,
10722
11046
  {
10723
11047
  className: cn(
@@ -10727,13 +11051,13 @@ var SelectContent2 = React38.forwardRef(({ className, children, position = "popp
10727
11051
  children
10728
11052
  }
10729
11053
  ),
10730
- /* @__PURE__ */ jsx82(SelectScrollDownButton2, {})
11054
+ /* @__PURE__ */ jsx92(SelectScrollDownButton2, {})
10731
11055
  ]
10732
11056
  }
10733
11057
  ) });
10734
11058
  });
10735
11059
  SelectContent2.displayName = Content22.displayName;
10736
- var SelectLabel2 = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx82(
11060
+ var SelectLabel2 = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx92(
10737
11061
  Label,
10738
11062
  {
10739
11063
  ref,
@@ -10742,7 +11066,7 @@ var SelectLabel2 = React38.forwardRef(({ className, ...props }, ref) => /* @__PU
10742
11066
  }
10743
11067
  ));
10744
11068
  SelectLabel2.displayName = Label.displayName;
10745
- var SelectItem2 = React38.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs5(
11069
+ var SelectItem2 = React38.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs7(
10746
11070
  Item,
10747
11071
  {
10748
11072
  ref,
@@ -10752,13 +11076,13 @@ var SelectItem2 = React38.forwardRef(({ className, children, ...props }, ref) =>
10752
11076
  ),
10753
11077
  ...props,
10754
11078
  children: [
10755
- /* @__PURE__ */ jsx82("span", { className: "uf-absolute uf-left-2 uf-flex uf-h-3.5 uf-w-3.5 uf-items-center uf-justify-center", children: /* @__PURE__ */ jsx82(ItemIndicator, { children: /* @__PURE__ */ jsx82(Check, { className: "uf-h-4 uf-w-4" }) }) }),
10756
- /* @__PURE__ */ jsx82(ItemText, { children })
11079
+ /* @__PURE__ */ jsx92("span", { className: "uf-absolute uf-left-2 uf-flex uf-h-3.5 uf-w-3.5 uf-items-center uf-justify-center", children: /* @__PURE__ */ jsx92(ItemIndicator, { children: /* @__PURE__ */ jsx92(Check, { className: "uf-h-4 uf-w-4" }) }) }),
11080
+ /* @__PURE__ */ jsx92(ItemText, { children })
10757
11081
  ]
10758
11082
  }
10759
11083
  ));
10760
11084
  SelectItem2.displayName = Item.displayName;
10761
- var SelectSeparator2 = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx82(
11085
+ var SelectSeparator2 = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx92(
10762
11086
  Separator,
10763
11087
  {
10764
11088
  ref,
@@ -10795,7 +11119,7 @@ var buttonVariants = cva(
10795
11119
  var Button = React42.forwardRef(
10796
11120
  ({ className, variant, size: size4, asChild = false, ...props }, ref) => {
10797
11121
  const Comp = asChild ? Slot3 : "button";
10798
- return /* @__PURE__ */ jsx92(
11122
+ return /* @__PURE__ */ jsx102(
10799
11123
  Comp,
10800
11124
  {
10801
11125
  className: cn(buttonVariants({ variant, size: size4, className })),
@@ -10811,7 +11135,7 @@ var Tooltip2 = Root32;
10811
11135
  var TooltipTrigger2 = Trigger2;
10812
11136
  var TooltipContent2 = React52.forwardRef(({ className, sideOffset = 4, ...props }, ref) => {
10813
11137
  const { themeClass } = useTheme();
10814
- return /* @__PURE__ */ jsx102(Portal4, { children: /* @__PURE__ */ jsx102(
11138
+ return /* @__PURE__ */ jsx112(Portal4, { children: /* @__PURE__ */ jsx112(
10815
11139
  Content23,
10816
11140
  {
10817
11141
  ref,
@@ -11157,8 +11481,8 @@ function TransferCryptoBase({
11157
11481
  const processingTime = currentChainFromBackend?.estimated_processing_time ?? null;
11158
11482
  const minDepositUsd = currentChainFromBackend?.minimum_deposit_amount_usd ?? 3;
11159
11483
  const renderTokenItem = (tokenData) => {
11160
- return /* @__PURE__ */ jsxs6("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
11161
- /* @__PURE__ */ jsx112(
11484
+ return /* @__PURE__ */ jsxs8("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
11485
+ /* @__PURE__ */ jsx122(
11162
11486
  "img",
11163
11487
  {
11164
11488
  src: tokenData.icon_url,
@@ -11168,13 +11492,13 @@ function TransferCryptoBase({
11168
11492
  className: "uf-rounded-full uf-flex-shrink-0"
11169
11493
  }
11170
11494
  ),
11171
- /* @__PURE__ */ jsx112("span", { className: "uf-text-xs uf-font-normal", children: tokenData.symbol }),
11172
- showDetailedDropdowns && /* @__PURE__ */ jsx112("span", { className: "uf-text-xs uf-text-muted-foreground", children: tokenData.name })
11495
+ /* @__PURE__ */ jsx122("span", { className: "uf-text-xs uf-font-normal", children: tokenData.symbol }),
11496
+ showDetailedDropdowns && /* @__PURE__ */ jsx122("span", { className: "uf-text-xs uf-text-muted-foreground", children: tokenData.name })
11173
11497
  ] });
11174
11498
  };
11175
11499
  const renderChainItem = (chainData) => {
11176
- return /* @__PURE__ */ jsxs6("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
11177
- /* @__PURE__ */ jsx112(
11500
+ return /* @__PURE__ */ jsxs8("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
11501
+ /* @__PURE__ */ jsx122(
11178
11502
  "img",
11179
11503
  {
11180
11504
  src: chainData.icon_url,
@@ -11184,24 +11508,24 @@ function TransferCryptoBase({
11184
11508
  className: "uf-rounded-full uf-flex-shrink-0"
11185
11509
  }
11186
11510
  ),
11187
- /* @__PURE__ */ jsx112("span", { className: "uf-text-xs uf-font-normal", children: chainData.chain_name }),
11188
- showDetailedDropdowns && /* @__PURE__ */ jsx112("span", { className: "uf-text-xs uf-text-muted-foreground uf-capitalize", children: chainData.chain_type })
11511
+ /* @__PURE__ */ jsx122("span", { className: "uf-text-xs uf-font-normal", children: chainData.chain_name }),
11512
+ showDetailedDropdowns && /* @__PURE__ */ jsx122("span", { className: "uf-text-xs uf-text-muted-foreground uf-capitalize", children: chainData.chain_type })
11189
11513
  ] });
11190
11514
  };
11191
11515
  const selectContainerClass = layoutVariant === "horizontal" ? "uf-grid uf-grid-cols-2 uf-gap-2.5" : "uf-space-y-3";
11192
- return /* @__PURE__ */ jsx112(TooltipProvider2, { delayDuration: 0, skipDelayDuration: 0, children: /* @__PURE__ */ jsxs6("div", { className: "uf-space-y-3", children: [
11193
- /* @__PURE__ */ jsxs6("div", { className: selectContainerClass, children: [
11194
- /* @__PURE__ */ jsxs6("div", { children: [
11195
- /* @__PURE__ */ jsx112("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-2 uf-flex uf-items-center uf-gap-1", children: t.supportedToken }),
11196
- /* @__PURE__ */ jsxs6(
11516
+ return /* @__PURE__ */ jsx122(TooltipProvider2, { delayDuration: 0, skipDelayDuration: 0, children: /* @__PURE__ */ jsxs8("div", { className: "uf-space-y-3", children: [
11517
+ /* @__PURE__ */ jsxs8("div", { className: selectContainerClass, children: [
11518
+ /* @__PURE__ */ jsxs8("div", { children: [
11519
+ /* @__PURE__ */ jsx122("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-2 uf-flex uf-items-center uf-gap-1", children: t.supportedToken }),
11520
+ /* @__PURE__ */ jsxs8(
11197
11521
  Select2,
11198
11522
  {
11199
11523
  value: token,
11200
11524
  onValueChange: setToken,
11201
11525
  disabled: tokensLoading || supportedTokens.length === 0,
11202
11526
  children: [
11203
- /* @__PURE__ */ jsx112(SelectTrigger2, { className: "uf-bg-secondary uf-border-none uf-rounded-lg uf-h-10 hover:uf-bg-accent uf-text-foreground focus:uf-ring-1 focus:uf-ring-ring disabled:uf-opacity-50", children: /* @__PURE__ */ jsx112(SelectValue2, { children: tokensLoading ? /* @__PURE__ */ jsx112("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ jsx112("span", { className: "uf-text-xs uf-font-light uf-text-muted-foreground", children: t.loading }) }) : selectedToken ? renderTokenItem(selectedToken) : /* @__PURE__ */ jsx112("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ jsx112("span", { className: "uf-text-xs uf-font-normal", children: token }) }) }) }),
11204
- /* @__PURE__ */ jsx112(SelectContent2, { className: "uf-bg-secondary uf-border uf-text-foreground uf-max-h-[300px]", children: supportedTokens.map((tokenData) => /* @__PURE__ */ jsx112(
11527
+ /* @__PURE__ */ jsx122(SelectTrigger2, { className: "uf-bg-secondary uf-border-none uf-rounded-lg uf-h-10 hover:uf-bg-accent uf-text-foreground focus:uf-ring-1 focus:uf-ring-ring disabled:uf-opacity-50", children: /* @__PURE__ */ jsx122(SelectValue2, { children: tokensLoading ? /* @__PURE__ */ jsx122("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ jsx122("span", { className: "uf-text-xs uf-font-light uf-text-muted-foreground", children: t.loading }) }) : selectedToken ? renderTokenItem(selectedToken) : /* @__PURE__ */ jsx122("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ jsx122("span", { className: "uf-text-xs uf-font-normal", children: token }) }) }) }),
11528
+ /* @__PURE__ */ jsx122(SelectContent2, { className: "uf-bg-secondary uf-border uf-text-foreground uf-max-h-[300px]", children: supportedTokens.map((tokenData) => /* @__PURE__ */ jsx122(
11205
11529
  SelectItem2,
11206
11530
  {
11207
11531
  value: tokenData.symbol,
@@ -11214,51 +11538,51 @@ function TransferCryptoBase({
11214
11538
  }
11215
11539
  )
11216
11540
  ] }),
11217
- /* @__PURE__ */ jsxs6("div", { children: [
11218
- /* @__PURE__ */ jsxs6("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-2 uf-flex uf-items-center uf-gap-1", children: [
11541
+ /* @__PURE__ */ jsxs8("div", { children: [
11542
+ /* @__PURE__ */ jsxs8("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-2 uf-flex uf-items-center uf-gap-1", children: [
11219
11543
  t.supportedChain,
11220
- /* @__PURE__ */ jsxs6("span", { className: "uf-text-[10px]", children: [
11544
+ /* @__PURE__ */ jsxs8("span", { className: "uf-text-[10px]", children: [
11221
11545
  "$",
11222
11546
  minDepositUsd,
11223
11547
  " ",
11224
11548
  t.minDeposit.label
11225
11549
  ] }),
11226
- /* @__PURE__ */ jsxs6(Tooltip2, { children: [
11227
- /* @__PURE__ */ jsx112(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ jsx112(
11550
+ /* @__PURE__ */ jsxs8(Tooltip2, { children: [
11551
+ /* @__PURE__ */ jsx122(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ jsx122(
11228
11552
  "span",
11229
11553
  {
11230
11554
  className: "uf-inline-flex uf-cursor-pointer uf-transition-colors hover:uf-text-foreground",
11231
11555
  tabIndex: 0,
11232
11556
  role: "button",
11233
11557
  "aria-label": "Minimum deposit information",
11234
- children: /* @__PURE__ */ jsx112(Info, { className: "uf-w-3 uf-h-3" })
11558
+ children: /* @__PURE__ */ jsx122(Info, { className: "uf-w-3 uf-h-3" })
11235
11559
  }
11236
11560
  ) }),
11237
- /* @__PURE__ */ jsx112(
11561
+ /* @__PURE__ */ jsx122(
11238
11562
  TooltipContent2,
11239
11563
  {
11240
11564
  side: "left",
11241
11565
  align: "center",
11242
11566
  className: "uf-max-w-[200px]",
11243
- children: /* @__PURE__ */ jsx112("p", { children: t.minDeposit.tooltip })
11567
+ children: /* @__PURE__ */ jsx122("p", { children: t.minDeposit.tooltip })
11244
11568
  }
11245
11569
  )
11246
11570
  ] })
11247
11571
  ] }),
11248
- /* @__PURE__ */ jsxs6(
11572
+ /* @__PURE__ */ jsxs8(
11249
11573
  Select2,
11250
11574
  {
11251
11575
  value: chain,
11252
11576
  onValueChange: setChain,
11253
11577
  disabled: tokensLoading || availableChainsForToken.length === 0,
11254
11578
  children: [
11255
- /* @__PURE__ */ jsx112(SelectTrigger2, { className: "uf-bg-secondary uf-border-none uf-rounded-lg uf-h-10 hover:uf-bg-accent uf-text-foreground focus:uf-ring-1 focus:uf-ring-ring disabled:uf-opacity-50", children: /* @__PURE__ */ jsx112(SelectValue2, { children: tokensLoading ? /* @__PURE__ */ jsx112("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ jsx112("span", { className: "uf-text-xs uf-font-light uf-text-muted-foreground", children: t.loading }) }) : currentChainFromBackend ? renderChainItem(currentChainFromBackend) : currentChainData ? renderChainItem(currentChainData) : /* @__PURE__ */ jsx112("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ jsx112("span", { className: "uf-text-xs uf-font-normal", children: chain }) }) }) }),
11256
- /* @__PURE__ */ jsx112(SelectContent2, { className: "uf-bg-secondary uf-border uf-text-foreground uf-max-h-[300px]", children: availableChainsForToken.length === 0 ? /* @__PURE__ */ jsx112("div", { className: "uf-px-2 uf-py-3 uf-text-xs uf-text-muted-foreground uf-text-center", children: t.noChainsAvailable }) : availableChainsForToken.map((chainData) => {
11579
+ /* @__PURE__ */ jsx122(SelectTrigger2, { className: "uf-bg-secondary uf-border-none uf-rounded-lg uf-h-10 hover:uf-bg-accent uf-text-foreground focus:uf-ring-1 focus:uf-ring-ring disabled:uf-opacity-50", children: /* @__PURE__ */ jsx122(SelectValue2, { children: tokensLoading ? /* @__PURE__ */ jsx122("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ jsx122("span", { className: "uf-text-xs uf-font-light uf-text-muted-foreground", children: t.loading }) }) : currentChainFromBackend ? renderChainItem(currentChainFromBackend) : currentChainData ? renderChainItem(currentChainData) : /* @__PURE__ */ jsx122("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ jsx122("span", { className: "uf-text-xs uf-font-normal", children: chain }) }) }) }),
11580
+ /* @__PURE__ */ jsx122(SelectContent2, { className: "uf-bg-secondary uf-border uf-text-foreground uf-max-h-[300px]", children: availableChainsForToken.length === 0 ? /* @__PURE__ */ jsx122("div", { className: "uf-px-2 uf-py-3 uf-text-xs uf-text-muted-foreground uf-text-center", children: t.noChainsAvailable }) : availableChainsForToken.map((chainData) => {
11257
11581
  const chainKey = getChainKey(
11258
11582
  chainData.chain_id,
11259
11583
  chainData.chain_type
11260
11584
  );
11261
- return /* @__PURE__ */ jsx112(
11585
+ return /* @__PURE__ */ jsx122(
11262
11586
  SelectItem2,
11263
11587
  {
11264
11588
  value: chainKey,
@@ -11273,14 +11597,14 @@ function TransferCryptoBase({
11273
11597
  )
11274
11598
  ] })
11275
11599
  ] }),
11276
- /* @__PURE__ */ jsx112("div", { className: "uf-flex uf-justify-center uf-py-2", children: /* @__PURE__ */ jsx112("div", { className: "uf-bg-card uf-p-4 uf-rounded-2xl uf-shadow-lg uf-border uf-border-border", children: loading ? /* @__PURE__ */ jsx112(
11600
+ /* @__PURE__ */ jsx122("div", { className: "uf-flex uf-justify-center uf-py-2", children: /* @__PURE__ */ jsx122("div", { className: "uf-bg-card uf-p-4 uf-rounded-2xl uf-shadow-lg uf-border uf-border-border", children: loading ? /* @__PURE__ */ jsx122(
11277
11601
  "div",
11278
11602
  {
11279
11603
  className: "uf-flex uf-items-center uf-justify-center",
11280
11604
  style: { width: 180, height: 180 },
11281
- children: /* @__PURE__ */ jsx112("div", { className: "uf-text-foreground uf-text-sm", children: t.loadingQRCode })
11605
+ children: /* @__PURE__ */ jsx122("div", { className: "uf-text-foreground uf-text-sm", children: t.loadingQRCode })
11282
11606
  }
11283
- ) : depositAddress ? /* @__PURE__ */ jsx112(
11607
+ ) : depositAddress ? /* @__PURE__ */ jsx122(
11284
11608
  StyledQRCode,
11285
11609
  {
11286
11610
  value: depositAddress,
@@ -11290,93 +11614,93 @@ function TransferCryptoBase({
11290
11614
  darkMode: isDarkMode
11291
11615
  },
11292
11616
  `qr-${depositAddress}-${chain}`
11293
- ) : /* @__PURE__ */ jsx112(
11617
+ ) : /* @__PURE__ */ jsx122(
11294
11618
  "div",
11295
11619
  {
11296
11620
  className: "uf-flex uf-items-center uf-justify-center",
11297
11621
  style: { width: 180, height: 180 },
11298
- children: /* @__PURE__ */ jsx112("div", { className: "uf-text-red-400 uf-text-sm", children: t.noAddressAvailable })
11622
+ children: /* @__PURE__ */ jsx122("div", { className: "uf-text-red-400 uf-text-sm", children: t.noAddressAvailable })
11299
11623
  }
11300
11624
  ) }) }),
11301
- /* @__PURE__ */ jsxs6("div", { children: [
11302
- /* @__PURE__ */ jsxs6("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-2 uf-flex uf-items-center uf-justify-between", children: [
11303
- /* @__PURE__ */ jsxs6("div", { className: "uf-flex uf-items-center uf-gap-1", children: [
11625
+ /* @__PURE__ */ jsxs8("div", { children: [
11626
+ /* @__PURE__ */ jsxs8("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-2 uf-flex uf-items-center uf-justify-between", children: [
11627
+ /* @__PURE__ */ jsxs8("div", { className: "uf-flex uf-items-center uf-gap-1", children: [
11304
11628
  t.depositAddress.label,
11305
- /* @__PURE__ */ jsxs6(Tooltip2, { children: [
11306
- /* @__PURE__ */ jsx112(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ jsx112(
11629
+ /* @__PURE__ */ jsxs8(Tooltip2, { children: [
11630
+ /* @__PURE__ */ jsx122(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ jsx122(
11307
11631
  "span",
11308
11632
  {
11309
11633
  className: "uf-inline-flex uf-cursor-pointer uf-transition-colors hover:uf-text-foreground",
11310
11634
  tabIndex: 0,
11311
11635
  role: "button",
11312
11636
  "aria-label": "Deposit address information",
11313
- children: /* @__PURE__ */ jsx112(Info, { className: "uf-w-3 uf-h-3" })
11637
+ children: /* @__PURE__ */ jsx122(Info, { className: "uf-w-3 uf-h-3" })
11314
11638
  }
11315
11639
  ) }),
11316
- /* @__PURE__ */ jsx112(
11640
+ /* @__PURE__ */ jsx122(
11317
11641
  TooltipContent2,
11318
11642
  {
11319
11643
  side: "top",
11320
11644
  align: "center",
11321
11645
  className: "uf-max-w-[240px]",
11322
- children: /* @__PURE__ */ jsx112("p", { children: t.depositAddress.tooltip.replace("{{token}}", token) })
11646
+ children: /* @__PURE__ */ jsx122("p", { children: t.depositAddress.tooltip.replace("{{token}}", token) })
11323
11647
  }
11324
11648
  )
11325
11649
  ] })
11326
11650
  ] }),
11327
- copyButtonMode === "compact" && /* @__PURE__ */ jsx112(
11651
+ copyButtonMode === "compact" && /* @__PURE__ */ jsx122(
11328
11652
  "button",
11329
11653
  {
11330
11654
  onClick: handleCopyAddress,
11331
11655
  disabled: loading || !depositAddress,
11332
11656
  className: "uf-flex uf-items-center uf-gap-1 uf-text-xs uf-text-muted-foreground hover:uf-text-foreground uf-transition-colors disabled:uf-opacity-50 disabled:uf-cursor-not-allowed",
11333
- children: copied ? /* @__PURE__ */ jsxs6(Fragment23, { children: [
11334
- /* @__PURE__ */ jsx112(Check, { className: "uf-w-3 uf-h-3" }),
11335
- /* @__PURE__ */ jsx112("span", { children: t.copied })
11336
- ] }) : /* @__PURE__ */ jsxs6(Fragment23, { children: [
11337
- /* @__PURE__ */ jsx112(Copy, { className: "uf-w-3 uf-h-3" }),
11338
- /* @__PURE__ */ jsx112("span", { children: t.copyAddress })
11657
+ children: copied ? /* @__PURE__ */ jsxs8(Fragment23, { children: [
11658
+ /* @__PURE__ */ jsx122(Check, { className: "uf-w-3 uf-h-3" }),
11659
+ /* @__PURE__ */ jsx122("span", { children: t.copied })
11660
+ ] }) : /* @__PURE__ */ jsxs8(Fragment23, { children: [
11661
+ /* @__PURE__ */ jsx122(Copy, { className: "uf-w-3 uf-h-3" }),
11662
+ /* @__PURE__ */ jsx122("span", { children: t.copyAddress })
11339
11663
  ] })
11340
11664
  }
11341
11665
  )
11342
11666
  ] }),
11343
- loading ? /* @__PURE__ */ jsx112("div", { className: "uf-bg-secondary uf-rounded-lg uf-px-3 uf-py-2.5 uf-text-xs uf-text-muted-foreground uf-animate-pulse", children: t.loading }) : error ? /* @__PURE__ */ jsx112("div", { className: "uf-bg-secondary uf-rounded-lg uf-px-3 uf-py-2.5 uf-text-xs uf-text-red-400", children: error }) : /* @__PURE__ */ jsx112("div", { className: "uf-bg-secondary uf-rounded-lg uf-px-3 uf-py-2.5 uf-text-xs uf-font-mono uf-break-all", children: depositAddress || t.noAddressAvailable })
11667
+ loading ? /* @__PURE__ */ jsx122("div", { className: "uf-bg-secondary uf-rounded-lg uf-px-3 uf-py-2.5 uf-text-xs uf-text-muted-foreground uf-animate-pulse", children: t.loading }) : error ? /* @__PURE__ */ jsx122("div", { className: "uf-bg-secondary uf-rounded-lg uf-px-3 uf-py-2.5 uf-text-xs uf-text-red-400", children: error }) : /* @__PURE__ */ jsx122("div", { className: "uf-bg-secondary uf-rounded-lg uf-px-3 uf-py-2.5 uf-text-xs uf-font-mono uf-break-all", children: depositAddress || t.noAddressAvailable })
11344
11668
  ] }),
11345
- copyButtonMode === "fullWidth" && /* @__PURE__ */ jsx112(
11669
+ copyButtonMode === "fullWidth" && /* @__PURE__ */ jsx122(
11346
11670
  Button,
11347
11671
  {
11348
11672
  onClick: handleCopyAddress,
11349
11673
  disabled: loading || !depositAddress,
11350
11674
  className: "uf-w-full uf-bg-secondary hover:uf-bg-accent uf-text-foreground uf-rounded-lg uf-h-9 uf-text-sm uf-font-medium disabled:uf-opacity-50 disabled:uf-cursor-not-allowed",
11351
- children: copied ? /* @__PURE__ */ jsxs6(Fragment23, { children: [
11352
- /* @__PURE__ */ jsx112(Check, { className: "uf-w-4 uf-h-4 uf-mr-2" }),
11675
+ children: copied ? /* @__PURE__ */ jsxs8(Fragment23, { children: [
11676
+ /* @__PURE__ */ jsx122(Check, { className: "uf-w-4 uf-h-4 uf-mr-2" }),
11353
11677
  t.copied
11354
- ] }) : /* @__PURE__ */ jsxs6(Fragment23, { children: [
11355
- /* @__PURE__ */ jsx112(Copy, { className: "uf-w-4 uf-h-4 uf-mr-2" }),
11678
+ ] }) : /* @__PURE__ */ jsxs8(Fragment23, { children: [
11679
+ /* @__PURE__ */ jsx122(Copy, { className: "uf-w-4 uf-h-4 uf-mr-2" }),
11356
11680
  t.copyAddress
11357
11681
  ] })
11358
11682
  }
11359
11683
  ),
11360
- /* @__PURE__ */ jsxs6("div", { className: "uf-border-t uf-border-border", children: [
11361
- /* @__PURE__ */ jsxs6(
11684
+ /* @__PURE__ */ jsxs8("div", { className: "uf-border-t uf-border-border", children: [
11685
+ /* @__PURE__ */ jsxs8(
11362
11686
  "button",
11363
11687
  {
11364
11688
  onClick: () => setDetailsExpanded(!detailsExpanded),
11365
11689
  className: "uf-w-full uf-flex uf-items-center uf-justify-between uf-py-2.5",
11366
11690
  children: [
11367
- /* @__PURE__ */ jsxs6("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
11368
- /* @__PURE__ */ jsx112("div", { className: "uf-bg-secondary uf-rounded-full uf-p-1", children: /* @__PURE__ */ jsx112(DollarSign, { className: "uf-w-3 uf-h-3" }) }),
11369
- /* @__PURE__ */ jsxs6("span", { className: "uf-text-xs", children: [
11691
+ /* @__PURE__ */ jsxs8("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
11692
+ /* @__PURE__ */ jsx122("div", { className: "uf-bg-secondary uf-rounded-full uf-p-1", children: /* @__PURE__ */ jsx122(DollarSign, { className: "uf-w-3 uf-h-3" }) }),
11693
+ /* @__PURE__ */ jsxs8("span", { className: "uf-text-xs", children: [
11370
11694
  t.priceImpact.label,
11371
11695
  ":",
11372
11696
  " ",
11373
- /* @__PURE__ */ jsxs6("span", { className: "uf-text-foreground", children: [
11697
+ /* @__PURE__ */ jsxs8("span", { className: "uf-text-foreground", children: [
11374
11698
  priceImpact.toFixed(2),
11375
11699
  "%"
11376
11700
  ] })
11377
11701
  ] }),
11378
- /* @__PURE__ */ jsxs6(Tooltip2, { children: [
11379
- /* @__PURE__ */ jsx112(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ jsx112(
11702
+ /* @__PURE__ */ jsxs8(Tooltip2, { children: [
11703
+ /* @__PURE__ */ jsx122(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ jsx122(
11380
11704
  "span",
11381
11705
  {
11382
11706
  className: "uf-inline-flex uf-cursor-pointer uf-text-muted-foreground uf-transition-colors hover:uf-text-foreground",
@@ -11389,75 +11713,75 @@ function TransferCryptoBase({
11389
11713
  tabIndex: 0,
11390
11714
  role: "button",
11391
11715
  "aria-label": "Price impact information",
11392
- children: /* @__PURE__ */ jsx112(Info, { className: "uf-w-3 uf-h-3" })
11716
+ children: /* @__PURE__ */ jsx122(Info, { className: "uf-w-3 uf-h-3" })
11393
11717
  }
11394
11718
  ) }),
11395
- /* @__PURE__ */ jsx112(
11719
+ /* @__PURE__ */ jsx122(
11396
11720
  TooltipContent2,
11397
11721
  {
11398
11722
  side: "top",
11399
11723
  align: "center",
11400
11724
  className: "uf-max-w-[240px]",
11401
- children: /* @__PURE__ */ jsx112("p", { children: t.priceImpact.tooltip })
11725
+ children: /* @__PURE__ */ jsx122("p", { children: t.priceImpact.tooltip })
11402
11726
  }
11403
11727
  )
11404
11728
  ] })
11405
11729
  ] }),
11406
- detailsExpanded ? /* @__PURE__ */ jsx112(ChevronUp, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground" }) : /* @__PURE__ */ jsx112(ChevronDown, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground" })
11730
+ detailsExpanded ? /* @__PURE__ */ jsx122(ChevronUp, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground" }) : /* @__PURE__ */ jsx122(ChevronDown, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground" })
11407
11731
  ]
11408
11732
  }
11409
11733
  ),
11410
- detailsExpanded && /* @__PURE__ */ jsxs6("div", { className: "uf-pb-3 uf-space-y-2.5", children: [
11411
- /* @__PURE__ */ jsxs6("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
11412
- /* @__PURE__ */ jsx112("div", { className: "uf-bg-secondary uf-rounded-full uf-p-1", children: /* @__PURE__ */ jsx112(ShieldCheck, { className: "uf-w-3 uf-h-3" }) }),
11413
- /* @__PURE__ */ jsxs6("span", { className: "uf-text-xs", children: [
11734
+ detailsExpanded && /* @__PURE__ */ jsxs8("div", { className: "uf-pb-3 uf-space-y-2.5", children: [
11735
+ /* @__PURE__ */ jsxs8("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
11736
+ /* @__PURE__ */ jsx122("div", { className: "uf-bg-secondary uf-rounded-full uf-p-1", children: /* @__PURE__ */ jsx122(ShieldCheck, { className: "uf-w-3 uf-h-3" }) }),
11737
+ /* @__PURE__ */ jsxs8("span", { className: "uf-text-xs", children: [
11414
11738
  t.slippage.label,
11415
11739
  ":",
11416
11740
  " ",
11417
- /* @__PURE__ */ jsxs6("span", { className: "uf-text-foreground", children: [
11741
+ /* @__PURE__ */ jsxs8("span", { className: "uf-text-foreground", children: [
11418
11742
  t.slippage.auto,
11419
11743
  " \u2022 ",
11420
11744
  maxSlippage.toFixed(2),
11421
11745
  "%"
11422
11746
  ] })
11423
11747
  ] }),
11424
- /* @__PURE__ */ jsxs6(Tooltip2, { children: [
11425
- /* @__PURE__ */ jsx112(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ jsx112(
11748
+ /* @__PURE__ */ jsxs8(Tooltip2, { children: [
11749
+ /* @__PURE__ */ jsx122(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ jsx122(
11426
11750
  "span",
11427
11751
  {
11428
11752
  className: "uf-inline-flex uf-cursor-pointer uf-text-muted-foreground uf-transition-colors hover:uf-text-foreground",
11429
11753
  tabIndex: 0,
11430
11754
  role: "button",
11431
11755
  "aria-label": "Slippage information",
11432
- children: /* @__PURE__ */ jsx112(Info, { className: "uf-w-3 uf-h-3" })
11756
+ children: /* @__PURE__ */ jsx122(Info, { className: "uf-w-3 uf-h-3" })
11433
11757
  }
11434
11758
  ) }),
11435
- /* @__PURE__ */ jsx112(
11759
+ /* @__PURE__ */ jsx122(
11436
11760
  TooltipContent2,
11437
11761
  {
11438
11762
  side: "top",
11439
11763
  align: "center",
11440
11764
  className: "uf-max-w-[240px]",
11441
- children: /* @__PURE__ */ jsx112("p", { children: t.slippage.tooltip })
11765
+ children: /* @__PURE__ */ jsx122("p", { children: t.slippage.tooltip })
11442
11766
  }
11443
11767
  )
11444
11768
  ] })
11445
11769
  ] }),
11446
- /* @__PURE__ */ jsxs6("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
11447
- /* @__PURE__ */ jsx112("div", { className: "uf-bg-secondary uf-rounded-full uf-p-1", children: /* @__PURE__ */ jsx112(Clock, { className: "uf-w-3 uf-h-3" }) }),
11448
- /* @__PURE__ */ jsxs6("span", { className: "uf-text-xs", children: [
11770
+ /* @__PURE__ */ jsxs8("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
11771
+ /* @__PURE__ */ jsx122("div", { className: "uf-bg-secondary uf-rounded-full uf-p-1", children: /* @__PURE__ */ jsx122(Clock, { className: "uf-w-3 uf-h-3" }) }),
11772
+ /* @__PURE__ */ jsxs8("span", { className: "uf-text-xs", children: [
11449
11773
  t.processingTime.label,
11450
11774
  ":",
11451
11775
  " ",
11452
- /* @__PURE__ */ jsx112("span", { className: "uf-text-foreground", children: formatProcessingTime(processingTime) })
11776
+ /* @__PURE__ */ jsx122("span", { className: "uf-text-foreground", children: formatProcessingTime(processingTime) })
11453
11777
  ] })
11454
11778
  ] }),
11455
- /* @__PURE__ */ jsxs6("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
11456
- /* @__PURE__ */ jsx112("div", { className: "uf-bg-secondary uf-rounded-full uf-p-1", children: /* @__PURE__ */ jsx112(FileText, { className: "uf-w-3 uf-h-3" }) }),
11457
- /* @__PURE__ */ jsxs6("span", { className: "uf-text-xs", children: [
11779
+ /* @__PURE__ */ jsxs8("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
11780
+ /* @__PURE__ */ jsx122("div", { className: "uf-bg-secondary uf-rounded-full uf-p-1", children: /* @__PURE__ */ jsx122(FileText, { className: "uf-w-3 uf-h-3" }) }),
11781
+ /* @__PURE__ */ jsxs8("span", { className: "uf-text-xs", children: [
11458
11782
  t.help.needHelp,
11459
11783
  " ",
11460
- /* @__PURE__ */ jsx112(
11784
+ /* @__PURE__ */ jsx122(
11461
11785
  "a",
11462
11786
  {
11463
11787
  href: "#",
@@ -11468,8 +11792,8 @@ function TransferCryptoBase({
11468
11792
  ] })
11469
11793
  ] })
11470
11794
  ] }),
11471
- /* @__PURE__ */ jsxs6("div", { className: "uf-flex uf-items-center uf-justify-between uf-text-xs uf-pt-2", children: [
11472
- /* @__PURE__ */ jsx112(
11795
+ /* @__PURE__ */ jsxs8("div", { className: "uf-flex uf-items-center uf-justify-between uf-text-xs uf-pt-2", children: [
11796
+ /* @__PURE__ */ jsx122(
11473
11797
  "a",
11474
11798
  {
11475
11799
  href: "https://unifold.io/terms",
@@ -11478,38 +11802,37 @@ function TransferCryptoBase({
11478
11802
  children: t.terms.termsApply
11479
11803
  }
11480
11804
  ),
11481
- depositExecutions.length > 1 && /* @__PURE__ */ jsxs6(
11805
+ depositExecutions.length > 1 && /* @__PURE__ */ jsxs8(
11482
11806
  "button",
11483
11807
  {
11484
11808
  onClick: () => setDepositsModalOpen(true),
11485
11809
  className: "uf-flex uf-items-center uf-gap-1 uf-text-muted-foreground hover:uf-text-foreground uf-transition-colors uf-animate-in uf-fade-in uf-slide-in-from-right-8 uf-duration-1000",
11486
11810
  children: [
11487
- /* @__PURE__ */ jsx112(Clock, { className: "uf-w-3.5 uf-h-3.5" }),
11811
+ /* @__PURE__ */ jsx122(Clock, { className: "uf-w-3.5 uf-h-3.5" }),
11488
11812
  "Track deposits (",
11489
11813
  depositExecutions.length,
11490
11814
  ")",
11491
- /* @__PURE__ */ jsx112(ChevronRight, { className: "uf-w-3 uf-h-3" })
11815
+ /* @__PURE__ */ jsx122(ChevronRight, { className: "uf-w-3 uf-h-3" })
11492
11816
  ]
11493
11817
  }
11494
11818
  )
11495
11819
  ] })
11496
11820
  ] }),
11497
- depositExecutions.length === 1 && /* @__PURE__ */ jsx112("div", { className: "uf-fixed uf-bottom-4 uf-left-1/2 uf--translate-x-1/2 uf-w-[360px] uf-max-w-[calc(100vw-2rem)] uf-z-[100]", children: /* @__PURE__ */ jsx112(
11821
+ depositExecutions.length === 1 && /* @__PURE__ */ jsx122("div", { className: "uf-fixed uf-bottom-4 uf-left-1/2 uf--translate-x-1/2 uf-w-[360px] uf-max-w-[calc(100vw-2rem)] uf-z-[100]", children: /* @__PURE__ */ jsx122(
11498
11822
  DepositSuccessToast,
11499
11823
  {
11500
11824
  depositTx: depositExecutions[0].transaction_hash,
11501
- completionTx: depositExecutions[0].destination_transaction_hashes?.[0] || (depositExecutions[0].status === "succeeded" ? depositExecutions[0].transaction_hash : void 0),
11502
11825
  orderSubmittedAt: depositExecutions[0].created_at || (/* @__PURE__ */ new Date()).toISOString(),
11503
11826
  orderFilledAt: depositExecutions[0].updated_at || (/* @__PURE__ */ new Date()).toISOString(),
11504
11827
  explorerUrl: depositExecutions[0].explorer_url,
11505
- completionExplorerUrl: depositExecutions[0].destination_explorer_url ?? void 0,
11506
11828
  status: depositExecutions[0].status,
11507
11829
  tokenIconUrl: depositExecutions[0].source_token_metadata?.icon_url,
11830
+ sourceAmountBaseUnit: depositExecutions[0].source_amount_base_unit,
11508
11831
  onClose: () => setDepositExecutions([])
11509
11832
  },
11510
11833
  depositExecutions[0].id
11511
11834
  ) }),
11512
- /* @__PURE__ */ jsx112(
11835
+ /* @__PURE__ */ jsx122(
11513
11836
  DepositsModal,
11514
11837
  {
11515
11838
  open: depositsModalOpen,
@@ -11523,7 +11846,7 @@ function TransferCryptoBase({
11523
11846
  ] }) });
11524
11847
  }
11525
11848
  function TransferCrypto(props) {
11526
- return /* @__PURE__ */ jsx122(
11849
+ return /* @__PURE__ */ jsx132(
11527
11850
  TransferCryptoBase,
11528
11851
  {
11529
11852
  ...props,
@@ -11537,30 +11860,28 @@ function CurrencyListItem({
11537
11860
  isSelected,
11538
11861
  onSelect
11539
11862
  }) {
11540
- const iconUrl = currency.icon_url;
11541
- return /* @__PURE__ */ jsxs7(
11863
+ const iconUrl = getPreferredIconUrl(currency.icon_urls, "png") || currency.icon_url;
11864
+ return /* @__PURE__ */ jsxs9(
11542
11865
  "button",
11543
11866
  {
11544
11867
  onClick: () => onSelect(currency.currency_code),
11545
11868
  className: "uf-w-full uf-bg-secondary hover:uf-bg-accent uf-transition-colors uf-rounded-xl uf-p-3 uf-flex uf-items-center uf-justify-between uf-group",
11546
11869
  children: [
11547
- /* @__PURE__ */ jsxs7("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
11548
- /* @__PURE__ */ jsx132("div", { className: "uf-w-10 uf-h-10 uf-flex-shrink-0 uf-rounded-full uf-overflow-hidden uf-bg-card", children: /* @__PURE__ */ jsx132(
11870
+ /* @__PURE__ */ jsxs9("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
11871
+ /* @__PURE__ */ jsx142(
11549
11872
  "img",
11550
11873
  {
11551
11874
  src: iconUrl,
11552
11875
  alt: currency.name,
11553
- width: 40,
11554
- height: 40,
11555
- className: "uf-w-full uf-h-full uf-object-cover"
11876
+ className: "uf-w-10 uf-h-10 uf-flex-shrink-0"
11556
11877
  }
11557
- ) }),
11558
- /* @__PURE__ */ jsxs7("div", { className: "uf-text-left", children: [
11559
- /* @__PURE__ */ jsx132("div", { className: "uf-text-sm uf-font-normal uf-text-foreground", children: currency.name }),
11560
- /* @__PURE__ */ jsx132("div", { className: "uf-text-xs uf-text-muted-foreground uf-font-light", children: currency.currency_code.toUpperCase() })
11878
+ ),
11879
+ /* @__PURE__ */ jsxs9("div", { className: "uf-text-left", children: [
11880
+ /* @__PURE__ */ jsx142("div", { className: "uf-text-sm uf-font-normal uf-text-foreground", children: currency.name }),
11881
+ /* @__PURE__ */ jsx142("div", { className: "uf-text-xs uf-text-muted-foreground uf-font-light", children: currency.currency_code.toUpperCase() })
11561
11882
  ] })
11562
11883
  ] }),
11563
- isSelected && /* @__PURE__ */ jsx132(Check, { className: "uf-w-4 uf-h-4 uf-text-foreground" })
11884
+ isSelected && /* @__PURE__ */ jsx142(Check, { className: "uf-w-4 uf-h-4 uf-text-foreground" })
11564
11885
  ]
11565
11886
  }
11566
11887
  );
@@ -11572,9 +11893,9 @@ function CurrencyListSection({
11572
11893
  onSelect
11573
11894
  }) {
11574
11895
  if (currencies.length === 0) return null;
11575
- return /* @__PURE__ */ jsxs8(Fragment32, { children: [
11576
- /* @__PURE__ */ jsx142("div", { className: "uf-px-1 uf-pb-2", children: /* @__PURE__ */ jsx142("h3", { className: "uf-text-xs uf-font-light uf-text-muted-foreground", children: title }) }),
11577
- currencies.map((currency) => /* @__PURE__ */ jsx142(
11896
+ return /* @__PURE__ */ jsxs10(Fragment32, { children: [
11897
+ /* @__PURE__ */ jsx152("div", { className: "uf-px-1 uf-pb-2", children: /* @__PURE__ */ jsx152("h3", { className: "uf-text-xs uf-font-light uf-text-muted-foreground", children: title }) }),
11898
+ currencies.map((currency) => /* @__PURE__ */ jsx152(
11578
11899
  CurrencyListItem,
11579
11900
  {
11580
11901
  currency,
@@ -11621,8 +11942,8 @@ function CurrencyModal({
11621
11942
  onOpenChange(false);
11622
11943
  setSearchQuery("");
11623
11944
  };
11624
- return /* @__PURE__ */ jsx152(Dialog2, { open, onOpenChange, children: /* @__PURE__ */ jsxs9(DialogContent2, { className: `sm:uf-max-w-[400px] !uf-bg-card uf-border-secondary uf-text-foreground uf-p-0 uf-gap-0 [&>button]:uf-hidden ${themeClass}`, children: [
11625
- /* @__PURE__ */ jsx152(
11945
+ return /* @__PURE__ */ jsx162(Dialog2, { open, onOpenChange, children: /* @__PURE__ */ jsxs11(DialogContent2, { className: `sm:uf-max-w-[400px] !uf-bg-card uf-border-secondary uf-text-foreground uf-p-0 uf-gap-0 [&>button]:uf-hidden ${themeClass}`, children: [
11946
+ /* @__PURE__ */ jsx162(
11626
11947
  DepositHeader,
11627
11948
  {
11628
11949
  title: "Currency",
@@ -11631,9 +11952,9 @@ function CurrencyModal({
11631
11952
  onClose: handleClose
11632
11953
  }
11633
11954
  ),
11634
- /* @__PURE__ */ jsx152("div", { children: /* @__PURE__ */ jsxs9("div", { className: "uf-relative", children: [
11635
- /* @__PURE__ */ jsx152(Search, { className: "uf-absolute uf-left-4 uf-top-1/2 uf--translate-y-1/2 uf-w-4 uf-h-4 uf-text-muted-foreground" }),
11636
- /* @__PURE__ */ jsx152(
11955
+ /* @__PURE__ */ jsx162("div", { children: /* @__PURE__ */ jsxs11("div", { className: "uf-relative", children: [
11956
+ /* @__PURE__ */ jsx162(Search, { className: "uf-absolute uf-left-4 uf-top-1/2 uf--translate-y-1/2 uf-w-4 uf-h-4 uf-text-muted-foreground" }),
11957
+ /* @__PURE__ */ jsx162(
11637
11958
  "input",
11638
11959
  {
11639
11960
  type: "text",
@@ -11644,8 +11965,8 @@ function CurrencyModal({
11644
11965
  }
11645
11966
  )
11646
11967
  ] }) }),
11647
- /* @__PURE__ */ jsx152("div", { className: "uf-max-h-[500px] uf-overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden", children: /* @__PURE__ */ jsxs9("div", { className: "uf-space-y-2", children: [
11648
- /* @__PURE__ */ jsx152(
11968
+ /* @__PURE__ */ jsx162("div", { className: "uf-max-h-[500px] uf-overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden", children: /* @__PURE__ */ jsxs11("div", { className: "uf-space-y-2", children: [
11969
+ /* @__PURE__ */ jsx162(
11649
11970
  CurrencyListSection,
11650
11971
  {
11651
11972
  title: "Popular currencies",
@@ -11654,8 +11975,8 @@ function CurrencyModal({
11654
11975
  onSelect: handleSelect
11655
11976
  }
11656
11977
  ),
11657
- filteredPreferred.length > 0 && filteredOther.length > 0 && /* @__PURE__ */ jsx152("div", { className: "uf-h-2" }),
11658
- /* @__PURE__ */ jsx152(
11978
+ filteredPreferred.length > 0 && filteredOther.length > 0 && /* @__PURE__ */ jsx162("div", { className: "uf-h-2" }),
11979
+ /* @__PURE__ */ jsx162(
11659
11980
  CurrencyListSection,
11660
11981
  {
11661
11982
  title: "All currencies",
@@ -11664,7 +11985,7 @@ function CurrencyModal({
11664
11985
  onSelect: handleSelect
11665
11986
  }
11666
11987
  ),
11667
- filteredPreferred.length === 0 && filteredOther.length === 0 && /* @__PURE__ */ jsx152("div", { className: "uf-text-center uf-py-8 uf-text-muted-foreground uf-text-sm", children: "No currencies found" })
11988
+ filteredPreferred.length === 0 && filteredOther.length === 0 && /* @__PURE__ */ jsx162("div", { className: "uf-text-center uf-py-8 uf-text-muted-foreground uf-text-sm", children: "No currencies found" })
11668
11989
  ] }) })
11669
11990
  ] }) });
11670
11991
  }
@@ -11740,7 +12061,8 @@ function BuyWithCard({
11740
12061
  destinationChainId,
11741
12062
  destinationTokenAddress,
11742
12063
  themeClass = "",
11743
- wallets: externalWallets
12064
+ wallets: externalWallets,
12065
+ assetCdnUrl
11744
12066
  }) {
11745
12067
  const [amount, setAmount] = useState42("500.00");
11746
12068
  const [currency, setCurrency] = useState42("usd");
@@ -12012,38 +12334,36 @@ function BuyWithCard({
12012
12334
  (a, b) => b.destination_amount - a.destination_amount
12013
12335
  );
12014
12336
  const currencySymbol = getCurrencySymbol(currency);
12015
- return /* @__PURE__ */ jsxs10("div", { className: "uf-pb-1 uf-relative uf-overflow-hidden", children: [
12016
- /* @__PURE__ */ jsxs10(
12337
+ return /* @__PURE__ */ jsxs12("div", { className: "uf-pb-1 uf-relative uf-overflow-hidden", children: [
12338
+ /* @__PURE__ */ jsxs12(
12017
12339
  "div",
12018
12340
  {
12019
12341
  className: `uf-transition-all uf-duration-300 ${showQuotesView || showOnrampView ? "uf-opacity-0 uf-pointer-events-none uf-absolute uf-inset-0" : "uf-opacity-100"}`,
12020
12342
  children: [
12021
- /* @__PURE__ */ jsxs10("div", { className: "uf-mb-6 uf-pt-4", children: [
12022
- /* @__PURE__ */ jsx162("div", { className: "uf-flex uf-justify-center uf-mb-4", children: /* @__PURE__ */ jsxs10(
12343
+ /* @__PURE__ */ jsxs12("div", { className: "uf-mb-6 uf-pt-4", children: [
12344
+ /* @__PURE__ */ jsx172("div", { className: "uf-flex uf-justify-center uf-mb-4", children: /* @__PURE__ */ jsxs12(
12023
12345
  "button",
12024
12346
  {
12025
12347
  onClick: () => setShowCurrencyModal(true),
12026
12348
  disabled: currenciesLoading,
12027
12349
  className: "uf-flex uf-items-center uf-gap-1.5 uf-px-3 uf-py-1.5 uf-rounded-lg uf-bg-secondary hover:uf-bg-accent uf-transition-colors disabled:uf-opacity-50 disabled:uf-cursor-not-allowed",
12028
12350
  children: [
12029
- selectedCurrencyData && /* @__PURE__ */ jsx162("div", { className: "uf-w-4 uf-h-4 uf-rounded-full uf-overflow-hidden uf-flex uf-items-center uf-justify-center", children: /* @__PURE__ */ jsx162(
12351
+ selectedCurrencyData && /* @__PURE__ */ jsx172(
12030
12352
  "img",
12031
12353
  {
12032
- src: selectedCurrencyData.icon_url,
12354
+ src: getPreferredIconUrl(selectedCurrencyData.icon_urls, "png") || selectedCurrencyData.icon_url,
12033
12355
  alt: selectedCurrencyData.name,
12034
- width: 16,
12035
- height: 16,
12036
- className: "uf-w-full uf-h-full uf-object-cover uf-rounded-full"
12356
+ className: "uf-w-4 uf-h-4"
12037
12357
  }
12038
- ) }),
12039
- /* @__PURE__ */ jsx162("span", { className: "uf-text-sm uf-text-foreground uf-font-medium", children: currency.toUpperCase() }),
12040
- /* @__PURE__ */ jsx162(ChevronDown, { className: "uf-w-3.5 uf-h-3.5 uf-text-muted-foreground" })
12358
+ ),
12359
+ /* @__PURE__ */ jsx172("span", { className: "uf-text-sm uf-text-foreground uf-font-medium", children: currency.toUpperCase() }),
12360
+ /* @__PURE__ */ jsx172(ChevronDown, { className: "uf-w-3.5 uf-h-3.5 uf-text-muted-foreground" })
12041
12361
  ]
12042
12362
  }
12043
12363
  ) }),
12044
- /* @__PURE__ */ jsxs10("div", { className: "uf-text-center uf-mb-4", children: [
12045
- /* @__PURE__ */ jsx162("div", { className: "uf-flex uf-items-center uf-justify-center uf-mb-2 uf-px-8", children: /* @__PURE__ */ jsxs10("div", { className: "uf-flex uf-items-center uf-max-w-full", children: [
12046
- /* @__PURE__ */ jsx162(
12364
+ /* @__PURE__ */ jsxs12("div", { className: "uf-text-center uf-mb-4", children: [
12365
+ /* @__PURE__ */ jsx172("div", { className: "uf-flex uf-items-center uf-justify-center uf-mb-2 uf-px-8", children: /* @__PURE__ */ jsxs12("div", { className: "uf-flex uf-items-center uf-max-w-full", children: [
12366
+ /* @__PURE__ */ jsx172(
12047
12367
  "span",
12048
12368
  {
12049
12369
  className: "uf-font-normal uf-text-foreground uf-flex-shrink-0 uf-mr-1",
@@ -12053,7 +12373,7 @@ function BuyWithCard({
12053
12373
  children: currencySymbol
12054
12374
  }
12055
12375
  ),
12056
- /* @__PURE__ */ jsx162(
12376
+ /* @__PURE__ */ jsx172(
12057
12377
  "input",
12058
12378
  {
12059
12379
  type: "text",
@@ -12069,12 +12389,12 @@ function BuyWithCard({
12069
12389
  }
12070
12390
  )
12071
12391
  ] }) }),
12072
- quotesLoading ? /* @__PURE__ */ jsx162("div", { className: "uf-flex uf-justify-center", children: /* @__PURE__ */ jsx162("div", { className: "uf-h-4 uf-bg-muted uf-rounded uf-w-40 uf-animate-pulse" }) }) : /* @__PURE__ */ jsxs10("div", { className: "uf-text-sm uf-text-muted-foreground uf-font-normal", children: [
12392
+ quotesLoading ? /* @__PURE__ */ jsx172("div", { className: "uf-flex uf-justify-center", children: /* @__PURE__ */ jsx172("div", { className: "uf-h-4 uf-bg-muted uf-rounded uf-w-40 uf-animate-pulse" }) }) : /* @__PURE__ */ jsxs12("div", { className: "uf-text-sm uf-text-muted-foreground uf-font-normal", children: [
12073
12393
  calculateUSDC(),
12074
12394
  " USDC (Perps)"
12075
12395
  ] })
12076
12396
  ] }),
12077
- /* @__PURE__ */ jsx162("div", { className: "uf-flex uf-gap-3 uf-justify-center", children: QUICK_AMOUNTS.map((quickAmount) => /* @__PURE__ */ jsxs10(
12397
+ /* @__PURE__ */ jsx172("div", { className: "uf-flex uf-gap-3 uf-justify-center", children: QUICK_AMOUNTS.map((quickAmount) => /* @__PURE__ */ jsxs12(
12078
12398
  "button",
12079
12399
  {
12080
12400
  onClick: () => handleQuickAmount(quickAmount),
@@ -12087,31 +12407,31 @@ function BuyWithCard({
12087
12407
  quickAmount
12088
12408
  )) })
12089
12409
  ] }),
12090
- /* @__PURE__ */ jsxs10("div", { className: "uf-mb-6", children: [
12091
- /* @__PURE__ */ jsxs10("div", { className: "uf-flex uf-items-center uf-justify-between uf-text-xs uf-font-medium uf-mb-2 uf-px-1", children: [
12092
- /* @__PURE__ */ jsx162("span", { className: "uf-text-foreground", children: "Provider" }),
12093
- quotes.length > 0 && !quotesLoading && /* @__PURE__ */ jsxs10("span", { className: "uf-text-[10px] uf-text-foreground uf-font-normal", children: [
12410
+ /* @__PURE__ */ jsxs12("div", { className: "uf-mb-6", children: [
12411
+ /* @__PURE__ */ jsxs12("div", { className: "uf-flex uf-items-center uf-justify-between uf-text-xs uf-font-medium uf-mb-2 uf-px-1", children: [
12412
+ /* @__PURE__ */ jsx172("span", { className: "uf-text-foreground", children: "Provider" }),
12413
+ quotes.length > 0 && !quotesLoading && /* @__PURE__ */ jsxs12("span", { className: "uf-text-[10px] uf-text-foreground uf-font-normal", children: [
12094
12414
  "Refreshing in ",
12095
12415
  countdown,
12096
12416
  "s"
12097
12417
  ] })
12098
12418
  ] }),
12099
- /* @__PURE__ */ jsx162(
12419
+ /* @__PURE__ */ jsx172(
12100
12420
  "button",
12101
12421
  {
12102
12422
  onClick: () => handleViewChange("quotes"),
12103
12423
  disabled: quotesLoading || quotes.length === 0,
12104
12424
  className: "uf-w-full uf-bg-secondary hover:uf-bg-accent uf-transition-colors uf-rounded-xl uf-p-4 uf-group disabled:uf-opacity-50 disabled:uf-cursor-not-allowed",
12105
- children: quotesLoading ? /* @__PURE__ */ jsxs10("div", { className: "uf-text-left uf-w-full uf-animate-pulse", children: [
12106
- /* @__PURE__ */ jsx162("div", { className: "uf-h-3 uf-bg-muted uf-rounded uf-w-28 uf-mb-3" }),
12107
- /* @__PURE__ */ jsxs10("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
12108
- /* @__PURE__ */ jsx162("div", { className: "uf-w-8 uf-h-8 uf-bg-muted uf-rounded-full" }),
12109
- /* @__PURE__ */ jsx162("div", { className: "uf-h-4 uf-bg-muted uf-rounded uf-w-32" })
12425
+ children: quotesLoading ? /* @__PURE__ */ jsxs12("div", { className: "uf-text-left uf-w-full uf-animate-pulse", children: [
12426
+ /* @__PURE__ */ jsx172("div", { className: "uf-h-3 uf-bg-muted uf-rounded uf-w-28 uf-mb-3" }),
12427
+ /* @__PURE__ */ jsxs12("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
12428
+ /* @__PURE__ */ jsx172("div", { className: "uf-w-8 uf-h-8 uf-bg-muted uf-rounded-full" }),
12429
+ /* @__PURE__ */ jsx172("div", { className: "uf-h-4 uf-bg-muted uf-rounded uf-w-32" })
12110
12430
  ] })
12111
- ] }) : /* @__PURE__ */ jsxs10("div", { className: "uf-w-full uf-text-left", children: [
12112
- isAutoSelected && /* @__PURE__ */ jsx162("div", { className: "uf-text-xs uf-text-muted-foreground uf-font-normal uf-mb-2", children: "Auto-picked for you" }),
12113
- selectedProvider && /* @__PURE__ */ jsxs10("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
12114
- /* @__PURE__ */ jsx162(
12431
+ ] }) : /* @__PURE__ */ jsxs12("div", { className: "uf-w-full uf-text-left", children: [
12432
+ isAutoSelected && /* @__PURE__ */ jsx172("div", { className: "uf-text-xs uf-text-muted-foreground uf-font-normal uf-mb-2", children: "Auto-picked for you" }),
12433
+ selectedProvider && /* @__PURE__ */ jsxs12("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
12434
+ /* @__PURE__ */ jsx172(
12115
12435
  "img",
12116
12436
  {
12117
12437
  src: selectedProvider.icon_url,
@@ -12121,22 +12441,22 @@ function BuyWithCard({
12121
12441
  className: "uf-rounded-full uf-flex-shrink-0"
12122
12442
  }
12123
12443
  ),
12124
- /* @__PURE__ */ jsxs10("div", { className: "uf-flex-1 uf-min-w-0", children: [
12125
- /* @__PURE__ */ jsx162("div", { className: "uf-text-sm uf-text-foreground uf-font-medium", children: selectedProvider.service_provider_display_name }),
12126
- /* @__PURE__ */ jsxs10("div", { className: "uf-flex uf-items-center uf-gap-1.5 uf-mt-0.5", children: [
12127
- isAutoSelected && /* @__PURE__ */ jsx162("span", { className: "uf-text-[10px] uf-text-green-400 uf-font-normal", children: "Best price" }),
12128
- isAutoSelected && selectedProvider.low_kyc === false && /* @__PURE__ */ jsx162("span", { className: "uf-text-[10px] uf-text-muted-foreground", children: "\u2022" }),
12129
- selectedProvider.low_kyc === false && /* @__PURE__ */ jsx162("span", { className: "uf-text-[10px] uf-text-muted-foreground uf-font-normal", children: "No document upload" })
12444
+ /* @__PURE__ */ jsxs12("div", { className: "uf-flex-1 uf-min-w-0", children: [
12445
+ /* @__PURE__ */ jsx172("div", { className: "uf-text-sm uf-text-foreground uf-font-medium", children: selectedProvider.service_provider_display_name }),
12446
+ /* @__PURE__ */ jsxs12("div", { className: "uf-flex uf-items-center uf-gap-1.5 uf-mt-0.5", children: [
12447
+ isAutoSelected && /* @__PURE__ */ jsx172("span", { className: "uf-text-[10px] uf-text-green-400 uf-font-normal", children: "Best price" }),
12448
+ isAutoSelected && selectedProvider.low_kyc === false && /* @__PURE__ */ jsx172("span", { className: "uf-text-[10px] uf-text-muted-foreground", children: "\u2022" }),
12449
+ selectedProvider.low_kyc === false && /* @__PURE__ */ jsx172("span", { className: "uf-text-[10px] uf-text-muted-foreground uf-font-normal", children: "No document upload" })
12130
12450
  ] })
12131
12451
  ] }),
12132
- quotes.length > 0 && /* @__PURE__ */ jsx162(ChevronRight, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground group-hover:uf-text-foreground uf-transition-colors uf-flex-shrink-0" })
12452
+ quotes.length > 0 && /* @__PURE__ */ jsx172(ChevronRight, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground group-hover:uf-text-foreground uf-transition-colors uf-flex-shrink-0" })
12133
12453
  ] })
12134
12454
  ] })
12135
12455
  }
12136
12456
  ),
12137
- quotesError && /* @__PURE__ */ jsx162("div", { className: "uf-text-xs uf-text-red-400 uf-mt-2 uf-px-1", children: quotesError })
12457
+ quotesError && /* @__PURE__ */ jsx172("div", { className: "uf-text-xs uf-text-red-400 uf-mt-2 uf-px-1", children: quotesError })
12138
12458
  ] }),
12139
- /* @__PURE__ */ jsx162(
12459
+ /* @__PURE__ */ jsx172(
12140
12460
  "button",
12141
12461
  {
12142
12462
  onClick: handleContinue,
@@ -12151,15 +12471,15 @@ function BuyWithCard({
12151
12471
  ]
12152
12472
  }
12153
12473
  ),
12154
- /* @__PURE__ */ jsx162(
12474
+ /* @__PURE__ */ jsx172(
12155
12475
  "div",
12156
12476
  {
12157
12477
  className: `uf-transition-all uf-duration-300 ${showQuotesView && !showOnrampView ? "uf-opacity-100" : "uf-opacity-0 uf-pointer-events-none uf-absolute uf-inset-0"}`,
12158
- children: /* @__PURE__ */ jsx162("div", { className: "uf-space-y-2 uf-pt-2", children: sortedQuotes.map((quote, index2) => {
12478
+ children: /* @__PURE__ */ jsx172("div", { className: "uf-space-y-2 uf-pt-2", children: sortedQuotes.map((quote, index2) => {
12159
12479
  const badges = getProviderBadges(quote, sortedQuotes);
12160
12480
  const displayName = quote.service_provider_display_name;
12161
12481
  const isSelected = selectedProvider?.service_provider === quote.service_provider;
12162
- return /* @__PURE__ */ jsxs10(
12482
+ return /* @__PURE__ */ jsxs12(
12163
12483
  "button",
12164
12484
  {
12165
12485
  onClick: () => {
@@ -12172,8 +12492,8 @@ function BuyWithCard({
12172
12492
  },
12173
12493
  className: `uf-w-full uf-bg-secondary hover:uf-bg-accent uf-transition-colors uf-rounded-xl uf-p-3 uf-flex uf-items-center uf-justify-between uf-group ${isSelected ? "uf-ring-2 uf-ring-inset uf-ring-primary" : ""}`,
12174
12494
  children: [
12175
- /* @__PURE__ */ jsxs10("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
12176
- /* @__PURE__ */ jsx162("div", { className: "uf-w-10 uf-h-10 uf-flex uf-items-center uf-justify-center uf-flex-shrink-0", children: /* @__PURE__ */ jsx162(
12495
+ /* @__PURE__ */ jsxs12("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
12496
+ /* @__PURE__ */ jsx172("div", { className: "uf-w-10 uf-h-10 uf-flex uf-items-center uf-justify-center uf-flex-shrink-0", children: /* @__PURE__ */ jsx172(
12177
12497
  "img",
12178
12498
  {
12179
12499
  src: quote.icon_url,
@@ -12183,10 +12503,10 @@ function BuyWithCard({
12183
12503
  className: "uf-rounded-full"
12184
12504
  }
12185
12505
  ) }),
12186
- /* @__PURE__ */ jsxs10("div", { className: "uf-text-left", children: [
12187
- /* @__PURE__ */ jsx162("div", { className: "uf-text-sm uf-font-medium uf-text-foreground", children: displayName }),
12188
- /* @__PURE__ */ jsxs10("div", { className: "uf-flex uf-items-center uf-gap-1.5 uf-mt-0.5", children: [
12189
- badges.map((badge, i) => /* @__PURE__ */ jsxs10(
12506
+ /* @__PURE__ */ jsxs12("div", { className: "uf-text-left", children: [
12507
+ /* @__PURE__ */ jsx172("div", { className: "uf-text-sm uf-font-medium uf-text-foreground", children: displayName }),
12508
+ /* @__PURE__ */ jsxs12("div", { className: "uf-flex uf-items-center uf-gap-1.5 uf-mt-0.5", children: [
12509
+ badges.map((badge, i) => /* @__PURE__ */ jsxs12(
12190
12510
  "span",
12191
12511
  {
12192
12512
  className: "uf-text-[10px] uf-text-green-400 uf-font-normal",
@@ -12197,17 +12517,17 @@ function BuyWithCard({
12197
12517
  },
12198
12518
  i
12199
12519
  )),
12200
- quote.low_kyc === false && badges.length > 0 && /* @__PURE__ */ jsx162("span", { className: "uf-text-[10px] uf-text-muted-foreground", children: "\u2022" }),
12201
- quote.low_kyc === false && /* @__PURE__ */ jsx162("span", { className: "uf-text-[10px] uf-text-muted-foreground uf-font-normal", children: "No document upload" })
12520
+ quote.low_kyc === false && badges.length > 0 && /* @__PURE__ */ jsx172("span", { className: "uf-text-[10px] uf-text-muted-foreground", children: "\u2022" }),
12521
+ quote.low_kyc === false && /* @__PURE__ */ jsx172("span", { className: "uf-text-[10px] uf-text-muted-foreground uf-font-normal", children: "No document upload" })
12202
12522
  ] })
12203
12523
  ] })
12204
12524
  ] }),
12205
- /* @__PURE__ */ jsxs10("div", { className: "uf-text-right", children: [
12206
- /* @__PURE__ */ jsxs10("div", { className: "uf-text-sm uf-font-medium uf-text-foreground", children: [
12525
+ /* @__PURE__ */ jsxs12("div", { className: "uf-text-right", children: [
12526
+ /* @__PURE__ */ jsxs12("div", { className: "uf-text-sm uf-font-medium uf-text-foreground", children: [
12207
12527
  quote.destination_amount.toFixed(2),
12208
12528
  " USDC"
12209
12529
  ] }),
12210
- /* @__PURE__ */ jsxs10("div", { className: "uf-text-xs uf-text-muted-foreground uf-font-normal", children: [
12530
+ /* @__PURE__ */ jsxs12("div", { className: "uf-text-xs uf-text-muted-foreground uf-font-normal", children: [
12211
12531
  currencySymbol,
12212
12532
  " ",
12213
12533
  amount
@@ -12220,12 +12540,12 @@ function BuyWithCard({
12220
12540
  }) })
12221
12541
  }
12222
12542
  ),
12223
- /* @__PURE__ */ jsx162(
12543
+ /* @__PURE__ */ jsx172(
12224
12544
  "div",
12225
12545
  {
12226
12546
  className: `uf-transition-all uf-duration-300 ${showOnrampView ? "uf-opacity-100" : "uf-opacity-0 uf-pointer-events-none uf-absolute uf-inset-0"}`,
12227
- children: onrampSession && /* @__PURE__ */ jsxs10("div", { className: "uf-flex uf-flex-col uf-items-center uf-pt-6 uf-pb-4 uf-px-2", children: [
12228
- /* @__PURE__ */ jsx162("div", { className: "uf-mb-6", children: /* @__PURE__ */ jsx162(
12547
+ children: onrampSession && /* @__PURE__ */ jsxs12("div", { className: "uf-flex uf-flex-col uf-items-center uf-pt-6 uf-pb-4 uf-px-2", children: [
12548
+ /* @__PURE__ */ jsx172("div", { className: "uf-mb-6", children: /* @__PURE__ */ jsx172(
12229
12549
  "img",
12230
12550
  {
12231
12551
  src: onrampSession.provider.icon_url,
@@ -12235,88 +12555,79 @@ function BuyWithCard({
12235
12555
  className: "uf-rounded-2xl"
12236
12556
  }
12237
12557
  ) }),
12238
- /* @__PURE__ */ jsx162("h2", { className: "uf-text-xl uf-font-medium uf-text-foreground uf-mb-2", children: t2.onramp.completeTransaction.replace(
12558
+ /* @__PURE__ */ jsx172("h2", { className: "uf-text-xl uf-font-medium uf-text-foreground uf-mb-2", children: t2.onramp.completeTransaction.replace(
12239
12559
  "{{provider}}",
12240
12560
  onrampSession.provider.service_provider_display_name
12241
12561
  ) }),
12242
- /* @__PURE__ */ jsx162("p", { className: "uf-text-sm uf-text-muted-foreground uf-mb-8", children: t2.onramp.canCloseModal }),
12243
- /* @__PURE__ */ jsx162("div", { className: "uf-w-full uf-bg-secondary uf-rounded-xl uf-p-4 uf-mb-4", children: /* @__PURE__ */ jsxs10("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
12244
- /* @__PURE__ */ jsxs10("div", { className: "uf-flex-1 uf-flex uf-flex-col uf-items-center", children: [
12245
- /* @__PURE__ */ jsx162("div", { className: "uf-flex uf-items-center uf-gap-2 uf-mb-1", children: /* @__PURE__ */ jsx162(
12562
+ /* @__PURE__ */ jsx172("p", { className: "uf-text-sm uf-text-muted-foreground uf-mb-8", children: t2.onramp.canCloseModal }),
12563
+ /* @__PURE__ */ jsx172("div", { className: "uf-w-full uf-bg-secondary uf-rounded-xl uf-p-4 uf-mb-4", children: /* @__PURE__ */ jsxs12("div", { className: "uf-flex uf-items-center uf-justify-center", children: [
12564
+ /* @__PURE__ */ jsxs12("div", { className: "uf-flex uf-flex-col uf-items-center uf-min-w-[72px]", children: [
12565
+ /* @__PURE__ */ jsx172("div", { className: "uf-h-8 uf-flex uf-items-center uf-justify-center uf-mb-1.5", children: /* @__PURE__ */ jsx172(
12246
12566
  "img",
12247
12567
  {
12248
- src: getIconUrl(
12249
- `/icons/currencies/${onrampSession.sourceCurrency.toLowerCase()}.svg`
12568
+ src: getIconUrlWithCdn(
12569
+ `/icons/currencies/svg/${onrampSession.sourceCurrency.toLowerCase()}.svg`,
12570
+ assetCdnUrl
12250
12571
  ),
12251
12572
  alt: onrampSession.sourceCurrency.toUpperCase(),
12252
- width: 28,
12253
- height: 28,
12254
- className: "uf-rounded-full"
12573
+ className: "uf-w-7 uf-h-7 uf-rounded-full"
12255
12574
  }
12256
12575
  ) }),
12257
- /* @__PURE__ */ jsx162("span", { className: "uf-text-[10px] uf-text-muted-foreground", children: t2.onramp.youUse }),
12258
- /* @__PURE__ */ jsx162("span", { className: "uf-text-sm uf-font-medium uf-text-foreground", children: onrampSession.sourceCurrency.toUpperCase() })
12576
+ /* @__PURE__ */ jsx172("span", { className: "uf-text-[10px] uf-text-muted-foreground uf-text-center", children: t2.onramp.youUse }),
12577
+ /* @__PURE__ */ jsx172("span", { className: "uf-text-sm uf-font-medium uf-text-foreground uf-text-center", children: onrampSession.sourceCurrency.toUpperCase() })
12259
12578
  ] }),
12260
- /* @__PURE__ */ jsx162("div", { className: "uf-text-muted-foreground uf-flex-shrink-0", children: /* @__PURE__ */ jsx162(ChevronRight, { className: "uf-w-5 uf-h-5" }) }),
12261
- /* @__PURE__ */ jsxs10("div", { className: "uf-flex-1 uf-flex uf-flex-col uf-items-center", children: [
12262
- /* @__PURE__ */ jsx162("div", { className: "uf-flex uf-items-center uf-gap-2 uf-mb-1", children: /* @__PURE__ */ jsxs10("div", { className: "uf-relative", children: [
12263
- /* @__PURE__ */ jsx162(
12579
+ /* @__PURE__ */ jsx172("div", { className: "uf-text-muted-foreground uf-px-1 uf-self-start uf-pt-2", children: /* @__PURE__ */ jsx172(ChevronRight, { className: "uf-w-4 uf-h-4" }) }),
12580
+ /* @__PURE__ */ jsxs12("div", { className: "uf-flex uf-flex-col uf-items-center uf-min-w-[72px]", children: [
12581
+ /* @__PURE__ */ jsx172("div", { className: "uf-h-8 uf-flex uf-items-center uf-justify-center uf-mb-1.5", children: /* @__PURE__ */ jsxs12("div", { className: "uf-relative", children: [
12582
+ /* @__PURE__ */ jsx172(
12264
12583
  "img",
12265
12584
  {
12266
- src: getIconUrl("/icons/tokens/usdc.svg"),
12585
+ src: getIconUrlWithCdn("/icons/tokens/svg/usdc.svg", assetCdnUrl),
12267
12586
  alt: "USDC",
12268
- width: 28,
12269
- height: 28,
12270
- className: "uf-rounded-full"
12587
+ className: "uf-w-7 uf-h-7 uf-rounded-full"
12271
12588
  }
12272
12589
  ),
12273
- /* @__PURE__ */ jsx162(
12590
+ /* @__PURE__ */ jsx172(
12274
12591
  "img",
12275
12592
  {
12276
- src: getIconUrl("/icons/networks/polygon.svg"),
12593
+ src: getIconUrlWithCdn("/icons/networks/svg/polygon.svg", assetCdnUrl),
12277
12594
  alt: "Polygon",
12278
- width: 14,
12279
- height: 14,
12280
- className: "uf-absolute uf--bottom-0.5 uf--right-0.5 uf-rounded-full"
12595
+ className: "uf-w-3.5 uf-h-3.5 uf-absolute -uf-bottom-0.5 -uf-right-0.5 uf-rounded-full"
12281
12596
  }
12282
12597
  )
12283
12598
  ] }) }),
12284
- /* @__PURE__ */ jsx162("span", { className: "uf-text-[10px] uf-text-muted-foreground", children: t2.onramp.youBuy }),
12285
- /* @__PURE__ */ jsx162("span", { className: "uf-text-sm uf-font-medium uf-text-foreground", children: "USDC" })
12599
+ /* @__PURE__ */ jsx172("span", { className: "uf-text-[10px] uf-text-muted-foreground uf-text-center", children: t2.onramp.youBuy }),
12600
+ /* @__PURE__ */ jsx172("span", { className: "uf-text-sm uf-font-medium uf-text-foreground uf-text-center", children: "USDC" })
12286
12601
  ] }),
12287
- /* @__PURE__ */ jsx162("div", { className: "uf-text-muted-foreground uf-flex-shrink-0", children: /* @__PURE__ */ jsx162(ChevronRight, { className: "uf-w-5 uf-h-5" }) }),
12288
- /* @__PURE__ */ jsxs10("div", { className: "uf-flex-1 uf-flex uf-flex-col uf-items-center", children: [
12289
- /* @__PURE__ */ jsx162("div", { className: "uf-flex uf-items-center uf-gap-2 uf-mb-1", children: /* @__PURE__ */ jsxs10("div", { className: "uf-relative", children: [
12290
- /* @__PURE__ */ jsx162(
12602
+ /* @__PURE__ */ jsx172("div", { className: "uf-text-muted-foreground uf-px-1 uf-self-start uf-pt-2", children: /* @__PURE__ */ jsx172(ChevronRight, { className: "uf-w-4 uf-h-4" }) }),
12603
+ /* @__PURE__ */ jsxs12("div", { className: "uf-flex uf-flex-col uf-items-center uf-min-w-[72px]", children: [
12604
+ /* @__PURE__ */ jsx172("div", { className: "uf-h-8 uf-flex uf-items-center uf-justify-center uf-mb-1.5", children: /* @__PURE__ */ jsxs12("div", { className: "uf-relative", children: [
12605
+ /* @__PURE__ */ jsx172(
12291
12606
  "img",
12292
12607
  {
12293
- src: destinationToken?.icon_url || getIconUrl("/icons/tokens/usdc.svg"),
12608
+ src: destinationToken?.icon_url || getIconUrlWithCdn("/icons/tokens/svg/usdc.svg", assetCdnUrl),
12294
12609
  alt: displayTokenSymbol,
12295
- width: 28,
12296
- height: 28,
12297
- className: "uf-rounded-full"
12610
+ className: "uf-w-7 uf-h-7 uf-rounded-full"
12298
12611
  }
12299
12612
  ),
12300
- destinationChain?.icon_url && /* @__PURE__ */ jsx162(
12613
+ destinationChain?.icon_url && /* @__PURE__ */ jsx172(
12301
12614
  "img",
12302
12615
  {
12303
12616
  src: destinationChain.icon_url,
12304
12617
  alt: destinationChain.chain_name,
12305
- width: 14,
12306
- height: 14,
12307
- className: "uf-absolute uf--bottom-0.5 uf--right-0.5 uf-rounded-full"
12618
+ className: "uf-w-3.5 uf-h-3.5 uf-absolute -uf-bottom-0.5 -uf-right-0.5 uf-rounded-full"
12308
12619
  }
12309
12620
  )
12310
12621
  ] }) }),
12311
- /* @__PURE__ */ jsx162("span", { className: "uf-text-[10px] uf-text-muted-foreground", children: t2.onramp.youReceive }),
12312
- /* @__PURE__ */ jsx162("span", { className: "uf-text-sm uf-font-medium uf-text-foreground", children: displayTokenSymbol })
12622
+ /* @__PURE__ */ jsx172("span", { className: "uf-text-[10px] uf-text-muted-foreground uf-text-center", children: t2.onramp.youReceive }),
12623
+ /* @__PURE__ */ jsx172("span", { className: "uf-text-sm uf-font-medium uf-text-foreground uf-text-center", children: displayTokenSymbol })
12313
12624
  ] })
12314
12625
  ] }) }),
12315
- /* @__PURE__ */ jsx162("div", { className: "uf-w-full uf-bg-secondary uf-rounded-xl uf-p-4", children: /* @__PURE__ */ jsx162("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", children: t2.onramp.intentAddressNote }) })
12626
+ /* @__PURE__ */ jsx172("div", { className: "uf-w-full uf-bg-secondary uf-rounded-xl uf-p-4", children: /* @__PURE__ */ jsx172("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", children: t2.onramp.intentAddressNote }) })
12316
12627
  ] })
12317
12628
  }
12318
12629
  ),
12319
- /* @__PURE__ */ jsx162(
12630
+ /* @__PURE__ */ jsx172(
12320
12631
  CurrencyModal,
12321
12632
  {
12322
12633
  open: showCurrencyModal,
@@ -12339,23 +12650,23 @@ function TransferCryptoButton({
12339
12650
  featuredTokens
12340
12651
  }) {
12341
12652
  const sortedTokens = featuredTokens ? [...featuredTokens].sort((a, b) => a.position - b.position) : [];
12342
- return /* @__PURE__ */ jsxs11(
12653
+ return /* @__PURE__ */ jsxs13(
12343
12654
  "button",
12344
12655
  {
12345
12656
  onClick,
12346
12657
  className: "uf-w-full uf-bg-secondary hover:uf-bg-accent uf-transition-colors uf-rounded-xl uf-p-3 uf-flex uf-items-center uf-justify-between uf-group",
12347
12658
  children: [
12348
- /* @__PURE__ */ jsxs11("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
12349
- /* @__PURE__ */ jsx172("div", { className: "uf-bg-muted uf-rounded-lg uf-p-2", children: /* @__PURE__ */ jsx172(Zap, { className: "uf-w-5 uf-h-5" }) }),
12350
- /* @__PURE__ */ jsxs11("div", { className: "uf-text-left", children: [
12351
- /* @__PURE__ */ jsx172("div", { className: "uf-text-sm uf-font-light uf-mb-0.5 uf-text-foreground", children: title }),
12352
- /* @__PURE__ */ jsx172("div", { className: "uf-text-muted-foreground uf-text-xs uf-font-light", children: subtitle })
12659
+ /* @__PURE__ */ jsxs13("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
12660
+ /* @__PURE__ */ jsx18("div", { className: "uf-bg-muted uf-rounded-lg uf-p-2", children: /* @__PURE__ */ jsx18(Zap, { className: "uf-w-5 uf-h-5" }) }),
12661
+ /* @__PURE__ */ jsxs13("div", { className: "uf-text-left", children: [
12662
+ /* @__PURE__ */ jsx18("div", { className: "uf-text-sm uf-font-light uf-mb-0.5 uf-text-foreground", children: title }),
12663
+ /* @__PURE__ */ jsx18("div", { className: "uf-text-muted-foreground uf-text-xs uf-font-light", children: subtitle })
12353
12664
  ] })
12354
12665
  ] }),
12355
- /* @__PURE__ */ jsxs11("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
12356
- /* @__PURE__ */ jsx172("div", { className: "uf-flex uf--space-x-2", children: sortedTokens.map((token) => {
12666
+ /* @__PURE__ */ jsxs13("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
12667
+ /* @__PURE__ */ jsx18("div", { className: "uf-flex uf--space-x-2", children: sortedTokens.map((token) => {
12357
12668
  const iconUrl = token.icon_urls.find((u) => u.format === "svg")?.url || token.icon_urls.find((u) => u.format === "png")?.url;
12358
- return /* @__PURE__ */ jsx172(
12669
+ return /* @__PURE__ */ jsx18(
12359
12670
  "img",
12360
12671
  {
12361
12672
  src: iconUrl,
@@ -12367,7 +12678,7 @@ function TransferCryptoButton({
12367
12678
  token.name
12368
12679
  );
12369
12680
  }) }),
12370
- /* @__PURE__ */ jsx172(ChevronRight, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground group-hover:uf-text-foreground uf-transition-colors" })
12681
+ /* @__PURE__ */ jsx18(ChevronRight, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground group-hover:uf-text-foreground uf-transition-colors" })
12371
12682
  ] })
12372
12683
  ]
12373
12684
  }
@@ -12379,23 +12690,23 @@ function DepositWithCardButton({
12379
12690
  subtitle,
12380
12691
  paymentNetworks
12381
12692
  }) {
12382
- return /* @__PURE__ */ jsxs12(
12693
+ return /* @__PURE__ */ jsxs14(
12383
12694
  "button",
12384
12695
  {
12385
12696
  onClick,
12386
12697
  className: "uf-w-full uf-bg-secondary hover:uf-bg-accent uf-transition-colors uf-rounded-xl uf-p-3 uf-flex uf-items-center uf-justify-between uf-group",
12387
12698
  children: [
12388
- /* @__PURE__ */ jsxs12("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
12389
- /* @__PURE__ */ jsx18("div", { className: "uf-bg-muted uf-rounded-lg uf-p-2", children: /* @__PURE__ */ jsx18(CreditCard, { className: "uf-w-5 uf-h-5" }) }),
12390
- /* @__PURE__ */ jsxs12("div", { className: "uf-text-left", children: [
12391
- /* @__PURE__ */ jsx18("div", { className: "uf-text-sm uf-font-light uf-mb-0.5 uf-text-foreground", children: title }),
12392
- /* @__PURE__ */ jsx18("div", { className: "uf-text-muted-foreground uf-text-xs uf-font-light", children: subtitle })
12699
+ /* @__PURE__ */ jsxs14("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
12700
+ /* @__PURE__ */ jsx19("div", { className: "uf-bg-muted uf-rounded-lg uf-p-2", children: /* @__PURE__ */ jsx19(CreditCard, { className: "uf-w-5 uf-h-5" }) }),
12701
+ /* @__PURE__ */ jsxs14("div", { className: "uf-text-left", children: [
12702
+ /* @__PURE__ */ jsx19("div", { className: "uf-text-sm uf-font-light uf-mb-0.5 uf-text-foreground", children: title }),
12703
+ /* @__PURE__ */ jsx19("div", { className: "uf-text-muted-foreground uf-text-xs uf-font-light", children: subtitle })
12393
12704
  ] })
12394
12705
  ] }),
12395
- /* @__PURE__ */ jsxs12("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
12396
- /* @__PURE__ */ jsx18("div", { className: "uf-flex uf-items-center uf-gap-1.5", children: paymentNetworks?.map((network) => {
12706
+ /* @__PURE__ */ jsxs14("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
12707
+ /* @__PURE__ */ jsx19("div", { className: "uf-flex uf-items-center uf-gap-1.5", children: paymentNetworks?.map((network) => {
12397
12708
  const iconUrl = network.icon_urls.find((u) => u.format === "svg")?.url || network.icon_urls.find((u) => u.format === "png")?.url;
12398
- return /* @__PURE__ */ jsx18(
12709
+ return /* @__PURE__ */ jsx19(
12399
12710
  "img",
12400
12711
  {
12401
12712
  src: iconUrl,
@@ -12407,7 +12718,7 @@ function DepositWithCardButton({
12407
12718
  network.name
12408
12719
  );
12409
12720
  }) }),
12410
- /* @__PURE__ */ jsx18(ChevronRight, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground group-hover:uf-text-foreground uf-transition-colors" })
12721
+ /* @__PURE__ */ jsx19(ChevronRight, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground group-hover:uf-text-foreground uf-transition-colors" })
12411
12722
  ] })
12412
12723
  ]
12413
12724
  }
@@ -12419,39 +12730,39 @@ function DepositTrackerButton({
12419
12730
  subtitle,
12420
12731
  badge
12421
12732
  }) {
12422
- return /* @__PURE__ */ jsxs13(
12733
+ return /* @__PURE__ */ jsxs15(
12423
12734
  "button",
12424
12735
  {
12425
12736
  onClick,
12426
12737
  className: "uf-w-full uf-bg-secondary hover:uf-bg-accent uf-transition-colors uf-rounded-xl uf-p-3 uf-flex uf-items-center uf-justify-between uf-group",
12427
12738
  children: [
12428
- /* @__PURE__ */ jsxs13("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
12429
- /* @__PURE__ */ jsxs13("div", { className: "uf-bg-muted uf-rounded-lg uf-p-2 uf-relative", children: [
12430
- /* @__PURE__ */ jsx19(Clock, { className: "uf-w-5 uf-h-5" }),
12431
- badge !== void 0 && badge > 0 && /* @__PURE__ */ jsx19("div", { className: "uf-absolute -uf-top-1 -uf-right-1 uf-bg-blue-500 uf-text-primary-foreground uf-text-[10px] uf-font-semibold uf-rounded-full uf-min-w-[18px] uf-h-[18px] uf-flex uf-items-center uf-justify-center uf-px-1", children: badge > 99 ? "99+" : badge })
12739
+ /* @__PURE__ */ jsxs15("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
12740
+ /* @__PURE__ */ jsxs15("div", { className: "uf-bg-muted uf-rounded-lg uf-p-2 uf-relative", children: [
12741
+ /* @__PURE__ */ jsx20(Clock, { className: "uf-w-5 uf-h-5" }),
12742
+ badge !== void 0 && badge > 0 && /* @__PURE__ */ jsx20("div", { className: "uf-absolute -uf-top-1 -uf-right-1 uf-bg-blue-500 uf-text-primary-foreground uf-text-[10px] uf-font-semibold uf-rounded-full uf-min-w-[18px] uf-h-[18px] uf-flex uf-items-center uf-justify-center uf-px-1", children: badge > 99 ? "99+" : badge })
12432
12743
  ] }),
12433
- /* @__PURE__ */ jsxs13("div", { className: "uf-text-left", children: [
12434
- /* @__PURE__ */ jsx19("div", { className: "uf-text-sm uf-font-light uf-mb-0.5 uf-text-foreground", children: title }),
12435
- /* @__PURE__ */ jsx19("div", { className: "uf-text-muted-foreground uf-text-xs uf-font-light", children: subtitle })
12744
+ /* @__PURE__ */ jsxs15("div", { className: "uf-text-left", children: [
12745
+ /* @__PURE__ */ jsx20("div", { className: "uf-text-sm uf-font-light uf-mb-0.5 uf-text-foreground", children: title }),
12746
+ /* @__PURE__ */ jsx20("div", { className: "uf-text-muted-foreground uf-text-xs uf-font-light", children: subtitle })
12436
12747
  ] })
12437
12748
  ] }),
12438
- /* @__PURE__ */ jsx19(ChevronRight, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground group-hover:uf-text-foreground uf-transition-colors" })
12749
+ /* @__PURE__ */ jsx20(ChevronRight, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground group-hover:uf-text-foreground uf-transition-colors" })
12439
12750
  ]
12440
12751
  }
12441
12752
  );
12442
12753
  }
12443
12754
  function SkeletonButton({ variant = "default" }) {
12444
- return /* @__PURE__ */ jsxs14("div", { className: "uf-w-full uf-bg-secondary uf-rounded-xl uf-p-3 uf-flex uf-items-center uf-justify-between uf-animate-pulse", children: [
12445
- /* @__PURE__ */ jsxs14("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
12446
- /* @__PURE__ */ jsx20("div", { className: "uf-bg-muted uf-rounded-lg uf-w-9 uf-h-9" }),
12447
- /* @__PURE__ */ jsxs14("div", { className: "uf-space-y-1.5", children: [
12448
- /* @__PURE__ */ jsx20("div", { className: "uf-h-3.5 uf-w-24 uf-bg-muted uf-rounded" }),
12449
- /* @__PURE__ */ jsx20("div", { className: "uf-h-3 uf-w-32 uf-bg-muted uf-rounded" })
12755
+ return /* @__PURE__ */ jsxs16("div", { className: "uf-w-full uf-bg-secondary uf-rounded-xl uf-p-3 uf-flex uf-items-center uf-justify-between uf-animate-pulse", children: [
12756
+ /* @__PURE__ */ jsxs16("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
12757
+ /* @__PURE__ */ jsx21("div", { className: "uf-bg-muted uf-rounded-lg uf-w-9 uf-h-9" }),
12758
+ /* @__PURE__ */ jsxs16("div", { className: "uf-space-y-1.5", children: [
12759
+ /* @__PURE__ */ jsx21("div", { className: "uf-h-3.5 uf-w-24 uf-bg-muted uf-rounded" }),
12760
+ /* @__PURE__ */ jsx21("div", { className: "uf-h-3 uf-w-32 uf-bg-muted uf-rounded" })
12450
12761
  ] })
12451
12762
  ] }),
12452
- /* @__PURE__ */ jsxs14("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
12453
- variant === "with-icons" && /* @__PURE__ */ jsx20("div", { className: "uf-flex uf--space-x-1", children: [1, 2, 3].map((i) => /* @__PURE__ */ jsx20("div", { className: "uf-w-5 uf-h-5 uf-rounded-full uf-bg-muted uf-border-2 uf-border-secondary" }, i)) }),
12454
- /* @__PURE__ */ jsx20(ChevronRight, { className: "uf-w-4 uf-h-4 uf-text-muted" })
12763
+ /* @__PURE__ */ jsxs16("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
12764
+ variant === "with-icons" && /* @__PURE__ */ jsx21("div", { className: "uf-flex uf--space-x-1", children: [1, 2, 3].map((i) => /* @__PURE__ */ jsx21("div", { className: "uf-w-5 uf-h-5 uf-rounded-full uf-bg-muted uf-border-2 uf-border-secondary" }, i)) }),
12765
+ /* @__PURE__ */ jsx21(ChevronRight, { className: "uf-w-4 uf-h-4 uf-text-muted" })
12455
12766
  ] })
12456
12767
  ] });
12457
12768
  }
@@ -12569,27 +12880,27 @@ function DepositModal({
12569
12880
  setQuotesCount(count3);
12570
12881
  }
12571
12882
  };
12572
- return /* @__PURE__ */ jsx20(ThemeProvider, { themeClass, children: /* @__PURE__ */ jsxs14(Dialog2, { open, onOpenChange: handleClose, children: [
12573
- /* @__PURE__ */ jsx20(
12883
+ return /* @__PURE__ */ jsx21(ThemeProvider, { themeClass, children: /* @__PURE__ */ jsxs16(Dialog2, { open, onOpenChange: handleClose, children: [
12884
+ /* @__PURE__ */ jsx21(
12574
12885
  DialogContent2,
12575
12886
  {
12576
12887
  className: `sm:uf-max-w-[400px] !uf-bg-card uf-border-secondary uf-text-foreground uf-p-0 uf-gap-0 uf-overflow-visible [&>button]:uf-hidden ${themeClass}`,
12577
12888
  onPointerDownOutside: (e) => e.preventDefault(),
12578
12889
  onInteractOutside: (e) => e.preventDefault(),
12579
- children: view === "main" ? /* @__PURE__ */ jsxs14(Fragment42, { children: [
12580
- /* @__PURE__ */ jsx20(
12890
+ children: view === "main" ? /* @__PURE__ */ jsxs16(Fragment42, { children: [
12891
+ /* @__PURE__ */ jsx21(
12581
12892
  DepositHeader,
12582
12893
  {
12583
12894
  title: modalTitle || "Deposit",
12584
12895
  onClose: handleClose
12585
12896
  }
12586
12897
  ),
12587
- /* @__PURE__ */ jsx20("div", { className: "uf-pb-4 uf-space-y-3", children: !projectConfig ? /* @__PURE__ */ jsxs14(Fragment42, { children: [
12588
- /* @__PURE__ */ jsx20(SkeletonButton, { variant: "with-icons" }),
12589
- /* @__PURE__ */ jsx20(SkeletonButton, { variant: "with-icons" }),
12590
- !hideDepositTracker && /* @__PURE__ */ jsx20(SkeletonButton, {})
12591
- ] }) : /* @__PURE__ */ jsxs14(Fragment42, { children: [
12592
- /* @__PURE__ */ jsx20(
12898
+ /* @__PURE__ */ jsx21("div", { className: "uf-pb-4 uf-space-y-3", children: !projectConfig ? /* @__PURE__ */ jsxs16(Fragment42, { children: [
12899
+ /* @__PURE__ */ jsx21(SkeletonButton, { variant: "with-icons" }),
12900
+ /* @__PURE__ */ jsx21(SkeletonButton, { variant: "with-icons" }),
12901
+ !hideDepositTracker && /* @__PURE__ */ jsx21(SkeletonButton, {})
12902
+ ] }) : /* @__PURE__ */ jsxs16(Fragment42, { children: [
12903
+ /* @__PURE__ */ jsx21(
12593
12904
  TransferCryptoButton,
12594
12905
  {
12595
12906
  onClick: () => setView("transfer"),
@@ -12598,7 +12909,7 @@ function DepositModal({
12598
12909
  featuredTokens: projectConfig.transfer_crypto.networks
12599
12910
  }
12600
12911
  ),
12601
- /* @__PURE__ */ jsx20(
12912
+ /* @__PURE__ */ jsx21(
12602
12913
  DepositWithCardButton,
12603
12914
  {
12604
12915
  onClick: () => setView("card"),
@@ -12607,7 +12918,7 @@ function DepositModal({
12607
12918
  paymentNetworks: projectConfig.payment_networks.networks
12608
12919
  }
12609
12920
  ),
12610
- !hideDepositTracker && /* @__PURE__ */ jsx20(
12921
+ !hideDepositTracker && /* @__PURE__ */ jsx21(
12611
12922
  DepositTrackerButton,
12612
12923
  {
12613
12924
  onClick: () => setDepositsModalOpen(true),
@@ -12617,8 +12928,8 @@ function DepositModal({
12617
12928
  }
12618
12929
  )
12619
12930
  ] }) })
12620
- ] }) : view === "transfer" ? /* @__PURE__ */ jsxs14(Fragment42, { children: [
12621
- /* @__PURE__ */ jsx20(
12931
+ ] }) : view === "transfer" ? /* @__PURE__ */ jsxs16(Fragment42, { children: [
12932
+ /* @__PURE__ */ jsx21(
12622
12933
  DepositHeader,
12623
12934
  {
12624
12935
  title: t3.transferCrypto.title,
@@ -12627,7 +12938,7 @@ function DepositModal({
12627
12938
  onClose: handleClose
12628
12939
  }
12629
12940
  ),
12630
- /* @__PURE__ */ jsx20(
12941
+ /* @__PURE__ */ jsx21(
12631
12942
  TransferCrypto,
12632
12943
  {
12633
12944
  userId,
@@ -12642,8 +12953,8 @@ function DepositModal({
12642
12953
  wallets
12643
12954
  }
12644
12955
  )
12645
- ] }) : /* @__PURE__ */ jsxs14(Fragment42, { children: [
12646
- /* @__PURE__ */ jsx20(
12956
+ ] }) : /* @__PURE__ */ jsxs16(Fragment42, { children: [
12957
+ /* @__PURE__ */ jsx21(
12647
12958
  DepositHeader,
12648
12959
  {
12649
12960
  title: cardView === "quotes" ? t3.quotes : modalTitle || "Deposit",
@@ -12653,7 +12964,7 @@ function DepositModal({
12653
12964
  badge: cardView === "quotes" ? { count: quotesCount } : void 0
12654
12965
  }
12655
12966
  ),
12656
- /* @__PURE__ */ jsx20(
12967
+ /* @__PURE__ */ jsx21(
12657
12968
  BuyWithCard,
12658
12969
  {
12659
12970
  userId,
@@ -12668,13 +12979,14 @@ function DepositModal({
12668
12979
  onDepositSuccess,
12669
12980
  onDepositError,
12670
12981
  themeClass,
12671
- wallets
12982
+ wallets,
12983
+ assetCdnUrl: projectConfig?.asset_cdn_url
12672
12984
  }
12673
12985
  )
12674
12986
  ] })
12675
12987
  }
12676
12988
  ),
12677
- /* @__PURE__ */ jsx20(
12989
+ /* @__PURE__ */ jsx21(
12678
12990
  DepositsModal,
12679
12991
  {
12680
12992
  open: depositsModalOpen,
@@ -12689,7 +13001,7 @@ function DepositModal({
12689
13001
  }
12690
13002
 
12691
13003
  // src/provider.tsx
12692
- import { jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
13004
+ import { jsx as jsx24, jsxs as jsxs17 } from "react/jsx-runtime";
12693
13005
  function UnifoldProvider2({
12694
13006
  children,
12695
13007
  publishableKey,
@@ -12781,7 +13093,7 @@ function UnifoldProvider2({
12781
13093
  }),
12782
13094
  [beginDeposit, closeDeposit, handleDepositSuccess, handleDepositError]
12783
13095
  );
12784
- return /* @__PURE__ */ jsx24(UnifoldProvider, { publishableKey, children: /* @__PURE__ */ jsxs15(ConnectContext.Provider, { value: contextValue, children: [
13096
+ return /* @__PURE__ */ jsx24(UnifoldProvider, { publishableKey, children: /* @__PURE__ */ jsxs17(ConnectContext.Provider, { value: contextValue, children: [
12785
13097
  children,
12786
13098
  depositConfig && /* @__PURE__ */ jsx24(
12787
13099
  DepositModal,
@@ -12834,7 +13146,9 @@ export {
12834
13146
 
12835
13147
  lucide-react/dist/esm/defaultAttributes.js:
12836
13148
  lucide-react/dist/esm/createLucideIcon.js:
13149
+ lucide-react/dist/esm/icons/arrow-down-circle.js:
12837
13150
  lucide-react/dist/esm/icons/arrow-left.js:
13151
+ lucide-react/dist/esm/icons/check-circle.js:
12838
13152
  lucide-react/dist/esm/icons/check.js:
12839
13153
  lucide-react/dist/esm/icons/chevron-down.js:
12840
13154
  lucide-react/dist/esm/icons/chevron-right.js: