@peasant-labs/fairtrade 0.0.39 → 0.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/THIRD_PARTY_NOTICES.md +14 -0
  2. package/dist/lib/{GraphLegend-DwLFq2JU.js → GraphLegend-CBKZsRta.js} +1401 -1488
  3. package/dist/lib/adapter-Dulh38C2.js +1214 -0
  4. package/dist/lib/analytics.css +1 -1
  5. package/dist/lib/analytics.js +289 -292
  6. package/dist/lib/commons.js +807 -805
  7. package/dist/lib/components.css +1 -1
  8. package/dist/lib/format-B3uT2wzU.js +41 -0
  9. package/dist/lib/graph.js +383 -381
  10. package/dist/lib/share-fonts/AtkinsonHyperlegible-Bold.ttf +0 -0
  11. package/dist/lib/share-fonts/AtkinsonHyperlegible-Regular.ttf +0 -0
  12. package/dist/lib/share-fonts/AtkinsonHyperlegibleMono-Bold.ttf +0 -0
  13. package/dist/lib/share-fonts/AtkinsonHyperlegibleMono-Regular.ttf +0 -0
  14. package/dist/lib/share-fonts/OFL-AtkinsonHyperlegible.txt +92 -0
  15. package/dist/lib/share-fonts/OFL-AtkinsonHyperlegibleMono.txt +93 -0
  16. package/dist/lib/share.js +1311 -0
  17. package/dist/lib/time-CpVBzcqQ.js +157 -0
  18. package/dist/lib/types/BrandMark.d.ts +2 -6
  19. package/dist/lib/types/CliOnboard.d.ts +11 -0
  20. package/dist/lib/types/DiffView.d.ts +5 -3
  21. package/dist/lib/types/Publish.d.ts +29 -7
  22. package/dist/lib/types/Switch.d.ts +8 -1
  23. package/dist/lib/types/analytics/format.d.ts +2 -1
  24. package/dist/lib/types/brand-geometry.d.ts +22 -0
  25. package/dist/lib/types/commons/providers.d.ts +1 -1
  26. package/dist/lib/types/format.d.ts +35 -4
  27. package/dist/lib/types/index.d.ts +1 -0
  28. package/dist/lib/types/share/ShareCard.d.ts +40 -0
  29. package/dist/lib/types/share/data.d.ts +54 -0
  30. package/dist/lib/types/share/fonts.d.ts +16 -0
  31. package/dist/lib/types/share/index.d.ts +5 -0
  32. package/dist/lib/types/share/marks.d.ts +23 -0
  33. package/dist/lib/types/share/metrics.d.ts +10 -0
  34. package/dist/lib/types/transcript/title.d.ts +21 -0
  35. package/dist/lib/types/ui/brand-geometry.d.ts +22 -0
  36. package/dist/lib/types/ui/format.d.ts +35 -0
  37. package/dist/lib/types/ui/provider-policy.d.ts +27 -0
  38. package/dist/lib/types/ui/transcript/adapter.d.ts +66 -0
  39. package/dist/lib/types/ui/transcript/adapter.parse.d.ts +103 -0
  40. package/dist/lib/types/ui/transcript/analytics.d.ts +213 -0
  41. package/dist/lib/types/ui/transcript/time.d.ts +47 -0
  42. package/dist/lib/types/ui/transcript/title.d.ts +84 -0
  43. package/dist/lib/types/ui/transcript/usage.d.ts +19 -0
  44. package/dist/lib/types/ui/transcript/view-model.d.ts +700 -0
  45. package/dist/lib/types/ui/transcript/wire-types.d.ts +63 -0
  46. package/dist/lib/{ui-CBsfaQMA.js → ui-Bhk29YuW.js} +4198 -5412
  47. package/dist/lib/ui.js +7 -4
  48. package/package.json +20 -6
@@ -1,27 +1,29 @@
1
- import { At as e, Ot as t, Tt as n, ht as r, lt as i, pt as a, ut as o } from "./GraphLegend-DwLFq2JU.js";
2
- import { $n as s, Ar as c, At as l, Et as u, Nt as d, Ot as f, _n as p, _t as m, cr as h, fr as g, ft as _, gn as v, gt as y, hr as b, jt as x, kt as S, mn as C, pr as w, pt as T, ut as E, vn as D } from "./ui-CBsfaQMA.js";
3
- import { useEffect as O, useId as k, useMemo as A, useRef as j, useState as M } from "react";
4
- import { Fragment as N, jsx as P, jsxs as F } from "react/jsx-runtime";
5
- import { ArrowRight as I, Check as L, ChevronDown as R, ChevronRight as z, ClipboardCheck as B, Compass as V, Copy as H, ExternalLink as U, Eye as W, EyeOff as G, FileText as ee, FolderGit2 as K, GitBranch as q, GitPullRequest as J, Hash as te, KeyRound as Y, LayoutGrid as ne, List as re, Lock as ie, LogOut as ae, MoreHorizontal as X, Plus as oe, Search as se, SearchX as ce, Settings as Z, ShieldAlert as Q, SlidersHorizontal as le, TriangleAlert as ue, Upload as de, User as fe, UserPlus as pe, Users as $, X as me } from "lucide-react";
1
+ import { Dt as e, Tt as t, ft as n, mt as r } from "./GraphLegend-CBKZsRta.js";
2
+ import { G as i, Gt as a, Hn as o, J as s, Kt as c, Ln as l, On as u, Q as d, Ut as f, Vn as p, Wn as m, Z as h, ar as g, dt as _, ft as v, lt as y, mt as b, q as x, qt as S, st as C, ut as w } from "./ui-Bhk29YuW.js";
3
+ import { p as T } from "./time-CpVBzcqQ.js";
4
+ import { i as E, o as D, r as O } from "./format-B3uT2wzU.js";
5
+ import { useEffect as k, useId as A, useMemo as j, useRef as M, useState as N } from "react";
6
+ import { Fragment as P, jsx as F, jsxs as I } from "react/jsx-runtime";
7
+ import { ArrowRight as L, Check as R, ChevronDown as z, ChevronRight as B, ClipboardCheck as V, Compass as H, Copy as U, ExternalLink as W, Eye as G, EyeOff as ee, FileText as te, FolderGit2 as K, GitBranch as q, GitPullRequest as ne, Hash as J, KeyRound as re, LayoutGrid as ie, List as ae, Lock as Y, LogOut as X, MoreHorizontal as oe, Plus as se, Search as Z, SearchX as ce, Settings as Q, ShieldAlert as le, SlidersHorizontal as ue, TriangleAlert as de, Upload as fe, User as pe, UserPlus as me, Users as $, X as he } from "lucide-react";
6
8
  //#region src/ui/commons/types.js
7
- var he = Object.freeze([
9
+ var ge = Object.freeze([
8
10
  "public",
9
11
  "private",
10
12
  "shared"
11
- ]), ge = Object.freeze([
13
+ ]), _e = Object.freeze([
12
14
  "open",
13
15
  "verified_only",
14
16
  "curated"
15
- ]), _e = Object.freeze([
17
+ ]), ve = Object.freeze([
16
18
  "members_only",
17
19
  "contributors",
18
20
  "public"
19
- ]), ve = Object.freeze(["user_choice", "mandatory"]), ye = Object.freeze([
21
+ ]), ye = Object.freeze(["user_choice", "mandatory"]), be = Object.freeze([
20
22
  "owner",
21
23
  "member",
22
24
  "contributor",
23
25
  "pending"
24
- ]), be = Object.freeze({
26
+ ]), xe = Object.freeze({
25
27
  transcripts: {
26
28
  transcripts: [
27
29
  {
@@ -178,14 +180,14 @@ var he = Object.freeze([
178
180
  usageCount: 24
179
181
  }
180
182
  ]
181
- }), xe = i, Se = (e) => {
183
+ }), Se = O, Ce = (e) => {
182
184
  let t = Math.max(0, Math.round(e / 6e4));
183
185
  return t >= 60 ? `${Math.floor(t / 60)}h ${String(t % 60).padStart(2, "0")}m` : `${t}min`;
184
- }, Ce = o, we = (e = "") => e.split(/[\s-]+/).filter(Boolean).slice(0, 2).map((e) => e[0]).join("").toUpperCase() || "?", Te = (e) => e.trim().toLowerCase();
185
- function Ee(e) {
186
+ }, we = E, Te = (e = "") => e.split(/[\s-]+/).filter(Boolean).slice(0, 2).map((e) => e[0]).join("").toUpperCase() || "?", Ee = (e) => e.trim().toLowerCase();
187
+ function De(e) {
186
188
  return e ? e.length ? e[0].toUpperCase() + e.slice(1) : e : "";
187
189
  }
188
- function De(e, t) {
190
+ function Oe(e, t) {
189
191
  let n = /* @__PURE__ */ new Map();
190
192
  for (let r of e) {
191
193
  let e = t(r);
@@ -193,123 +195,123 @@ function De(e, t) {
193
195
  }
194
196
  return n;
195
197
  }
196
- function Oe(e, t, n) {
198
+ function ke(e, t, n) {
197
199
  t && (e.preventDefault(), t(n));
198
200
  }
199
- function ke(e) {
200
- return e ?? be;
201
- }
202
201
  function Ae(e) {
202
+ return e ?? xe;
203
+ }
204
+ function je(e) {
203
205
  return Number.isInteger(e) && e >= 1 ? e : 1;
204
206
  }
205
- function je({ transcript: e, href: t, onOpen: n }) {
206
- let i = /* @__PURE__ */ F(N, { children: [
207
- /* @__PURE__ */ F("div", {
207
+ function Me({ transcript: e, href: t, onOpen: n }) {
208
+ let a = /* @__PURE__ */ I(P, { children: [
209
+ /* @__PURE__ */ I("div", {
208
210
  className: "card-head",
209
- children: [/* @__PURE__ */ F("span", {
211
+ children: [/* @__PURE__ */ I("span", {
210
212
  className: "metaitem cex-model",
211
- children: [/* @__PURE__ */ P(r, {
213
+ children: [/* @__PURE__ */ F(r, {
212
214
  harness: e.modelProvider,
213
215
  accent: !0
214
- }), /* @__PURE__ */ P("span", {
216
+ }), /* @__PURE__ */ F("span", {
215
217
  className: "mono",
216
218
  children: e.modelName || e.modelProvider
217
219
  })]
218
- }), /* @__PURE__ */ P(E, { visibility: e.visibility })]
220
+ }), /* @__PURE__ */ F(i, { visibility: e.visibility })]
219
221
  }),
220
- /* @__PURE__ */ P("h3", {
222
+ /* @__PURE__ */ F("h3", {
221
223
  className: "cex-title",
222
- children: Ee(e.title || "untitled transcript")
224
+ children: De(e.title || "untitled transcript")
223
225
  }),
224
- e.projectName && /* @__PURE__ */ P("p", {
226
+ e.projectName && /* @__PURE__ */ F("p", {
225
227
  className: "cex-proj",
226
228
  children: e.projectName
227
229
  }),
228
- /* @__PURE__ */ P("p", {
230
+ /* @__PURE__ */ F("p", {
229
231
  className: "cex-desc",
230
232
  children: e.tags.map((e) => `#${e.name}`).join(" ")
231
233
  }),
232
- /* @__PURE__ */ F("div", {
234
+ /* @__PURE__ */ I("div", {
233
235
  className: "cex-foot row",
234
- children: [/* @__PURE__ */ F("span", {
236
+ children: [/* @__PURE__ */ I("span", {
235
237
  className: "cex-author",
236
- children: [/* @__PURE__ */ P("span", {
238
+ children: [/* @__PURE__ */ F("span", {
237
239
  className: "avatar",
238
240
  "aria-hidden": "true",
239
- children: we(e.owner.displayName || e.owner.githubUsername)
240
- }), /* @__PURE__ */ F("span", {
241
+ children: Te(e.owner.displayName || e.owner.githubUsername)
242
+ }), /* @__PURE__ */ I("span", {
241
243
  className: "cex-handle mono",
242
244
  children: ["@", e.owner.githubUsername]
243
245
  })]
244
- }), /* @__PURE__ */ P("span", {
246
+ }), /* @__PURE__ */ F("span", {
245
247
  className: "cex-date tnum",
246
- children: Ce(e.sessionStart || e.sessionEnd || "")
248
+ children: we(e.sessionStart || e.sessionEnd || "")
247
249
  })]
248
250
  })
249
251
  ] });
250
- return t ? /* @__PURE__ */ P("a", {
252
+ return t ? /* @__PURE__ */ F("a", {
251
253
  href: t,
252
254
  className: "card cex-tcard",
253
- onClick: (t) => Oe(t, n, e),
254
- children: i
255
- }) : /* @__PURE__ */ P("button", {
255
+ onClick: (t) => ke(t, n, e),
256
+ children: a
257
+ }) : /* @__PURE__ */ F("button", {
256
258
  type: "button",
257
259
  className: "card cex-tcard",
258
260
  onClick: () => n?.(e),
259
- children: i
261
+ children: a
260
262
  });
261
263
  }
262
- function Me({ transcript: e, href: t, onOpen: n }) {
263
- let i = /* @__PURE__ */ F(N, { children: [
264
- /* @__PURE__ */ F("span", {
264
+ function Ne({ transcript: e, href: t, onOpen: n }) {
265
+ let a = /* @__PURE__ */ I(P, { children: [
266
+ /* @__PURE__ */ I("span", {
265
267
  className: "cex-trow-model",
266
- children: [/* @__PURE__ */ P(r, { harness: e.modelProvider }), /* @__PURE__ */ P("b", { children: e.modelName || e.modelProvider })]
268
+ children: [/* @__PURE__ */ F(r, { harness: e.modelProvider }), /* @__PURE__ */ F("b", { children: e.modelName || e.modelProvider })]
267
269
  }),
268
- /* @__PURE__ */ P("span", {
270
+ /* @__PURE__ */ F("span", {
269
271
  className: "cex-trow-title",
270
- children: Ee(e.title || "untitled transcript")
272
+ children: De(e.title || "untitled transcript")
271
273
  }),
272
- /* @__PURE__ */ F("span", {
274
+ /* @__PURE__ */ I("span", {
273
275
  className: "cex-trow-stats mono tnum",
274
276
  children: [
275
- e.durationMs != null && /* @__PURE__ */ P("span", { children: Se(e.durationMs) }),
276
- e.turnCount != null && /* @__PURE__ */ F("span", { children: [e.turnCount, " turns"] }),
277
- e.toolCallCount != null && /* @__PURE__ */ F("span", { children: [e.toolCallCount, " tools"] })
277
+ e.durationMs != null && /* @__PURE__ */ F("span", { children: Ce(e.durationMs) }),
278
+ e.turnCount != null && /* @__PURE__ */ I("span", { children: [e.turnCount, " turns"] }),
279
+ e.toolCallCount != null && /* @__PURE__ */ I("span", { children: [e.toolCallCount, " tools"] })
278
280
  ]
279
281
  }),
280
- /* @__PURE__ */ P("span", {
282
+ /* @__PURE__ */ F("span", {
281
283
  className: "cex-trow-date mono tnum",
282
- children: Ce(e.sessionStart || e.sessionEnd || "")
284
+ children: we(e.sessionStart || e.sessionEnd || "")
283
285
  }),
284
- /* @__PURE__ */ P(E, { visibility: e.visibility })
286
+ /* @__PURE__ */ F(i, { visibility: e.visibility })
285
287
  ] });
286
- return t ? /* @__PURE__ */ P("a", {
288
+ return t ? /* @__PURE__ */ F("a", {
287
289
  href: t,
288
290
  className: "row cex-trow",
289
- onClick: (t) => Oe(t, n, e),
290
- children: i
291
- }) : /* @__PURE__ */ P("button", {
291
+ onClick: (t) => ke(t, n, e),
292
+ children: a
293
+ }) : /* @__PURE__ */ F("button", {
292
294
  type: "button",
293
295
  className: "row cex-trow",
294
296
  onClick: () => n?.(e),
295
- children: i
297
+ children: a
296
298
  });
297
299
  }
298
- function Ne({ collective: e, href: t, onOpen: n }) {
299
- let r = /* @__PURE__ */ F(N, { children: [
300
- /* @__PURE__ */ F("div", {
300
+ function Pe({ collective: e, href: t, onOpen: n }) {
301
+ let r = /* @__PURE__ */ I(P, { children: [
302
+ /* @__PURE__ */ I("div", {
301
303
  className: "cex-cname",
302
- children: [/* @__PURE__ */ P("span", {
304
+ children: [/* @__PURE__ */ F("span", {
303
305
  className: "avatar",
304
306
  "aria-hidden": "true",
305
307
  children: "C"
306
- }), /* @__PURE__ */ P("b", { children: e.name })]
308
+ }), /* @__PURE__ */ F("b", { children: e.name })]
307
309
  }),
308
- e.description && /* @__PURE__ */ P("p", {
310
+ e.description && /* @__PURE__ */ F("p", {
309
311
  className: "cex-desc",
310
312
  children: e.description
311
313
  }),
312
- /* @__PURE__ */ F("div", {
314
+ /* @__PURE__ */ I("div", {
313
315
  className: "cex-cfoot mono tnum",
314
316
  children: [
315
317
  e.memberCount,
@@ -319,61 +321,61 @@ function Ne({ collective: e, href: t, onOpen: n }) {
319
321
  ]
320
322
  })
321
323
  ] });
322
- return t ? /* @__PURE__ */ P("a", {
324
+ return t ? /* @__PURE__ */ F("a", {
323
325
  href: t,
324
326
  className: "card cex-ccard",
325
- onClick: (t) => Oe(t, n, e),
327
+ onClick: (t) => ke(t, n, e),
326
328
  children: r
327
- }) : /* @__PURE__ */ P("button", {
329
+ }) : /* @__PURE__ */ F("button", {
328
330
  type: "button",
329
331
  className: "card cex-ccard",
330
332
  onClick: () => n?.(e),
331
333
  children: r
332
334
  });
333
335
  }
334
- function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript: a, onOpenProfile: o, onOpenCollective: s, transcriptHref: c, profileHref: l, collectiveHref: u }) {
335
- let f = ke(e), p = f.transcripts.transcripts, [m, h] = M(""), [g, _] = M(""), [v, y] = M("recent"), [b, S] = M("all"), [C, w] = M(() => /* @__PURE__ */ new Set()), [T, D] = M("grid"), [k, N] = M(() => Ae(f.transcripts.page)), [I, L] = M(null), [R, z] = M("browse"), B = j(!0), H = j(null);
336
- O(() => {
336
+ function Fe({ data: e, className: n = "", onFiltersChange: a, onOpenTranscript: o, onOpenProfile: s, onOpenCollective: c, transcriptHref: l, profileHref: u, collectiveHref: d }) {
337
+ let f = Ae(e), p = f.transcripts.transcripts, [m, h] = N(""), [g, _] = N(""), [y, x] = N("recent"), [S, C] = N("all"), [w, T] = N(() => /* @__PURE__ */ new Set()), [E, D] = N("grid"), [O, A] = N(() => je(f.transcripts.page)), [P, L] = N(null), [R, z] = N("browse"), B = M(!0), V = M(null);
338
+ k(() => {
337
339
  if (B.current) {
338
340
  B.current = !1, _(m);
339
341
  return;
340
342
  }
341
343
  let e = setTimeout(() => _(m), 250);
342
344
  return () => clearTimeout(e);
343
- }, [B, m]), O(() => {
345
+ }, [B, m]), k(() => {
344
346
  let e = JSON.stringify([
345
347
  g,
346
- v,
347
- b,
348
- [...C].sort()
348
+ y,
349
+ S,
350
+ [...w].sort()
349
351
  ]);
350
- if (H.current === null || H.current === e) {
351
- H.current = e;
352
+ if (V.current === null || V.current === e) {
353
+ V.current = e;
352
354
  return;
353
355
  }
354
- H.current = e, N(1);
356
+ V.current = e, A(1);
355
357
  }, [
356
358
  g,
357
- v,
358
- b,
359
- C
360
- ]), O(() => {
361
- i?.({
359
+ y,
360
+ S,
361
+ w
362
+ ]), k(() => {
363
+ a?.({
362
364
  query: g,
363
- provider: b,
364
- topics: [...C],
365
- order: v,
366
- page: k
365
+ provider: S,
366
+ topics: [...w],
367
+ order: y,
368
+ page: O
367
369
  });
368
370
  }, [
369
- v,
370
- i,
371
- k,
372
- b,
371
+ y,
372
+ a,
373
+ O,
374
+ S,
373
375
  g,
374
- C
376
+ w
375
377
  ]);
376
- let U = p.find((e) => e.id === I) ?? p[0] ?? null, W = U?.owner ?? null, G = W ? p.filter((e) => e.owner.githubUsername === W.githubUsername) : [], K = A(() => {
378
+ let U = p.find((e) => e.id === P) ?? p[0] ?? null, W = U?.owner ?? null, G = W ? p.filter((e) => e.owner.githubUsername === W.githubUsername) : [], ee = j(() => {
377
379
  let e = /* @__PURE__ */ new Map();
378
380
  for (let t of p) e.set(t.modelProvider, (e.get(t.modelProvider) || 0) + 1);
379
381
  return [{
@@ -384,34 +386,34 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
384
386
  count: t
385
387
  }))];
386
388
  }, [p]);
387
- O(() => {
388
- I && !p.some((e) => e.id === I) && (L(null), z("browse"));
389
- }, [I, p]);
390
- let q = A(() => {
391
- let e = Te(g);
389
+ k(() => {
390
+ P && !p.some((e) => e.id === P) && (L(null), z("browse"));
391
+ }, [P, p]);
392
+ let K = j(() => {
393
+ let e = Ee(g);
392
394
  return e ? f.collectives.filter((t) => [
393
395
  t.name,
394
396
  t.description,
395
397
  t.linkedGithubOrg
396
398
  ].filter(Boolean).join(" ").toLowerCase().includes(e)) : null;
397
- }, [f.collectives, g]), J = p, te = C.size, Y = f.transcripts.total ?? p.length, ie = k, ae = f.transcripts.limit || p.length || 1, X = (e) => {
398
- if (a) {
399
- a(e);
399
+ }, [f.collectives, g]), q = p, ne = w.size, J = f.transcripts.total ?? p.length, re = O, Y = f.transcripts.limit || p.length || 1, X = (e) => {
400
+ if (o) {
401
+ o(e);
400
402
  return;
401
403
  }
402
404
  L(e.id), z("detail");
403
405
  }, oe = () => {
404
- if (o && W) {
405
- o(W);
406
+ if (s && W) {
407
+ s(W);
406
408
  return;
407
409
  }
408
410
  U ? (L(U.id), z("profile")) : p[0] && (L(p[0].id), z("profile"));
409
411
  }, se = () => {
410
- h(""), _(""), y("recent"), S("all"), w(/* @__PURE__ */ new Set()), N(1);
411
- }, Z = A(() => W ? [...De(G, (e) => e.projectName || "untitled project").entries()].map(([e, t]) => ({
412
+ h(""), _(""), x("recent"), C("all"), T(/* @__PURE__ */ new Set()), A(1);
413
+ }, Z = j(() => W ? [...Oe(G, (e) => e.projectName || "untitled project").entries()].map(([e, t]) => ({
412
414
  project: e,
413
415
  items: t
414
- })) : [], [G, W]), Q = A(() => {
416
+ })) : [], [G, W]), Q = j(() => {
415
417
  let e = G.reduce((e, t) => e + (t.tokenCount || 0), 0);
416
418
  return {
417
419
  transcripts: G.length,
@@ -419,63 +421,63 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
419
421
  tokens: e
420
422
  };
421
423
  }, [G, Z.length]);
422
- return R === "detail" && U ? /* @__PURE__ */ F("div", {
424
+ return R === "detail" && U ? /* @__PURE__ */ I("div", {
423
425
  className: `cex-root cex-detail ${n}`.trim(),
424
- children: [/* @__PURE__ */ F("div", {
426
+ children: [/* @__PURE__ */ I("div", {
425
427
  className: "cex-detail-back",
426
- children: [/* @__PURE__ */ F("button", {
428
+ children: [/* @__PURE__ */ I("button", {
427
429
  type: "button",
428
430
  className: "btn btn-secondary btn-sm",
429
431
  onClick: () => z("browse"),
430
- children: [/* @__PURE__ */ P(ee, {
432
+ children: [/* @__PURE__ */ F(te, {
431
433
  size: 14,
432
434
  "aria-hidden": "true"
433
435
  }), " back to explore"]
434
- }), /* @__PURE__ */ F("button", {
436
+ }), /* @__PURE__ */ I("button", {
435
437
  type: "button",
436
438
  className: "btn btn-secondary btn-sm",
437
439
  onClick: oe,
438
- children: [/* @__PURE__ */ P(fe, {
440
+ children: [/* @__PURE__ */ F(pe, {
439
441
  size: 14,
440
442
  "aria-hidden": "true"
441
443
  }), " profile"]
442
444
  })]
443
- }), /* @__PURE__ */ F("div", {
445
+ }), /* @__PURE__ */ I("div", {
444
446
  className: "window cex-viewer",
445
- children: [/* @__PURE__ */ F("div", {
447
+ children: [/* @__PURE__ */ I("div", {
446
448
  className: "win-head cex-viewer-head",
447
449
  children: [
448
- /* @__PURE__ */ P("div", {
450
+ /* @__PURE__ */ F("div", {
449
451
  className: "cex-head-top",
450
- children: /* @__PURE__ */ F("div", {
452
+ children: /* @__PURE__ */ I("div", {
451
453
  className: "crumb",
452
454
  children: [
453
455
  "commons ",
454
- /* @__PURE__ */ P("span", {
456
+ /* @__PURE__ */ F("span", {
455
457
  "aria-hidden": "true",
456
458
  children: "›"
457
459
  }),
458
460
  " explore ",
459
- /* @__PURE__ */ P("span", {
461
+ /* @__PURE__ */ F("span", {
460
462
  "aria-hidden": "true",
461
463
  children: "›"
462
464
  }),
463
465
  " ",
464
- /* @__PURE__ */ P("span", {
466
+ /* @__PURE__ */ F("span", {
465
467
  className: "cur mono",
466
468
  children: U.id
467
469
  })
468
470
  ]
469
471
  })
470
472
  }),
471
- /* @__PURE__ */ F("div", {
473
+ /* @__PURE__ */ I("div", {
472
474
  className: "cex-hero-title",
473
- children: [/* @__PURE__ */ P("h2", {
475
+ children: [/* @__PURE__ */ F("h2", {
474
476
  className: "win-title cex-vtitle",
475
- children: Ee(U.title || "untitled transcript")
476
- }), /* @__PURE__ */ P(E, { visibility: U.visibility })]
477
+ children: De(U.title || "untitled transcript")
478
+ }), /* @__PURE__ */ F(i, { visibility: U.visibility })]
477
479
  }),
478
- /* @__PURE__ */ F("p", {
480
+ /* @__PURE__ */ I("p", {
479
481
  className: "cex-vdesc",
480
482
  children: [
481
483
  U.projectName || "shared transcript",
@@ -483,20 +485,20 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
483
485
  U.owner.displayName || U.owner.githubUsername
484
486
  ]
485
487
  }),
486
- /* @__PURE__ */ F("div", {
488
+ /* @__PURE__ */ I("div", {
487
489
  className: "cex-vmeta win-meta",
488
490
  children: [
489
- /* @__PURE__ */ F("span", {
491
+ /* @__PURE__ */ I("span", {
490
492
  className: "metaitem",
491
- children: [/* @__PURE__ */ P(r, {
493
+ children: [/* @__PURE__ */ F(r, {
492
494
  harness: U.modelProvider,
493
495
  accent: !0
494
- }), /* @__PURE__ */ P("span", { children: U.modelName || U.modelProvider })]
496
+ }), /* @__PURE__ */ F("span", { children: U.modelName || U.modelProvider })]
495
497
  }),
496
- /* @__PURE__ */ F("span", {
498
+ /* @__PURE__ */ I("span", {
497
499
  className: "metaitem mono tnum",
498
500
  children: [
499
- /* @__PURE__ */ P(ee, {
501
+ /* @__PURE__ */ F(te, {
500
502
  size: 14,
501
503
  "aria-hidden": "true"
502
504
  }),
@@ -505,85 +507,85 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
505
507
  " turns"
506
508
  ]
507
509
  }),
508
- /* @__PURE__ */ F("span", {
510
+ /* @__PURE__ */ I("span", {
509
511
  className: "metaitem mono tnum",
510
512
  children: [
511
- /* @__PURE__ */ P("span", {
513
+ /* @__PURE__ */ F("span", {
512
514
  "aria-hidden": "true",
513
515
  children: "#"
514
516
  }),
515
517
  " ",
516
- xe(U.tokenCount || 0),
518
+ Se(U.tokenCount || 0),
517
519
  " tokens"
518
520
  ]
519
521
  }),
520
- /* @__PURE__ */ F("span", {
522
+ /* @__PURE__ */ I("span", {
521
523
  className: "metaitem mono tnum",
522
524
  children: [U.toolCallCount ?? 0, " tools"]
523
525
  })
524
526
  ]
525
527
  })
526
528
  ]
527
- }), /* @__PURE__ */ F("div", {
529
+ }), /* @__PURE__ */ I("div", {
528
530
  className: "cex-viewer-body",
529
- children: [/* @__PURE__ */ F("div", {
531
+ children: [/* @__PURE__ */ I("div", {
530
532
  className: "cex-stream",
531
533
  role: "tabpanel",
532
534
  tabIndex: -1,
533
- children: [/* @__PURE__ */ F("div", {
535
+ children: [/* @__PURE__ */ I("div", {
534
536
  className: "phase",
535
- children: [/* @__PURE__ */ P("span", {
537
+ children: [/* @__PURE__ */ F("span", {
536
538
  className: "lbl",
537
539
  children: "about"
538
- }), /* @__PURE__ */ P("span", {
540
+ }), /* @__PURE__ */ F("span", {
539
541
  className: "meta mono tnum",
540
- children: Ce(U.sessionStart || U.sessionEnd || "")
542
+ children: we(U.sessionStart || U.sessionEnd || "")
541
543
  })]
542
- }), /* @__PURE__ */ F("div", {
544
+ }), /* @__PURE__ */ I("div", {
543
545
  className: "turn",
544
- children: [/* @__PURE__ */ P("div", {
546
+ children: [/* @__PURE__ */ F("div", {
545
547
  className: "head",
546
- children: /* @__PURE__ */ P("span", {
548
+ children: /* @__PURE__ */ F("span", {
547
549
  className: "name",
548
550
  children: "session summary"
549
551
  })
550
- }), /* @__PURE__ */ F("div", {
552
+ }), /* @__PURE__ */ I("div", {
551
553
  className: "body",
552
- children: [/* @__PURE__ */ P("p", { children: "This view surfaces the loaded transcript metadata, then lets the user move to the owner profile without leaving the shared surface." }), U.tags.length > 0 && /* @__PURE__ */ P("div", {
554
+ children: [/* @__PURE__ */ F("p", { children: "This view surfaces the loaded transcript metadata, then lets the user move to the owner profile without leaving the shared surface." }), U.tags.length > 0 && /* @__PURE__ */ F("div", {
553
555
  className: "cex-tags",
554
- children: U.tags.map((e) => /* @__PURE__ */ F("span", {
556
+ children: U.tags.map((e) => /* @__PURE__ */ I("span", {
555
557
  className: "chip",
556
558
  children: ["#", e.name]
557
559
  }, e.id))
558
560
  })]
559
561
  })]
560
562
  })]
561
- }), /* @__PURE__ */ F("aside", {
563
+ }), /* @__PURE__ */ I("aside", {
562
564
  className: "cex-psec",
563
565
  "aria-label": "owner snapshot",
564
566
  children: [
565
- /* @__PURE__ */ P("h3", {
567
+ /* @__PURE__ */ F("h3", {
566
568
  className: "cex-psec-title",
567
569
  children: "owner snapshot"
568
570
  }),
569
- /* @__PURE__ */ F("div", {
571
+ /* @__PURE__ */ I("div", {
570
572
  className: "cex-phero",
571
- children: [/* @__PURE__ */ P("div", {
573
+ children: [/* @__PURE__ */ F("div", {
572
574
  className: "cex-phero-av",
573
575
  "aria-hidden": "true",
574
- children: we(U.owner.displayName || U.owner.githubUsername)
575
- }), /* @__PURE__ */ F("div", {
576
+ children: Te(U.owner.displayName || U.owner.githubUsername)
577
+ }), /* @__PURE__ */ I("div", {
576
578
  className: "cex-phero-id",
577
- children: [/* @__PURE__ */ P("h2", {
579
+ children: [/* @__PURE__ */ F("h2", {
578
580
  className: "cex-h2 cex-pname",
579
581
  children: U.owner.displayName || U.owner.githubUsername
580
- }), /* @__PURE__ */ F("span", {
582
+ }), /* @__PURE__ */ I("span", {
581
583
  className: "cex-phandle mono",
582
584
  children: ["@", U.owner.githubUsername]
583
585
  })]
584
586
  })]
585
587
  }),
586
- /* @__PURE__ */ P(x, { tiles: [
588
+ /* @__PURE__ */ F(v, { tiles: [
587
589
  {
588
590
  key: "transcripts",
589
591
  label: "transcripts",
@@ -597,69 +599,69 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
597
599
  {
598
600
  key: "tokens",
599
601
  label: "tokens",
600
- value: xe(Q.tokens)
602
+ value: Se(Q.tokens)
601
603
  }
602
604
  ] })
603
605
  ]
604
606
  })]
605
607
  })]
606
608
  })]
607
- }) : R === "profile" && W ? /* @__PURE__ */ F("div", {
609
+ }) : R === "profile" && W ? /* @__PURE__ */ I("div", {
608
610
  className: `cex-root cex-profile ${n}`.trim(),
609
611
  children: [
610
- /* @__PURE__ */ F("div", {
612
+ /* @__PURE__ */ I("div", {
611
613
  className: "cex-detail-back",
612
- children: [/* @__PURE__ */ F("button", {
614
+ children: [/* @__PURE__ */ I("button", {
613
615
  type: "button",
614
616
  className: "btn btn-secondary btn-sm",
615
617
  onClick: () => z("detail"),
616
- children: [/* @__PURE__ */ P(ee, {
618
+ children: [/* @__PURE__ */ F(te, {
617
619
  size: 14,
618
620
  "aria-hidden": "true"
619
621
  }), " back to transcript"]
620
- }), /* @__PURE__ */ F("button", {
622
+ }), /* @__PURE__ */ I("button", {
621
623
  type: "button",
622
624
  className: "btn btn-secondary btn-sm",
623
625
  onClick: () => z("browse"),
624
- children: [/* @__PURE__ */ P(V, {
626
+ children: [/* @__PURE__ */ F(H, {
625
627
  size: 14,
626
628
  "aria-hidden": "true"
627
629
  }), " back to explore"]
628
630
  })]
629
631
  }),
630
- /* @__PURE__ */ F("div", {
632
+ /* @__PURE__ */ I("div", {
631
633
  className: "crumb cex-profile-crumb",
632
634
  children: [
633
635
  "commons ",
634
- /* @__PURE__ */ P("span", {
636
+ /* @__PURE__ */ F("span", {
635
637
  "aria-hidden": "true",
636
638
  children: "›"
637
639
  }),
638
640
  " ",
639
- /* @__PURE__ */ F("span", {
641
+ /* @__PURE__ */ I("span", {
640
642
  className: "cur mono",
641
643
  children: ["@", W.githubUsername]
642
644
  })
643
645
  ]
644
646
  }),
645
- /* @__PURE__ */ F("header", {
647
+ /* @__PURE__ */ I("header", {
646
648
  className: "cex-phero",
647
- children: [/* @__PURE__ */ P("div", {
649
+ children: [/* @__PURE__ */ F("div", {
648
650
  className: "cex-phero-av",
649
651
  "aria-hidden": "true",
650
- children: we(W.displayName || W.githubUsername)
651
- }), /* @__PURE__ */ F("div", {
652
+ children: Te(W.displayName || W.githubUsername)
653
+ }), /* @__PURE__ */ I("div", {
652
654
  className: "cex-phero-id",
653
- children: [/* @__PURE__ */ P("h2", {
655
+ children: [/* @__PURE__ */ F("h2", {
654
656
  className: "cex-h2 cex-pname",
655
657
  children: W.displayName || W.githubUsername
656
- }), /* @__PURE__ */ F("span", {
658
+ }), /* @__PURE__ */ I("span", {
657
659
  className: "cex-phandle mono",
658
660
  children: ["@", W.githubUsername]
659
661
  })]
660
662
  })]
661
663
  }),
662
- /* @__PURE__ */ P(x, { tiles: [
664
+ /* @__PURE__ */ F(v, { tiles: [
663
665
  {
664
666
  key: "transcripts",
665
667
  label: "transcripts",
@@ -673,41 +675,41 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
673
675
  {
674
676
  key: "tokens",
675
677
  label: "tokens",
676
- value: xe(Q.tokens)
678
+ value: Se(Q.tokens)
677
679
  }
678
680
  ] }),
679
- /* @__PURE__ */ F("section", {
681
+ /* @__PURE__ */ I("section", {
680
682
  className: "cex-psec",
681
683
  "aria-label": "published library",
682
- children: [/* @__PURE__ */ P("h3", {
684
+ children: [/* @__PURE__ */ F("h3", {
683
685
  className: "cex-psec-title",
684
686
  children: "published library"
685
- }), Z.length === 0 ? /* @__PURE__ */ F("div", {
687
+ }), Z.length === 0 ? /* @__PURE__ */ I("div", {
686
688
  className: "empty cex-empty",
687
689
  children: [
688
- /* @__PURE__ */ P("div", {
690
+ /* @__PURE__ */ F("div", {
689
691
  className: "ring",
690
- children: /* @__PURE__ */ P(V, {
692
+ children: /* @__PURE__ */ F(H, {
691
693
  size: 20,
692
694
  "aria-hidden": "true"
693
695
  })
694
696
  }),
695
- /* @__PURE__ */ P("h3", { children: "no transcripts yet" }),
696
- /* @__PURE__ */ P("p", { children: "this profile has not shared any transcripts in the commons." })
697
+ /* @__PURE__ */ F("h3", { children: "no transcripts yet" }),
698
+ /* @__PURE__ */ F("p", { children: "this profile has not shared any transcripts in the commons." })
697
699
  ]
698
- }) : /* @__PURE__ */ P("div", {
700
+ }) : /* @__PURE__ */ F("div", {
699
701
  className: "cex-projects",
700
- children: Z.map(({ project: e, items: t }) => /* @__PURE__ */ F("div", {
702
+ children: Z.map(({ project: e, items: t }) => /* @__PURE__ */ I("div", {
701
703
  className: "cex-project",
702
- children: [/* @__PURE__ */ F("div", {
704
+ children: [/* @__PURE__ */ I("div", {
703
705
  className: "cex-project-head",
704
- children: [/* @__PURE__ */ F("span", {
706
+ children: [/* @__PURE__ */ I("span", {
705
707
  className: "cex-project-name",
706
- children: [/* @__PURE__ */ P("span", {
708
+ children: [/* @__PURE__ */ F("span", {
707
709
  "aria-hidden": "true",
708
710
  children: "▣"
709
- }), /* @__PURE__ */ P("b", { children: e })]
710
- }), /* @__PURE__ */ F("span", {
711
+ }), /* @__PURE__ */ F("b", { children: e })]
712
+ }), /* @__PURE__ */ I("span", {
711
713
  className: "cex-project-cnt mono tnum",
712
714
  children: [
713
715
  t.length,
@@ -715,11 +717,11 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
715
717
  t.length === 1 ? "" : "s"
716
718
  ]
717
719
  })]
718
- }), /* @__PURE__ */ P("div", {
720
+ }), /* @__PURE__ */ F("div", {
719
721
  className: "cex-lib-rows",
720
- children: t.map((e) => /* @__PURE__ */ P(Me, {
722
+ children: t.map((e) => /* @__PURE__ */ F(Ne, {
721
723
  transcript: e,
722
- href: c?.(e),
724
+ href: l?.(e),
723
725
  onOpen: X
724
726
  }, e.id))
725
727
  })]
@@ -727,176 +729,176 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
727
729
  })]
728
730
  })
729
731
  ]
730
- }) : /* @__PURE__ */ F("div", {
732
+ }) : /* @__PURE__ */ I("div", {
731
733
  className: `cex-root ${n}`.trim(),
732
- children: [/* @__PURE__ */ F("header", {
734
+ children: [/* @__PURE__ */ I("header", {
733
735
  className: "cex-explore-head",
734
- children: [/* @__PURE__ */ P("h2", {
736
+ children: [/* @__PURE__ */ F("h2", {
735
737
  className: "cex-h2",
736
738
  children: "explore transcripts"
737
- }), /* @__PURE__ */ F("div", {
739
+ }), /* @__PURE__ */ I("div", {
738
740
  className: "input-ico cex-searchbar",
739
- children: [/* @__PURE__ */ P("input", {
741
+ children: [/* @__PURE__ */ F("input", {
740
742
  className: "input",
741
743
  type: "text",
742
744
  value: m,
743
745
  onChange: (e) => h(e.target.value),
744
746
  placeholder: "search transcripts",
745
747
  "aria-label": "search transcripts, collectives, projects, models"
746
- }), m && /* @__PURE__ */ P("button", {
748
+ }), m && /* @__PURE__ */ F("button", {
747
749
  type: "button",
748
750
  className: "cex-clear",
749
751
  "aria-label": "clear search",
750
752
  onClick: () => h(""),
751
- children: /* @__PURE__ */ P(ce, {
753
+ children: /* @__PURE__ */ F(ce, {
752
754
  size: 14,
753
755
  "aria-hidden": "true"
754
756
  })
755
757
  })]
756
758
  })]
757
- }), /* @__PURE__ */ F("div", {
759
+ }), /* @__PURE__ */ I("div", {
758
760
  className: "cex-explore-body",
759
- children: [/* @__PURE__ */ P(d, {
760
- order: v,
761
- onOrder: (e) => y(e),
762
- providers: K,
763
- activeProviders: b === "all" ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([b]),
764
- onProvider: (e) => S((t) => t === e ? "all" : e),
761
+ children: [/* @__PURE__ */ F(b, {
762
+ order: y,
763
+ onOrder: (e) => x(e),
764
+ providers: ee,
765
+ activeProviders: S === "all" ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([S]),
766
+ onProvider: (e) => C((t) => t === e ? "all" : e),
765
767
  topics: f.popularTags.map((e) => ({
766
768
  tag: e.name,
767
769
  count: e.usageCount
768
770
  })),
769
- activeTopics: C,
771
+ activeTopics: w,
770
772
  onTopic: (e) => {
771
- w((t) => {
773
+ T((t) => {
772
774
  let n = new Set(t);
773
775
  return n.has(e) ? n.delete(e) : n.add(e), n;
774
776
  });
775
777
  },
776
778
  onClear: se,
777
779
  className: "cex-rail"
778
- }), /* @__PURE__ */ F("div", {
780
+ }), /* @__PURE__ */ I("div", {
779
781
  className: "cex-results",
780
782
  children: [
781
- q && /* @__PURE__ */ F("section", {
783
+ K && /* @__PURE__ */ I("section", {
782
784
  className: "cex-coll-results",
783
785
  "aria-label": "matching collectives",
784
- children: [/* @__PURE__ */ P("div", {
786
+ children: [/* @__PURE__ */ F("div", {
785
787
  className: "cex-results-head",
786
- children: /* @__PURE__ */ F("span", {
788
+ children: /* @__PURE__ */ I("span", {
787
789
  className: "cex-eyebrow",
788
- children: ["collectives ", /* @__PURE__ */ P("span", {
790
+ children: ["collectives ", /* @__PURE__ */ F("span", {
789
791
  className: "cex-count tnum",
790
- children: q.length
792
+ children: K.length
791
793
  })]
792
794
  })
793
- }), q.length === 0 ? /* @__PURE__ */ P("p", {
795
+ }), K.length === 0 ? /* @__PURE__ */ F("p", {
794
796
  className: "cex-nomatch-inline mono",
795
797
  children: "no matching collectives."
796
- }) : /* @__PURE__ */ P("div", {
798
+ }) : /* @__PURE__ */ F("div", {
797
799
  className: "cex-coll-grid",
798
- children: q.map((e) => /* @__PURE__ */ P(Ne, {
800
+ children: K.map((e) => /* @__PURE__ */ F(Pe, {
799
801
  collective: e,
800
- href: u?.(e),
801
- onOpen: s
802
+ href: d?.(e),
803
+ onOpen: c
802
804
  }, e.id))
803
805
  })]
804
806
  }),
805
- /* @__PURE__ */ F("div", {
807
+ /* @__PURE__ */ I("div", {
806
808
  className: "cex-results-head",
807
- children: [/* @__PURE__ */ F("span", {
809
+ children: [/* @__PURE__ */ I("span", {
808
810
  className: "cex-eyebrow",
809
- children: ["transcripts ", /* @__PURE__ */ P("span", {
811
+ children: ["transcripts ", /* @__PURE__ */ F("span", {
810
812
  className: "cex-count tnum",
811
813
  role: "status",
812
814
  "aria-live": "polite",
813
- children: Y
815
+ children: J
814
816
  })]
815
- }), /* @__PURE__ */ F("div", {
817
+ }), /* @__PURE__ */ I("div", {
816
818
  className: "bs-seg cex-viewseg",
817
819
  role: "group",
818
820
  "aria-label": "view mode",
819
821
  children: [
820
- /* @__PURE__ */ F("button", {
822
+ /* @__PURE__ */ I("button", {
821
823
  type: "button",
822
824
  className: "bs-seg-opt",
823
- "aria-pressed": T === "grid",
825
+ "aria-pressed": E === "grid",
824
826
  "aria-label": "grid view",
825
827
  onClick: () => D("grid"),
826
- children: [/* @__PURE__ */ P(ne, { size: 14 }), " grid"]
828
+ children: [/* @__PURE__ */ F(ie, { size: 14 }), " grid"]
827
829
  }),
828
- /* @__PURE__ */ F("button", {
830
+ /* @__PURE__ */ I("button", {
829
831
  type: "button",
830
832
  className: "bs-seg-opt",
831
- "aria-pressed": T === "list",
833
+ "aria-pressed": E === "list",
832
834
  "aria-label": "list view",
833
835
  onClick: () => D("list"),
834
- children: [/* @__PURE__ */ P(re, { size: 14 }), " list"]
836
+ children: [/* @__PURE__ */ F(ae, { size: 14 }), " list"]
835
837
  }),
836
- /* @__PURE__ */ F("button", {
838
+ /* @__PURE__ */ I("button", {
837
839
  type: "button",
838
840
  className: "bs-seg-opt",
839
841
  "aria-pressed": R === "profile",
840
842
  "aria-label": "profile view",
841
843
  onClick: oe,
842
- disabled: !J.length,
843
- children: [/* @__PURE__ */ P(fe, { size: 14 }), " profile"]
844
+ disabled: !q.length,
845
+ children: [/* @__PURE__ */ F(pe, { size: 14 }), " profile"]
844
846
  })
845
847
  ]
846
848
  })]
847
849
  }),
848
- J.length === 0 ? g.trim() || b !== "all" || te ? /* @__PURE__ */ F("div", {
850
+ q.length === 0 ? g.trim() || S !== "all" || ne ? /* @__PURE__ */ I("div", {
849
851
  className: "empty cex-empty",
850
852
  children: [
851
- /* @__PURE__ */ P("div", {
853
+ /* @__PURE__ */ F("div", {
852
854
  className: "ring",
853
- children: /* @__PURE__ */ P(ce, {
855
+ children: /* @__PURE__ */ F(ce, {
854
856
  size: 20,
855
857
  "aria-hidden": "true"
856
858
  })
857
859
  }),
858
- /* @__PURE__ */ P("h3", { children: "no matches" }),
859
- /* @__PURE__ */ P("p", { children: "no transcripts match your search and filters. broaden the query or clear the filters." }),
860
- /* @__PURE__ */ P("button", {
860
+ /* @__PURE__ */ F("h3", { children: "no matches" }),
861
+ /* @__PURE__ */ F("p", { children: "no transcripts match your search and filters. broaden the query or clear the filters." }),
862
+ /* @__PURE__ */ F("button", {
861
863
  type: "button",
862
864
  className: "btn btn-secondary btn-sm",
863
865
  onClick: se,
864
866
  children: "clear filters"
865
867
  })
866
868
  ]
867
- }) : /* @__PURE__ */ F("div", {
869
+ }) : /* @__PURE__ */ I("div", {
868
870
  className: "empty cex-empty",
869
871
  children: [
870
- /* @__PURE__ */ P("div", {
872
+ /* @__PURE__ */ F("div", {
871
873
  className: "ring",
872
- children: /* @__PURE__ */ P(V, {
874
+ children: /* @__PURE__ */ F(H, {
873
875
  size: 20,
874
876
  "aria-hidden": "true"
875
877
  })
876
878
  }),
877
- /* @__PURE__ */ P("h3", { children: "the commons is empty" }),
878
- /* @__PURE__ */ P("p", { children: "no transcripts have been shared yet. once contributors publish, they show up here." })
879
+ /* @__PURE__ */ F("h3", { children: "the commons is empty" }),
880
+ /* @__PURE__ */ F("p", { children: "no transcripts have been shared yet. once contributors publish, they show up here." })
879
881
  ]
880
- }) : T === "grid" ? /* @__PURE__ */ P("div", {
882
+ }) : E === "grid" ? /* @__PURE__ */ F("div", {
881
883
  className: "cex-grid",
882
- children: J.map((e) => /* @__PURE__ */ P(je, {
884
+ children: q.map((e) => /* @__PURE__ */ F(Me, {
883
885
  transcript: e,
884
- href: c?.(e),
886
+ href: l?.(e),
885
887
  onOpen: X
886
888
  }, e.id))
887
- }) : /* @__PURE__ */ P("div", {
889
+ }) : /* @__PURE__ */ F("div", {
888
890
  className: "cex-list",
889
- children: J.map((e) => /* @__PURE__ */ P(Me, {
891
+ children: q.map((e) => /* @__PURE__ */ F(Ne, {
890
892
  transcript: e,
891
- href: c?.(e),
893
+ href: l?.(e),
892
894
  onOpen: X
893
895
  }, e.id))
894
896
  }),
895
- Y > ae && /* @__PURE__ */ P(t, {
896
- page: ie,
897
- totalItems: Y,
898
- pageSize: ae,
899
- onChange: N,
897
+ J > Y && /* @__PURE__ */ F(t, {
898
+ page: re,
899
+ totalItems: J,
900
+ pageSize: Y,
901
+ onChange: A,
900
902
  className: "cex-pgn"
901
903
  })
902
904
  ]
@@ -906,51 +908,51 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
906
908
  }
907
909
  //#endregion
908
910
  //#region src/ui/commons/providers.js
909
- function Fe(e) {
911
+ function Ie(e) {
910
912
  return String(e || "unknown").replace(/[-_]+/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
911
913
  }
912
- function Ie(e) {
913
- return n(e);
914
+ function Le(e) {
915
+ return T(e);
914
916
  }
915
917
  //#endregion
916
918
  //#region src/mockups/inuse/CommonsManage.jsx
917
- function Le({ cmd: e, note: t }) {
918
- let [n, r] = M(!1);
919
+ function Re({ cmd: e, note: t }) {
920
+ let [n, r] = N(!1);
919
921
  function i() {
920
922
  try {
921
923
  navigator.clipboard?.writeText(e);
922
924
  } catch {}
923
925
  r(!0), window.setTimeout(() => r(!1), 2e3);
924
926
  }
925
- return /* @__PURE__ */ F("div", {
927
+ return /* @__PURE__ */ I("div", {
926
928
  className: "cmg-cmd",
927
929
  children: [
928
- /* @__PURE__ */ F("code", {
930
+ /* @__PURE__ */ I("code", {
929
931
  className: "cmg-cmd-text mono",
930
- children: [/* @__PURE__ */ P("span", {
932
+ children: [/* @__PURE__ */ F("span", {
931
933
  className: "cmg-cmd-prompt",
932
934
  "aria-hidden": "true",
933
935
  children: "$ "
934
936
  }), e]
935
937
  }),
936
- /* @__PURE__ */ F("button", {
938
+ /* @__PURE__ */ I("button", {
937
939
  type: "button",
938
940
  className: "btn btn-sm btn-secondary cmg-cmd-copy",
939
941
  onClick: i,
940
942
  "aria-label": n ? "copied" : "copy command",
941
- children: [P(n ? L : H, {
943
+ children: [F(n ? R : U, {
942
944
  size: 14,
943
945
  "aria-hidden": "true"
944
946
  }), n ? "copied" : "copy"]
945
947
  }),
946
- t ? /* @__PURE__ */ P("span", {
948
+ t ? /* @__PURE__ */ F("span", {
947
949
  className: "cmg-cmd-note mono",
948
950
  children: t
949
951
  }) : null
950
952
  ]
951
953
  });
952
954
  }
953
- var Re = [
955
+ var ze = [
954
956
  {
955
957
  id: "a1",
956
958
  provider: "claude-code",
@@ -987,7 +989,7 @@ var Re = [
987
989
  turns: 128,
988
990
  project: "platform"
989
991
  }
990
- ], ze = [
992
+ ], Be = [
991
993
  {
992
994
  n: 1,
993
995
  title: "install the cli",
@@ -1010,10 +1012,10 @@ var Re = [
1010
1012
  cmd: "peasant village push --dry-run --visibility public"
1011
1013
  }
1012
1014
  ];
1013
- function Be({ v: e, names: t }) {
1015
+ function Ve({ v: e, names: t }) {
1014
1016
  let n = {
1015
1017
  public: {
1016
- Icon: W,
1018
+ Icon: G,
1017
1019
  label: "visible to everyone",
1018
1020
  cls: ""
1019
1021
  },
@@ -1023,118 +1025,118 @@ function Be({ v: e, names: t }) {
1023
1025
  cls: "cmg-eye-shared"
1024
1026
  },
1025
1027
  private: {
1026
- Icon: G,
1028
+ Icon: ee,
1027
1029
  label: "only visible to you",
1028
1030
  cls: "cmg-eye-private"
1029
1031
  }
1030
1032
  }, { Icon: r, label: i, cls: a } = n[e] || n.private;
1031
- return /* @__PURE__ */ F("span", {
1033
+ return /* @__PURE__ */ I("span", {
1032
1034
  className: "cmg-eye " + a,
1033
1035
  title: i,
1034
- children: [/* @__PURE__ */ P(r, {
1036
+ children: [/* @__PURE__ */ F(r, {
1035
1037
  size: 14,
1036
1038
  "aria-hidden": "true"
1037
- }), /* @__PURE__ */ P("span", {
1039
+ }), /* @__PURE__ */ F("span", {
1038
1040
  className: "cmg-sr",
1039
1041
  children: i
1040
1042
  })]
1041
1043
  });
1042
1044
  }
1043
- function Ve() {
1044
- let [e, t] = M(!0), [n, r] = M(!1);
1045
- return /* @__PURE__ */ F("div", {
1045
+ function He() {
1046
+ let [e, t] = N(!0), [n, r] = N(!1);
1047
+ return /* @__PURE__ */ I("div", {
1046
1048
  className: "cmg-root",
1047
- children: [/* @__PURE__ */ F("div", {
1049
+ children: [/* @__PURE__ */ I("div", {
1048
1050
  className: "cmg-page",
1049
1051
  children: [
1050
- /* @__PURE__ */ F("div", {
1052
+ /* @__PURE__ */ I("div", {
1051
1053
  className: "crumb cmg-crumb",
1052
1054
  children: [
1053
- "village ",
1054
- /* @__PURE__ */ P(z, {
1055
+ "peasant online ",
1056
+ /* @__PURE__ */ F(B, {
1055
1057
  size: 14,
1056
1058
  "aria-hidden": "true"
1057
1059
  }),
1058
1060
  " ",
1059
- /* @__PURE__ */ P("span", {
1061
+ /* @__PURE__ */ F("span", {
1060
1062
  className: "cur",
1061
1063
  children: "publish"
1062
1064
  })
1063
1065
  ]
1064
1066
  }),
1065
- /* @__PURE__ */ P("header", {
1067
+ /* @__PURE__ */ F("header", {
1066
1068
  className: "cmg-head",
1067
- children: /* @__PURE__ */ P("div", { children: /* @__PURE__ */ P("h2", {
1069
+ children: /* @__PURE__ */ F("div", { children: /* @__PURE__ */ F("h2", {
1068
1070
  className: "cmg-title",
1069
1071
  children: "publishing dashboard"
1070
1072
  }) })
1071
1073
  }),
1072
- e && /* @__PURE__ */ F("section", {
1074
+ e && /* @__PURE__ */ I("section", {
1073
1075
  className: "cmg-gs card",
1074
1076
  "aria-labelledby": "cmg-gs-h",
1075
- children: [/* @__PURE__ */ F("div", {
1077
+ children: [/* @__PURE__ */ I("div", {
1076
1078
  className: "cmg-gs-head",
1077
- children: [/* @__PURE__ */ F("span", {
1079
+ children: [/* @__PURE__ */ I("span", {
1078
1080
  className: "cmg-gs-h-l",
1079
- children: [/* @__PURE__ */ P(Terminal, {
1081
+ children: [/* @__PURE__ */ F(Terminal, {
1080
1082
  size: 16,
1081
1083
  "aria-hidden": "true",
1082
1084
  className: "cmg-gs-ico"
1083
- }), /* @__PURE__ */ P("h3", {
1085
+ }), /* @__PURE__ */ F("h3", {
1084
1086
  id: "cmg-gs-h",
1085
1087
  className: "cmg-sub",
1086
1088
  children: "getting started"
1087
1089
  })]
1088
- }), /* @__PURE__ */ P("button", {
1090
+ }), /* @__PURE__ */ F("button", {
1089
1091
  type: "button",
1090
1092
  className: "btn btn-sm btn-icon btn-ghost",
1091
1093
  onClick: () => t(!1),
1092
1094
  "aria-label": "dismiss getting started",
1093
- children: /* @__PURE__ */ P(me, {
1095
+ children: /* @__PURE__ */ F(he, {
1094
1096
  size: 14,
1095
1097
  "aria-hidden": "true"
1096
1098
  })
1097
1099
  })]
1098
- }), /* @__PURE__ */ F("div", {
1100
+ }), /* @__PURE__ */ I("div", {
1099
1101
  className: "cmg-gs-body",
1100
- children: [/* @__PURE__ */ F("div", {
1102
+ children: [/* @__PURE__ */ I("div", {
1101
1103
  className: "cmg-step",
1102
- children: [/* @__PURE__ */ P("span", {
1104
+ children: [/* @__PURE__ */ F("span", {
1103
1105
  className: "cmg-step-n tnum",
1104
1106
  "aria-hidden": "true",
1105
1107
  children: "1"
1106
- }), /* @__PURE__ */ F("div", {
1108
+ }), /* @__PURE__ */ I("div", {
1107
1109
  className: "cmg-step-main",
1108
1110
  children: [
1109
- /* @__PURE__ */ P("div", {
1111
+ /* @__PURE__ */ F("div", {
1110
1112
  className: "cmg-step-title",
1111
1113
  children: "run the setup wizard"
1112
1114
  }),
1113
- /* @__PURE__ */ P("p", {
1115
+ /* @__PURE__ */ F("p", {
1114
1116
  className: "cmg-step-desc",
1115
1117
  children: "connects github, discovers agent transcripts, configures providers (Claude Code / OpenCode), sets your redaction level."
1116
1118
  }),
1117
- /* @__PURE__ */ P(Le, { cmd: "peasant kickstart" })
1119
+ /* @__PURE__ */ F(Re, { cmd: "peasant kickstart" })
1118
1120
  ]
1119
1121
  })]
1120
- }), /* @__PURE__ */ F("div", {
1122
+ }), /* @__PURE__ */ I("div", {
1121
1123
  className: "cmg-step",
1122
- children: [/* @__PURE__ */ P("span", {
1124
+ children: [/* @__PURE__ */ F("span", {
1123
1125
  className: "cmg-step-n tnum",
1124
1126
  "aria-hidden": "true",
1125
1127
  children: "2"
1126
- }), /* @__PURE__ */ F("div", {
1128
+ }), /* @__PURE__ */ I("div", {
1127
1129
  className: "cmg-step-main",
1128
1130
  children: [
1129
- /* @__PURE__ */ P("div", {
1131
+ /* @__PURE__ */ F("div", {
1130
1132
  className: "cmg-step-title",
1131
1133
  children: "push transcripts"
1132
1134
  }),
1133
- /* @__PURE__ */ P("p", {
1135
+ /* @__PURE__ */ F("p", {
1134
1136
  className: "cmg-step-desc",
1135
1137
  children: "auto-redaction runs before upload. add --dry-run to preview, or --visibility public to override."
1136
1138
  }),
1137
- /* @__PURE__ */ P(Le, {
1139
+ /* @__PURE__ */ F(Re, {
1138
1140
  cmd: "peasant village push",
1139
1141
  note: "--dry-run preview, --visibility public override"
1140
1142
  })
@@ -1143,48 +1145,48 @@ function Ve() {
1143
1145
  })]
1144
1146
  })]
1145
1147
  }),
1146
- /* @__PURE__ */ F("section", {
1148
+ /* @__PURE__ */ I("section", {
1147
1149
  className: "cmg-recent card",
1148
1150
  "aria-labelledby": "cmg-recent-h",
1149
- children: [/* @__PURE__ */ F("div", {
1151
+ children: [/* @__PURE__ */ I("div", {
1150
1152
  className: "cmg-recent-head",
1151
- children: [/* @__PURE__ */ P("h3", {
1153
+ children: [/* @__PURE__ */ F("h3", {
1152
1154
  id: "cmg-recent-h",
1153
1155
  className: "cmg-sub",
1154
1156
  children: "recent publishes"
1155
- }), /* @__PURE__ */ F("button", {
1157
+ }), /* @__PURE__ */ I("button", {
1156
1158
  type: "button",
1157
1159
  className: "btn btn-sm btn-secondary",
1158
1160
  onClick: () => r(!0),
1159
- children: [/* @__PURE__ */ P(de, {
1161
+ children: [/* @__PURE__ */ F(fe, {
1160
1162
  size: 14,
1161
1163
  "aria-hidden": "true"
1162
1164
  }), " import"]
1163
1165
  })]
1164
- }), Re.length === 0 ? /* @__PURE__ */ P("div", {
1166
+ }), ze.length === 0 ? /* @__PURE__ */ F("div", {
1165
1167
  className: "cmg-recent-empty mono",
1166
1168
  children: "no transcripts published yet."
1167
- }) : /* @__PURE__ */ P("ul", {
1169
+ }) : /* @__PURE__ */ F("ul", {
1168
1170
  className: "cmg-pub-list",
1169
- children: Re.map((e) => /* @__PURE__ */ F("li", {
1171
+ children: ze.map((e) => /* @__PURE__ */ I("li", {
1170
1172
  className: "cmg-pub-row",
1171
1173
  children: [
1172
- /* @__PURE__ */ P("span", {
1174
+ /* @__PURE__ */ F("span", {
1173
1175
  className: "cmg-pub-prov",
1174
- children: /* @__PURE__ */ P(ProviderMark, { id: e.provider })
1176
+ children: /* @__PURE__ */ F(ProviderMark, { id: e.provider })
1175
1177
  }),
1176
- /* @__PURE__ */ P("span", {
1178
+ /* @__PURE__ */ F("span", {
1177
1179
  className: "cmg-pub-title",
1178
1180
  children: e.title
1179
1181
  }),
1180
- /* @__PURE__ */ P("span", {
1182
+ /* @__PURE__ */ F("span", {
1181
1183
  className: "cmg-pub-meta mono",
1182
1184
  children: e.project
1183
1185
  }),
1184
- /* @__PURE__ */ F("span", {
1186
+ /* @__PURE__ */ I("span", {
1185
1187
  className: "cmg-pub-meta mono tnum",
1186
1188
  children: [
1187
- /* @__PURE__ */ P(te, {
1189
+ /* @__PURE__ */ F(J, {
1188
1190
  size: 14,
1189
1191
  "aria-hidden": "true"
1190
1192
  }),
@@ -1192,8 +1194,8 @@ function Ve() {
1192
1194
  e.turns
1193
1195
  ]
1194
1196
  }),
1195
- /* @__PURE__ */ P(Be, { v: e.visibility }),
1196
- /* @__PURE__ */ P("span", {
1197
+ /* @__PURE__ */ F(Ve, { v: e.visibility }),
1198
+ /* @__PURE__ */ F("span", {
1197
1199
  className: "cmg-pub-date mono tnum",
1198
1200
  children: e.date
1199
1201
  })
@@ -1202,11 +1204,11 @@ function Ve() {
1202
1204
  })]
1203
1205
  })
1204
1206
  ]
1205
- }), n && /* @__PURE__ */ P("div", {
1207
+ }), n && /* @__PURE__ */ F("div", {
1206
1208
  className: "cmg-scrim",
1207
1209
  role: "presentation",
1208
1210
  onClick: () => r(!1),
1209
- children: /* @__PURE__ */ F("div", {
1211
+ children: /* @__PURE__ */ I("div", {
1210
1212
  className: "cmg-dialog",
1211
1213
  role: "dialog",
1212
1214
  "aria-modal": "true",
@@ -1214,42 +1216,42 @@ function Ve() {
1214
1216
  onClick: (e) => e.stopPropagation(),
1215
1217
  onKeyDown: (e) => e.key === "Escape" && r(!1),
1216
1218
  children: [
1217
- /* @__PURE__ */ F("div", {
1219
+ /* @__PURE__ */ I("div", {
1218
1220
  className: "cmg-dlg-head",
1219
- children: [/* @__PURE__ */ P("h3", {
1221
+ children: [/* @__PURE__ */ F("h3", {
1220
1222
  id: "cmg-import-h",
1221
1223
  className: "cmg-sub",
1222
1224
  children: "how to import transcripts"
1223
- }), /* @__PURE__ */ P("button", {
1225
+ }), /* @__PURE__ */ F("button", {
1224
1226
  type: "button",
1225
1227
  className: "btn btn-sm btn-icon btn-ghost",
1226
1228
  onClick: () => r(!1),
1227
1229
  "aria-label": "close dialog",
1228
- children: /* @__PURE__ */ P(me, {
1230
+ children: /* @__PURE__ */ F(he, {
1229
1231
  size: 14,
1230
1232
  "aria-hidden": "true"
1231
1233
  })
1232
1234
  })]
1233
1235
  }),
1234
- /* @__PURE__ */ F("div", {
1236
+ /* @__PURE__ */ I("div", {
1235
1237
  className: "cmg-dlg-body",
1236
- children: [/* @__PURE__ */ P("p", {
1238
+ children: [/* @__PURE__ */ F("p", {
1237
1239
  className: "cmg-dlg-intro mono",
1238
1240
  children: "transcripts are imported through the peasant cli, not the web ui. follow these steps from a terminal:"
1239
- }), /* @__PURE__ */ P("ol", {
1241
+ }), /* @__PURE__ */ F("ol", {
1240
1242
  className: "cmg-import-steps",
1241
- children: ze.map((e) => /* @__PURE__ */ F("li", {
1243
+ children: Be.map((e) => /* @__PURE__ */ I("li", {
1242
1244
  className: "cmg-step",
1243
- children: [/* @__PURE__ */ P("span", {
1245
+ children: [/* @__PURE__ */ F("span", {
1244
1246
  className: "cmg-step-n tnum",
1245
1247
  "aria-hidden": "true",
1246
1248
  children: e.n
1247
- }), /* @__PURE__ */ F("div", {
1249
+ }), /* @__PURE__ */ I("div", {
1248
1250
  className: "cmg-step-main",
1249
- children: [/* @__PURE__ */ P("div", {
1251
+ children: [/* @__PURE__ */ F("div", {
1250
1252
  className: "cmg-step-title",
1251
1253
  children: e.title
1252
- }), /* @__PURE__ */ P(Le, {
1254
+ }), /* @__PURE__ */ F(Re, {
1253
1255
  cmd: e.cmd,
1254
1256
  note: e.note
1255
1257
  })]
@@ -1257,9 +1259,9 @@ function Ve() {
1257
1259
  }, e.n))
1258
1260
  })]
1259
1261
  }),
1260
- /* @__PURE__ */ P("div", {
1262
+ /* @__PURE__ */ F("div", {
1261
1263
  className: "cmg-dlg-foot",
1262
- children: /* @__PURE__ */ P("button", {
1264
+ children: /* @__PURE__ */ F("button", {
1263
1265
  type: "button",
1264
1266
  className: "btn btn-sm btn-secondary",
1265
1267
  onClick: () => r(!1),
@@ -1271,7 +1273,7 @@ function Ve() {
1271
1273
  })]
1272
1274
  });
1273
1275
  }
1274
- var He = [
1276
+ var Ue = [
1275
1277
  {
1276
1278
  id: "village",
1277
1279
  name: "village",
@@ -1320,14 +1322,14 @@ var He = [
1320
1322
  visibility: "private"
1321
1323
  }]
1322
1324
  }
1323
- ], Ue = {
1325
+ ], We = {
1324
1326
  name: "AI Research Team",
1325
1327
  members: 12
1326
1328
  };
1327
- function We() {
1328
- let [e, t] = M(() => /* @__PURE__ */ new Set(["v1"])), [n, r] = M(() => new Set(He.map((e) => e.id))), [i, a] = M(!1), o = A(() => {
1329
+ function Ge() {
1330
+ let [e, t] = N(() => /* @__PURE__ */ new Set(["v1"])), [n, r] = N(() => new Set(Ue.map((e) => e.id))), [i, a] = N(!1), o = j(() => {
1329
1331
  let e = {};
1330
- return He.forEach((t) => t.transcripts.forEach((n) => e[n.id] = {
1332
+ return Ue.forEach((t) => t.transcripts.forEach((n) => e[n.id] = {
1331
1333
  ...n,
1332
1334
  project: t.name
1333
1335
  })), e;
@@ -1356,50 +1358,50 @@ function We() {
1356
1358
  });
1357
1359
  }
1358
1360
  let d = [...e].map((e) => o[e]).filter(Boolean), f = d.filter((e) => e.visibility === "private").length;
1359
- return /* @__PURE__ */ F("div", {
1361
+ return /* @__PURE__ */ I("div", {
1360
1362
  className: "cmg-root",
1361
- children: [/* @__PURE__ */ F("div", {
1363
+ children: [/* @__PURE__ */ I("div", {
1362
1364
  className: "cmg-page",
1363
1365
  children: [
1364
- /* @__PURE__ */ F("div", {
1366
+ /* @__PURE__ */ I("div", {
1365
1367
  className: "crumb cmg-crumb",
1366
1368
  children: [
1367
- "village ",
1368
- /* @__PURE__ */ P(z, {
1369
+ "peasant online ",
1370
+ /* @__PURE__ */ F(B, {
1369
1371
  size: 14,
1370
1372
  "aria-hidden": "true"
1371
1373
  }),
1372
1374
  " AI Research Team ",
1373
- /* @__PURE__ */ P(z, {
1375
+ /* @__PURE__ */ F(B, {
1374
1376
  size: 14,
1375
1377
  "aria-hidden": "true"
1376
1378
  }),
1377
1379
  " ",
1378
- /* @__PURE__ */ P("span", {
1380
+ /* @__PURE__ */ F("span", {
1379
1381
  className: "cur",
1380
1382
  children: "contribute"
1381
1383
  })
1382
1384
  ]
1383
1385
  }),
1384
- /* @__PURE__ */ P("header", {
1386
+ /* @__PURE__ */ F("header", {
1385
1387
  className: "cmg-head",
1386
- children: /* @__PURE__ */ P("div", { children: /* @__PURE__ */ P("h2", {
1388
+ children: /* @__PURE__ */ F("div", { children: /* @__PURE__ */ F("h2", {
1387
1389
  className: "cmg-title",
1388
1390
  children: "contribute to AI Research Team"
1389
1391
  }) })
1390
1392
  }),
1391
- /* @__PURE__ */ P("section", {
1393
+ /* @__PURE__ */ F("section", {
1392
1394
  className: "card cmg-contribute",
1393
1395
  "aria-label": "your transcripts by project",
1394
- children: He.map((t) => {
1396
+ children: Ue.map((t) => {
1395
1397
  let r = c(t), i = n.has(t.id);
1396
- return /* @__PURE__ */ F("div", {
1398
+ return /* @__PURE__ */ I("div", {
1397
1399
  className: "cmg-proj",
1398
- children: [/* @__PURE__ */ F("div", {
1400
+ children: [/* @__PURE__ */ I("div", {
1399
1401
  className: "cmg-proj-head",
1400
- children: [/* @__PURE__ */ P("label", {
1402
+ children: [/* @__PURE__ */ F("label", {
1401
1403
  className: "check cmg-proj-check",
1402
- children: /* @__PURE__ */ P("input", {
1404
+ children: /* @__PURE__ */ F("input", {
1403
1405
  type: "checkbox",
1404
1406
  className: "check-box",
1405
1407
  checked: r === "all",
@@ -1407,24 +1409,24 @@ function We() {
1407
1409
  onChange: () => l(t),
1408
1410
  "aria-label": `select all in ${t.name}`
1409
1411
  })
1410
- }), /* @__PURE__ */ F("button", {
1412
+ }), /* @__PURE__ */ I("button", {
1411
1413
  type: "button",
1412
1414
  className: "cmg-proj-toggle",
1413
1415
  "aria-expanded": i,
1414
1416
  onClick: () => u(t.id),
1415
1417
  children: [
1416
- P(i ? R : z, {
1418
+ F(i ? z : B, {
1417
1419
  size: 15,
1418
1420
  "aria-hidden": "true"
1419
1421
  }),
1420
- /* @__PURE__ */ P("span", {
1422
+ /* @__PURE__ */ F("span", {
1421
1423
  className: "cmg-proj-name mono",
1422
1424
  children: t.name
1423
1425
  }),
1424
- /* @__PURE__ */ F("span", {
1426
+ /* @__PURE__ */ I("span", {
1425
1427
  className: "cmg-proj-branch mono",
1426
1428
  children: [
1427
- /* @__PURE__ */ P(q, {
1429
+ /* @__PURE__ */ F(q, {
1428
1430
  size: 14,
1429
1431
  "aria-hidden": "true"
1430
1432
  }),
@@ -1432,20 +1434,20 @@ function We() {
1432
1434
  t.branch
1433
1435
  ]
1434
1436
  }),
1435
- /* @__PURE__ */ P("span", {
1437
+ /* @__PURE__ */ F("span", {
1436
1438
  className: "cmg-proj-cnt mono tnum",
1437
1439
  children: t.transcripts.length
1438
1440
  })
1439
1441
  ]
1440
1442
  })]
1441
- }), i && /* @__PURE__ */ P("ul", {
1443
+ }), i && /* @__PURE__ */ F("ul", {
1442
1444
  className: "cmg-tx-list",
1443
- children: t.transcripts.map((t) => /* @__PURE__ */ F("li", {
1445
+ children: t.transcripts.map((t) => /* @__PURE__ */ I("li", {
1444
1446
  className: "cmg-tx-row",
1445
1447
  children: [
1446
- /* @__PURE__ */ P("label", {
1448
+ /* @__PURE__ */ F("label", {
1447
1449
  className: "check cmg-tx-check",
1448
- children: /* @__PURE__ */ P("input", {
1450
+ children: /* @__PURE__ */ F("input", {
1449
1451
  type: "checkbox",
1450
1452
  className: "check-box",
1451
1453
  checked: e.has(t.id),
@@ -1453,24 +1455,24 @@ function We() {
1453
1455
  "aria-label": `select ${t.title}`
1454
1456
  })
1455
1457
  }),
1456
- /* @__PURE__ */ P("span", {
1458
+ /* @__PURE__ */ F("span", {
1457
1459
  className: "cmg-pub-prov",
1458
- children: /* @__PURE__ */ P(ProviderMark, { id: t.provider })
1460
+ children: /* @__PURE__ */ F(ProviderMark, { id: t.provider })
1459
1461
  }),
1460
- /* @__PURE__ */ P("span", {
1462
+ /* @__PURE__ */ F("span", {
1461
1463
  className: "cmg-tx-title",
1462
1464
  children: t.title
1463
1465
  }),
1464
- /* @__PURE__ */ P(Be, { v: t.visibility }),
1465
- /* @__PURE__ */ P("span", {
1466
+ /* @__PURE__ */ F(Ve, { v: t.visibility }),
1467
+ /* @__PURE__ */ F("span", {
1466
1468
  className: "cmg-tx-date mono tnum",
1467
1469
  children: t.date
1468
1470
  }),
1469
- /* @__PURE__ */ P("button", {
1471
+ /* @__PURE__ */ F("button", {
1470
1472
  type: "button",
1471
1473
  className: "btn btn-sm btn-icon btn-ghost",
1472
1474
  "aria-label": `preview ${t.title}`,
1473
- children: /* @__PURE__ */ P(U, {
1475
+ children: /* @__PURE__ */ F(W, {
1474
1476
  size: 14,
1475
1477
  "aria-hidden": "true"
1476
1478
  })
@@ -1481,21 +1483,21 @@ function We() {
1481
1483
  }, t.id);
1482
1484
  })
1483
1485
  }),
1484
- /* @__PURE__ */ F("div", {
1486
+ /* @__PURE__ */ I("div", {
1485
1487
  className: "cmg-contribute-foot",
1486
- children: [/* @__PURE__ */ F("span", {
1488
+ children: [/* @__PURE__ */ I("span", {
1487
1489
  className: "cmg-sel-count mono",
1488
1490
  children: [
1489
- /* @__PURE__ */ P("span", {
1491
+ /* @__PURE__ */ F("span", {
1490
1492
  className: "tnum",
1491
1493
  children: e.size
1492
1494
  }),
1493
1495
  " selected",
1494
- f > 0 ? /* @__PURE__ */ F("span", {
1496
+ f > 0 ? /* @__PURE__ */ I("span", {
1495
1497
  className: "cmg-sel-warn",
1496
1498
  children: [
1497
1499
  ", ",
1498
- /* @__PURE__ */ P("span", {
1500
+ /* @__PURE__ */ F("span", {
1499
1501
  className: "tnum",
1500
1502
  children: f
1501
1503
  }),
@@ -1503,13 +1505,13 @@ function We() {
1503
1505
  ]
1504
1506
  }) : null
1505
1507
  ]
1506
- }), /* @__PURE__ */ F("button", {
1508
+ }), /* @__PURE__ */ I("button", {
1507
1509
  type: "button",
1508
1510
  className: "btn btn-sm btn-primary",
1509
1511
  disabled: e.size === 0,
1510
1512
  onClick: () => a(!0),
1511
1513
  children: [
1512
- /* @__PURE__ */ P(de, {
1514
+ /* @__PURE__ */ F(fe, {
1513
1515
  size: 14,
1514
1516
  "aria-hidden": "true"
1515
1517
  }),
@@ -1521,24 +1523,24 @@ function We() {
1521
1523
  })]
1522
1524
  })
1523
1525
  ]
1524
- }), /* @__PURE__ */ P(D, {
1526
+ }), /* @__PURE__ */ F(S, {
1525
1527
  open: i,
1526
- title: /* @__PURE__ */ F(N, { children: [
1528
+ title: /* @__PURE__ */ I(P, { children: [
1527
1529
  "make ",
1528
1530
  f > 1 ? "these" : "this",
1529
1531
  " visible?"
1530
1532
  ] }),
1531
- intro: f > 0 ? /* @__PURE__ */ F("p", { children: [
1532
- /* @__PURE__ */ P("span", {
1533
+ intro: f > 0 ? /* @__PURE__ */ I("p", { children: [
1534
+ /* @__PURE__ */ F("span", {
1533
1535
  className: "tnum",
1534
1536
  children: f
1535
1537
  }),
1536
1538
  " private transcript",
1537
1539
  f === 1 ? "" : "s",
1538
1540
  " will become visible to members of ",
1539
- /* @__PURE__ */ P("b", { children: Ue.name }),
1541
+ /* @__PURE__ */ F("b", { children: We.name }),
1540
1542
  ". visibility will change from private to shared."
1541
- ] }) : /* @__PURE__ */ F("p", { children: [
1543
+ ] }) : /* @__PURE__ */ I("p", { children: [
1542
1544
  "contributing ",
1543
1545
  e.size,
1544
1546
  " already-visible transcript",
@@ -1546,7 +1548,7 @@ function We() {
1546
1548
  ". no visibility change."
1547
1549
  ] }),
1548
1550
  axes: [{
1549
- icon: W,
1551
+ icon: G,
1550
1552
  key: "visibility",
1551
1553
  value: f > 0 ? "private → shared" : "unchanged",
1552
1554
  scope: f > 0 ? `${f} transcript${f === 1 ? "" : "s"} newly exposed` : "no visibility change",
@@ -1554,28 +1556,28 @@ function We() {
1554
1556
  }, {
1555
1557
  icon: $,
1556
1558
  key: "shared with",
1557
- value: Ue.name,
1558
- scope: `${Ue.members} members can see it`,
1559
+ value: We.name,
1560
+ scope: `${We.members} members can see it`,
1559
1561
  tone: "open"
1560
1562
  }],
1561
1563
  requireConsent: f > 0,
1562
1564
  confirmLabel: f > 0 ? "contribute & make visible" : "contribute",
1563
- confirmIcon: I,
1565
+ confirmIcon: L,
1564
1566
  onCancel: () => a(!1),
1565
1567
  onConfirm: () => a(!1),
1566
- children: /* @__PURE__ */ F("ul", {
1568
+ children: /* @__PURE__ */ I("ul", {
1567
1569
  className: "cmg-confirm-list",
1568
- children: [d.slice(0, 5).map((e) => /* @__PURE__ */ F("li", {
1570
+ children: [d.slice(0, 5).map((e) => /* @__PURE__ */ I("li", {
1569
1571
  className: "cmg-confirm-tx",
1570
1572
  children: [
1571
- /* @__PURE__ */ P(ProviderMark, { id: e.provider }),
1572
- /* @__PURE__ */ P("span", {
1573
+ /* @__PURE__ */ F(ProviderMark, { id: e.provider }),
1574
+ /* @__PURE__ */ F("span", {
1573
1575
  className: "cmg-confirm-title",
1574
1576
  children: e.title
1575
1577
  }),
1576
- /* @__PURE__ */ P(Be, { v: e.visibility })
1578
+ /* @__PURE__ */ F(Ve, { v: e.visibility })
1577
1579
  ]
1578
- }, e.id)), d.length > 5 ? /* @__PURE__ */ F("li", {
1580
+ }, e.id)), d.length > 5 ? /* @__PURE__ */ I("li", {
1579
1581
  className: "cmg-confirm-more mono",
1580
1582
  children: [
1581
1583
  "…and ",
@@ -1589,7 +1591,7 @@ function We() {
1589
1591
  }
1590
1592
  //#endregion
1591
1593
  //#region src/ui/commons/Collectives.jsx
1592
- var Ge = Object.freeze([
1594
+ var Ke = Object.freeze([
1593
1595
  {
1594
1596
  value: "open",
1595
1597
  label: "open",
@@ -1605,56 +1607,56 @@ var Ge = Object.freeze([
1605
1607
  label: "curated",
1606
1608
  help: "the owner approves each transcript before it appears."
1607
1609
  }
1608
- ]), Ke = Object.freeze([{
1610
+ ]), qe = Object.freeze([{
1609
1611
  value: "members_only",
1610
1612
  label: "members only"
1611
1613
  }, {
1612
1614
  value: "contributors",
1613
1615
  label: "members and contributors"
1614
- }]), qe = {
1616
+ }]), Je = {
1615
1617
  open: "open",
1616
1618
  verified_only: "verified only",
1617
1619
  curated: "curated"
1618
- }, Je = (e) => String(e).replace(/-/g, " ");
1619
- function Ye({ href: e, onOpen: t, className: n, children: r }) {
1620
- return e ? /* @__PURE__ */ P("a", {
1620
+ }, Ye = (e) => String(e).replace(/-/g, " ");
1621
+ function Xe({ href: e, onOpen: t, className: n, children: r }) {
1622
+ return e ? /* @__PURE__ */ F("a", {
1621
1623
  className: n,
1622
1624
  href: e,
1623
1625
  onClick: (e) => {
1624
1626
  !t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), t());
1625
1627
  },
1626
1628
  children: r
1627
- }) : t ? /* @__PURE__ */ P("button", {
1629
+ }) : t ? /* @__PURE__ */ F("button", {
1628
1630
  type: "button",
1629
1631
  className: `${n} cmg-link-button`,
1630
1632
  onClick: t,
1631
1633
  children: r
1632
- }) : /* @__PURE__ */ P("span", {
1634
+ }) : /* @__PURE__ */ F("span", {
1633
1635
  className: n,
1634
1636
  children: r
1635
1637
  });
1636
1638
  }
1637
- function Xe(e, t, n) {
1638
- return e.map((e) => /* @__PURE__ */ P(Ye, {
1639
+ function Ze(e, t, n) {
1640
+ return e.map((e) => /* @__PURE__ */ F(Xe, {
1639
1641
  className: "cmg-pr-link tnum",
1640
1642
  href: n?.("pull-request", e),
1641
1643
  onOpen: t ? () => t(e) : void 0,
1642
1644
  children: e
1643
1645
  }, e));
1644
1646
  }
1645
- function Ze({ data: e = {}, actions: t = {} } = {}) {
1646
- let { collectives: n = [], linkedOrgs: r = [], title: i = "collectives", deck: a, crumb: o, caption: l = "collectives", createLabel: u = "new collective", createBusy: d = !1, whoCanPublish: f = Ge, whoCanRead: m = Ke } = e, { onCreateCollective: h, onOpenCollective: g, onSearchCollectives: _ } = t, [v, y] = M(!1), [x, S] = M(""), [C, w] = M(""), [T, E] = M(f[0]?.value ?? ""), [D, O] = M(m[0]?.value ?? ""), [A, j] = M(""), [N, I] = M(""), L = k(), R = [
1647
+ function Qe({ data: e = {}, actions: t = {} } = {}) {
1648
+ let { collectives: n = [], linkedOrgs: r = [], title: i = "collectives", deck: a, crumb: o, caption: s = "collectives", createLabel: l = "new collective", createBusy: d = !1, whoCanPublish: f = Ke, whoCanRead: p = qe } = e, { onCreateCollective: h, onOpenCollective: _, onSearchCollectives: v } = t, [y, b] = N(!1), [x, S] = N(""), [C, w] = N(""), [T, E] = N(f[0]?.value ?? ""), [O, k] = N(p[0]?.value ?? ""), [j, M] = N(""), [P, L] = N(""), R = A(), z = [
1647
1649
  {
1648
1650
  key: "name",
1649
1651
  label: "name",
1650
- render: (e, t) => /* @__PURE__ */ F("span", {
1652
+ render: (e, t) => /* @__PURE__ */ I("span", {
1651
1653
  className: "cmg-cell-stack",
1652
- children: [/* @__PURE__ */ P("button", {
1654
+ children: [/* @__PURE__ */ F("button", {
1653
1655
  type: "button",
1654
1656
  className: "cmg-table-link",
1655
- onClick: () => g?.(t.id),
1657
+ onClick: () => _?.(t.id),
1656
1658
  children: t.name
1657
- }), t.desc ? /* @__PURE__ */ P("span", {
1659
+ }), t.desc ? /* @__PURE__ */ F("span", {
1658
1660
  className: "cmg-cell-desc",
1659
1661
  children: t.desc
1660
1662
  }) : null]
@@ -1663,9 +1665,9 @@ function Ze({ data: e = {}, actions: t = {} } = {}) {
1663
1665
  {
1664
1666
  key: "role",
1665
1667
  label: "your role",
1666
- render: (e, t) => /* @__PURE__ */ F("span", {
1668
+ render: (e, t) => /* @__PURE__ */ I("span", {
1667
1669
  className: "cmg-cell-stack",
1668
- children: [/* @__PURE__ */ P("span", { children: e }), t.since ? /* @__PURE__ */ P("span", {
1670
+ children: [/* @__PURE__ */ F("span", { children: e }), t.since ? /* @__PURE__ */ F("span", {
1669
1671
  className: "cmg-cell-sub",
1670
1672
  children: t.since
1671
1673
  }) : null]
@@ -1680,15 +1682,15 @@ function Ze({ data: e = {}, actions: t = {} } = {}) {
1680
1682
  key: "transcripts",
1681
1683
  label: "transcripts",
1682
1684
  align: "right",
1683
- render: (e) => typeof e == "number" ? e.toLocaleString("en-US") : e
1685
+ render: (e) => typeof e == "number" ? D(e) : e
1684
1686
  },
1685
1687
  ...n.some((e) => e.org !== void 0) ? [{
1686
1688
  key: "org",
1687
1689
  label: "github org",
1688
- render: (e, t) => t.org ? /* @__PURE__ */ F("span", {
1690
+ render: (e, t) => t.org ? /* @__PURE__ */ I("span", {
1689
1691
  className: "mono",
1690
1692
  children: [t.org, t.repos ? `, ${t.repos} open` : ""]
1691
- }) : /* @__PURE__ */ P("span", {
1693
+ }) : /* @__PURE__ */ F("span", {
1692
1694
  className: "cmg-none",
1693
1695
  children: "nothing linked"
1694
1696
  })
@@ -1696,81 +1698,81 @@ function Ze({ data: e = {}, actions: t = {} } = {}) {
1696
1698
  {
1697
1699
  key: "mode",
1698
1700
  label: "joining",
1699
- render: (e) => qe[e] ?? e
1701
+ render: (e) => Je[e] ?? e
1700
1702
  }
1701
1703
  ];
1702
- return /* @__PURE__ */ F("div", {
1704
+ return /* @__PURE__ */ I("div", {
1703
1705
  className: "iu-page",
1704
1706
  children: [
1705
- o ? /* @__PURE__ */ P("div", {
1707
+ o ? /* @__PURE__ */ F("div", {
1706
1708
  className: "cmg-crumb",
1707
- children: /* @__PURE__ */ P(b, { items: [{ label: o }] })
1709
+ children: /* @__PURE__ */ F(m, { items: [{ label: o }] })
1708
1710
  }) : null,
1709
- /* @__PURE__ */ F("header", {
1711
+ /* @__PURE__ */ I("header", {
1710
1712
  className: "iu-page-head",
1711
- children: [/* @__PURE__ */ F("div", {
1713
+ children: [/* @__PURE__ */ I("div", {
1712
1714
  className: "iu-page-titlerow",
1713
- children: [/* @__PURE__ */ P("h2", {
1715
+ children: [/* @__PURE__ */ F("h2", {
1714
1716
  className: "iu-page-title",
1715
1717
  children: i
1716
- }), /* @__PURE__ */ F("button", {
1718
+ }), /* @__PURE__ */ I("button", {
1717
1719
  type: "button",
1718
- className: "btn btn-sm " + (v ? "btn-secondary" : "btn-primary"),
1719
- "aria-expanded": v,
1720
- onClick: () => y((e) => !e),
1720
+ className: "btn btn-sm " + (y ? "btn-secondary" : "btn-primary"),
1721
+ "aria-expanded": y,
1722
+ onClick: () => b((e) => !e),
1721
1723
  children: [
1722
- /* @__PURE__ */ P(oe, {
1724
+ /* @__PURE__ */ F(se, {
1723
1725
  size: 14,
1724
1726
  "aria-hidden": "true"
1725
1727
  }),
1726
1728
  " ",
1727
- v ? "close" : u
1729
+ y ? "close" : l
1728
1730
  ]
1729
1731
  })]
1730
- }), a ? /* @__PURE__ */ P("p", {
1732
+ }), a ? /* @__PURE__ */ F("p", {
1731
1733
  className: "iu-page-sub",
1732
1734
  children: a
1733
1735
  }) : null]
1734
1736
  }),
1735
- v && /* @__PURE__ */ F("section", {
1737
+ y && /* @__PURE__ */ I("section", {
1736
1738
  className: "cmg-form card",
1737
- "aria-labelledby": `${L}-form`,
1739
+ "aria-labelledby": `${R}-form`,
1738
1740
  children: [
1739
- /* @__PURE__ */ P("h3", {
1740
- id: `${L}-form`,
1741
+ /* @__PURE__ */ F("h3", {
1742
+ id: `${R}-form`,
1741
1743
  className: "cmg-sub",
1742
1744
  children: "create a collective"
1743
1745
  }),
1744
- /* @__PURE__ */ F("div", {
1746
+ /* @__PURE__ */ I("div", {
1745
1747
  className: "cmg-form-grid",
1746
1748
  children: [
1747
- /* @__PURE__ */ F("label", {
1749
+ /* @__PURE__ */ I("label", {
1748
1750
  className: "cmg-field",
1749
- children: [/* @__PURE__ */ P("span", {
1751
+ children: [/* @__PURE__ */ F("span", {
1750
1752
  className: "label",
1751
1753
  children: "name"
1752
- }), /* @__PURE__ */ P("input", {
1754
+ }), /* @__PURE__ */ F("input", {
1753
1755
  className: "input",
1754
1756
  type: "text",
1755
1757
  value: x,
1756
1758
  onChange: (e) => S(e.target.value)
1757
1759
  })]
1758
1760
  }),
1759
- /* @__PURE__ */ F("label", {
1761
+ /* @__PURE__ */ I("label", {
1760
1762
  className: "cmg-field cmg-field-wide",
1761
- children: [/* @__PURE__ */ P("span", {
1763
+ children: [/* @__PURE__ */ F("span", {
1762
1764
  className: "label",
1763
1765
  children: "purpose"
1764
- }), /* @__PURE__ */ P("textarea", {
1766
+ }), /* @__PURE__ */ F("textarea", {
1765
1767
  className: "input",
1766
1768
  rows: 2,
1767
1769
  value: C,
1768
1770
  onChange: (e) => w(e.target.value)
1769
1771
  })]
1770
1772
  }),
1771
- /* @__PURE__ */ P("div", {
1773
+ /* @__PURE__ */ F("div", {
1772
1774
  className: "cmg-field",
1773
- children: /* @__PURE__ */ P(p, {
1775
+ children: /* @__PURE__ */ F(c, {
1774
1776
  variant: "select",
1775
1777
  label: "who can publish",
1776
1778
  name: "who-can-publish",
@@ -1782,32 +1784,32 @@ function Ze({ data: e = {}, actions: t = {} } = {}) {
1782
1784
  }))
1783
1785
  })
1784
1786
  }),
1785
- /* @__PURE__ */ P("div", {
1787
+ /* @__PURE__ */ F("div", {
1786
1788
  className: "cmg-field",
1787
- children: /* @__PURE__ */ P(p, {
1789
+ children: /* @__PURE__ */ F(c, {
1788
1790
  variant: "select",
1789
1791
  label: "who can read",
1790
1792
  name: "who-can-read",
1791
- value: D,
1792
- onChange: O,
1793
- options: m
1793
+ value: O,
1794
+ onChange: k,
1795
+ options: p
1794
1796
  })
1795
1797
  }),
1796
- /* @__PURE__ */ F("label", {
1798
+ /* @__PURE__ */ I("label", {
1797
1799
  className: "cmg-field",
1798
- children: [/* @__PURE__ */ P("span", {
1800
+ children: [/* @__PURE__ */ F("span", {
1799
1801
  className: "label",
1800
1802
  children: "github org (optional)"
1801
- }), /* @__PURE__ */ P("span", {
1803
+ }), /* @__PURE__ */ F("span", {
1802
1804
  className: "select-wrap",
1803
- children: /* @__PURE__ */ F("select", {
1805
+ children: /* @__PURE__ */ I("select", {
1804
1806
  className: "select",
1805
- value: A,
1806
- onChange: (e) => j(e.target.value),
1807
- children: [/* @__PURE__ */ P("option", {
1807
+ value: j,
1808
+ onChange: (e) => M(e.target.value),
1809
+ children: [/* @__PURE__ */ F("option", {
1808
1810
  value: "",
1809
1811
  children: "not linked"
1810
- }), r.map((e) => /* @__PURE__ */ P("option", {
1812
+ }), r.map((e) => /* @__PURE__ */ F("option", {
1811
1813
  value: e,
1812
1814
  children: e
1813
1815
  }, e))]
@@ -1816,62 +1818,62 @@ function Ze({ data: e = {}, actions: t = {} } = {}) {
1816
1818
  })
1817
1819
  ]
1818
1820
  }),
1819
- /* @__PURE__ */ F("div", {
1821
+ /* @__PURE__ */ I("div", {
1820
1822
  className: "cmg-form-foot",
1821
- children: [/* @__PURE__ */ P("button", {
1823
+ children: [/* @__PURE__ */ F("button", {
1822
1824
  type: "button",
1823
1825
  className: "btn btn-sm btn-primary",
1824
1826
  disabled: !x.trim() || d,
1825
- "aria-describedby": L,
1827
+ "aria-describedby": R,
1826
1828
  onClick: () => h?.({
1827
1829
  name: x,
1828
1830
  purpose: C,
1829
1831
  mode: T,
1830
- access: D,
1831
- org: A
1832
+ access: O,
1833
+ org: j
1832
1834
  }),
1833
1835
  children: d ? "creating" : "create collective"
1834
- }), /* @__PURE__ */ P("span", {
1835
- id: L,
1836
+ }), /* @__PURE__ */ F("span", {
1837
+ id: R,
1836
1838
  className: "cmg-form-hint mono",
1837
1839
  children: f.find((e) => e.value === T)?.help
1838
1840
  })]
1839
1841
  })
1840
1842
  ]
1841
1843
  }),
1842
- /* @__PURE__ */ F("div", {
1844
+ /* @__PURE__ */ I("div", {
1843
1845
  className: "cmg-section",
1844
- children: [/* @__PURE__ */ P(s, {
1845
- caption: `${l} ${n.length}`,
1846
- columns: R,
1846
+ children: [/* @__PURE__ */ F(u, {
1847
+ caption: `${s} ${n.length}`,
1848
+ columns: z,
1847
1849
  rows: n,
1848
1850
  rowKey: (e) => e.id
1849
- }), n.some((e) => e.mode === "curated") ? /* @__PURE__ */ P("p", {
1851
+ }), n.some((e) => e.mode === "curated") ? /* @__PURE__ */ F("p", {
1850
1852
  className: "cmg-note",
1851
1853
  children: "in a curated collective, each transcript you publish waits for the owner to approve it."
1852
1854
  }) : null]
1853
1855
  }),
1854
- _ && /* @__PURE__ */ F("section", {
1856
+ v && /* @__PURE__ */ I("section", {
1855
1857
  className: "cmg-section",
1856
- "aria-labelledby": `${L}-find`,
1857
- children: [/* @__PURE__ */ P("h3", {
1858
+ "aria-labelledby": `${R}-find`,
1859
+ children: [/* @__PURE__ */ F("h3", {
1858
1860
  className: "cmg-section-title",
1859
- id: `${L}-find`,
1861
+ id: `${R}-find`,
1860
1862
  children: "find a collective"
1861
- }), /* @__PURE__ */ F("form", {
1863
+ }), /* @__PURE__ */ I("form", {
1862
1864
  className: "cmg-find",
1863
1865
  role: "search",
1864
1866
  onSubmit: (e) => {
1865
- e.preventDefault(), _(N);
1867
+ e.preventDefault(), v(P);
1866
1868
  },
1867
- children: [/* @__PURE__ */ P(c, {
1869
+ children: [/* @__PURE__ */ F(g, {
1868
1870
  label: "collective or github org",
1869
1871
  type: "search",
1870
- iconLeft: se,
1872
+ iconLeft: Z,
1871
1873
  placeholder: "collective name or github org",
1872
- value: N,
1873
- onChange: (e) => I(e.target.value)
1874
- }), /* @__PURE__ */ P("button", {
1874
+ value: P,
1875
+ onChange: (e) => L(e.target.value)
1876
+ }), /* @__PURE__ */ F("button", {
1875
1877
  type: "submit",
1876
1878
  className: "btn btn-secondary",
1877
1879
  children: "search"
@@ -1881,14 +1883,14 @@ function Ze({ data: e = {}, actions: t = {} } = {}) {
1881
1883
  ]
1882
1884
  });
1883
1885
  }
1884
- function Qe({ members: e, count: t }) {
1886
+ function $e({ members: e, count: t }) {
1885
1887
  let n = e.slice(0, 2).map((e) => e.handle), r = t - n.length;
1886
- return n.length === 0 ? null : /* @__PURE__ */ F("span", {
1888
+ return n.length === 0 ? null : /* @__PURE__ */ I("span", {
1887
1889
  className: "cmg-members-text",
1888
1890
  children: [n.join(", "), r > 0 ? ` and ${r} others` : ""]
1889
1891
  });
1890
1892
  }
1891
- function $e(e = {}) {
1893
+ function et(e = {}) {
1892
1894
  let t = typeof e.linkedGithubOrg == "string" && e.linkedGithubOrg ? { login: e.linkedGithubOrg.replace(/^@/, "") } : void 0;
1893
1895
  return {
1894
1896
  ...e,
@@ -1901,29 +1903,29 @@ function $e(e = {}) {
1901
1903
  org: e.org === void 0 ? t : e.org
1902
1904
  };
1903
1905
  }
1904
- function et({ data: e = {}, actions: t = {} } = {}) {
1905
- let { owners: n = [], linkedRepos: r = [], hrefFor: i } = e, o = $e(e.collective), { onSettings: c, onContribute: l, onReview: d, onOpenTranscript: p, onOpenPullRequest: m, onLinkRepos: h, onShowMore: g } = t, [v, y] = M(!1), x = k(), S = o.transcriptCount ?? o.transcripts.length, C = [
1906
+ function tt({ data: e = {}, actions: t = {} } = {}) {
1907
+ let { owners: r = [], linkedRepos: i = [], hrefFor: a } = e, s = et(e.collective), { onSettings: c, onContribute: l, onReview: d, onOpenTranscript: f, onOpenPullRequest: p, onLinkRepos: h, onShowMore: g } = t, [_, v] = N(!1), b = A(), S = s.transcriptCount ?? s.transcripts.length, w = [
1906
1908
  {
1907
1909
  key: "title",
1908
1910
  label: "title",
1909
1911
  width: "18rem",
1910
- render: (e, t) => /* @__PURE__ */ F("span", {
1912
+ render: (e, t) => /* @__PURE__ */ I("span", {
1911
1913
  className: "iu-session",
1912
- children: [/* @__PURE__ */ P(a, {
1914
+ children: [/* @__PURE__ */ F(n, {
1913
1915
  harness: t.harness,
1914
1916
  accent: !0
1915
- }), /* @__PURE__ */ F("span", {
1917
+ }), /* @__PURE__ */ I("span", {
1916
1918
  className: "iu-session-text",
1917
- children: [/* @__PURE__ */ P(Ye, {
1919
+ children: [/* @__PURE__ */ F(Xe, {
1918
1920
  className: "iu-session-title",
1919
- href: i?.("transcript", t.id),
1920
- onOpen: p ? () => p(t.id) : void 0,
1921
+ href: a?.("transcript", t.id),
1922
+ onOpen: f ? () => f(t.id) : void 0,
1921
1923
  children: t.title
1922
- }), /* @__PURE__ */ F("span", {
1924
+ }), /* @__PURE__ */ I("span", {
1923
1925
  className: "iu-session-sub",
1924
- children: [Je(t.harness), typeof t.turns == "number" ? /* @__PURE__ */ F(N, { children: [
1926
+ children: [Ye(t.harness), typeof t.turns == "number" ? /* @__PURE__ */ I(P, { children: [
1925
1927
  ", ",
1926
- /* @__PURE__ */ P("span", {
1928
+ /* @__PURE__ */ F("span", {
1927
1929
  className: "tnum",
1928
1930
  children: t.turns
1929
1931
  }),
@@ -1936,7 +1938,7 @@ function et({ data: e = {}, actions: t = {} } = {}) {
1936
1938
  {
1937
1939
  key: "author",
1938
1940
  label: "author",
1939
- render: (e) => /* @__PURE__ */ P("span", {
1941
+ render: (e) => /* @__PURE__ */ F("span", {
1940
1942
  className: "mono",
1941
1943
  children: e
1942
1944
  })
@@ -1944,17 +1946,17 @@ function et({ data: e = {}, actions: t = {} } = {}) {
1944
1946
  {
1945
1947
  key: "pullRequests",
1946
1948
  label: "pull requests",
1947
- render: (e, t) => t.pullRequests?.length ? /* @__PURE__ */ F("span", {
1949
+ render: (e, t) => t.pullRequests?.length ? /* @__PURE__ */ I("span", {
1948
1950
  className: "cmg-prs",
1949
- children: [/* @__PURE__ */ P(u, {
1950
- items: Xe(t.pullRequests, m, i),
1951
+ children: [/* @__PURE__ */ F(C, {
1952
+ items: Ze(t.pullRequests, p, a),
1951
1953
  label: "pull requests",
1952
1954
  noun: ["pull request", "pull requests"]
1953
- }), t.repo && /* @__PURE__ */ P("span", {
1955
+ }), t.repo && /* @__PURE__ */ F("span", {
1954
1956
  className: "cmg-none mono",
1955
1957
  children: t.repo
1956
1958
  })]
1957
- }) : /* @__PURE__ */ P("span", {
1959
+ }) : /* @__PURE__ */ F("span", {
1958
1960
  className: "cmg-none",
1959
1961
  children: "not linked"
1960
1962
  })
@@ -1967,369 +1969,369 @@ function et({ data: e = {}, actions: t = {} } = {}) {
1967
1969
  {
1968
1970
  key: "read",
1969
1971
  title: "who can read",
1970
- text: o.whoCanRead
1972
+ text: s.whoCanRead
1971
1973
  },
1972
1974
  {
1973
1975
  key: "publish",
1974
1976
  title: "who can publish",
1975
- text: o.whoCanPublish
1977
+ text: s.whoCanPublish
1976
1978
  },
1977
1979
  {
1978
1980
  key: "role",
1979
1981
  title: "your role",
1980
- text: o.yourRole
1982
+ text: s.yourRole
1981
1983
  }
1982
1984
  ].filter((e) => e.text);
1983
- return /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ F("div", {
1985
+ return /* @__PURE__ */ I(P, { children: [/* @__PURE__ */ I("div", {
1984
1986
  className: "iu-page",
1985
1987
  children: [
1986
- /* @__PURE__ */ P("div", {
1988
+ /* @__PURE__ */ F("div", {
1987
1989
  className: "cmg-crumb-content",
1988
- children: /* @__PURE__ */ P(b, { items: [{
1990
+ children: /* @__PURE__ */ F(m, { items: [{
1989
1991
  label: "collectives",
1990
- href: i?.("collectives")
1991
- }, { label: o.name }] })
1992
+ href: a?.("collectives")
1993
+ }, { label: s.name }] })
1992
1994
  }),
1993
- /* @__PURE__ */ F("header", {
1995
+ /* @__PURE__ */ I("header", {
1994
1996
  className: "iu-page-head",
1995
- children: [/* @__PURE__ */ F("div", {
1997
+ children: [/* @__PURE__ */ I("div", {
1996
1998
  className: "iu-page-titlerow",
1997
- children: [/* @__PURE__ */ P("h2", {
1999
+ children: [/* @__PURE__ */ F("h2", {
1998
2000
  className: "iu-page-title iu-page-title-content",
1999
- id: x,
2000
- children: o.name
2001
- }), /* @__PURE__ */ F("span", {
2001
+ id: b,
2002
+ children: s.name
2003
+ }), /* @__PURE__ */ I("span", {
2002
2004
  className: "cmg-actions",
2003
- children: [o.role === "owner" && c && /* @__PURE__ */ F("button", {
2005
+ children: [s.role === "owner" && c && /* @__PURE__ */ I("button", {
2004
2006
  type: "button",
2005
2007
  className: "btn btn-secondary btn-sm",
2006
2008
  onClick: () => c(),
2007
- children: [/* @__PURE__ */ P(Z, {
2009
+ children: [/* @__PURE__ */ F(Q, {
2008
2010
  size: 14,
2009
2011
  "aria-hidden": "true"
2010
2012
  }), " settings"]
2011
- }), (l || d) && /* @__PURE__ */ P(w, {
2012
- icon: X,
2013
+ }), (l || d) && /* @__PURE__ */ F(o, {
2014
+ icon: oe,
2013
2015
  ariaLabel: "more",
2014
2016
  size: "sm",
2015
2017
  align: "end",
2016
2018
  items: [...l ? [{
2017
2019
  label: "publish several transcripts",
2018
- icon: de,
2020
+ icon: fe,
2019
2021
  onSelect: () => l()
2020
2022
  }] : [], ...d ? [{
2021
2023
  label: "review transcripts",
2022
- icon: B,
2024
+ icon: V,
2023
2025
  onSelect: () => d()
2024
2026
  }] : []]
2025
2027
  })]
2026
2028
  })]
2027
- }), o.purpose ? /* @__PURE__ */ P("p", {
2029
+ }), s.purpose ? /* @__PURE__ */ F("p", {
2028
2030
  className: "iu-page-sub",
2029
- children: o.purpose
2031
+ children: s.purpose
2030
2032
  }) : null]
2031
2033
  }),
2032
- T.length > 0 && /* @__PURE__ */ P("ul", {
2034
+ T.length > 0 && /* @__PURE__ */ F("ul", {
2033
2035
  className: "cmg-policies",
2034
2036
  "aria-label": "how this collective works",
2035
- children: T.map((e) => /* @__PURE__ */ F("li", {
2037
+ children: T.map((e) => /* @__PURE__ */ I("li", {
2036
2038
  className: "cmg-policy",
2037
- children: [/* @__PURE__ */ P("h3", {
2039
+ children: [/* @__PURE__ */ F("h3", {
2038
2040
  className: "cmg-policy-title",
2039
2041
  children: e.title
2040
- }), /* @__PURE__ */ P("p", {
2042
+ }), /* @__PURE__ */ F("p", {
2041
2043
  className: "cmg-policy-text",
2042
2044
  children: e.text
2043
2045
  })]
2044
2046
  }, e.key))
2045
2047
  }),
2046
- /* @__PURE__ */ P(f, {
2047
- items: o.stats,
2048
- label: `${o.name} in numbers`
2048
+ /* @__PURE__ */ F(y, {
2049
+ items: s.stats,
2050
+ label: `${s.name} in numbers`
2049
2051
  }),
2050
- /* @__PURE__ */ F("div", {
2052
+ /* @__PURE__ */ I("div", {
2051
2053
  className: "cmg-home",
2052
- children: [/* @__PURE__ */ F("div", {
2054
+ children: [/* @__PURE__ */ I("div", {
2053
2055
  className: "cmg-home-main",
2054
- children: [/* @__PURE__ */ P(s, {
2056
+ children: [/* @__PURE__ */ F(u, {
2055
2057
  caption: `transcripts ${S}`,
2056
- columns: C,
2057
- rows: o.transcripts,
2058
+ columns: w,
2059
+ rows: s.transcripts,
2058
2060
  rowKey: (e) => e.id
2059
- }), /* @__PURE__ */ F("div", {
2061
+ }), /* @__PURE__ */ I("div", {
2060
2062
  className: "iu-page-foot",
2061
- children: [/* @__PURE__ */ F("span", {
2063
+ children: [/* @__PURE__ */ I("span", {
2062
2064
  className: "iu-page-count",
2063
2065
  children: [
2064
2066
  "showing ",
2065
- /* @__PURE__ */ P("span", {
2067
+ /* @__PURE__ */ F("span", {
2066
2068
  className: "tnum",
2067
- children: o.transcripts.length
2069
+ children: s.transcripts.length
2068
2070
  }),
2069
2071
  " of ",
2070
- /* @__PURE__ */ P("span", {
2072
+ /* @__PURE__ */ F("span", {
2071
2073
  className: "tnum",
2072
2074
  children: S
2073
2075
  })
2074
2076
  ]
2075
- }), S > o.transcripts.length && g && /* @__PURE__ */ P("button", {
2077
+ }), S > s.transcripts.length && g && /* @__PURE__ */ F("button", {
2076
2078
  type: "button",
2077
2079
  className: "btn btn-secondary btn-sm",
2078
2080
  onClick: () => g(),
2079
2081
  children: "show more"
2080
2082
  })]
2081
2083
  })]
2082
- }), /* @__PURE__ */ F("aside", {
2084
+ }), /* @__PURE__ */ I("aside", {
2083
2085
  className: "cmg-rail",
2084
2086
  "aria-label": "github orgs and members",
2085
- children: [/* @__PURE__ */ F("section", {
2087
+ children: [/* @__PURE__ */ I("section", {
2086
2088
  className: "cmg-rail-box",
2087
- children: [/* @__PURE__ */ P("h3", {
2089
+ children: [/* @__PURE__ */ F("h3", {
2088
2090
  className: "cmg-rail-title",
2089
2091
  children: "github orgs"
2090
- }), o.org ? /* @__PURE__ */ F("p", {
2092
+ }), s.org ? /* @__PURE__ */ I("p", {
2091
2093
  className: "cmg-rail-line",
2092
2094
  children: [
2093
- /* @__PURE__ */ P(K, { "aria-hidden": "true" }),
2095
+ /* @__PURE__ */ F(K, { "aria-hidden": "true" }),
2094
2096
  " ",
2095
- /* @__PURE__ */ P("span", {
2097
+ /* @__PURE__ */ F("span", {
2096
2098
  className: "mono",
2097
- children: o.org.login
2099
+ children: s.org.login
2098
2100
  }),
2099
- typeof o.org.total == "number" ? /* @__PURE__ */ F(N, { children: [
2101
+ typeof s.org.total == "number" ? /* @__PURE__ */ I(P, { children: [
2100
2102
  ", ",
2101
- /* @__PURE__ */ P("span", {
2103
+ /* @__PURE__ */ F("span", {
2102
2104
  className: "tnum",
2103
- children: o.org.linked ?? 0
2105
+ children: s.org.linked ?? 0
2104
2106
  }),
2105
2107
  " of ",
2106
- /* @__PURE__ */ P("span", {
2108
+ /* @__PURE__ */ F("span", {
2107
2109
  className: "tnum",
2108
- children: o.org.total
2110
+ children: s.org.total
2109
2111
  }),
2110
2112
  " repos linked"
2111
2113
  ] }) : null,
2112
- o.role === "owner" && h && /* @__PURE__ */ P("button", {
2114
+ s.role === "owner" && h && /* @__PURE__ */ F("button", {
2113
2115
  type: "button",
2114
2116
  className: "btn btn-ghost btn-sm",
2115
- onClick: () => y(!0),
2117
+ onClick: () => v(!0),
2116
2118
  children: "manage"
2117
2119
  })
2118
2120
  ]
2119
- }) : o.org === null ? /* @__PURE__ */ P("p", {
2121
+ }) : s.org === null ? /* @__PURE__ */ F("p", {
2120
2122
  className: "cmg-rail-line cmg-none",
2121
2123
  children: "nothing linked"
2122
2124
  }) : null]
2123
- }), /* @__PURE__ */ F("section", {
2125
+ }), /* @__PURE__ */ I("section", {
2124
2126
  className: "cmg-rail-box",
2125
2127
  children: [
2126
- /* @__PURE__ */ F("h3", {
2128
+ /* @__PURE__ */ I("h3", {
2127
2129
  className: "cmg-rail-title",
2128
- children: ["members", typeof o.memberCount == "number" ? /* @__PURE__ */ F(N, { children: [" ", /* @__PURE__ */ P("span", {
2130
+ children: ["members", typeof s.memberCount == "number" ? /* @__PURE__ */ I(P, { children: [" ", /* @__PURE__ */ F("span", {
2129
2131
  className: "tnum cmg-count",
2130
- children: o.memberCount
2132
+ children: s.memberCount
2131
2133
  })] }) : null]
2132
2134
  }),
2133
- o.memberBreakdown ? /* @__PURE__ */ P("p", {
2135
+ s.memberBreakdown ? /* @__PURE__ */ F("p", {
2134
2136
  className: "cmg-note",
2135
- children: o.memberBreakdown
2137
+ children: s.memberBreakdown
2136
2138
  }) : null,
2137
- /* @__PURE__ */ P(Qe, {
2138
- members: o.members,
2139
- count: o.memberCount ?? o.members.length
2139
+ /* @__PURE__ */ F($e, {
2140
+ members: s.members,
2141
+ count: s.memberCount ?? s.members.length
2140
2142
  })
2141
2143
  ]
2142
2144
  })]
2143
2145
  })]
2144
2146
  })
2145
2147
  ]
2146
- }), h && /* @__PURE__ */ P(_, {
2147
- open: v,
2148
- onClose: () => y(!1),
2149
- owners: n,
2150
- initialSelected: r,
2151
- title: `link repositories from ${o.org?.login ?? "github"}`,
2152
- description: `pull requests in linked repos show the transcripts published to ${o.name}.`,
2148
+ }), h && /* @__PURE__ */ F(x, {
2149
+ open: _,
2150
+ onClose: () => v(!1),
2151
+ owners: r,
2152
+ initialSelected: i,
2153
+ title: `link repositories from ${s.org?.login ?? "github"}`,
2154
+ description: `pull requests in linked repos show the transcripts published to ${s.name}.`,
2153
2155
  onSave: (e) => {
2154
- h(e), y(!1);
2156
+ h(e), v(!1);
2155
2157
  }
2156
2158
  })] });
2157
2159
  }
2158
- var tt = Object.freeze([{
2160
+ var nt = Object.freeze([{
2159
2161
  value: "user_choice",
2160
2162
  label: "they choose"
2161
2163
  }, {
2162
2164
  value: "mandatory",
2163
2165
  label: "take them out"
2164
2166
  }]);
2165
- function nt(e, t) {
2167
+ function rt(e, t) {
2166
2168
  return t.some((t) => t.value === e) ? t : [{
2167
2169
  value: "",
2168
2170
  label: "not set",
2169
2171
  disabled: !0
2170
2172
  }, ...t];
2171
2173
  }
2172
- var rt = (e, t) => t.some((t) => t.value === e) ? e : "";
2173
- function it() {
2174
- return /* @__PURE__ */ P(e, { name: "github" });
2174
+ var it = (e, t) => t.some((t) => t.value === e) ? e : "";
2175
+ function at() {
2176
+ return /* @__PURE__ */ F(e, { name: "github" });
2175
2177
  }
2176
- var at = {
2177
- general: le,
2178
- access: Y,
2178
+ var ot = {
2179
+ general: ue,
2180
+ access: re,
2179
2181
  members: $,
2180
- "github orgs": it,
2181
- "pull requests": J,
2182
- "danger zone": ue
2182
+ "github orgs": at,
2183
+ "pull requests": ne,
2184
+ "danger zone": de
2183
2185
  };
2184
- function ot({ data: e = {}, actions: t = {} } = {}) {
2185
- let { owners: n = [], linkedRepos: r = [], showOnPullRequests: i = !1, whoCanPublish: a = Ge, whoCanRead: o = Ke, memberLeavesChoices: s = tt, hrefFor: l } = e, u = $e(e.collective), d = (e) => (n) => t.onCommit ? t.onCommit(e, n) : Promise.resolve(), [f, p] = M(!1), [g, v] = M(""), x = !!(t.onTransferOwnership || t.onDelete), S = [
2186
+ function st({ data: e = {}, actions: t = {} } = {}) {
2187
+ let { owners: n = [], linkedRepos: r = [], showOnPullRequests: i = !1, whoCanPublish: a = Ke, whoCanRead: o = qe, memberLeavesChoices: c = nt, hrefFor: u } = e, f = et(e.collective), p = (e) => (n) => t.onCommit ? t.onCommit(e, n) : Promise.resolve(), [_, v] = N(!1), [y, b] = N(""), S = !!(t.onTransferOwnership || t.onDelete), C = [
2186
2188
  "general",
2187
2189
  "access",
2188
2190
  "members",
2189
2191
  "github orgs",
2190
2192
  "pull requests",
2191
- ...x ? ["danger zone"] : []
2192
- ], C = (e) => `cmg-settings-${e.replace(/ /g, "-")}`;
2193
- return /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ F("div", {
2193
+ ...S ? ["danger zone"] : []
2194
+ ], w = (e) => `cmg-settings-${e.replace(/ /g, "-")}`;
2195
+ return /* @__PURE__ */ I(P, { children: [/* @__PURE__ */ I("div", {
2194
2196
  className: "iu-page cmg-settings",
2195
2197
  children: [
2196
- /* @__PURE__ */ P("div", {
2198
+ /* @__PURE__ */ F("div", {
2197
2199
  className: "cmg-crumb-content",
2198
- children: /* @__PURE__ */ P(b, { items: [
2200
+ children: /* @__PURE__ */ F(m, { items: [
2199
2201
  {
2200
2202
  label: "collectives",
2201
- href: l?.("collectives")
2203
+ href: u?.("collectives")
2202
2204
  },
2203
2205
  {
2204
- label: u.name,
2205
- href: l?.("collective", u.id)
2206
+ label: f.name,
2207
+ href: u?.("collective", f.id)
2206
2208
  },
2207
2209
  { label: "settings" }
2208
2210
  ] })
2209
2211
  }),
2210
- /* @__PURE__ */ P("header", {
2212
+ /* @__PURE__ */ F("header", {
2211
2213
  className: "iu-page-head",
2212
- children: /* @__PURE__ */ F("h2", {
2214
+ children: /* @__PURE__ */ I("h2", {
2213
2215
  className: "iu-page-title",
2214
- children: [/* @__PURE__ */ P("span", {
2216
+ children: [/* @__PURE__ */ F("span", {
2215
2217
  className: "iu-page-title-content",
2216
- children: u.name
2218
+ children: f.name
2217
2219
  }), ", settings"]
2218
2220
  })
2219
2221
  }),
2220
- /* @__PURE__ */ F(T, {
2221
- sections: S.map((e) => ({
2222
- id: C(e),
2222
+ /* @__PURE__ */ I(s, {
2223
+ sections: C.map((e) => ({
2224
+ id: w(e),
2223
2225
  label: e,
2224
- href: `#${C(e)}`,
2225
- icon: at[e]
2226
+ href: `#${w(e)}`,
2227
+ icon: ot[e]
2226
2228
  })),
2227
- currentId: C(S[0]),
2229
+ currentId: w(C[0]),
2228
2230
  spy: !0,
2229
2231
  children: [
2230
- /* @__PURE__ */ F(y, {
2232
+ /* @__PURE__ */ I(h, {
2231
2233
  label: "general",
2232
2234
  defaultOpen: !0,
2233
- id: C("general"),
2234
- children: [/* @__PURE__ */ P(m, {
2235
+ id: w("general"),
2236
+ children: [/* @__PURE__ */ F(d, {
2235
2237
  label: "name",
2236
2238
  control: "text",
2237
- value: u.name,
2238
- onCommit: d("name")
2239
- }), /* @__PURE__ */ P(m, {
2239
+ value: f.name,
2240
+ onCommit: p("name")
2241
+ }), /* @__PURE__ */ F(d, {
2240
2242
  label: "purpose",
2241
2243
  control: "text",
2242
- value: u.purpose ?? "",
2243
- onCommit: d("purpose")
2244
+ value: f.purpose ?? "",
2245
+ onCommit: p("purpose")
2244
2246
  })]
2245
2247
  }),
2246
- /* @__PURE__ */ F(y, {
2248
+ /* @__PURE__ */ I(h, {
2247
2249
  label: "access",
2248
2250
  defaultOpen: !0,
2249
- id: C("access"),
2250
- children: [/* @__PURE__ */ P(m, {
2251
+ id: w("access"),
2252
+ children: [/* @__PURE__ */ F(d, {
2251
2253
  label: "who can publish",
2252
2254
  help: ((e) => e.filter((e) => e.help).map((e) => `${e.label}: ${e.help}`).join(" "))(a),
2253
2255
  control: "select",
2254
- value: rt(u.mode, a),
2255
- options: nt(u.mode, a),
2256
- onCommit: d("mode")
2257
- }), /* @__PURE__ */ P(m, {
2256
+ value: it(f.mode, a),
2257
+ options: rt(f.mode, a),
2258
+ onCommit: p("mode")
2259
+ }), /* @__PURE__ */ F(d, {
2258
2260
  label: "who can read",
2259
2261
  help: "members read and publish. contributors publish, and read only if who can read allows it.",
2260
2262
  control: "select",
2261
- value: rt(u.access, o),
2262
- options: nt(u.access, o),
2263
- onCommit: d("access")
2263
+ value: it(f.access, o),
2264
+ options: rt(f.access, o),
2265
+ onCommit: p("access")
2264
2266
  })]
2265
2267
  }),
2266
- /* @__PURE__ */ F(y, {
2268
+ /* @__PURE__ */ I(h, {
2267
2269
  label: "members",
2268
2270
  defaultOpen: !0,
2269
- count: u.memberCount ?? null,
2271
+ count: f.memberCount ?? null,
2270
2272
  noun: ["member", "members"],
2271
- id: C("members"),
2273
+ id: w("members"),
2272
2274
  children: [
2273
- t.onInvite && /* @__PURE__ */ F("form", {
2275
+ t.onInvite && /* @__PURE__ */ I("form", {
2274
2276
  className: "srow cmg-invite",
2275
2277
  onSubmit: (e) => {
2276
- e.preventDefault(), t.onInvite(g), v("");
2278
+ e.preventDefault(), t.onInvite(y), b("");
2277
2279
  },
2278
- children: [/* @__PURE__ */ P(c, {
2280
+ children: [/* @__PURE__ */ F(g, {
2279
2281
  label: "invite by github username",
2280
- value: g,
2281
- onChange: (e) => v(e.target.value),
2282
+ value: y,
2283
+ onChange: (e) => b(e.target.value),
2282
2284
  placeholder: "github username"
2283
- }), /* @__PURE__ */ P("button", {
2285
+ }), /* @__PURE__ */ F("button", {
2284
2286
  type: "submit",
2285
2287
  className: "btn btn-secondary btn-sm",
2286
- disabled: !g.trim(),
2288
+ disabled: !y.trim(),
2287
2289
  children: "invite"
2288
2290
  })]
2289
2291
  }),
2290
- /* @__PURE__ */ P("ul", {
2292
+ /* @__PURE__ */ F("ul", {
2291
2293
  className: "cmg-member-list",
2292
2294
  "aria-label": "members",
2293
- children: u.members.map((e) => /* @__PURE__ */ F("li", {
2295
+ children: f.members.map((e) => /* @__PURE__ */ I("li", {
2294
2296
  className: "cmg-member",
2295
2297
  children: [
2296
- /* @__PURE__ */ P(h, {
2298
+ /* @__PURE__ */ F(l, {
2297
2299
  name: e.name ?? e.handle,
2298
2300
  size: "sm"
2299
2301
  }),
2300
- /* @__PURE__ */ F("span", {
2302
+ /* @__PURE__ */ I("span", {
2301
2303
  className: "cmg-member-id",
2302
2304
  children: [
2303
- /* @__PURE__ */ P("span", {
2305
+ /* @__PURE__ */ F("span", {
2304
2306
  className: "mono",
2305
2307
  children: e.handle
2306
2308
  }),
2307
2309
  " ",
2308
- e.name ? /* @__PURE__ */ P("span", {
2310
+ e.name ? /* @__PURE__ */ F("span", {
2309
2311
  className: "cmg-member-name",
2310
2312
  children: e.name
2311
2313
  }) : null
2312
2314
  ]
2313
2315
  }),
2314
- e.role === "owner" ? /* @__PURE__ */ P("span", {
2316
+ e.role === "owner" ? /* @__PURE__ */ F("span", {
2315
2317
  className: "cmg-none mono",
2316
2318
  children: "owner"
2317
- }) : /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P("span", {
2319
+ }) : /* @__PURE__ */ I(P, { children: [/* @__PURE__ */ F("span", {
2318
2320
  className: "select-wrap cmg-member-role",
2319
- children: /* @__PURE__ */ F("select", {
2321
+ children: /* @__PURE__ */ I("select", {
2320
2322
  className: "select",
2321
2323
  "aria-label": `role for ${e.handle}`,
2322
2324
  defaultValue: e.role,
2323
2325
  onChange: (n) => t.onRoleChange?.(e.handle, n.target.value),
2324
- children: [/* @__PURE__ */ P("option", {
2326
+ children: [/* @__PURE__ */ F("option", {
2325
2327
  value: "member",
2326
2328
  children: "member"
2327
- }), /* @__PURE__ */ P("option", {
2329
+ }), /* @__PURE__ */ F("option", {
2328
2330
  value: "contributor",
2329
2331
  children: "contributor"
2330
2332
  })]
2331
2333
  })
2332
- }), t.onRemoveMember && /* @__PURE__ */ P("button", {
2334
+ }), t.onRemoveMember && /* @__PURE__ */ F("button", {
2333
2335
  type: "button",
2334
2336
  className: "btn btn-ghost btn-sm",
2335
2337
  "aria-label": `remove ${e.handle}`,
@@ -2339,100 +2341,100 @@ function ot({ data: e = {}, actions: t = {} } = {}) {
2339
2341
  ]
2340
2342
  }, e.handle))
2341
2343
  }),
2342
- /* @__PURE__ */ P(m, {
2344
+ /* @__PURE__ */ F(d, {
2343
2345
  label: "when a member leaves",
2344
2346
  help: "what happens to the transcripts they published here.",
2345
2347
  control: "select",
2346
- value: rt(u.memberLeaves, s),
2347
- options: nt(u.memberLeaves, s),
2348
- onCommit: d("memberLeaves")
2348
+ value: it(f.memberLeaves, c),
2349
+ options: rt(f.memberLeaves, c),
2350
+ onCommit: p("memberLeaves")
2349
2351
  })
2350
2352
  ]
2351
2353
  }),
2352
- /* @__PURE__ */ P(y, {
2354
+ /* @__PURE__ */ F(h, {
2353
2355
  label: "github orgs",
2354
2356
  defaultOpen: !0,
2355
- count: u.org === void 0 ? null : +!!u.org,
2357
+ count: f.org === void 0 ? null : +!!f.org,
2356
2358
  noun: ["org", "orgs"],
2357
- id: C("github orgs"),
2358
- children: /* @__PURE__ */ F("div", {
2359
+ id: w("github orgs"),
2360
+ children: /* @__PURE__ */ I("div", {
2359
2361
  className: "srow",
2360
- children: [/* @__PURE__ */ F("span", {
2362
+ children: [/* @__PURE__ */ I("span", {
2361
2363
  className: "srow-text-col",
2362
- children: [/* @__PURE__ */ P("span", {
2364
+ children: [/* @__PURE__ */ F("span", {
2363
2365
  className: "srow-label",
2364
- children: u.org ? u.org.login : u.org === null ? "no org linked" : "github org"
2365
- }), /* @__PURE__ */ F("span", {
2366
+ children: f.org ? f.org.login : f.org === null ? "no org linked" : "github org"
2367
+ }), /* @__PURE__ */ I("span", {
2366
2368
  className: "srow-help",
2367
- children: [typeof u.org?.total == "number" ? /* @__PURE__ */ F(N, { children: [
2368
- /* @__PURE__ */ P("span", {
2369
+ children: [typeof f.org?.total == "number" ? /* @__PURE__ */ I(P, { children: [
2370
+ /* @__PURE__ */ F("span", {
2369
2371
  className: "tnum",
2370
- children: u.org.linked ?? 0
2372
+ children: f.org.linked ?? 0
2371
2373
  }),
2372
2374
  " of ",
2373
- /* @__PURE__ */ P("span", {
2375
+ /* @__PURE__ */ F("span", {
2374
2376
  className: "tnum",
2375
- children: u.org.total
2377
+ children: f.org.total
2376
2378
  }),
2377
2379
  " repos linked. "
2378
2380
  ] }) : null, "a collective links one github org today."]
2379
2381
  })]
2380
- }), t.onLinkRepos && /* @__PURE__ */ P("button", {
2382
+ }), t.onLinkRepos && /* @__PURE__ */ F("button", {
2381
2383
  type: "button",
2382
2384
  className: "btn btn-secondary btn-sm",
2383
- onClick: () => p(!0),
2385
+ onClick: () => v(!0),
2384
2386
  children: "manage"
2385
2387
  })]
2386
2388
  })
2387
2389
  }),
2388
- /* @__PURE__ */ P(y, {
2390
+ /* @__PURE__ */ F(h, {
2389
2391
  label: "pull requests",
2390
2392
  defaultOpen: !0,
2391
2393
  count: 1,
2392
- id: C("pull requests"),
2393
- children: /* @__PURE__ */ P(m, {
2394
+ id: w("pull requests"),
2395
+ children: /* @__PURE__ */ F(d, {
2394
2396
  label: "show transcripts on pull requests",
2395
2397
  help: "adds a peasant / prompts comment and check on pull requests in this collective's repos, listing which commits have transcripts. it never blocks merging.",
2396
2398
  control: "switch",
2397
2399
  value: i,
2398
- onCommit: d("showOnPullRequests")
2400
+ onCommit: p("showOnPullRequests")
2399
2401
  })
2400
2402
  }),
2401
- x && /* @__PURE__ */ F(y, {
2403
+ S && /* @__PURE__ */ I(h, {
2402
2404
  label: "danger zone",
2403
2405
  defaultOpen: !0,
2404
2406
  count: null,
2405
- id: C("danger zone"),
2406
- children: [t.onTransferOwnership && /* @__PURE__ */ F("div", {
2407
+ id: w("danger zone"),
2408
+ children: [t.onTransferOwnership && /* @__PURE__ */ I("div", {
2407
2409
  className: "srow",
2408
- children: [/* @__PURE__ */ P("span", {
2410
+ children: [/* @__PURE__ */ F("span", {
2409
2411
  className: "srow-help",
2410
2412
  children: "give the owner role to another member. you stay on as a member."
2411
- }), /* @__PURE__ */ P("button", {
2413
+ }), /* @__PURE__ */ F("button", {
2412
2414
  type: "button",
2413
2415
  className: "btn btn-secondary btn-sm",
2414
2416
  onClick: () => t.onTransferOwnership(),
2415
2417
  children: "transfer ownership"
2416
2418
  })]
2417
- }), t.onDelete && /* @__PURE__ */ F("div", {
2419
+ }), t.onDelete && /* @__PURE__ */ I("div", {
2418
2420
  className: "srow",
2419
- children: [/* @__PURE__ */ F("span", {
2421
+ children: [/* @__PURE__ */ I("span", {
2420
2422
  className: "srow-help",
2421
2423
  children: [
2422
2424
  "delete ",
2423
- u.name,
2425
+ f.name,
2424
2426
  " for ",
2425
- typeof u.memberCount == "number" ? /* @__PURE__ */ F(N, { children: [
2427
+ typeof f.memberCount == "number" ? /* @__PURE__ */ I(P, { children: [
2426
2428
  "all ",
2427
- /* @__PURE__ */ P("span", {
2429
+ /* @__PURE__ */ F("span", {
2428
2430
  className: "tnum",
2429
- children: u.memberCount
2431
+ children: f.memberCount
2430
2432
  }),
2431
2433
  " members"
2432
2434
  ] }) : "all its members",
2433
2435
  ". this cannot be undone."
2434
2436
  ]
2435
- }), /* @__PURE__ */ P("button", {
2437
+ }), /* @__PURE__ */ F("button", {
2436
2438
  type: "button",
2437
2439
  className: "btn btn-danger btn-sm",
2438
2440
  onClick: () => t.onDelete(),
@@ -2443,20 +2445,20 @@ function ot({ data: e = {}, actions: t = {} } = {}) {
2443
2445
  ]
2444
2446
  })
2445
2447
  ]
2446
- }), t.onLinkRepos && /* @__PURE__ */ P(_, {
2447
- open: f,
2448
- onClose: () => p(!1),
2448
+ }), t.onLinkRepos && /* @__PURE__ */ F(x, {
2449
+ open: _,
2450
+ onClose: () => v(!1),
2449
2451
  owners: n,
2450
2452
  initialSelected: r,
2451
- title: `link repositories from ${u.org?.login ?? "github"}`,
2453
+ title: `link repositories from ${f.org?.login ?? "github"}`,
2452
2454
  onSave: (e) => {
2453
- t.onLinkRepos(e), p(!1);
2455
+ t.onLinkRepos(e), v(!1);
2454
2456
  }
2455
2457
  })] });
2456
2458
  }
2457
2459
  //#endregion
2458
2460
  //#region src/ui/commons/Manage.jsx
2459
- var st = {
2461
+ var ct = {
2460
2462
  name: "",
2461
2463
  description: null,
2462
2464
  linkedGithubOrg: null,
@@ -2464,15 +2466,15 @@ var st = {
2464
2466
  dataAccess: "",
2465
2467
  role: "",
2466
2468
  memberSince: null
2467
- }, ct = {
2469
+ }, lt = {
2468
2470
  transcripts: "0",
2469
2471
  projects: "0 providers",
2470
2472
  tokens: "0",
2471
2473
  turns: "0 turns",
2472
2474
  contributors: "0 members",
2473
2475
  hours: "0 total"
2474
- }, lt = {
2475
- collective: st,
2476
+ }, ut = {
2477
+ collective: ct,
2476
2478
  providerShare: [],
2477
2479
  pendingReview: [],
2478
2480
  members: [],
@@ -2482,14 +2484,14 @@ var st = {
2482
2484
  initialRole: "",
2483
2485
  initialShowRedaction: !1,
2484
2486
  initialBrowseGated: !1,
2485
- stats: ct
2486
- }, ut = [
2487
+ stats: lt
2488
+ }, dt = [
2487
2489
  "owner",
2488
2490
  "member",
2489
2491
  "contributor",
2490
2492
  "guest"
2491
2493
  ];
2492
- function dt(e) {
2494
+ function ft(e) {
2493
2495
  if (!e) return "unknown";
2494
2496
  let t = new Date(e);
2495
2497
  return Number.isNaN(t.getTime()) ? "unknown" : new Intl.DateTimeFormat("en-US", {
@@ -2499,51 +2501,51 @@ function dt(e) {
2499
2501
  timeZone: "UTC"
2500
2502
  }).format(t).toLowerCase();
2501
2503
  }
2502
- function ft({ data: e = lt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2503
- let { collective: r = st, providerShare: i = [], pendingReview: a = [], members: o = [], redactions: s = [], browseRows: c = [], roleOptions: u = [], initialRole: d = "", initialShowRedaction: f = !1, initialBrowseGated: p = !1, stats: m = ct } = e || lt, { onRoleChange: h, onJoin: _, onLeave: y, onSettings: b, onContribute: w, onToggleBrowse: T } = t || {}, [E, D] = M(d || r.role || ""), [O, k] = M(!!f), [j, N] = M(!!p), I = E || r.role || "guest", L = I === "owner", R = I === "guest", B = n && u.length > 0, V = A(() => B ? u : [], [B, u]), H = (e) => {
2504
- D(e), h?.(e);
2504
+ function pt({ data: e = ut, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2505
+ let { collective: r = ct, providerShare: i = [], pendingReview: o = [], members: s = [], redactions: c = [], browseRows: l = [], roleOptions: u = [], initialRole: d = "", initialShowRedaction: m = !1, initialBrowseGated: h = !1, stats: g = lt } = e || ut, { onRoleChange: y, onJoin: b, onLeave: x, onSettings: S, onContribute: C, onToggleBrowse: T } = t || {}, [E, D] = N(d || r.role || ""), [O, k] = N(!!m), [A, M] = N(!!h), P = E || r.role || "guest", L = P === "owner", R = P === "guest", z = n && u.length > 0, V = j(() => z ? u : [], [z, u]), H = (e) => {
2506
+ D(e), y?.(e);
2505
2507
  };
2506
- return /* @__PURE__ */ P("div", {
2508
+ return /* @__PURE__ */ F("div", {
2507
2509
  className: "cmg-root",
2508
- children: /* @__PURE__ */ F("div", {
2510
+ children: /* @__PURE__ */ I("div", {
2509
2511
  className: "cmg-detail",
2510
2512
  children: [
2511
- /* @__PURE__ */ F("header", {
2513
+ /* @__PURE__ */ I("header", {
2512
2514
  className: "cmg-d-hero",
2513
- children: [/* @__PURE__ */ F("div", {
2515
+ children: [/* @__PURE__ */ I("div", {
2514
2516
  className: "crumb cmg-crumb",
2515
2517
  children: [
2516
2518
  "online ",
2517
- /* @__PURE__ */ P(z, {
2519
+ /* @__PURE__ */ F(B, {
2518
2520
  size: 14,
2519
2521
  "aria-hidden": "true"
2520
2522
  }),
2521
2523
  " collectives",
2522
2524
  " ",
2523
- /* @__PURE__ */ P(z, {
2525
+ /* @__PURE__ */ F(B, {
2524
2526
  size: 14,
2525
2527
  "aria-hidden": "true"
2526
2528
  }),
2527
- /* @__PURE__ */ P("span", {
2529
+ /* @__PURE__ */ F("span", {
2528
2530
  className: "cur",
2529
2531
  children: r.name || "collective"
2530
2532
  })
2531
2533
  ]
2532
- }), /* @__PURE__ */ F("div", {
2534
+ }), /* @__PURE__ */ I("div", {
2533
2535
  className: "cmg-d-hero-row",
2534
- children: [/* @__PURE__ */ F("div", { children: [
2535
- /* @__PURE__ */ P("h2", {
2536
+ children: [/* @__PURE__ */ I("div", { children: [
2537
+ /* @__PURE__ */ F("h2", {
2536
2538
  className: "cmg-title",
2537
2539
  children: r.name || "collective"
2538
2540
  }),
2539
- r.description ? /* @__PURE__ */ P("p", {
2541
+ r.description ? /* @__PURE__ */ F("p", {
2540
2542
  className: "cmg-deck",
2541
2543
  children: r.description
2542
2544
  }) : null,
2543
- /* @__PURE__ */ F("span", {
2545
+ /* @__PURE__ */ I("span", {
2544
2546
  className: "cmg-orgpill mono",
2545
2547
  children: [
2546
- /* @__PURE__ */ P(K, {
2548
+ /* @__PURE__ */ F(K, {
2547
2549
  size: 14,
2548
2550
  "aria-hidden": "true"
2549
2551
  }),
@@ -2551,64 +2553,64 @@ function ft({ data: e = lt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2551
2553
  r.linkedGithubOrg || "not linked"
2552
2554
  ]
2553
2555
  })
2554
- ] }), /* @__PURE__ */ F("div", {
2556
+ ] }), /* @__PURE__ */ I("div", {
2555
2557
  className: "cmg-d-actions btn-row",
2556
2558
  children: [
2557
- B ? /* @__PURE__ */ P("div", {
2559
+ z ? /* @__PURE__ */ F("div", {
2558
2560
  className: "cmg-roleswitch",
2559
2561
  role: "group",
2560
2562
  "aria-label": "view as role",
2561
- children: V.map((e) => /* @__PURE__ */ P("button", {
2563
+ children: V.map((e) => /* @__PURE__ */ F("button", {
2562
2564
  type: "button",
2563
2565
  className: "cmg-roleseg",
2564
2566
  "aria-pressed": E === e,
2565
2567
  onClick: () => H(e),
2566
2568
  children: e
2567
2569
  }, e))
2568
- }) : /* @__PURE__ */ P("div", {
2570
+ }) : /* @__PURE__ */ F("div", {
2569
2571
  className: "cmg-roleswitch",
2570
2572
  role: "group",
2571
2573
  "aria-label": "your role",
2572
- children: ut.map((e) => /* @__PURE__ */ P("span", {
2574
+ children: dt.map((e) => /* @__PURE__ */ F("span", {
2573
2575
  className: "cmg-roleseg",
2574
- "aria-current": I === e ? "true" : void 0,
2575
- "data-active": I === e || void 0,
2576
+ "aria-current": P === e ? "true" : void 0,
2577
+ "data-active": P === e || void 0,
2576
2578
  style: { cursor: "default" },
2577
2579
  children: e
2578
2580
  }, e))
2579
2581
  }),
2580
- R ? /* @__PURE__ */ F("button", {
2582
+ R ? /* @__PURE__ */ I("button", {
2581
2583
  type: "button",
2582
2584
  className: "btn btn-sm btn-primary",
2583
- onClick: () => _?.(),
2584
- children: [/* @__PURE__ */ P(pe, {
2585
+ onClick: () => b?.(),
2586
+ children: [/* @__PURE__ */ F(me, {
2585
2587
  size: 14,
2586
2588
  "aria-hidden": "true"
2587
2589
  }), " join as contributor"]
2588
2590
  }) : null,
2589
- (I === "member" || I === "contributor") && w ? /* @__PURE__ */ F("button", {
2591
+ (P === "member" || P === "contributor") && C ? /* @__PURE__ */ I("button", {
2590
2592
  type: "button",
2591
2593
  className: "btn btn-sm btn-primary",
2592
- onClick: () => w?.(),
2593
- children: [/* @__PURE__ */ P(Q, {
2594
+ onClick: () => C?.(),
2595
+ children: [/* @__PURE__ */ F(le, {
2594
2596
  size: 14,
2595
2597
  "aria-hidden": "true"
2596
2598
  }), " contribute"]
2597
2599
  }) : null,
2598
- (I === "member" || I === "contributor") && y ? /* @__PURE__ */ F("button", {
2600
+ (P === "member" || P === "contributor") && x ? /* @__PURE__ */ I("button", {
2599
2601
  type: "button",
2600
2602
  className: "btn btn-sm btn-danger",
2601
- onClick: () => y?.(),
2602
- children: [/* @__PURE__ */ P(ae, {
2603
+ onClick: () => x?.(),
2604
+ children: [/* @__PURE__ */ F(X, {
2603
2605
  size: 14,
2604
2606
  "aria-hidden": "true"
2605
2607
  }), " leave"]
2606
2608
  }) : null,
2607
- L && b ? /* @__PURE__ */ F("button", {
2609
+ L && S ? /* @__PURE__ */ I("button", {
2608
2610
  type: "button",
2609
2611
  className: "btn btn-sm btn-secondary",
2610
- onClick: () => b?.(),
2611
- children: [/* @__PURE__ */ P(Z, {
2612
+ onClick: () => S?.(),
2613
+ children: [/* @__PURE__ */ F(Q, {
2612
2614
  size: 14,
2613
2615
  "aria-hidden": "true"
2614
2616
  }), " settings"]
@@ -2617,75 +2619,75 @@ function ft({ data: e = lt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2617
2619
  })]
2618
2620
  })]
2619
2621
  }),
2620
- /* @__PURE__ */ F("div", {
2622
+ /* @__PURE__ */ I("div", {
2621
2623
  className: "cmg-tiles",
2622
2624
  children: [
2623
- /* @__PURE__ */ P(S, {
2625
+ /* @__PURE__ */ F(w, {
2624
2626
  label: "contributions",
2625
2627
  value: r.acceptanceMode || "open",
2626
2628
  tone: "teal"
2627
2629
  }),
2628
- /* @__PURE__ */ P(S, {
2630
+ /* @__PURE__ */ F(w, {
2629
2631
  label: "access",
2630
2632
  value: r.dataAccess || "members only",
2631
2633
  tone: "amber"
2632
2634
  }),
2633
- /* @__PURE__ */ P(S, {
2635
+ /* @__PURE__ */ F(w, {
2634
2636
  label: "your role",
2635
- value: I
2637
+ value: P
2636
2638
  })
2637
2639
  ]
2638
2640
  }),
2639
- /* @__PURE__ */ P(x, { tiles: [
2641
+ /* @__PURE__ */ F(v, { tiles: [
2640
2642
  {
2641
2643
  key: "transcripts",
2642
2644
  label: "transcripts",
2643
- value: m.transcripts,
2644
- sub: `across ${m.projects}`
2645
+ value: g.transcripts,
2646
+ sub: `across ${g.projects}`
2645
2647
  },
2646
2648
  {
2647
2649
  key: "tokens",
2648
2650
  label: "tokens",
2649
- value: m.tokens,
2650
- sub: m.turns
2651
+ value: g.tokens,
2652
+ sub: g.turns
2651
2653
  },
2652
2654
  {
2653
2655
  key: "contributors",
2654
2656
  label: "contributors",
2655
- value: m.contributors,
2656
- sub: m.hours
2657
+ value: g.contributors,
2658
+ sub: g.hours
2657
2659
  }
2658
2660
  ] }),
2659
- /* @__PURE__ */ F("div", {
2661
+ /* @__PURE__ */ I("div", {
2660
2662
  className: "cmg-d-grid",
2661
- children: [/* @__PURE__ */ F("main", {
2663
+ children: [/* @__PURE__ */ I("main", {
2662
2664
  className: "cmg-d-main",
2663
2665
  children: [
2664
- i.length > 0 ? /* @__PURE__ */ F("section", {
2666
+ i.length > 0 ? /* @__PURE__ */ I("section", {
2665
2667
  className: "card cmg-share",
2666
2668
  "aria-labelledby": "cmg-share-h",
2667
- children: [/* @__PURE__ */ P("h3", {
2669
+ children: [/* @__PURE__ */ F("h3", {
2668
2670
  id: "cmg-share-h",
2669
2671
  className: "cmg-sub",
2670
2672
  children: "provider share"
2671
- }), /* @__PURE__ */ P(l, {
2673
+ }), /* @__PURE__ */ F(_, {
2672
2674
  label: "provider share",
2673
2675
  total: 100,
2674
2676
  data: i.map((e) => ({
2675
- label: Ie(e.id),
2677
+ label: Le(e.id),
2676
2678
  value: e.pct
2677
2679
  }))
2678
2680
  })]
2679
2681
  }) : null,
2680
- a.length > 0 ? /* @__PURE__ */ P("div", {
2682
+ o.length > 0 ? /* @__PURE__ */ F("div", {
2681
2683
  style: {
2682
2684
  overflow: "auto",
2683
2685
  maxWidth: "100%"
2684
2686
  },
2685
- children: /* @__PURE__ */ P(v, {
2687
+ children: /* @__PURE__ */ F(a, {
2686
2688
  title: "pending review",
2687
2689
  emptyLabel: "no shares awaiting review.",
2688
- items: a.map((e) => ({
2690
+ items: o.map((e) => ({
2689
2691
  id: e.id,
2690
2692
  kind: "share",
2691
2693
  who: e.title || "untitled transcript",
@@ -2693,188 +2695,188 @@ function ft({ data: e = lt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2693
2695
  }))
2694
2696
  })
2695
2697
  }) : null,
2696
- s.length > 0 ? /* @__PURE__ */ F("section", {
2698
+ c.length > 0 ? /* @__PURE__ */ I("section", {
2697
2699
  className: "card cmg-redact-sec",
2698
2700
  "aria-labelledby": "cmg-redact-h",
2699
- children: [/* @__PURE__ */ F("div", {
2701
+ children: [/* @__PURE__ */ I("div", {
2700
2702
  className: "cmg-queue-head",
2701
- children: [/* @__PURE__ */ F("h3", {
2703
+ children: [/* @__PURE__ */ I("h3", {
2702
2704
  id: "cmg-redact-h",
2703
2705
  className: "cmg-sub",
2704
- children: [/* @__PURE__ */ P(Q, {
2706
+ children: [/* @__PURE__ */ F(le, {
2705
2707
  size: 15,
2706
2708
  "aria-hidden": "true"
2707
2709
  }), " redaction review"]
2708
- }), /* @__PURE__ */ F("button", {
2710
+ }), /* @__PURE__ */ I("button", {
2709
2711
  type: "button",
2710
2712
  className: "btn btn-sm btn-ghost",
2711
2713
  "aria-expanded": O,
2712
2714
  onClick: () => k((e) => !e),
2713
- children: [P(O ? G : W, {
2715
+ children: [F(O ? ee : G, {
2714
2716
  size: 14,
2715
2717
  "aria-hidden": "true"
2716
2718
  }), O ? "hide" : "show"]
2717
2719
  })]
2718
- }), O ? /* @__PURE__ */ P("div", {
2720
+ }), O ? /* @__PURE__ */ F("div", {
2719
2721
  className: "cmg-redact-list",
2720
- children: s.map((e) => /* @__PURE__ */ F("article", {
2722
+ children: c.map((e) => /* @__PURE__ */ I("article", {
2721
2723
  className: "cmg-redact",
2722
2724
  children: [
2723
- /* @__PURE__ */ F("div", {
2725
+ /* @__PURE__ */ I("div", {
2724
2726
  className: "cmg-redact-head",
2725
- children: [/* @__PURE__ */ P("span", {
2727
+ children: [/* @__PURE__ */ F("span", {
2726
2728
  className: "cmg-redact-badges",
2727
- children: /* @__PURE__ */ P(g, { children: String(e.catLabel || e.cat || "item").toLowerCase() })
2728
- }), /* @__PURE__ */ P("span", {
2729
+ children: /* @__PURE__ */ F(p, { children: String(e.catLabel || e.cat || "item").toLowerCase() })
2730
+ }), /* @__PURE__ */ F("span", {
2729
2731
  className: "cmg-redact-file mono",
2730
2732
  children: e.file || "unknown"
2731
2733
  })]
2732
2734
  }),
2733
- /* @__PURE__ */ P("p", {
2735
+ /* @__PURE__ */ F("p", {
2734
2736
  className: "cmg-redact-summary mono",
2735
2737
  children: e.summary || "redaction review item"
2736
2738
  }),
2737
- /* @__PURE__ */ F("div", {
2739
+ /* @__PURE__ */ I("div", {
2738
2740
  className: "callout cmg-redact-note",
2739
- children: [/* @__PURE__ */ P(Q, {
2741
+ children: [/* @__PURE__ */ F(le, {
2740
2742
  size: 16,
2741
2743
  "aria-hidden": "true"
2742
- }), /* @__PURE__ */ P("div", { children: e.tip || "review this redaction item before exposing it." })]
2744
+ }), /* @__PURE__ */ F("div", { children: e.tip || "review this redaction item before exposing it." })]
2743
2745
  })
2744
2746
  ]
2745
2747
  }, e.id))
2746
2748
  }) : null]
2747
2749
  }) : null,
2748
- /* @__PURE__ */ F("section", {
2750
+ /* @__PURE__ */ I("section", {
2749
2751
  className: "card cmg-browser",
2750
2752
  "aria-labelledby": "cmg-browser-h",
2751
- children: [/* @__PURE__ */ F("div", {
2753
+ children: [/* @__PURE__ */ I("div", {
2752
2754
  className: "cmg-queue-head",
2753
- children: [/* @__PURE__ */ P("h3", {
2755
+ children: [/* @__PURE__ */ F("h3", {
2754
2756
  id: "cmg-browser-h",
2755
2757
  className: "cmg-sub",
2756
2758
  children: "data"
2757
- }), /* @__PURE__ */ F("button", {
2759
+ }), /* @__PURE__ */ I("button", {
2758
2760
  type: "button",
2759
2761
  className: "btn btn-sm btn-ghost",
2760
- "aria-pressed": j,
2762
+ "aria-pressed": A,
2761
2763
  onClick: () => {
2762
- N((e) => {
2764
+ M((e) => {
2763
2765
  let t = !e;
2764
2766
  return T?.(t), t;
2765
2767
  });
2766
2768
  },
2767
- children: [P(j ? ie : W, {
2769
+ children: [F(A ? Y : G, {
2768
2770
  size: 14,
2769
2771
  "aria-hidden": "true"
2770
- }), j ? "gated view" : "open view"]
2772
+ }), A ? "gated view" : "open view"]
2771
2773
  })]
2772
- }), j ? /* @__PURE__ */ F("div", {
2774
+ }), A ? /* @__PURE__ */ I("div", {
2773
2775
  className: "empty cmg-locked",
2774
2776
  children: [
2775
- /* @__PURE__ */ P("span", {
2777
+ /* @__PURE__ */ F("span", {
2776
2778
  className: "ring",
2777
- children: /* @__PURE__ */ P(ie, {
2779
+ children: /* @__PURE__ */ F(Y, {
2778
2780
  size: 20,
2779
2781
  "aria-hidden": "true"
2780
2782
  })
2781
2783
  }),
2782
- /* @__PURE__ */ P("h3", { children: "data access restricted" }),
2783
- /* @__PURE__ */ P("p", { children: "this collective is members-only. join as a full member to browse the dataset." }),
2784
- R ? /* @__PURE__ */ F("button", {
2784
+ /* @__PURE__ */ F("h3", { children: "data access restricted" }),
2785
+ /* @__PURE__ */ F("p", { children: "this collective is members-only. join as a full member to browse the dataset." }),
2786
+ R ? /* @__PURE__ */ I("button", {
2785
2787
  type: "button",
2786
2788
  className: "btn btn-sm btn-primary",
2787
- onClick: () => _?.(),
2788
- children: [/* @__PURE__ */ P(pe, {
2789
+ onClick: () => b?.(),
2790
+ children: [/* @__PURE__ */ F(me, {
2789
2791
  size: 14,
2790
2792
  "aria-hidden": "true"
2791
2793
  }), " join as contributor"]
2792
2794
  }) : null
2793
2795
  ]
2794
- }) : c.length > 0 ? /* @__PURE__ */ F("table", {
2796
+ }) : l.length > 0 ? /* @__PURE__ */ I("table", {
2795
2797
  className: "dtable cmg-dtable",
2796
- children: [/* @__PURE__ */ P("thead", { children: /* @__PURE__ */ F("tr", { children: [
2797
- /* @__PURE__ */ P("th", {
2798
+ children: [/* @__PURE__ */ F("thead", { children: /* @__PURE__ */ I("tr", { children: [
2799
+ /* @__PURE__ */ F("th", {
2798
2800
  scope: "col",
2799
2801
  children: "title"
2800
2802
  }),
2801
- /* @__PURE__ */ P("th", {
2803
+ /* @__PURE__ */ F("th", {
2802
2804
  scope: "col",
2803
2805
  children: "contributor"
2804
2806
  }),
2805
- /* @__PURE__ */ P("th", {
2807
+ /* @__PURE__ */ F("th", {
2806
2808
  scope: "col",
2807
2809
  children: "provider"
2808
2810
  }),
2809
- /* @__PURE__ */ P("th", {
2811
+ /* @__PURE__ */ F("th", {
2810
2812
  scope: "col",
2811
2813
  className: "cmg-num",
2812
2814
  children: "turns"
2813
2815
  }),
2814
- /* @__PURE__ */ P("th", {
2816
+ /* @__PURE__ */ F("th", {
2815
2817
  scope: "col",
2816
2818
  className: "cmg-num",
2817
2819
  children: "tokens"
2818
2820
  }),
2819
- /* @__PURE__ */ P("th", {
2821
+ /* @__PURE__ */ F("th", {
2820
2822
  scope: "col",
2821
2823
  children: "date"
2822
2824
  })
2823
- ] }) }), /* @__PURE__ */ P("tbody", { children: c.map((e) => /* @__PURE__ */ F("tr", { children: [
2824
- /* @__PURE__ */ P("td", { children: e.title || "untitled transcript" }),
2825
- /* @__PURE__ */ P("td", {
2825
+ ] }) }), /* @__PURE__ */ F("tbody", { children: l.map((e) => /* @__PURE__ */ I("tr", { children: [
2826
+ /* @__PURE__ */ F("td", { children: e.title || "untitled transcript" }),
2827
+ /* @__PURE__ */ F("td", {
2826
2828
  className: "mono",
2827
2829
  children: e.contributor || "anon"
2828
2830
  }),
2829
- /* @__PURE__ */ F("td", { children: [
2830
- /* @__PURE__ */ P(K, {
2831
+ /* @__PURE__ */ I("td", { children: [
2832
+ /* @__PURE__ */ F(K, {
2831
2833
  size: 14,
2832
2834
  "aria-hidden": "true"
2833
2835
  }),
2834
2836
  " ",
2835
- e.providerId ? Ie(e.providerId) : Fe(e.provider)
2837
+ e.providerId ? Le(e.providerId) : Ie(e.provider)
2836
2838
  ] }),
2837
- /* @__PURE__ */ P("td", {
2839
+ /* @__PURE__ */ F("td", {
2838
2840
  className: "cmg-num tnum",
2839
2841
  children: e.turns || "0"
2840
2842
  }),
2841
- /* @__PURE__ */ P("td", {
2843
+ /* @__PURE__ */ F("td", {
2842
2844
  className: "cmg-num tnum",
2843
2845
  children: e.tokens || "0"
2844
2846
  }),
2845
- /* @__PURE__ */ P("td", {
2847
+ /* @__PURE__ */ F("td", {
2846
2848
  className: "mono tnum",
2847
- children: e.date || dt(null)
2849
+ children: e.date || ft(null)
2848
2850
  })
2849
2851
  ] }, `${e.title}-${e.contributor}`)) })]
2850
- }) : /* @__PURE__ */ F("div", {
2852
+ }) : /* @__PURE__ */ I("div", {
2851
2853
  className: "empty cmg-locked",
2852
2854
  children: [
2853
- /* @__PURE__ */ P("span", {
2855
+ /* @__PURE__ */ F("span", {
2854
2856
  className: "ring",
2855
- children: /* @__PURE__ */ P($, {
2857
+ children: /* @__PURE__ */ F($, {
2856
2858
  size: 20,
2857
2859
  "aria-hidden": "true"
2858
2860
  })
2859
2861
  }),
2860
- /* @__PURE__ */ P("h3", { children: "no data yet" }),
2861
- /* @__PURE__ */ P("p", { children: "this collective has no visible transcripts to browse." })
2862
+ /* @__PURE__ */ F("h3", { children: "no data yet" }),
2863
+ /* @__PURE__ */ F("p", { children: "this collective has no visible transcripts to browse." })
2862
2864
  ]
2863
2865
  })]
2864
2866
  })
2865
2867
  ]
2866
- }), o.length > 0 ? /* @__PURE__ */ P("aside", {
2868
+ }), s.length > 0 ? /* @__PURE__ */ F("aside", {
2867
2869
  className: "sidebar cmg-d-rail",
2868
2870
  "aria-label": "collective sidebar",
2869
- children: /* @__PURE__ */ P("div", {
2871
+ children: /* @__PURE__ */ F("div", {
2870
2872
  style: {
2871
2873
  overflow: "auto",
2872
2874
  maxWidth: "100%"
2873
2875
  },
2874
- children: /* @__PURE__ */ P(C, {
2876
+ children: /* @__PURE__ */ F(f, {
2875
2877
  title: "members",
2876
2878
  roles: ["member", "contributor"],
2877
- members: o.map((e) => ({
2879
+ members: s.map((e) => ({
2878
2880
  handle: e.handle || e.githubUsername || "@unknown",
2879
2881
  name: e.name || e.displayName || e.githubUsername || "unknown",
2880
2882
  role: e.role || "member",
@@ -2889,4 +2891,4 @@ function ft({ data: e = lt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2889
2891
  });
2890
2892
  }
2891
2893
  //#endregion
2892
- export { ge as ACCEPTANCE_MODES, ye as COLLECTIVE_ROLES, et as CollectiveDetailView, ot as CollectiveSettingsView, Ze as CollectivesView, We as ContributeView, _e as DATA_ACCESS_POLICIES, Pe as Explore, ft as Manage, Ve as PublishView, ve as TRANSCRIPT_DELETION_POLICIES, he as TRANSCRIPT_VISIBILITIES };
2894
+ export { _e as ACCEPTANCE_MODES, be as COLLECTIVE_ROLES, tt as CollectiveDetailView, st as CollectiveSettingsView, Qe as CollectivesView, Ge as ContributeView, ve as DATA_ACCESS_POLICIES, Fe as Explore, pt as Manage, He as PublishView, ye as TRANSCRIPT_DELETION_POLICIES, ge as TRANSCRIPT_VISIBILITIES };