@peasant-labs/fairtrade 0.0.45 → 0.0.47
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/commons.js +713 -713
- package/dist/lib/components.css +1 -1
- package/dist/lib/types/transcript/Minimap.d.ts +14 -0
- package/dist/lib/types/transcript/OutlineRail.d.ts +6 -1
- package/dist/lib/types/transcript/SystemRow.d.ts +17 -0
- package/dist/lib/types/transcript/ToolCall.d.ts +1 -1
- package/dist/lib/types/transcript/TranscriptViewer.d.ts +2 -1
- package/dist/lib/types/transcript/TurnCard.d.ts +10 -1
- package/dist/lib/types/transcript/WorkGroup.d.ts +15 -0
- package/dist/lib/types/transcript/index.d.ts +7 -1
- package/dist/lib/types/transcript/plain-text.d.ts +7 -0
- package/dist/lib/types/transcript/state-capabilities.d.ts +69 -1
- package/dist/lib/types/transcript/work-summary.d.ts +51 -0
- package/dist/lib/{ui-Bkv5l5AH.js → ui-CrH0SVd_.js} +2237 -1802
- package/dist/lib/ui.js +6 -6
- package/package.json +9 -3
package/dist/lib/commons.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Dt as e, Tt as t, ft as n, mt as r } from "./GraphLegend-e9x79JtU.js";
|
|
2
|
-
import { $ as i,
|
|
3
|
-
import { p as
|
|
4
|
-
import { i as
|
|
5
|
-
import { useEffect as
|
|
6
|
-
import { Fragment as
|
|
7
|
-
import { ArrowRight as
|
|
2
|
+
import { $t as i, Fn as a, Jn as o, O as s, Q as c, Qt as l, Wn as u, Xt as d, Yn as f, Zn as p, _t as m, at as h, en as g, et as _, fr as v, gt as y, it as b, k as x, mt as S, tt as C, vt as w, xt as T, yt as ee } from "./ui-CrH0SVd_.js";
|
|
3
|
+
import { p as E } from "./time-CpVBzcqQ.js";
|
|
4
|
+
import { i as D, o as O, r as k } from "./format-B3uT2wzU.js";
|
|
5
|
+
import { useEffect as A, useId as j, useMemo as M, useRef as te, useState as N } from "react";
|
|
6
|
+
import { Fragment as P, jsx as F, jsxs as I } from "react/jsx-runtime";
|
|
7
|
+
import { ArrowRight as L, Check as ne, ChevronDown as R, ChevronRight as z, ClipboardCheck as B, Compass as re, Copy as V, ExternalLink as H, Eye as U, EyeOff as W, FileText as ie, FolderGit2 as G, GitBranch as K, GitPullRequest as q, Hash as J, KeyRound as ae, LayoutGrid as oe, List as se, Lock as Y, LogOut as X, MoreHorizontal as ce, Plus as le, Search as ue, SearchX as de, Settings as fe, ShieldAlert as Z, SlidersHorizontal as pe, TriangleAlert as me, Upload as Q, User as he, UserPlus as $, Users as ge, X as _e } from "lucide-react";
|
|
8
8
|
//#region src/ui/commons/types.js
|
|
9
9
|
var ve = Object.freeze([
|
|
10
10
|
"public",
|
|
@@ -180,10 +180,10 @@ var ve = Object.freeze([
|
|
|
180
180
|
usageCount: 24
|
|
181
181
|
}
|
|
182
182
|
]
|
|
183
|
-
}), we =
|
|
183
|
+
}), we = k, Te = (e) => {
|
|
184
184
|
let t = Math.max(0, Math.round(e / 6e4));
|
|
185
185
|
return t >= 60 ? `${Math.floor(t / 60)}h ${String(t % 60).padStart(2, "0")}m` : `${t}min`;
|
|
186
|
-
}, Ee =
|
|
186
|
+
}, Ee = D, De = (e = "") => e.split(/[\s-]+/).filter(Boolean).slice(0, 2).map((e) => e[0]).join("").toUpperCase() || "?", Oe = (e) => e.trim().toLowerCase();
|
|
187
187
|
function ke(e) {
|
|
188
188
|
return e ? e.length ? e[0].toUpperCase() + e.slice(1) : e : "";
|
|
189
189
|
}
|
|
@@ -205,56 +205,56 @@ function Ne(e) {
|
|
|
205
205
|
return Number.isInteger(e) && e >= 1 ? e : 1;
|
|
206
206
|
}
|
|
207
207
|
function Pe({ transcript: e, href: t, onOpen: n, cardHeading: i = "h3" }) {
|
|
208
|
-
let a = /* @__PURE__ */
|
|
209
|
-
/* @__PURE__ */
|
|
208
|
+
let a = /* @__PURE__ */ I(P, { children: [
|
|
209
|
+
/* @__PURE__ */ I("div", {
|
|
210
210
|
className: "card-head",
|
|
211
|
-
children: [/* @__PURE__ */
|
|
211
|
+
children: [/* @__PURE__ */ I("span", {
|
|
212
212
|
className: "metaitem cex-model",
|
|
213
|
-
children: [/* @__PURE__ */
|
|
213
|
+
children: [/* @__PURE__ */ F(r, {
|
|
214
214
|
harness: e.modelProvider,
|
|
215
215
|
accent: !0
|
|
216
|
-
}), /* @__PURE__ */
|
|
216
|
+
}), /* @__PURE__ */ F("span", {
|
|
217
217
|
className: "mono",
|
|
218
218
|
children: e.modelName || e.modelProvider
|
|
219
219
|
})]
|
|
220
|
-
}), /* @__PURE__ */
|
|
220
|
+
}), /* @__PURE__ */ F(c, { visibility: e.visibility })]
|
|
221
221
|
}),
|
|
222
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ F(i, {
|
|
223
223
|
className: "cex-title",
|
|
224
224
|
children: ke(e.title || "untitled transcript")
|
|
225
225
|
}),
|
|
226
|
-
e.projectName && /* @__PURE__ */
|
|
226
|
+
e.projectName && /* @__PURE__ */ F("p", {
|
|
227
227
|
className: "cex-proj",
|
|
228
228
|
children: e.projectName
|
|
229
229
|
}),
|
|
230
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ F("p", {
|
|
231
231
|
className: "cex-desc",
|
|
232
232
|
children: e.tags.map((e) => `#${e.name}`).join(" ")
|
|
233
233
|
}),
|
|
234
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ I("div", {
|
|
235
235
|
className: "cex-foot row",
|
|
236
|
-
children: [/* @__PURE__ */
|
|
236
|
+
children: [/* @__PURE__ */ I("span", {
|
|
237
237
|
className: "cex-author",
|
|
238
|
-
children: [/* @__PURE__ */
|
|
238
|
+
children: [/* @__PURE__ */ F("span", {
|
|
239
239
|
className: "avatar",
|
|
240
240
|
"aria-hidden": "true",
|
|
241
241
|
children: De(e.owner.displayName || e.owner.githubUsername)
|
|
242
|
-
}), /* @__PURE__ */
|
|
242
|
+
}), /* @__PURE__ */ I("span", {
|
|
243
243
|
className: "cex-handle mono",
|
|
244
244
|
children: ["@", e.owner.githubUsername]
|
|
245
245
|
})]
|
|
246
|
-
}), /* @__PURE__ */
|
|
246
|
+
}), /* @__PURE__ */ F("span", {
|
|
247
247
|
className: "cex-date tnum",
|
|
248
248
|
children: Ee(e.sessionStart || e.sessionEnd || "")
|
|
249
249
|
})]
|
|
250
250
|
})
|
|
251
251
|
] });
|
|
252
|
-
return t ? /* @__PURE__ */
|
|
252
|
+
return t ? /* @__PURE__ */ F("a", {
|
|
253
253
|
href: t,
|
|
254
254
|
className: "card cex-tcard",
|
|
255
255
|
onClick: (t) => je(t, n, e),
|
|
256
256
|
children: a
|
|
257
|
-
}) : /* @__PURE__ */
|
|
257
|
+
}) : /* @__PURE__ */ F("button", {
|
|
258
258
|
type: "button",
|
|
259
259
|
className: "card cex-tcard",
|
|
260
260
|
onClick: () => n?.(e),
|
|
@@ -262,35 +262,35 @@ function Pe({ transcript: e, href: t, onOpen: n, cardHeading: i = "h3" }) {
|
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
264
|
function Fe({ transcript: e, href: t, onOpen: n }) {
|
|
265
|
-
let i = /* @__PURE__ */
|
|
266
|
-
/* @__PURE__ */
|
|
265
|
+
let i = /* @__PURE__ */ I(P, { children: [
|
|
266
|
+
/* @__PURE__ */ I("span", {
|
|
267
267
|
className: "cex-trow-model",
|
|
268
|
-
children: [/* @__PURE__ */
|
|
268
|
+
children: [/* @__PURE__ */ F(r, { harness: e.modelProvider }), /* @__PURE__ */ F("b", { children: e.modelName || e.modelProvider })]
|
|
269
269
|
}),
|
|
270
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ F("span", {
|
|
271
271
|
className: "cex-trow-title",
|
|
272
272
|
children: ke(e.title || "untitled transcript")
|
|
273
273
|
}),
|
|
274
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ I("span", {
|
|
275
275
|
className: "cex-trow-stats mono tnum",
|
|
276
276
|
children: [
|
|
277
|
-
e.durationMs != null && /* @__PURE__ */
|
|
278
|
-
e.turnCount != null && /* @__PURE__ */
|
|
279
|
-
e.toolCallCount != null && /* @__PURE__ */
|
|
277
|
+
e.durationMs != null && /* @__PURE__ */ F("span", { children: Te(e.durationMs) }),
|
|
278
|
+
e.turnCount != null && /* @__PURE__ */ I("span", { children: [e.turnCount, " turns"] }),
|
|
279
|
+
e.toolCallCount != null && /* @__PURE__ */ I("span", { children: [e.toolCallCount, " tools"] })
|
|
280
280
|
]
|
|
281
281
|
}),
|
|
282
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ F("span", {
|
|
283
283
|
className: "cex-trow-date mono tnum",
|
|
284
284
|
children: Ee(e.sessionStart || e.sessionEnd || "")
|
|
285
285
|
}),
|
|
286
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ F(c, { visibility: e.visibility })
|
|
287
287
|
] });
|
|
288
|
-
return t ? /* @__PURE__ */
|
|
288
|
+
return t ? /* @__PURE__ */ F("a", {
|
|
289
289
|
href: t,
|
|
290
290
|
className: "row cex-trow",
|
|
291
291
|
onClick: (t) => je(t, n, e),
|
|
292
292
|
children: i
|
|
293
|
-
}) : /* @__PURE__ */
|
|
293
|
+
}) : /* @__PURE__ */ F("button", {
|
|
294
294
|
type: "button",
|
|
295
295
|
className: "row cex-trow",
|
|
296
296
|
onClick: () => n?.(e),
|
|
@@ -298,20 +298,20 @@ function Fe({ transcript: e, href: t, onOpen: n }) {
|
|
|
298
298
|
});
|
|
299
299
|
}
|
|
300
300
|
function Ie({ collective: e, href: t, onOpen: n }) {
|
|
301
|
-
let r = /* @__PURE__ */
|
|
302
|
-
/* @__PURE__ */
|
|
301
|
+
let r = /* @__PURE__ */ I(P, { children: [
|
|
302
|
+
/* @__PURE__ */ I("div", {
|
|
303
303
|
className: "cex-cname",
|
|
304
|
-
children: [/* @__PURE__ */
|
|
304
|
+
children: [/* @__PURE__ */ F("span", {
|
|
305
305
|
className: "avatar",
|
|
306
306
|
"aria-hidden": "true",
|
|
307
307
|
children: "C"
|
|
308
|
-
}), /* @__PURE__ */
|
|
308
|
+
}), /* @__PURE__ */ F("b", { children: e.name })]
|
|
309
309
|
}),
|
|
310
|
-
e.description && /* @__PURE__ */
|
|
310
|
+
e.description && /* @__PURE__ */ F("p", {
|
|
311
311
|
className: "cex-desc",
|
|
312
312
|
children: e.description
|
|
313
313
|
}),
|
|
314
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ I("div", {
|
|
315
315
|
className: "cex-cfoot mono tnum",
|
|
316
316
|
children: [
|
|
317
317
|
e.memberCount,
|
|
@@ -321,99 +321,99 @@ function Ie({ collective: e, href: t, onOpen: n }) {
|
|
|
321
321
|
]
|
|
322
322
|
})
|
|
323
323
|
] });
|
|
324
|
-
return t ? /* @__PURE__ */
|
|
324
|
+
return t ? /* @__PURE__ */ F("a", {
|
|
325
325
|
href: t,
|
|
326
326
|
className: "card cex-ccard",
|
|
327
327
|
onClick: (t) => je(t, n, e),
|
|
328
328
|
children: r
|
|
329
|
-
}) : /* @__PURE__ */
|
|
329
|
+
}) : /* @__PURE__ */ F("button", {
|
|
330
330
|
type: "button",
|
|
331
331
|
className: "card cex-ccard",
|
|
332
332
|
onClick: () => n?.(e),
|
|
333
333
|
children: r
|
|
334
334
|
});
|
|
335
335
|
}
|
|
336
|
-
function Le({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript: a, onOpenProfile:
|
|
337
|
-
let m =
|
|
338
|
-
|
|
336
|
+
function Le({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript: a, onOpenProfile: o, onOpenCollective: l, transcriptHref: u, profileHref: d, collectiveHref: f, headingLevel: p }) {
|
|
337
|
+
let m = x(p, "Explore"), h = s(m, 0), g = s(m, 1), _ = s(m, 2), v = Me(e), y = v.transcripts.transcripts, [b, S] = N(""), [C, w] = N(""), [E, D] = N("recent"), [O, k] = N("all"), [j, P] = N(() => /* @__PURE__ */ new Set()), [L, ne] = N("grid"), [R, z] = N(() => Ne(v.transcripts.page)), [B, V] = N(null), [H, U] = N("browse"), W = te(!0), G = te(null);
|
|
338
|
+
A(() => {
|
|
339
339
|
if (W.current) {
|
|
340
|
-
W.current = !1,
|
|
340
|
+
W.current = !1, w(b);
|
|
341
341
|
return;
|
|
342
342
|
}
|
|
343
|
-
let e = setTimeout(() =>
|
|
343
|
+
let e = setTimeout(() => w(b), 250);
|
|
344
344
|
return () => clearTimeout(e);
|
|
345
|
-
}, [W,
|
|
345
|
+
}, [W, b]), A(() => {
|
|
346
346
|
let e = JSON.stringify([
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
[...
|
|
347
|
+
C,
|
|
348
|
+
E,
|
|
349
|
+
O,
|
|
350
|
+
[...j].sort()
|
|
351
351
|
]);
|
|
352
352
|
if (G.current === null || G.current === e) {
|
|
353
353
|
G.current = e;
|
|
354
354
|
return;
|
|
355
355
|
}
|
|
356
|
-
G.current = e,
|
|
356
|
+
G.current = e, z(1);
|
|
357
357
|
}, [
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
]),
|
|
358
|
+
C,
|
|
359
|
+
E,
|
|
360
|
+
O,
|
|
361
|
+
j
|
|
362
|
+
]), A(() => {
|
|
363
363
|
i?.({
|
|
364
|
-
query:
|
|
365
|
-
provider:
|
|
366
|
-
topics: [...
|
|
367
|
-
order:
|
|
368
|
-
page:
|
|
364
|
+
query: C,
|
|
365
|
+
provider: O,
|
|
366
|
+
topics: [...j],
|
|
367
|
+
order: E,
|
|
368
|
+
page: R
|
|
369
369
|
});
|
|
370
370
|
}, [
|
|
371
|
-
|
|
371
|
+
E,
|
|
372
372
|
i,
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
373
|
+
R,
|
|
374
|
+
O,
|
|
375
|
+
C,
|
|
376
|
+
j
|
|
377
377
|
]);
|
|
378
|
-
let K =
|
|
378
|
+
let K = y.find((e) => e.id === B) ?? y[0] ?? null, q = K?.owner ?? null, J = q ? y.filter((e) => e.owner.githubUsername === q.githubUsername) : [], ae = M(() => {
|
|
379
379
|
let e = /* @__PURE__ */ new Map();
|
|
380
|
-
for (let t of
|
|
380
|
+
for (let t of y) e.set(t.modelProvider, (e.get(t.modelProvider) || 0) + 1);
|
|
381
381
|
return [{
|
|
382
382
|
slug: "all",
|
|
383
|
-
count:
|
|
383
|
+
count: y.length
|
|
384
384
|
}, ...[...e.entries()].map(([e, t]) => ({
|
|
385
385
|
slug: e,
|
|
386
386
|
count: t
|
|
387
387
|
}))];
|
|
388
|
-
}, [
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
}, [
|
|
392
|
-
let Y =
|
|
393
|
-
let e = Oe(
|
|
388
|
+
}, [y]);
|
|
389
|
+
A(() => {
|
|
390
|
+
B && !y.some((e) => e.id === B) && (V(null), U("browse"));
|
|
391
|
+
}, [B, y]);
|
|
392
|
+
let Y = M(() => {
|
|
393
|
+
let e = Oe(C);
|
|
394
394
|
return e ? v.collectives.filter((t) => [
|
|
395
395
|
t.name,
|
|
396
396
|
t.description,
|
|
397
397
|
t.linkedGithubOrg
|
|
398
398
|
].filter(Boolean).join(" ").toLowerCase().includes(e)) : null;
|
|
399
|
-
}, [v.collectives,
|
|
399
|
+
}, [v.collectives, C]), X = y, ce = j.size, le = v.transcripts.total ?? y.length, ue = R, fe = v.transcripts.limit || y.length || 1, Z = (e) => {
|
|
400
400
|
if (a) {
|
|
401
401
|
a(e);
|
|
402
402
|
return;
|
|
403
403
|
}
|
|
404
|
-
|
|
404
|
+
V(e.id), U("detail");
|
|
405
405
|
}, pe = () => {
|
|
406
|
-
if (
|
|
407
|
-
|
|
406
|
+
if (o && q) {
|
|
407
|
+
o(q);
|
|
408
408
|
return;
|
|
409
409
|
}
|
|
410
|
-
K ? (
|
|
410
|
+
K ? (V(K.id), U("profile")) : y[0] && (V(y[0].id), U("profile"));
|
|
411
411
|
}, me = () => {
|
|
412
|
-
|
|
413
|
-
}, Q =
|
|
412
|
+
S(""), w(""), D("recent"), k("all"), P(/* @__PURE__ */ new Set()), z(1);
|
|
413
|
+
}, Q = M(() => q ? [...Ae(J, (e) => e.projectName || "untitled project").entries()].map(([e, t]) => ({
|
|
414
414
|
project: e,
|
|
415
415
|
items: t
|
|
416
|
-
})) : [], [J, q]), $ =
|
|
416
|
+
})) : [], [J, q]), $ = M(() => {
|
|
417
417
|
let e = J.reduce((e, t) => e + (t.tokenCount || 0), 0);
|
|
418
418
|
return {
|
|
419
419
|
transcripts: J.length,
|
|
@@ -421,63 +421,63 @@ function Le({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
421
421
|
tokens: e
|
|
422
422
|
};
|
|
423
423
|
}, [J, Q.length]);
|
|
424
|
-
return
|
|
424
|
+
return H === "detail" && K ? /* @__PURE__ */ I("div", {
|
|
425
425
|
className: `cex-root cex-detail ${n}`.trim(),
|
|
426
|
-
children: [/* @__PURE__ */
|
|
426
|
+
children: [/* @__PURE__ */ I("div", {
|
|
427
427
|
className: "cex-detail-back",
|
|
428
|
-
children: [/* @__PURE__ */
|
|
428
|
+
children: [/* @__PURE__ */ I("button", {
|
|
429
429
|
type: "button",
|
|
430
430
|
className: "btn btn-secondary btn-sm",
|
|
431
431
|
onClick: () => U("browse"),
|
|
432
|
-
children: [/* @__PURE__ */
|
|
432
|
+
children: [/* @__PURE__ */ F(ie, {
|
|
433
433
|
size: 14,
|
|
434
434
|
"aria-hidden": "true"
|
|
435
435
|
}), " back to explore"]
|
|
436
|
-
}), /* @__PURE__ */
|
|
436
|
+
}), /* @__PURE__ */ I("button", {
|
|
437
437
|
type: "button",
|
|
438
438
|
className: "btn btn-secondary btn-sm",
|
|
439
439
|
onClick: pe,
|
|
440
|
-
children: [/* @__PURE__ */
|
|
440
|
+
children: [/* @__PURE__ */ F(he, {
|
|
441
441
|
size: 14,
|
|
442
442
|
"aria-hidden": "true"
|
|
443
443
|
}), " profile"]
|
|
444
444
|
})]
|
|
445
|
-
}), /* @__PURE__ */
|
|
445
|
+
}), /* @__PURE__ */ I("div", {
|
|
446
446
|
className: "window cex-viewer",
|
|
447
|
-
children: [/* @__PURE__ */
|
|
447
|
+
children: [/* @__PURE__ */ I("div", {
|
|
448
448
|
className: "win-head cex-viewer-head",
|
|
449
449
|
children: [
|
|
450
|
-
/* @__PURE__ */
|
|
450
|
+
/* @__PURE__ */ F("div", {
|
|
451
451
|
className: "cex-head-top",
|
|
452
|
-
children: /* @__PURE__ */
|
|
452
|
+
children: /* @__PURE__ */ I("div", {
|
|
453
453
|
className: "crumb",
|
|
454
454
|
children: [
|
|
455
455
|
"commons ",
|
|
456
|
-
/* @__PURE__ */
|
|
456
|
+
/* @__PURE__ */ F("span", {
|
|
457
457
|
"aria-hidden": "true",
|
|
458
458
|
children: "›"
|
|
459
459
|
}),
|
|
460
460
|
" explore ",
|
|
461
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ F("span", {
|
|
462
462
|
"aria-hidden": "true",
|
|
463
463
|
children: "›"
|
|
464
464
|
}),
|
|
465
465
|
" ",
|
|
466
|
-
/* @__PURE__ */
|
|
466
|
+
/* @__PURE__ */ F("span", {
|
|
467
467
|
className: "cur mono",
|
|
468
468
|
children: K.id
|
|
469
469
|
})
|
|
470
470
|
]
|
|
471
471
|
})
|
|
472
472
|
}),
|
|
473
|
-
/* @__PURE__ */
|
|
473
|
+
/* @__PURE__ */ I("div", {
|
|
474
474
|
className: "cex-hero-title",
|
|
475
|
-
children: [/* @__PURE__ */
|
|
475
|
+
children: [/* @__PURE__ */ F(h, {
|
|
476
476
|
className: "win-title cex-vtitle",
|
|
477
477
|
children: ke(K.title || "untitled transcript")
|
|
478
|
-
}), /* @__PURE__ */
|
|
478
|
+
}), /* @__PURE__ */ F(c, { visibility: K.visibility })]
|
|
479
479
|
}),
|
|
480
|
-
/* @__PURE__ */
|
|
480
|
+
/* @__PURE__ */ I("p", {
|
|
481
481
|
className: "cex-vdesc",
|
|
482
482
|
children: [
|
|
483
483
|
K.projectName || "shared transcript",
|
|
@@ -485,20 +485,20 @@ function Le({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
485
485
|
K.owner.displayName || K.owner.githubUsername
|
|
486
486
|
]
|
|
487
487
|
}),
|
|
488
|
-
/* @__PURE__ */
|
|
488
|
+
/* @__PURE__ */ I("div", {
|
|
489
489
|
className: "cex-vmeta win-meta",
|
|
490
490
|
children: [
|
|
491
|
-
/* @__PURE__ */
|
|
491
|
+
/* @__PURE__ */ I("span", {
|
|
492
492
|
className: "metaitem",
|
|
493
|
-
children: [/* @__PURE__ */
|
|
493
|
+
children: [/* @__PURE__ */ F(r, {
|
|
494
494
|
harness: K.modelProvider,
|
|
495
495
|
accent: !0
|
|
496
|
-
}), /* @__PURE__ */
|
|
496
|
+
}), /* @__PURE__ */ F("span", { children: K.modelName || K.modelProvider })]
|
|
497
497
|
}),
|
|
498
|
-
/* @__PURE__ */
|
|
498
|
+
/* @__PURE__ */ I("span", {
|
|
499
499
|
className: "metaitem mono tnum",
|
|
500
500
|
children: [
|
|
501
|
-
/* @__PURE__ */
|
|
501
|
+
/* @__PURE__ */ F(ie, {
|
|
502
502
|
size: 14,
|
|
503
503
|
"aria-hidden": "true"
|
|
504
504
|
}),
|
|
@@ -507,10 +507,10 @@ function Le({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
507
507
|
" turns"
|
|
508
508
|
]
|
|
509
509
|
}),
|
|
510
|
-
/* @__PURE__ */
|
|
510
|
+
/* @__PURE__ */ I("span", {
|
|
511
511
|
className: "metaitem mono tnum",
|
|
512
512
|
children: [
|
|
513
|
-
/* @__PURE__ */
|
|
513
|
+
/* @__PURE__ */ F("span", {
|
|
514
514
|
"aria-hidden": "true",
|
|
515
515
|
children: "#"
|
|
516
516
|
}),
|
|
@@ -519,73 +519,73 @@ function Le({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
519
519
|
" tokens"
|
|
520
520
|
]
|
|
521
521
|
}),
|
|
522
|
-
/* @__PURE__ */
|
|
522
|
+
/* @__PURE__ */ I("span", {
|
|
523
523
|
className: "metaitem mono tnum",
|
|
524
524
|
children: [K.toolCallCount ?? 0, " tools"]
|
|
525
525
|
})
|
|
526
526
|
]
|
|
527
527
|
})
|
|
528
528
|
]
|
|
529
|
-
}), /* @__PURE__ */
|
|
529
|
+
}), /* @__PURE__ */ I("div", {
|
|
530
530
|
className: "cex-viewer-body",
|
|
531
|
-
children: [/* @__PURE__ */
|
|
531
|
+
children: [/* @__PURE__ */ I("div", {
|
|
532
532
|
className: "cex-stream",
|
|
533
533
|
role: "tabpanel",
|
|
534
534
|
tabIndex: -1,
|
|
535
|
-
children: [/* @__PURE__ */
|
|
535
|
+
children: [/* @__PURE__ */ I("div", {
|
|
536
536
|
className: "phase",
|
|
537
|
-
children: [/* @__PURE__ */
|
|
537
|
+
children: [/* @__PURE__ */ F("span", {
|
|
538
538
|
className: "lbl",
|
|
539
539
|
children: "about"
|
|
540
|
-
}), /* @__PURE__ */
|
|
540
|
+
}), /* @__PURE__ */ F("span", {
|
|
541
541
|
className: "meta mono tnum",
|
|
542
542
|
children: Ee(K.sessionStart || K.sessionEnd || "")
|
|
543
543
|
})]
|
|
544
|
-
}), /* @__PURE__ */
|
|
544
|
+
}), /* @__PURE__ */ I("div", {
|
|
545
545
|
className: "turn",
|
|
546
|
-
children: [/* @__PURE__ */
|
|
546
|
+
children: [/* @__PURE__ */ F("div", {
|
|
547
547
|
className: "head",
|
|
548
|
-
children: /* @__PURE__ */
|
|
548
|
+
children: /* @__PURE__ */ F("span", {
|
|
549
549
|
className: "name",
|
|
550
550
|
children: "session summary"
|
|
551
551
|
})
|
|
552
|
-
}), /* @__PURE__ */
|
|
552
|
+
}), /* @__PURE__ */ I("div", {
|
|
553
553
|
className: "body",
|
|
554
|
-
children: [/* @__PURE__ */
|
|
554
|
+
children: [/* @__PURE__ */ F("p", { children: "This view surfaces the loaded transcript metadata, then lets the user move to the owner profile without leaving the shared surface." }), K.tags.length > 0 && /* @__PURE__ */ F("div", {
|
|
555
555
|
className: "cex-tags",
|
|
556
|
-
children: K.tags.map((e) => /* @__PURE__ */
|
|
556
|
+
children: K.tags.map((e) => /* @__PURE__ */ I("span", {
|
|
557
557
|
className: "chip",
|
|
558
558
|
children: ["#", e.name]
|
|
559
559
|
}, e.id))
|
|
560
560
|
})]
|
|
561
561
|
})]
|
|
562
562
|
})]
|
|
563
|
-
}), /* @__PURE__ */
|
|
563
|
+
}), /* @__PURE__ */ I("aside", {
|
|
564
564
|
className: "cex-psec",
|
|
565
565
|
"aria-label": "owner snapshot",
|
|
566
566
|
children: [
|
|
567
|
-
/* @__PURE__ */
|
|
567
|
+
/* @__PURE__ */ F(g, {
|
|
568
568
|
className: "cex-psec-title",
|
|
569
569
|
children: "owner snapshot"
|
|
570
570
|
}),
|
|
571
|
-
/* @__PURE__ */
|
|
571
|
+
/* @__PURE__ */ I("div", {
|
|
572
572
|
className: "cex-phero",
|
|
573
|
-
children: [/* @__PURE__ */
|
|
573
|
+
children: [/* @__PURE__ */ F("div", {
|
|
574
574
|
className: "cex-phero-av",
|
|
575
575
|
"aria-hidden": "true",
|
|
576
576
|
children: De(K.owner.displayName || K.owner.githubUsername)
|
|
577
|
-
}), /* @__PURE__ */
|
|
577
|
+
}), /* @__PURE__ */ I("div", {
|
|
578
578
|
className: "cex-phero-id",
|
|
579
|
-
children: [/* @__PURE__ */
|
|
579
|
+
children: [/* @__PURE__ */ F(_, {
|
|
580
580
|
className: "cex-h2 cex-pname",
|
|
581
581
|
children: K.owner.displayName || K.owner.githubUsername
|
|
582
|
-
}), /* @__PURE__ */
|
|
582
|
+
}), /* @__PURE__ */ I("span", {
|
|
583
583
|
className: "cex-phandle mono",
|
|
584
584
|
children: ["@", K.owner.githubUsername]
|
|
585
585
|
})]
|
|
586
586
|
})]
|
|
587
587
|
}),
|
|
588
|
-
/* @__PURE__ */
|
|
588
|
+
/* @__PURE__ */ F(ee, { tiles: [
|
|
589
589
|
{
|
|
590
590
|
key: "transcripts",
|
|
591
591
|
label: "transcripts",
|
|
@@ -606,62 +606,62 @@ function Le({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
606
606
|
})]
|
|
607
607
|
})]
|
|
608
608
|
})]
|
|
609
|
-
}) :
|
|
609
|
+
}) : H === "profile" && q ? /* @__PURE__ */ I("div", {
|
|
610
610
|
className: `cex-root cex-profile ${n}`.trim(),
|
|
611
611
|
children: [
|
|
612
|
-
/* @__PURE__ */
|
|
612
|
+
/* @__PURE__ */ I("div", {
|
|
613
613
|
className: "cex-detail-back",
|
|
614
|
-
children: [/* @__PURE__ */
|
|
614
|
+
children: [/* @__PURE__ */ I("button", {
|
|
615
615
|
type: "button",
|
|
616
616
|
className: "btn btn-secondary btn-sm",
|
|
617
617
|
onClick: () => U("detail"),
|
|
618
|
-
children: [/* @__PURE__ */
|
|
618
|
+
children: [/* @__PURE__ */ F(ie, {
|
|
619
619
|
size: 14,
|
|
620
620
|
"aria-hidden": "true"
|
|
621
621
|
}), " back to transcript"]
|
|
622
|
-
}), /* @__PURE__ */
|
|
622
|
+
}), /* @__PURE__ */ I("button", {
|
|
623
623
|
type: "button",
|
|
624
624
|
className: "btn btn-secondary btn-sm",
|
|
625
625
|
onClick: () => U("browse"),
|
|
626
|
-
children: [/* @__PURE__ */
|
|
626
|
+
children: [/* @__PURE__ */ F(re, {
|
|
627
627
|
size: 14,
|
|
628
628
|
"aria-hidden": "true"
|
|
629
629
|
}), " back to explore"]
|
|
630
630
|
})]
|
|
631
631
|
}),
|
|
632
|
-
/* @__PURE__ */
|
|
632
|
+
/* @__PURE__ */ I("div", {
|
|
633
633
|
className: "crumb cex-profile-crumb",
|
|
634
634
|
children: [
|
|
635
635
|
"commons ",
|
|
636
|
-
/* @__PURE__ */
|
|
636
|
+
/* @__PURE__ */ F("span", {
|
|
637
637
|
"aria-hidden": "true",
|
|
638
638
|
children: "›"
|
|
639
639
|
}),
|
|
640
640
|
" ",
|
|
641
|
-
/* @__PURE__ */
|
|
641
|
+
/* @__PURE__ */ I("span", {
|
|
642
642
|
className: "cur mono",
|
|
643
643
|
children: ["@", q.githubUsername]
|
|
644
644
|
})
|
|
645
645
|
]
|
|
646
646
|
}),
|
|
647
|
-
/* @__PURE__ */
|
|
647
|
+
/* @__PURE__ */ I("header", {
|
|
648
648
|
className: "cex-phero",
|
|
649
|
-
children: [/* @__PURE__ */
|
|
649
|
+
children: [/* @__PURE__ */ F("div", {
|
|
650
650
|
className: "cex-phero-av",
|
|
651
651
|
"aria-hidden": "true",
|
|
652
652
|
children: De(q.displayName || q.githubUsername)
|
|
653
|
-
}), /* @__PURE__ */
|
|
653
|
+
}), /* @__PURE__ */ I("div", {
|
|
654
654
|
className: "cex-phero-id",
|
|
655
|
-
children: [/* @__PURE__ */
|
|
655
|
+
children: [/* @__PURE__ */ F(h, {
|
|
656
656
|
className: "cex-h2 cex-pname",
|
|
657
657
|
children: q.displayName || q.githubUsername
|
|
658
|
-
}), /* @__PURE__ */
|
|
658
|
+
}), /* @__PURE__ */ I("span", {
|
|
659
659
|
className: "cex-phandle mono",
|
|
660
660
|
children: ["@", q.githubUsername]
|
|
661
661
|
})]
|
|
662
662
|
})]
|
|
663
663
|
}),
|
|
664
|
-
/* @__PURE__ */
|
|
664
|
+
/* @__PURE__ */ F(ee, { tiles: [
|
|
665
665
|
{
|
|
666
666
|
key: "transcripts",
|
|
667
667
|
label: "transcripts",
|
|
@@ -678,38 +678,38 @@ function Le({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
678
678
|
value: we($.tokens)
|
|
679
679
|
}
|
|
680
680
|
] }),
|
|
681
|
-
/* @__PURE__ */
|
|
681
|
+
/* @__PURE__ */ I("section", {
|
|
682
682
|
className: "cex-psec",
|
|
683
683
|
"aria-label": "published library",
|
|
684
|
-
children: [/* @__PURE__ */
|
|
684
|
+
children: [/* @__PURE__ */ F(g, {
|
|
685
685
|
className: "cex-psec-title",
|
|
686
686
|
children: "published library"
|
|
687
|
-
}), Q.length === 0 ? /* @__PURE__ */
|
|
687
|
+
}), Q.length === 0 ? /* @__PURE__ */ I("div", {
|
|
688
688
|
className: "empty cex-empty",
|
|
689
689
|
children: [
|
|
690
|
-
/* @__PURE__ */
|
|
690
|
+
/* @__PURE__ */ F("div", {
|
|
691
691
|
className: "ring",
|
|
692
|
-
children: /* @__PURE__ */
|
|
692
|
+
children: /* @__PURE__ */ F(re, {
|
|
693
693
|
size: 20,
|
|
694
694
|
"aria-hidden": "true"
|
|
695
695
|
})
|
|
696
696
|
}),
|
|
697
|
-
/* @__PURE__ */
|
|
698
|
-
/* @__PURE__ */
|
|
697
|
+
/* @__PURE__ */ F(g, { children: "no transcripts yet" }),
|
|
698
|
+
/* @__PURE__ */ F("p", { children: "this profile has not shared any transcripts in the commons." })
|
|
699
699
|
]
|
|
700
|
-
}) : /* @__PURE__ */
|
|
700
|
+
}) : /* @__PURE__ */ F("div", {
|
|
701
701
|
className: "cex-projects",
|
|
702
|
-
children: Q.map(({ project: e, items: t }) => /* @__PURE__ */
|
|
702
|
+
children: Q.map(({ project: e, items: t }) => /* @__PURE__ */ I("div", {
|
|
703
703
|
className: "cex-project",
|
|
704
|
-
children: [/* @__PURE__ */
|
|
704
|
+
children: [/* @__PURE__ */ I("div", {
|
|
705
705
|
className: "cex-project-head",
|
|
706
|
-
children: [/* @__PURE__ */
|
|
706
|
+
children: [/* @__PURE__ */ I("span", {
|
|
707
707
|
className: "cex-project-name",
|
|
708
|
-
children: [/* @__PURE__ */
|
|
708
|
+
children: [/* @__PURE__ */ F("span", {
|
|
709
709
|
"aria-hidden": "true",
|
|
710
710
|
children: "▣"
|
|
711
|
-
}), /* @__PURE__ */
|
|
712
|
-
}), /* @__PURE__ */
|
|
711
|
+
}), /* @__PURE__ */ F("b", { children: e })]
|
|
712
|
+
}), /* @__PURE__ */ I("span", {
|
|
713
713
|
className: "cex-project-cnt mono tnum",
|
|
714
714
|
children: [
|
|
715
715
|
t.length,
|
|
@@ -717,9 +717,9 @@ function Le({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
717
717
|
t.length === 1 ? "" : "s"
|
|
718
718
|
]
|
|
719
719
|
})]
|
|
720
|
-
}), /* @__PURE__ */
|
|
720
|
+
}), /* @__PURE__ */ F("div", {
|
|
721
721
|
className: "cex-lib-rows",
|
|
722
|
-
children: t.map((e) => /* @__PURE__ */
|
|
722
|
+
children: t.map((e) => /* @__PURE__ */ F(Fe, {
|
|
723
723
|
transcript: e,
|
|
724
724
|
href: u?.(e),
|
|
725
725
|
onOpen: Z
|
|
@@ -729,177 +729,177 @@ function Le({ data: e, className: n = "", onFiltersChange: i, onOpenTranscript:
|
|
|
729
729
|
})]
|
|
730
730
|
})
|
|
731
731
|
]
|
|
732
|
-
}) : /* @__PURE__ */
|
|
732
|
+
}) : /* @__PURE__ */ I("div", {
|
|
733
733
|
className: `cex-root ${n}`.trim(),
|
|
734
|
-
children: [/* @__PURE__ */
|
|
734
|
+
children: [/* @__PURE__ */ I("header", {
|
|
735
735
|
className: "cex-explore-head",
|
|
736
|
-
children: [/* @__PURE__ */
|
|
736
|
+
children: [/* @__PURE__ */ F(h, {
|
|
737
737
|
className: "cex-h2",
|
|
738
738
|
children: "explore transcripts"
|
|
739
|
-
}), /* @__PURE__ */
|
|
739
|
+
}), /* @__PURE__ */ I("div", {
|
|
740
740
|
className: "input-ico cex-searchbar",
|
|
741
|
-
children: [/* @__PURE__ */
|
|
741
|
+
children: [/* @__PURE__ */ F("input", {
|
|
742
742
|
className: "input",
|
|
743
743
|
type: "text",
|
|
744
|
-
value:
|
|
745
|
-
onChange: (e) =>
|
|
744
|
+
value: b,
|
|
745
|
+
onChange: (e) => S(e.target.value),
|
|
746
746
|
placeholder: "search transcripts",
|
|
747
747
|
"aria-label": "search transcripts, collectives, projects, models"
|
|
748
|
-
}),
|
|
748
|
+
}), b && /* @__PURE__ */ F("button", {
|
|
749
749
|
type: "button",
|
|
750
750
|
className: "cex-clear",
|
|
751
751
|
"aria-label": "clear search",
|
|
752
|
-
onClick: () =>
|
|
753
|
-
children: /* @__PURE__ */
|
|
752
|
+
onClick: () => S(""),
|
|
753
|
+
children: /* @__PURE__ */ F(de, {
|
|
754
754
|
size: 14,
|
|
755
755
|
"aria-hidden": "true"
|
|
756
756
|
})
|
|
757
757
|
})]
|
|
758
758
|
})]
|
|
759
|
-
}), /* @__PURE__ */
|
|
759
|
+
}), /* @__PURE__ */ I("div", {
|
|
760
760
|
className: "cex-explore-body",
|
|
761
|
-
children: [/* @__PURE__ */
|
|
762
|
-
order:
|
|
763
|
-
onOrder: (e) =>
|
|
761
|
+
children: [/* @__PURE__ */ F(T, {
|
|
762
|
+
order: E,
|
|
763
|
+
onOrder: (e) => D(e),
|
|
764
764
|
providers: ae,
|
|
765
|
-
activeProviders:
|
|
766
|
-
onProvider: (e) =>
|
|
765
|
+
activeProviders: O === "all" ? /* @__PURE__ */ new Set() : /* @__PURE__ */ new Set([O]),
|
|
766
|
+
onProvider: (e) => k((t) => t === e ? "all" : e),
|
|
767
767
|
topics: v.popularTags.map((e) => ({
|
|
768
768
|
tag: e.name,
|
|
769
769
|
count: e.usageCount
|
|
770
770
|
})),
|
|
771
|
-
activeTopics:
|
|
771
|
+
activeTopics: j,
|
|
772
772
|
onTopic: (e) => {
|
|
773
|
-
|
|
773
|
+
P((t) => {
|
|
774
774
|
let n = new Set(t);
|
|
775
775
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
776
776
|
});
|
|
777
777
|
},
|
|
778
778
|
onClear: me,
|
|
779
779
|
className: "cex-rail"
|
|
780
|
-
}), /* @__PURE__ */
|
|
780
|
+
}), /* @__PURE__ */ I("div", {
|
|
781
781
|
className: "cex-results",
|
|
782
782
|
children: [
|
|
783
|
-
Y && /* @__PURE__ */
|
|
783
|
+
Y && /* @__PURE__ */ I("section", {
|
|
784
784
|
className: "cex-coll-results",
|
|
785
785
|
"aria-label": "matching collectives",
|
|
786
|
-
children: [/* @__PURE__ */
|
|
786
|
+
children: [/* @__PURE__ */ F("div", {
|
|
787
787
|
className: "cex-results-head",
|
|
788
|
-
children: /* @__PURE__ */
|
|
788
|
+
children: /* @__PURE__ */ I("span", {
|
|
789
789
|
className: "cex-eyebrow",
|
|
790
|
-
children: ["collectives ", /* @__PURE__ */
|
|
790
|
+
children: ["collectives ", /* @__PURE__ */ F("span", {
|
|
791
791
|
className: "cex-count tnum",
|
|
792
792
|
children: Y.length
|
|
793
793
|
})]
|
|
794
794
|
})
|
|
795
|
-
}), Y.length === 0 ? /* @__PURE__ */
|
|
795
|
+
}), Y.length === 0 ? /* @__PURE__ */ F("p", {
|
|
796
796
|
className: "cex-nomatch-inline mono",
|
|
797
797
|
children: "no matching collectives."
|
|
798
|
-
}) : /* @__PURE__ */
|
|
798
|
+
}) : /* @__PURE__ */ F("div", {
|
|
799
799
|
className: "cex-coll-grid",
|
|
800
|
-
children: Y.map((e) => /* @__PURE__ */
|
|
800
|
+
children: Y.map((e) => /* @__PURE__ */ F(Ie, {
|
|
801
801
|
collective: e,
|
|
802
802
|
href: f?.(e),
|
|
803
803
|
onOpen: l
|
|
804
804
|
}, e.id))
|
|
805
805
|
})]
|
|
806
806
|
}),
|
|
807
|
-
/* @__PURE__ */
|
|
807
|
+
/* @__PURE__ */ I("div", {
|
|
808
808
|
className: "cex-results-head",
|
|
809
|
-
children: [/* @__PURE__ */
|
|
809
|
+
children: [/* @__PURE__ */ I("span", {
|
|
810
810
|
className: "cex-eyebrow",
|
|
811
|
-
children: ["transcripts ", /* @__PURE__ */
|
|
811
|
+
children: ["transcripts ", /* @__PURE__ */ F("span", {
|
|
812
812
|
className: "cex-count tnum",
|
|
813
813
|
role: "status",
|
|
814
814
|
"aria-live": "polite",
|
|
815
815
|
children: le
|
|
816
816
|
})]
|
|
817
|
-
}), /* @__PURE__ */
|
|
817
|
+
}), /* @__PURE__ */ I("div", {
|
|
818
818
|
className: "bs-seg cex-viewseg",
|
|
819
819
|
role: "group",
|
|
820
820
|
"aria-label": "view mode",
|
|
821
821
|
children: [
|
|
822
|
-
/* @__PURE__ */
|
|
822
|
+
/* @__PURE__ */ I("button", {
|
|
823
823
|
type: "button",
|
|
824
824
|
className: "bs-seg-opt",
|
|
825
|
-
"aria-pressed":
|
|
825
|
+
"aria-pressed": L === "grid",
|
|
826
826
|
"aria-label": "grid view",
|
|
827
|
-
onClick: () =>
|
|
828
|
-
children: [/* @__PURE__ */
|
|
827
|
+
onClick: () => ne("grid"),
|
|
828
|
+
children: [/* @__PURE__ */ F(oe, { size: 14 }), " grid"]
|
|
829
829
|
}),
|
|
830
|
-
/* @__PURE__ */
|
|
830
|
+
/* @__PURE__ */ I("button", {
|
|
831
831
|
type: "button",
|
|
832
832
|
className: "bs-seg-opt",
|
|
833
|
-
"aria-pressed":
|
|
833
|
+
"aria-pressed": L === "list",
|
|
834
834
|
"aria-label": "list view",
|
|
835
|
-
onClick: () =>
|
|
836
|
-
children: [/* @__PURE__ */
|
|
835
|
+
onClick: () => ne("list"),
|
|
836
|
+
children: [/* @__PURE__ */ F(se, { size: 14 }), " list"]
|
|
837
837
|
}),
|
|
838
|
-
/* @__PURE__ */
|
|
838
|
+
/* @__PURE__ */ I("button", {
|
|
839
839
|
type: "button",
|
|
840
840
|
className: "bs-seg-opt",
|
|
841
|
-
"aria-pressed":
|
|
841
|
+
"aria-pressed": H === "profile",
|
|
842
842
|
"aria-label": "profile view",
|
|
843
843
|
onClick: pe,
|
|
844
844
|
disabled: !X.length,
|
|
845
|
-
children: [/* @__PURE__ */
|
|
845
|
+
children: [/* @__PURE__ */ F(he, { size: 14 }), " profile"]
|
|
846
846
|
})
|
|
847
847
|
]
|
|
848
848
|
})]
|
|
849
849
|
}),
|
|
850
|
-
X.length === 0 ?
|
|
850
|
+
X.length === 0 ? C.trim() || O !== "all" || ce ? /* @__PURE__ */ I("div", {
|
|
851
851
|
className: "empty cex-empty",
|
|
852
852
|
children: [
|
|
853
|
-
/* @__PURE__ */
|
|
853
|
+
/* @__PURE__ */ F("div", {
|
|
854
854
|
className: "ring",
|
|
855
|
-
children: /* @__PURE__ */
|
|
855
|
+
children: /* @__PURE__ */ F(de, {
|
|
856
856
|
size: 20,
|
|
857
857
|
"aria-hidden": "true"
|
|
858
858
|
})
|
|
859
859
|
}),
|
|
860
|
-
/* @__PURE__ */
|
|
861
|
-
/* @__PURE__ */
|
|
862
|
-
/* @__PURE__ */
|
|
860
|
+
/* @__PURE__ */ F(g, { children: "no matches" }),
|
|
861
|
+
/* @__PURE__ */ F("p", { children: "no transcripts match your search and filters. broaden the query or clear the filters." }),
|
|
862
|
+
/* @__PURE__ */ F("button", {
|
|
863
863
|
type: "button",
|
|
864
864
|
className: "btn btn-secondary btn-sm",
|
|
865
865
|
onClick: me,
|
|
866
866
|
children: "clear filters"
|
|
867
867
|
})
|
|
868
868
|
]
|
|
869
|
-
}) : /* @__PURE__ */
|
|
869
|
+
}) : /* @__PURE__ */ I("div", {
|
|
870
870
|
className: "empty cex-empty",
|
|
871
871
|
children: [
|
|
872
|
-
/* @__PURE__ */
|
|
872
|
+
/* @__PURE__ */ F("div", {
|
|
873
873
|
className: "ring",
|
|
874
|
-
children: /* @__PURE__ */
|
|
874
|
+
children: /* @__PURE__ */ F(re, {
|
|
875
875
|
size: 20,
|
|
876
876
|
"aria-hidden": "true"
|
|
877
877
|
})
|
|
878
878
|
}),
|
|
879
|
-
/* @__PURE__ */
|
|
880
|
-
/* @__PURE__ */
|
|
879
|
+
/* @__PURE__ */ F(g, { children: "the commons is empty" }),
|
|
880
|
+
/* @__PURE__ */ F("p", { children: "no transcripts have been shared yet. once contributors publish, they show up here." })
|
|
881
881
|
]
|
|
882
|
-
}) :
|
|
882
|
+
}) : L === "grid" ? /* @__PURE__ */ F("div", {
|
|
883
883
|
className: "cex-grid",
|
|
884
|
-
children: X.map((e) => /* @__PURE__ */
|
|
884
|
+
children: X.map((e) => /* @__PURE__ */ F(Pe, {
|
|
885
885
|
transcript: e,
|
|
886
886
|
href: u?.(e),
|
|
887
887
|
onOpen: Z,
|
|
888
888
|
cardHeading: g
|
|
889
889
|
}, e.id))
|
|
890
|
-
}) : /* @__PURE__ */
|
|
890
|
+
}) : /* @__PURE__ */ F("div", {
|
|
891
891
|
className: "cex-list",
|
|
892
|
-
children: X.map((e) => /* @__PURE__ */
|
|
892
|
+
children: X.map((e) => /* @__PURE__ */ F(Fe, {
|
|
893
893
|
transcript: e,
|
|
894
894
|
href: u?.(e),
|
|
895
895
|
onOpen: Z
|
|
896
896
|
}, e.id))
|
|
897
897
|
}),
|
|
898
|
-
le > fe && /* @__PURE__ */
|
|
898
|
+
le > fe && /* @__PURE__ */ F(t, {
|
|
899
899
|
page: ue,
|
|
900
900
|
totalItems: le,
|
|
901
901
|
pageSize: fe,
|
|
902
|
-
onChange:
|
|
902
|
+
onChange: z,
|
|
903
903
|
className: "cex-pgn"
|
|
904
904
|
})
|
|
905
905
|
]
|
|
@@ -913,40 +913,40 @@ function Re(e) {
|
|
|
913
913
|
return String(e || "unknown").replace(/[-_]+/g, " ").replace(/\b\w/g, (e) => e.toUpperCase());
|
|
914
914
|
}
|
|
915
915
|
function ze(e) {
|
|
916
|
-
return
|
|
916
|
+
return E(e);
|
|
917
917
|
}
|
|
918
918
|
//#endregion
|
|
919
919
|
//#region src/mockups/inuse/CommonsManage.jsx
|
|
920
920
|
function Be({ cmd: e, note: t }) {
|
|
921
|
-
let [n, r] =
|
|
921
|
+
let [n, r] = N(!1);
|
|
922
922
|
function i() {
|
|
923
923
|
try {
|
|
924
924
|
navigator.clipboard?.writeText(e);
|
|
925
925
|
} catch {}
|
|
926
926
|
r(!0), window.setTimeout(() => r(!1), 2e3);
|
|
927
927
|
}
|
|
928
|
-
return /* @__PURE__ */
|
|
928
|
+
return /* @__PURE__ */ I("div", {
|
|
929
929
|
className: "cmg-cmd",
|
|
930
930
|
children: [
|
|
931
|
-
/* @__PURE__ */
|
|
931
|
+
/* @__PURE__ */ I("code", {
|
|
932
932
|
className: "cmg-cmd-text mono",
|
|
933
|
-
children: [/* @__PURE__ */
|
|
933
|
+
children: [/* @__PURE__ */ F("span", {
|
|
934
934
|
className: "cmg-cmd-prompt",
|
|
935
935
|
"aria-hidden": "true",
|
|
936
936
|
children: "$ "
|
|
937
937
|
}), e]
|
|
938
938
|
}),
|
|
939
|
-
/* @__PURE__ */
|
|
939
|
+
/* @__PURE__ */ I("button", {
|
|
940
940
|
type: "button",
|
|
941
941
|
className: "btn btn-sm btn-secondary cmg-cmd-copy",
|
|
942
942
|
onClick: i,
|
|
943
943
|
"aria-label": n ? "copied" : "copy command",
|
|
944
|
-
children: [
|
|
944
|
+
children: [F(n ? ne : V, {
|
|
945
945
|
size: 14,
|
|
946
946
|
"aria-hidden": "true"
|
|
947
947
|
}), n ? "copied" : "copy"]
|
|
948
948
|
}),
|
|
949
|
-
t ? /* @__PURE__ */
|
|
949
|
+
t ? /* @__PURE__ */ F("span", {
|
|
950
950
|
className: "cmg-cmd-note mono",
|
|
951
951
|
children: t
|
|
952
952
|
}) : null
|
|
@@ -1031,113 +1031,113 @@ function Ue({ v: e, names: t }) {
|
|
|
1031
1031
|
cls: "cmg-eye-private"
|
|
1032
1032
|
}
|
|
1033
1033
|
}, { Icon: r, label: i, cls: a } = n[e] || n.private;
|
|
1034
|
-
return /* @__PURE__ */
|
|
1034
|
+
return /* @__PURE__ */ I("span", {
|
|
1035
1035
|
className: "cmg-eye " + a,
|
|
1036
1036
|
title: i,
|
|
1037
|
-
children: [/* @__PURE__ */
|
|
1037
|
+
children: [/* @__PURE__ */ F(r, {
|
|
1038
1038
|
size: 14,
|
|
1039
1039
|
"aria-hidden": "true"
|
|
1040
|
-
}), /* @__PURE__ */
|
|
1040
|
+
}), /* @__PURE__ */ F("span", {
|
|
1041
1041
|
className: "cmg-sr",
|
|
1042
1042
|
children: i
|
|
1043
1043
|
})]
|
|
1044
1044
|
});
|
|
1045
1045
|
}
|
|
1046
1046
|
function We() {
|
|
1047
|
-
let [e, t] =
|
|
1048
|
-
return /* @__PURE__ */
|
|
1047
|
+
let [e, t] = N(!0), [n, r] = N(!1);
|
|
1048
|
+
return /* @__PURE__ */ I("div", {
|
|
1049
1049
|
className: "cmg-root",
|
|
1050
|
-
children: [/* @__PURE__ */
|
|
1050
|
+
children: [/* @__PURE__ */ I("div", {
|
|
1051
1051
|
className: "cmg-page",
|
|
1052
1052
|
children: [
|
|
1053
|
-
/* @__PURE__ */
|
|
1053
|
+
/* @__PURE__ */ I("div", {
|
|
1054
1054
|
className: "crumb cmg-crumb",
|
|
1055
1055
|
children: [
|
|
1056
1056
|
"peasant online ",
|
|
1057
|
-
/* @__PURE__ */
|
|
1057
|
+
/* @__PURE__ */ F(z, {
|
|
1058
1058
|
size: 14,
|
|
1059
1059
|
"aria-hidden": "true"
|
|
1060
1060
|
}),
|
|
1061
1061
|
" ",
|
|
1062
|
-
/* @__PURE__ */
|
|
1062
|
+
/* @__PURE__ */ F("span", {
|
|
1063
1063
|
className: "cur",
|
|
1064
1064
|
children: "publish"
|
|
1065
1065
|
})
|
|
1066
1066
|
]
|
|
1067
1067
|
}),
|
|
1068
|
-
/* @__PURE__ */
|
|
1068
|
+
/* @__PURE__ */ F("header", {
|
|
1069
1069
|
className: "cmg-head",
|
|
1070
|
-
children: /* @__PURE__ */
|
|
1070
|
+
children: /* @__PURE__ */ F("div", { children: /* @__PURE__ */ F("h2", {
|
|
1071
1071
|
className: "cmg-title",
|
|
1072
1072
|
children: "publishing dashboard"
|
|
1073
1073
|
}) })
|
|
1074
1074
|
}),
|
|
1075
|
-
e && /* @__PURE__ */
|
|
1075
|
+
e && /* @__PURE__ */ I("section", {
|
|
1076
1076
|
className: "cmg-gs card",
|
|
1077
1077
|
"aria-labelledby": "cmg-gs-h",
|
|
1078
|
-
children: [/* @__PURE__ */
|
|
1078
|
+
children: [/* @__PURE__ */ I("div", {
|
|
1079
1079
|
className: "cmg-gs-head",
|
|
1080
|
-
children: [/* @__PURE__ */
|
|
1080
|
+
children: [/* @__PURE__ */ I("span", {
|
|
1081
1081
|
className: "cmg-gs-h-l",
|
|
1082
|
-
children: [/* @__PURE__ */
|
|
1082
|
+
children: [/* @__PURE__ */ F(Terminal, {
|
|
1083
1083
|
size: 16,
|
|
1084
1084
|
"aria-hidden": "true",
|
|
1085
1085
|
className: "cmg-gs-ico"
|
|
1086
|
-
}), /* @__PURE__ */
|
|
1086
|
+
}), /* @__PURE__ */ F("h3", {
|
|
1087
1087
|
id: "cmg-gs-h",
|
|
1088
1088
|
className: "cmg-sub",
|
|
1089
1089
|
children: "getting started"
|
|
1090
1090
|
})]
|
|
1091
|
-
}), /* @__PURE__ */
|
|
1091
|
+
}), /* @__PURE__ */ F("button", {
|
|
1092
1092
|
type: "button",
|
|
1093
1093
|
className: "btn btn-sm btn-icon btn-ghost",
|
|
1094
1094
|
onClick: () => t(!1),
|
|
1095
1095
|
"aria-label": "dismiss getting started",
|
|
1096
|
-
children: /* @__PURE__ */
|
|
1096
|
+
children: /* @__PURE__ */ F(_e, {
|
|
1097
1097
|
size: 14,
|
|
1098
1098
|
"aria-hidden": "true"
|
|
1099
1099
|
})
|
|
1100
1100
|
})]
|
|
1101
|
-
}), /* @__PURE__ */
|
|
1101
|
+
}), /* @__PURE__ */ I("div", {
|
|
1102
1102
|
className: "cmg-gs-body",
|
|
1103
|
-
children: [/* @__PURE__ */
|
|
1103
|
+
children: [/* @__PURE__ */ I("div", {
|
|
1104
1104
|
className: "cmg-step",
|
|
1105
|
-
children: [/* @__PURE__ */
|
|
1105
|
+
children: [/* @__PURE__ */ F("span", {
|
|
1106
1106
|
className: "cmg-step-n tnum",
|
|
1107
1107
|
"aria-hidden": "true",
|
|
1108
1108
|
children: "1"
|
|
1109
|
-
}), /* @__PURE__ */
|
|
1109
|
+
}), /* @__PURE__ */ I("div", {
|
|
1110
1110
|
className: "cmg-step-main",
|
|
1111
1111
|
children: [
|
|
1112
|
-
/* @__PURE__ */
|
|
1112
|
+
/* @__PURE__ */ F("div", {
|
|
1113
1113
|
className: "cmg-step-title",
|
|
1114
1114
|
children: "run the setup wizard"
|
|
1115
1115
|
}),
|
|
1116
|
-
/* @__PURE__ */
|
|
1116
|
+
/* @__PURE__ */ F("p", {
|
|
1117
1117
|
className: "cmg-step-desc",
|
|
1118
1118
|
children: "connects github, discovers agent transcripts, configures providers (Claude Code / OpenCode), sets your redaction level."
|
|
1119
1119
|
}),
|
|
1120
|
-
/* @__PURE__ */
|
|
1120
|
+
/* @__PURE__ */ F(Be, { cmd: "peasant kickstart" })
|
|
1121
1121
|
]
|
|
1122
1122
|
})]
|
|
1123
|
-
}), /* @__PURE__ */
|
|
1123
|
+
}), /* @__PURE__ */ I("div", {
|
|
1124
1124
|
className: "cmg-step",
|
|
1125
|
-
children: [/* @__PURE__ */
|
|
1125
|
+
children: [/* @__PURE__ */ F("span", {
|
|
1126
1126
|
className: "cmg-step-n tnum",
|
|
1127
1127
|
"aria-hidden": "true",
|
|
1128
1128
|
children: "2"
|
|
1129
|
-
}), /* @__PURE__ */
|
|
1129
|
+
}), /* @__PURE__ */ I("div", {
|
|
1130
1130
|
className: "cmg-step-main",
|
|
1131
1131
|
children: [
|
|
1132
|
-
/* @__PURE__ */
|
|
1132
|
+
/* @__PURE__ */ F("div", {
|
|
1133
1133
|
className: "cmg-step-title",
|
|
1134
1134
|
children: "push transcripts"
|
|
1135
1135
|
}),
|
|
1136
|
-
/* @__PURE__ */
|
|
1136
|
+
/* @__PURE__ */ F("p", {
|
|
1137
1137
|
className: "cmg-step-desc",
|
|
1138
1138
|
children: "auto-redaction runs before upload. add --dry-run to preview, or --visibility public to override."
|
|
1139
1139
|
}),
|
|
1140
|
-
/* @__PURE__ */
|
|
1140
|
+
/* @__PURE__ */ F(Be, {
|
|
1141
1141
|
cmd: "peasant village push",
|
|
1142
1142
|
note: "--dry-run preview, --visibility public override"
|
|
1143
1143
|
})
|
|
@@ -1146,48 +1146,48 @@ function We() {
|
|
|
1146
1146
|
})]
|
|
1147
1147
|
})]
|
|
1148
1148
|
}),
|
|
1149
|
-
/* @__PURE__ */
|
|
1149
|
+
/* @__PURE__ */ I("section", {
|
|
1150
1150
|
className: "cmg-recent card",
|
|
1151
1151
|
"aria-labelledby": "cmg-recent-h",
|
|
1152
|
-
children: [/* @__PURE__ */
|
|
1152
|
+
children: [/* @__PURE__ */ I("div", {
|
|
1153
1153
|
className: "cmg-recent-head",
|
|
1154
|
-
children: [/* @__PURE__ */
|
|
1154
|
+
children: [/* @__PURE__ */ F("h3", {
|
|
1155
1155
|
id: "cmg-recent-h",
|
|
1156
1156
|
className: "cmg-sub",
|
|
1157
1157
|
children: "recent publishes"
|
|
1158
|
-
}), /* @__PURE__ */
|
|
1158
|
+
}), /* @__PURE__ */ I("button", {
|
|
1159
1159
|
type: "button",
|
|
1160
1160
|
className: "btn btn-sm btn-secondary",
|
|
1161
1161
|
onClick: () => r(!0),
|
|
1162
|
-
children: [/* @__PURE__ */
|
|
1162
|
+
children: [/* @__PURE__ */ F(Q, {
|
|
1163
1163
|
size: 14,
|
|
1164
1164
|
"aria-hidden": "true"
|
|
1165
1165
|
}), " import"]
|
|
1166
1166
|
})]
|
|
1167
|
-
}), Ve.length === 0 ? /* @__PURE__ */
|
|
1167
|
+
}), Ve.length === 0 ? /* @__PURE__ */ F("div", {
|
|
1168
1168
|
className: "cmg-recent-empty mono",
|
|
1169
1169
|
children: "no transcripts published yet."
|
|
1170
|
-
}) : /* @__PURE__ */
|
|
1170
|
+
}) : /* @__PURE__ */ F("ul", {
|
|
1171
1171
|
className: "cmg-pub-list",
|
|
1172
|
-
children: Ve.map((e) => /* @__PURE__ */
|
|
1172
|
+
children: Ve.map((e) => /* @__PURE__ */ I("li", {
|
|
1173
1173
|
className: "cmg-pub-row",
|
|
1174
1174
|
children: [
|
|
1175
|
-
/* @__PURE__ */
|
|
1175
|
+
/* @__PURE__ */ F("span", {
|
|
1176
1176
|
className: "cmg-pub-prov",
|
|
1177
|
-
children: /* @__PURE__ */
|
|
1177
|
+
children: /* @__PURE__ */ F(ProviderMark, { id: e.provider })
|
|
1178
1178
|
}),
|
|
1179
|
-
/* @__PURE__ */
|
|
1179
|
+
/* @__PURE__ */ F("span", {
|
|
1180
1180
|
className: "cmg-pub-title",
|
|
1181
1181
|
children: e.title
|
|
1182
1182
|
}),
|
|
1183
|
-
/* @__PURE__ */
|
|
1183
|
+
/* @__PURE__ */ F("span", {
|
|
1184
1184
|
className: "cmg-pub-meta mono",
|
|
1185
1185
|
children: e.project
|
|
1186
1186
|
}),
|
|
1187
|
-
/* @__PURE__ */
|
|
1187
|
+
/* @__PURE__ */ I("span", {
|
|
1188
1188
|
className: "cmg-pub-meta mono tnum",
|
|
1189
1189
|
children: [
|
|
1190
|
-
/* @__PURE__ */
|
|
1190
|
+
/* @__PURE__ */ F(J, {
|
|
1191
1191
|
size: 14,
|
|
1192
1192
|
"aria-hidden": "true"
|
|
1193
1193
|
}),
|
|
@@ -1195,8 +1195,8 @@ function We() {
|
|
|
1195
1195
|
e.turns
|
|
1196
1196
|
]
|
|
1197
1197
|
}),
|
|
1198
|
-
/* @__PURE__ */
|
|
1199
|
-
/* @__PURE__ */
|
|
1198
|
+
/* @__PURE__ */ F(Ue, { v: e.visibility }),
|
|
1199
|
+
/* @__PURE__ */ F("span", {
|
|
1200
1200
|
className: "cmg-pub-date mono tnum",
|
|
1201
1201
|
children: e.date
|
|
1202
1202
|
})
|
|
@@ -1205,11 +1205,11 @@ function We() {
|
|
|
1205
1205
|
})]
|
|
1206
1206
|
})
|
|
1207
1207
|
]
|
|
1208
|
-
}), n && /* @__PURE__ */
|
|
1208
|
+
}), n && /* @__PURE__ */ F("div", {
|
|
1209
1209
|
className: "cmg-scrim",
|
|
1210
1210
|
role: "presentation",
|
|
1211
1211
|
onClick: () => r(!1),
|
|
1212
|
-
children: /* @__PURE__ */
|
|
1212
|
+
children: /* @__PURE__ */ I("div", {
|
|
1213
1213
|
className: "cmg-dialog",
|
|
1214
1214
|
role: "dialog",
|
|
1215
1215
|
"aria-modal": "true",
|
|
@@ -1217,42 +1217,42 @@ function We() {
|
|
|
1217
1217
|
onClick: (e) => e.stopPropagation(),
|
|
1218
1218
|
onKeyDown: (e) => e.key === "Escape" && r(!1),
|
|
1219
1219
|
children: [
|
|
1220
|
-
/* @__PURE__ */
|
|
1220
|
+
/* @__PURE__ */ I("div", {
|
|
1221
1221
|
className: "cmg-dlg-head",
|
|
1222
|
-
children: [/* @__PURE__ */
|
|
1222
|
+
children: [/* @__PURE__ */ F("h3", {
|
|
1223
1223
|
id: "cmg-import-h",
|
|
1224
1224
|
className: "cmg-sub",
|
|
1225
1225
|
children: "how to import transcripts"
|
|
1226
|
-
}), /* @__PURE__ */
|
|
1226
|
+
}), /* @__PURE__ */ F("button", {
|
|
1227
1227
|
type: "button",
|
|
1228
1228
|
className: "btn btn-sm btn-icon btn-ghost",
|
|
1229
1229
|
onClick: () => r(!1),
|
|
1230
1230
|
"aria-label": "close dialog",
|
|
1231
|
-
children: /* @__PURE__ */
|
|
1231
|
+
children: /* @__PURE__ */ F(_e, {
|
|
1232
1232
|
size: 14,
|
|
1233
1233
|
"aria-hidden": "true"
|
|
1234
1234
|
})
|
|
1235
1235
|
})]
|
|
1236
1236
|
}),
|
|
1237
|
-
/* @__PURE__ */
|
|
1237
|
+
/* @__PURE__ */ I("div", {
|
|
1238
1238
|
className: "cmg-dlg-body",
|
|
1239
|
-
children: [/* @__PURE__ */
|
|
1239
|
+
children: [/* @__PURE__ */ F("p", {
|
|
1240
1240
|
className: "cmg-dlg-intro mono",
|
|
1241
1241
|
children: "transcripts are imported through the peasant cli, not the web ui. follow these steps from a terminal:"
|
|
1242
|
-
}), /* @__PURE__ */
|
|
1242
|
+
}), /* @__PURE__ */ F("ol", {
|
|
1243
1243
|
className: "cmg-import-steps",
|
|
1244
|
-
children: He.map((e) => /* @__PURE__ */
|
|
1244
|
+
children: He.map((e) => /* @__PURE__ */ I("li", {
|
|
1245
1245
|
className: "cmg-step",
|
|
1246
|
-
children: [/* @__PURE__ */
|
|
1246
|
+
children: [/* @__PURE__ */ F("span", {
|
|
1247
1247
|
className: "cmg-step-n tnum",
|
|
1248
1248
|
"aria-hidden": "true",
|
|
1249
1249
|
children: e.n
|
|
1250
|
-
}), /* @__PURE__ */
|
|
1250
|
+
}), /* @__PURE__ */ I("div", {
|
|
1251
1251
|
className: "cmg-step-main",
|
|
1252
|
-
children: [/* @__PURE__ */
|
|
1252
|
+
children: [/* @__PURE__ */ F("div", {
|
|
1253
1253
|
className: "cmg-step-title",
|
|
1254
1254
|
children: e.title
|
|
1255
|
-
}), /* @__PURE__ */
|
|
1255
|
+
}), /* @__PURE__ */ F(Be, {
|
|
1256
1256
|
cmd: e.cmd,
|
|
1257
1257
|
note: e.note
|
|
1258
1258
|
})]
|
|
@@ -1260,9 +1260,9 @@ function We() {
|
|
|
1260
1260
|
}, e.n))
|
|
1261
1261
|
})]
|
|
1262
1262
|
}),
|
|
1263
|
-
/* @__PURE__ */
|
|
1263
|
+
/* @__PURE__ */ F("div", {
|
|
1264
1264
|
className: "cmg-dlg-foot",
|
|
1265
|
-
children: /* @__PURE__ */
|
|
1265
|
+
children: /* @__PURE__ */ F("button", {
|
|
1266
1266
|
type: "button",
|
|
1267
1267
|
className: "btn btn-sm btn-secondary",
|
|
1268
1268
|
onClick: () => r(!1),
|
|
@@ -1328,7 +1328,7 @@ var Ge = [
|
|
|
1328
1328
|
members: 12
|
|
1329
1329
|
};
|
|
1330
1330
|
function qe() {
|
|
1331
|
-
let [e, t] =
|
|
1331
|
+
let [e, t] = N(() => /* @__PURE__ */ new Set(["v1"])), [n, r] = N(() => new Set(Ge.map((e) => e.id))), [i, a] = N(!1), o = M(() => {
|
|
1332
1332
|
let e = {};
|
|
1333
1333
|
return Ge.forEach((t) => t.transcripts.forEach((n) => e[n.id] = {
|
|
1334
1334
|
...n,
|
|
@@ -1359,50 +1359,50 @@ function qe() {
|
|
|
1359
1359
|
});
|
|
1360
1360
|
}
|
|
1361
1361
|
let d = [...e].map((e) => o[e]).filter(Boolean), f = d.filter((e) => e.visibility === "private").length;
|
|
1362
|
-
return /* @__PURE__ */
|
|
1362
|
+
return /* @__PURE__ */ I("div", {
|
|
1363
1363
|
className: "cmg-root",
|
|
1364
|
-
children: [/* @__PURE__ */
|
|
1364
|
+
children: [/* @__PURE__ */ I("div", {
|
|
1365
1365
|
className: "cmg-page",
|
|
1366
1366
|
children: [
|
|
1367
|
-
/* @__PURE__ */
|
|
1367
|
+
/* @__PURE__ */ I("div", {
|
|
1368
1368
|
className: "crumb cmg-crumb",
|
|
1369
1369
|
children: [
|
|
1370
1370
|
"peasant online ",
|
|
1371
|
-
/* @__PURE__ */
|
|
1371
|
+
/* @__PURE__ */ F(z, {
|
|
1372
1372
|
size: 14,
|
|
1373
1373
|
"aria-hidden": "true"
|
|
1374
1374
|
}),
|
|
1375
1375
|
" AI Research Team ",
|
|
1376
|
-
/* @__PURE__ */
|
|
1376
|
+
/* @__PURE__ */ F(z, {
|
|
1377
1377
|
size: 14,
|
|
1378
1378
|
"aria-hidden": "true"
|
|
1379
1379
|
}),
|
|
1380
1380
|
" ",
|
|
1381
|
-
/* @__PURE__ */
|
|
1381
|
+
/* @__PURE__ */ F("span", {
|
|
1382
1382
|
className: "cur",
|
|
1383
1383
|
children: "contribute"
|
|
1384
1384
|
})
|
|
1385
1385
|
]
|
|
1386
1386
|
}),
|
|
1387
|
-
/* @__PURE__ */
|
|
1387
|
+
/* @__PURE__ */ F("header", {
|
|
1388
1388
|
className: "cmg-head",
|
|
1389
|
-
children: /* @__PURE__ */
|
|
1389
|
+
children: /* @__PURE__ */ F("div", { children: /* @__PURE__ */ F("h2", {
|
|
1390
1390
|
className: "cmg-title",
|
|
1391
1391
|
children: "contribute to AI Research Team"
|
|
1392
1392
|
}) })
|
|
1393
1393
|
}),
|
|
1394
|
-
/* @__PURE__ */
|
|
1394
|
+
/* @__PURE__ */ F("section", {
|
|
1395
1395
|
className: "card cmg-contribute",
|
|
1396
1396
|
"aria-label": "your transcripts by project",
|
|
1397
1397
|
children: Ge.map((t) => {
|
|
1398
1398
|
let r = c(t), i = n.has(t.id);
|
|
1399
|
-
return /* @__PURE__ */
|
|
1399
|
+
return /* @__PURE__ */ I("div", {
|
|
1400
1400
|
className: "cmg-proj",
|
|
1401
|
-
children: [/* @__PURE__ */
|
|
1401
|
+
children: [/* @__PURE__ */ I("div", {
|
|
1402
1402
|
className: "cmg-proj-head",
|
|
1403
|
-
children: [/* @__PURE__ */
|
|
1403
|
+
children: [/* @__PURE__ */ F("label", {
|
|
1404
1404
|
className: "check cmg-proj-check",
|
|
1405
|
-
children: /* @__PURE__ */
|
|
1405
|
+
children: /* @__PURE__ */ F("input", {
|
|
1406
1406
|
type: "checkbox",
|
|
1407
1407
|
className: "check-box",
|
|
1408
1408
|
checked: r === "all",
|
|
@@ -1410,24 +1410,24 @@ function qe() {
|
|
|
1410
1410
|
onChange: () => l(t),
|
|
1411
1411
|
"aria-label": `select all in ${t.name}`
|
|
1412
1412
|
})
|
|
1413
|
-
}), /* @__PURE__ */
|
|
1413
|
+
}), /* @__PURE__ */ I("button", {
|
|
1414
1414
|
type: "button",
|
|
1415
1415
|
className: "cmg-proj-toggle",
|
|
1416
1416
|
"aria-expanded": i,
|
|
1417
1417
|
onClick: () => u(t.id),
|
|
1418
1418
|
children: [
|
|
1419
|
-
|
|
1419
|
+
F(i ? R : z, {
|
|
1420
1420
|
size: 15,
|
|
1421
1421
|
"aria-hidden": "true"
|
|
1422
1422
|
}),
|
|
1423
|
-
/* @__PURE__ */
|
|
1423
|
+
/* @__PURE__ */ F("span", {
|
|
1424
1424
|
className: "cmg-proj-name mono",
|
|
1425
1425
|
children: t.name
|
|
1426
1426
|
}),
|
|
1427
|
-
/* @__PURE__ */
|
|
1427
|
+
/* @__PURE__ */ I("span", {
|
|
1428
1428
|
className: "cmg-proj-branch mono",
|
|
1429
1429
|
children: [
|
|
1430
|
-
/* @__PURE__ */
|
|
1430
|
+
/* @__PURE__ */ F(K, {
|
|
1431
1431
|
size: 14,
|
|
1432
1432
|
"aria-hidden": "true"
|
|
1433
1433
|
}),
|
|
@@ -1435,20 +1435,20 @@ function qe() {
|
|
|
1435
1435
|
t.branch
|
|
1436
1436
|
]
|
|
1437
1437
|
}),
|
|
1438
|
-
/* @__PURE__ */
|
|
1438
|
+
/* @__PURE__ */ F("span", {
|
|
1439
1439
|
className: "cmg-proj-cnt mono tnum",
|
|
1440
1440
|
children: t.transcripts.length
|
|
1441
1441
|
})
|
|
1442
1442
|
]
|
|
1443
1443
|
})]
|
|
1444
|
-
}), i && /* @__PURE__ */
|
|
1444
|
+
}), i && /* @__PURE__ */ F("ul", {
|
|
1445
1445
|
className: "cmg-tx-list",
|
|
1446
|
-
children: t.transcripts.map((t) => /* @__PURE__ */
|
|
1446
|
+
children: t.transcripts.map((t) => /* @__PURE__ */ I("li", {
|
|
1447
1447
|
className: "cmg-tx-row",
|
|
1448
1448
|
children: [
|
|
1449
|
-
/* @__PURE__ */
|
|
1449
|
+
/* @__PURE__ */ F("label", {
|
|
1450
1450
|
className: "check cmg-tx-check",
|
|
1451
|
-
children: /* @__PURE__ */
|
|
1451
|
+
children: /* @__PURE__ */ F("input", {
|
|
1452
1452
|
type: "checkbox",
|
|
1453
1453
|
className: "check-box",
|
|
1454
1454
|
checked: e.has(t.id),
|
|
@@ -1456,24 +1456,24 @@ function qe() {
|
|
|
1456
1456
|
"aria-label": `select ${t.title}`
|
|
1457
1457
|
})
|
|
1458
1458
|
}),
|
|
1459
|
-
/* @__PURE__ */
|
|
1459
|
+
/* @__PURE__ */ F("span", {
|
|
1460
1460
|
className: "cmg-pub-prov",
|
|
1461
|
-
children: /* @__PURE__ */
|
|
1461
|
+
children: /* @__PURE__ */ F(ProviderMark, { id: t.provider })
|
|
1462
1462
|
}),
|
|
1463
|
-
/* @__PURE__ */
|
|
1463
|
+
/* @__PURE__ */ F("span", {
|
|
1464
1464
|
className: "cmg-tx-title",
|
|
1465
1465
|
children: t.title
|
|
1466
1466
|
}),
|
|
1467
|
-
/* @__PURE__ */
|
|
1468
|
-
/* @__PURE__ */
|
|
1467
|
+
/* @__PURE__ */ F(Ue, { v: t.visibility }),
|
|
1468
|
+
/* @__PURE__ */ F("span", {
|
|
1469
1469
|
className: "cmg-tx-date mono tnum",
|
|
1470
1470
|
children: t.date
|
|
1471
1471
|
}),
|
|
1472
|
-
/* @__PURE__ */
|
|
1472
|
+
/* @__PURE__ */ F("button", {
|
|
1473
1473
|
type: "button",
|
|
1474
1474
|
className: "btn btn-sm btn-icon btn-ghost",
|
|
1475
1475
|
"aria-label": `preview ${t.title}`,
|
|
1476
|
-
children: /* @__PURE__ */
|
|
1476
|
+
children: /* @__PURE__ */ F(H, {
|
|
1477
1477
|
size: 14,
|
|
1478
1478
|
"aria-hidden": "true"
|
|
1479
1479
|
})
|
|
@@ -1484,21 +1484,21 @@ function qe() {
|
|
|
1484
1484
|
}, t.id);
|
|
1485
1485
|
})
|
|
1486
1486
|
}),
|
|
1487
|
-
/* @__PURE__ */
|
|
1487
|
+
/* @__PURE__ */ I("div", {
|
|
1488
1488
|
className: "cmg-contribute-foot",
|
|
1489
|
-
children: [/* @__PURE__ */
|
|
1489
|
+
children: [/* @__PURE__ */ I("span", {
|
|
1490
1490
|
className: "cmg-sel-count mono",
|
|
1491
1491
|
children: [
|
|
1492
|
-
/* @__PURE__ */
|
|
1492
|
+
/* @__PURE__ */ F("span", {
|
|
1493
1493
|
className: "tnum",
|
|
1494
1494
|
children: e.size
|
|
1495
1495
|
}),
|
|
1496
1496
|
" selected",
|
|
1497
|
-
f > 0 ? /* @__PURE__ */
|
|
1497
|
+
f > 0 ? /* @__PURE__ */ I("span", {
|
|
1498
1498
|
className: "cmg-sel-warn",
|
|
1499
1499
|
children: [
|
|
1500
1500
|
", ",
|
|
1501
|
-
/* @__PURE__ */
|
|
1501
|
+
/* @__PURE__ */ F("span", {
|
|
1502
1502
|
className: "tnum",
|
|
1503
1503
|
children: f
|
|
1504
1504
|
}),
|
|
@@ -1506,13 +1506,13 @@ function qe() {
|
|
|
1506
1506
|
]
|
|
1507
1507
|
}) : null
|
|
1508
1508
|
]
|
|
1509
|
-
}), /* @__PURE__ */
|
|
1509
|
+
}), /* @__PURE__ */ I("button", {
|
|
1510
1510
|
type: "button",
|
|
1511
1511
|
className: "btn btn-sm btn-primary",
|
|
1512
1512
|
disabled: e.size === 0,
|
|
1513
1513
|
onClick: () => a(!0),
|
|
1514
1514
|
children: [
|
|
1515
|
-
/* @__PURE__ */
|
|
1515
|
+
/* @__PURE__ */ F(Q, {
|
|
1516
1516
|
size: 14,
|
|
1517
1517
|
"aria-hidden": "true"
|
|
1518
1518
|
}),
|
|
@@ -1524,24 +1524,24 @@ function qe() {
|
|
|
1524
1524
|
})]
|
|
1525
1525
|
})
|
|
1526
1526
|
]
|
|
1527
|
-
}), /* @__PURE__ */
|
|
1527
|
+
}), /* @__PURE__ */ F(g, {
|
|
1528
1528
|
open: i,
|
|
1529
|
-
title: /* @__PURE__ */
|
|
1529
|
+
title: /* @__PURE__ */ I(P, { children: [
|
|
1530
1530
|
"make ",
|
|
1531
1531
|
f > 1 ? "these" : "this",
|
|
1532
1532
|
" visible?"
|
|
1533
1533
|
] }),
|
|
1534
|
-
intro: f > 0 ? /* @__PURE__ */
|
|
1535
|
-
/* @__PURE__ */
|
|
1534
|
+
intro: f > 0 ? /* @__PURE__ */ I("p", { children: [
|
|
1535
|
+
/* @__PURE__ */ F("span", {
|
|
1536
1536
|
className: "tnum",
|
|
1537
1537
|
children: f
|
|
1538
1538
|
}),
|
|
1539
1539
|
" private transcript",
|
|
1540
1540
|
f === 1 ? "" : "s",
|
|
1541
1541
|
" will become visible to members of ",
|
|
1542
|
-
/* @__PURE__ */
|
|
1542
|
+
/* @__PURE__ */ F("b", { children: Ke.name }),
|
|
1543
1543
|
". visibility will change from private to shared."
|
|
1544
|
-
] }) : /* @__PURE__ */
|
|
1544
|
+
] }) : /* @__PURE__ */ I("p", { children: [
|
|
1545
1545
|
"contributing ",
|
|
1546
1546
|
e.size,
|
|
1547
1547
|
" already-visible transcript",
|
|
@@ -1563,22 +1563,22 @@ function qe() {
|
|
|
1563
1563
|
}],
|
|
1564
1564
|
requireConsent: f > 0,
|
|
1565
1565
|
confirmLabel: f > 0 ? "contribute & make visible" : "contribute",
|
|
1566
|
-
confirmIcon:
|
|
1566
|
+
confirmIcon: L,
|
|
1567
1567
|
onCancel: () => a(!1),
|
|
1568
1568
|
onConfirm: () => a(!1),
|
|
1569
|
-
children: /* @__PURE__ */
|
|
1569
|
+
children: /* @__PURE__ */ I("ul", {
|
|
1570
1570
|
className: "cmg-confirm-list",
|
|
1571
|
-
children: [d.slice(0, 5).map((e) => /* @__PURE__ */
|
|
1571
|
+
children: [d.slice(0, 5).map((e) => /* @__PURE__ */ I("li", {
|
|
1572
1572
|
className: "cmg-confirm-tx",
|
|
1573
1573
|
children: [
|
|
1574
|
-
/* @__PURE__ */
|
|
1575
|
-
/* @__PURE__ */
|
|
1574
|
+
/* @__PURE__ */ F(ProviderMark, { id: e.provider }),
|
|
1575
|
+
/* @__PURE__ */ F("span", {
|
|
1576
1576
|
className: "cmg-confirm-title",
|
|
1577
1577
|
children: e.title
|
|
1578
1578
|
}),
|
|
1579
|
-
/* @__PURE__ */
|
|
1579
|
+
/* @__PURE__ */ F(Ue, { v: e.visibility })
|
|
1580
1580
|
]
|
|
1581
|
-
}, e.id)), d.length > 5 ? /* @__PURE__ */
|
|
1581
|
+
}, e.id)), d.length > 5 ? /* @__PURE__ */ I("li", {
|
|
1582
1582
|
className: "cmg-confirm-more mono",
|
|
1583
1583
|
children: [
|
|
1584
1584
|
"…and ",
|
|
@@ -1620,25 +1620,25 @@ var Je = Object.freeze([
|
|
|
1620
1620
|
curated: "curated"
|
|
1621
1621
|
}, Ze = (e) => String(e).replace(/-/g, " ");
|
|
1622
1622
|
function Qe({ href: e, onOpen: t, className: n, children: r }) {
|
|
1623
|
-
return e ? /* @__PURE__ */
|
|
1623
|
+
return e ? /* @__PURE__ */ F("a", {
|
|
1624
1624
|
className: n,
|
|
1625
1625
|
href: e,
|
|
1626
1626
|
onClick: (e) => {
|
|
1627
1627
|
!t || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || (e.preventDefault(), t());
|
|
1628
1628
|
},
|
|
1629
1629
|
children: r
|
|
1630
|
-
}) : t ? /* @__PURE__ */
|
|
1630
|
+
}) : t ? /* @__PURE__ */ F("button", {
|
|
1631
1631
|
type: "button",
|
|
1632
1632
|
className: `${n} cmg-link-button`,
|
|
1633
1633
|
onClick: t,
|
|
1634
1634
|
children: r
|
|
1635
|
-
}) : /* @__PURE__ */
|
|
1635
|
+
}) : /* @__PURE__ */ F("span", {
|
|
1636
1636
|
className: n,
|
|
1637
1637
|
children: r
|
|
1638
1638
|
});
|
|
1639
1639
|
}
|
|
1640
1640
|
function $e(e, t, n) {
|
|
1641
|
-
return e.map((e) => /* @__PURE__ */
|
|
1641
|
+
return e.map((e) => /* @__PURE__ */ F(Qe, {
|
|
1642
1642
|
className: "cmg-pr-link tnum",
|
|
1643
1643
|
href: n?.("pull-request", e),
|
|
1644
1644
|
onOpen: t ? () => t(e) : void 0,
|
|
@@ -1646,18 +1646,18 @@ function $e(e, t, n) {
|
|
|
1646
1646
|
}, e));
|
|
1647
1647
|
}
|
|
1648
1648
|
function et({ data: e = {}, actions: t = {} } = {}) {
|
|
1649
|
-
let { collectives: n = [], linkedOrgs: r = [], title:
|
|
1649
|
+
let { collectives: n = [], linkedOrgs: r = [], title: o = "collectives", deck: s, crumb: c, caption: l = "collectives", createLabel: u = "new collective", createBusy: d = !1, whoCanPublish: f = Je, whoCanRead: m = Ye } = e, { onCreateCollective: h, onOpenCollective: g, onSearchCollectives: _ } = t, [y, b] = N(!1), [x, S] = N(""), [C, w] = N(""), [T, ee] = N(f[0]?.value ?? ""), [E, D] = N(m[0]?.value ?? ""), [k, A] = N(""), [M, te] = N(""), P = j(), L = [
|
|
1650
1650
|
{
|
|
1651
1651
|
key: "name",
|
|
1652
1652
|
label: "name",
|
|
1653
|
-
render: (e, t) => /* @__PURE__ */
|
|
1653
|
+
render: (e, t) => /* @__PURE__ */ I("span", {
|
|
1654
1654
|
className: "cmg-cell-stack",
|
|
1655
|
-
children: [/* @__PURE__ */
|
|
1655
|
+
children: [/* @__PURE__ */ F("button", {
|
|
1656
1656
|
type: "button",
|
|
1657
1657
|
className: "cmg-table-link",
|
|
1658
1658
|
onClick: () => g?.(t.id),
|
|
1659
1659
|
children: t.name
|
|
1660
|
-
}), t.desc ? /* @__PURE__ */
|
|
1660
|
+
}), t.desc ? /* @__PURE__ */ F("span", {
|
|
1661
1661
|
className: "cmg-cell-desc",
|
|
1662
1662
|
children: t.desc
|
|
1663
1663
|
}) : null]
|
|
@@ -1666,9 +1666,9 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1666
1666
|
{
|
|
1667
1667
|
key: "role",
|
|
1668
1668
|
label: "your role",
|
|
1669
|
-
render: (e, t) => /* @__PURE__ */
|
|
1669
|
+
render: (e, t) => /* @__PURE__ */ I("span", {
|
|
1670
1670
|
className: "cmg-cell-stack",
|
|
1671
|
-
children: [/* @__PURE__ */
|
|
1671
|
+
children: [/* @__PURE__ */ F("span", { children: e }), t.since ? /* @__PURE__ */ F("span", {
|
|
1672
1672
|
className: "cmg-cell-sub",
|
|
1673
1673
|
children: t.since
|
|
1674
1674
|
}) : null]
|
|
@@ -1683,15 +1683,15 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1683
1683
|
key: "transcripts",
|
|
1684
1684
|
label: "transcripts",
|
|
1685
1685
|
align: "right",
|
|
1686
|
-
render: (e) => typeof e == "number" ?
|
|
1686
|
+
render: (e) => typeof e == "number" ? O(e) : e
|
|
1687
1687
|
},
|
|
1688
1688
|
...n.some((e) => e.org !== void 0) ? [{
|
|
1689
1689
|
key: "org",
|
|
1690
1690
|
label: "github org",
|
|
1691
|
-
render: (e, t) => t.org ? /* @__PURE__ */
|
|
1691
|
+
render: (e, t) => t.org ? /* @__PURE__ */ I("span", {
|
|
1692
1692
|
className: "mono",
|
|
1693
1693
|
children: [t.org, t.repos ? `, ${t.repos} open` : ""]
|
|
1694
|
-
}) : /* @__PURE__ */
|
|
1694
|
+
}) : /* @__PURE__ */ F("span", {
|
|
1695
1695
|
className: "cmg-none",
|
|
1696
1696
|
children: "nothing linked"
|
|
1697
1697
|
})
|
|
@@ -1702,115 +1702,115 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1702
1702
|
render: (e) => Xe[e] ?? e
|
|
1703
1703
|
}
|
|
1704
1704
|
];
|
|
1705
|
-
return /* @__PURE__ */
|
|
1705
|
+
return /* @__PURE__ */ I("div", {
|
|
1706
1706
|
className: "iu-page",
|
|
1707
1707
|
children: [
|
|
1708
|
-
|
|
1708
|
+
c ? /* @__PURE__ */ F("div", {
|
|
1709
1709
|
className: "cmg-crumb",
|
|
1710
|
-
children: /* @__PURE__ */
|
|
1710
|
+
children: /* @__PURE__ */ F(p, { items: [{ label: c }] })
|
|
1711
1711
|
}) : null,
|
|
1712
|
-
/* @__PURE__ */
|
|
1712
|
+
/* @__PURE__ */ I("header", {
|
|
1713
1713
|
className: "iu-page-head",
|
|
1714
|
-
children: [/* @__PURE__ */
|
|
1714
|
+
children: [/* @__PURE__ */ I("div", {
|
|
1715
1715
|
className: "iu-page-titlerow",
|
|
1716
|
-
children: [/* @__PURE__ */
|
|
1716
|
+
children: [/* @__PURE__ */ F("h2", {
|
|
1717
1717
|
className: "iu-page-title",
|
|
1718
|
-
children:
|
|
1719
|
-
}), /* @__PURE__ */
|
|
1718
|
+
children: o
|
|
1719
|
+
}), /* @__PURE__ */ I("button", {
|
|
1720
1720
|
type: "button",
|
|
1721
|
-
className: "btn btn-sm " + (
|
|
1722
|
-
"aria-expanded":
|
|
1723
|
-
onClick: () =>
|
|
1721
|
+
className: "btn btn-sm " + (y ? "btn-secondary" : "btn-primary"),
|
|
1722
|
+
"aria-expanded": y,
|
|
1723
|
+
onClick: () => b((e) => !e),
|
|
1724
1724
|
children: [
|
|
1725
|
-
/* @__PURE__ */
|
|
1725
|
+
/* @__PURE__ */ F(le, {
|
|
1726
1726
|
size: 14,
|
|
1727
1727
|
"aria-hidden": "true"
|
|
1728
1728
|
}),
|
|
1729
1729
|
" ",
|
|
1730
|
-
|
|
1730
|
+
y ? "close" : u
|
|
1731
1731
|
]
|
|
1732
1732
|
})]
|
|
1733
|
-
}),
|
|
1733
|
+
}), s ? /* @__PURE__ */ F("p", {
|
|
1734
1734
|
className: "iu-page-sub",
|
|
1735
|
-
children:
|
|
1735
|
+
children: s
|
|
1736
1736
|
}) : null]
|
|
1737
1737
|
}),
|
|
1738
|
-
|
|
1738
|
+
y && /* @__PURE__ */ I("section", {
|
|
1739
1739
|
className: "cmg-form card",
|
|
1740
|
-
"aria-labelledby": `${
|
|
1740
|
+
"aria-labelledby": `${P}-form`,
|
|
1741
1741
|
children: [
|
|
1742
|
-
/* @__PURE__ */
|
|
1743
|
-
id: `${
|
|
1742
|
+
/* @__PURE__ */ F("h3", {
|
|
1743
|
+
id: `${P}-form`,
|
|
1744
1744
|
className: "cmg-sub",
|
|
1745
1745
|
children: "create a collective"
|
|
1746
1746
|
}),
|
|
1747
|
-
/* @__PURE__ */
|
|
1747
|
+
/* @__PURE__ */ I("div", {
|
|
1748
1748
|
className: "cmg-form-grid",
|
|
1749
1749
|
children: [
|
|
1750
|
-
/* @__PURE__ */
|
|
1750
|
+
/* @__PURE__ */ I("label", {
|
|
1751
1751
|
className: "cmg-field",
|
|
1752
|
-
children: [/* @__PURE__ */
|
|
1752
|
+
children: [/* @__PURE__ */ F("span", {
|
|
1753
1753
|
className: "label",
|
|
1754
1754
|
children: "name"
|
|
1755
|
-
}), /* @__PURE__ */
|
|
1755
|
+
}), /* @__PURE__ */ F("input", {
|
|
1756
1756
|
className: "input",
|
|
1757
1757
|
type: "text",
|
|
1758
|
-
value:
|
|
1759
|
-
onChange: (e) =>
|
|
1758
|
+
value: x,
|
|
1759
|
+
onChange: (e) => S(e.target.value)
|
|
1760
1760
|
})]
|
|
1761
1761
|
}),
|
|
1762
|
-
/* @__PURE__ */
|
|
1762
|
+
/* @__PURE__ */ I("label", {
|
|
1763
1763
|
className: "cmg-field cmg-field-wide",
|
|
1764
|
-
children: [/* @__PURE__ */
|
|
1764
|
+
children: [/* @__PURE__ */ F("span", {
|
|
1765
1765
|
className: "label",
|
|
1766
1766
|
children: "purpose"
|
|
1767
|
-
}), /* @__PURE__ */
|
|
1767
|
+
}), /* @__PURE__ */ F("textarea", {
|
|
1768
1768
|
className: "input",
|
|
1769
1769
|
rows: 2,
|
|
1770
|
-
value:
|
|
1771
|
-
onChange: (e) =>
|
|
1770
|
+
value: C,
|
|
1771
|
+
onChange: (e) => w(e.target.value)
|
|
1772
1772
|
})]
|
|
1773
1773
|
}),
|
|
1774
|
-
/* @__PURE__ */
|
|
1774
|
+
/* @__PURE__ */ F("div", {
|
|
1775
1775
|
className: "cmg-field",
|
|
1776
|
-
children: /* @__PURE__ */
|
|
1776
|
+
children: /* @__PURE__ */ F(i, {
|
|
1777
1777
|
variant: "select",
|
|
1778
1778
|
label: "who can publish",
|
|
1779
1779
|
name: "who-can-publish",
|
|
1780
|
-
value:
|
|
1781
|
-
onChange:
|
|
1782
|
-
options:
|
|
1780
|
+
value: T,
|
|
1781
|
+
onChange: ee,
|
|
1782
|
+
options: f.map((e) => ({
|
|
1783
1783
|
...e,
|
|
1784
1784
|
rationale: e.help
|
|
1785
1785
|
}))
|
|
1786
1786
|
})
|
|
1787
1787
|
}),
|
|
1788
|
-
/* @__PURE__ */
|
|
1788
|
+
/* @__PURE__ */ F("div", {
|
|
1789
1789
|
className: "cmg-field",
|
|
1790
|
-
children: /* @__PURE__ */
|
|
1790
|
+
children: /* @__PURE__ */ F(i, {
|
|
1791
1791
|
variant: "select",
|
|
1792
1792
|
label: "who can read",
|
|
1793
1793
|
name: "who-can-read",
|
|
1794
|
-
value:
|
|
1795
|
-
onChange:
|
|
1794
|
+
value: E,
|
|
1795
|
+
onChange: D,
|
|
1796
1796
|
options: m
|
|
1797
1797
|
})
|
|
1798
1798
|
}),
|
|
1799
|
-
/* @__PURE__ */
|
|
1799
|
+
/* @__PURE__ */ I("label", {
|
|
1800
1800
|
className: "cmg-field",
|
|
1801
|
-
children: [/* @__PURE__ */
|
|
1801
|
+
children: [/* @__PURE__ */ F("span", {
|
|
1802
1802
|
className: "label",
|
|
1803
1803
|
children: "github org (optional)"
|
|
1804
|
-
}), /* @__PURE__ */
|
|
1804
|
+
}), /* @__PURE__ */ F("span", {
|
|
1805
1805
|
className: "select-wrap",
|
|
1806
|
-
children: /* @__PURE__ */
|
|
1806
|
+
children: /* @__PURE__ */ I("select", {
|
|
1807
1807
|
className: "select",
|
|
1808
|
-
value:
|
|
1809
|
-
onChange: (e) =>
|
|
1810
|
-
children: [/* @__PURE__ */
|
|
1808
|
+
value: k,
|
|
1809
|
+
onChange: (e) => A(e.target.value),
|
|
1810
|
+
children: [/* @__PURE__ */ F("option", {
|
|
1811
1811
|
value: "",
|
|
1812
1812
|
children: "not linked"
|
|
1813
|
-
}), r.map((e) => /* @__PURE__ */
|
|
1813
|
+
}), r.map((e) => /* @__PURE__ */ F("option", {
|
|
1814
1814
|
value: e,
|
|
1815
1815
|
children: e
|
|
1816
1816
|
}, e))]
|
|
@@ -1819,62 +1819,62 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1819
1819
|
})
|
|
1820
1820
|
]
|
|
1821
1821
|
}),
|
|
1822
|
-
/* @__PURE__ */
|
|
1822
|
+
/* @__PURE__ */ I("div", {
|
|
1823
1823
|
className: "cmg-form-foot",
|
|
1824
|
-
children: [/* @__PURE__ */
|
|
1824
|
+
children: [/* @__PURE__ */ F("button", {
|
|
1825
1825
|
type: "button",
|
|
1826
1826
|
className: "btn btn-sm btn-primary",
|
|
1827
|
-
disabled: !
|
|
1828
|
-
"aria-describedby":
|
|
1827
|
+
disabled: !x.trim() || d,
|
|
1828
|
+
"aria-describedby": P,
|
|
1829
1829
|
onClick: () => h?.({
|
|
1830
|
-
name:
|
|
1831
|
-
purpose:
|
|
1832
|
-
mode:
|
|
1833
|
-
access:
|
|
1834
|
-
org:
|
|
1830
|
+
name: x,
|
|
1831
|
+
purpose: C,
|
|
1832
|
+
mode: T,
|
|
1833
|
+
access: E,
|
|
1834
|
+
org: k
|
|
1835
1835
|
}),
|
|
1836
|
-
children:
|
|
1837
|
-
}), /* @__PURE__ */
|
|
1838
|
-
id:
|
|
1836
|
+
children: d ? "creating" : "create collective"
|
|
1837
|
+
}), /* @__PURE__ */ F("span", {
|
|
1838
|
+
id: P,
|
|
1839
1839
|
className: "cmg-form-hint mono",
|
|
1840
|
-
children:
|
|
1840
|
+
children: f.find((e) => e.value === T)?.help
|
|
1841
1841
|
})]
|
|
1842
1842
|
})
|
|
1843
1843
|
]
|
|
1844
1844
|
}),
|
|
1845
|
-
/* @__PURE__ */
|
|
1845
|
+
/* @__PURE__ */ I("div", {
|
|
1846
1846
|
className: "cmg-section",
|
|
1847
|
-
children: [/* @__PURE__ */
|
|
1848
|
-
caption: `${
|
|
1849
|
-
columns:
|
|
1847
|
+
children: [/* @__PURE__ */ F(a, {
|
|
1848
|
+
caption: `${l} ${n.length}`,
|
|
1849
|
+
columns: L,
|
|
1850
1850
|
rows: n,
|
|
1851
1851
|
rowKey: (e) => e.id
|
|
1852
|
-
}), n.some((e) => e.mode === "curated") ? /* @__PURE__ */
|
|
1852
|
+
}), n.some((e) => e.mode === "curated") ? /* @__PURE__ */ F("p", {
|
|
1853
1853
|
className: "cmg-note",
|
|
1854
1854
|
children: "in a curated collective, each transcript you publish waits for the owner to approve it."
|
|
1855
1855
|
}) : null]
|
|
1856
1856
|
}),
|
|
1857
|
-
_ && /* @__PURE__ */
|
|
1857
|
+
_ && /* @__PURE__ */ I("section", {
|
|
1858
1858
|
className: "cmg-section",
|
|
1859
|
-
"aria-labelledby": `${
|
|
1860
|
-
children: [/* @__PURE__ */
|
|
1859
|
+
"aria-labelledby": `${P}-find`,
|
|
1860
|
+
children: [/* @__PURE__ */ F("h3", {
|
|
1861
1861
|
className: "cmg-section-title",
|
|
1862
|
-
id: `${
|
|
1862
|
+
id: `${P}-find`,
|
|
1863
1863
|
children: "find a collective"
|
|
1864
|
-
}), /* @__PURE__ */
|
|
1864
|
+
}), /* @__PURE__ */ I("form", {
|
|
1865
1865
|
className: "cmg-find",
|
|
1866
1866
|
role: "search",
|
|
1867
1867
|
onSubmit: (e) => {
|
|
1868
|
-
e.preventDefault(), _(
|
|
1868
|
+
e.preventDefault(), _(M);
|
|
1869
1869
|
},
|
|
1870
|
-
children: [/* @__PURE__ */
|
|
1870
|
+
children: [/* @__PURE__ */ F(v, {
|
|
1871
1871
|
label: "collective or github org",
|
|
1872
1872
|
type: "search",
|
|
1873
1873
|
iconLeft: ue,
|
|
1874
1874
|
placeholder: "collective name or github org",
|
|
1875
|
-
value:
|
|
1876
|
-
onChange: (e) =>
|
|
1877
|
-
}), /* @__PURE__ */
|
|
1875
|
+
value: M,
|
|
1876
|
+
onChange: (e) => te(e.target.value)
|
|
1877
|
+
}), /* @__PURE__ */ F("button", {
|
|
1878
1878
|
type: "submit",
|
|
1879
1879
|
className: "btn btn-secondary",
|
|
1880
1880
|
children: "search"
|
|
@@ -1886,7 +1886,7 @@ function et({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
function tt({ members: e, count: t }) {
|
|
1888
1888
|
let n = e.slice(0, 2).map((e) => e.handle), r = t - n.length;
|
|
1889
|
-
return n.length === 0 ? null : /* @__PURE__ */
|
|
1889
|
+
return n.length === 0 ? null : /* @__PURE__ */ I("span", {
|
|
1890
1890
|
className: "cmg-members-text",
|
|
1891
1891
|
children: [n.join(", "), r > 0 ? ` and ${r} others` : ""]
|
|
1892
1892
|
});
|
|
@@ -1905,28 +1905,28 @@ function nt(e = {}) {
|
|
|
1905
1905
|
};
|
|
1906
1906
|
}
|
|
1907
1907
|
function rt({ data: e = {}, actions: t = {} } = {}) {
|
|
1908
|
-
let { owners: r = [], linkedRepos: i = [], hrefFor: o } = e, s = nt(e.collective), { onSettings: c, onContribute: l, onReview:
|
|
1908
|
+
let { owners: r = [], linkedRepos: i = [], hrefFor: o } = e, s = nt(e.collective), { onSettings: c, onContribute: l, onReview: u, onOpenTranscript: d, onOpenPullRequest: m, onLinkRepos: h, onShowMore: g } = t, [v, b] = N(!1), x = j(), C = s.transcriptCount ?? s.transcripts.length, w = [
|
|
1909
1909
|
{
|
|
1910
1910
|
key: "title",
|
|
1911
1911
|
label: "title",
|
|
1912
1912
|
width: "18rem",
|
|
1913
|
-
render: (e, t) => /* @__PURE__ */
|
|
1913
|
+
render: (e, t) => /* @__PURE__ */ I("span", {
|
|
1914
1914
|
className: "iu-session",
|
|
1915
|
-
children: [/* @__PURE__ */
|
|
1915
|
+
children: [/* @__PURE__ */ F(n, {
|
|
1916
1916
|
harness: t.harness,
|
|
1917
1917
|
accent: !0
|
|
1918
|
-
}), /* @__PURE__ */
|
|
1918
|
+
}), /* @__PURE__ */ I("span", {
|
|
1919
1919
|
className: "iu-session-text",
|
|
1920
|
-
children: [/* @__PURE__ */
|
|
1920
|
+
children: [/* @__PURE__ */ F(Qe, {
|
|
1921
1921
|
className: "iu-session-title",
|
|
1922
1922
|
href: o?.("transcript", t.id),
|
|
1923
|
-
onOpen:
|
|
1923
|
+
onOpen: d ? () => d(t.id) : void 0,
|
|
1924
1924
|
children: t.title
|
|
1925
|
-
}), /* @__PURE__ */
|
|
1925
|
+
}), /* @__PURE__ */ I("span", {
|
|
1926
1926
|
className: "iu-session-sub",
|
|
1927
|
-
children: [Ze(t.harness), typeof t.turns == "number" ? /* @__PURE__ */
|
|
1927
|
+
children: [Ze(t.harness), typeof t.turns == "number" ? /* @__PURE__ */ I(P, { children: [
|
|
1928
1928
|
", ",
|
|
1929
|
-
/* @__PURE__ */
|
|
1929
|
+
/* @__PURE__ */ F("span", {
|
|
1930
1930
|
className: "tnum",
|
|
1931
1931
|
children: t.turns
|
|
1932
1932
|
}),
|
|
@@ -1939,7 +1939,7 @@ function rt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1939
1939
|
{
|
|
1940
1940
|
key: "author",
|
|
1941
1941
|
label: "author",
|
|
1942
|
-
render: (e) => /* @__PURE__ */
|
|
1942
|
+
render: (e) => /* @__PURE__ */ F("span", {
|
|
1943
1943
|
className: "mono",
|
|
1944
1944
|
children: e
|
|
1945
1945
|
})
|
|
@@ -1947,17 +1947,17 @@ function rt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1947
1947
|
{
|
|
1948
1948
|
key: "pullRequests",
|
|
1949
1949
|
label: "pull requests",
|
|
1950
|
-
render: (e, t) => t.pullRequests?.length ? /* @__PURE__ */
|
|
1950
|
+
render: (e, t) => t.pullRequests?.length ? /* @__PURE__ */ I("span", {
|
|
1951
1951
|
className: "cmg-prs",
|
|
1952
|
-
children: [/* @__PURE__ */
|
|
1953
|
-
items: $e(t.pullRequests,
|
|
1952
|
+
children: [/* @__PURE__ */ F(S, {
|
|
1953
|
+
items: $e(t.pullRequests, m, o),
|
|
1954
1954
|
label: "pull requests",
|
|
1955
1955
|
noun: ["pull request", "pull requests"]
|
|
1956
|
-
}), t.repo && /* @__PURE__ */
|
|
1956
|
+
}), t.repo && /* @__PURE__ */ F("span", {
|
|
1957
1957
|
className: "cmg-none mono",
|
|
1958
1958
|
children: t.repo
|
|
1959
1959
|
})]
|
|
1960
|
-
}) : /* @__PURE__ */
|
|
1960
|
+
}) : /* @__PURE__ */ F("span", {
|
|
1961
1961
|
className: "cmg-none",
|
|
1962
1962
|
children: "not linked"
|
|
1963
1963
|
})
|
|
@@ -1983,35 +1983,35 @@ function rt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
1983
1983
|
text: s.yourRole
|
|
1984
1984
|
}
|
|
1985
1985
|
].filter((e) => e.text);
|
|
1986
|
-
return /* @__PURE__ */
|
|
1986
|
+
return /* @__PURE__ */ I(P, { children: [/* @__PURE__ */ I("div", {
|
|
1987
1987
|
className: "iu-page",
|
|
1988
1988
|
children: [
|
|
1989
|
-
/* @__PURE__ */
|
|
1989
|
+
/* @__PURE__ */ F("div", {
|
|
1990
1990
|
className: "cmg-crumb-content",
|
|
1991
|
-
children: /* @__PURE__ */
|
|
1991
|
+
children: /* @__PURE__ */ F(p, { items: [{
|
|
1992
1992
|
label: "collectives",
|
|
1993
1993
|
href: o?.("collectives")
|
|
1994
1994
|
}, { label: s.name }] })
|
|
1995
1995
|
}),
|
|
1996
|
-
/* @__PURE__ */
|
|
1996
|
+
/* @__PURE__ */ I("header", {
|
|
1997
1997
|
className: "iu-page-head",
|
|
1998
|
-
children: [/* @__PURE__ */
|
|
1998
|
+
children: [/* @__PURE__ */ I("div", {
|
|
1999
1999
|
className: "iu-page-titlerow",
|
|
2000
|
-
children: [/* @__PURE__ */
|
|
2000
|
+
children: [/* @__PURE__ */ F("h2", {
|
|
2001
2001
|
className: "iu-page-title iu-page-title-content",
|
|
2002
|
-
id:
|
|
2002
|
+
id: x,
|
|
2003
2003
|
children: s.name
|
|
2004
|
-
}), /* @__PURE__ */
|
|
2004
|
+
}), /* @__PURE__ */ I("span", {
|
|
2005
2005
|
className: "cmg-actions",
|
|
2006
|
-
children: [s.role === "owner" && c && /* @__PURE__ */
|
|
2006
|
+
children: [s.role === "owner" && c && /* @__PURE__ */ I("button", {
|
|
2007
2007
|
type: "button",
|
|
2008
2008
|
className: "btn btn-secondary btn-sm",
|
|
2009
2009
|
onClick: () => c(),
|
|
2010
|
-
children: [/* @__PURE__ */
|
|
2010
|
+
children: [/* @__PURE__ */ F(fe, {
|
|
2011
2011
|
size: 14,
|
|
2012
2012
|
"aria-hidden": "true"
|
|
2013
2013
|
}), " settings"]
|
|
2014
|
-
}), (l ||
|
|
2014
|
+
}), (l || u) && /* @__PURE__ */ F(f, {
|
|
2015
2015
|
icon: ce,
|
|
2016
2016
|
ariaLabel: "more",
|
|
2017
2017
|
size: "sm",
|
|
@@ -2020,124 +2020,124 @@ function rt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2020
2020
|
label: "publish several transcripts",
|
|
2021
2021
|
icon: Q,
|
|
2022
2022
|
onSelect: () => l()
|
|
2023
|
-
}] : [], ...
|
|
2023
|
+
}] : [], ...u ? [{
|
|
2024
2024
|
label: "review transcripts",
|
|
2025
|
-
icon:
|
|
2026
|
-
onSelect: () =>
|
|
2025
|
+
icon: B,
|
|
2026
|
+
onSelect: () => u()
|
|
2027
2027
|
}] : []]
|
|
2028
2028
|
})]
|
|
2029
2029
|
})]
|
|
2030
|
-
}), s.purpose ? /* @__PURE__ */
|
|
2030
|
+
}), s.purpose ? /* @__PURE__ */ F("p", {
|
|
2031
2031
|
className: "iu-page-sub",
|
|
2032
2032
|
children: s.purpose
|
|
2033
2033
|
}) : null]
|
|
2034
2034
|
}),
|
|
2035
|
-
T.length > 0 && /* @__PURE__ */
|
|
2035
|
+
T.length > 0 && /* @__PURE__ */ F("ul", {
|
|
2036
2036
|
className: "cmg-policies",
|
|
2037
2037
|
"aria-label": "how this collective works",
|
|
2038
|
-
children: T.map((e) => /* @__PURE__ */
|
|
2038
|
+
children: T.map((e) => /* @__PURE__ */ I("li", {
|
|
2039
2039
|
className: "cmg-policy",
|
|
2040
|
-
children: [/* @__PURE__ */
|
|
2040
|
+
children: [/* @__PURE__ */ F("h3", {
|
|
2041
2041
|
className: "cmg-policy-title",
|
|
2042
2042
|
children: e.title
|
|
2043
|
-
}), /* @__PURE__ */
|
|
2043
|
+
}), /* @__PURE__ */ F("p", {
|
|
2044
2044
|
className: "cmg-policy-text",
|
|
2045
2045
|
children: e.text
|
|
2046
2046
|
})]
|
|
2047
2047
|
}, e.key))
|
|
2048
2048
|
}),
|
|
2049
|
-
/* @__PURE__ */
|
|
2049
|
+
/* @__PURE__ */ F(y, {
|
|
2050
2050
|
items: s.stats,
|
|
2051
2051
|
label: `${s.name} in numbers`
|
|
2052
2052
|
}),
|
|
2053
|
-
/* @__PURE__ */
|
|
2053
|
+
/* @__PURE__ */ I("div", {
|
|
2054
2054
|
className: "cmg-home",
|
|
2055
|
-
children: [/* @__PURE__ */
|
|
2055
|
+
children: [/* @__PURE__ */ I("div", {
|
|
2056
2056
|
className: "cmg-home-main",
|
|
2057
|
-
children: [/* @__PURE__ */
|
|
2057
|
+
children: [/* @__PURE__ */ F(a, {
|
|
2058
2058
|
caption: `transcripts ${C}`,
|
|
2059
2059
|
columns: w,
|
|
2060
2060
|
rows: s.transcripts,
|
|
2061
2061
|
rowKey: (e) => e.id
|
|
2062
|
-
}), /* @__PURE__ */
|
|
2062
|
+
}), /* @__PURE__ */ I("div", {
|
|
2063
2063
|
className: "iu-page-foot",
|
|
2064
|
-
children: [/* @__PURE__ */
|
|
2064
|
+
children: [/* @__PURE__ */ I("span", {
|
|
2065
2065
|
className: "iu-page-count",
|
|
2066
2066
|
children: [
|
|
2067
2067
|
"showing ",
|
|
2068
|
-
/* @__PURE__ */
|
|
2068
|
+
/* @__PURE__ */ F("span", {
|
|
2069
2069
|
className: "tnum",
|
|
2070
2070
|
children: s.transcripts.length
|
|
2071
2071
|
}),
|
|
2072
2072
|
" of ",
|
|
2073
|
-
/* @__PURE__ */
|
|
2073
|
+
/* @__PURE__ */ F("span", {
|
|
2074
2074
|
className: "tnum",
|
|
2075
2075
|
children: C
|
|
2076
2076
|
})
|
|
2077
2077
|
]
|
|
2078
|
-
}), C > s.transcripts.length &&
|
|
2078
|
+
}), C > s.transcripts.length && g && /* @__PURE__ */ F("button", {
|
|
2079
2079
|
type: "button",
|
|
2080
2080
|
className: "btn btn-secondary btn-sm",
|
|
2081
|
-
onClick: () =>
|
|
2081
|
+
onClick: () => g(),
|
|
2082
2082
|
children: "show more"
|
|
2083
2083
|
})]
|
|
2084
2084
|
})]
|
|
2085
|
-
}), /* @__PURE__ */
|
|
2085
|
+
}), /* @__PURE__ */ I("aside", {
|
|
2086
2086
|
className: "cmg-rail",
|
|
2087
2087
|
"aria-label": "github orgs and members",
|
|
2088
|
-
children: [/* @__PURE__ */
|
|
2088
|
+
children: [/* @__PURE__ */ I("section", {
|
|
2089
2089
|
className: "cmg-rail-box",
|
|
2090
|
-
children: [/* @__PURE__ */
|
|
2090
|
+
children: [/* @__PURE__ */ F("h3", {
|
|
2091
2091
|
className: "cmg-rail-title",
|
|
2092
2092
|
children: "github orgs"
|
|
2093
|
-
}), s.org ? /* @__PURE__ */
|
|
2093
|
+
}), s.org ? /* @__PURE__ */ I("p", {
|
|
2094
2094
|
className: "cmg-rail-line",
|
|
2095
2095
|
children: [
|
|
2096
|
-
/* @__PURE__ */
|
|
2096
|
+
/* @__PURE__ */ F(G, { "aria-hidden": "true" }),
|
|
2097
2097
|
" ",
|
|
2098
|
-
/* @__PURE__ */
|
|
2098
|
+
/* @__PURE__ */ F("span", {
|
|
2099
2099
|
className: "mono",
|
|
2100
2100
|
children: s.org.login
|
|
2101
2101
|
}),
|
|
2102
|
-
typeof s.org.total == "number" ? /* @__PURE__ */
|
|
2102
|
+
typeof s.org.total == "number" ? /* @__PURE__ */ I(P, { children: [
|
|
2103
2103
|
", ",
|
|
2104
|
-
/* @__PURE__ */
|
|
2104
|
+
/* @__PURE__ */ F("span", {
|
|
2105
2105
|
className: "tnum",
|
|
2106
2106
|
children: s.org.linked ?? 0
|
|
2107
2107
|
}),
|
|
2108
2108
|
" of ",
|
|
2109
|
-
/* @__PURE__ */
|
|
2109
|
+
/* @__PURE__ */ F("span", {
|
|
2110
2110
|
className: "tnum",
|
|
2111
2111
|
children: s.org.total
|
|
2112
2112
|
}),
|
|
2113
2113
|
" repos linked"
|
|
2114
2114
|
] }) : null,
|
|
2115
|
-
s.role === "owner" &&
|
|
2115
|
+
s.role === "owner" && h && /* @__PURE__ */ F("button", {
|
|
2116
2116
|
type: "button",
|
|
2117
2117
|
className: "btn btn-ghost btn-sm",
|
|
2118
|
-
onClick: () =>
|
|
2118
|
+
onClick: () => b(!0),
|
|
2119
2119
|
children: "manage"
|
|
2120
2120
|
})
|
|
2121
2121
|
]
|
|
2122
|
-
}) : s.org === null ? /* @__PURE__ */
|
|
2122
|
+
}) : s.org === null ? /* @__PURE__ */ F("p", {
|
|
2123
2123
|
className: "cmg-rail-line cmg-none",
|
|
2124
2124
|
children: "nothing linked"
|
|
2125
2125
|
}) : null]
|
|
2126
|
-
}), /* @__PURE__ */
|
|
2126
|
+
}), /* @__PURE__ */ I("section", {
|
|
2127
2127
|
className: "cmg-rail-box",
|
|
2128
2128
|
children: [
|
|
2129
|
-
/* @__PURE__ */
|
|
2129
|
+
/* @__PURE__ */ I("h3", {
|
|
2130
2130
|
className: "cmg-rail-title",
|
|
2131
|
-
children: ["members", typeof s.memberCount == "number" ? /* @__PURE__ */
|
|
2131
|
+
children: ["members", typeof s.memberCount == "number" ? /* @__PURE__ */ I(P, { children: [" ", /* @__PURE__ */ F("span", {
|
|
2132
2132
|
className: "tnum cmg-count",
|
|
2133
2133
|
children: s.memberCount
|
|
2134
2134
|
})] }) : null]
|
|
2135
2135
|
}),
|
|
2136
|
-
s.memberBreakdown ? /* @__PURE__ */
|
|
2136
|
+
s.memberBreakdown ? /* @__PURE__ */ F("p", {
|
|
2137
2137
|
className: "cmg-note",
|
|
2138
2138
|
children: s.memberBreakdown
|
|
2139
2139
|
}) : null,
|
|
2140
|
-
/* @__PURE__ */
|
|
2140
|
+
/* @__PURE__ */ F(tt, {
|
|
2141
2141
|
members: s.members,
|
|
2142
2142
|
count: s.memberCount ?? s.members.length
|
|
2143
2143
|
})
|
|
@@ -2146,15 +2146,15 @@ function rt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2146
2146
|
})]
|
|
2147
2147
|
})
|
|
2148
2148
|
]
|
|
2149
|
-
}),
|
|
2150
|
-
open:
|
|
2151
|
-
onClose: () =>
|
|
2149
|
+
}), h && /* @__PURE__ */ F(_, {
|
|
2150
|
+
open: v,
|
|
2151
|
+
onClose: () => b(!1),
|
|
2152
2152
|
owners: r,
|
|
2153
2153
|
initialSelected: i,
|
|
2154
2154
|
title: `link repositories from ${s.org?.login ?? "github"}`,
|
|
2155
2155
|
description: `pull requests in linked repos show the transcripts published to ${s.name}.`,
|
|
2156
2156
|
onSave: (e) => {
|
|
2157
|
-
|
|
2157
|
+
h(e), b(!1);
|
|
2158
2158
|
}
|
|
2159
2159
|
})] });
|
|
2160
2160
|
}
|
|
@@ -2174,7 +2174,7 @@ function at(e, t) {
|
|
|
2174
2174
|
}
|
|
2175
2175
|
var ot = (e, t) => t.some((t) => t.value === e) ? e : "";
|
|
2176
2176
|
function st() {
|
|
2177
|
-
return /* @__PURE__ */
|
|
2177
|
+
return /* @__PURE__ */ F(e, { name: "github" });
|
|
2178
2178
|
}
|
|
2179
2179
|
var ct = {
|
|
2180
2180
|
general: pe,
|
|
@@ -2185,154 +2185,154 @@ var ct = {
|
|
|
2185
2185
|
"danger zone": me
|
|
2186
2186
|
};
|
|
2187
2187
|
function lt({ data: e = {}, actions: t = {} } = {}) {
|
|
2188
|
-
let { owners: n = [], linkedRepos: r = [], showOnPullRequests:
|
|
2188
|
+
let { owners: n = [], linkedRepos: r = [], showOnPullRequests: i = !1, whoCanPublish: a = Je, whoCanRead: o = Ye, memberLeavesChoices: s = it, hrefFor: c } = e, l = nt(e.collective), d = (e) => (n) => t.onCommit ? t.onCommit(e, n) : Promise.resolve(), [f, m] = N(!1), [g, y] = N(""), x = !!(t.onTransferOwnership || t.onDelete), S = [
|
|
2189
2189
|
"general",
|
|
2190
2190
|
"access",
|
|
2191
2191
|
"members",
|
|
2192
2192
|
"github orgs",
|
|
2193
2193
|
"pull requests",
|
|
2194
|
-
...
|
|
2195
|
-
],
|
|
2196
|
-
return /* @__PURE__ */
|
|
2194
|
+
...x ? ["danger zone"] : []
|
|
2195
|
+
], w = (e) => `cmg-settings-${e.replace(/ /g, "-")}`;
|
|
2196
|
+
return /* @__PURE__ */ I(P, { children: [/* @__PURE__ */ I("div", {
|
|
2197
2197
|
className: "iu-page cmg-settings",
|
|
2198
2198
|
children: [
|
|
2199
|
-
/* @__PURE__ */
|
|
2199
|
+
/* @__PURE__ */ F("div", {
|
|
2200
2200
|
className: "cmg-crumb-content",
|
|
2201
|
-
children: /* @__PURE__ */
|
|
2201
|
+
children: /* @__PURE__ */ F(p, { items: [
|
|
2202
2202
|
{
|
|
2203
2203
|
label: "collectives",
|
|
2204
|
-
href:
|
|
2204
|
+
href: c?.("collectives")
|
|
2205
2205
|
},
|
|
2206
2206
|
{
|
|
2207
|
-
label:
|
|
2208
|
-
href:
|
|
2207
|
+
label: l.name,
|
|
2208
|
+
href: c?.("collective", l.id)
|
|
2209
2209
|
},
|
|
2210
2210
|
{ label: "settings" }
|
|
2211
2211
|
] })
|
|
2212
2212
|
}),
|
|
2213
|
-
/* @__PURE__ */
|
|
2213
|
+
/* @__PURE__ */ F("header", {
|
|
2214
2214
|
className: "iu-page-head",
|
|
2215
|
-
children: /* @__PURE__ */
|
|
2215
|
+
children: /* @__PURE__ */ I("h2", {
|
|
2216
2216
|
className: "iu-page-title",
|
|
2217
|
-
children: [/* @__PURE__ */
|
|
2217
|
+
children: [/* @__PURE__ */ F("span", {
|
|
2218
2218
|
className: "iu-page-title-content",
|
|
2219
|
-
children:
|
|
2219
|
+
children: l.name
|
|
2220
2220
|
}), ", settings"]
|
|
2221
2221
|
})
|
|
2222
2222
|
}),
|
|
2223
|
-
/* @__PURE__ */
|
|
2224
|
-
sections:
|
|
2225
|
-
id:
|
|
2223
|
+
/* @__PURE__ */ I(C, {
|
|
2224
|
+
sections: S.map((e) => ({
|
|
2225
|
+
id: w(e),
|
|
2226
2226
|
label: e,
|
|
2227
|
-
href: `#${
|
|
2227
|
+
href: `#${w(e)}`,
|
|
2228
2228
|
icon: ct[e]
|
|
2229
2229
|
})),
|
|
2230
|
-
currentId: S
|
|
2230
|
+
currentId: w(S[0]),
|
|
2231
2231
|
spy: !0,
|
|
2232
2232
|
children: [
|
|
2233
|
-
/* @__PURE__ */
|
|
2233
|
+
/* @__PURE__ */ I(b, {
|
|
2234
2234
|
label: "general",
|
|
2235
2235
|
defaultOpen: !0,
|
|
2236
|
-
id:
|
|
2237
|
-
children: [/* @__PURE__ */
|
|
2236
|
+
id: w("general"),
|
|
2237
|
+
children: [/* @__PURE__ */ F(h, {
|
|
2238
2238
|
label: "name",
|
|
2239
2239
|
control: "text",
|
|
2240
|
-
value:
|
|
2241
|
-
onCommit:
|
|
2242
|
-
}), /* @__PURE__ */
|
|
2240
|
+
value: l.name,
|
|
2241
|
+
onCommit: d("name")
|
|
2242
|
+
}), /* @__PURE__ */ F(h, {
|
|
2243
2243
|
label: "purpose",
|
|
2244
2244
|
control: "text",
|
|
2245
|
-
value:
|
|
2246
|
-
onCommit:
|
|
2245
|
+
value: l.purpose ?? "",
|
|
2246
|
+
onCommit: d("purpose")
|
|
2247
2247
|
})]
|
|
2248
2248
|
}),
|
|
2249
|
-
/* @__PURE__ */
|
|
2249
|
+
/* @__PURE__ */ I(b, {
|
|
2250
2250
|
label: "access",
|
|
2251
2251
|
defaultOpen: !0,
|
|
2252
|
-
id:
|
|
2253
|
-
children: [/* @__PURE__ */
|
|
2252
|
+
id: w("access"),
|
|
2253
|
+
children: [/* @__PURE__ */ F(h, {
|
|
2254
2254
|
label: "who can publish",
|
|
2255
|
-
help: ((e) => e.filter((e) => e.help).map((e) => `${e.label}: ${e.help}`).join(" "))(
|
|
2255
|
+
help: ((e) => e.filter((e) => e.help).map((e) => `${e.label}: ${e.help}`).join(" "))(a),
|
|
2256
2256
|
control: "select",
|
|
2257
|
-
value: ot(
|
|
2258
|
-
options: at(
|
|
2259
|
-
onCommit:
|
|
2260
|
-
}), /* @__PURE__ */
|
|
2257
|
+
value: ot(l.mode, a),
|
|
2258
|
+
options: at(l.mode, a),
|
|
2259
|
+
onCommit: d("mode")
|
|
2260
|
+
}), /* @__PURE__ */ F(h, {
|
|
2261
2261
|
label: "who can read",
|
|
2262
2262
|
help: "members read and publish. contributors publish, and read only if who can read allows it.",
|
|
2263
2263
|
control: "select",
|
|
2264
|
-
value: ot(
|
|
2265
|
-
options: at(
|
|
2266
|
-
onCommit:
|
|
2264
|
+
value: ot(l.access, o),
|
|
2265
|
+
options: at(l.access, o),
|
|
2266
|
+
onCommit: d("access")
|
|
2267
2267
|
})]
|
|
2268
2268
|
}),
|
|
2269
|
-
/* @__PURE__ */
|
|
2269
|
+
/* @__PURE__ */ I(b, {
|
|
2270
2270
|
label: "members",
|
|
2271
2271
|
defaultOpen: !0,
|
|
2272
|
-
count:
|
|
2272
|
+
count: l.memberCount ?? null,
|
|
2273
2273
|
noun: ["member", "members"],
|
|
2274
|
-
id:
|
|
2274
|
+
id: w("members"),
|
|
2275
2275
|
children: [
|
|
2276
|
-
t.onInvite && /* @__PURE__ */
|
|
2276
|
+
t.onInvite && /* @__PURE__ */ I("form", {
|
|
2277
2277
|
className: "srow cmg-invite",
|
|
2278
2278
|
onSubmit: (e) => {
|
|
2279
|
-
e.preventDefault(), t.onInvite(
|
|
2279
|
+
e.preventDefault(), t.onInvite(g), y("");
|
|
2280
2280
|
},
|
|
2281
|
-
children: [/* @__PURE__ */
|
|
2281
|
+
children: [/* @__PURE__ */ F(v, {
|
|
2282
2282
|
label: "invite by github username",
|
|
2283
|
-
value:
|
|
2283
|
+
value: g,
|
|
2284
2284
|
onChange: (e) => y(e.target.value),
|
|
2285
2285
|
placeholder: "github username"
|
|
2286
|
-
}), /* @__PURE__ */
|
|
2286
|
+
}), /* @__PURE__ */ F("button", {
|
|
2287
2287
|
type: "submit",
|
|
2288
2288
|
className: "btn btn-secondary btn-sm",
|
|
2289
|
-
disabled: !
|
|
2289
|
+
disabled: !g.trim(),
|
|
2290
2290
|
children: "invite"
|
|
2291
2291
|
})]
|
|
2292
2292
|
}),
|
|
2293
|
-
/* @__PURE__ */
|
|
2293
|
+
/* @__PURE__ */ F("ul", {
|
|
2294
2294
|
className: "cmg-member-list",
|
|
2295
2295
|
"aria-label": "members",
|
|
2296
|
-
children:
|
|
2296
|
+
children: l.members.map((e) => /* @__PURE__ */ I("li", {
|
|
2297
2297
|
className: "cmg-member",
|
|
2298
2298
|
children: [
|
|
2299
|
-
/* @__PURE__ */
|
|
2299
|
+
/* @__PURE__ */ F(u, {
|
|
2300
2300
|
name: e.name ?? e.handle,
|
|
2301
2301
|
size: "sm"
|
|
2302
2302
|
}),
|
|
2303
|
-
/* @__PURE__ */
|
|
2303
|
+
/* @__PURE__ */ I("span", {
|
|
2304
2304
|
className: "cmg-member-id",
|
|
2305
2305
|
children: [
|
|
2306
|
-
/* @__PURE__ */
|
|
2306
|
+
/* @__PURE__ */ F("span", {
|
|
2307
2307
|
className: "mono",
|
|
2308
2308
|
children: e.handle
|
|
2309
2309
|
}),
|
|
2310
2310
|
" ",
|
|
2311
|
-
e.name ? /* @__PURE__ */
|
|
2311
|
+
e.name ? /* @__PURE__ */ F("span", {
|
|
2312
2312
|
className: "cmg-member-name",
|
|
2313
2313
|
children: e.name
|
|
2314
2314
|
}) : null
|
|
2315
2315
|
]
|
|
2316
2316
|
}),
|
|
2317
|
-
e.role === "owner" ? /* @__PURE__ */
|
|
2317
|
+
e.role === "owner" ? /* @__PURE__ */ F("span", {
|
|
2318
2318
|
className: "cmg-none mono",
|
|
2319
2319
|
children: "owner"
|
|
2320
|
-
}) : /* @__PURE__ */
|
|
2320
|
+
}) : /* @__PURE__ */ I(P, { children: [/* @__PURE__ */ F("span", {
|
|
2321
2321
|
className: "select-wrap cmg-member-role",
|
|
2322
|
-
children: /* @__PURE__ */
|
|
2322
|
+
children: /* @__PURE__ */ I("select", {
|
|
2323
2323
|
className: "select",
|
|
2324
2324
|
"aria-label": `role for ${e.handle}`,
|
|
2325
2325
|
defaultValue: e.role,
|
|
2326
2326
|
onChange: (n) => t.onRoleChange?.(e.handle, n.target.value),
|
|
2327
|
-
children: [/* @__PURE__ */
|
|
2327
|
+
children: [/* @__PURE__ */ F("option", {
|
|
2328
2328
|
value: "member",
|
|
2329
2329
|
children: "member"
|
|
2330
|
-
}), /* @__PURE__ */
|
|
2330
|
+
}), /* @__PURE__ */ F("option", {
|
|
2331
2331
|
value: "contributor",
|
|
2332
2332
|
children: "contributor"
|
|
2333
2333
|
})]
|
|
2334
2334
|
})
|
|
2335
|
-
}), t.onRemoveMember && /* @__PURE__ */
|
|
2335
|
+
}), t.onRemoveMember && /* @__PURE__ */ F("button", {
|
|
2336
2336
|
type: "button",
|
|
2337
2337
|
className: "btn btn-ghost btn-sm",
|
|
2338
2338
|
"aria-label": `remove ${e.handle}`,
|
|
@@ -2342,100 +2342,100 @@ function lt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2342
2342
|
]
|
|
2343
2343
|
}, e.handle))
|
|
2344
2344
|
}),
|
|
2345
|
-
/* @__PURE__ */
|
|
2345
|
+
/* @__PURE__ */ F(h, {
|
|
2346
2346
|
label: "when a member leaves",
|
|
2347
2347
|
help: "what happens to the transcripts they published here.",
|
|
2348
2348
|
control: "select",
|
|
2349
|
-
value: ot(
|
|
2350
|
-
options: at(
|
|
2351
|
-
onCommit:
|
|
2349
|
+
value: ot(l.memberLeaves, s),
|
|
2350
|
+
options: at(l.memberLeaves, s),
|
|
2351
|
+
onCommit: d("memberLeaves")
|
|
2352
2352
|
})
|
|
2353
2353
|
]
|
|
2354
2354
|
}),
|
|
2355
|
-
/* @__PURE__ */
|
|
2355
|
+
/* @__PURE__ */ F(b, {
|
|
2356
2356
|
label: "github orgs",
|
|
2357
2357
|
defaultOpen: !0,
|
|
2358
|
-
count:
|
|
2358
|
+
count: l.org === void 0 ? null : +!!l.org,
|
|
2359
2359
|
noun: ["org", "orgs"],
|
|
2360
|
-
id:
|
|
2361
|
-
children: /* @__PURE__ */
|
|
2360
|
+
id: w("github orgs"),
|
|
2361
|
+
children: /* @__PURE__ */ I("div", {
|
|
2362
2362
|
className: "srow",
|
|
2363
|
-
children: [/* @__PURE__ */
|
|
2363
|
+
children: [/* @__PURE__ */ I("span", {
|
|
2364
2364
|
className: "srow-text-col",
|
|
2365
|
-
children: [/* @__PURE__ */
|
|
2365
|
+
children: [/* @__PURE__ */ F("span", {
|
|
2366
2366
|
className: "srow-label",
|
|
2367
|
-
children:
|
|
2368
|
-
}), /* @__PURE__ */
|
|
2367
|
+
children: l.org ? l.org.login : l.org === null ? "no org linked" : "github org"
|
|
2368
|
+
}), /* @__PURE__ */ I("span", {
|
|
2369
2369
|
className: "srow-help",
|
|
2370
|
-
children: [typeof
|
|
2371
|
-
/* @__PURE__ */
|
|
2370
|
+
children: [typeof l.org?.total == "number" ? /* @__PURE__ */ I(P, { children: [
|
|
2371
|
+
/* @__PURE__ */ F("span", {
|
|
2372
2372
|
className: "tnum",
|
|
2373
|
-
children:
|
|
2373
|
+
children: l.org.linked ?? 0
|
|
2374
2374
|
}),
|
|
2375
2375
|
" of ",
|
|
2376
|
-
/* @__PURE__ */
|
|
2376
|
+
/* @__PURE__ */ F("span", {
|
|
2377
2377
|
className: "tnum",
|
|
2378
|
-
children:
|
|
2378
|
+
children: l.org.total
|
|
2379
2379
|
}),
|
|
2380
2380
|
" repos linked. "
|
|
2381
2381
|
] }) : null, "a collective links one github org today."]
|
|
2382
2382
|
})]
|
|
2383
|
-
}), t.onLinkRepos && /* @__PURE__ */
|
|
2383
|
+
}), t.onLinkRepos && /* @__PURE__ */ F("button", {
|
|
2384
2384
|
type: "button",
|
|
2385
2385
|
className: "btn btn-secondary btn-sm",
|
|
2386
|
-
onClick: () =>
|
|
2386
|
+
onClick: () => m(!0),
|
|
2387
2387
|
children: "manage"
|
|
2388
2388
|
})]
|
|
2389
2389
|
})
|
|
2390
2390
|
}),
|
|
2391
|
-
/* @__PURE__ */
|
|
2391
|
+
/* @__PURE__ */ F(b, {
|
|
2392
2392
|
label: "pull requests",
|
|
2393
2393
|
defaultOpen: !0,
|
|
2394
2394
|
count: 1,
|
|
2395
|
-
id:
|
|
2396
|
-
children: /* @__PURE__ */
|
|
2395
|
+
id: w("pull requests"),
|
|
2396
|
+
children: /* @__PURE__ */ F(h, {
|
|
2397
2397
|
label: "show transcripts on pull requests",
|
|
2398
2398
|
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.",
|
|
2399
2399
|
control: "switch",
|
|
2400
|
-
value:
|
|
2401
|
-
onCommit:
|
|
2400
|
+
value: i,
|
|
2401
|
+
onCommit: d("showOnPullRequests")
|
|
2402
2402
|
})
|
|
2403
2403
|
}),
|
|
2404
|
-
|
|
2404
|
+
x && /* @__PURE__ */ I(b, {
|
|
2405
2405
|
label: "danger zone",
|
|
2406
2406
|
defaultOpen: !0,
|
|
2407
2407
|
count: null,
|
|
2408
|
-
id:
|
|
2409
|
-
children: [t.onTransferOwnership && /* @__PURE__ */
|
|
2408
|
+
id: w("danger zone"),
|
|
2409
|
+
children: [t.onTransferOwnership && /* @__PURE__ */ I("div", {
|
|
2410
2410
|
className: "srow",
|
|
2411
|
-
children: [/* @__PURE__ */
|
|
2411
|
+
children: [/* @__PURE__ */ F("span", {
|
|
2412
2412
|
className: "srow-help",
|
|
2413
2413
|
children: "give the owner role to another member. you stay on as a member."
|
|
2414
|
-
}), /* @__PURE__ */
|
|
2414
|
+
}), /* @__PURE__ */ F("button", {
|
|
2415
2415
|
type: "button",
|
|
2416
2416
|
className: "btn btn-secondary btn-sm",
|
|
2417
2417
|
onClick: () => t.onTransferOwnership(),
|
|
2418
2418
|
children: "transfer ownership"
|
|
2419
2419
|
})]
|
|
2420
|
-
}), t.onDelete && /* @__PURE__ */
|
|
2420
|
+
}), t.onDelete && /* @__PURE__ */ I("div", {
|
|
2421
2421
|
className: "srow",
|
|
2422
|
-
children: [/* @__PURE__ */
|
|
2422
|
+
children: [/* @__PURE__ */ I("span", {
|
|
2423
2423
|
className: "srow-help",
|
|
2424
2424
|
children: [
|
|
2425
2425
|
"delete ",
|
|
2426
|
-
|
|
2426
|
+
l.name,
|
|
2427
2427
|
" for ",
|
|
2428
|
-
typeof
|
|
2428
|
+
typeof l.memberCount == "number" ? /* @__PURE__ */ I(P, { children: [
|
|
2429
2429
|
"all ",
|
|
2430
|
-
/* @__PURE__ */
|
|
2430
|
+
/* @__PURE__ */ F("span", {
|
|
2431
2431
|
className: "tnum",
|
|
2432
|
-
children:
|
|
2432
|
+
children: l.memberCount
|
|
2433
2433
|
}),
|
|
2434
2434
|
" members"
|
|
2435
2435
|
] }) : "all its members",
|
|
2436
2436
|
". this cannot be undone."
|
|
2437
2437
|
]
|
|
2438
|
-
}), /* @__PURE__ */
|
|
2438
|
+
}), /* @__PURE__ */ F("button", {
|
|
2439
2439
|
type: "button",
|
|
2440
2440
|
className: "btn btn-danger btn-sm",
|
|
2441
2441
|
onClick: () => t.onDelete(),
|
|
@@ -2446,14 +2446,14 @@ function lt({ data: e = {}, actions: t = {} } = {}) {
|
|
|
2446
2446
|
]
|
|
2447
2447
|
})
|
|
2448
2448
|
]
|
|
2449
|
-
}), t.onLinkRepos && /* @__PURE__ */
|
|
2450
|
-
open:
|
|
2451
|
-
onClose: () =>
|
|
2449
|
+
}), t.onLinkRepos && /* @__PURE__ */ F(_, {
|
|
2450
|
+
open: f,
|
|
2451
|
+
onClose: () => m(!1),
|
|
2452
2452
|
owners: n,
|
|
2453
2453
|
initialSelected: r,
|
|
2454
|
-
title: `link repositories from ${
|
|
2454
|
+
title: `link repositories from ${l.org?.login ?? "github"}`,
|
|
2455
2455
|
onSave: (e) => {
|
|
2456
|
-
t.onLinkRepos(e),
|
|
2456
|
+
t.onLinkRepos(e), m(!1);
|
|
2457
2457
|
}
|
|
2458
2458
|
})] });
|
|
2459
2459
|
}
|
|
@@ -2503,50 +2503,50 @@ function mt(e) {
|
|
|
2503
2503
|
}).format(t).toLowerCase();
|
|
2504
2504
|
}
|
|
2505
2505
|
function ht({ data: e = ft, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
2506
|
-
let { collective: r = ut, providerShare: i = [], pendingReview: a = [], members:
|
|
2507
|
-
|
|
2506
|
+
let { collective: r = ut, providerShare: i = [], pendingReview: a = [], members: s = [], redactions: c = [], browseRows: u = [], roleOptions: f = [], initialRole: p = "", initialShowRedaction: h = !1, initialBrowseGated: g = !1, stats: _ = dt } = e || ft, { onRoleChange: v, onJoin: y, onLeave: b, onSettings: x, onContribute: S, onToggleBrowse: C } = t || {}, [T, E] = N(p || r.role || ""), [D, O] = N(!!h), [k, A] = N(!!g), j = T || r.role || "guest", te = j === "owner", P = j === "guest", L = n && f.length > 0, ne = M(() => L ? f : [], [L, f]), R = (e) => {
|
|
2507
|
+
E(e), v?.(e);
|
|
2508
2508
|
};
|
|
2509
|
-
return /* @__PURE__ */
|
|
2509
|
+
return /* @__PURE__ */ F("div", {
|
|
2510
2510
|
className: "cmg-root",
|
|
2511
|
-
children: /* @__PURE__ */
|
|
2511
|
+
children: /* @__PURE__ */ I("div", {
|
|
2512
2512
|
className: "cmg-detail",
|
|
2513
2513
|
children: [
|
|
2514
|
-
/* @__PURE__ */
|
|
2514
|
+
/* @__PURE__ */ I("header", {
|
|
2515
2515
|
className: "cmg-d-hero",
|
|
2516
|
-
children: [/* @__PURE__ */
|
|
2516
|
+
children: [/* @__PURE__ */ I("div", {
|
|
2517
2517
|
className: "crumb cmg-crumb",
|
|
2518
2518
|
children: [
|
|
2519
2519
|
"online ",
|
|
2520
|
-
/* @__PURE__ */
|
|
2520
|
+
/* @__PURE__ */ F(z, {
|
|
2521
2521
|
size: 14,
|
|
2522
2522
|
"aria-hidden": "true"
|
|
2523
2523
|
}),
|
|
2524
2524
|
" collectives",
|
|
2525
2525
|
" ",
|
|
2526
|
-
/* @__PURE__ */
|
|
2526
|
+
/* @__PURE__ */ F(z, {
|
|
2527
2527
|
size: 14,
|
|
2528
2528
|
"aria-hidden": "true"
|
|
2529
2529
|
}),
|
|
2530
|
-
/* @__PURE__ */
|
|
2530
|
+
/* @__PURE__ */ F("span", {
|
|
2531
2531
|
className: "cur",
|
|
2532
2532
|
children: r.name || "collective"
|
|
2533
2533
|
})
|
|
2534
2534
|
]
|
|
2535
|
-
}), /* @__PURE__ */
|
|
2535
|
+
}), /* @__PURE__ */ I("div", {
|
|
2536
2536
|
className: "cmg-d-hero-row",
|
|
2537
|
-
children: [/* @__PURE__ */
|
|
2538
|
-
/* @__PURE__ */
|
|
2537
|
+
children: [/* @__PURE__ */ I("div", { children: [
|
|
2538
|
+
/* @__PURE__ */ F("h2", {
|
|
2539
2539
|
className: "cmg-title",
|
|
2540
2540
|
children: r.name || "collective"
|
|
2541
2541
|
}),
|
|
2542
|
-
r.description ? /* @__PURE__ */
|
|
2542
|
+
r.description ? /* @__PURE__ */ F("p", {
|
|
2543
2543
|
className: "cmg-deck",
|
|
2544
2544
|
children: r.description
|
|
2545
2545
|
}) : null,
|
|
2546
|
-
/* @__PURE__ */
|
|
2546
|
+
/* @__PURE__ */ I("span", {
|
|
2547
2547
|
className: "cmg-orgpill mono",
|
|
2548
2548
|
children: [
|
|
2549
|
-
/* @__PURE__ */
|
|
2549
|
+
/* @__PURE__ */ F(G, {
|
|
2550
2550
|
size: 14,
|
|
2551
2551
|
"aria-hidden": "true"
|
|
2552
2552
|
}),
|
|
@@ -2554,64 +2554,64 @@ function ht({ data: e = ft, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2554
2554
|
r.linkedGithubOrg || "not linked"
|
|
2555
2555
|
]
|
|
2556
2556
|
})
|
|
2557
|
-
] }), /* @__PURE__ */
|
|
2557
|
+
] }), /* @__PURE__ */ I("div", {
|
|
2558
2558
|
className: "cmg-d-actions btn-row",
|
|
2559
2559
|
children: [
|
|
2560
|
-
|
|
2560
|
+
L ? /* @__PURE__ */ F("div", {
|
|
2561
2561
|
className: "cmg-roleswitch",
|
|
2562
2562
|
role: "group",
|
|
2563
2563
|
"aria-label": "view as role",
|
|
2564
|
-
children:
|
|
2564
|
+
children: ne.map((e) => /* @__PURE__ */ F("button", {
|
|
2565
2565
|
type: "button",
|
|
2566
2566
|
className: "cmg-roleseg",
|
|
2567
|
-
"aria-pressed":
|
|
2568
|
-
onClick: () =>
|
|
2567
|
+
"aria-pressed": T === e,
|
|
2568
|
+
onClick: () => R(e),
|
|
2569
2569
|
children: e
|
|
2570
2570
|
}, e))
|
|
2571
|
-
}) : /* @__PURE__ */
|
|
2571
|
+
}) : /* @__PURE__ */ F("div", {
|
|
2572
2572
|
className: "cmg-roleswitch",
|
|
2573
2573
|
role: "group",
|
|
2574
2574
|
"aria-label": "your role",
|
|
2575
|
-
children: pt.map((e) => /* @__PURE__ */
|
|
2575
|
+
children: pt.map((e) => /* @__PURE__ */ F("span", {
|
|
2576
2576
|
className: "cmg-roleseg",
|
|
2577
|
-
"aria-current":
|
|
2578
|
-
"data-active":
|
|
2577
|
+
"aria-current": j === e ? "true" : void 0,
|
|
2578
|
+
"data-active": j === e || void 0,
|
|
2579
2579
|
style: { cursor: "default" },
|
|
2580
2580
|
children: e
|
|
2581
2581
|
}, e))
|
|
2582
2582
|
}),
|
|
2583
|
-
|
|
2583
|
+
P ? /* @__PURE__ */ I("button", {
|
|
2584
2584
|
type: "button",
|
|
2585
2585
|
className: "btn btn-sm btn-primary",
|
|
2586
|
-
onClick: () =>
|
|
2587
|
-
children: [/* @__PURE__ */
|
|
2586
|
+
onClick: () => y?.(),
|
|
2587
|
+
children: [/* @__PURE__ */ F($, {
|
|
2588
2588
|
size: 14,
|
|
2589
2589
|
"aria-hidden": "true"
|
|
2590
2590
|
}), " join as contributor"]
|
|
2591
2591
|
}) : null,
|
|
2592
|
-
(
|
|
2592
|
+
(j === "member" || j === "contributor") && S ? /* @__PURE__ */ I("button", {
|
|
2593
2593
|
type: "button",
|
|
2594
2594
|
className: "btn btn-sm btn-primary",
|
|
2595
|
-
onClick: () =>
|
|
2596
|
-
children: [/* @__PURE__ */
|
|
2595
|
+
onClick: () => S?.(),
|
|
2596
|
+
children: [/* @__PURE__ */ F(Z, {
|
|
2597
2597
|
size: 14,
|
|
2598
2598
|
"aria-hidden": "true"
|
|
2599
2599
|
}), " contribute"]
|
|
2600
2600
|
}) : null,
|
|
2601
|
-
(
|
|
2601
|
+
(j === "member" || j === "contributor") && b ? /* @__PURE__ */ I("button", {
|
|
2602
2602
|
type: "button",
|
|
2603
2603
|
className: "btn btn-sm btn-danger",
|
|
2604
|
-
onClick: () =>
|
|
2605
|
-
children: [/* @__PURE__ */
|
|
2604
|
+
onClick: () => b?.(),
|
|
2605
|
+
children: [/* @__PURE__ */ F(X, {
|
|
2606
2606
|
size: 14,
|
|
2607
2607
|
"aria-hidden": "true"
|
|
2608
2608
|
}), " leave"]
|
|
2609
2609
|
}) : null,
|
|
2610
|
-
|
|
2610
|
+
te && x ? /* @__PURE__ */ I("button", {
|
|
2611
2611
|
type: "button",
|
|
2612
2612
|
className: "btn btn-sm btn-secondary",
|
|
2613
|
-
onClick: () =>
|
|
2614
|
-
children: [/* @__PURE__ */
|
|
2613
|
+
onClick: () => x?.(),
|
|
2614
|
+
children: [/* @__PURE__ */ F(fe, {
|
|
2615
2615
|
size: 14,
|
|
2616
2616
|
"aria-hidden": "true"
|
|
2617
2617
|
}), " settings"]
|
|
@@ -2620,58 +2620,58 @@ function ht({ data: e = ft, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2620
2620
|
})]
|
|
2621
2621
|
})]
|
|
2622
2622
|
}),
|
|
2623
|
-
/* @__PURE__ */
|
|
2623
|
+
/* @__PURE__ */ I("div", {
|
|
2624
2624
|
className: "cmg-tiles",
|
|
2625
2625
|
children: [
|
|
2626
|
-
/* @__PURE__ */
|
|
2626
|
+
/* @__PURE__ */ F(m, {
|
|
2627
2627
|
label: "contributions",
|
|
2628
2628
|
value: r.acceptanceMode || "open",
|
|
2629
2629
|
tone: "teal"
|
|
2630
2630
|
}),
|
|
2631
|
-
/* @__PURE__ */
|
|
2631
|
+
/* @__PURE__ */ F(m, {
|
|
2632
2632
|
label: "access",
|
|
2633
2633
|
value: r.dataAccess || "members only",
|
|
2634
2634
|
tone: "amber"
|
|
2635
2635
|
}),
|
|
2636
|
-
/* @__PURE__ */
|
|
2636
|
+
/* @__PURE__ */ F(m, {
|
|
2637
2637
|
label: "your role",
|
|
2638
|
-
value:
|
|
2638
|
+
value: j
|
|
2639
2639
|
})
|
|
2640
2640
|
]
|
|
2641
2641
|
}),
|
|
2642
|
-
/* @__PURE__ */
|
|
2642
|
+
/* @__PURE__ */ F(ee, { tiles: [
|
|
2643
2643
|
{
|
|
2644
2644
|
key: "transcripts",
|
|
2645
2645
|
label: "transcripts",
|
|
2646
|
-
value:
|
|
2647
|
-
sub: `across ${
|
|
2646
|
+
value: _.transcripts,
|
|
2647
|
+
sub: `across ${_.projects}`
|
|
2648
2648
|
},
|
|
2649
2649
|
{
|
|
2650
2650
|
key: "tokens",
|
|
2651
2651
|
label: "tokens",
|
|
2652
|
-
value:
|
|
2653
|
-
sub:
|
|
2652
|
+
value: _.tokens,
|
|
2653
|
+
sub: _.turns
|
|
2654
2654
|
},
|
|
2655
2655
|
{
|
|
2656
2656
|
key: "contributors",
|
|
2657
2657
|
label: "contributors",
|
|
2658
|
-
value:
|
|
2659
|
-
sub:
|
|
2658
|
+
value: _.contributors,
|
|
2659
|
+
sub: _.hours
|
|
2660
2660
|
}
|
|
2661
2661
|
] }),
|
|
2662
|
-
/* @__PURE__ */
|
|
2662
|
+
/* @__PURE__ */ I("div", {
|
|
2663
2663
|
className: "cmg-d-grid",
|
|
2664
|
-
children: [/* @__PURE__ */
|
|
2664
|
+
children: [/* @__PURE__ */ I("main", {
|
|
2665
2665
|
className: "cmg-d-main",
|
|
2666
2666
|
children: [
|
|
2667
|
-
i.length > 0 ? /* @__PURE__ */
|
|
2667
|
+
i.length > 0 ? /* @__PURE__ */ I("section", {
|
|
2668
2668
|
className: "card cmg-share",
|
|
2669
2669
|
"aria-labelledby": "cmg-share-h",
|
|
2670
|
-
children: [/* @__PURE__ */
|
|
2670
|
+
children: [/* @__PURE__ */ F("h3", {
|
|
2671
2671
|
id: "cmg-share-h",
|
|
2672
2672
|
className: "cmg-sub",
|
|
2673
2673
|
children: "provider share"
|
|
2674
|
-
}), /* @__PURE__ */
|
|
2674
|
+
}), /* @__PURE__ */ F(w, {
|
|
2675
2675
|
label: "provider share",
|
|
2676
2676
|
total: 100,
|
|
2677
2677
|
data: i.map((e) => ({
|
|
@@ -2680,12 +2680,12 @@ function ht({ data: e = ft, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2680
2680
|
}))
|
|
2681
2681
|
})]
|
|
2682
2682
|
}) : null,
|
|
2683
|
-
a.length > 0 ? /* @__PURE__ */
|
|
2683
|
+
a.length > 0 ? /* @__PURE__ */ F("div", {
|
|
2684
2684
|
style: {
|
|
2685
2685
|
overflow: "auto",
|
|
2686
2686
|
maxWidth: "100%"
|
|
2687
2687
|
},
|
|
2688
|
-
children: /* @__PURE__ */
|
|
2688
|
+
children: /* @__PURE__ */ F(l, {
|
|
2689
2689
|
title: "pending review",
|
|
2690
2690
|
emptyLabel: "no shares awaiting review.",
|
|
2691
2691
|
items: a.map((e) => ({
|
|
@@ -2696,188 +2696,188 @@ function ht({ data: e = ft, actions: t = {}, demoRoleSwitcher: n = !1 } = {}) {
|
|
|
2696
2696
|
}))
|
|
2697
2697
|
})
|
|
2698
2698
|
}) : null,
|
|
2699
|
-
|
|
2699
|
+
c.length > 0 ? /* @__PURE__ */ I("section", {
|
|
2700
2700
|
className: "card cmg-redact-sec",
|
|
2701
2701
|
"aria-labelledby": "cmg-redact-h",
|
|
2702
|
-
children: [/* @__PURE__ */
|
|
2702
|
+
children: [/* @__PURE__ */ I("div", {
|
|
2703
2703
|
className: "cmg-queue-head",
|
|
2704
|
-
children: [/* @__PURE__ */
|
|
2704
|
+
children: [/* @__PURE__ */ I("h3", {
|
|
2705
2705
|
id: "cmg-redact-h",
|
|
2706
2706
|
className: "cmg-sub",
|
|
2707
|
-
children: [/* @__PURE__ */
|
|
2707
|
+
children: [/* @__PURE__ */ F(Z, {
|
|
2708
2708
|
size: 15,
|
|
2709
2709
|
"aria-hidden": "true"
|
|
2710
2710
|
}), " redaction review"]
|
|
2711
|
-
}), /* @__PURE__ */
|
|
2711
|
+
}), /* @__PURE__ */ I("button", {
|
|
2712
2712
|
type: "button",
|
|
2713
2713
|
className: "btn btn-sm btn-ghost",
|
|
2714
|
-
"aria-expanded":
|
|
2715
|
-
onClick: () =>
|
|
2716
|
-
children: [
|
|
2714
|
+
"aria-expanded": D,
|
|
2715
|
+
onClick: () => O((e) => !e),
|
|
2716
|
+
children: [F(D ? W : U, {
|
|
2717
2717
|
size: 14,
|
|
2718
2718
|
"aria-hidden": "true"
|
|
2719
|
-
}),
|
|
2719
|
+
}), D ? "hide" : "show"]
|
|
2720
2720
|
})]
|
|
2721
|
-
}),
|
|
2721
|
+
}), D ? /* @__PURE__ */ F("div", {
|
|
2722
2722
|
className: "cmg-redact-list",
|
|
2723
|
-
children:
|
|
2723
|
+
children: c.map((e) => /* @__PURE__ */ I("article", {
|
|
2724
2724
|
className: "cmg-redact",
|
|
2725
2725
|
children: [
|
|
2726
|
-
/* @__PURE__ */
|
|
2726
|
+
/* @__PURE__ */ I("div", {
|
|
2727
2727
|
className: "cmg-redact-head",
|
|
2728
|
-
children: [/* @__PURE__ */
|
|
2728
|
+
children: [/* @__PURE__ */ F("span", {
|
|
2729
2729
|
className: "cmg-redact-badges",
|
|
2730
|
-
children: /* @__PURE__ */
|
|
2731
|
-
}), /* @__PURE__ */
|
|
2730
|
+
children: /* @__PURE__ */ F(o, { children: String(e.catLabel || e.cat || "item").toLowerCase() })
|
|
2731
|
+
}), /* @__PURE__ */ F("span", {
|
|
2732
2732
|
className: "cmg-redact-file mono",
|
|
2733
2733
|
children: e.file || "unknown"
|
|
2734
2734
|
})]
|
|
2735
2735
|
}),
|
|
2736
|
-
/* @__PURE__ */
|
|
2736
|
+
/* @__PURE__ */ F("p", {
|
|
2737
2737
|
className: "cmg-redact-summary mono",
|
|
2738
2738
|
children: e.summary || "redaction review item"
|
|
2739
2739
|
}),
|
|
2740
|
-
/* @__PURE__ */
|
|
2740
|
+
/* @__PURE__ */ I("div", {
|
|
2741
2741
|
className: "callout cmg-redact-note",
|
|
2742
|
-
children: [/* @__PURE__ */
|
|
2742
|
+
children: [/* @__PURE__ */ F(Z, {
|
|
2743
2743
|
size: 16,
|
|
2744
2744
|
"aria-hidden": "true"
|
|
2745
|
-
}), /* @__PURE__ */
|
|
2745
|
+
}), /* @__PURE__ */ F("div", { children: e.tip || "review this redaction item before exposing it." })]
|
|
2746
2746
|
})
|
|
2747
2747
|
]
|
|
2748
2748
|
}, e.id))
|
|
2749
2749
|
}) : null]
|
|
2750
2750
|
}) : null,
|
|
2751
|
-
/* @__PURE__ */
|
|
2751
|
+
/* @__PURE__ */ I("section", {
|
|
2752
2752
|
className: "card cmg-browser",
|
|
2753
2753
|
"aria-labelledby": "cmg-browser-h",
|
|
2754
|
-
children: [/* @__PURE__ */
|
|
2754
|
+
children: [/* @__PURE__ */ I("div", {
|
|
2755
2755
|
className: "cmg-queue-head",
|
|
2756
|
-
children: [/* @__PURE__ */
|
|
2756
|
+
children: [/* @__PURE__ */ F("h3", {
|
|
2757
2757
|
id: "cmg-browser-h",
|
|
2758
2758
|
className: "cmg-sub",
|
|
2759
2759
|
children: "data"
|
|
2760
|
-
}), /* @__PURE__ */
|
|
2760
|
+
}), /* @__PURE__ */ I("button", {
|
|
2761
2761
|
type: "button",
|
|
2762
2762
|
className: "btn btn-sm btn-ghost",
|
|
2763
|
-
"aria-pressed":
|
|
2763
|
+
"aria-pressed": k,
|
|
2764
2764
|
onClick: () => {
|
|
2765
|
-
|
|
2765
|
+
A((e) => {
|
|
2766
2766
|
let t = !e;
|
|
2767
|
-
return
|
|
2767
|
+
return C?.(t), t;
|
|
2768
2768
|
});
|
|
2769
2769
|
},
|
|
2770
|
-
children: [
|
|
2770
|
+
children: [F(k ? Y : U, {
|
|
2771
2771
|
size: 14,
|
|
2772
2772
|
"aria-hidden": "true"
|
|
2773
|
-
}),
|
|
2773
|
+
}), k ? "gated view" : "open view"]
|
|
2774
2774
|
})]
|
|
2775
|
-
}),
|
|
2775
|
+
}), k ? /* @__PURE__ */ I("div", {
|
|
2776
2776
|
className: "empty cmg-locked",
|
|
2777
2777
|
children: [
|
|
2778
|
-
/* @__PURE__ */
|
|
2778
|
+
/* @__PURE__ */ F("span", {
|
|
2779
2779
|
className: "ring",
|
|
2780
|
-
children: /* @__PURE__ */
|
|
2780
|
+
children: /* @__PURE__ */ F(Y, {
|
|
2781
2781
|
size: 20,
|
|
2782
2782
|
"aria-hidden": "true"
|
|
2783
2783
|
})
|
|
2784
2784
|
}),
|
|
2785
|
-
/* @__PURE__ */
|
|
2786
|
-
/* @__PURE__ */
|
|
2787
|
-
|
|
2785
|
+
/* @__PURE__ */ F("h3", { children: "data access restricted" }),
|
|
2786
|
+
/* @__PURE__ */ F("p", { children: "this collective is members-only. join as a full member to browse the dataset." }),
|
|
2787
|
+
P ? /* @__PURE__ */ I("button", {
|
|
2788
2788
|
type: "button",
|
|
2789
2789
|
className: "btn btn-sm btn-primary",
|
|
2790
|
-
onClick: () =>
|
|
2791
|
-
children: [/* @__PURE__ */
|
|
2790
|
+
onClick: () => y?.(),
|
|
2791
|
+
children: [/* @__PURE__ */ F($, {
|
|
2792
2792
|
size: 14,
|
|
2793
2793
|
"aria-hidden": "true"
|
|
2794
2794
|
}), " join as contributor"]
|
|
2795
2795
|
}) : null
|
|
2796
2796
|
]
|
|
2797
|
-
}) :
|
|
2797
|
+
}) : u.length > 0 ? /* @__PURE__ */ I("table", {
|
|
2798
2798
|
className: "dtable cmg-dtable",
|
|
2799
|
-
children: [/* @__PURE__ */
|
|
2800
|
-
/* @__PURE__ */
|
|
2799
|
+
children: [/* @__PURE__ */ F("thead", { children: /* @__PURE__ */ I("tr", { children: [
|
|
2800
|
+
/* @__PURE__ */ F("th", {
|
|
2801
2801
|
scope: "col",
|
|
2802
2802
|
children: "title"
|
|
2803
2803
|
}),
|
|
2804
|
-
/* @__PURE__ */
|
|
2804
|
+
/* @__PURE__ */ F("th", {
|
|
2805
2805
|
scope: "col",
|
|
2806
2806
|
children: "contributor"
|
|
2807
2807
|
}),
|
|
2808
|
-
/* @__PURE__ */
|
|
2808
|
+
/* @__PURE__ */ F("th", {
|
|
2809
2809
|
scope: "col",
|
|
2810
2810
|
children: "provider"
|
|
2811
2811
|
}),
|
|
2812
|
-
/* @__PURE__ */
|
|
2812
|
+
/* @__PURE__ */ F("th", {
|
|
2813
2813
|
scope: "col",
|
|
2814
2814
|
className: "cmg-num",
|
|
2815
2815
|
children: "turns"
|
|
2816
2816
|
}),
|
|
2817
|
-
/* @__PURE__ */
|
|
2817
|
+
/* @__PURE__ */ F("th", {
|
|
2818
2818
|
scope: "col",
|
|
2819
2819
|
className: "cmg-num",
|
|
2820
2820
|
children: "tokens"
|
|
2821
2821
|
}),
|
|
2822
|
-
/* @__PURE__ */
|
|
2822
|
+
/* @__PURE__ */ F("th", {
|
|
2823
2823
|
scope: "col",
|
|
2824
2824
|
children: "date"
|
|
2825
2825
|
})
|
|
2826
|
-
] }) }), /* @__PURE__ */
|
|
2827
|
-
/* @__PURE__ */
|
|
2828
|
-
/* @__PURE__ */
|
|
2826
|
+
] }) }), /* @__PURE__ */ F("tbody", { children: u.map((e) => /* @__PURE__ */ I("tr", { children: [
|
|
2827
|
+
/* @__PURE__ */ F("td", { children: e.title || "untitled transcript" }),
|
|
2828
|
+
/* @__PURE__ */ F("td", {
|
|
2829
2829
|
className: "mono",
|
|
2830
2830
|
children: e.contributor || "anon"
|
|
2831
2831
|
}),
|
|
2832
|
-
/* @__PURE__ */
|
|
2833
|
-
/* @__PURE__ */
|
|
2832
|
+
/* @__PURE__ */ I("td", { children: [
|
|
2833
|
+
/* @__PURE__ */ F(G, {
|
|
2834
2834
|
size: 14,
|
|
2835
2835
|
"aria-hidden": "true"
|
|
2836
2836
|
}),
|
|
2837
2837
|
" ",
|
|
2838
2838
|
e.providerId ? ze(e.providerId) : Re(e.provider)
|
|
2839
2839
|
] }),
|
|
2840
|
-
/* @__PURE__ */
|
|
2840
|
+
/* @__PURE__ */ F("td", {
|
|
2841
2841
|
className: "cmg-num tnum",
|
|
2842
2842
|
children: e.turns || "0"
|
|
2843
2843
|
}),
|
|
2844
|
-
/* @__PURE__ */
|
|
2844
|
+
/* @__PURE__ */ F("td", {
|
|
2845
2845
|
className: "cmg-num tnum",
|
|
2846
2846
|
children: e.tokens || "0"
|
|
2847
2847
|
}),
|
|
2848
|
-
/* @__PURE__ */
|
|
2848
|
+
/* @__PURE__ */ F("td", {
|
|
2849
2849
|
className: "mono tnum",
|
|
2850
2850
|
children: e.date || mt(null)
|
|
2851
2851
|
})
|
|
2852
2852
|
] }, `${e.title}-${e.contributor}`)) })]
|
|
2853
|
-
}) : /* @__PURE__ */
|
|
2853
|
+
}) : /* @__PURE__ */ I("div", {
|
|
2854
2854
|
className: "empty cmg-locked",
|
|
2855
2855
|
children: [
|
|
2856
|
-
/* @__PURE__ */
|
|
2856
|
+
/* @__PURE__ */ F("span", {
|
|
2857
2857
|
className: "ring",
|
|
2858
|
-
children: /* @__PURE__ */
|
|
2858
|
+
children: /* @__PURE__ */ F(ge, {
|
|
2859
2859
|
size: 20,
|
|
2860
2860
|
"aria-hidden": "true"
|
|
2861
2861
|
})
|
|
2862
2862
|
}),
|
|
2863
|
-
/* @__PURE__ */
|
|
2864
|
-
/* @__PURE__ */
|
|
2863
|
+
/* @__PURE__ */ F("h3", { children: "no data yet" }),
|
|
2864
|
+
/* @__PURE__ */ F("p", { children: "this collective has no visible transcripts to browse." })
|
|
2865
2865
|
]
|
|
2866
2866
|
})]
|
|
2867
2867
|
})
|
|
2868
2868
|
]
|
|
2869
|
-
}),
|
|
2869
|
+
}), s.length > 0 ? /* @__PURE__ */ F("aside", {
|
|
2870
2870
|
className: "sidebar cmg-d-rail",
|
|
2871
2871
|
"aria-label": "collective sidebar",
|
|
2872
|
-
children: /* @__PURE__ */
|
|
2872
|
+
children: /* @__PURE__ */ F("div", {
|
|
2873
2873
|
style: {
|
|
2874
2874
|
overflow: "auto",
|
|
2875
2875
|
maxWidth: "100%"
|
|
2876
2876
|
},
|
|
2877
|
-
children: /* @__PURE__ */
|
|
2877
|
+
children: /* @__PURE__ */ F(d, {
|
|
2878
2878
|
title: "members",
|
|
2879
2879
|
roles: ["member", "contributor"],
|
|
2880
|
-
members:
|
|
2880
|
+
members: s.map((e) => ({
|
|
2881
2881
|
handle: e.handle || e.githubUsername || "@unknown",
|
|
2882
2882
|
name: e.name || e.displayName || e.githubUsername || "unknown",
|
|
2883
2883
|
role: e.role || "member",
|