@peasant-labs/fairtrade 0.0.34 → 0.0.36

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