@agg-build/ui 1.2.11 → 1.2.12

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 (66) hide show
  1. package/dist/{chunk-J7K2U44E.mjs → chunk-3JXBOU24.mjs} +110 -60
  2. package/dist/{chunk-3ZSNHGAB.mjs → chunk-4WBQTUPW.mjs} +314 -58
  3. package/dist/{chunk-54PCEK6G.mjs → chunk-IBOE7DRY.mjs} +1 -1
  4. package/dist/{chunk-YP75TIY6.mjs → chunk-J6WELNCX.mjs} +3 -3
  5. package/dist/{chunk-ENAGASVU.mjs → chunk-U55T5BPE.mjs} +406 -337
  6. package/dist/{chunk-SJLHOAKK.mjs → chunk-X3KCFWXN.mjs} +936 -650
  7. package/dist/{chunk-NWJHFGBZ.mjs → chunk-YSW4ULL5.mjs} +1 -1
  8. package/dist/events.js +1593 -886
  9. package/dist/events.mjs +3 -3
  10. package/dist/index.js +4211 -3198
  11. package/dist/index.mjs +480 -105
  12. package/dist/modals.js +1164 -923
  13. package/dist/modals.mjs +3 -3
  14. package/dist/pages.js +1975 -1492
  15. package/dist/pages.mjs +6 -6
  16. package/dist/primitives.js +928 -649
  17. package/dist/primitives.mjs +1 -1
  18. package/dist/styles.css +1 -1
  19. package/dist/tailwind.css +1 -1
  20. package/dist/trading.js +641 -444
  21. package/dist/trading.mjs +4 -4
  22. package/dist/types/agg-provider.d.mts +27 -0
  23. package/dist/types/agg-provider.d.ts +27 -0
  24. package/dist/types/events/list/event-list-tabs.d.mts +6 -1
  25. package/dist/types/events/list/event-list-tabs.d.ts +6 -1
  26. package/dist/types/index.d.mts +2 -0
  27. package/dist/types/index.d.ts +2 -0
  28. package/dist/types/notifications/agg-notification-events-provider.d.mts +35 -0
  29. package/dist/types/notifications/agg-notification-events-provider.d.ts +35 -0
  30. package/dist/types/notifications/agg-toast-provider.d.mts +27 -0
  31. package/dist/types/notifications/agg-toast-provider.d.ts +27 -0
  32. package/dist/types/notifications/deposit-notification-events.d.mts +10 -0
  33. package/dist/types/notifications/deposit-notification-events.d.ts +10 -0
  34. package/dist/types/notifications/index.d.mts +2 -0
  35. package/dist/types/notifications/index.d.ts +2 -0
  36. package/dist/types/primitives/button/button.types.d.mts +4 -0
  37. package/dist/types/primitives/button/button.types.d.ts +4 -0
  38. package/dist/types/primitives/button/index.d.mts +1 -1
  39. package/dist/types/primitives/button/index.d.ts +1 -1
  40. package/dist/types/primitives/icon/registry.d.mts +16 -0
  41. package/dist/types/primitives/icon/registry.d.ts +16 -0
  42. package/dist/types/primitives/icon/svg/sort-end-date.d.mts +5 -0
  43. package/dist/types/primitives/icon/svg/sort-end-date.d.ts +5 -0
  44. package/dist/types/primitives/icon/svg/sort-top-arbitrage.d.mts +5 -0
  45. package/dist/types/primitives/icon/svg/sort-top-arbitrage.d.ts +5 -0
  46. package/dist/types/primitives/icon/svg/sort-volume-24hr.d.mts +5 -0
  47. package/dist/types/primitives/icon/svg/sort-volume-24hr.d.ts +5 -0
  48. package/dist/types/primitives/icon/svg/sort-volume.d.mts +5 -0
  49. package/dist/types/primitives/icon/svg/sort-volume.d.ts +5 -0
  50. package/dist/types/primitives/select/index.d.mts +1 -1
  51. package/dist/types/primitives/select/index.d.ts +1 -1
  52. package/dist/types/primitives/select/select.types.d.mts +9 -0
  53. package/dist/types/primitives/select/select.types.d.ts +9 -0
  54. package/dist/types/primitives/toast/toast.types.d.mts +3 -0
  55. package/dist/types/primitives/toast/toast.types.d.ts +3 -0
  56. package/dist/types/profile/index.d.mts +1 -1
  57. package/dist/types/profile/index.d.ts +1 -1
  58. package/dist/types/profile/profile-modal.constants.d.mts +2 -2
  59. package/dist/types/profile/profile-modal.constants.d.ts +2 -2
  60. package/dist/types/profile/tabs/accounts-wallets-tab.d.mts +2 -17
  61. package/dist/types/profile/tabs/accounts-wallets-tab.d.ts +2 -17
  62. package/dist/types/profile/tabs/trading-access-tab.d.mts +15 -0
  63. package/dist/types/profile/tabs/trading-access-tab.d.ts +15 -0
  64. package/dist/types/trading/place-order/index.place-order.utils.d.mts +1 -1
  65. package/dist/types/trading/place-order/index.place-order.utils.d.ts +1 -1
  66. package/package.json +2 -2
package/dist/modals.js CHANGED
@@ -452,6 +452,13 @@ var ModalFooter = ({
452
452
  Modal.Footer = ModalFooter;
453
453
  Modal.displayName = "Modal";
454
454
 
455
+ // src/notifications/deposit-notification-events.ts
456
+ var AGG_DEPOSIT_NOTIFICATION_EVENT = "agg:deposit-notification";
457
+ var dispatchAggDepositNotification = (detail) => {
458
+ if (typeof window === "undefined") return;
459
+ window.dispatchEvent(new CustomEvent(AGG_DEPOSIT_NOTIFICATION_EVENT, { detail }));
460
+ };
461
+
455
462
  // src/shared/constants.ts
456
463
  var USDC = {
457
464
  value: "USDC",
@@ -1287,6 +1294,7 @@ var Button = (_a) => {
1287
1294
  suffix,
1288
1295
  type = "button",
1289
1296
  className,
1297
+ classNames,
1290
1298
  "aria-label": ariaLabel
1291
1299
  } = _b, other = __objRest(_b, [
1292
1300
  "children",
@@ -1298,6 +1306,7 @@ var Button = (_a) => {
1298
1306
  "suffix",
1299
1307
  "type",
1300
1308
  "className",
1309
+ "classNames",
1301
1310
  "aria-label"
1302
1311
  ]);
1303
1312
  const {
@@ -1308,7 +1317,12 @@ var Button = (_a) => {
1308
1317
  "button",
1309
1318
  __spreadProps(__spreadValues({
1310
1319
  type,
1311
- className: getButtonClassName({ className, enableAnimations, size, variant }),
1320
+ className: getButtonClassName({
1321
+ className: cn(classNames == null ? void 0 : classNames.root, className),
1322
+ enableAnimations,
1323
+ size,
1324
+ variant
1325
+ }),
1312
1326
  disabled: isDisabled,
1313
1327
  "aria-busy": isLoading,
1314
1328
  "aria-label": ariaLabel
@@ -1329,7 +1343,11 @@ var Button = (_a) => {
1329
1343
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1330
1344
  "span",
1331
1345
  {
1332
- className: cn("group/span-agg-button agg-button-label", "whitespace-nowrap truncate"),
1346
+ className: cn(
1347
+ "group/span-agg-button agg-button-label",
1348
+ "whitespace-nowrap truncate",
1349
+ classNames == null ? void 0 : classNames.label
1350
+ ),
1333
1351
  children
1334
1352
  }
1335
1353
  ),
@@ -1341,9 +1359,9 @@ var Button = (_a) => {
1341
1359
  Button.displayName = "Button";
1342
1360
 
1343
1361
  // src/primitives/select/index.tsx
1362
+ var import_hooks13 = require("@agg-build/hooks");
1344
1363
  var import_react2 = require("react");
1345
1364
  var import_react_dom = require("react-dom");
1346
- var import_hooks13 = require("@agg-build/hooks");
1347
1365
 
1348
1366
  // src/primitives/icon/svg/apple.tsx
1349
1367
  var import_jsx_runtime13 = require("react/jsx-runtime");
@@ -3226,11 +3244,142 @@ var SolanaIcon = (_a) => {
3226
3244
  };
3227
3245
  SolanaIcon.displayName = "SolanaIcon";
3228
3246
 
3229
- // src/primitives/icon/svg/sparkles-filled.tsx
3247
+ // src/primitives/icon/svg/sort-end-date.tsx
3230
3248
  var import_jsx_runtime71 = require("react/jsx-runtime");
3231
- var SparklesFilledIcon = (_a) => {
3249
+ var SortEndDateIcon = (_a) => {
3232
3250
  var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3233
3251
  return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
3252
+ "svg",
3253
+ __spreadProps(__spreadValues(__spreadValues({
3254
+ viewBox: "0 0 16 16",
3255
+ className,
3256
+ fill: "none"
3257
+ }, getIconA11yProps(title)), props), {
3258
+ children: [
3259
+ title ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("title", { children: title }) : null,
3260
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("g", { clipPath: "url(#sort-end-date-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3261
+ "path",
3262
+ {
3263
+ d: "M16 8C16 10.1217 15.1571 12.1566 13.6569 13.6569C12.1566 15.1571 10.1217 16 8 16C5.87827 16 3.84344 15.1571 2.34315 13.6569C0.842855 12.1566 0 10.1217 0 8C0 7.82319 0.0702379 7.65362 0.195262 7.5286C0.320286 7.40357 0.489856 7.33333 0.666667 7.33333C0.843478 7.33333 1.01305 7.40357 1.13807 7.5286C1.2631 7.65362 1.33333 7.82319 1.33333 8C1.33333 9.31854 1.72433 10.6075 2.45687 11.7038C3.18941 12.8001 4.2306 13.6546 5.44878 14.1592C6.66695 14.6638 8.0074 14.7958 9.3006 14.5386C10.5938 14.2813 11.7817 13.6464 12.714 12.714C13.6464 11.7817 14.2813 10.5938 14.5386 9.3006C14.7958 8.0074 14.6638 6.66695 14.1592 5.44878C13.6546 4.2306 12.8001 3.18941 11.7038 2.45687C10.6075 1.72433 9.31854 1.33333 8 1.33333C7.82319 1.33333 7.65362 1.2631 7.5286 1.13807C7.40357 1.01305 7.33333 0.843478 7.33333 0.666667C7.33333 0.489856 7.40357 0.320286 7.5286 0.195262C7.65362 0.0702379 7.82319 0 8 0C10.121 0.00229405 12.1545 0.845885 13.6543 2.34568C15.1541 3.84547 15.9977 5.87897 16 8ZM6.85133 7.33333H5.33333C5.15652 7.33333 4.98695 7.40357 4.86193 7.5286C4.7369 7.65362 4.66667 7.82319 4.66667 8C4.66667 8.17681 4.7369 8.34638 4.86193 8.4714C4.98695 8.59643 5.15652 8.66667 5.33333 8.66667H6.85133C6.95314 8.84349 7.09429 8.99449 7.26384 9.108C7.43339 9.2215 7.62679 9.29445 7.82906 9.3212C8.03134 9.34795 8.23705 9.32778 8.43028 9.26226C8.6235 9.19673 8.79905 9.0876 8.94333 8.94333C9.0876 8.79905 9.19673 8.6235 9.26226 8.43028C9.32778 8.23705 9.34795 8.03134 9.3212 7.82906C9.29445 7.62679 9.2215 7.43339 9.108 7.26384C8.99449 7.09429 8.84349 6.95314 8.66667 6.85133V4.66667C8.66667 4.48986 8.59643 4.32029 8.4714 4.19526C8.34638 4.07024 8.17681 4 8 4C7.82319 4 7.65362 4.07024 7.5286 4.19526C7.40357 4.32029 7.33333 4.48986 7.33333 4.66667V6.85133C7.13362 6.96752 6.96752 7.13362 6.85133 7.33333ZM1.218 5.856C1.34985 5.856 1.47875 5.8169 1.58838 5.74365C1.69801 5.67039 1.78346 5.56627 1.83392 5.44446C1.88438 5.32264 1.89758 5.18859 1.87186 5.05927C1.84613 4.92995 1.78264 4.81116 1.6894 4.71793C1.59617 4.62469 1.47738 4.5612 1.34806 4.53548C1.21874 4.50975 1.0847 4.52296 0.962878 4.57341C0.84106 4.62387 0.736941 4.70932 0.663687 4.81895C0.590433 4.92859 0.551333 5.05748 0.551333 5.18933C0.551333 5.36614 0.621571 5.53571 0.746595 5.66074C0.87162 5.78576 1.04119 5.856 1.218 5.856ZM2.814 3.47133C2.94585 3.47133 3.07475 3.43223 3.18438 3.35898C3.29401 3.28573 3.37946 3.18161 3.42992 3.05979C3.48038 2.93797 3.49358 2.80393 3.46786 2.67461C3.44213 2.54529 3.37864 2.4265 3.2854 2.33326C3.19217 2.24003 3.07338 2.17653 2.94406 2.15081C2.81474 2.12509 2.6807 2.13829 2.55888 2.18875C2.43706 2.23921 2.33294 2.32465 2.25969 2.43429C2.18643 2.54392 2.14733 2.67281 2.14733 2.80467C2.14733 2.98148 2.21757 3.15105 2.3426 3.27607C2.46762 3.4011 2.63719 3.47133 2.814 3.47133ZM5.186 1.894C5.31785 1.894 5.44675 1.8549 5.55638 1.78165C5.66601 1.70839 5.75146 1.60427 5.80192 1.48246C5.85238 1.36064 5.86558 1.22659 5.83986 1.09727C5.81413 0.967952 5.75064 0.849164 5.6574 0.755929C5.56417 0.662694 5.44538 0.5992 5.31606 0.573476C5.18674 0.547753 5.0527 0.560955 4.93088 0.611414C4.80906 0.661872 4.70494 0.74732 4.63169 0.856953C4.55843 0.966586 4.51933 1.09548 4.51933 1.22733C4.51933 1.40414 4.58957 1.57371 4.7146 1.69874C4.83962 1.82376 5.00919 1.894 5.186 1.894Z",
3264
+ fill: "currentColor"
3265
+ }
3266
+ ) }),
3267
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("clipPath", { id: "sort-end-date-clip", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
3268
+ ]
3269
+ })
3270
+ );
3271
+ };
3272
+ SortEndDateIcon.displayName = "SortEndDateIcon";
3273
+
3274
+ // src/primitives/icon/svg/sort-top-arbitrage.tsx
3275
+ var import_jsx_runtime72 = require("react/jsx-runtime");
3276
+ var SortTopArbitrageIcon = (_a) => {
3277
+ var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3278
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
3279
+ "svg",
3280
+ __spreadProps(__spreadValues(__spreadValues({
3281
+ viewBox: "0 0 16 16",
3282
+ className,
3283
+ fill: "none"
3284
+ }, getIconA11yProps(title)), props), {
3285
+ children: [
3286
+ title ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("title", { children: title }) : null,
3287
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("g", { clipPath: "url(#sort-top-arbitrage-clip)", children: [
3288
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3289
+ "path",
3290
+ {
3291
+ d: "M15.4314 6.314L14.9067 5.6C14.5432 5.10529 14.0686 4.7028 13.5211 4.42491C12.9737 4.14701 12.3687 4.00148 11.7547 4H4.25541C3.65409 4.00157 3.06116 4.14118 2.52231 4.40806C1.98346 4.67494 1.51308 5.06197 1.14741 5.53933L0.600079 6.25533C0.155734 6.84154 -0.0531817 7.57279 0.0144266 8.30525C0.0820349 9.03772 0.421273 9.71837 0.965413 10.2133L6.29208 15.3513C6.75993 15.7686 7.36522 15.9986 7.99208 15.9973C8.63223 15.9961 9.24941 15.7587 9.72541 15.3307L15.0161 10.242C15.5633 9.7574 15.9094 9.08556 15.9863 8.35863C16.0632 7.63171 15.8652 6.90233 15.4314 6.314ZM13.8314 6.38533L14.3561 7.10133C14.4088 7.1746 14.4552 7.25221 14.4947 7.33333H11.3007C11.2525 7.01408 11.1693 6.7011 11.0527 6.4L10.6261 5.33333H11.7547C12.159 5.3341 12.5575 5.42967 12.9182 5.61237C13.2788 5.79508 13.5916 6.05982 13.8314 6.38533ZM7.99341 13.392L6.14741 9.212C6.08065 9.0352 6.03021 8.85266 5.99675 8.66667H9.96475C9.93678 8.81325 9.89755 8.95745 9.84741 9.098L7.99341 13.392ZM6.06675 7.33333C6.09463 7.21381 6.12958 7.09605 6.17141 6.98067L6.82741 5.33333H9.19008L9.81475 6.89533C9.86959 7.03796 9.91415 7.18434 9.94808 7.33333H6.06675ZM2.20741 6.34733C2.44845 6.0329 2.75844 5.77797 3.11349 5.60217C3.46855 5.42638 3.85922 5.3344 4.25541 5.33333H5.38875L4.93341 6.486C4.82356 6.75949 4.74159 7.04338 4.68875 7.33333H1.49675C1.54247 7.2391 1.59764 7.14976 1.66141 7.06667L2.20741 6.34733ZM1.87408 9.236C1.70016 9.07824 1.56353 8.88377 1.47408 8.66667H4.65541C4.69963 9.02585 4.78623 9.37853 4.91341 9.71733L6.79808 13.984L1.87408 9.236ZM9.18075 14.0093L11.0834 9.6C11.1938 9.29824 11.2708 8.98525 11.3127 8.66667H14.5334C14.439 8.89552 14.2949 9.10049 14.1114 9.26667L9.18075 14.0093Z",
3292
+ fill: "currentColor"
3293
+ }
3294
+ ),
3295
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3296
+ "path",
3297
+ {
3298
+ d: "M8.00065 2.66667C8.17746 2.66667 8.34703 2.59643 8.47206 2.4714C8.59708 2.34638 8.66732 2.17681 8.66732 2V0.666667C8.66732 0.489856 8.59708 0.320286 8.47206 0.195262C8.34703 0.0702379 8.17746 0 8.00065 0C7.82384 0 7.65427 0.0702379 7.52925 0.195262C7.40422 0.320286 7.33398 0.489856 7.33398 0.666667V2C7.33398 2.17681 7.40422 2.34638 7.52925 2.4714C7.65427 2.59643 7.82384 2.66667 8.00065 2.66667Z",
3299
+ fill: "currentColor"
3300
+ }
3301
+ ),
3302
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3303
+ "path",
3304
+ {
3305
+ d: "M11.0357 2.6C11.1144 2.63958 11.2002 2.66316 11.288 2.66939C11.3759 2.67561 11.4642 2.66436 11.5477 2.63628C11.6312 2.6082 11.7083 2.56384 11.7745 2.50578C11.8408 2.44772 11.8949 2.3771 11.9337 2.298L12.6004 0.964671C12.6794 0.806425 12.6923 0.623264 12.6363 0.455481C12.5803 0.287699 12.4599 0.149038 12.3017 0.0700039C12.1434 -0.00903065 11.9603 -0.0219652 11.7925 0.0340457C11.6247 0.0900565 11.4861 0.210425 11.407 0.368671L10.7404 1.702C10.7005 1.78031 10.6766 1.86572 10.6699 1.95331C10.6632 2.0409 10.6739 2.12895 10.7013 2.2124C10.7288 2.29585 10.7724 2.37305 10.8298 2.43957C10.8872 2.50609 10.9572 2.56061 11.0357 2.6Z",
3306
+ fill: "currentColor"
3307
+ }
3308
+ ),
3309
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3310
+ "path",
3311
+ {
3312
+ d: "M4.06955 2.298C4.14858 2.45669 4.28742 2.57748 4.45552 2.63381C4.62361 2.69013 4.8072 2.67737 4.96588 2.59834C5.12457 2.5193 5.24536 2.38047 5.30169 2.21237C5.35801 2.04428 5.34525 1.86069 5.26622 1.702L4.59955 0.368671C4.56042 0.290315 4.50623 0.220435 4.44009 0.16302C4.37395 0.105605 4.29715 0.0617794 4.21407 0.0340457C4.04629 -0.0219652 3.86313 -0.00903065 3.70488 0.0700039C3.54664 0.149038 3.42627 0.287699 3.37026 0.455481C3.31425 0.623264 3.32718 0.806425 3.40622 0.964671L4.06955 2.298Z",
3313
+ fill: "currentColor"
3314
+ }
3315
+ )
3316
+ ] }),
3317
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("clipPath", { id: "sort-top-arbitrage-clip", children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
3318
+ ]
3319
+ })
3320
+ );
3321
+ };
3322
+ SortTopArbitrageIcon.displayName = "SortTopArbitrageIcon";
3323
+
3324
+ // src/primitives/icon/svg/sort-volume-24hr.tsx
3325
+ var import_jsx_runtime73 = require("react/jsx-runtime");
3326
+ var SortVolume24hrIcon = (_a) => {
3327
+ var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3328
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
3329
+ "svg",
3330
+ __spreadProps(__spreadValues(__spreadValues({
3331
+ viewBox: "0 0 16 16",
3332
+ className,
3333
+ fill: "none"
3334
+ }, getIconA11yProps(title)), props), {
3335
+ children: [
3336
+ title ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("title", { children: title }) : null,
3337
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("g", { clipPath: "url(#sort-volume-24hr-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3338
+ "path",
3339
+ {
3340
+ d: "M14.0002 4H10.0002C9.6315 4 9.3335 4.298 9.3335 4.66667C9.3335 5.03533 9.6315 5.33333 10.0002 5.33333H13.7242L9.3495 9.708C8.9735 10.084 8.3615 10.084 7.98483 9.708L6.29217 8.01533C5.39617 7.11933 3.93817 7.11933 3.04217 8.01533L0.1955 10.862C-0.0651667 11.1227 -0.0651667 11.544 0.1955 11.8047C0.3255 11.9347 0.496167 12 0.666833 12C0.8375 12 1.00817 11.9347 1.13817 11.8047L3.98483 8.958C4.3495 8.59333 4.98483 8.59333 5.3495 8.958L7.04217 10.6507C7.93817 11.5467 9.39617 11.5467 10.2922 10.6507L14.6675 6.276V10C14.6675 10.3687 14.9655 10.6667 15.3342 10.6667C15.7028 10.6667 16.0008 10.3687 16.0008 10V6C16.0008 4.89733 15.1028 4 14.0002 4Z",
3341
+ fill: "currentColor"
3342
+ }
3343
+ ) }),
3344
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("clipPath", { id: "sort-volume-24hr-clip", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
3345
+ ]
3346
+ })
3347
+ );
3348
+ };
3349
+ SortVolume24hrIcon.displayName = "SortVolume24hrIcon";
3350
+
3351
+ // src/primitives/icon/svg/sort-volume.tsx
3352
+ var import_jsx_runtime74 = require("react/jsx-runtime");
3353
+ var SortVolumeIcon = (_a) => {
3354
+ var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3355
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
3356
+ "svg",
3357
+ __spreadProps(__spreadValues(__spreadValues({
3358
+ viewBox: "0 0 16 16",
3359
+ className,
3360
+ fill: "none"
3361
+ }, getIconA11yProps(title)), props), {
3362
+ children: [
3363
+ title ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("title", { children: title }) : null,
3364
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("g", { clipPath: "url(#sort-volume-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3365
+ "path",
3366
+ {
3367
+ d: "M13.6667 10.6667H11.3333V8.33333C11.3333 7.04666 10.2867 6 9 6H7C5.71333 6 4.66667 7.04666 4.66667 8.33333V8.66666H2.33333C1.04667 8.66666 0 9.71333 0 11V13.6667C0 14.9533 1.04667 16 2.33333 16H13.6667C14.9533 16 16 14.9533 16 13.6667V13C16 11.7133 14.9533 10.6667 13.6667 10.6667ZM6 8.33333C6 7.782 6.44867 7.33333 7 7.33333H9C9.55133 7.33333 10 7.782 10 8.33333V14.6667H6V8.33333ZM1.33333 13.6667V11C1.33333 10.4487 1.782 9.99999 2.33333 9.99999H4.66667V14.6667H2.33333C1.782 14.6667 1.33333 14.218 1.33333 13.6667ZM14.6667 13.6667C14.6667 14.218 14.218 14.6667 13.6667 14.6667H11.3333V12H13.6667C14.218 12 14.6667 12.4487 14.6667 13V13.6667ZM5.36067 1.90466C5.42467 1.73 5.59133 1.61333 5.778 1.61333H7.112L7.584 0.288662C7.64867 0.114662 7.81467 -0.000671387 8.00067 -0.000671387C8.18667 -0.000671387 8.35267 0.114662 8.41733 0.288662L8.88933 1.61333H10.2233C10.41 1.61333 10.5767 1.73 10.6407 1.90533C10.7047 2.08066 10.652 2.27733 10.5093 2.398L9.458 3.25466L9.89267 4.57933C9.952 4.75866 9.892 4.95599 9.742 5.07133C9.592 5.18666 9.386 5.19466 9.228 5.09199L8.004 4.29466L6.80067 5.09999C6.726 5.14999 6.63933 5.17533 6.55333 5.17533C6.45933 5.17533 6.36533 5.14533 6.28667 5.08666C6.13533 4.97333 6.07267 4.77733 6.12933 4.59733L6.54733 3.25666L5.49067 2.39666C5.34867 2.276 5.296 2.07933 5.36067 1.90466Z",
3368
+ fill: "currentColor"
3369
+ }
3370
+ ) }),
3371
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("clipPath", { id: "sort-volume-clip", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
3372
+ ]
3373
+ })
3374
+ );
3375
+ };
3376
+ SortVolumeIcon.displayName = "SortVolumeIcon";
3377
+
3378
+ // src/primitives/icon/svg/sparkles-filled.tsx
3379
+ var import_jsx_runtime75 = require("react/jsx-runtime");
3380
+ var SparklesFilledIcon = (_a) => {
3381
+ var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3382
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
3234
3383
  "svg",
3235
3384
  __spreadProps(__spreadValues(__spreadValues({
3236
3385
  xmlns: "http://www.w3.org/2000/svg",
@@ -3241,15 +3390,15 @@ var SparklesFilledIcon = (_a) => {
3241
3390
  className
3242
3391
  }, getIconA11yProps(title)), props), {
3243
3392
  children: [
3244
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("g", { clipPath: "url(#clip0_2028_8371)", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
3393
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("g", { clipPath: "url(#clip0_2028_8371)", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3245
3394
  "path",
3246
3395
  {
3247
3396
  d: "M13.0001 15.9999C12.8668 16 12.7366 15.9602 12.6262 15.8856C12.5158 15.8109 12.4303 15.705 12.3807 15.5813L11.8181 14.1726L10.4074 13.5786C10.2864 13.5252 10.1839 13.4372 10.1127 13.3256C10.0416 13.2141 10.0049 13.0841 10.0074 12.9518C10.0099 12.8196 10.0514 12.691 10.1267 12.5823C10.202 12.4735 10.3078 12.3894 10.4307 12.3406L11.8227 11.8133L12.3807 10.4186C12.4321 10.2967 12.5182 10.1927 12.6284 10.1195C12.7385 10.0464 12.8678 10.0074 13.0001 10.0074C13.1323 10.0074 13.2616 10.0464 13.3718 10.1195C13.482 10.1927 13.5681 10.2967 13.6194 10.4186L14.1801 11.8186L15.5801 12.3793C15.7022 12.4303 15.8065 12.5164 15.8799 12.6266C15.9532 12.7368 15.9923 12.8662 15.9923 12.9986C15.9923 13.131 15.9532 13.2604 15.8799 13.3706C15.8065 13.4808 15.7022 13.5668 15.5801 13.6179L14.1801 14.1786L13.6194 15.5786C13.5703 15.7028 13.4849 15.8093 13.3745 15.8845C13.2641 15.9596 13.1336 15.9998 13.0001 15.9999ZM6.66674 13.9999C6.37872 14.0034 6.09733 13.9135 5.86467 13.7437C5.63201 13.5739 5.46059 13.3333 5.37607 13.0579L4.30007 9.69326L0.92474 8.56393C0.652316 8.47287 0.415886 8.29758 0.249599 8.06337C0.0833117 7.82916 -0.00422421 7.54815 -0.000366007 7.26094C0.0034922 6.97372 0.0985448 6.69517 0.271063 6.46551C0.443581 6.23585 0.684635 6.06697 0.959407 5.98326L4.30807 4.9606L5.43607 1.59126C5.51994 1.31451 5.69343 1.07349 5.92924 0.906102C6.16505 0.738716 6.44981 0.654464 6.73874 0.666597C7.02681 0.666987 7.307 0.76066 7.53738 0.933596C7.76776 1.10653 7.93594 1.34943 8.01674 1.62593L9.03807 4.96926L12.3914 6.0426C12.6619 6.13332 12.897 6.30672 13.0636 6.53831C13.2302 6.7699 13.3198 7.04798 13.3198 7.33326C13.3198 7.61855 13.2302 7.89662 13.0636 8.12822C12.897 8.35981 12.6619 8.53321 12.3914 8.62393L9.03207 9.6986L7.95741 13.0579C7.87289 13.3333 7.70147 13.5739 7.46881 13.7437C7.23615 13.9135 6.95476 14.0034 6.66674 13.9999ZM13.6667 4.6666C13.5181 4.66659 13.3738 4.61693 13.2566 4.52549C13.1394 4.43406 13.0562 4.30609 13.0201 4.16193L12.7821 3.2086L11.8267 2.95193C11.6832 2.91335 11.5566 2.82788 11.4672 2.70911C11.3777 2.59033 11.3306 2.44507 11.3332 2.29641C11.3358 2.14776 11.388 2.00424 11.4815 1.88867C11.5751 1.7731 11.7046 1.69212 11.8494 1.6586L12.7827 1.44193L13.0201 0.504597C13.0562 0.360445 13.1395 0.232498 13.2566 0.141076C13.3738 0.0496542 13.5181 0 13.6667 0C13.8154 0 13.9597 0.0496542 14.0769 0.141076C14.194 0.232498 14.2773 0.360445 14.3134 0.504597L14.5494 1.44993L15.4947 1.6866C15.6389 1.72272 15.7668 1.80598 15.8583 1.92314C15.9497 2.0403 15.9993 2.18465 15.9993 2.33326C15.9993 2.48187 15.9497 2.62622 15.8583 2.74338C15.7668 2.86055 15.6389 2.9438 15.4947 2.97993L14.5494 3.2166L14.3134 4.16193C14.2773 4.30609 14.194 4.43406 14.0769 4.52549C13.9597 4.61693 13.8154 4.66659 13.6667 4.6666Z",
3248
3397
  fill: "currentColor"
3249
3398
  }
3250
3399
  ) }),
3251
- /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("defs", { children: [
3252
- /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
3400
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("defs", { children: [
3401
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
3253
3402
  "linearGradient",
3254
3403
  {
3255
3404
  id: "paint0_linear_2028_8371",
@@ -3259,12 +3408,12 @@ var SparklesFilledIcon = (_a) => {
3259
3408
  y2: "7.99997",
3260
3409
  gradientUnits: "userSpaceOnUse",
3261
3410
  children: [
3262
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("stop", { stopColor: "currentColor" }),
3263
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("stop", { offset: "1", stopColor: "currentColor" })
3411
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("stop", { stopColor: "currentColor" }),
3412
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("stop", { offset: "1", stopColor: "currentColor" })
3264
3413
  ]
3265
3414
  }
3266
3415
  ),
3267
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("clipPath", { id: "clip0_2028_8371", children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("rect", { width: "16", height: "16", fill: "white" }) })
3416
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("clipPath", { id: "clip0_2028_8371", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("rect", { width: "16", height: "16", fill: "white" }) })
3268
3417
  ] })
3269
3418
  ]
3270
3419
  })
@@ -3273,10 +3422,10 @@ var SparklesFilledIcon = (_a) => {
3273
3422
  SparklesFilledIcon.displayName = "SparklesFilledIcon";
3274
3423
 
3275
3424
  // src/primitives/icon/svg/spinner.tsx
3276
- var import_jsx_runtime72 = require("react/jsx-runtime");
3425
+ var import_jsx_runtime76 = require("react/jsx-runtime");
3277
3426
  var SpinnerIcon = (_a) => {
3278
3427
  var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3279
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
3428
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
3280
3429
  "svg",
3281
3430
  __spreadProps(__spreadValues(__spreadValues({
3282
3431
  width: "26",
@@ -3287,8 +3436,8 @@ var SpinnerIcon = (_a) => {
3287
3436
  className
3288
3437
  }, getIconA11yProps(title)), props), {
3289
3438
  children: [
3290
- title ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("title", { children: title }) : null,
3291
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
3439
+ title ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("title", { children: title }) : null,
3440
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
3292
3441
  "path",
3293
3442
  {
3294
3443
  d: "M13 1C10.5371 1 8.13377 1.75785 6.11636 3.17068C4.09894 4.58352 2.56512 6.58289 1.72308 8.89742C0.88105 11.212 0.771596 13.7295 1.40958 16.1084C2.04756 18.4873 3.40208 20.6122 5.28926 22.1948C7.17645 23.7774 9.5049 24.741 11.9585 24.9547C14.4122 25.1685 16.8722 24.6221 19.0046 23.3896C21.137 22.1572 22.8386 20.2985 23.8783 18.0658C24.918 15.8331 25.2456 13.3345 24.8165 10.9092",
@@ -3304,10 +3453,10 @@ var SpinnerIcon = (_a) => {
3304
3453
  SpinnerIcon.displayName = "SpinnerIcon";
3305
3454
 
3306
3455
  // src/primitives/icon/svg/stay-in-control.tsx
3307
- var import_jsx_runtime73 = require("react/jsx-runtime");
3456
+ var import_jsx_runtime77 = require("react/jsx-runtime");
3308
3457
  var StayInControlIcon = (_a) => {
3309
3458
  var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3310
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
3459
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
3311
3460
  "svg",
3312
3461
  __spreadProps(__spreadValues(__spreadValues({
3313
3462
  width: "28",
@@ -3318,16 +3467,16 @@ var StayInControlIcon = (_a) => {
3318
3467
  className
3319
3468
  }, getIconA11yProps(title)), props), {
3320
3469
  children: [
3321
- title ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("title", { children: title }) : null,
3322
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("g", { clipPath: "url(#clip0_stay_in_control)", children: [
3323
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3470
+ title ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("title", { children: title }) : null,
3471
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("g", { clipPath: "url(#clip0_stay_in_control)", children: [
3472
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
3324
3473
  "path",
3325
3474
  {
3326
3475
  d: "M14 27.9406C13.9102 27.9406 13.8215 27.9196 13.7387 27.8788L13.2428 27.6314C10.6832 26.3504 2.32983 21.5753 2.32983 13.8648L2.33217 7.62776C2.33217 5.36093 3.77767 3.35776 5.93017 2.64493L13.8168 0.0292617C13.9358 -0.010405 14.0653 -0.010405 14.1832 0.0292617L22.0687 2.64376C24.2212 3.35776 25.6667 5.36093 25.6667 7.6266L25.6632 13.8636C25.6632 22.6113 17.2958 26.6584 14.7315 27.6909L14.217 27.8974C14.147 27.9254 14.0723 27.9394 13.9988 27.9394L14 27.9406ZM14 1.19826L6.29767 3.7521C4.6235 4.30743 3.5 5.86493 3.5 7.62776L3.49767 13.8648C3.49767 20.9056 11.3563 25.3844 13.7655 26.5884L14.0268 26.7191L14.2975 26.6106C16.6903 25.6481 24.4977 21.8833 24.4977 13.8659L24.5012 7.62893C24.5012 5.8661 23.3765 4.3086 21.7035 3.75326L14 1.19826Z",
3327
3476
  fill: "currentColor"
3328
3477
  }
3329
3478
  ),
3330
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
3479
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
3331
3480
  "path",
3332
3481
  {
3333
3482
  d: "M12.8112 17.5001C12.0633 17.5001 11.3155 17.2154 10.7462 16.6461L7.18083 13.2569C6.94749 13.0352 6.93816 12.6654 7.15983 12.4321C7.38149 12.1999 7.75016 12.1894 7.98466 12.4111L11.5605 15.8107C12.2535 16.5026 13.363 16.5037 14.0455 15.8212L20.5928 9.49791C20.8262 9.27508 21.196 9.28208 21.4177 9.51308C21.6417 9.74408 21.6358 10.1139 21.4037 10.3379L14.8622 16.6542C14.2987 17.2177 13.5543 17.5012 12.81 17.5012L12.8112 17.5001Z",
@@ -3335,7 +3484,7 @@ var StayInControlIcon = (_a) => {
3335
3484
  }
3336
3485
  )
3337
3486
  ] }),
3338
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("clipPath", { id: "clip0_stay_in_control", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("rect", { width: "28", height: "28", fill: "white" }) }) })
3487
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("clipPath", { id: "clip0_stay_in_control", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("rect", { width: "28", height: "28", fill: "white" }) }) })
3339
3488
  ]
3340
3489
  })
3341
3490
  );
@@ -3343,10 +3492,10 @@ var StayInControlIcon = (_a) => {
3343
3492
  StayInControlIcon.displayName = "StayInControlIcon";
3344
3493
 
3345
3494
  // src/primitives/icon/svg/success-check.tsx
3346
- var import_jsx_runtime74 = require("react/jsx-runtime");
3495
+ var import_jsx_runtime78 = require("react/jsx-runtime");
3347
3496
  var SuccessCheckIcon = (_a) => {
3348
3497
  var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3349
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
3498
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
3350
3499
  "svg",
3351
3500
  __spreadProps(__spreadValues(__spreadValues({
3352
3501
  width: "24",
@@ -3357,8 +3506,8 @@ var SuccessCheckIcon = (_a) => {
3357
3506
  className
3358
3507
  }, getIconA11yProps(title)), props), {
3359
3508
  children: [
3360
- title ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("title", { children: title }) : null,
3361
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
3509
+ title ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("title", { children: title }) : null,
3510
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3362
3511
  "path",
3363
3512
  {
3364
3513
  d: "M7.74919 20.6626C7.06793 20.6629 6.41457 20.3921 5.93325 19.91L0.443061 14.4219C-0.147687 13.8309 -0.147687 12.873 0.443061 12.2821C1.034 11.6913 1.99191 11.6913 2.58284 12.2821L7.74919 17.4484L21.4172 3.78046C22.0081 3.18972 22.966 3.18972 23.5569 3.78046C24.1477 4.3714 24.1477 5.32931 23.5569 5.92024L9.56513 19.91C9.08381 20.3921 8.43045 20.6629 7.74919 20.6626Z",
@@ -3372,10 +3521,10 @@ var SuccessCheckIcon = (_a) => {
3372
3521
  SuccessCheckIcon.displayName = "SuccessCheckIcon";
3373
3522
 
3374
3523
  // src/primitives/icon/svg/telegram.tsx
3375
- var import_jsx_runtime75 = require("react/jsx-runtime");
3524
+ var import_jsx_runtime79 = require("react/jsx-runtime");
3376
3525
  var TelegramIcon = (_a) => {
3377
3526
  var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3378
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
3527
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
3379
3528
  "svg",
3380
3529
  __spreadProps(__spreadValues(__spreadValues({
3381
3530
  viewBox: "0 0 20 20",
@@ -3383,8 +3532,8 @@ var TelegramIcon = (_a) => {
3383
3532
  fill: "none"
3384
3533
  }, getIconA11yProps(title)), props), {
3385
3534
  children: [
3386
- title ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("title", { children: title }) : null,
3387
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("g", { clipPath: "url(#clip0_telegram)", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
3535
+ title ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("title", { children: title }) : null,
3536
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("g", { clipPath: "url(#clip0_telegram)", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
3388
3537
  "path",
3389
3538
  {
3390
3539
  fillRule: "evenodd",
@@ -3393,7 +3542,7 @@ var TelegramIcon = (_a) => {
3393
3542
  fill: "currentColor"
3394
3543
  }
3395
3544
  ) }),
3396
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("clipPath", { id: "clip0_telegram", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("rect", { width: "20", height: "20", fill: "white" }) }) })
3545
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("clipPath", { id: "clip0_telegram", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("rect", { width: "20", height: "20", fill: "white" }) }) })
3397
3546
  ]
3398
3547
  })
3399
3548
  );
@@ -3401,10 +3550,10 @@ var TelegramIcon = (_a) => {
3401
3550
  TelegramIcon.displayName = "TelegramIcon";
3402
3551
 
3403
3552
  // src/primitives/icon/svg/triangle-down.tsx
3404
- var import_jsx_runtime76 = require("react/jsx-runtime");
3553
+ var import_jsx_runtime80 = require("react/jsx-runtime");
3405
3554
  var TriangleDownIcon = (_a) => {
3406
3555
  var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3407
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
3556
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
3408
3557
  "svg",
3409
3558
  __spreadProps(__spreadValues(__spreadValues({
3410
3559
  viewBox: "0 0 8 8",
@@ -3412,16 +3561,16 @@ var TriangleDownIcon = (_a) => {
3412
3561
  fill: "none"
3413
3562
  }, getIconA11yProps(title)), props), {
3414
3563
  children: [
3415
- title ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("title", { children: title }) : null,
3416
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("g", { transform: "scale(1,-1) translate(0,-8)", clipPath: "url(#triangle_up)", children: [
3417
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
3564
+ title ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("title", { children: title }) : null,
3565
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("g", { transform: "scale(1,-1) translate(0,-8)", clipPath: "url(#triangle_up)", children: [
3566
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3418
3567
  "path",
3419
3568
  {
3420
3569
  d: "M3.99989 1.6805L6.23917 6.72896H1.76061L3.99989 1.6805ZM3.99989 0.366097C3.87788 0.36535 3.75832 0.400347 3.65596 0.466768C3.55361 0.53319 3.47295 0.628129 3.42393 0.739866L0.362237 7.63838H7.63755L4.57737 0.739866C4.52825 0.62789 4.44735 0.532789 4.3447 0.46635C4.24205 0.39991 4.12216 0.365052 3.99989 0.366097Z",
3421
3570
  fill: "currentColor"
3422
3571
  }
3423
3572
  ),
3424
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
3573
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3425
3574
  "path",
3426
3575
  {
3427
3576
  d: "M4.00167 0.00284122C4.19344 0.00214978 4.38147 0.0566837 4.54252 0.160923C4.70445 0.265758 4.83154 0.416026 4.90931 0.592539L7.9697 7.4913L8.19705 8.00195H-0.197266L3.09048 0.593427C3.16804 0.41669 3.29625 0.26688 3.45815 0.161811C3.61872 0.0576301 3.80589 0.00261591 3.99723 0.00284122H3.99989L4.00256 0.00195312L4.00167 0.00284122ZM3.99989 0.366097C3.87788 0.36535 3.75832 0.400347 3.65596 0.466768L3.58337 0.521491C3.51516 0.581467 3.46071 0.656022 3.42393 0.739866L0.362237 7.63838H7.63755L4.57737 0.739866C4.54053 0.655873 4.48567 0.581521 4.4173 0.521491L4.3447 0.46635C4.24205 0.39991 4.12216 0.365052 3.99989 0.366097ZM6.23917 6.72896H1.76061L3.99989 1.6805L6.23917 6.72896ZM2.31961 6.36519H5.68018L3.99989 2.57655L2.31961 6.36519Z",
@@ -3429,7 +3578,7 @@ var TriangleDownIcon = (_a) => {
3429
3578
  }
3430
3579
  )
3431
3580
  ] }),
3432
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("clipPath", { id: "triangle_up", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("rect", { width: "8", height: "8", fill: "white" }) }) })
3581
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("clipPath", { id: "triangle_up", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("rect", { width: "8", height: "8", fill: "white" }) }) })
3433
3582
  ]
3434
3583
  })
3435
3584
  );
@@ -3437,10 +3586,10 @@ var TriangleDownIcon = (_a) => {
3437
3586
  TriangleDownIcon.displayName = "TriangleDownIcon";
3438
3587
 
3439
3588
  // src/primitives/icon/svg/triangle-up.tsx
3440
- var import_jsx_runtime77 = require("react/jsx-runtime");
3589
+ var import_jsx_runtime81 = require("react/jsx-runtime");
3441
3590
  var TriangleUpIcon = (_a) => {
3442
3591
  var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3443
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
3592
+ return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
3444
3593
  "svg",
3445
3594
  __spreadProps(__spreadValues(__spreadValues({
3446
3595
  viewBox: "0 0 8 8",
@@ -3448,16 +3597,16 @@ var TriangleUpIcon = (_a) => {
3448
3597
  fill: "none"
3449
3598
  }, getIconA11yProps(title)), props), {
3450
3599
  children: [
3451
- title ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("title", { children: title }) : null,
3452
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("g", { clipPath: "url(#triangle_up)", children: [
3453
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
3600
+ title ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("title", { children: title }) : null,
3601
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("g", { clipPath: "url(#triangle_up)", children: [
3602
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3454
3603
  "path",
3455
3604
  {
3456
3605
  d: "M3.99989 1.6805L6.23917 6.72896H1.76061L3.99989 1.6805ZM3.99989 0.366097C3.87788 0.36535 3.75832 0.400347 3.65596 0.466768C3.55361 0.53319 3.47295 0.628129 3.42393 0.739866L0.362237 7.63838H7.63755L4.57737 0.739866C4.52825 0.62789 4.44735 0.532789 4.3447 0.46635C4.24205 0.39991 4.12216 0.365052 3.99989 0.366097Z",
3457
3606
  fill: "currentColor"
3458
3607
  }
3459
3608
  ),
3460
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
3609
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3461
3610
  "path",
3462
3611
  {
3463
3612
  d: "M4.00167 0.00284122C4.19344 0.00214978 4.38147 0.0566837 4.54252 0.160923C4.70445 0.265758 4.83154 0.416026 4.90931 0.592539L7.9697 7.4913L8.19705 8.00195H-0.197266L3.09048 0.593427C3.16804 0.41669 3.29625 0.26688 3.45815 0.161811C3.61872 0.0576301 3.80589 0.00261591 3.99723 0.00284122H3.99989L4.00256 0.00195312L4.00167 0.00284122ZM3.99989 0.366097C3.87788 0.36535 3.75832 0.400347 3.65596 0.466768L3.58337 0.521491C3.51516 0.581467 3.46071 0.656022 3.42393 0.739866L0.362237 7.63838H7.63755L4.57737 0.739866C4.54053 0.655873 4.48567 0.581521 4.4173 0.521491L4.3447 0.46635C4.24205 0.39991 4.12216 0.365052 3.99989 0.366097ZM6.23917 6.72896H1.76061L3.99989 1.6805L6.23917 6.72896ZM2.31961 6.36519H5.68018L3.99989 2.57655L2.31961 6.36519Z",
@@ -3465,7 +3614,7 @@ var TriangleUpIcon = (_a) => {
3465
3614
  }
3466
3615
  )
3467
3616
  ] }),
3468
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("clipPath", { id: "triangle_up", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("rect", { width: "8", height: "8", fill: "white" }) }) })
3617
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("clipPath", { id: "triangle_up", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("rect", { width: "8", height: "8", fill: "white" }) }) })
3469
3618
  ]
3470
3619
  })
3471
3620
  );
@@ -3473,10 +3622,10 @@ var TriangleUpIcon = (_a) => {
3473
3622
  TriangleUpIcon.displayName = "TriangleUpIcon";
3474
3623
 
3475
3624
  // src/primitives/icon/svg/triangle-up-filled.tsx
3476
- var import_jsx_runtime78 = require("react/jsx-runtime");
3625
+ var import_jsx_runtime82 = require("react/jsx-runtime");
3477
3626
  var TriangleUpFilledIcon = (_a) => {
3478
3627
  var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3479
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
3628
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
3480
3629
  "svg",
3481
3630
  __spreadProps(__spreadValues(__spreadValues({
3482
3631
  viewBox: "0 0 8 8",
@@ -3484,8 +3633,8 @@ var TriangleUpFilledIcon = (_a) => {
3484
3633
  fill: "none"
3485
3634
  }, getIconA11yProps(title)), props), {
3486
3635
  children: [
3487
- title ? /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("title", { children: title }) : null,
3488
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
3636
+ title ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("title", { children: title }) : null,
3637
+ /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3489
3638
  "path",
3490
3639
  {
3491
3640
  d: "M6.67873 8.00001H1.3214C1.09613 8.00053 0.874481 7.94332 0.677605 7.83384C0.480728 7.72435 0.315192 7.56625 0.196788 7.3746C0.0783848 7.18296 0.0110649 6.96417 0.00125164 6.73911C-0.0085616 6.51405 0.0394592 6.29023 0.140732 6.08901L2.81973 0.729677C2.92186 0.523193 3.0766 0.347273 3.26837 0.219641C3.46014 0.0920097 3.68216 0.0171748 3.91207 0.00267686C4.17147 -0.013831 4.43 0.0462826 4.6555 0.175542C4.88101 0.3048 5.06354 0.497501 5.1804 0.729677L7.8594 6.08901C7.96008 6.2903 8.00764 6.51398 7.99756 6.73881C7.98748 6.96365 7.92009 7.18218 7.8018 7.37365C7.68351 7.56512 7.51823 7.72317 7.32167 7.83279C7.12511 7.94242 6.90379 7.99998 6.67873 8.00001Z",
@@ -3499,10 +3648,10 @@ var TriangleUpFilledIcon = (_a) => {
3499
3648
  TriangleUpFilledIcon.displayName = "TriangleUpFilledIcon";
3500
3649
 
3501
3650
  // src/primitives/icon/svg/twitter.tsx
3502
- var import_jsx_runtime79 = require("react/jsx-runtime");
3651
+ var import_jsx_runtime83 = require("react/jsx-runtime");
3503
3652
  var TwitterIcon = (_a) => {
3504
3653
  var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3505
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
3654
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
3506
3655
  "svg",
3507
3656
  __spreadProps(__spreadValues(__spreadValues({
3508
3657
  viewBox: "0 0 24 24",
@@ -3510,8 +3659,8 @@ var TwitterIcon = (_a) => {
3510
3659
  fill: "none"
3511
3660
  }, getIconA11yProps(title)), props), {
3512
3661
  children: [
3513
- title ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("title", { children: title }) : null,
3514
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
3662
+ title ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("title", { children: title }) : null,
3663
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3515
3664
  "path",
3516
3665
  {
3517
3666
  d: "M18.325 2H21.7002L14.3283 10.4233L23 21.8871H16.2121L10.8918 14.936L4.81058 21.8871H1.42992L9.31325 12.8753L1 2H7.96025L12.7645 8.35342L18.325 2ZM17.1398 19.8695H19.0088L6.94183 3.91217H4.93433L17.1398 19.8695Z",
@@ -3525,10 +3674,10 @@ var TwitterIcon = (_a) => {
3525
3674
  TwitterIcon.displayName = "TwitterIcon";
3526
3675
 
3527
3676
  // src/primitives/icon/svg/upload.tsx
3528
- var import_jsx_runtime80 = require("react/jsx-runtime");
3677
+ var import_jsx_runtime84 = require("react/jsx-runtime");
3529
3678
  var UploadIcon = (_a) => {
3530
3679
  var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3531
- return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
3680
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
3532
3681
  "svg",
3533
3682
  __spreadProps(__spreadValues(__spreadValues({
3534
3683
  viewBox: "0 0 16 16",
@@ -3536,16 +3685,16 @@ var UploadIcon = (_a) => {
3536
3685
  fill: "none"
3537
3686
  }, getIconA11yProps(title)), props), {
3538
3687
  children: [
3539
- title ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("title", { children: title }) : null,
3540
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("g", { clipPath: "url(#upload-clip)", children: [
3541
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3688
+ title ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("title", { children: title }) : null,
3689
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("g", { clipPath: "url(#upload-clip)", children: [
3690
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3542
3691
  "path",
3543
3692
  {
3544
3693
  d: "M7.33755 1.71857L7.33288 12.0106C7.33288 12.1874 7.40312 12.357 7.52814 12.482C7.65317 12.607 7.82274 12.6772 7.99955 12.6772C8.17636 12.6772 8.34593 12.607 8.47095 12.482C8.59598 12.357 8.66621 12.1874 8.66621 12.0106L8.67088 1.7299L10.6122 3.6719C10.7372 3.79688 10.9068 3.86709 11.0835 3.86709C11.2603 3.86709 11.4299 3.79688 11.5549 3.6719C11.6799 3.54689 11.7501 3.37735 11.7501 3.20057C11.7501 3.02379 11.6799 2.85426 11.5549 2.72924L9.41421 0.585904C9.22848 0.400051 9.00795 0.252617 8.76521 0.152028C8.52248 0.0514383 8.2623 -0.000335693 7.99955 -0.000335693C7.7368 -0.000335693 7.47662 0.0514383 7.23388 0.152028C6.99115 0.252617 6.77061 0.400051 6.58488 0.585904L4.44421 2.72724C4.31923 2.85226 4.24902 3.02179 4.24902 3.19857C4.24902 3.37535 4.31923 3.54489 4.44421 3.6699C4.56923 3.79488 4.73877 3.86509 4.91555 3.86509C5.09232 3.86509 5.26186 3.79488 5.38688 3.6699L7.33755 1.71857Z",
3545
3694
  fill: "currentColor"
3546
3695
  }
3547
3696
  ),
3548
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
3697
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3549
3698
  "path",
3550
3699
  {
3551
3700
  d: "M14.6667 11.3333V14C14.6667 14.1768 14.5964 14.3464 14.4714 14.4714C14.3464 14.5964 14.1768 14.6667 14 14.6667H2C1.82319 14.6667 1.65362 14.5964 1.5286 14.4714C1.40357 14.3464 1.33333 14.1768 1.33333 14V11.3333C1.33333 11.1565 1.2631 10.9869 1.13807 10.8619C1.01305 10.7369 0.843478 10.6667 0.666667 10.6667C0.489856 10.6667 0.320286 10.7369 0.195262 10.8619C0.0702379 10.9869 0 11.1565 0 11.3333L0 14C0 14.5304 0.210714 15.0391 0.585786 15.4142C0.960859 15.7893 1.46957 16 2 16H14C14.5304 16 15.0391 15.7893 15.4142 15.4142C15.7893 15.0391 16 14.5304 16 14V11.3333C16 11.1565 15.9298 10.9869 15.8047 10.8619C15.6797 10.7369 15.5101 10.6667 15.3333 10.6667C15.1565 10.6667 14.987 10.7369 14.8619 10.8619C14.7369 10.9869 14.6667 11.1565 14.6667 11.3333Z",
@@ -3553,7 +3702,7 @@ var UploadIcon = (_a) => {
3553
3702
  }
3554
3703
  )
3555
3704
  ] }),
3556
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("clipPath", { id: "upload-clip", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
3705
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("clipPath", { id: "upload-clip", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
3557
3706
  ]
3558
3707
  })
3559
3708
  );
@@ -3561,10 +3710,10 @@ var UploadIcon = (_a) => {
3561
3710
  UploadIcon.displayName = "UploadIcon";
3562
3711
 
3563
3712
  // src/primitives/icon/svg/user-trust.tsx
3564
- var import_jsx_runtime81 = require("react/jsx-runtime");
3713
+ var import_jsx_runtime85 = require("react/jsx-runtime");
3565
3714
  var UserTrustIcon = (_a) => {
3566
3715
  var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3567
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
3716
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
3568
3717
  "svg",
3569
3718
  __spreadProps(__spreadValues(__spreadValues({
3570
3719
  xmlns: "http://www.w3.org/2000/svg",
@@ -3573,15 +3722,15 @@ var UserTrustIcon = (_a) => {
3573
3722
  className
3574
3723
  }, getIconA11yProps(title)), props), {
3575
3724
  children: [
3576
- title ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("title", { children: title }) : null,
3577
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("g", { clipPath: "url(#clip0_user_trust)", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
3725
+ title ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("title", { children: title }) : null,
3726
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("g", { clipPath: "url(#clip0_user_trust)", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3578
3727
  "path",
3579
3728
  {
3580
3729
  d: "M22.5 30C14.2275 30 7.5 23.2725 7.5 15C7.5 6.7275 14.2275 0 22.5 0C30.7725 0 37.5 6.7275 37.5 15C37.5 23.2725 30.7725 30 22.5 30ZM22.5 2.5C15.6075 2.5 10 8.1075 10 15C10 21.8925 15.6075 27.5 22.5 27.5C29.3925 27.5 35 21.8925 35 15C35 8.1075 29.3925 2.5 22.5 2.5ZM2.5 58.75V57.5C2.5 46.9175 10.7675 38.1475 21.3225 37.535C22.0125 37.495 22.5375 36.905 22.4975 36.215C22.4575 35.5275 21.87 34.96 21.1775 35.04C9.3025 35.7275 0 45.5925 0 57.5V58.75C0 59.44 0.56 60 1.25 60C1.94 60 2.5 59.44 2.5 58.75ZM43.75 60C34.79 60 27.5 52.71 27.5 43.75C27.5 34.79 34.79 27.5 43.75 27.5C52.71 27.5 60 34.79 60 43.75C60 52.71 52.71 60 43.75 60ZM43.75 30C36.1675 30 30 36.17 30 43.75C30 51.33 36.1675 57.5 43.75 57.5C51.3325 57.5 57.5 51.33 57.5 43.75C57.5 36.17 51.3325 30 43.75 30ZM45.3375 48.66L52.095 42.125C52.59 41.645 52.605 40.8525 52.125 40.3575C51.6475 39.8625 50.8575 39.85 50.3575 40.3275L43.5925 46.8725C42.7525 47.7 41.38 47.705 40.535 46.8825L37.1275 43.52C36.6375 43.035 35.845 43.04 35.36 43.53C34.875 44.0225 34.88 44.815 35.3725 45.2975L38.7825 48.665C39.6875 49.55 40.875 49.9925 42.0625 49.9925C43.25 49.9925 44.4375 49.5475 45.3375 48.66Z",
3581
3730
  fill: "currentColor"
3582
3731
  }
3583
3732
  ) }),
3584
- /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("clipPath", { id: "clip0_user_trust", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("rect", { width: "60", height: "60", fill: "white" }) }) })
3733
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("clipPath", { id: "clip0_user_trust", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("rect", { width: "60", height: "60", fill: "white" }) }) })
3585
3734
  ]
3586
3735
  })
3587
3736
  );
@@ -3589,10 +3738,10 @@ var UserTrustIcon = (_a) => {
3589
3738
  UserTrustIcon.displayName = "UserTrustIcon";
3590
3739
 
3591
3740
  // src/primitives/icon/svg/usdc.tsx
3592
- var import_jsx_runtime82 = require("react/jsx-runtime");
3741
+ var import_jsx_runtime86 = require("react/jsx-runtime");
3593
3742
  var UsdcIcon = (_a) => {
3594
3743
  var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3595
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
3744
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
3596
3745
  "svg",
3597
3746
  __spreadProps(__spreadValues(__spreadValues({
3598
3747
  viewBox: "0 0 32 32",
@@ -3600,16 +3749,16 @@ var UsdcIcon = (_a) => {
3600
3749
  fill: "none"
3601
3750
  }, getIconA11yProps(title)), props), {
3602
3751
  children: [
3603
- title ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("title", { children: title }) : null,
3604
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("circle", { cx: "16", cy: "16", r: "16", fill: "#2775CA" }),
3605
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3752
+ title ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("title", { children: title }) : null,
3753
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("circle", { cx: "16", cy: "16", r: "16", fill: "#2775CA" }),
3754
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
3606
3755
  "path",
3607
3756
  {
3608
3757
  d: "M20.4 18.6c0-2.2-1.3-3-3.9-3.3-1.9-.3-2.3-.8-2.3-1.7s.7-1.5 2.1-1.5c1.2 0 1.9.4 2.2 1.4.1.2.2.3.4.3h1c.2 0 .4-.2.4-.4-.2-1.3-1.1-2.4-2.6-2.7v-1.5c0-.2-.2-.4-.5-.4h-.9c-.2 0-.4.2-.5.4v1.5c-1.7.3-2.8 1.4-2.8 2.9 0 2.1 1.3 2.8 3.9 3.2 1.7.3 2.3.8 2.3 1.8s-.9 1.7-2.2 1.7c-1.7 0-2.3-.7-2.5-1.6-.1-.2-.2-.3-.4-.3h-1c-.2 0-.4.2-.4.4.3 1.6 1.3 2.6 3.1 2.9v1.5c0 .2.2.4.5.4h.9c.2 0 .4-.2.5-.4v-1.5c1.7-.3 2.8-1.5 2.8-3.1z",
3609
3758
  fill: "#fff"
3610
3759
  }
3611
3760
  ),
3612
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
3761
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
3613
3762
  "path",
3614
3763
  {
3615
3764
  d: "M13.1 25.2c-4.6-1.6-7-6.7-5.3-11.3 1-2.7 3.1-4.5 5.7-5.3.2-.1.4-.3.4-.5v-.9c0-.2-.2-.4-.4-.4h-.1c-5.3 1.6-8.3 7.3-6.7 12.6 1 3.3 3.5 5.8 6.8 6.8.2.1.5-.1.5-.3v-.9c-.1-.3-.2-.5-.5-.6l-.4-.2zM19.3 6.8c-.2-.1-.5.1-.5.3v.9c0 .2.2.5.4.6 4.6 1.6 7 6.7 5.3 11.3-1 2.7-3.1 4.5-5.7 5.3-.2.1-.4.3-.4.5v.9c0 .2.2.4.4.4h.1c5.3-1.6 8.3-7.3 6.7-12.6-1-3.3-3.5-5.8-6.8-6.8l.5.2z",
@@ -3623,10 +3772,10 @@ var UsdcIcon = (_a) => {
3623
3772
  UsdcIcon.displayName = "UsdcIcon";
3624
3773
 
3625
3774
  // src/primitives/icon/svg/wallet.tsx
3626
- var import_jsx_runtime83 = require("react/jsx-runtime");
3775
+ var import_jsx_runtime87 = require("react/jsx-runtime");
3627
3776
  var WalletIcon = (_a) => {
3628
3777
  var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3629
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
3778
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
3630
3779
  "svg",
3631
3780
  __spreadProps(__spreadValues(__spreadValues({
3632
3781
  viewBox: "0 0 24 24",
@@ -3634,8 +3783,8 @@ var WalletIcon = (_a) => {
3634
3783
  fill: "none"
3635
3784
  }, getIconA11yProps(title)), props), {
3636
3785
  children: [
3637
- title ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("title", { children: title }) : null,
3638
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
3786
+ title ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("title", { children: title }) : null,
3787
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3639
3788
  "path",
3640
3789
  {
3641
3790
  d: "M21.5 6H4.5C3.354 6 2.279 5.433 1.628 4.501C2.262 3.594 3.313 3 4.5 3H23.5C23.776 3 24 2.776 24 2.5C24 2.224 23.776 2 23.5 2H4.5C2.015 2 0 4.015 0 6.5V17.5C0 19.985 2.015 22 4.5 22H21.5C22.881 22 24 20.881 24 19.5V8.5C24 7.119 22.881 6 21.5 6ZM23 19.5C23 20.327 22.327 21 21.5 21H4.5C2.57 21 1 19.43 1 17.5V6.5C1 6.152 1.051 5.816 1.146 5.499C1.992 6.441 3.21 7 4.5 7H21.5C22.327 7 23 7.673 23 8.5V19.5ZM21 14C21 14.552 20.552 15 20 15C19.448 15 19 14.552 19 14C19 13.448 19.448 13 20 13C20.552 13 21 13.448 21 14Z",
@@ -3649,10 +3798,10 @@ var WalletIcon = (_a) => {
3649
3798
  WalletIcon.displayName = "WalletIcon";
3650
3799
 
3651
3800
  // src/primitives/icon/svg/wallet-avatar.tsx
3652
- var import_jsx_runtime84 = require("react/jsx-runtime");
3801
+ var import_jsx_runtime88 = require("react/jsx-runtime");
3653
3802
  function WalletAvatarIcon(_a) {
3654
3803
  var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3655
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
3804
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
3656
3805
  "svg",
3657
3806
  __spreadProps(__spreadValues(__spreadValues({
3658
3807
  fill: "none",
@@ -3660,9 +3809,9 @@ function WalletAvatarIcon(_a) {
3660
3809
  viewBox: "0 0 16 16"
3661
3810
  }, getIconA11yProps(title)), props), {
3662
3811
  children: [
3663
- title ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("title", { children: title }) : null,
3664
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("circle", { cx: "8", cy: "5.25", r: "2.25", fill: "currentColor" }),
3665
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("path", { d: "M3.75 12.75a4.25 4.25 0 0 1 8.5 0v.25h-8.5v-.25Z", fill: "currentColor" })
3812
+ title ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("title", { children: title }) : null,
3813
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("circle", { cx: "8", cy: "5.25", r: "2.25", fill: "currentColor" }),
3814
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("path", { d: "M3.75 12.75a4.25 4.25 0 0 1 8.5 0v.25h-8.5v-.25Z", fill: "currentColor" })
3666
3815
  ]
3667
3816
  })
3668
3817
  );
@@ -3670,10 +3819,10 @@ function WalletAvatarIcon(_a) {
3670
3819
  WalletAvatarIcon.displayName = "WalletAvatarIcon";
3671
3820
 
3672
3821
  // src/primitives/icon/svg/wallet-filled.tsx
3673
- var import_jsx_runtime85 = require("react/jsx-runtime");
3822
+ var import_jsx_runtime89 = require("react/jsx-runtime");
3674
3823
  var WalletFilledIcon = (_a) => {
3675
3824
  var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3676
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
3825
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
3677
3826
  "svg",
3678
3827
  __spreadProps(__spreadValues(__spreadValues({
3679
3828
  viewBox: "0 0 14 14",
@@ -3681,8 +3830,8 @@ var WalletFilledIcon = (_a) => {
3681
3830
  fill: "none"
3682
3831
  }, getIconA11yProps(title)), props), {
3683
3832
  children: [
3684
- title ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("title", { children: title }) : null,
3685
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3833
+ title ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("title", { children: title }) : null,
3834
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3686
3835
  "path",
3687
3836
  {
3688
3837
  d: "M12.25 3.50008H2.91667C2.41558 3.50008 1.94133 3.28308 1.61292 2.91733C1.93375 2.55916 2.39983 2.33341 2.91667 2.33341H13.4167C13.7392 2.33341 14 2.07208 14 1.75008C14 1.42808 13.7392 1.16675 13.4167 1.16675H2.91667C1.30608 1.16675 0 2.47283 0 4.08342V9.91675C0 11.5273 1.30608 12.8334 2.91667 12.8334H12.25C13.2166 12.8334 14 12.05 14 11.0834V5.25008C14 4.2835 13.2166 3.50008 12.25 3.50008ZM12.8333 11.0834C12.8333 11.4048 12.572 11.6667 12.25 11.6667H2.91667C1.95183 11.6667 1.16667 10.8816 1.16667 9.91675V4.08225C1.66483 4.455 2.27733 4.66675 2.91667 4.66675H12.25C12.572 4.66675 12.8333 4.92866 12.8333 5.25008V11.0834ZM11.6667 8.16675C11.6667 8.48875 11.4053 8.75008 11.0833 8.75008C10.7613 8.75008 10.5 8.48875 10.5 8.16675C10.5 7.84475 10.7613 7.58342 11.0833 7.58342C11.4053 7.58342 11.6667 7.84475 11.6667 8.16675Z",
@@ -3696,10 +3845,10 @@ var WalletFilledIcon = (_a) => {
3696
3845
  WalletFilledIcon.displayName = "WalletFilledIcon";
3697
3846
 
3698
3847
  // src/primitives/icon/svg/paper-plane.tsx
3699
- var import_jsx_runtime86 = require("react/jsx-runtime");
3848
+ var import_jsx_runtime90 = require("react/jsx-runtime");
3700
3849
  var PaperPlaneIcon = (_a) => {
3701
3850
  var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3702
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
3851
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
3703
3852
  "svg",
3704
3853
  __spreadProps(__spreadValues(__spreadValues({
3705
3854
  viewBox: "0 0 24 24",
@@ -3707,15 +3856,15 @@ var PaperPlaneIcon = (_a) => {
3707
3856
  fill: "none"
3708
3857
  }, getIconA11yProps(title)), props), {
3709
3858
  children: [
3710
- title ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("title", { children: title }) : null,
3711
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("g", { clipPath: "url(#paper-plane-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
3859
+ title ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("title", { children: title }) : null,
3860
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("g", { clipPath: "url(#paper-plane-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3712
3861
  "path",
3713
3862
  {
3714
3863
  d: "M23.149 0.854808C22.43 0.135808 21.42 -0.152192 20.441 0.0858076L4.21901 4.30981C2.13901 4.59681 0.532009 6.10881 0.125009 8.16081C-0.184991 9.72081 0.349009 11.3698 1.56401 12.5848L3.00101 13.9388V18.5008C3.00101 19.1868 3.27901 19.8088 3.72801 20.2608C3.73001 20.2628 3.73101 20.2658 3.73301 20.2688C3.73501 20.2718 3.73801 20.2718 3.74101 20.2738C4.19301 20.7228 4.81501 21.0008 5.50101 21.0008H10.075L11.456 22.4768C12.438 23.4588 13.757 23.9978 15.059 23.9978C15.525 23.9978 15.989 23.9288 16.434 23.7868C18.218 23.2178 19.478 21.7408 19.713 19.9878L23.91 3.60081C24.154 2.60181 23.87 1.57681 23.15 0.855808L23.149 0.854808ZM2.26001 11.8668C1.29301 10.8988 0.861009 9.58681 1.10501 8.35481C1.42801 6.72781 2.70401 5.52881 4.41401 5.28881L20.686 1.05681C20.83 1.02181 20.976 1.00481 21.12 1.00481C21.441 1.00481 21.753 1.09781 22.035 1.25981L4.15001 19.1438C4.05601 18.9478 4.00001 18.7318 4.00001 18.5008V13.7228C4.00001 13.5848 3.94301 13.4528 3.84301 13.3588L2.26001 11.8668ZM22.939 3.35781L18.731 19.7958C18.538 21.2188 17.541 22.3828 16.128 22.8328C14.789 23.2588 13.232 22.8408 12.172 21.7808L10.654 20.1588C10.559 20.0578 10.427 20.0008 10.289 20.0008H5.50001C5.26901 20.0008 5.05301 19.9438 4.85701 19.8508L22.746 1.96181C22.984 2.37781 23.058 2.87381 22.939 3.35781Z",
3715
3864
  fill: "currentColor"
3716
3865
  }
3717
3866
  ) }),
3718
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("clipPath", { id: "paper-plane-clip", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("rect", { width: "24", height: "24", fill: "white" }) }) })
3867
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("clipPath", { id: "paper-plane-clip", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("rect", { width: "24", height: "24", fill: "white" }) }) })
3719
3868
  ]
3720
3869
  })
3721
3870
  );
@@ -3723,10 +3872,10 @@ var PaperPlaneIcon = (_a) => {
3723
3872
  PaperPlaneIcon.displayName = "PaperPlaneIcon";
3724
3873
 
3725
3874
  // src/primitives/icon/svg/warning.tsx
3726
- var import_jsx_runtime87 = require("react/jsx-runtime");
3875
+ var import_jsx_runtime91 = require("react/jsx-runtime");
3727
3876
  var WarningIcon = (_a) => {
3728
3877
  var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3729
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
3878
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
3730
3879
  "svg",
3731
3880
  __spreadProps(__spreadValues(__spreadValues({
3732
3881
  width: "14",
@@ -3737,8 +3886,8 @@ var WarningIcon = (_a) => {
3737
3886
  className
3738
3887
  }, getIconA11yProps(title)), props), {
3739
3888
  children: [
3740
- title ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("title", { children: title }) : null,
3741
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3889
+ title ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("title", { children: title }) : null,
3890
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3742
3891
  "path",
3743
3892
  {
3744
3893
  d: "M6.41665 8.1665V4.6665C6.41665 4.34567 6.67915 4.08317 6.99998 4.08317C7.32082 4.08317 7.58332 4.34567 7.58332 4.6665V8.1665C7.58332 8.48734 7.32082 8.74984 6.99998 8.74984C6.67915 8.74984 6.41665 8.48734 6.41665 8.1665ZM6.99998 9.33317C6.51582 9.33317 6.12498 9.724 6.12498 10.2082C6.12498 10.6923 6.51582 11.0832 6.99998 11.0832C7.48415 11.0832 7.87498 10.6923 7.87498 10.2082C7.87498 9.724 7.48415 9.33317 6.99998 9.33317ZM13.755 12.1798C13.3467 12.9673 12.4892 13.4165 11.4158 13.4165H2.58998C1.51082 13.4165 0.659151 12.9673 0.250818 12.1798C-0.163348 11.3865 -0.0466818 10.3715 0.542485 9.51984L5.23248 2.09984C5.64665 1.50484 6.29998 1.1665 6.99998 1.1665C7.69999 1.1665 8.35332 1.50484 8.74998 2.08234L13.4633 9.5315C14.0525 10.3832 14.1633 11.3923 13.7492 12.1798H13.755ZM12.5008 10.1848C12.5008 10.1848 12.4892 10.1732 12.4892 10.1615L7.78165 2.724C7.61248 2.48484 7.32082 2.33317 6.99998 2.33317C6.67915 2.33317 6.38749 2.48484 6.20665 2.74734L1.51082 10.1615C1.14915 10.6748 1.06748 11.2348 1.27748 11.6373C1.48165 12.034 1.94832 12.2498 2.58415 12.2498H11.4042C12.04 12.2498 12.5067 12.034 12.7108 11.6373C12.9208 11.2348 12.8392 10.6748 12.495 10.1848H12.5008Z",
@@ -3752,10 +3901,10 @@ var WarningIcon = (_a) => {
3752
3901
  WarningIcon.displayName = "WarningIcon";
3753
3902
 
3754
3903
  // src/primitives/icon/svg/warning-filled.tsx
3755
- var import_jsx_runtime88 = require("react/jsx-runtime");
3904
+ var import_jsx_runtime92 = require("react/jsx-runtime");
3756
3905
  var WarningFilledIcon = (_a) => {
3757
3906
  var _b = _a, { title, className } = _b, props = __objRest(_b, ["title", "className"]);
3758
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
3907
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
3759
3908
  "svg",
3760
3909
  __spreadProps(__spreadValues(__spreadValues({
3761
3910
  viewBox: "0 0 16 16",
@@ -3763,8 +3912,8 @@ var WarningFilledIcon = (_a) => {
3763
3912
  fill: "none"
3764
3913
  }, getIconA11yProps(title)), props), {
3765
3914
  children: [
3766
- title ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("title", { children: title }) : null,
3767
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3915
+ title ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("title", { children: title }) : null,
3916
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3768
3917
  "path",
3769
3918
  {
3770
3919
  d: "M15.3869 10.22L10.0002 1.71332C9.5469 1.05999 8.79356 0.666656 8.00023 0.666656C7.20689 0.666656 6.45356 1.05332 5.98023 1.73332L0.620227 10.2067C-0.0597729 11.18 -0.18644 12.3467 0.286894 13.2467C0.75356 14.1467 1.73356 14.66 2.96023 14.66H13.0402C14.2736 14.66 15.2469 14.1467 15.7136 13.2467C16.1802 12.3467 16.0536 11.1867 15.3869 10.22ZM7.33356 4.66666C7.33356 4.29999 7.63356 3.99999 8.00023 3.99999C8.36689 3.99999 8.66689 4.29999 8.66689 4.66666V8.66666C8.66689 9.03332 8.36689 9.33332 8.00023 9.33332C7.63356 9.33332 7.33356 9.03332 7.33356 8.66666V4.66666ZM8.00023 12.6667C7.44689 12.6667 7.00023 12.22 7.00023 11.6667C7.00023 11.1133 7.44689 10.6667 8.00023 10.6667C8.55356 10.6667 9.00023 11.1133 9.00023 11.6667C9.00023 12.22 8.55356 12.6667 8.00023 12.6667Z",
@@ -3837,6 +3986,10 @@ var iconRegistry = {
3837
3986
  search: SearchIcon,
3838
3987
  "shield-trust": ShieldTrustIcon,
3839
3988
  solana: SolanaIcon,
3989
+ "sort-end-date": SortEndDateIcon,
3990
+ "sort-top-arbitrage": SortTopArbitrageIcon,
3991
+ "sort-volume": SortVolumeIcon,
3992
+ "sort-volume-24hr": SortVolume24hrIcon,
3840
3993
  "sparkles-filled": SparklesFilledIcon,
3841
3994
  spinner: SpinnerIcon,
3842
3995
  "stay-in-control": StayInControlIcon,
@@ -3868,7 +4021,7 @@ var resolveIconStyle = (color, style) => {
3868
4021
  };
3869
4022
 
3870
4023
  // src/primitives/icon/index.tsx
3871
- var import_jsx_runtime89 = require("react/jsx-runtime");
4024
+ var import_jsx_runtime93 = require("react/jsx-runtime");
3872
4025
  var Icon = (_a) => {
3873
4026
  var _b = _a, {
3874
4027
  name,
@@ -3892,7 +4045,7 @@ var Icon = (_a) => {
3892
4045
  }
3893
4046
  const resolvedStyle = resolveIconStyle(color, style);
3894
4047
  const resolvedClassName = cn(iconSizeClasses[size], className);
3895
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4048
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
3896
4049
  Component,
3897
4050
  __spreadValues({
3898
4051
  color,
@@ -3909,12 +4062,12 @@ var import_react = require("react");
3909
4062
 
3910
4063
  // src/primitives/skeleton/skeleton-block.tsx
3911
4064
  var import_hooks11 = require("@agg-build/hooks");
3912
- var import_jsx_runtime90 = require("react/jsx-runtime");
4065
+ var import_jsx_runtime94 = require("react/jsx-runtime");
3913
4066
  var SkeletonBlock = ({ className }) => {
3914
4067
  const {
3915
4068
  features: { enableAnimations }
3916
4069
  } = (0, import_hooks11.useSdkUiConfig)();
3917
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4070
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
3918
4071
  "div",
3919
4072
  {
3920
4073
  "aria-hidden": true,
@@ -3943,7 +4096,7 @@ var resolveRemoteImageStatusFromSrc = (src) => {
3943
4096
  };
3944
4097
 
3945
4098
  // src/primitives/remote-image/index.tsx
3946
- var import_jsx_runtime91 = require("react/jsx-runtime");
4099
+ var import_jsx_runtime95 = require("react/jsx-runtime");
3947
4100
  var RemoteImage = ({
3948
4101
  src,
3949
4102
  alt,
@@ -3977,7 +4130,7 @@ var RemoteImage = ({
3977
4130
  setStatus("error");
3978
4131
  };
3979
4132
  const sizeStyle = width !== void 0 || height !== void 0 ? { width: width != null ? width : void 0, height: height != null ? height : void 0 } : void 0;
3980
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
4133
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
3981
4134
  "div",
3982
4135
  {
3983
4136
  className: cn(containerClasses, classNames == null ? void 0 : classNames.root, className),
@@ -3994,14 +4147,14 @@ var RemoteImage = ({
3994
4147
  "aria-label": ariaLabel,
3995
4148
  title,
3996
4149
  children: [
3997
- status === "loading" && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(SkeletonBlock, { className: cn(skeletonClasses, classNames == null ? void 0 : classNames.placeholder) }),
3998
- status === "error" && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4150
+ status === "loading" && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(SkeletonBlock, { className: cn(skeletonClasses, classNames == null ? void 0 : classNames.placeholder) }),
4151
+ status === "error" && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
3999
4152
  "div",
4000
4153
  {
4001
4154
  className: cn(placeholderClasses, classNames == null ? void 0 : classNames.placeholder),
4002
4155
  "aria-hidden": true,
4003
4156
  "aria-errormessage": "Image failed to load",
4004
- children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4157
+ children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
4005
4158
  Icon,
4006
4159
  {
4007
4160
  name: "image",
@@ -4012,7 +4165,7 @@ var RemoteImage = ({
4012
4165
  )
4013
4166
  }
4014
4167
  ),
4015
- isValidRemoteImageSrc(src) && status !== "error" && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4168
+ isValidRemoteImageSrc(src) && status !== "error" && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
4016
4169
  "img",
4017
4170
  {
4018
4171
  src,
@@ -4048,7 +4201,7 @@ var resolveIsSelectDisabled = ({
4048
4201
  };
4049
4202
 
4050
4203
  // src/primitives/select/index.tsx
4051
- var import_jsx_runtime92 = require("react/jsx-runtime");
4204
+ var import_jsx_runtime96 = require("react/jsx-runtime");
4052
4205
  var SELECT_DROPDOWN_Z = 1e4;
4053
4206
  function resolveSelectPortalContainer(triggerRoot) {
4054
4207
  var _a, _b;
@@ -4062,6 +4215,8 @@ var Select = ({
4062
4215
  ariaLabel,
4063
4216
  className,
4064
4217
  triggerClassName,
4218
+ contentClassName,
4219
+ itemClassName,
4065
4220
  disabled = SELECT_DEFAULT_IS_DISABLED
4066
4221
  }) => {
4067
4222
  var _a;
@@ -4121,7 +4276,7 @@ var Select = ({
4121
4276
  return () => document.removeEventListener("keydown", handleKeyDown);
4122
4277
  }, [isOpen, handleClose]);
4123
4278
  const triggerRadiusClass = triggerClassName != null ? triggerClassName : "rounded-agg-md";
4124
- const listbox = menuRect ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
4279
+ const listbox = menuRect ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
4125
4280
  "div",
4126
4281
  {
4127
4282
  ref: portalRef,
@@ -4135,10 +4290,15 @@ var Select = ({
4135
4290
  width: menuRect.width,
4136
4291
  zIndex: SELECT_DROPDOWN_Z
4137
4292
  },
4138
- className: "agg-select-content pointer-events-auto max-h-[min(20rem,calc(100vh-4rem))] overflow-y-auto rounded-agg-md border border-agg-separator bg-agg-secondary shadow-lg",
4293
+ className: cn(
4294
+ "agg-select-content pointer-events-auto max-h-[min(20rem,calc(100vh-4rem))] overflow-y-auto rounded-agg-md border border-agg-separator bg-agg-secondary shadow-lg",
4295
+ contentClassName
4296
+ ),
4139
4297
  children: items.map((item) => {
4140
4298
  const isSelected = item.value === value;
4141
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
4299
+ const isHidden = item.hidden === true;
4300
+ if (isHidden) return null;
4301
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
4142
4302
  "button",
4143
4303
  {
4144
4304
  type: "button",
@@ -4149,8 +4309,10 @@ var Select = ({
4149
4309
  "agg-select-item",
4150
4310
  "relative flex w-full items-center gap-2 px-4 py-2 text-left text-agg-sm leading-agg-5 outline-none",
4151
4311
  "hover:bg-agg-secondary-hover focus-visible:bg-agg-secondary-hover",
4152
- isSelected ? "font-agg-bold text-agg-foreground bg-agg-secondary-hover" : "font-agg-normal text-agg-foreground",
4153
- item.disabled && "cursor-not-allowed opacity-60"
4312
+ isSelected ? "font-agg-bold bg-agg-secondary-hover" : "font-agg-normal",
4313
+ isSelected ? "text-agg-foreground" : "text-agg-foreground",
4314
+ item.disabled && "cursor-not-allowed opacity-60",
4315
+ itemClassName
4154
4316
  ),
4155
4317
  onClick: () => {
4156
4318
  if (item.disabled) {
@@ -4160,8 +4322,17 @@ var Select = ({
4160
4322
  handleClose();
4161
4323
  },
4162
4324
  children: [
4163
- isSelected ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "absolute left-0 top-0 bottom-0 w-1 bg-agg-primary" }) : null,
4164
- item.icon ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "h-4 w-4 shrink-0 [&_svg]:h-full [&_svg]:w-full", children: item.icon }) : item.iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
4325
+ isSelected ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "absolute left-0 top-0 bottom-0 w-1 bg-agg-primary" }) : null,
4326
+ item.icon ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
4327
+ "span",
4328
+ {
4329
+ className: cn(
4330
+ "h-4 w-4 shrink-0 [&_svg]:h-full [&_svg]:w-full",
4331
+ isSelected ? "text-agg-foreground" : "text-agg-muted-foreground"
4332
+ ),
4333
+ children: item.icon
4334
+ }
4335
+ ) : item.iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
4165
4336
  RemoteImage,
4166
4337
  {
4167
4338
  src: item.iconUrl,
@@ -4169,7 +4340,7 @@ var Select = ({
4169
4340
  className: "agg-select-item-icon h-4 w-4 shrink-0 rounded-sm object-contain"
4170
4341
  }
4171
4342
  ) : null,
4172
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "agg-select-item-label truncate", children: item.label })
4343
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "agg-select-item-label truncate", children: item.label })
4173
4344
  ]
4174
4345
  },
4175
4346
  item.value
@@ -4177,13 +4348,13 @@ var Select = ({
4177
4348
  })
4178
4349
  }
4179
4350
  ) : null;
4180
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
4351
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
4181
4352
  "div",
4182
4353
  {
4183
4354
  ref: containerRef,
4184
4355
  className: cn("group/agg-select", "relative inline-flex w-full", className),
4185
4356
  children: [
4186
- /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
4357
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
4187
4358
  "button",
4188
4359
  {
4189
4360
  type: "button",
@@ -4200,12 +4371,13 @@ var Select = ({
4200
4371
  enableAnimations,
4201
4372
  "transition-[border-color,box-shadow] duration-200 ease-in-out"
4202
4373
  ),
4374
+ isOpen && "border-agg-primary ring-2 ring-agg-primary/15",
4203
4375
  "focus:border-agg-primary focus:ring-2 focus:ring-agg-primary/15",
4204
4376
  "disabled:cursor-not-allowed disabled:opacity-60"
4205
4377
  ),
4206
4378
  onClick: () => setIsOpen((previousValue) => !previousValue),
4207
4379
  children: [
4208
- (selectedItem == null ? void 0 : selectedItem.icon) ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "h-4 w-4 shrink-0 [&_svg]:h-full [&_svg]:w-full", children: selectedItem.icon }) : (selectedItem == null ? void 0 : selectedItem.iconUrl) ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
4380
+ (selectedItem == null ? void 0 : selectedItem.icon) ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "h-4 w-4 shrink-0 [&_svg]:h-full [&_svg]:w-full", children: selectedItem.icon }) : (selectedItem == null ? void 0 : selectedItem.iconUrl) ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
4209
4381
  RemoteImage,
4210
4382
  {
4211
4383
  src: selectedItem.iconUrl,
@@ -4213,11 +4385,18 @@ var Select = ({
4213
4385
  className: "agg-select-icon h-4 w-4 shrink-0 rounded-sm object-contain"
4214
4386
  }
4215
4387
  ) : null,
4216
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "agg-select-value flex-1 truncate", children: (_a = selectedItem == null ? void 0 : selectedItem.label) != null ? _a : "" })
4388
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "agg-select-value flex-1 truncate", children: (_a = selectedItem == null ? void 0 : selectedItem.label) != null ? _a : "" })
4217
4389
  ]
4218
4390
  }
4219
4391
  ),
4220
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "agg-select-chevron pointer-events-none absolute inset-y-0 right-3 inline-flex items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Icon, { name: "chevron-down-thin", size: "small", color: "currentColor" }) }),
4392
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "agg-select-chevron pointer-events-none absolute inset-y-0 right-3 inline-flex items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
4393
+ Icon,
4394
+ {
4395
+ name: isOpen ? "chevron-up" : "chevron-down-thin",
4396
+ size: "small",
4397
+ color: "currentColor"
4398
+ }
4399
+ ) }),
4221
4400
  isOpen && typeof document !== "undefined" && listbox ? (0, import_react_dom.createPortal)(listbox, resolveSelectPortalContainer(containerRef.current)) : null
4222
4401
  ]
4223
4402
  }
@@ -4226,7 +4405,7 @@ var Select = ({
4226
4405
  Select.displayName = "Select";
4227
4406
 
4228
4407
  // src/deposit/steps/card-deposit.tsx
4229
- var import_jsx_runtime93 = require("react/jsx-runtime");
4408
+ var import_jsx_runtime97 = require("react/jsx-runtime");
4230
4409
  var CardDepositStep = ({
4231
4410
  amount,
4232
4411
  currency,
@@ -4252,33 +4431,33 @@ var CardDepositStep = ({
4252
4431
  const isBelowMin = minAmount != null && hasInput && numericAmount < minAmount;
4253
4432
  const isValid = numericAmount > 0 && !isBelowMin;
4254
4433
  const formattedMin = minAmount != null ? `$${minAmount}` : void 0;
4255
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_jsx_runtime93.Fragment, { children: [
4256
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
4434
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_jsx_runtime97.Fragment, { children: [
4435
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
4257
4436
  Modal.Header,
4258
4437
  {
4259
4438
  title: labels.deposit.cardFlow.title,
4260
4439
  hideBorder: true,
4261
- leftElement: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
4440
+ leftElement: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
4262
4441
  "button",
4263
4442
  {
4264
4443
  type: "button",
4265
4444
  className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
4266
4445
  onClick: onBack,
4267
4446
  "aria-label": "Go back",
4268
- children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
4447
+ children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
4269
4448
  }
4270
4449
  )
4271
4450
  }
4272
4451
  ),
4273
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex flex-col gap-5", children: [
4274
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex flex-col gap-3", children: [
4275
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex-1 flex flex-col gap-2", children: [
4276
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex items-center justify-between", children: [
4277
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.cardFlow.amountLabel }),
4278
- formattedMin ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("p", { className: "agg-type-label text-agg-foreground", children: labels.deposit.cardFlow.minRequired(formattedMin) }) : null
4452
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-5", children: [
4453
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-3", children: [
4454
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex-1 flex flex-col gap-2", children: [
4455
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex items-center justify-between", children: [
4456
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.cardFlow.amountLabel }),
4457
+ formattedMin ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "agg-type-label text-agg-foreground", children: labels.deposit.cardFlow.minRequired(formattedMin) }) : null
4279
4458
  ] }),
4280
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex gap-3 items-center", children: [
4281
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
4459
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex gap-3 items-center", children: [
4460
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
4282
4461
  "div",
4283
4462
  {
4284
4463
  className: cn(
@@ -4286,7 +4465,7 @@ var CardDepositStep = ({
4286
4465
  isBelowMin ? "border-agg-primary border-2" : "border-agg-separator"
4287
4466
  ),
4288
4467
  children: [
4289
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
4468
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
4290
4469
  "input",
4291
4470
  {
4292
4471
  type: "text",
@@ -4302,11 +4481,11 @@ var CardDepositStep = ({
4302
4481
  }
4303
4482
  }
4304
4483
  ),
4305
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "agg-type-body text-agg-muted-foreground", children: "$" })
4484
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { className: "agg-type-body text-agg-muted-foreground", children: "$" })
4306
4485
  ]
4307
4486
  }
4308
4487
  ),
4309
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("div", { className: "w-[100px]", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
4488
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "w-[100px]", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
4310
4489
  Select,
4311
4490
  {
4312
4491
  items: [{ value: currency, label: currency }],
@@ -4318,8 +4497,8 @@ var CardDepositStep = ({
4318
4497
  ) })
4319
4498
  ] })
4320
4499
  ] }),
4321
- isBelowMin && formattedMin ? /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex items-center gap-2", role: "alert", "aria-live": "assertive", children: [
4322
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
4500
+ isBelowMin && formattedMin ? /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex items-center gap-2", role: "alert", "aria-live": "assertive", children: [
4501
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
4323
4502
  Icon,
4324
4503
  {
4325
4504
  name: "warning",
@@ -4327,12 +4506,12 @@ var CardDepositStep = ({
4327
4506
  "aria-hidden": "true"
4328
4507
  }
4329
4508
  ),
4330
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("p", { className: "agg-type-label text-agg-error", children: labels.deposit.cardFlow.minAmountError(formattedMin) })
4509
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "agg-type-label text-agg-error", children: labels.deposit.cardFlow.minAmountError(formattedMin) })
4331
4510
  ] }) : null
4332
4511
  ] }),
4333
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex flex-col gap-2", children: [
4334
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.cardFlow.networkLabel }),
4335
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
4512
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-2", children: [
4513
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.cardFlow.networkLabel }),
4514
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
4336
4515
  Select,
4337
4516
  {
4338
4517
  items: networkOptions,
@@ -4343,7 +4522,7 @@ var CardDepositStep = ({
4343
4522
  }
4344
4523
  )
4345
4524
  ] }),
4346
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
4525
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
4347
4526
  Button,
4348
4527
  {
4349
4528
  variant: "secondary",
@@ -4363,7 +4542,7 @@ var import_hooks15 = require("@agg-build/hooks");
4363
4542
 
4364
4543
  // src/primitives/copy-button/index.tsx
4365
4544
  var import_react4 = require("react");
4366
- var import_jsx_runtime94 = require("react/jsx-runtime");
4545
+ var import_jsx_runtime98 = require("react/jsx-runtime");
4367
4546
  var CopyButton = ({
4368
4547
  value,
4369
4548
  label,
@@ -4395,7 +4574,7 @@ var CopyButton = ({
4395
4574
  }, [onCopy, resetMs, value]);
4396
4575
  const showLabel = label !== void 0 || copiedLabel !== void 0;
4397
4576
  const visibleLabel = isCopied ? copiedLabel != null ? copiedLabel : label : label;
4398
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
4577
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
4399
4578
  "button",
4400
4579
  {
4401
4580
  type: "button",
@@ -4408,8 +4587,8 @@ var CopyButton = ({
4408
4587
  className
4409
4588
  ),
4410
4589
  children: [
4411
- isCopied ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(CheckCircleIcon, { className: iconClassName }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(CopyIcon, { className: iconClassName }),
4412
- showLabel ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "agg-type-label-strong", children: visibleLabel }) : null
4590
+ isCopied ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(CheckCircleIcon, { className: iconClassName }) : /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(CopyIcon, { className: iconClassName }),
4591
+ showLabel ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("span", { className: "agg-type-label-strong", children: visibleLabel }) : null
4413
4592
  ]
4414
4593
  }
4415
4594
  );
@@ -4417,7 +4596,7 @@ var CopyButton = ({
4417
4596
  CopyButton.displayName = "CopyButton";
4418
4597
 
4419
4598
  // src/deposit/steps/card-payment-pending.tsx
4420
- var import_jsx_runtime95 = require("react/jsx-runtime");
4599
+ var import_jsx_runtime99 = require("react/jsx-runtime");
4421
4600
  var CardPaymentPendingStep = ({
4422
4601
  providerName,
4423
4602
  walletAddress,
@@ -4426,28 +4605,28 @@ var CardPaymentPendingStep = ({
4426
4605
  onChooseAnotherProvider
4427
4606
  }) => {
4428
4607
  const labels = (0, import_hooks15.useLabels)();
4429
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Modal.Body, { classNames: { root: "px-5 py-8 sm:px-8 sm:py-10" }, children: [
4430
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
4608
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(Modal.Body, { classNames: { root: "px-5 py-8 sm:px-8 sm:py-10" }, children: [
4609
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
4431
4610
  "button",
4432
4611
  {
4433
4612
  type: "button",
4434
4613
  className: "absolute right-8 top-7 flex items-center justify-center text-agg-foreground transition-colors cursor-pointer hover:text-agg-foreground/80",
4435
4614
  onClick: onClose,
4436
4615
  "aria-label": labels.common.close,
4437
- children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(CloseIcon, { className: "h-6 w-6" })
4616
+ children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(CloseIcon, { className: "h-6 w-6" })
4438
4617
  }
4439
4618
  ),
4440
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
4441
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "flex h-[60px] w-[60px] items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ExternalLinkIcon, { className: "h-[60px] w-[60px]" }) }),
4442
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-col items-center gap-3 text-center", children: [
4443
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold text-agg-foreground", children: labels.deposit.cardFlow.pendingTitle(providerName) }),
4444
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "agg-type-body text-agg-foreground", children: labels.deposit.cardFlow.pendingDescription })
4619
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
4620
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "flex h-[60px] w-[60px] items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(ExternalLinkIcon, { className: "h-[60px] w-[60px]" }) }),
4621
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex flex-col items-center gap-3 text-center", children: [
4622
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold text-agg-foreground", children: labels.deposit.cardFlow.pendingTitle(providerName) }),
4623
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: "agg-type-body text-agg-foreground", children: labels.deposit.cardFlow.pendingDescription })
4445
4624
  ] }),
4446
- walletAddress ? /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex w-full flex-col items-center gap-3 rounded-agg-md bg-agg-secondary-hover p-5", children: [
4447
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "agg-type-label text-agg-foreground w-full", children: labels.deposit.cardFlow.pendingWalletAddressHelp }),
4448
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex w-full h-10 items-center gap-2 rounded border border-agg-separator bg-agg-secondary px-3 py-[10px]", children: [
4449
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "agg-type-body flex-1 min-w-0 truncate text-agg-foreground", children: walletAddress }),
4450
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
4625
+ walletAddress ? /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex w-full flex-col items-center gap-3 rounded-agg-md bg-agg-secondary-hover p-5", children: [
4626
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: "agg-type-label text-agg-foreground w-full", children: labels.deposit.cardFlow.pendingWalletAddressHelp }),
4627
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex w-full h-10 items-center gap-2 rounded border border-agg-separator bg-agg-secondary px-3 py-[10px]", children: [
4628
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("p", { className: "agg-type-body flex-1 min-w-0 truncate text-agg-foreground", children: walletAddress }),
4629
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
4451
4630
  CopyButton,
4452
4631
  {
4453
4632
  value: walletAddress,
@@ -4457,11 +4636,11 @@ var CardPaymentPendingStep = ({
4457
4636
  )
4458
4637
  ] })
4459
4638
  ] }) : null,
4460
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex items-start justify-center gap-3", children: [
4461
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Button, { variant: "secondary", size: "large", className: "w-[120px]", onClick: onClose, children: labels.common.close }),
4462
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Button, { variant: "primary", size: "large", onClick: onViewActivity, children: labels.deposit.cardFlow.viewActivity })
4639
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex items-start justify-center gap-3", children: [
4640
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { variant: "secondary", size: "large", className: "w-[120px]", onClick: onClose, children: labels.common.close }),
4641
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Button, { variant: "primary", size: "large", onClick: onViewActivity, children: labels.deposit.cardFlow.viewActivity })
4463
4642
  ] }),
4464
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
4643
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
4465
4644
  "button",
4466
4645
  {
4467
4646
  type: "button",
@@ -4496,7 +4675,7 @@ var resolveLoadingIconAriaLabel = ({
4496
4675
  };
4497
4676
 
4498
4677
  // src/primitives/loading-icon/index.tsx
4499
- var import_jsx_runtime96 = require("react/jsx-runtime");
4678
+ var import_jsx_runtime100 = require("react/jsx-runtime");
4500
4679
  var LoadingIcon = ({
4501
4680
  size = LOADING_ICON_DEFAULT_SIZE,
4502
4681
  variant = "default",
@@ -4507,7 +4686,7 @@ var LoadingIcon = ({
4507
4686
  const {
4508
4687
  features: { enableAnimations }
4509
4688
  } = (0, import_hooks16.useSdkUiConfig)();
4510
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
4689
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
4511
4690
  "span",
4512
4691
  {
4513
4692
  role: "status",
@@ -4520,7 +4699,7 @@ var LoadingIcon = ({
4520
4699
  "inline-grid place-items-center text-agg-primary will-change-transform",
4521
4700
  className
4522
4701
  ),
4523
- children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "inline-grid place-items-center", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
4702
+ children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { className: "inline-grid place-items-center", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
4524
4703
  "svg",
4525
4704
  {
4526
4705
  viewBox: LOADING_ICON_SVG_VIEW_BOX,
@@ -4528,8 +4707,8 @@ var LoadingIcon = ({
4528
4707
  "block",
4529
4708
  variant === "prominent" ? LOADING_ICON_PROMINENT_FRAME_CLASS : iconSizeClasses[size]
4530
4709
  ),
4531
- children: variant === "prominent" ? /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("g", { children: [
4532
- enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
4710
+ children: variant === "prominent" ? /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("g", { children: [
4711
+ enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
4533
4712
  "animateTransform",
4534
4713
  {
4535
4714
  attributeName: "transform",
@@ -4541,7 +4720,7 @@ var LoadingIcon = ({
4541
4720
  repeatCount: "indefinite"
4542
4721
  }
4543
4722
  ) : null,
4544
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
4723
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
4545
4724
  "circle",
4546
4725
  {
4547
4726
  cx: "22",
@@ -4555,8 +4734,8 @@ var LoadingIcon = ({
4555
4734
  strokeDasharray: LOADING_ICON_PROMINENT_DASHARRAY
4556
4735
  }
4557
4736
  )
4558
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("g", { children: [
4559
- enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
4737
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("g", { children: [
4738
+ enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
4560
4739
  "animateTransform",
4561
4740
  {
4562
4741
  attributeName: "transform",
@@ -4568,7 +4747,7 @@ var LoadingIcon = ({
4568
4747
  repeatCount: "indefinite"
4569
4748
  }
4570
4749
  ) : null,
4571
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
4750
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
4572
4751
  "circle",
4573
4752
  {
4574
4753
  cx: "22",
@@ -4580,8 +4759,8 @@ var LoadingIcon = ({
4580
4759
  strokeLinecap: "round",
4581
4760
  strokeDasharray: "60 100",
4582
4761
  strokeDashoffset: "0",
4583
- children: enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_jsx_runtime96.Fragment, { children: [
4584
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
4762
+ children: enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_jsx_runtime100.Fragment, { children: [
4763
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
4585
4764
  "animate",
4586
4765
  {
4587
4766
  attributeName: "stroke-dasharray",
@@ -4590,7 +4769,7 @@ var LoadingIcon = ({
4590
4769
  repeatCount: "indefinite"
4591
4770
  }
4592
4771
  ),
4593
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
4772
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
4594
4773
  "animate",
4595
4774
  {
4596
4775
  attributeName: "stroke-dashoffset",
@@ -4611,20 +4790,20 @@ var LoadingIcon = ({
4611
4790
  LoadingIcon.displayName = "LoadingIcon";
4612
4791
 
4613
4792
  // src/deposit/steps/card-provider.tsx
4614
- var import_jsx_runtime97 = require("react/jsx-runtime");
4793
+ var import_jsx_runtime101 = require("react/jsx-runtime");
4615
4794
  var CardProviderItem = ({ provider, onSelect }) => {
4616
4795
  const labels = (0, import_hooks17.useLabels)();
4617
4796
  const badgeText = provider.badge === "best" ? labels.deposit.cardFlow.providerBadges.best : provider.badge === "low-kyc" ? labels.deposit.cardFlow.providerBadges.lowKyc : void 0;
4618
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
4797
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
4619
4798
  "button",
4620
4799
  {
4621
4800
  type: "button",
4622
4801
  className: "w-full rounded-xl border border-agg-separator px-4 py-3 text-left bg-agg-secondary hover:bg-agg-secondary-hover transition-colors cursor-pointer",
4623
4802
  onClick: () => onSelect(provider.id),
4624
- children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
4625
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex items-center gap-2", children: [
4626
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-agg-base leading-agg-6 font-agg-bold text-agg-foreground", children: provider.name }),
4627
- badgeText ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
4803
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
4804
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex items-center gap-2", children: [
4805
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: "text-agg-base leading-agg-6 font-agg-bold text-agg-foreground", children: provider.name }),
4806
+ badgeText ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
4628
4807
  "span",
4629
4808
  {
4630
4809
  className: `rounded border px-2 py-[2px] text-[10px] leading-[14px] font-agg-bold uppercase ${provider.badge === "best" ? "border-agg-primary/50 text-agg-primary bg-agg-secondary" : "border-agg-separator text-agg-foreground bg-agg-secondary"}`,
@@ -4632,16 +4811,16 @@ var CardProviderItem = ({ provider, onSelect }) => {
4632
4811
  }
4633
4812
  ) : null
4634
4813
  ] }),
4635
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex items-center gap-4", children: [
4636
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "text-right", children: [
4637
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "agg-type-body text-agg-foreground", children: provider.quote }),
4638
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
4814
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex items-center gap-4", children: [
4815
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "text-right", children: [
4816
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: "agg-type-body text-agg-foreground", children: provider.quote }),
4817
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
4639
4818
  labels.deposit.cardFlow.feeLabel,
4640
4819
  " ",
4641
4820
  provider.fee
4642
4821
  ] })
4643
4822
  ] }),
4644
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(ChevronRightIcon, { className: "h-5 w-5 text-agg-muted-foreground" })
4823
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(ChevronRightIcon, { className: "h-5 w-5 text-agg-muted-foreground" })
4645
4824
  ] })
4646
4825
  ] })
4647
4826
  }
@@ -4660,40 +4839,40 @@ var CardProviderStep = ({
4660
4839
  onRetry
4661
4840
  }) => {
4662
4841
  const labels = (0, import_hooks17.useLabels)();
4663
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_jsx_runtime97.Fragment, { children: [
4664
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
4842
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_jsx_runtime101.Fragment, { children: [
4843
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
4665
4844
  Modal.Header,
4666
4845
  {
4667
4846
  title: labels.deposit.cardFlow.selectProviderTitle,
4668
4847
  hideBorder: true,
4669
- leftElement: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
4848
+ leftElement: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
4670
4849
  "button",
4671
4850
  {
4672
4851
  type: "button",
4673
4852
  className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
4674
4853
  onClick: onBack,
4675
4854
  "aria-label": labels.deposit.back,
4676
- children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
4855
+ children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
4677
4856
  }
4678
4857
  )
4679
4858
  }
4680
4859
  ),
4681
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-4", children: [
4682
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex items-center gap-1.5", children: [
4683
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(UsdcIcon, { className: "h-4 w-4 shrink-0" }),
4684
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("span", { className: "agg-type-body font-agg-bold text-agg-foreground", children: token }),
4685
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("span", { className: "agg-type-body text-agg-foreground", children: [
4860
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex flex-col gap-4", children: [
4861
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex items-center gap-1.5", children: [
4862
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(UsdcIcon, { className: "h-4 w-4 shrink-0" }),
4863
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { className: "agg-type-body font-agg-bold text-agg-foreground", children: token }),
4864
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("span", { className: "agg-type-body text-agg-foreground", children: [
4686
4865
  "$",
4687
4866
  amount,
4688
4867
  " ",
4689
4868
  currency
4690
4869
  ] })
4691
4870
  ] }),
4692
- isLoading ? /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex min-h-[200px] flex-col items-center justify-center gap-3", children: [
4693
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(LoadingIcon, { variant: "prominent" }),
4694
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "agg-type-body text-agg-foreground", children: labels.deposit.cardFlow.loadingQuotes })
4695
- ] }) : error ? /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex min-h-[200px] flex-col items-center justify-center gap-6 px-2 text-center", children: [
4696
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
4871
+ isLoading ? /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex min-h-[200px] flex-col items-center justify-center gap-3", children: [
4872
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(LoadingIcon, { variant: "prominent" }),
4873
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: "agg-type-body text-agg-foreground", children: labels.deposit.cardFlow.loadingQuotes })
4874
+ ] }) : error ? /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex min-h-[200px] flex-col items-center justify-center gap-6 px-2 text-center", children: [
4875
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
4697
4876
  Icon,
4698
4877
  {
4699
4878
  name: "quotes-warning",
@@ -4702,13 +4881,13 @@ var CardProviderStep = ({
4702
4881
  color: "currentColor"
4703
4882
  }
4704
4883
  ),
4705
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex max-w-[320px] flex-col gap-2", children: [
4706
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-agg-base leading-agg-6 font-agg-bold text-agg-foreground", children: labels.deposit.cardFlow.errorLoadingQuotesTitle }),
4707
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "agg-type-body text-agg-muted-foreground", children: labels.deposit.cardFlow.errorLoadingQuotesDescription })
4884
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex max-w-[320px] flex-col gap-2", children: [
4885
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: "text-agg-base leading-agg-6 font-agg-bold text-agg-foreground", children: labels.deposit.cardFlow.errorLoadingQuotesTitle }),
4886
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: "agg-type-body text-agg-muted-foreground", children: labels.deposit.cardFlow.errorLoadingQuotesDescription })
4708
4887
  ] }),
4709
- onRetry ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Button, { variant: "secondary", size: "medium", onClick: onRetry, children: labels.deposit.cardFlow.retry }) : null
4710
- ] }) : providers.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "flex min-h-[200px] items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "agg-type-body text-agg-muted-foreground", children: labels.deposit.cardFlow.noQuotes }) }) : /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-4", children: [
4711
- providers.map((provider) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
4888
+ onRetry ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Button, { variant: "secondary", size: "medium", onClick: onRetry, children: labels.deposit.cardFlow.retry }) : null
4889
+ ] }) : providers.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "flex min-h-[200px] items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: "agg-type-body text-agg-muted-foreground", children: labels.deposit.cardFlow.noQuotes }) }) : /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex flex-col gap-4", children: [
4890
+ providers.map((provider) => /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
4712
4891
  CardProviderItem,
4713
4892
  {
4714
4893
  provider,
@@ -4716,7 +4895,7 @@ var CardProviderStep = ({
4716
4895
  },
4717
4896
  provider.id
4718
4897
  )),
4719
- sessionError ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "agg-type-label text-agg-error text-center", children: sessionError }) : null
4898
+ sessionError ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: "agg-type-label text-agg-error text-center", children: sessionError }) : null
4720
4899
  ] })
4721
4900
  ] }) })
4722
4901
  ] });
@@ -4724,10 +4903,10 @@ var CardProviderStep = ({
4724
4903
 
4725
4904
  // src/deposit/steps/card-purchase-success.tsx
4726
4905
  var import_hooks18 = require("@agg-build/hooks");
4727
- var import_jsx_runtime98 = require("react/jsx-runtime");
4728
- var SummaryRow = ({ label, value }) => /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex items-center justify-between border-b border-agg-separator py-2 last:border-b-0", children: [
4729
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("p", { className: "text-[12px] leading-4 font-agg-bold uppercase text-agg-muted-foreground", children: label }),
4730
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("p", { className: "agg-type-label text-agg-foreground", children: value })
4906
+ var import_jsx_runtime102 = require("react/jsx-runtime");
4907
+ var SummaryRow = ({ label, value }) => /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex items-center justify-between border-b border-agg-separator py-2 last:border-b-0", children: [
4908
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "text-[12px] leading-4 font-agg-bold uppercase text-agg-muted-foreground", children: label }),
4909
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "agg-type-label text-agg-foreground", children: value })
4731
4910
  ] });
4732
4911
  var CardPurchaseSuccessStep = ({
4733
4912
  summary,
@@ -4735,35 +4914,35 @@ var CardPurchaseSuccessStep = ({
4735
4914
  onClose
4736
4915
  }) => {
4737
4916
  const labels = (0, import_hooks18.useLabels)();
4738
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(Modal.Body, { classNames: { root: "px-5 py-8 sm:px-8 sm:py-10" }, children: [
4739
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
4917
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(Modal.Body, { classNames: { root: "px-5 py-8 sm:px-8 sm:py-10" }, children: [
4918
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
4740
4919
  "button",
4741
4920
  {
4742
4921
  type: "button",
4743
4922
  className: "absolute right-8 top-7 flex items-center justify-center text-agg-foreground transition-colors hover:text-agg-foreground/80",
4744
4923
  onClick: onClose,
4745
4924
  "aria-label": labels.common.close,
4746
- children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(CloseIcon, { className: "h-6 w-6" })
4925
+ children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(CloseIcon, { className: "h-6 w-6" })
4747
4926
  }
4748
4927
  ),
4749
- /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
4750
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "flex h-[60px] w-[60px] items-center justify-center rounded-full bg-agg-success/15", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(SuccessCheckIcon, { className: "h-6 w-6 text-agg-success" }) }),
4751
- /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex flex-col items-center gap-3 text-center", children: [
4752
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold text-agg-foreground", children: labels.deposit.cardFlow.successTitle }),
4753
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("p", { className: "agg-type-body text-agg-foreground", children: labels.deposit.cardFlow.successDescription })
4928
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
4929
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "flex h-[60px] w-[60px] items-center justify-center rounded-full bg-agg-success/15", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(SuccessCheckIcon, { className: "h-6 w-6 text-agg-success" }) }),
4930
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex flex-col items-center gap-3 text-center", children: [
4931
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold text-agg-foreground", children: labels.deposit.cardFlow.successTitle }),
4932
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "agg-type-body text-agg-foreground", children: labels.deposit.cardFlow.successDescription })
4754
4933
  ] }),
4755
- /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "w-full rounded-lg border border-agg-separator bg-agg-secondary px-3 py-1", children: [
4756
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
4934
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "w-full rounded-lg border border-agg-separator bg-agg-secondary px-3 py-1", children: [
4935
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
4757
4936
  SummaryRow,
4758
4937
  {
4759
4938
  label: labels.deposit.summary.amountReceived,
4760
4939
  value: summary.amountReceived
4761
4940
  }
4762
4941
  ),
4763
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(SummaryRow, { label: labels.deposit.summary.network, value: summary.network }),
4764
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(SummaryRow, { label: labels.deposit.cardFlow.summary.fees, value: summary.fees })
4942
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(SummaryRow, { label: labels.deposit.summary.network, value: summary.network }),
4943
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(SummaryRow, { label: labels.deposit.cardFlow.summary.fees, value: summary.fees })
4765
4944
  ] }),
4766
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Button, { variant: "secondary", size: "large", className: "w-[120px]", onClick: onDone, children: labels.deposit.done })
4945
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Button, { variant: "secondary", size: "large", className: "w-[120px]", onClick: onDone, children: labels.deposit.done })
4767
4946
  ] })
4768
4947
  ] }) });
4769
4948
  };
@@ -4809,7 +4988,7 @@ var resolveTooltipArrowDimensions = (size) => {
4809
4988
  };
4810
4989
 
4811
4990
  // src/primitives/tooltip/index.tsx
4812
- var import_jsx_runtime99 = require("react/jsx-runtime");
4991
+ var import_jsx_runtime103 = require("react/jsx-runtime");
4813
4992
  var Tooltip = ({
4814
4993
  content,
4815
4994
  children,
@@ -4826,22 +5005,22 @@ var Tooltip = ({
4826
5005
  } = (0, import_hooks19.useSdkUiConfig)();
4827
5006
  const trigger = (0, import_react5.useMemo)(() => {
4828
5007
  if (children) return children;
4829
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
5008
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
4830
5009
  "button",
4831
5010
  {
4832
5011
  type: "button",
4833
5012
  className: resolveTooltipTriggerClassName(classNames == null ? void 0 : classNames.trigger),
4834
5013
  "aria-label": ariaLabel != null ? ariaLabel : defaultTooltipTriggerAriaLabel,
4835
- children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Icon, { name: "info", size: "small", className: cn(classNames == null ? void 0 : classNames.icon), "aria-hidden": true })
5014
+ children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Icon, { name: "info", size: "small", className: cn(classNames == null ? void 0 : classNames.icon), "aria-hidden": true })
4836
5015
  }
4837
5016
  );
4838
5017
  }, [children, classNames == null ? void 0 : classNames.trigger, classNames == null ? void 0 : classNames.icon, ariaLabel]);
4839
5018
  const { width: arrowWidth, height: arrowHeight } = resolveTooltipArrowDimensions(size);
4840
5019
  const arrowPoints = `0,0 ${arrowWidth},0 ${arrowWidth / 2},${arrowHeight}`;
4841
5020
  const arrowBorderPath = `M0 0 L${arrowWidth / 2} ${arrowHeight} L${arrowWidth} 0`;
4842
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(TooltipPrimitive.Provider, { delayDuration, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(TooltipPrimitive.Root, { children: [
4843
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(TooltipPrimitive.Trigger, { asChild: true, children: trigger }),
4844
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
5021
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(TooltipPrimitive.Provider, { delayDuration, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(TooltipPrimitive.Root, { children: [
5022
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(TooltipPrimitive.Trigger, { asChild: true, children: trigger }),
5023
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
4845
5024
  TooltipPrimitive.Content,
4846
5025
  {
4847
5026
  side,
@@ -4863,7 +5042,7 @@ var Tooltip = ({
4863
5042
  classNames == null ? void 0 : classNames.content
4864
5043
  ),
4865
5044
  children: [
4866
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(TooltipPrimitive.Arrow, { asChild: true, width: arrowWidth, height: arrowHeight, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
5045
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(TooltipPrimitive.Arrow, { asChild: true, width: arrowWidth, height: arrowHeight, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
4867
5046
  "svg",
4868
5047
  {
4869
5048
  width: arrowWidth,
@@ -4872,8 +5051,8 @@ var Tooltip = ({
4872
5051
  "aria-hidden": "true",
4873
5052
  className: cn("overflow-visible", classNames == null ? void 0 : classNames.arrow),
4874
5053
  children: [
4875
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("polygon", { points: arrowPoints, className: "fill-agg-secondary" }),
4876
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
5054
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("polygon", { points: arrowPoints, className: "fill-agg-secondary" }),
5055
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
4877
5056
  "path",
4878
5057
  {
4879
5058
  d: arrowBorderPath,
@@ -4895,8 +5074,8 @@ var Tooltip = ({
4895
5074
  Tooltip.displayName = "Tooltip";
4896
5075
 
4897
5076
  // src/shared/transfer-fee-summary.tsx
4898
- var import_jsx_runtime100 = require("react/jsx-runtime");
4899
- var separator = /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { className: "text-agg-muted-foreground", "aria-hidden": "true", children: "\xB7" });
5077
+ var import_jsx_runtime104 = require("react/jsx-runtime");
5078
+ var separator = /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { className: "text-agg-muted-foreground", "aria-hidden": "true", children: "\xB7" });
4900
5079
  var normalizeFeeLabel = (label) => label.replace(/\s*~\s*$/, "");
4901
5080
  var TransferFeeSummary = ({
4902
5081
  estimate,
@@ -4907,43 +5086,43 @@ var TransferFeeSummary = ({
4907
5086
  const labels = (0, import_hooks20.useLabels)();
4908
5087
  if (!estimate) return null;
4909
5088
  if (view === "deposit") {
4910
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("p", { className: "agg-type-label flex flex-wrap items-center gap-x-2 gap-y-1 text-agg-foreground", children: [
4911
- minDeposit ? /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("span", { children: [
5089
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("p", { className: "agg-type-label flex flex-wrap items-center gap-x-2 gap-y-1 text-agg-foreground", children: [
5090
+ minDeposit ? /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("span", { children: [
4912
5091
  labels.deposit.sendCrypto.minDepositPrefix,
4913
5092
  " ",
4914
5093
  minDeposit
4915
5094
  ] }) : null,
4916
5095
  minDeposit ? separator : null,
4917
- /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("span", { children: [
5096
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("span", { children: [
4918
5097
  normalizeFeeLabel(labels.deposit.walletFlow.feePrefix),
4919
5098
  ": ",
4920
5099
  estimate.estimatedFees
4921
5100
  ] }),
4922
5101
  eta ? separator : null,
4923
- eta ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { children: eta }) : null
5102
+ eta ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { children: eta }) : null
4924
5103
  ] });
4925
5104
  }
4926
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "agg-type-label flex flex-wrap items-center gap-x-2 gap-y-1 text-agg-foreground", children: [
4927
- /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("span", { children: [
5105
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "agg-type-label flex flex-wrap items-center gap-x-2 gap-y-1 text-agg-foreground", children: [
5106
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("span", { children: [
4928
5107
  labels.withdraw.walletFlow.estimatedFees,
4929
5108
  ": ",
4930
5109
  estimate.estimatedFees
4931
5110
  ] }),
4932
5111
  separator,
4933
- /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("span", { className: "inline-flex items-center gap-1", children: [
4934
- /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("span", { children: [
5112
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("span", { className: "inline-flex items-center gap-1", children: [
5113
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("span", { children: [
4935
5114
  labels.withdraw.walletFlow.networkReserve,
4936
5115
  ": ",
4937
5116
  estimate.networkReserve
4938
5117
  ] }),
4939
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
5118
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
4940
5119
  Tooltip,
4941
5120
  {
4942
5121
  "aria-label": labels.withdraw.walletFlow.networkReserveTooltipAria,
4943
5122
  size: "medium",
4944
- content: /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "text-center", children: [
4945
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("p", { children: labels.withdraw.walletFlow.networkReserveTooltipLineOne }),
4946
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("p", { children: labels.withdraw.walletFlow.networkReserveTooltipLineTwo })
5123
+ content: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "text-center", children: [
5124
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { children: labels.withdraw.walletFlow.networkReserveTooltipLineOne }),
5125
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { children: labels.withdraw.walletFlow.networkReserveTooltipLineTwo })
4947
5126
  ] }),
4948
5127
  classNames: {
4949
5128
  content: "min-w-96 max-w-none!",
@@ -4954,7 +5133,7 @@ var TransferFeeSummary = ({
4954
5133
  )
4955
5134
  ] }),
4956
5135
  separator,
4957
- /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("span", { children: [
5136
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("span", { children: [
4958
5137
  labels.withdraw.walletFlow.youReceive,
4959
5138
  ": ",
4960
5139
  estimate.youReceive
@@ -4964,21 +5143,21 @@ var TransferFeeSummary = ({
4964
5143
 
4965
5144
  // src/deposit/components/DepositQRCode.tsx
4966
5145
  var import_qrcode = require("qrcode.react");
4967
- var import_jsx_runtime101 = require("react/jsx-runtime");
5146
+ var import_jsx_runtime105 = require("react/jsx-runtime");
4968
5147
  function DepositQRCode({
4969
5148
  depositAddress,
4970
5149
  networkLogoUrl,
4971
5150
  networkLogo,
4972
5151
  size = 160
4973
5152
  }) {
4974
- const logoOverlay = networkLogo ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
5153
+ const logoOverlay = networkLogo ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
4975
5154
  "div",
4976
5155
  {
4977
5156
  className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 overflow-hidden rounded-sm",
4978
5157
  style: { width: 32, height: 32, backgroundColor: "#FFFFFF", padding: 2 },
4979
5158
  children: networkLogo
4980
5159
  }
4981
- ) : networkLogoUrl ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
5160
+ ) : networkLogoUrl ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
4982
5161
  "img",
4983
5162
  {
4984
5163
  src: networkLogoUrl,
@@ -4989,7 +5168,7 @@ function DepositQRCode({
4989
5168
  style: { backgroundColor: "#FFFFFF", padding: 2 }
4990
5169
  }
4991
5170
  ) : null;
4992
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
5171
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
4993
5172
  "div",
4994
5173
  {
4995
5174
  className: "inline-flex items-center justify-center rounded-xl border",
@@ -4998,8 +5177,8 @@ function DepositQRCode({
4998
5177
  borderColor: "#E5E7EB",
4999
5178
  backgroundColor: "#FFFFFF"
5000
5179
  },
5001
- children: /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "relative", style: { width: size, height: size }, children: [
5002
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_qrcode.QRCodeSVG, { value: depositAddress, size, level: "H" }),
5180
+ children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "relative", style: { width: size, height: size }, children: [
5181
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(import_qrcode.QRCodeSVG, { value: depositAddress, size, level: "H" }),
5003
5182
  logoOverlay
5004
5183
  ] })
5005
5184
  }
@@ -5008,27 +5187,27 @@ function DepositQRCode({
5008
5187
  DepositQRCode.displayName = "DepositQRCode";
5009
5188
 
5010
5189
  // src/deposit/steps/crypto-transfer.tsx
5011
- var import_jsx_runtime102 = require("react/jsx-runtime");
5190
+ var import_jsx_runtime106 = require("react/jsx-runtime");
5012
5191
  var CryptoAddressLoadingState = () => {
5013
5192
  const labels = (0, import_hooks21.useLabels)();
5014
5193
  const sendCryptoLabels = labels.deposit.sendCrypto;
5015
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
5194
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
5016
5195
  "div",
5017
5196
  {
5018
5197
  className: "flex w-full flex-col items-center justify-center gap-6 py-10 text-center text-agg-foreground",
5019
5198
  role: "status",
5020
5199
  "aria-live": "polite",
5021
5200
  children: [
5022
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
5201
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5023
5202
  "span",
5024
5203
  {
5025
5204
  className: "h-9 w-9 animate-spin rounded-full border-2 border-agg-primary/25 border-t-agg-primary",
5026
5205
  "aria-hidden": "true"
5027
5206
  }
5028
5207
  ),
5029
- /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex w-full flex-col items-center gap-2", children: [
5030
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6", children: sendCryptoLabels.addressLoadingTitle }),
5031
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "max-w-[300px] text-agg-sm leading-agg-5", children: sendCryptoLabels.addressLoadingDescription })
5208
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex w-full flex-col items-center gap-2", children: [
5209
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6", children: sendCryptoLabels.addressLoadingTitle }),
5210
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: "max-w-[300px] text-agg-sm leading-agg-5", children: sendCryptoLabels.addressLoadingDescription })
5032
5211
  ] })
5033
5212
  ]
5034
5213
  }
@@ -5064,29 +5243,29 @@ var CryptoTransferStep = ({
5064
5243
  selectedToken,
5065
5244
  selectedNetwork
5066
5245
  });
5067
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(import_jsx_runtime102.Fragment, { children: [
5068
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
5246
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(import_jsx_runtime106.Fragment, { children: [
5247
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5069
5248
  Modal.Header,
5070
5249
  {
5071
5250
  title: labels.deposit.sendCrypto.title,
5072
5251
  hideBorder: true,
5073
- leftElement: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
5252
+ leftElement: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5074
5253
  "button",
5075
5254
  {
5076
5255
  type: "button",
5077
5256
  className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
5078
5257
  onClick: onBack,
5079
5258
  "aria-label": "Go back",
5080
- children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
5259
+ children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
5081
5260
  }
5082
5261
  )
5083
5262
  }
5084
5263
  ),
5085
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex flex-col gap-7", children: [
5086
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "flex flex-col gap-5", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex gap-5", children: [
5087
- /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
5088
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.sendCrypto.tokenLabel }),
5089
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
5264
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex flex-col gap-7", children: [
5265
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "flex flex-col gap-5", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex gap-5", children: [
5266
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
5267
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.sendCrypto.tokenLabel }),
5268
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5090
5269
  Select,
5091
5270
  {
5092
5271
  items: tokenOptions,
@@ -5096,9 +5275,9 @@ var CryptoTransferStep = ({
5096
5275
  }
5097
5276
  )
5098
5277
  ] }),
5099
- /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
5100
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.sendCrypto.networkLabel }),
5101
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
5278
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
5279
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.sendCrypto.networkLabel }),
5280
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5102
5281
  Select,
5103
5282
  {
5104
5283
  items: networkOptions,
@@ -5109,7 +5288,7 @@ var CryptoTransferStep = ({
5109
5288
  )
5110
5289
  ] })
5111
5290
  ] }) }),
5112
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "mx-auto", children: isLoadingAddress ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(CryptoAddressLoadingState, {}) : addressError ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "flex h-[192px] w-[192px] items-center justify-center rounded-xl border border-agg-separator bg-agg-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "agg-type-label text-center text-agg-error px-3", children: addressError }) }) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
5291
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "mx-auto", children: isLoadingAddress ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(CryptoAddressLoadingState, {}) : addressError ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "flex h-[192px] w-[192px] items-center justify-center rounded-xl border border-agg-separator bg-agg-secondary", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: "agg-type-label text-center text-agg-error px-3", children: addressError }) }) : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5113
5292
  DepositQRCode,
5114
5293
  {
5115
5294
  depositAddress,
@@ -5117,11 +5296,11 @@ var CryptoTransferStep = ({
5117
5296
  networkLogo
5118
5297
  }
5119
5298
  ) }),
5120
- /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex flex-col gap-3", children: [
5121
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.sendCrypto.depositAddressLabel }),
5122
- /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex items-center gap-2 rounded border border-agg-separator bg-agg-secondary h-10 px-3", children: [
5123
- isLoadingAddress ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("div", { className: "h-4 flex-1 animate-pulse rounded bg-agg-muted-foreground/20" }) : /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "agg-type-body flex-1 min-w-0 truncate text-agg-foreground", children: depositAddress }),
5124
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
5299
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex flex-col gap-3", children: [
5300
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.sendCrypto.depositAddressLabel }),
5301
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex items-center gap-2 rounded border border-agg-separator bg-agg-secondary h-10 px-3", children: [
5302
+ isLoadingAddress ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "h-4 flex-1 animate-pulse rounded bg-agg-muted-foreground/20" }) : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: "agg-type-body flex-1 min-w-0 truncate text-agg-foreground", children: depositAddress }),
5303
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5125
5304
  CopyButton,
5126
5305
  {
5127
5306
  value: depositAddress,
@@ -5133,7 +5312,7 @@ var CryptoTransferStep = ({
5133
5312
  }
5134
5313
  )
5135
5314
  ] }),
5136
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
5315
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5137
5316
  TransferFeeSummary,
5138
5317
  {
5139
5318
  estimate: transferFeeEstimate,
@@ -5143,11 +5322,11 @@ var CryptoTransferStep = ({
5143
5322
  }
5144
5323
  )
5145
5324
  ] }),
5146
- /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex items-start gap-3 rounded-lg bg-agg-secondary-hover p-3", children: [
5147
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(WarningIcon, { className: "h-4 w-4 text-agg-muted-foreground mt-0.5" }),
5148
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "text-agg-xs leading-agg-4 text-agg-foreground", children: labels.deposit.sendCrypto.warning })
5325
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex items-start gap-3 rounded-lg bg-agg-secondary-hover p-3", children: [
5326
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(WarningIcon, { className: "h-4 w-4 text-agg-muted-foreground mt-0.5" }),
5327
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: "text-agg-xs leading-agg-4 text-agg-foreground", children: labels.deposit.sendCrypto.warning })
5149
5328
  ] }),
5150
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
5329
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5151
5330
  Button,
5152
5331
  {
5153
5332
  variant: "secondary",
@@ -5163,7 +5342,7 @@ var CryptoTransferStep = ({
5163
5342
 
5164
5343
  // src/deposit/steps/deposit-method.tsx
5165
5344
  var import_hooks22 = require("@agg-build/hooks");
5166
- var import_jsx_runtime103 = require("react/jsx-runtime");
5345
+ var import_jsx_runtime107 = require("react/jsx-runtime");
5167
5346
  var DepositMethodCard = ({
5168
5347
  icon,
5169
5348
  title,
@@ -5172,7 +5351,7 @@ var DepositMethodCard = ({
5172
5351
  highlighted = false,
5173
5352
  disabled = false,
5174
5353
  onContinue
5175
- }) => /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
5354
+ }) => /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
5176
5355
  "div",
5177
5356
  {
5178
5357
  className: cn(
@@ -5194,13 +5373,13 @@ var DepositMethodCard = ({
5194
5373
  }
5195
5374
  },
5196
5375
  children: [
5197
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "shrink-0 flex items-center justify-center h-10 w-10 rounded-lg bg-agg-secondary-hover", children: icon }),
5198
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex-1 min-w-0", children: [
5199
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: title }),
5200
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: description })
5376
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "shrink-0 flex items-center justify-center h-10 w-10 rounded-lg bg-agg-secondary-hover", children: icon }),
5377
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex-1 min-w-0", children: [
5378
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: title }),
5379
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: description })
5201
5380
  ] }),
5202
- value ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: value }) : null,
5203
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("div", { className: "shrink-0 text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(ChevronRightIcon, { className: "h-5 w-5" }) })
5381
+ value ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: value }) : null,
5382
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "shrink-0 text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(ChevronRightIcon, { className: "h-5 w-5" }) })
5204
5383
  ]
5205
5384
  }
5206
5385
  );
@@ -5216,31 +5395,31 @@ var DepositMethodStep = ({
5216
5395
  onSelectMethod
5217
5396
  }) => {
5218
5397
  const labels = (0, import_hooks22.useLabels)();
5219
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(import_jsx_runtime103.Fragment, { children: [
5220
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Modal.Header, { title: labels.deposit.title, hideBorder: true }),
5221
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex flex-col gap-5", children: [
5222
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("p", { className: "agg-type-body text-agg-foreground", children: [
5398
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(import_jsx_runtime107.Fragment, { children: [
5399
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Modal.Header, { title: labels.deposit.title, hideBorder: true }),
5400
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex flex-col gap-5", children: [
5401
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("p", { className: "agg-type-body text-agg-foreground", children: [
5223
5402
  labels.deposit.balancePrefix,
5224
5403
  " ",
5225
5404
  formatCompactUsd(balance)
5226
5405
  ] }),
5227
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex flex-col gap-4", children: [
5228
- showWalletMethod ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
5406
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex flex-col gap-4", children: [
5407
+ showWalletMethod ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
5229
5408
  DepositMethodCard,
5230
5409
  {
5231
- icon: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(WalletIcon, { className: "h-6 w-6 text-agg-muted-foreground" }),
5410
+ icon: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(WalletIcon, { className: "h-6 w-6 text-agg-muted-foreground" }),
5232
5411
  title: labels.deposit.methods.walletTitle(walletLabel),
5233
5412
  description: labels.deposit.methods.walletDescription,
5234
- value: isWalletBalanceLoading ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(LoadingIcon, { size: "small" }) : formatTokenAmount(walletBalance, walletToken),
5413
+ value: isWalletBalanceLoading ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(LoadingIcon, { size: "small" }) : formatTokenAmount(walletBalance, walletToken),
5235
5414
  highlighted: highlightedMethod === "wallet",
5236
5415
  disabled: !depositAddressesReady,
5237
5416
  onContinue: () => onSelectMethod("wallet")
5238
5417
  }
5239
5418
  ) : null,
5240
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
5419
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
5241
5420
  DepositMethodCard,
5242
5421
  {
5243
- icon: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(BoltIcon, { className: "h-6 w-6 text-agg-muted-foreground" }),
5422
+ icon: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(BoltIcon, { className: "h-6 w-6 text-agg-muted-foreground" }),
5244
5423
  title: labels.deposit.methods.cryptoTitle,
5245
5424
  description: labels.deposit.methods.cryptoDescription,
5246
5425
  highlighted: highlightedMethod === "crypto",
@@ -5248,10 +5427,10 @@ var DepositMethodStep = ({
5248
5427
  onContinue: () => onSelectMethod("crypto")
5249
5428
  }
5250
5429
  ),
5251
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
5430
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
5252
5431
  DepositMethodCard,
5253
5432
  {
5254
- icon: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(CreditCardIcon, { className: "h-6 w-6 text-agg-muted-foreground" }),
5433
+ icon: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(CreditCardIcon, { className: "h-6 w-6 text-agg-muted-foreground" }),
5255
5434
  title: labels.deposit.methods.cardTitle,
5256
5435
  description: labels.deposit.methods.cardDescription,
5257
5436
  highlighted: highlightedMethod === "card",
@@ -5265,7 +5444,7 @@ var DepositMethodStep = ({
5265
5444
 
5266
5445
  // src/deposit/steps/wallet-form.tsx
5267
5446
  var import_hooks23 = require("@agg-build/hooks");
5268
- var import_jsx_runtime104 = require("react/jsx-runtime");
5447
+ var import_jsx_runtime108 = require("react/jsx-runtime");
5269
5448
  var WalletFormStep = ({
5270
5449
  walletLabel,
5271
5450
  walletBalance,
@@ -5290,38 +5469,38 @@ var WalletFormStep = ({
5290
5469
  }) => {
5291
5470
  const labels = (0, import_hooks23.useLabels)();
5292
5471
  const isConfirmEnabled = !isSubmitting && !isBalanceLoading && Number(amount) > 0 && Number(amount) <= walletBalance;
5293
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_jsx_runtime104.Fragment, { children: [
5294
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5472
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_jsx_runtime108.Fragment, { children: [
5473
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
5295
5474
  Modal.Header,
5296
5475
  {
5297
5476
  title: labels.deposit.walletFlow.title,
5298
5477
  hideBorder: true,
5299
- leftElement: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5478
+ leftElement: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
5300
5479
  "button",
5301
5480
  {
5302
5481
  type: "button",
5303
5482
  className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
5304
5483
  onClick: onBack,
5305
5484
  "aria-label": "Go back",
5306
- children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
5485
+ children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
5307
5486
  }
5308
5487
  )
5309
5488
  }
5310
5489
  ),
5311
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex flex-col gap-7", children: [
5312
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex items-center justify-between", children: [
5313
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "agg-type-label text-agg-foreground", children: walletLabel }),
5314
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
5490
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: "flex flex-col gap-7", children: [
5491
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: "flex items-center justify-between", children: [
5492
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("p", { className: "agg-type-label text-agg-foreground", children: walletLabel }),
5493
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
5315
5494
  labels.deposit.balanceLabel,
5316
5495
  " ",
5317
- isBalanceLoading ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(LoadingIcon, { size: "small" }) : formatTokenAmount(walletBalance, selectedToken)
5496
+ isBalanceLoading ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(LoadingIcon, { size: "small" }) : formatTokenAmount(walletBalance, selectedToken)
5318
5497
  ] })
5319
5498
  ] }),
5320
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex flex-col gap-5", children: [
5321
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex gap-5", children: [
5322
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
5323
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.walletFlow.tokenLabel }),
5324
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5499
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: "flex flex-col gap-5", children: [
5500
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: "flex gap-5", children: [
5501
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
5502
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.walletFlow.tokenLabel }),
5503
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
5325
5504
  Select,
5326
5505
  {
5327
5506
  items: tokenOptions,
@@ -5331,9 +5510,9 @@ var WalletFormStep = ({
5331
5510
  }
5332
5511
  )
5333
5512
  ] }),
5334
- networkOptions.length >= 1 ? /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
5335
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.walletFlow.networkLabel }),
5336
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5513
+ networkOptions.length >= 1 ? /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
5514
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.walletFlow.networkLabel }),
5515
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
5337
5516
  Select,
5338
5517
  {
5339
5518
  items: networkOptions,
@@ -5344,9 +5523,9 @@ var WalletFormStep = ({
5344
5523
  )
5345
5524
  ] }) : null
5346
5525
  ] }),
5347
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex flex-col gap-2", children: [
5348
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.walletFlow.amountLabel }),
5349
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
5526
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: "flex flex-col gap-2", children: [
5527
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.deposit.walletFlow.amountLabel }),
5528
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
5350
5529
  "div",
5351
5530
  {
5352
5531
  className: cn(
@@ -5355,7 +5534,7 @@ var WalletFormStep = ({
5355
5534
  "h-10 px-3"
5356
5535
  ),
5357
5536
  children: [
5358
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5537
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
5359
5538
  "input",
5360
5539
  {
5361
5540
  type: "text",
@@ -5367,7 +5546,7 @@ var WalletFormStep = ({
5367
5546
  onChange: (event) => onAmountChange(event.target.value)
5368
5547
  }
5369
5548
  ),
5370
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5549
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
5371
5550
  "button",
5372
5551
  {
5373
5552
  type: "button",
@@ -5381,8 +5560,8 @@ var WalletFormStep = ({
5381
5560
  }
5382
5561
  )
5383
5562
  ] }),
5384
- estimatedReceive && feeEstimate && eta ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "agg-type-label text-agg-foreground", children: `\u2248 ${estimatedReceive} \xB7 ${labels.deposit.walletFlow.feePrefix} ${feeEstimate} \xB7 ${eta}` }) : null,
5385
- formErrorMessage ? /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
5563
+ estimatedReceive && feeEstimate && eta ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("p", { className: "agg-type-label text-agg-foreground", children: `\u2248 ${estimatedReceive} \xB7 ${labels.deposit.walletFlow.feePrefix} ${feeEstimate} \xB7 ${eta}` }) : null,
5564
+ formErrorMessage ? /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
5386
5565
  "div",
5387
5566
  {
5388
5567
  className: cn(
@@ -5390,13 +5569,13 @@ var WalletFormStep = ({
5390
5569
  formErrorTone === "warning" ? "text-agg-warning" : "text-agg-error"
5391
5570
  ),
5392
5571
  children: [
5393
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(WarningIcon, { className: "mt-0.5 h-4 w-4 shrink-0" }),
5394
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "agg-type-label", children: formErrorMessage })
5572
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(WarningIcon, { className: "mt-0.5 h-4 w-4 shrink-0" }),
5573
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("p", { className: "agg-type-label", children: formErrorMessage })
5395
5574
  ]
5396
5575
  }
5397
5576
  ) : null
5398
5577
  ] }),
5399
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
5578
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
5400
5579
  Button,
5401
5580
  {
5402
5581
  variant: isConfirmEnabled ? "primary" : "secondary",
@@ -5416,7 +5595,7 @@ var WalletFormStep = ({
5416
5595
  // src/deposit/steps/wallet-processing.tsx
5417
5596
  var import_hooks24 = require("@agg-build/hooks");
5418
5597
  var import_react6 = require("react");
5419
- var import_jsx_runtime105 = require("react/jsx-runtime");
5598
+ var import_jsx_runtime109 = require("react/jsx-runtime");
5420
5599
  var WalletProcessingStep = ({
5421
5600
  steps,
5422
5601
  errorMessage,
@@ -5429,14 +5608,14 @@ var WalletProcessingStep = ({
5429
5608
  onComplete();
5430
5609
  }
5431
5610
  }, [steps, onComplete]);
5432
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(import_jsx_runtime105.Fragment, { children: [
5433
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Modal.Header, { title: labels.deposit.processingTitle, hideBorder: true }),
5434
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex flex-col gap-5", children: [
5611
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_jsx_runtime109.Fragment, { children: [
5612
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Modal.Header, { title: labels.deposit.processingTitle, hideBorder: true }),
5613
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex flex-col gap-5", children: [
5435
5614
  steps.map((step) => {
5436
5615
  const isComplete = step.status === "complete";
5437
5616
  const isActive = step.status === "active";
5438
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex items-center gap-3", children: [
5439
- isComplete ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(CheckCircleIcon, { className: "h-4 w-4 text-agg-primary" }) : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
5617
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex items-center gap-3", children: [
5618
+ isComplete ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(CheckCircleIcon, { className: "h-4 w-4 text-agg-primary" }) : /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
5440
5619
  "span",
5441
5620
  {
5442
5621
  className: [
@@ -5446,7 +5625,7 @@ var WalletProcessingStep = ({
5446
5625
  ].join(" ")
5447
5626
  }
5448
5627
  ),
5449
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
5628
+ /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
5450
5629
  "p",
5451
5630
  {
5452
5631
  className: isComplete || isActive ? "agg-type-body text-agg-foreground" : "agg-type-body text-agg-muted-foreground",
@@ -5455,17 +5634,17 @@ var WalletProcessingStep = ({
5455
5634
  )
5456
5635
  ] }, step.id);
5457
5636
  }),
5458
- errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "agg-type-body text-agg-destructive", children: errorMessage }) : null
5637
+ errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("p", { className: "agg-type-body text-agg-destructive", children: errorMessage }) : null
5459
5638
  ] }) })
5460
5639
  ] });
5461
5640
  };
5462
5641
 
5463
5642
  // src/deposit/steps/wallet-success.tsx
5464
5643
  var import_hooks25 = require("@agg-build/hooks");
5465
- var import_jsx_runtime106 = require("react/jsx-runtime");
5466
- var SummaryRow2 = ({ label, value }) => /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex items-center justify-between border-b border-agg-separator py-2 last:border-b-0", children: [
5467
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: "text-[12px] leading-4 font-agg-bold uppercase text-agg-muted-foreground", children: label }),
5468
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: "agg-type-label text-agg-foreground", children: value })
5644
+ var import_jsx_runtime110 = require("react/jsx-runtime");
5645
+ var SummaryRow2 = ({ label, value }) => /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex items-center justify-between border-b border-agg-separator py-2 last:border-b-0", children: [
5646
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: "text-[12px] leading-4 font-agg-bold uppercase text-agg-muted-foreground", children: label }),
5647
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: "agg-type-label text-agg-foreground", children: value })
5469
5648
  ] });
5470
5649
  var WalletSuccessStep = ({
5471
5650
  summary,
@@ -5473,42 +5652,42 @@ var WalletSuccessStep = ({
5473
5652
  onClose
5474
5653
  }) => {
5475
5654
  const labels = (0, import_hooks25.useLabels)();
5476
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(Modal.Body, { classNames: { root: "px-5 py-8 sm:px-8 sm:py-10" }, children: [
5477
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5655
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(Modal.Body, { classNames: { root: "px-5 py-8 sm:px-8 sm:py-10" }, children: [
5656
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
5478
5657
  "button",
5479
5658
  {
5480
5659
  type: "button",
5481
5660
  className: "absolute right-8 top-7 flex items-center justify-center text-agg-foreground transition-colors hover:text-agg-foreground/80",
5482
5661
  onClick: onClose,
5483
5662
  "aria-label": labels.common.close,
5484
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(CloseIcon, { className: "h-6 w-6" })
5663
+ children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(CloseIcon, { className: "h-6 w-6" })
5485
5664
  }
5486
5665
  ),
5487
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
5488
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "flex h-[60px] w-[60px] items-center justify-center rounded-full bg-agg-success/15", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(SuccessCheckIcon, { className: "h-6 w-6 text-agg-success" }) }),
5489
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex flex-col items-center gap-3 text-center", children: [
5490
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold text-agg-foreground", children: labels.deposit.successTitle }),
5491
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("p", { className: "agg-type-body text-agg-foreground", children: labels.deposit.successDescription })
5666
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
5667
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: "flex h-[60px] w-[60px] items-center justify-center rounded-full bg-agg-success/15", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(SuccessCheckIcon, { className: "h-6 w-6 text-agg-success" }) }),
5668
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex flex-col items-center gap-3 text-center", children: [
5669
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold text-agg-foreground", children: labels.deposit.successTitle }),
5670
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: "agg-type-body text-agg-foreground", children: labels.deposit.successDescription })
5492
5671
  ] }),
5493
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "w-full rounded-lg border border-agg-separator bg-agg-secondary px-3 py-1", children: [
5494
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5672
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "w-full rounded-lg border border-agg-separator bg-agg-secondary px-3 py-1", children: [
5673
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
5495
5674
  SummaryRow2,
5496
5675
  {
5497
5676
  label: labels.deposit.summary.amountReceived,
5498
5677
  value: summary.amountReceived
5499
5678
  }
5500
5679
  ),
5501
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(SummaryRow2, { label: labels.deposit.summary.network, value: summary.network }),
5502
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(SummaryRow2, { label: labels.deposit.summary.fromWallet, value: summary.fromWallet }),
5503
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(SummaryRow2, { label: labels.deposit.summary.gasFee, value: summary.gasFee })
5680
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(SummaryRow2, { label: labels.deposit.summary.network, value: summary.network }),
5681
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(SummaryRow2, { label: labels.deposit.summary.fromWallet, value: summary.fromWallet }),
5682
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(SummaryRow2, { label: labels.deposit.summary.gasFee, value: summary.gasFee })
5504
5683
  ] }),
5505
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Button, { variant: "secondary", size: "large", className: "w-[120px]", onClick: onDone, children: labels.deposit.done })
5684
+ /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Button, { variant: "secondary", size: "large", className: "w-[120px]", onClick: onDone, children: labels.deposit.done })
5506
5685
  ] })
5507
5686
  ] }) });
5508
5687
  };
5509
5688
 
5510
5689
  // src/deposit/index.tsx
5511
- var import_jsx_runtime107 = require("react/jsx-runtime");
5690
+ var import_jsx_runtime111 = require("react/jsx-runtime");
5512
5691
  var PENDING_CARD_SESSION_KEY = "agg-pending-card-session";
5513
5692
  var DEFAULT_WALLET_CHAIN_ID = "1";
5514
5693
  var DEFAULT_WALLET_TOKEN = "USDC";
@@ -5558,7 +5737,7 @@ function isControlledDepositModalProps(props) {
5558
5737
  }
5559
5738
  function DepositModalSelfDriven({ open, onOpenChange }) {
5560
5739
  const depositProps = (0, import_deposit.useDepositFlow)({ open, onOpenChange });
5561
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(DepositModalControlled, __spreadValues({}, depositProps));
5740
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(DepositModalControlled, __spreadValues({}, depositProps));
5562
5741
  }
5563
5742
  function DepositModalControlled({
5564
5743
  open,
@@ -5601,6 +5780,8 @@ function DepositModalControlled({
5601
5780
  );
5602
5781
  const [highlightedMethod, setHighlightedMethod] = (0, import_react7.useState)(defaultMethod);
5603
5782
  const walletSubmitInFlightRef = (0, import_react7.useRef)(false);
5783
+ const walletDepositAttemptIdRef = (0, import_react7.useRef)(0);
5784
+ const notifiedWalletDepositStatusesRef = (0, import_react7.useRef)(/* @__PURE__ */ new Set());
5604
5785
  const [isWalletSubmitting, setIsWalletSubmitting] = (0, import_react7.useState)(false);
5605
5786
  const [cardProviders, setCardProviders] = (0, import_react7.useState)([]);
5606
5787
  const [quotesLoading, setQuotesLoading] = (0, import_react7.useState)(false);
@@ -5703,19 +5884,42 @@ function DepositModalControlled({
5703
5884
  fromWallet: walletFlow.walletLabel,
5704
5885
  gasFee: ""
5705
5886
  }, walletFlow.successSummary);
5887
+ const handleWalletDepositNotification = (0, import_react7.useCallback)(
5888
+ (status, errorMessage) => {
5889
+ if (notifiedWalletDepositStatusesRef.current.has(status)) return;
5890
+ notifiedWalletDepositStatusesRef.current.add(status);
5891
+ dispatchAggDepositNotification({
5892
+ id: `wallet-${walletDepositAttemptIdRef.current}`,
5893
+ status,
5894
+ amount: walletFlow.amount,
5895
+ tokenSymbol: walletToken || DEFAULT_WALLET_TOKEN,
5896
+ errorMessage
5897
+ });
5898
+ },
5899
+ [walletFlow.amount, walletToken]
5900
+ );
5706
5901
  (0, import_react7.useEffect)(() => {
5707
5902
  if (step === "wallet-processing" && !isWalletSubmitting && walletFlow.transactionStatus === "settled") {
5903
+ handleWalletDepositNotification("completed");
5708
5904
  setStep("wallet-success");
5709
5905
  }
5710
- }, [isWalletSubmitting, step, walletFlow.transactionStatus]);
5906
+ }, [handleWalletDepositNotification, isWalletSubmitting, step, walletFlow.transactionStatus]);
5711
5907
  (0, import_react7.useEffect)(() => {
5712
5908
  if (!onCancelWalletDeposit) return;
5713
5909
  if (step === "wallet-processing" && !isWalletSubmitting && walletFlow.transactionStatus === "error") {
5714
5910
  walletSubmitInFlightRef.current = false;
5911
+ handleWalletDepositNotification("failed", walletFlow.transactionErrorMessage);
5715
5912
  onCancelWalletDeposit();
5716
5913
  setStep("wallet-form");
5717
5914
  }
5718
- }, [isWalletSubmitting, onCancelWalletDeposit, step, walletFlow.transactionStatus]);
5915
+ }, [
5916
+ handleWalletDepositNotification,
5917
+ isWalletSubmitting,
5918
+ onCancelWalletDeposit,
5919
+ step,
5920
+ walletFlow.transactionErrorMessage,
5921
+ walletFlow.transactionStatus
5922
+ ]);
5719
5923
  const cardTokenOptions = withTokenIcons(
5720
5924
  mergeSelectOptionsUnique(cardFlow == null ? void 0 : cardFlow.tokenOptions, DEFAULT_CURRENCY_OPTIONS)
5721
5925
  );
@@ -5839,6 +6043,8 @@ function DepositModalControlled({
5839
6043
  setSendChainId("");
5840
6044
  setSendToken("");
5841
6045
  walletSubmitInFlightRef.current = false;
6046
+ walletDepositAttemptIdRef.current = 0;
6047
+ notifiedWalletDepositStatusesRef.current = /* @__PURE__ */ new Set();
5842
6048
  setIsWalletSubmitting(false);
5843
6049
  setCardProviders([]);
5844
6050
  setQuotesLoading(false);
@@ -5851,8 +6057,8 @@ function DepositModalControlled({
5851
6057
  onOpenChange(isOpen);
5852
6058
  };
5853
6059
  const depositModalMaxWidth = step === "method" ? "600px" : "480px";
5854
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(Modal.Container, { maxWidth: depositModalMaxWidth, "aria-label": "Deposit", children: [
5855
- step === "method" ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
6060
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(Modal.Container, { maxWidth: depositModalMaxWidth, "aria-label": "Deposit", children: [
6061
+ step === "method" ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
5856
6062
  DepositMethodStep,
5857
6063
  {
5858
6064
  balance: walletFlow.balance,
@@ -5866,7 +6072,7 @@ function DepositModalControlled({
5866
6072
  onSelectMethod: handleSelectMethod
5867
6073
  }
5868
6074
  ) : null,
5869
- step === "wallet-form" ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
6075
+ step === "wallet-form" ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
5870
6076
  WalletFormStep,
5871
6077
  {
5872
6078
  walletLabel: walletFlow.walletLabel,
@@ -5895,6 +6101,8 @@ function DepositModalControlled({
5895
6101
  var _a2, _b2;
5896
6102
  if (walletSubmitInFlightRef.current) return;
5897
6103
  walletSubmitInFlightRef.current = true;
6104
+ walletDepositAttemptIdRef.current += 1;
6105
+ notifiedWalletDepositStatusesRef.current = /* @__PURE__ */ new Set();
5898
6106
  setIsWalletSubmitting(true);
5899
6107
  setStep("wallet-processing");
5900
6108
  const walletChainIdNum = walletChainId ? Number(walletChainId) : void 0;
@@ -5930,7 +6138,7 @@ function DepositModalControlled({
5930
6138
  })
5931
6139
  }
5932
6140
  ) : null,
5933
- step === "wallet-processing" ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
6141
+ step === "wallet-processing" ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
5934
6142
  WalletProcessingStep,
5935
6143
  {
5936
6144
  steps: processingSteps,
@@ -5938,7 +6146,7 @@ function DepositModalControlled({
5938
6146
  onComplete: () => setStep("wallet-success")
5939
6147
  }
5940
6148
  ) : null,
5941
- step === "wallet-success" ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
6149
+ step === "wallet-success" ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
5942
6150
  WalletSuccessStep,
5943
6151
  {
5944
6152
  summary: resolvedSuccessSummary,
@@ -5946,7 +6154,7 @@ function DepositModalControlled({
5946
6154
  onClose: () => handleOpenChange(false)
5947
6155
  }
5948
6156
  ) : null,
5949
- step === "card-deposit" && cardFlow ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
6157
+ step === "card-deposit" && cardFlow ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
5950
6158
  CardDepositStep,
5951
6159
  {
5952
6160
  amount: cardFlow.amount,
@@ -5968,7 +6176,7 @@ function DepositModalControlled({
5968
6176
  onContinue: handleContinueCardDeposit
5969
6177
  }
5970
6178
  ) : null,
5971
- step === "card-provider" && cardFlow ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
6179
+ step === "card-provider" && cardFlow ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
5972
6180
  CardProviderStep,
5973
6181
  {
5974
6182
  amount: cardFlow.amount,
@@ -5983,7 +6191,7 @@ function DepositModalControlled({
5983
6191
  onRetry: handleRetryQuotes
5984
6192
  }
5985
6193
  ) : null,
5986
- step === "card-payment-pending" ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
6194
+ step === "card-payment-pending" ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
5987
6195
  CardPaymentPendingStep,
5988
6196
  {
5989
6197
  providerName: pendingProviderName,
@@ -5993,7 +6201,7 @@ function DepositModalControlled({
5993
6201
  onChooseAnotherProvider: handleChooseAnotherProvider
5994
6202
  }
5995
6203
  ) : null,
5996
- step === "card-success" ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
6204
+ step === "card-success" ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
5997
6205
  CardPurchaseSuccessStep,
5998
6206
  {
5999
6207
  summary: (_g = pendingCardPurchaseSummary != null ? pendingCardPurchaseSummary : cardFlow == null ? void 0 : cardFlow.purchaseSummary) != null ? _g : {
@@ -6005,7 +6213,7 @@ function DepositModalControlled({
6005
6213
  onDone: handleDoneCardPurchase
6006
6214
  }
6007
6215
  ) : null,
6008
- step === "crypto-transfer" ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
6216
+ step === "crypto-transfer" ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
6009
6217
  CryptoTransferStep,
6010
6218
  {
6011
6219
  tokenOptions: sendTokenOptions,
@@ -6032,9 +6240,9 @@ function DepositModalControlled({
6032
6240
  }
6033
6241
  var DepositModal = (props) => {
6034
6242
  if (!isControlledDepositModalProps(props)) {
6035
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(DepositModalSelfDriven, __spreadValues({}, props));
6243
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(DepositModalSelfDriven, __spreadValues({}, props));
6036
6244
  }
6037
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(DepositModalControlled, __spreadValues({}, props));
6245
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(DepositModalControlled, __spreadValues({}, props));
6038
6246
  };
6039
6247
  DepositModal.displayName = "DepositModal";
6040
6248
 
@@ -6044,21 +6252,21 @@ var import_withdraw = require("@agg-build/hooks/withdraw");
6044
6252
 
6045
6253
  // src/withdraw/steps/withdraw-method.tsx
6046
6254
  var import_hooks27 = require("@agg-build/hooks");
6047
- var import_jsx_runtime108 = require("react/jsx-runtime");
6255
+ var import_jsx_runtime112 = require("react/jsx-runtime");
6048
6256
  var WithdrawMethodStep = ({
6049
6257
  balance,
6050
6258
  onSelectMethod
6051
6259
  }) => {
6052
6260
  const labels = (0, import_hooks27.useLabels)();
6053
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_jsx_runtime108.Fragment, { children: [
6054
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Modal.Header, { title: labels.withdraw.title, hideBorder: true }),
6055
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: "flex flex-col gap-5", children: [
6056
- /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("p", { className: "agg-type-body text-agg-foreground", children: [
6261
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(import_jsx_runtime112.Fragment, { children: [
6262
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(Modal.Header, { title: labels.withdraw.title, hideBorder: true }),
6263
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: "flex flex-col gap-5", children: [
6264
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("p", { className: "agg-type-body text-agg-foreground", children: [
6057
6265
  labels.withdraw.balancePrefix,
6058
6266
  " ",
6059
6267
  formatCompactUsd(balance)
6060
6268
  ] }),
6061
- /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
6269
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
6062
6270
  "div",
6063
6271
  {
6064
6272
  className: cn(
@@ -6075,12 +6283,12 @@ var WithdrawMethodStep = ({
6075
6283
  }
6076
6284
  },
6077
6285
  children: [
6078
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("div", { className: "shrink-0 flex items-center justify-center h-10 w-10 rounded-lg bg-agg-secondary-hover", children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(WalletIcon, { className: "h-6 w-6 text-agg-muted-foreground" }) }),
6079
- /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: "flex-1 min-w-0", children: [
6080
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: labels.withdraw.methods.walletTitle }),
6081
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: labels.withdraw.methods.walletDescription })
6286
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: "shrink-0 flex items-center justify-center h-10 w-10 rounded-lg bg-agg-secondary-hover", children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(WalletIcon, { className: "h-6 w-6 text-agg-muted-foreground" }) }),
6287
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: "flex-1 min-w-0", children: [
6288
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: labels.withdraw.methods.walletTitle }),
6289
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: labels.withdraw.methods.walletDescription })
6082
6290
  ] }),
6083
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("div", { className: "shrink-0 text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(ChevronRightIcon, { className: "h-5 w-5" }) })
6291
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: "shrink-0 text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(ChevronRightIcon, { className: "h-5 w-5" }) })
6084
6292
  ]
6085
6293
  }
6086
6294
  )
@@ -6090,7 +6298,7 @@ var WithdrawMethodStep = ({
6090
6298
 
6091
6299
  // src/withdraw/steps/withdraw-amount.tsx
6092
6300
  var import_hooks28 = require("@agg-build/hooks");
6093
- var import_jsx_runtime109 = require("react/jsx-runtime");
6301
+ var import_jsx_runtime113 = require("react/jsx-runtime");
6094
6302
  var WithdrawAmountStep = ({
6095
6303
  amount,
6096
6304
  destinationWallet,
@@ -6122,29 +6330,29 @@ var WithdrawAmountStep = ({
6122
6330
  selectedNetwork
6123
6331
  });
6124
6332
  const shouldShowWithdrawEstimate = Boolean(withdrawEstimate);
6125
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_jsx_runtime109.Fragment, { children: [
6126
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
6333
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_jsx_runtime113.Fragment, { children: [
6334
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
6127
6335
  Modal.Header,
6128
6336
  {
6129
6337
  title: labels.withdraw.walletFlow.title,
6130
6338
  hideBorder: true,
6131
- leftElement: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
6339
+ leftElement: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
6132
6340
  "button",
6133
6341
  {
6134
6342
  type: "button",
6135
6343
  className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
6136
6344
  onClick: onBack,
6137
6345
  "aria-label": labels.withdraw.back,
6138
- children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
6346
+ children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
6139
6347
  }
6140
6348
  )
6141
6349
  }
6142
6350
  ),
6143
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex flex-col gap-5", children: [
6144
- /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex flex-col gap-5", children: [
6145
- /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex flex-col gap-2", children: [
6146
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.withdraw.walletFlow.recipientAddressLabel }),
6147
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
6351
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex flex-col gap-5", children: [
6352
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex flex-col gap-5", children: [
6353
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex flex-col gap-2", children: [
6354
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.withdraw.walletFlow.recipientAddressLabel }),
6355
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
6148
6356
  "input",
6149
6357
  {
6150
6358
  type: "text",
@@ -6160,17 +6368,17 @@ var WithdrawAmountStep = ({
6160
6368
  }
6161
6369
  )
6162
6370
  ] }),
6163
- /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex flex-col gap-2", children: [
6164
- /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex items-center justify-between", children: [
6165
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.withdraw.walletFlow.amountLabel }),
6166
- /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
6371
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex flex-col gap-2", children: [
6372
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex items-center justify-between", children: [
6373
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.withdraw.walletFlow.amountLabel }),
6374
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
6167
6375
  labels.withdraw.balancePrefix,
6168
6376
  " ",
6169
6377
  balanceDisplay
6170
6378
  ] })
6171
6379
  ] }),
6172
- /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex h-10 items-center gap-2 rounded border border-agg-separator bg-agg-secondary px-3 focus-within:border-agg-primary transition-colors", children: [
6173
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
6380
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex h-10 items-center gap-2 rounded border border-agg-separator bg-agg-secondary px-3 focus-within:border-agg-primary transition-colors", children: [
6381
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
6174
6382
  "input",
6175
6383
  {
6176
6384
  type: "text",
@@ -6185,8 +6393,8 @@ var WithdrawAmountStep = ({
6185
6393
  onChange: (e) => onAmountChange(e.target.value)
6186
6394
  }
6187
6395
  ),
6188
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("span", { className: "agg-type-body text-agg-muted-foreground shrink-0", children: selectedToken }),
6189
- onMaxClick ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
6396
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: "agg-type-body text-agg-muted-foreground shrink-0", children: selectedToken }),
6397
+ onMaxClick ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
6190
6398
  "button",
6191
6399
  {
6192
6400
  type: "button",
@@ -6197,10 +6405,10 @@ var WithdrawAmountStep = ({
6197
6405
  ) : null
6198
6406
  ] })
6199
6407
  ] }),
6200
- /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex flex-col gap-3 sm:flex-row sm:gap-5", children: [
6201
- /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex-1 flex flex-col gap-2 min-w-0", children: [
6202
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.withdraw.walletFlow.tokenLabel }),
6203
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
6408
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex flex-col gap-3 sm:flex-row sm:gap-5", children: [
6409
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex-1 flex flex-col gap-2 min-w-0", children: [
6410
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.withdraw.walletFlow.tokenLabel }),
6411
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
6204
6412
  Select,
6205
6413
  {
6206
6414
  items: tokenOptions,
@@ -6210,9 +6418,9 @@ var WithdrawAmountStep = ({
6210
6418
  }
6211
6419
  )
6212
6420
  ] }),
6213
- /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: "flex-1 flex flex-col gap-2 min-w-0", children: [
6214
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.withdraw.walletFlow.networkLabel }),
6215
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
6421
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "flex-1 flex flex-col gap-2 min-w-0", children: [
6422
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: labels.withdraw.walletFlow.networkLabel }),
6423
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
6216
6424
  Select,
6217
6425
  {
6218
6426
  items: networkOptions,
@@ -6223,9 +6431,9 @@ var WithdrawAmountStep = ({
6223
6431
  )
6224
6432
  ] })
6225
6433
  ] }),
6226
- shouldShowWithdrawEstimate && withdrawEstimate ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(TransferFeeSummary, { estimate: withdrawEstimate, view: "withdraw" }) : null
6434
+ shouldShowWithdrawEstimate && withdrawEstimate ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(TransferFeeSummary, { estimate: withdrawEstimate, view: "withdraw" }) : null
6227
6435
  ] }),
6228
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
6436
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
6229
6437
  Button,
6230
6438
  {
6231
6439
  variant: isValid && !isConfirming ? "primary" : "secondary",
@@ -6236,32 +6444,32 @@ var WithdrawAmountStep = ({
6236
6444
  children: isConfirming ? labels.common.loading : labels.withdraw.walletFlow.confirm
6237
6445
  }
6238
6446
  ),
6239
- error ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("p", { className: "agg-type-label text-agg-error text-center", role: "alert", children: error }) : null
6447
+ error ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("p", { className: "agg-type-label text-agg-error text-center", role: "alert", children: error }) : null
6240
6448
  ] }) })
6241
6449
  ] });
6242
6450
  };
6243
6451
 
6244
6452
  // src/withdraw/steps/withdraw-success.tsx
6245
6453
  var import_hooks29 = require("@agg-build/hooks");
6246
- var import_jsx_runtime110 = require("react/jsx-runtime");
6247
- var SummaryRow3 = ({ label, value }) => /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex items-center justify-between gap-4 border-b border-agg-separator py-2 last:border-b-0", children: [
6248
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: "min-w-0 text-[12px] leading-4 font-agg-bold uppercase text-agg-muted-foreground", children: label }),
6249
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: "min-w-0 text-right text-[14px] leading-5 text-agg-foreground", children: value })
6454
+ var import_jsx_runtime114 = require("react/jsx-runtime");
6455
+ var SummaryRow3 = ({ label, value }) => /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "flex items-center justify-between gap-4 border-b border-agg-separator py-2 last:border-b-0", children: [
6456
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "min-w-0 text-[12px] leading-4 font-agg-bold uppercase text-agg-muted-foreground", children: label }),
6457
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "min-w-0 text-right text-[14px] leading-5 text-agg-foreground", children: value })
6250
6458
  ] });
6251
- var WithdrawCloseButton = ({ onClose, label }) => /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
6459
+ var WithdrawCloseButton = ({ onClose, label }) => /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
6252
6460
  "button",
6253
6461
  {
6254
6462
  type: "button",
6255
6463
  className: "absolute right-8 top-7 flex cursor-pointer items-center justify-center text-agg-foreground transition-colors hover:text-agg-foreground/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agg-primary",
6256
6464
  onClick: onClose,
6257
6465
  "aria-label": label,
6258
- children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(CloseIcon, { className: "h-6 w-6" })
6466
+ children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(CloseIcon, { className: "h-6 w-6" })
6259
6467
  }
6260
6468
  );
6261
6469
  var LoadingGlyph = ({
6262
6470
  className,
6263
6471
  enableAnimations
6264
- }) => /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
6472
+ }) => /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
6265
6473
  "span",
6266
6474
  {
6267
6475
  "aria-hidden": "true",
@@ -6294,26 +6502,26 @@ var WithdrawLoadingStep = ({
6294
6502
  const walletFlowLabels = labels.withdraw.walletFlow;
6295
6503
  const activeIndex = loadingActiveIndexFor(lifecycleState);
6296
6504
  const loadingSteps = getLoadingSteps(walletFlowLabels);
6297
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Modal.Body, { classNames: { root: "px-8 py-7" }, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex flex-col gap-7", children: [
6298
- /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
6299
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold text-agg-foreground", children: walletFlowLabels.successTitle }),
6300
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
6505
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(Modal.Body, { classNames: { root: "px-8 py-7" }, children: /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "flex flex-col gap-7", children: [
6506
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
6507
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold text-agg-foreground", children: walletFlowLabels.successTitle }),
6508
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
6301
6509
  "button",
6302
6510
  {
6303
6511
  type: "button",
6304
6512
  className: "flex cursor-pointer items-center justify-center text-agg-foreground transition-colors hover:text-agg-foreground/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agg-primary",
6305
6513
  onClick: onClose,
6306
6514
  "aria-label": labels.common.close,
6307
- children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(CloseIcon, { className: "h-6 w-6" })
6515
+ children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(CloseIcon, { className: "h-6 w-6" })
6308
6516
  }
6309
6517
  )
6310
6518
  ] }),
6311
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: "flex flex-col gap-5", role: "status", "aria-live": "polite", children: loadingSteps.map((step, index) => {
6519
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { className: "flex flex-col gap-5", role: "status", "aria-live": "polite", children: loadingSteps.map((step, index) => {
6312
6520
  const isComplete = index < activeIndex;
6313
6521
  const isActive = index === activeIndex;
6314
6522
  const textClassName = isActive || isComplete ? "text-agg-foreground" : "text-agg-muted-foreground";
6315
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex items-center gap-3", children: [
6316
- isComplete ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
6523
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "flex items-center gap-3", children: [
6524
+ isComplete ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
6317
6525
  Icon,
6318
6526
  {
6319
6527
  name: "check-circle",
@@ -6322,24 +6530,24 @@ var WithdrawLoadingStep = ({
6322
6530
  "aria-hidden": "true"
6323
6531
  }
6324
6532
  ) : null,
6325
- isActive ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
6533
+ isActive ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
6326
6534
  LoadingGlyph,
6327
6535
  {
6328
6536
  enableAnimations,
6329
6537
  className: "h-4 w-4 shrink-0 text-agg-primary"
6330
6538
  }
6331
6539
  ) : null,
6332
- !isComplete && !isActive ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
6540
+ !isComplete && !isActive ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
6333
6541
  "span",
6334
6542
  {
6335
6543
  "aria-hidden": "true",
6336
6544
  className: "h-4 w-4 shrink-0 rounded-full border border-agg-separator"
6337
6545
  }
6338
6546
  ) : null,
6339
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: cn("min-w-0 flex-1 text-agg-base leading-agg-6", textClassName), children: step.label })
6547
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: cn("min-w-0 flex-1 text-agg-base leading-agg-6", textClassName), children: step.label })
6340
6548
  ] }, step.id);
6341
6549
  }) }),
6342
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: walletFlowLabels.loadingDescription })
6550
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: walletFlowLabels.loadingDescription })
6343
6551
  ] }) }) });
6344
6552
  };
6345
6553
  var resultCopyFor = ({
@@ -6382,10 +6590,10 @@ var WithdrawSuccessStep = ({
6382
6590
  labels: walletFlowLabels
6383
6591
  });
6384
6592
  const isFailed = resultStatus === "failed";
6385
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(Modal.Body, { classNames: { root: "px-10 py-12" }, children: [
6386
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(WithdrawCloseButton, { onClose, label: labels.common.close }),
6387
- /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex flex-col items-center justify-center gap-8 text-center", children: [
6388
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
6593
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { className: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(Modal.Body, { classNames: { root: "px-10 py-12" }, children: [
6594
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(WithdrawCloseButton, { onClose, label: labels.common.close }),
6595
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "flex flex-col items-center justify-center gap-8 text-center", children: [
6596
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
6389
6597
  "div",
6390
6598
  {
6391
6599
  className: cn(
@@ -6393,12 +6601,12 @@ var WithdrawSuccessStep = ({
6393
6601
  isFailed ? "bg-agg-error/15" : "bg-agg-success/15"
6394
6602
  ),
6395
6603
  "aria-hidden": "true",
6396
- children: isFailed ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(CloseIcon, { className: "h-6 w-6 text-agg-error" }) : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(SuccessCheckIcon, { className: "h-6 w-6 text-agg-success" })
6604
+ children: isFailed ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(CloseIcon, { className: "h-6 w-6 text-agg-error" }) : /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(SuccessCheckIcon, { className: "h-6 w-6 text-agg-success" })
6397
6605
  }
6398
6606
  ),
6399
- /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex w-full flex-col items-center gap-3 text-center text-agg-foreground", children: [
6400
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold", children: title }),
6401
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
6607
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "flex w-full flex-col items-center gap-3 text-center text-agg-foreground", children: [
6608
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold", children: title }),
6609
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
6402
6610
  "p",
6403
6611
  {
6404
6612
  className: "max-w-[400px] text-agg-base leading-agg-6",
@@ -6407,35 +6615,35 @@ var WithdrawSuccessStep = ({
6407
6615
  }
6408
6616
  )
6409
6617
  ] }),
6410
- !isFailed ? /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex w-full max-w-[400px] flex-col rounded-agg-lg border border-agg-separator bg-agg-secondary px-3 py-1 text-left", children: [
6411
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
6618
+ !isFailed ? /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "flex w-full max-w-[400px] flex-col rounded-agg-lg border border-agg-separator bg-agg-secondary px-3 py-1 text-left", children: [
6619
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
6412
6620
  SummaryRow3,
6413
6621
  {
6414
6622
  label: walletFlowLabels.summary.requestedWithdrawal,
6415
6623
  value: requestedWithdrawal
6416
6624
  }
6417
6625
  ),
6418
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
6626
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
6419
6627
  SummaryRow3,
6420
6628
  {
6421
6629
  label: walletFlowLabels.summary.amountReceived,
6422
6630
  value: summary.amountReceived
6423
6631
  }
6424
6632
  ),
6425
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(SummaryRow3, { label: walletFlowLabels.summary.fees, value: summary.fees }),
6426
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(SummaryRow3, { label: walletFlowLabels.summary.network, value: summary.network }),
6427
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(SummaryRow3, { label: walletFlowLabels.summary.toWallet, value: summary.toWallet })
6633
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(SummaryRow3, { label: walletFlowLabels.summary.fees, value: summary.fees }),
6634
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(SummaryRow3, { label: walletFlowLabels.summary.network, value: summary.network }),
6635
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(SummaryRow3, { label: walletFlowLabels.summary.toWallet, value: summary.toWallet })
6428
6636
  ] }) : null,
6429
- isFailed ? /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "flex items-center justify-center gap-3", children: [
6430
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Button, { variant: "secondary", size: "large", className: "w-[120px]", onClick: onClose, children: walletFlowLabels.close }),
6431
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Button, { variant: "primary", size: "large", className: "w-[123px]", onClick: onRetry, children: walletFlowLabels.retry })
6432
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Button, { variant: "secondary", size: "large", className: "w-[120px]", onClick: onDone, children: labels.withdraw.done })
6637
+ isFailed ? /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "flex items-center justify-center gap-3", children: [
6638
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(Button, { variant: "secondary", size: "large", className: "w-[120px]", onClick: onClose, children: walletFlowLabels.close }),
6639
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(Button, { variant: "primary", size: "large", className: "w-[123px]", onClick: onRetry, children: walletFlowLabels.retry })
6640
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(Button, { variant: "secondary", size: "large", className: "w-[120px]", onClick: onDone, children: labels.withdraw.done })
6433
6641
  ] })
6434
6642
  ] }) });
6435
6643
  };
6436
6644
 
6437
6645
  // src/withdraw/index.tsx
6438
- var import_jsx_runtime111 = require("react/jsx-runtime");
6646
+ var import_jsx_runtime115 = require("react/jsx-runtime");
6439
6647
  var DEFAULT_TOKEN_DECIMALS = 6;
6440
6648
  var TOKEN_DECIMALS_BY_SYMBOL = {
6441
6649
  BNB: 18,
@@ -6516,7 +6724,7 @@ function WithdrawModalSelfDriven({
6516
6724
  onOpenChange
6517
6725
  }) {
6518
6726
  const withdrawProps = (0, import_withdraw.useWithdrawFlow)({ open, onOpenChange });
6519
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(WithdrawModalControlled, __spreadValues({}, withdrawProps));
6727
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(WithdrawModalControlled, __spreadValues({}, withdrawProps));
6520
6728
  }
6521
6729
  function WithdrawModalControlled({
6522
6730
  open,
@@ -6613,15 +6821,15 @@ function WithdrawModalControlled({
6613
6821
  tokenSymbol: withdrawFlow.selectedToken,
6614
6822
  chainId: withdrawFlow.selectedNetwork
6615
6823
  });
6616
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(Modal.Container, { maxWidth: modalMaxWidth, "aria-label": "Withdraw", children: [
6617
- flowState.status === "form" && flowState.formStep === "method" ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
6824
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(Modal.Container, { maxWidth: modalMaxWidth, "aria-label": "Withdraw", children: [
6825
+ flowState.status === "form" && flowState.formStep === "method" ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
6618
6826
  WithdrawMethodStep,
6619
6827
  {
6620
6828
  balance: withdrawFlow.balance,
6621
6829
  onSelectMethod: () => setFlowState({ status: "form", formStep: "withdraw-amount" })
6622
6830
  }
6623
6831
  ) : null,
6624
- flowState.status === "form" && flowState.formStep === "withdraw-amount" ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
6832
+ flowState.status === "form" && flowState.formStep === "withdraw-amount" ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
6625
6833
  WithdrawAmountStep,
6626
6834
  {
6627
6835
  amount: withdrawFlow.amount,
@@ -6642,14 +6850,14 @@ function WithdrawModalControlled({
6642
6850
  onContinue: handleConfirm
6643
6851
  }
6644
6852
  ) : null,
6645
- flowState.status === "loading" ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
6853
+ flowState.status === "loading" ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
6646
6854
  WithdrawLoadingStep,
6647
6855
  {
6648
6856
  lifecycleState: withdrawalLifecycleState,
6649
6857
  onClose: () => handleOpenChange(false)
6650
6858
  }
6651
6859
  ) : null,
6652
- flowState.status === "success" || flowState.status === "partial_success" || flowState.status === "failed" ? /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
6860
+ flowState.status === "success" || flowState.status === "partial_success" || flowState.status === "failed" ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
6653
6861
  WithdrawSuccessStep,
6654
6862
  {
6655
6863
  summary: terminalSummary,
@@ -6666,9 +6874,9 @@ function WithdrawModalControlled({
6666
6874
  }
6667
6875
  var WithdrawModal = (props) => {
6668
6876
  if (isControlledWithdrawModalProps(props)) {
6669
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(WithdrawModalControlled, __spreadValues({}, props));
6877
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(WithdrawModalControlled, __spreadValues({}, props));
6670
6878
  }
6671
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(WithdrawModalSelfDriven, __spreadValues({}, props));
6879
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(WithdrawModalSelfDriven, __spreadValues({}, props));
6672
6880
  };
6673
6881
  WithdrawModal.displayName = "WithdrawModal";
6674
6882
 
@@ -6695,12 +6903,12 @@ var ONCHAIN_VENUES = [import_sdk10.Venue.polymarket, import_sdk10.Venue.opinion,
6695
6903
  // src/onboarding/steps/how-it-works.tsx
6696
6904
  var import_react9 = require("react");
6697
6905
  var import_hooks30 = require("@agg-build/hooks");
6698
- var import_jsx_runtime112 = require("react/jsx-runtime");
6906
+ var import_jsx_runtime116 = require("react/jsx-runtime");
6699
6907
  var defaultIcons = {
6700
- createAccount: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(CreateAccountIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
6701
- linkAccounts: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(LinkAccountsIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
6702
- bestPrices: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(BestPricesIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
6703
- stayInControl: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(StayInControlIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" })
6908
+ createAccount: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(CreateAccountIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
6909
+ linkAccounts: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(LinkAccountsIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
6910
+ bestPrices: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(BestPricesIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
6911
+ stayInControl: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(StayInControlIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" })
6704
6912
  };
6705
6913
  var HowItWorksStep = ({ onContinue, icons }) => {
6706
6914
  const labels = (0, import_hooks30.useLabels)();
@@ -6713,10 +6921,10 @@ var HowItWorksStep = ({ onContinue, icons }) => {
6713
6921
  setShowTopGradient(el.scrollTop > 0);
6714
6922
  setShowBottomGradient(el.scrollTop + el.clientHeight < el.scrollHeight - 1);
6715
6923
  }, []);
6716
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: "flex flex-col gap-6 h-[600px] sm:h-auto", children: [
6717
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.howItWorks.title }),
6718
- /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: "relative flex-1 min-h-0 sm:flex-initial", children: [
6719
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
6924
+ return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: "flex flex-col gap-6 h-[600px] sm:h-auto", children: [
6925
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.howItWorks.title }),
6926
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: "relative flex-1 min-h-0 sm:flex-initial", children: [
6927
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
6720
6928
  "div",
6721
6929
  {
6722
6930
  ref: scrollRef,
@@ -6726,7 +6934,7 @@ var HowItWorksStep = ({ onContinue, icons }) => {
6726
6934
  var _a;
6727
6935
  const icon = (_a = icons == null ? void 0 : icons[featureKey]) != null ? _a : defaultIcons[featureKey];
6728
6936
  const feature = labels.onboarding.howItWorks.features[featureKey];
6729
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
6937
+ return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
6730
6938
  "div",
6731
6939
  {
6732
6940
  className: cn(
@@ -6735,11 +6943,11 @@ var HowItWorksStep = ({ onContinue, icons }) => {
6735
6943
  "bg-agg-secondary-hover"
6736
6944
  ),
6737
6945
  children: [
6738
- /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: "flex flex-col flex-1 min-w-0 gap-[6px]", children: [
6739
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: feature.title }),
6740
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: feature.description })
6946
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: "flex flex-col flex-1 min-w-0 gap-[6px]", children: [
6947
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: feature.title }),
6948
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: feature.description })
6741
6949
  ] }),
6742
- icon ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: "hidden shrink-0 items-center justify-center text-agg-muted-foreground sm:flex", children: icon }) : null
6950
+ icon ? /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("div", { className: "hidden shrink-0 items-center justify-center text-agg-muted-foreground sm:flex", children: icon }) : null
6743
6951
  ]
6744
6952
  },
6745
6953
  featureKey
@@ -6747,7 +6955,7 @@ var HowItWorksStep = ({ onContinue, icons }) => {
6747
6955
  })
6748
6956
  }
6749
6957
  ),
6750
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
6958
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
6751
6959
  "div",
6752
6960
  {
6753
6961
  className: cn(
@@ -6758,7 +6966,7 @@ var HowItWorksStep = ({ onContinue, icons }) => {
6758
6966
  )
6759
6967
  }
6760
6968
  ),
6761
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
6969
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
6762
6970
  "div",
6763
6971
  {
6764
6972
  className: cn(
@@ -6770,7 +6978,7 @@ var HowItWorksStep = ({ onContinue, icons }) => {
6770
6978
  }
6771
6979
  )
6772
6980
  ] }),
6773
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(Button, { variant: "primary", size: "large", className: "w-full", onClick: onContinue, children: labels.onboarding.howItWorks.continue })
6981
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Button, { variant: "primary", size: "large", className: "w-full", onClick: onContinue, children: labels.onboarding.howItWorks.continue })
6774
6982
  ] });
6775
6983
  };
6776
6984
  HowItWorksStep.displayName = "HowItWorksStep";
@@ -6800,7 +7008,7 @@ var resolveVenueLogoIsColor = ({
6800
7008
  };
6801
7009
 
6802
7010
  // src/primitives/venue-logo/index.tsx
6803
- var import_jsx_runtime113 = require("react/jsx-runtime");
7011
+ var import_jsx_runtime117 = require("react/jsx-runtime");
6804
7012
  var VenueLogo = ({
6805
7013
  venue,
6806
7014
  variant = "icon",
@@ -6826,7 +7034,7 @@ var VenueLogo = ({
6826
7034
  console.warn(`[AggUI] Unknown venue "${venue}" \u2014 using default logo`);
6827
7035
  }
6828
7036
  if (variant === "logo") {
6829
- return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7037
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
6830
7038
  RemoteImage,
6831
7039
  {
6832
7040
  src: (_a = venueLogoUrlRegistry[venue]) != null ? _a : DEFAULT_VENUE_LOGO_URL,
@@ -6841,7 +7049,7 @@ var VenueLogo = ({
6841
7049
  isColor,
6842
7050
  isMonochromatic
6843
7051
  });
6844
- return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7052
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
6845
7053
  Component,
6846
7054
  {
6847
7055
  className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
@@ -6855,8 +7063,8 @@ var VenueLogo = ({
6855
7063
  VenueLogo.displayName = "VenueLogo";
6856
7064
 
6857
7065
  // src/primitives/tabs/index.tsx
6858
- var import_react10 = require("react");
6859
7066
  var import_hooks32 = require("@agg-build/hooks");
7067
+ var import_react10 = require("react");
6860
7068
 
6861
7069
  // src/primitives/tabs/tabs.constants.ts
6862
7070
  var MOBILE_TABS_MEDIA_QUERY = "(max-width: 736px)";
@@ -6883,7 +7091,7 @@ var findEdgeEnabledIndex = (items, direction) => {
6883
7091
  };
6884
7092
 
6885
7093
  // src/primitives/tabs/index.tsx
6886
- var import_jsx_runtime114 = require("react/jsx-runtime");
7094
+ var import_jsx_runtime118 = require("react/jsx-runtime");
6887
7095
  var getTabButtonClassName = ({
6888
7096
  enableAnimations,
6889
7097
  isBarVariant,
@@ -7216,7 +7424,7 @@ var Tabs = ({
7216
7424
  });
7217
7425
  }, [enableAnimations, renderedItems, shouldUseOverflowScroll, value]);
7218
7426
  if (shouldUseOverflowSelect) {
7219
- return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { className: cn("group/agg-tabs w-full", className, classNames == null ? void 0 : classNames.root), children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7427
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { className: cn("group/agg-tabs w-full", className, classNames == null ? void 0 : classNames.root), children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7220
7428
  Select,
7221
7429
  {
7222
7430
  ariaLabel,
@@ -7228,7 +7436,7 @@ var Tabs = ({
7228
7436
  }
7229
7437
  ) });
7230
7438
  }
7231
- return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(
7439
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
7232
7440
  "div",
7233
7441
  {
7234
7442
  className: cn(
@@ -7239,7 +7447,7 @@ var Tabs = ({
7239
7447
  classNames == null ? void 0 : classNames.root
7240
7448
  ),
7241
7449
  children: [
7242
- /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(
7450
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
7243
7451
  "div",
7244
7452
  {
7245
7453
  ref: tabListRef,
@@ -7257,7 +7465,7 @@ var Tabs = ({
7257
7465
  var _a;
7258
7466
  const isActive = item.value === value;
7259
7467
  const isComingSoon = (_a = item == null ? void 0 : item.isComingSoon) != null ? _a : false;
7260
- return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(
7468
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
7261
7469
  "button",
7262
7470
  {
7263
7471
  ref: (buttonElement) => {
@@ -7292,11 +7500,11 @@ var Tabs = ({
7292
7500
  ),
7293
7501
  children: [
7294
7502
  item.icon ? item.icon : null,
7295
- /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(
7503
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
7296
7504
  "span",
7297
7505
  {
7298
7506
  className: cn(
7299
- "agg-tab-label truncate whitespace-nowrap [&::first-letter]:uppercase text-agg"
7507
+ "agg-tab-label truncate whitespace-nowrap first-letter:uppercase text-agg"
7300
7508
  ),
7301
7509
  "data-text": item.label,
7302
7510
  children: [
@@ -7310,7 +7518,7 @@ var Tabs = ({
7310
7518
  item.value
7311
7519
  );
7312
7520
  }),
7313
- !isBarVariant ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7521
+ !isBarVariant ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7314
7522
  "span",
7315
7523
  {
7316
7524
  "aria-hidden": true,
@@ -7329,8 +7537,8 @@ var Tabs = ({
7329
7537
  ]
7330
7538
  }
7331
7539
  ),
7332
- shouldUseOverflowScroll && !isBarVariant ? /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(import_jsx_runtime114.Fragment, { children: [
7333
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7540
+ shouldUseOverflowScroll && !isBarVariant ? /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(import_jsx_runtime118.Fragment, { children: [
7541
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7334
7542
  "span",
7335
7543
  {
7336
7544
  "aria-hidden": true,
@@ -7342,7 +7550,7 @@ var Tabs = ({
7342
7550
  )
7343
7551
  }
7344
7552
  ),
7345
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7553
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7346
7554
  "span",
7347
7555
  {
7348
7556
  "aria-hidden": true,
@@ -7354,7 +7562,20 @@ var Tabs = ({
7354
7562
  )
7355
7563
  }
7356
7564
  )
7357
- ] }) : null
7565
+ ] }) : null,
7566
+ shouldUseOverflowScroll && isBarVariant ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7567
+ "span",
7568
+ {
7569
+ "aria-hidden": true,
7570
+ className: cn(
7571
+ "agg-tab-scroll-end",
7572
+ "pointer-events-none absolute top-0 right-0 bottom-0 z-10 w-[120px] overflow-hidden rounded-r-[8px] bg-linear-to-l from-agg-secondary from-[20%] via-agg-secondary/85 to-transparent",
7573
+ getMotionClassName(enableAnimations, "transition-opacity duration-200"),
7574
+ scrollAffordanceState.showEnd ? "opacity-100" : "opacity-0"
7575
+ ),
7576
+ children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("span", { className: "absolute inset-y-0 right-3 inline-flex items-center text-agg-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Icon, { name: "chevron-right", size: "small", color: "currentColor" }) })
7577
+ }
7578
+ ) : null
7358
7579
  ]
7359
7580
  }
7360
7581
  );
@@ -7364,14 +7585,14 @@ Tabs.displayName = "Tabs";
7364
7585
  // src/primitives/toast/index.tsx
7365
7586
  var RadixToast = __toESM(require("@radix-ui/react-toast"));
7366
7587
  var import_react11 = require("react");
7367
- var import_jsx_runtime115 = require("react/jsx-runtime");
7588
+ var import_jsx_runtime119 = require("react/jsx-runtime");
7368
7589
  var ToastContext = (0, import_react11.createContext)(null);
7369
7590
  function useOptionalToast() {
7370
7591
  return (0, import_react11.useContext)(ToastContext);
7371
7592
  }
7372
7593
 
7373
7594
  // src/onboarding/steps/profile-setup.tsx
7374
- var import_jsx_runtime116 = require("react/jsx-runtime");
7595
+ var import_jsx_runtime120 = require("react/jsx-runtime");
7375
7596
  var ProfileSetupStep = ({ onContinue }) => {
7376
7597
  const labels = (0, import_hooks33.useLabels)();
7377
7598
  const [username, setUsername] = (0, import_react12.useState)("");
@@ -7401,11 +7622,11 @@ var ProfileSetupStep = ({ onContinue }) => {
7401
7622
  avatarPreview
7402
7623
  });
7403
7624
  }, [username, avatarFile, avatarPreview, onContinue]);
7404
- return /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: "flex flex-col gap-7", children: [
7405
- /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.profileSetup.title }),
7406
- /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: "flex flex-col gap-5 items-center w-full", children: [
7407
- /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: "flex justify-center", children: [
7408
- /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
7625
+ return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "flex flex-col gap-7", children: [
7626
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsx)("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.profileSetup.title }),
7627
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "flex flex-col gap-5 items-center w-full", children: [
7628
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "flex justify-center", children: [
7629
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(
7409
7630
  "button",
7410
7631
  {
7411
7632
  type: "button",
@@ -7421,13 +7642,13 @@ var ProfileSetupStep = ({ onContinue }) => {
7421
7642
  ),
7422
7643
  "aria-label": labels.onboarding.profileSetup.uploadProfilePictureAria,
7423
7644
  children: [
7424
- !avatarPreview ? /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7645
+ !avatarPreview ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
7425
7646
  "svg",
7426
7647
  {
7427
7648
  "aria-hidden": true,
7428
7649
  viewBox: "0 0 80 80",
7429
7650
  className: "pointer-events-none absolute inset-0 h-full w-full text-agg-separator group-hover:text-agg-muted-foreground",
7430
- children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7651
+ children: /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
7431
7652
  "circle",
7432
7653
  {
7433
7654
  cx: "40",
@@ -7441,18 +7662,18 @@ var ProfileSetupStep = ({ onContinue }) => {
7441
7662
  )
7442
7663
  }
7443
7664
  ) : null,
7444
- avatarPreview ? /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7665
+ avatarPreview ? /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
7445
7666
  RemoteImage,
7446
7667
  {
7447
7668
  src: avatarPreview,
7448
7669
  alt: labels.onboarding.profileSetup.profilePreviewAlt,
7449
7670
  className: "h-full w-full object-cover"
7450
7671
  }
7451
- ) : /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(ProfileIcon, { className: "h-7 w-7 text-agg-muted-foreground" })
7672
+ ) : /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(ProfileIcon, { className: "h-7 w-7 text-agg-muted-foreground" })
7452
7673
  ]
7453
7674
  }
7454
7675
  ),
7455
- /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7676
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
7456
7677
  "input",
7457
7678
  {
7458
7679
  ref: fileInputRef,
@@ -7464,8 +7685,8 @@ var ProfileSetupStep = ({ onContinue }) => {
7464
7685
  }
7465
7686
  )
7466
7687
  ] }),
7467
- /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)("div", { className: "flex flex-col gap-2 w-full", children: [
7468
- /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7688
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)("div", { className: "flex flex-col gap-2 w-full", children: [
7689
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
7469
7690
  "label",
7470
7691
  {
7471
7692
  htmlFor: "onboarding-username",
@@ -7473,7 +7694,7 @@ var ProfileSetupStep = ({ onContinue }) => {
7473
7694
  children: labels.onboarding.profileSetup.usernameLabel
7474
7695
  }
7475
7696
  ),
7476
- /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
7697
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
7477
7698
  "input",
7478
7699
  {
7479
7700
  id: "onboarding-username",
@@ -7497,7 +7718,7 @@ var ProfileSetupStep = ({ onContinue }) => {
7497
7718
  )
7498
7719
  ] })
7499
7720
  ] }),
7500
- /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Button, { variant: "primary", size: "large", className: "w-full", onClick: handleContinue, children: labels.onboarding.profileSetup.continue })
7721
+ /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Button, { variant: "primary", size: "large", className: "w-full", onClick: handleContinue, children: labels.onboarding.profileSetup.continue })
7501
7722
  ] });
7502
7723
  };
7503
7724
  ProfileSetupStep.displayName = "ProfileSetupStep";
@@ -7505,9 +7726,9 @@ ProfileSetupStep.displayName = "ProfileSetupStep";
7505
7726
  // src/onboarding/steps/connect-accounts.tsx
7506
7727
  var import_sdk11 = require("@agg-build/sdk");
7507
7728
  var import_hooks34 = require("@agg-build/hooks");
7508
- var import_jsx_runtime117 = require("react/jsx-runtime");
7729
+ var import_jsx_runtime121 = require("react/jsx-runtime");
7509
7730
  var OnchainVenueLogos = () => {
7510
- return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("div", { className: "flex gap-1 sm:gap-0 sm:-space-x-5", children: ONCHAIN_VENUES.map((venue, index) => /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("div", { style: { zIndex: ONCHAIN_VENUES.length - index }, children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(VenueLogo, { venue, variant: "logo", size: "medium", className: "sm:h-8 sm:w-8" }) }, venue)) });
7731
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { className: "flex gap-1 sm:gap-0 sm:-space-x-5", children: ONCHAIN_VENUES.map((venue, index) => /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { style: { zIndex: ONCHAIN_VENUES.length - index }, children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(VenueLogo, { venue, variant: "logo", size: "medium", className: "sm:h-8 sm:w-8" }) }, venue)) });
7511
7732
  };
7512
7733
  var VenueCard = ({
7513
7734
  logos,
@@ -7519,7 +7740,7 @@ var VenueCard = ({
7519
7740
  connected = false
7520
7741
  }) => {
7521
7742
  const labels = (0, import_hooks34.useLabels)();
7522
- const action = connected ? /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(CheckCircleIcon, { className: "h-6 w-6 text-agg-success" }) : /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7743
+ const action = connected ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(CheckCircleIcon, { className: "h-6 w-6 text-agg-success" }) : /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
7523
7744
  Button,
7524
7745
  {
7525
7746
  variant: "tertiary",
@@ -7529,18 +7750,18 @@ var VenueCard = ({
7529
7750
  children: labels.onboarding.connectAccounts.connect
7530
7751
  }
7531
7752
  );
7532
- const mobileAction = connected ? /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(CheckCircleIcon, { className: "h-6 w-6 text-agg-success" }) : /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7753
+ const mobileAction = connected ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(CheckCircleIcon, { className: "h-6 w-6 text-agg-success" }) : /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
7533
7754
  Button,
7534
7755
  {
7535
7756
  variant: "tertiary",
7536
7757
  size: "medium",
7537
7758
  className: "!h-auto !px-0 !py-0 text-agg-primary hover:bg-transparent hover:text-agg-primary-hover",
7538
7759
  onClick: onConnect,
7539
- suffix: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(ChevronRightIcon, { className: "h-4 w-4" }),
7760
+ suffix: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(ChevronRightIcon, { className: "h-4 w-4" }),
7540
7761
  children: labels.onboarding.connectAccounts.connectAccount
7541
7762
  }
7542
7763
  );
7543
- return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
7764
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
7544
7765
  "div",
7545
7766
  {
7546
7767
  className: cn(
@@ -7548,23 +7769,23 @@ var VenueCard = ({
7548
7769
  connected ? "bg-agg-success/5" : "bg-agg-secondary-hover hover:bg-agg-tertiary"
7549
7770
  ),
7550
7771
  children: [
7551
- /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: "hidden sm:flex items-center justify-between", children: [
7552
- /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: "flex items-center gap-5", children: [
7553
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("div", { className: "shrink-0", children: logos }),
7554
- /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: "flex flex-col gap-[2px]", children: [
7555
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("p", { className: "text-agg-base font-agg-bold text-agg-foreground", children: title }),
7556
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("p", { className: "text-agg-sm text-agg-foreground", children: description })
7772
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "hidden sm:flex items-center justify-between", children: [
7773
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "flex items-center gap-5", children: [
7774
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { className: "shrink-0", children: logos }),
7775
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "flex flex-col gap-[2px]", children: [
7776
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("p", { className: "text-agg-base font-agg-bold text-agg-foreground", children: title }),
7777
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("p", { className: "text-agg-sm text-agg-foreground", children: description })
7557
7778
  ] })
7558
7779
  ] }),
7559
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("div", { className: "shrink-0", children: action })
7780
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { className: "shrink-0", children: action })
7560
7781
  ] }),
7561
- /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: "flex flex-col gap-3 sm:hidden", children: [
7562
- /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: "flex flex-col gap-3", children: [
7563
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("div", { className: "shrink-0", children: logos }),
7564
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("p", { className: "text-agg-lg font-agg-bold text-agg-foreground", children: mobileTitle != null ? mobileTitle : title })
7782
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "flex flex-col gap-3 sm:hidden", children: [
7783
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "flex flex-col gap-3", children: [
7784
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { className: "shrink-0", children: logos }),
7785
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("p", { className: "text-agg-lg font-agg-bold text-agg-foreground", children: mobileTitle != null ? mobileTitle : title })
7565
7786
  ] }),
7566
- /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: "flex flex-col items-start gap-2", children: [
7567
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("p", { className: "text-agg-base text-agg-foreground", children: mobileDescription != null ? mobileDescription : description }),
7787
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "flex flex-col items-start gap-2", children: [
7788
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("p", { className: "text-agg-base text-agg-foreground", children: mobileDescription != null ? mobileDescription : description }),
7568
7789
  mobileAction
7569
7790
  ] })
7570
7791
  ] })
@@ -7581,13 +7802,13 @@ var ConnectAccountsStep = ({
7581
7802
  }) => {
7582
7803
  const labels = (0, import_hooks34.useLabels)();
7583
7804
  const canContinue = connectedOnchain || connectedKalshi;
7584
- return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: "flex flex-col gap-6", children: [
7585
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectAccounts.title }),
7586
- /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: "flex flex-col gap-4", children: [
7587
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7805
+ return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "flex flex-col gap-6", children: [
7806
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectAccounts.title }),
7807
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "flex flex-col gap-4", children: [
7808
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
7588
7809
  VenueCard,
7589
7810
  {
7590
- logos: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(OnchainVenueLogos, {}),
7811
+ logos: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(OnchainVenueLogos, {}),
7591
7812
  title: labels.onboarding.connectAccounts.onchainTitle,
7592
7813
  mobileTitle: labels.onboarding.connectAccounts.onchainMobileTitle(
7593
7814
  ONCHAIN_VENUES.length - 1
@@ -7598,10 +7819,10 @@ var ConnectAccountsStep = ({
7598
7819
  connected: connectedOnchain
7599
7820
  }
7600
7821
  ),
7601
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7822
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
7602
7823
  VenueCard,
7603
7824
  {
7604
- logos: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("div", { className: "sm:flex sm:w-14 sm:items-center sm:justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7825
+ logos: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)("div", { className: "sm:flex sm:w-14 sm:items-center sm:justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
7605
7826
  VenueLogo,
7606
7827
  {
7607
7828
  venue: import_sdk11.Venue.kalshi,
@@ -7619,7 +7840,7 @@ var ConnectAccountsStep = ({
7619
7840
  }
7620
7841
  )
7621
7842
  ] }),
7622
- /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7843
+ /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
7623
7844
  Button,
7624
7845
  {
7625
7846
  variant: "primary",
@@ -7639,7 +7860,7 @@ var import_sdk12 = require("@agg-build/sdk");
7639
7860
  var import_react13 = require("react");
7640
7861
  var import_hooks35 = require("@agg-build/hooks");
7641
7862
  var Dialog2 = __toESM(require("@radix-ui/react-dialog"));
7642
- var import_jsx_runtime118 = require("react/jsx-runtime");
7863
+ var import_jsx_runtime122 = require("react/jsx-runtime");
7643
7864
  var ConnectKalshiModal = ({
7644
7865
  open,
7645
7866
  onOpenChange,
@@ -7695,15 +7916,15 @@ var ConnectKalshiModal = ({
7695
7916
  },
7696
7917
  [onOpenChange]
7697
7918
  );
7698
- return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
7919
+ return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
7699
7920
  Modal.Container,
7700
7921
  {
7701
7922
  maxWidth: "600px",
7702
7923
  "aria-label": labels.onboarding.connectKalshiModal.ariaLabel,
7703
7924
  classNames: { container: "!rounded-agg-lg" },
7704
7925
  children: [
7705
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Dialog2.Title, { className: "sr-only", children: labels.onboarding.connectKalshiModal.title }),
7706
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7926
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Dialog2.Title, { className: "sr-only", children: labels.onboarding.connectKalshiModal.title }),
7927
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
7707
7928
  Modal.Header,
7708
7929
  {
7709
7930
  hideClose: false,
@@ -7714,8 +7935,8 @@ var ConnectKalshiModal = ({
7714
7935
  }
7715
7936
  }
7716
7937
  ),
7717
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Modal.Body, { classNames: { root: "!px-5 !pt-0 !pb-[60px] sm:!px-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex flex-col gap-8 items-center", children: [
7718
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7938
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Modal.Body, { classNames: { root: "!px-5 !pt-0 !pb-[60px] sm:!px-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex flex-col gap-8 items-center", children: [
7939
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
7719
7940
  VenueLogo,
7720
7941
  {
7721
7942
  venue: import_sdk12.Venue.kalshi,
@@ -7724,54 +7945,54 @@ var ConnectKalshiModal = ({
7724
7945
  className: "h-[60px] w-[60px]"
7725
7946
  }
7726
7947
  ),
7727
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex flex-col gap-4 items-center text-center", children: [
7728
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("h2", { className: "text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectKalshiModal.title }),
7729
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: labels.onboarding.connectKalshiModal.description })
7948
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex flex-col gap-4 items-center text-center", children: [
7949
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("h2", { className: "text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectKalshiModal.title }),
7950
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: labels.onboarding.connectKalshiModal.description })
7730
7951
  ] }),
7731
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex flex-col gap-4 w-full", children: [
7732
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex flex-col gap-3 rounded-agg-lg bg-agg-secondary-hover p-4", children: [
7733
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex flex-col gap-1", children: [
7734
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "text-agg-xs font-agg-bold uppercase leading-agg-4 text-agg-muted-foreground", children: labels.onboarding.connectKalshiModal.stepOne.label }),
7735
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepOne.title })
7952
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex flex-col gap-4 w-full", children: [
7953
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex flex-col gap-3 rounded-agg-lg bg-agg-secondary-hover p-4", children: [
7954
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex flex-col gap-1", children: [
7955
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "text-agg-xs font-agg-bold uppercase leading-agg-4 text-agg-muted-foreground", children: labels.onboarding.connectKalshiModal.stepOne.label }),
7956
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepOne.title })
7736
7957
  ] }),
7737
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "space-y-0 text-agg-sm leading-agg-5 text-agg-foreground", children: [
7738
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { children: labels.onboarding.connectKalshiModal.stepOne.instructions.signIn }),
7739
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("p", { children: [
7958
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "space-y-0 text-agg-sm leading-agg-5 text-agg-foreground", children: [
7959
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { children: labels.onboarding.connectKalshiModal.stepOne.instructions.signIn }),
7960
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("p", { children: [
7740
7961
  labels.onboarding.connectKalshiModal.stepOne.instructions.goToProfilePrefix,
7741
7962
  " ",
7742
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.profileText }),
7963
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.profileText }),
7743
7964
  labels.onboarding.connectKalshiModal.stepOne.instructions.goToProfileSeparator,
7744
7965
  " ",
7745
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("span", { className: "text-agg-foreground underline", children: labels.onboarding.connectKalshiModal.stepOne.instructions.profileUrl })
7966
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "text-agg-foreground underline", children: labels.onboarding.connectKalshiModal.stepOne.instructions.profileUrl })
7746
7967
  ] }),
7747
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("p", { children: [
7968
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("p", { children: [
7748
7969
  labels.onboarding.connectKalshiModal.stepOne.instructions.clickCreateKeyPrefix,
7749
7970
  " ",
7750
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.createKeyText }),
7971
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.createKeyText }),
7751
7972
  labels.onboarding.connectKalshiModal.stepOne.instructions.clickCreateKeySuffix
7752
7973
  ] }),
7753
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("p", { children: [
7974
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("p", { children: [
7754
7975
  labels.onboarding.connectKalshiModal.stepOne.instructions.selectPermissionsPrefix,
7755
7976
  " ",
7756
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.readWriteText }),
7977
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.readWriteText }),
7757
7978
  labels.onboarding.connectKalshiModal.stepOne.instructions.selectPermissionsSuffix
7758
7979
  ] }),
7759
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { children: labels.onboarding.connectKalshiModal.stepOne.instructions.createKey })
7980
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { children: labels.onboarding.connectKalshiModal.stepOne.instructions.createKey })
7760
7981
  ] }),
7761
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: [
7982
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: [
7762
7983
  labels.onboarding.connectKalshiModal.stepOne.footerLineOne,
7763
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("br", {}),
7984
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("br", {}),
7764
7985
  labels.onboarding.connectKalshiModal.stepOne.footerLineTwo
7765
7986
  ] })
7766
7987
  ] }),
7767
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex flex-col gap-3 rounded-agg-lg bg-agg-secondary-hover p-4", children: [
7768
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex flex-col gap-1", children: [
7769
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "text-agg-xs font-agg-bold uppercase leading-agg-4 text-agg-muted-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.label }),
7770
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.title })
7988
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex flex-col gap-3 rounded-agg-lg bg-agg-secondary-hover p-4", children: [
7989
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex flex-col gap-1", children: [
7990
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "text-agg-xs font-agg-bold uppercase leading-agg-4 text-agg-muted-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.label }),
7991
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.title })
7771
7992
  ] }),
7772
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.description }),
7773
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex flex-col gap-2", children: [
7774
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7993
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.description }),
7994
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex flex-col gap-2", children: [
7995
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
7775
7996
  "label",
7776
7997
  {
7777
7998
  htmlFor: "kalshi-api-key-id",
@@ -7779,7 +8000,7 @@ var ConnectKalshiModal = ({
7779
8000
  children: labels.onboarding.connectKalshiModal.stepTwo.apiKeyIdLabel
7780
8001
  }
7781
8002
  ),
7782
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
8003
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
7783
8004
  "input",
7784
8005
  {
7785
8006
  id: "kalshi-api-key-id",
@@ -7799,8 +8020,8 @@ var ConnectKalshiModal = ({
7799
8020
  }
7800
8021
  )
7801
8022
  ] }),
7802
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex flex-col gap-2", children: [
7803
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
8023
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex flex-col gap-2", children: [
8024
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
7804
8025
  "label",
7805
8026
  {
7806
8027
  htmlFor: "kalshi-private-key",
@@ -7808,7 +8029,7 @@ var ConnectKalshiModal = ({
7808
8029
  children: labels.onboarding.connectKalshiModal.stepTwo.privateKeyLabel
7809
8030
  }
7810
8031
  ),
7811
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
8032
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
7812
8033
  "textarea",
7813
8034
  {
7814
8035
  id: "kalshi-private-key",
@@ -7830,42 +8051,42 @@ var ConnectKalshiModal = ({
7830
8051
  ] })
7831
8052
  ] })
7832
8053
  ] }),
7833
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex items-center justify-between w-full", children: [
7834
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "text-agg-base text-agg-foreground", children: labels.onboarding.connectKalshiModal.help.label }),
7835
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex items-center gap-3", children: [
7836
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
8054
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex items-center justify-between w-full", children: [
8055
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "text-agg-base text-agg-foreground", children: labels.onboarding.connectKalshiModal.help.label }),
8056
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex items-center gap-3", children: [
8057
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
7837
8058
  "a",
7838
8059
  {
7839
8060
  href: "#",
7840
8061
  className: "flex items-center gap-2 text-agg-base font-agg-bold text-agg-primary hover:text-agg-primary-hover",
7841
8062
  children: [
7842
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(DocumentIcon, { className: "h-4 w-4" }),
8063
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(DocumentIcon, { className: "h-4 w-4" }),
7843
8064
  labels.onboarding.connectKalshiModal.help.docsLinkLabel
7844
8065
  ]
7845
8066
  }
7846
8067
  ),
7847
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("span", { className: "h-3 w-px bg-agg-separator" }),
7848
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
8068
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "h-3 w-px bg-agg-separator" }),
8069
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
7849
8070
  "a",
7850
8071
  {
7851
8072
  href: "#",
7852
8073
  className: "flex items-center gap-2 text-agg-base font-agg-bold text-agg-primary hover:text-agg-primary-hover",
7853
8074
  children: [
7854
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(PlaySquareIcon, { className: "h-4 w-4" }),
8075
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(PlaySquareIcon, { className: "h-4 w-4" }),
7855
8076
  labels.onboarding.connectKalshiModal.help.tutorialLinkLabel
7856
8077
  ]
7857
8078
  }
7858
8079
  )
7859
8080
  ] })
7860
8081
  ] }),
7861
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex flex-col gap-5 items-center", children: [
7862
- error ? /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex items-center gap-2", children: [
7863
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(WarningIcon, { className: "h-3.5 w-3.5 shrink-0 text-agg-error" }),
7864
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-error", children: error })
8082
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex flex-col gap-5 items-center", children: [
8083
+ error ? /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex items-center gap-2", children: [
8084
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(WarningIcon, { className: "h-3.5 w-3.5 shrink-0 text-agg-error" }),
8085
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-error", children: error })
7865
8086
  ] }) : null,
7866
- /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex items-center gap-3 justify-center", children: [
7867
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Button, { variant: "secondary", size: "large", onClick: handleCancel, children: labels.onboarding.connectKalshiModal.actions.cancel }),
7868
- /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
8087
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex items-center gap-3 justify-center", children: [
8088
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Button, { variant: "secondary", size: "large", onClick: handleCancel, children: labels.onboarding.connectKalshiModal.actions.cancel }),
8089
+ /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
7869
8090
  Button,
7870
8091
  {
7871
8092
  variant: "primary",
@@ -7889,7 +8110,7 @@ ConnectKalshiModal.displayName = "ConnectKalshiModal";
7889
8110
  var import_react14 = require("react");
7890
8111
  var import_hooks36 = require("@agg-build/hooks");
7891
8112
  var Dialog3 = __toESM(require("@radix-ui/react-dialog"));
7892
- var import_jsx_runtime119 = require("react/jsx-runtime");
8113
+ var import_jsx_runtime123 = require("react/jsx-runtime");
7893
8114
  var ConnectOnchainModal = ({
7894
8115
  open,
7895
8116
  onOpenChange,
@@ -7926,15 +8147,15 @@ var ConnectOnchainModal = ({
7926
8147
  },
7927
8148
  [onOpenChange]
7928
8149
  );
7929
- return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
8150
+ return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
7930
8151
  Modal.Container,
7931
8152
  {
7932
8153
  maxWidth: "600px",
7933
8154
  "aria-label": labels.onboarding.connectOnchainModal.ariaLabel,
7934
8155
  classNames: { container: "!rounded-agg-lg" },
7935
8156
  children: [
7936
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Dialog3.Title, { className: "sr-only", children: labels.onboarding.connectOnchainModal.title }),
7937
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8157
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Dialog3.Title, { className: "sr-only", children: labels.onboarding.connectOnchainModal.title }),
8158
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
7938
8159
  Modal.Header,
7939
8160
  {
7940
8161
  hideClose: false,
@@ -7945,26 +8166,26 @@ var ConnectOnchainModal = ({
7945
8166
  }
7946
8167
  }
7947
8168
  ),
7948
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Modal.Body, { classNames: { root: "!px-5 !pt-0 !pb-[60px] sm:!px-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex flex-col gap-8 items-center", children: [
7949
- /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex flex-col gap-4 items-center text-center", children: [
7950
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("h2", { className: "text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectOnchainModal.title }),
7951
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "text-agg-base text-center leading-agg-6 text-agg-foreground whitespace-pre-line", children: labels.onboarding.connectOnchainModal.description })
8169
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Modal.Body, { classNames: { root: "!px-5 !pt-0 !pb-[60px] sm:!px-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: "flex flex-col gap-8 items-center", children: [
8170
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: "flex flex-col gap-4 items-center text-center", children: [
8171
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("h2", { className: "text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectOnchainModal.title }),
8172
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("p", { className: "text-agg-base text-center leading-agg-6 text-agg-foreground whitespace-pre-line", children: labels.onboarding.connectOnchainModal.description })
7952
8173
  ] }),
7953
- /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex w-full flex-col items-center gap-4 rounded-agg-xl bg-agg-secondary-hover p-6", children: [
7954
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "text-agg-sm font-agg-bold uppercase leading-agg-5 text-agg-muted-foreground", children: labels.onboarding.connectOnchainModal.supportedVenuesLabel }),
7955
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: "flex flex-wrap items-center justify-center gap-x-4 gap-y-3", children: ONCHAIN_VENUES.map((venue, index) => /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex items-center gap-[6px]", children: [
7956
- index > 0 && /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { className: "mr-2.5 h-3 w-px bg-agg-separator" }),
7957
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(VenueLogo, { venue, size: "medium" }),
7958
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { className: "text-agg-base text-agg-foreground", children: labels.venues[venue] })
8174
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: "flex w-full flex-col items-center gap-4 rounded-agg-xl bg-agg-secondary-hover p-6", children: [
8175
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("p", { className: "text-agg-sm font-agg-bold uppercase leading-agg-5 text-agg-muted-foreground", children: labels.onboarding.connectOnchainModal.supportedVenuesLabel }),
8176
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: "flex flex-wrap items-center justify-center gap-x-4 gap-y-3", children: ONCHAIN_VENUES.map((venue, index) => /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: "flex items-center gap-[6px]", children: [
8177
+ index > 0 && /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("span", { className: "mr-2.5 h-3 w-px bg-agg-separator" }),
8178
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(VenueLogo, { venue, size: "medium" }),
8179
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("span", { className: "text-agg-base text-agg-foreground", children: labels.venues[venue] })
7959
8180
  ] }, venue)) })
7960
8181
  ] }),
7961
- /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex flex-col gap-6 items-center", children: [
7962
- /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex flex-col gap-3 items-center", children: [
7963
- error ? /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex items-center gap-2", children: [
7964
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(WarningIcon, { className: "h-3.5 w-3.5 shrink-0 text-agg-error" }),
7965
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-error", children: error })
8182
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: "flex flex-col gap-6 items-center", children: [
8183
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: "flex flex-col gap-3 items-center", children: [
8184
+ error ? /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: "flex items-center gap-2", children: [
8185
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(WarningIcon, { className: "h-3.5 w-3.5 shrink-0 text-agg-error" }),
8186
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-error", children: error })
7966
8187
  ] }) : null,
7967
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8188
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
7968
8189
  Button,
7969
8190
  {
7970
8191
  variant: "primary",
@@ -7975,7 +8196,7 @@ var ConnectOnchainModal = ({
7975
8196
  }
7976
8197
  )
7977
8198
  ] }),
7978
- /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8199
+ /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
7979
8200
  Button,
7980
8201
  {
7981
8202
  variant: "tertiary",
@@ -7994,7 +8215,7 @@ var ConnectOnchainModal = ({
7994
8215
  ConnectOnchainModal.displayName = "ConnectOnchainModal";
7995
8216
 
7996
8217
  // src/onboarding/index.tsx
7997
- var import_jsx_runtime120 = require("react/jsx-runtime");
8218
+ var import_jsx_runtime124 = require("react/jsx-runtime");
7998
8219
  var OnboardingModal = ({
7999
8220
  open,
8000
8221
  onOpenChange,
@@ -8056,19 +8277,19 @@ var OnboardingModal = ({
8056
8277
  }),
8057
8278
  [onConnectKalshi]
8058
8279
  );
8059
- return /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(import_jsx_runtime120.Fragment, { children: [
8060
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Modal, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(
8280
+ return /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(import_jsx_runtime124.Fragment, { children: [
8281
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Modal, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
8061
8282
  Modal.Container,
8062
8283
  {
8063
8284
  maxWidth: "600px",
8064
8285
  "aria-label": resolvedTitle,
8065
8286
  classNames: { container: "!rounded-agg-lg" },
8066
8287
  children: [
8067
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(Dialog4.Title, { className: "sr-only", children: resolvedTitle }),
8068
- /* @__PURE__ */ (0, import_jsx_runtime120.jsxs)(Modal.Body, { classNames: { root: "px-5 py-6 sm:px-10 sm:py-8" }, children: [
8069
- step === ONBOARDING_STEPS.HOW_IT_WORKS && /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(HowItWorksStep, { onContinue: handleHowItWorksContinue, icons: howItWorksIcons }),
8070
- step === ONBOARDING_STEPS.PROFILE_SETUP && /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(ProfileSetupStep, { onContinue: handleProfileContinue }),
8071
- step === ONBOARDING_STEPS.CONNECT_ACCOUNTS && /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
8288
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Dialog4.Title, { className: "sr-only", children: resolvedTitle }),
8289
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(Modal.Body, { classNames: { root: "px-5 py-6 sm:px-10 sm:py-8" }, children: [
8290
+ step === ONBOARDING_STEPS.HOW_IT_WORKS && /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(HowItWorksStep, { onContinue: handleHowItWorksContinue, icons: howItWorksIcons }),
8291
+ step === ONBOARDING_STEPS.PROFILE_SETUP && /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(ProfileSetupStep, { onContinue: handleProfileContinue }),
8292
+ step === ONBOARDING_STEPS.CONNECT_ACCOUNTS && /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
8072
8293
  ConnectAccountsStep,
8073
8294
  {
8074
8295
  onConnectOnchain: handleOpenOnchainModal,
@@ -8082,7 +8303,7 @@ var OnboardingModal = ({
8082
8303
  ]
8083
8304
  }
8084
8305
  ) }),
8085
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
8306
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
8086
8307
  ConnectOnchainModal,
8087
8308
  {
8088
8309
  open: onchainModalOpen,
@@ -8090,7 +8311,7 @@ var OnboardingModal = ({
8090
8311
  onConnect: handleOnchainConnect
8091
8312
  }
8092
8313
  ),
8093
- /* @__PURE__ */ (0, import_jsx_runtime120.jsx)(
8314
+ /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
8094
8315
  ConnectKalshiModal,
8095
8316
  {
8096
8317
  open: kalshiModalOpen,
@@ -8103,28 +8324,27 @@ var OnboardingModal = ({
8103
8324
  OnboardingModal.displayName = "OnboardingModal";
8104
8325
 
8105
8326
  // src/profile/index.tsx
8106
- var import_sdk13 = require("@agg-build/sdk");
8107
8327
  var import_react18 = require("react");
8108
8328
  var import_hooks40 = require("@agg-build/hooks");
8109
8329
 
8110
8330
  // src/profile/profile-modal.constants.ts
8111
8331
  var PROFILE_TAB_KEYS = {
8112
- ABOUT: "about",
8113
- ACCOUNTS_WALLETS: "accounts-wallets"
8332
+ PROFILE_ACCOUNTS: "profile-accounts",
8333
+ TRADING_ACCESS: "trading-access"
8114
8334
  };
8115
8335
  var PROFILE_TAB_ITEMS = [
8116
- { value: PROFILE_TAB_KEYS.ABOUT, label: "About", icon: "profile-about-tab" },
8117
8336
  {
8118
- value: PROFILE_TAB_KEYS.ACCOUNTS_WALLETS,
8119
- label: "Accounts & wallets",
8120
- icon: "profile-accounts-wallets-tab"
8121
- }
8337
+ value: PROFILE_TAB_KEYS.PROFILE_ACCOUNTS,
8338
+ label: "Profile & accounts",
8339
+ icon: "profile-about-tab"
8340
+ },
8341
+ { value: PROFILE_TAB_KEYS.TRADING_ACCESS, label: "Trading access", icon: "shield-trust" }
8122
8342
  ];
8123
8343
 
8124
8344
  // src/profile/tabs/about-tab.tsx
8125
8345
  var import_react16 = require("react");
8126
8346
  var import_hooks38 = require("@agg-build/hooks");
8127
- var import_jsx_runtime121 = require("react/jsx-runtime");
8347
+ var import_jsx_runtime125 = require("react/jsx-runtime");
8128
8348
  var AboutTab = ({
8129
8349
  avatarPreview,
8130
8350
  onDeleteProfile: _onDeleteProfile,
@@ -8156,70 +8376,68 @@ var AboutTab = ({
8156
8376
  );
8157
8377
  const resolvedPreview = draftAvatarPreview != null ? draftAvatarPreview : avatarPreview;
8158
8378
  const hasAvatarPreview = Boolean(resolvedPreview);
8159
- return /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "agg-profile-about flex flex-col gap-8", children: [
8160
- /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "agg-profile-avatar-section flex w-full flex-col items-stretch sm:items-start", children: [
8161
- /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)(
8162
- "button",
8163
- {
8164
- type: "button",
8165
- onClick: handleAvatarClick,
8166
- className: cn(
8167
- "agg-profile-avatar-trigger",
8168
- "group relative flex items-center justify-center self-start",
8169
- "h-[80px] w-[80px]",
8170
- "rounded-agg-full",
8171
- "bg-agg-secondary-hover",
8172
- !hasAvatarPreview && "hover:bg-agg-tertiary",
8173
- "transition-colors cursor-pointer",
8174
- "overflow-hidden"
8175
- ),
8176
- "aria-label": labels.onboarding.profileSetup.uploadProfilePictureAria,
8177
- children: [
8178
- !hasAvatarPreview ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
8179
- "svg",
8180
- {
8181
- "aria-hidden": true,
8182
- viewBox: "0 0 80 80",
8183
- className: "pointer-events-none absolute inset-0 h-full w-full text-agg-separator group-hover:text-agg-muted-foreground",
8184
- children: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
8185
- "circle",
8186
- {
8187
- cx: "40",
8188
- cy: "40",
8189
- r: "39.5",
8190
- fill: "none",
8191
- stroke: "currentColor",
8192
- strokeWidth: "1",
8193
- strokeDasharray: "8 8"
8194
- }
8195
- )
8196
- }
8197
- ) : null,
8198
- resolvedPreview ? /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
8199
- RemoteImage,
8200
- {
8201
- src: resolvedPreview,
8202
- alt: labels.onboarding.profileSetup.profilePreviewAlt,
8203
- className: "h-full w-full object-cover"
8204
- }
8205
- ) : /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(Icon, { name: "profile", className: "h-7 w-7 text-agg-muted-foreground" })
8206
- ]
8207
- }
8208
- ),
8209
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
8210
- "input",
8211
- {
8212
- ref: fileInputRef,
8213
- type: "file",
8214
- accept: "image/*",
8215
- onChange: handleFileChange,
8216
- className: "hidden",
8217
- "aria-hidden": "true"
8218
- }
8219
- )
8220
- ] }),
8221
- /* @__PURE__ */ (0, import_jsx_runtime121.jsxs)("div", { className: "agg-form-section flex flex-col gap-2", children: [
8222
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
8379
+ return /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("div", { className: "agg-profile-about flex flex-col gap-8", children: /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)("div", { className: "agg-profile-avatar-section flex w-full items-center gap-6", children: [
8380
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
8381
+ "button",
8382
+ {
8383
+ type: "button",
8384
+ onClick: handleAvatarClick,
8385
+ className: cn(
8386
+ "agg-profile-avatar-trigger",
8387
+ "group relative flex items-center justify-center self-start",
8388
+ "h-[80px] w-[80px]",
8389
+ "rounded-agg-full",
8390
+ "bg-agg-secondary-hover",
8391
+ !hasAvatarPreview && "hover:bg-agg-tertiary",
8392
+ "transition-colors cursor-pointer",
8393
+ "overflow-hidden"
8394
+ ),
8395
+ "aria-label": labels.onboarding.profileSetup.uploadProfilePictureAria,
8396
+ children: [
8397
+ !hasAvatarPreview ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8398
+ "svg",
8399
+ {
8400
+ "aria-hidden": true,
8401
+ viewBox: "0 0 80 80",
8402
+ className: "pointer-events-none absolute inset-0 h-full w-full text-agg-separator group-hover:text-agg-muted-foreground",
8403
+ children: /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8404
+ "circle",
8405
+ {
8406
+ cx: "40",
8407
+ cy: "40",
8408
+ r: "39.5",
8409
+ fill: "none",
8410
+ stroke: "currentColor",
8411
+ strokeWidth: "1",
8412
+ strokeDasharray: "8 8"
8413
+ }
8414
+ )
8415
+ }
8416
+ ) : null,
8417
+ resolvedPreview ? /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8418
+ RemoteImage,
8419
+ {
8420
+ src: resolvedPreview,
8421
+ alt: labels.onboarding.profileSetup.profilePreviewAlt,
8422
+ className: "h-full w-full object-cover"
8423
+ }
8424
+ ) : /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Icon, { name: "profile", className: "h-7 w-7 text-agg-muted-foreground" })
8425
+ ]
8426
+ }
8427
+ ),
8428
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8429
+ "input",
8430
+ {
8431
+ ref: fileInputRef,
8432
+ type: "file",
8433
+ accept: "image/*",
8434
+ onChange: handleFileChange,
8435
+ className: "hidden",
8436
+ "aria-hidden": "true"
8437
+ }
8438
+ ),
8439
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)("div", { className: "agg-form-section flex min-w-0 flex-1 flex-col gap-2", children: [
8440
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8223
8441
  "label",
8224
8442
  {
8225
8443
  htmlFor: "profile-username",
@@ -8227,7 +8445,7 @@ var AboutTab = ({
8227
8445
  children: "Username"
8228
8446
  }
8229
8447
  ),
8230
- /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
8448
+ /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(
8231
8449
  "input",
8232
8450
  {
8233
8451
  id: "profile-username",
@@ -8236,7 +8454,7 @@ var AboutTab = ({
8236
8454
  value: draftUsername,
8237
8455
  onChange: (e) => onDraftUsernameChange(e.target.value),
8238
8456
  className: cn(
8239
- "w-full px-4 py-3",
8457
+ "h-10 w-full px-3 py-2.5",
8240
8458
  "rounded-agg-sm",
8241
8459
  "border border-agg-separator",
8242
8460
  "bg-agg-secondary text-agg-foreground",
@@ -8249,28 +8467,34 @@ var AboutTab = ({
8249
8467
  }
8250
8468
  )
8251
8469
  ] })
8252
- ] });
8470
+ ] }) });
8253
8471
  };
8254
8472
  AboutTab.displayName = "AboutTab";
8255
8473
 
8256
8474
  // src/profile/tabs/accounts-wallets-tab.tsx
8257
- var import_react17 = require("react");
8258
- var import_hooks39 = require("@agg-build/hooks");
8259
- var import_jsx_runtime122 = require("react/jsx-runtime");
8260
- var SectionTitle = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("h3", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children });
8261
- var AccountRow = ({ children, className }) => /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
8475
+ var import_jsx_runtime126 = require("react/jsx-runtime");
8476
+ var SectionTitle = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("h3", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children });
8477
+ var AccountRow = ({ children, className }) => /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
8262
8478
  "div",
8263
8479
  {
8264
8480
  className: cn(
8265
- "flex items-center justify-between",
8481
+ "flex h-12 items-center justify-between",
8266
8482
  "rounded-agg-lg border border-agg-separator bg-agg-secondary",
8267
- "px-5 py-3",
8483
+ "px-5",
8268
8484
  className
8269
8485
  ),
8270
8486
  children
8271
8487
  }
8272
8488
  );
8273
- var ConnectTextButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
8489
+ var AccountIdentity = ({
8490
+ icon,
8491
+ label,
8492
+ iconClassName
8493
+ }) => /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { className: "flex min-w-0 items-center gap-3", children: [
8494
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("span", { className: cn("flex h-5 w-5 shrink-0 items-center justify-center", iconClassName), children: /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(Icon, { name: icon, size: "small", color: "currentColor" }) }),
8495
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("span", { className: "truncate text-agg-base font-agg-normal leading-6 text-agg-foreground", children: label })
8496
+ ] });
8497
+ var ConnectTextButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
8274
8498
  "button",
8275
8499
  {
8276
8500
  type: "button",
@@ -8279,7 +8503,7 @@ var ConnectTextButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime1
8279
8503
  children: "Connect"
8280
8504
  }
8281
8505
  );
8282
- var DisconnectTextButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
8506
+ var DisconnectTextButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
8283
8507
  "button",
8284
8508
  {
8285
8509
  type: "button",
@@ -8288,8 +8512,145 @@ var DisconnectTextButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runti
8288
8512
  children: "Disconnect"
8289
8513
  }
8290
8514
  );
8291
- var TRADING_ACCESS_VENUES = ["kalshi", "polymarket", "opinion", "predict"];
8515
+ var VerifiedBadge = () => /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(Icon, { name: "check-badge", size: "small", color: "var(--agg-color-primary, #536dfe)" });
8516
+ var ConnectedAccountRow = ({
8517
+ icon,
8518
+ label,
8519
+ connectedLabel,
8520
+ connected,
8521
+ iconClassName,
8522
+ onConnect,
8523
+ onDisconnect
8524
+ }) => {
8525
+ const displayLabel = connected ? connectedLabel != null ? connectedLabel : label : label;
8526
+ return /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)(AccountRow, { className: "agg-social-account-row gap-4", children: [
8527
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { className: "flex min-w-0 items-center gap-3", children: [
8528
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(AccountIdentity, { icon, label: displayLabel, iconClassName }),
8529
+ connected ? /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(VerifiedBadge, {}) : null
8530
+ ] }),
8531
+ connected ? /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(DisconnectTextButton, { onClick: onDisconnect }) : /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(ConnectTextButton, { onClick: onConnect })
8532
+ ] });
8533
+ };
8534
+ var AccountsWalletsTab = ({
8535
+ socialAccounts,
8536
+ email,
8537
+ wallets = [],
8538
+ onConnectTwitter,
8539
+ onDisconnectTwitter,
8540
+ onConnectGoogle,
8541
+ onDisconnectGoogle,
8542
+ onConnectApple,
8543
+ onDisconnectApple,
8544
+ onDisconnectWallet,
8545
+ onConnectEmail
8546
+ }) => {
8547
+ const twitter = socialAccounts == null ? void 0 : socialAccounts.twitter;
8548
+ const google = socialAccounts == null ? void 0 : socialAccounts.google;
8549
+ const apple = socialAccounts == null ? void 0 : socialAccounts.apple;
8550
+ const hasEmail = Boolean(email);
8551
+ return /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { className: "agg-accounts-wallets-tab flex flex-col gap-6", children: [
8552
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { className: "agg-social-accounts-section flex flex-col gap-3", children: [
8553
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(SectionTitle, { children: "Connected accounts" }),
8554
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { className: "agg-social-accounts-list flex flex-col gap-4", children: [
8555
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
8556
+ ConnectedAccountRow,
8557
+ {
8558
+ icon: "google",
8559
+ iconClassName: "text-agg-foreground",
8560
+ label: "Google",
8561
+ connected: google == null ? void 0 : google.connected,
8562
+ connectedLabel: google == null ? void 0 : google.handle,
8563
+ onConnect: onConnectGoogle,
8564
+ onDisconnect: onDisconnectGoogle
8565
+ }
8566
+ ),
8567
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
8568
+ ConnectedAccountRow,
8569
+ {
8570
+ icon: "apple",
8571
+ iconClassName: "text-agg-foreground",
8572
+ label: "Apple",
8573
+ connected: apple == null ? void 0 : apple.connected,
8574
+ connectedLabel: apple == null ? void 0 : apple.handle,
8575
+ onConnect: onConnectApple,
8576
+ onDisconnect: onDisconnectApple
8577
+ }
8578
+ ),
8579
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
8580
+ ConnectedAccountRow,
8581
+ {
8582
+ icon: "twitter",
8583
+ iconClassName: "text-agg-foreground",
8584
+ label: "X (Twitter)",
8585
+ connected: twitter == null ? void 0 : twitter.connected,
8586
+ connectedLabel: twitter == null ? void 0 : twitter.handle,
8587
+ onConnect: onConnectTwitter,
8588
+ onDisconnect: onDisconnectTwitter
8589
+ }
8590
+ ),
8591
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
8592
+ ConnectedAccountRow,
8593
+ {
8594
+ icon: "email",
8595
+ iconClassName: "text-agg-foreground",
8596
+ label: "Email address",
8597
+ connected: hasEmail,
8598
+ connectedLabel: email != null ? email : void 0,
8599
+ onConnect: onConnectEmail
8600
+ }
8601
+ )
8602
+ ] })
8603
+ ] }),
8604
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { className: "agg-wallets-section flex flex-col gap-3", children: [
8605
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(SectionTitle, { children: "Wallets" }),
8606
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)("div", { className: "flex flex-col gap-2", children: wallets.length > 0 ? wallets.map((wallet) => {
8607
+ var _a;
8608
+ return /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(AccountRow, { className: "gap-4", children: /* @__PURE__ */ (0, import_jsx_runtime126.jsxs)("div", { className: "flex min-w-0 items-center gap-3", children: [
8609
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(
8610
+ AccountIdentity,
8611
+ {
8612
+ icon: "wallet",
8613
+ iconClassName: "text-agg-foreground",
8614
+ label: (_a = wallet.displayAddress) != null ? _a : wallet.address
8615
+ }
8616
+ ),
8617
+ /* @__PURE__ */ (0, import_jsx_runtime126.jsx)(VerifiedBadge, {})
8618
+ ] }) }, `${wallet.chain}:${wallet.address}`);
8619
+ }) : null })
8620
+ ] })
8621
+ ] });
8622
+ };
8623
+ AccountsWalletsTab.displayName = "AccountsWalletsTab";
8624
+
8625
+ // src/profile/tabs/trading-access-tab.tsx
8626
+ var import_hooks39 = require("@agg-build/hooks");
8627
+ var import_react17 = require("react");
8628
+ var import_jsx_runtime127 = require("react/jsx-runtime");
8629
+ var TRADING_ACCESS_VENUES = [
8630
+ "kalshi",
8631
+ "polymarket",
8632
+ "opinion",
8633
+ "probable",
8634
+ "limitless",
8635
+ "predict",
8636
+ "myriad",
8637
+ "hyperliquid"
8638
+ ];
8639
+ var UNAVAILABLE_VENUES = /* @__PURE__ */ new Set([]);
8640
+ var SectionTitle2 = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("h3", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children });
8641
+ var AccessRow = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
8642
+ "div",
8643
+ {
8644
+ className: cn(
8645
+ "flex h-12 items-center justify-between gap-4",
8646
+ "rounded-agg-lg border border-agg-separator bg-agg-secondary",
8647
+ "px-5"
8648
+ ),
8649
+ children
8650
+ }
8651
+ );
8292
8652
  var VerifyIdentityButton = ({ onError }) => {
8653
+ const labels = (0, import_hooks39.useLabels)();
8293
8654
  const client = (0, import_hooks39.useAggClient)();
8294
8655
  const [isInitiating, setIsInitiating] = (0, import_react17.useState)(false);
8295
8656
  const [needsDepositAddress, setNeedsDepositAddress] = (0, import_react17.useState)(false);
@@ -8312,148 +8673,64 @@ var VerifyIdentityButton = ({ onError }) => {
8312
8673
  });
8313
8674
  }, [isReady, isInitiating, client, onError]);
8314
8675
  (0, import_react17.useEffect)(() => {
8315
- if (isTimedOut && isInitiating) {
8316
- setIsInitiating(false);
8317
- setNeedsDepositAddress(false);
8318
- onError == null ? void 0 : onError(new Error("Deposit address provisioning timed out"));
8319
- }
8676
+ if (!isTimedOut || !isInitiating) return;
8677
+ setIsInitiating(false);
8678
+ setNeedsDepositAddress(false);
8679
+ onError == null ? void 0 : onError(new Error("Deposit address provisioning timed out"));
8320
8680
  }, [isTimedOut, isInitiating, onError]);
8321
8681
  const handleClick = (0, import_react17.useCallback)(() => {
8322
8682
  setIsInitiating(true);
8323
8683
  setNeedsDepositAddress(true);
8324
8684
  }, []);
8325
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
8685
+ return /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(
8326
8686
  "button",
8327
8687
  {
8328
8688
  type: "button",
8329
8689
  disabled: isInitiating,
8330
8690
  onClick: handleClick,
8331
8691
  className: "shrink-0 cursor-pointer text-agg-sm font-agg-bold leading-agg-5 text-agg-primary whitespace-nowrap disabled:cursor-not-allowed disabled:opacity-60",
8332
- children: isInitiating ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "inline-block h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }) : "Verify Identity"
8692
+ children: isInitiating ? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("span", { className: "inline-block h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent" }) : labels.trading.kycVerify
8333
8693
  }
8334
8694
  );
8335
8695
  };
8336
- var TradingAccessSection = ({
8696
+ var AvailableStatus = () => /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)("div", { className: "flex items-center gap-2", children: [
8697
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(Icon, { name: "check-badge", size: "small", color: "var(--agg-color-primary, #536dfe)" }),
8698
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("span", { className: "text-agg-sm font-agg-normal leading-agg-5 text-agg-foreground whitespace-nowrap", children: "Available" })
8699
+ ] });
8700
+ var TradingAccessTab = ({
8337
8701
  venueAccounts,
8338
8702
  onKycError
8339
8703
  }) => {
8340
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-trading-access-section flex flex-col gap-3", children: [
8341
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(SectionTitle, { children: "Trading access" }),
8342
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("div", { className: "flex flex-col gap-2", children: TRADING_ACCESS_VENUES.map((venue) => {
8704
+ const labels = (0, import_hooks39.useLabels)();
8705
+ return /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)("div", { className: "agg-trading-access-section flex flex-col gap-4", children: [
8706
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(SectionTitle2, { children: "Venues" }),
8707
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("div", { className: "flex flex-col gap-3", children: TRADING_ACCESS_VENUES.map((venue) => {
8343
8708
  var _a;
8344
- const venueAccount = venueAccounts == null ? void 0 : venueAccounts.find((va) => va.venue === venue);
8709
+ const venueAccount = venueAccounts == null ? void 0 : venueAccounts.find((account) => account.venue === venue);
8345
8710
  const isKalshi = venue === "kalshi";
8346
8711
  const isVerified = (venueAccount == null ? void 0 : venueAccount.kycStatus) === "verified";
8712
+ const isUnavailable = UNAVAILABLE_VENUES.has(venue);
8347
8713
  const displayName = (_a = venueLogoLabels[venue]) != null ? _a : venue;
8348
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(AccountRow, { children: [
8349
- /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex items-center gap-3", children: [
8350
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(VenueLogo, { venue, size: "small" }),
8351
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: displayName })
8714
+ return /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)(AccessRow, { children: [
8715
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)("div", { className: "flex min-w-0 items-center gap-3", children: [
8716
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(VenueLogo, { venue, size: "small" }),
8717
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("span", { className: "truncate text-agg-base font-agg-normal leading-6 text-agg-foreground", children: displayName })
8352
8718
  ] }),
8353
- isKalshi && !isVerified ? /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex items-center gap-4", children: [
8354
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "text-agg-sm font-agg-normal leading-agg-5 text-agg-muted-foreground whitespace-nowrap", children: "KYC required" }),
8355
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(VerifyIdentityButton, { onError: onKycError })
8356
- ] }) : isKalshi && isVerified ? /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex items-center gap-4", children: [
8357
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "text-agg-sm font-agg-normal leading-agg-5 text-agg-muted-foreground whitespace-nowrap", children: "Verified" }),
8358
- /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex items-center gap-2", children: [
8359
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
8360
- Icon,
8361
- {
8362
- name: "check-badge",
8363
- size: "small",
8364
- color: "var(--agg-color-primary, #536dfe)"
8365
- }
8366
- ),
8367
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "text-agg-sm font-agg-normal leading-agg-5 text-agg-foreground whitespace-nowrap", children: "Available" })
8368
- ] })
8369
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex items-center gap-2", children: [
8370
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Icon, { name: "check-badge", size: "small", color: "var(--agg-color-primary, #536dfe)" }),
8371
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "text-agg-sm font-agg-normal leading-agg-5 text-agg-foreground whitespace-nowrap", children: "Available" })
8372
- ] })
8719
+ isKalshi && !isVerified ? /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)("div", { className: "flex items-center gap-4", children: [
8720
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("span", { className: "text-agg-sm font-agg-normal leading-agg-5 text-agg-muted-foreground whitespace-nowrap", children: labels.trading.kycRequired }),
8721
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(VerifyIdentityButton, { onError: onKycError })
8722
+ ] }) : isKalshi && isVerified ? /* @__PURE__ */ (0, import_jsx_runtime127.jsxs)("div", { className: "flex items-center gap-4", children: [
8723
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("span", { className: "text-agg-sm font-agg-normal leading-agg-5 text-agg-muted-foreground whitespace-nowrap", children: labels.trading.verified }),
8724
+ /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(AvailableStatus, {})
8725
+ ] }) : isUnavailable ? /* @__PURE__ */ (0, import_jsx_runtime127.jsx)("span", { className: "text-agg-sm font-agg-normal leading-agg-5 text-agg-muted-foreground whitespace-nowrap", children: labels.trading.venueUnavailableInRegion }) : /* @__PURE__ */ (0, import_jsx_runtime127.jsx)(AvailableStatus, {})
8373
8726
  ] }, venue);
8374
8727
  }) })
8375
8728
  ] });
8376
8729
  };
8377
- var AccountsWalletsTab = ({
8378
- exchanges: _exchanges,
8379
- socialAccounts,
8380
- email,
8381
- venueAccounts,
8382
- onKycError,
8383
- onDisconnectExchange: _onDisconnectExchange,
8384
- onConnectTwitter,
8385
- onDisconnectTwitter,
8386
- onConnectGoogle,
8387
- onDisconnectGoogle,
8388
- onConnectApple,
8389
- onDisconnectApple,
8390
- onConnectDiscord: _onConnectDiscord,
8391
- onDisconnectDiscord: _onDisconnectDiscord,
8392
- onConnectTelegram: _onConnectTelegram,
8393
- onDisconnectTelegram: _onDisconnectTelegram,
8394
- onConnectEmail
8395
- }) => {
8396
- const twitter = socialAccounts == null ? void 0 : socialAccounts.twitter;
8397
- const google = socialAccounts == null ? void 0 : socialAccounts.google;
8398
- const apple = socialAccounts == null ? void 0 : socialAccounts.apple;
8399
- return /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-accounts-wallets-tab flex flex-col gap-8", children: [
8400
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(TradingAccessSection, { venueAccounts, onKycError }),
8401
- /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-social-accounts-section flex flex-col gap-3", children: [
8402
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(SectionTitle, { children: "Social Accounts" }),
8403
- /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "agg-social-accounts-list flex flex-col gap-2", children: [
8404
- /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(AccountRow, { className: "agg-social-account-row", children: [
8405
- /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex items-center gap-3", children: [
8406
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-agg-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Icon, { name: "google", size: "small", color: "currentColor" }) }),
8407
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: "Google" })
8408
- ] }),
8409
- (google == null ? void 0 : google.connected) ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(DisconnectTextButton, { onClick: onDisconnectGoogle }) : /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(ConnectTextButton, { onClick: onConnectGoogle })
8410
- ] }),
8411
- /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(AccountRow, { className: "agg-social-account-row", children: [
8412
- /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex items-center gap-3", children: [
8413
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-agg-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Icon, { name: "apple", size: "small", color: "currentColor" }) }),
8414
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: "Apple" })
8415
- ] }),
8416
- (apple == null ? void 0 : apple.connected) ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(DisconnectTextButton, { onClick: onDisconnectApple }) : /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(ConnectTextButton, { onClick: onConnectApple })
8417
- ] }),
8418
- /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(AccountRow, { className: "agg-social-account-row", children: [
8419
- /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex items-center gap-3", children: [
8420
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-agg-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Icon, { name: "twitter", size: "small", color: "currentColor" }) }),
8421
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: "X (Twitter)" })
8422
- ] }),
8423
- (twitter == null ? void 0 : twitter.connected) ? /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(DisconnectTextButton, { onClick: onDisconnectTwitter }) : /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(ConnectTextButton, { onClick: onConnectTwitter })
8424
- ] })
8425
- ] })
8426
- ] }),
8427
- /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex flex-col gap-3", children: [
8428
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(SectionTitle, { children: "Email Address" }),
8429
- /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)(
8430
- "button",
8431
- {
8432
- type: "button",
8433
- onClick: onConnectEmail,
8434
- className: cn(
8435
- "flex items-center justify-between",
8436
- "rounded-agg-lg border border-agg-separator bg-agg-secondary",
8437
- "px-5 py-3",
8438
- "cursor-pointer hover:bg-agg-secondary-hover"
8439
- ),
8440
- children: [
8441
- /* @__PURE__ */ (0, import_jsx_runtime122.jsxs)("div", { className: "flex items-center gap-3", children: [
8442
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-agg-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Icon, { name: "email", size: "small", color: "currentColor" }) }),
8443
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: email != null ? email : "Connect email" })
8444
- ] }),
8445
- /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(Icon, { name: "chevron-right", size: "small", color: "currentColor" })
8446
- ]
8447
- }
8448
- )
8449
- ] })
8450
- ] });
8451
- };
8452
- AccountsWalletsTab.displayName = "AccountsWalletsTab";
8730
+ TradingAccessTab.displayName = "TradingAccessTab";
8453
8731
 
8454
8732
  // src/profile/index.tsx
8455
- var import_jsx_runtime123 = require("react/jsx-runtime");
8456
- var EVM_WALLET_VENUES = [import_sdk13.Venue.polymarket, import_sdk13.Venue.predict, import_sdk13.Venue.opinion];
8733
+ var import_jsx_runtime128 = require("react/jsx-runtime");
8457
8734
  var ProfileModal = ({
8458
8735
  open,
8459
8736
  onOpenChange,
@@ -8461,21 +8738,15 @@ var ProfileModal = ({
8461
8738
  avatarPreview,
8462
8739
  onSave,
8463
8740
  onDeleteProfile,
8464
- exchanges,
8465
8741
  socialAccounts,
8466
8742
  wallets,
8467
8743
  email,
8468
- onDisconnectExchange: onDisconnectExchangeProp,
8469
8744
  onConnectTwitter,
8470
8745
  onDisconnectTwitter,
8471
8746
  onConnectGoogle,
8472
8747
  onDisconnectGoogle,
8473
8748
  onConnectApple,
8474
8749
  onDisconnectApple,
8475
- onConnectDiscord,
8476
- onDisconnectDiscord,
8477
- onConnectTelegram,
8478
- onDisconnectTelegram,
8479
8750
  onDisconnectWallet,
8480
8751
  onConnectEmail,
8481
8752
  onKycError
@@ -8484,7 +8755,7 @@ var ProfileModal = ({
8484
8755
  const client = (0, import_hooks40.useAggClient)();
8485
8756
  const { user, startAuth } = (0, import_hooks40.useAggAuthState)();
8486
8757
  const toastCtx = useOptionalToast();
8487
- const [activeTab, setActiveTab] = (0, import_react18.useState)(PROFILE_TAB_KEYS.ABOUT);
8758
+ const [activeTab, setActiveTab] = (0, import_react18.useState)(PROFILE_TAB_KEYS.PROFILE_ACCOUNTS);
8488
8759
  const resolvedInitialUsername = (_a = username != null ? username : user == null ? void 0 : user.username) != null ? _a : "";
8489
8760
  const [draftUsername, setDraftUsername] = (0, import_react18.useState)(resolvedInitialUsername);
8490
8761
  const [draftAvatarFile, setDraftAvatarFile] = (0, import_react18.useState)();
@@ -8499,7 +8770,7 @@ var ProfileModal = ({
8499
8770
  (isOpen) => {
8500
8771
  var _a2;
8501
8772
  if (!isOpen) {
8502
- setActiveTab(PROFILE_TAB_KEYS.ABOUT);
8773
+ setActiveTab(PROFILE_TAB_KEYS.PROFILE_ACCOUNTS);
8503
8774
  setIsSaving(false);
8504
8775
  setDraftUsername((_a2 = username != null ? username : user == null ? void 0 : user.username) != null ? _a2 : "");
8505
8776
  setDraftAvatarFile(void 0);
@@ -8753,30 +9024,7 @@ var ProfileModal = ({
8753
9024
  };
8754
9025
  })) != null ? _b2 : [];
8755
9026
  }, [user == null ? void 0 : user.wallets, wallets]);
8756
- const resolvedExchanges = (0, import_react18.useMemo)(() => {
8757
- var _a2, _b2;
8758
- if (exchanges !== void 0) return exchanges;
8759
- const walletAccount = (_a2 = user == null ? void 0 : user.accounts) == null ? void 0 : _a2.find(
8760
- (a) => a.provider.toLowerCase() === "wallet"
8761
- );
8762
- if (!walletAccount) return [];
8763
- const addr = walletAccount.providerAccountId;
8764
- const displayAddress = (_b2 = shortenAddress(addr)) != null ? _b2 : addr;
8765
- return EVM_WALLET_VENUES.map((venue) => ({ venue, displayAddress, verified: false }));
8766
- }, [exchanges, user == null ? void 0 : user.accounts]);
8767
- const handleDisconnectExchange = (0, import_react18.useCallback)(
8768
- (venue) => __async(null, null, function* () {
8769
- if (exchanges !== void 0) {
8770
- onDisconnectExchangeProp == null ? void 0 : onDisconnectExchangeProp(venue);
8771
- return;
8772
- }
8773
- yield client.disconnectAccount("wallet");
8774
- yield client.getCurrentUser();
8775
- onDisconnectExchangeProp == null ? void 0 : onDisconnectExchangeProp(venue);
8776
- }),
8777
- [client, exchanges, onDisconnectExchangeProp]
8778
- );
8779
- return /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
9027
+ return /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(
8780
9028
  Modal.Container,
8781
9029
  {
8782
9030
  maxWidth: "800px",
@@ -8785,8 +9033,8 @@ var ProfileModal = ({
8785
9033
  container: cn("agg-profile-modal", "min-h-[37.5rem]")
8786
9034
  },
8787
9035
  children: [
8788
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Modal.Header, { title: "Edit Profile", classNames: { root: "agg-profile-modal-header" } }),
8789
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: "agg-profile-tabs sm:hidden w-full", children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
9036
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Modal.Header, { title: "Edit Profile", classNames: { root: "agg-profile-modal-header" } }),
9037
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("div", { className: "agg-profile-tabs sm:hidden w-full", children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
8790
9038
  Tabs,
8791
9039
  {
8792
9040
  className: "w-full [&>div]:w-full",
@@ -8795,14 +9043,14 @@ var ProfileModal = ({
8795
9043
  items: PROFILE_TAB_ITEMS.map((tab) => ({
8796
9044
  value: tab.value,
8797
9045
  label: tab.label,
8798
- icon: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Icon, { name: tab.icon, size: "small" })
9046
+ icon: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Icon, { name: tab.icon, size: "small" })
8799
9047
  })),
8800
9048
  value: activeTab,
8801
9049
  onChange: (val) => setActiveTab(val)
8802
9050
  }
8803
9051
  ) }),
8804
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Modal.Body, { classNames: { root: cn("agg-profile-modal-body", "overflow-x-visible") }, children: /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: "agg-profile-layout flex flex-col sm:flex-row sm:gap-10", children: [
8805
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
9052
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Modal.Body, { classNames: { root: cn("agg-profile-modal-body", "overflow-x-visible") }, children: /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)("div", { className: "agg-profile-layout flex flex-col sm:flex-row sm:gap-10", children: [
9053
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
8806
9054
  "nav",
8807
9055
  {
8808
9056
  className: cn(
@@ -8818,7 +9066,7 @@ var ProfileModal = ({
8818
9066
  "aria-label": "Profile sections",
8819
9067
  children: PROFILE_TAB_ITEMS.map((tab) => {
8820
9068
  const isActive = activeTab === tab.value;
8821
- return /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(
9069
+ return /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(
8822
9070
  "button",
8823
9071
  {
8824
9072
  type: "button",
@@ -8834,9 +9082,9 @@ var ProfileModal = ({
8834
9082
  isActive ? "font-agg-normal text-agg-foreground bg-agg-secondary-hover" : "font-agg-normal text-agg-foreground"
8835
9083
  ),
8836
9084
  children: [
8837
- isActive ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("div", { className: "absolute left-0 top-0 bottom-0 w-1 bg-agg-primary" }) : null,
8838
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Icon, { name: tab.icon, size: "small", color: "currentColor" }),
8839
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)("span", { className: "shrink-0 whitespace-nowrap", children: tab.label })
9085
+ isActive ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("div", { className: "absolute left-0 top-0 bottom-0 w-1 bg-agg-primary" }) : null,
9086
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Icon, { name: tab.icon, size: "small", color: "currentColor" }),
9087
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)("span", { className: "shrink-0 whitespace-nowrap", children: tab.label })
8840
9088
  ]
8841
9089
  },
8842
9090
  tab.value
@@ -8844,54 +9092,47 @@ var ProfileModal = ({
8844
9092
  })
8845
9093
  }
8846
9094
  ) }),
8847
- /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)("div", { className: "agg-profile-content min-w-0 flex-1", children: [
8848
- activeTab === PROFILE_TAB_KEYS.ABOUT ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
8849
- AboutTab,
8850
- {
8851
- username: username != null ? username : user == null ? void 0 : user.username,
8852
- avatarPreview: (_i = user == null ? void 0 : user.avatarUrl) != null ? _i : avatarPreview,
8853
- onDeleteProfile,
8854
- draftUsername,
8855
- onDraftUsernameChange: setDraftUsername,
8856
- draftAvatarFile,
8857
- onDraftAvatarChange: handleDraftAvatarChange,
8858
- draftAvatarPreview,
8859
- avatarError: avatarTypeError
8860
- }
8861
- ) : null,
8862
- activeTab === PROFILE_TAB_KEYS.ACCOUNTS_WALLETS ? /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
8863
- AccountsWalletsTab,
8864
- {
8865
- exchanges: resolvedExchanges,
8866
- venueAccounts: user == null ? void 0 : user.venueAccounts,
8867
- onKycError,
8868
- socialAccounts: resolvedSocialAccounts,
8869
- wallets: resolvedWallets,
8870
- email: resolvedEmail,
8871
- onDisconnectExchange: (venue) => {
8872
- void handleDisconnectExchange(venue);
8873
- },
8874
- onConnectTwitter: providerActionMap.twitter.connect,
8875
- onDisconnectTwitter: providerActionMap.twitter.disconnect,
8876
- onConnectGoogle: providerActionMap.google.connect,
8877
- onDisconnectGoogle: providerActionMap.google.disconnect,
8878
- onConnectApple: providerActionMap.apple.connect,
8879
- onDisconnectApple: providerActionMap.apple.disconnect,
8880
- onConnectDiscord,
8881
- onDisconnectDiscord,
8882
- onConnectTelegram,
8883
- onDisconnectTelegram,
8884
- onDisconnectWallet: (wallet) => {
8885
- void handleDisconnectWallet(wallet);
8886
- },
8887
- onConnectEmail: providerActionMap.email.connect
8888
- }
8889
- ) : null
9095
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)("div", { className: "agg-profile-content min-w-0 flex-1", children: [
9096
+ activeTab === PROFILE_TAB_KEYS.PROFILE_ACCOUNTS ? /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)("div", { className: "agg-profile-accounts-tab flex flex-col gap-8", children: [
9097
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
9098
+ AboutTab,
9099
+ {
9100
+ username: username != null ? username : user == null ? void 0 : user.username,
9101
+ avatarPreview: (_i = user == null ? void 0 : user.avatarUrl) != null ? _i : avatarPreview,
9102
+ onDeleteProfile,
9103
+ draftUsername,
9104
+ onDraftUsernameChange: setDraftUsername,
9105
+ draftAvatarFile,
9106
+ onDraftAvatarChange: handleDraftAvatarChange,
9107
+ draftAvatarPreview,
9108
+ avatarError: avatarTypeError
9109
+ }
9110
+ ),
9111
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
9112
+ AccountsWalletsTab,
9113
+ {
9114
+ socialAccounts: resolvedSocialAccounts,
9115
+ wallets: resolvedWallets,
9116
+ email: resolvedEmail,
9117
+ onConnectTwitter: providerActionMap.twitter.connect,
9118
+ onDisconnectTwitter: providerActionMap.twitter.disconnect,
9119
+ onConnectGoogle: providerActionMap.google.connect,
9120
+ onDisconnectGoogle: providerActionMap.google.disconnect,
9121
+ onConnectApple: providerActionMap.apple.connect,
9122
+ onDisconnectApple: providerActionMap.apple.disconnect,
9123
+ onDisconnectWallet: (wallet) => {
9124
+ void handleDisconnectWallet(wallet);
9125
+ },
9126
+ onConnectEmail: providerActionMap.email.connect
9127
+ }
9128
+ )
9129
+ ] }) : null,
9130
+ activeTab === PROFILE_TAB_KEYS.TRADING_ACCESS ? /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(TradingAccessTab, { venueAccounts: user == null ? void 0 : user.venueAccounts, onKycError }) : null
8890
9131
  ] })
8891
9132
  ] }) }),
8892
- /* @__PURE__ */ (0, import_jsx_runtime123.jsxs)(Modal.Footer, { classNames: { root: "agg-profile-modal-footer" }, children: [
8893
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(Button, { variant: "secondary", size: "large", onClick: handleCancel, className: "min-w-[120px]", children: "Cancel" }),
8894
- /* @__PURE__ */ (0, import_jsx_runtime123.jsx)(
9133
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsxs)(Modal.Footer, { classNames: { root: "agg-profile-modal-footer" }, children: [
9134
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(Button, { variant: "secondary", size: "large", onClick: handleCancel, className: "min-w-[120px]", children: "Cancel" }),
9135
+ /* @__PURE__ */ (0, import_jsx_runtime128.jsx)(
8895
9136
  Button,
8896
9137
  {
8897
9138
  variant: "primary",
@@ -8899,7 +9140,7 @@ var ProfileModal = ({
8899
9140
  disabled: !hasChanges,
8900
9141
  isLoading: isSaving,
8901
9142
  onClick: handleSave,
8902
- children: "Save Changes"
9143
+ children: "Save changes"
8903
9144
  }
8904
9145
  )
8905
9146
  ] })
@@ -8912,7 +9153,7 @@ ProfileModal.displayName = "ProfileModal";
8912
9153
  // src/geo-block-modal/index.tsx
8913
9154
  var import_hooks41 = require("@agg-build/hooks");
8914
9155
  var import_react19 = require("react");
8915
- var import_jsx_runtime124 = require("react/jsx-runtime");
9156
+ var import_jsx_runtime129 = require("react/jsx-runtime");
8916
9157
  var GeoBlockModal = ({
8917
9158
  open,
8918
9159
  onOpenChange,
@@ -8924,19 +9165,19 @@ var GeoBlockModal = ({
8924
9165
  onConfirm == null ? void 0 : onConfirm();
8925
9166
  onOpenChange(false);
8926
9167
  }, [onConfirm, onOpenChange]);
8927
- return /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
9168
+ return /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
8928
9169
  Modal,
8929
9170
  {
8930
9171
  open,
8931
9172
  onOpenChange,
8932
9173
  "aria-label": labels.trading.geoBlockModalAriaLabel,
8933
- children: /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)(
9174
+ children: /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)(
8934
9175
  Modal.Container,
8935
9176
  {
8936
9177
  maxWidth: "480px",
8937
9178
  classNames: { container: cn("!rounded-agg-2xl", classNames == null ? void 0 : classNames.container) },
8938
9179
  children: [
8939
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
9180
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
8940
9181
  Modal.Header,
8941
9182
  {
8942
9183
  title: "",
@@ -8948,19 +9189,19 @@ var GeoBlockModal = ({
8948
9189
  }
8949
9190
  }
8950
9191
  ),
8951
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(Modal.Body, { classNames: { root: cn("!px-10 !pt-0 !pb-12", classNames == null ? void 0 : classNames.body) }, children: /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
8952
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
9192
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(Modal.Body, { classNames: { root: cn("!px-10 !pt-0 !pb-12", classNames == null ? void 0 : classNames.body) }, children: /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
9193
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
8953
9194
  Icon,
8954
9195
  {
8955
9196
  name: "internet-security",
8956
9197
  className: "h-[60px] w-[60px] text-agg-muted-foreground"
8957
9198
  }
8958
9199
  ),
8959
- /* @__PURE__ */ (0, import_jsx_runtime124.jsxs)("div", { className: "flex flex-col items-center gap-3 text-center", children: [
8960
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("h2", { className: "text-agg-2xl font-agg-bold leading-agg-8 text-agg-foreground", children: labels.trading.geoBlockModalTitle }),
8961
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)("p", { className: "text-agg-base font-agg-normal leading-agg-6 text-agg-foreground", children: labels.trading.geoBlockModalDescription })
9200
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsxs)("div", { className: "flex flex-col items-center gap-3 text-center", children: [
9201
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("h2", { className: "text-agg-2xl font-agg-bold leading-agg-8 text-agg-foreground", children: labels.trading.geoBlockModalTitle }),
9202
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("p", { className: "text-agg-base font-agg-normal leading-agg-6 text-agg-foreground", children: labels.trading.geoBlockModalDescription })
8962
9203
  ] }),
8963
- /* @__PURE__ */ (0, import_jsx_runtime124.jsx)(
9204
+ /* @__PURE__ */ (0, import_jsx_runtime129.jsx)(
8964
9205
  Button,
8965
9206
  {
8966
9207
  variant: "secondary",
@@ -8981,7 +9222,7 @@ GeoBlockModal.displayName = "GeoBlockModal";
8981
9222
 
8982
9223
  // src/geo-block-banner/index.tsx
8983
9224
  var import_hooks42 = require("@agg-build/hooks");
8984
- var import_jsx_runtime125 = require("react/jsx-runtime");
9225
+ var import_jsx_runtime130 = require("react/jsx-runtime");
8985
9226
  var GeoBlockBanner = ({
8986
9227
  venue,
8987
9228
  termsUrl = AGG_TERMS_OF_SERVICE_URL,
@@ -8989,18 +9230,18 @@ var GeoBlockBanner = ({
8989
9230
  }) => {
8990
9231
  const labels = (0, import_hooks42.useLabels)();
8991
9232
  const message = venue ? labels.trading.geoBlockVenueMessage(venue) : labels.trading.geoBlockGenericMessage;
8992
- return /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)(
9233
+ return /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)(
8993
9234
  "div",
8994
9235
  {
8995
9236
  className: cn("flex items-center gap-5 rounded-agg-lg bg-agg-secondary-hover p-3", className),
8996
9237
  role: "status",
8997
9238
  children: [
8998
- /* @__PURE__ */ (0, import_jsx_runtime125.jsxs)("p", { className: "min-w-0 flex-1 text-agg-xs leading-agg-4 text-agg-foreground", children: [
9239
+ /* @__PURE__ */ (0, import_jsx_runtime130.jsxs)("p", { className: "min-w-0 flex-1 text-agg-xs leading-agg-4 text-agg-foreground", children: [
8999
9240
  message,
9000
- /* @__PURE__ */ (0, import_jsx_runtime125.jsx)("a", { href: termsUrl, className: "underline", target: "_blank", rel: "noreferrer noopener", children: labels.trading.geoBlockTermsLink }),
9241
+ /* @__PURE__ */ (0, import_jsx_runtime130.jsx)("a", { href: termsUrl, className: "underline", target: "_blank", rel: "noreferrer noopener", children: labels.trading.geoBlockTermsLink }),
9001
9242
  labels.trading.geoBlockMessageSuffix
9002
9243
  ] }),
9003
- /* @__PURE__ */ (0, import_jsx_runtime125.jsx)(Icon, { name: "internet-security", className: "h-6 w-6 shrink-0 text-agg-muted-foreground" })
9244
+ /* @__PURE__ */ (0, import_jsx_runtime130.jsx)(Icon, { name: "internet-security", className: "h-6 w-6 shrink-0 text-agg-muted-foreground" })
9004
9245
  ]
9005
9246
  }
9006
9247
  );