@peasant-labs/fairtrade 0.0.27 → 0.0.28

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,4 +1,4 @@
1
- import { Gn as e, Mn as t, St as n, Un as r, Wn as i, Xt as a, Yt as o, Zt as s, _t as c, at as l, bt as u, ht as d, lr as f, ot as p, qn as m, qt as h, rt as g, tt as _, vt as v, yt as y, zn as b } from "./ui-Y-iKXft1.js";
1
+ import { $n as e, Dt as t, Et as n, Jn as r, Ot as i, Qn as a, Vn as o, an as s, er as c, ft as l, ht as u, in as d, jt as f, kt as p, mt as m, nn as h, nr as g, on as _, ut as v, vr as y, wt as b } from "./ui-Cb4c1qQR.js";
2
2
  import { ct as x, ft as S, lt as C, mt as w, wt as T } from "./GraphLegend-kO2WP4yM.js";
3
3
  import { useEffect as E, useId as D, useMemo as O, useRef as k, useState as A } from "react";
4
4
  import { Fragment as j, jsx as M, jsxs as N } from "react/jsx-runtime";
@@ -215,7 +215,7 @@ function Te({ transcript: e, href: t, onOpen: n }) {
215
215
  className: "mono",
216
216
  children: e.modelName || e.modelProvider
217
217
  })]
218
- }), /* @__PURE__ */ M(_, { visibility: e.visibility })]
218
+ }), /* @__PURE__ */ M(v, { visibility: e.visibility })]
219
219
  }),
220
220
  /* @__PURE__ */ M("h3", {
221
221
  className: "cex-title",
@@ -281,7 +281,7 @@ function Ee({ transcript: e, href: t, onOpen: n }) {
281
281
  className: "cex-trow-date mono tnum",
282
282
  children: _e(e.sessionStart || e.sessionEnd || "")
283
283
  }),
284
- /* @__PURE__ */ M(_, { visibility: e.visibility })
284
+ /* @__PURE__ */ M(v, { visibility: e.visibility })
285
285
  ] });
286
286
  return t ? /* @__PURE__ */ M("a", {
287
287
  href: t,
@@ -331,14 +331,14 @@ function De({ collective: e, href: t, onOpen: n }) {
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: d }) {
335
- let f = Ce(t), p = f.transcripts.transcripts, [m, h] = A(""), [g, v] = A(""), [y, b] = A("recent"), [x, S] = A("all"), [C, T] = A(() => /* @__PURE__ */ new Set()), [D, j] = A("grid"), [P, F] = A(() => we(f.transcripts.page)), [I, L] = A(null), [R, B] = A("browse"), V = k(!0), H = k(null);
334
+ function Oe({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript: r, onOpenProfile: i, onOpenCollective: a, transcriptHref: o, profileHref: s, collectiveHref: l }) {
335
+ let u = Ce(e), d = u.transcripts.transcripts, [m, h] = A(""), [g, _] = A(""), [y, b] = A("recent"), [x, S] = A("all"), [C, T] = A(() => /* @__PURE__ */ new Set()), [D, j] = A("grid"), [P, F] = A(() => we(u.transcripts.page)), [I, L] = A(null), [R, B] = A("browse"), V = k(!0), H = k(null);
336
336
  E(() => {
337
337
  if (V.current) {
338
- V.current = !1, v(m);
338
+ V.current = !1, _(m);
339
339
  return;
340
340
  }
341
- let e = setTimeout(() => v(m), 250);
341
+ let e = setTimeout(() => _(m), 250);
342
342
  return () => clearTimeout(e);
343
343
  }, [V, m]), E(() => {
344
344
  let e = JSON.stringify([
@@ -358,7 +358,7 @@ function Oe({ data: t, className: r = "", onFiltersChange: i, onOpenTranscript:
358
358
  x,
359
359
  C
360
360
  ]), E(() => {
361
- i?.({
361
+ n?.({
362
362
  query: g,
363
363
  provider: x,
364
364
  topics: [...C],
@@ -367,47 +367,47 @@ function Oe({ data: t, className: r = "", onFiltersChange: i, onOpenTranscript:
367
367
  });
368
368
  }, [
369
369
  y,
370
- i,
370
+ n,
371
371
  P,
372
372
  x,
373
373
  g,
374
374
  C
375
375
  ]);
376
- let U = p.find((e) => e.id === I) ?? p[0] ?? null, G = U?.owner ?? null, K = G ? p.filter((e) => e.owner.githubUsername === G.githubUsername) : [], ee = O(() => {
376
+ let U = d.find((e) => e.id === I) ?? d[0] ?? null, G = U?.owner ?? null, K = G ? d.filter((e) => e.owner.githubUsername === G.githubUsername) : [], ee = O(() => {
377
377
  let e = /* @__PURE__ */ new Map();
378
- for (let t of p) e.set(t.modelProvider, (e.get(t.modelProvider) || 0) + 1);
378
+ for (let t of d) e.set(t.modelProvider, (e.get(t.modelProvider) || 0) + 1);
379
379
  return [{
380
380
  slug: "all",
381
- count: p.length
381
+ count: d.length
382
382
  }, ...[...e.entries()].map(([e, t]) => ({
383
383
  slug: e,
384
384
  count: t
385
385
  }))];
386
- }, [p]);
386
+ }, [d]);
387
387
  E(() => {
388
- I && !p.some((e) => e.id === I) && (L(null), B("browse"));
389
- }, [I, p]);
388
+ I && !d.some((e) => e.id === I) && (L(null), B("browse"));
389
+ }, [I, d]);
390
390
  let q = O(() => {
391
391
  let e = ye(g);
392
- return e ? f.collectives.filter((t) => [
392
+ return e ? u.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
- }, [f.collectives, g]), J = p, re = C.size, ie = f.transcripts.total ?? p.length, ae = P, Y = f.transcripts.limit || p.length || 1, X = (e) => {
398
- if (a) {
399
- a(e);
397
+ }, [u.collectives, g]), J = d, re = C.size, ie = u.transcripts.total ?? d.length, ae = P, Y = u.transcripts.limit || d.length || 1, X = (e) => {
398
+ if (r) {
399
+ r(e);
400
400
  return;
401
401
  }
402
402
  L(e.id), B("detail");
403
403
  }, Z = () => {
404
- if (o && G) {
405
- o(G);
404
+ if (i && G) {
405
+ i(G);
406
406
  return;
407
407
  }
408
- U ? (L(U.id), B("profile")) : p[0] && (L(p[0].id), B("profile"));
408
+ U ? (L(U.id), B("profile")) : d[0] && (L(d[0].id), B("profile"));
409
409
  }, ce = () => {
410
- h(""), v(""), b("recent"), S("all"), T(/* @__PURE__ */ new Set()), F(1);
410
+ h(""), _(""), b("recent"), S("all"), T(/* @__PURE__ */ new Set()), F(1);
411
411
  }, Q = O(() => G ? [...xe(K, (e) => e.projectName || "untitled project").entries()].map(([e, t]) => ({
412
412
  project: e,
413
413
  items: t
@@ -420,7 +420,7 @@ function Oe({ data: t, className: r = "", onFiltersChange: i, onOpenTranscript:
420
420
  };
421
421
  }, [K, Q.length]);
422
422
  return R === "detail" && U ? /* @__PURE__ */ N("div", {
423
- className: `cex-root cex-detail ${r}`.trim(),
423
+ className: `cex-root cex-detail ${t}`.trim(),
424
424
  children: [/* @__PURE__ */ N("div", {
425
425
  className: "cex-detail-back",
426
426
  children: [/* @__PURE__ */ N("button", {
@@ -473,7 +473,7 @@ function Oe({ data: t, className: r = "", onFiltersChange: i, onOpenTranscript:
473
473
  children: [/* @__PURE__ */ M("h2", {
474
474
  className: "win-title cex-vtitle",
475
475
  children: be(U.title || "untitled transcript")
476
- }), /* @__PURE__ */ M(_, { visibility: U.visibility })]
476
+ }), /* @__PURE__ */ M(v, { visibility: U.visibility })]
477
477
  }),
478
478
  /* @__PURE__ */ N("p", {
479
479
  className: "cex-vdesc",
@@ -583,7 +583,7 @@ function Oe({ data: t, className: r = "", onFiltersChange: i, onOpenTranscript:
583
583
  })]
584
584
  })]
585
585
  }),
586
- /* @__PURE__ */ M(u, { tiles: [
586
+ /* @__PURE__ */ M(p, { tiles: [
587
587
  {
588
588
  key: "transcripts",
589
589
  label: "transcripts",
@@ -605,7 +605,7 @@ function Oe({ data: t, className: r = "", onFiltersChange: i, onOpenTranscript:
605
605
  })]
606
606
  })]
607
607
  }) : R === "profile" && G ? /* @__PURE__ */ N("div", {
608
- className: `cex-root cex-profile ${r}`.trim(),
608
+ className: `cex-root cex-profile ${t}`.trim(),
609
609
  children: [
610
610
  /* @__PURE__ */ N("div", {
611
611
  className: "cex-detail-back",
@@ -659,7 +659,7 @@ function Oe({ data: t, className: r = "", onFiltersChange: i, onOpenTranscript:
659
659
  })]
660
660
  })]
661
661
  }),
662
- /* @__PURE__ */ M(u, { tiles: [
662
+ /* @__PURE__ */ M(p, { tiles: [
663
663
  {
664
664
  key: "transcripts",
665
665
  label: "transcripts",
@@ -719,7 +719,7 @@ function Oe({ data: t, className: r = "", onFiltersChange: i, onOpenTranscript:
719
719
  className: "cex-lib-rows",
720
720
  children: t.map((e) => /* @__PURE__ */ M(Ee, {
721
721
  transcript: e,
722
- href: c?.(e),
722
+ href: o?.(e),
723
723
  onOpen: X
724
724
  }, e.id))
725
725
  })]
@@ -728,7 +728,7 @@ function Oe({ data: t, className: r = "", onFiltersChange: i, onOpenTranscript:
728
728
  })
729
729
  ]
730
730
  }) : /* @__PURE__ */ N("div", {
731
- className: `cex-root ${r}`.trim(),
731
+ className: `cex-root ${t}`.trim(),
732
732
  children: [/* @__PURE__ */ N("header", {
733
733
  className: "cex-explore-head",
734
734
  children: [
@@ -763,13 +763,13 @@ function Oe({ data: t, className: r = "", onFiltersChange: i, onOpenTranscript:
763
763
  ]
764
764
  }), /* @__PURE__ */ N("div", {
765
765
  className: "cex-explore-body",
766
- children: [/* @__PURE__ */ M(n, {
766
+ children: [/* @__PURE__ */ M(f, {
767
767
  order: y,
768
768
  onOrder: (e) => b(e),
769
769
  providers: ee,
770
770
  activeProviders: x === "all" ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([x]),
771
771
  onProvider: (e) => S((t) => t === e ? "all" : e),
772
- topics: f.popularTags.map((e) => ({
772
+ topics: u.popularTags.map((e) => ({
773
773
  tag: e.name,
774
774
  count: e.usageCount
775
775
  })),
@@ -804,8 +804,8 @@ function Oe({ data: t, className: r = "", onFiltersChange: i, onOpenTranscript:
804
804
  className: "cex-coll-grid",
805
805
  children: q.map((e) => /* @__PURE__ */ M(De, {
806
806
  collective: e,
807
- href: d?.(e),
808
- onOpen: s
807
+ href: l?.(e),
808
+ onOpen: a
809
809
  }, e.id))
810
810
  })]
811
811
  }),
@@ -888,18 +888,18 @@ function Oe({ data: t, className: r = "", onFiltersChange: i, onOpenTranscript:
888
888
  className: "cex-grid",
889
889
  children: J.map((e) => /* @__PURE__ */ M(Te, {
890
890
  transcript: e,
891
- href: c?.(e),
891
+ href: o?.(e),
892
892
  onOpen: X
893
893
  }, e.id))
894
894
  }) : /* @__PURE__ */ M("div", {
895
895
  className: "cex-list",
896
896
  children: J.map((e) => /* @__PURE__ */ M(Ee, {
897
897
  transcript: e,
898
- href: c?.(e),
898
+ href: o?.(e),
899
899
  onOpen: X
900
900
  }, e.id))
901
901
  }),
902
- ie > Y && /* @__PURE__ */ M(e, {
902
+ ie > Y && /* @__PURE__ */ M(c, {
903
903
  page: ae,
904
904
  totalItems: ie,
905
905
  pageSize: Y,
@@ -1342,30 +1342,30 @@ function Re() {
1342
1342
  project: t.name
1343
1343
  })), e;
1344
1344
  }, []);
1345
- function c(e) {
1345
+ function s(e) {
1346
1346
  t((t) => {
1347
1347
  let n = new Set(t);
1348
1348
  return n.has(e) ? n.delete(e) : n.add(e), n;
1349
1349
  });
1350
1350
  }
1351
- function l(t) {
1351
+ function c(t) {
1352
1352
  let n = t.transcripts.map((e) => e.id), r = n.filter((t) => e.has(t)).length;
1353
1353
  return r === 0 ? "none" : r === n.length ? "all" : "some";
1354
1354
  }
1355
- function u(e) {
1356
- let n = l(e);
1355
+ function l(e) {
1356
+ let n = c(e);
1357
1357
  t((t) => {
1358
1358
  let r = new Set(t);
1359
1359
  return e.transcripts.forEach((e) => n === "all" ? r.delete(e.id) : r.add(e.id)), r;
1360
1360
  });
1361
1361
  }
1362
- function d(e) {
1362
+ function u(e) {
1363
1363
  r((t) => {
1364
1364
  let n = new Set(t);
1365
1365
  return n.has(e) ? n.delete(e) : n.add(e), n;
1366
1366
  });
1367
1367
  }
1368
- let f = [...e].map((e) => o[e]).filter(Boolean), p = f.filter((e) => e.visibility === "private").length;
1368
+ let d = [...e].map((e) => o[e]).filter(Boolean), f = d.filter((e) => e.visibility === "private").length;
1369
1369
  return /* @__PURE__ */ N("div", {
1370
1370
  className: "cmg-root",
1371
1371
  children: [/* @__PURE__ */ N("div", {
@@ -1405,7 +1405,7 @@ function Re() {
1405
1405
  className: "card cmg-contribute",
1406
1406
  "aria-label": "your transcripts by project",
1407
1407
  children: Ie.map((t) => {
1408
- let r = l(t), i = n.has(t.id);
1408
+ let r = c(t), i = n.has(t.id);
1409
1409
  return /* @__PURE__ */ N("div", {
1410
1410
  className: "cmg-proj",
1411
1411
  children: [/* @__PURE__ */ N("div", {
@@ -1417,14 +1417,14 @@ function Re() {
1417
1417
  className: "check-box",
1418
1418
  checked: r === "all",
1419
1419
  ref: (e) => e && (e.indeterminate = r === "some"),
1420
- onChange: () => u(t),
1420
+ onChange: () => l(t),
1421
1421
  "aria-label": `select all in ${t.name}`
1422
1422
  })
1423
1423
  }), /* @__PURE__ */ N("button", {
1424
1424
  type: "button",
1425
1425
  className: "cmg-proj-toggle",
1426
1426
  "aria-expanded": i,
1427
- onClick: () => d(t.id),
1427
+ onClick: () => u(t.id),
1428
1428
  children: [
1429
1429
  M(i ? I : L, {
1430
1430
  size: 15,
@@ -1462,7 +1462,7 @@ function Re() {
1462
1462
  type: "checkbox",
1463
1463
  className: "check-box",
1464
1464
  checked: e.has(t.id),
1465
- onChange: () => c(t.id),
1465
+ onChange: () => s(t.id),
1466
1466
  "aria-label": `select ${t.title}`
1467
1467
  })
1468
1468
  }),
@@ -1504,13 +1504,13 @@ function Re() {
1504
1504
  children: e.size
1505
1505
  }),
1506
1506
  " selected",
1507
- p > 0 ? /* @__PURE__ */ N("span", {
1507
+ f > 0 ? /* @__PURE__ */ N("span", {
1508
1508
  className: "cmg-sel-warn",
1509
1509
  children: [
1510
1510
  ", ",
1511
1511
  /* @__PURE__ */ M("span", {
1512
1512
  className: "tnum",
1513
- children: p
1513
+ children: f
1514
1514
  }),
1515
1515
  " private"
1516
1516
  ]
@@ -1534,20 +1534,20 @@ function Re() {
1534
1534
  })]
1535
1535
  })
1536
1536
  ]
1537
- }), /* @__PURE__ */ M(s, {
1537
+ }), /* @__PURE__ */ M(_, {
1538
1538
  open: i,
1539
1539
  title: /* @__PURE__ */ N(j, { children: [
1540
1540
  "make ",
1541
- p > 1 ? "these" : "this",
1541
+ f > 1 ? "these" : "this",
1542
1542
  " visible?"
1543
1543
  ] }),
1544
- intro: p > 0 ? /* @__PURE__ */ N("p", { children: [
1544
+ intro: f > 0 ? /* @__PURE__ */ N("p", { children: [
1545
1545
  /* @__PURE__ */ M("span", {
1546
1546
  className: "tnum",
1547
- children: p
1547
+ children: f
1548
1548
  }),
1549
1549
  " private transcript",
1550
- p === 1 ? "" : "s",
1550
+ f === 1 ? "" : "s",
1551
1551
  " will become visible to members of ",
1552
1552
  /* @__PURE__ */ M("b", { children: Le.name }),
1553
1553
  ". visibility will change from private to shared."
@@ -1561,9 +1561,9 @@ function Re() {
1561
1561
  axes: [{
1562
1562
  icon: H,
1563
1563
  key: "visibility",
1564
- value: p > 0 ? "private → shared" : "unchanged",
1565
- scope: p > 0 ? `${p} transcript${p === 1 ? "" : "s"} newly exposed` : "no visibility change",
1566
- tone: p > 0 ? "reveal" : "open"
1564
+ value: f > 0 ? "private → shared" : "unchanged",
1565
+ scope: f > 0 ? `${f} transcript${f === 1 ? "" : "s"} newly exposed` : "no visibility change",
1566
+ tone: f > 0 ? "reveal" : "open"
1567
1567
  }, {
1568
1568
  icon: Q,
1569
1569
  key: "shared with",
@@ -1571,14 +1571,14 @@ function Re() {
1571
1571
  scope: `${Le.members} members can see it`,
1572
1572
  tone: "open"
1573
1573
  }],
1574
- requireConsent: p > 0,
1575
- confirmLabel: p > 0 ? "contribute & make visible" : "contribute",
1574
+ requireConsent: f > 0,
1575
+ confirmLabel: f > 0 ? "contribute & make visible" : "contribute",
1576
1576
  confirmIcon: P,
1577
1577
  onCancel: () => a(!1),
1578
1578
  onConfirm: () => a(!1),
1579
1579
  children: /* @__PURE__ */ N("ul", {
1580
1580
  className: "cmg-confirm-list",
1581
- children: [f.slice(0, 5).map((e) => /* @__PURE__ */ N("li", {
1581
+ children: [d.slice(0, 5).map((e) => /* @__PURE__ */ N("li", {
1582
1582
  className: "cmg-confirm-tx",
1583
1583
  children: [
1584
1584
  /* @__PURE__ */ M(ProviderMark, { id: e.provider }),
@@ -1588,11 +1588,11 @@ function Re() {
1588
1588
  }),
1589
1589
  /* @__PURE__ */ M(Pe, { v: e.visibility })
1590
1590
  ]
1591
- }, e.id)), f.length > 5 ? /* @__PURE__ */ N("li", {
1591
+ }, e.id)), d.length > 5 ? /* @__PURE__ */ N("li", {
1592
1592
  className: "cmg-confirm-more mono",
1593
1593
  children: [
1594
1594
  "…and ",
1595
- f.length - 5,
1595
+ d.length - 5,
1596
1596
  " more"
1597
1597
  ]
1598
1598
  }) : null]
@@ -1655,8 +1655,8 @@ function We(e, t, n) {
1655
1655
  children: e
1656
1656
  }, e));
1657
1657
  }
1658
- function Ge({ data: e = {}, actions: n = {} } = {}) {
1659
- let { collectives: r = [], linkedOrgs: i = [], title: o = "collectives", deck: s = "a collective is a group that can read the transcripts its members publish to it. link your repositories so pull requests find them.", crumb: c, caption: l = "collectives", createLabel: u = "new collective", createBusy: d = !1, whoCanPublish: p = ze, whoCanRead: h = Be } = e, { onCreateCollective: g, onOpenCollective: _, onSearchCollectives: v } = n, [y, b] = A(!1), [x, S] = A(""), [C, w] = A(""), [T, E] = A(p[0]?.value ?? ""), [O, k] = A(h[0]?.value ?? ""), [j, P] = A(""), [F, I] = A(""), L = D(), R = [
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: c, caption: l = "collectives", createLabel: u = "new collective", createBusy: d = !1, whoCanPublish: f = ze, whoCanRead: p = Be } = e, { onCreateCollective: m, onOpenCollective: h, onSearchCollectives: _ } = t, [v, b] = A(!1), [x, S] = A(""), [C, w] = A(""), [T, E] = A(f[0]?.value ?? ""), [O, k] = A(p[0]?.value ?? ""), [j, P] = A(""), [F, I] = A(""), L = D(), R = [
1660
1660
  {
1661
1661
  key: "name",
1662
1662
  label: "name",
@@ -1665,7 +1665,7 @@ function Ge({ data: e = {}, actions: n = {} } = {}) {
1665
1665
  children: [/* @__PURE__ */ M("button", {
1666
1666
  type: "button",
1667
1667
  className: "cmg-table-link",
1668
- onClick: () => _?.(t.id),
1668
+ onClick: () => h?.(t.id),
1669
1669
  children: t.name
1670
1670
  }), t.desc ? /* @__PURE__ */ M("span", {
1671
1671
  className: "cmg-cell-desc",
@@ -1695,7 +1695,7 @@ function Ge({ data: e = {}, actions: n = {} } = {}) {
1695
1695
  align: "right",
1696
1696
  render: (e) => typeof e == "number" ? e.toLocaleString("en-US") : e
1697
1697
  },
1698
- ...r.some((e) => e.org !== void 0) ? [{
1698
+ ...n.some((e) => e.org !== void 0) ? [{
1699
1699
  key: "org",
1700
1700
  label: "github org",
1701
1701
  render: (e, t) => t.org ? /* @__PURE__ */ N("span", {
@@ -1717,7 +1717,7 @@ function Ge({ data: e = {}, actions: n = {} } = {}) {
1717
1717
  children: [
1718
1718
  c ? /* @__PURE__ */ M("div", {
1719
1719
  className: "cmg-crumb",
1720
- children: /* @__PURE__ */ M(m, { items: [{ label: c }] })
1720
+ children: /* @__PURE__ */ M(g, { items: [{ label: c }] })
1721
1721
  }) : null,
1722
1722
  /* @__PURE__ */ N("header", {
1723
1723
  className: "iu-page-head",
@@ -1725,11 +1725,11 @@ function Ge({ data: e = {}, actions: n = {} } = {}) {
1725
1725
  className: "iu-page-titlerow",
1726
1726
  children: [/* @__PURE__ */ M("h2", {
1727
1727
  className: "iu-page-title",
1728
- children: o
1728
+ children: i
1729
1729
  }), /* @__PURE__ */ N("button", {
1730
1730
  type: "button",
1731
- className: "btn btn-sm " + (y ? "btn-secondary" : "btn-primary"),
1732
- "aria-expanded": y,
1731
+ className: "btn btn-sm " + (v ? "btn-secondary" : "btn-primary"),
1732
+ "aria-expanded": v,
1733
1733
  onClick: () => b((e) => !e),
1734
1734
  children: [
1735
1735
  /* @__PURE__ */ M(ie, {
@@ -1737,15 +1737,15 @@ function Ge({ data: e = {}, actions: n = {} } = {}) {
1737
1737
  "aria-hidden": "true"
1738
1738
  }),
1739
1739
  " ",
1740
- y ? "close" : u
1740
+ v ? "close" : u
1741
1741
  ]
1742
1742
  })]
1743
- }), s ? /* @__PURE__ */ M("p", {
1743
+ }), a ? /* @__PURE__ */ M("p", {
1744
1744
  className: "iu-page-sub",
1745
- children: s
1745
+ children: a
1746
1746
  }) : null]
1747
1747
  }),
1748
- y && /* @__PURE__ */ N("section", {
1748
+ v && /* @__PURE__ */ N("section", {
1749
1749
  className: "cmg-form card",
1750
1750
  "aria-labelledby": `${L}-form`,
1751
1751
  children: [
@@ -1783,13 +1783,13 @@ function Ge({ data: e = {}, actions: n = {} } = {}) {
1783
1783
  }),
1784
1784
  /* @__PURE__ */ M("div", {
1785
1785
  className: "cmg-field",
1786
- children: /* @__PURE__ */ M(a, {
1786
+ children: /* @__PURE__ */ M(s, {
1787
1787
  variant: "select",
1788
1788
  label: "who can publish",
1789
1789
  name: "who-can-publish",
1790
1790
  value: T,
1791
1791
  onChange: E,
1792
- options: p.map((e) => ({
1792
+ options: f.map((e) => ({
1793
1793
  ...e,
1794
1794
  rationale: e.help
1795
1795
  }))
@@ -1797,13 +1797,13 @@ function Ge({ data: e = {}, actions: n = {} } = {}) {
1797
1797
  }),
1798
1798
  /* @__PURE__ */ M("div", {
1799
1799
  className: "cmg-field",
1800
- children: /* @__PURE__ */ M(a, {
1800
+ children: /* @__PURE__ */ M(s, {
1801
1801
  variant: "select",
1802
1802
  label: "who can read",
1803
1803
  name: "who-can-read",
1804
1804
  value: O,
1805
1805
  onChange: k,
1806
- options: h
1806
+ options: p
1807
1807
  })
1808
1808
  }),
1809
1809
  /* @__PURE__ */ N("label", {
@@ -1820,7 +1820,7 @@ function Ge({ data: e = {}, actions: n = {} } = {}) {
1820
1820
  children: [/* @__PURE__ */ M("option", {
1821
1821
  value: "",
1822
1822
  children: "not linked"
1823
- }), i.map((e) => /* @__PURE__ */ M("option", {
1823
+ }), r.map((e) => /* @__PURE__ */ M("option", {
1824
1824
  value: e,
1825
1825
  children: e
1826
1826
  }, e))]
@@ -1836,7 +1836,7 @@ function Ge({ data: e = {}, actions: n = {} } = {}) {
1836
1836
  className: "btn btn-sm btn-primary",
1837
1837
  disabled: !x.trim() || d,
1838
1838
  "aria-describedby": L,
1839
- onClick: () => g?.({
1839
+ onClick: () => m?.({
1840
1840
  name: x,
1841
1841
  purpose: C,
1842
1842
  mode: T,
@@ -1847,24 +1847,24 @@ function Ge({ data: e = {}, actions: n = {} } = {}) {
1847
1847
  }), /* @__PURE__ */ M("span", {
1848
1848
  id: L,
1849
1849
  className: "cmg-form-hint mono",
1850
- children: p.find((e) => e.value === T)?.help
1850
+ children: f.find((e) => e.value === T)?.help
1851
1851
  })]
1852
1852
  })
1853
1853
  ]
1854
1854
  }),
1855
1855
  /* @__PURE__ */ N("div", {
1856
1856
  className: "cmg-section",
1857
- children: [/* @__PURE__ */ M(t, {
1858
- caption: `${l} ${r.length}`,
1857
+ children: [/* @__PURE__ */ M(o, {
1858
+ caption: `${l} ${n.length}`,
1859
1859
  columns: R,
1860
- rows: r,
1860
+ rows: n,
1861
1861
  rowKey: (e) => e.id
1862
- }), r.some((e) => e.mode === "curated") ? /* @__PURE__ */ M("p", {
1862
+ }), n.some((e) => e.mode === "curated") ? /* @__PURE__ */ M("p", {
1863
1863
  className: "cmg-note",
1864
1864
  children: "in a curated collective, each transcript you publish waits for the owner to approve it."
1865
1865
  }) : null]
1866
1866
  }),
1867
- v && /* @__PURE__ */ N("section", {
1867
+ _ && /* @__PURE__ */ N("section", {
1868
1868
  className: "cmg-section",
1869
1869
  "aria-labelledby": `${L}-find`,
1870
1870
  children: [
@@ -1881,9 +1881,9 @@ function Ge({ data: e = {}, actions: n = {} } = {}) {
1881
1881
  className: "cmg-find",
1882
1882
  role: "search",
1883
1883
  onSubmit: (e) => {
1884
- e.preventDefault(), v(F);
1884
+ e.preventDefault(), _(F);
1885
1885
  },
1886
- children: [/* @__PURE__ */ M(f, {
1886
+ children: [/* @__PURE__ */ M(y, {
1887
1887
  label: "collective or github org",
1888
1888
  type: "search",
1889
1889
  iconLeft: ae,
@@ -1921,8 +1921,8 @@ function qe(e = {}) {
1921
1921
  org: e.org === void 0 ? t : e.org
1922
1922
  };
1923
1923
  }
1924
- function Je({ data: e = {}, actions: n = {} } = {}) {
1925
- let { owners: r = [], linkedRepos: a = [], hrefFor: o } = e, s = qe(e.collective), { onSettings: l, onContribute: u, onReview: f, onOpenTranscript: p, onOpenPullRequest: h, onLinkRepos: _, onShowMore: v } = n, [y, b] = A(!1), x = D(), C = s.transcriptCount ?? s.transcripts.length, w = [
1924
+ function Je({ data: t = {}, actions: r = {} } = {}) {
1925
+ let { owners: i = [], linkedRepos: a = [], hrefFor: s } = t, c = qe(t.collective), { onSettings: u, onContribute: d, onReview: f, onOpenTranscript: p, onOpenPullRequest: m, onLinkRepos: h, onShowMore: _ } = r, [v, y] = A(!1), x = D(), C = c.transcriptCount ?? c.transcripts.length, w = [
1926
1926
  {
1927
1927
  key: "title",
1928
1928
  label: "title",
@@ -1936,7 +1936,7 @@ function Je({ data: e = {}, actions: n = {} } = {}) {
1936
1936
  className: "iu-session-text",
1937
1937
  children: [/* @__PURE__ */ M(Ue, {
1938
1938
  className: "iu-session-title",
1939
- href: o?.("transcript", t.id),
1939
+ href: s?.("transcript", t.id),
1940
1940
  onOpen: p ? () => p(t.id) : void 0,
1941
1941
  children: t.title
1942
1942
  }), /* @__PURE__ */ N("span", {
@@ -1966,8 +1966,8 @@ function Je({ data: e = {}, actions: n = {} } = {}) {
1966
1966
  label: "pull requests",
1967
1967
  render: (e, t) => t.pullRequests?.length ? /* @__PURE__ */ N("span", {
1968
1968
  className: "cmg-prs",
1969
- children: [/* @__PURE__ */ M(d, {
1970
- items: We(t.pullRequests, h, o),
1969
+ children: [/* @__PURE__ */ M(b, {
1970
+ items: We(t.pullRequests, m, s),
1971
1971
  label: "pull requests",
1972
1972
  noun: ["pull request", "pull requests"]
1973
1973
  }), t.repo && /* @__PURE__ */ M("span", {
@@ -1987,17 +1987,17 @@ function Je({ data: e = {}, actions: n = {} } = {}) {
1987
1987
  {
1988
1988
  key: "read",
1989
1989
  title: "who can read",
1990
- text: s.whoCanRead
1990
+ text: c.whoCanRead
1991
1991
  },
1992
1992
  {
1993
1993
  key: "publish",
1994
1994
  title: "who can publish",
1995
- text: s.whoCanPublish
1995
+ text: c.whoCanPublish
1996
1996
  },
1997
1997
  {
1998
1998
  key: "role",
1999
1999
  title: "your role",
2000
- text: s.yourRole
2000
+ text: c.yourRole
2001
2001
  }
2002
2002
  ].filter((e) => e.text);
2003
2003
  return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ N("div", {
@@ -2005,10 +2005,10 @@ function Je({ data: e = {}, actions: n = {} } = {}) {
2005
2005
  children: [
2006
2006
  /* @__PURE__ */ M("div", {
2007
2007
  className: "cmg-crumb-content",
2008
- children: /* @__PURE__ */ M(m, { items: [{
2008
+ children: /* @__PURE__ */ M(g, { items: [{
2009
2009
  label: "collectives",
2010
- href: o?.("collectives")
2011
- }, { label: s.name }] })
2010
+ href: s?.("collectives")
2011
+ }, { label: c.name }] })
2012
2012
  }),
2013
2013
  /* @__PURE__ */ N("header", {
2014
2014
  className: "iu-page-head",
@@ -2017,26 +2017,26 @@ function Je({ data: e = {}, actions: n = {} } = {}) {
2017
2017
  children: [/* @__PURE__ */ M("h2", {
2018
2018
  className: "iu-page-title iu-page-title-content",
2019
2019
  id: x,
2020
- children: s.name
2020
+ children: c.name
2021
2021
  }), /* @__PURE__ */ N("span", {
2022
2022
  className: "cmg-actions",
2023
- children: [s.role === "owner" && l && /* @__PURE__ */ N("button", {
2023
+ children: [c.role === "owner" && u && /* @__PURE__ */ N("button", {
2024
2024
  type: "button",
2025
2025
  className: "btn btn-secondary btn-sm",
2026
- onClick: () => l(),
2026
+ onClick: () => u(),
2027
2027
  children: [/* @__PURE__ */ M(Y, {
2028
2028
  size: 14,
2029
2029
  "aria-hidden": "true"
2030
2030
  }), " settings"]
2031
- }), (u || f) && /* @__PURE__ */ M(i, {
2031
+ }), (d || f) && /* @__PURE__ */ M(e, {
2032
2032
  icon: re,
2033
2033
  ariaLabel: "more",
2034
2034
  size: "sm",
2035
2035
  align: "end",
2036
- items: [...u ? [{
2036
+ items: [...d ? [{
2037
2037
  label: "publish several transcripts",
2038
2038
  icon: Z,
2039
- onSelect: () => u()
2039
+ onSelect: () => d()
2040
2040
  }] : [], ...f ? [{
2041
2041
  label: "review transcripts",
2042
2042
  icon: R,
@@ -2044,9 +2044,9 @@ function Je({ data: e = {}, actions: n = {} } = {}) {
2044
2044
  }] : []]
2045
2045
  })]
2046
2046
  })]
2047
- }), s.purpose ? /* @__PURE__ */ M("p", {
2047
+ }), c.purpose ? /* @__PURE__ */ M("p", {
2048
2048
  className: "iu-page-sub",
2049
- children: s.purpose
2049
+ children: c.purpose
2050
2050
  }) : null]
2051
2051
  }),
2052
2052
  T.length > 0 && /* @__PURE__ */ M("ul", {
@@ -2063,30 +2063,30 @@ function Je({ data: e = {}, actions: n = {} } = {}) {
2063
2063
  })]
2064
2064
  }, e.key))
2065
2065
  }),
2066
- /* @__PURE__ */ M(c, {
2067
- items: s.stats,
2068
- label: `${s.name} in numbers`
2066
+ /* @__PURE__ */ M(n, {
2067
+ items: c.stats,
2068
+ label: `${c.name} in numbers`
2069
2069
  }),
2070
2070
  /* @__PURE__ */ N("div", {
2071
2071
  className: "cmg-home",
2072
2072
  children: [/* @__PURE__ */ N("div", {
2073
2073
  className: "cmg-home-main",
2074
- children: [/* @__PURE__ */ M(t, {
2074
+ children: [/* @__PURE__ */ M(o, {
2075
2075
  caption: `transcripts ${C}`,
2076
2076
  columns: w,
2077
- rows: s.transcripts,
2077
+ rows: c.transcripts,
2078
2078
  rowKey: (e) => e.id,
2079
2079
  rowCount: C,
2080
2080
  pagination: {
2081
2081
  pageIndex: 0,
2082
2082
  pageSize: Math.max(1, C)
2083
2083
  }
2084
- }), C > s.transcripts.length && v && /* @__PURE__ */ M("div", {
2084
+ }), C > c.transcripts.length && _ && /* @__PURE__ */ M("div", {
2085
2085
  className: "iu-page-foot",
2086
2086
  children: /* @__PURE__ */ M("button", {
2087
2087
  type: "button",
2088
2088
  className: "btn btn-secondary btn-sm",
2089
- onClick: () => v(),
2089
+ onClick: () => _(),
2090
2090
  children: "show more"
2091
2091
  })
2092
2092
  })]
@@ -2100,36 +2100,36 @@ function Je({ data: e = {}, actions: n = {} } = {}) {
2100
2100
  className: "cmg-rail-title",
2101
2101
  children: "github orgs"
2102
2102
  }),
2103
- s.org ? /* @__PURE__ */ N("p", {
2103
+ c.org ? /* @__PURE__ */ N("p", {
2104
2104
  className: "cmg-rail-line",
2105
2105
  children: [
2106
2106
  /* @__PURE__ */ M(G, { "aria-hidden": "true" }),
2107
2107
  " ",
2108
2108
  /* @__PURE__ */ M("span", {
2109
2109
  className: "mono",
2110
- children: s.org.login
2110
+ children: c.org.login
2111
2111
  }),
2112
- typeof s.org.total == "number" ? /* @__PURE__ */ N(j, { children: [
2112
+ typeof c.org.total == "number" ? /* @__PURE__ */ N(j, { children: [
2113
2113
  ", ",
2114
2114
  /* @__PURE__ */ M("span", {
2115
2115
  className: "tnum",
2116
- children: s.org.linked ?? 0
2116
+ children: c.org.linked ?? 0
2117
2117
  }),
2118
2118
  " of ",
2119
2119
  /* @__PURE__ */ M("span", {
2120
2120
  className: "tnum",
2121
- children: s.org.total
2121
+ children: c.org.total
2122
2122
  }),
2123
2123
  " repos linked"
2124
2124
  ] }) : null,
2125
- s.role === "owner" && _ && /* @__PURE__ */ M("button", {
2125
+ c.role === "owner" && h && /* @__PURE__ */ M("button", {
2126
2126
  type: "button",
2127
2127
  className: "btn btn-ghost btn-sm",
2128
- onClick: () => b(!0),
2128
+ onClick: () => y(!0),
2129
2129
  children: "manage"
2130
2130
  })
2131
2131
  ]
2132
- }) : s.org === null ? /* @__PURE__ */ M("p", {
2132
+ }) : c.org === null ? /* @__PURE__ */ M("p", {
2133
2133
  className: "cmg-rail-line cmg-none",
2134
2134
  children: "nothing linked"
2135
2135
  }) : null,
@@ -2143,33 +2143,33 @@ function Je({ data: e = {}, actions: n = {} } = {}) {
2143
2143
  children: [
2144
2144
  /* @__PURE__ */ N("h3", {
2145
2145
  className: "cmg-rail-title",
2146
- children: ["members", typeof s.memberCount == "number" ? /* @__PURE__ */ N(j, { children: [" ", /* @__PURE__ */ M("span", {
2146
+ children: ["members", typeof c.memberCount == "number" ? /* @__PURE__ */ N(j, { children: [" ", /* @__PURE__ */ M("span", {
2147
2147
  className: "tnum cmg-count",
2148
- children: s.memberCount
2148
+ children: c.memberCount
2149
2149
  })] }) : null]
2150
2150
  }),
2151
- s.memberBreakdown ? /* @__PURE__ */ M("p", {
2151
+ c.memberBreakdown ? /* @__PURE__ */ M("p", {
2152
2152
  className: "cmg-note",
2153
- children: s.memberBreakdown
2153
+ children: c.memberBreakdown
2154
2154
  }) : null,
2155
2155
  /* @__PURE__ */ M(Ke, {
2156
- members: s.members,
2157
- count: s.memberCount ?? s.members.length
2156
+ members: c.members,
2157
+ count: c.memberCount ?? c.members.length
2158
2158
  })
2159
2159
  ]
2160
2160
  })]
2161
2161
  })]
2162
2162
  })
2163
2163
  ]
2164
- }), _ && /* @__PURE__ */ M(g, {
2165
- open: y,
2166
- onClose: () => b(!1),
2167
- owners: r,
2164
+ }), h && /* @__PURE__ */ M(l, {
2165
+ open: v,
2166
+ onClose: () => y(!1),
2167
+ owners: i,
2168
2168
  initialSelected: a,
2169
- title: `link repositories from ${s.org?.login ?? "github"}`,
2170
- description: `pull requests in linked repos show the transcripts published to ${s.name}.`,
2169
+ title: `link repositories from ${c.org?.login ?? "github"}`,
2170
+ description: `pull requests in linked repos show the transcripts published to ${c.name}.`,
2171
2171
  onSave: (e) => {
2172
- _(e), b(!1);
2172
+ h(e), y(!1);
2173
2173
  }
2174
2174
  })] });
2175
2175
  }
@@ -2189,27 +2189,27 @@ function Xe(e, t) {
2189
2189
  }
2190
2190
  var Ze = (e, t) => t.some((t) => t.value === e) ? e : "";
2191
2191
  function Qe({ data: e = {}, actions: t = {} } = {}) {
2192
- let { owners: n = [], linkedRepos: r = [], showOnPullRequests: i = !1, whoCanPublish: a = ze, whoCanRead: o = Be, memberLeavesChoices: s = Ye, hrefFor: c } = e, u = qe(e.collective), d = (e) => (n) => t.onCommit ? t.onCommit(e, n) : Promise.resolve(), [h, _] = A(!1), [v, y] = A(""), x = !!(t.onTransferOwnership || t.onDelete), S = [
2192
+ let { owners: n = [], linkedRepos: i = [], showOnPullRequests: a = !1, whoCanPublish: o = ze, whoCanRead: s = Be, memberLeavesChoices: c = Ye, hrefFor: d } = e, f = qe(e.collective), p = (e) => (n) => t.onCommit ? t.onCommit(e, n) : Promise.resolve(), [h, _] = A(!1), [v, b] = A(""), x = !!(t.onTransferOwnership || t.onDelete), S = [
2193
2193
  "general",
2194
2194
  "access",
2195
2195
  "members",
2196
2196
  "github orgs",
2197
2197
  "pull requests",
2198
2198
  ...x ? ["danger zone"] : []
2199
- ], C = (e) => `cmg-settings-${e.replace(/ /g, "-")}`, w = (e) => e.filter((e) => e.help).map((e) => `${e.label}: ${e.help}`).join(" "), T = c?.("account");
2199
+ ], C = (e) => `cmg-settings-${e.replace(/ /g, "-")}`, w = (e) => e.filter((e) => e.help).map((e) => `${e.label}: ${e.help}`).join(" "), T = d?.("account");
2200
2200
  return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ N("div", {
2201
2201
  className: "iu-page cmg-settings",
2202
2202
  children: [
2203
2203
  /* @__PURE__ */ M("div", {
2204
2204
  className: "cmg-crumb-content",
2205
- children: /* @__PURE__ */ M(m, { items: [
2205
+ children: /* @__PURE__ */ M(g, { items: [
2206
2206
  {
2207
2207
  label: "collectives",
2208
- href: c?.("collectives")
2208
+ href: d?.("collectives")
2209
2209
  },
2210
2210
  {
2211
- label: u.name,
2212
- href: c?.("collective", u.id)
2211
+ label: f.name,
2212
+ href: d?.("collective", f.id)
2213
2213
  },
2214
2214
  { label: "settings" }
2215
2215
  ] })
@@ -2220,7 +2220,7 @@ function Qe({ data: e = {}, actions: t = {} } = {}) {
2220
2220
  className: "iu-page-title",
2221
2221
  children: [/* @__PURE__ */ M("span", {
2222
2222
  className: "iu-page-title-content",
2223
- children: u.name
2223
+ children: f.name
2224
2224
  }), ", settings"]
2225
2225
  }), /* @__PURE__ */ M("p", {
2226
2226
  className: "iu-page-sub",
@@ -2235,58 +2235,58 @@ function Qe({ data: e = {}, actions: t = {} } = {}) {
2235
2235
  children: e
2236
2236
  }, e))
2237
2237
  }),
2238
- /* @__PURE__ */ N(l, {
2238
+ /* @__PURE__ */ N(m, {
2239
2239
  label: "general",
2240
2240
  defaultOpen: !0,
2241
2241
  id: C("general"),
2242
- children: [/* @__PURE__ */ M(p, {
2242
+ children: [/* @__PURE__ */ M(u, {
2243
2243
  label: "name",
2244
2244
  control: "text",
2245
- value: u.name,
2246
- onCommit: d("name")
2247
- }), /* @__PURE__ */ M(p, {
2245
+ value: f.name,
2246
+ onCommit: p("name")
2247
+ }), /* @__PURE__ */ M(u, {
2248
2248
  label: "purpose",
2249
2249
  control: "text",
2250
- value: u.purpose ?? "",
2251
- onCommit: d("purpose")
2250
+ value: f.purpose ?? "",
2251
+ onCommit: p("purpose")
2252
2252
  })]
2253
2253
  }),
2254
- /* @__PURE__ */ N(l, {
2254
+ /* @__PURE__ */ N(m, {
2255
2255
  label: "access",
2256
2256
  defaultOpen: !0,
2257
2257
  id: C("access"),
2258
- children: [/* @__PURE__ */ M(p, {
2258
+ children: [/* @__PURE__ */ M(u, {
2259
2259
  label: "who can publish",
2260
- help: w(a),
2260
+ help: w(o),
2261
2261
  control: "select",
2262
- value: Ze(u.mode, a),
2263
- options: Xe(u.mode, a),
2264
- onCommit: d("mode")
2265
- }), /* @__PURE__ */ M(p, {
2262
+ value: Ze(f.mode, o),
2263
+ options: Xe(f.mode, o),
2264
+ onCommit: p("mode")
2265
+ }), /* @__PURE__ */ M(u, {
2266
2266
  label: "who can read",
2267
2267
  help: "members read and publish. contributors publish, and read only if who can read allows it.",
2268
2268
  control: "select",
2269
- value: Ze(u.access, o),
2270
- options: Xe(u.access, o),
2271
- onCommit: d("access")
2269
+ value: Ze(f.access, s),
2270
+ options: Xe(f.access, s),
2271
+ onCommit: p("access")
2272
2272
  })]
2273
2273
  }),
2274
- /* @__PURE__ */ N(l, {
2274
+ /* @__PURE__ */ N(m, {
2275
2275
  label: "members",
2276
2276
  defaultOpen: !0,
2277
- count: u.memberCount ?? null,
2277
+ count: f.memberCount ?? null,
2278
2278
  noun: ["member", "members"],
2279
2279
  id: C("members"),
2280
2280
  children: [
2281
2281
  t.onInvite && /* @__PURE__ */ N("form", {
2282
2282
  className: "srow cmg-invite",
2283
2283
  onSubmit: (e) => {
2284
- e.preventDefault(), t.onInvite(v), y("");
2284
+ e.preventDefault(), t.onInvite(v), b("");
2285
2285
  },
2286
- children: [/* @__PURE__ */ M(f, {
2286
+ children: [/* @__PURE__ */ M(y, {
2287
2287
  label: "invite by github username",
2288
2288
  value: v,
2289
- onChange: (e) => y(e.target.value),
2289
+ onChange: (e) => b(e.target.value),
2290
2290
  placeholder: "github username"
2291
2291
  }), /* @__PURE__ */ M("button", {
2292
2292
  type: "submit",
@@ -2298,10 +2298,10 @@ function Qe({ data: e = {}, actions: t = {} } = {}) {
2298
2298
  /* @__PURE__ */ M("ul", {
2299
2299
  className: "cmg-member-list",
2300
2300
  "aria-label": "members",
2301
- children: u.members.map((e) => /* @__PURE__ */ N("li", {
2301
+ children: f.members.map((e) => /* @__PURE__ */ N("li", {
2302
2302
  className: "cmg-member",
2303
2303
  children: [
2304
- /* @__PURE__ */ M(b, {
2304
+ /* @__PURE__ */ M(r, {
2305
2305
  name: e.name ?? e.handle,
2306
2306
  size: "sm"
2307
2307
  }),
@@ -2347,20 +2347,20 @@ function Qe({ data: e = {}, actions: t = {} } = {}) {
2347
2347
  ]
2348
2348
  }, e.handle))
2349
2349
  }),
2350
- /* @__PURE__ */ M(p, {
2350
+ /* @__PURE__ */ M(u, {
2351
2351
  label: "when a member leaves",
2352
2352
  help: "what happens to the transcripts they published here.",
2353
2353
  control: "select",
2354
- value: Ze(u.memberLeaves, s),
2355
- options: Xe(u.memberLeaves, s),
2356
- onCommit: d("memberLeaves")
2354
+ value: Ze(f.memberLeaves, c),
2355
+ options: Xe(f.memberLeaves, c),
2356
+ onCommit: p("memberLeaves")
2357
2357
  })
2358
2358
  ]
2359
2359
  }),
2360
- /* @__PURE__ */ M(l, {
2360
+ /* @__PURE__ */ M(m, {
2361
2361
  label: "github orgs",
2362
2362
  defaultOpen: !0,
2363
- count: u.org === void 0 ? null : +!!u.org,
2363
+ count: f.org === void 0 ? null : +!!f.org,
2364
2364
  noun: ["org", "orgs"],
2365
2365
  id: C("github orgs"),
2366
2366
  children: /* @__PURE__ */ N("div", {
@@ -2369,18 +2369,18 @@ function Qe({ data: e = {}, actions: t = {} } = {}) {
2369
2369
  className: "srow-text-col",
2370
2370
  children: [/* @__PURE__ */ M("span", {
2371
2371
  className: "srow-label",
2372
- children: u.org ? u.org.login : u.org === null ? "no org linked" : "github org"
2372
+ children: f.org ? f.org.login : f.org === null ? "no org linked" : "github org"
2373
2373
  }), /* @__PURE__ */ N("span", {
2374
2374
  className: "srow-help",
2375
- children: [typeof u.org?.total == "number" ? /* @__PURE__ */ N(j, { children: [
2375
+ children: [typeof f.org?.total == "number" ? /* @__PURE__ */ N(j, { children: [
2376
2376
  /* @__PURE__ */ M("span", {
2377
2377
  className: "tnum",
2378
- children: u.org.linked ?? 0
2378
+ children: f.org.linked ?? 0
2379
2379
  }),
2380
2380
  " of ",
2381
2381
  /* @__PURE__ */ M("span", {
2382
2382
  className: "tnum",
2383
- children: u.org.total
2383
+ children: f.org.total
2384
2384
  }),
2385
2385
  " repos linked. "
2386
2386
  ] }) : null, "a collective links one github org today."]
@@ -2393,17 +2393,17 @@ function Qe({ data: e = {}, actions: t = {} } = {}) {
2393
2393
  })]
2394
2394
  })
2395
2395
  }),
2396
- /* @__PURE__ */ N(l, {
2396
+ /* @__PURE__ */ N(m, {
2397
2397
  label: "pull requests",
2398
2398
  defaultOpen: !0,
2399
2399
  count: 1,
2400
2400
  id: C("pull requests"),
2401
- children: [/* @__PURE__ */ M(p, {
2401
+ children: [/* @__PURE__ */ M(u, {
2402
2402
  label: "show transcripts on pull requests",
2403
2403
  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.",
2404
2404
  control: "switch",
2405
- value: i,
2406
- onCommit: d("showOnPullRequests")
2405
+ value: a,
2406
+ onCommit: p("showOnPullRequests")
2407
2407
  }), /* @__PURE__ */ N("p", {
2408
2408
  className: "srow-note",
2409
2409
  children: [
@@ -2417,7 +2417,7 @@ function Qe({ data: e = {}, actions: t = {} } = {}) {
2417
2417
  ]
2418
2418
  })]
2419
2419
  }),
2420
- x && /* @__PURE__ */ N(l, {
2420
+ x && /* @__PURE__ */ N(m, {
2421
2421
  label: "danger zone",
2422
2422
  defaultOpen: !0,
2423
2423
  count: null,
@@ -2439,13 +2439,13 @@ function Qe({ data: e = {}, actions: t = {} } = {}) {
2439
2439
  className: "srow-help",
2440
2440
  children: [
2441
2441
  "delete ",
2442
- u.name,
2442
+ f.name,
2443
2443
  " for ",
2444
- typeof u.memberCount == "number" ? /* @__PURE__ */ N(j, { children: [
2444
+ typeof f.memberCount == "number" ? /* @__PURE__ */ N(j, { children: [
2445
2445
  "all ",
2446
2446
  /* @__PURE__ */ M("span", {
2447
2447
  className: "tnum",
2448
- children: u.memberCount
2448
+ children: f.memberCount
2449
2449
  }),
2450
2450
  " members"
2451
2451
  ] }) : "all its members",
@@ -2460,12 +2460,12 @@ function Qe({ data: e = {}, actions: t = {} } = {}) {
2460
2460
  })]
2461
2461
  })
2462
2462
  ]
2463
- }), t.onLinkRepos && /* @__PURE__ */ M(g, {
2463
+ }), t.onLinkRepos && /* @__PURE__ */ M(l, {
2464
2464
  open: h,
2465
2465
  onClose: () => _(!1),
2466
2466
  owners: n,
2467
- initialSelected: r,
2468
- title: `link repositories from ${u.org?.login ?? "github"}`,
2467
+ initialSelected: i,
2468
+ title: `link repositories from ${f.org?.login ?? "github"}`,
2469
2469
  onSave: (e) => {
2470
2470
  t.onLinkRepos(e), _(!1);
2471
2471
  }
@@ -2516,8 +2516,8 @@ function rt(e) {
2516
2516
  timeZone: "UTC"
2517
2517
  }).format(t).toLowerCase();
2518
2518
  }
2519
- function it({ data: e = tt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2520
- let { collective: i = $e, providerShare: a = [], pendingReview: s = [], members: c = [], redactions: l = [], browseRows: d = [], roleOptions: f = [], initialRole: p = "", initialShowRedaction: m = !1, initialBrowseGated: g = !1, stats: _ = et } = e || tt, { onRoleChange: b, onJoin: x, onLeave: S, onSettings: C, onContribute: w, onToggleBrowse: T } = t || {}, [E, D] = A(p || i.role || ""), [k, j] = A(!!m), [P, F] = A(!!g), I = E || i.role || "guest", R = I === "owner", z = I === "guest", B = n && f.length > 0, V = O(() => B ? f : [], [B, f]), W = (e) => {
2519
+ function it({ data: e = tt, actions: n = {}, demoRoleSwitcher: r = !1 } = {}) {
2520
+ let { collective: o = $e, providerShare: s = [], pendingReview: c = [], members: l = [], redactions: u = [], browseRows: f = [], roleOptions: m = [], initialRole: g = "", initialShowRedaction: _ = !1, initialBrowseGated: v = !1, stats: y = et } = e || tt, { onRoleChange: b, onJoin: x, onLeave: S, onSettings: C, onContribute: w, onToggleBrowse: T } = n || {}, [E, D] = A(g || o.role || ""), [k, j] = A(!!_), [P, F] = A(!!v), I = E || o.role || "guest", R = I === "owner", z = I === "guest", B = r && m.length > 0, V = O(() => B ? m : [], [B, m]), W = (e) => {
2521
2521
  D(e), b?.(e);
2522
2522
  };
2523
2523
  return /* @__PURE__ */ M("div", {
@@ -2543,7 +2543,7 @@ function it({ data: e = tt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2543
2543
  }),
2544
2544
  /* @__PURE__ */ M("span", {
2545
2545
  className: "cur",
2546
- children: i.name || "collective"
2546
+ children: o.name || "collective"
2547
2547
  })
2548
2548
  ]
2549
2549
  }), /* @__PURE__ */ N("div", {
@@ -2551,11 +2551,11 @@ function it({ data: e = tt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2551
2551
  children: [/* @__PURE__ */ N("div", { children: [
2552
2552
  /* @__PURE__ */ M("h2", {
2553
2553
  className: "cmg-title",
2554
- children: i.name || "collective"
2554
+ children: o.name || "collective"
2555
2555
  }),
2556
2556
  /* @__PURE__ */ M("p", {
2557
2557
  className: "cmg-deck",
2558
- children: i.description || "shared collective governance"
2558
+ children: o.description || "shared collective governance"
2559
2559
  }),
2560
2560
  /* @__PURE__ */ N("span", {
2561
2561
  className: "cmg-orgpill mono",
@@ -2565,7 +2565,7 @@ function it({ data: e = tt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2565
2565
  "aria-hidden": "true"
2566
2566
  }),
2567
2567
  " ",
2568
- i.linkedGithubOrg || "not linked"
2568
+ o.linkedGithubOrg || "not linked"
2569
2569
  ]
2570
2570
  })
2571
2571
  ] }), /* @__PURE__ */ N("div", {
@@ -2637,40 +2637,40 @@ function it({ data: e = tt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2637
2637
  /* @__PURE__ */ N("div", {
2638
2638
  className: "cmg-tiles",
2639
2639
  children: [
2640
- /* @__PURE__ */ M(v, {
2640
+ /* @__PURE__ */ M(t, {
2641
2641
  label: "contributions",
2642
- value: i.acceptanceMode || "open",
2642
+ value: o.acceptanceMode || "open",
2643
2643
  tone: "teal"
2644
2644
  }),
2645
- /* @__PURE__ */ M(v, {
2645
+ /* @__PURE__ */ M(t, {
2646
2646
  label: "access",
2647
- value: i.dataAccess || "members only",
2647
+ value: o.dataAccess || "members only",
2648
2648
  tone: "amber"
2649
2649
  }),
2650
- /* @__PURE__ */ M(v, {
2650
+ /* @__PURE__ */ M(t, {
2651
2651
  label: "your role",
2652
2652
  value: I
2653
2653
  })
2654
2654
  ]
2655
2655
  }),
2656
- /* @__PURE__ */ M(u, { tiles: [
2656
+ /* @__PURE__ */ M(p, { tiles: [
2657
2657
  {
2658
2658
  key: "transcripts",
2659
2659
  label: "transcripts",
2660
- value: _.transcripts,
2661
- sub: `across ${_.projects}`
2660
+ value: y.transcripts,
2661
+ sub: `across ${y.projects}`
2662
2662
  },
2663
2663
  {
2664
2664
  key: "tokens",
2665
2665
  label: "tokens",
2666
- value: _.tokens,
2667
- sub: _.turns
2666
+ value: y.tokens,
2667
+ sub: y.turns
2668
2668
  },
2669
2669
  {
2670
2670
  key: "contributors",
2671
2671
  label: "contributors",
2672
- value: _.contributors,
2673
- sub: _.hours
2672
+ value: y.contributors,
2673
+ sub: y.hours
2674
2674
  }
2675
2675
  ] }),
2676
2676
  /* @__PURE__ */ N("div", {
@@ -2678,31 +2678,31 @@ function it({ data: e = tt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2678
2678
  children: [/* @__PURE__ */ N("main", {
2679
2679
  className: "cmg-d-main",
2680
2680
  children: [
2681
- a.length > 0 ? /* @__PURE__ */ N("section", {
2681
+ s.length > 0 ? /* @__PURE__ */ N("section", {
2682
2682
  className: "card cmg-share",
2683
2683
  "aria-labelledby": "cmg-share-h",
2684
2684
  children: [/* @__PURE__ */ M("h3", {
2685
2685
  id: "cmg-share-h",
2686
2686
  className: "cmg-sub",
2687
2687
  children: "provider share"
2688
- }), /* @__PURE__ */ M(y, {
2688
+ }), /* @__PURE__ */ M(i, {
2689
2689
  label: "provider share",
2690
2690
  total: 100,
2691
- data: a.map((e) => ({
2691
+ data: s.map((e) => ({
2692
2692
  label: Ae(e.id),
2693
2693
  value: e.pct
2694
2694
  }))
2695
2695
  })]
2696
2696
  }) : null,
2697
- s.length > 0 ? /* @__PURE__ */ M("div", {
2697
+ c.length > 0 ? /* @__PURE__ */ M("div", {
2698
2698
  style: {
2699
2699
  overflow: "auto",
2700
2700
  maxWidth: "100%"
2701
2701
  },
2702
- children: /* @__PURE__ */ M(o, {
2702
+ children: /* @__PURE__ */ M(d, {
2703
2703
  title: "pending review",
2704
2704
  emptyLabel: "no shares awaiting review.",
2705
- items: s.map((e) => ({
2705
+ items: c.map((e) => ({
2706
2706
  id: e.id,
2707
2707
  kind: "share",
2708
2708
  who: e.title || "untitled transcript",
@@ -2710,7 +2710,7 @@ function it({ data: e = tt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2710
2710
  }))
2711
2711
  })
2712
2712
  }) : null,
2713
- l.length > 0 ? /* @__PURE__ */ N("section", {
2713
+ u.length > 0 ? /* @__PURE__ */ N("section", {
2714
2714
  className: "card cmg-redact-sec",
2715
2715
  "aria-labelledby": "cmg-redact-h",
2716
2716
  children: [/* @__PURE__ */ N("div", {
@@ -2734,14 +2734,14 @@ function it({ data: e = tt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2734
2734
  })]
2735
2735
  }), k ? /* @__PURE__ */ M("div", {
2736
2736
  className: "cmg-redact-list",
2737
- children: l.map((e) => /* @__PURE__ */ N("article", {
2737
+ children: u.map((e) => /* @__PURE__ */ N("article", {
2738
2738
  className: "cmg-redact",
2739
2739
  children: [
2740
2740
  /* @__PURE__ */ N("div", {
2741
2741
  className: "cmg-redact-head",
2742
2742
  children: [/* @__PURE__ */ M("span", {
2743
2743
  className: "cmg-redact-badges",
2744
- children: /* @__PURE__ */ M(r, { children: String(e.catLabel || e.cat || "item").toLowerCase() })
2744
+ children: /* @__PURE__ */ M(a, { children: String(e.catLabel || e.cat || "item").toLowerCase() })
2745
2745
  }), /* @__PURE__ */ M("span", {
2746
2746
  className: "cmg-redact-file mono",
2747
2747
  children: e.file || "unknown"
@@ -2808,7 +2808,7 @@ function it({ data: e = tt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2808
2808
  }), " join as contributor"]
2809
2809
  }) : null
2810
2810
  ]
2811
- }) : d.length > 0 ? /* @__PURE__ */ N("table", {
2811
+ }) : f.length > 0 ? /* @__PURE__ */ N("table", {
2812
2812
  className: "dtable cmg-dtable",
2813
2813
  children: [/* @__PURE__ */ M("thead", { children: /* @__PURE__ */ N("tr", { children: [
2814
2814
  /* @__PURE__ */ M("th", {
@@ -2837,7 +2837,7 @@ function it({ data: e = tt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2837
2837
  scope: "col",
2838
2838
  children: "date"
2839
2839
  })
2840
- ] }) }), /* @__PURE__ */ M("tbody", { children: d.map((e) => /* @__PURE__ */ N("tr", { children: [
2840
+ ] }) }), /* @__PURE__ */ M("tbody", { children: f.map((e) => /* @__PURE__ */ N("tr", { children: [
2841
2841
  /* @__PURE__ */ M("td", { children: e.title || "untitled transcript" }),
2842
2842
  /* @__PURE__ */ M("td", {
2843
2843
  className: "mono",
@@ -2880,7 +2880,7 @@ function it({ data: e = tt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2880
2880
  })]
2881
2881
  })
2882
2882
  ]
2883
- }), c.length > 0 ? /* @__PURE__ */ M("aside", {
2883
+ }), l.length > 0 ? /* @__PURE__ */ M("aside", {
2884
2884
  className: "sidebar cmg-d-rail",
2885
2885
  "aria-label": "collective sidebar",
2886
2886
  children: /* @__PURE__ */ M("div", {
@@ -2891,7 +2891,7 @@ function it({ data: e = tt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2891
2891
  children: /* @__PURE__ */ M(h, {
2892
2892
  title: "members",
2893
2893
  roles: ["member", "contributor"],
2894
- members: c.map((e) => ({
2894
+ members: l.map((e) => ({
2895
2895
  handle: e.handle || e.githubUsername || "@unknown",
2896
2896
  name: e.name || e.displayName || e.githubUsername || "unknown",
2897
2897
  role: e.role || "member",