@estiva-app/ui 0.109.0 → 0.111.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.
package/dist/index.js CHANGED
@@ -5648,44 +5648,84 @@ function AttachedCard({ link, children, onRemove, remember }) {
5648
5648
  );
5649
5649
  }
5650
5650
 
5651
+ // src/CornerMenu.tsx
5652
+ import { IconCheck as IconCheck4, IconDotsVertical as IconDotsVertical3 } from "@tabler/icons-react";
5653
+ import { jsx as jsx71, jsxs as jsxs52 } from "react/jsx-runtime";
5654
+ var LOOKS = [
5655
+ { look: "row", label: "Row" },
5656
+ { look: "card", label: "Card" }
5657
+ ];
5658
+ function CornerMenu({ children, menu }) {
5659
+ return (
5660
+ // At most 480px, as `AttachedCard`, so the "…" sits on the card's corner and not at the column's edge.
5661
+ /* @__PURE__ */ jsxs52("div", { className: "group/corner relative max-w-[480px]", children: [
5662
+ children,
5663
+ menu && /* @__PURE__ */ jsx71("div", { className: "absolute -right-2 -top-2 z-10 rounded-md border border-border-strong bg-bg-elevated opacity-0 shadow-sm transition-opacity group-hover/corner:opacity-100 focus-within:opacity-100 has-[[aria-expanded=true]]:opacity-100 [@media(hover:none)]:opacity-100", children: /* @__PURE__ */ jsxs52(
5664
+ Menu,
5665
+ {
5666
+ align: "right",
5667
+ trigger: /* @__PURE__ */ jsx71(IconButton, { tooltip: "More options", "aria-label": `More options for ${menu.name}`, children: /* @__PURE__ */ jsx71(IconDotsVertical3, { size: 16, stroke: 1.5 }) }),
5668
+ children: [
5669
+ /* @__PURE__ */ jsx71(MenuSection, { label: "Show as", children: LOOKS.map(({ look, label }) => /* @__PURE__ */ jsx71(
5670
+ MenuItem,
5671
+ {
5672
+ role: "menuitemradio",
5673
+ "aria-checked": menu.look === look,
5674
+ label,
5675
+ trailing: menu.look === look ? /* @__PURE__ */ jsx71(IconCheck4, { size: 16, "aria-hidden": true }) : void 0,
5676
+ onClick: () => {
5677
+ if (menu.look !== look) menu.onLook(look);
5678
+ }
5679
+ },
5680
+ look
5681
+ )) }),
5682
+ /* @__PURE__ */ jsx71(MenuSeparator, {}),
5683
+ /* @__PURE__ */ jsx71(MenuItem, { label: "Remove", onClick: menu.onRemove })
5684
+ ]
5685
+ }
5686
+ ) })
5687
+ ] })
5688
+ );
5689
+ }
5690
+
5651
5691
  // src/PartCard.tsx
5652
5692
  import { useContext as useContext13 } from "react";
5653
- import { jsx as jsx71, jsxs as jsxs52 } from "react/jsx-runtime";
5693
+ import { jsx as jsx72, jsxs as jsxs53 } from "react/jsx-runtime";
5654
5694
  function PartCard({ state = "ready", kind, heading, href, partKey, noun, children, maxHeight }) {
5655
5695
  const word = noun ?? kindNounOf({ kind }) ?? "File";
5656
5696
  const boxed = useContext13(inTheBox);
5657
- if (state === "loading") return /* @__PURE__ */ jsx71(LinkCardLoading, { kind, shape: { summary: true, rows: 0, footer: "none" } });
5697
+ if (state === "loading") return /* @__PURE__ */ jsx72(LinkCardLoading, { kind, shape: { summary: true, rows: 0, footer: "none" } });
5658
5698
  if (state === "unavailable" || state === "deleted") {
5659
- return /* @__PURE__ */ jsx71(LinkUnavailable, { kind, noun: state === "deleted" ? `A part of this ${word.toLowerCase()}` : word, deleted: state === "deleted", card: true });
5699
+ return /* @__PURE__ */ jsx72(LinkUnavailable, { kind, noun: state === "deleted" ? `A part of this ${word.toLowerCase()}` : word, deleted: state === "deleted", card: true });
5660
5700
  }
5661
- if (state === "detached") return /* @__PURE__ */ jsx71(UnavailableRow, { kind, words: "This part was deleted", card: true });
5662
- if (state === "unaddressable") return /* @__PURE__ */ jsx71(UnavailableRow, { kind, words: "This part can't be shown", href, card: true });
5701
+ if (state === "detached") return /* @__PURE__ */ jsx72(UnavailableRow, { kind, words: "This part was deleted", card: true });
5702
+ if (state === "unaddressable") return /* @__PURE__ */ jsx72(UnavailableRow, { kind, words: "This part can't be shown", href, card: true });
5663
5703
  return (
5664
5704
  // At most 480px wide, in a box too; in a box being written in, on the files' fill as the card beside it is.
5665
- /* @__PURE__ */ jsxs52(Card, { fill: boxed ? "elevated" : "inset", className: "flex max-w-[480px] flex-col gap-3 p-3", children: [
5666
- /* @__PURE__ */ jsxs52("div", { className: "flex items-center gap-3", children: [
5667
- /* @__PURE__ */ jsx71(LinkTile, { kind }),
5668
- /* @__PURE__ */ jsxs52("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
5669
- /* @__PURE__ */ jsx71("span", { className: "block min-w-0 text-body-2-strong text-text-primary", children: href && !boxed ? /* @__PURE__ */ jsx71(Link, { href, variant: "quiet", truncate: true, className: "block", children: heading }) : /* @__PURE__ */ jsx71("span", { className: "block truncate", children: heading }) }),
5670
- /* @__PURE__ */ jsx71("span", { className: "truncate text-caption text-text-secondary", children: partKey ? `A part of ${partKey}` : `A part of this ${word.toLowerCase()}` })
5705
+ /* @__PURE__ */ jsxs53(Card, { fill: boxed ? "elevated" : "inset", className: "flex max-w-[480px] flex-col gap-3 p-3", children: [
5706
+ /* @__PURE__ */ jsxs53("div", { className: "flex items-center gap-3", children: [
5707
+ /* @__PURE__ */ jsx72(LinkTile, { kind }),
5708
+ /* @__PURE__ */ jsxs53("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
5709
+ /* @__PURE__ */ jsx72("span", { className: "block min-w-0 text-body-2-strong text-text-primary", children: href && !boxed ? /* @__PURE__ */ jsx72(Link, { href, variant: "quiet", truncate: true, className: "block", children: heading }) : /* @__PURE__ */ jsx72("span", { className: "block truncate", children: heading }) }),
5710
+ /* @__PURE__ */ jsx72("span", { className: "truncate text-caption text-text-secondary", children: partKey ? `A part of ${partKey}` : `A part of this ${word.toLowerCase()}` })
5671
5711
  ] })
5672
5712
  ] }),
5673
- maxHeight !== void 0 ? /* @__PURE__ */ jsx71(ShowMore, { maxHeight, contentClassName: QUOTE_BAR_CLASSES, children }) : /* @__PURE__ */ jsx71("div", { className: QUOTE_BAR_CLASSES, children })
5713
+ maxHeight !== void 0 ? /* @__PURE__ */ jsx72(ShowMore, { maxHeight, contentClassName: QUOTE_BAR_CLASSES, children }) : /* @__PURE__ */ jsx72("div", { className: QUOTE_BAR_CLASSES, children })
5674
5714
  ] })
5675
5715
  );
5676
5716
  }
5677
5717
 
5678
5718
  // src/Rail.tsx
5679
- import { jsx as jsx72 } from "react/jsx-runtime";
5719
+ import { jsx as jsx73 } from "react/jsx-runtime";
5680
5720
  function Rail({ "aria-label": ariaLabel = "Navigation", children, className }) {
5681
- return /* @__PURE__ */ jsx72("nav", { "aria-label": ariaLabel, className: cn("flex w-16 shrink-0 flex-col items-start gap-2 px-2 py-3", className), children });
5721
+ return /* @__PURE__ */ jsx73("nav", { "aria-label": ariaLabel, className: cn("flex w-16 shrink-0 flex-col items-start gap-2 px-2 py-3", className), children });
5682
5722
  }
5683
5723
 
5684
5724
  // src/RailItem.tsx
5685
- import { jsx as jsx73, jsxs as jsxs53 } from "react/jsx-runtime";
5725
+ import { jsx as jsx74, jsxs as jsxs54 } from "react/jsx-runtime";
5686
5726
  function RailItem({ href, icon, label, active = false, className, onClick, ...props }) {
5687
5727
  const inApp = useInAppClick(href, onClick);
5688
- return /* @__PURE__ */ jsxs53(
5728
+ return /* @__PURE__ */ jsxs54(
5689
5729
  "a",
5690
5730
  {
5691
5731
  href,
@@ -5694,14 +5734,14 @@ function RailItem({ href, icon, label, active = false, className, onClick, ...pr
5694
5734
  ...props,
5695
5735
  onClick: inApp,
5696
5736
  children: [
5697
- /* @__PURE__ */ jsx73(
5737
+ /* @__PURE__ */ jsx74(
5698
5738
  "div",
5699
5739
  {
5700
5740
  className: cn(
5701
5741
  "flex items-center justify-center rounded-lg p-2 transition-colors",
5702
5742
  active ? "bg-bg-selected" : "group-hover:bg-bg-hover"
5703
5743
  ),
5704
- children: /* @__PURE__ */ jsx73(
5744
+ children: /* @__PURE__ */ jsx74(
5705
5745
  "span",
5706
5746
  {
5707
5747
  className: cn(
@@ -5713,14 +5753,14 @@ function RailItem({ href, icon, label, active = false, className, onClick, ...pr
5713
5753
  )
5714
5754
  }
5715
5755
  ),
5716
- /* @__PURE__ */ jsx73("span", { className: cn("text-center text-menu", active ? "text-text-primary" : "text-text-secondary"), children: label })
5756
+ /* @__PURE__ */ jsx74("span", { className: cn("text-center text-menu", active ? "text-text-primary" : "text-text-secondary"), children: label })
5717
5757
  ]
5718
5758
  }
5719
5759
  );
5720
5760
  }
5721
5761
 
5722
5762
  // src/Property.tsx
5723
- import { jsx as jsx74, jsxs as jsxs54 } from "react/jsx-runtime";
5763
+ import { jsx as jsx75, jsxs as jsxs55 } from "react/jsx-runtime";
5724
5764
  var VALUE_CLASSES = "contents";
5725
5765
  function Property({ label, layout = "row", children, className }) {
5726
5766
  if (layout === "stacked") {
@@ -5728,25 +5768,25 @@ function Property({ label, layout = "row", children, className }) {
5728
5768
  // gap-3 — the one label-above-content distance (Katerina, 2026-09-01):
5729
5769
  // Peek's topic-details sections already sit at 12px, Ship's rail was
5730
5770
  // 6px, and unifying means the bigger, calmer one.
5731
- /* @__PURE__ */ jsxs54("dl", { className: cn("flex flex-col gap-3", className), children: [
5732
- /* @__PURE__ */ jsx74("dt", { className: "text-menu uppercase tracking-widest text-text-secondary", children: label }),
5733
- /* @__PURE__ */ jsx74("dd", { className: VALUE_CLASSES, children })
5771
+ /* @__PURE__ */ jsxs55("dl", { className: cn("flex flex-col gap-3", className), children: [
5772
+ /* @__PURE__ */ jsx75("dt", { className: "text-menu uppercase tracking-widest text-text-secondary", children: label }),
5773
+ /* @__PURE__ */ jsx75("dd", { className: VALUE_CLASSES, children })
5734
5774
  ] })
5735
5775
  );
5736
5776
  }
5737
- return /* @__PURE__ */ jsxs54("dl", { className: cn("flex items-center gap-2", className), children: [
5738
- /* @__PURE__ */ jsx74("dt", { className: "w-[68px] shrink-0 text-caption text-text-secondary", children: label }),
5739
- /* @__PURE__ */ jsx74("dd", { className: VALUE_CLASSES, children })
5777
+ return /* @__PURE__ */ jsxs55("dl", { className: cn("flex items-center gap-2", className), children: [
5778
+ /* @__PURE__ */ jsx75("dt", { className: "w-[68px] shrink-0 text-caption text-text-secondary", children: label }),
5779
+ /* @__PURE__ */ jsx75("dd", { className: VALUE_CLASSES, children })
5740
5780
  ] });
5741
5781
  }
5742
5782
 
5743
5783
  // src/Reaction.tsx
5744
5784
  import { Toggle as Toggle2 } from "@base-ui/react/toggle";
5745
- import { jsx as jsx75, jsxs as jsxs55 } from "react/jsx-runtime";
5785
+ import { jsx as jsx76, jsxs as jsxs56 } from "react/jsx-runtime";
5746
5786
  function Reaction({ emoji, count, pressed = false, className, ...props }) {
5747
5787
  return (
5748
5788
  // @estiva-escape(no-copied-look): W1 (Katerina, 24 September: leave alone): a reaction pill shares four words with a field's box by coincidence
5749
- /* @__PURE__ */ jsxs55(
5789
+ /* @__PURE__ */ jsxs56(
5750
5790
  Toggle2,
5751
5791
  {
5752
5792
  pressed,
@@ -5768,8 +5808,8 @@ function Reaction({ emoji, count, pressed = false, className, ...props }) {
5768
5808
  ),
5769
5809
  ...props,
5770
5810
  children: [
5771
- /* @__PURE__ */ jsx75("span", { "aria-hidden": "true", className: "shrink-0 text-body-1 leading-none", children: emoji }),
5772
- /* @__PURE__ */ jsx75("span", { className: CHIP_TEXT_CLASSES, children: count })
5811
+ /* @__PURE__ */ jsx76("span", { "aria-hidden": "true", className: "shrink-0 text-body-1 leading-none", children: emoji }),
5812
+ /* @__PURE__ */ jsx76("span", { className: CHIP_TEXT_CLASSES, children: count })
5773
5813
  ]
5774
5814
  }
5775
5815
  )
@@ -5779,7 +5819,7 @@ function Reaction({ emoji, count, pressed = false, className, ...props }) {
5779
5819
  // src/ConversationActions.tsx
5780
5820
  import { useState as useState20 } from "react";
5781
5821
  import { IconCircleCheck as IconCircleCheck2, IconCircleDashed as IconCircleDashed4, IconMessage2 as IconMessage23, IconMoodPlus } from "@tabler/icons-react";
5782
- import { Fragment as Fragment20, jsx as jsx76, jsxs as jsxs56 } from "react/jsx-runtime";
5822
+ import { Fragment as Fragment20, jsx as jsx77, jsxs as jsxs57 } from "react/jsx-runtime";
5783
5823
  function ConversationActions({ options, onReact, onReply, resolved = false, onResolve, onReopen, onPickerOpenChange, more, className }) {
5784
5824
  const [picking, setPicking] = useState20(false);
5785
5825
  const [strip, setStrip] = useState20(null);
@@ -5789,8 +5829,8 @@ function ConversationActions({ options, onReact, onReply, resolved = false, onRe
5789
5829
  };
5790
5830
  const resolves = resolved ? onReopen : onResolve;
5791
5831
  const answers = !!onReact && !!options || !!onReply;
5792
- return /* @__PURE__ */ jsx76("div", { ref: setStrip, className: cn("inline-flex", className), children: /* @__PURE__ */ jsxs56(Toolbar, { "aria-label": "Actions", children: [
5793
- onReact && options && /* @__PURE__ */ jsx76(
5832
+ return /* @__PURE__ */ jsx77("div", { ref: setStrip, className: cn("inline-flex", className), children: /* @__PURE__ */ jsxs57(Toolbar, { "aria-label": "Actions", children: [
5833
+ onReact && options && /* @__PURE__ */ jsx77(
5794
5834
  Popover,
5795
5835
  {
5796
5836
  side: "top",
@@ -5801,8 +5841,8 @@ function ConversationActions({ options, onReact, onReply, resolved = false, onRe
5801
5841
  contentClassName: "p-1",
5802
5842
  open: picking,
5803
5843
  onOpenChange: setOpen,
5804
- trigger: /* @__PURE__ */ jsx76(ToolbarButton, { tooltip: "React", "aria-label": "React", children: /* @__PURE__ */ jsx76(IconMoodPlus, { size: 16, stroke: 1.5 }) }),
5805
- children: /* @__PURE__ */ jsx76(
5844
+ trigger: /* @__PURE__ */ jsx77(ToolbarButton, { tooltip: "React", "aria-label": "React", children: /* @__PURE__ */ jsx77(IconMoodPlus, { size: 16, stroke: 1.5 }) }),
5845
+ children: /* @__PURE__ */ jsx77(
5806
5846
  ReactionPicker,
5807
5847
  {
5808
5848
  options: [...options],
@@ -5815,13 +5855,13 @@ function ConversationActions({ options, onReact, onReply, resolved = false, onRe
5815
5855
  )
5816
5856
  }
5817
5857
  ),
5818
- onReply && /* @__PURE__ */ jsx76(ToolbarButton, { tooltip: "Reply", "aria-label": "Reply", onClick: onReply, children: /* @__PURE__ */ jsx76(IconMessage23, { size: 16, stroke: 1.5 }) }),
5819
- resolves && /* @__PURE__ */ jsxs56(Fragment20, { children: [
5820
- answers && /* @__PURE__ */ jsx76(ToolbarSeparator, {}),
5821
- resolved ? /* @__PURE__ */ jsx76(ToolbarButton, { tooltip: "Reopen", "aria-label": "Reopen", onClick: onReopen, children: /* @__PURE__ */ jsx76(IconCircleDashed4, { size: 16, stroke: 1.5 }) }) : /* @__PURE__ */ jsx76(ToolbarButton, { variant: "resolve", tooltip: "Resolve", "aria-label": "Resolve", onClick: onResolve, children: /* @__PURE__ */ jsx76(IconCircleCheck2, { size: 16, stroke: 1.5 }) })
5858
+ onReply && /* @__PURE__ */ jsx77(ToolbarButton, { tooltip: "Reply", "aria-label": "Reply", onClick: onReply, children: /* @__PURE__ */ jsx77(IconMessage23, { size: 16, stroke: 1.5 }) }),
5859
+ resolves && /* @__PURE__ */ jsxs57(Fragment20, { children: [
5860
+ answers && /* @__PURE__ */ jsx77(ToolbarSeparator, {}),
5861
+ resolved ? /* @__PURE__ */ jsx77(ToolbarButton, { tooltip: "Reopen", "aria-label": "Reopen", onClick: onReopen, children: /* @__PURE__ */ jsx77(IconCircleDashed4, { size: 16, stroke: 1.5 }) }) : /* @__PURE__ */ jsx77(ToolbarButton, { variant: "resolve", tooltip: "Resolve", "aria-label": "Resolve", onClick: onResolve, children: /* @__PURE__ */ jsx77(IconCircleCheck2, { size: 16, stroke: 1.5 }) })
5822
5862
  ] }),
5823
- more && /* @__PURE__ */ jsxs56(Fragment20, { children: [
5824
- (answers || resolves) && /* @__PURE__ */ jsx76(ToolbarSeparator, {}),
5863
+ more && /* @__PURE__ */ jsxs57(Fragment20, { children: [
5864
+ (answers || resolves) && /* @__PURE__ */ jsx77(ToolbarSeparator, {}),
5825
5865
  more
5826
5866
  ] })
5827
5867
  ] }) });
@@ -5829,35 +5869,35 @@ function ConversationActions({ options, onReact, onReply, resolved = false, onRe
5829
5869
 
5830
5870
  // src/ConversationCard.tsx
5831
5871
  import { useContext as useContext14, useLayoutEffect as useLayoutEffect7, useRef as useRef19, useState as useState25 } from "react";
5832
- import { IconArrowNarrowRight, IconCircleCheck as IconCircleCheck4, IconDotsVertical as IconDotsVertical4 } from "@tabler/icons-react";
5872
+ import { IconArrowNarrowRight, IconCircleCheck as IconCircleCheck4, IconDotsVertical as IconDotsVertical5 } from "@tabler/icons-react";
5833
5873
 
5834
5874
  // src/ConversationMenu.tsx
5835
- import { IconCircleCheck as IconCircleCheck3, IconCircleDashed as IconCircleDashed5, IconDotsVertical as IconDotsVertical3 } from "@tabler/icons-react";
5836
- import { Fragment as Fragment21, jsx as jsx77, jsxs as jsxs57 } from "react/jsx-runtime";
5875
+ import { IconCircleCheck as IconCircleCheck3, IconCircleDashed as IconCircleDashed5, IconDotsVertical as IconDotsVertical4 } from "@tabler/icons-react";
5876
+ import { Fragment as Fragment21, jsx as jsx78, jsxs as jsxs58 } from "react/jsx-runtime";
5837
5877
  function ConversationMenu({ resolved = false, onResolve, onReopen, resolveHint, children, label, onEdit, editLabel = "Edit", after, onDelete, deleteLabel = "Delete", moreLabel = "More actions", open, onOpenChange, trigger }) {
5838
5878
  const resolves = resolved ? onReopen : onResolve;
5839
- const first = (resolves || children) && /* @__PURE__ */ jsxs57(Fragment21, { children: [
5840
- resolves && (resolved ? /* @__PURE__ */ jsx77(MenuItem, { leading: /* @__PURE__ */ jsx77(IconCircleDashed5, { size: 16, stroke: 1.5, className: "text-text-secondary" }), label: "Reopen", onClick: onReopen }) : /* @__PURE__ */ jsx77(MenuItem, { leading: /* @__PURE__ */ jsx77(IconCircleCheck3, { size: 16, stroke: 1.5, className: "text-text-secondary" }), label: "Resolve", shortcut: resolveHint, onClick: onResolve })),
5879
+ const first = (resolves || children) && /* @__PURE__ */ jsxs58(Fragment21, { children: [
5880
+ resolves && (resolved ? /* @__PURE__ */ jsx78(MenuItem, { leading: /* @__PURE__ */ jsx78(IconCircleDashed5, { size: 16, stroke: 1.5, className: "text-text-secondary" }), label: "Reopen", onClick: onReopen }) : /* @__PURE__ */ jsx78(MenuItem, { leading: /* @__PURE__ */ jsx78(IconCircleCheck3, { size: 16, stroke: 1.5, className: "text-text-secondary" }), label: "Resolve", shortcut: resolveHint, onClick: onResolve })),
5841
5881
  children
5842
5882
  ] });
5843
- const middle = (onEdit || after) && /* @__PURE__ */ jsxs57(Fragment21, { children: [
5844
- onEdit && /* @__PURE__ */ jsx77(MenuItem, { label: editLabel, onClick: onEdit }),
5883
+ const middle = (onEdit || after) && /* @__PURE__ */ jsxs58(Fragment21, { children: [
5884
+ onEdit && /* @__PURE__ */ jsx78(MenuItem, { label: editLabel, onClick: onEdit }),
5845
5885
  after
5846
5886
  ] });
5847
- return /* @__PURE__ */ jsxs57(
5887
+ return /* @__PURE__ */ jsxs58(
5848
5888
  Menu,
5849
5889
  {
5850
- trigger: trigger ?? /* @__PURE__ */ jsx77(IconButton, { tooltip: moreLabel, "aria-label": moreLabel, children: /* @__PURE__ */ jsx77(IconDotsVertical3, { size: 16, stroke: 1.5 }) }),
5890
+ trigger: trigger ?? /* @__PURE__ */ jsx78(IconButton, { tooltip: moreLabel, "aria-label": moreLabel, children: /* @__PURE__ */ jsx78(IconDotsVertical4, { size: 16, stroke: 1.5 }) }),
5851
5891
  align: "right",
5852
5892
  open,
5853
5893
  onOpenChange,
5854
5894
  className: "w-[244px]",
5855
5895
  children: [
5856
- first && (label ? /* @__PURE__ */ jsx77(MenuSection, { label, children: first }) : first),
5857
- first && middle && /* @__PURE__ */ jsx77(MenuSeparator, {}),
5896
+ first && (label ? /* @__PURE__ */ jsx78(MenuSection, { label, children: first }) : first),
5897
+ first && middle && /* @__PURE__ */ jsx78(MenuSeparator, {}),
5858
5898
  middle,
5859
- onDelete && (first || middle) && /* @__PURE__ */ jsx77(MenuSeparator, {}),
5860
- onDelete && /* @__PURE__ */ jsx77(MenuItem, { label: deleteLabel, destructive: true, onClick: onDelete })
5899
+ onDelete && (first || middle) && /* @__PURE__ */ jsx78(MenuSeparator, {}),
5900
+ onDelete && /* @__PURE__ */ jsx78(MenuItem, { label: deleteLabel, destructive: true, onClick: onDelete })
5861
5901
  ]
5862
5902
  }
5863
5903
  );
@@ -5950,21 +5990,21 @@ var sendsInLayout = createContext11(null);
5950
5990
  var repliesDrawn = createContext11(null);
5951
5991
 
5952
5992
  // src/EditedMarker.tsx
5953
- import { jsx as jsx78 } from "react/jsx-runtime";
5993
+ import { jsx as jsx79 } from "react/jsx-runtime";
5954
5994
  function EditedMarker({ edited }) {
5955
5995
  if (!edited) return null;
5956
- return /* @__PURE__ */ jsx78(WithTooltip, { label: edited, wrapperClassName: "shrink-0", children: /* @__PURE__ */ jsx78("span", { className: "whitespace-nowrap text-caption text-text-muted", children: "(edited)" }) });
5996
+ return /* @__PURE__ */ jsx79(WithTooltip, { label: edited, wrapperClassName: "shrink-0", children: /* @__PURE__ */ jsx79("span", { className: "whitespace-nowrap text-caption text-text-muted", children: "(edited)" }) });
5957
5997
  }
5958
5998
 
5959
5999
  // src/MetaText.tsx
5960
- import { jsx as jsx79 } from "react/jsx-runtime";
6000
+ import { jsx as jsx80 } from "react/jsx-runtime";
5961
6001
  var TONE_CLASSES2 = {
5962
6002
  muted: "text-text-muted",
5963
6003
  secondary: "text-text-secondary",
5964
6004
  success: "text-success-default"
5965
6005
  };
5966
6006
  function MetaText({ children, tone = "muted", size = "caption", className }) {
5967
- return /* @__PURE__ */ jsx79(
6007
+ return /* @__PURE__ */ jsx80(
5968
6008
  "span",
5969
6009
  {
5970
6010
  className: cn(
@@ -5981,7 +6021,7 @@ function MetaText({ children, tone = "muted", size = "caption", className }) {
5981
6021
  // src/ReactionRow.tsx
5982
6022
  import { useState as useState22 } from "react";
5983
6023
  import { IconMoodPlus as IconMoodPlus2 } from "@tabler/icons-react";
5984
- import { jsx as jsx80, jsxs as jsxs58 } from "react/jsx-runtime";
6024
+ import { jsx as jsx81, jsxs as jsxs59 } from "react/jsx-runtime";
5985
6025
  var NAMED = 8;
5986
6026
  var meaningOf = (options, emoji) => options.find((o) => o.emoji === emoji)?.label ?? emoji;
5987
6027
  function whoReacted(reaction, nameOf, options, viewer) {
@@ -5996,7 +6036,7 @@ function whoReacted(reaction, nameOf, options, viewer) {
5996
6036
  }
5997
6037
  function AddReactionButton({ options, onPick, className }) {
5998
6038
  const [picking, setPicking] = useState22(false);
5999
- return /* @__PURE__ */ jsx80(
6039
+ return /* @__PURE__ */ jsx81(
6000
6040
  Popover,
6001
6041
  {
6002
6042
  open: picking,
@@ -6006,8 +6046,8 @@ function AddReactionButton({ options, onPick, className }) {
6006
6046
  ariaLabel: "Add a reaction",
6007
6047
  contentClassName: "p-1",
6008
6048
  className: cn("w-auto min-w-0", className),
6009
- trigger: /* @__PURE__ */ jsx80(IconButton, { variant: "muted", tooltip: "Add a reaction", "aria-label": "Add a reaction", children: /* @__PURE__ */ jsx80(IconMoodPlus2, { size: 16, stroke: 1.5 }) }),
6010
- children: /* @__PURE__ */ jsx80(
6049
+ trigger: /* @__PURE__ */ jsx81(IconButton, { variant: "muted", tooltip: "Add a reaction", "aria-label": "Add a reaction", children: /* @__PURE__ */ jsx81(IconMoodPlus2, { size: 16, stroke: 1.5 }) }),
6050
+ children: /* @__PURE__ */ jsx81(
6011
6051
  ReactionPicker,
6012
6052
  {
6013
6053
  options: [...options],
@@ -6024,8 +6064,8 @@ function AddReactionButton({ options, onPick, className }) {
6024
6064
  function ReactionRow({ reactions, options, nameOf, viewer, onToggle, className }) {
6025
6065
  const shown2 = reactions.filter((r) => r.by.length > 0);
6026
6066
  if (shown2.length === 0) return null;
6027
- return /* @__PURE__ */ jsxs58("div", { "data-reaction-row": true, className: cn("flex flex-wrap items-center gap-1", className), children: [
6028
- shown2.map((r) => /* @__PURE__ */ jsx80(WithTooltip, { label: whoReacted(r, nameOf, options, viewer), children: /* @__PURE__ */ jsx80(
6067
+ return /* @__PURE__ */ jsxs59("div", { "data-reaction-row": true, className: cn("flex flex-wrap items-center gap-1", className), children: [
6068
+ shown2.map((r) => /* @__PURE__ */ jsx81(WithTooltip, { label: whoReacted(r, nameOf, options, viewer), children: /* @__PURE__ */ jsx81(
6029
6069
  Reaction,
6030
6070
  {
6031
6071
  emoji: r.emoji,
@@ -6036,13 +6076,13 @@ function ReactionRow({ reactions, options, nameOf, viewer, onToggle, className }
6036
6076
  onClick: () => onToggle?.(r.emoji)
6037
6077
  }
6038
6078
  ) }, r.emoji)),
6039
- onToggle && /* @__PURE__ */ jsx80(AddReactionButton, { options, onPick: onToggle })
6079
+ onToggle && /* @__PURE__ */ jsx81(AddReactionButton, { options, onPick: onToggle })
6040
6080
  ] });
6041
6081
  }
6042
6082
 
6043
6083
  // src/RepliesRow.tsx
6044
6084
  import { IconChevronRight as IconChevronRight4, IconMessage2 as IconMessage24 } from "@tabler/icons-react";
6045
- import { Fragment as Fragment22, jsx as jsx81, jsxs as jsxs59 } from "react/jsx-runtime";
6085
+ import { Fragment as Fragment22, jsx as jsx82, jsxs as jsxs60 } from "react/jsx-runtime";
6046
6086
  var ROW_CLASSES3 = "flex w-full items-center gap-2 pb-1.5 pl-8 pr-2";
6047
6087
  var OPEN_CLASSES = "border-accent-outline bg-accent-wash";
6048
6088
  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";
@@ -6051,9 +6091,9 @@ function RepliesRow({ count, faces, last, isNew = false, newCount, urgent = fals
6051
6091
  const label = `${count} ${count === 1 ? "reply" : "replies"}`;
6052
6092
  const fresh = newCount ?? (isNew ? 1 : 0);
6053
6093
  const name = newCount ? `${label}, ${newCount} new` : label;
6054
- const inner = /* @__PURE__ */ jsxs59(Fragment22, { children: [
6055
- withFaces && /* @__PURE__ */ jsx81("span", { className: "flex shrink-0 items-center", children: /* @__PURE__ */ jsx81(AvatarGroup, { size: 18, members: faces.map((f) => ({ name: f.name, picture: f.picture, bot: f.bot })) }) }),
6056
- /* @__PURE__ */ jsx81(
6094
+ const inner = /* @__PURE__ */ jsxs60(Fragment22, { children: [
6095
+ withFaces && /* @__PURE__ */ jsx82("span", { className: "flex shrink-0 items-center", children: /* @__PURE__ */ jsx82(AvatarGroup, { size: 18, members: faces.map((f) => ({ name: f.name, picture: f.picture, bot: f.bot })) }) }),
6096
+ /* @__PURE__ */ jsx82(
6057
6097
  IconMessage24,
6058
6098
  {
6059
6099
  size: 16,
@@ -6064,9 +6104,9 @@ function RepliesRow({ count, faces, last, isNew = false, newCount, urgent = fals
6064
6104
  )
6065
6105
  }
6066
6106
  ),
6067
- /* @__PURE__ */ jsx81("span", { className: "text-chip font-medium text-text-interactive transition-colors group-hover/replies:text-text-primary", children: label }),
6068
- last && /* @__PURE__ */ jsx81("span", { className: cn("mt-px text-small leading-3 text-text-muted", TIME_CLASSES), children: last }),
6069
- /* @__PURE__ */ jsx81(
6107
+ /* @__PURE__ */ jsx82("span", { className: "text-chip font-medium text-text-interactive transition-colors group-hover/replies:text-text-primary", children: label }),
6108
+ last && /* @__PURE__ */ jsx82("span", { className: cn("mt-px text-small leading-3 text-text-muted", TIME_CLASSES), children: last }),
6109
+ /* @__PURE__ */ jsx82(
6070
6110
  IconChevronRight4,
6071
6111
  {
6072
6112
  size: 12,
@@ -6075,20 +6115,20 @@ function RepliesRow({ count, faces, last, isNew = false, newCount, urgent = fals
6075
6115
  }
6076
6116
  )
6077
6117
  ] });
6078
- const chip = fresh > 0 && /* @__PURE__ */ jsxs59(Fragment22, { children: [
6079
- /* @__PURE__ */ jsx81("span", { className: "h-0.5 w-0.5 shrink-0 rounded-full bg-text-muted" }),
6080
- /* @__PURE__ */ jsx81(Chip, { type: urgent ? "warning" : "brand", label: `${fresh} new` })
6118
+ const chip = fresh > 0 && /* @__PURE__ */ jsxs60(Fragment22, { children: [
6119
+ /* @__PURE__ */ jsx82("span", { className: "h-0.5 w-0.5 shrink-0 rounded-full bg-text-muted" }),
6120
+ /* @__PURE__ */ jsx82(Chip, { type: urgent ? "warning" : "brand", label: `${fresh} new` })
6081
6121
  ] });
6082
6122
  if (!onOpen) {
6083
- return /* @__PURE__ */ jsxs59("div", { className: ROW_CLASSES3, children: [
6084
- /* @__PURE__ */ jsx81("div", { className: BOX_CLASSES, children: inner }),
6123
+ return /* @__PURE__ */ jsxs60("div", { className: ROW_CLASSES3, children: [
6124
+ /* @__PURE__ */ jsx82("div", { className: BOX_CLASSES, children: inner }),
6085
6125
  chip
6086
6126
  ] });
6087
6127
  }
6088
6128
  return (
6089
6129
  // @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
6090
- /* @__PURE__ */ jsxs59("button", { type: "button", className: cn(ROW_CLASSES3, "cursor-pointer text-left"), onClick: onOpen, "aria-expanded": open, "aria-label": `${name}, ${open ? "close" : "open"} the thread`, "data-interactive": true, children: [
6091
- /* @__PURE__ */ jsx81("span", { className: cn(BOX_CLASSES, open && OPEN_CLASSES), children: inner }),
6130
+ /* @__PURE__ */ jsxs60("button", { type: "button", className: cn(ROW_CLASSES3, "cursor-pointer text-left"), onClick: onOpen, "aria-expanded": open, "aria-label": `${name}, ${open ? "close" : "open"} the thread`, "data-interactive": true, children: [
6131
+ /* @__PURE__ */ jsx82("span", { className: cn(BOX_CLASSES, open && OPEN_CLASSES), children: inner }),
6092
6132
  chip
6093
6133
  ] })
6094
6134
  );
@@ -6096,14 +6136,14 @@ function RepliesRow({ count, faces, last, isNew = false, newCount, urgent = fals
6096
6136
 
6097
6137
  // src/ResolveDialog.tsx
6098
6138
  import { useState as useState23 } from "react";
6099
- import { jsx as jsx82, jsxs as jsxs60 } from "react/jsx-runtime";
6139
+ import { jsx as jsx83, jsxs as jsxs61 } from "react/jsx-runtime";
6100
6140
  function ResolveDialog({ onResolve, onCancel, refused }) {
6101
6141
  const [note, setNote] = useState23("");
6102
6142
  return (
6103
6143
  // Outlined at rest and green on hover in Signal, the kit's `resolve` look.
6104
- /* @__PURE__ */ jsx82(FormDialog, { title: "Resolve", submitLabel: "Resolve", submitVariant: "resolve", onSubmit: () => onResolve(note), onClose: onCancel, children: /* @__PURE__ */ jsxs60(Field, { label: "Resolution message (optional)", children: [
6105
- /* @__PURE__ */ jsx82(Textarea, { autoFocus: true, value: note, onChange: (e) => setNote(e.target.value), placeholder: "Summarize the outcome or decision...", className: "h-[109px]" }),
6106
- refused && /* @__PURE__ */ jsx82(FieldLine, { tone: "error", children: refused })
6144
+ /* @__PURE__ */ jsx83(FormDialog, { title: "Resolve", submitLabel: "Resolve", submitVariant: "resolve", onSubmit: () => onResolve(note), onClose: onCancel, children: /* @__PURE__ */ jsxs61(Field, { label: "Resolution message (optional)", children: [
6145
+ /* @__PURE__ */ jsx83(Textarea, { autoFocus: true, value: note, onChange: (e) => setNote(e.target.value), placeholder: "Summarize the outcome or decision...", className: "h-[109px]" }),
6146
+ refused && /* @__PURE__ */ jsx83(FieldLine, { tone: "error", children: refused })
6107
6147
  ] }) })
6108
6148
  );
6109
6149
  }
@@ -6151,31 +6191,31 @@ function useFaceLine(root, active, toDot = false) {
6151
6191
  }
6152
6192
 
6153
6193
  // src/PinnedComment.tsx
6154
- import { jsx as jsx83, jsxs as jsxs61 } from "react/jsx-runtime";
6194
+ import { jsx as jsx84, jsxs as jsxs62 } from "react/jsx-runtime";
6155
6195
  var goneWords = (deleted) => deleted ? "This comment was deleted." : "This comment can\u2019t be shown.";
6156
6196
  var GONE_CLOSED = "This thread takes no new replies.";
6157
6197
  function PinnedComment({ author, time, at: given, words, deleted = false, unseen = false }) {
6158
6198
  const at = momentOf(given);
6159
- return /* @__PURE__ */ jsx83(Card, { fill: "elevated", clip: true, children: deleted || unseen ? /* @__PURE__ */ jsx83("p", { className: "p-2 text-caption italic text-text-muted", children: goneWords(deleted) }) : /* @__PURE__ */ jsxs61("div", { className: "flex flex-col p-2", children: [
6160
- /* @__PURE__ */ jsxs61("div", { className: "flex items-center gap-2", children: [
6161
- /* @__PURE__ */ jsx83(Avatar, { size: 24, src: author.picture, alt: author.name, bot: author.bot }),
6162
- /* @__PURE__ */ jsx83("span", { className: "min-w-0 truncate text-body-2-strong text-text-primary", children: author.name }),
6163
- /* @__PURE__ */ jsx83(MetaText, { className: "shrink-0", children: at === void 0 ? time : /* @__PURE__ */ jsx83(WithTooltip, { label: exactTime(at), children: /* @__PURE__ */ jsx83("time", { dateTime: new Date(at).toISOString(), children: time }) }) })
6199
+ return /* @__PURE__ */ jsx84(Card, { fill: "elevated", clip: true, children: deleted || unseen ? /* @__PURE__ */ jsx84("p", { className: "p-2 text-caption italic text-text-muted", children: goneWords(deleted) }) : /* @__PURE__ */ jsxs62("div", { className: "flex flex-col p-2", children: [
6200
+ /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2", children: [
6201
+ /* @__PURE__ */ jsx84(Avatar, { size: 24, src: author.picture, alt: author.name, bot: author.bot }),
6202
+ /* @__PURE__ */ jsx84("span", { className: "min-w-0 truncate text-body-2-strong text-text-primary", children: author.name }),
6203
+ /* @__PURE__ */ jsx84(MetaText, { className: "shrink-0", children: at === void 0 ? time : /* @__PURE__ */ jsx84(WithTooltip, { label: exactTime(at), children: /* @__PURE__ */ jsx84("time", { dateTime: new Date(at).toISOString(), children: time }) }) })
6164
6204
  ] }),
6165
- /* @__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 }) })
6205
+ /* @__PURE__ */ jsx84("div", { className: "pb-2 pl-8 pr-2 pt-1", children: /* @__PURE__ */ jsx84("div", { className: "truncate text-caption text-text-secondary", children: words }) })
6166
6206
  ] }) });
6167
6207
  }
6168
6208
 
6169
6209
  // src/ConversationCard.tsx
6170
- import { Fragment as Fragment23, jsx as jsx84, jsxs as jsxs62 } from "react/jsx-runtime";
6210
+ import { Fragment as Fragment23, jsx as jsx85, jsxs as jsxs63 } from "react/jsx-runtime";
6171
6211
  function When({ time, at: given, timeHref, timeLabel = "Link to this" }) {
6172
6212
  const at = momentOf(given);
6173
6213
  const exact = at === void 0 ? void 0 : exactTime(at);
6174
- const said = at === void 0 ? time : /* @__PURE__ */ jsx84("time", { dateTime: new Date(at).toISOString(), children: time });
6214
+ const said = at === void 0 ? time : /* @__PURE__ */ jsx85("time", { dateTime: new Date(at).toISOString(), children: time });
6175
6215
  if (timeHref) {
6176
- return /* @__PURE__ */ jsx84(WithTooltip, { label: exact ? `${exact} \xB7 ${timeLabel}` : timeLabel, wrapperClassName: "shrink-0", children: /* @__PURE__ */ jsx84(MetaText, { className: "contents", children: /* @__PURE__ */ jsx84(Link, { href: timeHref, variant: "quiet", "data-interactive": true, children: said }) }) });
6216
+ return /* @__PURE__ */ jsx85(WithTooltip, { label: exact ? `${exact} \xB7 ${timeLabel}` : timeLabel, wrapperClassName: "shrink-0", children: /* @__PURE__ */ jsx85(MetaText, { className: "contents", children: /* @__PURE__ */ jsx85(Link, { href: timeHref, variant: "quiet", "data-interactive": true, children: said }) }) });
6177
6217
  }
6178
- return /* @__PURE__ */ jsx84(MetaText, { className: "shrink-0", children: exact ? /* @__PURE__ */ jsx84(WithTooltip, { label: exact, children: said }) : time });
6218
+ return /* @__PURE__ */ jsx85(MetaText, { className: "shrink-0", children: exact ? /* @__PURE__ */ jsx85(WithTooltip, { label: exact, children: said }) : time });
6179
6219
  }
6180
6220
  var fadeBefore = (end) => `linear-gradient(to right, black ${end - 16}px, transparent ${end}px)`;
6181
6221
  function useClearOfStrip(root, strip, shown2) {
@@ -6195,15 +6235,15 @@ function useClearOfStrip(root, strip, shown2) {
6195
6235
  return end;
6196
6236
  }
6197
6237
  function Head({ author, time, at, timeHref, timeLabel, edited, isNew, urgent, meta, end }) {
6198
- return /* @__PURE__ */ jsxs62("div", { className: "flex w-full items-center gap-2", children: [
6199
- /* @__PURE__ */ jsxs62("div", { "data-head": true, className: "flex min-w-0 flex-1 items-center gap-2", style: end === void 0 ? void 0 : { maskImage: fadeBefore(end), WebkitMaskImage: fadeBefore(end) }, children: [
6200
- /* @__PURE__ */ jsx84("span", { "data-face": true, className: "relative flex shrink-0", children: /* @__PURE__ */ jsx84(Avatar, { size: 24, src: author.picture, alt: author.name, bot: author.bot }) }),
6201
- /* @__PURE__ */ jsx84("span", { className: "min-w-0 truncate text-body-2-strong text-text-primary", children: author.name }),
6202
- /* @__PURE__ */ jsx84(When, { time, at, timeHref, timeLabel }),
6203
- /* @__PURE__ */ jsx84(EditedMarker, { edited }),
6238
+ return /* @__PURE__ */ jsxs63("div", { className: "flex w-full items-center gap-2", children: [
6239
+ /* @__PURE__ */ jsxs63("div", { "data-head": true, className: "flex min-w-0 flex-1 items-center gap-2", style: end === void 0 ? void 0 : { maskImage: fadeBefore(end), WebkitMaskImage: fadeBefore(end) }, children: [
6240
+ /* @__PURE__ */ jsx85("span", { "data-face": true, className: "relative flex shrink-0", children: /* @__PURE__ */ jsx85(Avatar, { size: 24, src: author.picture, alt: author.name, bot: author.bot }) }),
6241
+ /* @__PURE__ */ jsx85("span", { className: "min-w-0 truncate text-body-2-strong text-text-primary", children: author.name }),
6242
+ /* @__PURE__ */ jsx85(When, { time, at, timeHref, timeLabel }),
6243
+ /* @__PURE__ */ jsx85(EditedMarker, { edited }),
6204
6244
  meta
6205
6245
  ] }),
6206
- isNew && (urgent ? /* @__PURE__ */ jsx84(UrgentMark, {}) : /* @__PURE__ */ jsx84(UnreadDot, {}))
6246
+ isNew && (urgent ? /* @__PURE__ */ jsx85(UrgentMark, {}) : /* @__PURE__ */ jsx85(UnreadDot, {}))
6207
6247
  ] });
6208
6248
  }
6209
6249
  function attentionOf(fresh, urgent, inThreadCard) {
@@ -6211,13 +6251,13 @@ function attentionOf(fresh, urgent, inThreadCard) {
6211
6251
  return urgent ? "warning" : "accent";
6212
6252
  }
6213
6253
  function EndedLine({ by, note, at }) {
6214
- return /* @__PURE__ */ jsxs62("div", { "data-resolved": "line", className: "relative flex items-start py-1", children: [
6215
- /* @__PURE__ */ jsx84("span", { className: "flex h-[17px] w-10 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx84("span", { "data-dot": true, className: "relative z-10 flex size-2 items-center justify-center rounded-full bg-bg-surface", children: /* @__PURE__ */ jsx84("span", { className: "size-1 rounded-full bg-success-default" }) }) }),
6216
- /* @__PURE__ */ jsxs62("p", { className: "min-w-0 text-h5 leading-snug", children: [
6217
- /* @__PURE__ */ jsx84("span", { className: "whitespace-nowrap text-text-primary", children: by }),
6218
- /* @__PURE__ */ jsx84(IconArrowNarrowRight, { size: 12, stroke: 1.5, className: "mx-1.5 -mt-px inline shrink-0 text-text-primary" }),
6219
- /* @__PURE__ */ jsx84("span", { className: "text-text-secondary", children: note }),
6220
- at && /* @__PURE__ */ jsxs62(MetaText, { size: "chip", children: [
6254
+ return /* @__PURE__ */ jsxs63("div", { "data-resolved": "line", className: "relative flex items-start py-1", children: [
6255
+ /* @__PURE__ */ jsx85("span", { className: "flex h-[17px] w-10 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx85("span", { "data-dot": true, className: "relative z-10 flex size-2 items-center justify-center rounded-full bg-bg-surface", children: /* @__PURE__ */ jsx85("span", { className: "size-1 rounded-full bg-success-default" }) }) }),
6256
+ /* @__PURE__ */ jsxs63("p", { className: "min-w-0 text-h5 leading-snug", children: [
6257
+ /* @__PURE__ */ jsx85("span", { className: "whitespace-nowrap text-text-primary", children: by }),
6258
+ /* @__PURE__ */ jsx85(IconArrowNarrowRight, { size: 12, stroke: 1.5, className: "mx-1.5 -mt-px inline shrink-0 text-text-primary" }),
6259
+ /* @__PURE__ */ jsx85("span", { className: "text-text-secondary", children: note }),
6260
+ at && /* @__PURE__ */ jsxs63(MetaText, { size: "chip", children: [
6221
6261
  " \xB7 ",
6222
6262
  at
6223
6263
  ] })
@@ -6226,13 +6266,13 @@ function EndedLine({ by, note, at }) {
6226
6266
  }
6227
6267
  function ResolvedCheck({ by, note, at }) {
6228
6268
  const said = `Resolved by ${by}${at ? `, ${at}` : ""}${note ? `: ${note}` : ""}`;
6229
- return /* @__PURE__ */ jsx84(WithTooltip, { label: said, wrapperClassName: "flex shrink-0", children: /* @__PURE__ */ jsxs62("span", { className: "flex items-center gap-1 text-caption text-success-default", children: [
6230
- /* @__PURE__ */ jsx84(IconCircleCheck4, { size: 14, stroke: 1.5 }),
6269
+ return /* @__PURE__ */ jsx85(WithTooltip, { label: said, wrapperClassName: "flex shrink-0", children: /* @__PURE__ */ jsxs63("span", { className: "flex items-center gap-1 text-caption text-success-default", children: [
6270
+ /* @__PURE__ */ jsx85(IconCircleCheck4, { size: 14, stroke: 1.5 }),
6231
6271
  "Resolved"
6232
6272
  ] }) });
6233
6273
  }
6234
6274
  function Words({ children }) {
6235
- return /* @__PURE__ */ jsx84("div", { className: "relative w-full break-words pb-2 pl-8 pr-2 pt-1", children: /* @__PURE__ */ jsx84("div", { className: "flex flex-col gap-2 text-body-2 text-text-secondary", children }) });
6275
+ return /* @__PURE__ */ jsx85("div", { className: "relative w-full break-words pb-2 pl-8 pr-2 pt-1", children: /* @__PURE__ */ jsx85("div", { className: "flex flex-col gap-2 text-body-2 text-text-secondary", children }) });
6236
6276
  }
6237
6277
  function useReactionRefusal(reactions) {
6238
6278
  const [refused, setRefused] = useState25();
@@ -6259,9 +6299,9 @@ function useReactionRefusal(reactions) {
6259
6299
  }
6260
6300
  function Reactions({ reactions, refused, readOnly }) {
6261
6301
  if ((!reactions || reactions.reactions.length === 0) && !refused) return null;
6262
- return /* @__PURE__ */ jsxs62("div", { className: "relative flex w-full flex-col gap-1 pb-2 pl-8 pt-1", children: [
6263
- reactions && /* @__PURE__ */ jsx84(ReactionRow, { ...reactions, onToggle: readOnly ? void 0 : reactions.onToggle }),
6264
- refused && /* @__PURE__ */ jsxs62(FieldLine, { tone: "error", children: [
6302
+ return /* @__PURE__ */ jsxs63("div", { className: "relative flex w-full flex-col gap-1 pb-2 pl-8 pt-1", children: [
6303
+ reactions && /* @__PURE__ */ jsx85(ReactionRow, { ...reactions, onToggle: readOnly ? void 0 : reactions.onToggle }),
6304
+ refused && /* @__PURE__ */ jsxs63(FieldLine, { tone: "error", children: [
6265
6305
  "Not reacted: ",
6266
6306
  refused,
6267
6307
  "."
@@ -6269,11 +6309,11 @@ function Reactions({ reactions, refused, readOnly }) {
6269
6309
  ] });
6270
6310
  }
6271
6311
  function Editing({ author, heading, children }) {
6272
- return /* @__PURE__ */ jsxs62("div", { className: "p-2", children: [
6273
- !!heading && /* @__PURE__ */ jsx84("div", { className: "w-full pb-2", children: heading }),
6274
- /* @__PURE__ */ jsxs62("div", { className: "flex items-start gap-2", children: [
6275
- /* @__PURE__ */ jsx84(Avatar, { size: 24, src: author.picture, alt: author.name, bot: author.bot, className: "mt-1 shrink-0" }),
6276
- /* @__PURE__ */ jsx84("div", { className: "min-w-0 flex-1", children })
6312
+ return /* @__PURE__ */ jsxs63("div", { className: "p-2", children: [
6313
+ !!heading && /* @__PURE__ */ jsx85("div", { className: "w-full pb-2", children: heading }),
6314
+ /* @__PURE__ */ jsxs63("div", { className: "flex items-start gap-2", children: [
6315
+ /* @__PURE__ */ jsx85(Avatar, { size: 24, src: author.picture, alt: author.name, bot: author.bot, className: "mt-1 shrink-0" }),
6316
+ /* @__PURE__ */ jsx85("div", { className: "min-w-0 flex-1", children })
6277
6317
  ] })
6278
6318
  ] });
6279
6319
  }
@@ -6287,7 +6327,7 @@ function stillHere(root) {
6287
6327
  }
6288
6328
  function DeleteQuestion({ noun, onDelete, refused, onClose, children }) {
6289
6329
  const [answered, setAnswered] = useState25(false);
6290
- return /* @__PURE__ */ jsx84(
6330
+ return /* @__PURE__ */ jsx85(
6291
6331
  ConfirmDialog,
6292
6332
  {
6293
6333
  title: `Delete this ${noun}?`,
@@ -6306,7 +6346,7 @@ function DeleteQuestion({ noun, onDelete, refused, onClose, children }) {
6306
6346
  }
6307
6347
  function ResolveQuestion({ onResolve, refused, onClose }) {
6308
6348
  const [answered, setAnswered] = useState25(false);
6309
- return /* @__PURE__ */ jsx84(
6349
+ return /* @__PURE__ */ jsx85(
6310
6350
  ResolveDialog,
6311
6351
  {
6312
6352
  refused: answered ? refused : void 0,
@@ -6359,9 +6399,9 @@ function ConversationCard(props) {
6359
6399
  const reply = onReply ?? item?.show;
6360
6400
  const marked = selected ?? (item && !item.under ? item.open : void 0);
6361
6401
  const under = !!item?.under;
6362
- const repliesRow = replies && replies.count > 0 && /* @__PURE__ */ jsx84(RepliesRow, { ...replies, onOpen: replies.onOpen ?? (under ? item?.toggle : void 0), open: replies.open ?? (under && !!item?.open), urgent });
6363
- return /* @__PURE__ */ jsxs62(Fragment23, { children: [
6364
- /* @__PURE__ */ jsxs62(
6402
+ const repliesRow = replies && replies.count > 0 && /* @__PURE__ */ jsx85(RepliesRow, { ...replies, onOpen: replies.onOpen ?? (under ? item?.toggle : void 0), open: replies.open ?? (under && !!item?.open), urgent });
6403
+ return /* @__PURE__ */ jsxs63(Fragment23, { children: [
6404
+ /* @__PURE__ */ jsxs63(
6365
6405
  Card,
6366
6406
  {
6367
6407
  ref: root,
@@ -6386,14 +6426,14 @@ function ConversationCard(props) {
6386
6426
  setHovered(false);
6387
6427
  },
6388
6428
  children: [
6389
- isEditing ? /* @__PURE__ */ jsx84(Editing, { author, heading, children: editor(() => setEditing(false)) }) : /* @__PURE__ */ jsxs62("div", { "data-comment-body": true, className: "flex flex-col items-start px-2 pt-2", children: [
6429
+ isEditing ? /* @__PURE__ */ jsx85(Editing, { author, heading, children: editor(() => setEditing(false)) }) : /* @__PURE__ */ jsxs63("div", { "data-comment-body": true, className: "flex flex-col items-start px-2 pt-2", children: [
6390
6430
  !!heading && // Faded clear of the strip, as the head's words are (useClearOfStrip).
6391
- /* @__PURE__ */ jsx84("div", { className: "w-full pb-2", style: wordsEnd === void 0 ? void 0 : { maskImage: fadeBefore(wordsEnd), WebkitMaskImage: fadeBefore(wordsEnd) }, children: heading }),
6392
- deleted ? /* @__PURE__ */ jsxs62(Fragment23, { children: [
6393
- !!about && /* @__PURE__ */ jsx84("div", { className: "relative w-full pl-8 pr-2", children: about }),
6394
- /* @__PURE__ */ jsx84("p", { className: cn("w-full pb-2 pl-8 pr-2 text-caption italic text-text-muted", !!about && "pt-1"), children: goneWords(isDeleted) })
6395
- ] }) : /* @__PURE__ */ jsxs62(Fragment23, { children: [
6396
- /* @__PURE__ */ jsx84(
6431
+ /* @__PURE__ */ jsx85("div", { className: "w-full pb-2", style: wordsEnd === void 0 ? void 0 : { maskImage: fadeBefore(wordsEnd), WebkitMaskImage: fadeBefore(wordsEnd) }, children: heading }),
6432
+ deleted ? /* @__PURE__ */ jsxs63(Fragment23, { children: [
6433
+ !!about && /* @__PURE__ */ jsx85("div", { className: "relative w-full pl-8 pr-2", children: about }),
6434
+ /* @__PURE__ */ jsx85("p", { className: cn("w-full pb-2 pl-8 pr-2 text-caption italic text-text-muted", !!about && "pt-1"), children: goneWords(isDeleted) })
6435
+ ] }) : /* @__PURE__ */ jsxs63(Fragment23, { children: [
6436
+ /* @__PURE__ */ jsx85(
6397
6437
  Head,
6398
6438
  {
6399
6439
  author,
@@ -6404,24 +6444,24 @@ function ConversationCard(props) {
6404
6444
  edited: props.edited,
6405
6445
  isNew,
6406
6446
  urgent,
6407
- meta: resolved && /* @__PURE__ */ jsx84(ResolvedCheck, { by: resolved.by, note: resolved.note, at: resolved.at }),
6447
+ meta: resolved && /* @__PURE__ */ jsx85(ResolvedCheck, { by: resolved.by, note: resolved.note, at: resolved.at }),
6408
6448
  end: wordsEnd
6409
6449
  }
6410
6450
  ),
6411
6451
  !!about && // Under the name, above the words (Katerina, 1 November).
6412
- /* @__PURE__ */ jsx84("div", { className: "relative w-full pl-8 pr-2 pt-0.5", children: about }),
6413
- /* @__PURE__ */ jsx84(Words, { children })
6452
+ /* @__PURE__ */ jsx85("div", { className: "relative w-full pl-8 pr-2 pt-0.5", children: about }),
6453
+ /* @__PURE__ */ jsx85(Words, { children })
6414
6454
  ] }),
6415
- !deleted && files && /* @__PURE__ */ jsx84("div", { className: "relative flex w-full flex-wrap items-start gap-2 pb-2 pl-8 pr-2", children: files }),
6416
- /* @__PURE__ */ jsx84(Reactions, { reactions: reactionRow, refused: reactionRefused, readOnly }),
6455
+ !deleted && files && /* @__PURE__ */ jsx85("div", { className: "relative flex w-full flex-wrap items-start gap-2 pb-2 pl-8 pr-2", children: files }),
6456
+ /* @__PURE__ */ jsx85(Reactions, { reactions: reactionRow, refused: reactionRefused, readOnly }),
6417
6457
  resolved?.note && // Who resolved it and the note, above the way into the replies; the check by the time says "Resolved" (Katerina, 1 November).
6418
- /* @__PURE__ */ jsx84("div", { className: "relative w-full pb-1", children: /* @__PURE__ */ jsx84("div", { className: "-ml-2 w-[calc(100%+8px)]", children: /* @__PURE__ */ jsx84(EndedLine, { by: resolved.by, note: resolved.note, at: resolved.at }) }) }),
6419
- repliesRow && /* @__PURE__ */ jsx84("div", { className: "relative w-full", children: repliesRow })
6458
+ /* @__PURE__ */ jsx85("div", { className: "relative w-full pb-1", children: /* @__PURE__ */ jsx85("div", { className: "-ml-2 w-[calc(100%+8px)]", children: /* @__PURE__ */ jsx85(EndedLine, { by: resolved.by, note: resolved.note, at: resolved.at }) }) }),
6459
+ repliesRow && /* @__PURE__ */ jsx85("div", { className: "relative w-full", children: repliesRow })
6420
6460
  ] }),
6421
6461
  dotLine && // One bar from the face to the dot, measured (useFaceLine): 2px, centred under the 24px face, 8px in.
6422
6462
  // Its top and height come from the measure: where the face ends and the dot stands are not known ahead.
6423
- /* @__PURE__ */ jsx84("span", { "aria-hidden": true, className: "pointer-events-none absolute left-[19px] w-0.5 bg-border-default", style: { top: dotLine.top, height: dotLine.height } }),
6424
- showStrip && /* @__PURE__ */ jsx84("div", { ref: strip, className: "absolute right-1 top-1 z-10", children: /* @__PURE__ */ jsx84(
6463
+ /* @__PURE__ */ jsx85("span", { "aria-hidden": true, className: "pointer-events-none absolute left-[19px] w-0.5 bg-border-default", style: { top: dotLine.top, height: dotLine.height } }),
6464
+ showStrip && /* @__PURE__ */ jsx85("div", { ref: strip, className: "absolute right-1 top-1 z-10", children: /* @__PURE__ */ jsx85(
6425
6465
  ConversationActions,
6426
6466
  {
6427
6467
  options: reactions?.options,
@@ -6434,10 +6474,10 @@ function ConversationCard(props) {
6434
6474
  resolved: !!resolved,
6435
6475
  onResolve: onResolve && (() => setResolving(true)),
6436
6476
  onReopen,
6437
- more: offersMenu && /* @__PURE__ */ jsx84(
6477
+ more: offersMenu && /* @__PURE__ */ jsx85(
6438
6478
  ConversationMenu,
6439
6479
  {
6440
- trigger: /* @__PURE__ */ jsx84(ToolbarButton, { tooltip: moreLabel, "aria-label": moreLabel, children: /* @__PURE__ */ jsx84(IconDotsVertical4, { size: 16, stroke: 1.5 }) }),
6480
+ trigger: /* @__PURE__ */ jsx85(ToolbarButton, { tooltip: moreLabel, "aria-label": moreLabel, children: /* @__PURE__ */ jsx85(IconDotsVertical5, { size: 16, stroke: 1.5 }) }),
6441
6481
  open: menuOpen,
6442
6482
  onOpenChange: (open) => {
6443
6483
  setMenuOpen(open);
@@ -6461,15 +6501,15 @@ function ConversationCard(props) {
6461
6501
  ]
6462
6502
  }
6463
6503
  ),
6464
- deleting && onDelete && /* @__PURE__ */ jsx84(DeleteQuestion, { noun, onDelete, refused: deleteRefused, onClose: () => setDeleting(false), children: deleteNote !== void 0 ? typeof deleteNote === "string" ? /* @__PURE__ */ jsx84("p", { children: deleteNote }) : deleteNote : /* @__PURE__ */ jsxs62(Fragment23, { children: [
6465
- /* @__PURE__ */ jsx84("p", { children: "It is deleted for everyone." }),
6466
- replies && replies.count > 0 && /* @__PURE__ */ jsxs62("p", { children: [
6504
+ deleting && onDelete && /* @__PURE__ */ jsx85(DeleteQuestion, { noun, onDelete, refused: deleteRefused, onClose: () => setDeleting(false), children: deleteNote !== void 0 ? typeof deleteNote === "string" ? /* @__PURE__ */ jsx85("p", { children: deleteNote }) : deleteNote : /* @__PURE__ */ jsxs63(Fragment23, { children: [
6505
+ /* @__PURE__ */ jsx85("p", { children: "It is deleted for everyone." }),
6506
+ replies && replies.count > 0 && /* @__PURE__ */ jsxs63("p", { children: [
6467
6507
  "Its ",
6468
6508
  replies.count === 1 ? "reply stays" : `${replies.count} replies stay`,
6469
6509
  "."
6470
6510
  ] })
6471
6511
  ] }) }),
6472
- resolving && onResolve && /* @__PURE__ */ jsx84(ResolveQuestion, { onResolve, refused: resolveRefused, onClose: () => setResolving(false) })
6512
+ resolving && onResolve && /* @__PURE__ */ jsx85(ResolveQuestion, { onResolve, refused: resolveRefused, onClose: () => setResolving(false) })
6473
6513
  ] });
6474
6514
  }
6475
6515
  function ReplyCard(props) {
@@ -6492,8 +6532,8 @@ function ReplyCard(props) {
6492
6532
  useLayoutEffect7(() => {
6493
6533
  if (drawn) drawn.added += 1;
6494
6534
  }, [drawn]);
6495
- return /* @__PURE__ */ jsxs62(Fragment23, { children: [
6496
- /* @__PURE__ */ jsxs62(
6535
+ return /* @__PURE__ */ jsxs63(Fragment23, { children: [
6536
+ /* @__PURE__ */ jsxs63(
6497
6537
  Card,
6498
6538
  {
6499
6539
  ref: root,
@@ -6516,15 +6556,15 @@ function ReplyCard(props) {
6516
6556
  setHovered(false);
6517
6557
  },
6518
6558
  children: [
6519
- isEditing ? /* @__PURE__ */ jsx84(Editing, { author, children: editor(() => setEditing(false)) }) : /* @__PURE__ */ jsxs62("div", { className: "flex flex-col items-start px-2 pt-2", children: [
6520
- /* @__PURE__ */ jsx84(Head, { author, time: props.time, at: props.at, timeHref: props.timeHref, timeLabel: props.timeLabel, edited: props.edited, isNew, urgent, end: wordsEnd }),
6521
- about && /* @__PURE__ */ jsx84("div", { className: "w-full pl-8 pr-2 pt-0.5", children: about }),
6522
- /* @__PURE__ */ jsx84(Words, { children }),
6523
- files && /* @__PURE__ */ jsx84("div", { className: "flex w-full flex-wrap items-start gap-2 pb-2 pl-8 pr-2", children: files }),
6524
- /* @__PURE__ */ jsx84(Reactions, { reactions, refused: reactionRefused, readOnly })
6559
+ isEditing ? /* @__PURE__ */ jsx85(Editing, { author, children: editor(() => setEditing(false)) }) : /* @__PURE__ */ jsxs63("div", { className: "flex flex-col items-start px-2 pt-2", children: [
6560
+ /* @__PURE__ */ jsx85(Head, { author, time: props.time, at: props.at, timeHref: props.timeHref, timeLabel: props.timeLabel, edited: props.edited, isNew, urgent, end: wordsEnd }),
6561
+ about && /* @__PURE__ */ jsx85("div", { className: "w-full pl-8 pr-2 pt-0.5", children: about }),
6562
+ /* @__PURE__ */ jsx85(Words, { children }),
6563
+ files && /* @__PURE__ */ jsx85("div", { className: "flex w-full flex-wrap items-start gap-2 pb-2 pl-8 pr-2", children: files }),
6564
+ /* @__PURE__ */ jsx85(Reactions, { reactions, refused: reactionRefused, readOnly })
6525
6565
  ] }),
6526
6566
  showStrip && // In a box of its own, as a comment's: the box is what the head measures to keep clear of.
6527
- /* @__PURE__ */ jsx84("div", { ref: strip, className: "absolute right-1 top-1 z-10", children: /* @__PURE__ */ jsx84(
6567
+ /* @__PURE__ */ jsx85("div", { ref: strip, className: "absolute right-1 top-1 z-10", children: /* @__PURE__ */ jsx85(
6528
6568
  ConversationActions,
6529
6569
  {
6530
6570
  options: reactions?.options,
@@ -6533,10 +6573,10 @@ function ReplyCard(props) {
6533
6573
  setPicking(open);
6534
6574
  if (!open) settle();
6535
6575
  },
6536
- more: offersMenu && /* @__PURE__ */ jsx84(
6576
+ more: offersMenu && /* @__PURE__ */ jsx85(
6537
6577
  ConversationMenu,
6538
6578
  {
6539
- trigger: /* @__PURE__ */ jsx84(ToolbarButton, { tooltip: moreLabel, "aria-label": moreLabel, children: /* @__PURE__ */ jsx84(IconDotsVertical4, { size: 16, stroke: 1.5 }) }),
6579
+ trigger: /* @__PURE__ */ jsx85(ToolbarButton, { tooltip: moreLabel, "aria-label": moreLabel, children: /* @__PURE__ */ jsx85(IconDotsVertical5, { size: 16, stroke: 1.5 }) }),
6540
6580
  open: menuOpen,
6541
6581
  onOpenChange: (next) => {
6542
6582
  setMenuOpen(next);
@@ -6556,7 +6596,7 @@ function ReplyCard(props) {
6556
6596
  ]
6557
6597
  }
6558
6598
  ),
6559
- deleting && onDelete && /* @__PURE__ */ jsx84(DeleteQuestion, { noun, onDelete, refused: deleteRefused, onClose: () => setDeleting(false), children: deleteNote === void 0 ? /* @__PURE__ */ jsx84("p", { children: "It is deleted for everyone." }) : typeof deleteNote === "string" ? /* @__PURE__ */ jsx84("p", { children: deleteNote }) : deleteNote })
6599
+ deleting && onDelete && /* @__PURE__ */ jsx85(DeleteQuestion, { noun, onDelete, refused: deleteRefused, onClose: () => setDeleting(false), children: deleteNote === void 0 ? /* @__PURE__ */ jsx85("p", { children: "It is deleted for everyone." }) : typeof deleteNote === "string" ? /* @__PURE__ */ jsx85("p", { children: deleteNote }) : deleteNote })
6560
6600
  ] });
6561
6601
  }
6562
6602
 
@@ -6564,27 +6604,27 @@ function ReplyCard(props) {
6564
6604
  import { Fragment as Fragment24, useCallback as useCallback6, useEffect as useEffect14, useLayoutEffect as useLayoutEffect8, useRef as useRef20, useState as useState27 } from "react";
6565
6605
 
6566
6606
  // src/Panel.tsx
6567
- import { jsx as jsx85, jsxs as jsxs63 } from "react/jsx-runtime";
6607
+ import { jsx as jsx86, jsxs as jsxs64 } from "react/jsx-runtime";
6568
6608
  function Frame({ title, chevron = false, actions, header, children, footer, bodyClassName, bodyRef, onBodyScroll, className, broken = false }) {
6569
- return /* @__PURE__ */ jsxs63("div", { className: cn("flex h-full min-h-0 flex-1 flex-col", className), children: [
6570
- header ?? /* @__PURE__ */ jsx85(ContainerHeader, { title, chevron, actions }),
6609
+ return /* @__PURE__ */ jsxs64("div", { className: cn("flex h-full min-h-0 flex-1 flex-col", className), children: [
6610
+ header ?? /* @__PURE__ */ jsx86(ContainerHeader, { title, chevron, actions }),
6571
6611
  broken ? (
6572
6612
  // The message takes the room the body had and centres itself in it.
6573
- /* @__PURE__ */ jsx85("div", { className: "flex min-h-0 flex-1 flex-col px-4", children })
6574
- ) : /* @__PURE__ */ jsx85(ScrollArea, { className: "min-h-0 flex-1", contentClassName: bodyClassName, viewportRef: bodyRef, onScroll: onBodyScroll, children }),
6575
- !broken && footer && /* @__PURE__ */ jsx85("div", { className: "shrink-0", children: footer })
6613
+ /* @__PURE__ */ jsx86("div", { className: "flex min-h-0 flex-1 flex-col px-4", children })
6614
+ ) : /* @__PURE__ */ jsx86(ScrollArea, { className: "min-h-0 flex-1", contentClassName: bodyClassName, viewportRef: bodyRef, onScroll: onBodyScroll, children }),
6615
+ !broken && footer && /* @__PURE__ */ jsx86("div", { className: "shrink-0", children: footer })
6576
6616
  ] });
6577
6617
  }
6578
6618
  function Panel(props) {
6579
- return /* @__PURE__ */ jsx85(
6619
+ return /* @__PURE__ */ jsx86(
6580
6620
  ErrorBoundary,
6581
6621
  {
6582
6622
  label: "panel",
6583
6623
  frame: (message) => (
6584
6624
  // Only the name comes back with the message: the actions and the footer may be what threw.
6585
- /* @__PURE__ */ jsx85(Frame, { title: props.title, chevron: props.chevron, className: props.className, broken: true, children: message })
6625
+ /* @__PURE__ */ jsx86(Frame, { title: props.title, chevron: props.chevron, className: props.className, broken: true, children: message })
6586
6626
  ),
6587
- children: /* @__PURE__ */ jsx85(Frame, { ...props })
6627
+ children: /* @__PURE__ */ jsx86(Frame, { ...props })
6588
6628
  }
6589
6629
  );
6590
6630
  }
@@ -6688,11 +6728,11 @@ function useWatchSeen(seen, root, attribute) {
6688
6728
  }
6689
6729
 
6690
6730
  // src/ConversationLayout.tsx
6691
- import { Fragment as Fragment25, jsx as jsx86, jsxs as jsxs64 } from "react/jsx-runtime";
6731
+ import { Fragment as Fragment25, jsx as jsx87, jsxs as jsxs65 } from "react/jsx-runtime";
6692
6732
  var threadOf = (item) => typeof item?.thread === "function" ? item.thread() : item?.thread;
6693
6733
  function List({ items, open, under, above, loading, empty, change, caret }) {
6694
- if (loading) return /* @__PURE__ */ jsx86(SkeletonConversation, {});
6695
- if (items.length === 0) return typeof empty === "string" ? /* @__PURE__ */ jsx86(EmptyState, { scope: "section", message: empty }) : /* @__PURE__ */ jsx86(Fragment25, { children: empty });
6734
+ if (loading) return /* @__PURE__ */ jsx87(SkeletonConversation, {});
6735
+ if (items.length === 0) return typeof empty === "string" ? /* @__PURE__ */ jsx87(EmptyState, { scope: "section", message: empty }) : /* @__PURE__ */ jsx87(Fragment25, { children: empty });
6696
6736
  const stateOf = (item) => change && item.thread ? {
6697
6737
  under,
6698
6738
  open: open === item.id,
@@ -6701,12 +6741,12 @@ function List({ items, open, under, above, loading, empty, change, caret }) {
6701
6741
  } : null;
6702
6742
  const draw2 = (item) => {
6703
6743
  if (!under) {
6704
- return /* @__PURE__ */ jsxs64(Fragment24, { children: [
6744
+ return /* @__PURE__ */ jsxs65(Fragment24, { children: [
6705
6745
  item.before,
6706
- /* @__PURE__ */ jsx86("div", { "data-conversation-item": item.id, className: cn("flex flex-col", SHOWN_CLASSES), children: /* @__PURE__ */ jsx86(InConversationItem.Provider, { value: stateOf(item), children: item.card }) })
6746
+ /* @__PURE__ */ jsx87("div", { "data-conversation-item": item.id, className: cn("flex flex-col", SHOWN_CLASSES), children: /* @__PURE__ */ jsx87(InConversationItem.Provider, { value: stateOf(item), children: item.card }) })
6707
6747
  ] }, item.id);
6708
6748
  }
6709
- return /* @__PURE__ */ jsx86(UnderItem, { item, isOpen: open === item.id && !!item.thread, state: stateOf(item), caret }, item.id);
6749
+ return /* @__PURE__ */ jsx87(UnderItem, { item, isOpen: open === item.id && !!item.thread, state: stateOf(item), caret }, item.id);
6710
6750
  };
6711
6751
  if (!under) {
6712
6752
  const stretches = [];
@@ -6722,11 +6762,11 @@ function List({ items, open, under, above, loading, empty, change, caret }) {
6722
6762
  seen.set(name, count);
6723
6763
  stretches.push({ key: `${item.day === void 0 ? "no-day" : `day:${name}`}#${count}`, day: item.day, items: [item] });
6724
6764
  }
6725
- return /* @__PURE__ */ jsxs64(Fragment25, { children: [
6765
+ return /* @__PURE__ */ jsxs65(Fragment25, { children: [
6726
6766
  above,
6727
6767
  stretches.map(
6728
- (stretch) => stretch.day === void 0 ? /* @__PURE__ */ jsx86(Fragment24, { children: stretch.items.map(draw2) }, stretch.key) : /* @__PURE__ */ jsxs64("div", { className: "flex flex-col gap-2", children: [
6729
- /* @__PURE__ */ jsx86(Divider, { look: "section", label: stretch.day, sticky: true }),
6768
+ (stretch) => stretch.day === void 0 ? /* @__PURE__ */ jsx87(Fragment24, { children: stretch.items.map(draw2) }, stretch.key) : /* @__PURE__ */ jsxs65("div", { className: "flex flex-col gap-2", children: [
6769
+ /* @__PURE__ */ jsx87(Divider, { look: "section", label: stretch.day, sticky: true }),
6730
6770
  stretch.items.map(draw2)
6731
6771
  ] }, stretch.key)
6732
6772
  )
@@ -6734,11 +6774,11 @@ function List({ items, open, under, above, loading, empty, change, caret }) {
6734
6774
  }
6735
6775
  const resolved = items.filter((item) => item.resolved);
6736
6776
  const gone = items.filter((item) => item.gone && !item.resolved);
6737
- const group = (title, list) => list.length > 0 && /* @__PURE__ */ jsx86(
6777
+ const group = (title, list) => list.length > 0 && /* @__PURE__ */ jsx87(
6738
6778
  CollapsibleSection,
6739
6779
  {
6740
6780
  title,
6741
- trailing: /* @__PURE__ */ jsx86(Chip, { type: "neutral", label: String(list.length) }),
6781
+ trailing: /* @__PURE__ */ jsx87(Chip, { type: "neutral", label: String(list.length) }),
6742
6782
  defaultOpen: false,
6743
6783
  openFor: list.some((item) => item.id === open) ? open : void 0,
6744
6784
  className: "shrink-0",
@@ -6746,7 +6786,7 @@ function List({ items, open, under, above, loading, empty, change, caret }) {
6746
6786
  children: list.map(draw2)
6747
6787
  }
6748
6788
  );
6749
- return /* @__PURE__ */ jsxs64(Fragment25, { children: [
6789
+ return /* @__PURE__ */ jsxs65(Fragment25, { children: [
6750
6790
  above,
6751
6791
  items.filter((item) => !item.resolved && !item.gone).map(draw2),
6752
6792
  group("On deleted blocks", gone),
@@ -6756,7 +6796,7 @@ function List({ items, open, under, above, loading, empty, change, caret }) {
6756
6796
  function UnderItem({ item, isOpen, state, caret }) {
6757
6797
  const root = useRef20(null);
6758
6798
  const line = useFaceLine(root, isOpen);
6759
- return /* @__PURE__ */ jsxs64(
6799
+ return /* @__PURE__ */ jsxs65(
6760
6800
  Card,
6761
6801
  {
6762
6802
  ref: root,
@@ -6768,13 +6808,13 @@ function UnderItem({ item, isOpen, state, caret }) {
6768
6808
  quietUntilHover: !isOpen,
6769
6809
  className: cn("relative flex flex-col", isOpen && "pb-2", SHOWN_CLASSES),
6770
6810
  children: [
6771
- /* @__PURE__ */ jsx86(InConversationItem.Provider, { value: state, children: /* @__PURE__ */ jsx86(InThreadCard.Provider, { value: isOpen, children: /* @__PURE__ */ jsxs64(LineByLayout.Provider, { value: true, children: [
6772
- /* @__PURE__ */ jsx86("div", { className: "-m-px flex flex-col", children: item.card }),
6773
- isOpen && /* @__PURE__ */ jsx86(caretOnOpen.Provider, { value: caret, children: threadOf(item) })
6811
+ /* @__PURE__ */ jsx87(InConversationItem.Provider, { value: state, children: /* @__PURE__ */ jsx87(InThreadCard.Provider, { value: isOpen, children: /* @__PURE__ */ jsxs65(LineByLayout.Provider, { value: true, children: [
6812
+ /* @__PURE__ */ jsx87("div", { className: "-m-px flex flex-col", children: item.card }),
6813
+ isOpen && /* @__PURE__ */ jsx87(caretOnOpen.Provider, { value: caret, children: threadOf(item) })
6774
6814
  ] }) }) }),
6775
6815
  line && // The face's line, one bar, last so it stands over a hovered card's fill; 19px in, centred under the face.
6776
6816
  // Its top and height come from the measure: where the face and the last reply end are not known ahead.
6777
- /* @__PURE__ */ jsx86("span", { "aria-hidden": true, className: "pointer-events-none absolute left-[19px] w-0.5 bg-border-default", style: { top: line.top, height: line.height } })
6817
+ /* @__PURE__ */ jsx87("span", { "aria-hidden": true, className: "pointer-events-none absolute left-[19px] w-0.5 bg-border-default", style: { top: line.top, height: line.height } })
6778
6818
  ]
6779
6819
  }
6780
6820
  );
@@ -6897,49 +6937,49 @@ function ConversationLayout({
6897
6937
  // The body at least the column's height: the comments start at its top, and the note under them (`below`) is pushed
6898
6938
  // to its foot, so with few comments it sits on the box, as a short conversation's last line does in Peek's two
6899
6939
  // columns (Katerina, 2 November); with many it comes after them, and scrolls with them.
6900
- /* @__PURE__ */ jsxs64(Panel, { className: cn("w-[384px] flex-none", className), title, actions, bodyRef: setBody, bodyClassName: "flex min-h-full flex-col gap-2 p-3", footer: box && /* @__PURE__ */ jsx86("div", { className: "p-3", children: box }), children: [
6901
- /* @__PURE__ */ jsx86(List, { items, open, under: true, above, loading, empty, change, caret }),
6902
- !loading && below != null && below !== false && below !== "" && /* @__PURE__ */ jsx86("div", { className: "mt-auto flex flex-col gap-2", children: below })
6940
+ /* @__PURE__ */ jsxs65(Panel, { className: cn("w-[384px] flex-none", className), title, actions, bodyRef: setBody, bodyClassName: "flex min-h-full flex-col gap-2 p-3", footer: box && /* @__PURE__ */ jsx87("div", { className: "p-3", children: box }), children: [
6941
+ /* @__PURE__ */ jsx87(List, { items, open, under: true, above, loading, empty, change, caret }),
6942
+ !loading && below != null && below !== false && below !== "" && /* @__PURE__ */ jsx87("div", { className: "mt-auto flex flex-col gap-2", children: below })
6903
6943
  ] })
6904
6944
  );
6905
6945
  }
6906
6946
  const opened = threadOf(items.find((item) => item.id === open));
6907
6947
  const side = opened || aside;
6908
- return /* @__PURE__ */ jsxs64("div", { className: cn("flex min-h-0 min-w-0 flex-1", className), children: [
6909
- /* @__PURE__ */ jsx86(
6948
+ return /* @__PURE__ */ jsxs65("div", { className: cn("flex min-h-0 min-w-0 flex-1", className), children: [
6949
+ /* @__PURE__ */ jsx87(
6910
6950
  ErrorBoundary,
6911
6951
  {
6912
6952
  label: "conversation",
6913
- frame: (message) => /* @__PURE__ */ jsxs64("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
6914
- /* @__PURE__ */ jsx86(ContainerHeader, { title }),
6915
- /* @__PURE__ */ jsx86("div", { className: "flex min-h-0 flex-1 flex-col px-4", children: message })
6953
+ frame: (message) => /* @__PURE__ */ jsxs65("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
6954
+ /* @__PURE__ */ jsx87(ContainerHeader, { title }),
6955
+ /* @__PURE__ */ jsx87("div", { className: "flex min-h-0 flex-1 flex-col px-4", children: message })
6916
6956
  ] }),
6917
- children: /* @__PURE__ */ jsxs64("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
6957
+ children: /* @__PURE__ */ jsxs65("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
6918
6958
  header,
6919
- /* @__PURE__ */ jsxs64(ScrollArea, { className: "min-h-0 flex-1", viewportRef: setBody, onScroll: scrolled, contentClassName: "flex min-h-full flex-col", children: [
6920
- top != null && top !== false && top !== "" && /* @__PURE__ */ jsx86("div", { className: "shrink-0 px-4 pt-4", children: top }),
6921
- /* @__PURE__ */ jsx86("div", { className: "min-h-0 flex-1" }),
6922
- /* @__PURE__ */ jsxs64("div", { className: "flex shrink-0 flex-col gap-2 p-4", children: [
6923
- /* @__PURE__ */ jsx86(List, { items, open, under: false, above, loading, empty, change, caret }),
6959
+ /* @__PURE__ */ jsxs65(ScrollArea, { className: "min-h-0 flex-1", viewportRef: setBody, onScroll: scrolled, contentClassName: "flex min-h-full flex-col", children: [
6960
+ top != null && top !== false && top !== "" && /* @__PURE__ */ jsx87("div", { className: "shrink-0 px-4 pt-4", children: top }),
6961
+ /* @__PURE__ */ jsx87("div", { className: "min-h-0 flex-1" }),
6962
+ /* @__PURE__ */ jsxs65("div", { className: "flex shrink-0 flex-col gap-2 p-4", children: [
6963
+ /* @__PURE__ */ jsx87(List, { items, open, under: false, above, loading, empty, change, caret }),
6924
6964
  !loading && below
6925
6965
  ] })
6926
6966
  ] }),
6927
- box && /* @__PURE__ */ jsx86("div", { className: "shrink-0 p-3", children: /* @__PURE__ */ jsx86(sendsInLayout.Provider, { value: sends, children: box }) })
6967
+ box && /* @__PURE__ */ jsx87("div", { className: "shrink-0 p-3", children: /* @__PURE__ */ jsx87(sendsInLayout.Provider, { value: sends, children: box }) })
6928
6968
  ] })
6929
6969
  }
6930
6970
  ),
6931
6971
  side && // Its own catch, as Peek's column had: a thread or a panel that throws says so in the column, and the comments stay.
6932
6972
  // One catch per thread, and one for the aside: a thread that threw is let go once it is closed or another opens,
6933
6973
  // as Peek's column, drawn only while a thread was open, let it go on closing. Each thread is drawn afresh.
6934
- /* @__PURE__ */ jsx86("div", { className: "flex w-[384px] shrink-0 flex-col overflow-hidden border-l border-border-subtle", children: /* @__PURE__ */ jsx86(ErrorBoundary, { label: "thread panel", children: opened ? /* @__PURE__ */ jsx86(caretOnOpen.Provider, { value: caret, children: opened }) : aside }, opened ? `thread:${open}` : "aside") })
6974
+ /* @__PURE__ */ jsx87("div", { className: "flex w-[384px] shrink-0 flex-col overflow-hidden border-l border-border-subtle", children: /* @__PURE__ */ jsx87(ErrorBoundary, { label: "thread panel", children: opened ? /* @__PURE__ */ jsx87(caretOnOpen.Provider, { value: caret, children: opened }) : aside }, opened ? `thread:${open}` : "aside") })
6935
6975
  ] });
6936
6976
  }
6937
6977
 
6938
6978
  // src/ConversationHeading.tsx
6939
- import { jsx as jsx87, jsxs as jsxs65 } from "react/jsx-runtime";
6979
+ import { jsx as jsx88, jsxs as jsxs66 } from "react/jsx-runtime";
6940
6980
  var NAME = "-mx-1 min-w-0 truncate rounded px-1 text-left text-h4 text-text-primary";
6941
6981
  function ConversationHeading({ icon, name, onOpen, href, className }) {
6942
- const label = href ? /* @__PURE__ */ jsx87(
6982
+ const label = href ? /* @__PURE__ */ jsx88(
6943
6983
  "a",
6944
6984
  {
6945
6985
  href,
@@ -6951,41 +6991,42 @@ function ConversationHeading({ icon, name, onOpen, href, className }) {
6951
6991
  className: cn(NAME, "hover:bg-bg-hover"),
6952
6992
  children: name
6953
6993
  }
6954
- ) : onOpen ? /* @__PURE__ */ jsx87("button", { type: "button", onClick: onOpen, className: cn(NAME, "hover:bg-bg-hover"), children: name }) : /* @__PURE__ */ jsx87("span", { className: NAME, children: name });
6955
- return /* @__PURE__ */ jsxs65("div", { "data-conversation-heading": true, className: cn("flex w-full items-center gap-2", className), children: [
6956
- /* @__PURE__ */ jsx87("span", { "aria-hidden": true, className: "flex size-6 shrink-0 items-center justify-center text-text-secondary", children: icon }),
6994
+ ) : onOpen ? /* @__PURE__ */ jsx88("button", { type: "button", onClick: onOpen, className: cn(NAME, "hover:bg-bg-hover"), children: name }) : /* @__PURE__ */ jsx88("span", { className: NAME, children: name });
6995
+ return /* @__PURE__ */ jsxs66("div", { "data-conversation-heading": true, className: cn("flex w-full items-center gap-2", className), children: [
6996
+ /* @__PURE__ */ jsx88("span", { "aria-hidden": true, className: "flex size-6 shrink-0 items-center justify-center text-text-secondary", children: icon }),
6957
6997
  label
6958
6998
  ] });
6959
6999
  }
6960
7000
 
6961
7001
  // src/ConversationPlace.tsx
6962
- import { jsx as jsx88, jsxs as jsxs66 } from "react/jsx-runtime";
7002
+ import { jsx as jsx89, jsxs as jsxs67 } from "react/jsx-runtime";
6963
7003
  function ConversationPlace({ relation, place, children, className, ...props }) {
6964
- return /* @__PURE__ */ jsxs66("div", { className: cn("flex flex-col gap-1", className), ...props, children: [
6965
- /* @__PURE__ */ jsxs66("div", { className: "flex items-center gap-2", children: [
6966
- /* @__PURE__ */ jsx88(Chip, { type: "neutral", label: relation }),
6967
- place && /* @__PURE__ */ jsx88("span", { className: "truncate text-caption text-text-muted", children: place })
7004
+ return /* @__PURE__ */ jsxs67("div", { className: cn("flex flex-col gap-1", className), ...props, children: [
7005
+ /* @__PURE__ */ jsxs67("div", { className: "flex items-center gap-2", children: [
7006
+ /* @__PURE__ */ jsx89(Chip, { type: "neutral", label: relation }),
7007
+ place && /* @__PURE__ */ jsx89("span", { className: "truncate text-caption text-text-muted", children: place })
6968
7008
  ] }),
6969
7009
  children
6970
7010
  ] });
6971
7011
  }
6972
7012
 
6973
7013
  // src/QuotedLine.tsx
6974
- import { jsx as jsx89, jsxs as jsxs67 } from "react/jsx-runtime";
7014
+ import { jsx as jsx90, jsxs as jsxs68 } from "react/jsx-runtime";
6975
7015
  var SINCE = { reworded: "Changed since", gone: "Deleted from the page" };
6976
- function QuotedLine({ words, state = "here", label }) {
7016
+ function QuotedLine({ words, state = "here", label, href, external }) {
6977
7017
  const shown2 = words ?? label ?? "";
6978
7018
  const inThePage = !!words && state === "here";
6979
- return /* @__PURE__ */ jsxs67("div", { "data-quoted": words ? state : "part", className: "flex w-full min-w-0 flex-col gap-0.5", children: [
6980
- /* @__PURE__ */ jsx89(WithTooltip, { label: shown2, wrapperClassName: "flex min-w-0", children: /* @__PURE__ */ jsx89("p", { className: "line-clamp-2 text-caption text-text-secondary", children: /* @__PURE__ */ jsx89("mark", { className: cn("rounded-sm px-0.5 text-text-primary [box-decoration-break:clone]", inThePage ? "bg-warning-muted" : "bg-bg-inset text-text-secondary", state === "gone" && "line-through"), children: shown2 }) }) }),
6981
- state !== "here" && /* @__PURE__ */ jsx89("span", { className: "text-caption italic text-text-muted", children: SINCE[state] })
7019
+ const mark = /* @__PURE__ */ jsx90("mark", { className: cn("rounded-sm px-0.5 text-text-primary [box-decoration-break:clone]", inThePage ? "bg-warning-muted" : "bg-bg-inset text-text-secondary", state === "gone" && "line-through"), children: shown2 });
7020
+ return /* @__PURE__ */ jsxs68("div", { "data-quoted": words ? state : "part", className: "flex w-full min-w-0 flex-col gap-0.5", children: [
7021
+ /* @__PURE__ */ jsx90(WithTooltip, { label: shown2, wrapperClassName: "flex min-w-0", children: /* @__PURE__ */ jsx90("p", { className: "line-clamp-2 text-caption text-text-secondary", children: href ? /* @__PURE__ */ jsx90(Link, { href, variant: "quiet", external, children: mark }) : mark }) }),
7022
+ state !== "here" && /* @__PURE__ */ jsx90("span", { className: "text-caption italic text-text-muted", children: SINCE[state] })
6982
7023
  ] });
6983
7024
  }
6984
7025
 
6985
7026
  // src/ReactionHorizon.tsx
6986
- import { Fragment as Fragment26, jsx as jsx90, jsxs as jsxs68 } from "react/jsx-runtime";
7027
+ import { Fragment as Fragment26, jsx as jsx91, jsxs as jsxs69 } from "react/jsx-runtime";
6987
7028
  function Said({ limit, omitted, noun }) {
6988
- return /* @__PURE__ */ jsxs68(Fragment26, { children: [
7029
+ return /* @__PURE__ */ jsxs69(Fragment26, { children: [
6989
7030
  "Reactions are shown for the latest ",
6990
7031
  limit,
6991
7032
  " ",
@@ -6998,11 +7039,11 @@ function Said({ limit, omitted, noun }) {
6998
7039
  ] });
6999
7040
  }
7000
7041
  function ReactionHorizon({ limit, omitted, cut = false, noun = "comments", keepRoom = false }) {
7001
- const room = keepRoom && omitted <= 0 && /* @__PURE__ */ jsx90("p", { "aria-hidden": true, className: "invisible text-caption text-text-muted", children: /* @__PURE__ */ jsx90(Said, { limit, omitted: 1, noun }) });
7042
+ const room = keepRoom && omitted <= 0 && /* @__PURE__ */ jsx91("p", { "aria-hidden": true, className: "invisible text-caption text-text-muted", children: /* @__PURE__ */ jsx91(Said, { limit, omitted: 1, noun }) });
7002
7043
  if (omitted <= 0 && !cut) return room || null;
7003
- return /* @__PURE__ */ jsxs68(Fragment26, { children: [
7004
- /* @__PURE__ */ jsxs68("p", { className: "text-caption text-text-muted", children: [
7005
- omitted > 0 && /* @__PURE__ */ jsx90(Said, { limit, omitted, noun }),
7044
+ return /* @__PURE__ */ jsxs69(Fragment26, { children: [
7045
+ /* @__PURE__ */ jsxs69("p", { className: "text-caption text-text-muted", children: [
7046
+ omitted > 0 && /* @__PURE__ */ jsx91(Said, { limit, omitted, noun }),
7006
7047
  omitted > 0 && cut && " ",
7007
7048
  cut && "Some reactions may be missing."
7008
7049
  ] }),
@@ -7012,18 +7053,18 @@ function ReactionHorizon({ limit, omitted, cut = false, noun = "comments", keepR
7012
7053
 
7013
7054
  // src/ArchiveDialog.tsx
7014
7055
  import { useState as useState28 } from "react";
7015
- import { jsx as jsx91, jsxs as jsxs69 } from "react/jsx-runtime";
7056
+ import { jsx as jsx92, jsxs as jsxs70 } from "react/jsx-runtime";
7016
7057
  var listOf = (parts) => parts.length <= 1 ? parts[0] ?? "" : `${parts.slice(0, -1).join(", ")} and ${parts.at(-1)}`;
7017
7058
  function ArchiveDialog({ title, what, hides, staysVisible = [], apps, getBack, onClose, onArchive }) {
7018
7059
  const [resolution, setResolution] = useState28("");
7019
7060
  const where = apps.length ? `, ${listOf(apps.map((app) => `in ${app}`))}` : "";
7020
- return /* @__PURE__ */ jsxs69(FormDialog, { title: `Archive \u201C${title}\u201D?`, submitLabel: `Archive ${what}`, ready: hides !== null, onSubmit: () => onArchive(resolution.trim()), onClose, children: [
7021
- /* @__PURE__ */ jsxs69("div", { className: "flex flex-col gap-2 text-body-2 text-text-primary", children: [
7022
- /* @__PURE__ */ jsx91("p", { children: hides === null ? `Counting what archiving this ${what} would hide\u2026` : hides.length ? `This hides the ${what} and ${listOf(hides)} from every list${where}.` : `This hides the ${what} from every list${where}.` }),
7023
- staysVisible.length > 0 && /* @__PURE__ */ jsx91("p", { children: `${listOf(staysVisible)} stay visible there.` }),
7024
- /* @__PURE__ */ jsx91("p", { className: "text-text-secondary", children: getBack })
7061
+ return /* @__PURE__ */ jsxs70(FormDialog, { title: `Archive \u201C${title}\u201D?`, submitLabel: `Archive ${what}`, ready: hides !== null, onSubmit: () => onArchive(resolution.trim()), onClose, children: [
7062
+ /* @__PURE__ */ jsxs70("div", { className: "flex flex-col gap-2 text-body-2 text-text-primary", children: [
7063
+ /* @__PURE__ */ jsx92("p", { children: hides === null ? `Counting what archiving this ${what} would hide\u2026` : hides.length ? `This hides the ${what} and ${listOf(hides)} from every list${where}.` : `This hides the ${what} from every list${where}.` }),
7064
+ staysVisible.length > 0 && /* @__PURE__ */ jsx92("p", { children: `${listOf(staysVisible)} stay visible there.` }),
7065
+ /* @__PURE__ */ jsx92("p", { className: "text-text-secondary", children: getBack })
7025
7066
  ] }),
7026
- /* @__PURE__ */ jsx91(Field, { label: "Resolution (optional)", children: /* @__PURE__ */ jsx91(
7067
+ /* @__PURE__ */ jsx92(Field, { label: "Resolution (optional)", children: /* @__PURE__ */ jsx92(
7027
7068
  Textarea,
7028
7069
  {
7029
7070
  value: resolution,
@@ -7038,19 +7079,19 @@ function ArchiveDialog({ title, what, hides, staysVisible = [], apps, getBack, o
7038
7079
  // src/ArchivedNotice.tsx
7039
7080
  import { useState as useState29 } from "react";
7040
7081
  import { IconArchive } from "@tabler/icons-react";
7041
- import { jsx as jsx92, jsxs as jsxs70 } from "react/jsx-runtime";
7082
+ import { jsx as jsx93, jsxs as jsxs71 } from "react/jsx-runtime";
7042
7083
  function ArchivedNotice({ by, when, resolution, withWhat, withTitle, onUnarchive, onOpenParent }) {
7043
7084
  const [unarchiving, setUnarchiving] = useState29(false);
7044
7085
  const parent = withWhat ?? (withTitle ? "parent" : void 0);
7045
7086
  const named2 = withTitle ? ` \u201C${withTitle}\u201D` : "";
7046
7087
  const line = parent ? `Archived with its ${parent}${named2} by ${by} \xB7 ${when}` : `Archived by ${by} \xB7 ${when}`;
7047
- return /* @__PURE__ */ jsxs70(Card, { fill: "inset", className: "flex items-start gap-3 px-4 py-3", children: [
7048
- /* @__PURE__ */ jsx92(IconArchive, { size: 16, stroke: 1.5, className: "mt-0.5 shrink-0 text-text-muted" }),
7049
- /* @__PURE__ */ jsxs70("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
7050
- /* @__PURE__ */ jsx92("span", { className: "text-body-2-strong text-text-primary", children: line }),
7051
- resolution && /* @__PURE__ */ jsx92("p", { className: "whitespace-pre-wrap text-caption text-text-secondary", children: resolution })
7088
+ return /* @__PURE__ */ jsxs71(Card, { fill: "inset", className: "flex items-start gap-3 px-4 py-3", children: [
7089
+ /* @__PURE__ */ jsx93(IconArchive, { size: 16, stroke: 1.5, className: "mt-0.5 shrink-0 text-text-muted" }),
7090
+ /* @__PURE__ */ jsxs71("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
7091
+ /* @__PURE__ */ jsx93("span", { className: "text-body-2-strong text-text-primary", children: line }),
7092
+ resolution && /* @__PURE__ */ jsx93("p", { className: "whitespace-pre-wrap text-caption text-text-secondary", children: resolution })
7052
7093
  ] }),
7053
- parent ? onOpenParent && /* @__PURE__ */ jsx92(Button, { variant: "outlined", size: "small", className: "shrink-0", onClick: onOpenParent, children: `Open ${parent}` }) : onUnarchive && /* @__PURE__ */ jsx92(
7094
+ parent ? onOpenParent && /* @__PURE__ */ jsx93(Button, { variant: "outlined", size: "small", className: "shrink-0", onClick: onOpenParent, children: `Open ${parent}` }) : onUnarchive && /* @__PURE__ */ jsx93(
7054
7095
  Button,
7055
7096
  {
7056
7097
  variant: "outlined",
@@ -7070,13 +7111,13 @@ function ArchivedNotice({ by, when, resolution, withWhat, withTitle, onUnarchive
7070
7111
  // src/DeletedNotice.tsx
7071
7112
  import { useState as useState30 } from "react";
7072
7113
  import { IconTrash } from "@tabler/icons-react";
7073
- import { jsx as jsx93, jsxs as jsxs71 } from "react/jsx-runtime";
7114
+ import { jsx as jsx94, jsxs as jsxs72 } from "react/jsx-runtime";
7074
7115
  function DeletedNotice({ by, when, onRestore }) {
7075
7116
  const [restoring, setRestoring] = useState30(false);
7076
- return /* @__PURE__ */ jsxs71(Card, { fill: "inset", className: "flex items-start gap-3 px-4 py-3", children: [
7077
- /* @__PURE__ */ jsx93(IconTrash, { size: 16, stroke: 1.5, className: "mt-0.5 shrink-0 text-text-muted" }),
7078
- /* @__PURE__ */ jsx93("span", { className: "min-w-0 flex-1 text-body-2-strong text-text-primary", children: `Deleted by ${by} \xB7 ${when}` }),
7079
- onRestore && /* @__PURE__ */ jsx93(
7117
+ return /* @__PURE__ */ jsxs72(Card, { fill: "inset", className: "flex items-start gap-3 px-4 py-3", children: [
7118
+ /* @__PURE__ */ jsx94(IconTrash, { size: 16, stroke: 1.5, className: "mt-0.5 shrink-0 text-text-muted" }),
7119
+ /* @__PURE__ */ jsx94("span", { className: "min-w-0 flex-1 text-body-2-strong text-text-primary", children: `Deleted by ${by} \xB7 ${when}` }),
7120
+ onRestore && /* @__PURE__ */ jsx94(
7080
7121
  Button,
7081
7122
  {
7082
7123
  variant: "outlined",
@@ -7095,21 +7136,21 @@ function DeletedNotice({ by, when, onRestore }) {
7095
7136
 
7096
7137
  // src/NoAccessNotice.tsx
7097
7138
  import { IconLock } from "@tabler/icons-react";
7098
- import { jsx as jsx94 } from "react/jsx-runtime";
7139
+ import { jsx as jsx95 } from "react/jsx-runtime";
7099
7140
  function NoAccessNotice({ what }) {
7100
- return /* @__PURE__ */ jsx94(EmptyState, { scope: "page", icon: /* @__PURE__ */ jsx94(IconLock, { size: 16, stroke: 1.5 }), message: `You can't open this ${what}` });
7141
+ return /* @__PURE__ */ jsx95(EmptyState, { scope: "page", icon: /* @__PURE__ */ jsx95(IconLock, { size: 16, stroke: 1.5 }), message: `You can't open this ${what}` });
7101
7142
  }
7102
7143
 
7103
7144
  // src/Thread.tsx
7104
7145
  import { Children, useCallback as useCallback7, useContext as useContext15, useLayoutEffect as useLayoutEffect9, useRef as useRef21, useState as useState31 } from "react";
7105
7146
  import { IconX as IconX6 } from "@tabler/icons-react";
7106
- import { Fragment as Fragment27, jsx as jsx95, jsxs as jsxs72 } from "react/jsx-runtime";
7147
+ import { Fragment as Fragment27, jsx as jsx96, jsxs as jsxs73 } from "react/jsx-runtime";
7107
7148
  var always = () => true;
7108
7149
  var anyIn = (children) => Children.toArray(children).length > 0;
7109
7150
  function Replies({ children, loading, empty }) {
7110
- if (loading) return /* @__PURE__ */ jsx95(SkeletonConversation, {});
7111
- if (!anyIn(children)) return typeof empty === "string" ? /* @__PURE__ */ jsx95(EmptyState, { scope: "section", message: empty }) : /* @__PURE__ */ jsx95(Fragment27, { children: empty });
7112
- return /* @__PURE__ */ jsx95(Fragment27, { children });
7151
+ if (loading) return /* @__PURE__ */ jsx96(SkeletonConversation, {});
7152
+ if (!anyIn(children)) return typeof empty === "string" ? /* @__PURE__ */ jsx96(EmptyState, { scope: "section", message: empty }) : /* @__PURE__ */ jsx96(Fragment27, { children: empty });
7153
+ return /* @__PURE__ */ jsx96(Fragment27, { children });
7113
7154
  }
7114
7155
  function Thread({
7115
7156
  place = "beside",
@@ -7154,36 +7195,36 @@ function Thread({
7154
7195
  const foot = notice ?? box;
7155
7196
  const layoutLine = useContext15(LineByLayout);
7156
7197
  if (place === "under") {
7157
- return /* @__PURE__ */ jsxs72("div", { ref: under, "data-thread": "under", className: cn("flex flex-col", className), children: [
7198
+ return /* @__PURE__ */ jsxs73("div", { ref: under, "data-thread": "under", className: cn("flex flex-col", className), children: [
7158
7199
  (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).
7159
7200
  // 8px from the one card's right edge too, as the box under them: a hovered reply never touches it (Katerina, 31 October).
7160
7201
  // 2px, as the line from the comment's face that runs into it (Katerina, 1 November), and drawn the same way, a
7161
7202
  // filled bar rather than a border: a border snaps to the screen's pixels on its own, and at some zooms the two
7162
7203
  // stood a pixel apart (Katerina: "the line breaks in the middle").
7163
- /* @__PURE__ */ jsxs72("div", { "data-thread-replies": true, className: "relative ml-[19px] mr-2 flex flex-col gap-1 pl-2.5", children: [
7164
- !layoutLine && /* @__PURE__ */ jsx95("span", { "aria-hidden": true, className: "absolute bottom-0 left-0 top-0 w-0.5 bg-border-default" }),
7165
- /* @__PURE__ */ jsx95(caretOnOpen.Provider, { value: 0, children: loading ? /* @__PURE__ */ jsx95(SkeletonConversation, {}) : children })
7204
+ /* @__PURE__ */ jsxs73("div", { "data-thread-replies": true, className: "relative ml-[19px] mr-2 flex flex-col gap-1 pl-2.5", children: [
7205
+ !layoutLine && /* @__PURE__ */ jsx96("span", { "aria-hidden": true, className: "absolute bottom-0 left-0 top-0 w-0.5 bg-border-default" }),
7206
+ /* @__PURE__ */ jsx96(caretOnOpen.Provider, { value: 0, children: loading ? /* @__PURE__ */ jsx96(SkeletonConversation, {}) : children })
7166
7207
  ] }),
7167
- foot && /* @__PURE__ */ jsx95("div", { className: "px-2 pt-2", children: foot })
7208
+ foot && /* @__PURE__ */ jsx96("div", { className: "px-2 pt-2", children: foot })
7168
7209
  ] });
7169
7210
  }
7170
- return /* @__PURE__ */ jsxs72(
7211
+ return /* @__PURE__ */ jsxs73(
7171
7212
  Panel,
7172
7213
  {
7173
7214
  className,
7174
7215
  bodyRef: setBody,
7175
7216
  bodyClassName: "flex flex-col",
7176
7217
  title,
7177
- actions: /* @__PURE__ */ jsxs72(Fragment27, { children: [
7178
- resolved && /* @__PURE__ */ jsx95(Chip, { type: "success", label: "Resolved" }),
7218
+ actions: /* @__PURE__ */ jsxs73(Fragment27, { children: [
7219
+ resolved && /* @__PURE__ */ jsx96(Chip, { type: "success", label: "Resolved" }),
7179
7220
  actions,
7180
- onClose && /* @__PURE__ */ jsx95(IconButton, { tooltip: "Close", "aria-label": closeLabel, onClick: onClose, children: /* @__PURE__ */ jsx95(IconX6, { size: 16, stroke: 1.5 }) })
7221
+ onClose && /* @__PURE__ */ jsx96(IconButton, { tooltip: "Close", "aria-label": closeLabel, onClick: onClose, children: /* @__PURE__ */ jsx96(IconX6, { size: 16, stroke: 1.5 }) })
7181
7222
  ] }),
7182
- footer: foot && /* @__PURE__ */ jsx95("div", { className: "p-3", children: foot }),
7223
+ footer: foot && /* @__PURE__ */ jsx96("div", { className: "p-3", children: foot }),
7183
7224
  children: [
7184
- start && /* @__PURE__ */ jsx95("div", { className: cn("px-4 pb-2 pt-4", SHOWN_CLASSES), "data-thread-start": start.id, children: /* @__PURE__ */ jsx95(PinnedComment, { author: start.author, time: start.time, at: start.at, words: start.words, deleted: start.deleted, unseen: start.unseen }) }),
7185
- /* @__PURE__ */ jsx95(Divider, { look: "section", label: "Replies", className: "px-4 py-2" }),
7186
- /* @__PURE__ */ jsx95("div", { className: "flex flex-col gap-2 px-4 pb-4", children: /* @__PURE__ */ jsx95(caretOnOpen.Provider, { value: 0, children: /* @__PURE__ */ jsx95(repliesDrawn.Provider, { value: drawn, children: /* @__PURE__ */ jsx95(Replies, { loading, empty, children }) }) }) })
7225
+ start && /* @__PURE__ */ jsx96("div", { className: cn("px-4 pb-2 pt-4", SHOWN_CLASSES), "data-thread-start": start.id, children: /* @__PURE__ */ jsx96(PinnedComment, { author: start.author, time: start.time, at: start.at, words: start.words, deleted: start.deleted, unseen: start.unseen }) }),
7226
+ /* @__PURE__ */ jsx96(Divider, { look: "section", label: "Replies", className: "px-4 py-2" }),
7227
+ /* @__PURE__ */ jsx96("div", { className: "flex flex-col gap-2 px-4 pb-4", children: /* @__PURE__ */ jsx96(caretOnOpen.Provider, { value: 0, children: /* @__PURE__ */ jsx96(repliesDrawn.Provider, { value: drawn, children: /* @__PURE__ */ jsx96(Replies, { loading, empty, children }) }) }) })
7187
7228
  ]
7188
7229
  }
7189
7230
  );
@@ -7236,9 +7277,9 @@ function showInConversationWhenDrawn(id, { wait = WAIT_MS, ...options } = {}) {
7236
7277
  // src/SearchInput.tsx
7237
7278
  import "react";
7238
7279
  import { Input as Input3 } from "@base-ui/react/input";
7239
- import { jsx as jsx96, jsxs as jsxs73 } from "react/jsx-runtime";
7280
+ import { jsx as jsx97, jsxs as jsxs74 } from "react/jsx-runtime";
7240
7281
  function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...props }) {
7241
- return /* @__PURE__ */ jsxs73(
7282
+ return /* @__PURE__ */ jsxs74(
7242
7283
  "div",
7243
7284
  {
7244
7285
  className: cn(
@@ -7250,7 +7291,7 @@ function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...pro
7250
7291
  className
7251
7292
  ),
7252
7293
  children: [
7253
- /* @__PURE__ */ jsx96(
7294
+ /* @__PURE__ */ jsx97(
7254
7295
  Input3,
7255
7296
  {
7256
7297
  className: cn("flex-1 min-w-0 text-input-value", BARE_INPUT_CLASSES),
@@ -7258,7 +7299,7 @@ function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...pro
7258
7299
  ...props
7259
7300
  }
7260
7301
  ),
7261
- shortcut && /* @__PURE__ */ jsx96(Kbd, { children: shortcut })
7302
+ shortcut && /* @__PURE__ */ jsx97(Kbd, { children: shortcut })
7262
7303
  ]
7263
7304
  }
7264
7305
  );
@@ -7267,37 +7308,37 @@ function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...pro
7267
7308
  // src/PageHeader.tsx
7268
7309
  import { Fragment as Fragment28 } from "react";
7269
7310
  import { IconLock as IconLock2 } from "@tabler/icons-react";
7270
- import { Fragment as Fragment29, jsx as jsx97, jsxs as jsxs74 } from "react/jsx-runtime";
7311
+ import { Fragment as Fragment29, jsx as jsx98, jsxs as jsxs75 } from "react/jsx-runtime";
7271
7312
  function PageHeader({ title, leading, private: locked = false, after, meta, time, members, actions, className }) {
7272
7313
  const words = (meta ?? []).map((one) => typeof one === "string" ? { label: one } : one);
7273
7314
  const quiet = words.length > 0 || time != null || members != null;
7274
- const name = /* @__PURE__ */ jsxs74("div", { className: "flex min-w-0 items-center gap-2", children: [
7275
- leading != null && /* @__PURE__ */ jsx97("span", { className: "flex shrink-0 items-center text-text-secondary", children: leading }),
7276
- locked && /* @__PURE__ */ jsx97(WithTooltip, { label: "Private", children: /* @__PURE__ */ jsx97(IconLock2, { size: 16, stroke: 1.5, role: "img", "aria-label": "Private", className: "shrink-0 text-text-secondary" }) }),
7277
- typeof title === "string" ? /* @__PURE__ */ jsx97("span", { className: "truncate text-body-2-strong text-text-primary", children: title }) : /* @__PURE__ */ jsx97("div", { className: "flex min-w-0 items-center", children: title }),
7278
- after != null && /* @__PURE__ */ jsx97("span", { className: "flex shrink-0 items-center", children: after })
7315
+ const name = /* @__PURE__ */ jsxs75("div", { className: "flex min-w-0 items-center gap-2", children: [
7316
+ leading != null && /* @__PURE__ */ jsx98("span", { className: "flex shrink-0 items-center text-text-secondary", children: leading }),
7317
+ locked && /* @__PURE__ */ jsx98(WithTooltip, { label: "Private", children: /* @__PURE__ */ jsx98(IconLock2, { size: 16, stroke: 1.5, role: "img", "aria-label": "Private", className: "shrink-0 text-text-secondary" }) }),
7318
+ typeof title === "string" ? /* @__PURE__ */ jsx98("span", { className: "truncate text-body-2-strong text-text-primary", children: title }) : /* @__PURE__ */ jsx98("div", { className: "flex min-w-0 items-center", children: title }),
7319
+ after != null && /* @__PURE__ */ jsx98("span", { className: "flex shrink-0 items-center", children: after })
7279
7320
  ] });
7280
- const right = quiet || actions != null ? /* @__PURE__ */ jsxs74(Fragment29, { children: [
7321
+ const right = quiet || actions != null ? /* @__PURE__ */ jsxs75(Fragment29, { children: [
7281
7322
  quiet && // The quiet group: 12px between its parts, and 12px clear of the buttons — the bar sets
7282
7323
  // its actions 4px apart, so the group adds the other 8px, as Peek's and Leaf's bars do.
7283
- /* @__PURE__ */ jsxs74("div", { className: cn("flex items-center gap-3", actions != null && "pr-2"), children: [
7284
- words.length > 0 && /* @__PURE__ */ jsx97("div", { className: "flex items-center gap-2", children: words.map((one, i) => /* @__PURE__ */ jsxs74(Fragment28, { children: [
7324
+ /* @__PURE__ */ jsxs75("div", { className: cn("flex items-center gap-3", actions != null && "pr-2"), children: [
7325
+ words.length > 0 && /* @__PURE__ */ jsx98("div", { className: "flex items-center gap-2", children: words.map((one, i) => /* @__PURE__ */ jsxs75(Fragment28, { children: [
7285
7326
  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
7286
- /* @__PURE__ */ jsx97("span", { "aria-hidden": "true", className: "size-[3px] shrink-0 rounded-full bg-text-muted" }),
7287
- /* @__PURE__ */ jsx97(MetaText, { tone: one.done ? "success" : "secondary", children: one.label })
7327
+ /* @__PURE__ */ jsx98("span", { "aria-hidden": "true", className: "size-[3px] shrink-0 rounded-full bg-text-muted" }),
7328
+ /* @__PURE__ */ jsx98(MetaText, { tone: one.done ? "success" : "secondary", children: one.label })
7288
7329
  ] }, `${one.label}-${i}`)) }),
7289
- time && /* @__PURE__ */ jsx97(WithTooltip, { label: time.exact, children: /* @__PURE__ */ jsx97("span", { className: "whitespace-nowrap text-caption italic text-text-muted", children: time.label }) }),
7330
+ time && /* @__PURE__ */ jsx98(WithTooltip, { label: time.exact, children: /* @__PURE__ */ jsx98("span", { className: "whitespace-nowrap text-caption italic text-text-muted", children: time.label }) }),
7290
7331
  members
7291
7332
  ] }),
7292
7333
  actions
7293
7334
  ] }) : void 0;
7294
- return /* @__PURE__ */ jsx97(ContainerHeader, { title: name, actions: right, className });
7335
+ return /* @__PURE__ */ jsx98(ContainerHeader, { title: name, actions: right, className });
7295
7336
  }
7296
7337
 
7297
7338
  // src/ListColumn.tsx
7298
- import { jsx as jsx98, jsxs as jsxs75 } from "react/jsx-runtime";
7339
+ import { jsx as jsx99, jsxs as jsxs76 } from "react/jsx-runtime";
7299
7340
  function Column({ title, chevron = false, titleMenu, actions, above, collapsed = false, children, className, broken = false }) {
7300
- return /* @__PURE__ */ jsxs75(
7341
+ return /* @__PURE__ */ jsxs76(
7301
7342
  "div",
7302
7343
  {
7303
7344
  className: cn(
@@ -7310,35 +7351,35 @@ function Column({ title, chevron = false, titleMenu, actions, above, collapsed =
7310
7351
  "data-collapsed": collapsed || void 0,
7311
7352
  inert: collapsed,
7312
7353
  children: [
7313
- /* @__PURE__ */ jsx98(ContainerHeader, { title, chevron, titleMenu, actions }),
7354
+ /* @__PURE__ */ jsx99(ContainerHeader, { title, chevron, titleMenu, actions }),
7314
7355
  above,
7315
7356
  broken ? (
7316
7357
  // The message takes the room the list had and centres itself in it (Katerina, 19 September).
7317
- /* @__PURE__ */ jsx98("div", { className: "flex min-h-0 flex-1 flex-col px-3", children })
7318
- ) : /* @__PURE__ */ jsx98(ScrollArea, { className: "flex-1", contentClassName: "flex flex-col gap-0.5 px-3 pt-4 pb-3", children })
7358
+ /* @__PURE__ */ jsx99("div", { className: "flex min-h-0 flex-1 flex-col px-3", children })
7359
+ ) : /* @__PURE__ */ jsx99(ScrollArea, { className: "flex-1", contentClassName: "flex flex-col gap-0.5 px-3 pt-4 pb-3", children })
7319
7360
  ]
7320
7361
  }
7321
7362
  );
7322
7363
  }
7323
7364
  function ListColumn(props) {
7324
- return /* @__PURE__ */ jsx98(
7365
+ return /* @__PURE__ */ jsx99(
7325
7366
  ErrorBoundary,
7326
7367
  {
7327
7368
  label: "list panel",
7328
7369
  frame: (message) => (
7329
7370
  // Only the name comes back with the message: the actions and the row above may be what threw.
7330
- /* @__PURE__ */ jsx98(Column, { title: props.title, chevron: props.chevron, collapsed: props.collapsed, className: props.className, broken: true, children: message })
7371
+ /* @__PURE__ */ jsx99(Column, { title: props.title, chevron: props.chevron, collapsed: props.collapsed, className: props.className, broken: true, children: message })
7331
7372
  ),
7332
- children: /* @__PURE__ */ jsx98(Column, { ...props })
7373
+ children: /* @__PURE__ */ jsx99(Column, { ...props })
7333
7374
  }
7334
7375
  );
7335
7376
  }
7336
7377
 
7337
7378
  // src/Tabs.tsx
7338
7379
  import { Tabs as BaseTabs } from "@base-ui/react/tabs";
7339
- import { Fragment as Fragment30, jsx as jsx99, jsxs as jsxs76 } from "react/jsx-runtime";
7380
+ import { Fragment as Fragment30, jsx as jsx100, jsxs as jsxs77 } from "react/jsx-runtime";
7340
7381
  function Tabs({ tabs, active, onChange, size = "default", className, ...aria }) {
7341
- return /* @__PURE__ */ jsx99(
7382
+ return /* @__PURE__ */ jsx100(
7342
7383
  BaseTabs.Root,
7343
7384
  {
7344
7385
  value: active,
@@ -7346,14 +7387,14 @@ function Tabs({ tabs, active, onChange, size = "default", className, ...aria })
7346
7387
  if (details.reason === "none") onChange(value);
7347
7388
  },
7348
7389
  className,
7349
- children: /* @__PURE__ */ jsx99(
7390
+ children: /* @__PURE__ */ jsx100(
7350
7391
  BaseTabs.List,
7351
7392
  {
7352
7393
  activateOnFocus: true,
7353
7394
  "aria-label": aria["aria-label"],
7354
7395
  "aria-labelledby": aria["aria-labelledby"],
7355
7396
  className: "flex items-center gap-2",
7356
- children: tabs.map((tab) => /* @__PURE__ */ jsxs76(
7397
+ children: tabs.map((tab) => /* @__PURE__ */ jsxs77(
7357
7398
  BaseTabs.Tab,
7358
7399
  {
7359
7400
  value: tab.id,
@@ -7366,13 +7407,13 @@ function Tabs({ tabs, active, onChange, size = "default", className, ...aria })
7366
7407
  ),
7367
7408
  children: [
7368
7409
  tab.icon,
7369
- /* @__PURE__ */ jsxs76("span", { className: "flex items-baseline", children: [
7410
+ /* @__PURE__ */ jsxs77("span", { className: "flex items-baseline", children: [
7370
7411
  tab.label,
7371
- tab.count !== void 0 ? /* @__PURE__ */ jsx99("span", { className: "ml-2.5 font-mono text-caption tabular-nums text-text-secondary", children: tab.count }) : null
7412
+ tab.count !== void 0 ? /* @__PURE__ */ jsx100("span", { className: "ml-2.5 font-mono text-caption tabular-nums text-text-secondary", children: tab.count }) : null
7372
7413
  ] }),
7373
- tab.unread ? /* @__PURE__ */ jsxs76(Fragment30, { children: [
7374
- /* @__PURE__ */ jsx99(UnreadDot, { className: "h-auto w-auto" }),
7375
- /* @__PURE__ */ jsx99("span", { className: "sr-only", children: "new" })
7414
+ tab.unread ? /* @__PURE__ */ jsxs77(Fragment30, { children: [
7415
+ /* @__PURE__ */ jsx100(UnreadDot, { className: "h-auto w-auto" }),
7416
+ /* @__PURE__ */ jsx100("span", { className: "sr-only", children: "new" })
7376
7417
  ] }) : null
7377
7418
  ]
7378
7419
  },
@@ -7388,7 +7429,7 @@ function Tabs({ tabs, active, onChange, size = "default", className, ...aria })
7388
7429
  import { createContext as createContext13, useContext as useContext16, useMemo as useMemo7 } from "react";
7389
7430
  import { Toast as BaseToast } from "@base-ui/react/toast";
7390
7431
  import { IconAlertCircle as IconAlertCircle2, IconCircleCheck as IconCircleCheck5, IconCircleX as IconCircleX2 } from "@tabler/icons-react";
7391
- import { jsx as jsx100, jsxs as jsxs77 } from "react/jsx-runtime";
7432
+ import { jsx as jsx101, jsxs as jsxs78 } from "react/jsx-runtime";
7392
7433
  var SURFACE_STYLES = {
7393
7434
  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",
7394
7435
  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",
@@ -7424,16 +7465,16 @@ var pillClassName = (type, hasAction, className) => cn(
7424
7465
  );
7425
7466
  function LeadingIcon({ type }) {
7426
7467
  const Icon = ICONS2[type];
7427
- return /* @__PURE__ */ jsx100(Icon, { size: 16, stroke: 1.5, className: cn("text-text-primary shrink-0", ICON_STYLES[type]) });
7468
+ return /* @__PURE__ */ jsx101(Icon, { size: 16, stroke: 1.5, className: cn("text-text-primary shrink-0", ICON_STYLES[type]) });
7428
7469
  }
7429
7470
  function Toast({ label, type = "neutral", leadingIcon = true, actionLabel, onAction, className }) {
7430
7471
  const hasAction = !!(actionLabel && onAction);
7431
- return /* @__PURE__ */ jsxs77("div", { className: pillClassName(type, hasAction, className), children: [
7432
- /* @__PURE__ */ jsxs77("div", { className: "flex items-center gap-2 shrink-0", children: [
7433
- leadingIcon && /* @__PURE__ */ jsx100(LeadingIcon, { type }),
7434
- /* @__PURE__ */ jsx100("span", { className: LABEL_CLASSES, children: label })
7472
+ return /* @__PURE__ */ jsxs78("div", { className: pillClassName(type, hasAction, className), children: [
7473
+ /* @__PURE__ */ jsxs78("div", { className: "flex items-center gap-2 shrink-0", children: [
7474
+ leadingIcon && /* @__PURE__ */ jsx101(LeadingIcon, { type }),
7475
+ /* @__PURE__ */ jsx101("span", { className: LABEL_CLASSES, children: label })
7435
7476
  ] }),
7436
- hasAction && /* @__PURE__ */ jsx100(Button, { variant: "outlined", size: "small", onClick: onAction, children: actionLabel })
7477
+ hasAction && /* @__PURE__ */ jsx101(Button, { variant: "outlined", size: "small", onClick: onAction, children: actionLabel })
7437
7478
  ] });
7438
7479
  }
7439
7480
  var ToastContext = createContext13(null);
@@ -7455,9 +7496,9 @@ function ToastProvider({ children }) {
7455
7496
  }),
7456
7497
  [manager]
7457
7498
  );
7458
- return /* @__PURE__ */ jsx100(ToastContext.Provider, { value, children: /* @__PURE__ */ jsxs77(BaseToast.Provider, { toastManager: manager, limit: VISIBLE_TOASTS, children: [
7499
+ return /* @__PURE__ */ jsx101(ToastContext.Provider, { value, children: /* @__PURE__ */ jsxs78(BaseToast.Provider, { toastManager: manager, limit: VISIBLE_TOASTS, children: [
7459
7500
  children,
7460
- /* @__PURE__ */ jsx100(BaseToast.Portal, { children: /* @__PURE__ */ jsx100(BaseToast.Viewport, { className: "fixed bottom-4 left-4 z-[100] flex flex-col-reverse items-start gap-2 pointer-events-none", children: /* @__PURE__ */ jsx100(ToastList, {}) }) })
7501
+ /* @__PURE__ */ jsx101(BaseToast.Portal, { children: /* @__PURE__ */ jsx101(BaseToast.Viewport, { className: "fixed bottom-4 left-4 z-[100] flex flex-col-reverse items-start gap-2 pointer-events-none", children: /* @__PURE__ */ jsx101(ToastList, {}) }) })
7461
7502
  ] }) });
7462
7503
  }
7463
7504
  function ToastList() {
@@ -7465,25 +7506,25 @@ function ToastList() {
7465
7506
  return toasts.map((toast) => {
7466
7507
  const type = toast.type ?? "neutral";
7467
7508
  const { leadingIcon = true, actionLabel, onAction } = toast.data ?? {};
7468
- return /* @__PURE__ */ jsxs77(
7509
+ return /* @__PURE__ */ jsxs78(
7469
7510
  BaseToast.Root,
7470
7511
  {
7471
7512
  toast,
7472
7513
  swipeDirection: ["left", "down"],
7473
7514
  className: pillClassName(type, !!actionLabel, "pointer-events-auto data-[limited]:hidden"),
7474
7515
  children: [
7475
- /* @__PURE__ */ jsxs77("div", { className: "flex items-center gap-2 shrink-0", children: [
7476
- leadingIcon && /* @__PURE__ */ jsx100(LeadingIcon, { type }),
7477
- /* @__PURE__ */ jsx100(BaseToast.Title, { render: /* @__PURE__ */ jsx100("span", {}), className: LABEL_CLASSES })
7516
+ /* @__PURE__ */ jsxs78("div", { className: "flex items-center gap-2 shrink-0", children: [
7517
+ leadingIcon && /* @__PURE__ */ jsx101(LeadingIcon, { type }),
7518
+ /* @__PURE__ */ jsx101(BaseToast.Title, { render: /* @__PURE__ */ jsx101("span", {}), className: LABEL_CLASSES })
7478
7519
  ] }),
7479
- actionLabel && /* @__PURE__ */ jsx100(
7520
+ actionLabel && /* @__PURE__ */ jsx101(
7480
7521
  BaseToast.Action,
7481
7522
  {
7482
7523
  onClick: () => {
7483
7524
  onAction?.();
7484
7525
  close(toast.id);
7485
7526
  },
7486
- render: /* @__PURE__ */ jsx100(Button, { variant: "outlined", size: "small", children: actionLabel })
7527
+ render: /* @__PURE__ */ jsx101(Button, { variant: "outlined", size: "small", children: actionLabel })
7487
7528
  }
7488
7529
  )
7489
7530
  ]
@@ -7532,6 +7573,7 @@ export {
7532
7573
  ConversationLayout,
7533
7574
  ConversationMenu,
7534
7575
  ConversationPlace,
7576
+ CornerMenu,
7535
7577
  DeletedNotice,
7536
7578
  DialogShell,
7537
7579
  Divider,