@peasant-labs/fairtrade 0.0.16 → 0.0.18
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/{InUseShell-CY5Acw6t.js → GraphLegend-D9bZVLfT.js} +764 -553
- package/dist/lib/commons.js +139 -139
- package/dist/lib/graph.css +1 -1
- package/dist/lib/graph.js +921 -359
- package/dist/lib/types/graph/index.d.ts +16 -0
- package/dist/lib/types/transcript/CheckRow.d.ts +3 -1
- package/dist/lib/types/transcript/OutcomeChip.d.ts +18 -0
- package/dist/lib/types/transcript/filters.d.ts +127 -0
- package/dist/lib/types/transcript/graph/engine/GraphControls.d.ts +13 -0
- package/dist/lib/types/transcript/graph/engine/TrajectoryGraph.d.ts +18 -0
- package/dist/lib/types/transcript/graph/engine/TrajectoryGraphLegend.d.ts +18 -0
- package/dist/lib/types/transcript/graph/engine/constants.d.ts +37 -0
- package/dist/lib/types/transcript/graph/engine/index.d.ts +23 -0
- package/dist/lib/types/transcript/graph/engine/nodes/SubagentBranchNode.d.ts +11 -0
- package/dist/lib/types/transcript/graph/engine/nodes/ToolPillNode.d.ts +11 -0
- package/dist/lib/types/transcript/graph/engine/nodes/TurnCardNode.d.ts +11 -0
- package/dist/lib/types/transcript/graph/engine/turnsToFlow.d.ts +47 -0
- package/dist/lib/types/transcript/graph/engine/types.d.ts +131 -0
- package/dist/lib/types/transcript/graph/engine/useCanvasSync.d.ts +17 -0
- package/dist/lib/types/transcript/index.d.ts +5 -0
- package/dist/lib/types/transcript/time.d.ts +22 -0
- package/dist/lib/types/transcript/title.d.ts +48 -0
- package/dist/lib/types/transcript/turnNav.d.ts +9 -0
- package/dist/lib/types/transcript/view-model.d.ts +22 -0
- package/dist/lib/{ui-CLo_683m.js → ui-BtpmsgDx.js} +2564 -2533
- package/dist/lib/ui.js +4 -4
- package/package.json +20 -5
package/dist/lib/commons.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { At as e, Bn as t, In as n, Mt as r, Nn as i, Nt as a, Ot as o, Pt as s, Rn as c, at as l, bn as u, gn as d, it as f, kt as p, rt as m, st as h, tt as g, zn as _ } from "./ui-BtpmsgDx.js";
|
|
2
|
+
import { dt as v, lt as y, xt as b } from "./GraphLegend-D9bZVLfT.js";
|
|
3
3
|
import { useEffect as x, useId as S, useMemo as C, useRef as w, useState as T } from "react";
|
|
4
4
|
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
5
5
|
import { AlertTriangle as k, ArrowRight as A, Check as j, ChevronDown as M, ChevronRight as N, CircleDot as P, Compass as F, Copy as I, ExternalLink as L, Eye as R, EyeOff as z, FileText as B, FolderGit2 as V, GitBranch as H, Hash as U, LayoutGrid as ee, List as te, Lock as W, LogOut as G, Plus as K, SearchX as ne, Settings as re, ShieldAlert as q, ShieldCheck as J, Upload as ie, User as ae, UserPlus as Y, Users as X, X as Z } from "lucide-react";
|
|
@@ -215,14 +215,14 @@ function be({ transcript: e, href: t, onOpen: n }) {
|
|
|
215
215
|
className: "card-head",
|
|
216
216
|
children: [/* @__PURE__ */ O("span", {
|
|
217
217
|
className: "metaitem cex-model",
|
|
218
|
-
children: [/* @__PURE__ */ D(
|
|
218
|
+
children: [/* @__PURE__ */ D(v, {
|
|
219
219
|
harness: e.modelProvider,
|
|
220
220
|
accent: !0
|
|
221
221
|
}), /* @__PURE__ */ D("span", {
|
|
222
222
|
className: "mono",
|
|
223
223
|
children: e.modelName || e.modelProvider
|
|
224
224
|
})]
|
|
225
|
-
}), /* @__PURE__ */ D(
|
|
225
|
+
}), /* @__PURE__ */ D(g, { visibility: e.visibility })]
|
|
226
226
|
}),
|
|
227
227
|
/* @__PURE__ */ D("h3", {
|
|
228
228
|
className: "cex-title",
|
|
@@ -270,7 +270,7 @@ function xe({ transcript: e, href: t, onOpen: n }) {
|
|
|
270
270
|
let r = /* @__PURE__ */ O(E, { children: [
|
|
271
271
|
/* @__PURE__ */ O("span", {
|
|
272
272
|
className: "cex-trow-model",
|
|
273
|
-
children: [/* @__PURE__ */ D(
|
|
273
|
+
children: [/* @__PURE__ */ D(v, { harness: e.modelProvider }), /* @__PURE__ */ D("b", { children: e.modelName || e.modelProvider })]
|
|
274
274
|
}),
|
|
275
275
|
/* @__PURE__ */ D("span", {
|
|
276
276
|
className: "cex-trow-title",
|
|
@@ -288,7 +288,7 @@ function xe({ transcript: e, href: t, onOpen: n }) {
|
|
|
288
288
|
className: "cex-trow-date mono tnum",
|
|
289
289
|
children: fe(e.sessionStart || e.sessionEnd || "")
|
|
290
290
|
}),
|
|
291
|
-
/* @__PURE__ */ D(
|
|
291
|
+
/* @__PURE__ */ D(g, { visibility: e.visibility })
|
|
292
292
|
] });
|
|
293
293
|
return t ? /* @__PURE__ */ D("a", {
|
|
294
294
|
href: t,
|
|
@@ -338,19 +338,19 @@ function Se({ collective: e, href: t, onOpen: n }) {
|
|
|
338
338
|
children: r
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
|
-
function Ce({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript: r, onOpenProfile: i, onOpenCollective: a, transcriptHref: o, profileHref: s, collectiveHref:
|
|
342
|
-
let d = ve(e),
|
|
341
|
+
function Ce({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript: r, onOpenProfile: i, onOpenCollective: a, transcriptHref: o, profileHref: s, collectiveHref: c }) {
|
|
342
|
+
let d = ve(e), f = d.transcripts.transcripts, [p, m] = T(""), [_, y] = T(""), [b, S] = T("recent"), [E, k] = T("all"), [A, j] = T(() => /* @__PURE__ */ new Set()), [M, N] = T("grid"), [P, I] = T(() => ye(d.transcripts.page)), [L, R] = T(null), [z, V] = T("browse"), H = w(!0), U = w(null);
|
|
343
343
|
x(() => {
|
|
344
344
|
if (H.current) {
|
|
345
|
-
H.current = !1,
|
|
345
|
+
H.current = !1, y(p);
|
|
346
346
|
return;
|
|
347
347
|
}
|
|
348
|
-
let e = setTimeout(() =>
|
|
348
|
+
let e = setTimeout(() => y(p), 250);
|
|
349
349
|
return () => clearTimeout(e);
|
|
350
|
-
}, [H,
|
|
350
|
+
}, [H, p]), x(() => {
|
|
351
351
|
let e = JSON.stringify([
|
|
352
352
|
_,
|
|
353
|
-
|
|
353
|
+
b,
|
|
354
354
|
E,
|
|
355
355
|
[...A].sort()
|
|
356
356
|
]);
|
|
@@ -361,7 +361,7 @@ function Ce({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
361
361
|
U.current = e, I(1);
|
|
362
362
|
}, [
|
|
363
363
|
_,
|
|
364
|
-
|
|
364
|
+
b,
|
|
365
365
|
E,
|
|
366
366
|
A
|
|
367
367
|
]), x(() => {
|
|
@@ -369,31 +369,31 @@ function Ce({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
369
369
|
query: _,
|
|
370
370
|
provider: E,
|
|
371
371
|
topics: [...A],
|
|
372
|
-
order:
|
|
372
|
+
order: b,
|
|
373
373
|
page: P
|
|
374
374
|
});
|
|
375
375
|
}, [
|
|
376
|
-
|
|
376
|
+
b,
|
|
377
377
|
n,
|
|
378
378
|
P,
|
|
379
379
|
E,
|
|
380
380
|
_,
|
|
381
381
|
A
|
|
382
382
|
]);
|
|
383
|
-
let W =
|
|
383
|
+
let W = f.find((e) => e.id === L) ?? f[0] ?? null, G = W?.owner ?? null, K = G ? f.filter((e) => e.owner.githubUsername === G.githubUsername) : [], re = C(() => {
|
|
384
384
|
let e = /* @__PURE__ */ new Map();
|
|
385
|
-
for (let t of
|
|
385
|
+
for (let t of f) e.set(t.modelProvider, (e.get(t.modelProvider) || 0) + 1);
|
|
386
386
|
return [{
|
|
387
387
|
slug: "all",
|
|
388
|
-
count:
|
|
388
|
+
count: f.length
|
|
389
389
|
}, ...[...e.entries()].map(([e, t]) => ({
|
|
390
390
|
slug: e,
|
|
391
391
|
count: t
|
|
392
392
|
}))];
|
|
393
|
-
}, [
|
|
393
|
+
}, [f]);
|
|
394
394
|
x(() => {
|
|
395
|
-
L && !
|
|
396
|
-
}, [L,
|
|
395
|
+
L && !f.some((e) => e.id === L) && (R(null), V("browse"));
|
|
396
|
+
}, [L, f]);
|
|
397
397
|
let q = C(() => {
|
|
398
398
|
let e = me(_);
|
|
399
399
|
return e ? d.collectives.filter((t) => [
|
|
@@ -401,7 +401,7 @@ function Ce({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
401
401
|
t.description,
|
|
402
402
|
t.linkedGithubOrg
|
|
403
403
|
].filter(Boolean).join(" ").toLowerCase().includes(e)) : null;
|
|
404
|
-
}, [d.collectives, _]), J =
|
|
404
|
+
}, [d.collectives, _]), J = f, ie = A.size, Y = d.transcripts.total ?? f.length, X = P, Z = d.transcripts.limit || f.length || 1, oe = (e) => {
|
|
405
405
|
if (r) {
|
|
406
406
|
r(e);
|
|
407
407
|
return;
|
|
@@ -412,9 +412,9 @@ function Ce({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
412
412
|
i(G);
|
|
413
413
|
return;
|
|
414
414
|
}
|
|
415
|
-
W ? (R(W.id), V("profile")) :
|
|
415
|
+
W ? (R(W.id), V("profile")) : f[0] && (R(f[0].id), V("profile"));
|
|
416
416
|
}, ce = () => {
|
|
417
|
-
|
|
417
|
+
m(""), y(""), S("recent"), k("all"), j(/* @__PURE__ */ new Set()), I(1);
|
|
418
418
|
}, Q = C(() => G ? [...ge(K, (e) => e.projectName || "untitled project").entries()].map(([e, t]) => ({
|
|
419
419
|
project: e,
|
|
420
420
|
items: t
|
|
@@ -480,7 +480,7 @@ function Ce({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
480
480
|
children: [/* @__PURE__ */ D("h2", {
|
|
481
481
|
className: "win-title cex-vtitle",
|
|
482
482
|
children: he(W.title || "untitled transcript")
|
|
483
|
-
}), /* @__PURE__ */ D(
|
|
483
|
+
}), /* @__PURE__ */ D(g, { visibility: W.visibility })]
|
|
484
484
|
}),
|
|
485
485
|
/* @__PURE__ */ O("p", {
|
|
486
486
|
className: "cex-vdesc",
|
|
@@ -495,7 +495,7 @@ function Ce({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
495
495
|
children: [
|
|
496
496
|
/* @__PURE__ */ O("span", {
|
|
497
497
|
className: "metaitem",
|
|
498
|
-
children: [/* @__PURE__ */ D(
|
|
498
|
+
children: [/* @__PURE__ */ D(v, {
|
|
499
499
|
harness: W.modelProvider,
|
|
500
500
|
accent: !0
|
|
501
501
|
}), /* @__PURE__ */ D("span", { children: W.modelName || W.modelProvider })]
|
|
@@ -590,7 +590,7 @@ function Ce({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
590
590
|
})]
|
|
591
591
|
})]
|
|
592
592
|
}),
|
|
593
|
-
/* @__PURE__ */ D(
|
|
593
|
+
/* @__PURE__ */ D(l, { tiles: [
|
|
594
594
|
{
|
|
595
595
|
key: "transcripts",
|
|
596
596
|
label: "transcripts",
|
|
@@ -666,7 +666,7 @@ function Ce({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
666
666
|
})]
|
|
667
667
|
})]
|
|
668
668
|
}),
|
|
669
|
-
/* @__PURE__ */ D(
|
|
669
|
+
/* @__PURE__ */ D(l, { tiles: [
|
|
670
670
|
{
|
|
671
671
|
key: "transcripts",
|
|
672
672
|
label: "transcripts",
|
|
@@ -752,15 +752,15 @@ function Ce({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
752
752
|
children: [/* @__PURE__ */ D("input", {
|
|
753
753
|
className: "input",
|
|
754
754
|
type: "text",
|
|
755
|
-
value:
|
|
756
|
-
onChange: (e) =>
|
|
755
|
+
value: p,
|
|
756
|
+
onChange: (e) => m(e.target.value),
|
|
757
757
|
placeholder: "search transcripts, collectives, projects, models...",
|
|
758
758
|
"aria-label": "search transcripts, collectives, projects, models"
|
|
759
|
-
}),
|
|
759
|
+
}), p && /* @__PURE__ */ D("button", {
|
|
760
760
|
type: "button",
|
|
761
761
|
className: "cex-clear",
|
|
762
762
|
"aria-label": "clear search",
|
|
763
|
-
onClick: () =>
|
|
763
|
+
onClick: () => m(""),
|
|
764
764
|
children: /* @__PURE__ */ D(ne, {
|
|
765
765
|
size: 14,
|
|
766
766
|
"aria-hidden": "true"
|
|
@@ -770,8 +770,8 @@ function Ce({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
770
770
|
]
|
|
771
771
|
}), /* @__PURE__ */ O("div", {
|
|
772
772
|
className: "cex-explore-body",
|
|
773
|
-
children: [/* @__PURE__ */ D(
|
|
774
|
-
order:
|
|
773
|
+
children: [/* @__PURE__ */ D(h, {
|
|
774
|
+
order: b,
|
|
775
775
|
onOrder: (e) => S(e),
|
|
776
776
|
providers: re,
|
|
777
777
|
activeProviders: E === "all" ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([E]),
|
|
@@ -811,7 +811,7 @@ function Ce({ data: e, className: t = "", onFiltersChange: n, onOpenTranscript:
|
|
|
811
811
|
className: "cex-coll-grid",
|
|
812
812
|
children: q.map((e) => /* @__PURE__ */ D(Se, {
|
|
813
813
|
collective: e,
|
|
814
|
-
href:
|
|
814
|
+
href: c?.(e),
|
|
815
815
|
onOpen: a
|
|
816
816
|
}, e.id))
|
|
817
817
|
})]
|
|
@@ -924,7 +924,7 @@ function we(e) {
|
|
|
924
924
|
return String(e || "unknown").replace(/[-_]+/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
|
|
925
925
|
}
|
|
926
926
|
function Te(e) {
|
|
927
|
-
return
|
|
927
|
+
return b(e);
|
|
928
928
|
}
|
|
929
929
|
//#endregion
|
|
930
930
|
//#region src/mockups/inuse/CommonsManage.jsx
|
|
@@ -1369,8 +1369,8 @@ function Fe({ mode: e }) {
|
|
|
1369
1369
|
children: t ? t.short.toLowerCase() : e
|
|
1370
1370
|
});
|
|
1371
1371
|
}
|
|
1372
|
-
function Ie({ data: e = {}, actions:
|
|
1373
|
-
let { collectives:
|
|
1372
|
+
function Ie({ data: e = {}, actions: t = {} } = {}) {
|
|
1373
|
+
let { collectives: n = Pe, linkedOrgs: r = Ne, title: i = "collectives", deck: o = "groups that govern shared data together.", crumb: s = "collectives", createLabel: c = "new collective", createBusy: l = !1 } = e, { onCreateCollective: u, onOpenCollective: d } = t, [f, p] = T(!1), [m, h] = T(""), [g, _] = T(""), [v, y] = T("open"), [b, x] = T("members_only"), [C, w] = T(""), k = S();
|
|
1374
1374
|
return /* @__PURE__ */ D("div", {
|
|
1375
1375
|
className: "cmg-root",
|
|
1376
1376
|
children: /* @__PURE__ */ O("div", {
|
|
@@ -1395,7 +1395,7 @@ function Ie({ data: e = {}, actions: n = {} } = {}) {
|
|
|
1395
1395
|
className: "cmg-head",
|
|
1396
1396
|
children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("h2", {
|
|
1397
1397
|
className: "cmg-title",
|
|
1398
|
-
children:
|
|
1398
|
+
children: i
|
|
1399
1399
|
}), /* @__PURE__ */ D("p", {
|
|
1400
1400
|
className: "cmg-deck",
|
|
1401
1401
|
children: o
|
|
@@ -1450,7 +1450,7 @@ function Ie({ data: e = {}, actions: n = {} } = {}) {
|
|
|
1450
1450
|
}),
|
|
1451
1451
|
/* @__PURE__ */ D("div", {
|
|
1452
1452
|
className: "cmg-field",
|
|
1453
|
-
children: /* @__PURE__ */ D(
|
|
1453
|
+
children: /* @__PURE__ */ D(a, {
|
|
1454
1454
|
variant: "select",
|
|
1455
1455
|
label: "acceptance mode",
|
|
1456
1456
|
name: "acceptance-mode",
|
|
@@ -1461,7 +1461,7 @@ function Ie({ data: e = {}, actions: n = {} } = {}) {
|
|
|
1461
1461
|
}),
|
|
1462
1462
|
/* @__PURE__ */ D("div", {
|
|
1463
1463
|
className: "cmg-field",
|
|
1464
|
-
children: /* @__PURE__ */ D(
|
|
1464
|
+
children: /* @__PURE__ */ D(a, {
|
|
1465
1465
|
variant: "select",
|
|
1466
1466
|
label: "data access policy",
|
|
1467
1467
|
name: "data-access",
|
|
@@ -1484,7 +1484,7 @@ function Ie({ data: e = {}, actions: n = {} } = {}) {
|
|
|
1484
1484
|
children: [/* @__PURE__ */ D("option", {
|
|
1485
1485
|
value: "",
|
|
1486
1486
|
children: "Not linked"
|
|
1487
|
-
}),
|
|
1487
|
+
}), r.map((e) => /* @__PURE__ */ D("option", {
|
|
1488
1488
|
value: e,
|
|
1489
1489
|
children: e
|
|
1490
1490
|
}, e))]
|
|
@@ -1521,7 +1521,7 @@ function Ie({ data: e = {}, actions: n = {} } = {}) {
|
|
|
1521
1521
|
}),
|
|
1522
1522
|
/* @__PURE__ */ D("ul", {
|
|
1523
1523
|
className: "cmg-grid",
|
|
1524
|
-
children:
|
|
1524
|
+
children: n.map((e) => /* @__PURE__ */ D("li", { children: /* @__PURE__ */ O("button", {
|
|
1525
1525
|
type: "button",
|
|
1526
1526
|
className: "card cmg-col-card",
|
|
1527
1527
|
onClick: () => d?.(e.id),
|
|
@@ -1845,12 +1845,12 @@ function He({ item: e }) {
|
|
|
1845
1845
|
]
|
|
1846
1846
|
});
|
|
1847
1847
|
}
|
|
1848
|
-
function Ue({ data:
|
|
1849
|
-
let { collective:
|
|
1848
|
+
function Ue({ data: t = {}, actions: n = {} } = {}) {
|
|
1849
|
+
let { collective: i = {
|
|
1850
1850
|
name: "AI Research Team",
|
|
1851
1851
|
description: "Sharing transcripts related to AI research",
|
|
1852
1852
|
linkedGithubOrg: "@anthropic-labs"
|
|
1853
|
-
}, providerShare:
|
|
1853
|
+
}, providerShare: a = Re, pendingReview: o = ze, members: s = Be, redactions: c = Ve, browseRows: u = [
|
|
1854
1854
|
{
|
|
1855
1855
|
title: "Building a REST API from scratch",
|
|
1856
1856
|
contributor: "@alice-dev",
|
|
@@ -1878,14 +1878,14 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1878
1878
|
tokens: "121K",
|
|
1879
1879
|
date: "Jun 12"
|
|
1880
1880
|
}
|
|
1881
|
-
], roleOptions:
|
|
1881
|
+
], roleOptions: d = Le, initialRole: p = "owner", initialShowRedaction: h = !0, initialBrowseGated: g = !1, targetCollective: _ = Ke, stats: v = {
|
|
1882
1882
|
transcripts: "248",
|
|
1883
1883
|
projects: "31 projects",
|
|
1884
1884
|
tokens: "4.2M",
|
|
1885
1885
|
turns: "18.4K turns",
|
|
1886
1886
|
contributors: "12",
|
|
1887
1887
|
hours: "63h total"
|
|
1888
|
-
} } =
|
|
1888
|
+
} } = t, { onRoleChange: b, onJoin: x, onLeave: S, onSettings: C, onToggleBrowse: w, onContribute: k } = n, [A, j] = T(p), [F, I] = T(h), [L, z] = T(g), B = A === "owner", H = A === "guest", U = (e) => {
|
|
1889
1889
|
j(e), b?.(e);
|
|
1890
1890
|
};
|
|
1891
1891
|
return /* @__PURE__ */ D("div", {
|
|
@@ -1911,7 +1911,7 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1911
1911
|
" ",
|
|
1912
1912
|
/* @__PURE__ */ D("span", {
|
|
1913
1913
|
className: "cur",
|
|
1914
|
-
children:
|
|
1914
|
+
children: i.name
|
|
1915
1915
|
})
|
|
1916
1916
|
]
|
|
1917
1917
|
}), /* @__PURE__ */ O("div", {
|
|
@@ -1919,11 +1919,11 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1919
1919
|
children: [/* @__PURE__ */ O("div", { children: [
|
|
1920
1920
|
/* @__PURE__ */ D("h2", {
|
|
1921
1921
|
className: "cmg-title",
|
|
1922
|
-
children:
|
|
1922
|
+
children: i.name
|
|
1923
1923
|
}),
|
|
1924
1924
|
/* @__PURE__ */ D("p", {
|
|
1925
1925
|
className: "cmg-deck",
|
|
1926
|
-
children:
|
|
1926
|
+
children: i.description
|
|
1927
1927
|
}),
|
|
1928
1928
|
/* @__PURE__ */ O("span", {
|
|
1929
1929
|
className: "cmg-orgpill mono",
|
|
@@ -1933,7 +1933,7 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1933
1933
|
"aria-hidden": "true"
|
|
1934
1934
|
}),
|
|
1935
1935
|
" ",
|
|
1936
|
-
|
|
1936
|
+
i.linkedGithubOrg || "not linked"
|
|
1937
1937
|
]
|
|
1938
1938
|
})
|
|
1939
1939
|
] }), /* @__PURE__ */ O("div", {
|
|
@@ -1943,7 +1943,7 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1943
1943
|
className: "cmg-roleswitch",
|
|
1944
1944
|
role: "group",
|
|
1945
1945
|
"aria-label": "view as role",
|
|
1946
|
-
children:
|
|
1946
|
+
children: d.map((e) => /* @__PURE__ */ D("button", {
|
|
1947
1947
|
type: "button",
|
|
1948
1948
|
className: "cmg-roleseg",
|
|
1949
1949
|
"aria-pressed": A === e,
|
|
@@ -1994,23 +1994,23 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1994
1994
|
/* @__PURE__ */ O("div", {
|
|
1995
1995
|
className: "cmg-tiles",
|
|
1996
1996
|
children: [
|
|
1997
|
-
/* @__PURE__ */ D(
|
|
1997
|
+
/* @__PURE__ */ D(m, {
|
|
1998
1998
|
label: "contributions",
|
|
1999
|
-
value:
|
|
1999
|
+
value: i.acceptanceMode || "open",
|
|
2000
2000
|
tone: "teal"
|
|
2001
2001
|
}),
|
|
2002
|
-
/* @__PURE__ */ D(
|
|
2002
|
+
/* @__PURE__ */ D(m, {
|
|
2003
2003
|
label: "access",
|
|
2004
|
-
value:
|
|
2004
|
+
value: i.dataAccess || "members only",
|
|
2005
2005
|
tone: "amber"
|
|
2006
2006
|
}),
|
|
2007
|
-
/* @__PURE__ */ D(
|
|
2007
|
+
/* @__PURE__ */ D(m, {
|
|
2008
2008
|
label: "your role",
|
|
2009
2009
|
value: A
|
|
2010
2010
|
})
|
|
2011
2011
|
]
|
|
2012
2012
|
}),
|
|
2013
|
-
/* @__PURE__ */ D(
|
|
2013
|
+
/* @__PURE__ */ D(l, { tiles: [
|
|
2014
2014
|
{
|
|
2015
2015
|
key: "transcripts",
|
|
2016
2016
|
label: "transcripts",
|
|
@@ -2042,10 +2042,10 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2042
2042
|
id: "cmg-share-h",
|
|
2043
2043
|
className: "cmg-sub",
|
|
2044
2044
|
children: "provider share"
|
|
2045
|
-
}), /* @__PURE__ */ D(
|
|
2045
|
+
}), /* @__PURE__ */ D(f, {
|
|
2046
2046
|
label: "provider share",
|
|
2047
2047
|
total: 100,
|
|
2048
|
-
data:
|
|
2048
|
+
data: a.map((e) => ({
|
|
2049
2049
|
label: Te(e.id),
|
|
2050
2050
|
value: e.pct
|
|
2051
2051
|
}))
|
|
@@ -2056,10 +2056,10 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2056
2056
|
overflow: "auto",
|
|
2057
2057
|
maxWidth: "100%"
|
|
2058
2058
|
},
|
|
2059
|
-
children: /* @__PURE__ */ D(
|
|
2059
|
+
children: /* @__PURE__ */ D(r, {
|
|
2060
2060
|
title: "pending review",
|
|
2061
2061
|
emptyLabel: "no shares awaiting review.",
|
|
2062
|
-
items:
|
|
2062
|
+
items: o.map((e) => ({
|
|
2063
2063
|
id: e.id,
|
|
2064
2064
|
kind: "share",
|
|
2065
2065
|
who: e.title,
|
|
@@ -2097,7 +2097,7 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2097
2097
|
}), /* @__PURE__ */ D("div", { children: "safe by default: every detected item stays redacted unless you opt out per item. there is no bulk accept." })]
|
|
2098
2098
|
}), /* @__PURE__ */ D("div", {
|
|
2099
2099
|
className: "cmg-redact-list",
|
|
2100
|
-
children:
|
|
2100
|
+
children: c.map((e) => /* @__PURE__ */ D(He, { item: e }, e.id))
|
|
2101
2101
|
})] })]
|
|
2102
2102
|
}),
|
|
2103
2103
|
/* @__PURE__ */ O("section", {
|
|
@@ -2174,7 +2174,7 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2174
2174
|
scope: "col",
|
|
2175
2175
|
children: "date"
|
|
2176
2176
|
})
|
|
2177
|
-
] }) }), /* @__PURE__ */ D("tbody", { children:
|
|
2177
|
+
] }) }), /* @__PURE__ */ D("tbody", { children: u.map((e) => /* @__PURE__ */ O("tr", { children: [
|
|
2178
2178
|
/* @__PURE__ */ D("td", { children: e.title }),
|
|
2179
2179
|
/* @__PURE__ */ D("td", {
|
|
2180
2180
|
className: "mono",
|
|
@@ -2210,7 +2210,7 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2210
2210
|
overflow: "auto",
|
|
2211
2211
|
maxWidth: "100%"
|
|
2212
2212
|
},
|
|
2213
|
-
children: /* @__PURE__ */ D(
|
|
2213
|
+
children: /* @__PURE__ */ D(r, {
|
|
2214
2214
|
title: "pending requests",
|
|
2215
2215
|
emptyLabel: "no pending requests.",
|
|
2216
2216
|
items: [{
|
|
@@ -2225,10 +2225,10 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2225
2225
|
overflow: "auto",
|
|
2226
2226
|
maxWidth: "100%"
|
|
2227
2227
|
},
|
|
2228
|
-
children: /* @__PURE__ */ D(
|
|
2228
|
+
children: /* @__PURE__ */ D(e, {
|
|
2229
2229
|
title: "members",
|
|
2230
2230
|
roles: ["member", "contributor"],
|
|
2231
|
-
members:
|
|
2231
|
+
members: s.map((e) => ({
|
|
2232
2232
|
handle: e.handle,
|
|
2233
2233
|
name: e.name,
|
|
2234
2234
|
role: e.role,
|
|
@@ -2253,7 +2253,7 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2253
2253
|
children: [/* @__PURE__ */ D(P, {
|
|
2254
2254
|
size: 16,
|
|
2255
2255
|
"aria-hidden": "true"
|
|
2256
|
-
}), /* @__PURE__ */ D("div", { children:
|
|
2256
|
+
}), /* @__PURE__ */ D("div", { children: i.linkedGithubOrg ? `linked to ${i.linkedGithubOrg}.` : "the github connection isn't set up. an admin must register the github app to overlay commit timelines." })]
|
|
2257
2257
|
})]
|
|
2258
2258
|
})
|
|
2259
2259
|
]
|
|
@@ -2264,7 +2264,7 @@ function Ue({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2264
2264
|
});
|
|
2265
2265
|
}
|
|
2266
2266
|
function We() {
|
|
2267
|
-
let [
|
|
2267
|
+
let [r, a] = T("AI Research Team"), [s, l] = T("Sharing transcripts related to AI research"), [u, f] = T("curated"), [m, h] = T("members_only"), [g, v] = T(!0), [y, b] = T("user_choice"), [x, S] = T(!1);
|
|
2268
2268
|
return /* @__PURE__ */ D("div", {
|
|
2269
2269
|
className: "cmg-root cmg-settings",
|
|
2270
2270
|
children: /* @__PURE__ */ O("div", {
|
|
@@ -2299,7 +2299,7 @@ function We() {
|
|
|
2299
2299
|
}), /* @__PURE__ */ D("p", {
|
|
2300
2300
|
className: "cmg-deck",
|
|
2301
2301
|
children: "edit how this collective accepts contributions and shares data."
|
|
2302
|
-
})] }), /* @__PURE__ */ D(
|
|
2302
|
+
})] }), /* @__PURE__ */ D(d, { children: "settings" })]
|
|
2303
2303
|
})
|
|
2304
2304
|
}),
|
|
2305
2305
|
/* @__PURE__ */ O("div", {
|
|
@@ -2323,25 +2323,25 @@ function We() {
|
|
|
2323
2323
|
}), /* @__PURE__ */ O("div", {
|
|
2324
2324
|
className: "cmg-settings-stack",
|
|
2325
2325
|
children: [
|
|
2326
|
-
/* @__PURE__ */ D(
|
|
2326
|
+
/* @__PURE__ */ D(c, {
|
|
2327
2327
|
label: "Name",
|
|
2328
2328
|
id: "cmg-name",
|
|
2329
|
-
value:
|
|
2330
|
-
onChange: (e) =>
|
|
2329
|
+
value: r,
|
|
2330
|
+
onChange: (e) => a(e.target.value),
|
|
2331
2331
|
required: !0
|
|
2332
2332
|
}),
|
|
2333
|
-
/* @__PURE__ */ D(
|
|
2333
|
+
/* @__PURE__ */ D(t, {
|
|
2334
2334
|
label: "Description",
|
|
2335
2335
|
id: "cmg-description",
|
|
2336
|
-
value:
|
|
2337
|
-
onChange: (e) =>
|
|
2336
|
+
value: s,
|
|
2337
|
+
onChange: (e) => l(e.target.value),
|
|
2338
2338
|
rows: 2
|
|
2339
2339
|
}),
|
|
2340
|
-
/* @__PURE__ */ D(
|
|
2340
|
+
/* @__PURE__ */ D(_, {
|
|
2341
2341
|
label: "Acceptance mode",
|
|
2342
2342
|
id: "cmg-acceptance",
|
|
2343
|
-
value:
|
|
2344
|
-
onChange: (e) =>
|
|
2343
|
+
value: u,
|
|
2344
|
+
onChange: (e) => f(e.target.value),
|
|
2345
2345
|
options: [
|
|
2346
2346
|
{
|
|
2347
2347
|
value: "open",
|
|
@@ -2357,7 +2357,7 @@ function We() {
|
|
|
2357
2357
|
}
|
|
2358
2358
|
]
|
|
2359
2359
|
}),
|
|
2360
|
-
/* @__PURE__ */ D(
|
|
2360
|
+
/* @__PURE__ */ D(_, {
|
|
2361
2361
|
label: "Data access",
|
|
2362
2362
|
id: "cmg-access",
|
|
2363
2363
|
value: m,
|
|
@@ -2391,15 +2391,15 @@ function We() {
|
|
|
2391
2391
|
}),
|
|
2392
2392
|
/* @__PURE__ */ D("div", {
|
|
2393
2393
|
className: "sw-toggle-row",
|
|
2394
|
-
children: /* @__PURE__ */ D(
|
|
2394
|
+
children: /* @__PURE__ */ D(i, {
|
|
2395
2395
|
id: "cmg-display-members",
|
|
2396
|
-
checked:
|
|
2396
|
+
checked: g,
|
|
2397
2397
|
onChange: (e) => v(e)
|
|
2398
2398
|
})
|
|
2399
2399
|
})
|
|
2400
2400
|
]
|
|
2401
2401
|
}),
|
|
2402
|
-
/* @__PURE__ */ D(
|
|
2402
|
+
/* @__PURE__ */ D(n, {
|
|
2403
2403
|
name: "cmg-deletion-policy",
|
|
2404
2404
|
ariaLabel: "Transcript retention on leave",
|
|
2405
2405
|
value: y,
|
|
@@ -2436,19 +2436,19 @@ function We() {
|
|
|
2436
2436
|
type: "submit",
|
|
2437
2437
|
className: "btn btn-sm btn-primary",
|
|
2438
2438
|
children: "save changes"
|
|
2439
|
-
}), /* @__PURE__ */ D(
|
|
2439
|
+
}), /* @__PURE__ */ D(o, {
|
|
2440
2440
|
label: "reset form",
|
|
2441
2441
|
onConfirm: () => S(!1)
|
|
2442
2442
|
})]
|
|
2443
2443
|
})
|
|
2444
2444
|
]
|
|
2445
2445
|
})]
|
|
2446
|
-
}), /* @__PURE__ */ O(
|
|
2446
|
+
}), /* @__PURE__ */ O(p, {
|
|
2447
2447
|
title: "danger zone",
|
|
2448
2448
|
children: [/* @__PURE__ */ D("p", {
|
|
2449
2449
|
className: "mono",
|
|
2450
2450
|
children: "deleting this collective removes the governance settings and member roster."
|
|
2451
|
-
}), /* @__PURE__ */ D(
|
|
2451
|
+
}), /* @__PURE__ */ D(o, {
|
|
2452
2452
|
label: "delete collective",
|
|
2453
2453
|
confirmLabel: "delete",
|
|
2454
2454
|
onConfirm: () => S(!1)
|
|
@@ -2462,7 +2462,7 @@ function We() {
|
|
|
2462
2462
|
overflow: "auto",
|
|
2463
2463
|
maxWidth: "100%"
|
|
2464
2464
|
},
|
|
2465
|
-
children: /* @__PURE__ */ D(
|
|
2465
|
+
children: /* @__PURE__ */ D(e, {
|
|
2466
2466
|
title: "members",
|
|
2467
2467
|
roles: ["member", "contributor"],
|
|
2468
2468
|
members: [
|
|
@@ -2557,30 +2557,30 @@ function qe() {
|
|
|
2557
2557
|
project: t.name
|
|
2558
2558
|
})), e;
|
|
2559
2559
|
}, []);
|
|
2560
|
-
function
|
|
2560
|
+
function c(e) {
|
|
2561
2561
|
t((t) => {
|
|
2562
2562
|
let n = new Set(t);
|
|
2563
2563
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
2564
2564
|
});
|
|
2565
2565
|
}
|
|
2566
|
-
function
|
|
2566
|
+
function l(t) {
|
|
2567
2567
|
let n = t.transcripts.map((e) => e.id), r = n.filter((t) => e.has(t)).length;
|
|
2568
2568
|
return r === 0 ? "none" : r === n.length ? "all" : "some";
|
|
2569
2569
|
}
|
|
2570
|
-
function
|
|
2571
|
-
let n =
|
|
2570
|
+
function u(e) {
|
|
2571
|
+
let n = l(e);
|
|
2572
2572
|
t((t) => {
|
|
2573
2573
|
let r = new Set(t);
|
|
2574
2574
|
return e.transcripts.forEach((e) => n === "all" ? r.delete(e.id) : r.add(e.id)), r;
|
|
2575
2575
|
});
|
|
2576
2576
|
}
|
|
2577
|
-
function
|
|
2577
|
+
function d(e) {
|
|
2578
2578
|
r((t) => {
|
|
2579
2579
|
let n = new Set(t);
|
|
2580
2580
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
2581
2581
|
});
|
|
2582
2582
|
}
|
|
2583
|
-
let
|
|
2583
|
+
let f = [...e].map((e) => o[e]).filter(Boolean), p = f.filter((e) => e.visibility === "private").length;
|
|
2584
2584
|
return /* @__PURE__ */ O("div", {
|
|
2585
2585
|
className: "cmg-root",
|
|
2586
2586
|
children: [/* @__PURE__ */ O("div", {
|
|
@@ -2620,7 +2620,7 @@ function qe() {
|
|
|
2620
2620
|
className: "card cmg-contribute",
|
|
2621
2621
|
"aria-label": "your transcripts by project",
|
|
2622
2622
|
children: Ge.map((t) => {
|
|
2623
|
-
let r =
|
|
2623
|
+
let r = l(t), i = n.has(t.id);
|
|
2624
2624
|
return /* @__PURE__ */ O("div", {
|
|
2625
2625
|
className: "cmg-proj",
|
|
2626
2626
|
children: [/* @__PURE__ */ O("div", {
|
|
@@ -2632,14 +2632,14 @@ function qe() {
|
|
|
2632
2632
|
className: "check-box",
|
|
2633
2633
|
checked: r === "all",
|
|
2634
2634
|
ref: (e) => e && (e.indeterminate = r === "some"),
|
|
2635
|
-
onChange: () =>
|
|
2635
|
+
onChange: () => u(t),
|
|
2636
2636
|
"aria-label": `select all in ${t.name}`
|
|
2637
2637
|
})
|
|
2638
2638
|
}), /* @__PURE__ */ O("button", {
|
|
2639
2639
|
type: "button",
|
|
2640
2640
|
className: "cmg-proj-toggle",
|
|
2641
2641
|
"aria-expanded": i,
|
|
2642
|
-
onClick: () =>
|
|
2642
|
+
onClick: () => d(t.id),
|
|
2643
2643
|
children: [
|
|
2644
2644
|
D(i ? M : N, {
|
|
2645
2645
|
size: 15,
|
|
@@ -2677,7 +2677,7 @@ function qe() {
|
|
|
2677
2677
|
type: "checkbox",
|
|
2678
2678
|
className: "check-box",
|
|
2679
2679
|
checked: e.has(t.id),
|
|
2680
|
-
onChange: () =>
|
|
2680
|
+
onChange: () => c(t.id),
|
|
2681
2681
|
"aria-label": `select ${t.title}`
|
|
2682
2682
|
})
|
|
2683
2683
|
}),
|
|
@@ -2719,13 +2719,13 @@ function qe() {
|
|
|
2719
2719
|
children: e.size
|
|
2720
2720
|
}),
|
|
2721
2721
|
" selected",
|
|
2722
|
-
|
|
2722
|
+
p > 0 ? /* @__PURE__ */ O("span", {
|
|
2723
2723
|
className: "cmg-sel-warn",
|
|
2724
2724
|
children: [
|
|
2725
2725
|
" · ",
|
|
2726
2726
|
/* @__PURE__ */ D("span", {
|
|
2727
2727
|
className: "tnum",
|
|
2728
|
-
children:
|
|
2728
|
+
children: p
|
|
2729
2729
|
}),
|
|
2730
2730
|
" private"
|
|
2731
2731
|
]
|
|
@@ -2749,20 +2749,20 @@ function qe() {
|
|
|
2749
2749
|
})]
|
|
2750
2750
|
})
|
|
2751
2751
|
]
|
|
2752
|
-
}), /* @__PURE__ */ D(
|
|
2752
|
+
}), /* @__PURE__ */ D(s, {
|
|
2753
2753
|
open: i,
|
|
2754
2754
|
title: /* @__PURE__ */ O(E, { children: [
|
|
2755
2755
|
"make ",
|
|
2756
|
-
|
|
2756
|
+
p > 1 ? "these" : "this",
|
|
2757
2757
|
" visible?"
|
|
2758
2758
|
] }),
|
|
2759
|
-
intro:
|
|
2759
|
+
intro: p > 0 ? /* @__PURE__ */ O("p", { children: [
|
|
2760
2760
|
/* @__PURE__ */ D("span", {
|
|
2761
2761
|
className: "tnum",
|
|
2762
|
-
children:
|
|
2762
|
+
children: p
|
|
2763
2763
|
}),
|
|
2764
2764
|
" private transcript",
|
|
2765
|
-
|
|
2765
|
+
p === 1 ? "" : "s",
|
|
2766
2766
|
" will become visible to members of ",
|
|
2767
2767
|
/* @__PURE__ */ D("b", { children: Ke.name }),
|
|
2768
2768
|
". visibility will change from private to shared."
|
|
@@ -2776,9 +2776,9 @@ function qe() {
|
|
|
2776
2776
|
axes: [{
|
|
2777
2777
|
icon: R,
|
|
2778
2778
|
key: "visibility",
|
|
2779
|
-
value:
|
|
2780
|
-
scope:
|
|
2781
|
-
tone:
|
|
2779
|
+
value: p > 0 ? "private → shared" : "unchanged",
|
|
2780
|
+
scope: p > 0 ? `${p} transcript${p === 1 ? "" : "s"} newly exposed` : "no visibility change",
|
|
2781
|
+
tone: p > 0 ? "reveal" : "open"
|
|
2782
2782
|
}, {
|
|
2783
2783
|
icon: X,
|
|
2784
2784
|
key: "shared with",
|
|
@@ -2786,14 +2786,14 @@ function qe() {
|
|
|
2786
2786
|
scope: `${Ke.members} members can see it`,
|
|
2787
2787
|
tone: "open"
|
|
2788
2788
|
}],
|
|
2789
|
-
requireConsent:
|
|
2790
|
-
confirmLabel:
|
|
2789
|
+
requireConsent: p > 0,
|
|
2790
|
+
confirmLabel: p > 0 ? "contribute & make visible" : "contribute",
|
|
2791
2791
|
confirmIcon: A,
|
|
2792
2792
|
onCancel: () => a(!1),
|
|
2793
2793
|
onConfirm: () => a(!1),
|
|
2794
2794
|
children: /* @__PURE__ */ O("ul", {
|
|
2795
2795
|
className: "cmg-confirm-list",
|
|
2796
|
-
children: [
|
|
2796
|
+
children: [f.slice(0, 5).map((e) => /* @__PURE__ */ O("li", {
|
|
2797
2797
|
className: "cmg-confirm-tx",
|
|
2798
2798
|
children: [
|
|
2799
2799
|
/* @__PURE__ */ D(ProviderMark, { id: e.provider }),
|
|
@@ -2803,11 +2803,11 @@ function qe() {
|
|
|
2803
2803
|
}),
|
|
2804
2804
|
/* @__PURE__ */ D(ke, { v: e.visibility })
|
|
2805
2805
|
]
|
|
2806
|
-
}, e.id)),
|
|
2806
|
+
}, e.id)), f.length > 5 ? /* @__PURE__ */ O("li", {
|
|
2807
2807
|
className: "cmg-confirm-more mono",
|
|
2808
2808
|
children: [
|
|
2809
2809
|
"…and ",
|
|
2810
|
-
|
|
2810
|
+
f.length - 5,
|
|
2811
2811
|
" more"
|
|
2812
2812
|
]
|
|
2813
2813
|
}) : null]
|
|
@@ -2858,8 +2858,8 @@ function Qe(e) {
|
|
|
2858
2858
|
day: "numeric"
|
|
2859
2859
|
}).format(t);
|
|
2860
2860
|
}
|
|
2861
|
-
function $e({ data:
|
|
2862
|
-
let { collective:
|
|
2861
|
+
function $e({ data: t = Xe, actions: n = {}, demoRoleSwitcher: i = !1 } = {}) {
|
|
2862
|
+
let { collective: a = Je, providerShare: o = [], pendingReview: s = [], members: c = [], redactions: u = [], browseRows: p = [], roleOptions: h = [], initialRole: g = "", initialShowRedaction: _ = !1, initialBrowseGated: v = !1, stats: y = Ye } = t || Xe, { onRoleChange: b, onJoin: x, onLeave: S, onSettings: w, onContribute: E, onToggleBrowse: k } = n || {}, [A, j] = T(g || a.role || ""), [M, P] = T(!!_), [F, I] = T(!!v), L = A || a.role || "guest", B = L === "owner", H = L === "guest", U = i && h.length > 0, ee = C(() => U ? h : [], [U, h]), te = (e) => {
|
|
2863
2863
|
j(e), b?.(e);
|
|
2864
2864
|
};
|
|
2865
2865
|
return /* @__PURE__ */ D("div", {
|
|
@@ -2885,7 +2885,7 @@ function $e({ data: e = Xe, actions: t = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
|
2885
2885
|
}),
|
|
2886
2886
|
/* @__PURE__ */ D("span", {
|
|
2887
2887
|
className: "cur",
|
|
2888
|
-
children:
|
|
2888
|
+
children: a.name || "collective"
|
|
2889
2889
|
})
|
|
2890
2890
|
]
|
|
2891
2891
|
}), /* @__PURE__ */ O("div", {
|
|
@@ -2893,11 +2893,11 @@ function $e({ data: e = Xe, actions: t = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
|
2893
2893
|
children: [/* @__PURE__ */ O("div", { children: [
|
|
2894
2894
|
/* @__PURE__ */ D("h2", {
|
|
2895
2895
|
className: "cmg-title",
|
|
2896
|
-
children:
|
|
2896
|
+
children: a.name || "collective"
|
|
2897
2897
|
}),
|
|
2898
2898
|
/* @__PURE__ */ D("p", {
|
|
2899
2899
|
className: "cmg-deck",
|
|
2900
|
-
children:
|
|
2900
|
+
children: a.description || "shared collective governance"
|
|
2901
2901
|
}),
|
|
2902
2902
|
/* @__PURE__ */ O("span", {
|
|
2903
2903
|
className: "cmg-orgpill mono",
|
|
@@ -2907,7 +2907,7 @@ function $e({ data: e = Xe, actions: t = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
|
2907
2907
|
"aria-hidden": "true"
|
|
2908
2908
|
}),
|
|
2909
2909
|
" ",
|
|
2910
|
-
|
|
2910
|
+
a.linkedGithubOrg || "not linked"
|
|
2911
2911
|
]
|
|
2912
2912
|
})
|
|
2913
2913
|
] }), /* @__PURE__ */ O("div", {
|
|
@@ -2979,23 +2979,23 @@ function $e({ data: e = Xe, actions: t = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
|
2979
2979
|
/* @__PURE__ */ O("div", {
|
|
2980
2980
|
className: "cmg-tiles",
|
|
2981
2981
|
children: [
|
|
2982
|
-
/* @__PURE__ */ D(
|
|
2982
|
+
/* @__PURE__ */ D(m, {
|
|
2983
2983
|
label: "contributions",
|
|
2984
|
-
value:
|
|
2984
|
+
value: a.acceptanceMode || "open",
|
|
2985
2985
|
tone: "teal"
|
|
2986
2986
|
}),
|
|
2987
|
-
/* @__PURE__ */ D(
|
|
2987
|
+
/* @__PURE__ */ D(m, {
|
|
2988
2988
|
label: "access",
|
|
2989
|
-
value:
|
|
2989
|
+
value: a.dataAccess || "members only",
|
|
2990
2990
|
tone: "amber"
|
|
2991
2991
|
}),
|
|
2992
|
-
/* @__PURE__ */ D(
|
|
2992
|
+
/* @__PURE__ */ D(m, {
|
|
2993
2993
|
label: "your role",
|
|
2994
2994
|
value: L
|
|
2995
2995
|
})
|
|
2996
2996
|
]
|
|
2997
2997
|
}),
|
|
2998
|
-
/* @__PURE__ */ D(
|
|
2998
|
+
/* @__PURE__ */ D(l, { tiles: [
|
|
2999
2999
|
{
|
|
3000
3000
|
key: "transcripts",
|
|
3001
3001
|
label: "transcripts",
|
|
@@ -3020,31 +3020,31 @@ function $e({ data: e = Xe, actions: t = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
|
3020
3020
|
children: [/* @__PURE__ */ O("main", {
|
|
3021
3021
|
className: "cmg-d-main",
|
|
3022
3022
|
children: [
|
|
3023
|
-
|
|
3023
|
+
o.length > 0 ? /* @__PURE__ */ O("section", {
|
|
3024
3024
|
className: "card cmg-share",
|
|
3025
3025
|
"aria-labelledby": "cmg-share-h",
|
|
3026
3026
|
children: [/* @__PURE__ */ D("h3", {
|
|
3027
3027
|
id: "cmg-share-h",
|
|
3028
3028
|
className: "cmg-sub",
|
|
3029
3029
|
children: "provider share"
|
|
3030
|
-
}), /* @__PURE__ */ D(
|
|
3030
|
+
}), /* @__PURE__ */ D(f, {
|
|
3031
3031
|
label: "provider share",
|
|
3032
3032
|
total: 100,
|
|
3033
|
-
data:
|
|
3033
|
+
data: o.map((e) => ({
|
|
3034
3034
|
label: Te(e.id),
|
|
3035
3035
|
value: e.pct
|
|
3036
3036
|
}))
|
|
3037
3037
|
})]
|
|
3038
3038
|
}) : null,
|
|
3039
|
-
|
|
3039
|
+
s.length > 0 ? /* @__PURE__ */ D("div", {
|
|
3040
3040
|
style: {
|
|
3041
3041
|
overflow: "auto",
|
|
3042
3042
|
maxWidth: "100%"
|
|
3043
3043
|
},
|
|
3044
|
-
children: /* @__PURE__ */ D(
|
|
3044
|
+
children: /* @__PURE__ */ D(r, {
|
|
3045
3045
|
title: "pending review",
|
|
3046
3046
|
emptyLabel: "no shares awaiting review.",
|
|
3047
|
-
items:
|
|
3047
|
+
items: s.map((e) => ({
|
|
3048
3048
|
id: e.id,
|
|
3049
3049
|
kind: "share",
|
|
3050
3050
|
who: e.title || "untitled transcript",
|
|
@@ -3052,7 +3052,7 @@ function $e({ data: e = Xe, actions: t = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
|
3052
3052
|
}))
|
|
3053
3053
|
})
|
|
3054
3054
|
}) : null,
|
|
3055
|
-
|
|
3055
|
+
u.length > 0 ? /* @__PURE__ */ O("section", {
|
|
3056
3056
|
className: "card cmg-redact-sec",
|
|
3057
3057
|
"aria-labelledby": "cmg-redact-h",
|
|
3058
3058
|
children: [/* @__PURE__ */ O("div", {
|
|
@@ -3076,14 +3076,14 @@ function $e({ data: e = Xe, actions: t = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
|
3076
3076
|
})]
|
|
3077
3077
|
}), M ? /* @__PURE__ */ D("div", {
|
|
3078
3078
|
className: "cmg-redact-list",
|
|
3079
|
-
children:
|
|
3079
|
+
children: u.map((e) => /* @__PURE__ */ O("article", {
|
|
3080
3080
|
className: "cmg-redact",
|
|
3081
3081
|
children: [
|
|
3082
3082
|
/* @__PURE__ */ O("div", {
|
|
3083
3083
|
className: "cmg-redact-head",
|
|
3084
3084
|
children: [/* @__PURE__ */ D("span", {
|
|
3085
3085
|
className: "cmg-redact-badges",
|
|
3086
|
-
children: /* @__PURE__ */ D(
|
|
3086
|
+
children: /* @__PURE__ */ D(d, { children: String(e.catLabel || e.cat || "item").toLowerCase() })
|
|
3087
3087
|
}), /* @__PURE__ */ D("span", {
|
|
3088
3088
|
className: "cmg-redact-file mono",
|
|
3089
3089
|
children: e.file || "unknown"
|
|
@@ -3150,7 +3150,7 @@ function $e({ data: e = Xe, actions: t = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
|
3150
3150
|
}), " join as contributor"]
|
|
3151
3151
|
}) : null
|
|
3152
3152
|
]
|
|
3153
|
-
}) :
|
|
3153
|
+
}) : p.length > 0 ? /* @__PURE__ */ O("table", {
|
|
3154
3154
|
className: "dtable cmg-dtable",
|
|
3155
3155
|
children: [/* @__PURE__ */ D("thead", { children: /* @__PURE__ */ O("tr", { children: [
|
|
3156
3156
|
/* @__PURE__ */ D("th", {
|
|
@@ -3179,7 +3179,7 @@ function $e({ data: e = Xe, actions: t = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
|
3179
3179
|
scope: "col",
|
|
3180
3180
|
children: "date"
|
|
3181
3181
|
})
|
|
3182
|
-
] }) }), /* @__PURE__ */ D("tbody", { children:
|
|
3182
|
+
] }) }), /* @__PURE__ */ D("tbody", { children: p.map((e) => /* @__PURE__ */ O("tr", { children: [
|
|
3183
3183
|
/* @__PURE__ */ D("td", { children: e.title || "untitled transcript" }),
|
|
3184
3184
|
/* @__PURE__ */ D("td", {
|
|
3185
3185
|
className: "mono",
|
|
@@ -3222,7 +3222,7 @@ function $e({ data: e = Xe, actions: t = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
|
3222
3222
|
})]
|
|
3223
3223
|
})
|
|
3224
3224
|
]
|
|
3225
|
-
}),
|
|
3225
|
+
}), c.length > 0 ? /* @__PURE__ */ D("aside", {
|
|
3226
3226
|
className: "sidebar cmg-d-rail",
|
|
3227
3227
|
"aria-label": "collective sidebar",
|
|
3228
3228
|
children: /* @__PURE__ */ D("div", {
|
|
@@ -3230,10 +3230,10 @@ function $e({ data: e = Xe, actions: t = {}, demoRoleSwitcher: r = !1 } = {}) {
|
|
|
3230
3230
|
overflow: "auto",
|
|
3231
3231
|
maxWidth: "100%"
|
|
3232
3232
|
},
|
|
3233
|
-
children: /* @__PURE__ */ D(
|
|
3233
|
+
children: /* @__PURE__ */ D(e, {
|
|
3234
3234
|
title: "members",
|
|
3235
3235
|
roles: ["member", "contributor"],
|
|
3236
|
-
members:
|
|
3236
|
+
members: c.map((e) => ({
|
|
3237
3237
|
handle: e.handle || e.githubUsername || "@unknown",
|
|
3238
3238
|
name: e.name || e.displayName || e.githubUsername || "unknown",
|
|
3239
3239
|
role: e.role || "member",
|