@estiva-app/ui 0.107.0 → 0.108.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
@@ -1191,10 +1191,10 @@ function Button({
1191
1191
 
1192
1192
  // src/MembersPill.tsx
1193
1193
  import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
1194
- function MembersPill({ members, count, onClick, className }) {
1194
+ function MembersPill({ members, count, onClick, label, className }) {
1195
1195
  const total = count ?? members.length;
1196
1196
  if (total === 0) return null;
1197
- return /* @__PURE__ */ jsxs10(Button, { variant: "outlined", "aria-label": `${total} ${total === 1 ? "member" : "members"}`, disabled: !onClick, onClick, className: cn("gap-2 pl-[3px] pr-2", className), children: [
1197
+ return /* @__PURE__ */ jsxs10(Button, { variant: "outlined", "aria-label": label ?? `${total} ${total === 1 ? "member" : "members"}`, disabled: !onClick, onClick, className: cn("gap-2 pl-[3px] pr-2", className), children: [
1198
1198
  /* @__PURE__ */ jsx16(AvatarGroup, { members }),
1199
1199
  /* @__PURE__ */ jsx16("span", { className: cn(MONO_CAPTION_CLASSES, "signal:tabular-nums"), children: total })
1200
1200
  ] });
@@ -2096,12 +2096,81 @@ function MoveDialog({
2096
2096
  );
2097
2097
  }
2098
2098
 
2099
+ // src/FollowSwitch.tsx
2100
+ import { useState as useState6 } from "react";
2101
+ import { IconCheck as IconCheck3, IconCircle, IconCircleDashed, IconCircleDashedPlus, IconUsers, IconUsersPlus } from "@tabler/icons-react";
2102
+ import { jsx as jsx29, jsxs as jsxs21 } from "react/jsx-runtime";
2103
+ var ICON = { size: 16, stroke: 1.5 };
2104
+ function IconUsersSolid() {
2105
+ return /* @__PURE__ */ jsxs21("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": true, children: [
2106
+ /* @__PURE__ */ jsx29("circle", { cx: "9", cy: "7", r: "4" }),
2107
+ /* @__PURE__ */ jsx29("path", { d: "M3 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2z" }),
2108
+ /* @__PURE__ */ jsx29("circle", { cx: "17.5", cy: "7.5", r: "3" }),
2109
+ /* @__PURE__ */ jsx29("path", { d: "M16.6 15h0.9a3.5 3.5 0 0 1 3.5 3.5v2.5h-4.4v-2a5.6 5.6 0 0 0 -1.6 -4z" })
2110
+ ] });
2111
+ }
2112
+ function LevelIcon({ level, people = false }) {
2113
+ if (people) {
2114
+ if (level === "all") return /* @__PURE__ */ jsx29(IconUsersSolid, {});
2115
+ if (level === "important") return /* @__PURE__ */ jsx29(IconUsers, { ...ICON, "aria-hidden": true });
2116
+ return /* @__PURE__ */ jsx29(IconUsersPlus, { ...ICON, "aria-hidden": true, className: "text-text-muted" });
2117
+ }
2118
+ if (level === "all") return /* @__PURE__ */ jsx29(IconCircle, { ...ICON, "aria-hidden": true });
2119
+ if (level === "important") return /* @__PURE__ */ jsx29(IconCircleDashed, { ...ICON, "aria-hidden": true });
2120
+ return /* @__PURE__ */ jsx29(IconCircleDashedPlus, { ...ICON, "aria-hidden": true, className: "text-text-muted" });
2121
+ }
2122
+ var WORDS = {
2123
+ important: { label: "Important", description: "New conversations, and replies in the ones you are in" },
2124
+ all: { label: "All", description: "Every new conversation and every reply" }
2125
+ };
2126
+ function FollowSwitch({ level, label, onChoose, readOnlyReason, people = false, offDescription = "Nothing here lights for you", backTo }) {
2127
+ const [busy, setBusy] = useState6(false);
2128
+ const now = level ? `You follow it at ${WORDS[level].label}` : "Not following";
2129
+ const button = /* @__PURE__ */ jsx29(IconButton, { "aria-label": `${now}: change how you follow ${label}`, tooltip: now, disabled: !onChoose || busy, disabledReason: onChoose ? void 0 : readOnlyReason, children: /* @__PURE__ */ jsx29(LevelIcon, { level, people }) });
2130
+ if (!onChoose) return button;
2131
+ const choose = async (choice) => {
2132
+ if (busy) return;
2133
+ setBusy(true);
2134
+ try {
2135
+ await onChoose(choice);
2136
+ } catch {
2137
+ } finally {
2138
+ setBusy(false);
2139
+ }
2140
+ };
2141
+ const item = (choice, text, description, leading) => {
2142
+ const on = choice === "off" ? !level : level === choice;
2143
+ return /* @__PURE__ */ jsx29(
2144
+ MenuItem,
2145
+ {
2146
+ leading: /* @__PURE__ */ jsx29(LevelIcon, { level: leading, people }),
2147
+ label: text,
2148
+ description,
2149
+ selected: on,
2150
+ trailing: on ? /* @__PURE__ */ jsx29(IconCheck3, { ...ICON, "aria-hidden": true }) : void 0,
2151
+ onClick: () => void choose(choice)
2152
+ }
2153
+ );
2154
+ };
2155
+ return /* @__PURE__ */ jsxs21(Menu, { trigger: button, children: [
2156
+ /* @__PURE__ */ jsxs21(MenuSection, { label: "How you follow it", children: [
2157
+ item("off", "Not following", offDescription, void 0),
2158
+ item("important", WORDS.important.label, WORDS.important.description, "important"),
2159
+ item("all", WORDS.all.label, WORDS.all.description, "all")
2160
+ ] }),
2161
+ backTo && /* @__PURE__ */ jsx29(MenuSection, { label: `${backTo} gives you Important`, children: /* @__PURE__ */ jsx29(MenuItem, { label: `Back to ${backTo}\u2019s default`, description: level ? "Your choice no longer applies" : "Your choice no longer applies; only you see that you changed it", onClick: () => void choose("default") }) })
2162
+ ] });
2163
+ }
2164
+
2165
+ // src/WhoFollowsDialog.tsx
2166
+ import { useState as useState9 } from "react";
2167
+
2099
2168
  // src/MembersDialog.tsx
2100
- import { useId as useId3, useState as useState7 } from "react";
2169
+ import { useId as useId3, useState as useState8 } from "react";
2101
2170
  import { IconArrowLeft, IconUserMinus, IconUserPlus } from "@tabler/icons-react";
2102
2171
 
2103
2172
  // src/Chip.tsx
2104
- import { Fragment as Fragment6, jsx as jsx29, jsxs as jsxs21 } from "react/jsx-runtime";
2173
+ import { Fragment as Fragment6, jsx as jsx30, jsxs as jsxs22 } from "react/jsx-runtime";
2105
2174
  var typeStyles = {
2106
2175
  neutral: "bg-bg-inset text-text-primary",
2107
2176
  brand: "bg-accent-muted text-accent-text signal:border signal:border-accent-outline",
@@ -2113,8 +2182,8 @@ var typeStyles = {
2113
2182
  function Chip({ type = "neutral", label, leadingIcon, trailingIcon, href, onClick, className }) {
2114
2183
  const inApp = useInAppClick(href, onClick);
2115
2184
  const classes = cn("inline-flex min-w-0 items-center justify-center gap-1.5 rounded-full max-h-[20px] px-2 py-1", typeStyles[type], className);
2116
- const inside = /* @__PURE__ */ jsxs21(Fragment6, { children: [
2117
- leadingIcon && /* @__PURE__ */ jsx29("span", { className: "flex size-3 shrink-0 items-center justify-center", children: leadingIcon }),
2185
+ const inside = /* @__PURE__ */ jsxs22(Fragment6, { children: [
2186
+ leadingIcon && /* @__PURE__ */ jsx30("span", { className: "flex size-3 shrink-0 items-center justify-center", children: leadingIcon }),
2118
2187
  label && // A chip given a `max-w-*` cuts a long label with an ellipsis instead
2119
2188
  // of growing past it — Ship's project chip on an issue row
2120
2189
  // (2026-09-09). Clipped sideways only: `overflow-x-clip`, not
@@ -2123,19 +2192,19 @@ function Chip({ type = "neutral", label, leadingIcon, trailingIcon, href, onClic
2123
2192
  // the screenshot diff caught every descender cut off. `clip` is the
2124
2193
  // one overflow that leaves the other axis visible. A chip with no cap
2125
2194
  // draws exactly as before.
2126
- /* @__PURE__ */ jsx29("span", { className: cn("min-w-0 overflow-x-clip text-ellipsis whitespace-nowrap signal:tracking-wide", CHIP_TEXT_CLASSES), children: label }),
2127
- trailingIcon && /* @__PURE__ */ jsx29("span", { className: "flex size-3 shrink-0 items-center justify-center", children: trailingIcon })
2195
+ /* @__PURE__ */ jsx30("span", { className: cn("min-w-0 overflow-x-clip text-ellipsis whitespace-nowrap signal:tracking-wide", CHIP_TEXT_CLASSES), children: label }),
2196
+ trailingIcon && /* @__PURE__ */ jsx30("span", { className: "flex size-3 shrink-0 items-center justify-center", children: trailingIcon })
2128
2197
  ] });
2129
- if (href) return /* @__PURE__ */ jsx29("a", { href, onClick: inApp, className: cn("relative", classes), children: inside });
2130
- return /* @__PURE__ */ jsx29("div", { className: classes, children: inside });
2198
+ if (href) return /* @__PURE__ */ jsx30("a", { href, onClick: inApp, className: cn("relative", classes), children: inside });
2199
+ return /* @__PURE__ */ jsx30("div", { className: classes, children: inside });
2131
2200
  }
2132
2201
 
2133
2202
  // src/ChipInput.tsx
2134
- import { useMemo as useMemo2, useState as useState6 } from "react";
2203
+ import { useMemo as useMemo2, useState as useState7 } from "react";
2135
2204
  import { Button as BaseButton6 } from "@base-ui/react/button";
2136
2205
  import { Combobox } from "@base-ui/react/combobox";
2137
2206
  import { IconX as IconX4 } from "@tabler/icons-react";
2138
- import { jsx as jsx30, jsxs as jsxs22 } from "react/jsx-runtime";
2207
+ import { jsx as jsx31, jsxs as jsxs23 } from "react/jsx-runtime";
2139
2208
  var CHIP_BOX = (
2140
2209
  // Curved, not a pill (Katerina, 2026-09-01): the Avatar keeps its own
2141
2210
  // rounded-sm corners — never a forced circle — and the chip's corner
@@ -2146,10 +2215,10 @@ var CHIP_LABEL = "text-caption font-medium text-text-primary";
2146
2215
  var CHIP_REMOVE = "size-4 flex items-center justify-center rounded-full hover:bg-bg-hover text-text-secondary";
2147
2216
  var chipPadding = (leading, removable) => cn(leading ? "pl-[2px]" : "pl-2", removable ? "pr-1" : "pr-2");
2148
2217
  function InputChip({ label, leading, onRemove, removeLabel, truncate, className }) {
2149
- return /* @__PURE__ */ jsxs22("div", { className: cn(CHIP_BOX, chipPadding(!!leading, !!onRemove), className), children: [
2150
- leading && /* @__PURE__ */ jsx30("span", { className: "flex shrink-0 items-center", children: leading }),
2151
- /* @__PURE__ */ jsx30("span", { className: cn(CHIP_LABEL, truncate && "min-w-0 truncate"), children: label }),
2152
- onRemove && /* @__PURE__ */ jsx30(
2218
+ return /* @__PURE__ */ jsxs23("div", { className: cn(CHIP_BOX, chipPadding(!!leading, !!onRemove), className), children: [
2219
+ leading && /* @__PURE__ */ jsx31("span", { className: "flex shrink-0 items-center", children: leading }),
2220
+ /* @__PURE__ */ jsx31("span", { className: cn(CHIP_LABEL, truncate && "min-w-0 truncate"), children: label }),
2221
+ onRemove && /* @__PURE__ */ jsx31(
2153
2222
  BaseButton6,
2154
2223
  {
2155
2224
  type: "button",
@@ -2159,7 +2228,7 @@ function InputChip({ label, leading, onRemove, removeLabel, truncate, className
2159
2228
  },
2160
2229
  className: cn(CHIP_REMOVE, truncate && "shrink-0"),
2161
2230
  "aria-label": removeLabel ?? `Remove ${label}`,
2162
- children: /* @__PURE__ */ jsx30(IconX4, { size: 10, stroke: 1.5 })
2231
+ children: /* @__PURE__ */ jsx31(IconX4, { size: 10, stroke: 1.5 })
2163
2232
  }
2164
2233
  )
2165
2234
  ] });
@@ -2176,8 +2245,8 @@ function ChipInput({
2176
2245
  single = false,
2177
2246
  ...aria
2178
2247
  }) {
2179
- const [query, setQuery] = useState6("");
2180
- const [box, setBox] = useState6(null);
2248
+ const [query, setQuery] = useState7("");
2249
+ const [box, setBox] = useState7(null);
2181
2250
  const available = useMemo2(() => {
2182
2251
  const chosen = new Set(value.map((o) => o.id));
2183
2252
  const excluded = new Set(excludeIds);
@@ -2213,7 +2282,7 @@ function ChipInput({
2213
2282
  setQuery("");
2214
2283
  }
2215
2284
  }
2216
- return /* @__PURE__ */ jsxs22(
2285
+ return /* @__PURE__ */ jsxs23(
2217
2286
  Combobox.Root,
2218
2287
  {
2219
2288
  multiple: true,
@@ -2230,13 +2299,13 @@ function ChipInput({
2230
2299
  filter,
2231
2300
  itemToStringLabel: (option) => option.label,
2232
2301
  children: [
2233
- /* @__PURE__ */ jsxs22(Combobox.Chips, { ref: setBox, className: cn(FIELD_SHELL_CLASSES, FIELD_SHELL_FOCUS_CLASSES, "px-3 py-1.5 flex flex-wrap items-center gap-1.5 min-h-[38px] cursor-text"), children: [
2234
- value.map((option) => /* @__PURE__ */ jsxs22(Combobox.Chip, { className: cn(CHIP_BOX, chipPadding(!!chipLeading, true)), children: [
2235
- chipLeading && /* @__PURE__ */ jsx30("span", { className: "flex shrink-0 items-center", children: chipLeading(option) }),
2236
- /* @__PURE__ */ jsx30("span", { className: CHIP_LABEL, children: option.label }),
2237
- /* @__PURE__ */ jsx30(Combobox.ChipRemove, { className: CHIP_REMOVE, "aria-label": `Remove ${option.label}`, children: /* @__PURE__ */ jsx30(IconX4, { size: 10, stroke: 1.5 }) })
2302
+ /* @__PURE__ */ jsxs23(Combobox.Chips, { ref: setBox, className: cn(FIELD_SHELL_CLASSES, FIELD_SHELL_FOCUS_CLASSES, "px-3 py-1.5 flex flex-wrap items-center gap-1.5 min-h-[38px] cursor-text"), children: [
2303
+ value.map((option) => /* @__PURE__ */ jsxs23(Combobox.Chip, { className: cn(CHIP_BOX, chipPadding(!!chipLeading, true)), children: [
2304
+ chipLeading && /* @__PURE__ */ jsx31("span", { className: "flex shrink-0 items-center", children: chipLeading(option) }),
2305
+ /* @__PURE__ */ jsx31("span", { className: CHIP_LABEL, children: option.label }),
2306
+ /* @__PURE__ */ jsx31(Combobox.ChipRemove, { className: CHIP_REMOVE, "aria-label": `Remove ${option.label}`, children: /* @__PURE__ */ jsx31(IconX4, { size: 10, stroke: 1.5 }) })
2238
2307
  ] }, option.id)),
2239
- /* @__PURE__ */ jsx30(
2308
+ /* @__PURE__ */ jsx31(
2240
2309
  Combobox.Input,
2241
2310
  {
2242
2311
  autoFocus,
@@ -2248,18 +2317,18 @@ function ChipInput({
2248
2317
  }
2249
2318
  )
2250
2319
  ] }),
2251
- /* @__PURE__ */ jsx30(Combobox.Portal, { children: /* @__PURE__ */ jsx30(
2320
+ /* @__PURE__ */ jsx31(Combobox.Portal, { children: /* @__PURE__ */ jsx31(
2252
2321
  Combobox.Positioner,
2253
2322
  {
2254
2323
  anchor: box,
2255
2324
  sideOffset: GAP4,
2256
2325
  collisionPadding: VIEWPORT_PAD4,
2257
2326
  className: "z-50 data-[anchor-hidden]:hidden",
2258
- children: /* @__PURE__ */ jsx30(Combobox.Popup, { className: "w-[var(--anchor-width)] p-0", render: /* @__PURE__ */ jsx30(MenuPanel, {}), children: /* @__PURE__ */ jsx30(ScrollArea, { viewportClassName: "max-h-[240px]", contentClassName: "flex flex-col p-2", children: /* @__PURE__ */ jsx30(Combobox.List, { className: "flex flex-col gap-0.5", children: (option) => /* @__PURE__ */ jsx30(
2327
+ children: /* @__PURE__ */ jsx31(Combobox.Popup, { className: "w-[var(--anchor-width)] p-0", render: /* @__PURE__ */ jsx31(MenuPanel, {}), children: /* @__PURE__ */ jsx31(ScrollArea, { viewportClassName: "max-h-[240px]", contentClassName: "flex flex-col p-2", children: /* @__PURE__ */ jsx31(Combobox.List, { className: "flex flex-col gap-0.5", children: (option) => /* @__PURE__ */ jsx31(
2259
2328
  Combobox.Item,
2260
2329
  {
2261
2330
  value: option,
2262
- render: /* @__PURE__ */ jsx30(
2331
+ render: /* @__PURE__ */ jsx31(
2263
2332
  MenuItem,
2264
2333
  {
2265
2334
  size: "tall",
@@ -2281,13 +2350,80 @@ var GAP4 = 4;
2281
2350
  var VIEWPORT_PAD4 = 8;
2282
2351
 
2283
2352
  // src/MembersDialog.tsx
2284
- import { Fragment as Fragment7, jsx as jsx31, jsxs as jsxs23 } from "react/jsx-runtime";
2353
+ import { Fragment as Fragment7, jsx as jsx32, jsxs as jsxs24 } from "react/jsx-runtime";
2285
2354
  var LEADING_CLASSES = "size-8 rounded-md bg-accent-muted flex items-center justify-center shrink-0 text-accent-text";
2286
- function MembersDialog({ members, count, self, candidates = [], onAdd, note, initialView = "list", onClose }) {
2287
- const [view, setView] = useState7(onAdd ? initialView : "list");
2288
- const [chosen, setChosen] = useState7([]);
2289
- const [toggling, setToggling] = useState7(false);
2355
+ function RosterRow({ member, trailing }) {
2356
+ return /* @__PURE__ */ jsxs24("div", { className: "flex h-12 items-center gap-3 px-5", children: [
2357
+ /* @__PURE__ */ jsx32(Avatar, { size: 32, name: member.name, src: member.picture, bot: member.bot }),
2358
+ /* @__PURE__ */ jsxs24("div", { className: "flex min-w-0 flex-1 flex-col justify-center gap-[2px]", children: [
2359
+ /* @__PURE__ */ jsx32("div", { className: "truncate text-body-2 text-text-primary", children: member.name }),
2360
+ member.caption && /* @__PURE__ */ jsx32("div", { className: "truncate text-caption text-text-secondary", children: member.caption })
2361
+ ] }),
2362
+ trailing
2363
+ ] });
2364
+ }
2365
+ function AddRow({ label, onClick }) {
2366
+ return /* @__PURE__ */ jsx32(
2367
+ MenuItem,
2368
+ {
2369
+ size: "tall",
2370
+ className: "py-2",
2371
+ onClick,
2372
+ leading: /* @__PURE__ */ jsx32("span", { className: LEADING_CLASSES, children: /* @__PURE__ */ jsx32(IconUserPlus, { size: 16, stroke: 1.5 }) }),
2373
+ label
2374
+ }
2375
+ );
2376
+ }
2377
+ function AddPeopleLayer({
2378
+ title,
2379
+ backLabel,
2380
+ candidates,
2381
+ excludeIds,
2382
+ onAdd,
2383
+ onBack,
2384
+ onClose
2385
+ }) {
2386
+ const [chosen, setChosen] = useState8([]);
2290
2387
  const formId = useId3();
2388
+ const add = async () => {
2389
+ if (chosen.length === 0) return;
2390
+ if (await onAdd(chosen) === false) return;
2391
+ setChosen([]);
2392
+ onBack();
2393
+ };
2394
+ return /* @__PURE__ */ jsx32(
2395
+ DialogShell,
2396
+ {
2397
+ title,
2398
+ onClose,
2399
+ headerContent: /* @__PURE__ */ jsxs24("div", { className: "flex min-w-0 items-center gap-2", children: [
2400
+ /* @__PURE__ */ jsx32(IconButton, { tooltip: backLabel, "aria-label": backLabel, className: "-ml-2", onClick: onBack, children: /* @__PURE__ */ jsx32(IconArrowLeft, { size: 16, stroke: 1.5 }) }),
2401
+ /* @__PURE__ */ jsx32("span", { className: "truncate text-h4 text-text-primary", children: title })
2402
+ ] }),
2403
+ bodyClassName: "flex flex-col gap-6",
2404
+ footer: /* @__PURE__ */ jsxs24(Fragment7, { children: [
2405
+ /* @__PURE__ */ jsx32(Button, { variant: "muted", onClick: onClose, children: "Cancel" }),
2406
+ /* @__PURE__ */ jsx32(Button, { variant: "primary", type: "submit", form: formId, disabled: chosen.length === 0, children: "Invite" })
2407
+ ] }),
2408
+ children: /* @__PURE__ */ jsx32(Form, { id: formId, onSubmit: add, children: /* @__PURE__ */ jsx32(Field, { label: "Invite people", required: true, children: /* @__PURE__ */ jsx32(
2409
+ ChipInput,
2410
+ {
2411
+ value: chosen,
2412
+ onChange: setChosen,
2413
+ options: candidates,
2414
+ placeholder: "Search people...",
2415
+ excludeIds,
2416
+ chipLeading: (o) => /* @__PURE__ */ jsx32(Avatar, { name: o.label, src: o.picture, bot: o.bot, size: 16 }),
2417
+ rowLeading: (o) => /* @__PURE__ */ jsx32(Avatar, { name: o.label, src: o.picture, bot: o.bot, size: 32 }),
2418
+ autoFocus: true
2419
+ }
2420
+ ) }) })
2421
+ }
2422
+ );
2423
+ }
2424
+ function MembersDialog({ members, count, self, candidates = [], onAdd, note, initialView = "list", onClose }) {
2425
+ const [view, setView] = useState8(onAdd ? initialView : "list");
2426
+ const [toggling, setToggling] = useState8(false);
2291
2427
  const toggle = async () => {
2292
2428
  if (!self || toggling) return;
2293
2429
  setToggling(true);
@@ -2297,98 +2433,96 @@ function MembersDialog({ members, count, self, candidates = [], onAdd, note, ini
2297
2433
  setToggling(false);
2298
2434
  }
2299
2435
  };
2300
- const add = async () => {
2301
- if (!onAdd || chosen.length === 0) return;
2302
- if (await onAdd(chosen) === false) return;
2303
- setChosen([]);
2304
- setView("list");
2305
- };
2306
2436
  const ownRow = self?.action === "leave" ? members.find((m) => m.id === self.id) : void 0;
2307
2437
  const roster = ownRow ? [ownRow, ...members.filter((m) => m !== ownRow)] : members;
2308
2438
  const selfOnTop = self && !ownRow;
2309
2439
  if (view === "add" && onAdd) {
2310
- return /* @__PURE__ */ jsx31(
2311
- DialogShell,
2440
+ return /* @__PURE__ */ jsx32(
2441
+ AddPeopleLayer,
2312
2442
  {
2313
2443
  title: "Add members",
2314
- onClose,
2315
- headerContent: /* @__PURE__ */ jsxs23("div", { className: "flex min-w-0 items-center gap-2", children: [
2316
- /* @__PURE__ */ jsx31(IconButton, { tooltip: "Back to members", "aria-label": "Back to members", className: "-ml-2", onClick: () => setView("list"), children: /* @__PURE__ */ jsx31(IconArrowLeft, { size: 16, stroke: 1.5 }) }),
2317
- /* @__PURE__ */ jsx31("span", { className: "truncate text-h4 text-text-primary", children: "Add members" })
2318
- ] }),
2319
- bodyClassName: "flex flex-col gap-6",
2320
- footer: /* @__PURE__ */ jsxs23(Fragment7, { children: [
2321
- /* @__PURE__ */ jsx31(Button, { variant: "muted", onClick: onClose, children: "Cancel" }),
2322
- /* @__PURE__ */ jsx31(Button, { variant: "primary", type: "submit", form: formId, disabled: chosen.length === 0, children: "Invite" })
2323
- ] }),
2324
- children: /* @__PURE__ */ jsx31(Form, { id: formId, onSubmit: add, children: /* @__PURE__ */ jsx31(Field, { label: "Invite people", required: true, children: /* @__PURE__ */ jsx31(
2325
- ChipInput,
2326
- {
2327
- value: chosen,
2328
- onChange: setChosen,
2329
- options: candidates,
2330
- placeholder: "Search people...",
2331
- excludeIds: members.map((m) => m.id),
2332
- chipLeading: (o) => /* @__PURE__ */ jsx31(Avatar, { name: o.label, src: o.picture, bot: o.bot, size: 16 }),
2333
- rowLeading: (o) => /* @__PURE__ */ jsx31(Avatar, { name: o.label, src: o.picture, bot: o.bot, size: 32 }),
2334
- autoFocus: true
2335
- }
2336
- ) }) })
2444
+ backLabel: "Back to members",
2445
+ candidates,
2446
+ excludeIds: members.map((m) => m.id),
2447
+ onAdd,
2448
+ onBack: () => setView("list"),
2449
+ onClose
2337
2450
  }
2338
2451
  );
2339
2452
  }
2340
- return /* @__PURE__ */ jsxs23(
2453
+ return /* @__PURE__ */ jsxs24(
2341
2454
  DialogShell,
2342
2455
  {
2343
2456
  title: "Members",
2344
2457
  onClose,
2345
- headerContent: /* @__PURE__ */ jsxs23("div", { className: "flex min-w-0 items-center gap-2", children: [
2346
- /* @__PURE__ */ jsx31("span", { className: "truncate text-h4 text-text-primary", children: "Members" }),
2347
- /* @__PURE__ */ jsx31(Chip, { label: String(count ?? members.length) })
2458
+ headerContent: /* @__PURE__ */ jsxs24("div", { className: "flex min-w-0 items-center gap-2", children: [
2459
+ /* @__PURE__ */ jsx32("span", { className: "truncate text-h4 text-text-primary", children: "Members" }),
2460
+ /* @__PURE__ */ jsx32(Chip, { label: String(count ?? members.length) })
2348
2461
  ] }),
2349
2462
  bodyMaxHeight: "max-h-[400px]",
2350
2463
  bodyClassName: "p-0 py-2",
2351
2464
  children: [
2352
- (selfOnTop || onAdd) && /* @__PURE__ */ jsxs23("div", { className: "flex flex-col px-2", children: [
2353
- selfOnTop && /* @__PURE__ */ jsx31(
2465
+ (selfOnTop || onAdd) && /* @__PURE__ */ jsxs24("div", { className: "flex flex-col px-2", children: [
2466
+ selfOnTop && /* @__PURE__ */ jsx32(
2354
2467
  MenuItem,
2355
2468
  {
2356
2469
  size: "tall",
2357
2470
  className: "py-2",
2358
2471
  disabled: toggling,
2359
2472
  onClick: () => void toggle(),
2360
- leading: /* @__PURE__ */ jsx31("span", { className: LEADING_CLASSES, children: self.action === "join" ? /* @__PURE__ */ jsx31(IconUserPlus, { size: 16, stroke: 1.5 }) : /* @__PURE__ */ jsx31(IconUserMinus, { size: 16, stroke: 1.5 }) }),
2473
+ leading: /* @__PURE__ */ jsx32("span", { className: LEADING_CLASSES, children: self.action === "join" ? /* @__PURE__ */ jsx32(IconUserPlus, { size: 16, stroke: 1.5 }) : /* @__PURE__ */ jsx32(IconUserMinus, { size: 16, stroke: 1.5 }) }),
2361
2474
  label: self.action === "join" ? "Join" : "Leave"
2362
2475
  }
2363
2476
  ),
2364
- onAdd && /* @__PURE__ */ jsx31(
2365
- MenuItem,
2366
- {
2367
- size: "tall",
2368
- className: "py-2",
2369
- onClick: () => setView("add"),
2370
- leading: /* @__PURE__ */ jsx31("span", { className: LEADING_CLASSES, children: /* @__PURE__ */ jsx31(IconUserPlus, { size: 16, stroke: 1.5 }) }),
2371
- label: "Add members"
2372
- }
2373
- )
2477
+ onAdd && /* @__PURE__ */ jsx32(AddRow, { label: "Add members", onClick: () => setView("add") })
2374
2478
  ] }),
2375
- roster.map((member) => /* @__PURE__ */ jsxs23("div", { className: "flex h-12 items-center gap-3 px-5", children: [
2376
- /* @__PURE__ */ jsx31(Avatar, { size: 32, name: member.name, src: member.picture, bot: member.bot }),
2377
- /* @__PURE__ */ jsxs23("div", { className: "flex min-w-0 flex-1 flex-col justify-center gap-[2px]", children: [
2378
- /* @__PURE__ */ jsx31("div", { className: "truncate text-body-2 text-text-primary", children: member.name }),
2379
- member.caption && /* @__PURE__ */ jsx31("div", { className: "truncate text-caption text-text-secondary", children: member.caption })
2380
- ] }),
2381
- member === ownRow && /* @__PURE__ */ jsx31(Button, { variant: "destructive", size: "small", disabled: toggling, onClick: () => void toggle(), children: "Leave" })
2382
- ] }, member.id)),
2383
- note && /* @__PURE__ */ jsx31("div", { className: "px-5 pb-2 pt-3 text-caption text-text-secondary", children: note })
2479
+ roster.map((member) => /* @__PURE__ */ jsx32(
2480
+ RosterRow,
2481
+ {
2482
+ member,
2483
+ trailing: member === ownRow && /* @__PURE__ */ jsx32(Button, { variant: "destructive", size: "small", disabled: toggling, onClick: () => void toggle(), children: "Leave" })
2484
+ },
2485
+ member.id
2486
+ )),
2487
+ note && /* @__PURE__ */ jsx32("div", { className: "px-5 pb-2 pt-3 text-caption text-text-secondary", children: note })
2384
2488
  ]
2385
2489
  }
2386
2490
  );
2387
2491
  }
2388
2492
 
2493
+ // src/WhoFollowsDialog.tsx
2494
+ import { jsx as jsx33, jsxs as jsxs25 } from "react/jsx-runtime";
2495
+ function WhoFollowsDialog({ title, all, important, candidates = [], onAdd, initialView = "list", onClose }) {
2496
+ const [view, setView] = useState9(onAdd ? initialView : "list");
2497
+ const heading = `Who follows ${title}`;
2498
+ if (view === "add" && onAdd) {
2499
+ return /* @__PURE__ */ jsx33(
2500
+ AddPeopleLayer,
2501
+ {
2502
+ title: "Add someone",
2503
+ backLabel: "Back to who follows",
2504
+ candidates,
2505
+ excludeIds: [...all, ...important].map((m) => m.id),
2506
+ onAdd,
2507
+ onBack: () => setView("list"),
2508
+ onClose
2509
+ }
2510
+ );
2511
+ }
2512
+ const group = (label, rows) => /* @__PURE__ */ jsxs25("div", { className: "flex flex-col pt-2", children: [
2513
+ /* @__PURE__ */ jsx33(SectionLabel, { tone: "muted", className: "px-5", children: `${label} \xB7 ${rows.length}` }),
2514
+ rows.length === 0 ? /* @__PURE__ */ jsx33("div", { className: "px-5", children: /* @__PURE__ */ jsx33(EmptyState, { scope: "rows", message: "Nobody" }) }) : rows.map((m) => /* @__PURE__ */ jsx33(RosterRow, { member: m }, m.id))
2515
+ ] });
2516
+ return /* @__PURE__ */ jsxs25(DialogShell, { title: heading, onClose, bodyMaxHeight: "max-h-[400px]", bodyClassName: "p-0 py-2", children: [
2517
+ onAdd && /* @__PURE__ */ jsx33("div", { className: "flex flex-col px-2", children: /* @__PURE__ */ jsx33(AddRow, { label: "Add someone", onClick: () => setView("add") }) }),
2518
+ group("All", all),
2519
+ group("Important", important)
2520
+ ] });
2521
+ }
2522
+
2389
2523
  // src/Banner.tsx
2390
2524
  import { IconX as IconX5 } from "@tabler/icons-react";
2391
- import { jsx as jsx32, jsxs as jsxs24 } from "react/jsx-runtime";
2525
+ import { jsx as jsx34, jsxs as jsxs26 } from "react/jsx-runtime";
2392
2526
  var TONE_STYLES = {
2393
2527
  ok: "bg-success-muted text-success-default",
2394
2528
  error: "bg-error-muted text-error-default",
@@ -2398,21 +2532,21 @@ var TONE_STYLES = {
2398
2532
  function Banner({ tone, children, icon, action, onDismiss, dismissLabel = "Dismiss", className }) {
2399
2533
  const role = tone === "error" ? "alert" : "status";
2400
2534
  if (!onDismiss && !icon && !action) {
2401
- return /* @__PURE__ */ jsx32("div", { role, className: cn("px-4 py-2 text-body-2", TONE_STYLES[tone], className), children });
2535
+ return /* @__PURE__ */ jsx34("div", { role, className: cn("px-4 py-2 text-body-2", TONE_STYLES[tone], className), children });
2402
2536
  }
2403
2537
  const oneLine = Boolean(icon || action);
2404
- return /* @__PURE__ */ jsxs24("div", { role, className: cn("flex items-center gap-3 px-4 py-2 text-body-2", TONE_STYLES[tone], className), children: [
2405
- icon && /* @__PURE__ */ jsx32("span", { className: "flex shrink-0", children: icon }),
2406
- /* @__PURE__ */ jsx32("span", { className: cn("min-w-0 flex-1", oneLine && "truncate"), children }),
2407
- action && /* @__PURE__ */ jsx32(Button, { variant: "muted", size: "small", className: "shrink-0", onClick: action.onClick, children: action.label }),
2408
- onDismiss && /* @__PURE__ */ jsx32(IconButton, { variant: "current", "aria-label": dismissLabel, onClick: onDismiss, className: "-mr-1 shrink-0", children: /* @__PURE__ */ jsx32(IconX5, { size: 16, stroke: 1.5 }) })
2538
+ return /* @__PURE__ */ jsxs26("div", { role, className: cn("flex items-center gap-3 px-4 py-2 text-body-2", TONE_STYLES[tone], className), children: [
2539
+ icon && /* @__PURE__ */ jsx34("span", { className: "flex shrink-0", children: icon }),
2540
+ /* @__PURE__ */ jsx34("span", { className: cn("min-w-0 flex-1", oneLine && "truncate"), children }),
2541
+ action && /* @__PURE__ */ jsx34(Button, { variant: "muted", size: "small", className: "shrink-0", onClick: action.onClick, children: action.label }),
2542
+ onDismiss && /* @__PURE__ */ jsx34(IconButton, { variant: "current", "aria-label": dismissLabel, onClick: onDismiss, className: "-mr-1 shrink-0", children: /* @__PURE__ */ jsx34(IconX5, { size: 16, stroke: 1.5 }) })
2409
2543
  ] });
2410
2544
  }
2411
2545
 
2412
2546
  // src/BlockHandle.tsx
2413
- import { useCallback as useCallback2, useEffect as useEffect5, useRef as useRef8, useState as useState8 } from "react";
2547
+ import { useCallback as useCallback2, useEffect as useEffect5, useRef as useRef8, useState as useState10 } from "react";
2414
2548
  import { IconGripVertical } from "@tabler/icons-react";
2415
- import { jsx as jsx33, jsxs as jsxs25 } from "react/jsx-runtime";
2549
+ import { jsx as jsx35, jsxs as jsxs27 } from "react/jsx-runtime";
2416
2550
  function readId(element) {
2417
2551
  const own = element.getAttribute("data-block-id") ?? element.querySelector("[data-block-id]")?.getAttribute("data-block-id");
2418
2552
  return own || void 0;
@@ -2440,9 +2574,9 @@ function firstLineOffset(element) {
2440
2574
  function BlockHandle({ actions, editing, children, className }) {
2441
2575
  const frame = useRef8(null);
2442
2576
  const content = useRef8(null);
2443
- const [block, setBlock] = useState8(null);
2444
- const [top, setTop] = useState8(0);
2445
- const [open, setOpen] = useState8(false);
2577
+ const [block, setBlock] = useState10(null);
2578
+ const [top, setTop] = useState10(0);
2579
+ const [open, setOpen] = useState10(false);
2446
2580
  const follow = useCallback2(
2447
2581
  (y) => {
2448
2582
  if (!content.current || !frame.current) return;
@@ -2461,7 +2595,7 @@ function BlockHandle({ actions, editing, children, className }) {
2461
2595
  const rows = editing && block ? editing.rows(block) : null;
2462
2596
  const own = actions && block ? actions(block) : null;
2463
2597
  const dragging = useRef8(false);
2464
- const [line, setLine] = useState8(null);
2598
+ const [line, setLine] = useState10(null);
2465
2599
  const inGutter = (e) => dragging.current && !!editing && !!content.current && !content.current.contains(e.target);
2466
2600
  const landing = (y) => {
2467
2601
  const target = editing?.find(y);
@@ -2477,7 +2611,7 @@ function BlockHandle({ actions, editing, children, className }) {
2477
2611
  setLine(null);
2478
2612
  editing?.endDrag();
2479
2613
  };
2480
- return /* @__PURE__ */ jsxs25(
2614
+ return /* @__PURE__ */ jsxs27(
2481
2615
  "div",
2482
2616
  {
2483
2617
  ref: frame,
@@ -2505,16 +2639,16 @@ function BlockHandle({ actions, editing, children, className }) {
2505
2639
  if (!frame.current?.contains(e.relatedTarget)) setLine(null);
2506
2640
  },
2507
2641
  children: [
2508
- /* @__PURE__ */ jsx33("div", { ref: content, children }),
2509
- /* @__PURE__ */ jsx33("div", { "aria-hidden": true, className: "absolute inset-y-0 -left-7 w-7" }),
2510
- line !== null && /* @__PURE__ */ jsx33("div", { "aria-hidden": true, className: "pointer-events-none absolute inset-x-0 h-px bg-accent-primary", style: { top: line } }),
2642
+ /* @__PURE__ */ jsx35("div", { ref: content, children }),
2643
+ /* @__PURE__ */ jsx35("div", { "aria-hidden": true, className: "absolute inset-y-0 -left-7 w-7" }),
2644
+ line !== null && /* @__PURE__ */ jsx35("div", { "aria-hidden": true, className: "pointer-events-none absolute inset-x-0 h-px bg-accent-primary", style: { top: line } }),
2511
2645
  block && (rows || own) && // The top is the block's, measured: it depends on the document, not on a size of ours.
2512
- /* @__PURE__ */ jsx33("div", { className: cn("absolute -left-7", rows && "cursor-grab active:cursor-grabbing"), style: { top }, children: /* @__PURE__ */ jsxs25(
2646
+ /* @__PURE__ */ jsx35("div", { className: cn("absolute -left-7", rows && "cursor-grab active:cursor-grabbing"), style: { top }, children: /* @__PURE__ */ jsxs27(
2513
2647
  Menu,
2514
2648
  {
2515
2649
  open,
2516
2650
  onOpenChange: setOpen,
2517
- trigger: /* @__PURE__ */ jsx33(
2651
+ trigger: /* @__PURE__ */ jsx35(
2518
2652
  IconButton,
2519
2653
  {
2520
2654
  "aria-label": "Block menu",
@@ -2535,12 +2669,12 @@ function BlockHandle({ actions, editing, children, className }) {
2535
2669
  endDrag();
2536
2670
  setBlock(null);
2537
2671
  },
2538
- children: /* @__PURE__ */ jsx33(IconGripVertical, { size: 16, stroke: 1.5 })
2672
+ children: /* @__PURE__ */ jsx35(IconGripVertical, { size: 16, stroke: 1.5 })
2539
2673
  }
2540
2674
  ),
2541
2675
  children: [
2542
2676
  rows,
2543
- rows && own && /* @__PURE__ */ jsx33(MenuSeparator, {}),
2677
+ rows && own && /* @__PURE__ */ jsx35(MenuSeparator, {}),
2544
2678
  own
2545
2679
  ]
2546
2680
  }
@@ -2558,51 +2692,51 @@ import {
2558
2692
  useLayoutEffect as useLayoutEffect3,
2559
2693
  useMemo as useMemo3,
2560
2694
  useRef as useRef9,
2561
- useState as useState9
2695
+ useState as useState11
2562
2696
  } from "react";
2563
2697
  import { Dialog as Dialog3 } from "@base-ui/react/dialog";
2564
2698
  import { Autocomplete } from "@base-ui/react/autocomplete";
2565
2699
  import { IconLoader2 as IconLoader22, IconSearch } from "@tabler/icons-react";
2566
2700
 
2567
2701
  // src/Skeleton.tsx
2568
- import { jsx as jsx34, jsxs as jsxs26 } from "react/jsx-runtime";
2702
+ import { jsx as jsx36, jsxs as jsxs28 } from "react/jsx-runtime";
2569
2703
  var SKELETON_SHAPE = { bar: "rounded-sm", round: "rounded-full", control: "rounded-md" };
2570
2704
  function SkeletonBar({ className, style, on = "surface", shape = "bar" }) {
2571
- return /* @__PURE__ */ jsx34("div", { className: cn("animate-pulse", SKELETON_SHAPE[shape], on === "inset" ? "bg-bg-active" : "bg-bg-inset", className), style });
2705
+ return /* @__PURE__ */ jsx36("div", { className: cn("animate-pulse", SKELETON_SHAPE[shape], on === "inset" ? "bg-bg-active" : "bg-bg-inset", className), style });
2572
2706
  }
2573
2707
  var ROW_BAR_WIDTHS = [150, 100, 170, 120, 90, 140, 110, 160];
2574
2708
  function SkeletonRow({ barWidth = 130 }) {
2575
- return /* @__PURE__ */ jsxs26("div", { className: "flex shrink-0 items-center gap-2 px-2 h-[32px] rounded-lg", children: [
2576
- /* @__PURE__ */ jsx34(SkeletonBar, { className: "w-4 h-4 shrink-0" }),
2577
- /* @__PURE__ */ jsx34(SkeletonBar, { className: "h-3.5", style: { width: barWidth } })
2709
+ return /* @__PURE__ */ jsxs28("div", { className: "flex shrink-0 items-center gap-2 px-2 h-[32px] rounded-lg", children: [
2710
+ /* @__PURE__ */ jsx36(SkeletonBar, { className: "w-4 h-4 shrink-0" }),
2711
+ /* @__PURE__ */ jsx36(SkeletonBar, { className: "h-3.5", style: { width: barWidth } })
2578
2712
  ] });
2579
2713
  }
2580
2714
  function SkeletonList({ rows = 8, className }) {
2581
- return /* @__PURE__ */ jsx34("div", { className: cn("flex flex-col gap-0.5 animate-skeleton-in", className), "aria-hidden": true, children: Array.from({ length: rows }, (_, i) => /* @__PURE__ */ jsx34(SkeletonRow, { barWidth: ROW_BAR_WIDTHS[i % ROW_BAR_WIDTHS.length] }, i)) });
2715
+ return /* @__PURE__ */ jsx36("div", { className: cn("flex flex-col gap-0.5 animate-skeleton-in", className), "aria-hidden": true, children: Array.from({ length: rows }, (_, i) => /* @__PURE__ */ jsx36(SkeletonRow, { barWidth: ROW_BAR_WIDTHS[i % ROW_BAR_WIDTHS.length] }, i)) });
2582
2716
  }
2583
2717
  function SkeletonCard({ secondLine }) {
2584
- return /* @__PURE__ */ jsxs26("div", { className: "rounded-lg px-2 pt-2", children: [
2585
- /* @__PURE__ */ jsxs26("div", { className: "flex w-full items-center gap-2", children: [
2586
- /* @__PURE__ */ jsx34(SkeletonBar, { className: "h-6 w-6 shrink-0" }),
2587
- /* @__PURE__ */ jsx34(SkeletonBar, { className: "h-3.5 w-[110px]" }),
2588
- /* @__PURE__ */ jsx34(SkeletonBar, { className: "h-3 w-10" })
2718
+ return /* @__PURE__ */ jsxs28("div", { className: "rounded-lg px-2 pt-2", children: [
2719
+ /* @__PURE__ */ jsxs28("div", { className: "flex w-full items-center gap-2", children: [
2720
+ /* @__PURE__ */ jsx36(SkeletonBar, { className: "h-6 w-6 shrink-0" }),
2721
+ /* @__PURE__ */ jsx36(SkeletonBar, { className: "h-3.5 w-[110px]" }),
2722
+ /* @__PURE__ */ jsx36(SkeletonBar, { className: "h-3 w-10" })
2589
2723
  ] }),
2590
- /* @__PURE__ */ jsxs26("div", { className: "flex flex-col gap-2 pb-2 pl-8 pr-2 pt-2", children: [
2591
- /* @__PURE__ */ jsx34(SkeletonBar, { className: "h-3.5 w-full" }),
2592
- /* @__PURE__ */ jsx34(SkeletonBar, { className: "h-3.5 max-w-full", style: { width: secondLine } })
2724
+ /* @__PURE__ */ jsxs28("div", { className: "flex flex-col gap-2 pb-2 pl-8 pr-2 pt-2", children: [
2725
+ /* @__PURE__ */ jsx36(SkeletonBar, { className: "h-3.5 w-full" }),
2726
+ /* @__PURE__ */ jsx36(SkeletonBar, { className: "h-3.5 max-w-full", style: { width: secondLine } })
2593
2727
  ] })
2594
2728
  ] });
2595
2729
  }
2596
2730
  function SkeletonConversation({ className }) {
2597
- return /* @__PURE__ */ jsxs26("div", { className: cn("flex flex-col gap-2 animate-skeleton-in", className), "aria-hidden": true, children: [
2598
- /* @__PURE__ */ jsx34(SkeletonCard, { secondLine: 420 }),
2599
- /* @__PURE__ */ jsx34(SkeletonCard, { secondLine: 300 }),
2600
- /* @__PURE__ */ jsx34(SkeletonCard, { secondLine: 500 })
2731
+ return /* @__PURE__ */ jsxs28("div", { className: cn("flex flex-col gap-2 animate-skeleton-in", className), "aria-hidden": true, children: [
2732
+ /* @__PURE__ */ jsx36(SkeletonCard, { secondLine: 420 }),
2733
+ /* @__PURE__ */ jsx36(SkeletonCard, { secondLine: 300 }),
2734
+ /* @__PURE__ */ jsx36(SkeletonCard, { secondLine: 500 })
2601
2735
  ] });
2602
2736
  }
2603
2737
 
2604
2738
  // src/CommandPalette.tsx
2605
- import { Fragment as Fragment8, jsx as jsx35, jsxs as jsxs27 } from "react/jsx-runtime";
2739
+ import { Fragment as Fragment8, jsx as jsx37, jsxs as jsxs29 } from "react/jsx-runtime";
2606
2740
  var PaletteContext = createContext6(null);
2607
2741
  function usePalette(part) {
2608
2742
  const palette = useContext6(PaletteContext);
@@ -2628,9 +2762,9 @@ function CommandPalette({ open, onOpenChange, label, where, modKey = "Ctrl", chi
2628
2762
  return () => cancelAnimationFrame(frame);
2629
2763
  });
2630
2764
  const context = useMemo3(() => ({ where, modKey, popupRef }), [where, modKey]);
2631
- return /* @__PURE__ */ jsx35(Dialog3.Root, { open, onOpenChange: (next) => onOpenChange(next), children: /* @__PURE__ */ jsxs27(Dialog3.Portal, { children: [
2632
- /* @__PURE__ */ jsx35(Dialog3.Backdrop, { className: "fixed inset-0 z-40 bg-scrim" }),
2633
- /* @__PURE__ */ jsx35(Dialog3.Viewport, { className: "fixed inset-0 z-50 flex items-start justify-center pt-[16vh]", children: /* @__PURE__ */ jsx35(
2765
+ return /* @__PURE__ */ jsx37(Dialog3.Root, { open, onOpenChange: (next) => onOpenChange(next), children: /* @__PURE__ */ jsxs29(Dialog3.Portal, { children: [
2766
+ /* @__PURE__ */ jsx37(Dialog3.Backdrop, { className: "fixed inset-0 z-40 bg-scrim" }),
2767
+ /* @__PURE__ */ jsx37(Dialog3.Viewport, { className: "fixed inset-0 z-50 flex items-start justify-center pt-[16vh]", children: /* @__PURE__ */ jsx37(
2634
2768
  Dialog3.Popup,
2635
2769
  {
2636
2770
  ref: popupRef,
@@ -2640,13 +2774,13 @@ function CommandPalette({ open, onOpenChange, label, where, modKey = "Ctrl", chi
2640
2774
  if (e.target === popupRef.current) firstControl(popupRef.current)?.focus();
2641
2775
  },
2642
2776
  className: "flex w-[658px] max-w-[calc(100vw-32px)] flex-col overflow-hidden rounded-lg border border-border-default bg-bg-elevated shadow-lg outline-none",
2643
- children: /* @__PURE__ */ jsx35(PaletteContext.Provider, { value: context, children })
2777
+ children: /* @__PURE__ */ jsx37(PaletteContext.Provider, { value: context, children })
2644
2778
  }
2645
2779
  ) })
2646
2780
  ] }) });
2647
2781
  }
2648
2782
  function LevelChip({ chip, onBack }) {
2649
- return /* @__PURE__ */ jsx35(InputChip, { label: chip.label, leading: chip.leading, onRemove: onBack, removeLabel: `Leave ${chip.label}`, truncate: true, className: "max-w-[272px] shrink-0" });
2783
+ return /* @__PURE__ */ jsx37(InputChip, { label: chip.label, leading: chip.leading, onRemove: onBack, removeLabel: `Leave ${chip.label}`, truncate: true, className: "max-w-[272px] shrink-0" });
2650
2784
  }
2651
2785
  function useBack(chip, popupRef) {
2652
2786
  return () => {
@@ -2657,10 +2791,10 @@ function useBack(chip, popupRef) {
2657
2791
  }
2658
2792
  function Footer({ keys }) {
2659
2793
  const { where } = usePalette("The footer");
2660
- return /* @__PURE__ */ jsxs27("div", { className: cn("flex h-9 shrink-0 items-center gap-4 border-t border-border-subtle px-5", MONO_CAPTION_CLASSES, "signal:text-text-muted leaf:font-mono leaf:text-small"), children: [
2661
- /* @__PURE__ */ jsx35("span", { className: "min-w-0 flex-1 truncate", children: where }),
2662
- keys.map(([key, word]) => /* @__PURE__ */ jsxs27("span", { className: "flex shrink-0 items-center gap-1.5", children: [
2663
- /* @__PURE__ */ jsx35(Kbd, { children: key }),
2794
+ return /* @__PURE__ */ jsxs29("div", { className: cn("flex h-9 shrink-0 items-center gap-4 border-t border-border-subtle px-5", MONO_CAPTION_CLASSES, "signal:text-text-muted leaf:font-mono leaf:text-small"), children: [
2795
+ /* @__PURE__ */ jsx37("span", { className: "min-w-0 flex-1 truncate", children: where }),
2796
+ keys.map(([key, word]) => /* @__PURE__ */ jsxs29("span", { className: "flex shrink-0 items-center gap-1.5", children: [
2797
+ /* @__PURE__ */ jsx37(Kbd, { children: key }),
2664
2798
  " ",
2665
2799
  word
2666
2800
  ] }, key))
@@ -2672,7 +2806,7 @@ function CommandPaletteSearch({ query, onQueryChange, placeholder, groups, chip,
2672
2806
  const back = useBack(chip, popupRef);
2673
2807
  const items = useMemo3(() => groups.filter((g) => g.rows.length > 0).map((g) => ({ value: g.label, items: g.rows })), [groups]);
2674
2808
  const rows = items.flatMap((g) => g.items);
2675
- const [litId, setLitId] = useState9();
2809
+ const [litId, setLitId] = useState11();
2676
2810
  const lit = litId === void 0 ? void 0 : rows.find((r) => r.id === litId);
2677
2811
  const inputRef = useRef9(null);
2678
2812
  const reported = useRef9({});
@@ -2737,7 +2871,7 @@ function CommandPaletteSearch({ query, onQueryChange, placeholder, groups, chip,
2737
2871
  ...chip && query === "" ? [["Backspace", "back"]] : [],
2738
2872
  ["Esc", "close"]
2739
2873
  ];
2740
- return /* @__PURE__ */ jsxs27(
2874
+ return /* @__PURE__ */ jsxs29(
2741
2875
  Autocomplete.Root,
2742
2876
  {
2743
2877
  items,
@@ -2760,10 +2894,10 @@ function CommandPaletteSearch({ query, onQueryChange, placeholder, groups, chip,
2760
2894
  setLitId(id);
2761
2895
  },
2762
2896
  children: [
2763
- /* @__PURE__ */ jsxs27("div", { className: "flex h-12 shrink-0 items-center gap-3 border-b border-border-subtle px-5", children: [
2764
- /* @__PURE__ */ jsx35(IconSearch, { size: 16, stroke: 1.5, className: "shrink-0 text-text-secondary" }),
2765
- chip && /* @__PURE__ */ jsx35(LevelChip, { chip, onBack: back }),
2766
- /* @__PURE__ */ jsx35(
2897
+ /* @__PURE__ */ jsxs29("div", { className: "flex h-12 shrink-0 items-center gap-3 border-b border-border-subtle px-5", children: [
2898
+ /* @__PURE__ */ jsx37(IconSearch, { size: 16, stroke: 1.5, className: "shrink-0 text-text-secondary" }),
2899
+ chip && /* @__PURE__ */ jsx37(LevelChip, { chip, onBack: back }),
2900
+ /* @__PURE__ */ jsx37(
2767
2901
  Autocomplete.Input,
2768
2902
  {
2769
2903
  ref: inputRef,
@@ -2775,44 +2909,44 @@ function CommandPaletteSearch({ query, onQueryChange, placeholder, groups, chip,
2775
2909
  }
2776
2910
  )
2777
2911
  ] }),
2778
- /* @__PURE__ */ jsxs27(ScrollArea, { viewportClassName: "max-h-[420px]", contentClassName: "flex flex-col p-2", children: [
2779
- children != null && /* @__PURE__ */ jsx35("div", { className: "flex flex-col gap-2 px-3 pb-2 pt-3", children }),
2780
- /* @__PURE__ */ jsx35(Autocomplete.List, { className: "flex flex-col", children: (group) => /* @__PURE__ */ jsxs27(Autocomplete.Group, { items: group.items, className: "flex flex-col gap-0.5", children: [
2781
- /* @__PURE__ */ jsx35(Autocomplete.GroupLabel, { className: "flex h-7 shrink-0 items-center px-3", children: /* @__PURE__ */ jsx35(SectionLabel, { tone: "secondary", children: group.value }) }),
2782
- /* @__PURE__ */ jsx35(Autocomplete.Collection, { children: (row) => (
2912
+ /* @__PURE__ */ jsxs29(ScrollArea, { viewportClassName: "max-h-[420px]", contentClassName: "flex flex-col p-2", children: [
2913
+ children != null && /* @__PURE__ */ jsx37("div", { className: "flex flex-col gap-2 px-3 pb-2 pt-3", children }),
2914
+ /* @__PURE__ */ jsx37(Autocomplete.List, { className: "flex flex-col", children: (group) => /* @__PURE__ */ jsxs29(Autocomplete.Group, { items: group.items, className: "flex flex-col gap-0.5", children: [
2915
+ /* @__PURE__ */ jsx37(Autocomplete.GroupLabel, { className: "flex h-7 shrink-0 items-center px-3", children: /* @__PURE__ */ jsx37(SectionLabel, { tone: "secondary", children: group.value }) }),
2916
+ /* @__PURE__ */ jsx37(Autocomplete.Collection, { children: (row) => (
2783
2917
  /* The menu row, as the list's own option — the way Select
2784
2918
  puts it on `Select.Item`. One row, two parts. */
2785
- /* @__PURE__ */ jsx35(Autocomplete.Item, { value: row, onClick: () => row.onSelect(), className: menuItemClassName({ size: "tall" }), children: /* @__PURE__ */ jsx35(
2919
+ /* @__PURE__ */ jsx37(Autocomplete.Item, { value: row, onClick: () => row.onSelect(), className: menuItemClassName({ size: "tall" }), children: /* @__PURE__ */ jsx37(
2786
2920
  MenuItemBody,
2787
2921
  {
2788
2922
  size: "tall",
2789
2923
  label: row.label,
2790
2924
  description: row.description,
2791
2925
  aside: row.aside,
2792
- leading: /* @__PURE__ */ jsx35(RowLeading, { row }),
2926
+ leading: /* @__PURE__ */ jsx37(RowLeading, { row }),
2793
2927
  submenu: !!row.onGoIn,
2794
- hint: row.onGoIn ? /* @__PURE__ */ jsx35(Kbd, { children: "Tab" }) : /* @__PURE__ */ jsx35(EnterHint, {})
2928
+ hint: row.onGoIn ? /* @__PURE__ */ jsx37(Kbd, { children: "Tab" }) : /* @__PURE__ */ jsx37(EnterHint, {})
2795
2929
  }
2796
2930
  ) }, row.id)
2797
2931
  ) })
2798
2932
  ] }, group.value) }),
2799
- /* @__PURE__ */ jsx35(Autocomplete.Status, { className: "flex items-center gap-2 px-3 [&:not(:empty)]:h-8", children: pending && /* @__PURE__ */ jsxs27(Fragment8, { children: [
2800
- /* @__PURE__ */ jsx35(IconLoader22, { size: 12, stroke: 1.5, className: "shrink-0 animate-spin text-text-muted" }),
2801
- /* @__PURE__ */ jsx35("span", { className: "text-caption text-text-muted", children: pending })
2933
+ /* @__PURE__ */ jsx37(Autocomplete.Status, { className: "flex items-center gap-2 px-3 [&:not(:empty)]:h-8", children: pending && /* @__PURE__ */ jsxs29(Fragment8, { children: [
2934
+ /* @__PURE__ */ jsx37(IconLoader22, { size: 12, stroke: 1.5, className: "shrink-0 animate-spin text-text-muted" }),
2935
+ /* @__PURE__ */ jsx37("span", { className: "text-caption text-text-muted", children: pending })
2802
2936
  ] }) }),
2803
- notes.map((note) => /* @__PURE__ */ jsx35("div", { className: "flex min-h-8 items-center px-3", children: /* @__PURE__ */ jsx35(FieldLine, { children: note }) }, note)),
2804
- /* @__PURE__ */ jsx35(Autocomplete.Empty, { className: "flex items-center px-3 [&:not(:empty)]:min-h-10", children: empty && /* @__PURE__ */ jsx35(EmptyState, { scope: "section", message: empty }) })
2937
+ notes.map((note) => /* @__PURE__ */ jsx37("div", { className: "flex min-h-8 items-center px-3", children: /* @__PURE__ */ jsx37(FieldLine, { children: note }) }, note)),
2938
+ /* @__PURE__ */ jsx37(Autocomplete.Empty, { className: "flex items-center px-3 [&:not(:empty)]:min-h-10", children: empty && /* @__PURE__ */ jsx37(EmptyState, { scope: "section", message: empty }) })
2805
2939
  ] }),
2806
- /* @__PURE__ */ jsx35(Footer, { keys })
2940
+ /* @__PURE__ */ jsx37(Footer, { keys })
2807
2941
  ]
2808
2942
  }
2809
2943
  );
2810
2944
  }
2811
2945
  function RowLeading({ row }) {
2812
2946
  if (row.icon != null) {
2813
- return /* @__PURE__ */ jsx35("span", { className: "flex size-8 items-center justify-center rounded-sm bg-bg-inset text-text-secondary", children: row.icon });
2947
+ return /* @__PURE__ */ jsx37("span", { className: "flex size-8 items-center justify-center rounded-sm bg-bg-inset text-text-secondary", children: row.icon });
2814
2948
  }
2815
- return /* @__PURE__ */ jsx35("span", { className: "flex size-8 items-center justify-center", children: row.leading });
2949
+ return /* @__PURE__ */ jsx37("span", { className: "flex size-8 items-center justify-center", children: row.leading });
2816
2950
  }
2817
2951
  var TEXT_TYPES = /* @__PURE__ */ new Set(["", "text", "search", "email", "url", "tel", "password", "number"]);
2818
2952
  function isTextField(el) {
@@ -2840,7 +2974,7 @@ function CommandPaletteForm({ chip, icon, submitLabel, onSubmit, submitWaits, wo
2840
2974
  if (isTextField(el)) return el.value === "";
2841
2975
  return ![...frame.querySelectorAll("input, textarea")].some(isTextField);
2842
2976
  };
2843
- const [backNamed, setBackNamed] = useState9(false);
2977
+ const [backNamed, setBackNamed] = useState11(false);
2844
2978
  const measure = () => setBackNamed(backWorksFrom(document.activeElement));
2845
2979
  useLayoutEffect3(measure);
2846
2980
  const onKeyDown = (e) => {
@@ -2854,65 +2988,65 @@ function CommandPaletteForm({ chip, icon, submitLabel, onSubmit, submitWaits, wo
2854
2988
  ...backNamed ? [["Backspace", "back"]] : [],
2855
2989
  ["Esc", "close"]
2856
2990
  ];
2857
- return /* @__PURE__ */ jsxs27("div", { ref: frameRef, tabIndex: -1, onKeyDown, onFocus: measure, onBlur: measure, onInput: measure, className: "flex min-h-0 flex-col outline-none", children: [
2858
- /* @__PURE__ */ jsxs27("div", { className: "flex h-12 shrink-0 items-center gap-3 border-b border-border-subtle px-5", children: [
2859
- icon != null && /* @__PURE__ */ jsx35("span", { className: "flex shrink-0 items-center text-text-secondary", children: icon }),
2860
- /* @__PURE__ */ jsx35(LevelChip, { chip, onBack: back })
2991
+ return /* @__PURE__ */ jsxs29("div", { ref: frameRef, tabIndex: -1, onKeyDown, onFocus: measure, onBlur: measure, onInput: measure, className: "flex min-h-0 flex-col outline-none", children: [
2992
+ /* @__PURE__ */ jsxs29("div", { className: "flex h-12 shrink-0 items-center gap-3 border-b border-border-subtle px-5", children: [
2993
+ icon != null && /* @__PURE__ */ jsx37("span", { className: "flex shrink-0 items-center text-text-secondary", children: icon }),
2994
+ /* @__PURE__ */ jsx37(LevelChip, { chip, onBack: back })
2861
2995
  ] }),
2862
- /* @__PURE__ */ jsxs27(Form, { "data-command-palette-fields": "", busy, enterSends: false, onSubmit: submit, layout: "free", className: "flex min-h-0 flex-col", children: [
2863
- /* @__PURE__ */ jsx35(ScrollArea, { viewportClassName: "max-h-[420px]", contentClassName: "flex flex-col px-5 py-4", children: /* @__PURE__ */ jsx35("div", { className: FIELDS_CLASSES, children }) }),
2864
- /* @__PURE__ */ jsxs27("div", { className: "flex shrink-0 items-center gap-3 px-5 pb-4", children: [
2865
- /* @__PURE__ */ jsx35("div", { className: "min-w-0 flex-1", children: working ? /* @__PURE__ */ jsx35(FieldLine, { children: working.line }) : error ? /* @__PURE__ */ jsx35(FieldLine, { tone: "error", children: error }) : null }),
2866
- /* @__PURE__ */ jsx35(
2996
+ /* @__PURE__ */ jsxs29(Form, { "data-command-palette-fields": "", busy, enterSends: false, onSubmit: submit, layout: "free", className: "flex min-h-0 flex-col", children: [
2997
+ /* @__PURE__ */ jsx37(ScrollArea, { viewportClassName: "max-h-[420px]", contentClassName: "flex flex-col px-5 py-4", children: /* @__PURE__ */ jsx37("div", { className: FIELDS_CLASSES, children }) }),
2998
+ /* @__PURE__ */ jsxs29("div", { className: "flex shrink-0 items-center gap-3 px-5 pb-4", children: [
2999
+ /* @__PURE__ */ jsx37("div", { className: "min-w-0 flex-1", children: working ? /* @__PURE__ */ jsx37(FieldLine, { children: working.line }) : error ? /* @__PURE__ */ jsx37(FieldLine, { tone: "error", children: error }) : null }),
3000
+ /* @__PURE__ */ jsx37(
2867
3001
  Button,
2868
3002
  {
2869
3003
  type: "submit",
2870
3004
  variant: "primary",
2871
3005
  disabled: busy,
2872
3006
  disabledReason: busy ? void 0 : submitWaits,
2873
- leadingIcon: busy ? /* @__PURE__ */ jsx35(IconLoader22, { size: 16, stroke: 1.5, className: "animate-spin" }) : void 0,
3007
+ leadingIcon: busy ? /* @__PURE__ */ jsx37(IconLoader22, { size: 16, stroke: 1.5, className: "animate-spin" }) : void 0,
2874
3008
  children: working ? working.button : submitLabel
2875
3009
  }
2876
3010
  )
2877
3011
  ] })
2878
3012
  ] }),
2879
- /* @__PURE__ */ jsx35(Footer, { keys })
3013
+ /* @__PURE__ */ jsx37(Footer, { keys })
2880
3014
  ] });
2881
3015
  }
2882
3016
  var BAR_WIDTHS = ["w-4/5", "w-3/5", "w-2/3"];
2883
3017
  function CommandPaletteWorking({ children, bars = 2 }) {
2884
- return /* @__PURE__ */ jsxs27("div", { role: "status", className: "flex flex-col gap-2", children: [
2885
- /* @__PURE__ */ jsxs27("span", { className: "flex items-center gap-2 text-caption text-text-secondary", children: [
2886
- /* @__PURE__ */ jsx35(IconLoader22, { size: 14, stroke: 1.5, className: "shrink-0 animate-spin" }),
3018
+ return /* @__PURE__ */ jsxs29("div", { role: "status", className: "flex flex-col gap-2", children: [
3019
+ /* @__PURE__ */ jsxs29("span", { className: "flex items-center gap-2 text-caption text-text-secondary", children: [
3020
+ /* @__PURE__ */ jsx37(IconLoader22, { size: 14, stroke: 1.5, className: "shrink-0 animate-spin" }),
2887
3021
  children
2888
3022
  ] }),
2889
- BAR_WIDTHS.slice(0, bars).map((width) => /* @__PURE__ */ jsx35(SkeletonBar, { className: cn("h-3", width) }, width))
3023
+ BAR_WIDTHS.slice(0, bars).map((width) => /* @__PURE__ */ jsx37(SkeletonBar, { className: cn("h-3", width) }, width))
2890
3024
  ] });
2891
3025
  }
2892
3026
  function CommandPaletteAnswer({ children, note }) {
2893
3027
  const paragraphs = children.split(/\n\s*\n/).filter((p) => p.trim() !== "");
2894
- return /* @__PURE__ */ jsxs27("div", { className: "flex flex-col gap-2", children: [
2895
- paragraphs.map((paragraph, i) => /* @__PURE__ */ jsx35("p", { className: "whitespace-pre-wrap text-body-2 text-text-primary", children: paragraph.split(/\s*(\[\d+\])/).map(
2896
- (part, j) => /^\[\d+\]$/.test(part) ? /* @__PURE__ */ jsx35("sup", { className: "ml-0.5 font-mono text-small text-accent-text", children: part.slice(1, -1) }, j) : part
3028
+ return /* @__PURE__ */ jsxs29("div", { className: "flex flex-col gap-2", children: [
3029
+ paragraphs.map((paragraph, i) => /* @__PURE__ */ jsx37("p", { className: "whitespace-pre-wrap text-body-2 text-text-primary", children: paragraph.split(/\s*(\[\d+\])/).map(
3030
+ (part, j) => /^\[\d+\]$/.test(part) ? /* @__PURE__ */ jsx37("sup", { className: "ml-0.5 font-mono text-small text-accent-text", children: part.slice(1, -1) }, j) : part
2897
3031
  ) }, i)),
2898
- note && /* @__PURE__ */ jsx35(FieldLine, { children: note })
3032
+ note && /* @__PURE__ */ jsx37(FieldLine, { children: note })
2899
3033
  ] });
2900
3034
  }
2901
3035
  function CommandPaletteQuote({ children }) {
2902
- return /* @__PURE__ */ jsx35("p", { className: "whitespace-pre-wrap border-l-2 border-border-default pl-3 text-body-2 text-text-primary", children });
3036
+ return /* @__PURE__ */ jsx37("p", { className: "whitespace-pre-wrap border-l-2 border-border-default pl-3 text-body-2 text-text-primary", children });
2903
3037
  }
2904
3038
  function CommandPaletteProposal({ source, mark, children }) {
2905
- return /* @__PURE__ */ jsxs27(Card, { fill: "surface", className: "flex flex-col gap-1 p-3", children: [
2906
- /* @__PURE__ */ jsxs27("span", { className: "flex items-center gap-2 text-caption text-text-secondary", children: [
3039
+ return /* @__PURE__ */ jsxs29(Card, { fill: "surface", className: "flex flex-col gap-1 p-3", children: [
3040
+ /* @__PURE__ */ jsxs29("span", { className: "flex items-center gap-2 text-caption text-text-secondary", children: [
2907
3041
  mark,
2908
3042
  source
2909
3043
  ] }),
2910
- /* @__PURE__ */ jsx35("span", { className: "text-body-2 text-text-primary", children })
3044
+ /* @__PURE__ */ jsx37("span", { className: "text-body-2 text-text-primary", children })
2911
3045
  ] });
2912
3046
  }
2913
3047
 
2914
3048
  // src/InlineChip.tsx
2915
- import { Fragment as Fragment9, jsx as jsx36, jsxs as jsxs28 } from "react/jsx-runtime";
3049
+ import { Fragment as Fragment9, jsx as jsx38, jsxs as jsxs30 } from "react/jsx-runtime";
2916
3050
  var INLINE_CHIP_CLASSES = "inline-flex h-[1.4em] items-baseline gap-1 rounded-sm px-1 mx-0.5 align-baseline text-body-2 font-normal select-none [&>:is(svg,img,:empty)]:self-center [&>:has(svg,img)]:self-center";
2917
3051
  var INLINE_CHIP_TONE_CLASSES = {
2918
3052
  /** A thing or a place — anything that is not a person. */
@@ -2938,15 +3072,15 @@ function inlineChipClassName(tone, className) {
2938
3072
  }
2939
3073
  function InlineChip({ tone = "neutral", icon, href, className, children, ...props }) {
2940
3074
  const inApp = useInAppClick(href, props.onClick);
2941
- const body = /* @__PURE__ */ jsxs28(Fragment9, { children: [
2942
- icon && /* @__PURE__ */ jsx36("span", { className: "flex size-4 shrink-0 items-center justify-center self-center text-text-secondary", children: icon }),
3075
+ const body = /* @__PURE__ */ jsxs30(Fragment9, { children: [
3076
+ icon && /* @__PURE__ */ jsx38("span", { className: "flex size-4 shrink-0 items-center justify-center self-center text-text-secondary", children: icon }),
2943
3077
  children
2944
3078
  ] });
2945
3079
  const classes = inlineChipClassName(tone, className);
2946
3080
  if (href === void 0) {
2947
- return /* @__PURE__ */ jsx36("span", { className: classes, ...props, children: body });
3081
+ return /* @__PURE__ */ jsx38("span", { className: classes, ...props, children: body });
2948
3082
  }
2949
- return /* @__PURE__ */ jsx36("a", { href, className: classes, ...props, onClick: inApp, children: body });
3083
+ return /* @__PURE__ */ jsx38("a", { href, className: classes, ...props, onClick: inApp, children: body });
2950
3084
  }
2951
3085
 
2952
3086
  // src/RichText.tsx
@@ -2969,7 +3103,7 @@ function codeColours(text, language) {
2969
3103
  }
2970
3104
 
2971
3105
  // src/RichText.tsx
2972
- import { Fragment as Fragment11, jsx as jsx37, jsxs as jsxs29 } from "react/jsx-runtime";
3106
+ import { Fragment as Fragment11, jsx as jsx39, jsxs as jsxs31 } from "react/jsx-runtime";
2973
3107
  var RICH_TEXT_CLASSES = {
2974
3108
  /* Blocks 8px apart (Katerina, 9 October; 4 before). A list's own items stay together. */
2975
3109
  base: "flex flex-col gap-2 break-words text-text-secondary",
@@ -3020,19 +3154,19 @@ function textWithLinks(text, renderText) {
3020
3154
  return parts.map((part, i) => {
3021
3155
  const written = part.match(WRITTEN_LINK);
3022
3156
  if (written) {
3023
- return /* @__PURE__ */ jsx37("span", { className: "break-words", children: /* @__PURE__ */ jsx37(Link, { href: written[2], external: true, onClick: keepToLink, children: written[1] }) }, i);
3157
+ return /* @__PURE__ */ jsx39("span", { className: "break-words", children: /* @__PURE__ */ jsx39(Link, { href: written[2], external: true, onClick: keepToLink, children: written[1] }) }, i);
3024
3158
  }
3025
3159
  const bare = i % 2 === 1 ? part.match(BARE_LINK) : null;
3026
3160
  if (bare) {
3027
3161
  return (
3028
3162
  // An address has no spaces to wrap at, so it may break anywhere.
3029
- /* @__PURE__ */ jsxs29("span", { className: "break-all", children: [
3030
- /* @__PURE__ */ jsx37(Link, { href: bare[1], external: true, onClick: keepToLink, children: bare[1] }),
3163
+ /* @__PURE__ */ jsxs31("span", { className: "break-all", children: [
3164
+ /* @__PURE__ */ jsx39(Link, { href: bare[1], external: true, onClick: keepToLink, children: bare[1] }),
3031
3165
  bare[2]
3032
3166
  ] }, i)
3033
3167
  );
3034
3168
  }
3035
- return part ? /* @__PURE__ */ jsx37("span", { children: renderText(part) }, i) : null;
3169
+ return part ? /* @__PURE__ */ jsx39("span", { children: renderText(part) }, i) : null;
3036
3170
  });
3037
3171
  }
3038
3172
  var CALLOUT_TONES = /* @__PURE__ */ new Set(["note", "tip", "important", "warning", "caution"]);
@@ -3041,19 +3175,19 @@ function calloutLook(tone) {
3041
3175
  return CALLOUT_TONES.has(named2) ? named2 : "note";
3042
3176
  }
3043
3177
  function Runs({ runs, draw: draw2 }) {
3044
- return /* @__PURE__ */ jsx37(Fragment11, { children: (runs ?? []).map((run, i) => {
3045
- if (run.reference) return /* @__PURE__ */ jsx37("span", { children: draw2.renderReference(run.reference, run) }, i);
3178
+ return /* @__PURE__ */ jsx39(Fragment11, { children: (runs ?? []).map((run, i) => {
3179
+ if (run.reference) return /* @__PURE__ */ jsx39("span", { children: draw2.renderReference(run.reference, run) }, i);
3046
3180
  if (run.marks.includes("code")) {
3047
- return /* @__PURE__ */ jsx37("code", { children: run.text }, i);
3181
+ return /* @__PURE__ */ jsx39("code", { children: run.text }, i);
3048
3182
  }
3049
- let node = run.text.split("\n").map((line, j) => /* @__PURE__ */ jsxs29("span", { children: [
3050
- j > 0 && /* @__PURE__ */ jsx37("br", {}),
3183
+ let node = run.text.split("\n").map((line, j) => /* @__PURE__ */ jsxs31("span", { children: [
3184
+ j > 0 && /* @__PURE__ */ jsx39("br", {}),
3051
3185
  textWithLinks(line, draw2.renderText)
3052
3186
  ] }, j));
3053
- if (run.marks.includes("underline")) node = /* @__PURE__ */ jsx37("u", { children: node });
3054
- if (run.marks.includes("italic")) node = /* @__PURE__ */ jsx37("em", { children: node });
3055
- if (run.marks.includes("bold")) node = /* @__PURE__ */ jsx37("strong", { children: node });
3056
- return /* @__PURE__ */ jsx37("span", { children: node }, i);
3187
+ if (run.marks.includes("underline")) node = /* @__PURE__ */ jsx39("u", { children: node });
3188
+ if (run.marks.includes("italic")) node = /* @__PURE__ */ jsx39("em", { children: node });
3189
+ if (run.marks.includes("bold")) node = /* @__PURE__ */ jsx39("strong", { children: node });
3190
+ return /* @__PURE__ */ jsx39("span", { children: node }, i);
3057
3191
  }) });
3058
3192
  }
3059
3193
  var named = (block) => block.typeName ?? block.type;
@@ -3064,18 +3198,18 @@ function Table({ block, draw: draw2 }) {
3064
3198
  const header = named(cell) === "tableHeader";
3065
3199
  const Cell = header ? "th" : "td";
3066
3200
  const { colspan, rowspan } = cell.attrs ?? {};
3067
- return /* @__PURE__ */ jsxs29(
3201
+ return /* @__PURE__ */ jsxs31(
3068
3202
  Cell,
3069
3203
  {
3070
3204
  "data-block-id": cell.id,
3071
3205
  colSpan: colspan && colspan > 1 ? colspan : void 0,
3072
3206
  rowSpan: rowspan && rowspan > 1 ? rowspan : void 0,
3073
3207
  children: [
3074
- (cell.children ?? []).map((child, j) => /* @__PURE__ */ jsxs29(Fragment10, { children: [
3075
- /* @__PURE__ */ jsx37(Runs, { runs: child.inline, draw: draw2 }),
3208
+ (cell.children ?? []).map((child, j) => /* @__PURE__ */ jsxs31(Fragment10, { children: [
3209
+ /* @__PURE__ */ jsx39(Runs, { runs: child.inline, draw: draw2 }),
3076
3210
  draw2.renderAfter?.(child)
3077
3211
  ] }, j)),
3078
- /* @__PURE__ */ jsx37(Runs, { runs: cell.inline, draw: draw2 }),
3212
+ /* @__PURE__ */ jsx39(Runs, { runs: cell.inline, draw: draw2 }),
3079
3213
  draw2.renderAfter?.(cell)
3080
3214
  ]
3081
3215
  },
@@ -3084,16 +3218,16 @@ function Table({ block, draw: draw2 }) {
3084
3218
  });
3085
3219
  const first = rows[0].children ?? [];
3086
3220
  const headerRow = first.length > 0 && first.every((cell) => named(cell) === "tableHeader");
3087
- return /* @__PURE__ */ jsxs29("table", { "data-block-id": block.id, children: [
3088
- headerRow && /* @__PURE__ */ jsx37("thead", { children: /* @__PURE__ */ jsx37("tr", { "data-block-id": rows[0].id, children: cells(rows[0]) }) }),
3089
- /* @__PURE__ */ jsx37("tbody", { children: (headerRow ? rows.slice(1) : rows).map((row, i) => /* @__PURE__ */ jsx37("tr", { "data-block-id": row.id, children: cells(row) }, row.id ?? i)) })
3221
+ return /* @__PURE__ */ jsxs31("table", { "data-block-id": block.id, children: [
3222
+ headerRow && /* @__PURE__ */ jsx39("thead", { children: /* @__PURE__ */ jsx39("tr", { "data-block-id": rows[0].id, children: cells(rows[0]) }) }),
3223
+ /* @__PURE__ */ jsx39("tbody", { children: (headerRow ? rows.slice(1) : rows).map((row, i) => /* @__PURE__ */ jsx39("tr", { "data-block-id": row.id, children: cells(row) }, row.id ?? i)) })
3090
3224
  ] });
3091
3225
  }
3092
3226
  var wordsOf = (item) => (item.inline ?? []).map((run) => run.text).join("").trim();
3093
3227
  function ListItem({ item, draw: draw2, below }) {
3094
3228
  if (typeof item.checked !== "boolean") {
3095
- return /* @__PURE__ */ jsxs29("li", { "data-block-id": item.id, children: [
3096
- /* @__PURE__ */ jsx37(Runs, { runs: item.inline, draw: draw2 }),
3229
+ return /* @__PURE__ */ jsxs31("li", { "data-block-id": item.id, children: [
3230
+ /* @__PURE__ */ jsx39(Runs, { runs: item.inline, draw: draw2 }),
3097
3231
  draw2.renderAfter?.(item),
3098
3232
  below
3099
3233
  ] });
@@ -3102,10 +3236,10 @@ function ListItem({ item, draw: draw2, below }) {
3102
3236
  const id = item.id;
3103
3237
  const name = wordsOf(item) || "Item";
3104
3238
  const control = onTick && id ? (next) => onTick(id, next) : void 0;
3105
- return /* @__PURE__ */ jsxs29("li", { "data-block-id": id, "data-checked": String(item.checked), children: [
3106
- /* @__PURE__ */ jsx37("span", { "data-checklist-box": "", ...control ? {} : { role: "checkbox", "aria-checked": item.checked, "aria-readonly": true, "aria-label": name }, children: /* @__PURE__ */ jsx37(Checkbox, { checked: item.checked, onChange: control, "aria-label": name }) }),
3107
- /* @__PURE__ */ jsxs29("div", { children: [
3108
- /* @__PURE__ */ jsx37("p", { children: /* @__PURE__ */ jsx37(Runs, { runs: item.inline, draw: draw2 }) }),
3239
+ return /* @__PURE__ */ jsxs31("li", { "data-block-id": id, "data-checked": String(item.checked), children: [
3240
+ /* @__PURE__ */ jsx39("span", { "data-checklist-box": "", ...control ? {} : { role: "checkbox", "aria-checked": item.checked, "aria-readonly": true, "aria-label": name }, children: /* @__PURE__ */ jsx39(Checkbox, { checked: item.checked, onChange: control, "aria-label": name }) }),
3241
+ /* @__PURE__ */ jsxs31("div", { children: [
3242
+ /* @__PURE__ */ jsx39("p", { children: /* @__PURE__ */ jsx39(Runs, { runs: item.inline, draw: draw2 }) }),
3109
3243
  draw2.renderAfter?.(item),
3110
3244
  below
3111
3245
  ] })
@@ -3132,51 +3266,51 @@ function Block({ block, draw: draw2 }) {
3132
3266
  const lineOfWords = block.type === "paragraph" || block.type === "heading" || block.type === "blockquote";
3133
3267
  const after = lineOfWords ? draw2.renderAfter?.(block) : void 0;
3134
3268
  if (after === void 0 || after === null || after === false) return drawn;
3135
- return /* @__PURE__ */ jsxs29(Fragment11, { children: [
3269
+ return /* @__PURE__ */ jsxs31(Fragment11, { children: [
3136
3270
  drawn,
3137
3271
  after
3138
3272
  ] });
3139
3273
  }
3140
3274
  function Drawn({ block, draw: draw2 }) {
3141
- const runs = /* @__PURE__ */ jsx37(Runs, { runs: block.inline, draw: draw2 });
3275
+ const runs = /* @__PURE__ */ jsx39(Runs, { runs: block.inline, draw: draw2 });
3142
3276
  switch (block.type) {
3143
3277
  case "heading": {
3144
- if (block.level === 1) return /* @__PURE__ */ jsx37("h1", { "data-block-id": block.id, children: runs });
3145
- if (block.level === 3) return /* @__PURE__ */ jsx37("h3", { "data-block-id": block.id, children: runs });
3146
- return /* @__PURE__ */ jsx37("h2", { "data-block-id": block.id, children: runs });
3278
+ if (block.level === 1) return /* @__PURE__ */ jsx39("h1", { "data-block-id": block.id, children: runs });
3279
+ if (block.level === 3) return /* @__PURE__ */ jsx39("h3", { "data-block-id": block.id, children: runs });
3280
+ return /* @__PURE__ */ jsx39("h2", { "data-block-id": block.id, children: runs });
3147
3281
  }
3148
3282
  case "paragraph":
3149
- return /* @__PURE__ */ jsx37("p", { "data-block-id": block.id, children: runs });
3283
+ return /* @__PURE__ */ jsx39("p", { "data-block-id": block.id, children: runs });
3150
3284
  case "bulletList":
3151
3285
  case "orderedList": {
3152
3286
  const ordered = block.type === "orderedList";
3153
- const items = (nodes) => nodes.map(({ item, key, below }) => /* @__PURE__ */ jsx37(
3287
+ const items = (nodes) => nodes.map(({ item, key, below }) => /* @__PURE__ */ jsx39(
3154
3288
  ListItem,
3155
3289
  {
3156
3290
  item,
3157
3291
  draw: draw2,
3158
- below: below.length > 0 && (ordered ? /* @__PURE__ */ jsx37("ol", { children: items(below) }) : /* @__PURE__ */ jsx37("ul", { children: items(below) }))
3292
+ below: below.length > 0 && (ordered ? /* @__PURE__ */ jsx39("ol", { children: items(below) }) : /* @__PURE__ */ jsx39("ul", { children: items(below) }))
3159
3293
  },
3160
3294
  item.id ?? key
3161
3295
  ));
3162
3296
  const top = items(nestItems(block.children ?? []));
3163
- return ordered ? /* @__PURE__ */ jsx37("ol", { "data-block-id": block.id, start: block.start, children: top }) : /* @__PURE__ */ jsx37("ul", { "data-block-id": block.id, children: top });
3297
+ return ordered ? /* @__PURE__ */ jsx39("ol", { "data-block-id": block.id, start: block.start, children: top }) : /* @__PURE__ */ jsx39("ul", { "data-block-id": block.id, children: top });
3164
3298
  }
3165
3299
  case "blockquote":
3166
- return /* @__PURE__ */ jsx37("blockquote", { "data-block-id": block.id, "data-tone": block.tone, "data-callout": typeof block.tone === "string" ? calloutLook(block.tone) : void 0, children: runs });
3300
+ return /* @__PURE__ */ jsx39("blockquote", { "data-block-id": block.id, "data-tone": block.tone, "data-callout": typeof block.tone === "string" ? calloutLook(block.tone) : void 0, children: runs });
3167
3301
  case "codeBlock":
3168
- return /* @__PURE__ */ jsx37("pre", { "data-block-id": block.id, "data-language": block.language, children: /* @__PURE__ */ jsx37("code", { children: codeColours((block.inline ?? []).map((run) => run.text).join(""), block.language) }) });
3302
+ return /* @__PURE__ */ jsx39("pre", { "data-block-id": block.id, "data-language": block.language, children: /* @__PURE__ */ jsx39("code", { children: codeColours((block.inline ?? []).map((run) => run.text).join(""), block.language) }) });
3169
3303
  case "horizontalRule":
3170
- return /* @__PURE__ */ jsx37("hr", { "data-block-id": block.id });
3304
+ return /* @__PURE__ */ jsx39("hr", { "data-block-id": block.id });
3171
3305
  case "table": {
3172
- const table = /* @__PURE__ */ jsx37(Table, { block, draw: draw2 });
3306
+ const table = /* @__PURE__ */ jsx39(Table, { block, draw: draw2 });
3173
3307
  if ((block.children ?? []).some((row) => named(row) === "tableRow")) return table;
3174
3308
  break;
3175
3309
  }
3176
3310
  }
3177
- return /* @__PURE__ */ jsxs29("div", { "data-block-id": block.id, "data-block-type": named(block), children: [
3311
+ return /* @__PURE__ */ jsxs31("div", { "data-block-id": block.id, "data-block-type": named(block), children: [
3178
3312
  runs,
3179
- (block.children ?? []).map((child, i) => /* @__PURE__ */ jsx37(Block, { block: child, draw: draw2 }, child.id ?? i))
3313
+ (block.children ?? []).map((child, i) => /* @__PURE__ */ jsx39(Block, { block: child, draw: draw2 }, child.id ?? i))
3180
3314
  ] });
3181
3315
  }
3182
3316
  function RichText({
@@ -3190,14 +3324,14 @@ function RichText({
3190
3324
  }) {
3191
3325
  if (blocks.length === 0) return null;
3192
3326
  const draw2 = { renderText, renderReference, renderBlock, renderAfter, onTick };
3193
- return /* @__PURE__ */ jsx37("div", { "data-rich-text": true, className: richTextClassName(size), children: blocks.map((block, i) => /* @__PURE__ */ jsx37(Block, { block, draw: draw2 }, block.id ?? i)) });
3327
+ return /* @__PURE__ */ jsx39("div", { "data-rich-text": true, className: richTextClassName(size), children: blocks.map((block, i) => /* @__PURE__ */ jsx39(Block, { block, draw: draw2 }, block.id ?? i)) });
3194
3328
  }
3195
3329
 
3196
3330
  // src/KindIcon.tsx
3197
- import { IconBox, IconCircleDashed, IconFile as IconFile2, IconListDetails, IconMessage } from "@tabler/icons-react";
3198
- import { jsx as jsx38 } from "react/jsx-runtime";
3331
+ import { IconBox, IconCircleDashed as IconCircleDashed2, IconFile as IconFile2, IconListDetails, IconMessage } from "@tabler/icons-react";
3332
+ import { jsx as jsx40 } from "react/jsx-runtime";
3199
3333
  var ICONS = {
3200
- topic: IconCircleDashed,
3334
+ topic: IconCircleDashed2,
3201
3335
  project: IconBox,
3202
3336
  issue: IconListDetails,
3203
3337
  file: IconFile2,
@@ -3218,22 +3352,22 @@ function thingKindOf(eventKind) {
3218
3352
  var TONE_CLASSES = { secondary: "text-text-secondary", inherit: "" };
3219
3353
  function KindIcon({ kind, size = 16, tone = "secondary", className }) {
3220
3354
  const Icon = ICONS[kind];
3221
- return /* @__PURE__ */ jsx38(Icon, { size, stroke: 1.5, className: cn("shrink-0", TONE_CLASSES[tone], className), "aria-hidden": true });
3355
+ return /* @__PURE__ */ jsx40(Icon, { size, stroke: 1.5, className: cn("shrink-0", TONE_CLASSES[tone], className), "aria-hidden": true });
3222
3356
  }
3223
3357
 
3224
3358
  // src/IdentityMenu.tsx
3225
3359
  import { useCallback as useCallback3, useRef as useRef10 } from "react";
3226
3360
 
3227
3361
  // src/Person.tsx
3228
- import { jsx as jsx39, jsxs as jsxs30 } from "react/jsx-runtime";
3362
+ import { jsx as jsx41, jsxs as jsxs32 } from "react/jsx-runtime";
3229
3363
  function Person({ name, picture, bot, fallback = "\u2014", size = 20, className }) {
3230
3364
  return (
3231
3365
  // gap-2: the face-to-name distance is one rule (8px) wherever a person
3232
3366
  // appears — Katerina, 2026-09-01, set on Person so PersonTrigger and every
3233
3367
  // row agree by construction.
3234
- /* @__PURE__ */ jsxs30("span", { className: cn("flex min-w-0 items-center gap-2", className), children: [
3235
- /* @__PURE__ */ jsx39(Avatar, { name, src: picture, bot, size }),
3236
- /* @__PURE__ */ jsx39("span", { className: cn("truncate", !name && "text-text-muted"), children: name ?? fallback })
3368
+ /* @__PURE__ */ jsxs32("span", { className: cn("flex min-w-0 items-center gap-2", className), children: [
3369
+ /* @__PURE__ */ jsx41(Avatar, { name, src: picture, bot, size }),
3370
+ /* @__PURE__ */ jsx41("span", { className: cn("truncate", !name && "text-text-muted"), children: name ?? fallback })
3237
3371
  ] })
3238
3372
  );
3239
3373
  }
@@ -3241,10 +3375,10 @@ function Person({ name, picture, bot, fallback = "\u2014", size = 20, className
3241
3375
  // src/PersonTrigger.tsx
3242
3376
  import { Button as BaseButton7 } from "@base-ui/react/button";
3243
3377
  import { IconChevronDown as IconChevronDown3 } from "@tabler/icons-react";
3244
- import { jsx as jsx40, jsxs as jsxs31 } from "react/jsx-runtime";
3378
+ import { jsx as jsx42, jsxs as jsxs33 } from "react/jsx-runtime";
3245
3379
  function PersonTrigger({ name, picture, bot, fallback, size, open = false, compact = false, className, ...props }) {
3246
3380
  if (compact) {
3247
- return /* @__PURE__ */ jsx40(
3381
+ return /* @__PURE__ */ jsx42(
3248
3382
  BaseButton7,
3249
3383
  {
3250
3384
  type: "button",
@@ -3253,13 +3387,13 @@ function PersonTrigger({ name, picture, bot, fallback, size, open = false, compa
3253
3387
  "aria-label": props["aria-label"] ?? name ?? fallback,
3254
3388
  className: cn("cursor-pointer rounded-full", className),
3255
3389
  ...props,
3256
- children: /* @__PURE__ */ jsx40(Avatar, { name, src: picture, bot, size: size ?? 36 })
3390
+ children: /* @__PURE__ */ jsx42(Avatar, { name, src: picture, bot, size: size ?? 36 })
3257
3391
  }
3258
3392
  );
3259
3393
  }
3260
3394
  return (
3261
3395
  // @estiva-escape(no-copied-look): N5 (Katerina, 24 September: record only): a row that fills on hover, as NavItem also does
3262
- /* @__PURE__ */ jsxs31(
3396
+ /* @__PURE__ */ jsxs33(
3263
3397
  BaseButton7,
3264
3398
  {
3265
3399
  type: "button",
@@ -3277,8 +3411,8 @@ function PersonTrigger({ name, picture, bot, fallback, size, open = false, compa
3277
3411
  ),
3278
3412
  ...props,
3279
3413
  children: [
3280
- /* @__PURE__ */ jsx40(Person, { name, picture, bot, fallback, size: size ?? 22 }),
3281
- /* @__PURE__ */ jsx40(IconChevronDown3, { size: 14, stroke: 1.5, className: "shrink-0 text-text-muted" })
3414
+ /* @__PURE__ */ jsx42(Person, { name, picture, bot, fallback, size: size ?? 22 }),
3415
+ /* @__PURE__ */ jsx42(IconChevronDown3, { size: 14, stroke: 1.5, className: "shrink-0 text-text-muted" })
3282
3416
  ]
3283
3417
  }
3284
3418
  )
@@ -3286,10 +3420,10 @@ function PersonTrigger({ name, picture, bot, fallback, size, open = false, compa
3286
3420
  }
3287
3421
 
3288
3422
  // src/IdentityMenu.tsx
3289
- import { Fragment as Fragment12, jsx as jsx41, jsxs as jsxs32 } from "react/jsx-runtime";
3423
+ import { Fragment as Fragment12, jsx as jsx43, jsxs as jsxs34 } from "react/jsx-runtime";
3290
3424
  function IdentityPanel({ className, onClose = () => {
3291
3425
  }, ...rest }) {
3292
- return /* @__PURE__ */ jsx41(MenuPanel, { className: cn("w-72", className), children: /* @__PURE__ */ jsx41(IdentityRows, { ...rest, onClose }) });
3426
+ return /* @__PURE__ */ jsx43(MenuPanel, { className: cn("w-72", className), children: /* @__PURE__ */ jsx43(IdentityRows, { ...rest, onClose }) });
3293
3427
  }
3294
3428
  function IdentityRows({ me, signedIn, relayUrl, idBase, onCopyKey, onSignOut, onClose, children }) {
3295
3429
  const act = (action) => () => {
@@ -3297,36 +3431,36 @@ function IdentityRows({ me, signedIn, relayUrl, idBase, onCopyKey, onSignOut, on
3297
3431
  action();
3298
3432
  };
3299
3433
  const appRows = typeof children === "function" ? children(onClose) : children;
3300
- return /* @__PURE__ */ jsxs32(Fragment12, { children: [
3301
- /* @__PURE__ */ jsxs32(MenuSection, { label: signedIn ? "Signed in as" : "Acting as", children: [
3302
- /* @__PURE__ */ jsx41(MenuRow, { children: /* @__PURE__ */ jsx41("div", { className: "flex min-w-0 text-body-2-strong", children: /* @__PURE__ */ jsx41(Person, { name: me.name, picture: me.picture, fallback: "Anonymous", size: 28 }) }) }),
3303
- /* @__PURE__ */ jsx41(Note, { children: signedIn ? "Your Estiva ID. The same person you are in every Estiva app." : "A key held by this browser only. Nobody else knows who you are." }),
3304
- me.email && /* @__PURE__ */ jsxs32(Note, { children: [
3434
+ return /* @__PURE__ */ jsxs34(Fragment12, { children: [
3435
+ /* @__PURE__ */ jsxs34(MenuSection, { label: signedIn ? "Signed in as" : "Acting as", children: [
3436
+ /* @__PURE__ */ jsx43(MenuRow, { children: /* @__PURE__ */ jsx43("div", { className: "flex min-w-0 text-body-2-strong", children: /* @__PURE__ */ jsx43(Person, { name: me.name, picture: me.picture, fallback: "Anonymous", size: 28 }) }) }),
3437
+ /* @__PURE__ */ jsx43(Note, { children: signedIn ? "Your Estiva ID. The same person you are in every Estiva app." : "A key held by this browser only. Nobody else knows who you are." }),
3438
+ me.email && /* @__PURE__ */ jsxs34(Note, { children: [
3305
3439
  me.email,
3306
3440
  " \xB7 known to Estiva, never published to the relay"
3307
3441
  ] })
3308
3442
  ] }),
3309
- relayUrl && /* @__PURE__ */ jsxs32(Fragment12, { children: [
3310
- /* @__PURE__ */ jsx41(Divider, { className: "mx-0 my-2" }),
3311
- /* @__PURE__ */ jsxs32(MenuSection, { label: "Workspace", children: [
3312
- /* @__PURE__ */ jsx41(MenuRow, { children: /* @__PURE__ */ jsx41("span", { className: "break-all font-mono text-caption text-text-primary", children: relayUrl }) }),
3313
- /* @__PURE__ */ jsx41(Note, { children: "Everyone on this relay shares this workspace, in every app." })
3443
+ relayUrl && /* @__PURE__ */ jsxs34(Fragment12, { children: [
3444
+ /* @__PURE__ */ jsx43(Divider, { className: "mx-0 my-2" }),
3445
+ /* @__PURE__ */ jsxs34(MenuSection, { label: "Workspace", children: [
3446
+ /* @__PURE__ */ jsx43(MenuRow, { children: /* @__PURE__ */ jsx43("span", { className: "break-all font-mono text-caption text-text-primary", children: relayUrl }) }),
3447
+ /* @__PURE__ */ jsx43(Note, { children: "Everyone on this relay shares this workspace, in every app." })
3314
3448
  ] })
3315
3449
  ] }),
3316
- appRows && /* @__PURE__ */ jsxs32(Fragment12, { children: [
3317
- /* @__PURE__ */ jsx41(Divider, { className: "mx-0 my-2" }),
3450
+ appRows && /* @__PURE__ */ jsxs34(Fragment12, { children: [
3451
+ /* @__PURE__ */ jsx43(Divider, { className: "mx-0 my-2" }),
3318
3452
  appRows
3319
3453
  ] }),
3320
- signedIn && idBase || onCopyKey || idBase && onSignOut ? /* @__PURE__ */ jsx41(Divider, { className: "mx-0 my-2" }) : null,
3321
- signedIn && idBase && /* @__PURE__ */ jsx41(
3454
+ signedIn && idBase || onCopyKey || idBase && onSignOut ? /* @__PURE__ */ jsx43(Divider, { className: "mx-0 my-2" }) : null,
3455
+ signedIn && idBase && /* @__PURE__ */ jsx43(
3322
3456
  MenuItem,
3323
3457
  {
3324
3458
  label: "Edit your profile in Estiva ID",
3325
3459
  onClick: act(() => window.open(idBase, "_blank", "noopener,noreferrer"))
3326
3460
  }
3327
3461
  ),
3328
- onCopyKey && /* @__PURE__ */ jsx41(MenuItem, { label: "Copy public key", onClick: act(onCopyKey) }),
3329
- idBase && onSignOut && /* @__PURE__ */ jsx41(MenuItem, { label: "Sign out", onClick: act(onSignOut) })
3462
+ onCopyKey && /* @__PURE__ */ jsx43(MenuItem, { label: "Copy public key", onClick: act(onCopyKey) }),
3463
+ idBase && onSignOut && /* @__PURE__ */ jsx43(MenuItem, { label: "Sign out", onClick: act(onSignOut) })
3330
3464
  ] });
3331
3465
  }
3332
3466
  function IdentityMenu({ me, signedIn, relayUrl, idBase, onCopyKey, onSignOut, compact = false, className, children }) {
@@ -3337,13 +3471,13 @@ function IdentityMenu({ me, signedIn, relayUrl, idBase, onCopyKey, onSignOut, co
3337
3471
  to be `relative`, because the panel was positioned against it; the panel
3338
3472
  hangs from the trigger and portals now, so a positioning context here
3339
3473
  would only be a lie about what this box does. */
3340
- /* @__PURE__ */ jsx41("div", { className, children: /* @__PURE__ */ jsx41(
3474
+ /* @__PURE__ */ jsx43("div", { className, children: /* @__PURE__ */ jsx43(
3341
3475
  Menu,
3342
3476
  {
3343
3477
  align: "right",
3344
3478
  actionsRef: actions,
3345
3479
  className: "w-72",
3346
- trigger: /* @__PURE__ */ jsx41(
3480
+ trigger: /* @__PURE__ */ jsx43(
3347
3481
  PersonTrigger,
3348
3482
  {
3349
3483
  name: me.name,
@@ -3354,7 +3488,7 @@ function IdentityMenu({ me, signedIn, relayUrl, idBase, onCopyKey, onSignOut, co
3354
3488
  "aria-label": compact ? "Account menu" : void 0
3355
3489
  }
3356
3490
  ),
3357
- children: /* @__PURE__ */ jsx41(
3491
+ children: /* @__PURE__ */ jsx43(
3358
3492
  IdentityRows,
3359
3493
  {
3360
3494
  me,
@@ -3372,14 +3506,14 @@ function IdentityMenu({ me, signedIn, relayUrl, idBase, onCopyKey, onSignOut, co
3372
3506
  );
3373
3507
  }
3374
3508
  function Note({ children }) {
3375
- return /* @__PURE__ */ jsx41("span", { className: "px-2 pb-1.5 text-caption text-text-secondary", children });
3509
+ return /* @__PURE__ */ jsx43("span", { className: "px-2 pb-1.5 text-caption text-text-secondary", children });
3376
3510
  }
3377
3511
 
3378
3512
  // src/FilePicker.tsx
3379
3513
  import { forwardRef } from "react";
3380
- import { jsx as jsx42 } from "react/jsx-runtime";
3514
+ import { jsx as jsx44 } from "react/jsx-runtime";
3381
3515
  var FilePicker = forwardRef(function FilePicker2({ onPick, ...props }, ref) {
3382
- return /* @__PURE__ */ jsx42(
3516
+ return /* @__PURE__ */ jsx44(
3383
3517
  "input",
3384
3518
  {
3385
3519
  ref,
@@ -3400,9 +3534,9 @@ var FilePicker = forwardRef(function FilePicker2({ onPick, ...props }, ref) {
3400
3534
  // src/TextInput.tsx
3401
3535
  import { forwardRef as forwardRef2 } from "react";
3402
3536
  import { Input } from "@base-ui/react/input";
3403
- import { jsx as jsx43 } from "react/jsx-runtime";
3537
+ import { jsx as jsx45 } from "react/jsx-runtime";
3404
3538
  var TextInput = forwardRef2(function TextInput2({ className, type = "text", size = "default", ...props }, ref) {
3405
- return /* @__PURE__ */ jsx43(
3539
+ return /* @__PURE__ */ jsx45(
3406
3540
  Input,
3407
3541
  {
3408
3542
  ref,
@@ -3428,13 +3562,13 @@ var TextInput = forwardRef2(function TextInput2({ className, type = "text", size
3428
3562
  // src/Textarea.tsx
3429
3563
  import { forwardRef as forwardRef3 } from "react";
3430
3564
  import { Field as BaseField3 } from "@base-ui/react/field";
3431
- import { jsx as jsx44 } from "react/jsx-runtime";
3565
+ import { jsx as jsx46 } from "react/jsx-runtime";
3432
3566
  var Textarea = forwardRef3(function Textarea2({ className, ...props }, ref) {
3433
- return /* @__PURE__ */ jsx44(
3567
+ return /* @__PURE__ */ jsx46(
3434
3568
  BaseField3.Control,
3435
3569
  {
3436
3570
  ref,
3437
- render: /* @__PURE__ */ jsx44("textarea", {}),
3571
+ render: /* @__PURE__ */ jsx46("textarea", {}),
3438
3572
  className: cn(
3439
3573
  // The border strengthens on hover, as Select's and ChipInput's do (Katerina, 16 September:
3440
3574
  // "aren't there hover states in text input and text area?"). Focus comes after hover in
@@ -3453,10 +3587,10 @@ var Textarea = forwardRef3(function Textarea2({ className, ...props }, ref) {
3453
3587
  });
3454
3588
 
3455
3589
  // src/ConfirmDialog.tsx
3456
- import { useRef as useRef11, useState as useState10 } from "react";
3457
- import { Fragment as Fragment13, jsx as jsx45, jsxs as jsxs33 } from "react/jsx-runtime";
3590
+ import { useRef as useRef11, useState as useState12 } from "react";
3591
+ import { Fragment as Fragment13, jsx as jsx47, jsxs as jsxs35 } from "react/jsx-runtime";
3458
3592
  function ConfirmDialog({ title, children, confirmLabel, destructive = false, onConfirm, onClose, alternative, refused }) {
3459
- const [busy, setBusy] = useState10(false);
3593
+ const [busy, setBusy] = useState12(false);
3460
3594
  const closed = useRef11(false);
3461
3595
  const close = () => {
3462
3596
  closed.current = true;
@@ -3472,22 +3606,22 @@ function ConfirmDialog({ title, children, confirmLabel, destructive = false, onC
3472
3606
  setBusy(false);
3473
3607
  }
3474
3608
  };
3475
- return /* @__PURE__ */ jsx45(
3609
+ return /* @__PURE__ */ jsx47(
3476
3610
  DialogShell,
3477
3611
  {
3478
3612
  alert: true,
3479
3613
  title,
3480
3614
  onClose: close,
3481
- footer: /* @__PURE__ */ jsxs33(Fragment13, { children: [
3482
- /* @__PURE__ */ jsx45(Button, { variant: "muted", onClick: close, disabled: busy, children: "Cancel" }),
3483
- /* @__PURE__ */ jsx45(Button, { variant: destructive ? "destructive" : "primary", onClick: () => void confirm(), disabled: busy, children: confirmLabel })
3615
+ footer: /* @__PURE__ */ jsxs35(Fragment13, { children: [
3616
+ /* @__PURE__ */ jsx47(Button, { variant: "muted", onClick: close, disabled: busy, children: "Cancel" }),
3617
+ /* @__PURE__ */ jsx47(Button, { variant: destructive ? "destructive" : "primary", onClick: () => void confirm(), disabled: busy, children: confirmLabel })
3484
3618
  ] }),
3485
- children: /* @__PURE__ */ jsxs33("div", { className: "flex flex-col gap-3 text-body-2 text-text-primary", children: [
3619
+ children: /* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-3 text-body-2 text-text-primary", children: [
3486
3620
  children,
3487
- refused && /* @__PURE__ */ jsx45(FieldLine, { tone: "error", children: refused }),
3488
- alternative && /* @__PURE__ */ jsxs33("div", { className: "flex flex-col items-start gap-2", children: [
3489
- /* @__PURE__ */ jsx45("p", { children: alternative.sentence }),
3490
- /* @__PURE__ */ jsx45(Button, { variant: "outlined", size: "small", onClick: alternative.onClick, disabled: busy, children: alternative.label })
3621
+ refused && /* @__PURE__ */ jsx47(FieldLine, { tone: "error", children: refused }),
3622
+ alternative && /* @__PURE__ */ jsxs35("div", { className: "flex flex-col items-start gap-2", children: [
3623
+ /* @__PURE__ */ jsx47("p", { children: alternative.sentence }),
3624
+ /* @__PURE__ */ jsx47(Button, { variant: "outlined", size: "small", onClick: alternative.onClick, disabled: busy, children: alternative.label })
3491
3625
  ] })
3492
3626
  ] })
3493
3627
  }
@@ -3495,19 +3629,19 @@ function ConfirmDialog({ title, children, confirmLabel, destructive = false, onC
3495
3629
  }
3496
3630
 
3497
3631
  // src/EditableText.tsx
3498
- import { useEffect as useEffect7, useRef as useRef12, useState as useState11 } from "react";
3632
+ import { useEffect as useEffect7, useRef as useRef12, useState as useState13 } from "react";
3499
3633
  import { Field as BaseField4 } from "@base-ui/react/field";
3500
3634
  import { Input as Input2 } from "@base-ui/react/input";
3501
3635
  import { IconPencil, IconPlus } from "@tabler/icons-react";
3502
- import { Fragment as Fragment14, jsx as jsx46, jsxs as jsxs34 } from "react/jsx-runtime";
3636
+ import { Fragment as Fragment14, jsx as jsx48, jsxs as jsxs36 } from "react/jsx-runtime";
3503
3637
  var saved = (answer) => answer === true || typeof answer === "object" && answer.kind !== "error";
3504
3638
  function EditableText(props) {
3505
- return props.manner === "buttons" ? /* @__PURE__ */ jsx46(WithButtons, { ...props }) : /* @__PURE__ */ jsx46(Inline, { ...props });
3639
+ return props.manner === "buttons" ? /* @__PURE__ */ jsx48(WithButtons, { ...props }) : /* @__PURE__ */ jsx48(Inline, { ...props });
3506
3640
  }
3507
3641
  function Inline({ value, display, displayNode, placeholder, onCommit, multiline = false, className, label, readOnly = false }) {
3508
- const [editing, setEditing] = useState11(false);
3509
- const [draft, setDraft] = useState11(value);
3510
- const [busy, setBusy] = useState11(false);
3642
+ const [editing, setEditing] = useState13(false);
3643
+ const [draft, setDraft] = useState13(value);
3644
+ const [busy, setBusy] = useState13(false);
3511
3645
  const fieldRef = useRef12(null);
3512
3646
  useEffect7(() => {
3513
3647
  if (editing) {
@@ -3561,7 +3695,7 @@ function Inline({ value, display, displayNode, placeholder, onCommit, multiline
3561
3695
  written and never read. Read-only, this is a line of text: whatever
3562
3696
  names the region around it (a `Field`, a `Property`) names this too.
3563
3697
  */
3564
- /* @__PURE__ */ jsx46(
3698
+ /* @__PURE__ */ jsx48(
3565
3699
  "div",
3566
3700
  {
3567
3701
  className: cn("w-full px-2 py-1", multiline && !displayNode && "whitespace-pre-wrap", display ?? value ? "text-text-primary" : "text-text-muted", className),
@@ -3571,11 +3705,11 @@ function Inline({ value, display, displayNode, placeholder, onCommit, multiline
3571
3705
  );
3572
3706
  }
3573
3707
  if (editing) {
3574
- return multiline ? /* @__PURE__ */ jsx46(
3708
+ return multiline ? /* @__PURE__ */ jsx48(
3575
3709
  BaseField4.Control,
3576
3710
  {
3577
3711
  ref: fieldRef,
3578
- render: /* @__PURE__ */ jsx46("textarea", { rows: 4 }),
3712
+ render: /* @__PURE__ */ jsx48("textarea", { rows: 4 }),
3579
3713
  "aria-label": label,
3580
3714
  value: draft,
3581
3715
  disabled: busy,
@@ -3584,7 +3718,7 @@ function Inline({ value, display, displayNode, placeholder, onCommit, multiline
3584
3718
  onBlur: () => void commit(),
3585
3719
  className: fieldClass
3586
3720
  }
3587
- ) : /* @__PURE__ */ jsx46(
3721
+ ) : /* @__PURE__ */ jsx48(
3588
3722
  Input2,
3589
3723
  {
3590
3724
  ref: fieldRef,
@@ -3598,7 +3732,7 @@ function Inline({ value, display, displayNode, placeholder, onCommit, multiline
3598
3732
  }
3599
3733
  );
3600
3734
  }
3601
- return /* @__PURE__ */ jsx46(
3735
+ return /* @__PURE__ */ jsx48(
3602
3736
  "button",
3603
3737
  {
3604
3738
  type: "button",
@@ -3632,10 +3766,10 @@ function WithButtons({
3632
3766
  draftNote,
3633
3767
  defaultEditing = false
3634
3768
  }) {
3635
- const [editing, setEditing] = useState11(defaultEditing && !readOnly);
3636
- const [draft, setDraft] = useState11(value);
3637
- const [outcome, setOutcome] = useState11(null);
3638
- const [busy, setBusy] = useState11(false);
3769
+ const [editing, setEditing] = useState13(defaultEditing && !readOnly);
3770
+ const [draft, setDraft] = useState13(value);
3771
+ const [outcome, setOutcome] = useState13(null);
3772
+ const [busy, setBusy] = useState13(false);
3639
3773
  const cleaned = clean(draft);
3640
3774
  const canSave = (!required || cleaned !== "") && (cleaned !== clean(value) || outcome?.kind === "error");
3641
3775
  const open = () => {
@@ -3670,22 +3804,22 @@ function WithButtons({
3670
3804
  setDraft(next);
3671
3805
  if (outcome?.kind === "error") setOutcome(null);
3672
3806
  };
3673
- const line = outcome && /* @__PURE__ */ jsx46(FieldLine, { tone: outcome.kind, children: outcome.message });
3807
+ const line = outcome && /* @__PURE__ */ jsx48(FieldLine, { tone: outcome.kind, children: outcome.message });
3674
3808
  if (editing) {
3675
- const buttons = /* @__PURE__ */ jsxs34(Fragment14, { children: [
3676
- /* @__PURE__ */ jsx46(Button, { variant: "primary", size: "small", type: "submit", disabled: !canSave || busy, children: busy ? "Saving\u2026" : "Save" }),
3677
- /* @__PURE__ */ jsx46(Button, { variant: "outlined", size: "small", onClick: cancel, children: "Cancel" })
3809
+ const buttons = /* @__PURE__ */ jsxs36(Fragment14, { children: [
3810
+ /* @__PURE__ */ jsx48(Button, { variant: "primary", size: "small", type: "submit", disabled: !canSave || busy, children: busy ? "Saving\u2026" : "Save" }),
3811
+ /* @__PURE__ */ jsx48(Button, { variant: "outlined", size: "small", onClick: cancel, children: "Cancel" })
3678
3812
  ] });
3679
3813
  return (
3680
3814
  // The package Form: Enter in the one-line field saves, Ctrl+Enter from the text area; it locks while saving.
3681
- /* @__PURE__ */ jsxs34(Form, { busy, onSubmit: save, layout: "free", className: cn("flex flex-col gap-2", className), children: [
3682
- multiline ? /* @__PURE__ */ jsxs34(Fragment14, { children: [
3683
- /* @__PURE__ */ jsx46(Textarea, { autoFocus: true, rows: 4, value: draft, onChange: (event) => type(event.target.value), "aria-label": label, placeholder: fieldPlaceholder, onKeyDown }),
3815
+ /* @__PURE__ */ jsxs36(Form, { busy, onSubmit: save, layout: "free", className: cn("flex flex-col gap-2", className), children: [
3816
+ multiline ? /* @__PURE__ */ jsxs36(Fragment14, { children: [
3817
+ /* @__PURE__ */ jsx48(Textarea, { autoFocus: true, rows: 4, value: draft, onChange: (event) => type(event.target.value), "aria-label": label, placeholder: fieldPlaceholder, onKeyDown }),
3684
3818
  draftNote?.(draft),
3685
- /* @__PURE__ */ jsx46("div", { className: "flex items-center gap-2", children: buttons })
3686
- ] }) : /* @__PURE__ */ jsxs34(Fragment14, { children: [
3687
- /* @__PURE__ */ jsxs34("div", { className: "flex items-center gap-2", children: [
3688
- /* @__PURE__ */ jsx46(TextInput, { autoFocus: true, value: draft, onChange: (event) => type(event.target.value), "aria-label": label, placeholder: fieldPlaceholder, onKeyDown }),
3819
+ /* @__PURE__ */ jsx48("div", { className: "flex items-center gap-2", children: buttons })
3820
+ ] }) : /* @__PURE__ */ jsxs36(Fragment14, { children: [
3821
+ /* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-2", children: [
3822
+ /* @__PURE__ */ jsx48(TextInput, { autoFocus: true, value: draft, onChange: (event) => type(event.target.value), "aria-label": label, placeholder: fieldPlaceholder, onKeyDown }),
3689
3823
  buttons
3690
3824
  ] }),
3691
3825
  draftNote?.(draft)
@@ -3695,18 +3829,18 @@ function WithButtons({
3695
3829
  );
3696
3830
  }
3697
3831
  const shown2 = display ?? value;
3698
- return /* @__PURE__ */ jsxs34("div", { className: cn("flex flex-col gap-3", className), children: [
3699
- /* @__PURE__ */ jsxs34("div", { className: cn("flex gap-2", multiline ? "items-start" : "items-center"), children: [
3832
+ return /* @__PURE__ */ jsxs36("div", { className: cn("flex flex-col gap-3", className), children: [
3833
+ /* @__PURE__ */ jsxs36("div", { className: cn("flex gap-2", multiline ? "items-start" : "items-center"), children: [
3700
3834
  !shown2 ? (
3701
3835
  // Nothing yet: the kit's empty line for one part of a page, 12px and muted, as Peek's "No summary yet." (2 November).
3702
- /* @__PURE__ */ jsx46(EmptyState, { scope: "section", message: placeholder, className: "min-w-0 flex-1" })
3703
- ) : multiline ? /* @__PURE__ */ jsx46("p", { className: "min-w-0 flex-1 break-words text-body-2 text-text-primary", children: displayNode ?? shown2 }) : /* @__PURE__ */ jsx46("span", { className: "min-w-0 flex-1 truncate text-body-2 text-text-primary", children: displayNode ?? shown2 }),
3704
- !readOnly && /* @__PURE__ */ jsx46(
3836
+ /* @__PURE__ */ jsx48(EmptyState, { scope: "section", message: placeholder, className: "min-w-0 flex-1" })
3837
+ ) : multiline ? /* @__PURE__ */ jsx48("p", { className: "min-w-0 flex-1 break-words text-body-2 text-text-primary", children: displayNode ?? shown2 }) : /* @__PURE__ */ jsx48("span", { className: "min-w-0 flex-1 truncate text-body-2 text-text-primary", children: displayNode ?? shown2 }),
3838
+ !readOnly && /* @__PURE__ */ jsx48(
3705
3839
  Button,
3706
3840
  {
3707
3841
  variant: "outlined",
3708
3842
  size: "small",
3709
- leadingIcon: value || !addLabel ? /* @__PURE__ */ jsx46(IconPencil, { size: 14, stroke: 1.5 }) : /* @__PURE__ */ jsx46(IconPlus, { size: 14, stroke: 1.5 }),
3843
+ leadingIcon: value || !addLabel ? /* @__PURE__ */ jsx48(IconPencil, { size: 14, stroke: 1.5 }) : /* @__PURE__ */ jsx48(IconPlus, { size: 14, stroke: 1.5 }),
3710
3844
  onClick: open,
3711
3845
  children: value || !addLabel ? editLabel : addLabel
3712
3846
  }
@@ -3718,20 +3852,20 @@ function WithButtons({
3718
3852
 
3719
3853
  // src/EntryShell.tsx
3720
3854
  import { cloneElement as cloneElement2 } from "react";
3721
- import { jsx as jsx47, jsxs as jsxs35 } from "react/jsx-runtime";
3855
+ import { jsx as jsx49, jsxs as jsxs37 } from "react/jsx-runtime";
3722
3856
  var isEmpty = (node) => node == null || node === false || typeof node === "string" && node.trim() === "";
3723
3857
  function EntryShell({ logo, busy = false, busyLabel = "Loading", message, action, className }) {
3724
- return /* @__PURE__ */ jsx47("div", { className: cn("min-h-screen bg-bg-base flex items-center justify-center p-6", className), children: busy ? /* @__PURE__ */ jsx47("div", { role: "status", "aria-busy": "true", "aria-label": busyLabel, className: "flex flex-col items-center gap-4", children: cloneElement2(logo, { className: cn(logo.props.className, "animate-skeleton-in animate-pulse") }) }) : /* @__PURE__ */ jsxs35("div", { className: "flex flex-col items-center gap-4", children: [
3858
+ return /* @__PURE__ */ jsx49("div", { className: cn("min-h-screen bg-bg-base flex items-center justify-center p-6", className), children: busy ? /* @__PURE__ */ jsx49("div", { role: "status", "aria-busy": "true", "aria-label": busyLabel, className: "flex flex-col items-center gap-4", children: cloneElement2(logo, { className: cn(logo.props.className, "animate-skeleton-in animate-pulse") }) }) : /* @__PURE__ */ jsxs37("div", { className: "flex flex-col items-center gap-4", children: [
3725
3859
  logo,
3726
- !isEmpty(message) && /* @__PURE__ */ jsx47("p", { role: "status", className: "text-body-2 text-text-secondary max-w-sm text-center", children: message }),
3727
- action && /* @__PURE__ */ jsx47(Button, { variant: "primary", type: "button", onClick: action.onClick, disabled: action.disabled, children: action.label })
3860
+ !isEmpty(message) && /* @__PURE__ */ jsx49("p", { role: "status", className: "text-body-2 text-text-secondary max-w-sm text-center", children: message }),
3861
+ action && /* @__PURE__ */ jsx49(Button, { variant: "primary", type: "button", onClick: action.onClick, disabled: action.disabled, children: action.label })
3728
3862
  ] }) });
3729
3863
  }
3730
3864
 
3731
3865
  // src/ErrorBoundary.tsx
3732
3866
  import { Component } from "react";
3733
3867
  import { IconAlertTriangle as IconAlertTriangle2 } from "@tabler/icons-react";
3734
- import { jsx as jsx48 } from "react/jsx-runtime";
3868
+ import { jsx as jsx50 } from "react/jsx-runtime";
3735
3869
  var ErrorBoundary = class extends Component {
3736
3870
  state = { hasError: false };
3737
3871
  static getDerivedStateFromError() {
@@ -3742,22 +3876,22 @@ var ErrorBoundary = class extends Component {
3742
3876
  }
3743
3877
  render() {
3744
3878
  if (!this.state.hasError) return this.props.children;
3745
- const message = /* @__PURE__ */ jsx48(
3879
+ const message = /* @__PURE__ */ jsx50(
3746
3880
  EmptyState,
3747
3881
  {
3748
- icon: /* @__PURE__ */ jsx48(IconAlertTriangle2, { size: 16, stroke: 1.5 }),
3882
+ icon: /* @__PURE__ */ jsx50(IconAlertTriangle2, { size: 16, stroke: 1.5 }),
3749
3883
  message: `Something went wrong${this.props.label ? ` in the ${this.props.label}` : ""}. Your data is safe \u2014 try again.`,
3750
3884
  action: { label: "Try again", onClick: () => this.setState({ hasError: false }) }
3751
3885
  }
3752
3886
  );
3753
3887
  if (this.props.frame) return this.props.frame(message);
3754
- return this.props.fallbackClassName ? /* @__PURE__ */ jsx48("div", { className: this.props.fallbackClassName, children: message }) : message;
3888
+ return this.props.fallbackClassName ? /* @__PURE__ */ jsx50("div", { className: this.props.fallbackClassName, children: message }) : message;
3755
3889
  }
3756
3890
  };
3757
3891
 
3758
3892
  // src/ProgressBar.tsx
3759
3893
  import { Progress } from "@base-ui/react/progress";
3760
- import { jsx as jsx49 } from "react/jsx-runtime";
3894
+ import { jsx as jsx51 } from "react/jsx-runtime";
3761
3895
  var TRACK_CLASSES = {
3762
3896
  default: "h-1.5 w-full overflow-hidden rounded-full bg-bg-inset",
3763
3897
  // 4px, Katerina's ruling of 14 September; Peek's own bar is 3px until it takes this one.
@@ -3770,17 +3904,17 @@ var INDICATOR_CLASSES = {
3770
3904
  function ProgressBar({ value, max, label, variant = "default", className }) {
3771
3905
  return (
3772
3906
  // `max={0}` needs no guard: Base UI reads the 0/0 share as an empty bar.
3773
- /* @__PURE__ */ jsx49(Progress.Root, { value, max, "aria-label": label, className, children: /* @__PURE__ */ jsx49(Progress.Track, { className: TRACK_CLASSES[variant], children: /* @__PURE__ */ jsx49(Progress.Indicator, { className: INDICATOR_CLASSES[variant] }) }) })
3907
+ /* @__PURE__ */ jsx51(Progress.Root, { value, max, "aria-label": label, className, children: /* @__PURE__ */ jsx51(Progress.Track, { className: TRACK_CLASSES[variant], children: /* @__PURE__ */ jsx51(Progress.Indicator, { className: INDICATOR_CLASSES[variant] }) }) })
3774
3908
  );
3775
3909
  }
3776
3910
 
3777
3911
  // src/Breadcrumb.tsx
3778
- import { Fragment as Fragment15, useCallback as useCallback4, useLayoutEffect as useLayoutEffect4, useRef as useRef13, useState as useState12 } from "react";
3779
- import { jsx as jsx50, jsxs as jsxs36 } from "react/jsx-runtime";
3912
+ import { Fragment as Fragment15, useCallback as useCallback4, useLayoutEffect as useLayoutEffect4, useRef as useRef13, useState as useState14 } from "react";
3913
+ import { jsx as jsx52, jsxs as jsxs38 } from "react/jsx-runtime";
3780
3914
  function Breadcrumb({ items, className }) {
3781
3915
  const navRef = useRef13(null);
3782
3916
  const labelRefs = useRef13([]);
3783
- const [truncated, setTruncated] = useState12(/* @__PURE__ */ new Set());
3917
+ const [truncated, setTruncated] = useState14(/* @__PURE__ */ new Set());
3784
3918
  const measure = useCallback4(() => {
3785
3919
  const next = /* @__PURE__ */ new Set();
3786
3920
  labelRefs.current.forEach((el, index) => {
@@ -3796,7 +3930,7 @@ function Breadcrumb({ items, className }) {
3796
3930
  observer.observe(nav);
3797
3931
  return () => observer.disconnect();
3798
3932
  }, [measure, items]);
3799
- return /* @__PURE__ */ jsx50("nav", { ref: navRef, "aria-label": "Breadcrumb", className: cn("flex min-w-0 items-center gap-1.5 text-body-2", className), children: items.map((item, index) => {
3933
+ return /* @__PURE__ */ jsx52("nav", { ref: navRef, "aria-label": "Breadcrumb", className: cn("flex min-w-0 items-center gap-1.5 text-body-2", className), children: items.map((item, index) => {
3800
3934
  const last = index === items.length - 1;
3801
3935
  const tone = item.muted || last && item.mono ? "text-text-muted" : last ? "text-text-primary" : "text-text-secondary";
3802
3936
  const text = cn(
@@ -3817,58 +3951,58 @@ function Breadcrumb({ items, className }) {
3817
3951
  // on a box around it, which the link takes them from, rather than
3818
3952
  // pushed into it (UIG-9); the link is still the one element that
3819
3953
  // truncates and is measured.
3820
- /* @__PURE__ */ jsx50("span", { className: cn("flex min-w-0", item.mono && "shrink-0 font-mono text-caption", tone, "hover:text-text-primary"), children: /* @__PURE__ */ jsx50(Link, { ref: setLabelRef, variant: "plain", truncate: true, href: item.href, onClick: item.onClick, children: item.label }) })
3821
- ) : /* @__PURE__ */ jsx50("span", { ref: setLabelRef, className: text, "aria-current": last ? "page" : void 0, children: item.label });
3822
- return /* @__PURE__ */ jsxs36(Fragment15, { children: [
3823
- index > 0 && /* @__PURE__ */ jsx50("span", { "aria-hidden": "true", className: "shrink-0 text-text-muted", children: "/" }),
3824
- item.icon && /* @__PURE__ */ jsx50("span", { "aria-hidden": "true", className: cn("flex shrink-0", tone), children: item.icon }),
3954
+ /* @__PURE__ */ jsx52("span", { className: cn("flex min-w-0", item.mono && "shrink-0 font-mono text-caption", tone, "hover:text-text-primary"), children: /* @__PURE__ */ jsx52(Link, { ref: setLabelRef, variant: "plain", truncate: true, href: item.href, onClick: item.onClick, children: item.label }) })
3955
+ ) : /* @__PURE__ */ jsx52("span", { ref: setLabelRef, className: text, "aria-current": last ? "page" : void 0, children: item.label });
3956
+ return /* @__PURE__ */ jsxs38(Fragment15, { children: [
3957
+ index > 0 && /* @__PURE__ */ jsx52("span", { "aria-hidden": "true", className: "shrink-0 text-text-muted", children: "/" }),
3958
+ item.icon && /* @__PURE__ */ jsx52("span", { "aria-hidden": "true", className: cn("flex shrink-0", tone), children: item.icon }),
3825
3959
  truncated.has(index) ? (
3826
3960
  // `min-w-0 shrink` undoes the wrapper's own shrink-0 — the crumb
3827
3961
  // must keep truncating inside it, or wrapping it would widen the
3828
3962
  // trail and the tooltip would never be needed again.
3829
- /* @__PURE__ */ jsx50(WithTooltip, { label: item.label, wrapperClassName: "min-w-0 shrink", children: crumb })
3963
+ /* @__PURE__ */ jsx52(WithTooltip, { label: item.label, wrapperClassName: "min-w-0 shrink", children: crumb })
3830
3964
  ) : crumb
3831
3965
  ] }, `${item.label}-${index}`);
3832
3966
  }) });
3833
3967
  }
3834
3968
 
3835
3969
  // src/NavItem.tsx
3836
- import { useId as useId4, useState as useState14 } from "react";
3970
+ import { useId as useId4, useState as useState16 } from "react";
3837
3971
  import { Collapsible as Collapsible2 } from "@base-ui/react/collapsible";
3838
3972
  import { IconChevronRight as IconChevronRight3, IconDotsVertical as IconDotsVertical2 } from "@tabler/icons-react";
3839
3973
 
3840
3974
  // src/UrgentMark.tsx
3841
3975
  import { IconAlertSquareRounded } from "@tabler/icons-react";
3842
- import { jsx as jsx51 } from "react/jsx-runtime";
3976
+ import { jsx as jsx53 } from "react/jsx-runtime";
3843
3977
  function UrgentMark() {
3844
- return /* @__PURE__ */ jsx51("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center", "data-urgent": true, children: /* @__PURE__ */ jsx51("div", { className: "flex items-center rounded-full bg-warning-muted p-0.5 signal:shadow-glow-warning", children: /* @__PURE__ */ jsx51(IconAlertSquareRounded, { size: 12, stroke: 2.5, className: "text-warning-default" }) }) });
3978
+ return /* @__PURE__ */ jsx53("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center", "data-urgent": true, children: /* @__PURE__ */ jsx53("div", { className: "flex items-center rounded-full bg-warning-muted p-0.5 signal:shadow-glow-warning", children: /* @__PURE__ */ jsx53(IconAlertSquareRounded, { size: 12, stroke: 2.5, className: "text-warning-default" }) }) });
3845
3979
  }
3846
3980
 
3847
3981
  // src/CollapsibleSection.tsx
3848
- import { createContext as createContext7, useContext as useContext7, useEffect as useEffect8, useRef as useRef14, useState as useState13 } from "react";
3982
+ import { createContext as createContext7, useContext as useContext7, useEffect as useEffect8, useRef as useRef14, useState as useState15 } from "react";
3849
3983
  import { Collapsible } from "@base-ui/react/collapsible";
3850
3984
 
3851
3985
  // src/SectionHeader.tsx
3852
3986
  import { IconChevronRight as IconChevronRight2, IconDotsVertical } from "@tabler/icons-react";
3853
3987
  import { useRender } from "@base-ui/react/use-render";
3854
- import { Fragment as Fragment16, jsx as jsx52, jsxs as jsxs37 } from "react/jsx-runtime";
3988
+ import { Fragment as Fragment16, jsx as jsx54, jsxs as jsxs39 } from "react/jsx-runtime";
3855
3989
  function SectionHeader({ title, chevron = false, icon, isExpanded = true, onToggle, trailing, count, actions, menu, menuLabel, showActions = "hover", hover = "fill", look = "heading", render, className }) {
3856
3990
  const row = look === "row";
3857
3991
  const acts = actions && actions.length > 0 || menu != null;
3858
3992
  const trailingClasses = !acts ? "has-[[data-unread]]:-mr-1" : showActions === "hover" && "has-[[data-unread]]:pointer-events-none has-[[data-unread]]:absolute has-[[data-unread]]:inset-y-0 has-[[data-unread]]:right-1 has-[[data-unread]]:w-6 has-[[data-unread]]:justify-center has-[[data-unread]]:transition-opacity group-hover:has-[[data-unread]]:opacity-0 group-has-[:focus-visible]:has-[[data-unread]]:opacity-0 group-has-[[data-section-menu]_[aria-expanded=true]]:has-[[data-unread]]:opacity-0 [@media(hover:none)]:has-[[data-unread]]:opacity-0";
3859
3993
  const reveal = showActions === "hover" && "opacity-0 transition-opacity group-hover:opacity-100 group-has-[:focus-visible]:opacity-100 has-[[aria-expanded=true]]:opacity-100 [@media(hover:none)]:opacity-100";
3860
3994
  const titleElement = useRender({
3861
- render: render ?? (chevron ? /* @__PURE__ */ jsx52("button", { type: "button", onClick: onToggle, "aria-expanded": isExpanded }) : /* @__PURE__ */ jsx52("span", {})),
3995
+ render: render ?? (chevron ? /* @__PURE__ */ jsx54("button", { type: "button", onClick: onToggle, "aria-expanded": isExpanded }) : /* @__PURE__ */ jsx54("span", {})),
3862
3996
  props: {
3863
3997
  // `text-left`: a button centres its text. `h-full` and `flex-1`: the
3864
3998
  // whole row up to the actions is the hit target, as it was when the
3865
3999
  // row itself carried the click.
3866
4000
  // An icon is a row's: NavItem's 8px after it.
3867
4001
  className: cn("flex h-full min-w-0 flex-1 items-center text-left", row || chevron || icon != null ? "gap-2" : "gap-1"),
3868
- children: /* @__PURE__ */ jsxs37(Fragment16, { children: [
3869
- icon != null ? /* @__PURE__ */ jsxs37("span", { className: "relative flex size-4 shrink-0 items-center justify-center text-text-secondary", children: [
3870
- /* @__PURE__ */ jsx52("span", { className: cn("flex", chevron && "transition-opacity group-hover:opacity-0 group-has-[:focus-visible]:opacity-0"), children: icon }),
3871
- chevron && /* @__PURE__ */ jsx52(
4002
+ children: /* @__PURE__ */ jsxs39(Fragment16, { children: [
4003
+ icon != null ? /* @__PURE__ */ jsxs39("span", { className: "relative flex size-4 shrink-0 items-center justify-center text-text-secondary", children: [
4004
+ /* @__PURE__ */ jsx54("span", { className: cn("flex", chevron && "transition-opacity group-hover:opacity-0 group-has-[:focus-visible]:opacity-0"), children: icon }),
4005
+ chevron && /* @__PURE__ */ jsx54(
3872
4006
  IconChevronRight2,
3873
4007
  {
3874
4008
  size: 16,
@@ -3876,7 +4010,7 @@ function SectionHeader({ title, chevron = false, icon, isExpanded = true, onTogg
3876
4010
  className: cn("absolute opacity-0 transition-[opacity,transform] duration-150 group-hover:opacity-100 group-has-[:focus-visible]:opacity-100", isExpanded && "rotate-90")
3877
4011
  }
3878
4012
  )
3879
- ] }) : chevron && /* @__PURE__ */ jsx52(
4013
+ ] }) : chevron && /* @__PURE__ */ jsx54(
3880
4014
  IconChevronRight2,
3881
4015
  {
3882
4016
  size: 16,
@@ -3884,18 +4018,18 @@ function SectionHeader({ title, chevron = false, icon, isExpanded = true, onTogg
3884
4018
  className: cn("shrink-0 transition-transform duration-150", !row && "text-text-secondary", isExpanded && "rotate-90")
3885
4019
  }
3886
4020
  ),
3887
- look === "quiet" ? /* @__PURE__ */ jsx52("span", { className: "min-w-0 truncate text-caption text-text-muted", children: title }) : row ? (
4021
+ look === "quiet" ? /* @__PURE__ */ jsx54("span", { className: "min-w-0 truncate text-caption text-text-muted", children: title }) : row ? (
3888
4022
  // A row's words: NavItem's size and colour, brightening under the pointer with the row.
3889
- /* @__PURE__ */ jsx52("span", { className: "min-w-0 flex-1 truncate text-body-2", children: title })
4023
+ /* @__PURE__ */ jsx54("span", { className: "min-w-0 flex-1 truncate text-body-2", children: title })
3890
4024
  ) : (
3891
4025
  // One line, as the other looks and a NavItem's label: a Folder named by its id ran onto two (Katerina, 3 November).
3892
- /* @__PURE__ */ jsx52(SectionLabel, { folds: chevron, truncate: true, children: title })
4026
+ /* @__PURE__ */ jsx54(SectionLabel, { folds: chevron, truncate: true, children: title })
3893
4027
  ),
3894
- count != null && /* @__PURE__ */ jsx52("span", { className: cn("ml-1 shrink-0", COUNT_TEXT_CLASSES), children: count })
4028
+ count != null && /* @__PURE__ */ jsx54("span", { className: cn("ml-1 shrink-0", COUNT_TEXT_CLASSES), children: count })
3895
4029
  ] })
3896
4030
  }
3897
4031
  });
3898
- return /* @__PURE__ */ jsxs37(
4032
+ return /* @__PURE__ */ jsxs39(
3899
4033
  "div",
3900
4034
  {
3901
4035
  className: cn(
@@ -3916,30 +4050,30 @@ function SectionHeader({ title, chevron = false, icon, isExpanded = true, onTogg
3916
4050
  ),
3917
4051
  children: [
3918
4052
  titleElement,
3919
- trailing != null && /* @__PURE__ */ jsx52("div", { className: cn("flex shrink-0 items-center", trailingClasses), children: trailing }),
3920
- acts && /* @__PURE__ */ jsx52(
4053
+ trailing != null && /* @__PURE__ */ jsx54("div", { className: cn("flex shrink-0 items-center", trailingClasses), children: trailing }),
4054
+ acts && /* @__PURE__ */ jsx54(
3921
4055
  "div",
3922
4056
  {
3923
4057
  className: "-mr-1 flex shrink-0 items-center",
3924
- children: /* @__PURE__ */ jsxs37("div", { className: cn("flex items-center gap-1", reveal), children: [
4058
+ children: /* @__PURE__ */ jsxs39("div", { className: cn("flex items-center gap-1", reveal), children: [
3925
4059
  actions?.map(
3926
4060
  (action) => action.menu != null ? (
3927
4061
  // `data-section-menu`, as the ⋮ has: the row stays lit while its menu is open.
3928
- /* @__PURE__ */ jsx52("div", { "data-section-menu": true, className: "flex items-center", children: /* @__PURE__ */ jsx52(
4062
+ /* @__PURE__ */ jsx54("div", { "data-section-menu": true, className: "flex items-center", children: /* @__PURE__ */ jsx54(
3929
4063
  Menu,
3930
4064
  {
3931
4065
  align: "right",
3932
- trigger: /* @__PURE__ */ jsx52(IconButton, { tooltip: action.tooltip, "aria-label": action.tooltip, children: action.icon }),
4066
+ trigger: /* @__PURE__ */ jsx54(IconButton, { tooltip: action.tooltip, "aria-label": action.tooltip, children: action.icon }),
3933
4067
  children: action.menu
3934
4068
  }
3935
4069
  ) }, action.tooltip)
3936
- ) : /* @__PURE__ */ jsx52(IconButton, { tooltip: action.tooltip, "aria-label": action.tooltip, onClick: action.onClick, children: action.icon }, action.tooltip)
4070
+ ) : /* @__PURE__ */ jsx54(IconButton, { tooltip: action.tooltip, "aria-label": action.tooltip, onClick: action.onClick, children: action.icon }, action.tooltip)
3937
4071
  ),
3938
- menu != null && /* @__PURE__ */ jsx52("div", { "data-section-menu": true, className: "flex items-center", children: /* @__PURE__ */ jsx52(
4072
+ menu != null && /* @__PURE__ */ jsx54("div", { "data-section-menu": true, className: "flex items-center", children: /* @__PURE__ */ jsx54(
3939
4073
  Menu,
3940
4074
  {
3941
4075
  align: "right",
3942
- trigger: /* @__PURE__ */ jsx52(IconButton, { tooltip: "More options", "aria-label": menuLabel ?? `More options for ${title}`, children: /* @__PURE__ */ jsx52(IconDotsVertical, { size: 16, stroke: 1.5 }) }),
4076
+ trigger: /* @__PURE__ */ jsx54(IconButton, { tooltip: "More options", "aria-label": menuLabel ?? `More options for ${title}`, children: /* @__PURE__ */ jsx54(IconDotsVertical, { size: 16, stroke: 1.5 }) }),
3943
4077
  children: menu
3944
4078
  }
3945
4079
  ) })
@@ -3952,7 +4086,7 @@ function SectionHeader({ title, chevron = false, icon, isExpanded = true, onTogg
3952
4086
  }
3953
4087
 
3954
4088
  // src/CollapsibleSection.tsx
3955
- import { jsx as jsx53, jsxs as jsxs38 } from "react/jsx-runtime";
4089
+ import { jsx as jsx55, jsxs as jsxs40 } from "react/jsx-runtime";
3956
4090
  var OPEN = "open";
3957
4091
  var CLOSED = "closed";
3958
4092
  function useOpenFor(openFor, open, setOpen, link) {
@@ -3985,7 +4119,7 @@ function writeStored(key, open) {
3985
4119
  }
3986
4120
  }
3987
4121
  function useRememberedOpen(storageKey, fallback) {
3988
- const [choice, setChoice] = useState13(() => readStored(storageKey));
4122
+ const [choice, setChoice] = useState15(() => readStored(storageKey));
3989
4123
  const setOpen = (next) => {
3990
4124
  setChoice(next);
3991
4125
  writeStored(storageKey, next);
@@ -3993,7 +4127,7 @@ function useRememberedOpen(storageKey, fallback) {
3993
4127
  return [choice ?? fallback, setOpen];
3994
4128
  }
3995
4129
  function CollapsibleSection({ title, defaultOpen = true, open: openProp, onOpenChange, pending = false, storageKey, openFor, icon, trailing, actions, menu, menuLabel, showActions, look = "heading", indent = false, children, className, contentClassName }) {
3996
- const [initial] = useState13(defaultOpen);
4130
+ const [initial] = useState15(defaultOpen);
3997
4131
  const [openState, remember] = useRememberedOpen(storageKey, initial);
3998
4132
  const open = openProp ?? openState;
3999
4133
  const setOpen = (next) => {
@@ -4002,27 +4136,27 @@ function CollapsibleSection({ title, defaultOpen = true, open: openProp, onOpenC
4002
4136
  };
4003
4137
  useOpenFor(openFor, open, setOpen, useContext7(sectionLinked));
4004
4138
  const shown2 = open && !pending;
4005
- return /* @__PURE__ */ jsxs38(Collapsible.Root, { open: shown2, onOpenChange: (next, details) => setOpen(pending && details.reason === "trigger-press" ? !open : next), className: cn("flex flex-col", className), children: [
4006
- /* @__PURE__ */ jsx53(SectionHeader, { title, chevron: true, icon, isExpanded: open, trailing, actions, menu, menuLabel, showActions, look, className: "shrink-0", render: /* @__PURE__ */ jsx53(Collapsible.Trigger, { "aria-expanded": open, "aria-busy": pending && open ? true : void 0 }) }),
4007
- /* @__PURE__ */ jsx53(
4139
+ return /* @__PURE__ */ jsxs40(Collapsible.Root, { open: shown2, onOpenChange: (next, details) => setOpen(pending && details.reason === "trigger-press" ? !open : next), className: cn("flex flex-col", className), children: [
4140
+ /* @__PURE__ */ jsx55(SectionHeader, { title, chevron: true, icon, isExpanded: open, trailing, actions, menu, menuLabel, showActions, look, className: "shrink-0", render: /* @__PURE__ */ jsx55(Collapsible.Trigger, { "aria-expanded": open, "aria-busy": pending && open ? true : void 0 }) }),
4141
+ /* @__PURE__ */ jsx55(
4008
4142
  Collapsible.Panel,
4009
4143
  {
4010
4144
  hiddenUntilFound: true,
4011
4145
  className: COLLAPSIBLE_PANEL_CLASSES,
4012
- children: /* @__PURE__ */ jsx53("div", { className: cn("flex flex-col pt-0.5", (look === "row" || indent) && "pl-6", contentClassName), children })
4146
+ children: /* @__PURE__ */ jsx55("div", { className: cn("flex flex-col pt-0.5", (look === "row" || indent) && "pl-6", contentClassName), children })
4013
4147
  }
4014
4148
  )
4015
4149
  ] });
4016
4150
  }
4017
4151
 
4018
4152
  // src/UnreadDot.tsx
4019
- import { jsx as jsx54 } from "react/jsx-runtime";
4153
+ import { jsx as jsx56 } from "react/jsx-runtime";
4020
4154
  function UnreadDot({ className }) {
4021
- return /* @__PURE__ */ jsx54("div", { className: cn("flex h-6 w-6 shrink-0 items-center justify-center", className), "data-unread": true, children: /* @__PURE__ */ jsx54("div", { className: "h-1.5 w-1.5 rounded-full bg-accent-primary" }) });
4155
+ return /* @__PURE__ */ jsx56("div", { className: cn("flex h-6 w-6 shrink-0 items-center justify-center", className), "data-unread": true, children: /* @__PURE__ */ jsx56("div", { className: "h-1.5 w-1.5 rounded-full bg-accent-primary" }) });
4022
4156
  }
4023
4157
 
4024
4158
  // src/NavItem.tsx
4025
- import { jsx as jsx55, jsxs as jsxs39 } from "react/jsx-runtime";
4159
+ import { jsx as jsx57, jsxs as jsxs41 } from "react/jsx-runtime";
4026
4160
  function NavItem({
4027
4161
  label,
4028
4162
  href,
@@ -4048,7 +4182,7 @@ function NavItem({
4048
4182
  ...props
4049
4183
  }) {
4050
4184
  const inApp = useInAppClick(href, onClick, onPlainClick);
4051
- const [openState, setOpenState] = useState14(defaultOpen);
4185
+ const [openState, setOpenState] = useState16(defaultOpen);
4052
4186
  const panelId = useId4();
4053
4187
  const hasRows = children != null && children !== false;
4054
4188
  const open = openProp ?? openState;
@@ -4059,9 +4193,9 @@ function NavItem({
4059
4193
  useOpenFor(hasRows ? openFor : void 0, open, setOpen);
4060
4194
  const buttons = (menu != null ? 1 : 0) + (action ? 1 : 0);
4061
4195
  const besides = buttons > 0 || hasRows;
4062
- const mark = unread ? urgent ? /* @__PURE__ */ jsx55(UrgentMark, {}) : /* @__PURE__ */ jsx55(UnreadDot, {}) : null;
4196
+ const mark = unread ? urgent ? /* @__PURE__ */ jsx57(UrgentMark, {}) : /* @__PURE__ */ jsx57(UnreadDot, {}) : null;
4063
4197
  const stepsAside = buttons > 0 && "transition-opacity group-hover/nav:opacity-0 group-has-[:focus-visible]/nav:opacity-0 group-has-[[data-nav-menu]_[aria-expanded=true]]/nav:opacity-0 [@media(hover:none)]:opacity-0";
4064
- const row = /* @__PURE__ */ jsxs39(
4198
+ const row = /* @__PURE__ */ jsxs41(
4065
4199
  "a",
4066
4200
  {
4067
4201
  href,
@@ -4083,7 +4217,7 @@ function NavItem({
4083
4217
  ...props,
4084
4218
  onClick: inApp,
4085
4219
  children: [
4086
- (icon || hasRows) && /* @__PURE__ */ jsx55(
4220
+ (icon || hasRows) && /* @__PURE__ */ jsx57(
4087
4221
  "span",
4088
4222
  {
4089
4223
  className: cn(
@@ -4097,14 +4231,14 @@ function NavItem({
4097
4231
  tooltip?.trim() ? (
4098
4232
  // On the label alone, not the row: the ⋮ and the action keep their
4099
4233
  // own tooltips, and the two never stand up at once.
4100
- /* @__PURE__ */ jsx55(WithTooltip, { label: tooltip, inline: true, wrapperClassName: "flex min-w-0 flex-1", children: /* @__PURE__ */ jsx55("span", { className: cn("flex-1 truncate", unread && "font-medium"), children: label }) })
4101
- ) : /* @__PURE__ */ jsx55("span", { className: cn("flex-1 truncate", unread && "font-medium"), children: label }),
4234
+ /* @__PURE__ */ jsx57(WithTooltip, { label: tooltip, inline: true, wrapperClassName: "flex min-w-0 flex-1", children: /* @__PURE__ */ jsx57("span", { className: cn("flex-1 truncate", unread && "font-medium"), children: label }) })
4235
+ ) : /* @__PURE__ */ jsx57("span", { className: cn("flex-1 truncate", unread && "font-medium"), children: label }),
4102
4236
  hint != null && // Takes room only while it shows, so the label gives way to it.
4103
- /* @__PURE__ */ jsx55("span", { className: "hidden shrink-0 items-center group-hover/nav:flex group-has-[:focus-visible]/nav:flex", children: hint }),
4237
+ /* @__PURE__ */ jsx57("span", { className: "hidden shrink-0 items-center group-hover/nav:flex group-has-[:focus-visible]/nav:flex", children: hint }),
4104
4238
  buttons > 1 && // Two buttons: the second one's room (24px and the 4px between them, the
4105
4239
  // row's 8px gap making up the rest), kept only while they show.
4106
- /* @__PURE__ */ jsx55("span", { "aria-hidden": "true", className: "hidden w-5 shrink-0 group-hover/nav:block group-has-[:focus-visible]/nav:block group-has-[[data-nav-menu]_[aria-expanded=true]]/nav:block [@media(hover:none)]:block" }),
4107
- count ? /* @__PURE__ */ jsx55(WithTooltip, { label: countLabel ?? `${count} open`, children: /* @__PURE__ */ jsx55(
4240
+ /* @__PURE__ */ jsx57("span", { "aria-hidden": "true", className: "hidden w-5 shrink-0 group-hover/nav:block group-has-[:focus-visible]/nav:block group-has-[[data-nav-menu]_[aria-expanded=true]]/nav:block [@media(hover:none)]:block" }),
4241
+ count ? /* @__PURE__ */ jsx57(WithTooltip, { label: countLabel ?? `${count} open`, children: /* @__PURE__ */ jsx57(
4108
4242
  "span",
4109
4243
  {
4110
4244
  className: cn(
@@ -4120,7 +4254,7 @@ function NavItem({
4120
4254
  // `-mr-1`: the 24px slot's dot then sits on the axis of a count and
4121
4255
  // of the ⋮ (8px from the edge to the 16px box), one column with a
4122
4256
  // folder heading's dot and ⋮ (Katerina, 5 October).
4123
- /* @__PURE__ */ jsx55("span", { className: cn("-mr-1 flex shrink-0", stepsAside), children: mark })
4257
+ /* @__PURE__ */ jsx57("span", { className: cn("-mr-1 flex shrink-0", stepsAside), children: mark })
4124
4258
  ) : buttons > 0 && !count ? (
4125
4259
  // Nothing at the right, but a menu: no room is kept at rest, so the
4126
4260
  // label has the row's whole width; while the ⋮ shows, its 24px slot
@@ -4128,18 +4262,18 @@ function NavItem({
4128
4262
  // `-mr-1`: the ⋮ sits at `right-1`, 4px into the row's padding, so the
4129
4263
  // slot does too — at the padding's edge it kept 4px the ⋮ never
4130
4264
  // covers, and the label stopped 12px short of the button, not 8.
4131
- /* @__PURE__ */ jsx55("span", { "aria-hidden": "true", className: "-mr-1 hidden w-6 shrink-0 group-hover/nav:block group-has-[:focus-visible]/nav:block group-has-[[data-nav-menu]_[aria-expanded=true]]/nav:block [@media(hover:none)]:block" })
4265
+ /* @__PURE__ */ jsx57("span", { "aria-hidden": "true", className: "-mr-1 hidden w-6 shrink-0 group-hover/nav:block group-has-[:focus-visible]/nav:block group-has-[[data-nav-menu]_[aria-expanded=true]]/nav:block [@media(hover:none)]:block" })
4132
4266
  ) : null
4133
4267
  ]
4134
4268
  }
4135
4269
  );
4136
4270
  if (!besides && hint == null) return row;
4137
4271
  const name = menuLabel ?? `More options for ${label}`;
4138
- const line = /* @__PURE__ */ jsxs39("div", { className: "group/nav relative shrink-0", children: [
4272
+ const line = /* @__PURE__ */ jsxs41("div", { className: "group/nav relative shrink-0", children: [
4139
4273
  row,
4140
4274
  hasRows && // `left-1`: the 24px button's 16px arrow then sits where the icon
4141
4275
  // sits (the row's px-2), so the icon turns into the arrow in place.
4142
- /* @__PURE__ */ jsx55("div", { className: "absolute inset-y-0 left-1 flex items-center opacity-0 transition-opacity group-hover/nav:opacity-100 group-has-[:focus-visible]/nav:opacity-100", children: /* @__PURE__ */ jsx55(
4276
+ /* @__PURE__ */ jsx57("div", { className: "absolute inset-y-0 left-1 flex items-center opacity-0 transition-opacity group-hover/nav:opacity-100 group-has-[:focus-visible]/nav:opacity-100", children: /* @__PURE__ */ jsx57(
4143
4277
  IconButton,
4144
4278
  {
4145
4279
  tooltip: open ? "Collapse" : "Expand",
@@ -4147,7 +4281,7 @@ function NavItem({
4147
4281
  "aria-expanded": open,
4148
4282
  "aria-controls": panelId,
4149
4283
  onClick: () => setOpen(!open),
4150
- children: /* @__PURE__ */ jsx55(IconChevronRight3, { size: 16, stroke: 1.5, className: cn("transition-transform duration-150", open && "rotate-90") })
4284
+ children: /* @__PURE__ */ jsx57(IconChevronRight3, { size: 16, stroke: 1.5, className: cn("transition-transform duration-150", open && "rotate-90") })
4151
4285
  }
4152
4286
  ) }),
4153
4287
  buttons > 0 && // `right-1`: the 24px button's 16px icon ends 8px from the row's
@@ -4158,36 +4292,36 @@ function NavItem({
4158
4292
  // right of the slot's centre.
4159
4293
  // On a screen with no hover it always shows: nothing there can point
4160
4294
  // at the row, and the menu has no other way in.
4161
- /* @__PURE__ */ jsxs39("div", { "data-nav-menu": true, className: cn("absolute inset-y-0 right-1 flex items-center gap-1", "opacity-0 transition-opacity group-hover/nav:opacity-100 group-has-[:focus-visible]/nav:opacity-100 has-[[aria-expanded=true]]:opacity-100 [@media(hover:none)]:opacity-100"), children: [
4162
- action && /* @__PURE__ */ jsx55(IconButton, { tooltip: action.tooltip, "aria-label": `${action.tooltip}: ${label}`, onClick: action.onClick, children: action.icon }),
4163
- menu != null && /* @__PURE__ */ jsx55(
4295
+ /* @__PURE__ */ jsxs41("div", { "data-nav-menu": true, className: cn("absolute inset-y-0 right-1 flex items-center gap-1", "opacity-0 transition-opacity group-hover/nav:opacity-100 group-has-[:focus-visible]/nav:opacity-100 has-[[aria-expanded=true]]:opacity-100 [@media(hover:none)]:opacity-100"), children: [
4296
+ action && /* @__PURE__ */ jsx57(IconButton, { tooltip: action.tooltip, "aria-label": `${action.tooltip}: ${label}`, onClick: action.onClick, children: action.icon }),
4297
+ menu != null && /* @__PURE__ */ jsx57(
4164
4298
  Menu,
4165
4299
  {
4166
4300
  align: "right",
4167
- trigger: /* @__PURE__ */ jsx55(IconButton, { tooltip: "More options", "aria-label": name, children: /* @__PURE__ */ jsx55(IconDotsVertical2, { size: 16, stroke: 1.5 }) }),
4301
+ trigger: /* @__PURE__ */ jsx57(IconButton, { tooltip: "More options", "aria-label": name, children: /* @__PURE__ */ jsx57(IconDotsVertical2, { size: 16, stroke: 1.5 }) }),
4168
4302
  children: menu
4169
4303
  }
4170
4304
  )
4171
4305
  ] })
4172
4306
  ] });
4173
4307
  if (!hasRows) return line;
4174
- return /* @__PURE__ */ jsxs39(Collapsible2.Root, { open, onOpenChange: setOpen, className: "flex shrink-0 flex-col", children: [
4308
+ return /* @__PURE__ */ jsxs41(Collapsible2.Root, { open, onOpenChange: setOpen, className: "flex shrink-0 flex-col", children: [
4175
4309
  line,
4176
- /* @__PURE__ */ jsx55(
4310
+ /* @__PURE__ */ jsx57(
4177
4311
  Collapsible2.Panel,
4178
4312
  {
4179
4313
  id: panelId,
4180
4314
  hiddenUntilFound: true,
4181
4315
  className: COLLAPSIBLE_PANEL_CLASSES,
4182
- children: /* @__PURE__ */ jsx55("div", { className: "flex flex-col gap-0.5 pt-0.5 pl-6", children })
4316
+ children: /* @__PURE__ */ jsx57("div", { className: "flex flex-col gap-0.5 pt-0.5 pl-6", children })
4183
4317
  }
4184
4318
  )
4185
4319
  ] });
4186
4320
  }
4187
4321
 
4188
4322
  // src/NavTree.tsx
4189
- import { createContext as createContext8, useContext as useContext8, useEffect as useEffect9, useRef as useRef15, useState as useState15 } from "react";
4190
- import { jsx as jsx56, jsxs as jsxs40 } from "react/jsx-runtime";
4323
+ import { createContext as createContext8, useContext as useContext8, useEffect as useEffect9, useRef as useRef15, useState as useState17 } from "react";
4324
+ import { jsx as jsx58, jsxs as jsxs42 } from "react/jsx-runtime";
4191
4325
  var NAV_TREE_INTENT_MS = 150;
4192
4326
  var NAV_TREE_REVEAL_MS = 200;
4193
4327
  var NAV_TREE_PENDING_MS = 2e3;
@@ -4224,7 +4358,7 @@ function scrollToRow(row) {
4224
4358
  else if (at.bottom > view.bottom) box.scrollTop += Math.min(at.bottom - view.bottom, at.top - view.top);
4225
4359
  }
4226
4360
  function Line({ message }) {
4227
- return /* @__PURE__ */ jsx56(EmptyState, { scope: "rows", message });
4361
+ return /* @__PURE__ */ jsx58(EmptyState, { scope: "rows", message });
4228
4362
  }
4229
4363
  var groupLinked = createContext8(void 0);
4230
4364
  function groupBox(box, id) {
@@ -4232,8 +4366,8 @@ function groupBox(box, id) {
4232
4366
  return group && group.getBoundingClientRect().height > 0 ? group : void 0;
4233
4367
  }
4234
4368
  function Row({ node, selected, onSelect, opening }) {
4235
- const under = node.childrenMessage !== void 0 ? /* @__PURE__ */ jsx56(Line, { message: node.childrenMessage }) : node.children?.length ? node.children.map((child) => /* @__PURE__ */ jsx56(Row, { node: child, selected, onSelect, opening }, child.id)) : node.children === null || node.hasChildren && node.children === void 0 ? /* @__PURE__ */ jsx56(SkeletonList, { rows: 2 }) : void 0;
4236
- return /* @__PURE__ */ jsx56(
4369
+ const under = node.childrenMessage !== void 0 ? /* @__PURE__ */ jsx58(Line, { message: node.childrenMessage }) : node.children?.length ? node.children.map((child) => /* @__PURE__ */ jsx58(Row, { node: child, selected, onSelect, opening }, child.id)) : node.children === null || node.hasChildren && node.children === void 0 ? /* @__PURE__ */ jsx58(SkeletonList, { rows: 2 }) : void 0;
4370
+ return /* @__PURE__ */ jsx58(
4237
4371
  NavItem,
4238
4372
  {
4239
4373
  href: node.href,
@@ -4256,7 +4390,7 @@ function Row({ node, selected, onSelect, opening }) {
4256
4390
  );
4257
4391
  }
4258
4392
  function Group({ group, selected, onSelect, opening, storageKey }) {
4259
- return /* @__PURE__ */ jsx56(
4393
+ return /* @__PURE__ */ jsx58(
4260
4394
  NavTreeSection,
4261
4395
  {
4262
4396
  id: group.id,
@@ -4273,14 +4407,14 @@ function Group({ group, selected, onSelect, opening, storageKey }) {
4273
4407
  storageKey: storageKey ? `${storageKey}.${group.id}` : void 0,
4274
4408
  openFor: opening?.group === group.id ? opening.item : void 0,
4275
4409
  onIntent: group.onIntent,
4276
- children: group.nodes?.map((node) => /* @__PURE__ */ jsx56(Row, { node, selected, onSelect, opening }, node.id))
4410
+ children: group.nodes?.map((node) => /* @__PURE__ */ jsx58(Row, { node, selected, onSelect, opening }, node.id))
4277
4411
  }
4278
4412
  );
4279
4413
  }
4280
4414
  function NavTreeSection({ id, title, message, loading = false, pending = false, trailing, actions, menu, icon, defaultOpen = true, open, onOpenChange, storageKey, openFor, onIntent, children }) {
4281
4415
  const timer = useRef15(void 0);
4282
4416
  useEffect9(() => () => clearTimeout(timer.current), []);
4283
- const [slow, setSlow] = useState15(false);
4417
+ const [slow, setSlow] = useState17(false);
4284
4418
  if (!pending && slow) setSlow(false);
4285
4419
  useEffect9(() => {
4286
4420
  if (!pending) return;
@@ -4290,7 +4424,7 @@ function NavTreeSection({ id, title, message, loading = false, pending = false,
4290
4424
  const intent = onIntent;
4291
4425
  const linkedTo = useContext8(groupLinked);
4292
4426
  const linked = id !== void 0 && linkedTo === id ? id : void 0;
4293
- return /* @__PURE__ */ jsx56(
4427
+ return /* @__PURE__ */ jsx58(
4294
4428
  "div",
4295
4429
  {
4296
4430
  className: "shrink-0 [&+&]:mt-1",
@@ -4301,7 +4435,7 @@ function NavTreeSection({ id, title, message, loading = false, pending = false,
4301
4435
  } : void 0,
4302
4436
  onPointerLeave: intent ? () => clearTimeout(timer.current) : void 0,
4303
4437
  onFocus: intent,
4304
- children: /* @__PURE__ */ jsx56(sectionLinked.Provider, { value: linked, children: /* @__PURE__ */ jsx56(
4438
+ children: /* @__PURE__ */ jsx58(sectionLinked.Provider, { value: linked, children: /* @__PURE__ */ jsx58(
4305
4439
  CollapsibleSection,
4306
4440
  {
4307
4441
  title,
@@ -4318,7 +4452,7 @@ function NavTreeSection({ id, title, message, loading = false, pending = false,
4318
4452
  icon,
4319
4453
  className: "shrink-0",
4320
4454
  contentClassName: "gap-0.5",
4321
- children: /* @__PURE__ */ jsx56(sectionLinked.Provider, { value: void 0, children: message !== void 0 ? /* @__PURE__ */ jsx56(Line, { message }) : loading || slow ? /* @__PURE__ */ jsx56(SkeletonList, { rows: 3 }) : children })
4455
+ children: /* @__PURE__ */ jsx58(sectionLinked.Provider, { value: void 0, children: message !== void 0 ? /* @__PURE__ */ jsx58(Line, { message }) : loading || slow ? /* @__PURE__ */ jsx58(SkeletonList, { rows: 3 }) : children })
4322
4456
  }
4323
4457
  ) })
4324
4458
  }
@@ -4356,12 +4490,12 @@ function NavTree({ title, titleActions, groups, children, selected, selectedPare
4356
4490
  });
4357
4491
  return (
4358
4492
  // `contents`: a box to find the current row in, that lays nothing out — the groups stay the column's own.
4359
- /* @__PURE__ */ jsx56("div", { ref: box, className: "contents", children: /* @__PURE__ */ jsxs40(groupLinked.Provider, { value: selectedGroup, children: [
4360
- title && /* @__PURE__ */ jsx56(SectionHeader, { title, look: "quiet", showActions: "always", actions: titleActions, className: "mt-4 shrink-0" }),
4361
- groups === void 0 ? children : groups === null ? /* @__PURE__ */ jsx56(SkeletonList, { rows: 5 }) : groups.length === 0 ? (
4493
+ /* @__PURE__ */ jsx58("div", { ref: box, className: "contents", children: /* @__PURE__ */ jsxs42(groupLinked.Provider, { value: selectedGroup, children: [
4494
+ title && /* @__PURE__ */ jsx58(SectionHeader, { title, look: "quiet", showActions: "always", actions: titleActions, className: "mt-4 shrink-0" }),
4495
+ groups === void 0 ? children : groups === null ? /* @__PURE__ */ jsx58(SkeletonList, { rows: 5 }) : groups.length === 0 ? (
4362
4496
  // No words, no line: an app that says nothing when it has no groups.
4363
- emptyMessage ? /* @__PURE__ */ jsx56(Line, { message: emptyMessage }) : null
4364
- ) : groups.map((group) => /* @__PURE__ */ jsx56(Group, { group, selected, onSelect, opening, storageKey }, group.id))
4497
+ emptyMessage ? /* @__PURE__ */ jsx58(Line, { message: emptyMessage }) : null
4498
+ ) : groups.map((group) => /* @__PURE__ */ jsx58(Group, { group, selected, onSelect, opening, storageKey }, group.id))
4365
4499
  ] }) })
4366
4500
  );
4367
4501
  }
@@ -4369,7 +4503,7 @@ function NavTree({ title, titleActions, groups, children, selected, selectedPare
4369
4503
  // src/Popover.tsx
4370
4504
  import { useMemo as useMemo4 } from "react";
4371
4505
  import { Popover as BasePopover } from "@base-ui/react/popover";
4372
- import { jsx as jsx57, jsxs as jsxs41 } from "react/jsx-runtime";
4506
+ import { jsx as jsx59, jsxs as jsxs43 } from "react/jsx-runtime";
4373
4507
  var GAP5 = 4;
4374
4508
  var VIEWPORT_PAD5 = 8;
4375
4509
  function Popover({ trigger, anchor, align = "left", side = "bottom", open, onOpenChange, finalFocus, actionsRef, ariaLabel, children, className, contentClassName, maxHeight }) {
@@ -4378,7 +4512,7 @@ function Popover({ trigger, anchor, align = "left", side = "bottom", open, onOpe
4378
4512
  if (anchor instanceof Element || "getBoundingClientRect" in anchor) return anchor;
4379
4513
  return { getBoundingClientRect: () => anchor };
4380
4514
  }, [anchor]);
4381
- return /* @__PURE__ */ jsxs41(
4515
+ return /* @__PURE__ */ jsxs43(
4382
4516
  BasePopover.Root,
4383
4517
  {
4384
4518
  open,
@@ -4386,8 +4520,8 @@ function Popover({ trigger, anchor, align = "left", side = "bottom", open, onOpe
4386
4520
  actionsRef,
4387
4521
  modal: false,
4388
4522
  children: [
4389
- trigger && /* @__PURE__ */ jsx57(BasePopover.Trigger, { render: trigger, disabled: triggerDisabled(trigger) }),
4390
- /* @__PURE__ */ jsx57(BasePopover.Portal, { children: /* @__PURE__ */ jsx57(
4523
+ trigger && /* @__PURE__ */ jsx59(BasePopover.Trigger, { render: trigger, disabled: triggerDisabled(trigger) }),
4524
+ /* @__PURE__ */ jsx59(BasePopover.Portal, { children: /* @__PURE__ */ jsx59(
4391
4525
  BasePopover.Positioner,
4392
4526
  {
4393
4527
  anchor: anchorTarget,
@@ -4396,20 +4530,20 @@ function Popover({ trigger, anchor, align = "left", side = "bottom", open, onOpe
4396
4530
  sideOffset: GAP5,
4397
4531
  collisionPadding: VIEWPORT_PAD5,
4398
4532
  className: "z-50 data-[anchor-hidden]:hidden",
4399
- children: /* @__PURE__ */ jsx57(
4533
+ children: /* @__PURE__ */ jsx59(
4400
4534
  BasePopover.Popup,
4401
4535
  {
4402
4536
  "aria-label": ariaLabel,
4403
4537
  initialFocus: trigger ? void 0 : false,
4404
4538
  finalFocus,
4405
4539
  className: cn("min-w-[180px] outline-none p-0", className),
4406
- render: /* @__PURE__ */ jsx57(MenuPanel, {}),
4407
- children: /* @__PURE__ */ jsx57(
4540
+ render: /* @__PURE__ */ jsx59(MenuPanel, {}),
4541
+ children: /* @__PURE__ */ jsx59(
4408
4542
  ScrollArea,
4409
4543
  {
4410
4544
  viewportClassName: maxHeight ?? "max-h-[var(--available-height)]",
4411
4545
  contentClassName: cn("flex flex-col p-2", contentClassName),
4412
- children: /* @__PURE__ */ jsx57(DividerInPanel.Provider, { value: true, children })
4546
+ children: /* @__PURE__ */ jsx59(DividerInPanel.Provider, { value: true, children })
4413
4547
  }
4414
4548
  )
4415
4549
  }
@@ -4422,8 +4556,8 @@ function Popover({ trigger, anchor, align = "left", side = "bottom", open, onOpe
4422
4556
  }
4423
4557
 
4424
4558
  // src/SuggestionMenu.tsx
4425
- import { useCallback as useCallback5, useEffect as useEffect10, useId as useId5, useImperativeHandle, useMemo as useMemo5, useRef as useRef16, useState as useState16 } from "react";
4426
- import { jsx as jsx58, jsxs as jsxs42 } from "react/jsx-runtime";
4559
+ import { useCallback as useCallback5, useEffect as useEffect10, useId as useId5, useImperativeHandle, useMemo as useMemo5, useRef as useRef16, useState as useState18 } from "react";
4560
+ import { jsx as jsx60, jsxs as jsxs44 } from "react/jsx-runtime";
4427
4561
  function SuggestionMenu({ rect, editorElement, ariaLabel, width, maxHeight, sections, itemKey, row, onSelect, handle }) {
4428
4562
  const last = useRef16(null);
4429
4563
  const anchor = useMemo5(() => {
@@ -4439,7 +4573,7 @@ function SuggestionMenu({ rect, editorElement, ariaLabel, width, maxHeight, sect
4439
4573
  const shown2 = useMemo5(() => sections.filter((section) => section.items.length > 0), [sections]);
4440
4574
  const items = useMemo5(() => shown2.flatMap((section) => section.items), [shown2]);
4441
4575
  const keys = items.map(itemKey).join("\n");
4442
- const [highlight, setHighlight] = useState16(0);
4576
+ const [highlight, setHighlight] = useState18(0);
4443
4577
  const base = useId5();
4444
4578
  const listboxId = `${base}-list`;
4445
4579
  const chosen = useRef16(null);
@@ -4499,7 +4633,7 @@ function SuggestionMenu({ rect, editorElement, ariaLabel, width, maxHeight, sect
4499
4633
  const { label, description, aside, leading, shortcut, hint, size } = row(item);
4500
4634
  return (
4501
4635
  // A row of a list the editor drives from its caret: focus stays in the text, so the row is no Tab stop.
4502
- /* @__PURE__ */ jsx58(
4636
+ /* @__PURE__ */ jsx60(
4503
4637
  MenuItem,
4504
4638
  {
4505
4639
  role: "option",
@@ -4527,22 +4661,22 @@ function SuggestionMenu({ rect, editorElement, ariaLabel, width, maxHeight, sect
4527
4661
  };
4528
4662
  return (
4529
4663
  // finalFocus={false}: focus never left the text, and a list that closes because focus moved elsewhere must not pull it back (71a4577b).
4530
- /* @__PURE__ */ jsx58(Popover, { anchor, open: rect !== null, side: "top", align: "left", className: width, maxHeight, ariaLabel, finalFocus: false, children: /* @__PURE__ */ jsx58("div", { ref: keepFocus, id: listboxId, role: "listbox", "aria-label": ariaLabel, className: "flex flex-col gap-0.5", children: shown2.map((section, i) => /* @__PURE__ */ jsxs42("div", { className: "contents", children: [
4531
- i > 0 && /* @__PURE__ */ jsx58(MenuSeparator, {}),
4532
- section.label ? /* @__PURE__ */ jsx58("div", { role: "group", "aria-label": section.label, children: /* @__PURE__ */ jsx58(MenuSection, { label: section.label, className: section.className, children: section.items.map(drawRow) }) }) : section.items.map(drawRow)
4664
+ /* @__PURE__ */ jsx60(Popover, { anchor, open: rect !== null, side: "top", align: "left", className: width, maxHeight, ariaLabel, finalFocus: false, children: /* @__PURE__ */ jsx60("div", { ref: keepFocus, id: listboxId, role: "listbox", "aria-label": ariaLabel, className: "flex flex-col gap-0.5", children: shown2.map((section, i) => /* @__PURE__ */ jsxs44("div", { className: "contents", children: [
4665
+ i > 0 && /* @__PURE__ */ jsx60(MenuSeparator, {}),
4666
+ section.label ? /* @__PURE__ */ jsx60("div", { role: "group", "aria-label": section.label, children: /* @__PURE__ */ jsx60(MenuSection, { label: section.label, className: section.className, children: section.items.map(drawRow) }) }) : section.items.map(drawRow)
4533
4667
  ] }, section.label ?? i)) }) })
4534
4668
  );
4535
4669
  }
4536
4670
 
4537
4671
  // src/ShowMore.tsx
4538
- import { useLayoutEffect as useLayoutEffect5, useRef as useRef17, useState as useState17 } from "react";
4672
+ import { useLayoutEffect as useLayoutEffect5, useRef as useRef17, useState as useState19 } from "react";
4539
4673
  import { IconChevronDown as IconChevronDown4, IconChevronUp } from "@tabler/icons-react";
4540
- import { jsx as jsx59, jsxs as jsxs43 } from "react/jsx-runtime";
4674
+ import { jsx as jsx61, jsxs as jsxs45 } from "react/jsx-runtime";
4541
4675
  var FADE = "linear-gradient(to top, transparent, black 40px)";
4542
4676
  function ShowMore({ children, maxHeight = 96, contentClassName, className }) {
4543
4677
  const box = useRef17(null);
4544
- const [open, setOpen] = useState17(false);
4545
- const [overflows, setOverflows] = useState17(false);
4678
+ const [open, setOpen] = useState19(false);
4679
+ const [overflows, setOverflows] = useState19(false);
4546
4680
  useLayoutEffect5(() => {
4547
4681
  const el = box.current;
4548
4682
  if (!el) return;
@@ -4554,19 +4688,19 @@ function ShowMore({ children, maxHeight = 96, contentClassName, className }) {
4554
4688
  return () => observer.disconnect();
4555
4689
  }, [maxHeight]);
4556
4690
  const cut = overflows && !open;
4557
- return /* @__PURE__ */ jsxs43("div", { className: cn("flex flex-col items-start", className), children: [
4558
- /* @__PURE__ */ jsx59("div", { ref: box, className: cn("relative w-full", cut && "overflow-hidden", contentClassName), style: cut ? { maxHeight, maskImage: FADE, WebkitMaskImage: FADE } : void 0, onFocus: cut ? () => setOpen(true) : void 0, children }),
4559
- overflows && /* @__PURE__ */ jsx59(Toggle, { open, onToggle: () => setOpen((o) => !o), className: "mt-1" })
4691
+ return /* @__PURE__ */ jsxs45("div", { className: cn("flex flex-col items-start", className), children: [
4692
+ /* @__PURE__ */ jsx61("div", { ref: box, className: cn("relative w-full", cut && "overflow-hidden", contentClassName), style: cut ? { maxHeight, maskImage: FADE, WebkitMaskImage: FADE } : void 0, onFocus: cut ? () => setOpen(true) : void 0, children }),
4693
+ overflows && /* @__PURE__ */ jsx61(Toggle, { open, onToggle: () => setOpen((o) => !o), className: "mt-1" })
4560
4694
  ] });
4561
4695
  }
4562
4696
  function Toggle({ open, onToggle, className }) {
4563
4697
  const Icon = open ? IconChevronUp : IconChevronDown4;
4564
- return /* @__PURE__ */ jsx59(
4698
+ return /* @__PURE__ */ jsx61(
4565
4699
  Button,
4566
4700
  {
4567
4701
  variant: "outlined",
4568
4702
  size: "small",
4569
- leadingIcon: /* @__PURE__ */ jsx59(Icon, { stroke: 1.5, className: "size-3.5" }),
4703
+ leadingIcon: /* @__PURE__ */ jsx61(Icon, { stroke: 1.5, className: "size-3.5" }),
4570
4704
  className,
4571
4705
  "aria-expanded": open,
4572
4706
  onClick: onToggle,
@@ -4577,9 +4711,9 @@ function Toggle({ open, onToggle, className }) {
4577
4711
 
4578
4712
  // src/Toolbar.tsx
4579
4713
  import { Toolbar as BaseToolbar } from "@base-ui/react/toolbar";
4580
- import { jsx as jsx60 } from "react/jsx-runtime";
4714
+ import { jsx as jsx62 } from "react/jsx-runtime";
4581
4715
  function Toolbar({ "aria-label": ariaLabel, orientation = "horizontal", loopFocus = true, surface = true, children, className }) {
4582
- const strip = /* @__PURE__ */ jsx60(
4716
+ const strip = /* @__PURE__ */ jsx62(
4583
4717
  BaseToolbar.Root,
4584
4718
  {
4585
4719
  "aria-label": ariaLabel,
@@ -4590,27 +4724,27 @@ function Toolbar({ "aria-label": ariaLabel, orientation = "horizontal", loopFocu
4590
4724
  }
4591
4725
  );
4592
4726
  if (!surface) return strip;
4593
- return /* @__PURE__ */ jsx60(MenuPanel, { className: "w-fit p-1", children: strip });
4727
+ return /* @__PURE__ */ jsx62(MenuPanel, { className: "w-fit p-1", children: strip });
4594
4728
  }
4595
4729
  function ToolbarButton({ ref, disabled, disabledReason, ...props }) {
4596
- return /* @__PURE__ */ jsx60(
4730
+ return /* @__PURE__ */ jsx62(
4597
4731
  BaseToolbar.Button,
4598
4732
  {
4599
4733
  ref,
4600
4734
  disabled: disabled || !!disabledReason,
4601
4735
  focusableWhenDisabled: true,
4602
- render: /* @__PURE__ */ jsx60(IconButton, { disabled, disabledReason, ...props })
4736
+ render: /* @__PURE__ */ jsx62(IconButton, { disabled, disabledReason, ...props })
4603
4737
  }
4604
4738
  );
4605
4739
  }
4606
4740
  function ToolbarLink({ ref, href, ...props }) {
4607
- return /* @__PURE__ */ jsx60(BaseToolbar.Link, { ref, render: /* @__PURE__ */ jsx60(IconButton, { href, ...props }) });
4741
+ return /* @__PURE__ */ jsx62(BaseToolbar.Link, { ref, render: /* @__PURE__ */ jsx62(IconButton, { href, ...props }) });
4608
4742
  }
4609
4743
  function ToolbarInput({ size, ...props }) {
4610
- return /* @__PURE__ */ jsx60(BaseToolbar.Input, { render: /* @__PURE__ */ jsx60(TextInput, { size }), ...props });
4744
+ return /* @__PURE__ */ jsx62(BaseToolbar.Input, { render: /* @__PURE__ */ jsx62(TextInput, { size }), ...props });
4611
4745
  }
4612
4746
  function ToolbarSeparator({ className }) {
4613
- return /* @__PURE__ */ jsx60(
4747
+ return /* @__PURE__ */ jsx62(
4614
4748
  BaseToolbar.Separator,
4615
4749
  {
4616
4750
  orientation: "vertical",
@@ -4620,9 +4754,9 @@ function ToolbarSeparator({ className }) {
4620
4754
  }
4621
4755
 
4622
4756
  // src/ReactionPicker.tsx
4623
- import { jsx as jsx61 } from "react/jsx-runtime";
4757
+ import { jsx as jsx63 } from "react/jsx-runtime";
4624
4758
  function ReactionPicker({ options, onSelect, "aria-label": ariaLabel = "Reactions", surface = true, className }) {
4625
- return /* @__PURE__ */ jsx61(Toolbar, { "aria-label": ariaLabel, surface, className: cn("gap-0.5", className), children: options.map((option) => (
4759
+ return /* @__PURE__ */ jsx63(Toolbar, { "aria-label": ariaLabel, surface, className: cn("gap-0.5", className), children: options.map((option) => (
4626
4760
  /*
4627
4761
  A `ToolbarButton`, not a button in a tooltip wrapper. The wrapper
4628
4762
  would become the toolbar's item and the button inside it would never
@@ -4632,14 +4766,14 @@ function ReactionPicker({ options, onSelect, "aria-label": ariaLabel = "Reaction
4632
4766
  The tooltip names it for a pointer, `aria-label` for everything else,
4633
4767
  and both say the meaning rather than the glyph.
4634
4768
  */
4635
- /* @__PURE__ */ jsx61(
4769
+ /* @__PURE__ */ jsx63(
4636
4770
  ToolbarButton,
4637
4771
  {
4638
4772
  "aria-label": option.label,
4639
4773
  tooltip: option.label,
4640
4774
  onClick: () => onSelect(option.emoji),
4641
4775
  className: "size-7",
4642
- children: /* @__PURE__ */ jsx61("span", { "aria-hidden": "true", className: "text-h3 leading-none", children: option.emoji })
4776
+ children: /* @__PURE__ */ jsx63("span", { "aria-hidden": "true", className: "text-h3 leading-none", children: option.emoji })
4643
4777
  },
4644
4778
  option.emoji
4645
4779
  )
@@ -4648,23 +4782,23 @@ function ReactionPicker({ options, onSelect, "aria-label": ariaLabel = "Reaction
4648
4782
 
4649
4783
  // src/PreviewCard.tsx
4650
4784
  import { PreviewCard as BasePreviewCard } from "@base-ui/react/preview-card";
4651
- import { jsx as jsx62, jsxs as jsxs44 } from "react/jsx-runtime";
4785
+ import { jsx as jsx64, jsxs as jsxs46 } from "react/jsx-runtime";
4652
4786
  var GAP6 = 12;
4653
4787
  var VIEWPORT_PAD6 = 8;
4654
4788
  var OPEN_DELAY2 = 350;
4655
4789
  var CLOSE_DELAY = 200;
4656
4790
  function PreviewCard({ content, children, side = "right", delay = OPEN_DELAY2, closeDelay = CLOSE_DELAY, className, contentClassName, wrapperClassName }) {
4657
- return /* @__PURE__ */ jsxs44(BasePreviewCard.Root, { children: [
4658
- /* @__PURE__ */ jsx62(
4791
+ return /* @__PURE__ */ jsxs46(BasePreviewCard.Root, { children: [
4792
+ /* @__PURE__ */ jsx64(
4659
4793
  BasePreviewCard.Trigger,
4660
4794
  {
4661
4795
  delay,
4662
4796
  closeDelay,
4663
- render: /* @__PURE__ */ jsx62("span", { className: cn("inline-flex", wrapperClassName) }),
4797
+ render: /* @__PURE__ */ jsx64("span", { className: cn("inline-flex", wrapperClassName) }),
4664
4798
  children
4665
4799
  }
4666
4800
  ),
4667
- /* @__PURE__ */ jsx62(BasePreviewCard.Portal, { children: /* @__PURE__ */ jsx62(
4801
+ /* @__PURE__ */ jsx64(BasePreviewCard.Portal, { children: /* @__PURE__ */ jsx64(
4668
4802
  BasePreviewCard.Positioner,
4669
4803
  {
4670
4804
  side,
@@ -4672,12 +4806,12 @@ function PreviewCard({ content, children, side = "right", delay = OPEN_DELAY2, c
4672
4806
  sideOffset: GAP6,
4673
4807
  collisionPadding: VIEWPORT_PAD6,
4674
4808
  className: "z-50 data-[anchor-hidden]:hidden",
4675
- children: /* @__PURE__ */ jsx62(
4809
+ children: /* @__PURE__ */ jsx64(
4676
4810
  BasePreviewCard.Popup,
4677
4811
  {
4678
4812
  className: cn("w-[360px] p-0 outline-none", className),
4679
- render: /* @__PURE__ */ jsx62(MenuPanel, {}),
4680
- children: /* @__PURE__ */ jsx62(ScrollArea, { viewportClassName: "max-h-[min(300px,var(--available-height))]", contentClassName: cn("flex flex-col gap-3 p-3", contentClassName), children: content })
4813
+ render: /* @__PURE__ */ jsx64(MenuPanel, {}),
4814
+ children: /* @__PURE__ */ jsx64(ScrollArea, { viewportClassName: "max-h-[min(300px,var(--available-height))]", contentClassName: cn("flex flex-col gap-3 p-3", contentClassName), children: content })
4681
4815
  }
4682
4816
  )
4683
4817
  }
@@ -5064,38 +5198,38 @@ function linkStateFrom(object, unread, options) {
5064
5198
 
5065
5199
  // src/LinkParts.tsx
5066
5200
  import { useContext as useContext9 } from "react";
5067
- import { IconCircleCheck, IconCircleDashed as IconCircleDashed2, IconCircleHalf2, IconCircleX, IconFileText, IconMessage2 as IconMessage22 } from "@tabler/icons-react";
5068
- import { jsx as jsx63, jsxs as jsxs45 } from "react/jsx-runtime";
5201
+ import { IconCircleCheck, IconCircleDashed as IconCircleDashed3, IconCircleHalf2, IconCircleX, IconFileText, IconMessage2 as IconMessage22 } from "@tabler/icons-react";
5202
+ import { jsx as jsx65, jsxs as jsxs47 } from "react/jsx-runtime";
5069
5203
  var STATUS_ICON = {
5070
- neutral: { Icon: IconCircleDashed2, tone: "text-text-secondary" },
5204
+ neutral: { Icon: IconCircleDashed3, tone: "text-text-secondary" },
5071
5205
  blue: { Icon: IconCircleHalf2, tone: "text-info-default" },
5072
5206
  green: { Icon: IconCircleCheck, tone: "text-success-default" },
5073
5207
  muted: { Icon: IconCircleX, tone: "text-text-muted" }
5074
5208
  };
5075
5209
  function StatusIcon({ colour }) {
5076
5210
  const { Icon, tone } = STATUS_ICON[colour];
5077
- return /* @__PURE__ */ jsx63(Icon, { size: 14, stroke: 1.5, className: cn("shrink-0", tone), "aria-hidden": true });
5211
+ return /* @__PURE__ */ jsx65(Icon, { size: 14, stroke: 1.5, className: cn("shrink-0", tone), "aria-hidden": true });
5078
5212
  }
5079
5213
  function StatusMark({ status }) {
5080
- return /* @__PURE__ */ jsxs45(WithTooltip, { label: status.label, inline: true, wrapperClassName: "inline-flex shrink-0 items-center", children: [
5081
- /* @__PURE__ */ jsx63(StatusIcon, { colour: status.colour }),
5082
- /* @__PURE__ */ jsx63("span", { className: "sr-only", children: status.label })
5214
+ return /* @__PURE__ */ jsxs47(WithTooltip, { label: status.label, inline: true, wrapperClassName: "inline-flex shrink-0 items-center", children: [
5215
+ /* @__PURE__ */ jsx65(StatusIcon, { colour: status.colour }),
5216
+ /* @__PURE__ */ jsx65("span", { className: "sr-only", children: status.label })
5083
5217
  ] });
5084
5218
  }
5085
5219
  function LinkedIcon({ kind, size = 16, tone = "secondary" }) {
5086
- if (kind === "page") return /* @__PURE__ */ jsx63(IconFileText, { size, stroke: 1.5, className: cn("shrink-0", tone === "secondary" && "text-text-secondary"), "aria-hidden": true });
5087
- return /* @__PURE__ */ jsx63(KindIcon, { kind, size, tone });
5220
+ if (kind === "page") return /* @__PURE__ */ jsx65(IconFileText, { size, stroke: 1.5, className: cn("shrink-0", tone === "secondary" && "text-text-secondary"), "aria-hidden": true });
5221
+ return /* @__PURE__ */ jsx65(KindIcon, { kind, size, tone });
5088
5222
  }
5089
5223
  function LinkKey({ children, tone = "muted" }) {
5090
- return /* @__PURE__ */ jsx63("span", { className: cn("shrink-0 text-caption tabular-nums", tone === "secondary" ? "text-text-secondary" : "text-text-muted"), children });
5224
+ return /* @__PURE__ */ jsx65("span", { className: cn("shrink-0 text-caption tabular-nums", tone === "secondary" ? "text-text-secondary" : "text-text-muted"), children });
5091
5225
  }
5092
5226
  var KIND_NOUN = { issue: "Issue", project: "Project", topic: "Topic", page: "Document" };
5093
5227
  function kindNounOf(linked) {
5094
5228
  return linked.noun ?? KIND_NOUN[linked.kind];
5095
5229
  }
5096
5230
  function LinkTile({ kind, author }) {
5097
- if (author) return /* @__PURE__ */ jsx63(Avatar, { name: author.name, src: author.picture, bot: author.bot, size: 36 });
5098
- return /* @__PURE__ */ jsx63("span", { className: TYPE_TILE_CLASSES, children: /* @__PURE__ */ jsx63(LinkedIcon, { kind }) });
5231
+ if (author) return /* @__PURE__ */ jsx65(Avatar, { name: author.name, src: author.picture, bot: author.bot, size: 36 });
5232
+ return /* @__PURE__ */ jsx65("span", { className: TYPE_TILE_CLASSES, children: /* @__PURE__ */ jsx65(LinkedIcon, { kind }) });
5099
5233
  }
5100
5234
  function ProgressRing({ done, total }) {
5101
5235
  const size = 16;
@@ -5103,10 +5237,10 @@ function ProgressRing({ done, total }) {
5103
5237
  const r = (size - stroke) / 2;
5104
5238
  const c = 2 * Math.PI * r;
5105
5239
  const share = total > 0 ? Math.min(done, total) / total : 0;
5106
- return /* @__PURE__ */ jsx63(WithTooltip, { label: `${done} of ${total} done`, inline: true, wrapperClassName: "inline-flex shrink-0", children: /* @__PURE__ */ jsxs45("span", { className: "inline-flex shrink-0 items-center gap-1.5 text-small tabular-nums text-text-secondary", children: [
5107
- /* @__PURE__ */ jsxs45("svg", { width: size, height: size, viewBox: `0 0 ${size} ${size}`, className: "shrink-0 -rotate-90", "aria-hidden": true, children: [
5108
- /* @__PURE__ */ jsx63("circle", { cx: size / 2, cy: size / 2, r, fill: "none", strokeWidth: stroke, className: "stroke-border-default" }),
5109
- /* @__PURE__ */ jsx63("circle", { cx: size / 2, cy: size / 2, r, fill: "none", strokeWidth: stroke, strokeLinecap: "round", strokeDasharray: `${c * share} ${c}`, className: "stroke-success-default" })
5240
+ return /* @__PURE__ */ jsx65(WithTooltip, { label: `${done} of ${total} done`, inline: true, wrapperClassName: "inline-flex shrink-0", children: /* @__PURE__ */ jsxs47("span", { className: "inline-flex shrink-0 items-center gap-1.5 text-small tabular-nums text-text-secondary", children: [
5241
+ /* @__PURE__ */ jsxs47("svg", { width: size, height: size, viewBox: `0 0 ${size} ${size}`, className: "shrink-0 -rotate-90", "aria-hidden": true, children: [
5242
+ /* @__PURE__ */ jsx65("circle", { cx: size / 2, cy: size / 2, r, fill: "none", strokeWidth: stroke, className: "stroke-border-default" }),
5243
+ /* @__PURE__ */ jsx65("circle", { cx: size / 2, cy: size / 2, r, fill: "none", strokeWidth: stroke, strokeLinecap: "round", strokeDasharray: `${c * share} ${c}`, className: "stroke-success-default" })
5110
5244
  ] }),
5111
5245
  done,
5112
5246
  "/",
@@ -5123,11 +5257,11 @@ function CommentCount({ conversation, noun = "comments" }) {
5123
5257
  const boxed = useContext9(inTheBox);
5124
5258
  const said = countWords(count, noun);
5125
5259
  if (boxed || !href) {
5126
- return /* @__PURE__ */ jsxs45("span", { className: cn("inline-flex h-6 shrink-0 items-center gap-1 px-1.5 text-small tabular-nums", unread ? "font-medium text-text-primary" : "text-text-secondary"), children: [
5127
- /* @__PURE__ */ jsx63(IconMessage22, { size: 14, stroke: 1.5, "aria-hidden": true }),
5128
- /* @__PURE__ */ jsx63("span", { "aria-hidden": true, children: count }),
5129
- /* @__PURE__ */ jsx63("span", { className: "sr-only", children: unread ? `${said}, unread` : said }),
5130
- unread && /* @__PURE__ */ jsx63(UnreadDot, { className: "h-auto w-auto" })
5260
+ return /* @__PURE__ */ jsxs47("span", { className: cn("inline-flex h-6 shrink-0 items-center gap-1 px-1.5 text-small tabular-nums", unread ? "font-medium text-text-primary" : "text-text-secondary"), children: [
5261
+ /* @__PURE__ */ jsx65(IconMessage22, { size: 14, stroke: 1.5, "aria-hidden": true }),
5262
+ /* @__PURE__ */ jsx65("span", { "aria-hidden": true, children: count }),
5263
+ /* @__PURE__ */ jsx65("span", { className: "sr-only", children: unread ? `${said}, unread` : said }),
5264
+ unread && /* @__PURE__ */ jsx65(UnreadDot, { className: "h-auto w-auto" })
5131
5265
  ] });
5132
5266
  }
5133
5267
  return (
@@ -5138,17 +5272,17 @@ function CommentCount({ conversation, noun = "comments" }) {
5138
5272
  * its 6px and the row's gap part it from the faces and the ring beside it (14px to its icon). The count is in
5139
5273
  * the small size (10px).
5140
5274
  */
5141
- /* @__PURE__ */ jsx63("span", { className: cn("relative z-10 inline-flex h-6 shrink-0 rounded-md text-small tabular-nums transition-colors hover:bg-bg-hover", unread ? "font-medium text-text-primary" : "text-text-secondary"), children: /* @__PURE__ */ jsxs45(Link, { href, variant: "plain", className: "flex h-full items-center gap-1 px-1.5", children: [
5142
- /* @__PURE__ */ jsx63(IconMessage22, { size: 14, stroke: 1.5, "aria-hidden": true }),
5143
- /* @__PURE__ */ jsx63("span", { "aria-hidden": true, children: count }),
5144
- /* @__PURE__ */ jsx63("span", { className: "sr-only", children: unread ? `${said}, unread \u2014 open the conversation` : `${said} \u2014 open the conversation` }),
5145
- unread && /* @__PURE__ */ jsx63(UnreadDot, { className: "h-auto w-auto" })
5275
+ /* @__PURE__ */ jsx65("span", { className: cn("relative z-10 inline-flex h-6 shrink-0 rounded-md text-small tabular-nums transition-colors hover:bg-bg-hover", unread ? "font-medium text-text-primary" : "text-text-secondary"), children: /* @__PURE__ */ jsxs47(Link, { href, variant: "plain", className: "flex h-full items-center gap-1 px-1.5", children: [
5276
+ /* @__PURE__ */ jsx65(IconMessage22, { size: 14, stroke: 1.5, "aria-hidden": true }),
5277
+ /* @__PURE__ */ jsx65("span", { "aria-hidden": true, children: count }),
5278
+ /* @__PURE__ */ jsx65("span", { className: "sr-only", children: unread ? `${said}, unread \u2014 open the conversation` : `${said} \u2014 open the conversation` }),
5279
+ unread && /* @__PURE__ */ jsx65(UnreadDot, { className: "h-auto w-auto" })
5146
5280
  ] }) })
5147
5281
  );
5148
5282
  }
5149
5283
  function OwnerFace({ option }) {
5150
5284
  const nobody = !option || option.value === "";
5151
- return /* @__PURE__ */ jsx63(Avatar, { name: nobody ? void 0 : option.label, src: nobody ? void 0 : option.picture, bot: !nobody && option.bot, size: 16 });
5285
+ return /* @__PURE__ */ jsx65(Avatar, { name: nobody ? void 0 : option.label, src: nobody ? void 0 : option.picture, bot: !nobody && option.bot, size: 16 });
5152
5286
  }
5153
5287
  function LinkPickers({ status, owner, ownerLabel = "Owner", readOnly = false, disabledReason }) {
5154
5288
  const statusNow = chosenOf(status);
@@ -5158,11 +5292,11 @@ function LinkPickers({ status, owner, ownerLabel = "Owner", readOnly = false, di
5158
5292
  return (
5159
5293
  // As words, 16px apart, so the status and the person read as two things; as boxed pickers their borders already part them (Katerina, 29 Oct).
5160
5294
  // Boxed, they are see-through as the card they sit in is: a field's fill was a dark hole on a selected message (Katerina, 30 Oct).
5161
- /* @__PURE__ */ jsxs45("span", { className: cn("flex h-6 min-w-0 items-center text-caption text-text-secondary", statusWords || ownerWords ? "gap-4" : "gap-2"), children: [
5162
- status && (statusWords ? /* @__PURE__ */ jsxs45("span", { className: "inline-flex shrink-0 items-center gap-1", children: [
5163
- statusNow?.colour && /* @__PURE__ */ jsx63(StatusIcon, { colour: statusNow.colour }),
5295
+ /* @__PURE__ */ jsxs47("span", { className: cn("flex h-6 min-w-0 items-center text-caption text-text-secondary", statusWords || ownerWords ? "gap-4" : "gap-2"), children: [
5296
+ status && (statusWords ? /* @__PURE__ */ jsxs47("span", { className: "inline-flex shrink-0 items-center gap-1", children: [
5297
+ statusNow?.colour && /* @__PURE__ */ jsx65(StatusIcon, { colour: statusNow.colour }),
5164
5298
  statusNow?.label ?? "No status"
5165
- ] }) : /* @__PURE__ */ jsx63(
5299
+ ] }) : /* @__PURE__ */ jsx65(
5166
5300
  Select,
5167
5301
  {
5168
5302
  size: "small",
@@ -5172,13 +5306,13 @@ function LinkPickers({ status, owner, ownerLabel = "Owner", readOnly = false, di
5172
5306
  onChange: (value) => status.onChange?.(value),
5173
5307
  ariaLabel: "Status",
5174
5308
  disabledReason,
5175
- options: status.options.map((option) => ({ value: option.value, label: option.label, leading: option.colour && /* @__PURE__ */ jsx63(StatusIcon, { colour: option.colour }) }))
5309
+ options: status.options.map((option) => ({ value: option.value, label: option.label, leading: option.colour && /* @__PURE__ */ jsx65(StatusIcon, { colour: option.colour }) }))
5176
5310
  }
5177
5311
  )),
5178
- owner && (ownerWords ? /* @__PURE__ */ jsxs45("span", { className: "inline-flex min-w-0 items-center gap-1", children: [
5179
- /* @__PURE__ */ jsx63(OwnerFace, { option: ownerNow }),
5180
- /* @__PURE__ */ jsx63("span", { className: "truncate", children: ownerNow?.label ?? "Unassigned" })
5181
- ] }) : /* @__PURE__ */ jsx63(
5312
+ owner && (ownerWords ? /* @__PURE__ */ jsxs47("span", { className: "inline-flex min-w-0 items-center gap-1", children: [
5313
+ /* @__PURE__ */ jsx65(OwnerFace, { option: ownerNow }),
5314
+ /* @__PURE__ */ jsx65("span", { className: "truncate", children: ownerNow?.label ?? "Unassigned" })
5315
+ ] }) : /* @__PURE__ */ jsx65(
5182
5316
  Select,
5183
5317
  {
5184
5318
  size: "small",
@@ -5189,7 +5323,7 @@ function LinkPickers({ status, owner, ownerLabel = "Owner", readOnly = false, di
5189
5323
  onChange: (value) => owner.onChange?.(value),
5190
5324
  ariaLabel: ownerLabel,
5191
5325
  disabledReason,
5192
- options: owner.options.map((option) => ({ value: option.value, label: option.label, leading: /* @__PURE__ */ jsx63(OwnerFace, { option }) }))
5326
+ options: owner.options.map((option) => ({ value: option.value, label: option.label, leading: /* @__PURE__ */ jsx65(OwnerFace, { option }) }))
5193
5327
  }
5194
5328
  ))
5195
5329
  ] })
@@ -5204,10 +5338,10 @@ import { useContext as useContext11 } from "react";
5204
5338
 
5205
5339
  // src/LinkRow.tsx
5206
5340
  import { useContext as useContext10 } from "react";
5207
- import { jsx as jsx64, jsxs as jsxs46 } from "react/jsx-runtime";
5341
+ import { jsx as jsx66, jsxs as jsxs48 } from "react/jsx-runtime";
5208
5342
  var ROW_CLASSES2 = "flex items-center gap-3 p-1.5 pr-3";
5209
5343
  function LinkUnavailable({ kind, noun, named: named2 = false, card = false, deleted = false, failed = false }) {
5210
- return /* @__PURE__ */ jsx64(UnavailableRow, { kind, words: unavailableWords(noun, { named: named2, deleted, failed }), card });
5344
+ return /* @__PURE__ */ jsx66(UnavailableRow, { kind, words: unavailableWords(noun, { named: named2, deleted, failed }), card });
5211
5345
  }
5212
5346
  function unavailableWords(noun, { named: named2 = false, deleted = false, failed = false } = {}) {
5213
5347
  const word = named2 ? `file in ${noun}` : /^[A-Z][a-z]*$/.test(noun) ? noun.toLowerCase() : noun;
@@ -5215,131 +5349,131 @@ function unavailableWords(noun, { named: named2 = false, deleted = false, failed
5215
5349
  }
5216
5350
  function UnavailableRow({ kind, words, href, card = false }) {
5217
5351
  const wide = useContext10(inTheBox);
5218
- return /* @__PURE__ */ jsxs46(Card, { fill: wide ? "elevated" : "inset", className: cn(card ? "flex items-center gap-3 p-3" : ROW_CLASSES2, "max-w-[480px]"), children: [
5219
- /* @__PURE__ */ jsx64("span", { className: TYPE_TILE_CLASSES, children: /* @__PURE__ */ jsx64(LinkedIcon, { kind }) }),
5220
- /* @__PURE__ */ jsx64("span", { className: "min-w-0 flex-1 truncate text-body-2 text-text-muted", children: href && !wide ? /* @__PURE__ */ jsx64(Link, { href, variant: "quiet", children: words }) : words })
5352
+ return /* @__PURE__ */ jsxs48(Card, { fill: wide ? "elevated" : "inset", className: cn(card ? "flex items-center gap-3 p-3" : ROW_CLASSES2, "max-w-[480px]"), children: [
5353
+ /* @__PURE__ */ jsx66("span", { className: TYPE_TILE_CLASSES, children: /* @__PURE__ */ jsx66(LinkedIcon, { kind }) }),
5354
+ /* @__PURE__ */ jsx66("span", { className: "min-w-0 flex-1 truncate text-body-2 text-text-muted", children: href && !wide ? /* @__PURE__ */ jsx66(Link, { href, variant: "quiet", children: words }) : words })
5221
5355
  ] });
5222
5356
  }
5223
5357
  function linkMetaOf(linked, withWhen = false) {
5224
5358
  return [linked.key, kindNounOf(linked), linked.archived ? "Archived" : void 0, linked.subtitle, withWhen ? linked.updated : void 0].filter(Boolean).join(" \xB7 ");
5225
5359
  }
5226
5360
  function WrittenUrl({ url, block = false }) {
5227
- const link = /* @__PURE__ */ jsx64(Link, { href: url, external: true, children: url });
5228
- return block ? /* @__PURE__ */ jsx64("span", { className: "block min-w-0 truncate text-body-2", children: link }) : link;
5361
+ const link = /* @__PURE__ */ jsx66(Link, { href: url, external: true, children: url });
5362
+ return block ? /* @__PURE__ */ jsx66("span", { className: "block min-w-0 truncate text-body-2", children: link }) : link;
5229
5363
  }
5230
5364
  function LinkRow({ link, preview = true }) {
5231
5365
  const width = "max-w-[480px]";
5232
5366
  if (link.state === "loading") {
5233
- return /* @__PURE__ */ jsx64("div", { className: "animate-skeleton-in", "aria-busy": true, children: /* @__PURE__ */ jsxs46(Card, { fill: "inset", "aria-hidden": true, className: cn(ROW_CLASSES2, width), children: [
5234
- /* @__PURE__ */ jsx64("span", { className: TYPE_TILE_CLASSES, children: /* @__PURE__ */ jsx64(LinkedIcon, { kind: link.kind }) }),
5235
- /* @__PURE__ */ jsxs46("span", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
5236
- /* @__PURE__ */ jsx64(SkeletonBar, { on: "inset", className: "h-3 w-2/5" }),
5237
- /* @__PURE__ */ jsx64(SkeletonBar, { on: "inset", className: "h-2.5 w-1/4" })
5367
+ return /* @__PURE__ */ jsx66("div", { className: "animate-skeleton-in", "aria-busy": true, children: /* @__PURE__ */ jsxs48(Card, { fill: "inset", "aria-hidden": true, className: cn(ROW_CLASSES2, width), children: [
5368
+ /* @__PURE__ */ jsx66("span", { className: TYPE_TILE_CLASSES, children: /* @__PURE__ */ jsx66(LinkedIcon, { kind: link.kind }) }),
5369
+ /* @__PURE__ */ jsxs48("span", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
5370
+ /* @__PURE__ */ jsx66(SkeletonBar, { on: "inset", className: "h-3 w-2/5" }),
5371
+ /* @__PURE__ */ jsx66(SkeletonBar, { on: "inset", className: "h-2.5 w-1/4" })
5238
5372
  ] })
5239
5373
  ] }) });
5240
5374
  }
5241
5375
  if (link.state === "unavailable") {
5242
- if (link.url) return /* @__PURE__ */ jsx64(WrittenUrl, { url: link.url, block: true });
5243
- return /* @__PURE__ */ jsx64(LinkUnavailable, { kind: link.kind, noun: link.noun, named: link.named, deleted: link.deleted, failed: link.failed });
5376
+ if (link.url) return /* @__PURE__ */ jsx66(WrittenUrl, { url: link.url, block: true });
5377
+ return /* @__PURE__ */ jsx66(LinkUnavailable, { kind: link.kind, noun: link.noun, named: link.named, deleted: link.deleted, failed: link.failed });
5244
5378
  }
5245
5379
  const { linked } = link;
5246
5380
  const status = chosenOf(linked.status);
5247
5381
  const owner = chosenOf(linked.owner);
5248
5382
  const said = linked.kind === "message" ? linked.author : void 0;
5249
5383
  const meta = said ? "" : linkMetaOf(linked, true) || linked.summary;
5250
- const row = /* @__PURE__ */ jsxs46(Card, { fill: "inset", hover: "hairline", className: cn("relative", ROW_CLASSES2, width), children: [
5251
- /* @__PURE__ */ jsx64(LinkTile, { kind: linked.kind, author: said }),
5384
+ const row = /* @__PURE__ */ jsxs48(Card, { fill: "inset", hover: "hairline", className: cn("relative", ROW_CLASSES2, width), children: [
5385
+ /* @__PURE__ */ jsx66(LinkTile, { kind: linked.kind, author: said }),
5252
5386
  said ? (
5253
5387
  // Words a person wrote, on one line, as a quote is cut to one (Katerina, 30 Oct): the face, the name, the words
5254
5388
  // cut to fit, the time.
5255
- /* @__PURE__ */ jsxs46("span", { className: "flex min-w-0 flex-1 items-baseline gap-2", children: [
5256
- /* @__PURE__ */ jsx64("span", { className: "contents text-body-2-strong text-text-primary", children: linked.href ? /* @__PURE__ */ jsx64(Link, { href: linked.href, variant: "quiet", cover: true, truncate: true, className: "min-w-0", children: said.name }) : /* @__PURE__ */ jsx64("span", { className: "min-w-0 truncate", children: said.name }) }),
5257
- linked.body && /* @__PURE__ */ jsx64("span", { className: "min-w-0 flex-1 truncate text-caption text-text-secondary", children: linked.body }),
5258
- linked.updated && /* @__PURE__ */ jsx64("span", { className: cn("ml-auto shrink-0 text-caption text-text-muted", TIME_CLASSES), children: linked.updated })
5389
+ /* @__PURE__ */ jsxs48("span", { className: "flex min-w-0 flex-1 items-baseline gap-2", children: [
5390
+ /* @__PURE__ */ jsx66("span", { className: "contents text-body-2-strong text-text-primary", children: linked.href ? /* @__PURE__ */ jsx66(Link, { href: linked.href, variant: "quiet", cover: true, truncate: true, className: "min-w-0", children: said.name }) : /* @__PURE__ */ jsx66("span", { className: "min-w-0 truncate", children: said.name }) }),
5391
+ linked.body && /* @__PURE__ */ jsx66("span", { className: "min-w-0 flex-1 truncate text-caption text-text-secondary", children: linked.body }),
5392
+ linked.updated && /* @__PURE__ */ jsx66("span", { className: cn("ml-auto shrink-0 text-caption text-text-muted", TIME_CLASSES), children: linked.updated })
5259
5393
  ] })
5260
- ) : /* @__PURE__ */ jsxs46("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
5261
- /* @__PURE__ */ jsx64("span", { className: "contents text-body-2-strong text-text-primary", children: linked.href ? /* @__PURE__ */ jsx64(Link, { href: linked.href, variant: "quiet", cover: true, truncate: true, children: linked.title }) : /* @__PURE__ */ jsx64("span", { className: "truncate", children: linked.title }) }),
5262
- meta && /* @__PURE__ */ jsx64("span", { className: "truncate text-caption text-text-secondary", children: meta })
5394
+ ) : /* @__PURE__ */ jsxs48("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
5395
+ /* @__PURE__ */ jsx66("span", { className: "contents text-body-2-strong text-text-primary", children: linked.href ? /* @__PURE__ */ jsx66(Link, { href: linked.href, variant: "quiet", cover: true, truncate: true, children: linked.title }) : /* @__PURE__ */ jsx66("span", { className: "truncate", children: linked.title }) }),
5396
+ meta && /* @__PURE__ */ jsx66("span", { className: "truncate text-caption text-text-secondary", children: meta })
5263
5397
  ] }),
5264
- /* @__PURE__ */ jsxs46("span", { className: "flex h-[19.6px] shrink-0 items-center gap-2 self-start", children: [
5265
- linked.done ? /* @__PURE__ */ jsx64(ProgressRing, { done: linked.done.done, total: linked.done.total }) : status?.colour && /* @__PURE__ */ jsx64(StatusMark, { status: { label: status.label, colour: status.colour } }),
5266
- linked.conversation && /* @__PURE__ */ jsx64(CommentCount, { conversation: linked.conversation, noun: linked.conversation.noun }),
5267
- owner && /* @__PURE__ */ jsx64(Avatar, { name: owner.label, src: owner.picture, bot: owner.bot, size: 16 }),
5268
- linked.members && /* @__PURE__ */ jsx64(AvatarGroup, { members: linked.members, size: 16, on: "inset" }),
5269
- linked.authors && /* @__PURE__ */ jsx64(AvatarGroup, { members: linked.authors, size: 16, on: "inset" })
5398
+ /* @__PURE__ */ jsxs48("span", { className: "flex h-[19.6px] shrink-0 items-center gap-2 self-start", children: [
5399
+ linked.done ? /* @__PURE__ */ jsx66(ProgressRing, { done: linked.done.done, total: linked.done.total }) : status?.colour && /* @__PURE__ */ jsx66(StatusMark, { status: { label: status.label, colour: status.colour } }),
5400
+ linked.conversation && /* @__PURE__ */ jsx66(CommentCount, { conversation: linked.conversation, noun: linked.conversation.noun }),
5401
+ owner && /* @__PURE__ */ jsx66(Avatar, { name: owner.label, src: owner.picture, bot: owner.bot, size: 16 }),
5402
+ linked.members && /* @__PURE__ */ jsx66(AvatarGroup, { members: linked.members, size: 16, on: "inset" }),
5403
+ linked.authors && /* @__PURE__ */ jsx66(AvatarGroup, { members: linked.authors, size: 16, on: "inset" })
5270
5404
  ] })
5271
5405
  ] });
5272
- return preview ? /* @__PURE__ */ jsx64(LinkPreview, { linked, block: true, children: row }) : row;
5406
+ return preview ? /* @__PURE__ */ jsx66(LinkPreview, { linked, block: true, children: row }) : row;
5273
5407
  }
5274
5408
 
5275
5409
  // src/LinkCard.tsx
5276
- import { Fragment as Fragment17, jsx as jsx65, jsxs as jsxs47 } from "react/jsx-runtime";
5410
+ import { Fragment as Fragment17, jsx as jsx67, jsxs as jsxs49 } from "react/jsx-runtime";
5277
5411
  var CARD_CLASSES = "flex flex-col gap-3 p-3";
5278
5412
  function CardLink({ href, truncate = false, className, children }) {
5279
5413
  const boxed = useContext11(inTheBox);
5280
- if (boxed || !href) return /* @__PURE__ */ jsx65("span", { className: cn(truncate && "truncate", className), children });
5281
- return /* @__PURE__ */ jsx65(Link, { href, variant: "quiet", truncate, className, children });
5414
+ if (boxed || !href) return /* @__PURE__ */ jsx67("span", { className: cn(truncate && "truncate", className), children });
5415
+ return /* @__PURE__ */ jsx67(Link, { href, variant: "quiet", truncate, className, children });
5282
5416
  }
5283
5417
  function LinkCard({ link, readOnly = false, bare = false }) {
5284
5418
  const boxed = useContext11(inTheBox);
5285
- if (link.state === "loading") return /* @__PURE__ */ jsx65(LinkCardLoading, { kind: link.kind, shape: link.shape });
5419
+ if (link.state === "loading") return /* @__PURE__ */ jsx67(LinkCardLoading, { kind: link.kind, shape: link.shape });
5286
5420
  if (link.state === "unavailable") {
5287
- if (link.url) return /* @__PURE__ */ jsx65(WrittenUrl, { url: link.url, block: true });
5288
- return /* @__PURE__ */ jsx65(LinkUnavailable, { kind: link.kind, noun: link.noun, named: link.named, deleted: link.deleted, failed: link.failed, card: true });
5421
+ if (link.url) return /* @__PURE__ */ jsx67(WrittenUrl, { url: link.url, block: true });
5422
+ return /* @__PURE__ */ jsx67(LinkUnavailable, { kind: link.kind, noun: link.noun, named: link.named, deleted: link.deleted, failed: link.failed, card: true });
5289
5423
  }
5290
5424
  const { linked } = link;
5291
- const body = linked.kind === "message" && linked.author ? /* @__PURE__ */ jsx65(SaidBody, { linked }) : /* @__PURE__ */ jsx65(CardBody, { linked, readOnly: readOnly || boxed });
5292
- if (bare) return /* @__PURE__ */ jsx65("div", { className: CARD_CLASSES, children: body });
5293
- return /* @__PURE__ */ jsx65(Card, { fill: boxed ? "elevated" : "inset", className: cn(CARD_CLASSES, "max-w-[480px]"), children: body });
5425
+ const body = linked.kind === "message" && linked.author ? /* @__PURE__ */ jsx67(SaidBody, { linked }) : /* @__PURE__ */ jsx67(CardBody, { linked, readOnly: readOnly || boxed });
5426
+ if (bare) return /* @__PURE__ */ jsx67("div", { className: CARD_CLASSES, children: body });
5427
+ return /* @__PURE__ */ jsx67(Card, { fill: boxed ? "elevated" : "inset", className: cn(CARD_CLASSES, "max-w-[480px]"), children: body });
5294
5428
  }
5295
5429
  function CardBody({ linked, readOnly }) {
5296
5430
  const boxed = useContext11(inTheBox);
5297
5431
  const on = boxed ? "elevated" : "inset";
5298
5432
  const meta = linkMetaOf(linked);
5299
5433
  const footed = Boolean(linked.status || linked.owner || linked.authors || linked.updated);
5300
- return /* @__PURE__ */ jsxs47(Fragment17, { children: [
5301
- /* @__PURE__ */ jsxs47("div", { className: "flex items-center gap-3", children: [
5302
- /* @__PURE__ */ jsx65(LinkTile, { kind: linked.kind }),
5303
- /* @__PURE__ */ jsxs47("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
5304
- /* @__PURE__ */ jsx65("span", { className: "block min-w-0 text-body-2-strong text-text-primary", children: /* @__PURE__ */ jsx65(CardLink, { href: linked.href, truncate: true, className: "block", children: linked.title }) }),
5305
- meta && /* @__PURE__ */ jsx65("span", { className: "truncate text-caption text-text-secondary", children: meta })
5434
+ return /* @__PURE__ */ jsxs49(Fragment17, { children: [
5435
+ /* @__PURE__ */ jsxs49("div", { className: "flex items-center gap-3", children: [
5436
+ /* @__PURE__ */ jsx67(LinkTile, { kind: linked.kind }),
5437
+ /* @__PURE__ */ jsxs49("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
5438
+ /* @__PURE__ */ jsx67("span", { className: "block min-w-0 text-body-2-strong text-text-primary", children: /* @__PURE__ */ jsx67(CardLink, { href: linked.href, truncate: true, className: "block", children: linked.title }) }),
5439
+ meta && /* @__PURE__ */ jsx67("span", { className: "truncate text-caption text-text-secondary", children: meta })
5306
5440
  ] }),
5307
5441
  (linked.done || linked.conversation || linked.members) && // On the title's line, not halfway down the header: the ring, the count, the faces, as a row's (Katerina, 30 Oct).
5308
- /* @__PURE__ */ jsxs47("span", { className: "flex h-[19.6px] shrink-0 items-center gap-2 self-start", children: [
5309
- linked.done && /* @__PURE__ */ jsx65(ProgressRing, { done: linked.done.done, total: linked.done.total }),
5310
- linked.conversation && /* @__PURE__ */ jsx65(CommentCount, { conversation: linked.conversation, noun: linked.conversation.noun }),
5311
- linked.members && /* @__PURE__ */ jsx65(AvatarGroup, { members: linked.members, size: 16, on })
5442
+ /* @__PURE__ */ jsxs49("span", { className: "flex h-[19.6px] shrink-0 items-center gap-2 self-start", children: [
5443
+ linked.done && /* @__PURE__ */ jsx67(ProgressRing, { done: linked.done.done, total: linked.done.total }),
5444
+ linked.conversation && /* @__PURE__ */ jsx67(CommentCount, { conversation: linked.conversation, noun: linked.conversation.noun }),
5445
+ linked.members && /* @__PURE__ */ jsx67(AvatarGroup, { members: linked.members, size: 16, on })
5312
5446
  ] })
5313
5447
  ] }),
5314
- linked.summary && /* @__PURE__ */ jsx65("p", { className: "line-clamp-2 text-body-2 text-text-secondary", children: linked.summary }),
5448
+ linked.summary && /* @__PURE__ */ jsx67("p", { className: "line-clamp-2 text-body-2 text-text-secondary", children: linked.summary }),
5315
5449
  linked.children && linked.children.length > 0 && // In a box of their own, a hairline between them, as the card first drew them (Katerina, 29 Oct: "add back the borders").
5316
- /* @__PURE__ */ jsx65("div", { className: "flex flex-col divide-y divide-border-subtle rounded-md border border-border-subtle leaf:divide-border-strong leaf:border-border-strong", children: linked.children.map((child) => /* @__PURE__ */ jsxs47("div", { className: cn("relative flex h-8 items-center gap-2 px-2", !boxed && "hover:bg-bg-active"), children: [
5317
- /* @__PURE__ */ jsx65(StatusMark, { status: child.status }),
5318
- child.key && /* @__PURE__ */ jsx65(LinkKey, { children: child.key }),
5319
- /* @__PURE__ */ jsx65("span", { className: "contents text-body-2 text-text-primary", children: boxed || !child.href ? /* @__PURE__ */ jsx65("span", { className: "min-w-0 flex-1 truncate", children: child.title }) : /* @__PURE__ */ jsx65(Link, { href: child.href, variant: "quiet", cover: true, truncate: true, className: "min-w-0 flex-1", children: child.title }) }),
5320
- child.owner ? /* @__PURE__ */ jsx65(Avatar, { name: child.owner.name, src: child.owner.picture, bot: child.owner.bot, size: 16 }) : /* @__PURE__ */ jsx65("span", { className: "size-4 shrink-0", "aria-hidden": true })
5450
+ /* @__PURE__ */ jsx67("div", { className: "flex flex-col divide-y divide-border-subtle rounded-md border border-border-subtle leaf:divide-border-strong leaf:border-border-strong", children: linked.children.map((child) => /* @__PURE__ */ jsxs49("div", { className: cn("relative flex h-8 items-center gap-2 px-2", !boxed && "hover:bg-bg-active"), children: [
5451
+ /* @__PURE__ */ jsx67(StatusMark, { status: child.status }),
5452
+ child.key && /* @__PURE__ */ jsx67(LinkKey, { children: child.key }),
5453
+ /* @__PURE__ */ jsx67("span", { className: "contents text-body-2 text-text-primary", children: boxed || !child.href ? /* @__PURE__ */ jsx67("span", { className: "min-w-0 flex-1 truncate", children: child.title }) : /* @__PURE__ */ jsx67(Link, { href: child.href, variant: "quiet", cover: true, truncate: true, className: "min-w-0 flex-1", children: child.title }) }),
5454
+ child.owner ? /* @__PURE__ */ jsx67(Avatar, { name: child.owner.name, src: child.owner.picture, bot: child.owner.bot, size: 16 }) : /* @__PURE__ */ jsx67("span", { className: "size-4 shrink-0", "aria-hidden": true })
5321
5455
  ] }, child.id)) }),
5322
5456
  linked.latest && // 12px between the words "Latest conversation" and the quote they name (Katerina, 29 Oct).
5323
- /* @__PURE__ */ jsxs47("div", { className: "flex flex-col gap-3", children: [
5324
- /* @__PURE__ */ jsx65("span", { className: "text-caption text-text-muted", children: "Latest conversation" }),
5325
- /* @__PURE__ */ jsxs47("div", { className: cn("flex flex-col gap-1", QUOTE_BAR_CLASSES), children: [
5326
- /* @__PURE__ */ jsxs47("span", { className: "flex items-center gap-2 text-caption", children: [
5327
- /* @__PURE__ */ jsx65(Avatar, { name: linked.latest.author.name, src: linked.latest.author.picture, bot: linked.latest.author.bot, size: 16 }),
5328
- /* @__PURE__ */ jsx65("span", { className: "text-text-primary", children: linked.latest.author.name }),
5329
- /* @__PURE__ */ jsx65("span", { className: cn("text-text-muted", TIME_CLASSES), children: linked.latest.at })
5457
+ /* @__PURE__ */ jsxs49("div", { className: "flex flex-col gap-3", children: [
5458
+ /* @__PURE__ */ jsx67("span", { className: "text-caption text-text-muted", children: "Latest conversation" }),
5459
+ /* @__PURE__ */ jsxs49("div", { className: cn("flex flex-col gap-1", QUOTE_BAR_CLASSES), children: [
5460
+ /* @__PURE__ */ jsxs49("span", { className: "flex items-center gap-2 text-caption", children: [
5461
+ /* @__PURE__ */ jsx67(Avatar, { name: linked.latest.author.name, src: linked.latest.author.picture, bot: linked.latest.author.bot, size: 16 }),
5462
+ /* @__PURE__ */ jsx67("span", { className: "text-text-primary", children: linked.latest.author.name }),
5463
+ /* @__PURE__ */ jsx67("span", { className: cn("text-text-muted", TIME_CLASSES), children: linked.latest.at })
5330
5464
  ] }),
5331
- /* @__PURE__ */ jsx65("p", { className: "line-clamp-2 text-body-2 text-text-secondary", children: linked.latest.body })
5465
+ /* @__PURE__ */ jsx67("p", { className: "line-clamp-2 text-body-2 text-text-secondary", children: linked.latest.body })
5332
5466
  ] })
5333
5467
  ] }),
5334
- footed && /* @__PURE__ */ jsxs47("div", { className: "flex min-h-6 items-center gap-2", children: [
5335
- (linked.status || linked.owner) && /* @__PURE__ */ jsx65(LinkPickers, { status: linked.status, owner: linked.owner, ownerLabel: linked.ownerLabel, readOnly }),
5336
- linked.authors ? /* @__PURE__ */ jsxs47("span", { className: "flex min-w-0 items-center gap-2 text-caption text-text-secondary", children: [
5337
- /* @__PURE__ */ jsx65(AvatarGroup, { members: linked.authors, size: 16, on }),
5338
- linked.updated && /* @__PURE__ */ jsxs47("span", { className: "shrink-0 italic", children: [
5468
+ footed && /* @__PURE__ */ jsxs49("div", { className: "flex min-h-6 items-center gap-2", children: [
5469
+ (linked.status || linked.owner) && /* @__PURE__ */ jsx67(LinkPickers, { status: linked.status, owner: linked.owner, ownerLabel: linked.ownerLabel, readOnly }),
5470
+ linked.authors ? /* @__PURE__ */ jsxs49("span", { className: "flex min-w-0 items-center gap-2 text-caption text-text-secondary", children: [
5471
+ /* @__PURE__ */ jsx67(AvatarGroup, { members: linked.authors, size: 16, on }),
5472
+ linked.updated && /* @__PURE__ */ jsxs49("span", { className: "shrink-0 italic", children: [
5339
5473
  "Updated ",
5340
5474
  linked.updated
5341
5475
  ] })
5342
- ] }) : !linked.status && !linked.owner && linked.updated && /* @__PURE__ */ jsxs47("span", { className: "text-caption italic text-text-secondary", children: [
5476
+ ] }) : !linked.status && !linked.owner && linked.updated && /* @__PURE__ */ jsxs49("span", { className: "text-caption italic text-text-secondary", children: [
5343
5477
  "Updated ",
5344
5478
  linked.updated
5345
5479
  ] })
@@ -5348,13 +5482,13 @@ function CardBody({ linked, readOnly }) {
5348
5482
  }
5349
5483
  function SaidBody({ linked }) {
5350
5484
  const author = linked.author;
5351
- return /* @__PURE__ */ jsxs47(Fragment17, { children: [
5352
- /* @__PURE__ */ jsxs47("div", { className: "flex items-center gap-2", children: [
5353
- /* @__PURE__ */ jsx65(Avatar, { name: author.name, src: author.picture, bot: author.bot, size: 24 }),
5354
- /* @__PURE__ */ jsx65("span", { className: "text-body-2-strong text-text-primary", children: linked.updated ? author.name : /* @__PURE__ */ jsx65(CardLink, { href: linked.href, children: author.name }) }),
5355
- linked.updated && /* @__PURE__ */ jsx65("span", { className: cn("text-caption text-text-muted", TIME_CLASSES), children: /* @__PURE__ */ jsx65(CardLink, { href: linked.href, children: linked.updated }) })
5485
+ return /* @__PURE__ */ jsxs49(Fragment17, { children: [
5486
+ /* @__PURE__ */ jsxs49("div", { className: "flex items-center gap-2", children: [
5487
+ /* @__PURE__ */ jsx67(Avatar, { name: author.name, src: author.picture, bot: author.bot, size: 24 }),
5488
+ /* @__PURE__ */ jsx67("span", { className: "text-body-2-strong text-text-primary", children: linked.updated ? author.name : /* @__PURE__ */ jsx67(CardLink, { href: linked.href, children: author.name }) }),
5489
+ linked.updated && /* @__PURE__ */ jsx67("span", { className: cn("text-caption text-text-muted", TIME_CLASSES), children: /* @__PURE__ */ jsx67(CardLink, { href: linked.href, children: linked.updated }) })
5356
5490
  ] }),
5357
- /* @__PURE__ */ jsx65("p", { className: "line-clamp-4 text-body-2 text-text-secondary", children: linked.body ?? linked.title })
5491
+ /* @__PURE__ */ jsx67("p", { className: "line-clamp-4 text-body-2 text-text-secondary", children: linked.body ?? linked.title })
5358
5492
  ] });
5359
5493
  }
5360
5494
  var KIND_SHAPE = {
@@ -5368,37 +5502,37 @@ var KIND_SHAPE = {
5368
5502
  function LinkCardLoading({ kind, shape }) {
5369
5503
  const { subtitle = false, summary = true, rows = 0, latest = false, ring = false, footer = "line" } = shape ?? KIND_SHAPE[kind];
5370
5504
  const boxed = useContext11(inTheBox);
5371
- return /* @__PURE__ */ jsx65("div", { className: "animate-skeleton-in", "aria-busy": true, children: /* @__PURE__ */ jsxs47(Card, { fill: boxed ? "elevated" : "inset", "aria-hidden": true, className: cn(CARD_CLASSES, "max-w-[480px]"), children: [
5372
- /* @__PURE__ */ jsxs47("div", { className: "flex items-center gap-3", children: [
5373
- /* @__PURE__ */ jsx65("span", { className: TYPE_TILE_CLASSES, children: /* @__PURE__ */ jsx65(LinkedIcon, { kind }) }),
5374
- /* @__PURE__ */ jsxs47("span", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
5375
- /* @__PURE__ */ jsx65(SkeletonBar, { on: "inset", className: "h-3.5 w-1/2" }),
5376
- subtitle && /* @__PURE__ */ jsx65(SkeletonBar, { on: "inset", className: "h-2.5 w-20" })
5505
+ return /* @__PURE__ */ jsx67("div", { className: "animate-skeleton-in", "aria-busy": true, children: /* @__PURE__ */ jsxs49(Card, { fill: boxed ? "elevated" : "inset", "aria-hidden": true, className: cn(CARD_CLASSES, "max-w-[480px]"), children: [
5506
+ /* @__PURE__ */ jsxs49("div", { className: "flex items-center gap-3", children: [
5507
+ /* @__PURE__ */ jsx67("span", { className: TYPE_TILE_CLASSES, children: /* @__PURE__ */ jsx67(LinkedIcon, { kind }) }),
5508
+ /* @__PURE__ */ jsxs49("span", { className: "flex min-w-0 flex-1 flex-col gap-1.5", children: [
5509
+ /* @__PURE__ */ jsx67(SkeletonBar, { on: "inset", className: "h-3.5 w-1/2" }),
5510
+ subtitle && /* @__PURE__ */ jsx67(SkeletonBar, { on: "inset", className: "h-2.5 w-20" })
5377
5511
  ] }),
5378
- ring && /* @__PURE__ */ jsx65(SkeletonBar, { on: "inset", shape: "round", className: "size-4 self-start" })
5512
+ ring && /* @__PURE__ */ jsx67(SkeletonBar, { on: "inset", shape: "round", className: "size-4 self-start" })
5379
5513
  ] }),
5380
- summary && /* @__PURE__ */ jsx65("div", { className: "flex h-[19.6px] items-center", children: /* @__PURE__ */ jsx65(SkeletonBar, { on: "inset", className: "h-3 w-4/5" }) }),
5381
- rows > 0 && /* @__PURE__ */ jsx65("div", { className: "flex flex-col divide-y divide-border-subtle rounded-md border border-border-subtle leaf:divide-border-strong leaf:border-border-strong", children: Array.from({ length: rows }, (_, i) => /* @__PURE__ */ jsx65("div", { className: "flex h-8 items-center px-2", children: /* @__PURE__ */ jsx65(SkeletonBar, { on: "inset", className: "h-3 w-1/3" }) }, i)) }),
5382
- latest && /* @__PURE__ */ jsxs47("div", { className: "flex flex-col gap-3", children: [
5383
- /* @__PURE__ */ jsx65("div", { className: "flex h-[14.4px] items-center", children: /* @__PURE__ */ jsx65(SkeletonBar, { on: "inset", className: "h-2.5 w-28" }) }),
5384
- /* @__PURE__ */ jsxs47("div", { className: cn("flex h-[57.6px] flex-col justify-center gap-2", QUOTE_BAR_CLASSES), children: [
5385
- /* @__PURE__ */ jsx65(SkeletonBar, { on: "inset", className: "h-2.5 w-24" }),
5386
- /* @__PURE__ */ jsx65(SkeletonBar, { on: "inset", className: "h-3 w-full" }),
5387
- /* @__PURE__ */ jsx65(SkeletonBar, { on: "inset", className: "h-3 w-3/5" })
5514
+ summary && /* @__PURE__ */ jsx67("div", { className: "flex h-[19.6px] items-center", children: /* @__PURE__ */ jsx67(SkeletonBar, { on: "inset", className: "h-3 w-4/5" }) }),
5515
+ rows > 0 && /* @__PURE__ */ jsx67("div", { className: "flex flex-col divide-y divide-border-subtle rounded-md border border-border-subtle leaf:divide-border-strong leaf:border-border-strong", children: Array.from({ length: rows }, (_, i) => /* @__PURE__ */ jsx67("div", { className: "flex h-8 items-center px-2", children: /* @__PURE__ */ jsx67(SkeletonBar, { on: "inset", className: "h-3 w-1/3" }) }, i)) }),
5516
+ latest && /* @__PURE__ */ jsxs49("div", { className: "flex flex-col gap-3", children: [
5517
+ /* @__PURE__ */ jsx67("div", { className: "flex h-[14.4px] items-center", children: /* @__PURE__ */ jsx67(SkeletonBar, { on: "inset", className: "h-2.5 w-28" }) }),
5518
+ /* @__PURE__ */ jsxs49("div", { className: cn("flex h-[57.6px] flex-col justify-center gap-2", QUOTE_BAR_CLASSES), children: [
5519
+ /* @__PURE__ */ jsx67(SkeletonBar, { on: "inset", className: "h-2.5 w-24" }),
5520
+ /* @__PURE__ */ jsx67(SkeletonBar, { on: "inset", className: "h-3 w-full" }),
5521
+ /* @__PURE__ */ jsx67(SkeletonBar, { on: "inset", className: "h-3 w-3/5" })
5388
5522
  ] })
5389
5523
  ] }),
5390
- footer !== "none" && /* @__PURE__ */ jsx65("div", { className: "flex min-h-6 items-center gap-2", children: footer === "pickers" ? /* @__PURE__ */ jsxs47(Fragment17, { children: [
5391
- /* @__PURE__ */ jsx65(SkeletonBar, { on: "inset", shape: "control", className: "h-6 w-24" }),
5392
- /* @__PURE__ */ jsx65(SkeletonBar, { on: "inset", shape: "control", className: "h-6 w-28" })
5393
- ] }) : footer === "people" ? /* @__PURE__ */ jsxs47(Fragment17, { children: [
5394
- /* @__PURE__ */ jsx65(SkeletonBar, { on: "inset", shape: "round", className: "size-4" }),
5395
- /* @__PURE__ */ jsx65(SkeletonBar, { on: "inset", className: "h-3 w-40" })
5396
- ] }) : /* @__PURE__ */ jsx65(SkeletonBar, { on: "inset", className: "h-3 w-40" }) })
5524
+ footer !== "none" && /* @__PURE__ */ jsx67("div", { className: "flex min-h-6 items-center gap-2", children: footer === "pickers" ? /* @__PURE__ */ jsxs49(Fragment17, { children: [
5525
+ /* @__PURE__ */ jsx67(SkeletonBar, { on: "inset", shape: "control", className: "h-6 w-24" }),
5526
+ /* @__PURE__ */ jsx67(SkeletonBar, { on: "inset", shape: "control", className: "h-6 w-28" })
5527
+ ] }) : footer === "people" ? /* @__PURE__ */ jsxs49(Fragment17, { children: [
5528
+ /* @__PURE__ */ jsx67(SkeletonBar, { on: "inset", shape: "round", className: "size-4" }),
5529
+ /* @__PURE__ */ jsx67(SkeletonBar, { on: "inset", className: "h-3 w-40" })
5530
+ ] }) : /* @__PURE__ */ jsx67(SkeletonBar, { on: "inset", className: "h-3 w-40" }) })
5397
5531
  ] }) });
5398
5532
  }
5399
5533
 
5400
5534
  // src/LinkPreview.tsx
5401
- import { Fragment as Fragment18, jsx as jsx66 } from "react/jsx-runtime";
5535
+ import { Fragment as Fragment18, jsx as jsx68 } from "react/jsx-runtime";
5402
5536
  var HOVER = "(hover: hover)";
5403
5537
  function subscribe(onChange) {
5404
5538
  if (typeof window === "undefined" || !window.matchMedia) return () => {
@@ -5416,49 +5550,49 @@ function useCanHover() {
5416
5550
  }
5417
5551
  function LinkPreview({ linked, block = false, children }) {
5418
5552
  const canHover = useCanHover();
5419
- if (!canHover) return /* @__PURE__ */ jsx66(Fragment18, { children });
5420
- return /* @__PURE__ */ jsx66(PreviewCard, { side: "top", contentClassName: "p-0", content: /* @__PURE__ */ jsx66(LinkCard, { link: { state: "ready", linked }, bare: true, readOnly: true }), wrapperClassName: block ? "grid w-full min-w-0 grid-cols-[minmax(0,1fr)]" : "max-w-full", children });
5553
+ if (!canHover) return /* @__PURE__ */ jsx68(Fragment18, { children });
5554
+ return /* @__PURE__ */ jsx68(PreviewCard, { side: "top", contentClassName: "p-0", content: /* @__PURE__ */ jsx68(LinkCard, { link: { state: "ready", linked }, bare: true, readOnly: true }), wrapperClassName: block ? "grid w-full min-w-0 grid-cols-[minmax(0,1fr)]" : "max-w-full", children });
5421
5555
  }
5422
5556
  function LinkPreviewOpen({ linked }) {
5423
- return /* @__PURE__ */ jsx66(MenuPanel, { className: "w-[360px] p-0", children: /* @__PURE__ */ jsx66(LinkCard, { link: { state: "ready", linked }, bare: true, readOnly: true }) });
5557
+ return /* @__PURE__ */ jsx68(MenuPanel, { className: "w-[360px] p-0", children: /* @__PURE__ */ jsx68(LinkCard, { link: { state: "ready", linked }, bare: true, readOnly: true }) });
5424
5558
  }
5425
5559
 
5426
5560
  // src/LinkChip.tsx
5427
- import { jsx as jsx67, jsxs as jsxs48 } from "react/jsx-runtime";
5561
+ import { jsx as jsx69, jsxs as jsxs50 } from "react/jsx-runtime";
5428
5562
  function LinkChip({ link, preview = true }) {
5429
5563
  if (link.state === "loading") {
5430
- return /* @__PURE__ */ jsx67(InlineChip, { icon: /* @__PURE__ */ jsx67(LinkedIcon, { kind: link.kind, size: 14, tone: "inherit" }), "aria-busy": true, children: /* @__PURE__ */ jsx67(SkeletonBar, { className: "h-2.5 w-16" }) });
5564
+ return /* @__PURE__ */ jsx69(InlineChip, { icon: /* @__PURE__ */ jsx69(LinkedIcon, { kind: link.kind, size: 14, tone: "inherit" }), "aria-busy": true, children: /* @__PURE__ */ jsx69(SkeletonBar, { className: "h-2.5 w-16" }) });
5431
5565
  }
5432
5566
  if (link.state === "unavailable") {
5433
- if (link.url) return /* @__PURE__ */ jsx67(WrittenUrl, { url: link.url });
5567
+ if (link.url) return /* @__PURE__ */ jsx69(WrittenUrl, { url: link.url });
5434
5568
  return (
5435
5569
  // A row's and a card's words, one wording everywhere (Katerina, 3 November).
5436
- /* @__PURE__ */ jsx67(InlineChip, { tone: "muted", icon: /* @__PURE__ */ jsx67(LinkedIcon, { kind: link.kind, size: 14, tone: "inherit" }), children: unavailableWords(link.noun, { named: link.named, deleted: link.deleted, failed: link.failed }) })
5570
+ /* @__PURE__ */ jsx69(InlineChip, { tone: "muted", icon: /* @__PURE__ */ jsx69(LinkedIcon, { kind: link.kind, size: 14, tone: "inherit" }), children: unavailableWords(link.noun, { named: link.named, deleted: link.deleted, failed: link.failed }) })
5437
5571
  );
5438
5572
  }
5439
5573
  const { linked } = link;
5440
5574
  const status = chosenOf(linked.status);
5441
5575
  const said = linked.kind === "message" && linked.author;
5442
- const chip = /* @__PURE__ */ jsxs48(
5576
+ const chip = /* @__PURE__ */ jsxs50(
5443
5577
  InlineChip,
5444
5578
  {
5445
- icon: said ? /* @__PURE__ */ jsx67(Avatar, { name: said.name, src: said.picture, bot: said.bot, size: 14 }) : /* @__PURE__ */ jsx67(LinkedIcon, { kind: linked.kind, size: 14, tone: "inherit" }),
5579
+ icon: said ? /* @__PURE__ */ jsx69(Avatar, { name: said.name, src: said.picture, bot: said.bot, size: 14 }) : /* @__PURE__ */ jsx69(LinkedIcon, { kind: linked.kind, size: 14, tone: "inherit" }),
5446
5580
  href: linked.href || void 0,
5447
5581
  className: preview ? "min-w-0 max-w-[40ch]" : "max-w-[min(40ch,calc(100%_-_4px))]",
5448
5582
  children: [
5449
5583
  linked.key && // 4px more than the chip's gap after it, and kept whole: "ABC-2" never breaks at its hyphen.
5450
- /* @__PURE__ */ jsx67("span", { className: "mr-1 shrink-0 whitespace-nowrap", children: /* @__PURE__ */ jsx67(LinkKey, { tone: "secondary", children: linked.key }) }),
5451
- /* @__PURE__ */ jsx67("span", { className: "truncate", children: said ? `${said.name}: ${linked.body ?? linked.title}` : linked.title }),
5452
- status?.colour && /* @__PURE__ */ jsx67(StatusMark, { status: { label: status.label, colour: status.colour } })
5584
+ /* @__PURE__ */ jsx69("span", { className: "mr-1 shrink-0 whitespace-nowrap", children: /* @__PURE__ */ jsx69(LinkKey, { tone: "secondary", children: linked.key }) }),
5585
+ /* @__PURE__ */ jsx69("span", { className: "truncate", children: said ? `${said.name}: ${linked.body ?? linked.title}` : linked.title }),
5586
+ status?.colour && /* @__PURE__ */ jsx69(StatusMark, { status: { label: status.label, colour: status.colour } })
5453
5587
  ]
5454
5588
  }
5455
5589
  );
5456
- return preview ? /* @__PURE__ */ jsx67(LinkPreview, { linked, children: chip }) : chip;
5590
+ return preview ? /* @__PURE__ */ jsx69(LinkPreview, { linked, children: chip }) : chip;
5457
5591
  }
5458
5592
 
5459
5593
  // src/AttachedCard.tsx
5460
5594
  import { createContext as createContext10, useContext as useContext12, useEffect as useEffect11, useRef as useRef18 } from "react";
5461
- import { Fragment as Fragment19, jsx as jsx68, jsxs as jsxs49 } from "react/jsx-runtime";
5595
+ import { Fragment as Fragment19, jsx as jsx70, jsxs as jsxs51 } from "react/jsx-runtime";
5462
5596
  var Attached = createContext10(false);
5463
5597
  function useRememberedHeight(link, remember, box) {
5464
5598
  const memory = remember?.memory;
@@ -5493,16 +5627,16 @@ function AttachedCard({ link, children, onRemove, remember }) {
5493
5627
  const box = useRef18(null);
5494
5628
  const { kept, held } = useRememberedHeight(link, remember, box);
5495
5629
  const shown2 = link?.state === "loading" && !link.shape && kept ? { ...link, shape: kept } : link;
5496
- const card = shown2 ? /* @__PURE__ */ jsx68(LinkCard, { link: shown2 }) : children;
5630
+ const card = shown2 ? /* @__PURE__ */ jsx70(LinkCard, { link: shown2 }) : children;
5497
5631
  const inside = useContext12(Attached);
5498
5632
  if (inside) {
5499
- return remember ? /* @__PURE__ */ jsx68("div", { ref: box, style: held, children: card }) : /* @__PURE__ */ jsx68(Fragment19, { children: card });
5633
+ return remember ? /* @__PURE__ */ jsx70("div", { ref: box, style: held, children: card }) : /* @__PURE__ */ jsx70(Fragment19, { children: card });
5500
5634
  }
5501
5635
  return (
5502
5636
  // At most 480px, so it never runs a column's or a wide box's whole width (Katerina, 29 and 30 Oct).
5503
- /* @__PURE__ */ jsxs49("div", { ref: box, className: "group/card relative max-w-[480px]", style: held, children: [
5504
- /* @__PURE__ */ jsx68(Attached.Provider, { value: true, children: card }),
5505
- onRemove && /* @__PURE__ */ jsx68(
5637
+ /* @__PURE__ */ jsxs51("div", { ref: box, className: "group/card relative max-w-[480px]", style: held, children: [
5638
+ /* @__PURE__ */ jsx70(Attached.Provider, { value: true, children: card }),
5639
+ onRemove && /* @__PURE__ */ jsx70(
5506
5640
  RemoveBadge,
5507
5641
  {
5508
5642
  label: "Remove",
@@ -5516,42 +5650,42 @@ function AttachedCard({ link, children, onRemove, remember }) {
5516
5650
 
5517
5651
  // src/PartCard.tsx
5518
5652
  import { useContext as useContext13 } from "react";
5519
- import { jsx as jsx69, jsxs as jsxs50 } from "react/jsx-runtime";
5653
+ import { jsx as jsx71, jsxs as jsxs52 } from "react/jsx-runtime";
5520
5654
  function PartCard({ state = "ready", kind, heading, href, partKey, noun, children, maxHeight }) {
5521
5655
  const word = noun ?? kindNounOf({ kind }) ?? "File";
5522
5656
  const boxed = useContext13(inTheBox);
5523
- if (state === "loading") return /* @__PURE__ */ jsx69(LinkCardLoading, { kind, shape: { summary: true, rows: 0, footer: "none" } });
5657
+ if (state === "loading") return /* @__PURE__ */ jsx71(LinkCardLoading, { kind, shape: { summary: true, rows: 0, footer: "none" } });
5524
5658
  if (state === "unavailable" || state === "deleted") {
5525
- return /* @__PURE__ */ jsx69(LinkUnavailable, { kind, noun: state === "deleted" ? `A part of this ${word.toLowerCase()}` : word, deleted: state === "deleted", card: true });
5659
+ return /* @__PURE__ */ jsx71(LinkUnavailable, { kind, noun: state === "deleted" ? `A part of this ${word.toLowerCase()}` : word, deleted: state === "deleted", card: true });
5526
5660
  }
5527
- if (state === "detached") return /* @__PURE__ */ jsx69(UnavailableRow, { kind, words: "This part was deleted", card: true });
5528
- if (state === "unaddressable") return /* @__PURE__ */ jsx69(UnavailableRow, { kind, words: "This part can't be shown", href, card: true });
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 });
5529
5663
  return (
5530
5664
  // At most 480px wide, in a box too; in a box being written in, on the files' fill as the card beside it is.
5531
- /* @__PURE__ */ jsxs50(Card, { fill: boxed ? "elevated" : "inset", className: "flex max-w-[480px] flex-col gap-3 p-3", children: [
5532
- /* @__PURE__ */ jsxs50("div", { className: "flex items-center gap-3", children: [
5533
- /* @__PURE__ */ jsx69(LinkTile, { kind }),
5534
- /* @__PURE__ */ jsxs50("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
5535
- /* @__PURE__ */ jsx69("span", { className: "block min-w-0 text-body-2-strong text-text-primary", children: href && !boxed ? /* @__PURE__ */ jsx69(Link, { href, variant: "quiet", truncate: true, className: "block", children: heading }) : /* @__PURE__ */ jsx69("span", { className: "block truncate", children: heading }) }),
5536
- /* @__PURE__ */ jsx69("span", { className: "truncate text-caption text-text-secondary", children: partKey ? `A part of ${partKey}` : `A part of this ${word.toLowerCase()}` })
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()}` })
5537
5671
  ] })
5538
5672
  ] }),
5539
- maxHeight !== void 0 ? /* @__PURE__ */ jsx69(ShowMore, { maxHeight, contentClassName: QUOTE_BAR_CLASSES, children }) : /* @__PURE__ */ jsx69("div", { className: QUOTE_BAR_CLASSES, children })
5673
+ maxHeight !== void 0 ? /* @__PURE__ */ jsx71(ShowMore, { maxHeight, contentClassName: QUOTE_BAR_CLASSES, children }) : /* @__PURE__ */ jsx71("div", { className: QUOTE_BAR_CLASSES, children })
5540
5674
  ] })
5541
5675
  );
5542
5676
  }
5543
5677
 
5544
5678
  // src/Rail.tsx
5545
- import { jsx as jsx70 } from "react/jsx-runtime";
5679
+ import { jsx as jsx72 } from "react/jsx-runtime";
5546
5680
  function Rail({ "aria-label": ariaLabel = "Navigation", children, className }) {
5547
- return /* @__PURE__ */ jsx70("nav", { "aria-label": ariaLabel, className: cn("flex w-16 shrink-0 flex-col items-start gap-2 px-2 py-3", className), children });
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 });
5548
5682
  }
5549
5683
 
5550
5684
  // src/RailItem.tsx
5551
- import { jsx as jsx71, jsxs as jsxs51 } from "react/jsx-runtime";
5685
+ import { jsx as jsx73, jsxs as jsxs53 } from "react/jsx-runtime";
5552
5686
  function RailItem({ href, icon, label, active = false, className, onClick, ...props }) {
5553
5687
  const inApp = useInAppClick(href, onClick);
5554
- return /* @__PURE__ */ jsxs51(
5688
+ return /* @__PURE__ */ jsxs53(
5555
5689
  "a",
5556
5690
  {
5557
5691
  href,
@@ -5560,14 +5694,14 @@ function RailItem({ href, icon, label, active = false, className, onClick, ...pr
5560
5694
  ...props,
5561
5695
  onClick: inApp,
5562
5696
  children: [
5563
- /* @__PURE__ */ jsx71(
5697
+ /* @__PURE__ */ jsx73(
5564
5698
  "div",
5565
5699
  {
5566
5700
  className: cn(
5567
5701
  "flex items-center justify-center rounded-lg p-2 transition-colors",
5568
5702
  active ? "bg-bg-selected" : "group-hover:bg-bg-hover"
5569
5703
  ),
5570
- children: /* @__PURE__ */ jsx71(
5704
+ children: /* @__PURE__ */ jsx73(
5571
5705
  "span",
5572
5706
  {
5573
5707
  className: cn(
@@ -5579,14 +5713,14 @@ function RailItem({ href, icon, label, active = false, className, onClick, ...pr
5579
5713
  )
5580
5714
  }
5581
5715
  ),
5582
- /* @__PURE__ */ jsx71("span", { className: cn("text-center text-menu", active ? "text-text-primary" : "text-text-secondary"), children: label })
5716
+ /* @__PURE__ */ jsx73("span", { className: cn("text-center text-menu", active ? "text-text-primary" : "text-text-secondary"), children: label })
5583
5717
  ]
5584
5718
  }
5585
5719
  );
5586
5720
  }
5587
5721
 
5588
5722
  // src/Property.tsx
5589
- import { jsx as jsx72, jsxs as jsxs52 } from "react/jsx-runtime";
5723
+ import { jsx as jsx74, jsxs as jsxs54 } from "react/jsx-runtime";
5590
5724
  var VALUE_CLASSES = "contents";
5591
5725
  function Property({ label, layout = "row", children, className }) {
5592
5726
  if (layout === "stacked") {
@@ -5594,25 +5728,25 @@ function Property({ label, layout = "row", children, className }) {
5594
5728
  // gap-3 — the one label-above-content distance (Katerina, 2026-09-01):
5595
5729
  // Peek's topic-details sections already sit at 12px, Ship's rail was
5596
5730
  // 6px, and unifying means the bigger, calmer one.
5597
- /* @__PURE__ */ jsxs52("dl", { className: cn("flex flex-col gap-3", className), children: [
5598
- /* @__PURE__ */ jsx72("dt", { className: "text-menu uppercase tracking-widest text-text-secondary", children: label }),
5599
- /* @__PURE__ */ jsx72("dd", { className: VALUE_CLASSES, children })
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 })
5600
5734
  ] })
5601
5735
  );
5602
5736
  }
5603
- return /* @__PURE__ */ jsxs52("dl", { className: cn("flex items-center gap-2", className), children: [
5604
- /* @__PURE__ */ jsx72("dt", { className: "w-[68px] shrink-0 text-caption text-text-secondary", children: label }),
5605
- /* @__PURE__ */ jsx72("dd", { className: VALUE_CLASSES, children })
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 })
5606
5740
  ] });
5607
5741
  }
5608
5742
 
5609
5743
  // src/Reaction.tsx
5610
5744
  import { Toggle as Toggle2 } from "@base-ui/react/toggle";
5611
- import { jsx as jsx73, jsxs as jsxs53 } from "react/jsx-runtime";
5745
+ import { jsx as jsx75, jsxs as jsxs55 } from "react/jsx-runtime";
5612
5746
  function Reaction({ emoji, count, pressed = false, className, ...props }) {
5613
5747
  return (
5614
5748
  // @estiva-escape(no-copied-look): W1 (Katerina, 24 September: leave alone): a reaction pill shares four words with a field's box by coincidence
5615
- /* @__PURE__ */ jsxs53(
5749
+ /* @__PURE__ */ jsxs55(
5616
5750
  Toggle2,
5617
5751
  {
5618
5752
  pressed,
@@ -5634,8 +5768,8 @@ function Reaction({ emoji, count, pressed = false, className, ...props }) {
5634
5768
  ),
5635
5769
  ...props,
5636
5770
  children: [
5637
- /* @__PURE__ */ jsx73("span", { "aria-hidden": "true", className: "shrink-0 text-body-1 leading-none", children: emoji }),
5638
- /* @__PURE__ */ jsx73("span", { className: CHIP_TEXT_CLASSES, children: count })
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 })
5639
5773
  ]
5640
5774
  }
5641
5775
  )
@@ -5643,20 +5777,20 @@ function Reaction({ emoji, count, pressed = false, className, ...props }) {
5643
5777
  }
5644
5778
 
5645
5779
  // src/ConversationActions.tsx
5646
- import { useState as useState18 } from "react";
5647
- import { IconCircleCheck as IconCircleCheck2, IconCircleDashed as IconCircleDashed3, IconMessage2 as IconMessage23, IconMoodPlus } from "@tabler/icons-react";
5648
- import { Fragment as Fragment20, jsx as jsx74, jsxs as jsxs54 } from "react/jsx-runtime";
5780
+ import { useState as useState20 } from "react";
5781
+ 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";
5649
5783
  function ConversationActions({ options, onReact, onReply, resolved = false, onResolve, onReopen, onPickerOpenChange, more, className }) {
5650
- const [picking, setPicking] = useState18(false);
5651
- const [strip, setStrip] = useState18(null);
5784
+ const [picking, setPicking] = useState20(false);
5785
+ const [strip, setStrip] = useState20(null);
5652
5786
  const setOpen = (open) => {
5653
5787
  setPicking(open);
5654
5788
  onPickerOpenChange?.(open);
5655
5789
  };
5656
5790
  const resolves = resolved ? onReopen : onResolve;
5657
5791
  const answers = !!onReact && !!options || !!onReply;
5658
- return /* @__PURE__ */ jsx74("div", { ref: setStrip, className: cn("inline-flex", className), children: /* @__PURE__ */ jsxs54(Toolbar, { "aria-label": "Actions", children: [
5659
- onReact && options && /* @__PURE__ */ jsx74(
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(
5660
5794
  Popover,
5661
5795
  {
5662
5796
  side: "top",
@@ -5667,8 +5801,8 @@ function ConversationActions({ options, onReact, onReply, resolved = false, onRe
5667
5801
  contentClassName: "p-1",
5668
5802
  open: picking,
5669
5803
  onOpenChange: setOpen,
5670
- trigger: /* @__PURE__ */ jsx74(ToolbarButton, { tooltip: "React", "aria-label": "React", children: /* @__PURE__ */ jsx74(IconMoodPlus, { size: 16, stroke: 1.5 }) }),
5671
- children: /* @__PURE__ */ jsx74(
5804
+ trigger: /* @__PURE__ */ jsx76(ToolbarButton, { tooltip: "React", "aria-label": "React", children: /* @__PURE__ */ jsx76(IconMoodPlus, { size: 16, stroke: 1.5 }) }),
5805
+ children: /* @__PURE__ */ jsx76(
5672
5806
  ReactionPicker,
5673
5807
  {
5674
5808
  options: [...options],
@@ -5681,56 +5815,56 @@ function ConversationActions({ options, onReact, onReply, resolved = false, onRe
5681
5815
  )
5682
5816
  }
5683
5817
  ),
5684
- onReply && /* @__PURE__ */ jsx74(ToolbarButton, { tooltip: "Reply", "aria-label": "Reply", onClick: onReply, children: /* @__PURE__ */ jsx74(IconMessage23, { size: 16, stroke: 1.5 }) }),
5685
- resolves && /* @__PURE__ */ jsxs54(Fragment20, { children: [
5686
- answers && /* @__PURE__ */ jsx74(ToolbarSeparator, {}),
5687
- resolved ? /* @__PURE__ */ jsx74(ToolbarButton, { tooltip: "Reopen", "aria-label": "Reopen", onClick: onReopen, children: /* @__PURE__ */ jsx74(IconCircleDashed3, { size: 16, stroke: 1.5 }) }) : /* @__PURE__ */ jsx74(ToolbarButton, { variant: "resolve", tooltip: "Resolve", "aria-label": "Resolve", onClick: onResolve, children: /* @__PURE__ */ jsx74(IconCircleCheck2, { size: 16, stroke: 1.5 }) })
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 }) })
5688
5822
  ] }),
5689
- more && /* @__PURE__ */ jsxs54(Fragment20, { children: [
5690
- (answers || resolves) && /* @__PURE__ */ jsx74(ToolbarSeparator, {}),
5823
+ more && /* @__PURE__ */ jsxs56(Fragment20, { children: [
5824
+ (answers || resolves) && /* @__PURE__ */ jsx76(ToolbarSeparator, {}),
5691
5825
  more
5692
5826
  ] })
5693
5827
  ] }) });
5694
5828
  }
5695
5829
 
5696
5830
  // src/ConversationCard.tsx
5697
- import { useContext as useContext14, useLayoutEffect as useLayoutEffect7, useRef as useRef19, useState as useState23 } from "react";
5831
+ import { useContext as useContext14, useLayoutEffect as useLayoutEffect7, useRef as useRef19, useState as useState25 } from "react";
5698
5832
  import { IconArrowNarrowRight, IconCircleCheck as IconCircleCheck4, IconDotsVertical as IconDotsVertical4 } from "@tabler/icons-react";
5699
5833
 
5700
5834
  // src/ConversationMenu.tsx
5701
- import { IconCircleCheck as IconCircleCheck3, IconCircleDashed as IconCircleDashed4, IconDotsVertical as IconDotsVertical3 } from "@tabler/icons-react";
5702
- import { Fragment as Fragment21, jsx as jsx75, jsxs as jsxs55 } from "react/jsx-runtime";
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";
5703
5837
  function ConversationMenu({ resolved = false, onResolve, onReopen, resolveHint, children, label, onEdit, editLabel = "Edit", after, onDelete, deleteLabel = "Delete", moreLabel = "More actions", open, onOpenChange, trigger }) {
5704
5838
  const resolves = resolved ? onReopen : onResolve;
5705
- const first = (resolves || children) && /* @__PURE__ */ jsxs55(Fragment21, { children: [
5706
- resolves && (resolved ? /* @__PURE__ */ jsx75(MenuItem, { leading: /* @__PURE__ */ jsx75(IconCircleDashed4, { size: 16, stroke: 1.5, className: "text-text-secondary" }), label: "Reopen", onClick: onReopen }) : /* @__PURE__ */ jsx75(MenuItem, { leading: /* @__PURE__ */ jsx75(IconCircleCheck3, { size: 16, stroke: 1.5, className: "text-text-secondary" }), label: "Resolve", shortcut: resolveHint, onClick: 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 })),
5707
5841
  children
5708
5842
  ] });
5709
- const middle = (onEdit || after) && /* @__PURE__ */ jsxs55(Fragment21, { children: [
5710
- onEdit && /* @__PURE__ */ jsx75(MenuItem, { label: editLabel, onClick: onEdit }),
5843
+ const middle = (onEdit || after) && /* @__PURE__ */ jsxs57(Fragment21, { children: [
5844
+ onEdit && /* @__PURE__ */ jsx77(MenuItem, { label: editLabel, onClick: onEdit }),
5711
5845
  after
5712
5846
  ] });
5713
- return /* @__PURE__ */ jsxs55(
5847
+ return /* @__PURE__ */ jsxs57(
5714
5848
  Menu,
5715
5849
  {
5716
- trigger: trigger ?? /* @__PURE__ */ jsx75(IconButton, { tooltip: moreLabel, "aria-label": moreLabel, children: /* @__PURE__ */ jsx75(IconDotsVertical3, { size: 16, stroke: 1.5 }) }),
5850
+ trigger: trigger ?? /* @__PURE__ */ jsx77(IconButton, { tooltip: moreLabel, "aria-label": moreLabel, children: /* @__PURE__ */ jsx77(IconDotsVertical3, { size: 16, stroke: 1.5 }) }),
5717
5851
  align: "right",
5718
5852
  open,
5719
5853
  onOpenChange,
5720
5854
  className: "w-[244px]",
5721
5855
  children: [
5722
- first && (label ? /* @__PURE__ */ jsx75(MenuSection, { label, children: first }) : first),
5723
- first && middle && /* @__PURE__ */ jsx75(MenuSeparator, {}),
5856
+ first && (label ? /* @__PURE__ */ jsx77(MenuSection, { label, children: first }) : first),
5857
+ first && middle && /* @__PURE__ */ jsx77(MenuSeparator, {}),
5724
5858
  middle,
5725
- onDelete && (first || middle) && /* @__PURE__ */ jsx75(MenuSeparator, {}),
5726
- onDelete && /* @__PURE__ */ jsx75(MenuItem, { label: deleteLabel, destructive: true, onClick: onDelete })
5859
+ onDelete && (first || middle) && /* @__PURE__ */ jsx77(MenuSeparator, {}),
5860
+ onDelete && /* @__PURE__ */ jsx77(MenuItem, { label: deleteLabel, destructive: true, onClick: onDelete })
5727
5861
  ]
5728
5862
  }
5729
5863
  );
5730
5864
  }
5731
5865
 
5732
5866
  // src/conversationScroll.ts
5733
- import { createContext as createContext11, useEffect as useEffect12, useState as useState19 } from "react";
5867
+ import { createContext as createContext11, useEffect as useEffect12, useState as useState21 } from "react";
5734
5868
  var NEAR_BOTTOM_PX = 80;
5735
5869
  function isNearBottom(el) {
5736
5870
  return el.scrollHeight - el.scrollTop - el.clientHeight <= NEAR_BOTTOM_PX;
@@ -5747,7 +5881,7 @@ function anchorIn(el) {
5747
5881
  }
5748
5882
  var cardIn = (el, id) => el.querySelector(`[data-conversation-item="${CSS.escape(id)}"]`)?.firstElementChild ?? null;
5749
5883
  function useSteadyScroll(scrollRef, atBottom, ready, key, enabled) {
5750
- const [handle] = useState19(() => ({ rebase: () => {
5884
+ const [handle] = useState21(() => ({ rebase: () => {
5751
5885
  } }));
5752
5886
  useEffect12(() => {
5753
5887
  const el = scrollRef.current;
@@ -5802,7 +5936,7 @@ function useSteadyScroll(scrollRef, atBottom, ready, key, enabled) {
5802
5936
  }
5803
5937
  var places = /* @__PURE__ */ new Map();
5804
5938
  function useLeftAt(key) {
5805
- const [taken, setTaken] = useState19();
5939
+ const [taken, setTaken] = useState21();
5806
5940
  if (!key && taken) setTaken(void 0);
5807
5941
  if (key && taken?.key !== key) {
5808
5942
  const left = places.get(key);
@@ -5816,21 +5950,21 @@ var sendsInLayout = createContext11(null);
5816
5950
  var repliesDrawn = createContext11(null);
5817
5951
 
5818
5952
  // src/EditedMarker.tsx
5819
- import { jsx as jsx76 } from "react/jsx-runtime";
5953
+ import { jsx as jsx78 } from "react/jsx-runtime";
5820
5954
  function EditedMarker({ edited }) {
5821
5955
  if (!edited) return null;
5822
- return /* @__PURE__ */ jsx76(WithTooltip, { label: edited, wrapperClassName: "shrink-0", children: /* @__PURE__ */ jsx76("span", { className: "whitespace-nowrap text-caption text-text-muted", children: "(edited)" }) });
5956
+ return /* @__PURE__ */ jsx78(WithTooltip, { label: edited, wrapperClassName: "shrink-0", children: /* @__PURE__ */ jsx78("span", { className: "whitespace-nowrap text-caption text-text-muted", children: "(edited)" }) });
5823
5957
  }
5824
5958
 
5825
5959
  // src/MetaText.tsx
5826
- import { jsx as jsx77 } from "react/jsx-runtime";
5960
+ import { jsx as jsx79 } from "react/jsx-runtime";
5827
5961
  var TONE_CLASSES2 = {
5828
5962
  muted: "text-text-muted",
5829
5963
  secondary: "text-text-secondary",
5830
5964
  success: "text-success-default"
5831
5965
  };
5832
5966
  function MetaText({ children, tone = "muted", size = "caption", className }) {
5833
- return /* @__PURE__ */ jsx77(
5967
+ return /* @__PURE__ */ jsx79(
5834
5968
  "span",
5835
5969
  {
5836
5970
  className: cn(
@@ -5845,9 +5979,9 @@ function MetaText({ children, tone = "muted", size = "caption", className }) {
5845
5979
  }
5846
5980
 
5847
5981
  // src/ReactionRow.tsx
5848
- import { useState as useState20 } from "react";
5982
+ import { useState as useState22 } from "react";
5849
5983
  import { IconMoodPlus as IconMoodPlus2 } from "@tabler/icons-react";
5850
- import { jsx as jsx78, jsxs as jsxs56 } from "react/jsx-runtime";
5984
+ import { jsx as jsx80, jsxs as jsxs58 } from "react/jsx-runtime";
5851
5985
  var NAMED = 8;
5852
5986
  var meaningOf = (options, emoji) => options.find((o) => o.emoji === emoji)?.label ?? emoji;
5853
5987
  function whoReacted(reaction, nameOf, options, viewer) {
@@ -5861,8 +5995,8 @@ function whoReacted(reaction, nameOf, options, viewer) {
5861
5995
  return `${list.charAt(0).toUpperCase()}${list.slice(1)} reacted with ${meaningOf(options, reaction.emoji)}`;
5862
5996
  }
5863
5997
  function AddReactionButton({ options, onPick, className }) {
5864
- const [picking, setPicking] = useState20(false);
5865
- return /* @__PURE__ */ jsx78(
5998
+ const [picking, setPicking] = useState22(false);
5999
+ return /* @__PURE__ */ jsx80(
5866
6000
  Popover,
5867
6001
  {
5868
6002
  open: picking,
@@ -5872,8 +6006,8 @@ function AddReactionButton({ options, onPick, className }) {
5872
6006
  ariaLabel: "Add a reaction",
5873
6007
  contentClassName: "p-1",
5874
6008
  className: cn("w-auto min-w-0", className),
5875
- trigger: /* @__PURE__ */ jsx78(IconButton, { variant: "muted", tooltip: "Add a reaction", "aria-label": "Add a reaction", children: /* @__PURE__ */ jsx78(IconMoodPlus2, { size: 16, stroke: 1.5 }) }),
5876
- children: /* @__PURE__ */ jsx78(
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(
5877
6011
  ReactionPicker,
5878
6012
  {
5879
6013
  options: [...options],
@@ -5890,8 +6024,8 @@ function AddReactionButton({ options, onPick, className }) {
5890
6024
  function ReactionRow({ reactions, options, nameOf, viewer, onToggle, className }) {
5891
6025
  const shown2 = reactions.filter((r) => r.by.length > 0);
5892
6026
  if (shown2.length === 0) return null;
5893
- return /* @__PURE__ */ jsxs56("div", { "data-reaction-row": true, className: cn("flex flex-wrap items-center gap-1", className), children: [
5894
- shown2.map((r) => /* @__PURE__ */ jsx78(WithTooltip, { label: whoReacted(r, nameOf, options, viewer), children: /* @__PURE__ */ jsx78(
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(
5895
6029
  Reaction,
5896
6030
  {
5897
6031
  emoji: r.emoji,
@@ -5902,13 +6036,13 @@ function ReactionRow({ reactions, options, nameOf, viewer, onToggle, className }
5902
6036
  onClick: () => onToggle?.(r.emoji)
5903
6037
  }
5904
6038
  ) }, r.emoji)),
5905
- onToggle && /* @__PURE__ */ jsx78(AddReactionButton, { options, onPick: onToggle })
6039
+ onToggle && /* @__PURE__ */ jsx80(AddReactionButton, { options, onPick: onToggle })
5906
6040
  ] });
5907
6041
  }
5908
6042
 
5909
6043
  // src/RepliesRow.tsx
5910
6044
  import { IconChevronRight as IconChevronRight4, IconMessage2 as IconMessage24 } from "@tabler/icons-react";
5911
- import { Fragment as Fragment22, jsx as jsx79, jsxs as jsxs57 } from "react/jsx-runtime";
6045
+ import { Fragment as Fragment22, jsx as jsx81, jsxs as jsxs59 } from "react/jsx-runtime";
5912
6046
  var ROW_CLASSES3 = "flex w-full items-center gap-2 pb-1.5 pl-8 pr-2";
5913
6047
  var OPEN_CLASSES = "border-accent-outline bg-accent-wash";
5914
6048
  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";
@@ -5917,9 +6051,9 @@ function RepliesRow({ count, faces, last, isNew = false, newCount, urgent = fals
5917
6051
  const label = `${count} ${count === 1 ? "reply" : "replies"}`;
5918
6052
  const fresh = newCount ?? (isNew ? 1 : 0);
5919
6053
  const name = newCount ? `${label}, ${newCount} new` : label;
5920
- const inner = /* @__PURE__ */ jsxs57(Fragment22, { children: [
5921
- withFaces && /* @__PURE__ */ jsx79("span", { className: "flex shrink-0 items-center", children: /* @__PURE__ */ jsx79(AvatarGroup, { size: 18, members: faces.map((f) => ({ name: f.name, picture: f.picture, bot: f.bot })) }) }),
5922
- /* @__PURE__ */ jsx79(
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(
5923
6057
  IconMessage24,
5924
6058
  {
5925
6059
  size: 16,
@@ -5930,9 +6064,9 @@ function RepliesRow({ count, faces, last, isNew = false, newCount, urgent = fals
5930
6064
  )
5931
6065
  }
5932
6066
  ),
5933
- /* @__PURE__ */ jsx79("span", { className: "text-chip font-medium text-text-interactive transition-colors group-hover/replies:text-text-primary", children: label }),
5934
- last && /* @__PURE__ */ jsx79("span", { className: cn("mt-px text-small leading-3 text-text-muted", TIME_CLASSES), children: last }),
5935
- /* @__PURE__ */ jsx79(
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(
5936
6070
  IconChevronRight4,
5937
6071
  {
5938
6072
  size: 12,
@@ -5941,41 +6075,41 @@ function RepliesRow({ count, faces, last, isNew = false, newCount, urgent = fals
5941
6075
  }
5942
6076
  )
5943
6077
  ] });
5944
- const chip = fresh > 0 && /* @__PURE__ */ jsxs57(Fragment22, { children: [
5945
- /* @__PURE__ */ jsx79("span", { className: "h-0.5 w-0.5 shrink-0 rounded-full bg-text-muted" }),
5946
- /* @__PURE__ */ jsx79(Chip, { type: urgent ? "warning" : "brand", label: `${fresh} new` })
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` })
5947
6081
  ] });
5948
6082
  if (!onOpen) {
5949
- return /* @__PURE__ */ jsxs57("div", { className: ROW_CLASSES3, children: [
5950
- /* @__PURE__ */ jsx79("div", { className: BOX_CLASSES, children: inner }),
6083
+ return /* @__PURE__ */ jsxs59("div", { className: ROW_CLASSES3, children: [
6084
+ /* @__PURE__ */ jsx81("div", { className: BOX_CLASSES, children: inner }),
5951
6085
  chip
5952
6086
  ] });
5953
6087
  }
5954
6088
  return (
5955
6089
  // @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
5956
- /* @__PURE__ */ jsxs57("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: [
5957
- /* @__PURE__ */ jsx79("span", { className: cn(BOX_CLASSES, open && OPEN_CLASSES), children: inner }),
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 }),
5958
6092
  chip
5959
6093
  ] })
5960
6094
  );
5961
6095
  }
5962
6096
 
5963
6097
  // src/ResolveDialog.tsx
5964
- import { useState as useState21 } from "react";
5965
- import { jsx as jsx80, jsxs as jsxs58 } from "react/jsx-runtime";
6098
+ import { useState as useState23 } from "react";
6099
+ import { jsx as jsx82, jsxs as jsxs60 } from "react/jsx-runtime";
5966
6100
  function ResolveDialog({ onResolve, onCancel, refused }) {
5967
- const [note, setNote] = useState21("");
6101
+ const [note, setNote] = useState23("");
5968
6102
  return (
5969
6103
  // Outlined at rest and green on hover in Signal, the kit's `resolve` look.
5970
- /* @__PURE__ */ jsx80(FormDialog, { title: "Resolve", submitLabel: "Resolve", submitVariant: "resolve", onSubmit: () => onResolve(note), onClose: onCancel, children: /* @__PURE__ */ jsxs58(Field, { label: "Resolution message (optional)", children: [
5971
- /* @__PURE__ */ jsx80(Textarea, { autoFocus: true, value: note, onChange: (e) => setNote(e.target.value), placeholder: "Summarize the outcome or decision...", className: "h-[109px]" }),
5972
- refused && /* @__PURE__ */ jsx80(FieldLine, { tone: "error", children: refused })
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 })
5973
6107
  ] }) })
5974
6108
  );
5975
6109
  }
5976
6110
 
5977
6111
  // src/threadCard.ts
5978
- import { createContext as createContext12, useLayoutEffect as useLayoutEffect6, useState as useState22 } from "react";
6112
+ import { createContext as createContext12, useLayoutEffect as useLayoutEffect6, useState as useState24 } from "react";
5979
6113
  var InThreadCard = createContext12(false);
5980
6114
  var InConversationItem = createContext12(null);
5981
6115
  var caretOnOpen = createContext12(0);
@@ -5985,7 +6119,7 @@ var momentOf = (at) => at !== void 0 && Number.isFinite(at) ? at : void 0;
5985
6119
  var SHOWN_CLASSES = "data-[shown]:animate-shown data-[shown]:rounded-lg motion-reduce:data-[shown]:animate-none motion-reduce:data-[shown]:bg-accent-wash";
5986
6120
  var FACE_GAP = 4;
5987
6121
  function useFaceLine(root, active, toDot = false) {
5988
- const [line, setLine] = useState22(null);
6122
+ const [line, setLine] = useState24(null);
5989
6123
  useLayoutEffect6(() => {
5990
6124
  const el = root.current;
5991
6125
  if (!active || !el) {
@@ -6017,35 +6151,35 @@ function useFaceLine(root, active, toDot = false) {
6017
6151
  }
6018
6152
 
6019
6153
  // src/PinnedComment.tsx
6020
- import { jsx as jsx81, jsxs as jsxs59 } from "react/jsx-runtime";
6154
+ import { jsx as jsx83, jsxs as jsxs61 } from "react/jsx-runtime";
6021
6155
  var goneWords = (deleted) => deleted ? "This comment was deleted." : "This comment can\u2019t be shown.";
6022
6156
  var GONE_CLOSED = "This thread takes no new replies.";
6023
6157
  function PinnedComment({ author, time, at: given, words, deleted = false, unseen = false }) {
6024
6158
  const at = momentOf(given);
6025
- return /* @__PURE__ */ jsx81(Card, { fill: "elevated", clip: true, children: deleted || unseen ? /* @__PURE__ */ jsx81("p", { className: "p-2 text-caption italic text-text-muted", children: goneWords(deleted) }) : /* @__PURE__ */ jsxs59("div", { className: "flex flex-col p-2", children: [
6026
- /* @__PURE__ */ jsxs59("div", { className: "flex items-center gap-2", children: [
6027
- /* @__PURE__ */ jsx81(Avatar, { size: 24, src: author.picture, alt: author.name, bot: author.bot }),
6028
- /* @__PURE__ */ jsx81("span", { className: "min-w-0 truncate text-body-2-strong text-text-primary", children: author.name }),
6029
- /* @__PURE__ */ jsx81(MetaText, { className: "shrink-0", children: at === void 0 ? time : /* @__PURE__ */ jsx81(WithTooltip, { label: exactTime(at), children: /* @__PURE__ */ jsx81("time", { dateTime: new Date(at).toISOString(), children: time }) }) })
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 }) }) })
6030
6164
  ] }),
6031
- /* @__PURE__ */ jsx81("div", { className: "pb-2 pl-8 pr-2 pt-1", children: /* @__PURE__ */ jsx81("div", { className: "truncate text-caption text-text-secondary", children: words }) })
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 }) })
6032
6166
  ] }) });
6033
6167
  }
6034
6168
 
6035
6169
  // src/ConversationCard.tsx
6036
- import { Fragment as Fragment23, jsx as jsx82, jsxs as jsxs60 } from "react/jsx-runtime";
6170
+ import { Fragment as Fragment23, jsx as jsx84, jsxs as jsxs62 } from "react/jsx-runtime";
6037
6171
  function When({ time, at: given, timeHref, timeLabel = "Link to this" }) {
6038
6172
  const at = momentOf(given);
6039
6173
  const exact = at === void 0 ? void 0 : exactTime(at);
6040
- const said = at === void 0 ? time : /* @__PURE__ */ jsx82("time", { dateTime: new Date(at).toISOString(), children: time });
6174
+ const said = at === void 0 ? time : /* @__PURE__ */ jsx84("time", { dateTime: new Date(at).toISOString(), children: time });
6041
6175
  if (timeHref) {
6042
- return /* @__PURE__ */ jsx82(WithTooltip, { label: exact ? `${exact} \xB7 ${timeLabel}` : timeLabel, wrapperClassName: "shrink-0", children: /* @__PURE__ */ jsx82(MetaText, { className: "contents", children: /* @__PURE__ */ jsx82(Link, { href: timeHref, variant: "quiet", "data-interactive": true, children: said }) }) });
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 }) }) });
6043
6177
  }
6044
- return /* @__PURE__ */ jsx82(MetaText, { className: "shrink-0", children: exact ? /* @__PURE__ */ jsx82(WithTooltip, { label: exact, children: said }) : time });
6178
+ return /* @__PURE__ */ jsx84(MetaText, { className: "shrink-0", children: exact ? /* @__PURE__ */ jsx84(WithTooltip, { label: exact, children: said }) : time });
6045
6179
  }
6046
6180
  var fadeBefore = (end) => `linear-gradient(to right, black ${end - 16}px, transparent ${end}px)`;
6047
6181
  function useClearOfStrip(root, strip, shown2) {
6048
- const [end, setEnd] = useState23();
6182
+ const [end, setEnd] = useState25();
6049
6183
  useLayoutEffect7(() => {
6050
6184
  const words = root.current?.querySelector("[data-head]");
6051
6185
  if (!shown2 || !words || !strip.current) {
@@ -6059,15 +6193,15 @@ function useClearOfStrip(root, strip, shown2) {
6059
6193
  return end;
6060
6194
  }
6061
6195
  function Head({ author, time, at, timeHref, timeLabel, edited, isNew, urgent, meta, end }) {
6062
- return /* @__PURE__ */ jsxs60("div", { className: "flex w-full items-center gap-2", children: [
6063
- /* @__PURE__ */ jsxs60("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: [
6064
- /* @__PURE__ */ jsx82("span", { "data-face": true, className: "relative flex shrink-0", children: /* @__PURE__ */ jsx82(Avatar, { size: 24, src: author.picture, alt: author.name, bot: author.bot }) }),
6065
- /* @__PURE__ */ jsx82("span", { className: "min-w-0 truncate text-body-2-strong text-text-primary", children: author.name }),
6066
- /* @__PURE__ */ jsx82(When, { time, at, timeHref, timeLabel }),
6067
- /* @__PURE__ */ jsx82(EditedMarker, { edited }),
6196
+ return /* @__PURE__ */ jsxs62("div", { className: "flex w-full items-center gap-2", children: [
6197
+ /* @__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: [
6198
+ /* @__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 }) }),
6199
+ /* @__PURE__ */ jsx84("span", { className: "min-w-0 truncate text-body-2-strong text-text-primary", children: author.name }),
6200
+ /* @__PURE__ */ jsx84(When, { time, at, timeHref, timeLabel }),
6201
+ /* @__PURE__ */ jsx84(EditedMarker, { edited }),
6068
6202
  meta
6069
6203
  ] }),
6070
- isNew && (urgent ? /* @__PURE__ */ jsx82(UrgentMark, {}) : /* @__PURE__ */ jsx82(UnreadDot, {}))
6204
+ isNew && (urgent ? /* @__PURE__ */ jsx84(UrgentMark, {}) : /* @__PURE__ */ jsx84(UnreadDot, {}))
6071
6205
  ] });
6072
6206
  }
6073
6207
  function attentionOf(fresh, urgent, inThreadCard) {
@@ -6075,13 +6209,13 @@ function attentionOf(fresh, urgent, inThreadCard) {
6075
6209
  return urgent ? "warning" : "accent";
6076
6210
  }
6077
6211
  function EndedLine({ by, note, at }) {
6078
- return /* @__PURE__ */ jsxs60("div", { "data-resolved": "line", className: "relative flex items-start py-1", children: [
6079
- /* @__PURE__ */ jsx82("span", { className: "flex h-[17px] w-10 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx82("span", { "data-dot": true, className: "relative z-10 flex size-2 items-center justify-center rounded-full bg-bg-surface", children: /* @__PURE__ */ jsx82("span", { className: "size-1 rounded-full bg-success-default" }) }) }),
6080
- /* @__PURE__ */ jsxs60("p", { className: "min-w-0 text-h5 leading-snug", children: [
6081
- /* @__PURE__ */ jsx82("span", { className: "whitespace-nowrap text-text-primary", children: by }),
6082
- /* @__PURE__ */ jsx82(IconArrowNarrowRight, { size: 12, stroke: 1.5, className: "mx-1.5 -mt-px inline shrink-0 text-text-primary" }),
6083
- /* @__PURE__ */ jsx82("span", { className: "text-text-secondary", children: note }),
6084
- at && /* @__PURE__ */ jsxs60(MetaText, { size: "chip", children: [
6212
+ return /* @__PURE__ */ jsxs62("div", { "data-resolved": "line", className: "relative flex items-start py-1", children: [
6213
+ /* @__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" }) }) }),
6214
+ /* @__PURE__ */ jsxs62("p", { className: "min-w-0 text-h5 leading-snug", children: [
6215
+ /* @__PURE__ */ jsx84("span", { className: "whitespace-nowrap text-text-primary", children: by }),
6216
+ /* @__PURE__ */ jsx84(IconArrowNarrowRight, { size: 12, stroke: 1.5, className: "mx-1.5 -mt-px inline shrink-0 text-text-primary" }),
6217
+ /* @__PURE__ */ jsx84("span", { className: "text-text-secondary", children: note }),
6218
+ at && /* @__PURE__ */ jsxs62(MetaText, { size: "chip", children: [
6085
6219
  " \xB7 ",
6086
6220
  at
6087
6221
  ] })
@@ -6090,16 +6224,16 @@ function EndedLine({ by, note, at }) {
6090
6224
  }
6091
6225
  function ResolvedCheck({ by, note, at }) {
6092
6226
  const said = `Resolved by ${by}${at ? `, ${at}` : ""}${note ? `: ${note}` : ""}`;
6093
- return /* @__PURE__ */ jsx82(WithTooltip, { label: said, wrapperClassName: "flex shrink-0", children: /* @__PURE__ */ jsxs60("span", { className: "flex items-center gap-1 text-caption text-success-default", children: [
6094
- /* @__PURE__ */ jsx82(IconCircleCheck4, { size: 14, stroke: 1.5 }),
6227
+ 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: [
6228
+ /* @__PURE__ */ jsx84(IconCircleCheck4, { size: 14, stroke: 1.5 }),
6095
6229
  "Resolved"
6096
6230
  ] }) });
6097
6231
  }
6098
6232
  function Words({ children }) {
6099
- return /* @__PURE__ */ jsx82("div", { className: "relative w-full break-words pb-2 pl-8 pr-2 pt-1", children: /* @__PURE__ */ jsx82("div", { className: "flex flex-col gap-2 text-body-2 text-text-secondary", children }) });
6233
+ 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 }) });
6100
6234
  }
6101
6235
  function useReactionRefusal(reactions) {
6102
- const [refused, setRefused] = useState23();
6236
+ const [refused, setRefused] = useState25();
6103
6237
  const latest = useRef19(0);
6104
6238
  const toggle = reactions?.onToggle;
6105
6239
  if (!reactions || !toggle) return { row: reactions, refused };
@@ -6123,9 +6257,9 @@ function useReactionRefusal(reactions) {
6123
6257
  }
6124
6258
  function Reactions({ reactions, refused, readOnly }) {
6125
6259
  if ((!reactions || reactions.reactions.length === 0) && !refused) return null;
6126
- return /* @__PURE__ */ jsxs60("div", { className: "relative flex w-full flex-col gap-1 pb-2 pl-8 pt-1", children: [
6127
- reactions && /* @__PURE__ */ jsx82(ReactionRow, { ...reactions, onToggle: readOnly ? void 0 : reactions.onToggle }),
6128
- refused && /* @__PURE__ */ jsxs60(FieldLine, { tone: "error", children: [
6260
+ return /* @__PURE__ */ jsxs62("div", { className: "relative flex w-full flex-col gap-1 pb-2 pl-8 pt-1", children: [
6261
+ reactions && /* @__PURE__ */ jsx84(ReactionRow, { ...reactions, onToggle: readOnly ? void 0 : reactions.onToggle }),
6262
+ refused && /* @__PURE__ */ jsxs62(FieldLine, { tone: "error", children: [
6129
6263
  "Not reacted: ",
6130
6264
  refused,
6131
6265
  "."
@@ -6133,9 +6267,9 @@ function Reactions({ reactions, refused, readOnly }) {
6133
6267
  ] });
6134
6268
  }
6135
6269
  function Editing({ author, children }) {
6136
- return /* @__PURE__ */ jsx82("div", { className: "p-2", children: /* @__PURE__ */ jsxs60("div", { className: "flex items-start gap-2", children: [
6137
- /* @__PURE__ */ jsx82(Avatar, { size: 24, src: author.picture, alt: author.name, bot: author.bot, className: "mt-1 shrink-0" }),
6138
- /* @__PURE__ */ jsx82("div", { className: "min-w-0 flex-1", children })
6270
+ return /* @__PURE__ */ jsx84("div", { className: "p-2", children: /* @__PURE__ */ jsxs62("div", { className: "flex items-start gap-2", children: [
6271
+ /* @__PURE__ */ jsx84(Avatar, { size: 24, src: author.picture, alt: author.name, bot: author.bot, className: "mt-1 shrink-0" }),
6272
+ /* @__PURE__ */ jsx84("div", { className: "min-w-0 flex-1", children })
6139
6273
  ] }) });
6140
6274
  }
6141
6275
  function stillHere(root) {
@@ -6147,8 +6281,8 @@ function stillHere(root) {
6147
6281
  }
6148
6282
  }
6149
6283
  function DeleteQuestion({ noun, onDelete, refused, onClose, children }) {
6150
- const [answered, setAnswered] = useState23(false);
6151
- return /* @__PURE__ */ jsx82(
6284
+ const [answered, setAnswered] = useState25(false);
6285
+ return /* @__PURE__ */ jsx84(
6152
6286
  ConfirmDialog,
6153
6287
  {
6154
6288
  title: `Delete this ${noun}?`,
@@ -6166,8 +6300,8 @@ function DeleteQuestion({ noun, onDelete, refused, onClose, children }) {
6166
6300
  );
6167
6301
  }
6168
6302
  function ResolveQuestion({ onResolve, refused, onClose }) {
6169
- const [answered, setAnswered] = useState23(false);
6170
- return /* @__PURE__ */ jsx82(
6303
+ const [answered, setAnswered] = useState25(false);
6304
+ return /* @__PURE__ */ jsx84(
6171
6305
  ResolveDialog,
6172
6306
  {
6173
6307
  refused: answered ? refused : void 0,
@@ -6182,7 +6316,7 @@ function ResolveQuestion({ onResolve, refused, onClose }) {
6182
6316
  );
6183
6317
  }
6184
6318
  function useEditing(editing, onEditingChange) {
6185
- const [own, setOwn] = useState23(false);
6319
+ const [own, setOwn] = useState25(false);
6186
6320
  const now = editing ?? own;
6187
6321
  const set = (next) => {
6188
6322
  if (editing === void 0) setOwn(next);
@@ -6196,11 +6330,11 @@ function ConversationCard(props) {
6196
6330
  const readOnly = (props.readOnly ?? false) || deleted;
6197
6331
  const inThreadCard = useContext14(InThreadCard);
6198
6332
  const item = useContext14(InConversationItem);
6199
- const [hovered, setHovered] = useState23(false);
6200
- const [menuOpen, setMenuOpen] = useState23(false);
6201
- const [picking, setPicking] = useState23(false);
6202
- const [resolving, setResolving] = useState23(false);
6203
- const [deleting, setDeleting] = useState23(false);
6333
+ const [hovered, setHovered] = useState25(false);
6334
+ const [menuOpen, setMenuOpen] = useState25(false);
6335
+ const [picking, setPicking] = useState25(false);
6336
+ const [resolving, setResolving] = useState25(false);
6337
+ const [deleting, setDeleting] = useState25(false);
6204
6338
  const [editing, setEditing] = useEditing(props.editing, props.onEditingChange);
6205
6339
  const isEditing = editing && !readOnly && !!editor;
6206
6340
  const overlay = menuOpen || picking || resolving || deleting;
@@ -6220,9 +6354,9 @@ function ConversationCard(props) {
6220
6354
  const reply = onReply ?? item?.show;
6221
6355
  const marked = selected ?? (item && !item.under ? item.open : void 0);
6222
6356
  const under = !!item?.under;
6223
- const repliesRow = replies && replies.count > 0 && /* @__PURE__ */ jsx82(RepliesRow, { ...replies, onOpen: replies.onOpen ?? (under ? item?.toggle : void 0), open: replies.open ?? (under && !!item?.open), urgent });
6224
- return /* @__PURE__ */ jsxs60(Fragment23, { children: [
6225
- /* @__PURE__ */ jsxs60(
6357
+ 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 });
6358
+ return /* @__PURE__ */ jsxs62(Fragment23, { children: [
6359
+ /* @__PURE__ */ jsxs62(
6226
6360
  Card,
6227
6361
  {
6228
6362
  ref: root,
@@ -6247,12 +6381,12 @@ function ConversationCard(props) {
6247
6381
  setHovered(false);
6248
6382
  },
6249
6383
  children: [
6250
- isEditing ? /* @__PURE__ */ jsx82(Editing, { author, children: editor(() => setEditing(false)) }) : /* @__PURE__ */ jsxs60("div", { "data-comment-body": true, className: "flex flex-col items-start px-2 pt-2", children: [
6251
- deleted ? /* @__PURE__ */ jsxs60(Fragment23, { children: [
6252
- !!about && /* @__PURE__ */ jsx82("div", { className: "relative w-full pl-8 pr-2", children: about }),
6253
- /* @__PURE__ */ jsx82("p", { className: cn("w-full pb-2 pl-8 pr-2 text-caption italic text-text-muted", !!about && "pt-1"), children: goneWords(isDeleted) })
6254
- ] }) : /* @__PURE__ */ jsxs60(Fragment23, { children: [
6255
- /* @__PURE__ */ jsx82(
6384
+ isEditing ? /* @__PURE__ */ jsx84(Editing, { author, children: editor(() => setEditing(false)) }) : /* @__PURE__ */ jsxs62("div", { "data-comment-body": true, className: "flex flex-col items-start px-2 pt-2", children: [
6385
+ deleted ? /* @__PURE__ */ jsxs62(Fragment23, { children: [
6386
+ !!about && /* @__PURE__ */ jsx84("div", { className: "relative w-full pl-8 pr-2", children: about }),
6387
+ /* @__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) })
6388
+ ] }) : /* @__PURE__ */ jsxs62(Fragment23, { children: [
6389
+ /* @__PURE__ */ jsx84(
6256
6390
  Head,
6257
6391
  {
6258
6392
  author,
@@ -6263,24 +6397,24 @@ function ConversationCard(props) {
6263
6397
  edited: props.edited,
6264
6398
  isNew,
6265
6399
  urgent,
6266
- meta: resolved && /* @__PURE__ */ jsx82(ResolvedCheck, { by: resolved.by, note: resolved.note, at: resolved.at }),
6400
+ meta: resolved && /* @__PURE__ */ jsx84(ResolvedCheck, { by: resolved.by, note: resolved.note, at: resolved.at }),
6267
6401
  end: wordsEnd
6268
6402
  }
6269
6403
  ),
6270
6404
  !!about && // Under the name, above the words (Katerina, 1 November).
6271
- /* @__PURE__ */ jsx82("div", { className: "relative w-full pl-8 pr-2 pt-0.5", children: about }),
6272
- /* @__PURE__ */ jsx82(Words, { children })
6405
+ /* @__PURE__ */ jsx84("div", { className: "relative w-full pl-8 pr-2 pt-0.5", children: about }),
6406
+ /* @__PURE__ */ jsx84(Words, { children })
6273
6407
  ] }),
6274
- !deleted && files && /* @__PURE__ */ jsx82("div", { className: "relative flex w-full flex-wrap items-start gap-2 pb-2 pl-8 pr-2", children: files }),
6275
- /* @__PURE__ */ jsx82(Reactions, { reactions: reactionRow, refused: reactionRefused, readOnly }),
6408
+ !deleted && files && /* @__PURE__ */ jsx84("div", { className: "relative flex w-full flex-wrap items-start gap-2 pb-2 pl-8 pr-2", children: files }),
6409
+ /* @__PURE__ */ jsx84(Reactions, { reactions: reactionRow, refused: reactionRefused, readOnly }),
6276
6410
  resolved?.note && // Who resolved it and the note, above the way into the replies; the check by the time says "Resolved" (Katerina, 1 November).
6277
- /* @__PURE__ */ jsx82("div", { className: "relative w-full pb-1", children: /* @__PURE__ */ jsx82("div", { className: "-ml-2 w-[calc(100%+8px)]", children: /* @__PURE__ */ jsx82(EndedLine, { by: resolved.by, note: resolved.note, at: resolved.at }) }) }),
6278
- repliesRow && /* @__PURE__ */ jsx82("div", { className: "relative w-full", children: repliesRow })
6411
+ /* @__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 }) }) }),
6412
+ repliesRow && /* @__PURE__ */ jsx84("div", { className: "relative w-full", children: repliesRow })
6279
6413
  ] }),
6280
6414
  dotLine && // One bar from the face to the dot, measured (useFaceLine): 2px, centred under the 24px face, 8px in.
6281
6415
  // Its top and height come from the measure: where the face ends and the dot stands are not known ahead.
6282
- /* @__PURE__ */ jsx82("span", { "aria-hidden": true, className: "pointer-events-none absolute left-[19px] w-0.5 bg-border-default", style: { top: dotLine.top, height: dotLine.height } }),
6283
- showStrip && /* @__PURE__ */ jsx82("div", { ref: strip, className: "absolute right-1 top-1 z-10", children: /* @__PURE__ */ jsx82(
6416
+ /* @__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 } }),
6417
+ showStrip && /* @__PURE__ */ jsx84("div", { ref: strip, className: "absolute right-1 top-1 z-10", children: /* @__PURE__ */ jsx84(
6284
6418
  ConversationActions,
6285
6419
  {
6286
6420
  options: reactions?.options,
@@ -6293,10 +6427,10 @@ function ConversationCard(props) {
6293
6427
  resolved: !!resolved,
6294
6428
  onResolve: onResolve && (() => setResolving(true)),
6295
6429
  onReopen,
6296
- more: offersMenu && /* @__PURE__ */ jsx82(
6430
+ more: offersMenu && /* @__PURE__ */ jsx84(
6297
6431
  ConversationMenu,
6298
6432
  {
6299
- trigger: /* @__PURE__ */ jsx82(ToolbarButton, { tooltip: moreLabel, "aria-label": moreLabel, children: /* @__PURE__ */ jsx82(IconDotsVertical4, { size: 16, stroke: 1.5 }) }),
6433
+ trigger: /* @__PURE__ */ jsx84(ToolbarButton, { tooltip: moreLabel, "aria-label": moreLabel, children: /* @__PURE__ */ jsx84(IconDotsVertical4, { size: 16, stroke: 1.5 }) }),
6300
6434
  open: menuOpen,
6301
6435
  onOpenChange: (open) => {
6302
6436
  setMenuOpen(open);
@@ -6320,25 +6454,25 @@ function ConversationCard(props) {
6320
6454
  ]
6321
6455
  }
6322
6456
  ),
6323
- deleting && onDelete && /* @__PURE__ */ jsx82(DeleteQuestion, { noun, onDelete, refused: deleteRefused, onClose: () => setDeleting(false), children: deleteNote !== void 0 ? typeof deleteNote === "string" ? /* @__PURE__ */ jsx82("p", { children: deleteNote }) : deleteNote : /* @__PURE__ */ jsxs60(Fragment23, { children: [
6324
- /* @__PURE__ */ jsx82("p", { children: "It is deleted for everyone." }),
6325
- replies && replies.count > 0 && /* @__PURE__ */ jsxs60("p", { children: [
6457
+ 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: [
6458
+ /* @__PURE__ */ jsx84("p", { children: "It is deleted for everyone." }),
6459
+ replies && replies.count > 0 && /* @__PURE__ */ jsxs62("p", { children: [
6326
6460
  "Its ",
6327
6461
  replies.count === 1 ? "reply stays" : `${replies.count} replies stay`,
6328
6462
  "."
6329
6463
  ] })
6330
6464
  ] }) }),
6331
- resolving && onResolve && /* @__PURE__ */ jsx82(ResolveQuestion, { onResolve, refused: resolveRefused, onClose: () => setResolving(false) })
6465
+ resolving && onResolve && /* @__PURE__ */ jsx84(ResolveQuestion, { onResolve, refused: resolveRefused, onClose: () => setResolving(false) })
6332
6466
  ] });
6333
6467
  }
6334
6468
  function ReplyCard(props) {
6335
6469
  const { id, author, about, files, isNew = false, urgent = false, own = false, editor, onDelete, deleteNote, deleteRefused, menu, menuAfter, menuLabel, editLabel, deleteLabel, moreLabel = "More actions", noun = "reply", className, children } = props;
6336
6470
  const { row: reactions, refused: reactionRefused } = useReactionRefusal(props.reactions);
6337
6471
  const readOnly = props.readOnly ?? false;
6338
- const [hovered, setHovered] = useState23(false);
6339
- const [menuOpen, setMenuOpen] = useState23(false);
6340
- const [picking, setPicking] = useState23(false);
6341
- const [deleting, setDeleting] = useState23(false);
6472
+ const [hovered, setHovered] = useState25(false);
6473
+ const [menuOpen, setMenuOpen] = useState25(false);
6474
+ const [picking, setPicking] = useState25(false);
6475
+ const [deleting, setDeleting] = useState25(false);
6342
6476
  const [editing, setEditing] = useEditing(props.editing, props.onEditingChange);
6343
6477
  const isEditing = editing && !readOnly && !!editor;
6344
6478
  const offersMenu = !!menu || !!menuAfter || own && (!!editor || !!onDelete);
@@ -6351,8 +6485,8 @@ function ReplyCard(props) {
6351
6485
  useLayoutEffect7(() => {
6352
6486
  if (drawn) drawn.added += 1;
6353
6487
  }, [drawn]);
6354
- return /* @__PURE__ */ jsxs60(Fragment23, { children: [
6355
- /* @__PURE__ */ jsxs60(
6488
+ return /* @__PURE__ */ jsxs62(Fragment23, { children: [
6489
+ /* @__PURE__ */ jsxs62(
6356
6490
  Card,
6357
6491
  {
6358
6492
  ref: root,
@@ -6375,15 +6509,15 @@ function ReplyCard(props) {
6375
6509
  setHovered(false);
6376
6510
  },
6377
6511
  children: [
6378
- isEditing ? /* @__PURE__ */ jsx82(Editing, { author, children: editor(() => setEditing(false)) }) : /* @__PURE__ */ jsxs60("div", { className: "flex flex-col items-start px-2 pt-2", children: [
6379
- /* @__PURE__ */ jsx82(Head, { author, time: props.time, at: props.at, timeHref: props.timeHref, timeLabel: props.timeLabel, edited: props.edited, isNew, urgent, end: wordsEnd }),
6380
- about && /* @__PURE__ */ jsx82("div", { className: "w-full pl-8 pr-2 pt-0.5", children: about }),
6381
- /* @__PURE__ */ jsx82(Words, { children }),
6382
- files && /* @__PURE__ */ jsx82("div", { className: "flex w-full flex-wrap items-start gap-2 pb-2 pl-8 pr-2", children: files }),
6383
- /* @__PURE__ */ jsx82(Reactions, { reactions, refused: reactionRefused, readOnly })
6512
+ isEditing ? /* @__PURE__ */ jsx84(Editing, { author, children: editor(() => setEditing(false)) }) : /* @__PURE__ */ jsxs62("div", { className: "flex flex-col items-start px-2 pt-2", children: [
6513
+ /* @__PURE__ */ jsx84(Head, { author, time: props.time, at: props.at, timeHref: props.timeHref, timeLabel: props.timeLabel, edited: props.edited, isNew, urgent, end: wordsEnd }),
6514
+ about && /* @__PURE__ */ jsx84("div", { className: "w-full pl-8 pr-2 pt-0.5", children: about }),
6515
+ /* @__PURE__ */ jsx84(Words, { children }),
6516
+ files && /* @__PURE__ */ jsx84("div", { className: "flex w-full flex-wrap items-start gap-2 pb-2 pl-8 pr-2", children: files }),
6517
+ /* @__PURE__ */ jsx84(Reactions, { reactions, refused: reactionRefused, readOnly })
6384
6518
  ] }),
6385
6519
  showStrip && // In a box of its own, as a comment's: the box is what the head measures to keep clear of.
6386
- /* @__PURE__ */ jsx82("div", { ref: strip, className: "absolute right-1 top-1 z-10", children: /* @__PURE__ */ jsx82(
6520
+ /* @__PURE__ */ jsx84("div", { ref: strip, className: "absolute right-1 top-1 z-10", children: /* @__PURE__ */ jsx84(
6387
6521
  ConversationActions,
6388
6522
  {
6389
6523
  options: reactions?.options,
@@ -6392,10 +6526,10 @@ function ReplyCard(props) {
6392
6526
  setPicking(open);
6393
6527
  if (!open) settle();
6394
6528
  },
6395
- more: offersMenu && /* @__PURE__ */ jsx82(
6529
+ more: offersMenu && /* @__PURE__ */ jsx84(
6396
6530
  ConversationMenu,
6397
6531
  {
6398
- trigger: /* @__PURE__ */ jsx82(ToolbarButton, { tooltip: moreLabel, "aria-label": moreLabel, children: /* @__PURE__ */ jsx82(IconDotsVertical4, { size: 16, stroke: 1.5 }) }),
6532
+ trigger: /* @__PURE__ */ jsx84(ToolbarButton, { tooltip: moreLabel, "aria-label": moreLabel, children: /* @__PURE__ */ jsx84(IconDotsVertical4, { size: 16, stroke: 1.5 }) }),
6399
6533
  open: menuOpen,
6400
6534
  onOpenChange: (next) => {
6401
6535
  setMenuOpen(next);
@@ -6415,49 +6549,49 @@ function ReplyCard(props) {
6415
6549
  ]
6416
6550
  }
6417
6551
  ),
6418
- deleting && onDelete && /* @__PURE__ */ jsx82(DeleteQuestion, { noun, onDelete, refused: deleteRefused, onClose: () => setDeleting(false), children: deleteNote === void 0 ? /* @__PURE__ */ jsx82("p", { children: "It is deleted for everyone." }) : typeof deleteNote === "string" ? /* @__PURE__ */ jsx82("p", { children: deleteNote }) : deleteNote })
6552
+ 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 })
6419
6553
  ] });
6420
6554
  }
6421
6555
 
6422
6556
  // src/ConversationLayout.tsx
6423
- import { Fragment as Fragment24, useCallback as useCallback6, useEffect as useEffect14, useLayoutEffect as useLayoutEffect8, useRef as useRef20, useState as useState25 } from "react";
6557
+ import { Fragment as Fragment24, useCallback as useCallback6, useEffect as useEffect14, useLayoutEffect as useLayoutEffect8, useRef as useRef20, useState as useState27 } from "react";
6424
6558
 
6425
6559
  // src/Panel.tsx
6426
- import { jsx as jsx83, jsxs as jsxs61 } from "react/jsx-runtime";
6560
+ import { jsx as jsx85, jsxs as jsxs63 } from "react/jsx-runtime";
6427
6561
  function Frame({ title, chevron = false, actions, header, children, footer, bodyClassName, bodyRef, onBodyScroll, className, broken = false }) {
6428
- return /* @__PURE__ */ jsxs61("div", { className: cn("flex h-full min-h-0 flex-1 flex-col", className), children: [
6429
- header ?? /* @__PURE__ */ jsx83(ContainerHeader, { title, chevron, actions }),
6562
+ return /* @__PURE__ */ jsxs63("div", { className: cn("flex h-full min-h-0 flex-1 flex-col", className), children: [
6563
+ header ?? /* @__PURE__ */ jsx85(ContainerHeader, { title, chevron, actions }),
6430
6564
  broken ? (
6431
6565
  // The message takes the room the body had and centres itself in it.
6432
- /* @__PURE__ */ jsx83("div", { className: "flex min-h-0 flex-1 flex-col px-4", children })
6433
- ) : /* @__PURE__ */ jsx83(ScrollArea, { className: "min-h-0 flex-1", contentClassName: bodyClassName, viewportRef: bodyRef, onScroll: onBodyScroll, children }),
6434
- !broken && footer && /* @__PURE__ */ jsx83("div", { className: "shrink-0", children: footer })
6566
+ /* @__PURE__ */ jsx85("div", { className: "flex min-h-0 flex-1 flex-col px-4", children })
6567
+ ) : /* @__PURE__ */ jsx85(ScrollArea, { className: "min-h-0 flex-1", contentClassName: bodyClassName, viewportRef: bodyRef, onScroll: onBodyScroll, children }),
6568
+ !broken && footer && /* @__PURE__ */ jsx85("div", { className: "shrink-0", children: footer })
6435
6569
  ] });
6436
6570
  }
6437
6571
  function Panel(props) {
6438
- return /* @__PURE__ */ jsx83(
6572
+ return /* @__PURE__ */ jsx85(
6439
6573
  ErrorBoundary,
6440
6574
  {
6441
6575
  label: "panel",
6442
6576
  frame: (message) => (
6443
6577
  // Only the name comes back with the message: the actions and the footer may be what threw.
6444
- /* @__PURE__ */ jsx83(Frame, { title: props.title, chevron: props.chevron, className: props.className, broken: true, children: message })
6578
+ /* @__PURE__ */ jsx85(Frame, { title: props.title, chevron: props.chevron, className: props.className, broken: true, children: message })
6445
6579
  ),
6446
- children: /* @__PURE__ */ jsx83(Frame, { ...props })
6580
+ children: /* @__PURE__ */ jsx85(Frame, { ...props })
6447
6581
  }
6448
6582
  );
6449
6583
  }
6450
6584
 
6451
6585
  // src/seenOnScreen.ts
6452
- import { useEffect as useEffect13, useMemo as useMemo6, useState as useState24 } from "react";
6586
+ import { useEffect as useEffect13, useMemo as useMemo6, useState as useState26 } from "react";
6453
6587
  var NONE = /* @__PURE__ */ new Set();
6454
6588
  var DWELL_MS = 1500;
6455
6589
  var TALL_ENOUGH_PX = 120;
6456
6590
  var THRESHOLDS = Array.from({ length: 11 }, (_, i) => i / 10);
6457
6591
  var watchers = /* @__PURE__ */ new WeakMap();
6458
6592
  function useSeenOnScreen(key) {
6459
- const [seen, setSeen] = useState24({ key: null, ids: NONE });
6460
- const [watcher] = useState24(() => ({ roots: /* @__PURE__ */ new Map(), watch: { current: null } }));
6593
+ const [seen, setSeen] = useState26({ key: null, ids: NONE });
6594
+ const [watcher] = useState26(() => ({ roots: /* @__PURE__ */ new Map(), watch: { current: null } }));
6461
6595
  useEffect13(() => {
6462
6596
  if (!key) return;
6463
6597
  const timers = /* @__PURE__ */ new Map();
@@ -6547,11 +6681,11 @@ function useWatchSeen(seen, root, attribute) {
6547
6681
  }
6548
6682
 
6549
6683
  // src/ConversationLayout.tsx
6550
- import { Fragment as Fragment25, jsx as jsx84, jsxs as jsxs62 } from "react/jsx-runtime";
6684
+ import { Fragment as Fragment25, jsx as jsx86, jsxs as jsxs64 } from "react/jsx-runtime";
6551
6685
  var threadOf = (item) => typeof item?.thread === "function" ? item.thread() : item?.thread;
6552
6686
  function List({ items, open, under, above, loading, empty, change, caret }) {
6553
- if (loading) return /* @__PURE__ */ jsx84(SkeletonConversation, {});
6554
- if (items.length === 0) return typeof empty === "string" ? /* @__PURE__ */ jsx84(EmptyState, { scope: "section", message: empty }) : /* @__PURE__ */ jsx84(Fragment25, { children: empty });
6687
+ if (loading) return /* @__PURE__ */ jsx86(SkeletonConversation, {});
6688
+ if (items.length === 0) return typeof empty === "string" ? /* @__PURE__ */ jsx86(EmptyState, { scope: "section", message: empty }) : /* @__PURE__ */ jsx86(Fragment25, { children: empty });
6555
6689
  const stateOf = (item) => change && item.thread ? {
6556
6690
  under,
6557
6691
  open: open === item.id,
@@ -6560,12 +6694,12 @@ function List({ items, open, under, above, loading, empty, change, caret }) {
6560
6694
  } : null;
6561
6695
  const draw2 = (item) => {
6562
6696
  if (!under) {
6563
- return /* @__PURE__ */ jsxs62(Fragment24, { children: [
6697
+ return /* @__PURE__ */ jsxs64(Fragment24, { children: [
6564
6698
  item.before,
6565
- /* @__PURE__ */ jsx84("div", { "data-conversation-item": item.id, className: cn("flex flex-col", SHOWN_CLASSES), children: /* @__PURE__ */ jsx84(InConversationItem.Provider, { value: stateOf(item), children: item.card }) })
6699
+ /* @__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 }) })
6566
6700
  ] }, item.id);
6567
6701
  }
6568
- return /* @__PURE__ */ jsx84(UnderItem, { item, isOpen: open === item.id && !!item.thread, state: stateOf(item), caret }, item.id);
6702
+ return /* @__PURE__ */ jsx86(UnderItem, { item, isOpen: open === item.id && !!item.thread, state: stateOf(item), caret }, item.id);
6569
6703
  };
6570
6704
  if (!under) {
6571
6705
  const stretches = [];
@@ -6581,11 +6715,11 @@ function List({ items, open, under, above, loading, empty, change, caret }) {
6581
6715
  seen.set(name, count);
6582
6716
  stretches.push({ key: `${item.day === void 0 ? "no-day" : `day:${name}`}#${count}`, day: item.day, items: [item] });
6583
6717
  }
6584
- return /* @__PURE__ */ jsxs62(Fragment25, { children: [
6718
+ return /* @__PURE__ */ jsxs64(Fragment25, { children: [
6585
6719
  above,
6586
6720
  stretches.map(
6587
- (stretch) => stretch.day === void 0 ? /* @__PURE__ */ jsx84(Fragment24, { children: stretch.items.map(draw2) }, stretch.key) : /* @__PURE__ */ jsxs62("div", { className: "flex flex-col gap-2", children: [
6588
- /* @__PURE__ */ jsx84(Divider, { look: "section", label: stretch.day, sticky: true }),
6721
+ (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: [
6722
+ /* @__PURE__ */ jsx86(Divider, { look: "section", label: stretch.day, sticky: true }),
6589
6723
  stretch.items.map(draw2)
6590
6724
  ] }, stretch.key)
6591
6725
  )
@@ -6593,11 +6727,11 @@ function List({ items, open, under, above, loading, empty, change, caret }) {
6593
6727
  }
6594
6728
  const resolved = items.filter((item) => item.resolved);
6595
6729
  const gone = items.filter((item) => item.gone && !item.resolved);
6596
- const group = (title, list) => list.length > 0 && /* @__PURE__ */ jsx84(
6730
+ const group = (title, list) => list.length > 0 && /* @__PURE__ */ jsx86(
6597
6731
  CollapsibleSection,
6598
6732
  {
6599
6733
  title,
6600
- trailing: /* @__PURE__ */ jsx84(Chip, { type: "neutral", label: String(list.length) }),
6734
+ trailing: /* @__PURE__ */ jsx86(Chip, { type: "neutral", label: String(list.length) }),
6601
6735
  defaultOpen: false,
6602
6736
  openFor: list.some((item) => item.id === open) ? open : void 0,
6603
6737
  className: "shrink-0",
@@ -6605,7 +6739,7 @@ function List({ items, open, under, above, loading, empty, change, caret }) {
6605
6739
  children: list.map(draw2)
6606
6740
  }
6607
6741
  );
6608
- return /* @__PURE__ */ jsxs62(Fragment25, { children: [
6742
+ return /* @__PURE__ */ jsxs64(Fragment25, { children: [
6609
6743
  above,
6610
6744
  items.filter((item) => !item.resolved && !item.gone).map(draw2),
6611
6745
  group("On deleted blocks", gone),
@@ -6615,7 +6749,7 @@ function List({ items, open, under, above, loading, empty, change, caret }) {
6615
6749
  function UnderItem({ item, isOpen, state, caret }) {
6616
6750
  const root = useRef20(null);
6617
6751
  const line = useFaceLine(root, isOpen);
6618
- return /* @__PURE__ */ jsxs62(
6752
+ return /* @__PURE__ */ jsxs64(
6619
6753
  Card,
6620
6754
  {
6621
6755
  ref: root,
@@ -6627,13 +6761,13 @@ function UnderItem({ item, isOpen, state, caret }) {
6627
6761
  quietUntilHover: !isOpen,
6628
6762
  className: cn("relative flex flex-col", isOpen && "pb-2", SHOWN_CLASSES),
6629
6763
  children: [
6630
- /* @__PURE__ */ jsx84(InConversationItem.Provider, { value: state, children: /* @__PURE__ */ jsx84(InThreadCard.Provider, { value: isOpen, children: /* @__PURE__ */ jsxs62(LineByLayout.Provider, { value: true, children: [
6631
- /* @__PURE__ */ jsx84("div", { className: "-m-px flex flex-col", children: item.card }),
6632
- isOpen && /* @__PURE__ */ jsx84(caretOnOpen.Provider, { value: caret, children: threadOf(item) })
6764
+ /* @__PURE__ */ jsx86(InConversationItem.Provider, { value: state, children: /* @__PURE__ */ jsx86(InThreadCard.Provider, { value: isOpen, children: /* @__PURE__ */ jsxs64(LineByLayout.Provider, { value: true, children: [
6765
+ /* @__PURE__ */ jsx86("div", { className: "-m-px flex flex-col", children: item.card }),
6766
+ isOpen && /* @__PURE__ */ jsx86(caretOnOpen.Provider, { value: caret, children: threadOf(item) })
6633
6767
  ] }) }) }),
6634
6768
  line && // The face's line, one bar, last so it stands over a hovered card's fill; 19px in, centred under the face.
6635
6769
  // Its top and height come from the measure: where the face and the last reply end are not known ahead.
6636
- /* @__PURE__ */ jsx84("span", { "aria-hidden": true, className: "pointer-events-none absolute left-[19px] w-0.5 bg-border-default", style: { top: line.top, height: line.height } })
6770
+ /* @__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 } })
6637
6771
  ]
6638
6772
  }
6639
6773
  );
@@ -6673,7 +6807,7 @@ function ConversationLayout({
6673
6807
  useWatchSeen(seen, body, "data-conversation-item");
6674
6808
  const pressed = useRef20(null);
6675
6809
  const itemAt = (id) => body.current?.querySelector(`[data-conversation-item="${CSS.escape(id)}"]`) ?? null;
6676
- const [caret, setCaret] = useState25(0);
6810
+ const [caret, setCaret] = useState27(0);
6677
6811
  const change = onOpenChange ? (id, next, reply = false) => {
6678
6812
  if (next !== void 0 && next === open) {
6679
6813
  if (reply) setCaret((n) => n + 1);
@@ -6743,7 +6877,7 @@ function ConversationLayout({
6743
6877
  const el = body.current;
6744
6878
  if (el) el.scrollTop = el.scrollHeight;
6745
6879
  }, [beside, items.length, loading]);
6746
- const [sends] = useState25(() => ({
6880
+ const [sends] = useState27(() => ({
6747
6881
  sending: () => {
6748
6882
  nearBottom.current = true;
6749
6883
  },
@@ -6756,72 +6890,72 @@ function ConversationLayout({
6756
6890
  // The body at least the column's height: the comments start at its top, and the note under them (`below`) is pushed
6757
6891
  // to its foot, so with few comments it sits on the box, as a short conversation's last line does in Peek's two
6758
6892
  // columns (Katerina, 2 November); with many it comes after them, and scrolls with them.
6759
- /* @__PURE__ */ jsxs62(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__ */ jsx84("div", { className: "p-3", children: box }), children: [
6760
- /* @__PURE__ */ jsx84(List, { items, open, under: true, above, loading, empty, change, caret }),
6761
- !loading && below != null && below !== false && below !== "" && /* @__PURE__ */ jsx84("div", { className: "mt-auto flex flex-col gap-2", children: below })
6893
+ /* @__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: [
6894
+ /* @__PURE__ */ jsx86(List, { items, open, under: true, above, loading, empty, change, caret }),
6895
+ !loading && below != null && below !== false && below !== "" && /* @__PURE__ */ jsx86("div", { className: "mt-auto flex flex-col gap-2", children: below })
6762
6896
  ] })
6763
6897
  );
6764
6898
  }
6765
6899
  const opened = threadOf(items.find((item) => item.id === open));
6766
6900
  const side = opened || aside;
6767
- return /* @__PURE__ */ jsxs62("div", { className: cn("flex min-h-0 min-w-0 flex-1", className), children: [
6768
- /* @__PURE__ */ jsx84(
6901
+ return /* @__PURE__ */ jsxs64("div", { className: cn("flex min-h-0 min-w-0 flex-1", className), children: [
6902
+ /* @__PURE__ */ jsx86(
6769
6903
  ErrorBoundary,
6770
6904
  {
6771
6905
  label: "conversation",
6772
- frame: (message) => /* @__PURE__ */ jsxs62("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
6773
- /* @__PURE__ */ jsx84(ContainerHeader, { title }),
6774
- /* @__PURE__ */ jsx84("div", { className: "flex min-h-0 flex-1 flex-col px-4", children: message })
6906
+ frame: (message) => /* @__PURE__ */ jsxs64("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
6907
+ /* @__PURE__ */ jsx86(ContainerHeader, { title }),
6908
+ /* @__PURE__ */ jsx86("div", { className: "flex min-h-0 flex-1 flex-col px-4", children: message })
6775
6909
  ] }),
6776
- children: /* @__PURE__ */ jsxs62("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
6910
+ children: /* @__PURE__ */ jsxs64("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
6777
6911
  header,
6778
- /* @__PURE__ */ jsxs62(ScrollArea, { className: "min-h-0 flex-1", viewportRef: setBody, onScroll: scrolled, contentClassName: "flex min-h-full flex-col", children: [
6779
- top != null && top !== false && top !== "" && /* @__PURE__ */ jsx84("div", { className: "shrink-0 px-4 pt-4", children: top }),
6780
- /* @__PURE__ */ jsx84("div", { className: "min-h-0 flex-1" }),
6781
- /* @__PURE__ */ jsxs62("div", { className: "flex shrink-0 flex-col gap-2 p-4", children: [
6782
- /* @__PURE__ */ jsx84(List, { items, open, under: false, above, loading, empty, change, caret }),
6912
+ /* @__PURE__ */ jsxs64(ScrollArea, { className: "min-h-0 flex-1", viewportRef: setBody, onScroll: scrolled, contentClassName: "flex min-h-full flex-col", children: [
6913
+ top != null && top !== false && top !== "" && /* @__PURE__ */ jsx86("div", { className: "shrink-0 px-4 pt-4", children: top }),
6914
+ /* @__PURE__ */ jsx86("div", { className: "min-h-0 flex-1" }),
6915
+ /* @__PURE__ */ jsxs64("div", { className: "flex shrink-0 flex-col gap-2 p-4", children: [
6916
+ /* @__PURE__ */ jsx86(List, { items, open, under: false, above, loading, empty, change, caret }),
6783
6917
  !loading && below
6784
6918
  ] })
6785
6919
  ] }),
6786
- box && /* @__PURE__ */ jsx84("div", { className: "shrink-0 p-3", children: /* @__PURE__ */ jsx84(sendsInLayout.Provider, { value: sends, children: box }) })
6920
+ box && /* @__PURE__ */ jsx86("div", { className: "shrink-0 p-3", children: /* @__PURE__ */ jsx86(sendsInLayout.Provider, { value: sends, children: box }) })
6787
6921
  ] })
6788
6922
  }
6789
6923
  ),
6790
6924
  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.
6791
6925
  // One catch per thread, and one for the aside: a thread that threw is let go once it is closed or another opens,
6792
6926
  // as Peek's column, drawn only while a thread was open, let it go on closing. Each thread is drawn afresh.
6793
- /* @__PURE__ */ jsx84("div", { className: "flex w-[384px] shrink-0 flex-col overflow-hidden border-l border-border-subtle", children: /* @__PURE__ */ jsx84(ErrorBoundary, { label: "thread panel", children: opened ? /* @__PURE__ */ jsx84(caretOnOpen.Provider, { value: caret, children: opened }) : aside }, opened ? `thread:${open}` : "aside") })
6927
+ /* @__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") })
6794
6928
  ] });
6795
6929
  }
6796
6930
 
6797
6931
  // src/ConversationPlace.tsx
6798
- import { jsx as jsx85, jsxs as jsxs63 } from "react/jsx-runtime";
6932
+ import { jsx as jsx87, jsxs as jsxs65 } from "react/jsx-runtime";
6799
6933
  function ConversationPlace({ relation, place, children, className, ...props }) {
6800
- return /* @__PURE__ */ jsxs63("div", { className: cn("flex flex-col gap-1", className), ...props, children: [
6801
- /* @__PURE__ */ jsxs63("div", { className: "flex items-center gap-2", children: [
6802
- /* @__PURE__ */ jsx85(Chip, { type: "neutral", label: relation }),
6803
- place && /* @__PURE__ */ jsx85("span", { className: "truncate text-caption text-text-muted", children: place })
6934
+ return /* @__PURE__ */ jsxs65("div", { className: cn("flex flex-col gap-1", className), ...props, children: [
6935
+ /* @__PURE__ */ jsxs65("div", { className: "flex items-center gap-2", children: [
6936
+ /* @__PURE__ */ jsx87(Chip, { type: "neutral", label: relation }),
6937
+ place && /* @__PURE__ */ jsx87("span", { className: "truncate text-caption text-text-muted", children: place })
6804
6938
  ] }),
6805
6939
  children
6806
6940
  ] });
6807
6941
  }
6808
6942
 
6809
6943
  // src/QuotedLine.tsx
6810
- import { jsx as jsx86, jsxs as jsxs64 } from "react/jsx-runtime";
6944
+ import { jsx as jsx88, jsxs as jsxs66 } from "react/jsx-runtime";
6811
6945
  var SINCE = { reworded: "Changed since", gone: "Deleted from the page" };
6812
6946
  function QuotedLine({ words, state = "here", label }) {
6813
6947
  const shown2 = words ?? label ?? "";
6814
6948
  const inThePage = !!words && state === "here";
6815
- return /* @__PURE__ */ jsxs64("div", { "data-quoted": words ? state : "part", className: "flex w-full min-w-0 flex-col gap-0.5", children: [
6816
- /* @__PURE__ */ jsx86(WithTooltip, { label: shown2, wrapperClassName: "flex min-w-0", children: /* @__PURE__ */ jsx86("p", { className: "line-clamp-2 text-caption text-text-secondary", children: /* @__PURE__ */ jsx86("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 }) }) }),
6817
- state !== "here" && /* @__PURE__ */ jsx86("span", { className: "text-caption italic text-text-muted", children: SINCE[state] })
6949
+ return /* @__PURE__ */ jsxs66("div", { "data-quoted": words ? state : "part", className: "flex w-full min-w-0 flex-col gap-0.5", children: [
6950
+ /* @__PURE__ */ jsx88(WithTooltip, { label: shown2, wrapperClassName: "flex min-w-0", children: /* @__PURE__ */ jsx88("p", { className: "line-clamp-2 text-caption text-text-secondary", children: /* @__PURE__ */ jsx88("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 }) }) }),
6951
+ state !== "here" && /* @__PURE__ */ jsx88("span", { className: "text-caption italic text-text-muted", children: SINCE[state] })
6818
6952
  ] });
6819
6953
  }
6820
6954
 
6821
6955
  // src/ReactionHorizon.tsx
6822
- import { Fragment as Fragment26, jsx as jsx87, jsxs as jsxs65 } from "react/jsx-runtime";
6956
+ import { Fragment as Fragment26, jsx as jsx89, jsxs as jsxs67 } from "react/jsx-runtime";
6823
6957
  function Said({ limit, omitted, noun }) {
6824
- return /* @__PURE__ */ jsxs65(Fragment26, { children: [
6958
+ return /* @__PURE__ */ jsxs67(Fragment26, { children: [
6825
6959
  "Reactions are shown for the latest ",
6826
6960
  limit,
6827
6961
  " ",
@@ -6834,11 +6968,11 @@ function Said({ limit, omitted, noun }) {
6834
6968
  ] });
6835
6969
  }
6836
6970
  function ReactionHorizon({ limit, omitted, cut = false, noun = "comments", keepRoom = false }) {
6837
- const room = keepRoom && omitted <= 0 && /* @__PURE__ */ jsx87("p", { "aria-hidden": true, className: "invisible text-caption text-text-muted", children: /* @__PURE__ */ jsx87(Said, { limit, omitted: 1, noun }) });
6971
+ const room = keepRoom && omitted <= 0 && /* @__PURE__ */ jsx89("p", { "aria-hidden": true, className: "invisible text-caption text-text-muted", children: /* @__PURE__ */ jsx89(Said, { limit, omitted: 1, noun }) });
6838
6972
  if (omitted <= 0 && !cut) return room || null;
6839
- return /* @__PURE__ */ jsxs65(Fragment26, { children: [
6840
- /* @__PURE__ */ jsxs65("p", { className: "text-caption text-text-muted", children: [
6841
- omitted > 0 && /* @__PURE__ */ jsx87(Said, { limit, omitted, noun }),
6973
+ return /* @__PURE__ */ jsxs67(Fragment26, { children: [
6974
+ /* @__PURE__ */ jsxs67("p", { className: "text-caption text-text-muted", children: [
6975
+ omitted > 0 && /* @__PURE__ */ jsx89(Said, { limit, omitted, noun }),
6842
6976
  omitted > 0 && cut && " ",
6843
6977
  cut && "Some reactions may be missing."
6844
6978
  ] }),
@@ -6847,19 +6981,19 @@ function ReactionHorizon({ limit, omitted, cut = false, noun = "comments", keepR
6847
6981
  }
6848
6982
 
6849
6983
  // src/ArchiveDialog.tsx
6850
- import { useState as useState26 } from "react";
6851
- import { jsx as jsx88, jsxs as jsxs66 } from "react/jsx-runtime";
6984
+ import { useState as useState28 } from "react";
6985
+ import { jsx as jsx90, jsxs as jsxs68 } from "react/jsx-runtime";
6852
6986
  var listOf = (parts) => parts.length <= 1 ? parts[0] ?? "" : `${parts.slice(0, -1).join(", ")} and ${parts.at(-1)}`;
6853
6987
  function ArchiveDialog({ title, what, hides, staysVisible = [], apps, getBack, onClose, onArchive }) {
6854
- const [resolution, setResolution] = useState26("");
6988
+ const [resolution, setResolution] = useState28("");
6855
6989
  const where = apps.length ? `, ${listOf(apps.map((app) => `in ${app}`))}` : "";
6856
- return /* @__PURE__ */ jsxs66(FormDialog, { title: `Archive \u201C${title}\u201D?`, submitLabel: `Archive ${what}`, ready: hides !== null, onSubmit: () => onArchive(resolution.trim()), onClose, children: [
6857
- /* @__PURE__ */ jsxs66("div", { className: "flex flex-col gap-2 text-body-2 text-text-primary", children: [
6858
- /* @__PURE__ */ jsx88("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}.` }),
6859
- staysVisible.length > 0 && /* @__PURE__ */ jsx88("p", { children: `${listOf(staysVisible)} stay visible there.` }),
6860
- /* @__PURE__ */ jsx88("p", { className: "text-text-secondary", children: getBack })
6990
+ return /* @__PURE__ */ jsxs68(FormDialog, { title: `Archive \u201C${title}\u201D?`, submitLabel: `Archive ${what}`, ready: hides !== null, onSubmit: () => onArchive(resolution.trim()), onClose, children: [
6991
+ /* @__PURE__ */ jsxs68("div", { className: "flex flex-col gap-2 text-body-2 text-text-primary", children: [
6992
+ /* @__PURE__ */ jsx90("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}.` }),
6993
+ staysVisible.length > 0 && /* @__PURE__ */ jsx90("p", { children: `${listOf(staysVisible)} stay visible there.` }),
6994
+ /* @__PURE__ */ jsx90("p", { className: "text-text-secondary", children: getBack })
6861
6995
  ] }),
6862
- /* @__PURE__ */ jsx88(Field, { label: "Resolution (optional)", children: /* @__PURE__ */ jsx88(
6996
+ /* @__PURE__ */ jsx90(Field, { label: "Resolution (optional)", children: /* @__PURE__ */ jsx90(
6863
6997
  Textarea,
6864
6998
  {
6865
6999
  value: resolution,
@@ -6872,21 +7006,21 @@ function ArchiveDialog({ title, what, hides, staysVisible = [], apps, getBack, o
6872
7006
  }
6873
7007
 
6874
7008
  // src/ArchivedNotice.tsx
6875
- import { useState as useState27 } from "react";
7009
+ import { useState as useState29 } from "react";
6876
7010
  import { IconArchive } from "@tabler/icons-react";
6877
- import { jsx as jsx89, jsxs as jsxs67 } from "react/jsx-runtime";
7011
+ import { jsx as jsx91, jsxs as jsxs69 } from "react/jsx-runtime";
6878
7012
  function ArchivedNotice({ by, when, resolution, withWhat, withTitle, onUnarchive, onOpenParent }) {
6879
- const [unarchiving, setUnarchiving] = useState27(false);
7013
+ const [unarchiving, setUnarchiving] = useState29(false);
6880
7014
  const parent = withWhat ?? (withTitle ? "parent" : void 0);
6881
7015
  const named2 = withTitle ? ` \u201C${withTitle}\u201D` : "";
6882
7016
  const line = parent ? `Archived with its ${parent}${named2} by ${by} \xB7 ${when}` : `Archived by ${by} \xB7 ${when}`;
6883
- return /* @__PURE__ */ jsxs67(Card, { fill: "inset", className: "flex items-start gap-3 px-4 py-3", children: [
6884
- /* @__PURE__ */ jsx89(IconArchive, { size: 16, stroke: 1.5, className: "mt-0.5 shrink-0 text-text-muted" }),
6885
- /* @__PURE__ */ jsxs67("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
6886
- /* @__PURE__ */ jsx89("span", { className: "text-body-2-strong text-text-primary", children: line }),
6887
- resolution && /* @__PURE__ */ jsx89("p", { className: "whitespace-pre-wrap text-caption text-text-secondary", children: resolution })
7017
+ return /* @__PURE__ */ jsxs69(Card, { fill: "inset", className: "flex items-start gap-3 px-4 py-3", children: [
7018
+ /* @__PURE__ */ jsx91(IconArchive, { size: 16, stroke: 1.5, className: "mt-0.5 shrink-0 text-text-muted" }),
7019
+ /* @__PURE__ */ jsxs69("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
7020
+ /* @__PURE__ */ jsx91("span", { className: "text-body-2-strong text-text-primary", children: line }),
7021
+ resolution && /* @__PURE__ */ jsx91("p", { className: "whitespace-pre-wrap text-caption text-text-secondary", children: resolution })
6888
7022
  ] }),
6889
- parent ? onOpenParent && /* @__PURE__ */ jsx89(Button, { variant: "outlined", size: "small", className: "shrink-0", onClick: onOpenParent, children: `Open ${parent}` }) : onUnarchive && /* @__PURE__ */ jsx89(
7023
+ parent ? onOpenParent && /* @__PURE__ */ jsx91(Button, { variant: "outlined", size: "small", className: "shrink-0", onClick: onOpenParent, children: `Open ${parent}` }) : onUnarchive && /* @__PURE__ */ jsx91(
6890
7024
  Button,
6891
7025
  {
6892
7026
  variant: "outlined",
@@ -6904,15 +7038,15 @@ function ArchivedNotice({ by, when, resolution, withWhat, withTitle, onUnarchive
6904
7038
  }
6905
7039
 
6906
7040
  // src/DeletedNotice.tsx
6907
- import { useState as useState28 } from "react";
7041
+ import { useState as useState30 } from "react";
6908
7042
  import { IconTrash } from "@tabler/icons-react";
6909
- import { jsx as jsx90, jsxs as jsxs68 } from "react/jsx-runtime";
7043
+ import { jsx as jsx92, jsxs as jsxs70 } from "react/jsx-runtime";
6910
7044
  function DeletedNotice({ by, when, onRestore }) {
6911
- const [restoring, setRestoring] = useState28(false);
6912
- return /* @__PURE__ */ jsxs68(Card, { fill: "inset", className: "flex items-start gap-3 px-4 py-3", children: [
6913
- /* @__PURE__ */ jsx90(IconTrash, { size: 16, stroke: 1.5, className: "mt-0.5 shrink-0 text-text-muted" }),
6914
- /* @__PURE__ */ jsx90("span", { className: "min-w-0 flex-1 text-body-2-strong text-text-primary", children: `Deleted by ${by} \xB7 ${when}` }),
6915
- onRestore && /* @__PURE__ */ jsx90(
7045
+ const [restoring, setRestoring] = useState30(false);
7046
+ return /* @__PURE__ */ jsxs70(Card, { fill: "inset", className: "flex items-start gap-3 px-4 py-3", children: [
7047
+ /* @__PURE__ */ jsx92(IconTrash, { size: 16, stroke: 1.5, className: "mt-0.5 shrink-0 text-text-muted" }),
7048
+ /* @__PURE__ */ jsx92("span", { className: "min-w-0 flex-1 text-body-2-strong text-text-primary", children: `Deleted by ${by} \xB7 ${when}` }),
7049
+ onRestore && /* @__PURE__ */ jsx92(
6916
7050
  Button,
6917
7051
  {
6918
7052
  variant: "outlined",
@@ -6931,21 +7065,21 @@ function DeletedNotice({ by, when, onRestore }) {
6931
7065
 
6932
7066
  // src/NoAccessNotice.tsx
6933
7067
  import { IconLock } from "@tabler/icons-react";
6934
- import { jsx as jsx91 } from "react/jsx-runtime";
7068
+ import { jsx as jsx93 } from "react/jsx-runtime";
6935
7069
  function NoAccessNotice({ what }) {
6936
- return /* @__PURE__ */ jsx91(EmptyState, { scope: "page", icon: /* @__PURE__ */ jsx91(IconLock, { size: 16, stroke: 1.5 }), message: `You can't open this ${what}` });
7070
+ return /* @__PURE__ */ jsx93(EmptyState, { scope: "page", icon: /* @__PURE__ */ jsx93(IconLock, { size: 16, stroke: 1.5 }), message: `You can't open this ${what}` });
6937
7071
  }
6938
7072
 
6939
7073
  // src/Thread.tsx
6940
- import { Children, useCallback as useCallback7, useContext as useContext15, useLayoutEffect as useLayoutEffect9, useRef as useRef21, useState as useState29 } from "react";
7074
+ import { Children, useCallback as useCallback7, useContext as useContext15, useLayoutEffect as useLayoutEffect9, useRef as useRef21, useState as useState31 } from "react";
6941
7075
  import { IconX as IconX6 } from "@tabler/icons-react";
6942
- import { Fragment as Fragment27, jsx as jsx92, jsxs as jsxs69 } from "react/jsx-runtime";
7076
+ import { Fragment as Fragment27, jsx as jsx94, jsxs as jsxs71 } from "react/jsx-runtime";
6943
7077
  var always = () => true;
6944
7078
  var anyIn = (children) => Children.toArray(children).length > 0;
6945
7079
  function Replies({ children, loading, empty }) {
6946
- if (loading) return /* @__PURE__ */ jsx92(SkeletonConversation, {});
6947
- if (!anyIn(children)) return typeof empty === "string" ? /* @__PURE__ */ jsx92(EmptyState, { scope: "section", message: empty }) : /* @__PURE__ */ jsx92(Fragment27, { children: empty });
6948
- return /* @__PURE__ */ jsx92(Fragment27, { children });
7080
+ if (loading) return /* @__PURE__ */ jsx94(SkeletonConversation, {});
7081
+ if (!anyIn(children)) return typeof empty === "string" ? /* @__PURE__ */ jsx94(EmptyState, { scope: "section", message: empty }) : /* @__PURE__ */ jsx94(Fragment27, { children: empty });
7082
+ return /* @__PURE__ */ jsx94(Fragment27, { children });
6949
7083
  }
6950
7084
  function Thread({
6951
7085
  place = "beside",
@@ -6975,7 +7109,7 @@ function Thread({
6975
7109
  );
6976
7110
  const under = useRef21(null);
6977
7111
  useWatchSeen(seen, place === "under" ? under : body, "data-reply-id");
6978
- const [drawn] = useState29(() => ({ added: 0 }));
7112
+ const [drawn] = useState31(() => ({ added: 0 }));
6979
7113
  const last = useRef21(null);
6980
7114
  const steady = useSteadyScroll(body, void 0, always, start?.id, place === "beside");
6981
7115
  useLayoutEffect9(() => {
@@ -6990,36 +7124,36 @@ function Thread({
6990
7124
  const foot = notice ?? box;
6991
7125
  const layoutLine = useContext15(LineByLayout);
6992
7126
  if (place === "under") {
6993
- return /* @__PURE__ */ jsxs69("div", { ref: under, "data-thread": "under", className: cn("flex flex-col", className), children: [
7127
+ return /* @__PURE__ */ jsxs71("div", { ref: under, "data-thread": "under", className: cn("flex flex-col", className), children: [
6994
7128
  (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).
6995
7129
  // 8px from the one card's right edge too, as the box under them: a hovered reply never touches it (Katerina, 31 October).
6996
7130
  // 2px, as the line from the comment's face that runs into it (Katerina, 1 November), and drawn the same way, a
6997
7131
  // filled bar rather than a border: a border snaps to the screen's pixels on its own, and at some zooms the two
6998
7132
  // stood a pixel apart (Katerina: "the line breaks in the middle").
6999
- /* @__PURE__ */ jsxs69("div", { "data-thread-replies": true, className: "relative ml-[19px] mr-2 flex flex-col gap-1 pl-2.5", children: [
7000
- !layoutLine && /* @__PURE__ */ jsx92("span", { "aria-hidden": true, className: "absolute bottom-0 left-0 top-0 w-0.5 bg-border-default" }),
7001
- /* @__PURE__ */ jsx92(caretOnOpen.Provider, { value: 0, children: loading ? /* @__PURE__ */ jsx92(SkeletonConversation, {}) : children })
7133
+ /* @__PURE__ */ jsxs71("div", { "data-thread-replies": true, className: "relative ml-[19px] mr-2 flex flex-col gap-1 pl-2.5", children: [
7134
+ !layoutLine && /* @__PURE__ */ jsx94("span", { "aria-hidden": true, className: "absolute bottom-0 left-0 top-0 w-0.5 bg-border-default" }),
7135
+ /* @__PURE__ */ jsx94(caretOnOpen.Provider, { value: 0, children: loading ? /* @__PURE__ */ jsx94(SkeletonConversation, {}) : children })
7002
7136
  ] }),
7003
- foot && /* @__PURE__ */ jsx92("div", { className: "px-2 pt-2", children: foot })
7137
+ foot && /* @__PURE__ */ jsx94("div", { className: "px-2 pt-2", children: foot })
7004
7138
  ] });
7005
7139
  }
7006
- return /* @__PURE__ */ jsxs69(
7140
+ return /* @__PURE__ */ jsxs71(
7007
7141
  Panel,
7008
7142
  {
7009
7143
  className,
7010
7144
  bodyRef: setBody,
7011
7145
  bodyClassName: "flex flex-col",
7012
7146
  title,
7013
- actions: /* @__PURE__ */ jsxs69(Fragment27, { children: [
7014
- resolved && /* @__PURE__ */ jsx92(Chip, { type: "success", label: "Resolved" }),
7147
+ actions: /* @__PURE__ */ jsxs71(Fragment27, { children: [
7148
+ resolved && /* @__PURE__ */ jsx94(Chip, { type: "success", label: "Resolved" }),
7015
7149
  actions,
7016
- onClose && /* @__PURE__ */ jsx92(IconButton, { tooltip: "Close", "aria-label": closeLabel, onClick: onClose, children: /* @__PURE__ */ jsx92(IconX6, { size: 16, stroke: 1.5 }) })
7150
+ onClose && /* @__PURE__ */ jsx94(IconButton, { tooltip: "Close", "aria-label": closeLabel, onClick: onClose, children: /* @__PURE__ */ jsx94(IconX6, { size: 16, stroke: 1.5 }) })
7017
7151
  ] }),
7018
- footer: foot && /* @__PURE__ */ jsx92("div", { className: "p-3", children: foot }),
7152
+ footer: foot && /* @__PURE__ */ jsx94("div", { className: "p-3", children: foot }),
7019
7153
  children: [
7020
- start && /* @__PURE__ */ jsx92("div", { className: cn("px-4 pb-2 pt-4", SHOWN_CLASSES), "data-thread-start": start.id, children: /* @__PURE__ */ jsx92(PinnedComment, { author: start.author, time: start.time, at: start.at, words: start.words, deleted: start.deleted, unseen: start.unseen }) }),
7021
- /* @__PURE__ */ jsx92(Divider, { look: "section", label: "Replies", className: "px-4 py-2" }),
7022
- /* @__PURE__ */ jsx92("div", { className: "flex flex-col gap-2 px-4 pb-4", children: /* @__PURE__ */ jsx92(caretOnOpen.Provider, { value: 0, children: /* @__PURE__ */ jsx92(repliesDrawn.Provider, { value: drawn, children: /* @__PURE__ */ jsx92(Replies, { loading, empty, children }) }) }) })
7154
+ start && /* @__PURE__ */ jsx94("div", { className: cn("px-4 pb-2 pt-4", SHOWN_CLASSES), "data-thread-start": start.id, children: /* @__PURE__ */ jsx94(PinnedComment, { author: start.author, time: start.time, at: start.at, words: start.words, deleted: start.deleted, unseen: start.unseen }) }),
7155
+ /* @__PURE__ */ jsx94(Divider, { look: "section", label: "Replies", className: "px-4 py-2" }),
7156
+ /* @__PURE__ */ jsx94("div", { className: "flex flex-col gap-2 px-4 pb-4", children: /* @__PURE__ */ jsx94(caretOnOpen.Provider, { value: 0, children: /* @__PURE__ */ jsx94(repliesDrawn.Provider, { value: drawn, children: /* @__PURE__ */ jsx94(Replies, { loading, empty, children }) }) }) })
7023
7157
  ]
7024
7158
  }
7025
7159
  );
@@ -7072,9 +7206,9 @@ function showInConversationWhenDrawn(id, { wait = WAIT_MS, ...options } = {}) {
7072
7206
  // src/SearchInput.tsx
7073
7207
  import "react";
7074
7208
  import { Input as Input3 } from "@base-ui/react/input";
7075
- import { jsx as jsx93, jsxs as jsxs70 } from "react/jsx-runtime";
7209
+ import { jsx as jsx95, jsxs as jsxs72 } from "react/jsx-runtime";
7076
7210
  function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...props }) {
7077
- return /* @__PURE__ */ jsxs70(
7211
+ return /* @__PURE__ */ jsxs72(
7078
7212
  "div",
7079
7213
  {
7080
7214
  className: cn(
@@ -7086,7 +7220,7 @@ function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...pro
7086
7220
  className
7087
7221
  ),
7088
7222
  children: [
7089
- /* @__PURE__ */ jsx93(
7223
+ /* @__PURE__ */ jsx95(
7090
7224
  Input3,
7091
7225
  {
7092
7226
  className: cn("flex-1 min-w-0 text-input-value", BARE_INPUT_CLASSES),
@@ -7094,7 +7228,7 @@ function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...pro
7094
7228
  ...props
7095
7229
  }
7096
7230
  ),
7097
- shortcut && /* @__PURE__ */ jsx93(Kbd, { children: shortcut })
7231
+ shortcut && /* @__PURE__ */ jsx95(Kbd, { children: shortcut })
7098
7232
  ]
7099
7233
  }
7100
7234
  );
@@ -7103,37 +7237,37 @@ function SearchInput({ shortcut, className, placeholder = "Search\u2026", ...pro
7103
7237
  // src/PageHeader.tsx
7104
7238
  import { Fragment as Fragment28 } from "react";
7105
7239
  import { IconLock as IconLock2 } from "@tabler/icons-react";
7106
- import { Fragment as Fragment29, jsx as jsx94, jsxs as jsxs71 } from "react/jsx-runtime";
7240
+ import { Fragment as Fragment29, jsx as jsx96, jsxs as jsxs73 } from "react/jsx-runtime";
7107
7241
  function PageHeader({ title, leading, private: locked = false, after, meta, time, members, actions, className }) {
7108
7242
  const words = (meta ?? []).map((one) => typeof one === "string" ? { label: one } : one);
7109
7243
  const quiet = words.length > 0 || time != null || members != null;
7110
- const name = /* @__PURE__ */ jsxs71("div", { className: "flex min-w-0 items-center gap-2", children: [
7111
- leading != null && /* @__PURE__ */ jsx94("span", { className: "flex shrink-0 items-center text-text-secondary", children: leading }),
7112
- locked && /* @__PURE__ */ jsx94(WithTooltip, { label: "Private", children: /* @__PURE__ */ jsx94(IconLock2, { size: 16, stroke: 1.5, role: "img", "aria-label": "Private", className: "shrink-0 text-text-secondary" }) }),
7113
- typeof title === "string" ? /* @__PURE__ */ jsx94("span", { className: "truncate text-body-2-strong text-text-primary", children: title }) : /* @__PURE__ */ jsx94("div", { className: "flex min-w-0 items-center", children: title }),
7114
- after != null && /* @__PURE__ */ jsx94("span", { className: "flex shrink-0 items-center", children: after })
7244
+ const name = /* @__PURE__ */ jsxs73("div", { className: "flex min-w-0 items-center gap-2", children: [
7245
+ leading != null && /* @__PURE__ */ jsx96("span", { className: "flex shrink-0 items-center text-text-secondary", children: leading }),
7246
+ locked && /* @__PURE__ */ jsx96(WithTooltip, { label: "Private", children: /* @__PURE__ */ jsx96(IconLock2, { size: 16, stroke: 1.5, role: "img", "aria-label": "Private", className: "shrink-0 text-text-secondary" }) }),
7247
+ typeof title === "string" ? /* @__PURE__ */ jsx96("span", { className: "truncate text-body-2-strong text-text-primary", children: title }) : /* @__PURE__ */ jsx96("div", { className: "flex min-w-0 items-center", children: title }),
7248
+ after != null && /* @__PURE__ */ jsx96("span", { className: "flex shrink-0 items-center", children: after })
7115
7249
  ] });
7116
- const right = quiet || actions != null ? /* @__PURE__ */ jsxs71(Fragment29, { children: [
7250
+ const right = quiet || actions != null ? /* @__PURE__ */ jsxs73(Fragment29, { children: [
7117
7251
  quiet && // The quiet group: 12px between its parts, and 12px clear of the buttons — the bar sets
7118
7252
  // its actions 4px apart, so the group adds the other 8px, as Peek's and Leaf's bars do.
7119
- /* @__PURE__ */ jsxs71("div", { className: cn("flex items-center gap-3", actions != null && "pr-2"), children: [
7120
- words.length > 0 && /* @__PURE__ */ jsx94("div", { className: "flex items-center gap-2", children: words.map((one, i) => /* @__PURE__ */ jsxs71(Fragment28, { children: [
7253
+ /* @__PURE__ */ jsxs73("div", { className: cn("flex items-center gap-3", actions != null && "pr-2"), children: [
7254
+ words.length > 0 && /* @__PURE__ */ jsx96("div", { className: "flex items-center gap-2", children: words.map((one, i) => /* @__PURE__ */ jsxs73(Fragment28, { children: [
7121
7255
  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
7122
- /* @__PURE__ */ jsx94("span", { "aria-hidden": "true", className: "size-[3px] shrink-0 rounded-full bg-text-muted" }),
7123
- /* @__PURE__ */ jsx94(MetaText, { tone: one.done ? "success" : "secondary", children: one.label })
7256
+ /* @__PURE__ */ jsx96("span", { "aria-hidden": "true", className: "size-[3px] shrink-0 rounded-full bg-text-muted" }),
7257
+ /* @__PURE__ */ jsx96(MetaText, { tone: one.done ? "success" : "secondary", children: one.label })
7124
7258
  ] }, `${one.label}-${i}`)) }),
7125
- time && /* @__PURE__ */ jsx94(WithTooltip, { label: time.exact, children: /* @__PURE__ */ jsx94("span", { className: "whitespace-nowrap text-caption italic text-text-muted", children: time.label }) }),
7259
+ time && /* @__PURE__ */ jsx96(WithTooltip, { label: time.exact, children: /* @__PURE__ */ jsx96("span", { className: "whitespace-nowrap text-caption italic text-text-muted", children: time.label }) }),
7126
7260
  members
7127
7261
  ] }),
7128
7262
  actions
7129
7263
  ] }) : void 0;
7130
- return /* @__PURE__ */ jsx94(ContainerHeader, { title: name, actions: right, className });
7264
+ return /* @__PURE__ */ jsx96(ContainerHeader, { title: name, actions: right, className });
7131
7265
  }
7132
7266
 
7133
7267
  // src/ListColumn.tsx
7134
- import { jsx as jsx95, jsxs as jsxs72 } from "react/jsx-runtime";
7268
+ import { jsx as jsx97, jsxs as jsxs74 } from "react/jsx-runtime";
7135
7269
  function Column({ title, chevron = false, titleMenu, actions, above, collapsed = false, children, className, broken = false }) {
7136
- return /* @__PURE__ */ jsxs72(
7270
+ return /* @__PURE__ */ jsxs74(
7137
7271
  "div",
7138
7272
  {
7139
7273
  className: cn(
@@ -7146,35 +7280,35 @@ function Column({ title, chevron = false, titleMenu, actions, above, collapsed =
7146
7280
  "data-collapsed": collapsed || void 0,
7147
7281
  inert: collapsed,
7148
7282
  children: [
7149
- /* @__PURE__ */ jsx95(ContainerHeader, { title, chevron, titleMenu, actions }),
7283
+ /* @__PURE__ */ jsx97(ContainerHeader, { title, chevron, titleMenu, actions }),
7150
7284
  above,
7151
7285
  broken ? (
7152
7286
  // The message takes the room the list had and centres itself in it (Katerina, 19 September).
7153
- /* @__PURE__ */ jsx95("div", { className: "flex min-h-0 flex-1 flex-col px-3", children })
7154
- ) : /* @__PURE__ */ jsx95(ScrollArea, { className: "flex-1", contentClassName: "flex flex-col gap-0.5 px-3 pt-4 pb-3", children })
7287
+ /* @__PURE__ */ jsx97("div", { className: "flex min-h-0 flex-1 flex-col px-3", children })
7288
+ ) : /* @__PURE__ */ jsx97(ScrollArea, { className: "flex-1", contentClassName: "flex flex-col gap-0.5 px-3 pt-4 pb-3", children })
7155
7289
  ]
7156
7290
  }
7157
7291
  );
7158
7292
  }
7159
7293
  function ListColumn(props) {
7160
- return /* @__PURE__ */ jsx95(
7294
+ return /* @__PURE__ */ jsx97(
7161
7295
  ErrorBoundary,
7162
7296
  {
7163
7297
  label: "list panel",
7164
7298
  frame: (message) => (
7165
7299
  // Only the name comes back with the message: the actions and the row above may be what threw.
7166
- /* @__PURE__ */ jsx95(Column, { title: props.title, chevron: props.chevron, collapsed: props.collapsed, className: props.className, broken: true, children: message })
7300
+ /* @__PURE__ */ jsx97(Column, { title: props.title, chevron: props.chevron, collapsed: props.collapsed, className: props.className, broken: true, children: message })
7167
7301
  ),
7168
- children: /* @__PURE__ */ jsx95(Column, { ...props })
7302
+ children: /* @__PURE__ */ jsx97(Column, { ...props })
7169
7303
  }
7170
7304
  );
7171
7305
  }
7172
7306
 
7173
7307
  // src/Tabs.tsx
7174
7308
  import { Tabs as BaseTabs } from "@base-ui/react/tabs";
7175
- import { Fragment as Fragment30, jsx as jsx96, jsxs as jsxs73 } from "react/jsx-runtime";
7309
+ import { Fragment as Fragment30, jsx as jsx98, jsxs as jsxs75 } from "react/jsx-runtime";
7176
7310
  function Tabs({ tabs, active, onChange, size = "default", className, ...aria }) {
7177
- return /* @__PURE__ */ jsx96(
7311
+ return /* @__PURE__ */ jsx98(
7178
7312
  BaseTabs.Root,
7179
7313
  {
7180
7314
  value: active,
@@ -7182,14 +7316,14 @@ function Tabs({ tabs, active, onChange, size = "default", className, ...aria })
7182
7316
  if (details.reason === "none") onChange(value);
7183
7317
  },
7184
7318
  className,
7185
- children: /* @__PURE__ */ jsx96(
7319
+ children: /* @__PURE__ */ jsx98(
7186
7320
  BaseTabs.List,
7187
7321
  {
7188
7322
  activateOnFocus: true,
7189
7323
  "aria-label": aria["aria-label"],
7190
7324
  "aria-labelledby": aria["aria-labelledby"],
7191
7325
  className: "flex items-center gap-2",
7192
- children: tabs.map((tab) => /* @__PURE__ */ jsxs73(
7326
+ children: tabs.map((tab) => /* @__PURE__ */ jsxs75(
7193
7327
  BaseTabs.Tab,
7194
7328
  {
7195
7329
  value: tab.id,
@@ -7202,13 +7336,13 @@ function Tabs({ tabs, active, onChange, size = "default", className, ...aria })
7202
7336
  ),
7203
7337
  children: [
7204
7338
  tab.icon,
7205
- /* @__PURE__ */ jsxs73("span", { className: "flex items-baseline", children: [
7339
+ /* @__PURE__ */ jsxs75("span", { className: "flex items-baseline", children: [
7206
7340
  tab.label,
7207
- tab.count !== void 0 ? /* @__PURE__ */ jsx96("span", { className: "ml-2.5 font-mono text-caption tabular-nums text-text-secondary", children: tab.count }) : null
7341
+ tab.count !== void 0 ? /* @__PURE__ */ jsx98("span", { className: "ml-2.5 font-mono text-caption tabular-nums text-text-secondary", children: tab.count }) : null
7208
7342
  ] }),
7209
- tab.unread ? /* @__PURE__ */ jsxs73(Fragment30, { children: [
7210
- /* @__PURE__ */ jsx96(UnreadDot, { className: "h-auto w-auto" }),
7211
- /* @__PURE__ */ jsx96("span", { className: "sr-only", children: "new" })
7343
+ tab.unread ? /* @__PURE__ */ jsxs75(Fragment30, { children: [
7344
+ /* @__PURE__ */ jsx98(UnreadDot, { className: "h-auto w-auto" }),
7345
+ /* @__PURE__ */ jsx98("span", { className: "sr-only", children: "new" })
7212
7346
  ] }) : null
7213
7347
  ]
7214
7348
  },
@@ -7224,7 +7358,7 @@ function Tabs({ tabs, active, onChange, size = "default", className, ...aria })
7224
7358
  import { createContext as createContext13, useContext as useContext16, useMemo as useMemo7 } from "react";
7225
7359
  import { Toast as BaseToast } from "@base-ui/react/toast";
7226
7360
  import { IconAlertCircle as IconAlertCircle2, IconCircleCheck as IconCircleCheck5, IconCircleX as IconCircleX2 } from "@tabler/icons-react";
7227
- import { jsx as jsx97, jsxs as jsxs74 } from "react/jsx-runtime";
7361
+ import { jsx as jsx99, jsxs as jsxs76 } from "react/jsx-runtime";
7228
7362
  var SURFACE_STYLES = {
7229
7363
  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",
7230
7364
  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",
@@ -7260,16 +7394,16 @@ var pillClassName = (type, hasAction, className) => cn(
7260
7394
  );
7261
7395
  function LeadingIcon({ type }) {
7262
7396
  const Icon = ICONS2[type];
7263
- return /* @__PURE__ */ jsx97(Icon, { size: 16, stroke: 1.5, className: cn("text-text-primary shrink-0", ICON_STYLES[type]) });
7397
+ return /* @__PURE__ */ jsx99(Icon, { size: 16, stroke: 1.5, className: cn("text-text-primary shrink-0", ICON_STYLES[type]) });
7264
7398
  }
7265
7399
  function Toast({ label, type = "neutral", leadingIcon = true, actionLabel, onAction, className }) {
7266
7400
  const hasAction = !!(actionLabel && onAction);
7267
- return /* @__PURE__ */ jsxs74("div", { className: pillClassName(type, hasAction, className), children: [
7268
- /* @__PURE__ */ jsxs74("div", { className: "flex items-center gap-2 shrink-0", children: [
7269
- leadingIcon && /* @__PURE__ */ jsx97(LeadingIcon, { type }),
7270
- /* @__PURE__ */ jsx97("span", { className: LABEL_CLASSES, children: label })
7401
+ return /* @__PURE__ */ jsxs76("div", { className: pillClassName(type, hasAction, className), children: [
7402
+ /* @__PURE__ */ jsxs76("div", { className: "flex items-center gap-2 shrink-0", children: [
7403
+ leadingIcon && /* @__PURE__ */ jsx99(LeadingIcon, { type }),
7404
+ /* @__PURE__ */ jsx99("span", { className: LABEL_CLASSES, children: label })
7271
7405
  ] }),
7272
- hasAction && /* @__PURE__ */ jsx97(Button, { variant: "outlined", size: "small", onClick: onAction, children: actionLabel })
7406
+ hasAction && /* @__PURE__ */ jsx99(Button, { variant: "outlined", size: "small", onClick: onAction, children: actionLabel })
7273
7407
  ] });
7274
7408
  }
7275
7409
  var ToastContext = createContext13(null);
@@ -7291,9 +7425,9 @@ function ToastProvider({ children }) {
7291
7425
  }),
7292
7426
  [manager]
7293
7427
  );
7294
- return /* @__PURE__ */ jsx97(ToastContext.Provider, { value, children: /* @__PURE__ */ jsxs74(BaseToast.Provider, { toastManager: manager, limit: VISIBLE_TOASTS, children: [
7428
+ return /* @__PURE__ */ jsx99(ToastContext.Provider, { value, children: /* @__PURE__ */ jsxs76(BaseToast.Provider, { toastManager: manager, limit: VISIBLE_TOASTS, children: [
7295
7429
  children,
7296
- /* @__PURE__ */ jsx97(BaseToast.Portal, { children: /* @__PURE__ */ jsx97(BaseToast.Viewport, { className: "fixed bottom-4 left-4 z-[100] flex flex-col-reverse items-start gap-2 pointer-events-none", children: /* @__PURE__ */ jsx97(ToastList, {}) }) })
7430
+ /* @__PURE__ */ jsx99(BaseToast.Portal, { children: /* @__PURE__ */ jsx99(BaseToast.Viewport, { className: "fixed bottom-4 left-4 z-[100] flex flex-col-reverse items-start gap-2 pointer-events-none", children: /* @__PURE__ */ jsx99(ToastList, {}) }) })
7297
7431
  ] }) });
7298
7432
  }
7299
7433
  function ToastList() {
@@ -7301,25 +7435,25 @@ function ToastList() {
7301
7435
  return toasts.map((toast) => {
7302
7436
  const type = toast.type ?? "neutral";
7303
7437
  const { leadingIcon = true, actionLabel, onAction } = toast.data ?? {};
7304
- return /* @__PURE__ */ jsxs74(
7438
+ return /* @__PURE__ */ jsxs76(
7305
7439
  BaseToast.Root,
7306
7440
  {
7307
7441
  toast,
7308
7442
  swipeDirection: ["left", "down"],
7309
7443
  className: pillClassName(type, !!actionLabel, "pointer-events-auto data-[limited]:hidden"),
7310
7444
  children: [
7311
- /* @__PURE__ */ jsxs74("div", { className: "flex items-center gap-2 shrink-0", children: [
7312
- leadingIcon && /* @__PURE__ */ jsx97(LeadingIcon, { type }),
7313
- /* @__PURE__ */ jsx97(BaseToast.Title, { render: /* @__PURE__ */ jsx97("span", {}), className: LABEL_CLASSES })
7445
+ /* @__PURE__ */ jsxs76("div", { className: "flex items-center gap-2 shrink-0", children: [
7446
+ leadingIcon && /* @__PURE__ */ jsx99(LeadingIcon, { type }),
7447
+ /* @__PURE__ */ jsx99(BaseToast.Title, { render: /* @__PURE__ */ jsx99("span", {}), className: LABEL_CLASSES })
7314
7448
  ] }),
7315
- actionLabel && /* @__PURE__ */ jsx97(
7449
+ actionLabel && /* @__PURE__ */ jsx99(
7316
7450
  BaseToast.Action,
7317
7451
  {
7318
7452
  onClick: () => {
7319
7453
  onAction?.();
7320
7454
  close(toast.id);
7321
7455
  },
7322
- render: /* @__PURE__ */ jsx97(Button, { variant: "outlined", size: "small", children: actionLabel })
7456
+ render: /* @__PURE__ */ jsx99(Button, { variant: "outlined", size: "small", children: actionLabel })
7323
7457
  }
7324
7458
  )
7325
7459
  ]
@@ -7379,6 +7513,7 @@ export {
7379
7513
  Field,
7380
7514
  FieldLine,
7381
7515
  FilePicker,
7516
+ FollowSwitch,
7382
7517
  Form,
7383
7518
  FormDialog,
7384
7519
  GONE_CLOSED,
@@ -7391,6 +7526,7 @@ export {
7391
7526
  InputChip,
7392
7527
  Kbd,
7393
7528
  KindIcon,
7529
+ LevelIcon,
7394
7530
  Lightbox,
7395
7531
  Link,
7396
7532
  LinkCard,
@@ -7471,6 +7607,7 @@ export {
7471
7607
  TopBar,
7472
7608
  UnreadDot,
7473
7609
  UrgentMark,
7610
+ WhoFollowsDialog,
7474
7611
  WithTooltip,
7475
7612
  archivedLine2 as archivedLine,
7476
7613
  blockAtY,