@peasant-labs/fairtrade 0.0.38 → 0.0.39
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.
- package/dist/lib/{GraphLegend-7PmEpBZQ.js → GraphLegend-DwLFq2JU.js} +36 -43
- package/dist/lib/analytics.css +1 -1
- package/dist/lib/analytics.js +9 -14
- package/dist/lib/commons.js +139 -139
- package/dist/lib/components.css +1 -1
- package/dist/lib/graph.js +1 -1
- package/dist/lib/tokens.css +1 -0
- package/dist/lib/tokens.json +4 -0
- package/dist/lib/types/transcript/adapter.d.ts +3 -10
- package/dist/lib/types/transcript/adapter.parse.d.ts +31 -3
- package/dist/lib/types/transcript/index.d.ts +1 -1
- package/dist/lib/types/transcript/title.d.ts +15 -0
- package/dist/lib/types/transcript/view-model.d.ts +11 -1
- package/dist/lib/{ui-DIoBcgLp.js → ui-CBsfaQMA.js} +688 -638
- package/dist/lib/ui.js +4 -4
- package/package.json +5 -3
package/dist/lib/commons.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { At as e, Ot as t, Tt as n, ht as r, lt as i, pt as a, ut as o } from "./GraphLegend-
|
|
2
|
-
import {
|
|
1
|
+
import { At as e, Ot as t, Tt as n, ht as r, lt as i, pt as a, ut as o } from "./GraphLegend-DwLFq2JU.js";
|
|
2
|
+
import { $n as s, Ar as c, At as l, Et as u, Nt as d, Ot as f, _n as p, _t as m, cr as h, fr as g, ft as _, gn as v, gt as y, hr as b, jt as x, kt as S, mn as C, pr as w, pt as T, ut as E, vn as D } from "./ui-CBsfaQMA.js";
|
|
3
3
|
import { useEffect as O, useId as k, useMemo as A, useRef as j, useState as M } from "react";
|
|
4
4
|
import { Fragment as N, jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
5
5
|
import { ArrowRight as I, Check as L, ChevronDown as R, ChevronRight as z, ClipboardCheck as B, Compass as V, Copy as H, ExternalLink as U, Eye as W, EyeOff as G, FileText as ee, FolderGit2 as K, GitBranch as q, GitPullRequest as J, Hash as te, KeyRound as Y, LayoutGrid as ne, List as re, Lock as ie, LogOut as ae, MoreHorizontal as X, Plus as oe, Search as se, SearchX as ce, Settings as Z, ShieldAlert as Q, SlidersHorizontal as le, TriangleAlert as ue, Upload as de, User as fe, UserPlus as pe, Users as $, X as me } from "lucide-react";
|
|
@@ -215,7 +215,7 @@ function je({ transcript: e, href: t, onOpen: n }) {
|
|
|
215
215
|
className: "mono",
|
|
216
216
|
children: e.modelName || e.modelProvider
|
|
217
217
|
})]
|
|
218
|
-
}), /* @__PURE__ */ P(
|
|
218
|
+
}), /* @__PURE__ */ P(E, { visibility: e.visibility })]
|
|
219
219
|
}),
|
|
220
220
|
/* @__PURE__ */ P("h3", {
|
|
221
221
|
className: "cex-title",
|
|
@@ -281,7 +281,7 @@ function Me({ transcript: e, href: t, onOpen: n }) {
|
|
|
281
281
|
className: "cex-trow-date mono tnum",
|
|
282
282
|
children: Ce(e.sessionStart || e.sessionEnd || "")
|
|
283
283
|
}),
|
|
284
|
-
/* @__PURE__ */ P(
|
|
284
|
+
/* @__PURE__ */ P(E, { visibility: e.visibility })
|
|
285
285
|
] });
|
|
286
286
|
return t ? /* @__PURE__ */ P("a", {
|
|
287
287
|
href: t,
|
|
@@ -332,7 +332,7 @@ function Ne({ collective: e, href: t, onOpen: n }) {
|
|
|
332
332
|
});
|
|
333
333
|
}
|
|
334
334
|
function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript: a, onOpenProfile: o, onOpenCollective: s, transcriptHref: c, profileHref: l, collectiveHref: u }) {
|
|
335
|
-
let
|
|
335
|
+
let f = ke(e), p = f.transcripts.transcripts, [m, h] = M(""), [g, _] = M(""), [v, y] = M("recent"), [b, S] = M("all"), [C, w] = M(() => /* @__PURE__ */ new Set()), [T, D] = M("grid"), [k, N] = M(() => Ae(f.transcripts.page)), [I, L] = M(null), [R, z] = M("browse"), B = j(!0), H = j(null);
|
|
336
336
|
O(() => {
|
|
337
337
|
if (B.current) {
|
|
338
338
|
B.current = !1, _(m);
|
|
@@ -344,8 +344,8 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
344
344
|
let e = JSON.stringify([
|
|
345
345
|
g,
|
|
346
346
|
v,
|
|
347
|
-
|
|
348
|
-
[...
|
|
347
|
+
b,
|
|
348
|
+
[...C].sort()
|
|
349
349
|
]);
|
|
350
350
|
if (H.current === null || H.current === e) {
|
|
351
351
|
H.current = e;
|
|
@@ -355,13 +355,13 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
355
355
|
}, [
|
|
356
356
|
g,
|
|
357
357
|
v,
|
|
358
|
-
|
|
359
|
-
|
|
358
|
+
b,
|
|
359
|
+
C
|
|
360
360
|
]), O(() => {
|
|
361
361
|
i?.({
|
|
362
362
|
query: g,
|
|
363
|
-
provider:
|
|
364
|
-
topics: [...
|
|
363
|
+
provider: b,
|
|
364
|
+
topics: [...C],
|
|
365
365
|
order: v,
|
|
366
366
|
page: k
|
|
367
367
|
});
|
|
@@ -369,9 +369,9 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
369
369
|
v,
|
|
370
370
|
i,
|
|
371
371
|
k,
|
|
372
|
-
|
|
372
|
+
b,
|
|
373
373
|
g,
|
|
374
|
-
|
|
374
|
+
C
|
|
375
375
|
]);
|
|
376
376
|
let U = p.find((e) => e.id === I) ?? p[0] ?? null, W = U?.owner ?? null, G = W ? p.filter((e) => e.owner.githubUsername === W.githubUsername) : [], K = A(() => {
|
|
377
377
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -389,12 +389,12 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
389
389
|
}, [I, p]);
|
|
390
390
|
let q = A(() => {
|
|
391
391
|
let e = Te(g);
|
|
392
|
-
return e ?
|
|
392
|
+
return e ? f.collectives.filter((t) => [
|
|
393
393
|
t.name,
|
|
394
394
|
t.description,
|
|
395
395
|
t.linkedGithubOrg
|
|
396
396
|
].filter(Boolean).join(" ").toLowerCase().includes(e)) : null;
|
|
397
|
-
}, [
|
|
397
|
+
}, [f.collectives, g]), J = p, te = C.size, Y = f.transcripts.total ?? p.length, ie = k, ae = f.transcripts.limit || p.length || 1, X = (e) => {
|
|
398
398
|
if (a) {
|
|
399
399
|
a(e);
|
|
400
400
|
return;
|
|
@@ -407,7 +407,7 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
407
407
|
}
|
|
408
408
|
U ? (L(U.id), z("profile")) : p[0] && (L(p[0].id), z("profile"));
|
|
409
409
|
}, se = () => {
|
|
410
|
-
h(""), _(""),
|
|
410
|
+
h(""), _(""), y("recent"), S("all"), w(/* @__PURE__ */ new Set()), N(1);
|
|
411
411
|
}, Z = A(() => W ? [...De(G, (e) => e.projectName || "untitled project").entries()].map(([e, t]) => ({
|
|
412
412
|
project: e,
|
|
413
413
|
items: t
|
|
@@ -473,7 +473,7 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
473
473
|
children: [/* @__PURE__ */ P("h2", {
|
|
474
474
|
className: "win-title cex-vtitle",
|
|
475
475
|
children: Ee(U.title || "untitled transcript")
|
|
476
|
-
}), /* @__PURE__ */ P(
|
|
476
|
+
}), /* @__PURE__ */ P(E, { visibility: U.visibility })]
|
|
477
477
|
}),
|
|
478
478
|
/* @__PURE__ */ F("p", {
|
|
479
479
|
className: "cex-vdesc",
|
|
@@ -583,7 +583,7 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
583
583
|
})]
|
|
584
584
|
})]
|
|
585
585
|
}),
|
|
586
|
-
/* @__PURE__ */ P(
|
|
586
|
+
/* @__PURE__ */ P(x, { tiles: [
|
|
587
587
|
{
|
|
588
588
|
key: "transcripts",
|
|
589
589
|
label: "transcripts",
|
|
@@ -659,7 +659,7 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
659
659
|
})]
|
|
660
660
|
})]
|
|
661
661
|
}),
|
|
662
|
-
/* @__PURE__ */ P(
|
|
662
|
+
/* @__PURE__ */ P(x, { tiles: [
|
|
663
663
|
{
|
|
664
664
|
key: "transcripts",
|
|
665
665
|
label: "transcripts",
|
|
@@ -756,19 +756,19 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
756
756
|
})]
|
|
757
757
|
}), /* @__PURE__ */ F("div", {
|
|
758
758
|
className: "cex-explore-body",
|
|
759
|
-
children: [/* @__PURE__ */ P(
|
|
759
|
+
children: [/* @__PURE__ */ P(d, {
|
|
760
760
|
order: v,
|
|
761
|
-
onOrder: (e) =>
|
|
761
|
+
onOrder: (e) => y(e),
|
|
762
762
|
providers: K,
|
|
763
|
-
activeProviders:
|
|
764
|
-
onProvider: (e) =>
|
|
765
|
-
topics:
|
|
763
|
+
activeProviders: b === "all" ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([b]),
|
|
764
|
+
onProvider: (e) => S((t) => t === e ? "all" : e),
|
|
765
|
+
topics: f.popularTags.map((e) => ({
|
|
766
766
|
tag: e.name,
|
|
767
767
|
count: e.usageCount
|
|
768
768
|
})),
|
|
769
|
-
activeTopics:
|
|
769
|
+
activeTopics: C,
|
|
770
770
|
onTopic: (e) => {
|
|
771
|
-
|
|
771
|
+
w((t) => {
|
|
772
772
|
let n = new Set(t);
|
|
773
773
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
774
774
|
});
|
|
@@ -820,7 +820,7 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
820
820
|
/* @__PURE__ */ F("button", {
|
|
821
821
|
type: "button",
|
|
822
822
|
className: "bs-seg-opt",
|
|
823
|
-
"aria-pressed":
|
|
823
|
+
"aria-pressed": T === "grid",
|
|
824
824
|
"aria-label": "grid view",
|
|
825
825
|
onClick: () => D("grid"),
|
|
826
826
|
children: [/* @__PURE__ */ P(ne, { size: 14 }), " grid"]
|
|
@@ -828,7 +828,7 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
828
828
|
/* @__PURE__ */ F("button", {
|
|
829
829
|
type: "button",
|
|
830
830
|
className: "bs-seg-opt",
|
|
831
|
-
"aria-pressed":
|
|
831
|
+
"aria-pressed": T === "list",
|
|
832
832
|
"aria-label": "list view",
|
|
833
833
|
onClick: () => D("list"),
|
|
834
834
|
children: [/* @__PURE__ */ P(re, { size: 14 }), " list"]
|
|
@@ -845,7 +845,7 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
845
845
|
]
|
|
846
846
|
})]
|
|
847
847
|
}),
|
|
848
|
-
J.length === 0 ? g.trim() ||
|
|
848
|
+
J.length === 0 ? g.trim() || b !== "all" || te ? /* @__PURE__ */ F("div", {
|
|
849
849
|
className: "empty cex-empty",
|
|
850
850
|
children: [
|
|
851
851
|
/* @__PURE__ */ P("div", {
|
|
@@ -877,7 +877,7 @@ function Pe({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
877
877
|
/* @__PURE__ */ P("h3", { children: "the commons is empty" }),
|
|
878
878
|
/* @__PURE__ */ P("p", { children: "no transcripts have been shared yet. once contributors publish, they show up here." })
|
|
879
879
|
]
|
|
880
|
-
}) :
|
|
880
|
+
}) : T === "grid" ? /* @__PURE__ */ P("div", {
|
|
881
881
|
className: "cex-grid",
|
|
882
882
|
children: J.map((e) => /* @__PURE__ */ P(je, {
|
|
883
883
|
transcript: e,
|
|
@@ -1521,7 +1521,7 @@ function We() {
|
|
|
1521
1521
|
})]
|
|
1522
1522
|
})
|
|
1523
1523
|
]
|
|
1524
|
-
}), /* @__PURE__ */ P(
|
|
1524
|
+
}), /* @__PURE__ */ P(D, {
|
|
1525
1525
|
open: i,
|
|
1526
1526
|
title: /* @__PURE__ */ F(N, { children: [
|
|
1527
1527
|
"make ",
|
|
@@ -1643,7 +1643,7 @@ function Xe(e, t, n) {
|
|
|
1643
1643
|
}, e));
|
|
1644
1644
|
}
|
|
1645
1645
|
function Ze({ data: e = {}, actions: t = {} } = {}) {
|
|
1646
|
-
let { collectives: n = [], linkedOrgs: r = [], title: i = "collectives", deck: a, crumb: o, caption:
|
|
1646
|
+
let { collectives: n = [], linkedOrgs: r = [], title: i = "collectives", deck: a, crumb: o, caption: l = "collectives", createLabel: u = "new collective", createBusy: d = !1, whoCanPublish: f = Ge, whoCanRead: m = Ke } = e, { onCreateCollective: h, onOpenCollective: g, onSearchCollectives: _ } = t, [v, y] = M(!1), [x, S] = M(""), [C, w] = M(""), [T, E] = M(f[0]?.value ?? ""), [D, O] = M(m[0]?.value ?? ""), [A, j] = M(""), [N, I] = M(""), L = k(), R = [
|
|
1647
1647
|
{
|
|
1648
1648
|
key: "name",
|
|
1649
1649
|
label: "name",
|
|
@@ -1652,7 +1652,7 @@ function Ze({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1652
1652
|
children: [/* @__PURE__ */ P("button", {
|
|
1653
1653
|
type: "button",
|
|
1654
1654
|
className: "cmg-table-link",
|
|
1655
|
-
onClick: () =>
|
|
1655
|
+
onClick: () => g?.(t.id),
|
|
1656
1656
|
children: t.name
|
|
1657
1657
|
}), t.desc ? /* @__PURE__ */ P("span", {
|
|
1658
1658
|
className: "cmg-cell-desc",
|
|
@@ -1704,7 +1704,7 @@ function Ze({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1704
1704
|
children: [
|
|
1705
1705
|
o ? /* @__PURE__ */ P("div", {
|
|
1706
1706
|
className: "cmg-crumb",
|
|
1707
|
-
children: /* @__PURE__ */ P(
|
|
1707
|
+
children: /* @__PURE__ */ P(b, { items: [{ label: o }] })
|
|
1708
1708
|
}) : null,
|
|
1709
1709
|
/* @__PURE__ */ F("header", {
|
|
1710
1710
|
className: "iu-page-head",
|
|
@@ -1724,7 +1724,7 @@ function Ze({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1724
1724
|
"aria-hidden": "true"
|
|
1725
1725
|
}),
|
|
1726
1726
|
" ",
|
|
1727
|
-
v ? "close" :
|
|
1727
|
+
v ? "close" : u
|
|
1728
1728
|
]
|
|
1729
1729
|
})]
|
|
1730
1730
|
}), a ? /* @__PURE__ */ P("p", {
|
|
@@ -1752,8 +1752,8 @@ function Ze({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1752
1752
|
}), /* @__PURE__ */ P("input", {
|
|
1753
1753
|
className: "input",
|
|
1754
1754
|
type: "text",
|
|
1755
|
-
value:
|
|
1756
|
-
onChange: (e) =>
|
|
1755
|
+
value: x,
|
|
1756
|
+
onChange: (e) => S(e.target.value)
|
|
1757
1757
|
})]
|
|
1758
1758
|
}),
|
|
1759
1759
|
/* @__PURE__ */ F("label", {
|
|
@@ -1764,13 +1764,13 @@ function Ze({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1764
1764
|
}), /* @__PURE__ */ P("textarea", {
|
|
1765
1765
|
className: "input",
|
|
1766
1766
|
rows: 2,
|
|
1767
|
-
value:
|
|
1768
|
-
onChange: (e) =>
|
|
1767
|
+
value: C,
|
|
1768
|
+
onChange: (e) => w(e.target.value)
|
|
1769
1769
|
})]
|
|
1770
1770
|
}),
|
|
1771
1771
|
/* @__PURE__ */ P("div", {
|
|
1772
1772
|
className: "cmg-field",
|
|
1773
|
-
children: /* @__PURE__ */ P(
|
|
1773
|
+
children: /* @__PURE__ */ P(p, {
|
|
1774
1774
|
variant: "select",
|
|
1775
1775
|
label: "who can publish",
|
|
1776
1776
|
name: "who-can-publish",
|
|
@@ -1784,13 +1784,13 @@ function Ze({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1784
1784
|
}),
|
|
1785
1785
|
/* @__PURE__ */ P("div", {
|
|
1786
1786
|
className: "cmg-field",
|
|
1787
|
-
children: /* @__PURE__ */ P(
|
|
1787
|
+
children: /* @__PURE__ */ P(p, {
|
|
1788
1788
|
variant: "select",
|
|
1789
1789
|
label: "who can read",
|
|
1790
1790
|
name: "who-can-read",
|
|
1791
1791
|
value: D,
|
|
1792
1792
|
onChange: O,
|
|
1793
|
-
options:
|
|
1793
|
+
options: m
|
|
1794
1794
|
})
|
|
1795
1795
|
}),
|
|
1796
1796
|
/* @__PURE__ */ F("label", {
|
|
@@ -1821,16 +1821,16 @@ function Ze({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1821
1821
|
children: [/* @__PURE__ */ P("button", {
|
|
1822
1822
|
type: "button",
|
|
1823
1823
|
className: "btn btn-sm btn-primary",
|
|
1824
|
-
disabled: !
|
|
1824
|
+
disabled: !x.trim() || d,
|
|
1825
1825
|
"aria-describedby": L,
|
|
1826
|
-
onClick: () =>
|
|
1827
|
-
name:
|
|
1828
|
-
purpose:
|
|
1826
|
+
onClick: () => h?.({
|
|
1827
|
+
name: x,
|
|
1828
|
+
purpose: C,
|
|
1829
1829
|
mode: T,
|
|
1830
1830
|
access: D,
|
|
1831
1831
|
org: A
|
|
1832
1832
|
}),
|
|
1833
|
-
children:
|
|
1833
|
+
children: d ? "creating" : "create collective"
|
|
1834
1834
|
}), /* @__PURE__ */ P("span", {
|
|
1835
1835
|
id: L,
|
|
1836
1836
|
className: "cmg-form-hint mono",
|
|
@@ -1841,8 +1841,8 @@ function Ze({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1841
1841
|
}),
|
|
1842
1842
|
/* @__PURE__ */ F("div", {
|
|
1843
1843
|
className: "cmg-section",
|
|
1844
|
-
children: [/* @__PURE__ */ P(
|
|
1845
|
-
caption: `${
|
|
1844
|
+
children: [/* @__PURE__ */ P(s, {
|
|
1845
|
+
caption: `${l} ${n.length}`,
|
|
1846
1846
|
columns: R,
|
|
1847
1847
|
rows: n,
|
|
1848
1848
|
rowKey: (e) => e.id
|
|
@@ -1851,7 +1851,7 @@ function Ze({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1851
1851
|
children: "in a curated collective, each transcript you publish waits for the owner to approve it."
|
|
1852
1852
|
}) : null]
|
|
1853
1853
|
}),
|
|
1854
|
-
|
|
1854
|
+
_ && /* @__PURE__ */ F("section", {
|
|
1855
1855
|
className: "cmg-section",
|
|
1856
1856
|
"aria-labelledby": `${L}-find`,
|
|
1857
1857
|
children: [/* @__PURE__ */ P("h3", {
|
|
@@ -1862,9 +1862,9 @@ function Ze({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1862
1862
|
className: "cmg-find",
|
|
1863
1863
|
role: "search",
|
|
1864
1864
|
onSubmit: (e) => {
|
|
1865
|
-
e.preventDefault(),
|
|
1865
|
+
e.preventDefault(), _(N);
|
|
1866
1866
|
},
|
|
1867
|
-
children: [/* @__PURE__ */ P(
|
|
1867
|
+
children: [/* @__PURE__ */ P(c, {
|
|
1868
1868
|
label: "collective or github org",
|
|
1869
1869
|
type: "search",
|
|
1870
1870
|
iconLeft: se,
|
|
@@ -1902,7 +1902,7 @@ function $e(e = {}) {
|
|
|
1902
1902
|
};
|
|
1903
1903
|
}
|
|
1904
1904
|
function et({ data: e = {}, actions: t = {} } = {}) {
|
|
1905
|
-
let { owners: n = [], linkedRepos: r = [], hrefFor: i } = e, o = $e(e.collective), { onSettings:
|
|
1905
|
+
let { owners: n = [], linkedRepos: r = [], hrefFor: i } = e, o = $e(e.collective), { onSettings: c, onContribute: l, onReview: d, onOpenTranscript: p, onOpenPullRequest: m, onLinkRepos: h, onShowMore: g } = t, [v, y] = M(!1), x = k(), S = o.transcriptCount ?? o.transcripts.length, C = [
|
|
1906
1906
|
{
|
|
1907
1907
|
key: "title",
|
|
1908
1908
|
label: "title",
|
|
@@ -1917,7 +1917,7 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1917
1917
|
children: [/* @__PURE__ */ P(Ye, {
|
|
1918
1918
|
className: "iu-session-title",
|
|
1919
1919
|
href: i?.("transcript", t.id),
|
|
1920
|
-
onOpen:
|
|
1920
|
+
onOpen: p ? () => p(t.id) : void 0,
|
|
1921
1921
|
children: t.title
|
|
1922
1922
|
}), /* @__PURE__ */ F("span", {
|
|
1923
1923
|
className: "iu-session-sub",
|
|
@@ -1946,7 +1946,7 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1946
1946
|
label: "pull requests",
|
|
1947
1947
|
render: (e, t) => t.pullRequests?.length ? /* @__PURE__ */ F("span", {
|
|
1948
1948
|
className: "cmg-prs",
|
|
1949
|
-
children: [/* @__PURE__ */ P(
|
|
1949
|
+
children: [/* @__PURE__ */ P(u, {
|
|
1950
1950
|
items: Xe(t.pullRequests, m, i),
|
|
1951
1951
|
label: "pull requests",
|
|
1952
1952
|
noun: ["pull request", "pull requests"]
|
|
@@ -1963,7 +1963,7 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1963
1963
|
key: "when",
|
|
1964
1964
|
label: "when"
|
|
1965
1965
|
}
|
|
1966
|
-
],
|
|
1966
|
+
], T = [
|
|
1967
1967
|
{
|
|
1968
1968
|
key: "read",
|
|
1969
1969
|
title: "who can read",
|
|
@@ -1985,7 +1985,7 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1985
1985
|
children: [
|
|
1986
1986
|
/* @__PURE__ */ P("div", {
|
|
1987
1987
|
className: "cmg-crumb-content",
|
|
1988
|
-
children: /* @__PURE__ */ P(
|
|
1988
|
+
children: /* @__PURE__ */ P(b, { items: [{
|
|
1989
1989
|
label: "collectives",
|
|
1990
1990
|
href: i?.("collectives")
|
|
1991
1991
|
}, { label: o.name }] })
|
|
@@ -1996,19 +1996,19 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1996
1996
|
className: "iu-page-titlerow",
|
|
1997
1997
|
children: [/* @__PURE__ */ P("h2", {
|
|
1998
1998
|
className: "iu-page-title iu-page-title-content",
|
|
1999
|
-
id:
|
|
1999
|
+
id: x,
|
|
2000
2000
|
children: o.name
|
|
2001
2001
|
}), /* @__PURE__ */ F("span", {
|
|
2002
2002
|
className: "cmg-actions",
|
|
2003
|
-
children: [o.role === "owner" &&
|
|
2003
|
+
children: [o.role === "owner" && c && /* @__PURE__ */ F("button", {
|
|
2004
2004
|
type: "button",
|
|
2005
2005
|
className: "btn btn-secondary btn-sm",
|
|
2006
|
-
onClick: () =>
|
|
2006
|
+
onClick: () => c(),
|
|
2007
2007
|
children: [/* @__PURE__ */ P(Z, {
|
|
2008
2008
|
size: 14,
|
|
2009
2009
|
"aria-hidden": "true"
|
|
2010
2010
|
}), " settings"]
|
|
2011
|
-
}), (l ||
|
|
2011
|
+
}), (l || d) && /* @__PURE__ */ P(w, {
|
|
2012
2012
|
icon: X,
|
|
2013
2013
|
ariaLabel: "more",
|
|
2014
2014
|
size: "sm",
|
|
@@ -2017,10 +2017,10 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2017
2017
|
label: "publish several transcripts",
|
|
2018
2018
|
icon: de,
|
|
2019
2019
|
onSelect: () => l()
|
|
2020
|
-
}] : [], ...
|
|
2020
|
+
}] : [], ...d ? [{
|
|
2021
2021
|
label: "review transcripts",
|
|
2022
2022
|
icon: B,
|
|
2023
|
-
onSelect: () =>
|
|
2023
|
+
onSelect: () => d()
|
|
2024
2024
|
}] : []]
|
|
2025
2025
|
})]
|
|
2026
2026
|
})]
|
|
@@ -2029,10 +2029,10 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2029
2029
|
children: o.purpose
|
|
2030
2030
|
}) : null]
|
|
2031
2031
|
}),
|
|
2032
|
-
|
|
2032
|
+
T.length > 0 && /* @__PURE__ */ P("ul", {
|
|
2033
2033
|
className: "cmg-policies",
|
|
2034
2034
|
"aria-label": "how this collective works",
|
|
2035
|
-
children:
|
|
2035
|
+
children: T.map((e) => /* @__PURE__ */ F("li", {
|
|
2036
2036
|
className: "cmg-policy",
|
|
2037
2037
|
children: [/* @__PURE__ */ P("h3", {
|
|
2038
2038
|
className: "cmg-policy-title",
|
|
@@ -2043,7 +2043,7 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2043
2043
|
})]
|
|
2044
2044
|
}, e.key))
|
|
2045
2045
|
}),
|
|
2046
|
-
/* @__PURE__ */ P(
|
|
2046
|
+
/* @__PURE__ */ P(f, {
|
|
2047
2047
|
items: o.stats,
|
|
2048
2048
|
label: `${o.name} in numbers`
|
|
2049
2049
|
}),
|
|
@@ -2051,9 +2051,9 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2051
2051
|
className: "cmg-home",
|
|
2052
2052
|
children: [/* @__PURE__ */ F("div", {
|
|
2053
2053
|
className: "cmg-home-main",
|
|
2054
|
-
children: [/* @__PURE__ */ P(
|
|
2055
|
-
caption: `transcripts ${
|
|
2056
|
-
columns:
|
|
2054
|
+
children: [/* @__PURE__ */ P(s, {
|
|
2055
|
+
caption: `transcripts ${S}`,
|
|
2056
|
+
columns: C,
|
|
2057
2057
|
rows: o.transcripts,
|
|
2058
2058
|
rowKey: (e) => e.id
|
|
2059
2059
|
}), /* @__PURE__ */ F("div", {
|
|
@@ -2069,10 +2069,10 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2069
2069
|
" of ",
|
|
2070
2070
|
/* @__PURE__ */ P("span", {
|
|
2071
2071
|
className: "tnum",
|
|
2072
|
-
children:
|
|
2072
|
+
children: S
|
|
2073
2073
|
})
|
|
2074
2074
|
]
|
|
2075
|
-
}),
|
|
2075
|
+
}), S > o.transcripts.length && g && /* @__PURE__ */ P("button", {
|
|
2076
2076
|
type: "button",
|
|
2077
2077
|
className: "btn btn-secondary btn-sm",
|
|
2078
2078
|
onClick: () => g(),
|
|
@@ -2112,7 +2112,7 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2112
2112
|
o.role === "owner" && h && /* @__PURE__ */ P("button", {
|
|
2113
2113
|
type: "button",
|
|
2114
2114
|
className: "btn btn-ghost btn-sm",
|
|
2115
|
-
onClick: () =>
|
|
2115
|
+
onClick: () => y(!0),
|
|
2116
2116
|
children: "manage"
|
|
2117
2117
|
})
|
|
2118
2118
|
]
|
|
@@ -2143,15 +2143,15 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2143
2143
|
})]
|
|
2144
2144
|
})
|
|
2145
2145
|
]
|
|
2146
|
-
}), h && /* @__PURE__ */ P(
|
|
2147
|
-
open:
|
|
2148
|
-
onClose: () =>
|
|
2146
|
+
}), h && /* @__PURE__ */ P(_, {
|
|
2147
|
+
open: v,
|
|
2148
|
+
onClose: () => y(!1),
|
|
2149
2149
|
owners: n,
|
|
2150
2150
|
initialSelected: r,
|
|
2151
2151
|
title: `link repositories from ${o.org?.login ?? "github"}`,
|
|
2152
2152
|
description: `pull requests in linked repos show the transcripts published to ${o.name}.`,
|
|
2153
2153
|
onSave: (e) => {
|
|
2154
|
-
h(e),
|
|
2154
|
+
h(e), y(!1);
|
|
2155
2155
|
}
|
|
2156
2156
|
})] });
|
|
2157
2157
|
}
|
|
@@ -2182,27 +2182,27 @@ var at = {
|
|
|
2182
2182
|
"danger zone": ue
|
|
2183
2183
|
};
|
|
2184
2184
|
function ot({ data: e = {}, actions: t = {} } = {}) {
|
|
2185
|
-
let { owners: n = [], linkedRepos: r = [], showOnPullRequests: i = !1, whoCanPublish: a = Ge, whoCanRead: o = Ke, memberLeavesChoices: s = tt, hrefFor:
|
|
2185
|
+
let { owners: n = [], linkedRepos: r = [], showOnPullRequests: i = !1, whoCanPublish: a = Ge, whoCanRead: o = Ke, memberLeavesChoices: s = tt, hrefFor: l } = e, u = $e(e.collective), d = (e) => (n) => t.onCommit ? t.onCommit(e, n) : Promise.resolve(), [f, p] = M(!1), [g, v] = M(""), x = !!(t.onTransferOwnership || t.onDelete), S = [
|
|
2186
2186
|
"general",
|
|
2187
2187
|
"access",
|
|
2188
2188
|
"members",
|
|
2189
2189
|
"github orgs",
|
|
2190
2190
|
"pull requests",
|
|
2191
|
-
...
|
|
2192
|
-
],
|
|
2191
|
+
...x ? ["danger zone"] : []
|
|
2192
|
+
], C = (e) => `cmg-settings-${e.replace(/ /g, "-")}`;
|
|
2193
2193
|
return /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ F("div", {
|
|
2194
2194
|
className: "iu-page cmg-settings",
|
|
2195
2195
|
children: [
|
|
2196
2196
|
/* @__PURE__ */ P("div", {
|
|
2197
2197
|
className: "cmg-crumb-content",
|
|
2198
|
-
children: /* @__PURE__ */ P(
|
|
2198
|
+
children: /* @__PURE__ */ P(b, { items: [
|
|
2199
2199
|
{
|
|
2200
2200
|
label: "collectives",
|
|
2201
|
-
href:
|
|
2201
|
+
href: l?.("collectives")
|
|
2202
2202
|
},
|
|
2203
2203
|
{
|
|
2204
2204
|
label: u.name,
|
|
2205
|
-
href:
|
|
2205
|
+
href: l?.("collective", u.id)
|
|
2206
2206
|
},
|
|
2207
2207
|
{ label: "settings" }
|
|
2208
2208
|
] })
|
|
@@ -2217,44 +2217,44 @@ function ot({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2217
2217
|
}), ", settings"]
|
|
2218
2218
|
})
|
|
2219
2219
|
}),
|
|
2220
|
-
/* @__PURE__ */ F(
|
|
2221
|
-
sections:
|
|
2222
|
-
id:
|
|
2220
|
+
/* @__PURE__ */ F(T, {
|
|
2221
|
+
sections: S.map((e) => ({
|
|
2222
|
+
id: C(e),
|
|
2223
2223
|
label: e,
|
|
2224
|
-
href: `#${
|
|
2224
|
+
href: `#${C(e)}`,
|
|
2225
2225
|
icon: at[e]
|
|
2226
2226
|
})),
|
|
2227
|
-
currentId:
|
|
2227
|
+
currentId: C(S[0]),
|
|
2228
2228
|
spy: !0,
|
|
2229
2229
|
children: [
|
|
2230
|
-
/* @__PURE__ */ F(
|
|
2230
|
+
/* @__PURE__ */ F(y, {
|
|
2231
2231
|
label: "general",
|
|
2232
2232
|
defaultOpen: !0,
|
|
2233
|
-
id:
|
|
2234
|
-
children: [/* @__PURE__ */ P(
|
|
2233
|
+
id: C("general"),
|
|
2234
|
+
children: [/* @__PURE__ */ P(m, {
|
|
2235
2235
|
label: "name",
|
|
2236
2236
|
control: "text",
|
|
2237
2237
|
value: u.name,
|
|
2238
2238
|
onCommit: d("name")
|
|
2239
|
-
}), /* @__PURE__ */ P(
|
|
2239
|
+
}), /* @__PURE__ */ P(m, {
|
|
2240
2240
|
label: "purpose",
|
|
2241
2241
|
control: "text",
|
|
2242
2242
|
value: u.purpose ?? "",
|
|
2243
2243
|
onCommit: d("purpose")
|
|
2244
2244
|
})]
|
|
2245
2245
|
}),
|
|
2246
|
-
/* @__PURE__ */ F(
|
|
2246
|
+
/* @__PURE__ */ F(y, {
|
|
2247
2247
|
label: "access",
|
|
2248
2248
|
defaultOpen: !0,
|
|
2249
|
-
id:
|
|
2250
|
-
children: [/* @__PURE__ */ P(
|
|
2249
|
+
id: C("access"),
|
|
2250
|
+
children: [/* @__PURE__ */ P(m, {
|
|
2251
2251
|
label: "who can publish",
|
|
2252
2252
|
help: ((e) => e.filter((e) => e.help).map((e) => `${e.label}: ${e.help}`).join(" "))(a),
|
|
2253
2253
|
control: "select",
|
|
2254
2254
|
value: rt(u.mode, a),
|
|
2255
2255
|
options: nt(u.mode, a),
|
|
2256
2256
|
onCommit: d("mode")
|
|
2257
|
-
}), /* @__PURE__ */ P(
|
|
2257
|
+
}), /* @__PURE__ */ P(m, {
|
|
2258
2258
|
label: "who can read",
|
|
2259
2259
|
help: "members read and publish. contributors publish, and read only if who can read allows it.",
|
|
2260
2260
|
control: "select",
|
|
@@ -2263,27 +2263,27 @@ function ot({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2263
2263
|
onCommit: d("access")
|
|
2264
2264
|
})]
|
|
2265
2265
|
}),
|
|
2266
|
-
/* @__PURE__ */ F(
|
|
2266
|
+
/* @__PURE__ */ F(y, {
|
|
2267
2267
|
label: "members",
|
|
2268
2268
|
defaultOpen: !0,
|
|
2269
2269
|
count: u.memberCount ?? null,
|
|
2270
2270
|
noun: ["member", "members"],
|
|
2271
|
-
id:
|
|
2271
|
+
id: C("members"),
|
|
2272
2272
|
children: [
|
|
2273
2273
|
t.onInvite && /* @__PURE__ */ F("form", {
|
|
2274
2274
|
className: "srow cmg-invite",
|
|
2275
2275
|
onSubmit: (e) => {
|
|
2276
|
-
e.preventDefault(), t.onInvite(
|
|
2276
|
+
e.preventDefault(), t.onInvite(g), v("");
|
|
2277
2277
|
},
|
|
2278
|
-
children: [/* @__PURE__ */ P(
|
|
2278
|
+
children: [/* @__PURE__ */ P(c, {
|
|
2279
2279
|
label: "invite by github username",
|
|
2280
|
-
value:
|
|
2281
|
-
onChange: (e) =>
|
|
2280
|
+
value: g,
|
|
2281
|
+
onChange: (e) => v(e.target.value),
|
|
2282
2282
|
placeholder: "github username"
|
|
2283
2283
|
}), /* @__PURE__ */ P("button", {
|
|
2284
2284
|
type: "submit",
|
|
2285
2285
|
className: "btn btn-secondary btn-sm",
|
|
2286
|
-
disabled: !
|
|
2286
|
+
disabled: !g.trim(),
|
|
2287
2287
|
children: "invite"
|
|
2288
2288
|
})]
|
|
2289
2289
|
}),
|
|
@@ -2293,7 +2293,7 @@ function ot({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2293
2293
|
children: u.members.map((e) => /* @__PURE__ */ F("li", {
|
|
2294
2294
|
className: "cmg-member",
|
|
2295
2295
|
children: [
|
|
2296
|
-
/* @__PURE__ */ P(
|
|
2296
|
+
/* @__PURE__ */ P(h, {
|
|
2297
2297
|
name: e.name ?? e.handle,
|
|
2298
2298
|
size: "sm"
|
|
2299
2299
|
}),
|
|
@@ -2339,7 +2339,7 @@ function ot({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2339
2339
|
]
|
|
2340
2340
|
}, e.handle))
|
|
2341
2341
|
}),
|
|
2342
|
-
/* @__PURE__ */ P(
|
|
2342
|
+
/* @__PURE__ */ P(m, {
|
|
2343
2343
|
label: "when a member leaves",
|
|
2344
2344
|
help: "what happens to the transcripts they published here.",
|
|
2345
2345
|
control: "select",
|
|
@@ -2349,12 +2349,12 @@ function ot({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2349
2349
|
})
|
|
2350
2350
|
]
|
|
2351
2351
|
}),
|
|
2352
|
-
/* @__PURE__ */ P(
|
|
2352
|
+
/* @__PURE__ */ P(y, {
|
|
2353
2353
|
label: "github orgs",
|
|
2354
2354
|
defaultOpen: !0,
|
|
2355
2355
|
count: u.org === void 0 ? null : +!!u.org,
|
|
2356
2356
|
noun: ["org", "orgs"],
|
|
2357
|
-
id:
|
|
2357
|
+
id: C("github orgs"),
|
|
2358
2358
|
children: /* @__PURE__ */ F("div", {
|
|
2359
2359
|
className: "srow",
|
|
2360
2360
|
children: [/* @__PURE__ */ F("span", {
|
|
@@ -2385,12 +2385,12 @@ function ot({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2385
2385
|
})]
|
|
2386
2386
|
})
|
|
2387
2387
|
}),
|
|
2388
|
-
/* @__PURE__ */ P(
|
|
2388
|
+
/* @__PURE__ */ P(y, {
|
|
2389
2389
|
label: "pull requests",
|
|
2390
2390
|
defaultOpen: !0,
|
|
2391
2391
|
count: 1,
|
|
2392
|
-
id:
|
|
2393
|
-
children: /* @__PURE__ */ P(
|
|
2392
|
+
id: C("pull requests"),
|
|
2393
|
+
children: /* @__PURE__ */ P(m, {
|
|
2394
2394
|
label: "show transcripts on pull requests",
|
|
2395
2395
|
help: "adds a peasant / prompts comment and check on pull requests in this collective's repos, listing which commits have transcripts. it never blocks merging.",
|
|
2396
2396
|
control: "switch",
|
|
@@ -2398,11 +2398,11 @@ function ot({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2398
2398
|
onCommit: d("showOnPullRequests")
|
|
2399
2399
|
})
|
|
2400
2400
|
}),
|
|
2401
|
-
|
|
2401
|
+
x && /* @__PURE__ */ F(y, {
|
|
2402
2402
|
label: "danger zone",
|
|
2403
2403
|
defaultOpen: !0,
|
|
2404
2404
|
count: null,
|
|
2405
|
-
id:
|
|
2405
|
+
id: C("danger zone"),
|
|
2406
2406
|
children: [t.onTransferOwnership && /* @__PURE__ */ F("div", {
|
|
2407
2407
|
className: "srow",
|
|
2408
2408
|
children: [/* @__PURE__ */ P("span", {
|
|
@@ -2443,7 +2443,7 @@ function ot({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2443
2443
|
]
|
|
2444
2444
|
})
|
|
2445
2445
|
]
|
|
2446
|
-
}), t.onLinkRepos && /* @__PURE__ */ P(
|
|
2446
|
+
}), t.onLinkRepos && /* @__PURE__ */ P(_, {
|
|
2447
2447
|
open: f,
|
|
2448
2448
|
onClose: () => p(!1),
|
|
2449
2449
|
owners: n,
|
|
@@ -2500,8 +2500,8 @@ function dt(e) {
|
|
|
2500
2500
|
}).format(t).toLowerCase();
|
|
2501
2501
|
}
|
|
2502
2502
|
function ft({ data: e = lt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
2503
|
-
let { collective: r = st, providerShare: i = [], pendingReview: a = [], members: o = [], redactions:
|
|
2504
|
-
D(e),
|
|
2503
|
+
let { collective: r = st, providerShare: i = [], pendingReview: a = [], members: o = [], redactions: s = [], browseRows: c = [], roleOptions: u = [], initialRole: d = "", initialShowRedaction: f = !1, initialBrowseGated: p = !1, stats: m = ct } = e || lt, { onRoleChange: h, onJoin: _, onLeave: y, onSettings: b, onContribute: w, onToggleBrowse: T } = t || {}, [E, D] = M(d || r.role || ""), [O, k] = M(!!f), [j, N] = M(!!p), I = E || r.role || "guest", L = I === "owner", R = I === "guest", B = n && u.length > 0, V = A(() => B ? u : [], [B, u]), H = (e) => {
|
|
2504
|
+
D(e), h?.(e);
|
|
2505
2505
|
};
|
|
2506
2506
|
return /* @__PURE__ */ P("div", {
|
|
2507
2507
|
className: "cmg-root",
|
|
@@ -2580,16 +2580,16 @@ function ft({ data: e = lt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2580
2580
|
R ? /* @__PURE__ */ F("button", {
|
|
2581
2581
|
type: "button",
|
|
2582
2582
|
className: "btn btn-sm btn-primary",
|
|
2583
|
-
onClick: () =>
|
|
2583
|
+
onClick: () => _?.(),
|
|
2584
2584
|
children: [/* @__PURE__ */ P(pe, {
|
|
2585
2585
|
size: 14,
|
|
2586
2586
|
"aria-hidden": "true"
|
|
2587
2587
|
}), " join as contributor"]
|
|
2588
2588
|
}) : null,
|
|
2589
|
-
(I === "member" || I === "contributor") &&
|
|
2589
|
+
(I === "member" || I === "contributor") && w ? /* @__PURE__ */ F("button", {
|
|
2590
2590
|
type: "button",
|
|
2591
2591
|
className: "btn btn-sm btn-primary",
|
|
2592
|
-
onClick: () =>
|
|
2592
|
+
onClick: () => w?.(),
|
|
2593
2593
|
children: [/* @__PURE__ */ P(Q, {
|
|
2594
2594
|
size: 14,
|
|
2595
2595
|
"aria-hidden": "true"
|
|
@@ -2604,10 +2604,10 @@ function ft({ data: e = lt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2604
2604
|
"aria-hidden": "true"
|
|
2605
2605
|
}), " leave"]
|
|
2606
2606
|
}) : null,
|
|
2607
|
-
L &&
|
|
2607
|
+
L && b ? /* @__PURE__ */ F("button", {
|
|
2608
2608
|
type: "button",
|
|
2609
2609
|
className: "btn btn-sm btn-secondary",
|
|
2610
|
-
onClick: () =>
|
|
2610
|
+
onClick: () => b?.(),
|
|
2611
2611
|
children: [/* @__PURE__ */ P(Z, {
|
|
2612
2612
|
size: 14,
|
|
2613
2613
|
"aria-hidden": "true"
|
|
@@ -2620,40 +2620,40 @@ function ft({ data: e = lt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2620
2620
|
/* @__PURE__ */ F("div", {
|
|
2621
2621
|
className: "cmg-tiles",
|
|
2622
2622
|
children: [
|
|
2623
|
-
/* @__PURE__ */ P(
|
|
2623
|
+
/* @__PURE__ */ P(S, {
|
|
2624
2624
|
label: "contributions",
|
|
2625
2625
|
value: r.acceptanceMode || "open",
|
|
2626
2626
|
tone: "teal"
|
|
2627
2627
|
}),
|
|
2628
|
-
/* @__PURE__ */ P(
|
|
2628
|
+
/* @__PURE__ */ P(S, {
|
|
2629
2629
|
label: "access",
|
|
2630
2630
|
value: r.dataAccess || "members only",
|
|
2631
2631
|
tone: "amber"
|
|
2632
2632
|
}),
|
|
2633
|
-
/* @__PURE__ */ P(
|
|
2633
|
+
/* @__PURE__ */ P(S, {
|
|
2634
2634
|
label: "your role",
|
|
2635
2635
|
value: I
|
|
2636
2636
|
})
|
|
2637
2637
|
]
|
|
2638
2638
|
}),
|
|
2639
|
-
/* @__PURE__ */ P(
|
|
2639
|
+
/* @__PURE__ */ P(x, { tiles: [
|
|
2640
2640
|
{
|
|
2641
2641
|
key: "transcripts",
|
|
2642
2642
|
label: "transcripts",
|
|
2643
|
-
value:
|
|
2644
|
-
sub: `across ${
|
|
2643
|
+
value: m.transcripts,
|
|
2644
|
+
sub: `across ${m.projects}`
|
|
2645
2645
|
},
|
|
2646
2646
|
{
|
|
2647
2647
|
key: "tokens",
|
|
2648
2648
|
label: "tokens",
|
|
2649
|
-
value:
|
|
2650
|
-
sub:
|
|
2649
|
+
value: m.tokens,
|
|
2650
|
+
sub: m.turns
|
|
2651
2651
|
},
|
|
2652
2652
|
{
|
|
2653
2653
|
key: "contributors",
|
|
2654
2654
|
label: "contributors",
|
|
2655
|
-
value:
|
|
2656
|
-
sub:
|
|
2655
|
+
value: m.contributors,
|
|
2656
|
+
sub: m.hours
|
|
2657
2657
|
}
|
|
2658
2658
|
] }),
|
|
2659
2659
|
/* @__PURE__ */ F("div", {
|
|
@@ -2668,7 +2668,7 @@ function ft({ data: e = lt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2668
2668
|
id: "cmg-share-h",
|
|
2669
2669
|
className: "cmg-sub",
|
|
2670
2670
|
children: "provider share"
|
|
2671
|
-
}), /* @__PURE__ */ P(
|
|
2671
|
+
}), /* @__PURE__ */ P(l, {
|
|
2672
2672
|
label: "provider share",
|
|
2673
2673
|
total: 100,
|
|
2674
2674
|
data: i.map((e) => ({
|
|
@@ -2682,7 +2682,7 @@ function ft({ data: e = lt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2682
2682
|
overflow: "auto",
|
|
2683
2683
|
maxWidth: "100%"
|
|
2684
2684
|
},
|
|
2685
|
-
children: /* @__PURE__ */ P(
|
|
2685
|
+
children: /* @__PURE__ */ P(v, {
|
|
2686
2686
|
title: "pending review",
|
|
2687
2687
|
emptyLabel: "no shares awaiting review.",
|
|
2688
2688
|
items: a.map((e) => ({
|
|
@@ -2693,7 +2693,7 @@ function ft({ data: e = lt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2693
2693
|
}))
|
|
2694
2694
|
})
|
|
2695
2695
|
}) : null,
|
|
2696
|
-
|
|
2696
|
+
s.length > 0 ? /* @__PURE__ */ F("section", {
|
|
2697
2697
|
className: "card cmg-redact-sec",
|
|
2698
2698
|
"aria-labelledby": "cmg-redact-h",
|
|
2699
2699
|
children: [/* @__PURE__ */ F("div", {
|
|
@@ -2717,14 +2717,14 @@ function ft({ data: e = lt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2717
2717
|
})]
|
|
2718
2718
|
}), O ? /* @__PURE__ */ P("div", {
|
|
2719
2719
|
className: "cmg-redact-list",
|
|
2720
|
-
children:
|
|
2720
|
+
children: s.map((e) => /* @__PURE__ */ F("article", {
|
|
2721
2721
|
className: "cmg-redact",
|
|
2722
2722
|
children: [
|
|
2723
2723
|
/* @__PURE__ */ F("div", {
|
|
2724
2724
|
className: "cmg-redact-head",
|
|
2725
2725
|
children: [/* @__PURE__ */ P("span", {
|
|
2726
2726
|
className: "cmg-redact-badges",
|
|
2727
|
-
children: /* @__PURE__ */ P(
|
|
2727
|
+
children: /* @__PURE__ */ P(g, { children: String(e.catLabel || e.cat || "item").toLowerCase() })
|
|
2728
2728
|
}), /* @__PURE__ */ P("span", {
|
|
2729
2729
|
className: "cmg-redact-file mono",
|
|
2730
2730
|
children: e.file || "unknown"
|
|
@@ -2761,7 +2761,7 @@ function ft({ data: e = lt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2761
2761
|
onClick: () => {
|
|
2762
2762
|
N((e) => {
|
|
2763
2763
|
let t = !e;
|
|
2764
|
-
return
|
|
2764
|
+
return T?.(t), t;
|
|
2765
2765
|
});
|
|
2766
2766
|
},
|
|
2767
2767
|
children: [P(j ? ie : W, {
|
|
@@ -2784,14 +2784,14 @@ function ft({ data: e = lt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2784
2784
|
R ? /* @__PURE__ */ F("button", {
|
|
2785
2785
|
type: "button",
|
|
2786
2786
|
className: "btn btn-sm btn-primary",
|
|
2787
|
-
onClick: () =>
|
|
2787
|
+
onClick: () => _?.(),
|
|
2788
2788
|
children: [/* @__PURE__ */ P(pe, {
|
|
2789
2789
|
size: 14,
|
|
2790
2790
|
"aria-hidden": "true"
|
|
2791
2791
|
}), " join as contributor"]
|
|
2792
2792
|
}) : null
|
|
2793
2793
|
]
|
|
2794
|
-
}) :
|
|
2794
|
+
}) : c.length > 0 ? /* @__PURE__ */ F("table", {
|
|
2795
2795
|
className: "dtable cmg-dtable",
|
|
2796
2796
|
children: [/* @__PURE__ */ P("thead", { children: /* @__PURE__ */ F("tr", { children: [
|
|
2797
2797
|
/* @__PURE__ */ P("th", {
|
|
@@ -2820,7 +2820,7 @@ function ft({ data: e = lt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2820
2820
|
scope: "col",
|
|
2821
2821
|
children: "date"
|
|
2822
2822
|
})
|
|
2823
|
-
] }) }), /* @__PURE__ */ P("tbody", { children:
|
|
2823
|
+
] }) }), /* @__PURE__ */ P("tbody", { children: c.map((e) => /* @__PURE__ */ F("tr", { children: [
|
|
2824
2824
|
/* @__PURE__ */ P("td", { children: e.title || "untitled transcript" }),
|
|
2825
2825
|
/* @__PURE__ */ P("td", {
|
|
2826
2826
|
className: "mono",
|
|
@@ -2871,7 +2871,7 @@ function ft({ data: e = lt, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2871
2871
|
overflow: "auto",
|
|
2872
2872
|
maxWidth: "100%"
|
|
2873
2873
|
},
|
|
2874
|
-
children: /* @__PURE__ */ P(
|
|
2874
|
+
children: /* @__PURE__ */ P(C, {
|
|
2875
2875
|
title: "members",
|
|
2876
2876
|
roles: ["member", "contributor"],
|
|
2877
2877
|
members: o.map((e) => ({
|