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