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