@peasant-labs/fairtrade 0.0.59 → 0.0.61

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,10 +1,10 @@
1
1
  import { Dt as e, Tt as t, ft as n, mt as r, pt as i } from "./GraphLegend-e9x79JtU.js";
2
- import { $ as a, $t as o, Gn as s, In as c, O as l, Qn as u, St as d, Xn as f, Yn as p, Zt as m, _t as h, at as g, bt as _, en as v, ht as y, k as b, nt as x, ot as S, pr as ee, tn as C, tt as w, vt as T, yt as E } from "./ui-Bkd3osTj.js";
2
+ import { $n as a, Bn as o, Ct as s, Et as c, O as l, St as u, Yn as d, _r as f, an as p, at as ee, er as m, in as h, k as g, lt as _, nr as v, ot as y, rn as b, rt as x, tn as S, ut as C, wt as w, xt as T, yt as E } from "./ui-DoP5-XrV.js";
3
3
  import { p as D } from "./time-CpVBzcqQ.js";
4
4
  import { i as O, o as k, r as A } from "./format-B3uT2wzU.js";
5
5
  import { useEffect as j, useId as te, useMemo as M, useRef as N, useState as P } from "react";
6
6
  import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
7
- import { ArrowRight as ne, Check as R, ChevronDown as re, ChevronRight as z, ClipboardCheck as ie, Compass as ae, Copy as oe, ExternalLink as se, Eye as B, EyeOff as V, FileText as ce, FolderGit2 as H, GitBranch as le, GitPullRequest as U, Hash as ue, KeyRound as W, LayoutGrid as de, List as fe, Lock as G, LogOut as K, MoreHorizontal as q, Plus as J, Search as pe, SearchX as me, Settings as Y, ShieldAlert as he, SlidersHorizontal as ge, TriangleAlert as X, Upload as Z, User as _e, UserPlus as ve, Users as Q, X as ye } from "lucide-react";
7
+ import { ArrowRight as ne, Check as R, ChevronDown as re, ChevronRight as z, ClipboardCheck as ie, Compass as ae, Copy as oe, ExternalLink as se, Eye as B, EyeOff as V, FileText as ce, FolderGit2 as H, GitBranch as U, GitPullRequest as W, Hash as le, KeyRound as G, LayoutGrid as ue, List as de, Lock as K, LogOut as q, MoreHorizontal as J, Plus as Y, Search as fe, SearchX as pe, Settings as X, ShieldAlert as me, SlidersHorizontal as he, TriangleAlert as ge, Upload as Z, User as _e, UserPlus as ve, Users as Q, X as ye } from "lucide-react";
8
8
  //#region src/ui/commons/types.js
9
9
  var be = Object.freeze([
10
10
  "public",
@@ -205,7 +205,7 @@ function Pe(e) {
205
205
  return Number.isInteger(e) && e >= 1 ? e : 1;
206
206
  }
207
207
  function Fe({ transcript: e, href: t, onOpen: n, cardHeading: i = "h3" }) {
208
- let o = /* @__PURE__ */ L(F, { children: [
208
+ let a = /* @__PURE__ */ L(F, { children: [
209
209
  /* @__PURE__ */ L("div", {
210
210
  className: "card-head",
211
211
  children: [/* @__PURE__ */ L("span", {
@@ -217,7 +217,7 @@ function Fe({ transcript: e, href: t, onOpen: n, cardHeading: i = "h3" }) {
217
217
  className: "mono",
218
218
  children: e.modelName || e.modelProvider
219
219
  })]
220
- }), /* @__PURE__ */ I(a, { visibility: e.visibility })]
220
+ }), /* @__PURE__ */ I(x, { visibility: e.visibility })]
221
221
  }),
222
222
  /* @__PURE__ */ I(i, {
223
223
  className: "cex-title",
@@ -253,12 +253,12 @@ function Fe({ transcript: e, href: t, onOpen: n, cardHeading: i = "h3" }) {
253
253
  href: t,
254
254
  className: "card cex-tcard",
255
255
  onClick: (t) => Me(t, n, e),
256
- children: o
256
+ children: a
257
257
  }) : /* @__PURE__ */ I("button", {
258
258
  type: "button",
259
259
  className: "card cex-tcard",
260
260
  onClick: () => n?.(e),
261
- children: o
261
+ children: a
262
262
  });
263
263
  }
264
264
  function Ie({ transcript: e, href: t, onOpen: n }) {
@@ -286,7 +286,7 @@ function Ie({ transcript: e, href: t, onOpen: n }) {
286
286
  children: [/* @__PURE__ */ I("span", {
287
287
  className: "cex-trow-date mono tnum",
288
288
  children: De(e.sessionStart || e.sessionEnd || "")
289
- }), /* @__PURE__ */ I(a, { visibility: e.visibility })]
289
+ }), /* @__PURE__ */ I(x, { visibility: e.visibility })]
290
290
  })
291
291
  ] });
292
292
  return t ? /* @__PURE__ */ I("a", {
@@ -337,34 +337,34 @@ function Le({ collective: e, href: t, onOpen: n }) {
337
337
  children: r
338
338
  });
339
339
  }
340
- function Re({ data: e, className: n = "", title: i = "explore transcripts", resultsFooter: o, defaultLayout: s = "grid", onFiltersChange: c, onOpenTranscript: u, onOpenProfile: f, onOpenCollective: p, transcriptHref: m, profileHref: h, collectiveHref: g, headingLevel: v }) {
341
- let y = b(v, "Explore"), x = l(y, 0), S = l(y, 1), ee = l(y, 2), C = Ne(e), w = C.transcripts.transcripts, [T, E] = P(""), [D, O] = P(""), [k, A] = P("recent"), [F, ne] = P("all"), [R, re] = P(() => /* @__PURE__ */ new Set()), [z, ie] = P(s), [oe, se] = P(!1), B = te(), [V, H] = P(() => Pe(C.transcripts.page)), [le, U] = P(null), [ue, W] = P("browse"), G = N(!0), K = N(null);
340
+ function Re({ data: e, className: n = "", title: i = "explore transcripts", resultsFooter: a, defaultLayout: o = "grid", onFiltersChange: s, onOpenTranscript: u, onOpenProfile: d, onOpenCollective: f, transcriptHref: p, profileHref: ee, collectiveHref: m, headingLevel: h }) {
341
+ let _ = g(h, "Explore"), v = l(_, 0), y = l(_, 1), b = l(_, 2), S = Ne(e), C = S.transcripts.transcripts, [T, E] = P(""), [D, O] = P(""), [k, A] = P("recent"), [F, ne] = P("all"), [R, re] = P(() => /* @__PURE__ */ new Set()), [z, ie] = P(o), [oe, se] = P(!1), B = te(), [V, H] = P(() => Pe(S.transcripts.page)), [U, W] = P(null), [le, G] = P("browse"), K = N(!0), q = N(null);
342
342
  j(() => {
343
- if (G.current) {
344
- G.current = !1, O(T);
343
+ if (K.current) {
344
+ K.current = !1, O(T);
345
345
  return;
346
346
  }
347
347
  let e = setTimeout(() => O(T), 250);
348
348
  return () => clearTimeout(e);
349
- }, [G, T]), j(() => {
349
+ }, [K, T]), j(() => {
350
350
  let e = JSON.stringify([
351
351
  D,
352
352
  k,
353
353
  F,
354
354
  [...R].sort()
355
355
  ]);
356
- if (K.current === null || K.current === e) {
357
- K.current = e;
356
+ if (q.current === null || q.current === e) {
357
+ q.current = e;
358
358
  return;
359
359
  }
360
- K.current = e, H(1);
360
+ q.current = e, H(1);
361
361
  }, [
362
362
  D,
363
363
  k,
364
364
  F,
365
365
  R
366
366
  ]), j(() => {
367
- c?.({
367
+ s?.({
368
368
  query: D,
369
369
  provider: F,
370
370
  topics: [...R],
@@ -373,66 +373,66 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
373
373
  });
374
374
  }, [
375
375
  k,
376
- c,
376
+ s,
377
377
  V,
378
378
  F,
379
379
  D,
380
380
  R
381
381
  ]);
382
- let q = w.find((e) => e.id === le) ?? w[0] ?? null, J = q?.owner ?? null, Y = J ? w.filter((e) => e.owner.githubUsername === J.githubUsername) : [], he = M(() => {
382
+ let J = C.find((e) => e.id === U) ?? C[0] ?? null, Y = J?.owner ?? null, X = Y ? C.filter((e) => e.owner.githubUsername === Y.githubUsername) : [], me = M(() => {
383
383
  let e = /* @__PURE__ */ new Map();
384
- for (let t of w) e.set(t.modelProvider, (e.get(t.modelProvider) || 0) + 1);
384
+ for (let t of C) e.set(t.modelProvider, (e.get(t.modelProvider) || 0) + 1);
385
385
  return [{
386
386
  slug: "all",
387
- count: w.length
387
+ count: C.length
388
388
  }, ...[...e.entries()].map(([e, t]) => ({
389
389
  slug: e,
390
390
  count: t
391
391
  }))];
392
- }, [w]);
392
+ }, [C]);
393
393
  j(() => {
394
- le && !w.some((e) => e.id === le) && (U(null), W("browse"));
395
- }, [le, w]);
396
- let X = M(() => {
394
+ U && !C.some((e) => e.id === U) && (W(null), G("browse"));
395
+ }, [U, C]);
396
+ let ge = M(() => {
397
397
  let e = ke(D);
398
- return e ? C.collectives.filter((t) => [
398
+ return e ? S.collectives.filter((t) => [
399
399
  t.name,
400
400
  t.description,
401
401
  t.linkedGithubOrg
402
402
  ].filter(Boolean).join(" ").toLowerCase().includes(e)) : null;
403
- }, [C.collectives, D]), Z = w, ve = R.size, Q = C.transcripts.total ?? w.length, ye = V, be = C.transcripts.limit || w.length || 1, xe = (e) => {
403
+ }, [S.collectives, D]), Z = C, ve = R.size, Q = S.transcripts.total ?? C.length, ye = V, be = S.transcripts.limit || C.length || 1, xe = (e) => {
404
404
  if (u) {
405
405
  u(e);
406
406
  return;
407
407
  }
408
- U(e.id), W("detail");
408
+ W(e.id), G("detail");
409
409
  }, Se = () => {
410
- if (f && J) {
411
- f(J);
410
+ if (d && Y) {
411
+ d(Y);
412
412
  return;
413
413
  }
414
- q ? (U(q.id), W("profile")) : w[0] && (U(w[0].id), W("profile"));
414
+ J ? (W(J.id), G("profile")) : C[0] && (W(C[0].id), G("profile"));
415
415
  }, Ce = () => {
416
416
  E(""), O(""), A("recent"), ne("all"), re(/* @__PURE__ */ new Set()), H(1);
417
- }, we = M(() => J ? [...je(Y, (e) => e.projectName || "untitled project").entries()].map(([e, t]) => ({
417
+ }, we = M(() => Y ? [...je(X, (e) => e.projectName || "untitled project").entries()].map(([e, t]) => ({
418
418
  project: e,
419
419
  items: t
420
- })) : [], [Y, J]), $ = M(() => {
421
- let e = Y.reduce((e, t) => e + (t.tokenCount || 0), 0);
420
+ })) : [], [X, Y]), $ = M(() => {
421
+ let e = X.reduce((e, t) => e + (t.tokenCount || 0), 0);
422
422
  return {
423
- transcripts: Y.length,
423
+ transcripts: X.length,
424
424
  projects: we.length,
425
425
  tokens: e
426
426
  };
427
- }, [Y, we.length]);
428
- return ue === "detail" && q ? /* @__PURE__ */ L("div", {
427
+ }, [X, we.length]);
428
+ return le === "detail" && J ? /* @__PURE__ */ L("div", {
429
429
  className: `cex-root cex-detail ${n}`.trim(),
430
430
  children: [/* @__PURE__ */ L("div", {
431
431
  className: "cex-detail-back",
432
432
  children: [/* @__PURE__ */ L("button", {
433
433
  type: "button",
434
434
  className: "btn btn-secondary btn-sm",
435
- onClick: () => W("browse"),
435
+ onClick: () => G("browse"),
436
436
  children: [/* @__PURE__ */ I(ce, {
437
437
  size: 14,
438
438
  "aria-hidden": "true"
@@ -469,24 +469,24 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
469
469
  " ",
470
470
  /* @__PURE__ */ I("span", {
471
471
  className: "cur mono",
472
- children: q.id
472
+ children: J.id
473
473
  })
474
474
  ]
475
475
  })
476
476
  }),
477
477
  /* @__PURE__ */ L("div", {
478
478
  className: "cex-hero-title",
479
- children: [/* @__PURE__ */ I(x, {
479
+ children: [/* @__PURE__ */ I(v, {
480
480
  className: "win-title cex-vtitle",
481
- children: Ae(q.title || "untitled transcript")
482
- }), /* @__PURE__ */ I(a, { visibility: q.visibility })]
481
+ children: Ae(J.title || "untitled transcript")
482
+ }), /* @__PURE__ */ I(x, { visibility: J.visibility })]
483
483
  }),
484
484
  /* @__PURE__ */ L("p", {
485
485
  className: "cex-vdesc",
486
486
  children: [
487
- q.projectName || "shared transcript",
487
+ J.projectName || "shared transcript",
488
488
  ", ",
489
- q.owner.displayName || q.owner.githubUsername
489
+ J.owner.displayName || J.owner.githubUsername
490
490
  ]
491
491
  }),
492
492
  /* @__PURE__ */ L("div", {
@@ -495,9 +495,9 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
495
495
  /* @__PURE__ */ L("span", {
496
496
  className: "metaitem",
497
497
  children: [/* @__PURE__ */ I(r, {
498
- harness: q.modelProvider,
498
+ harness: J.modelProvider,
499
499
  accent: !0
500
- }), /* @__PURE__ */ I("span", { children: q.modelName || q.modelProvider })]
500
+ }), /* @__PURE__ */ I("span", { children: J.modelName || J.modelProvider })]
501
501
  }),
502
502
  /* @__PURE__ */ L("span", {
503
503
  className: "metaitem mono tnum",
@@ -507,7 +507,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
507
507
  "aria-hidden": "true"
508
508
  }),
509
509
  " ",
510
- q.turnCount ?? 0,
510
+ J.turnCount ?? 0,
511
511
  " turns"
512
512
  ]
513
513
  }),
@@ -519,13 +519,13 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
519
519
  children: "#"
520
520
  }),
521
521
  " ",
522
- Te(q.tokenCount || 0),
522
+ Te(J.tokenCount || 0),
523
523
  " tokens"
524
524
  ]
525
525
  }),
526
526
  /* @__PURE__ */ L("span", {
527
527
  className: "metaitem mono tnum",
528
- children: [q.toolCallCount ?? 0, " tools"]
528
+ children: [J.toolCallCount ?? 0, " tools"]
529
529
  })
530
530
  ]
531
531
  })
@@ -543,7 +543,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
543
543
  children: "about"
544
544
  }), /* @__PURE__ */ I("span", {
545
545
  className: "meta mono tnum",
546
- children: De(q.sessionStart || q.sessionEnd || "")
546
+ children: De(J.sessionStart || J.sessionEnd || "")
547
547
  })]
548
548
  }), /* @__PURE__ */ L("div", {
549
549
  className: "turn",
@@ -555,9 +555,9 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
555
555
  })
556
556
  }), /* @__PURE__ */ L("div", {
557
557
  className: "body",
558
- children: [/* @__PURE__ */ I("p", { children: "This view surfaces the loaded transcript metadata, then lets the user move to the owner profile without leaving the shared surface." }), q.tags.length > 0 && /* @__PURE__ */ I("div", {
558
+ children: [/* @__PURE__ */ I("p", { children: "This view surfaces the loaded transcript metadata, then lets the user move to the owner profile without leaving the shared surface." }), J.tags.length > 0 && /* @__PURE__ */ I("div", {
559
559
  className: "cex-tags",
560
- children: q.tags.map((e) => /* @__PURE__ */ L("span", {
560
+ children: J.tags.map((e) => /* @__PURE__ */ L("span", {
561
561
  className: "chip",
562
562
  children: ["#", e.name]
563
563
  }, e.id))
@@ -568,7 +568,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
568
568
  className: "cex-psec",
569
569
  "aria-label": "owner snapshot",
570
570
  children: [
571
- /* @__PURE__ */ I(S, {
571
+ /* @__PURE__ */ I(y, {
572
572
  className: "cex-psec-title",
573
573
  children: "owner snapshot"
574
574
  }),
@@ -577,19 +577,19 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
577
577
  children: [/* @__PURE__ */ I("div", {
578
578
  className: "cex-phero-av",
579
579
  "aria-hidden": "true",
580
- children: Oe(q.owner.displayName || q.owner.githubUsername)
580
+ children: Oe(J.owner.displayName || J.owner.githubUsername)
581
581
  }), /* @__PURE__ */ L("div", {
582
582
  className: "cex-phero-id",
583
- children: [/* @__PURE__ */ I(ee, {
583
+ children: [/* @__PURE__ */ I(b, {
584
584
  className: "cex-h2 cex-pname",
585
- children: q.owner.displayName || q.owner.githubUsername
585
+ children: J.owner.displayName || J.owner.githubUsername
586
586
  }), /* @__PURE__ */ L("span", {
587
587
  className: "cex-phandle mono",
588
- children: ["@", q.owner.githubUsername]
588
+ children: ["@", J.owner.githubUsername]
589
589
  })]
590
590
  })]
591
591
  }),
592
- /* @__PURE__ */ I(_, { tiles: [
592
+ /* @__PURE__ */ I(w, { tiles: [
593
593
  {
594
594
  key: "transcripts",
595
595
  label: "transcripts",
@@ -610,7 +610,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
610
610
  })]
611
611
  })]
612
612
  })]
613
- }) : ue === "profile" && J ? /* @__PURE__ */ L("div", {
613
+ }) : le === "profile" && Y ? /* @__PURE__ */ L("div", {
614
614
  className: `cex-root cex-profile ${n}`.trim(),
615
615
  children: [
616
616
  /* @__PURE__ */ L("div", {
@@ -618,7 +618,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
618
618
  children: [/* @__PURE__ */ L("button", {
619
619
  type: "button",
620
620
  className: "btn btn-secondary btn-sm",
621
- onClick: () => W("detail"),
621
+ onClick: () => G("detail"),
622
622
  children: [/* @__PURE__ */ I(ce, {
623
623
  size: 14,
624
624
  "aria-hidden": "true"
@@ -626,7 +626,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
626
626
  }), /* @__PURE__ */ L("button", {
627
627
  type: "button",
628
628
  className: "btn btn-secondary btn-sm",
629
- onClick: () => W("browse"),
629
+ onClick: () => G("browse"),
630
630
  children: [/* @__PURE__ */ I(ae, {
631
631
  size: 14,
632
632
  "aria-hidden": "true"
@@ -644,7 +644,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
644
644
  " ",
645
645
  /* @__PURE__ */ L("span", {
646
646
  className: "cur mono",
647
- children: ["@", J.githubUsername]
647
+ children: ["@", Y.githubUsername]
648
648
  })
649
649
  ]
650
650
  }),
@@ -653,19 +653,19 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
653
653
  children: [/* @__PURE__ */ I("div", {
654
654
  className: "cex-phero-av",
655
655
  "aria-hidden": "true",
656
- children: Oe(J.displayName || J.githubUsername)
656
+ children: Oe(Y.displayName || Y.githubUsername)
657
657
  }), /* @__PURE__ */ L("div", {
658
658
  className: "cex-phero-id",
659
- children: [/* @__PURE__ */ I(x, {
659
+ children: [/* @__PURE__ */ I(v, {
660
660
  className: "cex-h2 cex-pname",
661
- children: J.displayName || J.githubUsername
661
+ children: Y.displayName || Y.githubUsername
662
662
  }), /* @__PURE__ */ L("span", {
663
663
  className: "cex-phandle mono",
664
- children: ["@", J.githubUsername]
664
+ children: ["@", Y.githubUsername]
665
665
  })]
666
666
  })]
667
667
  }),
668
- /* @__PURE__ */ I(_, { tiles: [
668
+ /* @__PURE__ */ I(w, { tiles: [
669
669
  {
670
670
  key: "transcripts",
671
671
  label: "transcripts",
@@ -685,7 +685,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
685
685
  /* @__PURE__ */ L("section", {
686
686
  className: "cex-psec",
687
687
  "aria-label": "published library",
688
- children: [/* @__PURE__ */ I(S, {
688
+ children: [/* @__PURE__ */ I(y, {
689
689
  className: "cex-psec-title",
690
690
  children: "published library"
691
691
  }), we.length === 0 ? /* @__PURE__ */ L("div", {
@@ -698,7 +698,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
698
698
  "aria-hidden": "true"
699
699
  })
700
700
  }),
701
- /* @__PURE__ */ I(S, { children: "no transcripts yet" }),
701
+ /* @__PURE__ */ I(y, { children: "no transcripts yet" }),
702
702
  /* @__PURE__ */ I("p", { children: "this profile has not shared any transcripts in the commons." })
703
703
  ]
704
704
  }) : /* @__PURE__ */ I("div", {
@@ -725,7 +725,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
725
725
  className: "cex-lib-rows",
726
726
  children: t.map((e) => /* @__PURE__ */ I(Ie, {
727
727
  transcript: e,
728
- href: m?.(e),
728
+ href: p?.(e),
729
729
  onOpen: xe
730
730
  }, e.id))
731
731
  })]
@@ -737,13 +737,13 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
737
737
  className: `cex-root ${n}`.trim(),
738
738
  children: [/* @__PURE__ */ L("header", {
739
739
  className: "cex-explore-head",
740
- children: [i != null && /* @__PURE__ */ I(x, {
740
+ children: [i != null && /* @__PURE__ */ I(v, {
741
741
  className: "cex-h2",
742
742
  children: i
743
743
  }), /* @__PURE__ */ L("div", {
744
744
  className: "input-ico cex-searchbar",
745
745
  children: [
746
- /* @__PURE__ */ I(pe, { "aria-hidden": "true" }),
746
+ /* @__PURE__ */ I(fe, { "aria-hidden": "true" }),
747
747
  /* @__PURE__ */ I("input", {
748
748
  className: "input",
749
749
  type: "text",
@@ -757,7 +757,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
757
757
  className: "cex-clear",
758
758
  "aria-label": "clear search",
759
759
  onClick: () => E(""),
760
- children: /* @__PURE__ */ I(me, {
760
+ children: /* @__PURE__ */ I(pe, {
761
761
  size: 14,
762
762
  "aria-hidden": "true"
763
763
  })
@@ -774,7 +774,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
774
774
  "aria-controls": B,
775
775
  onClick: () => se((e) => !e),
776
776
  children: [
777
- /* @__PURE__ */ I(ge, {
777
+ /* @__PURE__ */ I(he, {
778
778
  size: 14,
779
779
  "aria-hidden": "true"
780
780
  }),
@@ -788,13 +788,13 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
788
788
  /* @__PURE__ */ I("div", {
789
789
  id: B,
790
790
  className: `cex-filter-panel${oe ? " is-open" : ""}`,
791
- children: /* @__PURE__ */ I(d, {
791
+ children: /* @__PURE__ */ I(c, {
792
792
  order: k,
793
793
  onOrder: (e) => A(e),
794
- providers: he,
794
+ providers: me,
795
795
  activeProviders: F === "all" ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([F]),
796
796
  onProvider: (e) => ne((t) => t === e ? "all" : e),
797
- topics: C.popularTags.map((e) => ({
797
+ topics: S.popularTags.map((e) => ({
798
798
  tag: e.name,
799
799
  count: e.usageCount
800
800
  })),
@@ -812,7 +812,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
812
812
  /* @__PURE__ */ L("div", {
813
813
  className: "cex-results",
814
814
  children: [
815
- X && /* @__PURE__ */ L("section", {
815
+ ge && /* @__PURE__ */ L("section", {
816
816
  className: "cex-coll-results",
817
817
  "aria-label": "matching collectives",
818
818
  children: [/* @__PURE__ */ I("div", {
@@ -821,18 +821,18 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
821
821
  className: "cex-eyebrow",
822
822
  children: ["collectives ", /* @__PURE__ */ I("span", {
823
823
  className: "cex-count tnum",
824
- children: X.length
824
+ children: ge.length
825
825
  })]
826
826
  })
827
- }), X.length === 0 ? /* @__PURE__ */ I("p", {
827
+ }), ge.length === 0 ? /* @__PURE__ */ I("p", {
828
828
  className: "cex-nomatch-inline mono",
829
829
  children: "no matching collectives."
830
830
  }) : /* @__PURE__ */ I("div", {
831
831
  className: "cex-coll-grid",
832
- children: X.map((e) => /* @__PURE__ */ I(Le, {
832
+ children: ge.map((e) => /* @__PURE__ */ I(Le, {
833
833
  collective: e,
834
- href: g?.(e),
835
- onOpen: p
834
+ href: m?.(e),
835
+ onOpen: f
836
836
  }, e.id))
837
837
  })]
838
838
  }),
@@ -856,14 +856,14 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
856
856
  "aria-pressed": z === "grid",
857
857
  "aria-label": "grid view",
858
858
  onClick: () => ie("grid"),
859
- children: [/* @__PURE__ */ I(de, { size: 14 }), " grid"]
859
+ children: [/* @__PURE__ */ I(ue, { size: 14 }), " grid"]
860
860
  }), /* @__PURE__ */ L("button", {
861
861
  type: "button",
862
862
  className: "bs-seg-opt",
863
863
  "aria-pressed": z === "list",
864
864
  "aria-label": "list view",
865
865
  onClick: () => ie("list"),
866
- children: [/* @__PURE__ */ I(fe, { size: 14 }), " list"]
866
+ children: [/* @__PURE__ */ I(de, { size: 14 }), " list"]
867
867
  })]
868
868
  })]
869
869
  }),
@@ -872,12 +872,12 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
872
872
  children: [
873
873
  /* @__PURE__ */ I("div", {
874
874
  className: "ring",
875
- children: /* @__PURE__ */ I(me, {
875
+ children: /* @__PURE__ */ I(pe, {
876
876
  size: 20,
877
877
  "aria-hidden": "true"
878
878
  })
879
879
  }),
880
- /* @__PURE__ */ I(S, { children: "no matches" }),
880
+ /* @__PURE__ */ I(y, { children: "no matches" }),
881
881
  /* @__PURE__ */ I("p", { children: "no transcripts match your search and filters. broaden the query or clear the filters." }),
882
882
  /* @__PURE__ */ I("button", {
883
883
  type: "button",
@@ -896,22 +896,22 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
896
896
  "aria-hidden": "true"
897
897
  })
898
898
  }),
899
- /* @__PURE__ */ I(S, { children: "the commons is empty" }),
899
+ /* @__PURE__ */ I(y, { children: "the commons is empty" }),
900
900
  /* @__PURE__ */ I("p", { children: "no transcripts have been shared yet. once contributors publish, they show up here." })
901
901
  ]
902
902
  }) : z === "grid" ? /* @__PURE__ */ I("div", {
903
903
  className: "cex-grid",
904
904
  children: Z.map((e) => /* @__PURE__ */ I(Fe, {
905
905
  transcript: e,
906
- href: m?.(e),
906
+ href: p?.(e),
907
907
  onOpen: xe,
908
- cardHeading: S
908
+ cardHeading: y
909
909
  }, e.id))
910
910
  }) : /* @__PURE__ */ I("div", {
911
911
  className: "cex-list",
912
912
  children: Z.map((e) => /* @__PURE__ */ I(Ie, {
913
913
  transcript: e,
914
- href: m?.(e),
914
+ href: p?.(e),
915
915
  onOpen: xe
916
916
  }, e.id))
917
917
  }),
@@ -922,7 +922,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
922
922
  onChange: H,
923
923
  className: "cex-pgn"
924
924
  }),
925
- o
925
+ a
926
926
  ]
927
927
  })
928
928
  ]
@@ -1209,7 +1209,7 @@ function Ge() {
1209
1209
  /* @__PURE__ */ L("span", {
1210
1210
  className: "cmg-pub-meta mono tnum",
1211
1211
  children: [
1212
- /* @__PURE__ */ I(ue, {
1212
+ /* @__PURE__ */ I(le, {
1213
1213
  size: 14,
1214
1214
  "aria-hidden": "true"
1215
1215
  }),
@@ -1449,7 +1449,7 @@ function Je() {
1449
1449
  /* @__PURE__ */ L("span", {
1450
1450
  className: "cmg-proj-branch mono",
1451
1451
  children: [
1452
- /* @__PURE__ */ I(le, {
1452
+ /* @__PURE__ */ I(U, {
1453
1453
  size: 14,
1454
1454
  "aria-hidden": "true"
1455
1455
  }),
@@ -1546,7 +1546,7 @@ function Je() {
1546
1546
  })]
1547
1547
  })
1548
1548
  ]
1549
- }), /* @__PURE__ */ I(C, {
1549
+ }), /* @__PURE__ */ I(p, {
1550
1550
  open: i,
1551
1551
  title: /* @__PURE__ */ L(F, { children: [
1552
1552
  "make ",
@@ -1668,7 +1668,7 @@ function et(e, t, n) {
1668
1668
  }, e));
1669
1669
  }
1670
1670
  function tt({ data: e = {}, actions: t = {} } = {}) {
1671
- let { collectives: n = [], linkedOrgs: r = [], title: i = "collectives", deck: a, crumb: o, caption: s = "collectives", createLabel: l = "new collective", createBusy: d = !1, whoCanPublish: f = Ye, whoCanRead: p = Xe } = e, { onCreateCollective: m, onOpenCollective: h, onSearchCollectives: g } = t, [_, y] = P(!1), [b, x] = P(""), [S, C] = P(""), [w, T] = P(f[0]?.value ?? ""), [E, D] = P(p[0]?.value ?? ""), [O, A] = P(""), [j, M] = P(""), N = te(), F = [
1671
+ let { collectives: n = [], linkedOrgs: r = [], title: i = "collectives", deck: a, crumb: s, caption: c = "collectives", createLabel: l = "new collective", createBusy: u = !1, whoCanPublish: d = Ye, whoCanRead: p = Xe } = e, { onCreateCollective: ee, onOpenCollective: m, onSearchCollectives: g } = t, [_, y] = P(!1), [b, x] = P(""), [S, C] = P(""), [w, T] = P(d[0]?.value ?? ""), [E, D] = P(p[0]?.value ?? ""), [O, A] = P(""), [j, M] = P(""), N = te(), F = [
1672
1672
  {
1673
1673
  key: "name",
1674
1674
  label: "name",
@@ -1677,7 +1677,7 @@ function tt({ data: e = {}, actions: t = {} } = {}) {
1677
1677
  children: [/* @__PURE__ */ I("button", {
1678
1678
  type: "button",
1679
1679
  className: "cmg-table-link",
1680
- onClick: () => h?.(t.id),
1680
+ onClick: () => m?.(t.id),
1681
1681
  children: t.name
1682
1682
  }), t.desc ? /* @__PURE__ */ I("span", {
1683
1683
  className: "cmg-cell-desc",
@@ -1727,9 +1727,9 @@ function tt({ data: e = {}, actions: t = {} } = {}) {
1727
1727
  return /* @__PURE__ */ L("div", {
1728
1728
  className: "iu-page",
1729
1729
  children: [
1730
- o ? /* @__PURE__ */ I("div", {
1730
+ s ? /* @__PURE__ */ I("div", {
1731
1731
  className: "cmg-crumb",
1732
- children: /* @__PURE__ */ I(u, { items: [{ label: o }] })
1732
+ children: /* @__PURE__ */ I(v, { items: [{ label: s }] })
1733
1733
  }) : null,
1734
1734
  /* @__PURE__ */ L("header", {
1735
1735
  className: "iu-page-head",
@@ -1744,7 +1744,7 @@ function tt({ data: e = {}, actions: t = {} } = {}) {
1744
1744
  "aria-expanded": _,
1745
1745
  onClick: () => y((e) => !e),
1746
1746
  children: [
1747
- /* @__PURE__ */ I(J, {
1747
+ /* @__PURE__ */ I(Y, {
1748
1748
  size: 14,
1749
1749
  "aria-hidden": "true"
1750
1750
  }),
@@ -1795,13 +1795,13 @@ function tt({ data: e = {}, actions: t = {} } = {}) {
1795
1795
  }),
1796
1796
  /* @__PURE__ */ I("div", {
1797
1797
  className: "cmg-field",
1798
- children: /* @__PURE__ */ I(v, {
1798
+ children: /* @__PURE__ */ I(h, {
1799
1799
  variant: "select",
1800
1800
  label: "who can publish",
1801
1801
  name: "who-can-publish",
1802
1802
  value: w,
1803
1803
  onChange: T,
1804
- options: f.map((e) => ({
1804
+ options: d.map((e) => ({
1805
1805
  ...e,
1806
1806
  rationale: e.help
1807
1807
  }))
@@ -1809,7 +1809,7 @@ function tt({ data: e = {}, actions: t = {} } = {}) {
1809
1809
  }),
1810
1810
  /* @__PURE__ */ I("div", {
1811
1811
  className: "cmg-field",
1812
- children: /* @__PURE__ */ I(v, {
1812
+ children: /* @__PURE__ */ I(h, {
1813
1813
  variant: "select",
1814
1814
  label: "who can read",
1815
1815
  name: "who-can-read",
@@ -1846,28 +1846,28 @@ function tt({ data: e = {}, actions: t = {} } = {}) {
1846
1846
  children: [/* @__PURE__ */ I("button", {
1847
1847
  type: "button",
1848
1848
  className: "btn btn-sm btn-primary",
1849
- disabled: !b.trim() || d,
1849
+ disabled: !b.trim() || u,
1850
1850
  "aria-describedby": N,
1851
- onClick: () => m?.({
1851
+ onClick: () => ee?.({
1852
1852
  name: b,
1853
1853
  purpose: S,
1854
1854
  mode: w,
1855
1855
  access: E,
1856
1856
  org: O
1857
1857
  }),
1858
- children: d ? "creating" : "create collective"
1858
+ children: u ? "creating" : "create collective"
1859
1859
  }), /* @__PURE__ */ I("span", {
1860
1860
  id: N,
1861
1861
  className: "cmg-form-hint mono",
1862
- children: f.find((e) => e.value === w)?.help
1862
+ children: d.find((e) => e.value === w)?.help
1863
1863
  })]
1864
1864
  })
1865
1865
  ]
1866
1866
  }),
1867
1867
  /* @__PURE__ */ L("div", {
1868
1868
  className: "cmg-section",
1869
- children: [/* @__PURE__ */ I(c, {
1870
- caption: `${s} ${n.length}`,
1869
+ children: [/* @__PURE__ */ I(o, {
1870
+ caption: `${c} ${n.length}`,
1871
1871
  columns: F,
1872
1872
  rows: n,
1873
1873
  rowKey: (e) => e.id
@@ -1889,10 +1889,10 @@ function tt({ data: e = {}, actions: t = {} } = {}) {
1889
1889
  onSubmit: (e) => {
1890
1890
  e.preventDefault(), g(j);
1891
1891
  },
1892
- children: [/* @__PURE__ */ I(ee, {
1892
+ children: [/* @__PURE__ */ I(f, {
1893
1893
  label: "collective or github org",
1894
1894
  type: "search",
1895
- iconLeft: pe,
1895
+ iconLeft: fe,
1896
1896
  placeholder: "collective name or github org",
1897
1897
  value: j,
1898
1898
  onChange: (e) => M(e.target.value)
@@ -1927,7 +1927,7 @@ function rt(e = {}) {
1927
1927
  };
1928
1928
  }
1929
1929
  function it({ data: e = {}, actions: t = {} } = {}) {
1930
- let { owners: r = [], linkedRepos: i = [], hrefFor: a } = e, o = rt(e.collective), { onSettings: s, onContribute: l, onReview: d, onOpenTranscript: p, onOpenPullRequest: m, onLinkRepos: g, onShowMore: _ } = t, [v, b] = P(!1), x = te(), S = o.transcriptCount ?? o.transcripts.length, ee = [
1930
+ let { owners: r = [], linkedRepos: i = [], hrefFor: a } = e, s = rt(e.collective), { onSettings: c, onContribute: l, onReview: u, onOpenTranscript: d, onOpenPullRequest: f, onLinkRepos: p, onShowMore: h } = t, [g, _] = P(!1), y = te(), b = s.transcriptCount ?? s.transcripts.length, x = [
1931
1931
  {
1932
1932
  key: "title",
1933
1933
  label: "title",
@@ -1942,7 +1942,7 @@ function it({ data: e = {}, actions: t = {} } = {}) {
1942
1942
  children: [/* @__PURE__ */ I($e, {
1943
1943
  className: "iu-session-title",
1944
1944
  href: a?.("transcript", t.id),
1945
- onOpen: p ? () => p(t.id) : void 0,
1945
+ onOpen: d ? () => d(t.id) : void 0,
1946
1946
  children: t.title
1947
1947
  }), /* @__PURE__ */ L("span", {
1948
1948
  className: "iu-session-sub",
@@ -1971,8 +1971,8 @@ function it({ data: e = {}, actions: t = {} } = {}) {
1971
1971
  label: "pull requests",
1972
1972
  render: (e, t) => t.pullRequests?.length ? /* @__PURE__ */ L("span", {
1973
1973
  className: "cmg-prs",
1974
- children: [/* @__PURE__ */ I(y, {
1975
- items: et(t.pullRequests, m, a),
1974
+ children: [/* @__PURE__ */ I(E, {
1975
+ items: et(t.pullRequests, f, a),
1976
1976
  label: "pull requests",
1977
1977
  noun: ["pull request", "pull requests"]
1978
1978
  }), t.repo && /* @__PURE__ */ I("span", {
@@ -1988,21 +1988,21 @@ function it({ data: e = {}, actions: t = {} } = {}) {
1988
1988
  key: "when",
1989
1989
  label: "when"
1990
1990
  }
1991
- ], C = [
1991
+ ], S = [
1992
1992
  {
1993
1993
  key: "read",
1994
1994
  title: "who can read",
1995
- text: o.whoCanRead
1995
+ text: s.whoCanRead
1996
1996
  },
1997
1997
  {
1998
1998
  key: "publish",
1999
1999
  title: "who can publish",
2000
- text: o.whoCanPublish
2000
+ text: s.whoCanPublish
2001
2001
  },
2002
2002
  {
2003
2003
  key: "role",
2004
2004
  title: "your role",
2005
- text: o.yourRole
2005
+ text: s.yourRole
2006
2006
  }
2007
2007
  ].filter((e) => e.text);
2008
2008
  return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L("div", {
@@ -2010,10 +2010,10 @@ function it({ data: e = {}, actions: t = {} } = {}) {
2010
2010
  children: [
2011
2011
  /* @__PURE__ */ I("div", {
2012
2012
  className: "cmg-crumb-content",
2013
- children: /* @__PURE__ */ I(u, { items: [{
2013
+ children: /* @__PURE__ */ I(v, { items: [{
2014
2014
  label: "collectives",
2015
2015
  href: a?.("collectives")
2016
- }, { label: o.name }] })
2016
+ }, { label: s.name }] })
2017
2017
  }),
2018
2018
  /* @__PURE__ */ L("header", {
2019
2019
  className: "iu-page-head",
@@ -2021,20 +2021,20 @@ function it({ data: e = {}, actions: t = {} } = {}) {
2021
2021
  className: "iu-page-titlerow",
2022
2022
  children: [/* @__PURE__ */ I("h2", {
2023
2023
  className: "iu-page-title iu-page-title-content",
2024
- id: x,
2025
- children: o.name
2024
+ id: y,
2025
+ children: s.name
2026
2026
  }), /* @__PURE__ */ L("span", {
2027
2027
  className: "cmg-actions",
2028
- children: [o.role === "owner" && s && /* @__PURE__ */ L("button", {
2028
+ children: [s.role === "owner" && c && /* @__PURE__ */ L("button", {
2029
2029
  type: "button",
2030
2030
  className: "btn btn-secondary btn-sm",
2031
- onClick: () => s(),
2032
- children: [/* @__PURE__ */ I(Y, {
2031
+ onClick: () => c(),
2032
+ children: [/* @__PURE__ */ I(X, {
2033
2033
  size: 14,
2034
2034
  "aria-hidden": "true"
2035
2035
  }), " settings"]
2036
- }), (l || d) && /* @__PURE__ */ I(f, {
2037
- icon: q,
2036
+ }), (l || u) && /* @__PURE__ */ I(m, {
2037
+ icon: J,
2038
2038
  ariaLabel: "more",
2039
2039
  size: "sm",
2040
2040
  align: "end",
@@ -2042,22 +2042,22 @@ function it({ data: e = {}, actions: t = {} } = {}) {
2042
2042
  label: "publish several transcripts",
2043
2043
  icon: Z,
2044
2044
  onSelect: () => l()
2045
- }] : [], ...d ? [{
2045
+ }] : [], ...u ? [{
2046
2046
  label: "review transcripts",
2047
2047
  icon: ie,
2048
- onSelect: () => d()
2048
+ onSelect: () => u()
2049
2049
  }] : []]
2050
2050
  })]
2051
2051
  })]
2052
- }), o.purpose ? /* @__PURE__ */ I("p", {
2052
+ }), s.purpose ? /* @__PURE__ */ I("p", {
2053
2053
  className: "iu-page-sub",
2054
- children: o.purpose
2054
+ children: s.purpose
2055
2055
  }) : null]
2056
2056
  }),
2057
- C.length > 0 && /* @__PURE__ */ I("ul", {
2057
+ S.length > 0 && /* @__PURE__ */ I("ul", {
2058
2058
  className: "cmg-policies",
2059
2059
  "aria-label": "how this collective works",
2060
- children: C.map((e) => /* @__PURE__ */ L("li", {
2060
+ children: S.map((e) => /* @__PURE__ */ L("li", {
2061
2061
  className: "cmg-policy",
2062
2062
  children: [/* @__PURE__ */ I("h3", {
2063
2063
  className: "cmg-policy-title",
@@ -2068,18 +2068,18 @@ function it({ data: e = {}, actions: t = {} } = {}) {
2068
2068
  })]
2069
2069
  }, e.key))
2070
2070
  }),
2071
- /* @__PURE__ */ I(h, {
2072
- items: o.stats,
2073
- label: `${o.name} in numbers`
2071
+ /* @__PURE__ */ I(T, {
2072
+ items: s.stats,
2073
+ label: `${s.name} in numbers`
2074
2074
  }),
2075
2075
  /* @__PURE__ */ L("div", {
2076
2076
  className: "cmg-home",
2077
2077
  children: [/* @__PURE__ */ L("div", {
2078
2078
  className: "cmg-home-main",
2079
- children: [/* @__PURE__ */ I(c, {
2080
- caption: `transcripts ${S}`,
2081
- columns: ee,
2082
- rows: o.transcripts,
2079
+ children: [/* @__PURE__ */ I(o, {
2080
+ caption: `transcripts ${b}`,
2081
+ columns: x,
2082
+ rows: s.transcripts,
2083
2083
  rowKey: (e) => e.id
2084
2084
  }), /* @__PURE__ */ L("div", {
2085
2085
  className: "iu-page-foot",
@@ -2089,18 +2089,18 @@ function it({ data: e = {}, actions: t = {} } = {}) {
2089
2089
  "showing ",
2090
2090
  /* @__PURE__ */ I("span", {
2091
2091
  className: "tnum",
2092
- children: o.transcripts.length
2092
+ children: s.transcripts.length
2093
2093
  }),
2094
2094
  " of ",
2095
2095
  /* @__PURE__ */ I("span", {
2096
2096
  className: "tnum",
2097
- children: S
2097
+ children: b
2098
2098
  })
2099
2099
  ]
2100
- }), S > o.transcripts.length && _ && /* @__PURE__ */ I("button", {
2100
+ }), b > s.transcripts.length && h && /* @__PURE__ */ I("button", {
2101
2101
  type: "button",
2102
2102
  className: "btn btn-secondary btn-sm",
2103
- onClick: () => _(),
2103
+ onClick: () => h(),
2104
2104
  children: "show more"
2105
2105
  })]
2106
2106
  })]
@@ -2112,36 +2112,36 @@ function it({ data: e = {}, actions: t = {} } = {}) {
2112
2112
  children: [/* @__PURE__ */ I("h3", {
2113
2113
  className: "cmg-rail-title",
2114
2114
  children: "github orgs"
2115
- }), o.org ? /* @__PURE__ */ L("p", {
2115
+ }), s.org ? /* @__PURE__ */ L("p", {
2116
2116
  className: "cmg-rail-line",
2117
2117
  children: [
2118
2118
  /* @__PURE__ */ I(H, { "aria-hidden": "true" }),
2119
2119
  " ",
2120
2120
  /* @__PURE__ */ I("span", {
2121
2121
  className: "mono",
2122
- children: o.org.login
2122
+ children: s.org.login
2123
2123
  }),
2124
- typeof o.org.total == "number" ? /* @__PURE__ */ L(F, { children: [
2124
+ typeof s.org.total == "number" ? /* @__PURE__ */ L(F, { children: [
2125
2125
  ", ",
2126
2126
  /* @__PURE__ */ I("span", {
2127
2127
  className: "tnum",
2128
- children: o.org.linked ?? 0
2128
+ children: s.org.linked ?? 0
2129
2129
  }),
2130
2130
  " of ",
2131
2131
  /* @__PURE__ */ I("span", {
2132
2132
  className: "tnum",
2133
- children: o.org.total
2133
+ children: s.org.total
2134
2134
  }),
2135
2135
  " repos linked"
2136
2136
  ] }) : null,
2137
- o.role === "owner" && g && /* @__PURE__ */ I("button", {
2137
+ s.role === "owner" && p && /* @__PURE__ */ I("button", {
2138
2138
  type: "button",
2139
2139
  className: "btn btn-ghost btn-sm",
2140
- onClick: () => b(!0),
2140
+ onClick: () => _(!0),
2141
2141
  children: "manage"
2142
2142
  })
2143
2143
  ]
2144
- }) : o.org === null ? /* @__PURE__ */ I("p", {
2144
+ }) : s.org === null ? /* @__PURE__ */ I("p", {
2145
2145
  className: "cmg-rail-line cmg-none",
2146
2146
  children: "nothing linked"
2147
2147
  }) : null]
@@ -2150,33 +2150,33 @@ function it({ data: e = {}, actions: t = {} } = {}) {
2150
2150
  children: [
2151
2151
  /* @__PURE__ */ L("h3", {
2152
2152
  className: "cmg-rail-title",
2153
- children: ["members", typeof o.memberCount == "number" ? /* @__PURE__ */ L(F, { children: [" ", /* @__PURE__ */ I("span", {
2153
+ children: ["members", typeof s.memberCount == "number" ? /* @__PURE__ */ L(F, { children: [" ", /* @__PURE__ */ I("span", {
2154
2154
  className: "tnum cmg-count",
2155
- children: o.memberCount
2155
+ children: s.memberCount
2156
2156
  })] }) : null]
2157
2157
  }),
2158
- o.memberBreakdown ? /* @__PURE__ */ I("p", {
2158
+ s.memberBreakdown ? /* @__PURE__ */ I("p", {
2159
2159
  className: "cmg-note",
2160
- children: o.memberBreakdown
2160
+ children: s.memberBreakdown
2161
2161
  }) : null,
2162
2162
  /* @__PURE__ */ I(nt, {
2163
- members: o.members,
2164
- count: o.memberCount ?? o.members.length
2163
+ members: s.members,
2164
+ count: s.memberCount ?? s.members.length
2165
2165
  })
2166
2166
  ]
2167
2167
  })]
2168
2168
  })]
2169
2169
  })
2170
2170
  ]
2171
- }), g && /* @__PURE__ */ I(w, {
2172
- open: v,
2173
- onClose: () => b(!1),
2171
+ }), p && /* @__PURE__ */ I(ee, {
2172
+ open: g,
2173
+ onClose: () => _(!1),
2174
2174
  owners: r,
2175
2175
  initialSelected: i,
2176
- title: `link repositories from ${o.org?.login ?? "github"}`,
2177
- description: `pull requests in linked repos show the transcripts published to ${o.name}.`,
2176
+ title: `link repositories from ${s.org?.login ?? "github"}`,
2177
+ description: `pull requests in linked repos show the transcripts published to ${s.name}.`,
2178
2178
  onSave: (e) => {
2179
- g(e), b(!1);
2179
+ p(e), _(!1);
2180
2180
  }
2181
2181
  })] });
2182
2182
  }
@@ -2199,35 +2199,35 @@ function ct() {
2199
2199
  return /* @__PURE__ */ I(e, { name: "github" });
2200
2200
  }
2201
2201
  var lt = {
2202
- general: ge,
2203
- access: W,
2202
+ general: he,
2203
+ access: G,
2204
2204
  members: Q,
2205
2205
  "github orgs": ct,
2206
- "pull requests": U,
2207
- "danger zone": X
2206
+ "pull requests": W,
2207
+ "danger zone": ge
2208
2208
  };
2209
2209
  function ut({ data: e = {}, actions: t = {} } = {}) {
2210
- let { owners: n = [], linkedRepos: r = [], showOnPullRequests: i = !1, whoCanPublish: a = Ye, whoCanRead: o = Xe, memberLeavesChoices: c = at, hrefFor: l } = e, d = rt(e.collective), f = (e) => (n) => t.onCommit ? t.onCommit(e, n) : Promise.resolve(), [p, m] = P(!1), [h, _] = P(""), v = !!(t.onTransferOwnership || t.onDelete), y = [
2210
+ let { owners: n = [], linkedRepos: r = [], showOnPullRequests: i = !1, whoCanPublish: a = Ye, whoCanRead: o = Xe, memberLeavesChoices: s = at, hrefFor: c } = e, l = rt(e.collective), u = (e) => (n) => t.onCommit ? t.onCommit(e, n) : Promise.resolve(), [p, m] = P(!1), [h, g] = P(""), b = !!(t.onTransferOwnership || t.onDelete), x = [
2211
2211
  "general",
2212
2212
  "access",
2213
2213
  "members",
2214
2214
  "github orgs",
2215
2215
  "pull requests",
2216
- ...v ? ["danger zone"] : []
2217
- ], b = (e) => `cmg-settings-${e.replace(/ /g, "-")}`;
2216
+ ...b ? ["danger zone"] : []
2217
+ ], S = (e) => `cmg-settings-${e.replace(/ /g, "-")}`;
2218
2218
  return /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ L("div", {
2219
2219
  className: "iu-page cmg-settings",
2220
2220
  children: [
2221
2221
  /* @__PURE__ */ I("div", {
2222
2222
  className: "cmg-crumb-content",
2223
- children: /* @__PURE__ */ I(u, { items: [
2223
+ children: /* @__PURE__ */ I(v, { items: [
2224
2224
  {
2225
2225
  label: "collectives",
2226
- href: l?.("collectives")
2226
+ href: c?.("collectives")
2227
2227
  },
2228
2228
  {
2229
- label: d.name,
2230
- href: l?.("collective", d.id)
2229
+ label: l.name,
2230
+ href: c?.("collective", l.id)
2231
2231
  },
2232
2232
  { label: "settings" }
2233
2233
  ] })
@@ -2238,72 +2238,72 @@ function ut({ data: e = {}, actions: t = {} } = {}) {
2238
2238
  className: "iu-page-title",
2239
2239
  children: [/* @__PURE__ */ I("span", {
2240
2240
  className: "iu-page-title-content",
2241
- children: d.name
2241
+ children: l.name
2242
2242
  }), ", settings"]
2243
2243
  })
2244
2244
  }),
2245
- /* @__PURE__ */ L(x, {
2246
- sections: y.map((e) => ({
2247
- id: b(e),
2245
+ /* @__PURE__ */ L(y, {
2246
+ sections: x.map((e) => ({
2247
+ id: S(e),
2248
2248
  label: e,
2249
- href: `#${b(e)}`,
2249
+ href: `#${S(e)}`,
2250
2250
  icon: lt[e]
2251
2251
  })),
2252
- currentId: b(y[0]),
2252
+ currentId: S(x[0]),
2253
2253
  spy: !0,
2254
2254
  children: [
2255
- /* @__PURE__ */ L(g, {
2255
+ /* @__PURE__ */ L(_, {
2256
2256
  label: "general",
2257
2257
  defaultOpen: !0,
2258
- id: b("general"),
2259
- children: [/* @__PURE__ */ I(S, {
2258
+ id: S("general"),
2259
+ children: [/* @__PURE__ */ I(C, {
2260
2260
  label: "name",
2261
2261
  control: "text",
2262
- value: d.name,
2263
- onCommit: f("name")
2264
- }), /* @__PURE__ */ I(S, {
2262
+ value: l.name,
2263
+ onCommit: u("name")
2264
+ }), /* @__PURE__ */ I(C, {
2265
2265
  label: "purpose",
2266
2266
  control: "text",
2267
- value: d.purpose ?? "",
2268
- onCommit: f("purpose")
2267
+ value: l.purpose ?? "",
2268
+ onCommit: u("purpose")
2269
2269
  })]
2270
2270
  }),
2271
- /* @__PURE__ */ L(g, {
2271
+ /* @__PURE__ */ L(_, {
2272
2272
  label: "access",
2273
2273
  defaultOpen: !0,
2274
- id: b("access"),
2275
- children: [/* @__PURE__ */ I(S, {
2274
+ id: S("access"),
2275
+ children: [/* @__PURE__ */ I(C, {
2276
2276
  label: "who can publish",
2277
2277
  help: ((e) => e.filter((e) => e.help).map((e) => `${e.label}: ${e.help}`).join(" "))(a),
2278
2278
  control: "select",
2279
- value: st(d.mode, a),
2280
- options: ot(d.mode, a),
2281
- onCommit: f("mode")
2282
- }), /* @__PURE__ */ I(S, {
2279
+ value: st(l.mode, a),
2280
+ options: ot(l.mode, a),
2281
+ onCommit: u("mode")
2282
+ }), /* @__PURE__ */ I(C, {
2283
2283
  label: "who can read",
2284
2284
  help: "members read and publish. contributors publish, and read only if who can read allows it.",
2285
2285
  control: "select",
2286
- value: st(d.access, o),
2287
- options: ot(d.access, o),
2288
- onCommit: f("access")
2286
+ value: st(l.access, o),
2287
+ options: ot(l.access, o),
2288
+ onCommit: u("access")
2289
2289
  })]
2290
2290
  }),
2291
- /* @__PURE__ */ L(g, {
2291
+ /* @__PURE__ */ L(_, {
2292
2292
  label: "members",
2293
2293
  defaultOpen: !0,
2294
- count: d.memberCount ?? null,
2294
+ count: l.memberCount ?? null,
2295
2295
  noun: ["member", "members"],
2296
- id: b("members"),
2296
+ id: S("members"),
2297
2297
  children: [
2298
2298
  t.onInvite && /* @__PURE__ */ L("form", {
2299
2299
  className: "srow cmg-invite",
2300
2300
  onSubmit: (e) => {
2301
- e.preventDefault(), t.onInvite(h), _("");
2301
+ e.preventDefault(), t.onInvite(h), g("");
2302
2302
  },
2303
- children: [/* @__PURE__ */ I(ee, {
2303
+ children: [/* @__PURE__ */ I(f, {
2304
2304
  label: "invite by github username",
2305
2305
  value: h,
2306
- onChange: (e) => _(e.target.value),
2306
+ onChange: (e) => g(e.target.value),
2307
2307
  placeholder: "github username"
2308
2308
  }), /* @__PURE__ */ I("button", {
2309
2309
  type: "submit",
@@ -2315,10 +2315,10 @@ function ut({ data: e = {}, actions: t = {} } = {}) {
2315
2315
  /* @__PURE__ */ I("ul", {
2316
2316
  className: "cmg-member-list",
2317
2317
  "aria-label": "members",
2318
- children: d.members.map((e) => /* @__PURE__ */ L("li", {
2318
+ children: l.members.map((e) => /* @__PURE__ */ L("li", {
2319
2319
  className: "cmg-member",
2320
2320
  children: [
2321
- /* @__PURE__ */ I(s, {
2321
+ /* @__PURE__ */ I(d, {
2322
2322
  name: e.name ?? e.handle,
2323
2323
  size: "sm"
2324
2324
  }),
@@ -2364,40 +2364,40 @@ function ut({ data: e = {}, actions: t = {} } = {}) {
2364
2364
  ]
2365
2365
  }, e.handle))
2366
2366
  }),
2367
- /* @__PURE__ */ I(S, {
2367
+ /* @__PURE__ */ I(C, {
2368
2368
  label: "when a member leaves",
2369
2369
  help: "what happens to the transcripts they published here.",
2370
2370
  control: "select",
2371
- value: st(d.memberLeaves, c),
2372
- options: ot(d.memberLeaves, c),
2373
- onCommit: f("memberLeaves")
2371
+ value: st(l.memberLeaves, s),
2372
+ options: ot(l.memberLeaves, s),
2373
+ onCommit: u("memberLeaves")
2374
2374
  })
2375
2375
  ]
2376
2376
  }),
2377
- /* @__PURE__ */ I(g, {
2377
+ /* @__PURE__ */ I(_, {
2378
2378
  label: "github orgs",
2379
2379
  defaultOpen: !0,
2380
- count: d.org === void 0 ? null : +!!d.org,
2380
+ count: l.org === void 0 ? null : +!!l.org,
2381
2381
  noun: ["org", "orgs"],
2382
- id: b("github orgs"),
2382
+ id: S("github orgs"),
2383
2383
  children: /* @__PURE__ */ L("div", {
2384
2384
  className: "srow",
2385
2385
  children: [/* @__PURE__ */ L("span", {
2386
2386
  className: "srow-text-col",
2387
2387
  children: [/* @__PURE__ */ I("span", {
2388
2388
  className: "srow-label",
2389
- children: d.org ? d.org.login : d.org === null ? "no org linked" : "github org"
2389
+ children: l.org ? l.org.login : l.org === null ? "no org linked" : "github org"
2390
2390
  }), /* @__PURE__ */ L("span", {
2391
2391
  className: "srow-help",
2392
- children: [typeof d.org?.total == "number" ? /* @__PURE__ */ L(F, { children: [
2392
+ children: [typeof l.org?.total == "number" ? /* @__PURE__ */ L(F, { children: [
2393
2393
  /* @__PURE__ */ I("span", {
2394
2394
  className: "tnum",
2395
- children: d.org.linked ?? 0
2395
+ children: l.org.linked ?? 0
2396
2396
  }),
2397
2397
  " of ",
2398
2398
  /* @__PURE__ */ I("span", {
2399
2399
  className: "tnum",
2400
- children: d.org.total
2400
+ children: l.org.total
2401
2401
  }),
2402
2402
  " repos linked. "
2403
2403
  ] }) : null, "a collective links one github org today."]
@@ -2410,24 +2410,24 @@ function ut({ data: e = {}, actions: t = {} } = {}) {
2410
2410
  })]
2411
2411
  })
2412
2412
  }),
2413
- /* @__PURE__ */ I(g, {
2413
+ /* @__PURE__ */ I(_, {
2414
2414
  label: "pull requests",
2415
2415
  defaultOpen: !0,
2416
2416
  count: 1,
2417
- id: b("pull requests"),
2418
- children: /* @__PURE__ */ I(S, {
2417
+ id: S("pull requests"),
2418
+ children: /* @__PURE__ */ I(C, {
2419
2419
  label: "show transcripts on pull requests",
2420
2420
  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.",
2421
2421
  control: "switch",
2422
2422
  value: i,
2423
- onCommit: f("showOnPullRequests")
2423
+ onCommit: u("showOnPullRequests")
2424
2424
  })
2425
2425
  }),
2426
- v && /* @__PURE__ */ L(g, {
2426
+ b && /* @__PURE__ */ L(_, {
2427
2427
  label: "danger zone",
2428
2428
  defaultOpen: !0,
2429
2429
  count: null,
2430
- id: b("danger zone"),
2430
+ id: S("danger zone"),
2431
2431
  children: [t.onTransferOwnership && /* @__PURE__ */ L("div", {
2432
2432
  className: "srow",
2433
2433
  children: [/* @__PURE__ */ I("span", {
@@ -2445,13 +2445,13 @@ function ut({ data: e = {}, actions: t = {} } = {}) {
2445
2445
  className: "srow-help",
2446
2446
  children: [
2447
2447
  "delete ",
2448
- d.name,
2448
+ l.name,
2449
2449
  " for ",
2450
- typeof d.memberCount == "number" ? /* @__PURE__ */ L(F, { children: [
2450
+ typeof l.memberCount == "number" ? /* @__PURE__ */ L(F, { children: [
2451
2451
  "all ",
2452
2452
  /* @__PURE__ */ I("span", {
2453
2453
  className: "tnum",
2454
- children: d.memberCount
2454
+ children: l.memberCount
2455
2455
  }),
2456
2456
  " members"
2457
2457
  ] }) : "all its members",
@@ -2468,12 +2468,12 @@ function ut({ data: e = {}, actions: t = {} } = {}) {
2468
2468
  ]
2469
2469
  })
2470
2470
  ]
2471
- }), t.onLinkRepos && /* @__PURE__ */ I(w, {
2471
+ }), t.onLinkRepos && /* @__PURE__ */ I(ee, {
2472
2472
  open: p,
2473
2473
  onClose: () => m(!1),
2474
2474
  owners: n,
2475
2475
  initialSelected: r,
2476
- title: `link repositories from ${d.org?.login ?? "github"}`,
2476
+ title: `link repositories from ${l.org?.login ?? "github"}`,
2477
2477
  onSave: (e) => {
2478
2478
  t.onLinkRepos(e), m(!1);
2479
2479
  }
@@ -2525,8 +2525,8 @@ function ht(e) {
2525
2525
  }).format(t).toLowerCase();
2526
2526
  }
2527
2527
  function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2528
- let { collective: r = dt, providerShare: i = [], pendingReview: a = [], members: s = [], redactions: c = [], browseRows: l = [], roleOptions: u = [], initialRole: d = "", initialShowRedaction: f = !1, initialBrowseGated: h = !1, stats: g = ft } = e || pt, { onRoleChange: v, onJoin: y, onLeave: b, onSettings: x, onContribute: S, onToggleBrowse: ee } = t || {}, [C, w] = P(d || r.role || ""), [D, O] = P(!!f), [k, A] = P(!!h), j = C || r.role || "guest", te = j === "owner", N = j === "guest", F = n && u.length > 0, ne = M(() => F ? u : [], [F, u]), R = (e) => {
2529
- w(e), v?.(e);
2528
+ let { collective: r = dt, providerShare: i = [], pendingReview: o = [], members: c = [], redactions: l = [], browseRows: d = [], roleOptions: f = [], initialRole: p = "", initialShowRedaction: ee = !1, initialBrowseGated: m = !1, stats: h = ft } = e || pt, { onRoleChange: g, onJoin: _, onLeave: v, onSettings: y, onContribute: x, onToggleBrowse: C } = t || {}, [T, E] = P(p || r.role || ""), [D, O] = P(!!ee), [k, A] = P(!!m), j = T || r.role || "guest", te = j === "owner", N = j === "guest", F = n && f.length > 0, ne = M(() => F ? f : [], [F, f]), R = (e) => {
2529
+ E(e), g?.(e);
2530
2530
  };
2531
2531
  return /* @__PURE__ */ I("div", {
2532
2532
  className: "cmg-root",
@@ -2586,7 +2586,7 @@ function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2586
2586
  children: ne.map((e) => /* @__PURE__ */ I("button", {
2587
2587
  type: "button",
2588
2588
  className: "cmg-roleseg",
2589
- "aria-pressed": C === e,
2589
+ "aria-pressed": T === e,
2590
2590
  onClick: () => R(e),
2591
2591
  children: e
2592
2592
  }, e))
@@ -2605,35 +2605,35 @@ function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2605
2605
  N ? /* @__PURE__ */ L("button", {
2606
2606
  type: "button",
2607
2607
  className: "btn btn-sm btn-primary",
2608
- onClick: () => y?.(),
2608
+ onClick: () => _?.(),
2609
2609
  children: [/* @__PURE__ */ I(ve, {
2610
2610
  size: 14,
2611
2611
  "aria-hidden": "true"
2612
2612
  }), " join as contributor"]
2613
2613
  }) : null,
2614
- (j === "member" || j === "contributor") && S ? /* @__PURE__ */ L("button", {
2614
+ (j === "member" || j === "contributor") && x ? /* @__PURE__ */ L("button", {
2615
2615
  type: "button",
2616
2616
  className: "btn btn-sm btn-primary",
2617
- onClick: () => S?.(),
2618
- children: [/* @__PURE__ */ I(he, {
2617
+ onClick: () => x?.(),
2618
+ children: [/* @__PURE__ */ I(me, {
2619
2619
  size: 14,
2620
2620
  "aria-hidden": "true"
2621
2621
  }), " contribute"]
2622
2622
  }) : null,
2623
- (j === "member" || j === "contributor") && b ? /* @__PURE__ */ L("button", {
2623
+ (j === "member" || j === "contributor") && v ? /* @__PURE__ */ L("button", {
2624
2624
  type: "button",
2625
2625
  className: "btn btn-sm btn-danger",
2626
- onClick: () => b?.(),
2627
- children: [/* @__PURE__ */ I(K, {
2626
+ onClick: () => v?.(),
2627
+ children: [/* @__PURE__ */ I(q, {
2628
2628
  size: 14,
2629
2629
  "aria-hidden": "true"
2630
2630
  }), " leave"]
2631
2631
  }) : null,
2632
- te && x ? /* @__PURE__ */ L("button", {
2632
+ te && y ? /* @__PURE__ */ L("button", {
2633
2633
  type: "button",
2634
2634
  className: "btn btn-sm btn-secondary",
2635
- onClick: () => x?.(),
2636
- children: [/* @__PURE__ */ I(Y, {
2635
+ onClick: () => y?.(),
2636
+ children: [/* @__PURE__ */ I(X, {
2637
2637
  size: 14,
2638
2638
  "aria-hidden": "true"
2639
2639
  }), " settings"]
@@ -2645,40 +2645,40 @@ function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2645
2645
  /* @__PURE__ */ L("div", {
2646
2646
  className: "cmg-tiles",
2647
2647
  children: [
2648
- /* @__PURE__ */ I(T, {
2648
+ /* @__PURE__ */ I(u, {
2649
2649
  label: "contributions",
2650
2650
  value: r.acceptanceMode || "open",
2651
2651
  tone: "teal"
2652
2652
  }),
2653
- /* @__PURE__ */ I(T, {
2653
+ /* @__PURE__ */ I(u, {
2654
2654
  label: "access",
2655
2655
  value: r.dataAccess || "members only",
2656
2656
  tone: "amber"
2657
2657
  }),
2658
- /* @__PURE__ */ I(T, {
2658
+ /* @__PURE__ */ I(u, {
2659
2659
  label: "your role",
2660
2660
  value: j
2661
2661
  })
2662
2662
  ]
2663
2663
  }),
2664
- /* @__PURE__ */ I(_, { tiles: [
2664
+ /* @__PURE__ */ I(w, { tiles: [
2665
2665
  {
2666
2666
  key: "transcripts",
2667
2667
  label: "transcripts",
2668
- value: g.transcripts,
2669
- sub: `across ${g.projects}`
2668
+ value: h.transcripts,
2669
+ sub: `across ${h.projects}`
2670
2670
  },
2671
2671
  {
2672
2672
  key: "tokens",
2673
2673
  label: "tokens",
2674
- value: g.tokens,
2675
- sub: g.turns
2674
+ value: h.tokens,
2675
+ sub: h.turns
2676
2676
  },
2677
2677
  {
2678
2678
  key: "contributors",
2679
2679
  label: "contributors",
2680
- value: g.contributors,
2681
- sub: g.hours
2680
+ value: h.contributors,
2681
+ sub: h.hours
2682
2682
  }
2683
2683
  ] }),
2684
2684
  /* @__PURE__ */ L("div", {
@@ -2693,7 +2693,7 @@ function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2693
2693
  id: "cmg-share-h",
2694
2694
  className: "cmg-sub",
2695
2695
  children: "provider share"
2696
- }), /* @__PURE__ */ I(E, {
2696
+ }), /* @__PURE__ */ I(s, {
2697
2697
  label: "provider share",
2698
2698
  total: 100,
2699
2699
  data: i.map((e) => ({
@@ -2702,15 +2702,15 @@ function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2702
2702
  }))
2703
2703
  })]
2704
2704
  }) : null,
2705
- a.length > 0 ? /* @__PURE__ */ I("div", {
2705
+ o.length > 0 ? /* @__PURE__ */ I("div", {
2706
2706
  style: {
2707
2707
  overflow: "auto",
2708
2708
  maxWidth: "100%"
2709
2709
  },
2710
- children: /* @__PURE__ */ I(o, {
2710
+ children: /* @__PURE__ */ I(b, {
2711
2711
  title: "pending review",
2712
2712
  emptyLabel: "no shares awaiting review.",
2713
- items: a.map((e) => ({
2713
+ items: o.map((e) => ({
2714
2714
  id: e.id,
2715
2715
  kind: "share",
2716
2716
  who: e.title || "untitled transcript",
@@ -2718,7 +2718,7 @@ function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2718
2718
  }))
2719
2719
  })
2720
2720
  }) : null,
2721
- c.length > 0 ? /* @__PURE__ */ L("section", {
2721
+ l.length > 0 ? /* @__PURE__ */ L("section", {
2722
2722
  className: "card cmg-redact-sec",
2723
2723
  "aria-labelledby": "cmg-redact-h",
2724
2724
  children: [/* @__PURE__ */ L("div", {
@@ -2726,7 +2726,7 @@ function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2726
2726
  children: [/* @__PURE__ */ L("h3", {
2727
2727
  id: "cmg-redact-h",
2728
2728
  className: "cmg-sub",
2729
- children: [/* @__PURE__ */ I(he, {
2729
+ children: [/* @__PURE__ */ I(me, {
2730
2730
  size: 15,
2731
2731
  "aria-hidden": "true"
2732
2732
  }), " redaction review"]
@@ -2742,14 +2742,14 @@ function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2742
2742
  })]
2743
2743
  }), D ? /* @__PURE__ */ I("div", {
2744
2744
  className: "cmg-redact-list",
2745
- children: c.map((e) => /* @__PURE__ */ L("article", {
2745
+ children: l.map((e) => /* @__PURE__ */ L("article", {
2746
2746
  className: "cmg-redact",
2747
2747
  children: [
2748
2748
  /* @__PURE__ */ L("div", {
2749
2749
  className: "cmg-redact-head",
2750
2750
  children: [/* @__PURE__ */ I("span", {
2751
2751
  className: "cmg-redact-badges",
2752
- children: /* @__PURE__ */ I(p, { children: String(e.catLabel || e.cat || "item").toLowerCase() })
2752
+ children: /* @__PURE__ */ I(a, { children: String(e.catLabel || e.cat || "item").toLowerCase() })
2753
2753
  }), /* @__PURE__ */ I("span", {
2754
2754
  className: "cmg-redact-file mono",
2755
2755
  children: e.file || "unknown"
@@ -2761,7 +2761,7 @@ function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2761
2761
  }),
2762
2762
  /* @__PURE__ */ L("div", {
2763
2763
  className: "callout cmg-redact-note",
2764
- children: [/* @__PURE__ */ I(he, {
2764
+ children: [/* @__PURE__ */ I(me, {
2765
2765
  size: 16,
2766
2766
  "aria-hidden": "true"
2767
2767
  }), /* @__PURE__ */ I("div", { children: e.tip || "review this redaction item before exposing it." })]
@@ -2786,10 +2786,10 @@ function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2786
2786
  onClick: () => {
2787
2787
  A((e) => {
2788
2788
  let t = !e;
2789
- return ee?.(t), t;
2789
+ return C?.(t), t;
2790
2790
  });
2791
2791
  },
2792
- children: [I(k ? G : B, {
2792
+ children: [I(k ? K : B, {
2793
2793
  size: 14,
2794
2794
  "aria-hidden": "true"
2795
2795
  }), k ? "gated view" : "open view"]
@@ -2799,7 +2799,7 @@ function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2799
2799
  children: [
2800
2800
  /* @__PURE__ */ I("span", {
2801
2801
  className: "ring",
2802
- children: /* @__PURE__ */ I(G, {
2802
+ children: /* @__PURE__ */ I(K, {
2803
2803
  size: 20,
2804
2804
  "aria-hidden": "true"
2805
2805
  })
@@ -2809,14 +2809,14 @@ function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2809
2809
  N ? /* @__PURE__ */ L("button", {
2810
2810
  type: "button",
2811
2811
  className: "btn btn-sm btn-primary",
2812
- onClick: () => y?.(),
2812
+ onClick: () => _?.(),
2813
2813
  children: [/* @__PURE__ */ I(ve, {
2814
2814
  size: 14,
2815
2815
  "aria-hidden": "true"
2816
2816
  }), " join as contributor"]
2817
2817
  }) : null
2818
2818
  ]
2819
- }) : l.length > 0 ? /* @__PURE__ */ L("table", {
2819
+ }) : d.length > 0 ? /* @__PURE__ */ L("table", {
2820
2820
  className: "dtable cmg-dtable",
2821
2821
  children: [/* @__PURE__ */ I("thead", { children: /* @__PURE__ */ L("tr", { children: [
2822
2822
  /* @__PURE__ */ I("th", {
@@ -2845,7 +2845,7 @@ function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2845
2845
  scope: "col",
2846
2846
  children: "date"
2847
2847
  })
2848
- ] }) }), /* @__PURE__ */ I("tbody", { children: l.map((e) => /* @__PURE__ */ L("tr", { children: [
2848
+ ] }) }), /* @__PURE__ */ I("tbody", { children: d.map((e) => /* @__PURE__ */ L("tr", { children: [
2849
2849
  /* @__PURE__ */ I("td", { children: e.title || "untitled transcript" }),
2850
2850
  /* @__PURE__ */ I("td", {
2851
2851
  className: "mono",
@@ -2888,7 +2888,7 @@ function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2888
2888
  })]
2889
2889
  })
2890
2890
  ]
2891
- }), s.length > 0 ? /* @__PURE__ */ I("aside", {
2891
+ }), c.length > 0 ? /* @__PURE__ */ I("aside", {
2892
2892
  className: "sidebar cmg-d-rail",
2893
2893
  "aria-label": "collective sidebar",
2894
2894
  children: /* @__PURE__ */ I("div", {
@@ -2896,10 +2896,10 @@ function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2896
2896
  overflow: "auto",
2897
2897
  maxWidth: "100%"
2898
2898
  },
2899
- children: /* @__PURE__ */ I(m, {
2899
+ children: /* @__PURE__ */ I(S, {
2900
2900
  title: "members",
2901
2901
  roles: ["member", "contributor"],
2902
- members: s.map((e) => ({
2902
+ members: c.map((e) => ({
2903
2903
  handle: e.handle || e.githubUsername || "@unknown",
2904
2904
  name: e.name || e.displayName || e.githubUsername || "unknown",
2905
2905
  role: e.role || "member",