@agg-market/ui 4.0.0 → 5.0.0

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 (44) hide show
  1. package/dist/{chunk-HOXTJ742.mjs → chunk-34IRJYSU.mjs} +1 -1
  2. package/dist/chunk-4343LYSH.mjs +45 -0
  3. package/dist/{chunk-LA3FBBSJ.mjs → chunk-CTYJVVHJ.mjs} +25 -2
  4. package/dist/{chunk-GNSPZ53C.mjs → chunk-DHBHKIJR.mjs} +73 -15
  5. package/dist/{chunk-OH56VUYK.mjs → chunk-GFBF2J3Y.mjs} +14 -7
  6. package/dist/{chunk-P2PJBO5C.mjs → chunk-KIYMVWL4.mjs} +1 -1
  7. package/dist/{chunk-QM7CGMFG.mjs → chunk-MKVGQ7AS.mjs} +12 -0
  8. package/dist/{chunk-JNH64AKR.mjs → chunk-Q6DGDBPV.mjs} +58 -4
  9. package/dist/{chunk-DCORNTCY.mjs → chunk-QDMHLRDY.mjs} +31 -62
  10. package/dist/{chunk-MBHTXNHX.mjs → chunk-T7TATHPD.mjs} +32 -8
  11. package/dist/chunk-XUCS575S.mjs +65 -0
  12. package/dist/event-list-item-details.js +1529 -72
  13. package/dist/event-list-item-details.mjs +7 -3
  14. package/dist/event-list-item.js +292 -71
  15. package/dist/event-list-item.mjs +5 -2
  16. package/dist/event-list.js +628 -404
  17. package/dist/event-list.mjs +6 -3
  18. package/dist/event-market-page.d.mts +1 -1
  19. package/dist/event-market-page.d.ts +1 -1
  20. package/dist/event-market-page.js +2478 -2268
  21. package/dist/event-market-page.mjs +7 -5
  22. package/dist/home-page.js +638 -414
  23. package/dist/home-page.mjs +7 -4
  24. package/dist/index.d.mts +3 -2
  25. package/dist/index.d.ts +3 -2
  26. package/dist/index.js +1062 -858
  27. package/dist/index.mjs +18 -13
  28. package/dist/market-details.js +645 -391
  29. package/dist/market-details.mjs +6 -3
  30. package/dist/place-order.d.mts +1 -1
  31. package/dist/place-order.d.ts +1 -1
  32. package/dist/search.js +3 -0
  33. package/dist/search.mjs +2 -1
  34. package/dist/settlement.d.mts +1 -1
  35. package/dist/settlement.d.ts +1 -1
  36. package/dist/state-message.d.mts +16 -0
  37. package/dist/state-message.d.ts +16 -0
  38. package/dist/state-message.js +1629 -0
  39. package/dist/state-message.mjs +14 -0
  40. package/dist/styles.css +1 -1
  41. package/dist/tailwind.css +1 -1
  42. package/package.json +14 -2
  43. package/dist/{types-DkGlbmXq.d.mts → types-BImwqY4o.d.mts} +4 -4
  44. package/dist/{types-DkGlbmXq.d.ts → types-BImwqY4o.d.ts} +4 -4
package/dist/index.js CHANGED
@@ -136,6 +136,7 @@ __export(src_exports, {
136
136
  Settlement: () => Settlement,
137
137
  ShieldTrustIcon: () => ShieldTrustIcon,
138
138
  Skeleton: () => Skeleton,
139
+ StateMessage: () => StateMessage,
139
140
  StayInControlIcon: () => StayInControlIcon,
140
141
  SwitchButton: () => SwitchButton,
141
142
  Tabs: () => Tabs,
@@ -3685,6 +3686,8 @@ var SearchResultRow = ({
3685
3686
  "button",
3686
3687
  {
3687
3688
  type: "button",
3689
+ role: "option",
3690
+ "aria-selected": "false",
3688
3691
  className: cn(
3689
3692
  "group/agg-search-result",
3690
3693
  "group flex w-full items-center gap-6 px-5 py-3 text-left",
@@ -3844,6 +3847,7 @@ var Search = ({
3844
3847
  children: validatedResults.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3845
3848
  "li",
3846
3849
  {
3850
+ role: "presentation",
3847
3851
  className: cn(index > 0 && "border-t border-agg-separator", classNames == null ? void 0 : classNames.resultItem),
3848
3852
  children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
3849
3853
  SearchResultRow,
@@ -3913,6 +3917,52 @@ var Search = ({
3913
3917
  };
3914
3918
  Search.displayName = "Search";
3915
3919
 
3920
+ // src/primitives/state-message/index.tsx
3921
+ var import_jsx_runtime69 = require("react/jsx-runtime");
3922
+ var iconClassName = "h-9 w-9 text-agg-muted-foreground";
3923
+ var StateMessage = ({
3924
+ ariaLabel,
3925
+ tone = "empty",
3926
+ title,
3927
+ description,
3928
+ actionLabel,
3929
+ onAction,
3930
+ className
3931
+ }) => {
3932
+ const icon = tone === "warning" ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(WarningIcon, { className: iconClassName, "aria-hidden": true }) : /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(SearchEmptyIcon, { className: iconClassName, "aria-hidden": true });
3933
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3934
+ "div",
3935
+ {
3936
+ className: cn(
3937
+ "flex min-h-[240px] w-full flex-col items-center justify-center px-5 py-10 text-center md:px-10",
3938
+ className
3939
+ ),
3940
+ role: "status",
3941
+ "aria-live": "polite",
3942
+ "aria-label": ariaLabel,
3943
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex max-w-[360px] flex-col items-center gap-6", children: [
3944
+ icon,
3945
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex flex-col items-center gap-2", children: [
3946
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Typography, { variant: "body-large-strong", children: title }),
3947
+ description ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Typography, { variant: "body", className: "whitespace-pre-line text-agg-muted-foreground", children: description }) : null
3948
+ ] }),
3949
+ actionLabel && onAction ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
3950
+ Button,
3951
+ {
3952
+ variant: "tertiary",
3953
+ size: "large",
3954
+ className: "text-agg-base leading-agg-6",
3955
+ "aria-label": actionLabel,
3956
+ onClick: onAction,
3957
+ children: actionLabel
3958
+ }
3959
+ ) : null
3960
+ ] })
3961
+ }
3962
+ );
3963
+ };
3964
+ StateMessage.displayName = "StateMessage";
3965
+
3916
3966
  // src/primitives/tabs/index.tsx
3917
3967
  var import_react7 = require("react");
3918
3968
  var import_hooks19 = require("@agg-market/hooks");
@@ -3942,7 +3992,7 @@ var findEdgeEnabledIndex = (items, direction) => {
3942
3992
  };
3943
3993
 
3944
3994
  // src/primitives/tabs/index.tsx
3945
- var import_jsx_runtime69 = require("react/jsx-runtime");
3995
+ var import_jsx_runtime70 = require("react/jsx-runtime");
3946
3996
  var mobileTabsMediaQuery = "(max-width: 512px)";
3947
3997
  var getTabButtonClassName = ({
3948
3998
  enableAnimations,
@@ -4299,7 +4349,7 @@ var Tabs = ({
4299
4349
  });
4300
4350
  }, [enableAnimations, renderedItems, shouldUseOverflowScroll, value]);
4301
4351
  if (shouldUseOverflowSelect) {
4302
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: cn("w-full", className, classNames == null ? void 0 : classNames.root), children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4352
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: cn("w-full", className, classNames == null ? void 0 : classNames.root), children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4303
4353
  Select,
4304
4354
  {
4305
4355
  ariaLabel,
@@ -4311,7 +4361,7 @@ var Tabs = ({
4311
4361
  }
4312
4362
  ) });
4313
4363
  }
4314
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4364
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
4315
4365
  "div",
4316
4366
  {
4317
4367
  className: cn(
@@ -4322,7 +4372,7 @@ var Tabs = ({
4322
4372
  classNames == null ? void 0 : classNames.root
4323
4373
  ),
4324
4374
  children: [
4325
- /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4375
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
4326
4376
  "div",
4327
4377
  {
4328
4378
  ref: tabListRef,
@@ -4338,7 +4388,7 @@ var Tabs = ({
4338
4388
  children: [
4339
4389
  renderedItems.map((item, index) => {
4340
4390
  const isActive = item.value === value;
4341
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
4391
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
4342
4392
  "button",
4343
4393
  {
4344
4394
  ref: (buttonElement) => {
@@ -4367,7 +4417,7 @@ var Tabs = ({
4367
4417
  shouldUseOverflowScroll && !isBarVariant && "snap-start"
4368
4418
  ),
4369
4419
  children: [
4370
- isBarVariant ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_jsx_runtime69.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4420
+ isBarVariant ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4371
4421
  "span",
4372
4422
  {
4373
4423
  "aria-hidden": true,
@@ -4381,14 +4431,14 @@ var Tabs = ({
4381
4431
  )
4382
4432
  }
4383
4433
  ) }) : null,
4384
- item.icon ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "relative z-10 inline-flex shrink-0 items-center justify-center", children: item.icon }) : null,
4385
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "relative z-10 truncate whitespace-nowrap [&::first-letter]:uppercase", children: item.label })
4434
+ item.icon ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "relative z-10 inline-flex shrink-0 items-center justify-center", children: item.icon }) : null,
4435
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("span", { className: "relative z-10 truncate whitespace-nowrap [&::first-letter]:uppercase", children: item.label })
4386
4436
  ]
4387
4437
  },
4388
4438
  item.value
4389
4439
  );
4390
4440
  }),
4391
- !isBarVariant ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4441
+ !isBarVariant ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4392
4442
  "span",
4393
4443
  {
4394
4444
  "aria-hidden": true,
@@ -4406,8 +4456,8 @@ var Tabs = ({
4406
4456
  ]
4407
4457
  }
4408
4458
  ),
4409
- shouldUseOverflowScroll && !isBarVariant ? /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
4410
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4459
+ shouldUseOverflowScroll && !isBarVariant ? /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_jsx_runtime70.Fragment, { children: [
4460
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4411
4461
  "span",
4412
4462
  {
4413
4463
  "aria-hidden": true,
@@ -4418,7 +4468,7 @@ var Tabs = ({
4418
4468
  )
4419
4469
  }
4420
4470
  ),
4421
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
4471
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4422
4472
  "span",
4423
4473
  {
4424
4474
  "aria-hidden": true,
@@ -4439,7 +4489,7 @@ Tabs.displayName = "Tabs";
4439
4489
  // src/primitives/modal/index.tsx
4440
4490
  var Dialog = __toESM(require("@radix-ui/react-dialog"));
4441
4491
  var import_hooks20 = require("@agg-market/hooks");
4442
- var import_jsx_runtime70 = require("react/jsx-runtime");
4492
+ var import_jsx_runtime71 = require("react/jsx-runtime");
4443
4493
  var Modal = ({
4444
4494
  open,
4445
4495
  onOpenChange,
@@ -4447,7 +4497,7 @@ var Modal = ({
4447
4497
  "aria-label": _ariaLabel,
4448
4498
  "aria-labelledby": _ariaLabelledBy
4449
4499
  }) => {
4450
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Dialog.Root, { open, onOpenChange, children });
4500
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Dialog.Root, { open, onOpenChange, children });
4451
4501
  };
4452
4502
  var ModalContainer = ({
4453
4503
  children,
@@ -4459,8 +4509,8 @@ var ModalContainer = ({
4459
4509
  const { rootClassName, enableAnimations } = (0, import_hooks20.useSdkUiConfig)();
4460
4510
  const overlayAnimationClassName = enableAnimations ? "motion-safe:data-[state=open]:animate-agg-modal-overlay-in motion-safe:data-[state=closed]:animate-agg-modal-overlay-out motion-reduce:animate-none" : void 0;
4461
4511
  const panelAnimationClassName = enableAnimations ? "motion-safe:data-[state=open]:animate-agg-modal-panel-in motion-safe:data-[state=closed]:animate-agg-modal-panel-out motion-reduce:animate-none" : void 0;
4462
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(Dialog.Portal, { children: [
4463
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4512
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(Dialog.Portal, { children: [
4513
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4464
4514
  Dialog.Overlay,
4465
4515
  {
4466
4516
  className: cn(
@@ -4470,7 +4520,7 @@ var ModalContainer = ({
4470
4520
  )
4471
4521
  }
4472
4522
  ),
4473
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4523
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4474
4524
  Dialog.Content,
4475
4525
  {
4476
4526
  className: cn(
@@ -4485,7 +4535,7 @@ var ModalContainer = ({
4485
4535
  onCloseAutoFocus: (event) => {
4486
4536
  event.preventDefault();
4487
4537
  },
4488
- children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4538
+ children: /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4489
4539
  "div",
4490
4540
  {
4491
4541
  className: cn(
@@ -4521,9 +4571,9 @@ var ModalHeader = ({
4521
4571
  }) => {
4522
4572
  const { enableAnimations } = (0, import_hooks20.useSdkUiConfig)();
4523
4573
  const labels = (0, import_hooks20.useLabels)();
4524
- const defaultCloseIcon = /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(CloseIcon, { className: "h-6 w-6" });
4574
+ const defaultCloseIcon = /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(CloseIcon, { className: "h-6 w-6" });
4525
4575
  const resolvedCloseIcon = closeIcon != null ? closeIcon : defaultCloseIcon;
4526
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
4576
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
4527
4577
  "div",
4528
4578
  {
4529
4579
  className: cn(
@@ -4536,7 +4586,7 @@ var ModalHeader = ({
4536
4586
  classNames == null ? void 0 : classNames.root
4537
4587
  ),
4538
4588
  children: [
4539
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
4589
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
4540
4590
  "div",
4541
4591
  {
4542
4592
  className: cn(
@@ -4548,9 +4598,9 @@ var ModalHeader = ({
4548
4598
  classNames == null ? void 0 : classNames.container
4549
4599
  ),
4550
4600
  children: [
4551
- leftElement ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: leftElement }) : null,
4552
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: cn("max-w-[calc(100%-1rem)] flex-1", classNames == null ? void 0 : classNames.titleContainer), children: [
4553
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4601
+ leftElement ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_jsx_runtime71.Fragment, { children: leftElement }) : null,
4602
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: cn("max-w-[calc(100%-1rem)] flex-1", classNames == null ? void 0 : classNames.titleContainer), children: [
4603
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4554
4604
  Dialog.Title,
4555
4605
  {
4556
4606
  className: cn(
@@ -4563,7 +4613,7 @@ var ModalHeader = ({
4563
4613
  children: title
4564
4614
  }
4565
4615
  ),
4566
- subtitle ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4616
+ subtitle ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4567
4617
  "span",
4568
4618
  {
4569
4619
  className: cn(
@@ -4574,9 +4624,9 @@ var ModalHeader = ({
4574
4624
  }
4575
4625
  ) : null
4576
4626
  ] }),
4577
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex flex-row gap-6 items-center justify-end", children: [
4578
- rightElement ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_jsx_runtime70.Fragment, { children: rightElement }) : null,
4579
- !hideClose && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4627
+ /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex flex-row gap-6 items-center justify-end", children: [
4628
+ rightElement ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_jsx_runtime71.Fragment, { children: rightElement }) : null,
4629
+ !hideClose && /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4580
4630
  Dialog.Close,
4581
4631
  {
4582
4632
  className: cn(
@@ -4592,14 +4642,14 @@ var ModalHeader = ({
4592
4642
  ]
4593
4643
  }
4594
4644
  ),
4595
- children ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { children }) : null
4645
+ children ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { children }) : null
4596
4646
  ]
4597
4647
  }
4598
4648
  );
4599
4649
  };
4600
4650
  Modal.Header = ModalHeader;
4601
4651
  var ModalBody = ({ children, classNames }) => {
4602
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4652
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4603
4653
  "div",
4604
4654
  {
4605
4655
  className: cn(
@@ -4620,7 +4670,7 @@ var ModalFooter = ({
4620
4670
  classNames,
4621
4671
  hideBorder = false
4622
4672
  }) => {
4623
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
4673
+ return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4624
4674
  "div",
4625
4675
  {
4626
4676
  className: cn(
@@ -4645,6 +4695,17 @@ var import_dayjs2 = __toESM(require("dayjs"));
4645
4695
  var import_react8 = require("react");
4646
4696
  var import_hooks21 = require("@agg-market/hooks");
4647
4697
 
4698
+ // src/shared/query-error.ts
4699
+ var getErrorStatus = (error) => {
4700
+ if (!error || typeof error !== "object")
4701
+ return null;
4702
+ const status = error.status;
4703
+ return typeof status === "number" ? status : null;
4704
+ };
4705
+ var isErrorWithStatus = (error, status) => {
4706
+ return getErrorStatus(error) === status;
4707
+ };
4708
+
4648
4709
  // src/events/item/event-list-item.utils.ts
4649
4710
  var resolveEventListItemEvent = (fetchedEvent) => {
4650
4711
  if (!fetchedEvent)
@@ -4785,13 +4846,13 @@ var resolveVenueLabel = (venue, venueInfo, labels) => {
4785
4846
  };
4786
4847
 
4787
4848
  // src/events/item/index.tsx
4788
- var import_jsx_runtime71 = require("react/jsx-runtime");
4849
+ var import_jsx_runtime72 = require("react/jsx-runtime");
4789
4850
  var EventListItemLoadingState = ({
4790
4851
  classNames,
4791
4852
  ariaLabel
4792
4853
  }) => {
4793
4854
  const labels = (0, import_hooks21.useLabels)();
4794
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4855
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4795
4856
  Skeleton,
4796
4857
  {
4797
4858
  view: "event-list-item",
@@ -4805,19 +4866,34 @@ var EventListItemUnavailableState = ({
4805
4866
  ariaLabel
4806
4867
  }) => {
4807
4868
  const labels = (0, import_hooks21.useLabels)();
4808
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4869
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4809
4870
  Card,
4810
4871
  {
4811
4872
  className: cn(baseCardClassName, classNames == null ? void 0 : classNames.root),
4812
4873
  role: "status",
4813
4874
  "aria-label": ariaLabel != null ? ariaLabel : labels.eventItem.unavailableAria,
4814
- children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: cn("flex flex-col gap-1", classNames == null ? void 0 : classNames.header), children: [
4815
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Typography, { variant: "body-large-strong", className: cn("truncate", classNames == null ? void 0 : classNames.title), children: labels.eventItem.unavailableTitle }),
4816
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Typography, { variant: "body", className: "text-agg-muted-foreground", children: labels.eventItem.unavailableDescription })
4875
+ children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: cn("flex flex-col gap-1", classNames == null ? void 0 : classNames.header), children: [
4876
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Typography, { variant: "body-large-strong", className: cn("truncate", classNames == null ? void 0 : classNames.title), children: labels.eventItem.unavailableTitle }),
4877
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Typography, { variant: "body", className: "text-agg-muted-foreground", children: labels.eventItem.unavailableDescription })
4817
4878
  ] })
4818
4879
  }
4819
4880
  );
4820
4881
  };
4882
+ var EventListItemNotFoundState = ({
4883
+ classNames,
4884
+ ariaLabel
4885
+ }) => {
4886
+ const labels = (0, import_hooks21.useLabels)();
4887
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Card, { className: cn("w-full gap-0 overflow-hidden p-0", classNames == null ? void 0 : classNames.root), children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4888
+ StateMessage,
4889
+ {
4890
+ ariaLabel: ariaLabel != null ? ariaLabel : labels.eventItemDetails.notFoundAria,
4891
+ title: labels.eventItemDetails.notFoundTitle,
4892
+ description: labels.eventItemDetails.notFoundDescription,
4893
+ className: "min-h-[280px] md:min-h-[320px]"
4894
+ }
4895
+ ) });
4896
+ };
4821
4897
  var EventListItemContent = ({
4822
4898
  event,
4823
4899
  title,
@@ -4866,9 +4942,9 @@ var EventListItemContent = ({
4866
4942
  return null;
4867
4943
  if (Math.abs(value) < config.arbitrageThreshold)
4868
4944
  return null;
4869
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: cn("flex items-center gap-1", "text-agg-success"), children: [
4870
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Typography, { variant: "label-strong", className: "text-agg-success", children: config.formatPercent(value) }),
4871
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4945
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: cn("flex items-center gap-1", "text-agg-success"), children: [
4946
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Typography, { variant: "label-strong", className: "text-agg-success", children: config.formatPercent(value) }),
4947
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4872
4948
  Icon,
4873
4949
  {
4874
4950
  name: "triangle-up",
@@ -4879,7 +4955,7 @@ var EventListItemContent = ({
4879
4955
  )
4880
4956
  ] });
4881
4957
  };
4882
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
4958
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
4883
4959
  Card,
4884
4960
  {
4885
4961
  className: cn(baseCardClassName, onClick && "cursor-pointer", classNames == null ? void 0 : classNames.root),
@@ -4889,8 +4965,8 @@ var EventListItemContent = ({
4889
4965
  onKeyDown: handleKeyDown,
4890
4966
  "aria-label": ariaLabel != null ? ariaLabel : resolvedTitle,
4891
4967
  children: [
4892
- /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: cn("flex items-center gap-3", classNames == null ? void 0 : classNames.header), children: [
4893
- resolvedImage ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4968
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: cn("flex items-center gap-3", classNames == null ? void 0 : classNames.header), children: [
4969
+ resolvedImage ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4894
4970
  "img",
4895
4971
  {
4896
4972
  src: resolvedImage,
@@ -4898,7 +4974,7 @@ var EventListItemContent = ({
4898
4974
  className: cn("h-10 w-10", "rounded-agg-lg object-cover")
4899
4975
  }
4900
4976
  ) : null,
4901
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
4977
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4902
4978
  Typography,
4903
4979
  {
4904
4980
  variant: "body-strong",
@@ -4911,13 +4987,13 @@ var EventListItemContent = ({
4911
4987
  }
4912
4988
  )
4913
4989
  ] }),
4914
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("div", { className: cn("flex flex-col gap-3", classNames == null ? void 0 : classNames.outcomes), children: visibleOutcomes.map((visibleOutcome) => {
4990
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: cn("flex flex-col gap-3", classNames == null ? void 0 : classNames.outcomes), children: visibleOutcomes.map((visibleOutcome) => {
4915
4991
  const probability = normalizeProbability(visibleOutcome.outcome.price);
4916
4992
  const showBadge = typeof probability === "number";
4917
4993
  const arbitragePercent = arbitrageByOutcomeId == null ? void 0 : arbitrageByOutcomeId[visibleOutcome.outcome.id];
4918
4994
  const outcomeTitle = resolveOutcomeTitle(visibleOutcome.outcome);
4919
4995
  const formattedTitle = (0, import_dayjs2.default)(outcomeTitle).isValid() ? (0, import_dayjs2.default)(outcomeTitle).format("MMMM D, YYYY") : outcomeTitle;
4920
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
4996
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
4921
4997
  "div",
4922
4998
  {
4923
4999
  className: cn(
@@ -4925,7 +5001,7 @@ var EventListItemContent = ({
4925
5001
  classNames == null ? void 0 : classNames.outcomeRow
4926
5002
  ),
4927
5003
  children: [
4928
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5004
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4929
5005
  Typography,
4930
5006
  {
4931
5007
  variant: "body",
@@ -4933,13 +5009,13 @@ var EventListItemContent = ({
4933
5009
  children: formattedTitle
4934
5010
  }
4935
5011
  ),
4936
- /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: "flex flex-row gap-3 items-center justify-end", children: [
5012
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex flex-row gap-3 items-center justify-end", children: [
4937
5013
  renderArbitrage(arbitragePercent),
4938
- showBadge ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5014
+ showBadge ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4939
5015
  Badge,
4940
5016
  {
4941
5017
  text: config.formatPercent(probability),
4942
- prefix: showVenueLogo ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(VenueLogo, { venue: visibleOutcome.venue, size: "small" }) : void 0,
5018
+ prefix: showVenueLogo ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(VenueLogo, { venue: visibleOutcome.venue, size: "small" }) : void 0,
4943
5019
  size: "large",
4944
5020
  classNames: {
4945
5021
  root: cn(
@@ -4955,7 +5031,7 @@ var EventListItemContent = ({
4955
5031
  `${visibleOutcome.market.id}-${visibleOutcome.outcome.id}`
4956
5032
  );
4957
5033
  }) }),
4958
- /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
5034
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
4959
5035
  "div",
4960
5036
  {
4961
5037
  className: cn(
@@ -4964,15 +5040,15 @@ var EventListItemContent = ({
4964
5040
  classNames == null ? void 0 : classNames.footer
4965
5041
  ),
4966
5042
  children: [
4967
- /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("div", { className: cn("flex items-center gap-1", "text-agg-sm leading-agg-5"), children: [
4968
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "truncate text-agg-muted-foreground", children: formatCountLabel(
5043
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: cn("flex items-center gap-1", "text-agg-sm leading-agg-5"), children: [
5044
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "truncate text-agg-muted-foreground", children: formatCountLabel(
4969
5045
  marketCount,
4970
5046
  labels.eventItem.marketSingular,
4971
5047
  labels.eventItem.marketPlural
4972
5048
  ) }),
4973
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "text-agg-muted-foreground", children: "\xD7" }),
4974
- singleVenue ? /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)("span", { className: "flex items-center gap-1 truncate text-agg-muted-foreground", children: [
4975
- showVenueLogo ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5049
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "text-agg-muted-foreground", children: "\xD7" }),
5050
+ singleVenue ? /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("span", { className: "flex items-center gap-1 truncate text-agg-muted-foreground", children: [
5051
+ showVenueLogo ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4976
5052
  VenueLogo,
4977
5053
  {
4978
5054
  venue: singleVenue,
@@ -4981,13 +5057,13 @@ var EventListItemContent = ({
4981
5057
  className: "text-agg-muted-foreground!"
4982
5058
  }
4983
5059
  ) : null,
4984
- /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { children: venueLabel })
4985
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "truncate text-agg-muted-foreground", children: formatCountLabel(
5060
+ /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { children: venueLabel })
5061
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "truncate text-agg-muted-foreground", children: formatCountLabel(
4986
5062
  venueCount,
4987
5063
  labels.eventItem.venueSingular,
4988
5064
  labels.eventItem.venuePlural
4989
5065
  ) }),
4990
- showVenueLogo && !singleVenue && visibleVenueLogos.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)("span", { className: "flex items-center gap-1 overflow-hidden", children: visibleVenueLogos.map((venue) => /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
5066
+ showVenueLogo && !singleVenue && visibleVenueLogos.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("span", { className: "flex items-center gap-1 overflow-hidden", children: visibleVenueLogos.map((venue) => /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
4991
5067
  VenueLogo,
4992
5068
  {
4993
5069
  venue,
@@ -4998,7 +5074,7 @@ var EventListItemContent = ({
4998
5074
  venue
4999
5075
  )) }) : null
5000
5076
  ] }),
5001
- volumeLabel ? /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(Typography, { variant: "label", className: "text-agg-sm text-agg-muted-foreground", children: volumeLabel }) : null
5077
+ volumeLabel ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Typography, { variant: "label", className: "text-agg-sm text-agg-muted-foreground", children: volumeLabel }) : null
5002
5078
  ]
5003
5079
  }
5004
5080
  )
@@ -5014,6 +5090,7 @@ var EventListItemByEventId = (_a) => {
5014
5090
  ]);
5015
5091
  const {
5016
5092
  event: fetchedEvent,
5093
+ error,
5017
5094
  isError,
5018
5095
  isLoading
5019
5096
  } = (0, import_hooks21.useEvent)(eventId, {
@@ -5023,28 +5100,31 @@ var EventListItemByEventId = (_a) => {
5023
5100
  return resolveEventListItemEvent(fetchedEvent);
5024
5101
  }, [fetchedEvent]);
5025
5102
  if (!eventId) {
5026
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(EventListItemUnavailableState, { classNames: rest.classNames, ariaLabel: rest.ariaLabel });
5103
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(EventListItemUnavailableState, { classNames: rest.classNames, ariaLabel: rest.ariaLabel });
5027
5104
  }
5028
5105
  if (isLoading) {
5029
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(EventListItemLoadingState, { classNames: rest.classNames, ariaLabel: rest.ariaLabel });
5106
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(EventListItemLoadingState, { classNames: rest.classNames, ariaLabel: rest.ariaLabel });
5107
+ }
5108
+ if (isErrorWithStatus(error, 404)) {
5109
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(EventListItemNotFoundState, { classNames: rest.classNames, ariaLabel: rest.ariaLabel });
5030
5110
  }
5031
- if (!resolvedEvent && !isError) {
5032
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(EventListItemLoadingState, { classNames: rest.classNames, ariaLabel: rest.ariaLabel });
5111
+ if (!fetchedEvent && !isError) {
5112
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(EventListItemLoadingState, { classNames: rest.classNames, ariaLabel: rest.ariaLabel });
5033
5113
  }
5034
5114
  if (!resolvedEvent) {
5035
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(EventListItemUnavailableState, { classNames: rest.classNames, ariaLabel: rest.ariaLabel });
5115
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(EventListItemUnavailableState, { classNames: rest.classNames, ariaLabel: rest.ariaLabel });
5036
5116
  }
5037
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(EventListItemContent, __spreadValues({ event: resolvedEvent }, rest));
5117
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(EventListItemContent, __spreadValues({ event: resolvedEvent }, rest));
5038
5118
  };
5039
5119
  var EventListItem = (props) => {
5040
5120
  if (props.isLoading) {
5041
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(EventListItemLoadingState, { classNames: props.classNames, ariaLabel: props.ariaLabel });
5121
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(EventListItemLoadingState, { classNames: props.classNames, ariaLabel: props.ariaLabel });
5042
5122
  }
5043
5123
  if ("event" in props && props.event) {
5044
5124
  const _a = props, { event } = _a, rest = __objRest(_a, ["event"]);
5045
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(EventListItemContent, __spreadValues({ event }, rest));
5125
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(EventListItemContent, __spreadValues({ event }, rest));
5046
5126
  }
5047
- return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(EventListItemByEventId, __spreadValues({}, props));
5127
+ return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(EventListItemByEventId, __spreadValues({}, props));
5048
5128
  };
5049
5129
  EventListItem.displayName = "EventListItem";
5050
5130
 
@@ -5178,13 +5258,13 @@ var resolveSeriesColor = (venue, index) => {
5178
5258
  };
5179
5259
 
5180
5260
  // src/events/item-details/index.tsx
5181
- var import_jsx_runtime72 = require("react/jsx-runtime");
5261
+ var import_jsx_runtime73 = require("react/jsx-runtime");
5182
5262
  var EventListItemDetailsLoadingState = ({
5183
5263
  classNames,
5184
5264
  ariaLabel
5185
5265
  }) => {
5186
5266
  const labels = (0, import_hooks22.useLabels)();
5187
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5267
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5188
5268
  Skeleton,
5189
5269
  {
5190
5270
  view: "event-list-item-details",
@@ -5198,19 +5278,34 @@ var EventListItemDetailsUnavailableState = ({
5198
5278
  ariaLabel
5199
5279
  }) => {
5200
5280
  const labels = (0, import_hooks22.useLabels)();
5201
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5281
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5202
5282
  Card,
5203
5283
  {
5204
5284
  className: cn(detailsBaseCardClassName, classNames == null ? void 0 : classNames.root),
5205
5285
  role: "status",
5206
5286
  "aria-label": ariaLabel != null ? ariaLabel : labels.eventItemDetails.unavailableAria,
5207
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: cn("flex flex-col gap-1", classNames == null ? void 0 : classNames.header), children: [
5208
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Typography, { variant: "body-large-strong", className: cn("truncate", classNames == null ? void 0 : classNames.title), children: labels.eventItemDetails.unavailableTitle }),
5209
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Typography, { variant: "body", className: "text-agg-muted-foreground", children: labels.eventItemDetails.unavailableDescription })
5287
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: cn("flex flex-col gap-1", classNames == null ? void 0 : classNames.header), children: [
5288
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typography, { variant: "body-large-strong", className: cn("truncate", classNames == null ? void 0 : classNames.title), children: labels.eventItemDetails.unavailableTitle }),
5289
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typography, { variant: "body", className: "text-agg-muted-foreground", children: labels.eventItemDetails.unavailableDescription })
5210
5290
  ] })
5211
5291
  }
5212
5292
  );
5213
5293
  };
5294
+ var EventListItemDetailsNotFoundState = ({
5295
+ classNames,
5296
+ ariaLabel
5297
+ }) => {
5298
+ const labels = (0, import_hooks22.useLabels)();
5299
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Card, { className: cn(detailsBaseCardClassName, classNames == null ? void 0 : classNames.root), children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5300
+ StateMessage,
5301
+ {
5302
+ ariaLabel: ariaLabel != null ? ariaLabel : labels.eventItemDetails.notFoundAria,
5303
+ title: labels.eventItemDetails.notFoundTitle,
5304
+ description: labels.eventItemDetails.notFoundDescription,
5305
+ className: "min-h-[280px] md:min-h-[320px]"
5306
+ }
5307
+ ) });
5308
+ };
5214
5309
  var probabilityModeOrder = ["yes", "no"];
5215
5310
  var clampProbability = (value) => {
5216
5311
  if (value < 0)
@@ -5335,7 +5430,12 @@ var EventListItemDetailsGraphSection = ({
5335
5430
  const timeWindow = (0, import_react9.useMemo)(() => {
5336
5431
  return getTimeWindowByRange(selectedTimeRange);
5337
5432
  }, [selectedTimeRange]);
5338
- const { data: priceHistoryData, isLoading: isPriceHistoryLoading } = (0, import_hooks22.usePriceHistory)(__spreadProps(__spreadValues({
5433
+ const {
5434
+ data: priceHistoryData,
5435
+ isLoading: isPriceHistoryLoading,
5436
+ error: priceHistoryError,
5437
+ results: priceHistoryResults
5438
+ } = (0, import_hooks22.usePriceHistory)(__spreadProps(__spreadValues({
5339
5439
  groups: priceHistoryGroups
5340
5440
  }, timeWindow), {
5341
5441
  enabled: priceHistoryGroups.length > 0
@@ -5439,7 +5539,33 @@ var EventListItemDetailsGraphSection = ({
5439
5539
  return venue;
5440
5540
  });
5441
5541
  };
5442
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5542
+ const handleRetryPriceHistory = () => {
5543
+ void Promise.all(priceHistoryResults.map((result) => result.refetch()));
5544
+ };
5545
+ if (priceHistoryError) {
5546
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5547
+ "div",
5548
+ {
5549
+ className: cn(
5550
+ "w-full rounded-agg-xl border border-agg-separator bg-agg-secondary",
5551
+ classNames == null ? void 0 : classNames.chart
5552
+ ),
5553
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5554
+ StateMessage,
5555
+ {
5556
+ ariaLabel: labels.eventItemDetails.chartUnavailableAria,
5557
+ tone: "warning",
5558
+ title: labels.eventItemDetails.chartUnavailableTitle,
5559
+ description: labels.eventItemDetails.chartUnavailableDescription,
5560
+ actionLabel: labels.common.retry,
5561
+ onAction: handleRetryPriceHistory,
5562
+ className: "min-h-[300px] px-5 py-10 md:px-10"
5563
+ }
5564
+ )
5565
+ }
5566
+ );
5567
+ }
5568
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5443
5569
  LineChart,
5444
5570
  {
5445
5571
  classNames: { root: classNames == null ? void 0 : classNames.chart },
@@ -5448,12 +5574,12 @@ var EventListItemDetailsGraphSection = ({
5448
5574
  isLoading: isPriceHistoryLoading,
5449
5575
  showSeriesControls: activeModeVenueData.length > 0 || segmentedDisplayItems.length > 0,
5450
5576
  renderSeriesControls: () => {
5451
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
5577
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
5452
5578
  "div",
5453
5579
  {
5454
5580
  className: cn("flex flex-row items-center justify-between gap-4", classNames == null ? void 0 : classNames.summary),
5455
5581
  children: [
5456
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5582
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5457
5583
  "div",
5458
5584
  {
5459
5585
  className: cn(
@@ -5464,7 +5590,7 @@ var EventListItemDetailsGraphSection = ({
5464
5590
  var _a;
5465
5591
  const text = venueData.probability == null ? "-" : formatPercent(venueData.probability);
5466
5592
  const isActiveVenue = selectedVenue === venueData.venue;
5467
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5593
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5468
5594
  "button",
5469
5595
  {
5470
5596
  type: "button",
@@ -5473,12 +5599,12 @@ var EventListItemDetailsGraphSection = ({
5473
5599
  className: cn(
5474
5600
  "rounded-agg-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agg-primary focus-visible:ring-offset-2 focus-visible:ring-offset-agg-secondary-hover"
5475
5601
  ),
5476
- children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5602
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5477
5603
  Badge,
5478
5604
  {
5479
5605
  text,
5480
5606
  size: "large",
5481
- prefix: showVenueLogo ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5607
+ prefix: showVenueLogo ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5482
5608
  VenueLogo,
5483
5609
  {
5484
5610
  venue: venueData.venue,
@@ -5503,7 +5629,7 @@ var EventListItemDetailsGraphSection = ({
5503
5629
  })
5504
5630
  }
5505
5631
  ),
5506
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5632
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5507
5633
  SwitchButton,
5508
5634
  {
5509
5635
  ariaLabel: labels.eventItemDetails.outcomeSelectorAria,
@@ -5624,15 +5750,15 @@ var EventListItemDetailsContent = ({
5624
5750
  return `${config.formatCompactCurrency(resolvedVolume)} ${labels.eventItemDetails.volumeSuffix}`;
5625
5751
  }, [config, event.volume, labels.eventItemDetails.volumeSuffix, primaryVenueMarket == null ? void 0 : primaryVenueMarket.volume]);
5626
5752
  if (!primaryVenueMarket || !selectedOutcomeLabel) {
5627
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(EventListItemDetailsUnavailableState, { classNames, ariaLabel });
5753
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(EventListItemDetailsUnavailableState, { classNames, ariaLabel });
5628
5754
  }
5629
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
5755
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
5630
5756
  Card,
5631
5757
  {
5632
5758
  className: cn(detailsBaseCardClassName, classNames == null ? void 0 : classNames.root),
5633
5759
  "aria-label": ariaLabel != null ? ariaLabel : resolvedTitle,
5634
5760
  children: [
5635
- /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)(
5761
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
5636
5762
  "div",
5637
5763
  {
5638
5764
  className: cn(
@@ -5641,7 +5767,7 @@ var EventListItemDetailsContent = ({
5641
5767
  classNames == null ? void 0 : classNames.header
5642
5768
  ),
5643
5769
  children: [
5644
- resolvedImage ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5770
+ resolvedImage ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5645
5771
  "img",
5646
5772
  {
5647
5773
  src: resolvedImage,
@@ -5649,8 +5775,8 @@ var EventListItemDetailsContent = ({
5649
5775
  className: "size-10 rounded-agg-lg object-cover md:size-[60px]"
5650
5776
  }
5651
5777
  ) : null,
5652
- /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-3", children: [
5653
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5778
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-3", children: [
5779
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5654
5780
  Typography,
5655
5781
  {
5656
5782
  variant: "body-strong",
@@ -5662,7 +5788,7 @@ var EventListItemDetailsContent = ({
5662
5788
  children: resolvedTitle
5663
5789
  }
5664
5790
  ),
5665
- outcomeSelectorLabels.length > 2 ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5791
+ outcomeSelectorLabels.length > 2 ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5666
5792
  "div",
5667
5793
  {
5668
5794
  className: cn(
@@ -5672,7 +5798,7 @@ var EventListItemDetailsContent = ({
5672
5798
  children: outcomeSelectorLabels.map((outcomeSelectorLabel) => {
5673
5799
  const isActive = outcomeSelectorLabel === selectedOutcomeLabel;
5674
5800
  const displayLabel = isDateLikeLabel(outcomeSelectorLabel) ? formatDateLabel(outcomeSelectorLabel) : outcomeSelectorLabel;
5675
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5801
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5676
5802
  Button,
5677
5803
  {
5678
5804
  size: "small",
@@ -5695,12 +5821,12 @@ var EventListItemDetailsContent = ({
5695
5821
  ]
5696
5822
  }
5697
5823
  ),
5698
- detailsStats && detailsStats.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: cn("flex flex-wrap items-start gap-4 md:gap-6", classNames == null ? void 0 : classNames.headerStats), children: detailsStats.map((statItem) => {
5824
+ detailsStats && detailsStats.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: cn("flex flex-wrap items-start gap-4 md:gap-6", classNames == null ? void 0 : classNames.headerStats), children: detailsStats.map((statItem) => {
5699
5825
  const deltaClassName = statItem.deltaTone === "positive" ? "text-agg-success!" : statItem.deltaTone === "negative" ? "text-agg-error!" : "text-agg-muted-foreground";
5700
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex flex-col gap-1", children: [
5701
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Typography, { variant: "caption-caps", className: "text-agg-muted-foreground", children: statItem.label }),
5702
- /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: "flex items-baseline gap-1", children: [
5703
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5826
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex flex-col gap-1", children: [
5827
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typography, { variant: "caption-caps", className: "text-agg-muted-foreground", children: statItem.label }),
5828
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex items-baseline gap-1", children: [
5829
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5704
5830
  Typography,
5705
5831
  {
5706
5832
  variant: "body",
@@ -5708,11 +5834,11 @@ var EventListItemDetailsContent = ({
5708
5834
  children: statItem.value
5709
5835
  }
5710
5836
  ),
5711
- statItem.delta ? /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Typography, { variant: "label", className: cn(deltaClassName), children: statItem.delta }) : null
5837
+ statItem.delta ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typography, { variant: "label", className: cn(deltaClassName), children: statItem.delta }) : null
5712
5838
  ] })
5713
5839
  ] }, `${statItem.label}-${statItem.value}`);
5714
5840
  }) }) : null,
5715
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5841
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5716
5842
  EventListItemDetailsGraphSection,
5717
5843
  {
5718
5844
  venueMarkets,
@@ -5728,11 +5854,11 @@ var EventListItemDetailsContent = ({
5728
5854
  selectedTimeRange
5729
5855
  }
5730
5856
  ),
5731
- /* @__PURE__ */ (0, import_jsx_runtime72.jsxs)("div", { className: cn("flex flex-wrap items-center justify-between gap-4", classNames == null ? void 0 : classNames.footer), children: [
5732
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Typography, { variant: "label", className: "text-agg-muted-foreground", children: volumeLabel || "-" }),
5733
- /* @__PURE__ */ (0, import_jsx_runtime72.jsx)("div", { className: cn("flex items-center gap-2 md:gap-3", classNames == null ? void 0 : classNames.timeRange), children: eventListItemDetailsTimeRanges.map((timeRange) => {
5857
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: cn("flex flex-wrap items-center justify-between gap-4", classNames == null ? void 0 : classNames.footer), children: [
5858
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typography, { variant: "label", className: "text-agg-muted-foreground", children: volumeLabel || "-" }),
5859
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: cn("flex items-center gap-2 md:gap-3", classNames == null ? void 0 : classNames.timeRange), children: eventListItemDetailsTimeRanges.map((timeRange) => {
5734
5860
  const isActive = timeRange === selectedTimeRange;
5735
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5861
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5736
5862
  Button,
5737
5863
  {
5738
5864
  size: "small",
@@ -5763,6 +5889,7 @@ var EventListItemDetailsByEventId = (_a) => {
5763
5889
  ]);
5764
5890
  const {
5765
5891
  event: fetchedEvent,
5892
+ error,
5766
5893
  isError,
5767
5894
  isLoading
5768
5895
  } = (0, import_hooks22.useEvent)(eventId, {
@@ -5772,7 +5899,7 @@ var EventListItemDetailsByEventId = (_a) => {
5772
5899
  return resolveEventListItemEvent(fetchedEvent);
5773
5900
  }, [fetchedEvent]);
5774
5901
  if (!eventId) {
5775
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5902
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5776
5903
  EventListItemDetailsUnavailableState,
5777
5904
  {
5778
5905
  classNames: rest.classNames,
@@ -5781,13 +5908,16 @@ var EventListItemDetailsByEventId = (_a) => {
5781
5908
  );
5782
5909
  }
5783
5910
  if (isLoading) {
5784
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(EventListItemDetailsLoadingState, { classNames: rest.classNames, ariaLabel: rest.ariaLabel });
5911
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(EventListItemDetailsLoadingState, { classNames: rest.classNames, ariaLabel: rest.ariaLabel });
5912
+ }
5913
+ if (isErrorWithStatus(error, 404)) {
5914
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(EventListItemDetailsNotFoundState, { classNames: rest.classNames, ariaLabel: rest.ariaLabel });
5785
5915
  }
5786
- if (!resolvedEvent && !isError) {
5787
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(EventListItemDetailsLoadingState, { classNames: rest.classNames, ariaLabel: rest.ariaLabel });
5916
+ if (!fetchedEvent && !isError) {
5917
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(EventListItemDetailsLoadingState, { classNames: rest.classNames, ariaLabel: rest.ariaLabel });
5788
5918
  }
5789
5919
  if (!resolvedEvent) {
5790
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5920
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5791
5921
  EventListItemDetailsUnavailableState,
5792
5922
  {
5793
5923
  classNames: rest.classNames,
@@ -5795,15 +5925,15 @@ var EventListItemDetailsByEventId = (_a) => {
5795
5925
  }
5796
5926
  );
5797
5927
  }
5798
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(EventListItemDetailsContent, __spreadValues({ event: resolvedEvent }, rest));
5928
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(EventListItemDetailsContent, __spreadValues({ event: resolvedEvent }, rest));
5799
5929
  };
5800
5930
  var EventListItemDetails = (props) => {
5801
5931
  if (props.isLoading) {
5802
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(EventListItemDetailsLoadingState, { classNames: props.classNames, ariaLabel: props.ariaLabel });
5932
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(EventListItemDetailsLoadingState, { classNames: props.classNames, ariaLabel: props.ariaLabel });
5803
5933
  }
5804
5934
  if ("event" in props && props.event) {
5805
5935
  const _a = props, { event } = _a, rest = __objRest(_a, ["event"]);
5806
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(EventListItemDetailsContent, __spreadValues({ event }, rest));
5936
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(EventListItemDetailsContent, __spreadValues({ event }, rest));
5807
5937
  }
5808
5938
  if ("eventId" in props && typeof props.eventId === "string") {
5809
5939
  const {
@@ -5828,9 +5958,9 @@ var EventListItemDetails = (props) => {
5828
5958
  ariaLabel: ariaLabelOverride,
5829
5959
  defaultTimeRange: defaultTimeRangeOverride
5830
5960
  };
5831
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(EventListItemDetailsByEventId, __spreadValues({}, byEventIdProps));
5961
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(EventListItemDetailsByEventId, __spreadValues({}, byEventIdProps));
5832
5962
  }
5833
- return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
5963
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
5834
5964
  EventListItemDetailsUnavailableState,
5835
5965
  {
5836
5966
  classNames: props.classNames,
@@ -5874,12 +6004,11 @@ var resolveInitialTab = (defaultTab) => {
5874
6004
  return "order-book";
5875
6005
  };
5876
6006
  var resolveMarket = (event, marketId) => {
5877
- var _a;
5878
6007
  if (!event.markets.length)
5879
6008
  return void 0;
5880
6009
  if (!marketId)
5881
6010
  return event.markets[0];
5882
- return (_a = event.markets.find((market) => market.id === marketId)) != null ? _a : event.markets[0];
6011
+ return event.markets.find((market) => market.id === marketId);
5883
6012
  };
5884
6013
  var resolveDisplayOutcomeLabels = (labels) => {
5885
6014
  if (!hasBinaryLabels(labels))
@@ -6075,14 +6204,14 @@ var buildMarketDetailsModel = ({
6075
6204
  };
6076
6205
 
6077
6206
  // src/events/market-details/index.tsx
6078
- var import_jsx_runtime73 = require("react/jsx-runtime");
6207
+ var import_jsx_runtime74 = require("react/jsx-runtime");
6079
6208
  var MarketDetailsLoadingState = ({
6080
6209
  isOpened = marketDetailsDefaultIsOpened,
6081
6210
  ariaLabel,
6082
6211
  classNames
6083
6212
  }) => {
6084
6213
  const labels = (0, import_hooks23.useLabels)();
6085
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6214
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6086
6215
  Skeleton,
6087
6216
  {
6088
6217
  view: isOpened ? "market-details-detailed" : "market-details-minified",
@@ -6096,19 +6225,34 @@ var MarketDetailsUnavailableState = ({
6096
6225
  classNames
6097
6226
  }) => {
6098
6227
  const labels = (0, import_hooks23.useLabels)();
6099
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6228
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6100
6229
  Card,
6101
6230
  {
6102
6231
  className: cn(marketDetailsBaseCardClassName, classNames == null ? void 0 : classNames.root),
6103
6232
  role: "status",
6104
6233
  "aria-label": ariaLabel != null ? ariaLabel : labels.marketDetails.unavailableAria,
6105
- children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex flex-col gap-1 p-5", children: [
6106
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typography, { variant: "body-large-strong", children: labels.marketDetails.unavailableTitle }),
6107
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typography, { variant: "label", className: "text-agg-muted-foreground", children: labels.marketDetails.unavailableDescription })
6234
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex flex-col gap-1 p-5", children: [
6235
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Typography, { variant: "body-large-strong", children: labels.marketDetails.unavailableTitle }),
6236
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Typography, { variant: "label", className: "text-agg-muted-foreground", children: labels.marketDetails.unavailableDescription })
6108
6237
  ] })
6109
6238
  }
6110
6239
  );
6111
6240
  };
6241
+ var MarketDetailsNotFoundState = ({
6242
+ ariaLabel,
6243
+ classNames
6244
+ }) => {
6245
+ const labels = (0, import_hooks23.useLabels)();
6246
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Card, { className: cn(marketDetailsBaseCardClassName, "p-0", classNames == null ? void 0 : classNames.root), children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6247
+ StateMessage,
6248
+ {
6249
+ ariaLabel: ariaLabel != null ? ariaLabel : labels.marketDetails.notFoundAria,
6250
+ title: labels.marketDetails.notFoundTitle,
6251
+ description: labels.marketDetails.notFoundDescription,
6252
+ className: "min-h-[280px] md:min-h-[320px]"
6253
+ }
6254
+ ) });
6255
+ };
6112
6256
  var OrderBookRows = ({
6113
6257
  rows,
6114
6258
  title,
@@ -6125,20 +6269,20 @@ var OrderBookRows = ({
6125
6269
  const orderBookDividerHeightPx = 1;
6126
6270
  const orderBookRowGapPx = 8;
6127
6271
  const orderBookVisibleHeightPx = maxVisibleRows * orderBookRowHeightPx + Math.max(0, maxVisibleRows - 1) * (orderBookDividerHeightPx + orderBookRowGapPx);
6128
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex flex-col gap-2", children: [
6129
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typography, { variant: "caption-caps", children: title }),
6130
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6272
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex flex-col gap-2", children: [
6273
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Typography, { variant: "caption-caps", children: title }),
6274
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6131
6275
  "div",
6132
6276
  {
6133
6277
  className: "overflow-y-auto pr-1 flex flex-col gap-2",
6134
6278
  style: { maxHeight: `${orderBookVisibleHeightPx}px` },
6135
6279
  role: "region",
6136
6280
  "aria-label": `${title} order book levels`,
6137
- children: rows.map((row, index) => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex flex-col gap-2", children: [
6138
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "grid grid-cols-[52px_1fr_1fr_52px] items-center gap-2 md:grid-cols-[88px_1fr_1fr_minmax(120px,220px)] md:gap-6", children: [
6139
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex items-center gap-1 md:gap-3", children: [
6140
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(VenueLogo, { venue: row.venue, size: "small" }),
6141
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6281
+ children: rows.map((row, index) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex flex-col gap-2", children: [
6282
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "grid grid-cols-[52px_1fr_1fr_52px] items-center gap-2 md:grid-cols-[88px_1fr_1fr_minmax(120px,220px)] md:gap-6", children: [
6283
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-center gap-1 md:gap-3", children: [
6284
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(VenueLogo, { venue: row.venue, size: "small" }),
6285
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6142
6286
  "span",
6143
6287
  {
6144
6288
  className: cn(
@@ -6149,9 +6293,9 @@ var OrderBookRows = ({
6149
6293
  }
6150
6294
  )
6151
6295
  ] }),
6152
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "truncate text-agg-xs leading-agg-4 text-center text-agg-foreground md:text-agg-sm md:leading-agg-5", children: formatNumber(row.size) }),
6153
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "truncate text-agg-xs leading-agg-4 text-center text-agg-foreground md:text-agg-sm md:leading-agg-5", children: formatCurrency(row.total) }),
6154
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6296
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "truncate text-agg-xs leading-agg-4 text-center text-agg-foreground md:text-agg-sm md:leading-agg-5", children: formatNumber(row.size) }),
6297
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "truncate text-agg-xs leading-agg-4 text-center text-agg-foreground md:text-agg-sm md:leading-agg-5", children: formatCurrency(row.total) }),
6298
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6155
6299
  "div",
6156
6300
  {
6157
6301
  "aria-hidden": "true",
@@ -6162,7 +6306,7 @@ var OrderBookRows = ({
6162
6306
  }
6163
6307
  ) })
6164
6308
  ] }),
6165
- index < rows.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "h-px w-full bg-agg-separator" }) : null
6309
+ index < rows.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "h-px w-full bg-agg-separator" }) : null
6166
6310
  ] }, row.id))
6167
6311
  }
6168
6312
  )
@@ -6212,6 +6356,9 @@ var MarketDetailsContent = ({
6212
6356
  labels
6213
6357
  });
6214
6358
  }, [config.formatCompactCurrency, event, image, labels, marketId, title]);
6359
+ const resolvedMarket = (0, import_react10.useMemo)(() => {
6360
+ return resolveMarket(event, marketId);
6361
+ }, [event, marketId]);
6215
6362
  const marketDetailsTabs = (0, import_react10.useMemo)(() => {
6216
6363
  return getMarketDetailsTabs(labels);
6217
6364
  }, [labels]);
@@ -6299,7 +6446,12 @@ var MarketDetailsContent = ({
6299
6446
  liveUpdate: true
6300
6447
  }));
6301
6448
  }, [selectedOutcomesByVenue]);
6302
- const { data: orderBookData, isLoading: isOrderBookLoading } = (0, import_hooks23.useOrderBook)({
6449
+ const {
6450
+ data: orderBookData,
6451
+ isLoading: isOrderBookLoading,
6452
+ error: orderBookError,
6453
+ results: orderBookResults
6454
+ } = (0, import_hooks23.useOrderBook)({
6303
6455
  orderbooks: orderBookInputs,
6304
6456
  enabled: isOpened && selectedTab === "order-book" && orderBookInputs.length > 0
6305
6457
  });
@@ -6388,6 +6540,9 @@ var MarketDetailsContent = ({
6388
6540
  return [];
6389
6541
  return resolveOtherTabRows(model.market, labels);
6390
6542
  }, [labels, model]);
6543
+ const isOrderBookNotFound = isErrorWithStatus(orderBookError, 404);
6544
+ const hasOrderBookError = !!orderBookError && !isOrderBookNotFound;
6545
+ const hasNoOrderBook = isOrderBookNotFound || !isOrderBookLoading && !hasOrderBookError && (orderBookInputs.length === 0 || askRows.length === 0 && bidRows.length === 0);
6391
6546
  const handleOutcomeKeyDown = (eventToHandle) => {
6392
6547
  var _a;
6393
6548
  if ((eventToHandle == null ? void 0 : eventToHandle.key) !== "ArrowLeft" && (eventToHandle == null ? void 0 : eventToHandle.key) !== "ArrowRight") {
@@ -6421,6 +6576,9 @@ var MarketDetailsContent = ({
6421
6576
  return venue;
6422
6577
  });
6423
6578
  };
6579
+ const handleRetryOrderBook = () => {
6580
+ void Promise.all(orderBookResults.map((result) => result.refetch()));
6581
+ };
6424
6582
  (0, import_react10.useEffect)(() => {
6425
6583
  if (!selectedGraphVenue) {
6426
6584
  return;
@@ -6430,10 +6588,13 @@ var MarketDetailsContent = ({
6430
6588
  }
6431
6589
  setSelectedGraphVenue(null);
6432
6590
  }, [selectedGraphVenue, selectedOutcomesByVenue]);
6591
+ if (marketId && !resolvedMarket) {
6592
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(MarketDetailsNotFoundState, { ariaLabel, classNames });
6593
+ }
6433
6594
  if (!model) {
6434
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(MarketDetailsUnavailableState, { ariaLabel, classNames });
6595
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(MarketDetailsUnavailableState, { ariaLabel, classNames });
6435
6596
  }
6436
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
6597
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
6437
6598
  Card,
6438
6599
  {
6439
6600
  className: cn(
@@ -6442,7 +6603,7 @@ var MarketDetailsContent = ({
6442
6603
  classNames == null ? void 0 : classNames.root
6443
6604
  ),
6444
6605
  children: [
6445
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
6606
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
6446
6607
  "div",
6447
6608
  {
6448
6609
  className: cn(
@@ -6459,8 +6620,8 @@ var MarketDetailsContent = ({
6459
6620
  onClick: handleToggleExpanded,
6460
6621
  onKeyDown: handleToggleExpanded,
6461
6622
  children: [
6462
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex min-w-52 items-center gap-3 md:gap-4", children: [
6463
- model.image ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6623
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex min-w-52 items-center gap-3 md:gap-4", children: [
6624
+ model.image ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6464
6625
  "img",
6465
6626
  {
6466
6627
  src: model.image,
@@ -6468,13 +6629,13 @@ var MarketDetailsContent = ({
6468
6629
  className: "size-12 rounded-agg-lg object-cover md:size-[60px]"
6469
6630
  }
6470
6631
  ) : null,
6471
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex min-w-0 flex-col", children: [
6472
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typography, { as: "h3", variant: "body-large-strong", className: "truncate", children: model.title }),
6473
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typography, { variant: "label", className: "truncate text-agg-muted-foreground", children: model.subtitle }) })
6632
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex min-w-0 flex-col", children: [
6633
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Typography, { as: "h3", variant: "body-large-strong", className: "truncate", children: model.title }),
6634
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Typography, { variant: "label", className: "truncate text-agg-muted-foreground", children: model.subtitle }) })
6474
6635
  ] })
6475
6636
  ] }),
6476
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typography, { as: "div", variant: "heading", className: "shrink-0", children: formatProbabilityPercent(headlineProbability) }),
6477
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6637
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Typography, { as: "div", variant: "heading", className: "shrink-0", children: formatProbabilityPercent(headlineProbability) }),
6638
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6478
6639
  "div",
6479
6640
  {
6480
6641
  className: "flex gap-2",
@@ -6485,7 +6646,7 @@ var MarketDetailsContent = ({
6485
6646
  children: headerOutcomeItems.map((item) => {
6486
6647
  const isPositive = item.tone === "positive";
6487
6648
  const isActiveOutcome = item.label === selectedOutcomeLabel;
6488
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6649
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6489
6650
  "button",
6490
6651
  {
6491
6652
  type: "button",
@@ -6502,8 +6663,8 @@ var MarketDetailsContent = ({
6502
6663
  e.stopPropagation();
6503
6664
  setSelectedOutcomeLabel(item.label);
6504
6665
  },
6505
- children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("span", { className: "inline-flex items-center gap-2", children: [
6506
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6666
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("span", { className: "inline-flex items-center gap-2", children: [
6667
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6507
6668
  VenueLogo,
6508
6669
  {
6509
6670
  venue: isPositive ? "polymarket" : "probable",
@@ -6511,7 +6672,7 @@ var MarketDetailsContent = ({
6511
6672
  color: isActiveOutcome ? "var(--agg-color-on-primary)" : void 0
6512
6673
  }
6513
6674
  ),
6514
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6675
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6515
6676
  Typography,
6516
6677
  {
6517
6678
  variant: isActiveOutcome ? "body-strong" : "body",
@@ -6532,7 +6693,7 @@ var MarketDetailsContent = ({
6532
6693
  ]
6533
6694
  }
6534
6695
  ),
6535
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6696
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6536
6697
  "div",
6537
6698
  {
6538
6699
  id: detailsContentId,
@@ -6542,9 +6703,9 @@ var MarketDetailsContent = ({
6542
6703
  isOpened ? "grid-rows-[1fr] opacity-100" : "pointer-events-none grid-rows-[0fr] opacity-0"
6543
6704
  ),
6544
6705
  "aria-hidden": !isOpened,
6545
- children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "min-h-0", children: [
6546
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
6547
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
6706
+ children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "min-h-0", children: [
6707
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
6708
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
6548
6709
  "div",
6549
6710
  {
6550
6711
  className: cn(
@@ -6558,7 +6719,7 @@ var MarketDetailsContent = ({
6558
6719
  ) : "translate-y-5 opacity-0"
6559
6720
  ),
6560
6721
  children: [
6561
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: cn("block", classNames == null ? void 0 : classNames.tabs), children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6722
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: cn("block", classNames == null ? void 0 : classNames.tabs), children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6562
6723
  Tabs,
6563
6724
  {
6564
6725
  ariaLabel: labels.marketDetails.tabsAria,
@@ -6569,10 +6730,29 @@ var MarketDetailsContent = ({
6569
6730
  className: "w-full px-5"
6570
6731
  }
6571
6732
  ) }),
6572
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
6573
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: cn("p-5", classNames == null ? void 0 : classNames.content), children: [
6574
- selectedTab === "order-book" ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: cn("flex flex-col gap-5", classNames == null ? void 0 : classNames.orderBook), children: isOrderBookLoading ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(MarketDetailsOderbookSkeleton, {}) : /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
6575
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6733
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
6734
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: cn("p-5", classNames == null ? void 0 : classNames.content), children: [
6735
+ selectedTab === "order-book" ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: cn("flex flex-col gap-5", classNames == null ? void 0 : classNames.orderBook), children: isOrderBookLoading ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(MarketDetailsOderbookSkeleton, {}) : hasOrderBookError ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6736
+ StateMessage,
6737
+ {
6738
+ ariaLabel: labels.marketDetails.orderBookUnavailableAria,
6739
+ tone: "warning",
6740
+ title: labels.marketDetails.orderBookUnavailableTitle,
6741
+ description: labels.marketDetails.orderBookUnavailableDescription,
6742
+ actionLabel: labels.common.retry,
6743
+ onAction: handleRetryOrderBook,
6744
+ className: "min-h-[248px] px-5 py-10 md:min-h-[272px]"
6745
+ }
6746
+ ) : hasNoOrderBook ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6747
+ StateMessage,
6748
+ {
6749
+ ariaLabel: labels.marketDetails.orderBookEmptyAria,
6750
+ title: labels.marketDetails.orderBookEmptyTitle,
6751
+ description: labels.marketDetails.orderBookEmptyDescription,
6752
+ className: "min-h-[248px] px-5 py-10 md:min-h-[272px]"
6753
+ }
6754
+ ) : /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
6755
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6576
6756
  OrderBookRows,
6577
6757
  {
6578
6758
  rows: askRows,
@@ -6582,7 +6762,7 @@ var MarketDetailsContent = ({
6582
6762
  visibleRows: orderBookDepth
6583
6763
  }
6584
6764
  ),
6585
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6765
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6586
6766
  OrderBookRows,
6587
6767
  {
6588
6768
  rows: bidRows,
@@ -6593,8 +6773,8 @@ var MarketDetailsContent = ({
6593
6773
  }
6594
6774
  )
6595
6775
  ] }) }) : null,
6596
- selectedTab === "graph" ? /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: cn("flex flex-col gap-5", classNames == null ? void 0 : classNames.graph), children: [
6597
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6776
+ selectedTab === "graph" ? /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: cn("flex flex-col gap-5", classNames == null ? void 0 : classNames.graph), children: [
6777
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6598
6778
  LineChart,
6599
6779
  {
6600
6780
  series: graphSeries,
@@ -6603,11 +6783,11 @@ var MarketDetailsContent = ({
6603
6783
  classNames: { root: "w-full" },
6604
6784
  showSeriesControls: selectedOutcomesByVenue.length > 0 || headerOutcomeItems.length > 0,
6605
6785
  renderSeriesControls: () => {
6606
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex flex-col gap-4 md:flex-row md:items-center md:justify-between", children: [
6607
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "flex flex-wrap gap-2", children: selectedOutcomesByVenue.map((item) => {
6786
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex flex-col gap-4 md:flex-row md:items-center md:justify-between", children: [
6787
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "flex flex-wrap gap-2", children: selectedOutcomesByVenue.map((item) => {
6608
6788
  const probability = formatProbabilityPercent(item.outcome.price);
6609
6789
  const isActiveVenue = selectedGraphVenue === item.venue;
6610
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
6790
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
6611
6791
  "button",
6612
6792
  {
6613
6793
  type: "button",
@@ -6624,14 +6804,14 @@ var MarketDetailsContent = ({
6624
6804
  handleGraphVenueToggle(item.venue);
6625
6805
  },
6626
6806
  children: [
6627
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(VenueLogo, { venue: item.venue, size: "small" }),
6628
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: probability })
6807
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(VenueLogo, { venue: item.venue, size: "small" }),
6808
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: probability })
6629
6809
  ]
6630
6810
  },
6631
6811
  `${item.market.id}-${item.outcome.id}`
6632
6812
  );
6633
6813
  }) }),
6634
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6814
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6635
6815
  SwitchButton,
6636
6816
  {
6637
6817
  ariaLabel: labels.marketDetails.outcomeSelectorAria,
@@ -6649,7 +6829,7 @@ var MarketDetailsContent = ({
6649
6829
  }
6650
6830
  }
6651
6831
  ),
6652
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
6832
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
6653
6833
  "div",
6654
6834
  {
6655
6835
  className: cn(
@@ -6657,10 +6837,10 @@ var MarketDetailsContent = ({
6657
6837
  classNames == null ? void 0 : classNames.footer
6658
6838
  ),
6659
6839
  children: [
6660
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { children: typeof model.market.volume === "number" ? `${config.formatCompactCurrency(model.market.volume)} ${labels.marketDetails.meta.volumeSuffix}` : labels.marketDetails.volumeUnavailable }),
6661
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "flex flex-wrap items-center gap-3 md:gap-4", children: eventListItemDetailsTimeRanges.map((timeRange) => {
6840
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { children: typeof model.market.volume === "number" ? `${config.formatCompactCurrency(model.market.volume)} ${labels.marketDetails.meta.volumeSuffix}` : labels.marketDetails.volumeUnavailable }),
6841
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "flex flex-wrap items-center gap-3 md:gap-4", children: eventListItemDetailsTimeRanges.map((timeRange) => {
6662
6842
  const isActive = selectedTimeRange === timeRange;
6663
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6843
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6664
6844
  "button",
6665
6845
  {
6666
6846
  type: "button",
@@ -6683,13 +6863,13 @@ var MarketDetailsContent = ({
6683
6863
  }
6684
6864
  )
6685
6865
  ] }) : null,
6686
- selectedTab === "other" ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "flex flex-col gap-4", children: otherContent != null ? otherContent : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "grid grid-cols-1 gap-3", children: otherRows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
6866
+ selectedTab === "other" ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "flex flex-col gap-4", children: otherContent != null ? otherContent : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "grid grid-cols-1 gap-3", children: otherRows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
6687
6867
  "div",
6688
6868
  {
6689
6869
  className: "flex items-center justify-between rounded-agg-xl bg-agg-secondary-hover px-4 py-3",
6690
6870
  children: [
6691
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typography, { variant: "label", className: "text-agg-muted-foreground", children: row.label }),
6692
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Typography, { variant: "body", className: "text-right", children: row.value })
6871
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Typography, { variant: "label", className: "text-agg-muted-foreground", children: row.label }),
6872
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Typography, { variant: "body", className: "text-right", children: row.value })
6693
6873
  ]
6694
6874
  },
6695
6875
  row.label
@@ -6724,14 +6904,15 @@ var MarketDetails = (props) => {
6724
6904
  (_a2 = props.onOpenChange) == null ? void 0 : _a2.call(props, nextIsOpened);
6725
6905
  };
6726
6906
  const hasEventProp = "event" in props && !!props.event;
6727
- const { event: fetchedEvent, isLoading: isFetchingEvent } = (0, import_hooks23.useEvent)(
6728
- hasEventProp ? void 0 : props.eventId,
6729
- {
6730
- enabled: !props.isLoading && !hasEventProp && !!props.eventId
6731
- }
6732
- );
6907
+ const {
6908
+ event: fetchedEvent,
6909
+ error: eventError,
6910
+ isLoading: isFetchingEvent
6911
+ } = (0, import_hooks23.useEvent)(hasEventProp ? void 0 : props.eventId, {
6912
+ enabled: !props.isLoading && !hasEventProp && !!props.eventId
6913
+ });
6733
6914
  if (props.isLoading) {
6734
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6915
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6735
6916
  MarketDetailsLoadingState,
6736
6917
  {
6737
6918
  isOpened: resolvedIsOpened,
@@ -6741,7 +6922,7 @@ var MarketDetails = (props) => {
6741
6922
  );
6742
6923
  }
6743
6924
  if ("event" in props && props.event) {
6744
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6925
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6745
6926
  MarketDetailsContent,
6746
6927
  __spreadProps(__spreadValues({}, props), {
6747
6928
  isOpened: resolvedIsOpened,
@@ -6751,7 +6932,7 @@ var MarketDetails = (props) => {
6751
6932
  );
6752
6933
  }
6753
6934
  if (isFetchingEvent) {
6754
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6935
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6755
6936
  MarketDetailsLoadingState,
6756
6937
  {
6757
6938
  isOpened: resolvedIsOpened,
@@ -6761,9 +6942,12 @@ var MarketDetails = (props) => {
6761
6942
  );
6762
6943
  }
6763
6944
  if (!fetchedEvent) {
6764
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(MarketDetailsUnavailableState, { ariaLabel: props.ariaLabel, classNames: props.classNames });
6945
+ if (isErrorWithStatus(eventError, 404)) {
6946
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(MarketDetailsNotFoundState, { ariaLabel: props.ariaLabel, classNames: props.classNames });
6947
+ }
6948
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(MarketDetailsUnavailableState, { ariaLabel: props.ariaLabel, classNames: props.classNames });
6765
6949
  }
6766
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
6950
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
6767
6951
  MarketDetailsContent,
6768
6952
  __spreadProps(__spreadValues({}, props), {
6769
6953
  isOpened: resolvedIsOpened,
@@ -6827,14 +7011,14 @@ var resolveTabVenus = (tab) => {
6827
7011
  };
6828
7012
 
6829
7013
  // src/events/list/index.tsx
6830
- var import_jsx_runtime74 = require("react/jsx-runtime");
7014
+ var import_jsx_runtime75 = require("react/jsx-runtime");
6831
7015
  var renderTabIcon = (tab, isActive) => {
6832
7016
  if (tab.venueLogo) {
6833
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(VenueLogo, { venue: tab.venueLogo, size: "small" });
7017
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(VenueLogo, { venue: tab.venueLogo, size: "small" });
6834
7018
  }
6835
7019
  if (!tab.iconName)
6836
7020
  return null;
6837
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7021
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
6838
7022
  Icon,
6839
7023
  {
6840
7024
  name: tab.iconName,
@@ -7004,17 +7188,17 @@ var EventList = ({
7004
7188
  "md:[grid-template-columns:repeat(var(--agg-event-list-columns),minmax(0,1fr))]"
7005
7189
  );
7006
7190
  if (shouldRenderLoadingState) {
7007
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Skeleton, { view: "event-list", ariaLabel: labels.eventList.loading(title) });
7191
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Skeleton, { view: "event-list", ariaLabel: labels.eventList.loading(title) });
7008
7192
  }
7009
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("section", { className: "flex w-full flex-col gap-5", children: [
7010
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
7193
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("section", { className: "flex w-full flex-col gap-5", children: [
7194
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
7011
7195
  "header",
7012
7196
  {
7013
7197
  ref: headerRef,
7014
7198
  className: "flex flex-col sm:flex-row w-full flex-nowrap items-start sm:items-center justify-between gap-2 sm:gap-4",
7015
7199
  children: [
7016
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { ref: titleRef, className: "min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Typography, { as: "h2", variant: "title", className: "truncate [&::first-letter]:uppercase", children: title }) }),
7017
- /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7200
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { ref: titleRef, className: "min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Typography, { as: "h2", variant: "title", className: "truncate [&::first-letter]:uppercase", children: title }) }),
7201
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7018
7202
  Tabs,
7019
7203
  {
7020
7204
  ariaLabel: labels.eventList.tabsAria(title),
@@ -7026,8 +7210,8 @@ var EventList = ({
7026
7210
  ]
7027
7211
  }
7028
7212
  ),
7029
- /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: gridClassName, style: gridStyle, children: [
7030
- tileEvents.map((event) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7213
+ /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: gridClassName, style: gridStyle, children: [
7214
+ tileEvents.map((event) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7031
7215
  EventListItem,
7032
7216
  {
7033
7217
  event,
@@ -7038,7 +7222,7 @@ var EventList = ({
7038
7222
  },
7039
7223
  event.id
7040
7224
  )),
7041
- Array.from({ length: loadingPlaceholderCount }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7225
+ Array.from({ length: loadingPlaceholderCount }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7042
7226
  EventListItem,
7043
7227
  {
7044
7228
  isLoading: true,
@@ -7048,15 +7232,16 @@ var EventList = ({
7048
7232
  },
7049
7233
  `loading-${index}`
7050
7234
  )),
7051
- !isLoading && !isError && (tileEvents == null ? void 0 : tileEvents.length) === 0 ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7052
- Typography,
7235
+ !isLoading && !isError && (tileEvents == null ? void 0 : tileEvents.length) === 0 ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Card, { className: "col-span-full overflow-hidden shadow-none hover:shadow-none", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7236
+ StateMessage,
7053
7237
  {
7054
- variant: "body",
7055
- className: "w-full col-span-full flex flex-col items-center justify-center h-32",
7056
- children: labels.eventList.empty
7238
+ ariaLabel: labels.eventList.emptyAria,
7239
+ title: labels.eventList.emptyTitle,
7240
+ description: labels.eventList.emptyDescription,
7241
+ className: "min-h-[320px]"
7057
7242
  }
7058
- ) : null,
7059
- isError ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
7243
+ ) }) : null,
7244
+ isError ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7060
7245
  Typography,
7061
7246
  {
7062
7247
  variant: "body",
@@ -7065,7 +7250,7 @@ var EventList = ({
7065
7250
  }
7066
7251
  ) : null
7067
7252
  ] }),
7068
- shouldPaginate && hasNextPage ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { ref: loadMoreRef, className: "h-px w-full", "aria-hidden": true }) : null
7253
+ shouldPaginate && hasNextPage ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { ref: loadMoreRef, className: "h-px w-full", "aria-hidden": true }) : null
7069
7254
  ] });
7070
7255
  };
7071
7256
  EventList.displayName = "EventList";
@@ -7199,7 +7384,7 @@ var resolveInitialTabValue = (tabs, defaultActiveTab) => {
7199
7384
  };
7200
7385
 
7201
7386
  // src/pages/home/index.tsx
7202
- var import_jsx_runtime75 = require("react/jsx-runtime");
7387
+ var import_jsx_runtime76 = require("react/jsx-runtime");
7203
7388
  var HomePage = ({
7204
7389
  tabs,
7205
7390
  defaultActiveTab,
@@ -7246,7 +7431,7 @@ var HomePage = ({
7246
7431
  return {
7247
7432
  value: tab.value,
7248
7433
  label: tab.label,
7249
- icon: tab.iconName ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7434
+ icon: tab.iconName ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
7250
7435
  Icon,
7251
7436
  {
7252
7437
  name: tab.iconName,
@@ -7287,12 +7472,12 @@ var HomePage = ({
7287
7472
  setActiveTabValue(value);
7288
7473
  onTabChange == null ? void 0 : onTabChange(value);
7289
7474
  };
7290
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("section", { className: cn("flex w-full flex-col", classNames == null ? void 0 : classNames.root), children: [
7291
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7475
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("section", { className: cn("flex w-full flex-col", classNames == null ? void 0 : classNames.root), children: [
7476
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
7292
7477
  "header",
7293
7478
  {
7294
7479
  className: cn("w-full bg-agg-secondary border-b border-agg-separator", classNames == null ? void 0 : classNames.header),
7295
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7480
+ children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
7296
7481
  Tabs,
7297
7482
  {
7298
7483
  ariaLabel: labels.home.categoryTabsAria,
@@ -7305,7 +7490,7 @@ var HomePage = ({
7305
7490
  )
7306
7491
  }
7307
7492
  ),
7308
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7493
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
7309
7494
  "main",
7310
7495
  {
7311
7496
  className: cn(
@@ -7314,7 +7499,7 @@ var HomePage = ({
7314
7499
  ),
7315
7500
  children: resolvedSectionItems.map((eventSectionItem) => {
7316
7501
  var _a, _b, _c;
7317
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
7502
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
7318
7503
  EventList,
7319
7504
  {
7320
7505
  title: eventSectionItem.title,
@@ -7342,12 +7527,12 @@ var KALSHI_VENUE2 = "kalshi";
7342
7527
  var KALSHI_DEPOSIT_URL_DEFAULT = "https://kalshi.com/account/deposit";
7343
7528
 
7344
7529
  // src/deposit/steps/venue-selection.tsx
7345
- var import_jsx_runtime76 = require("react/jsx-runtime");
7530
+ var import_jsx_runtime77 = require("react/jsx-runtime");
7346
7531
  var VenueRow = ({ venue, onSelect }) => {
7347
7532
  var _a;
7348
7533
  const displayName = (_a = venueLogoLabels[venue.venue]) != null ? _a : venue.venue;
7349
7534
  const hasShortfall = venue.shortfall != null && venue.shortfall > 0;
7350
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
7535
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
7351
7536
  "div",
7352
7537
  {
7353
7538
  className: cn(
@@ -7366,27 +7551,27 @@ var VenueRow = ({ venue, onSelect }) => {
7366
7551
  }
7367
7552
  },
7368
7553
  children: [
7369
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(VenueLogo, { venue: venue.venue, size: "large", className: "rounded-lg" }) }),
7370
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex-1 min-w-0", children: [
7371
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: displayName }),
7372
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
7554
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(VenueLogo, { venue: venue.venue, size: "large", className: "rounded-lg" }) }),
7555
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex-1 min-w-0", children: [
7556
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: displayName }),
7557
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
7373
7558
  "Balance ",
7374
7559
  formatCompactUsd(venue.balance)
7375
7560
  ] })
7376
7561
  ] }),
7377
- hasShortfall ? /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "hidden sm:flex items-center gap-1.5 shrink-0", children: [
7378
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(WarningFilledIcon, { className: "h-4 w-4 text-agg-warning" }),
7379
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("span", { className: "agg-type-label-strong whitespace-nowrap text-agg-warning", children: [
7562
+ hasShortfall ? /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "hidden sm:flex items-center gap-1.5 shrink-0", children: [
7563
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(WarningFilledIcon, { className: "h-4 w-4 text-agg-warning" }),
7564
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("span", { className: "agg-type-label-strong whitespace-nowrap text-agg-warning", children: [
7380
7565
  "Short ",
7381
7566
  formatCompactUsd(venue.shortfall)
7382
7567
  ] })
7383
7568
  ] }) : null,
7384
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
7569
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7385
7570
  Button,
7386
7571
  {
7387
7572
  variant: "secondary",
7388
7573
  size: "small",
7389
- suffix: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(ChevronRightIcon, {}),
7574
+ suffix: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ChevronRightIcon, {}),
7390
7575
  onClick: (e) => {
7391
7576
  e.stopPropagation();
7392
7577
  onSelect(venue.venue);
@@ -7402,22 +7587,22 @@ var VenueSelectionStep = ({
7402
7587
  venues,
7403
7588
  hasAnyShortfall,
7404
7589
  onSelectVenue
7405
- }) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
7406
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Modal.Header, { title: "Deposit", hideBorder: true }),
7407
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex flex-col gap-4", children: [
7408
- !hasAnyShortfall ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("p", { className: "agg-type-body text-agg-foreground", children: "Choose where to deposit funds:" }) : null,
7409
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex flex-col gap-3", children: venues.map((venue) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(VenueRow, { venue, onSelect: onSelectVenue }, venue.venue)) })
7590
+ }) => /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
7591
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Modal.Header, { title: "Deposit", hideBorder: true }),
7592
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex flex-col gap-4", children: [
7593
+ !hasAnyShortfall ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("p", { className: "agg-type-body text-agg-foreground", children: "Choose where to deposit funds:" }) : null,
7594
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex flex-col gap-3", children: venues.map((venue) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(VenueRow, { venue, onSelect: onSelectVenue }, venue.venue)) })
7410
7595
  ] }) })
7411
7596
  ] });
7412
7597
 
7413
7598
  // src/deposit/steps/deposit-method.tsx
7414
- var import_jsx_runtime77 = require("react/jsx-runtime");
7599
+ var import_jsx_runtime78 = require("react/jsx-runtime");
7415
7600
  var DepositMethodCard = ({
7416
7601
  icon,
7417
7602
  title,
7418
7603
  description,
7419
7604
  onContinue
7420
- }) => /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
7605
+ }) => /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
7421
7606
  "div",
7422
7607
  {
7423
7608
  className: cn(
@@ -7436,17 +7621,17 @@ var DepositMethodCard = ({
7436
7621
  }
7437
7622
  },
7438
7623
  children: [
7439
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "shrink-0 flex items-center justify-center h-10 w-10 rounded-lg bg-secondary-hover", children: icon }),
7440
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex-1 min-w-0", children: [
7441
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: title }),
7442
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: description })
7624
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "shrink-0 flex items-center justify-center h-10 w-10 rounded-lg bg-secondary-hover", children: icon }),
7625
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex-1 min-w-0", children: [
7626
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: title }),
7627
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: description })
7443
7628
  ] }),
7444
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7629
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7445
7630
  Button,
7446
7631
  {
7447
7632
  variant: "secondary",
7448
7633
  size: "small",
7449
- suffix: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ChevronRightIcon, {}),
7634
+ suffix: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ChevronRightIcon, {}),
7450
7635
  onClick: (e) => {
7451
7636
  e.stopPropagation();
7452
7637
  onContinue();
@@ -7464,47 +7649,47 @@ var DepositMethodStep = ({
7464
7649
  }) => {
7465
7650
  var _a;
7466
7651
  const displayName = (_a = venueLogoLabels[venue.venue]) != null ? _a : venue.venue;
7467
- return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(import_jsx_runtime77.Fragment, { children: [
7468
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7652
+ return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
7653
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7469
7654
  Modal.Header,
7470
7655
  {
7471
7656
  title: `Deposit to ${displayName}`,
7472
7657
  hideBorder: true,
7473
- leftElement: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7658
+ leftElement: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7474
7659
  "button",
7475
7660
  {
7476
7661
  type: "button",
7477
7662
  className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
7478
7663
  onClick: onBack,
7479
7664
  "aria-label": "Go back",
7480
- children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
7665
+ children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
7481
7666
  }
7482
7667
  )
7483
7668
  }
7484
7669
  ),
7485
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex flex-col gap-4", children: [
7486
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex items-center gap-2", children: [
7487
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(VenueLogo, { venue: venue.venue, size: "small", className: "rounded-sm" }),
7488
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
7670
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex flex-col gap-4", children: [
7671
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex items-center gap-2", children: [
7672
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(VenueLogo, { venue: venue.venue, size: "small", className: "rounded-sm" }),
7673
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
7489
7674
  displayName,
7490
7675
  " balance: ",
7491
7676
  formatCompactUsd(venue.balance)
7492
7677
  ] })
7493
7678
  ] }),
7494
- /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex flex-col gap-3", children: [
7495
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7679
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex flex-col gap-3", children: [
7680
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7496
7681
  DepositMethodCard,
7497
7682
  {
7498
- icon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(BoltIcon, { className: "h-6 w-6 text-agg-foreground" }),
7683
+ icon: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(BoltIcon, { className: "h-6 w-6 text-agg-foreground" }),
7499
7684
  title: "Transfer Crypto",
7500
7685
  description: "Send USDC from your blockchain wallet.",
7501
7686
  onContinue: () => onSelectMethod("crypto")
7502
7687
  }
7503
7688
  ),
7504
- /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
7689
+ /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7505
7690
  DepositMethodCard,
7506
7691
  {
7507
- icon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(CreditCardIcon, { className: "h-6 w-6 text-agg-foreground" }),
7692
+ icon: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(CreditCardIcon, { className: "h-6 w-6 text-agg-foreground" }),
7508
7693
  title: "Deposit with Card",
7509
7694
  description: "Buy USDC instantly with a debit or credit card.",
7510
7695
  onContinue: () => onSelectMethod("card")
@@ -7517,7 +7702,7 @@ var DepositMethodStep = ({
7517
7702
 
7518
7703
  // src/deposit/steps/card-deposit.tsx
7519
7704
  var import_react13 = require("react");
7520
- var import_jsx_runtime78 = require("react/jsx-runtime");
7705
+ var import_jsx_runtime79 = require("react/jsx-runtime");
7521
7706
  var CardDepositStep = ({
7522
7707
  venue,
7523
7708
  onBack,
@@ -7534,35 +7719,35 @@ var CardDepositStep = ({
7534
7719
  const sanitized = parts.length > 2 ? `${parts[0]}.${parts.slice(1).join("")}` : v;
7535
7720
  setRawAmount(sanitized);
7536
7721
  }, []);
7537
- return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
7538
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7722
+ return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
7723
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7539
7724
  Modal.Header,
7540
7725
  {
7541
7726
  title: `Deposit to ${displayName}`,
7542
7727
  hideBorder: true,
7543
- leftElement: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7728
+ leftElement: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7544
7729
  "button",
7545
7730
  {
7546
7731
  type: "button",
7547
7732
  className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
7548
7733
  onClick: onBack,
7549
7734
  "aria-label": "Go back",
7550
- children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
7735
+ children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
7551
7736
  }
7552
7737
  )
7553
7738
  }
7554
7739
  ),
7555
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex flex-col gap-6", children: [
7556
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex items-center gap-2", children: [
7557
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(VenueLogo, { venue: venue.venue, size: "small", className: "rounded-sm" }),
7558
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
7740
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex flex-col gap-6", children: [
7741
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex items-center gap-2", children: [
7742
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(VenueLogo, { venue: venue.venue, size: "small", className: "rounded-sm" }),
7743
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
7559
7744
  displayName,
7560
7745
  " balance: ",
7561
7746
  formatCompactUsd(venue.balance)
7562
7747
  ] })
7563
7748
  ] }),
7564
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex items-center gap-3", children: [
7565
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7749
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex items-center gap-3", children: [
7750
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7566
7751
  Select,
7567
7752
  {
7568
7753
  items: [{ value: "USD", label: "USD" }],
@@ -7573,9 +7758,9 @@ var CardDepositStep = ({
7573
7758
  className: "w-auto"
7574
7759
  }
7575
7760
  ) }),
7576
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex items-baseline", children: [
7577
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "agg-type-display text-agg-foreground", children: "$" }),
7578
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7761
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex items-baseline", children: [
7762
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "agg-type-display text-agg-foreground", children: "$" }),
7763
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7579
7764
  "input",
7580
7765
  {
7581
7766
  type: "text",
@@ -7592,7 +7777,7 @@ var CardDepositStep = ({
7592
7777
  )
7593
7778
  ] }) })
7594
7779
  ] }),
7595
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
7780
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7596
7781
  "div",
7597
7782
  {
7598
7783
  className: cn(
@@ -7604,18 +7789,18 @@ var CardDepositStep = ({
7604
7789
  role: "button",
7605
7790
  tabIndex: 0,
7606
7791
  children: [
7607
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex-1 min-w-0", children: [
7608
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: "Provider" }),
7609
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: "Auto-picked for you" })
7792
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex-1 min-w-0", children: [
7793
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: "Provider" }),
7794
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: "Auto-picked for you" })
7610
7795
  ] }),
7611
- /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex items-center gap-2 shrink-0", children: [
7612
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "agg-type-label-strong text-agg-foreground", children: "Swapped" }),
7613
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(ChevronRightIcon, { className: "h-4 w-4 text-agg-foreground" })
7796
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex items-center gap-2 shrink-0", children: [
7797
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "agg-type-label-strong text-agg-foreground", children: "Swapped" }),
7798
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ChevronRightIcon, { className: "h-4 w-4 text-agg-foreground" })
7614
7799
  ] })
7615
7800
  ]
7616
7801
  }
7617
7802
  ),
7618
- /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(
7803
+ /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7619
7804
  Button,
7620
7805
  {
7621
7806
  variant: "primary",
@@ -7678,7 +7863,7 @@ var getTokensForNetwork = (networkValue) => {
7678
7863
  };
7679
7864
 
7680
7865
  // src/deposit/steps/crypto-transfer.tsx
7681
- var import_jsx_runtime79 = require("react/jsx-runtime");
7866
+ var import_jsx_runtime80 = require("react/jsx-runtime");
7682
7867
  var CryptoTransferStep = ({
7683
7868
  venue,
7684
7869
  onBack,
@@ -7715,30 +7900,30 @@ var CryptoTransferStep = ({
7715
7900
  const handleCopyAddress = (0, import_react14.useCallback)(() => {
7716
7901
  void navigator.clipboard.writeText(depositAddress);
7717
7902
  }, [depositAddress]);
7718
- return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_jsx_runtime79.Fragment, { children: [
7719
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7903
+ return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
7904
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7720
7905
  Modal.Header,
7721
7906
  {
7722
7907
  title: `Deposit to ${displayName}`,
7723
7908
  hideBorder: true,
7724
- leftElement: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7909
+ leftElement: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7725
7910
  "button",
7726
7911
  {
7727
7912
  type: "button",
7728
7913
  className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
7729
7914
  onClick: onBack,
7730
7915
  "aria-label": "Go back",
7731
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
7916
+ children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
7732
7917
  }
7733
7918
  )
7734
7919
  }
7735
7920
  ),
7736
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex flex-col gap-7", children: [
7737
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex flex-col gap-5", children: [
7738
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex gap-6", children: [
7739
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
7740
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: "Supported token" }),
7741
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7921
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex flex-col gap-7", children: [
7922
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex flex-col gap-5", children: [
7923
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex gap-6", children: [
7924
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
7925
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: "Supported token" }),
7926
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7742
7927
  Select,
7743
7928
  {
7744
7929
  items: tokenItems,
@@ -7748,9 +7933,9 @@ var CryptoTransferStep = ({
7748
7933
  }
7749
7934
  )
7750
7935
  ] }),
7751
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
7752
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: "Supported network" }),
7753
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7936
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex flex-1 flex-col gap-2 min-w-0", children: [
7937
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: "Supported network" }),
7938
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7754
7939
  Select,
7755
7940
  {
7756
7941
  items: networkItems,
@@ -7761,9 +7946,9 @@ var CryptoTransferStep = ({
7761
7946
  )
7762
7947
  ] })
7763
7948
  ] }),
7764
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("div", { className: "flex flex-col gap-2", children: [
7765
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: "Your deposit address" }),
7766
- /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
7949
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex flex-col gap-2", children: [
7950
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: "Your deposit address" }),
7951
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
7767
7952
  "div",
7768
7953
  {
7769
7954
  className: cn(
@@ -7772,15 +7957,15 @@ var CryptoTransferStep = ({
7772
7957
  "h-10 px-3"
7773
7958
  ),
7774
7959
  children: [
7775
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)("p", { className: "agg-type-body flex-1 min-w-0 truncate text-agg-foreground", children: depositAddress }),
7776
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
7960
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "agg-type-body flex-1 min-w-0 truncate text-agg-foreground", children: depositAddress }),
7961
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7777
7962
  "button",
7778
7963
  {
7779
7964
  type: "button",
7780
7965
  className: "shrink-0 text-agg-muted-foreground transition-colors hover:text-agg-foreground",
7781
7966
  onClick: handleCopyAddress,
7782
7967
  "aria-label": "Copy deposit address",
7783
- children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(CopyIcon, { className: "h-4 w-4" })
7968
+ children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(CopyIcon, { className: "h-4 w-4" })
7784
7969
  }
7785
7970
  )
7786
7971
  ]
@@ -7788,33 +7973,33 @@ var CryptoTransferStep = ({
7788
7973
  )
7789
7974
  ] })
7790
7975
  ] }),
7791
- /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Button, { variant: "secondary", size: "large", className: "w-full", onClick: onDone, children: "Done" })
7976
+ /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Button, { variant: "secondary", size: "large", className: "w-full", onClick: onDone, children: "Done" })
7792
7977
  ] }) })
7793
7978
  ] });
7794
7979
  };
7795
7980
 
7796
7981
  // src/deposit/steps/kalshi-deposit.tsx
7797
- var import_jsx_runtime80 = require("react/jsx-runtime");
7982
+ var import_jsx_runtime81 = require("react/jsx-runtime");
7798
7983
  var KalshiStepCard = ({
7799
7984
  step,
7800
7985
  title,
7801
7986
  description,
7802
7987
  children
7803
- }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex flex-col gap-2 rounded-xl bg-secondary-hover p-4", children: [
7804
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("p", { className: "agg-type-caption-caps text-agg-muted-foreground", children: [
7988
+ }) => /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex flex-col gap-2 rounded-xl bg-secondary-hover p-4", children: [
7989
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("p", { className: "agg-type-caption-caps text-agg-muted-foreground", children: [
7805
7990
  "Step ",
7806
7991
  step
7807
7992
  ] }),
7808
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex flex-col gap-1", children: [
7809
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: title }),
7810
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "agg-type-label text-agg-foreground", children: description })
7993
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex flex-col gap-1", children: [
7994
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: title }),
7995
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "agg-type-label text-agg-foreground", children: description })
7811
7996
  ] }),
7812
7997
  children
7813
7998
  ] });
7814
- var KalshiDepositStep = ({ depositUrl, onDone }) => /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(import_jsx_runtime80.Fragment, { children: [
7815
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Modal.Header, { title: "", hideBorder: true }),
7816
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
7817
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
7999
+ var KalshiDepositStep = ({ depositUrl, onDone }) => /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(import_jsx_runtime81.Fragment, { children: [
8000
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Modal.Header, { title: "", hideBorder: true }),
8001
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
8002
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7818
8003
  VenueLogo,
7819
8004
  {
7820
8005
  venue: "kalshi",
@@ -7822,23 +8007,23 @@ var KalshiDepositStep = ({ depositUrl, onDone }) => /* @__PURE__ */ (0, import_j
7822
8007
  className: "h-[60px] w-[60px] rounded-lg"
7823
8008
  }
7824
8009
  ),
7825
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex flex-col items-center gap-4 text-center", children: [
7826
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("h2", { className: "agg-type-heading text-agg-foreground", children: "Fund Your Kalshi Account" }),
7827
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("p", { className: "agg-type-body text-agg-foreground", children: "To trade on Kalshi you'll need to add funds to your Kalshi balance first. You can do this on Kalshi's site." })
8010
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex flex-col items-center gap-4 text-center", children: [
8011
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("h2", { className: "agg-type-heading text-agg-foreground", children: "Fund Your Kalshi Account" }),
8012
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("p", { className: "agg-type-body text-agg-foreground", children: "To trade on Kalshi you'll need to add funds to your Kalshi balance first. You can do this on Kalshi's site." })
7828
8013
  ] }),
7829
- /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex w-full flex-col gap-4", children: [
7830
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8014
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)("div", { className: "flex w-full flex-col gap-4", children: [
8015
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7831
8016
  KalshiStepCard,
7832
8017
  {
7833
8018
  step: 1,
7834
8019
  title: "Open Kalshi Deposit Page",
7835
8020
  description: "Sign in to your Kalshi account and go to Deposit (Add Funds) from your account menu.",
7836
- children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)("div", { className: "mt-1", children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8021
+ children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("div", { className: "mt-1", children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7837
8022
  Button,
7838
8023
  {
7839
8024
  variant: "secondary",
7840
8025
  size: "small",
7841
- suffix: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(ExternalLinkIcon, { className: "h-3.5 w-3.5" }),
8026
+ suffix: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ExternalLinkIcon, { className: "h-3.5 w-3.5" }),
7842
8027
  onClick: () => {
7843
8028
  window.open(depositUrl, "_blank", "noopener,noreferrer");
7844
8029
  },
@@ -7847,7 +8032,7 @@ var KalshiDepositStep = ({ depositUrl, onDone }) => /* @__PURE__ */ (0, import_j
7847
8032
  ) })
7848
8033
  }
7849
8034
  ),
7850
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8035
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7851
8036
  KalshiStepCard,
7852
8037
  {
7853
8038
  step: 2,
@@ -7855,7 +8040,7 @@ var KalshiDepositStep = ({ depositUrl, onDone }) => /* @__PURE__ */ (0, import_j
7855
8040
  description: "Select a deposit method: Bank transfer (ACH), Debit card, Wire, or USDC (crypto)."
7856
8041
  }
7857
8042
  ),
7858
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
8043
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
7859
8044
  KalshiStepCard,
7860
8045
  {
7861
8046
  step: 3,
@@ -7864,12 +8049,12 @@ var KalshiDepositStep = ({ depositUrl, onDone }) => /* @__PURE__ */ (0, import_j
7864
8049
  }
7865
8050
  )
7866
8051
  ] }),
7867
- /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Button, { variant: "secondary", size: "large", onClick: onDone, children: "Done" })
8052
+ /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Button, { variant: "secondary", size: "large", onClick: onDone, children: "Done" })
7868
8053
  ] }) })
7869
8054
  ] });
7870
8055
 
7871
8056
  // src/deposit/index.tsx
7872
- var import_jsx_runtime81 = require("react/jsx-runtime");
8057
+ var import_jsx_runtime82 = require("react/jsx-runtime");
7873
8058
  var DepositModal = ({
7874
8059
  open,
7875
8060
  onOpenChange,
@@ -7934,8 +8119,8 @@ var DepositModal = ({
7934
8119
  }
7935
8120
  onOpenChange(isOpen);
7936
8121
  };
7937
- return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(Modal.Container, { maxWidth: "600px", "aria-label": "Deposit", children: [
7938
- step === "venues" ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8122
+ return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(Modal.Container, { maxWidth: "600px", "aria-label": "Deposit", children: [
8123
+ step === "venues" ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
7939
8124
  VenueSelectionStep,
7940
8125
  {
7941
8126
  venues,
@@ -7943,7 +8128,7 @@ var DepositModal = ({
7943
8128
  onSelectVenue: handleSelectVenue
7944
8129
  }
7945
8130
  ) : null,
7946
- step === "method" && selectedVenue ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8131
+ step === "method" && selectedVenue ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
7947
8132
  DepositMethodStep,
7948
8133
  {
7949
8134
  venue: selectedVenue,
@@ -7951,7 +8136,7 @@ var DepositModal = ({
7951
8136
  onSelectMethod: handleSelectMethod
7952
8137
  }
7953
8138
  ) : null,
7954
- step === "card-deposit" && selectedVenue ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8139
+ step === "card-deposit" && selectedVenue ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
7955
8140
  CardDepositStep,
7956
8141
  {
7957
8142
  venue: selectedVenue,
@@ -7959,7 +8144,7 @@ var DepositModal = ({
7959
8144
  onContinue: handleContinueCardDeposit
7960
8145
  }
7961
8146
  ) : null,
7962
- step === "crypto-transfer" && selectedVenue ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
8147
+ step === "crypto-transfer" && selectedVenue ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
7963
8148
  CryptoTransferStep,
7964
8149
  {
7965
8150
  venue: selectedVenue,
@@ -7967,7 +8152,7 @@ var DepositModal = ({
7967
8152
  onDone: handleDoneCryptoTransfer
7968
8153
  }
7969
8154
  ) : null,
7970
- step === "kalshi" ? /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(KalshiDepositStep, { depositUrl: kalshiDepositUrl, onDone: handleDoneKalshi }) : null
8155
+ step === "kalshi" ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(KalshiDepositStep, { depositUrl: kalshiDepositUrl, onDone: handleDoneKalshi }) : null
7971
8156
  ] }) });
7972
8157
  };
7973
8158
  DepositModal.displayName = "DepositModal";
@@ -7980,12 +8165,12 @@ var KALSHI_VENUE3 = "kalshi";
7980
8165
  var KALSHI_WITHDRAW_URL_DEFAULT = "https://kalshi.com/account/withdraw";
7981
8166
 
7982
8167
  // src/withdraw/steps/venue-selection.tsx
7983
- var import_jsx_runtime82 = require("react/jsx-runtime");
8168
+ var import_jsx_runtime83 = require("react/jsx-runtime");
7984
8169
  var VenueRow2 = ({ venue, onSelect }) => {
7985
8170
  var _a, _b;
7986
8171
  const displayName = (_a = venueLogoLabels[venue.venue]) != null ? _a : venue.venue;
7987
8172
  const isDisabled = venue.disabled === true;
7988
- return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(
8173
+ return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
7989
8174
  "div",
7990
8175
  {
7991
8176
  className: cn(
@@ -8009,20 +8194,20 @@ var VenueRow2 = ({ venue, onSelect }) => {
8009
8194
  }
8010
8195
  },
8011
8196
  children: [
8012
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(VenueLogo, { venue: venue.venue, size: "large", className: "rounded-lg" }) }),
8013
- /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex-1 min-w-0", children: [
8014
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: displayName }),
8015
- /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
8197
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(VenueLogo, { venue: venue.venue, size: "large", className: "rounded-lg" }) }),
8198
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex-1 min-w-0", children: [
8199
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: displayName }),
8200
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
8016
8201
  "Balance ",
8017
8202
  formatCompactUsd(venue.balance)
8018
8203
  ] })
8019
8204
  ] }),
8020
- isDisabled ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("span", { className: "agg-type-label text-agg-muted-foreground", children: (_b = venue.disabledReason) != null ? _b : "Unavailable" }) }) : /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
8205
+ isDisabled ? /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("span", { className: "agg-type-label text-agg-muted-foreground", children: (_b = venue.disabledReason) != null ? _b : "Unavailable" }) }) : /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8021
8206
  Button,
8022
8207
  {
8023
8208
  variant: "secondary",
8024
8209
  size: "small",
8025
- suffix: /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(ChevronRightIcon, {}),
8210
+ suffix: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ChevronRightIcon, {}),
8026
8211
  onClick: (e) => {
8027
8212
  e.stopPropagation();
8028
8213
  onSelect(venue.venue);
@@ -8037,22 +8222,22 @@ var VenueRow2 = ({ venue, onSelect }) => {
8037
8222
  var VenueSelectionStep2 = ({
8038
8223
  venues,
8039
8224
  onSelectVenue
8040
- }) => /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
8041
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Modal.Header, { title: "Withdraw", hideBorder: true }),
8042
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: "flex flex-col gap-4", children: [
8043
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("p", { className: "agg-type-body text-agg-foreground", children: "Choose where to withdraw funds from:" }),
8044
- /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("div", { className: "flex flex-col gap-3", children: venues.map((venue) => /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(VenueRow2, { venue, onSelect: onSelectVenue }, venue.venue)) })
8225
+ }) => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
8226
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Modal.Header, { title: "Withdraw", hideBorder: true }),
8227
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex flex-col gap-4", children: [
8228
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "agg-type-body text-agg-foreground", children: "Choose where to withdraw funds from:" }),
8229
+ /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "flex flex-col gap-3", children: venues.map((venue) => /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(VenueRow2, { venue, onSelect: onSelectVenue }, venue.venue)) })
8045
8230
  ] }) })
8046
8231
  ] });
8047
8232
 
8048
8233
  // src/withdraw/steps/withdraw-method.tsx
8049
- var import_jsx_runtime83 = require("react/jsx-runtime");
8234
+ var import_jsx_runtime84 = require("react/jsx-runtime");
8050
8235
  var WithdrawMethodCard = ({
8051
8236
  icon,
8052
8237
  title,
8053
8238
  description,
8054
8239
  onContinue
8055
- }) => /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(
8240
+ }) => /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
8056
8241
  "div",
8057
8242
  {
8058
8243
  className: cn(
@@ -8071,17 +8256,17 @@ var WithdrawMethodCard = ({
8071
8256
  }
8072
8257
  },
8073
8258
  children: [
8074
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "shrink-0 flex items-center justify-center h-10 w-10 rounded-lg bg-secondary-hover", children: icon }),
8075
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex-1 min-w-0", children: [
8076
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: title }),
8077
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: description })
8259
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "shrink-0 flex items-center justify-center h-10 w-10 rounded-lg bg-secondary-hover", children: icon }),
8260
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex-1 min-w-0", children: [
8261
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: "agg-type-body-strong text-agg-foreground", children: title }),
8262
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: "agg-type-label text-agg-muted-foreground", children: description })
8078
8263
  ] }),
8079
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8264
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("div", { className: "shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8080
8265
  Button,
8081
8266
  {
8082
8267
  variant: "secondary",
8083
8268
  size: "small",
8084
- suffix: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ChevronRightIcon, {}),
8269
+ suffix: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ChevronRightIcon, {}),
8085
8270
  onClick: (e) => {
8086
8271
  e.stopPropagation();
8087
8272
  onContinue();
@@ -8099,47 +8284,47 @@ var WithdrawMethodStep = ({
8099
8284
  }) => {
8100
8285
  var _a;
8101
8286
  const displayName = (_a = venueLogoLabels[venue.venue]) != null ? _a : venue.venue;
8102
- return /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_jsx_runtime83.Fragment, { children: [
8103
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8287
+ return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
8288
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8104
8289
  Modal.Header,
8105
8290
  {
8106
8291
  title: `Withdraw from ${displayName}`,
8107
8292
  hideBorder: true,
8108
- leftElement: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8293
+ leftElement: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8109
8294
  "button",
8110
8295
  {
8111
8296
  type: "button",
8112
8297
  className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
8113
8298
  onClick: onBack,
8114
8299
  "aria-label": "Go back",
8115
- children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
8300
+ children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
8116
8301
  }
8117
8302
  )
8118
8303
  }
8119
8304
  ),
8120
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex flex-col gap-4", children: [
8121
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex items-center gap-2", children: [
8122
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(VenueLogo, { venue: venue.venue, size: "small", className: "rounded-sm" }),
8123
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
8305
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex flex-col gap-4", children: [
8306
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex items-center gap-2", children: [
8307
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(VenueLogo, { venue: venue.venue, size: "small", className: "rounded-sm" }),
8308
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
8124
8309
  displayName,
8125
8310
  " balance: ",
8126
8311
  formatCompactUsd(venue.balance)
8127
8312
  ] })
8128
8313
  ] }),
8129
- /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)("div", { className: "flex flex-col gap-3", children: [
8130
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8314
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex flex-col gap-3", children: [
8315
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8131
8316
  WithdrawMethodCard,
8132
8317
  {
8133
- icon: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(WalletIcon, { className: "h-6 w-6 text-agg-foreground" }),
8318
+ icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(WalletIcon, { className: "h-6 w-6 text-agg-foreground" }),
8134
8319
  title: "Withdraw to Wallet",
8135
8320
  description: "Send funds to your crypto wallet as USDC.",
8136
8321
  onContinue: () => onSelectMethod("wallet")
8137
8322
  }
8138
8323
  ),
8139
- /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
8324
+ /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8140
8325
  WithdrawMethodCard,
8141
8326
  {
8142
- icon: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(BankIcon, { className: "h-6 w-6 text-agg-foreground" }),
8327
+ icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(BankIcon, { className: "h-6 w-6 text-agg-foreground" }),
8143
8328
  title: "Withdraw to Bank",
8144
8329
  description: "Transfer funds to your linked bank account.",
8145
8330
  onContinue: () => onSelectMethod("bank")
@@ -8152,7 +8337,7 @@ var WithdrawMethodStep = ({
8152
8337
 
8153
8338
  // src/withdraw/steps/withdraw-amount.tsx
8154
8339
  var import_react16 = require("react");
8155
- var import_jsx_runtime84 = require("react/jsx-runtime");
8340
+ var import_jsx_runtime85 = require("react/jsx-runtime");
8156
8341
  var WithdrawAmountStep = ({
8157
8342
  venue,
8158
8343
  method,
@@ -8175,35 +8360,35 @@ var WithdrawAmountStep = ({
8175
8360
  const handleMax = (0, import_react16.useCallback)(() => {
8176
8361
  setRawAmount(venue.balance.toString());
8177
8362
  }, [venue.balance]);
8178
- return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_jsx_runtime84.Fragment, { children: [
8179
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8363
+ return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_jsx_runtime85.Fragment, { children: [
8364
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
8180
8365
  Modal.Header,
8181
8366
  {
8182
8367
  title: `Withdraw to ${methodLabel}`,
8183
8368
  hideBorder: true,
8184
- leftElement: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8369
+ leftElement: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
8185
8370
  "button",
8186
8371
  {
8187
8372
  type: "button",
8188
8373
  className: "mr-2 flex items-center justify-center text-agg-foreground transition-colors hover:cursor-pointer hover:text-agg-foreground/80",
8189
8374
  onClick: onBack,
8190
8375
  "aria-label": "Go back",
8191
- children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
8376
+ children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ChevronLeftIcon, { className: "h-6 w-6" })
8192
8377
  }
8193
8378
  )
8194
8379
  }
8195
8380
  ),
8196
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex flex-col gap-6", children: [
8197
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex items-center justify-between", children: [
8198
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex items-center gap-2", children: [
8199
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(VenueLogo, { venue: venue.venue, size: "small", className: "rounded-sm" }),
8200
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
8381
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex flex-col gap-6", children: [
8382
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex items-center justify-between", children: [
8383
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex items-center gap-2", children: [
8384
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(VenueLogo, { venue: venue.venue, size: "small", className: "rounded-sm" }),
8385
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("p", { className: "agg-type-label text-agg-muted-foreground", children: [
8201
8386
  displayName,
8202
8387
  " balance: ",
8203
8388
  formatCompactUsd(venue.balance)
8204
8389
  ] })
8205
8390
  ] }),
8206
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8391
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
8207
8392
  "button",
8208
8393
  {
8209
8394
  type: "button",
@@ -8213,10 +8398,10 @@ var WithdrawAmountStep = ({
8213
8398
  }
8214
8399
  )
8215
8400
  ] }),
8216
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex-1 min-w-0", children: [
8217
- /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)("div", { className: "flex items-baseline", children: [
8218
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { className: "agg-type-display text-agg-foreground", children: "$" }),
8219
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8401
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex-1 min-w-0", children: [
8402
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex items-baseline", children: [
8403
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: "agg-type-display text-agg-foreground", children: "$" }),
8404
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
8220
8405
  "input",
8221
8406
  {
8222
8407
  type: "text",
@@ -8232,9 +8417,9 @@ var WithdrawAmountStep = ({
8232
8417
  }
8233
8418
  )
8234
8419
  ] }),
8235
- exceedsBalance ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)("p", { className: "agg-type-label mt-2 text-agg-error", children: "Amount exceeds available balance" }) : null
8420
+ exceedsBalance ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("p", { className: "agg-type-label mt-2 text-agg-error", children: "Amount exceeds available balance" }) : null
8236
8421
  ] }),
8237
- /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
8422
+ /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
8238
8423
  Button,
8239
8424
  {
8240
8425
  variant: "primary",
@@ -8250,30 +8435,30 @@ var WithdrawAmountStep = ({
8250
8435
  };
8251
8436
 
8252
8437
  // src/withdraw/steps/kalshi-withdraw.tsx
8253
- var import_jsx_runtime85 = require("react/jsx-runtime");
8438
+ var import_jsx_runtime86 = require("react/jsx-runtime");
8254
8439
  var KalshiStepCard2 = ({
8255
8440
  step,
8256
8441
  title,
8257
8442
  description,
8258
8443
  children
8259
- }) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex flex-col gap-2 rounded-xl bg-secondary-hover p-4", children: [
8260
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("p", { className: "agg-type-caption-caps text-agg-muted-foreground", children: [
8444
+ }) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex flex-col gap-2 rounded-xl bg-secondary-hover p-4", children: [
8445
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("p", { className: "agg-type-caption-caps text-agg-muted-foreground", children: [
8261
8446
  "Step ",
8262
8447
  step
8263
8448
  ] }),
8264
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex flex-col gap-1", children: [
8265
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: title }),
8266
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("p", { className: "agg-type-label text-agg-foreground", children: description })
8449
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex flex-col gap-1", children: [
8450
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "agg-type-label-strong text-agg-foreground", children: title }),
8451
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "agg-type-label text-agg-foreground", children: description })
8267
8452
  ] }),
8268
8453
  children
8269
8454
  ] });
8270
8455
  var KalshiWithdrawStep = ({
8271
8456
  withdrawUrl,
8272
8457
  onDone
8273
- }) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_jsx_runtime85.Fragment, { children: [
8274
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Modal.Header, { title: "", hideBorder: true }),
8275
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
8276
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
8458
+ }) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
8459
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Modal.Header, { title: "", hideBorder: true }),
8460
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Modal.Body, { classNames: { root: "px-5 pt-0 pb-6 sm:px-8 sm:pt-0 sm:pb-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex flex-col items-center gap-8", children: [
8461
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8277
8462
  VenueLogo,
8278
8463
  {
8279
8464
  venue: "kalshi",
@@ -8281,23 +8466,23 @@ var KalshiWithdrawStep = ({
8281
8466
  className: "h-[60px] w-[60px] rounded-lg"
8282
8467
  }
8283
8468
  ),
8284
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex flex-col items-center gap-4 text-center", children: [
8285
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("h2", { className: "agg-type-heading text-agg-foreground", children: "Withdraw from Kalshi" }),
8286
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("p", { className: "agg-type-body text-agg-foreground", children: "To withdraw from Kalshi you'll need to initiate the withdrawal from your Kalshi account directly on Kalshi's site." })
8469
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex flex-col items-center gap-4 text-center", children: [
8470
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("h2", { className: "agg-type-heading text-agg-foreground", children: "Withdraw from Kalshi" }),
8471
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("p", { className: "agg-type-body text-agg-foreground", children: "To withdraw from Kalshi you'll need to initiate the withdrawal from your Kalshi account directly on Kalshi's site." })
8287
8472
  ] }),
8288
- /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { className: "flex w-full flex-col gap-4", children: [
8289
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
8473
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { className: "flex w-full flex-col gap-4", children: [
8474
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8290
8475
  KalshiStepCard2,
8291
8476
  {
8292
8477
  step: 1,
8293
8478
  title: "Open Kalshi Withdraw Page",
8294
8479
  description: "Sign in to your Kalshi account and go to Withdraw from your account menu.",
8295
- children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { className: "mt-1", children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
8480
+ children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("div", { className: "mt-1", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8296
8481
  Button,
8297
8482
  {
8298
8483
  variant: "secondary",
8299
8484
  size: "small",
8300
- suffix: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(ExternalLinkIcon, { className: "h-3.5 w-3.5" }),
8485
+ suffix: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(ExternalLinkIcon, { className: "h-3.5 w-3.5" }),
8301
8486
  onClick: () => {
8302
8487
  window.open(withdrawUrl, "_blank", "noopener,noreferrer");
8303
8488
  },
@@ -8306,7 +8491,7 @@ var KalshiWithdrawStep = ({
8306
8491
  ) })
8307
8492
  }
8308
8493
  ),
8309
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
8494
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8310
8495
  KalshiStepCard2,
8311
8496
  {
8312
8497
  step: 2,
@@ -8314,7 +8499,7 @@ var KalshiWithdrawStep = ({
8314
8499
  description: "Select a withdrawal method: Bank transfer (ACH), Wire, or USDC (crypto)."
8315
8500
  }
8316
8501
  ),
8317
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
8502
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8318
8503
  KalshiStepCard2,
8319
8504
  {
8320
8505
  step: 3,
@@ -8323,12 +8508,12 @@ var KalshiWithdrawStep = ({
8323
8508
  }
8324
8509
  )
8325
8510
  ] }),
8326
- /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Button, { variant: "secondary", size: "large", onClick: onDone, children: "Done" })
8511
+ /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Button, { variant: "secondary", size: "large", onClick: onDone, children: "Done" })
8327
8512
  ] }) })
8328
8513
  ] });
8329
8514
 
8330
8515
  // src/withdraw/index.tsx
8331
- var import_jsx_runtime86 = require("react/jsx-runtime");
8516
+ var import_jsx_runtime87 = require("react/jsx-runtime");
8332
8517
  var WithdrawModal = ({
8333
8518
  open,
8334
8519
  onOpenChange,
@@ -8392,9 +8577,9 @@ var WithdrawModal = ({
8392
8577
  }
8393
8578
  onOpenChange(isOpen);
8394
8579
  };
8395
- return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(Modal.Container, { maxWidth: "600px", "aria-label": "Withdraw", children: [
8396
- step === "venues" ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(VenueSelectionStep2, { venues, onSelectVenue: handleSelectVenue }) : null,
8397
- step === "method" && selectedVenue ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8580
+ return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(Modal.Container, { maxWidth: "600px", "aria-label": "Withdraw", children: [
8581
+ step === "venues" ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(VenueSelectionStep2, { venues, onSelectVenue: handleSelectVenue }) : null,
8582
+ step === "method" && selectedVenue ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8398
8583
  WithdrawMethodStep,
8399
8584
  {
8400
8585
  venue: selectedVenue,
@@ -8402,7 +8587,7 @@ var WithdrawModal = ({
8402
8587
  onSelectMethod: handleSelectMethod
8403
8588
  }
8404
8589
  ) : null,
8405
- step === "withdraw-amount" && selectedVenue && selectedMethod ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
8590
+ step === "withdraw-amount" && selectedVenue && selectedMethod ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8406
8591
  WithdrawAmountStep,
8407
8592
  {
8408
8593
  venue: selectedVenue,
@@ -8411,7 +8596,7 @@ var WithdrawModal = ({
8411
8596
  onContinue: handleContinueWithdraw
8412
8597
  }
8413
8598
  ) : null,
8414
- step === "kalshi" ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(KalshiWithdrawStep, { withdrawUrl: kalshiWithdrawUrl, onDone: handleDoneKalshi }) : null
8599
+ step === "kalshi" ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(KalshiWithdrawStep, { withdrawUrl: kalshiWithdrawUrl, onDone: handleDoneKalshi }) : null
8415
8600
  ] }) });
8416
8601
  };
8417
8602
  WithdrawModal.displayName = "WithdrawModal";
@@ -8442,12 +8627,12 @@ var ONCHAIN_VENUES = [
8442
8627
  // src/onboarding/steps/how-it-works.tsx
8443
8628
  var import_react18 = require("react");
8444
8629
  var import_hooks26 = require("@agg-market/hooks");
8445
- var import_jsx_runtime87 = require("react/jsx-runtime");
8630
+ var import_jsx_runtime88 = require("react/jsx-runtime");
8446
8631
  var defaultIcons = {
8447
- createAccount: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(CreateAccountIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
8448
- linkAccounts: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(LinkAccountsIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
8449
- bestPrices: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(BestPricesIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
8450
- stayInControl: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(StayInControlIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" })
8632
+ createAccount: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(CreateAccountIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
8633
+ linkAccounts: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(LinkAccountsIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
8634
+ bestPrices: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(BestPricesIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" }),
8635
+ stayInControl: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(StayInControlIcon, { className: "h-[28px] w-[28px] text-agg-muted-foreground" })
8451
8636
  };
8452
8637
  var HowItWorksStep = ({ onContinue, icons }) => {
8453
8638
  const labels = (0, import_hooks26.useLabels)();
@@ -8461,10 +8646,10 @@ var HowItWorksStep = ({ onContinue, icons }) => {
8461
8646
  setShowTopGradient(el.scrollTop > 0);
8462
8647
  setShowBottomGradient(el.scrollTop + el.clientHeight < el.scrollHeight - 1);
8463
8648
  }, []);
8464
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex flex-col gap-6 h-[600px] sm:h-auto", children: [
8465
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.howItWorks.title }),
8466
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "relative flex-1 min-h-0 sm:flex-initial", children: [
8467
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8649
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex flex-col gap-6 h-[600px] sm:h-auto", children: [
8650
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.howItWorks.title }),
8651
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "relative flex-1 min-h-0 sm:flex-initial", children: [
8652
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8468
8653
  "div",
8469
8654
  {
8470
8655
  ref: scrollRef,
@@ -8474,7 +8659,7 @@ var HowItWorksStep = ({ onContinue, icons }) => {
8474
8659
  var _a;
8475
8660
  const icon = (_a = icons == null ? void 0 : icons[featureKey]) != null ? _a : defaultIcons[featureKey];
8476
8661
  const feature = labels.onboarding.howItWorks.features[featureKey];
8477
- return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
8662
+ return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(
8478
8663
  "div",
8479
8664
  {
8480
8665
  className: cn(
@@ -8483,11 +8668,11 @@ var HowItWorksStep = ({ onContinue, icons }) => {
8483
8668
  "bg-agg-secondary-hover"
8484
8669
  ),
8485
8670
  children: [
8486
- /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)("div", { className: "flex flex-col flex-1 min-w-0 gap-[6px]", children: [
8487
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: feature.title }),
8488
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: feature.description })
8671
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex flex-col flex-1 min-w-0 gap-[6px]", children: [
8672
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: feature.title }),
8673
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: feature.description })
8489
8674
  ] }),
8490
- icon ? /* @__PURE__ */ (0, import_jsx_runtime87.jsx)("div", { className: "hidden shrink-0 items-center justify-center text-agg-muted-foreground sm:flex", children: icon }) : null
8675
+ icon ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { className: "hidden shrink-0 items-center justify-center text-agg-muted-foreground sm:flex", children: icon }) : null
8491
8676
  ]
8492
8677
  },
8493
8678
  featureKey
@@ -8495,7 +8680,7 @@ var HowItWorksStep = ({ onContinue, icons }) => {
8495
8680
  })
8496
8681
  }
8497
8682
  ),
8498
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8683
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8499
8684
  "div",
8500
8685
  {
8501
8686
  className: cn(
@@ -8506,7 +8691,7 @@ var HowItWorksStep = ({ onContinue, icons }) => {
8506
8691
  )
8507
8692
  }
8508
8693
  ),
8509
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
8694
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8510
8695
  "div",
8511
8696
  {
8512
8697
  className: cn(
@@ -8518,7 +8703,7 @@ var HowItWorksStep = ({ onContinue, icons }) => {
8518
8703
  }
8519
8704
  )
8520
8705
  ] }),
8521
- /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Button, { variant: "primary", size: "large", className: "w-full", onClick: onContinue, children: labels.onboarding.howItWorks.continue })
8706
+ /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Button, { variant: "primary", size: "large", className: "w-full", onClick: onContinue, children: labels.onboarding.howItWorks.continue })
8522
8707
  ] });
8523
8708
  };
8524
8709
  HowItWorksStep.displayName = "HowItWorksStep";
@@ -8526,7 +8711,7 @@ HowItWorksStep.displayName = "HowItWorksStep";
8526
8711
  // src/onboarding/steps/profile-setup.tsx
8527
8712
  var import_react19 = require("react");
8528
8713
  var import_hooks27 = require("@agg-market/hooks");
8529
- var import_jsx_runtime88 = require("react/jsx-runtime");
8714
+ var import_jsx_runtime89 = require("react/jsx-runtime");
8530
8715
  var ProfileSetupStep = ({ onContinue }) => {
8531
8716
  const labels = (0, import_hooks27.useLabels)();
8532
8717
  const [username, setUsername] = (0, import_react19.useState)("");
@@ -8557,11 +8742,11 @@ var ProfileSetupStep = ({ onContinue }) => {
8557
8742
  avatarPreview
8558
8743
  });
8559
8744
  }, [username, avatarFile, avatarPreview, onContinue]);
8560
- return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex flex-col gap-7", children: [
8561
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.profileSetup.title }),
8562
- /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex flex-col gap-5 items-center w-full", children: [
8563
- /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex justify-center", children: [
8564
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8745
+ return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex flex-col gap-7", children: [
8746
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.profileSetup.title }),
8747
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex flex-col gap-5 items-center w-full", children: [
8748
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex justify-center", children: [
8749
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
8565
8750
  "button",
8566
8751
  {
8567
8752
  type: "button",
@@ -8577,17 +8762,17 @@ var ProfileSetupStep = ({ onContinue }) => {
8577
8762
  "overflow-hidden"
8578
8763
  ),
8579
8764
  "aria-label": labels.onboarding.profileSetup.uploadProfilePictureAria,
8580
- children: avatarPreview ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8765
+ children: avatarPreview ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
8581
8766
  "img",
8582
8767
  {
8583
8768
  src: avatarPreview,
8584
8769
  alt: labels.onboarding.profileSetup.profilePreviewAlt,
8585
8770
  className: "h-full w-full object-cover"
8586
8771
  }
8587
- ) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(ProfileIcon, { className: "h-7 w-7 text-agg-muted-foreground" })
8772
+ ) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ProfileIcon, { className: "h-7 w-7 text-agg-muted-foreground" })
8588
8773
  }
8589
8774
  ),
8590
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8775
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
8591
8776
  "input",
8592
8777
  {
8593
8778
  ref: fileInputRef,
@@ -8599,8 +8784,8 @@ var ProfileSetupStep = ({ onContinue }) => {
8599
8784
  }
8600
8785
  )
8601
8786
  ] }),
8602
- /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("div", { className: "flex flex-col gap-2 w-full", children: [
8603
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8787
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex flex-col gap-2 w-full", children: [
8788
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
8604
8789
  "label",
8605
8790
  {
8606
8791
  htmlFor: "onboarding-username",
@@ -8608,7 +8793,7 @@ var ProfileSetupStep = ({ onContinue }) => {
8608
8793
  children: labels.onboarding.profileSetup.usernameLabel
8609
8794
  }
8610
8795
  ),
8611
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
8796
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
8612
8797
  "input",
8613
8798
  {
8614
8799
  id: "onboarding-username",
@@ -8632,16 +8817,16 @@ var ProfileSetupStep = ({ onContinue }) => {
8632
8817
  )
8633
8818
  ] })
8634
8819
  ] }),
8635
- /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Button, { variant: "primary", size: "large", className: "w-full", onClick: handleContinue, children: labels.onboarding.profileSetup.continue })
8820
+ /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Button, { variant: "primary", size: "large", className: "w-full", onClick: handleContinue, children: labels.onboarding.profileSetup.continue })
8636
8821
  ] });
8637
8822
  };
8638
8823
  ProfileSetupStep.displayName = "ProfileSetupStep";
8639
8824
 
8640
8825
  // src/onboarding/steps/connect-accounts.tsx
8641
8826
  var import_hooks28 = require("@agg-market/hooks");
8642
- var import_jsx_runtime89 = require("react/jsx-runtime");
8827
+ var import_jsx_runtime90 = require("react/jsx-runtime");
8643
8828
  var OnchainVenueLogos = () => {
8644
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "flex gap-1 sm:gap-0 sm:-space-x-5", children: ONCHAIN_VENUES.map((venue, index) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { style: { zIndex: ONCHAIN_VENUES.length - index }, children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(VenueLogo, { venue, variant: "logo", size: "medium", className: "sm:h-8 sm:w-8" }) }, venue)) });
8829
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "flex gap-1 sm:gap-0 sm:-space-x-5", children: ONCHAIN_VENUES.map((venue, index) => /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { style: { zIndex: ONCHAIN_VENUES.length - index }, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(VenueLogo, { venue, variant: "logo", size: "medium", className: "sm:h-8 sm:w-8" }) }, venue)) });
8645
8830
  };
8646
8831
  var VenueCard = ({
8647
8832
  logos,
@@ -8653,7 +8838,7 @@ var VenueCard = ({
8653
8838
  connected = false
8654
8839
  }) => {
8655
8840
  const labels = (0, import_hooks28.useLabels)();
8656
- const action = connected ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(CheckCircleIcon, { className: "h-6 w-6 text-agg-success" }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
8841
+ const action = connected ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(CheckCircleIcon, { className: "h-6 w-6 text-agg-success" }) : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
8657
8842
  Button,
8658
8843
  {
8659
8844
  variant: "tertiary",
@@ -8663,18 +8848,18 @@ var VenueCard = ({
8663
8848
  children: labels.onboarding.connectAccounts.connect
8664
8849
  }
8665
8850
  );
8666
- const mobileAction = connected ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(CheckCircleIcon, { className: "h-6 w-6 text-agg-success" }) : /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
8851
+ const mobileAction = connected ? /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(CheckCircleIcon, { className: "h-6 w-6 text-agg-success" }) : /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
8667
8852
  Button,
8668
8853
  {
8669
8854
  variant: "tertiary",
8670
8855
  size: "medium",
8671
8856
  className: "!h-auto !px-0 !py-0 text-agg-primary hover:bg-transparent hover:text-agg-primary-hover",
8672
8857
  onClick: onConnect,
8673
- suffix: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(ChevronRightIcon, { className: "h-4 w-4" }),
8858
+ suffix: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(ChevronRightIcon, { className: "h-4 w-4" }),
8674
8859
  children: labels.onboarding.connectAccounts.connectAccount
8675
8860
  }
8676
8861
  );
8677
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(
8862
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
8678
8863
  "div",
8679
8864
  {
8680
8865
  className: cn(
@@ -8682,23 +8867,23 @@ var VenueCard = ({
8682
8867
  connected ? "bg-agg-success/5" : "bg-agg-secondary-hover hover:bg-agg-tertiary"
8683
8868
  ),
8684
8869
  children: [
8685
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "hidden sm:flex items-center justify-between", children: [
8686
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex items-center gap-5", children: [
8687
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "shrink-0", children: logos }),
8688
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex flex-col gap-[2px]", children: [
8689
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "text-agg-base font-agg-bold text-agg-foreground", children: title }),
8690
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "text-agg-sm text-agg-foreground", children: description })
8870
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "hidden sm:flex items-center justify-between", children: [
8871
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex items-center gap-5", children: [
8872
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "shrink-0", children: logos }),
8873
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-[2px]", children: [
8874
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-agg-base font-agg-bold text-agg-foreground", children: title }),
8875
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-agg-sm text-agg-foreground", children: description })
8691
8876
  ] })
8692
8877
  ] }),
8693
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "shrink-0", children: action })
8878
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "shrink-0", children: action })
8694
8879
  ] }),
8695
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex flex-col gap-3 sm:hidden", children: [
8696
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex flex-col gap-3", children: [
8697
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "shrink-0", children: logos }),
8698
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "text-agg-lg font-agg-bold text-agg-foreground", children: mobileTitle != null ? mobileTitle : title })
8880
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-3 sm:hidden", children: [
8881
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-3", children: [
8882
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "shrink-0", children: logos }),
8883
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-agg-lg font-agg-bold text-agg-foreground", children: mobileTitle != null ? mobileTitle : title })
8699
8884
  ] }),
8700
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex flex-col items-start gap-2", children: [
8701
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("p", { className: "text-agg-base text-agg-foreground", children: mobileDescription != null ? mobileDescription : description }),
8885
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col items-start gap-2", children: [
8886
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-agg-base text-agg-foreground", children: mobileDescription != null ? mobileDescription : description }),
8702
8887
  mobileAction
8703
8888
  ] })
8704
8889
  ] })
@@ -8715,13 +8900,13 @@ var ConnectAccountsStep = ({
8715
8900
  }) => {
8716
8901
  const labels = (0, import_hooks28.useLabels)();
8717
8902
  const canContinue = connectedOnchain || connectedKalshi;
8718
- return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex flex-col gap-6", children: [
8719
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectAccounts.title }),
8720
- /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)("div", { className: "flex flex-col gap-4", children: [
8721
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
8903
+ return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-6", children: [
8904
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("h2", { className: "text-center text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectAccounts.title }),
8905
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-4", children: [
8906
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
8722
8907
  VenueCard,
8723
8908
  {
8724
- logos: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(OnchainVenueLogos, {}),
8909
+ logos: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(OnchainVenueLogos, {}),
8725
8910
  title: labels.onboarding.connectAccounts.onchainTitle,
8726
8911
  mobileTitle: labels.onboarding.connectAccounts.onchainMobileTitle(
8727
8912
  ONCHAIN_VENUES.length - 1
@@ -8732,10 +8917,10 @@ var ConnectAccountsStep = ({
8732
8917
  connected: connectedOnchain
8733
8918
  }
8734
8919
  ),
8735
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
8920
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
8736
8921
  VenueCard,
8737
8922
  {
8738
- logos: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("div", { className: "sm:flex sm:w-14 sm:items-center sm:justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
8923
+ logos: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("div", { className: "sm:flex sm:w-14 sm:items-center sm:justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
8739
8924
  VenueLogo,
8740
8925
  {
8741
8926
  venue: "kalshi",
@@ -8753,7 +8938,7 @@ var ConnectAccountsStep = ({
8753
8938
  }
8754
8939
  )
8755
8940
  ] }),
8756
- /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
8941
+ /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
8757
8942
  Button,
8758
8943
  {
8759
8944
  variant: "primary",
@@ -8772,7 +8957,7 @@ ConnectAccountsStep.displayName = "ConnectAccountsStep";
8772
8957
  var import_react20 = require("react");
8773
8958
  var import_hooks29 = require("@agg-market/hooks");
8774
8959
  var Dialog2 = __toESM(require("@radix-ui/react-dialog"));
8775
- var import_jsx_runtime90 = require("react/jsx-runtime");
8960
+ var import_jsx_runtime91 = require("react/jsx-runtime");
8776
8961
  var ConnectKalshiModal = ({
8777
8962
  open,
8778
8963
  onOpenChange,
@@ -8829,15 +9014,15 @@ var ConnectKalshiModal = ({
8829
9014
  },
8830
9015
  [onOpenChange]
8831
9016
  );
8832
- return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
9017
+ return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
8833
9018
  Modal.Container,
8834
9019
  {
8835
9020
  maxWidth: "600px",
8836
9021
  "aria-label": labels.onboarding.connectKalshiModal.ariaLabel,
8837
9022
  classNames: { container: "!rounded-agg-lg" },
8838
9023
  children: [
8839
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Dialog2.Title, { className: "sr-only", children: labels.onboarding.connectKalshiModal.title }),
8840
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9024
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Dialog2.Title, { className: "sr-only", children: labels.onboarding.connectKalshiModal.title }),
9025
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
8841
9026
  Modal.Header,
8842
9027
  {
8843
9028
  hideClose: false,
@@ -8848,8 +9033,8 @@ var ConnectKalshiModal = ({
8848
9033
  }
8849
9034
  }
8850
9035
  ),
8851
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Modal.Body, { classNames: { root: "!px-5 !pt-0 !pb-[60px] sm:!px-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-8 items-center", children: [
8852
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9036
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Modal.Body, { classNames: { root: "!px-5 !pt-0 !pb-[60px] sm:!px-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex flex-col gap-8 items-center", children: [
9037
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
8853
9038
  VenueLogo,
8854
9039
  {
8855
9040
  venue: "kalshi",
@@ -8858,54 +9043,54 @@ var ConnectKalshiModal = ({
8858
9043
  className: "h-[60px] w-[60px]"
8859
9044
  }
8860
9045
  ),
8861
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-4 items-center text-center", children: [
8862
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("h2", { className: "text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectKalshiModal.title }),
8863
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: labels.onboarding.connectKalshiModal.description })
9046
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex flex-col gap-4 items-center text-center", children: [
9047
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("h2", { className: "text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectKalshiModal.title }),
9048
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: labels.onboarding.connectKalshiModal.description })
8864
9049
  ] }),
8865
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-4 w-full", children: [
8866
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-3 rounded-agg-lg bg-agg-secondary-hover p-4", children: [
8867
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-1", children: [
8868
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-agg-xs font-agg-bold uppercase leading-agg-4 text-agg-muted-foreground", children: labels.onboarding.connectKalshiModal.stepOne.label }),
8869
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepOne.title })
9050
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex flex-col gap-4 w-full", children: [
9051
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex flex-col gap-3 rounded-agg-lg bg-agg-secondary-hover p-4", children: [
9052
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex flex-col gap-1", children: [
9053
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { className: "text-agg-xs font-agg-bold uppercase leading-agg-4 text-agg-muted-foreground", children: labels.onboarding.connectKalshiModal.stepOne.label }),
9054
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepOne.title })
8870
9055
  ] }),
8871
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "space-y-0 text-agg-sm leading-agg-5 text-agg-foreground", children: [
8872
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { children: labels.onboarding.connectKalshiModal.stepOne.instructions.signIn }),
8873
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("p", { children: [
9056
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "space-y-0 text-agg-sm leading-agg-5 text-agg-foreground", children: [
9057
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { children: labels.onboarding.connectKalshiModal.stepOne.instructions.signIn }),
9058
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("p", { children: [
8874
9059
  labels.onboarding.connectKalshiModal.stepOne.instructions.goToProfilePrefix,
8875
9060
  " ",
8876
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.profileText }),
9061
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.profileText }),
8877
9062
  labels.onboarding.connectKalshiModal.stepOne.instructions.goToProfileSeparator,
8878
9063
  " ",
8879
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "text-agg-foreground underline", children: labels.onboarding.connectKalshiModal.stepOne.instructions.profileUrl })
9064
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "text-agg-foreground underline", children: labels.onboarding.connectKalshiModal.stepOne.instructions.profileUrl })
8880
9065
  ] }),
8881
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("p", { children: [
9066
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("p", { children: [
8882
9067
  labels.onboarding.connectKalshiModal.stepOne.instructions.clickCreateKeyPrefix,
8883
9068
  " ",
8884
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.createKeyText }),
9069
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.createKeyText }),
8885
9070
  labels.onboarding.connectKalshiModal.stepOne.instructions.clickCreateKeySuffix
8886
9071
  ] }),
8887
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("p", { children: [
9072
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("p", { children: [
8888
9073
  labels.onboarding.connectKalshiModal.stepOne.instructions.selectPermissionsPrefix,
8889
9074
  " ",
8890
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.readWriteText }),
9075
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "font-agg-bold", children: labels.onboarding.connectKalshiModal.stepOne.instructions.readWriteText }),
8891
9076
  labels.onboarding.connectKalshiModal.stepOne.instructions.selectPermissionsSuffix
8892
9077
  ] }),
8893
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { children: labels.onboarding.connectKalshiModal.stepOne.instructions.createKey })
9078
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { children: labels.onboarding.connectKalshiModal.stepOne.instructions.createKey })
8894
9079
  ] }),
8895
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: [
9080
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: [
8896
9081
  labels.onboarding.connectKalshiModal.stepOne.footerLineOne,
8897
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("br", {}),
9082
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("br", {}),
8898
9083
  labels.onboarding.connectKalshiModal.stepOne.footerLineTwo
8899
9084
  ] })
8900
9085
  ] }),
8901
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-3 rounded-agg-lg bg-agg-secondary-hover p-4", children: [
8902
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-1", children: [
8903
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-agg-xs font-agg-bold uppercase leading-agg-4 text-agg-muted-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.label }),
8904
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.title })
9086
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex flex-col gap-3 rounded-agg-lg bg-agg-secondary-hover p-4", children: [
9087
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex flex-col gap-1", children: [
9088
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { className: "text-agg-xs font-agg-bold uppercase leading-agg-4 text-agg-muted-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.label }),
9089
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.title })
8905
9090
  ] }),
8906
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.description }),
8907
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-2", children: [
8908
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9091
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: labels.onboarding.connectKalshiModal.stepTwo.description }),
9092
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex flex-col gap-2", children: [
9093
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
8909
9094
  "label",
8910
9095
  {
8911
9096
  htmlFor: "kalshi-api-key-id",
@@ -8913,7 +9098,7 @@ var ConnectKalshiModal = ({
8913
9098
  children: labels.onboarding.connectKalshiModal.stepTwo.apiKeyIdLabel
8914
9099
  }
8915
9100
  ),
8916
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9101
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
8917
9102
  "input",
8918
9103
  {
8919
9104
  id: "kalshi-api-key-id",
@@ -8933,8 +9118,8 @@ var ConnectKalshiModal = ({
8933
9118
  }
8934
9119
  )
8935
9120
  ] }),
8936
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-2", children: [
8937
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9121
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex flex-col gap-2", children: [
9122
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
8938
9123
  "label",
8939
9124
  {
8940
9125
  htmlFor: "kalshi-private-key",
@@ -8942,7 +9127,7 @@ var ConnectKalshiModal = ({
8942
9127
  children: labels.onboarding.connectKalshiModal.stepTwo.privateKeyLabel
8943
9128
  }
8944
9129
  ),
8945
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9130
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
8946
9131
  "textarea",
8947
9132
  {
8948
9133
  id: "kalshi-private-key",
@@ -8964,42 +9149,42 @@ var ConnectKalshiModal = ({
8964
9149
  ] })
8965
9150
  ] })
8966
9151
  ] }),
8967
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex items-center justify-between w-full", children: [
8968
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-agg-base text-agg-foreground", children: labels.onboarding.connectKalshiModal.help.label }),
8969
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex items-center gap-3", children: [
8970
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
9152
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex items-center justify-between w-full", children: [
9153
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { className: "text-agg-base text-agg-foreground", children: labels.onboarding.connectKalshiModal.help.label }),
9154
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex items-center gap-3", children: [
9155
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
8971
9156
  "a",
8972
9157
  {
8973
9158
  href: "#",
8974
9159
  className: "flex items-center gap-2 text-agg-base font-agg-bold text-agg-primary hover:text-agg-primary-hover",
8975
9160
  children: [
8976
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(DocumentIcon, { className: "h-4 w-4" }),
9161
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(DocumentIcon, { className: "h-4 w-4" }),
8977
9162
  labels.onboarding.connectKalshiModal.help.docsLinkLabel
8978
9163
  ]
8979
9164
  }
8980
9165
  ),
8981
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "h-3 w-px bg-agg-separator" }),
8982
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(
9166
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "h-3 w-px bg-agg-separator" }),
9167
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
8983
9168
  "a",
8984
9169
  {
8985
9170
  href: "#",
8986
9171
  className: "flex items-center gap-2 text-agg-base font-agg-bold text-agg-primary hover:text-agg-primary-hover",
8987
9172
  children: [
8988
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(PlaySquareIcon, { className: "h-4 w-4" }),
9173
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(PlaySquareIcon, { className: "h-4 w-4" }),
8989
9174
  labels.onboarding.connectKalshiModal.help.tutorialLinkLabel
8990
9175
  ]
8991
9176
  }
8992
9177
  )
8993
9178
  ] })
8994
9179
  ] }),
8995
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex flex-col gap-5 items-center", children: [
8996
- error ? /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex items-center gap-2", children: [
8997
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(WarningIcon, { className: "h-3.5 w-3.5 shrink-0 text-agg-error" }),
8998
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-error", children: error })
9180
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex flex-col gap-5 items-center", children: [
9181
+ error ? /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex items-center gap-2", children: [
9182
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(WarningIcon, { className: "h-3.5 w-3.5 shrink-0 text-agg-error" }),
9183
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-error", children: error })
8999
9184
  ] }) : null,
9000
- /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)("div", { className: "flex items-center gap-3 justify-center", children: [
9001
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(Button, { variant: "secondary", size: "large", onClick: handleCancel, children: labels.onboarding.connectKalshiModal.actions.cancel }),
9002
- /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
9185
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex items-center gap-3 justify-center", children: [
9186
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Button, { variant: "secondary", size: "large", onClick: handleCancel, children: labels.onboarding.connectKalshiModal.actions.cancel }),
9187
+ /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
9003
9188
  Button,
9004
9189
  {
9005
9190
  variant: "primary",
@@ -9023,7 +9208,7 @@ ConnectKalshiModal.displayName = "ConnectKalshiModal";
9023
9208
  var import_react21 = require("react");
9024
9209
  var import_hooks30 = require("@agg-market/hooks");
9025
9210
  var Dialog3 = __toESM(require("@radix-ui/react-dialog"));
9026
- var import_jsx_runtime91 = require("react/jsx-runtime");
9211
+ var import_jsx_runtime92 = require("react/jsx-runtime");
9027
9212
  var ConnectOnchainModal = ({
9028
9213
  open,
9029
9214
  onOpenChange,
@@ -9061,15 +9246,15 @@ var ConnectOnchainModal = ({
9061
9246
  },
9062
9247
  [onOpenChange]
9063
9248
  );
9064
- return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
9249
+ return /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
9065
9250
  Modal.Container,
9066
9251
  {
9067
9252
  maxWidth: "600px",
9068
9253
  "aria-label": labels.onboarding.connectOnchainModal.ariaLabel,
9069
9254
  classNames: { container: "!rounded-agg-lg" },
9070
9255
  children: [
9071
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Dialog3.Title, { className: "sr-only", children: labels.onboarding.connectOnchainModal.title }),
9072
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
9256
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Dialog3.Title, { className: "sr-only", children: labels.onboarding.connectOnchainModal.title }),
9257
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
9073
9258
  Modal.Header,
9074
9259
  {
9075
9260
  hideClose: false,
@@ -9080,26 +9265,26 @@ var ConnectOnchainModal = ({
9080
9265
  }
9081
9266
  }
9082
9267
  ),
9083
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Modal.Body, { classNames: { root: "!px-5 !pt-0 !pb-[60px] sm:!px-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex flex-col gap-8 items-center", children: [
9084
- /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex flex-col gap-4 items-center text-center", children: [
9085
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("h2", { className: "text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectOnchainModal.title }),
9086
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { className: "text-agg-base text-center leading-agg-6 text-agg-foreground whitespace-pre-line", children: labels.onboarding.connectOnchainModal.description })
9268
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Modal.Body, { classNames: { root: "!px-5 !pt-0 !pb-[60px] sm:!px-8" }, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex flex-col gap-8 items-center", children: [
9269
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex flex-col gap-4 items-center text-center", children: [
9270
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("h2", { className: "text-agg-2xl font-agg-bold text-agg-foreground", children: labels.onboarding.connectOnchainModal.title }),
9271
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("p", { className: "text-agg-base text-center leading-agg-6 text-agg-foreground whitespace-pre-line", children: labels.onboarding.connectOnchainModal.description })
9087
9272
  ] }),
9088
- /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex w-full flex-col items-center gap-4 rounded-agg-xl bg-agg-secondary-hover p-6", children: [
9089
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { className: "text-agg-sm font-agg-bold uppercase leading-agg-5 text-agg-muted-foreground", children: labels.onboarding.connectOnchainModal.supportedVenuesLabel }),
9090
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("div", { className: "flex flex-wrap items-center justify-center gap-x-4 gap-y-3", children: ONCHAIN_VENUES.map((venue, index) => /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex items-center gap-[6px]", children: [
9091
- index > 0 && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "mr-2.5 h-3 w-px bg-agg-separator" }),
9092
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(VenueLogo, { venue, size: "medium" }),
9093
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("span", { className: "text-agg-base text-agg-foreground", children: labels.venues[venue] })
9273
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex w-full flex-col items-center gap-4 rounded-agg-xl bg-agg-secondary-hover p-6", children: [
9274
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("p", { className: "text-agg-sm font-agg-bold uppercase leading-agg-5 text-agg-muted-foreground", children: labels.onboarding.connectOnchainModal.supportedVenuesLabel }),
9275
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("div", { className: "flex flex-wrap items-center justify-center gap-x-4 gap-y-3", children: ONCHAIN_VENUES.map((venue, index) => /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex items-center gap-[6px]", children: [
9276
+ index > 0 && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "mr-2.5 h-3 w-px bg-agg-separator" }),
9277
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(VenueLogo, { venue, size: "medium" }),
9278
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("span", { className: "text-agg-base text-agg-foreground", children: labels.venues[venue] })
9094
9279
  ] }, venue)) })
9095
9280
  ] }),
9096
- /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex flex-col gap-6 items-center", children: [
9097
- /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex flex-col gap-3 items-center", children: [
9098
- error ? /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)("div", { className: "flex items-center gap-2", children: [
9099
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(WarningIcon, { className: "h-3.5 w-3.5 shrink-0 text-agg-error" }),
9100
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-error", children: error })
9281
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex flex-col gap-6 items-center", children: [
9282
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex flex-col gap-3 items-center", children: [
9283
+ error ? /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)("div", { className: "flex items-center gap-2", children: [
9284
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(WarningIcon, { className: "h-3.5 w-3.5 shrink-0 text-agg-error" }),
9285
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-error", children: error })
9101
9286
  ] }) : null,
9102
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
9287
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
9103
9288
  Button,
9104
9289
  {
9105
9290
  variant: "primary",
@@ -9110,7 +9295,7 @@ var ConnectOnchainModal = ({
9110
9295
  }
9111
9296
  )
9112
9297
  ] }),
9113
- /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
9298
+ /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
9114
9299
  Button,
9115
9300
  {
9116
9301
  variant: "tertiary",
@@ -9129,7 +9314,7 @@ var ConnectOnchainModal = ({
9129
9314
  ConnectOnchainModal.displayName = "ConnectOnchainModal";
9130
9315
 
9131
9316
  // src/onboarding/index.tsx
9132
- var import_jsx_runtime92 = require("react/jsx-runtime");
9317
+ var import_jsx_runtime93 = require("react/jsx-runtime");
9133
9318
  var OnboardingModal = ({
9134
9319
  open,
9135
9320
  onOpenChange,
@@ -9191,19 +9376,19 @@ var OnboardingModal = ({
9191
9376
  }),
9192
9377
  [onConnectKalshi]
9193
9378
  );
9194
- return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
9195
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Modal, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(
9379
+ return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(import_jsx_runtime93.Fragment, { children: [
9380
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Modal, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(
9196
9381
  Modal.Container,
9197
9382
  {
9198
9383
  maxWidth: "600px",
9199
9384
  "aria-label": resolvedTitle,
9200
9385
  classNames: { container: "!rounded-agg-lg" },
9201
9386
  children: [
9202
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(Dialog4.Title, { className: "sr-only", children: resolvedTitle }),
9203
- /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(Modal.Body, { classNames: { root: "px-5 py-6 sm:px-10 sm:py-8" }, children: [
9204
- step === ONBOARDING_STEPS.HOW_IT_WORKS && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(HowItWorksStep, { onContinue: handleHowItWorksContinue, icons: howItWorksIcons }),
9205
- step === ONBOARDING_STEPS.PROFILE_SETUP && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(ProfileSetupStep, { onContinue: handleProfileContinue }),
9206
- step === ONBOARDING_STEPS.CONNECT_ACCOUNTS && /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
9387
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(Dialog4.Title, { className: "sr-only", children: resolvedTitle }),
9388
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(Modal.Body, { classNames: { root: "px-5 py-6 sm:px-10 sm:py-8" }, children: [
9389
+ step === ONBOARDING_STEPS.HOW_IT_WORKS && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(HowItWorksStep, { onContinue: handleHowItWorksContinue, icons: howItWorksIcons }),
9390
+ step === ONBOARDING_STEPS.PROFILE_SETUP && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ProfileSetupStep, { onContinue: handleProfileContinue }),
9391
+ step === ONBOARDING_STEPS.CONNECT_ACCOUNTS && /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9207
9392
  ConnectAccountsStep,
9208
9393
  {
9209
9394
  onConnectOnchain: handleOpenOnchainModal,
@@ -9217,7 +9402,7 @@ var OnboardingModal = ({
9217
9402
  ]
9218
9403
  }
9219
9404
  ) }),
9220
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
9405
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9221
9406
  ConnectOnchainModal,
9222
9407
  {
9223
9408
  open: onchainModalOpen,
@@ -9225,7 +9410,7 @@ var OnboardingModal = ({
9225
9410
  onConnect: handleOnchainConnect
9226
9411
  }
9227
9412
  ),
9228
- /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
9413
+ /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9229
9414
  ConnectKalshiModal,
9230
9415
  {
9231
9416
  open: kalshiModalOpen,
@@ -9253,7 +9438,7 @@ var PROFILE_TAB_ITEMS = [
9253
9438
  // src/profile/tabs/about-tab.tsx
9254
9439
  var import_react23 = require("react");
9255
9440
  var import_hooks32 = require("@agg-market/hooks");
9256
- var import_jsx_runtime93 = require("react/jsx-runtime");
9441
+ var import_jsx_runtime94 = require("react/jsx-runtime");
9257
9442
  var AboutTab = ({
9258
9443
  avatarPreview,
9259
9444
  onDeleteProfile,
@@ -9284,9 +9469,9 @@ var AboutTab = ({
9284
9469
  [onDraftAvatarChange]
9285
9470
  );
9286
9471
  const resolvedPreview = draftAvatarPreview != null ? draftAvatarPreview : avatarPreview;
9287
- return /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex flex-col gap-8", children: [
9288
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex justify-center", children: [
9289
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9472
+ return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-col gap-8", children: [
9473
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex justify-center", children: [
9474
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9290
9475
  "button",
9291
9476
  {
9292
9477
  type: "button",
@@ -9302,17 +9487,17 @@ var AboutTab = ({
9302
9487
  "overflow-hidden"
9303
9488
  ),
9304
9489
  "aria-label": labels.onboarding.profileSetup.uploadProfilePictureAria,
9305
- children: resolvedPreview ? /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9490
+ children: resolvedPreview ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9306
9491
  "img",
9307
9492
  {
9308
9493
  src: resolvedPreview,
9309
9494
  alt: labels.onboarding.profileSetup.profilePreviewAlt,
9310
9495
  className: "h-full w-full object-cover"
9311
9496
  }
9312
- ) : /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(ProfileIcon, { className: "h-8 w-8 text-agg-muted-foreground" })
9497
+ ) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ProfileIcon, { className: "h-8 w-8 text-agg-muted-foreground" })
9313
9498
  }
9314
9499
  ),
9315
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9500
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9316
9501
  "input",
9317
9502
  {
9318
9503
  ref: fileInputRef,
@@ -9324,8 +9509,8 @@ var AboutTab = ({
9324
9509
  }
9325
9510
  )
9326
9511
  ] }),
9327
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex flex-col gap-2", children: [
9328
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9512
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-col gap-2", children: [
9513
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9329
9514
  "label",
9330
9515
  {
9331
9516
  htmlFor: "profile-username",
@@ -9333,7 +9518,7 @@ var AboutTab = ({
9333
9518
  children: "Username"
9334
9519
  }
9335
9520
  ),
9336
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9521
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9337
9522
  "input",
9338
9523
  {
9339
9524
  id: "profile-username",
@@ -9355,12 +9540,12 @@ var AboutTab = ({
9355
9540
  }
9356
9541
  )
9357
9542
  ] }),
9358
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex flex-col gap-4", children: [
9359
- /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex flex-col gap-1", children: [
9360
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: "Delete your profile" }),
9361
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)("span", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: "This will permanently delete your account and all of its data. You will not be able to reactivate this account." })
9543
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-col gap-4", children: [
9544
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-col gap-1", children: [
9545
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: "Delete your profile" }),
9546
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: "This will permanently delete your account and all of its data. You will not be able to reactivate this account." })
9362
9547
  ] }),
9363
- /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
9548
+ /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9364
9549
  "button",
9365
9550
  {
9366
9551
  type: "button",
@@ -9382,9 +9567,9 @@ var AboutTab = ({
9382
9567
  AboutTab.displayName = "AboutTab";
9383
9568
 
9384
9569
  // src/profile/tabs/accounts-wallets-tab.tsx
9385
- var import_jsx_runtime94 = require("react/jsx-runtime");
9386
- var SectionTitle = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("h3", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children });
9387
- var AccountRow = ({ children, className }) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9570
+ var import_jsx_runtime95 = require("react/jsx-runtime");
9571
+ var SectionTitle = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("h3", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children });
9572
+ var AccountRow = ({ children, className }) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
9388
9573
  "div",
9389
9574
  {
9390
9575
  className: cn(
@@ -9396,7 +9581,7 @@ var AccountRow = ({ children, className }) => /* @__PURE__ */ (0, import_jsx_run
9396
9581
  children
9397
9582
  }
9398
9583
  );
9399
- var ConnectTextButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9584
+ var ConnectTextButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
9400
9585
  "button",
9401
9586
  {
9402
9587
  type: "button",
@@ -9405,7 +9590,7 @@ var ConnectTextButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime9
9405
9590
  children: "Connect"
9406
9591
  }
9407
9592
  );
9408
- var DisconnectTextButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9593
+ var DisconnectTextButton = ({ onClick }) => /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
9409
9594
  "button",
9410
9595
  {
9411
9596
  type: "button",
@@ -9430,19 +9615,19 @@ var AccountsWalletsTab = ({
9430
9615
  const twitter = socialAccounts == null ? void 0 : socialAccounts.twitter;
9431
9616
  const discord = socialAccounts == null ? void 0 : socialAccounts.discord;
9432
9617
  const telegram = socialAccounts == null ? void 0 : socialAccounts.telegram;
9433
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-col gap-8", children: [
9434
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-col gap-3", children: [
9435
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(SectionTitle, { children: "Exchanges" }),
9436
- exchanges.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-muted-foreground", children: "No exchange accounts connected." }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("div", { className: "flex flex-col gap-2", children: exchanges.map((account) => {
9618
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-col gap-8", children: [
9619
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-col gap-3", children: [
9620
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(SectionTitle, { children: "Exchanges" }),
9621
+ exchanges.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-muted-foreground", children: "No exchange accounts connected." }) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "flex flex-col gap-2", children: exchanges.map((account) => {
9437
9622
  var _a;
9438
9623
  const displayName = (_a = venueLogoLabels[account.venue]) != null ? _a : account.venue;
9439
- return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(AccountRow, { children: [
9440
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex items-center gap-3 min-w-0", children: [
9441
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(VenueLogo, { venue: account.venue, size: "small" }),
9442
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: displayName }),
9443
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex items-center gap-2 min-w-0", children: [
9444
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "truncate text-agg-base font-agg-normal leading-6 text-agg-foreground", children: account.displayAddress }),
9445
- account.verified ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
9624
+ return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(AccountRow, { children: [
9625
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex items-center gap-3 min-w-0", children: [
9626
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(VenueLogo, { venue: account.venue, size: "small" }),
9627
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: displayName }),
9628
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex items-center gap-2 min-w-0", children: [
9629
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "truncate text-agg-base font-agg-normal leading-6 text-agg-foreground", children: account.displayAddress }),
9630
+ account.verified ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
9446
9631
  Icon,
9447
9632
  {
9448
9633
  name: "check-badge",
@@ -9452,39 +9637,39 @@ var AccountsWalletsTab = ({
9452
9637
  ) : null
9453
9638
  ] })
9454
9639
  ] }),
9455
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(DisconnectTextButton, { onClick: () => onDisconnectExchange(account.venue) })
9640
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(DisconnectTextButton, { onClick: () => onDisconnectExchange(account.venue) })
9456
9641
  ] }, account.venue);
9457
9642
  }) })
9458
9643
  ] }),
9459
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-col gap-3", children: [
9460
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(SectionTitle, { children: "Social Accounts" }),
9461
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-col gap-2", children: [
9462
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(AccountRow, { children: [
9463
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex items-center gap-3", children: [
9464
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-agg-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon, { name: "twitter", size: "small", color: "currentColor" }) }),
9465
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: "X (Twitter)" })
9644
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-col gap-3", children: [
9645
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(SectionTitle, { children: "Social Accounts" }),
9646
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-col gap-2", children: [
9647
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(AccountRow, { children: [
9648
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex items-center gap-3", children: [
9649
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-agg-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Icon, { name: "twitter", size: "small", color: "currentColor" }) }),
9650
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: "X (Twitter)" })
9466
9651
  ] }),
9467
- (twitter == null ? void 0 : twitter.connected) ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(DisconnectTextButton, { onClick: onDisconnectTwitter }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ConnectTextButton, { onClick: onConnectTwitter })
9652
+ (twitter == null ? void 0 : twitter.connected) ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(DisconnectTextButton, { onClick: onDisconnectTwitter }) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ConnectTextButton, { onClick: onConnectTwitter })
9468
9653
  ] }),
9469
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(AccountRow, { children: [
9470
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex items-center gap-3", children: [
9471
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-[#5865F2]", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon, { name: "discord", size: "small", color: "currentColor" }) }),
9472
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: "Discord" })
9654
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(AccountRow, { children: [
9655
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex items-center gap-3", children: [
9656
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-[#5865F2]", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Icon, { name: "discord", size: "small", color: "currentColor" }) }),
9657
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: "Discord" })
9473
9658
  ] }),
9474
- (discord == null ? void 0 : discord.connected) ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(DisconnectTextButton, { onClick: onDisconnectDiscord }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ConnectTextButton, { onClick: onConnectDiscord })
9659
+ (discord == null ? void 0 : discord.connected) ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(DisconnectTextButton, { onClick: onDisconnectDiscord }) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ConnectTextButton, { onClick: onConnectDiscord })
9475
9660
  ] }),
9476
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(AccountRow, { children: [
9477
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex items-center gap-3", children: [
9478
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-[#26A5E4]", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon, { name: "telegram", size: "small", color: "currentColor" }) }),
9479
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: "Telegram" })
9661
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(AccountRow, { children: [
9662
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex items-center gap-3", children: [
9663
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-[#26A5E4]", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Icon, { name: "telegram", size: "small", color: "currentColor" }) }),
9664
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: "Telegram" })
9480
9665
  ] }),
9481
- (telegram == null ? void 0 : telegram.connected) ? /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(DisconnectTextButton, { onClick: onDisconnectTelegram }) : /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(ConnectTextButton, { onClick: onConnectTelegram })
9666
+ (telegram == null ? void 0 : telegram.connected) ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(DisconnectTextButton, { onClick: onDisconnectTelegram }) : /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(ConnectTextButton, { onClick: onConnectTelegram })
9482
9667
  ] })
9483
9668
  ] })
9484
9669
  ] }),
9485
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex flex-col gap-3", children: [
9486
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(SectionTitle, { children: "Email Address" }),
9487
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(
9670
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-col gap-3", children: [
9671
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(SectionTitle, { children: "Email Address" }),
9672
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
9488
9673
  "button",
9489
9674
  {
9490
9675
  type: "button",
@@ -9496,11 +9681,11 @@ var AccountsWalletsTab = ({
9496
9681
  "cursor-pointer hover:bg-agg-secondary-hover"
9497
9682
  ),
9498
9683
  children: [
9499
- /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)("div", { className: "flex items-center gap-3", children: [
9500
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-agg-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon, { name: "email", size: "small", color: "currentColor" }) }),
9501
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: email != null ? email : "Connect email" })
9684
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex items-center gap-3", children: [
9685
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-agg-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Icon, { name: "email", size: "small", color: "currentColor" }) }),
9686
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground whitespace-nowrap", children: email != null ? email : "Connect email" })
9502
9687
  ] }),
9503
- /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(Icon, { name: "chevron-right", size: "small", color: "currentColor" })
9688
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Icon, { name: "chevron-right", size: "small", color: "currentColor" })
9504
9689
  ]
9505
9690
  }
9506
9691
  )
@@ -9510,7 +9695,7 @@ var AccountsWalletsTab = ({
9510
9695
  AccountsWalletsTab.displayName = "AccountsWalletsTab";
9511
9696
 
9512
9697
  // src/profile/index.tsx
9513
- var import_jsx_runtime95 = require("react/jsx-runtime");
9698
+ var import_jsx_runtime96 = require("react/jsx-runtime");
9514
9699
  var ProfileModal = ({
9515
9700
  open,
9516
9701
  onOpenChange,
@@ -9582,13 +9767,13 @@ var ProfileModal = ({
9582
9767
  const handleCancel = (0, import_react24.useCallback)(() => {
9583
9768
  handleOpenChange(false);
9584
9769
  }, [handleOpenChange]);
9585
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Modal.Container, { maxWidth: "800px", "aria-label": "Edit Profile", children: [
9586
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Modal.Header, { title: "Edit Profile" }),
9587
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Modal.Body, { children: /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "flex flex-col sm:flex-row sm:gap-10", children: [
9588
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "shrink-0", children: [
9589
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "flex gap-2 sm:hidden mb-6", children: PROFILE_TAB_ITEMS.map((tab) => {
9770
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Modal, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(Modal.Container, { maxWidth: "800px", "aria-label": "Edit Profile", children: [
9771
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Modal.Header, { title: "Edit Profile" }),
9772
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Modal.Body, { children: /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col sm:flex-row sm:gap-10", children: [
9773
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "shrink-0", children: [
9774
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "flex gap-2 sm:hidden mb-6", children: PROFILE_TAB_ITEMS.map((tab) => {
9590
9775
  const isActive = activeTab === tab.value;
9591
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
9776
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
9592
9777
  "button",
9593
9778
  {
9594
9779
  type: "button",
@@ -9601,14 +9786,14 @@ var ProfileModal = ({
9601
9786
  isActive ? "font-agg-normal text-agg-foreground bg-agg-secondary-hover border-agg-primary" : "font-agg-normal text-agg-foreground border-transparent"
9602
9787
  ),
9603
9788
  children: [
9604
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Icon, { name: tab.icon, size: "small", color: "currentColor" }),
9605
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "whitespace-nowrap", children: tab.label })
9789
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Icon, { name: tab.icon, size: "small", color: "currentColor" }),
9790
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "whitespace-nowrap", children: tab.label })
9606
9791
  ]
9607
9792
  },
9608
9793
  tab.value
9609
9794
  );
9610
9795
  }) }),
9611
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
9796
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
9612
9797
  "nav",
9613
9798
  {
9614
9799
  className: cn(
@@ -9623,7 +9808,7 @@ var ProfileModal = ({
9623
9808
  "aria-label": "Profile sections",
9624
9809
  children: PROFILE_TAB_ITEMS.map((tab) => {
9625
9810
  const isActive = activeTab === tab.value;
9626
- return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
9811
+ return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
9627
9812
  "button",
9628
9813
  {
9629
9814
  type: "button",
@@ -9638,9 +9823,9 @@ var ProfileModal = ({
9638
9823
  isActive ? "font-agg-normal text-agg-foreground bg-agg-secondary-hover" : "font-agg-normal text-agg-foreground"
9639
9824
  ),
9640
9825
  children: [
9641
- isActive ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: "absolute left-0 top-0 bottom-0 w-1 bg-agg-primary" }) : null,
9642
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Icon, { name: tab.icon, size: "small", color: "currentColor" }),
9643
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "shrink-0 whitespace-nowrap", children: tab.label })
9826
+ isActive ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "absolute left-0 top-0 bottom-0 w-1 bg-agg-primary" }) : null,
9827
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Icon, { name: tab.icon, size: "small", color: "currentColor" }),
9828
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("span", { className: "shrink-0 whitespace-nowrap", children: tab.label })
9644
9829
  ]
9645
9830
  },
9646
9831
  tab.value
@@ -9649,8 +9834,8 @@ var ProfileModal = ({
9649
9834
  }
9650
9835
  )
9651
9836
  ] }),
9652
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)("div", { className: "min-w-0 flex-1", children: [
9653
- activeTab === PROFILE_TAB_KEYS.ABOUT ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
9837
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "min-w-0 flex-1", children: [
9838
+ activeTab === PROFILE_TAB_KEYS.ABOUT ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
9654
9839
  AboutTab,
9655
9840
  {
9656
9841
  username,
@@ -9663,7 +9848,7 @@ var ProfileModal = ({
9663
9848
  draftAvatarPreview
9664
9849
  }
9665
9850
  ) : null,
9666
- activeTab === PROFILE_TAB_KEYS.ACCOUNTS_WALLETS ? /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
9851
+ activeTab === PROFILE_TAB_KEYS.ACCOUNTS_WALLETS ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
9667
9852
  AccountsWalletsTab,
9668
9853
  {
9669
9854
  exchanges,
@@ -9681,9 +9866,9 @@ var ProfileModal = ({
9681
9866
  ) : null
9682
9867
  ] })
9683
9868
  ] }) }),
9684
- /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(Modal.Footer, { children: [
9685
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Button, { variant: "secondary", size: "large", onClick: handleCancel, className: "min-w-[120px]", children: "Cancel" }),
9686
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
9869
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(Modal.Footer, { children: [
9870
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Button, { variant: "secondary", size: "large", onClick: handleCancel, className: "min-w-[120px]", children: "Cancel" }),
9871
+ /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
9687
9872
  Button,
9688
9873
  {
9689
9874
  variant: "primary",
@@ -9756,9 +9941,9 @@ var getTradingSlippageLabel = (value) => {
9756
9941
  };
9757
9942
 
9758
9943
  // src/trading/place-order/index.tsx
9759
- var import_jsx_runtime96 = require("react/jsx-runtime");
9944
+ var import_jsx_runtime97 = require("react/jsx-runtime");
9760
9945
  var WarningFilledIcon2 = ({ className }) => {
9761
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
9946
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
9762
9947
  "svg",
9763
9948
  {
9764
9949
  viewBox: "0 0 16 16",
@@ -9766,15 +9951,15 @@ var WarningFilledIcon2 = ({ className }) => {
9766
9951
  className: cn("text-agg-warning", className),
9767
9952
  "aria-hidden": "true",
9768
9953
  children: [
9769
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("path", { d: "M8 1.33301L15.3333 14.6663H0.666656L8 1.33301Z", fill: "currentColor" }),
9770
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("path", { d: "M8 5.33301V8.66634", stroke: "white", strokeWidth: "1.4", strokeLinecap: "round" }),
9771
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("circle", { cx: "8", cy: "11.1667", r: "0.833333", fill: "white" })
9954
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("path", { d: "M8 1.33301L15.3333 14.6663H0.666656L8 1.33301Z", fill: "currentColor" }),
9955
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("path", { d: "M8 5.33301V8.66634", stroke: "white", strokeWidth: "1.4", strokeLinecap: "round" }),
9956
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("circle", { cx: "8", cy: "11.1667", r: "0.833333", fill: "white" })
9772
9957
  ]
9773
9958
  }
9774
9959
  );
9775
9960
  };
9776
9961
  var ErrorFilledIcon = ({ className }) => {
9777
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
9962
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
9778
9963
  "svg",
9779
9964
  {
9780
9965
  viewBox: "0 0 16 16",
@@ -9782,9 +9967,9 @@ var ErrorFilledIcon = ({ className }) => {
9782
9967
  className: cn("text-agg-error", className),
9783
9968
  "aria-hidden": "true",
9784
9969
  children: [
9785
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("circle", { cx: "8", cy: "8", r: "8", fill: "currentColor" }),
9786
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("path", { d: "M8 4.16699V8.50033", stroke: "white", strokeWidth: "1.4", strokeLinecap: "round" }),
9787
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("circle", { cx: "8", cy: "11.167", r: "0.833333", fill: "white" })
9970
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("circle", { cx: "8", cy: "8", r: "8", fill: "currentColor" }),
9971
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("path", { d: "M8 4.16699V8.50033", stroke: "white", strokeWidth: "1.4", strokeLinecap: "round" }),
9972
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("circle", { cx: "8", cy: "11.167", r: "0.833333", fill: "white" })
9788
9973
  ]
9789
9974
  }
9790
9975
  );
@@ -9831,17 +10016,17 @@ var getStatusContent = ({
9831
10016
  if (!status || status.placement !== placement)
9832
10017
  return null;
9833
10018
  if (status.tone === "warning") {
9834
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex items-center justify-center gap-2", children: [
9835
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(WarningFilledIcon2, { className: "h-4 w-4 shrink-0" }),
9836
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: status.message })
10019
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex items-center justify-center gap-2", children: [
10020
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(WarningFilledIcon2, { className: "h-4 w-4 shrink-0" }),
10021
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-foreground", children: status.message })
9837
10022
  ] });
9838
10023
  }
9839
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex items-center gap-3 rounded-agg-lg bg-agg-status-error-surface px-3 py-2.5", children: [
9840
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
9841
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(ErrorFilledIcon, { className: "h-4 w-4 shrink-0" }),
9842
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "min-w-0 flex-1 text-agg-sm leading-agg-5 text-agg-foreground", children: status.message })
10024
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex items-center gap-3 rounded-agg-lg bg-agg-status-error-surface px-3 py-2.5", children: [
10025
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
10026
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(ErrorFilledIcon, { className: "h-4 w-4 shrink-0" }),
10027
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "min-w-0 flex-1 text-agg-sm leading-agg-5 text-agg-foreground", children: status.message })
9843
10028
  ] }),
9844
- status.actionLabel ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10029
+ status.actionLabel ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
9845
10030
  "button",
9846
10031
  {
9847
10032
  type: "button",
@@ -9883,7 +10068,7 @@ var PlaceOrder = ({
9883
10068
  const labels = (0, import_hooks34.useLabels)();
9884
10069
  const resolvedDisclaimer = disclaimer === defaultTradingDisclaimer ? labels.trading.disclaimer : disclaimer;
9885
10070
  if (isLoading) {
9886
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10071
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
9887
10072
  Skeleton,
9888
10073
  {
9889
10074
  ariaLabel: labels.common.loading,
@@ -9922,7 +10107,7 @@ var PlaceOrder = ({
9922
10107
  }
9923
10108
  onOutcomeChange == null ? void 0 : onOutcomeChange(nextOutcomeId);
9924
10109
  };
9925
- const actionButton = /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10110
+ const actionButton = /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
9926
10111
  Button,
9927
10112
  {
9928
10113
  size: "large",
@@ -9934,11 +10119,11 @@ var PlaceOrder = ({
9934
10119
  children: actionLabel
9935
10120
  }
9936
10121
  );
9937
- const contentBody = /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col gap-6 p-5", children: [
9938
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col gap-2", children: [
9939
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex items-start justify-between gap-5", children: [
9940
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
9941
- marketImageUrl ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10122
+ const contentBody = /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-6 p-5", children: [
10123
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-2", children: [
10124
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex items-start justify-between gap-5", children: [
10125
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-3", children: [
10126
+ marketImageUrl ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
9942
10127
  "img",
9943
10128
  {
9944
10129
  src: marketImageUrl,
@@ -9946,16 +10131,16 @@ var PlaceOrder = ({
9946
10131
  className: "h-12 w-12 shrink-0 rounded-agg-lg object-cover"
9947
10132
  }
9948
10133
  ) : null,
9949
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "min-w-0 text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: title })
10134
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "min-w-0 text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: title })
9950
10135
  ] }),
9951
- isDismissible ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10136
+ isDismissible ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
9952
10137
  "button",
9953
10138
  {
9954
10139
  type: "button",
9955
10140
  "aria-label": labels.common.close,
9956
10141
  className: "shrink-0 text-agg-foreground",
9957
10142
  onClick: onClose,
9958
- children: /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10143
+ children: /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
9959
10144
  Icon,
9960
10145
  {
9961
10146
  name: "close",
@@ -9967,9 +10152,9 @@ var PlaceOrder = ({
9967
10152
  }
9968
10153
  ) : null
9969
10154
  ] }),
9970
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: dateLabel })
10155
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-agg-base leading-agg-6 text-agg-foreground", children: dateLabel })
9971
10156
  ] }),
9972
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10157
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
9973
10158
  Tabs,
9974
10159
  {
9975
10160
  ariaLabel: labels.common.tabsAria,
@@ -9985,11 +10170,11 @@ var PlaceOrder = ({
9985
10170
  }
9986
10171
  }
9987
10172
  ),
9988
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col gap-4", children: [
9989
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("div", { className: "flex w-full gap-2", children: outcomes.map((outcome, index) => {
10173
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-4", children: [
10174
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "flex w-full gap-2", children: outcomes.map((outcome, index) => {
9990
10175
  const isActive = outcome.id === resolvedOutcomeId;
9991
10176
  const isPositive = resolveIsPositiveOutcome(outcome, index);
9992
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10177
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
9993
10178
  "button",
9994
10179
  {
9995
10180
  type: "button",
@@ -10006,16 +10191,16 @@ var PlaceOrder = ({
10006
10191
  outcome.id
10007
10192
  );
10008
10193
  }) }),
10009
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
10010
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col", children: [
10011
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: primaryMetric.label }),
10012
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-muted-foreground", children: primaryMetric.hint })
10194
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
10195
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col", children: [
10196
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: primaryMetric.label }),
10197
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-muted-foreground", children: primaryMetric.hint })
10013
10198
  ] }),
10014
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "text-agg-3xl font-agg-bold leading-agg-9 text-agg-foreground", children: primaryMetric.value })
10199
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-agg-3xl font-agg-bold leading-agg-9 text-agg-foreground", children: primaryMetric.value })
10015
10200
  ] })
10016
10201
  ] }),
10017
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col gap-2", children: [
10018
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(
10202
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-2", children: [
10203
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
10019
10204
  "div",
10020
10205
  {
10021
10206
  className: cn(
@@ -10023,7 +10208,7 @@ var PlaceOrder = ({
10023
10208
  getRoutingCardClassName(hasHighlightedRouting)
10024
10209
  ),
10025
10210
  children: [
10026
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10211
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10027
10212
  "div",
10028
10213
  {
10029
10214
  className: cn(
@@ -10032,11 +10217,11 @@ var PlaceOrder = ({
10032
10217
  )
10033
10218
  }
10034
10219
  ),
10035
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "relative flex flex-col gap-3", children: [
10036
- routing.rows.map((row, index) => /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col gap-3", children: [
10037
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
10038
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex min-w-0 items-center gap-2", children: [
10039
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10220
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "relative flex flex-col gap-3", children: [
10221
+ routing.rows.map((row, index) => /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-3", children: [
10222
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
10223
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex min-w-0 items-center gap-2", children: [
10224
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10040
10225
  VenueLogo,
10041
10226
  {
10042
10227
  venue: row.venue,
@@ -10044,11 +10229,11 @@ var PlaceOrder = ({
10044
10229
  ariaLabel: getTradingVenueLabel(row.venue)
10045
10230
  }
10046
10231
  ),
10047
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "truncate text-agg-base leading-agg-6 text-agg-foreground", children: row.label })
10232
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "truncate text-agg-base leading-agg-6 text-agg-foreground", children: row.label })
10048
10233
  ] }),
10049
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "shrink-0 text-agg-base leading-agg-6 text-agg-foreground", children: row.priceLabel })
10234
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "shrink-0 text-agg-base leading-agg-6 text-agg-foreground", children: row.priceLabel })
10050
10235
  ] }),
10051
- index < routing.rows.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10236
+ index < routing.rows.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10052
10237
  "div",
10053
10238
  {
10054
10239
  className: cn(
@@ -10058,19 +10243,19 @@ var PlaceOrder = ({
10058
10243
  }
10059
10244
  ) : null
10060
10245
  ] }, `${row.venue}-${row.label}`)),
10061
- routing.highlightLabel ? /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "text-center text-agg-sm font-agg-bold leading-agg-5 uppercase text-agg-trade-highlight-accent", children: routing.highlightLabel }) : null
10246
+ routing.highlightLabel ? /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-center text-agg-sm font-agg-bold leading-agg-5 uppercase text-agg-trade-highlight-accent", children: routing.highlightLabel }) : null
10062
10247
  ] })
10063
10248
  ]
10064
10249
  }
10065
10250
  ),
10066
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-muted-foreground", children: routing.helperLabel })
10251
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-muted-foreground", children: routing.helperLabel })
10067
10252
  ] }),
10068
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
10069
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex flex-col", children: [
10070
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: result.label }),
10071
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-muted-foreground", children: result.hint })
10253
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
10254
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col", children: [
10255
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-agg-base font-agg-bold leading-agg-6 text-agg-foreground", children: result.label }),
10256
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-agg-sm leading-agg-5 text-agg-muted-foreground", children: result.hint })
10072
10257
  ] }),
10073
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
10258
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10074
10259
  "p",
10075
10260
  {
10076
10261
  className: cn(
@@ -10081,7 +10266,7 @@ var PlaceOrder = ({
10081
10266
  }
10082
10267
  )
10083
10268
  ] }),
10084
- /* @__PURE__ */ (0, import_jsx_runtime96.jsxs)(import_jsx_runtime96.Fragment, { children: [
10269
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_jsx_runtime97.Fragment, { children: [
10085
10270
  getStatusContent({
10086
10271
  placement: "above-action",
10087
10272
  status,
@@ -10094,16 +10279,16 @@ var PlaceOrder = ({
10094
10279
  onStatusAction
10095
10280
  })
10096
10281
  ] }),
10097
- /* @__PURE__ */ (0, import_jsx_runtime96.jsx)("p", { className: "text-center text-agg-xs leading-agg-4 text-agg-muted-foreground", children: resolvedDisclaimer })
10282
+ /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-center text-agg-xs leading-agg-4 text-agg-muted-foreground", children: resolvedDisclaimer })
10098
10283
  ] });
10099
- return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(Card, { className: cn(getPlaceOrderContainerClassName(), className), children: contentBody });
10284
+ return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(Card, { className: cn(getPlaceOrderContainerClassName(), className), children: contentBody });
10100
10285
  };
10101
10286
  PlaceOrder.displayName = "PlaceOrder";
10102
10287
 
10103
10288
  // src/trading/settlement/index.tsx
10104
10289
  var import_react26 = require("react");
10105
10290
  var import_hooks35 = require("@agg-market/hooks");
10106
- var import_jsx_runtime97 = require("react/jsx-runtime");
10291
+ var import_jsx_runtime98 = require("react/jsx-runtime");
10107
10292
  var getSettlementHeaderClassName = () => {
10108
10293
  return "flex items-center justify-between gap-4";
10109
10294
  };
@@ -10295,7 +10480,7 @@ var Settlement = ({
10295
10480
  onShowMore == null ? void 0 : onShowMore(venue);
10296
10481
  };
10297
10482
  if (isLoading) {
10298
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10483
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
10299
10484
  Skeleton,
10300
10485
  {
10301
10486
  ariaLabel: labels.trading.settlementLoading,
@@ -10304,7 +10489,7 @@ var Settlement = ({
10304
10489
  }
10305
10490
  );
10306
10491
  }
10307
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
10492
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
10308
10493
  Card,
10309
10494
  {
10310
10495
  className: cn(
@@ -10312,16 +10497,16 @@ var Settlement = ({
10312
10497
  className
10313
10498
  ),
10314
10499
  children: [
10315
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: getSettlementHeaderClassName(), children: [
10316
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-agg-xs font-agg-bold leading-agg-4 uppercase text-agg-muted-foreground", children: resolvedSectionLabel }),
10317
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: question })
10500
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: getSettlementHeaderClassName(), children: [
10501
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("p", { className: "text-agg-xs font-agg-bold leading-agg-4 uppercase text-agg-muted-foreground", children: resolvedSectionLabel }),
10502
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: question })
10318
10503
  ] }),
10319
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col gap-2", children: [
10320
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: resolvedDifferencesTitle }),
10321
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("ul", { className: "list-disc pl-5 text-agg-sm leading-agg-5 text-agg-foreground", children: differences.map((difference) => /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("li", { children: difference }, difference)) })
10504
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex flex-col gap-2", children: [
10505
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("p", { className: "text-agg-sm font-agg-bold leading-agg-5 text-agg-foreground", children: resolvedDifferencesTitle }),
10506
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("ul", { className: "list-disc pl-5 text-agg-sm leading-agg-5 text-agg-foreground", children: differences.map((difference) => /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("li", { children: difference }, difference)) })
10322
10507
  ] }),
10323
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
10324
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)("div", { className: "flex flex-col gap-3", children: venues.map((venue) => {
10508
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "h-px w-full bg-agg-separator" }),
10509
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "flex flex-col gap-3", children: venues.map((venue) => {
10325
10510
  var _a2, _b2;
10326
10511
  const venueLabel = getTradingVenueLabel(venue.venue, venue.label);
10327
10512
  const isExpanded = resolvedExpandedVenue === venue.venue;
@@ -10329,8 +10514,8 @@ var Settlement = ({
10329
10514
  const isDescriptionOverflowing = !!overflowingDescriptionByVenue[venue.venue];
10330
10515
  const shouldShowDescriptionCta = isExpanded && isDescriptionOverflowing && !isDescriptionExpanded;
10331
10516
  const resolvedShowMoreLabel = (_a2 = venue.showMoreLabel) != null ? _a2 : "Show more";
10332
- return /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("div", { className: "flex flex-col", children: [
10333
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
10517
+ return /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex flex-col", children: [
10518
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
10334
10519
  "button",
10335
10520
  {
10336
10521
  type: "button",
@@ -10346,7 +10531,7 @@ var Settlement = ({
10346
10531
  "aria-label": labels.trading.settlementDetailsAria(venueLabel),
10347
10532
  onClick: () => handleVenueClick(venue.venue),
10348
10533
  children: [
10349
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10534
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
10350
10535
  VenueLogo,
10351
10536
  {
10352
10537
  venue: venue.venue,
@@ -10354,7 +10539,7 @@ var Settlement = ({
10354
10539
  ariaLabel: venueLabel
10355
10540
  }
10356
10541
  ),
10357
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10542
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
10358
10543
  "span",
10359
10544
  {
10360
10545
  className: cn(
@@ -10364,7 +10549,7 @@ var Settlement = ({
10364
10549
  children: venueLabel
10365
10550
  }
10366
10551
  ),
10367
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10552
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
10368
10553
  Icon,
10369
10554
  {
10370
10555
  name: isExpanded ? "chevron-up" : "chevron-down",
@@ -10376,7 +10561,7 @@ var Settlement = ({
10376
10561
  ]
10377
10562
  }
10378
10563
  ),
10379
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10564
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
10380
10565
  "div",
10381
10566
  {
10382
10567
  "aria-hidden": !isExpanded,
@@ -10389,17 +10574,17 @@ var Settlement = ({
10389
10574
  "transition-[grid-template-rows,opacity,margin-top] duration-300 ease-in-out"
10390
10575
  )
10391
10576
  ),
10392
- children: /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(
10577
+ children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
10393
10578
  "div",
10394
10579
  {
10395
10580
  ref: (element) => handleDescriptionWrapperRef(venue.venue, element),
10396
10581
  className: "relative min-h-0",
10397
10582
  children: [
10398
- /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)("p", { className: "min-h-0 text-agg-sm leading-agg-5 text-agg-foreground", children: [
10583
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("p", { className: "min-h-0 text-agg-sm leading-agg-5 text-agg-foreground", children: [
10399
10584
  isDescriptionExpanded || !isDescriptionOverflowing ? venue.description : (_b2 = collapsedDescriptionByVenue[venue.venue]) != null ? _b2 : venue.description,
10400
- shouldShowDescriptionCta ? /* @__PURE__ */ (0, import_jsx_runtime97.jsxs)(import_jsx_runtime97.Fragment, { children: [
10585
+ shouldShowDescriptionCta ? /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(import_jsx_runtime98.Fragment, { children: [
10401
10586
  "... ",
10402
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10587
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
10403
10588
  "button",
10404
10589
  {
10405
10590
  type: "button",
@@ -10422,7 +10607,7 @@ var Settlement = ({
10422
10607
  )
10423
10608
  ] }) : null
10424
10609
  ] }),
10425
- /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
10610
+ /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
10426
10611
  "p",
10427
10612
  {
10428
10613
  ref: (element) => handleDescriptionMeasureRef(venue.venue, element),
@@ -10444,7 +10629,7 @@ var Settlement = ({
10444
10629
  Settlement.displayName = "Settlement";
10445
10630
 
10446
10631
  // src/pages/event-market/index.tsx
10447
- var import_jsx_runtime98 = require("react/jsx-runtime");
10632
+ var import_jsx_runtime99 = require("react/jsx-runtime");
10448
10633
  var getMarketDateValue = (market, fallbackIndex) => {
10449
10634
  var _a, _b, _c;
10450
10635
  const candidateDate = (_c = (_b = (_a = market.endDate) != null ? _a : market.startDate) != null ? _b : market.creationDate) != null ? _c : null;
@@ -10504,19 +10689,33 @@ var EventMarketPageUnavailableState = ({
10504
10689
  ariaLabel
10505
10690
  }) => {
10506
10691
  const labels = (0, import_hooks36.useLabels)();
10507
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
10692
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
10508
10693
  Card,
10509
10694
  {
10510
10695
  className: "rounded-agg-xl border border-agg-separator bg-agg-secondary p-6 shadow-none hover:shadow-none",
10511
10696
  role: "status",
10512
10697
  "aria-label": ariaLabel != null ? ariaLabel : labels.eventMarketPage.unavailableAria,
10513
- children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: "flex flex-col gap-1", children: [
10514
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Typography, { variant: "body-large-strong", children: labels.eventMarketPage.unavailableTitle }),
10515
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Typography, { variant: "label", className: "text-agg-muted-foreground", children: labels.eventMarketPage.unavailableDescription })
10698
+ children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex flex-col gap-1", children: [
10699
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Typography, { variant: "body-large-strong", children: labels.eventMarketPage.unavailableTitle }),
10700
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Typography, { variant: "label", className: "text-agg-muted-foreground", children: labels.eventMarketPage.unavailableDescription })
10516
10701
  ] })
10517
10702
  }
10518
10703
  );
10519
10704
  };
10705
+ var EventMarketPageNotFoundState = ({
10706
+ ariaLabel
10707
+ }) => {
10708
+ const labels = (0, import_hooks36.useLabels)();
10709
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Card, { className: "overflow-hidden rounded-agg-xl border border-agg-separator bg-agg-secondary p-0 shadow-none hover:shadow-none", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
10710
+ StateMessage,
10711
+ {
10712
+ ariaLabel: ariaLabel != null ? ariaLabel : labels.eventItemDetails.notFoundAria,
10713
+ title: labels.eventItemDetails.notFoundTitle,
10714
+ description: labels.eventItemDetails.notFoundDescription,
10715
+ className: "min-h-[320px] md:min-h-[360px]"
10716
+ }
10717
+ ) });
10718
+ };
10520
10719
  var EventMarketPageLoadingState = ({
10521
10720
  placeOrder,
10522
10721
  settlement,
@@ -10535,7 +10734,7 @@ var EventMarketPageLoadingState = ({
10535
10734
  }
10536
10735
  ]
10537
10736
  };
10538
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("section", { className: cn("w-full", classNames == null ? void 0 : classNames.root), children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
10737
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("section", { className: cn("w-full", classNames == null ? void 0 : classNames.root), children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
10539
10738
  "div",
10540
10739
  {
10541
10740
  className: cn(
@@ -10543,8 +10742,8 @@ var EventMarketPageLoadingState = ({
10543
10742
  classNames == null ? void 0 : classNames.content
10544
10743
  ),
10545
10744
  children: [
10546
- /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: cn("flex min-w-0 flex-1 flex-col gap-6", classNames == null ? void 0 : classNames.main), children: [
10547
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
10745
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: cn("flex min-w-0 flex-1 flex-col gap-6", classNames == null ? void 0 : classNames.main), children: [
10746
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
10548
10747
  EventListItemDetails,
10549
10748
  {
10550
10749
  isLoading: true,
@@ -10553,23 +10752,23 @@ var EventMarketPageLoadingState = ({
10553
10752
  }
10554
10753
  }
10555
10754
  ),
10556
- /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: cn("flex flex-col gap-3", classNames == null ? void 0 : classNames.markets), children: [
10557
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(MarketDetails, { isLoading: true, isOpened: true, classNames: { root: "w-full" } }),
10558
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(MarketDetails, { isLoading: true, isOpened: false, classNames: { root: "w-full" } }),
10559
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(MarketDetails, { isLoading: true, isOpened: false, classNames: { root: "w-full" } })
10755
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: cn("flex flex-col gap-3", classNames == null ? void 0 : classNames.markets), children: [
10756
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(MarketDetails, { isLoading: true, isOpened: true, classNames: { root: "w-full" } }),
10757
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(MarketDetails, { isLoading: true, isOpened: false, classNames: { root: "w-full" } }),
10758
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(MarketDetails, { isLoading: true, isOpened: false, classNames: { root: "w-full" } })
10560
10759
  ] }),
10561
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Settlement, __spreadProps(__spreadValues({}, fallbackSettlement), { isLoading: true, className: classNames == null ? void 0 : classNames.settlement })) }),
10562
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Settlement, __spreadProps(__spreadValues({}, fallbackSettlement), { isLoading: true, className: classNames == null ? void 0 : classNames.settlement })) }),
10563
- placeOrder ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(PlaceOrder, __spreadProps(__spreadValues({}, placeOrder), { isLoading: true, className: classNames == null ? void 0 : classNames.mobileTrade })) }) : null
10760
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Settlement, __spreadProps(__spreadValues({}, fallbackSettlement), { isLoading: true, className: classNames == null ? void 0 : classNames.settlement })) }),
10761
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Settlement, __spreadProps(__spreadValues({}, fallbackSettlement), { isLoading: true, className: classNames == null ? void 0 : classNames.settlement })) }),
10762
+ placeOrder ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(PlaceOrder, __spreadProps(__spreadValues({}, placeOrder), { isLoading: true, className: classNames == null ? void 0 : classNames.mobileTrade })) }) : null
10564
10763
  ] }),
10565
- placeOrder ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
10764
+ placeOrder ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
10566
10765
  "aside",
10567
10766
  {
10568
10767
  className: cn(
10569
10768
  "hidden w-full shrink-0 lg:sticky lg:top-6 lg:block lg:w-[343px]",
10570
10769
  classNames == null ? void 0 : classNames.sidebar
10571
10770
  ),
10572
- children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(PlaceOrder, __spreadProps(__spreadValues({}, placeOrder), { isLoading: true, className: classNames == null ? void 0 : classNames.trade }))
10771
+ children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(PlaceOrder, __spreadProps(__spreadValues({}, placeOrder), { isLoading: true, className: classNames == null ? void 0 : classNames.trade }))
10573
10772
  }
10574
10773
  ) : null
10575
10774
  ]
@@ -10625,9 +10824,9 @@ var EventMarketPageContent = ({
10625
10824
  onExpandedMarketChange == null ? void 0 : onExpandedMarketChange(nextExpandedMarketId);
10626
10825
  };
10627
10826
  if (!heroEvent || !event.markets.length) {
10628
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(EventMarketPageUnavailableState, { ariaLabel });
10827
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(EventMarketPageUnavailableState, { ariaLabel });
10629
10828
  }
10630
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("section", { className: cn("w-full", classNames == null ? void 0 : classNames.root), "aria-label": ariaLabel != null ? ariaLabel : event.title, children: /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)(
10829
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("section", { className: cn("w-full", classNames == null ? void 0 : classNames.root), "aria-label": ariaLabel != null ? ariaLabel : event.title, children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
10631
10830
  "div",
10632
10831
  {
10633
10832
  className: cn(
@@ -10635,8 +10834,8 @@ var EventMarketPageContent = ({
10635
10834
  classNames == null ? void 0 : classNames.content
10636
10835
  ),
10637
10836
  children: [
10638
- /* @__PURE__ */ (0, import_jsx_runtime98.jsxs)("div", { className: cn("flex min-w-0 flex-1 flex-col gap-6", classNames == null ? void 0 : classNames.main), children: [
10639
- /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
10837
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: cn("flex min-w-0 flex-1 flex-col gap-6", classNames == null ? void 0 : classNames.main), children: [
10838
+ /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
10640
10839
  EventListItemDetails,
10641
10840
  {
10642
10841
  event: heroEvent,
@@ -10646,9 +10845,9 @@ var EventMarketPageContent = ({
10646
10845
  }
10647
10846
  }
10648
10847
  ),
10649
- detailedMarkets.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: cn("flex flex-col gap-3", classNames == null ? void 0 : classNames.markets), children: detailedMarkets.map((market) => {
10848
+ detailedMarkets.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: cn("flex flex-col gap-3", classNames == null ? void 0 : classNames.markets), children: detailedMarkets.map((market) => {
10650
10849
  const isOpened = resolvedExpandedMarketId === market.id;
10651
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
10850
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
10652
10851
  MarketDetails,
10653
10852
  {
10654
10853
  event,
@@ -10663,30 +10862,31 @@ var EventMarketPageContent = ({
10663
10862
  market.id
10664
10863
  );
10665
10864
  }) }) : null,
10666
- settlement ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Settlement, __spreadProps(__spreadValues({}, settlement), { className: classNames == null ? void 0 : classNames.settlement })) }) : null,
10667
- settlement ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(Settlement, __spreadProps(__spreadValues({}, settlement), { className: classNames == null ? void 0 : classNames.settlement })) }) : null
10865
+ settlement ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Settlement, __spreadProps(__spreadValues({}, settlement), { className: classNames == null ? void 0 : classNames.settlement })) }) : null,
10866
+ settlement ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Settlement, __spreadProps(__spreadValues({}, settlement), { className: classNames == null ? void 0 : classNames.settlement })) }) : null
10668
10867
  ] }),
10669
- placeOrder ? /* @__PURE__ */ (0, import_jsx_runtime98.jsx)("aside", { className: cn("w-full lg:block lg:max-w-[360px]", classNames == null ? void 0 : classNames.sidebar), children: /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(PlaceOrder, __spreadProps(__spreadValues({}, placeOrder), { className: classNames == null ? void 0 : classNames.trade })) }) : null
10868
+ placeOrder ? /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("aside", { className: cn("w-full lg:block lg:max-w-[360px]", classNames == null ? void 0 : classNames.sidebar), children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(PlaceOrder, __spreadProps(__spreadValues({}, placeOrder), { className: classNames == null ? void 0 : classNames.trade })) }) : null
10670
10869
  ]
10671
10870
  }
10672
10871
  ) });
10673
10872
  };
10674
10873
  var EventMarketPage = (props) => {
10675
10874
  const hasEventProp = "event" in props && !!props.event;
10676
- const { event: fetchedEvent, isLoading: isFetchingEvent } = (0, import_hooks36.useEvent)(
10677
- hasEventProp ? void 0 : props.eventId,
10678
- {
10679
- enabled: !props.isLoading && !hasEventProp && !!props.eventId
10680
- }
10681
- );
10875
+ const {
10876
+ event: fetchedEvent,
10877
+ error: eventError,
10878
+ isLoading: isFetchingEvent
10879
+ } = (0, import_hooks36.useEvent)(hasEventProp ? void 0 : props.eventId, {
10880
+ enabled: !props.isLoading && !hasEventProp && !!props.eventId
10881
+ });
10682
10882
  if (props.isLoading) {
10683
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(EventMarketPageLoadingState, { placeOrder: props.placeOrder, settlement: props.settlement });
10883
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(EventMarketPageLoadingState, { placeOrder: props.placeOrder, settlement: props.settlement });
10684
10884
  }
10685
10885
  if ("event" in props && props.event) {
10686
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(EventMarketPageContent, __spreadProps(__spreadValues({}, props), { event: props.event }));
10886
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(EventMarketPageContent, __spreadProps(__spreadValues({}, props), { event: props.event }));
10687
10887
  }
10688
10888
  if (isFetchingEvent) {
10689
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
10889
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
10690
10890
  EventMarketPageLoadingState,
10691
10891
  {
10692
10892
  placeOrder: props.placeOrder,
@@ -10696,9 +10896,12 @@ var EventMarketPage = (props) => {
10696
10896
  );
10697
10897
  }
10698
10898
  if (!fetchedEvent) {
10699
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(EventMarketPageUnavailableState, { ariaLabel: props.ariaLabel });
10899
+ if (isErrorWithStatus(eventError, 404)) {
10900
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(EventMarketPageNotFoundState, { ariaLabel: props.ariaLabel });
10901
+ }
10902
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(EventMarketPageUnavailableState, { ariaLabel: props.ariaLabel });
10700
10903
  }
10701
- return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(EventMarketPageContent, __spreadProps(__spreadValues({}, props), { event: fetchedEvent }));
10904
+ return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(EventMarketPageContent, __spreadProps(__spreadValues({}, props), { event: fetchedEvent }));
10702
10905
  };
10703
10906
  EventMarketPage.displayName = "EventMarketPage";
10704
10907
 
@@ -10715,7 +10918,7 @@ var USER_PROFILE_POSITION_FILTERS = [
10715
10918
  ];
10716
10919
 
10717
10920
  // src/pages/user-profile/components/balance-display.tsx
10718
- var import_jsx_runtime99 = require("react/jsx-runtime");
10921
+ var import_jsx_runtime100 = require("react/jsx-runtime");
10719
10922
  var BalanceDisplay = ({
10720
10923
  balance,
10721
10924
  defaultTimeRange = "All",
@@ -10729,7 +10932,7 @@ var BalanceDisplay = ({
10729
10932
  setActiveRange(range);
10730
10933
  onTimeRangeChange == null ? void 0 : onTimeRangeChange(range);
10731
10934
  };
10732
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
10935
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
10733
10936
  "div",
10734
10937
  {
10735
10938
  className: cn(
@@ -10737,11 +10940,11 @@ var BalanceDisplay = ({
10737
10940
  className
10738
10941
  ),
10739
10942
  children: [
10740
- /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex items-end gap-3", children: [
10741
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { className: "agg-type-display text-agg-foreground", children: (_a = currentBalance == null ? void 0 : currentBalance.totalLabel) != null ? _a : "$0.00" }),
10742
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("span", { className: "font-agg-sans text-agg-base leading-6 font-agg-normal text-agg-muted-foreground", children: "Profit/Loss" }),
10743
- /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)("div", { className: "flex items-center gap-1", children: [
10744
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
10943
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "flex items-end gap-3", children: [
10944
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { className: "agg-type-display text-agg-foreground", children: (_a = currentBalance == null ? void 0 : currentBalance.totalLabel) != null ? _a : "$0.00" }),
10945
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { className: "font-agg-sans text-agg-base leading-6 font-agg-normal text-agg-muted-foreground", children: "Profit/Loss" }),
10946
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "flex items-center gap-1", children: [
10947
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
10745
10948
  "span",
10746
10949
  {
10747
10950
  className: cn(
@@ -10751,7 +10954,7 @@ var BalanceDisplay = ({
10751
10954
  children: (_b = currentBalance == null ? void 0 : currentBalance.changePercentLabel) != null ? _b : "0%"
10752
10955
  }
10753
10956
  ),
10754
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
10957
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
10755
10958
  Icon,
10756
10959
  {
10757
10960
  name: "triangle-up-filled",
@@ -10763,9 +10966,9 @@ var BalanceDisplay = ({
10763
10966
  )
10764
10967
  ] })
10765
10968
  ] }),
10766
- /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("div", { className: "flex w-[100px] items-center justify-between", children: USER_PROFILE_TIME_RANGES.map((range) => {
10969
+ /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: "flex w-[100px] items-center justify-between", children: USER_PROFILE_TIME_RANGES.map((range) => {
10767
10970
  const isActive = range === activeRange;
10768
- return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
10971
+ return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
10769
10972
  "button",
10770
10973
  {
10771
10974
  type: "button",
@@ -10786,14 +10989,14 @@ var BalanceDisplay = ({
10786
10989
  BalanceDisplay.displayName = "BalanceDisplay";
10787
10990
 
10788
10991
  // src/pages/user-profile/components/balances-card.tsx
10789
- var import_jsx_runtime100 = require("react/jsx-runtime");
10992
+ var import_jsx_runtime101 = require("react/jsx-runtime");
10790
10993
  var BalancesCard = ({
10791
10994
  venueBalances = [],
10792
10995
  onDeposit,
10793
10996
  onWithdraw,
10794
10997
  className
10795
10998
  }) => {
10796
- return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
10999
+ return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
10797
11000
  "div",
10798
11001
  {
10799
11002
  className: cn(
@@ -10801,16 +11004,16 @@ var BalancesCard = ({
10801
11004
  className
10802
11005
  ),
10803
11006
  children: [
10804
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("h3", { className: "agg-type-body-large-strong text-agg-foreground", children: "Balances" }),
10805
- /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "relative min-h-0 flex-1 overflow-clip", children: [
10806
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("div", { className: "flex max-h-full flex-col gap-3 overflow-y-auto pr-1", children: venueBalances.map((balance, idx) => /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "flex items-center justify-between", children: [
10807
- /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "flex items-center gap-1.5", children: [
10808
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(VenueLogo, { venue: balance.venue, size: "small" }),
10809
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { className: "font-agg-sans text-agg-base leading-6 font-agg-normal text-agg-foreground capitalize", children: balance.venue })
11007
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("h3", { className: "agg-type-body-large-strong text-agg-foreground", children: "Balances" }),
11008
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "relative min-h-0 flex-1 overflow-clip", children: [
11009
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "flex max-h-full flex-col gap-3 overflow-y-auto pr-1", children: venueBalances.map((balance, idx) => /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex items-center justify-between", children: [
11010
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex items-center gap-1.5", children: [
11011
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(VenueLogo, { venue: balance.venue, size: "small" }),
11012
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { className: "font-agg-sans text-agg-base leading-6 font-agg-normal text-agg-foreground capitalize", children: balance.venue })
10810
11013
  ] }),
10811
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)("span", { className: "font-agg-sans text-agg-base leading-6 font-agg-bold text-agg-foreground", children: balance.balanceLabel })
11014
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { className: "font-agg-sans text-agg-base leading-6 font-agg-bold text-agg-foreground", children: balance.balanceLabel })
10812
11015
  ] }, `${balance.venue}-${idx}`)) }),
10813
- /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
11016
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
10814
11017
  "div",
10815
11018
  {
10816
11019
  "aria-hidden": true,
@@ -10818,9 +11021,9 @@ var BalancesCard = ({
10818
11021
  }
10819
11022
  )
10820
11023
  ] }),
10821
- /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)("div", { className: "flex items-center gap-3", children: [
10822
- onDeposit ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Button, { variant: "primary", size: "small", onClick: onDeposit, className: "flex-1", children: "Deposit" }) : null,
10823
- onWithdraw ? /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(Button, { variant: "secondary", size: "small", onClick: onWithdraw, className: "flex-1", children: "Withdraw" }) : null
11024
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex items-center gap-3", children: [
11025
+ onDeposit ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Button, { variant: "primary", size: "small", onClick: onDeposit, className: "flex-1", children: "Deposit" }) : null,
11026
+ onWithdraw ? /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(Button, { variant: "secondary", size: "small", onClick: onWithdraw, className: "flex-1", children: "Withdraw" }) : null
10824
11027
  ] })
10825
11028
  ]
10826
11029
  }
@@ -10832,12 +11035,12 @@ BalancesCard.displayName = "BalancesCard";
10832
11035
  var import_react29 = require("react");
10833
11036
 
10834
11037
  // src/pages/user-profile/components/activity-row.tsx
10835
- var import_jsx_runtime101 = require("react/jsx-runtime");
11038
+ var import_jsx_runtime102 = require("react/jsx-runtime");
10836
11039
  var ActivityRow = ({ activity, onClick }) => {
10837
11040
  const handleClick = () => {
10838
11041
  onClick == null ? void 0 : onClick(activity);
10839
11042
  };
10840
- return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(
11043
+ return /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
10841
11044
  "button",
10842
11045
  {
10843
11046
  type: "button",
@@ -10848,11 +11051,11 @@ var ActivityRow = ({ activity, onClick }) => {
10848
11051
  ),
10849
11052
  onClick: handleClick,
10850
11053
  children: [
10851
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: "w-[60px] shrink-0 font-agg-sans text-agg-base leading-agg-6 font-agg-normal text-agg-foreground", children: activity.type }),
10852
- /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-4", children: [
10853
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(VenueLogo, { venue: activity.venue, size: "small", className: "shrink-0" }),
10854
- /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-4", children: [
10855
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
11054
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "w-[60px] shrink-0 font-agg-sans text-agg-base leading-agg-6 font-agg-normal text-agg-foreground", children: activity.type }),
11055
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-4", children: [
11056
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(VenueLogo, { venue: activity.venue, size: "small", className: "shrink-0" }),
11057
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-4", children: [
11058
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
10856
11059
  "img",
10857
11060
  {
10858
11061
  src: activity.thumbnailSrc,
@@ -10860,18 +11063,18 @@ var ActivityRow = ({ activity, onClick }) => {
10860
11063
  className: "h-[60px] w-[60px] shrink-0 rounded-agg-sm object-cover"
10861
11064
  }
10862
11065
  ),
10863
- /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-2 justify-center", children: [
10864
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: "min-w-full overflow-hidden text-ellipsis whitespace-nowrap font-agg-sans text-agg-base leading-agg-6 font-agg-bold text-agg-foreground", children: activity.title }),
10865
- /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex items-center gap-3", children: [
10866
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { className: "inline-flex items-center justify-center gap-1.5 rounded-full bg-agg-secondary-hover px-4 py-1.5", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { className: "font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-foreground whitespace-nowrap", children: activity.outcomeLabel }) }),
10867
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("span", { className: "font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-black whitespace-nowrap", children: activity.sharesLabel })
11066
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-2 justify-center", children: [
11067
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "min-w-full overflow-hidden text-ellipsis whitespace-nowrap font-agg-sans text-agg-base leading-agg-6 font-agg-bold text-agg-foreground", children: activity.title }),
11068
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex items-center gap-3", children: [
11069
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { className: "inline-flex items-center justify-center gap-1.5 rounded-full bg-agg-secondary-hover px-4 py-1.5", children: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { className: "font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-foreground whitespace-nowrap", children: activity.outcomeLabel }) }),
11070
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("span", { className: "font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-black whitespace-nowrap", children: activity.sharesLabel })
10868
11071
  ] })
10869
11072
  ] })
10870
11073
  ] })
10871
11074
  ] }),
10872
- /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "flex w-[120px] shrink-0 flex-col items-end justify-center gap-1 text-agg-base leading-agg-6 whitespace-nowrap", children: [
10873
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: "font-agg-sans font-agg-bold text-black", children: activity.amountLabel }),
10874
- /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("p", { className: "font-agg-sans font-agg-normal text-agg-muted-foreground", children: activity.timeLabel })
11075
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex w-[120px] shrink-0 flex-col items-end justify-center gap-1 text-agg-base leading-agg-6 whitespace-nowrap", children: [
11076
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "font-agg-sans font-agg-bold text-black", children: activity.amountLabel }),
11077
+ /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "font-agg-sans font-agg-normal text-agg-muted-foreground", children: activity.timeLabel })
10875
11078
  ] })
10876
11079
  ]
10877
11080
  }
@@ -10880,8 +11083,8 @@ var ActivityRow = ({ activity, onClick }) => {
10880
11083
  ActivityRow.displayName = "ActivityRow";
10881
11084
 
10882
11085
  // src/pages/user-profile/components/empty-state.tsx
10883
- var import_jsx_runtime102 = require("react/jsx-runtime");
10884
- var EmptyIcon = () => /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
11086
+ var import_jsx_runtime103 = require("react/jsx-runtime");
11087
+ var EmptyIcon = () => /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
10885
11088
  "svg",
10886
11089
  {
10887
11090
  width: "40",
@@ -10892,7 +11095,7 @@ var EmptyIcon = () => /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
10892
11095
  className: "text-agg-muted-foreground",
10893
11096
  "aria-hidden": true,
10894
11097
  children: [
10895
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
11098
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
10896
11099
  "path",
10897
11100
  {
10898
11101
  d: "M33.3333 5H6.66667C5.74619 5 5 5.74619 5 6.66667V33.3333C5 34.2538 5.74619 35 6.66667 35H33.3333C34.2538 35 35 34.2538 35 33.3333V6.66667C35 5.74619 34.2538 5 33.3333 5Z",
@@ -10902,7 +11105,7 @@ var EmptyIcon = () => /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
10902
11105
  strokeLinejoin: "round"
10903
11106
  }
10904
11107
  ),
10905
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
11108
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
10906
11109
  "path",
10907
11110
  {
10908
11111
  d: "M14.1667 16.6667C15.5474 16.6667 16.6667 15.5474 16.6667 14.1667C16.6667 12.786 15.5474 11.6667 14.1667 11.6667C12.786 11.6667 11.6667 12.786 11.6667 14.1667C11.6667 15.5474 12.786 16.6667 14.1667 16.6667Z",
@@ -10912,7 +11115,7 @@ var EmptyIcon = () => /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
10912
11115
  strokeLinejoin: "round"
10913
11116
  }
10914
11117
  ),
10915
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
11118
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
10916
11119
  "path",
10917
11120
  {
10918
11121
  d: "M35 25L26.6667 16.6667L6.66667 36.6667",
@@ -10926,17 +11129,17 @@ var EmptyIcon = () => /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)(
10926
11129
  }
10927
11130
  );
10928
11131
  var EmptyState = ({ title, description, className }) => {
10929
- return /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
11132
+ return /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
10930
11133
  "div",
10931
11134
  {
10932
11135
  className: cn("flex flex-col items-center justify-center gap-8 p-10", className),
10933
11136
  role: "status",
10934
11137
  "aria-live": "polite",
10935
- children: /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex flex-col items-center gap-5", children: [
10936
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(EmptyIcon, {}),
10937
- /* @__PURE__ */ (0, import_jsx_runtime102.jsxs)("div", { className: "flex flex-col items-center gap-1 text-center text-agg-foreground", children: [
10938
- /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "font-agg-sans text-agg-base leading-agg-6 font-agg-bold", children: title }),
10939
- description ? /* @__PURE__ */ (0, import_jsx_runtime102.jsx)("p", { className: "font-agg-sans text-agg-sm leading-agg-5 font-agg-normal", children: description }) : null
11138
+ children: /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex flex-col items-center gap-5", children: [
11139
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(EmptyIcon, {}),
11140
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex flex-col items-center gap-1 text-center text-agg-foreground", children: [
11141
+ /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: "font-agg-sans text-agg-base leading-agg-6 font-agg-bold", children: title }),
11142
+ description ? /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: "font-agg-sans text-agg-sm leading-agg-5 font-agg-normal", children: description }) : null
10940
11143
  ] })
10941
11144
  ] })
10942
11145
  }
@@ -10945,12 +11148,12 @@ var EmptyState = ({ title, description, className }) => {
10945
11148
  EmptyState.displayName = "EmptyState";
10946
11149
 
10947
11150
  // src/pages/user-profile/components/position-row.tsx
10948
- var import_jsx_runtime103 = require("react/jsx-runtime");
11151
+ var import_jsx_runtime104 = require("react/jsx-runtime");
10949
11152
  var PositionRow = ({ position, onClick }) => {
10950
11153
  const handleClick = () => {
10951
11154
  onClick == null ? void 0 : onClick(position);
10952
11155
  };
10953
- return /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)(
11156
+ return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
10954
11157
  "button",
10955
11158
  {
10956
11159
  type: "button",
@@ -10961,10 +11164,10 @@ var PositionRow = ({ position, onClick }) => {
10961
11164
  ),
10962
11165
  onClick: handleClick,
10963
11166
  children: [
10964
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-4", children: [
10965
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(VenueLogo, { venue: position.venue, size: "small", className: "shrink-0" }),
10966
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-4", children: [
10967
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
11167
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-4", children: [
11168
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(VenueLogo, { venue: position.venue, size: "small", className: "shrink-0" }),
11169
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex min-w-0 flex-1 items-center gap-4", children: [
11170
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
10968
11171
  "img",
10969
11172
  {
10970
11173
  src: position.thumbnailSrc,
@@ -10972,21 +11175,21 @@ var PositionRow = ({ position, onClick }) => {
10972
11175
  className: "h-[60px] w-[60px] shrink-0 rounded-agg-sm object-cover"
10973
11176
  }
10974
11177
  ),
10975
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-2 justify-center", children: [
10976
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: "min-w-full overflow-hidden text-ellipsis whitespace-nowrap font-agg-sans text-agg-base leading-agg-6 font-agg-bold text-agg-foreground", children: position.title }),
10977
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex items-center gap-3", children: [
10978
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("span", { className: "inline-flex items-center justify-center gap-1.5 rounded-full bg-agg-secondary-hover px-4 py-1.5", children: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("span", { className: "font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-foreground whitespace-nowrap", children: position.outcomeLabel }) }),
10979
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("span", { className: "font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-black whitespace-nowrap", children: position.sharesLabel })
11178
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-2 justify-center", children: [
11179
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "min-w-full overflow-hidden text-ellipsis whitespace-nowrap font-agg-sans text-agg-base leading-agg-6 font-agg-bold text-agg-foreground", children: position.title }),
11180
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex items-center gap-3", children: [
11181
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { className: "inline-flex items-center justify-center gap-1.5 rounded-full bg-agg-secondary-hover px-4 py-1.5", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { className: "font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-foreground whitespace-nowrap", children: position.outcomeLabel }) }),
11182
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("span", { className: "font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-black whitespace-nowrap", children: position.sharesLabel })
10980
11183
  ] })
10981
11184
  ] })
10982
11185
  ] })
10983
11186
  ] }),
10984
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: "w-[120px] shrink-0 agg-type-title text-agg-foreground", children: position.averageLabel }),
10985
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: "w-[120px] shrink-0 agg-type-title text-agg-foreground", children: position.currentLabel }),
10986
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex items-center gap-6 shrink-0", children: [
10987
- /* @__PURE__ */ (0, import_jsx_runtime103.jsxs)("div", { className: "flex w-[140px] flex-col items-end justify-center gap-1 text-agg-base leading-agg-6 whitespace-nowrap", children: [
10988
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)("p", { className: "font-agg-sans font-agg-bold text-black", children: position.valueLabel }),
10989
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
11187
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "w-[120px] shrink-0 agg-type-title text-agg-foreground", children: position.averageLabel }),
11188
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "w-[120px] shrink-0 agg-type-title text-agg-foreground", children: position.currentLabel }),
11189
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex items-center gap-6 shrink-0", children: [
11190
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex w-[140px] flex-col items-end justify-center gap-1 text-agg-base leading-agg-6 whitespace-nowrap", children: [
11191
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "font-agg-sans font-agg-bold text-black", children: position.valueLabel }),
11192
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
10990
11193
  "p",
10991
11194
  {
10992
11195
  className: cn(
@@ -10997,7 +11200,7 @@ var PositionRow = ({ position, onClick }) => {
10997
11200
  }
10998
11201
  )
10999
11202
  ] }),
11000
- /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(Icon, { name: "chevron-right", size: "small", className: "shrink-0 text-agg-muted-foreground" })
11203
+ /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Icon, { name: "chevron-right", size: "small", className: "shrink-0 text-agg-muted-foreground" })
11001
11204
  ] })
11002
11205
  ]
11003
11206
  }
@@ -11006,7 +11209,7 @@ var PositionRow = ({ position, onClick }) => {
11006
11209
  PositionRow.displayName = "PositionRow";
11007
11210
 
11008
11211
  // src/pages/user-profile/components/positions-activity.tsx
11009
- var import_jsx_runtime104 = require("react/jsx-runtime");
11212
+ var import_jsx_runtime105 = require("react/jsx-runtime");
11010
11213
  var tabItems = [
11011
11214
  { value: USER_PROFILE_TAB_POSITIONS, label: "Positions" },
11012
11215
  { value: USER_PROFILE_TAB_ACTIVITY, label: "Activity" }
@@ -11039,7 +11242,7 @@ var PositionsActivity = ({
11039
11242
  const handleSearchChange = (event) => {
11040
11243
  setSearchValue(event.target.value);
11041
11244
  };
11042
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)(
11245
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
11043
11246
  "div",
11044
11247
  {
11045
11248
  className: cn(
@@ -11047,7 +11250,7 @@ var PositionsActivity = ({
11047
11250
  className
11048
11251
  ),
11049
11252
  children: [
11050
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
11253
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
11051
11254
  Tabs,
11052
11255
  {
11053
11256
  items: tabItems,
@@ -11057,13 +11260,13 @@ var PositionsActivity = ({
11057
11260
  className: "w-full [&>div]:w-full"
11058
11261
  }
11059
11262
  ),
11060
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex w-full flex-col gap-6 p-6", children: [
11061
- /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex items-start gap-5", children: [
11062
- isPositionsTab ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "flex h-10 w-[270px] shrink-0 items-stretch overflow-clip rounded-agg-sm border border-agg-separator", children: USER_PROFILE_POSITION_FILTERS.map((filter, idx) => {
11263
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex w-full flex-col gap-6 p-6", children: [
11264
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex items-start gap-5", children: [
11265
+ isPositionsTab ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: "flex h-10 w-[270px] shrink-0 items-stretch overflow-clip rounded-agg-sm border border-agg-separator", children: USER_PROFILE_POSITION_FILTERS.map((filter, idx) => {
11063
11266
  const isActive = filter.value === positionFilter;
11064
- return /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex flex-1 items-stretch", children: [
11065
- idx > 0 ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "w-px bg-agg-separator", "aria-hidden": true }) : null,
11066
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
11267
+ return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex flex-1 items-stretch", children: [
11268
+ idx > 0 ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: "w-px bg-agg-separator", "aria-hidden": true }) : null,
11269
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
11067
11270
  "button",
11068
11271
  {
11069
11272
  type: "button",
@@ -11077,9 +11280,9 @@ var PositionsActivity = ({
11077
11280
  )
11078
11281
  ] }, filter.value);
11079
11282
  }) }) : null,
11080
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("label", { className: "flex min-w-0 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex h-10 w-full items-center gap-3 rounded-agg-sm border border-agg-separator bg-agg-secondary px-3 py-2.5 focus-within:border-2 focus-within:border-agg-primary", children: [
11081
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(Icon, { name: "search", size: "small", className: "shrink-0 text-agg-muted-foreground" }),
11082
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
11283
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("label", { className: "flex min-w-0 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex h-10 w-full items-center gap-3 rounded-agg-sm border border-agg-separator bg-agg-secondary px-3 py-2.5 focus-within:border-2 focus-within:border-agg-primary", children: [
11284
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(Icon, { name: "search", size: "small", className: "shrink-0 text-agg-muted-foreground" }),
11285
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
11083
11286
  "input",
11084
11287
  {
11085
11288
  value: searchValue,
@@ -11095,24 +11298,24 @@ var PositionsActivity = ({
11095
11298
  )
11096
11299
  ] }) })
11097
11300
  ] }),
11098
- isPositionsTab && filteredPositions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex items-center gap-6 px-0", children: [
11099
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "min-w-0 flex-1 font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-muted-foreground", children: "Market" }),
11100
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "w-[120px] shrink-0 font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-muted-foreground", children: "Average" }),
11101
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "w-[120px] shrink-0 font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-muted-foreground", children: "Current" }),
11102
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "w-[184px] shrink-0 font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-muted-foreground text-right", children: "Value" })
11301
+ isPositionsTab && filteredPositions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex items-center gap-6 px-0", children: [
11302
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "min-w-0 flex-1 font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-muted-foreground", children: "Market" }),
11303
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "w-[120px] shrink-0 font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-muted-foreground", children: "Average" }),
11304
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "w-[120px] shrink-0 font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-muted-foreground", children: "Current" }),
11305
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "w-[184px] shrink-0 font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-muted-foreground text-right", children: "Value" })
11103
11306
  ] }) : null,
11104
- !isPositionsTab && filteredActivities.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime104.jsxs)("div", { className: "flex items-center gap-6 px-0", children: [
11105
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "w-[60px] shrink-0 font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-muted-foreground", children: "Type" }),
11106
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "min-w-0 flex-1 font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-muted-foreground", children: "Market" }),
11107
- /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("p", { className: "w-[120px] shrink-0 font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-muted-foreground text-right", children: "Amount" })
11307
+ !isPositionsTab && filteredActivities.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("div", { className: "flex items-center gap-6 px-0", children: [
11308
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "w-[60px] shrink-0 font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-muted-foreground", children: "Type" }),
11309
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "min-w-0 flex-1 font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-muted-foreground", children: "Market" }),
11310
+ /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("p", { className: "w-[120px] shrink-0 font-agg-sans text-agg-sm leading-agg-5 font-agg-normal text-agg-muted-foreground text-right", children: "Amount" })
11108
11311
  ] }) : null,
11109
- isPositionsTab ? filteredPositions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "flex flex-col gap-4", children: filteredPositions.map((position) => /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(PositionRow, { position, onClick: onPositionClick }, position.id)) }) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
11312
+ isPositionsTab ? filteredPositions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: "flex flex-col gap-4", children: filteredPositions.map((position) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(PositionRow, { position, onClick: onPositionClick }, position.id)) }) : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
11110
11313
  EmptyState,
11111
11314
  {
11112
11315
  title: "No positions yet",
11113
11316
  description: "Your open trades will appear here once you place an order."
11114
11317
  }
11115
- ) : filteredActivities.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime104.jsx)("div", { className: "flex flex-col gap-4", children: filteredActivities.map((activity) => /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(ActivityRow, { activity, onClick: onActivityClick }, activity.id)) }) : /* @__PURE__ */ (0, import_jsx_runtime104.jsx)(
11318
+ ) : filteredActivities.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("div", { className: "flex flex-col gap-4", children: filteredActivities.map((activity) => /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(ActivityRow, { activity, onClick: onActivityClick }, activity.id)) }) : /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
11116
11319
  EmptyState,
11117
11320
  {
11118
11321
  title: "No activity yet",
@@ -11127,9 +11330,9 @@ var PositionsActivity = ({
11127
11330
  PositionsActivity.displayName = "PositionsActivity";
11128
11331
 
11129
11332
  // src/pages/user-profile/components/default-avatar.tsx
11130
- var import_jsx_runtime105 = require("react/jsx-runtime");
11333
+ var import_jsx_runtime106 = require("react/jsx-runtime");
11131
11334
  var DefaultAvatar = ({ className }) => {
11132
- return /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)(
11335
+ return /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
11133
11336
  "svg",
11134
11337
  {
11135
11338
  xmlns: "http://www.w3.org/2000/svg",
@@ -11140,15 +11343,15 @@ var DefaultAvatar = ({ className }) => {
11140
11343
  className: cn("shrink-0", className),
11141
11344
  "aria-hidden": true,
11142
11345
  children: [
11143
- /* @__PURE__ */ (0, import_jsx_runtime105.jsxs)("g", { clipPath: "url(#clip0_default_avatar)", children: [
11144
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
11346
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("g", { clipPath: "url(#clip0_default_avatar)", children: [
11347
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
11145
11348
  "path",
11146
11349
  {
11147
11350
  d: "M60 120C93.1371 120 120 93.1371 120 60C120 26.8629 93.1371 0 60 0C26.8629 0 0 26.8629 0 60C0 93.1371 26.8629 120 60 120Z",
11148
11351
  fill: "white"
11149
11352
  }
11150
11353
  ),
11151
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
11354
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
11152
11355
  "path",
11153
11356
  {
11154
11357
  d: "M60 120C93.1371 120 120 93.1371 120 60C120 26.8629 93.1371 0 60 0C26.8629 0 0 26.8629 0 60C0 93.1371 26.8629 120 60 120Z",
@@ -11156,7 +11359,7 @@ var DefaultAvatar = ({ className }) => {
11156
11359
  fillOpacity: "0.1"
11157
11360
  }
11158
11361
  ),
11159
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)(
11362
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
11160
11363
  "path",
11161
11364
  {
11162
11365
  d: "M73.7338 64.1259C80.4187 59.6756 84.8276 52.0804 84.8276 43.4487C84.8276 29.7376 73.7111 18.6211 60 18.6211C46.2890 18.6211 35.1724 29.7376 35.1724 43.4487C35.1724 52.0804 39.5814 59.6756 46.2662 64.1259C46.2662 64.1259 46.2683 64.1280 46.2704 64.1280C46.2683 64.1280 46.2683 64.1259 46.2683 64.1259C30.2669 68.9487 17.8076 81.9356 13.7959 98.2742L13.7980 98.2763C14.4518 99.0645 15.1304 99.8342 15.8235 100.589C15.9911 100.774 16.1669 100.949 16.3387 101.129C16.8724 101.696 17.4124 102.255 17.9669 102.801C18.1966 103.027 18.4304 103.244 18.6642 103.465C19.1773 103.954 19.6966 104.436 20.2262 104.905C20.4890 105.137 20.7559 105.367 21.0207 105.594C21.5400 106.039 22.0656 106.476 22.6014 106.902C22.8828 107.127 23.1662 107.349 23.4497 107.570C23.9918 107.988 24.5421 108.394 25.0987 108.791C25.3862 108.996 25.6697 109.205 25.9614 109.405C26.5490 109.811 27.1469 110.200 27.7490 110.585C28.0200 110.756 28.2849 110.934 28.5580 111.104C29.2531 111.532 29.9607 111.942 30.6745 112.343C30.8628 112.449 31.0469 112.562 31.2373 112.666C32.1600 113.171 33.0973 113.655 34.0490 114.112C34.0718 114.122 34.0966 114.133 34.1193 114.143C35.0276 114.578 35.9504 114.989 36.8835 115.378C37.1731 115.500 37.4690 115.608 37.7607 115.724C38.4352 115.993 39.1097 116.258 39.7966 116.502C40.1607 116.632 40.5290 116.750 40.8952 116.874C41.5200 117.085 42.1490 117.290 42.7821 117.478C43.1835 117.598 43.5869 117.710 43.9924 117.822C44.6049 117.991 45.2214 118.153 45.8442 118.304C46.2642 118.405 46.6862 118.502 47.1104 118.596C47.7331 118.732 48.3580 118.856 48.9869 118.972C49.4131 119.051 49.8373 119.131 50.2676 119.200C50.9173 119.305 51.5711 119.394 52.2269 119.479C52.6407 119.533 53.0524 119.593 53.4683 119.636C54.1924 119.715 54.9228 119.771 55.6531 119.822C56.0069 119.847 56.3566 119.885 56.7104 119.903C57.8007 119.965 58.8952 120 60 120C61.1049 120 62.1993 119.965 63.2897 119.907C63.6435 119.889 63.9952 119.851 64.3469 119.827C65.0793 119.775 65.8097 119.719 66.5318 119.640C66.9476 119.595 67.3593 119.537 67.7731 119.483C68.4290 119.398 69.0828 119.309 69.7324 119.204C70.1607 119.134 70.5869 119.055 71.0131 118.976C71.6421 118.860 72.2690 118.736 72.8897 118.600C73.3138 118.507 73.7359 118.409 74.1559 118.308C74.7766 118.157 75.3931 117.996 76.0076 117.826C76.4111 117.714 76.8166 117.602 77.2180 117.482C77.8531 117.292 78.4800 117.087 79.1049 116.878C79.4711 116.754 79.8414 116.636 80.2035 116.506C80.8883 116.260 81.5649 115.997 82.2393 115.728C82.5311 115.612 82.8269 115.502 83.1166 115.382C84.0456 114.994 84.9642 114.586 85.8683 114.151C85.8952 114.139 85.9242 114.127 85.9511 114.114C86.9028 113.657 87.8400 113.173 88.7628 112.668C88.9531 112.565 89.1373 112.451 89.3256 112.345C90.0393 111.944 90.7469 111.534 91.4421 111.106C91.7152 110.938 91.9821 110.760 92.2511 110.587C92.8531 110.202 93.4511 109.811 94.0387 109.407C94.3283 109.207 94.6138 109.000 94.9014 108.793C95.4580 108.394 96.0083 107.988 96.5504 107.572C96.8359 107.353 97.1173 107.129 97.3987 106.904C97.9324 106.478 98.4600 106.041 98.9793 105.596C99.2462 105.369 99.5131 105.139 99.7738 104.907C100.303 104.438 100.823 103.956 101.336 103.467C101.568 103.246 101.803 103.027 102.033 102.803C102.588 102.257 103.130 101.698 103.661 101.131C103.831 100.949 104.007 100.774 104.177 100.591C104.870 99.8363 105.548 99.0666 106.202 98.2783L106.204 98.2763C102.195 81.9356 89.7352 68.9487 73.7338 64.1259Z",
@@ -11165,7 +11368,7 @@ var DefaultAvatar = ({ className }) => {
11165
11368
  }
11166
11369
  )
11167
11370
  ] }),
11168
- /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("clipPath", { id: "clip0_default_avatar", children: /* @__PURE__ */ (0, import_jsx_runtime105.jsx)("rect", { width: "120", height: "120", fill: "white" }) }) })
11371
+ /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("clipPath", { id: "clip0_default_avatar", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("rect", { width: "120", height: "120", fill: "white" }) }) })
11169
11372
  ]
11170
11373
  }
11171
11374
  );
@@ -11173,7 +11376,7 @@ var DefaultAvatar = ({ className }) => {
11173
11376
  DefaultAvatar.displayName = "DefaultAvatar";
11174
11377
 
11175
11378
  // src/pages/user-profile/components/user-info-card.tsx
11176
- var import_jsx_runtime106 = require("react/jsx-runtime");
11379
+ var import_jsx_runtime107 = require("react/jsx-runtime");
11177
11380
  var UserInfoCard = ({
11178
11381
  user,
11179
11382
  onEditProfile,
@@ -11183,54 +11386,54 @@ var UserInfoCard = ({
11183
11386
  const evmExchanges = ((_a = user.connectedExchanges) != null ? _a : []).filter((ex) => ex.venue !== "kalshi");
11184
11387
  const totalExchangeCount = (_c = (_b = user.connectedExchanges) == null ? void 0 : _b.length) != null ? _c : 0;
11185
11388
  const hasEvmExchanges = evmExchanges.length > 0;
11186
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
11389
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
11187
11390
  "div",
11188
11391
  {
11189
11392
  className: cn(
11190
11393
  "flex flex-col items-start rounded-agg-md border border-agg-separator bg-agg-secondary p-5",
11191
11394
  className
11192
11395
  ),
11193
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex w-full items-start gap-5", children: [
11194
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "shrink-0", children: user.avatarUrl ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
11396
+ children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex w-full items-start gap-5", children: [
11397
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "shrink-0", children: user.avatarUrl ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
11195
11398
  "img",
11196
11399
  {
11197
11400
  src: user.avatarUrl,
11198
11401
  alt: user.username,
11199
11402
  className: "h-[120px] w-[120px] rounded-full object-cover"
11200
11403
  }
11201
- ) : /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(DefaultAvatar, { className: "h-[120px] w-[120px]" }) }),
11202
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-4", children: [
11203
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
11204
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex items-center gap-2", children: [
11205
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("h2", { className: "agg-type-heading text-agg-foreground", children: user.username }),
11206
- user.socialLinks && user.socialLinks.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "flex items-center gap-2", children: user.socialLinks.map((social) => {
11404
+ ) : /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(DefaultAvatar, { className: "h-[120px] w-[120px]" }) }),
11405
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex min-w-0 flex-1 flex-col gap-4", children: [
11406
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex items-center justify-between gap-4", children: [
11407
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex items-center gap-2", children: [
11408
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("h2", { className: "agg-type-heading text-agg-foreground", children: user.username }),
11409
+ user.socialLinks && user.socialLinks.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "flex items-center gap-2", children: user.socialLinks.map((social) => {
11207
11410
  const iconName = social.platform === "twitter" ? "twitter" : social.platform === "discord" ? "discord" : "telegram";
11208
- return /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
11411
+ return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
11209
11412
  "span",
11210
11413
  {
11211
11414
  className: "flex size-8 shrink-0 items-center justify-center rounded-full border border-agg-separator bg-agg-secondary",
11212
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Icon, { name: iconName, size: "small", className: "text-agg-foreground" })
11415
+ children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Icon, { name: iconName, size: "small", className: "text-agg-foreground" })
11213
11416
  },
11214
11417
  social.platform
11215
11418
  );
11216
11419
  }) }) : null
11217
11420
  ] }),
11218
- onEditProfile ? /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)(
11421
+ onEditProfile ? /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
11219
11422
  "button",
11220
11423
  {
11221
11424
  type: "button",
11222
11425
  onClick: onEditProfile,
11223
11426
  className: "flex shrink-0 cursor-pointer items-center gap-1.5 bg-transparent text-agg-primary hover:opacity-80",
11224
11427
  children: [
11225
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Icon, { name: "pencil", size: "small", className: "text-agg-primary" }),
11226
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: "text-agg-base font-agg-bold leading-6", children: "Edit" })
11428
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Icon, { name: "pencil", size: "small", className: "text-agg-primary" }),
11429
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("span", { className: "text-agg-base font-agg-bold leading-6", children: "Edit" })
11227
11430
  ]
11228
11431
  }
11229
11432
  ) : null
11230
11433
  ] }),
11231
- totalExchangeCount > 0 || user.socialHandle ? /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex flex-col gap-3", children: [
11232
- hasEvmExchanges ? /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex items-center gap-3", children: [
11233
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "flex items-center", children: evmExchanges.map((exchange, idx) => /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(
11434
+ totalExchangeCount > 0 || user.socialHandle ? /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex flex-col gap-3", children: [
11435
+ hasEvmExchanges ? /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex items-center gap-3", children: [
11436
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "flex items-center", children: evmExchanges.map((exchange, idx) => /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
11234
11437
  "div",
11235
11438
  {
11236
11439
  className: cn(
@@ -11238,23 +11441,23 @@ var UserInfoCard = ({
11238
11441
  idx > 0 && "-ml-2"
11239
11442
  ),
11240
11443
  style: { zIndex: evmExchanges.length - idx },
11241
- children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(VenueLogo, { venue: exchange.venue, size: "small", className: "h-5 w-5" })
11444
+ children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(VenueLogo, { venue: exchange.venue, size: "small", className: "h-5 w-5" })
11242
11445
  },
11243
11446
  `${exchange.venue}-${idx}`
11244
11447
  )) }),
11245
- user.displayAddress ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground", children: user.displayAddress }) : null,
11246
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex items-center gap-1", children: [
11247
- /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("span", { className: "text-agg-sm font-agg-normal leading-5 text-agg-muted-foreground", children: [
11448
+ user.displayAddress ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground", children: user.displayAddress }) : null,
11449
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex items-center gap-1", children: [
11450
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("span", { className: "text-agg-sm font-agg-normal leading-5 text-agg-muted-foreground", children: [
11248
11451
  totalExchangeCount,
11249
11452
  " exchange",
11250
11453
  totalExchangeCount !== 1 ? "s" : ""
11251
11454
  ] }),
11252
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(Icon, { name: "info", size: "small", className: "text-agg-muted-foreground" })
11455
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(Icon, { name: "info", size: "small", className: "text-agg-muted-foreground" })
11253
11456
  ] })
11254
11457
  ] }) : null,
11255
- user.socialHandle ? /* @__PURE__ */ (0, import_jsx_runtime106.jsxs)("div", { className: "flex items-center gap-3", children: [
11256
- user.socialHandleVenue ? /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("div", { className: "flex h-5 w-5 shrink-0 items-center justify-center overflow-hidden rounded-[4px]", children: /* @__PURE__ */ (0, import_jsx_runtime106.jsx)(VenueLogo, { venue: user.socialHandleVenue, size: "small", className: "h-5 w-5" }) }) : null,
11257
- /* @__PURE__ */ (0, import_jsx_runtime106.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground", children: user.socialHandle })
11458
+ user.socialHandle ? /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: "flex items-center gap-3", children: [
11459
+ user.socialHandleVenue ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "flex h-5 w-5 shrink-0 items-center justify-center overflow-hidden rounded-[4px]", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(VenueLogo, { venue: user.socialHandleVenue, size: "small", className: "h-5 w-5" }) }) : null,
11460
+ /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("span", { className: "text-agg-base font-agg-normal leading-6 text-agg-foreground", children: user.socialHandle })
11258
11461
  ] }) : null
11259
11462
  ] }) : null
11260
11463
  ] })
@@ -11265,7 +11468,7 @@ var UserInfoCard = ({
11265
11468
  UserInfoCard.displayName = "UserInfoCard";
11266
11469
 
11267
11470
  // src/pages/user-profile/index.tsx
11268
- var import_jsx_runtime107 = require("react/jsx-runtime");
11471
+ var import_jsx_runtime108 = require("react/jsx-runtime");
11269
11472
  var UserProfilePage = ({
11270
11473
  user,
11271
11474
  venueBalances,
@@ -11282,7 +11485,7 @@ var UserProfilePage = ({
11282
11485
  onActivityClick,
11283
11486
  classNames
11284
11487
  }) => {
11285
- return /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "box-border w-full overflow-x-hidden p-10", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)(
11488
+ return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("div", { className: "box-border w-full overflow-x-hidden p-10", children: /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)(
11286
11489
  "section",
11287
11490
  {
11288
11491
  className: cn(
@@ -11290,9 +11493,9 @@ var UserProfilePage = ({
11290
11493
  classNames == null ? void 0 : classNames.root
11291
11494
  ),
11292
11495
  children: [
11293
- /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: cn("flex items-stretch gap-6", classNames == null ? void 0 : classNames.topRow), children: [
11294
- /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: cn("flex min-w-0 flex-1 flex-col gap-6", classNames == null ? void 0 : classNames.leftColumn), children: [
11295
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
11496
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: cn("flex items-stretch gap-6", classNames == null ? void 0 : classNames.topRow), children: [
11497
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: cn("flex min-w-0 flex-1 flex-col gap-6", classNames == null ? void 0 : classNames.leftColumn), children: [
11498
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
11296
11499
  UserInfoCard,
11297
11500
  {
11298
11501
  user,
@@ -11300,7 +11503,7 @@ var UserProfilePage = ({
11300
11503
  className: classNames == null ? void 0 : classNames.userInfoCard
11301
11504
  }
11302
11505
  ),
11303
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
11506
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
11304
11507
  BalanceDisplay,
11305
11508
  {
11306
11509
  balance,
@@ -11310,7 +11513,7 @@ var UserProfilePage = ({
11310
11513
  }
11311
11514
  )
11312
11515
  ] }),
11313
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)("div", { className: "relative w-[465px] shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
11516
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)("div", { className: "relative w-[465px] shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
11314
11517
  BalancesCard,
11315
11518
  {
11316
11519
  venueBalances,
@@ -11320,7 +11523,7 @@ var UserProfilePage = ({
11320
11523
  }
11321
11524
  ) })
11322
11525
  ] }),
11323
- /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(
11526
+ /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
11324
11527
  PositionsActivity,
11325
11528
  {
11326
11529
  activePositions,
@@ -11468,6 +11671,7 @@ var placeOrderViewModelSchema = import_zod3.z.object({
11468
11671
  Settlement,
11469
11672
  ShieldTrustIcon,
11470
11673
  Skeleton,
11674
+ StateMessage,
11471
11675
  StayInControlIcon,
11472
11676
  SwitchButton,
11473
11677
  Tabs,