@flamingo-stack/openframe-frontend-core 0.0.353-snapshot.20260701190625 → 0.0.353

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 (89) hide show
  1. package/dist/{chunk-OQ75ZMB7.cjs → chunk-3B663UT5.cjs} +408 -460
  2. package/dist/chunk-3B663UT5.cjs.map +1 -0
  3. package/dist/{chunk-5RYGC2HA.cjs → chunk-5AR4XSIK.cjs} +26 -26
  4. package/dist/{chunk-5RYGC2HA.cjs.map → chunk-5AR4XSIK.cjs.map} +1 -1
  5. package/dist/{chunk-AN7YCTF4.js → chunk-5Y6G2GKO.js} +2 -2
  6. package/dist/{chunk-4XFFHXCQ.js → chunk-776NIQQ6.js} +4 -4
  7. package/dist/{chunk-3MUALDLX.js → chunk-BAPR6IQV.js} +4 -4
  8. package/dist/{chunk-BWT6O7K5.js → chunk-CDPGUKPU.js} +2 -2
  9. package/dist/{chunk-3XNJWYLX.cjs → chunk-D4TPL6T4.cjs} +15 -15
  10. package/dist/{chunk-3XNJWYLX.cjs.map → chunk-D4TPL6T4.cjs.map} +1 -1
  11. package/dist/{chunk-SH5ZPAVK.js → chunk-EQQZLZZH.js} +2 -2
  12. package/dist/{chunk-XXVNJDZV.cjs → chunk-HAFY32LW.cjs} +5 -5
  13. package/dist/{chunk-XXVNJDZV.cjs.map → chunk-HAFY32LW.cjs.map} +1 -1
  14. package/dist/{chunk-HD4S7ITV.cjs → chunk-HWFFUT6G.cjs} +37 -37
  15. package/dist/{chunk-HD4S7ITV.cjs.map → chunk-HWFFUT6G.cjs.map} +1 -1
  16. package/dist/{chunk-MHWK6CDS.cjs → chunk-IVL6FGM6.cjs} +12 -12
  17. package/dist/{chunk-MHWK6CDS.cjs.map → chunk-IVL6FGM6.cjs.map} +1 -1
  18. package/dist/{chunk-SJBFKX6U.js → chunk-OKGXLXDW.js} +16 -68
  19. package/dist/{chunk-SJBFKX6U.js.map → chunk-OKGXLXDW.js.map} +1 -1
  20. package/dist/{chunk-LNJ4QIAN.cjs → chunk-P56AC6I5.cjs} +25 -25
  21. package/dist/{chunk-LNJ4QIAN.cjs.map → chunk-P56AC6I5.cjs.map} +1 -1
  22. package/dist/{chunk-SJ3O2463.js → chunk-POLYFLWF.js} +4 -4
  23. package/dist/{chunk-NJRZK3KL.cjs → chunk-TWVF3QU5.cjs} +31 -31
  24. package/dist/{chunk-NJRZK3KL.cjs.map → chunk-TWVF3QU5.cjs.map} +1 -1
  25. package/dist/{chunk-O6HI537F.cjs → chunk-W3CCNLBL.cjs} +9 -9
  26. package/dist/{chunk-O6HI537F.cjs.map → chunk-W3CCNLBL.cjs.map} +1 -1
  27. package/dist/{chunk-HEXR3TGX.js → chunk-XJQNOT4Z.js} +2 -2
  28. package/dist/{chunk-J5RQ4T5L.cjs → chunk-XKRR5GIV.cjs} +56 -56
  29. package/dist/{chunk-J5RQ4T5L.cjs.map → chunk-XKRR5GIV.cjs.map} +1 -1
  30. package/dist/{chunk-LPJKRZRD.js → chunk-YGCWTL7E.js} +2 -2
  31. package/dist/{chunk-5CTJCJV3.js → chunk-YI5435S6.js} +2 -2
  32. package/dist/{chunk-2RX6DW5A.cjs → chunk-YL2YXSRI.cjs} +62 -62
  33. package/dist/{chunk-2RX6DW5A.cjs.map → chunk-YL2YXSRI.cjs.map} +1 -1
  34. package/dist/{chunk-RERV3ALE.cjs → chunk-Z22AMCZL.cjs} +7 -7
  35. package/dist/{chunk-RERV3ALE.cjs.map → chunk-Z22AMCZL.cjs.map} +1 -1
  36. package/dist/{chunk-DFZ74LGW.js → chunk-ZAKU2MOI.js} +2 -2
  37. package/dist/{chunk-NJ4R2IJY.js → chunk-ZYB2QBNU.js} +4 -4
  38. package/dist/components/case-studies/index.cjs +8 -8
  39. package/dist/components/case-studies/index.js +2 -2
  40. package/dist/components/chat/index.cjs +2 -2
  41. package/dist/components/chat/index.js +1 -1
  42. package/dist/components/contact/index.cjs +3 -3
  43. package/dist/components/contact/index.js +2 -2
  44. package/dist/components/docs/index.cjs +5 -5
  45. package/dist/components/docs/index.js +4 -4
  46. package/dist/components/embeds/index.cjs +3 -3
  47. package/dist/components/embeds/index.js +2 -2
  48. package/dist/components/faq/index.cjs +3 -3
  49. package/dist/components/faq/index.js +2 -2
  50. package/dist/components/features/index.cjs +2 -2
  51. package/dist/components/features/index.js +1 -1
  52. package/dist/components/features/time-tracker/index.d.ts +1 -1
  53. package/dist/components/features/time-tracker/index.d.ts.map +1 -1
  54. package/dist/components/features/time-tracker/time-tracker-panel.d.ts +1 -1
  55. package/dist/components/features/time-tracker/time-tracker-panel.d.ts.map +1 -1
  56. package/dist/components/features/time-tracker/types.d.ts +0 -19
  57. package/dist/components/features/time-tracker/types.d.ts.map +1 -1
  58. package/dist/components/help-center-pages/index.cjs +20 -20
  59. package/dist/components/help-center-pages/index.js +11 -11
  60. package/dist/components/index.cjs +120 -120
  61. package/dist/components/index.js +9 -9
  62. package/dist/components/navigation/index.cjs +2 -2
  63. package/dist/components/navigation/index.js +1 -1
  64. package/dist/components/onboarding-guides/index.cjs +5 -5
  65. package/dist/components/onboarding-guides/index.js +4 -4
  66. package/dist/components/related-content/index.cjs +3 -3
  67. package/dist/components/related-content/index.js +2 -2
  68. package/dist/components/tickets/index.cjs +5 -5
  69. package/dist/components/tickets/index.js +4 -4
  70. package/dist/components/ui/index.cjs +2 -2
  71. package/dist/components/ui/index.js +1 -1
  72. package/dist/index.cjs +2 -2
  73. package/dist/index.js +1 -1
  74. package/package.json +1 -1
  75. package/src/components/features/time-tracker/index.ts +0 -1
  76. package/src/components/features/time-tracker/time-tracker-panel.tsx +13 -75
  77. package/src/components/features/time-tracker/types.ts +0 -21
  78. package/dist/chunk-OQ75ZMB7.cjs.map +0 -1
  79. /package/dist/{chunk-AN7YCTF4.js.map → chunk-5Y6G2GKO.js.map} +0 -0
  80. /package/dist/{chunk-4XFFHXCQ.js.map → chunk-776NIQQ6.js.map} +0 -0
  81. /package/dist/{chunk-3MUALDLX.js.map → chunk-BAPR6IQV.js.map} +0 -0
  82. /package/dist/{chunk-BWT6O7K5.js.map → chunk-CDPGUKPU.js.map} +0 -0
  83. /package/dist/{chunk-SH5ZPAVK.js.map → chunk-EQQZLZZH.js.map} +0 -0
  84. /package/dist/{chunk-SJ3O2463.js.map → chunk-POLYFLWF.js.map} +0 -0
  85. /package/dist/{chunk-HEXR3TGX.js.map → chunk-XJQNOT4Z.js.map} +0 -0
  86. /package/dist/{chunk-LPJKRZRD.js.map → chunk-YGCWTL7E.js.map} +0 -0
  87. /package/dist/{chunk-5CTJCJV3.js.map → chunk-YI5435S6.js.map} +0 -0
  88. /package/dist/{chunk-DFZ74LGW.js.map → chunk-ZAKU2MOI.js.map} +0 -0
  89. /package/dist/{chunk-NJ4R2IJY.js.map → chunk-ZYB2QBNU.js.map} +0 -0
@@ -30633,16 +30633,6 @@ function useTrackerClock({ status, runningSince, accumulatedMs = 0 }) {
30633
30633
 
30634
30634
  // src/components/features/time-tracker/time-tracker-panel.tsx
30635
30635
 
30636
- function renderCustomerOption(option, isSelected) {
30637
- const { label, imageUrl } = option;
30638
- return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center justify-between gap-[var(--spacing-system-xs)]", children: [
30639
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
30640
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "square" }),
30641
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", title: label, children: label })
30642
- ] }),
30643
- isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
30644
- ] });
30645
- }
30646
30636
  function TimeTrackerPanel({
30647
30637
  status,
30648
30638
  runningSince,
@@ -30652,12 +30642,6 @@ function TimeTrackerPanel({
30652
30642
  onSelectedTicketChange,
30653
30643
  onTicketSearch,
30654
30644
  ticketsLoading,
30655
- customerOptions,
30656
- selectedCustomerId,
30657
- onSelectedCustomerChange,
30658
- onCustomerSearch,
30659
- customersLoading,
30660
- customerLocked,
30661
30645
  notes,
30662
30646
  onNotesChange,
30663
30647
  lastEntries,
@@ -30711,23 +30695,6 @@ function TimeTrackerPanel({
30711
30695
  label: t.label,
30712
30696
  value: t.id
30713
30697
  }));
30714
- const showCustomer = !!onSelectedCustomerChange;
30715
- const customerAutocompleteOptions = (_nullishCoalesce(customerOptions, () => ( []))).map((c) => ({
30716
- label: c.label,
30717
- value: c.id,
30718
- imageUrl: c.imageUrl
30719
- }));
30720
- const selectedCustomer = customerAutocompleteOptions.find((o) => o.value === selectedCustomerId);
30721
- const customerStartAdornment = selectedCustomer ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
30722
- SquareAvatar,
30723
- {
30724
- src: selectedCustomer.imageUrl,
30725
- alt: selectedCustomer.label,
30726
- fallback: selectedCustomer.label,
30727
- size: "sm",
30728
- variant: "square"
30729
- }
30730
- ) : void 0;
30731
30698
  const visibleEntries = lastEntries.slice(0, 3);
30732
30699
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
30733
30700
  "div",
@@ -30797,41 +30764,22 @@ function TimeTrackerPanel({
30797
30764
  }
30798
30765
  )
30799
30766
  ] }),
30800
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "grid gap-[var(--spacing-system-m)]", showCustomer && "grid-cols-2"), children: [
30801
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
30802
- Autocomplete,
30803
- {
30804
- value: selectedTicketId,
30805
- onChange: onSelectedTicketChange,
30806
- options: ticketAutocompleteOptions,
30807
- placeholder: "Select Ticket",
30808
- loading: ticketsLoading,
30809
- invalid: showFieldError,
30810
- error: showFieldError ? "Required if no notes added" : void 0,
30811
- disableClientFilter: !!onTicketSearch,
30812
- onInputChange: (value, reason) => {
30813
- if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall', _532 => _532(value)]);
30814
- }
30815
- }
30816
- ),
30817
- showCustomer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
30818
- Autocomplete,
30819
- {
30820
- value: _nullishCoalesce(selectedCustomerId, () => ( null)),
30821
- onChange: onSelectedCustomerChange,
30822
- options: customerAutocompleteOptions,
30823
- placeholder: "Select Customer",
30824
- loading: customersLoading,
30825
- disabled: customerLocked,
30826
- disableClientFilter: !!onCustomerSearch,
30827
- onInputChange: (value, reason) => {
30828
- if (reason === "input") _optionalChain([onCustomerSearch, 'optionalCall', _533 => _533(value)]);
30829
- },
30830
- startAdornment: customerStartAdornment,
30831
- renderOption: renderCustomerOption
30767
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
30768
+ Autocomplete,
30769
+ {
30770
+ value: selectedTicketId,
30771
+ onChange: onSelectedTicketChange,
30772
+ options: ticketAutocompleteOptions,
30773
+ placeholder: "Assign Ticket",
30774
+ loading: ticketsLoading,
30775
+ invalid: showFieldError,
30776
+ error: showFieldError ? "Required if no notes added" : void 0,
30777
+ disableClientFilter: !!onTicketSearch,
30778
+ onInputChange: (value, reason) => {
30779
+ if (reason === "input") _optionalChain([onTicketSearch, 'optionalCall', _532 => _532(value)]);
30832
30780
  }
30833
- )
30834
- ] })
30781
+ }
30782
+ )
30835
30783
  ] }),
30836
30784
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
30837
30785
  Textarea,
@@ -30918,7 +30866,7 @@ function LastEntryRow({ entry, onClick }) {
30918
30866
  {
30919
30867
  variant: "outline",
30920
30868
  size: "icon",
30921
- onClick: () => _optionalChain([onClick, 'optionalCall', _534 => _534(entry)]),
30869
+ onClick: () => _optionalChain([onClick, 'optionalCall', _533 => _533(entry)]),
30922
30870
  disabled: !onClick,
30923
30871
  "aria-label": `Open entry: ${entry.title}`,
30924
30872
  className: "h-12 w-12 shrink-0 [&_svg]:!size-6",
@@ -30962,9 +30910,9 @@ function HeaderButton({
30962
30910
  function TimeTrackerHeaderButton({ className, disabled }) {
30963
30911
  const ctx = useOptionalTimeTracker();
30964
30912
  const elapsedLabel = useTrackerClock({
30965
- status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _535 => _535.status]), () => ( "ready")),
30966
- runningSince: _optionalChain([ctx, 'optionalAccess', _536 => _536.runningSince]),
30967
- accumulatedMs: _optionalChain([ctx, 'optionalAccess', _537 => _537.accumulatedMs])
30913
+ status: _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _534 => _534.status]), () => ( "ready")),
30914
+ runningSince: _optionalChain([ctx, 'optionalAccess', _535 => _535.runningSince]),
30915
+ accumulatedMs: _optionalChain([ctx, 'optionalAccess', _536 => _536.accumulatedMs])
30968
30916
  });
30969
30917
  if (!ctx) return null;
30970
30918
  const { isOpen, open, close, status } = ctx;
@@ -31247,15 +31195,15 @@ function TicketCard({
31247
31195
  transition: sortable.transition
31248
31196
  };
31249
31197
  if (showNewMessage) style.borderColor = columnColor;
31250
- const showDeviceRow = !!(_optionalChain([ticket, 'access', _538 => _538.deviceHostnames, 'optionalAccess', _539 => _539.length]) || ticket.organizationName);
31198
+ const showDeviceRow = !!(_optionalChain([ticket, 'access', _537 => _537.deviceHostnames, 'optionalAccess', _538 => _538.length]) || ticket.organizationName);
31251
31199
  const deviceText = [
31252
- _optionalChain([ticket, 'access', _540 => _540.deviceHostnames, 'optionalAccess', _541 => _541.join, 'call', _542 => _542(", ")]),
31200
+ _optionalChain([ticket, 'access', _539 => _539.deviceHostnames, 'optionalAccess', _540 => _540.join, 'call', _541 => _541(", ")]),
31253
31201
  ticket.organizationName
31254
31202
  ].filter(Boolean).join(", ");
31255
31203
  const handleClick = (e) => {
31256
31204
  if (sortable.isDragging) e.preventDefault();
31257
31205
  };
31258
- const hasRightSection = !!(ticket.priority || _optionalChain([ticket, 'access', _543 => _543.assignees, 'optionalAccess', _544 => _544.length]) || renderAssignSlot);
31206
+ const hasRightSection = !!(ticket.priority || _optionalChain([ticket, 'access', _542 => _542.assignees, 'optionalAccess', _543 => _543.length]) || renderAssignSlot);
31259
31207
  const rightSection = hasRightSection ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "pointer-events-auto flex shrink-0 items-center gap-[var(--spacing-system-xsf)]", children: [
31260
31208
  ticket.priority && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
31261
31209
  _chunkCCG4DARMcjs.Flag02Icon,
@@ -31264,7 +31212,7 @@ function TicketCard({
31264
31212
  "aria-label": `Priority: ${ticket.priority}`
31265
31213
  }
31266
31214
  ),
31267
- renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access', _545 => _545.assignees, 'optionalAccess', _546 => _546.length]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex -space-x-2", children: [
31215
+ renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access', _544 => _544.assignees, 'optionalAccess', _545 => _545.length]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex -space-x-2", children: [
31268
31216
  ticket.assignees.slice(0, MAX_VISIBLE_ASSIGNEES).map((a) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
31269
31217
  SquareAvatar,
31270
31218
  {
@@ -31295,7 +31243,7 @@ function TicketCard({
31295
31243
  ] }),
31296
31244
  rightSection
31297
31245
  ] }),
31298
- _optionalChain([ticket, 'access', _547 => _547.tags, 'optionalAccess', _548 => _548.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketTagRow, { tags: ticket.tags }) : null,
31246
+ _optionalChain([ticket, 'access', _546 => _546.tags, 'optionalAccess', _547 => _547.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketTagRow, { tags: ticket.tags }) : null,
31299
31247
  timestampLabel && tooltipLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipProvider, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Tooltip, { children: [
31300
31248
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "pointer-events-auto text-h6 truncate text-ods-text-secondary", children: timestampLabel }) }),
31301
31249
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipContent, { children: tooltipLabel })
@@ -31495,7 +31443,7 @@ function ColumnBody({ column, getTicketHref, renderAssignSlot, onApprove, onReje
31495
31443
  const observer = new IntersectionObserver(
31496
31444
  (entries) => {
31497
31445
  if (entries.some((e) => e.isIntersecting)) {
31498
- _optionalChain([loadMoreRef, 'access', _549 => _549.current, 'optionalCall', _550 => _550(columnIdRef.current)]);
31446
+ _optionalChain([loadMoreRef, 'access', _548 => _548.current, 'optionalCall', _549 => _549(columnIdRef.current)]);
31499
31447
  }
31500
31448
  },
31501
31449
  { root, rootMargin: loadMoreRootMargin }
@@ -31525,7 +31473,7 @@ function ColumnBody({ column, getTicketHref, renderAssignSlot, onApprove, onReje
31525
31473
  ticket: t,
31526
31474
  columnId: column.id,
31527
31475
  columnColor: column.color,
31528
- href: _optionalChain([getTicketHref, 'optionalCall', _551 => _551(t.id)]),
31476
+ href: _optionalChain([getTicketHref, 'optionalCall', _550 => _550(t.id)]),
31529
31477
  renderAssignSlot,
31530
31478
  onApprove,
31531
31479
  onReject,
@@ -31625,17 +31573,17 @@ function Board({
31625
31573
  const pointer = _core.pointerWithin.call(void 0, args);
31626
31574
  const intersections = pointer.length > 0 ? pointer : _core.rectIntersection.call(void 0, args);
31627
31575
  const ticketHit = intersections.find(
31628
- (c) => _optionalChain([c, 'access', _552 => _552.data, 'optionalAccess', _553 => _553.droppableContainer, 'optionalAccess', _554 => _554.data, 'optionalAccess', _555 => _555.current, 'optionalAccess', _556 => _556.type]) === "ticket"
31576
+ (c) => _optionalChain([c, 'access', _551 => _551.data, 'optionalAccess', _552 => _552.droppableContainer, 'optionalAccess', _553 => _553.data, 'optionalAccess', _554 => _554.current, 'optionalAccess', _555 => _555.type]) === "ticket"
31629
31577
  );
31630
31578
  if (ticketHit) return [ticketHit];
31631
31579
  const columnHit = intersections.find(
31632
- (c) => _optionalChain([c, 'access', _557 => _557.data, 'optionalAccess', _558 => _558.droppableContainer, 'optionalAccess', _559 => _559.data, 'optionalAccess', _560 => _560.current, 'optionalAccess', _561 => _561.type]) === "column"
31580
+ (c) => _optionalChain([c, 'access', _556 => _556.data, 'optionalAccess', _557 => _557.droppableContainer, 'optionalAccess', _558 => _558.data, 'optionalAccess', _559 => _559.current, 'optionalAccess', _560 => _560.type]) === "column"
31633
31581
  );
31634
31582
  if (columnHit) {
31635
- const columnId = _optionalChain([columnHit, 'access', _562 => _562.data, 'optionalAccess', _563 => _563.droppableContainer, 'optionalAccess', _564 => _564.data, 'optionalAccess', _565 => _565.current, 'optionalAccess', _566 => _566.columnId]);
31583
+ const columnId = _optionalChain([columnHit, 'access', _561 => _561.data, 'optionalAccess', _562 => _562.droppableContainer, 'optionalAccess', _563 => _563.data, 'optionalAccess', _564 => _564.current, 'optionalAccess', _565 => _565.columnId]);
31636
31584
  const ticketsInColumn = args.droppableContainers.filter((c) => {
31637
31585
  const d = c.data.current;
31638
- return _optionalChain([d, 'optionalAccess', _567 => _567.type]) === "ticket" && d.columnId === columnId;
31586
+ return _optionalChain([d, 'optionalAccess', _566 => _566.type]) === "ticket" && d.columnId === columnId;
31639
31587
  });
31640
31588
  if (ticketsInColumn.length > 0) {
31641
31589
  const closest = _core.closestCorners.call(void 0, { ...args, droppableContainers: ticketsInColumn });
@@ -31660,20 +31608,20 @@ function Board({
31660
31608
  const overId = String(over.id);
31661
31609
  if (activeId === overId) return;
31662
31610
  const overData = over.data.current;
31663
- const fromColumnId = _optionalChain([locate, 'call', _568 => _568(items, activeId), 'optionalAccess', _569 => _569.columnId]);
31664
- const toColumnId = _optionalChain([overData, 'optionalAccess', _570 => _570.columnId]);
31611
+ const fromColumnId = _optionalChain([locate, 'call', _567 => _567(items, activeId), 'optionalAccess', _568 => _568.columnId]);
31612
+ const toColumnId = _optionalChain([overData, 'optionalAccess', _569 => _569.columnId]);
31665
31613
  if (!fromColumnId || !toColumnId || fromColumnId === toColumnId) return;
31666
31614
  const origin = dragOriginRef.current;
31667
- const isReturnToOrigin = _optionalChain([origin, 'optionalAccess', _571 => _571.fromColumnId]) === toColumnId;
31615
+ const isReturnToOrigin = _optionalChain([origin, 'optionalAccess', _570 => _570.fromColumnId]) === toColumnId;
31668
31616
  const targetCol = items.find((c) => c.id === toColumnId);
31669
- const blockedBySource = !isReturnToOrigin && !!_optionalChain([targetCol, 'optionalAccess', _572 => _572.allowedFromColumns]) && !!origin && !targetCol.allowedFromColumns.includes(origin.fromColumnId);
31670
- if (_optionalChain([targetCol, 'optionalAccess', _573 => _573.dropDisabled]) && !isReturnToOrigin || blockedBySource) return;
31617
+ const blockedBySource = !isReturnToOrigin && !!_optionalChain([targetCol, 'optionalAccess', _571 => _571.allowedFromColumns]) && !!origin && !targetCol.allowedFromColumns.includes(origin.fromColumnId);
31618
+ if (_optionalChain([targetCol, 'optionalAccess', _572 => _572.dropDisabled]) && !isReturnToOrigin || blockedBySource) return;
31671
31619
  setItems((prev) => {
31672
31620
  const fromIndex = findIndexInColumn(prev, fromColumnId, activeId);
31673
31621
  const toCol = prev.find((c) => c.id === toColumnId);
31674
31622
  if (fromIndex < 0 || !toCol) return prev;
31675
31623
  let toIndex;
31676
- if (_optionalChain([overData, 'optionalAccess', _574 => _574.type]) === "column") {
31624
+ if (_optionalChain([overData, 'optionalAccess', _573 => _573.type]) === "column") {
31677
31625
  toIndex = toCol.tickets.length;
31678
31626
  } else {
31679
31627
  const overIndex = toCol.tickets.findIndex((t) => t.id === overId);
@@ -31715,14 +31663,14 @@ function Board({
31715
31663
  const toColumnId = located.columnId;
31716
31664
  const isCrossColumn = origin.fromColumnId !== toColumnId;
31717
31665
  const targetCol = items.find((c) => c.id === toColumnId);
31718
- if (isCrossColumn && (_optionalChain([targetCol, 'optionalAccess', _575 => _575.dropDisabled]) || _optionalChain([targetCol, 'optionalAccess', _576 => _576.allowedFromColumns]) && !targetCol.allowedFromColumns.includes(origin.fromColumnId))) {
31666
+ if (isCrossColumn && (_optionalChain([targetCol, 'optionalAccess', _574 => _574.dropDisabled]) || _optionalChain([targetCol, 'optionalAccess', _575 => _575.allowedFromColumns]) && !targetCol.allowedFromColumns.includes(origin.fromColumnId))) {
31719
31667
  setItems(columns);
31720
31668
  return;
31721
31669
  }
31722
31670
  let finalIndex = located.index;
31723
- let finalColumnTickets = _nullishCoalesce(_optionalChain([items, 'access', _577 => _577.find, 'call', _578 => _578((c) => c.id === toColumnId), 'optionalAccess', _579 => _579.tickets]), () => ( []));
31671
+ let finalColumnTickets = _nullishCoalesce(_optionalChain([items, 'access', _576 => _576.find, 'call', _577 => _577((c) => c.id === toColumnId), 'optionalAccess', _578 => _578.tickets]), () => ( []));
31724
31672
  const overData = over.data.current;
31725
- if (_optionalChain([overData, 'optionalAccess', _580 => _580.type]) === "ticket") {
31673
+ if (_optionalChain([overData, 'optionalAccess', _579 => _579.type]) === "ticket") {
31726
31674
  const overIndex = findIndexInColumn(items, toColumnId, String(over.id));
31727
31675
  if (overIndex >= 0 && overIndex !== located.index) {
31728
31676
  finalColumnTickets = _sortable.arrayMove.call(void 0, finalColumnTickets, located.index, overIndex);
@@ -31742,8 +31690,8 @@ function Board({
31742
31690
  ticketId: origin.ticketId,
31743
31691
  fromColumnId: origin.fromColumnId,
31744
31692
  toColumnId,
31745
- afterTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access', _581 => _581[finalIndex - 1], 'optionalAccess', _582 => _582.id]), () => ( null)),
31746
- beforeTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access', _583 => _583[finalIndex + 1], 'optionalAccess', _584 => _584.id]), () => ( null))
31693
+ afterTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access', _580 => _580[finalIndex - 1], 'optionalAccess', _581 => _581.id]), () => ( null)),
31694
+ beforeTicketId: _nullishCoalesce(_optionalChain([finalColumnTickets, 'access', _582 => _582[finalIndex + 1], 'optionalAccess', _583 => _583.id]), () => ( null))
31747
31695
  });
31748
31696
  };
31749
31697
  const handleDragCancel = () => {
@@ -31772,8 +31720,8 @@ function Board({
31772
31720
  children: items.map((column, i) => {
31773
31721
  const prev = items[i - 1];
31774
31722
  const next = items[i + 1];
31775
- const joinLeft = !!(column.system && _optionalChain([prev, 'optionalAccess', _585 => _585.system]));
31776
- const joinRight = !!(column.system && _optionalChain([next, 'optionalAccess', _586 => _586.system]));
31723
+ const joinLeft = !!(column.system && _optionalChain([prev, 'optionalAccess', _584 => _584.system]));
31724
+ const joinRight = !!(column.system && _optionalChain([next, 'optionalAccess', _585 => _585.system]));
31777
31725
  const showGap = i > 0 && !joinLeft;
31778
31726
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, React98.Fragment, { children: [
31779
31727
  showGap && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: "w-[var(--spacing-system-mf)] shrink-0" }),
@@ -31826,7 +31774,7 @@ function Board({
31826
31774
  {
31827
31775
  ticket: activeTicket.ticket,
31828
31776
  columnId: activeTicket.columnId,
31829
- columnColor: _optionalChain([items, 'access', _587 => _587.find, 'call', _588 => _588((c) => c.id === activeTicket.columnId), 'optionalAccess', _589 => _589.color]),
31777
+ columnColor: _optionalChain([items, 'access', _586 => _586.find, 'call', _587 => _587((c) => c.id === activeTicket.columnId), 'optionalAccess', _588 => _588.color]),
31830
31778
  isOverlay: true
31831
31779
  }
31832
31780
  ) : null })
@@ -31842,7 +31790,7 @@ function locate(cols, ticketId) {
31842
31790
  return null;
31843
31791
  }
31844
31792
  function findIndexInColumn(cols, columnId, ticketId) {
31845
- return _nullishCoalesce(_optionalChain([cols, 'access', _590 => _590.find, 'call', _591 => _591((c) => c.id === columnId), 'optionalAccess', _592 => _592.tickets, 'access', _593 => _593.findIndex, 'call', _594 => _594((t) => t.id === ticketId)]), () => ( -1));
31793
+ return _nullishCoalesce(_optionalChain([cols, 'access', _589 => _589.find, 'call', _590 => _590((c) => c.id === columnId), 'optionalAccess', _591 => _591.tickets, 'access', _592 => _592.findIndex, 'call', _593 => _593((t) => t.id === ticketId)]), () => ( -1));
31846
31794
  }
31847
31795
 
31848
31796
  // src/components/features/board/types.ts
@@ -32090,7 +32038,7 @@ function Header2({ config, platform }) {
32090
32038
  className: _chunkFIG2RKZFcjs.cn.call(void 0,
32091
32039
  "flex justify-start w-full",
32092
32040
  "font-bold text-[16px] leading-none tracking-[-0.32px]",
32093
- index < (_nullishCoalesce(_optionalChain([item, 'access', _595 => _595.children, 'optionalAccess', _596 => _596.length]), () => ( 0))) - 1 && "mb-1",
32041
+ index < (_nullishCoalesce(_optionalChain([item, 'access', _594 => _594.children, 'optionalAccess', _595 => _595.length]), () => ( 0))) - 1 && "mb-1",
32094
32042
  "text-ods-text-primary",
32095
32043
  // All dropdown items use primary text color
32096
32044
  child.isActive && "bg-ods-bg-hover"
@@ -32182,7 +32130,7 @@ function Header2({ config, platform }) {
32182
32130
  style: config.style,
32183
32131
  children: [
32184
32132
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-start flex-shrink-0", children: [
32185
- _optionalChain([config, 'access', _597 => _597.actions, 'optionalAccess', _598 => _598.left]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center", children: config.actions.left }),
32133
+ _optionalChain([config, 'access', _596 => _596.actions, 'optionalAccess', _597 => _597.left]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center", children: config.actions.left }),
32186
32134
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWBR7H6E3cjs.next_link_default, { href: config.logo.href, className: "transition-opacity duration-200 hover:opacity-80", children: config.logo.element })
32187
32135
  ] }),
32188
32136
  config.navigation && config.navigation.items.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -32199,7 +32147,7 @@ function Header2({ config, platform }) {
32199
32147
  }
32200
32148
  ),
32201
32149
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-end gap-4 flex-shrink-0", children: [
32202
- _optionalChain([config, 'access', _599 => _599.actions, 'optionalAccess', _600 => _600.right]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden md:flex items-center gap-4", children: config.actions.right }),
32150
+ _optionalChain([config, 'access', _598 => _598.actions, 'optionalAccess', _599 => _599.right]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden md:flex items-center gap-4", children: config.actions.right }),
32203
32151
  config.mobile && config.mobile.enabled && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
32204
32152
  _chunkQJGRP2YEcjs.Button,
32205
32153
  {
@@ -32207,10 +32155,10 @@ function Header2({ config, platform }) {
32207
32155
  size: "icon",
32208
32156
  className: "flex md:hidden",
32209
32157
  onClick: () => {
32210
- _optionalChain([config, 'access', _601 => _601.mobile, 'optionalAccess', _602 => _602.onToggle, 'optionalCall', _603 => _603()]);
32158
+ _optionalChain([config, 'access', _600 => _600.mobile, 'optionalAccess', _601 => _601.onToggle, 'optionalCall', _602 => _602()]);
32211
32159
  },
32212
- "aria-label": _optionalChain([config, 'access', _604 => _604.mobile, 'optionalAccess', _605 => _605.isOpen]) ? "Close menu" : "Open menu",
32213
- leftIcon: _optionalChain([config, 'access', _606 => _606.mobile, 'optionalAccess', _607 => _607.menuIcon]) || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.Menu01Icon, {})
32160
+ "aria-label": _optionalChain([config, 'access', _603 => _603.mobile, 'optionalAccess', _604 => _604.isOpen]) ? "Close menu" : "Open menu",
32161
+ leftIcon: _optionalChain([config, 'access', _605 => _605.mobile, 'optionalAccess', _606 => _606.menuIcon]) || /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.Menu01Icon, {})
32214
32162
  }
32215
32163
  )
32216
32164
  ] })
@@ -32227,10 +32175,10 @@ function Header2({ config, platform }) {
32227
32175
  // src/components/navigation/header-skeleton.tsx
32228
32176
 
32229
32177
  function HeaderSkeleton({ config }) {
32230
- const showNavigation = _optionalChain([config, 'optionalAccess', _608 => _608.navigation]) && config.navigation.items.length > 0;
32231
- const showActions = _optionalChain([config, 'optionalAccess', _609 => _609.actions, 'optionalAccess', _610 => _610.right]) && config.actions.right.length > 0;
32232
- const showMobileMenu = _optionalChain([config, 'optionalAccess', _611 => _611.mobile, 'optionalAccess', _612 => _612.enabled]);
32233
- const isAdminHeader = _optionalChain([config, 'optionalAccess', _613 => _613.className, 'optionalAccess', _614 => _614.includes, 'call', _615 => _615("admin")]);
32178
+ const showNavigation = _optionalChain([config, 'optionalAccess', _607 => _607.navigation]) && config.navigation.items.length > 0;
32179
+ const showActions = _optionalChain([config, 'optionalAccess', _608 => _608.actions, 'optionalAccess', _609 => _609.right]) && config.actions.right.length > 0;
32180
+ const showMobileMenu = _optionalChain([config, 'optionalAccess', _610 => _610.mobile, 'optionalAccess', _611 => _611.enabled]);
32181
+ const isAdminHeader = _optionalChain([config, 'optionalAccess', _612 => _612.className, 'optionalAccess', _613 => _613.includes, 'call', _614 => _614("admin")]);
32234
32182
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "sticky top-0 z-40 w-full", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
32235
32183
  "header",
32236
32184
  {
@@ -32239,11 +32187,11 @@ function HeaderSkeleton({ config }) {
32239
32187
  "bg-ods-card border-b border-ods-border backdrop-blur-sm",
32240
32188
  "px-6 py-3",
32241
32189
  "transition-opacity duration-300 ease-in-out",
32242
- _optionalChain([config, 'optionalAccess', _616 => _616.className])
32190
+ _optionalChain([config, 'optionalAccess', _615 => _615.className])
32243
32191
  ),
32244
32192
  children: [
32245
32193
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-start flex-shrink-0", children: [
32246
- isAdminHeader && _optionalChain([config, 'optionalAccess', _617 => _617.actions, 'optionalAccess', _618 => _618.left]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 w-10 bg-ods-border rounded animate-pulse" }) }),
32194
+ isAdminHeader && _optionalChain([config, 'optionalAccess', _616 => _616.actions, 'optionalAccess', _617 => _617.left]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 w-10 bg-ods-border rounded animate-pulse" }) }),
32247
32195
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
32248
32196
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-8 w-8 bg-ods-border rounded animate-pulse" }),
32249
32197
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-6 w-24 bg-ods-border rounded animate-pulse" })
@@ -32251,8 +32199,8 @@ function HeaderSkeleton({ config }) {
32251
32199
  ] }),
32252
32200
  showNavigation && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "nav", { className: _chunkFIG2RKZFcjs.cn.call(void 0,
32253
32201
  "hidden md:flex items-center gap-2",
32254
- _optionalChain([config, 'optionalAccess', _619 => _619.navigation, 'optionalAccess', _620 => _620.position]) === "center" && "absolute left-1/2 transform -translate-x-1/2",
32255
- _optionalChain([config, 'optionalAccess', _621 => _621.navigation, 'optionalAccess', _622 => _622.position]) === "right" && "ml-auto mr-4"
32202
+ _optionalChain([config, 'optionalAccess', _618 => _618.navigation, 'optionalAccess', _619 => _619.position]) === "center" && "absolute left-1/2 transform -translate-x-1/2",
32203
+ _optionalChain([config, 'optionalAccess', _620 => _620.navigation, 'optionalAccess', _621 => _621.position]) === "right" && "ml-auto mr-4"
32256
32204
  ), children: [
32257
32205
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 w-20 bg-ods-border rounded animate-pulse" }),
32258
32206
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-10 w-28 bg-ods-border rounded animate-pulse" }),
@@ -32300,7 +32248,7 @@ function MobileNavPanel({ isOpen, config }) {
32300
32248
  _react.useEffect.call(void 0, () => {
32301
32249
  const handleKeyDown = (e) => {
32302
32250
  if (e.key === "Escape" && isOpen) {
32303
- _optionalChain([config, 'access', _623 => _623.onClose, 'optionalCall', _624 => _624()]);
32251
+ _optionalChain([config, 'access', _622 => _622.onClose, 'optionalCall', _623 => _623()]);
32304
32252
  }
32305
32253
  };
32306
32254
  if (isOpen) {
@@ -32317,7 +32265,7 @@ function MobileNavPanel({ isOpen, config }) {
32317
32265
  if (item.onClick) {
32318
32266
  item.onClick();
32319
32267
  }
32320
- _optionalChain([config, 'access', _625 => _625.onClose, 'optionalCall', _626 => _626()]);
32268
+ _optionalChain([config, 'access', _624 => _624.onClose, 'optionalCall', _625 => _625()]);
32321
32269
  };
32322
32270
  if (item.href) {
32323
32271
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -32487,7 +32435,7 @@ function SlidingSidebar({ config }) {
32487
32435
  variant: "transparent",
32488
32436
  size: "default",
32489
32437
  onClick: () => {
32490
- _optionalChain([item, 'access', _627 => _627.onClick, 'optionalCall', _628 => _628()]);
32438
+ _optionalChain([item, 'access', _626 => _626.onClick, 'optionalCall', _627 => _627()]);
32491
32439
  config.onClose();
32492
32440
  },
32493
32441
  leftIcon: item.icon,
@@ -32510,7 +32458,7 @@ function SlidingSidebar({ config }) {
32510
32458
  variant: "transparent",
32511
32459
  size: "default",
32512
32460
  onClick: () => {
32513
- _optionalChain([item, 'access', _629 => _629.onClick, 'optionalCall', _630 => _630()]);
32461
+ _optionalChain([item, 'access', _628 => _628.onClick, 'optionalCall', _629 => _629()]);
32514
32462
  config.onClose();
32515
32463
  },
32516
32464
  leftIcon: item.icon,
@@ -32637,7 +32585,7 @@ function StickySectionNav({
32637
32585
  ] });
32638
32586
  }
32639
32587
  function useSectionNavigation(sections, options) {
32640
- const [activeSection, setActiveSection] = _react.useState.call(void 0, _optionalChain([sections, 'access', _631 => _631[0], 'optionalAccess', _632 => _632.id]) || "");
32588
+ const [activeSection, setActiveSection] = _react.useState.call(void 0, _optionalChain([sections, 'access', _630 => _630[0], 'optionalAccess', _631 => _631.id]) || "");
32641
32589
  const isScrollingFromClick = _react.useRef.call(void 0, false);
32642
32590
  const { offset: offset2 = 100 } = options || {};
32643
32591
  const handleSectionClick = _react.useCallback.call(void 0, (sectionId) => {
@@ -32661,7 +32609,7 @@ function useSectionNavigation(sections, options) {
32661
32609
  const handleScroll = () => {
32662
32610
  if (isScrollingFromClick.current) return;
32663
32611
  const scrollPosition = window.scrollY + offset2 + 50;
32664
- let currentSection = _optionalChain([sections, 'access', _633 => _633[0], 'optionalAccess', _634 => _634.id]) || "";
32612
+ let currentSection = _optionalChain([sections, 'access', _632 => _632[0], 'optionalAccess', _633 => _633.id]) || "";
32665
32613
  for (let i = sections.length - 1; i >= 0; i--) {
32666
32614
  const element = document.getElementById(sections[i].id);
32667
32615
  if (element && scrollPosition >= element.offsetTop) {
@@ -32862,7 +32810,7 @@ function NavigationSidebar({ config, disabled = false }) {
32862
32810
  } else {
32863
32811
  setDesktopMinimized((prev) => !prev);
32864
32812
  }
32865
- _optionalChain([config, 'access', _635 => _635.onToggleMinimized, 'optionalCall', _636 => _636()]);
32813
+ _optionalChain([config, 'access', _634 => _634.onToggleMinimized, 'optionalCall', _635 => _635()]);
32866
32814
  }, [isTablet, setDesktopMinimized, config]);
32867
32815
  const closeOverlay = _react.useCallback.call(void 0, () => {
32868
32816
  setTabletMinimized(true);
@@ -32876,11 +32824,11 @@ function NavigationSidebar({ config, disabled = false }) {
32876
32824
  return () => document.removeEventListener("keydown", handleKeyDown);
32877
32825
  }, [isOverlayOpen, closeOverlay]);
32878
32826
  const handleItemClick = _react.useCallback.call(void 0, (item, event) => {
32879
- _optionalChain([event, 'optionalAccess', _637 => _637.stopPropagation, 'call', _638 => _638()]);
32827
+ _optionalChain([event, 'optionalAccess', _636 => _636.stopPropagation, 'call', _637 => _637()]);
32880
32828
  if (item.onClick) {
32881
32829
  item.onClick();
32882
32830
  } else if (item.path) {
32883
- _optionalChain([config, 'access', _639 => _639.onNavigate, 'optionalCall', _640 => _640(item.path)]);
32831
+ _optionalChain([config, 'access', _638 => _638.onNavigate, 'optionalCall', _639 => _639(item.path)]);
32884
32832
  }
32885
32833
  if (isTablet) setTabletMinimized(true);
32886
32834
  }, [config, isTablet]);
@@ -33000,11 +32948,11 @@ function HeaderGlobalSearch({
33000
32948
  };
33001
32949
  const handleSubmit = (e) => {
33002
32950
  e.preventDefault();
33003
- _optionalChain([onSubmit, 'optionalCall', _641 => _641(currentValue)]);
32951
+ _optionalChain([onSubmit, 'optionalCall', _640 => _640(currentValue)]);
33004
32952
  };
33005
32953
  const handleKeyDown = (e) => {
33006
32954
  if (e.key === "Enter") {
33007
- _optionalChain([onSubmit, 'optionalCall', _642 => _642(currentValue)]);
32955
+ _optionalChain([onSubmit, 'optionalCall', _641 => _641(currentValue)]);
33008
32956
  }
33009
32957
  };
33010
32958
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -33098,8 +33046,8 @@ function HeaderOrganizationFilter({
33098
33046
  className
33099
33047
  }) {
33100
33048
  const selectedOrg = organizations.find((o) => o.id === selectedOrgId);
33101
- const displayName = _optionalChain([selectedOrg, 'optionalAccess', _643 => _643.name]) || "All Organizations";
33102
- const deviceCount = _nullishCoalesce(_optionalChain([selectedOrg, 'optionalAccess', _644 => _644.deviceCount]), () => ( totalDeviceCount));
33049
+ const displayName = _optionalChain([selectedOrg, 'optionalAccess', _642 => _642.name]) || "All Organizations";
33050
+ const deviceCount = _nullishCoalesce(_optionalChain([selectedOrg, 'optionalAccess', _643 => _643.deviceCount]), () => ( totalDeviceCount));
33103
33051
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkQJGRP2YEcjs.DropdownMenu, { children: [
33104
33052
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQJGRP2YEcjs.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
33105
33053
  "button",
@@ -33124,11 +33072,11 @@ function HeaderOrganizationFilter({
33124
33072
  }
33125
33073
  ) }),
33126
33074
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkQJGRP2YEcjs.DropdownMenuContent, { align: "end", className: "min-w-[240px]", children: [
33127
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQJGRP2YEcjs.DropdownMenuItem, { onClick: () => _optionalChain([onOrgChange, 'optionalCall', _645 => _645("")]), children: "All Organizations" }),
33075
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQJGRP2YEcjs.DropdownMenuItem, { onClick: () => _optionalChain([onOrgChange, 'optionalCall', _644 => _644("")]), children: "All Organizations" }),
33128
33076
  organizations.map((org) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
33129
33077
  _chunkQJGRP2YEcjs.DropdownMenuItem,
33130
33078
  {
33131
- onClick: () => _optionalChain([onOrgChange, 'optionalCall', _646 => _646(org.id)]),
33079
+ onClick: () => _optionalChain([onOrgChange, 'optionalCall', _645 => _645(org.id)]),
33132
33080
  children: org.name
33133
33081
  },
33134
33082
  org.id
@@ -33318,9 +33266,9 @@ function NotificationsHeaderButton({
33318
33266
  dimmedClass
33319
33267
  }) {
33320
33268
  const ctx = useOptionalNotifications();
33321
- const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _647 => _647.unreadCount]), () => ( fallbackUnreadCount))) > 0;
33322
- const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _648 => _648.isOpen]), () => ( false));
33323
- const onClick = _optionalChain([ctx, 'optionalAccess', _649 => _649.toggle]);
33269
+ const hasUnread = (_nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _646 => _646.unreadCount]), () => ( fallbackUnreadCount))) > 0;
33270
+ const isActive = _nullishCoalesce(_optionalChain([ctx, 'optionalAccess', _647 => _647.isOpen]), () => ( false));
33271
+ const onClick = _optionalChain([ctx, 'optionalAccess', _648 => _648.toggle]);
33324
33272
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
33325
33273
  HeaderButton,
33326
33274
  {
@@ -33384,7 +33332,7 @@ var MobileBurgerMenu = React114.default.memo(function MobileBurgerMenu2({
33384
33332
  if (item.onClick) {
33385
33333
  item.onClick();
33386
33334
  } else if (item.path) {
33387
- _optionalChain([config, 'access', _650 => _650.onNavigate, 'optionalCall', _651 => _651(item.path)]);
33335
+ _optionalChain([config, 'access', _649 => _649.onNavigate, 'optionalCall', _650 => _650(item.path)]);
33388
33336
  }
33389
33337
  onClose();
33390
33338
  }, [config, onClose]);
@@ -33627,7 +33575,7 @@ var AppLayoutDrawerRoot = ({
33627
33575
  const handleOpenChange = React107.useCallback(
33628
33576
  (next) => {
33629
33577
  if (!isControlled) setInternalOpen(next);
33630
- _optionalChain([onOpenChange, 'optionalCall', _652 => _652(next)]);
33578
+ _optionalChain([onOpenChange, 'optionalCall', _651 => _651(next)]);
33631
33579
  },
33632
33580
  [isControlled, onOpenChange]
33633
33581
  );
@@ -34008,10 +33956,10 @@ var AppLayoutDrawerContent = React107.forwardRef(
34008
33956
  ),
34009
33957
  style,
34010
33958
  onInteractOutside: (event) => {
34011
- _optionalChain([onInteractOutside, 'optionalCall', _653 => _653(event)]);
33959
+ _optionalChain([onInteractOutside, 'optionalCall', _652 => _652(event)]);
34012
33960
  if (event.defaultPrevented) return;
34013
33961
  const target = event.target;
34014
- const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess', _654 => _654.contains, 'call', _655 => _655(target)]);
33962
+ const isInsideContainer = !!target && !!_optionalChain([portalContainer, 'optionalAccess', _653 => _653.contains, 'call', _654 => _654(target)]);
34015
33963
  if (!isInsideContainer) {
34016
33964
  event.preventDefault();
34017
33965
  return;
@@ -34424,7 +34372,7 @@ var ShellTypeBadge = ({
34424
34372
  className,
34425
34373
  iconClassName
34426
34374
  }) => {
34427
- const normalizedType = _optionalChain([shellType, 'optionalAccess', _656 => _656.toUpperCase, 'call', _657 => _657()]);
34375
+ const normalizedType = _optionalChain([shellType, 'optionalAccess', _655 => _655.toUpperCase, 'call', _656 => _656()]);
34428
34376
  const label = getShellLabel(normalizedType);
34429
34377
  const { icon: IconComponent, props: iconProps } = _nullishCoalesce(shellIconMap[normalizedType], () => ( defaultIconConfig));
34430
34378
  const defaultIconClassName = "className" in iconProps ? iconProps.className : void 0;
@@ -34811,12 +34759,12 @@ function OnboardingWalkthrough({
34811
34759
  }
34812
34760
  }, [state.completedSteps, markComplete]);
34813
34761
  const handleStepSkip = (step) => {
34814
- _optionalChain([step, 'access', _658 => _658.onSkip, 'optionalCall', _659 => _659()]);
34762
+ _optionalChain([step, 'access', _657 => _657.onSkip, 'optionalCall', _658 => _658()]);
34815
34763
  markSkipped(step.id);
34816
34764
  };
34817
34765
  const handleDismiss = () => {
34818
34766
  dismissOnboarding();
34819
- _optionalChain([onDismiss, 'optionalCall', _660 => _660()]);
34767
+ _optionalChain([onDismiss, 'optionalCall', _659 => _659()]);
34820
34768
  };
34821
34769
  if (state.dismissed) {
34822
34770
  return null;
@@ -34946,7 +34894,7 @@ var LogCard = ({ log, isLast, showConnector, onClick }) => {
34946
34894
  onKeyDown: (e) => {
34947
34895
  if (e.key === "Enter" || e.key === " ") {
34948
34896
  e.preventDefault();
34949
- _optionalChain([onClick, 'optionalCall', _661 => _661()]);
34897
+ _optionalChain([onClick, 'optionalCall', _660 => _660()]);
34950
34898
  }
34951
34899
  },
34952
34900
  children: [
@@ -35047,7 +34995,7 @@ var LogsList = React111.forwardRef(({
35047
34995
  log,
35048
34996
  isLast: index === logs.length - 1,
35049
34997
  showConnector,
35050
- onClick: () => _optionalChain([onLogClick, 'optionalCall', _662 => _662(log)])
34998
+ onClick: () => _optionalChain([onLogClick, 'optionalCall', _661 => _661(log)])
35051
34999
  },
35052
35000
  log.id
35053
35001
  ))
@@ -35148,7 +35096,7 @@ var Slider = React113.forwardRef(
35148
35096
  ({ className, value = [0], onValueChange, min = 0, max = 100, step = 1, ...props }, ref) => {
35149
35097
  const handleChange = (e) => {
35150
35098
  const newValue = [Number(e.target.value)];
35151
- _optionalChain([onValueChange, 'optionalCall', _663 => _663(newValue)]);
35099
+ _optionalChain([onValueChange, 'optionalCall', _662 => _662(newValue)]);
35152
35100
  };
35153
35101
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
35154
35102
  "input",
@@ -35579,7 +35527,7 @@ function CursorPaginationSimple({
35579
35527
  {
35580
35528
  variant: "transparent",
35581
35529
  size: "icon",
35582
- onClick: () => _optionalChain([onPrevious, 'optionalCall', _664 => _664("")]),
35530
+ onClick: () => _optionalChain([onPrevious, 'optionalCall', _663 => _663("")]),
35583
35531
  disabled: !hasPreviousPage || loading,
35584
35532
  className: "h-8 w-8",
35585
35533
  leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" }),
@@ -35591,7 +35539,7 @@ function CursorPaginationSimple({
35591
35539
  {
35592
35540
  variant: "transparent",
35593
35541
  size: "icon",
35594
- onClick: () => _optionalChain([onNext, 'optionalCall', _665 => _665("")]),
35542
+ onClick: () => _optionalChain([onNext, 'optionalCall', _664 => _664("")]),
35595
35543
  disabled: !hasNextPage || loading,
35596
35544
  className: "h-8 w-8",
35597
35545
  rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" }),
@@ -35611,8 +35559,8 @@ function TableEmptyState({ message: message2, icon, action, className }) {
35611
35559
  icon: _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, {}))),
35612
35560
  title: _nullishCoalesce(message2, () => ( "No results found")),
35613
35561
  description: message2 == null ? "Try adjusting your search or filters" : void 0,
35614
- buttonLabel: _optionalChain([action, 'optionalAccess', _666 => _666.label]),
35615
- onButtonClick: _optionalChain([action, 'optionalAccess', _667 => _667.onClick]),
35562
+ buttonLabel: _optionalChain([action, 'optionalAccess', _665 => _665.label]),
35563
+ onButtonClick: _optionalChain([action, 'optionalAccess', _666 => _666.onClick]),
35616
35564
  className: _chunkFIG2RKZFcjs.cn.call(void 0, "py-[var(--spacing-system-xxl)]", className)
35617
35565
  }
35618
35566
  );
@@ -35633,7 +35581,7 @@ function TableColumnFilterDropdown({
35633
35581
  placement = "bottom-start",
35634
35582
  dropdownClassName = "min-w-[240px]"
35635
35583
  }) {
35636
- const activeCount = _optionalChain([filters, 'optionalAccess', _668 => _668[columnKey], 'optionalAccess', _669 => _669.length]) || 0;
35584
+ const activeCount = _optionalChain([filters, 'optionalAccess', _667 => _667[columnKey], 'optionalAccess', _668 => _668.length]) || 0;
35637
35585
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
35638
35586
  FiltersDropdown,
35639
35587
  {
@@ -35676,7 +35624,7 @@ function TableColumnFilterDropdown({
35676
35624
  delete newFilters[columnKey];
35677
35625
  onFilterChange(newFilters);
35678
35626
  },
35679
- currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess', _670 => _670[columnKey]]) || [] },
35627
+ currentFilters: { [columnKey]: _optionalChain([filters, 'optionalAccess', _669 => _669[columnKey]]) || [] },
35680
35628
  placement,
35681
35629
  dropdownClassName
35682
35630
  }
@@ -35886,7 +35834,7 @@ function TableCardSkeleton({
35886
35834
  className,
35887
35835
  rowClassName
35888
35836
  }) {
35889
- const primaryKey = _optionalChain([(_nullishCoalesce(columns.find((c) => /flex-(1|\[)/.test(c.width || "")), () => ( columns[0]))), 'optionalAccess', _671 => _671.key]);
35837
+ const primaryKey = _optionalChain([(_nullishCoalesce(columns.find((c) => /flex-(1|\[)/.test(c.width || "")), () => ( columns[0]))), 'optionalAccess', _670 => _670.key]);
35890
35838
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
35891
35839
  "div",
35892
35840
  {
@@ -35979,7 +35927,7 @@ function TableRow({
35979
35927
  const keys = column.key.split(".");
35980
35928
  let value = item;
35981
35929
  for (const key of keys) {
35982
- value = _optionalChain([value, 'optionalAccess', _672 => _672[key]]);
35930
+ value = _optionalChain([value, 'optionalAccess', _671 => _671[key]]);
35983
35931
  }
35984
35932
  if (value === null || value === void 0) {
35985
35933
  return "-";
@@ -36068,7 +36016,7 @@ function useTableMotion(enabled) {
36068
36016
  // src/components/ui/table/table.tsx
36069
36017
 
36070
36018
  function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref) {
36071
- const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess', _673 => _673.length])) || Boolean(renderRowActions);
36019
+ const hasActions = Boolean(_optionalChain([rowActions, 'optionalAccess', _672 => _672.length])) || Boolean(renderRowActions);
36072
36020
  const result = [...columns];
36073
36021
  if (hasActions) {
36074
36022
  const actionsColumn = {
@@ -36164,7 +36112,7 @@ function Table({
36164
36112
  return rowKey(item);
36165
36113
  }
36166
36114
  const key = item[rowKey];
36167
- return _optionalChain([key, 'optionalAccess', _674 => _674.toString, 'call', _675 => _675()]) || index.toString();
36115
+ return _optionalChain([key, 'optionalAccess', _673 => _673.toString, 'call', _674 => _674()]) || index.toString();
36168
36116
  };
36169
36117
  const getRowClassName = (item, index) => {
36170
36118
  if (typeof rowClassName === "function") {
@@ -36198,23 +36146,23 @@ function Table({
36198
36146
  const allSelected = selectedRows.length > 0 && selectedRows.length === data.length;
36199
36147
  const someSelected = selectedRows.length > 0 && selectedRows.length < data.length;
36200
36148
  const sentinelRef = _react.useRef.call(void 0, null);
36201
- const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess', _676 => _676.onLoadMore]));
36202
- onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess', _677 => _677.onLoadMore]);
36149
+ const onLoadMoreRef = _react.useRef.call(void 0, _optionalChain([infiniteScroll, 'optionalAccess', _675 => _675.onLoadMore]));
36150
+ onLoadMoreRef.current = _optionalChain([infiniteScroll, 'optionalAccess', _676 => _676.onLoadMore]);
36203
36151
  _react.useEffect.call(void 0, () => {
36204
- if (!_optionalChain([infiniteScroll, 'optionalAccess', _678 => _678.hasNextPage]) || infiniteScroll.isFetchingNextPage) return;
36152
+ if (!_optionalChain([infiniteScroll, 'optionalAccess', _677 => _677.hasNextPage]) || infiniteScroll.isFetchingNextPage) return;
36205
36153
  const sentinel = sentinelRef.current;
36206
36154
  if (!sentinel) return;
36207
36155
  const observer = new IntersectionObserver(
36208
36156
  (entries) => {
36209
- if (_optionalChain([entries, 'access', _679 => _679[0], 'optionalAccess', _680 => _680.isIntersecting])) {
36210
- _optionalChain([onLoadMoreRef, 'access', _681 => _681.current, 'optionalCall', _682 => _682()]);
36157
+ if (_optionalChain([entries, 'access', _678 => _678[0], 'optionalAccess', _679 => _679.isIntersecting])) {
36158
+ _optionalChain([onLoadMoreRef, 'access', _680 => _680.current, 'optionalCall', _681 => _681()]);
36211
36159
  }
36212
36160
  },
36213
36161
  { rootMargin: "200px" }
36214
36162
  );
36215
36163
  observer.observe(sentinel);
36216
36164
  return () => observer.disconnect();
36217
- }, [_optionalChain([infiniteScroll, 'optionalAccess', _683 => _683.hasNextPage]), _optionalChain([infiniteScroll, 'optionalAccess', _684 => _684.isFetchingNextPage])]);
36165
+ }, [_optionalChain([infiniteScroll, 'optionalAccess', _682 => _682.hasNextPage]), _optionalChain([infiniteScroll, 'optionalAccess', _683 => _683.isFetchingNextPage])]);
36218
36166
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "flex flex-col gap-1 w-full", containerClassName), children: [
36219
36167
  showToolbar && bulkActions && selectedRows.length > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between bg-ods-card border border-ods-border rounded-[6px] p-3 mb-2", children: [
36220
36168
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "text-ods-text-secondary text-sm", children: [
@@ -36284,14 +36232,14 @@ function Table({
36284
36232
  selected: isRowSelected(item),
36285
36233
  onSelect: handleSelectRow,
36286
36234
  animateRowReorder,
36287
- motionDiv: _optionalChain([tableMotion, 'optionalAccess', _685 => _685.motionDiv])
36235
+ motionDiv: _optionalChain([tableMotion, 'optionalAccess', _684 => _684.motionDiv])
36288
36236
  },
36289
36237
  getRowKey(item, index)
36290
36238
  ));
36291
- const LayoutGroup = _optionalChain([tableMotion, 'optionalAccess', _686 => _686.LayoutGroup]);
36239
+ const LayoutGroup = _optionalChain([tableMotion, 'optionalAccess', _685 => _685.LayoutGroup]);
36292
36240
  return animateRowReorder && LayoutGroup ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LayoutGroup, { children: rows }) : rows;
36293
36241
  })(),
36294
- _optionalChain([infiniteScroll, 'optionalAccess', _687 => _687.isFetchingNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
36242
+ _optionalChain([infiniteScroll, 'optionalAccess', _686 => _686.isFetchingNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
36295
36243
  TableCardSkeleton,
36296
36244
  {
36297
36245
  columns,
@@ -36300,7 +36248,7 @@ function Table({
36300
36248
  hasChevron: Boolean(rowHref)
36301
36249
  }
36302
36250
  ),
36303
- _optionalChain([infiniteScroll, 'optionalAccess', _688 => _688.hasNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" }),
36251
+ _optionalChain([infiniteScroll, 'optionalAccess', _687 => _687.hasNextPage]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" }),
36304
36252
  !infiniteScroll && Array.from({ length: Math.max(0, skeletonRows - data.length) }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
36305
36253
  "div",
36306
36254
  {
@@ -36658,7 +36606,7 @@ function QueryReportTable({
36658
36606
  );
36659
36607
  const handleExport = () => {
36660
36608
  exportToCSV(data, columns, exportFilename);
36661
- _optionalChain([onExport, 'optionalCall', _689 => _689()]);
36609
+ _optionalChain([onExport, 'optionalCall', _688 => _688()]);
36662
36610
  };
36663
36611
  const tableMinWidth = columns.length * (columnWidth + 16);
36664
36612
  const {
@@ -36831,7 +36779,7 @@ function DataTableColumnFilter({
36831
36779
  align = "left"
36832
36780
  }) {
36833
36781
  const currentValue = column.getFilterValue();
36834
- const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess', _690 => _690.length]), () => ( 0));
36782
+ const activeCount = _nullishCoalesce(_optionalChain([currentValue, 'optionalAccess', _689 => _689.length]), () => ( 0));
36835
36783
  const sections = _react.useMemo.call(void 0,
36836
36784
  () => [
36837
36785
  {
@@ -36911,7 +36859,7 @@ function DataTableHeader({
36911
36859
  const hasVisibleHeaderCell = headerGroup.headers.some((header) => {
36912
36860
  if (header.isPlaceholder) return false;
36913
36861
  if (isLgUp) return true;
36914
- return Boolean(_optionalChain([header, 'access', _691 => _691.column, 'access', _692 => _692.columnDef, 'access', _693 => _693.meta, 'optionalAccess', _694 => _694.filter]));
36862
+ return Boolean(_optionalChain([header, 'access', _690 => _690.column, 'access', _691 => _691.columnDef, 'access', _692 => _692.meta, 'optionalAccess', _693 => _693.filter]));
36915
36863
  });
36916
36864
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
36917
36865
  "div",
@@ -36941,20 +36889,20 @@ function HeaderCell({ header, isLgUp, sort, onSortChange }) {
36941
36889
  if (header.isPlaceholder) return null;
36942
36890
  const column = header.column;
36943
36891
  const meta = column.columnDef.meta;
36944
- const hasFilter = Boolean(_optionalChain([meta, 'optionalAccess', _695 => _695.filter]));
36945
- const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _696 => _696.align]), () => ( "left"));
36946
- const canSort = _optionalChain([meta, 'optionalAccess', _697 => _697.sortable]) === true;
36947
- const sortDir = _optionalChain([sort, 'optionalAccess', _698 => _698.id]) === column.id ? sort.desc ? "desc" : "asc" : false;
36892
+ const hasFilter = Boolean(_optionalChain([meta, 'optionalAccess', _694 => _694.filter]));
36893
+ const align = _nullishCoalesce(_optionalChain([meta, 'optionalAccess', _695 => _695.align]), () => ( "left"));
36894
+ const canSort = _optionalChain([meta, 'optionalAccess', _696 => _696.sortable]) === true;
36895
+ const sortDir = _optionalChain([sort, 'optionalAccess', _697 => _697.id]) === column.id ? sort.desc ? "desc" : "asc" : false;
36948
36896
  if (!isLgUp && !hasFilter) return null;
36949
36897
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
36950
36898
  "div",
36951
36899
  {
36952
36900
  className: _chunkFIG2RKZFcjs.cn.call(void 0,
36953
36901
  "flex items-stretch",
36954
- isLgUp && (_optionalChain([meta, 'optionalAccess', _699 => _699.width]) || "flex-1 min-w-0"),
36955
- _optionalChain([meta, 'optionalAccess', _700 => _700.headerClassName]),
36902
+ isLgUp && (_optionalChain([meta, 'optionalAccess', _698 => _698.width]) || "flex-1 min-w-0"),
36903
+ _optionalChain([meta, 'optionalAccess', _699 => _699.headerClassName]),
36956
36904
  // Don't apply hide classes if column is filterable on tablet (keep filter accessible)
36957
- !(hasFilter && !isLgUp) && getHideClasses2(_optionalChain([meta, 'optionalAccess', _701 => _701.hideAt]))
36905
+ !(hasFilter && !isLgUp) && getHideClasses2(_optionalChain([meta, 'optionalAccess', _700 => _700.hideAt]))
36958
36906
  ),
36959
36907
  children: hasFilter ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
36960
36908
  DataTableColumnFilter,
@@ -36973,7 +36921,7 @@ function HeaderCell({ header, isLgUp, sort, onSortChange }) {
36973
36921
  isLgUp && alignJustify(align),
36974
36922
  canSort && "group cursor-pointer"
36975
36923
  ),
36976
- onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall', _702 => _702(column.id)]) : void 0,
36924
+ onClick: canSort ? () => _optionalChain([onSortChange, 'optionalCall', _701 => _701(column.id)]) : void 0,
36977
36925
  children: [
36978
36926
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
36979
36927
  canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
@@ -37038,7 +36986,7 @@ function DataTableSkeleton({
37038
36986
  }) {
37039
36987
  const table = useDataTableContext();
37040
36988
  const columns = table.getVisibleFlatColumns();
37041
- const firstColumnId = _optionalChain([columns, 'access', _703 => _703[0], 'optionalAccess', _704 => _704.id]);
36989
+ const firstColumnId = _optionalChain([columns, 'access', _702 => _702[0], 'optionalAccess', _703 => _703.id]);
37042
36990
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
37043
36991
  "div",
37044
36992
  {
@@ -37062,7 +37010,7 @@ function DataTableSkeleton({
37062
37010
  {
37063
37011
  className: _chunkFIG2RKZFcjs.cn.call(void 0,
37064
37012
  "flex flex-col justify-center shrink-0",
37065
- _optionalChain([meta, 'optionalAccess', _705 => _705.width]) || "flex-1"
37013
+ _optionalChain([meta, 'optionalAccess', _704 => _704.width]) || "flex-1"
37066
37014
  ),
37067
37015
  children: [
37068
37016
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-5 bg-ods-bg-surface rounded-sm w-3/4 mb-[var(--spacing-system-xxs)]" }),
@@ -37111,7 +37059,7 @@ function DataTableRowImpl({
37111
37059
  const handleClick = _react.useCallback.call(void 0,
37112
37060
  (e) => {
37113
37061
  const target = e.target;
37114
- if (!_optionalChain([containerRef, 'access', _706 => _706.current, 'optionalAccess', _707 => _707.contains, 'call', _708 => _708(target)])) {
37062
+ if (!_optionalChain([containerRef, 'access', _705 => _705.current, 'optionalAccess', _706 => _706.contains, 'call', _707 => _707(target)])) {
37115
37063
  if (isLinkMode) e.preventDefault();
37116
37064
  return;
37117
37065
  }
@@ -37119,7 +37067,7 @@ function DataTableRowImpl({
37119
37067
  if (isLinkMode) e.preventDefault();
37120
37068
  return;
37121
37069
  }
37122
- _optionalChain([onClick, 'optionalCall', _709 => _709(row.original)]);
37070
+ _optionalChain([onClick, 'optionalCall', _708 => _708(row.original)]);
37123
37071
  },
37124
37072
  [onClick, row.original, isLinkMode]
37125
37073
  );
@@ -37144,10 +37092,10 @@ function DataTableRowImpl({
37144
37092
  {
37145
37093
  className: _chunkFIG2RKZFcjs.cn.call(void 0,
37146
37094
  "flex flex-col overflow-hidden",
37147
- alignJustify(_optionalChain([meta, 'optionalAccess', _710 => _710.align])),
37148
- _optionalChain([meta, 'optionalAccess', _711 => _711.width]) || "flex-1 min-w-0",
37149
- _optionalChain([meta, 'optionalAccess', _712 => _712.cellClassName]),
37150
- getHideClasses2(_optionalChain([meta, 'optionalAccess', _713 => _713.hideAt]))
37095
+ alignJustify(_optionalChain([meta, 'optionalAccess', _709 => _709.align])),
37096
+ _optionalChain([meta, 'optionalAccess', _710 => _710.width]) || "flex-1 min-w-0",
37097
+ _optionalChain([meta, 'optionalAccess', _711 => _711.cellClassName]),
37098
+ getHideClasses2(_optionalChain([meta, 'optionalAccess', _712 => _712.hideAt]))
37151
37099
  ),
37152
37100
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CellContent, { children: _reacttable.flexRender.call(void 0, cell.column.columnDef.cell, cell.getContext()) })
37153
37101
  },
@@ -37226,7 +37174,7 @@ function DataTableBody({
37226
37174
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkFIG2RKZFcjs.cn.call(void 0, "flex flex-col gap-[var(--spacing-system-xsf)] w-full", className), children: [
37227
37175
  rows.map((row, index) => {
37228
37176
  const item = row.original;
37229
- const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall', _714 => _714(item)]), () => ( void 0));
37177
+ const href = _nullishCoalesce(_optionalChain([rowHref, 'optionalCall', _713 => _713(item)]), () => ( void 0));
37230
37178
  const cls = typeof rowClassName === "function" ? rowClassName(item, index) : rowClassName;
37231
37179
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
37232
37180
  DataTableRow,
@@ -37236,7 +37184,7 @@ function DataTableBody({
37236
37184
  href,
37237
37185
  compact,
37238
37186
  className: cls,
37239
- subRow: _optionalChain([renderSubRow, 'optionalCall', _715 => _715(item)])
37187
+ subRow: _optionalChain([renderSubRow, 'optionalCall', _714 => _714(item)])
37240
37188
  },
37241
37189
  row.id
37242
37190
  );
@@ -37291,7 +37239,7 @@ function DataTableInfiniteFooter({
37291
37239
  if (!sentinel) return;
37292
37240
  const observer = new IntersectionObserver(
37293
37241
  (entries) => {
37294
- if (_optionalChain([entries, 'access', _716 => _716[0], 'optionalAccess', _717 => _717.isIntersecting])) onLoadMoreRef.current();
37242
+ if (_optionalChain([entries, 'access', _715 => _715[0], 'optionalAccess', _716 => _716.isIntersecting])) onLoadMoreRef.current();
37295
37243
  },
37296
37244
  { rootMargin }
37297
37245
  );
@@ -37339,7 +37287,7 @@ function DataTableRowCount({
37339
37287
  const table = useDataTableContext();
37340
37288
  const count = _nullishCoalesce(totalCount, () => ( table.getRowModel().rows.length));
37341
37289
  if (hideWhenEmpty && count === 0) return null;
37342
- const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _718 => _718(count, itemName)]), () => ( (count === 1 ? itemName : `${itemName}s`)));
37290
+ const label = _nullishCoalesce(_optionalChain([pluralize, 'optionalCall', _717 => _717(count, itemName)]), () => ( (count === 1 ? itemName : `${itemName}s`)));
37343
37291
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
37344
37292
  "span",
37345
37293
  {
@@ -37498,7 +37446,7 @@ function SearchInput({
37498
37446
  if (!showHiddenTags) return;
37499
37447
  const handleClick = (e) => {
37500
37448
  const target = e.target;
37501
- if (!_optionalChain([hiddenTagsRef, 'access', _719 => _719.current, 'optionalAccess', _720 => _720.contains, 'call', _721 => _721(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _722 => _722.current, 'optionalAccess', _723 => _723.contains, 'call', _724 => _724(target)])) {
37449
+ if (!_optionalChain([hiddenTagsRef, 'access', _718 => _718.current, 'optionalAccess', _719 => _719.contains, 'call', _720 => _720(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _721 => _721.current, 'optionalAccess', _722 => _722.contains, 'call', _723 => _723(target)])) {
37502
37450
  setShowHiddenTags(false);
37503
37451
  }
37504
37452
  };
@@ -37546,10 +37494,10 @@ function SearchInput({
37546
37494
  } else {
37547
37495
  setInternalValue("");
37548
37496
  }
37549
- _optionalChain([inputRef, 'access', _725 => _725.current, 'optionalAccess', _726 => _726.focus, 'call', _727 => _727()]);
37497
+ _optionalChain([inputRef, 'access', _724 => _724.current, 'optionalAccess', _725 => _725.focus, 'call', _726 => _726()]);
37550
37498
  };
37551
37499
  const handleResultClick = (result, e) => {
37552
- _optionalChain([onResultSelect, 'optionalCall', _728 => _728(
37500
+ _optionalChain([onResultSelect, 'optionalCall', _727 => _727(
37553
37501
  result,
37554
37502
  e ? {
37555
37503
  metaKey: e.metaKey,
@@ -37581,7 +37529,7 @@ function SearchInput({
37581
37529
  if (highlightedIndex >= 0 && flatResults[highlightedIndex]) {
37582
37530
  handleResultClick(flatResults[highlightedIndex]);
37583
37531
  } else {
37584
- _optionalChain([onSubmit, 'optionalCall', _729 => _729(currentValue)]);
37532
+ _optionalChain([onSubmit, 'optionalCall', _728 => _728(currentValue)]);
37585
37533
  }
37586
37534
  break;
37587
37535
  case "Escape":
@@ -37659,7 +37607,7 @@ function SearchInput({
37659
37607
  dropdownVisible && "!border-ods-accent"
37660
37608
  ),
37661
37609
  onClick: () => {
37662
- _optionalChain([inputRef, 'access', _730 => _730.current, 'optionalAccess', _731 => _731.focus, 'call', _732 => _732()]);
37610
+ _optionalChain([inputRef, 'access', _729 => _729.current, 'optionalAccess', _730 => _730.focus, 'call', _731 => _731()]);
37663
37611
  setIsOpen(true);
37664
37612
  },
37665
37613
  children: [
@@ -37743,10 +37691,10 @@ function SearchInput({
37743
37691
  align: "start",
37744
37692
  onOpenAutoFocus: (e) => {
37745
37693
  e.preventDefault();
37746
- _optionalChain([inputRef, 'access', _733 => _733.current, 'optionalAccess', _734 => _734.focus, 'call', _735 => _735()]);
37694
+ _optionalChain([inputRef, 'access', _732 => _732.current, 'optionalAccess', _733 => _733.focus, 'call', _734 => _734()]);
37747
37695
  },
37748
37696
  onInteractOutside: (e) => {
37749
- if (_optionalChain([containerRef, 'access', _736 => _736.current, 'optionalAccess', _737 => _737.contains, 'call', _738 => _738(e.target)])) {
37697
+ if (_optionalChain([containerRef, 'access', _735 => _735.current, 'optionalAccess', _736 => _736.contains, 'call', _737 => _737(e.target)])) {
37750
37698
  e.preventDefault();
37751
37699
  }
37752
37700
  },
@@ -37763,10 +37711,10 @@ function SearchInput({
37763
37711
  ref: hiddenTagsPopupRef,
37764
37712
  items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
37765
37713
  style: {
37766
- left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([containerRef, 'access', _739 => _739.current, 'optionalAccess', _740 => _740.getBoundingClientRect, 'call', _741 => _741(), 'access', _742 => _742.left]), () => ( 0))) : 0
37714
+ left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([containerRef, 'access', _738 => _738.current, 'optionalAccess', _739 => _739.getBoundingClientRect, 'call', _740 => _740(), 'access', _741 => _741.left]), () => ( 0))) : 0
37767
37715
  },
37768
37716
  onRemove: (value2) => {
37769
- _optionalChain([onFilterRemove, 'optionalCall', _743 => _743(value2)]);
37717
+ _optionalChain([onFilterRemove, 'optionalCall', _742 => _742(value2)]);
37770
37718
  if (hiddenCount <= 1) setShowHiddenTags(false);
37771
37719
  }
37772
37720
  }
@@ -37817,7 +37765,7 @@ function FilterListItem({
37817
37765
  }) {
37818
37766
  const handleToggle = () => {
37819
37767
  if (disabled) return;
37820
- _optionalChain([onToggle, 'optionalCall', _744 => _744(!selected)]);
37768
+ _optionalChain([onToggle, 'optionalCall', _743 => _743(!selected)]);
37821
37769
  };
37822
37770
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
37823
37771
  "div",
@@ -37864,7 +37812,7 @@ function FilterListItem({
37864
37812
  CheckboxPrimitive4.Root,
37865
37813
  {
37866
37814
  checked: selected,
37867
- onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall', _745 => _745(c === true)]),
37815
+ onCheckedChange: (c) => _optionalChain([onToggle, 'optionalCall', _744 => _744(c === true)]),
37868
37816
  onClick: (e) => e.stopPropagation(),
37869
37817
  disabled,
37870
37818
  "aria-label": title,
@@ -37963,7 +37911,7 @@ function TagSearchInput({
37963
37911
  if (!showHiddenTags) return;
37964
37912
  const handleClick = (e) => {
37965
37913
  const target = e.target;
37966
- if (!_optionalChain([hiddenTagsRef, 'access', _746 => _746.current, 'optionalAccess', _747 => _747.contains, 'call', _748 => _748(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _749 => _749.current, 'optionalAccess', _750 => _750.contains, 'call', _751 => _751(target)])) {
37914
+ if (!_optionalChain([hiddenTagsRef, 'access', _745 => _745.current, 'optionalAccess', _746 => _746.contains, 'call', _747 => _747(target)]) && !_optionalChain([hiddenTagsPopupRef, 'access', _748 => _748.current, 'optionalAccess', _749 => _749.contains, 'call', _750 => _750(target)])) {
37967
37915
  setShowHiddenTags(false);
37968
37916
  }
37969
37917
  };
@@ -37979,13 +37927,13 @@ function TagSearchInput({
37979
37927
  e.preventDefault();
37980
37928
  onSubmit(searchValue);
37981
37929
  }
37982
- _optionalChain([onKeyDown, 'optionalCall', _752 => _752(e)]);
37930
+ _optionalChain([onKeyDown, 'optionalCall', _751 => _751(e)]);
37983
37931
  };
37984
37932
  const handleClearAll = (e) => {
37985
37933
  e.stopPropagation();
37986
37934
  e.preventDefault();
37987
- _optionalChain([onClearAll, 'optionalCall', _753 => _753()]);
37988
- _optionalChain([inputRef, 'access', _754 => _754.current, 'optionalAccess', _755 => _755.focus, 'call', _756 => _756()]);
37935
+ _optionalChain([onClearAll, 'optionalCall', _752 => _752()]);
37936
+ _optionalChain([inputRef, 'access', _753 => _753.current, 'optionalAccess', _754 => _754.focus, 'call', _755 => _755()]);
37989
37937
  };
37990
37938
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: wrapperRef, className: "relative", children: [
37991
37939
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
@@ -38002,7 +37950,7 @@ function TagSearchInput({
38002
37950
  className
38003
37951
  ),
38004
37952
  onClick: () => {
38005
- if (!disabled) _optionalChain([inputRef, 'access', _757 => _757.current, 'optionalAccess', _758 => _758.focus, 'call', _759 => _759()]);
37953
+ if (!disabled) _optionalChain([inputRef, 'access', _756 => _756.current, 'optionalAccess', _757 => _757.focus, 'call', _758 => _758()]);
38006
37954
  },
38007
37955
  children: [
38008
37956
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 flex items-center pl-3", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWZW7C7TFcjs.SearchIcon, { className: "text-ods-text-secondary size-4 md:size-6" }) }),
@@ -38074,7 +38022,7 @@ function TagSearchInput({
38074
38022
  items: hiddenTags,
38075
38023
  disabled,
38076
38024
  style: {
38077
- left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([wrapperRef, 'access', _760 => _760.current, 'optionalAccess', _761 => _761.getBoundingClientRect, 'call', _762 => _762(), 'access', _763 => _763.left]), () => ( 0))) : 0
38025
+ left: badgeRef.current ? badgeRef.current.getBoundingClientRect().left - (_nullishCoalesce(_optionalChain([wrapperRef, 'access', _759 => _759.current, 'optionalAccess', _760 => _760.getBoundingClientRect, 'call', _761 => _761(), 'access', _762 => _762.left]), () => ( 0))) : 0
38078
38026
  },
38079
38027
  onRemove: (value) => {
38080
38028
  onTagRemove(value);
@@ -38175,7 +38123,7 @@ function MarkdownEditor({
38175
38123
  const [defaultExtraCommands, setDefaultExtraCommands] = _react.useState.call(void 0, []);
38176
38124
  _react.useEffect.call(void 0, () => {
38177
38125
  Promise.resolve().then(() => _interopRequireWildcard(require("@uiw/react-md-editor"))).then((mod) => {
38178
- if (_optionalChain([mod, 'access', _764 => _764.commands, 'optionalAccess', _765 => _765.getExtraCommands])) {
38126
+ if (_optionalChain([mod, 'access', _763 => _763.commands, 'optionalAccess', _764 => _764.getExtraCommands])) {
38179
38127
  setDefaultExtraCommands(mod.commands.getExtraCommands());
38180
38128
  }
38181
38129
  });
@@ -38209,7 +38157,7 @@ function MarkdownEditor({
38209
38157
  const isImage = file.type.startsWith("image/");
38210
38158
  const markdown = isImage ? `![${file.name}](${url})` : `[${file.name}](${url})`;
38211
38159
  insertTextAtCursor(markdown);
38212
- _optionalChain([onFileUploaded, 'optionalCall', _766 => _766(url, file.name)]);
38160
+ _optionalChain([onFileUploaded, 'optionalCall', _765 => _765(url, file.name)]);
38213
38161
  } catch (error) {
38214
38162
  console.error("File upload failed:", error);
38215
38163
  setUploadProgress("Upload failed. Please try again.");
@@ -38222,7 +38170,7 @@ function MarkdownEditor({
38222
38170
  );
38223
38171
  const handleFileInputChange = _react.useCallback.call(void 0,
38224
38172
  (e) => {
38225
- const file = _optionalChain([e, 'access', _767 => _767.target, 'access', _768 => _768.files, 'optionalAccess', _769 => _769[0]]);
38173
+ const file = _optionalChain([e, 'access', _766 => _766.target, 'access', _767 => _767.files, 'optionalAccess', _768 => _768[0]]);
38226
38174
  if (file) {
38227
38175
  handleFileUpload(file);
38228
38176
  e.target.value = "";
@@ -38233,7 +38181,7 @@ function MarkdownEditor({
38233
38181
  const handlePaste = _react.useCallback.call(void 0,
38234
38182
  (e) => {
38235
38183
  if (!onUploadFile) return;
38236
- const items = _optionalChain([e, 'access', _770 => _770.clipboardData, 'optionalAccess', _771 => _771.items]);
38184
+ const items = _optionalChain([e, 'access', _769 => _769.clipboardData, 'optionalAccess', _770 => _770.items]);
38237
38185
  if (!items) return;
38238
38186
  for (const item of items) {
38239
38187
  if (item.type.startsWith("image/")) {
@@ -38258,7 +38206,7 @@ function MarkdownEditor({
38258
38206
  buttonProps: { "aria-label": "Upload file", title: "Upload file" },
38259
38207
  icon: isUploading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "w-3 h-3 animate-spin" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Upload, { className: "w-3 h-3" }),
38260
38208
  execute: () => {
38261
- _optionalChain([fileInputRef, 'access', _772 => _772.current, 'optionalAccess', _773 => _773.click, 'call', _774 => _774()]);
38209
+ _optionalChain([fileInputRef, 'access', _771 => _771.current, 'optionalAccess', _772 => _772.click, 'call', _773 => _773()]);
38262
38210
  }
38263
38211
  } : null;
38264
38212
  const extraCommands = uploadCommand ? [...defaultExtraCommands, uploadCommand] : defaultExtraCommands;
@@ -38270,7 +38218,7 @@ function MarkdownEditor({
38270
38218
  const EDGE_ZONE = 60;
38271
38219
  const MAX_SCROLL_SPEED = 15;
38272
38220
  const findScrollParent = _react.useCallback.call(void 0, (el) => {
38273
- let node = _optionalChain([el, 'optionalAccess', _775 => _775.parentElement]);
38221
+ let node = _optionalChain([el, 'optionalAccess', _774 => _774.parentElement]);
38274
38222
  while (node && node !== document.documentElement) {
38275
38223
  const { overflowY } = window.getComputedStyle(node);
38276
38224
  if ((overflowY === "auto" || overflowY === "scroll") && node.scrollHeight > node.clientHeight) {
@@ -38413,7 +38361,7 @@ function matchesAccept(file, accept) {
38413
38361
  });
38414
38362
  }
38415
38363
  function dragHasFiles(e) {
38416
- const types = _optionalChain([e, 'access', _776 => _776.dataTransfer, 'optionalAccess', _777 => _777.types]);
38364
+ const types = _optionalChain([e, 'access', _775 => _775.dataTransfer, 'optionalAccess', _776 => _776.types]);
38417
38365
  if (!types) return false;
38418
38366
  for (let i = 0; i < types.length; i++) {
38419
38367
  if (types[i] === "Files") return true;
@@ -38509,7 +38457,7 @@ function FileUpload({
38509
38457
  e.stopPropagation();
38510
38458
  setDragActive(false);
38511
38459
  if (disabled) return;
38512
- if (_optionalChain([e, 'access', _778 => _778.dataTransfer, 'access', _779 => _779.files, 'optionalAccess', _780 => _780.length])) {
38460
+ if (_optionalChain([e, 'access', _777 => _777.dataTransfer, 'access', _778 => _778.files, 'optionalAccess', _779 => _779.length])) {
38513
38461
  handleFiles(e.dataTransfer.files);
38514
38462
  }
38515
38463
  };
@@ -38537,7 +38485,7 @@ function FileUpload({
38537
38485
  e.preventDefault();
38538
38486
  dragCounter = 0;
38539
38487
  setDragActive(false);
38540
- if (_optionalChain([e, 'access', _781 => _781.dataTransfer, 'optionalAccess', _782 => _782.files, 'optionalAccess', _783 => _783.length])) {
38488
+ if (_optionalChain([e, 'access', _780 => _780.dataTransfer, 'optionalAccess', _781 => _781.files, 'optionalAccess', _782 => _782.length])) {
38541
38489
  handleFilesRef.current(e.dataTransfer.files);
38542
38490
  }
38543
38491
  };
@@ -38559,7 +38507,7 @@ function FileUpload({
38559
38507
  };
38560
38508
  }, [acceptWindowDrops, disabled]);
38561
38509
  const handleFileSelect = (e) => {
38562
- if (_optionalChain([e, 'access', _784 => _784.target, 'access', _785 => _785.files, 'optionalAccess', _786 => _786.length])) {
38510
+ if (_optionalChain([e, 'access', _783 => _783.target, 'access', _784 => _784.files, 'optionalAccess', _785 => _785.length])) {
38563
38511
  handleFiles(e.target.files);
38564
38512
  }
38565
38513
  };
@@ -38576,7 +38524,7 @@ function FileUpload({
38576
38524
  };
38577
38525
  const openDialog = async () => {
38578
38526
  if (disabled) return;
38579
- _optionalChain([fileInputRef, 'access', _787 => _787.current, 'optionalAccess', _788 => _788.click, 'call', _789 => _789()]);
38527
+ _optionalChain([fileInputRef, 'access', _786 => _786.current, 'optionalAccess', _787 => _787.click, 'call', _788 => _788()]);
38580
38528
  };
38581
38529
  const displayError = error || validationError || void 0;
38582
38530
  const hasFiles = isManaged ? managedFiles.length > 0 : files.length > 0;
@@ -38638,7 +38586,7 @@ function FileUpload({
38638
38586
  "button",
38639
38587
  {
38640
38588
  type: "button",
38641
- onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall', _790 => _790(entry.id)]),
38589
+ onClick: () => _optionalChain([onRemoveManagedFile, 'optionalCall', _789 => _789(entry.id)]),
38642
38590
  className: "shrink-0 text-ods-error hover:opacity-80 transition-opacity",
38643
38591
  "aria-label": `Remove ${entry.fileName}`,
38644
38592
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.TrashIcon, { className: "size-6" })
@@ -38769,7 +38717,7 @@ function ImageUploader({
38769
38717
  onChange(file);
38770
38718
  };
38771
38719
  const handleFileSelect = (e) => {
38772
- validateAndEmit(_optionalChain([e, 'access', _791 => _791.target, 'access', _792 => _792.files, 'optionalAccess', _793 => _793[0]]));
38720
+ validateAndEmit(_optionalChain([e, 'access', _790 => _790.target, 'access', _791 => _791.files, 'optionalAccess', _792 => _792[0]]));
38773
38721
  if (inputRef.current) inputRef.current.value = "";
38774
38722
  };
38775
38723
  const handleDrag = (e) => {
@@ -38784,11 +38732,11 @@ function ImageUploader({
38784
38732
  e.stopPropagation();
38785
38733
  setDragActive(false);
38786
38734
  if (!interactive) return;
38787
- validateAndEmit(_optionalChain([e, 'access', _794 => _794.dataTransfer, 'access', _795 => _795.files, 'optionalAccess', _796 => _796[0]]));
38735
+ validateAndEmit(_optionalChain([e, 'access', _793 => _793.dataTransfer, 'access', _794 => _794.files, 'optionalAccess', _795 => _795[0]]));
38788
38736
  };
38789
38737
  const openDialog = () => {
38790
38738
  if (!interactive) return;
38791
- _optionalChain([inputRef, 'access', _797 => _797.current, 'optionalAccess', _798 => _798.click, 'call', _799 => _799()]);
38739
+ _optionalChain([inputRef, 'access', _796 => _796.current, 'optionalAccess', _797 => _797.click, 'call', _798 => _798()]);
38792
38740
  };
38793
38741
  const handleRootKeyDown = (e) => {
38794
38742
  if (hasImage || !interactive) return;
@@ -38979,8 +38927,8 @@ function ColorPresetSelect({
38979
38927
  }) {
38980
38928
  const selectedPreset = presets.find((p) => p.key === presetKey);
38981
38929
  const isCustom = !selectedPreset;
38982
- const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _800 => _800.label]), () => ( "Custom"));
38983
- const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _801 => _801.color]), () => ( value));
38930
+ const displayLabel = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _799 => _799.label]), () => ( "Custom"));
38931
+ const displayColor = _nullishCoalesce(_optionalChain([selectedPreset, 'optionalAccess', _800 => _800.color]), () => ( value));
38984
38932
  const groups = [
38985
38933
  {
38986
38934
  items: [
@@ -39270,7 +39218,7 @@ function TicketStatusConfigRow({
39270
39218
  _chunkQJGRP2YEcjs.Input,
39271
39219
  {
39272
39220
  value: name,
39273
- onChange: (e) => _optionalChain([onNameChange, 'optionalCall', _802 => _802(e.target.value)]),
39221
+ onChange: (e) => _optionalChain([onNameChange, 'optionalCall', _801 => _801(e.target.value)]),
39274
39222
  disabled: isSystem,
39275
39223
  readOnly: isSystem,
39276
39224
  "aria-label": "Status name",
@@ -39643,14 +39591,14 @@ function TicketInfoSection({
39643
39591
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
39644
39592
  SquareAvatar,
39645
39593
  {
39646
- src: _optionalChain([organization, 'optionalAccess', _803 => _803.imageSrc]),
39647
- alt: _optionalChain([organization, 'optionalAccess', _804 => _804.name]),
39648
- fallback: _optionalChain([organization, 'optionalAccess', _805 => _805.name]) || "Org",
39594
+ src: _optionalChain([organization, 'optionalAccess', _802 => _802.imageSrc]),
39595
+ alt: _optionalChain([organization, 'optionalAccess', _803 => _803.name]),
39596
+ fallback: _optionalChain([organization, 'optionalAccess', _804 => _804.name]) || "Org",
39649
39597
  size: "md",
39650
39598
  className: "shrink-0"
39651
39599
  }
39652
39600
  ),
39653
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess', _806 => _806.name]) || "Unassigned", label: "Organization" })
39601
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell2, { value: _optionalChain([organization, 'optionalAccess', _805 => _805.name]) || "Unassigned", label: "Organization" })
39654
39602
  ] }),
39655
39603
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: assigned ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
39656
39604
  AssigneeDropdown,
@@ -39671,10 +39619,10 @@ function TicketInfoSection({
39671
39619
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
39672
39620
  InfoCell2,
39673
39621
  {
39674
- value: _optionalChain([device, 'optionalAccess', _807 => _807.name]) || "Unassigned",
39622
+ value: _optionalChain([device, 'optionalAccess', _806 => _806.name]) || "Unassigned",
39675
39623
  label: "Device",
39676
- icon: _optionalChain([device, 'optionalAccess', _808 => _808.icon]),
39677
- onClick: _optionalChain([device, 'optionalAccess', _809 => _809.onClick])
39624
+ icon: _optionalChain([device, 'optionalAccess', _807 => _807.icon]),
39625
+ onClick: _optionalChain([device, 'optionalAccess', _808 => _808.onClick])
39678
39626
  }
39679
39627
  ),
39680
39628
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-4 min-w-0", children: [
@@ -40004,7 +39952,7 @@ function RoadmapCard({
40004
39952
  const compactHref = safeHref(_nullishCoalesce(href, () => ( null)));
40005
39953
  const hasVotes = (_nullishCoalesce(item.upvotes, () => ( 0))) > 0 || (_nullishCoalesce(item.downvotes, () => ( 0))) > 0;
40006
39954
  const hasFigma = !!item.figmaUrl;
40007
- const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access', _810 => _810.screenshots, 'optionalAccess', _811 => _811.length]), () => ( 0))) > 0;
39955
+ const hasScreenshots = (_nullishCoalesce(_optionalChain([item, 'access', _809 => _809.screenshots, 'optionalAccess', _810 => _810.length]), () => ( 0))) > 0;
40008
39956
  const typeLabel = getTaskTypeLabel(item.customItemId);
40009
39957
  const useTypeIcon = cardType === "internal_task" || !iconSrc && item.customItemId != null;
40010
39958
  const body = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
@@ -40023,7 +39971,7 @@ function RoadmapCard({
40023
39971
  unoptimized: true,
40024
39972
  className: "h-8 w-8 object-contain"
40025
39973
  }
40026
- ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-[10px] font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _812 => _812.title, 'optionalAccess', _813 => _813.substring, 'call', _814 => _814(0, 2)]) || "??" })
39974
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-[10px] font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _811 => _811.title, 'optionalAccess', _812 => _812.substring, 'call', _813 => _813(0, 2)]) || "??" })
40027
39975
  }
40028
39976
  ),
40029
39977
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
@@ -40098,7 +40046,7 @@ function RoadmapCard({
40098
40046
  unoptimized: true,
40099
40047
  className: "object-contain p-1"
40100
40048
  }
40101
- ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _815 => _815.title, 'optionalAccess', _816 => _816.substring, 'call', _817 => _817(0, 2)]) || "??" }) }),
40049
+ ) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs font-medium uppercase text-ods-text-secondary", children: _optionalChain([item, 'access', _814 => _814.title, 'optionalAccess', _815 => _815.substring, 'call', _816 => _816(0, 2)]) || "??" }) }),
40102
40050
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 min-w-0 flex flex-col", children: [
40103
40051
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-[48px] flex items-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-h3 text-ods-text-primary tracking-[-0.36px] flex-1 line-clamp-2", children: item.title }) }),
40104
40052
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-[20px] flex items-center", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-h5 text-ods-text-secondary uppercase tracking-[-0.28px] truncate", children: [
@@ -40608,7 +40556,7 @@ function DataRoomDocCard({ item, className, badgeText, anchorProps }) {
40608
40556
  ] }) : null,
40609
40557
  item.preview ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "line-clamp-2 whitespace-pre-wrap break-words text-[13px] leading-5 text-ods-text-secondary", children: item.preview }) }) : null
40610
40558
  ] }),
40611
- _optionalChain([anchorProps, 'optionalAccess', _818 => _818.href]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex shrink-0 items-center self-start h-5 text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "w-3.5 h-3.5" }) }) : null
40559
+ _optionalChain([anchorProps, 'optionalAccess', _817 => _817.href]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex shrink-0 items-center self-start h-5 text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "w-3.5 h-3.5" }) }) : null
40612
40560
  ] });
40613
40561
  if (!anchorProps) {
40614
40562
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `${COMPACT_CARD_OUTER_STATIC} ${_nullishCoalesce(className, () => ( ""))}`, "aria-label": "No link available", children: body });
@@ -40678,7 +40626,7 @@ function getDefaultOptions() {
40678
40626
  // node_modules/date-fns/startOfWeek.mjs
40679
40627
  function startOfWeek(date, options) {
40680
40628
  const defaultOptions2 = getDefaultOptions();
40681
- const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _819 => _819.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _820 => _820.locale, 'optionalAccess', _821 => _821.options, 'optionalAccess', _822 => _822.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _823 => _823.locale, 'optionalAccess', _824 => _824.options, 'optionalAccess', _825 => _825.weekStartsOn]))), () => ( 0));
40629
+ const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _818 => _818.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _819 => _819.locale, 'optionalAccess', _820 => _820.options, 'optionalAccess', _821 => _821.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _822 => _822.locale, 'optionalAccess', _823 => _823.options, 'optionalAccess', _824 => _824.weekStartsOn]))), () => ( 0));
40682
40630
  const _date = toDate(date);
40683
40631
  const day = _date.getDay();
40684
40632
  const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
@@ -40853,7 +40801,7 @@ var formatDistance = (token, count, options) => {
40853
40801
  } else {
40854
40802
  result = tokenValue.other.replace("{{count}}", count.toString());
40855
40803
  }
40856
- if (_optionalChain([options, 'optionalAccess', _826 => _826.addSuffix])) {
40804
+ if (_optionalChain([options, 'optionalAccess', _825 => _825.addSuffix])) {
40857
40805
  if (options.comparison && options.comparison > 0) {
40858
40806
  return "in " + result;
40859
40807
  } else {
@@ -40920,15 +40868,15 @@ var formatRelative = (token, _date, _baseDate, _options) => formatRelativeLocale
40920
40868
  // node_modules/date-fns/locale/_lib/buildLocalizeFn.mjs
40921
40869
  function buildLocalizeFn(args) {
40922
40870
  return (value, options) => {
40923
- const context = _optionalChain([options, 'optionalAccess', _827 => _827.context]) ? String(options.context) : "standalone";
40871
+ const context = _optionalChain([options, 'optionalAccess', _826 => _826.context]) ? String(options.context) : "standalone";
40924
40872
  let valuesArray;
40925
40873
  if (context === "formatting" && args.formattingValues) {
40926
40874
  const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
40927
- const width = _optionalChain([options, 'optionalAccess', _828 => _828.width]) ? String(options.width) : defaultWidth;
40875
+ const width = _optionalChain([options, 'optionalAccess', _827 => _827.width]) ? String(options.width) : defaultWidth;
40928
40876
  valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
40929
40877
  } else {
40930
40878
  const defaultWidth = args.defaultWidth;
40931
- const width = _optionalChain([options, 'optionalAccess', _829 => _829.width]) ? String(options.width) : args.defaultWidth;
40879
+ const width = _optionalChain([options, 'optionalAccess', _828 => _828.width]) ? String(options.width) : args.defaultWidth;
40932
40880
  valuesArray = args.values[width] || args.values[defaultWidth];
40933
40881
  }
40934
40882
  const index = args.argumentCallback ? args.argumentCallback(value) : value;
@@ -41308,7 +41256,7 @@ function getWeekYear(date, options) {
41308
41256
  const _date = toDate(date);
41309
41257
  const year = _date.getFullYear();
41310
41258
  const defaultOptions2 = getDefaultOptions();
41311
- const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _830 => _830.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _831 => _831.locale, 'optionalAccess', _832 => _832.options, 'optionalAccess', _833 => _833.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _834 => _834.locale, 'optionalAccess', _835 => _835.options, 'optionalAccess', _836 => _836.firstWeekContainsDate]))), () => ( 1));
41259
+ const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _829 => _829.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _830 => _830.locale, 'optionalAccess', _831 => _831.options, 'optionalAccess', _832 => _832.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _833 => _833.locale, 'optionalAccess', _834 => _834.options, 'optionalAccess', _835 => _835.firstWeekContainsDate]))), () => ( 1));
41312
41260
  const firstWeekOfNextYear = constructFrom(date, 0);
41313
41261
  firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
41314
41262
  firstWeekOfNextYear.setHours(0, 0, 0, 0);
@@ -41329,7 +41277,7 @@ function getWeekYear(date, options) {
41329
41277
  // node_modules/date-fns/startOfWeekYear.mjs
41330
41278
  function startOfWeekYear(date, options) {
41331
41279
  const defaultOptions2 = getDefaultOptions();
41332
- const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _837 => _837.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _838 => _838.locale, 'optionalAccess', _839 => _839.options, 'optionalAccess', _840 => _840.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _841 => _841.locale, 'optionalAccess', _842 => _842.options, 'optionalAccess', _843 => _843.firstWeekContainsDate]))), () => ( 1));
41280
+ const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _836 => _836.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _837 => _837.locale, 'optionalAccess', _838 => _838.options, 'optionalAccess', _839 => _839.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _840 => _840.locale, 'optionalAccess', _841 => _841.options, 'optionalAccess', _842 => _842.firstWeekContainsDate]))), () => ( 1));
41333
41281
  const year = getWeekYear(date, options);
41334
41282
  const firstWeek = constructFrom(date, 0);
41335
41283
  firstWeek.setFullYear(year, 0, firstWeekContainsDate);
@@ -42144,9 +42092,9 @@ var doubleQuoteRegExp = /''/g;
42144
42092
  var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
42145
42093
  function format(date, formatStr, options) {
42146
42094
  const defaultOptions2 = getDefaultOptions();
42147
- const locale = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _844 => _844.locale]), () => ( defaultOptions2.locale)), () => ( enUS));
42148
- const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _845 => _845.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _846 => _846.locale, 'optionalAccess', _847 => _847.options, 'optionalAccess', _848 => _848.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _849 => _849.locale, 'optionalAccess', _850 => _850.options, 'optionalAccess', _851 => _851.firstWeekContainsDate]))), () => ( 1));
42149
- const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _852 => _852.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _853 => _853.locale, 'optionalAccess', _854 => _854.options, 'optionalAccess', _855 => _855.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _856 => _856.locale, 'optionalAccess', _857 => _857.options, 'optionalAccess', _858 => _858.weekStartsOn]))), () => ( 0));
42095
+ const locale = _nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _843 => _843.locale]), () => ( defaultOptions2.locale)), () => ( enUS));
42096
+ const firstWeekContainsDate = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _844 => _844.firstWeekContainsDate]), () => ( _optionalChain([options, 'optionalAccess', _845 => _845.locale, 'optionalAccess', _846 => _846.options, 'optionalAccess', _847 => _847.firstWeekContainsDate]))), () => ( defaultOptions2.firstWeekContainsDate)), () => ( _optionalChain([defaultOptions2, 'access', _848 => _848.locale, 'optionalAccess', _849 => _849.options, 'optionalAccess', _850 => _850.firstWeekContainsDate]))), () => ( 1));
42097
+ const weekStartsOn = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([options, 'optionalAccess', _851 => _851.weekStartsOn]), () => ( _optionalChain([options, 'optionalAccess', _852 => _852.locale, 'optionalAccess', _853 => _853.options, 'optionalAccess', _854 => _854.weekStartsOn]))), () => ( defaultOptions2.weekStartsOn)), () => ( _optionalChain([defaultOptions2, 'access', _855 => _855.locale, 'optionalAccess', _856 => _856.options, 'optionalAccess', _857 => _857.weekStartsOn]))), () => ( 0));
42150
42098
  const originalDate = toDate(date);
42151
42099
  if (!isValid(originalDate)) {
42152
42100
  throw new RangeError("Invalid time value");
@@ -42187,7 +42135,7 @@ function format(date, formatStr, options) {
42187
42135
  return parts.map((part) => {
42188
42136
  if (!part.isToken) return part.value;
42189
42137
  const token = part.value;
42190
- if (!_optionalChain([options, 'optionalAccess', _859 => _859.useAdditionalWeekYearTokens]) && isProtectedWeekYearToken(token) || !_optionalChain([options, 'optionalAccess', _860 => _860.useAdditionalDayOfYearTokens]) && isProtectedDayOfYearToken(token)) {
42138
+ if (!_optionalChain([options, 'optionalAccess', _858 => _858.useAdditionalWeekYearTokens]) && isProtectedWeekYearToken(token) || !_optionalChain([options, 'optionalAccess', _859 => _859.useAdditionalDayOfYearTokens]) && isProtectedDayOfYearToken(token)) {
42191
42139
  warnOrThrowProtectedError(token, formatStr, String(date));
42192
42140
  }
42193
42141
  const formatter = formatters[token[0]];
@@ -42368,7 +42316,7 @@ function ProgramCard({
42368
42316
  const dur = formatDurationFromRange(w.start_at, w.end_at);
42369
42317
  typeMeta = dur ? `${time} \xB7 ${dur}` : time;
42370
42318
  }
42371
- const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access', _861 => _861.labels, 'optionalAccess', _862 => _862.singular])].filter(
42319
+ const subtitleParts = [itemDate2, typeMeta, _optionalChain([config, 'access', _860 => _860.labels, 'optionalAccess', _861 => _861.singular])].filter(
42372
42320
  (s) => typeof s === "string" && s.length > 0
42373
42321
  );
42374
42322
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "a", { href, target, rel, className: _chunkFIG2RKZFcjs.cn.call(void 0, COMPACT_CARD_OUTER, className), children: [
@@ -42525,7 +42473,7 @@ function ProgramCard({
42525
42473
 
42526
42474
 
42527
42475
  function CampaignCardAdmin({ campaign, className, anchorProps }) {
42528
- const goalsCount = _optionalChain([campaign, 'access', _863 => _863.goals, 'optionalAccess', _864 => _864.length]) || 0;
42476
+ const goalsCount = _optionalChain([campaign, 'access', _862 => _862.goals, 'optionalAccess', _863 => _863.length]) || 0;
42529
42477
  const innerChildren = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
42530
42478
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: COMPACT_CARD_ICON_SLOT, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Megaphone, { className: "h-5 w-5" }) }),
42531
42479
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: COMPACT_CARD_TEXT_COL, children: [
@@ -42687,7 +42635,7 @@ function resolveSourceRowCTA(row, ctx = {}) {
42687
42635
  if (row.path && shouldFallbackToPathNav(row) && !row.externalUrl) {
42688
42636
  const safePath = sanitizePath(row.path);
42689
42637
  if (safePath) {
42690
- const docTarget = row.documentType ? _optionalChain([ctx, 'access', _865 => _865.docPlatformTargets, 'optionalAccess', _866 => _866[row.documentType]]) : void 0;
42638
+ const docTarget = row.documentType ? _optionalChain([ctx, 'access', _864 => _864.docPlatformTargets, 'optionalAccess', _865 => _865[row.documentType]]) : void 0;
42691
42639
  if (docTarget) {
42692
42640
  const seg = docTarget.basePath.split("/").filter(Boolean).join("/");
42693
42641
  const base = `${_chunkFIG2RKZFcjs.getBaseUrl.call(void 0, docTarget.platform)}${seg ? `/${seg}` : ""}/`;
@@ -42902,8 +42850,8 @@ function cardMenuGroups(href, discuss, openDetails) {
42902
42850
  if (href) {
42903
42851
  items.push({
42904
42852
  id: "open-details",
42905
- label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _867 => _867.label]), () => ( "Open Details")),
42906
- icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _868 => _868.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.EyeIcon, { size: 20 }))),
42853
+ label: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _866 => _866.label]), () => ( "Open Details")),
42854
+ icon: _nullishCoalesce(_optionalChain([openDetails, 'optionalAccess', _867 => _867.icon]), () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.EyeIcon, { size: 20 }))),
42907
42855
  // Main row → open the entity (same tab, soft Link nav).
42908
42856
  href,
42909
42857
  // Trailing 40px ↗ side-button → open in a new tab.
@@ -42933,8 +42881,8 @@ function HubspotTicketChatCard({
42933
42881
  isNewTab,
42934
42882
  discuss
42935
42883
  }) {
42936
- const status = typeof _optionalChain([chatRef, 'access', _869 => _869.metadata, 'optionalAccess', _870 => _870.status]) === "string" ? chatRef.metadata.status : void 0;
42937
- const statusLabel = typeof _optionalChain([chatRef, 'access', _871 => _871.metadata, 'optionalAccess', _872 => _872.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
42884
+ const status = typeof _optionalChain([chatRef, 'access', _868 => _868.metadata, 'optionalAccess', _869 => _869.status]) === "string" ? chatRef.metadata.status : void 0;
42885
+ const statusLabel = typeof _optionalChain([chatRef, 'access', _870 => _870.metadata, 'optionalAccess', _871 => _871.statusLabel]) === "string" ? chatRef.metadata.statusLabel : void 0;
42938
42886
  const statusText = _nullishCoalesce(statusLabel, () => ( formatStatusToken(status)));
42939
42887
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
42940
42888
  MingoInfoCard,
@@ -42957,7 +42905,7 @@ function FaqChatCard({
42957
42905
  isNewTab,
42958
42906
  discuss
42959
42907
  }) {
42960
- const section = typeof _optionalChain([chatRef, 'access', _873 => _873.metadata, 'optionalAccess', _874 => _874.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
42908
+ const section = typeof _optionalChain([chatRef, 'access', _872 => _872.metadata, 'optionalAccess', _873 => _873.section]) === "string" ? chatRef.metadata.section.trim() : void 0;
42961
42909
  const statusLabel = section && section.length > 0 ? section : "FAQ";
42962
42910
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
42963
42911
  MingoInfoCard,
@@ -42977,7 +42925,7 @@ function SlackChatCard({
42977
42925
  isNewTab,
42978
42926
  discuss
42979
42927
  }) {
42980
- const channelName = typeof _optionalChain([chatRef, 'access', _875 => _875.metadata, 'optionalAccess', _876 => _876.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
42928
+ const channelName = typeof _optionalChain([chatRef, 'access', _874 => _874.metadata, 'optionalAccess', _875 => _875.channelName]) === "string" ? chatRef.metadata.channelName.trim() : void 0;
42981
42929
  const channelPretty = channelName ? channelName.startsWith("#") ? channelName : `#${channelName}` : void 0;
42982
42930
  const title = channelPretty ? `${chatRef.title} \xB7 ${channelPretty}` : chatRef.title;
42983
42931
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -43017,7 +42965,7 @@ function GenericFinancialChatCard({
43017
42965
  isNewTab,
43018
42966
  discuss
43019
42967
  }) {
43020
- const subtitle = typeof _optionalChain([chatRef, 'access', _877 => _877.metadata, 'optionalAccess', _878 => _878.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
42968
+ const subtitle = typeof _optionalChain([chatRef, 'access', _876 => _876.metadata, 'optionalAccess', _877 => _877.subtitle]) === "string" ? chatRef.metadata.subtitle : void 0;
43021
42969
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
43022
42970
  MingoInfoCard,
43023
42971
  {
@@ -43086,12 +43034,12 @@ function ProductReleaseChatCard({
43086
43034
  discuss
43087
43035
  }) {
43088
43036
  const releaseProps = buildProps(item);
43089
- const status = _optionalChain([item, 'optionalAccess', _879 => _879.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
43037
+ const status = _optionalChain([item, 'optionalAccess', _878 => _878.version]) ? { label: String(item.version), variant: "grey" } : { label: "Release", variant: "grey" };
43090
43038
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
43091
43039
  EntityMingoCard,
43092
43040
  {
43093
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _880 => _880.title]), () => ( "")),
43094
- description: _optionalChain([item, 'optionalAccess', _881 => _881.summary]) || releaseProps.formattedDate || void 0,
43041
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _879 => _879.title]), () => ( "")),
43042
+ description: _optionalChain([item, 'optionalAccess', _880 => _880.summary]) || releaseProps.formattedDate || void 0,
43095
43043
  cover: releaseProps.coverImage || void 0,
43096
43044
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.Rocket02Icon, { size: 24 }),
43097
43045
  status,
@@ -43108,17 +43056,17 @@ function CampaignChatCard({
43108
43056
  isNewTab,
43109
43057
  discuss
43110
43058
  }) {
43111
- const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _882 => _882.goals])) ? item.goals.length : 0;
43059
+ const goalsCount = Array.isArray(_optionalChain([item, 'optionalAccess', _881 => _881.goals])) ? item.goals.length : 0;
43112
43060
  const meta = [
43113
- _optionalChain([item, 'optionalAccess', _883 => _883.start_date]) ? formatDateShort(item.start_date) : null,
43061
+ _optionalChain([item, 'optionalAccess', _882 => _882.start_date]) ? formatDateShort(item.start_date) : null,
43114
43062
  goalsCount > 0 ? `${goalsCount} goal${goalsCount !== 1 ? "s" : ""}` : null,
43115
43063
  "Marketing campaign"
43116
43064
  ].filter(Boolean).join(" \xB7 ");
43117
43065
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
43118
43066
  EntityMingoCard,
43119
43067
  {
43120
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _884 => _884.name]), () => ( "")),
43121
- description: meta || _optionalChain([item, 'optionalAccess', _885 => _885.description]) || void 0,
43068
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _883 => _883.name]), () => ( "")),
43069
+ description: meta || _optionalChain([item, 'optionalAccess', _884 => _884.description]) || void 0,
43122
43070
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.Megaphone01Icon, { size: 24 }),
43123
43071
  chatRef,
43124
43072
  isNewTab,
@@ -43171,14 +43119,14 @@ function BlogChatCard({
43171
43119
  hasEmbeddedVideo,
43172
43120
  discuss
43173
43121
  }) {
43174
- const category = Array.isArray(_optionalChain([item, 'optionalAccess', _886 => _886.categories])) ? _optionalChain([item, 'access', _887 => _887.categories, 'access', _888 => _888.find, 'call', _889 => _889((c) => c && c.name), 'optionalAccess', _890 => _890.name]) : void 0;
43122
+ const category = Array.isArray(_optionalChain([item, 'optionalAccess', _885 => _885.categories])) ? _optionalChain([item, 'access', _886 => _886.categories, 'access', _887 => _887.find, 'call', _888 => _888((c) => c && c.name), 'optionalAccess', _889 => _889.name]) : void 0;
43175
43123
  const status = hasEmbeddedVideo ? { label: "Video", variant: "primary" } : category ? { label: category, variant: "grey" } : void 0;
43176
43124
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
43177
43125
  EntityMingoCard,
43178
43126
  {
43179
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _891 => _891.title]), () => ( "")),
43180
- description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _892 => _892.summary]), () => ( void 0)),
43181
- cover: entityCover(_optionalChain([item, 'optionalAccess', _893 => _893.featured_image]), ogPlaceholder),
43127
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _890 => _890.title]), () => ( "")),
43128
+ description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _891 => _891.summary]), () => ( void 0)),
43129
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _892 => _892.featured_image]), ogPlaceholder),
43182
43130
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.NewspaperIcon, { size: 24 }),
43183
43131
  status,
43184
43132
  chatRef,
@@ -43195,13 +43143,13 @@ function CaseStudyChatCard({
43195
43143
  ogPlaceholder,
43196
43144
  discuss
43197
43145
  }) {
43198
- const meta = [_optionalChain([item, 'optionalAccess', _894 => _894.msp, 'optionalAccess', _895 => _895.name]), _optionalChain([item, 'optionalAccess', _896 => _896.user, 'optionalAccess', _897 => _897.full_name])].filter(Boolean).join(" \xB7 ");
43146
+ const meta = [_optionalChain([item, 'optionalAccess', _893 => _893.msp, 'optionalAccess', _894 => _894.name]), _optionalChain([item, 'optionalAccess', _895 => _895.user, 'optionalAccess', _896 => _896.full_name])].filter(Boolean).join(" \xB7 ");
43199
43147
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
43200
43148
  EntityMingoCard,
43201
43149
  {
43202
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _898 => _898.title]), () => ( "")),
43203
- description: _optionalChain([item, 'optionalAccess', _899 => _899.summary]) || meta || void 0,
43204
- cover: entityCover(_optionalChain([item, 'optionalAccess', _900 => _900.featured_image]), ogPlaceholder),
43150
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _897 => _897.title]), () => ( "")),
43151
+ description: _optionalChain([item, 'optionalAccess', _898 => _898.summary]) || meta || void 0,
43152
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _899 => _899.featured_image]), ogPlaceholder),
43205
43153
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.TrophyIcon, { size: 24 }),
43206
43154
  status: { label: "Case study", variant: "grey" },
43207
43155
  chatRef,
@@ -43218,13 +43166,13 @@ function CustomerInterviewChatCard({
43218
43166
  ogPlaceholder,
43219
43167
  discuss
43220
43168
  }) {
43221
- const meta = [_optionalChain([item, 'optionalAccess', _901 => _901.user, 'optionalAccess', _902 => _902.full_name]), _optionalChain([item, 'optionalAccess', _903 => _903.msp, 'optionalAccess', _904 => _904.name])].filter(Boolean).join(" \xB7 ");
43169
+ const meta = [_optionalChain([item, 'optionalAccess', _900 => _900.user, 'optionalAccess', _901 => _901.full_name]), _optionalChain([item, 'optionalAccess', _902 => _902.msp, 'optionalAccess', _903 => _903.name])].filter(Boolean).join(" \xB7 ");
43222
43170
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
43223
43171
  EntityMingoCard,
43224
43172
  {
43225
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _905 => _905.title]), () => ( "")),
43226
- description: _optionalChain([item, 'optionalAccess', _906 => _906.video_summary]) || meta || void 0,
43227
- cover: entityCover(_optionalChain([item, 'optionalAccess', _907 => _907.featured_image]), ogPlaceholder),
43173
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _904 => _904.title]), () => ( "")),
43174
+ description: _optionalChain([item, 'optionalAccess', _905 => _905.video_summary]) || meta || void 0,
43175
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _906 => _906.featured_image]), ogPlaceholder),
43228
43176
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.MicrophoneIcon, { size: 24 }),
43229
43177
  status: { label: "Interview", variant: "grey" },
43230
43178
  chatRef,
@@ -43241,13 +43189,13 @@ function InvestorUpdateChatCard({
43241
43189
  ogPlaceholder,
43242
43190
  discuss
43243
43191
  }) {
43244
- const title = _optionalChain([item, 'optionalAccess', _908 => _908.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _909 => _909.update_number]), () => ( "?"))}`;
43192
+ const title = _optionalChain([item, 'optionalAccess', _907 => _907.title]) || `Update #${_nullishCoalesce(_optionalChain([item, 'optionalAccess', _908 => _908.update_number]), () => ( "?"))}`;
43245
43193
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
43246
43194
  EntityMingoCard,
43247
43195
  {
43248
43196
  title,
43249
- description: _optionalChain([item, 'optionalAccess', _910 => _910.strategic_update]) || _optionalChain([item, 'optionalAccess', _911 => _911.content]) || formatInvestorUpdatePeriod(_optionalChain([item, 'optionalAccess', _912 => _912.period_start]), _optionalChain([item, 'optionalAccess', _913 => _913.period_end])) || void 0,
43250
- cover: entityCover(_optionalChain([item, 'optionalAccess', _914 => _914.featured_image]), ogPlaceholder),
43197
+ description: _optionalChain([item, 'optionalAccess', _909 => _909.strategic_update]) || _optionalChain([item, 'optionalAccess', _910 => _910.content]) || formatInvestorUpdatePeriod(_optionalChain([item, 'optionalAccess', _911 => _911.period_start]), _optionalChain([item, 'optionalAccess', _912 => _912.period_end])) || void 0,
43198
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _913 => _913.featured_image]), ogPlaceholder),
43251
43199
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.PresentationLineIcon, { size: 24 }),
43252
43200
  status: { label: "Investor update", variant: "grey" },
43253
43201
  chatRef,
@@ -43264,12 +43212,12 @@ function OnboardingGuideChatCard({
43264
43212
  ogPlaceholder,
43265
43213
  discuss
43266
43214
  }) {
43267
- const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _915 => _915.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _916 => _916.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _917 => _917.og_image_url]), ogPlaceholder)));
43215
+ const cover = _nullishCoalesce(_nullishCoalesce(entityCover(_optionalChain([item, 'optionalAccess', _914 => _914.featured_image])), () => ( entityCover(_optionalChain([item, 'optionalAccess', _915 => _915.main_video_thumbnail])))), () => ( entityCover(_optionalChain([item, 'optionalAccess', _916 => _916.og_image_url]), ogPlaceholder)));
43268
43216
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
43269
43217
  EntityMingoCard,
43270
43218
  {
43271
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _918 => _918.title]), () => ( "")),
43272
- description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _919 => _919.summary]), () => ( _optionalChain([item, 'optionalAccess', _920 => _920.description]))), () => ( void 0)),
43219
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _917 => _917.title]), () => ( "")),
43220
+ description: _nullishCoalesce(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _918 => _918.summary]), () => ( _optionalChain([item, 'optionalAccess', _919 => _919.description]))), () => ( void 0)),
43273
43221
  cover,
43274
43222
  fallbackIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.CompassIcon, { size: 24 }),
43275
43223
  status: { label: "Guide", variant: "grey" },
@@ -43290,25 +43238,25 @@ function ProgramChatCard({
43290
43238
  discuss
43291
43239
  }) {
43292
43240
  const icon = configKey === "webinar" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.PresentationBarIcon, { size: 24 }) : configKey === "event" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.CalendarIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.MicrophoneIcon, { size: 24 });
43293
- const isScheduled = _optionalChain([item, 'optionalAccess', _921 => _921.status]) === "scheduled";
43241
+ const isScheduled = _optionalChain([item, 'optionalAccess', _920 => _920.status]) === "scheduled";
43294
43242
  let typeMeta;
43295
- if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess', _922 => _922.duration_seconds]) === "number" && item.duration_seconds > 0 && !isScheduled) {
43243
+ if (configKey === "podcast" && typeof _optionalChain([item, 'optionalAccess', _921 => _921.duration_seconds]) === "number" && item.duration_seconds > 0 && !isScheduled) {
43296
43244
  typeMeta = formatDurationCompact(item.duration_seconds);
43297
- } else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess', _923 => _923.location_name]) === "string" && item.location_name.trim().length > 0) {
43245
+ } else if (configKey === "event" && typeof _optionalChain([item, 'optionalAccess', _922 => _922.location_name]) === "string" && item.location_name.trim().length > 0) {
43298
43246
  typeMeta = item.location_name;
43299
- } else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess', _924 => _924.start_at])) {
43247
+ } else if (configKey === "webinar" && _optionalChain([item, 'optionalAccess', _923 => _923.start_at])) {
43300
43248
  const time = formatTimeWithTimezone(item.start_at, _nullishCoalesce(item.timezone, () => ( null)));
43301
43249
  const dur = formatDurationFromRange(item.start_at, item.end_at);
43302
43250
  typeMeta = dur ? `${time} \xB7 ${dur}` : time;
43303
43251
  }
43304
- const itemDate = formatDateUTC(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _925 => _925.date]), () => ( null)), { fallback: "", timezone: "local" });
43252
+ const itemDate = formatDateUTC(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _924 => _924.date]), () => ( null)), { fallback: "", timezone: "local" });
43305
43253
  const meta = [itemDate, typeMeta].filter(Boolean).join(" \xB7 ");
43306
43254
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
43307
43255
  EntityMingoCard,
43308
43256
  {
43309
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _926 => _926.title]), () => ( "")),
43310
- description: meta || _optionalChain([item, 'optionalAccess', _927 => _927.description]) || void 0,
43311
- cover: entityCover(_optionalChain([item, 'optionalAccess', _928 => _928.cover_url]), ogPlaceholder),
43257
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _925 => _925.title]), () => ( "")),
43258
+ description: meta || _optionalChain([item, 'optionalAccess', _926 => _926.description]) || void 0,
43259
+ cover: entityCover(_optionalChain([item, 'optionalAccess', _927 => _927.cover_url]), ogPlaceholder),
43312
43260
  fallbackIcon: icon,
43313
43261
  status: { label, variant: "grey" },
43314
43262
  chatRef,
@@ -43325,10 +43273,10 @@ function RoadmapChatCard({
43325
43273
  cardType,
43326
43274
  discuss
43327
43275
  }) {
43328
- const logoUrl = typeof _optionalChain([item, 'optionalAccess', _929 => _929.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
43329
- const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _930 => _930.customItemId]) != null;
43276
+ const logoUrl = typeof _optionalChain([item, 'optionalAccess', _928 => _928.icon]) === "string" && item.icon.startsWith("http") ? item.icon : void 0;
43277
+ const useTypeIcon = cardType === "internal_task" || !logoUrl && _optionalChain([item, 'optionalAccess', _929 => _929.customItemId]) != null;
43330
43278
  const defaultIcon = cardType === "delivery_item" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.TruckFastIcon, { size: 24 }) : cardType === "internal_task" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.CheckSquareIcon, { size: 24 }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCCG4DARMcjs.MapIcon, { size: 24 });
43331
- const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _931 => _931.customItemId]), className: "size-6" }) : logoUrl ? (
43279
+ const icon = useTypeIcon ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TaskTypeIcon, { customItemId: _optionalChain([item, 'optionalAccess', _930 => _930.customItemId]), className: "size-6" }) : logoUrl ? (
43332
43280
  // Contained (not full-bleed) so the integration logo keeps its aspect
43333
43281
  // ratio inside the bordered icon box — matches RoadmapCard.
43334
43282
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "img", { src: logoUrl, alt: "", className: "size-6 object-contain" })
@@ -43336,10 +43284,10 @@ function RoadmapChatCard({
43336
43284
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
43337
43285
  EntityMingoCard,
43338
43286
  {
43339
- title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _932 => _932.title]), () => ( "")),
43340
- description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _933 => _933.description]), () => ( void 0)),
43287
+ title: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _931 => _931.title]), () => ( "")),
43288
+ description: _nullishCoalesce(_optionalChain([item, 'optionalAccess', _932 => _932.description]), () => ( void 0)),
43341
43289
  fallbackIcon: icon,
43342
- status: statusPill(_optionalChain([item, 'optionalAccess', _934 => _934.status])),
43290
+ status: statusPill(_optionalChain([item, 'optionalAccess', _933 => _933.status])),
43343
43291
  chatRef,
43344
43292
  isNewTab,
43345
43293
  discuss,
@@ -43425,7 +43373,7 @@ function programRegistryEntries() {
43425
43373
  discuss: opts.discuss,
43426
43374
  configKey: cfg.configKey,
43427
43375
  label: cfg.configKey.charAt(0).toUpperCase() + cfg.configKey.slice(1),
43428
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _935 => _935.extras, 'optionalAccess', _936 => _936.buildOgPlaceholderUrl, 'optionalCall', _937 => _937(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _938 => _938.title]), () => ( "")))]), () => ( null))
43376
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _934 => _934.extras, 'optionalAccess', _935 => _935.buildOgPlaceholderUrl, 'optionalCall', _936 => _936(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _937 => _937.title]), () => ( "")))]), () => ( null))
43429
43377
  }
43430
43378
  )
43431
43379
  };
@@ -43577,8 +43525,8 @@ var CHAT_CARD_REGISTRY = {
43577
43525
  chatRef,
43578
43526
  isNewTab: opts.isNewTab,
43579
43527
  discuss: opts.discuss,
43580
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _939 => _939.extras, 'optionalAccess', _940 => _940.buildOgPlaceholderUrl, 'optionalCall', _941 => _941(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _942 => _942.title]), () => ( "")))]), () => ( null)),
43581
- hasEmbeddedVideo: _optionalChain([chatRef, 'access', _943 => _943.metadata, 'optionalAccess', _944 => _944.hasEmbeddedVideo]) === true
43528
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _938 => _938.extras, 'optionalAccess', _939 => _939.buildOgPlaceholderUrl, 'optionalCall', _940 => _940(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _941 => _941.title]), () => ( "")))]), () => ( null)),
43529
+ hasEmbeddedVideo: _optionalChain([chatRef, 'access', _942 => _942.metadata, 'optionalAccess', _943 => _943.hasEmbeddedVideo]) === true
43582
43530
  }
43583
43531
  )
43584
43532
  },
@@ -43595,7 +43543,7 @@ var CHAT_CARD_REGISTRY = {
43595
43543
  chatRef,
43596
43544
  isNewTab: opts.isNewTab,
43597
43545
  discuss: opts.discuss,
43598
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _945 => _945.extras, 'optionalAccess', _946 => _946.buildOgPlaceholderUrl, 'optionalCall', _947 => _947(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _948 => _948.title]), () => ( "")))]), () => ( null))
43546
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _944 => _944.extras, 'optionalAccess', _945 => _945.buildOgPlaceholderUrl, 'optionalCall', _946 => _946(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _947 => _947.title]), () => ( "")))]), () => ( null))
43599
43547
  }
43600
43548
  )
43601
43549
  },
@@ -43612,7 +43560,7 @@ var CHAT_CARD_REGISTRY = {
43612
43560
  chatRef,
43613
43561
  isNewTab: opts.isNewTab,
43614
43562
  discuss: opts.discuss,
43615
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _949 => _949.extras, 'optionalAccess', _950 => _950.buildOgPlaceholderUrl, 'optionalCall', _951 => _951(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _952 => _952.title]), () => ( "")))]), () => ( null))
43563
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _948 => _948.extras, 'optionalAccess', _949 => _949.buildOgPlaceholderUrl, 'optionalCall', _950 => _950(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _951 => _951.title]), () => ( "")))]), () => ( null))
43616
43564
  }
43617
43565
  )
43618
43566
  },
@@ -43623,7 +43571,7 @@ var CHAT_CARD_REGISTRY = {
43623
43571
  bareInline: true,
43624
43572
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ProductReleaseCardSkeleton, { size: "sm" }),
43625
43573
  render: (item, chatRef, opts) => {
43626
- const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _953 => _953.extras, 'optionalAccess', _954 => _954.buildProductReleaseCardProps]), () => ( defaultBuildProductReleaseCardProps));
43574
+ const builder = _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _952 => _952.extras, 'optionalAccess', _953 => _953.buildProductReleaseCardProps]), () => ( defaultBuildProductReleaseCardProps));
43627
43575
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
43628
43576
  ProductReleaseChatCard,
43629
43577
  {
@@ -43650,7 +43598,7 @@ var CHAT_CARD_REGISTRY = {
43650
43598
  chatRef,
43651
43599
  isNewTab: opts.isNewTab,
43652
43600
  discuss: opts.discuss,
43653
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _955 => _955.extras, 'optionalAccess', _956 => _956.buildOgPlaceholderUrl, 'optionalCall', _957 => _957(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _958 => _958.title]), () => ( "")))]), () => ( null))
43601
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _954 => _954.extras, 'optionalAccess', _955 => _955.buildOgPlaceholderUrl, 'optionalCall', _956 => _956(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _957 => _957.title]), () => ( "")))]), () => ( null))
43654
43602
  }
43655
43603
  )
43656
43604
  },
@@ -43669,7 +43617,7 @@ var CHAT_CARD_REGISTRY = {
43669
43617
  chatRef,
43670
43618
  isNewTab: opts.isNewTab,
43671
43619
  discuss: opts.discuss,
43672
- ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _959 => _959.extras, 'optionalAccess', _960 => _960.buildOgPlaceholderUrl, 'optionalCall', _961 => _961(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _962 => _962.title]), () => ( "")))]), () => ( null))
43620
+ ogPlaceholder: _nullishCoalesce(_optionalChain([opts, 'optionalAccess', _958 => _958.extras, 'optionalAccess', _959 => _959.buildOgPlaceholderUrl, 'optionalCall', _960 => _960(_nullishCoalesce(_optionalChain([item, 'optionalAccess', _961 => _961.title]), () => ( "")))]), () => ( null))
43673
43621
  }
43674
43622
  )
43675
43623
  },
@@ -43681,7 +43629,7 @@ var CHAT_CARD_REGISTRY = {
43681
43629
  skeleton: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CampaignCardAdminSkeleton, {}),
43682
43630
  // No public viewer — synthesize the hub-internal admin URL post-fetch
43683
43631
  // so the wrapper + isNewTab computation see the actual destination.
43684
- fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _963 => _963.id]) ? `/admin/campaigns/${encodeURIComponent(item.id)}` : null,
43632
+ fallbackHref: (item) => _optionalChain([item, 'optionalAccess', _962 => _962.id]) ? `/admin/campaigns/${encodeURIComponent(item.id)}` : null,
43685
43633
  render: (item, chatRef, opts) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
43686
43634
  CampaignChatCard,
43687
43635
  {
@@ -43707,12 +43655,12 @@ function ChatCardNavWrap({
43707
43655
  const onClickCapture = (e) => {
43708
43656
  if (!href) return;
43709
43657
  const targetEl = e.target;
43710
- if (_optionalChain([targetEl, 'optionalAccess', _964 => _964.closest, 'optionalCall', _965 => _965("button")])) return;
43711
- if (!_optionalChain([targetEl, 'optionalAccess', _966 => _966.closest, 'optionalCall', _967 => _967("a")])) return;
43658
+ if (_optionalChain([targetEl, 'optionalAccess', _963 => _963.closest, 'optionalCall', _964 => _964("button")])) return;
43659
+ if (!_optionalChain([targetEl, 'optionalAccess', _965 => _965.closest, 'optionalCall', _966 => _966("a")])) return;
43712
43660
  const handled = handleChatNavClick(e, runtime, { href, path, targetPlatform }, router.push);
43713
43661
  if (!handled) return;
43714
43662
  e.stopPropagation();
43715
- if (!isNewTab && _optionalChain([panel, 'optionalAccess', _968 => _968.closeChat])) panel.closeChat();
43663
+ if (!isNewTab && _optionalChain([panel, 'optionalAccess', _967 => _967.closeChat])) panel.closeChat();
43716
43664
  };
43717
43665
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents", onClickCapture, children });
43718
43666
  }
@@ -43734,7 +43682,7 @@ function ChatCardLoader({
43734
43682
  title: chatRef.title,
43735
43683
  externalUrl: chatRef.url,
43736
43684
  targetPlatform: chatRef.targetPlatform,
43737
- path: typeof _optionalChain([chatRef, 'access', _969 => _969.metadata, 'optionalAccess', _970 => _970.path]) === "string" ? chatRef.metadata.path : null
43685
+ path: typeof _optionalChain([chatRef, 'access', _968 => _968.metadata, 'optionalAccess', _969 => _969.path]) === "string" ? chatRef.metadata.path : null
43738
43686
  },
43739
43687
  sourceRowCtxFromRuntime(runtime, { baseRoute, chipBasePlatform })
43740
43688
  );
@@ -43748,7 +43696,7 @@ function ChatCardLoader({
43748
43696
  const entry = CHAT_CARD_REGISTRY[resolvedChatRef.type];
43749
43697
  const fetchEntry = entry && entry.mode === "fetch" ? entry : null;
43750
43698
  const { item, isLoading } = useChatCardItem(
43751
- _nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _971 => _971.contentRefType]), () => ( "")),
43699
+ _nullishCoalesce(_optionalChain([fetchEntry, 'optionalAccess', _970 => _970.contentRefType]), () => ( "")),
43752
43700
  fetchEntry ? resolvedChatRef.id : ""
43753
43701
  );
43754
43702
  if (!entry) return null;
@@ -43779,7 +43727,7 @@ function ChatCardLoader({
43779
43727
  isNewTab,
43780
43728
  discuss
43781
43729
  };
43782
- const path = typeof _optionalChain([finalChatRef, 'access', _972 => _972.metadata, 'optionalAccess', _973 => _973.path]) === "string" ? finalChatRef.metadata.path : null;
43730
+ const path = typeof _optionalChain([finalChatRef, 'access', _971 => _971.metadata, 'optionalAccess', _972 => _972.path]) === "string" ? finalChatRef.metadata.path : null;
43783
43731
  const navWrap = (children) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
43784
43732
  ChatCardNavWrap,
43785
43733
  {
@@ -44165,7 +44113,7 @@ function useJetStreamDialogSubscription({
44165
44113
  const lifecycle = _chunkPXXS27EEcjs.startConnectionLifecycle.call(void 0, {
44166
44114
  conn: sharedConn,
44167
44115
  wsUrl,
44168
- onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _974 => _974.current, 'optionalCall', _975 => _975()]),
44116
+ onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _973 => _973.current, 'optionalCall', _974 => _974()]),
44169
44117
  backoff: reconnectionBackoffRef.current,
44170
44118
  getFreshUrl: () => getNatsWsUrlRef.current(),
44171
44119
  // JetStream emits 'error' for protocol-level failures (e.g. -ERR Permissions
@@ -44180,7 +44128,7 @@ function useJetStreamDialogSubscription({
44180
44128
  setReconnectionCount((c) => c + 1);
44181
44129
  }
44182
44130
  hadConnectionBeforeRef.current = true;
44183
- _optionalChain([onConnectRef, 'access', _976 => _976.current, 'optionalCall', _977 => _977()]);
44131
+ _optionalChain([onConnectRef, 'access', _975 => _975.current, 'optionalCall', _976 => _976()]);
44184
44132
  }
44185
44133
  if (status === "error") {
44186
44134
  console.warn("[JetStream] NATS protocol error:", evt.data);
@@ -44190,7 +44138,7 @@ function useJetStreamDialogSubscription({
44190
44138
  setIsConnected(false);
44191
44139
  setIsSubscribed(false);
44192
44140
  tearDownSubscription();
44193
- _optionalChain([onDisconnectRef, 'access', _978 => _978.current, 'optionalCall', _979 => _979()]);
44141
+ _optionalChain([onDisconnectRef, 'access', _977 => _977.current, 'optionalCall', _978 => _978()]);
44194
44142
  }
44195
44143
  }
44196
44144
  });
@@ -44269,7 +44217,7 @@ function useJetStreamDialogSubscription({
44269
44217
  }
44270
44218
  subscriptionRef.current = handle;
44271
44219
  setIsSubscribed(true);
44272
- _optionalChain([onSubscribedRef, 'access', _980 => _980.current, 'optionalCall', _981 => _981()]);
44220
+ _optionalChain([onSubscribedRef, 'access', _979 => _979.current, 'optionalCall', _980 => _980()]);
44273
44221
  } catch (e44) {
44274
44222
  if (!cancelled) {
44275
44223
  setIsSubscribed(false);
@@ -44382,20 +44330,20 @@ function useNatsDialogSubscription({
44382
44330
  const tearDownSubscriptions = () => {
44383
44331
  subscriptionRefs.current.forEach((sub) => {
44384
44332
  try {
44385
- _optionalChain([sub, 'optionalAccess', _982 => _982.unsubscribe, 'call', _983 => _983()]);
44333
+ _optionalChain([sub, 'optionalAccess', _981 => _981.unsubscribe, 'call', _982 => _982()]);
44386
44334
  } catch (e46) {
44387
44335
  }
44388
44336
  });
44389
44337
  subscriptionRefs.current.clear();
44390
44338
  lastSubscribedDialogIdRef.current = null;
44391
- _optionalChain([abortControllerRef, 'access', _984 => _984.current, 'optionalAccess', _985 => _985.abort, 'call', _986 => _986()]);
44339
+ _optionalChain([abortControllerRef, 'access', _983 => _983.current, 'optionalAccess', _984 => _984.abort, 'call', _985 => _985()]);
44392
44340
  abortControllerRef.current = null;
44393
44341
  };
44394
44342
  const isDisconnectStatus = (status) => status === "closed" || status === "disconnected";
44395
44343
  const lifecycle = _chunkPXXS27EEcjs.startConnectionLifecycle.call(void 0, {
44396
44344
  conn: sharedConn,
44397
44345
  wsUrl,
44398
- onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _987 => _987.current, 'optionalCall', _988 => _988()]),
44346
+ onBeforeReconnect: () => _optionalChain([onBeforeReconnectRef, 'access', _986 => _986.current, 'optionalCall', _987 => _987()]),
44399
44347
  backoff: reconnectionBackoffRef.current,
44400
44348
  getFreshUrl: () => getNatsWsUrlRef.current(),
44401
44349
  shouldRetryOn: isDisconnectStatus,
@@ -44406,7 +44354,7 @@ function useNatsDialogSubscription({
44406
44354
  setReconnectionCount((c) => c + 1);
44407
44355
  }
44408
44356
  hadConnectionBeforeRef.current = true;
44409
- _optionalChain([onConnectRef, 'access', _989 => _989.current, 'optionalCall', _990 => _990()]);
44357
+ _optionalChain([onConnectRef, 'access', _988 => _988.current, 'optionalCall', _989 => _989()]);
44410
44358
  }
44411
44359
  if (status === "error") {
44412
44360
  console.warn("[NATS] protocol error:", evt.data);
@@ -44416,7 +44364,7 @@ function useNatsDialogSubscription({
44416
44364
  setIsConnected(false);
44417
44365
  setIsSubscribed(false);
44418
44366
  tearDownSubscriptions();
44419
- _optionalChain([onDisconnectRef, 'access', _991 => _991.current, 'optionalCall', _992 => _992()]);
44367
+ _optionalChain([onDisconnectRef, 'access', _990 => _990.current, 'optionalCall', _991 => _991()]);
44420
44368
  }
44421
44369
  }
44422
44370
  });
@@ -44447,13 +44395,13 @@ function useNatsDialogSubscription({
44447
44395
  setIsSubscribed(false);
44448
44396
  subscriptionRefs.current.forEach((sub) => {
44449
44397
  try {
44450
- _optionalChain([sub, 'optionalAccess', _993 => _993.unsubscribe, 'call', _994 => _994()]);
44398
+ _optionalChain([sub, 'optionalAccess', _992 => _992.unsubscribe, 'call', _993 => _993()]);
44451
44399
  } catch (e47) {
44452
44400
  }
44453
44401
  });
44454
44402
  subscriptionRefs.current.clear();
44455
44403
  lastSubscribedDialogIdRef.current = null;
44456
- _optionalChain([abortControllerRef, 'access', _995 => _995.current, 'optionalAccess', _996 => _996.abort, 'call', _997 => _997()]);
44404
+ _optionalChain([abortControllerRef, 'access', _994 => _994.current, 'optionalAccess', _995 => _995.abort, 'call', _996 => _996()]);
44457
44405
  abortControllerRef.current = null;
44458
44406
  }
44459
44407
  return;
@@ -44465,12 +44413,12 @@ function useNatsDialogSubscription({
44465
44413
  if (subscriptionRefs.current.size > 0) {
44466
44414
  subscriptionRefs.current.forEach((sub) => {
44467
44415
  try {
44468
- _optionalChain([sub, 'optionalAccess', _998 => _998.unsubscribe, 'call', _999 => _999()]);
44416
+ _optionalChain([sub, 'optionalAccess', _997 => _997.unsubscribe, 'call', _998 => _998()]);
44469
44417
  } catch (e48) {
44470
44418
  }
44471
44419
  });
44472
44420
  subscriptionRefs.current.clear();
44473
- _optionalChain([abortControllerRef, 'access', _1000 => _1000.current, 'optionalAccess', _1001 => _1001.abort, 'call', _1002 => _1002()]);
44421
+ _optionalChain([abortControllerRef, 'access', _999 => _999.current, 'optionalAccess', _1000 => _1000.abort, 'call', _1001 => _1001()]);
44474
44422
  }
44475
44423
  abortControllerRef.current = new AbortController();
44476
44424
  const abort = abortControllerRef.current;
@@ -44502,7 +44450,7 @@ function useNatsDialogSubscription({
44502
44450
  });
44503
44451
  lastSubscribedDialogIdRef.current = dialogId;
44504
44452
  setIsSubscribed(true);
44505
- _optionalChain([onSubscribedRef, 'access', _1003 => _1003.current, 'optionalCall', _1004 => _1004()]);
44453
+ _optionalChain([onSubscribedRef, 'access', _1002 => _1002.current, 'optionalCall', _1003 => _1003()]);
44506
44454
  };
44507
44455
  if (isConnectedRef.current) {
44508
44456
  createSubscriptions();
@@ -44512,7 +44460,7 @@ function useNatsDialogSubscription({
44512
44460
  abort.abort();
44513
44461
  subscriptionRefs.current.forEach((sub) => {
44514
44462
  try {
44515
- _optionalChain([sub, 'optionalAccess', _1005 => _1005.unsubscribe, 'call', _1006 => _1006()]);
44463
+ _optionalChain([sub, 'optionalAccess', _1004 => _1004.unsubscribe, 'call', _1005 => _1005()]);
44516
44464
  } catch (e50) {
44517
44465
  }
44518
44466
  });
@@ -44553,7 +44501,7 @@ function useNatsDialogSubscription({
44553
44501
  });
44554
44502
  lastSubscribedDialogIdRef.current = dialogId2;
44555
44503
  setIsSubscribed(true);
44556
- _optionalChain([onSubscribedRef, 'access', _1007 => _1007.current, 'optionalCall', _1008 => _1008()]);
44504
+ _optionalChain([onSubscribedRef, 'access', _1006 => _1006.current, 'optionalCall', _1007 => _1007()]);
44557
44505
  } else if (subscriptionRefs.current.size > 0) {
44558
44506
  setIsSubscribed(true);
44559
44507
  }
@@ -44561,10 +44509,10 @@ function useNatsDialogSubscription({
44561
44509
  return { isConnected, isSubscribed, reconnectionCount };
44562
44510
  }
44563
44511
  function buildNatsWsUrl(apiBaseUrl, options) {
44564
- const path = _optionalChain([options, 'optionalAccess', _1009 => _1009.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
44512
+ const path = _optionalChain([options, 'optionalAccess', _1008 => _1008.source]) === "dashboard" ? "/ws/nats-api" : "/ws/nats";
44565
44513
  const u = new URL(path, apiBaseUrl);
44566
44514
  u.protocol = u.protocol === "https:" ? "wss:" : "ws:";
44567
- if (_optionalChain([options, 'optionalAccess', _1010 => _1010.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _1011 => _1011.token])) {
44515
+ if (_optionalChain([options, 'optionalAccess', _1009 => _1009.includeAuthParam]) && _optionalChain([options, 'optionalAccess', _1010 => _1010.token])) {
44568
44516
  u.searchParams.set("authorization", options.token);
44569
44517
  }
44570
44518
  return u.toString();
@@ -44700,7 +44648,7 @@ function parseChunkToAction(chunk) {
44700
44648
  // is REQUIRED on `ChatContextItem`, so fall back to the id (same as the
44701
44649
  // historical path in `process-historical-messages.ts`) — keeps both
44702
44650
  // message sources producing an identical shape.
44703
- contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _1012 => _1012.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _1013 => _1013.id]) === "string").map((it) => ({ type: it.type, id: it.id, label: it.id })) : void 0
44651
+ contextItems: Array.isArray(data.contextItems) ? data.contextItems.filter((it) => typeof _optionalChain([it, 'optionalAccess', _1011 => _1011.type]) === "string" && typeof _optionalChain([it, 'optionalAccess', _1012 => _1012.id]) === "string").map((it) => ({ type: it.type, id: it.id, label: it.id })) : void 0
44704
44652
  };
44705
44653
  case MESSAGE_TYPE.TOKEN_USAGE:
44706
44654
  return {
@@ -44892,8 +44840,8 @@ var MessageSegmentAccumulator = class {
44892
44840
  type: "tool_execution",
44893
44841
  data: {
44894
44842
  ...toolData,
44895
- toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _1014 => _1014.data, 'access', _1015 => _1015.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _1016 => _1016.toolTitle]))),
44896
- parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _1017 => _1017.parameters])
44843
+ toolTitle: _nullishCoalesce(_nullishCoalesce(toolData.toolTitle, () => ( _optionalChain([existingExecuting, 'optionalAccess', _1013 => _1013.data, 'access', _1014 => _1014.toolTitle]))), () => ( _optionalChain([executingTool, 'optionalAccess', _1015 => _1015.toolTitle]))),
44844
+ parameters: toolData.parameters || _optionalChain([executingTool, 'optionalAccess', _1016 => _1016.parameters])
44897
44845
  }
44898
44846
  };
44899
44847
  if (existingIndex !== -1) {
@@ -44917,8 +44865,8 @@ var MessageSegmentAccumulator = class {
44917
44865
  if (seg.type !== "approval_batch") return seg;
44918
44866
  const hasCall = seg.data.toolCalls.some((c) => c.toolExecutionRequestId === execId);
44919
44867
  if (!hasCall) return seg;
44920
- const prev = _optionalChain([seg, 'access', _1018 => _1018.data, 'access', _1019 => _1019.executions, 'optionalAccess', _1020 => _1020[execId]]);
44921
- const next = toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prev, 'optionalAccess', _1021 => _1021.result]), success: _optionalChain([prev, 'optionalAccess', _1022 => _1022.success]) };
44868
+ const prev = _optionalChain([seg, 'access', _1017 => _1017.data, 'access', _1018 => _1018.executions, 'optionalAccess', _1019 => _1019[execId]]);
44869
+ const next = toolData.type === "EXECUTED_TOOL" ? { status: "done", result: toolData.result, success: toolData.success } : { status: "executing", result: _optionalChain([prev, 'optionalAccess', _1020 => _1020.result]), success: _optionalChain([prev, 'optionalAccess', _1021 => _1021.success]) };
44922
44870
  matched = true;
44923
44871
  return {
44924
44872
  ...seg,
@@ -45040,10 +44988,10 @@ var MessageSegmentAccumulator = class {
45040
44988
  const segment = {
45041
44989
  type: "approval_request",
45042
44990
  data: {
45043
- command: _optionalChain([pendingApproval, 'optionalAccess', _1023 => _1023.command]) || "",
45044
- explanation: _optionalChain([pendingApproval, 'optionalAccess', _1024 => _1024.explanation]),
44991
+ command: _optionalChain([pendingApproval, 'optionalAccess', _1022 => _1022.command]) || "",
44992
+ explanation: _optionalChain([pendingApproval, 'optionalAccess', _1023 => _1023.explanation]),
45045
44993
  requestId,
45046
- approvalType: _optionalChain([pendingApproval, 'optionalAccess', _1025 => _1025.approvalType]) || approvalType
44994
+ approvalType: _optionalChain([pendingApproval, 'optionalAccess', _1024 => _1024.approvalType]) || approvalType
45047
44995
  },
45048
44996
  status,
45049
44997
  onApprove: this.callbacks.onApprove,
@@ -45235,7 +45183,7 @@ function useRealtimeChunkProcessor(options) {
45235
45183
  if (initialState.escalatedApprovals) {
45236
45184
  pendingEscalatedRef.current = new Map(initialState.escalatedApprovals);
45237
45185
  initialState.escalatedApprovals.forEach((data, requestId) => {
45238
- _optionalChain([callbacks, 'access', _1026 => _1026.onEscalatedApproval, 'optionalCall', _1027 => _1027(requestId, data)]);
45186
+ _optionalChain([callbacks, 'access', _1025 => _1025.onEscalatedApproval, 'optionalCall', _1026 => _1026(requestId, data)]);
45239
45187
  });
45240
45188
  }
45241
45189
  hasEverStreamedRef.current = true;
@@ -45256,12 +45204,12 @@ function useRealtimeChunkProcessor(options) {
45256
45204
  if (!action) return;
45257
45205
  const accumulator = accumulatorRef.current;
45258
45206
  const streamSeq = chunk && typeof chunk === "object" && typeof chunk.streamSeq === "number" ? chunk.streamSeq : void 0;
45259
- const emitSegments = (s, meta) => _optionalChain([callbacks, 'access', _1028 => _1028.onSegmentsUpdate, 'optionalCall', _1029 => _1029(s, streamSeq != null ? { ...meta, streamSeq } : meta)]);
45207
+ const emitSegments = (s, meta) => _optionalChain([callbacks, 'access', _1027 => _1027.onSegmentsUpdate, 'optionalCall', _1028 => _1028(s, streamSeq != null ? { ...meta, streamSeq } : meta)]);
45260
45208
  if (action.action === "direct_message") sawDirectMessageRef.current = true;
45261
45209
  if ((directModeFlagRef.current || sawDirectMessageRef.current) && !DIRECT_MODE_ALLOWED.has(action.action)) {
45262
45210
  if (isInStreamRef.current) {
45263
45211
  isInStreamRef.current = false;
45264
- _optionalChain([callbacks, 'access', _1030 => _1030.onStreamEnd, 'optionalCall', _1031 => _1031()]);
45212
+ _optionalChain([callbacks, 'access', _1029 => _1029.onStreamEnd, 'optionalCall', _1030 => _1030()]);
45265
45213
  accumulator.resetSegments();
45266
45214
  }
45267
45215
  return;
@@ -45270,16 +45218,16 @@ function useRealtimeChunkProcessor(options) {
45270
45218
  case "message_start":
45271
45219
  isInStreamRef.current = true;
45272
45220
  hasEverStreamedRef.current = true;
45273
- _optionalChain([callbacks, 'access', _1032 => _1032.onStreamStart, 'optionalCall', _1033 => _1033()]);
45221
+ _optionalChain([callbacks, 'access', _1031 => _1031.onStreamStart, 'optionalCall', _1032 => _1032()]);
45274
45222
  accumulator.resetSegments();
45275
45223
  break;
45276
45224
  case "message_end":
45277
45225
  isInStreamRef.current = false;
45278
- _optionalChain([callbacks, 'access', _1034 => _1034.onStreamEnd, 'optionalCall', _1035 => _1035()]);
45226
+ _optionalChain([callbacks, 'access', _1033 => _1033.onStreamEnd, 'optionalCall', _1034 => _1034()]);
45279
45227
  accumulator.resetSegments();
45280
45228
  break;
45281
45229
  case "metadata":
45282
- _optionalChain([callbacks, 'access', _1036 => _1036.onMetadata, 'optionalCall', _1037 => _1037(action)]);
45230
+ _optionalChain([callbacks, 'access', _1035 => _1035.onMetadata, 'optionalCall', _1036 => _1036(action)]);
45283
45231
  break;
45284
45232
  case "text": {
45285
45233
  const segments = accumulator.appendText(action.text);
@@ -45322,7 +45270,7 @@ function useRealtimeChunkProcessor(options) {
45322
45270
  emitSegments(segments);
45323
45271
  } else {
45324
45272
  pendingEscalatedRef.current.set(requestId, { command, explanation, approvalType });
45325
- _optionalChain([callbacks, 'access', _1038 => _1038.onEscalatedApproval, 'optionalCall', _1039 => _1039(requestId, { command, explanation, approvalType })]);
45273
+ _optionalChain([callbacks, 'access', _1037 => _1037.onEscalatedApproval, 'optionalCall', _1038 => _1038(requestId, { command, explanation, approvalType })]);
45326
45274
  }
45327
45275
  break;
45328
45276
  }
@@ -45334,13 +45282,13 @@ function useRealtimeChunkProcessor(options) {
45334
45282
  const summary = required ? getCommandText(required) : `Batch of ${toolCalls.length} tool calls`;
45335
45283
  pendingEscalatedRef.current.set(requestId, {
45336
45284
  command: summary,
45337
- explanation: _optionalChain([required, 'optionalAccess', _1040 => _1040.toolExplanation]),
45285
+ explanation: _optionalChain([required, 'optionalAccess', _1039 => _1039.toolExplanation]),
45338
45286
  approvalType,
45339
45287
  toolCalls
45340
45288
  });
45341
- _optionalChain([callbacks, 'access', _1041 => _1041.onEscalatedApproval, 'optionalCall', _1042 => _1042(requestId, {
45289
+ _optionalChain([callbacks, 'access', _1040 => _1040.onEscalatedApproval, 'optionalCall', _1041 => _1041(requestId, {
45342
45290
  command: summary,
45343
- explanation: _optionalChain([required, 'optionalAccess', _1043 => _1043.toolExplanation]),
45291
+ explanation: _optionalChain([required, 'optionalAccess', _1042 => _1042.toolExplanation]),
45344
45292
  approvalType
45345
45293
  })]);
45346
45294
  break;
@@ -45370,7 +45318,7 @@ function useRealtimeChunkProcessor(options) {
45370
45318
  const status = approved ? "approved" : "rejected";
45371
45319
  if (escalatedData) {
45372
45320
  pendingEscalatedRef.current.delete(requestId);
45373
- _optionalChain([callbacks, 'access', _1044 => _1044.onEscalatedApprovalResult, 'optionalCall', _1045 => _1045(requestId, approved, {
45321
+ _optionalChain([callbacks, 'access', _1043 => _1043.onEscalatedApprovalResult, 'optionalCall', _1044 => _1044(requestId, approved, {
45374
45322
  command: escalatedData.command,
45375
45323
  explanation: escalatedData.explanation,
45376
45324
  approvalType: escalatedData.approvalType
@@ -45416,29 +45364,29 @@ function useRealtimeChunkProcessor(options) {
45416
45364
  emitSegments(accumulator.getSegments());
45417
45365
  }
45418
45366
  }
45419
- _optionalChain([callbacks, 'access', _1046 => _1046.onApprovalResolved, 'optionalCall', _1047 => _1047(requestId, status, approvalType, resolvedByName)]);
45367
+ _optionalChain([callbacks, 'access', _1045 => _1045.onApprovalResolved, 'optionalCall', _1046 => _1046(requestId, status, approvalType, resolvedByName)]);
45420
45368
  break;
45421
45369
  }
45422
45370
  case "error": {
45423
45371
  let message2;
45424
- if ("details" in action && _optionalChain([action, 'optionalAccess', _1048 => _1048.details])) {
45372
+ if ("details" in action && _optionalChain([action, 'optionalAccess', _1047 => _1047.details])) {
45425
45373
  try {
45426
- message2 = _optionalChain([JSON, 'access', _1049 => _1049.parse, 'call', _1050 => _1050(action.details), 'optionalAccess', _1051 => _1051.error, 'optionalAccess', _1052 => _1052.message]);
45374
+ message2 = _optionalChain([JSON, 'access', _1048 => _1048.parse, 'call', _1049 => _1049(action.details), 'optionalAccess', _1050 => _1050.error, 'optionalAccess', _1051 => _1051.message]);
45427
45375
  } catch (e52) {
45428
45376
  message2 = action.details;
45429
45377
  }
45430
45378
  }
45431
45379
  const segments = accumulator.addError(action.error, message2);
45432
45380
  emitSegments(segments);
45433
- _optionalChain([callbacks, 'access', _1053 => _1053.onError, 'optionalCall', _1054 => _1054(action.error, message2)]);
45381
+ _optionalChain([callbacks, 'access', _1052 => _1052.onError, 'optionalCall', _1053 => _1053(action.error, message2)]);
45434
45382
  break;
45435
45383
  }
45436
45384
  case "system": {
45437
- _optionalChain([callbacks, 'access', _1055 => _1055.onSystemMessage, 'optionalCall', _1056 => _1056(action.text, { streamSeq })]);
45385
+ _optionalChain([callbacks, 'access', _1054 => _1054.onSystemMessage, 'optionalCall', _1055 => _1055(action.text, { streamSeq })]);
45438
45386
  break;
45439
45387
  }
45440
45388
  case "direct_message": {
45441
- _optionalChain([callbacks, 'access', _1057 => _1057.onDirectMessage, 'optionalCall', _1058 => _1058(action.text, {
45389
+ _optionalChain([callbacks, 'access', _1056 => _1056.onDirectMessage, 'optionalCall', _1057 => _1057(action.text, {
45442
45390
  ownerType: action.ownerType,
45443
45391
  displayName: action.displayName,
45444
45392
  userId: action.userId,
@@ -45447,7 +45395,7 @@ function useRealtimeChunkProcessor(options) {
45447
45395
  break;
45448
45396
  }
45449
45397
  case "message_request":
45450
- _optionalChain([callbacks, 'access', _1059 => _1059.onUserMessage, 'optionalCall', _1060 => _1060(action.text, {
45398
+ _optionalChain([callbacks, 'access', _1058 => _1058.onUserMessage, 'optionalCall', _1059 => _1059(action.text, {
45451
45399
  ownerType: action.ownerType,
45452
45400
  displayName: action.displayName,
45453
45401
  userId: action.userId,
@@ -45456,7 +45404,7 @@ function useRealtimeChunkProcessor(options) {
45456
45404
  })]);
45457
45405
  break;
45458
45406
  case "token_usage":
45459
- _optionalChain([callbacks, 'access', _1061 => _1061.onTokenUsage, 'optionalCall', _1062 => _1062(action.data)]);
45407
+ _optionalChain([callbacks, 'access', _1060 => _1060.onTokenUsage, 'optionalCall', _1061 => _1061(action.data)]);
45460
45408
  break;
45461
45409
  case "context_compaction_start": {
45462
45410
  const standalone = !isInStreamRef.current;
@@ -45471,7 +45419,7 @@ function useRealtimeChunkProcessor(options) {
45471
45419
  break;
45472
45420
  }
45473
45421
  case "dialog_closed":
45474
- _optionalChain([callbacks, 'access', _1063 => _1063.onDialogClosed, 'optionalCall', _1064 => _1064()]);
45422
+ _optionalChain([callbacks, 'access', _1062 => _1062.onDialogClosed, 'optionalCall', _1063 => _1063()]);
45475
45423
  break;
45476
45424
  default:
45477
45425
  break;
@@ -45518,7 +45466,7 @@ async function fetchSlashCommands(prefix, signal, commandsUrl) {
45518
45466
  const data = await res.json();
45519
45467
  return _nullishCoalesce(data.commands, () => ( []));
45520
45468
  } catch (err) {
45521
- if (_optionalChain([err, 'optionalAccess', _1065 => _1065.name]) === "AbortError") throw err;
45469
+ if (_optionalChain([err, 'optionalAccess', _1064 => _1064.name]) === "AbortError") throw err;
45522
45470
  console.warn("[chat] slash-commands fetch failed, showing none:", err);
45523
45471
  return [];
45524
45472
  }
@@ -45539,7 +45487,7 @@ function useSlashCommands(prefix, commandsUrl) {
45539
45487
  const next = await fetchSlashCommands(prefix, ctrl.signal, commandsUrl);
45540
45488
  if (!cancelled) setCommands(next);
45541
45489
  } catch (err) {
45542
- if (!cancelled && _optionalChain([err, 'optionalAccess', _1066 => _1066.name]) !== "AbortError") {
45490
+ if (!cancelled && _optionalChain([err, 'optionalAccess', _1065 => _1065.name]) !== "AbortError") {
45543
45491
  console.warn("[use-slash-commands] fetch failed:", err);
45544
45492
  }
45545
45493
  } finally {
@@ -45558,7 +45506,7 @@ function useSlashCommandRegistry(commandsUrl, options) {
45558
45506
  const query = _reactquery.useQuery.call(void 0, {
45559
45507
  queryKey: ["chat-slash-commands", commandsUrl],
45560
45508
  queryFn: ({ signal }) => fetchSlashCommands("", signal, commandsUrl),
45561
- enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1067 => _1067.enabled]), () => ( true)),
45509
+ enabled: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1066 => _1066.enabled]), () => ( true)),
45562
45510
  staleTime: Infinity,
45563
45511
  gcTime: Infinity,
45564
45512
  // The commands registry is non-critical chrome — a failure degrades to an
@@ -45597,21 +45545,21 @@ async function fetchEmptyStateConfig(signal, emptyStateUrl) {
45597
45545
  }
45598
45546
  const data = await res.json();
45599
45547
  return {
45600
- name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1068 => _1068.name]), () => ( null)),
45601
- icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1069 => _1069.icon]), () => ( null)),
45602
- greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1070 => _1070.greeting]), () => ( null)),
45603
- enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1071 => _1071.enabledRagTableIds]), () => ( [])),
45604
- quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1072 => _1072.quickActions]), () => ( [])),
45605
- suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1073 => _1073.suggestedQueries]), () => ( []))
45548
+ name: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1067 => _1067.name]), () => ( null)),
45549
+ icon: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1068 => _1068.icon]), () => ( null)),
45550
+ greeting: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1069 => _1069.greeting]), () => ( null)),
45551
+ enabledRagTableIds: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1070 => _1070.enabledRagTableIds]), () => ( [])),
45552
+ quickActions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1071 => _1071.quickActions]), () => ( [])),
45553
+ suggestedQueries: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _1072 => _1072.suggestedQueries]), () => ( []))
45606
45554
  };
45607
45555
  } catch (err) {
45608
- if (_optionalChain([err, 'optionalAccess', _1074 => _1074.name]) === "AbortError") throw err;
45556
+ if (_optionalChain([err, 'optionalAccess', _1073 => _1073.name]) === "AbortError") throw err;
45609
45557
  console.warn("[chat] empty-state config fetch failed, using neutral defaults:", err);
45610
45558
  return EMPTY_STATE_FALLBACK;
45611
45559
  }
45612
45560
  }
45613
45561
  function useEmptyStateConfig(emptyStateUrl, options) {
45614
- const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1075 => _1075.enabled]), () => ( true))) && !!emptyStateUrl;
45562
+ const enabled = (_nullishCoalesce(_optionalChain([options, 'optionalAccess', _1074 => _1074.enabled]), () => ( true))) && !!emptyStateUrl;
45615
45563
  const query = _reactquery.useQuery.call(void 0, {
45616
45564
  queryKey: ["chat-empty-state", emptyStateUrl],
45617
45565
  queryFn: ({ signal }) => fetchEmptyStateConfig(signal, emptyStateUrl),
@@ -45640,7 +45588,7 @@ var CHAT_ATTACHMENT_MAX_SIZE_BYTES = 25 * 1024 * 1024;
45640
45588
  var STORAGE_CACHE_CONTROL_IMMUTABLE = "public, max-age=31536000, immutable";
45641
45589
  function uploadWithProgress(url, file, token, onProgress, signal) {
45642
45590
  return new Promise((resolve, reject) => {
45643
- if (_optionalChain([signal, 'optionalAccess', _1076 => _1076.aborted])) {
45591
+ if (_optionalChain([signal, 'optionalAccess', _1075 => _1075.aborted])) {
45644
45592
  reject(new Error("Upload cancelled"));
45645
45593
  return;
45646
45594
  }
@@ -45654,7 +45602,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
45654
45602
  xhr.removeEventListener("error", handleError);
45655
45603
  xhr.removeEventListener("abort", handleAbort);
45656
45604
  xhr.removeEventListener("timeout", handleTimeout);
45657
- _optionalChain([signal, 'optionalAccess', _1077 => _1077.removeEventListener, 'call', _1078 => _1078("abort", handleSignalAbort)]);
45605
+ _optionalChain([signal, 'optionalAccess', _1076 => _1076.removeEventListener, 'call', _1077 => _1077("abort", handleSignalAbort)]);
45658
45606
  if (xhr.readyState !== XMLHttpRequest.DONE) xhr.abort();
45659
45607
  };
45660
45608
  const handleProgress = (event) => {
@@ -45690,7 +45638,7 @@ function uploadWithProgress(url, file, token, onProgress, signal) {
45690
45638
  const handleSignalAbort = () => {
45691
45639
  xhr.abort();
45692
45640
  };
45693
- _optionalChain([signal, 'optionalAccess', _1079 => _1079.addEventListener, 'call', _1080 => _1080("abort", handleSignalAbort, { once: true })]);
45641
+ _optionalChain([signal, 'optionalAccess', _1078 => _1078.addEventListener, 'call', _1079 => _1079("abort", handleSignalAbort, { once: true })]);
45694
45642
  xhr.upload.addEventListener("progress", handleProgress);
45695
45643
  xhr.addEventListener("load", handleLoad);
45696
45644
  xhr.addEventListener("error", handleError);
@@ -45734,12 +45682,12 @@ function useChatAttachments() {
45734
45682
  try {
45735
45683
  sniffed = await _filetype.fileTypeFromBlob.call(void 0, att.file);
45736
45684
  } catch (err) {
45737
- if (_optionalChain([ctrl, 'optionalAccess', _1081 => _1081.signal, 'access', _1082 => _1082.aborted])) return;
45685
+ if (_optionalChain([ctrl, 'optionalAccess', _1080 => _1080.signal, 'access', _1081 => _1081.aborted])) return;
45738
45686
  throw new Error(
45739
45687
  `Could not read file content: ${err instanceof Error ? err.message : String(err)}`
45740
45688
  );
45741
45689
  }
45742
- if (_optionalChain([ctrl, 'optionalAccess', _1083 => _1083.signal, 'access', _1084 => _1084.aborted])) return;
45690
+ if (_optionalChain([ctrl, 'optionalAccess', _1082 => _1082.signal, 'access', _1083 => _1083.aborted])) return;
45743
45691
  if (!sniffed) {
45744
45692
  throw new Error("Unrecognized file format");
45745
45693
  }
@@ -45753,7 +45701,7 @@ function useChatAttachments() {
45753
45701
  const urlResp = await _chunkGPX5I7FTcjs.embedAuthedFetch.call(void 0, uploadUrlEndpoint, {
45754
45702
  method: "POST",
45755
45703
  headers: { "Content-Type": "application/json" },
45756
- signal: _optionalChain([ctrl, 'optionalAccess', _1085 => _1085.signal]),
45704
+ signal: _optionalChain([ctrl, 'optionalAccess', _1084 => _1084.signal]),
45757
45705
  body: JSON.stringify({
45758
45706
  fileName: att.file.name,
45759
45707
  // Pass the SNIFFED MIME (not `file.type`, which can be a
@@ -45779,9 +45727,9 @@ function useChatAttachments() {
45779
45727
  (pct) => {
45780
45728
  updateOne(att.id, { progress: pct });
45781
45729
  },
45782
- _optionalChain([ctrl, 'optionalAccess', _1086 => _1086.signal])
45730
+ _optionalChain([ctrl, 'optionalAccess', _1085 => _1085.signal])
45783
45731
  );
45784
- if (_optionalChain([ctrl, 'optionalAccess', _1087 => _1087.signal, 'access', _1088 => _1088.aborted])) return;
45732
+ if (_optionalChain([ctrl, 'optionalAccess', _1086 => _1086.signal, 'access', _1087 => _1087.aborted])) return;
45785
45733
  updateOne(att.id, {
45786
45734
  status: "ready",
45787
45735
  progress: 100,
@@ -45789,7 +45737,7 @@ function useChatAttachments() {
45789
45737
  viewToken: mintData.viewToken
45790
45738
  });
45791
45739
  } catch (err) {
45792
- if (_optionalChain([ctrl, 'optionalAccess', _1089 => _1089.signal, 'access', _1090 => _1090.aborted])) return;
45740
+ if (_optionalChain([ctrl, 'optionalAccess', _1088 => _1088.signal, 'access', _1089 => _1089.aborted])) return;
45793
45741
  const message2 = err instanceof Error ? err.message : String(err);
45794
45742
  updateOne(att.id, { status: "error", progress: 0, errorMessage: message2 });
45795
45743
  } finally {
@@ -45940,7 +45888,7 @@ var ANON_DEFAULTS = {
45940
45888
  function useResolveChatIdentity(enabled) {
45941
45889
  const runtime = _chunk3KEBI6TPcjs.useRequiredChatRuntime.call(void 0, );
45942
45890
  const url = runtime.endpoints.identityUrl;
45943
- const proxyEmail = _nullishCoalesce(_optionalChain([_chunkGPX5I7FTcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _1091 => _1091.email]), () => ( null));
45891
+ const proxyEmail = _nullishCoalesce(_optionalChain([_chunkGPX5I7FTcjs.getEmbedProxyAuth.call(void 0, ), 'optionalAccess', _1090 => _1090.email]), () => ( null));
45944
45892
  const [data, setData] = _react.useState.call(void 0, ANON_DEFAULTS);
45945
45893
  const [isLoading, setIsLoading] = _react.useState.call(void 0, enabled);
45946
45894
  _react.useEffect.call(void 0, () => {
@@ -46031,7 +45979,7 @@ function useSSE({ useMock = true, debugMode = false, streamFn } = {}) {
46031
45979
  yield chunk;
46032
45980
  }
46033
45981
  } catch (err) {
46034
- if (_optionalChain([err, 'optionalAccess', _1092 => _1092.name]) === "AbortError" || ctrl.signal.aborted) {
45982
+ if (_optionalChain([err, 'optionalAccess', _1091 => _1091.name]) === "AbortError" || ctrl.signal.aborted) {
46035
45983
  return;
46036
45984
  }
46037
45985
  const errorMessage = err instanceof Error ? err.message : "An error occurred";
@@ -46082,7 +46030,7 @@ function useChat({
46082
46030
  const onMessagesChangeRef = _react.useRef.call(void 0, onMessagesChange);
46083
46031
  onMessagesChangeRef.current = onMessagesChange;
46084
46032
  _react.useEffect.call(void 0, () => {
46085
- _optionalChain([onMessagesChangeRef, 'access', _1093 => _1093.current, 'optionalCall', _1094 => _1094(messages)]);
46033
+ _optionalChain([onMessagesChangeRef, 'access', _1092 => _1092.current, 'optionalCall', _1093 => _1093(messages)]);
46086
46034
  }, [messages]);
46087
46035
  const {
46088
46036
  streamMessage,
@@ -46119,7 +46067,7 @@ function useChat({
46119
46067
  name: "You",
46120
46068
  content: text,
46121
46069
  timestamp: /* @__PURE__ */ new Date(),
46122
- ..._optionalChain([options, 'optionalAccess', _1095 => _1095.hidden]) ? { hidden: true } : {}
46070
+ ..._optionalChain([options, 'optionalAccess', _1094 => _1094.hidden]) ? { hidden: true } : {}
46123
46071
  };
46124
46072
  addMessage(userMessage);
46125
46073
  setIsTyping(true);
@@ -46181,7 +46129,7 @@ function useChat({
46181
46129
  currentTextSegment = "";
46182
46130
  }
46183
46131
  const seg = segment;
46184
- const proposalId = _optionalChain([seg, 'access', _1096 => _1096.data, 'optionalAccess', _1097 => _1097.requestId]);
46132
+ const proposalId = _optionalChain([seg, 'access', _1095 => _1095.data, 'optionalAccess', _1096 => _1096.requestId]);
46185
46133
  const updateApprovalMessage = (transform) => {
46186
46134
  setMessages((prev) => {
46187
46135
  for (let i = prev.length - 1; i >= 0; i--) {
@@ -46190,7 +46138,7 @@ function useChat({
46190
46138
  if (!Array.isArray(m.content)) continue;
46191
46139
  const segments = m.content;
46192
46140
  const hasMatch = segments.some(
46193
- (s) => s.type === "approval_request" && _optionalChain([s, 'access', _1098 => _1098.data, 'optionalAccess', _1099 => _1099.requestId]) === proposalId
46141
+ (s) => s.type === "approval_request" && _optionalChain([s, 'access', _1097 => _1097.data, 'optionalAccess', _1098 => _1098.requestId]) === proposalId
46194
46142
  );
46195
46143
  if (!hasMatch) continue;
46196
46144
  const next = [...prev];
@@ -46232,11 +46180,11 @@ function useChat({
46232
46180
  if (!Array.isArray(m.content)) continue;
46233
46181
  const segments = m.content;
46234
46182
  const hasMatch = segments.some(
46235
- (s) => s.type === "approval_request" && _optionalChain([s, 'access', _1100 => _1100.data, 'optionalAccess', _1101 => _1101.requestId]) === decision.proposalId
46183
+ (s) => s.type === "approval_request" && _optionalChain([s, 'access', _1099 => _1099.data, 'optionalAccess', _1100 => _1100.requestId]) === decision.proposalId
46236
46184
  );
46237
46185
  if (!hasMatch) continue;
46238
46186
  const flipped = segments.map(
46239
- (s) => s.type === "approval_request" && _optionalChain([s, 'access', _1102 => _1102.data, 'optionalAccess', _1103 => _1103.requestId]) === decision.proposalId ? { ...s, status: decision.action } : s
46187
+ (s) => s.type === "approval_request" && _optionalChain([s, 'access', _1101 => _1101.data, 'optionalAccess', _1102 => _1102.requestId]) === decision.proposalId ? { ...s, status: decision.action } : s
46240
46188
  );
46241
46189
  const next = [...prev];
46242
46190
  next[i] = { ...m, content: flipped };
@@ -46398,8 +46346,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
46398
46346
  })),
46399
46347
  { role: "user", content: message2 }
46400
46348
  ];
46401
- const targetPath = _optionalChain([extra, 'optionalAccess', _1104 => _1104.approvalAction]) ? endpoints.approvalToolUrl : endpoints.chatStreamUrl;
46402
- const requestBody = _optionalChain([extra, 'optionalAccess', _1105 => _1105.approvalAction]) ? {
46349
+ const targetPath = _optionalChain([extra, 'optionalAccess', _1103 => _1103.approvalAction]) ? endpoints.approvalToolUrl : endpoints.chatStreamUrl;
46350
+ const requestBody = _optionalChain([extra, 'optionalAccess', _1104 => _1104.approvalAction]) ? {
46403
46351
  proposal_id: extra.approvalAction.proposalId,
46404
46352
  action: extra.approvalAction.action,
46405
46353
  messages: currentMessages.filter((m) => (m.role === "user" || m.role === "assistant") && !m.hidden).map((m) => ({
@@ -46408,8 +46356,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
46408
46356
  }))
46409
46357
  } : {
46410
46358
  messages: apiMessages,
46411
- ..._optionalChain([extra, 'optionalAccess', _1106 => _1106.commandOverride]) ? { commandOverride: extra.commandOverride } : {},
46412
- ..._optionalChain([extra, 'optionalAccess', _1107 => _1107.pendingAttachments]) && extra.pendingAttachments.length > 0 ? { pendingAttachments: extra.pendingAttachments } : {}
46359
+ ..._optionalChain([extra, 'optionalAccess', _1105 => _1105.commandOverride]) ? { commandOverride: extra.commandOverride } : {},
46360
+ ..._optionalChain([extra, 'optionalAccess', _1106 => _1106.pendingAttachments]) && extra.pendingAttachments.length > 0 ? { pendingAttachments: extra.pendingAttachments } : {}
46413
46361
  };
46414
46362
  const response = await _chunkGPX5I7FTcjs.embedAuthedFetch.call(void 0, targetPath, {
46415
46363
  method: "POST",
@@ -46419,7 +46367,7 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
46419
46367
  if (!response.ok) {
46420
46368
  throw new Error(`Chat request failed: ${response.status}`);
46421
46369
  }
46422
- const reader = _optionalChain([response, 'access', _1108 => _1108.body, 'optionalAccess', _1109 => _1109.getReader, 'call', _1110 => _1110()]);
46370
+ const reader = _optionalChain([response, 'access', _1107 => _1107.body, 'optionalAccess', _1108 => _1108.getReader, 'call', _1109 => _1109()]);
46423
46371
  if (!reader) throw new Error("No response body");
46424
46372
  const decoder = new TextDecoder();
46425
46373
  let buffer = "";
@@ -46502,7 +46450,7 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
46502
46450
  const toolName = typeof meta.tool_name === "string" ? meta.tool_name : void 0;
46503
46451
  const result = _nullishCoalesce(meta.result, () => ( null));
46504
46452
  const card = _nullishCoalesce(meta.card, () => ( null));
46505
- if (_optionalChain([card, 'optionalAccess', _1111 => _1111.ref, 'optionalAccess', _1112 => _1112.id]) && _optionalChain([card, 'optionalAccess', _1113 => _1113.type])) {
46453
+ if (_optionalChain([card, 'optionalAccess', _1110 => _1110.ref, 'optionalAccess', _1111 => _1111.id]) && _optionalChain([card, 'optionalAccess', _1112 => _1112.type])) {
46506
46454
  const existing = _nullishCoalesce(refsMapRef.current.get(sendIdx), () => ( {}));
46507
46455
  const key = buildChatRefKey(card.type, card.ref.id);
46508
46456
  refsMapRef.current.set(sendIdx, { ...existing, [key]: card.ref });
@@ -46515,8 +46463,8 @@ function createDocStreamFn(source, endpoints, messagesRef, sourcesMapRef, refsMa
46515
46463
  willAutoContinue: meta.willAutoContinue === true,
46516
46464
  ...toolName ? { toolName } : {},
46517
46465
  ...result ? { result } : {},
46518
- ..._optionalChain([card, 'optionalAccess', _1114 => _1114.marker]) ? { marker: card.marker } : {},
46519
- ..._optionalChain([card, 'optionalAccess', _1115 => _1115.ref]) ? { cardRef: card.ref } : {},
46466
+ ..._optionalChain([card, 'optionalAccess', _1113 => _1113.marker]) ? { marker: card.marker } : {},
46467
+ ..._optionalChain([card, 'optionalAccess', _1114 => _1114.ref]) ? { cardRef: card.ref } : {},
46520
46468
  ...typeof meta.receiptText === "string" ? { receiptText: meta.receiptText } : {},
46521
46469
  proposalId: typeof meta.proposalId === "string" ? meta.proposalId : void 0
46522
46470
  };
@@ -46635,7 +46583,7 @@ var DEFAULT_CHAT_SOURCE = "embed";
46635
46583
  var chatStorageKey = (source) => {
46636
46584
  const base = `mingo-chat-${source}-v${CHAT_STORAGE_VERSION}`;
46637
46585
  const auth = _chunkGPX5I7FTcjs.getEmbedProxyAuth.call(void 0, );
46638
- if (_optionalChain([auth, 'optionalAccess', _1116 => _1116.email])) {
46586
+ if (_optionalChain([auth, 'optionalAccess', _1115 => _1115.email])) {
46639
46587
  return `${base}-u-${encodeURIComponent(auth.email.toLowerCase())}`;
46640
46588
  }
46641
46589
  return base;
@@ -46690,7 +46638,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
46690
46638
  const { active = true } = runtimeOptions;
46691
46639
  const runtime = _chunk3KEBI6TPcjs.useRequiredChatRuntime.call(void 0, );
46692
46640
  const source = runtime.source || DEFAULT_CHAT_SOURCE;
46693
- const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1117 => _1117.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
46641
+ const tableIdForDocumentType = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _1116 => _1116.tableIdForDocumentType]), () => ( defaultTableIdForDocumentType));
46694
46642
  const persistedRef = _react.useRef.call(void 0, null);
46695
46643
  if (persistedRef.current === null) {
46696
46644
  pruneStaleChatStorage(source);
@@ -46795,7 +46743,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
46795
46743
  const lookupIdx = sendIdx >= 0 ? sendIdx : 0;
46796
46744
  sources = sourcesMapRef.current.get(lookupIdx);
46797
46745
  chatRefs = _nullishCoalesce(m.chatRefs, () => ( refsMapRef.current.get(lookupIdx)));
46798
- scrollAnchor = _nullishCoalesce(_optionalChain([metaMapRef, 'access', _1118 => _1118.current, 'access', _1119 => _1119.get, 'call', _1120 => _1120(lookupIdx), 'optionalAccess', _1121 => _1121.scrollAnchor]), () => ( void 0));
46746
+ scrollAnchor = _nullishCoalesce(_optionalChain([metaMapRef, 'access', _1117 => _1117.current, 'access', _1118 => _1118.get, 'call', _1119 => _1119(lookupIdx), 'optionalAccess', _1120 => _1120.scrollAnchor]), () => ( void 0));
46799
46747
  }
46800
46748
  return {
46801
46749
  id: m.id,
@@ -46843,7 +46791,7 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
46843
46791
  );
46844
46792
  return;
46845
46793
  }
46846
- const refSlug = typeof _optionalChain([reference, 'access', _1122 => _1122.metadata, 'optionalAccess', _1123 => _1123.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
46794
+ const refSlug = typeof _optionalChain([reference, 'access', _1121 => _1121.metadata, 'optionalAccess', _1122 => _1122.slug]) === "string" && reference.metadata.slug.length > 0 ? reference.metadata.slug : "";
46847
46795
  const queryValue = refSlug || sanitizeTitleForChat(reference.title) || reference.id;
46848
46796
  const escaped = queryValue.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
46849
46797
  const text = `/${cmdId} display "${escaped}"`;
@@ -46915,18 +46863,18 @@ function useSseChatAdapter(options, runtimeOptions = {}) {
46915
46863
  clearMessages,
46916
46864
  streamingPhase,
46917
46865
  /** Provider key for the lib's `<ModelDisplay>` icon. */
46918
- currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1124 => _1124.provider]), () => ( null)),
46919
- currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1125 => _1125.modelLabel]), () => ( null)),
46920
- currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1126 => _1126.contextWindowMaxTokens]), () => ( null)),
46866
+ currentProvider: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1123 => _1123.provider]), () => ( null)),
46867
+ currentModelLabel: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1124 => _1124.modelLabel]), () => ( null)),
46868
+ currentContextWindowMaxTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1125 => _1125.contextWindowMaxTokens]), () => ( null)),
46921
46869
  /** Input tokens (known after server's message_start frame; null until). */
46922
- currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1127 => _1127.inputTokens]), () => ( null)),
46870
+ currentInputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1126 => _1126.inputTokens]), () => ( null)),
46923
46871
  /** Output tokens (known only after server's trailing usage frame). */
46924
- currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1128 => _1128.outputTokens]), () => ( null)),
46872
+ currentOutputTokens: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1127 => _1127.outputTokens]), () => ( null)),
46925
46873
  /** Cache hit % (read / total-input × 100). null during streaming. */
46926
- currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1129 => _1129.cacheHitRatePct]), () => ( null)),
46874
+ currentCacheHitRatePct: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1128 => _1128.cacheHitRatePct]), () => ( null)),
46927
46875
  /** Cross-call usage breakdown (Haiku rewriter/classifier/summarizer
46928
46876
  * token counts). null until the trailing usage frame lands. */
46929
- currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1130 => _1130.breakdown]), () => ( null)),
46877
+ currentUsageBreakdown: _nullishCoalesce(_optionalChain([latestMeta, 'optionalAccess', _1129 => _1129.breakdown]), () => ( null)),
46930
46878
  // ─── Dialog management — stubs for v1 ────────────────────────────────
46931
46879
  // Guide mode currently keeps its history in `localStorage` opaquely
46932
46880
  // under the hood (`runtime.source` namespaced key). Surfacing that
@@ -46984,15 +46932,15 @@ var noopRejectRequest = async (_id, _reason) => {
46984
46932
 
46985
46933
  // src/components/chat/utils/process-historical-messages.ts
46986
46934
  function getOwnerDisplayName(owner) {
46987
- if (_optionalChain([owner, 'optionalAccess', _1131 => _1131.type]) === OWNER_TYPE.ADMIN && owner.user) {
46935
+ if (_optionalChain([owner, 'optionalAccess', _1130 => _1130.type]) === OWNER_TYPE.ADMIN && owner.user) {
46988
46936
  const { firstName, lastName } = owner.user;
46989
46937
  const name = [firstName, lastName].filter(Boolean).join(" ");
46990
46938
  if (name) return name;
46991
46939
  }
46992
- return _optionalChain([owner, 'optionalAccess', _1132 => _1132.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
46940
+ return _optionalChain([owner, 'optionalAccess', _1131 => _1131.type]) === OWNER_TYPE.ADMIN ? "Admin" : "You";
46993
46941
  }
46994
46942
  function getOwnerAvatar(owner) {
46995
- return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _1133 => _1133.user, 'optionalAccess', _1134 => _1134.image, 'optionalAccess', _1135 => _1135.imageUrl]), () => ( void 0));
46943
+ return _nullishCoalesce(_optionalChain([owner, 'optionalAccess', _1132 => _1132.user, 'optionalAccess', _1133 => _1133.image, 'optionalAccess', _1134 => _1134.imageUrl]), () => ( void 0));
46996
46944
  }
46997
46945
  function pushStandaloneMessages(processedMessages, msg, messageDataArray) {
46998
46946
  messageDataArray.forEach((data) => {
@@ -47055,14 +47003,14 @@ function processHistoricalMessages(messages, options = {}) {
47055
47003
  pushStandaloneMessages(processedMessages, msg, messageDataArray);
47056
47004
  return;
47057
47005
  }
47058
- const isUserMessage = _optionalChain([msg, 'access', _1136 => _1136.owner, 'optionalAccess', _1137 => _1137.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _1138 => _1138.owner, 'optionalAccess', _1139 => _1139.type]) === OWNER_TYPE.ADMIN;
47006
+ const isUserMessage = _optionalChain([msg, 'access', _1135 => _1135.owner, 'optionalAccess', _1136 => _1136.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _1137 => _1137.owner, 'optionalAccess', _1138 => _1138.type]) === OWNER_TYPE.ADMIN;
47059
47007
  if (isUserMessage) {
47060
47008
  flushAssistantMessage();
47061
- const userAuthorType = _optionalChain([msg, 'access', _1140 => _1140.owner, 'optionalAccess', _1141 => _1141.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
47009
+ const userAuthorType = _optionalChain([msg, 'access', _1139 => _1139.owner, 'optionalAccess', _1140 => _1140.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
47062
47010
  messageDataArray.forEach((data) => {
47063
47011
  if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
47064
47012
  const rawContext = data.contextItems;
47065
- const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _1142 => _1142.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _1143 => _1143.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
47013
+ const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _1141 => _1141.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _1142 => _1142.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
47066
47014
  processedMessages.push({
47067
47015
  id: msg.id,
47068
47016
  role: "user",
@@ -47086,7 +47034,7 @@ function processHistoricalMessages(messages, options = {}) {
47086
47034
  });
47087
47035
  const nextMsg = messages[index + 1];
47088
47036
  const isLastMessage = index === messages.length - 1;
47089
- const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _1144 => _1144.owner, 'optionalAccess', _1145 => _1145.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _1146 => _1146.owner, 'optionalAccess', _1147 => _1147.type]) === OWNER_TYPE.ADMIN);
47037
+ const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _1143 => _1143.owner, 'optionalAccess', _1144 => _1144.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _1145 => _1145.owner, 'optionalAccess', _1146 => _1146.type]) === OWNER_TYPE.ADMIN);
47090
47038
  if (isLastMessage || nextIsFromUser) {
47091
47039
  flushAssistantMessage();
47092
47040
  }
@@ -47196,7 +47144,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
47196
47144
  }
47197
47145
  }
47198
47146
  } else {
47199
- _optionalChain([escalatedApprovals, 'optionalAccess', _1148 => _1148.set, 'call', _1149 => _1149(data.approvalRequestId, {
47147
+ _optionalChain([escalatedApprovals, 'optionalAccess', _1147 => _1147.set, 'call', _1148 => _1148(data.approvalRequestId, {
47200
47148
  command: data.command || "",
47201
47149
  explanation: data.explanation,
47202
47150
  approvalType,
@@ -47210,8 +47158,8 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
47210
47158
  const existingStatus = approvalStatuses[data.approvalRequestId];
47211
47159
  const status = existingStatus || (data.approved ? "approved" : "rejected");
47212
47160
  const resolvedByName = "resolvedByName" in data ? data.resolvedByName : void 0;
47213
- const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _1150 => _1150.get, 'call', _1151 => _1151(data.approvalRequestId)]);
47214
- if (_optionalChain([escalatedData, 'optionalAccess', _1152 => _1152.toolCalls]) && escalatedData.toolCalls.length > 0) {
47161
+ const escalatedData = _optionalChain([escalatedApprovals, 'optionalAccess', _1149 => _1149.get, 'call', _1150 => _1150(data.approvalRequestId)]);
47162
+ if (_optionalChain([escalatedData, 'optionalAccess', _1151 => _1151.toolCalls]) && escalatedData.toolCalls.length > 0) {
47215
47163
  if (batchApprovalsEnabled) {
47216
47164
  accumulator.addApprovalBatch(
47217
47165
  data.approvalRequestId,
@@ -47233,7 +47181,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
47233
47181
  );
47234
47182
  }
47235
47183
  }
47236
- _optionalChain([escalatedApprovals, 'optionalAccess', _1153 => _1153.delete, 'call', _1154 => _1154(data.approvalRequestId)]);
47184
+ _optionalChain([escalatedApprovals, 'optionalAccess', _1152 => _1152.delete, 'call', _1153 => _1153(data.approvalRequestId)]);
47237
47185
  break;
47238
47186
  }
47239
47187
  if (escalatedData) {
@@ -47242,7 +47190,7 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
47242
47190
  explanation: escalatedData.explanation,
47243
47191
  approvalType: escalatedData.approvalType
47244
47192
  });
47245
- _optionalChain([escalatedApprovals, 'optionalAccess', _1155 => _1155.delete, 'call', _1156 => _1156(data.approvalRequestId)]);
47193
+ _optionalChain([escalatedApprovals, 'optionalAccess', _1154 => _1154.delete, 'call', _1155 => _1155(data.approvalRequestId)]);
47246
47194
  }
47247
47195
  const before = accumulator.getSegments();
47248
47196
  const after = accumulator.updateApprovalStatus(data.approvalRequestId, status, resolvedByName);
@@ -47258,9 +47206,9 @@ function processMessageData(data, accumulator, approvalStatuses, options = {}, e
47258
47206
  case MESSAGE_TYPE.ERROR:
47259
47207
  if ("error" in data) {
47260
47208
  let message2;
47261
- if ("details" in data && _optionalChain([data, 'optionalAccess', _1157 => _1157.details])) {
47209
+ if ("details" in data && _optionalChain([data, 'optionalAccess', _1156 => _1156.details])) {
47262
47210
  try {
47263
- message2 = _optionalChain([JSON, 'access', _1158 => _1158.parse, 'call', _1159 => _1159(data.details), 'optionalAccess', _1160 => _1160.error, 'optionalAccess', _1161 => _1161.message]);
47211
+ message2 = _optionalChain([JSON, 'access', _1157 => _1157.parse, 'call', _1158 => _1158(data.details), 'optionalAccess', _1159 => _1159.error, 'optionalAccess', _1160 => _1160.message]);
47264
47212
  } catch (e59) {
47265
47213
  message2 = data.details;
47266
47214
  }
@@ -47343,14 +47291,14 @@ function processHistoricalMessagesWithErrors(messages, options = {}) {
47343
47291
  pushStandaloneMessages(processedMessages, msg, messageDataArray);
47344
47292
  return;
47345
47293
  }
47346
- const isUserMessage = _optionalChain([msg, 'access', _1162 => _1162.owner, 'optionalAccess', _1163 => _1163.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _1164 => _1164.owner, 'optionalAccess', _1165 => _1165.type]) === OWNER_TYPE.ADMIN;
47294
+ const isUserMessage = _optionalChain([msg, 'access', _1161 => _1161.owner, 'optionalAccess', _1162 => _1162.type]) === OWNER_TYPE.CLIENT || _optionalChain([msg, 'access', _1163 => _1163.owner, 'optionalAccess', _1164 => _1164.type]) === OWNER_TYPE.ADMIN;
47347
47295
  if (isUserMessage) {
47348
47296
  flushAssistantMessage();
47349
- const userAuthorType = _optionalChain([msg, 'access', _1166 => _1166.owner, 'optionalAccess', _1167 => _1167.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
47297
+ const userAuthorType = _optionalChain([msg, 'access', _1165 => _1165.owner, 'optionalAccess', _1166 => _1166.type]) === OWNER_TYPE.ADMIN ? "admin" : "user";
47350
47298
  messageDataArray.forEach((data) => {
47351
47299
  if (data.type === MESSAGE_TYPE.TEXT && "text" in data && data.text) {
47352
47300
  const rawContext = data.contextItems;
47353
- const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _1168 => _1168.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _1169 => _1169.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
47301
+ const contextItems = Array.isArray(rawContext) ? rawContext.filter((c) => typeof _optionalChain([c, 'optionalAccess', _1167 => _1167.type]) === "string" && typeof _optionalChain([c, 'optionalAccess', _1168 => _1168.id]) === "string").map((c) => ({ type: c.type, id: c.id, label: c.id })) : void 0;
47354
47302
  processedMessages.push({
47355
47303
  id: msg.id,
47356
47304
  role: "user",
@@ -47374,7 +47322,7 @@ function processHistoricalMessagesWithErrors(messages, options = {}) {
47374
47322
  });
47375
47323
  const nextMsg = messages[index + 1];
47376
47324
  const isLastMessage = index === messages.length - 1;
47377
- const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _1170 => _1170.owner, 'optionalAccess', _1171 => _1171.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _1172 => _1172.owner, 'optionalAccess', _1173 => _1173.type]) === OWNER_TYPE.ADMIN);
47325
+ const nextIsFromUser = nextMsg && (_optionalChain([nextMsg, 'access', _1169 => _1169.owner, 'optionalAccess', _1170 => _1170.type]) === OWNER_TYPE.CLIENT || _optionalChain([nextMsg, 'access', _1171 => _1171.owner, 'optionalAccess', _1172 => _1172.type]) === OWNER_TYPE.ADMIN);
47378
47326
  if (isLastMessage || nextIsFromUser) {
47379
47327
  flushAssistantMessage();
47380
47328
  }
@@ -47710,7 +47658,7 @@ function useNatsChatAdapter(config, options = {}) {
47710
47658
  }, [active, fetchDialogs, loadDialogsPage]);
47711
47659
  const sendMessage = _react.useCallback.call(void 0,
47712
47660
  async (text, sendOptions) => {
47713
- const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _1174 => _1174.hidden]), () => ( false));
47661
+ const hidden = _nullishCoalesce(_optionalChain([sendOptions, 'optionalAccess', _1173 => _1173.hidden]), () => ( false));
47714
47662
  setMessages((prev) => [
47715
47663
  ...prev,
47716
47664
  {
@@ -47874,11 +47822,11 @@ function useNatsChatAdapter(config, options = {}) {
47874
47822
  // Tokens: live `token_usage` frame / dialog snapshot (`dialogTokenUsage`).
47875
47823
  // contextWindow uses the dialog's `contextSize` (the "X / Y" denominator,
47876
47824
  // matching the /mingo page). cacheHitRate/breakdown are SSE-only → null.
47877
- currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1175 => _1175.provider]), () => ( modelProvider)), () => ( null)),
47878
- currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1176 => _1176.modelLabel]), () => ( modelLabel)), () => ( null)),
47879
- currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1177 => _1177.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _1178 => _1178.contextWindowMaxTokens]))), () => ( null)),
47880
- currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1179 => _1179.inputTokensSize]), () => ( null)),
47881
- currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1180 => _1180.outputTokensSize]), () => ( null)),
47825
+ currentProvider: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1174 => _1174.provider]), () => ( modelProvider)), () => ( null)),
47826
+ currentModelLabel: _nullishCoalesce(_nullishCoalesce(_optionalChain([liveModel, 'optionalAccess', _1175 => _1175.modelLabel]), () => ( modelLabel)), () => ( null)),
47827
+ currentContextWindowMaxTokens: _nullishCoalesce(_nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1176 => _1176.contextSize]), () => ( _optionalChain([liveModel, 'optionalAccess', _1177 => _1177.contextWindowMaxTokens]))), () => ( null)),
47828
+ currentInputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1178 => _1178.inputTokensSize]), () => ( null)),
47829
+ currentOutputTokens: _nullishCoalesce(_optionalChain([dialogTokenUsage, 'optionalAccess', _1179 => _1179.outputTokensSize]), () => ( null)),
47882
47830
  currentCacheHitRatePct: null,
47883
47831
  currentUsageBreakdown: null,
47884
47832
  // Dialog management
@@ -48126,7 +48074,7 @@ function extractIncompleteMessageState(lastMessage) {
48126
48074
  break;
48127
48075
  case "approval_batch": {
48128
48076
  const allDone = !!segment.data.executions && segment.data.toolCalls.every(
48129
- (c) => _optionalChain([segment, 'access', _1181 => _1181.data, 'access', _1182 => _1182.executions, 'optionalAccess', _1183 => _1183[c.toolExecutionRequestId], 'optionalAccess', _1184 => _1184.status]) === "done"
48077
+ (c) => _optionalChain([segment, 'access', _1180 => _1180.data, 'access', _1181 => _1181.executions, 'optionalAccess', _1182 => _1182[c.toolExecutionRequestId], 'optionalAccess', _1183 => _1183.status]) === "done"
48130
48078
  );
48131
48079
  if (segment.status !== "rejected" && !allDone) {
48132
48080
  hasIncompleteState = true;
@@ -48194,20 +48142,20 @@ function mergeHistoryWithRealtime(input) {
48194
48142
  const seqCoverageKnown = realtimeSeenStreamSeq > 0 && historyMaxStreamSeq > 0;
48195
48143
  const historyCoversRealtime = seqCoverageKnown ? historyMaxStreamSeq >= realtimeSeenStreamSeq : null;
48196
48144
  const trailing = processedHistory[processedHistory.length - 1];
48197
- const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _1185 => _1185.role]) === "assistant" ? trailing : null;
48198
- const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _1186 => _1186.content, 'access', _1187 => _1187.find, 'call', _1188 => _1188((s) => s.type === "approval_batch"), 'optionalAccess', _1189 => _1189.data, 'optionalAccess', _1190 => _1190.approvalRequestId]), () => ( null)) : null;
48145
+ const historyTrailingAssistant = _optionalChain([trailing, 'optionalAccess', _1184 => _1184.role]) === "assistant" ? trailing : null;
48146
+ const historyBatchId = historyTrailingAssistant && Array.isArray(historyTrailingAssistant.content) ? _nullishCoalesce(_optionalChain([historyTrailingAssistant, 'access', _1185 => _1185.content, 'access', _1186 => _1186.find, 'call', _1187 => _1187((s) => s.type === "approval_batch"), 'optionalAccess', _1188 => _1188.data, 'optionalAccess', _1189 => _1189.approvalRequestId]), () => ( null)) : null;
48199
48147
  let processedToUse = processedHistory;
48200
48148
  const pinnedSyntheticIds = /* @__PURE__ */ new Set();
48201
48149
  const droppedSyntheticIds = /* @__PURE__ */ new Set();
48202
48150
  if (historyBatchId) {
48203
48151
  const batchTwins = existingMessages.filter(
48204
48152
  (m) => m.role === "assistant" && Array.isArray(m.content) && m.content.some(
48205
- (s) => s.type === "approval_batch" && _optionalChain([s, 'access', _1191 => _1191.data, 'optionalAccess', _1192 => _1192.approvalRequestId]) === historyBatchId
48153
+ (s) => s.type === "approval_batch" && _optionalChain([s, 'access', _1190 => _1190.data, 'optionalAccess', _1191 => _1191.approvalRequestId]) === historyBatchId
48206
48154
  )
48207
48155
  );
48208
48156
  const existingWithSameBatch = _nullishCoalesce(batchTwins.find((m) => m.id === streamingMessageId), () => ( batchTwins[batchTwins.length - 1]));
48209
48157
  if (existingWithSameBatch && Array.isArray(existingWithSameBatch.content)) {
48210
- const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _1193 => _1193.content])) ? historyTrailingAssistant.content.length : 0;
48158
+ const histSize = Array.isArray(_optionalChain([historyTrailingAssistant, 'optionalAccess', _1192 => _1192.content])) ? historyTrailingAssistant.content.length : 0;
48211
48159
  const realtimeSize = existingWithSameBatch.content.length;
48212
48160
  if (existingWithSameBatch.id === streamingMessageId || realtimeSize > histSize) {
48213
48161
  processedToUse = processedHistory.slice(0, -1);
@@ -48223,16 +48171,16 @@ function mergeHistoryWithRealtime(input) {
48223
48171
  if (pinnedSyntheticIds.has(m.id)) return true;
48224
48172
  if (droppedSyntheticIds.has(m.id)) return false;
48225
48173
  if (processedIds.has(m.id)) return false;
48226
- if (_optionalChain([rawHistoryIds, 'optionalAccess', _1194 => _1194.has, 'call', _1195 => _1195(m.id)])) return false;
48174
+ if (_optionalChain([rawHistoryIds, 'optionalAccess', _1193 => _1193.has, 'call', _1194 => _1194(m.id)])) return false;
48227
48175
  if (m.role === "user" && m.id.startsWith("optimistic-") && typeof m.content === "string") {
48228
- const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _1196 => _1196.timestamp, 'optionalAccess', _1197 => _1197.getTime, 'call', _1198 => _1198()]), () => ( 0))) <= historyFetchedAt;
48176
+ const canBeInSnapshot = (_nullishCoalesce(_optionalChain([m, 'access', _1195 => _1195.timestamp, 'optionalAccess', _1196 => _1196.getTime, 'call', _1197 => _1197()]), () => ( 0))) <= historyFetchedAt;
48229
48177
  return !(canBeInSnapshot && processedToUse.some((pm) => pm.role === "user" && pm.content === m.content));
48230
48178
  }
48231
48179
  if (isSyntheticRealtimeId(m.id) && m.id !== streamingMessageId) {
48232
48180
  if (m.role === "assistant" && trailingAssistantText && assistantAnswerText(m.content) === trailingAssistantText) {
48233
48181
  return false;
48234
48182
  }
48235
- const covered = typeof m.streamSeq === "number" && historyMaxStreamSeq > 0 ? historyMaxStreamSeq >= m.streamSeq : historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _1199 => _1199.timestamp, 'optionalAccess', _1200 => _1200.getTime, 'call', _1201 => _1201()]), () => ( 0))) <= historyFetchedAt;
48183
+ const covered = typeof m.streamSeq === "number" && historyMaxStreamSeq > 0 ? historyMaxStreamSeq >= m.streamSeq : historyCoversRealtime !== null ? historyCoversRealtime : (_nullishCoalesce(_optionalChain([m, 'access', _1198 => _1198.timestamp, 'optionalAccess', _1199 => _1199.getTime, 'call', _1200 => _1200()]), () => ( 0))) <= historyFetchedAt;
48236
48184
  if (covered) return false;
48237
48185
  }
48238
48186
  return true;
@@ -48452,7 +48400,7 @@ function useChatDialogManager({
48452
48400
  const handleConfirmRestore = _react.useCallback.call(void 0, async () => {
48453
48401
  if (restoreTarget) {
48454
48402
  try {
48455
- await _optionalChain([unarchiveDialog, 'optionalCall', _1202 => _1202(restoreTarget.id)]);
48403
+ await _optionalChain([unarchiveDialog, 'optionalCall', _1201 => _1201(restoreTarget.id)]);
48456
48404
  } catch (err) {
48457
48405
  console.error("[useChatDialogManager] unarchive failed:", err);
48458
48406
  return;
@@ -48869,7 +48817,7 @@ function EmbeddableChatInner({
48869
48817
  }),
48870
48818
  [commandsUrl]
48871
48819
  );
48872
- const userName = _optionalChain([identityUser, 'optionalAccess', _1203 => _1203.firstName, 'optionalAccess', _1204 => _1204.trim, 'call', _1205 => _1205()]) || _optionalChain([identityUser, 'optionalAccess', _1206 => _1206.name, 'optionalAccess', _1207 => _1207.split, 'call', _1208 => _1208(" "), 'access', _1209 => _1209[0], 'optionalAccess', _1210 => _1210.trim, 'call', _1211 => _1211()]) || void 0;
48820
+ const userName = _optionalChain([identityUser, 'optionalAccess', _1202 => _1202.firstName, 'optionalAccess', _1203 => _1203.trim, 'call', _1204 => _1204()]) || _optionalChain([identityUser, 'optionalAccess', _1205 => _1205.name, 'optionalAccess', _1206 => _1206.split, 'call', _1207 => _1207(" "), 'access', _1208 => _1208[0], 'optionalAccess', _1209 => _1209.trim, 'call', _1210 => _1210()]) || void 0;
48873
48821
  const effectiveModes = _react.useMemo.call(void 0, () => {
48874
48822
  if (modes) return modes;
48875
48823
  const guideOptions = tableIdForDocumentType ? { tableIdForDocumentType } : {};
@@ -48878,19 +48826,19 @@ function EmbeddableChatInner({
48878
48826
  const mingoCaps = _react.useMemo.call(void 0, () => {
48879
48827
  if (mingoState) {
48880
48828
  return {
48881
- canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1212 => _1212.canRename]), () => ( false)),
48882
- canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1213 => _1213.canArchive]), () => ( false)),
48883
- fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1214 => _1214.fetchArchivedDialogs]),
48884
- unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1215 => _1215.unarchiveDialog]),
48885
- searchQuery: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1216 => _1216.searchQuery]),
48886
- onSearchChange: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1217 => _1217.onSearchChange])
48829
+ canRename: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1211 => _1211.canRename]), () => ( false)),
48830
+ canArchive: _nullishCoalesce(_optionalChain([mingoDialogCapabilities, 'optionalAccess', _1212 => _1212.canArchive]), () => ( false)),
48831
+ fetchArchivedDialogs: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1213 => _1213.fetchArchivedDialogs]),
48832
+ unarchiveDialog: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1214 => _1214.unarchiveDialog]),
48833
+ searchQuery: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1215 => _1215.searchQuery]),
48834
+ onSearchChange: _optionalChain([mingoDialogCapabilities, 'optionalAccess', _1216 => _1216.onSearchChange])
48887
48835
  };
48888
48836
  }
48889
48837
  return {
48890
- canRename: !!_optionalChain([effectiveModes, 'access', _1218 => _1218.mingo, 'optionalAccess', _1219 => _1219.renameDialog]),
48891
- canArchive: !!_optionalChain([effectiveModes, 'access', _1220 => _1220.mingo, 'optionalAccess', _1221 => _1221.archiveDialog]),
48892
- fetchArchivedDialogs: _optionalChain([effectiveModes, 'access', _1222 => _1222.mingo, 'optionalAccess', _1223 => _1223.fetchArchivedDialogs]),
48893
- unarchiveDialog: _optionalChain([effectiveModes, 'access', _1224 => _1224.mingo, 'optionalAccess', _1225 => _1225.unarchiveDialog]),
48838
+ canRename: !!_optionalChain([effectiveModes, 'access', _1217 => _1217.mingo, 'optionalAccess', _1218 => _1218.renameDialog]),
48839
+ canArchive: !!_optionalChain([effectiveModes, 'access', _1219 => _1219.mingo, 'optionalAccess', _1220 => _1220.archiveDialog]),
48840
+ fetchArchivedDialogs: _optionalChain([effectiveModes, 'access', _1221 => _1221.mingo, 'optionalAccess', _1222 => _1222.fetchArchivedDialogs]),
48841
+ unarchiveDialog: _optionalChain([effectiveModes, 'access', _1223 => _1223.mingo, 'optionalAccess', _1224 => _1224.unarchiveDialog]),
48894
48842
  searchQuery: void 0,
48895
48843
  onSearchChange: void 0
48896
48844
  };
@@ -48904,7 +48852,7 @@ function EmbeddableChatInner({
48904
48852
  if (controlledActiveMode === void 0) {
48905
48853
  setUncontrolledActiveMode(next);
48906
48854
  }
48907
- _optionalChain([onActiveModeChange, 'optionalCall', _1226 => _1226(next)]);
48855
+ _optionalChain([onActiveModeChange, 'optionalCall', _1225 => _1225(next)]);
48908
48856
  },
48909
48857
  [controlledActiveMode, onActiveModeChange]
48910
48858
  );
@@ -48926,7 +48874,7 @@ function EmbeddableChatInner({
48926
48874
  const effectiveQuickActions = emptyStateUrl ? emptyStateConfig.quickActions : [];
48927
48875
  const effectiveAssistantName = emptyStateConfig.name;
48928
48876
  const effectiveAssistantIcon = emptyStateConfig.icon;
48929
- const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _1227 => _1227.title]) === "string" ? guideWelcome.title : null)));
48877
+ const headerAssistantName = _nullishCoalesce(effectiveAssistantName, () => ( (typeof _optionalChain([guideWelcome, 'optionalAccess', _1226 => _1226.title]) === "string" ? guideWelcome.title : null)));
48930
48878
  const {
48931
48879
  messages: rawMessages,
48932
48880
  isLoading: chatLoading,
@@ -48966,7 +48914,7 @@ function EmbeddableChatInner({
48966
48914
  if (activeMode !== "guide" || guidePromptSentRef.current) return;
48967
48915
  guidePromptSentRef.current = true;
48968
48916
  void sendMessage(guidePendingPrompt);
48969
- _optionalChain([onGuidePromptConsumed, 'optionalCall', _1228 => _1228()]);
48917
+ _optionalChain([onGuidePromptConsumed, 'optionalCall', _1227 => _1227()]);
48970
48918
  }, [guidePendingPrompt, activeMode, sendMessage, onGuidePromptConsumed]);
48971
48919
  const {
48972
48920
  attachments: stagedAttachments,
@@ -48977,7 +48925,7 @@ function EmbeddableChatInner({
48977
48925
  clear: clearAttachments
48978
48926
  } = useChatAttachments();
48979
48927
  const { panelRef: galleryPanelRef, modal: galleryModal } = useChatAttachmentImageGallery();
48980
- const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1229 => _1229.maxItems]), () => ( 10));
48928
+ const contextMaxItems = _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1228 => _1228.maxItems]), () => ( 10));
48981
48929
  const contextPickerForMode = activeMode === "mingo" ? contextPicker : void 0;
48982
48930
  const [contextItems, setContextItems] = _react.useState.call(void 0, []);
48983
48931
  const [contextPickerOpen, setContextPickerOpen] = _react.useState.call(void 0, false);
@@ -48994,10 +48942,10 @@ function EmbeddableChatInner({
48994
48942
  }, [activeDialogId, activeMode]);
48995
48943
  const mentionMarkerByType = _react.useMemo.call(void 0, () => {
48996
48944
  const m = /* @__PURE__ */ new Map();
48997
- for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1230 => _1230.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
48945
+ for (const t of _nullishCoalesce(_optionalChain([contextPicker, 'optionalAccess', _1229 => _1229.entityTypes]), () => ( []))) if (t.marker) m.set(t.type, t.marker);
48998
48946
  return m;
48999
- }, [_optionalChain([contextPicker, 'optionalAccess', _1231 => _1231.entityTypes])]);
49000
- const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _1232 => _1232.entityTypes]);
48947
+ }, [_optionalChain([contextPicker, 'optionalAccess', _1230 => _1230.entityTypes])]);
48948
+ const contextEntityTypes = _optionalChain([contextPicker, 'optionalAccess', _1231 => _1231.entityTypes]);
49001
48949
  const resolveContextIcon = _react.useMemo.call(void 0, () => {
49002
48950
  const byType = /* @__PURE__ */ new Map();
49003
48951
  for (const t of _nullishCoalesce(contextEntityTypes, () => ( []))) byType.set(t.type, t.icon);
@@ -49009,7 +48957,7 @@ function EmbeddableChatInner({
49009
48957
  if (mentionActiveRef.current) {
49010
48958
  if (contextItems.some((p) => `${p.type}:${p.id}` === key)) return;
49011
48959
  if (contextItems.length >= contextMaxItems) return;
49012
- _optionalChain([chatInputRef, 'access', _1233 => _1233.current, 'optionalAccess', _1234 => _1234.commitMention, 'call', _1235 => _1235(mentionTokenOf(key, mentionMarkerByType), {
48960
+ _optionalChain([chatInputRef, 'access', _1232 => _1232.current, 'optionalAccess', _1233 => _1233.commitMention, 'call', _1234 => _1234(mentionTokenOf(key, mentionMarkerByType), {
49013
48961
  label: item.label,
49014
48962
  icon: resolveContextIcon(item)
49015
48963
  })]);
@@ -49031,9 +48979,9 @@ function EmbeddableChatInner({
49031
48979
  setContextItems((prev) => prev.filter((p) => `${p.type}:${p.id}` !== key));
49032
48980
  if (mentionKeysRef.current.has(key)) {
49033
48981
  mentionKeysRef.current.delete(key);
49034
- const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _1236 => _1236.current, 'optionalAccess', _1237 => _1237.getValue, 'call', _1238 => _1238()]), () => ( ""));
48982
+ const cur = _nullishCoalesce(_optionalChain([chatInputRef, 'access', _1235 => _1235.current, 'optionalAccess', _1236 => _1236.getValue, 'call', _1237 => _1237()]), () => ( ""));
49035
48983
  const next = cur.replace(`@${mentionTokenOf(key, mentionMarkerByType)}`, "").replace(/\s{2,}/g, " ").trimStart();
49036
- _optionalChain([chatInputRef, 'access', _1239 => _1239.current, 'optionalAccess', _1240 => _1240.setValue, 'call', _1241 => _1241(next)]);
48984
+ _optionalChain([chatInputRef, 'access', _1238 => _1238.current, 'optionalAccess', _1239 => _1239.setValue, 'call', _1240 => _1240(next)]);
49037
48985
  }
49038
48986
  }, [mentionMarkerByType]);
49039
48987
  const handleContextValueChange = _react.useCallback.call(void 0, (value) => {
@@ -49050,7 +48998,7 @@ function EmbeddableChatInner({
49050
48998
  }, []);
49051
48999
  const closeContextPicker = _react.useCallback.call(void 0, () => {
49052
49000
  if (mentionActiveRef.current) {
49053
- _optionalChain([chatInputRef, 'access', _1242 => _1242.current, 'optionalAccess', _1243 => _1243.removeMentionTrigger, 'call', _1244 => _1244()]);
49001
+ _optionalChain([chatInputRef, 'access', _1241 => _1241.current, 'optionalAccess', _1242 => _1242.removeMentionTrigger, 'call', _1243 => _1243()]);
49054
49002
  }
49055
49003
  setContextPickerOpen(false);
49056
49004
  setMentionQuery(null);
@@ -49084,8 +49032,8 @@ function EmbeddableChatInner({
49084
49032
  []
49085
49033
  );
49086
49034
  const timestampCacheRef = _react.useRef.call(void 0, /* @__PURE__ */ new Map());
49087
- const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess', _1245 => _1245.firstName]), _optionalChain([identityUser, 'optionalAccess', _1246 => _1246.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([identityUser, 'optionalAccess', _1247 => _1247.name, 'optionalAccess', _1248 => _1248.trim, 'call', _1249 => _1249()]) || void 0 : void 0;
49088
- const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _1250 => _1250.avatarUrl, 'optionalAccess', _1251 => _1251.trim, 'call', _1252 => _1252()]) || void 0 : void 0;
49035
+ const guideUserName = activeMode === "guide" ? [_optionalChain([identityUser, 'optionalAccess', _1244 => _1244.firstName]), _optionalChain([identityUser, 'optionalAccess', _1245 => _1245.lastName])].filter(Boolean).join(" ").trim() || _optionalChain([identityUser, 'optionalAccess', _1246 => _1246.name, 'optionalAccess', _1247 => _1247.trim, 'call', _1248 => _1248()]) || void 0 : void 0;
49036
+ const guideUserAvatar = activeMode === "guide" ? _optionalChain([identityUser, 'optionalAccess', _1249 => _1249.avatarUrl, 'optionalAccess', _1250 => _1250.trim, 'call', _1251 => _1251()]) || void 0 : void 0;
49089
49037
  const messages = _react.useMemo.call(void 0, () => {
49090
49038
  const cache = timestampCacheRef.current;
49091
49039
  const seenIds = /* @__PURE__ */ new Set();
@@ -49248,9 +49196,9 @@ function EmbeddableChatInner({
49248
49196
  const lastAssistantMsg = [...rawMessages].reverse().find((m) => m.role === "assistant");
49249
49197
  const lastSources = _react.useMemo.call(void 0, () => {
49250
49198
  if (chatLoading) return void 0;
49251
- const sources = _optionalChain([lastAssistantMsg, 'optionalAccess', _1253 => _1253.sources]);
49199
+ const sources = _optionalChain([lastAssistantMsg, 'optionalAccess', _1252 => _1252.sources]);
49252
49200
  if (!sources || sources.length === 0) return void 0;
49253
- const content = _optionalChain([lastAssistantMsg, 'optionalAccess', _1254 => _1254.content]) || "";
49201
+ const content = _optionalChain([lastAssistantMsg, 'optionalAccess', _1253 => _1253.content]) || "";
49254
49202
  const citationOrder = [...content.matchAll(/\[(\d+)\]/g)].map(
49255
49203
  (m) => parseInt(m[1], 10)
49256
49204
  );
@@ -49297,7 +49245,7 @@ function EmbeddableChatInner({
49297
49245
  ChatPanelHeader,
49298
49246
  {
49299
49247
  showBack: hasConversation || guideCanReturnToMingo,
49300
- title: hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _1255 => _1255.title]) || "New Chat" : isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "Current Chats",
49248
+ title: hasConversation ? _optionalChain([activeDialog, 'optionalAccess', _1254 => _1254.title]) || "New Chat" : isGuideEmpty ? _nullishCoalesce(headerAssistantName, () => ( "Mingo Guide")) : "Current Chats",
49301
49249
  backAriaLabel: hasConversation ? isViewingArchived ? "Back to archive" : "Back" : "Back to Mingo",
49302
49250
  isArchivedView: isViewingArchived,
49303
49251
  onBack: hasConversation ? handleBack : () => handleActiveModeChange("mingo"),
@@ -49416,9 +49364,9 @@ function EmbeddableChatInner({
49416
49364
  subtitle: _nullishCoalesce(effectiveGreeting, () => ( void 0)),
49417
49365
  subtitleLoading: emptyStateLoading,
49418
49366
  ...guideWelcome,
49419
- title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _1256 => _1256.title]))),
49420
- icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _1257 => _1257.icon]))),
49421
- quickActions: _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _1258 => _1258.quickActions]), () => ( guideSuggestedActions)),
49367
+ title: _nullishCoalesce(effectiveAssistantName, () => ( _optionalChain([guideWelcome, 'optionalAccess', _1255 => _1255.title]))),
49368
+ icon: _nullishCoalesce(effectiveAssistantIcon, () => ( _optionalChain([guideWelcome, 'optionalAccess', _1256 => _1256.icon]))),
49369
+ quickActions: _nullishCoalesce(_optionalChain([guideWelcome, 'optionalAccess', _1257 => _1257.quickActions]), () => ( guideSuggestedActions)),
49422
49370
  onQuickAction: (action) => {
49423
49371
  setQuickActionPreview(null);
49424
49372
  handleSend(_nullishCoalesce(action.prompt, () => ( action.label)));
@@ -50501,4 +50449,4 @@ function EmbeddableChatInner({
50501
50449
 
50502
50450
 
50503
50451
  exports.Label = Label; exports.AllowedDomainsInput = AllowedDomainsInput; exports.HiddenTagsPopup = HiddenTagsPopup; exports.tagVariants = tagVariants; exports.Tag = Tag; exports.Autocomplete = Autocomplete; exports.Card = Card; exports.CardHeader = CardHeader; exports.CardTitle = CardTitle; exports.CardDescription = CardDescription; exports.CardContent = CardContent; exports.CardFooter = CardFooter; exports.CardHorizontal = CardHorizontal; exports.CheckboxBlock = CheckboxBlock; exports.CheckboxWithDescription = CheckboxWithDescription; exports.Select = Select; exports.SelectGroup = SelectGroup; exports.SelectValue = SelectValue; exports.SelectTrigger = SelectTrigger; exports.SelectScrollUpButton = SelectScrollUpButton; exports.SelectScrollDownButton = SelectScrollDownButton; exports.SelectContent = SelectContent; exports.SelectLabel = SelectLabel; exports.SelectItem = SelectItem; exports.SelectSeparator = SelectSeparator; exports.DatePicker = DatePicker; exports.DatePickerInput = DatePickerInput; exports.DatePickerInputSimple = DatePickerInputSimple; exports.DateFilterMenu = DateFilterMenu; exports.DurationInput = DurationInput; exports.HoneypotField = HoneypotField; exports.ProgressBar = ProgressBar; exports.InfoCard = InfoCard; exports.InfoRow = InfoRow; exports.formatDate = formatDate; exports.formatNumber = formatNumber; exports.formatPrice = formatPrice; exports.formatBytes = formatBytes; exports.formatBytesShort = formatBytesShort; exports.formatFileSize = formatFileSize; exports.formatLargeNumber = formatLargeNumber; exports.formatAbbreviatedNumber = formatAbbreviatedNumber; exports.getFirstLastInitials = getFirstLastInitials; exports.nameInitials = nameInitials; exports.formatDurationMMSS = formatDurationMMSS; exports.formatDurationCompact = formatDurationCompact; exports.formatTimeWithTimezone = formatTimeWithTimezone; exports.formatDurationFromRange = formatDurationFromRange; exports.formatDateUTC = formatDateUTC; exports.formatEntryMonthUTC = formatEntryMonthUTC; exports.formatLegalDate = formatLegalDate; exports.formatCurrency = formatCurrency; exports.formatPercent = formatPercent; exports.formatWholeDollars = formatWholeDollars; exports.formatCompactMetric = formatCompactMetric; exports.getTrendColors = getTrendColors; exports.formatDateRange = formatDateRange; exports.formatDateTimeAt = formatDateTimeAt; exports.formatDurationFromMs = formatDurationFromMs; exports.formatDuration = formatDuration; exports.formatUnderscoreText = formatUnderscoreText; exports.stripHtml = stripHtml; exports.formatClassification = formatClassification; exports.formatPricingModel = formatPricingModel; exports.formatBioText = formatBioText; exports.SquareAvatar = SquareAvatar; exports.AssigneeDropdown = AssigneeDropdown; exports.ActionsMenu = ActionsMenu; exports.ActionsMenuDropdown = ActionsMenuDropdown; exports.ColorSwatch = ColorSwatch; exports.getPlatformAccentColor = getPlatformAccentColor; exports.getCurrentPlatform = getCurrentPlatform; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb; exports.rgbToHex = rgbToHex; exports.deriveHoverColor = deriveHoverColor; exports.deriveActiveColor = deriveActiveColor; exports.resolveTicketStatus = resolveTicketStatus; exports.getTicketStatusConfig = getTicketStatusConfig; exports.getTicketStatusTag = getTicketStatusTag; exports.kindToCanonicalStatus = kindToCanonicalStatus; exports.usesCanonicalStatusStyle = usesCanonicalStatusStyle; exports.resolveStatusTagProps = resolveStatusTagProps; exports.TicketStatusTag = TicketStatusTag; exports.InfoSection = InfoSection; exports.InputTrigger = InputTrigger; exports.InteractiveCard = InteractiveCard; exports.MediaTypeSelector = MediaTypeSelector; exports.noDataIconClasses = noDataIconClasses; exports.noDataActionsVariants = noDataActionsVariants; exports.NoDataMessage = NoDataMessage; exports.NoDataAction = NoDataAction; exports.NoDataActions = NoDataActions; exports.NoData = NoData; exports.PageLoader = PageLoader; exports.CompactPageLoader = CompactPageLoader; exports.RadioGroup = RadioGroup; exports.RadioGroupItem = RadioGroupItem; exports.RadioGroupBlock = RadioGroupBlock; exports.Switch = Switch; exports.TagSelectDropdown = TagSelectDropdown; exports.badgeVariants = badgeVariants; exports.Badge = Badge; exports.TagsInput = TagsInput; exports.TagsManager = TagsManager; exports.Textarea = Textarea; exports.AlertDialog = AlertDialog; exports.AlertDialogTrigger = AlertDialogTrigger; exports.AlertDialogPortal = AlertDialogPortal; exports.AlertDialogOverlay = AlertDialogOverlay; exports.AlertDialogContent = AlertDialogContent; exports.AlertDialogHeader = AlertDialogHeader; exports.AlertDialogFooter = AlertDialogFooter; exports.AlertDialogTitle = AlertDialogTitle; exports.AlertDialogDescription = AlertDialogDescription; exports.AlertDialogAction = AlertDialogAction; exports.AlertDialogCancel = AlertDialogCancel; exports.AspectRatio = AspectRatio; exports.Dialog = Dialog; exports.DialogTrigger = DialogTrigger; exports.DialogPortal = DialogPortal; exports.DialogClose = DialogClose; exports.DialogOverlay = DialogOverlay; exports.DialogContent = DialogContent; exports.DialogHeader = DialogHeader; exports.DialogFooter = DialogFooter; exports.DialogTitle = DialogTitle; exports.DialogDescription = DialogDescription; exports.ImageGalleryModal = ImageGalleryModal; exports.Modal = Modal2; exports.ModalContent = ModalContent2; exports.ModalHeader = ModalHeader2; exports.ModalTitle = ModalTitle2; exports.ModalFooter = ModalFooter2; exports.Modal2 = Modal; exports.ModalContent2 = ModalContent; exports.ModalHeader2 = ModalHeader; exports.ModalTitle2 = ModalTitle; exports.ModalFooter2 = ModalFooter; exports.Separator = Separator2; exports.Sheet = Sheet; exports.SheetTrigger = SheetTrigger; exports.SheetClose = SheetClose; exports.SheetPortal = SheetPortal; exports.SheetOverlay = SheetOverlay; exports.SheetContent = SheetContent; exports.SheetHeader = SheetHeader; exports.SheetFooter = SheetFooter; exports.SheetTitle = SheetTitle; exports.SheetDescription = SheetDescription; exports.Drawer = Drawer; exports.DrawerTrigger = DrawerTrigger; exports.DrawerClose = DrawerClose; exports.DrawerPortal = DrawerPortal; exports.DrawerOverlay = DrawerOverlay; exports.DrawerContent = DrawerContent; exports.DrawerHeader = DrawerHeader; exports.DrawerTitle = DrawerTitle; exports.DrawerDescription = DrawerDescription; exports.DrawerBody = DrawerBody; exports.DrawerFooter = DrawerFooter; exports.Tabs = Tabs; exports.TabsList = TabsList; exports.TabsTrigger = TabsTrigger; exports.TabsContent = TabsContent; exports.Accordion = Accordion; exports.AccordionItem = AccordionItem; exports.AccordionTrigger = AccordionTrigger; exports.AccordionContent = AccordionContent; exports.Breadcrumb = Breadcrumb; exports.BreadcrumbList = BreadcrumbList; exports.BreadcrumbItem = BreadcrumbItem; exports.BreadcrumbLink = BreadcrumbLink; exports.BreadcrumbPage = BreadcrumbPage; exports.BreadcrumbSeparator = BreadcrumbSeparator; exports.BreadcrumbEllipsis = BreadcrumbEllipsis; exports.MenubarMenu = MenubarMenu; exports.MenubarGroup = MenubarGroup; exports.MenubarPortal = MenubarPortal; exports.MenubarSub = MenubarSub; exports.MenubarRadioGroup = MenubarRadioGroup; exports.Menubar = Menubar; exports.MenubarTrigger = MenubarTrigger; exports.MenubarSubTrigger = MenubarSubTrigger; exports.MenubarSubContent = MenubarSubContent; exports.MenubarContent = MenubarContent; exports.MenubarItem = MenubarItem; exports.MenubarCheckboxItem = MenubarCheckboxItem; exports.MenubarRadioItem = MenubarRadioItem; exports.MenubarLabel = MenubarLabel; exports.MenubarSeparator = MenubarSeparator; exports.MenubarShortcut = MenubarShortcut; exports.NavigationMenu = NavigationMenu; exports.NavigationMenuList = NavigationMenuList; exports.NavigationMenuItem = NavigationMenuItem; exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle; exports.NavigationMenuTrigger = NavigationMenuTrigger; exports.NavigationMenuContent = NavigationMenuContent; exports.NavigationMenuLink = NavigationMenuLink; exports.NavigationMenuViewport = NavigationMenuViewport; exports.NavigationMenuIndicator = NavigationMenuIndicator; exports.TabContent = TabContent; exports.TabNavigation = TabNavigation; exports.getTabById = getTabById; exports.getTabComponent = getTabComponent; exports.Alert = Alert; exports.AlertTitle = AlertTitle; exports.AlertDescription = AlertDescription; exports.AIGeneratedBadge = AIGeneratedBadge; exports.Progress = Progress; exports.fetchPriorityProp = fetchPriorityProp; exports.extractYouTubeId = extractYouTubeId; exports.Video = Video2; exports.MediaCarousel = MediaCarousel; exports.EMBED_SIZES = EMBED_SIZES; exports.EmbedContainer = EmbedContainer; exports.YouTubeContainer = YouTubeContainer; exports.TwitterContainer = TwitterContainer; exports.RedditContainer = RedditContainer; exports.LinkPreviewContainer = LinkPreviewContainer; exports.LinkedInContainer = LinkedInContainer; exports.RichMarkdownRuntimeProvider = RichMarkdownRuntimeProvider; exports.useRichMarkdownRuntime = useRichMarkdownRuntime; exports.RedditEmbedClient = RedditEmbedClient; exports.TwitterEmbedClient = TwitterEmbedClient; exports.LinkedInEmbedClient = LinkedInEmbedClient; exports.OGLinkErrorBoundary = OGLinkErrorBoundary; exports.OGLinkPreview = OGLinkPreview; exports.toGoogleSheetsEmbedUrl = toGoogleSheetsEmbedUrl; exports.toGoogleSheetsOriginalUrl = toGoogleSheetsOriginalUrl; exports.toFigmaEmbedUrl = toFigmaEmbedUrl; exports.isFigmaSlidesUrl = isFigmaSlidesUrl; exports.toFigmaOriginalUrl = toFigmaOriginalUrl; exports.EmbedIframe = EmbedIframe; exports.FigmaEmbed = FigmaEmbed; exports.MarkdownImage = MarkdownImage; exports.RichMarkdownRenderer = RichMarkdownRenderer; exports.ReleaseChangelogSection = ReleaseChangelogSection; exports.StackedRowsPanel = StackedRowsPanel; exports.statusBadgeVariants = statusBadgeVariants; exports.StatusBadge = StatusBadge; exports.StatusIndicator = StatusIndicator; exports.HoverDropdown = HoverDropdown; exports.ApprovalRequestMessage = ApprovalRequestMessage; exports.ExpandChevron = ExpandChevron; exports.useCollapsible = useCollapsible; exports.getCommandText = getCommandText; exports.ArgRow = ArgRow; exports.ResultBlock = ResultBlock; exports.ApprovalBatchMessage = ApprovalBatchMessage; exports.ContextCompactionDisplay = ContextCompactionDisplay; exports.SimpleMarkdownRenderer = SimpleMarkdownRenderer; exports.ThinkingDisplay = ThinkingDisplay; exports.ErrorMessageDisplay = ErrorMessageDisplay; exports.ChatContainer = ChatContainer; exports.ChatHeader = ChatHeader; exports.ChatContent = ChatContent; exports.ChatFooter = ChatFooter; exports.ChatTypingIndicator = ChatTypingIndicator; exports.MingoOnboardingCard = MingoOnboardingCard; exports.ICON_REGISTRY = ICON_REGISTRY; exports.normalizeIconKey = normalizeIconKey; exports.getIconComponent = getIconComponent; exports.getDynamicIcon = getDynamicIcon; exports.ICON_ALIASES = ICON_ALIASES; exports.resolveIcon = resolveIcon; exports.ICON_OPTIONS = ICON_OPTIONS; exports.SlashCommandSuggestions = SlashCommandSuggestions; exports.ChatInput = ChatInput; exports.ToolExecutionDisplay = ToolExecutionDisplay; exports.remarkCardLinks = remarkCardLinks; exports.remarkMentionChips = remarkMentionChips; exports.BlockCard = BlockCard; exports.CONTEXT_ROW_CLASS = CONTEXT_ROW_CLASS; exports.CONTEXT_ICON_CLASS = CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = CONTEXT_LABEL_CLASS; exports.CONTEXT_BACK_CLASS = CONTEXT_BACK_CLASS; exports.CONTEXT_STATE_CLASS = CONTEXT_STATE_CLASS; exports.ContextMenuRow = ContextMenuRow; exports.ContextItemsSkeleton = ContextItemsSkeleton; exports.ContextItemsList = ContextItemsList; exports.ContextErrorBoundary = ContextErrorBoundary; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.ChatComposerPlusMenu = ChatComposerPlusMenu; exports.ChatContextPicker = ChatContextPicker; exports.ChatContextChipStrip = ChatContextChipStrip; exports.MemoizedChatMessageEnhanced = MemoizedChatMessageEnhanced; exports.ChatMessageSkeleton = ChatMessageSkeleton; exports.ChatMessageListSkeleton = ChatMessageListSkeleton; exports.MESSAGE_TYPE = MESSAGE_TYPE; exports.SCROLL_ANCHOR = SCROLL_ANCHOR; exports.ChatMessageList = ChatMessageList; exports.getProxiedImageUrl = getProxiedImageUrl; exports.urlPathLooksLikeSvg = urlPathLooksLikeSvg; exports.shouldProxyImage = shouldProxyImage; exports.generateImageSizes = generateImageSizes; exports.useProxiedImageUrl = useProxiedImageUrl; exports.ChatMessageRow = ChatMessageRow; exports.ChatMessageRowSkeleton = ChatMessageRowSkeleton; exports.ChatQuickAction = ChatQuickAction; exports.ChatQuickActionRow = ChatQuickActionRow; exports.ChatQuickActionRowSkeleton = ChatQuickActionRowSkeleton; exports.ChatTicketItem = ChatTicketItem; exports.ChatTicketList = ChatTicketList; exports.MingoOnboardingCardSkeleton = MingoOnboardingCardSkeleton; exports.MingoOnboardingListSkeleton = MingoOnboardingListSkeleton; exports.MingoChatHistorySkeleton = MingoChatHistorySkeleton; exports.MingoChatHistory = MingoChatHistory; exports.MingoWelcome = MingoWelcome; exports.FAE_AVATAR_DATA_URI = FAE_AVATAR_DATA_URI; exports.AgentMark = AgentMark; exports.EntityIcon = EntityIcon; exports.GuideWelcome = GuideWelcome; exports.MspOrganizationCard = MspOrganizationCard; exports.MspOrganizationCardSkeleton = MspOrganizationCardSkeleton; exports.TooltipProvider = TooltipProvider; exports.Tooltip = Tooltip; exports.TooltipTrigger = TooltipTrigger; exports.TooltipContent = TooltipContent; exports.GuideModeBanner = GuideModeBanner; exports.RenameChatModal = RenameChatModal; exports.ArchiveChatModal = ArchiveChatModal; exports.UnarchiveChatModal = UnarchiveChatModal; exports.ChatDialogModals = ChatDialogModals; exports.ChatHeaderIconButton = ChatHeaderIconButton; exports.COMPACT_HEADER_BUTTON = COMPACT_HEADER_BUTTON; exports.ChatPanelHeader = ChatPanelHeader; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.buildChatAttachmentViewUrl = buildChatAttachmentViewUrl; exports.escapeMarkdownInline = escapeMarkdownInline; exports.formatChatAttachmentMarkdownForBubble = formatChatAttachmentMarkdownForBubble; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.stripChatAttachmentMarkdown = stripChatAttachmentMarkdown; exports.CHAT_ATTACHMENT_MIME_TYPES = CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.ChatAttachmentAddButton = ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = ChatAttachmentChipStrip; exports.HoverCard = HoverCard; exports.HoverCardTrigger = HoverCardTrigger; exports.HoverCardContent = HoverCardContent; exports.ModelDisplay = ModelDisplay; exports.ModelDisplaySkeleton = ModelDisplaySkeleton; exports.ChatComposer = ChatComposer; exports.ChatArchivePage = ChatArchivePage; exports.DialogListItem = DialogListItem; exports.ChatSidebar = ChatSidebar; exports.isCrossOriginUrl = isCrossOriginUrl; exports.decideNewTab = decideNewTab; exports.computeIsNewTab = computeIsNewTab; exports.newTabAnchorAttrs = newTabAnchorAttrs; exports.buildAnchorProps = buildAnchorProps; exports.NEW_TAB_FEATURES = NEW_TAB_FEATURES; exports.isModifierClick = isModifierClick; exports.stripSameOriginToPath = stripSameOriginToPath; exports.resolveExternalNavigation = resolveExternalNavigation; exports.executeNavigation = executeNavigation; exports.executeNavigationImperative = executeNavigationImperative; exports.handleChatNavClick = handleChatNavClick; exports.NavLinkAnchorViaRuntime = NavLinkAnchorViaRuntime; exports.SourceActionButton = SourceActionButton; exports.EMPTY_AUTHOR_PLACEHOLDER = EMPTY_AUTHOR_PLACEHOLDER; exports.EntityMetadataValueCell = EntityMetadataValueCell; exports.EntityMetadataAuthorCell = EntityMetadataAuthorCell; exports.EntityAuthorCard = EntityAuthorCard; exports.BlogImagePlaceholder = BlogImagePlaceholder; exports.FlamingoLogo = FlamingoLogo2; exports.PlatformBadge = PlatformBadge; exports.AdminContentCard = AdminContentCard; exports.getProxiedImageUrl2 = getProxiedImageUrl2; exports.WhatIShippedCard = WhatIShippedCard; exports.WhatIShippedCardSkeleton = WhatIShippedCardSkeleton; exports.PAGE_HEADING_CLASS = PAGE_HEADING_CLASS; exports.SECTION_HEADING_CLASS = SECTION_HEADING_CLASS; exports.PageHeading = PageHeading; exports.RATIO_GRID_CLASS = RATIO_GRID_CLASS; exports.RATIO_DISPLAY_GRID_CLASS = RATIO_DISPLAY_GRID_CLASS; exports.RatioTabs = RatioTabs; exports.detectAspectRatio = detectAspectRatio; exports.ratioToCategory = ratioToCategory; exports.groupByAspectRatio = groupByAspectRatio; exports.VideoBitesDisplay = VideoBitesDisplay; exports.VideoBiteCard = VideoBiteCard; exports.EntityVideoSection = EntityVideoSection; exports.ChatVideoEntityCard = ChatVideoEntityCard; exports.ProductReleaseCard = ProductReleaseCard; exports.ProductReleaseCardSkeleton = ProductReleaseCardSkeleton; exports.formatReleaseDate = formatReleaseDate; exports.formatDateShort = formatDateShort; exports.formatDateSlashUTC = formatDateSlashUTC; exports.resolveReleaseCover = resolveReleaseCover; exports.releaseTypeToBadgeColor = releaseTypeToBadgeColor; exports.defaultBuildProductReleaseCardProps = defaultBuildProductReleaseCardProps; exports.buildProductReleaseCardProps = buildProductReleaseCardProps; exports.useEntityCardLink = useEntityCardLink; exports.COMPACT_CARD_OUTER = COMPACT_CARD_OUTER; exports.COMPACT_CARD_OUTER_STATIC = COMPACT_CARD_OUTER_STATIC; exports.COMPACT_CARD_SKELETON_OUTER = COMPACT_CARD_SKELETON_OUTER; exports.COMPACT_CARD_IMAGE_SLOT = COMPACT_CARD_IMAGE_SLOT; exports.COMPACT_CARD_SKELETON_IMAGE_SLOT = COMPACT_CARD_SKELETON_IMAGE_SLOT; exports.COMPACT_CARD_ICON_SLOT = COMPACT_CARD_ICON_SLOT; exports.COMPACT_CARD_TEXT_COL = COMPACT_CARD_TEXT_COL; exports.COMPACT_CARD_TITLE_ROW = COMPACT_CARD_TITLE_ROW; exports.COMPACT_CARD_META_ROW_BOX = COMPACT_CARD_META_ROW_BOX; exports.COMPACT_CARD_TITLE = COMPACT_CARD_TITLE; exports.COMPACT_CARD_SUBTITLE = COMPACT_CARD_SUBTITLE; exports.COMPACT_CARD_SUMMARY = COMPACT_CARD_SUMMARY; exports.COMPACT_CARD_META_ROW = COMPACT_CARD_META_ROW; exports.COMPACT_CARD_ROW_FILLER = COMPACT_CARD_ROW_FILLER; exports.safeHref = safeHref; exports.BlogCardSkeleton = BlogCardSkeleton; exports.BlogCard = BlogCard; exports.CaseStudyCardSkeleton = CaseStudyCardSkeleton; exports.CaseStudyCard = CaseStudyCard; exports.CustomerInterviewCardSkeleton = CustomerInterviewCardSkeleton; exports.CustomerInterviewCard = CustomerInterviewCard; exports.formatInvestorUpdatePeriod = formatInvestorUpdatePeriod; exports.InvestorUpdateCardSkeleton = InvestorUpdateCardSkeleton; exports.InvestorUpdateCard = InvestorUpdateCard; exports.OnboardingGuideCardSkeleton = OnboardingGuideCardSkeleton; exports.OnboardingGuideCard = OnboardingGuideCard; exports.RoadmapVoteButton = RoadmapVoteButton; exports.getStatusColorScheme = getStatusColorScheme; exports.CUSTOM_ITEM_ID = CUSTOM_ITEM_ID; exports.getTaskTypeLabel = getTaskTypeLabel; exports.TaskTypeIcon = TaskTypeIcon; exports.RoadmapCardSkeleton = RoadmapCardSkeleton; exports.RoadmapCard = RoadmapCard; exports.GitHubActivityCard = GitHubActivityCard; exports.GitHubActivityCardSkeleton = GitHubActivityCardSkeleton; exports.SlackMessageCard = SlackMessageCard; exports.SlackMessageCardSkeleton = SlackMessageCardSkeleton; exports.HubspotTicketCard = HubspotTicketCard; exports.HubspotTicketCardSkeleton = HubspotTicketCardSkeleton; exports.DataRoomDocCard = DataRoomDocCard; exports.DataRoomDocCardSkeleton = DataRoomDocCardSkeleton; exports.ProgramCardSkeleton = ProgramCardSkeleton; exports.ProgramCard = ProgramCard; exports.CampaignCardAdmin = CampaignCardAdmin; exports.CampaignCardAdminSkeleton = CampaignCardAdminSkeleton; exports.GenericEntityCard = GenericEntityCard; exports.GenericEntityCardSkeleton = GenericEntityCardSkeleton; exports.extractItems = extractItems; exports.extractItemId = extractItemId; exports.useChatCardItem = useChatCardItem; exports.SOURCE_ICON_NAMES = SOURCE_ICON_NAMES; exports.getSourceIconName = getSourceIconName; exports.SOURCE_LABELS_BY_TABLE = SOURCE_LABELS_BY_TABLE; exports.getSourceLabel = getSourceLabel; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.defaultTableIdForDocumentType = defaultTableIdForDocumentType; exports.resolveSourceRowCTA = resolveSourceRowCTA; exports.resolveSourceIcon = resolveSourceIcon; exports.ChatCardLoader = ChatCardLoader; exports.renderChatInlineEntityCard = renderChatInlineEntityCard; exports.CHAT_TYPE = CHAT_TYPE; exports.OWNER_TYPE = OWNER_TYPE; exports.MESSAGE_ROLE = MESSAGE_ROLE; exports.ASSISTANT_TYPE = ASSISTANT_TYPE; exports.AUTHOR_TYPE = AUTHOR_TYPE; exports.APPROVAL_STATUS = APPROVAL_STATUS; exports.CONNECTION_STATUS = CONNECTION_STATUS; exports.buildChatRefKey = buildChatRefKey; exports.isStructuredContent = isStructuredContent; exports.normalizeContent = normalizeContent2; exports.NETWORK_CONFIG = NETWORK_CONFIG; exports.transformEventToProgram = transformEventToProgram; exports.transformPodcastToProgram = transformPodcastToProgram; exports.transformWebinarToProgram = transformWebinarToProgram; exports.useChunkCatchup = useChunkCatchup; exports.useJetStreamDialogSubscription = useJetStreamDialogSubscription; exports.useNatsDialogSubscription = useNatsDialogSubscription; exports.buildNatsWsUrl = buildNatsWsUrl; exports.parseChunkToAction = parseChunkToAction; exports.isControlChunk = isControlChunk; exports.isErrorChunk = isErrorChunk; exports.isMetadataChunk = isMetadataChunk; exports.extractTextFromChunk = extractTextFromChunk; exports.MessageSegmentAccumulator = MessageSegmentAccumulator; exports.createMessageSegmentAccumulator = createMessageSegmentAccumulator; exports.useRealtimeChunkProcessor = useRealtimeChunkProcessor; exports.fetchSlashCommands = fetchSlashCommands; exports.useSlashCommands = useSlashCommands; exports.useSlashCommandRegistry = useSlashCommandRegistry; exports.fetchEmptyStateConfig = fetchEmptyStateConfig; exports.useEmptyStateConfig = useEmptyStateConfig; exports.useChatAttachments = useChatAttachments; exports.useChatAttachmentImageGallery = useChatAttachmentImageGallery; exports.ChatIdentityProvider = ChatIdentityProvider; exports.useChatIdentity = useChatIdentity; exports.useCloseOnNavigation = useCloseOnNavigation; exports.useSSE = useSSE; exports.useChat = useChat; exports.SCROLL_ANCHOR_WIRE_KEY = SCROLL_ANCHOR_WIRE_KEY; exports.parseScrollAnchor = parseScrollAnchor; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.buildAutoContinuationDirective = buildAutoContinuationDirective; exports.flattenAssistantContent = flattenAssistantContent; exports.parseWireCommandOverride = parseWireCommandOverride; exports.sanitizeTitleForChat = sanitizeTitleForChat; exports.formatSingularLookupInvocation = formatSingularLookupInvocation; exports.extractEntityIdFilter = extractEntityIdFilter; exports.buildDiscussAddendum = buildDiscussAddendum; exports.useSseChatAdapter = useSseChatAdapter; exports.processHistoricalMessages = processHistoricalMessages; exports.extractErrorMessages = extractErrorMessages; exports.processHistoricalMessagesWithErrors = processHistoricalMessagesWithErrors; exports.useNatsChatAdapter = useNatsChatAdapter; exports.useUnifiedChat = useUnifiedChat; exports.extractIncompleteMessageState = extractIncompleteMessageState; exports.SYNTHETIC_REALTIME_ID_PREFIXES = SYNTHETIC_REALTIME_ID_PREFIXES; exports.flattenMessagePagesChronological = flattenMessagePagesChronological; exports.maxPersistedStreamSeq = maxPersistedStreamSeq; exports.mergeHistoryWithRealtime = mergeHistoryWithRealtime; exports.computeHistoryPrepend = computeHistoryPrepend; exports.CHIP_ACTION_BUTTON_CLASS = CHIP_ACTION_BUTTON_CLASS; exports.chatChipClass = chatChipClass; exports.clickupTaskUrl = clickupTaskUrl; exports.EmbeddableChat = EmbeddableChat; exports.FilterCheckboxItem = FilterCheckboxItem; exports.TagKeyValueFilter = TagKeyValueFilter; exports.FilterModal = FilterModal; exports.PageActions = PageActions; exports.usePageActionsBottomPadding = usePageActionsBottomPadding; exports.PageContainer = PageContainer; exports.ListPageContainer = ListPageContainer; exports.DetailPageContainer = DetailPageContainer; exports.FormPageContainer = FormPageContainer; exports.ContentPageContainer = ContentPageContainer; exports.ListPageLayout = ListPageLayout; exports.EntityImage = EntityImage; exports.TITLE_BLOCK_MIN_HEIGHT = TITLE_BLOCK_MIN_HEIGHT; exports.TitleBlock = TitleBlock; exports.PageLayout = PageLayout; exports.PageShell = PageShell; exports.ArticleDetailLayout = ArticleDetailLayout; exports.toggleVariants = toggleVariants; exports.Toggle = Toggle; exports.ToggleGroup = ToggleGroup; exports.ToggleGroupItem = ToggleGroupItem; exports.delay = delay; exports.generateRandomString = generateRandomString; exports.truncateString = truncateString; exports.serializeJsonLd = serializeJsonLd; exports.deepClone = deepClone; exports.getSlackCommunityJoinUrl = getSlackCommunityJoinUrl; exports.SEO_TITLE_MAX_LENGTH = SEO_TITLE_MAX_LENGTH; exports.BRAND_MARK_SVGS = BRAND_MARK_SVGS; exports.brandMarkDataUri = brandMarkDataUri; exports.OS_PLATFORMS = OS_PLATFORMS; exports.DEFAULT_OS_PLATFORM = DEFAULT_OS_PLATFORM; exports.isValidEmailDomain = isValidEmailDomain; exports.validateEmailDomain = validateEmailDomain; exports.validateEmailDomainList = validateEmailDomainList; exports.cleanEmailDomain = cleanEmailDomain; exports.getConfidenceColorClass = getConfidenceColorClass; exports.getConfidenceLevel = getConfidenceLevel; exports.getConfidenceBorderClass = getConfidenceBorderClass; exports.getConfidenceTextClass = getConfidenceTextClass; exports.getConfidenceBgClass = getConfidenceBgClass; exports.getConfidenceLabel = getConfidenceLabel; exports.DEV_SECTION_PARAM_KEYS = DEV_SECTION_PARAM_KEYS; exports.devSectionAnchorId = devSectionAnchorId; exports.normalizeToolType = normalizeToolType; exports.normalizeToolTypeWithFallback = normalizeToolTypeWithFallback; exports.toToolLabel = toToolLabel; exports.isValidToolType = isValidToolType; exports.getToolTypeAliases = getToolTypeAliases; exports.getToolLabel = getToolLabel; exports.ShellTypeValues = ShellTypeValues; exports.SHELL_TYPES = SHELL_TYPES; exports.shellLabels = shellLabels; exports.getShellLabel = getShellLabel; exports.getShellIcon = getShellIcon; exports.OSTypeValues = OSTypeValues; exports.OS_TYPES = OS_TYPES; exports.osLabels = osLabels; exports.normalizeOSType = normalizeOSType; exports.getOSLabel = getOSLabel; exports.getOSIcon = getOSIcon; exports.getOSTypeDefinition = getOSTypeDefinition; exports.getOSPlatformId = getOSPlatformId; exports.isOSPlatform = isOSPlatform; exports.getCountryPhoneData = getCountryPhoneData; exports.getCountryByCode = getCountryByCode; exports.validatePhoneNumber = validatePhoneNumber; exports.formatPhoneE164 = formatPhoneE164; exports.GENERIC_EMAIL_DOMAINS = GENERIC_EMAIL_DOMAINS; exports.extractDomainFromEmail = extractDomainFromEmail; exports.normalizeDomain = normalizeDomain; exports.isGenericDomain = isGenericDomain; exports.hasGenericEmailDomain = hasGenericEmailDomain; exports.isGenericWebsiteDomain = isGenericWebsiteDomain; exports.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.formatTicketRelativeTime = formatTicketRelativeTime; exports.formatTicketFullTimestamp = formatTicketFullTimestamp; exports.formatRelativeTime = formatRelativeTime; exports.formatAbsoluteDate = formatAbsoluteDate; exports.formatDateTime = formatDateTime; exports.getDetailedTimeDifference = getDetailedTimeDifference; exports.isToday = isToday; exports.isWithinMinutes = isWithinMinutes; exports.createUTCTimestamp = createUTCTimestamp; exports.readLeadingDecisionFrame = readLeadingDecisionFrame; exports.AVAILABLE_SVG_ICONS = AVAILABLE_SVG_ICONS; exports.releaseTypeOptions = releaseTypeOptions; exports.releaseStatusOptions = releaseStatusOptions; exports.changelogLabels = changelogLabels; exports.SEMVER_REGEX = SEMVER_REGEX; exports.TASK_TYPE_LABELS = TASK_TYPE_LABELS; exports.TASK_TYPE_TEXT_COLORS = TASK_TYPE_TEXT_COLORS; exports.TMCG_ROLES = TMCG_ROLES; exports.TMCG_ROLE_DISPLAY_NAMES = TMCG_ROLE_DISPLAY_NAMES; exports.TMCG_SOCIAL_PLATFORMS = TMCG_SOCIAL_PLATFORMS; exports.ROADMAP_STATUS_OPTIONS = ROADMAP_STATUS_OPTIONS; exports.DELIVERY_TASK_TYPE_OPTIONS = DELIVERY_TASK_TYPE_OPTIONS; exports.TICKET_STATUS_OPTIONS = TICKET_STATUS_OPTIONS; exports.OPENFRAME_DEV_SECTIONS = OPENFRAME_DEV_SECTIONS; exports.canonicalContentRefType = canonicalContentRefType; exports.buildListUrl = buildListUrl; exports.faqSectionSlug = faqSectionSlug; exports.faqItemAnchor = faqItemAnchor; exports.parseFaqHash = parseFaqHash; exports.CONTENT_REF_GROUPS = CONTENT_REF_GROUPS; exports.getContentRefLabel = getContentRefLabel; exports.getContentRefLabelOrTitleCase = getContentRefLabelOrTitleCase; exports.orderContentRefTypes = orderContentRefTypes; exports.buildSuggestionUrl = buildSuggestionUrl; exports.DEFAULT_CONTENT_SUFFIXES = DEFAULT_CONTENT_SUFFIXES; exports.makeComposeContentUrl = makeComposeContentUrl; exports.buildDefaultHref = buildDefaultHref; exports.resolveContentHref = resolveContentHref; exports.DEFAULT_FOLDER_INDEX_FILE = DEFAULT_FOLDER_INDEX_FILE; exports.stripFolderIndexFromPath = stripFolderIndexFromPath; exports.findDocNodeByPath = findDocNodeByPath; exports.getDocAncestorNodeIds = getDocAncestorNodeIds; exports.resolveContentFetchPath = resolveContentFetchPath; exports.getInitialExpandedNodeIds = getInitialExpandedNodeIds; exports.getDocSourceDefaultPath = getDocSourceDefaultPath; exports.toDocSlug = toDocSlug; exports.pathToNodeId = pathToNodeId; exports.normalizeDocPath = normalizeDocPath; exports.formatDocName = formatDocName; exports.sortTreeChildren = sortTreeChildren; exports.buildDocumentTree = buildDocumentTree; exports.stripInlineMarkdown = stripInlineMarkdown; exports.markdownToPlainText = markdownToPlainText; exports.extractSections = extractSections; exports.SECTION_HERO_ICON_CLASS = SECTION_HERO_ICON_CLASS; exports.BenefitCard = BenefitCard; exports.BenefitCardGrid = BenefitCardGrid; exports.BrandAssociationCard = BrandAssociationCard; exports.BrandAssociationGrid = BrandAssociationGrid; exports.BulletList = BulletList; exports.ChevronButton = ChevronButton; exports.CircularProgress = CircularProgress; exports.CheckIcon = CheckIcon2; exports.XIcon = XIcon2; exports.MinusIcon = MinusIcon; exports.CheckCircleIcon = CheckCircleIcon2; exports.XCircleIcon = XCircleIcon; exports.FloatingTooltip = FloatingTooltip; exports.DashboardInfoCard = DashboardInfoCard; exports.OSTypeBadge = OSTypeBadge; exports.OSTypeIcon = OSTypeIcon; exports.OSTypeLabel = OSTypeLabel; exports.DeviceCard = DeviceCard; exports.DeviceCardCompact = DeviceCardCompact; exports.FeatureCardGrid = FeatureCardGrid; exports.FeatureList = FeatureList; exports.TruncateText = TruncateText; exports.HighlightCard = HighlightCard; exports.HighlightCardGrid = HighlightCardGrid; exports.IconsBlock = IconsBlock; exports.DropdownButton = DropdownButton; exports.MoreActionsMenu = MoreActionsMenu; exports.OrganizationCard = OrganizationCard; exports.ServiceCard = ServiceCard; exports.Slider = Slider; exports.TabSelector = TabSelector; exports.TitleContentBlock = TitleContentBlock; exports.ErrorState = ErrorState; exports.PageError = PageError; exports.LoadError = LoadError; exports.NotFoundError = NotFoundError; exports.ContentLoader = ContentLoader; exports.CardLoader = CardLoader; exports.FormLoader = FormLoader; exports.DetailLoader = DetailLoader; exports.ListLoader = ListLoader; exports.Pagination = Pagination; exports.PaginationContent = PaginationContent; exports.PaginationItem = PaginationItem; exports.PaginationLink = PaginationLink; exports.PaginationEllipsis = PaginationEllipsis; exports.PaginationPrevious = PaginationPrevious; exports.PaginationNext = PaginationNext; exports.init_pagination = init_pagination; exports.CursorPagination = CursorPagination; exports.CursorPaginationSimple = CursorPaginationSimple; exports.TableEmptyState = TableEmptyState; exports.DynamicThemeProvider = DynamicThemeProvider; exports.useDynamicTheme = useDynamicTheme; exports.THEME_STORAGE_KEY = THEME_STORAGE_KEY; exports.THEME_ATTRIBUTE = THEME_ATTRIBUTE; exports.DEFAULT_THEME = DEFAULT_THEME; exports.ThemeProvider = ThemeProvider; exports.useTheme = useTheme; exports.useThemeToggle = useThemeToggle; exports.ArrayEntryManager = ArrayEntryManager; exports.ProviderButton = ProviderButton; exports.AuthProvidersList = AuthProvidersList; exports.ChangelogManager = ChangelogManager; exports.ChangelogSectionsManager = ChangelogSectionsManager; exports.ClickUpTasksManager = ClickUpTasksManager; exports.CommandBox = CommandBox; exports.TAG_BADGE_CLASS = TAG_BADGE_CLASS; exports.EntityTagBadges = EntityTagBadges; exports.ErrorBoundary = ErrorBoundary; exports.SectionSelector = SectionSelector; exports.FigmaPrototypeViewer = FigmaPrototypeViewer; exports.FiltersDropdown = FiltersDropdown; exports.useFiltersDropdown = useFiltersDropdown; exports.GitHubReleasesManager = GitHubReleasesManager; exports.KnowledgeBaseLinksManager = KnowledgeBaseLinksManager; exports.LoadingProvider = LoadingProvider; exports.useLoading = useLoading; exports.MediaGalleryManager = MediaGalleryManager; exports.MoreAboutButton = MoreAboutButton; exports.OSTypeBadgeGroup = OSTypeBadgeGroup; exports.ParallaxImageShowcase = ParallaxImageShowcase; exports.PathsDisplay = PathsDisplay; exports.OPENFRAME_PATHS = OPENFRAME_PATHS; exports.getOpenFramePaths = getOpenFramePaths; exports.OPENFRAME_DOCTOR_COMMANDS = OPENFRAME_DOCTOR_COMMANDS; exports.getOpenFrameDoctorCommand = getOpenFrameDoctorCommand; exports.PlatformFilterComponent = PlatformFilterComponent; exports.PushButtonSelector = PushButtonSelector; exports.ReleaseMediaManager = ReleaseMediaManager; exports.SelectButton = SelectButton; exports.SEOEditorPreview = SEOEditorPreview; exports.SocialLinksManager = SocialLinksManager; exports.StartWithOpenFrameButton = StartWithOpenFrameButton; exports.StatusFilterComponent = StatusFilterComponent; exports.TagsSelector = TagsSelector; exports.WarningBlock = WarningBlock; exports.MUX_STREAM_ORIGIN = MUX_STREAM_ORIGIN; exports.MUX_IMAGE_ORIGIN = MUX_IMAGE_ORIGIN; exports.useVideoOriginPreconnect = useVideoOriginPreconnect; exports.useVideoWarmup = useVideoWarmup; exports.getCaptionsUrl = getCaptionsUrl; exports.VideoSourceSelector = VideoSourceSelector; exports.ConfidenceBadge = ConfidenceBadge; exports.TranscriptSummaryEditor = TranscriptSummaryEditor; exports.AIEnrichButton = AIEnrichButton; exports.AIWarningsSection = AIWarningsSection; exports.AIEnrichSection = AIEnrichSection; exports.HighlightVideoSection = HighlightVideoSection; exports.HighlightConfigSection = HighlightConfigSection; exports.EntitySummaryEditor = EntitySummaryEditor; exports.AIStatusIndicator = AIStatusIndicator; exports.AIRequiredBadge = AIRequiredBadge; exports.TranscribeSummarizeSection = TranscribeSummarizeSection; exports.VideoClipsSection = VideoClipsSection; exports.HighlightGenerationSection = HighlightGenerationSection; exports.HighlightVideoPreview = HighlightVideoPreview; exports.TranscribeAndSummarizeCombinedSection = TranscribeAndSummarizeCombinedSection; exports.HighlightVideoCombinedSection = HighlightVideoCombinedSection; exports.ViewToggle = ViewToggle; exports.PolicyConfigurationPanel = PolicyConfigurationPanel; exports.PhoneInput = PhoneInput; exports.WaitlistForm = WaitlistForm; exports.NotificationsProvider = NotificationsProvider; exports.useNotifications = useNotifications; exports.useOptionalNotifications = useOptionalNotifications; exports.NotificationTile = NotificationTile; exports.NotificationDrawer = NotificationDrawer; exports.NotificationPopups = NotificationPopups; exports.ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE = ADMIN_APPROVAL_REQUEST_CONTEXT_TYPE; exports.isApprovalNotification = isApprovalNotification; exports.getApprovalMeta = getApprovalMeta; exports.resolutionToStatus = resolutionToStatus; exports.approvalMetaToBatchData = approvalMetaToBatchData; exports.ApprovalRequestNotificationTile = ApprovalRequestNotificationTile; exports.TimeTrackerProvider = TimeTrackerProvider; exports.useTimeTracker = useTimeTracker; exports.useOptionalTimeTracker = useOptionalTimeTracker; exports.useTrackerClock = useTrackerClock; exports.TimeTrackerPanel = TimeTrackerPanel; exports.HeaderButton = HeaderButton; exports.TimeTrackerHeaderButton = TimeTrackerHeaderButton; exports.BoardColumnHeader = BoardColumnHeader; exports.tintOnDark = tintOnDark; exports.BoardTicketApproval = BoardTicketApproval; exports.TicketCard = TicketCard; exports.TicketCardSkeleton = TicketCardSkeleton; exports.BoardColumn = BoardColumn; exports.useBoardCollapse = useBoardCollapse; exports.Board = Board; exports.columnFromTicketStatus = columnFromTicketStatus; exports.groupTicketsByStatus = groupTicketsByStatus; exports.TicketStatusConfigList = TicketStatusConfigList; exports.TableHeader = TableHeader; exports.TableCell = TableCell; exports.TableCardSkeleton = TableCardSkeleton; exports.TableRow = TableRow; exports.Table = Table; exports.TableDescriptionCell = TableDescriptionCell; exports.TableTimestampCell = TableTimestampCell; exports.QueryReportTableHeader = QueryReportTableHeader; exports.QueryReportTableRow = QueryReportTableRow; exports.QueryReportTableSkeleton = QueryReportTableSkeleton; exports.deriveColumns = deriveColumns; exports.exportToCSV = exportToCSV; exports.QueryReportTable = QueryReportTable; exports.useDataTableContext = useDataTableContext; exports.DataTableRoot = DataTableRoot; exports.getHideClasses = getHideClasses2; exports.alignJustify = alignJustify; exports.multiSelectFilterFn = multiSelectFilterFn; exports.DataTableHeader = DataTableHeader; exports.DataTableEmpty = DataTableEmpty; exports.ROW_HEIGHT_DESKTOP = ROW_HEIGHT_DESKTOP2; exports.ROW_HEIGHT_MOBILE = ROW_HEIGHT_MOBILE2; exports.DataTableSkeleton = DataTableSkeleton; exports.DataTableRow = DataTableRow; exports.DataTableBody = DataTableBody; exports.DataTableInfiniteFooter = DataTableInfiniteFooter; exports.DataTableCursorFooter = DataTableCursorFooter; exports.DataTableRowCount = DataTableRowCount; exports.useDataTable = useDataTable; exports.DataTable = DataTable; exports.flexRender = _reacttable.flexRender; exports.createColumnHelper = _reacttable.createColumnHelper; exports.getCoreRowModel = _reacttable.getCoreRowModel; exports.getExpandedRowModel = _reacttable.getExpandedRowModel; exports.getFacetedRowModel = _reacttable.getFacetedRowModel; exports.getFacetedUniqueValues = _reacttable.getFacetedUniqueValues; exports.getFilteredRowModel = _reacttable.getFilteredRowModel; exports.getGroupedRowModel = _reacttable.getGroupedRowModel; exports.getPaginationRowModel = _reacttable.getPaginationRowModel; exports.getSortedRowModel = _reacttable.getSortedRowModel; exports.SearchInput = SearchInput; exports.FilterListItem = FilterListItem; exports.FilterList = FilterList; exports.TagSearchInput = TagSearchInput; exports.MarkdownEditor = MarkdownEditor; exports.FileUpload = FileUpload; exports.ImageUploader = ImageUploader; exports.TICKET_STATUS_COLOR_PRESETS = TICKET_STATUS_COLOR_PRESETS; exports.CUSTOM_PRESET_KEY = CUSTOM_PRESET_KEY; exports.DEFAULT_CUSTOM_STATUS_COLOR = DEFAULT_CUSTOM_STATUS_COLOR; exports.ColorPresetSelect = ColorPresetSelect; exports.ColorPickerInput = ColorPickerInput; exports.TicketStatusConfigRow = TicketStatusConfigRow; exports.TicketDetailSection = TicketDetailSection; exports.TicketAttachmentsList = TicketAttachmentsList; exports.TicketNoteCard = TicketNoteCard; exports.TicketNotesSection = TicketNotesSection; exports.TicketInfoSection = TicketInfoSection; exports.FilterPillRow = FilterPillRow; exports.Header = Header2; exports.HeaderSkeleton = HeaderSkeleton; exports.ClientOnlyHeader = ClientOnlyHeader; exports.MobileNavPanel = MobileNavPanel; exports.SlidingSidebar = SlidingSidebar; exports.StickySectionNav = StickySectionNav; exports.useSectionNavigation = useSectionNavigation; exports.NavigationSidebar = NavigationSidebar; exports.HeaderGlobalSearch = HeaderGlobalSearch; exports.HeaderMingoButton = HeaderMingoButton; exports.HeaderOrganizationFilter = HeaderOrganizationFilter; exports.AppHeader = AppHeader; exports.MobileBurgerMenu = MobileBurgerMenu; exports.useAppLayoutDrawerContainer = useAppLayoutDrawerContainer; exports.AppLayout = AppLayout; exports.AppLayoutDrawerRoot = AppLayoutDrawerRoot; exports.AppLayoutDrawerTrigger = AppLayoutDrawerTrigger; exports.AppLayoutDrawerClose = AppLayoutDrawerClose; exports.AppLayoutDrawerContent = AppLayoutDrawerContent; exports.AppLayoutDrawerHeader = AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = AppLayoutDrawerTitle; exports.AppLayoutDrawerDescription = AppLayoutDrawerDescription; exports.AppLayoutDrawerBody = AppLayoutDrawerBody; exports.AppLayoutDrawerFooter = AppLayoutDrawerFooter; exports.MultiLevelNavigation = MultiLevelNavigation; exports.MobileNavigationDropdown = MobileNavigationDropdown; exports.SoftwareInfo = SoftwareInfo; exports.SoftwareSourceBadge = SoftwareSourceBadge; exports.CveLink = CveLink; exports.ToolBadge = ToolBadge; exports.ShellTypeBadge = ShellTypeBadge; exports.ScriptInfoSection = ScriptInfoSection; exports.ScriptArguments = ScriptArguments; exports.OnboardingStepCard = OnboardingStepCard; exports.OnboardingWalkthrough = OnboardingWalkthrough; exports.LOG_SEVERITY_COLORS = LOG_SEVERITY_COLORS; exports.LOG_SEVERITY_LABELS = LOG_SEVERITY_LABELS; exports.LogSeverityDot = LogSeverityDot; exports.LogsList = LogsList; exports.assets = assets;
50504
- //# sourceMappingURL=chunk-OQ75ZMB7.cjs.map
50452
+ //# sourceMappingURL=chunk-3B663UT5.cjs.map