@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/trading.js CHANGED
@@ -3713,11 +3713,142 @@ var SolanaIcon = (_a) => {
3713
3713
  };
3714
3714
  SolanaIcon.displayName = "SolanaIcon";
3715
3715
 
3716
- // src/primitives/icon/svg/sparkles-filled.tsx
3716
+ // src/primitives/icon/svg/sort-end-date.tsx
3717
3717
  var import_jsx_runtime84 = require("react/jsx-runtime");
3718
- var SparklesFilledIcon = (_a) => {
3718
+ var SortEndDateIcon = (_a) => {
3719
3719
  var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
3720
3720
  return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
3721
+ "svg",
3722
+ __spreadProps(__spreadValues(__spreadValues({
3723
+ viewBox: "0 0 16 16",
3724
+ className,
3725
+ fill: "none"
3726
+ }, getIconA11yProps(title2)), props), {
3727
+ children: [
3728
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("title", { children: title2 }) : null,
3729
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("g", { clipPath: "url(#sort-end-date-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3730
+ "path",
3731
+ {
3732
+ 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",
3733
+ fill: "currentColor"
3734
+ }
3735
+ ) }),
3736
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("clipPath", { id: "sort-end-date-clip", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
3737
+ ]
3738
+ })
3739
+ );
3740
+ };
3741
+ SortEndDateIcon.displayName = "SortEndDateIcon";
3742
+
3743
+ // src/primitives/icon/svg/sort-top-arbitrage.tsx
3744
+ var import_jsx_runtime85 = require("react/jsx-runtime");
3745
+ var SortTopArbitrageIcon = (_a) => {
3746
+ var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
3747
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
3748
+ "svg",
3749
+ __spreadProps(__spreadValues(__spreadValues({
3750
+ viewBox: "0 0 16 16",
3751
+ className,
3752
+ fill: "none"
3753
+ }, getIconA11yProps(title2)), props), {
3754
+ children: [
3755
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("title", { children: title2 }) : null,
3756
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("g", { clipPath: "url(#sort-top-arbitrage-clip)", children: [
3757
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3758
+ "path",
3759
+ {
3760
+ 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",
3761
+ fill: "currentColor"
3762
+ }
3763
+ ),
3764
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3765
+ "path",
3766
+ {
3767
+ 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",
3768
+ fill: "currentColor"
3769
+ }
3770
+ ),
3771
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3772
+ "path",
3773
+ {
3774
+ 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",
3775
+ fill: "currentColor"
3776
+ }
3777
+ ),
3778
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3779
+ "path",
3780
+ {
3781
+ 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",
3782
+ fill: "currentColor"
3783
+ }
3784
+ )
3785
+ ] }),
3786
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("clipPath", { id: "sort-top-arbitrage-clip", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
3787
+ ]
3788
+ })
3789
+ );
3790
+ };
3791
+ SortTopArbitrageIcon.displayName = "SortTopArbitrageIcon";
3792
+
3793
+ // src/primitives/icon/svg/sort-volume-24hr.tsx
3794
+ var import_jsx_runtime86 = require("react/jsx-runtime");
3795
+ var SortVolume24hrIcon = (_a) => {
3796
+ var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
3797
+ return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
3798
+ "svg",
3799
+ __spreadProps(__spreadValues(__spreadValues({
3800
+ viewBox: "0 0 16 16",
3801
+ className,
3802
+ fill: "none"
3803
+ }, getIconA11yProps(title2)), props), {
3804
+ children: [
3805
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("title", { children: title2 }) : null,
3806
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("g", { clipPath: "url(#sort-volume-24hr-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
3807
+ "path",
3808
+ {
3809
+ 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",
3810
+ fill: "currentColor"
3811
+ }
3812
+ ) }),
3813
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("clipPath", { id: "sort-volume-24hr-clip", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
3814
+ ]
3815
+ })
3816
+ );
3817
+ };
3818
+ SortVolume24hrIcon.displayName = "SortVolume24hrIcon";
3819
+
3820
+ // src/primitives/icon/svg/sort-volume.tsx
3821
+ var import_jsx_runtime87 = require("react/jsx-runtime");
3822
+ var SortVolumeIcon = (_a) => {
3823
+ var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
3824
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
3825
+ "svg",
3826
+ __spreadProps(__spreadValues(__spreadValues({
3827
+ viewBox: "0 0 16 16",
3828
+ className,
3829
+ fill: "none"
3830
+ }, getIconA11yProps(title2)), props), {
3831
+ children: [
3832
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("title", { children: title2 }) : null,
3833
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("g", { clipPath: "url(#sort-volume-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3834
+ "path",
3835
+ {
3836
+ 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",
3837
+ fill: "currentColor"
3838
+ }
3839
+ ) }),
3840
+ /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("clipPath", { id: "sort-volume-clip", children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
3841
+ ]
3842
+ })
3843
+ );
3844
+ };
3845
+ SortVolumeIcon.displayName = "SortVolumeIcon";
3846
+
3847
+ // src/primitives/icon/svg/sparkles-filled.tsx
3848
+ var import_jsx_runtime88 = require("react/jsx-runtime");
3849
+ var SparklesFilledIcon = (_a) => {
3850
+ var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
3851
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
3721
3852
  "svg",
3722
3853
  __spreadProps(__spreadValues(__spreadValues({
3723
3854
  xmlns: "http://www.w3.org/2000/svg",
@@ -3728,15 +3859,15 @@ var SparklesFilledIcon = (_a) => {
3728
3859
  className
3729
3860
  }, getIconA11yProps(title2)), props), {
3730
3861
  children: [
3731
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("g", { clipPath: "url(#clip0_2028_8371)", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
3862
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("g", { clipPath: "url(#clip0_2028_8371)", children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
3732
3863
  "path",
3733
3864
  {
3734
3865
  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",
3735
3866
  fill: "currentColor"
3736
3867
  }
3737
3868
  ) }),
3738
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("defs", { children: [
3739
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
3869
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("defs", { children: [
3870
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
3740
3871
  "linearGradient",
3741
3872
  {
3742
3873
  id: "paint0_linear_2028_8371",
@@ -3746,12 +3877,12 @@ var SparklesFilledIcon = (_a) => {
3746
3877
  y2: "7.99997",
3747
3878
  gradientUnits: "userSpaceOnUse",
3748
3879
  children: [
3749
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("stop", { stopColor: "currentColor" }),
3750
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("stop", { offset: "1", stopColor: "currentColor" })
3880
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("stop", { stopColor: "currentColor" }),
3881
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("stop", { offset: "1", stopColor: "currentColor" })
3751
3882
  ]
3752
3883
  }
3753
3884
  ),
3754
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("clipPath", { id: "clip0_2028_8371", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("rect", { width: "16", height: "16", fill: "white" }) })
3885
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("clipPath", { id: "clip0_2028_8371", children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("rect", { width: "16", height: "16", fill: "white" }) })
3755
3886
  ] })
3756
3887
  ]
3757
3888
  })
@@ -3760,10 +3891,10 @@ var SparklesFilledIcon = (_a) => {
3760
3891
  SparklesFilledIcon.displayName = "SparklesFilledIcon";
3761
3892
 
3762
3893
  // src/primitives/icon/svg/spinner.tsx
3763
- var import_jsx_runtime85 = require("react/jsx-runtime");
3894
+ var import_jsx_runtime89 = require("react/jsx-runtime");
3764
3895
  var SpinnerIcon = (_a) => {
3765
3896
  var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
3766
- return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
3897
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
3767
3898
  "svg",
3768
3899
  __spreadProps(__spreadValues(__spreadValues({
3769
3900
  width: "26",
@@ -3774,8 +3905,8 @@ var SpinnerIcon = (_a) => {
3774
3905
  className
3775
3906
  }, getIconA11yProps(title2)), props), {
3776
3907
  children: [
3777
- title2 ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("title", { children: title2 }) : null,
3778
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
3908
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("title", { children: title2 }) : null,
3909
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
3779
3910
  "path",
3780
3911
  {
3781
3912
  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",
@@ -3791,10 +3922,10 @@ var SpinnerIcon = (_a) => {
3791
3922
  SpinnerIcon.displayName = "SpinnerIcon";
3792
3923
 
3793
3924
  // src/primitives/icon/svg/stay-in-control.tsx
3794
- var import_jsx_runtime86 = require("react/jsx-runtime");
3925
+ var import_jsx_runtime90 = require("react/jsx-runtime");
3795
3926
  var StayInControlIcon = (_a) => {
3796
3927
  var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
3797
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
3928
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
3798
3929
  "svg",
3799
3930
  __spreadProps(__spreadValues(__spreadValues({
3800
3931
  width: "28",
@@ -3805,16 +3936,16 @@ var StayInControlIcon = (_a) => {
3805
3936
  className
3806
3937
  }, getIconA11yProps(title2)), props), {
3807
3938
  children: [
3808
- title2 ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("title", { children: title2 }) : null,
3809
- /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("g", { clipPath: "url(#clip0_stay_in_control)", children: [
3810
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
3939
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("title", { children: title2 }) : null,
3940
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("g", { clipPath: "url(#clip0_stay_in_control)", children: [
3941
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3811
3942
  "path",
3812
3943
  {
3813
3944
  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",
3814
3945
  fill: "currentColor"
3815
3946
  }
3816
3947
  ),
3817
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
3948
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
3818
3949
  "path",
3819
3950
  {
3820
3951
  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",
@@ -3822,7 +3953,7 @@ var StayInControlIcon = (_a) => {
3822
3953
  }
3823
3954
  )
3824
3955
  ] }),
3825
- /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("clipPath", { id: "clip0_stay_in_control", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("rect", { width: "28", height: "28", fill: "white" }) }) })
3956
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("clipPath", { id: "clip0_stay_in_control", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("rect", { width: "28", height: "28", fill: "white" }) }) })
3826
3957
  ]
3827
3958
  })
3828
3959
  );
@@ -3830,10 +3961,10 @@ var StayInControlIcon = (_a) => {
3830
3961
  StayInControlIcon.displayName = "StayInControlIcon";
3831
3962
 
3832
3963
  // src/primitives/icon/svg/success-check.tsx
3833
- var import_jsx_runtime87 = require("react/jsx-runtime");
3964
+ var import_jsx_runtime91 = require("react/jsx-runtime");
3834
3965
  var SuccessCheckIcon = (_a) => {
3835
3966
  var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
3836
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
3967
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
3837
3968
  "svg",
3838
3969
  __spreadProps(__spreadValues(__spreadValues({
3839
3970
  width: "24",
@@ -3844,8 +3975,8 @@ var SuccessCheckIcon = (_a) => {
3844
3975
  className
3845
3976
  }, getIconA11yProps(title2)), props), {
3846
3977
  children: [
3847
- title2 ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("title", { children: title2 }) : null,
3848
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
3978
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("title", { children: title2 }) : null,
3979
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
3849
3980
  "path",
3850
3981
  {
3851
3982
  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",
@@ -3859,10 +3990,10 @@ var SuccessCheckIcon = (_a) => {
3859
3990
  SuccessCheckIcon.displayName = "SuccessCheckIcon";
3860
3991
 
3861
3992
  // src/primitives/icon/svg/telegram.tsx
3862
- var import_jsx_runtime88 = require("react/jsx-runtime");
3993
+ var import_jsx_runtime92 = require("react/jsx-runtime");
3863
3994
  var TelegramIcon = (_a) => {
3864
3995
  var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
3865
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
3996
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
3866
3997
  "svg",
3867
3998
  __spreadProps(__spreadValues(__spreadValues({
3868
3999
  viewBox: "0 0 20 20",
@@ -3870,8 +4001,8 @@ var TelegramIcon = (_a) => {
3870
4001
  fill: "none"
3871
4002
  }, getIconA11yProps(title2)), props), {
3872
4003
  children: [
3873
- title2 ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("title", { children: title2 }) : null,
3874
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("g", { clipPath: "url(#clip0_telegram)", children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
4004
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("title", { children: title2 }) : null,
4005
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("g", { clipPath: "url(#clip0_telegram)", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
3875
4006
  "path",
3876
4007
  {
3877
4008
  fillRule: "evenodd",
@@ -3880,7 +4011,7 @@ var TelegramIcon = (_a) => {
3880
4011
  fill: "currentColor"
3881
4012
  }
3882
4013
  ) }),
3883
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("clipPath", { id: "clip0_telegram", children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("rect", { width: "20", height: "20", fill: "white" }) }) })
4014
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("clipPath", { id: "clip0_telegram", children: /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("rect", { width: "20", height: "20", fill: "white" }) }) })
3884
4015
  ]
3885
4016
  })
3886
4017
  );
@@ -3888,10 +4019,10 @@ var TelegramIcon = (_a) => {
3888
4019
  TelegramIcon.displayName = "TelegramIcon";
3889
4020
 
3890
4021
  // src/primitives/icon/svg/triangle-down.tsx
3891
- var import_jsx_runtime89 = require("react/jsx-runtime");
4022
+ var import_jsx_runtime93 = require("react/jsx-runtime");
3892
4023
  var TriangleDownIcon = (_a) => {
3893
4024
  var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
3894
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
4025
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
3895
4026
  "svg",
3896
4027
  __spreadProps(__spreadValues(__spreadValues({
3897
4028
  viewBox: "0 0 8 8",
@@ -3899,16 +4030,16 @@ var TriangleDownIcon = (_a) => {
3899
4030
  fill: "none"
3900
4031
  }, getIconA11yProps(title2)), props), {
3901
4032
  children: [
3902
- title2 ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("title", { children: title2 }) : null,
3903
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("g", { transform: "scale(1,-1) translate(0,-8)", clipPath: "url(#triangle_up)", children: [
3904
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4033
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("title", { children: title2 }) : null,
4034
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("g", { transform: "scale(1,-1) translate(0,-8)", clipPath: "url(#triangle_up)", children: [
4035
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
3905
4036
  "path",
3906
4037
  {
3907
4038
  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",
3908
4039
  fill: "currentColor"
3909
4040
  }
3910
4041
  ),
3911
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
4042
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
3912
4043
  "path",
3913
4044
  {
3914
4045
  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",
@@ -3916,7 +4047,7 @@ var TriangleDownIcon = (_a) => {
3916
4047
  }
3917
4048
  )
3918
4049
  ] }),
3919
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("clipPath", { id: "triangle_up", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("rect", { width: "8", height: "8", fill: "white" }) }) })
4050
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("clipPath", { id: "triangle_up", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("rect", { width: "8", height: "8", fill: "white" }) }) })
3920
4051
  ]
3921
4052
  })
3922
4053
  );
@@ -3924,10 +4055,10 @@ var TriangleDownIcon = (_a) => {
3924
4055
  TriangleDownIcon.displayName = "TriangleDownIcon";
3925
4056
 
3926
4057
  // src/primitives/icon/svg/triangle-up.tsx
3927
- var import_jsx_runtime90 = require("react/jsx-runtime");
4058
+ var import_jsx_runtime94 = require("react/jsx-runtime");
3928
4059
  var TriangleUpIcon = (_a) => {
3929
4060
  var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
3930
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
4061
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
3931
4062
  "svg",
3932
4063
  __spreadProps(__spreadValues(__spreadValues({
3933
4064
  viewBox: "0 0 8 8",
@@ -3935,16 +4066,16 @@ var TriangleUpIcon = (_a) => {
3935
4066
  fill: "none"
3936
4067
  }, getIconA11yProps(title2)), props), {
3937
4068
  children: [
3938
- title2 ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("title", { children: title2 }) : null,
3939
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("g", { clipPath: "url(#triangle_up)", children: [
3940
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4069
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("title", { children: title2 }) : null,
4070
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("g", { clipPath: "url(#triangle_up)", children: [
4071
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
3941
4072
  "path",
3942
4073
  {
3943
4074
  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",
3944
4075
  fill: "currentColor"
3945
4076
  }
3946
4077
  ),
3947
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
4078
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
3948
4079
  "path",
3949
4080
  {
3950
4081
  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",
@@ -3952,7 +4083,7 @@ var TriangleUpIcon = (_a) => {
3952
4083
  }
3953
4084
  )
3954
4085
  ] }),
3955
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("clipPath", { id: "triangle_up", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("rect", { width: "8", height: "8", fill: "white" }) }) })
4086
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("clipPath", { id: "triangle_up", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("rect", { width: "8", height: "8", fill: "white" }) }) })
3956
4087
  ]
3957
4088
  })
3958
4089
  );
@@ -3960,10 +4091,10 @@ var TriangleUpIcon = (_a) => {
3960
4091
  TriangleUpIcon.displayName = "TriangleUpIcon";
3961
4092
 
3962
4093
  // src/primitives/icon/svg/triangle-up-filled.tsx
3963
- var import_jsx_runtime91 = require("react/jsx-runtime");
4094
+ var import_jsx_runtime95 = require("react/jsx-runtime");
3964
4095
  var TriangleUpFilledIcon = (_a) => {
3965
4096
  var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
3966
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
4097
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
3967
4098
  "svg",
3968
4099
  __spreadProps(__spreadValues(__spreadValues({
3969
4100
  viewBox: "0 0 8 8",
@@ -3971,8 +4102,8 @@ var TriangleUpFilledIcon = (_a) => {
3971
4102
  fill: "none"
3972
4103
  }, getIconA11yProps(title2)), props), {
3973
4104
  children: [
3974
- title2 ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("title", { children: title2 }) : null,
3975
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
4105
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("title", { children: title2 }) : null,
4106
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
3976
4107
  "path",
3977
4108
  {
3978
4109
  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",
@@ -3986,10 +4117,10 @@ var TriangleUpFilledIcon = (_a) => {
3986
4117
  TriangleUpFilledIcon.displayName = "TriangleUpFilledIcon";
3987
4118
 
3988
4119
  // src/primitives/icon/svg/twitter.tsx
3989
- var import_jsx_runtime92 = require("react/jsx-runtime");
4120
+ var import_jsx_runtime96 = require("react/jsx-runtime");
3990
4121
  var TwitterIcon = (_a) => {
3991
4122
  var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
3992
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
4123
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
3993
4124
  "svg",
3994
4125
  __spreadProps(__spreadValues(__spreadValues({
3995
4126
  viewBox: "0 0 24 24",
@@ -3997,8 +4128,8 @@ var TwitterIcon = (_a) => {
3997
4128
  fill: "none"
3998
4129
  }, getIconA11yProps(title2)), props), {
3999
4130
  children: [
4000
- title2 ? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("title", { children: title2 }) : null,
4001
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
4131
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("title", { children: title2 }) : null,
4132
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
4002
4133
  "path",
4003
4134
  {
4004
4135
  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",
@@ -4012,10 +4143,10 @@ var TwitterIcon = (_a) => {
4012
4143
  TwitterIcon.displayName = "TwitterIcon";
4013
4144
 
4014
4145
  // src/primitives/icon/svg/upload.tsx
4015
- var import_jsx_runtime93 = require("react/jsx-runtime");
4146
+ var import_jsx_runtime97 = require("react/jsx-runtime");
4016
4147
  var UploadIcon = (_a) => {
4017
4148
  var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
4018
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
4149
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
4019
4150
  "svg",
4020
4151
  __spreadProps(__spreadValues(__spreadValues({
4021
4152
  viewBox: "0 0 16 16",
@@ -4023,16 +4154,16 @@ var UploadIcon = (_a) => {
4023
4154
  fill: "none"
4024
4155
  }, getIconA11yProps(title2)), props), {
4025
4156
  children: [
4026
- title2 ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("title", { children: title2 }) : null,
4027
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("g", { clipPath: "url(#upload-clip)", children: [
4028
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
4157
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("title", { children: title2 }) : null,
4158
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("g", { clipPath: "url(#upload-clip)", children: [
4159
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
4029
4160
  "path",
4030
4161
  {
4031
4162
  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",
4032
4163
  fill: "currentColor"
4033
4164
  }
4034
4165
  ),
4035
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
4166
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
4036
4167
  "path",
4037
4168
  {
4038
4169
  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",
@@ -4040,7 +4171,7 @@ var UploadIcon = (_a) => {
4040
4171
  }
4041
4172
  )
4042
4173
  ] }),
4043
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("clipPath", { id: "upload-clip", children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
4174
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("clipPath", { id: "upload-clip", children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("rect", { width: "16", height: "16", fill: "white" }) }) })
4044
4175
  ]
4045
4176
  })
4046
4177
  );
@@ -4048,10 +4179,10 @@ var UploadIcon = (_a) => {
4048
4179
  UploadIcon.displayName = "UploadIcon";
4049
4180
 
4050
4181
  // src/primitives/icon/svg/user-trust.tsx
4051
- var import_jsx_runtime94 = require("react/jsx-runtime");
4182
+ var import_jsx_runtime98 = require("react/jsx-runtime");
4052
4183
  var UserTrustIcon = (_a) => {
4053
4184
  var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
4054
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
4185
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
4055
4186
  "svg",
4056
4187
  __spreadProps(__spreadValues(__spreadValues({
4057
4188
  xmlns: "http://www.w3.org/2000/svg",
@@ -4060,15 +4191,15 @@ var UserTrustIcon = (_a) => {
4060
4191
  className
4061
4192
  }, getIconA11yProps(title2)), props), {
4062
4193
  children: [
4063
- title2 ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("title", { children: title2 }) : null,
4064
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("g", { clipPath: "url(#clip0_user_trust)", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
4194
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("title", { children: title2 }) : null,
4195
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("g", { clipPath: "url(#clip0_user_trust)", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
4065
4196
  "path",
4066
4197
  {
4067
4198
  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",
4068
4199
  fill: "currentColor"
4069
4200
  }
4070
4201
  ) }),
4071
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("clipPath", { id: "clip0_user_trust", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("rect", { width: "60", height: "60", fill: "white" }) }) })
4202
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("clipPath", { id: "clip0_user_trust", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("rect", { width: "60", height: "60", fill: "white" }) }) })
4072
4203
  ]
4073
4204
  })
4074
4205
  );
@@ -4076,10 +4207,10 @@ var UserTrustIcon = (_a) => {
4076
4207
  UserTrustIcon.displayName = "UserTrustIcon";
4077
4208
 
4078
4209
  // src/primitives/icon/svg/usdc.tsx
4079
- var import_jsx_runtime95 = require("react/jsx-runtime");
4210
+ var import_jsx_runtime99 = require("react/jsx-runtime");
4080
4211
  var UsdcIcon = (_a) => {
4081
4212
  var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
4082
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
4213
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
4083
4214
  "svg",
4084
4215
  __spreadProps(__spreadValues(__spreadValues({
4085
4216
  viewBox: "0 0 32 32",
@@ -4087,16 +4218,16 @@ var UsdcIcon = (_a) => {
4087
4218
  fill: "none"
4088
4219
  }, getIconA11yProps(title2)), props), {
4089
4220
  children: [
4090
- title2 ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("title", { children: title2 }) : null,
4091
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("circle", { cx: "16", cy: "16", r: "16", fill: "#2775CA" }),
4092
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
4221
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("title", { children: title2 }) : null,
4222
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("circle", { cx: "16", cy: "16", r: "16", fill: "#2775CA" }),
4223
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
4093
4224
  "path",
4094
4225
  {
4095
4226
  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",
4096
4227
  fill: "#fff"
4097
4228
  }
4098
4229
  ),
4099
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
4230
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
4100
4231
  "path",
4101
4232
  {
4102
4233
  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",
@@ -4110,10 +4241,10 @@ var UsdcIcon = (_a) => {
4110
4241
  UsdcIcon.displayName = "UsdcIcon";
4111
4242
 
4112
4243
  // src/primitives/icon/svg/wallet.tsx
4113
- var import_jsx_runtime96 = require("react/jsx-runtime");
4244
+ var import_jsx_runtime100 = require("react/jsx-runtime");
4114
4245
  var WalletIcon = (_a) => {
4115
4246
  var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
4116
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
4247
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
4117
4248
  "svg",
4118
4249
  __spreadProps(__spreadValues(__spreadValues({
4119
4250
  viewBox: "0 0 24 24",
@@ -4121,8 +4252,8 @@ var WalletIcon = (_a) => {
4121
4252
  fill: "none"
4122
4253
  }, getIconA11yProps(title2)), props), {
4123
4254
  children: [
4124
- title2 ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("title", { children: title2 }) : null,
4125
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
4255
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("title", { children: title2 }) : null,
4256
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
4126
4257
  "path",
4127
4258
  {
4128
4259
  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",
@@ -4136,10 +4267,10 @@ var WalletIcon = (_a) => {
4136
4267
  WalletIcon.displayName = "WalletIcon";
4137
4268
 
4138
4269
  // src/primitives/icon/svg/wallet-avatar.tsx
4139
- var import_jsx_runtime97 = require("react/jsx-runtime");
4270
+ var import_jsx_runtime101 = require("react/jsx-runtime");
4140
4271
  function WalletAvatarIcon(_a) {
4141
4272
  var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
4142
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
4273
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
4143
4274
  "svg",
4144
4275
  __spreadProps(__spreadValues(__spreadValues({
4145
4276
  fill: "none",
@@ -4147,9 +4278,9 @@ function WalletAvatarIcon(_a) {
4147
4278
  viewBox: "0 0 16 16"
4148
4279
  }, getIconA11yProps(title2)), props), {
4149
4280
  children: [
4150
- title2 ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("title", { children: title2 }) : null,
4151
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("circle", { cx: "8", cy: "5.25", r: "2.25", fill: "currentColor" }),
4152
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("path", { d: "M3.75 12.75a4.25 4.25 0 0 1 8.5 0v.25h-8.5v-.25Z", fill: "currentColor" })
4281
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("title", { children: title2 }) : null,
4282
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("circle", { cx: "8", cy: "5.25", r: "2.25", fill: "currentColor" }),
4283
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("path", { d: "M3.75 12.75a4.25 4.25 0 0 1 8.5 0v.25h-8.5v-.25Z", fill: "currentColor" })
4153
4284
  ]
4154
4285
  })
4155
4286
  );
@@ -4157,10 +4288,10 @@ function WalletAvatarIcon(_a) {
4157
4288
  WalletAvatarIcon.displayName = "WalletAvatarIcon";
4158
4289
 
4159
4290
  // src/primitives/icon/svg/wallet-filled.tsx
4160
- var import_jsx_runtime98 = require("react/jsx-runtime");
4291
+ var import_jsx_runtime102 = require("react/jsx-runtime");
4161
4292
  var WalletFilledIcon = (_a) => {
4162
4293
  var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
4163
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
4294
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
4164
4295
  "svg",
4165
4296
  __spreadProps(__spreadValues(__spreadValues({
4166
4297
  viewBox: "0 0 14 14",
@@ -4168,8 +4299,8 @@ var WalletFilledIcon = (_a) => {
4168
4299
  fill: "none"
4169
4300
  }, getIconA11yProps(title2)), props), {
4170
4301
  children: [
4171
- title2 ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("title", { children: title2 }) : null,
4172
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
4302
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("title", { children: title2 }) : null,
4303
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
4173
4304
  "path",
4174
4305
  {
4175
4306
  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",
@@ -4183,10 +4314,10 @@ var WalletFilledIcon = (_a) => {
4183
4314
  WalletFilledIcon.displayName = "WalletFilledIcon";
4184
4315
 
4185
4316
  // src/primitives/icon/svg/paper-plane.tsx
4186
- var import_jsx_runtime99 = require("react/jsx-runtime");
4317
+ var import_jsx_runtime103 = require("react/jsx-runtime");
4187
4318
  var PaperPlaneIcon = (_a) => {
4188
4319
  var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
4189
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
4320
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
4190
4321
  "svg",
4191
4322
  __spreadProps(__spreadValues(__spreadValues({
4192
4323
  viewBox: "0 0 24 24",
@@ -4194,15 +4325,15 @@ var PaperPlaneIcon = (_a) => {
4194
4325
  fill: "none"
4195
4326
  }, getIconA11yProps(title2)), props), {
4196
4327
  children: [
4197
- title2 ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("title", { children: title2 }) : null,
4198
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("g", { clipPath: "url(#paper-plane-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
4328
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("title", { children: title2 }) : null,
4329
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("g", { clipPath: "url(#paper-plane-clip)", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
4199
4330
  "path",
4200
4331
  {
4201
4332
  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",
4202
4333
  fill: "currentColor"
4203
4334
  }
4204
4335
  ) }),
4205
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("clipPath", { id: "paper-plane-clip", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("rect", { width: "24", height: "24", fill: "white" }) }) })
4336
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("clipPath", { id: "paper-plane-clip", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("rect", { width: "24", height: "24", fill: "white" }) }) })
4206
4337
  ]
4207
4338
  })
4208
4339
  );
@@ -4210,10 +4341,10 @@ var PaperPlaneIcon = (_a) => {
4210
4341
  PaperPlaneIcon.displayName = "PaperPlaneIcon";
4211
4342
 
4212
4343
  // src/primitives/icon/svg/warning.tsx
4213
- var import_jsx_runtime100 = require("react/jsx-runtime");
4344
+ var import_jsx_runtime104 = require("react/jsx-runtime");
4214
4345
  var WarningIcon = (_a) => {
4215
4346
  var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
4216
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
4347
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
4217
4348
  "svg",
4218
4349
  __spreadProps(__spreadValues(__spreadValues({
4219
4350
  width: "14",
@@ -4224,8 +4355,8 @@ var WarningIcon = (_a) => {
4224
4355
  className
4225
4356
  }, getIconA11yProps(title2)), props), {
4226
4357
  children: [
4227
- title2 ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("title", { children: title2 }) : null,
4228
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
4358
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("title", { children: title2 }) : null,
4359
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
4229
4360
  "path",
4230
4361
  {
4231
4362
  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",
@@ -4239,10 +4370,10 @@ var WarningIcon = (_a) => {
4239
4370
  WarningIcon.displayName = "WarningIcon";
4240
4371
 
4241
4372
  // src/primitives/icon/svg/warning-filled.tsx
4242
- var import_jsx_runtime101 = require("react/jsx-runtime");
4373
+ var import_jsx_runtime105 = require("react/jsx-runtime");
4243
4374
  var WarningFilledIcon = (_a) => {
4244
4375
  var _b = _a, { title: title2, className } = _b, props = __objRest(_b, ["title", "className"]);
4245
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
4376
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
4246
4377
  "svg",
4247
4378
  __spreadProps(__spreadValues(__spreadValues({
4248
4379
  viewBox: "0 0 16 16",
@@ -4250,8 +4381,8 @@ var WarningFilledIcon = (_a) => {
4250
4381
  fill: "none"
4251
4382
  }, getIconA11yProps(title2)), props), {
4252
4383
  children: [
4253
- title2 ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("title", { children: title2 }) : null,
4254
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
4384
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("title", { children: title2 }) : null,
4385
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
4255
4386
  "path",
4256
4387
  {
4257
4388
  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",
@@ -4324,6 +4455,10 @@ var iconRegistry = {
4324
4455
  search: SearchIcon,
4325
4456
  "shield-trust": ShieldTrustIcon,
4326
4457
  solana: SolanaIcon,
4458
+ "sort-end-date": SortEndDateIcon,
4459
+ "sort-top-arbitrage": SortTopArbitrageIcon,
4460
+ "sort-volume": SortVolumeIcon,
4461
+ "sort-volume-24hr": SortVolume24hrIcon,
4327
4462
  "sparkles-filled": SparklesFilledIcon,
4328
4463
  spinner: SpinnerIcon,
4329
4464
  "stay-in-control": StayInControlIcon,
@@ -4355,7 +4490,7 @@ var resolveIconStyle = (color, style) => {
4355
4490
  };
4356
4491
 
4357
4492
  // src/primitives/icon/index.tsx
4358
- var import_jsx_runtime102 = require("react/jsx-runtime");
4493
+ var import_jsx_runtime106 = require("react/jsx-runtime");
4359
4494
  var Icon = (_a) => {
4360
4495
  var _b = _a, {
4361
4496
  name,
@@ -4379,7 +4514,7 @@ var Icon = (_a) => {
4379
4514
  }
4380
4515
  const resolvedStyle = resolveIconStyle(color, style);
4381
4516
  const resolvedClassName = cn(iconSizeClasses[size], className);
4382
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
4517
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
4383
4518
  Component,
4384
4519
  __spreadValues({
4385
4520
  color,
@@ -4391,7 +4526,7 @@ var Icon = (_a) => {
4391
4526
  Icon.displayName = "Icon";
4392
4527
 
4393
4528
  // src/geo-block-banner/index.tsx
4394
- var import_jsx_runtime103 = require("react/jsx-runtime");
4529
+ var import_jsx_runtime107 = require("react/jsx-runtime");
4395
4530
  var GeoBlockBanner = ({
4396
4531
  venue,
4397
4532
  termsUrl = AGG_TERMS_OF_SERVICE_URL,
@@ -4399,18 +4534,18 @@ var GeoBlockBanner = ({
4399
4534
  }) => {
4400
4535
  const labels = (0, import_hooks20.useLabels)();
4401
4536
  const message = venue ? labels.trading.geoBlockVenueMessage(venue) : labels.trading.geoBlockGenericMessage;
4402
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
4537
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
4403
4538
  "div",
4404
4539
  {
4405
4540
  className: cn("flex items-center gap-5 rounded-agg-lg bg-agg-secondary-hover p-3", className),
4406
4541
  role: "status",
4407
4542
  children: [
4408
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("p", { className: "min-w-0 flex-1 text-agg-xs leading-agg-4 text-agg-foreground", children: [
4543
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("p", { className: "min-w-0 flex-1 text-agg-xs leading-agg-4 text-agg-foreground", children: [
4409
4544
  message,
4410
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("a", { href: termsUrl, className: "underline", target: "_blank", rel: "noreferrer noopener", children: labels.trading.geoBlockTermsLink }),
4545
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("a", { href: termsUrl, className: "underline", target: "_blank", rel: "noreferrer noopener", children: labels.trading.geoBlockTermsLink }),
4411
4546
  labels.trading.geoBlockMessageSuffix
4412
4547
  ] }),
4413
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Icon, { name: "internet-security", className: "h-6 w-6 shrink-0 text-agg-muted-foreground" })
4548
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Icon, { name: "internet-security", className: "h-6 w-6 shrink-0 text-agg-muted-foreground" })
4414
4549
  ]
4415
4550
  }
4416
4551
  );
@@ -4489,7 +4624,7 @@ var getButtonClassName = ({
4489
4624
  };
4490
4625
 
4491
4626
  // src/primitives/button/index.tsx
4492
- var import_jsx_runtime104 = require("react/jsx-runtime");
4627
+ var import_jsx_runtime108 = require("react/jsx-runtime");
4493
4628
  var Button = (_a) => {
4494
4629
  var _b = _a, {
4495
4630
  children,
@@ -4501,6 +4636,7 @@ var Button = (_a) => {
4501
4636
  suffix,
4502
4637
  type = "button",
4503
4638
  className,
4639
+ classNames,
4504
4640
  "aria-label": ariaLabel
4505
4641
  } = _b, other = __objRest(_b, [
4506
4642
  "children",
@@ -4512,22 +4648,28 @@ var Button = (_a) => {
4512
4648
  "suffix",
4513
4649
  "type",
4514
4650
  "className",
4651
+ "classNames",
4515
4652
  "aria-label"
4516
4653
  ]);
4517
4654
  const {
4518
4655
  features: { enableAnimations }
4519
4656
  } = (0, import_hooks21.useSdkUiConfig)();
4520
4657
  const isDisabled = resolveButtonIsDisabled({ disabled, isLoading });
4521
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
4658
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4522
4659
  "button",
4523
4660
  __spreadProps(__spreadValues({
4524
4661
  type,
4525
- className: getButtonClassName({ className, enableAnimations, size, variant }),
4662
+ className: getButtonClassName({
4663
+ className: cn(classNames == null ? void 0 : classNames.root, className),
4664
+ enableAnimations,
4665
+ size,
4666
+ variant
4667
+ }),
4526
4668
  disabled: isDisabled,
4527
4669
  "aria-busy": isLoading,
4528
4670
  "aria-label": ariaLabel
4529
4671
  }, other), {
4530
- children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
4672
+ children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4531
4673
  "span",
4532
4674
  {
4533
4675
  className: cn(
@@ -4538,12 +4680,16 @@ var Button = (_a) => {
4538
4680
  ),
4539
4681
  "aria-hidden": "true"
4540
4682
  }
4541
- ) : /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(import_jsx_runtime104.Fragment, { children: [
4683
+ ) : /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(import_jsx_runtime108.Fragment, { children: [
4542
4684
  prefix != null ? prefix : null,
4543
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
4685
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
4544
4686
  "span",
4545
4687
  {
4546
- className: cn("group/span-agg-button agg-button-label", "whitespace-nowrap truncate"),
4688
+ className: cn(
4689
+ "group/span-agg-button agg-button-label",
4690
+ "whitespace-nowrap truncate",
4691
+ classNames == null ? void 0 : classNames.label
4692
+ ),
4547
4693
  children
4548
4694
  }
4549
4695
  ),
@@ -4647,7 +4793,7 @@ var sanitizeCurrencyInputPastedValue = (input, parts, decimalPlaces) => {
4647
4793
  };
4648
4794
 
4649
4795
  // src/primitives/currency-input/index.tsx
4650
- var import_jsx_runtime105 = require("react/jsx-runtime");
4796
+ var import_jsx_runtime109 = require("react/jsx-runtime");
4651
4797
  var CurrencyInput = ({
4652
4798
  value,
4653
4799
  onChange,
@@ -4775,7 +4921,7 @@ var CurrencyInput = ({
4775
4921
  onChange == null ? void 0 : onChange(nextValue);
4776
4922
  onBlur == null ? void 0 : onBlur();
4777
4923
  };
4778
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
4924
+ return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
4779
4925
  "input",
4780
4926
  {
4781
4927
  ref: inputRef,
@@ -4823,7 +4969,7 @@ var resolveRemoteImageStatusFromSrc = (src) => {
4823
4969
  };
4824
4970
 
4825
4971
  // src/primitives/remote-image/index.tsx
4826
- var import_jsx_runtime106 = require("react/jsx-runtime");
4972
+ var import_jsx_runtime110 = require("react/jsx-runtime");
4827
4973
  var RemoteImage = ({
4828
4974
  src,
4829
4975
  alt,
@@ -4857,7 +5003,7 @@ var RemoteImage = ({
4857
5003
  setStatus("error");
4858
5004
  };
4859
5005
  const sizeStyle = width !== void 0 || height !== void 0 ? { width: width != null ? width : void 0, height: height != null ? height : void 0 } : void 0;
4860
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
5006
+ return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
4861
5007
  "div",
4862
5008
  {
4863
5009
  className: cn(containerClasses, classNames == null ? void 0 : classNames.root, className),
@@ -4874,14 +5020,14 @@ var RemoteImage = ({
4874
5020
  "aria-label": ariaLabel,
4875
5021
  title: title2,
4876
5022
  children: [
4877
- status === "loading" && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(SkeletonBlock, { className: cn(skeletonClasses, classNames == null ? void 0 : classNames.placeholder) }),
4878
- status === "error" && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5023
+ status === "loading" && /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(SkeletonBlock, { className: cn(skeletonClasses, classNames == null ? void 0 : classNames.placeholder) }),
5024
+ status === "error" && /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
4879
5025
  "div",
4880
5026
  {
4881
5027
  className: cn(placeholderClasses, classNames == null ? void 0 : classNames.placeholder),
4882
5028
  "aria-hidden": true,
4883
5029
  "aria-errormessage": "Image failed to load",
4884
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5030
+ children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
4885
5031
  Icon,
4886
5032
  {
4887
5033
  name: "image",
@@ -4892,7 +5038,7 @@ var RemoteImage = ({
4892
5038
  )
4893
5039
  }
4894
5040
  ),
4895
- isValidRemoteImageSrc(src) && status !== "error" && /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
5041
+ isValidRemoteImageSrc(src) && status !== "error" && /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
4896
5042
  "img",
4897
5043
  {
4898
5044
  src,
@@ -4931,7 +5077,7 @@ var resolveVenueLogoIsColor = ({
4931
5077
  };
4932
5078
 
4933
5079
  // src/primitives/venue-logo/index.tsx
4934
- var import_jsx_runtime107 = require("react/jsx-runtime");
5080
+ var import_jsx_runtime111 = require("react/jsx-runtime");
4935
5081
  var VenueLogo = ({
4936
5082
  venue,
4937
5083
  variant = "icon",
@@ -4957,7 +5103,7 @@ var VenueLogo = ({
4957
5103
  console.warn(`[AggUI] Unknown venue "${venue}" \u2014 using default logo`);
4958
5104
  }
4959
5105
  if (variant === "logo") {
4960
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
5106
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
4961
5107
  RemoteImage,
4962
5108
  {
4963
5109
  src: (_a = venueLogoUrlRegistry[venue]) != null ? _a : DEFAULT_VENUE_LOGO_URL,
@@ -4972,7 +5118,7 @@ var VenueLogo = ({
4972
5118
  isColor,
4973
5119
  isMonochromatic
4974
5120
  });
4975
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
5121
+ return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
4976
5122
  Component,
4977
5123
  {
4978
5124
  className: cn("group/agg-venue-logo", "shrink-0", sizeClass, className),
@@ -5030,7 +5176,7 @@ var resolveInlineAlertHasAction = ({
5030
5176
  };
5031
5177
 
5032
5178
  // src/primitives/inline-alert/index.tsx
5033
- var import_jsx_runtime108 = require("react/jsx-runtime");
5179
+ var import_jsx_runtime112 = require("react/jsx-runtime");
5034
5180
  var InlineAlert = ({
5035
5181
  tone = INLINE_ALERT_DEFAULT_TONE,
5036
5182
  variant,
@@ -5044,7 +5190,7 @@ var InlineAlert = ({
5044
5190
  const resolvedVariant = resolveInlineAlertVariant({ tone, variant });
5045
5191
  const hasAction = resolveInlineAlertHasAction({ actionLabel, onAction });
5046
5192
  const { ariaLive, role } = INLINE_ALERT_LIVE_REGION_CONFIG[tone];
5047
- return /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
5193
+ return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
5048
5194
  "div",
5049
5195
  {
5050
5196
  className: cn(
@@ -5056,7 +5202,7 @@ var InlineAlert = ({
5056
5202
  "aria-live": ariaLive,
5057
5203
  "aria-label": ariaLabel,
5058
5204
  children: [
5059
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
5205
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
5060
5206
  Icon,
5061
5207
  {
5062
5208
  name: INLINE_ALERT_TONE_ICON_NAME[tone],
@@ -5064,14 +5210,14 @@ var InlineAlert = ({
5064
5210
  "aria-hidden": "true"
5065
5211
  }
5066
5212
  ),
5067
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
5213
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
5068
5214
  "div",
5069
5215
  {
5070
5216
  className: cn(
5071
5217
  "min-w-0",
5072
5218
  resolvedVariant === "plain" && !hasAction ? "flex-none text-center" : "flex-1"
5073
5219
  ),
5074
- children: /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
5220
+ children: /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
5075
5221
  "div",
5076
5222
  {
5077
5223
  className: cn(
@@ -5080,14 +5226,14 @@ var InlineAlert = ({
5080
5226
  resolvedVariant === "plain" && !hasAction ? "items-center" : null
5081
5227
  ),
5082
5228
  children: [
5083
- title2 ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: title2 }) : null,
5084
- /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground wrap-break-word", children: message })
5229
+ title2 ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: title2 }) : null,
5230
+ /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground wrap-break-word", children: message })
5085
5231
  ]
5086
5232
  }
5087
5233
  )
5088
5234
  }
5089
5235
  ),
5090
- hasAction ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
5236
+ hasAction ? /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
5091
5237
  "button",
5092
5238
  {
5093
5239
  type: "button",
@@ -5125,7 +5271,7 @@ var resolveLoadingIconAriaLabel = ({
5125
5271
  };
5126
5272
 
5127
5273
  // src/primitives/loading-icon/index.tsx
5128
- var import_jsx_runtime109 = require("react/jsx-runtime");
5274
+ var import_jsx_runtime113 = require("react/jsx-runtime");
5129
5275
  var LoadingIcon = ({
5130
5276
  size = LOADING_ICON_DEFAULT_SIZE,
5131
5277
  variant = "default",
@@ -5136,7 +5282,7 @@ var LoadingIcon = ({
5136
5282
  const {
5137
5283
  features: { enableAnimations }
5138
5284
  } = (0, import_hooks25.useSdkUiConfig)();
5139
- return /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
5285
+ return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
5140
5286
  "span",
5141
5287
  {
5142
5288
  role: "status",
@@ -5149,7 +5295,7 @@ var LoadingIcon = ({
5149
5295
  "inline-grid place-items-center text-agg-primary will-change-transform",
5150
5296
  className
5151
5297
  ),
5152
- children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)("span", { className: "inline-grid place-items-center", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
5298
+ children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("span", { className: "inline-grid place-items-center", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
5153
5299
  "svg",
5154
5300
  {
5155
5301
  viewBox: LOADING_ICON_SVG_VIEW_BOX,
@@ -5157,8 +5303,8 @@ var LoadingIcon = ({
5157
5303
  "block",
5158
5304
  variant === "prominent" ? LOADING_ICON_PROMINENT_FRAME_CLASS : iconSizeClasses[size]
5159
5305
  ),
5160
- children: variant === "prominent" ? /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("g", { children: [
5161
- enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
5306
+ children: variant === "prominent" ? /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("g", { children: [
5307
+ enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
5162
5308
  "animateTransform",
5163
5309
  {
5164
5310
  attributeName: "transform",
@@ -5170,7 +5316,7 @@ var LoadingIcon = ({
5170
5316
  repeatCount: "indefinite"
5171
5317
  }
5172
5318
  ) : null,
5173
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
5319
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
5174
5320
  "circle",
5175
5321
  {
5176
5322
  cx: "22",
@@ -5184,8 +5330,8 @@ var LoadingIcon = ({
5184
5330
  strokeDasharray: LOADING_ICON_PROMINENT_DASHARRAY
5185
5331
  }
5186
5332
  )
5187
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("g", { children: [
5188
- enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
5333
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("g", { children: [
5334
+ enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
5189
5335
  "animateTransform",
5190
5336
  {
5191
5337
  attributeName: "transform",
@@ -5197,7 +5343,7 @@ var LoadingIcon = ({
5197
5343
  repeatCount: "indefinite"
5198
5344
  }
5199
5345
  ) : null,
5200
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
5346
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
5201
5347
  "circle",
5202
5348
  {
5203
5349
  cx: "22",
@@ -5209,8 +5355,8 @@ var LoadingIcon = ({
5209
5355
  strokeLinecap: "round",
5210
5356
  strokeDasharray: "60 100",
5211
5357
  strokeDashoffset: "0",
5212
- children: enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)(import_jsx_runtime109.Fragment, { children: [
5213
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
5358
+ children: enableAnimations ? /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(import_jsx_runtime113.Fragment, { children: [
5359
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
5214
5360
  "animate",
5215
5361
  {
5216
5362
  attributeName: "stroke-dasharray",
@@ -5219,7 +5365,7 @@ var LoadingIcon = ({
5219
5365
  repeatCount: "indefinite"
5220
5366
  }
5221
5367
  ),
5222
- /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
5368
+ /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
5223
5369
  "animate",
5224
5370
  {
5225
5371
  attributeName: "stroke-dashoffset",
@@ -5264,7 +5410,7 @@ var resolveModalCloseIcon = ({
5264
5410
  };
5265
5411
 
5266
5412
  // src/primitives/modal/index.tsx
5267
- var import_jsx_runtime110 = require("react/jsx-runtime");
5413
+ var import_jsx_runtime114 = require("react/jsx-runtime");
5268
5414
  var Modal = ({
5269
5415
  open,
5270
5416
  onOpenChange,
@@ -5272,7 +5418,7 @@ var Modal = ({
5272
5418
  "aria-label": _ariaLabel,
5273
5419
  "aria-labelledby": _ariaLabelledBy
5274
5420
  }) => {
5275
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(Dialog.Root, { open, onOpenChange, children });
5421
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(Dialog.Root, { open, onOpenChange, children });
5276
5422
  };
5277
5423
  var ModalContainer = ({
5278
5424
  children,
@@ -5287,8 +5433,8 @@ var ModalContainer = ({
5287
5433
  } = (0, import_hooks26.useSdkUiConfig)();
5288
5434
  const overlayAnimationClassName = resolveModalOverlayAnimationClassName(enableAnimations);
5289
5435
  const panelAnimationClassName = resolveModalPanelAnimationClassName(enableAnimations);
5290
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(Dialog.Portal, { children: [
5291
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
5436
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(Dialog.Portal, { children: [
5437
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
5292
5438
  Dialog.Overlay,
5293
5439
  {
5294
5440
  className: cn(
@@ -5299,7 +5445,7 @@ var ModalContainer = ({
5299
5445
  )
5300
5446
  }
5301
5447
  ),
5302
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
5448
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
5303
5449
  Dialog.Content,
5304
5450
  {
5305
5451
  className: cn(
@@ -5325,7 +5471,7 @@ var ModalContainer = ({
5325
5471
  event.preventDefault();
5326
5472
  }
5327
5473
  },
5328
- children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
5474
+ children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
5329
5475
  "div",
5330
5476
  {
5331
5477
  className: cn(
@@ -5333,7 +5479,7 @@ var ModalContainer = ({
5333
5479
  "items-end md:items-center",
5334
5480
  "flex h-full min-h-0 w-full justify-center p-0 md:p-5"
5335
5481
  ),
5336
- children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
5482
+ children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
5337
5483
  "div",
5338
5484
  {
5339
5485
  className: cn(
@@ -5375,12 +5521,12 @@ var ModalHeader = ({
5375
5521
  features: { enableAnimations }
5376
5522
  } = (0, import_hooks26.useSdkUiConfig)();
5377
5523
  const labels = (0, import_hooks26.useLabels)();
5378
- const defaultCloseIcon = /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(CloseIcon, { className: "h-6 w-6" });
5524
+ const defaultCloseIcon = /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(CloseIcon, { className: "h-6 w-6" });
5379
5525
  const resolvedCloseIcon = resolveModalCloseIcon({
5380
5526
  closeIcon,
5381
5527
  defaultCloseIcon
5382
5528
  });
5383
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
5529
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(
5384
5530
  "div",
5385
5531
  {
5386
5532
  className: cn(
@@ -5393,7 +5539,7 @@ var ModalHeader = ({
5393
5539
  classNames == null ? void 0 : classNames.root
5394
5540
  ),
5395
5541
  children: [
5396
- /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
5542
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(
5397
5543
  "div",
5398
5544
  {
5399
5545
  className: cn(
@@ -5406,8 +5552,8 @@ var ModalHeader = ({
5406
5552
  classNames == null ? void 0 : classNames.container
5407
5553
  ),
5408
5554
  children: [
5409
- leftElement ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_jsx_runtime110.Fragment, { children: leftElement }) : null,
5410
- /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)(
5555
+ leftElement ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_jsx_runtime114.Fragment, { children: leftElement }) : null,
5556
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(
5411
5557
  "div",
5412
5558
  {
5413
5559
  className: cn(
@@ -5416,7 +5562,7 @@ var ModalHeader = ({
5416
5562
  classNames == null ? void 0 : classNames.titleContainer
5417
5563
  ),
5418
5564
  children: [
5419
- /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
5565
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
5420
5566
  Dialog.Title,
5421
5567
  {
5422
5568
  className: cn(
@@ -5430,7 +5576,7 @@ var ModalHeader = ({
5430
5576
  children: title2
5431
5577
  }
5432
5578
  ),
5433
- subtitle ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
5579
+ subtitle ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
5434
5580
  "span",
5435
5581
  {
5436
5582
  className: cn(
@@ -5444,9 +5590,9 @@ var ModalHeader = ({
5444
5590
  ]
5445
5591
  }
5446
5592
  ),
5447
- /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("div", { className: "agg-modal-header-actions flex flex-row items-center justify-end gap-6", children: [
5448
- rightElement ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(import_jsx_runtime110.Fragment, { children: rightElement }) : null,
5449
- !hideClose && /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
5593
+ /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "agg-modal-header-actions flex flex-row items-center justify-end gap-6", children: [
5594
+ rightElement ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_jsx_runtime114.Fragment, { children: rightElement }) : null,
5595
+ !hideClose && /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
5450
5596
  Dialog.Close,
5451
5597
  {
5452
5598
  className: cn(
@@ -5463,14 +5609,14 @@ var ModalHeader = ({
5463
5609
  ]
5464
5610
  }
5465
5611
  ),
5466
- children ? /* @__PURE__ */ (0, import_jsx_runtime110.jsx)("div", { className: "agg-modal-header-extra", children }) : null
5612
+ children ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { className: "agg-modal-header-extra", children }) : null
5467
5613
  ]
5468
5614
  }
5469
5615
  );
5470
5616
  };
5471
5617
  Modal.Header = ModalHeader;
5472
5618
  var ModalBody = ({ children, classNames }) => {
5473
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
5619
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
5474
5620
  "div",
5475
5621
  {
5476
5622
  className: cn(
@@ -5491,7 +5637,7 @@ var ModalFooter = ({
5491
5637
  classNames,
5492
5638
  hideBorder = false
5493
5639
  }) => {
5494
- return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(
5640
+ return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
5495
5641
  "div",
5496
5642
  {
5497
5643
  className: cn(
@@ -5574,7 +5720,7 @@ var getTypographyClassName = ({
5574
5720
  };
5575
5721
 
5576
5722
  // src/primitives/typography/index.tsx
5577
- var import_jsx_runtime111 = require("react/jsx-runtime");
5723
+ var import_jsx_runtime115 = require("react/jsx-runtime");
5578
5724
  var Typography = ({
5579
5725
  as: Component = "p",
5580
5726
  variant = "body",
@@ -5582,7 +5728,7 @@ var Typography = ({
5582
5728
  children,
5583
5729
  "aria-label": ariaLabel
5584
5730
  }) => {
5585
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(Component, { className: getTypographyClassName({ className, variant }), "aria-label": ariaLabel, children });
5731
+ return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Component, { className: getTypographyClassName({ className, variant }), "aria-label": ariaLabel, children });
5586
5732
  };
5587
5733
  Typography.displayName = "Typography";
5588
5734
 
@@ -5621,7 +5767,7 @@ var resolveTooltipArrowDimensions = (size) => {
5621
5767
  };
5622
5768
 
5623
5769
  // src/primitives/tooltip/index.tsx
5624
- var import_jsx_runtime112 = require("react/jsx-runtime");
5770
+ var import_jsx_runtime116 = require("react/jsx-runtime");
5625
5771
  var Tooltip = ({
5626
5772
  content,
5627
5773
  children,
@@ -5638,22 +5784,22 @@ var Tooltip = ({
5638
5784
  } = (0, import_hooks27.useSdkUiConfig)();
5639
5785
  const trigger = (0, import_react5.useMemo)(() => {
5640
5786
  if (children) return children;
5641
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
5787
+ return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
5642
5788
  "button",
5643
5789
  {
5644
5790
  type: "button",
5645
5791
  className: resolveTooltipTriggerClassName(classNames == null ? void 0 : classNames.trigger),
5646
5792
  "aria-label": ariaLabel != null ? ariaLabel : defaultTooltipTriggerAriaLabel,
5647
- children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(Icon, { name: "info", size: "small", className: cn(classNames == null ? void 0 : classNames.icon), "aria-hidden": true })
5793
+ children: /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(Icon, { name: "info", size: "small", className: cn(classNames == null ? void 0 : classNames.icon), "aria-hidden": true })
5648
5794
  }
5649
5795
  );
5650
5796
  }, [children, classNames == null ? void 0 : classNames.trigger, classNames == null ? void 0 : classNames.icon, ariaLabel]);
5651
5797
  const { width: arrowWidth, height: arrowHeight } = resolveTooltipArrowDimensions(size);
5652
5798
  const arrowPoints = `0,0 ${arrowWidth},0 ${arrowWidth / 2},${arrowHeight}`;
5653
5799
  const arrowBorderPath = `M0 0 L${arrowWidth / 2} ${arrowHeight} L${arrowWidth} 0`;
5654
- return /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(TooltipPrimitive.Provider, { delayDuration, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(TooltipPrimitive.Root, { children: [
5655
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(TooltipPrimitive.Trigger, { asChild: true, children: trigger }),
5656
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
5800
+ return /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(TooltipPrimitive.Provider, { delayDuration, children: /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(TooltipPrimitive.Root, { children: [
5801
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(TooltipPrimitive.Trigger, { asChild: true, children: trigger }),
5802
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
5657
5803
  TooltipPrimitive.Content,
5658
5804
  {
5659
5805
  side,
@@ -5675,7 +5821,7 @@ var Tooltip = ({
5675
5821
  classNames == null ? void 0 : classNames.content
5676
5822
  ),
5677
5823
  children: [
5678
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(TooltipPrimitive.Arrow, { asChild: true, width: arrowWidth, height: arrowHeight, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)(
5824
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(TooltipPrimitive.Arrow, { asChild: true, width: arrowWidth, height: arrowHeight, children: /* @__PURE__ */ (0, import_jsx_runtime116.jsxs)(
5679
5825
  "svg",
5680
5826
  {
5681
5827
  width: arrowWidth,
@@ -5684,8 +5830,8 @@ var Tooltip = ({
5684
5830
  "aria-hidden": "true",
5685
5831
  className: cn("overflow-visible", classNames == null ? void 0 : classNames.arrow),
5686
5832
  children: [
5687
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)("polygon", { points: arrowPoints, className: "fill-agg-secondary" }),
5688
- /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
5833
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)("polygon", { points: arrowPoints, className: "fill-agg-secondary" }),
5834
+ /* @__PURE__ */ (0, import_jsx_runtime116.jsx)(
5689
5835
  "path",
5690
5836
  {
5691
5837
  d: arrowBorderPath,
@@ -6815,6 +6961,19 @@ var VENUE_UNAVAILABLE_ERROR_PATTERN = /\b(unavailable|unreachable|timeout|timed
6815
6961
  var ALCHEMY_SPONSORSHIP_ERROR_PATTERN = /\bsponsorship failed: sender has no balance of the token for erc20 sponsorship\b/i;
6816
6962
  var ALCHEMY_PREPARE_CALLS_ERROR_PATTERN = /\bwallet_prepareCalls\b/i;
6817
6963
  var DAG_CHECK_BALANCE_SHORTFALL_PATTERN = /\bInsufficient balance on chain\s+\d+\s+token\s+\S+:/i;
6964
+ var VENUE_CONNECTOR_UNREACHABLE_PATTERN = /\bvenue-connector\s+unreachable\b/i;
6965
+ var POLYMARKET_DEADLINE_TOO_SOON_PATTERN = /\bdeadline too soon\b/i;
6966
+ var SELL_NO_ONCHAIN_POSITION_PATTERN = /don'?t currently hold any on-chain shares/i;
6967
+ var VENUE_QUOTE_UNFILLABLE_PATTERN = /couldn'?t fill this order at the quoted price|no in-tolerance depth|couldn'?t fill this order at the quoted/i;
6968
+ var QUOTED_PRICE_UNAVAILABLE_PATTERN = /Quoted price is no longer available|missing a valid quoted price/i;
6969
+ var VENUE_MIN_ORDER_SIZE_PATTERN = /below (?:the )?(?:venue |Limitless'?s |Polymarket'?s |Hyperliquid'?s |predict\.fun'?s )?(?:0\.01-share )?minimum|Order amount too small/i;
6970
+ var SOURCE_BALANCE_CHANGED_PATTERN = /balance changed since the quote|wallet holds 0 (?:USDC|pUSD|of tokenId)|Polygon balance changed/i;
6971
+ var VENUE_MARKET_RESOLVED_PATTERN = /(?:Limitless|Myriad|Polymarket|Kalshi)?\s*market\s+(?:just\s+)?resolved|market just resolved/i;
6972
+ var DFLOW_WALLET_UNVERIFIED_PATTERN = /(?:wallet\s+needs\s+to\s+be\s+verified\s+with\s+dFlow|dflow\.net\/proof)/i;
6973
+ var VENUE_NO_QUOTE_PATH_PATTERN = /No active quote path/i;
6974
+ var SOLANA_BLOCKHASH_EXPIRED_PATTERN = /\b(blockhash(?:\s+(?:expired|not\s+found))?|TransactionExpiredBlockheightExceeded|transaction\s+expired)\b/i;
6975
+ var VENUE_RATE_LIMITED_PATTERN = /\b(429|rate[\s-]?limit(?:ed)?|too\s+many\s+requests|backoff)\b/i;
6976
+ var SERVICE_BLOCKED_ORDER_PATTERN = /Something on our side blocked this order/i;
6818
6977
  var ALCHEMY_BALANCE_REVERT_PATTERN = /\b(transfer amount exceeds balance|transferFrom failed|insufficient balance|insufficient funds)\b/i;
6819
6978
  var ALCHEMY_REVERT_DATA_SELECTOR_PATTERN = /\brevertData["']?:?\s*['"]?(0x[0-9a-fA-F]{8})/i;
6820
6979
  var REVERT_SELECTOR_MESSAGES = {
@@ -6848,6 +7007,12 @@ var friendlyTerminatedStatusMessage = (status) => {
6848
7007
  if (normalized === "rejected") {
6849
7008
  return "The venue rejected your order. Please try again.";
6850
7009
  }
7010
+ if (normalized === "failed") {
7011
+ return "Order didn't settle on-chain. Please try again.";
7012
+ }
7013
+ if (normalized === "unmatched") {
7014
+ return "No liquidity matched your order at the quoted price. Try a smaller size or re-quote.";
7015
+ }
6851
7016
  return "Your order did not fill. Please try again.";
6852
7017
  };
6853
7018
  var tryParseJsonErrorValue = (value) => {
@@ -6882,12 +7047,51 @@ var normalizePlaceOrderErrorMessage = ({
6882
7047
  fallbackMessage,
6883
7048
  labels
6884
7049
  }) => {
6885
- var _a, _b;
7050
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
6886
7051
  const extractedMessage = extractPlaceOrderErrorMessage(errorMessage);
6887
7052
  if (!extractedMessage) return fallbackMessage;
6888
7053
  if (DAG_CHECK_BALANCE_SHORTFALL_PATTERN.test(extractedMessage)) {
6889
7054
  return (_a = labels == null ? void 0 : labels.quoteBalanceMismatch) != null ? _a : "Quote balance mismatch. Try a different amount.";
6890
7055
  }
7056
+ if (VENUE_CONNECTOR_UNREACHABLE_PATTERN.test(extractedMessage)) {
7057
+ return (_b = labels == null ? void 0 : labels.serviceTemporarilyUnavailable) != null ? _b : "Service temporarily unavailable. Please try again in a moment.";
7058
+ }
7059
+ if (POLYMARKET_DEADLINE_TOO_SOON_PATTERN.test(extractedMessage)) {
7060
+ return (_c = labels == null ? void 0 : labels.orderDeadlineExpiredBeforeSubmission) != null ? _c : "Order deadline expired before submission. Please try again.";
7061
+ }
7062
+ if (DFLOW_WALLET_UNVERIFIED_PATTERN.test(extractedMessage)) {
7063
+ return (_d = labels == null ? void 0 : labels.dflowWalletUnverified) != null ? _d : "Your Solana wallet needs to be verified with dFlow before you can trade Kalshi markets. Verify at https://dflow.net/proof, then try again.";
7064
+ }
7065
+ if (SELL_NO_ONCHAIN_POSITION_PATTERN.test(extractedMessage)) {
7066
+ return (_e = labels == null ? void 0 : labels.sellNoOnchainPosition) != null ? _e : "You don't currently hold any on-chain shares of this outcome. If you just sold or redeemed elsewhere, your position display will refresh shortly \u2014 try again after that.";
7067
+ }
7068
+ if (VENUE_MARKET_RESOLVED_PATTERN.test(extractedMessage)) {
7069
+ return (_f = labels == null ? void 0 : labels.venueMarketResolved) != null ? _f : "This market just resolved. Pick a different market or wait for the next round.";
7070
+ }
7071
+ if (VENUE_NO_QUOTE_PATH_PATTERN.test(extractedMessage)) {
7072
+ return (_g = labels == null ? void 0 : labels.venueNoQuotePath) != null ? _g : "No active quote path for this market right now. Try a different size, or wait a moment and re-quote.";
7073
+ }
7074
+ if (QUOTED_PRICE_UNAVAILABLE_PATTERN.test(extractedMessage)) {
7075
+ return (_h = labels == null ? void 0 : labels.quoteUnavailable) != null ? _h : "Quote temporarily unavailable. Please try again.";
7076
+ }
7077
+ if (VENUE_QUOTE_UNFILLABLE_PATTERN.test(extractedMessage)) {
7078
+ return (_i = labels == null ? void 0 : labels.venueQuoteUnfillable) != null ? _i : "The venue couldn't fill this order at the quoted price right now. Try a smaller size, a higher slippage tolerance, or wait a moment and re-quote.";
7079
+ }
7080
+ if (VENUE_MIN_ORDER_SIZE_PATTERN.test(extractedMessage)) {
7081
+ return (_j = labels == null ? void 0 : labels.venueMinOrderSize) != null ? _j : "Order size is below the venue minimum. Try a larger amount.";
7082
+ }
7083
+ if (SOURCE_BALANCE_CHANGED_PATTERN.test(extractedMessage)) {
7084
+ return (_k = labels == null ? void 0 : labels.sourceBalanceChanged) != null ? _k : "Your balance changed since the quote. Refresh and try again, or pick a smaller amount.";
7085
+ }
7086
+ if (SOLANA_BLOCKHASH_EXPIRED_PATTERN.test(extractedMessage)) {
7087
+ return (_l = labels == null ? void 0 : labels.solanaBlockhashExpired) != null ? _l : "Solana transaction expired before submission. Please re-quote and try again.";
7088
+ }
7089
+ if (VENUE_RATE_LIMITED_PATTERN.test(extractedMessage)) {
7090
+ return (_m = labels == null ? void 0 : labels.venueRateLimited) != null ? _m : "The venue is rate-limiting requests right now. Please wait a moment and try again.";
7091
+ }
7092
+ if (SERVICE_BLOCKED_ORDER_PATTERN.test(extractedMessage)) {
7093
+ return (_n = labels == null ? void 0 : labels.serviceBlockedOrder) != null ? _n : "Something on our side blocked this order. Please contact support if it keeps happening \u2014 retrying with the same quote will hit the same issue.";
7094
+ }
6891
7095
  if (ALCHEMY_BALANCE_REVERT_PATTERN.test(extractedMessage)) {
6892
7096
  return "Your balance changed since the quote. Please refresh and try again.";
6893
7097
  }
@@ -6906,7 +7110,7 @@ var normalizePlaceOrderErrorMessage = ({
6906
7110
  }
6907
7111
  const terminatedMatch = extractedMessage.match(VENUE_TERMINATED_STATUS_PATTERN);
6908
7112
  if (terminatedMatch) {
6909
- return friendlyTerminatedStatusMessage((_b = terminatedMatch[1]) != null ? _b : "");
7113
+ return friendlyTerminatedStatusMessage((_o = terminatedMatch[1]) != null ? _o : "");
6910
7114
  }
6911
7115
  return extractedMessage;
6912
7116
  };
@@ -7324,7 +7528,7 @@ var isPercentageBelowMinimum = (value, minimumValue) => {
7324
7528
  };
7325
7529
 
7326
7530
  // src/trading/place-order/index.place-order.failure.tsx
7327
- var import_jsx_runtime113 = require("react/jsx-runtime");
7531
+ var import_jsx_runtime117 = require("react/jsx-runtime");
7328
7532
  var resolveFailureActionHandler = ({
7329
7533
  action,
7330
7534
  onDone,
@@ -7337,12 +7541,12 @@ var resolveFailureActionHandler = ({
7337
7541
  };
7338
7542
  var renderPartialFailureStep = (step) => {
7339
7543
  const isWarningStep = step.tone === "warning" || step.tone === "error";
7340
- return /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)(
7544
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)(
7341
7545
  "div",
7342
7546
  {
7343
7547
  className: "flex items-center gap-2 text-agg-sm leading-agg-5 text-agg-foreground",
7344
7548
  children: [
7345
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7549
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7346
7550
  Icon,
7347
7551
  {
7348
7552
  name: isWarningStep ? "warning-filled" : "check-circle",
@@ -7351,8 +7555,8 @@ var renderPartialFailureStep = (step) => {
7351
7555
  "aria-hidden": "true"
7352
7556
  }
7353
7557
  ),
7354
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("p", { className: "min-w-0 flex-1", children: step.label }),
7355
- step.venue ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(VenueLogo, { venue: step.venue, size: "small", className: "h-4 w-4 shrink-0" }) : null
7558
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("p", { className: "min-w-0 flex-1", children: step.label }),
7559
+ step.venue ? /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(VenueLogo, { venue: step.venue, size: "small", className: "h-4 w-4 shrink-0" }) : null
7356
7560
  ]
7357
7561
  },
7358
7562
  step.id
@@ -7371,10 +7575,10 @@ var PlaceOrderFailureView = ({
7371
7575
  const shouldShowPartialFailureLayout = summary.kind === "partial_fill";
7372
7576
  const failureStepGroups = shouldShowPartialFailureLayout ? groupPlaceOrderFailureSteps(summary.steps) : [];
7373
7577
  if (shouldShowPartialFailureLayout) {
7374
- return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Card, { className: cn("group/agg-order-panel", getPlaceOrderContainerClassName(), className), children: /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "agg-order-failure-body flex flex-col gap-6 p-5", children: [
7375
- /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "agg-order-failure-header flex flex-col gap-2", children: [
7376
- /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "agg-order-failure-market flex items-center gap-3", children: [
7377
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7578
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Card, { className: cn("group/agg-order-panel", getPlaceOrderContainerClassName(), className), children: /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: "agg-order-failure-body flex flex-col gap-6 p-5", children: [
7579
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: "agg-order-failure-header flex flex-col gap-2", children: [
7580
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: "agg-order-failure-market flex items-center gap-3", children: [
7581
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7378
7582
  RemoteImage,
7379
7583
  {
7380
7584
  src: (_a = summary.eventImage) != null ? _a : null,
@@ -7382,12 +7586,12 @@ var PlaceOrderFailureView = ({
7382
7586
  className: "h-12 w-12 shrink-0 overflow-hidden rounded-agg-lg object-cover"
7383
7587
  }
7384
7588
  ),
7385
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("p", { className: "min-w-0 flex-1 text-agg-base font-agg-bold leading-agg-6 text-agg-foreground line-clamp-2", children: summary.eventTitle })
7589
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("p", { className: "min-w-0 flex-1 text-agg-base font-agg-bold leading-agg-6 text-agg-foreground line-clamp-2", children: summary.eventTitle })
7386
7590
  ] }),
7387
- summary.eventSubtitle ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("p", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: summary.eventSubtitle }) : null
7591
+ summary.eventSubtitle ? /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("p", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: summary.eventSubtitle }) : null
7388
7592
  ] }),
7389
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: "flex flex-col gap-4", children: failureStepGroups.map((group, groupIndex) => /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: "flex flex-col gap-2", children: group.map((step) => renderPartialFailureStep(step)) }, `failure-group-${groupIndex}`)) }),
7390
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: "flex items-center gap-4", children: summary.actions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7593
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("div", { className: "flex flex-col gap-4", children: failureStepGroups.map((group, groupIndex) => /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("div", { className: "flex flex-col gap-2", children: group.map((step) => renderPartialFailureStep(step)) }, `failure-group-${groupIndex}`)) }),
7594
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("div", { className: "flex items-center gap-4", children: summary.actions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7391
7595
  Button,
7392
7596
  {
7393
7597
  variant: "tertiary",
@@ -7401,10 +7605,10 @@ var PlaceOrderFailureView = ({
7401
7605
  )) })
7402
7606
  ] }) });
7403
7607
  }
7404
- return /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(Card, { className: cn("group/agg-order-panel", getPlaceOrderContainerClassName(), className), children: /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "agg-order-failure-body flex flex-col gap-6 p-5", children: [
7405
- /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "agg-order-failure-header flex flex-col gap-2", children: [
7406
- /* @__PURE__ */ (0, import_jsx_runtime113.jsxs)("div", { className: "agg-order-failure-market flex items-center gap-3", children: [
7407
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7608
+ return /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(Card, { className: cn("group/agg-order-panel", getPlaceOrderContainerClassName(), className), children: /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: "agg-order-failure-body flex flex-col gap-6 p-5", children: [
7609
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: "agg-order-failure-header flex flex-col gap-2", children: [
7610
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsxs)("div", { className: "agg-order-failure-market flex items-center gap-3", children: [
7611
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7408
7612
  RemoteImage,
7409
7613
  {
7410
7614
  src: (_b = summary.eventImage) != null ? _b : null,
@@ -7412,11 +7616,11 @@ var PlaceOrderFailureView = ({
7412
7616
  className: "h-12 w-12 shrink-0 overflow-hidden rounded-agg-lg object-cover"
7413
7617
  }
7414
7618
  ),
7415
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("p", { className: "min-w-0 flex-1 text-agg-base font-agg-bold leading-agg-6 text-agg-foreground line-clamp-2", children: summary.eventTitle })
7619
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("p", { className: "min-w-0 flex-1 text-agg-base font-agg-bold leading-agg-6 text-agg-foreground line-clamp-2", children: summary.eventTitle })
7416
7620
  ] }),
7417
- summary.eventSubtitle ? /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("p", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: summary.eventSubtitle }) : null
7621
+ summary.eventSubtitle ? /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("p", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: summary.eventSubtitle }) : null
7418
7622
  ] }),
7419
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7623
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7420
7624
  InlineAlert,
7421
7625
  {
7422
7626
  tone: "error",
@@ -7425,7 +7629,7 @@ var PlaceOrderFailureView = ({
7425
7629
  message: tradingLabels.orderFailureDescription((_c = summary.errorMessage) != null ? _c : "")
7426
7630
  }
7427
7631
  ),
7428
- /* @__PURE__ */ (0, import_jsx_runtime113.jsx)("div", { className: "agg-order-failure-actions flex items-center gap-3", children: summary.actions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime113.jsx)(
7632
+ /* @__PURE__ */ (0, import_jsx_runtime117.jsx)("div", { className: "agg-order-failure-actions flex items-center gap-3", children: summary.actions.map((action) => /* @__PURE__ */ (0, import_jsx_runtime117.jsx)(
7429
7633
  Button,
7430
7634
  {
7431
7635
  variant: action.variant === "retry" ? "primary" : "secondary",
@@ -7443,7 +7647,7 @@ PlaceOrderFailureView.displayName = "PlaceOrderFailureView";
7443
7647
 
7444
7648
  // src/trading/place-order/index.place-order.success.tsx
7445
7649
  var import_react7 = require("react");
7446
- var import_jsx_runtime114 = require("react/jsx-runtime");
7650
+ var import_jsx_runtime118 = require("react/jsx-runtime");
7447
7651
  var resolveBuyToWinLabel = (shares) => {
7448
7652
  if (!shares) return "$0";
7449
7653
  return shares.startsWith("$") ? shares : `$${shares}`;
@@ -7455,17 +7659,17 @@ var PlaceOrderSuccessView = ({
7455
7659
  onDone,
7456
7660
  onShare: _onShare
7457
7661
  }) => {
7458
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
7662
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
7459
7663
  const [isExecutionDetailsExpanded, setIsExecutionDetailsExpanded] = (0, import_react7.useState)(true);
7460
- const newTradeLabel = (_a = tradingLabels.orderNewTrade) != null ? _a : "New Trade";
7461
- const _shareLabel = (_b = tradingLabels.orderShare) != null ? _b : "Share";
7664
+ const doneLabel = tradingLabels.orderDone;
7665
+ const _shareLabel = (_a = tradingLabels.orderShare) != null ? _a : "Share";
7462
7666
  const potentialReturnLabel = summary.potentialReturnLabel && tradingLabels.potentialReturnBonus ? tradingLabels.potentialReturnBonus(summary.potentialReturnLabel) : summary.potentialReturnLabel ? `+${summary.potentialReturnLabel} Better Payout` : null;
7463
- const resolvedActionLabel = (_c = summary.actionLabel) != null ? _c : tradingLabels.orderSuccessTitle;
7464
- const resolvedTradeSide = (_d = summary.tradeSide) != null ? _d : "buy";
7465
- const resolvedAmountLabel = (_e = summary.amountLabel) != null ? _e : resolvedTradeSide === "sell" ? summary.shares : summary.estimatedCost;
7466
- const resolvedToWinLabel = (_f = summary.toWinLabel) != null ? _f : resolvedTradeSide === "sell" ? summary.estimatedCost : resolveBuyToWinLabel(summary.shares);
7467
- const executionStepGroups = (_g = summary.executionStepGroups) != null ? _g : [];
7468
- const finalStep = (_h = executionStepGroups.at(-1)) == null ? void 0 : _h[0];
7667
+ const resolvedActionLabel = (_b = summary.actionLabel) != null ? _b : tradingLabels.orderSuccessTitle;
7668
+ const resolvedTradeSide = (_c = summary.tradeSide) != null ? _c : "buy";
7669
+ const resolvedAmountLabel = (_d = summary.amountLabel) != null ? _d : resolvedTradeSide === "sell" ? summary.shares : summary.estimatedCost;
7670
+ const resolvedToWinLabel = (_e = summary.toWinLabel) != null ? _e : resolvedTradeSide === "sell" ? summary.estimatedCost : resolveBuyToWinLabel(summary.shares);
7671
+ const executionStepGroups = (_f = summary.executionStepGroups) != null ? _f : [];
7672
+ const finalStep = (_g = executionStepGroups.at(-1)) == null ? void 0 : _g[0];
7469
7673
  const detailedStepGroups = executionStepGroups.slice(0, -1);
7470
7674
  const hasExecutionDetails = detailedStepGroups.length > 0;
7471
7675
  const resolveStepIconName = (tone) => {
@@ -7474,23 +7678,23 @@ var PlaceOrderSuccessView = ({
7474
7678
  const resolveStepIconClassName = (tone) => {
7475
7679
  return tone === "warning" || tone === "error" ? "text-agg-warning" : "text-agg-primary";
7476
7680
  };
7477
- return /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(Card, { className: cn("group/agg-order-panel", getPlaceOrderContainerClassName(), className), children: /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "agg-order-success-body flex flex-col gap-6 p-5", children: [
7478
- summary.eventTitle ? /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "agg-order-success-header flex flex-col gap-2", children: [
7479
- /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "agg-order-success-market flex items-center gap-3", children: [
7480
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7681
+ return /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Card, { className: cn("group/agg-order-panel", getPlaceOrderContainerClassName(), className), children: /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "agg-order-success-body flex flex-col gap-6 p-5", children: [
7682
+ summary.eventTitle ? /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "agg-order-success-header flex flex-col gap-2", children: [
7683
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "agg-order-success-market flex items-center gap-3", children: [
7684
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7481
7685
  RemoteImage,
7482
7686
  {
7483
- src: (_i = summary.eventImage) != null ? _i : null,
7687
+ src: (_h = summary.eventImage) != null ? _h : null,
7484
7688
  alt: "",
7485
7689
  className: "h-12 w-12 shrink-0 overflow-hidden rounded-agg-lg object-cover"
7486
7690
  }
7487
7691
  ),
7488
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "min-w-0 flex-1 text-agg-base font-agg-bold leading-agg-6 text-agg-foreground line-clamp-2", children: summary.eventTitle })
7692
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "min-w-0 flex-1 text-agg-base font-agg-bold leading-agg-6 text-agg-foreground line-clamp-2", children: summary.eventTitle })
7489
7693
  ] }),
7490
- summary.eventDateLabel ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: summary.eventDateLabel }) : null
7694
+ summary.eventDateLabel ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: summary.eventDateLabel }) : null
7491
7695
  ] }) : null,
7492
- executionStepGroups.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "agg-order-success-timeline flex flex-col gap-2", children: [
7493
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7696
+ executionStepGroups.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "agg-order-success-timeline flex flex-col gap-2", children: [
7697
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7494
7698
  "div",
7495
7699
  {
7496
7700
  "aria-hidden": !isExecutionDetailsExpanded,
@@ -7503,12 +7707,12 @@ var PlaceOrderSuccessView = ({
7503
7707
  "transition-[grid-template-rows,opacity] duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]"
7504
7708
  )
7505
7709
  ),
7506
- children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { className: "min-h-0", children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { className: "flex flex-col gap-4 pb-2", children: detailedStepGroups.map((group, groupIndex) => /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { className: "flex flex-col gap-2", children: group.map((step) => /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(
7710
+ children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { className: "min-h-0", children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { className: "flex flex-col gap-4 pb-2", children: detailedStepGroups.map((group, groupIndex) => /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { className: "flex flex-col gap-2", children: group.map((step) => /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
7507
7711
  "div",
7508
7712
  {
7509
7713
  className: "flex items-center gap-2 text-agg-sm leading-agg-5 text-agg-foreground",
7510
7714
  children: [
7511
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7715
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7512
7716
  Icon,
7513
7717
  {
7514
7718
  name: resolveStepIconName(step.tone),
@@ -7517,8 +7721,8 @@ var PlaceOrderSuccessView = ({
7517
7721
  "aria-hidden": "true"
7518
7722
  }
7519
7723
  ),
7520
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "min-w-0 flex-1", children: step.label }),
7521
- step.venue ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7724
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "min-w-0 flex-1", children: step.label }),
7725
+ step.venue ? /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7522
7726
  VenueLogo,
7523
7727
  {
7524
7728
  venue: step.venue,
@@ -7532,7 +7736,7 @@ var PlaceOrderSuccessView = ({
7532
7736
  )) }, `execution-group-${groupIndex}`)) }) })
7533
7737
  }
7534
7738
  ),
7535
- finalStep ? hasExecutionDetails ? /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(
7739
+ finalStep ? hasExecutionDetails ? /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
7536
7740
  "button",
7537
7741
  {
7538
7742
  type: "button",
@@ -7544,7 +7748,7 @@ var PlaceOrderSuccessView = ({
7544
7748
  ),
7545
7749
  onClick: () => setIsExecutionDetailsExpanded((currentValue) => !currentValue),
7546
7750
  children: [
7547
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7751
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7548
7752
  Icon,
7549
7753
  {
7550
7754
  name: resolveStepIconName(finalStep.tone),
@@ -7553,8 +7757,8 @@ var PlaceOrderSuccessView = ({
7553
7757
  "aria-hidden": "true"
7554
7758
  }
7555
7759
  ),
7556
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "min-w-0 flex-1", children: finalStep.label }),
7557
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7760
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "min-w-0 flex-1", children: finalStep.label }),
7761
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7558
7762
  Icon,
7559
7763
  {
7560
7764
  name: isExecutionDetailsExpanded ? "chevron-up" : "chevron-down",
@@ -7565,8 +7769,8 @@ var PlaceOrderSuccessView = ({
7565
7769
  )
7566
7770
  ]
7567
7771
  }
7568
- ) : /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "flex items-center gap-2 text-agg-sm leading-agg-5 text-agg-foreground", children: [
7569
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7772
+ ) : /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex items-center gap-2 text-agg-sm leading-agg-5 text-agg-foreground", children: [
7773
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7570
7774
  Icon,
7571
7775
  {
7572
7776
  name: resolveStepIconName(finalStep.tone),
@@ -7575,42 +7779,42 @@ var PlaceOrderSuccessView = ({
7575
7779
  "aria-hidden": "true"
7576
7780
  }
7577
7781
  ),
7578
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "min-w-0 flex-1", children: finalStep.label })
7782
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "min-w-0 flex-1", children: finalStep.label })
7579
7783
  ] }) : null
7580
7784
  ] }) : null,
7581
- /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)(
7785
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)(
7582
7786
  "div",
7583
7787
  {
7584
7788
  className: cn(
7585
7789
  "agg-order-success-pill flex min-h-12 w-full items-center justify-center gap-2 rounded-agg-full px-6 py-2.5 text-center text-agg-base font-agg-bold leading-agg-6 text-agg-on-primary bg-agg-success"
7586
7790
  ),
7587
7791
  children: [
7588
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(Icon, { name: "success-check", size: "small", className: "h-4 w-4 shrink-0 text-current" }),
7589
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("span", { children: resolvedActionLabel })
7792
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(Icon, { name: "success-check", size: "small", className: "h-4 w-4 shrink-0 text-current" }),
7793
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("span", { children: resolvedActionLabel })
7590
7794
  ]
7591
7795
  }
7592
7796
  ),
7593
- /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "agg-order-success-summary flex items-center justify-between gap-4", children: [
7594
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: tradingLabels.amount(resolvedTradeSide) }),
7595
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "text-right text-[30px] font-agg-bold leading-[36px] text-agg-foreground", children: resolvedAmountLabel })
7797
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "agg-order-success-summary flex items-center justify-between gap-4", children: [
7798
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: tradingLabels.amount(resolvedTradeSide) }),
7799
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "text-right text-[30px] font-agg-bold leading-[36px] text-agg-foreground", children: resolvedAmountLabel })
7596
7800
  ] }),
7597
- /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "agg-order-success-summary flex items-center justify-between gap-4", children: [
7598
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: tradingLabels.toWin(resolvedTradeSide) }),
7599
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "text-right text-[30px] font-agg-bold leading-[36px] text-agg-success", children: resolvedToWinLabel })
7801
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "agg-order-success-summary flex items-center justify-between gap-4", children: [
7802
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: tradingLabels.toWin(resolvedTradeSide) }),
7803
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "text-right text-[30px] font-agg-bold leading-[36px] text-agg-success", children: resolvedToWinLabel })
7600
7804
  ] }),
7601
- summary.potentialReturnLabel ? /* @__PURE__ */ (0, import_jsx_runtime114.jsxs)("div", { className: "flex w-full flex-col items-center justify-center gap-1 overflow-hidden rounded-agg-lg border border-agg-primary/50 bg-gradient-to-b from-agg-primary/8 to-agg-primary/15 p-3 text-center", children: [
7602
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "bg-gradient-to-r from-agg-primary to-agg-primary-hover bg-clip-text text-agg-lg font-agg-bold leading-[28px] text-transparent", children: potentialReturnLabel }),
7603
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("p", { className: "text-agg-xs leading-agg-4 text-agg-foreground", children: (_j = tradingLabels.withSmartRouting) != null ? _j : "with Smart Routing" })
7805
+ summary.potentialReturnLabel ? /* @__PURE__ */ (0, import_jsx_runtime118.jsxs)("div", { className: "flex w-full flex-col items-center justify-center gap-1 overflow-hidden rounded-agg-lg border border-agg-primary/50 bg-gradient-to-b from-agg-primary/8 to-agg-primary/15 p-3 text-center", children: [
7806
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "bg-gradient-to-r from-agg-primary to-agg-primary-hover bg-clip-text text-agg-lg font-agg-bold leading-[28px] text-transparent", children: potentialReturnLabel }),
7807
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("p", { className: "text-agg-xs leading-agg-4 text-agg-foreground", children: (_i = tradingLabels.withSmartRouting) != null ? _i : "with Smart Routing" })
7604
7808
  ] }) : null,
7605
- /* @__PURE__ */ (0, import_jsx_runtime114.jsx)("div", { className: "agg-order-success-actions flex gap-3", children: /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
7809
+ /* @__PURE__ */ (0, import_jsx_runtime118.jsx)("div", { className: "agg-order-success-actions flex gap-3", children: /* @__PURE__ */ (0, import_jsx_runtime118.jsx)(
7606
7810
  Button,
7607
7811
  {
7608
7812
  variant: "secondary",
7609
7813
  size: "large",
7610
7814
  className: "flex-1",
7611
- "aria-label": newTradeLabel,
7815
+ "aria-label": doneLabel,
7612
7816
  onClick: onDone,
7613
- children: newTradeLabel
7817
+ children: doneLabel
7614
7818
  }
7615
7819
  ) })
7616
7820
  ] }) });
@@ -7618,7 +7822,7 @@ var PlaceOrderSuccessView = ({
7618
7822
  PlaceOrderSuccessView.displayName = "PlaceOrderSuccessView";
7619
7823
 
7620
7824
  // src/trading/place-order/index.tsx
7621
- var import_jsx_runtime115 = require("react/jsx-runtime");
7825
+ var import_jsx_runtime119 = require("react/jsx-runtime");
7622
7826
  var resolveRefetchedQuoteData = (result) => {
7623
7827
  if (!result || typeof result !== "object" || !("data" in result)) return null;
7624
7828
  const data = result.data;
@@ -7637,7 +7841,7 @@ var LoadingGlyph = ({
7637
7841
  className,
7638
7842
  enableAnimations
7639
7843
  }) => {
7640
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
7844
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7641
7845
  "span",
7642
7846
  {
7643
7847
  "aria-hidden": "true",
@@ -7755,8 +7959,8 @@ var PlaceOrderSlippageControl = ({
7755
7959
  if (!isEditing) return;
7756
7960
  handleCommitDraft(false);
7757
7961
  };
7758
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { ref: containerRef, className: "agg-slippage-control w-full", onBlur: handleContainerBlur, children: [
7759
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
7962
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { ref: containerRef, className: "agg-slippage-control w-full", onBlur: handleContainerBlur, children: [
7963
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
7760
7964
  "button",
7761
7965
  {
7762
7966
  ref: triggerRef,
@@ -7774,8 +7978,8 @@ var PlaceOrderSlippageControl = ({
7774
7978
  ),
7775
7979
  onClick: handleToggleEditing,
7776
7980
  children: [
7777
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "agg-slippage-label", children: collapsedLabel }),
7778
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
7981
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { className: "agg-slippage-label", children: collapsedLabel }),
7982
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7779
7983
  Icon,
7780
7984
  {
7781
7985
  name: isEditing ? "chevron-up" : "pencil",
@@ -7787,7 +7991,7 @@ var PlaceOrderSlippageControl = ({
7787
7991
  ]
7788
7992
  }
7789
7993
  ),
7790
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
7994
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7791
7995
  "div",
7792
7996
  {
7793
7997
  "aria-hidden": !isEditing,
@@ -7801,10 +8005,10 @@ var PlaceOrderSlippageControl = ({
7801
8005
  "transition-[grid-template-rows,opacity,margin-top] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)]"
7802
8006
  )
7803
8007
  ),
7804
- children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: "min-h-0", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-slippage-editor-body flex flex-col gap-2", children: [
7805
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-slippage-input-row flex h-9 overflow-hidden rounded-agg-sm border border-agg-separator", children: [
7806
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-slippage-input-group flex min-w-0 flex-1 items-center gap-2 bg-agg-secondary px-3", children: [
7807
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8008
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: "min-h-0", children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "agg-slippage-editor-body flex flex-col gap-2", children: [
8009
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "agg-slippage-input-row flex h-9 overflow-hidden rounded-agg-sm border border-agg-separator", children: [
8010
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "agg-slippage-input-group flex min-w-0 flex-1 items-center gap-2 bg-agg-secondary px-3", children: [
8011
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7808
8012
  "input",
7809
8013
  {
7810
8014
  ref: inputRef,
@@ -7819,7 +8023,7 @@ var PlaceOrderSlippageControl = ({
7819
8023
  onKeyDown: handleInputKeyDown
7820
8024
  }
7821
8025
  ),
7822
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8026
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7823
8027
  "button",
7824
8028
  {
7825
8029
  type: "button",
@@ -7837,8 +8041,8 @@ var PlaceOrderSlippageControl = ({
7837
8041
  }
7838
8042
  )
7839
8043
  ] }),
7840
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: "h-full w-px bg-agg-separator", "aria-hidden": "true" }),
7841
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8044
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: "h-full w-px bg-agg-separator", "aria-hidden": "true" }),
8045
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7842
8046
  "div",
7843
8047
  {
7844
8048
  className: "agg-slippage-suffix flex w-9 items-center justify-center bg-agg-secondary-hover text-agg-sm leading-agg-5 text-agg-muted-foreground",
@@ -7847,7 +8051,7 @@ var PlaceOrderSlippageControl = ({
7847
8051
  }
7848
8052
  )
7849
8053
  ] }),
7850
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8054
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7851
8055
  "div",
7852
8056
  {
7853
8057
  "aria-hidden": !resolvedWarningMessage,
@@ -7861,13 +8065,13 @@ var PlaceOrderSlippageControl = ({
7861
8065
  "transition-[grid-template-rows,opacity] duration-200 ease-[cubic-bezier(0.22,1,0.36,1)]"
7862
8066
  )
7863
8067
  ),
7864
- children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: "min-h-0", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
8068
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: "min-h-0", children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
7865
8069
  "div",
7866
8070
  {
7867
8071
  id: warningId,
7868
8072
  className: "agg-slippage-warning-message flex items-start gap-2 text-agg-sm leading-agg-5 text-agg-foreground",
7869
8073
  children: [
7870
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8074
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7871
8075
  Icon,
7872
8076
  {
7873
8077
  name: "warning-filled",
@@ -7876,7 +8080,7 @@ var PlaceOrderSlippageControl = ({
7876
8080
  color: "currentColor"
7877
8081
  }
7878
8082
  ),
7879
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { children: resolvedWarningMessage != null ? resolvedWarningMessage : "" })
8083
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { children: resolvedWarningMessage != null ? resolvedWarningMessage : "" })
7880
8084
  ]
7881
8085
  }
7882
8086
  ) })
@@ -7896,9 +8100,9 @@ var renderCardHeader = ({
7896
8100
  onClose
7897
8101
  }) => {
7898
8102
  if (!headerTitle) return null;
7899
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: cn("agg-order-panel-header flex flex-col gap-2", className), children: [
7900
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-order-market-summary flex items-center gap-3", children: [
7901
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8103
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: cn("agg-order-panel-header flex flex-col gap-2", className), children: [
8104
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "agg-order-market-summary flex items-center gap-3", children: [
8105
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7902
8106
  RemoteImage,
7903
8107
  {
7904
8108
  src: headerImage,
@@ -7906,19 +8110,19 @@ var renderCardHeader = ({
7906
8110
  className: "agg-order-market-image h-12 w-12 shrink-0 overflow-hidden rounded-agg-lg object-cover"
7907
8111
  }
7908
8112
  ),
7909
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "agg-order-market-title min-w-0 flex-1 text-agg-base font-agg-bold leading-agg-6 text-agg-foreground line-clamp-2", children: headerTitle }),
7910
- onClose ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8113
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "agg-order-market-title min-w-0 flex-1 text-agg-base font-agg-bold leading-agg-6 text-agg-foreground line-clamp-2", children: headerTitle }),
8114
+ onClose ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7911
8115
  "button",
7912
8116
  {
7913
8117
  type: "button",
7914
8118
  className: "agg-order-close -mr-1 -mt-1 hidden shrink-0 cursor-pointer items-center justify-center p-1 text-agg-muted-foreground hover:text-agg-foreground sm:flex",
7915
8119
  "aria-label": "Close",
7916
8120
  onClick: onClose,
7917
- children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(CloseIcon, { className: "h-5 w-5" })
8121
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(CloseIcon, { className: "h-5 w-5" })
7918
8122
  }
7919
8123
  ) : null
7920
8124
  ] }),
7921
- headerSubtitle ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "agg-order-market-subtitle text-agg-base leading-agg-6 text-agg-foreground", children: headerSubtitle }) : null
8125
+ headerSubtitle ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "agg-order-market-subtitle text-agg-base leading-agg-6 text-agg-foreground", children: headerSubtitle }) : null
7922
8126
  ] });
7923
8127
  };
7924
8128
  var PlaceOrderResolvedView = ({
@@ -7927,18 +8131,11 @@ var PlaceOrderResolvedView = ({
7927
8131
  resolvedClaim,
7928
8132
  className
7929
8133
  }) => {
7930
- var _a, _b, _c, _d, _e, _f, _g, _h;
8134
+ var _a, _b, _c, _d, _e;
7931
8135
  const labels = (0, import_hooks29.useLabels)();
7932
8136
  const tradingLabels = labels.trading;
7933
8137
  const extendedTradingLabels = tradingLabels;
7934
- const winningOutcomeLabel = (_c = (_b = (_a = tradingState.winningOutcome) == null ? void 0 : _a.label) == null ? void 0 : _b.trim().toLowerCase()) != null ? _c : "";
7935
- const isPositiveWinningOutcome = ["yes", "up", "buy", "long", "true"].includes(
7936
- winningOutcomeLabel
7937
- );
7938
- const resolvedIconName = isPositiveWinningOutcome ? "success-check" : "close";
7939
- const resolvedIconToneClassName = isPositiveWinningOutcome ? "text-agg-success" : "text-agg-error";
7940
- const resolvedIconContainerClassName = isPositiveWinningOutcome ? "bg-agg-success/15" : "bg-agg-error/15";
7941
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8138
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7942
8139
  Card,
7943
8140
  {
7944
8141
  className: cn(
@@ -7947,19 +8144,19 @@ var PlaceOrderResolvedView = ({
7947
8144
  classNames == null ? void 0 : classNames.root,
7948
8145
  className
7949
8146
  ),
7950
- children: /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: cn("agg-order-panel-body flex flex-col", classNames == null ? void 0 : classNames.body), children: [
7951
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex flex-col items-center gap-6 p-8", children: [
7952
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8147
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: cn("agg-order-panel-body flex flex-col", classNames == null ? void 0 : classNames.body), children: [
8148
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex flex-col items-center gap-6 p-8", children: [
8149
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7953
8150
  "div",
7954
8151
  {
7955
8152
  className: cn(
7956
8153
  "flex h-15 w-15 items-center justify-center rounded-full",
7957
- resolvedIconContainerClassName
8154
+ "bg-agg-primary/15"
7958
8155
  ),
7959
- children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Icon, { name: resolvedIconName, className: cn("h-6 w-6", resolvedIconToneClassName) })
8156
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Icon, { name: "success-check", className: cn("h-6 w-6", "text-agg-primary") })
7960
8157
  }
7961
8158
  ),
7962
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
8159
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
7963
8160
  "div",
7964
8161
  {
7965
8162
  className: cn(
@@ -7967,31 +8164,31 @@ var PlaceOrderResolvedView = ({
7967
8164
  classNames == null ? void 0 : classNames.content
7968
8165
  ),
7969
8166
  children: [
7970
- tradingState.market ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Typography, { variant: "body", children: tradingState.market.question }) : null,
7971
- tradingState.winningOutcome ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Typography, { variant: "body-large-strong", children: tradingLabels.outcome(tradingState.winningOutcome.label) }) : null
8167
+ tradingState.market ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Typography, { variant: "body", children: tradingState.market.question }) : null,
8168
+ tradingState.winningOutcome ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Typography, { variant: "body-large-strong", children: tradingLabels.outcome(tradingState.winningOutcome.label) }) : null
7972
8169
  ]
7973
8170
  }
7974
8171
  )
7975
8172
  ] }),
7976
- resolvedClaim ? /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_jsx_runtime115.Fragment, { children: [
7977
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
7978
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex w-full flex-col gap-5 p-6", children: [
7979
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Typography, { variant: "body-strong", className: "text-center", children: (_d = extendedTradingLabels.resolvedEarningsTitle) != null ? _d : "Your Earnings" }),
7980
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex flex-col gap-3 text-agg-sm leading-agg-5 text-agg-foreground", children: [
7981
- resolvedClaim.resolutionDateLabel ? /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
7982
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { children: (_e = extendedTradingLabels.resolvedResolutionDateLabel) != null ? _e : "Resolution date" }),
7983
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.resolutionDateLabel })
8173
+ resolvedClaim ? /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(import_jsx_runtime119.Fragment, { children: [
8174
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
8175
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex w-full flex-col gap-5 p-6", children: [
8176
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Typography, { variant: "body-strong", className: "text-center", children: (_a = extendedTradingLabels.resolvedEarningsTitle) != null ? _a : "Your Earnings" }),
8177
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex flex-col gap-3 text-agg-sm leading-agg-5 text-agg-foreground", children: [
8178
+ resolvedClaim.resolutionDateLabel ? /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
8179
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { children: (_b = extendedTradingLabels.resolvedResolutionDateLabel) != null ? _b : "Resolution date" }),
8180
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.resolutionDateLabel })
7984
8181
  ] }) : null,
7985
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
7986
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { children: (_f = extendedTradingLabels.resolvedSharesLabel) != null ? _f : "Shares" }),
7987
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.sharesLabel })
8182
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
8183
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { children: (_c = extendedTradingLabels.resolvedSharesLabel) != null ? _c : "Shares" }),
8184
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.sharesLabel })
7988
8185
  ] }),
7989
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
7990
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { children: (_g = extendedTradingLabels.resolvedTotalPayoutLabel) != null ? _g : "Total payout" }),
7991
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.totalPayoutLabel })
8186
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
8187
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { children: (_d = extendedTradingLabels.resolvedTotalPayoutLabel) != null ? _d : "Total payout" }),
8188
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { className: "font-agg-bold", children: resolvedClaim.totalPayoutLabel })
7992
8189
  ] })
7993
8190
  ] }),
7994
- resolvedClaim.onClaim ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8191
+ resolvedClaim.onClaim ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
7995
8192
  Button,
7996
8193
  {
7997
8194
  size: "large",
@@ -7999,7 +8196,7 @@ var PlaceOrderResolvedView = ({
7999
8196
  onClick: resolvedClaim.onClaim,
8000
8197
  isLoading: resolvedClaim.isClaiming,
8001
8198
  disabled: resolvedClaim.isClaiming,
8002
- children: (_h = extendedTradingLabels.claimWinnings) != null ? _h : "Claim Winnings"
8199
+ children: (_e = extendedTradingLabels.claimWinnings) != null ? _e : "Claim Winnings"
8003
8200
  }
8004
8201
  ) : null
8005
8202
  ] })
@@ -8012,18 +8209,18 @@ var renderRouteBreakdownRow = (row) => {
8012
8209
  var _a, _b;
8013
8210
  const venueLabel = getTradingVenueLabel(row.venue);
8014
8211
  const rowKey = `${row.venue}-${row.label}-${row.priceLabel}-${(_a = row.resultLabel) != null ? _a : ""}`;
8015
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
8212
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
8016
8213
  "div",
8017
8214
  {
8018
8215
  className: "agg-route-breakdown-row flex items-center justify-between gap-4 text-left",
8019
8216
  children: [
8020
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-route-breakdown-market flex min-w-0 items-center gap-2", children: [
8021
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(VenueLogo, { venue: row.venue, className: "size-3!", ariaLabel: venueLabel }),
8022
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "agg-route-breakdown-label truncate text-agg-sm leading-agg-5 text-agg-foreground", children: row.label })
8217
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "agg-route-breakdown-market flex min-w-0 items-center gap-2", children: [
8218
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(VenueLogo, { venue: row.venue, className: "size-3!", ariaLabel: venueLabel }),
8219
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "agg-route-breakdown-label truncate text-agg-sm leading-agg-5 text-agg-foreground", children: row.label })
8023
8220
  ] }),
8024
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-route-breakdown-value flex shrink-0 items-center gap-2 text-agg-sm leading-agg-5", children: [
8025
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "text-agg-muted-foreground", children: row.priceLabel }),
8026
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "text-agg-foreground", children: (_b = row.resultLabel) != null ? _b : "" })
8221
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "agg-route-breakdown-value flex shrink-0 items-center gap-2 text-agg-sm leading-agg-5", children: [
8222
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "text-agg-muted-foreground", children: row.priceLabel }),
8223
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "text-agg-foreground", children: (_b = row.resultLabel) != null ? _b : "" })
8027
8224
  ] })
8028
8225
  ]
8029
8226
  },
@@ -8041,7 +8238,7 @@ var renderRouteCard = ({
8041
8238
  var _a, _b;
8042
8239
  const showSplitDetails = isSelected && isExpanded && card.kind === "split" && !!((_a = card.rows) == null ? void 0 : _a.length);
8043
8240
  const ariaLabel = [card.label, card.hint, card.value].filter(Boolean).join(" ");
8044
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8241
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8045
8242
  "button",
8046
8243
  {
8047
8244
  type: "button",
@@ -8060,10 +8257,10 @@ var renderRouteCard = ({
8060
8257
  isSelected && !card.isUnavailable ? "border border-agg-trade-highlight-border bg-linear-to-b from-agg-trade-highlight-surface-from to-agg-trade-highlight-surface-to" : "border-transparent bg-agg-secondary-hover"
8061
8258
  ),
8062
8259
  onClick: () => onSelect(card.id),
8063
- children: /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-route-card-content relative z-10 flex flex-col gap-3", children: [
8064
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-route-card-header flex items-center justify-between gap-4", children: [
8065
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-route-card-meta flex min-w-0 gap-3 items-center", children: [
8066
- card.kind === "split" ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8260
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "agg-route-card-content relative z-10 flex flex-col gap-3", children: [
8261
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "agg-route-card-header flex items-center justify-between gap-4", children: [
8262
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "agg-route-card-meta flex min-w-0 gap-3 items-center", children: [
8263
+ card.kind === "split" ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8067
8264
  Icon,
8068
8265
  {
8069
8266
  name: "sparkles-filled",
@@ -8074,7 +8271,7 @@ var renderRouteCard = ({
8074
8271
  ),
8075
8272
  "aria-hidden": "true"
8076
8273
  }
8077
- ) : card.venue ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8274
+ ) : card.venue ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8078
8275
  VenueLogo,
8079
8276
  {
8080
8277
  venue: card.venue,
@@ -8082,10 +8279,10 @@ var renderRouteCard = ({
8082
8279
  ariaLabel: getTradingVenueLabel(card.venue)
8083
8280
  }
8084
8281
  ) : null,
8085
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex flex-col gap-1 min-w-0", children: [
8086
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex items-center gap-1.5", children: [
8087
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "agg-route-card-title truncate text-agg-sm leading-agg-5 text-agg-foreground", children: card.label }),
8088
- card.isUnavailable ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8282
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex flex-col gap-1 min-w-0", children: [
8283
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex items-center gap-1.5", children: [
8284
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "agg-route-card-title truncate text-agg-sm leading-agg-5 text-agg-foreground", children: card.label }),
8285
+ card.isUnavailable ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8089
8286
  Icon,
8090
8287
  {
8091
8288
  name: "lock",
@@ -8093,7 +8290,7 @@ var renderRouteCard = ({
8093
8290
  className: "shrink-0 text-agg-muted-foreground",
8094
8291
  "aria-hidden": "true"
8095
8292
  }
8096
- ) : card.kind === "split" && isSelected ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8293
+ ) : card.kind === "split" && isSelected ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8097
8294
  Icon,
8098
8295
  {
8099
8296
  name: showSplitDetails ? "chevron-up" : "chevron-down",
@@ -8103,10 +8300,10 @@ var renderRouteCard = ({
8103
8300
  }
8104
8301
  ) : null
8105
8302
  ] }),
8106
- card.hint ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "agg-route-card-hint text-agg-xs leading-agg-4 text-agg-muted-foreground", children: card.hint }) : null
8303
+ card.hint ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "agg-route-card-hint text-agg-xs leading-agg-4 text-agg-muted-foreground", children: card.hint }) : null
8107
8304
  ] })
8108
8305
  ] }),
8109
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8306
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8110
8307
  "p",
8111
8308
  {
8112
8309
  className: cn(
@@ -8118,9 +8315,9 @@ var renderRouteCard = ({
8118
8315
  }
8119
8316
  )
8120
8317
  ] }),
8121
- showSplitDetails ? /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_jsx_runtime115.Fragment, { children: [
8122
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "agg-route-card-description text-agg-xs leading-agg-4 text-agg-foreground", children: tradingLabels.splitOrderDescription }),
8123
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: "agg-route-breakdown flex flex-col gap-3", children: (_b = card.rows) == null ? void 0 : _b.map((row) => renderRouteBreakdownRow(row)) })
8318
+ showSplitDetails ? /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(import_jsx_runtime119.Fragment, { children: [
8319
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "agg-route-card-description text-agg-xs leading-agg-4 text-agg-foreground", children: tradingLabels.splitOrderDescription }),
8320
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: "agg-route-breakdown flex flex-col gap-3", children: (_b = card.rows) == null ? void 0 : _b.map((row) => renderRouteBreakdownRow(row)) })
8124
8321
  ] }) : null
8125
8322
  ] })
8126
8323
  }
@@ -8143,7 +8340,7 @@ var renderSubmissionSurface = ({
8143
8340
  executionVenue: progressState.executionVenue,
8144
8341
  labels: tradingLabels
8145
8342
  });
8146
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8343
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8147
8344
  Card,
8148
8345
  {
8149
8346
  className: cn(
@@ -8152,31 +8349,31 @@ var renderSubmissionSurface = ({
8152
8349
  classNames == null ? void 0 : classNames.root,
8153
8350
  className
8154
8351
  ),
8155
- children: /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: cn("agg-order-submission-body flex flex-col gap-6 p-5", classNames == null ? void 0 : classNames.body), children: [
8352
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: cn("agg-order-submission-body flex flex-col gap-6 p-5", classNames == null ? void 0 : classNames.body), children: [
8156
8353
  renderCardHeader({
8157
8354
  className: classNames == null ? void 0 : classNames.header,
8158
8355
  headerSubtitle,
8159
8356
  headerImage,
8160
8357
  headerTitle
8161
8358
  }),
8162
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: cn("agg-order-panel-content flex flex-col gap-6", classNames == null ? void 0 : classNames.content), children: [
8163
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-order-submission-status flex h-12 w-full items-center justify-center gap-3 rounded-agg-full bg-agg-primary-hover px-8 text-agg-base font-agg-bold leading-agg-6 text-agg-on-primary", children: [
8164
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(LoadingGlyph, { enableAnimations, className: "h-4 w-4 text-current" }),
8165
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { children: actionLabel })
8359
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: cn("agg-order-panel-content flex flex-col gap-6", classNames == null ? void 0 : classNames.content), children: [
8360
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "agg-order-submission-status flex h-12 w-full items-center justify-center gap-3 rounded-agg-full bg-agg-primary-hover px-8 text-agg-base font-agg-bold leading-agg-6 text-agg-on-primary", children: [
8361
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(LoadingGlyph, { enableAnimations, className: "h-4 w-4 text-current" }),
8362
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { children: actionLabel })
8166
8363
  ] }),
8167
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8364
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8168
8365
  "div",
8169
8366
  {
8170
8367
  className: "agg-order-submission-steps agg-order-submission-group flex flex-col gap-2",
8171
8368
  "data-testid": "agg-order-submission-steps",
8172
8369
  children: displayRows.map((step) => {
8173
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
8370
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
8174
8371
  "div",
8175
8372
  {
8176
8373
  className: "agg-order-submission-step flex items-center gap-2 text-agg-sm leading-agg-5 text-agg-foreground",
8177
8374
  "data-status": step.status,
8178
8375
  children: [
8179
- step.status === "complete" ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8376
+ step.status === "complete" ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8180
8377
  Icon,
8181
8378
  {
8182
8379
  name: "check-circle",
@@ -8184,15 +8381,15 @@ var renderSubmissionSurface = ({
8184
8381
  className: "h-3 w-3 shrink-0 text-agg-primary",
8185
8382
  "aria-hidden": "true"
8186
8383
  }
8187
- ) : /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8384
+ ) : /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8188
8385
  LoadingGlyph,
8189
8386
  {
8190
8387
  enableAnimations,
8191
8388
  className: "h-3 w-3 shrink-0 text-agg-primary"
8192
8389
  }
8193
8390
  ),
8194
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "min-w-0 flex-1", children: step.label }),
8195
- step.venue ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8391
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "min-w-0 flex-1", children: step.label }),
8392
+ step.venue ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8196
8393
  VenueLogo,
8197
8394
  {
8198
8395
  venue: step.venue,
@@ -8213,7 +8410,7 @@ var renderSubmissionSurface = ({
8213
8410
  }
8214
8411
  );
8215
8412
  };
8216
- var InitiateKycButton = ({ label: label2, onOpen }) => /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8413
+ var InitiateKycButton = ({ label: label2, onOpen }) => /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8217
8414
  Button,
8218
8415
  {
8219
8416
  size: "large",
@@ -8230,35 +8427,35 @@ var KycVerifyModal = ({
8230
8427
  isInitiating,
8231
8428
  labels
8232
8429
  }) => {
8233
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8430
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8234
8431
  Modal,
8235
8432
  {
8236
8433
  open,
8237
8434
  onOpenChange: (next) => {
8238
8435
  onOpenChange(next);
8239
8436
  },
8240
- children: /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(Modal.Container, { maxWidth: "480px", "aria-label": labels.title, children: [
8241
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Dialog2.Title, { className: "sr-only", children: labels.title }),
8242
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Dialog2.Description, { className: "sr-only", children: labels.description }),
8243
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(Modal.Body, { classNames: { root: "sm:px-10 sm:py-12" }, children: [
8244
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8437
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(Modal.Container, { maxWidth: "480px", "aria-label": labels.title, children: [
8438
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Dialog2.Title, { className: "sr-only", children: labels.title }),
8439
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Dialog2.Description, { className: "sr-only", children: labels.description }),
8440
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(Modal.Body, { classNames: { root: "sm:px-10 sm:py-12" }, children: [
8441
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8245
8442
  "button",
8246
8443
  {
8247
8444
  type: "button",
8248
8445
  className: "absolute right-8 top-7 flex items-center justify-center text-agg-foreground transition-colors hover:text-agg-foreground/80",
8249
8446
  onClick: () => onOpenChange(false),
8250
8447
  "aria-label": "Close",
8251
- children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(CloseIcon, { className: "h-6 w-6" })
8448
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(CloseIcon, { className: "h-6 w-6" })
8252
8449
  }
8253
8450
  ),
8254
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex flex-col items-center gap-8 text-center", children: [
8255
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: "flex h-[60px] w-[60px] items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(UserTrustIcon, { className: "h-[60px] w-[60px]" }) }),
8256
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex flex-col items-center gap-3", children: [
8257
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold text-agg-foreground", children: labels.title }),
8258
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "agg-type-body text-agg-foreground", children: labels.description })
8451
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex flex-col items-center gap-8 text-center", children: [
8452
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: "flex h-[60px] w-[60px] items-center justify-center text-agg-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(UserTrustIcon, { className: "h-[60px] w-[60px]" }) }),
8453
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex flex-col items-center gap-3", children: [
8454
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold text-agg-foreground", children: labels.title }),
8455
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "agg-type-body text-agg-foreground", children: labels.description })
8259
8456
  ] }),
8260
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex w-full flex-col items-center gap-5", children: [
8261
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8457
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex w-full flex-col items-center gap-5", children: [
8458
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8262
8459
  Button,
8263
8460
  {
8264
8461
  size: "large",
@@ -8269,7 +8466,7 @@ var KycVerifyModal = ({
8269
8466
  children: labels.startVerification
8270
8467
  }
8271
8468
  ),
8272
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8469
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8273
8470
  "button",
8274
8471
  {
8275
8472
  type: "button",
@@ -8289,27 +8486,27 @@ var KycSuccessModal = ({
8289
8486
  open,
8290
8487
  onOpenChange,
8291
8488
  labels
8292
- }) => /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Modal, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(Modal.Container, { maxWidth: "480px", "aria-label": labels.title, children: [
8293
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Dialog2.Title, { className: "sr-only", children: labels.title }),
8294
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Dialog2.Description, { className: "sr-only", children: labels.description }),
8295
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(Modal.Body, { classNames: { root: "px-10 py-12" }, children: [
8296
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8489
+ }) => /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Modal, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(Modal.Container, { maxWidth: "480px", "aria-label": labels.title, children: [
8490
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Dialog2.Title, { className: "sr-only", children: labels.title }),
8491
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Dialog2.Description, { className: "sr-only", children: labels.description }),
8492
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(Modal.Body, { classNames: { root: "px-10 py-12" }, children: [
8493
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8297
8494
  "button",
8298
8495
  {
8299
8496
  type: "button",
8300
8497
  className: "absolute right-8 top-7 flex items-center justify-center text-agg-foreground transition-colors hover:text-agg-foreground/80",
8301
8498
  onClick: () => onOpenChange(false),
8302
8499
  "aria-label": "Close",
8303
- children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(CloseIcon, { className: "h-6 w-6" })
8500
+ children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(CloseIcon, { className: "h-6 w-6" })
8304
8501
  }
8305
8502
  ),
8306
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex flex-col items-center gap-8 text-center", children: [
8307
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: "flex h-[60px] w-[60px] items-center justify-center rounded-full bg-agg-success/15", children: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(SuccessCheckIcon, { className: "h-6 w-6 text-agg-success" }) }),
8308
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex flex-col items-center gap-3", children: [
8309
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold text-agg-foreground", children: labels.title }),
8310
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "agg-type-body text-agg-foreground", children: labels.description })
8503
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex flex-col items-center gap-8 text-center", children: [
8504
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: "flex h-[60px] w-[60px] items-center justify-center rounded-full bg-agg-success/15", children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(SuccessCheckIcon, { className: "h-6 w-6 text-agg-success" }) }),
8505
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex flex-col items-center gap-3", children: [
8506
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("h3", { className: "text-agg-2xl leading-agg-8 font-agg-bold text-agg-foreground", children: labels.title }),
8507
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "agg-type-body text-agg-foreground", children: labels.description })
8311
8508
  ] }),
8312
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
8509
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
8313
8510
  Button,
8314
8511
  {
8315
8512
  variant: "secondary",
@@ -8900,6 +9097,7 @@ var PlaceOrder = ({
8900
9097
  const activeQuoteData = (_B = (_A = selectedRouteCard == null ? void 0 : selectedRouteCard.quoteData) != null ? _A : smartRoute.data) != null ? _B : null;
8901
9098
  const visibleRouteCards = orderedRouteCards.length > PLACE_ORDER_ROUTE_COLLAPSED_CARD_COUNT && !isRoutesExpanded ? orderedRouteCards.slice(0, PLACE_ORDER_ROUTE_COLLAPSED_CARD_COUNT) : orderedRouteCards;
8902
9099
  const hasEnteredAmount = internalAmount > 0;
9100
+ const isQuoteLoading = hasEnteredAmount && (smartRoute.isFetching || smartRoute.isLoading);
8903
9101
  const isInsufficientBalance = !isSell && isAuthenticated && hasEnteredAmount && !isBalanceLoading && internalAmount > totalBalance;
8904
9102
  const isBelowMinimum = !isSell && hasEnteredAmount && internalAmount < MIN_BUY_ORDER_AMOUNT;
8905
9103
  const quoteStatus = (0, import_react9.useMemo)(() => {
@@ -9042,33 +9240,23 @@ var PlaceOrder = ({
9042
9240
  }, [selectedRouteCard, geoBlockedVenuesFromWarnings]);
9043
9241
  const shouldShowGeoBlockBanner = isTradingBlocked || selectedRouteGeoBlocked || isPrimaryVenueGeoBlocked;
9044
9242
  const actionLabel = `${internalTab === "buy" ? tradingLabels.buy : tradingLabels.sell} ${selectedOutcomeLabel}`.trim();
9045
- const isActionDisabled = isPrimaryActionDisabled || !orderEligibility.canPlaceOrder || isActionLoading || !hasEnteredAmount || !scopedSelectedMarket || isInsufficientBalance || isBelowMinimum || !selectedRouteCard || !selectedRouteCard.quoteData.quoteId || selectedRouteGeoBlocked || !isAuthenticated || quoteStatus !== void 0;
9243
+ const isActionDisabled = isPrimaryActionDisabled || !orderEligibility.canPlaceOrder || isActionLoading || !hasEnteredAmount || !scopedSelectedMarket || isInsufficientBalance || isBelowMinimum || isQuoteLoading || !selectedRouteCard || !selectedRouteCard.quoteData.quoteId || selectedRouteGeoBlocked || !isAuthenticated || quoteStatus !== void 0;
9046
9244
  const shouldShowSmartRouting = orderEligibility.canPlaceOrder && hasEnteredAmount && (orderedRouteCards.length > 0 || smartRoute.isFetching);
9047
- const shouldShowRouteToggle = orderedRouteCards.length > PLACE_ORDER_ROUTE_COLLAPSED_CARD_COUNT;
9048
- const handleStartNewTrade = (0, import_react9.useCallback)(() => {
9245
+ const shouldShowRouteToggle = !isQuoteLoading && orderedRouteCards.length > PLACE_ORDER_ROUTE_COLLAPSED_CARD_COUNT;
9246
+ const handleReturnToOrderForm = (0, import_react9.useCallback)(() => {
9049
9247
  const submittedSelection = submittedSelectionRef.current;
9050
9248
  submittedSelectionRef.current = null;
9051
9249
  setSubmissionProgressState(null);
9052
9250
  setSubmissionFeedback(null);
9053
- setInternalAmount(PLACE_ORDER_DEFAULT_AMOUNT);
9054
- setSellFilledForOutcomeId(null);
9055
- setInternalSlippage(DEFAULT_SLIPPAGE_VALUE);
9056
- setInternalTab("buy");
9057
- tradingContext == null ? void 0 : tradingContext.setTradeSide(import_hooks29.TradeSide.Buy);
9058
9251
  setIsRoutesExpanded(false);
9059
9252
  setSelectedRouteCardId(null);
9060
- onAmountChange == null ? void 0 : onAmountChange(PLACE_ORDER_DEFAULT_AMOUNT);
9061
- onSlippageChange == null ? void 0 : onSlippageChange(formatPercentageValue(DEFAULT_SLIPPAGE_VALUE));
9062
- onTabChange == null ? void 0 : onTabChange("buy");
9063
9253
  if (submittedSelection && tradingContext) {
9064
9254
  tradingContext.selectMarketAndOutcome(
9065
9255
  submittedSelection.marketId,
9066
9256
  submittedSelection.outcomeId
9067
9257
  );
9068
- } else if (scopedSelectedEvent) {
9069
- tradingContext == null ? void 0 : tradingContext.initializeFromEvent(scopedSelectedEvent);
9070
9258
  }
9071
- }, [onAmountChange, onSlippageChange, onTabChange, scopedSelectedEvent, tradingContext]);
9259
+ }, [tradingContext]);
9072
9260
  const handleShareTrade = () => {
9073
9261
  var _a2, _b2;
9074
9262
  const shareText = (_b2 = (_a2 = submissionProgressState == null ? void 0 : submissionProgressState.summary) == null ? void 0 : _a2.shareText) == null ? void 0 : _b2.trim();
@@ -9208,8 +9396,8 @@ var PlaceOrder = ({
9208
9396
  ]);
9209
9397
  const handleRetrySubmission = (0, import_react9.useCallback)(() => __async(null, null, function* () {
9210
9398
  var _a2, _b2, _c2;
9211
- if (!orderEligibility.canPlaceOrder) {
9212
- handleStartNewTrade();
9399
+ if (!orderEligibility.canPlaceOrder || (failureSummary == null ? void 0 : failureSummary.kind) === "generic") {
9400
+ handleReturnToOrderForm();
9213
9401
  return;
9214
9402
  }
9215
9403
  setSubmissionFeedback(null);
@@ -9281,7 +9469,7 @@ var PlaceOrder = ({
9281
9469
  executionProgress.terminalOrderEvents,
9282
9470
  failureSummary == null ? void 0 : failureSummary.kind,
9283
9471
  handleExecuteQuote,
9284
- handleStartNewTrade,
9472
+ handleReturnToOrderForm,
9285
9473
  internalAmount,
9286
9474
  internalTab,
9287
9475
  isSell,
@@ -9295,7 +9483,7 @@ var PlaceOrder = ({
9295
9483
  ]);
9296
9484
  const resolvedStatusClassName = cn(classNames == null ? void 0 : classNames.root, className);
9297
9485
  if (isLoading) {
9298
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9486
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9299
9487
  Skeleton,
9300
9488
  {
9301
9489
  ariaLabel: labels.common.loading,
@@ -9306,19 +9494,19 @@ var PlaceOrder = ({
9306
9494
  }
9307
9495
  if (submissionProgressState) {
9308
9496
  if (submissionProgressState.phase === "success" && submissionProgressState.summary) {
9309
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9497
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9310
9498
  PlaceOrderSuccessView,
9311
9499
  {
9312
9500
  className: resolvedStatusClassName,
9313
9501
  summary: submissionProgressState.summary,
9314
9502
  tradingLabels,
9315
- onDone: handleStartNewTrade,
9503
+ onDone: handleReturnToOrderForm,
9316
9504
  onShare: handleShareTrade
9317
9505
  }
9318
9506
  );
9319
9507
  }
9320
9508
  if (submissionProgressState.phase === "failed") {
9321
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9509
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9322
9510
  PlaceOrderFailureView,
9323
9511
  {
9324
9512
  className: resolvedStatusClassName,
@@ -9326,7 +9514,7 @@ var PlaceOrder = ({
9326
9514
  summary: failureSummary,
9327
9515
  tradingLabels,
9328
9516
  onRetry: handleRetrySubmission,
9329
- onDone: handleStartNewTrade,
9517
+ onDone: handleReturnToOrderForm,
9330
9518
  onSkip: handleSkipToSuccess
9331
9519
  }
9332
9520
  );
@@ -9424,7 +9612,7 @@ var PlaceOrder = ({
9424
9612
  }
9425
9613
  });
9426
9614
  if (!orderEligibility.canPlaceOrder && resolvedReadOnlyTradingState.kind !== "open") {
9427
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9615
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9428
9616
  PlaceOrderResolvedView,
9429
9617
  {
9430
9618
  tradingState: resolvedReadOnlyTradingState,
@@ -9434,8 +9622,8 @@ var PlaceOrder = ({
9434
9622
  }
9435
9623
  );
9436
9624
  }
9437
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_react9.Fragment, { children: [
9438
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
9625
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(import_react9.Fragment, { children: [
9626
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
9439
9627
  Card,
9440
9628
  {
9441
9629
  className: cn(
@@ -9452,8 +9640,8 @@ var PlaceOrder = ({
9452
9640
  headerTitle,
9453
9641
  onClose
9454
9642
  }),
9455
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: cn("agg-order-panel-content flex flex-col gap-6", classNames == null ? void 0 : classNames.content), children: [
9456
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9643
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: cn("agg-order-panel-content flex flex-col gap-6", classNames == null ? void 0 : classNames.content), children: [
9644
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9457
9645
  "div",
9458
9646
  {
9459
9647
  className: "agg-order-tabs flex items-end border-b border-agg-separator",
@@ -9464,7 +9652,7 @@ var PlaceOrder = ({
9464
9652
  { value: "sell", label: tradingLabels.sell, ref: sellTabRef }
9465
9653
  ].map((tabItem) => {
9466
9654
  const isActive = internalTab === tabItem.value;
9467
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
9655
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
9468
9656
  "button",
9469
9657
  {
9470
9658
  ref: tabItem.ref,
@@ -9488,7 +9676,7 @@ var PlaceOrder = ({
9488
9676
  onKeyDown: (event) => handleTabKeyDown(event, tabItem.value),
9489
9677
  children: [
9490
9678
  tabItem.label,
9491
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9679
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9492
9680
  "span",
9493
9681
  {
9494
9682
  "aria-hidden": "true",
@@ -9510,7 +9698,7 @@ var PlaceOrder = ({
9510
9698
  })
9511
9699
  }
9512
9700
  ),
9513
- outcomes.length >= 2 ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: "agg-outcomes flex w-full max-w-full gap-2", children: outcomes.map((outcome, index) => {
9701
+ outcomes.length >= 2 ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: "agg-outcomes flex w-full max-w-full gap-2", children: outcomes.map((outcome, index) => {
9514
9702
  var _a2, _b2, _c2;
9515
9703
  const price = getDisplayOutcomePrice({
9516
9704
  outcomeId: outcome.id,
@@ -9524,7 +9712,7 @@ var PlaceOrder = ({
9524
9712
  });
9525
9713
  const isActive = outcome.id === scopedSelectedOutcomeId;
9526
9714
  const isPositive = resolveIsPositiveOutcome(outcome, index);
9527
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
9715
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
9528
9716
  "button",
9529
9717
  {
9530
9718
  "data-id": outcome.id,
@@ -9544,7 +9732,7 @@ var PlaceOrder = ({
9544
9732
  disabled: !orderEligibility.canPlaceOrder || isResolvedOutcomeCtaLocked,
9545
9733
  onClick: () => handleOutcomeChange(outcome.id),
9546
9734
  children: [
9547
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9735
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9548
9736
  Typography,
9549
9737
  {
9550
9738
  as: "span",
@@ -9553,18 +9741,18 @@ var PlaceOrder = ({
9553
9741
  children: (_c2 = outcome.title) != null ? _c2 : outcome.label
9554
9742
  }
9555
9743
  ),
9556
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Typography, { as: "span", variant: isActive ? "body-strong" : "body", children: formatProbabilityCents(price) })
9744
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Typography, { as: "span", variant: isActive ? "body-strong" : "body", children: formatProbabilityCents(price) })
9557
9745
  ]
9558
9746
  },
9559
9747
  outcome.id
9560
9748
  );
9561
9749
  }) }) : null,
9562
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-order-amount-section flex items-start justify-between gap-4", children: [
9563
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-order-amount-meta flex flex-col", children: [
9564
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "agg-order-amount-label text-agg-base font-agg-bold leading-agg-6 text-agg-foreground whitespace-nowrap", children: tradingLabels.amount(internalTab) }),
9565
- isAuthenticated ? isSell ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: "agg-balance-value flex items-baseline gap-1.5 text-agg-sm leading-agg-5 text-agg-muted-foreground", children: isCurrentSellableSharesLoading ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(LoadingIcon, { size: "small" }) : /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_jsx_runtime115.Fragment, { children: [
9566
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { children: tradingLabels.shares(displayedCurrentSellableShares) }),
9567
- displayedCurrentSellableShares > 0 ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9750
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "agg-order-amount-section flex items-start justify-between gap-4", children: [
9751
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "agg-order-amount-meta flex flex-col", children: [
9752
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "agg-order-amount-label text-agg-base font-agg-bold leading-agg-6 text-agg-foreground whitespace-nowrap", children: tradingLabels.amount(internalTab) }),
9753
+ isAuthenticated ? isSell ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: "agg-balance-value flex items-baseline gap-1.5 text-agg-sm leading-agg-5 text-agg-muted-foreground", children: isCurrentSellableSharesLoading ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(LoadingIcon, { size: "small" }) : /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(import_jsx_runtime119.Fragment, { children: [
9754
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { children: tradingLabels.shares(displayedCurrentSellableShares) }),
9755
+ displayedCurrentSellableShares > 0 ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9568
9756
  "button",
9569
9757
  {
9570
9758
  type: "button",
@@ -9580,9 +9768,9 @@ var PlaceOrder = ({
9580
9768
  children: tradingLabels.maxShares
9581
9769
  }
9582
9770
  ) : null
9583
- ] }) }) : /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "agg-balance-value flex items-center gap-2 text-agg-sm leading-agg-5 text-agg-muted-foreground", children: isBalanceLoading ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(LoadingIcon, { size: "small" }) : tradingLabels.balance(formatUsd(totalBalance)) }) : null
9771
+ ] }) }) : /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "agg-balance-value flex items-center gap-2 text-agg-sm leading-agg-5 text-agg-muted-foreground", children: isBalanceLoading ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(LoadingIcon, { size: "small" }) : tradingLabels.balance(formatUsd(totalBalance)) }) : null
9584
9772
  ] }),
9585
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9773
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9586
9774
  CurrencyInput,
9587
9775
  {
9588
9776
  value: internalAmount,
@@ -9602,9 +9790,9 @@ var PlaceOrder = ({
9602
9790
  }
9603
9791
  )
9604
9792
  ] }),
9605
- showFeesBreakdown && hasEnteredAmount && estimatedFeesValue ? /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-order-fees-section flex items-center justify-between gap-4", children: [
9606
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "flex items-center gap-1.5", children: [
9607
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9793
+ showFeesBreakdown && hasEnteredAmount && estimatedFeesValue ? /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "agg-order-fees-section flex items-center justify-between gap-4", children: [
9794
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex items-center gap-1.5", children: [
9795
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9608
9796
  Typography,
9609
9797
  {
9610
9798
  variant: "text-sm",
@@ -9612,17 +9800,17 @@ var PlaceOrder = ({
9612
9800
  children: tradingLabels.estimatedFees
9613
9801
  }
9614
9802
  ),
9615
- feeBreakdownRows.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9803
+ feeBreakdownRows.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9616
9804
  Tooltip,
9617
9805
  {
9618
9806
  "aria-label": tradingLabels.estimatedFeesTooltipAria,
9619
- content: /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: "flex min-w-[220px] flex-col gap-2", children: feeBreakdownRows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
9807
+ content: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: "flex min-w-[220px] flex-col gap-2", children: feeBreakdownRows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
9620
9808
  "div",
9621
9809
  {
9622
9810
  className: "flex items-center justify-between gap-3 text-agg-sm leading-agg-5",
9623
9811
  children: [
9624
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "text-agg-muted-foreground", children: row.label }),
9625
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "font-agg-bold text-agg-foreground", children: row.value })
9812
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { className: "text-agg-muted-foreground", children: row.label }),
9813
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { className: "font-agg-bold text-agg-foreground", children: row.value })
9626
9814
  ]
9627
9815
  },
9628
9816
  row.label
@@ -9630,12 +9818,12 @@ var PlaceOrder = ({
9630
9818
  }
9631
9819
  ) : null
9632
9820
  ] }),
9633
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: estimatedFeesValue })
9821
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: estimatedFeesValue })
9634
9822
  ] }) : null,
9635
- shouldShowSmartRouting ? /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-route-panel flex flex-col gap-3", children: [
9636
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-route-panel-header flex items-center justify-between gap-4", children: [
9637
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "agg-route-panel-title text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: tradingLabels.smartRouting }),
9638
- shouldShowRouteToggle && !isRoutesExpanded ? /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
9823
+ shouldShowSmartRouting ? /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "agg-route-panel flex flex-col gap-3", children: [
9824
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "agg-route-panel-header flex items-center justify-between gap-4", children: [
9825
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "agg-route-panel-title text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: tradingLabels.smartRouting }),
9826
+ shouldShowRouteToggle && !isRoutesExpanded ? /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
9639
9827
  "button",
9640
9828
  {
9641
9829
  type: "button",
@@ -9643,8 +9831,8 @@ var PlaceOrder = ({
9643
9831
  "aria-label": tradingLabels.viewAllRoutes(orderedRouteCards.length),
9644
9832
  onClick: () => setIsRoutesExpanded((currentValue) => !currentValue),
9645
9833
  children: [
9646
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { children: tradingLabels.viewAllRoutes(orderedRouteCards.length) }),
9647
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9834
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { children: tradingLabels.viewAllRoutes(orderedRouteCards.length) }),
9835
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9648
9836
  Icon,
9649
9837
  {
9650
9838
  name: "chevron-down",
@@ -9657,8 +9845,20 @@ var PlaceOrder = ({
9657
9845
  }
9658
9846
  ) : null
9659
9847
  ] }),
9660
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("div", { className: "agg-route-list flex flex-col gap-2", children: visibleRouteCards.length > 0 ? visibleRouteCards.map((card) => {
9661
- return /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(import_react9.Fragment, { children: renderRouteCard({
9848
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("div", { className: "agg-route-list flex flex-col gap-2", children: isQuoteLoading ? /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
9849
+ "div",
9850
+ {
9851
+ className: "agg-route-loading flex flex-col gap-2",
9852
+ role: "status",
9853
+ "aria-label": labels.common.loading,
9854
+ "aria-live": "polite",
9855
+ children: [
9856
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(PlaceOrderRouteCardSkeleton, {}),
9857
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(PlaceOrderRouteCardSkeleton, {})
9858
+ ]
9859
+ }
9860
+ ) : visibleRouteCards.length > 0 ? visibleRouteCards.map((card) => {
9861
+ return /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_react9.Fragment, { children: renderRouteCard({
9662
9862
  card,
9663
9863
  enableAnimations,
9664
9864
  isExpanded: card.kind === "split" ? isSplitDetailOpen : isRoutesExpanded,
@@ -9666,17 +9866,14 @@ var PlaceOrder = ({
9666
9866
  onSelect: handleRouteCardSelect,
9667
9867
  tradingLabels
9668
9868
  }) }, card.id);
9669
- }) : smartRoute.isFetching ? /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(import_jsx_runtime115.Fragment, { children: [
9670
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(PlaceOrderRouteCardSkeleton, {}),
9671
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(PlaceOrderRouteCardSkeleton, {})
9672
- ] }) : null })
9869
+ }) : null })
9673
9870
  ] }) : null,
9674
- hasEnteredAmount && selectedRouteCard && orderEligibility.canPlaceOrder ? /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-order-summary flex items-start justify-between gap-4", children: [
9675
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-order-summary-meta flex flex-col", children: [
9676
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "agg-order-summary-label text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: tradingLabels.toWin(internalTab) }),
9677
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "agg-order-summary-hint text-agg-sm leading-agg-5 text-agg-muted-foreground", children: displayedToWinHint })
9871
+ hasEnteredAmount && selectedRouteCard && !isQuoteLoading && orderEligibility.canPlaceOrder ? /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "agg-order-summary flex items-start justify-between gap-4", children: [
9872
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "agg-order-summary-meta flex flex-col", children: [
9873
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "agg-order-summary-label text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: tradingLabels.toWin(internalTab) }),
9874
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "agg-order-summary-hint text-agg-sm leading-agg-5 text-agg-muted-foreground", children: displayedToWinHint })
9678
9875
  ] }),
9679
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9876
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9680
9877
  import_react8.default,
9681
9878
  {
9682
9879
  value: displayedToWinValue,
@@ -9691,7 +9888,7 @@ var PlaceOrder = ({
9691
9888
  }
9692
9889
  )
9693
9890
  ] }) : null,
9694
- /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
9891
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
9695
9892
  "div",
9696
9893
  {
9697
9894
  className: cn(
@@ -9699,23 +9896,23 @@ var PlaceOrder = ({
9699
9896
  classNames == null ? void 0 : classNames.footer
9700
9897
  ),
9701
9898
  children: [
9702
- !shouldShowGeoBlockBanner ? /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-order-alerts flex flex-col gap-3 empty:hidden mb-3", children: [
9703
- submissionFeedback ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9899
+ !shouldShowGeoBlockBanner ? /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "agg-order-alerts flex flex-col gap-3 empty:hidden mb-3", children: [
9900
+ submissionFeedback ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9704
9901
  InlineAlert,
9705
9902
  {
9706
9903
  tone: submissionFeedback.tone,
9707
9904
  message: submissionFeedback.message
9708
9905
  }
9709
9906
  ) : null,
9710
- !submissionFeedback && orderEligibility.canPlaceOrder && !isInsufficientBalance && isBelowMinimum ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9907
+ !submissionFeedback && orderEligibility.canPlaceOrder && !isInsufficientBalance && isBelowMinimum ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9711
9908
  InlineAlert,
9712
9909
  {
9713
9910
  tone: "error",
9714
9911
  message: tradingLabels.minimumOrderAmount(MIN_BUY_ORDER_AMOUNT)
9715
9912
  }
9716
9913
  ) : null,
9717
- !submissionFeedback && orderEligibility.canPlaceOrder && !isInsufficientBalance && !isBelowMinimum && quoteStatus ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(InlineAlert, { tone: quoteStatus.tone, message: quoteStatus.message }) : null,
9718
- !submissionFeedback && orderEligibility.canPlaceOrder && !isInsufficientBalance && !isBelowMinimum && !quoteStatus && isAuthenticated && hasEnteredAmount && smartRouteErrorMessage ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9914
+ !submissionFeedback && orderEligibility.canPlaceOrder && !isInsufficientBalance && !isBelowMinimum && quoteStatus ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(InlineAlert, { tone: quoteStatus.tone, message: quoteStatus.message }) : null,
9915
+ !submissionFeedback && orderEligibility.canPlaceOrder && !isInsufficientBalance && !isBelowMinimum && !quoteStatus && isAuthenticated && hasEnteredAmount && smartRouteErrorMessage ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9719
9916
  InlineAlert,
9720
9917
  {
9721
9918
  tone: "error",
@@ -9727,14 +9924,14 @@ var PlaceOrder = ({
9727
9924
  }
9728
9925
  ) : null
9729
9926
  ] }) : null,
9730
- !submissionFeedback && !shouldShowGeoBlockBanner && orderEligibility.canPlaceOrder && isInsufficientBalance ? /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)(
9927
+ !submissionFeedback && !shouldShowGeoBlockBanner && orderEligibility.canPlaceOrder && isInsufficientBalance ? /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)(
9731
9928
  "div",
9732
9929
  {
9733
9930
  className: "agg-order-insufficient-balance-alert flex items-center justify-center gap-2",
9734
9931
  role: "status",
9735
9932
  "aria-live": "polite",
9736
9933
  children: [
9737
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9934
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9738
9935
  Icon,
9739
9936
  {
9740
9937
  name: "warning-filled",
@@ -9743,11 +9940,11 @@ var PlaceOrder = ({
9743
9940
  "aria-hidden": "true"
9744
9941
  }
9745
9942
  ),
9746
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("span", { className: "text-agg-sm text-agg-foreground", children: tradingLabels.insufficientBalance })
9943
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("span", { className: "text-agg-sm text-agg-foreground", children: tradingLabels.insufficientBalance })
9747
9944
  ]
9748
9945
  }
9749
9946
  ) : null,
9750
- !submissionFeedback && !shouldShowGeoBlockBanner && isInsufficientBalance ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9947
+ !submissionFeedback && !shouldShowGeoBlockBanner && isInsufficientBalance ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9751
9948
  Button,
9752
9949
  {
9753
9950
  size: "large",
@@ -9757,7 +9954,7 @@ var PlaceOrder = ({
9757
9954
  onClick: handleDepositRequiredClick,
9758
9955
  children: tradingLabels.deposit
9759
9956
  }
9760
- ) : needsKycVerification && !submissionFeedback && !shouldShowGeoBlockBanner ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(InitiateKycButton, { label: tradingLabels.kycRequired, onOpen: openVerifyModal }) : !isAuthenticated ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9957
+ ) : needsKycVerification && !submissionFeedback && !shouldShowGeoBlockBanner ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(InitiateKycButton, { label: tradingLabels.kycRequired, onOpen: openVerifyModal }) : !isAuthenticated ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9761
9958
  Button,
9762
9959
  {
9763
9960
  size: "large",
@@ -9768,7 +9965,7 @@ var PlaceOrder = ({
9768
9965
  onClick: import_hooks29.requestAggAuthChooserOpen,
9769
9966
  children: tradingLabels.signInToTrade
9770
9967
  }
9771
- ) : /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9968
+ ) : /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9772
9969
  Button,
9773
9970
  {
9774
9971
  size: "large",
@@ -9783,8 +9980,8 @@ var PlaceOrder = ({
9783
9980
  children: actionLabel
9784
9981
  }
9785
9982
  ),
9786
- !shouldShowGeoBlockBanner && internalTab === "buy" && showFeesBreakdown ? /* @__PURE__ */ (0, import_jsx_runtime115.jsxs)("div", { className: "agg-order-platform-fee mt-1 flex items-center justify-center gap-1.5 text-agg-sm leading-agg-5 text-agg-muted-foreground", children: [
9787
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
9983
+ !shouldShowGeoBlockBanner && internalTab === "buy" && showFeesBreakdown ? /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "agg-order-platform-fee mt-1 flex items-center justify-center gap-1.5 text-agg-sm leading-agg-5 text-agg-muted-foreground", children: [
9984
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9788
9985
  Icon,
9789
9986
  {
9790
9987
  name: "shield-trust",
@@ -9793,10 +9990,10 @@ var PlaceOrder = ({
9793
9990
  "aria-hidden": "true"
9794
9991
  }
9795
9992
  ),
9796
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(Typography, { variant: "text-xs-caps", className: "text-agg-primary", children: tradingLabels.platformFee })
9993
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(Typography, { variant: "text-xs-caps", className: "text-agg-primary", children: tradingLabels.platformFee })
9797
9994
  ] }) : null,
9798
- shouldShowGeoBlockBanner ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(GeoBlockBanner, { termsUrl: AGG_TERMS_OF_SERVICE_URL }) : null,
9799
- !shouldShowGeoBlockBanner ? /* @__PURE__ */ (0, import_jsx_runtime115.jsx)("p", { className: "agg-order-disclaimer text-center text-agg-xs leading-agg-4 text-agg-muted-foreground", children: tradingLabels.disclaimer }) : null
9995
+ shouldShowGeoBlockBanner ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(GeoBlockBanner, { termsUrl: AGG_TERMS_OF_SERVICE_URL }) : null,
9996
+ !shouldShowGeoBlockBanner ? /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("p", { className: "agg-order-disclaimer text-center text-agg-xs leading-agg-4 text-agg-muted-foreground", children: tradingLabels.disclaimer }) : null
9800
9997
  ]
9801
9998
  }
9802
9999
  )
@@ -9804,7 +10001,7 @@ var PlaceOrder = ({
9804
10001
  ]
9805
10002
  }
9806
10003
  ),
9807
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
10004
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9808
10005
  KycVerifyModal,
9809
10006
  {
9810
10007
  open: isKycVerifyModalOpen,
@@ -9821,7 +10018,7 @@ var PlaceOrder = ({
9821
10018
  }
9822
10019
  }
9823
10020
  ),
9824
- /* @__PURE__ */ (0, import_jsx_runtime115.jsx)(
10021
+ /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
9825
10022
  KycSuccessModal,
9826
10023
  {
9827
10024
  open: showKycSuccessModal,