@peasant-labs/fairtrade 0.0.62 → 0.0.63

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,5 +1,5 @@
1
1
  import { Dt as e, Tt as t, ft as n, mt as r, pt as i } from "./GraphLegend-e9x79JtU.js";
2
- import { Cr as a, Ct as o, Et as s, Kn as c, O as l, St as u, an as d, ar as f, at as p, cr as ee, in as m, k as h, lt as g, or as _, ot as v, rn as y, rt as b, tn as x, tr as S, ut as C, wt as w, xt as T, yt as E } from "./ui-B112SqIJ.js";
2
+ import { Cr as a, It as o, Lt as s, Pt as c, Rr as l, Rt as u, Tt as d, U as f, Vt as p, W as ee, bn as m, br as h, bt as g, gn as _, gr as v, sr as y, vn as b, vt as x, wt as S, xr as C, xt as w, yn as T, zt as E } from "./ui-B89Zfh7B.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";
@@ -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(b, { visibility: e.visibility })]
220
+ }), /* @__PURE__ */ I(x, { visibility: e.visibility })]
221
221
  }),
222
222
  /* @__PURE__ */ I(i, {
223
223
  className: "cex-title",
@@ -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(b, { visibility: e.visibility })]
289
+ }), /* @__PURE__ */ I(x, { visibility: e.visibility })]
290
290
  })
291
291
  ] });
292
292
  return t ? /* @__PURE__ */ I("a", {
@@ -337,16 +337,16 @@ 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: a, defaultLayout: o = "grid", onFiltersChange: c, onOpenTranscript: u, onOpenProfile: d, onOpenCollective: f, transcriptHref: p, profileHref: ee, collectiveHref: m, headingLevel: g }) {
341
- let _ = h(g, "Explore"), v = l(_, 0), y = l(_, 1), x = 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);
340
+ function Re({ data: e, className: n = "", title: i = "explore transcripts", resultsFooter: a, defaultLayout: o = "grid", onFiltersChange: s, onOpenTranscript: c, onOpenProfile: l, onOpenCollective: u, transcriptHref: d, profileHref: m, collectiveHref: h, headingLevel: g }) {
341
+ let _ = ee(g, "Explore"), v = f(_, 0), y = f(_, 1), b = f(_, 2), S = Ne(e), C = S.transcripts.transcripts, [w, T] = 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
343
  if (K.current) {
344
- K.current = !1, O(T);
344
+ K.current = !1, O(w);
345
345
  return;
346
346
  }
347
- let e = setTimeout(() => O(T), 250);
347
+ let e = setTimeout(() => O(w), 250);
348
348
  return () => clearTimeout(e);
349
- }, [K, T]), j(() => {
349
+ }, [K, w]), j(() => {
350
350
  let e = JSON.stringify([
351
351
  D,
352
352
  k,
@@ -364,7 +364,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
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,7 +373,7 @@ 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,
@@ -401,19 +401,19 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
401
401
  t.linkedGithubOrg
402
402
  ].filter(Boolean).join(" ").toLowerCase().includes(e)) : null;
403
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
- if (u) {
405
- u(e);
404
+ if (c) {
405
+ c(e);
406
406
  return;
407
407
  }
408
408
  W(e.id), G("detail");
409
409
  }, Se = () => {
410
- if (d && Y) {
411
- d(Y);
410
+ if (l && Y) {
411
+ l(Y);
412
412
  return;
413
413
  }
414
414
  J ? (W(J.id), G("profile")) : C[0] && (W(C[0].id), G("profile"));
415
415
  }, Ce = () => {
416
- E(""), O(""), A("recent"), ne("all"), re(/* @__PURE__ */ new Set()), H(1);
416
+ T(""), O(""), A("recent"), ne("all"), re(/* @__PURE__ */ new Set()), H(1);
417
417
  }, we = M(() => Y ? [...je(X, (e) => e.projectName || "untitled project").entries()].map(([e, t]) => ({
418
418
  project: e,
419
419
  items: t
@@ -479,7 +479,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
479
479
  children: [/* @__PURE__ */ I(v, {
480
480
  className: "win-title cex-vtitle",
481
481
  children: Ae(J.title || "untitled transcript")
482
- }), /* @__PURE__ */ I(b, { visibility: J.visibility })]
482
+ }), /* @__PURE__ */ I(x, { visibility: J.visibility })]
483
483
  }),
484
484
  /* @__PURE__ */ L("p", {
485
485
  className: "cex-vdesc",
@@ -580,7 +580,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
580
580
  children: Oe(J.owner.displayName || J.owner.githubUsername)
581
581
  }), /* @__PURE__ */ L("div", {
582
582
  className: "cex-phero-id",
583
- children: [/* @__PURE__ */ I(x, {
583
+ children: [/* @__PURE__ */ I(b, {
584
584
  className: "cex-h2 cex-pname",
585
585
  children: J.owner.displayName || J.owner.githubUsername
586
586
  }), /* @__PURE__ */ L("span", {
@@ -589,7 +589,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
589
589
  })]
590
590
  })]
591
591
  }),
592
- /* @__PURE__ */ I(w, { tiles: [
592
+ /* @__PURE__ */ I(E, { tiles: [
593
593
  {
594
594
  key: "transcripts",
595
595
  label: "transcripts",
@@ -665,7 +665,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
665
665
  })]
666
666
  })]
667
667
  }),
668
- /* @__PURE__ */ I(w, { tiles: [
668
+ /* @__PURE__ */ I(E, { tiles: [
669
669
  {
670
670
  key: "transcripts",
671
671
  label: "transcripts",
@@ -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: p?.(e),
728
+ href: d?.(e),
729
729
  onOpen: xe
730
730
  }, e.id))
731
731
  })]
@@ -747,16 +747,16 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
747
747
  /* @__PURE__ */ I("input", {
748
748
  className: "input",
749
749
  type: "text",
750
- value: T,
751
- onChange: (e) => E(e.target.value),
750
+ value: w,
751
+ onChange: (e) => T(e.target.value),
752
752
  placeholder: "search transcripts",
753
753
  "aria-label": "search transcripts, collectives, projects, models"
754
754
  }),
755
- T && /* @__PURE__ */ I("button", {
755
+ w && /* @__PURE__ */ I("button", {
756
756
  type: "button",
757
757
  className: "cex-clear",
758
758
  "aria-label": "clear search",
759
- onClick: () => E(""),
759
+ onClick: () => T(""),
760
760
  children: /* @__PURE__ */ I(pe, {
761
761
  size: 14,
762
762
  "aria-hidden": "true"
@@ -788,7 +788,7 @@ 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(s, {
791
+ children: /* @__PURE__ */ I(p, {
792
792
  order: k,
793
793
  onOrder: (e) => A(e),
794
794
  providers: me,
@@ -831,8 +831,8 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
831
831
  className: "cex-coll-grid",
832
832
  children: ge.map((e) => /* @__PURE__ */ I(Le, {
833
833
  collective: e,
834
- href: m?.(e),
835
- onOpen: f
834
+ href: h?.(e),
835
+ onOpen: u
836
836
  }, e.id))
837
837
  })]
838
838
  }),
@@ -903,7 +903,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
903
903
  className: "cex-grid",
904
904
  children: Z.map((e) => /* @__PURE__ */ I(Fe, {
905
905
  transcript: e,
906
- href: p?.(e),
906
+ href: d?.(e),
907
907
  onOpen: xe,
908
908
  cardHeading: y
909
909
  }, e.id))
@@ -911,7 +911,7 @@ function Re({ data: e, className: n = "", title: i = "explore transcripts", resu
911
911
  className: "cex-list",
912
912
  children: Z.map((e) => /* @__PURE__ */ I(Ie, {
913
913
  transcript: e,
914
- href: p?.(e),
914
+ href: d?.(e),
915
915
  onOpen: xe
916
916
  }, e.id))
917
917
  }),
@@ -1380,7 +1380,7 @@ function Je() {
1380
1380
  return n.has(e) ? n.delete(e) : n.add(e), n;
1381
1381
  });
1382
1382
  }
1383
- let f = [...e].map((e) => o[e]).filter(Boolean), p = f.filter((e) => e.visibility === "private").length;
1383
+ let d = [...e].map((e) => o[e]).filter(Boolean), f = d.filter((e) => e.visibility === "private").length;
1384
1384
  return /* @__PURE__ */ L("div", {
1385
1385
  className: "cmg-root",
1386
1386
  children: [/* @__PURE__ */ L("div", {
@@ -1516,13 +1516,13 @@ function Je() {
1516
1516
  children: e.size
1517
1517
  }),
1518
1518
  " selected",
1519
- p > 0 ? /* @__PURE__ */ L("span", {
1519
+ f > 0 ? /* @__PURE__ */ L("span", {
1520
1520
  className: "cmg-sel-warn",
1521
1521
  children: [
1522
1522
  ", ",
1523
1523
  /* @__PURE__ */ I("span", {
1524
1524
  className: "tnum",
1525
- children: p
1525
+ children: f
1526
1526
  }),
1527
1527
  " private"
1528
1528
  ]
@@ -1546,20 +1546,20 @@ function Je() {
1546
1546
  })]
1547
1547
  })
1548
1548
  ]
1549
- }), /* @__PURE__ */ I(d, {
1549
+ }), /* @__PURE__ */ I(m, {
1550
1550
  open: i,
1551
1551
  title: /* @__PURE__ */ L(F, { children: [
1552
1552
  "make ",
1553
- p > 1 ? "these" : "this",
1553
+ f > 1 ? "these" : "this",
1554
1554
  " visible?"
1555
1555
  ] }),
1556
- intro: p > 0 ? /* @__PURE__ */ L("p", { children: [
1556
+ intro: f > 0 ? /* @__PURE__ */ L("p", { children: [
1557
1557
  /* @__PURE__ */ I("span", {
1558
1558
  className: "tnum",
1559
- children: p
1559
+ children: f
1560
1560
  }),
1561
1561
  " private transcript",
1562
- p === 1 ? "" : "s",
1562
+ f === 1 ? "" : "s",
1563
1563
  " will become visible to members of ",
1564
1564
  /* @__PURE__ */ I("b", { children: qe.name }),
1565
1565
  ". visibility will change from private to shared."
@@ -1573,9 +1573,9 @@ function Je() {
1573
1573
  axes: [{
1574
1574
  icon: B,
1575
1575
  key: "visibility",
1576
- value: p > 0 ? "private → shared" : "unchanged",
1577
- scope: p > 0 ? `${p} transcript${p === 1 ? "" : "s"} newly exposed` : "no visibility change",
1578
- tone: p > 0 ? "reveal" : "open"
1576
+ value: f > 0 ? "private → shared" : "unchanged",
1577
+ scope: f > 0 ? `${f} transcript${f === 1 ? "" : "s"} newly exposed` : "no visibility change",
1578
+ tone: f > 0 ? "reveal" : "open"
1579
1579
  }, {
1580
1580
  icon: Q,
1581
1581
  key: "shared with",
@@ -1583,14 +1583,14 @@ function Je() {
1583
1583
  scope: `${qe.members} members can see it`,
1584
1584
  tone: "open"
1585
1585
  }],
1586
- requireConsent: p > 0,
1587
- confirmLabel: p > 0 ? "contribute & make visible" : "contribute",
1586
+ requireConsent: f > 0,
1587
+ confirmLabel: f > 0 ? "contribute & make visible" : "contribute",
1588
1588
  confirmIcon: ne,
1589
1589
  onCancel: () => a(!1),
1590
1590
  onConfirm: () => a(!1),
1591
1591
  children: /* @__PURE__ */ L("ul", {
1592
1592
  className: "cmg-confirm-list",
1593
- children: [f.slice(0, 5).map((e) => /* @__PURE__ */ L("li", {
1593
+ children: [d.slice(0, 5).map((e) => /* @__PURE__ */ L("li", {
1594
1594
  className: "cmg-confirm-tx",
1595
1595
  children: [
1596
1596
  /* @__PURE__ */ I(ProviderMark, { id: e.provider }),
@@ -1600,11 +1600,11 @@ function Je() {
1600
1600
  }),
1601
1601
  /* @__PURE__ */ I(We, { v: e.visibility })
1602
1602
  ]
1603
- }, e.id)), f.length > 5 ? /* @__PURE__ */ L("li", {
1603
+ }, e.id)), d.length > 5 ? /* @__PURE__ */ L("li", {
1604
1604
  className: "cmg-confirm-more mono",
1605
1605
  children: [
1606
1606
  "…and ",
1607
- f.length - 5,
1607
+ d.length - 5,
1608
1608
  " more"
1609
1609
  ]
1610
1610
  }) : null]
@@ -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: o, crumb: s, caption: l = "collectives", createLabel: u = "new collective", createBusy: d = !1, whoCanPublish: f = Ye, whoCanRead: p = Xe } = e, { onCreateCollective: h, onOpenCollective: g, onSearchCollectives: _ } = t, [v, 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: o, crumb: s, caption: c = "collectives", createLabel: u = "new collective", createBusy: d = !1, whoCanPublish: f = Ye, whoCanRead: p = Xe } = e, { onCreateCollective: ee, onOpenCollective: m, onSearchCollectives: h } = t, [g, _] = P(!1), [v, b] = P(""), [x, S] = P(""), [C, w] = P(f[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: () => g?.(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",
@@ -1729,7 +1729,7 @@ function tt({ data: e = {}, actions: t = {} } = {}) {
1729
1729
  children: [
1730
1730
  s ? /* @__PURE__ */ I("div", {
1731
1731
  className: "cmg-crumb",
1732
- children: /* @__PURE__ */ I(ee, { items: [{ label: s }] })
1732
+ children: /* @__PURE__ */ I(a, { items: [{ label: s }] })
1733
1733
  }) : null,
1734
1734
  /* @__PURE__ */ L("header", {
1735
1735
  className: "iu-page-head",
@@ -1740,16 +1740,16 @@ function tt({ data: e = {}, actions: t = {} } = {}) {
1740
1740
  children: i
1741
1741
  }), /* @__PURE__ */ L("button", {
1742
1742
  type: "button",
1743
- className: "btn btn-sm " + (v ? "btn-secondary" : "btn-primary"),
1744
- "aria-expanded": v,
1745
- onClick: () => y((e) => !e),
1743
+ className: "btn btn-sm " + (g ? "btn-secondary" : "btn-primary"),
1744
+ "aria-expanded": g,
1745
+ onClick: () => _((e) => !e),
1746
1746
  children: [
1747
1747
  /* @__PURE__ */ I(Y, {
1748
1748
  size: 14,
1749
1749
  "aria-hidden": "true"
1750
1750
  }),
1751
1751
  " ",
1752
- v ? "close" : u
1752
+ g ? "close" : u
1753
1753
  ]
1754
1754
  })]
1755
1755
  }), o ? /* @__PURE__ */ I("p", {
@@ -1757,7 +1757,7 @@ function tt({ data: e = {}, actions: t = {} } = {}) {
1757
1757
  children: o
1758
1758
  }) : null]
1759
1759
  }),
1760
- v && /* @__PURE__ */ L("section", {
1760
+ g && /* @__PURE__ */ L("section", {
1761
1761
  className: "cmg-form card",
1762
1762
  "aria-labelledby": `${N}-form`,
1763
1763
  children: [
@@ -1777,8 +1777,8 @@ function tt({ data: e = {}, actions: t = {} } = {}) {
1777
1777
  }), /* @__PURE__ */ I("input", {
1778
1778
  className: "input",
1779
1779
  type: "text",
1780
- value: b,
1781
- onChange: (e) => x(e.target.value)
1780
+ value: v,
1781
+ onChange: (e) => b(e.target.value)
1782
1782
  })]
1783
1783
  }),
1784
1784
  /* @__PURE__ */ L("label", {
@@ -1789,18 +1789,18 @@ function tt({ data: e = {}, actions: t = {} } = {}) {
1789
1789
  }), /* @__PURE__ */ I("textarea", {
1790
1790
  className: "input",
1791
1791
  rows: 2,
1792
- value: S,
1793
- onChange: (e) => C(e.target.value)
1792
+ value: x,
1793
+ onChange: (e) => S(e.target.value)
1794
1794
  })]
1795
1795
  }),
1796
1796
  /* @__PURE__ */ I("div", {
1797
1797
  className: "cmg-field",
1798
- children: /* @__PURE__ */ I(m, {
1798
+ children: /* @__PURE__ */ I(T, {
1799
1799
  variant: "select",
1800
1800
  label: "who can publish",
1801
1801
  name: "who-can-publish",
1802
- value: w,
1803
- onChange: T,
1802
+ value: C,
1803
+ onChange: w,
1804
1804
  options: f.map((e) => ({
1805
1805
  ...e,
1806
1806
  rationale: e.help
@@ -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(m, {
1812
+ children: /* @__PURE__ */ I(T, {
1813
1813
  variant: "select",
1814
1814
  label: "who can read",
1815
1815
  name: "who-can-read",
@@ -1846,12 +1846,12 @@ 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: !v.trim() || d,
1850
1850
  "aria-describedby": N,
1851
- onClick: () => h?.({
1852
- name: b,
1853
- purpose: S,
1854
- mode: w,
1851
+ onClick: () => ee?.({
1852
+ name: v,
1853
+ purpose: x,
1854
+ mode: C,
1855
1855
  access: E,
1856
1856
  org: O
1857
1857
  }),
@@ -1859,15 +1859,15 @@ function tt({ data: e = {}, actions: t = {} } = {}) {
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: f.find((e) => e.value === C)?.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: `${l} ${n.length}`,
1869
+ children: [/* @__PURE__ */ I(y, {
1870
+ caption: `${c} ${n.length}`,
1871
1871
  columns: F,
1872
1872
  rows: n,
1873
1873
  rowKey: (e) => e.id
@@ -1876,7 +1876,7 @@ function tt({ data: e = {}, actions: t = {} } = {}) {
1876
1876
  children: "in a curated collective, each transcript you publish waits for the owner to approve it."
1877
1877
  }) : null]
1878
1878
  }),
1879
- _ && /* @__PURE__ */ L("section", {
1879
+ h && /* @__PURE__ */ L("section", {
1880
1880
  className: "cmg-section",
1881
1881
  "aria-labelledby": `${N}-find`,
1882
1882
  children: [/* @__PURE__ */ I("h3", {
@@ -1887,9 +1887,9 @@ function tt({ data: e = {}, actions: t = {} } = {}) {
1887
1887
  className: "cmg-find",
1888
1888
  role: "search",
1889
1889
  onSubmit: (e) => {
1890
- e.preventDefault(), _(j);
1890
+ e.preventDefault(), h(j);
1891
1891
  },
1892
- children: [/* @__PURE__ */ I(a, {
1892
+ children: [/* @__PURE__ */ I(l, {
1893
1893
  label: "collective or github org",
1894
1894
  type: "search",
1895
1895
  iconLeft: fe,
@@ -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: u, onOpenTranscript: d, onOpenPullRequest: f, onLinkRepos: m, onShowMore: h } = t, [g, v] = P(!1), y = te(), b = o.transcriptCount ?? o.transcripts.length, x = [
1930
+ let { owners: r = [], linkedRepos: i = [], hrefFor: s } = e, l = rt(e.collective), { onSettings: u, onContribute: d, onReview: f, onOpenTranscript: p, onOpenPullRequest: ee, onLinkRepos: m, onShowMore: h } = t, [_, v] = P(!1), b = te(), x = l.transcriptCount ?? l.transcripts.length, S = [
1931
1931
  {
1932
1932
  key: "title",
1933
1933
  label: "title",
@@ -1941,8 +1941,8 @@ function it({ data: e = {}, actions: t = {} } = {}) {
1941
1941
  className: "iu-session-text",
1942
1942
  children: [/* @__PURE__ */ I($e, {
1943
1943
  className: "iu-session-title",
1944
- href: a?.("transcript", t.id),
1945
- onOpen: d ? () => d(t.id) : void 0,
1944
+ href: s?.("transcript", t.id),
1945
+ onOpen: p ? () => p(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(E, {
1975
- items: et(t.pullRequests, f, a),
1974
+ children: [/* @__PURE__ */ I(c, {
1975
+ items: et(t.pullRequests, ee, s),
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
- ], S = [
1991
+ ], w = [
1992
1992
  {
1993
1993
  key: "read",
1994
1994
  title: "who can read",
1995
- text: o.whoCanRead
1995
+ text: l.whoCanRead
1996
1996
  },
1997
1997
  {
1998
1998
  key: "publish",
1999
1999
  title: "who can publish",
2000
- text: o.whoCanPublish
2000
+ text: l.whoCanPublish
2001
2001
  },
2002
2002
  {
2003
2003
  key: "role",
2004
2004
  title: "your role",
2005
- text: o.yourRole
2005
+ text: l.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(ee, { items: [{
2013
+ children: /* @__PURE__ */ I(a, { items: [{
2014
2014
  label: "collectives",
2015
- href: a?.("collectives")
2016
- }, { label: o.name }] })
2015
+ href: s?.("collectives")
2016
+ }, { label: l.name }] })
2017
2017
  }),
2018
2018
  /* @__PURE__ */ L("header", {
2019
2019
  className: "iu-page-head",
@@ -2021,43 +2021,43 @@ 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: y,
2025
- children: o.name
2024
+ id: b,
2025
+ children: l.name
2026
2026
  }), /* @__PURE__ */ L("span", {
2027
2027
  className: "cmg-actions",
2028
- children: [o.role === "owner" && s && /* @__PURE__ */ L("button", {
2028
+ children: [l.role === "owner" && u && /* @__PURE__ */ L("button", {
2029
2029
  type: "button",
2030
2030
  className: "btn btn-secondary btn-sm",
2031
- onClick: () => s(),
2031
+ onClick: () => u(),
2032
2032
  children: [/* @__PURE__ */ I(X, {
2033
2033
  size: 14,
2034
2034
  "aria-hidden": "true"
2035
2035
  }), " settings"]
2036
- }), (l || u) && /* @__PURE__ */ I(_, {
2036
+ }), (d || f) && /* @__PURE__ */ I(C, {
2037
2037
  icon: J,
2038
2038
  ariaLabel: "more",
2039
2039
  size: "sm",
2040
2040
  align: "end",
2041
- items: [...l ? [{
2041
+ items: [...d ? [{
2042
2042
  label: "publish several transcripts",
2043
2043
  icon: Z,
2044
- onSelect: () => l()
2045
- }] : [], ...u ? [{
2044
+ onSelect: () => d()
2045
+ }] : [], ...f ? [{
2046
2046
  label: "review transcripts",
2047
2047
  icon: ie,
2048
- onSelect: () => u()
2048
+ onSelect: () => f()
2049
2049
  }] : []]
2050
2050
  })]
2051
2051
  })]
2052
- }), o.purpose ? /* @__PURE__ */ I("p", {
2052
+ }), l.purpose ? /* @__PURE__ */ I("p", {
2053
2053
  className: "iu-page-sub",
2054
- children: o.purpose
2054
+ children: l.purpose
2055
2055
  }) : null]
2056
2056
  }),
2057
- S.length > 0 && /* @__PURE__ */ I("ul", {
2057
+ w.length > 0 && /* @__PURE__ */ I("ul", {
2058
2058
  className: "cmg-policies",
2059
2059
  "aria-label": "how this collective works",
2060
- children: S.map((e) => /* @__PURE__ */ L("li", {
2060
+ children: w.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(T, {
2072
- items: o.stats,
2073
- label: `${o.name} in numbers`
2071
+ /* @__PURE__ */ I(o, {
2072
+ items: l.stats,
2073
+ label: `${l.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 ${b}`,
2081
- columns: x,
2082
- rows: o.transcripts,
2079
+ children: [/* @__PURE__ */ I(y, {
2080
+ caption: `transcripts ${x}`,
2081
+ columns: S,
2082
+ rows: l.transcripts,
2083
2083
  rowKey: (e) => e.id
2084
2084
  }), /* @__PURE__ */ L("div", {
2085
2085
  className: "iu-page-foot",
@@ -2089,15 +2089,15 @@ 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: l.transcripts.length
2093
2093
  }),
2094
2094
  " of ",
2095
2095
  /* @__PURE__ */ I("span", {
2096
2096
  className: "tnum",
2097
- children: b
2097
+ children: x
2098
2098
  })
2099
2099
  ]
2100
- }), b > o.transcripts.length && h && /* @__PURE__ */ I("button", {
2100
+ }), x > l.transcripts.length && h && /* @__PURE__ */ I("button", {
2101
2101
  type: "button",
2102
2102
  className: "btn btn-secondary btn-sm",
2103
2103
  onClick: () => h(),
@@ -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
+ }), l.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: l.org.login
2123
2123
  }),
2124
- typeof o.org.total == "number" ? /* @__PURE__ */ L(F, { children: [
2124
+ typeof l.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: l.org.linked ?? 0
2129
2129
  }),
2130
2130
  " of ",
2131
2131
  /* @__PURE__ */ I("span", {
2132
2132
  className: "tnum",
2133
- children: o.org.total
2133
+ children: l.org.total
2134
2134
  }),
2135
2135
  " repos linked"
2136
2136
  ] }) : null,
2137
- o.role === "owner" && m && /* @__PURE__ */ I("button", {
2137
+ l.role === "owner" && m && /* @__PURE__ */ I("button", {
2138
2138
  type: "button",
2139
2139
  className: "btn btn-ghost btn-sm",
2140
2140
  onClick: () => v(!0),
2141
2141
  children: "manage"
2142
2142
  })
2143
2143
  ]
2144
- }) : o.org === null ? /* @__PURE__ */ I("p", {
2144
+ }) : l.org === null ? /* @__PURE__ */ I("p", {
2145
2145
  className: "cmg-rail-line cmg-none",
2146
2146
  children: "nothing linked"
2147
2147
  }) : null]
@@ -2150,31 +2150,31 @@ 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 l.memberCount == "number" ? /* @__PURE__ */ L(F, { children: [" ", /* @__PURE__ */ I("span", {
2154
2154
  className: "tnum cmg-count",
2155
- children: o.memberCount
2155
+ children: l.memberCount
2156
2156
  })] }) : null]
2157
2157
  }),
2158
- o.memberBreakdown ? /* @__PURE__ */ I("p", {
2158
+ l.memberBreakdown ? /* @__PURE__ */ I("p", {
2159
2159
  className: "cmg-note",
2160
- children: o.memberBreakdown
2160
+ children: l.memberBreakdown
2161
2161
  }) : null,
2162
2162
  /* @__PURE__ */ I(nt, {
2163
- members: o.members,
2164
- count: o.memberCount ?? o.members.length
2163
+ members: l.members,
2164
+ count: l.memberCount ?? l.members.length
2165
2165
  })
2166
2166
  ]
2167
2167
  })]
2168
2168
  })]
2169
2169
  })
2170
2170
  ]
2171
- }), m && /* @__PURE__ */ I(p, {
2172
- open: g,
2171
+ }), m && /* @__PURE__ */ I(g, {
2172
+ open: _,
2173
2173
  onClose: () => v(!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 ${l.org?.login ?? "github"}`,
2177
+ description: `pull requests in linked repos show the transcripts published to ${l.name}.`,
2178
2178
  onSave: (e) => {
2179
2179
  m(e), v(!1);
2180
2180
  }
@@ -2207,7 +2207,7 @@ var lt = {
2207
2207
  "danger zone": ge
2208
2208
  };
2209
2209
  function ut({ data: e = {}, actions: t = {} } = {}) {
2210
- let { owners: n = [], linkedRepos: r = [], showOnPullRequests: i = !1, whoCanPublish: o = Ye, whoCanRead: s = Xe, memberLeavesChoices: c = at, hrefFor: l } = e, u = rt(e.collective), d = (e) => (n) => t.onCommit ? t.onCommit(e, n) : Promise.resolve(), [f, m] = P(!1), [h, _] = P(""), y = !!(t.onTransferOwnership || t.onDelete), b = [
2210
+ let { owners: n = [], linkedRepos: r = [], showOnPullRequests: i = !1, whoCanPublish: o = Ye, whoCanRead: s = Xe, memberLeavesChoices: c = at, hrefFor: u } = e, f = rt(e.collective), p = (e) => (n) => t.onCommit ? t.onCommit(e, n) : Promise.resolve(), [ee, m] = P(!1), [h, _] = P(""), y = !!(t.onTransferOwnership || t.onDelete), b = [
2211
2211
  "general",
2212
2212
  "access",
2213
2213
  "members",
@@ -2220,14 +2220,14 @@ function ut({ data: e = {}, actions: t = {} } = {}) {
2220
2220
  children: [
2221
2221
  /* @__PURE__ */ I("div", {
2222
2222
  className: "cmg-crumb-content",
2223
- children: /* @__PURE__ */ I(ee, { items: [
2223
+ children: /* @__PURE__ */ I(a, { items: [
2224
2224
  {
2225
2225
  label: "collectives",
2226
- href: l?.("collectives")
2226
+ href: u?.("collectives")
2227
2227
  },
2228
2228
  {
2229
- label: u.name,
2230
- href: l?.("collective", u.id)
2229
+ label: f.name,
2230
+ href: u?.("collective", f.id)
2231
2231
  },
2232
2232
  { label: "settings" }
2233
2233
  ] })
@@ -2238,11 +2238,11 @@ 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: u.name
2241
+ children: f.name
2242
2242
  }), ", settings"]
2243
2243
  })
2244
2244
  }),
2245
- /* @__PURE__ */ L(v, {
2245
+ /* @__PURE__ */ L(w, {
2246
2246
  sections: b.map((e) => ({
2247
2247
  id: x(e),
2248
2248
  label: e,
@@ -2252,46 +2252,46 @@ function ut({ data: e = {}, actions: t = {} } = {}) {
2252
2252
  currentId: x(b[0]),
2253
2253
  spy: !0,
2254
2254
  children: [
2255
- /* @__PURE__ */ L(g, {
2255
+ /* @__PURE__ */ L(S, {
2256
2256
  label: "general",
2257
2257
  defaultOpen: !0,
2258
2258
  id: x("general"),
2259
- children: [/* @__PURE__ */ I(C, {
2259
+ children: [/* @__PURE__ */ I(d, {
2260
2260
  label: "name",
2261
2261
  control: "text",
2262
- value: u.name,
2263
- onCommit: d("name")
2264
- }), /* @__PURE__ */ I(C, {
2262
+ value: f.name,
2263
+ onCommit: p("name")
2264
+ }), /* @__PURE__ */ I(d, {
2265
2265
  label: "purpose",
2266
2266
  control: "text",
2267
- value: u.purpose ?? "",
2268
- onCommit: d("purpose")
2267
+ value: f.purpose ?? "",
2268
+ onCommit: p("purpose")
2269
2269
  })]
2270
2270
  }),
2271
- /* @__PURE__ */ L(g, {
2271
+ /* @__PURE__ */ L(S, {
2272
2272
  label: "access",
2273
2273
  defaultOpen: !0,
2274
2274
  id: x("access"),
2275
- children: [/* @__PURE__ */ I(C, {
2275
+ children: [/* @__PURE__ */ I(d, {
2276
2276
  label: "who can publish",
2277
2277
  help: ((e) => e.filter((e) => e.help).map((e) => `${e.label}: ${e.help}`).join(" "))(o),
2278
2278
  control: "select",
2279
- value: st(u.mode, o),
2280
- options: ot(u.mode, o),
2281
- onCommit: d("mode")
2282
- }), /* @__PURE__ */ I(C, {
2279
+ value: st(f.mode, o),
2280
+ options: ot(f.mode, o),
2281
+ onCommit: p("mode")
2282
+ }), /* @__PURE__ */ I(d, {
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(u.access, s),
2287
- options: ot(u.access, s),
2288
- onCommit: d("access")
2286
+ value: st(f.access, s),
2287
+ options: ot(f.access, s),
2288
+ onCommit: p("access")
2289
2289
  })]
2290
2290
  }),
2291
- /* @__PURE__ */ L(g, {
2291
+ /* @__PURE__ */ L(S, {
2292
2292
  label: "members",
2293
2293
  defaultOpen: !0,
2294
- count: u.memberCount ?? null,
2294
+ count: f.memberCount ?? null,
2295
2295
  noun: ["member", "members"],
2296
2296
  id: x("members"),
2297
2297
  children: [
@@ -2300,7 +2300,7 @@ function ut({ data: e = {}, actions: t = {} } = {}) {
2300
2300
  onSubmit: (e) => {
2301
2301
  e.preventDefault(), t.onInvite(h), _("");
2302
2302
  },
2303
- children: [/* @__PURE__ */ I(a, {
2303
+ children: [/* @__PURE__ */ I(l, {
2304
2304
  label: "invite by github username",
2305
2305
  value: h,
2306
2306
  onChange: (e) => _(e.target.value),
@@ -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: u.members.map((e) => /* @__PURE__ */ L("li", {
2318
+ children: f.members.map((e) => /* @__PURE__ */ L("li", {
2319
2319
  className: "cmg-member",
2320
2320
  children: [
2321
- /* @__PURE__ */ I(S, {
2321
+ /* @__PURE__ */ I(v, {
2322
2322
  name: e.name ?? e.handle,
2323
2323
  size: "sm"
2324
2324
  }),
@@ -2364,20 +2364,20 @@ function ut({ data: e = {}, actions: t = {} } = {}) {
2364
2364
  ]
2365
2365
  }, e.handle))
2366
2366
  }),
2367
- /* @__PURE__ */ I(C, {
2367
+ /* @__PURE__ */ I(d, {
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(u.memberLeaves, c),
2372
- options: ot(u.memberLeaves, c),
2373
- onCommit: d("memberLeaves")
2371
+ value: st(f.memberLeaves, c),
2372
+ options: ot(f.memberLeaves, c),
2373
+ onCommit: p("memberLeaves")
2374
2374
  })
2375
2375
  ]
2376
2376
  }),
2377
- /* @__PURE__ */ I(g, {
2377
+ /* @__PURE__ */ I(S, {
2378
2378
  label: "github orgs",
2379
2379
  defaultOpen: !0,
2380
- count: u.org === void 0 ? null : +!!u.org,
2380
+ count: f.org === void 0 ? null : +!!f.org,
2381
2381
  noun: ["org", "orgs"],
2382
2382
  id: x("github orgs"),
2383
2383
  children: /* @__PURE__ */ L("div", {
@@ -2386,18 +2386,18 @@ function ut({ data: e = {}, actions: t = {} } = {}) {
2386
2386
  className: "srow-text-col",
2387
2387
  children: [/* @__PURE__ */ I("span", {
2388
2388
  className: "srow-label",
2389
- children: u.org ? u.org.login : u.org === null ? "no org linked" : "github org"
2389
+ children: f.org ? f.org.login : f.org === null ? "no org linked" : "github org"
2390
2390
  }), /* @__PURE__ */ L("span", {
2391
2391
  className: "srow-help",
2392
- children: [typeof u.org?.total == "number" ? /* @__PURE__ */ L(F, { children: [
2392
+ children: [typeof f.org?.total == "number" ? /* @__PURE__ */ L(F, { children: [
2393
2393
  /* @__PURE__ */ I("span", {
2394
2394
  className: "tnum",
2395
- children: u.org.linked ?? 0
2395
+ children: f.org.linked ?? 0
2396
2396
  }),
2397
2397
  " of ",
2398
2398
  /* @__PURE__ */ I("span", {
2399
2399
  className: "tnum",
2400
- children: u.org.total
2400
+ children: f.org.total
2401
2401
  }),
2402
2402
  " repos linked. "
2403
2403
  ] }) : null, "a collective links one github org today."]
@@ -2410,20 +2410,20 @@ function ut({ data: e = {}, actions: t = {} } = {}) {
2410
2410
  })]
2411
2411
  })
2412
2412
  }),
2413
- /* @__PURE__ */ I(g, {
2413
+ /* @__PURE__ */ I(S, {
2414
2414
  label: "pull requests",
2415
2415
  defaultOpen: !0,
2416
2416
  count: 1,
2417
2417
  id: x("pull requests"),
2418
- children: /* @__PURE__ */ I(C, {
2418
+ children: /* @__PURE__ */ I(d, {
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: d("showOnPullRequests")
2423
+ onCommit: p("showOnPullRequests")
2424
2424
  })
2425
2425
  }),
2426
- y && /* @__PURE__ */ L(g, {
2426
+ y && /* @__PURE__ */ L(S, {
2427
2427
  label: "danger zone",
2428
2428
  defaultOpen: !0,
2429
2429
  count: null,
@@ -2445,13 +2445,13 @@ function ut({ data: e = {}, actions: t = {} } = {}) {
2445
2445
  className: "srow-help",
2446
2446
  children: [
2447
2447
  "delete ",
2448
- u.name,
2448
+ f.name,
2449
2449
  " for ",
2450
- typeof u.memberCount == "number" ? /* @__PURE__ */ L(F, { children: [
2450
+ typeof f.memberCount == "number" ? /* @__PURE__ */ L(F, { children: [
2451
2451
  "all ",
2452
2452
  /* @__PURE__ */ I("span", {
2453
2453
  className: "tnum",
2454
- children: u.memberCount
2454
+ children: f.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(p, {
2472
- open: f,
2471
+ }), t.onLinkRepos && /* @__PURE__ */ I(g, {
2472
+ open: ee,
2473
2473
  onClose: () => m(!1),
2474
2474
  owners: n,
2475
2475
  initialSelected: r,
2476
- title: `link repositories from ${u.org?.login ?? "github"}`,
2476
+ title: `link repositories from ${f.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: d = [], initialRole: p = "", initialShowRedaction: ee = !1, initialBrowseGated: m = !1, stats: h = ft } = e || pt, { onRoleChange: g, onJoin: _, onLeave: v, onSettings: b, onContribute: S, 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 && d.length > 0, ne = M(() => F ? d : [], [F, d]), R = (e) => {
2529
- E(e), g?.(e);
2528
+ let { collective: r = dt, providerShare: i = [], pendingReview: a = [], members: o = [], redactions: c = [], browseRows: l = [], roleOptions: d = [], initialRole: f = "", initialShowRedaction: p = !1, initialBrowseGated: ee = !1, stats: m = ft } = e || pt, { onRoleChange: g, onJoin: v, onLeave: y, onSettings: x, onContribute: S, onToggleBrowse: C } = t || {}, [w, T] = P(f || r.role || ""), [D, O] = P(!!p), [k, A] = P(!!ee), j = w || r.role || "guest", te = j === "owner", N = j === "guest", F = n && d.length > 0, ne = M(() => F ? d : [], [F, d]), R = (e) => {
2529
+ T(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": T === e,
2589
+ "aria-pressed": w === e,
2590
2590
  onClick: () => R(e),
2591
2591
  children: e
2592
2592
  }, e))
@@ -2605,7 +2605,7 @@ 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: () => _?.(),
2608
+ onClick: () => v?.(),
2609
2609
  children: [/* @__PURE__ */ I(ve, {
2610
2610
  size: 14,
2611
2611
  "aria-hidden": "true"
@@ -2620,19 +2620,19 @@ function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2620
2620
  "aria-hidden": "true"
2621
2621
  }), " contribute"]
2622
2622
  }) : null,
2623
- (j === "member" || j === "contributor") && v ? /* @__PURE__ */ L("button", {
2623
+ (j === "member" || j === "contributor") && y ? /* @__PURE__ */ L("button", {
2624
2624
  type: "button",
2625
2625
  className: "btn btn-sm btn-danger",
2626
- onClick: () => v?.(),
2626
+ onClick: () => y?.(),
2627
2627
  children: [/* @__PURE__ */ I(q, {
2628
2628
  size: 14,
2629
2629
  "aria-hidden": "true"
2630
2630
  }), " leave"]
2631
2631
  }) : null,
2632
- te && b ? /* @__PURE__ */ L("button", {
2632
+ te && x ? /* @__PURE__ */ L("button", {
2633
2633
  type: "button",
2634
2634
  className: "btn btn-sm btn-secondary",
2635
- onClick: () => b?.(),
2635
+ onClick: () => x?.(),
2636
2636
  children: [/* @__PURE__ */ I(X, {
2637
2637
  size: 14,
2638
2638
  "aria-hidden": "true"
@@ -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(u, {
2648
+ /* @__PURE__ */ I(s, {
2649
2649
  label: "contributions",
2650
2650
  value: r.acceptanceMode || "open",
2651
2651
  tone: "teal"
2652
2652
  }),
2653
- /* @__PURE__ */ I(u, {
2653
+ /* @__PURE__ */ I(s, {
2654
2654
  label: "access",
2655
2655
  value: r.dataAccess || "members only",
2656
2656
  tone: "amber"
2657
2657
  }),
2658
- /* @__PURE__ */ I(u, {
2658
+ /* @__PURE__ */ I(s, {
2659
2659
  label: "your role",
2660
2660
  value: j
2661
2661
  })
2662
2662
  ]
2663
2663
  }),
2664
- /* @__PURE__ */ I(w, { tiles: [
2664
+ /* @__PURE__ */ I(E, { tiles: [
2665
2665
  {
2666
2666
  key: "transcripts",
2667
2667
  label: "transcripts",
2668
- value: h.transcripts,
2669
- sub: `across ${h.projects}`
2668
+ value: m.transcripts,
2669
+ sub: `across ${m.projects}`
2670
2670
  },
2671
2671
  {
2672
2672
  key: "tokens",
2673
2673
  label: "tokens",
2674
- value: h.tokens,
2675
- sub: h.turns
2674
+ value: m.tokens,
2675
+ sub: m.turns
2676
2676
  },
2677
2677
  {
2678
2678
  key: "contributors",
2679
2679
  label: "contributors",
2680
- value: h.contributors,
2681
- sub: h.hours
2680
+ value: m.contributors,
2681
+ sub: m.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(o, {
2696
+ }), /* @__PURE__ */ I(u, {
2697
2697
  label: "provider share",
2698
2698
  total: 100,
2699
2699
  data: i.map((e) => ({
@@ -2707,7 +2707,7 @@ function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2707
2707
  overflow: "auto",
2708
2708
  maxWidth: "100%"
2709
2709
  },
2710
- children: /* @__PURE__ */ I(y, {
2710
+ children: /* @__PURE__ */ I(b, {
2711
2711
  title: "pending review",
2712
2712
  emptyLabel: "no shares awaiting review.",
2713
2713
  items: a.map((e) => ({
@@ -2749,7 +2749,7 @@ function gt({ data: e = pt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
2749
2749
  className: "cmg-redact-head",
2750
2750
  children: [/* @__PURE__ */ I("span", {
2751
2751
  className: "cmg-redact-badges",
2752
- children: /* @__PURE__ */ I(f, { children: String(e.catLabel || e.cat || "item").toLowerCase() })
2752
+ children: /* @__PURE__ */ I(h, { 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"
@@ -2809,7 +2809,7 @@ 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: () => _?.(),
2812
+ onClick: () => v?.(),
2813
2813
  children: [/* @__PURE__ */ I(ve, {
2814
2814
  size: 14,
2815
2815
  "aria-hidden": "true"
@@ -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
+ }), o.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(x, {
2899
+ children: /* @__PURE__ */ I(_, {
2900
2900
  title: "members",
2901
2901
  roles: ["member", "contributor"],
2902
- members: s.map((e) => ({
2902
+ members: o.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",