@estiva-app/ui 0.94.0 → 0.96.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/dist/AppShell.d.ts +25 -7
  2. package/dist/AppShell.d.ts.map +1 -1
  3. package/dist/ArchivedNotice.d.ts +28 -0
  4. package/dist/ArchivedNotice.d.ts.map +1 -0
  5. package/dist/Button.d.ts +4 -3
  6. package/dist/Button.d.ts.map +1 -1
  7. package/dist/Card.d.ts.map +1 -1
  8. package/dist/CommentBox.d.ts.map +1 -1
  9. package/dist/ConversationActions.d.ts +24 -0
  10. package/dist/ConversationActions.d.ts.map +1 -0
  11. package/dist/ConversationCard.d.ts +88 -0
  12. package/dist/ConversationCard.d.ts.map +1 -0
  13. package/dist/ConversationLayout.d.ts +50 -0
  14. package/dist/ConversationLayout.d.ts.map +1 -0
  15. package/dist/ConversationMenu.d.ts +24 -0
  16. package/dist/ConversationMenu.d.ts.map +1 -0
  17. package/dist/Divider.d.ts +23 -4
  18. package/dist/Divider.d.ts.map +1 -1
  19. package/dist/EditedMarker.d.ts +11 -0
  20. package/dist/EditedMarker.d.ts.map +1 -0
  21. package/dist/IconButton.d.ts +3 -3
  22. package/dist/IconButton.d.ts.map +1 -1
  23. package/dist/LinkParts.d.ts +3 -1
  24. package/dist/LinkParts.d.ts.map +1 -1
  25. package/dist/LinkRow.d.ts.map +1 -1
  26. package/dist/ListColumn.d.ts +3 -1
  27. package/dist/ListColumn.d.ts.map +1 -1
  28. package/dist/MetaText.d.ts +22 -0
  29. package/dist/MetaText.d.ts.map +1 -0
  30. package/dist/NavItem.d.ts.map +1 -1
  31. package/dist/PageHeader.d.ts +50 -0
  32. package/dist/PageHeader.d.ts.map +1 -0
  33. package/dist/Panel.d.ts +6 -0
  34. package/dist/Panel.d.ts.map +1 -1
  35. package/dist/PartCard.d.ts +4 -7
  36. package/dist/PartCard.d.ts.map +1 -1
  37. package/dist/PinnedComment.d.ts +17 -0
  38. package/dist/PinnedComment.d.ts.map +1 -0
  39. package/dist/QuotedLine.d.ts +16 -0
  40. package/dist/QuotedLine.d.ts.map +1 -0
  41. package/dist/ReactionHorizon.d.ts +14 -0
  42. package/dist/ReactionHorizon.d.ts.map +1 -0
  43. package/dist/RepliesRow.d.ts +26 -0
  44. package/dist/RepliesRow.d.ts.map +1 -0
  45. package/dist/ResolveDialog.d.ts +13 -0
  46. package/dist/ResolveDialog.d.ts.map +1 -0
  47. package/dist/Select.d.ts +1 -1
  48. package/dist/Select.d.ts.map +1 -1
  49. package/dist/ShowMore.d.ts +1 -7
  50. package/dist/ShowMore.d.ts.map +1 -1
  51. package/dist/Skeleton.d.ts +8 -4
  52. package/dist/Skeleton.d.ts.map +1 -1
  53. package/dist/Thread.d.ts +38 -0
  54. package/dist/Thread.d.ts.map +1 -0
  55. package/dist/TopBar.d.ts +3 -2
  56. package/dist/TopBar.d.ts.map +1 -1
  57. package/dist/UrgentMark.d.ts +6 -0
  58. package/dist/UrgentMark.d.ts.map +1 -0
  59. package/dist/commentBoxFrame.d.ts +3 -1
  60. package/dist/commentBoxFrame.d.ts.map +1 -1
  61. package/dist/conversation.examples.d.ts +52 -0
  62. package/dist/conversation.examples.d.ts.map +1 -0
  63. package/dist/editor.js +32 -24
  64. package/dist/editor.js.map +2 -2
  65. package/dist/eslint/index.js +2 -1
  66. package/dist/eslint/index.js.map +2 -2
  67. package/dist/eslint/no-native-title.d.ts +1 -1
  68. package/dist/eslint/no-native-title.d.ts.map +1 -1
  69. package/dist/eslint/no-restyled-part.d.ts.map +1 -1
  70. package/dist/index.d.ts +18 -2
  71. package/dist/index.d.ts.map +1 -1
  72. package/dist/index.js +1379 -442
  73. package/dist/index.js.map +4 -4
  74. package/dist/looks.d.ts +13 -1
  75. package/dist/looks.d.ts.map +1 -1
  76. package/dist/threadCard.d.ts +46 -0
  77. package/dist/threadCard.d.ts.map +1 -0
  78. package/package.json +1 -1
  79. package/registry.json +1872 -557
  80. package/src/AppShell.mdx +24 -10
  81. package/src/AppShell.stories.tsx +65 -31
  82. package/src/AppShell.test.tsx +92 -10
  83. package/src/AppShell.tsx +108 -18
  84. package/src/ArchivedNotice.mdx +46 -0
  85. package/src/ArchivedNotice.stories.tsx +52 -0
  86. package/src/ArchivedNotice.test.tsx +42 -0
  87. package/src/ArchivedNotice.tsx +71 -0
  88. package/src/Button.mdx +2 -2
  89. package/src/Button.tsx +8 -6
  90. package/src/Card.test.tsx +4 -4
  91. package/src/Card.tsx +6 -2
  92. package/src/CommentBox.test.tsx +2 -1
  93. package/src/CommentBox.tsx +14 -7
  94. package/src/ConfirmDialog.stories.tsx +12 -0
  95. package/src/ConversationActions.mdx +47 -0
  96. package/src/ConversationActions.stories.tsx +39 -0
  97. package/src/ConversationActions.tsx +96 -0
  98. package/src/ConversationCard.mdx +72 -0
  99. package/src/ConversationCard.states.test.tsx +330 -0
  100. package/src/ConversationCard.stories.tsx +135 -0
  101. package/src/ConversationCard.test.tsx +159 -0
  102. package/src/ConversationCard.tsx +522 -0
  103. package/src/ConversationLayout.mdx +61 -0
  104. package/src/ConversationLayout.stories.tsx +161 -0
  105. package/src/ConversationLayout.test.tsx +240 -0
  106. package/src/ConversationLayout.tsx +233 -0
  107. package/src/ConversationMenu.mdx +47 -0
  108. package/src/ConversationMenu.stories.tsx +42 -0
  109. package/src/ConversationMenu.test.tsx +47 -0
  110. package/src/ConversationMenu.tsx +57 -0
  111. package/src/Divider.mdx +36 -1
  112. package/src/Divider.stories.tsx +57 -0
  113. package/src/Divider.test.tsx +24 -1
  114. package/src/Divider.tsx +49 -9
  115. package/src/EditedMarker.mdx +36 -0
  116. package/src/EditedMarker.stories.tsx +24 -0
  117. package/src/EditedMarker.tsx +20 -0
  118. package/src/IconButton.mdx +2 -1
  119. package/src/IconButton.tsx +8 -5
  120. package/src/LinkCard.test.tsx +5 -2
  121. package/src/LinkParts.mdx +4 -0
  122. package/src/LinkParts.stories.tsx +10 -0
  123. package/src/LinkParts.tsx +5 -1
  124. package/src/LinkRow.mdx +1 -1
  125. package/src/LinkRow.tsx +10 -5
  126. package/src/ListColumn.tsx +9 -3
  127. package/src/MetaText.mdx +41 -0
  128. package/src/MetaText.stories.tsx +29 -0
  129. package/src/MetaText.tsx +38 -0
  130. package/src/NavItem.tsx +2 -11
  131. package/src/PageHeader.mdx +123 -0
  132. package/src/PageHeader.stories.tsx +174 -0
  133. package/src/PageHeader.test.tsx +99 -0
  134. package/src/PageHeader.tsx +105 -0
  135. package/src/Panel.mdx +12 -0
  136. package/src/Panel.stories.tsx +47 -5
  137. package/src/Panel.test.tsx +40 -0
  138. package/src/Panel.tsx +8 -2
  139. package/src/PartCard.mdx +1 -1
  140. package/src/PartCard.stories.tsx +2 -9
  141. package/src/PartCard.test.tsx +13 -1
  142. package/src/PartCard.tsx +6 -9
  143. package/src/PinnedComment.mdx +40 -0
  144. package/src/PinnedComment.stories.tsx +21 -0
  145. package/src/PinnedComment.tsx +40 -0
  146. package/src/QuotedLine.mdx +44 -0
  147. package/src/QuotedLine.stories.tsx +30 -0
  148. package/src/QuotedLine.test.tsx +34 -0
  149. package/src/QuotedLine.tsx +33 -0
  150. package/src/ReactionHorizon.mdx +36 -0
  151. package/src/ReactionHorizon.stories.tsx +27 -0
  152. package/src/ReactionHorizon.tsx +27 -0
  153. package/src/RepliesRow.mdx +45 -0
  154. package/src/RepliesRow.stories.tsx +33 -0
  155. package/src/RepliesRow.test.tsx +47 -0
  156. package/src/RepliesRow.tsx +86 -0
  157. package/src/ReplyCard.mdx +50 -0
  158. package/src/ReplyCard.stories.tsx +68 -0
  159. package/src/ResolveDialog.mdx +44 -0
  160. package/src/ResolveDialog.stories.tsx +23 -0
  161. package/src/ResolveDialog.test.tsx +53 -0
  162. package/src/ResolveDialog.tsx +58 -0
  163. package/src/Select.tsx +12 -2
  164. package/src/ShowMore.mdx +2 -5
  165. package/src/ShowMore.stories.tsx +0 -14
  166. package/src/ShowMore.test.tsx +0 -16
  167. package/src/ShowMore.tsx +2 -16
  168. package/src/Skeleton.stories.tsx +4 -1
  169. package/src/Skeleton.tsx +33 -4
  170. package/src/Thread.mdx +53 -0
  171. package/src/Thread.stories.tsx +167 -0
  172. package/src/Thread.test.tsx +83 -0
  173. package/src/Thread.tsx +113 -0
  174. package/src/TopBar.mdx +8 -6
  175. package/src/TopBar.stories.tsx +4 -3
  176. package/src/TopBar.tsx +8 -3
  177. package/src/UrgentMark.mdx +37 -0
  178. package/src/UrgentMark.stories.tsx +27 -0
  179. package/src/UrgentMark.tsx +15 -0
  180. package/src/commentBoxFrame.tsx +8 -4
  181. package/src/conversation.examples.tsx +135 -0
  182. package/src/eslint/no-native-title.ts +1 -1
  183. package/src/eslint/no-restyled-part.ts +1 -0
  184. package/src/index.ts +19 -2
  185. package/src/looks.ts +18 -2
  186. package/src/registry/registry.test.ts +7 -6
  187. package/src/threadCard.ts +84 -0
  188. package/stories/Choosing.mdx +21 -1
  189. package/tokens.css +14 -10
package/dist/index.js CHANGED
@@ -36,6 +36,7 @@ function useInAppClick(href, onClick) {
36
36
  }
37
37
 
38
38
  // src/AppShell.tsx
39
+ import { useCallback, useState } from "react";
39
40
  import { IconLayoutSidebarLeftCollapse, IconLayoutSidebarLeftExpand } from "@tabler/icons-react";
40
41
 
41
42
  // src/cn.ts
@@ -95,6 +96,9 @@ var SIDEBAR_ROW_CLASSES = "rounded-lg transition-colors";
95
96
  var SIDEBAR_ROW_TEXT_CLASSES = "text-text-secondary hover:text-text-primary";
96
97
  var MUTED_CONTROL_CLASSES = "text-text-secondary hover:bg-bg-hover hover:text-text-primary";
97
98
  var MENU_TRIGGER_CLASSES = "cursor-pointer rounded-md transition-colors hover:bg-bg-hover data-[popup-open]:bg-bg-hover";
99
+ var FOLD_MOTION_CLASSES = "duration-300 ease-in-out motion-reduce:transition-none";
100
+ var FOLDED_CLASSES = "invisible opacity-0";
101
+ var UNFOLDED_CLASSES = "visible opacity-100";
98
102
  var COLLAPSIBLE_PANEL_CLASSES = "h-[var(--collapsible-panel-height)] overflow-hidden transition-[height] duration-150 ease-out motion-reduce:transition-none data-[starting-style]:h-0 data-[ending-style]:h-0";
99
103
  var TYPE_TILE_CLASSES = "size-9 rounded-md bg-bg-active flex items-center justify-center shrink-0 text-text-secondary";
100
104
  var QUOTE_BAR_CLASSES = "border-l-2 border-border-default pl-3";
@@ -146,8 +150,8 @@ var HAIRLINE_HELD_CLASSES = {
146
150
  none: "border-border-default"
147
151
  };
148
152
  var ATTENTION_CLASSES = {
149
- accent: "border-accent-muted hover:border-accent-muted",
150
- warning: "border-warning-muted hover:border-warning-muted"
153
+ accent: "border-accent-outline hover:border-accent-outline",
154
+ warning: "border-warning-outline hover:border-warning-outline"
151
155
  };
152
156
  function Card({
153
157
  fill = "surface",
@@ -290,7 +294,7 @@ function TooltipTrigger({ label, shortcut, placement = "top", children }) {
290
294
  import { jsx as jsx6 } from "react/jsx-runtime";
291
295
  function IconButton({
292
296
  variant = "muted",
293
- pressed,
297
+ pressed: pressed2,
294
298
  glow = false,
295
299
  className,
296
300
  children,
@@ -324,13 +328,16 @@ function IconButton({
324
328
  !off && (variant === "muted" || variant === "resolve") && MUTED_CONTROL_CLASSES,
325
329
  !off && variant === "outlined" && "border border-border-default hover:bg-bg-hover text-text-secondary",
326
330
  !off && variant === "current" && "hover:bg-bg-hover",
327
- off && variant === "primary" && "bg-bg-disabled text-text-disabled",
331
+ // Not yet usable, as the comment box's Send while the box is empty: the disabled fill, as every app shows it
332
+ // (Katerina, 1 November). In Leaf, a quiet icon with no fill, in the muted words' colour, so it still reads on
333
+ // the box's grey (31 October: the disabled fill and colour were 1.06 and 1.29 : 1 there).
334
+ off && variant === "primary" && "bg-bg-disabled text-text-disabled leaf:bg-transparent leaf:text-text-muted",
328
335
  off && (variant === "muted" || variant === "resolve") && "text-text-disabled",
329
336
  off && variant === "outlined" && "border border-border-default text-text-disabled",
330
337
  // Always, disabled too: the colour of where it sits, and Resolve's green.
331
338
  variant === "current" && "text-current",
332
- variant === "resolve" && "signal:hover:bg-success-muted signal:hover:text-success-default",
333
- pressed && "bg-bg-active text-text-primary",
339
+ variant === "resolve" && "hover:bg-success-muted hover:text-success-default",
340
+ pressed2 && "bg-bg-active text-text-primary",
334
341
  glow && "signal:shadow-glow-accent",
335
342
  // `pointer-events-none` only where the button is truly out of reach:
336
343
  // with a `disabledReason` the button IS the tooltip's trigger, and a
@@ -347,7 +354,7 @@ function IconButton({
347
354
  disabled: unusable,
348
355
  focusableWhenDisabled: !!disabledReason,
349
356
  className: (state) => look(state.disabled),
350
- "aria-pressed": pressed,
357
+ "aria-pressed": pressed2,
351
358
  ...props,
352
359
  children
353
360
  }
@@ -447,7 +454,8 @@ function TopBar({ variant = "solid", menu, logo, search, onSearch, searchPlaceho
447
454
  "header",
448
455
  {
449
456
  className: cn(
450
- "flex h-[52px] items-center pl-5 pr-[26px]",
457
+ "flex h-[52px] items-center pr-[26px]",
458
+ menu && !floating ? "pl-3.5" : "pl-5",
451
459
  floating ? "pointer-events-none absolute left-0 right-0 top-0 z-10" : cn("shrink-0 gap-4", variant === "solid" && "border-b border-border-default bg-bg-surface"),
452
460
  className
453
461
  ),
@@ -466,7 +474,7 @@ function TopBar({ variant = "solid", menu, logo, search, onSearch, searchPlaceho
466
474
  // src/AppShell.tsx
467
475
  import { Fragment, jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
468
476
  function AppShell({ variant = "solid", menu, logo, search, onSearch, searchPlaceholder, identity, banner, nav, navOpen = true, onNavOpenChange, children }) {
469
- const fold = onNavOpenChange && variant !== "floating" && /* @__PURE__ */ jsx10(
477
+ const fold = onNavOpenChange && /* @__PURE__ */ jsx10(
470
478
  IconButton,
471
479
  {
472
480
  tooltip: navOpen ? "Hide the sidebar" : "Show the sidebar",
@@ -479,6 +487,26 @@ function AppShell({ variant = "solid", menu, logo, search, onSearch, searchPlace
479
487
  );
480
488
  const bar = /* @__PURE__ */ jsx10(TopBar, { variant, menu: menu ?? fold, logo, search, onSearch, searchPlaceholder, right: identity });
481
489
  const inset = variant === "inset";
490
+ const margin = variant === "solid" ? 0 : 16;
491
+ const folding = /* @__PURE__ */ jsx10(
492
+ "div",
493
+ {
494
+ className: cn("grid shrink-0 transition-[grid-template-columns]", FOLD_MOTION_CLASSES),
495
+ style: { gridTemplateColumns: navOpen ? "0px 1fr" : `${margin}px 0fr` },
496
+ children: /* @__PURE__ */ jsx10(
497
+ "div",
498
+ {
499
+ inert: !navOpen,
500
+ className: cn(
501
+ "col-start-2 flex min-w-0 overflow-hidden transition-[opacity,visibility]",
502
+ FOLD_MOTION_CLASSES,
503
+ navOpen ? UNFOLDED_CLASSES : FOLDED_CLASSES
504
+ ),
505
+ children: /* @__PURE__ */ jsx10(SidebarOnGround.Provider, { value: inset, children: nav })
506
+ }
507
+ )
508
+ }
509
+ );
482
510
  if (variant === "floating") {
483
511
  return (
484
512
  // `signal-canvas`: in the Signal theme, the preset draws the control-room dot
@@ -487,7 +515,7 @@ function AppShell({ variant = "solid", menu, logo, search, onSearch, searchPlace
487
515
  /* @__PURE__ */ jsxs4("div", { className: "signal-canvas relative h-full min-h-0 overflow-hidden bg-bg-base", children: [
488
516
  bar,
489
517
  /* @__PURE__ */ jsxs4("div", { className: "flex h-full pb-4 pr-4 pt-[52px]", children: [
490
- nav,
518
+ folding,
491
519
  /* @__PURE__ */ jsxs4(
492
520
  "div",
493
521
  {
@@ -522,16 +550,58 @@ function AppShell({ variant = "solid", menu, logo, search, onSearch, searchPlace
522
550
  /* @__PURE__ */ jsxs4("div", { className: "relative flex h-full min-h-0 flex-col overflow-hidden bg-bg-base text-text-primary", children: [
523
551
  bar,
524
552
  /* @__PURE__ */ jsxs4("div", { className: "flex min-h-0 flex-1", children: [
525
- /* @__PURE__ */ jsx10("div", { className: navOpen ? "contents" : "hidden", hidden: !navOpen, children: /* @__PURE__ */ jsx10(SidebarOnGround.Provider, { value: inset, children: nav }) }),
526
- !navOpen && inset && /* @__PURE__ */ jsx10("div", { className: "w-4 flex-none" }),
553
+ folding,
527
554
  inset ? /* @__PURE__ */ jsx10(Card, { fill: "surface", clip: true, className: "mb-4 mr-4 flex min-h-0 min-w-0 flex-1 flex-col", children: column }) : /* @__PURE__ */ jsx10("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: column })
528
555
  ] })
529
556
  ] })
530
557
  );
531
558
  }
559
+ var FOLDED = "1";
560
+ function keptFolded(key) {
561
+ try {
562
+ return window.localStorage.getItem(key) === FOLDED;
563
+ } catch {
564
+ return false;
565
+ }
566
+ }
567
+ function keepFolded(key, folded) {
568
+ try {
569
+ if (folded) window.localStorage.setItem(key, FOLDED);
570
+ else window.localStorage.removeItem(key);
571
+ } catch {
572
+ }
573
+ }
574
+ function reloaded() {
575
+ const [entry] = typeof performance.getEntriesByType === "function" ? performance.getEntriesByType("navigation") : [];
576
+ return entry?.type === "reload";
577
+ }
578
+ var shown = /* @__PURE__ */ new Map();
579
+ function onLoad({ storageKey, isFile, foldWhen }) {
580
+ if (foldWhen && typeof window.matchMedia === "function" && window.matchMedia(foldWhen).matches) return false;
581
+ if (!keptFolded(storageKey)) return true;
582
+ if (!isFile?.() || reloaded()) return false;
583
+ keepFolded(storageKey, false);
584
+ return true;
585
+ }
586
+ function useSidebarFold(options) {
587
+ const { storageKey } = options;
588
+ const [open, setOpen] = useState(() => {
589
+ if (!shown.has(storageKey)) shown.set(storageKey, onLoad(options));
590
+ return shown.get(storageKey);
591
+ });
592
+ const change = useCallback(
593
+ (next) => {
594
+ setOpen(next);
595
+ shown.set(storageKey, next);
596
+ keepFolded(storageKey, !next);
597
+ },
598
+ [storageKey]
599
+ );
600
+ return [open, change];
601
+ }
532
602
 
533
603
  // src/AttachmentCard.tsx
534
- import { useEffect as useEffect2, useLayoutEffect, useRef as useRef3, useState } from "react";
604
+ import { useEffect as useEffect2, useLayoutEffect, useRef as useRef3, useState as useState2 } from "react";
535
605
  import { Button as BaseButton3 } from "@base-ui/react/button";
536
606
  import {
537
607
  IconAlertCircle,
@@ -640,7 +710,7 @@ function TypeIcon({ name }) {
640
710
  }
641
711
  function Truncating({ text, hint, className, wrapperClassName, placement }) {
642
712
  const ref = useRef3(null);
643
- const [cut, setCut] = useState(false);
713
+ const [cut, setCut] = useState2(false);
644
714
  useLayoutEffect(() => {
645
715
  const el = ref.current;
646
716
  if (!el) return;
@@ -681,7 +751,7 @@ function RemoveBadge({ label, onRemove, className }) {
681
751
  );
682
752
  }
683
753
  function useRemoteImage(url, fetchImage) {
684
- const [result, setResult] = useState({});
754
+ const [result, setResult] = useState2({});
685
755
  const fetcher = useRef3(fetchImage);
686
756
  fetcher.current = fetchImage;
687
757
  useEffect2(() => {
@@ -753,7 +823,7 @@ function AttachmentCard({
753
823
  const fetching = !src && !!remoteSrc && !!fetchImage;
754
824
  const drawnState = state !== "ready" ? state : image && fetching ? remote.failed ? "unreadable" : picture ? "ready" : "loading" : state;
755
825
  const address = href ?? (!image && fetching ? remote.src : void 0);
756
- const [opened, setOpened] = useState(false);
826
+ const [opened, setOpened] = useState2(false);
757
827
  const full = useRemoteImage(opened ? remoteFullSrc : void 0, fetchImage);
758
828
  const openable = image && !!picture && !pending;
759
829
  const openPicture = onOpen ?? (openable ? () => setOpened(true) : void 0);
@@ -1021,7 +1091,8 @@ function Button({
1021
1091
  // Extra right padding beside a leading icon, for optical balance.
1022
1092
  size === "default" && (hasLeadingIcon ? "pl-2 pr-3" : "px-2"),
1023
1093
  size === "small" && (hasLeadingIcon ? "pl-1.5 pr-2" : "px-1.5"),
1024
- !off && (variant === "primary" || variant === "resolve") && "bg-accent-primary hover:bg-accent-hover text-text-inverse cursor-pointer signal:font-semibold",
1094
+ !off && variant === "primary" && "bg-accent-primary hover:bg-accent-hover text-text-inverse cursor-pointer signal:font-semibold",
1095
+ !off && variant === "resolve" && "cursor-pointer signal:font-semibold",
1025
1096
  // @estiva-escape(no-copied-look): W2 (Katerina, 24 September: leave alone): an outlined button shares four words with Reaction's pill by coincidence
1026
1097
  !off && variant === "outlined" && "border border-border-default hover:bg-bg-hover text-text-primary cursor-pointer",
1027
1098
  !off && variant === "muted" && "hover:bg-bg-hover text-text-primary cursor-pointer",
@@ -1034,8 +1105,8 @@ function Button({
1034
1105
  // and a prevented `onClick`), so nothing else needs it.
1035
1106
  off && !disabledReason && "pointer-events-none",
1036
1107
  off && variant === "outlined" && "border border-border-default",
1037
- // Disabled too, as it always drew.
1038
- variant === "resolve" && "signal:bg-transparent signal:border signal:border-border-default signal:text-text-primary signal:shadow-none signal:hover:bg-success-muted signal:hover:border-success-outline signal:hover:text-success-default signal:transition-colors",
1108
+ // Disabled too, as it always drew; in every theme, as Signal drew it (Katerina, 31 October).
1109
+ variant === "resolve" && "border border-border-default bg-transparent text-text-primary shadow-none transition-colors hover:border-success-outline hover:bg-success-muted hover:text-success-default",
1039
1110
  className
1040
1111
  );
1041
1112
  const button = href && !unusable ? /* @__PURE__ */ jsxs8("a", { href, ...external ? { target: "_blank", rel: "noopener noreferrer" } : {}, className: look(false), ...anchor, onClick: inApp, children: [
@@ -1060,7 +1131,7 @@ function MembersPill({ members, count, onClick, className }) {
1060
1131
  }
1061
1132
 
1062
1133
  // src/MembersDialog.tsx
1063
- import { useId, useState as useState3 } from "react";
1134
+ import { useId as useId2, useState as useState4 } from "react";
1064
1135
  import { IconArrowLeft, IconUserMinus, IconUserPlus } from "@tabler/icons-react";
1065
1136
 
1066
1137
  // src/Chip.tsx
@@ -1094,7 +1165,7 @@ function Chip({ type = "neutral", label, leadingIcon, trailingIcon, href, onClic
1094
1165
  }
1095
1166
 
1096
1167
  // src/ChipInput.tsx
1097
- import { useMemo as useMemo2, useState as useState2 } from "react";
1168
+ import { useMemo as useMemo2, useState as useState3 } from "react";
1098
1169
  import { Button as BaseButton5 } from "@base-ui/react/button";
1099
1170
  import { Combobox } from "@base-ui/react/combobox";
1100
1171
  import { IconX as IconX3 } from "@tabler/icons-react";
@@ -1105,45 +1176,11 @@ import { IconChevronRight } from "@tabler/icons-react";
1105
1176
  import { Menu as BaseMenu } from "@base-ui/react/menu";
1106
1177
 
1107
1178
  // src/Divider.tsx
1108
- import { createContext as createContext4, useContext as useContext4 } from "react";
1179
+ import { createContext as createContext4, useContext as useContext4, useId } from "react";
1109
1180
  import { Separator } from "@base-ui/react/separator";
1110
- import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
1111
- var DividerInPanel = createContext4(false);
1112
- function Divider({ orientation = "horizontal", label, tone = "default", className }) {
1113
- const inset = useContext4(DividerInPanel) ? "mx-0" : "mx-3";
1114
- if (label && orientation === "horizontal") {
1115
- const line = tone === "warning" ? "bg-warning-muted" : "bg-border-subtle";
1116
- return /* @__PURE__ */ jsxs11(
1117
- Separator,
1118
- {
1119
- orientation: "horizontal",
1120
- "aria-label": label,
1121
- className: cn("flex shrink-0 items-center gap-2", inset, className),
1122
- children: [
1123
- /* @__PURE__ */ jsx18("span", { "aria-hidden": "true", className: cn("h-px flex-1", line) }),
1124
- /* @__PURE__ */ jsx18("span", { className: cn("shrink-0 text-caption", tone === "warning" ? "text-warning-default" : "text-text-muted"), children: label }),
1125
- /* @__PURE__ */ jsx18("span", { "aria-hidden": "true", className: cn("h-px flex-1", line) })
1126
- ]
1127
- }
1128
- );
1129
- }
1130
- return /* @__PURE__ */ jsx18(
1131
- Separator,
1132
- {
1133
- orientation,
1134
- className: cn("shrink-0 bg-border-subtle", orientation === "horizontal" ? cn("h-px", inset) : "w-px self-stretch", className)
1135
- }
1136
- );
1137
- }
1138
-
1139
- // src/triggerDisabled.ts
1140
- function triggerDisabled(trigger) {
1141
- const props = trigger.props;
1142
- return !!(props.disabled || props.disabledReason);
1143
- }
1144
1181
 
1145
1182
  // src/SectionLabel.tsx
1146
- import { jsx as jsx19 } from "react/jsx-runtime";
1183
+ import { jsx as jsx18 } from "react/jsx-runtime";
1147
1184
  function SectionLabel({
1148
1185
  children,
1149
1186
  tone = "primary",
@@ -1151,7 +1188,7 @@ function SectionLabel({
1151
1188
  folds = false,
1152
1189
  className
1153
1190
  }) {
1154
- return /* @__PURE__ */ jsx19(
1191
+ return /* @__PURE__ */ jsx18(
1155
1192
  "span",
1156
1193
  {
1157
1194
  className: cn(
@@ -1171,6 +1208,53 @@ function SectionLabel({
1171
1208
  );
1172
1209
  }
1173
1210
 
1211
+ // src/Divider.tsx
1212
+ import { jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
1213
+ var DividerInPanel = createContext4(false);
1214
+ function Divider({ orientation = "horizontal", label, tone = "default", look = "caption", sticky = false, className }) {
1215
+ const inset = useContext4(DividerInPanel) ? "mx-0" : "mx-3";
1216
+ const labelId = useId();
1217
+ if (label != null && label !== false && label !== "" && orientation === "horizontal") {
1218
+ const line = tone === "warning" ? "bg-warning-muted" : "bg-border-subtle";
1219
+ const named2 = typeof label === "string" ? { "aria-label": label } : { "aria-labelledby": labelId };
1220
+ const id = typeof label === "string" ? void 0 : labelId;
1221
+ const stays = sticky && "sticky top-0 z-10 bg-bg-surface";
1222
+ if (look === "section") {
1223
+ return /* @__PURE__ */ jsxs11(Separator, { orientation: "horizontal", ...named2, className: cn("flex shrink-0 items-center gap-2 px-2 py-1.5", stays, className), children: [
1224
+ /* @__PURE__ */ jsx19("span", { "aria-hidden": "true", className: "h-px flex-1 bg-border-subtle" }),
1225
+ /* @__PURE__ */ jsx19("span", { id, className: "flex min-w-0", children: /* @__PURE__ */ jsx19(SectionLabel, { tone: "muted", truncate: true, children: label }) }),
1226
+ /* @__PURE__ */ jsx19("span", { "aria-hidden": "true", className: "h-px flex-1 bg-border-subtle" })
1227
+ ] });
1228
+ }
1229
+ return /* @__PURE__ */ jsxs11(
1230
+ Separator,
1231
+ {
1232
+ orientation: "horizontal",
1233
+ ...named2,
1234
+ className: cn("flex shrink-0 items-center gap-2", inset, stays, className),
1235
+ children: [
1236
+ /* @__PURE__ */ jsx19("span", { "aria-hidden": "true", className: cn("h-px flex-1", line) }),
1237
+ /* @__PURE__ */ jsx19("span", { id, className: cn("shrink-0 text-caption", tone === "warning" ? "text-warning-default" : "text-text-muted"), children: label }),
1238
+ /* @__PURE__ */ jsx19("span", { "aria-hidden": "true", className: cn("h-px flex-1", line) })
1239
+ ]
1240
+ }
1241
+ );
1242
+ }
1243
+ return /* @__PURE__ */ jsx19(
1244
+ Separator,
1245
+ {
1246
+ orientation,
1247
+ className: cn("shrink-0 bg-border-subtle", orientation === "horizontal" ? cn("h-px", inset) : "w-px self-stretch", className)
1248
+ }
1249
+ );
1250
+ }
1251
+
1252
+ // src/triggerDisabled.ts
1253
+ function triggerDisabled(trigger) {
1254
+ const props = trigger.props;
1255
+ return !!(props.disabled || props.disabledReason);
1256
+ }
1257
+
1174
1258
  // src/Menu.tsx
1175
1259
  import { Fragment as Fragment4, jsx as jsx20, jsxs as jsxs12 } from "react/jsx-runtime";
1176
1260
  var MenuContext = createContext5(null);
@@ -1432,8 +1516,8 @@ function ChipInput({
1432
1516
  rowLeading,
1433
1517
  ...aria
1434
1518
  }) {
1435
- const [query, setQuery] = useState2("");
1436
- const [box, setBox] = useState2(null);
1519
+ const [query, setQuery] = useState3("");
1520
+ const [box, setBox] = useState3(null);
1437
1521
  const available = useMemo2(() => {
1438
1522
  const chosen = new Set(value.map((o) => o.id));
1439
1523
  const excluded = new Set(excludeIds);
@@ -1763,10 +1847,10 @@ function Form({ onSubmit, busy: ownBusy = false, enterSends = true, layout = "fi
1763
1847
  import { Fragment as Fragment5, jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
1764
1848
  var LEADING_CLASSES = "size-8 rounded-md bg-accent-muted flex items-center justify-center shrink-0 text-accent-text";
1765
1849
  function MembersDialog({ members, count, self, candidates = [], onAdd, note, initialView = "list", onClose }) {
1766
- const [view, setView] = useState3(onAdd ? initialView : "list");
1767
- const [chosen, setChosen] = useState3([]);
1768
- const [toggling, setToggling] = useState3(false);
1769
- const formId = useId();
1850
+ const [view, setView] = useState4(onAdd ? initialView : "list");
1851
+ const [chosen, setChosen] = useState4([]);
1852
+ const [toggling, setToggling] = useState4(false);
1853
+ const formId = useId2();
1770
1854
  const toggle = async () => {
1771
1855
  if (!self || toggling) return;
1772
1856
  setToggling(true);
@@ -1889,7 +1973,7 @@ function Banner({ tone, children, icon, action, onDismiss, dismissLabel = "Dismi
1889
1973
  }
1890
1974
 
1891
1975
  // src/BlockHandle.tsx
1892
- import { useCallback, useEffect as useEffect3, useRef as useRef6, useState as useState4 } from "react";
1976
+ import { useCallback as useCallback2, useEffect as useEffect3, useRef as useRef6, useState as useState5 } from "react";
1893
1977
  import { IconGripVertical } from "@tabler/icons-react";
1894
1978
  import { jsx as jsx28, jsxs as jsxs19 } from "react/jsx-runtime";
1895
1979
  function readId(element) {
@@ -1919,10 +2003,10 @@ function firstLineOffset(element) {
1919
2003
  function BlockHandle({ actions, editing, children, className }) {
1920
2004
  const frame = useRef6(null);
1921
2005
  const content = useRef6(null);
1922
- const [block, setBlock] = useState4(null);
1923
- const [top, setTop] = useState4(0);
1924
- const [open, setOpen] = useState4(false);
1925
- const follow = useCallback(
2006
+ const [block, setBlock] = useState5(null);
2007
+ const [top, setTop] = useState5(0);
2008
+ const [open, setOpen] = useState5(false);
2009
+ const follow = useCallback2(
1926
2010
  (y) => {
1927
2011
  if (!content.current || !frame.current) return;
1928
2012
  const found = editing ? editing.find(y) : blockAtY(readingBlocks(content.current.firstElementChild), y);
@@ -1940,7 +2024,7 @@ function BlockHandle({ actions, editing, children, className }) {
1940
2024
  const rows = editing && block ? editing.rows(block) : null;
1941
2025
  const own = actions && block ? actions(block) : null;
1942
2026
  const dragging = useRef6(false);
1943
- const [line, setLine] = useState4(null);
2027
+ const [line, setLine] = useState5(null);
1944
2028
  const inGutter = (e) => dragging.current && !!editing && !!content.current && !content.current.contains(e.target);
1945
2029
  const landing = (y) => {
1946
2030
  const target = editing?.find(y);
@@ -2092,7 +2176,7 @@ import {
2092
2176
  useLayoutEffect as useLayoutEffect3,
2093
2177
  useMemo as useMemo3,
2094
2178
  useRef as useRef7,
2095
- useState as useState5
2179
+ useState as useState6
2096
2180
  } from "react";
2097
2181
  import { Dialog as Dialog3 } from "@base-ui/react/dialog";
2098
2182
  import { Autocomplete } from "@base-ui/react/autocomplete";
@@ -2128,6 +2212,26 @@ function SkeletonRow({ barWidth = 130 }) {
2128
2212
  function SkeletonList({ rows = 8, className }) {
2129
2213
  return /* @__PURE__ */ jsx31("div", { className: cn("flex flex-col gap-0.5 animate-skeleton-in", className), "aria-hidden": true, children: Array.from({ length: rows }, (_, i) => /* @__PURE__ */ jsx31(SkeletonRow, { barWidth: ROW_BAR_WIDTHS[i % ROW_BAR_WIDTHS.length] }, i)) });
2130
2214
  }
2215
+ function SkeletonCard({ secondLine }) {
2216
+ return /* @__PURE__ */ jsxs22("div", { className: "rounded-lg px-2 pt-2", children: [
2217
+ /* @__PURE__ */ jsxs22("div", { className: "flex w-full items-center gap-2", children: [
2218
+ /* @__PURE__ */ jsx31(SkeletonBar, { className: "h-6 w-6 shrink-0" }),
2219
+ /* @__PURE__ */ jsx31(SkeletonBar, { className: "h-3.5 w-[110px]" }),
2220
+ /* @__PURE__ */ jsx31(SkeletonBar, { className: "h-3 w-10" })
2221
+ ] }),
2222
+ /* @__PURE__ */ jsxs22("div", { className: "flex flex-col gap-2 pb-2 pl-8 pr-2 pt-2", children: [
2223
+ /* @__PURE__ */ jsx31(SkeletonBar, { className: "h-3.5 w-full" }),
2224
+ /* @__PURE__ */ jsx31(SkeletonBar, { className: "h-3.5 max-w-full", style: { width: secondLine } })
2225
+ ] })
2226
+ ] });
2227
+ }
2228
+ function SkeletonConversation({ className }) {
2229
+ return /* @__PURE__ */ jsxs22("div", { className: cn("flex flex-col gap-2 animate-skeleton-in", className), "aria-hidden": true, children: [
2230
+ /* @__PURE__ */ jsx31(SkeletonCard, { secondLine: 420 }),
2231
+ /* @__PURE__ */ jsx31(SkeletonCard, { secondLine: 300 }),
2232
+ /* @__PURE__ */ jsx31(SkeletonCard, { secondLine: 500 })
2233
+ ] });
2234
+ }
2131
2235
 
2132
2236
  // src/CommandPalette.tsx
2133
2237
  import { Fragment as Fragment6, jsx as jsx32, jsxs as jsxs23 } from "react/jsx-runtime";
@@ -2200,7 +2304,7 @@ function CommandPaletteSearch({ query, onQueryChange, placeholder, groups, chip,
2200
2304
  const back = useBack(chip, popupRef);
2201
2305
  const items = useMemo3(() => groups.filter((g) => g.rows.length > 0).map((g) => ({ value: g.label, items: g.rows })), [groups]);
2202
2306
  const rows = items.flatMap((g) => g.items);
2203
- const [litId, setLitId] = useState5();
2307
+ const [litId, setLitId] = useState6();
2204
2308
  const lit = litId === void 0 ? void 0 : rows.find((r) => r.id === litId);
2205
2309
  const inputRef = useRef7(null);
2206
2310
  const reported = useRef7({});
@@ -2368,7 +2472,7 @@ function CommandPaletteForm({ chip, icon, submitLabel, onSubmit, submitWaits, wo
2368
2472
  if (isTextField(el)) return el.value === "";
2369
2473
  return ![...frame.querySelectorAll("input, textarea")].some(isTextField);
2370
2474
  };
2371
- const [backNamed, setBackNamed] = useState5(false);
2475
+ const [backNamed, setBackNamed] = useState6(false);
2372
2476
  const measure = () => setBackNamed(backWorksFrom(document.activeElement));
2373
2477
  useLayoutEffect3(measure);
2374
2478
  const onKeyDown = (e) => {
@@ -2750,7 +2854,7 @@ function KindIcon({ kind, size = 16, tone = "secondary", className }) {
2750
2854
  }
2751
2855
 
2752
2856
  // src/IdentityMenu.tsx
2753
- import { useCallback as useCallback2, useRef as useRef8 } from "react";
2857
+ import { useCallback as useCallback3, useRef as useRef8 } from "react";
2754
2858
 
2755
2859
  // src/Person.tsx
2756
2860
  import { jsx as jsx36, jsxs as jsxs26 } from "react/jsx-runtime";
@@ -2859,7 +2963,7 @@ function IdentityRows({ me, signedIn, relayUrl, idBase, onCopyKey, onSignOut, on
2859
2963
  }
2860
2964
  function IdentityMenu({ me, signedIn, relayUrl, idBase, onCopyKey, onSignOut, compact = false, className, children }) {
2861
2965
  const actions = useRef8(null);
2862
- const close = useCallback2(() => actions.current?.close(), []);
2966
+ const close = useCallback3(() => actions.current?.close(), []);
2863
2967
  return (
2864
2968
  /* The wrapper carries the caller's `className` and nothing else. It used
2865
2969
  to be `relative`, because the panel was positioned against it; the panel
@@ -2928,12 +3032,17 @@ var FilePicker = forwardRef(function FilePicker2({ onPick, ...props }, ref) {
2928
3032
  // src/Select.tsx
2929
3033
  import { IconCheck as IconCheck2, IconChevronDown as IconChevronDown3 } from "@tabler/icons-react";
2930
3034
  import { Select as BaseSelect } from "@base-ui/react/select";
3035
+ import { useEffect as useEffect5, useState as useState7 } from "react";
2931
3036
  import { jsx as jsx40, jsxs as jsxs29 } from "react/jsx-runtime";
2932
3037
  var GAP4 = 4;
2933
3038
  var VIEWPORT_PAD4 = 8;
2934
3039
  function Select({ value, onChange, options, size = "default", fill = "field", ariaLabel, placeholder = "Select\u2026", disabled, disabledReason, className, ...aria }) {
2935
3040
  const selected = options.find((o) => o.value === value);
2936
3041
  const held = Boolean(disabledReason);
3042
+ const [open, setOpen] = useState7(false);
3043
+ useEffect5(() => {
3044
+ if (held) setOpen(false);
3045
+ }, [held]);
2937
3046
  const trigger = (
2938
3047
  // @estiva-escape(no-copied-look): N1 (Katerina, 24 September: record only): Select's box drops the hover while held, so it cannot take FIELD_SHELL_CLASSES as it is
2939
3048
  /* @__PURE__ */ jsxs29(
@@ -2992,8 +3101,10 @@ function Select({ value, onChange, options, size = "default", fill = "field", ar
2992
3101
  onValueChange: (next) => {
2993
3102
  if (!held) onChange(next);
2994
3103
  },
2995
- ...held ? { open: false, onOpenChange: () => {
2996
- } } : {},
3104
+ open: held ? false : open,
3105
+ onOpenChange: (next) => {
3106
+ if (!held) setOpen(next);
3107
+ },
2997
3108
  disabled: disabled && !held,
2998
3109
  modal: false,
2999
3110
  children: [
@@ -3097,10 +3208,10 @@ var Textarea = forwardRef3(function Textarea2({ className, ...props }, ref) {
3097
3208
  });
3098
3209
 
3099
3210
  // src/ConfirmDialog.tsx
3100
- import { useState as useState6 } from "react";
3211
+ import { useState as useState8 } from "react";
3101
3212
  import { Fragment as Fragment11, jsx as jsx43, jsxs as jsxs30 } from "react/jsx-runtime";
3102
3213
  function ConfirmDialog({ title, children, confirmLabel, destructive = false, onConfirm, onClose }) {
3103
- const [busy, setBusy] = useState6(false);
3214
+ const [busy, setBusy] = useState8(false);
3104
3215
  const confirm = async () => {
3105
3216
  setBusy(true);
3106
3217
  try {
@@ -3126,16 +3237,16 @@ function ConfirmDialog({ title, children, confirmLabel, destructive = false, onC
3126
3237
  }
3127
3238
 
3128
3239
  // src/EditableText.tsx
3129
- import { useEffect as useEffect5, useRef as useRef9, useState as useState7 } from "react";
3240
+ import { useEffect as useEffect6, useRef as useRef9, useState as useState9 } from "react";
3130
3241
  import { Field as BaseField4 } from "@base-ui/react/field";
3131
3242
  import { Input as Input2 } from "@base-ui/react/input";
3132
3243
  import { jsx as jsx44 } from "react/jsx-runtime";
3133
3244
  function EditableText({ value, display, displayNode, placeholder, onCommit, multiline = false, className, label, readOnly = false }) {
3134
- const [editing, setEditing] = useState7(false);
3135
- const [draft, setDraft] = useState7(value);
3136
- const [busy, setBusy] = useState7(false);
3245
+ const [editing, setEditing] = useState9(false);
3246
+ const [draft, setDraft] = useState9(value);
3247
+ const [busy, setBusy] = useState9(false);
3137
3248
  const fieldRef = useRef9(null);
3138
- useEffect5(() => {
3249
+ useEffect6(() => {
3139
3250
  if (editing) {
3140
3251
  fieldRef.current?.focus();
3141
3252
  fieldRef.current?.select();
@@ -3300,13 +3411,13 @@ function ProgressBar({ value, max, label, variant = "default", className }) {
3300
3411
  }
3301
3412
 
3302
3413
  // src/Breadcrumb.tsx
3303
- import { Fragment as Fragment12, useCallback as useCallback3, useLayoutEffect as useLayoutEffect4, useRef as useRef10, useState as useState8 } from "react";
3414
+ import { Fragment as Fragment12, useCallback as useCallback4, useLayoutEffect as useLayoutEffect4, useRef as useRef10, useState as useState10 } from "react";
3304
3415
  import { jsx as jsx48, jsxs as jsxs32 } from "react/jsx-runtime";
3305
3416
  function Breadcrumb({ items, className }) {
3306
3417
  const navRef = useRef10(null);
3307
3418
  const labelRefs = useRef10([]);
3308
- const [truncated, setTruncated] = useState8(/* @__PURE__ */ new Set());
3309
- const measure = useCallback3(() => {
3419
+ const [truncated, setTruncated] = useState10(/* @__PURE__ */ new Set());
3420
+ const measure = useCallback4(() => {
3310
3421
  const next = /* @__PURE__ */ new Set();
3311
3422
  labelRefs.current.forEach((el, index) => {
3312
3423
  if (el && el.scrollWidth > el.clientWidth) next.add(index);
@@ -3358,25 +3469,32 @@ function Breadcrumb({ items, className }) {
3358
3469
  }
3359
3470
 
3360
3471
  // src/NavItem.tsx
3361
- import { useId as useId2, useState as useState10 } from "react";
3472
+ import { useId as useId3, useState as useState12 } from "react";
3362
3473
  import { Collapsible as Collapsible2 } from "@base-ui/react/collapsible";
3363
- import { IconAlertSquareRounded, IconChevronRight as IconChevronRight3, IconDotsVertical as IconDotsVertical2 } from "@tabler/icons-react";
3474
+ import { IconChevronRight as IconChevronRight3, IconDotsVertical as IconDotsVertical2 } from "@tabler/icons-react";
3475
+
3476
+ // src/UrgentMark.tsx
3477
+ import { IconAlertSquareRounded } from "@tabler/icons-react";
3478
+ import { jsx as jsx49 } from "react/jsx-runtime";
3479
+ function UrgentMark() {
3480
+ return /* @__PURE__ */ jsx49("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center", "data-urgent": true, children: /* @__PURE__ */ jsx49("div", { className: "flex items-center rounded-full bg-warning-muted p-0.5 signal:shadow-glow-warning", children: /* @__PURE__ */ jsx49(IconAlertSquareRounded, { size: 12, stroke: 2.5, className: "text-warning-default" }) }) });
3481
+ }
3364
3482
 
3365
3483
  // src/CollapsibleSection.tsx
3366
- import { useEffect as useEffect6, useRef as useRef11, useState as useState9 } from "react";
3484
+ import { useEffect as useEffect7, useRef as useRef11, useState as useState11 } from "react";
3367
3485
  import { Collapsible } from "@base-ui/react/collapsible";
3368
3486
 
3369
3487
  // src/SectionHeader.tsx
3370
3488
  import { IconChevronRight as IconChevronRight2, IconDotsVertical } from "@tabler/icons-react";
3371
3489
  import { useRender } from "@base-ui/react/use-render";
3372
- import { Fragment as Fragment13, jsx as jsx49, jsxs as jsxs33 } from "react/jsx-runtime";
3490
+ import { Fragment as Fragment13, jsx as jsx50, jsxs as jsxs33 } from "react/jsx-runtime";
3373
3491
  function SectionHeader({ title, chevron = false, icon, isExpanded = true, onToggle, trailing, count, actions, menu, menuLabel, showActions = "hover", hover = "fill", look = "heading", render, className }) {
3374
3492
  const row = look === "row";
3375
3493
  const acts = actions && actions.length > 0 || menu != null;
3376
3494
  const trailingClasses = !acts ? "has-[[data-unread]]:-mr-1" : showActions === "hover" && "has-[[data-unread]]:pointer-events-none has-[[data-unread]]:absolute has-[[data-unread]]:inset-y-0 has-[[data-unread]]:right-1 has-[[data-unread]]:w-6 has-[[data-unread]]:justify-center has-[[data-unread]]:transition-opacity group-hover:has-[[data-unread]]:opacity-0 group-has-[:focus-visible]:has-[[data-unread]]:opacity-0 group-has-[[data-section-menu]_[aria-expanded=true]]:has-[[data-unread]]:opacity-0 [@media(hover:none)]:has-[[data-unread]]:opacity-0";
3377
3495
  const reveal = showActions === "hover" && "opacity-0 transition-opacity group-hover:opacity-100 group-has-[:focus-visible]:opacity-100 has-[[aria-expanded=true]]:opacity-100 [@media(hover:none)]:opacity-100";
3378
3496
  const titleElement = useRender({
3379
- render: render ?? (chevron ? /* @__PURE__ */ jsx49("button", { type: "button", onClick: onToggle, "aria-expanded": isExpanded }) : /* @__PURE__ */ jsx49("span", {})),
3497
+ render: render ?? (chevron ? /* @__PURE__ */ jsx50("button", { type: "button", onClick: onToggle, "aria-expanded": isExpanded }) : /* @__PURE__ */ jsx50("span", {})),
3380
3498
  props: {
3381
3499
  // `text-left`: a button centres its text. `h-full` and `flex-1`: the
3382
3500
  // whole row up to the actions is the hit target, as it was when the
@@ -3385,8 +3503,8 @@ function SectionHeader({ title, chevron = false, icon, isExpanded = true, onTogg
3385
3503
  className: cn("flex h-full min-w-0 flex-1 items-center text-left", row || chevron || icon != null ? "gap-2" : "gap-1"),
3386
3504
  children: /* @__PURE__ */ jsxs33(Fragment13, { children: [
3387
3505
  icon != null ? /* @__PURE__ */ jsxs33("span", { className: "relative flex size-4 shrink-0 items-center justify-center text-text-secondary", children: [
3388
- /* @__PURE__ */ jsx49("span", { className: cn("flex", chevron && "transition-opacity group-hover:opacity-0 group-has-[:focus-visible]:opacity-0"), children: icon }),
3389
- chevron && /* @__PURE__ */ jsx49(
3506
+ /* @__PURE__ */ jsx50("span", { className: cn("flex", chevron && "transition-opacity group-hover:opacity-0 group-has-[:focus-visible]:opacity-0"), children: icon }),
3507
+ chevron && /* @__PURE__ */ jsx50(
3390
3508
  IconChevronRight2,
3391
3509
  {
3392
3510
  size: 16,
@@ -3394,7 +3512,7 @@ function SectionHeader({ title, chevron = false, icon, isExpanded = true, onTogg
3394
3512
  className: cn("absolute opacity-0 transition-[opacity,transform] duration-150 group-hover:opacity-100 group-has-[:focus-visible]:opacity-100", isExpanded && "rotate-90")
3395
3513
  }
3396
3514
  )
3397
- ] }) : chevron && /* @__PURE__ */ jsx49(
3515
+ ] }) : chevron && /* @__PURE__ */ jsx50(
3398
3516
  IconChevronRight2,
3399
3517
  {
3400
3518
  size: 16,
@@ -3402,11 +3520,11 @@ function SectionHeader({ title, chevron = false, icon, isExpanded = true, onTogg
3402
3520
  className: cn("shrink-0 transition-transform duration-150", !row && "text-text-secondary", isExpanded && "rotate-90")
3403
3521
  }
3404
3522
  ),
3405
- look === "quiet" ? /* @__PURE__ */ jsx49("span", { className: "min-w-0 truncate text-caption text-text-muted", children: title }) : row ? (
3523
+ look === "quiet" ? /* @__PURE__ */ jsx50("span", { className: "min-w-0 truncate text-caption text-text-muted", children: title }) : row ? (
3406
3524
  // A row's words: NavItem's size and colour, brightening under the pointer with the row.
3407
- /* @__PURE__ */ jsx49("span", { className: "min-w-0 flex-1 truncate text-body-2", children: title })
3408
- ) : /* @__PURE__ */ jsx49(SectionLabel, { folds: chevron, children: title }),
3409
- count != null && /* @__PURE__ */ jsx49("span", { className: cn("ml-1 shrink-0", COUNT_TEXT_CLASSES), children: count })
3525
+ /* @__PURE__ */ jsx50("span", { className: "min-w-0 flex-1 truncate text-body-2", children: title })
3526
+ ) : /* @__PURE__ */ jsx50(SectionLabel, { folds: chevron, children: title }),
3527
+ count != null && /* @__PURE__ */ jsx50("span", { className: cn("ml-1 shrink-0", COUNT_TEXT_CLASSES), children: count })
3410
3528
  ] })
3411
3529
  }
3412
3530
  });
@@ -3431,8 +3549,8 @@ function SectionHeader({ title, chevron = false, icon, isExpanded = true, onTogg
3431
3549
  ),
3432
3550
  children: [
3433
3551
  titleElement,
3434
- trailing != null && /* @__PURE__ */ jsx49("div", { className: cn("flex shrink-0 items-center", trailingClasses), children: trailing }),
3435
- acts && /* @__PURE__ */ jsx49(
3552
+ trailing != null && /* @__PURE__ */ jsx50("div", { className: cn("flex shrink-0 items-center", trailingClasses), children: trailing }),
3553
+ acts && /* @__PURE__ */ jsx50(
3436
3554
  "div",
3437
3555
  {
3438
3556
  className: "-mr-1 flex shrink-0 items-center",
@@ -3440,21 +3558,21 @@ function SectionHeader({ title, chevron = false, icon, isExpanded = true, onTogg
3440
3558
  actions?.map(
3441
3559
  (action) => action.menu != null ? (
3442
3560
  // `data-section-menu`, as the ⋮ has: the row stays lit while its menu is open.
3443
- /* @__PURE__ */ jsx49("div", { "data-section-menu": true, className: "flex items-center", children: /* @__PURE__ */ jsx49(
3561
+ /* @__PURE__ */ jsx50("div", { "data-section-menu": true, className: "flex items-center", children: /* @__PURE__ */ jsx50(
3444
3562
  Menu,
3445
3563
  {
3446
3564
  align: "right",
3447
- trigger: /* @__PURE__ */ jsx49(IconButton, { tooltip: action.tooltip, "aria-label": action.tooltip, children: action.icon }),
3565
+ trigger: /* @__PURE__ */ jsx50(IconButton, { tooltip: action.tooltip, "aria-label": action.tooltip, children: action.icon }),
3448
3566
  children: action.menu
3449
3567
  }
3450
3568
  ) }, action.tooltip)
3451
- ) : /* @__PURE__ */ jsx49(IconButton, { tooltip: action.tooltip, "aria-label": action.tooltip, onClick: action.onClick, children: action.icon }, action.tooltip)
3569
+ ) : /* @__PURE__ */ jsx50(IconButton, { tooltip: action.tooltip, "aria-label": action.tooltip, onClick: action.onClick, children: action.icon }, action.tooltip)
3452
3570
  ),
3453
- menu != null && /* @__PURE__ */ jsx49("div", { "data-section-menu": true, className: "flex items-center", children: /* @__PURE__ */ jsx49(
3571
+ menu != null && /* @__PURE__ */ jsx50("div", { "data-section-menu": true, className: "flex items-center", children: /* @__PURE__ */ jsx50(
3454
3572
  Menu,
3455
3573
  {
3456
3574
  align: "right",
3457
- trigger: /* @__PURE__ */ jsx49(IconButton, { tooltip: "More options", "aria-label": menuLabel ?? `More options for ${title}`, children: /* @__PURE__ */ jsx49(IconDotsVertical, { size: 16, stroke: 1.5 }) }),
3575
+ trigger: /* @__PURE__ */ jsx50(IconButton, { tooltip: "More options", "aria-label": menuLabel ?? `More options for ${title}`, children: /* @__PURE__ */ jsx50(IconDotsVertical, { size: 16, stroke: 1.5 }) }),
3458
3576
  children: menu
3459
3577
  }
3460
3578
  ) })
@@ -3467,12 +3585,12 @@ function SectionHeader({ title, chevron = false, icon, isExpanded = true, onTogg
3467
3585
  }
3468
3586
 
3469
3587
  // src/CollapsibleSection.tsx
3470
- import { jsx as jsx50, jsxs as jsxs34 } from "react/jsx-runtime";
3588
+ import { jsx as jsx51, jsxs as jsxs34 } from "react/jsx-runtime";
3471
3589
  var OPEN = "open";
3472
3590
  var CLOSED = "closed";
3473
3591
  function useOpenFor(openFor, open, setOpen) {
3474
3592
  const seen = useRef11(void 0);
3475
- useEffect6(() => {
3593
+ useEffect7(() => {
3476
3594
  if (openFor === seen.current) return;
3477
3595
  seen.current = openFor;
3478
3596
  if (openFor !== void 0 && !open) setOpen(true);
@@ -3495,7 +3613,7 @@ function writeStored(key, open) {
3495
3613
  }
3496
3614
  }
3497
3615
  function CollapsibleSection({ title, defaultOpen = true, open: openProp, onOpenChange, pending = false, storageKey, openFor, icon, trailing, actions, menu, menuLabel, showActions, look = "heading", indent = false, children, className, contentClassName }) {
3498
- const [openState, setOpenState] = useState9(() => readStored(storageKey) ?? defaultOpen);
3616
+ const [openState, setOpenState] = useState11(() => readStored(storageKey) ?? defaultOpen);
3499
3617
  const open = openProp ?? openState;
3500
3618
  const setOpen = (next) => {
3501
3619
  setOpenState(next);
@@ -3503,28 +3621,28 @@ function CollapsibleSection({ title, defaultOpen = true, open: openProp, onOpenC
3503
3621
  onOpenChange?.(next);
3504
3622
  };
3505
3623
  useOpenFor(openFor, open, setOpen);
3506
- const shown = open && !pending;
3507
- return /* @__PURE__ */ jsxs34(Collapsible.Root, { open: shown, onOpenChange: (next, details) => setOpen(pending && details.reason === "trigger-press" ? !open : next), className: cn("flex flex-col", className), children: [
3508
- /* @__PURE__ */ jsx50(SectionHeader, { title, chevron: true, icon, isExpanded: open, trailing, actions, menu, menuLabel, showActions, look, className: "shrink-0", render: /* @__PURE__ */ jsx50(Collapsible.Trigger, { "aria-expanded": open, "aria-busy": pending && open ? true : void 0 }) }),
3509
- /* @__PURE__ */ jsx50(
3624
+ const shown2 = open && !pending;
3625
+ return /* @__PURE__ */ jsxs34(Collapsible.Root, { open: shown2, onOpenChange: (next, details) => setOpen(pending && details.reason === "trigger-press" ? !open : next), className: cn("flex flex-col", className), children: [
3626
+ /* @__PURE__ */ jsx51(SectionHeader, { title, chevron: true, icon, isExpanded: open, trailing, actions, menu, menuLabel, showActions, look, className: "shrink-0", render: /* @__PURE__ */ jsx51(Collapsible.Trigger, { "aria-expanded": open, "aria-busy": pending && open ? true : void 0 }) }),
3627
+ /* @__PURE__ */ jsx51(
3510
3628
  Collapsible.Panel,
3511
3629
  {
3512
3630
  hiddenUntilFound: true,
3513
3631
  className: COLLAPSIBLE_PANEL_CLASSES,
3514
- children: /* @__PURE__ */ jsx50("div", { className: cn("flex flex-col pt-0.5", (look === "row" || indent) && "pl-6", contentClassName), children })
3632
+ children: /* @__PURE__ */ jsx51("div", { className: cn("flex flex-col pt-0.5", (look === "row" || indent) && "pl-6", contentClassName), children })
3515
3633
  }
3516
3634
  )
3517
3635
  ] });
3518
3636
  }
3519
3637
 
3520
3638
  // src/UnreadDot.tsx
3521
- import { jsx as jsx51 } from "react/jsx-runtime";
3639
+ import { jsx as jsx52 } from "react/jsx-runtime";
3522
3640
  function UnreadDot({ className }) {
3523
- return /* @__PURE__ */ jsx51("div", { className: cn("flex h-6 w-6 shrink-0 items-center justify-center", className), "data-unread": true, children: /* @__PURE__ */ jsx51("div", { className: "h-1.5 w-1.5 rounded-full bg-accent-primary" }) });
3641
+ return /* @__PURE__ */ jsx52("div", { className: cn("flex h-6 w-6 shrink-0 items-center justify-center", className), "data-unread": true, children: /* @__PURE__ */ jsx52("div", { className: "h-1.5 w-1.5 rounded-full bg-accent-primary" }) });
3524
3642
  }
3525
3643
 
3526
3644
  // src/NavItem.tsx
3527
- import { jsx as jsx52, jsxs as jsxs35 } from "react/jsx-runtime";
3645
+ import { jsx as jsx53, jsxs as jsxs35 } from "react/jsx-runtime";
3528
3646
  function NavItem({
3529
3647
  label,
3530
3648
  href,
@@ -3549,8 +3667,8 @@ function NavItem({
3549
3667
  ...props
3550
3668
  }) {
3551
3669
  const inApp = useInAppClick(href, onClick);
3552
- const [openState, setOpenState] = useState10(defaultOpen);
3553
- const panelId = useId2();
3670
+ const [openState, setOpenState] = useState12(defaultOpen);
3671
+ const panelId = useId3();
3554
3672
  const hasRows = children != null && children !== false;
3555
3673
  const open = openProp ?? openState;
3556
3674
  const setOpen = (next) => {
@@ -3560,7 +3678,7 @@ function NavItem({
3560
3678
  useOpenFor(hasRows ? openFor : void 0, open, setOpen);
3561
3679
  const buttons = (menu != null ? 1 : 0) + (action ? 1 : 0);
3562
3680
  const besides = buttons > 0 || hasRows;
3563
- const mark = unread ? urgent ? /* @__PURE__ */ jsx52(UrgentMark, {}) : /* @__PURE__ */ jsx52(UnreadDot, {}) : null;
3681
+ const mark = unread ? urgent ? /* @__PURE__ */ jsx53(UrgentMark, {}) : /* @__PURE__ */ jsx53(UnreadDot, {}) : null;
3564
3682
  const stepsAside = buttons > 0 && "transition-opacity group-hover/nav:opacity-0 group-has-[:focus-visible]/nav:opacity-0 group-has-[[data-nav-menu]_[aria-expanded=true]]/nav:opacity-0 [@media(hover:none)]:opacity-0";
3565
3683
  const row = /* @__PURE__ */ jsxs35(
3566
3684
  "a",
@@ -3584,7 +3702,7 @@ function NavItem({
3584
3702
  ...props,
3585
3703
  onClick: inApp,
3586
3704
  children: [
3587
- (icon || hasRows) && /* @__PURE__ */ jsx52(
3705
+ (icon || hasRows) && /* @__PURE__ */ jsx53(
3588
3706
  "span",
3589
3707
  {
3590
3708
  className: cn(
@@ -3598,14 +3716,14 @@ function NavItem({
3598
3716
  tooltip?.trim() ? (
3599
3717
  // On the label alone, not the row: the ⋮ and the action keep their
3600
3718
  // own tooltips, and the two never stand up at once.
3601
- /* @__PURE__ */ jsx52(WithTooltip, { label: tooltip, inline: true, wrapperClassName: "flex min-w-0 flex-1", children: /* @__PURE__ */ jsx52("span", { className: cn("flex-1 truncate", unread && "font-medium"), children: label }) })
3602
- ) : /* @__PURE__ */ jsx52("span", { className: cn("flex-1 truncate", unread && "font-medium"), children: label }),
3719
+ /* @__PURE__ */ jsx53(WithTooltip, { label: tooltip, inline: true, wrapperClassName: "flex min-w-0 flex-1", children: /* @__PURE__ */ jsx53("span", { className: cn("flex-1 truncate", unread && "font-medium"), children: label }) })
3720
+ ) : /* @__PURE__ */ jsx53("span", { className: cn("flex-1 truncate", unread && "font-medium"), children: label }),
3603
3721
  hint != null && // Takes room only while it shows, so the label gives way to it.
3604
- /* @__PURE__ */ jsx52("span", { className: "hidden shrink-0 items-center group-hover/nav:flex group-has-[:focus-visible]/nav:flex", children: hint }),
3722
+ /* @__PURE__ */ jsx53("span", { className: "hidden shrink-0 items-center group-hover/nav:flex group-has-[:focus-visible]/nav:flex", children: hint }),
3605
3723
  buttons > 1 && // Two buttons: the second one's room (24px and the 4px between them, the
3606
3724
  // row's 8px gap making up the rest), kept only while they show.
3607
- /* @__PURE__ */ jsx52("span", { "aria-hidden": "true", className: "hidden w-5 shrink-0 group-hover/nav:block group-has-[:focus-visible]/nav:block group-has-[[data-nav-menu]_[aria-expanded=true]]/nav:block [@media(hover:none)]:block" }),
3608
- count ? /* @__PURE__ */ jsx52(WithTooltip, { label: countLabel ?? `${count} open`, children: /* @__PURE__ */ jsx52(
3725
+ /* @__PURE__ */ jsx53("span", { "aria-hidden": "true", className: "hidden w-5 shrink-0 group-hover/nav:block group-has-[:focus-visible]/nav:block group-has-[[data-nav-menu]_[aria-expanded=true]]/nav:block [@media(hover:none)]:block" }),
3726
+ count ? /* @__PURE__ */ jsx53(WithTooltip, { label: countLabel ?? `${count} open`, children: /* @__PURE__ */ jsx53(
3609
3727
  "span",
3610
3728
  {
3611
3729
  className: cn(
@@ -3621,7 +3739,7 @@ function NavItem({
3621
3739
  // `-mr-1`: the 24px slot's dot then sits on the axis of a count and
3622
3740
  // of the ⋮ (8px from the edge to the 16px box), one column with a
3623
3741
  // folder heading's dot and ⋮ (Katerina, 5 October).
3624
- /* @__PURE__ */ jsx52("span", { className: cn("-mr-1 flex shrink-0", stepsAside), children: mark })
3742
+ /* @__PURE__ */ jsx53("span", { className: cn("-mr-1 flex shrink-0", stepsAside), children: mark })
3625
3743
  ) : buttons > 0 && !count ? (
3626
3744
  // Nothing at the right, but a menu: no room is kept at rest, so the
3627
3745
  // label has the row's whole width; while the ⋮ shows, its 24px slot
@@ -3629,7 +3747,7 @@ function NavItem({
3629
3747
  // `-mr-1`: the ⋮ sits at `right-1`, 4px into the row's padding, so the
3630
3748
  // slot does too — at the padding's edge it kept 4px the ⋮ never
3631
3749
  // covers, and the label stopped 12px short of the button, not 8.
3632
- /* @__PURE__ */ jsx52("span", { "aria-hidden": "true", className: "-mr-1 hidden w-6 shrink-0 group-hover/nav:block group-has-[:focus-visible]/nav:block group-has-[[data-nav-menu]_[aria-expanded=true]]/nav:block [@media(hover:none)]:block" })
3750
+ /* @__PURE__ */ jsx53("span", { "aria-hidden": "true", className: "-mr-1 hidden w-6 shrink-0 group-hover/nav:block group-has-[:focus-visible]/nav:block group-has-[[data-nav-menu]_[aria-expanded=true]]/nav:block [@media(hover:none)]:block" })
3633
3751
  ) : null
3634
3752
  ]
3635
3753
  }
@@ -3640,7 +3758,7 @@ function NavItem({
3640
3758
  row,
3641
3759
  hasRows && // `left-1`: the 24px button's 16px arrow then sits where the icon
3642
3760
  // sits (the row's px-2), so the icon turns into the arrow in place.
3643
- /* @__PURE__ */ jsx52("div", { className: "absolute inset-y-0 left-1 flex items-center opacity-0 transition-opacity group-hover/nav:opacity-100 group-has-[:focus-visible]/nav:opacity-100", children: /* @__PURE__ */ jsx52(
3761
+ /* @__PURE__ */ jsx53("div", { className: "absolute inset-y-0 left-1 flex items-center opacity-0 transition-opacity group-hover/nav:opacity-100 group-has-[:focus-visible]/nav:opacity-100", children: /* @__PURE__ */ jsx53(
3644
3762
  IconButton,
3645
3763
  {
3646
3764
  tooltip: open ? "Collapse" : "Expand",
@@ -3648,7 +3766,7 @@ function NavItem({
3648
3766
  "aria-expanded": open,
3649
3767
  "aria-controls": panelId,
3650
3768
  onClick: () => setOpen(!open),
3651
- children: /* @__PURE__ */ jsx52(IconChevronRight3, { size: 16, stroke: 1.5, className: cn("transition-transform duration-150", open && "rotate-90") })
3769
+ children: /* @__PURE__ */ jsx53(IconChevronRight3, { size: 16, stroke: 1.5, className: cn("transition-transform duration-150", open && "rotate-90") })
3652
3770
  }
3653
3771
  ) }),
3654
3772
  buttons > 0 && // `right-1`: the 24px button's 16px icon ends 8px from the row's
@@ -3660,12 +3778,12 @@ function NavItem({
3660
3778
  // On a screen with no hover it always shows: nothing there can point
3661
3779
  // at the row, and the menu has no other way in.
3662
3780
  /* @__PURE__ */ jsxs35("div", { "data-nav-menu": true, className: cn("absolute inset-y-0 right-1 flex items-center gap-1", "opacity-0 transition-opacity group-hover/nav:opacity-100 group-has-[:focus-visible]/nav:opacity-100 has-[[aria-expanded=true]]:opacity-100 [@media(hover:none)]:opacity-100"), children: [
3663
- action && /* @__PURE__ */ jsx52(IconButton, { tooltip: action.tooltip, "aria-label": `${action.tooltip}: ${label}`, onClick: action.onClick, children: action.icon }),
3664
- menu != null && /* @__PURE__ */ jsx52(
3781
+ action && /* @__PURE__ */ jsx53(IconButton, { tooltip: action.tooltip, "aria-label": `${action.tooltip}: ${label}`, onClick: action.onClick, children: action.icon }),
3782
+ menu != null && /* @__PURE__ */ jsx53(
3665
3783
  Menu,
3666
3784
  {
3667
3785
  align: "right",
3668
- trigger: /* @__PURE__ */ jsx52(IconButton, { tooltip: "More options", "aria-label": name, children: /* @__PURE__ */ jsx52(IconDotsVertical2, { size: 16, stroke: 1.5 }) }),
3786
+ trigger: /* @__PURE__ */ jsx53(IconButton, { tooltip: "More options", "aria-label": name, children: /* @__PURE__ */ jsx53(IconDotsVertical2, { size: 16, stroke: 1.5 }) }),
3669
3787
  children: menu
3670
3788
  }
3671
3789
  )
@@ -3674,24 +3792,21 @@ function NavItem({
3674
3792
  if (!hasRows) return line;
3675
3793
  return /* @__PURE__ */ jsxs35(Collapsible2.Root, { open, onOpenChange: setOpen, className: "flex shrink-0 flex-col", children: [
3676
3794
  line,
3677
- /* @__PURE__ */ jsx52(
3795
+ /* @__PURE__ */ jsx53(
3678
3796
  Collapsible2.Panel,
3679
3797
  {
3680
3798
  id: panelId,
3681
3799
  hiddenUntilFound: true,
3682
3800
  className: COLLAPSIBLE_PANEL_CLASSES,
3683
- children: /* @__PURE__ */ jsx52("div", { className: "flex flex-col gap-0.5 pt-0.5 pl-6", children })
3801
+ children: /* @__PURE__ */ jsx53("div", { className: "flex flex-col gap-0.5 pt-0.5 pl-6", children })
3684
3802
  }
3685
3803
  )
3686
3804
  ] });
3687
3805
  }
3688
- function UrgentMark() {
3689
- return /* @__PURE__ */ jsx52("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center", "data-urgent": true, children: /* @__PURE__ */ jsx52("div", { className: "flex items-center rounded-full bg-warning-muted p-0.5 signal:shadow-glow-warning", children: /* @__PURE__ */ jsx52(IconAlertSquareRounded, { size: 12, stroke: 2.5, className: "text-warning-default" }) }) });
3690
- }
3691
3806
 
3692
3807
  // src/NavTree.tsx
3693
- import { useEffect as useEffect7, useRef as useRef12 } from "react";
3694
- import { jsx as jsx53, jsxs as jsxs36 } from "react/jsx-runtime";
3808
+ import { useEffect as useEffect8, useRef as useRef12 } from "react";
3809
+ import { jsx as jsx54, jsxs as jsxs36 } from "react/jsx-runtime";
3695
3810
  var NAV_TREE_INTENT_MS = 150;
3696
3811
  var NAV_TREE_REVEAL_MS = 200;
3697
3812
  function holds(nodes, id) {
@@ -3727,11 +3842,11 @@ function scrollToRow(row) {
3727
3842
  else if (at.bottom > view.bottom) box.scrollTop += at.bottom - view.bottom;
3728
3843
  }
3729
3844
  function Line({ message }) {
3730
- return /* @__PURE__ */ jsx53("div", { className: "px-2 py-1", children: /* @__PURE__ */ jsx53(EmptyState, { scope: "section", message }) });
3845
+ return /* @__PURE__ */ jsx54("div", { className: "px-2 py-1", children: /* @__PURE__ */ jsx54(EmptyState, { scope: "section", message }) });
3731
3846
  }
3732
3847
  function Row({ node, selected, onSelect, opening }) {
3733
- const under = node.childrenMessage !== void 0 ? /* @__PURE__ */ jsx53(Line, { message: node.childrenMessage }) : node.children?.length ? node.children.map((child) => /* @__PURE__ */ jsx53(Row, { node: child, selected, onSelect, opening }, child.id)) : node.children === null || node.hasChildren && node.children === void 0 ? /* @__PURE__ */ jsx53(SkeletonList, { rows: 2 }) : void 0;
3734
- return /* @__PURE__ */ jsx53(
3848
+ const under = node.childrenMessage !== void 0 ? /* @__PURE__ */ jsx54(Line, { message: node.childrenMessage }) : node.children?.length ? node.children.map((child) => /* @__PURE__ */ jsx54(Row, { node: child, selected, onSelect, opening }, child.id)) : node.children === null || node.hasChildren && node.children === void 0 ? /* @__PURE__ */ jsx54(SkeletonList, { rows: 2 }) : void 0;
3849
+ return /* @__PURE__ */ jsx54(
3735
3850
  NavItem,
3736
3851
  {
3737
3852
  href: node.href,
@@ -3754,7 +3869,7 @@ function Row({ node, selected, onSelect, opening }) {
3754
3869
  );
3755
3870
  }
3756
3871
  function Group({ group, selected, onSelect, opening, storageKey }) {
3757
- return /* @__PURE__ */ jsx53(
3872
+ return /* @__PURE__ */ jsx54(
3758
3873
  NavTreeSection,
3759
3874
  {
3760
3875
  id: group.id,
@@ -3771,15 +3886,15 @@ function Group({ group, selected, onSelect, opening, storageKey }) {
3771
3886
  storageKey: storageKey ? `${storageKey}.${group.id}` : void 0,
3772
3887
  openFor: opening?.group === group.id ? opening.item : void 0,
3773
3888
  onIntent: group.onIntent,
3774
- children: group.nodes?.map((node) => /* @__PURE__ */ jsx53(Row, { node, selected, onSelect, opening }, node.id))
3889
+ children: group.nodes?.map((node) => /* @__PURE__ */ jsx54(Row, { node, selected, onSelect, opening }, node.id))
3775
3890
  }
3776
3891
  );
3777
3892
  }
3778
3893
  function NavTreeSection({ id, title, message, loading = false, pending, trailing, actions, menu, icon, defaultOpen = true, open, onOpenChange, storageKey, openFor, onIntent, children }) {
3779
3894
  const timer = useRef12(void 0);
3780
- useEffect7(() => () => clearTimeout(timer.current), []);
3895
+ useEffect8(() => () => clearTimeout(timer.current), []);
3781
3896
  const intent = onIntent;
3782
- return /* @__PURE__ */ jsx53(
3897
+ return /* @__PURE__ */ jsx54(
3783
3898
  "div",
3784
3899
  {
3785
3900
  className: "shrink-0 [&+&]:mt-1",
@@ -3790,7 +3905,7 @@ function NavTreeSection({ id, title, message, loading = false, pending, trailing
3790
3905
  } : void 0,
3791
3906
  onPointerLeave: intent ? () => clearTimeout(timer.current) : void 0,
3792
3907
  onFocus: intent,
3793
- children: /* @__PURE__ */ jsx53(
3908
+ children: /* @__PURE__ */ jsx54(
3794
3909
  CollapsibleSection,
3795
3910
  {
3796
3911
  title,
@@ -3807,7 +3922,7 @@ function NavTreeSection({ id, title, message, loading = false, pending, trailing
3807
3922
  icon,
3808
3923
  className: "shrink-0",
3809
3924
  contentClassName: "gap-0.5",
3810
- children: message !== void 0 ? /* @__PURE__ */ jsx53(Line, { message }) : loading ? /* @__PURE__ */ jsx53(SkeletonList, { rows: 3 }) : children
3925
+ children: message !== void 0 ? /* @__PURE__ */ jsx54(Line, { message }) : loading ? /* @__PURE__ */ jsx54(SkeletonList, { rows: 3 }) : children
3811
3926
  }
3812
3927
  )
3813
3928
  }
@@ -3820,7 +3935,7 @@ function NavTree({ title, titleActions, groups, children, selected, selectedPare
3820
3935
  const waiting = useRef12(void 0);
3821
3936
  const latest = useRef12(selected);
3822
3937
  latest.current = selected;
3823
- useEffect7(() => {
3938
+ useEffect8(() => {
3824
3939
  if (selected === void 0 || scrolled.current === selected || waiting.current !== void 0) return;
3825
3940
  waiting.current = setTimeout(() => {
3826
3941
  waiting.current = void 0;
@@ -3830,15 +3945,15 @@ function NavTree({ title, titleActions, groups, children, selected, selectedPare
3830
3945
  scrollToRow(row);
3831
3946
  }, NAV_TREE_REVEAL_MS);
3832
3947
  });
3833
- useEffect7(() => () => clearTimeout(waiting.current), []);
3948
+ useEffect8(() => () => clearTimeout(waiting.current), []);
3834
3949
  return (
3835
3950
  // `contents`: a box to find the current row in, that lays nothing out — the groups stay the column's own.
3836
3951
  /* @__PURE__ */ jsxs36("div", { ref: box, className: "contents", children: [
3837
- title && /* @__PURE__ */ jsx53(SectionHeader, { title, look: "quiet", showActions: "always", actions: titleActions, className: "mt-4 shrink-0" }),
3838
- groups === void 0 ? children : groups === null ? /* @__PURE__ */ jsx53(SkeletonList, { rows: 5 }) : groups.length === 0 ? (
3952
+ title && /* @__PURE__ */ jsx54(SectionHeader, { title, look: "quiet", showActions: "always", actions: titleActions, className: "mt-4 shrink-0" }),
3953
+ groups === void 0 ? children : groups === null ? /* @__PURE__ */ jsx54(SkeletonList, { rows: 5 }) : groups.length === 0 ? (
3839
3954
  // No words, no line: an app that says nothing when it has no groups.
3840
- emptyMessage ? /* @__PURE__ */ jsx53(Line, { message: emptyMessage }) : null
3841
- ) : groups.map((group) => /* @__PURE__ */ jsx53(Group, { group, selected, onSelect, opening, storageKey }, group.id))
3955
+ emptyMessage ? /* @__PURE__ */ jsx54(Line, { message: emptyMessage }) : null
3956
+ ) : groups.map((group) => /* @__PURE__ */ jsx54(Group, { group, selected, onSelect, opening, storageKey }, group.id))
3842
3957
  ] })
3843
3958
  );
3844
3959
  }
@@ -3846,7 +3961,7 @@ function NavTree({ title, titleActions, groups, children, selected, selectedPare
3846
3961
  // src/Popover.tsx
3847
3962
  import { useMemo as useMemo4 } from "react";
3848
3963
  import { Popover as BasePopover } from "@base-ui/react/popover";
3849
- import { jsx as jsx54, jsxs as jsxs37 } from "react/jsx-runtime";
3964
+ import { jsx as jsx55, jsxs as jsxs37 } from "react/jsx-runtime";
3850
3965
  var GAP5 = 4;
3851
3966
  var VIEWPORT_PAD5 = 8;
3852
3967
  function Popover({ trigger, anchor, align = "left", side = "bottom", open, onOpenChange, finalFocus, actionsRef, ariaLabel, children, className, contentClassName, maxHeight }) {
@@ -3863,8 +3978,8 @@ function Popover({ trigger, anchor, align = "left", side = "bottom", open, onOpe
3863
3978
  actionsRef,
3864
3979
  modal: false,
3865
3980
  children: [
3866
- trigger && /* @__PURE__ */ jsx54(BasePopover.Trigger, { render: trigger, disabled: triggerDisabled(trigger) }),
3867
- /* @__PURE__ */ jsx54(BasePopover.Portal, { children: /* @__PURE__ */ jsx54(
3981
+ trigger && /* @__PURE__ */ jsx55(BasePopover.Trigger, { render: trigger, disabled: triggerDisabled(trigger) }),
3982
+ /* @__PURE__ */ jsx55(BasePopover.Portal, { children: /* @__PURE__ */ jsx55(
3868
3983
  BasePopover.Positioner,
3869
3984
  {
3870
3985
  anchor: anchorTarget,
@@ -3873,20 +3988,20 @@ function Popover({ trigger, anchor, align = "left", side = "bottom", open, onOpe
3873
3988
  sideOffset: GAP5,
3874
3989
  collisionPadding: VIEWPORT_PAD5,
3875
3990
  className: "z-50 data-[anchor-hidden]:hidden",
3876
- children: /* @__PURE__ */ jsx54(
3991
+ children: /* @__PURE__ */ jsx55(
3877
3992
  BasePopover.Popup,
3878
3993
  {
3879
3994
  "aria-label": ariaLabel,
3880
3995
  initialFocus: trigger ? void 0 : false,
3881
3996
  finalFocus,
3882
3997
  className: cn("min-w-[180px] outline-none p-0", className),
3883
- render: /* @__PURE__ */ jsx54(MenuPanel, {}),
3884
- children: /* @__PURE__ */ jsx54(
3998
+ render: /* @__PURE__ */ jsx55(MenuPanel, {}),
3999
+ children: /* @__PURE__ */ jsx55(
3885
4000
  ScrollArea,
3886
4001
  {
3887
4002
  viewportClassName: maxHeight ?? "max-h-[var(--available-height)]",
3888
4003
  contentClassName: cn("flex flex-col p-2", contentClassName),
3889
- children: /* @__PURE__ */ jsx54(DividerInPanel.Provider, { value: true, children })
4004
+ children: /* @__PURE__ */ jsx55(DividerInPanel.Provider, { value: true, children })
3890
4005
  }
3891
4006
  )
3892
4007
  }
@@ -3899,8 +4014,8 @@ function Popover({ trigger, anchor, align = "left", side = "bottom", open, onOpe
3899
4014
  }
3900
4015
 
3901
4016
  // src/SuggestionMenu.tsx
3902
- import { useCallback as useCallback4, useEffect as useEffect8, useId as useId3, useImperativeHandle, useMemo as useMemo5, useRef as useRef13, useState as useState11 } from "react";
3903
- import { jsx as jsx55, jsxs as jsxs38 } from "react/jsx-runtime";
4017
+ import { useCallback as useCallback5, useEffect as useEffect9, useId as useId4, useImperativeHandle, useMemo as useMemo5, useRef as useRef13, useState as useState13 } from "react";
4018
+ import { jsx as jsx56, jsxs as jsxs38 } from "react/jsx-runtime";
3904
4019
  function SuggestionMenu({ rect, editorElement, ariaLabel, width, maxHeight, sections, itemKey, row, onSelect, handle }) {
3905
4020
  const last = useRef13(null);
3906
4021
  const anchor = useMemo5(() => {
@@ -3913,15 +4028,15 @@ function SuggestionMenu({ rect, editorElement, ariaLabel, width, maxHeight, sect
3913
4028
  contextElement: editorElement ?? void 0
3914
4029
  };
3915
4030
  }, [rect, editorElement]);
3916
- const shown = useMemo5(() => sections.filter((section) => section.items.length > 0), [sections]);
3917
- const items = useMemo5(() => shown.flatMap((section) => section.items), [shown]);
4031
+ const shown2 = useMemo5(() => sections.filter((section) => section.items.length > 0), [sections]);
4032
+ const items = useMemo5(() => shown2.flatMap((section) => section.items), [shown2]);
3918
4033
  const keys = items.map(itemKey).join("\n");
3919
- const [highlight, setHighlight] = useState11(0);
3920
- const base = useId3();
4034
+ const [highlight, setHighlight] = useState13(0);
4035
+ const base = useId4();
3921
4036
  const listboxId = `${base}-list`;
3922
4037
  const chosen = useRef13(null);
3923
- useEffect8(() => void (chosen.current = highlight > 0 ? keys.split("\n")[highlight] ?? null : null), [highlight]);
3924
- useEffect8(() => {
4038
+ useEffect9(() => void (chosen.current = highlight > 0 ? keys.split("\n")[highlight] ?? null : null), [highlight]);
4039
+ useEffect9(() => {
3925
4040
  const at = chosen.current ? keys.split("\n").indexOf(chosen.current) : -1;
3926
4041
  setHighlight(at > 0 ? at : 0);
3927
4042
  }, [keys]);
@@ -3946,7 +4061,7 @@ function SuggestionMenu({ rect, editorElement, ariaLabel, width, maxHeight, sect
3946
4061
  }
3947
4062
  }), [items, highlight, onSelect]);
3948
4063
  const open = rect !== null && items.length > 0;
3949
- useEffect8(() => {
4064
+ useEffect9(() => {
3950
4065
  if (!editorElement || !open) return;
3951
4066
  editorElement.setAttribute("aria-autocomplete", "list");
3952
4067
  editorElement.setAttribute("aria-haspopup", "listbox");
@@ -3955,18 +4070,18 @@ function SuggestionMenu({ rect, editorElement, ariaLabel, width, maxHeight, sect
3955
4070
  for (const name of ["aria-autocomplete", "aria-haspopup", "aria-controls", "aria-activedescendant"]) editorElement.removeAttribute(name);
3956
4071
  };
3957
4072
  }, [editorElement, open, listboxId]);
3958
- useEffect8(() => {
4073
+ useEffect9(() => {
3959
4074
  if (!editorElement || !open) return;
3960
4075
  editorElement.setAttribute("aria-activedescendant", `${base}-${highlight}`);
3961
4076
  }, [editorElement, open, base, highlight]);
3962
- const keepFocus = useCallback4((list) => {
4077
+ const keepFocus = useCallback5((list) => {
3963
4078
  const panel = list?.closest('[role="dialog"]');
3964
4079
  if (!panel) return;
3965
4080
  const keep = (event) => event.preventDefault();
3966
4081
  panel.addEventListener("mousedown", keep);
3967
4082
  return () => panel.removeEventListener("mousedown", keep);
3968
4083
  }, []);
3969
- const scrollRef = useCallback4((el) => {
4084
+ const scrollRef = useCallback5((el) => {
3970
4085
  el?.scrollIntoView({ block: "nearest" });
3971
4086
  }, []);
3972
4087
  if (items.length === 0) return null;
@@ -3976,7 +4091,7 @@ function SuggestionMenu({ rect, editorElement, ariaLabel, width, maxHeight, sect
3976
4091
  const { label, description, aside, leading, shortcut, hint, size } = row(item);
3977
4092
  return (
3978
4093
  // A row of a list the editor drives from its caret: focus stays in the text, so the row is no Tab stop.
3979
- /* @__PURE__ */ jsx55(
4094
+ /* @__PURE__ */ jsx56(
3980
4095
  MenuItem,
3981
4096
  {
3982
4097
  role: "option",
@@ -4004,22 +4119,22 @@ function SuggestionMenu({ rect, editorElement, ariaLabel, width, maxHeight, sect
4004
4119
  };
4005
4120
  return (
4006
4121
  // finalFocus={false}: focus never left the text, and a list that closes because focus moved elsewhere must not pull it back (71a4577b).
4007
- /* @__PURE__ */ jsx55(Popover, { anchor, open: rect !== null, side: "top", align: "left", className: width, maxHeight, ariaLabel, finalFocus: false, children: /* @__PURE__ */ jsx55("div", { ref: keepFocus, id: listboxId, role: "listbox", "aria-label": ariaLabel, className: "flex flex-col gap-0.5", children: shown.map((section, i) => /* @__PURE__ */ jsxs38("div", { className: "contents", children: [
4008
- i > 0 && /* @__PURE__ */ jsx55(MenuSeparator, {}),
4009
- section.label ? /* @__PURE__ */ jsx55("div", { role: "group", "aria-label": section.label, children: /* @__PURE__ */ jsx55(MenuSection, { label: section.label, className: section.className, children: section.items.map(drawRow) }) }) : section.items.map(drawRow)
4122
+ /* @__PURE__ */ jsx56(Popover, { anchor, open: rect !== null, side: "top", align: "left", className: width, maxHeight, ariaLabel, finalFocus: false, children: /* @__PURE__ */ jsx56("div", { ref: keepFocus, id: listboxId, role: "listbox", "aria-label": ariaLabel, className: "flex flex-col gap-0.5", children: shown2.map((section, i) => /* @__PURE__ */ jsxs38("div", { className: "contents", children: [
4123
+ i > 0 && /* @__PURE__ */ jsx56(MenuSeparator, {}),
4124
+ section.label ? /* @__PURE__ */ jsx56("div", { role: "group", "aria-label": section.label, children: /* @__PURE__ */ jsx56(MenuSection, { label: section.label, className: section.className, children: section.items.map(drawRow) }) }) : section.items.map(drawRow)
4010
4125
  ] }, section.label ?? i)) }) })
4011
4126
  );
4012
4127
  }
4013
4128
 
4014
4129
  // src/ShowMore.tsx
4015
- import { useLayoutEffect as useLayoutEffect5, useRef as useRef14, useState as useState12 } from "react";
4130
+ import { useLayoutEffect as useLayoutEffect5, useRef as useRef14, useState as useState14 } from "react";
4016
4131
  import { IconChevronDown as IconChevronDown4, IconChevronUp } from "@tabler/icons-react";
4017
- import { jsx as jsx56, jsxs as jsxs39 } from "react/jsx-runtime";
4132
+ import { jsx as jsx57, jsxs as jsxs39 } from "react/jsx-runtime";
4018
4133
  var FADE = "linear-gradient(to top, transparent, black 40px)";
4019
- function ShowMore({ children, maxHeight = 96, action, contentClassName, className }) {
4134
+ function ShowMore({ children, maxHeight = 96, contentClassName, className }) {
4020
4135
  const box = useRef14(null);
4021
- const [open, setOpen] = useState12(false);
4022
- const [overflows, setOverflows] = useState12(false);
4136
+ const [open, setOpen] = useState14(false);
4137
+ const [overflows, setOverflows] = useState14(false);
4023
4138
  useLayoutEffect5(() => {
4024
4139
  const el = box.current;
4025
4140
  if (!el) return;
@@ -4032,21 +4147,18 @@ function ShowMore({ children, maxHeight = 96, action, contentClassName, classNam
4032
4147
  }, [maxHeight]);
4033
4148
  const cut = overflows && !open;
4034
4149
  return /* @__PURE__ */ jsxs39("div", { className: cn("flex flex-col items-start", className), children: [
4035
- /* @__PURE__ */ jsx56("div", { ref: box, className: cn("relative w-full", cut && "overflow-hidden", contentClassName), style: cut ? { maxHeight, maskImage: FADE, WebkitMaskImage: FADE } : void 0, onFocus: cut ? () => setOpen(true) : void 0, children }),
4036
- action ? /* @__PURE__ */ jsxs39("div", { className: cn("mt-1 flex w-full items-center gap-2", overflows ? "justify-between" : "justify-end"), children: [
4037
- overflows && /* @__PURE__ */ jsx56(Toggle, { open, onToggle: () => setOpen((o) => !o) }),
4038
- /* @__PURE__ */ jsx56("div", { className: "-mr-2 flex shrink-0", children: action })
4039
- ] }) : overflows && /* @__PURE__ */ jsx56(Toggle, { open, onToggle: () => setOpen((o) => !o), className: "mt-1" })
4150
+ /* @__PURE__ */ jsx57("div", { ref: box, className: cn("relative w-full", cut && "overflow-hidden", contentClassName), style: cut ? { maxHeight, maskImage: FADE, WebkitMaskImage: FADE } : void 0, onFocus: cut ? () => setOpen(true) : void 0, children }),
4151
+ overflows && /* @__PURE__ */ jsx57(Toggle, { open, onToggle: () => setOpen((o) => !o), className: "mt-1" })
4040
4152
  ] });
4041
4153
  }
4042
4154
  function Toggle({ open, onToggle, className }) {
4043
4155
  const Icon = open ? IconChevronUp : IconChevronDown4;
4044
- return /* @__PURE__ */ jsx56(
4156
+ return /* @__PURE__ */ jsx57(
4045
4157
  Button,
4046
4158
  {
4047
4159
  variant: "outlined",
4048
4160
  size: "small",
4049
- leadingIcon: /* @__PURE__ */ jsx56(Icon, { stroke: 1.5, className: "size-3.5" }),
4161
+ leadingIcon: /* @__PURE__ */ jsx57(Icon, { stroke: 1.5, className: "size-3.5" }),
4050
4162
  className,
4051
4163
  "aria-expanded": open,
4052
4164
  onClick: onToggle,
@@ -4057,9 +4169,9 @@ function Toggle({ open, onToggle, className }) {
4057
4169
 
4058
4170
  // src/Toolbar.tsx
4059
4171
  import { Toolbar as BaseToolbar } from "@base-ui/react/toolbar";
4060
- import { jsx as jsx57 } from "react/jsx-runtime";
4172
+ import { jsx as jsx58 } from "react/jsx-runtime";
4061
4173
  function Toolbar({ "aria-label": ariaLabel, orientation = "horizontal", loopFocus = true, surface = true, children, className }) {
4062
- const strip = /* @__PURE__ */ jsx57(
4174
+ const strip = /* @__PURE__ */ jsx58(
4063
4175
  BaseToolbar.Root,
4064
4176
  {
4065
4177
  "aria-label": ariaLabel,
@@ -4070,27 +4182,27 @@ function Toolbar({ "aria-label": ariaLabel, orientation = "horizontal", loopFocu
4070
4182
  }
4071
4183
  );
4072
4184
  if (!surface) return strip;
4073
- return /* @__PURE__ */ jsx57(MenuPanel, { className: "w-fit p-1", children: strip });
4185
+ return /* @__PURE__ */ jsx58(MenuPanel, { className: "w-fit p-1", children: strip });
4074
4186
  }
4075
4187
  function ToolbarButton({ ref, disabled, disabledReason, ...props }) {
4076
- return /* @__PURE__ */ jsx57(
4188
+ return /* @__PURE__ */ jsx58(
4077
4189
  BaseToolbar.Button,
4078
4190
  {
4079
4191
  ref,
4080
4192
  disabled: disabled || !!disabledReason,
4081
4193
  focusableWhenDisabled: true,
4082
- render: /* @__PURE__ */ jsx57(IconButton, { disabled, disabledReason, ...props })
4194
+ render: /* @__PURE__ */ jsx58(IconButton, { disabled, disabledReason, ...props })
4083
4195
  }
4084
4196
  );
4085
4197
  }
4086
4198
  function ToolbarLink({ ref, href, ...props }) {
4087
- return /* @__PURE__ */ jsx57(BaseToolbar.Link, { ref, render: /* @__PURE__ */ jsx57(IconButton, { href, ...props }) });
4199
+ return /* @__PURE__ */ jsx58(BaseToolbar.Link, { ref, render: /* @__PURE__ */ jsx58(IconButton, { href, ...props }) });
4088
4200
  }
4089
4201
  function ToolbarInput({ size, ...props }) {
4090
- return /* @__PURE__ */ jsx57(BaseToolbar.Input, { render: /* @__PURE__ */ jsx57(TextInput, { size }), ...props });
4202
+ return /* @__PURE__ */ jsx58(BaseToolbar.Input, { render: /* @__PURE__ */ jsx58(TextInput, { size }), ...props });
4091
4203
  }
4092
4204
  function ToolbarSeparator({ className }) {
4093
- return /* @__PURE__ */ jsx57(
4205
+ return /* @__PURE__ */ jsx58(
4094
4206
  BaseToolbar.Separator,
4095
4207
  {
4096
4208
  orientation: "vertical",
@@ -4100,9 +4212,9 @@ function ToolbarSeparator({ className }) {
4100
4212
  }
4101
4213
 
4102
4214
  // src/ReactionPicker.tsx
4103
- import { jsx as jsx58 } from "react/jsx-runtime";
4215
+ import { jsx as jsx59 } from "react/jsx-runtime";
4104
4216
  function ReactionPicker({ options, onSelect, "aria-label": ariaLabel = "Reactions", surface = true, className }) {
4105
- return /* @__PURE__ */ jsx58(Toolbar, { "aria-label": ariaLabel, surface, className: cn("gap-0.5", className), children: options.map((option) => (
4217
+ return /* @__PURE__ */ jsx59(Toolbar, { "aria-label": ariaLabel, surface, className: cn("gap-0.5", className), children: options.map((option) => (
4106
4218
  /*
4107
4219
  A `ToolbarButton`, not a button in a tooltip wrapper. The wrapper
4108
4220
  would become the toolbar's item and the button inside it would never
@@ -4112,14 +4224,14 @@ function ReactionPicker({ options, onSelect, "aria-label": ariaLabel = "Reaction
4112
4224
  The tooltip names it for a pointer, `aria-label` for everything else,
4113
4225
  and both say the meaning rather than the glyph.
4114
4226
  */
4115
- /* @__PURE__ */ jsx58(
4227
+ /* @__PURE__ */ jsx59(
4116
4228
  ToolbarButton,
4117
4229
  {
4118
4230
  "aria-label": option.label,
4119
4231
  tooltip: option.label,
4120
4232
  onClick: () => onSelect(option.emoji),
4121
4233
  className: "size-7",
4122
- children: /* @__PURE__ */ jsx58("span", { "aria-hidden": "true", className: "text-h3 leading-none", children: option.emoji })
4234
+ children: /* @__PURE__ */ jsx59("span", { "aria-hidden": "true", className: "text-h3 leading-none", children: option.emoji })
4123
4235
  },
4124
4236
  option.emoji
4125
4237
  )
@@ -4128,23 +4240,23 @@ function ReactionPicker({ options, onSelect, "aria-label": ariaLabel = "Reaction
4128
4240
 
4129
4241
  // src/PreviewCard.tsx
4130
4242
  import { PreviewCard as BasePreviewCard } from "@base-ui/react/preview-card";
4131
- import { jsx as jsx59, jsxs as jsxs40 } from "react/jsx-runtime";
4243
+ import { jsx as jsx60, jsxs as jsxs40 } from "react/jsx-runtime";
4132
4244
  var GAP6 = 12;
4133
4245
  var VIEWPORT_PAD6 = 8;
4134
4246
  var OPEN_DELAY2 = 350;
4135
4247
  var CLOSE_DELAY = 200;
4136
4248
  function PreviewCard({ content, children, side = "right", delay = OPEN_DELAY2, closeDelay = CLOSE_DELAY, className, contentClassName, wrapperClassName }) {
4137
4249
  return /* @__PURE__ */ jsxs40(BasePreviewCard.Root, { children: [
4138
- /* @__PURE__ */ jsx59(
4250
+ /* @__PURE__ */ jsx60(
4139
4251
  BasePreviewCard.Trigger,
4140
4252
  {
4141
4253
  delay,
4142
4254
  closeDelay,
4143
- render: /* @__PURE__ */ jsx59("span", { className: cn("inline-flex", wrapperClassName) }),
4255
+ render: /* @__PURE__ */ jsx60("span", { className: cn("inline-flex", wrapperClassName) }),
4144
4256
  children
4145
4257
  }
4146
4258
  ),
4147
- /* @__PURE__ */ jsx59(BasePreviewCard.Portal, { children: /* @__PURE__ */ jsx59(
4259
+ /* @__PURE__ */ jsx60(BasePreviewCard.Portal, { children: /* @__PURE__ */ jsx60(
4148
4260
  BasePreviewCard.Positioner,
4149
4261
  {
4150
4262
  side,
@@ -4152,12 +4264,12 @@ function PreviewCard({ content, children, side = "right", delay = OPEN_DELAY2, c
4152
4264
  sideOffset: GAP6,
4153
4265
  collisionPadding: VIEWPORT_PAD6,
4154
4266
  className: "z-50 data-[anchor-hidden]:hidden",
4155
- children: /* @__PURE__ */ jsx59(
4267
+ children: /* @__PURE__ */ jsx60(
4156
4268
  BasePreviewCard.Popup,
4157
4269
  {
4158
4270
  className: cn("w-[360px] p-0 outline-none", className),
4159
- render: /* @__PURE__ */ jsx59(MenuPanel, {}),
4160
- children: /* @__PURE__ */ jsx59(ScrollArea, { viewportClassName: "max-h-[min(300px,var(--available-height))]", contentClassName: cn("flex flex-col gap-3 p-3", contentClassName), children: content })
4271
+ render: /* @__PURE__ */ jsx60(MenuPanel, {}),
4272
+ children: /* @__PURE__ */ jsx60(ScrollArea, { viewportClassName: "max-h-[min(300px,var(--available-height))]", contentClassName: cn("flex flex-col gap-3 p-3", contentClassName), children: content })
4161
4273
  }
4162
4274
  )
4163
4275
  }
@@ -4476,7 +4588,7 @@ function linkStateFrom(object, unread, options) {
4476
4588
  // src/LinkParts.tsx
4477
4589
  import { useContext as useContext7 } from "react";
4478
4590
  import { IconCircleCheck, IconCircleDashed as IconCircleDashed2, IconCircleHalf2, IconCircleX, IconFileText, IconMessage2 as IconMessage22 } from "@tabler/icons-react";
4479
- import { jsx as jsx60, jsxs as jsxs41 } from "react/jsx-runtime";
4591
+ import { jsx as jsx61, jsxs as jsxs41 } from "react/jsx-runtime";
4480
4592
  var STATUS_ICON = {
4481
4593
  neutral: { Icon: IconCircleDashed2, tone: "text-text-secondary" },
4482
4594
  blue: { Icon: IconCircleHalf2, tone: "text-info-default" },
@@ -4485,28 +4597,28 @@ var STATUS_ICON = {
4485
4597
  };
4486
4598
  function StatusIcon({ colour }) {
4487
4599
  const { Icon, tone } = STATUS_ICON[colour];
4488
- return /* @__PURE__ */ jsx60(Icon, { size: 14, stroke: 1.5, className: cn("shrink-0", tone), "aria-hidden": true });
4600
+ return /* @__PURE__ */ jsx61(Icon, { size: 14, stroke: 1.5, className: cn("shrink-0", tone), "aria-hidden": true });
4489
4601
  }
4490
4602
  function StatusMark({ status }) {
4491
4603
  return /* @__PURE__ */ jsxs41(WithTooltip, { label: status.label, inline: true, wrapperClassName: "inline-flex shrink-0 items-center", children: [
4492
- /* @__PURE__ */ jsx60(StatusIcon, { colour: status.colour }),
4493
- /* @__PURE__ */ jsx60("span", { className: "sr-only", children: status.label })
4604
+ /* @__PURE__ */ jsx61(StatusIcon, { colour: status.colour }),
4605
+ /* @__PURE__ */ jsx61("span", { className: "sr-only", children: status.label })
4494
4606
  ] });
4495
4607
  }
4496
4608
  function LinkedIcon({ kind, size = 16, tone = "secondary" }) {
4497
- if (kind === "page") return /* @__PURE__ */ jsx60(IconFileText, { size, stroke: 1.5, className: cn("shrink-0", tone === "secondary" && "text-text-secondary"), "aria-hidden": true });
4498
- return /* @__PURE__ */ jsx60(KindIcon, { kind, size, tone });
4609
+ if (kind === "page") return /* @__PURE__ */ jsx61(IconFileText, { size, stroke: 1.5, className: cn("shrink-0", tone === "secondary" && "text-text-secondary"), "aria-hidden": true });
4610
+ return /* @__PURE__ */ jsx61(KindIcon, { kind, size, tone });
4499
4611
  }
4500
4612
  function LinkKey({ children, tone = "muted" }) {
4501
- return /* @__PURE__ */ jsx60("span", { className: cn("shrink-0 text-caption tabular-nums", tone === "secondary" ? "text-text-secondary" : "text-text-muted"), children });
4613
+ return /* @__PURE__ */ jsx61("span", { className: cn("shrink-0 text-caption tabular-nums", tone === "secondary" ? "text-text-secondary" : "text-text-muted"), children });
4502
4614
  }
4503
4615
  var KIND_NOUN = { issue: "Issue", project: "Project", topic: "Topic", page: "Document" };
4504
4616
  function kindNounOf(linked) {
4505
4617
  return linked.noun ?? KIND_NOUN[linked.kind];
4506
4618
  }
4507
4619
  function LinkTile({ kind, author }) {
4508
- if (author) return /* @__PURE__ */ jsx60(Avatar, { name: author.name, src: author.picture, size: 36 });
4509
- return /* @__PURE__ */ jsx60("span", { className: TYPE_TILE_CLASSES, children: /* @__PURE__ */ jsx60(LinkedIcon, { kind }) });
4620
+ if (author) return /* @__PURE__ */ jsx61(Avatar, { name: author.name, src: author.picture, size: 36 });
4621
+ return /* @__PURE__ */ jsx61("span", { className: TYPE_TILE_CLASSES, children: /* @__PURE__ */ jsx61(LinkedIcon, { kind }) });
4510
4622
  }
4511
4623
  function ProgressRing({ done, total }) {
4512
4624
  const size = 16;
@@ -4514,10 +4626,10 @@ function ProgressRing({ done, total }) {
4514
4626
  const r = (size - stroke) / 2;
4515
4627
  const c = 2 * Math.PI * r;
4516
4628
  const share = total > 0 ? Math.min(done, total) / total : 0;
4517
- return /* @__PURE__ */ jsx60(WithTooltip, { label: `${done} of ${total} done`, inline: true, wrapperClassName: "inline-flex shrink-0", children: /* @__PURE__ */ jsxs41("span", { className: "inline-flex shrink-0 items-center gap-1.5 text-small tabular-nums text-text-secondary", children: [
4629
+ return /* @__PURE__ */ jsx61(WithTooltip, { label: `${done} of ${total} done`, inline: true, wrapperClassName: "inline-flex shrink-0", children: /* @__PURE__ */ jsxs41("span", { className: "inline-flex shrink-0 items-center gap-1.5 text-small tabular-nums text-text-secondary", children: [
4518
4630
  /* @__PURE__ */ jsxs41("svg", { width: size, height: size, viewBox: `0 0 ${size} ${size}`, className: "shrink-0 -rotate-90", "aria-hidden": true, children: [
4519
- /* @__PURE__ */ jsx60("circle", { cx: size / 2, cy: size / 2, r, fill: "none", strokeWidth: stroke, className: "stroke-border-default" }),
4520
- /* @__PURE__ */ jsx60("circle", { cx: size / 2, cy: size / 2, r, fill: "none", strokeWidth: stroke, strokeLinecap: "round", strokeDasharray: `${c * share} ${c}`, className: "stroke-success-default" })
4631
+ /* @__PURE__ */ jsx61("circle", { cx: size / 2, cy: size / 2, r, fill: "none", strokeWidth: stroke, className: "stroke-border-default" }),
4632
+ /* @__PURE__ */ jsx61("circle", { cx: size / 2, cy: size / 2, r, fill: "none", strokeWidth: stroke, strokeLinecap: "round", strokeDasharray: `${c * share} ${c}`, className: "stroke-success-default" })
4521
4633
  ] }),
4522
4634
  done,
4523
4635
  "/",
@@ -4535,10 +4647,10 @@ function CommentCount({ conversation, noun = "comments" }) {
4535
4647
  const said = countWords(count, noun);
4536
4648
  if (boxed || !href) {
4537
4649
  return /* @__PURE__ */ jsxs41("span", { className: cn("inline-flex h-6 shrink-0 items-center gap-1 px-1.5 text-small tabular-nums", unread ? "font-medium text-text-primary" : "text-text-secondary"), children: [
4538
- /* @__PURE__ */ jsx60(IconMessage22, { size: 14, stroke: 1.5, "aria-hidden": true }),
4539
- /* @__PURE__ */ jsx60("span", { "aria-hidden": true, children: count }),
4540
- /* @__PURE__ */ jsx60("span", { className: "sr-only", children: unread ? `${said}, unread` : said }),
4541
- unread && /* @__PURE__ */ jsx60(UnreadDot, { className: "h-auto w-auto" })
4650
+ /* @__PURE__ */ jsx61(IconMessage22, { size: 14, stroke: 1.5, "aria-hidden": true }),
4651
+ /* @__PURE__ */ jsx61("span", { "aria-hidden": true, children: count }),
4652
+ /* @__PURE__ */ jsx61("span", { className: "sr-only", children: unread ? `${said}, unread` : said }),
4653
+ unread && /* @__PURE__ */ jsx61(UnreadDot, { className: "h-auto w-auto" })
4542
4654
  ] });
4543
4655
  }
4544
4656
  return (
@@ -4549,19 +4661,19 @@ function CommentCount({ conversation, noun = "comments" }) {
4549
4661
  * its 6px and the row's gap part it from the faces and the ring beside it (14px to its icon). The count is in
4550
4662
  * the small size (10px).
4551
4663
  */
4552
- /* @__PURE__ */ jsx60("span", { className: cn("relative z-10 inline-flex h-6 shrink-0 rounded-md text-small tabular-nums transition-colors hover:bg-bg-hover", unread ? "font-medium text-text-primary" : "text-text-secondary"), children: /* @__PURE__ */ jsxs41(Link, { href, variant: "plain", className: "flex h-full items-center gap-1 px-1.5", children: [
4553
- /* @__PURE__ */ jsx60(IconMessage22, { size: 14, stroke: 1.5, "aria-hidden": true }),
4554
- /* @__PURE__ */ jsx60("span", { "aria-hidden": true, children: count }),
4555
- /* @__PURE__ */ jsx60("span", { className: "sr-only", children: unread ? `${said}, unread \u2014 open the conversation` : `${said} \u2014 open the conversation` }),
4556
- unread && /* @__PURE__ */ jsx60(UnreadDot, { className: "h-auto w-auto" })
4664
+ /* @__PURE__ */ jsx61("span", { className: cn("relative z-10 inline-flex h-6 shrink-0 rounded-md text-small tabular-nums transition-colors hover:bg-bg-hover", unread ? "font-medium text-text-primary" : "text-text-secondary"), children: /* @__PURE__ */ jsxs41(Link, { href, variant: "plain", className: "flex h-full items-center gap-1 px-1.5", children: [
4665
+ /* @__PURE__ */ jsx61(IconMessage22, { size: 14, stroke: 1.5, "aria-hidden": true }),
4666
+ /* @__PURE__ */ jsx61("span", { "aria-hidden": true, children: count }),
4667
+ /* @__PURE__ */ jsx61("span", { className: "sr-only", children: unread ? `${said}, unread \u2014 open the conversation` : `${said} \u2014 open the conversation` }),
4668
+ unread && /* @__PURE__ */ jsx61(UnreadDot, { className: "h-auto w-auto" })
4557
4669
  ] }) })
4558
4670
  );
4559
4671
  }
4560
4672
  function OwnerFace({ option }) {
4561
4673
  const nobody = !option || option.value === "";
4562
- return /* @__PURE__ */ jsx60(Avatar, { name: nobody ? void 0 : option.label, src: nobody ? void 0 : option.picture, size: 16 });
4674
+ return /* @__PURE__ */ jsx61(Avatar, { name: nobody ? void 0 : option.label, src: nobody ? void 0 : option.picture, size: 16 });
4563
4675
  }
4564
- function LinkPickers({ status, owner, ownerLabel = "Owner", readOnly = false }) {
4676
+ function LinkPickers({ status, owner, ownerLabel = "Owner", readOnly = false, disabledReason }) {
4565
4677
  const statusNow = chosenOf(status);
4566
4678
  const ownerNow = chosenOf(owner);
4567
4679
  const statusWords = status && (readOnly || !status.onChange);
@@ -4571,9 +4683,9 @@ function LinkPickers({ status, owner, ownerLabel = "Owner", readOnly = false })
4571
4683
  // Boxed, they are see-through as the card they sit in is: a field's fill was a dark hole on a selected message (Katerina, 30 Oct).
4572
4684
  /* @__PURE__ */ jsxs41("span", { className: cn("flex h-6 min-w-0 items-center text-caption text-text-secondary", statusWords || ownerWords ? "gap-4" : "gap-2"), children: [
4573
4685
  status && (statusWords ? /* @__PURE__ */ jsxs41("span", { className: "inline-flex shrink-0 items-center gap-1", children: [
4574
- statusNow?.colour && /* @__PURE__ */ jsx60(StatusIcon, { colour: statusNow.colour }),
4686
+ statusNow?.colour && /* @__PURE__ */ jsx61(StatusIcon, { colour: statusNow.colour }),
4575
4687
  statusNow?.label ?? "No status"
4576
- ] }) : /* @__PURE__ */ jsx60(
4688
+ ] }) : /* @__PURE__ */ jsx61(
4577
4689
  Select,
4578
4690
  {
4579
4691
  size: "small",
@@ -4582,13 +4694,14 @@ function LinkPickers({ status, owner, ownerLabel = "Owner", readOnly = false })
4582
4694
  value: status.value ?? "",
4583
4695
  onChange: (value) => status.onChange?.(value),
4584
4696
  ariaLabel: "Status",
4585
- options: status.options.map((option) => ({ value: option.value, label: option.label, leading: option.colour && /* @__PURE__ */ jsx60(StatusIcon, { colour: option.colour }) }))
4697
+ disabledReason,
4698
+ options: status.options.map((option) => ({ value: option.value, label: option.label, leading: option.colour && /* @__PURE__ */ jsx61(StatusIcon, { colour: option.colour }) }))
4586
4699
  }
4587
4700
  )),
4588
4701
  owner && (ownerWords ? /* @__PURE__ */ jsxs41("span", { className: "inline-flex min-w-0 items-center gap-1", children: [
4589
- /* @__PURE__ */ jsx60(OwnerFace, { option: ownerNow }),
4590
- /* @__PURE__ */ jsx60("span", { className: "truncate", children: ownerNow?.label ?? "Unassigned" })
4591
- ] }) : /* @__PURE__ */ jsx60(
4702
+ /* @__PURE__ */ jsx61(OwnerFace, { option: ownerNow }),
4703
+ /* @__PURE__ */ jsx61("span", { className: "truncate", children: ownerNow?.label ?? "Unassigned" })
4704
+ ] }) : /* @__PURE__ */ jsx61(
4592
4705
  Select,
4593
4706
  {
4594
4707
  size: "small",
@@ -4598,7 +4711,8 @@ function LinkPickers({ status, owner, ownerLabel = "Owner", readOnly = false })
4598
4711
  placeholder: "Unassigned",
4599
4712
  onChange: (value) => owner.onChange?.(value),
4600
4713
  ariaLabel: ownerLabel,
4601
- options: owner.options.map((option) => ({ value: option.value, label: option.label, leading: /* @__PURE__ */ jsx60(OwnerFace, { option }) }))
4714
+ disabledReason,
4715
+ options: owner.options.map((option) => ({ value: option.value, label: option.label, leading: /* @__PURE__ */ jsx61(OwnerFace, { option }) }))
4602
4716
  }
4603
4717
  ))
4604
4718
  ] })
@@ -4613,44 +4727,41 @@ import { useContext as useContext9 } from "react";
4613
4727
 
4614
4728
  // src/LinkRow.tsx
4615
4729
  import { useContext as useContext8 } from "react";
4616
- import { jsx as jsx61, jsxs as jsxs42 } from "react/jsx-runtime";
4730
+ import { IconExternalLink } from "@tabler/icons-react";
4731
+ import { jsx as jsx62, jsxs as jsxs42 } from "react/jsx-runtime";
4617
4732
  var ROW_CLASSES2 = "flex items-center gap-3 p-1.5 pr-3";
4618
4733
  function LinkUnavailable({ kind, noun, openIn, card = false, deleted = false }) {
4619
- return /* @__PURE__ */ jsx61(UnavailableRow, { kind, words: `${noun} ${deleted ? "deleted" : "not available"}`, openIn: deleted ? void 0 : openIn, card });
4734
+ return /* @__PURE__ */ jsx62(UnavailableRow, { kind, words: `${noun} ${deleted ? "deleted" : "not available"}`, openIn: deleted ? void 0 : openIn, card });
4620
4735
  }
4621
4736
  function UnavailableRow({ kind, words, href, openIn, card = false }) {
4622
4737
  const wide = useContext8(inTheBox);
4623
4738
  return /* @__PURE__ */ jsxs42(Card, { fill: wide ? "elevated" : "inset", className: cn(card ? "flex items-center gap-3 p-3" : ROW_CLASSES2, "max-w-[480px]"), children: [
4624
- /* @__PURE__ */ jsx61("span", { className: TYPE_TILE_CLASSES, children: /* @__PURE__ */ jsx61(LinkedIcon, { kind }) }),
4625
- /* @__PURE__ */ jsx61("span", { className: "min-w-0 flex-1 truncate text-body-2 text-text-muted", children: href && !wide ? /* @__PURE__ */ jsx61(Link, { href, variant: "quiet", children: words }) : words }),
4626
- openIn && /* @__PURE__ */ jsx61("span", { className: "shrink-0 text-caption text-text-secondary", children: /* @__PURE__ */ jsxs42(Link, { href: openIn.href, variant: "quiet", external: true, children: [
4627
- "Open in ",
4628
- openIn.app,
4629
- " \u2197"
4630
- ] }) })
4739
+ /* @__PURE__ */ jsx62("span", { className: TYPE_TILE_CLASSES, children: /* @__PURE__ */ jsx62(LinkedIcon, { kind }) }),
4740
+ /* @__PURE__ */ jsx62("span", { className: "min-w-0 flex-1 truncate text-body-2 text-text-muted", children: href && !wide ? /* @__PURE__ */ jsx62(Link, { href, variant: "quiet", children: words }) : words }),
4741
+ openIn && /* @__PURE__ */ jsx62(WithTooltip, { label: `Open in ${openIn.app}`, children: /* @__PURE__ */ jsx62(Button, { href: openIn.href, external: true, size: "small", className: "shrink-0", leadingIcon: /* @__PURE__ */ jsx62(IconExternalLink, { stroke: 1.5, className: "size-3.5" }), "aria-label": `Open in ${openIn.app}`, children: "Open" }) })
4631
4742
  ] });
4632
4743
  }
4633
4744
  function linkMetaOf(linked, withWhen = false) {
4634
4745
  return [linked.key, kindNounOf(linked), linked.archived ? "Archived" : void 0, linked.subtitle, withWhen ? linked.updated : void 0].filter(Boolean).join(" \xB7 ");
4635
4746
  }
4636
4747
  function WrittenUrl({ url, block = false }) {
4637
- const link = /* @__PURE__ */ jsx61(Link, { href: url, external: true, children: url });
4638
- return block ? /* @__PURE__ */ jsx61("span", { className: "block min-w-0 truncate text-body-2", children: link }) : link;
4748
+ const link = /* @__PURE__ */ jsx62(Link, { href: url, external: true, children: url });
4749
+ return block ? /* @__PURE__ */ jsx62("span", { className: "block min-w-0 truncate text-body-2", children: link }) : link;
4639
4750
  }
4640
4751
  function LinkRow({ link, preview = true }) {
4641
4752
  const width = "max-w-[480px]";
4642
4753
  if (link.state === "loading") {
4643
- return /* @__PURE__ */ jsx61("div", { className: "animate-skeleton-in", "aria-busy": true, children: /* @__PURE__ */ jsxs42(Card, { fill: "inset", "aria-hidden": true, className: cn(ROW_CLASSES2, width), children: [
4644
- /* @__PURE__ */ jsx61("span", { className: TYPE_TILE_CLASSES, children: /* @__PURE__ */ jsx61(LinkedIcon, { kind: link.kind }) }),
4754
+ return /* @__PURE__ */ jsx62("div", { className: "animate-skeleton-in", "aria-busy": true, children: /* @__PURE__ */ jsxs42(Card, { fill: "inset", "aria-hidden": true, className: cn(ROW_CLASSES2, width), children: [
4755
+ /* @__PURE__ */ jsx62("span", { className: TYPE_TILE_CLASSES, children: /* @__PURE__ */ jsx62(LinkedIcon, { kind: link.kind }) }),
4645
4756
  /* @__PURE__ */ jsxs42("span", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
4646
- /* @__PURE__ */ jsx61(SkeletonBar, { on: "inset", className: "h-3 w-2/5" }),
4647
- /* @__PURE__ */ jsx61(SkeletonBar, { on: "inset", className: "h-2.5 w-1/4" })
4757
+ /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-3 w-2/5" }),
4758
+ /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-2.5 w-1/4" })
4648
4759
  ] })
4649
4760
  ] }) });
4650
4761
  }
4651
4762
  if (link.state === "unavailable") {
4652
- if (link.url) return /* @__PURE__ */ jsx61(WrittenUrl, { url: link.url, block: true });
4653
- return /* @__PURE__ */ jsx61(LinkUnavailable, { kind: link.kind, noun: link.noun, openIn: link.openIn, deleted: link.deleted });
4763
+ if (link.url) return /* @__PURE__ */ jsx62(WrittenUrl, { url: link.url, block: true });
4764
+ return /* @__PURE__ */ jsx62(LinkUnavailable, { kind: link.kind, noun: link.noun, openIn: link.openIn, deleted: link.deleted });
4654
4765
  }
4655
4766
  const { linked } = link;
4656
4767
  const status = chosenOf(linked.status);
@@ -4658,49 +4769,49 @@ function LinkRow({ link, preview = true }) {
4658
4769
  const said = linked.kind === "message" ? linked.author : void 0;
4659
4770
  const meta = said ? "" : linkMetaOf(linked, true) || linked.summary;
4660
4771
  const row = /* @__PURE__ */ jsxs42(Card, { fill: "inset", hover: "hairline", className: cn("relative", ROW_CLASSES2, width), children: [
4661
- /* @__PURE__ */ jsx61(LinkTile, { kind: linked.kind, author: said }),
4772
+ /* @__PURE__ */ jsx62(LinkTile, { kind: linked.kind, author: said }),
4662
4773
  said ? (
4663
4774
  // Words a person wrote, on one line, as a quote is cut to one (Katerina, 30 Oct): the face, the name, the words
4664
4775
  // cut to fit, the time.
4665
4776
  /* @__PURE__ */ jsxs42("span", { className: "flex min-w-0 flex-1 items-baseline gap-2", children: [
4666
- /* @__PURE__ */ jsx61("span", { className: "contents text-body-2-strong text-text-primary", children: linked.href ? /* @__PURE__ */ jsx61(Link, { href: linked.href, variant: "quiet", cover: true, truncate: true, className: "min-w-0", children: said.name }) : /* @__PURE__ */ jsx61("span", { className: "min-w-0 truncate", children: said.name }) }),
4667
- linked.body && /* @__PURE__ */ jsx61("span", { className: "min-w-0 flex-1 truncate text-caption text-text-secondary", children: linked.body }),
4668
- linked.updated && /* @__PURE__ */ jsx61("span", { className: cn("ml-auto shrink-0 text-caption text-text-muted", TIME_CLASSES), children: linked.updated })
4777
+ /* @__PURE__ */ jsx62("span", { className: "contents text-body-2-strong text-text-primary", children: linked.href ? /* @__PURE__ */ jsx62(Link, { href: linked.href, variant: "quiet", cover: true, truncate: true, className: "min-w-0", children: said.name }) : /* @__PURE__ */ jsx62("span", { className: "min-w-0 truncate", children: said.name }) }),
4778
+ linked.body && /* @__PURE__ */ jsx62("span", { className: "min-w-0 flex-1 truncate text-caption text-text-secondary", children: linked.body }),
4779
+ linked.updated && /* @__PURE__ */ jsx62("span", { className: cn("ml-auto shrink-0 text-caption text-text-muted", TIME_CLASSES), children: linked.updated })
4669
4780
  ] })
4670
4781
  ) : /* @__PURE__ */ jsxs42("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
4671
- /* @__PURE__ */ jsx61("span", { className: "contents text-body-2-strong text-text-primary", children: linked.href ? /* @__PURE__ */ jsx61(Link, { href: linked.href, variant: "quiet", cover: true, truncate: true, children: linked.title }) : /* @__PURE__ */ jsx61("span", { className: "truncate", children: linked.title }) }),
4672
- meta && /* @__PURE__ */ jsx61("span", { className: "truncate text-caption text-text-secondary", children: meta })
4782
+ /* @__PURE__ */ jsx62("span", { className: "contents text-body-2-strong text-text-primary", children: linked.href ? /* @__PURE__ */ jsx62(Link, { href: linked.href, variant: "quiet", cover: true, truncate: true, children: linked.title }) : /* @__PURE__ */ jsx62("span", { className: "truncate", children: linked.title }) }),
4783
+ meta && /* @__PURE__ */ jsx62("span", { className: "truncate text-caption text-text-secondary", children: meta })
4673
4784
  ] }),
4674
4785
  /* @__PURE__ */ jsxs42("span", { className: "flex h-[19.6px] shrink-0 items-center gap-2 self-start", children: [
4675
- linked.done ? /* @__PURE__ */ jsx61(ProgressRing, { done: linked.done.done, total: linked.done.total }) : status?.colour && /* @__PURE__ */ jsx61(StatusMark, { status: { label: status.label, colour: status.colour } }),
4676
- linked.conversation && /* @__PURE__ */ jsx61(CommentCount, { conversation: linked.conversation, noun: linked.conversation.noun }),
4677
- owner && /* @__PURE__ */ jsx61(Avatar, { name: owner.label, src: owner.picture, size: 16 }),
4678
- linked.members && /* @__PURE__ */ jsx61(AvatarGroup, { members: linked.members, size: 16, on: "inset" }),
4679
- linked.authors && /* @__PURE__ */ jsx61(AvatarGroup, { members: linked.authors, size: 16, on: "inset" })
4786
+ linked.done ? /* @__PURE__ */ jsx62(ProgressRing, { done: linked.done.done, total: linked.done.total }) : status?.colour && /* @__PURE__ */ jsx62(StatusMark, { status: { label: status.label, colour: status.colour } }),
4787
+ linked.conversation && /* @__PURE__ */ jsx62(CommentCount, { conversation: linked.conversation, noun: linked.conversation.noun }),
4788
+ owner && /* @__PURE__ */ jsx62(Avatar, { name: owner.label, src: owner.picture, size: 16 }),
4789
+ linked.members && /* @__PURE__ */ jsx62(AvatarGroup, { members: linked.members, size: 16, on: "inset" }),
4790
+ linked.authors && /* @__PURE__ */ jsx62(AvatarGroup, { members: linked.authors, size: 16, on: "inset" })
4680
4791
  ] })
4681
4792
  ] });
4682
- return preview ? /* @__PURE__ */ jsx61(LinkPreview, { linked, block: true, children: row }) : row;
4793
+ return preview ? /* @__PURE__ */ jsx62(LinkPreview, { linked, block: true, children: row }) : row;
4683
4794
  }
4684
4795
 
4685
4796
  // src/LinkCard.tsx
4686
- import { Fragment as Fragment14, jsx as jsx62, jsxs as jsxs43 } from "react/jsx-runtime";
4797
+ import { Fragment as Fragment14, jsx as jsx63, jsxs as jsxs43 } from "react/jsx-runtime";
4687
4798
  var CARD_CLASSES = "flex flex-col gap-3 p-3";
4688
4799
  function CardLink({ href, truncate = false, className, children }) {
4689
4800
  const boxed = useContext9(inTheBox);
4690
- if (boxed || !href) return /* @__PURE__ */ jsx62("span", { className: cn(truncate && "truncate", className), children });
4691
- return /* @__PURE__ */ jsx62(Link, { href, variant: "quiet", truncate, className, children });
4801
+ if (boxed || !href) return /* @__PURE__ */ jsx63("span", { className: cn(truncate && "truncate", className), children });
4802
+ return /* @__PURE__ */ jsx63(Link, { href, variant: "quiet", truncate, className, children });
4692
4803
  }
4693
4804
  function LinkCard({ link, readOnly = false, bare = false }) {
4694
4805
  const boxed = useContext9(inTheBox);
4695
- if (link.state === "loading") return /* @__PURE__ */ jsx62(LinkCardLoading, { kind: link.kind, shape: link.shape });
4806
+ if (link.state === "loading") return /* @__PURE__ */ jsx63(LinkCardLoading, { kind: link.kind, shape: link.shape });
4696
4807
  if (link.state === "unavailable") {
4697
- if (link.url) return /* @__PURE__ */ jsx62(WrittenUrl, { url: link.url, block: true });
4698
- return /* @__PURE__ */ jsx62(LinkUnavailable, { kind: link.kind, noun: link.noun, openIn: link.openIn, deleted: link.deleted, card: true });
4808
+ if (link.url) return /* @__PURE__ */ jsx63(WrittenUrl, { url: link.url, block: true });
4809
+ return /* @__PURE__ */ jsx63(LinkUnavailable, { kind: link.kind, noun: link.noun, openIn: link.openIn, deleted: link.deleted, card: true });
4699
4810
  }
4700
4811
  const { linked } = link;
4701
- const body = linked.kind === "message" && linked.author ? /* @__PURE__ */ jsx62(SaidBody, { linked }) : /* @__PURE__ */ jsx62(CardBody, { linked, readOnly: readOnly || boxed });
4702
- if (bare) return /* @__PURE__ */ jsx62("div", { className: CARD_CLASSES, children: body });
4703
- return /* @__PURE__ */ jsx62(Card, { fill: boxed ? "elevated" : "inset", className: cn(CARD_CLASSES, "max-w-[480px]"), children: body });
4812
+ const body = linked.kind === "message" && linked.author ? /* @__PURE__ */ jsx63(SaidBody, { linked }) : /* @__PURE__ */ jsx63(CardBody, { linked, readOnly: readOnly || boxed });
4813
+ if (bare) return /* @__PURE__ */ jsx63("div", { className: CARD_CLASSES, children: body });
4814
+ return /* @__PURE__ */ jsx63(Card, { fill: boxed ? "elevated" : "inset", className: cn(CARD_CLASSES, "max-w-[480px]"), children: body });
4704
4815
  }
4705
4816
  function CardBody({ linked, readOnly }) {
4706
4817
  const boxed = useContext9(inTheBox);
@@ -4709,42 +4820,42 @@ function CardBody({ linked, readOnly }) {
4709
4820
  const footed = Boolean(linked.status || linked.owner || linked.authors || linked.updated);
4710
4821
  return /* @__PURE__ */ jsxs43(Fragment14, { children: [
4711
4822
  /* @__PURE__ */ jsxs43("div", { className: "flex items-center gap-3", children: [
4712
- /* @__PURE__ */ jsx62(LinkTile, { kind: linked.kind }),
4823
+ /* @__PURE__ */ jsx63(LinkTile, { kind: linked.kind }),
4713
4824
  /* @__PURE__ */ jsxs43("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
4714
- /* @__PURE__ */ jsx62("span", { className: "block min-w-0 text-body-2-strong text-text-primary", children: /* @__PURE__ */ jsx62(CardLink, { href: linked.href, truncate: true, className: "block", children: linked.title }) }),
4715
- meta && /* @__PURE__ */ jsx62("span", { className: "truncate text-caption text-text-secondary", children: meta })
4825
+ /* @__PURE__ */ jsx63("span", { className: "block min-w-0 text-body-2-strong text-text-primary", children: /* @__PURE__ */ jsx63(CardLink, { href: linked.href, truncate: true, className: "block", children: linked.title }) }),
4826
+ meta && /* @__PURE__ */ jsx63("span", { className: "truncate text-caption text-text-secondary", children: meta })
4716
4827
  ] }),
4717
4828
  (linked.done || linked.conversation || linked.members) && // On the title's line, not halfway down the header: the ring, the count, the faces, as a row's (Katerina, 30 Oct).
4718
4829
  /* @__PURE__ */ jsxs43("span", { className: "flex h-[19.6px] shrink-0 items-center gap-2 self-start", children: [
4719
- linked.done && /* @__PURE__ */ jsx62(ProgressRing, { done: linked.done.done, total: linked.done.total }),
4720
- linked.conversation && /* @__PURE__ */ jsx62(CommentCount, { conversation: linked.conversation, noun: linked.conversation.noun }),
4721
- linked.members && /* @__PURE__ */ jsx62(AvatarGroup, { members: linked.members, size: 16, on })
4830
+ linked.done && /* @__PURE__ */ jsx63(ProgressRing, { done: linked.done.done, total: linked.done.total }),
4831
+ linked.conversation && /* @__PURE__ */ jsx63(CommentCount, { conversation: linked.conversation, noun: linked.conversation.noun }),
4832
+ linked.members && /* @__PURE__ */ jsx63(AvatarGroup, { members: linked.members, size: 16, on })
4722
4833
  ] })
4723
4834
  ] }),
4724
- linked.summary && /* @__PURE__ */ jsx62("p", { className: "line-clamp-2 text-body-2 text-text-secondary", children: linked.summary }),
4835
+ linked.summary && /* @__PURE__ */ jsx63("p", { className: "line-clamp-2 text-body-2 text-text-secondary", children: linked.summary }),
4725
4836
  linked.children && linked.children.length > 0 && // In a box of their own, a hairline between them, as the card first drew them (Katerina, 29 Oct: "add back the borders").
4726
- /* @__PURE__ */ jsx62("div", { className: "flex flex-col divide-y divide-border-subtle rounded-md border border-border-subtle leaf:divide-border-strong leaf:border-border-strong", children: linked.children.map((child) => /* @__PURE__ */ jsxs43("div", { className: cn("relative flex h-8 items-center gap-2 px-2", !boxed && "hover:bg-bg-active"), children: [
4727
- /* @__PURE__ */ jsx62(StatusMark, { status: child.status }),
4728
- child.key && /* @__PURE__ */ jsx62(LinkKey, { children: child.key }),
4729
- /* @__PURE__ */ jsx62("span", { className: "contents text-body-2 text-text-primary", children: boxed || !child.href ? /* @__PURE__ */ jsx62("span", { className: "min-w-0 flex-1 truncate", children: child.title }) : /* @__PURE__ */ jsx62(Link, { href: child.href, variant: "quiet", cover: true, truncate: true, className: "min-w-0 flex-1", children: child.title }) }),
4730
- child.owner ? /* @__PURE__ */ jsx62(Avatar, { name: child.owner.name, src: child.owner.picture, size: 16 }) : /* @__PURE__ */ jsx62("span", { className: "size-4 shrink-0", "aria-hidden": true })
4837
+ /* @__PURE__ */ jsx63("div", { className: "flex flex-col divide-y divide-border-subtle rounded-md border border-border-subtle leaf:divide-border-strong leaf:border-border-strong", children: linked.children.map((child) => /* @__PURE__ */ jsxs43("div", { className: cn("relative flex h-8 items-center gap-2 px-2", !boxed && "hover:bg-bg-active"), children: [
4838
+ /* @__PURE__ */ jsx63(StatusMark, { status: child.status }),
4839
+ child.key && /* @__PURE__ */ jsx63(LinkKey, { children: child.key }),
4840
+ /* @__PURE__ */ jsx63("span", { className: "contents text-body-2 text-text-primary", children: boxed || !child.href ? /* @__PURE__ */ jsx63("span", { className: "min-w-0 flex-1 truncate", children: child.title }) : /* @__PURE__ */ jsx63(Link, { href: child.href, variant: "quiet", cover: true, truncate: true, className: "min-w-0 flex-1", children: child.title }) }),
4841
+ child.owner ? /* @__PURE__ */ jsx63(Avatar, { name: child.owner.name, src: child.owner.picture, size: 16 }) : /* @__PURE__ */ jsx63("span", { className: "size-4 shrink-0", "aria-hidden": true })
4731
4842
  ] }, child.id)) }),
4732
4843
  linked.latest && // 12px between the words "Latest conversation" and the quote they name (Katerina, 29 Oct).
4733
4844
  /* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-3", children: [
4734
- /* @__PURE__ */ jsx62("span", { className: "text-caption text-text-muted", children: "Latest conversation" }),
4845
+ /* @__PURE__ */ jsx63("span", { className: "text-caption text-text-muted", children: "Latest conversation" }),
4735
4846
  /* @__PURE__ */ jsxs43("div", { className: cn("flex flex-col gap-1", QUOTE_BAR_CLASSES), children: [
4736
4847
  /* @__PURE__ */ jsxs43("span", { className: "flex items-center gap-2 text-caption", children: [
4737
- /* @__PURE__ */ jsx62(Avatar, { name: linked.latest.author.name, src: linked.latest.author.picture, size: 16 }),
4738
- /* @__PURE__ */ jsx62("span", { className: "text-text-primary", children: linked.latest.author.name }),
4739
- /* @__PURE__ */ jsx62("span", { className: cn("text-text-muted", TIME_CLASSES), children: linked.latest.at })
4848
+ /* @__PURE__ */ jsx63(Avatar, { name: linked.latest.author.name, src: linked.latest.author.picture, size: 16 }),
4849
+ /* @__PURE__ */ jsx63("span", { className: "text-text-primary", children: linked.latest.author.name }),
4850
+ /* @__PURE__ */ jsx63("span", { className: cn("text-text-muted", TIME_CLASSES), children: linked.latest.at })
4740
4851
  ] }),
4741
- /* @__PURE__ */ jsx62("p", { className: "line-clamp-2 text-body-2 text-text-secondary", children: linked.latest.body })
4852
+ /* @__PURE__ */ jsx63("p", { className: "line-clamp-2 text-body-2 text-text-secondary", children: linked.latest.body })
4742
4853
  ] })
4743
4854
  ] }),
4744
4855
  footed && /* @__PURE__ */ jsxs43("div", { className: "flex min-h-6 items-center gap-2", children: [
4745
- (linked.status || linked.owner) && /* @__PURE__ */ jsx62(LinkPickers, { status: linked.status, owner: linked.owner, ownerLabel: linked.ownerLabel, readOnly }),
4856
+ (linked.status || linked.owner) && /* @__PURE__ */ jsx63(LinkPickers, { status: linked.status, owner: linked.owner, ownerLabel: linked.ownerLabel, readOnly }),
4746
4857
  linked.authors ? /* @__PURE__ */ jsxs43("span", { className: "flex min-w-0 items-center gap-2 text-caption text-text-secondary", children: [
4747
- /* @__PURE__ */ jsx62(AvatarGroup, { members: linked.authors, size: 16, on }),
4858
+ /* @__PURE__ */ jsx63(AvatarGroup, { members: linked.authors, size: 16, on }),
4748
4859
  linked.updated && /* @__PURE__ */ jsxs43("span", { className: "shrink-0 italic", children: [
4749
4860
  "Updated ",
4750
4861
  linked.updated
@@ -4760,11 +4871,11 @@ function SaidBody({ linked }) {
4760
4871
  const author = linked.author;
4761
4872
  return /* @__PURE__ */ jsxs43(Fragment14, { children: [
4762
4873
  /* @__PURE__ */ jsxs43("div", { className: "flex items-center gap-2", children: [
4763
- /* @__PURE__ */ jsx62(Avatar, { name: author.name, src: author.picture, size: 24 }),
4764
- /* @__PURE__ */ jsx62("span", { className: "text-body-2-strong text-text-primary", children: linked.updated ? author.name : /* @__PURE__ */ jsx62(CardLink, { href: linked.href, children: author.name }) }),
4765
- linked.updated && /* @__PURE__ */ jsx62("span", { className: cn("text-caption text-text-muted", TIME_CLASSES), children: /* @__PURE__ */ jsx62(CardLink, { href: linked.href, children: linked.updated }) })
4874
+ /* @__PURE__ */ jsx63(Avatar, { name: author.name, src: author.picture, size: 24 }),
4875
+ /* @__PURE__ */ jsx63("span", { className: "text-body-2-strong text-text-primary", children: linked.updated ? author.name : /* @__PURE__ */ jsx63(CardLink, { href: linked.href, children: author.name }) }),
4876
+ linked.updated && /* @__PURE__ */ jsx63("span", { className: cn("text-caption text-text-muted", TIME_CLASSES), children: /* @__PURE__ */ jsx63(CardLink, { href: linked.href, children: linked.updated }) })
4766
4877
  ] }),
4767
- /* @__PURE__ */ jsx62("p", { className: "line-clamp-4 text-body-2 text-text-secondary", children: linked.body ?? linked.title })
4878
+ /* @__PURE__ */ jsx63("p", { className: "line-clamp-4 text-body-2 text-text-secondary", children: linked.body ?? linked.title })
4768
4879
  ] });
4769
4880
  }
4770
4881
  var KIND_SHAPE = {
@@ -4778,37 +4889,37 @@ var KIND_SHAPE = {
4778
4889
  function LinkCardLoading({ kind, shape }) {
4779
4890
  const { subtitle = false, summary = true, rows = 0, latest = false, ring = false, footer = "line" } = shape ?? KIND_SHAPE[kind];
4780
4891
  const boxed = useContext9(inTheBox);
4781
- return /* @__PURE__ */ jsx62("div", { className: "animate-skeleton-in", "aria-busy": true, children: /* @__PURE__ */ jsxs43(Card, { fill: boxed ? "elevated" : "inset", "aria-hidden": true, className: cn(CARD_CLASSES, "max-w-[480px]"), children: [
4892
+ return /* @__PURE__ */ jsx63("div", { className: "animate-skeleton-in", "aria-busy": true, children: /* @__PURE__ */ jsxs43(Card, { fill: boxed ? "elevated" : "inset", "aria-hidden": true, className: cn(CARD_CLASSES, "max-w-[480px]"), children: [
4782
4893
  /* @__PURE__ */ jsxs43("div", { className: "flex items-center gap-3", children: [
4783
- /* @__PURE__ */ jsx62("span", { className: TYPE_TILE_CLASSES, children: /* @__PURE__ */ jsx62(LinkedIcon, { kind }) }),
4894
+ /* @__PURE__ */ jsx63("span", { className: TYPE_TILE_CLASSES, children: /* @__PURE__ */ jsx63(LinkedIcon, { kind }) }),
4784
4895
  /* @__PURE__ */ jsxs43("span", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
4785
- /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-3.5 w-1/2" }),
4786
- subtitle && /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-2.5 w-20" })
4896
+ /* @__PURE__ */ jsx63(SkeletonBar, { on: "inset", className: "h-3.5 w-1/2" }),
4897
+ subtitle && /* @__PURE__ */ jsx63(SkeletonBar, { on: "inset", className: "h-2.5 w-20" })
4787
4898
  ] }),
4788
- ring && /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", shape: "round", className: "size-4 self-start" })
4899
+ ring && /* @__PURE__ */ jsx63(SkeletonBar, { on: "inset", shape: "round", className: "size-4 self-start" })
4789
4900
  ] }),
4790
- summary && /* @__PURE__ */ jsx62("div", { className: "flex h-[19.6px] items-center", children: /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-3 w-4/5" }) }),
4791
- rows > 0 && /* @__PURE__ */ jsx62("div", { className: "flex flex-col divide-y divide-border-subtle rounded-md border border-border-subtle leaf:divide-border-strong leaf:border-border-strong", children: Array.from({ length: rows }, (_, i) => /* @__PURE__ */ jsx62("div", { className: "flex h-8 items-center px-2", children: /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-3 w-1/3" }) }, i)) }),
4901
+ summary && /* @__PURE__ */ jsx63("div", { className: "flex h-[19.6px] items-center", children: /* @__PURE__ */ jsx63(SkeletonBar, { on: "inset", className: "h-3 w-4/5" }) }),
4902
+ rows > 0 && /* @__PURE__ */ jsx63("div", { className: "flex flex-col divide-y divide-border-subtle rounded-md border border-border-subtle leaf:divide-border-strong leaf:border-border-strong", children: Array.from({ length: rows }, (_, i) => /* @__PURE__ */ jsx63("div", { className: "flex h-8 items-center px-2", children: /* @__PURE__ */ jsx63(SkeletonBar, { on: "inset", className: "h-3 w-1/3" }) }, i)) }),
4792
4903
  latest && /* @__PURE__ */ jsxs43("div", { className: "flex flex-col gap-3", children: [
4793
- /* @__PURE__ */ jsx62("div", { className: "flex h-[14.4px] items-center", children: /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-2.5 w-28" }) }),
4904
+ /* @__PURE__ */ jsx63("div", { className: "flex h-[14.4px] items-center", children: /* @__PURE__ */ jsx63(SkeletonBar, { on: "inset", className: "h-2.5 w-28" }) }),
4794
4905
  /* @__PURE__ */ jsxs43("div", { className: cn("flex h-[57.6px] flex-col justify-center gap-2", QUOTE_BAR_CLASSES), children: [
4795
- /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-2.5 w-24" }),
4796
- /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-3 w-full" }),
4797
- /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-3 w-3/5" })
4906
+ /* @__PURE__ */ jsx63(SkeletonBar, { on: "inset", className: "h-2.5 w-24" }),
4907
+ /* @__PURE__ */ jsx63(SkeletonBar, { on: "inset", className: "h-3 w-full" }),
4908
+ /* @__PURE__ */ jsx63(SkeletonBar, { on: "inset", className: "h-3 w-3/5" })
4798
4909
  ] })
4799
4910
  ] }),
4800
- footer !== "none" && /* @__PURE__ */ jsx62("div", { className: "flex min-h-6 items-center gap-2", children: footer === "pickers" ? /* @__PURE__ */ jsxs43(Fragment14, { children: [
4801
- /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", shape: "control", className: "h-6 w-24" }),
4802
- /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", shape: "control", className: "h-6 w-28" })
4911
+ footer !== "none" && /* @__PURE__ */ jsx63("div", { className: "flex min-h-6 items-center gap-2", children: footer === "pickers" ? /* @__PURE__ */ jsxs43(Fragment14, { children: [
4912
+ /* @__PURE__ */ jsx63(SkeletonBar, { on: "inset", shape: "control", className: "h-6 w-24" }),
4913
+ /* @__PURE__ */ jsx63(SkeletonBar, { on: "inset", shape: "control", className: "h-6 w-28" })
4803
4914
  ] }) : footer === "people" ? /* @__PURE__ */ jsxs43(Fragment14, { children: [
4804
- /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", shape: "round", className: "size-4" }),
4805
- /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-3 w-40" })
4806
- ] }) : /* @__PURE__ */ jsx62(SkeletonBar, { on: "inset", className: "h-3 w-40" }) })
4915
+ /* @__PURE__ */ jsx63(SkeletonBar, { on: "inset", shape: "round", className: "size-4" }),
4916
+ /* @__PURE__ */ jsx63(SkeletonBar, { on: "inset", className: "h-3 w-40" })
4917
+ ] }) : /* @__PURE__ */ jsx63(SkeletonBar, { on: "inset", className: "h-3 w-40" }) })
4807
4918
  ] }) });
4808
4919
  }
4809
4920
 
4810
4921
  // src/LinkPreview.tsx
4811
- import { Fragment as Fragment15, jsx as jsx63 } from "react/jsx-runtime";
4922
+ import { Fragment as Fragment15, jsx as jsx64 } from "react/jsx-runtime";
4812
4923
  var HOVER = "(hover: hover)";
4813
4924
  function subscribe(onChange) {
4814
4925
  if (typeof window === "undefined" || !window.matchMedia) return () => {
@@ -4826,22 +4937,22 @@ function useCanHover() {
4826
4937
  }
4827
4938
  function LinkPreview({ linked, block = false, children }) {
4828
4939
  const canHover = useCanHover();
4829
- if (!canHover) return /* @__PURE__ */ jsx63(Fragment15, { children });
4830
- return /* @__PURE__ */ jsx63(PreviewCard, { side: "top", contentClassName: "p-0", content: /* @__PURE__ */ jsx63(LinkCard, { link: { state: "ready", linked }, bare: true, readOnly: true }), wrapperClassName: block ? "grid w-full min-w-0 grid-cols-[minmax(0,1fr)]" : "max-w-full", children });
4940
+ if (!canHover) return /* @__PURE__ */ jsx64(Fragment15, { children });
4941
+ return /* @__PURE__ */ jsx64(PreviewCard, { side: "top", contentClassName: "p-0", content: /* @__PURE__ */ jsx64(LinkCard, { link: { state: "ready", linked }, bare: true, readOnly: true }), wrapperClassName: block ? "grid w-full min-w-0 grid-cols-[minmax(0,1fr)]" : "max-w-full", children });
4831
4942
  }
4832
4943
  function LinkPreviewOpen({ linked }) {
4833
- return /* @__PURE__ */ jsx63(MenuPanel, { className: "w-[360px] p-0", children: /* @__PURE__ */ jsx63(LinkCard, { link: { state: "ready", linked }, bare: true, readOnly: true }) });
4944
+ return /* @__PURE__ */ jsx64(MenuPanel, { className: "w-[360px] p-0", children: /* @__PURE__ */ jsx64(LinkCard, { link: { state: "ready", linked }, bare: true, readOnly: true }) });
4834
4945
  }
4835
4946
 
4836
4947
  // src/LinkChip.tsx
4837
- import { jsx as jsx64, jsxs as jsxs44 } from "react/jsx-runtime";
4948
+ import { jsx as jsx65, jsxs as jsxs44 } from "react/jsx-runtime";
4838
4949
  function LinkChip({ link, preview = true }) {
4839
4950
  if (link.state === "loading") {
4840
- return /* @__PURE__ */ jsx64(InlineChip, { icon: /* @__PURE__ */ jsx64(LinkedIcon, { kind: link.kind, size: 14, tone: "inherit" }), "aria-busy": true, children: /* @__PURE__ */ jsx64(SkeletonBar, { className: "h-2.5 w-16" }) });
4951
+ return /* @__PURE__ */ jsx65(InlineChip, { icon: /* @__PURE__ */ jsx65(LinkedIcon, { kind: link.kind, size: 14, tone: "inherit" }), "aria-busy": true, children: /* @__PURE__ */ jsx65(SkeletonBar, { className: "h-2.5 w-16" }) });
4841
4952
  }
4842
4953
  if (link.state === "unavailable") {
4843
- if (link.url) return /* @__PURE__ */ jsx64(WrittenUrl, { url: link.url });
4844
- return /* @__PURE__ */ jsxs44(InlineChip, { tone: "muted", icon: /* @__PURE__ */ jsx64(LinkedIcon, { kind: link.kind, size: 14, tone: "inherit" }), children: [
4954
+ if (link.url) return /* @__PURE__ */ jsx65(WrittenUrl, { url: link.url });
4955
+ return /* @__PURE__ */ jsxs44(InlineChip, { tone: "muted", icon: /* @__PURE__ */ jsx65(LinkedIcon, { kind: link.kind, size: 14, tone: "inherit" }), children: [
4845
4956
  link.noun,
4846
4957
  " ",
4847
4958
  link.deleted ? "deleted" : "not available"
@@ -4853,33 +4964,33 @@ function LinkChip({ link, preview = true }) {
4853
4964
  const chip = /* @__PURE__ */ jsxs44(
4854
4965
  InlineChip,
4855
4966
  {
4856
- icon: said ? /* @__PURE__ */ jsx64(Avatar, { name: said.name, src: said.picture, size: 14 }) : /* @__PURE__ */ jsx64(LinkedIcon, { kind: linked.kind, size: 14, tone: "inherit" }),
4967
+ icon: said ? /* @__PURE__ */ jsx65(Avatar, { name: said.name, src: said.picture, size: 14 }) : /* @__PURE__ */ jsx65(LinkedIcon, { kind: linked.kind, size: 14, tone: "inherit" }),
4857
4968
  href: linked.href || void 0,
4858
4969
  className: preview ? "min-w-0 max-w-[40ch]" : "max-w-[min(40ch,calc(100%_-_4px))]",
4859
4970
  children: [
4860
4971
  linked.key && // 4px more than the chip's gap after it, and kept whole: "ABC-2" never breaks at its hyphen.
4861
- /* @__PURE__ */ jsx64("span", { className: "mr-1 shrink-0 whitespace-nowrap", children: /* @__PURE__ */ jsx64(LinkKey, { tone: "secondary", children: linked.key }) }),
4862
- /* @__PURE__ */ jsx64("span", { className: "truncate", children: said ? `${said.name}: ${linked.body ?? linked.title}` : linked.title }),
4863
- status?.colour && /* @__PURE__ */ jsx64(StatusMark, { status: { label: status.label, colour: status.colour } })
4972
+ /* @__PURE__ */ jsx65("span", { className: "mr-1 shrink-0 whitespace-nowrap", children: /* @__PURE__ */ jsx65(LinkKey, { tone: "secondary", children: linked.key }) }),
4973
+ /* @__PURE__ */ jsx65("span", { className: "truncate", children: said ? `${said.name}: ${linked.body ?? linked.title}` : linked.title }),
4974
+ status?.colour && /* @__PURE__ */ jsx65(StatusMark, { status: { label: status.label, colour: status.colour } })
4864
4975
  ]
4865
4976
  }
4866
4977
  );
4867
- return preview ? /* @__PURE__ */ jsx64(LinkPreview, { linked, children: chip }) : chip;
4978
+ return preview ? /* @__PURE__ */ jsx65(LinkPreview, { linked, children: chip }) : chip;
4868
4979
  }
4869
4980
 
4870
4981
  // src/AttachedCard.tsx
4871
4982
  import { createContext as createContext8, useContext as useContext10 } from "react";
4872
- import { Fragment as Fragment16, jsx as jsx65, jsxs as jsxs45 } from "react/jsx-runtime";
4983
+ import { Fragment as Fragment16, jsx as jsx66, jsxs as jsxs45 } from "react/jsx-runtime";
4873
4984
  var Attached = createContext8(false);
4874
4985
  function AttachedCard({ link, children, onRemove }) {
4875
- const card = link ? /* @__PURE__ */ jsx65(LinkCard, { link }) : children;
4986
+ const card = link ? /* @__PURE__ */ jsx66(LinkCard, { link }) : children;
4876
4987
  const inside = useContext10(Attached);
4877
- if (inside) return /* @__PURE__ */ jsx65(Fragment16, { children: card });
4988
+ if (inside) return /* @__PURE__ */ jsx66(Fragment16, { children: card });
4878
4989
  return (
4879
4990
  // At most 480px, so it never runs a column's or a wide box's whole width (Katerina, 29 and 30 Oct).
4880
4991
  /* @__PURE__ */ jsxs45("div", { className: "group/card relative max-w-[480px]", children: [
4881
- /* @__PURE__ */ jsx65(Attached.Provider, { value: true, children: card }),
4882
- onRemove && /* @__PURE__ */ jsx65(
4992
+ /* @__PURE__ */ jsx66(Attached.Provider, { value: true, children: card }),
4993
+ onRemove && /* @__PURE__ */ jsx66(
4883
4994
  RemoveBadge,
4884
4995
  {
4885
4996
  label: "Remove",
@@ -4893,39 +5004,39 @@ function AttachedCard({ link, children, onRemove }) {
4893
5004
 
4894
5005
  // src/PartCard.tsx
4895
5006
  import { useContext as useContext11 } from "react";
4896
- import { jsx as jsx66, jsxs as jsxs46 } from "react/jsx-runtime";
4897
- function PartCard({ state = "ready", kind, heading, href, partKey, noun, openIn, children, action, maxHeight }) {
5007
+ import { jsx as jsx67, jsxs as jsxs46 } from "react/jsx-runtime";
5008
+ function PartCard({ state = "ready", kind, heading, href, partKey, noun, openIn, children, maxHeight }) {
4898
5009
  const word = noun ?? kindNounOf({ kind }) ?? "File";
4899
5010
  const boxed = useContext11(inTheBox);
4900
- if (state === "loading") return /* @__PURE__ */ jsx66(LinkCardLoading, { kind, shape: { summary: true, rows: 0, footer: "none" } });
5011
+ if (state === "loading") return /* @__PURE__ */ jsx67(LinkCardLoading, { kind, shape: { summary: true, rows: 0, footer: "none" } });
4901
5012
  if (state === "unavailable" || state === "deleted") {
4902
- return /* @__PURE__ */ jsx66(LinkUnavailable, { kind, noun: `A part of this ${word.toLowerCase()}`, openIn, deleted: state === "deleted", card: true });
5013
+ return /* @__PURE__ */ jsx67(LinkUnavailable, { kind, noun: `A part of this ${word.toLowerCase()}`, openIn, deleted: state === "deleted", card: true });
4903
5014
  }
4904
- if (state === "detached") return /* @__PURE__ */ jsx66(UnavailableRow, { kind, words: "This part was deleted", card: true });
4905
- if (state === "unaddressable") return /* @__PURE__ */ jsx66(UnavailableRow, { kind, words: "This part can't be shown", href, card: true });
5015
+ if (state === "detached") return /* @__PURE__ */ jsx67(UnavailableRow, { kind, words: "This part was deleted", card: true });
5016
+ if (state === "unaddressable") return /* @__PURE__ */ jsx67(UnavailableRow, { kind, words: "This part can't be shown", href, card: true });
4906
5017
  return (
4907
5018
  // At most 480px wide, in a box too; in a box being written in, on the files' fill as the card beside it is.
4908
5019
  /* @__PURE__ */ jsxs46(Card, { fill: boxed ? "elevated" : "inset", className: "flex max-w-[480px] flex-col gap-3 p-3", children: [
4909
5020
  /* @__PURE__ */ jsxs46("div", { className: "flex items-center gap-3", children: [
4910
- /* @__PURE__ */ jsx66(LinkTile, { kind }),
5021
+ /* @__PURE__ */ jsx67(LinkTile, { kind }),
4911
5022
  /* @__PURE__ */ jsxs46("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
4912
- /* @__PURE__ */ jsx66("span", { className: "block min-w-0 text-body-2-strong text-text-primary", children: href && !boxed ? /* @__PURE__ */ jsx66(Link, { href, variant: "quiet", truncate: true, className: "block", children: heading }) : /* @__PURE__ */ jsx66("span", { className: "block truncate", children: heading }) }),
4913
- /* @__PURE__ */ jsx66("span", { className: "truncate text-caption text-text-secondary", children: partKey ? `A part of ${partKey}` : `A part of this ${word.toLowerCase()}` })
5023
+ /* @__PURE__ */ jsx67("span", { className: "block min-w-0 text-body-2-strong text-text-primary", children: href && !boxed ? /* @__PURE__ */ jsx67(Link, { href, variant: "quiet", truncate: true, className: "block", children: heading }) : /* @__PURE__ */ jsx67("span", { className: "block truncate", children: heading }) }),
5024
+ /* @__PURE__ */ jsx67("span", { className: "truncate text-caption text-text-secondary", children: partKey ? `A part of ${partKey}` : `A part of this ${word.toLowerCase()}` })
4914
5025
  ] })
4915
5026
  ] }),
4916
- action || maxHeight !== void 0 ? /* @__PURE__ */ jsx66(ShowMore, { maxHeight: maxHeight ?? Infinity, surface: boxed ? "elevated" : "inset", action, contentClassName: QUOTE_BAR_CLASSES, children }) : /* @__PURE__ */ jsx66("div", { className: QUOTE_BAR_CLASSES, children })
5027
+ maxHeight !== void 0 ? /* @__PURE__ */ jsx67(ShowMore, { maxHeight, contentClassName: QUOTE_BAR_CLASSES, children }) : /* @__PURE__ */ jsx67("div", { className: QUOTE_BAR_CLASSES, children })
4917
5028
  ] })
4918
5029
  );
4919
5030
  }
4920
5031
 
4921
5032
  // src/Rail.tsx
4922
- import { jsx as jsx67 } from "react/jsx-runtime";
5033
+ import { jsx as jsx68 } from "react/jsx-runtime";
4923
5034
  function Rail({ "aria-label": ariaLabel = "Navigation", children, className }) {
4924
- return /* @__PURE__ */ jsx67("nav", { "aria-label": ariaLabel, className: cn("flex w-16 shrink-0 flex-col items-start gap-2 px-2 py-3", className), children });
5035
+ return /* @__PURE__ */ jsx68("nav", { "aria-label": ariaLabel, className: cn("flex w-16 shrink-0 flex-col items-start gap-2 px-2 py-3", className), children });
4925
5036
  }
4926
5037
 
4927
5038
  // src/RailItem.tsx
4928
- import { jsx as jsx68, jsxs as jsxs47 } from "react/jsx-runtime";
5039
+ import { jsx as jsx69, jsxs as jsxs47 } from "react/jsx-runtime";
4929
5040
  function RailItem({ href, icon, label, active = false, className, onClick, ...props }) {
4930
5041
  const inApp = useInAppClick(href, onClick);
4931
5042
  return /* @__PURE__ */ jsxs47(
@@ -4937,14 +5048,14 @@ function RailItem({ href, icon, label, active = false, className, onClick, ...pr
4937
5048
  ...props,
4938
5049
  onClick: inApp,
4939
5050
  children: [
4940
- /* @__PURE__ */ jsx68(
5051
+ /* @__PURE__ */ jsx69(
4941
5052
  "div",
4942
5053
  {
4943
5054
  className: cn(
4944
5055
  "flex items-center justify-center rounded-lg p-2 transition-colors",
4945
5056
  active ? "bg-bg-selected" : "group-hover:bg-bg-hover"
4946
5057
  ),
4947
- children: /* @__PURE__ */ jsx68(
5058
+ children: /* @__PURE__ */ jsx69(
4948
5059
  "span",
4949
5060
  {
4950
5061
  className: cn(
@@ -4956,14 +5067,14 @@ function RailItem({ href, icon, label, active = false, className, onClick, ...pr
4956
5067
  )
4957
5068
  }
4958
5069
  ),
4959
- /* @__PURE__ */ jsx68("span", { className: cn("text-center text-menu", active ? "text-text-primary" : "text-text-secondary"), children: label })
5070
+ /* @__PURE__ */ jsx69("span", { className: cn("text-center text-menu", active ? "text-text-primary" : "text-text-secondary"), children: label })
4960
5071
  ]
4961
5072
  }
4962
5073
  );
4963
5074
  }
4964
5075
 
4965
5076
  // src/Property.tsx
4966
- import { jsx as jsx69, jsxs as jsxs48 } from "react/jsx-runtime";
5077
+ import { jsx as jsx70, jsxs as jsxs48 } from "react/jsx-runtime";
4967
5078
  var VALUE_CLASSES = "contents";
4968
5079
  function Property({ label, layout = "row", children, className }) {
4969
5080
  if (layout === "stacked") {
@@ -4972,34 +5083,34 @@ function Property({ label, layout = "row", children, className }) {
4972
5083
  // Peek's topic-details sections already sit at 12px, Ship's rail was
4973
5084
  // 6px, and unifying means the bigger, calmer one.
4974
5085
  /* @__PURE__ */ jsxs48("dl", { className: cn("flex flex-col gap-3", className), children: [
4975
- /* @__PURE__ */ jsx69("dt", { className: "text-menu uppercase tracking-widest text-text-secondary", children: label }),
4976
- /* @__PURE__ */ jsx69("dd", { className: VALUE_CLASSES, children })
5086
+ /* @__PURE__ */ jsx70("dt", { className: "text-menu uppercase tracking-widest text-text-secondary", children: label }),
5087
+ /* @__PURE__ */ jsx70("dd", { className: VALUE_CLASSES, children })
4977
5088
  ] })
4978
5089
  );
4979
5090
  }
4980
5091
  return /* @__PURE__ */ jsxs48("dl", { className: cn("flex items-center gap-2", className), children: [
4981
- /* @__PURE__ */ jsx69("dt", { className: "w-[68px] shrink-0 text-caption text-text-secondary", children: label }),
4982
- /* @__PURE__ */ jsx69("dd", { className: VALUE_CLASSES, children })
5092
+ /* @__PURE__ */ jsx70("dt", { className: "w-[68px] shrink-0 text-caption text-text-secondary", children: label }),
5093
+ /* @__PURE__ */ jsx70("dd", { className: VALUE_CLASSES, children })
4983
5094
  ] });
4984
5095
  }
4985
5096
 
4986
5097
  // src/Reaction.tsx
4987
5098
  import { Toggle as Toggle2 } from "@base-ui/react/toggle";
4988
- import { jsx as jsx70, jsxs as jsxs49 } from "react/jsx-runtime";
4989
- function Reaction({ emoji, count, pressed = false, className, ...props }) {
5099
+ import { jsx as jsx71, jsxs as jsxs49 } from "react/jsx-runtime";
5100
+ function Reaction({ emoji, count, pressed: pressed2 = false, className, ...props }) {
4990
5101
  return (
4991
5102
  // @estiva-escape(no-copied-look): W1 (Katerina, 24 September: leave alone): a reaction pill shares four words with a field's box by coincidence
4992
5103
  /* @__PURE__ */ jsxs49(
4993
5104
  Toggle2,
4994
5105
  {
4995
- pressed,
5106
+ pressed: pressed2,
4996
5107
  className: cn(
4997
5108
  // Chip's pill at a control's height, so a reaction and a status chip
4998
5109
  // read as the same family — 24px matches Button `small`.
4999
5110
  "inline-flex h-6 min-h-6 items-center justify-center gap-1.5 rounded-full px-2",
5000
5111
  "border transition-colors",
5001
5112
  "disabled:cursor-not-allowed disabled:opacity-50",
5002
- pressed ? (
5113
+ pressed2 ? (
5003
5114
  /* In the ship theme the accent on its own wash measures 2.70:1
5004
5115
  (Finding 4), and the count was the thing that vanished
5005
5116
  (Katerina, 2026-09-08). The number reads in the text colour
@@ -5011,18 +5122,126 @@ function Reaction({ emoji, count, pressed = false, className, ...props }) {
5011
5122
  ),
5012
5123
  ...props,
5013
5124
  children: [
5014
- /* @__PURE__ */ jsx70("span", { "aria-hidden": "true", className: "shrink-0 text-body-1 leading-none", children: emoji }),
5015
- /* @__PURE__ */ jsx70("span", { className: CHIP_TEXT_CLASSES, children: count })
5125
+ /* @__PURE__ */ jsx71("span", { "aria-hidden": "true", className: "shrink-0 text-body-1 leading-none", children: emoji }),
5126
+ /* @__PURE__ */ jsx71("span", { className: CHIP_TEXT_CLASSES, children: count })
5016
5127
  ]
5017
5128
  }
5018
5129
  )
5019
5130
  );
5020
5131
  }
5021
5132
 
5133
+ // src/ConversationActions.tsx
5134
+ import { useState as useState15 } from "react";
5135
+ import { IconCircleCheck as IconCircleCheck2, IconCircleDashed as IconCircleDashed3, IconMessage2 as IconMessage23, IconMoodPlus } from "@tabler/icons-react";
5136
+ import { Fragment as Fragment17, jsx as jsx72, jsxs as jsxs50 } from "react/jsx-runtime";
5137
+ function ConversationActions({ options, onReact, onReply, resolved = false, onResolve, onReopen, onPickerOpenChange, more, className }) {
5138
+ const [picking, setPicking] = useState15(false);
5139
+ const [strip, setStrip] = useState15(null);
5140
+ const setOpen = (open) => {
5141
+ setPicking(open);
5142
+ onPickerOpenChange?.(open);
5143
+ };
5144
+ const resolves = resolved ? onReopen : onResolve;
5145
+ const answers = !!onReact && !!options || !!onReply;
5146
+ return /* @__PURE__ */ jsx72("div", { ref: setStrip, className: cn("inline-flex", className), children: /* @__PURE__ */ jsxs50(Toolbar, { "aria-label": "Actions", children: [
5147
+ onReact && options && /* @__PURE__ */ jsx72(
5148
+ Popover,
5149
+ {
5150
+ side: "top",
5151
+ align: "right",
5152
+ anchor: strip,
5153
+ ariaLabel: "Reactions",
5154
+ className: "w-auto min-w-0",
5155
+ contentClassName: "p-1",
5156
+ open: picking,
5157
+ onOpenChange: setOpen,
5158
+ trigger: /* @__PURE__ */ jsx72(ToolbarButton, { tooltip: "React", "aria-label": "React", children: /* @__PURE__ */ jsx72(IconMoodPlus, { size: 16, stroke: 1.5 }) }),
5159
+ children: /* @__PURE__ */ jsx72(
5160
+ ReactionPicker,
5161
+ {
5162
+ options: [...options],
5163
+ surface: false,
5164
+ onSelect: (emoji) => {
5165
+ setOpen(false);
5166
+ onReact(emoji);
5167
+ }
5168
+ }
5169
+ )
5170
+ }
5171
+ ),
5172
+ onReply && /* @__PURE__ */ jsx72(ToolbarButton, { tooltip: "Reply", "aria-label": "Reply", onClick: onReply, children: /* @__PURE__ */ jsx72(IconMessage23, { size: 16, stroke: 1.5 }) }),
5173
+ resolves && /* @__PURE__ */ jsxs50(Fragment17, { children: [
5174
+ answers && /* @__PURE__ */ jsx72(ToolbarSeparator, {}),
5175
+ resolved ? /* @__PURE__ */ jsx72(ToolbarButton, { tooltip: "Reopen", "aria-label": "Reopen", onClick: onReopen, children: /* @__PURE__ */ jsx72(IconCircleDashed3, { size: 16, stroke: 1.5 }) }) : /* @__PURE__ */ jsx72(ToolbarButton, { variant: "resolve", tooltip: "Resolve", "aria-label": "Resolve", onClick: onResolve, children: /* @__PURE__ */ jsx72(IconCircleCheck2, { size: 16, stroke: 1.5 }) })
5176
+ ] }),
5177
+ more && /* @__PURE__ */ jsxs50(Fragment17, { children: [
5178
+ (answers || resolves) && /* @__PURE__ */ jsx72(ToolbarSeparator, {}),
5179
+ more
5180
+ ] })
5181
+ ] }) });
5182
+ }
5183
+
5184
+ // src/ConversationCard.tsx
5185
+ import { useContext as useContext12, useRef as useRef15, useState as useState19 } from "react";
5186
+ import { IconArrowNarrowRight, IconCircleCheck as IconCircleCheck4, IconDotsVertical as IconDotsVertical4 } from "@tabler/icons-react";
5187
+
5188
+ // src/ConversationMenu.tsx
5189
+ import { IconCircleCheck as IconCircleCheck3, IconCircleDashed as IconCircleDashed4, IconDotsVertical as IconDotsVertical3 } from "@tabler/icons-react";
5190
+ import { jsx as jsx73, jsxs as jsxs51 } from "react/jsx-runtime";
5191
+ function ConversationMenu({ resolved = false, onResolve, onReopen, children, onEdit, onDelete, open, onOpenChange, trigger }) {
5192
+ const resolves = resolved ? onReopen : onResolve;
5193
+ return /* @__PURE__ */ jsxs51(
5194
+ Menu,
5195
+ {
5196
+ trigger: trigger ?? /* @__PURE__ */ jsx73(IconButton, { tooltip: "More actions", "aria-label": "More actions", children: /* @__PURE__ */ jsx73(IconDotsVertical3, { size: 16, stroke: 1.5 }) }),
5197
+ align: "right",
5198
+ open,
5199
+ onOpenChange,
5200
+ className: "w-[244px]",
5201
+ children: [
5202
+ resolves && (resolved ? /* @__PURE__ */ jsx73(MenuItem, { leading: /* @__PURE__ */ jsx73(IconCircleDashed4, { size: 16, stroke: 1.5, className: "text-text-secondary" }), label: "Reopen", onClick: onReopen }) : /* @__PURE__ */ jsx73(MenuItem, { leading: /* @__PURE__ */ jsx73(IconCircleCheck3, { size: 16, stroke: 1.5, className: "text-text-secondary" }), label: "Resolve", onClick: onResolve })),
5203
+ children,
5204
+ (resolves || children) && (onEdit || onDelete) && /* @__PURE__ */ jsx73(MenuSeparator, {}),
5205
+ onEdit && /* @__PURE__ */ jsx73(MenuItem, { label: "Edit", onClick: onEdit }),
5206
+ onDelete && /* @__PURE__ */ jsx73(MenuItem, { label: "Delete", destructive: true, onClick: onDelete })
5207
+ ]
5208
+ }
5209
+ );
5210
+ }
5211
+
5212
+ // src/EditedMarker.tsx
5213
+ import { jsx as jsx74 } from "react/jsx-runtime";
5214
+ function EditedMarker({ edited }) {
5215
+ if (!edited) return null;
5216
+ return /* @__PURE__ */ jsx74(WithTooltip, { label: edited, wrapperClassName: "shrink-0", children: /* @__PURE__ */ jsx74("span", { className: "whitespace-nowrap text-caption text-text-muted", children: "(edited)" }) });
5217
+ }
5218
+
5219
+ // src/MetaText.tsx
5220
+ import { jsx as jsx75 } from "react/jsx-runtime";
5221
+ var TONE_CLASSES2 = {
5222
+ muted: "text-text-muted",
5223
+ secondary: "text-text-secondary",
5224
+ success: "text-success-default"
5225
+ };
5226
+ function MetaText({ children, tone = "muted", size = "caption", className }) {
5227
+ return /* @__PURE__ */ jsx75(
5228
+ "span",
5229
+ {
5230
+ className: cn(
5231
+ size === "chip" ? "text-chip font-normal" : "text-caption",
5232
+ TONE_CLASSES2[tone],
5233
+ TIME_CLASSES,
5234
+ className
5235
+ ),
5236
+ children
5237
+ }
5238
+ );
5239
+ }
5240
+
5022
5241
  // src/ReactionRow.tsx
5023
- import { useState as useState13 } from "react";
5024
- import { IconMoodPlus } from "@tabler/icons-react";
5025
- import { jsx as jsx71, jsxs as jsxs50 } from "react/jsx-runtime";
5242
+ import { useState as useState16 } from "react";
5243
+ import { IconMoodPlus as IconMoodPlus2 } from "@tabler/icons-react";
5244
+ import { jsx as jsx76, jsxs as jsxs52 } from "react/jsx-runtime";
5026
5245
  var NAMED = 8;
5027
5246
  var meaningOf = (options, emoji) => options.find((o) => o.emoji === emoji)?.label ?? emoji;
5028
5247
  function whoReacted(reaction, nameOf, options, viewer) {
@@ -5036,8 +5255,8 @@ function whoReacted(reaction, nameOf, options, viewer) {
5036
5255
  return `${list.charAt(0).toUpperCase()}${list.slice(1)} reacted with ${meaningOf(options, reaction.emoji)}`;
5037
5256
  }
5038
5257
  function AddReactionButton({ options, onPick, className }) {
5039
- const [picking, setPicking] = useState13(false);
5040
- return /* @__PURE__ */ jsx71(
5258
+ const [picking, setPicking] = useState16(false);
5259
+ return /* @__PURE__ */ jsx76(
5041
5260
  Popover,
5042
5261
  {
5043
5262
  open: picking,
@@ -5047,8 +5266,8 @@ function AddReactionButton({ options, onPick, className }) {
5047
5266
  ariaLabel: "Add a reaction",
5048
5267
  contentClassName: "p-1",
5049
5268
  className: cn("w-auto min-w-0", className),
5050
- trigger: /* @__PURE__ */ jsx71(IconButton, { variant: "muted", tooltip: "Add a reaction", "aria-label": "Add a reaction", children: /* @__PURE__ */ jsx71(IconMoodPlus, { size: 16, stroke: 1.5 }) }),
5051
- children: /* @__PURE__ */ jsx71(
5269
+ trigger: /* @__PURE__ */ jsx76(IconButton, { variant: "muted", tooltip: "Add a reaction", "aria-label": "Add a reaction", children: /* @__PURE__ */ jsx76(IconMoodPlus2, { size: 16, stroke: 1.5 }) }),
5270
+ children: /* @__PURE__ */ jsx76(
5052
5271
  ReactionPicker,
5053
5272
  {
5054
5273
  options: [...options],
@@ -5063,10 +5282,10 @@ function AddReactionButton({ options, onPick, className }) {
5063
5282
  );
5064
5283
  }
5065
5284
  function ReactionRow({ reactions, options, nameOf, viewer, onToggle, className }) {
5066
- const shown = reactions.filter((r) => r.by.length > 0);
5067
- if (shown.length === 0) return null;
5068
- return /* @__PURE__ */ jsxs50("div", { "data-reaction-row": true, className: cn("flex flex-wrap items-center gap-1", className), children: [
5069
- shown.map((r) => /* @__PURE__ */ jsx71(WithTooltip, { label: whoReacted(r, nameOf, options, viewer), children: /* @__PURE__ */ jsx71(
5285
+ const shown2 = reactions.filter((r) => r.by.length > 0);
5286
+ if (shown2.length === 0) return null;
5287
+ return /* @__PURE__ */ jsxs52("div", { "data-reaction-row": true, className: cn("flex flex-wrap items-center gap-1", className), children: [
5288
+ shown2.map((r) => /* @__PURE__ */ jsx76(WithTooltip, { label: whoReacted(r, nameOf, options, viewer), children: /* @__PURE__ */ jsx76(
5070
5289
  Reaction,
5071
5290
  {
5072
5291
  emoji: r.emoji,
@@ -5077,16 +5296,709 @@ function ReactionRow({ reactions, options, nameOf, viewer, onToggle, className }
5077
5296
  onClick: () => onToggle?.(r.emoji)
5078
5297
  }
5079
5298
  ) }, r.emoji)),
5080
- onToggle && /* @__PURE__ */ jsx71(AddReactionButton, { options, onPick: onToggle })
5299
+ onToggle && /* @__PURE__ */ jsx76(AddReactionButton, { options, onPick: onToggle })
5081
5300
  ] });
5082
5301
  }
5083
5302
 
5303
+ // src/RepliesRow.tsx
5304
+ import { IconChevronRight as IconChevronRight4, IconMessage2 as IconMessage24 } from "@tabler/icons-react";
5305
+ import { Fragment as Fragment18, jsx as jsx77, jsxs as jsxs53 } from "react/jsx-runtime";
5306
+ var ROW_CLASSES3 = "flex w-full items-center gap-2 pb-1.5 pl-8 pr-2";
5307
+ var OPEN_CLASSES = "border-accent-outline bg-accent-wash";
5308
+ var BOX_CLASSES = "group/replies flex shrink-0 items-center gap-2 rounded-lg border border-transparent px-2 py-1.5 transition-colors hover:border-accent-outline hover:bg-accent-wash";
5309
+ function RepliesRow({ count, faces, last, isNew = false, urgent = false, onOpen, open = false }) {
5310
+ const withFaces = !!faces && faces.length > 0;
5311
+ const label = `${count} ${count === 1 ? "reply" : "replies"}`;
5312
+ const inner = /* @__PURE__ */ jsxs53(Fragment18, { children: [
5313
+ withFaces && /* @__PURE__ */ jsx77("span", { className: "flex shrink-0 items-center", children: /* @__PURE__ */ jsx77(AvatarGroup, { size: 18, members: faces.map((f) => ({ name: f.name, picture: f.picture })) }) }),
5314
+ /* @__PURE__ */ jsx77(
5315
+ IconMessage24,
5316
+ {
5317
+ size: 16,
5318
+ stroke: 1.5,
5319
+ className: cn(
5320
+ "shrink-0 text-text-interactive transition-colors group-hover/replies:text-text-primary",
5321
+ withFaces && "hidden"
5322
+ )
5323
+ }
5324
+ ),
5325
+ /* @__PURE__ */ jsx77("span", { className: "text-chip font-medium text-text-interactive transition-colors group-hover/replies:text-text-primary", children: label }),
5326
+ last && /* @__PURE__ */ jsx77("span", { className: cn("mt-px text-small leading-3 text-text-muted", TIME_CLASSES), children: last }),
5327
+ /* @__PURE__ */ jsx77(
5328
+ IconChevronRight4,
5329
+ {
5330
+ size: 12,
5331
+ stroke: 2,
5332
+ className: cn("transition-all group-hover/replies:text-text-primary", open ? "rotate-90 text-text-primary" : "text-text-muted group-hover/replies:translate-x-0.5")
5333
+ }
5334
+ )
5335
+ ] });
5336
+ const chip = isNew && /* @__PURE__ */ jsxs53(Fragment18, { children: [
5337
+ /* @__PURE__ */ jsx77("span", { className: "h-0.5 w-0.5 shrink-0 rounded-full bg-text-muted" }),
5338
+ /* @__PURE__ */ jsx77(Chip, { type: urgent ? "warning" : "brand", label: "1 new" })
5339
+ ] });
5340
+ if (!onOpen) {
5341
+ return /* @__PURE__ */ jsxs53("div", { className: ROW_CLASSES3, children: [
5342
+ /* @__PURE__ */ jsx77("div", { className: BOX_CLASSES, children: inner }),
5343
+ chip
5344
+ ] });
5345
+ }
5346
+ return (
5347
+ // @estiva-escape(no-raw-element): the row is the thread's way in, Peek's replies row; no kit button takes a face stack, a count, a time and the new chip in one press
5348
+ /* @__PURE__ */ jsxs53("button", { type: "button", className: cn(ROW_CLASSES3, "cursor-pointer text-left"), onClick: onOpen, "aria-expanded": open, "aria-label": `${label}, ${open ? "close" : "open"} the thread`, "data-interactive": true, children: [
5349
+ /* @__PURE__ */ jsx77("span", { className: cn(BOX_CLASSES, open && OPEN_CLASSES), children: inner }),
5350
+ chip
5351
+ ] })
5352
+ );
5353
+ }
5354
+
5355
+ // src/ResolveDialog.tsx
5356
+ import { useId as useId5, useState as useState17 } from "react";
5357
+ import { Fragment as Fragment19, jsx as jsx78, jsxs as jsxs54 } from "react/jsx-runtime";
5358
+ function ResolveDialog({ onResolve, onCancel, refused }) {
5359
+ const [note, setNote] = useState17("");
5360
+ const [busy, setBusy] = useState17(false);
5361
+ const formId = useId5();
5362
+ return /* @__PURE__ */ jsx78(
5363
+ DialogShell,
5364
+ {
5365
+ title: "Resolve",
5366
+ onClose: onCancel,
5367
+ footer: /* @__PURE__ */ jsxs54(Fragment19, { children: [
5368
+ /* @__PURE__ */ jsx78(Button, { variant: "muted", onClick: onCancel, children: "Cancel" }),
5369
+ /* @__PURE__ */ jsx78(Button, { variant: "resolve", type: "submit", form: formId, disabled: busy, children: "Resolve" })
5370
+ ] }),
5371
+ children: /* @__PURE__ */ jsx78(
5372
+ Form,
5373
+ {
5374
+ id: formId,
5375
+ busy,
5376
+ onSubmit: async () => {
5377
+ setBusy(true);
5378
+ try {
5379
+ await onResolve(note);
5380
+ } finally {
5381
+ setBusy(false);
5382
+ }
5383
+ },
5384
+ children: /* @__PURE__ */ jsx78(Field, { label: "Resolution message (optional)", error: refused, children: /* @__PURE__ */ jsx78(Textarea, { autoFocus: true, value: note, onChange: (e) => setNote(e.target.value), placeholder: "Summarize the outcome or decision...", className: "h-[109px]" }) })
5385
+ }
5386
+ )
5387
+ }
5388
+ );
5389
+ }
5390
+
5391
+ // src/threadCard.ts
5392
+ import { createContext as createContext9, useLayoutEffect as useLayoutEffect6, useState as useState18 } from "react";
5393
+ var InThreadCard = createContext9(false);
5394
+ var InConversationItem = createContext9(null);
5395
+ var caretOnOpen = createContext9(0);
5396
+ var LineByLayout = createContext9(false);
5397
+ var FACE_GAP = 4;
5398
+ function useFaceLine(root, active, toDot = false) {
5399
+ const [line, setLine] = useState18(null);
5400
+ useLayoutEffect6(() => {
5401
+ const el = root.current;
5402
+ if (!active || !el) {
5403
+ setLine(null);
5404
+ return;
5405
+ }
5406
+ const measure = () => {
5407
+ const face = el.querySelector("[data-comment-body] [data-face]");
5408
+ const target = toDot ? el.querySelector("[data-dot]") : el.querySelector("[data-thread-replies]") ?? el.querySelector("[data-comment-body]");
5409
+ if (!face || !target) {
5410
+ setLine(null);
5411
+ return;
5412
+ }
5413
+ const box = el.getBoundingClientRect();
5414
+ const origin = box.top + el.clientTop;
5415
+ const to = target.getBoundingClientRect();
5416
+ const top = face.getBoundingClientRect().bottom - origin + FACE_GAP;
5417
+ const bottom = (toDot ? to.top + to.height / 2 : to.bottom) - origin;
5418
+ const next = { top, height: Math.max(0, bottom - top) };
5419
+ setLine((was) => was && Math.abs(was.top - next.top) < 0.01 && Math.abs(was.height - next.height) < 0.01 ? was : next);
5420
+ };
5421
+ measure();
5422
+ if (typeof ResizeObserver === "undefined") return;
5423
+ const watch = new ResizeObserver(measure);
5424
+ watch.observe(el);
5425
+ return () => watch.disconnect();
5426
+ }, [root, active, toDot]);
5427
+ return line;
5428
+ }
5429
+
5430
+ // src/ConversationCard.tsx
5431
+ import { Fragment as Fragment20, jsx as jsx79, jsxs as jsxs55 } from "react/jsx-runtime";
5432
+ function Head({ author, time, timeHref, edited, isNew, urgent, meta }) {
5433
+ return /* @__PURE__ */ jsxs55("div", { className: "flex w-full items-center gap-2", children: [
5434
+ /* @__PURE__ */ jsxs55("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
5435
+ /* @__PURE__ */ jsx79("span", { "data-face": true, className: "relative flex shrink-0", children: /* @__PURE__ */ jsx79(Avatar, { size: 24, src: author.picture, alt: author.name }) }),
5436
+ /* @__PURE__ */ jsx79("span", { className: "min-w-0 truncate text-body-2-strong text-text-primary", children: author.name }),
5437
+ timeHref ? /* @__PURE__ */ jsx79(WithTooltip, { label: "Link to this", wrapperClassName: "shrink-0", children: /* @__PURE__ */ jsx79(MetaText, { className: "contents", children: /* @__PURE__ */ jsx79(Link, { href: timeHref, variant: "quiet", "data-interactive": true, children: time }) }) }) : /* @__PURE__ */ jsx79(MetaText, { className: "shrink-0", children: time }),
5438
+ /* @__PURE__ */ jsx79(EditedMarker, { edited }),
5439
+ meta
5440
+ ] }),
5441
+ isNew && (urgent ? /* @__PURE__ */ jsx79(UrgentMark, {}) : /* @__PURE__ */ jsx79(UnreadDot, {}))
5442
+ ] });
5443
+ }
5444
+ function attentionOf(fresh, urgent, inThreadCard) {
5445
+ if (!fresh || inThreadCard) return void 0;
5446
+ return urgent ? "warning" : "accent";
5447
+ }
5448
+ function EndedLine({ by, note, at }) {
5449
+ return /* @__PURE__ */ jsxs55("div", { "data-resolved": "line", className: "relative flex items-start py-1", children: [
5450
+ /* @__PURE__ */ jsx79("span", { className: "flex h-[17px] w-10 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx79("span", { "data-dot": true, className: "relative z-10 flex size-2 items-center justify-center rounded-full bg-bg-surface", children: /* @__PURE__ */ jsx79("span", { className: "size-1 rounded-full bg-success-default" }) }) }),
5451
+ /* @__PURE__ */ jsxs55("p", { className: "min-w-0 text-h5 leading-snug", children: [
5452
+ /* @__PURE__ */ jsx79("span", { className: "whitespace-nowrap text-text-primary", children: by }),
5453
+ /* @__PURE__ */ jsx79(IconArrowNarrowRight, { size: 12, stroke: 1.5, className: "mx-1.5 -mt-px inline shrink-0 text-text-primary" }),
5454
+ /* @__PURE__ */ jsx79("span", { className: "text-text-secondary", children: note }),
5455
+ at && /* @__PURE__ */ jsxs55(MetaText, { size: "chip", children: [
5456
+ " \xB7 ",
5457
+ at
5458
+ ] })
5459
+ ] })
5460
+ ] });
5461
+ }
5462
+ function ResolvedCheck({ by, note, at }) {
5463
+ const said = `Resolved by ${by}${at ? `, ${at}` : ""}${note ? `: ${note}` : ""}`;
5464
+ return /* @__PURE__ */ jsx79(WithTooltip, { label: said, wrapperClassName: "flex shrink-0", children: /* @__PURE__ */ jsxs55("span", { className: "flex items-center gap-1 text-caption text-success-default", children: [
5465
+ /* @__PURE__ */ jsx79(IconCircleCheck4, { size: 14, stroke: 1.5 }),
5466
+ "Resolved"
5467
+ ] }) });
5468
+ }
5469
+ var FOLDED_WORDS_CLASSES = "[&>div]:line-clamp-1 [&>div]:max-h-[1lh] [&>div>*:not(p):not(ul):not(ol):not(blockquote):not(pre):not(div:only-child)]:hidden [&>div>div:only-child>*:not(p):not(ul):not(ol):not(blockquote):not(pre)]:hidden";
5470
+ function Words({ children, oneLine = false }) {
5471
+ return /* @__PURE__ */ jsx79("div", { className: cn("relative w-full break-words pb-2 pl-8 pr-2 pt-1", oneLine && FOLDED_WORDS_CLASSES), children: /* @__PURE__ */ jsx79("div", { className: "flex flex-col gap-2 text-body-2 text-text-secondary", children }) });
5472
+ }
5473
+ function Reactions({ reactions, refused, readOnly }) {
5474
+ if ((!reactions || reactions.reactions.length === 0) && !refused) return null;
5475
+ return /* @__PURE__ */ jsxs55("div", { className: "relative flex w-full flex-col gap-1 pb-2 pl-8 pt-1", children: [
5476
+ reactions && /* @__PURE__ */ jsx79(ReactionRow, { ...reactions, onToggle: readOnly ? void 0 : reactions.onToggle }),
5477
+ refused && /* @__PURE__ */ jsxs55(FieldLine, { tone: "error", children: [
5478
+ "Not reacted: ",
5479
+ refused,
5480
+ "."
5481
+ ] })
5482
+ ] });
5483
+ }
5484
+ function Editing({ author, children }) {
5485
+ return /* @__PURE__ */ jsx79("div", { className: "p-2", children: /* @__PURE__ */ jsxs55("div", { className: "flex items-start gap-2", children: [
5486
+ /* @__PURE__ */ jsx79(Avatar, { size: 24, src: author.picture, alt: author.name, className: "mt-1 shrink-0" }),
5487
+ /* @__PURE__ */ jsx79("div", { className: "min-w-0 flex-1", children })
5488
+ ] }) });
5489
+ }
5490
+ function pressed(e, press) {
5491
+ const target = e.target;
5492
+ if (!e.currentTarget.contains(target)) return;
5493
+ if (e.detail > 1) return;
5494
+ const picked = typeof window === "undefined" ? null : window.getSelection();
5495
+ if (picked && !picked.isCollapsed && picked.anchorNode && e.currentTarget.contains(picked.anchorNode)) return;
5496
+ if (target.closest('button, a, input, textarea, [contenteditable="true"], [role="button"], [role="toolbar"], [data-interactive]')) return;
5497
+ press();
5498
+ }
5499
+ function stillHere(root) {
5500
+ if (!root) return false;
5501
+ try {
5502
+ return root.matches(":hover") || root.querySelector(":focus-visible") !== null;
5503
+ } catch {
5504
+ return root.matches(":hover");
5505
+ }
5506
+ }
5507
+ function useEditing(editing, onEditingChange) {
5508
+ const [own, setOwn] = useState19(false);
5509
+ const now = editing ?? own;
5510
+ const set = (next) => {
5511
+ if (editing === void 0) setOwn(next);
5512
+ onEditingChange?.(next);
5513
+ };
5514
+ return [now, set];
5515
+ }
5516
+ function ConversationCard(props) {
5517
+ const { author, about, files, reactions, reactionRefused, isNew = false, urgent = false, own = false, editor, deleted = false, replies, onReply, resolved, onResolve, resolveRefused, onReopen, selected, onClick, onDelete, deleteNote, menu, className, children } = props;
5518
+ const readOnly = (props.readOnly ?? false) || deleted;
5519
+ const inThreadCard = useContext12(InThreadCard);
5520
+ const item = useContext12(InConversationItem);
5521
+ const [hovered, setHovered] = useState19(false);
5522
+ const [menuOpen, setMenuOpen] = useState19(false);
5523
+ const [picking, setPicking] = useState19(false);
5524
+ const [resolving, setResolving] = useState19(false);
5525
+ const [deleting, setDeleting] = useState19(false);
5526
+ const [editing, setEditing] = useEditing(props.editing, props.onEditingChange);
5527
+ const isEditing = editing && !readOnly && !!editor;
5528
+ const overlay = menuOpen || picking || resolving || deleting;
5529
+ const resolves = resolved ? onReopen : onResolve;
5530
+ const lined = inThreadCard;
5531
+ const toDot = !lined && !!resolved?.note && !isEditing;
5532
+ const root = useRef15(null);
5533
+ const dotLine = useFaceLine(root, toDot, true);
5534
+ const settle = () => requestAnimationFrame(() => setHovered(stillHere(root.current)));
5535
+ const offersMenu = !!resolves || !!menu || own && (!!editor || !!onDelete);
5536
+ const showStrip = hovered && !isEditing && !readOnly;
5537
+ const react = reactions?.onToggle;
5538
+ const press = onClick ?? (readOnly && !replies?.count ? void 0 : item?.toggle);
5539
+ const reply = onReply ?? item?.show;
5540
+ const marked = selected ?? (item && !item.under ? item.open : void 0);
5541
+ const under = !!item?.under;
5542
+ const closed = !inThreadCard && !marked;
5543
+ const folded = !!resolved && closed;
5544
+ const repliesRow = replies && replies.count > 0 && /* @__PURE__ */ jsx79(RepliesRow, { ...replies, onOpen: replies.onOpen ?? (under ? item?.toggle : void 0), open: replies.open ?? (under && !!item?.open), urgent });
5545
+ const aboutShown = !!about && !deleted;
5546
+ return /* @__PURE__ */ jsxs55(Fragment20, { children: [
5547
+ /* @__PURE__ */ jsxs55(
5548
+ Card,
5549
+ {
5550
+ ref: root,
5551
+ fill: "none",
5552
+ hover: readOnly && !press ? "none" : "fill",
5553
+ quietUntilHover: true,
5554
+ hovered,
5555
+ selected: marked,
5556
+ active: isEditing,
5557
+ attention: attentionOf(isNew || !!replies?.isNew, urgent, inThreadCard),
5558
+ className: cn("relative", className),
5559
+ onClick: press && !isEditing && !overlay ? (e) => pressed(e, press) : void 0,
5560
+ onMouseEnter: () => setHovered(true),
5561
+ onMouseLeave: () => {
5562
+ if (picking || menuOpen) return;
5563
+ setHovered(false);
5564
+ },
5565
+ onFocus: () => setHovered(true),
5566
+ onBlur: (e) => {
5567
+ if (picking || menuOpen || e.currentTarget.contains(e.relatedTarget)) return;
5568
+ setHovered(false);
5569
+ },
5570
+ children: [
5571
+ isEditing ? /* @__PURE__ */ jsx79(Editing, { author, children: editor(() => setEditing(false)) }) : /* @__PURE__ */ jsxs55("div", { "data-comment-body": true, className: "flex flex-col items-start px-2 pt-2", children: [
5572
+ deleted ? /* @__PURE__ */ jsx79("p", { className: "w-full pb-2 pl-8 pr-2 text-caption italic text-text-muted", children: "This comment was deleted." }) : /* @__PURE__ */ jsxs55(Fragment20, { children: [
5573
+ /* @__PURE__ */ jsx79(
5574
+ Head,
5575
+ {
5576
+ author,
5577
+ time: props.time,
5578
+ timeHref: props.timeHref,
5579
+ edited: props.edited,
5580
+ isNew,
5581
+ urgent,
5582
+ meta: resolved && /* @__PURE__ */ jsx79(ResolvedCheck, { by: resolved.by, note: resolved.note, at: resolved.at })
5583
+ }
5584
+ ),
5585
+ aboutShown && // Under the name, above the words (Katerina, 1 November).
5586
+ /* @__PURE__ */ jsx79("div", { className: "relative w-full pl-8 pr-2 pt-0.5", children: about }),
5587
+ /* @__PURE__ */ jsx79(Words, { oneLine: folded, children })
5588
+ ] }),
5589
+ !deleted && files && !folded && /* @__PURE__ */ jsx79("div", { className: "relative flex w-full flex-wrap items-start gap-2 pb-2 pl-8 pr-2", children: files }),
5590
+ !folded && /* @__PURE__ */ jsx79(Reactions, { reactions, refused: reactionRefused, readOnly }),
5591
+ resolved?.note && // Who resolved it and the note, above the way into the replies; the check by the time says "Resolved" (Katerina, 1 November).
5592
+ /* @__PURE__ */ jsx79("div", { className: "relative w-full pb-1", children: /* @__PURE__ */ jsx79("div", { className: "-ml-2 w-[calc(100%+8px)]", children: /* @__PURE__ */ jsx79(EndedLine, { by: resolved.by, note: resolved.note, at: resolved.at }) }) }),
5593
+ repliesRow && /* @__PURE__ */ jsx79("div", { className: "relative w-full", children: repliesRow })
5594
+ ] }),
5595
+ dotLine && // One bar from the face to the dot, measured (useFaceLine): 2px, centred under the 24px face, 8px in.
5596
+ // Its top and height come from the measure: where the face ends and the dot stands are not known ahead.
5597
+ /* @__PURE__ */ jsx79("span", { "aria-hidden": true, className: "pointer-events-none absolute left-[19px] w-0.5 bg-border-default", style: { top: dotLine.top, height: dotLine.height } }),
5598
+ showStrip && /* @__PURE__ */ jsx79("div", { className: "absolute right-1 top-1 z-10", children: /* @__PURE__ */ jsx79(
5599
+ ConversationActions,
5600
+ {
5601
+ options: reactions?.options,
5602
+ onReact: react,
5603
+ onPickerOpenChange: (open) => {
5604
+ setPicking(open);
5605
+ if (!open) settle();
5606
+ },
5607
+ onReply: reply,
5608
+ resolved: !!resolved,
5609
+ onResolve: onResolve && (() => setResolving(true)),
5610
+ onReopen,
5611
+ more: offersMenu && /* @__PURE__ */ jsx79(
5612
+ ConversationMenu,
5613
+ {
5614
+ trigger: /* @__PURE__ */ jsx79(ToolbarButton, { tooltip: "More actions", "aria-label": "More actions", children: /* @__PURE__ */ jsx79(IconDotsVertical4, { size: 16, stroke: 1.5 }) }),
5615
+ open: menuOpen,
5616
+ onOpenChange: (open) => {
5617
+ setMenuOpen(open);
5618
+ if (!open) settle();
5619
+ },
5620
+ resolved: !!resolved,
5621
+ onResolve: onResolve && (() => setResolving(true)),
5622
+ onReopen,
5623
+ onEdit: own && editor ? () => setEditing(true) : void 0,
5624
+ onDelete: own && onDelete ? () => setDeleting(true) : void 0,
5625
+ children: menu
5626
+ }
5627
+ )
5628
+ }
5629
+ ) })
5630
+ ]
5631
+ }
5632
+ ),
5633
+ deleting && onDelete && /* @__PURE__ */ jsxs55(ConfirmDialog, { title: "Delete this comment?", confirmLabel: "Delete comment", destructive: true, onConfirm: onDelete, onClose: () => setDeleting(false), children: [
5634
+ /* @__PURE__ */ jsx79("p", { children: deleteNote ?? "It is deleted for everyone." }),
5635
+ replies && replies.count > 0 && /* @__PURE__ */ jsxs55("p", { children: [
5636
+ "Its ",
5637
+ replies.count === 1 ? "reply stays" : `${replies.count} replies stay`,
5638
+ "."
5639
+ ] })
5640
+ ] }),
5641
+ resolving && onResolve && /* @__PURE__ */ jsx79(
5642
+ ResolveDialog,
5643
+ {
5644
+ refused: resolveRefused,
5645
+ onCancel: () => setResolving(false),
5646
+ onResolve: async (note) => {
5647
+ const ok = await onResolve(note);
5648
+ if (ok !== false) setResolving(false);
5649
+ return ok;
5650
+ }
5651
+ }
5652
+ )
5653
+ ] });
5654
+ }
5655
+ function ReplyCard(props) {
5656
+ const { author, about, files, reactions, reactionRefused, isNew = false, urgent = false, own = false, editor, onDelete, deleteNote, menu, className, children } = props;
5657
+ const readOnly = props.readOnly ?? false;
5658
+ const [hovered, setHovered] = useState19(false);
5659
+ const [menuOpen, setMenuOpen] = useState19(false);
5660
+ const [picking, setPicking] = useState19(false);
5661
+ const [deleting, setDeleting] = useState19(false);
5662
+ const [editing, setEditing] = useEditing(props.editing, props.onEditingChange);
5663
+ const isEditing = editing && !readOnly && !!editor;
5664
+ const offersMenu = !!menu || own && (!!editor || !!onDelete);
5665
+ const showStrip = hovered && !isEditing && !readOnly && (offersMenu || !!reactions?.onToggle);
5666
+ const root = useRef15(null);
5667
+ const settle = () => requestAnimationFrame(() => setHovered(stillHere(root.current)));
5668
+ return /* @__PURE__ */ jsxs55(Fragment20, { children: [
5669
+ /* @__PURE__ */ jsxs55(
5670
+ Card,
5671
+ {
5672
+ ref: root,
5673
+ fill: "none",
5674
+ hover: readOnly ? "none" : "fill",
5675
+ quietUntilHover: true,
5676
+ hovered,
5677
+ active: isEditing,
5678
+ attention: attentionOf(isNew, urgent, false),
5679
+ className: cn("relative", className),
5680
+ onMouseEnter: () => setHovered(true),
5681
+ onMouseLeave: () => {
5682
+ if (picking || menuOpen) return;
5683
+ setHovered(false);
5684
+ },
5685
+ onFocus: () => setHovered(true),
5686
+ onBlur: (e) => {
5687
+ if (picking || menuOpen || e.currentTarget.contains(e.relatedTarget)) return;
5688
+ setHovered(false);
5689
+ },
5690
+ children: [
5691
+ isEditing ? /* @__PURE__ */ jsx79(Editing, { author, children: editor(() => setEditing(false)) }) : /* @__PURE__ */ jsxs55("div", { className: "flex flex-col items-start px-2 pt-2", children: [
5692
+ /* @__PURE__ */ jsx79(Head, { author, time: props.time, timeHref: props.timeHref, edited: props.edited, isNew, urgent }),
5693
+ about && /* @__PURE__ */ jsx79("div", { className: "w-full pl-8 pr-2 pt-0.5", children: about }),
5694
+ /* @__PURE__ */ jsx79(Words, { children }),
5695
+ files && /* @__PURE__ */ jsx79("div", { className: "flex w-full flex-wrap items-start gap-2 pb-2 pl-8 pr-2", children: files }),
5696
+ /* @__PURE__ */ jsx79(Reactions, { reactions, refused: reactionRefused, readOnly })
5697
+ ] }),
5698
+ showStrip && /* @__PURE__ */ jsx79(
5699
+ ConversationActions,
5700
+ {
5701
+ className: "absolute right-1 top-1 z-10",
5702
+ options: reactions?.options,
5703
+ onReact: reactions?.onToggle,
5704
+ onPickerOpenChange: (open) => {
5705
+ setPicking(open);
5706
+ if (!open) settle();
5707
+ },
5708
+ more: offersMenu && /* @__PURE__ */ jsx79(
5709
+ ConversationMenu,
5710
+ {
5711
+ trigger: /* @__PURE__ */ jsx79(ToolbarButton, { tooltip: "More actions", "aria-label": "More actions", children: /* @__PURE__ */ jsx79(IconDotsVertical4, { size: 16, stroke: 1.5 }) }),
5712
+ open: menuOpen,
5713
+ onOpenChange: (next) => {
5714
+ setMenuOpen(next);
5715
+ if (!next) settle();
5716
+ },
5717
+ onEdit: own && editor ? () => setEditing(true) : void 0,
5718
+ onDelete: own && onDelete ? () => setDeleting(true) : void 0,
5719
+ children: menu
5720
+ }
5721
+ )
5722
+ }
5723
+ )
5724
+ ]
5725
+ }
5726
+ ),
5727
+ deleting && onDelete && /* @__PURE__ */ jsx79(ConfirmDialog, { title: "Delete this reply?", confirmLabel: "Delete reply", destructive: true, onConfirm: onDelete, onClose: () => setDeleting(false), children: /* @__PURE__ */ jsx79("p", { children: deleteNote ?? "It is deleted for everyone." }) })
5728
+ ] });
5729
+ }
5730
+
5731
+ // src/ConversationLayout.tsx
5732
+ import { useEffect as useEffect10, useLayoutEffect as useLayoutEffect7, useRef as useRef16, useState as useState20 } from "react";
5733
+
5734
+ // src/Panel.tsx
5735
+ import { jsx as jsx80, jsxs as jsxs56 } from "react/jsx-runtime";
5736
+ function Frame({ title, chevron = false, actions, header, children, footer, bodyClassName, bodyRef, onBodyScroll, className, broken = false }) {
5737
+ return /* @__PURE__ */ jsxs56("div", { className: cn("flex h-full min-h-0 flex-1 flex-col", className), children: [
5738
+ header ?? /* @__PURE__ */ jsx80(ContainerHeader, { title, chevron, actions }),
5739
+ broken ? (
5740
+ // The message takes the room the body had and centres itself in it.
5741
+ /* @__PURE__ */ jsx80("div", { className: "flex min-h-0 flex-1 flex-col px-4", children })
5742
+ ) : /* @__PURE__ */ jsx80(ScrollArea, { className: "min-h-0 flex-1", contentClassName: bodyClassName, viewportRef: bodyRef, onScroll: onBodyScroll, children }),
5743
+ !broken && footer && /* @__PURE__ */ jsx80("div", { className: "shrink-0", children: footer })
5744
+ ] });
5745
+ }
5746
+ function Panel(props) {
5747
+ return /* @__PURE__ */ jsx80(
5748
+ ErrorBoundary,
5749
+ {
5750
+ label: "panel",
5751
+ frame: (message) => (
5752
+ // Only the name comes back with the message: the actions and the footer may be what threw.
5753
+ /* @__PURE__ */ jsx80(Frame, { title: props.title, chevron: props.chevron, className: props.className, broken: true, children: message })
5754
+ ),
5755
+ children: /* @__PURE__ */ jsx80(Frame, { ...props })
5756
+ }
5757
+ );
5758
+ }
5759
+
5760
+ // src/ConversationLayout.tsx
5761
+ import { Fragment as Fragment21, jsx as jsx81, jsxs as jsxs57 } from "react/jsx-runtime";
5762
+ function List({ items, open, under, above, loading, empty, change, caret }) {
5763
+ if (loading) return /* @__PURE__ */ jsx81(SkeletonConversation, {});
5764
+ if (items.length === 0) return /* @__PURE__ */ jsx81(EmptyState, { scope: "section", message: empty });
5765
+ const stateOf = (item) => change && item.thread ? {
5766
+ under,
5767
+ open: open === item.id,
5768
+ toggle: () => change(item.id, under && open === item.id ? void 0 : item.id),
5769
+ show: () => change(item.id, item.id, true)
5770
+ } : null;
5771
+ const draw2 = (item) => {
5772
+ if (!under) {
5773
+ return /* @__PURE__ */ jsx81("div", { "data-conversation-item": item.id, className: "flex flex-col", children: /* @__PURE__ */ jsx81(InConversationItem.Provider, { value: stateOf(item), children: item.card }) }, item.id);
5774
+ }
5775
+ return /* @__PURE__ */ jsx81(UnderItem, { item, isOpen: open === item.id && !!item.thread, state: stateOf(item), caret }, item.id);
5776
+ };
5777
+ if (!under) {
5778
+ return /* @__PURE__ */ jsxs57(Fragment21, { children: [
5779
+ above,
5780
+ items.map(draw2)
5781
+ ] });
5782
+ }
5783
+ const resolved = items.filter((item) => item.resolved);
5784
+ const gone = items.filter((item) => item.gone && !item.resolved);
5785
+ const group = (title, list) => list.length > 0 && /* @__PURE__ */ jsx81(
5786
+ CollapsibleSection,
5787
+ {
5788
+ title,
5789
+ trailing: /* @__PURE__ */ jsx81(Chip, { type: "neutral", label: String(list.length) }),
5790
+ defaultOpen: false,
5791
+ openFor: list.some((item) => item.id === open) ? open : void 0,
5792
+ className: "shrink-0",
5793
+ contentClassName: "flex flex-col gap-2",
5794
+ children: list.map(draw2)
5795
+ }
5796
+ );
5797
+ return /* @__PURE__ */ jsxs57(Fragment21, { children: [
5798
+ above,
5799
+ items.filter((item) => !item.resolved && !item.gone).map(draw2),
5800
+ group("On deleted blocks", gone),
5801
+ group("Resolved", resolved)
5802
+ ] });
5803
+ }
5804
+ function UnderItem({ item, isOpen, state, caret }) {
5805
+ const root = useRef16(null);
5806
+ const line = useFaceLine(root, isOpen);
5807
+ return /* @__PURE__ */ jsxs57(
5808
+ Card,
5809
+ {
5810
+ ref: root,
5811
+ "data-conversation-item": item.id,
5812
+ "data-open": isOpen || void 0,
5813
+ fill: "none",
5814
+ hover: "hairline",
5815
+ hovered: isOpen,
5816
+ quietUntilHover: !isOpen,
5817
+ className: cn("relative flex flex-col", isOpen && "pb-2"),
5818
+ children: [
5819
+ /* @__PURE__ */ jsx81(InConversationItem.Provider, { value: state, children: /* @__PURE__ */ jsx81(InThreadCard.Provider, { value: isOpen, children: /* @__PURE__ */ jsxs57(LineByLayout.Provider, { value: true, children: [
5820
+ /* @__PURE__ */ jsx81("div", { className: "-m-px flex flex-col", children: item.card }),
5821
+ isOpen && /* @__PURE__ */ jsx81(caretOnOpen.Provider, { value: caret, children: item.thread })
5822
+ ] }) }) }),
5823
+ line && // The face's line, one bar, last so it stands over a hovered card's fill; 19px in, centred under the face.
5824
+ // Its top and height come from the measure: where the face and the last reply end are not known ahead.
5825
+ /* @__PURE__ */ jsx81("span", { "aria-hidden": true, className: "pointer-events-none absolute left-[19px] w-0.5 bg-border-default", style: { top: line.top, height: line.height } })
5826
+ ]
5827
+ }
5828
+ );
5829
+ }
5830
+ function ConversationLayout({ threads, items, open, onOpenChange, box, above, loading = false, empty = "No comments yet.", header, title = "Comments", actions, className }) {
5831
+ const body = useRef16(null);
5832
+ const pressed2 = useRef16(null);
5833
+ const itemAt = (id) => body.current?.querySelector(`[data-conversation-item="${CSS.escape(id)}"]`) ?? null;
5834
+ const [caret, setCaret] = useState20(0);
5835
+ const change = onOpenChange ? (id, next, reply = false) => {
5836
+ if (next !== void 0 && next === open) {
5837
+ if (reply) setCaret((n) => n + 1);
5838
+ return;
5839
+ }
5840
+ const item = threads === "under" ? itemAt(id) : null;
5841
+ pressed2.current = item ? { id, top: item.getBoundingClientRect().top } : null;
5842
+ onOpenChange(next);
5843
+ } : void 0;
5844
+ useLayoutEffect7(() => {
5845
+ const at = pressed2.current;
5846
+ pressed2.current = null;
5847
+ const item = at && itemAt(at.id);
5848
+ if (!at || !item || !body.current) return;
5849
+ const moved = item.getBoundingClientRect().top - at.top;
5850
+ if (moved !== 0) body.current.scrollTop += moved;
5851
+ }, [open]);
5852
+ const was = useRef16(open);
5853
+ useEffect10(() => {
5854
+ if (open !== void 0 && open !== was.current) setCaret((n) => n + 1);
5855
+ was.current = open;
5856
+ }, [open]);
5857
+ if (threads === "under") {
5858
+ return /* @__PURE__ */ jsx81(Panel, { className: cn("w-[384px] flex-none", className), title, actions, bodyRef: body, bodyClassName: "flex flex-col gap-2 p-3", footer: box && /* @__PURE__ */ jsx81("div", { className: "p-3", children: box }), children: /* @__PURE__ */ jsx81(List, { items, open, under: true, above, loading, empty, change, caret }) });
5859
+ }
5860
+ const opened = items.find((item) => item.id === open)?.thread;
5861
+ return /* @__PURE__ */ jsxs57("div", { className: cn("flex min-h-0 min-w-0 flex-1", className), children: [
5862
+ /* @__PURE__ */ jsxs57("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
5863
+ header,
5864
+ /* @__PURE__ */ jsx81(ScrollArea, { className: "min-h-0 flex-1", contentClassName: "flex flex-col gap-2 p-4", children: /* @__PURE__ */ jsx81(List, { items, open, under: false, above, loading, empty, change, caret }) }),
5865
+ box && /* @__PURE__ */ jsx81("div", { className: "shrink-0 p-3", children: box })
5866
+ ] }),
5867
+ opened && /* @__PURE__ */ jsx81("div", { className: "flex w-[384px] shrink-0 flex-col border-l border-border-subtle", children: /* @__PURE__ */ jsx81(caretOnOpen.Provider, { value: caret, children: opened }) })
5868
+ ] });
5869
+ }
5870
+
5871
+ // src/QuotedLine.tsx
5872
+ import { jsx as jsx82, jsxs as jsxs58 } from "react/jsx-runtime";
5873
+ var SINCE = { reworded: "Changed since", gone: "Deleted from the page" };
5874
+ function QuotedLine({ words, state = "here", label }) {
5875
+ const shown2 = words ?? label ?? "";
5876
+ return /* @__PURE__ */ jsxs58("div", { "data-quoted": words ? state : "part", className: "flex w-full min-w-0 flex-col gap-0.5", children: [
5877
+ /* @__PURE__ */ jsx82(WithTooltip, { label: shown2, wrapperClassName: "flex min-w-0", children: /* @__PURE__ */ jsx82("p", { className: "line-clamp-2 text-caption text-text-secondary", children: /* @__PURE__ */ jsx82("mark", { className: cn("rounded-sm px-0.5 text-text-primary [box-decoration-break:clone]", state === "here" ? "bg-warning-muted" : "bg-bg-inset text-text-secondary", state === "gone" && "line-through"), children: shown2 }) }) }),
5878
+ state !== "here" && /* @__PURE__ */ jsx82("span", { className: "text-caption italic text-text-muted", children: SINCE[state] })
5879
+ ] });
5880
+ }
5881
+
5882
+ // src/ReactionHorizon.tsx
5883
+ import { Fragment as Fragment22, jsxs as jsxs59 } from "react/jsx-runtime";
5884
+ function ReactionHorizon({ limit, omitted, cut = false }) {
5885
+ if (omitted <= 0 && !cut) return null;
5886
+ return /* @__PURE__ */ jsxs59("p", { className: "text-caption text-text-muted", children: [
5887
+ omitted > 0 && /* @__PURE__ */ jsxs59(Fragment22, { children: [
5888
+ "Reactions are shown for the latest ",
5889
+ limit,
5890
+ " comments and replies here. ",
5891
+ omitted,
5892
+ " older ",
5893
+ omitted === 1 ? "one was" : "ones were",
5894
+ " not checked."
5895
+ ] }),
5896
+ omitted > 0 && cut && " ",
5897
+ cut && "Some reactions may be missing."
5898
+ ] });
5899
+ }
5900
+
5901
+ // src/PinnedComment.tsx
5902
+ import { jsx as jsx83, jsxs as jsxs60 } from "react/jsx-runtime";
5903
+ function PinnedComment({ author, time, words, deleted = false }) {
5904
+ return /* @__PURE__ */ jsx83(Card, { fill: "elevated", clip: true, children: deleted ? /* @__PURE__ */ jsx83("p", { className: "p-2 text-caption italic text-text-muted", children: "This comment was deleted." }) : /* @__PURE__ */ jsxs60("div", { className: "flex flex-col p-2", children: [
5905
+ /* @__PURE__ */ jsxs60("div", { className: "flex items-center gap-2", children: [
5906
+ /* @__PURE__ */ jsx83(Avatar, { size: 24, src: author.picture, alt: author.name }),
5907
+ /* @__PURE__ */ jsx83("span", { className: "min-w-0 truncate text-body-2-strong text-text-primary", children: author.name }),
5908
+ /* @__PURE__ */ jsx83(MetaText, { className: "shrink-0", children: time })
5909
+ ] }),
5910
+ /* @__PURE__ */ jsx83("div", { className: "pb-2 pl-8 pr-2 pt-1", children: /* @__PURE__ */ jsx83("div", { className: "truncate text-caption text-text-secondary", children: words }) })
5911
+ ] }) });
5912
+ }
5913
+
5914
+ // src/ArchivedNotice.tsx
5915
+ import { useState as useState21 } from "react";
5916
+ import { IconArchive } from "@tabler/icons-react";
5917
+ import { jsx as jsx84, jsxs as jsxs61 } from "react/jsx-runtime";
5918
+ function ArchivedNotice({ by, when, resolution, withWhat, withTitle, onUnarchive, onOpenParent }) {
5919
+ const [unarchiving, setUnarchiving] = useState21(false);
5920
+ const parent = withWhat ?? (withTitle ? "parent" : void 0);
5921
+ const named2 = withTitle ? ` \u201C${withTitle}\u201D` : "";
5922
+ const line = parent ? `Archived with its ${parent}${named2} by ${by} \xB7 ${when}` : `Archived by ${by} \xB7 ${when}`;
5923
+ return /* @__PURE__ */ jsxs61(Card, { fill: "inset", className: "flex items-start gap-3 px-4 py-3", children: [
5924
+ /* @__PURE__ */ jsx84(IconArchive, { size: 16, stroke: 1.5, className: "mt-0.5 shrink-0 text-text-muted" }),
5925
+ /* @__PURE__ */ jsxs61("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
5926
+ /* @__PURE__ */ jsx84("span", { className: "text-body-2-strong text-text-primary", children: line }),
5927
+ resolution && /* @__PURE__ */ jsx84("p", { className: "whitespace-pre-wrap text-caption text-text-secondary", children: resolution })
5928
+ ] }),
5929
+ parent ? onOpenParent && /* @__PURE__ */ jsx84(Button, { variant: "outlined", size: "small", className: "shrink-0", onClick: onOpenParent, children: `Open ${parent}` }) : onUnarchive && /* @__PURE__ */ jsx84(
5930
+ Button,
5931
+ {
5932
+ variant: "outlined",
5933
+ size: "small",
5934
+ className: "shrink-0",
5935
+ disabled: unarchiving,
5936
+ onClick: () => {
5937
+ setUnarchiving(true);
5938
+ void Promise.resolve().then(onUnarchive).finally(() => setUnarchiving(false));
5939
+ },
5940
+ children: "Unarchive"
5941
+ }
5942
+ )
5943
+ ] });
5944
+ }
5945
+
5946
+ // src/Thread.tsx
5947
+ import { Children } from "react";
5948
+ import { IconX as IconX6 } from "@tabler/icons-react";
5949
+ import { useContext as useContext13 } from "react";
5950
+ import { Fragment as Fragment23, jsx as jsx85, jsxs as jsxs62 } from "react/jsx-runtime";
5951
+ var anyIn = (children) => Children.toArray(children).length > 0;
5952
+ function Replies({ children, loading }) {
5953
+ if (loading) return /* @__PURE__ */ jsx85(SkeletonConversation, {});
5954
+ if (!anyIn(children)) return /* @__PURE__ */ jsx85(EmptyState, { scope: "section", message: "No replies yet." });
5955
+ return /* @__PURE__ */ jsx85(Fragment23, { children });
5956
+ }
5957
+ function Thread({ place = "beside", start, children, loading = false, resolved = false, box, notice, actions, onClose, title = "Replies", bodyRef, className }) {
5958
+ const foot = notice ?? box;
5959
+ const layoutLine = useContext13(LineByLayout);
5960
+ if (place === "under") {
5961
+ return /* @__PURE__ */ jsxs62("div", { "data-thread": "under", className: cn("flex flex-col", className), children: [
5962
+ (loading || anyIn(children)) && // The replies hang from a line under the comment's face (20px in: its 8px and half its 24px), one step in (Ship's way).
5963
+ // 8px from the one card's right edge too, as the box under them: a hovered reply never touches it (Katerina, 31 October).
5964
+ // 2px, as the line from the comment's face that runs into it (Katerina, 1 November), and drawn the same way, a
5965
+ // filled bar rather than a border: a border snaps to the screen's pixels on its own, and at some zooms the two
5966
+ // stood a pixel apart (Katerina: "the line breaks in the middle").
5967
+ /* @__PURE__ */ jsxs62("div", { "data-thread-replies": true, className: "relative ml-[19px] mr-2 flex flex-col gap-1 pl-2.5", children: [
5968
+ !layoutLine && /* @__PURE__ */ jsx85("span", { "aria-hidden": true, className: "absolute bottom-0 left-0 top-0 w-0.5 bg-border-default" }),
5969
+ /* @__PURE__ */ jsx85(caretOnOpen.Provider, { value: 0, children: loading ? /* @__PURE__ */ jsx85(SkeletonConversation, {}) : children })
5970
+ ] }),
5971
+ foot && /* @__PURE__ */ jsx85("div", { className: "px-2 pt-2", children: foot })
5972
+ ] });
5973
+ }
5974
+ return /* @__PURE__ */ jsxs62(
5975
+ Panel,
5976
+ {
5977
+ className,
5978
+ bodyRef,
5979
+ bodyClassName: "flex flex-col",
5980
+ title,
5981
+ actions: /* @__PURE__ */ jsxs62(Fragment23, { children: [
5982
+ resolved && /* @__PURE__ */ jsx85(Chip, { type: "success", label: "Resolved" }),
5983
+ actions,
5984
+ onClose && /* @__PURE__ */ jsx85(IconButton, { tooltip: "Close", "aria-label": "Close", onClick: onClose, children: /* @__PURE__ */ jsx85(IconX6, { size: 16, stroke: 1.5 }) })
5985
+ ] }),
5986
+ footer: foot && /* @__PURE__ */ jsx85("div", { className: "p-3", children: foot }),
5987
+ children: [
5988
+ start && /* @__PURE__ */ jsx85("div", { className: "px-4 pb-2 pt-4", children: /* @__PURE__ */ jsx85(PinnedComment, { ...start }) }),
5989
+ /* @__PURE__ */ jsx85(Divider, { look: "section", label: "Replies", className: "px-4 py-2" }),
5990
+ /* @__PURE__ */ jsx85("div", { className: "flex flex-col gap-2 px-4 pb-4", children: /* @__PURE__ */ jsx85(caretOnOpen.Provider, { value: 0, children: /* @__PURE__ */ jsx85(Replies, { loading, children }) }) })
5991
+ ]
5992
+ }
5993
+ );
5994
+ }
5995
+
5084
5996
  // src/SearchInput.tsx
5085
5997
  import "react";
5086
5998
  import { Input as Input3 } from "@base-ui/react/input";
5087
- import { jsx as jsx72, jsxs as jsxs51 } from "react/jsx-runtime";
5999
+ import { jsx as jsx86, jsxs as jsxs63 } from "react/jsx-runtime";
5088
6000
  function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...props }) {
5089
- return /* @__PURE__ */ jsxs51(
6001
+ return /* @__PURE__ */ jsxs63(
5090
6002
  "div",
5091
6003
  {
5092
6004
  className: cn(
@@ -5098,7 +6010,7 @@ function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...pro
5098
6010
  className
5099
6011
  ),
5100
6012
  children: [
5101
- /* @__PURE__ */ jsx72(
6013
+ /* @__PURE__ */ jsx86(
5102
6014
  Input3,
5103
6015
  {
5104
6016
  className: cn("flex-1 min-w-0 text-input-value", BARE_INPUT_CLASSES),
@@ -5106,81 +6018,87 @@ function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...pro
5106
6018
  ...props
5107
6019
  }
5108
6020
  ),
5109
- shortcut && /* @__PURE__ */ jsx72(Kbd, { children: shortcut })
6021
+ shortcut && /* @__PURE__ */ jsx86(Kbd, { children: shortcut })
5110
6022
  ]
5111
6023
  }
5112
6024
  );
5113
6025
  }
5114
6026
 
5115
- // src/Panel.tsx
5116
- import { jsx as jsx73, jsxs as jsxs52 } from "react/jsx-runtime";
5117
- function Frame({ title, chevron = false, actions, children, footer, bodyClassName, bodyRef, onBodyScroll, className, broken = false }) {
5118
- return /* @__PURE__ */ jsxs52("div", { className: cn("flex h-full min-h-0 flex-1 flex-col", className), children: [
5119
- /* @__PURE__ */ jsx73(ContainerHeader, { title, chevron, actions }),
5120
- broken ? (
5121
- // The message takes the room the body had and centres itself in it.
5122
- /* @__PURE__ */ jsx73("div", { className: "flex min-h-0 flex-1 flex-col px-4", children })
5123
- ) : /* @__PURE__ */ jsx73(ScrollArea, { className: "min-h-0 flex-1", contentClassName: bodyClassName, viewportRef: bodyRef, onScroll: onBodyScroll, children }),
5124
- !broken && footer && /* @__PURE__ */ jsx73("div", { className: "shrink-0", children: footer })
6027
+ // src/PageHeader.tsx
6028
+ import { Fragment as Fragment24 } from "react";
6029
+ import { IconLock } from "@tabler/icons-react";
6030
+ import { Fragment as Fragment25, jsx as jsx87, jsxs as jsxs64 } from "react/jsx-runtime";
6031
+ function PageHeader({ title, leading, private: locked = false, after, meta, time, members, actions, className }) {
6032
+ const words = (meta ?? []).map((one) => typeof one === "string" ? { label: one } : one);
6033
+ const quiet = words.length > 0 || time != null || members != null;
6034
+ const name = /* @__PURE__ */ jsxs64("div", { className: "flex min-w-0 items-center gap-2", children: [
6035
+ leading != null && /* @__PURE__ */ jsx87("span", { className: "flex shrink-0 items-center text-text-secondary", children: leading }),
6036
+ locked && /* @__PURE__ */ jsx87(WithTooltip, { label: "Private", children: /* @__PURE__ */ jsx87(IconLock, { size: 16, stroke: 1.5, role: "img", "aria-label": "Private", className: "shrink-0 text-text-secondary" }) }),
6037
+ typeof title === "string" ? /* @__PURE__ */ jsx87("span", { className: "truncate text-body-2-strong text-text-primary", children: title }) : /* @__PURE__ */ jsx87("div", { className: "flex min-w-0 items-center", children: title }),
6038
+ after != null && /* @__PURE__ */ jsx87("span", { className: "flex shrink-0 items-center", children: after })
5125
6039
  ] });
5126
- }
5127
- function Panel(props) {
5128
- return /* @__PURE__ */ jsx73(
5129
- ErrorBoundary,
5130
- {
5131
- label: "panel",
5132
- frame: (message) => (
5133
- // Only the name comes back with the message: the actions and the footer may be what threw.
5134
- /* @__PURE__ */ jsx73(Frame, { title: props.title, chevron: props.chevron, className: props.className, broken: true, children: message })
5135
- ),
5136
- children: /* @__PURE__ */ jsx73(Frame, { ...props })
5137
- }
5138
- );
6040
+ const right = quiet || actions != null ? /* @__PURE__ */ jsxs64(Fragment25, { children: [
6041
+ quiet && // The quiet group: 12px between its parts, and 12px clear of the buttons — the bar sets
6042
+ // its actions 4px apart, so the group adds the other 8px, as Peek's and Leaf's bars do.
6043
+ /* @__PURE__ */ jsxs64("div", { className: cn("flex items-center gap-3", actions != null && "pr-2"), children: [
6044
+ words.length > 0 && /* @__PURE__ */ jsx87("div", { className: "flex items-center gap-2", children: words.map((one, i) => /* @__PURE__ */ jsxs64(Fragment24, { children: [
6045
+ i > 0 && // eslint-disable-next-line token-spacing/no-restricted-classes -- @estiva-escape: Peek's dot between its counts, 3px measured on 31 October; the scale steps from 2px to 4px
6046
+ /* @__PURE__ */ jsx87("span", { "aria-hidden": "true", className: "size-[3px] shrink-0 rounded-full bg-text-muted" }),
6047
+ /* @__PURE__ */ jsx87(MetaText, { tone: one.done ? "success" : "secondary", children: one.label })
6048
+ ] }, `${one.label}-${i}`)) }),
6049
+ time && /* @__PURE__ */ jsx87(WithTooltip, { label: time.exact, children: /* @__PURE__ */ jsx87("span", { className: "whitespace-nowrap text-caption italic text-text-muted", children: time.label }) }),
6050
+ members
6051
+ ] }),
6052
+ actions
6053
+ ] }) : void 0;
6054
+ return /* @__PURE__ */ jsx87(ContainerHeader, { title: name, actions: right, className });
5139
6055
  }
5140
6056
 
5141
6057
  // src/ListColumn.tsx
5142
- import { jsx as jsx74, jsxs as jsxs53 } from "react/jsx-runtime";
6058
+ import { jsx as jsx88, jsxs as jsxs65 } from "react/jsx-runtime";
5143
6059
  function Column({ title, chevron = false, titleMenu, actions, above, collapsed = false, children, className, broken = false }) {
5144
- return /* @__PURE__ */ jsxs53(
6060
+ return /* @__PURE__ */ jsxs65(
5145
6061
  "div",
5146
6062
  {
5147
6063
  className: cn(
5148
6064
  // `shrink-0`: the column keeps its 290px beside a main area that grows.
5149
- "flex shrink-0 flex-col overflow-hidden border-r border-border-subtle transition-[width,opacity] duration-300 ease-in-out",
5150
- collapsed ? "w-0 border-r-0 opacity-0" : "w-[290px] opacity-100",
6065
+ "flex shrink-0 flex-col overflow-hidden border-r border-border-subtle transition-[width,opacity,visibility]",
6066
+ FOLD_MOTION_CLASSES,
6067
+ collapsed ? cn("w-0 border-r-0", FOLDED_CLASSES) : cn("w-[290px]", UNFOLDED_CLASSES),
5151
6068
  className
5152
6069
  ),
5153
6070
  "data-collapsed": collapsed || void 0,
6071
+ inert: collapsed,
5154
6072
  children: [
5155
- /* @__PURE__ */ jsx74(ContainerHeader, { title, chevron, titleMenu, actions }),
6073
+ /* @__PURE__ */ jsx88(ContainerHeader, { title, chevron, titleMenu, actions }),
5156
6074
  above,
5157
6075
  broken ? (
5158
6076
  // The message takes the room the list had and centres itself in it (Katerina, 19 September).
5159
- /* @__PURE__ */ jsx74("div", { className: "flex min-h-0 flex-1 flex-col px-3", children })
5160
- ) : /* @__PURE__ */ jsx74(ScrollArea, { className: "flex-1", contentClassName: "flex flex-col gap-0.5 px-3 pt-4 pb-3", children })
6077
+ /* @__PURE__ */ jsx88("div", { className: "flex min-h-0 flex-1 flex-col px-3", children })
6078
+ ) : /* @__PURE__ */ jsx88(ScrollArea, { className: "flex-1", contentClassName: "flex flex-col gap-0.5 px-3 pt-4 pb-3", children })
5161
6079
  ]
5162
6080
  }
5163
6081
  );
5164
6082
  }
5165
6083
  function ListColumn(props) {
5166
- return /* @__PURE__ */ jsx74(
6084
+ return /* @__PURE__ */ jsx88(
5167
6085
  ErrorBoundary,
5168
6086
  {
5169
6087
  label: "list panel",
5170
6088
  frame: (message) => (
5171
6089
  // Only the name comes back with the message: the actions and the row above may be what threw.
5172
- /* @__PURE__ */ jsx74(Column, { title: props.title, chevron: props.chevron, collapsed: props.collapsed, className: props.className, broken: true, children: message })
6090
+ /* @__PURE__ */ jsx88(Column, { title: props.title, chevron: props.chevron, collapsed: props.collapsed, className: props.className, broken: true, children: message })
5173
6091
  ),
5174
- children: /* @__PURE__ */ jsx74(Column, { ...props })
6092
+ children: /* @__PURE__ */ jsx88(Column, { ...props })
5175
6093
  }
5176
6094
  );
5177
6095
  }
5178
6096
 
5179
6097
  // src/Tabs.tsx
5180
6098
  import { Tabs as BaseTabs } from "@base-ui/react/tabs";
5181
- import { Fragment as Fragment17, jsx as jsx75, jsxs as jsxs54 } from "react/jsx-runtime";
6099
+ import { Fragment as Fragment26, jsx as jsx89, jsxs as jsxs66 } from "react/jsx-runtime";
5182
6100
  function Tabs({ tabs, active, onChange, size = "default", className, ...aria }) {
5183
- return /* @__PURE__ */ jsx75(
6101
+ return /* @__PURE__ */ jsx89(
5184
6102
  BaseTabs.Root,
5185
6103
  {
5186
6104
  value: active,
@@ -5188,14 +6106,14 @@ function Tabs({ tabs, active, onChange, size = "default", className, ...aria })
5188
6106
  if (details.reason === "none") onChange(value);
5189
6107
  },
5190
6108
  className,
5191
- children: /* @__PURE__ */ jsx75(
6109
+ children: /* @__PURE__ */ jsx89(
5192
6110
  BaseTabs.List,
5193
6111
  {
5194
6112
  activateOnFocus: true,
5195
6113
  "aria-label": aria["aria-label"],
5196
6114
  "aria-labelledby": aria["aria-labelledby"],
5197
6115
  className: "flex items-center gap-2",
5198
- children: tabs.map((tab) => /* @__PURE__ */ jsxs54(
6116
+ children: tabs.map((tab) => /* @__PURE__ */ jsxs66(
5199
6117
  BaseTabs.Tab,
5200
6118
  {
5201
6119
  value: tab.id,
@@ -5208,13 +6126,13 @@ function Tabs({ tabs, active, onChange, size = "default", className, ...aria })
5208
6126
  ),
5209
6127
  children: [
5210
6128
  tab.icon,
5211
- /* @__PURE__ */ jsxs54("span", { className: "flex items-baseline", children: [
6129
+ /* @__PURE__ */ jsxs66("span", { className: "flex items-baseline", children: [
5212
6130
  tab.label,
5213
- tab.count !== void 0 ? /* @__PURE__ */ jsx75("span", { className: "ml-2.5 font-mono text-caption tabular-nums text-text-secondary", children: tab.count }) : null
6131
+ tab.count !== void 0 ? /* @__PURE__ */ jsx89("span", { className: "ml-2.5 font-mono text-caption tabular-nums text-text-secondary", children: tab.count }) : null
5214
6132
  ] }),
5215
- tab.unread ? /* @__PURE__ */ jsxs54(Fragment17, { children: [
5216
- /* @__PURE__ */ jsx75(UnreadDot, { className: "h-auto w-auto" }),
5217
- /* @__PURE__ */ jsx75("span", { className: "sr-only", children: "new" })
6133
+ tab.unread ? /* @__PURE__ */ jsxs66(Fragment26, { children: [
6134
+ /* @__PURE__ */ jsx89(UnreadDot, { className: "h-auto w-auto" }),
6135
+ /* @__PURE__ */ jsx89("span", { className: "sr-only", children: "new" })
5218
6136
  ] }) : null
5219
6137
  ]
5220
6138
  },
@@ -5227,10 +6145,10 @@ function Tabs({ tabs, active, onChange, size = "default", className, ...aria })
5227
6145
  }
5228
6146
 
5229
6147
  // src/Toast.tsx
5230
- import { createContext as createContext9, useContext as useContext12, useMemo as useMemo6 } from "react";
6148
+ import { createContext as createContext10, useContext as useContext14, useMemo as useMemo6 } from "react";
5231
6149
  import { Toast as BaseToast } from "@base-ui/react/toast";
5232
- import { IconAlertCircle as IconAlertCircle2, IconCircleCheck as IconCircleCheck2, IconCircleX as IconCircleX2 } from "@tabler/icons-react";
5233
- import { jsx as jsx76, jsxs as jsxs55 } from "react/jsx-runtime";
6150
+ import { IconAlertCircle as IconAlertCircle2, IconCircleCheck as IconCircleCheck5, IconCircleX as IconCircleX2 } from "@tabler/icons-react";
6151
+ import { jsx as jsx90, jsxs as jsxs67 } from "react/jsx-runtime";
5234
6152
  var SURFACE_STYLES = {
5235
6153
  success: "bg-success-muted signal:bg-bg-inset signal:border signal:border-border-default signal:shadow-md leaf:bg-bg-inset leaf:border leaf:border-border-default leaf:shadow-md",
5236
6154
  brand: "bg-accent-muted signal:bg-bg-inset signal:border signal:border-border-default signal:shadow-md leaf:bg-bg-inset leaf:border leaf:border-border-default leaf:shadow-md",
@@ -5239,9 +6157,9 @@ var SURFACE_STYLES = {
5239
6157
  error: "bg-error-muted signal:bg-bg-inset signal:border signal:border-border-default signal:shadow-md leaf:bg-bg-inset leaf:border leaf:border-border-default leaf:shadow-md"
5240
6158
  };
5241
6159
  var ICONS2 = {
5242
- success: IconCircleCheck2,
5243
- brand: IconCircleCheck2,
5244
- neutral: IconCircleCheck2,
6160
+ success: IconCircleCheck5,
6161
+ brand: IconCircleCheck5,
6162
+ neutral: IconCircleCheck5,
5245
6163
  warning: IconAlertCircle2,
5246
6164
  error: IconCircleX2
5247
6165
  };
@@ -5266,19 +6184,19 @@ var pillClassName = (type, hasAction, className) => cn(
5266
6184
  );
5267
6185
  function LeadingIcon({ type }) {
5268
6186
  const Icon = ICONS2[type];
5269
- return /* @__PURE__ */ jsx76(Icon, { size: 16, stroke: 1.5, className: cn("text-text-primary shrink-0", ICON_STYLES[type]) });
6187
+ return /* @__PURE__ */ jsx90(Icon, { size: 16, stroke: 1.5, className: cn("text-text-primary shrink-0", ICON_STYLES[type]) });
5270
6188
  }
5271
6189
  function Toast({ label, type = "neutral", leadingIcon = true, actionLabel, onAction, className }) {
5272
6190
  const hasAction = !!(actionLabel && onAction);
5273
- return /* @__PURE__ */ jsxs55("div", { className: pillClassName(type, hasAction, className), children: [
5274
- /* @__PURE__ */ jsxs55("div", { className: "flex items-center gap-2 shrink-0", children: [
5275
- leadingIcon && /* @__PURE__ */ jsx76(LeadingIcon, { type }),
5276
- /* @__PURE__ */ jsx76("span", { className: LABEL_CLASSES, children: label })
6191
+ return /* @__PURE__ */ jsxs67("div", { className: pillClassName(type, hasAction, className), children: [
6192
+ /* @__PURE__ */ jsxs67("div", { className: "flex items-center gap-2 shrink-0", children: [
6193
+ leadingIcon && /* @__PURE__ */ jsx90(LeadingIcon, { type }),
6194
+ /* @__PURE__ */ jsx90("span", { className: LABEL_CLASSES, children: label })
5277
6195
  ] }),
5278
- hasAction && /* @__PURE__ */ jsx76(Button, { variant: "outlined", size: "small", onClick: onAction, children: actionLabel })
6196
+ hasAction && /* @__PURE__ */ jsx90(Button, { variant: "outlined", size: "small", onClick: onAction, children: actionLabel })
5279
6197
  ] });
5280
6198
  }
5281
- var ToastContext = createContext9(null);
6199
+ var ToastContext = createContext10(null);
5282
6200
  var VISIBLE_TOASTS = 3;
5283
6201
  function ToastProvider({ children }) {
5284
6202
  const manager = useMemo6(() => BaseToast.createToastManager(), []);
@@ -5297,9 +6215,9 @@ function ToastProvider({ children }) {
5297
6215
  }),
5298
6216
  [manager]
5299
6217
  );
5300
- return /* @__PURE__ */ jsx76(ToastContext.Provider, { value, children: /* @__PURE__ */ jsxs55(BaseToast.Provider, { toastManager: manager, limit: VISIBLE_TOASTS, children: [
6218
+ return /* @__PURE__ */ jsx90(ToastContext.Provider, { value, children: /* @__PURE__ */ jsxs67(BaseToast.Provider, { toastManager: manager, limit: VISIBLE_TOASTS, children: [
5301
6219
  children,
5302
- /* @__PURE__ */ jsx76(BaseToast.Portal, { children: /* @__PURE__ */ jsx76(BaseToast.Viewport, { className: "fixed bottom-4 left-4 z-[100] flex flex-col-reverse items-start gap-2 pointer-events-none", children: /* @__PURE__ */ jsx76(ToastList, {}) }) })
6220
+ /* @__PURE__ */ jsx90(BaseToast.Portal, { children: /* @__PURE__ */ jsx90(BaseToast.Viewport, { className: "fixed bottom-4 left-4 z-[100] flex flex-col-reverse items-start gap-2 pointer-events-none", children: /* @__PURE__ */ jsx90(ToastList, {}) }) })
5303
6221
  ] }) });
5304
6222
  }
5305
6223
  function ToastList() {
@@ -5307,25 +6225,25 @@ function ToastList() {
5307
6225
  return toasts.map((toast) => {
5308
6226
  const type = toast.type ?? "neutral";
5309
6227
  const { leadingIcon = true, actionLabel, onAction } = toast.data ?? {};
5310
- return /* @__PURE__ */ jsxs55(
6228
+ return /* @__PURE__ */ jsxs67(
5311
6229
  BaseToast.Root,
5312
6230
  {
5313
6231
  toast,
5314
6232
  swipeDirection: ["left", "down"],
5315
6233
  className: pillClassName(type, !!actionLabel, "pointer-events-auto data-[limited]:hidden"),
5316
6234
  children: [
5317
- /* @__PURE__ */ jsxs55("div", { className: "flex items-center gap-2 shrink-0", children: [
5318
- leadingIcon && /* @__PURE__ */ jsx76(LeadingIcon, { type }),
5319
- /* @__PURE__ */ jsx76(BaseToast.Title, { render: /* @__PURE__ */ jsx76("span", {}), className: LABEL_CLASSES })
6235
+ /* @__PURE__ */ jsxs67("div", { className: "flex items-center gap-2 shrink-0", children: [
6236
+ leadingIcon && /* @__PURE__ */ jsx90(LeadingIcon, { type }),
6237
+ /* @__PURE__ */ jsx90(BaseToast.Title, { render: /* @__PURE__ */ jsx90("span", {}), className: LABEL_CLASSES })
5320
6238
  ] }),
5321
- actionLabel && /* @__PURE__ */ jsx76(
6239
+ actionLabel && /* @__PURE__ */ jsx90(
5322
6240
  BaseToast.Action,
5323
6241
  {
5324
6242
  onClick: () => {
5325
6243
  onAction?.();
5326
6244
  close(toast.id);
5327
6245
  },
5328
- render: /* @__PURE__ */ jsx76(Button, { variant: "outlined", size: "small", children: actionLabel })
6246
+ render: /* @__PURE__ */ jsx90(Button, { variant: "outlined", size: "small", children: actionLabel })
5329
6247
  }
5330
6248
  )
5331
6249
  ]
@@ -5335,7 +6253,7 @@ function ToastList() {
5335
6253
  });
5336
6254
  }
5337
6255
  function useToast() {
5338
- const ctx = useContext12(ToastContext);
6256
+ const ctx = useContext14(ToastContext);
5339
6257
  if (!ctx) throw new Error("useToast must be used within ToastProvider");
5340
6258
  return ctx;
5341
6259
  }
@@ -5343,6 +6261,7 @@ export {
5343
6261
  AddReactionButton,
5344
6262
  AppProvider,
5345
6263
  AppShell,
6264
+ ArchivedNotice,
5346
6265
  AttachedCard,
5347
6266
  AttachmentCard,
5348
6267
  Avatar,
@@ -5366,9 +6285,14 @@ export {
5366
6285
  CommentCount,
5367
6286
  ConfirmDialog,
5368
6287
  ContainerHeader,
6288
+ ConversationActions,
6289
+ ConversationCard,
6290
+ ConversationLayout,
6291
+ ConversationMenu,
5369
6292
  DialogShell,
5370
6293
  Divider,
5371
6294
  EditableText,
6295
+ EditedMarker,
5372
6296
  EmptyState,
5373
6297
  EnterHint,
5374
6298
  EntryShell,
@@ -5408,23 +6332,31 @@ export {
5408
6332
  MenuSection,
5409
6333
  MenuSeparator,
5410
6334
  MenuSub,
6335
+ MetaText,
5411
6336
  NavItem,
5412
6337
  NavTree,
5413
6338
  NavTreeSection,
6339
+ PageHeader,
5414
6340
  Panel,
5415
6341
  PartCard,
5416
6342
  Person,
5417
6343
  PersonTrigger,
6344
+ PinnedComment,
5418
6345
  Popover,
5419
6346
  PreviewCard,
5420
6347
  ProgressBar,
5421
6348
  ProgressRing,
5422
6349
  Property,
6350
+ QuotedLine,
5423
6351
  Rail,
5424
6352
  RailItem,
5425
6353
  Reaction,
6354
+ ReactionHorizon,
5426
6355
  ReactionPicker,
5427
6356
  ReactionRow,
6357
+ RepliesRow,
6358
+ ReplyCard,
6359
+ ResolveDialog,
5428
6360
  RichText,
5429
6361
  ScrollArea,
5430
6362
  SearchInput,
@@ -5434,6 +6366,7 @@ export {
5434
6366
  ShowMore,
5435
6367
  Sidebar,
5436
6368
  SkeletonBar,
6369
+ SkeletonConversation,
5437
6370
  SkeletonList,
5438
6371
  SkeletonRow,
5439
6372
  StatusMark,
@@ -5441,6 +6374,7 @@ export {
5441
6374
  Tabs,
5442
6375
  TextInput,
5443
6376
  Textarea,
6377
+ Thread,
5444
6378
  Toast,
5445
6379
  ToastProvider,
5446
6380
  Toolbar,
@@ -5452,11 +6386,13 @@ export {
5452
6386
  TooltipProvider,
5453
6387
  TopBar,
5454
6388
  UnreadDot,
6389
+ UrgentMark,
5455
6390
  WithTooltip,
5456
6391
  archivedLine2 as archivedLine,
5457
6392
  blockAtY,
5458
6393
  calloutLook,
5459
6394
  cardShapeMemory,
6395
+ caretOnOpen,
5460
6396
  chosenOf,
5461
6397
  cn,
5462
6398
  hueFor,
@@ -5472,6 +6408,7 @@ export {
5472
6408
  thingKindOf,
5473
6409
  unavailableMemory,
5474
6410
  useCanHover,
6411
+ useSidebarFold,
5475
6412
  useToast,
5476
6413
  whoReacted
5477
6414
  };