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