@rhinestone/deposit-modal 0.3.0-alpha.14 → 0.3.0-alpha.16

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.
Files changed (35) hide show
  1. package/dist/{DepositModalReown-4I47KSPN.cjs → DepositModalReown-QRLLANTS.cjs} +7 -7
  2. package/dist/{DepositModalReown-DIUIB3MU.mjs → DepositModalReown-THU2QG76.mjs} +4 -4
  3. package/dist/{WithdrawModalReown-Y3NRAKXJ.cjs → WithdrawModalReown-PHWLYDZQ.cjs} +7 -7
  4. package/dist/{WithdrawModalReown-WRUEALDP.mjs → WithdrawModalReown-SSRJNUGZ.mjs} +4 -4
  5. package/dist/{constants-DqVn968d.d.ts → caip-CrQ2KKU-.d.cts} +11 -1
  6. package/dist/{constants-DqVn968d.d.cts → caip-CrQ2KKU-.d.ts} +11 -1
  7. package/dist/{chunk-SZIYS42B.mjs → chunk-6YRDD462.mjs} +63 -3
  8. package/dist/{chunk-N4XRQPVA.cjs → chunk-7W5M6WEE.cjs} +226 -203
  9. package/dist/{chunk-JTMGFWXO.mjs → chunk-E2K7XWMN.mjs} +2 -2
  10. package/dist/{chunk-2NUXDEEO.cjs → chunk-G5YDICEN.cjs} +93 -93
  11. package/dist/{chunk-7JIDIX27.cjs → chunk-MILJQWPT.cjs} +73 -13
  12. package/dist/{chunk-VD4WTEHP.mjs → chunk-PAK3NUGY.mjs} +5 -5
  13. package/dist/{chunk-3CYGTYMY.cjs → chunk-PXQBJMNF.cjs} +526 -451
  14. package/dist/{chunk-JTULAFMU.cjs → chunk-UD6QUZJS.cjs} +5 -5
  15. package/dist/{chunk-XG474KUR.mjs → chunk-YX3I7C2R.mjs} +101 -26
  16. package/dist/{chunk-4ZN726P5.mjs → chunk-Z7OJPEV2.mjs} +258 -235
  17. package/dist/constants.cjs +6 -2
  18. package/dist/constants.d.cts +1 -1
  19. package/dist/constants.d.ts +1 -1
  20. package/dist/constants.mjs +5 -1
  21. package/dist/deposit.cjs +4 -4
  22. package/dist/deposit.d.cts +2 -2
  23. package/dist/deposit.d.ts +2 -2
  24. package/dist/deposit.mjs +3 -3
  25. package/dist/index.cjs +9 -5
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.mjs +8 -4
  29. package/dist/{types-C8i2ebY1.d.cts → types-cXr3j4NV.d.cts} +26 -0
  30. package/dist/{types-C8i2ebY1.d.ts → types-cXr3j4NV.d.ts} +26 -0
  31. package/dist/withdraw.cjs +4 -4
  32. package/dist/withdraw.d.cts +2 -2
  33. package/dist/withdraw.d.ts +2 -2
  34. package/dist/withdraw.mjs +3 -3
  35. package/package.json +1 -1
@@ -10,8 +10,10 @@ import {
10
10
  getTokenAddress,
11
11
  getTokenDecimalsByAddress,
12
12
  getTokenIcon,
13
- getTokenSymbol
14
- } from "./chunk-SZIYS42B.mjs";
13
+ getTokenSymbol,
14
+ isSolanaCaip2,
15
+ parseEvmChainId
16
+ } from "./chunk-6YRDD462.mjs";
15
17
 
16
18
  // src/components/ui/Modal.tsx
17
19
  import {
@@ -214,6 +216,46 @@ var CardIcon = CreditCard;
214
216
  var BankIcon = Landmark;
215
217
  var AppleIcon = Apple;
216
218
 
219
+ // src/components/ui/Callout.tsx
220
+ import { jsx as jsx3, jsxs } from "react/jsx-runtime";
221
+ function CircleAlertIcon() {
222
+ return /* @__PURE__ */ jsx3(
223
+ "svg",
224
+ {
225
+ width: "16",
226
+ height: "16",
227
+ viewBox: "0 0 16 16",
228
+ fill: "none",
229
+ xmlns: "http://www.w3.org/2000/svg",
230
+ "aria-hidden": "true",
231
+ children: /* @__PURE__ */ jsx3(
232
+ "path",
233
+ {
234
+ d: "M10 5.99L6 9.99M6 5.99L10 9.99M14.66 7.99C14.66 11.68 11.68 14.66 8 14.66C4.31 14.66 1.33 11.68 1.33 7.99C1.33 4.31 4.31 1.33 8 1.33C11.68 1.33 14.66 4.31 14.66 7.99Z",
235
+ stroke: "currentColor",
236
+ strokeWidth: "1.33",
237
+ strokeLinecap: "round",
238
+ strokeLinejoin: "round"
239
+ }
240
+ )
241
+ }
242
+ );
243
+ }
244
+ function Callout({ variant = "error", children, role }) {
245
+ return /* @__PURE__ */ jsxs(
246
+ "div",
247
+ {
248
+ className: `rs-callout rs-callout--${variant}`,
249
+ role: role ?? (variant === "error" ? "alert" : "status"),
250
+ children: [
251
+ /* @__PURE__ */ jsx3("span", { className: "rs-callout-icon", children: variant === "error" ? /* @__PURE__ */ jsx3(CircleAlertIcon, {}) : /* @__PURE__ */ jsx3(AlertTriangleIcon, {}) }),
252
+ /* @__PURE__ */ jsx3("span", { className: "rs-callout-text", children })
253
+ ]
254
+ }
255
+ );
256
+ }
257
+ Callout.displayName = "Callout";
258
+
217
259
  // src/core/useLatestRef.ts
218
260
  import { useEffect as useEffect2, useRef as useRef2 } from "react";
219
261
  function useLatestRef(value) {
@@ -277,29 +319,6 @@ function debugError(enabled, scope, message, error, data) {
277
319
  console.error(`[deposit-modal:${scope}] ${message}`, payload);
278
320
  }
279
321
 
280
- // src/core/caip.ts
281
- var SOLANA_MAINNET_GENESIS = "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
282
- var SOLANA_MAINNET_CAIP2 = `solana:${SOLANA_MAINNET_GENESIS}`;
283
- function toEvmCaip2(chainId) {
284
- return `eip155:${chainId}`;
285
- }
286
- function targetChainToCaip2(targetChain) {
287
- return targetChain === "solana" ? SOLANA_MAINNET_CAIP2 : toEvmCaip2(targetChain);
288
- }
289
- function parseEvmChainId(value) {
290
- if (typeof value === "number" && Number.isFinite(value)) {
291
- return value;
292
- }
293
- if (typeof value !== "string") return null;
294
- const match = value.match(/^eip155:(\d+)$/);
295
- if (!match?.[1]) return null;
296
- const parsed = Number.parseInt(match[1], 10);
297
- return Number.isFinite(parsed) ? parsed : null;
298
- }
299
- function isSolanaCaip2(value) {
300
- return typeof value === "string" && value.startsWith("solana:");
301
- }
302
-
303
322
  // src/core/deposit-asset-helpers.ts
304
323
  function getAssetId(asset) {
305
324
  return `${asset.chainId}:${asset.token.toLowerCase()}`;
@@ -1305,6 +1324,33 @@ function formatUserError(raw) {
1305
1324
  return cleaned;
1306
1325
  }
1307
1326
 
1327
+ // src/core/public-client.ts
1328
+ import { createPublicClient, http } from "viem";
1329
+ import { hyperliquid } from "viem/chains";
1330
+ var clientCache = /* @__PURE__ */ new Map();
1331
+ function getPublicClient(chainId) {
1332
+ let client = clientCache.get(chainId);
1333
+ if (!client) {
1334
+ const chain = CHAIN_BY_ID[chainId];
1335
+ client = createPublicClient({
1336
+ chain,
1337
+ transport: http()
1338
+ });
1339
+ clientCache.set(chainId, client);
1340
+ }
1341
+ return client;
1342
+ }
1343
+ var hyperEvmClient;
1344
+ function getHyperEvmReadClient() {
1345
+ if (!hyperEvmClient) {
1346
+ hyperEvmClient = createPublicClient({
1347
+ chain: hyperliquid,
1348
+ transport: http()
1349
+ });
1350
+ }
1351
+ return hyperEvmClient;
1352
+ }
1353
+
1308
1354
  // src/core/theme.ts
1309
1355
  var RADIUS_SCALE = {
1310
1356
  none: { sm: "0", md: "0", lg: "0" },
@@ -1465,7 +1511,7 @@ function applyTheme(element, theme) {
1465
1511
  }
1466
1512
 
1467
1513
  // src/components/ui/BodyHeader.tsx
1468
- import { jsx as jsx3, jsxs } from "react/jsx-runtime";
1514
+ import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
1469
1515
  function BodyHeader({
1470
1516
  icon,
1471
1517
  title,
@@ -1477,19 +1523,19 @@ function BodyHeader({
1477
1523
  variant === "success" ? "rs-body-header-icon--success" : "",
1478
1524
  variant === "error" ? "rs-body-header-icon--error" : ""
1479
1525
  ].filter(Boolean).join(" ");
1480
- return /* @__PURE__ */ jsxs("div", { className: "rs-body-header", children: [
1481
- /* @__PURE__ */ jsx3("div", { className: iconClasses, children: icon }),
1482
- /* @__PURE__ */ jsxs("div", { className: "rs-body-header-text", children: [
1483
- /* @__PURE__ */ jsx3("h2", { className: "rs-body-header-title", children: title }),
1484
- subtitle && /* @__PURE__ */ jsx3("p", { className: "rs-body-header-subtitle", children: subtitle })
1526
+ return /* @__PURE__ */ jsxs2("div", { className: "rs-body-header", children: [
1527
+ /* @__PURE__ */ jsx4("div", { className: iconClasses, children: icon }),
1528
+ /* @__PURE__ */ jsxs2("div", { className: "rs-body-header-text", children: [
1529
+ /* @__PURE__ */ jsx4("h2", { className: "rs-body-header-title", children: title }),
1530
+ subtitle && /* @__PURE__ */ jsx4("p", { className: "rs-body-header-subtitle", children: subtitle })
1485
1531
  ] })
1486
1532
  ] });
1487
1533
  }
1488
1534
  BodyHeader.displayName = "BodyHeader";
1489
1535
 
1490
1536
  // src/components/ui/PoweredBy.tsx
1491
- import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
1492
- var rhinestoneLogo = /* @__PURE__ */ jsxs2(
1537
+ import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
1538
+ var rhinestoneLogo = /* @__PURE__ */ jsxs3(
1493
1539
  "svg",
1494
1540
  {
1495
1541
  className: "rs-powered-by-logo",
@@ -1498,8 +1544,8 @@ var rhinestoneLogo = /* @__PURE__ */ jsxs2(
1498
1544
  xmlns: "http://www.w3.org/2000/svg",
1499
1545
  "aria-hidden": "true",
1500
1546
  children: [
1501
- /* @__PURE__ */ jsxs2("g", { fill: "currentColor", clipPath: "url(#rs-pb-clip)", children: [
1502
- /* @__PURE__ */ jsx4(
1547
+ /* @__PURE__ */ jsxs3("g", { fill: "currentColor", clipPath: "url(#rs-pb-clip)", children: [
1548
+ /* @__PURE__ */ jsx5(
1503
1549
  "path",
1504
1550
  {
1505
1551
  opacity: "0.5",
@@ -1508,8 +1554,8 @@ var rhinestoneLogo = /* @__PURE__ */ jsxs2(
1508
1554
  d: "M10.48 14.82a4.3 4.3 0 0 1-2.9 1 4.3 4.3 0 0 1-2.4-1 25 25 0 0 1-2.08-1.95l-.13-.13c-.78-.78-1.46-1.46-1.94-2.08a4.3 4.3 0 0 1-1-2.9c.05-.96.48-1.72 1-2.4a25 25 0 0 1 1.94-2.08l.07-.06.06-.07a25 25 0 0 1 2.08-1.94 4.3 4.3 0 0 1 2.9-1c.96.05 1.73.48 2.4 1 .62.49 1.3 1.17 2.08 1.94l.13.13c.77.78 1.46 1.46 1.94 2.09a4.3 4.3 0 0 1 1 2.9 4.3 4.3 0 0 1-1 2.39c-.48.62-1.17 1.3-1.94 2.08l-.07.07-.06.06c-.78.78-1.46 1.46-2.08 1.94m-8.9-6.63c.07 1.02.9 1.86 2.56 3.52s2.5 2.5 3.53 2.56h.32c1.03-.06 1.86-.9 3.53-2.56s2.5-2.5 2.56-3.52v-.33c-.07-1.03-.9-1.86-2.56-3.52-1.67-1.67-2.5-2.5-3.53-2.56h-.32c-1.03.06-1.86.89-3.53 2.56-1.66 1.66-2.5 2.5-2.56 3.52z"
1509
1555
  }
1510
1556
  ),
1511
- /* @__PURE__ */ jsx4("path", { d: "M3.66 8.01q.02-.27.28-.35a4.6 4.6 0 0 0 2.53-1.48q.72-.8 1-2.05a.4.4 0 0 1 .36-.29c.17 0 .32.12.36.29a4.6 4.6 0 0 0 1.47 2.52c.55.49 1.21.8 2.06 1a.4.4 0 0 1 .28.36.4.4 0 0 1-.28.36 4.6 4.6 0 0 0-2.53 1.47 4.6 4.6 0 0 0-1 2.06.4.4 0 0 1-.36.28.4.4 0 0 1-.36-.28A4.6 4.6 0 0 0 6 9.38a4.6 4.6 0 0 0-2.06-1.01.4.4 0 0 1-.28-.36m26.46-3.44c0 .51.38.87.96.87s.95-.36.95-.87c0-.52-.37-.86-.95-.86s-.96.34-.96.86m.2 1.44v5.33h1.53V6.01zm-4.4 5.33h-1.55V3.88h1.54v2.98c.25-.5.8-1.01 1.6-1.01 1.29 0 1.87.83 1.87 2.28v3.21h-1.54V8.3c0-.77-.34-1.16-.92-1.16-.67 0-1 .53-1 1.3zm-4.45 0h-1.54V6.01h1.54l-.27 1.22a.1.1 0 0 0 .02.1.1.1 0 0 0 .1.04q.09 0 .1-.09c.24-.84.93-1.36 1.64-1.36q.4.01.57.05v1.42l-.67-.04c-.67 0-1.5.31-1.5 2zm13 0h-1.55V6.01h1.54l-.02.9a1.8 1.8 0 0 1 1.61-1.06c1.3 0 1.88.83 1.88 2.28v3.21H36.4V8.3c0-.77-.35-1.16-.93-1.16-.67 0-1 .53-1 1.3z" }),
1512
- /* @__PURE__ */ jsx4(
1557
+ /* @__PURE__ */ jsx5("path", { d: "M3.66 8.01q.02-.27.28-.35a4.6 4.6 0 0 0 2.53-1.48q.72-.8 1-2.05a.4.4 0 0 1 .36-.29c.17 0 .32.12.36.29a4.6 4.6 0 0 0 1.47 2.52c.55.49 1.21.8 2.06 1a.4.4 0 0 1 .28.36.4.4 0 0 1-.28.36 4.6 4.6 0 0 0-2.53 1.47 4.6 4.6 0 0 0-1 2.06.4.4 0 0 1-.36.28.4.4 0 0 1-.36-.28A4.6 4.6 0 0 0 6 9.38a4.6 4.6 0 0 0-2.06-1.01.4.4 0 0 1-.28-.36m26.46-3.44c0 .51.38.87.96.87s.95-.36.95-.87c0-.52-.37-.86-.95-.86s-.96.34-.96.86m.2 1.44v5.33h1.53V6.01zm-4.4 5.33h-1.55V3.88h1.54v2.98c.25-.5.8-1.01 1.6-1.01 1.29 0 1.87.83 1.87 2.28v3.21h-1.54V8.3c0-.77-.34-1.16-.92-1.16-.67 0-1 .53-1 1.3zm-4.45 0h-1.54V6.01h1.54l-.27 1.22a.1.1 0 0 0 .02.1.1.1 0 0 0 .1.04q.09 0 .1-.09c.24-.84.93-1.36 1.64-1.36q.4.01.57.05v1.42l-.67-.04c-.67 0-1.5.31-1.5 2zm13 0h-1.55V6.01h1.54l-.02.9a1.8 1.8 0 0 1 1.61-1.06c1.3 0 1.88.83 1.88 2.28v3.21H36.4V8.3c0-.77-.35-1.16-.93-1.16-.67 0-1 .53-1 1.3z" }),
1558
+ /* @__PURE__ */ jsx5(
1513
1559
  "path",
1514
1560
  {
1515
1561
  fillRule: "evenodd",
@@ -1517,8 +1563,8 @@ var rhinestoneLogo = /* @__PURE__ */ jsxs2(
1517
1563
  d: "M38.74 8.69c0 1.63 1.01 2.82 2.7 2.82 1.51 0 2.32-.82 2.55-1.73l-1.43-.26c-.1.37-.47.82-1.12.82-.67 0-1.23-.6-1.24-1.31H44q.05-.19.06-.56a2.55 2.55 0 0 0-2.6-2.63c-1.5 0-2.72 1.2-2.72 2.85m3.82-.58h-2.3a1.2 1.2 0 0 1 1.18-1.13c.6 0 1.14.45 1.12 1.13"
1518
1564
  }
1519
1565
  ),
1520
- /* @__PURE__ */ jsx4("path", { d: "M47.1 11.51c-1.2 0-2.33-.41-2.55-1.65l1.43-.21q.27.8 1.1.79c.5 0 .77-.24.77-.55 0-.27-.2-.45-.75-.55l-.5-.1c-1.1-.24-1.77-.74-1.77-1.63 0-1.06.91-1.78 2.25-1.78 1.26 0 2.2.59 2.32 1.68l-1.41.22c-.07-.52-.43-.82-.91-.82-.5 0-.75.26-.75.57 0 .25.17.42.63.51l.5.1c1.28.26 1.94.77 1.94 1.75 0 1.01-1.03 1.66-2.3 1.66" }),
1521
- /* @__PURE__ */ jsx4(
1566
+ /* @__PURE__ */ jsx5("path", { d: "M47.1 11.51c-1.2 0-2.33-.41-2.55-1.65l1.43-.21q.27.8 1.1.79c.5 0 .77-.24.77-.55 0-.27-.2-.45-.75-.55l-.5-.1c-1.1-.24-1.77-.74-1.77-1.63 0-1.06.91-1.78 2.25-1.78 1.26 0 2.2.59 2.32 1.68l-1.41.22c-.07-.52-.43-.82-.91-.82-.5 0-.75.26-.75.57 0 .25.17.42.63.51l.5.1c1.28.26 1.94.77 1.94 1.75 0 1.01-1.03 1.66-2.3 1.66" }),
1567
+ /* @__PURE__ */ jsx5(
1522
1568
  "path",
1523
1569
  {
1524
1570
  fillRule: "evenodd",
@@ -1526,8 +1572,8 @@ var rhinestoneLogo = /* @__PURE__ */ jsxs2(
1526
1572
  d: "M54.44 8.68c0 1.53 1.08 2.83 2.78 2.83s2.79-1.3 2.79-2.83c0-1.55-1.1-2.84-2.79-2.84-1.7 0-2.78 1.29-2.78 2.84m4.02 0c0 .98-.59 1.45-1.24 1.45-.64 0-1.23-.47-1.23-1.45 0-.97.59-1.47 1.23-1.47.65 0 1.24.48 1.24 1.47"
1527
1573
  }
1528
1574
  ),
1529
- /* @__PURE__ */ jsx4("path", { d: "M62.4 11.34h-1.53V6.01h1.54l-.02.9a1.8 1.8 0 0 1 1.6-1.06c1.3 0 1.89.83 1.89 2.28v3.21h-1.54V8.3c0-.77-.34-1.16-.93-1.16-.66 0-1 .53-1 1.3z" }),
1530
- /* @__PURE__ */ jsx4(
1575
+ /* @__PURE__ */ jsx5("path", { d: "M62.4 11.34h-1.53V6.01h1.54l-.02.9a1.8 1.8 0 0 1 1.6-1.06c1.3 0 1.89.83 1.89 2.28v3.21h-1.54V8.3c0-.77-.34-1.16-.93-1.16-.66 0-1 .53-1 1.3z" }),
1576
+ /* @__PURE__ */ jsx5(
1531
1577
  "path",
1532
1578
  {
1533
1579
  fillRule: "evenodd",
@@ -1535,16 +1581,16 @@ var rhinestoneLogo = /* @__PURE__ */ jsxs2(
1535
1581
  d: "M66.68 8.69c0 1.63 1.02 2.82 2.71 2.82 1.51 0 2.31-.82 2.55-1.73l-1.44-.26c-.1.37-.47.82-1.12.82-.67 0-1.23-.6-1.24-1.31h3.8q.06-.19.06-.56a2.55 2.55 0 0 0-2.6-2.63c-1.5 0-2.72 1.2-2.72 2.85m3.82-.58h-2.3a1.2 1.2 0 0 1 1.18-1.13c.6 0 1.15.45 1.12 1.13"
1536
1582
  }
1537
1583
  ),
1538
- /* @__PURE__ */ jsx4("path", { d: "M52.44 9.05V7.26h1.53V6h-1.53V4.42h-1.53V6h-1.1v1.26h1.1v1.85l.02.49a1.9 1.9 0 0 0 1.67 1.67c.22.03.47.03.62.03h.65V9.87h-.61c-.4 0-.59 0-.7-.12-.12-.11-.12-.3-.12-.64z" })
1584
+ /* @__PURE__ */ jsx5("path", { d: "M52.44 9.05V7.26h1.53V6h-1.53V4.42h-1.53V6h-1.1v1.26h1.1v1.85l.02.49a1.9 1.9 0 0 0 1.67 1.67c.22.03.47.03.62.03h.65V9.87h-.61c-.4 0-.59 0-.7-.12-.12-.11-.12-.3-.12-.64z" })
1539
1585
  ] }),
1540
- /* @__PURE__ */ jsx4("defs", { children: /* @__PURE__ */ jsx4("clipPath", { id: "rs-pb-clip", children: /* @__PURE__ */ jsx4("path", { fill: "#fff", d: "M0 0h72v16H0z" }) }) })
1586
+ /* @__PURE__ */ jsx5("defs", { children: /* @__PURE__ */ jsx5("clipPath", { id: "rs-pb-clip", children: /* @__PURE__ */ jsx5("path", { fill: "#fff", d: "M0 0h72v16H0z" }) }) })
1541
1587
  ]
1542
1588
  }
1543
1589
  );
1544
1590
  function PoweredBy() {
1545
- return /* @__PURE__ */ jsxs2("div", { className: "rs-powered-by", "aria-label": "Powered by Rhinestone", children: [
1546
- /* @__PURE__ */ jsx4("span", { children: "Powered by" }),
1547
- /* @__PURE__ */ jsx4(
1591
+ return /* @__PURE__ */ jsxs3("div", { className: "rs-powered-by", "aria-label": "Powered by Rhinestone", children: [
1592
+ /* @__PURE__ */ jsx5("span", { children: "Powered by" }),
1593
+ /* @__PURE__ */ jsx5(
1548
1594
  "a",
1549
1595
  {
1550
1596
  className: "rs-powered-by-link",
@@ -1559,16 +1605,16 @@ function PoweredBy() {
1559
1605
  PoweredBy.displayName = "PoweredBy";
1560
1606
 
1561
1607
  // src/components/ui/Spinner.tsx
1562
- import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
1608
+ import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
1563
1609
  function Spinner({ className }) {
1564
- return /* @__PURE__ */ jsxs3(
1610
+ return /* @__PURE__ */ jsxs4(
1565
1611
  "svg",
1566
1612
  {
1567
1613
  className: `rs-spinner ${className || ""}`,
1568
1614
  fill: "none",
1569
1615
  viewBox: "0 0 20 21",
1570
1616
  children: [
1571
- /* @__PURE__ */ jsx5(
1617
+ /* @__PURE__ */ jsx6(
1572
1618
  "path",
1573
1619
  {
1574
1620
  d: "M10 0.5C8.02 0.5 6.08 1.08 4.44 2.18C2.79 3.28 1.51 4.84 0.76 6.67C0.00 8.50 -0.19 10.51 0.19 12.45C0.57 14.39 1.53 16.17 2.92 17.57C4.32 18.96 6.10 19.92 8.04 20.30C9.98 20.69 11.99 20.49 13.82 19.73C15.65 18.98 17.21 17.70 18.31 16.05C19.41 14.41 20 12.47 20 10.5C20 7.84 18.94 5.30 17.07 3.42C15.19 1.55 12.65 0.5 10 0.5ZM10 17.77C8.56 17.77 7.15 17.34 5.95 16.54C4.76 15.74 3.83 14.61 3.28 13.28C2.73 11.95 2.58 10.49 2.86 9.08C3.14 7.67 3.84 6.37 4.85 5.35C5.87 4.34 7.17 3.64 8.58 3.36C9.99 3.08 11.45 3.23 12.78 3.78C14.11 4.33 15.24 5.26 16.04 6.45C16.84 7.65 17.27 9.06 17.27 10.5C17.27 12.42 16.50 14.27 15.14 15.64C13.77 17.00 11.92 17.77 10 17.77Z",
@@ -1576,7 +1622,7 @@ function Spinner({ className }) {
1576
1622
  opacity: 0.3
1577
1623
  }
1578
1624
  ),
1579
- /* @__PURE__ */ jsx5(
1625
+ /* @__PURE__ */ jsx6(
1580
1626
  "path",
1581
1627
  {
1582
1628
  d: "M10 3.22C11.74 3.22 13.42 3.84 14.75 4.95C16.08 6.07 16.96 7.61 17.25 9.31C17.30 9.64 17.46 9.94 17.71 10.15C17.96 10.37 18.28 10.49 18.62 10.5C18.82 10.50 19.01 10.45 19.20 10.37C19.38 10.29 19.54 10.16 19.67 10.01C19.80 9.86 19.89 9.68 19.95 9.49C20.00 9.30 20.01 9.10 19.98 8.90C19.59 6.56 18.38 4.42 16.55 2.88C14.72 1.34 12.40 0.5 10 0.5C7.59 0.5 5.27 1.34 3.44 2.88C1.61 4.42 0.40 6.56 0.01 8.90C-0.01 9.10 -0.00 9.30 0.04 9.49C0.10 9.68 0.19 9.86 0.32 10.01C0.45 10.16 0.61 10.29 0.79 10.37C0.98 10.45 1.17 10.50 1.37 10.5C1.71 10.49 2.03 10.37 2.28 10.15C2.53 9.94 2.69 9.64 2.74 9.31C3.03 7.61 3.91 6.07 5.24 4.95C6.57 3.84 8.25 3.22 10 3.22Z",
@@ -1589,7 +1635,7 @@ function Spinner({ className }) {
1589
1635
  }
1590
1636
 
1591
1637
  // src/components/ui/ListRow.tsx
1592
- import { Fragment, jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
1638
+ import { Fragment, jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
1593
1639
  function ListRow({
1594
1640
  leading,
1595
1641
  leadingMedia,
@@ -1603,14 +1649,14 @@ function ListRow({
1603
1649
  disabled,
1604
1650
  ...props
1605
1651
  }) {
1606
- const inner = /* @__PURE__ */ jsxs4(Fragment, { children: [
1607
- leadingMedia ? /* @__PURE__ */ jsx6("span", { className: "rs-list-row-leading rs-list-row-leading--media", children: /* @__PURE__ */ jsx6("img", { src: leadingMedia, alt: "" }) }) : leading ? /* @__PURE__ */ jsx6("span", { className: "rs-list-row-leading", children: leading }) : null,
1608
- /* @__PURE__ */ jsxs4("div", { className: "rs-list-row-body", children: [
1609
- /* @__PURE__ */ jsxs4("div", { className: "rs-list-row-text", children: [
1610
- /* @__PURE__ */ jsx6("span", { className: "rs-list-row-title", children: title }),
1611
- subtitle && /* @__PURE__ */ jsx6("span", { className: "rs-list-row-subtitle", children: subtitle })
1652
+ const inner = /* @__PURE__ */ jsxs5(Fragment, { children: [
1653
+ leadingMedia ? /* @__PURE__ */ jsx7("span", { className: "rs-list-row-leading rs-list-row-leading--media", children: /* @__PURE__ */ jsx7("img", { src: leadingMedia, alt: "" }) }) : leading ? /* @__PURE__ */ jsx7("span", { className: "rs-list-row-leading", children: leading }) : null,
1654
+ /* @__PURE__ */ jsxs5("div", { className: "rs-list-row-body", children: [
1655
+ /* @__PURE__ */ jsxs5("div", { className: "rs-list-row-text", children: [
1656
+ /* @__PURE__ */ jsx7("span", { className: "rs-list-row-title", children: title }),
1657
+ subtitle && /* @__PURE__ */ jsx7("span", { className: "rs-list-row-subtitle", children: subtitle })
1612
1658
  ] }),
1613
- action ? /* @__PURE__ */ jsx6(
1659
+ action ? /* @__PURE__ */ jsx7(
1614
1660
  "button",
1615
1661
  {
1616
1662
  type: "button",
@@ -1622,9 +1668,9 @@ function ListRow({
1622
1668
  },
1623
1669
  children: action.label
1624
1670
  }
1625
- ) : meta && /* @__PURE__ */ jsx6("div", { className: "rs-list-row-meta", children: meta })
1671
+ ) : meta && /* @__PURE__ */ jsx7("div", { className: "rs-list-row-meta", children: meta })
1626
1672
  ] }),
1627
- /* @__PURE__ */ jsx6("span", { className: "rs-list-row-chevron", children: trailing ?? /* @__PURE__ */ jsx6(ChevronRightIcon, {}) })
1673
+ /* @__PURE__ */ jsx7("span", { className: "rs-list-row-chevron", children: trailing ?? /* @__PURE__ */ jsx7(ChevronRightIcon, {}) })
1628
1674
  ] });
1629
1675
  if (action) {
1630
1676
  const handleKey = (e) => {
@@ -1634,7 +1680,7 @@ function ListRow({
1634
1680
  onClick?.(e);
1635
1681
  }
1636
1682
  };
1637
- return /* @__PURE__ */ jsx6(
1683
+ return /* @__PURE__ */ jsx7(
1638
1684
  "div",
1639
1685
  {
1640
1686
  className: `rs-list-row ${className}`.trim(),
@@ -1647,7 +1693,7 @@ function ListRow({
1647
1693
  }
1648
1694
  );
1649
1695
  }
1650
- return /* @__PURE__ */ jsx6(
1696
+ return /* @__PURE__ */ jsx7(
1651
1697
  "button",
1652
1698
  {
1653
1699
  type: "button",
@@ -1662,9 +1708,9 @@ function ListRow({
1662
1708
  ListRow.displayName = "ListRow";
1663
1709
 
1664
1710
  // src/components/ui/WalletBadgeIcons/RabbyIcon.tsx
1665
- import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
1711
+ import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
1666
1712
  function RabbyIcon() {
1667
- return /* @__PURE__ */ jsxs5(
1713
+ return /* @__PURE__ */ jsxs6(
1668
1714
  "svg",
1669
1715
  {
1670
1716
  width: "20",
@@ -1673,8 +1719,8 @@ function RabbyIcon() {
1673
1719
  fill: "none",
1674
1720
  xmlns: "http://www.w3.org/2000/svg",
1675
1721
  children: [
1676
- /* @__PURE__ */ jsxs5("g", { clipPath: "url(#rs-rabby-clip)", children: [
1677
- /* @__PURE__ */ jsx7(
1722
+ /* @__PURE__ */ jsxs6("g", { clipPath: "url(#rs-rabby-clip)", children: [
1723
+ /* @__PURE__ */ jsx8(
1678
1724
  "mask",
1679
1725
  {
1680
1726
  id: "rs-rabby-mask",
@@ -1684,7 +1730,7 @@ function RabbyIcon() {
1684
1730
  y: "0",
1685
1731
  width: "20",
1686
1732
  height: "20",
1687
- children: /* @__PURE__ */ jsx7(
1733
+ children: /* @__PURE__ */ jsx8(
1688
1734
  "path",
1689
1735
  {
1690
1736
  d: "M20 10C20 4.47 15.52 0 10 0C4.47 0 0 4.47 0 10C0 15.52 4.47 20 10 20C15.52 20 20 15.52 20 10Z",
@@ -1693,22 +1739,22 @@ function RabbyIcon() {
1693
1739
  )
1694
1740
  }
1695
1741
  ),
1696
- /* @__PURE__ */ jsxs5("g", { mask: "url(#rs-rabby-mask)", children: [
1697
- /* @__PURE__ */ jsx7(
1742
+ /* @__PURE__ */ jsxs6("g", { mask: "url(#rs-rabby-mask)", children: [
1743
+ /* @__PURE__ */ jsx8(
1698
1744
  "path",
1699
1745
  {
1700
1746
  d: "M20 10C20 4.47 15.52 0 10 0C4.47 0 0 4.47 0 10C0 15.52 4.47 20 10 20C15.52 20 20 15.52 20 10Z",
1701
1747
  fill: "#7084FF"
1702
1748
  }
1703
1749
  ),
1704
- /* @__PURE__ */ jsx7(
1750
+ /* @__PURE__ */ jsx8(
1705
1751
  "path",
1706
1752
  {
1707
1753
  d: "M17.25 10.86C17.82 9.57 14.98 5.97 12.26 4.47C10.55 3.31 8.77 3.47 8.41 3.98C7.62 5.10 11.03 6.05 13.32 7.16C12.83 7.37 12.36 7.76 12.09 8.25C11.24 7.31 9.37 6.51 7.18 7.16C5.70 7.59 4.47 8.62 3.99 10.18C3.85 10.11 3.70 10.09 3.54 10.10C3.39 10.11 3.24 10.16 3.11 10.25C2.98 10.33 2.87 10.45 2.80 10.58C2.72 10.72 2.69 10.87 2.69 11.03C2.69 11.55 3.10 11.96 3.62 11.96C3.71 11.96 4.01 11.90 4.01 11.90L8.77 11.93C6.87 14.96 5.36 15.41 5.36 15.93C5.36 16.46 6.80 16.32 7.34 16.12C9.93 15.18 12.71 12.26 13.19 11.42C15.19 11.67 16.87 11.70 17.25 10.86Z",
1708
1754
  fill: "url(#rs-rabby-grad0)"
1709
1755
  }
1710
1756
  ),
1711
- /* @__PURE__ */ jsx7(
1757
+ /* @__PURE__ */ jsx8(
1712
1758
  "path",
1713
1759
  {
1714
1760
  fillRule: "evenodd",
@@ -1717,7 +1763,7 @@ function RabbyIcon() {
1717
1763
  fill: "url(#rs-rabby-grad1)"
1718
1764
  }
1719
1765
  ),
1720
- /* @__PURE__ */ jsx7(
1766
+ /* @__PURE__ */ jsx8(
1721
1767
  "path",
1722
1768
  {
1723
1769
  fillRule: "evenodd",
@@ -1726,7 +1772,7 @@ function RabbyIcon() {
1726
1772
  fill: "url(#rs-rabby-grad2)"
1727
1773
  }
1728
1774
  ),
1729
- /* @__PURE__ */ jsx7(
1775
+ /* @__PURE__ */ jsx8(
1730
1776
  "path",
1731
1777
  {
1732
1778
  d: "M3.94 11.70C4.11 13.19 4.96 13.77 6.68 13.94C8.40 14.12 9.39 14.00 10.71 14.12C11.81 14.22 12.79 14.78 13.15 14.59C13.48 14.42 13.30 13.78 12.86 13.38C12.29 12.85 11.50 12.49 10.12 12.36C10.39 11.60 10.32 10.54 9.89 9.96C9.27 9.12 8.13 8.75 6.68 8.91C5.17 9.08 3.72 9.83 3.94 11.70Z",
@@ -1735,8 +1781,8 @@ function RabbyIcon() {
1735
1781
  )
1736
1782
  ] })
1737
1783
  ] }),
1738
- /* @__PURE__ */ jsxs5("defs", { children: [
1739
- /* @__PURE__ */ jsxs5(
1784
+ /* @__PURE__ */ jsxs6("defs", { children: [
1785
+ /* @__PURE__ */ jsxs6(
1740
1786
  "linearGradient",
1741
1787
  {
1742
1788
  id: "rs-rabby-grad0",
@@ -1746,12 +1792,12 @@ function RabbyIcon() {
1746
1792
  y2: "12.58",
1747
1793
  gradientUnits: "userSpaceOnUse",
1748
1794
  children: [
1749
- /* @__PURE__ */ jsx7("stop", { stopColor: "white" }),
1750
- /* @__PURE__ */ jsx7("stop", { offset: "1", stopColor: "white" })
1795
+ /* @__PURE__ */ jsx8("stop", { stopColor: "white" }),
1796
+ /* @__PURE__ */ jsx8("stop", { offset: "1", stopColor: "white" })
1751
1797
  ]
1752
1798
  }
1753
1799
  ),
1754
- /* @__PURE__ */ jsxs5(
1800
+ /* @__PURE__ */ jsxs6(
1755
1801
  "linearGradient",
1756
1802
  {
1757
1803
  id: "rs-rabby-grad1",
@@ -1761,12 +1807,12 @@ function RabbyIcon() {
1761
1807
  y2: "2.21",
1762
1808
  gradientUnits: "userSpaceOnUse",
1763
1809
  children: [
1764
- /* @__PURE__ */ jsx7("stop", { stopColor: "#8697FF" }),
1765
- /* @__PURE__ */ jsx7("stop", { offset: "1", stopColor: "#8697FF", stopOpacity: "0" })
1810
+ /* @__PURE__ */ jsx8("stop", { stopColor: "#8697FF" }),
1811
+ /* @__PURE__ */ jsx8("stop", { offset: "1", stopColor: "#8697FF", stopOpacity: "0" })
1766
1812
  ]
1767
1813
  }
1768
1814
  ),
1769
- /* @__PURE__ */ jsxs5(
1815
+ /* @__PURE__ */ jsxs6(
1770
1816
  "linearGradient",
1771
1817
  {
1772
1818
  id: "rs-rabby-grad2",
@@ -1776,12 +1822,12 @@ function RabbyIcon() {
1776
1822
  y2: "9.61",
1777
1823
  gradientUnits: "userSpaceOnUse",
1778
1824
  children: [
1779
- /* @__PURE__ */ jsx7("stop", { stopColor: "#8697FF" }),
1780
- /* @__PURE__ */ jsx7("stop", { offset: "1", stopColor: "#8697FF", stopOpacity: "0" })
1825
+ /* @__PURE__ */ jsx8("stop", { stopColor: "#8697FF" }),
1826
+ /* @__PURE__ */ jsx8("stop", { offset: "1", stopColor: "#8697FF", stopOpacity: "0" })
1781
1827
  ]
1782
1828
  }
1783
1829
  ),
1784
- /* @__PURE__ */ jsxs5(
1830
+ /* @__PURE__ */ jsxs6(
1785
1831
  "linearGradient",
1786
1832
  {
1787
1833
  id: "rs-rabby-grad3",
@@ -1791,12 +1837,12 @@ function RabbyIcon() {
1791
1837
  y2: "15.67",
1792
1838
  gradientUnits: "userSpaceOnUse",
1793
1839
  children: [
1794
- /* @__PURE__ */ jsx7("stop", { stopColor: "white" }),
1795
- /* @__PURE__ */ jsx7("stop", { offset: "0.98", stopColor: "#D1D8FF" })
1840
+ /* @__PURE__ */ jsx8("stop", { stopColor: "white" }),
1841
+ /* @__PURE__ */ jsx8("stop", { offset: "0.98", stopColor: "#D1D8FF" })
1796
1842
  ]
1797
1843
  }
1798
1844
  ),
1799
- /* @__PURE__ */ jsx7("clipPath", { id: "rs-rabby-clip", children: /* @__PURE__ */ jsx7("rect", { width: "20", height: "20", fill: "white" }) })
1845
+ /* @__PURE__ */ jsx8("clipPath", { id: "rs-rabby-clip", children: /* @__PURE__ */ jsx8("rect", { width: "20", height: "20", fill: "white" }) })
1800
1846
  ] })
1801
1847
  ]
1802
1848
  }
@@ -1804,9 +1850,9 @@ function RabbyIcon() {
1804
1850
  }
1805
1851
 
1806
1852
  // src/components/ui/WalletBadgeIcons/PhantomIcon.tsx
1807
- import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
1853
+ import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
1808
1854
  function PhantomIcon() {
1809
- return /* @__PURE__ */ jsxs6(
1855
+ return /* @__PURE__ */ jsxs7(
1810
1856
  "svg",
1811
1857
  {
1812
1858
  width: "20",
@@ -1815,14 +1861,14 @@ function PhantomIcon() {
1815
1861
  fill: "none",
1816
1862
  xmlns: "http://www.w3.org/2000/svg",
1817
1863
  children: [
1818
- /* @__PURE__ */ jsx8(
1864
+ /* @__PURE__ */ jsx9(
1819
1865
  "path",
1820
1866
  {
1821
1867
  d: "M15.18 0H4.81C2.15 0 0 2.15 0 4.81V15.18C0 17.84 2.15 20 4.81 20H15.18C17.84 20 20 17.84 20 15.18V4.81C20 2.15 17.84 0 15.18 0Z",
1822
1868
  fill: "#AB9FF2"
1823
1869
  }
1824
1870
  ),
1825
- /* @__PURE__ */ jsx8(
1871
+ /* @__PURE__ */ jsx9(
1826
1872
  "path",
1827
1873
  {
1828
1874
  fillRule: "evenodd",
@@ -1837,9 +1883,9 @@ function PhantomIcon() {
1837
1883
  }
1838
1884
 
1839
1885
  // src/components/ui/WalletBadgeIcons/WalletConnectIcon.tsx
1840
- import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
1886
+ import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
1841
1887
  function WalletConnectIcon() {
1842
- return /* @__PURE__ */ jsxs7(
1888
+ return /* @__PURE__ */ jsxs8(
1843
1889
  "svg",
1844
1890
  {
1845
1891
  width: "20",
@@ -1848,8 +1894,8 @@ function WalletConnectIcon() {
1848
1894
  fill: "none",
1849
1895
  xmlns: "http://www.w3.org/2000/svg",
1850
1896
  children: [
1851
- /* @__PURE__ */ jsx9("rect", { width: "20", height: "20", rx: "2.5", fill: "#3B99FC" }),
1852
- /* @__PURE__ */ jsx9(
1897
+ /* @__PURE__ */ jsx10("rect", { width: "20", height: "20", rx: "2.5", fill: "#3B99FC" }),
1898
+ /* @__PURE__ */ jsx10(
1853
1899
  "path",
1854
1900
  {
1855
1901
  d: "M6.18 7.96a5.36 5.36 0 0 1 7.64 0l.25.26a.26.26 0 0 1 0 .37l-.87.87a.13.13 0 0 1-.19 0l-.35-.35a3.74 3.74 0 0 0-5.32 0l-.38.37a.13.13 0 0 1-.19 0l-.86-.86a.26.26 0 0 1 0-.37l.27-.29Zm9.43 1.79.78.78a.26.26 0 0 1 0 .37l-3.54 3.54a.26.26 0 0 1-.37 0l-2.51-2.5a.07.07 0 0 0-.09 0l-2.51 2.5a.26.26 0 0 1-.37 0L3.46 10.9a.26.26 0 0 1 0-.37l.78-.78a.26.26 0 0 1 .37 0l2.5 2.5a.07.07 0 0 0 .1 0L9.72 9.75a.26.26 0 0 1 .37 0l2.5 2.5a.07.07 0 0 0 .1 0l2.5-2.5a.26.26 0 0 1 .37 0Z",
@@ -1862,9 +1908,9 @@ function WalletConnectIcon() {
1862
1908
  }
1863
1909
 
1864
1910
  // src/components/ui/WalletBadgeIcons/EthBadgeIcon.tsx
1865
- import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
1911
+ import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
1866
1912
  function EthBadgeIcon() {
1867
- return /* @__PURE__ */ jsxs8(
1913
+ return /* @__PURE__ */ jsxs9(
1868
1914
  "svg",
1869
1915
  {
1870
1916
  width: "20",
@@ -1873,28 +1919,28 @@ function EthBadgeIcon() {
1873
1919
  fill: "none",
1874
1920
  xmlns: "http://www.w3.org/2000/svg",
1875
1921
  children: [
1876
- /* @__PURE__ */ jsx10(
1922
+ /* @__PURE__ */ jsx11(
1877
1923
  "path",
1878
1924
  {
1879
1925
  d: "M9.99 19.93C15.48 19.93 19.93 15.48 19.93 9.99C19.93 4.51 15.48 0.06 9.99 0.06C4.51 0.06 0.06 4.51 0.06 9.99C0.06 15.48 4.51 19.93 9.99 19.93Z",
1880
1926
  fill: "#E3E3E3"
1881
1927
  }
1882
1928
  ),
1883
- /* @__PURE__ */ jsx10("path", { d: "M10.00 2.18L14.69 9.99L10.02 7.98L10.00 2.18Z", fill: "#2F3030" }),
1884
- /* @__PURE__ */ jsx10("path", { d: "M5.31 9.99L9.98 2.18L10.00 7.98L5.31 9.99Z", fill: "#828384" }),
1885
- /* @__PURE__ */ jsx10("path", { d: "M9.98 12.80L5.31 10.04L10.00 8.11L9.98 12.80Z", fill: "#343535" }),
1886
- /* @__PURE__ */ jsx10("path", { d: "M14.69 10.04L10.02 8.11L10.00 12.80L14.69 10.04Z", fill: "#131313" }),
1887
- /* @__PURE__ */ jsx10("path", { d: "M10.00 14.00L14.69 11.24L10.00 17.80V14.00Z", fill: "#2F3030" }),
1888
- /* @__PURE__ */ jsx10("path", { d: "M10.00 14.00L5.31 11.24L10.00 17.80V14.00Z", fill: "#828384" })
1929
+ /* @__PURE__ */ jsx11("path", { d: "M10.00 2.18L14.69 9.99L10.02 7.98L10.00 2.18Z", fill: "#2F3030" }),
1930
+ /* @__PURE__ */ jsx11("path", { d: "M5.31 9.99L9.98 2.18L10.00 7.98L5.31 9.99Z", fill: "#828384" }),
1931
+ /* @__PURE__ */ jsx11("path", { d: "M9.98 12.80L5.31 10.04L10.00 8.11L9.98 12.80Z", fill: "#343535" }),
1932
+ /* @__PURE__ */ jsx11("path", { d: "M14.69 10.04L10.02 8.11L10.00 12.80L14.69 10.04Z", fill: "#131313" }),
1933
+ /* @__PURE__ */ jsx11("path", { d: "M10.00 14.00L14.69 11.24L10.00 17.80V14.00Z", fill: "#2F3030" }),
1934
+ /* @__PURE__ */ jsx11("path", { d: "M10.00 14.00L5.31 11.24L10.00 17.80V14.00Z", fill: "#828384" })
1889
1935
  ]
1890
1936
  }
1891
1937
  );
1892
1938
  }
1893
1939
 
1894
1940
  // src/components/ui/WalletBadgeIcons/SolBadgeIcon.tsx
1895
- import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
1941
+ import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
1896
1942
  function SolBadgeIcon() {
1897
- return /* @__PURE__ */ jsxs9(
1943
+ return /* @__PURE__ */ jsxs10(
1898
1944
  "svg",
1899
1945
  {
1900
1946
  width: "20",
@@ -1903,8 +1949,8 @@ function SolBadgeIcon() {
1903
1949
  fill: "none",
1904
1950
  xmlns: "http://www.w3.org/2000/svg",
1905
1951
  children: [
1906
- /* @__PURE__ */ jsx11("rect", { width: "20", height: "20", rx: "10", fill: "#0C0C0C" }),
1907
- /* @__PURE__ */ jsx11(
1952
+ /* @__PURE__ */ jsx12("rect", { width: "20", height: "20", rx: "10", fill: "#0C0C0C" }),
1953
+ /* @__PURE__ */ jsx12(
1908
1954
  "path",
1909
1955
  {
1910
1956
  fillRule: "evenodd",
@@ -1913,7 +1959,7 @@ function SolBadgeIcon() {
1913
1959
  fill: "url(#rs-sol-badge-grad)"
1914
1960
  }
1915
1961
  ),
1916
- /* @__PURE__ */ jsx11("defs", { children: /* @__PURE__ */ jsxs9(
1962
+ /* @__PURE__ */ jsx12("defs", { children: /* @__PURE__ */ jsxs10(
1917
1963
  "linearGradient",
1918
1964
  {
1919
1965
  id: "rs-sol-badge-grad",
@@ -1923,8 +1969,8 @@ function SolBadgeIcon() {
1923
1969
  y2: "5.08",
1924
1970
  gradientUnits: "userSpaceOnUse",
1925
1971
  children: [
1926
- /* @__PURE__ */ jsx11("stop", { stopColor: "#CB4EE8" }),
1927
- /* @__PURE__ */ jsx11("stop", { offset: "1", stopColor: "#10F4B1" })
1972
+ /* @__PURE__ */ jsx12("stop", { stopColor: "#CB4EE8" }),
1973
+ /* @__PURE__ */ jsx12("stop", { offset: "1", stopColor: "#10F4B1" })
1928
1974
  ]
1929
1975
  }
1930
1976
  ) })
@@ -1934,9 +1980,9 @@ function SolBadgeIcon() {
1934
1980
  }
1935
1981
 
1936
1982
  // src/components/ui/WalletBadgeIcons/BaseBadgeIcon.tsx
1937
- import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
1983
+ import { jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
1938
1984
  function BaseBadgeIcon() {
1939
- return /* @__PURE__ */ jsxs10(
1985
+ return /* @__PURE__ */ jsxs11(
1940
1986
  "svg",
1941
1987
  {
1942
1988
  width: "20",
@@ -1945,8 +1991,8 @@ function BaseBadgeIcon() {
1945
1991
  fill: "none",
1946
1992
  xmlns: "http://www.w3.org/2000/svg",
1947
1993
  children: [
1948
- /* @__PURE__ */ jsx12("circle", { cx: "55.5", cy: "55.5", r: "55.5", fill: "#0052FF" }),
1949
- /* @__PURE__ */ jsx12(
1994
+ /* @__PURE__ */ jsx13("circle", { cx: "55.5", cy: "55.5", r: "55.5", fill: "#0052FF" }),
1995
+ /* @__PURE__ */ jsx13(
1950
1996
  "path",
1951
1997
  {
1952
1998
  d: "M54.92 93.4c20.94 0 37.92-16.97 37.92-37.92S75.86 17.55 54.92 17.55c-19.49 0-35.57 14.72-37.65 33.64h49.82v5.54h-49.82C19.35 75.67 35.42 93.4 54.92 93.4z",
@@ -1959,41 +2005,41 @@ function BaseBadgeIcon() {
1959
2005
  }
1960
2006
 
1961
2007
  // src/components/ui/WalletBadgeIcons/index.tsx
1962
- import { jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
2008
+ import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
1963
2009
  function WalletBadgeIcons() {
1964
- return /* @__PURE__ */ jsxs11("span", { className: "rs-list-row-meta-icons", children: [
1965
- /* @__PURE__ */ jsx13("span", { children: /* @__PURE__ */ jsx13(RabbyIcon, {}) }),
1966
- /* @__PURE__ */ jsx13("span", { children: /* @__PURE__ */ jsx13(PhantomIcon, {}) }),
1967
- /* @__PURE__ */ jsx13("span", { children: /* @__PURE__ */ jsx13(WalletConnectIcon, {}) })
2010
+ return /* @__PURE__ */ jsxs12("span", { className: "rs-list-row-meta-icons", children: [
2011
+ /* @__PURE__ */ jsx14("span", { children: /* @__PURE__ */ jsx14(RabbyIcon, {}) }),
2012
+ /* @__PURE__ */ jsx14("span", { children: /* @__PURE__ */ jsx14(PhantomIcon, {}) }),
2013
+ /* @__PURE__ */ jsx14("span", { children: /* @__PURE__ */ jsx14(WalletConnectIcon, {}) })
1968
2014
  ] });
1969
2015
  }
1970
2016
  WalletBadgeIcons.displayName = "WalletBadgeIcons";
1971
2017
  function ChainBadgeIcons() {
1972
- return /* @__PURE__ */ jsxs11("span", { className: "rs-list-row-meta-icons", children: [
1973
- /* @__PURE__ */ jsx13("span", { children: /* @__PURE__ */ jsx13(EthBadgeIcon, {}) }),
1974
- /* @__PURE__ */ jsx13("span", { children: /* @__PURE__ */ jsx13(SolBadgeIcon, {}) }),
1975
- /* @__PURE__ */ jsx13("span", { children: /* @__PURE__ */ jsx13(BaseBadgeIcon, {}) })
2018
+ return /* @__PURE__ */ jsxs12("span", { className: "rs-list-row-meta-icons", children: [
2019
+ /* @__PURE__ */ jsx14("span", { children: /* @__PURE__ */ jsx14(EthBadgeIcon, {}) }),
2020
+ /* @__PURE__ */ jsx14("span", { children: /* @__PURE__ */ jsx14(SolBadgeIcon, {}) }),
2021
+ /* @__PURE__ */ jsx14("span", { children: /* @__PURE__ */ jsx14(BaseBadgeIcon, {}) })
1976
2022
  ] });
1977
2023
  }
1978
2024
  ChainBadgeIcons.displayName = "ChainBadgeIcons";
1979
2025
 
1980
2026
  // src/components/steps/ConnectStep.tsx
1981
- import { Fragment as Fragment2, jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
2027
+ import { Fragment as Fragment2, jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
1982
2028
  function formatBalanceUsd(value) {
1983
2029
  if (!Number.isFinite(value) || value <= 0) return "$0.00";
1984
2030
  return `$${value.toFixed(2)}`;
1985
2031
  }
1986
2032
  function fiatIcon(name) {
1987
- if (name === "apple") return /* @__PURE__ */ jsx14(AppleIcon, {});
1988
- if (name === "bank") return /* @__PURE__ */ jsx14(BankIcon, {});
1989
- return /* @__PURE__ */ jsx14(CardIcon, {});
2033
+ if (name === "apple") return /* @__PURE__ */ jsx15(AppleIcon, {});
2034
+ if (name === "bank") return /* @__PURE__ */ jsx15(BankIcon, {});
2035
+ return /* @__PURE__ */ jsx15(CardIcon, {});
1990
2036
  }
1991
2037
  function shorten(addr) {
1992
2038
  return addr.length > 12 ? `${addr.slice(0, 6)}...${addr.slice(-4)}` : addr;
1993
2039
  }
1994
2040
  function renderWalletLeading(row) {
1995
2041
  if (row.icon) {
1996
- return /* @__PURE__ */ jsx14(
2042
+ return /* @__PURE__ */ jsx15(
1997
2043
  "img",
1998
2044
  {
1999
2045
  src: row.icon,
@@ -2002,18 +2048,18 @@ function renderWalletLeading(row) {
2002
2048
  }
2003
2049
  );
2004
2050
  }
2005
- return /* @__PURE__ */ jsx14(WalletIcon, {});
2051
+ return /* @__PURE__ */ jsx15(WalletIcon, {});
2006
2052
  }
2007
- var TRANSFER_CRYPTO_LEADING = /* @__PURE__ */ jsx14(TransferCryptoIcon, {});
2008
- var WALLET_LEADING = /* @__PURE__ */ jsx14(WalletIcon, {});
2009
- var SMALL_SPINNER = /* @__PURE__ */ jsx14(Spinner, { className: "rs-spinner--sm" });
2010
- var CONNECT_META = /* @__PURE__ */ jsxs12(Fragment2, { children: [
2011
- /* @__PURE__ */ jsx14(WalletBadgeIcons, {}),
2053
+ var TRANSFER_CRYPTO_LEADING = /* @__PURE__ */ jsx15(TransferCryptoIcon, {});
2054
+ var WALLET_LEADING = /* @__PURE__ */ jsx15(WalletIcon, {});
2055
+ var SMALL_SPINNER = /* @__PURE__ */ jsx15(Spinner, { className: "rs-spinner--sm" });
2056
+ var CONNECT_META = /* @__PURE__ */ jsxs13(Fragment2, { children: [
2057
+ /* @__PURE__ */ jsx15(WalletBadgeIcons, {}),
2012
2058
  "+100 wallets"
2013
2059
  ] });
2014
2060
  var EXTRA_CHAIN_COUNT = Math.max(0, getSupportedChainIds().length - 3);
2015
- var CHAIN_BADGE_META = /* @__PURE__ */ jsxs12(Fragment2, { children: [
2016
- /* @__PURE__ */ jsx14(ChainBadgeIcons, {}),
2061
+ var CHAIN_BADGE_META = /* @__PURE__ */ jsxs13(Fragment2, { children: [
2062
+ /* @__PURE__ */ jsx15(ChainBadgeIcons, {}),
2017
2063
  EXTRA_CHAIN_COUNT > 0 ? `+${EXTRA_CHAIN_COUNT} chains` : "All chains"
2018
2064
  ] });
2019
2065
  function renderRowTrailing(state) {
@@ -2047,18 +2093,18 @@ function ConnectStep({
2047
2093
  );
2048
2094
  const showDappImports = (dappImports?.length ?? 0) > 0;
2049
2095
  const defaultSubtitle = onSelectTransferCrypto ? "Add money to your balance" : "Choose a wallet to continue";
2050
- return /* @__PURE__ */ jsxs12("div", { className: "rs-screen", children: [
2051
- /* @__PURE__ */ jsxs12("div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2052
- /* @__PURE__ */ jsx14(
2096
+ return /* @__PURE__ */ jsxs13("div", { className: "rs-screen", children: [
2097
+ /* @__PURE__ */ jsxs13("div", { className: "rs-screen-body rs-screen-body--gap-32", children: [
2098
+ /* @__PURE__ */ jsx15(
2053
2099
  BodyHeader,
2054
2100
  {
2055
- icon: /* @__PURE__ */ jsx14(HandCoinsIcon, {}),
2101
+ icon: /* @__PURE__ */ jsx15(HandCoinsIcon, {}),
2056
2102
  title,
2057
2103
  subtitle: subtitle ?? defaultSubtitle
2058
2104
  }
2059
2105
  ),
2060
- /* @__PURE__ */ jsxs12("div", { className: "rs-list", children: [
2061
- onSelectTransferCrypto && /* @__PURE__ */ jsx14(
2106
+ /* @__PURE__ */ jsxs13("div", { className: "rs-list", children: [
2107
+ onSelectTransferCrypto && /* @__PURE__ */ jsx15(
2062
2108
  ListRow,
2063
2109
  {
2064
2110
  leading: TRANSFER_CRYPTO_LEADING,
@@ -2068,7 +2114,7 @@ function ConnectStep({
2068
2114
  onClick: onSelectTransferCrypto
2069
2115
  }
2070
2116
  ),
2071
- fiatPaymentMethods && fiatPaymentMethods.length > 0 && onSelectFiatMethod ? fiatPaymentMethods.map((opt) => /* @__PURE__ */ jsx14(
2117
+ fiatPaymentMethods && fiatPaymentMethods.length > 0 && onSelectFiatMethod ? fiatPaymentMethods.map((opt) => /* @__PURE__ */ jsx15(
2072
2118
  ListRow,
2073
2119
  {
2074
2120
  leading: fiatIcon(opt.icon),
@@ -2077,19 +2123,19 @@ function ConnectStep({
2077
2123
  onClick: () => onSelectFiatMethod(opt.method)
2078
2124
  },
2079
2125
  opt.method
2080
- )) : onSelectPayWithCard && /* @__PURE__ */ jsx14(
2126
+ )) : onSelectPayWithCard && /* @__PURE__ */ jsx15(
2081
2127
  ListRow,
2082
2128
  {
2083
- leading: /* @__PURE__ */ jsx14(CardIcon, {}),
2129
+ leading: /* @__PURE__ */ jsx15(CardIcon, {}),
2084
2130
  title: "Pay with Card",
2085
2131
  subtitle: "Buy crypto with card or bank",
2086
2132
  onClick: onSelectPayWithCard
2087
2133
  }
2088
2134
  ),
2089
- onSelectFundFromExchange && /* @__PURE__ */ jsx14(
2135
+ onSelectFundFromExchange && /* @__PURE__ */ jsx15(
2090
2136
  ListRow,
2091
2137
  {
2092
- leading: /* @__PURE__ */ jsx14(BankIcon, {}),
2138
+ leading: /* @__PURE__ */ jsx15(BankIcon, {}),
2093
2139
  title: "Fund from Exchange",
2094
2140
  subtitle: "Use Coinbase, Binance, MetaMask\u2026",
2095
2141
  onClick: onSelectFundFromExchange
@@ -2098,7 +2144,7 @@ function ConnectStep({
2098
2144
  rows.map((row) => {
2099
2145
  const collapseToExternal = Boolean(onSelectTransferCrypto) && row.kind !== "solana";
2100
2146
  const subtitleText = row.state === "loading" ? "Preparing\u2026" : row.state === "error" ? row.errorReason ?? "Couldn't prepare wallet \u2014 tap to retry" : shorten(row.address);
2101
- return /* @__PURE__ */ jsx14(
2147
+ return /* @__PURE__ */ jsx15(
2102
2148
  ListRow,
2103
2149
  {
2104
2150
  leading: renderWalletLeading(row),
@@ -2111,7 +2157,7 @@ function ConnectStep({
2111
2157
  row.id
2112
2158
  );
2113
2159
  }),
2114
- !hasReownWallet && handleConnect && /* @__PURE__ */ jsx14(
2160
+ !hasReownWallet && handleConnect && /* @__PURE__ */ jsx15(
2115
2161
  ListRow,
2116
2162
  {
2117
2163
  leading: WALLET_LEADING,
@@ -2123,7 +2169,7 @@ function ConnectStep({
2123
2169
  ),
2124
2170
  showDappImports && dappImports?.map((row) => {
2125
2171
  if (!hasReownWallet) {
2126
- return /* @__PURE__ */ jsx14(
2172
+ return /* @__PURE__ */ jsx15(
2127
2173
  ListRow,
2128
2174
  {
2129
2175
  leading: row.icon,
@@ -2136,7 +2182,7 @@ function ConnectStep({
2136
2182
  );
2137
2183
  }
2138
2184
  if (row.status === "loading" || row.status === "needs-connect") {
2139
- return /* @__PURE__ */ jsx14(
2185
+ return /* @__PURE__ */ jsx15(
2140
2186
  ListRow,
2141
2187
  {
2142
2188
  leading: row.icon,
@@ -2149,7 +2195,7 @@ function ConnectStep({
2149
2195
  );
2150
2196
  }
2151
2197
  if (row.status.enabled) {
2152
- return /* @__PURE__ */ jsx14(
2198
+ return /* @__PURE__ */ jsx15(
2153
2199
  ListRow,
2154
2200
  {
2155
2201
  leading: row.icon,
@@ -2161,7 +2207,7 @@ function ConnectStep({
2161
2207
  );
2162
2208
  }
2163
2209
  if (row.status.retryable) {
2164
- return /* @__PURE__ */ jsx14(
2210
+ return /* @__PURE__ */ jsx15(
2165
2211
  ListRow,
2166
2212
  {
2167
2213
  leading: row.icon,
@@ -2172,7 +2218,7 @@ function ConnectStep({
2172
2218
  row.id
2173
2219
  );
2174
2220
  }
2175
- return /* @__PURE__ */ jsx14(
2221
+ return /* @__PURE__ */ jsx15(
2176
2222
  ListRow,
2177
2223
  {
2178
2224
  leading: row.icon,
@@ -2185,7 +2231,7 @@ function ConnectStep({
2185
2231
  })
2186
2232
  ] })
2187
2233
  ] }),
2188
- onDisconnect && hasReownWallet && /* @__PURE__ */ jsx14("div", { className: "rs-screen-tight-row", children: /* @__PURE__ */ jsx14(
2234
+ onDisconnect && hasReownWallet && /* @__PURE__ */ jsx15("div", { className: "rs-screen-tight-row", children: /* @__PURE__ */ jsx15(
2189
2235
  "button",
2190
2236
  {
2191
2237
  type: "button",
@@ -2194,7 +2240,7 @@ function ConnectStep({
2194
2240
  children: "Disconnect wallet"
2195
2241
  }
2196
2242
  ) }),
2197
- /* @__PURE__ */ jsx14(PoweredBy, {})
2243
+ /* @__PURE__ */ jsx15(PoweredBy, {})
2198
2244
  ] });
2199
2245
  }
2200
2246
  ConnectStep.displayName = "ConnectStep";
@@ -2204,7 +2250,7 @@ import { useCallback as useCallback3, useEffect as useEffect4, useRef as useRef4
2204
2250
  import { formatUnits } from "viem";
2205
2251
 
2206
2252
  // src/components/ui/Button.tsx
2207
- import { Fragment as Fragment3, jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
2253
+ import { Fragment as Fragment3, jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
2208
2254
  function Button({
2209
2255
  children,
2210
2256
  variant = "accent",
@@ -2224,19 +2270,19 @@ function Button({
2224
2270
  className
2225
2271
  ].filter(Boolean).join(" ");
2226
2272
  const showInlineLoadingText = loading && loadingText !== void 0;
2227
- return /* @__PURE__ */ jsx15(
2273
+ return /* @__PURE__ */ jsx16(
2228
2274
  "button",
2229
2275
  {
2230
2276
  className: classes,
2231
2277
  disabled: disabled || loading,
2232
2278
  "aria-busy": loading || void 0,
2233
2279
  ...props,
2234
- children: showInlineLoadingText ? /* @__PURE__ */ jsxs13("span", { className: "rs-button__loading-row", children: [
2235
- /* @__PURE__ */ jsx15(Spinner, { className: "rs-spinner--sm" }),
2236
- /* @__PURE__ */ jsx15("span", { children: loadingText })
2237
- ] }) : /* @__PURE__ */ jsxs13(Fragment3, { children: [
2238
- /* @__PURE__ */ jsx15("span", { className: loading ? "rs-button__content--hidden" : "", children }),
2239
- loading && /* @__PURE__ */ jsx15("span", { className: "rs-button__spinner", children: /* @__PURE__ */ jsx15(Spinner, { className: "rs-spinner--sm" }) })
2280
+ children: showInlineLoadingText ? /* @__PURE__ */ jsxs14("span", { className: "rs-button__loading-row", children: [
2281
+ /* @__PURE__ */ jsx16(Spinner, { className: "rs-spinner--sm" }),
2282
+ /* @__PURE__ */ jsx16("span", { children: loadingText })
2283
+ ] }) : /* @__PURE__ */ jsxs14(Fragment3, { children: [
2284
+ /* @__PURE__ */ jsx16("span", { className: loading ? "rs-button__content--hidden" : "", children }),
2285
+ loading && /* @__PURE__ */ jsx16("span", { className: "rs-button__spinner", children: /* @__PURE__ */ jsx16(Spinner, { className: "rs-spinner--sm" }) })
2240
2286
  ] })
2241
2287
  }
2242
2288
  );
@@ -2251,7 +2297,7 @@ import {
2251
2297
  useCallback as useCallback2
2252
2298
  } from "react";
2253
2299
  import { createPortal as createPortal2 } from "react-dom";
2254
- import { jsx as jsx16, jsxs as jsxs14 } from "react/jsx-runtime";
2300
+ import { jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
2255
2301
  function Tooltip({ content, children, className }) {
2256
2302
  const [open, setOpen] = useState(false);
2257
2303
  const [position, setPosition] = useState(null);
@@ -2292,7 +2338,7 @@ function Tooltip({ content, children, className }) {
2292
2338
  window.removeEventListener("resize", updatePosition);
2293
2339
  };
2294
2340
  }, [open, updatePosition]);
2295
- return /* @__PURE__ */ jsxs14(
2341
+ return /* @__PURE__ */ jsxs15(
2296
2342
  "span",
2297
2343
  {
2298
2344
  ref: triggerRef,
@@ -2300,7 +2346,7 @@ function Tooltip({ content, children, className }) {
2300
2346
  onMouseEnter: () => setOpen(true),
2301
2347
  onMouseLeave: () => setOpen(false),
2302
2348
  children: [
2303
- /* @__PURE__ */ jsx16(
2349
+ /* @__PURE__ */ jsx17(
2304
2350
  "span",
2305
2351
  {
2306
2352
  className: "rs-tooltip-trigger",
@@ -2322,7 +2368,7 @@ function Tooltip({ content, children, className }) {
2322
2368
  }
2323
2369
  ),
2324
2370
  open && position && typeof document !== "undefined" && createPortal2(
2325
- /* @__PURE__ */ jsx16(
2371
+ /* @__PURE__ */ jsx17(
2326
2372
  "span",
2327
2373
  {
2328
2374
  ref: bubbleRef,
@@ -2340,46 +2386,6 @@ function Tooltip({ content, children, className }) {
2340
2386
  }
2341
2387
  Tooltip.displayName = "Tooltip";
2342
2388
 
2343
- // src/components/ui/Callout.tsx
2344
- import { jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
2345
- function CircleAlertIcon() {
2346
- return /* @__PURE__ */ jsx17(
2347
- "svg",
2348
- {
2349
- width: "16",
2350
- height: "16",
2351
- viewBox: "0 0 16 16",
2352
- fill: "none",
2353
- xmlns: "http://www.w3.org/2000/svg",
2354
- "aria-hidden": "true",
2355
- children: /* @__PURE__ */ jsx17(
2356
- "path",
2357
- {
2358
- d: "M10 5.99L6 9.99M6 5.99L10 9.99M14.66 7.99C14.66 11.68 11.68 14.66 8 14.66C4.31 14.66 1.33 11.68 1.33 7.99C1.33 4.31 4.31 1.33 8 1.33C11.68 1.33 14.66 4.31 14.66 7.99Z",
2359
- stroke: "currentColor",
2360
- strokeWidth: "1.33",
2361
- strokeLinecap: "round",
2362
- strokeLinejoin: "round"
2363
- }
2364
- )
2365
- }
2366
- );
2367
- }
2368
- function Callout({ variant = "error", children, role }) {
2369
- return /* @__PURE__ */ jsxs15(
2370
- "div",
2371
- {
2372
- className: `rs-callout rs-callout--${variant}`,
2373
- role: role ?? (variant === "error" ? "alert" : "status"),
2374
- children: [
2375
- /* @__PURE__ */ jsx17("span", { className: "rs-callout-icon", children: variant === "error" ? /* @__PURE__ */ jsx17(CircleAlertIcon, {}) : /* @__PURE__ */ jsx17(AlertTriangleIcon, {}) }),
2376
- /* @__PURE__ */ jsx17("span", { className: "rs-callout-text", children })
2377
- ]
2378
- }
2379
- );
2380
- }
2381
- Callout.displayName = "Callout";
2382
-
2383
2389
  // src/core/webhook.ts
2384
2390
  function isRecord(value) {
2385
2391
  return typeof value === "object" && value !== null;
@@ -2593,6 +2599,27 @@ function maxFractionDigitsFor(symbol) {
2593
2599
  if (!symbol) return 6;
2594
2600
  return STABLECOIN_SYMBOLS.has(symbol.toUpperCase()) ? 3 : 6;
2595
2601
  }
2602
+ var PAYMENT_METHOD_LABELS = {
2603
+ creditcard: "Card",
2604
+ debitcard: "Card",
2605
+ card: "Card",
2606
+ applepay: "Apple Pay",
2607
+ googlepay: "Google Pay",
2608
+ "bank-transfer": "Bank Transfer",
2609
+ banktransfer: "Bank Transfer",
2610
+ sepa: "SEPA",
2611
+ "open-banking": "Open Banking",
2612
+ "krak-pay": "Kraken Pay",
2613
+ krakpay: "Kraken Pay",
2614
+ kraken: "Kraken",
2615
+ coinbase: "Coinbase",
2616
+ binance: "Binance"
2617
+ };
2618
+ function formatPaymentMethod(method) {
2619
+ const key = method.trim().toLowerCase();
2620
+ if (PAYMENT_METHOD_LABELS[key]) return PAYMENT_METHOD_LABELS[key];
2621
+ return key.replace(/[-_]+/g, " ").split(" ").filter(Boolean).map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
2622
+ }
2596
2623
  function loadPhaseTimings(txHash) {
2597
2624
  if (typeof window === "undefined") return null;
2598
2625
  try {
@@ -2703,6 +2730,7 @@ function ProcessingStep({
2703
2730
  amount,
2704
2731
  sourceSymbol: providedSourceSymbol,
2705
2732
  sourceDecimals: providedSourceDecimals,
2733
+ amountUsd,
2706
2734
  hasPostBridgeActions,
2707
2735
  service,
2708
2736
  directTransfer,
@@ -2713,6 +2741,7 @@ function ProcessingStep({
2713
2741
  quotedFeeAmount,
2714
2742
  quotedFeeSymbol,
2715
2743
  balanceAfterUsd,
2744
+ isSwappedOrder,
2716
2745
  onClose,
2717
2746
  onNewDeposit,
2718
2747
  onRetry,
@@ -2728,6 +2757,8 @@ function ProcessingStep({
2728
2757
  amount,
2729
2758
  sourceChain,
2730
2759
  sourceToken,
2760
+ sourceDecimals: providedSourceDecimals,
2761
+ amountUsd,
2731
2762
  targetChain,
2732
2763
  targetToken,
2733
2764
  hasPostBridgeActions
@@ -2775,6 +2806,8 @@ function ProcessingStep({
2775
2806
  amount: context.amount,
2776
2807
  sourceChain: context.sourceChain,
2777
2808
  sourceToken: context.sourceToken,
2809
+ sourceDecimals: context.sourceDecimals,
2810
+ amountUsd: context.amountUsd,
2778
2811
  targetChain: context.targetChain,
2779
2812
  targetToken: context.targetToken
2780
2813
  });
@@ -2817,8 +2850,11 @@ function ProcessingStep({
2817
2850
  let cancelled = false;
2818
2851
  service.fetchSwappedOrderStatus(smartAccount).then((res) => {
2819
2852
  if (cancelled || !res) return;
2820
- if (!res.transactionId) return;
2821
- if (res.transactionId.toLowerCase() !== txHash.toLowerCase()) return;
2853
+ if (res.transactionId != null) {
2854
+ if (res.transactionId.toLowerCase() !== txHash.toLowerCase()) return;
2855
+ } else if (!isSwappedOrder) {
2856
+ return;
2857
+ }
2822
2858
  setSwappedFiatContext({
2823
2859
  paidAmountUsd: res.paidAmountUsd,
2824
2860
  paidAmountEur: res.paidAmountEur,
@@ -2830,7 +2866,7 @@ function ProcessingStep({
2830
2866
  return () => {
2831
2867
  cancelled = true;
2832
2868
  };
2833
- }, [service, smartAccount, txHash]);
2869
+ }, [service, smartAccount, txHash, isSwappedOrder]);
2834
2870
  useEffect4(() => {
2835
2871
  if (directTransfer) return;
2836
2872
  if (state.type !== "processing") {
@@ -2873,6 +2909,8 @@ function ProcessingStep({
2873
2909
  amount: context.amount,
2874
2910
  sourceChain: context.sourceChain,
2875
2911
  sourceToken: context.sourceToken,
2912
+ sourceDecimals: context.sourceDecimals,
2913
+ amountUsd: context.amountUsd,
2876
2914
  targetChain: context.targetChain,
2877
2915
  targetToken: context.targetToken
2878
2916
  });
@@ -2906,6 +2944,8 @@ function ProcessingStep({
2906
2944
  amount: context.amount,
2907
2945
  sourceChain: context.sourceChain,
2908
2946
  sourceToken: context.sourceToken,
2947
+ sourceDecimals: context.sourceDecimals,
2948
+ amountUsd: context.amountUsd,
2909
2949
  targetChain: context.targetChain,
2910
2950
  targetToken: context.targetToken
2911
2951
  });
@@ -3064,6 +3104,7 @@ function ProcessingStep({
3064
3104
  const numeric = Number(raw);
3065
3105
  if (!Number.isFinite(numeric)) return raw;
3066
3106
  return numeric.toLocaleString("en-US", {
3107
+ minimumFractionDigits: 2,
3067
3108
  maximumFractionDigits: amountMaxDigits
3068
3109
  });
3069
3110
  } catch {
@@ -3076,6 +3117,7 @@ function ProcessingStep({
3076
3117
  const numeric = Number(raw);
3077
3118
  if (!Number.isFinite(numeric)) return raw;
3078
3119
  return numeric.toLocaleString("en-US", {
3120
+ minimumFractionDigits: 2,
3079
3121
  maximumFractionDigits: amountMaxDigits
3080
3122
  });
3081
3123
  } catch {
@@ -3155,13 +3197,13 @@ function ProcessingStep({
3155
3197
  /* @__PURE__ */ jsx18("span", { className: "rs-review-detail-value", children: /* @__PURE__ */ jsx18(Ticker, { value: timerText }) })
3156
3198
  ] }),
3157
3199
  swappedFiatContext?.paidAmountUsd != null && /* @__PURE__ */ jsxs16("div", { className: "rs-review-detail-row", children: [
3158
- /* @__PURE__ */ jsx18("span", { children: "Paid" }),
3200
+ /* @__PURE__ */ jsx18("span", { children: "You pay" }),
3159
3201
  /* @__PURE__ */ jsxs16("span", { className: "rs-review-detail-value", children: [
3160
3202
  "$",
3161
3203
  swappedFiatContext.paidAmountUsd.toFixed(2),
3162
3204
  swappedFiatContext.paymentMethod && /* @__PURE__ */ jsxs16("span", { style: { color: "#71717b", marginLeft: 6 }, children: [
3163
3205
  "via ",
3164
- swappedFiatContext.paymentMethod
3206
+ formatPaymentMethod(swappedFiatContext.paymentMethod)
3165
3207
  ] })
3166
3208
  ] })
3167
3209
  ] }),
@@ -3527,22 +3569,6 @@ async function buildSafeTransaction(params) {
3527
3569
  };
3528
3570
  }
3529
3571
 
3530
- // src/core/public-client.ts
3531
- import { createPublicClient, http } from "viem";
3532
- var clientCache = /* @__PURE__ */ new Map();
3533
- function getPublicClient(chainId) {
3534
- let client = clientCache.get(chainId);
3535
- if (!client) {
3536
- const chain = CHAIN_BY_ID[chainId];
3537
- client = createPublicClient({
3538
- chain,
3539
- transport: http()
3540
- });
3541
- clientCache.set(chainId, client);
3542
- }
3543
- return client;
3544
- }
3545
-
3546
3572
  // src/core/session-owner.ts
3547
3573
  import { isAddress } from "viem";
3548
3574
  import {
@@ -3612,19 +3638,15 @@ export {
3612
3638
  PlusCircleIcon,
3613
3639
  CircleArrowOutUpLeftIcon,
3614
3640
  BankIcon,
3641
+ Callout,
3615
3642
  BodyHeader,
3616
3643
  PoweredBy,
3617
3644
  Spinner,
3618
3645
  ConnectStep,
3619
3646
  useLatestRef,
3620
3647
  Button,
3621
- Callout,
3622
3648
  debugLog,
3623
3649
  debugError,
3624
- toEvmCaip2,
3625
- targetChainToCaip2,
3626
- parseEvmChainId,
3627
- isSolanaCaip2,
3628
3650
  getAssetId,
3629
3651
  portfolioToAssets,
3630
3652
  isNativeAsset,
@@ -3647,6 +3669,7 @@ export {
3647
3669
  executeSafeErc20Transfer,
3648
3670
  buildSafeTransaction,
3649
3671
  getPublicClient,
3672
+ getHyperEvmReadClient,
3650
3673
  loadSessionOwnerFromStorage,
3651
3674
  saveSessionOwnerToStorage,
3652
3675
  createSessionOwnerKey,