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